@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231213.0 → 0.0.0-nightly-20231214.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 i=e[o];if(void 0!==i)return i.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:()=>Pc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),i=n(273),r=n(417),s=n(492),x=n(995);const a=["forceDisabled","editor","value","TrackChangesCommand","refresh","has","isEnabled","clearForceDisabled","execute","affectsData","commands","_enabledCommands"];var c,l;c=a,l=351,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0xb")]=!1,this[u("0x1")](),this._isEnabledBasedOnSelection=!1}[u("0x1")](){this[u("0x3")]=!0}[u("0x5")](){this[u("0xb")]=!this[u("0xb")],this[u("0xb")]?this._disableUnsupportedCommands():this._enableCommands()}_disableUnsupportedCommands(){for(const t of this[u("0xa")][u("0x7")].commands())t[u("0x6")]&&!this._enabledCommands[u("0x2")](t)&&t[u("0x9")](u("0x0"))}_enableCommands(){for(const t of this.editor[u("0x7")][u("0x7")]())t[u("0x6")]&&!this[u("0x8")][u("0x2")](t)&&t[u("0x4")]("TrackChangesCommand")}}const g=["editor","track-changes-accept-suggestion-not-found","model","acceptSuggestion","getRanges","get","isEnabled","plugins","canEditAt","refresh","TrackChangesEditing","_suggestions"];var f,m;f=g,m=325,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0xa")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[h("0x8")](){this[h("0x5")]=!0}execute(t){const n=this._suggestions[h("0x4")](t);if(!n)throw new e.CKEditorError(h("0x0"),this);const o=n[h("0x3")]();this[h("0xb")][h("0x1")][h("0x7")](o)&&this[h("0xb")][h("0x6")].get(h("0x9"))[h("0x2")](n)}}const b=["editor","canEditAt","model","getRanges","isEnabled","TrackChangesEditing","_suggestions","execute","refresh","discardSuggestion","track-changes-discard-suggestion-not-found","_isEnabledBasedOnSelection"];var E,_;E=b,_=211,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0xb")]=e,this[T("0x1")](),this[T("0x4")]=!1}[T("0x1")](){this[T("0x9")]=!0}[T("0x0")](t){const n=this[T("0xb")].get(t);if(!n)throw new e.CKEditorError(T("0x3"),this);const o=n[T("0x8")]();this[T("0x5")][T("0x7")][T("0x6")](o)&&this.editor.plugins.get(T("0xa"))[T("0x2")](n)}}const C=["next","push","getRanges","add","execute","splice","type","isTouching","length","content","isObject","isIntersecting","createPositionBefore","from","end","deletion","isArray"," [color ","replace","isInContent","isMultiRange","map","createPositionAfter"];var A,k;A=C,k=236,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t.sort(((t,e)=>I("0x9")==t[I("0x0")]&&I("0x9")!=e[I("0x0")]?-1:"deletion"!=t[I("0x0")]&&I("0x9")==e[I("0x0")]?1:0))}function R(t,e){let n,o=0;const i=[],r=e.schema;for(;o<t[I("0x2")];){const s=t[o],x=t[o+1];n||(n=e[I("0x6")](s)),v(e,s,x)||(i[I("0x12")](e.createRange(n,r[I("0x4")](s)?e[I("0x10")](s):e.createPositionAt(s,I("0x8")))),n=null),o++}return i}function v(t,e,n){if(!n)return!1;const o=t[I("0x10")](e),i=t.createPositionBefore(n);return o[I("0x1")](i)}function N(t,e,n){for(;n[I("0x2")];){const o=n[I("0x16")](0,100);t.change((()=>{for(const t of o)t.isInContent&&e[I("0x15")](t.id)}))}}const L=["values","from","_isEnabledBasedOnSelection","canEditAt","editor","refresh","getRanges","execute","_suggestions","_command","model"];var M,w;M=L,w=282,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x2")]=e,this[O("0x1")]=n,this.refresh(),this[O("0x6")]=!1}[O("0x9")](){const t=Array[O("0x5")](this[O("0x1")][O("0x4")]()).some((t=>t.isInContent));this.isEnabled=this._command.isEnabled&&t}[O("0x0")](){const t=S(Array[O("0x5")](this[O("0x1")][O("0x4")]()));for(const e of t){const t=e[O("0xa")]();if(!this.editor[O("0x3")][O("0x7")](t))return}N(this[O("0x8")][O("0x3")],this[O("0x2")],t)}}const D=["values","model","document","execute","editor","refresh","getRanges","_command","from","canEditAt","isEnabled","selection","_suggestions","_selectedSuggestions"];var B,P;B=D,P=412,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x1")]=e,this[U("0x6")]=n,this[U("0x7")]=new Set,this[U("0xd")](),this._isEnabledBasedOnSelection=!1}refresh(){const t=this[U("0xc")][U("0x9")][U("0xa")][U("0x5")],e=Array[U("0x2")](this[U("0x6")][U("0x8")]());this[U("0x7")]=function(t,e){const n=Array[I("0x7")](t[I("0x13")]()),o=new Set;for(const i of e)if(i[I("0xd")])for(const e of n)for(const n of i.getRanges())(e[I("0x5")](n)||t.isCollapsed&&!i[I("0xe")]&&i[I("0x11")]&&n[I("0x8")].isTouching(e.start))&&o[I("0x14")](i);return o}(t,e),this.isEnabled=this._command[U("0x4")]&&!!this[U("0x7")].size}[U("0xb")](){const t=S(Array[U("0x2")](this[U("0x7")]));for(const e of t){const t=e[U("0x0")]();if(!this[U("0xc")][U("0x9")][U("0x3")](t))return}N(this[U("0xc")][U("0x9")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const V=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 W=function(t){var e=this.__data__,n=V(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=V(e,t);return n<0?void 0:e[n][1]};const q=function(t){return V(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=V(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=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=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 it=ot.Symbol;var rt=Object.prototype,st=rt.hasOwnProperty,xt=rt.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var i=xt.call(t);return o&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(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 yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,St=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rt=function(t){return!(!ft(t)||Et(t))&&(mt(t)?St:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return Rt(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=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 jt(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])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Vt=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 Vt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=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=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;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=Nt(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 ie=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 i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=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,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;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 ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Se=Ie&&Ie.exports===ke&&et.process;const Re=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Se&&Se.binding&&Se.binding("util")}catch(t){}}();var ve=Re&&Re.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),i=!n&&!o&&be(t),r=!n&&!o&&!i&&Ne(t),s=n||o||i||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&re(e,je(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var Ve=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&Ve.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,We(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,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}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),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return re(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(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:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=pn||fn&&Sn(fn.resolve())!=bn||mn&&Sn(new mn)!=En||hn&&Sn(new hn)!=_n)&&(Sn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Rn=Sn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=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 Un(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 Pn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Vn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Rn(t)};var Wn=Re&&Re.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Rn(t)};var Xn=Re&&Re.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,i,r,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,i,r,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=Rn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!r){if(x=c||g?{}:Vn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return r?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,o,i,e,s))})):Kn(e)&&e.forEach((function(i,r){x.set(r,t(i,n,o,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(i,r){m&&(i=e[r=i]),ie(x,r,t(i,n,o,r,e,s))})),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)\]/,io=/^\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))||(io.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;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,i){e.push(o?i.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var go=it?it.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(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(!ft(t))return t;for(var i=-1,r=(e=po(e,t)).length,s=r-1,x=t;null!=x&&++i<r;){var a=bo(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(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 yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=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 Io=function(t,e){return t.has(e)};const So=function(t,e,n,o,i,r){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||i(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Ro=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=it?it.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,i,r,s){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 Ln(t),new Ln(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=Ro;case"[object Set]":var a=1&o;if(x||(x=vo),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=So(x(t),x(e),o,i,r,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,i,r){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||i(m,h,n,o,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,i,r){var s=ge(t),x=ge(e),a=s?Do:Rn(t),c=x?Do:Rn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Qt),s||Ne(t)?So(t,e,n,o,i,r):Mo(t,e,a,n,o,i,r);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Qt),i(m,h,n,o,r)}}return!!d&&(r||(r=new Qt),Oo(t,e,n,o,i,r))};const jo=function t(e,n,o,i,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,i,t,r))};const Go=function(t,e){return jo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vo=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,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t:Vo(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["split","getContainedElement","length","onAccept","isExternal","setAttribute","end","addRange","commentThread","getItems","subType","decorate","addMarker","hasComments","set","nodeAfter","createdAt","_onAttributesChange","map","from","discard","_saved","addMarkerName","previous","type","data","_onAccept","getRange","next","removeMarker","_onDiscard","attributes","getMultiRangeId","getMarkerNames","nodeBefore","add","isIntersecting","_isDataLoaded","getFirstMarker","authoredAt","filter","_model","onDiscard","_markerNames","getMarkers","getRanges","push","size","@external","substr","reduce","change","creator","removeMarkers","accept","head","markers"];var $o,Zo;$o=Xo,Zo=357,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Yo=function(t,e){return Xo[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Yo("0x16")]=!1,this.id=e.id,this.type=e[Yo("0x9")],this[Yo("0x34")]=e[Yo("0x34")]||null,this.author=e.author,this[Yo("0x25")]=e[Yo("0x25")]||e.author,this[Yo("0x2e")]=Boolean(e[Yo("0x10")]&&e[Yo("0x10")][Yo("0x21")]),this[Yo("0xa")]=null,this._model=t,this[Yo("0xb")]=e[Yo("0x2d")],this[Yo("0xf")]=e[Yo("0x1b")],this[Yo("0x2")]=e.onAttributesChange,this[Yo("0x1c")]=new Set,this[Yo("0x1")]=null,this[Yo("0x38")](Yo("0x18"),null),this[Yo("0x38")](Yo("0x10"),e[Yo("0x10")]||{}),this[Yo("0x38")](Yo("0x8"),null),this[Yo("0x38")](Yo("0xd"),null),this[Yo("0x38")](Yo("0x32"),null),this[Yo("0x38")](Yo("0x6"),!1),this[Yo("0x35")]("accept"),this.decorate(Yo("0x5"))}get[Yo("0x28")](){let t=this;for(;t[Yo("0x8")];)t=t[Yo("0x8")];return t}get[Yo("0x37")](){return!!this[Yo("0x32")]&&this[Yo("0x32")].length>0}get isMultiRange(){return 0!=this[Yo("0x1c")][Yo("0x20")]&&6==Array[Yo("0x4")](this._markerNames)[0][Yo("0x2a")](":")[Yo("0x2c")]}get isInContent(){return null!==this[Yo("0x17")]()}[Yo("0x7")](t){this[Yo("0x1c")][Yo("0x14")](t)}[Yo("0x12")](){return Array.from(this[Yo("0x1c")])}[Yo("0x1d")](){return this[Yo("0x12")]()[Yo("0x3")]((t=>this[Yo("0x1a")][Yo("0x29")].get(t)))[Yo("0x19")]((t=>t))}[Yo("0x17")](){return this[Yo("0x1d")]()[0]||null}[Yo("0x26")](){this._model.change((t=>{for(const e of this[Yo("0x1d")]())t[Yo("0xe")](e)})),this[Yo("0x1c")].clear()}[Yo("0xe")](t){this._model[Yo("0x24")]((e=>{e[Yo("0xe")](t)})),this[Yo("0x1c")].delete(t)}[Yo("0x31")](t){const e="suggestion:"+this[Yo("0x9")]+":"+this[Yo("0x34")]+":"+this.id+":"+this[Yo("0x25")].id+":"+Jo[Yo("0x11")]();this[Yo("0x7")](e),this[Yo("0x1a")][Yo("0x24")]((n=>{n[Yo("0x36")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Yo("0x1e")]())if(e[Yo("0x15")](t))return!0;return!1}[Yo("0x1e")](){return this.getMarkers()[Yo("0x3")]((t=>t[Yo("0xc")]()))}[Yo("0x33")](){return this[Yo("0x1e")]()[Yo("0x23")](((t,e)=>[...t,...e.getItems()]),[])}getFirstRange(){var t;return(null===(t=this[Yo("0x17")]())||void 0===t?void 0:t[Yo("0xc")]())||null}[Yo("0x2b")](){const t=this.getRanges();if(1!=t[Yo("0x2c")])return null;const e=t[0],n=e.start[Yo("0x0")],o=e[Yo("0x30")][Yo("0x13")];return n instanceof s.Element?n!=o?null:n:null}[Yo("0x27")](){this[Yo("0xb")](this[Yo("0x1e")](),this[Yo("0xa")],this.attributes),this[Yo("0x26")]()}discard(){this[Yo("0xf")](this[Yo("0x1e")](),this[Yo("0xa")],this[Yo("0x10")]),this[Yo("0x26")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Yo("0x28")];for(;e;)t[Yo("0x1f")](e),e=e[Yo("0xd")];return t}[Yo("0x2f")](t,e){const n=eo(this[Yo("0x10")]);_o(n,t,e),Go(n,this[Yo("0x10")])||(this[Yo("0x10")]=n,this[Yo("0x2")](n))}removeAttribute(t){const e=eo(this[Yo("0x10")]);qo(e,t),Go(e,this[Yo("0x10")])||(this[Yo("0x10")]=e,this[Yo("0x2")](this[Yo("0x10")]))}toJSON(){return{id:this.id,type:this[Yo("0x34")]?this[Yo("0x9")]+":"+this[Yo("0x34")]:this[Yo("0x9")],authorId:this[Yo("0x25")].id,createdAt:this[Yo("0x1")],hasComments:this[Yo("0x37")],data:this[Yo("0xa")],attributes:this[Yo("0x10")]}}static[Yo("0x11")](){return(0,e.uid)()[Yo("0x22")](1,5)}}function Qo(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"*Replace image URL*":return o("*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 format:* %0":return o("*Set format:* %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_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});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_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});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_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});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"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});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);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const ti=["remove","add","registerDescriptionCallback","quantity","element","removeContainer","_itemLabelsCallbacks","addContainer","data","subType","_customCallbacks","softBreak","addObject","match","format","item","nextSibling","REPLACE_TEXT","_addDescriptionItems","getFirstRange","registerElementLabel","getWalker","normal","*Merge:* %0","_handleAttributeSuggestionDescription","$textProxy","_resolveDescriptionItems","removeFormat","join","_handleCustomCallbackDescription","Object","EmptyContainer","text","$text","matchingCallback","start","_schema","deletion","has","type","Container","getItemLabel","elementStart","isObject","map","addFormat","get","push","removeObject","_locale","isInContent","_handleRenameSuggestionDescription","key","attribute","end","*Remove:* %0","*Insert:* %0","skip","registerAttributeLabel","newValue","elementEnd","_handleInsertRemoveSuggestionDescription","pop","set","_itemLabels","getDescriptions","length","removeEmptyContainer","$1 $2","_attributeLabels","ELEMENT_SPACE","replace","isEmpty","insertion","name","indexOf","addEmptyContainer","*Change to:* %0","previousSibling"];var ei,ni;ei=ti,ni=355,function(t){for(;--t;)ei.push(ei.shift())}(++ni);const oi=function(t,e){return ti[t-=0]};class ii{constructor(t,e){this[oi("0x32")]=[],this[oi("0x19")]=new Map,this._itemLabelsCallbacks=[],this[oi("0x1e")]=new Map,this[oi("0x4c")]=t,this[oi("0xa")]=e}[oi("0x1a")](t){const e=[],n=new Set,o=new Set;for(let i=0;i<t.length;i++){const r=t[i];if(!r[oi("0xb")])continue;const s=this[oi("0x45")](r);if(s){if(null!=r.subType){if(n[oi("0x4e")](r.subType))continue;n[oi("0x29")](r[oi("0x31")])}e[oi("0x8")](s)}else if(oi("0xe")!=r[oi("0x0")])oi("0x22")!=r[oi("0x0")]&&oi("0x4d")!=r[oi("0x0")]||this[oi("0x16")](e,r,t[i+1]);else{const t=r[oi("0x30")].key;if(o.has(t))continue;o.add(r[oi("0x30")][oi("0xd")]),t==mc?this[oi("0xc")](e,r):this[oi("0x40")](e,r)}}return this._resolveDescriptionItems(e)}[oi("0x2a")](t){this[oi("0x32")][oi("0x8")](t)}[oi("0x3c")](t,n,o=e.priorities[oi("0x3e")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[oi("0x2e")],{matchingCallback:t,label:n,priority:o}):this[oi("0x19")].set(t,n)}[oi("0x13")](t,e){this._attributeLabels[oi("0x18")](t,e)}[oi("0x2")](t,e=1){let n;for(const e of this[oi("0x2e")])if(e[oi("0x4a")](t)){n=e.label;break}return n||(n=this[oi("0x19")][oi("0x7")](t.name)),n?n(e):1!==e?e+" "+t[oi("0x23")]+"s":""+t.name}[oi("0x3a")](t,e){const n=e[oi("0x3b")]()[oi("0x3d")](),o="insertion"==e[oi("0x0")]?"add":oi("0x28");for(const e of n){const i=e[oi("0x37")],r=t[t[oi("0x1b")]-1];if(i.is(oi("0x41")))r&&r[oi("0x0")].indexOf(oi("0x1"))>-1&&t[oi("0x17")](),r&&oi("0x48")==r[oi("0x0")]?r[o]+=i[oi("0x30")]:t[oi("0x8")]({type:"text",add:"add"==o?i[oi("0x30")]:"",remove:oi("0x28")==o?i[oi("0x30")]:""});else if(this[oi("0x4c")].isObject(i)){const s=i;if(r&&r[oi("0x0")][oi("0x24")](oi("0x1"))>-1&&t[oi("0x17")](),oi("0x15")==e[oi("0x0")])continue;r&&r[oi("0x0")]==o+"Object"&&r[oi("0x2c")][oi("0x23")]==s.name?r[oi("0x2b")]++:t[oi("0x8")]({type:o+oi("0x46"),element:s,quantity:1}),n[oi("0x12")]((t=>!(oi("0x15")==t[oi("0x0")]&&t[oi("0x37")]==i)))}else if(this[oi("0x4c")].checkChild(i,oi("0x49"))||i.is(oi("0x2c"),oi("0x33"))){const n=i;if("add"==o&&oi("0x3")==e[oi("0x0")]||"remove"==o&&"elementEnd"==e[oi("0x0")])continue;if(r&&-1==r.type.indexOf("Container")){oi("0x48")==r[oi("0x0")]&&(r[o]+="\n");continue}let s;if(s=oi("0x29")==o?n[oi("0x38")]&&!this[oi("0x4c")][oi("0x4")](n.nextSibling)?n[oi("0x38")]:null:n[oi("0x27")]&&!this[oi("0x4c")].isObject(n.previousSibling)?n.previousSibling:null,n[oi("0x21")]||s&&s[oi("0x21")]){const e=s&&s[oi("0x21")]?s:n;r&&r[oi("0x0")]==o+oi("0x47")&&r[oi("0x2c")][oi("0x23")]==e[oi("0x23")]?r[oi("0x2b")]++:t[oi("0x8")]({type:o+oi("0x47"),element:e,quantity:1})}else t[oi("0x8")]({type:o+oi("0x1"),element:n})}}}[oi("0x42")](t){const e=this[oi("0xa")],n=[],o=[],i=[];for(const r of t)switch(r.type){case oi("0x48"):if(r[oi("0x29")]=r.add[oi("0x20")](/(\S)\u000A+(\S)/g,oi("0x1d"))[oi("0x20")](/\u000A/g,""),r[oi("0x28")]=r.remove[oi("0x20")](/(\S)\u000A+(\S)/g,oi("0x1d")).replace(/\u000A/g,""),""!=r.add&&""!=r[oi("0x28")]){n[oi("0x8")]({type:oi("0x20"),content:Qo(e,oi("0x39"),['"'+r.remove+'"','"'+r[oi("0x29")]+'"'])});continue}if(null!=r.add.match(/^ +$/)){n.push({type:oi("0x22"),content:Qo(e,oi("0x11"),Qo(e,"ELEMENT_SPACE",r.add[oi("0x1b")]))});continue}if(null!=r[oi("0x28")][oi("0x35")](/^ +$/)){n[oi("0x8")]({type:"deletion",content:Qo(e,oi("0x10"),Qo(e,oi("0x1f"),r[oi("0x28")][oi("0x1b")]))});continue}if(""!=r[oi("0x29")]){n[oi("0x8")]({type:oi("0x22"),content:Qo(e,"*Insert:* %0",'"'+r.add+'"')});continue}n[oi("0x8")]({type:oi("0x4d"),content:Qo(e,oi("0x10"),'"'+r[oi("0x28")]+'"')});continue;case oi("0x25"):case oi("0x34"):n.push({type:"insertion",content:Qo(e,oi("0x11"),this[oi("0x2")](r.element,r[oi("0x2b")]))});continue;case oi("0x1c"):case oi("0x9"):n[oi("0x8")]({type:oi("0x4d"),content:Qo(e,oi("0x10"),this.getItemLabel(r[oi("0x2c")],r.quantity))});continue;case oi("0x2f"):n.push({type:oi("0x22"),content:Qo(e,"*Split:* %0",this[oi("0x2")](r[oi("0x2c")],r[oi("0x2b")]))});continue;case oi("0x2d"):n[oi("0x8")]({type:oi("0x4d"),content:Qo(e,oi("0x3f"),this[oi("0x2")](r[oi("0x2c")],r.quantity))});continue;case oi("0x6"):o[oi("0x8")](r.key);continue;case oi("0x43"):i[oi("0x8")](r[oi("0xd")]);continue;default:n[oi("0x8")](r)}if(o.length){const t=o.map((t=>this._attributeLabels.has(t)?this[oi("0x1e")][oi("0x7")](t):t))[oi("0x44")](", ");n[oi("0x8")]({type:oi("0x36"),content:Qo(this[oi("0xa")],"*Set format:* %0",t)})}if(i[oi("0x1b")]){const t=i[oi("0x5")]((t=>this[oi("0x1e")][oi("0x4e")](t)?this[oi("0x1e")][oi("0x7")](t):t)).join(", ");n.push({type:"format",content:Qo(this._locale,"*Remove format:* %0",t)})}return n}[oi("0x45")](t){for(const e of this._customCallbacks){const n=e(t);if(n&&oi("0x0")in n)return n}}[oi("0x40")](t,e){const n=e[oi("0x30")],o=void 0===n[oi("0x14")]?oi("0x43"):oi("0x6");t.push({type:o,key:n[oi("0xd")]})}_handleRenameSuggestionDescription(t,e){t.push({type:"format",content:Qo(this[oi("0xa")],oi("0x26"),this.getItemLabel(e[oi("0x3b")]()[oi("0x4b")].nodeAfter,1))})}[oi("0x16")](t,e,n){if(this[oi("0x3a")](t,e),n&&n[oi("0x3b")]()&&!e[oi("0x3b")]()[oi("0xf")].isEqual(n.getFirstRange()[oi("0x4b")])){const n=t[t[oi("0x1b")]-1],o="insertion"==e[oi("0x0")]?oi("0x29"):oi("0x28");n&&"text"==n[oi("0x0")]&&(n[o]+="\n")}}}const ri=["enableCommand","showAIAssistant","TrackChangesEditing","editor","plugins","afterInit","get"];var si,xi;si=ri,xi=475,function(t){for(;--t;)si.push(si.shift())}(++xi);const ai=function(t,e){return ri[t-=0]};class ci extends t.Plugin{[ai("0x6")](){const t=this[ai("0x4")],e=t[ai("0x5")].get(ai("0x3"));t.commands[ai("0x0")](ai("0x2"))&&e[ai("0x1")]("showAIAssistant")}}const li=["registerAttributeLabel","FORMAT_ALIGN_TO_CENTER","FORMAT_JUSTIFY_TEXT","format","justify","commandName","locale","plugins","_enableDefaultAttributesIntegration","center","registerDescriptionCallback","formatBlock","*Format:* %0","alignment","left","type","FORMAT_ALIGN_TO_LEFT","TrackChangesEditing","right","FORMAT_ALIGNMENT","editor","commandParams","get","afterInit","_descriptionFactory","has"];var ui,di;ui=li,di=141,function(t){for(;--t;)ui.push(ui.shift())}(++di);const gi=function(t,e){return li[t-=0]};class fi extends t.Plugin{[gi("0xc")](){const t=this[gi("0x9")],e=t[gi("0x15")];if(!t[gi("0x16")][gi("0xe")]("AlignmentEditing"))return;const n=t[gi("0x16")][gi("0xb")](gi("0x6"));n[gi("0x17")](gi("0x2"),[],[gi("0x2")]),n[gi("0xd")][gi("0xf")]("alignment",Qo(e,gi("0x8"))),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[gi("0x9")],e=t[gi("0x15")];t[gi("0x16")].get(gi("0x6"))._descriptionFactory[gi("0x19")]((t=>{if(gi("0x0")!=t[gi("0x4")])return;const{data:n}=t;if(n&&gi("0x2")==n[gi("0x14")]){const t=n[gi("0xa")][0].value;return{type:gi("0x12"),content:Qo(e,gi("0x1"),function(t){switch(t){case gi("0x3"):return Qo(e,gi("0x5"));case gi("0x7"):return Qo(e,"FORMAT_ALIGN_TO_RIGHT");case gi("0x18"):return Qo(e,gi("0x10"));case gi("0x13"):return Qo(e,gi("0x11"))}}(t))}}}))}}const mi=["plugins","subscript","FORMAT_ITALIC","commandParams","*Remove format:* %0","FORMAT_CODE","StrikethroughEditing","TrackChangesEditing","underline","FORMAT_STRIKETHROUGH","FORMAT_BOLD","SubscriptEditing","format","slice","formatInline","FORMAT_SUBSCRIPT","registerAttributeLabel","commandName","get","UnderlineEditing","editor","_descriptionFactory","_enableDefaultAttributesIntegration","FORMAT_UNDERLINE","ItalicEditing","afterInit","locale","_registerLegacyDescription"];var hi,pi;hi=mi,pi=248,function(t){for(;--t;)hi.push(hi.shift())}(++pi);const bi=function(t,e){return mi[t-=0]},Ei=["BoldEditing",bi("0x0"),bi("0x17"),"CodeEditing",bi("0xa"),bi("0xf"),"SuperscriptEditing"];class _i extends t.Plugin{[bi("0x1")](){const t=this[bi("0x18")],e=t.plugins[bi("0x16")](bi("0xb")),n=t[bi("0x2")];for(const o of Ei){if(!t[bi("0x4")].has(o))continue;const i=o[bi("0x11")](0,-7).toLowerCase(),r="FORMAT_"+i.toUpperCase();e[bi("0x1a")](i,[i]),e._descriptionFactory[bi("0x14")](i,Qo(n,r))}this._registerLegacyDescription()}[bi("0x3")](){const t=this[bi("0x18")],e=t[bi("0x2")],n=t[bi("0x4")].get(bi("0xb"));function o(t,o){n[bi("0x19")].registerDescriptionCallback((n=>{if(bi("0x12")!=n.type)return;const{data:i}=n;return i&&i[bi("0x15")]===t?i[bi("0x7")][0].forceValue?{type:bi("0x10"),content:Qo(e,"*Format:* %0",o)}:{type:bi("0x10"),content:Qo(e,bi("0x8"),o)}:void 0}))}o("bold",Qo(e,bi("0xe"))),o("italic",Qo(e,bi("0x6"))),o(bi("0xc"),Qo(e,bi("0x1b"))),o("code",Qo(e,bi("0x9"))),o("strikethrough",Qo(e,bi("0xd"))),o(bi("0x5"),Qo(e,bi("0x13"))),o("superscript",Qo(e,"FORMAT_SUPERSCRIPT"))}}const Ti=["editor","format","BlockQuoteEditing","filter","from","forceValue","name","schema","afterInit","plugins","document","ELEMENT_BLOCK_QUOTE","model","change","TrackChangesEditing","blockQuote","commandName","checkChild","parent","selection","commandParams","getSelectedBlocks","markBlockFormat","enableCommand","registerDescriptionCallback","value","has","commands"];var yi,Ci;yi=Ti,Ci=331,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return Ti[t-=0]};class ki extends t.Plugin{[Ai("0xd")](){const t=this[Ai("0x5")],e=t.locale;if(!t[Ai("0xe")][Ai("0x3")](Ai("0x7")))return;const n=t[Ai("0xe")].get(Ai("0x13")),o=this[Ai("0x5")][Ai("0x4")].get(Ai("0x14"));n[Ai("0x0")]("blockQuote",((e,i={})=>{const r=this.editor[Ai("0x11")][Ai("0xf")][Ai("0x18")],s=i&&void 0!==i[Ai("0xa")]?i[Ai("0xa")]:!o[Ai("0x2")];let x=[];if(s){const e=Array[Ai("0x9")](r.getSelectedBlocks())[Ai("0x8")]((t=>Ii(t)||function(t,e){const n=e[Ai("0x16")](t[Ai("0x17")],"blockQuote"),o=e[Ai("0x16")](["$root",Ai("0x14")],t);return n&&o}(t,this[Ai("0x5")][Ai("0x11")][Ai("0xc")])));x=R(e,t.model)}else{const e=Array.from(r[Ai("0x1a")]()).filter((t=>Ii(t)));x=R(e,t[Ai("0x11")])}t.model[Ai("0x12")]((()=>{for(const t of x)n[Ai("0x1b")](t,{commandName:Ai("0x14"),commandParams:[{forceValue:s}]})}))})),n._descriptionFactory[Ai("0x1")]((t=>{const{data:n}=t;if(n&&Ai("0x14")==n[Ai("0x15")]){const t=Qo(e,Ai("0x10"));return n[Ai("0x19")][0][Ai("0xa")]?{type:Ai("0x6"),content:Qo(e,"*Set format:* %0",t)}:{type:Ai("0x6"),content:Qo(e,"*Remove format:* %0",t)}}}))}}function Ii(t){return Ai("0x14")==t.parent[Ai("0xb")]}const Si=["ckbox","afterInit","get","plugins","commands","editor","enableCommand"];var Ri,vi;Ri=Si,vi=278,function(t){for(;--t;)Ri.push(Ri.shift())}(++vi);const Ni=function(t,e){return Si[t-=0]};class Li extends t.Plugin{[Ni("0x3")](){const t=this[Ni("0x0")];t[Ni("0x6")][Ni("0x4")](Ni("0x2"))&&t[Ni("0x5")][Ni("0x4")]("TrackChangesEditing")[Ni("0x1")](Ni("0x2"))}}const Mi=["document","label","blockName","editor","value","parent","checkChild","_descriptionFactory","*Set format:* %0","outdentCodeBlock","selection","toLowerCase","languages","schema","get","*Remove format:* %0","enableCommand","CodeBlock","isLimit","language","name","TrackChangesEditing","ELEMENT_CODE_BLOCK","formatBlock","format","find","indentCodeBlock","commandParams","plugins","filter","registerDescriptionCallback","model","config","commands","rootElement","from","getSelectedBlocks","change","has","forceValue","codeBlock"];var wi,Oi;wi=Mi,Oi=314,function(t){for(;--t;)wi.push(wi.shift())}(++Oi);const Fi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{afterInit(){const t=this[Fi("0x11")];if(!t[Fi("0x1")][Fi("0xb")](Fi("0x1f")))return;const e=t.plugins.get(Fi("0x23")),n=t.locale,o=t[Fi("0x5")][Fi("0x1c")](Fi("0xd"))[Fi("0x1a")],i=t[Fi("0x6")][Fi("0x1c")](Fi("0xd"));e.enableCommand(Fi("0x28")),e[Fi("0x1e")](Fi("0x17")),e.enableCommand("codeBlock",((n,r={})=>{const s=t[Fi("0x4")],x=t.model[Fi("0xe")][Fi("0x18")],a=r&&void 0!==r[Fi("0xc")]?r[Fi("0xc")]:!i[Fi("0x12")];let c;r[Fi("0x21")]||(r[Fi("0x21")]=o[0][Fi("0x21")]),c=a?Array[Fi("0x8")](x[Fi("0x9")]()).filter((t=>{return Bi(t)||(e=t,n=s[Fi("0x1b")],!e.is(Fi("0x7"))&&!n[Fi("0x20")](e)&&n[Fi("0x14")](e[Fi("0x13")],Fi("0xd")));var e,n})):Array[Fi("0x8")](x[Fi("0x9")]())[Fi("0x2")]((t=>Bi(t)));const l=R(c,s);s[Fi("0xa")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Fi("0xd"),commandParams:[{...r,forceValue:a}],formatGroupId:Fi("0x10")})}))})),e._descriptionFactory.registerElementLabel(Fi("0xd"),(t=>Qo(n,"ELEMENT_CODE_BLOCK",t))),e[Fi("0x15")][Fi("0x3")]((t=>{if(Fi("0x25")!=t.type)return;const e=n.t,{data:i}=t;if(!i||"codeBlock"!=i.commandName)return;const r=i.commandParams[0][Fi("0x21")],s=e(o[Fi("0x27")]((t=>t[Fi("0x21")]===r))[Fi("0xf")])[Fi("0x19")]();return i[Fi("0x0")][0][Fi("0xc")]?{type:Fi("0x26"),content:Qo(n,Fi("0x16"),Qo(n,Fi("0x24"),1)+" ("+s+")")}:{type:Fi("0x26"),content:Qo(n,Fi("0x1d"),Qo(n,Fi("0x24"),1))}}))}}function Bi(t){return Fi("0xd")==t[Fi("0x22")]}const Pi=["enableCommand","afterInit","addCommentThread","editor","has","CommentsEditing","TrackChangesEditing","get","plugins"];var Ui,ji;Ui=Pi,ji=195,function(t){for(;--t;)Ui.push(Ui.shift())}(++ji);const Gi=function(t,e){return Pi[t-=0]};class Hi extends t.Plugin{[Gi("0x4")](){const t=this[Gi("0x6")];t[Gi("0x2")][Gi("0x7")](Gi("0x8"))&&t[Gi("0x2")][Gi("0x1")](Gi("0x0"))[Gi("0x3")](Gi("0x5"))}}var Vi=n(181);const zi=["includes","span","getAttribute","schema","ck-suggestion-marker--active","createUIElement","markerName","writer","ck-suggestion-marker-","previousPosition","name","activeMarkers","listIndent","isLimit","listItem","mapper","createRangeOn","start","getWalker","TrackChangesEditing","getCustomProperty","isAtEnd","parent","get","nextSibling","item","test","plugins","getItems","addHighlight","markerRange","push","element","hasAttribute","addClass"];var Wi,Ki;Wi=zi,Ki=129,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};function Xi(t,e,n){const o=[];for(const i of e[qi("0x4")]())i[qi("0x9")](t)&&o.push(n[qi("0x1b")](i));return o}function $i(t,e,{showActiveMarker:n=!0}={}){const o=t[qi("0x3")][qi("0x22")](qi("0x1e"));return(i,r,s)=>{if(!s.consumable[qi("0x2")](r[qi("0x6")],i[qi("0x15")]))return;const x=r[qi("0x6")][qi("0x1d")](),a=r[qi("0x6")][qi("0x1c")],c=t.model[qi("0xe")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qi("0x1")];d=d||c.isContent(e);const n=s[qi("0x1a")].toViewElement(e);if(n&&n[qi("0x1f")](qi("0x5")))return;"elementEnd"==t.type&&c.isBlock(e)&&!c[qi("0x18")](e)&&(e[qi("0x0")]||a[qi("0x20")]?l&&l[qi("0x21")]==e||(l=e,f(t[qi("0x14")]),g=!0):u=u||t[qi("0x14")])}function f(t){const i=s[qi("0x12")][qi("0x10")](qi("0xc"),{class:qi("0x13")+e}),x=s.mapper.toViewPosition(t);n&&o[qi("0x16")][qi("0xb")](r[qi("0x11")])&&s[qi("0x12")][qi("0xa")](qi("0xf"),i),s[qi("0x12")].insert(x,i),s[qi("0x1a")].bindElementToMarker(i,r[qi("0x11")])}d||g||!u||f(u)}}const Zi=["writer","fromRange","data","merge","commands","batch","setSelection","enableCommand","get","options","end","markerName","markerNameToElements","plugins","forward","requires","downcastDispatcher","bind","uiElement","unit","lock","$graveyard","delete","createSelection","model","isCollapsed","rootName","start","editing","high","mapper","deleteForward","createRange","addMarker:suggestion:deletion","detach","editor","unbindElementFromMarkerName"];var Yi,Ji;Yi=Zi,Ji=258,function(t){for(;--t;)Yi.push(Yi.shift())}(++Ji);const Qi=function(t,e){return Zi[t-=0]};class tr extends t.Plugin{static get[Qi("0x10")](){return[Vi.Delete]}init(){const t=this[Qi("0x24")],e=t[Qi("0xe")][Qi("0x9")]("TrackChangesEditing");e[Qi("0x8")](Qi("0x17"));const n=t[Qi("0x5")].get("deleteForward");e[Qi("0x8")](Qi("0x20"),((e,o={})=>{const i=t.model[Qi("0x18")](t[Qi("0x19")].document.selection);i[Qi("0x1a")]&&t[Qi("0x19")].modifySelection(i,{direction:Qi("0xf"),unit:o[Qi("0x14")]});const r=i.getFirstRange(),x=s.LiveRange[Qi("0x2")](r);let a;e(o),a=Qi("0x16")==x.root[Qi("0x1b")]?t.model[Qi("0x21")](r[Qi("0x1c")]):t.model[Qi("0x21")](x.start,x.end),x[Qi("0x23")](),t[Qi("0x19")].enqueueChange(n.buffer[Qi("0x6")],(t=>{n.buffer[Qi("0x15")](),t[Qi("0x7")](t.createRange(a[Qi("0xb")])),n.buffer.unlock()}))})),t[Qi("0x1d")][Qi("0x11")].on(Qi("0x22"),$i(t,Qi("0x4")),{priority:Qi("0x1e")}),t[Qi("0x3")][Qi("0x11")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[Qi("0xa")].showSuggestionHighlights&&$i(t,"merge",{showActiveMarker:!1})[Qi("0x12")](this)(e,n,o)}),{priority:"high"}),t.editing.downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[Qi("0x1f")][Qi("0xd")](e.markerName);if(o)for(const t of o)t.is(Qi("0x13"))&&(n[Qi("0x1f")][Qi("0x0")](t,e[Qi("0xc")]),n[Qi("0x1")].remove(t))}),{priority:"high"})}}const er=["findIndex","get","indentList","setSelection","_descriptionFactory","numberedList","bulletedList","map","parent","*Format:* remove from %0","TrackChangesEditing","toUpperCase","formatInline","mergeListItemForward","detach","listItemId","model","ELEMENT_LIST_ITEM","listType","getSelectedBlocks","registerElementLabel","getFirstRange","type","list.multiBlock","locale","outdentList","nodeAfter","push","schema","afterInit","createRange","ELEMENT_BULLETED_LIST","previousSibling","forceValue","nextSibling","commandParams","markBlockFormat","value","formatBlock","from","getAttribute","mergeListItemBackward","*Merge:* %0","start","change","_LIST","refresh","end","document","deletion","*Change to:* %0","format","before","after","_suggestionFactory","markMultiRangeBlockFormat","next","splitListItemBefore","ELEMENT_","paragraph","accept","createPositionAt","commands","documentList","selection","editor","enableCommand","config","has","listIndent","execute","commandName","plugins"];var nr,or;nr=er,or=460,function(t){for(;--t;)nr.push(nr.shift())}(++or);const ir=function(t,e){return er[t-=0]};class rr extends t.Plugin{[ir("0x7")](){const t=this[ir("0x2b")];if(!t[ir("0x32")][ir("0x2e")]("DocumentListEditing"))return;const e=t[ir("0x2")],n=t[ir("0x32")].get(ir("0x3d")),o=t[ir("0x32")][ir("0x34")]("DocumentListUtils");function i(e){return()=>{const i=t[ir("0x28")].get(e);if(i[ir("0xf")]&&!t[ir("0x2d")][ir("0x34")](ir("0x1")))return void t[ir("0x30")](ir("0x25"),{});let r=Array[ir("0x11")](t[ir("0x43")].document[ir("0x2a")].getSelectedBlocks());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t.push(e);r=t}t[ir("0x43")].change((()=>{n[ir("0x21")](r,{commandName:e,commandParams:[{forceValue:!i[ir("0xf")]}],formatGroupId:"listType"},[],ir("0x29"))}))}}function r(e){return()=>{const o=function(t){let e=Array[ir("0x11")](t);const n=e[ir("0x33")]((t=>!t.hasAttribute(ir("0x42"))));return n>-1&&(e=e.slice(0,n)),e}(t[ir("0x43")][ir("0x1a")][ir("0x2a")][ir("0x46")]()),i=o[o.length-1],r=t[ir("0x43")].schema.isObject(i)?ir("0x1f"):ir("0x19"),s=t[ir("0x43")][ir("0x8")](t[ir("0x43")].createPositionAt(o[0],ir("0x1e")),t.model[ir("0x27")](i,r));t[ir("0x43")][ir("0x16")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[ir("0xc")];for(;t&&t[ir("0x12")](ir("0x2f"))>n.getAttribute(ir("0x2f"));)e.add(t),t=t[ir("0xc")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[ir("0x43")][ir("0x1a")][ir("0x2a")].getSelectedBlocks()[ir("0x22")]()[ir("0xf")],i=t[ir("0x43")].createPositionAt(o,ir("0x1e")),r=t[ir("0x43")][ir("0x27")](o,0),s=t.model.createRange(i,r);t[ir("0x43")][ir("0x16")]((()=>{n[ir("0xe")](s,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[ir("0x28")][ir("0x34")](ir("0x39")).value,o=t[ir("0x28")].get("numberedList").value;return ir("0x38")===e?n:o}n[ir("0x2c")](ir("0x38"),i("numberedList")),n[ir("0x2c")](ir("0x39"),i(ir("0x39"))),n[ir("0x2c")]("indentList",r(ir("0x35"))),n[ir("0x2c")](ir("0x3"),r("outdentList")),n[ir("0x2c")]("splitListItemAfter",x("splitListItemAfter")),n[ir("0x2c")](ir("0x23"),x(ir("0x23"))),n._descriptionFactory[ir("0x47")]((function(e){const n=!t.model[ir("0x6")].isObject(e),o=e[ir("0xa")],i=e[ir("0xc")],r=e[ir("0x12")](ir("0x42")),s=!o||o.getAttribute(ir("0x42"))!==r,x=!i||i[ir("0x12")](ir("0x42"))!==r;return n&&Boolean(r)&&s&&x}),(t=>Qo(e,ir("0x44"),t))),n[ir("0x37")].registerDescriptionCallback((function(n){if(ir("0x10")!=n[ir("0x0")]&&ir("0x3f")!=n[ir("0x0")])return;const{data:o}=n;if(!o)return;let i,r,s,x;switch(o[ir("0x31")]){case ir("0x39"):s=o[ir("0xd")][0].forceValue,x=a(o[ir("0x31")]),i=s?"*Format:* insert into %0":ir("0x3c"),!x&&t[ir("0x2d")][ir("0x34")](ir("0x1"))||(i=ir("0x1c")),r={type:"format",content:Qo(e,i,Qo(e,ir("0x9")))};break;case"numberedList":s=o[ir("0xd")][0][ir("0xb")],x=a(o[ir("0x31")]),i=s?"*Format:* insert into %0":ir("0x3c"),!x&&t[ir("0x2d")].get(ir("0x1"))||(i=ir("0x1c")),r={type:ir("0x1d"),content:Qo(e,i,Qo(e,"ELEMENT_NUMBERED_LIST"))};break;case"indentList":i="*Indent:* %0",r={type:"format",content:Qo(e,i,Qo(e,"ELEMENT_LIST_ITEM"))};break;case ir("0x3"):i=function(t){const e=t[ir("0x48")]();let n=e[ir("0x15")].nodeAfter;for(;n&&e.containsItem(n);){if(n[ir("0x12")](ir("0x2f"))>0)return!1;n=n[ir("0xc")]}return!0}(n)?Qo(e,ir("0x3c"),Qo(e,function(t){const e=t[ir("0x48")]().start[ir("0x4")];return ir("0x24")+e[ir("0x12")](ir("0x45"))[ir("0x3e")]()+ir("0x17")}(n))):Qo(e,"*Outdent:* %0",Qo(e,"ELEMENT_LIST_ITEM")),r={type:ir("0x1d"),content:i};break;case ir("0x13"):case ir("0x40"):!1===o.multipleBlocks&&(i=ir("0x14"),r={type:ir("0x1b"),content:Qo(e,i,Qo(e,ir("0x44")))})}return r})),n[ir("0x20")].registerCustomCallback(ir("0x10"),ir("0x29"),ir("0x26"),(function(e,n){const o=[];for(let n of e)n[ir("0x15")].nodeAfter===n[ir("0x19")][ir("0x3b")]&&(n=t.model[ir("0x8")](t[ir("0x43")][ir("0x27")](n[ir("0x15")][ir("0x4")],0))),o[ir("0x5")](n);t[ir("0x43")][ir("0x16")]((e=>{const i=t[ir("0x43")][ir("0x1a")].selection,r=Array[ir("0x11")](i.getRanges())[ir("0x3a")]((t=>s.LiveRange.fromRange(t)));e[ir("0x36")](o),t.commands[ir("0x34")](n[ir("0x31")])[ir("0x18")](),n.commandParams[ir("0x5")]({forceDefaultExecution:!0}),t[ir("0x30")](n.commandName,...n[ir("0xd")]),e[ir("0x36")](r);for(const t of r)t[ir("0x41")]()}))}))}}const sr=["markMultiRangeBlockFormat","commandParams","TrackChangesEditing","change","selection","push","handleListStartCommand","getListTypeFromListStyleType","listStyle","reversed","enableCommand","config","*Format:* set order to regular","plugins","_getTranslationKeyForListStyle","model","afterInit","toUpperCase","list.properties","_LIST_","editor","handleDescriptions","handleListReversedCommand","*Change to:* %0","styles","get","listReversed","filter","isFirstBlockOfListItem","DocumentListPropertiesEditing","listStart","length","getSelectedBlocks","from","_getSuggestionBlocks","startIndex","bind","ELEMENT_","format","formatBlock","commandName","type","_getSuggestionBlocksForListStyle","formatInline","listType","getAttribute","isListItemBlock","has","document","handleListStyleCommand","DocumentListUtils","registerDescriptionCallback","DocumentListPropertiesUtils","expandListBlocksToCompleteList","numbered"];var xr,ar;xr=sr,ar=212,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{[cr("0x18")](){if(!this[cr("0x1c")].plugins[cr("0x0")](cr("0x25")))return;const t=this.editor[cr("0x13")][cr("0x21")](cr("0x1a")),e=this[cr("0x1c")][cr("0x15")][cr("0x21")](cr("0xa"));t[cr("0x20")]&&e[cr("0x12")](cr("0x10"),this[cr("0x2")][cr("0x2c")](this)),t[cr("0x11")]&&e[cr("0x12")](cr("0x22"),this[cr("0x1e")][cr("0x2c")](this)),t.startIndex&&e[cr("0x12")](cr("0x26"),this[cr("0xe")][cr("0x2c")](this)),e._descriptionFactory[cr("0x4")](this[cr("0x1d")].bind(this))}[cr("0x2")](t,e={}){const n=this.editor[cr("0x15")][cr("0x21")](cr("0xa")),o=this[cr("0x32")]();this[cr("0x1c")].model[cr("0xb")]((()=>{n[cr("0x8")](o,{commandName:cr("0x10"),commandParams:[{type:e.type}],formatGroupId:cr("0x10")})}))}[cr("0x1e")](t,e={}){const n=this.editor.plugins[cr("0x21")]("TrackChangesEditing"),o=this.editor.plugins[cr("0x21")](cr("0x3")),i=this[cr("0x2a")]((t=>o[cr("0x36")](t)&&cr("0x7")===t.getAttribute(cr("0x34"))));null!==i&&this[cr("0x1c")].model.change((()=>{n[cr("0x8")](i,{commandName:cr("0x22"),commandParams:[{reversed:e[cr("0x11")]}],formatGroupId:cr("0x22")})}))}[cr("0xe")](t,e={}){const n=this[cr("0x1c")].plugins[cr("0x21")](cr("0xa")),o=this[cr("0x1c")][cr("0x15")][cr("0x21")](cr("0x3")),i=this[cr("0x2a")]((t=>o[cr("0x36")](t)&&cr("0x7")===t[cr("0x35")](cr("0x34"))));null!==i&&this[cr("0x1c")].model[cr("0xb")]((()=>{n[cr("0x8")](i,{commandName:cr("0x26"),commandParams:[{startIndex:e[cr("0x2b")]}],formatGroupId:cr("0x26")})}))}[cr("0x1d")](t){if(cr("0x2f")!=t.type&&cr("0x33")!=t[cr("0x31")])return;const e=this[cr("0x1c")].locale,{data:n}=t;if(!n)return;let o,i;switch(n[cr("0x30")]){case"listStyle":o=cr("0x1f"),i={type:cr("0x2e"),content:Qo(e,o,Qo(e,this[cr("0x16")](n[cr("0x9")][0][cr("0x31")])))};break;case cr("0x22"):o=n[cr("0x9")][0][cr("0x11")]?"*Format:* set order to reversed":cr("0x14"),i={type:cr("0x2e"),content:Qo(e,o)};break;case"listStart":o="*Format:* set start index to %0",i={type:"format",content:Qo(e,o,n.commandParams[0][cr("0x2b")])}}return i}[cr("0x32")](){const t=this.editor[cr("0x15")].get(cr("0x3"));let e=Array[cr("0x29")](this[cr("0x1c")][cr("0x17")][cr("0x1")][cr("0xc")].getSelectedBlocks());return e[cr("0xd")](...t[cr("0x6")](e)),e=[...new Set(e)],e}[cr("0x2a")](t){const e=this[cr("0x1c")][cr("0x15")][cr("0x21")](cr("0x3"));let n=Array[cr("0x29")](this[cr("0x1c")][cr("0x17")][cr("0x1")][cr("0xc")][cr("0x28")]())[cr("0x23")](t);if(!n[cr("0x27")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[cr("0x24")](t)&&o[cr("0xd")](t);return o}[cr("0x16")](t){return cr("0x2d")+this[cr("0x1c")][cr("0x15")].get(cr("0x5"))[cr("0xf")](t)[cr("0x19")]()+cr("0x1b")+t[cr("0x19")]().replace(/-/g,"_")}}var ur=n(331);const dr=["commands","afterExecute","end","change","markInsertion","createRange","get","high","downcastDispatcher","enter","detach","data","showSuggestionHighlights","editing","remove","addMarker:suggestion:insertion","createPositionAt","init","unbindElementFromMarkerName","TrackChangesEditing","split","setSelection","requires","fire","markerName","parent","model","mapper","removeMarker:suggestion:insertion","bind","writer"];var gr,fr;gr=dr,fr=489,function(t){for(;--t;)gr.push(gr.shift())}(++fr);const mr=function(t,e){return dr[t-=0]};class hr extends t.Plugin{static get[mr("0x1d")](){return[ur.Enter]}[mr("0x18")](){const t=this.editor,e=t.plugins.get(mr("0x1a")),n=t[mr("0x7")][mr("0xd")](mr("0x10"));e.enableCommand("enter",(()=>{t.model[mr("0xa")]((o=>{const i=t[mr("0x2")].document.selection,r=i.getFirstPosition(),x=s.LiveRange.fromRange(i.getFirstRange());if(n.enterBlock(o)){const n=t[mr("0x2")][mr("0x17")](r[mr("0x1")].nextSibling,0),i=o[mr("0xc")](r,n);e[mr("0xb")](i)}else o[mr("0x1c")](o[mr("0xc")](x[mr("0x9")]));x[mr("0x11")](),n[mr("0x1e")](mr("0x8"),{writer:o})}))})),t[mr("0x14")][mr("0xf")].on(mr("0x16"),$i(t,mr("0x1b")),{priority:mr("0xe")}),t[mr("0x14")][mr("0xf")].on(mr("0x4"),((t,e,n)=>{const o=n[mr("0x3")].markerNameToElements(e.markerName);if(o)for(const t of o)t.hasClass("ck-suggestion-marker-split")&&(n[mr("0x3")][mr("0x19")](t,e[mr("0x0")]),n[mr("0x6")][mr("0x15")](t))}),{priority:mr("0xe")}),t[mr("0x12")][mr("0xf")].on(mr("0x16"),((e,n,o)=>{o.options[mr("0x13")]&&$i(t,mr("0x1b"),{showActiveMarker:!1})[mr("0x5")](this)(e,n,o)}),{priority:mr("0xe")})}}const pr=["FindAndReplaceEditing","has","get","find","enableCommand","replaceAll","item","start","model","bind","_isInDeletionRange","findNext","getIntersection","end","afterInit","markers","suggestion:deletion","editor","plugins","createRange","findByTextCallback","getRange","string"];var br,Er;br=pr,Er=349,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]};class Tr extends t.Plugin{[_r("0xa")](){if(!this[_r("0xd")].plugins[_r("0x14")](_r("0x13")))return;const t=this[_r("0xd")][_r("0xe")].get("TrackChangesEditing");t[_r("0x0")](_r("0x16"),this.handleFindCommand[_r("0x5")](this)),t[_r("0x0")](_r("0x7")),t[_r("0x0")]("findPrevious"),t.enableCommand("replace"),t.enableCommand(_r("0x1"))}handleFindCommand(t,e,n={}){const o=this[_r("0xd")][_r("0xe")][_r("0x15")]("FindAndReplaceUtils");return t((t=>(_r("0x12")==typeof e?o[_r("0x10")](e,n):e)(t).filter((e=>!1===this[_r("0x6")](e,t[_r("0x2")])))),n)}[_r("0x6")](t,e){const n=this[_r("0xd")][_r("0x4")][_r("0xf")](this[_r("0xd")][_r("0x4")].createPositionAt(e,t[_r("0x3")]),this[_r("0xd")][_r("0x4")].createPositionAt(e,t[_r("0x9")]));for(const t of this[_r("0xd")].model[_r("0xb")].getMarkersGroup(_r("0xc")))if(null!==n[_r("0x8")](t[_r("0x11")]()))return!0;return!1}}const yr=["format","*Set font size:* %0","FontBackgroundColorEditing","registerAttributeLabel","label","type","config","normalizeSizeOptions","_enableDefaultAttributesIntegration","toLowerCase","fontBackgroundColor.colors","find","value","FontSizeEditing","FontSize","fontBackgroundColor","*Reset font background color*","*Set font color:* %0","get","FontColorEditing","*Set font family:* %0","FORMAT_FONT_SIZE","FORMAT_FONT_FAMILY","title","*Reset font size*","plugins","locale","has","commandParams","TrackChangesEditing","fontSize","*Set font background color:* %0","fontColor","model","registerDescriptionCallback","FontFamilyEditing","fontSize.options","fontFamily","_registerLegacyDescription","editor","_descriptionFactory","*Reset font family*","commandName","formatInline","FORMAT_FONT_BACKGROUND","afterInit"];var Cr,Ar;Cr=yr,Ar=329,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]},Ir=[{pluginName:kr("0x6"),commandName:kr("0x17")},{pluginName:kr("0x1c"),commandName:"fontFamily"},{pluginName:kr("0xc"),commandName:kr("0x19")},{pluginName:kr("0x29"),commandName:"fontBackgroundColor"}];class Sr extends t.Plugin{[kr("0x26")](){const t=this.editor[kr("0x13")],e=this[kr("0x20")][kr("0x12")][kr("0xb")](kr("0x16"));for(const{pluginName:t,commandName:n}of Ir)this[kr("0x20")].plugins[kr("0x14")](t)&&e[kr("0x1")](n,[n]);t.t,e[kr("0x21")][kr("0x2a")](kr("0x17"),Qo(t,kr("0xe"))),e._descriptionFactory[kr("0x2a")](kr("0x1e"),Qo(t,kr("0xf"))),e[kr("0x21")][kr("0x2a")](kr("0x19"),Qo(t,"FORMAT_FONT_COLOR")),e[kr("0x21")][kr("0x2a")](kr("0x8"),Qo(t,kr("0x25"))),this[kr("0x1f")]()}_registerLegacyDescription(){const t=this.editor,e=t[kr("0x13")];t[kr("0x12")][kr("0xb")](kr("0x16"))._descriptionFactory[kr("0x1b")]((t=>{const n=e.t;if(kr("0x24")!=t[kr("0x2c")])return;const{data:o}=t;if(null!=o){if(kr("0x17")==o[kr("0x23")]){const t=o[kr("0x15")][0].value;if(t){const o=n(this.editor[kr("0x12")][kr("0xb")](kr("0x7"))[kr("0x0")](this.editor[kr("0x2d")][kr("0xb")](kr("0x1d")))[kr("0x4")]((e=>e[kr("0x1a")]==t))[kr("0x10")]).toLowerCase();return{type:kr("0x27"),content:Qo(e,kr("0x28"),o)}}return{type:kr("0x27"),content:Qo(e,kr("0x11"))}}if(kr("0x1e")==o[kr("0x23")]){const t=o.commandParams[0][kr("0x5")];return t?{type:kr("0x27"),content:Qo(e,kr("0xd"),t)}:{type:kr("0x27"),content:Qo(e,kr("0x22"))}}if(kr("0x19")==o.commandName){const t=o[kr("0x15")][0][kr("0x5")];if(t){const o=(0,i.normalizeColorOptions)(this[kr("0x20")][kr("0x2d")].get("fontColor.colors"))[kr("0x4")]((e=>e[kr("0x1a")]==t));let r=t,s="";return o&&(r=o.label,s=n(r)[kr("0x2")]()),{type:kr("0x27"),content:Qo(e,kr("0xa"),s).trim(),color:{value:t,title:s||r}}}return{type:kr("0x27"),content:Qo(e,"*Reset font color*")}}if("fontBackgroundColor"==o[kr("0x23")]){const t=o.commandParams[0][kr("0x5")];if(t){const o=(0,i.normalizeColorOptions)(this.editor[kr("0x2d")][kr("0xb")](kr("0x3")))[kr("0x4")]((e=>e[kr("0x1a")]==t));let r=t,s="";return o&&(r=o[kr("0x2b")],s=n(r)[kr("0x2")]()),{type:kr("0x27"),content:Qo(e,kr("0x18"),s).trim(),color:{value:t,title:s||r}}}return{type:kr("0x27"),content:Qo(e,kr("0x9"))}}}}))}}const Rr=["afterInit","normalizeSizeOptions","formatBlock","plugins","boolean","fontSize.options","*Remove all formatting*","_registerLegacyDescription","toLowerCase","format","commandName","push","charAt","toUpperCase","commands","find","locale","join","get","editor","config","title","formatInline","type","TrackChangesEditing","registerDescriptionCallback","split","slice","label","fontBackgroundColor","copyFormat","FontSize"];var vr,Nr;vr=Rr,Nr=481,function(t){for(;--t;)vr.push(vr.shift())}(++Nr);const Lr=function(t,e){return Rr[t-=0]};class Mr extends t.Plugin{[Lr("0x1f")](){const t=this[Lr("0x12")],e=t.plugins[Lr("0x11")]("TrackChangesEditing"),n=t[Lr("0xd")][Lr("0x11")]("copyFormat"),o=t[Lr("0xd")].get("pasteFormat");n&&o&&(e._enableDefaultAttributesIntegration("pasteFormat"),e.enableCommand(Lr("0x1d")),this[Lr("0x6")]())}[Lr("0x6")](){const t=this[Lr("0x12")],e=t[Lr("0xf")];t[Lr("0x2")][Lr("0x11")](Lr("0x17"))._descriptionFactory[Lr("0x18")]((n=>{if(Lr("0x1")!=n.type&&Lr("0x15")!=n[Lr("0x16")])return;const{data:o}=n;if(o&&"pasteFormat"===o[Lr("0x9")]){const n=[],i=o.commandParams[0];for(const[e,o]of Object.entries(i))n[Lr("0xa")](wr(t,e,o));return n.length?{type:Lr("0x8"),content:Qo(e,"*Set format to:* %0",n[Lr("0x10")](", "))}:{type:Lr("0x8"),content:Qo(e,Lr("0x5"))}}}))}}function wr(t,e,n){const o=t[Lr("0xf")].t,r=e[Lr("0x19")](/(?=[A-Z])/)[Lr("0x10")](" "),s=o(r[Lr("0xb")](0)[Lr("0xc")]()+r[Lr("0x1a")](1))[Lr("0x7")]();if(Lr("0x3")==typeof n)return s;if("fontColor"===e||Lr("0x1c")===e){const e=(0,i.normalizeColorOptions)(t[Lr("0x13")][Lr("0x11")]("fontColor.colors"))[Lr("0xe")]((t=>t.model==n));return s+" ("+(e?o(e[Lr("0x1b")])[Lr("0x7")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Lr("0x2")][Lr("0x11")](Lr("0x1e"))[Lr("0x0")](t[Lr("0x13")][Lr("0x11")](Lr("0x4"))).find((t=>t.model==n));return s+" ("+(e?o(e[Lr("0x14")]).toLowerCase():n)+")"}return s+" ("+n+")"}const Or=["_getHeadingLevel","formatBlock","HeadingEditing","editor","get","locale","value","commandParams","match","name","model","_headingOptions","paragraph","ELEMENT_HEADING","*Change to:* %0","has","_registerLegacyDescription","plugins","registerElementLabel","find","heading","view","registerDescriptionCallback","config","ELEMENT_HEADING_CUSTOM","title","_descriptionFactory","_enableDefaultAttributesIntegration","afterInit","commandName","format","TrackChangesEditing"];var Fr,Dr;Fr=Or,Dr=187,function(t){for(;--t;)Fr.push(Fr.shift())}(++Dr);const Br=function(t,e){return Or[t-=0]};class Pr extends t.Plugin{[Br("0x1")](){const t=this[Br("0x8")];if(!t[Br("0x16")][Br("0x14")](Br("0x7")))return;this[Br("0x10")]=t[Br("0x1c")].get("heading.options");const e=t.locale,n=t[Br("0x16")][Br("0x9")](Br("0x4"));n[Br("0x0")]("heading");for(const t of this[Br("0x10")])Br("0x11")!=t.model&&n[Br("0x1f")][Br("0x17")](t[Br("0xf")],(n=>{const o=this[Br("0x5")](t[Br("0xf")]);return null!==o?(s=n,x=o,Qo(e,Br("0x12"),[s,x])):(i=n,r=t[Br("0x1e")],Qo(e,"ELEMENT_HEADING_CUSTOM",[i,r]));var i,r,s,x}));this[Br("0x15")]()}[Br("0x15")](){const t=this[Br("0x8")],e=t[Br("0xa")];t[Br("0x16")][Br("0x9")](Br("0x4"))._descriptionFactory[Br("0x1b")]((t=>{if(Br("0x6")!=t.type)return;const{data:n}=t;if(n&&Br("0x19")==n[Br("0x2")]){const t=n[Br("0xc")][0][Br("0xb")],s=this[Br("0x5")](t);if(null!==s)return{type:Br("0x3"),content:Qo(e,"*Change to:* %0",(1,r=s,Qo(e,Br("0x12"),[1,r])))};const x=this._headingOptions[Br("0x18")]((e=>e[Br("0xf")]===t))[Br("0x1e")];return{type:"format",content:Qo(e,Br("0x13"),(o=1,i=x,Qo(e,Br("0x1d"),[o,i])))}}var o,i,r}))}[Br("0x5")](t){var e,n;const o=t[Br("0xd")](/^heading(\d+)/);if(o)return o[1];const i=null===(e=this[Br("0x10")])||void 0===e?void 0:e[Br("0x18")]((e=>e.model==t));if(i&&i[Br("0x1a")]){const t=i[Br("0x1a")],e=(null!==(n=t[Br("0xe")])&&void 0!==n?n:t)[Br("0xd")](/^h(\d+)/);if(e)return e[1]}return null}}const Ur=["_enableDefaultAttributesIntegration","commandName","highlight","format","TrackChangesEditing","_registerLegacyDescription","color","registerAttributeLabel","locale","editor","toLowerCase","commandParams","_descriptionFactory","title","value","FORMAT_HIGHLIGHT","type","HighlightEditing","config","get","formatInline","*Set highlight:* %0","find","highlight.options","has","plugins","registerDescriptionCallback"];var jr,Gr;jr=Ur,Gr=389,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Hr=function(t,e){return Ur[t-=0]};class Vr extends t.Plugin{afterInit(){const t=this[Hr("0x19")];if(!t[Hr("0xe")][Hr("0xd")](Hr("0x6")))return;const e=t[Hr("0xe")][Hr("0x8")](Hr("0x14")),n=t[Hr("0x18")];e[Hr("0x10")](Hr("0x12"),[Hr("0x12")]),e._descriptionFactory[Hr("0x17")]("highlight",Qo(n,Hr("0x4"))),this._registerLegacyDescription()}[Hr("0x15")](){const t=this[Hr("0x19")],e=t.locale;t.plugins[Hr("0x8")]("TrackChangesEditing")[Hr("0x1")][Hr("0xf")]((n=>{if(Hr("0x9")!=n[Hr("0x5")])return;const{data:o}=n;if(o&&Hr("0x12")==o[Hr("0x11")]){const n=e.t,i=o[Hr("0x0")][0][Hr("0x3")];if(i){const o=t[Hr("0x7")][Hr("0x8")](Hr("0xc"))[Hr("0xb")]((t=>t.model==i)),r=n(o.title)[Hr("0x1a")]();return{type:"format",content:Qo(e,Hr("0xa"),r),color:{value:o[Hr("0x16")],title:o[Hr("0x2")]}}}return{type:Hr("0x13"),content:Qo(e,"*Remove highlight*",Qo(e,Hr("0x4")))}}}))}}const zr=["showSuggestionHighlights","conversion","enableCommand","has","_descriptionFactory","createEmptyElement","registerElementLabel","createPositionAt","elementToStructure","ELEMENT_HORIZONTAL_LINE","horizontalLine","editor","div","createContainerElement","TrackChangesEditing","ck-horizontal-line","plugins","get"];var Wr,Kr;Wr=zr,Kr=207,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class Xr extends t.Plugin{afterInit(){const t=this[qr("0x2")];if(!t.plugins[qr("0xc")]("HorizontalLineEditing"))return;t[qr("0x7")].get(qr("0x5"))[qr("0xb")](qr("0x1"));const e=t[qr("0x7")][qr("0x8")](qr("0x5")),n=t.locale;e[qr("0xd")][qr("0xf")]("horizontalLine",(t=>Qo(n,qr("0x0"),t))),t[qr("0xa")].for("dataDowncast")[qr("0x11")]({model:qr("0x1"),view:(t,{writer:e,options:n})=>{if(!n[qr("0x9")])return null;const o=e[qr("0x4")](qr("0x3")),i=e[qr("0xe")]("hr");return e.addClass(qr("0x6"),o),e.insert(e[qr("0x10")](o,0),i),o},converterPriority:"high"})}}const $r=["start","plugins","ELEMENT_HTML_EMBED","nodeAfter","get","rawHtml","registerDescriptionCallback","HtmlEmbed","locale","element","registerElementLabel","attribute","*Change %0 content*","value","_descriptionFactory","type","key","editor","htmlEmbed","format","getFirstRange","commandName","_enableDefaultAttributesIntegration","TrackChangesEditing"];var Zr,Yr;Zr=$r,Yr=192,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const Jr=function(t,e){return $r[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x11")];if(!t[Jr("0x1")].has(Jr("0x7")))return;const e=t.plugins.get(Jr("0x17")),n=t[Jr("0x8")];e[Jr("0xe")][Jr("0xa")]("rawHtml",(t=>Qo(n,Jr("0x2"),t))),e[Jr("0x16")](Jr("0x12"),[],[Jr("0xd")]),e[Jr("0xe")][Jr("0x6")]((t=>{if(Jr("0xb")!=t[Jr("0xf")])return;const{data:e}=t;if(e&&"value"==e[Jr("0x10")]&&t[Jr("0x14")]()[Jr("0x0")][Jr("0x3")].is(Jr("0x9"),Jr("0x5"))){const t=Qo(n,Jr("0x2"));return{type:Jr("0x13"),content:Qo(n,Jr("0xc"),t)}}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this.editor,e=t[Jr("0x8")];t.plugins[Jr("0x4")](Jr("0x17"))._descriptionFactory[Jr("0x6")]((t=>{if("formatBlock"!=t[Jr("0xf")])return;const{data:n}=t;if(n&&"htmlEmbed"==n[Jr("0x15")]){const t=Qo(e,"ELEMENT_HTML_EMBED");return{type:Jr("0x13"),content:Qo(e,"*Change %0 content*",t)}}}))}}const ts=["key","ImageUtils","_findSuggestions","registerAttributeLabel","afterInit","*Set image width:* %0","ImageEditing","TrackChangesEditing","findIndex","type","_enableDefaultAttributesIntegration","getCaptionFromImageModelElement","nodeBefore","imageInline","toNext","model","has","removeObject","imageStylePreApply","ImageCaptionUtils","addObject","find","resizeImage","detach","isCollapsed","Block image to inline image","enableCommand","registerDescriptionCallback","markDeletion","insertion","imageCaption","isBefore","ELEMENT_INLINE_IMAGE","ImageCaptionEditing","format","registerElementLabel","length","locale","editor","createRangeOn","getNearestSelectionRange","newValue","plugins","registerCustomCallback","discard","filter","ELEMENT_CAPTION","subType","schema","insertImage","deletion","*Set image text alternative:* %0","_descriptionFactory","formatInline","getContainedElement","attribute","convertBlockImageToInline","getSuggestionCallback","isEqual","accept","getFirstRange","imageTypeInline","commandParams","*Reset image width*","toggleImageCaption","_suggestionFactory","selection","get","isIntersecting","document","createRange","markBlockFormat","change","convertInlineImageToBlock","element","markInsertion","backward","ImageTextAlternativeEditing","join","ImageInlineEditing","uploadImage","start","isBlockImage","imageBlock","end","previous","*Remove image text alternative*","alt","fromPosition","imageTextAlternative","commandName","formatBlock","chain","caption","getClosestSelectedImageElement","ImageBlockEditing"];var es,ns;es=ts,ns=405,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class is extends t.Plugin{[os("0x4f")](){const t=this.editor;if(!t[os("0x15")].has(os("0x51")))return;const e=t[os("0x15")][os("0x2e")]("TrackChangesEditing"),n=t.plugins.get(os("0x4c")),o=t[os("0x10")];e.enableCommand(os("0x1c")),e[os("0x1f")][os("0xe")](os("0x3e"),(t=>Qo(o,"ELEMENT_IMAGE",t))),e[os("0x1f")][os("0xe")](os("0x58"),(t=>Qo(o,os("0xb"),t))),e[os("0x1f")][os("0xe")](os("0x48"),(()=>Qo(o,os("0x19")))),t[os("0x15")][os("0x5b")]("ImageUploadEditing")&&e[os("0x5")](os("0x3b")),t.plugins[os("0x5b")](os("0x4a"))&&t[os("0x15")][os("0x5b")](os("0x3a"))&&(e[os("0x5")](os("0x28"),((o,i)=>{const r=n[os("0x49")](t[os("0x5a")].document.selection);t.model[os("0x33")]((()=>{e.markBlockFormat(r,{commandName:os("0x28"),commandParams:[i]},[],os("0x23"))}))})),e[os("0x5")]("imageTypeBlock",((o,i)=>{t.model[os("0x33")]((r=>{let x=n[os("0x49")](t.model.document.selection),a=r[os("0x12")](x);const c=s.LivePosition[os("0x43")](a[os("0x3c")],"toPrevious"),l=s.LivePosition[os("0x43")](a[os("0x3f")],os("0x59"));e.forceDefaultExecution((()=>o(i))),x=n[os("0x49")](t.model[os("0x30")][os("0x2d")]),a=r[os("0x12")](x);const u=r[os("0x31")](c,l);c[os("0x2")](),l[os("0x2")](),e[os("0x32")](x,{commandName:os("0x28"),commandParams:[i]},[],"convertInlineImageToBlock"),u[os("0x3c")][os("0xa")](a[os("0x3c")])&&e.markInsertion(r[os("0x31")](u.start,a[os("0x3c")]),os("0x34")),a[os("0x3f")][os("0xa")](u[os("0x3f")])&&e[os("0x36")](r.createRange(a[os("0x3f")],u.end),"convertInlineImageToBlock")}))})),e._suggestionFactory.registerCustomCallback(os("0x46"),os("0x34"),os("0x39"),(()=>!1)),e[os("0x2c")][os("0x16")](os("0x46"),"convertInlineImageToBlock",os("0x26"),(()=>!1)),e._suggestionFactory[os("0x16")](os("0x46"),os("0x34"),os("0x17"),e[os("0x2c")].getSuggestionCallback("formatBlock","",os("0x26"))),e._suggestionFactory[os("0x16")]("insertion",os("0x34"),os("0x39"),(()=>!1)),e[os("0x2c")].registerCustomCallback(os("0x8"),"convertInlineImageToBlock",os("0x17"),(([n])=>{const o=e[os("0x2c")][os("0x24")](os("0x8"),"",os("0x17"));let i=n[os("0x3c")],r=n[os("0x3f")];const s=t.model[os("0x1b")][os("0x13")](i,os("0x37")),x=t[os("0x5a")].schema[os("0x13")](r,"forward");s[os("0x3")]&&(i=s[os("0x3c")]),x[os("0x3")]&&(r=x[os("0x3f")]),o([t[os("0x5a")].createRange(i,r)])})),e._suggestionFactory[os("0x16")]("formatBlock",os("0x34"),"chain",x),e[os("0x2c")][os("0x16")](os("0x8"),os("0x34"),os("0x47"),x)),t[os("0x15")].has(os("0xc"))&&(e[os("0x5")](os("0x2b"),((o,i)=>{const r=t[os("0x15")][os("0x2e")](os("0x5e"));let s=n[os("0x49")](t[os("0x5a")][os("0x30")][os("0x2d")]),x=r[os("0x56")](s);t[os("0x5a")][os("0x33")]((()=>{if(x)return void e[os("0x7")](t[os("0x5a")][os("0x12")](x));const a=n[os("0x3d")](s);o(i),s=n.getClosestSelectedImageElement(t[os("0x5a")][os("0x30")][os("0x2d")]),x=r[os("0x56")](s),e[os("0x36")](t.model[os("0x12")](x),a?null:os("0x9"))}))})),e[os("0x2c")][os("0x16")](os("0x8"),os("0x9"),"chain",x));const i=[{type:os("0x46"),subType:os("0x5d")},{type:os("0x8"),subType:"imageCaption"},{type:os("0x46"),subType:os("0x34")},{type:"insertion",subType:os("0x34")}];function r(t,o){const r=i[os("0x53")]((({type:e,subType:n})=>t[os("0x54")]==e&&t[os("0x1a")]==n)),s=i.findIndex((({type:t,subType:e})=>o[os("0x54")]==t&&o[os("0x1a")]==e));if(r<0||s<0)return!1;const x=t[os("0x27")](),a=o.getFirstRange();if((0==r||1==r)&&2==s&&x[os("0x2f")](a))return!0;if(2==r&&3==s){const t=e[os("0x4d")](x,os("0x8"))[os("0x18")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[os("0x1a")]));if(t.length>1&&a[os("0x3f")].isEqual(x.start))return!0;if(1==t[os("0xf")]&&(x[os("0x3c")][os("0x25")](a[os("0x3f")])||x[os("0x3f")].isEqual(a[os("0x3c")])))return!0}if(3==r&&3==s&&x[os("0x3c")].isBefore(a[os("0x3c")])){const t=x[os("0x3f")].nodeAfter,e=a[os("0x3c")][os("0x57")];return n[os("0x3d")](t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[os("0x15")][os("0x5b")]("ImageResize")&&(e[os("0x55")](os("0x1"),[],["resizedWidth"]),e[os("0x1f")][os("0x4e")]("resizedWidth",Qo(o,"FORMAT_IMAGE_SIZE"))),t[os("0x15")].has(os("0x38"))&&e._enableDefaultAttributesIntegration(os("0x44"),[],["alt"]),e._descriptionFactory[os("0x6")]((t=>{if(i[os("0x0")]((({type:e,subType:n})=>t[os("0x54")]==e&&t.subType==n)))return t[os("0x40")]?{}:void 0})),e._descriptionFactory[os("0x6")]((t=>{if("insertion"==t[os("0x54")]||os("0x1d")==t[os("0x54")]){const e=t[os("0x21")]();if(e&&e.is(os("0x35"),os("0x48")))return{type:os("0x8")==t[os("0x54")]?os("0x5f"):os("0x5c"),element:e,quantity:1}}})),e[os("0x1f")][os("0x6")]((t=>os("0x46")==t.type&&os("0x34")==t[os("0x1a")]?{type:os("0xd"),content:"Inline image to block image"}:os("0x46")==t[os("0x54")]&&"convertBlockImageToInline"==t[os("0x1a")]?{type:os("0xd"),content:os("0x4")}:void 0)),e[os("0x1f")][os("0x6")]((t=>{if(os("0x22")!=t[os("0x54")])return;const{data:e}=t;if(!e||os("0x42")!=e[os("0x4b")])return;const n=e[os("0x14")];return n?{type:os("0xd"),content:Qo(o,"*Set image text alternative:* %0",'"'+n+'"')}:{type:os("0xd"),content:Qo(o,os("0x41"))}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[os("0x11")],e=t[os("0x10")];t[os("0x15")][os("0x2e")](os("0x52"))[os("0x1f")].registerDescriptionCallback((t=>{if("formatBlock"!=t[os("0x54")]&&os("0x20")!=t.type)return;const{data:n}=t;if(n){if(os("0x44")==n[os("0x45")]){const t=n[os("0x29")][0][os("0x14")];return t?{type:os("0xd"),content:Qo(e,os("0x1e"),'"'+t+'"')}:{type:os("0xd"),content:Qo(e,os("0x41"))}}if(os("0x1")==n[os("0x45")]){const t=n[os("0x29")][0].width;return t?{type:os("0xd"),content:Qo(e,os("0x50"),t)}:{type:os("0xd"),content:Qo(e,os("0x2a"))}}}}))}}const rs=["_descriptionFactory","ImageEditing","formatBlock","type","commandName","getSuggestionCallback","locale","src","attribute","_handleLegacySuggestions","newValue","discard","accept","TrackChangesEditing","has","editor","_registerLegacyDescription","get","plugins","formatInline","*Replace image URL*","_enableDefaultAttributesIntegration","registerCustomCallback","afterInit","oldValue","format","replaceImageSource","_suggestionFactory"];var ss,xs;ss=rs,xs=412,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x3")](){if(!this[as("0x17")][as("0x1a")][as("0x16")](as("0x9")))return;const t=this[as("0x17")].locale,e=this.editor[as("0x1a")][as("0x19")](as("0x15"));e[as("0x1")](as("0x6"),[],[as("0xf")]),e[as("0x8")].registerDescriptionCallback((e=>{if(as("0x10")!=e.type)return;const{data:n}=e;return n&&as("0xf")==n.key?n[as("0x12")]&&n[as("0x4")]?{type:as("0x5"),content:Qo(t,as("0x0"))}:{type:"format",content:""}:void 0})),this._handleLegacySuggestions()}[as("0x11")](){const t=this[as("0x17")].plugins[as("0x19")](as("0x15"));t._suggestionFactory[as("0x2")](as("0xa"),as("0x6"),as("0x14"),t[as("0x7")][as("0xd")](as("0xa"),null,"discard")),t[as("0x7")][as("0x2")](as("0xa"),as("0x6"),as("0x13"),t[as("0x7")][as("0xd")]("formatBlock",null,as("0x14"))),this[as("0x18")]()}[as("0x18")](){const t=this.editor,e=t[as("0xe")];t.plugins.get("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[as("0xb")]&&as("0x1b")!=t[as("0xb")])return;const{data:n}=t;return n&&"replaceImageSource"==n[as("0xc")]?{type:"format",content:Qo(e,"*Format:* replace image URL")}:void 0}))}}const ls=["FORMAT_SIDE_IMAGE","normalizedStyles","nodeBefore","_findSuggestions","get","getClosestSelectedImageElement","registerDescriptionCallback","author","commandName","discardSuggestion","commands","isBefore","_suggestionFactory","imageTypeBlock","formatInline","next","commandReversedParams","hasSuggestion","subType","from","findIndex","getFirstRange","filter","enableCommand","editor","imageStylePreApply","imageStyle","refresh","end","isEqual","accept","title","document","has","ImageStyleEditing","ImageUtils","registerCustomCallback","setImageNaturalSizeAttributes","isBlockImage","imageStylePostApply","value","_descriptionFactory","change","type","join","createRangeOn","getContainedElement","selection","plugins","start","commandParams","Users","chain","afterInit","toLowerCase","isInContent","imageCaption","newRange","convertInlineImageToBlock","TrackChangesEditing","isInlineImage","getSuggestions","insertion","discard","*Format:* %0","isOwn","model","imageTypeInline","formatBlock","getSuggestion","format","markBlockFormat","shouldConvertImageType","forEach","head","name","length"];var us,ds;us=ls,ds=297,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x40")](){const t=this[gs("0x23")];if(!t.plugins[gs("0x2c")]("ImageStyleEditing"))return;const n=t[gs("0x3b")].get(gs("0x46")),o=t.plugins[gs("0xf")](gs("0x2e")),i={};n[gs("0x22")](gs("0x25"),((i,r)=>{const s=t[gs("0x3b")][gs("0xf")](gs("0x3e")).me,x=t[gs("0x15")][gs("0xf")]("imageStyle");let a=o[gs("0x10")](t[gs("0x0")].document[gs("0x3a")]),c=t[gs("0x0")][gs("0x38")](a),l=x.value;if(l==r[gs("0x33")])return;const u={commandName:gs("0x25"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[gs("0x35")]((()=>{if(n[gs("0x48")]()[gs("0x21")]((t=>t[gs("0x42")]&&s==t[gs("0x12")]&&(gs("0x2")==t.type||"formatInline"==t[gs("0x36")])&&(gs("0x24")==t[gs("0x1d")]||gs("0x32")==t.subType)&&t[gs("0x20")]()[gs("0x28")](c)))[gs("0x7")]((t=>n[gs("0x14")](t[gs("0x8")]))),a=o[gs("0x10")](t[gs("0x0")][gs("0x2b")][gs("0x3a")]),c=t.model[gs("0x38")](a),x.refresh(),t[gs("0x15")][gs("0xf")](gs("0x1"))[gs("0x26")](),t.commands[gs("0xf")](gs("0x18"))[gs("0x26")](),l=x[gs("0x33")],l!=r.value)return o[gs("0x47")](a)&&x[gs("0x6")](r[gs("0x33")],a)?(i({...r,setImageSizes:!1}),a=o[gs("0x10")](t[gs("0x0")][gs("0x2b")][gs("0x3a")]),void n[gs("0x5")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o.isBlockImage(a)?n.markBlockFormat(a,u,[],gs("0x32")):n.markInlineFormat(c,u,gs("0x32")))}))}));for(const e of t[gs("0x3b")][gs("0xf")](gs("0x2d"))[gs("0xc")])i[e[gs("0x9")]]=e[gs("0x2a")][gs("0x41")]();n[gs("0x17")][gs("0x2f")](gs("0x2"),gs("0x24"),gs("0x37"),(()=>!1)),n[gs("0x17")][gs("0x2f")](gs("0x2"),gs("0x32"),gs("0x37"),(()=>!1)),n._suggestionFactory[gs("0x2f")](gs("0x19"),gs("0x32"),"join",(()=>!1)),n._suggestionFactory[gs("0x2f")]("formatBlock","imageStylePreApply",gs("0x29"),(([t])=>{o[gs("0x30")](t[gs("0x39")]())})),n[gs("0x17")].registerCustomCallback("formatBlock",gs("0x24"),gs("0x4a"),((t,e)=>{n[gs("0x17")].getSuggestionCallback(gs("0x2"),"",gs("0x29"))(t,{commandName:e[gs("0x13")],commandParams:e[gs("0x1b")]})})),n[gs("0x17")].registerCustomCallback(gs("0x2"),"imageStylePreApply",gs("0x3f"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:gs("0x2"),subType:gs("0x24")},{type:gs("0x49"),subType:"imageCaption"},{type:gs("0x2"),subType:"convertInlineImageToBlock"},{type:gs("0x49"),subType:"convertInlineImageToBlock"}];function s(t,e){const i=r[gs("0x1f")]((({type:e,subType:n})=>t[gs("0x36")]==e&&t[gs("0x1d")]==n)),s=r[gs("0x1f")]((({type:t,subType:n})=>e[gs("0x36")]==t&&e[gs("0x1d")]==n));if(i<0||s<0)return!1;const x=t.getFirstRange(),a=e.getFirstRange();if((0==i||1==i)&&2==s&&x.isIntersecting(a))return!0;if(2==i&&3==s){const t=n[gs("0xe")](x,gs("0x49"))[gs("0x21")]((({suggestion:t,meta:e})=>e[gs("0x4c")]&&gs("0x45")==t[gs("0x1d")]));if(t.length>1&&a[gs("0x27")][gs("0x28")](x.start))return!0;if(1==t[gs("0xa")]&&(x[gs("0x3c")].isEqual(a[gs("0x27")])||x[gs("0x27")][gs("0x28")](a[gs("0x3c")])))return!0}if(3==i&&3==s&&x.start[gs("0x16")](a[gs("0x3c")])){const t=x[gs("0x27")].nodeAfter,e=a[gs("0x3c")][gs("0xd")];return o[gs("0x31")](t)&&t===e}return!1}t[gs("0x0")][gs("0x2b")].registerPostFixer((()=>{let e=!1;const i=Array[gs("0x1e")](t[gs("0x0")][gs("0x2b")].differ.getChangedMarkers());for(const{name:t,data:r}of i){const{group:i,type:s,subType:x,id:a}=n._splitMarkerName(t);if("suggestion"==i&&n[gs("0x1c")](a)){if(gs("0x2")==s&&("imageStylePreApply"==x||gs("0x32")==x)){const t=n[gs("0x3")](a);if(r[gs("0x44")]){const i=t[gs("0x20")]()[gs("0x39")]();if(o[gs("0x31")](i))continue;n[gs("0x14")](t),e=!0}}if(gs("0x49")==s&&gs("0x43")==x&&!r[gs("0x44")]){const t=n.getSuggestion(a);t[gs("0x1a")]&&t.next[gs("0x42")]&&(n.discardSuggestion(t[gs("0x1a")]),e=!0)}}}return e})),this._registerLegacyDescription(i)}_registerLegacyDescription(t){const e=this[gs("0x23")],n=e.locale;e.plugins.get(gs("0x46"))[gs("0x34")][gs("0x11")]((e=>{if(gs("0x2")!=e[gs("0x36")]&&"formatInline"!=e[gs("0x36")])return;const{data:o}=e;if(!o||"imageStyle"!=o[gs("0x13")])return;const i=o[gs("0x3d")][0][gs("0x33")];return r="side"===i?Qo(n,gs("0xb")):t[i]||i,{type:gs("0x4"),content:Qo(n,gs("0x4b"),r)};var r}))}}const ms=["_handleImportedData","execute","commands","dataInsert","afterInit","enableCommand","editor","trackChanges","Users","TrackChangesEditing","_trackChangesExecuted","collaboration_features","get","_trackChangesValueDuringImport","plugins","listenTo","importWord","value","lowest"];var hs,ps;hs=ms,ps=398,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[bs("0xb")]=!1}[bs("0x5")](){const t=this[bs("0x7")],e=t.commands[bs("0xd")](bs("0x11")),n=t[bs("0x3")][bs("0xd")](bs("0x8"));e&&(e.on("execute",((t,[,e])=>{this[bs("0xe")]=n[bs("0x12")],e[bs("0xc")].track_changes=!this[bs("0xe")]}),{priority:"high"}),this[bs("0x10")](e,bs("0x4"),this[bs("0x1")].bind(this)),this[bs("0x10")](e,bs("0x4"),(()=>{this[bs("0xb")]&&(n[bs("0x2")](),this[bs("0xb")]=!1)}),{priority:bs("0x0")}),t.plugins.get(bs("0xa"))[bs("0x6")](bs("0x11")))}[bs("0x1")](t,e){const{suggestions:n}=e,o=this[bs("0x7")][bs("0x3")].get(bs("0x8")),i=o[bs("0x12")];this[bs("0xe")]!==i&&(o.execute(),this._trackChangesExecuted=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const i={id:t,type:e,authorId:this.editor[bs("0xf")][bs("0xd")](bs("0x9")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:bs("0x11")}}};this[bs("0x7")][bs("0xf")][bs("0xd")](bs("0xa"))._setSuggestionData(i)}))}}const _s=["has","getItems","editor","_registerLegacyDescription","getItemLabel","*Indent:* %0","enableCommand","blockIndent","plugins","locale","_descriptionFactory","outdentBlock","FORMAT_INDENT","outdent","commandName","TrackChangesEditing","indentBlock","IndentBlock","registerAttributeLabel","_enableDefaultAttributesIntegration","get","_registerBlockAttribute","format"];var Ts,ys;Ts=_s,ys=269,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{afterInit(){const t=this[Cs("0x9")],e=t.plugins.get(Cs("0x16"));if(t[Cs("0xf")][Cs("0x7")]("IndentEditing")&&(e[Cs("0xd")]("indent"),e[Cs("0xd")](Cs("0x14"))),t.plugins[Cs("0x7")](Cs("0x1")))for(const t of["indentBlock",Cs("0x12")])e[Cs("0x3")](t);const n=t[Cs("0x10")];e[Cs("0x5")](Cs("0xe")),e[Cs("0x11")][Cs("0x2")](Cs("0xe"),Qo(n,Cs("0x13"))),this[Cs("0xa")]()}[Cs("0xa")](){const t=this.editor,e=t[Cs("0x10")],n=t[Cs("0xf")][Cs("0x4")]("TrackChangesEditing");n[Cs("0x11")].registerDescriptionCallback((t=>{if("formatBlock"!=t.type)return;const{data:o}=t;if(!o)return;if(Cs("0x0")!=o[Cs("0x15")]&&"outdentBlock"!=o[Cs("0x15")])return;const i=t[Cs("0x8")]()[0],r=n._descriptionFactory[Cs("0xb")](i);return"indentBlock"==o[Cs("0x15")]?{type:Cs("0x6"),content:Qo(e,Cs("0xc"),r)}:Cs("0x12")==o[Cs("0x15")]?{type:Cs("0x6"),content:Qo(e,"*Outdent:* %0",r)}:void 0}))}}var ks,Is,Ss=["requires","get","init","input"];ks=Ss,Is=177,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Rs=function(t,e){return Ss[t-=0]};class vs extends t.Plugin{static get[Rs("0x3")](){return[Vi.Input]}[Rs("0x1")](){this.editor.plugins[Rs("0x0")]("TrackChangesEditing").enableCommand(Rs("0x2"))}}const Ns=["newValue","LinkEditing","unlink","*Set link:* %0","manualDecorators","_registerLegacyDescription","locale","format","*Remove link*","has","label","formatInline","type","link","TrackChangesEditing","get","key","afterInit","link (","commandParams","_enableDefaultAttributesIntegration","registerDescriptionCallback","editor","toLowerCase","commands","plugins","linkHref","_descriptionFactory"];var Ls,Ms;Ls=Ns,Ms=119,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0xa")](){const t=this.editor;if(!t[ws("0x12")][ws("0x2")](ws("0x16")))return;const e=t[ws("0x12")][ws("0x8")](ws("0x7")),n=t[ws("0x11")].get(ws("0x6"));e[ws("0xd")]("link",[ws("0x13"),...n.manualDecorators.map((t=>t.id))]),e[ws("0xd")](ws("0x17"));for(const t of n[ws("0x19")])e[ws("0x14")].registerAttributeLabel(t.id,ws("0xb")+t[ws("0x3")][ws("0x10")]()+")");e[ws("0x14")][ws("0xe")]((e=>{if("attribute"!=e[ws("0x5")])return;const{data:n}=e;if(!n||ws("0x13")!=n[ws("0x9")])return;const o=n[ws("0x15")],i=t[ws("0x1b")];return{type:ws("0x0"),content:null==o?Qo(i,"*Remove link*"):Qo(i,ws("0x18"),'"'+o+'"')}})),this[ws("0x1a")]()}_registerLegacyDescription(){const t=this[ws("0xf")],e=t.locale;t[ws("0x12")][ws("0x8")]("TrackChangesEditing")[ws("0x14")][ws("0xe")]((t=>{if(ws("0x4")!=t[ws("0x5")])return;const{data:n}=t;if(n){if(ws("0x6")==n.commandName){const t=n[ws("0xc")][0];return{type:ws("0x0"),content:Qo(e,ws("0x18"),'"'+t+'"')}}return ws("0x17")==n.commandName?{type:ws("0x0"),content:Qo(e,ws("0x1"))}:void 0}}))}}const Fs=["nextSibling","type","todoList","indentList","*Change to:* %0","editor","add","get","element","slice","commandName","blockName","length","filter","numbered","isObject","name","listItem","formatBlock","outdentList","*Outdent:* %0","checkChild","previousSibling","getSelectedBlocks","createRange","registerDescriptionCallback","format","has","_descriptionFactory","numberedList","model","locale","from","List","listIndent","change","TodoListEditing","TrackChangesEditing","push","parent","selection","registerElementLabel","document","enableCommand","markBlockFormat","before","findIndex","*Check item*","plugins","value","paragraph","createPositionAt","end","getAttribute","bulletedList","ELEMENT_NUMBERED_LIST","_selectedElements","commands","todo","schema","*Uncheck item*","checkTodoList","listType"];var Ds,Bs;Ds=Fs,Bs=338,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{afterInit(){const t=this[Ps("0x2d")],e=t[Ps("0x8")];if(!t[Ps("0x19")][Ps("0x4")]("ListEditing"))return;const n=t[Ps("0x19")][Ps("0x2f")](Ps("0xe")),o=t[Ps("0x19")][Ps("0x4")](Ps("0xd"));function i(e){return()=>{const o=t[Ps("0x7")][Ps("0x13")].selection,i=t[Ps("0x22")][Ps("0x2f")](e);if(i.value)return void t.execute(Ps("0x1b"),{});const r=e[Ps("0x31")](0,-4),s=function(t,e,n){let o=Array[Ps("0x9")](t)[Ps("0x35")]((t=>{return e=t,(o=n)[Ps("0x3d")](e[Ps("0x10")],Ps("0x39"))&&!o[Ps("0x37")](e);var e,o}));o=o.filter((t=>!t.is("element",Ps("0x39"))||t[Ps("0x1e")](Ps("0x27"))!=e));const i=new Set;for(const t of o)t.is("element",Ps("0x39"))?i.add(js(t)):i[Ps("0x2e")](t);return Array[Ps("0x9")](i)}(o[Ps("0x0")](),r,t[Ps("0x7")][Ps("0x24")]);t.model[Ps("0xc")]((()=>{for(const t of s)n[Ps("0x15")](t,{commandName:e,commandParams:[{forceValue:!i[Ps("0x1a")]}],formatGroupId:Ps("0x33")},Gs(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[Ps("0x17")]((t=>Ps("0x39")!=t[Ps("0x38")]));return n>-1&&(e=e[Ps("0x31")](0,n)),e}(t[Ps("0x7")][Ps("0x13")][Ps("0x11")][Ps("0x0")]()),i=t[Ps("0x7")][Ps("0x1")](t.model[Ps("0x1c")](o[0],Ps("0x16")),t[Ps("0x7")][Ps("0x1c")](o[o[Ps("0x34")]-1],Ps("0x1d")));t[Ps("0x7")][Ps("0xc")]((()=>{n[Ps("0x15")](i,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Ps("0x1e")](Ps("0xb"))>n[Ps("0x1e")](Ps("0xb"));)e[Ps("0x2e")](t),t=t[Ps("0x28")]}return Array[Ps("0x9")](e)}(o))}))}}n[Ps("0x14")](Ps("0x6"),i(Ps("0x6"))),n[Ps("0x14")](Ps("0x1f"),i(Ps("0x1f"))),o&&n[Ps("0x14")]("todoList",i(Ps("0x2a"))),n[Ps("0x14")](Ps("0x2b"),r(Ps("0x2b"))),n[Ps("0x14")](Ps("0x3b"),r(Ps("0x3b"))),o&&n[Ps("0x14")](Ps("0x26"),(()=>{const e=t[Ps("0x22")][Ps("0x2f")](Ps("0x26")),o=Array[Ps("0x9")](e[Ps("0x21")]);o[Ps("0x35")]((t=>t[Ps("0x1e")]("todoListChecked")!=e[Ps("0x1a")])),t.model.change((()=>{for(const t of o)n.markBlockFormat(t,{commandName:Ps("0x26"),commandParams:[{forceValue:!e[Ps("0x1a")]}]})}))})),n[Ps("0x5")][Ps("0x12")](Ps("0x39"),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[Ps("0x2")]((t=>{if(Ps("0x3a")!=t.type&&"formatInline"!=t[Ps("0x29")])return;const{data:n}=t;if(n){if(Ps("0x6")==n[Ps("0x32")]||Ps("0x1f")==n[Ps("0x32")]||Ps("0x2a")==n.commandName)switch(n.commandName.replace(Ps("0xa"),"")){case"bulleted":return o(Qo(e,"ELEMENT_BULLETED_LIST"));case Ps("0x36"):return o(Qo(e,Ps("0x20")));case Ps("0x23"):return o(Qo(e,"ELEMENT_TODO_LIST"))}if(Ps("0x2b")==n.commandName)return{type:Ps("0x3"),content:Qo(e,"*Indent:* %0",Qo(e,"ELEMENT_LIST_ITEM"))};if(Ps("0x3b")==n[Ps("0x32")])return{type:"format",content:Qo(e,Ps("0x3c"),Qo(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n.commandName)return n.commandParams[0].forceValue?{type:Ps("0x3"),content:Qo(e,Ps("0x18"))}:{type:"format",content:Qo(e,Ps("0x25"))}}function o(t){return{type:"format",content:Qo(e,Ps("0x2c"),t)}}}))}}function js(t){const e=t[Ps("0x1e")](Ps("0xb"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ps("0x3e")].is(Ps("0x30"),"listItem");){const o=t[Ps("0x3e")].getAttribute("listIndent");if(o==e)n=t[Ps("0x3e")];else if(o<e)break;t=t[Ps("0x3e")]}return n}function Gs(t){const e=[];if(t.is(Ps("0x30"),Ps("0x39"))&&t.getAttribute(Ps("0xb"))>0){let n=t[Ps("0x28")];for(;n&&Ps("0x39")==n[Ps("0x38")]&&n[Ps("0x1e")](Ps("0xb"))==t[Ps("0x1e")](Ps("0xb"));)e[Ps("0xf")](n),n=n[Ps("0x28")]}return e}const Hs=["_getSuggestionBlocks","ListUtils","*Change to:* %0","enableCommand","markMultiRangeBlockFormat","map","listStart","afterInit","listType","styles","createPositionAt","filter","handleListStartCommand","handleListStyleCommand","flat","*Format:* set order to regular","handleListReversedCommand","backward","listReversed","change","ELEMENT_","listItem","handleDescriptions","TrackChangesEditing","from","reversed","unshift","selection","ListPropertiesEditing","getSelectedBlocks","locale","_LIST_","plugins","format","numbered","push","_descriptionFactory","config","before","startIndex","commandName","_getSuggestionBlocksForListStyle","_getTranslationKeyForListStyle","formatBlock","parent","getAttribute","document","listStyle","get","editor","commandParams","forward","length","getFirstPosition","registerDescriptionCallback","replace","bind","type","getSiblingNodes","element","formatInline","list.properties","createRange","model","*Format:* set order to reversed"];var Vs,zs;Vs=Hs,zs=394,function(t){for(;--t;)Vs.push(Vs.shift())}(++zs);const Ws=function(t,e){return Hs[t-=0]};class Ks extends t.Plugin{[Ws("0x3")](){if(!this.editor[Ws("0x1c")].has(Ws("0x18")))return;const t=this[Ws("0x2d")][Ws("0x21")].get(Ws("0x39")),e=this.editor[Ws("0x1c")].get("TrackChangesEditing");t[Ws("0x5")]&&e[Ws("0x40")](Ws("0x2b"),this[Ws("0x9")][Ws("0x34")](this)),t.reversed&&e[Ws("0x40")](Ws("0xe"),this[Ws("0xc")][Ws("0x34")](this)),t[Ws("0x23")]&&e[Ws("0x40")](Ws("0x2"),this[Ws("0x8")][Ws("0x34")](this)),e[Ws("0x20")][Ws("0x32")](this[Ws("0x12")][Ws("0x34")](this))}handleListStyleCommand(t,e={}){const n=this.editor[Ws("0x1c")][Ws("0x2c")](Ws("0x13")),o=this[Ws("0x25")]();this[Ws("0x2d")][Ws("0x3b")].change((()=>{n[Ws("0x0")](o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:Ws("0x2b")})}))}[Ws("0xc")](t,e={}){const n=this[Ws("0x2d")][Ws("0x1c")][Ws("0x2c")](Ws("0x13")),o=this[Ws("0x3d")]((t=>t.is(Ws("0x37"),"listItem")&&"numbered"===t.getAttribute(Ws("0x4"))));if(o[Ws("0x30")]<1)return;const i=o[Ws("0x1")]((t=>this[Ws("0x2d")].model[Ws("0x3a")](this.editor[Ws("0x3b")][Ws("0x6")](t,Ws("0x22")),this[Ws("0x2d")][Ws("0x3b")][Ws("0x6")](t,0))));this[Ws("0x2d")].model.change((()=>{n[Ws("0x0")](i,{commandName:"listReversed",commandParams:[{reversed:e[Ws("0x15")]}],formatGroupId:Ws("0xe")})}))}[Ws("0x8")](t,e={}){const n=this[Ws("0x2d")][Ws("0x1c")][Ws("0x2c")](Ws("0x13")),o=this[Ws("0x3d")]((t=>t.is(Ws("0x37"),Ws("0x11"))&&Ws("0x1e")===t[Ws("0x29")](Ws("0x4"))));if(o[Ws("0x30")]<1)return;const i=o.map((t=>this[Ws("0x2d")].model[Ws("0x3a")](this[Ws("0x2d")][Ws("0x3b")][Ws("0x6")](t,"before"),this[Ws("0x2d")][Ws("0x3b")].createPositionAt(t,0))));this.editor[Ws("0x3b")][Ws("0xf")]((()=>{n[Ws("0x0")](i,{commandName:Ws("0x2"),commandParams:[{startIndex:e[Ws("0x23")]}],formatGroupId:Ws("0x2")})}))}handleDescriptions(t){if(Ws("0x27")!=t[Ws("0x35")]&&Ws("0x38")!=t[Ws("0x35")])return;const e=this[Ws("0x2d")][Ws("0x1a")],{data:n}=t;if(!n)return;let o,i;switch(n[Ws("0x24")]){case"listStyle":o=Ws("0x3f"),i={type:Ws("0x1d"),content:Qo(e,o,Qo(e,this[Ws("0x26")](n[Ws("0x2e")][0][Ws("0x35")])))};break;case Ws("0xe"):o=n.commandParams[0].reversed?Ws("0x3c"):Ws("0xb"),i={type:Ws("0x1d"),content:Qo(e,o)};break;case Ws("0x2"):o="*Format:* set start index to %0",i={type:Ws("0x1d"),content:Qo(e,o,n.commandParams[0][Ws("0x23")])}}return i}_getSuggestionBlocksForListStyle(){var t,e,n,o;const i=this[Ws("0x2d")][Ws("0x1c")][Ws("0x2c")](Ws("0x3e"));let r=Array[Ws("0x14")](this[Ws("0x2d")][Ws("0x3b")][Ws("0x2a")][Ws("0x17")][Ws("0x19")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Ws("0x37"),Ws("0x11")))&&r[Ws("0x16")](...i[Ws("0x36")](this[Ws("0x2d")][Ws("0x3b")][Ws("0x2a")][Ws("0x17")].getFirstPosition(),Ws("0xd"))),(null===(e=r[r[Ws("0x30")]-1])||void 0===e?void 0:e.is("element",Ws("0x11")))&&r[Ws("0x1f")](...i[Ws("0x36")](this[Ws("0x2d")][Ws("0x3b")].document[Ws("0x17")].getLastPosition(),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[Ws("0x2d")][Ws("0x3b")][Ws("0x2a")][Ws("0x17")][Ws("0x31")]())||void 0===n?void 0:n[Ws("0x28")])||void 0===o?void 0:o.is(Ws("0x37"),Ws("0x11")))&&(r=r[Ws("0x7")]((t=>t.is(Ws("0x37"),Ws("0x11"))))),r}_getSuggestionBlocks(t){const e=this[Ws("0x2d")][Ws("0x1c")].get(Ws("0x3e"));let n=Array[Ws("0x14")](this[Ws("0x2d")][Ws("0x3b")][Ws("0x2a")][Ws("0x17")][Ws("0x19")]())[Ws("0x7")](t).map((t=>{const n=this.editor[Ws("0x3b")][Ws("0x6")](t,0);return[...e[Ws("0x36")](n,"backward"),...e[Ws("0x36")](n,Ws("0x2f"))]}))[Ws("0xa")]();return n=[...new Set(n)],n}[Ws("0x26")](t){return Ws("0x10")+this[Ws("0x2d")][Ws("0x1c")][Ws("0x2c")](Ws("0x3e")).getListTypeFromListStyleType(t).toUpperCase()+Ws("0x1b")+t.toUpperCase()[Ws("0x33")](/-/g,"_")}}const qs=["locale","showSuggestionHighlights","media","data","plugins","downcastDispatcher","editor","ELEMENT_MEDIA","TrackChangesEditing","for","MediaEmbedEditing","afterInit","get","mediaEmbed","stop","dataDowncast","options","conversion","createEmptyElement","div","enableCommand","has","_descriptionFactory","high"];var Xs,$s;Xs=qs,$s=282,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0x11")](){const t=this[Zs("0xc")];if(!t[Zs("0xa")][Zs("0x3")](Zs("0x10")))return;const e=t[Zs("0xa")][Zs("0x12")](Zs("0xe")),n=t[Zs("0x6")];e[Zs("0x2")](Zs("0x13")),e[Zs("0x4")].registerElementLabel(Zs("0x8"),(t=>Qo(n,Zs("0xd"),t))),t[Zs("0x17")][Zs("0xf")](Zs("0x15")).elementToElement({model:Zs("0x8"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Zs("0x0")](Zs("0x1"))},converterPriority:Zs("0x5")}),t[Zs("0x9")][Zs("0xb")].on("attribute:url:media",((t,e,n)=>{n[Zs("0x16")][Zs("0x7")]&&t[Zs("0x14")]()}),{priority:Zs("0x5")})}}const Js=["editor","plugins","enableCommand","get","mention","TrackChangesEditing","afterInit","has"];var Qs,tx;Qs=Js,tx=364,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x2")](){const t=this[ex("0x4")];t[ex("0x5")][ex("0x3")]("MentionEditing")&&t[ex("0x5")][ex("0x7")](ex("0x1"))[ex("0x6")](ex("0x0"))}}const ox=["pageBreak","plugins","get","TrackChangesEditing","has","enableCommand","ELEMENT_PAGE_BREAK","_descriptionFactory","PageBreakEditing","editor","registerElementLabel","afterInit"];var ix,rx;ix=ox,rx=465,function(t){for(;--t;)ix.push(ix.shift())}(++rx);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x2")](){const t=this[sx("0x0")];if(!t[sx("0x4")][sx("0x7")](sx("0xb")))return;t[sx("0x4")][sx("0x5")](sx("0x6"))[sx("0x8")](sx("0x3"));const e=t.plugins[sx("0x5")]("TrackChangesEditing"),n=t.locale;e[sx("0xa")][sx("0x1")](sx("0x3"),(t=>Qo(n,sx("0x9"),t)))}}const ax=["ck-suggestion-marker-split","_descriptionFactory","insertion","writer","checkChild","schema","editor","paragraph","highest","TrackChangesEditing","data","end","markerName","toViewPosition","commandName","plugins","addClass","insert","mapper","nodeAfter","insertParagraph","format","*Insert:* %0","markerRange","isLimit","bindElementToMarker","enableCommand","afterInit","has","Paragraph","registerElementLabel","addMarker:suggestion:insertion","consume","createUIElement","downcastDispatcher","type","_registerLegacyDescription","getItemLabel","model","options","*Change to:* %0","includes","start","getFirstRange","locale","isTouching","get"];var cx,lx;cx=ax,lx=235,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x1b")](){const t=this[ux("0x6")];if(!t[ux("0xf")][ux("0x1c")](ux("0x1d")))return;const e=t[ux("0x2c")],n=t[ux("0xf")][ux("0x2e")]("TrackChangesEditing");n[ux("0x1")][ux("0x1e")](ux("0x7"),(t=>Qo(e,"ELEMENT_PARAGRAPH",t))),n._enableDefaultAttributesIntegration(ux("0x7")),n[ux("0x1a")](ux("0x14")),t.editing.downcastDispatcher.on(ux("0x1f"),gx(t),{priority:ux("0x8")}),t[ux("0xa")][ux("0x22")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ux("0x27")].showSuggestionHighlights&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[ux("0x1")];o.registerDescriptionCallback((n=>{if(ux("0x2")!==n[ux("0x23")])return;const{start:i,end:r}=n[ux("0x2b")]();if(!i[ux("0x2d")](r)||!i[ux("0x13")])return;const s=t[ux("0x26")][ux("0x5")],x=i[ux("0x13")];return s.isBlock(x)&&!s[ux("0x18")](x)&&s[ux("0x4")](x,"$text")?{type:ux("0x2"),content:Qo(e,ux("0x16"),o[ux("0x25")](x,1))}:void 0})),this[ux("0x24")]()}[ux("0x24")](){const t=this[ux("0x6")],e=t[ux("0x2c")];t[ux("0xf")][ux("0x2e")]("TrackChangesEditing")[ux("0x1")].registerDescriptionCallback((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;return n&&ux("0x7")==n[ux("0xe")]?{type:ux("0x15"),content:Qo(e,ux("0x28"),Qo(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins[ux("0x2e")](ux("0x9")),s=o[ux("0x17")][ux("0x2a")],x=o[ux("0x17")][ux("0xb")],a=t.model[ux("0x5")];if(!s.isTouching(x)||!s[ux("0x13")])return;const c=s[ux("0x13")];if(a.isBlock(c)&&!a.isLimit(c)&&a[ux("0x4")](c,"$text")){if(!i.consumable[ux("0x20")](o[ux("0x17")],n.name))return;const t=i[ux("0x3")][ux("0x21")]("span",{class:ux("0x0")}),s=i[ux("0x12")][ux("0xd")](x);e&&r.activeMarkers[ux("0x29")](o[ux("0xc")])&&i[ux("0x3")][ux("0x10")]("ck-suggestion-marker--active",t),i.writer[ux("0x11")](s,t),i[ux("0x12")][ux("0x19")](t,o.markerName)}}}const fx=["locale","_descriptionFactory","plugins","TrackChangesEditing","afterInit","removeFormat","commandName","registerDescriptionCallback","format","get","has","type","_enableDefaultAttributesIntegration","_registerLegacyDescription","*Remove all formatting*"];var mx,hx;mx=fx,hx=315,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0x4")](){const t=this.editor;t[px("0x2")][px("0xa")]("RemoveFormatEditing")&&(t.plugins[px("0x9")](px("0x3"))[px("0xc")](px("0x5")),this[px("0xd")]())}_registerLegacyDescription(){const t=this.editor;t[px("0x2")][px("0x9")](px("0x3"))[px("0x1")][px("0x7")]((e=>{if("formatBlock"!=e[px("0xb")]&&"formatInline"!=e[px("0xb")])return;const{data:n}=e;return n&&px("0x5")==n[px("0x6")]?{type:px("0x8"),content:Qo(t[px("0x0")],px("0xe"))}:void 0}))}}const Ex=["afterInit","editor","has","goToPreviousRestrictedEditingException","enableCommand","discardSelectedSuggestions","goToNextRestrictedEditingException","TrackChangesEditing","acceptSuggestion","acceptSelectedSuggestions","trackChanges","get","discardSuggestion","RestrictedEditingModeEditing","plugins"];var _x,Tx;_x=Ex,Tx=204,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x6")](){const t=this[yx("0x7")];if(!t[yx("0x5")][yx("0x8")]("RestrictedEditingModeEditing"))return;const e=t[yx("0x5")][yx("0x2")](yx("0xd"));e[yx("0xa")](yx("0x9")),e[yx("0xa")](yx("0xc"));const n=t[yx("0x5")][yx("0x2")](yx("0x4"));n[yx("0xa")](yx("0x1")),n[yx("0xa")](yx("0xe")),n[yx("0xa")](yx("0x3")),n[yx("0xa")]("acceptAllSuggestions"),n[yx("0xa")]("discardAllSuggestions"),n[yx("0xa")](yx("0x0")),n[yx("0xa")](yx("0xb"))}}const Ax=["plugins","mapper","locale","merge","registerElementLabel","init","data","requires","markerRange","TrackChangesEditing","high","name","markerName","softBreak","bindElementToMarker","element","downcastDispatcher","getItems","writer","options","split","addMarker:suggestion:insertion","span","includes","editing","shiftEnter","model","addMarker:suggestion","consumable","createPositionBefore","editor","enableCommand","deletion","test","toViewPosition","addClass","get"];var kx,Ix;kx=Ax,Ix=405,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Sx=function(t,e){return Ax[t-=0]};class Rx extends t.Plugin{static get[Sx("0x9")](){return[ur.ShiftEnter]}[Sx("0x7")](){const t=this[Sx("0x20")],e=t[Sx("0x2")][Sx("0x1")](Sx("0xb"));e[Sx("0x21")](Sx("0x1b")),t[Sx("0x1a")][Sx("0x12")].on(Sx("0x17"),vx(t),{priority:Sx("0xc")}),t.editing[Sx("0x12")].on("addMarker:suggestion:deletion",vx(t),{priority:Sx("0xc")}),t[Sx("0x8")].downcastDispatcher.on(Sx("0x1d"),((e,n,o)=>{o[Sx("0x15")].showSuggestionHighlights&&vx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Sx("0x6")]("softBreak",(e=>Qo(t[Sx("0x4")],"ELEMENT_LINE_BREAK",e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins[Sx("0x1")]("TrackChangesEditing");if(!i[Sx("0x1e")][Sx("0x23")](o[Sx("0xa")],n[Sx("0xd")]))return;const s=t[Sx("0x1c")];for(const t of o[Sx("0xa")][Sx("0x13")]()){if(!t.is(Sx("0x11"),Sx("0xf")))continue;const n=Sx("0x22")==o[Sx("0xe")].split(":")[1]?Sx("0x5"):Sx("0x16"),x=i[Sx("0x14")].createUIElement(Sx("0x18"),{class:"ck-suggestion-marker-"+n}),a=i.mapper[Sx("0x24")](s[Sx("0x1f")](t));e&&r.activeMarkers[Sx("0x19")](o[Sx("0xe")])&&i[Sx("0x14")][Sx("0x0")]("ck-suggestion-marker--active",x),i[Sx("0x14")].insert(a,x),i[Sx("0x3")][Sx("0x10")](x,o[Sx("0xe")])}}}const Nx=["_descriptionFactory","restrictedEditingException","plugins","TrackChangesEditing","forceValue","enableCommand","from","StandardEditingModeEditing","value","type","isCollapsed","FORMAT_RESTRICTED_DISABLED","editor","registerDescriptionCallback","selection","locale","formatBlock","get","format","has"];var Lx,Mx;Lx=Nx,Mx=177,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{afterInit(){const t=this[wx("0xf")],e=t.model,n=t[wx("0x12")];if(!t[wx("0x5")][wx("0x2")](wx("0xa")))return;const o=t[wx("0x5")][wx("0x0")](wx("0x6")),i=wx("0x4"),r=t.commands[wx("0x0")](i);o[wx("0x8")](i,((t,n={})=>{const s=e.document[wx("0x11")];if(s[wx("0xd")])return void t(n);const x=void 0!==n.forceValue?n[wx("0x7")]:!r[wx("0xb")];e.change((()=>{const t=Array[wx("0x9")](s.getRanges());for(const n of t){const t=x?[n]:Xi(i,n,e);for(const e of t)o.markInlineFormat(e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),o[wx("0x3")][wx("0x10")]((t=>{if(wx("0x13")!=t[wx("0xc")]&&"formatInline"!=t[wx("0xc")])return;const{data:e}=t;return e&&e.commandName==i?e.commandParams[0][wx("0x7")]?{type:wx("0x1"),content:Qo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:wx("0x1"),content:Qo(n,wx("0xe"))}:void 0}))}}const Fx=["editor","*Set format:* %0","getGhsAttributeNameForElement","forceValue","has","_enableDefaultAttributesIntegration","commandParams","normalizeConfig","DataSchema","GeneralHtmlSupport","block","style","type","_descriptionFactory","config","get","plugins","StyleUtils","add","inline","*Remove format:* %0","commandName","_registerLegacyDescription","toLowerCase","styleName","_registerBlockAttribute","TrackChangesEditing","ghsAttributes","format","formatBlock","element","registerAttributeLabel","definitions"];var Dx,Bx;Dx=Fx,Bx=244,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this[Px("0x14")];if(!t[Px("0x3")][Px("0x18")]("Style")||!t[Px("0x3")][Px("0x18")]("DataSchema"))return;const e=t[Px("0x3")][Px("0x2")](Px("0xd")),n=t.locale,o=t[Px("0x1")][Px("0x2")]("style"),i=t[Px("0x3")][Px("0x2")](Px("0x1d")),r=t[Px("0x3")].get(Px("0x4"))[Px("0x1b")](t.plugins[Px("0x2")](Px("0x1c")),o[Px("0x13")]);e[Px("0x19")](Px("0x1f"));const s=new Set;for(const t of r[Px("0x1e")]){const e=i.getGhsAttributeNameForElement(t.element);s[Px("0x5")](e)}const x=new Set;for(const t of r[Px("0x6")]){const e=i[Px("0x16")](t[Px("0x11")]);x[Px("0x5")](e);for(const e of t[Px("0xe")])x[Px("0x5")](e)}for(const t of s)e[Px("0xc")](t),e._descriptionFactory[Px("0x12")](t,Qo(n,"FORMAT_STYLE"));for(const t of x)e._registerInlineAttribute(t),e[Px("0x0")][Px("0x12")](t,Qo(n,"FORMAT_STYLE"));this[Px("0x9")]()}[Px("0x9")](){const t=this[Px("0x14")],e=t.locale;t[Px("0x3")].get(Px("0xd"))[Px("0x0")].registerDescriptionCallback((t=>{if(Px("0x10")!=t.type&&"formatInline"!=t[Px("0x20")])return;const{data:n}=t;return n&&Px("0x1f")===n[Px("0x8")]?n[Px("0x1a")][0][Px("0x17")]?{type:Px("0xf"),content:Qo(e,Px("0x15"),n[Px("0x1a")][0][Px("0xb")][Px("0xa")]())}:{type:Px("0xf"),content:Qo(e,Px("0x7"),n[Px("0x1a")][0].styleName[Px("0xa")]())}:void 0}))}}const jx=["fromRange","nodeBefore","isTouching","getColumnIndexes","change","TrackChangesEditing","removeTableColumn","getAttribute","includes","setSelection","type","data","span","some","differ","insertion","_suggestionFactory","options","addRange","batch","createPositionAt","getItems","markMultiRangeInsertion","min","root","$textProxy","registerDescriptionCallback","from","rowspan","getChangedMarkers","first","insert","oldRange","classes","forceValue","_getCoordsForCells","item","element","get","getSuggestion","accept","position","_descriptionFactory","TableUtils","join","editor","enableCommand","every","removeClass","max","addClass","insertTable","table","low","getContainedElement","rootName","selectTableColumn","addMarker:suggestion","_setupColumnsRowsFixing","enqueueChange","has","discard","tableColumn","highest","plugins","map","registerCustomCallback","isEqual","MIN_SAFE_INTEGER","toViewElement","_tableSuggestions","deletion","*Insert:* %0","left","afterInit","ELEMENT_TABLE_COLUMN","cell","ELEMENT_TABLE_WITH_TEXT","push","ELEMENT_TABLE_COLUMN_WITH_TEXT","getRowIndexes","insertTableColumnLeft","getRanges","insertTableRowAbove","getChildren","hasAttribute","execute","downcastDispatcher","detach","_acceptFormatSuggestionCallbackFactory","maxRow","insertTableColumnRight","end","name","subType","ELEMENT_TABLE","minColumn","length","values","MAX_SAFE_INTEGER","selection","findAncestor","_splitMarkerName","tableRow","createRangeIn","$graveyard","start","add","getSelectionAffectedTableCells","*Remove:* %0","ELEMENT_TABLE_ROW_WITH_TEXT","change:data","registerPostFixer","commands","substr","order","writer","minRow","suggestion","mapper","tableCell","filter","document","nodeAfter","registerElementLabel","selectTableRow","createRangeOn","tablePaste","model","createTableWalker","getCellLocation","removeTableRow","showSuggestionHighlights","toLowerCase","_getSuggestionCoords","last","ELEMENT_TABLE_ROW","startsWith","colspan"];var Gx,Hx;Gx=jx,Hx=339,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Vx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Vx("0x2a"),Vx("0x1")],this[Vx("0x9")]=new Set}[Vx("0xd")](){const t=this[Vx("0x7b")],e=t[Vx("0x43")].document[Vx("0x27")];if(!t[Vx("0x3")][Vx("0x8a")]("TableEditing"))return;const n=t.locale,o=t[Vx("0x3")][Vx("0x74")](Vx("0x53")),i=t.plugins[Vx("0x74")](Vx("0x79"));o[Vx("0x78")][Vx("0x3f")](Vx("0x82"),(t=>Qo(n,Vx("0x22"),t))),this[Vx("0x88")](),o[Vx("0x7c")](Vx("0x81")),o[Vx("0x7c")](Vx("0x40")),o[Vx("0x7c")](Vx("0x86"));for(const n of[Vx("0x16"),"insertTableRowBelow"]){const r=t[Vx("0x34")][Vx("0x74")](n);o[Vx("0x7c")](n,(n=>{t[Vx("0x43")][Vx("0x52")]((t=>{n();const s="above"===r.order,x=i[Vx("0x2f")](e),a=i[Vx("0x13")](x),c=s?a[Vx("0x6c")]-1:a[Vx("0x4a")]+1,l=x[0][Vx("0x28")](Vx("0x82")),u=i[Vx("0x44")](l,{startRow:c,endRow:c}),d=Array.from(u)[Vx("0x4")]((e=>t[Vx("0x41")](e[Vx("0xf")])));o[Vx("0x64")](d,Vx("0x2a"))}))}))}for(const n of[Vx("0x14"),Vx("0x1e")]){const r=t[Vx("0x34")].get(n);o.enableCommand(n,(n=>{t.model.change((t=>{n();const s=Vx("0xc")===r[Vx("0x36")],x=i.getSelectionAffectedTableCells(e),a=i[Vx("0x51")](x),c=s?a[Vx("0x6c")]-1:a[Vx("0x4a")]+1,l=x[0][Vx("0x28")](Vx("0x82")),u=i[Vx("0x44")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Vx("0x69")](u).map((e=>t.createRangeOn(e[Vx("0xf")])));o[Vx("0x64")](d,"tableColumn")}))}))}for(const n of["removeTableRow",Vx("0x54")]){const r=n[Vx("0x35")](11),s=r.toLowerCase(),x=s.substr(0,3)+Vx("0x5a"),a=Vx("0x82")+r,c=Vx("0x65")+r,l=Vx("0x7f")+r;o[Vx("0x7c")](n,(()=>{t[Vx("0x43")].change((t=>{const r=i[Vx("0x2f")](e),u=r[0].findAncestor(Vx("0x82"));let d;if("removeTableRow"==n){const t=i[Vx("0x13")](r);d={startRow:t.first,endRow:t[Vx("0x4a")],includeAllSlots:!0}}else{const t=i[Vx("0x51")](r);d={startColumn:t[Vx("0x6c")],endColumn:t[Vx("0x4a")],includeAllSlots:!0}}const g=i[Vx("0x44")](u,d),f=Array[Vx("0x69")](g)[Vx("0x4")]((({cell:t})=>t)),m=Wx(f[Vx("0x3c")]((t=>t.hasAttribute(x)))),h=Wx(f[Vx("0x3c")]((t=>!t[Vx("0x18")](x))))[Vx("0x4")]((e=>t[Vx("0x41")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Vx("0x2a")==p[Vx("0x21")]||Vx("0x1")==p[Vx("0x21")])){const e=this[Vx("0x49")](p);for(const n of m){const o=t[Vx("0x41")](n),r=i[Vx("0x45")](n),a=n[Vx("0x55")](x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&p[Vx("0x60")](o)}}}))}))}function r(n){const o=Array[Vx("0x69")](e[Vx("0x15")]())[Vx("0x4")]((t=>s.LiveRange[Vx("0x4e")](t)));t.model[Vx("0x52")]((e=>{const i=e[Vx("0x61")];n=n[Vx("0x3c")]((t=>Vx("0x2c")!=t[Vx("0x66")].rootName)),e[Vx("0x57")](n),t[Vx("0x34")][Vx("0x74")](Vx("0x46")).refresh(),t[Vx("0x19")](Vx("0x46"),{forceDefaultExecution:!0}),t.model[Vx("0x89")]((()=>{t[Vx("0x43")][Vx("0x89")](i,(t=>{const e=o.filter((t=>Vx("0x2c")!=t[Vx("0x66")][Vx("0x85")]));e[Vx("0x24")]>0&&t[Vx("0x57")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Vx("0x43")].change((o=>{const i=Array[Vx("0x69")](e[Vx("0x15")]())[Vx("0x4")]((t=>s.LiveRange[Vx("0x4e")](t))),r=[];for(const t of n)for(const e of t[Vx("0x63")]({shallow:!0}))r.push(e);for(const e of r)"$graveyard"!=e[Vx("0x66")][Vx("0x85")]&&(o[Vx("0x57")](o[Vx("0x62")](e,0)),t[Vx("0x34")][Vx("0x74")](Vx("0x54")).refresh(),t[Vx("0x19")]("removeTableColumn",{forceDefaultExecution:!0}));const x=i.filter((t=>"$graveyard"!=t[Vx("0x66")][Vx("0x85")]));x[Vx("0x24")]>0&&o[Vx("0x57")](x);for(const t of i)t[Vx("0x1b")]()}))}function c(t,e){return e[Vx("0x7d")]((e=>t.some((t=>t.end[Vx("0x6")](e[Vx("0x2d")])||e[Vx("0x1f")][Vx("0x6")](t[Vx("0x2d")])))))}function l(t,e){return t.some((t=>e[Vx("0x5b")]((e=>t[Vx("0x1f")][Vx("0x50")](e[Vx("0x2d")])))))}t[Vx("0x59")][Vx("0x1a")].on(Vx("0x87"),((t,e,n)=>{if(!n[Vx("0x5f")][Vx("0x47")])return;const o=e[Vx("0x72")];if(!o)return;const i=n[Vx("0x3a")][Vx("0x8")](o);function r(t){return Array.isArray(t)?t:[t]}i&&Vx("0x3b")===o[Vx("0x20")]&&(0,x.setHighlightHandling)(i,n[Vx("0x37")],((t,e,n)=>n[Vx("0x80")](r(e[Vx("0x6f")]),t)),((t,e,n)=>n[Vx("0x7e")](r(e[Vx("0x6f")]),t)))}),{priority:Vx("0x2")}),o._descriptionFactory.registerDescriptionCallback((t=>{if("insertion"!=t[Vx("0x58")]&&"deletion"!=t[Vx("0x58")])return;const e=t[Vx("0x84")]();if(null!=e&&e.is(Vx("0x73"),Vx("0x82"))){if(Vx("0x5d")==t[Vx("0x58")]){const e=t[Vx("0x63")]().filter((t=>t.is(Vx("0x67"))))[Vx("0x4")]((t=>t[Vx("0x59")]));if(e[Vx("0x24")])return{type:Vx("0x5d"),content:Qo(n,Vx("0xb"),Qo(n,Vx("0x10"),'"'+e[Vx("0x7a")](" ")+'"'))}}if(Vx("0xa")==t.type){const e=t[Vx("0x63")]().filter((t=>t.is("$textProxy")))[Vx("0x4")]((t=>t[Vx("0x59")]));if(e.length)return{type:Vx("0xa"),content:Qo(n,"*Remove:* %0",Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Vx("0x7a")](" ")+'"'))}}}})),o[Vx("0x78")][Vx("0x68")]((t=>{if(Vx("0x2a")==t.subType){const e=t[Vx("0x63")]()[Vx("0x3c")]((t=>t.is(Vx("0x67")))).map((t=>t.data)),o=this[Vx("0x49")](t),i=o[Vx("0x1d")]-o[Vx("0x38")]+1;if(Vx("0x5d")==t[Vx("0x58")])return e[Vx("0x24")]?{type:Vx("0x5d"),content:Qo(n,Vx("0xb"),Qo(n,Vx("0x31"),[i,'"'+e[Vx("0x7a")](" ")+'"']))}:{type:Vx("0x5d"),content:Qo(n,Vx("0xb"),Qo(n,Vx("0x4b"),i))};if(Vx("0xa")==t.type)return e.length?{type:Vx("0xa"),content:Qo(n,Vx("0x30"),Qo(n,Vx("0x31"),[i,'"'+e[Vx("0x7a")](" ")+'"']))}:{type:Vx("0xa"),content:Qo(n,Vx("0x30"),Qo(n,"ELEMENT_TABLE_ROW",i))}}if("tableColumn"==t[Vx("0x21")]){const e=t[Vx("0x63")]()[Vx("0x3c")]((t=>t.is(Vx("0x67"))))[Vx("0x4")]((t=>t.data)),o=this._getSuggestionCoords(t),i=o.maxColumn-o[Vx("0x23")]+1;if("insertion"==t[Vx("0x58")])return e[Vx("0x24")]?{type:"insertion",content:Qo(n,Vx("0xb"),Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Vx("0x7a")](" ")+'"']))}:{type:Vx("0x5d"),content:Qo(n,Vx("0xb"),Qo(n,Vx("0xe"),i))};if("deletion"==t[Vx("0x58")])return e[Vx("0x24")]?{type:Vx("0xa"),content:Qo(n,"*Remove:* %0",Qo(n,Vx("0x12"),[i,'"'+e[Vx("0x7a")](" ")+'"']))}:{type:"deletion",content:Qo(n,"*Remove:* %0",Qo(n,Vx("0xe"),i))}}})),o[Vx("0x5e")][Vx("0x5")]("insertion",Vx("0x2a"),Vx("0x0"),r),o[Vx("0x5e")][Vx("0x5")](Vx("0xa"),Vx("0x2a"),Vx("0x76"),r),o._suggestionFactory[Vx("0x5")](Vx("0x5d"),Vx("0x1"),"discard",a),o[Vx("0x5e")][Vx("0x5")]("deletion","tableColumn","accept",a),o._suggestionFactory.registerCustomCallback(Vx("0x5d"),"tableColumn",Vx("0x7a"),c),o[Vx("0x5e")][Vx("0x5")]("deletion",Vx("0x1"),Vx("0x7a"),c),o[Vx("0x5e")].registerCustomCallback(Vx("0x5d"),"tableRow",Vx("0x7a"),l),o._suggestionFactory[Vx("0x5")](Vx("0xa"),Vx("0x2a"),Vx("0x7a"),l)}[Vx("0x1c")](){const t=this.editor,e=t.model[Vx("0x3d")][Vx("0x27")];return(n,o)=>{t[Vx("0x43")][Vx("0x52")]((i=>{const{commandName:r,commandParams:x}=o;let a=n[0][Vx("0x1f")][Vx("0x4f")];x&&x[0]&&!1===x[0][Vx("0x70")]&&(a=n[0][Vx("0x2d")][Vx("0x3e")]);const c=i[Vx("0x2b")](a);if(Vx("0x2c")==c.root[Vx("0x85")])return;const l=Array.from(e[Vx("0x15")]()).map((t=>s.LiveRange[Vx("0x4e")](t)));i[Vx("0x57")](c),t.commands[Vx("0x74")](r).refresh(),x[Vx("0x11")]({forceDefaultExecution:!0}),t[Vx("0x19")](r,...x);const u=l[Vx("0x3c")]((t=>Vx("0x2c")!=t[Vx("0x66")].rootName));u[Vx("0x24")]>0&&i[Vx("0x57")](u);for(const t of l)t.detach()}))}}[Vx("0x71")](t){const e=this[Vx("0x7b")][Vx("0x3")].get(Vx("0x79"));let n=Number.MAX_SAFE_INTEGER,o=Number[Vx("0x7")],i=Number[Vx("0x26")],r=Number[Vx("0x7")];for(const s of t){if(Vx("0x2c")==s[Vx("0x66")].rootName)continue;const{row:t,column:x}=e[Vx("0x45")](s),a=s[Vx("0x18")](Vx("0x6a"))?s[Vx("0x55")](Vx("0x6a"))-1:0,c=s[Vx("0x18")](Vx("0x4d"))?s[Vx("0x55")](Vx("0x4d"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,i=x<i?x:i,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:i,maxColumn:r}}[Vx("0x88")](){const t=this[Vx("0x7b")],e=t.plugins[Vx("0x74")](Vx("0x53")),n=t[Vx("0x3")][Vx("0x74")](Vx("0x79"));t[Vx("0x43")][Vx("0x3d")].on(Vx("0x32"),(()=>{const n=Array[Vx("0x69")](t[Vx("0x43")][Vx("0x3d")][Vx("0x5c")][Vx("0x6b")]());for(const{name:t,data:o}of n){const{group:n,id:i,subType:r}=e[Vx("0x29")](t);if(Vx("0x39")!=n)continue;if(null!=o[Vx("0x6e")])continue;const s=e[Vx("0x75")](i);this._tablePostFixingSubtypes[Vx("0x56")](r)&&this[Vx("0x9")][Vx("0x2e")](s)}}),{priority:Vx("0x83")});const o=(t,e)=>{let o=!1;const i=e[Vx("0x41")](t),r=t.findAncestor("table"),s=n[Vx("0x45")](t);for(const e of this[Vx("0x9")]){const n=e[Vx("0x21")],x=n[Vx("0x4c")](Vx("0x42")),a=n[Vx("0x35")](x?10:5),c=a[Vx("0x48")](),l=c[Vx("0x35")](0,3)+Vx("0x5a"),u=Vx("0x65")+a,d=Vx("0x7f")+a;if(!e.isInContent)continue;if(r!=e.getFirstRange().start[Vx("0x28")]("table"))continue;if(e.isIntersectingWithRange(i))continue;const g=t[Vx("0x18")](l)?t[Vx("0x55")](l)-1:0,f=this[Vx("0x49")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Vx("0x60")](i),o=!0)}return o};t.model[Vx("0x3d")][Vx("0x33")]((e=>{let n=!1;for(const i of t[Vx("0x43")][Vx("0x3d")][Vx("0x5c")].getChanges())if(Vx("0x6d")==i[Vx("0x58")])if("tableRow"==i[Vx("0x20")])for(const t of i[Vx("0x77")][Vx("0x3e")][Vx("0x17")]())n=n||o(t,e);else Vx("0x3b")==i[Vx("0x20")]&&(n=n||o(i[Vx("0x77")][Vx("0x3e")],e));return n}))}[Vx("0x49")](t){return this._getCoordsForCells(t[Vx("0x15")]()[Vx("0x4")]((t=>t[Vx("0x2d")][Vx("0x3e")])))}}function Wx(t){return Array[Vx("0x69")](new Set(t)[Vx("0x25")]())}const Kx=["formatInline","type","model","fromRange","markBlockFormat","requires","createRangeOn","trackChanges","createTableWalker","low","format","findAncestor","value","push","detach","getSelectionAffectedTableCells","isInContent","set:isEnabled","getAncestors","insertion","add","*Split cell:* vertically","mergeTableCellRight","subType","formatBlock","author","selection","mergeTableCellDown","size","mergeTableCellUp","table","*Merge cells*","registerDescriptionCallback","TableUtils","horizontally","find","plugins","execute","refresh","_suggestionFactory","_descriptionFactory","_areMergableCells","splitTableCellVertically","getFirstPosition","splitTableCellHorizontally","mergeTableCells","setSelection","registerCustomCallback","mergeTableCellLeft","filter","map","document","cell","commandName","root","_tablePostFixingSubtypes","commands","_areSelectedCellsMergable","change","TrackChangesEditing","rootName","getRanges","enableCommand","length","get","_isForcedDefaultExecutionBlock","markMultiRangeBlockFormat","editor","TableEditing","from","stop","has","accept","tableCell","getCellLocation","isEnabled"];var qx,Xx;qx=Kx,Xx=157,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0x0")](){return[zx]}afterInit(){const t=this[$x("0x3e")],e=t.model[$x("0x2e")].selection,n=t.locale;if(!t.plugins.has($x("0x3f")))return;const o=t.plugins.get($x("0x36")),i=t[$x("0x1f")][$x("0x3b")]($x("0x1c")),r=t.plugins[$x("0x3b")](zx);r[$x("0x32")][$x("0x8")]($x("0x28")),o.enableCommand($x("0x28"),(()=>{const e=i[$x("0xa")](t[$x("0x49")][$x("0x2e")][$x("0x15")]);t.model[$x("0x35")]((()=>{o[$x("0x3d")](e,{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))})),t[$x("0x33")][$x("0x3b")]($x("0x28")).on($x("0x20"),((e,n)=>{t[$x("0x33")][$x("0x3b")]($x("0x2"))[$x("0x7")]&&(n[$x("0x3a")]>0&&n[n[$x("0x3a")]-1]&&n[n[$x("0x3a")]-1].forceDefaultExecution||o[$x("0x3c")]||this[$x("0x34")]()||e.stop())}),{priority:"highest"});for(const e of[$x("0x18"),$x("0x11"),$x("0x16"),$x("0x2b")]){const n=t[$x("0x33")][$x("0x3b")](e);o.enableCommand(e,(()=>{const e=t[$x("0x49")][$x("0x2e")].selection[$x("0x26")]()[$x("0xd")]().find((t=>t.is("element",$x("0x44")))),i=n[$x("0x7")];t[$x("0x49")].change((()=>{o[$x("0x3d")]([e,i],{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[$x("0x25"),$x("0x27")]){const n=t[$x("0x33")][$x("0x3b")](e);o[$x("0x39")](e,(()=>{const r=i[$x("0xa")](t[$x("0x49")][$x("0x2e")].selection)[0],s=r[$x("0x6")]($x("0x19")),{column:x,row:a}=i[$x("0x45")](r);let c=[];if($x("0x1d")==n.direction){const t=i[$x("0x3")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x40")](t).map((t=>t[$x("0x2f")]))}else{const t=i[$x("0x3")](s,{column:x,includeAllSlots:!0});c=Array[$x("0x40")](t)[$x("0x2d")]((t=>t.cell))}t[$x("0x49")][$x("0x35")]((t=>{o[$x("0x4b")](t[$x("0x1")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[$x("0x23")].registerDescriptionCallback((t=>{if($x("0x13")!=t[$x("0x48")]&&$x("0x47")!=t[$x("0x48")])return;const{data:e}=t;return e&&"mergeTableCells"==e.commandName?{type:$x("0x5"),content:Qo(n,$x("0x1a"))}:void 0})),o._descriptionFactory[$x("0x1b")]((t=>{if($x("0x13")!=t[$x("0x48")]&&$x("0x47")!=t.type)return;const{data:e}=t;return e?"splitTableCellVertically"==e[$x("0x30")]?{type:$x("0x5"),content:Qo(n,$x("0x10"))}:"splitTableCellHorizontally"==e[$x("0x30")]?{type:$x("0x5"),content:Qo(n,"*Split cell:* horizontally")}:void 0:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of["mergeTableCellUp",$x("0x11"),$x("0x16"),$x("0x2b")])o[$x("0x22")][$x("0x2a")]($x("0x13"),t,$x("0x43"),x);for(const t of[$x("0x25"),"splitTableCellHorizontally"])o[$x("0x22")][$x("0x2a")]("formatBlock",t,$x("0x43"),x);o[$x("0x22")].registerCustomCallback($x("0x13"),$x("0x28"),$x("0x43"),(n=>{t[$x("0x49")][$x("0x35")]((o=>{const i=Array.from(e[$x("0x38")]()).map((t=>s.LiveRange[$x("0x4a")](t)));o.setSelection(n),t[$x("0x33")][$x("0x3b")]($x("0x28"))[$x("0x21")](),t[$x("0x20")]($x("0x28"),{forceDefaultExecution:!0});const r=i[$x("0x2c")]((t=>"$graveyard"!=t[$x("0x31")][$x("0x37")]));r[$x("0x3a")]>0&&o[$x("0x29")](r);for(const t of i)t[$x("0x9")]()}))}));for(const e of["mergeTableCellUp",$x("0x16"),$x("0x2b"),$x("0x11")]){const n=t[$x("0x33")][$x("0x3b")](e);n.on($x("0xc"),((e,o,i)=>{if(i){const o=t[$x("0x49")][$x("0x2e")][$x("0x15")].getFirstPosition()[$x("0xd")]()[$x("0x1e")]((t=>t.is("element",$x("0x44"))));this[$x("0x24")](n.value,o)||(e.return=!1,e[$x("0x41")]())}}),{priority:$x("0x4")})}}[$x("0x34")](){const t=this.editor.commands[$x("0x3b")]("mergeTableCells"),e=this[$x("0x3e")][$x("0x1f")][$x("0x3b")]($x("0x1c"));if(!t[$x("0x46")])return!1;const n=e[$x("0xa")](this[$x("0x3e")][$x("0x49")].document[$x("0x15")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x24")](t,e))return!1;return!0}[$x("0x24")](t,e){const n=this[$x("0x3e")][$x("0x1f")][$x("0x3b")]($x("0x36")),o=this[$x("0x3e")].model[$x("0x1")](t),i=this.editor[$x("0x49")][$x("0x1")](e),r=new Set,s=new Set;for(const t of n.getSuggestions())if(($x("0xe")==t[$x("0x48")]||"deletion"==t[$x("0x48")]||$x("0x28")==t[$x("0x12")])&&t[$x("0xb")])for(const e of t.getRanges())e.containsRange(o,!0)&&r.add(t.type+":"+t[$x("0x14")].id),e.containsRange(i,!0)&&s[$x("0xf")](t[$x("0x48")]+":"+t[$x("0x14")].id);if(r[$x("0x17")]!=s.size)return!1;for(const t of r)if(!s[$x("0x42")](t))return!1;return!0}}const Yx=["highest","bindElementToMarker","parent","createTableWalker","item","addMarker:suggestion","afterInit","ck-suggestion-marker-","headingRows","FORMAT_HEADER_ROW","editing","removeMarker:suggestion","FORMAT_REGULAR_ROW","locale","removeAttribute","consumable","options","markerNameToElements","removeClass","markerRange","format","addClass","consume","setTableRowHeader","TrackChangesEditing","_suggestionFactory","data-suggestion","ck-suggestion-marker--active","writer","has","getCellLocation","data","mapper","requires","FORMAT_HEADER_COLUMN","TableEditing","_descriptionFactory","end","registerCustomCallback","forceValue","start","cell","editor","nodeBefore","setAttribute","_handleLegacySuggestions","*Format:* %0","get","_acceptFormatSuggestionCallbackFactory","downcastDispatcher","registerAttributeLabel","includes","toViewElement","_enableDefaultAttributesIntegration","plugins","type","getSuggestion","markerName","formatBlock","setTableColumnHeader","name","commandName","commandParams","accept","FORMAT_REGULAR_COLUMN","_splitMarkerName"];var Jx,Qx;Jx=Yx,Qx=287,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0xa")](){return[zx]}[ta("0x31")](){const t=this.editor;if(!t[ta("0x1f")][ta("0x6")](ta("0xc")))return;const e=t.locale,n=t[ta("0x1f")][ta("0x18")](ta("0x1"));n[ta("0x1e")]("setTableRowHeader",[],[ta("0x33")]),n._enableDefaultAttributesIntegration(ta("0x24"),[],["headingColumns"]),n[ta("0xd")][ta("0x1b")](ta("0x33"),Qo(e,"FORMAT_HEADER_ROW")),n[ta("0xd")].registerAttributeLabel("headingColumns",Qo(e,ta("0xb"))),this[ta("0x16")]()}[ta("0x16")](){const t=this.editor.plugins.get(ta("0x1")),e=this[ta("0x13")].plugins[ta("0x18")]("TableUtils"),n=this.editor[ta("0x1f")].get(zx)[ta("0x19")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(i,r,s)=>{const{type:x,id:a}=t[ta("0x2a")](r[ta("0x22")]),c=t[ta("0x21")](a),l=c[ta("0x8")];if("formatBlock"!=c[ta("0x20")]||!l||ta("0x24")!=l.commandName)return;if(r[ta("0x2f")])return void i.stop();if(!s[ta("0x3a")][ta("0x41")](r[ta("0x3e")],i[ta("0x25")]))return;const u=r[ta("0x3e")][ta("0x11")].nodeAfter,d=r[ta("0x3e")][ta("0xe")][ta("0x14")],g=u[ta("0x2d")][ta("0x2d")],{column:f}=e[ta("0x7")](u),{column:m}=e.getCellLocation(d);for(let i=f;i<=m;i++){const c=e[ta("0x2e")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[ta("0x12")],c=s[ta("0x9")][ta("0x1d")](i);s[ta("0x5")].addClass(ta("0x32")+x,c),o&&s[ta("0x5")][ta("0x15")](ta("0x3"),a,c),s[ta("0x9")][ta("0x2c")](c,r[ta("0x22")]),n&&(t.activeMarkers[ta("0x1c")](r[ta("0x22")])?s.writer[ta("0x40")](ta("0x4"),c):s[ta("0x5")][ta("0x3d")](ta("0x4"),c))}}}}t[ta("0x2")][ta("0xf")](ta("0x23"),ta("0x0"),ta("0x28"),n),t[ta("0x2")].registerCustomCallback(ta("0x23"),ta("0x24"),ta("0x28"),n),this.editor[ta("0x35")][ta("0x1a")].on(ta("0x30"),o(),{priority:ta("0x2b")}),this[ta("0x13")][ta("0x8")][ta("0x1a")].on(ta("0x30"),((t,e,n)=>{n[ta("0x3b")].showSuggestionHighlights&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this[ta("0x13")][ta("0x35")].downcastDispatcher.on(ta("0x36"),((e,n,o)=>{const{type:i,id:r}=t[ta("0x2a")](n[ta("0x22")]),s=t[ta("0x21")](r),x=s[ta("0x8")];if(ta("0x23")!=s[ta("0x20")]||!x||"setTableColumnHeader"!=x[ta("0x26")])return;const a=o[ta("0x9")][ta("0x3c")](n[ta("0x22")]);if(a)for(const t of a)o.writer[ta("0x3d")](ta("0x32")+i,t),o[ta("0x5")][ta("0x3d")](ta("0x4"),t),o[ta("0x5")][ta("0x39")](ta("0x3"),t),o[ta("0x9")].unbindElementFromMarkerName(t,n[ta("0x22")])}),{priority:ta("0x2b")}),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ta("0x13")],e=t[ta("0x38")];function n(t){return{type:ta("0x3f"),content:Qo(e,ta("0x17"),t)}}t[ta("0x1f")].get(ta("0x1"))[ta("0xd")].registerDescriptionCallback((t=>{if(ta("0x23")!=t[ta("0x20")])return;const{data:o}=t;if(o){if(ta("0x0")==o[ta("0x26")]){const t=o.commandParams[0][ta("0x10")];return n(Qo(e,ta(t?"0x34":"0x37")))}if(ta("0x24")==o[ta("0x26")]){const t=o[ta("0x27")][0][ta("0x10")];return n(Qo(e,ta(t?"0xb":"0x29")))}}}))}}const na=["suggestionLoaded","join","suggestionUnloaded","commands","removeMarker","add","getAllAdjacentSuggestions","newRange","cell","columnInsertionRanges","createRangeIn","move","tableCellHorizontalAlignment","*Replace table cells*","endRow","stop","containsRange","markerName","tablePasteCell","differ","has","nodeAfter","discard","registerPostFixer","includes","markerAttributes","some","end","deletionRanges","showSuggestionHighlights","map","editor","getMarkers","markMultiRangeBlockFormat","_getCoordsForCells","document","suggestion","_isForcedDefaultExecutionBlock","unwrap","conversion","element","insertRows","getContainedElement","findAncestor","subType","next","selection","registerDescriptionCallback","ck-suggestion-marker-insertion","plugins","removeMarkers","wrap","_suggestionFactory","createTableWalker","removeColumns","editingDowncast","insertColumns","Users","getSuggestions","markMultiRangeInsertion","getColumns","tableCellBorderStyle","get","TableClipboard","author","tablePasteChainId","tableCellSuggestion","insertion","isInContent","_createdBatches","find","markMultiRangeDeletion","name","paragraph","for","activeMarkers","tablePasteRow","markerToHighlight","high","createElement","tableCellBackgroundColor","getItems","isEqual","getTableIfOnlyTableInContent","isEmpty","last","every","register","getSuggestionCallback","getRange","cells","reduce","columns","value","insertionRanges","registerCustomCallback","oldRange","getChild","model","type","return","set","push","$graveyard","locale","setAttributes","_descriptionFactory","_tablePostFixingSubtypes","suggestion:formatBlock:tablePasteCell","_splitMarkerName","previousSibling","schema","getRows","ck-suggestion-marker--active","getChangedMarkers","ck-suggestion-marker","fill","content","from","TableUtils","insert","createPositionBefore","trackChanges","elementToElement","position","keys","redo","table","_replaceTableSlotCell","getRanges","dataDowncast","markers","insertContent","previous","rowInsertionIndexes","row","formatBlock","tableCellVerticalAlignment","getSuggestion","createRangeOn","forceDefaultExecution","tablePasteColumn","tableCellBorderWidth","deletion","start","view","removeRows","length","updateMarker","tablePaste","hasSuggestion","accept","remove","getChildren","columnInsertionIndexes","rowInsertionRanges","tableCell","fromEntries","getRowIndexes","tableCellPadding","attributes","first","batch","startsWith","requires","change","filter"];var oa,ia;oa=na,ia=171,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]},sa=[ra("0x8a"),"tableCellBorderColor",ra("0x39"),ra("0x8"),ra("0x85"),ra("0x4c"),ra("0x9b")],xa=Object[ra("0x99")](sa.map((t=>[t,null])));class aa extends t.Plugin{static get[ra("0xa0")](){return[zx]}afterInit(){const t=this[ra("0x1b")];if(!t[ra("0x2d")].has(ra("0x3b")))return;const n=t.plugins.get("TrackChangesEditing"),o=t[ra("0x2d")][ra("0x3a")](ra("0x73")),i=t.plugins[ra("0x3a")](zx),r=t.plugins[ra("0x3a")](ra("0x3b"));i[ra("0x67")].push(ra("0x48"),ra("0x89")),t[ra("0x5e")][ra("0x6b")][ra("0x53")](ra("0x3e"),{allowIn:ra("0x98"),allowContentOf:ra("0x98"),isLimit:!0}),t[ra("0x23")][ra("0x77")]({model:ra("0x3e"),view:"suggestion-td"});let s=null;t[ra("0x5e")].on(ra("0x80"),((i,x)=>{const[a,c]=x,l=x[x[ra("0x8f")]-1];l&&l[ra("0x88")]||n[ra("0x21")]||this[ra("0x1b")][ra("0xa6")][ra("0x3a")](ra("0x76"))[ra("0x59")]&&function(t,e,n,o,i){if(e&&!e.is("documentSelection"))return!1;const r=i[ra("0x4f")](t,n);if(!r||!la(r,void 0,o))return!1;const s=o.getSelectionAffectedTableCells(n[ra("0x1f")][ra("0x2a")]);if(!s[ra("0x8f")])return!1;const x=s[0][ra("0x27")](ra("0x7b")),a=o[ra("0x9a")](s),c=o.getColumnIndexes(s),l={startRow:a[ra("0x9d")],endRow:a[ra("0x51")],startColumn:c[ra("0x9d")],endColumn:c[ra("0x51")]};return 1==s[ra("0x8f")]&&(l[ra("0xa")]+=o[ra("0x6c")](r)-1,l.endColumn+=o[ra("0x38")](r)-1),la(x,l,o)}(a,c,t.model,o,r)&&(i[ra("0xb")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[ra("0xa1")]((()=>{t.model[ra("0x80")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ra("0x8f")]&&n[ra("0x37")](i,"tablePasteRow",{tablePasteChainId:o}),r.length&&n[ra("0x37")](r,ra("0x89"),{tablePasteChainId:o}),a[ra("0x8f")]&&n[ra("0x37")](a,ra("0x91"),{tablePasteChainId:o,skipNestingCheck:!0}),c[ra("0x8f")]&&n[ra("0x43")](c,ra("0x91"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ra("0x1d")](l[ra("0x1a")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ra("0xe"),{tablePasteChainId:o});if(u){const e=u[ra("0x1c")](),n=[];for(const{element:o,attributes:i}of l){if(!i)continue;const r=t[ra("0x5e")][ra("0x87")](o),s=e[ra("0x42")]((t=>t.getRange()[ra("0x4e")](r)));s&&n[ra("0x62")]([s[ra("0x44")],i])}n.length&&u.setAttribute("markerAttributes",Object[ra("0x99")](n))}s=null})))}),{priority:e.priorities[ra("0x4a")]+10}),t[ra("0x2d")][ra("0x3a")](ra("0x3b")).on(ra("0x7c"),((t,e)=>{const[n,o,,i]=e;if(!s)return;t.stop();const r=n[ra("0x4")],x=o,a=ca(r),c=ca(x);t[ra("0x60")]=r;let l=null,u=null;if(c||a)if(a&&!c){i[ra("0x94")](r[ra("0x5d")](0));for(const t of Array[ra("0x72")](x[ra("0x95")]()))i[ra("0x74")](t,r,ra("0x17"));const t=s[ra("0x82")][ra("0x14")](n[ra("0x83")]),e=s.columnInsertionIndexes[ra("0x14")](n.column);t||e||(l=i[ra("0x6")](r))}else c&&!a&&(u=i[ra("0x6")](r));else{const t=i.createElement(ra("0x3e")),e=i[ra("0x4b")](ra("0x3e"));i[ra("0x2f")](i[ra("0x6")](r),e),i[ra("0x74")](t,r,0);for(const e of Array[ra("0x72")](x[ra("0x95")]()))i[ra("0x74")](e,t,"end");l=i[ra("0x87")](t),u=i[ra("0x87")](e)}const d=Array[ra("0x72")](x.getAttributes())[ra("0xa2")]((([t])=>sa[ra("0x14")](t)));s[ra("0x56")][ra("0x62")]({element:r,attributes:d.length?Object[ra("0x99")](d):null}),l&&s[ra("0x5a")][ra("0x62")](l),u&&s[ra("0x18")][ra("0x62")](u)}),{priority:ra("0x4a")}),o.on(ra("0x34"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x58")]||1;s[ra("0x96")]=new Array(a)[ra("0x70")](x)[ra("0x1a")](((t,e)=>t+e));for(const{cell:e}of o[ra("0x31")](i,{startColumn:x,endColumn:x+a-1}))s[ra("0x5")][ra("0x62")](t[ra("0x5e")].createRangeOn(e))}),{priority:"low"}),o.on(ra("0x25"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r.rows||1;s[ra("0x82")]=new Array(a)[ra("0x70")](x).map(((t,e)=>t+e));for(const{cell:e}of o[ra("0x31")](i,{startRow:x,endRow:x+a-1}))s[ra("0x97")][ra("0x62")](t[ra("0x5e")][ra("0x87")](e))}),{priority:"low"}),n[ra("0x66")][ra("0x2b")]((e=>{if(e[ra("0x28")]&&e.subType[ra("0x9f")](ra("0x91")))return e[ra("0x81")]?{}:{type:ra("0x3f"),content:Qo(t[ra("0x64")],ra("0x9"))}}));const x=()=>!1;for(const t of[ra("0x91"),ra("0x89"),"tablePasteRow",ra("0xe")])n[ra("0x30")][ra("0x5b")](ra("0x3f"),t,"join",x),n[ra("0x30")].registerCustomCallback(ra("0x8b"),t,ra("0xa4"),x),n._suggestionFactory[ra("0x5b")](ra("0x84"),t,"join",x);n[ra("0x30")][ra("0x5b")]("formatBlock",ra("0xe"),ra("0x12"),x),n[ra("0x30")].registerCustomCallback("formatBlock",ra("0xe"),ra("0x93"),((e,n,o)=>{const i=e[ra("0x1a")]((t=>t[ra("0x26")]())).filter((t=>t)),r=new Map(i[ra("0x1a")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s.cells)e&&r[ra("0x61")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object.entries(o[ra("0x15")])){const o=t[ra("0x5e")][ra("0x7f")].get(e),i=o?o[ra("0x55")]()[ra("0x26")]():null;i&&r.set(i,n)}t[ra("0x5e")][ra("0xa1")]((t=>{for(const[e,n]of r)t[ra("0x65")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ra("0x30")].registerCustomCallback(e,ra("0x91"),o,((i,r,s)=>{t.model[ra("0xa1")]((t=>{const x=[];for(const t of i){const e=t[ra("0x8c")][ra("0x11")];e.is("element",ra("0x3e"))&&x.push(e)}n[ra("0x30")][ra("0x54")](e,null,o)(i,r,s);for(const e of x)ra("0x63")!=e.root.rootName&&t.unwrap(e)}))}))};a(ra("0x3f"),ra("0x93")),a(ra("0x3f"),ra("0x12")),a("deletion",ra("0x93")),a(ra("0x8b"),"discard"),n[ra("0x30")][ra("0x5b")](ra("0x3f"),ra("0x48"),ra("0x12"),(t=>{const e=t[ra("0x1a")]((t=>t.getContainedElement())),n=e[0][ra("0x27")](ra("0x7b")),{minRow:r,maxRow:s}=i[ra("0x1e")](e);o[ra("0x8e")](n,{at:r,rows:s-r+1})})),n[ra("0x30")].registerCustomCallback(ra("0x3f"),ra("0x89"),ra("0x12"),(t=>{const e=t[ra("0x1a")]((t=>t[ra("0x26")]())),n=e[0].findAncestor(ra("0x7b")),{minColumn:r,maxColumn:s}=i._getCoordsForCells(e);o[ra("0x32")](n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e[ra("0x28")]||!e[ra("0x28")].startsWith(ra("0x91")))return;const o=e.attributes[ra("0x3d")],i=n[ra("0x36")]()[ra("0xa2")]((t=>t[ra("0x40")]&&t[ra("0x9c")]&&t[ra("0x9c")][ra("0x3d")]==o));i[ra("0x8f")]&&e[ra("0x2")]()[ra("0x8f")]!=i[ra("0x8f")]&&i[ra("0x57")](((t,e)=>(t[ra("0x29")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[ra("0x69")](t[ra("0xd")]),i=[ra("0x6f"),ra("0x2c")],r=n[ra("0x47")].includes(t.markerName);return r&&i[ra("0x62")](ra("0x6d")),{classes:i,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(ra("0xa3"),c,{priority:"high"}),n.on(ra("0xa5"),c,{priority:ra("0x4a")}),t[ra("0x5e")].document.registerPostFixer((()=>{let e=!1;const o=Array[ra("0x72")](t[ra("0x5e")][ra("0x1f")][ra("0xf")][ra("0x6e")]());for(const{name:i,data:r}of o){const{group:o,type:s,id:x}=n._splitMarkerName(i);if(ra("0x20")!=o||ra("0x8b")!=s||r[ra("0x5c")])continue;if(!n[ra("0x92")](x))continue;const a=n[ra("0x86")](x).getRanges(),c=t[ra("0x2d")].get(ra("0x35")).me;for(const t of n.getSuggestions())if(t.isInContent&&t.author==c&&ra("0x84")==t[ra("0x5f")]&&ra("0xe")==t[ra("0x28")]&&t[ra("0x7d")]()[ra("0x52")]((t=>a[ra("0x16")]((e=>e[ra("0xc")](t,!0))))))for(const n of t[ra("0x2")]())n[ra("0x40")]&&(n[ra("0x12")](),e=!0)}return e})),t.model[ra("0x1f")].registerPostFixer((e=>{const o=t[ra("0xa6")][ra("0x3a")](ra("0x7a"));if(!o||!o[ra("0x41")][ra("0x10")](e[ra("0x9e")]))return!1;let i=!1;const r=t[ra("0x2d")].get(ra("0x35")).me,s=t.model[ra("0x1f")][ra("0xf")].getChanges(),x=Array[ra("0x72")](t[ra("0x5e")].document[ra("0xf")][ra("0x6e")]()).filter((({name:t,data:e})=>{const{group:o,subType:i,authorId:s}=n[ra("0x69")](t);return ra("0x20")==o&&"tablePaste"==i&&s==r.id&&!e[ra("0x5c")]}));for(const t of s){if(ra("0x74")!=t[ra("0x5f")]||"tableCellSuggestion"!=t.name||1!=t[ra("0x8f")])continue;const n=e.createRange(t.position,t[ra("0x78")].getShiftedBy(1));if(!x[ra("0x42")]((({data:t})=>t.newRange[ra("0x4e")](n))))for(const{name:t,data:o}of x)if(n[ra("0xc")](o[ra("0x3")])){e[ra("0x90")](t,{range:n}),i=!0;break}}return i})),t[ra("0x5e")].document[ra("0x13")]((e=>{let o=!1;const i=t[ra("0x2d")][ra("0x3a")](ra("0x35")).me,r=n[ra("0x36")]()[ra("0xa2")]((t=>t[ra("0x40")]&&t[ra("0x3c")]==i)),s=new Set,x=new Set;for(const t of r)if(ra("0x91")==t[ra("0x28")])for(const e of t.getMarkers()){const n=e[ra("0x55")]().getContainedElement();if(n)if(n.is("element",ra("0x3e"))&&ca(n)){t[ra("0x0")](e[ra("0x44")]),s[ra("0x1")](n),o=!0;const i=n.nextSibling,r=n[ra("0x6a")],a=i&&i.is("element",ra("0x3e")),c=r&&r.is("element",ra("0x3e"));a&&!s[ra("0x10")](i)&&x.add(i),c&&!s[ra("0x10")](r)&&x[ra("0x1")](r)}else n.is(ra("0x24"),ra("0x45"))&&n.isEmpty&&(t.removeMarker(e[ra("0x44")]),o=!0)}else if("tablePasteCell"==t[ra("0x28")]){if(!t.attributes||!t[ra("0x9c")][ra("0x3d")])continue;const e=t[ra("0x9c")][ra("0x15")];if(e&&Object[ra("0x79")](e)[ra("0x8f")])continue;const n=t[ra("0x9c")][ra("0x3d")];let i=!0,s=!0;for(const e of r)if(e[ra("0x28")]&&e.subType[ra("0x9f")](ra("0x91"))){if(!e.attributes[ra("0x3d")]){s=!1;break}if(e.id!=t.id&&e[ra("0x9c")][ra("0x3d")]==n){i=!1;break}}s&&i&&(t[ra("0x2e")](),o=!0)}for(const t of s)e.remove(t);for(const t of x)e[ra("0x22")](t);return o})),t[ra("0x23")][ra("0x46")](ra("0x33"))[ra("0x49")]({model:ra("0x68"),view:(t,e)=>l(t),converterPriority:ra("0x4a")}),t.conversion.for(ra("0x7e"))[ra("0x49")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e.options[ra("0x19")]?l(t,!1):null,converterPriority:ra("0x4a")});const u=t.editing[ra("0x8d")];this.listenTo(u[ra("0x1f")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[ra("0x6")](e[ra("0x71")])[ra("0x4d")]())t.is(ra("0x24"),"suggestion-td")&&n.push(t);u.change((t=>{for(const e of n)t[ra("0x7")](t[ra("0x6")](e),t[ra("0x75")](e)),t.remove(e)}))}))}}function ca(t){if(t[ra("0x50")])return!0;const e=t[ra("0x5d")](0);return e.is("element",ra("0x45"))&&e[ra("0x50")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:i,cellWidth:r}of n[ra("0x31")](t,{includeAllSlots:!0,...e}))if(!o||1!=i||1!=r)return!1;return!0}const ua=["getContainedElement","TableColumnResizeEditing","bind","change","has","locale","Users","formatInline","resizeTableWidth","editor","formatGroupId","model","accept","subType","registerCustomCallback","plugins","getColumnGroupElement","selection","getTableColumnsWidths","get","columnWidths","document","formatBlock","discard","resizeTable","TrackChangesEditing","tableWidth","data","markBlockFormat","type","getSuggestions","*Format:* resize table","author","_suggestionFactory","enableCommand","getSelectedElement","getSuggestionCallback"];var da,ga;da=ua,ga=365,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{afterInit(){if(!this.editor[fa("0x14")][fa("0x9")](fa("0x6")))return;const t=this[fa("0xe")][fa("0x14")][fa("0x18")](fa("0x1e"));t[fa("0x2")](fa("0xd"),this.handleResizeTableWidthCommand[fa("0x7")](this)),t[fa("0x1")][fa("0x13")]("formatBlock",fa("0x1d"),fa("0x11"),t[fa("0x1")].getSuggestionCallback("formatBlock",null,fa("0x1c"))),t[fa("0x1")].registerCustomCallback(fa("0x1b"),fa("0x1d"),fa("0x1c"),t[fa("0x1")][fa("0x4")](fa("0x1b"),null,fa("0x11"))),t._descriptionFactory.registerDescriptionCallback(this.handleSuggestionDescription.bind(this))}handleResizeTableWidthCommand(t,e){const n=this[fa("0xe")][fa("0x14")].get(fa("0x1e")),o=this[fa("0xe")][fa("0x14")].get("TableColumnResizeEditing"),i=e.table||this[fa("0xe")][fa("0x10")][fa("0x1a")][fa("0x16")][fa("0x3")]();this[fa("0xe")].model[fa("0x8")]((()=>{const r=o[fa("0x15")](i);let s=r?o[fa("0x17")](r):null,x=i.getAttribute("tableWidth")||null;const a=e.tableWidth||x,c=e[fa("0x19")]||s,l=this[fa("0xe")][fa("0x14")][fa("0x18")](fa("0xb")).me;for(const t of n[fa("0x23")]()){const e=t[fa("0x5")]();if(fa("0x1d")===t[fa("0x12")]&&e===i){t[fa("0x0")]!==l&&t[fa("0x1c")]();const e=t[fa("0x20")].commandParams;x=e[0][fa("0x1f")],s=e[0][fa("0x19")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[fa("0x21")](i,{commandName:fa("0xd"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x1d")},[],"resizeTable")}))}handleSuggestionDescription(t){if(fa("0x1b")!=t[fa("0x22")]&&fa("0xc")!=t[fa("0x22")])return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0xf")]){const t=fa("0x24");return{type:"format",content:Qo(this.editor[fa("0xa")],t)}}}}const ha=["has","Template","insertTemplate","get","editor","enableCommand","plugins","afterInit"];var pa,ba;pa=ha,ba=134,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x1")](){const t=this[Ea("0x6")];t[Ea("0x0")][Ea("0x2")](Ea("0x3"))&&t[Ea("0x0")][Ea("0x5")]("TrackChangesEditing")[Ea("0x7")](Ea("0x4"))}}const Ta=["insertTableOfContents","enableCommand","plugins","registerElementLabel","commands","_descriptionFactory","locale","get","TrackChangesEditing","afterInit"];var ya,Ca;ya=Ta,Ca=210,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x9")](){const t=this.editor;if(!t[Aa("0x4")].get(Aa("0x0")))return;t[Aa("0x2")][Aa("0x7")](Aa("0x8"))[Aa("0x1")](Aa("0x0"));const e=t[Aa("0x2")][Aa("0x7")](Aa("0x8")),n=t[Aa("0x6")];e[Aa("0x5")][Aa("0x3")]("tableOfContents",(t=>Qo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const Ia=["Title","end","isCollapsed","TrackChangesEditing","document","get","isEqual","getNearestSelectionRange","updateMarker","has","start","createRange","locale","plugins","forward","getChangedMarkers","differ","ELEMENT_TITLE","newRange","schema","model","afterInit","title-content","suggestion","nodeBefore","_descriptionFactory","removeMarker","isTouching"];var Sa,Ra;Sa=Ia,Ra=473,function(t){for(;--t;)Sa.push(Sa.shift())}(++Ra);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[va("0x18")](){const t=this.editor;if(!t[va("0x10")][va("0xc")](va("0x3")))return;const e=t[va("0x10")][va("0x8")](va("0x6"));e[va("0x0")].registerElementLabel(va("0x19"),(()=>Qo(t[va("0xf")],va("0x14")))),t[va("0x17")][va("0x7")].registerPostFixer((n=>{let o=!1;const i=Array.from(t[va("0x17")][va("0x7")][va("0x13")][va("0x12")]());for(const{name:r,data:s}of i){const{group:i}=e._splitMarkerName(r);if(va("0x1a")!==i||!s[va("0x15")])continue;const x=s[va("0x15")],a=x[va("0x4")][va("0x1b")];if(!a||!a.is("element",va("0x19")))continue;if(!x[va("0xd")][va("0x2")](x[va("0x4")]))continue;const c=t[va("0x17")][va("0x16")][va("0xa")](x[va("0x4")],va("0x11"));if(c&&c[va("0x5")]){const t=n[va("0xe")](x.start,c[va("0xd")]);t[va("0x9")](x)||(n[va("0xb")](r,{range:t}),o=!0)}o||(n[va("0x1")](r),o=!0)}return o}))}}const La=["get","undo","afterInit","editor","enableCommand","UndoEditing","redo","plugins","TrackChangesEditing"];var Ma,wa;Ma=La,wa=119,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x0")](){const t=this[Oa("0x1")],e=t[Oa("0x5")][Oa("0x7")](Oa("0x6"));t.plugins.has(Oa("0x3"))&&(e[Oa("0x2")](Oa("0x8")),e.enableCommand(Oa("0x4")))}}const Da=["editor","has","get","plugins","enableCommand","TableCaptionEditing","toggleTableCaption","requires","afterInit"];var Ba,Pa;Ba=Da,Pa=336,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x4")](){return[zx]}[Ua("0x5")](){const t=this[Ua("0x6")];t[Ua("0x0")][Ua("0x7")](Ua("0x2"))&&t[Ua("0x0")][Ua("0x8")]("TrackChangesEditing")[Ua("0x1")](Ua("0x3"))}}const Ga=["TableCellPropertiesEditing","getSuggestionCallback","registerDescriptionCallback","_suggestionFactory","document","tableAlignment","plugins","tableCellBorderWidth","TablePropertiesEditing","selection","*Format:* change table cell properties","join","handleSuggestionDescription","getContainedElement","getSelectionAffectedTableCells","tableBorderWidth","enqueueChange","editor","formatBlock","nodeAfter","handleDiscardAction","tableCellBorderColor","TrackChangesTableProperties","tableBackgroundColor","has","_descriptionFactory","change","_handlePropertyChange","tableCellPadding","enableCommand","getSuggestions","commandParams","tableCellWidth","start","discard","tableCellHeight","locale","findAncestor","tableCellProperties","format","table","_getSuggestion","TableUtils","registerCustomCallback","accept","tableBorderColor","tableProperties","subType","pluginName","tableCellVerticalAlignment","tableCellBorderStyle","get","model","tableCellHorizontalAlignment","getFirstPosition","TrackChangesEditing","*Format:* change table properties"];var Ha,Va;Ha=Ga,Va=435,function(t){for(;--t;)Ha.push(Ha.shift())}(++Va);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this.tableProperties=[za("0x9"),"tableBorderStyle",za("0x24"),za("0x1a"),"tableWidth","tableHeight",za("0x2c")],this[za("0x2")]=[za("0x2a"),za("0xe"),za("0x1c"),za("0x31"),za("0x35"),za("0x38"),"tableCellBackgroundColor",za("0x11"),za("0xd")]}static get[za("0xc")](){return za("0x2b")}afterInit(){const t=this.editor[za("0x1b")].get("TrackChangesEditing");if(this.editor[za("0x1b")][za("0x2d")](za("0x1d"))){for(const e of this[za("0xa")])t[za("0x32")](e,((t,n)=>{const o=this[za("0x26")][za("0x10")][za("0x19")][za("0x1e")][za("0x12")]()[za("0x1")](za("0x4"));this[za("0x30")](e,[o],this[za("0xa")],"tableProperties",t,n)}));t[za("0x18")][za("0x7")]("formatBlock",za("0xa"),za("0x8"),t._suggestionFactory.getSuggestionCallback(za("0x27"),null,za("0x37"))),t._suggestionFactory[za("0x7")]("formatBlock",za("0xa"),za("0x37"),((t,e)=>this[za("0x29")](this.tableProperties,t,e))),t._suggestionFactory[za("0x7")](za("0x27"),za("0xa"),za("0x20"),(()=>!1))}if(this[za("0x26")][za("0x1b")][za("0x2d")](za("0x15"))){for(const e of this[za("0x2")])t[za("0x32")](e,((t,n)=>{const o=this.editor.plugins[za("0xf")](za("0x6"))[za("0x23")](this[za("0x26")].model[za("0x19")].selection);this._handlePropertyChange(e,o,this[za("0x2")],za("0x2"),t,n)}));t[za("0x18")][za("0x7")]("formatBlock",za("0x2"),za("0x8"),t[za("0x18")][za("0x16")](za("0x27"),null,za("0x37"))),t[za("0x18")][za("0x7")]("formatBlock",za("0x2"),za("0x37"),((t,e)=>this.handleDiscardAction(this[za("0x2")],t,e))),t._suggestionFactory[za("0x7")](za("0x27"),"tableCellProperties",za("0x20"),(()=>!1))}t[za("0x2e")][za("0x17")]((t=>this[za("0x21")](t)))}_handlePropertyChange(t,e,n,o,i,r){const s=this[za("0x26")][za("0x1b")].get(za("0x13"));this.editor[za("0x10")][za("0x25")](r.batch,(()=>{for(const t of e)if(this[za("0x5")](t,o))i(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}i(r),s.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[za("0x29")](t,e,n){const o=e[0][za("0x36")][za("0x28")],i=n[za("0x34")][0];this.editor[za("0x10")][za("0x2f")]((e=>{for(const n of t)void 0!==i[n]?e.setAttribute(n,i[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t.data)switch(t[za("0xb")]){case za("0xa"):return{type:"format",content:Qo(this[za("0x26")][za("0x0")],za("0x14"))};case za("0x2"):return{type:za("0x3"),content:Qo(this[za("0x26")].locale,za("0x1f"))}}}[za("0x5")](t,e){const n=this[za("0x26")][za("0x1b")][za("0xf")](za("0x13"));for(const o of n[za("0x33")]({skipNotAttached:!0})){const n=o[za("0x22")]();if(o.subType===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=it?it.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,i,r){var s=-1,x=e.length;for(o||(o=tc),r||(r=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,i,r):sn(r,a):i||(r[r.length]=a)}return r};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var ic=Math.max;const rc=function(t,e,n){return e=ic(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=ic(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=o[i];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(rc(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=po(e,t),o||(o=e.length>1),e})),re(t,dn(t),n),o&&(n=to(n,7,Ja));for(var i=e.length;i--;)Ko(n,e[i]);return n})),uc=["CommentsRepository","insertion:discard","originalSuggestionId","removeMarkers","documentSelection","assign","editing","delete","containerElement","createPositionAfter","_createSuggestion","isNextTo","_descriptionFactory","end","requires","hasCommentThread","removed","key","_reduceSuggestionAttributeRange","locale","change:data","data-suggestion","getAttribute","chain","isUndo","getShiftedBy","markMultiRangeBlockFormat","_findSuggestions","removeMarker","consumable","editingDowncast","insertion:","format","substr","addMarker","stopListening","trackChanges","rootName","high","mapper","markers","_editor","getChangedMarkers","createdAt","normal","ck-suggestion-marker-formatInline","_enabledCommands","insertion:chain","forEach","formatInline:","length","announce","nodeAfter","toViewElement","parent","deletion:accept","values","suggestion:attribute:","containsRangeInObject","addHighlight","unbindElementFromMarkerName","_inlineAttributeKeys","_getMarkerAnnouncementText","plugins","update:suggestion","_setSuggestionData","enableReadOnlyMode","suggestionChanged","getDifference","enableCommand","formatBlock:","_reduceExistingSuggestions","addMarker:suggestion:formatBlock","from","join","markInlineFormat","multipleBlocks","rejected","attribute","_saved","open","_setSuggestionRange","_breakSuggestionMarker","keys","name","trackChanges.mergeNestedSuggestions","isEqual","track-changes-enable-command-twice","$graveyard","acceptSuggestion","newRange","_trackFormatChanges","_registerBlockAttribute","_registerInlineAttribute","_getAuthorFromId","_SUGGESTION_ANNOUNCEMENT","isDocumentOperation","stop","find","some","getChanges","PendingActions","isExternal","filter","start","attributeOldValue","isOwn","return","isInsideObject","getAllAdjacentSuggestions","forward","formatBlock:join","suggestionLoaded","upcast","size","remove","isCollapsed","_blockAttributeKeys","formatGroupId","acceptSelectedSuggestions","_recordAttributeSuggestionsFromVersion","formatInline:discard","oldValue","$text","groupId","addSuggestionData","highest","formatBlock","push","isIntersecting","startsWith","_checkSuggestionCorrectness","notReady","ready","lowest","conversion","never","howMany","addSuggestion","_recordAttributeChanges","accept","_isForcedDefaultExecutionBlock","getUser","reconvertMarker","deletion:join","commandName","_addSuggestionMarker","markerToHighlight","markerReady","group","marker-count","TrackChangesEditing","always","schema","_removeSuggestion","substring","getIntersection","fromCharCode","includes","_suggestionFactory","discardSuggestion","adapter","execute","every","attribute:discard","collaboration.channelId","isAtEnd","getMultiRangeId","containsRange","enqueueChange","batch","markMultiRangeDeletion","previous","subType","isIntersectingWithRange","editor","$textProxy","changeAttribute","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","showSuggestionHighlights","_isBlockAttribute","_refreshAttributeSuggestionsChain","change:activeMarkers","suggestion","_mergeNestedSuggestions","accepted","after","track-changes-user-not-found","warn","config","low","markInsertion","multi","createPositionAt","createRange","deletion:","version","buildSuggestion","isLimit","insertContent","addAttribute","document","track-changes-suggestion-data-mismatch","removeAttribute","_updateSuggestionData","elementStart","skipNestingCheck","addCommentThread","getCommentThread","isLocal","getSuggestions","set","forceDefaultExecution","elementToElement","isInContent","getContainedElement","comments","get","formatInline:join","selection","attributeNewValue","commentThread","element","_joinSuggestions","nodeBefore","insertion:accept","elementEnd","map","ck-suggestion-marker-","addRange","then","_processAttributeChanges","catch","setAttribute","bindElementToMarker","addComment","addClass","type","PENDING_ACTION_SUGGESTION","item","getSuggestion","isObject","tablePasteChainId","markAttributeChange","removeMarker:suggestion:formatBlock","removeClass","removeMarker:suggestion:attribute","addMarkerName","discard","position","ck-suggestion-marker--active","attributes","track-changes-adapter-already-set","default","_isDataLoaded","has","_joinWithAdjacentSuggestions","_handleNewSuggestionMarker","authoredAt","_splitMarkerName","_commentsRepository","attributeKey","_getSuggestionData","trackChangesCommand","_enableDefaultAttributesIntegration","isAfter","next","attribute:accept","_customCallbacks","_defaultCallbacks","splice","hasComments","getFirstRange","range","isBefore","differ","detach","getItems","hasSuggestion","addMarker:suggestion:attribute","createRangeOn","createRangeIn","markerToData","newValue","writer","value","_registerDefaultCallbacks","model","for","insertion","_onDiscard","getFirstMarker","add","_refreshSuggestionsChain","sort","ck-suggestion-marker","trackChanges.trackFormatChanges","listenTo","formatBlock:discard","isRemovable","getAncestors","formatInline","rename","change:_saved","containsItem","activeMarkers","refresh","_getExternalAuthor","$elementName","markBlockFormat","isMultiRange","addUser","clear","_initAriaMarkerChangeAnnouncements","_cutOutSuggestionMarker","discardSelectedSuggestions","consume","rethrowUnexpectedError","split","getRanges","commands","_suggestions","_adapter","getSuggestionCallback","setTo","authorName","_model","creator","_addThreadToSuggestion","getCustomProperty","author","Users","pop","fetchCommentThread","deletion:chain","getLastMatchingPosition","widget","markerName","updateSuggestion","unbind","updateMarker","acceptAllSuggestions","options","define","isArray","_processAttributeSuggestions","track-changes-adapter-missing-getsuggestion","_rangeIsInLocalUserInsertion","createElement","fire","unshift","applyOperation","markDeletion","data","_suggestionState","ariaLiveAnnouncer","registerPostFixer","toJSON","suggestion:","getWalker","head","fromRange","attribute:","discardAllSuggestions","isBlock","suggestion-type","ck-suggestion-marker-formatBlock","meta","deleteContent","root","removeComment","deletion:discard","backward","createSelection","getOperations","deletion","setSelection","insert","move","dataDowncast","@external","change"];var dc,gc;dc=uc,gc=271,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x25");class hc extends t.Plugin{static get[fc("0x7d")](){return["CommentsRepository",r.Users,t.PendingActions,ci,fi,_i,ki,Li,Di,Hi,tr,rr,lr,hr,Tr,Sr,Mr,Pr,Vr,Xr,Qr,is,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,Rx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get pluginName(){return fc("0x106")}constructor(t){function e(t){return t.map((t=>String[fc("0x10c")](t)))[fc("0xb9")]("")}super(t),this[fc("0xe7")]=null,this.set(fc("0x22"),[]),this.on(fc("0x125"),((e,n,o,i)=>{this[fc("0x37")].change((()=>{for(const e of[...i,...o])this[fc("0x37")].markers[fc("0x16e")](e)&&t[fc("0x75")][fc("0xfe")](e)}))})),this[fc("0x7b")]=new ii(this[fc("0x11e")].model[fc("0x108")],this.editor[fc("0x82")]),this._adapter=null,this[fc("0x10e")]=new pc(this[fc("0x11e")]),this[fc("0x32")]=new Map,this._commentsRepository=t[fc("0xae")][fc("0x148")](fc("0x6f")),this[fc("0x9d")]=new Set,this[fc("0x37")]=this[fc("0x11e")][fc("0x10")],this[fc("0x53")]=new WeakMap,this[fc("0xfc")]=!1,this._blockAttributeKeys=new Set([fc("0x25")]),this[fc("0xac")]=new Set,t[fc("0x12c")].define("trackChanges.trackFormatChanges",fc("0x16c")),this[fc("0xca")]=t[fc("0x12c")][fc("0x148")](fc("0x19")),t[fc("0x12c")][fc("0x48")](fc("0xc4"),!0),this._mergeNestedSuggestions=t[fc("0x12c")].get(fc("0xc4")),this[fc("0x176")]=new d(t,this._enabledCommands),this[fc("0x2a")](),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,50,52,50,54])}init(){const t=this[fc("0x11e")],n=(t,e)=>{if(fc("0xbd")!=t)return fc("0x153")+t;const n=e.split("|")[0];return this[fc("0x123")](n)?fc("0x5f"):fc("0x9c")};t[fc("0xf6")].for(fc("0x8d"))[fc("0x102")]({model:fc("0x126"),view:t=>{const{id:e,type:o,subType:i}=this[fc("0x172")](t[fc("0x42")]),r=[fc("0x18"),n(o,i)];let s=3e3;return this[fc("0x22")][fc("0x10d")](t[fc("0x42")])&&(r.push(fc("0x169")),s=3010),fc("0x68")==o&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0xf6")][fc("0x11")](fc("0x6c"))[fc("0x15")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[fc("0x47")].showSuggestionHighlights)return;const i=n.item;if(!i)return;const r=o[fc("0x96")].toViewElement(i);t[fc("0x10")][fc("0x108")][fc("0x160")](i)&&r&&!r[fc("0x3a")](fc("0x41"))&&r.is(fc("0x77"))&&(0,x.toWidget)(r,o[fc("0xd")])}),{priority:fc("0x95")})})),t[fc("0xf6")][fc("0x11")](fc("0x6c"))[fc("0x102")]({model:fc("0x126"),view:(t,e)=>{if(!e[fc("0x47")][fc("0x122")])return null;const{type:o,subType:i}=this[fc("0x172")](t[fc("0x42")]);return{classes:[fc("0x18"),n(o,i)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,i,r)=>{if(!i.item)return;const{id:s}=this[fc("0x172")](i[fc("0x42")]);if(n){const t=Rc(this._suggestions[fc("0x148")](s));if(!this[fc("0x123")](t))return}if(i[fc("0x15e")].is(fc("0x14a")))return void r.consumable.consume(i.item,o.name);const x=r[fc("0x96")][fc("0xa4")](i[fc("0x15e")]);if(i.item.is(fc("0x14d"))&&t.model.schema[fc("0x5d")](i.item)&&!x[fc("0x3a")]("addHighlight")){r[fc("0xd")][fc("0x15b")]([fc("0x18"),fc("0x5f")],x),r[fc("0xd")].setAttribute("data-suggestion",s,x),r[fc("0x96")][fc("0x159")](x,i[fc("0x42")]),e&&(this[fc("0x22")][fc("0x10d")](i.markerName)?r[fc("0xd")].addClass(fc("0x169"),x):r[fc("0xd")].removeClass("ck-suggestion-marker--active",x));for(const e of t.model[fc("0xa")](i.item)[fc("0x6")]())r[fc("0x8c")].consume(e,o[fc("0xc3")]);r.consumable[fc("0x2d")](i[fc("0x15e")],o[fc("0xc3")])}};t[fc("0xf6")][fc("0x11")]("dataDowncast")[fc("0x15")]((t=>{t.on(fc("0xb7"),((t,e,n)=>{n[fc("0x47")][fc("0x122")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0xed")})})),t[fc("0xf6")][fc("0x11")](fc("0x6c"))[fc("0x15")]((t=>{t.on(fc("0x8"),((t,e,n)=>{n.options.showSuggestionHighlights&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0xed")})})),t.conversion.for("dataDowncast")[fc("0xb")]({model:"suggestion",view:(t,e)=>e[fc("0x47")].showSuggestionHighlights?null:{group:fc("0x126"),name:t[fc("0x90")](11)}}),t.conversion[fc("0x11")](fc("0xe0"))[fc("0x144")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x57")+t.getAttribute(fc("0x5e"))+":"+t[fc("0x85")]("id");return t[fc("0x85")](fc("0x105"))&&(n+=":"+t[fc("0x85")](fc("0x105"))),e[fc("0x4d")]("$marker",{"data-name":n})}}),t[fc("0xf6")].for(fc("0xe0")).dataToMarker({view:fc("0x126")}),t[fc("0xf6")][fc("0x11")](fc("0x8d")).add((t=>{t.on(fc("0xb7"),o(),{priority:fc("0x95")})})),t[fc("0xf6")][fc("0x11")](fc("0x8d")).add((t=>{t.on("addMarker:suggestion:attribute",o({isAttributeSuggestion:!0}),{priority:fc("0x95")})})),t[fc("0xf6")][fc("0x11")]("editingDowncast").add((t=>{t.on(fc("0x163"),((t,e,n)=>{const o=n[fc("0x96")].markerNameToElements(e[fc("0x42")]);if(o)for(const t of o)t[fc("0x3a")](fc("0xaa"))||(n[fc("0xd")][fc("0x164")]([fc("0x18"),fc("0x5f"),"ck-suggestion-marker--active"],t),n.writer.removeAttribute(fc("0x84"),t),n[fc("0x96")].unbindElementFromMarkerName(t,e[fc("0x42")]))}),{priority:fc("0x95")})})),t[fc("0xf6")][fc("0x11")](fc("0x8d"))[fc("0x15")]((t=>{t.on(fc("0x165"),((t,e,n)=>{const o=n[fc("0x96")].markerNameToElements(e[fc("0x42")]);if(!o)return;const{id:i}=this[fc("0x172")](e[fc("0x42")]),r=Rc(this[fc("0x32")].get(i));if(this[fc("0x123")](r))for(const t of o)t[fc("0x3a")]("addHighlight")||(n[fc("0xd")][fc("0x164")]([fc("0x18"),fc("0x5f"),"ck-suggestion-marker--active"],t),n[fc("0xd")][fc("0x13a")]("data-suggestion",t),n[fc("0x96")][fc("0xab")](t,e.markerName))}),{priority:fc("0x95")})})),t[fc("0x10")][fc("0x138")][fc("0x55")]((e=>{let n=!1;const o=Array[fc("0xb8")](t[fc("0x10")].document[fc("0x4")][fc("0x99")]()),i=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0x172")](x);if(fc("0x126")!==o)continue;const d=this[fc("0x32")][fc("0x148")](u);if(null!=a.newRange){fc("0x1e")==c&&(n=n||_c(a[fc("0xc9")],x,e,t[fc("0x10")][fc("0x108")]));const o=fc("0xbd")==c&&this[fc("0x123")](l[fc("0x2f")]("|")[0]);if(a[fc("0xc9")][fc("0xe3")]||"$graveyard"==a[fc("0xc9")][fc("0x62")][fc("0x94")]||fc("0xee")==c&&!yc(a[fc("0xc9")])||o&&!yc(a.newRange)||fc("0x68")==c&&(Ec(s=a[fc("0xc9")])||(r=s).start[fc("0xa5")]==r.end.nodeBefore&&r[fc("0xd7")].isAtEnd))e[fc("0x8b")](x),n=!0;else{if(!d||!d[fc("0x145")])continue;i[fc("0x15")](d)}}}var r,s;return i.size>0&&(n=!!this[fc("0x16f")](i)||n),n})),t.model[fc("0x138")][fc("0x55")]((e=>{let n=!1;for(const o of t[fc("0x10")][fc("0x138")][fc("0x4")][fc("0xd3")]())if(fc("0x6a")==o[fc("0x15c")])for(const o of this[fc("0x32")][fc("0xa7")]()){if(o[fc("0x27")]||!o.isInContent)continue;const i=fc("0xee")==o[fc("0x15c")],r=Rc(o),s=r&&this[fc("0x123")](r);if(!i&&!s)continue;const x=o[fc("0x1")]();if(x.start[fc("0xa5")]!=x[fc("0x7c")][fc("0xa5")]&&!x[fc("0x7c")][fc("0x115")]){const i=t[fc("0x10")].createPositionAt(x[fc("0xd7")][fc("0xa3")],fc("0x7c")),r=t[fc("0x10")].createRange(x[fc("0xd7")],i);e[fc("0x45")](o.getFirstMarker(),{range:r}),n=!0}}return n})),t[fc("0x10")][fc("0x138")][fc("0x55")]((t=>this[fc("0x156")](t))),t[fc("0x10")][fc("0x138")].registerPostFixer((t=>!t[fc("0x119")][fc("0x140")]&&this[fc("0x4a")](t))),t.model[fc("0x97")].on(fc("0xaf"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0x172")](e[fc("0xc3")]),n=this[fc("0x32")][fc("0x148")](t);n&&n[fc("0x166")](e.name)}})),t[fc("0x10")][fc("0x138")].on(fc("0x83"),(()=>{const e=Array[fc("0xb8")](t[fc("0x10")][fc("0x138")][fc("0x4")][fc("0x99")]()).filter((t=>fc("0x126")===this[fc("0x172")](t[fc("0xc3")])[fc("0x104")]));if(0===e[fc("0xa1")])return;e[fc("0x17")](((t,e)=>{const n=t[fc("0x52")].oldRange,o=e[fc("0x52")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0xd7")][fc("0x3")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:i}of e){const{id:e}=this[fc("0x172")](t);if(null===i.oldRange){const e=this[fc("0x170")](t);o[fc("0x15")](e)}else{const t=this[fc("0x32")][fc("0x148")](e);null!==i[fc("0xc9")]||t.isInContent?(n[fc("0x15")](t[fc("0x59")]),o.add(t)):this[fc("0x109")](t)}}o.size>0&&this[fc("0x16")](o);for(const t of n)this[fc("0x4e")](fc("0xb2"),t)})),t[fc("0x10")].on(fc("0x50"),((e,n)=>{const o=n[0];if(!this[fc("0x32")][fc("0xe1")])return;if(!o[fc("0xcf")])return;if(o[fc("0x119")][fc("0x87")]||!o.batch.isLocal)return;let i,r;switch(o[fc("0x15c")]){case"insert":i=t[fc("0x10")].createPositionAt(o.position),r=i.getShiftedBy(o[fc("0xf8")]);break;case"split":i=t[fc("0x10")][fc("0x130")](o.splitPosition),r=t[fc("0x10")][fc("0x130")](o.moveTargetPosition);break;case fc("0x6b"):i=t[fc("0x10")][fc("0x130")](o.targetPosition),r=i[fc("0x88")](o[fc("0xf8")]);break;default:return}const s=t[fc("0x10")].createRange(i,r);t[fc("0x10")].change((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(s)){if(t[fc("0x27")])continue;if(fc("0x1e")==t[fc("0x15c")])continue;const n=Rc(t);if(n&&this[fc("0x123")](n)&&"split"!=o[fc("0x15c")])continue;const x=t[fc("0x52")]&&t[fc("0x52")][fc("0xbb")];("formatBlock"!=t[fc("0x15c")]||fc("0x2f")==o[fc("0x15c")]&&!x)&&(e[fc("0xa9")]||fc("0x12")==t[fc("0x15c")]&&e[fc("0xd9")]||t.getFirstRange()[fc("0x117")](s)&&this[fc("0xc1")](t,i,r))}}))}),{priority:fc("0xf5")}),t[fc("0x10")].on(fc("0x61"),((e,n)=>{const o=n[0],i=n[1];if(i&&i[fc("0x143")])return;if(this[fc("0xfc")])return;if(!this.trackChangesCommand.value)return;if(o.isCollapsed)return;const r=t.model[fc("0x108")],{start:s,end:x}=o[fc("0x1")](),a=s[fc("0xa3")]&&r.isLimit(s[fc("0xa3")])?null:r.getNearestSelectionRange(s,fc("0xdd")),c=x[fc("0x14f")]&&r[fc("0x135")](x[fc("0x14f")])?null:r.getNearestSelectionRange(x,fc("0x65")),l=t[fc("0x10")][fc("0x131")](a?a[fc("0xd7")]:s,c?c[fc("0x7c")]:x);t[fc("0x10")][fc("0x6e")]((e=>{this.markDeletion(l);const n=t.model[fc("0x108")].getNearestSelectionRange(l.start);o.is(fc("0x73"))?e[fc("0x69")](n):o[fc("0x35")](n)})),e[fc("0xd0")]()}),{priority:e.priorities[fc("0x9b")]+10}),t[fc("0x10")].on(fc("0x136"),((e,n)=>{const o=n[n[fc("0xa1")]-1];o&&o.forceDefaultExecution||this[fc("0xfc")]||this[fc("0x176")][fc("0xe")]&&(t.model[fc("0x6e")]((()=>{let o=t[fc("0x10")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0xda")]=o.clone();const i=o[fc("0x7c")].nodeBefore,r=t[fc("0x10")][fc("0x108")];i&&r.isBlock(i)&&!r[fc("0x160")](i)&&(o=t[fc("0x10")][fc("0x131")](o[fc("0xd7")],t[fc("0x10")][fc("0x130")](i,fc("0x7c")))),this[fc("0x12e")](o)})),e[fc("0xd0")]())}),{priority:"high"}),this[fc("0x11e")][fc("0x31")][fc("0x15")](fc("0x93"),this[fc("0x176")]),this[fc("0xb4")](fc("0x93"));const i=new p(t,this._suggestions);t.commands.add("acceptSuggestion",i),this.enableCommand(fc("0xc8"));const r=new y(t,this[fc("0x32")]);t[fc("0x31")][fc("0x15")](fc("0x10f"),r),this[fc("0xb4")](fc("0x10f")),t[fc("0x31")][fc("0x15")](fc("0x46"),new F(t,i,this[fc("0x32")])),this.enableCommand(fc("0x46")),t[fc("0x31")][fc("0x15")](fc("0x5c"),new F(t,r,this._suggestions)),this[fc("0xb4")](fc("0x5c")),t.commands.add(fc("0xe6"),new j(t,i,this[fc("0x32")])),this.enableCommand("acceptSelectedSuggestions"),t[fc("0x31")][fc("0x15")](fc("0x2c"),new j(t,r,this[fc("0x32")])),this[fc("0xb4")](fc("0x2c"));const s=t[fc("0xae")].get("CommentsRepository");this[fc("0x1a")](s,fc("0x15a"),((t,{threadId:e})=>{const n=this[fc("0x32")][fc("0x148")](e);n&&n[fc("0x14c")]&&1===n[fc("0x14c")][fc("0xa1")]&&this[fc("0x13b")](e,{hasComments:!0})}),{priority:fc("0x12d")}),this[fc("0x1a")](s,fc("0x63"),((t,{threadId:e})=>{const n=this[fc("0x32")][fc("0x148")](e);n&&n[fc("0x14c")]&&!n[fc("0x14c")][fc("0xa1")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:fc("0x12d")})}set[fc("0x110")](t){if(this[fc("0x33")])throw new e.CKEditorError(fc("0x16b"),this);this[fc("0x33")]=t}get[fc("0x110")](){return this[fc("0x33")]}[fc("0x141")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0x32")][fc("0xa7")]())t&&!e[fc("0x145")]||n[fc("0xef")](e);return e?n[fc("0x152")]((t=>t[fc("0x56")]())):n}[fc("0x15f")](t){const n=this[fc("0x32")][fc("0x148")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[fc("0x7")](t){return this[fc("0x32")].has(t)}[fc("0xec")](t){const{authorId:e,id:n,attributes:o}=t,[i,r]=t[fc("0x15c")][fc("0x2f")](":"),s=this._suggestions[fc("0x148")](n)||this[fc("0x79")](i,r,n,e,o);if(this[fc("0x39")](s),this[fc("0xf2")](s,i,r||null,e),s.createdAt=t[fc("0x9a")],s[fc("0x16d")]=!0,o&&o["@external"]){const t=o[fc("0x6d")],e=this[fc("0x24")](t[fc("0x36")]);s[fc("0x171")]=t.createdAt,s[fc("0x3b")]=e,s[fc("0xd5")]=!0}else s[fc("0x171")]=t[fc("0x9a")];switch(t[fc("0x52")]&&(s.data=t[fc("0x52")]),t.attributes&&(s.attributes=t[fc("0x16a")]),this[fc("0x33")]&&this[fc("0x33")][fc("0xf9")]||(s[fc("0xbe")]=!0),this[fc("0x53")].get(s)){case fc("0xf3"):this[fc("0x53")][fc("0x142")](s,"dataReady");break;case"markerReady":s.isInContent?(this[fc("0x16")](new Set([s])),this[fc("0x16f")](new Set([s])),this[fc("0x53")][fc("0x142")](s,"ready"),this[fc("0x4e")](fc("0xdf"),s)):this[fc("0x53")][fc("0x142")](s,fc("0x7f"))}return s}acceptSuggestion(t){this[fc("0x143")]((()=>{this[fc("0x11e")].model[fc("0x6e")]((()=>{for(const e of t[fc("0xdc")]())e[fc("0xfb")]()}))}))}discardSuggestion(t){this[fc("0x143")]((()=>{this.editor.model[fc("0x6e")]((()=>{for(const e of t[fc("0xdc")]())e[fc("0x167")]()}))}))}[fc("0xb4")](t,n){const o=this[fc("0x11e")][fc("0x31")].get(t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this[fc("0x9d")][fc("0x16e")](o))throw new e.CKEditorError(fc("0xc6"),this,{commandName:t});this[fc("0x9d")][fc("0x15")](o),n&&o.on(fc("0x111"),((t,e)=>{this[fc("0x176")][fc("0xe")]&&(this[fc("0xfc")]||(e[fc("0xa1")]>0&&e[e[fc("0xa1")]-1]&&e[e.length-1].forceDefaultExecution?e[fc("0x3d")]():(t[fc("0xda")]=n(((...t)=>o[fc("0x111")](...t,{forceDefaultExecution:!0})),...e),t[fc("0xd0")]())))}),{priority:fc("0x95")})}[fc("0x143")](t){let n,o;const i=this[fc("0xfc")];this[fc("0xfc")]=!0;try{n=t()}catch(t){o=t}return i||(this[fc("0xfc")]=!1),o&&e.CKEditorError[fc("0x2e")](o,this),n}[fc("0x12e")](t,n=null,o={}){if(t[fc("0xe3")])return null;const i=this[fc("0x11e")][fc("0xae")].get(fc("0x3c")).me;for(const{suggestion:e,meta:i}of this._findSuggestions(t,fc("0x12")))if(i[fc("0xd9")]){if(!i[fc("0x7a")]){if(i[fc("0xa9")]){if(!this[fc("0x127")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this._breakSuggestionMarker(e,t[fc("0xd7")],t[fc("0x7c")]);break}if(n==e[fc("0x11c")]&&Ic(e,o)){const n=e.getFirstRange();return n.start[fc("0xc5")](t[fc("0x7c")])?this._setSuggestionRange(e,this[fc("0x37")][fc("0x131")](t.start,n[fc("0x7c")])):this._setSuggestionRange(e,this[fc("0x37")][fc("0x131")](n[fc("0xd7")],t.end)),e}}const r=(0,e.uid)(),s=i.id,x=n?fc("0x8e")+n:"insertion",a=this[fc("0xb0")]({id:r,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x101")](x,r,s,t),a}markMultiRangeInsertion(t,n=fc("0x12f"),o={}){const i=this[fc("0x11e")][fc("0xae")].get("Users").me,r=this[fc("0x10e")].getSuggestionCallback(fc("0x12"),n,fc("0xb9"));for(const e of this[fc("0x141")]())if(e.author.id==i.id&&"insertion"==e[fc("0x15c")]&&e.subType==n&&Ic(e,o)&&(r(e[fc("0x30")](),t)||r(t,e[fc("0x30")]()))){for(const n of t)e[fc("0x154")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x8a")](t,fc("0x12"))){if(!n[fc("0xd9")])continue;if(!this[fc("0x127")]&&n[fc("0xa9")])continue;if(!Ic(e,o))continue;let i=!0;for(const n of e[fc("0x30")]())for(const e of t)if(!n[fc("0x117")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=fc("0x8e")+n,c=this[fc("0xb0")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x101")](a,s,x,e,Jo[fc("0x116")]());return c}[fc("0xba")](t,n,o=null,i={}){if(o=o||Tc(n),t.isCollapsed)return null;if("never"===this._trackFormatChanges){const e=this[fc("0x10e")].getSuggestionCallback(fc("0x1e"),o,"accept");return this[fc("0x143")]((()=>e([t],n,i))),null}const r=this.editor.plugins[fc("0x148")](fc("0x3c")).me,s=[];if(fc("0x107")!==this[fc("0xca")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x12")))n[fc("0xd9")]&&!n[fc("0xdb")]&&s[fc("0xef")](...e[fc("0x30")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[fc("0xef")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0xa1")];){const o=n[e][fc("0xb3")](t);n[fc("0x17d")](e,1,...o),e+=o[fc("0xa1")]}}return n}(t,s);x.length&&this[fc("0x37")][fc("0x6e")]((()=>{for(const t of x){const e=this[fc("0x10e")][fc("0x34")](fc("0x1e"),o,fc("0xfb"));this.forceDefaultExecution((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[fc("0xd7")],a=t[fc("0x7c")];for(const{suggestion:e,meta:n}of this[fc("0x8a")](t,fc("0x1e"))){if(!n[fc("0xd9")])continue;if(e[fc("0x11c")]!=o)continue;if(!Ic(e,i))continue;const r=e[fc("0x1")]();if(r.containsRange(t,!0))return null;x=x[fc("0x3")](r[fc("0xd7")])?x:r[fc("0xd7")],a=a[fc("0x178")](r.end)?a:r.end,s?r[fc("0xd7")][fc("0x3")](s[fc("0x1")]()[fc("0xd7")])?(s[fc("0x72")](),s=e):e[fc("0x72")]():s=e}const c=this[fc("0x37")][fc("0x131")](x,a);if(s)this[fc("0xc0")](s,c);else{const t=(0,e.uid)(),s=r.id;this[fc("0xb0")]({id:t,type:fc("0xa0")+o,data:n,createdAt:new Date,authorId:s,attributes:i}),this[fc("0x101")](fc("0xa0")+o,t,s,c)}}return null}[fc("0x26")](t,n,o=[],i=null,r={}){n.formatGroupId||(n.formatGroupId=n[fc("0x100")]),n[fc("0xbb")]=t.is(fc("0x2")),i=i||Tc(n);const s=o[fc("0x152")]((t=>Cc(t,this[fc("0x37")]))),x=t.is("range")?t:Cc(t,this[fc("0x37")]);if(fc("0xf7")===this[fc("0xca")]){const t=this[fc("0x10e")][fc("0x34")](fc("0xee"),i,"accept");return this[fc("0x143")]((()=>t([x],n,r))),null}s[fc("0xef")](x);let a=!0;for(const t of s)if(!this[fc("0x4c")](t)){a=!1;break}if(a&&fc("0x107")!==this._trackFormatChanges){const t=this[fc("0x10e")][fc("0x34")](fc("0xee"),i,fc("0xfb"));return this[fc("0x143")]((()=>t([x],n,r))),null}let c=null,l=x.start,u=x.end;for(const{suggestion:t,meta:e}of this[fc("0x8a")](x,fc("0xee"))){if(!e[fc("0xd9")])continue;if(e[fc("0x7a")]||e.containsRangeInObject||e.isInsideObject)continue;if(t[fc("0x52")][fc("0xe5")]!=n[fc("0xe5")])continue;if(!Ic(t,r))continue;const o=t[fc("0x1")]();if(t.subType==i){if(o[fc("0x117")](x,!0))return null;l=l[fc("0x3")](o[fc("0xd7")])?l:o[fc("0xd7")],u=u[fc("0x178")](o[fc("0x7c")])?u:o[fc("0x7c")],c?o[fc("0xd7")].isBefore(c[fc("0x1")]()[fc("0xd7")])?(c[fc("0x72")](),c=t):t.removeMarkers():c=t}else{const e=x[fc("0x10b")](o);this[fc("0x2b")](t,e)}}const d=this[fc("0x11e")][fc("0xae")].get(fc("0x3c")).me,g=(0,e.uid)(),f=d.id;if(c)return this._setSuggestionRange(c,this._model[fc("0x131")](l,u)),c;{const t=this[fc("0xb0")]({id:g,type:"formatBlock:"+i,data:n,createdAt:new Date,authorId:f,attributes:r});return this[fc("0x101")](fc("0xb5")+i,g,f,this[fc("0x37")][fc("0x131")](l,u)),t}}[fc("0x89")](t,n,o=[],i=null,r={}){n[fc("0xe5")]||(n.formatGroupId=n[fc("0x100")]);const s=t[0];n[fc("0xbb")]=s.is(fc("0x2")),i=i||Tc(n);const x=o[fc("0x152")]((t=>Cc(t,this[fc("0x37")]))),a=s.is(fc("0x2"))?t:t.map((t=>Cc(t,this[fc("0x37")])));if("never"===this[fc("0xca")]){const t=this[fc("0x10e")].getSuggestionCallback(fc("0xee"),i,fc("0xfb"));return this[fc("0x143")]((()=>t(a,n,r))),null}x[fc("0xef")](...a);let c=!0;for(const t of x)if(!this[fc("0x4c")](t)){c=!1;break}if(c&&fc("0x107")!==this[fc("0xca")]){const t=this[fc("0x10e")].getSuggestionCallback(fc("0xee"),i,fc("0xfb"));return this[fc("0x143")]((()=>t(a,n,r))),null}const l=this.editor[fc("0xae")][fc("0x148")](fc("0x3c")).me;for(const t of this[fc("0x141")]()){if(t[fc("0x3b")].id!=l.id)continue;if(fc("0xee")!=t[fc("0x15c")]||t[fc("0x52")].formatGroupId!=n[fc("0xe5")])continue;if(!Ic(t,r))continue;const e=t.subType==i;for(let n=0;n<a[fc("0xa1")];n++){const o=a[n];for(const i of t.getMarkers()){const r=i.getRange();if(o[fc("0xc5")](r)){e?(a[fc("0x17d")](n,1),n--):t[fc("0x8b")](i[fc("0xc3")]);break}}}}if(0==a.length)return null;const u=this[fc("0x10e")][fc("0x34")](fc("0xee"),i,"join");for(const t of this[fc("0x141")]())if(t[fc("0x3b")].id==l.id&&fc("0xee")==t[fc("0x15c")]&&t[fc("0x52")][fc("0xe5")]==n[fc("0xe5")]&&t.subType==i&&Ic(t,r)&&(u(t.getRanges(),a)||u(a,t[fc("0x30")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0xb5")+i,m=this[fc("0xb0")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(f,d,g,t,Jo[fc("0x116")]());return m}[fc("0x51")](t,n=null,o={}){if(t[fc("0xe3")])return null;const i=this.editor[fc("0xae")][fc("0x148")]("Users").me,r=new s.LiveRange(t.start,t[fc("0x7c")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,"insertion"))if(e.isOwn&&!e[fc("0x7a")])if(t[fc("0x27")]){const e=t[fc("0x30")]()[fc("0xd6")]((t=>fc("0xc7")!=t[fc("0x62")][fc("0x94")]));if(e[fc("0x112")]((t=>r[fc("0x117")](t,!0)))&&t.discard(),e[fc("0xd2")]((t=>t[fc("0x117")](r,!0)))){const t=this[fc("0x10e")].getSuggestionCallback(fc("0x68"),n,fc("0xfb"));return this[fc("0x143")]((()=>t([r],null,o))),null}}else{const e=r[fc("0x10b")](t.getFirstRange());null!==e&&t[fc("0x13")]([e],null,o)}if(r[fc("0x5")](),r[fc("0xe3")]||fc("0xc7")==r.root.rootName)return null;let x=null,a=r[fc("0xd7")],c=r[fc("0x7c")];const l=this[fc("0x8a")](r,fc("0x68"));for(const{suggestion:t,meta:e}of l){const n=this[fc("0x37")][fc("0x131")](a,c);if(e[fc("0xd9")]&&(this[fc("0x127")]||!e[fc("0xa9")]&&!e[fc("0xdb")]))if(t[fc("0x27")]){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0x30")]()){if(o[fc("0x117")](n,!0))return t;n[fc("0x117")](o)||(e=!1)}e&&t.discard()}else{const e=t[fc("0x1")]();if(e[fc("0x117")](n,!0))return t;if(!Ic(t,o)){n[fc("0x117")](e)?t[fc("0x72")]():e.containsPosition(a)?a=e[fc("0x7c")]:e.containsPosition(c)&&(c=e[fc("0xd7")]);continue}a=a.isBefore(e[fc("0xd7")])?a:e.start,c=c[fc("0x178")](e[fc("0x7c")])?c:e[fc("0x7c")],o=Object[fc("0x74")]({},t[fc("0x16a")]),x?e[fc("0xd7")][fc("0x3")](x.getFirstRange().start)?(x[fc("0x72")](),x=t):t[fc("0x72")]():x=t}}if(x)return this[fc("0xc0")](x,this[fc("0x37")][fc("0x131")](a,c)),x;{const t=(0,e.uid)(),r=this[fc("0x37")][fc("0x131")](a,c),s=i.id,x=n?fc("0x132")+n:"deletion",l=this[fc("0xb0")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x101")](x,t,s,r),l}}[fc("0x11a")](t,n="multi",o={}){const i=this[fc("0x11e")].plugins.get(fc("0x3c")).me,r=t.map((t=>new s.LiveRange(t.start,t[fc("0x7c")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x8a")](r,fc("0x12")))e[fc("0xd9")]&&!e[fc("0x7a")]&&x[fc("0x15")](t);for(const e of x)if(e[fc("0x27")]){const i=e[fc("0x30")]();if((!e[fc("0x16a")]||!e[fc("0x16a")][fc("0x13d")])&&i[fc("0x112")]((t=>r[fc("0xd2")]((e=>e[fc("0x117")](t,!0)))))&&e.discard(),r[fc("0x112")]((t=>i[fc("0xd2")]((e=>e[fc("0x117")](t,!0)))))){const e=this[fc("0x10e")].getSuggestionCallback(fc("0x68"),n,"accept");return this[fc("0x143")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[fc("0xd2")]((e=>e[fc("0x117")](t,!0)))&&e[fc("0x167")](),r.every((e=>t[fc("0x117")](e,!0)))){const t=this._suggestionFactory[fc("0x34")](fc("0x68"),n,fc("0xfb"));return this[fc("0x143")]((()=>t(r,null,o))),null}}const a=this[fc("0x10e")][fc("0x34")]("deletion",n,fc("0xb9"));let c=null;for(const t of this[fc("0x141")]())if(t[fc("0x3b")].id==i.id&&t.isInContent&&fc("0x68")==t[fc("0x15c")]&&t[fc("0x11c")]==n&&Ic(t,o)&&(a(t[fc("0x30")](),r)||a(r,t.getRanges())))if(c){if(t.commentThread&&t[fc("0x14c")].length)continue;for(const e of t[fc("0x30")]())c[fc("0x11d")](e)||c.addRange(e);t[fc("0x72")]()}else{c=t;for(const e of r)t[fc("0x11d")](e)||t[fc("0x154")](e)}if(c)return c;x[fc("0x29")]();for(const{suggestion:t,meta:e}of this[fc("0x8a")](r,fc("0x68")))e[fc("0xd9")]&&(this[fc("0x127")]||!e[fc("0xa9")]&&!e[fc("0xdb")])&&Ic(t,o)&&x[fc("0x15")](t);for(const t of x){const e=t[fc("0x30")]();if((!o||!o[fc("0x13d")])&&r[fc("0x112")]((t=>e.some((e=>e[fc("0x117")](t,!0))))))return t;(!t[fc("0x16a")]||!t.attributes[fc("0x13d")])&&e[fc("0x112")]((t=>r[fc("0xd2")]((e=>e[fc("0x117")](t,!0)))))&&t[fc("0x167")]()}const l=(0,e.uid)(),u=i.id,d=fc("0x132")+n,g=this[fc("0xb0")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t.detach(),t[fc("0xe3")]||"$graveyard"==t[fc("0x62")][fc("0x94")]||this[fc("0x101")](d,l,u,t,Jo[fc("0x116")]());return g}markAttributeChange(t,n,o,i,r){if(t[fc("0xe3")])return[];if(fc("0xf7")===this[fc("0xca")])return[];const s=this.editor[fc("0xae")][fc("0x148")](fc("0x3c")).me.id,x=Array.from(this._suggestions[fc("0xa7")]())[fc("0xd6")]((e=>fc("0xbd")==e[fc("0x15c")]&&e[fc("0x52")][fc("0x80")]==n&&e[fc("0x11d")](t)));if(fc("0x16c")===this[fc("0xca")]){const e=this[fc("0x8a")](t,fc("0x12"))[fc("0xd6")]((({meta:t})=>t[fc("0xd9")]&&!t.isInsideObject&&!t[fc("0x7a")]))[fc("0x152")]((({suggestion:t})=>t));x[fc("0x4f")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0xbd")==t[fc("0x15c")]?t[fc("0x52")][fc("0xe9")]:void 0,r=t[fc("0x1")](),s=Array[fc("0xb8")](a.keys())[fc("0xd1")]((t=>t[fc("0xf0")](r)));if(!s)continue;const x=s[fc("0xb3")](r);this._isBlockAttribute(n)&&fc("0x12")==t.type&&0!=x[fc("0xa1")]||(a.delete(s),x.forEach((t=>{a[fc("0x142")](t,o)})),fc("0x12")!=t[fc("0x15c")]&&e!=i&&a.set(s.getIntersection(r),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:i};n[fc("0xa1")]>37&&console[fc("0x12b")](fc("0x121"),{key:n});const l=(fc("0x5b")+(n+"|")+Tc({newValue:i}))[fc("0x10a")](0,60),u=this[fc("0xb0")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:r});c[fc("0xef")](u),this._addSuggestionMarker(l,x,s,t)}return c}[fc("0xcb")](t){this[fc("0xe4")][fc("0x15")](t)}_registerInlineAttribute(t){this[fc("0xac")][fc("0x15")](t)}[fc("0x177")](t,e=[],n=[]){this[fc("0xb4")](t,((t,...e)=>{this[fc("0xfa")]((()=>{t(...e)}))}));for(const t of e)this[fc("0xcc")](t);for(const t of n)this[fc("0xcb")](t)}[fc("0xc0")](t,e){const n=t[fc("0x14")]();this[fc("0x37")].change((t=>{t[fc("0x45")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[fc("0x11e")][fc("0x12c")].get(fc("0x114"));this[fc("0x173")][fc("0x7e")](e)||this[fc("0x173")][fc("0x13e")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0x173")][fc("0x13f")](e);o[fc("0x44")](fc("0x1c")),o[fc("0x1c")]=!1,t[fc("0x14c")]=o}_checkSuggestionCorrectness(t,n,o,i){if(t[fc("0x15c")]!=n||t[fc("0x11c")]!=o||t.creator.id!=i)throw this[fc("0x11e")][fc("0xb1")](fc("0x139")),new e.CKEditorError(fc("0x139"),this)}[fc("0x2b")](t,n){const o=t.getFirstRange();if(n[fc("0xc5")](o))t[fc("0x72")]();else if(o[fc("0x117")](n)){const i=this[fc("0x37")][fc("0x130")](n[fc("0xd7")].nodeBefore,"end");this._setSuggestionRange(t,this[fc("0x37")][fc("0x131")](o.start,i));const r=(0,e.uid)(),s=t[fc("0x38")].id,x=t[fc("0x15c")]+":"+t[fc("0x11c")];this[fc("0xb0")]({id:r,type:x,createdAt:new Date,authorId:s,data:t.data,attributes:t.attributes});const a=this[fc("0x37")].createPositionAt(n[fc("0x7c")][fc("0xa5")],fc("0x129")),c=this[fc("0x37")].createRange(a,o[fc("0x7c")]);this[fc("0x101")](x,r,s,c)}else if(o.containsPosition(n[fc("0xd7")])){const e=this[fc("0x37")][fc("0x130")](n[fc("0xd7")][fc("0x14f")],fc("0x7c"));this[fc("0xc0")](t,this[fc("0x37")][fc("0x131")](o[fc("0xd7")],e))}else{const e=this[fc("0x37")].createPositionAt(n[fc("0x7c")][fc("0xa5")],"after");this._setSuggestionRange(t,this._model[fc("0x131")](e,o[fc("0x7c")]))}}[fc("0x4c")](t){for(const{suggestion:e,meta:n}of this[fc("0x8a")](t,fc("0x12"))){if(!n[fc("0xd9")])continue;const o=e[fc("0x30")]();for(const e of o)if(!t[fc("0xb3")](e)[fc("0xa1")])return!0}return!1}[fc("0xcd")](t){const n=this.editor[fc("0xae")][fc("0x148")](fc("0x3c"))[fc("0xfd")](t);if(!n)throw new e.CKEditorError(fc("0x12a"),this);return n}_getExternalAuthor(t){const e=this[fc("0x11e")][fc("0xae")][fc("0x148")](fc("0x3c")),n=(0,r.hashObject)("external:"+t);return e[fc("0xfd")](n)||e[fc("0x28")]({id:n,name:t})}[fc("0x79")](t,e,n,o,i){const r=this[fc("0xcd")](o),s=this[fc("0x10e")][fc("0x134")](t,e,n,r,i,(t=>this[fc("0x13b")](n,{attributes:t})));return this.listenTo(s,fc("0xfb"),(()=>{this._updateSuggestionData(n,{state:fc("0x128")})}),{priority:fc("0x95")}),this[fc("0x1a")](s,"discard",(()=>{this[fc("0x13b")](n,{state:fc("0xbc")})}),{priority:"high"}),this[fc("0x32")][fc("0x142")](n,s),this[fc("0x53")][fc("0x142")](s,fc("0xf3")),s}[fc("0x172")](t){const e=t[fc("0x2f")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[fc("0xa1")]<5?e[3]:e[4],markerCount:6==e[fc("0xa1")]?e[5]:null}}[fc("0xc1")](t,n,o){const i=t[fc("0x1")](),r=i[fc("0xd7")],s=i.end;this[fc("0xc0")](t,this[fc("0x37")][fc("0x131")](r,n));const x=(0,e.uid)(),a=t.creator.id,c=t[fc("0x15c")]+(t[fc("0x11c")]?":"+t[fc("0x11c")]:"");this[fc("0xb0")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x16a")],data:t[fc("0x52")]});const l=Rc(t);(fc("0xee")==t[fc("0x15c")]||l&&this[fc("0x123")](l))&&(o=this._model.createPositionBefore(o[fc("0xa5")])),this[fc("0x101")](c,x,a,this[fc("0x37")][fc("0x131")](o,s))}[fc("0x8a")](t,e=null){const n=[],o=this.editor[fc("0xae")][fc("0x148")](fc("0x3c")).me;Array[fc("0x49")](t)||(t=[t]);for(const i of this[fc("0x141")]()){if(!i[fc("0x145")])continue;if(e&&i.type!=e)continue;let r=!1;for(const e of i[fc("0x30")]()){for(const s of t){const t=s[fc("0xd7")][fc("0xc5")](e[fc("0x7c")])||s[fc("0x7c")][fc("0xc5")](e[fc("0xd7")]);if(t||s[fc("0x10b")](e)){const x=s[fc("0x117")](e)&&bc(this[fc("0x37")][fc("0x108")],e[fc("0xd7")],s),a=e[fc("0x117")](s)&&bc(this[fc("0x37")][fc("0x108")],s.start,e);n[fc("0xef")]({suggestion:i,meta:{isOwn:o==i.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}_addSuggestionMarker(t,e,n,o,i){this[fc("0x37")][fc("0x6e")]((r=>{let s=fc("0x57")+t+":"+e+":"+n;i&&(s=s+":"+i),r[fc("0x91")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0x109")](t){const e=t[fc("0x11b")],n=t[fc("0x179")];t[fc("0x11b")]=null,t.next=null,null!=e&&(e[fc("0x179")]=n),null!=n&&(n[fc("0x11b")]=e),fc("0xf4")==this[fc("0x53")][fc("0x148")](t)&&(this[fc("0x53")][fc("0x142")](t,fc("0x7f")),this[fc("0x4e")]("suggestionUnloaded",t,e,n))}[fc("0xb0")](t){const n=t.id,o=this.addSuggestionData(t);if(this[fc("0x33")]&&this[fc("0x33")][fc("0xf9")]){const i=this[fc("0x11e")].plugins.get(fc("0xd4")),r=o[fc("0x0")],s=o[fc("0x11c")]?o[fc("0x15c")]+":"+o[fc("0x11c")]:o.type,x=this[fc("0x11e")][fc("0x82")],a=i[fc("0x15")](Qo(x,fc("0x15d"))),c={id:n,type:s,hasComments:r,data:t.data||null,originalSuggestionId:t[fc("0x71")]||null,attributes:o[fc("0x16a")]};this[fc("0x33")][fc("0xf9")](c)[fc("0x155")]((t=>{o[fc("0xbe")]=!0,i.remove(a),t&&t.createdAt&&(this[fc("0x32")][fc("0x148")](n)[fc("0x9a")]=t.createdAt)}))[fc("0x157")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[fc("0x11e")][fc("0x10")].enqueueChange({isUndoable:!1},(()=>{o[fc("0x167")]()})),o[fc("0x92")](),this[fc("0x32")][fc("0x76")](o.id),this[fc("0x53")][fc("0x76")](o),t}))}return o}_isBlockAttribute(t){return this[fc("0xe4")][fc("0x16e")](t)}[fc("0x13b")](t,e){const n=this[fc("0x11e")][fc("0xae")][fc("0x148")]("PendingActions"),o=this[fc("0x15f")](t);if(this[fc("0x33")]&&this[fc("0x33")][fc("0x43")])if(o[fc("0xbe")]){const o=n.add(Qo(this[fc("0x11e")][fc("0x82")],"PENDING_ACTION_SUGGESTION"));this[fc("0x33")][fc("0x43")](t,e)[fc("0x155")]((()=>{n[fc("0xe2")](o)}))}else o.on(fc("0x20"),(()=>{this[fc("0x13b")](t,e)}))}[fc("0x175")](t){if(!this._adapter||!this._adapter[fc("0x15f")])throw new e.CKEditorError(fc("0x4b"),this);return this[fc("0x33")][fc("0x15f")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:i}=this[fc("0x172")](t),r=this[fc("0x32")][fc("0x148")](e)||this[fc("0x79")](n,o,e,i,{});switch(this[fc("0xf2")](r,n,o,i),this[fc("0x53")][fc("0x148")](r)){case"notReady":this[fc("0x175")](e)[fc("0x155")]((t=>{let n=Promise.resolve();t[fc("0x0")]&&(n=this[fc("0x173")][fc("0x3e")]({channelId:this[fc("0x11e")][fc("0x12c")].get(fc("0x114")),threadId:e})),n[fc("0x155")]((()=>{this[fc("0xec")](t)[fc("0xbe")]=!0}))})),this._suggestionState[fc("0x142")](r,fc("0x103"));break;case fc("0x7f"):this._updateSuggestionData(e,{state:fc("0xbf")});case"dataReady":this._suggestionState.set(r,fc("0xf4")),this[fc("0x4e")](fc("0xdf"),r);break;case fc("0xf4"):this.fire(fc("0xb2"),r)}return r.addMarkerName(t),r}[fc("0x16")](t){const e=Array[fc("0xb8")](t),n=e[fc("0xd6")]((t=>fc("0xbd")==t[fc("0x15c")]));this[fc("0x124")](n);const o=e[fc("0xd6")]((t=>!t.isMultiRange&&"attribute"!=t[fc("0x15c")])),i=this.getSuggestions({skipNotAttached:!0})[fc("0xd6")]((t=>!t[fc("0x27")]&&fc("0xbd")!=t[fc("0x15c")])),r=i[fc("0xd6")]((e=>!t[fc("0x16e")](e))),s=new Map(i[fc("0x152")]((t=>[t,this[fc("0x10e")][fc("0x34")](t.type,t.subType,fc("0x86"))]))),x=new Map(i[fc("0x152")]((t=>[t,t[fc("0x1")]()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0xa1")];t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0xa1")];t++)u(o[t],r,0);const l=new Set;for(let t=0;t<o[fc("0xa1")];t++){const e=o[t];!c.has(e)&&e[fc("0x11b")]&&(l[fc("0x15")](e[fc("0x11b")]),e.previous[fc("0x179")]===e&&(e[fc("0x11b")].next=null),e.previous=null),!a.has(e)&&e[fc("0x179")]&&(l[fc("0x15")](e[fc("0x179")]),e[fc("0x179")][fc("0x11b")]===e&&(e[fc("0x179")][fc("0x11b")]=null),e[fc("0x179")]=null)}function u(t,e,n){for(let o=n;o<e.length;o++){const n=d(t,e[o]);n&&(n[0][fc("0x179")]=n[1],n[1][fc("0x11b")]=n[0],a[fc("0x15")](n[0]),c[fc("0x15")](n[1]))}}function d(t,e){if(t[fc("0x3b")].id!==e[fc("0x3b")].id)return null;const n=s[fc("0x148")](t)(t,e,x.get(t),x[fc("0x148")](e));return n&&s[fc("0x148")](e)(t,e,x[fc("0x148")](t),x.get(e))?n[1][fc("0x14c")]&&n[1].commentThread[fc("0xa1")]?null:n:null}l[fc("0xe1")]&&this[fc("0x16")](l)}[fc("0x124")](t){if(0==t[fc("0xa1")])return;const e=this.getSuggestions({skipNotAttached:!0})[fc("0xd6")]((t=>"attribute"==t.type&&t._isDataLoaded)),n=[],o=new Map;for(const t of e){const e=(0,r.hashObject)(t.attributes);o[fc("0x16e")](e)||(o.set(e,n[fc("0xa1")]),n[fc("0xef")]([]));const i=o.get(e);n[i][fc("0xef")](t)}!function(){n[fc("0x17")](((t,e)=>{const n=t[0][fc("0x9a")],o=e[0][fc("0x9a")];return n==o?t[0][fc("0x16a")].groupId<e[0].attributes[fc("0xeb")]?-1:1:n<o?-1:1}));for(const t of n)t[fc("0x17")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0xa1")];t++){if(0==n[t][fc("0xa1")])continue;const e=[];for(let o=t+1;o<n[fc("0xa1")];o++)0!=n[o].length&&i(n[t],n[o])&&e[fc("0xef")](o);for(const o of e)n[t]=n[t].concat(n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0xa1")];e++)t[e][fc("0x179")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0x11b")]=t[e-1]||null;function i(t,e){if(t[0][fc("0x3b")]!==e[0][fc("0x3b")])return!1;if(n=t[0],o=e[0],(n[fc("0x0")]||o.hasComments)&&(n[fc("0x0")]&&o[fc("0x0")]||!(n[fc("0x0")]&&o[fc("0x9a")]<n.commentThread[fc("0x147")][fc("0x148")](0).createdAt||o[fc("0x0")]&&n[fc("0x9a")]<o[fc("0x14c")][fc("0x147")][fc("0x148")](0).createdAt)))return!1;var n,o;const i=lc(t[0][fc("0x16a")],fc("0xeb")),r=lc(e[0][fc("0x16a")],fc("0xeb"));return!!Go(i,r)&&(!!t.every((t=>e[fc("0xd2")]((e=>t[fc("0x1")]()[fc("0xc5")](e[fc("0x1")]())))))&&e.every((e=>t.some((t=>e[fc("0x1")]()[fc("0xc5")](t[fc("0x1")]()))))))}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this[fc("0x141")]({skipNotAttached:!0}),o=n.filter((e=>!t[fc("0x16e")](e))),i=new Map(e.map((t=>[t,this[fc("0x10e")][fc("0x34")](t[fc("0x15c")],t[fc("0x11c")],fc("0xb9"))]))),r=new Map(n.map((t=>[t,t[fc("0x30")]()])));for(let t=0;t<e[fc("0xa1")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0xa1")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n.length;s++){const o=n[s];if(o[fc("0x15c")]!==e[fc("0x15c")]||o[fc("0x3b")].id!==e[fc("0x3b")].id||o[fc("0x11c")]!==e[fc("0x11c")])continue;if(!kc(e,o))continue;if("attribute"==e[fc("0x15c")]&&e[fc("0x52")].oldValue!=o[fc("0x52")].oldValue)continue;if("attribute"==e[fc("0x15c")]&&t._isBlockAttribute(e[fc("0x52")].key))continue;if(fc("0xee")==e[fc("0x15c")]){const n=t[fc("0x11e")][fc("0x10")],o=e[fc("0x146")]();if(o&&(n[fc("0x108")].isObject(o)||n[fc("0x108")][fc("0x135")](o)))continue}const x=i[fc("0x148")](e),a=r[fc("0x148")](e),c=r.get(o),l=e.commentThread&&e.commentThread.length,u=o.commentThread&&o[fc("0x14c")][fc("0xa1")];if(!l&&x(c,a))return t[fc("0x14e")](o,e),r[fc("0x76")](e),!0;if(!u&&x(a,c))return t[fc("0x14e")](e,o),r[fc("0x76")](o),!0}return!1}}[fc("0x14e")](t,e){if(t[fc("0x27")])for(const n of e[fc("0x30")]())t[fc("0x154")](n);else{const n=e[fc("0x1")]().end;this[fc("0xc0")](t,this[fc("0x37")][fc("0x131")](t[fc("0x1")]()[fc("0xd7")],n))}e.removeMarkers()}[fc("0xad")](t,e){const n=t.startsWith(fc("0x8f"))||t[fc("0xf1")]("attribute")?"FORMATTING":t.toUpperCase();return Qo(this[fc("0x11e")].locale,e+"_"+n+fc("0xce"))}[fc("0x2a")](){const t=this[fc("0x11e")];(0,r.surroundingMarkersDetector)(this[fc("0x37")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0x172")](t[fc("0xc3")]);if(fc("0x126")===e){o[fc("0xef")](this[fc("0xad")](n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this[fc("0x172")](t[fc("0xc3")]);if(fc("0x126")===e){o[fc("0xef")](this._getMarkerAnnouncementText(n,"ENTER"));break}}o[fc("0xa1")]&&t.ui[fc("0x54")][fc("0xa2")]("trackChanges",o[fc("0xb9")](" "))}))}[fc("0x156")](t){if(null!==this[fc("0xe7")])return!1;const e=this[fc("0x11e")],n=e[fc("0x10")][fc("0x138")].differ[fc("0xd3")]();if(0==n[fc("0xa1")])return!1;const o=[],i=n[fc("0xd6")]((t=>"attribute"==t[fc("0x15c")])),r=n[fc("0xd6")]((t=>fc("0x6a")==t.type&&fc("0xea")!=t[fc("0xc3")])),s=n[fc("0xd6")]((t=>fc("0xe2")==t[fc("0x15c")]&&fc("0xea")!=t[fc("0xc3")]));for(const t of i)o[fc("0xef")]({key:t[fc("0x174")],newValue:t[fc("0x14b")],oldValue:t[fc("0xd8")],range:(x=t[fc("0x2")],null==x[fc("0x7c")][fc("0x14f")]&&x[fc("0x7c")].parent==x[fc("0xd7")][fc("0xa3")]?Cc(x.start[fc("0xa3")],e[fc("0x10")]):x)});var x;for(const t of r){const n=s[fc("0xd1")]((e=>e[fc("0x168")][fc("0xc5")](t[fc("0x168")])));n&&o.push({key:fc("0x25"),newValue:t[fc("0xc3")],oldValue:n[fc("0xc3")],range:e.model[fc("0x9")](t[fc("0x168")][fc("0xa3")])})}return 0!=o[fc("0xa1")]&&this._reduceExistingSuggestions(t,o)}[fc("0x4a")](t){let e=!1;const n=this[fc("0x11e")][fc("0x10")][fc("0x138")][fc("0x4")][fc("0x99")]().filter((t=>t[fc("0x52")][fc("0xc9")]&&t.name[fc("0xf1")](fc("0xa8"))));for(const o of n){const{subType:n,id:i}=this[fc("0x172")](o[fc("0xc3")]),r=n.split("|")[0];for(const n of this.getSuggestions({skipNotAttached:!0}))n.id!=i&&fc("0xbd")==n.type&&n[fc("0x52")]&&n.data.key==r&&n[fc("0x1")]()[fc("0xf0")](o[fc("0x52")][fc("0xc9")])&&(this[fc("0x81")](n,o[fc("0x52")][fc("0xc9")],t),e=!0)}return e}[fc("0xfa")](t){if(null!==this[fc("0xe7")])return void t();const n=this[fc("0x11e")];this[fc("0xe7")]=n[fc("0x10")].document[fc("0x133")],t();const o=new Map;for(const t of n[fc("0x10")][fc("0x138")].history[fc("0x67")](this[fc("0xe7")]))if([fc("0x1f"),fc("0x137"),fc("0x13a"),fc("0x120")][fc("0x10d")](t[fc("0x15c")])){const e=t[fc("0x119")],n=o[fc("0x148")](e)||[];n[fc("0xef")](t),o[fc("0x142")](e,n)}this[fc("0xe7")]=null;for(const[t,i]of o){const o=(0,e.uid)();n[fc("0x10")][fc("0x118")](t,(t=>{const e=[];for(const t of i){let i,r,s,x;if(fc("0x1f")==t.type){const e=t;i=Cc(e[fc("0x168")][fc("0xa3")],n[fc("0x10")]),r=fc("0x25"),s=e.newName,x=e.oldName}else{const e=t,o=this[fc("0x123")](e[fc("0x80")]),a=this[fc("0xac")][fc("0x16e")](e.key);if(!o&&!a)continue;i=o?Cc(e[fc("0x2")][fc("0xd7")][fc("0xa3")],n[fc("0x10")]):e[fc("0x2")],r=e[fc("0x80")],s=fc("0x13a")==t[fc("0x15c")]?void 0:e[fc("0xc")],x=e[fc("0xe9")]}this[fc("0x162")](i,r,x,s,{groupId:o}),e[fc("0xef")]({range:i,key:r,newValue:s,oldValue:x})}this[fc("0xb6")](t,e)}))}}_reduceExistingSuggestions(t,e){if(0==e[fc("0xa1")])return!1;let n=!1;for(const o of e){const e=this[fc("0x8a")](o[fc("0x2")],fc("0xbd")).filter((t=>!t[fc("0x60")][fc("0x7a")]))[fc("0x152")]((t=>t.suggestion)),i=(0,r.hashObject)({newValue:o[fc("0xc")]});e.filter((t=>{const[e,n]=t[fc("0x11c")][fc("0x2f")]("|");return e==o[fc("0x80")]&&n!=i}))[fc("0x9f")]((e=>{this._reduceSuggestionAttributeRange(e,o[fc("0x2")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const o=t[fc("0x1")]()[fc("0xb3")](e);0!==o[fc("0xa1")]?1!==o[fc("0xa1")]?this._breakSuggestionMarker(t,e[fc("0xd7")],e[fc("0x7c")]):this[fc("0xc0")](t,o[0]):n[fc("0x8b")](t.getFirstMarker())}}class pc{constructor(t){this._editor=t,this[fc("0x37")]=t.model,this[fc("0x17b")]=new Map,this[fc("0x17c")]=new Map,this[fc("0xf")]()}[fc("0x134")](t,e,n,o,i,r){return new Jo(this[fc("0x37")],{type:t,subType:e,id:n,author:o,creator:o,attributes:i,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,fc("0xfb"))(...n),onDiscard:(...n)=>this[fc("0x34")](t,e,fc("0x167"))(...n)})}registerCustomCallback(t,e,n,o){const i=t+":"+e+":"+n;this[fc("0x17b")][fc("0x142")](i,o)}[fc("0x34")](t,e,n){const o=t+":"+e+":"+n;return this[fc("0x17b")].get(o)||this[fc("0x17c")].get(t+":"+n)}[fc("0xf")](){const t=()=>!1,e=t=>{t[fc("0x17")](((t,e)=>t[fc("0xd7")][fc("0x3")](e.start)?1:-1)),this[fc("0x37")][fc("0x6e")]((e=>{for(const n of t){let t;t=n[fc("0x7c")].isAtEnd&&n.end[fc("0xa5")]==n[fc("0xd7")].nodeAfter?e[fc("0x66")](n[fc("0xd7")][fc("0xa3")],"on"):e[fc("0x66")](n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0x37")][fc("0x6e")]((n=>{const{commandName:o,commandParams:i=[]}=e,r=t[fc("0x152")]((t=>(Ec(t)&&(t=this._model[fc("0x131")](t[fc("0x7c")])),t))).filter((t=>fc("0xc7")!==t[fc("0x62")][fc("0x94")]));if(r.length<1)return;const x=Array[fc("0xb8")](this[fc("0x37")][fc("0x138")][fc("0x14a")][fc("0x30")]())[fc("0x152")]((t=>s.LiveRange[fc("0x5a")](t)));n.setSelection(r);for(const t of this[fc("0x98")][fc("0x31")][fc("0x31")]())t[fc("0x23")]();i.push({forceDefaultExecution:!0}),this[fc("0x98")][fc("0x111")](o,...i);const a=x[fc("0xd6")]((t=>"$graveyard"!=t[fc("0x62")][fc("0x94")]));a.length>0&&n[fc("0x69")](a);for(const t of x)t[fc("0x5")]()}))},o=(t,e)=>1==t.length&&1==e[fc("0xa1")]&&t[0].end.isEqual(e[0][fc("0xd7")]),i=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x37")])?[t,e]:Ac(e,t,o,n,this[fc("0x37")])?[e,t]:null;this._defaultCallbacks.set(fc("0x150"),t),this[fc("0x17c")][fc("0x142")](fc("0x70"),e),this[fc("0x17c")][fc("0x142")]("insertion:join",o),this[fc("0x17c")][fc("0x142")](fc("0x9e"),i),this[fc("0x17c")][fc("0x142")](fc("0xa6"),e),this[fc("0x17c")][fc("0x142")](fc("0x64"),t),this[fc("0x17c")][fc("0x142")](fc("0xff"),o),this._defaultCallbacks[fc("0x142")](fc("0x3f"),i),this[fc("0x17c")][fc("0x142")]("formatInline:accept",n),this[fc("0x17c")][fc("0x142")](fc("0xe8"),t),this[fc("0x17c")][fc("0x142")](fc("0x149"),o),this[fc("0x17c")].set("formatInline:chain",t),this[fc("0x17c")][fc("0x142")]("formatBlock:accept",n),this._defaultCallbacks[fc("0x142")](fc("0x1b"),t),this[fc("0x17c")][fc("0x142")](fc("0xde"),o),this[fc("0x17c")][fc("0x142")]("formatBlock:chain",t),this[fc("0x17c")][fc("0x142")](fc("0x17a"),t),this[fc("0x17c")][fc("0x142")](fc("0x113"),((t,e)=>{if(!e)return;const n=this._editor.plugins[fc("0x148")](hc);this[fc("0x37")].change((o=>{if("$elementName"==e[fc("0x80")])for(const n of t){const t=n[fc("0xd7")][fc("0xa3")],i=e[fc("0xe9")];o[fc("0x1f")](t,i)}else if(n[fc("0x123")](e[fc("0x80")]))for(const n of t)void 0!==e[fc("0xe9")]?o[fc("0x158")](e.key,e.oldValue,n[fc("0xd7")].nodeAfter):o[fc("0x13a")](e[fc("0x80")],n[fc("0xd7")].nodeAfter);else for(const n of t)e[fc("0xe9")]?o[fc("0x158")](e[fc("0x80")],e.oldValue,n):o[fc("0x13a")](e[fc("0x80")],n)}))})),this[fc("0x17c")].set("attribute:join",o)}}function bc(t,e,n){for(const o of e[fc("0xa5")][fc("0x1d")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0x62")]==o)return!1;if(!n[fc("0x21")](o))return!1;if(t[fc("0x160")](o)||t[fc("0x135")](o))return!0}return!1}function Ec(t){return t.end[fc("0xa5")]==t[fc("0xd7")][fc("0xa3")]&&t[fc("0x7c")].isAtStart}function _c(t,e,n,o){const i=t=>!t[fc("0x15e")].is(fc("0x11f"))&&!o.isObject(t.item),r=t[fc("0xd7")][fc("0x40")](i),s=t.end.getLastMatchingPosition(i,{direction:fc("0x65")});return!(t.start[fc("0xc5")](r)&&t[fc("0x7c")].isEqual(s)||(r[fc("0x3")](s)?n[fc("0x45")](e,{range:n.createRange(r,s)}):n[fc("0x8b")](e),0))}function Tc(t){return(0,r.hashObject)(t)}function yc(t){const e=t[fc("0xd7")][fc("0xa3")];return e&&e.is("element")}function Cc(t,e){const n=e[fc("0x108")].isObject(t)||e[fc("0x108")].isSelectable(t);return e[fc("0x131")](e[fc("0x130")](t,"before"),n?e[fc("0x78")](t):e[fc("0x130")](t,fc("0x7c")))}function Ac(t,e,n,o,i){if(!kc(t,e))return!1;if(n[fc("0x7c")][fc("0xc5")](o[fc("0xd7")]))return!0;if(t[fc("0x15c")]!=e.type)return!1;if(!n[fc("0x7c")].isTouching(o[fc("0xd7")]))return!1;const r=i.createRange(n[fc("0x7c")],o[fc("0xd7")])[fc("0x58")]();for(const t of r)if([fc("0x13c"),fc("0x151")].includes(t[fc("0x15c")])&&i[fc("0x108")][fc("0x135")](t[fc("0x15e")]))return!1;return!0}function kc(t,e){return!(!t[fc("0x16d")]||!e[fc("0x16d")])&&Go(t[fc("0x16a")],e[fc("0x16a")])}function Ic(t,e){const n=Sc(t[fc("0x16a")]),o=Sc(e);if(!t[fc("0x16d")])return!1;for(const t of Object[fc("0xc2")](o))if(!Go(n[t],o[t]))return!1;return!0}function Sc(t){const e=Object.assign({},t);return delete e.skipNestingCheck,delete e[fc("0x161")],e}function Rc(t){return"attribute"==t.type?t[fc("0x11c")][fc("0x2f")]("|")[0]:null}const vc=["get","stopListening","acceptSuggestion","_acceptCommand","destroy","change:isDirty","_setPendingAction","add","_pendingAction","listenTo","canAccept","model","canDiscard","isDirty","locale","PendingActions","_editor","unbind","execute","canEditAt","_removePendingAction","_discardCommand","commands","bind","getRanges","discardSuggestion","plugins","commentThreadController","isEnabled","view"];var Nc,Lc;Nc=vc,Lc=419,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return vc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Mc("0xc")]=e,this[Mc("0x0")]=n,this[Mc("0x1c")]=o,this[Mc("0x11")]=t,this[Mc("0x4")]=t[Mc("0x17")][Mc("0x1")](Mc("0x3")),this[Mc("0x16")]=t[Mc("0x17")].get(Mc("0x1a")),this.view.bind(Mc("0x1d")).to(this[Mc("0x4")],this[Mc("0x16")],((t,e)=>t||e)),this[Mc("0x0")][Mc("0x18")](Mc("0xb")).to(this[Mc("0x4")],Mc("0x1d"),(t=>t&&this[Mc("0x11")][Mc("0xc")][Mc("0x14")](e[Mc("0x19")]()))),this[Mc("0x0")][Mc("0x18")](Mc("0xd")).to(this[Mc("0x16")],"isEnabled",(t=>t&&this[Mc("0x11")][Mc("0xc")].canEditAt(e.getRanges()))),this[Mc("0x9")]=null,n[Mc("0xe")]&&this._setPendingAction(),this[Mc("0xa")](n,Mc("0x3"),(()=>this[Mc("0x3")]())),this[Mc("0xa")](n,Mc("0x1a"),(()=>this.discardSuggestion())),this[Mc("0xa")](n,Mc("0x6"),(()=>{n[Mc("0xe")]?this[Mc("0x7")]():this[Mc("0x15")]()}))}[Mc("0x3")](){this._acceptCommand[Mc("0x13")](this[Mc("0xc")].id)}[Mc("0x1a")](){this[Mc("0x16")][Mc("0x13")](this[Mc("0xc")].id)}[Mc("0x5")](){this[Mc("0x0")][Mc("0x12")](Mc("0x1d")),this[Mc("0x0")][Mc("0x12")]("canAccept"),this[Mc("0x0")][Mc("0x12")](Mc("0xd")),this[Mc("0x2")](),this[Mc("0x1c")].destroy(),this._pendingAction&&this[Mc("0x15")]()}[Mc("0x7")](){const t=Qo(this._editor[Mc("0xf")],"PENDING_ACTION_SUGGESTION");this[Mc("0x9")]=this[Mc("0x11")][Mc("0x1b")].get(Mc("0x10"))[Mc("0x8")](t)}[Mc("0x15")](){null!==this[Mc("0x9")]&&this[Mc("0x11")][Mc("0x1b")].get("PendingActions").remove(this[Mc("0x9")]),this._pendingAction=null}}const Oc=["isActive","updateComment","_createCommentViews","commentThread","removeComment","isReadOnly","descriptionParts","commentThreadInputView","bind","fire","canDiscard","_createCommentThreadInputView","cancel","editor","length","isDirty","disabledSubmit","commentsListView","focus","locale","set","isEnabled","canAccept","showInput","_config","value","_model","hasDirtyComment","delegate","setData","commentInputView","addComment","destroy","_localUser","editorConfig","authoredAt"];var Fc,Dc;Fc=Oc,Dc=152,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends i.View{constructor(t,e,n,o){super(t),this[Bc("0x9")]=null,this[Bc("0x23")]=null,this[Bc("0xc")](Bc("0x1c"),!1),this.set(Bc("0x1b"),e[Bc("0x1b")]),this[Bc("0x0")](Bc("0x1b")).to(e),this[Bc("0xc")](Bc("0x22"),[]),this[Bc("0xc")]("isDirty",!1),this[Bc("0xc")](Bc("0xd"),!1),this[Bc("0xc")](Bc("0xe"),!1),this[Bc("0xc")](Bc("0x2"),!1),this[Bc("0x12")]=e,this[Bc("0x19")]=n,this[Bc("0x10")]=o,o.disableComments?this[Bc("0xc")](Bc("0x6"),1):this[Bc("0x1e")]()}[Bc("0xa")](){this.element[Bc("0xa")]()}[Bc("0x18")](){this[Bc("0x9")]&&this[Bc("0x9")][Bc("0x18")](),this.commentThreadInputView&&this[Bc("0x23")].destroy(),super[Bc("0x18")]()}[Bc("0x1e")](){const{CommentsListView:t}=this[Bc("0x10")];this.commentsListView=new t(this[Bc("0xb")],this[Bc("0x12")].commentThread,Object.assign({CommentView:this._config.CommentView},this._config)),this[Bc("0x9")][Bc("0x14")](Bc("0x20")).to(this),this[Bc("0x9")][Bc("0x14")](Bc("0x1d")).to(this),this[Bc("0x9")][Bc("0x0")](Bc("0x1c")).to(this),this[Bc("0xc")](Bc("0x6"),this[Bc("0x9")][Bc("0x6")]+1),this[Bc("0x0")](Bc("0x6")).to(this[Bc("0x9")],Bc("0x6"),(t=>t+1)),this.commentThreadInputView=this[Bc("0x3")](),this.on(Bc("0x20"),(()=>this[Bc("0xa")]())),this[Bc("0x0")](Bc("0x7")).to(this[Bc("0x9")],Bc("0x13"),this[Bc("0x23")].commentInputView,Bc("0x11"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Bc("0x10")],e=new t(this.locale,this[Bc("0x19")],this[Bc("0x10")][Bc("0x1a")]),n=e[Bc("0x16")];return e[Bc("0x0")](Bc("0xf")).to(this,Bc("0x1c"),this[Bc("0x12")][Bc("0x1f")],"isReadOnly",n,Bc("0x11"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Bc("0x1")](Bc("0x17"),e),n[Bc("0x5")][Bc("0x15")]("")})),n.on(Bc("0x4"),(()=>this[Bc("0xa")]())),n.bind(Bc("0x8")).to(this[Bc("0x12")][Bc("0x1f")],Bc("0x21")),e}}const Uc=["ck-suggestion--discard","description","EXTERNAL_SUGGESTION","color","canDiscard","ck-suggestion__info","time","extendTemplate","cancel","EXTERNAL_IMPORT_WORD_SUGGESTION","createElement","_config","ck-comment__info-time","ck-annotation__content-wrapper","attributes","discardButton","querySelector","formatDateTime","discardSuggestion","delegate","</span>","ck-annotation__main","ck-suggestion--disabled-comments",'"></span>',"EXTERNAL_IMPORT_WORD_AVATAR","render","element","ck-comment__external","push","ck-annotation__info-time",'<span class="ck-suggestion-color" style="background-color: ',"bindTemplate","ck-suggestion__user","source",'" title="',"editorDestroyed","_descriptionElement","fire","innerText","check","innerHTML","Accept suggestion","isActive","commentsListView","_model","userView","join","content","isEnabled","change:description","authoredAt","editorReady","set","title","ck-suggestion__main","@external","getTemplate","<p>","ck-suggestion-wrapper","setTemplate","name","canAccept","execute","span","_createButton","bind","Discard suggestion","ck-annotation",".ck-annotation__content-wrapper","commentThreadInputView","ck-annotation__user","importWord","ck-suggestion__actions","creator","div","split","value","acceptButton","getUserViewNotificationText","ck-annotation__actions",'<span class="ck-suggestion-type">',"ck-annotation__info-name","type","author","locale","ck-suggestion__info-name","getExternalSuggestionNote"];var jc,Gc;jc=Uc,Gc=265,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Hc=function(t,e){return Uc[t-=0]};class Vc extends Pc{constructor(e,n,o,i){super(e,n,o,i),this[Hc("0x30")]("type",""),this.bind(Hc("0x4e")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][Hc("0x4e")]:"")),this[Hc("0x3d")](Hc("0x54")).to(this,"descriptionParts",this,Hc("0x26"),((t,e)=>{let n="";for(const e of t)n+=Hc("0x35")+zc(e[Hc("0x2b")],e[Hc("0x56")])+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[Hc("0x20")]=null,this[Hc("0x49")]=this[Hc("0x3c")](Qo(e,Hc("0x25")),t.icons[Hc("0x23")],"ck-suggestion--accept","acceptSuggestion","sw"),this[Hc("0x49")].bind("isEnabled").to(this,Hc("0x39")),this[Hc("0xb")]=this[Hc("0x3c")](Qo(e,Hc("0x3e")),t.icons[Hc("0x4")],Hc("0x53"),Hc("0xe"),"sw"),this[Hc("0xb")][Hc("0x3d")](Hc("0x2c")).to(this,Hc("0x0")),this[Hc("0x29")]=new r.UserView(e,this[Hc("0x28")][Hc("0x4f")],this[Hc("0x4a")]()),this[Hc("0x29")][Hc("0x3")]({attributes:{class:[Hc("0x1c"),Hc("0x42")]}}),this[Hc("0x37")](this[Hc("0x34")]())}getTemplate(){const t=this[Hc("0x1b")],e=[{tag:Hc("0x46"),attributes:{class:[Hc("0x1"),"ck-annotation__info"]},children:[{tag:Hc("0x3b"),children:[{text:this[Hc("0x29")][Hc("0x38")]}],attributes:{class:[Hc("0x51"),Hc("0x4d")]}},{tag:Hc("0x2"),attributes:{datetime:t.to(Hc("0x2e")),class:[Hc("0x8"),Hc("0x19")]},children:[{text:t.to("authoredAt",(t=>this[Hc("0x7")][Hc("0xd")](t)))}]}]},{tag:Hc("0x46"),attributes:{class:[Hc("0x44"),Hc("0x4b")]},children:[this[Hc("0x49")],this[Hc("0xb")]]},{tag:Hc("0x46"),attributes:{class:[Hc("0x9")]}}];this[Hc("0x28")].isExternal&&e[Hc("0x18")]({tag:Hc("0x46"),attributes:{class:[Hc("0x17")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:Hc("0x46"),attributes:{class:[Hc("0x36"),t.if("isActive","ck-suggestion-wrapper--active"),t.to(Hc("0x4e"),(t=>"ck-suggestion-"+t)),this[Hc("0x7")].disableComments&&Hc("0x12")],"data-suggestion-id":this._model.id,"data-thread-id":this[Hc("0x28")].commentThread.id,"data-author-id":this[Hc("0x28")].author.id,tabindex:-1},children:[{tag:"div",attributes:{class:["ck-suggestion",Hc("0x3f")]},children:[this.userView,{tag:Hc("0x46"),attributes:{class:[Hc("0x32"),Hc("0x11")]},children:e}]}]};return this[Hc("0x27")]&&this.commentThreadInputView&&(n.children[Hc("0x18")](this[Hc("0x27")],this[Hc("0x41")]),this[Hc("0x27")][Hc("0xf")](Hc("0x2f")).to(this),this[Hc("0x27")].delegate(Hc("0x1f")).to(this),this[Hc("0x41")].delegate(Hc("0x2f")).to(this),this[Hc("0x41")].delegate(Hc("0x1f")).to(this)),n}[Hc("0x15")](){super.render(),this[Hc("0x20")]=this[Hc("0x16")][Hc("0xc")](Hc("0x40")),this._descriptionElement[Hc("0x24")]=this[Hc("0x54")],this.on(Hc("0x2d"),((t,e,n)=>{this[Hc("0x20")][Hc("0x24")]=n}))}[Hc("0x3c")](t,e,n,o,r){const s=new i.ButtonView(this.locale);return s[Hc("0x30")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[Hc("0x3")]({attributes:{class:n}}),s.on(Hc("0x3a"),(()=>{this[Hc("0x21")](o,this._model.id)})),s}[Hc("0x52")](){return Hc("0x43")===this[Hc("0x28")].attributes[Hc("0x33")][Hc("0x1d")]?Qo(this[Hc("0x50")],Hc("0x5")):Qo(this[Hc("0x50")],Hc("0x55"))}[Hc("0x4a")](){return this[Hc("0x28")].isExternal?Hc("0x43")===this._model[Hc("0xa")][Hc("0x33")][Hc("0x1d")]?Qo(this[Hc("0x50")],Hc("0x14"),this[Hc("0x28")][Hc("0x45")].name):Qo(this[Hc("0x50")],"EXTERNAL_AVATAR",this[Hc("0x28")][Hc("0x45")].name):null}}function zc(t,e){let n="";return n+=t[Hc("0x47")]("*").map(((t,e)=>e%2!=0?Hc("0x4c")+Wc(t)+Hc("0x10"):Wc(t)))[Hc("0x2a")](""),e&&(n+=Hc("0x1a")+e[Hc("0x48")]+Hc("0x1e")+e[Hc("0x31")]+Hc("0x13")),n}function Wc(t){const e=document[Hc("0x6")](Hc("0x3b"));return e[Hc("0x22")]=t,e[Hc("0x24")]}const Kc=["has","mainView","_bindAnnotationToEditors","view","createAnnotationView","innerView","getByInnerView","comments.maxThreadTotalWeight","acceptSelectedSuggestions","model","comments.maxCommentCharsWhenCollapsed","source","_viewToController","init","execute","editing","some","hasSuggestion","EditorAnnotations","descriptionParts","_destroyController","trackChanges","_updateController","toMany","_descriptionFactory","_disableComments","Discard all suggestions","editor","push","unbind","stopListening","getRanges","_handleControllerBuffer","acceptButton","bind","_createUIButton","trackChanges.SuggestionThreadView","button","value","CommentsRepository","filter","define","type","getMarkers","_initializeController","focus","TrackChangesEditing","buttonView","getFirstRange","Accept all selected suggestions","suggestionUnloaded","_suggestionToController","addSourceCollector","plugins","suggestionLoaded","getMarkerNames","Track changes","CommentView","commands","activeMarkers","add","destroy","_handleSuggestionControllerDelayed","isOn","refreshSelectedViews","discardAllSuggestions","from","change:activeAnnotations","delete","discardButton","getJoined","actionView","CommentsUI","comments","discardSelectedSuggestions","commandName","acceptAllSuggestions","commentThread","comments.editorConfig","get","suggestionChanged","change:previous","reduce","previous","componentFactory","separator","locale","getSuggestion","listenTo","set","_annotationViews","Accept all suggestions","Annotations","activeAnnotations","isInContent","arrowView","SuggestionThreadView","TrackChangesUI","Discard all selected suggestions","isEnabled","length","clear","_unbindEditors","createCommentThreadController","head","getDescriptions","map","_refreshActiveMarkers"];var qc,Xc;qc=Kc,Xc=346,function(t){for(;--t;)qc.push(qc.shift())}(++Xc);const $c=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get requires(){return[hc,r.Users,"CommentsRepository",$c("0x46"),$c("0x68")]}static get pluginName(){return $c("0x4b")}constructor(t){super(t),this[$c("0x1d")]=new Map,this[$c("0x62")]=new Map,this[$c("0x44")]=new Map,this[$c("0xa")]=new Map;const e=this[$c("0x5")].config;e[$c("0x13")]($c("0xe"),Vc),e[$c("0x13")]("trackChanges.disableComments",!1),this[$c("0x3")]=e.get("trackChanges.disableComments")}[$c("0x28")](t,e){0===this[$c("0xa")].size&&setTimeout((()=>{for(const[t,e]of this[$c("0xa")]){const n=this[$c("0x1d")][$c("0x56")](t);n||e?n&&e&&this._destroyController(t):this[$c("0x16")](t)}this[$c("0x5")][$c("0x1f")][$c("0x39")]($c("0x68"))[$c("0x2a")](),this[$c("0x55")](),this._handleControllerBuffer[$c("0x4f")]()}),10),this[$c("0xa")].set(t,e)}[$c("0x63")](){const t=this[$c("0x5")],e=t[$c("0x1f")].get($c("0x18")),n=t[$c("0x1f")][$c("0x39")]($c("0x46")),o=t[$c("0x1f")][$c("0x39")]($c("0x68")),i=t.plugins.get($c("0x11"));t.ui[$c("0x3e")].add("trackChanges",(t=>this[$c("0xd")](t))),o[$c("0x1e")]((()=>{const t=[];for(const[e,n]of Array[$c("0x2c")](this[$c("0x1d")])){const o=e.getAllAdjacentSuggestions(),i=[];for(const t of o){if(!t[$c("0x48")])continue;if(t.isMultiRange){i[$c("0x6")](...t[$c("0x9")]());continue}const e=t[$c("0x1a")]();if(i[$c("0x4e")]>0){const t=i[0][$c("0x30")](e);if(t){i[0]=t;continue}}i[$c("0x6")](e)}t.push([n[$c("0x59")],i])}return t})),this[$c("0x42")](e,$c("0x20"),((t,e)=>{this[$c("0x42")](e,$c("0x3b"),((t,n,o,i)=>{e[$c("0x48")]&&(null==o?(this[$c("0x0")](i[$c("0x52")]),this._handleSuggestionControllerDelayed(e,!1)):(this[$c("0x0")](o[$c("0x52")]),null==i&&this[$c("0x28")](e,!0)))})),null!==e[$c("0x3d")]?this[$c("0x0")](e[$c("0x52")]):this[$c("0x28")](e,!1)})),this.listenTo(e,$c("0x1c"),((t,e,n)=>{this[$c("0x8")](e,$c("0x3b")),this[$c("0xa")].delete(e),this[$c("0x1d")].has(e)&&this._destroyController(e),n&&this[$c("0x0")](n.head)})),this[$c("0x42")](e,$c("0x3a"),((t,e)=>{this[$c("0x0")](e)})),this[$c("0x42")](n,$c("0x2d"),(()=>{this[$c("0x55")]()})),this[$c("0x42")](i,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[$c("0x67")](n))return;const i=e[$c("0x41")](n);this[$c("0x1d")][$c("0x39")](i)[$c("0x59")][$c("0x17")]()}),{priority:"lowest"})}_refreshActiveMarkers(){const t=this[$c("0x5")].plugins[$c("0x39")]($c("0x46")),e=this.editor[$c("0x1f")].get("TrackChangesEditing"),n=Array[$c("0x2c")](t[$c("0x47")],(t=>t[$c("0x5b")])).filter((t=>this._viewToController.has(t))),o=[];for(const t of n){const e=this[$c("0x62")][$c("0x39")](t)[$c("0x5f")].getAllAdjacentSuggestions();o[$c("0x6")](...e[$c("0x3c")](((t,e)=>[...t,...e[$c("0x21")]()]),[]))}e[$c("0x25")]=o}[$c("0xd")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),o=this[$c("0x5")].commands[$c("0x39")]($c("0x6b")),r=Qo(t,$c("0x22"));n[$c("0x19")][$c("0x43")]({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-2023, 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.buttonView[$c("0xc")]($c("0x29")).to(o,$c("0x10")),n[$c("0x19")].on($c("0x64"),(()=>{o[$c("0x64")](),this[$c("0x5")][$c("0x65")][$c("0x59")][$c("0x17")]()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:$c("0x6b")}},{type:$c("0x3f")},{type:"button",model:{withText:!0,label:Qo(t,$c("0x45")),commandName:$c("0x36")}},{type:$c("0xf"),model:{withText:!0,label:Qo(t,$c("0x1b")),commandName:$c("0x5e")}},{type:$c("0xf"),model:{withText:!0,label:Qo(t,$c("0x4")),commandName:$c("0x2b")}},{type:$c("0xf"),model:{withText:!0,label:Qo(t,$c("0x4c")),commandName:$c("0x34")}}];for(const t of x){let e={type:$c("0x3f")};if(t[$c("0x5f")]){const n=new i.Model(t.model),o=this[$c("0x5")].commands[$c("0x39")](n[$c("0x35")]);n[$c("0xc")]($c("0x29"),"isEnabled").to(o,$c("0x10"),$c("0x4d")),e={type:t[$c("0x14")],model:n}}s[$c("0x26")](e)}(0,i.addListToDropdown)(n,s);const a=x[$c("0x12")]((t=>null!=t[$c("0x5f")]))[$c("0x54")]((t=>this[$c("0x5")][$c("0x24")].get(t[$c("0x5f")][$c("0x35")]))),c=n[$c("0x19")];return c[$c("0x31")][$c("0x7")]($c("0x4d")),c[$c("0x49")][$c("0x7")]("isEnabled"),c[$c("0x31")][$c("0xc")]($c("0x4d")).to(o,$c("0x4d")),c[$c("0x49")].bind($c("0x4d"))[$c("0x1")](a,$c("0x4d"),((...t)=>t[$c("0x66")]((t=>t)))),n.on($c("0x64"),(t=>{this.editor[$c("0x64")](t[$c("0x61")][$c("0x35")]),this.editor[$c("0x65")][$c("0x59")].focus()})),n}[$c("0x16")](t){const e=this[$c("0x5")],n=e.config,o=e.plugins[$c("0x39")]($c("0x46")),i=e.plugins[$c("0x39")]("CommentsRepository"),s=e[$c("0x1f")][$c("0x39")]($c("0x68")),x=e[$c("0x1f")][$c("0x39")](r.Users).me,a=n[$c("0x39")]($c("0x6b"))[$c("0x4a")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[$c("0x39")]($c("0x32"));let u,d;this[$c("0x44")][$c("0x56")](t.id)?(d=this[$c("0x44")][$c("0x39")](t.id),u=d[$c("0x57")]):(u=new a(e.locale,t,x,{disableComments:this._disableComments,editorConfig:n.get($c("0x38")),maxCommentsWhenCollapsed:n[$c("0x39")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[$c("0x39")]($c("0x5d")),maxCommentCharsWhenCollapsed:n[$c("0x39")]($c("0x60")),formatDateTime:(0,r.getDateTimeFormatter)(n[$c("0x39")]("locale")),CommentView:n[$c("0x39")]($c("0x33"))[$c("0x23")],CommentsListView:c,CommentThreadInputView:l}),u[$c("0xb")].on("execute",(()=>{e.editing.view[$c("0x17")]()})),u[$c("0x2f")].on($c("0x64"),(()=>{e[$c("0x65")][$c("0x59")].focus()})),d=o[$c("0x5a")](this[$c("0x5")][$c("0x40")],u),d[$c("0xc")]("isDirty").to(u,"isDirty"),d[$c("0xc")]($c("0x4e")).to(u),d[$c("0xc")]($c("0x14")).to(u,$c("0x14"),(t=>"suggestion-"+t)),this[$c("0x44")][$c("0x43")](t.id,d));const g=i[$c("0x51")](t[$c("0x37")],u),f=new wc(e,t,u,g),m=t.getAllAdjacentSuggestions()[$c("0x12")]((t=>t[$c("0x48")]));u[$c("0x69")]=e[$c("0x1f")][$c("0x39")]("TrackChangesEditing")[$c("0x2")][$c("0x53")](m),this[$c("0x1d")][$c("0x43")](t,f),this._viewToController[$c("0x43")](u,f);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[$c("0x12")]((t=>t[$c("0x48")]));for(const t of o)n[$c("0x6")](...t[$c("0x15")]());return(0,r.getAllMarkersDomElementsSorted)(e[$c("0x65")],n)},type:()=>"suggestion-"+f.view[$c("0x14")]});i[$c("0x58")](u,h),o[$c("0x26")](h),s.registerAnnotation(h)}[$c("0x6a")](t){const e=this[$c("0x5")][$c("0x1f")][$c("0x39")]($c("0x11")),n=this[$c("0x5")].plugins[$c("0x39")]($c("0x46")),o=this[$c("0x1d")].get(t),i=o.view,r=n[$c("0x5c")](i);e[$c("0x50")](i),r&&n.remove(r),this[$c("0x1d")][$c("0x2e")](t),this[$c("0x62")].delete(i),o[$c("0x27")]()}[$c("0x0")](t){if(!t[$c("0x48")]||!this[$c("0x1d")][$c("0x56")](t))return;const e=this[$c("0x5")][$c("0x1f")][$c("0x39")]("TrackChangesEditing"),n=this[$c("0x1d")][$c("0x39")](t),o=t.getAllAdjacentSuggestions();n.view[$c("0x69")]=e[$c("0x2")].getDescriptions(o)}[$c("0x27")](){for(const t of this[$c("0x1d")].keys())this[$c("0x6a")](t);for(const t of this._annotationViews.values())t[$c("0x57")][$c("0x27")]();super[$c("0x27")]()}}var Yc,Jc,Qc=["requires","Comments","pluginName","TrackChanges","editor","getSuggestions","get","adapter","plugins","getSuggestion"];Yc=Qc,Jc=489,function(t){for(;--t;)Yc.push(Yc.shift())}(++Jc);var tl=function(t,e){return Qc[t-=0]};class el extends t.Plugin{static get[tl("0x1")](){return[hc,Zc,tl("0x2")]}static get[tl("0x3")](){return tl("0x4")}set[tl("0x8")](t){this.editor[tl("0x9")][tl("0x7")](hc)[tl("0x8")]=t}get adapter(){return this[tl("0x5")][tl("0x9")][tl("0x7")](hc)[tl("0x8")]}addSuggestion(t){return this.editor[tl("0x9")][tl("0x7")](hc).addSuggestionData(t)}[tl("0x6")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[tl("0x5")][tl("0x9")][tl("0x7")](hc).getSuggestions({skipNotAttached:t,toJSON:e})}[tl("0x0")](t){return this[tl("0x5")][tl("0x9")].get(hc).getSuggestion(t)}}const nl=["function","createDocumentFragment","set","TrackChangesDataGetter","config","model","create","getRootsAttributes","Pagination","get","_adapter","CommentsRepository","execute","data","define","useAnonymousUser","constructor","map","TrackChangesData","pluginName","addUser","TrackChangesEditing","div","getFullData","editorCreator","plugins","trackChangesData","init","acceptAllSuggestions","getRootNames","reduce","editor","addSuggestionData","createElement","requires","trackChangesData.editorCreator","result","destroy"];var ol,il;ol=nl,il=436,function(t){for(;--t;)ol.push(ol.shift())}(++il);const rl=function(t,e){return nl[t-=0]},sl=[rl("0x1c")];class xl extends t.Plugin{static get[rl("0x10")](){return[hc]}static get pluginName(){return rl("0x0")}[rl("0x9")](){const t=this[rl("0xd")];if(t[rl("0x18")][rl("0x22")](rl("0x11"),(e=>{const n=t[rl("0x19")].document[rl("0xb")]()[rl("0xc")](((t,e)=>(t[e]="",t)),{});return t[rl("0x24")][rl("0x1a")](n,e)})),rl("0x14")!=typeof t[rl("0x18")].get(rl("0x8"))[rl("0x6")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}getDataWithAcceptedSuggestions(t){return ll(this[rl("0xd")],!0,t)}getDataWithDiscardedSuggestions(t){return ll(this[rl("0xd")],!1,t)}}class al extends t.Plugin{static get[rl("0x1")](){return rl("0x17")}constructor(t){super(t),this[rl("0x12")]="end"}[rl("0x9")](){this[rl("0xd")][rl("0x7")][rl("0x1d")](rl("0x1f"))._adapter={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.editor[rl("0x7")][rl("0x1d")](rl("0x3"))[rl("0x1e")]=null}}function cl(t){return void 0!==t[rl("0x1b")]}async function ll(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,sl);o[rl("0x7")].push(hc,al),o.rootsAttributes=cl(t)?t[rl("0x1b")]():void 0;const i=document[rl("0x15")](),s=t[rl("0x18")][rl("0x1d")](rl("0x8")).editorCreator,x=await s(o,(()=>function(t){const e=document[rl("0xf")](rl("0x4"));return t.appendChild(e),e}(i)));!function(t,e){const n=t[rl("0x19")].document[rl("0xb")]()[rl("0xc")](((e,n)=>(e[n]=t[rl("0x21")].get({rootName:n}),e)),{}),o=t[rl("0x7")][rl("0x1d")]("Users").users[rl("0x25")]((t=>({id:t.id,name:t.name}))),i=t[rl("0x7")][rl("0x1d")]("TrackChangesEditing").getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e.plugins[rl("0x1d")]("Users"),s=e.plugins[rl("0x1d")](rl("0x3"));for(const t of o)r.getUser(t.id)||r[rl("0x2")](t);r.me||r[rl("0x23")]();for(const t of i)s[rl("0xe")](t);e[rl("0x21")][rl("0x16")](n)}(t,x),x[rl("0x20")](e?rl("0xa"):"discardAllSuggestions");const a=cl(x)?x[rl("0x5")](n):x[rl("0x21")][rl("0x1d")](n);return await x[rl("0x13")](),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 r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.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:()=>Pc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),r=n(273),i=n(417),s=n(492),x=n(995);const a=["forceDisabled","editor","value","TrackChangesCommand","refresh","has","isEnabled","clearForceDisabled","execute","affectsData","commands","_enabledCommands"];var c,l;c=a,l=351,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0xb")]=!1,this[u("0x1")](),this._isEnabledBasedOnSelection=!1}[u("0x1")](){this[u("0x3")]=!0}[u("0x5")](){this[u("0xb")]=!this[u("0xb")],this[u("0xb")]?this._disableUnsupportedCommands():this._enableCommands()}_disableUnsupportedCommands(){for(const t of this[u("0xa")][u("0x7")].commands())t[u("0x6")]&&!this._enabledCommands[u("0x2")](t)&&t[u("0x9")](u("0x0"))}_enableCommands(){for(const t of this.editor[u("0x7")][u("0x7")]())t[u("0x6")]&&!this[u("0x8")][u("0x2")](t)&&t[u("0x4")]("TrackChangesCommand")}}const g=["editor","track-changes-accept-suggestion-not-found","model","acceptSuggestion","getRanges","get","isEnabled","plugins","canEditAt","refresh","TrackChangesEditing","_suggestions"];var f,m;f=g,m=325,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0xa")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[h("0x8")](){this[h("0x5")]=!0}execute(t){const n=this._suggestions[h("0x4")](t);if(!n)throw new e.CKEditorError(h("0x0"),this);const o=n[h("0x3")]();this[h("0xb")][h("0x1")][h("0x7")](o)&&this[h("0xb")][h("0x6")].get(h("0x9"))[h("0x2")](n)}}const b=["editor","canEditAt","model","getRanges","isEnabled","TrackChangesEditing","_suggestions","execute","refresh","discardSuggestion","track-changes-discard-suggestion-not-found","_isEnabledBasedOnSelection"];var E,_;E=b,_=211,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0xb")]=e,this[T("0x1")](),this[T("0x4")]=!1}[T("0x1")](){this[T("0x9")]=!0}[T("0x0")](t){const n=this[T("0xb")].get(t);if(!n)throw new e.CKEditorError(T("0x3"),this);const o=n[T("0x8")]();this[T("0x5")][T("0x7")][T("0x6")](o)&&this.editor.plugins.get(T("0xa"))[T("0x2")](n)}}const C=["next","push","getRanges","add","execute","splice","type","isTouching","length","content","isObject","isIntersecting","createPositionBefore","from","end","deletion","isArray"," [color ","replace","isInContent","isMultiRange","map","createPositionAfter"];var A,k;A=C,k=236,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t.sort(((t,e)=>I("0x9")==t[I("0x0")]&&I("0x9")!=e[I("0x0")]?-1:"deletion"!=t[I("0x0")]&&I("0x9")==e[I("0x0")]?1:0))}function R(t,e){let n,o=0;const r=[],i=e.schema;for(;o<t[I("0x2")];){const s=t[o],x=t[o+1];n||(n=e[I("0x6")](s)),v(e,s,x)||(r[I("0x12")](e.createRange(n,i[I("0x4")](s)?e[I("0x10")](s):e.createPositionAt(s,I("0x8")))),n=null),o++}return r}function v(t,e,n){if(!n)return!1;const o=t[I("0x10")](e),r=t.createPositionBefore(n);return o[I("0x1")](r)}function N(t,e,n){for(;n[I("0x2")];){const o=n[I("0x16")](0,100);t.change((()=>{for(const t of o)t.isInContent&&e[I("0x15")](t.id)}))}}const L=["values","from","_isEnabledBasedOnSelection","canEditAt","editor","refresh","getRanges","execute","_suggestions","_command","model"];var M,w;M=L,w=282,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x2")]=e,this[O("0x1")]=n,this.refresh(),this[O("0x6")]=!1}[O("0x9")](){const t=Array[O("0x5")](this[O("0x1")][O("0x4")]()).some((t=>t.isInContent));this.isEnabled=this._command.isEnabled&&t}[O("0x0")](){const t=S(Array[O("0x5")](this[O("0x1")][O("0x4")]()));for(const e of t){const t=e[O("0xa")]();if(!this.editor[O("0x3")][O("0x7")](t))return}N(this[O("0x8")][O("0x3")],this[O("0x2")],t)}}const D=["values","model","document","execute","editor","refresh","getRanges","_command","from","canEditAt","isEnabled","selection","_suggestions","_selectedSuggestions"];var B,P;B=D,P=412,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x1")]=e,this[U("0x6")]=n,this[U("0x7")]=new Set,this[U("0xd")](),this._isEnabledBasedOnSelection=!1}refresh(){const t=this[U("0xc")][U("0x9")][U("0xa")][U("0x5")],e=Array[U("0x2")](this[U("0x6")][U("0x8")]());this[U("0x7")]=function(t,e){const n=Array[I("0x7")](t[I("0x13")]()),o=new Set;for(const r of e)if(r[I("0xd")])for(const e of n)for(const n of r.getRanges())(e[I("0x5")](n)||t.isCollapsed&&!r[I("0xe")]&&r[I("0x11")]&&n[I("0x8")].isTouching(e.start))&&o[I("0x14")](r);return o}(t,e),this.isEnabled=this._command[U("0x4")]&&!!this[U("0x7")].size}[U("0xb")](){const t=S(Array[U("0x2")](this[U("0x7")]));for(const e of t){const t=e[U("0x0")]();if(!this[U("0xc")][U("0x9")][U("0x3")](t))return}N(this[U("0xc")][U("0x9")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const V=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 W=function(t){var e=this.__data__,n=V(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=V(e,t);return n<0?void 0:e[n][1]};const q=function(t){return V(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=V(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=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=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 rt=ot.Symbol;var it=Object.prototype,st=it.hasOwnProperty,xt=it.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var r=xt.call(t);return o&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=rt?rt.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(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 yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,St=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rt=function(t){return!(!ft(t)||Et(t))&&(mt(t)?St:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return Rt(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=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 jt(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])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Vt=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 Vt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=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=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;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=Nt(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 re=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 ie=function(t,e,n,o){var r=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var x=e[i],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(n,x,a)}return n};const se=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,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;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 ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Se=Ie&&Ie.exports===ke&&et.process;const Re=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Se&&Se.binding&&Se.binding("util")}catch(t){}}();var ve=Re&&Re.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),r=!n&&!o&&be(t),i=!n&&!o&&!r&&Ne(t),s=n||o||r||i,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&ie(e,je(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var Ve=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&Ve.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&ie(e,We(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,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,i=[];++n<o;){var s=t[n];e(s,n,t)&&(i[r++]=s)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return ie(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return ie(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=pn||fn&&Sn(fn.resolve())!=bn||mn&&Sn(new mn)!=En||hn&&Sn(new hn)!=_n)&&(Sn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Rn=Sn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=rt?rt.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=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 Un(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 Pn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Vn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Rn(t)};var Wn=Re&&Re.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Rn(t)};var Xn=Re&&Re.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,r,i,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=i?o(e,r,i,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=Rn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!i){if(x=c||g?{}:Vn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return i?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,s))})):Kn(e)&&e.forEach((function(r,i){x.set(i,t(r,n,o,i,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(r,i){m&&(r=e[i=r]),re(x,i,t(r,n,o,i,e,s))})),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)\]/,ro=/^\w*$/;const io=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(ro.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var s=t.apply(this,o);return n.cache=i.set(r,s)||i,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;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,r){e.push(o?r.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var go=rt?rt.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const po=function(t,e){return ge(t)?t:io(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(!ft(t))return t;for(var r=-1,i=(e=po(e,t)).length,s=i-1,x=t;null!=x&&++r<i;){var a=bo(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[r+1])?[]:{})}re(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 yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=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 Io=function(t,e){return t.has(e)};const So=function(t,e,n,o,r,i){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(i.set(t,e),i.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,i):o(f,m,u,t,e,i);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||r(f,t,n,o,i)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!r(f,m,n,o,i)){d=!1;break}}return i.delete(t),i.delete(e),d};const Ro=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=rt?rt.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,r,i,s){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||!i(new Ln(t),new Ln(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=Ro;case"[object Set]":var a=1&o;if(x||(x=vo),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=So(x(t),x(e),o,r,i,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,i){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:wo.call(e,l)))return!1}var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var g=!0;i.set(t,e),i.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,i):o(m,h,l,t,e,i);if(!(void 0===p?m===h||r(m,h,n,o,i):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){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 i.delete(t),i.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,r,i){var s=ge(t),x=ge(e),a=s?Do:Rn(t),c=x?Do:Rn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new Qt),s||Ne(t)?So(t,e,n,o,r,i):Mo(t,e,a,n,o,r,i);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return i||(i=new Qt),r(m,h,n,o,i)}}return!!d&&(i||(i=new Qt),Oo(t,e,n,o,r,i))};const jo=function t(e,n,o,r,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,r,t,i))};const Go=function(t,e){return jo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vo=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,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++o<r;)i[o]=t[o+e];return i};const Wo=function(t,e){return e.length<2?t:Vo(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["split","getContainedElement","length","onAccept","isExternal","setAttribute","end","addRange","commentThread","getItems","subType","decorate","addMarker","hasComments","set","nodeAfter","createdAt","_onAttributesChange","map","from","discard","_saved","addMarkerName","previous","type","data","_onAccept","getRange","next","removeMarker","_onDiscard","attributes","getMultiRangeId","getMarkerNames","nodeBefore","add","isIntersecting","_isDataLoaded","getFirstMarker","authoredAt","filter","_model","onDiscard","_markerNames","getMarkers","getRanges","push","size","@external","substr","reduce","change","creator","removeMarkers","accept","head","markers"];var $o,Zo;$o=Xo,Zo=357,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Yo=function(t,e){return Xo[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Yo("0x16")]=!1,this.id=e.id,this.type=e[Yo("0x9")],this[Yo("0x34")]=e[Yo("0x34")]||null,this.author=e.author,this[Yo("0x25")]=e[Yo("0x25")]||e.author,this[Yo("0x2e")]=Boolean(e[Yo("0x10")]&&e[Yo("0x10")][Yo("0x21")]),this[Yo("0xa")]=null,this._model=t,this[Yo("0xb")]=e[Yo("0x2d")],this[Yo("0xf")]=e[Yo("0x1b")],this[Yo("0x2")]=e.onAttributesChange,this[Yo("0x1c")]=new Set,this[Yo("0x1")]=null,this[Yo("0x38")](Yo("0x18"),null),this[Yo("0x38")](Yo("0x10"),e[Yo("0x10")]||{}),this[Yo("0x38")](Yo("0x8"),null),this[Yo("0x38")](Yo("0xd"),null),this[Yo("0x38")](Yo("0x32"),null),this[Yo("0x38")](Yo("0x6"),!1),this[Yo("0x35")]("accept"),this.decorate(Yo("0x5"))}get[Yo("0x28")](){let t=this;for(;t[Yo("0x8")];)t=t[Yo("0x8")];return t}get[Yo("0x37")](){return!!this[Yo("0x32")]&&this[Yo("0x32")].length>0}get isMultiRange(){return 0!=this[Yo("0x1c")][Yo("0x20")]&&6==Array[Yo("0x4")](this._markerNames)[0][Yo("0x2a")](":")[Yo("0x2c")]}get isInContent(){return null!==this[Yo("0x17")]()}[Yo("0x7")](t){this[Yo("0x1c")][Yo("0x14")](t)}[Yo("0x12")](){return Array.from(this[Yo("0x1c")])}[Yo("0x1d")](){return this[Yo("0x12")]()[Yo("0x3")]((t=>this[Yo("0x1a")][Yo("0x29")].get(t)))[Yo("0x19")]((t=>t))}[Yo("0x17")](){return this[Yo("0x1d")]()[0]||null}[Yo("0x26")](){this._model.change((t=>{for(const e of this[Yo("0x1d")]())t[Yo("0xe")](e)})),this[Yo("0x1c")].clear()}[Yo("0xe")](t){this._model[Yo("0x24")]((e=>{e[Yo("0xe")](t)})),this[Yo("0x1c")].delete(t)}[Yo("0x31")](t){const e="suggestion:"+this[Yo("0x9")]+":"+this[Yo("0x34")]+":"+this.id+":"+this[Yo("0x25")].id+":"+Jo[Yo("0x11")]();this[Yo("0x7")](e),this[Yo("0x1a")][Yo("0x24")]((n=>{n[Yo("0x36")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Yo("0x1e")]())if(e[Yo("0x15")](t))return!0;return!1}[Yo("0x1e")](){return this.getMarkers()[Yo("0x3")]((t=>t[Yo("0xc")]()))}[Yo("0x33")](){return this[Yo("0x1e")]()[Yo("0x23")](((t,e)=>[...t,...e.getItems()]),[])}getFirstRange(){var t;return(null===(t=this[Yo("0x17")]())||void 0===t?void 0:t[Yo("0xc")]())||null}[Yo("0x2b")](){const t=this.getRanges();if(1!=t[Yo("0x2c")])return null;const e=t[0],n=e.start[Yo("0x0")],o=e[Yo("0x30")][Yo("0x13")];return n instanceof s.Element?n!=o?null:n:null}[Yo("0x27")](){this[Yo("0xb")](this[Yo("0x1e")](),this[Yo("0xa")],this.attributes),this[Yo("0x26")]()}discard(){this[Yo("0xf")](this[Yo("0x1e")](),this[Yo("0xa")],this[Yo("0x10")]),this[Yo("0x26")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Yo("0x28")];for(;e;)t[Yo("0x1f")](e),e=e[Yo("0xd")];return t}[Yo("0x2f")](t,e){const n=eo(this[Yo("0x10")]);_o(n,t,e),Go(n,this[Yo("0x10")])||(this[Yo("0x10")]=n,this[Yo("0x2")](n))}removeAttribute(t){const e=eo(this[Yo("0x10")]);qo(e,t),Go(e,this[Yo("0x10")])||(this[Yo("0x10")]=e,this[Yo("0x2")](this[Yo("0x10")]))}toJSON(){return{id:this.id,type:this[Yo("0x34")]?this[Yo("0x9")]+":"+this[Yo("0x34")]:this[Yo("0x9")],authorId:this[Yo("0x25")].id,createdAt:this[Yo("0x1")],hasComments:this[Yo("0x37")],data:this[Yo("0xa")],attributes:this[Yo("0x10")]}}static[Yo("0x11")](){return(0,e.uid)()[Yo("0x22")](1,5)}}function Qo(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"*Replace image URL*":return o("*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 format:* %0":return o("*Set format:* %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_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});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_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});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_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});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"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});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);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const tr=["remove","add","registerDescriptionCallback","quantity","element","removeContainer","_itemLabelsCallbacks","addContainer","data","subType","_customCallbacks","softBreak","addObject","match","format","item","nextSibling","REPLACE_TEXT","_addDescriptionItems","getFirstRange","registerElementLabel","getWalker","normal","*Merge:* %0","_handleAttributeSuggestionDescription","$textProxy","_resolveDescriptionItems","removeFormat","join","_handleCustomCallbackDescription","Object","EmptyContainer","text","$text","matchingCallback","start","_schema","deletion","has","type","Container","getItemLabel","elementStart","isObject","map","addFormat","get","push","removeObject","_locale","isInContent","_handleRenameSuggestionDescription","key","attribute","end","*Remove:* %0","*Insert:* %0","skip","registerAttributeLabel","newValue","elementEnd","_handleInsertRemoveSuggestionDescription","pop","set","_itemLabels","getDescriptions","length","removeEmptyContainer","$1 $2","_attributeLabels","ELEMENT_SPACE","replace","isEmpty","insertion","name","indexOf","addEmptyContainer","*Change to:* %0","previousSibling"];var er,nr;er=tr,nr=355,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this[or("0x32")]=[],this[or("0x19")]=new Map,this._itemLabelsCallbacks=[],this[or("0x1e")]=new Map,this[or("0x4c")]=t,this[or("0xa")]=e}[or("0x1a")](t){const e=[],n=new Set,o=new Set;for(let r=0;r<t.length;r++){const i=t[r];if(!i[or("0xb")])continue;const s=this[or("0x45")](i);if(s){if(null!=i.subType){if(n[or("0x4e")](i.subType))continue;n[or("0x29")](i[or("0x31")])}e[or("0x8")](s)}else if(or("0xe")!=i[or("0x0")])or("0x22")!=i[or("0x0")]&&or("0x4d")!=i[or("0x0")]||this[or("0x16")](e,i,t[r+1]);else{const t=i[or("0x30")].key;if(o.has(t))continue;o.add(i[or("0x30")][or("0xd")]),t==mc?this[or("0xc")](e,i):this[or("0x40")](e,i)}}return this._resolveDescriptionItems(e)}[or("0x2a")](t){this[or("0x32")][or("0x8")](t)}[or("0x3c")](t,n,o=e.priorities[or("0x3e")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[or("0x2e")],{matchingCallback:t,label:n,priority:o}):this[or("0x19")].set(t,n)}[or("0x13")](t,e){this._attributeLabels[or("0x18")](t,e)}[or("0x2")](t,e=1){let n;for(const e of this[or("0x2e")])if(e[or("0x4a")](t)){n=e.label;break}return n||(n=this[or("0x19")][or("0x7")](t.name)),n?n(e):1!==e?e+" "+t[or("0x23")]+"s":""+t.name}[or("0x3a")](t,e){const n=e[or("0x3b")]()[or("0x3d")](),o="insertion"==e[or("0x0")]?"add":or("0x28");for(const e of n){const r=e[or("0x37")],i=t[t[or("0x1b")]-1];if(r.is(or("0x41")))i&&i[or("0x0")].indexOf(or("0x1"))>-1&&t[or("0x17")](),i&&or("0x48")==i[or("0x0")]?i[o]+=r[or("0x30")]:t[or("0x8")]({type:"text",add:"add"==o?r[or("0x30")]:"",remove:or("0x28")==o?r[or("0x30")]:""});else if(this[or("0x4c")].isObject(r)){const s=r;if(i&&i[or("0x0")][or("0x24")](or("0x1"))>-1&&t[or("0x17")](),or("0x15")==e[or("0x0")])continue;i&&i[or("0x0")]==o+"Object"&&i[or("0x2c")][or("0x23")]==s.name?i[or("0x2b")]++:t[or("0x8")]({type:o+or("0x46"),element:s,quantity:1}),n[or("0x12")]((t=>!(or("0x15")==t[or("0x0")]&&t[or("0x37")]==r)))}else if(this[or("0x4c")].checkChild(r,or("0x49"))||r.is(or("0x2c"),or("0x33"))){const n=r;if("add"==o&&or("0x3")==e[or("0x0")]||"remove"==o&&"elementEnd"==e[or("0x0")])continue;if(i&&-1==i.type.indexOf("Container")){or("0x48")==i[or("0x0")]&&(i[o]+="\n");continue}let s;if(s=or("0x29")==o?n[or("0x38")]&&!this[or("0x4c")][or("0x4")](n.nextSibling)?n[or("0x38")]:null:n[or("0x27")]&&!this[or("0x4c")].isObject(n.previousSibling)?n.previousSibling:null,n[or("0x21")]||s&&s[or("0x21")]){const e=s&&s[or("0x21")]?s:n;i&&i[or("0x0")]==o+or("0x47")&&i[or("0x2c")][or("0x23")]==e[or("0x23")]?i[or("0x2b")]++:t[or("0x8")]({type:o+or("0x47"),element:e,quantity:1})}else t[or("0x8")]({type:o+or("0x1"),element:n})}}}[or("0x42")](t){const e=this[or("0xa")],n=[],o=[],r=[];for(const i of t)switch(i.type){case or("0x48"):if(i[or("0x29")]=i.add[or("0x20")](/(\S)\u000A+(\S)/g,or("0x1d"))[or("0x20")](/\u000A/g,""),i[or("0x28")]=i.remove[or("0x20")](/(\S)\u000A+(\S)/g,or("0x1d")).replace(/\u000A/g,""),""!=i.add&&""!=i[or("0x28")]){n[or("0x8")]({type:or("0x20"),content:Qo(e,or("0x39"),['"'+i.remove+'"','"'+i[or("0x29")]+'"'])});continue}if(null!=i.add.match(/^ +$/)){n.push({type:or("0x22"),content:Qo(e,or("0x11"),Qo(e,"ELEMENT_SPACE",i.add[or("0x1b")]))});continue}if(null!=i[or("0x28")][or("0x35")](/^ +$/)){n[or("0x8")]({type:"deletion",content:Qo(e,or("0x10"),Qo(e,or("0x1f"),i[or("0x28")][or("0x1b")]))});continue}if(""!=i[or("0x29")]){n[or("0x8")]({type:or("0x22"),content:Qo(e,"*Insert:* %0",'"'+i.add+'"')});continue}n[or("0x8")]({type:or("0x4d"),content:Qo(e,or("0x10"),'"'+i[or("0x28")]+'"')});continue;case or("0x25"):case or("0x34"):n.push({type:"insertion",content:Qo(e,or("0x11"),this[or("0x2")](i.element,i[or("0x2b")]))});continue;case or("0x1c"):case or("0x9"):n[or("0x8")]({type:or("0x4d"),content:Qo(e,or("0x10"),this.getItemLabel(i[or("0x2c")],i.quantity))});continue;case or("0x2f"):n.push({type:or("0x22"),content:Qo(e,"*Split:* %0",this[or("0x2")](i[or("0x2c")],i[or("0x2b")]))});continue;case or("0x2d"):n[or("0x8")]({type:or("0x4d"),content:Qo(e,or("0x3f"),this[or("0x2")](i[or("0x2c")],i.quantity))});continue;case or("0x6"):o[or("0x8")](i.key);continue;case or("0x43"):r[or("0x8")](i[or("0xd")]);continue;default:n[or("0x8")](i)}if(o.length){const t=o.map((t=>this._attributeLabels.has(t)?this[or("0x1e")][or("0x7")](t):t))[or("0x44")](", ");n[or("0x8")]({type:or("0x36"),content:Qo(this[or("0xa")],"*Set format:* %0",t)})}if(r[or("0x1b")]){const t=r[or("0x5")]((t=>this[or("0x1e")][or("0x4e")](t)?this[or("0x1e")][or("0x7")](t):t)).join(", ");n.push({type:"format",content:Qo(this._locale,"*Remove format:* %0",t)})}return n}[or("0x45")](t){for(const e of this._customCallbacks){const n=e(t);if(n&&or("0x0")in n)return n}}[or("0x40")](t,e){const n=e[or("0x30")],o=void 0===n[or("0x14")]?or("0x43"):or("0x6");t.push({type:o,key:n[or("0xd")]})}_handleRenameSuggestionDescription(t,e){t.push({type:"format",content:Qo(this[or("0xa")],or("0x26"),this.getItemLabel(e[or("0x3b")]()[or("0x4b")].nodeAfter,1))})}[or("0x16")](t,e,n){if(this[or("0x3a")](t,e),n&&n[or("0x3b")]()&&!e[or("0x3b")]()[or("0xf")].isEqual(n.getFirstRange()[or("0x4b")])){const n=t[t[or("0x1b")]-1],o="insertion"==e[or("0x0")]?or("0x29"):or("0x28");n&&"text"==n[or("0x0")]&&(n[o]+="\n")}}}const ir=["enableCommand","showAIAssistant","TrackChangesEditing","editor","plugins","afterInit","get"];var sr,xr;sr=ir,xr=475,function(t){for(;--t;)sr.push(sr.shift())}(++xr);const ar=function(t,e){return ir[t-=0]};class cr extends t.Plugin{[ar("0x6")](){const t=this[ar("0x4")],e=t[ar("0x5")].get(ar("0x3"));t.commands[ar("0x0")](ar("0x2"))&&e[ar("0x1")]("showAIAssistant")}}const lr=["registerAttributeLabel","FORMAT_ALIGN_TO_CENTER","FORMAT_JUSTIFY_TEXT","format","justify","commandName","locale","plugins","_enableDefaultAttributesIntegration","center","registerDescriptionCallback","formatBlock","*Format:* %0","alignment","left","type","FORMAT_ALIGN_TO_LEFT","TrackChangesEditing","right","FORMAT_ALIGNMENT","editor","commandParams","get","afterInit","_descriptionFactory","has"];var ur,dr;ur=lr,dr=141,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};class fr extends t.Plugin{[gr("0xc")](){const t=this[gr("0x9")],e=t[gr("0x15")];if(!t[gr("0x16")][gr("0xe")]("AlignmentEditing"))return;const n=t[gr("0x16")][gr("0xb")](gr("0x6"));n[gr("0x17")](gr("0x2"),[],[gr("0x2")]),n[gr("0xd")][gr("0xf")]("alignment",Qo(e,gr("0x8"))),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[gr("0x9")],e=t[gr("0x15")];t[gr("0x16")].get(gr("0x6"))._descriptionFactory[gr("0x19")]((t=>{if(gr("0x0")!=t[gr("0x4")])return;const{data:n}=t;if(n&&gr("0x2")==n[gr("0x14")]){const t=n[gr("0xa")][0].value;return{type:gr("0x12"),content:Qo(e,gr("0x1"),function(t){switch(t){case gr("0x3"):return Qo(e,gr("0x5"));case gr("0x7"):return Qo(e,"FORMAT_ALIGN_TO_RIGHT");case gr("0x18"):return Qo(e,gr("0x10"));case gr("0x13"):return Qo(e,gr("0x11"))}}(t))}}}))}}const mr=["plugins","subscript","FORMAT_ITALIC","commandParams","*Remove format:* %0","FORMAT_CODE","StrikethroughEditing","TrackChangesEditing","underline","FORMAT_STRIKETHROUGH","FORMAT_BOLD","SubscriptEditing","format","slice","formatInline","FORMAT_SUBSCRIPT","registerAttributeLabel","commandName","get","UnderlineEditing","editor","_descriptionFactory","_enableDefaultAttributesIntegration","FORMAT_UNDERLINE","ItalicEditing","afterInit","locale","_registerLegacyDescription"];var hr,pr;hr=mr,pr=248,function(t){for(;--t;)hr.push(hr.shift())}(++pr);const br=function(t,e){return mr[t-=0]},Er=["BoldEditing",br("0x0"),br("0x17"),"CodeEditing",br("0xa"),br("0xf"),"SuperscriptEditing"];class _r extends t.Plugin{[br("0x1")](){const t=this[br("0x18")],e=t.plugins[br("0x16")](br("0xb")),n=t[br("0x2")];for(const o of Er){if(!t[br("0x4")].has(o))continue;const r=o[br("0x11")](0,-7).toLowerCase(),i="FORMAT_"+r.toUpperCase();e[br("0x1a")](r,[r]),e._descriptionFactory[br("0x14")](r,Qo(n,i))}this._registerLegacyDescription()}[br("0x3")](){const t=this[br("0x18")],e=t[br("0x2")],n=t[br("0x4")].get(br("0xb"));function o(t,o){n[br("0x19")].registerDescriptionCallback((n=>{if(br("0x12")!=n.type)return;const{data:r}=n;return r&&r[br("0x15")]===t?r[br("0x7")][0].forceValue?{type:br("0x10"),content:Qo(e,"*Format:* %0",o)}:{type:br("0x10"),content:Qo(e,br("0x8"),o)}:void 0}))}o("bold",Qo(e,br("0xe"))),o("italic",Qo(e,br("0x6"))),o(br("0xc"),Qo(e,br("0x1b"))),o("code",Qo(e,br("0x9"))),o("strikethrough",Qo(e,br("0xd"))),o(br("0x5"),Qo(e,br("0x13"))),o("superscript",Qo(e,"FORMAT_SUPERSCRIPT"))}}const Tr=["editor","format","BlockQuoteEditing","filter","from","forceValue","name","schema","afterInit","plugins","document","ELEMENT_BLOCK_QUOTE","model","change","TrackChangesEditing","blockQuote","commandName","checkChild","parent","selection","commandParams","getSelectedBlocks","markBlockFormat","enableCommand","registerDescriptionCallback","value","has","commands"];var yr,Cr;yr=Tr,Cr=331,function(t){for(;--t;)yr.push(yr.shift())}(++Cr);const Ar=function(t,e){return Tr[t-=0]};class kr extends t.Plugin{[Ar("0xd")](){const t=this[Ar("0x5")],e=t.locale;if(!t[Ar("0xe")][Ar("0x3")](Ar("0x7")))return;const n=t[Ar("0xe")].get(Ar("0x13")),o=this[Ar("0x5")][Ar("0x4")].get(Ar("0x14"));n[Ar("0x0")]("blockQuote",((e,r={})=>{const i=this.editor[Ar("0x11")][Ar("0xf")][Ar("0x18")],s=r&&void 0!==r[Ar("0xa")]?r[Ar("0xa")]:!o[Ar("0x2")];let x=[];if(s){const e=Array[Ar("0x9")](i.getSelectedBlocks())[Ar("0x8")]((t=>Ir(t)||function(t,e){const n=e[Ar("0x16")](t[Ar("0x17")],"blockQuote"),o=e[Ar("0x16")](["$root",Ar("0x14")],t);return n&&o}(t,this[Ar("0x5")][Ar("0x11")][Ar("0xc")])));x=R(e,t.model)}else{const e=Array.from(i[Ar("0x1a")]()).filter((t=>Ir(t)));x=R(e,t[Ar("0x11")])}t.model[Ar("0x12")]((()=>{for(const t of x)n[Ar("0x1b")](t,{commandName:Ar("0x14"),commandParams:[{forceValue:s}]})}))})),n._descriptionFactory[Ar("0x1")]((t=>{const{data:n}=t;if(n&&Ar("0x14")==n[Ar("0x15")]){const t=Qo(e,Ar("0x10"));return n[Ar("0x19")][0][Ar("0xa")]?{type:Ar("0x6"),content:Qo(e,"*Set format:* %0",t)}:{type:Ar("0x6"),content:Qo(e,"*Remove format:* %0",t)}}}))}}function Ir(t){return Ar("0x14")==t.parent[Ar("0xb")]}const Sr=["ckbox","afterInit","get","plugins","commands","editor","enableCommand"];var Rr,vr;Rr=Sr,vr=278,function(t){for(;--t;)Rr.push(Rr.shift())}(++vr);const Nr=function(t,e){return Sr[t-=0]};class Lr extends t.Plugin{[Nr("0x3")](){const t=this[Nr("0x0")];t[Nr("0x6")][Nr("0x4")](Nr("0x2"))&&t[Nr("0x5")][Nr("0x4")]("TrackChangesEditing")[Nr("0x1")](Nr("0x2"))}}const Mr=["document","label","blockName","editor","value","parent","checkChild","_descriptionFactory","*Set format:* %0","outdentCodeBlock","selection","toLowerCase","languages","schema","get","*Remove format:* %0","enableCommand","CodeBlock","isLimit","language","name","TrackChangesEditing","ELEMENT_CODE_BLOCK","formatBlock","format","find","indentCodeBlock","commandParams","plugins","filter","registerDescriptionCallback","model","config","commands","rootElement","from","getSelectedBlocks","change","has","forceValue","codeBlock"];var wr,Or;wr=Mr,Or=314,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{afterInit(){const t=this[Fr("0x11")];if(!t[Fr("0x1")][Fr("0xb")](Fr("0x1f")))return;const e=t.plugins.get(Fr("0x23")),n=t.locale,o=t[Fr("0x5")][Fr("0x1c")](Fr("0xd"))[Fr("0x1a")],r=t[Fr("0x6")][Fr("0x1c")](Fr("0xd"));e.enableCommand(Fr("0x28")),e[Fr("0x1e")](Fr("0x17")),e.enableCommand("codeBlock",((n,i={})=>{const s=t[Fr("0x4")],x=t.model[Fr("0xe")][Fr("0x18")],a=i&&void 0!==i[Fr("0xc")]?i[Fr("0xc")]:!r[Fr("0x12")];let c;i[Fr("0x21")]||(i[Fr("0x21")]=o[0][Fr("0x21")]),c=a?Array[Fr("0x8")](x[Fr("0x9")]()).filter((t=>{return Br(t)||(e=t,n=s[Fr("0x1b")],!e.is(Fr("0x7"))&&!n[Fr("0x20")](e)&&n[Fr("0x14")](e[Fr("0x13")],Fr("0xd")));var e,n})):Array[Fr("0x8")](x[Fr("0x9")]())[Fr("0x2")]((t=>Br(t)));const l=R(c,s);s[Fr("0xa")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Fr("0xd"),commandParams:[{...i,forceValue:a}],formatGroupId:Fr("0x10")})}))})),e._descriptionFactory.registerElementLabel(Fr("0xd"),(t=>Qo(n,"ELEMENT_CODE_BLOCK",t))),e[Fr("0x15")][Fr("0x3")]((t=>{if(Fr("0x25")!=t.type)return;const e=n.t,{data:r}=t;if(!r||"codeBlock"!=r.commandName)return;const i=r.commandParams[0][Fr("0x21")],s=e(o[Fr("0x27")]((t=>t[Fr("0x21")]===i))[Fr("0xf")])[Fr("0x19")]();return r[Fr("0x0")][0][Fr("0xc")]?{type:Fr("0x26"),content:Qo(n,Fr("0x16"),Qo(n,Fr("0x24"),1)+" ("+s+")")}:{type:Fr("0x26"),content:Qo(n,Fr("0x1d"),Qo(n,Fr("0x24"),1))}}))}}function Br(t){return Fr("0xd")==t[Fr("0x22")]}const Pr=["enableCommand","afterInit","addCommentThread","editor","has","CommentsEditing","TrackChangesEditing","get","plugins"];var Ur,jr;Ur=Pr,jr=195,function(t){for(;--t;)Ur.push(Ur.shift())}(++jr);const Gr=function(t,e){return Pr[t-=0]};class Hr extends t.Plugin{[Gr("0x4")](){const t=this[Gr("0x6")];t[Gr("0x2")][Gr("0x7")](Gr("0x8"))&&t[Gr("0x2")][Gr("0x1")](Gr("0x0"))[Gr("0x3")](Gr("0x5"))}}var Vr=n(181);const zr=["includes","span","getAttribute","schema","ck-suggestion-marker--active","createUIElement","markerName","writer","ck-suggestion-marker-","previousPosition","name","activeMarkers","listIndent","isLimit","listItem","mapper","createRangeOn","start","getWalker","TrackChangesEditing","getCustomProperty","isAtEnd","parent","get","nextSibling","item","test","plugins","getItems","addHighlight","markerRange","push","element","hasAttribute","addClass"];var Wr,Kr;Wr=zr,Kr=129,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};function Xr(t,e,n){const o=[];for(const r of e[qr("0x4")]())r[qr("0x9")](t)&&o.push(n[qr("0x1b")](r));return o}function $r(t,e,{showActiveMarker:n=!0}={}){const o=t[qr("0x3")][qr("0x22")](qr("0x1e"));return(r,i,s)=>{if(!s.consumable[qr("0x2")](i[qr("0x6")],r[qr("0x15")]))return;const x=i[qr("0x6")][qr("0x1d")](),a=i[qr("0x6")][qr("0x1c")],c=t.model[qr("0xe")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qr("0x1")];d=d||c.isContent(e);const n=s[qr("0x1a")].toViewElement(e);if(n&&n[qr("0x1f")](qr("0x5")))return;"elementEnd"==t.type&&c.isBlock(e)&&!c[qr("0x18")](e)&&(e[qr("0x0")]||a[qr("0x20")]?l&&l[qr("0x21")]==e||(l=e,f(t[qr("0x14")]),g=!0):u=u||t[qr("0x14")])}function f(t){const r=s[qr("0x12")][qr("0x10")](qr("0xc"),{class:qr("0x13")+e}),x=s.mapper.toViewPosition(t);n&&o[qr("0x16")][qr("0xb")](i[qr("0x11")])&&s[qr("0x12")][qr("0xa")](qr("0xf"),r),s[qr("0x12")].insert(x,r),s[qr("0x1a")].bindElementToMarker(r,i[qr("0x11")])}d||g||!u||f(u)}}const Zr=["writer","fromRange","data","merge","commands","batch","setSelection","enableCommand","get","options","end","markerName","markerNameToElements","plugins","forward","requires","downcastDispatcher","bind","uiElement","unit","lock","$graveyard","delete","createSelection","model","isCollapsed","rootName","start","editing","high","mapper","deleteForward","createRange","addMarker:suggestion:deletion","detach","editor","unbindElementFromMarkerName"];var Yr,Jr;Yr=Zr,Jr=258,function(t){for(;--t;)Yr.push(Yr.shift())}(++Jr);const Qr=function(t,e){return Zr[t-=0]};class ti extends t.Plugin{static get[Qr("0x10")](){return[Vr.Delete]}init(){const t=this[Qr("0x24")],e=t[Qr("0xe")][Qr("0x9")]("TrackChangesEditing");e[Qr("0x8")](Qr("0x17"));const n=t[Qr("0x5")].get("deleteForward");e[Qr("0x8")](Qr("0x20"),((e,o={})=>{const r=t.model[Qr("0x18")](t[Qr("0x19")].document.selection);r[Qr("0x1a")]&&t[Qr("0x19")].modifySelection(r,{direction:Qr("0xf"),unit:o[Qr("0x14")]});const i=r.getFirstRange(),x=s.LiveRange[Qr("0x2")](i);let a;e(o),a=Qr("0x16")==x.root[Qr("0x1b")]?t.model[Qr("0x21")](i[Qr("0x1c")]):t.model[Qr("0x21")](x.start,x.end),x[Qr("0x23")](),t[Qr("0x19")].enqueueChange(n.buffer[Qr("0x6")],(t=>{n.buffer[Qr("0x15")](),t[Qr("0x7")](t.createRange(a[Qr("0xb")])),n.buffer.unlock()}))})),t[Qr("0x1d")][Qr("0x11")].on(Qr("0x22"),$r(t,Qr("0x4")),{priority:Qr("0x1e")}),t[Qr("0x3")][Qr("0x11")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[Qr("0xa")].showSuggestionHighlights&&$r(t,"merge",{showActiveMarker:!1})[Qr("0x12")](this)(e,n,o)}),{priority:"high"}),t.editing.downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[Qr("0x1f")][Qr("0xd")](e.markerName);if(o)for(const t of o)t.is(Qr("0x13"))&&(n[Qr("0x1f")][Qr("0x0")](t,e[Qr("0xc")]),n[Qr("0x1")].remove(t))}),{priority:"high"})}}const ei=["findIndex","get","indentList","setSelection","_descriptionFactory","numberedList","bulletedList","map","parent","*Format:* remove from %0","TrackChangesEditing","toUpperCase","formatInline","mergeListItemForward","detach","listItemId","model","ELEMENT_LIST_ITEM","listType","getSelectedBlocks","registerElementLabel","getFirstRange","type","list.multiBlock","locale","outdentList","nodeAfter","push","schema","afterInit","createRange","ELEMENT_BULLETED_LIST","previousSibling","forceValue","nextSibling","commandParams","markBlockFormat","value","formatBlock","from","getAttribute","mergeListItemBackward","*Merge:* %0","start","change","_LIST","refresh","end","document","deletion","*Change to:* %0","format","before","after","_suggestionFactory","markMultiRangeBlockFormat","next","splitListItemBefore","ELEMENT_","paragraph","accept","createPositionAt","commands","documentList","selection","editor","enableCommand","config","has","listIndent","execute","commandName","plugins"];var ni,oi;ni=ei,oi=460,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class ii extends t.Plugin{[ri("0x7")](){const t=this[ri("0x2b")];if(!t[ri("0x32")][ri("0x2e")]("DocumentListEditing"))return;const e=t[ri("0x2")],n=t[ri("0x32")].get(ri("0x3d")),o=t[ri("0x32")][ri("0x34")]("DocumentListUtils");function r(e){return()=>{const r=t[ri("0x28")].get(e);if(r[ri("0xf")]&&!t[ri("0x2d")][ri("0x34")](ri("0x1")))return void t[ri("0x30")](ri("0x25"),{});let i=Array[ri("0x11")](t[ri("0x43")].document[ri("0x2a")].getSelectedBlocks());if(a(e)){i=o.expandListBlocksToCompleteList(i);const t=[];for(const e of i)o.isFirstBlockOfListItem(e)&&t.push(e);i=t}t[ri("0x43")].change((()=>{n[ri("0x21")](i,{commandName:e,commandParams:[{forceValue:!r[ri("0xf")]}],formatGroupId:"listType"},[],ri("0x29"))}))}}function i(e){return()=>{const o=function(t){let e=Array[ri("0x11")](t);const n=e[ri("0x33")]((t=>!t.hasAttribute(ri("0x42"))));return n>-1&&(e=e.slice(0,n)),e}(t[ri("0x43")][ri("0x1a")][ri("0x2a")][ri("0x46")]()),r=o[o.length-1],i=t[ri("0x43")].schema.isObject(r)?ri("0x1f"):ri("0x19"),s=t[ri("0x43")][ri("0x8")](t[ri("0x43")].createPositionAt(o[0],ri("0x1e")),t.model[ri("0x27")](r,i));t[ri("0x43")][ri("0x16")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[ri("0xc")];for(;t&&t[ri("0x12")](ri("0x2f"))>n.getAttribute(ri("0x2f"));)e.add(t),t=t[ri("0xc")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[ri("0x43")][ri("0x1a")][ri("0x2a")].getSelectedBlocks()[ri("0x22")]()[ri("0xf")],r=t[ri("0x43")].createPositionAt(o,ri("0x1e")),i=t[ri("0x43")][ri("0x27")](o,0),s=t.model.createRange(r,i);t[ri("0x43")][ri("0x16")]((()=>{n[ri("0xe")](s,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[ri("0x28")][ri("0x34")](ri("0x39")).value,o=t[ri("0x28")].get("numberedList").value;return ri("0x38")===e?n:o}n[ri("0x2c")](ri("0x38"),r("numberedList")),n[ri("0x2c")](ri("0x39"),r(ri("0x39"))),n[ri("0x2c")]("indentList",i(ri("0x35"))),n[ri("0x2c")](ri("0x3"),i("outdentList")),n[ri("0x2c")]("splitListItemAfter",x("splitListItemAfter")),n[ri("0x2c")](ri("0x23"),x(ri("0x23"))),n._descriptionFactory[ri("0x47")]((function(e){const n=!t.model[ri("0x6")].isObject(e),o=e[ri("0xa")],r=e[ri("0xc")],i=e[ri("0x12")](ri("0x42")),s=!o||o.getAttribute(ri("0x42"))!==i,x=!r||r[ri("0x12")](ri("0x42"))!==i;return n&&Boolean(i)&&s&&x}),(t=>Qo(e,ri("0x44"),t))),n[ri("0x37")].registerDescriptionCallback((function(n){if(ri("0x10")!=n[ri("0x0")]&&ri("0x3f")!=n[ri("0x0")])return;const{data:o}=n;if(!o)return;let r,i,s,x;switch(o[ri("0x31")]){case ri("0x39"):s=o[ri("0xd")][0].forceValue,x=a(o[ri("0x31")]),r=s?"*Format:* insert into %0":ri("0x3c"),!x&&t[ri("0x2d")][ri("0x34")](ri("0x1"))||(r=ri("0x1c")),i={type:"format",content:Qo(e,r,Qo(e,ri("0x9")))};break;case"numberedList":s=o[ri("0xd")][0][ri("0xb")],x=a(o[ri("0x31")]),r=s?"*Format:* insert into %0":ri("0x3c"),!x&&t[ri("0x2d")].get(ri("0x1"))||(r=ri("0x1c")),i={type:ri("0x1d"),content:Qo(e,r,Qo(e,"ELEMENT_NUMBERED_LIST"))};break;case"indentList":r="*Indent:* %0",i={type:"format",content:Qo(e,r,Qo(e,"ELEMENT_LIST_ITEM"))};break;case ri("0x3"):r=function(t){const e=t[ri("0x48")]();let n=e[ri("0x15")].nodeAfter;for(;n&&e.containsItem(n);){if(n[ri("0x12")](ri("0x2f"))>0)return!1;n=n[ri("0xc")]}return!0}(n)?Qo(e,ri("0x3c"),Qo(e,function(t){const e=t[ri("0x48")]().start[ri("0x4")];return ri("0x24")+e[ri("0x12")](ri("0x45"))[ri("0x3e")]()+ri("0x17")}(n))):Qo(e,"*Outdent:* %0",Qo(e,"ELEMENT_LIST_ITEM")),i={type:ri("0x1d"),content:r};break;case ri("0x13"):case ri("0x40"):!1===o.multipleBlocks&&(r=ri("0x14"),i={type:ri("0x1b"),content:Qo(e,r,Qo(e,ri("0x44")))})}return i})),n[ri("0x20")].registerCustomCallback(ri("0x10"),ri("0x29"),ri("0x26"),(function(e,n){const o=[];for(let n of e)n[ri("0x15")].nodeAfter===n[ri("0x19")][ri("0x3b")]&&(n=t.model[ri("0x8")](t[ri("0x43")][ri("0x27")](n[ri("0x15")][ri("0x4")],0))),o[ri("0x5")](n);t[ri("0x43")][ri("0x16")]((e=>{const r=t[ri("0x43")][ri("0x1a")].selection,i=Array[ri("0x11")](r.getRanges())[ri("0x3a")]((t=>s.LiveRange.fromRange(t)));e[ri("0x36")](o),t.commands[ri("0x34")](n[ri("0x31")])[ri("0x18")](),n.commandParams[ri("0x5")]({forceDefaultExecution:!0}),t[ri("0x30")](n.commandName,...n[ri("0xd")]),e[ri("0x36")](i);for(const t of i)t[ri("0x41")]()}))}))}}const si=["markMultiRangeBlockFormat","commandParams","TrackChangesEditing","change","selection","push","handleListStartCommand","getListTypeFromListStyleType","listStyle","reversed","enableCommand","config","*Format:* set order to regular","plugins","_getTranslationKeyForListStyle","model","afterInit","toUpperCase","list.properties","_LIST_","editor","handleDescriptions","handleListReversedCommand","*Change to:* %0","styles","get","listReversed","filter","isFirstBlockOfListItem","DocumentListPropertiesEditing","listStart","length","getSelectedBlocks","from","_getSuggestionBlocks","startIndex","bind","ELEMENT_","format","formatBlock","commandName","type","_getSuggestionBlocksForListStyle","formatInline","listType","getAttribute","isListItemBlock","has","document","handleListStyleCommand","DocumentListUtils","registerDescriptionCallback","DocumentListPropertiesUtils","expandListBlocksToCompleteList","numbered"];var xi,ai;xi=si,ai=212,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0x18")](){if(!this[ci("0x1c")].plugins[ci("0x0")](ci("0x25")))return;const t=this.editor[ci("0x13")][ci("0x21")](ci("0x1a")),e=this[ci("0x1c")][ci("0x15")][ci("0x21")](ci("0xa"));t[ci("0x20")]&&e[ci("0x12")](ci("0x10"),this[ci("0x2")][ci("0x2c")](this)),t[ci("0x11")]&&e[ci("0x12")](ci("0x22"),this[ci("0x1e")][ci("0x2c")](this)),t.startIndex&&e[ci("0x12")](ci("0x26"),this[ci("0xe")][ci("0x2c")](this)),e._descriptionFactory[ci("0x4")](this[ci("0x1d")].bind(this))}[ci("0x2")](t,e={}){const n=this.editor[ci("0x15")][ci("0x21")](ci("0xa")),o=this[ci("0x32")]();this[ci("0x1c")].model[ci("0xb")]((()=>{n[ci("0x8")](o,{commandName:ci("0x10"),commandParams:[{type:e.type}],formatGroupId:ci("0x10")})}))}[ci("0x1e")](t,e={}){const n=this.editor.plugins[ci("0x21")]("TrackChangesEditing"),o=this.editor.plugins[ci("0x21")](ci("0x3")),r=this[ci("0x2a")]((t=>o[ci("0x36")](t)&&ci("0x7")===t.getAttribute(ci("0x34"))));null!==r&&this[ci("0x1c")].model.change((()=>{n[ci("0x8")](r,{commandName:ci("0x22"),commandParams:[{reversed:e[ci("0x11")]}],formatGroupId:ci("0x22")})}))}[ci("0xe")](t,e={}){const n=this[ci("0x1c")].plugins[ci("0x21")](ci("0xa")),o=this[ci("0x1c")][ci("0x15")][ci("0x21")](ci("0x3")),r=this[ci("0x2a")]((t=>o[ci("0x36")](t)&&ci("0x7")===t[ci("0x35")](ci("0x34"))));null!==r&&this[ci("0x1c")].model[ci("0xb")]((()=>{n[ci("0x8")](r,{commandName:ci("0x26"),commandParams:[{startIndex:e[ci("0x2b")]}],formatGroupId:ci("0x26")})}))}[ci("0x1d")](t){if(ci("0x2f")!=t.type&&ci("0x33")!=t[ci("0x31")])return;const e=this[ci("0x1c")].locale,{data:n}=t;if(!n)return;let o,r;switch(n[ci("0x30")]){case"listStyle":o=ci("0x1f"),r={type:ci("0x2e"),content:Qo(e,o,Qo(e,this[ci("0x16")](n[ci("0x9")][0][ci("0x31")])))};break;case ci("0x22"):o=n[ci("0x9")][0][ci("0x11")]?"*Format:* set order to reversed":ci("0x14"),r={type:ci("0x2e"),content:Qo(e,o)};break;case"listStart":o="*Format:* set start index to %0",r={type:"format",content:Qo(e,o,n.commandParams[0][ci("0x2b")])}}return r}[ci("0x32")](){const t=this.editor[ci("0x15")].get(ci("0x3"));let e=Array[ci("0x29")](this[ci("0x1c")][ci("0x17")][ci("0x1")][ci("0xc")].getSelectedBlocks());return e[ci("0xd")](...t[ci("0x6")](e)),e=[...new Set(e)],e}[ci("0x2a")](t){const e=this[ci("0x1c")][ci("0x15")][ci("0x21")](ci("0x3"));let n=Array[ci("0x29")](this[ci("0x1c")][ci("0x17")][ci("0x1")][ci("0xc")][ci("0x28")]())[ci("0x23")](t);if(!n[ci("0x27")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[ci("0x24")](t)&&o[ci("0xd")](t);return o}[ci("0x16")](t){return ci("0x2d")+this[ci("0x1c")][ci("0x15")].get(ci("0x5"))[ci("0xf")](t)[ci("0x19")]()+ci("0x1b")+t[ci("0x19")]().replace(/-/g,"_")}}var ui=n(331);const di=["commands","afterExecute","end","change","markInsertion","createRange","get","high","downcastDispatcher","enter","detach","data","showSuggestionHighlights","editing","remove","addMarker:suggestion:insertion","createPositionAt","init","unbindElementFromMarkerName","TrackChangesEditing","split","setSelection","requires","fire","markerName","parent","model","mapper","removeMarker:suggestion:insertion","bind","writer"];var gi,fi;gi=di,fi=489,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const mi=function(t,e){return di[t-=0]};class hi extends t.Plugin{static get[mi("0x1d")](){return[ui.Enter]}[mi("0x18")](){const t=this.editor,e=t.plugins.get(mi("0x1a")),n=t[mi("0x7")][mi("0xd")](mi("0x10"));e.enableCommand("enter",(()=>{t.model[mi("0xa")]((o=>{const r=t[mi("0x2")].document.selection,i=r.getFirstPosition(),x=s.LiveRange.fromRange(r.getFirstRange());if(n.enterBlock(o)){const n=t[mi("0x2")][mi("0x17")](i[mi("0x1")].nextSibling,0),r=o[mi("0xc")](i,n);e[mi("0xb")](r)}else o[mi("0x1c")](o[mi("0xc")](x[mi("0x9")]));x[mi("0x11")](),n[mi("0x1e")](mi("0x8"),{writer:o})}))})),t[mi("0x14")][mi("0xf")].on(mi("0x16"),$r(t,mi("0x1b")),{priority:mi("0xe")}),t[mi("0x14")][mi("0xf")].on(mi("0x4"),((t,e,n)=>{const o=n[mi("0x3")].markerNameToElements(e.markerName);if(o)for(const t of o)t.hasClass("ck-suggestion-marker-split")&&(n[mi("0x3")][mi("0x19")](t,e[mi("0x0")]),n[mi("0x6")][mi("0x15")](t))}),{priority:mi("0xe")}),t[mi("0x12")][mi("0xf")].on(mi("0x16"),((e,n,o)=>{o.options[mi("0x13")]&&$r(t,mi("0x1b"),{showActiveMarker:!1})[mi("0x5")](this)(e,n,o)}),{priority:mi("0xe")})}}const pi=["FindAndReplaceEditing","has","get","find","enableCommand","replaceAll","item","start","model","bind","_isInDeletionRange","findNext","getIntersection","end","afterInit","markers","suggestion:deletion","editor","plugins","createRange","findByTextCallback","getRange","string"];var bi,Ei;bi=pi,Ei=349,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);const _i=function(t,e){return pi[t-=0]};class Ti extends t.Plugin{[_i("0xa")](){if(!this[_i("0xd")].plugins[_i("0x14")](_i("0x13")))return;const t=this[_i("0xd")][_i("0xe")].get("TrackChangesEditing");t[_i("0x0")](_i("0x16"),this.handleFindCommand[_i("0x5")](this)),t[_i("0x0")](_i("0x7")),t[_i("0x0")]("findPrevious"),t.enableCommand("replace"),t.enableCommand(_i("0x1"))}handleFindCommand(t,e,n={}){const o=this[_i("0xd")][_i("0xe")][_i("0x15")]("FindAndReplaceUtils");return t((t=>(_i("0x12")==typeof e?o[_i("0x10")](e,n):e)(t).filter((e=>!1===this[_i("0x6")](e,t[_i("0x2")])))),n)}[_i("0x6")](t,e){const n=this[_i("0xd")][_i("0x4")][_i("0xf")](this[_i("0xd")][_i("0x4")].createPositionAt(e,t[_i("0x3")]),this[_i("0xd")][_i("0x4")].createPositionAt(e,t[_i("0x9")]));for(const t of this[_i("0xd")].model[_i("0xb")].getMarkersGroup(_i("0xc")))if(null!==n[_i("0x8")](t[_i("0x11")]()))return!0;return!1}}const yi=["format","*Set font size:* %0","FontBackgroundColorEditing","registerAttributeLabel","label","type","config","normalizeSizeOptions","_enableDefaultAttributesIntegration","toLowerCase","fontBackgroundColor.colors","find","value","FontSizeEditing","FontSize","fontBackgroundColor","*Reset font background color*","*Set font color:* %0","get","FontColorEditing","*Set font family:* %0","FORMAT_FONT_SIZE","FORMAT_FONT_FAMILY","title","*Reset font size*","plugins","locale","has","commandParams","TrackChangesEditing","fontSize","*Set font background color:* %0","fontColor","model","registerDescriptionCallback","FontFamilyEditing","fontSize.options","fontFamily","_registerLegacyDescription","editor","_descriptionFactory","*Reset font family*","commandName","formatInline","FORMAT_FONT_BACKGROUND","afterInit"];var Ci,Ai;Ci=yi,Ai=329,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Ii=[{pluginName:ki("0x6"),commandName:ki("0x17")},{pluginName:ki("0x1c"),commandName:"fontFamily"},{pluginName:ki("0xc"),commandName:ki("0x19")},{pluginName:ki("0x29"),commandName:"fontBackgroundColor"}];class Si extends t.Plugin{[ki("0x26")](){const t=this.editor[ki("0x13")],e=this[ki("0x20")][ki("0x12")][ki("0xb")](ki("0x16"));for(const{pluginName:t,commandName:n}of Ii)this[ki("0x20")].plugins[ki("0x14")](t)&&e[ki("0x1")](n,[n]);t.t,e[ki("0x21")][ki("0x2a")](ki("0x17"),Qo(t,ki("0xe"))),e._descriptionFactory[ki("0x2a")](ki("0x1e"),Qo(t,ki("0xf"))),e[ki("0x21")][ki("0x2a")](ki("0x19"),Qo(t,"FORMAT_FONT_COLOR")),e[ki("0x21")][ki("0x2a")](ki("0x8"),Qo(t,ki("0x25"))),this[ki("0x1f")]()}_registerLegacyDescription(){const t=this.editor,e=t[ki("0x13")];t[ki("0x12")][ki("0xb")](ki("0x16"))._descriptionFactory[ki("0x1b")]((t=>{const n=e.t;if(ki("0x24")!=t[ki("0x2c")])return;const{data:o}=t;if(null!=o){if(ki("0x17")==o[ki("0x23")]){const t=o[ki("0x15")][0].value;if(t){const o=n(this.editor[ki("0x12")][ki("0xb")](ki("0x7"))[ki("0x0")](this.editor[ki("0x2d")][ki("0xb")](ki("0x1d")))[ki("0x4")]((e=>e[ki("0x1a")]==t))[ki("0x10")]).toLowerCase();return{type:ki("0x27"),content:Qo(e,ki("0x28"),o)}}return{type:ki("0x27"),content:Qo(e,ki("0x11"))}}if(ki("0x1e")==o[ki("0x23")]){const t=o.commandParams[0][ki("0x5")];return t?{type:ki("0x27"),content:Qo(e,ki("0xd"),t)}:{type:ki("0x27"),content:Qo(e,ki("0x22"))}}if(ki("0x19")==o.commandName){const t=o[ki("0x15")][0][ki("0x5")];if(t){const o=(0,r.normalizeColorOptions)(this[ki("0x20")][ki("0x2d")].get("fontColor.colors"))[ki("0x4")]((e=>e[ki("0x1a")]==t));let i=t,s="";return o&&(i=o.label,s=n(i)[ki("0x2")]()),{type:ki("0x27"),content:Qo(e,ki("0xa"),s).trim(),color:{value:t,title:s||i}}}return{type:ki("0x27"),content:Qo(e,"*Reset font color*")}}if("fontBackgroundColor"==o[ki("0x23")]){const t=o.commandParams[0][ki("0x5")];if(t){const o=(0,r.normalizeColorOptions)(this.editor[ki("0x2d")][ki("0xb")](ki("0x3")))[ki("0x4")]((e=>e[ki("0x1a")]==t));let i=t,s="";return o&&(i=o[ki("0x2b")],s=n(i)[ki("0x2")]()),{type:ki("0x27"),content:Qo(e,ki("0x18"),s).trim(),color:{value:t,title:s||i}}}return{type:ki("0x27"),content:Qo(e,ki("0x9"))}}}}))}}const Ri=["afterInit","normalizeSizeOptions","formatBlock","plugins","boolean","fontSize.options","*Remove all formatting*","_registerLegacyDescription","toLowerCase","format","commandName","push","charAt","toUpperCase","commands","find","locale","join","get","editor","config","title","formatInline","type","TrackChangesEditing","registerDescriptionCallback","split","slice","label","fontBackgroundColor","copyFormat","FontSize"];var vi,Ni;vi=Ri,Ni=481,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Ri[t-=0]};class Mi extends t.Plugin{[Li("0x1f")](){const t=this[Li("0x12")],e=t.plugins[Li("0x11")]("TrackChangesEditing"),n=t[Li("0xd")][Li("0x11")]("copyFormat"),o=t[Li("0xd")].get("pasteFormat");n&&o&&(e._enableDefaultAttributesIntegration("pasteFormat"),e.enableCommand(Li("0x1d")),this[Li("0x6")]())}[Li("0x6")](){const t=this[Li("0x12")],e=t[Li("0xf")];t[Li("0x2")][Li("0x11")](Li("0x17"))._descriptionFactory[Li("0x18")]((n=>{if(Li("0x1")!=n.type&&Li("0x15")!=n[Li("0x16")])return;const{data:o}=n;if(o&&"pasteFormat"===o[Li("0x9")]){const n=[],r=o.commandParams[0];for(const[e,o]of Object.entries(r))n[Li("0xa")](wi(t,e,o));return n.length?{type:Li("0x8"),content:Qo(e,"*Set format to:* %0",n[Li("0x10")](", "))}:{type:Li("0x8"),content:Qo(e,Li("0x5"))}}}))}}function wi(t,e,n){const o=t[Li("0xf")].t,i=e[Li("0x19")](/(?=[A-Z])/)[Li("0x10")](" "),s=o(i[Li("0xb")](0)[Li("0xc")]()+i[Li("0x1a")](1))[Li("0x7")]();if(Li("0x3")==typeof n)return s;if("fontColor"===e||Li("0x1c")===e){const e=(0,r.normalizeColorOptions)(t[Li("0x13")][Li("0x11")]("fontColor.colors"))[Li("0xe")]((t=>t.model==n));return s+" ("+(e?o(e[Li("0x1b")])[Li("0x7")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Li("0x2")][Li("0x11")](Li("0x1e"))[Li("0x0")](t[Li("0x13")][Li("0x11")](Li("0x4"))).find((t=>t.model==n));return s+" ("+(e?o(e[Li("0x14")]).toLowerCase():n)+")"}return s+" ("+n+")"}const Oi=["_getHeadingLevel","formatBlock","HeadingEditing","editor","get","locale","value","commandParams","match","name","model","_headingOptions","paragraph","ELEMENT_HEADING","*Change to:* %0","has","_registerLegacyDescription","plugins","registerElementLabel","find","heading","view","registerDescriptionCallback","config","ELEMENT_HEADING_CUSTOM","title","_descriptionFactory","_enableDefaultAttributesIntegration","afterInit","commandName","format","TrackChangesEditing"];var Fi,Di;Fi=Oi,Di=187,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Bi=function(t,e){return Oi[t-=0]};class Pi extends t.Plugin{[Bi("0x1")](){const t=this[Bi("0x8")];if(!t[Bi("0x16")][Bi("0x14")](Bi("0x7")))return;this[Bi("0x10")]=t[Bi("0x1c")].get("heading.options");const e=t.locale,n=t[Bi("0x16")][Bi("0x9")](Bi("0x4"));n[Bi("0x0")]("heading");for(const t of this[Bi("0x10")])Bi("0x11")!=t.model&&n[Bi("0x1f")][Bi("0x17")](t[Bi("0xf")],(n=>{const o=this[Bi("0x5")](t[Bi("0xf")]);return null!==o?(s=n,x=o,Qo(e,Bi("0x12"),[s,x])):(r=n,i=t[Bi("0x1e")],Qo(e,"ELEMENT_HEADING_CUSTOM",[r,i]));var r,i,s,x}));this[Bi("0x15")]()}[Bi("0x15")](){const t=this[Bi("0x8")],e=t[Bi("0xa")];t[Bi("0x16")][Bi("0x9")](Bi("0x4"))._descriptionFactory[Bi("0x1b")]((t=>{if(Bi("0x6")!=t.type)return;const{data:n}=t;if(n&&Bi("0x19")==n[Bi("0x2")]){const t=n[Bi("0xc")][0][Bi("0xb")],s=this[Bi("0x5")](t);if(null!==s)return{type:Bi("0x3"),content:Qo(e,"*Change to:* %0",(1,i=s,Qo(e,Bi("0x12"),[1,i])))};const x=this._headingOptions[Bi("0x18")]((e=>e[Bi("0xf")]===t))[Bi("0x1e")];return{type:"format",content:Qo(e,Bi("0x13"),(o=1,r=x,Qo(e,Bi("0x1d"),[o,r])))}}var o,r,i}))}[Bi("0x5")](t){var e,n;const o=t[Bi("0xd")](/^heading(\d+)/);if(o)return o[1];const r=null===(e=this[Bi("0x10")])||void 0===e?void 0:e[Bi("0x18")]((e=>e.model==t));if(r&&r[Bi("0x1a")]){const t=r[Bi("0x1a")],e=(null!==(n=t[Bi("0xe")])&&void 0!==n?n:t)[Bi("0xd")](/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["_enableDefaultAttributesIntegration","commandName","highlight","format","TrackChangesEditing","_registerLegacyDescription","color","registerAttributeLabel","locale","editor","toLowerCase","commandParams","_descriptionFactory","title","value","FORMAT_HIGHLIGHT","type","HighlightEditing","config","get","formatInline","*Set highlight:* %0","find","highlight.options","has","plugins","registerDescriptionCallback"];var ji,Gi;ji=Ui,Gi=389,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Hi=function(t,e){return Ui[t-=0]};class Vi extends t.Plugin{afterInit(){const t=this[Hi("0x19")];if(!t[Hi("0xe")][Hi("0xd")](Hi("0x6")))return;const e=t[Hi("0xe")][Hi("0x8")](Hi("0x14")),n=t[Hi("0x18")];e[Hi("0x10")](Hi("0x12"),[Hi("0x12")]),e._descriptionFactory[Hi("0x17")]("highlight",Qo(n,Hi("0x4"))),this._registerLegacyDescription()}[Hi("0x15")](){const t=this[Hi("0x19")],e=t.locale;t.plugins[Hi("0x8")]("TrackChangesEditing")[Hi("0x1")][Hi("0xf")]((n=>{if(Hi("0x9")!=n[Hi("0x5")])return;const{data:o}=n;if(o&&Hi("0x12")==o[Hi("0x11")]){const n=e.t,r=o[Hi("0x0")][0][Hi("0x3")];if(r){const o=t[Hi("0x7")][Hi("0x8")](Hi("0xc"))[Hi("0xb")]((t=>t.model==r)),i=n(o.title)[Hi("0x1a")]();return{type:"format",content:Qo(e,Hi("0xa"),i),color:{value:o[Hi("0x16")],title:o[Hi("0x2")]}}}return{type:Hi("0x13"),content:Qo(e,"*Remove highlight*",Qo(e,Hi("0x4")))}}}))}}const zi=["showSuggestionHighlights","conversion","enableCommand","has","_descriptionFactory","createEmptyElement","registerElementLabel","createPositionAt","elementToStructure","ELEMENT_HORIZONTAL_LINE","horizontalLine","editor","div","createContainerElement","TrackChangesEditing","ck-horizontal-line","plugins","get"];var Wi,Ki;Wi=zi,Ki=207,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class Xi extends t.Plugin{afterInit(){const t=this[qi("0x2")];if(!t.plugins[qi("0xc")]("HorizontalLineEditing"))return;t[qi("0x7")].get(qi("0x5"))[qi("0xb")](qi("0x1"));const e=t[qi("0x7")][qi("0x8")](qi("0x5")),n=t.locale;e[qi("0xd")][qi("0xf")]("horizontalLine",(t=>Qo(n,qi("0x0"),t))),t[qi("0xa")].for("dataDowncast")[qi("0x11")]({model:qi("0x1"),view:(t,{writer:e,options:n})=>{if(!n[qi("0x9")])return null;const o=e[qi("0x4")](qi("0x3")),r=e[qi("0xe")]("hr");return e.addClass(qi("0x6"),o),e.insert(e[qi("0x10")](o,0),r),o},converterPriority:"high"})}}const $i=["start","plugins","ELEMENT_HTML_EMBED","nodeAfter","get","rawHtml","registerDescriptionCallback","HtmlEmbed","locale","element","registerElementLabel","attribute","*Change %0 content*","value","_descriptionFactory","type","key","editor","htmlEmbed","format","getFirstRange","commandName","_enableDefaultAttributesIntegration","TrackChangesEditing"];var Zi,Yi;Zi=$i,Yi=192,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return $i[t-=0]};class Qi extends t.Plugin{afterInit(){const t=this[Ji("0x11")];if(!t[Ji("0x1")].has(Ji("0x7")))return;const e=t.plugins.get(Ji("0x17")),n=t[Ji("0x8")];e[Ji("0xe")][Ji("0xa")]("rawHtml",(t=>Qo(n,Ji("0x2"),t))),e[Ji("0x16")](Ji("0x12"),[],[Ji("0xd")]),e[Ji("0xe")][Ji("0x6")]((t=>{if(Ji("0xb")!=t[Ji("0xf")])return;const{data:e}=t;if(e&&"value"==e[Ji("0x10")]&&t[Ji("0x14")]()[Ji("0x0")][Ji("0x3")].is(Ji("0x9"),Ji("0x5"))){const t=Qo(n,Ji("0x2"));return{type:Ji("0x13"),content:Qo(n,Ji("0xc"),t)}}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this.editor,e=t[Ji("0x8")];t.plugins[Ji("0x4")](Ji("0x17"))._descriptionFactory[Ji("0x6")]((t=>{if("formatBlock"!=t[Ji("0xf")])return;const{data:n}=t;if(n&&"htmlEmbed"==n[Ji("0x15")]){const t=Qo(e,"ELEMENT_HTML_EMBED");return{type:Ji("0x13"),content:Qo(e,"*Change %0 content*",t)}}}))}}const ts=["key","ImageUtils","_findSuggestions","registerAttributeLabel","afterInit","*Set image width:* %0","ImageEditing","TrackChangesEditing","findIndex","type","_enableDefaultAttributesIntegration","getCaptionFromImageModelElement","nodeBefore","imageInline","toNext","model","has","removeObject","imageStylePreApply","ImageCaptionUtils","addObject","find","resizeImage","detach","isCollapsed","Block image to inline image","enableCommand","registerDescriptionCallback","markDeletion","insertion","imageCaption","isBefore","ELEMENT_INLINE_IMAGE","ImageCaptionEditing","format","registerElementLabel","length","locale","editor","createRangeOn","getNearestSelectionRange","newValue","plugins","registerCustomCallback","discard","filter","ELEMENT_CAPTION","subType","schema","insertImage","deletion","*Set image text alternative:* %0","_descriptionFactory","formatInline","getContainedElement","attribute","convertBlockImageToInline","getSuggestionCallback","isEqual","accept","getFirstRange","imageTypeInline","commandParams","*Reset image width*","toggleImageCaption","_suggestionFactory","selection","get","isIntersecting","document","createRange","markBlockFormat","change","convertInlineImageToBlock","element","markInsertion","backward","ImageTextAlternativeEditing","join","ImageInlineEditing","uploadImage","start","isBlockImage","imageBlock","end","previous","*Remove image text alternative*","alt","fromPosition","imageTextAlternative","commandName","formatBlock","chain","caption","getClosestSelectedImageElement","ImageBlockEditing"];var es,ns;es=ts,ns=405,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{[os("0x4f")](){const t=this.editor;if(!t[os("0x15")].has(os("0x51")))return;const e=t[os("0x15")][os("0x2e")]("TrackChangesEditing"),n=t.plugins.get(os("0x4c")),o=t[os("0x10")];e.enableCommand(os("0x1c")),e[os("0x1f")][os("0xe")](os("0x3e"),(t=>Qo(o,"ELEMENT_IMAGE",t))),e[os("0x1f")][os("0xe")](os("0x58"),(t=>Qo(o,os("0xb"),t))),e[os("0x1f")][os("0xe")](os("0x48"),(()=>Qo(o,os("0x19")))),t[os("0x15")][os("0x5b")]("ImageUploadEditing")&&e[os("0x5")](os("0x3b")),t.plugins[os("0x5b")](os("0x4a"))&&t[os("0x15")][os("0x5b")](os("0x3a"))&&(e[os("0x5")](os("0x28"),((o,r)=>{const i=n[os("0x49")](t[os("0x5a")].document.selection);t.model[os("0x33")]((()=>{e.markBlockFormat(i,{commandName:os("0x28"),commandParams:[r]},[],os("0x23"))}))})),e[os("0x5")]("imageTypeBlock",((o,r)=>{t.model[os("0x33")]((i=>{let x=n[os("0x49")](t.model.document.selection),a=i[os("0x12")](x);const c=s.LivePosition[os("0x43")](a[os("0x3c")],"toPrevious"),l=s.LivePosition[os("0x43")](a[os("0x3f")],os("0x59"));e.forceDefaultExecution((()=>o(r))),x=n[os("0x49")](t.model[os("0x30")][os("0x2d")]),a=i[os("0x12")](x);const u=i[os("0x31")](c,l);c[os("0x2")](),l[os("0x2")](),e[os("0x32")](x,{commandName:os("0x28"),commandParams:[r]},[],"convertInlineImageToBlock"),u[os("0x3c")][os("0xa")](a[os("0x3c")])&&e.markInsertion(i[os("0x31")](u.start,a[os("0x3c")]),os("0x34")),a[os("0x3f")][os("0xa")](u[os("0x3f")])&&e[os("0x36")](i.createRange(a[os("0x3f")],u.end),"convertInlineImageToBlock")}))})),e._suggestionFactory.registerCustomCallback(os("0x46"),os("0x34"),os("0x39"),(()=>!1)),e[os("0x2c")][os("0x16")](os("0x46"),"convertInlineImageToBlock",os("0x26"),(()=>!1)),e._suggestionFactory[os("0x16")](os("0x46"),os("0x34"),os("0x17"),e[os("0x2c")].getSuggestionCallback("formatBlock","",os("0x26"))),e._suggestionFactory[os("0x16")]("insertion",os("0x34"),os("0x39"),(()=>!1)),e[os("0x2c")].registerCustomCallback(os("0x8"),"convertInlineImageToBlock",os("0x17"),(([n])=>{const o=e[os("0x2c")][os("0x24")](os("0x8"),"",os("0x17"));let r=n[os("0x3c")],i=n[os("0x3f")];const s=t.model[os("0x1b")][os("0x13")](r,os("0x37")),x=t[os("0x5a")].schema[os("0x13")](i,"forward");s[os("0x3")]&&(r=s[os("0x3c")]),x[os("0x3")]&&(i=x[os("0x3f")]),o([t[os("0x5a")].createRange(r,i)])})),e._suggestionFactory[os("0x16")]("formatBlock",os("0x34"),"chain",x),e[os("0x2c")][os("0x16")](os("0x8"),os("0x34"),os("0x47"),x)),t[os("0x15")].has(os("0xc"))&&(e[os("0x5")](os("0x2b"),((o,r)=>{const i=t[os("0x15")][os("0x2e")](os("0x5e"));let s=n[os("0x49")](t[os("0x5a")][os("0x30")][os("0x2d")]),x=i[os("0x56")](s);t[os("0x5a")][os("0x33")]((()=>{if(x)return void e[os("0x7")](t[os("0x5a")][os("0x12")](x));const a=n[os("0x3d")](s);o(r),s=n.getClosestSelectedImageElement(t[os("0x5a")][os("0x30")][os("0x2d")]),x=i[os("0x56")](s),e[os("0x36")](t.model[os("0x12")](x),a?null:os("0x9"))}))})),e[os("0x2c")][os("0x16")](os("0x8"),os("0x9"),"chain",x));const r=[{type:os("0x46"),subType:os("0x5d")},{type:os("0x8"),subType:"imageCaption"},{type:os("0x46"),subType:os("0x34")},{type:"insertion",subType:os("0x34")}];function i(t,o){const i=r[os("0x53")]((({type:e,subType:n})=>t[os("0x54")]==e&&t[os("0x1a")]==n)),s=r.findIndex((({type:t,subType:e})=>o[os("0x54")]==t&&o[os("0x1a")]==e));if(i<0||s<0)return!1;const x=t[os("0x27")](),a=o.getFirstRange();if((0==i||1==i)&&2==s&&x[os("0x2f")](a))return!0;if(2==i&&3==s){const t=e[os("0x4d")](x,os("0x8"))[os("0x18")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[os("0x1a")]));if(t.length>1&&a[os("0x3f")].isEqual(x.start))return!0;if(1==t[os("0xf")]&&(x[os("0x3c")][os("0x25")](a[os("0x3f")])||x[os("0x3f")].isEqual(a[os("0x3c")])))return!0}if(3==i&&3==s&&x[os("0x3c")].isBefore(a[os("0x3c")])){const t=x[os("0x3f")].nodeAfter,e=a[os("0x3c")][os("0x57")];return n[os("0x3d")](t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[os("0x15")][os("0x5b")]("ImageResize")&&(e[os("0x55")](os("0x1"),[],["resizedWidth"]),e[os("0x1f")][os("0x4e")]("resizedWidth",Qo(o,"FORMAT_IMAGE_SIZE"))),t[os("0x15")].has(os("0x38"))&&e._enableDefaultAttributesIntegration(os("0x44"),[],["alt"]),e._descriptionFactory[os("0x6")]((t=>{if(r[os("0x0")]((({type:e,subType:n})=>t[os("0x54")]==e&&t.subType==n)))return t[os("0x40")]?{}:void 0})),e._descriptionFactory[os("0x6")]((t=>{if("insertion"==t[os("0x54")]||os("0x1d")==t[os("0x54")]){const e=t[os("0x21")]();if(e&&e.is(os("0x35"),os("0x48")))return{type:os("0x8")==t[os("0x54")]?os("0x5f"):os("0x5c"),element:e,quantity:1}}})),e[os("0x1f")][os("0x6")]((t=>os("0x46")==t.type&&os("0x34")==t[os("0x1a")]?{type:os("0xd"),content:"Inline image to block image"}:os("0x46")==t[os("0x54")]&&"convertBlockImageToInline"==t[os("0x1a")]?{type:os("0xd"),content:os("0x4")}:void 0)),e[os("0x1f")][os("0x6")]((t=>{if(os("0x22")!=t[os("0x54")])return;const{data:e}=t;if(!e||os("0x42")!=e[os("0x4b")])return;const n=e[os("0x14")];return n?{type:os("0xd"),content:Qo(o,"*Set image text alternative:* %0",'"'+n+'"')}:{type:os("0xd"),content:Qo(o,os("0x41"))}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[os("0x11")],e=t[os("0x10")];t[os("0x15")][os("0x2e")](os("0x52"))[os("0x1f")].registerDescriptionCallback((t=>{if("formatBlock"!=t[os("0x54")]&&os("0x20")!=t.type)return;const{data:n}=t;if(n){if(os("0x44")==n[os("0x45")]){const t=n[os("0x29")][0][os("0x14")];return t?{type:os("0xd"),content:Qo(e,os("0x1e"),'"'+t+'"')}:{type:os("0xd"),content:Qo(e,os("0x41"))}}if(os("0x1")==n[os("0x45")]){const t=n[os("0x29")][0].width;return t?{type:os("0xd"),content:Qo(e,os("0x50"),t)}:{type:os("0xd"),content:Qo(e,os("0x2a"))}}}}))}}const is=["_descriptionFactory","ImageEditing","formatBlock","type","commandName","getSuggestionCallback","locale","src","attribute","_handleLegacySuggestions","newValue","discard","accept","TrackChangesEditing","has","editor","_registerLegacyDescription","get","plugins","formatInline","*Replace image URL*","_enableDefaultAttributesIntegration","registerCustomCallback","afterInit","oldValue","format","replaceImageSource","_suggestionFactory"];var ss,xs;ss=is,xs=412,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x3")](){if(!this[as("0x17")][as("0x1a")][as("0x16")](as("0x9")))return;const t=this[as("0x17")].locale,e=this.editor[as("0x1a")][as("0x19")](as("0x15"));e[as("0x1")](as("0x6"),[],[as("0xf")]),e[as("0x8")].registerDescriptionCallback((e=>{if(as("0x10")!=e.type)return;const{data:n}=e;return n&&as("0xf")==n.key?n[as("0x12")]&&n[as("0x4")]?{type:as("0x5"),content:Qo(t,as("0x0"))}:{type:"format",content:""}:void 0})),this._handleLegacySuggestions()}[as("0x11")](){const t=this[as("0x17")].plugins[as("0x19")](as("0x15"));t._suggestionFactory[as("0x2")](as("0xa"),as("0x6"),as("0x14"),t[as("0x7")][as("0xd")](as("0xa"),null,"discard")),t[as("0x7")][as("0x2")](as("0xa"),as("0x6"),as("0x13"),t[as("0x7")][as("0xd")]("formatBlock",null,as("0x14"))),this[as("0x18")]()}[as("0x18")](){const t=this.editor,e=t[as("0xe")];t.plugins.get("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[as("0xb")]&&as("0x1b")!=t[as("0xb")])return;const{data:n}=t;return n&&"replaceImageSource"==n[as("0xc")]?{type:"format",content:Qo(e,"*Format:* replace image URL")}:void 0}))}}const ls=["FORMAT_SIDE_IMAGE","normalizedStyles","nodeBefore","_findSuggestions","get","getClosestSelectedImageElement","registerDescriptionCallback","author","commandName","discardSuggestion","commands","isBefore","_suggestionFactory","imageTypeBlock","formatInline","next","commandReversedParams","hasSuggestion","subType","from","findIndex","getFirstRange","filter","enableCommand","editor","imageStylePreApply","imageStyle","refresh","end","isEqual","accept","title","document","has","ImageStyleEditing","ImageUtils","registerCustomCallback","setImageNaturalSizeAttributes","isBlockImage","imageStylePostApply","value","_descriptionFactory","change","type","join","createRangeOn","getContainedElement","selection","plugins","start","commandParams","Users","chain","afterInit","toLowerCase","isInContent","imageCaption","newRange","convertInlineImageToBlock","TrackChangesEditing","isInlineImage","getSuggestions","insertion","discard","*Format:* %0","isOwn","model","imageTypeInline","formatBlock","getSuggestion","format","markBlockFormat","shouldConvertImageType","forEach","head","name","length"];var us,ds;us=ls,ds=297,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x40")](){const t=this[gs("0x23")];if(!t.plugins[gs("0x2c")]("ImageStyleEditing"))return;const n=t[gs("0x3b")].get(gs("0x46")),o=t.plugins[gs("0xf")](gs("0x2e")),r={};n[gs("0x22")](gs("0x25"),((r,i)=>{const s=t[gs("0x3b")][gs("0xf")](gs("0x3e")).me,x=t[gs("0x15")][gs("0xf")]("imageStyle");let a=o[gs("0x10")](t[gs("0x0")].document[gs("0x3a")]),c=t[gs("0x0")][gs("0x38")](a),l=x.value;if(l==i[gs("0x33")])return;const u={commandName:gs("0x25"),commandParams:[i],formatGroupId:(0,e.uid)()};t.model[gs("0x35")]((()=>{if(n[gs("0x48")]()[gs("0x21")]((t=>t[gs("0x42")]&&s==t[gs("0x12")]&&(gs("0x2")==t.type||"formatInline"==t[gs("0x36")])&&(gs("0x24")==t[gs("0x1d")]||gs("0x32")==t.subType)&&t[gs("0x20")]()[gs("0x28")](c)))[gs("0x7")]((t=>n[gs("0x14")](t[gs("0x8")]))),a=o[gs("0x10")](t[gs("0x0")][gs("0x2b")][gs("0x3a")]),c=t.model[gs("0x38")](a),x.refresh(),t[gs("0x15")][gs("0xf")](gs("0x1"))[gs("0x26")](),t.commands[gs("0xf")](gs("0x18"))[gs("0x26")](),l=x[gs("0x33")],l!=i.value)return o[gs("0x47")](a)&&x[gs("0x6")](i[gs("0x33")],a)?(r({...i,setImageSizes:!1}),a=o[gs("0x10")](t[gs("0x0")][gs("0x2b")][gs("0x3a")]),void n[gs("0x5")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o.isBlockImage(a)?n.markBlockFormat(a,u,[],gs("0x32")):n.markInlineFormat(c,u,gs("0x32")))}))}));for(const e of t[gs("0x3b")][gs("0xf")](gs("0x2d"))[gs("0xc")])r[e[gs("0x9")]]=e[gs("0x2a")][gs("0x41")]();n[gs("0x17")][gs("0x2f")](gs("0x2"),gs("0x24"),gs("0x37"),(()=>!1)),n[gs("0x17")][gs("0x2f")](gs("0x2"),gs("0x32"),gs("0x37"),(()=>!1)),n._suggestionFactory[gs("0x2f")](gs("0x19"),gs("0x32"),"join",(()=>!1)),n._suggestionFactory[gs("0x2f")]("formatBlock","imageStylePreApply",gs("0x29"),(([t])=>{o[gs("0x30")](t[gs("0x39")]())})),n[gs("0x17")].registerCustomCallback("formatBlock",gs("0x24"),gs("0x4a"),((t,e)=>{n[gs("0x17")].getSuggestionCallback(gs("0x2"),"",gs("0x29"))(t,{commandName:e[gs("0x13")],commandParams:e[gs("0x1b")]})})),n[gs("0x17")].registerCustomCallback(gs("0x2"),"imageStylePreApply",gs("0x3f"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:gs("0x2"),subType:gs("0x24")},{type:gs("0x49"),subType:"imageCaption"},{type:gs("0x2"),subType:"convertInlineImageToBlock"},{type:gs("0x49"),subType:"convertInlineImageToBlock"}];function s(t,e){const r=i[gs("0x1f")]((({type:e,subType:n})=>t[gs("0x36")]==e&&t[gs("0x1d")]==n)),s=i[gs("0x1f")]((({type:t,subType:n})=>e[gs("0x36")]==t&&e[gs("0x1d")]==n));if(r<0||s<0)return!1;const x=t.getFirstRange(),a=e.getFirstRange();if((0==r||1==r)&&2==s&&x.isIntersecting(a))return!0;if(2==r&&3==s){const t=n[gs("0xe")](x,gs("0x49"))[gs("0x21")]((({suggestion:t,meta:e})=>e[gs("0x4c")]&&gs("0x45")==t[gs("0x1d")]));if(t.length>1&&a[gs("0x27")][gs("0x28")](x.start))return!0;if(1==t[gs("0xa")]&&(x[gs("0x3c")].isEqual(a[gs("0x27")])||x[gs("0x27")][gs("0x28")](a[gs("0x3c")])))return!0}if(3==r&&3==s&&x.start[gs("0x16")](a[gs("0x3c")])){const t=x[gs("0x27")].nodeAfter,e=a[gs("0x3c")][gs("0xd")];return o[gs("0x31")](t)&&t===e}return!1}t[gs("0x0")][gs("0x2b")].registerPostFixer((()=>{let e=!1;const r=Array[gs("0x1e")](t[gs("0x0")][gs("0x2b")].differ.getChangedMarkers());for(const{name:t,data:i}of r){const{group:r,type:s,subType:x,id:a}=n._splitMarkerName(t);if("suggestion"==r&&n[gs("0x1c")](a)){if(gs("0x2")==s&&("imageStylePreApply"==x||gs("0x32")==x)){const t=n[gs("0x3")](a);if(i[gs("0x44")]){const r=t[gs("0x20")]()[gs("0x39")]();if(o[gs("0x31")](r))continue;n[gs("0x14")](t),e=!0}}if(gs("0x49")==s&&gs("0x43")==x&&!i[gs("0x44")]){const t=n.getSuggestion(a);t[gs("0x1a")]&&t.next[gs("0x42")]&&(n.discardSuggestion(t[gs("0x1a")]),e=!0)}}}return e})),this._registerLegacyDescription(r)}_registerLegacyDescription(t){const e=this[gs("0x23")],n=e.locale;e.plugins.get(gs("0x46"))[gs("0x34")][gs("0x11")]((e=>{if(gs("0x2")!=e[gs("0x36")]&&"formatInline"!=e[gs("0x36")])return;const{data:o}=e;if(!o||"imageStyle"!=o[gs("0x13")])return;const r=o[gs("0x3d")][0][gs("0x33")];return i="side"===r?Qo(n,gs("0xb")):t[r]||r,{type:gs("0x4"),content:Qo(n,gs("0x4b"),i)};var i}))}}const ms=["_handleImportedData","execute","commands","dataInsert","afterInit","enableCommand","editor","trackChanges","Users","TrackChangesEditing","_trackChangesExecuted","collaboration_features","get","_trackChangesValueDuringImport","plugins","listenTo","importWord","value","lowest"];var hs,ps;hs=ms,ps=398,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[bs("0xb")]=!1}[bs("0x5")](){const t=this[bs("0x7")],e=t.commands[bs("0xd")](bs("0x11")),n=t[bs("0x3")][bs("0xd")](bs("0x8"));e&&(e.on("execute",((t,[,e])=>{this[bs("0xe")]=n[bs("0x12")],e[bs("0xc")].track_changes=!this[bs("0xe")]}),{priority:"high"}),this[bs("0x10")](e,bs("0x4"),this[bs("0x1")].bind(this)),this[bs("0x10")](e,bs("0x4"),(()=>{this[bs("0xb")]&&(n[bs("0x2")](),this[bs("0xb")]=!1)}),{priority:bs("0x0")}),t.plugins.get(bs("0xa"))[bs("0x6")](bs("0x11")))}[bs("0x1")](t,e){const{suggestions:n}=e,o=this[bs("0x7")][bs("0x3")].get(bs("0x8")),r=o[bs("0x12")];this[bs("0xe")]!==r&&(o.execute(),this._trackChangesExecuted=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this.editor[bs("0xf")][bs("0xd")](bs("0x9")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:bs("0x11")}}};this[bs("0x7")][bs("0xf")][bs("0xd")](bs("0xa"))._setSuggestionData(r)}))}}const _s=["has","getItems","editor","_registerLegacyDescription","getItemLabel","*Indent:* %0","enableCommand","blockIndent","plugins","locale","_descriptionFactory","outdentBlock","FORMAT_INDENT","outdent","commandName","TrackChangesEditing","indentBlock","IndentBlock","registerAttributeLabel","_enableDefaultAttributesIntegration","get","_registerBlockAttribute","format"];var Ts,ys;Ts=_s,ys=269,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{afterInit(){const t=this[Cs("0x9")],e=t.plugins.get(Cs("0x16"));if(t[Cs("0xf")][Cs("0x7")]("IndentEditing")&&(e[Cs("0xd")]("indent"),e[Cs("0xd")](Cs("0x14"))),t.plugins[Cs("0x7")](Cs("0x1")))for(const t of["indentBlock",Cs("0x12")])e[Cs("0x3")](t);const n=t[Cs("0x10")];e[Cs("0x5")](Cs("0xe")),e[Cs("0x11")][Cs("0x2")](Cs("0xe"),Qo(n,Cs("0x13"))),this[Cs("0xa")]()}[Cs("0xa")](){const t=this.editor,e=t[Cs("0x10")],n=t[Cs("0xf")][Cs("0x4")]("TrackChangesEditing");n[Cs("0x11")].registerDescriptionCallback((t=>{if("formatBlock"!=t.type)return;const{data:o}=t;if(!o)return;if(Cs("0x0")!=o[Cs("0x15")]&&"outdentBlock"!=o[Cs("0x15")])return;const r=t[Cs("0x8")]()[0],i=n._descriptionFactory[Cs("0xb")](r);return"indentBlock"==o[Cs("0x15")]?{type:Cs("0x6"),content:Qo(e,Cs("0xc"),i)}:Cs("0x12")==o[Cs("0x15")]?{type:Cs("0x6"),content:Qo(e,"*Outdent:* %0",i)}:void 0}))}}var ks,Is,Ss=["requires","get","init","input"];ks=Ss,Is=177,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Rs=function(t,e){return Ss[t-=0]};class vs extends t.Plugin{static get[Rs("0x3")](){return[Vr.Input]}[Rs("0x1")](){this.editor.plugins[Rs("0x0")]("TrackChangesEditing").enableCommand(Rs("0x2"))}}const Ns=["newValue","LinkEditing","unlink","*Set link:* %0","manualDecorators","_registerLegacyDescription","locale","format","*Remove link*","has","label","formatInline","type","link","TrackChangesEditing","get","key","afterInit","link (","commandParams","_enableDefaultAttributesIntegration","registerDescriptionCallback","editor","toLowerCase","commands","plugins","linkHref","_descriptionFactory"];var Ls,Ms;Ls=Ns,Ms=119,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0xa")](){const t=this.editor;if(!t[ws("0x12")][ws("0x2")](ws("0x16")))return;const e=t[ws("0x12")][ws("0x8")](ws("0x7")),n=t[ws("0x11")].get(ws("0x6"));e[ws("0xd")]("link",[ws("0x13"),...n.manualDecorators.map((t=>t.id))]),e[ws("0xd")](ws("0x17"));for(const t of n[ws("0x19")])e[ws("0x14")].registerAttributeLabel(t.id,ws("0xb")+t[ws("0x3")][ws("0x10")]()+")");e[ws("0x14")][ws("0xe")]((e=>{if("attribute"!=e[ws("0x5")])return;const{data:n}=e;if(!n||ws("0x13")!=n[ws("0x9")])return;const o=n[ws("0x15")],r=t[ws("0x1b")];return{type:ws("0x0"),content:null==o?Qo(r,"*Remove link*"):Qo(r,ws("0x18"),'"'+o+'"')}})),this[ws("0x1a")]()}_registerLegacyDescription(){const t=this[ws("0xf")],e=t.locale;t[ws("0x12")][ws("0x8")]("TrackChangesEditing")[ws("0x14")][ws("0xe")]((t=>{if(ws("0x4")!=t[ws("0x5")])return;const{data:n}=t;if(n){if(ws("0x6")==n.commandName){const t=n[ws("0xc")][0];return{type:ws("0x0"),content:Qo(e,ws("0x18"),'"'+t+'"')}}return ws("0x17")==n.commandName?{type:ws("0x0"),content:Qo(e,ws("0x1"))}:void 0}}))}}const Fs=["nextSibling","type","todoList","indentList","*Change to:* %0","editor","add","get","element","slice","commandName","blockName","length","filter","numbered","isObject","name","listItem","formatBlock","outdentList","*Outdent:* %0","checkChild","previousSibling","getSelectedBlocks","createRange","registerDescriptionCallback","format","has","_descriptionFactory","numberedList","model","locale","from","List","listIndent","change","TodoListEditing","TrackChangesEditing","push","parent","selection","registerElementLabel","document","enableCommand","markBlockFormat","before","findIndex","*Check item*","plugins","value","paragraph","createPositionAt","end","getAttribute","bulletedList","ELEMENT_NUMBERED_LIST","_selectedElements","commands","todo","schema","*Uncheck item*","checkTodoList","listType"];var Ds,Bs;Ds=Fs,Bs=338,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{afterInit(){const t=this[Ps("0x2d")],e=t[Ps("0x8")];if(!t[Ps("0x19")][Ps("0x4")]("ListEditing"))return;const n=t[Ps("0x19")][Ps("0x2f")](Ps("0xe")),o=t[Ps("0x19")][Ps("0x4")](Ps("0xd"));function r(e){return()=>{const o=t[Ps("0x7")][Ps("0x13")].selection,r=t[Ps("0x22")][Ps("0x2f")](e);if(r.value)return void t.execute(Ps("0x1b"),{});const i=e[Ps("0x31")](0,-4),s=function(t,e,n){let o=Array[Ps("0x9")](t)[Ps("0x35")]((t=>{return e=t,(o=n)[Ps("0x3d")](e[Ps("0x10")],Ps("0x39"))&&!o[Ps("0x37")](e);var e,o}));o=o.filter((t=>!t.is("element",Ps("0x39"))||t[Ps("0x1e")](Ps("0x27"))!=e));const r=new Set;for(const t of o)t.is("element",Ps("0x39"))?r.add(js(t)):r[Ps("0x2e")](t);return Array[Ps("0x9")](r)}(o[Ps("0x0")](),i,t[Ps("0x7")][Ps("0x24")]);t.model[Ps("0xc")]((()=>{for(const t of s)n[Ps("0x15")](t,{commandName:e,commandParams:[{forceValue:!r[Ps("0x1a")]}],formatGroupId:Ps("0x33")},Gs(t))}))}}function i(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[Ps("0x17")]((t=>Ps("0x39")!=t[Ps("0x38")]));return n>-1&&(e=e[Ps("0x31")](0,n)),e}(t[Ps("0x7")][Ps("0x13")][Ps("0x11")][Ps("0x0")]()),r=t[Ps("0x7")][Ps("0x1")](t.model[Ps("0x1c")](o[0],Ps("0x16")),t[Ps("0x7")][Ps("0x1c")](o[o[Ps("0x34")]-1],Ps("0x1d")));t[Ps("0x7")][Ps("0xc")]((()=>{n[Ps("0x15")](r,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Ps("0x1e")](Ps("0xb"))>n[Ps("0x1e")](Ps("0xb"));)e[Ps("0x2e")](t),t=t[Ps("0x28")]}return Array[Ps("0x9")](e)}(o))}))}}n[Ps("0x14")](Ps("0x6"),r(Ps("0x6"))),n[Ps("0x14")](Ps("0x1f"),r(Ps("0x1f"))),o&&n[Ps("0x14")]("todoList",r(Ps("0x2a"))),n[Ps("0x14")](Ps("0x2b"),i(Ps("0x2b"))),n[Ps("0x14")](Ps("0x3b"),i(Ps("0x3b"))),o&&n[Ps("0x14")](Ps("0x26"),(()=>{const e=t[Ps("0x22")][Ps("0x2f")](Ps("0x26")),o=Array[Ps("0x9")](e[Ps("0x21")]);o[Ps("0x35")]((t=>t[Ps("0x1e")]("todoListChecked")!=e[Ps("0x1a")])),t.model.change((()=>{for(const t of o)n.markBlockFormat(t,{commandName:Ps("0x26"),commandParams:[{forceValue:!e[Ps("0x1a")]}]})}))})),n[Ps("0x5")][Ps("0x12")](Ps("0x39"),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[Ps("0x2")]((t=>{if(Ps("0x3a")!=t.type&&"formatInline"!=t[Ps("0x29")])return;const{data:n}=t;if(n){if(Ps("0x6")==n[Ps("0x32")]||Ps("0x1f")==n[Ps("0x32")]||Ps("0x2a")==n.commandName)switch(n.commandName.replace(Ps("0xa"),"")){case"bulleted":return o(Qo(e,"ELEMENT_BULLETED_LIST"));case Ps("0x36"):return o(Qo(e,Ps("0x20")));case Ps("0x23"):return o(Qo(e,"ELEMENT_TODO_LIST"))}if(Ps("0x2b")==n.commandName)return{type:Ps("0x3"),content:Qo(e,"*Indent:* %0",Qo(e,"ELEMENT_LIST_ITEM"))};if(Ps("0x3b")==n[Ps("0x32")])return{type:"format",content:Qo(e,Ps("0x3c"),Qo(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n.commandName)return n.commandParams[0].forceValue?{type:Ps("0x3"),content:Qo(e,Ps("0x18"))}:{type:"format",content:Qo(e,Ps("0x25"))}}function o(t){return{type:"format",content:Qo(e,Ps("0x2c"),t)}}}))}}function js(t){const e=t[Ps("0x1e")](Ps("0xb"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ps("0x3e")].is(Ps("0x30"),"listItem");){const o=t[Ps("0x3e")].getAttribute("listIndent");if(o==e)n=t[Ps("0x3e")];else if(o<e)break;t=t[Ps("0x3e")]}return n}function Gs(t){const e=[];if(t.is(Ps("0x30"),Ps("0x39"))&&t.getAttribute(Ps("0xb"))>0){let n=t[Ps("0x28")];for(;n&&Ps("0x39")==n[Ps("0x38")]&&n[Ps("0x1e")](Ps("0xb"))==t[Ps("0x1e")](Ps("0xb"));)e[Ps("0xf")](n),n=n[Ps("0x28")]}return e}const Hs=["_getSuggestionBlocks","ListUtils","*Change to:* %0","enableCommand","markMultiRangeBlockFormat","map","listStart","afterInit","listType","styles","createPositionAt","filter","handleListStartCommand","handleListStyleCommand","flat","*Format:* set order to regular","handleListReversedCommand","backward","listReversed","change","ELEMENT_","listItem","handleDescriptions","TrackChangesEditing","from","reversed","unshift","selection","ListPropertiesEditing","getSelectedBlocks","locale","_LIST_","plugins","format","numbered","push","_descriptionFactory","config","before","startIndex","commandName","_getSuggestionBlocksForListStyle","_getTranslationKeyForListStyle","formatBlock","parent","getAttribute","document","listStyle","get","editor","commandParams","forward","length","getFirstPosition","registerDescriptionCallback","replace","bind","type","getSiblingNodes","element","formatInline","list.properties","createRange","model","*Format:* set order to reversed"];var Vs,zs;Vs=Hs,zs=394,function(t){for(;--t;)Vs.push(Vs.shift())}(++zs);const Ws=function(t,e){return Hs[t-=0]};class Ks extends t.Plugin{[Ws("0x3")](){if(!this.editor[Ws("0x1c")].has(Ws("0x18")))return;const t=this[Ws("0x2d")][Ws("0x21")].get(Ws("0x39")),e=this.editor[Ws("0x1c")].get("TrackChangesEditing");t[Ws("0x5")]&&e[Ws("0x40")](Ws("0x2b"),this[Ws("0x9")][Ws("0x34")](this)),t.reversed&&e[Ws("0x40")](Ws("0xe"),this[Ws("0xc")][Ws("0x34")](this)),t[Ws("0x23")]&&e[Ws("0x40")](Ws("0x2"),this[Ws("0x8")][Ws("0x34")](this)),e[Ws("0x20")][Ws("0x32")](this[Ws("0x12")][Ws("0x34")](this))}handleListStyleCommand(t,e={}){const n=this.editor[Ws("0x1c")][Ws("0x2c")](Ws("0x13")),o=this[Ws("0x25")]();this[Ws("0x2d")][Ws("0x3b")].change((()=>{n[Ws("0x0")](o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:Ws("0x2b")})}))}[Ws("0xc")](t,e={}){const n=this[Ws("0x2d")][Ws("0x1c")][Ws("0x2c")](Ws("0x13")),o=this[Ws("0x3d")]((t=>t.is(Ws("0x37"),"listItem")&&"numbered"===t.getAttribute(Ws("0x4"))));if(o[Ws("0x30")]<1)return;const r=o[Ws("0x1")]((t=>this[Ws("0x2d")].model[Ws("0x3a")](this.editor[Ws("0x3b")][Ws("0x6")](t,Ws("0x22")),this[Ws("0x2d")][Ws("0x3b")][Ws("0x6")](t,0))));this[Ws("0x2d")].model.change((()=>{n[Ws("0x0")](r,{commandName:"listReversed",commandParams:[{reversed:e[Ws("0x15")]}],formatGroupId:Ws("0xe")})}))}[Ws("0x8")](t,e={}){const n=this[Ws("0x2d")][Ws("0x1c")][Ws("0x2c")](Ws("0x13")),o=this[Ws("0x3d")]((t=>t.is(Ws("0x37"),Ws("0x11"))&&Ws("0x1e")===t[Ws("0x29")](Ws("0x4"))));if(o[Ws("0x30")]<1)return;const r=o.map((t=>this[Ws("0x2d")].model[Ws("0x3a")](this[Ws("0x2d")][Ws("0x3b")][Ws("0x6")](t,"before"),this[Ws("0x2d")][Ws("0x3b")].createPositionAt(t,0))));this.editor[Ws("0x3b")][Ws("0xf")]((()=>{n[Ws("0x0")](r,{commandName:Ws("0x2"),commandParams:[{startIndex:e[Ws("0x23")]}],formatGroupId:Ws("0x2")})}))}handleDescriptions(t){if(Ws("0x27")!=t[Ws("0x35")]&&Ws("0x38")!=t[Ws("0x35")])return;const e=this[Ws("0x2d")][Ws("0x1a")],{data:n}=t;if(!n)return;let o,r;switch(n[Ws("0x24")]){case"listStyle":o=Ws("0x3f"),r={type:Ws("0x1d"),content:Qo(e,o,Qo(e,this[Ws("0x26")](n[Ws("0x2e")][0][Ws("0x35")])))};break;case Ws("0xe"):o=n.commandParams[0].reversed?Ws("0x3c"):Ws("0xb"),r={type:Ws("0x1d"),content:Qo(e,o)};break;case Ws("0x2"):o="*Format:* set start index to %0",r={type:Ws("0x1d"),content:Qo(e,o,n.commandParams[0][Ws("0x23")])}}return r}_getSuggestionBlocksForListStyle(){var t,e,n,o;const r=this[Ws("0x2d")][Ws("0x1c")][Ws("0x2c")](Ws("0x3e"));let i=Array[Ws("0x14")](this[Ws("0x2d")][Ws("0x3b")][Ws("0x2a")][Ws("0x17")][Ws("0x19")]());return(null===(t=i[0])||void 0===t?void 0:t.is(Ws("0x37"),Ws("0x11")))&&i[Ws("0x16")](...r[Ws("0x36")](this[Ws("0x2d")][Ws("0x3b")][Ws("0x2a")][Ws("0x17")].getFirstPosition(),Ws("0xd"))),(null===(e=i[i[Ws("0x30")]-1])||void 0===e?void 0:e.is("element",Ws("0x11")))&&i[Ws("0x1f")](...r[Ws("0x36")](this[Ws("0x2d")][Ws("0x3b")].document[Ws("0x17")].getLastPosition(),"forward")),i=[...new Set(i)],(null===(o=null===(n=this[Ws("0x2d")][Ws("0x3b")][Ws("0x2a")][Ws("0x17")][Ws("0x31")]())||void 0===n?void 0:n[Ws("0x28")])||void 0===o?void 0:o.is(Ws("0x37"),Ws("0x11")))&&(i=i[Ws("0x7")]((t=>t.is(Ws("0x37"),Ws("0x11"))))),i}_getSuggestionBlocks(t){const e=this[Ws("0x2d")][Ws("0x1c")].get(Ws("0x3e"));let n=Array[Ws("0x14")](this[Ws("0x2d")][Ws("0x3b")][Ws("0x2a")][Ws("0x17")][Ws("0x19")]())[Ws("0x7")](t).map((t=>{const n=this.editor[Ws("0x3b")][Ws("0x6")](t,0);return[...e[Ws("0x36")](n,"backward"),...e[Ws("0x36")](n,Ws("0x2f"))]}))[Ws("0xa")]();return n=[...new Set(n)],n}[Ws("0x26")](t){return Ws("0x10")+this[Ws("0x2d")][Ws("0x1c")][Ws("0x2c")](Ws("0x3e")).getListTypeFromListStyleType(t).toUpperCase()+Ws("0x1b")+t.toUpperCase()[Ws("0x33")](/-/g,"_")}}const qs=["locale","showSuggestionHighlights","media","data","plugins","downcastDispatcher","editor","ELEMENT_MEDIA","TrackChangesEditing","for","MediaEmbedEditing","afterInit","get","mediaEmbed","stop","dataDowncast","options","conversion","createEmptyElement","div","enableCommand","has","_descriptionFactory","high"];var Xs,$s;Xs=qs,$s=282,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0x11")](){const t=this[Zs("0xc")];if(!t[Zs("0xa")][Zs("0x3")](Zs("0x10")))return;const e=t[Zs("0xa")][Zs("0x12")](Zs("0xe")),n=t[Zs("0x6")];e[Zs("0x2")](Zs("0x13")),e[Zs("0x4")].registerElementLabel(Zs("0x8"),(t=>Qo(n,Zs("0xd"),t))),t[Zs("0x17")][Zs("0xf")](Zs("0x15")).elementToElement({model:Zs("0x8"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Zs("0x0")](Zs("0x1"))},converterPriority:Zs("0x5")}),t[Zs("0x9")][Zs("0xb")].on("attribute:url:media",((t,e,n)=>{n[Zs("0x16")][Zs("0x7")]&&t[Zs("0x14")]()}),{priority:Zs("0x5")})}}const Js=["editor","plugins","enableCommand","get","mention","TrackChangesEditing","afterInit","has"];var Qs,tx;Qs=Js,tx=364,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x2")](){const t=this[ex("0x4")];t[ex("0x5")][ex("0x3")]("MentionEditing")&&t[ex("0x5")][ex("0x7")](ex("0x1"))[ex("0x6")](ex("0x0"))}}const ox=["pageBreak","plugins","get","TrackChangesEditing","has","enableCommand","ELEMENT_PAGE_BREAK","_descriptionFactory","PageBreakEditing","editor","registerElementLabel","afterInit"];var rx,ix;rx=ox,ix=465,function(t){for(;--t;)rx.push(rx.shift())}(++ix);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x2")](){const t=this[sx("0x0")];if(!t[sx("0x4")][sx("0x7")](sx("0xb")))return;t[sx("0x4")][sx("0x5")](sx("0x6"))[sx("0x8")](sx("0x3"));const e=t.plugins[sx("0x5")]("TrackChangesEditing"),n=t.locale;e[sx("0xa")][sx("0x1")](sx("0x3"),(t=>Qo(n,sx("0x9"),t)))}}const ax=["ck-suggestion-marker-split","_descriptionFactory","insertion","writer","checkChild","schema","editor","paragraph","highest","TrackChangesEditing","data","end","markerName","toViewPosition","commandName","plugins","addClass","insert","mapper","nodeAfter","insertParagraph","format","*Insert:* %0","markerRange","isLimit","bindElementToMarker","enableCommand","afterInit","has","Paragraph","registerElementLabel","addMarker:suggestion:insertion","consume","createUIElement","downcastDispatcher","type","_registerLegacyDescription","getItemLabel","model","options","*Change to:* %0","includes","start","getFirstRange","locale","isTouching","get"];var cx,lx;cx=ax,lx=235,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x1b")](){const t=this[ux("0x6")];if(!t[ux("0xf")][ux("0x1c")](ux("0x1d")))return;const e=t[ux("0x2c")],n=t[ux("0xf")][ux("0x2e")]("TrackChangesEditing");n[ux("0x1")][ux("0x1e")](ux("0x7"),(t=>Qo(e,"ELEMENT_PARAGRAPH",t))),n._enableDefaultAttributesIntegration(ux("0x7")),n[ux("0x1a")](ux("0x14")),t.editing.downcastDispatcher.on(ux("0x1f"),gx(t),{priority:ux("0x8")}),t[ux("0xa")][ux("0x22")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ux("0x27")].showSuggestionHighlights&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[ux("0x1")];o.registerDescriptionCallback((n=>{if(ux("0x2")!==n[ux("0x23")])return;const{start:r,end:i}=n[ux("0x2b")]();if(!r[ux("0x2d")](i)||!r[ux("0x13")])return;const s=t[ux("0x26")][ux("0x5")],x=r[ux("0x13")];return s.isBlock(x)&&!s[ux("0x18")](x)&&s[ux("0x4")](x,"$text")?{type:ux("0x2"),content:Qo(e,ux("0x16"),o[ux("0x25")](x,1))}:void 0})),this[ux("0x24")]()}[ux("0x24")](){const t=this[ux("0x6")],e=t[ux("0x2c")];t[ux("0xf")][ux("0x2e")]("TrackChangesEditing")[ux("0x1")].registerDescriptionCallback((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;return n&&ux("0x7")==n[ux("0xe")]?{type:ux("0x15"),content:Qo(e,ux("0x28"),Qo(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t.plugins[ux("0x2e")](ux("0x9")),s=o[ux("0x17")][ux("0x2a")],x=o[ux("0x17")][ux("0xb")],a=t.model[ux("0x5")];if(!s.isTouching(x)||!s[ux("0x13")])return;const c=s[ux("0x13")];if(a.isBlock(c)&&!a.isLimit(c)&&a[ux("0x4")](c,"$text")){if(!r.consumable[ux("0x20")](o[ux("0x17")],n.name))return;const t=r[ux("0x3")][ux("0x21")]("span",{class:ux("0x0")}),s=r[ux("0x12")][ux("0xd")](x);e&&i.activeMarkers[ux("0x29")](o[ux("0xc")])&&r[ux("0x3")][ux("0x10")]("ck-suggestion-marker--active",t),r.writer[ux("0x11")](s,t),r[ux("0x12")][ux("0x19")](t,o.markerName)}}}const fx=["locale","_descriptionFactory","plugins","TrackChangesEditing","afterInit","removeFormat","commandName","registerDescriptionCallback","format","get","has","type","_enableDefaultAttributesIntegration","_registerLegacyDescription","*Remove all formatting*"];var mx,hx;mx=fx,hx=315,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0x4")](){const t=this.editor;t[px("0x2")][px("0xa")]("RemoveFormatEditing")&&(t.plugins[px("0x9")](px("0x3"))[px("0xc")](px("0x5")),this[px("0xd")]())}_registerLegacyDescription(){const t=this.editor;t[px("0x2")][px("0x9")](px("0x3"))[px("0x1")][px("0x7")]((e=>{if("formatBlock"!=e[px("0xb")]&&"formatInline"!=e[px("0xb")])return;const{data:n}=e;return n&&px("0x5")==n[px("0x6")]?{type:px("0x8"),content:Qo(t[px("0x0")],px("0xe"))}:void 0}))}}const Ex=["afterInit","editor","has","goToPreviousRestrictedEditingException","enableCommand","discardSelectedSuggestions","goToNextRestrictedEditingException","TrackChangesEditing","acceptSuggestion","acceptSelectedSuggestions","trackChanges","get","discardSuggestion","RestrictedEditingModeEditing","plugins"];var _x,Tx;_x=Ex,Tx=204,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x6")](){const t=this[yx("0x7")];if(!t[yx("0x5")][yx("0x8")]("RestrictedEditingModeEditing"))return;const e=t[yx("0x5")][yx("0x2")](yx("0xd"));e[yx("0xa")](yx("0x9")),e[yx("0xa")](yx("0xc"));const n=t[yx("0x5")][yx("0x2")](yx("0x4"));n[yx("0xa")](yx("0x1")),n[yx("0xa")](yx("0xe")),n[yx("0xa")](yx("0x3")),n[yx("0xa")]("acceptAllSuggestions"),n[yx("0xa")]("discardAllSuggestions"),n[yx("0xa")](yx("0x0")),n[yx("0xa")](yx("0xb"))}}const Ax=["plugins","mapper","locale","merge","registerElementLabel","init","data","requires","markerRange","TrackChangesEditing","high","name","markerName","softBreak","bindElementToMarker","element","downcastDispatcher","getItems","writer","options","split","addMarker:suggestion:insertion","span","includes","editing","shiftEnter","model","addMarker:suggestion","consumable","createPositionBefore","editor","enableCommand","deletion","test","toViewPosition","addClass","get"];var kx,Ix;kx=Ax,Ix=405,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Sx=function(t,e){return Ax[t-=0]};class Rx extends t.Plugin{static get[Sx("0x9")](){return[ui.ShiftEnter]}[Sx("0x7")](){const t=this[Sx("0x20")],e=t[Sx("0x2")][Sx("0x1")](Sx("0xb"));e[Sx("0x21")](Sx("0x1b")),t[Sx("0x1a")][Sx("0x12")].on(Sx("0x17"),vx(t),{priority:Sx("0xc")}),t.editing[Sx("0x12")].on("addMarker:suggestion:deletion",vx(t),{priority:Sx("0xc")}),t[Sx("0x8")].downcastDispatcher.on(Sx("0x1d"),((e,n,o)=>{o[Sx("0x15")].showSuggestionHighlights&&vx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Sx("0x6")]("softBreak",(e=>Qo(t[Sx("0x4")],"ELEMENT_LINE_BREAK",e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t.plugins[Sx("0x1")]("TrackChangesEditing");if(!r[Sx("0x1e")][Sx("0x23")](o[Sx("0xa")],n[Sx("0xd")]))return;const s=t[Sx("0x1c")];for(const t of o[Sx("0xa")][Sx("0x13")]()){if(!t.is(Sx("0x11"),Sx("0xf")))continue;const n=Sx("0x22")==o[Sx("0xe")].split(":")[1]?Sx("0x5"):Sx("0x16"),x=r[Sx("0x14")].createUIElement(Sx("0x18"),{class:"ck-suggestion-marker-"+n}),a=r.mapper[Sx("0x24")](s[Sx("0x1f")](t));e&&i.activeMarkers[Sx("0x19")](o[Sx("0xe")])&&r[Sx("0x14")][Sx("0x0")]("ck-suggestion-marker--active",x),r[Sx("0x14")].insert(a,x),r[Sx("0x3")][Sx("0x10")](x,o[Sx("0xe")])}}}const Nx=["_descriptionFactory","restrictedEditingException","plugins","TrackChangesEditing","forceValue","enableCommand","from","StandardEditingModeEditing","value","type","isCollapsed","FORMAT_RESTRICTED_DISABLED","editor","registerDescriptionCallback","selection","locale","formatBlock","get","format","has"];var Lx,Mx;Lx=Nx,Mx=177,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{afterInit(){const t=this[wx("0xf")],e=t.model,n=t[wx("0x12")];if(!t[wx("0x5")][wx("0x2")](wx("0xa")))return;const o=t[wx("0x5")][wx("0x0")](wx("0x6")),r=wx("0x4"),i=t.commands[wx("0x0")](r);o[wx("0x8")](r,((t,n={})=>{const s=e.document[wx("0x11")];if(s[wx("0xd")])return void t(n);const x=void 0!==n.forceValue?n[wx("0x7")]:!i[wx("0xb")];e.change((()=>{const t=Array[wx("0x9")](s.getRanges());for(const n of t){const t=x?[n]:Xr(r,n,e);for(const e of t)o.markInlineFormat(e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[wx("0x3")][wx("0x10")]((t=>{if(wx("0x13")!=t[wx("0xc")]&&"formatInline"!=t[wx("0xc")])return;const{data:e}=t;return e&&e.commandName==r?e.commandParams[0][wx("0x7")]?{type:wx("0x1"),content:Qo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:wx("0x1"),content:Qo(n,wx("0xe"))}:void 0}))}}const Fx=["editor","*Set format:* %0","getGhsAttributeNameForElement","forceValue","has","_enableDefaultAttributesIntegration","commandParams","normalizeConfig","DataSchema","GeneralHtmlSupport","block","style","type","_descriptionFactory","config","get","plugins","StyleUtils","add","inline","*Remove format:* %0","commandName","_registerLegacyDescription","toLowerCase","styleName","_registerBlockAttribute","TrackChangesEditing","ghsAttributes","format","formatBlock","element","registerAttributeLabel","definitions"];var Dx,Bx;Dx=Fx,Bx=244,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this[Px("0x14")];if(!t[Px("0x3")][Px("0x18")]("Style")||!t[Px("0x3")][Px("0x18")]("DataSchema"))return;const e=t[Px("0x3")][Px("0x2")](Px("0xd")),n=t.locale,o=t[Px("0x1")][Px("0x2")]("style"),r=t[Px("0x3")][Px("0x2")](Px("0x1d")),i=t[Px("0x3")].get(Px("0x4"))[Px("0x1b")](t.plugins[Px("0x2")](Px("0x1c")),o[Px("0x13")]);e[Px("0x19")](Px("0x1f"));const s=new Set;for(const t of i[Px("0x1e")]){const e=r.getGhsAttributeNameForElement(t.element);s[Px("0x5")](e)}const x=new Set;for(const t of i[Px("0x6")]){const e=r[Px("0x16")](t[Px("0x11")]);x[Px("0x5")](e);for(const e of t[Px("0xe")])x[Px("0x5")](e)}for(const t of s)e[Px("0xc")](t),e._descriptionFactory[Px("0x12")](t,Qo(n,"FORMAT_STYLE"));for(const t of x)e._registerInlineAttribute(t),e[Px("0x0")][Px("0x12")](t,Qo(n,"FORMAT_STYLE"));this[Px("0x9")]()}[Px("0x9")](){const t=this[Px("0x14")],e=t.locale;t[Px("0x3")].get(Px("0xd"))[Px("0x0")].registerDescriptionCallback((t=>{if(Px("0x10")!=t.type&&"formatInline"!=t[Px("0x20")])return;const{data:n}=t;return n&&Px("0x1f")===n[Px("0x8")]?n[Px("0x1a")][0][Px("0x17")]?{type:Px("0xf"),content:Qo(e,Px("0x15"),n[Px("0x1a")][0][Px("0xb")][Px("0xa")]())}:{type:Px("0xf"),content:Qo(e,Px("0x7"),n[Px("0x1a")][0].styleName[Px("0xa")]())}:void 0}))}}const jx=["fromRange","nodeBefore","isTouching","getColumnIndexes","change","TrackChangesEditing","removeTableColumn","getAttribute","includes","setSelection","type","data","span","some","differ","insertion","_suggestionFactory","options","addRange","batch","createPositionAt","getItems","markMultiRangeInsertion","min","root","$textProxy","registerDescriptionCallback","from","rowspan","getChangedMarkers","first","insert","oldRange","classes","forceValue","_getCoordsForCells","item","element","get","getSuggestion","accept","position","_descriptionFactory","TableUtils","join","editor","enableCommand","every","removeClass","max","addClass","insertTable","table","low","getContainedElement","rootName","selectTableColumn","addMarker:suggestion","_setupColumnsRowsFixing","enqueueChange","has","discard","tableColumn","highest","plugins","map","registerCustomCallback","isEqual","MIN_SAFE_INTEGER","toViewElement","_tableSuggestions","deletion","*Insert:* %0","left","afterInit","ELEMENT_TABLE_COLUMN","cell","ELEMENT_TABLE_WITH_TEXT","push","ELEMENT_TABLE_COLUMN_WITH_TEXT","getRowIndexes","insertTableColumnLeft","getRanges","insertTableRowAbove","getChildren","hasAttribute","execute","downcastDispatcher","detach","_acceptFormatSuggestionCallbackFactory","maxRow","insertTableColumnRight","end","name","subType","ELEMENT_TABLE","minColumn","length","values","MAX_SAFE_INTEGER","selection","findAncestor","_splitMarkerName","tableRow","createRangeIn","$graveyard","start","add","getSelectionAffectedTableCells","*Remove:* %0","ELEMENT_TABLE_ROW_WITH_TEXT","change:data","registerPostFixer","commands","substr","order","writer","minRow","suggestion","mapper","tableCell","filter","document","nodeAfter","registerElementLabel","selectTableRow","createRangeOn","tablePaste","model","createTableWalker","getCellLocation","removeTableRow","showSuggestionHighlights","toLowerCase","_getSuggestionCoords","last","ELEMENT_TABLE_ROW","startsWith","colspan"];var Gx,Hx;Gx=jx,Hx=339,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Vx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Vx("0x2a"),Vx("0x1")],this[Vx("0x9")]=new Set}[Vx("0xd")](){const t=this[Vx("0x7b")],e=t[Vx("0x43")].document[Vx("0x27")];if(!t[Vx("0x3")][Vx("0x8a")]("TableEditing"))return;const n=t.locale,o=t[Vx("0x3")][Vx("0x74")](Vx("0x53")),r=t.plugins[Vx("0x74")](Vx("0x79"));o[Vx("0x78")][Vx("0x3f")](Vx("0x82"),(t=>Qo(n,Vx("0x22"),t))),this[Vx("0x88")](),o[Vx("0x7c")](Vx("0x81")),o[Vx("0x7c")](Vx("0x40")),o[Vx("0x7c")](Vx("0x86"));for(const n of[Vx("0x16"),"insertTableRowBelow"]){const i=t[Vx("0x34")][Vx("0x74")](n);o[Vx("0x7c")](n,(n=>{t[Vx("0x43")][Vx("0x52")]((t=>{n();const s="above"===i.order,x=r[Vx("0x2f")](e),a=r[Vx("0x13")](x),c=s?a[Vx("0x6c")]-1:a[Vx("0x4a")]+1,l=x[0][Vx("0x28")](Vx("0x82")),u=r[Vx("0x44")](l,{startRow:c,endRow:c}),d=Array.from(u)[Vx("0x4")]((e=>t[Vx("0x41")](e[Vx("0xf")])));o[Vx("0x64")](d,Vx("0x2a"))}))}))}for(const n of[Vx("0x14"),Vx("0x1e")]){const i=t[Vx("0x34")].get(n);o.enableCommand(n,(n=>{t.model.change((t=>{n();const s=Vx("0xc")===i[Vx("0x36")],x=r.getSelectionAffectedTableCells(e),a=r[Vx("0x51")](x),c=s?a[Vx("0x6c")]-1:a[Vx("0x4a")]+1,l=x[0][Vx("0x28")](Vx("0x82")),u=r[Vx("0x44")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Vx("0x69")](u).map((e=>t.createRangeOn(e[Vx("0xf")])));o[Vx("0x64")](d,"tableColumn")}))}))}for(const n of["removeTableRow",Vx("0x54")]){const i=n[Vx("0x35")](11),s=i.toLowerCase(),x=s.substr(0,3)+Vx("0x5a"),a=Vx("0x82")+i,c=Vx("0x65")+i,l=Vx("0x7f")+i;o[Vx("0x7c")](n,(()=>{t[Vx("0x43")].change((t=>{const i=r[Vx("0x2f")](e),u=i[0].findAncestor(Vx("0x82"));let d;if("removeTableRow"==n){const t=r[Vx("0x13")](i);d={startRow:t.first,endRow:t[Vx("0x4a")],includeAllSlots:!0}}else{const t=r[Vx("0x51")](i);d={startColumn:t[Vx("0x6c")],endColumn:t[Vx("0x4a")],includeAllSlots:!0}}const g=r[Vx("0x44")](u,d),f=Array[Vx("0x69")](g)[Vx("0x4")]((({cell:t})=>t)),m=Wx(f[Vx("0x3c")]((t=>t.hasAttribute(x)))),h=Wx(f[Vx("0x3c")]((t=>!t[Vx("0x18")](x))))[Vx("0x4")]((e=>t[Vx("0x41")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Vx("0x2a")==p[Vx("0x21")]||Vx("0x1")==p[Vx("0x21")])){const e=this[Vx("0x49")](p);for(const n of m){const o=t[Vx("0x41")](n),i=r[Vx("0x45")](n),a=n[Vx("0x55")](x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&p[Vx("0x60")](o)}}}))}))}function i(n){const o=Array[Vx("0x69")](e[Vx("0x15")]())[Vx("0x4")]((t=>s.LiveRange[Vx("0x4e")](t)));t.model[Vx("0x52")]((e=>{const r=e[Vx("0x61")];n=n[Vx("0x3c")]((t=>Vx("0x2c")!=t[Vx("0x66")].rootName)),e[Vx("0x57")](n),t[Vx("0x34")][Vx("0x74")](Vx("0x46")).refresh(),t[Vx("0x19")](Vx("0x46"),{forceDefaultExecution:!0}),t.model[Vx("0x89")]((()=>{t[Vx("0x43")][Vx("0x89")](r,(t=>{const e=o.filter((t=>Vx("0x2c")!=t[Vx("0x66")][Vx("0x85")]));e[Vx("0x24")]>0&&t[Vx("0x57")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Vx("0x43")].change((o=>{const r=Array[Vx("0x69")](e[Vx("0x15")]())[Vx("0x4")]((t=>s.LiveRange[Vx("0x4e")](t))),i=[];for(const t of n)for(const e of t[Vx("0x63")]({shallow:!0}))i.push(e);for(const e of i)"$graveyard"!=e[Vx("0x66")][Vx("0x85")]&&(o[Vx("0x57")](o[Vx("0x62")](e,0)),t[Vx("0x34")][Vx("0x74")](Vx("0x54")).refresh(),t[Vx("0x19")]("removeTableColumn",{forceDefaultExecution:!0}));const x=r.filter((t=>"$graveyard"!=t[Vx("0x66")][Vx("0x85")]));x[Vx("0x24")]>0&&o[Vx("0x57")](x);for(const t of r)t[Vx("0x1b")]()}))}function c(t,e){return e[Vx("0x7d")]((e=>t.some((t=>t.end[Vx("0x6")](e[Vx("0x2d")])||e[Vx("0x1f")][Vx("0x6")](t[Vx("0x2d")])))))}function l(t,e){return t.some((t=>e[Vx("0x5b")]((e=>t[Vx("0x1f")][Vx("0x50")](e[Vx("0x2d")])))))}t[Vx("0x59")][Vx("0x1a")].on(Vx("0x87"),((t,e,n)=>{if(!n[Vx("0x5f")][Vx("0x47")])return;const o=e[Vx("0x72")];if(!o)return;const r=n[Vx("0x3a")][Vx("0x8")](o);function i(t){return Array.isArray(t)?t:[t]}r&&Vx("0x3b")===o[Vx("0x20")]&&(0,x.setHighlightHandling)(r,n[Vx("0x37")],((t,e,n)=>n[Vx("0x80")](i(e[Vx("0x6f")]),t)),((t,e,n)=>n[Vx("0x7e")](i(e[Vx("0x6f")]),t)))}),{priority:Vx("0x2")}),o._descriptionFactory.registerDescriptionCallback((t=>{if("insertion"!=t[Vx("0x58")]&&"deletion"!=t[Vx("0x58")])return;const e=t[Vx("0x84")]();if(null!=e&&e.is(Vx("0x73"),Vx("0x82"))){if(Vx("0x5d")==t[Vx("0x58")]){const e=t[Vx("0x63")]().filter((t=>t.is(Vx("0x67"))))[Vx("0x4")]((t=>t[Vx("0x59")]));if(e[Vx("0x24")])return{type:Vx("0x5d"),content:Qo(n,Vx("0xb"),Qo(n,Vx("0x10"),'"'+e[Vx("0x7a")](" ")+'"'))}}if(Vx("0xa")==t.type){const e=t[Vx("0x63")]().filter((t=>t.is("$textProxy")))[Vx("0x4")]((t=>t[Vx("0x59")]));if(e.length)return{type:Vx("0xa"),content:Qo(n,"*Remove:* %0",Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Vx("0x7a")](" ")+'"'))}}}})),o[Vx("0x78")][Vx("0x68")]((t=>{if(Vx("0x2a")==t.subType){const e=t[Vx("0x63")]()[Vx("0x3c")]((t=>t.is(Vx("0x67")))).map((t=>t.data)),o=this[Vx("0x49")](t),r=o[Vx("0x1d")]-o[Vx("0x38")]+1;if(Vx("0x5d")==t[Vx("0x58")])return e[Vx("0x24")]?{type:Vx("0x5d"),content:Qo(n,Vx("0xb"),Qo(n,Vx("0x31"),[r,'"'+e[Vx("0x7a")](" ")+'"']))}:{type:Vx("0x5d"),content:Qo(n,Vx("0xb"),Qo(n,Vx("0x4b"),r))};if(Vx("0xa")==t.type)return e.length?{type:Vx("0xa"),content:Qo(n,Vx("0x30"),Qo(n,Vx("0x31"),[r,'"'+e[Vx("0x7a")](" ")+'"']))}:{type:Vx("0xa"),content:Qo(n,Vx("0x30"),Qo(n,"ELEMENT_TABLE_ROW",r))}}if("tableColumn"==t[Vx("0x21")]){const e=t[Vx("0x63")]()[Vx("0x3c")]((t=>t.is(Vx("0x67"))))[Vx("0x4")]((t=>t.data)),o=this._getSuggestionCoords(t),r=o.maxColumn-o[Vx("0x23")]+1;if("insertion"==t[Vx("0x58")])return e[Vx("0x24")]?{type:"insertion",content:Qo(n,Vx("0xb"),Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e[Vx("0x7a")](" ")+'"']))}:{type:Vx("0x5d"),content:Qo(n,Vx("0xb"),Qo(n,Vx("0xe"),r))};if("deletion"==t[Vx("0x58")])return e[Vx("0x24")]?{type:Vx("0xa"),content:Qo(n,"*Remove:* %0",Qo(n,Vx("0x12"),[r,'"'+e[Vx("0x7a")](" ")+'"']))}:{type:"deletion",content:Qo(n,"*Remove:* %0",Qo(n,Vx("0xe"),r))}}})),o[Vx("0x5e")][Vx("0x5")]("insertion",Vx("0x2a"),Vx("0x0"),i),o[Vx("0x5e")][Vx("0x5")](Vx("0xa"),Vx("0x2a"),Vx("0x76"),i),o._suggestionFactory[Vx("0x5")](Vx("0x5d"),Vx("0x1"),"discard",a),o[Vx("0x5e")][Vx("0x5")]("deletion","tableColumn","accept",a),o._suggestionFactory.registerCustomCallback(Vx("0x5d"),"tableColumn",Vx("0x7a"),c),o[Vx("0x5e")][Vx("0x5")]("deletion",Vx("0x1"),Vx("0x7a"),c),o[Vx("0x5e")].registerCustomCallback(Vx("0x5d"),"tableRow",Vx("0x7a"),l),o._suggestionFactory[Vx("0x5")](Vx("0xa"),Vx("0x2a"),Vx("0x7a"),l)}[Vx("0x1c")](){const t=this.editor,e=t.model[Vx("0x3d")][Vx("0x27")];return(n,o)=>{t[Vx("0x43")][Vx("0x52")]((r=>{const{commandName:i,commandParams:x}=o;let a=n[0][Vx("0x1f")][Vx("0x4f")];x&&x[0]&&!1===x[0][Vx("0x70")]&&(a=n[0][Vx("0x2d")][Vx("0x3e")]);const c=r[Vx("0x2b")](a);if(Vx("0x2c")==c.root[Vx("0x85")])return;const l=Array.from(e[Vx("0x15")]()).map((t=>s.LiveRange[Vx("0x4e")](t)));r[Vx("0x57")](c),t.commands[Vx("0x74")](i).refresh(),x[Vx("0x11")]({forceDefaultExecution:!0}),t[Vx("0x19")](i,...x);const u=l[Vx("0x3c")]((t=>Vx("0x2c")!=t[Vx("0x66")].rootName));u[Vx("0x24")]>0&&r[Vx("0x57")](u);for(const t of l)t.detach()}))}}[Vx("0x71")](t){const e=this[Vx("0x7b")][Vx("0x3")].get(Vx("0x79"));let n=Number.MAX_SAFE_INTEGER,o=Number[Vx("0x7")],r=Number[Vx("0x26")],i=Number[Vx("0x7")];for(const s of t){if(Vx("0x2c")==s[Vx("0x66")].rootName)continue;const{row:t,column:x}=e[Vx("0x45")](s),a=s[Vx("0x18")](Vx("0x6a"))?s[Vx("0x55")](Vx("0x6a"))-1:0,c=s[Vx("0x18")](Vx("0x4d"))?s[Vx("0x55")](Vx("0x4d"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,i=x+c>i?x+c:i}return{minRow:n,maxRow:o,minColumn:r,maxColumn:i}}[Vx("0x88")](){const t=this[Vx("0x7b")],e=t.plugins[Vx("0x74")](Vx("0x53")),n=t[Vx("0x3")][Vx("0x74")](Vx("0x79"));t[Vx("0x43")][Vx("0x3d")].on(Vx("0x32"),(()=>{const n=Array[Vx("0x69")](t[Vx("0x43")][Vx("0x3d")][Vx("0x5c")][Vx("0x6b")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:i}=e[Vx("0x29")](t);if(Vx("0x39")!=n)continue;if(null!=o[Vx("0x6e")])continue;const s=e[Vx("0x75")](r);this._tablePostFixingSubtypes[Vx("0x56")](i)&&this[Vx("0x9")][Vx("0x2e")](s)}}),{priority:Vx("0x83")});const o=(t,e)=>{let o=!1;const r=e[Vx("0x41")](t),i=t.findAncestor("table"),s=n[Vx("0x45")](t);for(const e of this[Vx("0x9")]){const n=e[Vx("0x21")],x=n[Vx("0x4c")](Vx("0x42")),a=n[Vx("0x35")](x?10:5),c=a[Vx("0x48")](),l=c[Vx("0x35")](0,3)+Vx("0x5a"),u=Vx("0x65")+a,d=Vx("0x7f")+a;if(!e.isInContent)continue;if(i!=e.getFirstRange().start[Vx("0x28")]("table"))continue;if(e.isIntersectingWithRange(r))continue;const g=t[Vx("0x18")](l)?t[Vx("0x55")](l)-1:0,f=this[Vx("0x49")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Vx("0x60")](r),o=!0)}return o};t.model[Vx("0x3d")][Vx("0x33")]((e=>{let n=!1;for(const r of t[Vx("0x43")][Vx("0x3d")][Vx("0x5c")].getChanges())if(Vx("0x6d")==r[Vx("0x58")])if("tableRow"==r[Vx("0x20")])for(const t of r[Vx("0x77")][Vx("0x3e")][Vx("0x17")]())n=n||o(t,e);else Vx("0x3b")==r[Vx("0x20")]&&(n=n||o(r[Vx("0x77")][Vx("0x3e")],e));return n}))}[Vx("0x49")](t){return this._getCoordsForCells(t[Vx("0x15")]()[Vx("0x4")]((t=>t[Vx("0x2d")][Vx("0x3e")])))}}function Wx(t){return Array[Vx("0x69")](new Set(t)[Vx("0x25")]())}const Kx=["formatInline","type","model","fromRange","markBlockFormat","requires","createRangeOn","trackChanges","createTableWalker","low","format","findAncestor","value","push","detach","getSelectionAffectedTableCells","isInContent","set:isEnabled","getAncestors","insertion","add","*Split cell:* vertically","mergeTableCellRight","subType","formatBlock","author","selection","mergeTableCellDown","size","mergeTableCellUp","table","*Merge cells*","registerDescriptionCallback","TableUtils","horizontally","find","plugins","execute","refresh","_suggestionFactory","_descriptionFactory","_areMergableCells","splitTableCellVertically","getFirstPosition","splitTableCellHorizontally","mergeTableCells","setSelection","registerCustomCallback","mergeTableCellLeft","filter","map","document","cell","commandName","root","_tablePostFixingSubtypes","commands","_areSelectedCellsMergable","change","TrackChangesEditing","rootName","getRanges","enableCommand","length","get","_isForcedDefaultExecutionBlock","markMultiRangeBlockFormat","editor","TableEditing","from","stop","has","accept","tableCell","getCellLocation","isEnabled"];var qx,Xx;qx=Kx,Xx=157,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0x0")](){return[zx]}afterInit(){const t=this[$x("0x3e")],e=t.model[$x("0x2e")].selection,n=t.locale;if(!t.plugins.has($x("0x3f")))return;const o=t.plugins.get($x("0x36")),r=t[$x("0x1f")][$x("0x3b")]($x("0x1c")),i=t.plugins[$x("0x3b")](zx);i[$x("0x32")][$x("0x8")]($x("0x28")),o.enableCommand($x("0x28"),(()=>{const e=r[$x("0xa")](t[$x("0x49")][$x("0x2e")][$x("0x15")]);t.model[$x("0x35")]((()=>{o[$x("0x3d")](e,{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))})),t[$x("0x33")][$x("0x3b")]($x("0x28")).on($x("0x20"),((e,n)=>{t[$x("0x33")][$x("0x3b")]($x("0x2"))[$x("0x7")]&&(n[$x("0x3a")]>0&&n[n[$x("0x3a")]-1]&&n[n[$x("0x3a")]-1].forceDefaultExecution||o[$x("0x3c")]||this[$x("0x34")]()||e.stop())}),{priority:"highest"});for(const e of[$x("0x18"),$x("0x11"),$x("0x16"),$x("0x2b")]){const n=t[$x("0x33")][$x("0x3b")](e);o.enableCommand(e,(()=>{const e=t[$x("0x49")][$x("0x2e")].selection[$x("0x26")]()[$x("0xd")]().find((t=>t.is("element",$x("0x44")))),r=n[$x("0x7")];t[$x("0x49")].change((()=>{o[$x("0x3d")]([e,r],{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[$x("0x25"),$x("0x27")]){const n=t[$x("0x33")][$x("0x3b")](e);o[$x("0x39")](e,(()=>{const i=r[$x("0xa")](t[$x("0x49")][$x("0x2e")].selection)[0],s=i[$x("0x6")]($x("0x19")),{column:x,row:a}=r[$x("0x45")](i);let c=[];if($x("0x1d")==n.direction){const t=r[$x("0x3")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x40")](t).map((t=>t[$x("0x2f")]))}else{const t=r[$x("0x3")](s,{column:x,includeAllSlots:!0});c=Array[$x("0x40")](t)[$x("0x2d")]((t=>t.cell))}t[$x("0x49")][$x("0x35")]((t=>{o[$x("0x4b")](t[$x("0x1")](i),{commandName:e,commandParams:[]},c,e)}))}))}o[$x("0x23")].registerDescriptionCallback((t=>{if($x("0x13")!=t[$x("0x48")]&&$x("0x47")!=t[$x("0x48")])return;const{data:e}=t;return e&&"mergeTableCells"==e.commandName?{type:$x("0x5"),content:Qo(n,$x("0x1a"))}:void 0})),o._descriptionFactory[$x("0x1b")]((t=>{if($x("0x13")!=t[$x("0x48")]&&$x("0x47")!=t.type)return;const{data:e}=t;return e?"splitTableCellVertically"==e[$x("0x30")]?{type:$x("0x5"),content:Qo(n,$x("0x10"))}:"splitTableCellHorizontally"==e[$x("0x30")]?{type:$x("0x5"),content:Qo(n,"*Split cell:* horizontally")}:void 0:void 0}));const x=i._acceptFormatSuggestionCallbackFactory();for(const t of["mergeTableCellUp",$x("0x11"),$x("0x16"),$x("0x2b")])o[$x("0x22")][$x("0x2a")]($x("0x13"),t,$x("0x43"),x);for(const t of[$x("0x25"),"splitTableCellHorizontally"])o[$x("0x22")][$x("0x2a")]("formatBlock",t,$x("0x43"),x);o[$x("0x22")].registerCustomCallback($x("0x13"),$x("0x28"),$x("0x43"),(n=>{t[$x("0x49")][$x("0x35")]((o=>{const r=Array.from(e[$x("0x38")]()).map((t=>s.LiveRange[$x("0x4a")](t)));o.setSelection(n),t[$x("0x33")][$x("0x3b")]($x("0x28"))[$x("0x21")](),t[$x("0x20")]($x("0x28"),{forceDefaultExecution:!0});const i=r[$x("0x2c")]((t=>"$graveyard"!=t[$x("0x31")][$x("0x37")]));i[$x("0x3a")]>0&&o[$x("0x29")](i);for(const t of r)t[$x("0x9")]()}))}));for(const e of["mergeTableCellUp",$x("0x16"),$x("0x2b"),$x("0x11")]){const n=t[$x("0x33")][$x("0x3b")](e);n.on($x("0xc"),((e,o,r)=>{if(r){const o=t[$x("0x49")][$x("0x2e")][$x("0x15")].getFirstPosition()[$x("0xd")]()[$x("0x1e")]((t=>t.is("element",$x("0x44"))));this[$x("0x24")](n.value,o)||(e.return=!1,e[$x("0x41")]())}}),{priority:$x("0x4")})}}[$x("0x34")](){const t=this.editor.commands[$x("0x3b")]("mergeTableCells"),e=this[$x("0x3e")][$x("0x1f")][$x("0x3b")]($x("0x1c"));if(!t[$x("0x46")])return!1;const n=e[$x("0xa")](this[$x("0x3e")][$x("0x49")].document[$x("0x15")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x24")](t,e))return!1;return!0}[$x("0x24")](t,e){const n=this[$x("0x3e")][$x("0x1f")][$x("0x3b")]($x("0x36")),o=this[$x("0x3e")].model[$x("0x1")](t),r=this.editor[$x("0x49")][$x("0x1")](e),i=new Set,s=new Set;for(const t of n.getSuggestions())if(($x("0xe")==t[$x("0x48")]||"deletion"==t[$x("0x48")]||$x("0x28")==t[$x("0x12")])&&t[$x("0xb")])for(const e of t.getRanges())e.containsRange(o,!0)&&i.add(t.type+":"+t[$x("0x14")].id),e.containsRange(r,!0)&&s[$x("0xf")](t[$x("0x48")]+":"+t[$x("0x14")].id);if(i[$x("0x17")]!=s.size)return!1;for(const t of i)if(!s[$x("0x42")](t))return!1;return!0}}const Yx=["highest","bindElementToMarker","parent","createTableWalker","item","addMarker:suggestion","afterInit","ck-suggestion-marker-","headingRows","FORMAT_HEADER_ROW","editing","removeMarker:suggestion","FORMAT_REGULAR_ROW","locale","removeAttribute","consumable","options","markerNameToElements","removeClass","markerRange","format","addClass","consume","setTableRowHeader","TrackChangesEditing","_suggestionFactory","data-suggestion","ck-suggestion-marker--active","writer","has","getCellLocation","data","mapper","requires","FORMAT_HEADER_COLUMN","TableEditing","_descriptionFactory","end","registerCustomCallback","forceValue","start","cell","editor","nodeBefore","setAttribute","_handleLegacySuggestions","*Format:* %0","get","_acceptFormatSuggestionCallbackFactory","downcastDispatcher","registerAttributeLabel","includes","toViewElement","_enableDefaultAttributesIntegration","plugins","type","getSuggestion","markerName","formatBlock","setTableColumnHeader","name","commandName","commandParams","accept","FORMAT_REGULAR_COLUMN","_splitMarkerName"];var Jx,Qx;Jx=Yx,Qx=287,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0xa")](){return[zx]}[ta("0x31")](){const t=this.editor;if(!t[ta("0x1f")][ta("0x6")](ta("0xc")))return;const e=t.locale,n=t[ta("0x1f")][ta("0x18")](ta("0x1"));n[ta("0x1e")]("setTableRowHeader",[],[ta("0x33")]),n._enableDefaultAttributesIntegration(ta("0x24"),[],["headingColumns"]),n[ta("0xd")][ta("0x1b")](ta("0x33"),Qo(e,"FORMAT_HEADER_ROW")),n[ta("0xd")].registerAttributeLabel("headingColumns",Qo(e,ta("0xb"))),this[ta("0x16")]()}[ta("0x16")](){const t=this.editor.plugins.get(ta("0x1")),e=this[ta("0x13")].plugins[ta("0x18")]("TableUtils"),n=this.editor[ta("0x1f")].get(zx)[ta("0x19")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(r,i,s)=>{const{type:x,id:a}=t[ta("0x2a")](i[ta("0x22")]),c=t[ta("0x21")](a),l=c[ta("0x8")];if("formatBlock"!=c[ta("0x20")]||!l||ta("0x24")!=l.commandName)return;if(i[ta("0x2f")])return void r.stop();if(!s[ta("0x3a")][ta("0x41")](i[ta("0x3e")],r[ta("0x25")]))return;const u=i[ta("0x3e")][ta("0x11")].nodeAfter,d=i[ta("0x3e")][ta("0xe")][ta("0x14")],g=u[ta("0x2d")][ta("0x2d")],{column:f}=e[ta("0x7")](u),{column:m}=e.getCellLocation(d);for(let r=f;r<=m;r++){const c=e[ta("0x2e")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[ta("0x12")],c=s[ta("0x9")][ta("0x1d")](r);s[ta("0x5")].addClass(ta("0x32")+x,c),o&&s[ta("0x5")][ta("0x15")](ta("0x3"),a,c),s[ta("0x9")][ta("0x2c")](c,i[ta("0x22")]),n&&(t.activeMarkers[ta("0x1c")](i[ta("0x22")])?s.writer[ta("0x40")](ta("0x4"),c):s[ta("0x5")][ta("0x3d")](ta("0x4"),c))}}}}t[ta("0x2")][ta("0xf")](ta("0x23"),ta("0x0"),ta("0x28"),n),t[ta("0x2")].registerCustomCallback(ta("0x23"),ta("0x24"),ta("0x28"),n),this.editor[ta("0x35")][ta("0x1a")].on(ta("0x30"),o(),{priority:ta("0x2b")}),this[ta("0x13")][ta("0x8")][ta("0x1a")].on(ta("0x30"),((t,e,n)=>{n[ta("0x3b")].showSuggestionHighlights&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this[ta("0x13")][ta("0x35")].downcastDispatcher.on(ta("0x36"),((e,n,o)=>{const{type:r,id:i}=t[ta("0x2a")](n[ta("0x22")]),s=t[ta("0x21")](i),x=s[ta("0x8")];if(ta("0x23")!=s[ta("0x20")]||!x||"setTableColumnHeader"!=x[ta("0x26")])return;const a=o[ta("0x9")][ta("0x3c")](n[ta("0x22")]);if(a)for(const t of a)o.writer[ta("0x3d")](ta("0x32")+r,t),o[ta("0x5")][ta("0x3d")](ta("0x4"),t),o[ta("0x5")][ta("0x39")](ta("0x3"),t),o[ta("0x9")].unbindElementFromMarkerName(t,n[ta("0x22")])}),{priority:ta("0x2b")}),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ta("0x13")],e=t[ta("0x38")];function n(t){return{type:ta("0x3f"),content:Qo(e,ta("0x17"),t)}}t[ta("0x1f")].get(ta("0x1"))[ta("0xd")].registerDescriptionCallback((t=>{if(ta("0x23")!=t[ta("0x20")])return;const{data:o}=t;if(o){if(ta("0x0")==o[ta("0x26")]){const t=o.commandParams[0][ta("0x10")];return n(Qo(e,ta(t?"0x34":"0x37")))}if(ta("0x24")==o[ta("0x26")]){const t=o[ta("0x27")][0][ta("0x10")];return n(Qo(e,ta(t?"0xb":"0x29")))}}}))}}const na=["suggestionLoaded","join","suggestionUnloaded","commands","removeMarker","add","getAllAdjacentSuggestions","newRange","cell","columnInsertionRanges","createRangeIn","move","tableCellHorizontalAlignment","*Replace table cells*","endRow","stop","containsRange","markerName","tablePasteCell","differ","has","nodeAfter","discard","registerPostFixer","includes","markerAttributes","some","end","deletionRanges","showSuggestionHighlights","map","editor","getMarkers","markMultiRangeBlockFormat","_getCoordsForCells","document","suggestion","_isForcedDefaultExecutionBlock","unwrap","conversion","element","insertRows","getContainedElement","findAncestor","subType","next","selection","registerDescriptionCallback","ck-suggestion-marker-insertion","plugins","removeMarkers","wrap","_suggestionFactory","createTableWalker","removeColumns","editingDowncast","insertColumns","Users","getSuggestions","markMultiRangeInsertion","getColumns","tableCellBorderStyle","get","TableClipboard","author","tablePasteChainId","tableCellSuggestion","insertion","isInContent","_createdBatches","find","markMultiRangeDeletion","name","paragraph","for","activeMarkers","tablePasteRow","markerToHighlight","high","createElement","tableCellBackgroundColor","getItems","isEqual","getTableIfOnlyTableInContent","isEmpty","last","every","register","getSuggestionCallback","getRange","cells","reduce","columns","value","insertionRanges","registerCustomCallback","oldRange","getChild","model","type","return","set","push","$graveyard","locale","setAttributes","_descriptionFactory","_tablePostFixingSubtypes","suggestion:formatBlock:tablePasteCell","_splitMarkerName","previousSibling","schema","getRows","ck-suggestion-marker--active","getChangedMarkers","ck-suggestion-marker","fill","content","from","TableUtils","insert","createPositionBefore","trackChanges","elementToElement","position","keys","redo","table","_replaceTableSlotCell","getRanges","dataDowncast","markers","insertContent","previous","rowInsertionIndexes","row","formatBlock","tableCellVerticalAlignment","getSuggestion","createRangeOn","forceDefaultExecution","tablePasteColumn","tableCellBorderWidth","deletion","start","view","removeRows","length","updateMarker","tablePaste","hasSuggestion","accept","remove","getChildren","columnInsertionIndexes","rowInsertionRanges","tableCell","fromEntries","getRowIndexes","tableCellPadding","attributes","first","batch","startsWith","requires","change","filter"];var oa,ra;oa=na,ra=171,function(t){for(;--t;)oa.push(oa.shift())}(++ra);const ia=function(t,e){return na[t-=0]},sa=[ia("0x8a"),"tableCellBorderColor",ia("0x39"),ia("0x8"),ia("0x85"),ia("0x4c"),ia("0x9b")],xa=Object[ia("0x99")](sa.map((t=>[t,null])));class aa extends t.Plugin{static get[ia("0xa0")](){return[zx]}afterInit(){const t=this[ia("0x1b")];if(!t[ia("0x2d")].has(ia("0x3b")))return;const n=t.plugins.get("TrackChangesEditing"),o=t[ia("0x2d")][ia("0x3a")](ia("0x73")),r=t.plugins[ia("0x3a")](zx),i=t.plugins[ia("0x3a")](ia("0x3b"));r[ia("0x67")].push(ia("0x48"),ia("0x89")),t[ia("0x5e")][ia("0x6b")][ia("0x53")](ia("0x3e"),{allowIn:ia("0x98"),allowContentOf:ia("0x98"),isLimit:!0}),t[ia("0x23")][ia("0x77")]({model:ia("0x3e"),view:"suggestion-td"});let s=null;t[ia("0x5e")].on(ia("0x80"),((r,x)=>{const[a,c]=x,l=x[x[ia("0x8f")]-1];l&&l[ia("0x88")]||n[ia("0x21")]||this[ia("0x1b")][ia("0xa6")][ia("0x3a")](ia("0x76"))[ia("0x59")]&&function(t,e,n,o,r){if(e&&!e.is("documentSelection"))return!1;const i=r[ia("0x4f")](t,n);if(!i||!la(i,void 0,o))return!1;const s=o.getSelectionAffectedTableCells(n[ia("0x1f")][ia("0x2a")]);if(!s[ia("0x8f")])return!1;const x=s[0][ia("0x27")](ia("0x7b")),a=o[ia("0x9a")](s),c=o.getColumnIndexes(s),l={startRow:a[ia("0x9d")],endRow:a[ia("0x51")],startColumn:c[ia("0x9d")],endColumn:c[ia("0x51")]};return 1==s[ia("0x8f")]&&(l[ia("0xa")]+=o[ia("0x6c")](i)-1,l.endColumn+=o[ia("0x38")](i)-1),la(x,l,o)}(a,c,t.model,o,i)&&(r[ia("0xb")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[ia("0xa1")]((()=>{t.model[ia("0x80")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=s;r[ia("0x8f")]&&n[ia("0x37")](r,"tablePasteRow",{tablePasteChainId:o}),i.length&&n[ia("0x37")](i,ia("0x89"),{tablePasteChainId:o}),a[ia("0x8f")]&&n[ia("0x37")](a,ia("0x91"),{tablePasteChainId:o,skipNestingCheck:!0}),c[ia("0x8f")]&&n[ia("0x43")](c,ia("0x91"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ia("0x1d")](l[ia("0x1a")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ia("0xe"),{tablePasteChainId:o});if(u){const e=u[ia("0x1c")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const i=t[ia("0x5e")][ia("0x87")](o),s=e[ia("0x42")]((t=>t.getRange()[ia("0x4e")](i)));s&&n[ia("0x62")]([s[ia("0x44")],r])}n.length&&u.setAttribute("markerAttributes",Object[ia("0x99")](n))}s=null})))}),{priority:e.priorities[ia("0x4a")]+10}),t[ia("0x2d")][ia("0x3a")](ia("0x3b")).on(ia("0x7c"),((t,e)=>{const[n,o,,r]=e;if(!s)return;t.stop();const i=n[ia("0x4")],x=o,a=ca(i),c=ca(x);t[ia("0x60")]=i;let l=null,u=null;if(c||a)if(a&&!c){r[ia("0x94")](i[ia("0x5d")](0));for(const t of Array[ia("0x72")](x[ia("0x95")]()))r[ia("0x74")](t,i,ia("0x17"));const t=s[ia("0x82")][ia("0x14")](n[ia("0x83")]),e=s.columnInsertionIndexes[ia("0x14")](n.column);t||e||(l=r[ia("0x6")](i))}else c&&!a&&(u=r[ia("0x6")](i));else{const t=r.createElement(ia("0x3e")),e=r[ia("0x4b")](ia("0x3e"));r[ia("0x2f")](r[ia("0x6")](i),e),r[ia("0x74")](t,i,0);for(const e of Array[ia("0x72")](x[ia("0x95")]()))r[ia("0x74")](e,t,"end");l=r[ia("0x87")](t),u=r[ia("0x87")](e)}const d=Array[ia("0x72")](x.getAttributes())[ia("0xa2")]((([t])=>sa[ia("0x14")](t)));s[ia("0x56")][ia("0x62")]({element:i,attributes:d.length?Object[ia("0x99")](d):null}),l&&s[ia("0x5a")][ia("0x62")](l),u&&s[ia("0x18")][ia("0x62")](u)}),{priority:ia("0x4a")}),o.on(ia("0x34"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x58")]||1;s[ia("0x96")]=new Array(a)[ia("0x70")](x)[ia("0x1a")](((t,e)=>t+e));for(const{cell:e}of o[ia("0x31")](r,{startColumn:x,endColumn:x+a-1}))s[ia("0x5")][ia("0x62")](t[ia("0x5e")].createRangeOn(e))}),{priority:"low"}),o.on(ia("0x25"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i.rows||1;s[ia("0x82")]=new Array(a)[ia("0x70")](x).map(((t,e)=>t+e));for(const{cell:e}of o[ia("0x31")](r,{startRow:x,endRow:x+a-1}))s[ia("0x97")][ia("0x62")](t[ia("0x5e")][ia("0x87")](e))}),{priority:"low"}),n[ia("0x66")][ia("0x2b")]((e=>{if(e[ia("0x28")]&&e.subType[ia("0x9f")](ia("0x91")))return e[ia("0x81")]?{}:{type:ia("0x3f"),content:Qo(t[ia("0x64")],ia("0x9"))}}));const x=()=>!1;for(const t of[ia("0x91"),ia("0x89"),"tablePasteRow",ia("0xe")])n[ia("0x30")][ia("0x5b")](ia("0x3f"),t,"join",x),n[ia("0x30")].registerCustomCallback(ia("0x8b"),t,ia("0xa4"),x),n._suggestionFactory[ia("0x5b")](ia("0x84"),t,"join",x);n[ia("0x30")][ia("0x5b")]("formatBlock",ia("0xe"),ia("0x12"),x),n[ia("0x30")].registerCustomCallback("formatBlock",ia("0xe"),ia("0x93"),((e,n,o)=>{const r=e[ia("0x1a")]((t=>t[ia("0x26")]())).filter((t=>t)),i=new Map(r[ia("0x1a")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s.cells)e&&i[ia("0x61")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object.entries(o[ia("0x15")])){const o=t[ia("0x5e")][ia("0x7f")].get(e),r=o?o[ia("0x55")]()[ia("0x26")]():null;r&&i.set(r,n)}t[ia("0x5e")][ia("0xa1")]((t=>{for(const[e,n]of i)t[ia("0x65")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ia("0x30")].registerCustomCallback(e,ia("0x91"),o,((r,i,s)=>{t.model[ia("0xa1")]((t=>{const x=[];for(const t of r){const e=t[ia("0x8c")][ia("0x11")];e.is("element",ia("0x3e"))&&x.push(e)}n[ia("0x30")][ia("0x54")](e,null,o)(r,i,s);for(const e of x)ia("0x63")!=e.root.rootName&&t.unwrap(e)}))}))};a(ia("0x3f"),ia("0x93")),a(ia("0x3f"),ia("0x12")),a("deletion",ia("0x93")),a(ia("0x8b"),"discard"),n[ia("0x30")][ia("0x5b")](ia("0x3f"),ia("0x48"),ia("0x12"),(t=>{const e=t[ia("0x1a")]((t=>t.getContainedElement())),n=e[0][ia("0x27")](ia("0x7b")),{minRow:i,maxRow:s}=r[ia("0x1e")](e);o[ia("0x8e")](n,{at:i,rows:s-i+1})})),n[ia("0x30")].registerCustomCallback(ia("0x3f"),ia("0x89"),ia("0x12"),(t=>{const e=t[ia("0x1a")]((t=>t[ia("0x26")]())),n=e[0].findAncestor(ia("0x7b")),{minColumn:i,maxColumn:s}=r._getCoordsForCells(e);o[ia("0x32")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0x28")]||!e[ia("0x28")].startsWith(ia("0x91")))return;const o=e.attributes[ia("0x3d")],r=n[ia("0x36")]()[ia("0xa2")]((t=>t[ia("0x40")]&&t[ia("0x9c")]&&t[ia("0x9c")][ia("0x3d")]==o));r[ia("0x8f")]&&e[ia("0x2")]()[ia("0x8f")]!=r[ia("0x8f")]&&r[ia("0x57")](((t,e)=>(t[ia("0x29")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[ia("0x69")](t[ia("0xd")]),r=[ia("0x6f"),ia("0x2c")],i=n[ia("0x47")].includes(t.markerName);return i&&r[ia("0x62")](ia("0x6d")),{classes:r,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on(ia("0xa3"),c,{priority:"high"}),n.on(ia("0xa5"),c,{priority:ia("0x4a")}),t[ia("0x5e")].document.registerPostFixer((()=>{let e=!1;const o=Array[ia("0x72")](t[ia("0x5e")][ia("0x1f")][ia("0xf")][ia("0x6e")]());for(const{name:r,data:i}of o){const{group:o,type:s,id:x}=n._splitMarkerName(r);if(ia("0x20")!=o||ia("0x8b")!=s||i[ia("0x5c")])continue;if(!n[ia("0x92")](x))continue;const a=n[ia("0x86")](x).getRanges(),c=t[ia("0x2d")].get(ia("0x35")).me;for(const t of n.getSuggestions())if(t.isInContent&&t.author==c&&ia("0x84")==t[ia("0x5f")]&&ia("0xe")==t[ia("0x28")]&&t[ia("0x7d")]()[ia("0x52")]((t=>a[ia("0x16")]((e=>e[ia("0xc")](t,!0))))))for(const n of t[ia("0x2")]())n[ia("0x40")]&&(n[ia("0x12")](),e=!0)}return e})),t.model[ia("0x1f")].registerPostFixer((e=>{const o=t[ia("0xa6")][ia("0x3a")](ia("0x7a"));if(!o||!o[ia("0x41")][ia("0x10")](e[ia("0x9e")]))return!1;let r=!1;const i=t[ia("0x2d")].get(ia("0x35")).me,s=t.model[ia("0x1f")][ia("0xf")].getChanges(),x=Array[ia("0x72")](t[ia("0x5e")].document[ia("0xf")][ia("0x6e")]()).filter((({name:t,data:e})=>{const{group:o,subType:r,authorId:s}=n[ia("0x69")](t);return ia("0x20")==o&&"tablePaste"==r&&s==i.id&&!e[ia("0x5c")]}));for(const t of s){if(ia("0x74")!=t[ia("0x5f")]||"tableCellSuggestion"!=t.name||1!=t[ia("0x8f")])continue;const n=e.createRange(t.position,t[ia("0x78")].getShiftedBy(1));if(!x[ia("0x42")]((({data:t})=>t.newRange[ia("0x4e")](n))))for(const{name:t,data:o}of x)if(n[ia("0xc")](o[ia("0x3")])){e[ia("0x90")](t,{range:n}),r=!0;break}}return r})),t[ia("0x5e")].document[ia("0x13")]((e=>{let o=!1;const r=t[ia("0x2d")][ia("0x3a")](ia("0x35")).me,i=n[ia("0x36")]()[ia("0xa2")]((t=>t[ia("0x40")]&&t[ia("0x3c")]==r)),s=new Set,x=new Set;for(const t of i)if(ia("0x91")==t[ia("0x28")])for(const e of t.getMarkers()){const n=e[ia("0x55")]().getContainedElement();if(n)if(n.is("element",ia("0x3e"))&&ca(n)){t[ia("0x0")](e[ia("0x44")]),s[ia("0x1")](n),o=!0;const r=n.nextSibling,i=n[ia("0x6a")],a=r&&r.is("element",ia("0x3e")),c=i&&i.is("element",ia("0x3e"));a&&!s[ia("0x10")](r)&&x.add(r),c&&!s[ia("0x10")](i)&&x[ia("0x1")](i)}else n.is(ia("0x24"),ia("0x45"))&&n.isEmpty&&(t.removeMarker(e[ia("0x44")]),o=!0)}else if("tablePasteCell"==t[ia("0x28")]){if(!t.attributes||!t[ia("0x9c")][ia("0x3d")])continue;const e=t[ia("0x9c")][ia("0x15")];if(e&&Object[ia("0x79")](e)[ia("0x8f")])continue;const n=t[ia("0x9c")][ia("0x3d")];let r=!0,s=!0;for(const e of i)if(e[ia("0x28")]&&e.subType[ia("0x9f")](ia("0x91"))){if(!e.attributes[ia("0x3d")]){s=!1;break}if(e.id!=t.id&&e[ia("0x9c")][ia("0x3d")]==n){r=!1;break}}s&&r&&(t[ia("0x2e")](),o=!0)}for(const t of s)e.remove(t);for(const t of x)e[ia("0x22")](t);return o})),t[ia("0x23")][ia("0x46")](ia("0x33"))[ia("0x49")]({model:ia("0x68"),view:(t,e)=>l(t),converterPriority:ia("0x4a")}),t.conversion.for(ia("0x7e"))[ia("0x49")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e.options[ia("0x19")]?l(t,!1):null,converterPriority:ia("0x4a")});const u=t.editing[ia("0x8d")];this.listenTo(u[ia("0x1f")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[ia("0x6")](e[ia("0x71")])[ia("0x4d")]())t.is(ia("0x24"),"suggestion-td")&&n.push(t);u.change((t=>{for(const e of n)t[ia("0x7")](t[ia("0x6")](e),t[ia("0x75")](e)),t.remove(e)}))}))}}function ca(t){if(t[ia("0x50")])return!0;const e=t[ia("0x5d")](0);return e.is("element",ia("0x45"))&&e[ia("0x50")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:i}of n[ia("0x31")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=i)return!1;return!0}const ua=["getContainedElement","TableColumnResizeEditing","bind","change","has","locale","Users","formatInline","resizeTableWidth","editor","formatGroupId","model","accept","subType","registerCustomCallback","plugins","getColumnGroupElement","selection","getTableColumnsWidths","get","columnWidths","document","formatBlock","discard","resizeTable","TrackChangesEditing","tableWidth","data","markBlockFormat","type","getSuggestions","*Format:* resize table","author","_suggestionFactory","enableCommand","getSelectedElement","getSuggestionCallback"];var da,ga;da=ua,ga=365,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{afterInit(){if(!this.editor[fa("0x14")][fa("0x9")](fa("0x6")))return;const t=this[fa("0xe")][fa("0x14")][fa("0x18")](fa("0x1e"));t[fa("0x2")](fa("0xd"),this.handleResizeTableWidthCommand[fa("0x7")](this)),t[fa("0x1")][fa("0x13")]("formatBlock",fa("0x1d"),fa("0x11"),t[fa("0x1")].getSuggestionCallback("formatBlock",null,fa("0x1c"))),t[fa("0x1")].registerCustomCallback(fa("0x1b"),fa("0x1d"),fa("0x1c"),t[fa("0x1")][fa("0x4")](fa("0x1b"),null,fa("0x11"))),t._descriptionFactory.registerDescriptionCallback(this.handleSuggestionDescription.bind(this))}handleResizeTableWidthCommand(t,e){const n=this[fa("0xe")][fa("0x14")].get(fa("0x1e")),o=this[fa("0xe")][fa("0x14")].get("TableColumnResizeEditing"),r=e.table||this[fa("0xe")][fa("0x10")][fa("0x1a")][fa("0x16")][fa("0x3")]();this[fa("0xe")].model[fa("0x8")]((()=>{const i=o[fa("0x15")](r);let s=i?o[fa("0x17")](i):null,x=r.getAttribute("tableWidth")||null;const a=e.tableWidth||x,c=e[fa("0x19")]||s,l=this[fa("0xe")][fa("0x14")][fa("0x18")](fa("0xb")).me;for(const t of n[fa("0x23")]()){const e=t[fa("0x5")]();if(fa("0x1d")===t[fa("0x12")]&&e===r){t[fa("0x0")]!==l&&t[fa("0x1c")]();const e=t[fa("0x20")].commandParams;x=e[0][fa("0x1f")],s=e[0][fa("0x19")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[fa("0x21")](r,{commandName:fa("0xd"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x1d")},[],"resizeTable")}))}handleSuggestionDescription(t){if(fa("0x1b")!=t[fa("0x22")]&&fa("0xc")!=t[fa("0x22")])return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0xf")]){const t=fa("0x24");return{type:"format",content:Qo(this.editor[fa("0xa")],t)}}}}const ha=["has","Template","insertTemplate","get","editor","enableCommand","plugins","afterInit"];var pa,ba;pa=ha,ba=134,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x1")](){const t=this[Ea("0x6")];t[Ea("0x0")][Ea("0x2")](Ea("0x3"))&&t[Ea("0x0")][Ea("0x5")]("TrackChangesEditing")[Ea("0x7")](Ea("0x4"))}}const Ta=["insertTableOfContents","enableCommand","plugins","registerElementLabel","commands","_descriptionFactory","locale","get","TrackChangesEditing","afterInit"];var ya,Ca;ya=Ta,Ca=210,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x9")](){const t=this.editor;if(!t[Aa("0x4")].get(Aa("0x0")))return;t[Aa("0x2")][Aa("0x7")](Aa("0x8"))[Aa("0x1")](Aa("0x0"));const e=t[Aa("0x2")][Aa("0x7")](Aa("0x8")),n=t[Aa("0x6")];e[Aa("0x5")][Aa("0x3")]("tableOfContents",(t=>Qo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const Ia=["Title","end","isCollapsed","TrackChangesEditing","document","get","isEqual","getNearestSelectionRange","updateMarker","has","start","createRange","locale","plugins","forward","getChangedMarkers","differ","ELEMENT_TITLE","newRange","schema","model","afterInit","title-content","suggestion","nodeBefore","_descriptionFactory","removeMarker","isTouching"];var Sa,Ra;Sa=Ia,Ra=473,function(t){for(;--t;)Sa.push(Sa.shift())}(++Ra);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[va("0x18")](){const t=this.editor;if(!t[va("0x10")][va("0xc")](va("0x3")))return;const e=t[va("0x10")][va("0x8")](va("0x6"));e[va("0x0")].registerElementLabel(va("0x19"),(()=>Qo(t[va("0xf")],va("0x14")))),t[va("0x17")][va("0x7")].registerPostFixer((n=>{let o=!1;const r=Array.from(t[va("0x17")][va("0x7")][va("0x13")][va("0x12")]());for(const{name:i,data:s}of r){const{group:r}=e._splitMarkerName(i);if(va("0x1a")!==r||!s[va("0x15")])continue;const x=s[va("0x15")],a=x[va("0x4")][va("0x1b")];if(!a||!a.is("element",va("0x19")))continue;if(!x[va("0xd")][va("0x2")](x[va("0x4")]))continue;const c=t[va("0x17")][va("0x16")][va("0xa")](x[va("0x4")],va("0x11"));if(c&&c[va("0x5")]){const t=n[va("0xe")](x.start,c[va("0xd")]);t[va("0x9")](x)||(n[va("0xb")](i,{range:t}),o=!0)}o||(n[va("0x1")](i),o=!0)}return o}))}}const La=["get","undo","afterInit","editor","enableCommand","UndoEditing","redo","plugins","TrackChangesEditing"];var Ma,wa;Ma=La,wa=119,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x0")](){const t=this[Oa("0x1")],e=t[Oa("0x5")][Oa("0x7")](Oa("0x6"));t.plugins.has(Oa("0x3"))&&(e[Oa("0x2")](Oa("0x8")),e.enableCommand(Oa("0x4")))}}const Da=["editor","has","get","plugins","enableCommand","TableCaptionEditing","toggleTableCaption","requires","afterInit"];var Ba,Pa;Ba=Da,Pa=336,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x4")](){return[zx]}[Ua("0x5")](){const t=this[Ua("0x6")];t[Ua("0x0")][Ua("0x7")](Ua("0x2"))&&t[Ua("0x0")][Ua("0x8")]("TrackChangesEditing")[Ua("0x1")](Ua("0x3"))}}const Ga=["TableCellPropertiesEditing","getSuggestionCallback","registerDescriptionCallback","_suggestionFactory","document","tableAlignment","plugins","tableCellBorderWidth","TablePropertiesEditing","selection","*Format:* change table cell properties","join","handleSuggestionDescription","getContainedElement","getSelectionAffectedTableCells","tableBorderWidth","enqueueChange","editor","formatBlock","nodeAfter","handleDiscardAction","tableCellBorderColor","TrackChangesTableProperties","tableBackgroundColor","has","_descriptionFactory","change","_handlePropertyChange","tableCellPadding","enableCommand","getSuggestions","commandParams","tableCellWidth","start","discard","tableCellHeight","locale","findAncestor","tableCellProperties","format","table","_getSuggestion","TableUtils","registerCustomCallback","accept","tableBorderColor","tableProperties","subType","pluginName","tableCellVerticalAlignment","tableCellBorderStyle","get","model","tableCellHorizontalAlignment","getFirstPosition","TrackChangesEditing","*Format:* change table properties"];var Ha,Va;Ha=Ga,Va=435,function(t){for(;--t;)Ha.push(Ha.shift())}(++Va);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this.tableProperties=[za("0x9"),"tableBorderStyle",za("0x24"),za("0x1a"),"tableWidth","tableHeight",za("0x2c")],this[za("0x2")]=[za("0x2a"),za("0xe"),za("0x1c"),za("0x31"),za("0x35"),za("0x38"),"tableCellBackgroundColor",za("0x11"),za("0xd")]}static get[za("0xc")](){return za("0x2b")}afterInit(){const t=this.editor[za("0x1b")].get("TrackChangesEditing");if(this.editor[za("0x1b")][za("0x2d")](za("0x1d"))){for(const e of this[za("0xa")])t[za("0x32")](e,((t,n)=>{const o=this[za("0x26")][za("0x10")][za("0x19")][za("0x1e")][za("0x12")]()[za("0x1")](za("0x4"));this[za("0x30")](e,[o],this[za("0xa")],"tableProperties",t,n)}));t[za("0x18")][za("0x7")]("formatBlock",za("0xa"),za("0x8"),t._suggestionFactory.getSuggestionCallback(za("0x27"),null,za("0x37"))),t._suggestionFactory[za("0x7")]("formatBlock",za("0xa"),za("0x37"),((t,e)=>this[za("0x29")](this.tableProperties,t,e))),t._suggestionFactory[za("0x7")](za("0x27"),za("0xa"),za("0x20"),(()=>!1))}if(this[za("0x26")][za("0x1b")][za("0x2d")](za("0x15"))){for(const e of this[za("0x2")])t[za("0x32")](e,((t,n)=>{const o=this.editor.plugins[za("0xf")](za("0x6"))[za("0x23")](this[za("0x26")].model[za("0x19")].selection);this._handlePropertyChange(e,o,this[za("0x2")],za("0x2"),t,n)}));t[za("0x18")][za("0x7")]("formatBlock",za("0x2"),za("0x8"),t[za("0x18")][za("0x16")](za("0x27"),null,za("0x37"))),t[za("0x18")][za("0x7")]("formatBlock",za("0x2"),za("0x37"),((t,e)=>this.handleDiscardAction(this[za("0x2")],t,e))),t._suggestionFactory[za("0x7")](za("0x27"),"tableCellProperties",za("0x20"),(()=>!1))}t[za("0x2e")][za("0x17")]((t=>this[za("0x21")](t)))}_handlePropertyChange(t,e,n,o,r,i){const s=this[za("0x26")][za("0x1b")].get(za("0x13"));this.editor[za("0x10")][za("0x25")](i.batch,(()=>{for(const t of e)if(this[za("0x5")](t,o))r(i);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}r(i),s.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[za("0x29")](t,e,n){const o=e[0][za("0x36")][za("0x28")],r=n[za("0x34")][0];this.editor[za("0x10")][za("0x2f")]((e=>{for(const n of t)void 0!==r[n]?e.setAttribute(n,r[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t.data)switch(t[za("0xb")]){case za("0xa"):return{type:"format",content:Qo(this[za("0x26")][za("0x0")],za("0x14"))};case za("0x2"):return{type:za("0x3"),content:Qo(this[za("0x26")].locale,za("0x1f"))}}}[za("0x5")](t,e){const n=this[za("0x26")][za("0x1b")][za("0xf")](za("0x13"));for(const o of n[za("0x33")]({skipNotAttached:!0})){const n=o[za("0x22")]();if(o.subType===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=rt?rt.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,r,i){var s=-1,x=e.length;for(o||(o=tc),i||(i=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,r,i):sn(i,a):r||(i[i.length]=a)}return i};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var rc=Math.max;const ic=function(t,e,n){return e=rc(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,i=rc(o.length-e,0),s=Array(i);++r<i;)s[r]=o[e+r];r=-1;for(var x=Array(e+1);++r<e;)x[r]=o[r];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),r=16-(o-n);if(n=o,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(ic(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=po(e,t),o||(o=e.length>1),e})),ie(t,dn(t),n),o&&(n=to(n,7,Ja));for(var r=e.length;r--;)Ko(n,e[r]);return n})),uc=["markAttributeChange","dataDowncast","_cutOutSuggestionMarker","model","every","forceDefaultExecution","addMarker:suggestion:attribute","size","addAttribute","isAfter","acceptSuggestion","has","_registerInlineAttribute","_defaultCallbacks","LEAVE","getWalker","getShiftedBy","accept","includes","_isDataLoaded","toJSON","error-saving-suggestion-data-suggestion-discarded","addSuggestion","_suggestionFactory","isRemovable","get","elementEnd","createRangeIn","changeAttribute","toUpperCase","markDeletion","addHighlight","_setSuggestionRange","change:_saved","_handleNewSuggestionMarker","nodeAfter","containsRangeInObject","activeMarkers","_getAuthorFromId","plugins","version","_registerDefaultCallbacks","_initAriaMarkerChangeAnnouncements","ck-suggestion-marker--active","elementStart","getFirstRange","addMarker:suggestion","commentThread","trackChanges.mergeNestedSuggestions","getMultiRangeId","fire","isLimit","isBlock","deletion:accept","attribute","formatInline:discard","substr","author","acceptSelectedSuggestions","formatBlock:join","selection","getOperations","setAttribute","newValue","isSelectable","bindElementToMarker","oldName","ck-suggestion-marker-formatInline","formatInline","markerNameToElements","updateMarker","originalSuggestionId","insert","document","default","from","mapper","addClass","markInlineFormat","removeMarker:suggestion:attribute","push","trackChangesCommand","_createSuggestion","Users","updateSuggestion","skipNestingCheck","locale","name","getAttribute","targetPosition","_getExternalAuthor","markMultiRangeDeletion","external:","FORMATTING","isOwn","_joinSuggestions","stop","_checkSuggestionCorrectness","remove","getContainedElement","createdAt","track-changes-suggestion-not-found","attribute:","range","_model","addCommentThread","map","move","listenTo","createRange","_addSuggestionMarker","discardSuggestion","conversion","_setSuggestionData","containsRange","previous","getChangedMarkers","markInsertion","keys","requires","getSuggestion","isNextTo","enqueueChange","_joinWithAdjacentSuggestions","howMany","_enabledCommands","insertion:","update:suggestion","hasCommentThread","notReady","some","find","CommentsRepository","acceptAllSuggestions","rootName","deletion:chain","getItems","upcast","_getSuggestionData","markerToHighlight","isMultiRange","data","_suggestions","formatBlock:discard","markerName","formatBlock:","formatBlock:accept","unshift","deleteContent","_trackFormatChanges","_enableDefaultAttributesIntegration","formatBlock","add","trackChanges","formatInline:chain","creator","unbind","_processAttributeChanges","attribute:join","_rangeIsInLocalUserInsertion","@external","isObject","isUndo","fromRange","reconvertMarker","formatInline:join","filter","isInContent","detach","setSelection","track-changes-adapter-already-set","dataReady","values","buildSuggestion","track-changes-command-not-found","_adapter","insertion:chain","discardSelectedSuggestions","batch","_breakSuggestionMarker","$marker","substring","isAtEnd","position","attributeKey","containerElement","newRange","join","addMarker","clone","_saved","isBefore","getDifference","track-changes-suggestion-data-mismatch","trackChanges.trackFormatChanges","suggestionChanged","change","registerPostFixer","isCollapsed","$graveyard","rejected","_isBlockAttribute","markBlockFormat","head","getMarkers","suggestion:attribute:","_updateSuggestionData","deletion","toViewElement","insertContent","assign","commands","formatGroupId","high","addRange","removeMarker","_refreshSuggestionsChain","deletion:","isLocal","$elementName","startsWith","editor","getSuggestionCallback","_recordAttributeChanges","length","subType","insertion","item","isInsideObject","parent","ck-suggestion-marker","_inlineAttributeKeys","_isForcedDefaultExecutionBlock","containsPosition","always","differ","comments","suggestion","_reduceSuggestionAttributeRange","formatBlock:chain","oldRange","PENDING_ACTION_SUGGESTION","removeComment","ENTER","removeClass","isExternal","for","normal","change:data","split","root","enableReadOnlyMode","$textProxy","attribute:discard","sort","createPositionAt","ready","isArray","pop","key","set","createElement","delete","_getMarkerAnnouncementText","hasSuggestion","discard","marker-count","type","execute","end","discardAllSuggestions","oldValue","showSuggestionHighlights","history","_mergeNestedSuggestions","suggestionLoaded","_commentsRepository","then","markMultiRangeBlockFormat","markerReady","unbindElementFromMarkerName","_findSuggestions","dataToMarker","consumable","applyOperation","value","removeAttribute","chain","removeMarkers","getRanges","attributes","addSuggestionData","element","_blockAttributeKeys","config","highest","_recordAttributeSuggestionsFromVersion","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","addMarkerName","start","_splitMarkerName","adapter","formatInline:","_registerBlockAttribute","getFirstMarker","newName","options","createPositionAfter","forEach","widget","suggestion:","getLastMatchingPosition","writer","getSuggestions","attributeOldValue","addMarker:suggestion:formatBlock","isTouching","_suggestionState","resolve","containsItem","open","nodeBefore","return","hasComments","removeMarker:suggestion:formatBlock","createSelection","data-suggestion","getRange","never","_editor","removed","rethrowUnexpectedError","backward","refresh","isIntersecting","getUser","ck-suggestion-marker-formatBlock","define","splice","markMultiRangeInsertion","TrackChangesEditing","multipleBlocks","_removeSuggestion","authoredAt","commandName","track-changes-adapter-missing-getsuggestion","_onDiscard","createPositionBefore","getAllAdjacentSuggestions","_reduceExistingSuggestions","editingDowncast","isEqual","init","getCommentThread","schema","setTo","rename","markers","addComment","groupId","getCustomProperty","tablePasteChainId","next","enableCommand","after","multi","_processAttributeSuggestions","getIntersection","_SUGGESTION_ANNOUNCEMENT","_customCallbacks","consume","isIntersectingWithRange"];var dc,gc;dc=uc,gc=446,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc="$elementName";class hc extends t.Plugin{static get[fc("0x2d")](){return[fc("0x3a"),i.Users,t.PendingActions,cr,fr,_r,kr,Lr,Dr,Hr,ti,ii,li,hi,Ti,Si,Mi,Pi,Vi,Xi,Qi,rs,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,Rx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get pluginName(){return fc("0x10a")}constructor(t){function e(t){return t[fc("0x20")]((t=>String.fromCharCode(t))).join("")}super(t),this[fc("0xde")]=null,this[fc("0xba")](fc("0x14f"),[]),this.on("change:activeMarkers",((e,n,o,r)=>{this[fc("0x1e")][fc("0x7a")]((()=>{for(const e of[...r,...o])this[fc("0x1e")][fc("0x11b")][fc("0x135")](e)&&t.editing[fc("0x5a")](e)}))})),this._descriptionFactory=new rr(this.editor[fc("0x12d")][fc("0x118")],this[fc("0x93")][fc("0xc")]),this[fc("0x65")]=null,this[fc("0x141")]=new pc(this[fc("0x93")]),this._suggestions=new Map,this[fc("0xca")]=t[fc("0x151")].get(fc("0x3a")),this._enabledCommands=new Set,this._model=this[fc("0x93")].model,this._suggestionState=new WeakMap,this[fc("0x9e")]=!1,this[fc("0xdb")]=new Set(["$elementName"]),this[fc("0x9d")]=new Set,t[fc("0xdc")][fc("0x107")](fc("0x78"),fc("0x0")),this[fc("0x4b")]=t[fc("0xdc")][fc("0x143")]("trackChanges.trackFormatChanges"),t[fc("0xdc")][fc("0x107")](fc("0x15a"),!0),this._mergeNestedSuggestions=t.config[fc("0x143")](fc("0x15a")),this[fc("0x7")]=new d(t,this[fc("0x33")]),this._initAriaMarkerChangeAnnouncements(),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,50,52,50,56])}[fc("0x116")](){const t=this[fc("0x93")],n=(t,e)=>{if(fc("0x160")!=t)return"ck-suggestion-marker-"+t;const n=e[fc("0xaf")]("|")[0];return this[fc("0x7f")](n)?fc("0x106"):fc("0x16d")};t[fc("0x26")][fc("0xac")](fc("0x114"))[fc("0x41")]({model:fc("0xa3"),view:t=>{const{id:e,type:o,subType:r}=this._splitMarkerName(t.markerName),i=["ck-suggestion-marker",n(o,r)];let s=3e3;return this[fc("0x14f")][fc("0x13c")](t[fc("0x46")])&&(i[fc("0x6")]("ck-suggestion-marker--active"),s=3010),fc("0x85")==o&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[fc("0xac")](fc("0x12b")).add((e=>{e.on(fc("0x158"),((e,n,o)=>{if(!o[fc("0xe8")].showSuggestionHighlights)return;const r=n[fc("0x99")];if(!r)return;const i=o[fc("0x2")][fc("0x86")](r);t[fc("0x12d")].schema.isObject(r)&&i&&!i[fc("0x11e")](fc("0xeb"))&&i.is(fc("0x6f"))&&(0,x.toWidget)(i,o.writer)}),{priority:fc("0x8b")})})),t[fc("0x26")][fc("0xac")](fc("0x12b")).markerToHighlight({model:fc("0xa3"),view:(t,e)=>{if(!e[fc("0xe8")][fc("0xc6")])return null;const{type:o,subType:r}=this[fc("0xe2")](t[fc("0x46")]);return{classes:["ck-suggestion-marker",n(o,r)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,r,i)=>{if(!r.item)return;const{id:s}=this[fc("0xe2")](r[fc("0x46")]);if(n){const t=Rc(this._suggestions.get(s));if(!this[fc("0x7f")](t))return}if(r[fc("0x99")].is(fc("0x166")))return void i[fc("0xd1")][fc("0x128")](r[fc("0x99")],o[fc("0xd")]);const x=i.mapper[fc("0x86")](r.item);if(r[fc("0x99")].is(fc("0xda"))&&t[fc("0x12d")][fc("0x118")][fc("0x15e")](r[fc("0x99")])&&!x[fc("0x11e")](fc("0x149"))){i.writer[fc("0x3")]([fc("0x9c"),"ck-suggestion-marker-formatBlock"],x),i[fc("0xee")][fc("0x168")](fc("0xfc"),s,x),i[fc("0x2")][fc("0x16b")](x,r.markerName),e&&(this.activeMarkers.includes(r.markerName)?i[fc("0xee")][fc("0x3")]("ck-suggestion-marker--active",x):i.writer.removeClass("ck-suggestion-marker--active",x));for(const e of t.model[fc("0x145")](r[fc("0x99")])[fc("0x3e")]())i[fc("0xd1")].consume(e,o[fc("0xd")]);i.consumable[fc("0x128")](r.item,o[fc("0xd")])}};t[fc("0x26")][fc("0xac")](fc("0x12b"))[fc("0x4e")]((t=>{t.on(fc("0xf1"),((t,e,n)=>{n.options[fc("0xc6")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0xdd")})})),t[fc("0x26")][fc("0xac")](fc("0x12b")).add((t=>{t.on(fc("0x130"),((t,e,n)=>{n[fc("0xe8")][fc("0xc6")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t[fc("0x26")].for(fc("0x12b")).markerToData({model:fc("0xa3"),view:(t,e)=>e[fc("0xe8")].showSuggestionHighlights?null:{group:fc("0xa3"),name:t[fc("0x162")](11)}}),t.conversion.for(fc("0x3f")).elementToElement({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0xec")+t[fc("0xe")]("suggestion-type")+":"+t.getAttribute("id");return t[fc("0xe")](fc("0xc0"))&&(n+=":"+t[fc("0xe")](fc("0xc0"))),e[fc("0xbb")](fc("0x6a"),{"data-name":n})}}),t[fc("0x26")][fc("0xac")](fc("0x3f"))[fc("0xd0")]({view:fc("0xa3")}),t[fc("0x26")].for(fc("0x114"))[fc("0x4e")]((t=>{t.on(fc("0xf1"),o(),{priority:fc("0x8b")})})),t[fc("0x26")][fc("0xac")](fc("0x114"))[fc("0x4e")]((t=>{t.on(fc("0x130"),o({isAttributeSuggestion:!0}),{priority:fc("0x8b")})})),t[fc("0x26")][fc("0xac")](fc("0x114")).add((t=>{t.on(fc("0xfa"),((t,e,n)=>{const o=n[fc("0x2")][fc("0x16f")](e.markerName);if(o)for(const t of o)t.getCustomProperty(fc("0x149"))||(n.writer[fc("0xaa")]([fc("0x9c"),fc("0x106"),fc("0x155")],t),n[fc("0xee")][fc("0xd4")](fc("0xfc"),t),n.mapper.unbindElementFromMarkerName(t,e.markerName))}),{priority:fc("0x8b")})})),t.conversion[fc("0xac")](fc("0x114")).add((t=>{t.on(fc("0x5"),((t,e,n)=>{const o=n[fc("0x2")][fc("0x16f")](e.markerName);if(!o)return;const{id:r}=this._splitMarkerName(e[fc("0x46")]),i=Rc(this[fc("0x44")][fc("0x143")](r));if(this[fc("0x7f")](i))for(const t of o)t[fc("0x11e")]("addHighlight")||(n.writer[fc("0xaa")](["ck-suggestion-marker",fc("0x106"),fc("0x155")],t),n.writer.removeAttribute(fc("0xfc"),t),n[fc("0x2")][fc("0xce")](t,e[fc("0x46")]))}),{priority:"high"})})),t[fc("0x12d")].document[fc("0x7b")]((e=>{let n=!1;const o=Array[fc("0x1")](t[fc("0x12d")][fc("0x173")].differ[fc("0x2a")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this._splitMarkerName(x);if(fc("0xa3")!==o)continue;const d=this[fc("0x44")][fc("0x143")](u);if(null!=a[fc("0x70")]){fc("0x16e")==c&&(n=n||_c(a[fc("0x70")],x,e,t[fc("0x12d")][fc("0x118")]));const o=fc("0x160")==c&&this._isBlockAttribute(l[fc("0xaf")]("|")[0]);if(a[fc("0x70")][fc("0x7c")]||fc("0x7d")==a[fc("0x70")][fc("0xb0")][fc("0x3c")]||"formatBlock"==c&&!yc(a[fc("0x70")])||o&&!yc(a[fc("0x70")])||"deletion"==c&&(Ec(s=a[fc("0x70")])||(i=s)[fc("0xe1")][fc("0x9b")]==i[fc("0xc3")][fc("0xf7")]&&i[fc("0xe1")][fc("0x6c")]))e[fc("0x8d")](x),n=!0;else{if(!d||!d[fc("0x5d")])continue;r.add(d)}}}var i,s;return r[fc("0x131")]>0&&(n=!!this[fc("0x31")](r)||n),n})),t.model.document[fc("0x7b")]((e=>{let n=!1;for(const o of t[fc("0x12d")][fc("0x173")].differ.getChanges())if(fc("0x172")==o[fc("0xc1")])for(const o of this[fc("0x44")][fc("0x62")]()){if(o.isMultiRange||!o[fc("0x5d")])continue;const r=fc("0x4d")==o.type,i=Rc(o),s=i&&this[fc("0x7f")](i);if(!r&&!s)continue;const x=o[fc("0x157")]();if(x[fc("0xe1")][fc("0x9b")]!=x[fc("0xc3")].parent&&!x[fc("0xc3")][fc("0x6c")]){const r=t.model[fc("0xb5")](x[fc("0xe1")][fc("0x14d")],fc("0xc3")),i=t[fc("0x12d")][fc("0x23")](x[fc("0xe1")],r);e.updateMarker(o[fc("0xe6")](),{range:i}),n=!0}}return n})),t[fc("0x12d")][fc("0x173")][fc("0x7b")]((t=>this[fc("0x53")](t))),t.model[fc("0x173")][fc("0x7b")]((t=>!t[fc("0x68")][fc("0x90")]&&this[fc("0x124")](t))),t[fc("0x12d")][fc("0x11b")].on(fc("0x35"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0xe2")](e.name),n=this[fc("0x44")][fc("0x143")](t);n&&n[fc("0xe0")](e.name)}})),t[fc("0x12d")][fc("0x173")].on(fc("0xae"),(()=>{const e=Array.from(t.model[fc("0x173")][fc("0xa1")].getChangedMarkers())[fc("0x5c")]((t=>fc("0xa3")===this[fc("0xe2")](t[fc("0xd")]).group));if(0===e[fc("0x96")])return;e[fc("0xb4")](((t,e)=>{const n=t[fc("0x43")][fc("0xa6")],o=e[fc("0x43")][fc("0xa6")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0xe1")][fc("0x75")](o[fc("0xe1")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[fc("0xe2")](t);if(null===r[fc("0xa6")]){const e=this[fc("0x14c")](t);o[fc("0x4e")](e)}else{const t=this[fc("0x44")].get(e);null!==r[fc("0x70")]||t[fc("0x5d")]?(n[fc("0x4e")](t[fc("0x81")]),o.add(t)):this[fc("0x10c")](t)}}o[fc("0x131")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[fc("0x15c")](fc("0x79"),t)})),t.model.on(fc("0xd2"),((e,n)=>{const o=n[0];if(!this[fc("0x44")].size)return;if(!o.isDocumentOperation)return;if(o[fc("0x68")][fc("0x58")]||!o.batch.isLocal)return;let r,i;switch(o[fc("0xc1")]){case"insert":r=t[fc("0x12d")][fc("0xb5")](o[fc("0x6d")]),i=r.getShiftedBy(o[fc("0x32")]);break;case fc("0xaf"):r=t[fc("0x12d")][fc("0xb5")](o.splitPosition),i=t[fc("0x12d")][fc("0xb5")](o.moveTargetPosition);break;case fc("0x21"):r=t[fc("0x12d")][fc("0xb5")](o[fc("0xf")]),i=r[fc("0x13a")](o[fc("0x32")]);break;default:return}const s=t.model[fc("0x23")](r,i);t[fc("0x12d")].change((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(s)){if(t.isMultiRange)continue;if(fc("0x16e")==t[fc("0xc1")])continue;const n=Rc(t);if(n&&this[fc("0x7f")](n)&&fc("0xaf")!=o[fc("0xc1")])continue;const x=t[fc("0x43")]&&t.data[fc("0x10b")];(fc("0x4d")!=t[fc("0xc1")]||"split"==o.type&&!x)&&(e.containsRangeInObject||fc("0x98")==t.type&&e[fc("0x14")]||t.getFirstRange().containsRange(s)&&this[fc("0x69")](t,r,i))}}))}),{priority:"lowest"}),t.model.on(fc("0x4a"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[fc("0x12f")])return;if(this[fc("0x9e")])return;if(!this[fc("0x7")][fc("0xd3")])return;if(o[fc("0x7c")])return;const i=t[fc("0x12d")].schema,{start:s,end:x}=o[fc("0x157")](),a=s[fc("0x14d")]&&i[fc("0x15d")](s[fc("0x14d")])?null:i.getNearestSelectionRange(s,"forward"),c=x[fc("0xf7")]&&i[fc("0x15d")](x[fc("0xf7")])?null:i.getNearestSelectionRange(x,fc("0x102")),l=t[fc("0x12d")][fc("0x23")](a?a.start:s,c?c.end:x);t[fc("0x12d")][fc("0x7a")]((e=>{this[fc("0x148")](l);const n=t[fc("0x12d")][fc("0x118")].getNearestSelectionRange(l.start);o.is("documentSelection")?e[fc("0x5f")](n):o[fc("0x119")](n)})),e[fc("0x16")]()}),{priority:e.priorities[fc("0xad")]+10}),t[fc("0x12d")].on(fc("0x87"),((e,n)=>{const o=n[n[fc("0x96")]-1];o&&o[fc("0x12f")]||this[fc("0x9e")]||this[fc("0x7")][fc("0xd3")]&&(t[fc("0x12d")][fc("0x7a")]((()=>{let o=t[fc("0x12d")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0xf8")]=o[fc("0x73")]();const r=o.end.nodeBefore,i=t.model[fc("0x118")];r&&i[fc("0x15e")](r)&&!i[fc("0x57")](r)&&(o=t[fc("0x12d")][fc("0x23")](o.start,t[fc("0x12d")].createPositionAt(r,"end"))),this[fc("0x2b")](o)})),e.stop())}),{priority:fc("0x8b")}),this[fc("0x93")][fc("0x89")][fc("0x4e")]("trackChanges",this[fc("0x7")]),this[fc("0x121")]("trackChanges");const r=new p(t,this[fc("0x44")]);t[fc("0x89")][fc("0x4e")](fc("0x134"),r),this.enableCommand(fc("0x134"));const i=new y(t,this._suggestions);t[fc("0x89")][fc("0x4e")](fc("0x25"),i),this[fc("0x121")](fc("0x25")),t.commands[fc("0x4e")](fc("0x3b"),new F(t,r,this._suggestions)),this[fc("0x121")](fc("0x3b")),t[fc("0x89")].add(fc("0xc4"),new F(t,i,this[fc("0x44")])),this.enableCommand("discardAllSuggestions"),t[fc("0x89")][fc("0x4e")](fc("0x164"),new j(t,r,this[fc("0x44")])),this.enableCommand(fc("0x164")),t[fc("0x89")][fc("0x4e")](fc("0x67"),new j(t,i,this[fc("0x44")])),this.enableCommand("discardSelectedSuggestions");const s=t[fc("0x151")].get(fc("0x3a"));this.listenTo(s,fc("0x11c"),((t,{threadId:e})=>{const n=this[fc("0x44")][fc("0x143")](e);n&&n[fc("0x159")]&&1===n.commentThread.length&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this[fc("0x22")](s,fc("0xa8"),((t,{threadId:e})=>{const n=this._suggestions[fc("0x143")](e);n&&n[fc("0x159")]&&!n.commentThread.length&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:"low"})}set[fc("0xe3")](t){if(this[fc("0x65")])throw new e.CKEditorError(fc("0x60"),this);this._adapter=t}get[fc("0xe3")](){return this[fc("0x65")]}[fc("0xef")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[fc("0x62")]())t&&!e[fc("0x5d")]||n[fc("0x6")](e);return e?n[fc("0x20")]((t=>t[fc("0x13e")]())):n}getSuggestion(t){const n=this[fc("0x44")][fc("0x143")](t);if(!n)throw new e.CKEditorError(fc("0x1b"),this);return n}[fc("0xbe")](t){return this._suggestions[fc("0x135")](t)}[fc("0xd9")](t){const{authorId:e,id:n,attributes:o}=t,[r,i]=t[fc("0xc1")][fc("0xaf")](":"),s=this[fc("0x44")][fc("0x143")](n)||this._createSuggestion(r,i,n,e,o);if(this._addThreadToSuggestion(s),this[fc("0x17")](s,r,i||null,e),s.createdAt=t[fc("0x1a")],s[fc("0x13d")]=!0,o&&o[fc("0x56")]){const t=o["@external"],e=this[fc("0x10")](t.authorName);s[fc("0x10d")]=t[fc("0x1a")],s[fc("0x163")]=e,s[fc("0xab")]=!0}else s[fc("0x10d")]=t.createdAt;switch(t[fc("0x43")]&&(s[fc("0x43")]=t[fc("0x43")]),t[fc("0xd8")]&&(s.attributes=t[fc("0xd8")]),this[fc("0x65")]&&this[fc("0x65")][fc("0x140")]||(s[fc("0x74")]=!0),this._suggestionState[fc("0x143")](s)){case fc("0x37"):this[fc("0xf3")][fc("0xba")](s,fc("0x61"));break;case fc("0xcd"):s[fc("0x5d")]?(this[fc("0x8e")](new Set([s])),this._joinWithAdjacentSuggestions(new Set([s])),this[fc("0xf3")][fc("0xba")](s,fc("0xb6")),this[fc("0x15c")](fc("0xc9"),s)):this[fc("0xf3")][fc("0xba")](s,fc("0x100"))}return s}[fc("0x134")](t){this.forceDefaultExecution((()=>{this.editor.model[fc("0x7a")]((()=>{for(const e of t[fc("0x112")]())e[fc("0x13b")]()}))}))}[fc("0x25")](t){this.forceDefaultExecution((()=>{this[fc("0x93")].model[fc("0x7a")]((()=>{for(const e of t[fc("0x112")]())e[fc("0xbf")]()}))}))}enableCommand(t,n){const o=this.editor.commands[fc("0x143")](t);if(!o)throw new e.CKEditorError(fc("0x64"),this,{commandName:t});if(this[fc("0x33")].has(o))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this[fc("0x33")][fc("0x4e")](o),n&&o.on(fc("0xc2"),((t,e)=>{this[fc("0x7")][fc("0xd3")]&&(this._isForcedDefaultExecutionBlock||(e[fc("0x96")]>0&&e[e[fc("0x96")]-1]&&e[e[fc("0x96")]-1][fc("0x12f")]?e[fc("0xb8")]():(t[fc("0xf8")]=n(((...t)=>o[fc("0xc2")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x16")]())))}),{priority:fc("0x8b")})}[fc("0x12f")](t){let n,o;const r=this[fc("0x9e")];this[fc("0x9e")]=!0;try{n=t()}catch(t){o=t}return r||(this[fc("0x9e")]=!1),o&&e.CKEditorError[fc("0x101")](o,this),n}[fc("0x2b")](t,n=null,o={}){if(t.isCollapsed)return null;const r=this[fc("0x93")].plugins[fc("0x143")](fc("0x9")).me;for(const{suggestion:e,meta:r}of this[fc("0xcf")](t,fc("0x98")))if(r[fc("0x14")]){if(!r[fc("0x2f")]){if(r[fc("0x14e")]){if(!this[fc("0xc8")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0x69")](e,t[fc("0xe1")],t.end);break}if(n==e.subType&&Ic(e,o)){const n=e[fc("0x157")]();return n.start[fc("0x115")](t[fc("0xc3")])?this[fc("0x14a")](e,this[fc("0x1e")][fc("0x23")](t.start,n[fc("0xc3")])):this[fc("0x14a")](e,this[fc("0x1e")][fc("0x23")](n.start,t[fc("0xc3")])),e}}const i=(0,e.uid)(),s=r.id,x=n?fc("0x34")+n:fc("0x98"),a=this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x24")](x,i,s,t),a}[fc("0x109")](t,n="multi",o={}){const r=this[fc("0x93")][fc("0x151")][fc("0x143")](fc("0x9")).me,i=this._suggestionFactory[fc("0x94")](fc("0x98"),n,fc("0x71"));for(const e of this[fc("0xef")]())if(e[fc("0x163")].id==r.id&&fc("0x98")==e[fc("0xc1")]&&e.subType==n&&Ic(e,o)&&(i(e[fc("0xd7")](),t)||i(t,e[fc("0xd7")]()))){for(const n of t)e[fc("0x8c")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0xcf")](t,fc("0x98"))){if(!n.isOwn)continue;if(!this[fc("0xc8")]&&n[fc("0x14e")])continue;if(!Ic(e,o))continue;let r=!0;for(const n of e.getRanges())for(const e of t)if(!n[fc("0x28")](e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a=fc("0x34")+n,c=this[fc("0x27")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x24")](a,s,x,e,Jo[fc("0x15b")]());return c}[fc("0x4")](t,n,o=null,r={}){if(o=o||Tc(n),t[fc("0x7c")])return null;if(fc("0xfe")===this._trackFormatChanges){const e=this[fc("0x141")].getSuggestionCallback(fc("0x16e"),o,fc("0x13b"));return this[fc("0x12f")]((()=>e([t],n,r))),null}const i=this[fc("0x93")][fc("0x151")][fc("0x143")](fc("0x9")).me,s=[];if(fc("0xa0")!==this[fc("0x4b")])for(const{suggestion:e,meta:n}of this[fc("0xcf")](t,fc("0x98")))n.isOwn&&!n.isInsideObject&&s[fc("0x6")](...e[fc("0xd7")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0x125")](o);e&&n[fc("0x6")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x96")];){const o=n[e].getDifference(t);n[fc("0x108")](e,1,...o),e+=o.length}}return n}(t,s);x[fc("0x96")]&&this._model[fc("0x7a")]((()=>{for(const t of x){const e=this[fc("0x141")].getSuggestionCallback(fc("0x16e"),o,fc("0x13b"));this[fc("0x12f")]((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t[fc("0xe1")],a=t.end;for(const{suggestion:e,meta:n}of this[fc("0xcf")](t,"formatInline")){if(!n[fc("0x14")])continue;if(e[fc("0x97")]!=o)continue;if(!Ic(e,r))continue;const i=e[fc("0x157")]();if(i.containsRange(t,!0))return null;x=x[fc("0x75")](i[fc("0xe1")])?x:i.start,a=a[fc("0x133")](i.end)?a:i.end,s?i.start[fc("0x75")](s[fc("0x157")]()[fc("0xe1")])?(s[fc("0xd6")](),s=e):e[fc("0xd6")]():s=e}const c=this[fc("0x1e")][fc("0x23")](x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=i.id;this[fc("0x27")]({id:t,type:fc("0xe4")+o,data:n,createdAt:new Date,authorId:s,attributes:r}),this[fc("0x24")](fc("0xe4")+o,t,s,c)}}return null}[fc("0x80")](t,n,o=[],r=null,i={}){n[fc("0x8a")]||(n[fc("0x8a")]=n[fc("0x10e")]),n[fc("0x10b")]=t.is(fc("0x1d")),r=r||Tc(n);const s=o[fc("0x20")]((t=>Cc(t,this[fc("0x1e")]))),x=t.is(fc("0x1d"))?t:Cc(t,this[fc("0x1e")]);if(fc("0xfe")===this[fc("0x4b")]){const t=this[fc("0x141")][fc("0x94")]("formatBlock",r,fc("0x13b"));return this[fc("0x12f")]((()=>t([x],n,i))),null}s.push(x);let a=!0;for(const t of s)if(!this[fc("0x55")](t)){a=!1;break}if(a&&"always"!==this[fc("0x4b")]){const t=this[fc("0x141")][fc("0x94")]("formatBlock",r,fc("0x13b"));return this[fc("0x12f")]((()=>t([x],n,i))),null}let c=null,l=x[fc("0xe1")],u=x[fc("0xc3")];for(const{suggestion:t,meta:e}of this[fc("0xcf")](x,fc("0x4d"))){if(!e.isOwn)continue;if(e.isNextTo||e[fc("0x14e")]||e.isInsideObject)continue;if(t[fc("0x43")][fc("0x8a")]!=n[fc("0x8a")])continue;if(!Ic(t,i))continue;const o=t[fc("0x157")]();if(t[fc("0x97")]==r){if(o[fc("0x28")](x,!0))return null;l=l[fc("0x75")](o[fc("0xe1")])?l:o.start,u=u[fc("0x133")](o[fc("0xc3")])?u:o.end,c?o[fc("0xe1")][fc("0x75")](c[fc("0x157")]()[fc("0xe1")])?(c[fc("0xd6")](),c=t):t.removeMarkers():c=t}else{const e=x[fc("0x125")](o);this[fc("0x12c")](t,e)}}const d=this[fc("0x93")].plugins.get(fc("0x9")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x14a")](c,this[fc("0x1e")][fc("0x23")](l,u)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:f,attributes:i});return this._addSuggestionMarker(fc("0x47")+r,g,f,this[fc("0x1e")].createRange(l,u)),t}}[fc("0xcc")](t,n,o=[],r=null,i={}){n.formatGroupId||(n[fc("0x8a")]=n[fc("0x10e")]);const s=t[0];n.multipleBlocks=s.is("range"),r=r||Tc(n);const x=o[fc("0x20")]((t=>Cc(t,this._model))),a=s.is("range")?t:t[fc("0x20")]((t=>Cc(t,this[fc("0x1e")])));if(fc("0xfe")===this[fc("0x4b")]){const t=this[fc("0x141")].getSuggestionCallback(fc("0x4d"),r,"accept");return this[fc("0x12f")]((()=>t(a,n,i))),null}x[fc("0x6")](...a);let c=!0;for(const t of x)if(!this[fc("0x55")](t)){c=!1;break}if(c&&"always"!==this._trackFormatChanges){const t=this[fc("0x141")].getSuggestionCallback("formatBlock",r,fc("0x13b"));return this[fc("0x12f")]((()=>t(a,n,i))),null}const l=this[fc("0x93")].plugins.get(fc("0x9")).me;for(const t of this[fc("0xef")]()){if(t[fc("0x163")].id!=l.id)continue;if("formatBlock"!=t[fc("0xc1")]||t[fc("0x43")][fc("0x8a")]!=n.formatGroupId)continue;if(!Ic(t,i))continue;const e=t.subType==r;for(let n=0;n<a[fc("0x96")];n++){const o=a[n];for(const r of t[fc("0x82")]()){const i=r[fc("0xfd")]();if(o.isEqual(i)){e?(a[fc("0x108")](n,1),n--):t[fc("0x8d")](r.name);break}}}}if(0==a[fc("0x96")])return null;const u=this[fc("0x141")][fc("0x94")](fc("0x4d"),r,fc("0x71"));for(const t of this[fc("0xef")]())if(t[fc("0x163")].id==l.id&&"formatBlock"==t[fc("0xc1")]&&t[fc("0x43")][fc("0x8a")]==n.formatGroupId&&t.subType==r&&Ic(t,i)&&(u(t[fc("0xd7")](),a)||u(a,t.getRanges()))){for(const e of a)t[fc("0x8c")](e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0x47")+r,m=this[fc("0x27")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this._addSuggestionMarker(f,d,g,t,Jo[fc("0x15b")]());return m}[fc("0x148")](t,n=null,o={}){if(t.isCollapsed)return null;const r=this[fc("0x93")].plugins.get(fc("0x9")).me,i=new s.LiveRange(t.start,t.end);for(const{suggestion:t,meta:e}of this._findSuggestions(i,"insertion"))if(e.isOwn&&!e[fc("0x2f")])if(t.isMultiRange){const e=t[fc("0xd7")]()[fc("0x5c")]((t=>fc("0x7d")!=t[fc("0xb0")][fc("0x3c")]));if(e.every((t=>i[fc("0x28")](t,!0)))&&t[fc("0xbf")](),e.some((t=>t[fc("0x28")](i,!0)))){const t=this._suggestionFactory[fc("0x94")](fc("0x85"),n,"accept");return this[fc("0x12f")]((()=>t([i],null,o))),null}}else{const e=i.getIntersection(t.getFirstRange());null!==e&&t[fc("0x110")]([e],null,o)}if(i[fc("0x5e")](),i[fc("0x7c")]||fc("0x7d")==i[fc("0xb0")][fc("0x3c")])return null;let x=null,a=i[fc("0xe1")],c=i[fc("0xc3")];const l=this[fc("0xcf")](i,fc("0x85"));for(const{suggestion:t,meta:e}of l){const n=this[fc("0x1e")][fc("0x23")](a,c);if(e[fc("0x14")]&&(this._mergeNestedSuggestions||!e[fc("0x14e")]&&!e.isInsideObject))if(t[fc("0x42")]){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0xd7")]()){if(o[fc("0x28")](n,!0))return t;n[fc("0x28")](o)||(e=!1)}e&&t[fc("0xbf")]()}else{const e=t[fc("0x157")]();if(e[fc("0x28")](n,!0))return t;if(!Ic(t,o)){n[fc("0x28")](e)?t[fc("0xd6")]():e[fc("0x9f")](a)?a=e[fc("0xc3")]:e.containsPosition(c)&&(c=e[fc("0xe1")]);continue}a=a[fc("0x75")](e.start)?a:e[fc("0xe1")],c=c[fc("0x133")](e[fc("0xc3")])?c:e[fc("0xc3")],o=Object[fc("0x88")]({},t[fc("0xd8")]),x?e[fc("0xe1")][fc("0x75")](x.getFirstRange()[fc("0xe1")])?(x[fc("0xd6")](),x=t):t[fc("0xd6")]():x=t}}if(x)return this[fc("0x14a")](x,this._model.createRange(a,c)),x;{const t=(0,e.uid)(),i=this[fc("0x1e")][fc("0x23")](a,c),s=r.id,x=n?"deletion:"+n:"deletion",l=this[fc("0x27")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x24")](x,t,s,i),l}}[fc("0x11")](t,n=fc("0x123"),o={}){const r=this.editor[fc("0x151")][fc("0x143")]("Users").me,i=t[fc("0x20")]((t=>new s.LiveRange(t.start,t.end))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0xcf")](i,fc("0x98")))e[fc("0x14")]&&!e[fc("0x2f")]&&x[fc("0x4e")](t);for(const e of x)if(e[fc("0x42")]){const r=e[fc("0xd7")]();if((!e.attributes||!e[fc("0xd8")][fc("0xb")])&&r[fc("0x12e")]((t=>i[fc("0x38")]((e=>e[fc("0x28")](t,!0)))))&&e.discard(),i[fc("0x12e")]((t=>r[fc("0x38")]((e=>e[fc("0x28")](t,!0)))))){const e=this[fc("0x141")][fc("0x94")](fc("0x85"),n,"accept");return this[fc("0x12f")]((()=>e(t,null,o))),null}}else{const t=e[fc("0x157")]();if(i[fc("0x38")]((e=>e[fc("0x28")](t,!0)))&&e.discard(),i[fc("0x12e")]((e=>t[fc("0x28")](e,!0)))){const t=this[fc("0x141")][fc("0x94")](fc("0x85"),n,fc("0x13b"));return this[fc("0x12f")]((()=>t(i,null,o))),null}}const a=this[fc("0x141")].getSuggestionCallback("deletion",n,fc("0x71"));let c=null;for(const t of this.getSuggestions())if(t[fc("0x163")].id==r.id&&t[fc("0x5d")]&&fc("0x85")==t.type&&t[fc("0x97")]==n&&Ic(t,o)&&(a(t.getRanges(),i)||a(i,t[fc("0xd7")]())))if(c){if(t[fc("0x159")]&&t.commentThread[fc("0x96")])continue;for(const e of t[fc("0xd7")]())c[fc("0x129")](e)||c[fc("0x8c")](e);t[fc("0xd6")]()}else{c=t;for(const e of i)t[fc("0x129")](e)||t.addRange(e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this._findSuggestions(i,fc("0x85")))e[fc("0x14")]&&(this[fc("0xc8")]||!e[fc("0x14e")]&&!e.isInsideObject)&&Ic(t,o)&&x[fc("0x4e")](t);for(const t of x){const e=t.getRanges();if((!o||!o[fc("0xb")])&&i.every((t=>e.some((e=>e.containsRange(t,!0))))))return t;(!t.attributes||!t[fc("0xd8")][fc("0xb")])&&e[fc("0x12e")]((t=>i.some((e=>e[fc("0x28")](t,!0)))))&&t[fc("0xbf")]()}const l=(0,e.uid)(),u=r.id,d=fc("0x8f")+n,g=this[fc("0x27")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of i)t[fc("0x5e")](),t[fc("0x7c")]||"$graveyard"==t[fc("0xb0")][fc("0x3c")]||this[fc("0x24")](d,l,u,t,Jo[fc("0x15b")]());return g}[fc("0x12a")](t,n,o,r,i){if(t.isCollapsed)return[];if(fc("0xfe")===this[fc("0x4b")])return[];const s=this[fc("0x93")][fc("0x151")][fc("0x143")](fc("0x9")).me.id,x=Array.from(this._suggestions[fc("0x62")]())[fc("0x5c")]((e=>"attribute"==e.type&&e[fc("0x43")].key==n&&e[fc("0x129")](t)));if(fc("0x0")===this._trackFormatChanges){const e=this._findSuggestions(t,fc("0x98"))[fc("0x5c")]((({meta:t})=>t[fc("0x14")]&&!t[fc("0x9a")]&&!t[fc("0x2f")])).map((({suggestion:t})=>t));x[fc("0x49")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0x160")==t[fc("0xc1")]?t[fc("0x43")][fc("0xc5")]:void 0,i=t.getFirstRange(),s=Array[fc("0x1")](a.keys()).find((t=>t[fc("0x104")](i)));if(!s)continue;const x=s.getDifference(i);this[fc("0x7f")](n)&&fc("0x98")==t[fc("0xc1")]&&0!=x[fc("0x96")]||(a[fc("0xbc")](s),x[fc("0xea")]((t=>{a[fc("0xba")](t,o)})),"insertion"!=t[fc("0xc1")]&&e!=r&&a.set(s[fc("0x125")](i),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:r};n[fc("0x96")]>37&&console.warn(fc("0xdf"),{key:n});const l=(fc("0x1c")+(n+"|")+Tc({newValue:r}))[fc("0x6b")](0,60),u=this[fc("0x27")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[fc("0x6")](u),this[fc("0x24")](l,x,s,t)}return c}[fc("0xe5")](t){this[fc("0xdb")][fc("0x4e")](t)}[fc("0x136")](t){this[fc("0x9d")][fc("0x4e")](t)}[fc("0x4c")](t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this[fc("0x95")]((()=>{t(...e)}))}));for(const t of e)this._registerInlineAttribute(t);for(const t of n)this[fc("0xe5")](t)}[fc("0x14a")](t,e){const n=t[fc("0xe6")]();this[fc("0x1e")].change((t=>{t[fc("0x170")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this.editor.config[fc("0x143")]("collaboration.channelId");this._commentsRepository[fc("0x36")](e)||this[fc("0xca")][fc("0x1f")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0xca")][fc("0x117")](e);o[fc("0x52")]("isRemovable"),o[fc("0x142")]=!1,t[fc("0x159")]=o}[fc("0x17")](t,n,o,r){if(t[fc("0xc1")]!=n||t[fc("0x97")]!=o||t[fc("0x51")].id!=r)throw this[fc("0x93")][fc("0xb1")](fc("0x77")),new e.CKEditorError(fc("0x77"),this)}[fc("0x12c")](t,n){const o=t.getFirstRange();if(n[fc("0x115")](o))t[fc("0xd6")]();else if(o[fc("0x28")](n)){const r=this[fc("0x1e")][fc("0xb5")](n[fc("0xe1")].nodeBefore,fc("0xc3"));this[fc("0x14a")](t,this[fc("0x1e")].createRange(o[fc("0xe1")],r));const i=(0,e.uid)(),s=t[fc("0x51")].id,x=t[fc("0xc1")]+":"+t[fc("0x97")];this[fc("0x27")]({id:i,type:x,createdAt:new Date,authorId:s,data:t.data,attributes:t[fc("0xd8")]});const a=this[fc("0x1e")][fc("0xb5")](n.end[fc("0x9b")],"after"),c=this[fc("0x1e")][fc("0x23")](a,o[fc("0xc3")]);this._addSuggestionMarker(x,i,s,c)}else if(o.containsPosition(n[fc("0xe1")])){const e=this._model[fc("0xb5")](n[fc("0xe1")].nodeBefore,"end");this[fc("0x14a")](t,this[fc("0x1e")][fc("0x23")](o[fc("0xe1")],e))}else{const e=this[fc("0x1e")][fc("0xb5")](n[fc("0xc3")].parent,fc("0x122"));this[fc("0x14a")](t,this[fc("0x1e")].createRange(e,o[fc("0xc3")]))}}[fc("0x55")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion")){if(!n[fc("0x14")])continue;const o=e[fc("0xd7")]();for(const e of o)if(!t.getDifference(e).length)return!0}return!1}[fc("0x150")](t){const n=this[fc("0x93")][fc("0x151")][fc("0x143")](fc("0x9"))[fc("0x105")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}_getExternalAuthor(t){const e=this[fc("0x93")].plugins.get(fc("0x9")),n=(0,i.hashObject)(fc("0x12")+t);return e[fc("0x105")](n)||e.addUser({id:n,name:t})}[fc("0x8")](t,e,n,o,r){const i=this[fc("0x150")](o),s=this[fc("0x141")][fc("0x63")](t,e,n,i,r,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(s,"accept",(()=>{this[fc("0x84")](n,{state:"accepted"})}),{priority:fc("0x8b")}),this[fc("0x22")](s,fc("0xbf"),(()=>{this[fc("0x84")](n,{state:fc("0x7e")})}),{priority:fc("0x8b")}),this[fc("0x44")][fc("0xba")](n,s),this[fc("0xf3")][fc("0xba")](s,fc("0x37")),s}[fc("0xe2")](t){const e=t[fc("0xaf")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[fc("0x96")]<5?e[2]:e[3],authorId:e[fc("0x96")]<5?e[3]:e[4],markerCount:6==e[fc("0x96")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const r=t[fc("0x157")](),i=r[fc("0xe1")],s=r[fc("0xc3")];this[fc("0x14a")](t,this._model[fc("0x23")](i,n));const x=(0,e.uid)(),a=t[fc("0x51")].id,c=t[fc("0xc1")]+(t.subType?":"+t[fc("0x97")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[fc("0x43")]});const l=Rc(t);(fc("0x4d")==t[fc("0xc1")]||l&&this[fc("0x7f")](l))&&(o=this[fc("0x1e")][fc("0x111")](o[fc("0x9b")])),this._addSuggestionMarker(c,x,a,this[fc("0x1e")].createRange(o,s))}[fc("0xcf")](t,e=null){const n=[],o=this[fc("0x93")][fc("0x151")][fc("0x143")](fc("0x9")).me;Array[fc("0xb7")](t)||(t=[t]);for(const r of this.getSuggestions()){if(!r[fc("0x5d")])continue;if(e&&r[fc("0xc1")]!=e)continue;let i=!1;for(const e of r[fc("0xd7")]()){for(const s of t){const t=s[fc("0xe1")][fc("0x115")](e[fc("0xc3")])||s[fc("0xc3")][fc("0x115")](e[fc("0xe1")]);if(t||s[fc("0x125")](e)){const x=s[fc("0x28")](e)&&bc(this[fc("0x1e")][fc("0x118")],e[fc("0xe1")],s),a=e[fc("0x28")](s)&&bc(this[fc("0x1e")].schema,s[fc("0xe1")],e);n[fc("0x6")]({suggestion:r,meta:{isOwn:o==r.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0x24")](t,e,n,o,r){this[fc("0x1e")][fc("0x7a")]((i=>{let s=fc("0xec")+t+":"+e+":"+n;r&&(s=s+":"+r),i[fc("0x72")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0x10c")](t){const e=t[fc("0x29")],n=t[fc("0x120")];t.previous=null,t[fc("0x120")]=null,null!=e&&(e[fc("0x120")]=n),null!=n&&(n.previous=e),fc("0xb6")==this[fc("0xf3")][fc("0x143")](t)&&(this[fc("0xf3")][fc("0xba")](t,fc("0x100")),this[fc("0x15c")]("suggestionUnloaded",t,e,n))}[fc("0x27")](t){const n=t.id,o=this[fc("0xd9")](t);if(this[fc("0x65")]&&this[fc("0x65")][fc("0x140")]){const r=this[fc("0x93")][fc("0x151")][fc("0x143")]("PendingActions"),i=o[fc("0xf9")],s=o.subType?o[fc("0xc1")]+":"+o[fc("0x97")]:o.type,x=this[fc("0x93")][fc("0xc")],a=r[fc("0x4e")](Qo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:s,hasComments:i,data:t[fc("0x43")]||null,originalSuggestionId:t[fc("0x171")]||null,attributes:o[fc("0xd8")]};this[fc("0x65")].addSuggestion(c).then((t=>{o._saved=!0,r.remove(a),t&&t[fc("0x1a")]&&(this._suggestions.get(n).createdAt=t[fc("0x1a")])})).catch((t=>{throw(0,e.logWarning)(fc("0x13f")),this[fc("0x93")][fc("0x12d")][fc("0x30")]({isUndoable:!1},(()=>{o[fc("0xbf")]()})),o.stopListening(),this._suggestions[fc("0xbc")](o.id),this[fc("0xf3")][fc("0xbc")](o),t}))}return o}[fc("0x7f")](t){return this[fc("0xdb")][fc("0x135")](t)}[fc("0x84")](t,e){const n=this.editor[fc("0x151")].get("PendingActions"),o=this[fc("0x2e")](t);if(this[fc("0x65")]&&this[fc("0x65")][fc("0xa")])if(o[fc("0x74")]){const o=n[fc("0x4e")](Qo(this[fc("0x93")][fc("0xc")],fc("0xa7")));this._adapter[fc("0xa")](t,e).then((()=>{n[fc("0x18")](o)}))}else o.on(fc("0x14b"),(()=>{this._updateSuggestionData(t,e)}))}[fc("0x40")](t){if(!this[fc("0x65")]||!this[fc("0x65")][fc("0x2e")])throw new e.CKEditorError(fc("0x10f"),this);return this[fc("0x65")][fc("0x2e")](t)}[fc("0x14c")](t){const{id:e,type:n,subType:o,authorId:r}=this[fc("0xe2")](t),i=this._suggestions[fc("0x143")](e)||this[fc("0x8")](n,o,e,r,{});switch(this._checkSuggestionCorrectness(i,n,o,r),this[fc("0xf3")][fc("0x143")](i)){case fc("0x37"):this[fc("0x40")](e)[fc("0xcb")]((t=>{let n=Promise[fc("0xf4")]();t[fc("0xf9")]&&(n=this._commentsRepository.fetchCommentThread({channelId:this[fc("0x93")][fc("0xdc")][fc("0x143")]("collaboration.channelId"),threadId:e})),n[fc("0xcb")]((()=>{this[fc("0xd9")](t)[fc("0x74")]=!0}))})),this[fc("0xf3")][fc("0xba")](i,fc("0xcd"));break;case"removed":this[fc("0x84")](e,{state:fc("0xf6")});case fc("0x61"):this[fc("0xf3")][fc("0xba")](i,fc("0xb6")),this.fire(fc("0xc9"),i);break;case fc("0xb6"):this[fc("0x15c")](fc("0x79"),i)}return i[fc("0xe0")](t),i}[fc("0x8e")](t){const e=Array[fc("0x1")](t),n=e[fc("0x5c")]((t=>fc("0x160")==t[fc("0xc1")]));this._refreshAttributeSuggestionsChain(n);const o=e.filter((t=>!t[fc("0x42")]&&"attribute"!=t[fc("0xc1")])),r=this.getSuggestions({skipNotAttached:!0}).filter((t=>!t[fc("0x42")]&&fc("0x160")!=t[fc("0xc1")])),i=r.filter((e=>!t.has(e))),s=new Map(r[fc("0x20")]((t=>[t,this[fc("0x141")][fc("0x94")](t[fc("0xc1")],t[fc("0x97")],fc("0xd5"))]))),x=new Map(r[fc("0x20")]((t=>[t,t[fc("0x157")]()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0x96")];t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0x96")];t++)u(o[t],i,0);const l=new Set;for(let t=0;t<o[fc("0x96")];t++){const e=o[t];!c[fc("0x135")](e)&&e[fc("0x29")]&&(l[fc("0x4e")](e[fc("0x29")]),e[fc("0x29")][fc("0x120")]===e&&(e[fc("0x29")][fc("0x120")]=null),e[fc("0x29")]=null),!a[fc("0x135")](e)&&e[fc("0x120")]&&(l[fc("0x4e")](e[fc("0x120")]),e.next.previous===e&&(e.next[fc("0x29")]=null),e.next=null)}function u(t,e,n){for(let o=n;o<e[fc("0x96")];o++){const n=d(t,e[o]);n&&(n[0][fc("0x120")]=n[1],n[1][fc("0x29")]=n[0],a[fc("0x4e")](n[0]),c.add(n[1]))}}function d(t,e){if(t.author.id!==e[fc("0x163")].id)return null;const n=s[fc("0x143")](t)(t,e,x[fc("0x143")](t),x[fc("0x143")](e));return n&&s[fc("0x143")](e)(t,e,x[fc("0x143")](t),x[fc("0x143")](e))?n[1][fc("0x159")]&&n[1].commentThread[fc("0x96")]?null:n:null}l[fc("0x131")]&&this[fc("0x8e")](l)}_refreshAttributeSuggestionsChain(t){if(0==t[fc("0x96")])return;const e=this.getSuggestions({skipNotAttached:!0}).filter((t=>fc("0x160")==t.type&&t[fc("0x13d")])),n=[],o=new Map;for(const t of e){const e=(0,i.hashObject)(t[fc("0xd8")]);o.has(e)||(o[fc("0xba")](e,n[fc("0x96")]),n[fc("0x6")]([]));const r=o[fc("0x143")](e);n[r][fc("0x6")](t)}!function(){n.sort(((t,e)=>{const n=t[0][fc("0x1a")],o=e[0][fc("0x1a")];return n==o?t[0][fc("0xd8")][fc("0x11d")]<e[0][fc("0xd8")][fc("0x11d")]?-1:1:n<o?-1:1}));for(const t of n)t.sort(((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n.length;t++){if(0==n[t][fc("0x96")])continue;const e=[];for(let o=t+1;o<n.length;o++)0!=n[o][fc("0x96")]&&r(n[t],n[o])&&e.push(o);for(const o of e)n[t]=n[t].concat(n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0x96")];e++)t[e][fc("0x120")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0x29")]=t[e-1]||null;function r(t,e){if(t[0][fc("0x163")]!==e[0].author)return!1;if(n=t[0],o=e[0],(n[fc("0xf9")]||o[fc("0xf9")])&&(n[fc("0xf9")]&&o[fc("0xf9")]||!(n[fc("0xf9")]&&o[fc("0x1a")]<n[fc("0x159")][fc("0xa2")].get(0)[fc("0x1a")]||o.hasComments&&n[fc("0x1a")]<o[fc("0x159")][fc("0xa2")].get(0)[fc("0x1a")])))return!1;var n,o;const r=lc(t[0].attributes,"groupId"),i=lc(e[0][fc("0xd8")],fc("0x11d"));return!!Go(r,i)&&(!!t.every((t=>e[fc("0x38")]((e=>t.getFirstRange()[fc("0x115")](e.getFirstRange())))))&&e[fc("0x12e")]((e=>t[fc("0x38")]((t=>e[fc("0x157")]()[fc("0x115")](t[fc("0x157")]()))))))}}[fc("0x31")](t){const e=Array[fc("0x1")](t),n=this[fc("0xef")]({skipNotAttached:!0}),o=n[fc("0x5c")]((e=>!t[fc("0x135")](e))),r=new Map(e[fc("0x20")]((t=>[t,this[fc("0x141")][fc("0x94")](t[fc("0xc1")],t[fc("0x97")],fc("0x71"))]))),i=new Map(n[fc("0x20")]((t=>[t,t.getRanges()])));for(let t=0;t<e[fc("0x96")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x96")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x96")];s++){const o=n[s];if(o[fc("0xc1")]!==e[fc("0xc1")]||o[fc("0x163")].id!==e[fc("0x163")].id||o[fc("0x97")]!==e[fc("0x97")])continue;if(!kc(e,o))continue;if("attribute"==e[fc("0xc1")]&&e[fc("0x43")][fc("0xc5")]!=o.data[fc("0xc5")])continue;if(fc("0x160")==e[fc("0xc1")]&&t._isBlockAttribute(e[fc("0x43")][fc("0xb9")]))continue;if("formatBlock"==e.type){const n=t[fc("0x93")][fc("0x12d")],o=e[fc("0x19")]();if(o&&(n.schema[fc("0x57")](o)||n[fc("0x118")][fc("0x15d")](o)))continue}const x=r[fc("0x143")](e),a=i[fc("0x143")](e),c=i[fc("0x143")](o),l=e[fc("0x159")]&&e.commentThread[fc("0x96")],u=o[fc("0x159")]&&o.commentThread[fc("0x96")];if(!l&&x(c,a))return t[fc("0x15")](o,e),i[fc("0xbc")](e),!0;if(!u&&x(a,c))return t[fc("0x15")](e,o),i[fc("0xbc")](o),!0}return!1}}[fc("0x15")](t,e){if(t.isMultiRange)for(const n of e.getRanges())t[fc("0x8c")](n);else{const n=e.getFirstRange()[fc("0xc3")];this[fc("0x14a")](t,this[fc("0x1e")][fc("0x23")](t[fc("0x157")]()[fc("0xe1")],n))}e[fc("0xd6")]()}_getMarkerAnnouncementText(t,e){const n=t.startsWith("format")||t[fc("0x92")](fc("0x160"))?fc("0x13"):t[fc("0x147")]();return Qo(this[fc("0x93")][fc("0xc")],e+"_"+n+fc("0x126"))}[fc("0x154")](){const t=this[fc("0x93")];(0,i.surroundingMarkersDetector)(this[fc("0x1e")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0xe2")](t.name);if("suggestion"===e){o[fc("0x6")](this[fc("0xbd")](n,fc("0x138")));break}}for(const t of n){const{group:e,type:n}=this._splitMarkerName(t[fc("0xd")]);if(fc("0xa3")===e){o.push(this._getMarkerAnnouncementText(n,fc("0xa9")));break}}o[fc("0x96")]&&t.ui.ariaLiveAnnouncer.announce(fc("0x4f"),o[fc("0x71")](" "))}))}[fc("0x53")](t){if(null!==this[fc("0xde")])return!1;const e=this[fc("0x93")],n=e.model[fc("0x173")].differ.getChanges();if(0==n[fc("0x96")])return!1;const o=[],r=n[fc("0x5c")]((t=>fc("0x160")==t[fc("0xc1")])),i=n[fc("0x5c")]((t=>"insert"==t.type&&"$text"!=t[fc("0xd")])),s=n[fc("0x5c")]((t=>fc("0x18")==t.type&&"$text"!=t[fc("0xd")]));for(const t of r)o[fc("0x6")]({key:t[fc("0x6e")],newValue:t.attributeNewValue,oldValue:t[fc("0xf0")],range:(x=t[fc("0x1d")],null==x.end.nodeBefore&&x[fc("0xc3")][fc("0x9b")]==x.start[fc("0x14d")]?Cc(x[fc("0xe1")][fc("0x14d")],e[fc("0x12d")]):x)});var x;for(const t of i){const n=s[fc("0x39")]((e=>e[fc("0x6d")][fc("0x115")](t[fc("0x6d")])));n&&o.push({key:fc("0x91"),newValue:t[fc("0xd")],oldValue:n[fc("0xd")],range:e.model.createRangeOn(t[fc("0x6d")][fc("0x14d")])})}return 0!=o[fc("0x96")]&&this[fc("0x113")](t,o)}[fc("0x124")](t){let e=!1;const n=this[fc("0x93")][fc("0x12d")].document[fc("0xa1")][fc("0x2a")]()[fc("0x5c")]((t=>t[fc("0x43")][fc("0x70")]&&t[fc("0xd")][fc("0x92")](fc("0x83"))));for(const o of n){const{subType:n,id:r}=this[fc("0xe2")](o[fc("0xd")]),i=n[fc("0xaf")]("|")[0];for(const n of this[fc("0xef")]({skipNotAttached:!0}))n.id!=r&&fc("0x160")==n[fc("0xc1")]&&n[fc("0x43")]&&n[fc("0x43")][fc("0xb9")]==i&&n[fc("0x157")]()[fc("0x104")](o[fc("0x43")][fc("0x70")])&&(this[fc("0xa4")](n,o[fc("0x43")].newRange,t),e=!0)}return e}[fc("0x95")](t){if(null!==this[fc("0xde")])return void t();const n=this[fc("0x93")];this[fc("0xde")]=n[fc("0x12d")][fc("0x173")][fc("0x152")],t();const o=new Map;for(const t of n.model[fc("0x173")][fc("0xc7")][fc("0x167")](this._recordAttributeSuggestionsFromVersion))if([fc("0x11a"),fc("0x132"),fc("0xd4"),fc("0x146")][fc("0x13c")](t[fc("0xc1")])){const e=t.batch,n=o[fc("0x143")](e)||[];n[fc("0x6")](t),o[fc("0xba")](e,n)}this[fc("0xde")]=null;for(const[t,r]of o){const o=(0,e.uid)();n.model.enqueueChange(t,(t=>{const e=[];for(const t of r){let r,i,s,x;if(fc("0x11a")==t[fc("0xc1")]){const e=t;r=Cc(e[fc("0x6d")][fc("0x14d")],n.model),i=fc("0x91"),s=e[fc("0xe7")],x=e[fc("0x16c")]}else{const e=t,o=this[fc("0x7f")](e[fc("0xb9")]),a=this[fc("0x9d")][fc("0x135")](e.key);if(!o&&!a)continue;r=o?Cc(e[fc("0x1d")].start[fc("0x14d")],n[fc("0x12d")]):e[fc("0x1d")],i=e.key,s="removeAttribute"==t[fc("0xc1")]?void 0:e[fc("0x169")],x=e[fc("0xc5")]}this.markAttributeChange(r,i,x,s,{groupId:o}),e.push({range:r,key:i,newValue:s,oldValue:x})}this[fc("0x113")](t,e)}))}}[fc("0x113")](t,e){if(0==e[fc("0x96")])return!1;let n=!1;for(const o of e){const e=this[fc("0xcf")](o[fc("0x1d")],fc("0x160"))[fc("0x5c")]((t=>!t.meta[fc("0x2f")]))[fc("0x20")]((t=>t.suggestion)),r=(0,i.hashObject)({newValue:o.newValue});e.filter((t=>{const[e,n]=t.subType[fc("0xaf")]("|");return e==o[fc("0xb9")]&&n!=r}))[fc("0xea")]((e=>{this[fc("0xa4")](e,o[fc("0x1d")],t),n=!0}))}return n}[fc("0xa4")](t,e,n){const o=t.getFirstRange()[fc("0x76")](e);0!==o[fc("0x96")]?1!==o[fc("0x96")]?this[fc("0x69")](t,e[fc("0xe1")],e[fc("0xc3")]):this._setSuggestionRange(t,o[0]):n[fc("0x8d")](t[fc("0xe6")]())}}class pc{constructor(t){this[fc("0xff")]=t,this[fc("0x1e")]=t[fc("0x12d")],this[fc("0x127")]=new Map,this[fc("0x137")]=new Map,this[fc("0x153")]()}buildSuggestion(t,e,n,o,r,i){return new Jo(this[fc("0x1e")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:i,onAccept:(...n)=>this[fc("0x94")](t,e,fc("0x13b"))(...n),onDiscard:(...n)=>this[fc("0x94")](t,e,fc("0xbf"))(...n)})}registerCustomCallback(t,e,n,o){const r=t+":"+e+":"+n;this._customCallbacks[fc("0xba")](r,o)}[fc("0x94")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[fc("0x143")](o)||this[fc("0x137")][fc("0x143")](t+":"+n)}[fc("0x153")](){const t=()=>!1,e=t=>{t[fc("0xb4")](((t,e)=>t.start.isBefore(e.start)?1:-1)),this._model[fc("0x7a")]((e=>{for(const n of t){let t;t=n[fc("0xc3")][fc("0x6c")]&&n.end[fc("0x9b")]==n[fc("0xe1")][fc("0x14d")]?e[fc("0xfb")](n.start[fc("0x14d")],"on"):e[fc("0xfb")](n),this[fc("0x1e")][fc("0x4a")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0x1e")][fc("0x7a")]((n=>{const{commandName:o,commandParams:r=[]}=e,i=t[fc("0x20")]((t=>(Ec(t)&&(t=this[fc("0x1e")][fc("0x23")](t[fc("0xc3")])),t)))[fc("0x5c")]((t=>fc("0x7d")!==t[fc("0xb0")].rootName));if(i[fc("0x96")]<1)return;const x=Array[fc("0x1")](this[fc("0x1e")].document[fc("0x166")][fc("0xd7")]()).map((t=>s.LiveRange[fc("0x59")](t)));n.setSelection(i);for(const t of this[fc("0xff")][fc("0x89")][fc("0x89")]())t[fc("0x103")]();r[fc("0x6")]({forceDefaultExecution:!0}),this._editor[fc("0xc2")](o,...r);const a=x[fc("0x5c")]((t=>fc("0x7d")!=t[fc("0xb0")][fc("0x3c")]));a.length>0&&n[fc("0x5f")](a);for(const t of x)t[fc("0x5e")]()}))},o=(t,e)=>1==t.length&&1==e.length&&t[0][fc("0xc3")].isEqual(e[0][fc("0xe1")]),r=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x1e")])?[t,e]:Ac(e,t,o,n,this[fc("0x1e")])?[e,t]:null;this._defaultCallbacks[fc("0xba")]("insertion:accept",t),this._defaultCallbacks[fc("0xba")]("insertion:discard",e),this[fc("0x137")].set("insertion:join",o),this[fc("0x137")][fc("0xba")](fc("0x66"),r),this[fc("0x137")][fc("0xba")](fc("0x15f"),e),this[fc("0x137")][fc("0xba")]("deletion:discard",t),this[fc("0x137")][fc("0xba")]("deletion:join",o),this[fc("0x137")][fc("0xba")](fc("0x3d"),r),this._defaultCallbacks.set("formatInline:accept",n),this[fc("0x137")][fc("0xba")](fc("0x161"),t),this[fc("0x137")].set(fc("0x5b"),o),this[fc("0x137")][fc("0xba")](fc("0x50"),t),this[fc("0x137")][fc("0xba")](fc("0x48"),n),this[fc("0x137")][fc("0xba")](fc("0x45"),t),this[fc("0x137")][fc("0xba")](fc("0x165"),o),this[fc("0x137")][fc("0xba")](fc("0xa5"),t),this[fc("0x137")][fc("0xba")]("attribute:accept",t),this[fc("0x137")].set(fc("0xb3"),((t,e)=>{if(!e)return;const n=this[fc("0xff")].plugins[fc("0x143")](hc);this[fc("0x1e")][fc("0x7a")]((o=>{if("$elementName"==e.key)for(const n of t){const t=n[fc("0xe1")].nodeAfter,r=e[fc("0xc5")];o[fc("0x11a")](t,r)}else if(n[fc("0x7f")](e[fc("0xb9")]))for(const n of t)void 0!==e[fc("0xc5")]?o.setAttribute(e[fc("0xb9")],e[fc("0xc5")],n.start.nodeAfter):o[fc("0xd4")](e[fc("0xb9")],n[fc("0xe1")].nodeAfter);else for(const n of t)e[fc("0xc5")]?o.setAttribute(e.key,e[fc("0xc5")],n):o.removeAttribute(e[fc("0xb9")],n)}))})),this._defaultCallbacks[fc("0xba")](fc("0x54"),o)}}function bc(t,e,n){for(const o of e[fc("0x9b")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[fc("0xb0")]==o)return!1;if(!n[fc("0xf5")](o))return!1;if(t.isObject(o)||t[fc("0x15d")](o))return!0}return!1}function Ec(t){return t[fc("0xc3")][fc("0x9b")]==t.start[fc("0x14d")]&&t.end.isAtStart}function _c(t,e,n,o){const r=t=>!t.item.is(fc("0xb2"))&&!o[fc("0x57")](t[fc("0x99")]),i=t[fc("0xe1")][fc("0xed")](r),s=t[fc("0xc3")].getLastMatchingPosition(r,{direction:"backward"});return!(t.start[fc("0x115")](i)&&t[fc("0xc3")][fc("0x115")](s)||(i.isBefore(s)?n[fc("0x170")](e,{range:n[fc("0x23")](i,s)}):n[fc("0x8d")](e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t[fc("0xe1")][fc("0x14d")];return e&&e.is(fc("0xda"))}function Cc(t,e){const n=e[fc("0x118")][fc("0x57")](t)||e[fc("0x118")][fc("0x16a")](t);return e[fc("0x23")](e[fc("0xb5")](t,"before"),n?e[fc("0xe9")](t):e[fc("0xb5")](t,"end"))}function Ac(t,e,n,o,r){if(!kc(t,e))return!1;if(n.end[fc("0x115")](o.start))return!0;if(t[fc("0xc1")]!=e[fc("0xc1")])return!1;if(!n.end[fc("0xf2")](o[fc("0xe1")]))return!1;const i=r[fc("0x23")](n[fc("0xc3")],o[fc("0xe1")])[fc("0x139")]();for(const t of i)if([fc("0x156"),fc("0x144")][fc("0x13c")](t[fc("0xc1")])&&r[fc("0x118")][fc("0x15d")](t.item))return!1;return!0}function kc(t,e){return!(!t[fc("0x13d")]||!e[fc("0x13d")])&&Go(t.attributes,e[fc("0xd8")])}function Ic(t,e){const n=Sc(t[fc("0xd8")]),o=Sc(e);if(!t[fc("0x13d")])return!1;for(const t of Object[fc("0x2c")](o))if(!Go(n[t],o[t]))return!1;return!0}function Sc(t){const e=Object[fc("0x88")]({},t);return delete e[fc("0xb")],delete e[fc("0x11f")],e}function Rc(t){return"attribute"==t[fc("0xc1")]?t[fc("0x97")][fc("0xaf")]("|")[0]:null}const vc=["get","stopListening","acceptSuggestion","_acceptCommand","destroy","change:isDirty","_setPendingAction","add","_pendingAction","listenTo","canAccept","model","canDiscard","isDirty","locale","PendingActions","_editor","unbind","execute","canEditAt","_removePendingAction","_discardCommand","commands","bind","getRanges","discardSuggestion","plugins","commentThreadController","isEnabled","view"];var Nc,Lc;Nc=vc,Lc=419,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return vc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Mc("0xc")]=e,this[Mc("0x0")]=n,this[Mc("0x1c")]=o,this[Mc("0x11")]=t,this[Mc("0x4")]=t[Mc("0x17")][Mc("0x1")](Mc("0x3")),this[Mc("0x16")]=t[Mc("0x17")].get(Mc("0x1a")),this.view.bind(Mc("0x1d")).to(this[Mc("0x4")],this[Mc("0x16")],((t,e)=>t||e)),this[Mc("0x0")][Mc("0x18")](Mc("0xb")).to(this[Mc("0x4")],Mc("0x1d"),(t=>t&&this[Mc("0x11")][Mc("0xc")][Mc("0x14")](e[Mc("0x19")]()))),this[Mc("0x0")][Mc("0x18")](Mc("0xd")).to(this[Mc("0x16")],"isEnabled",(t=>t&&this[Mc("0x11")][Mc("0xc")].canEditAt(e.getRanges()))),this[Mc("0x9")]=null,n[Mc("0xe")]&&this._setPendingAction(),this[Mc("0xa")](n,Mc("0x3"),(()=>this[Mc("0x3")]())),this[Mc("0xa")](n,Mc("0x1a"),(()=>this.discardSuggestion())),this[Mc("0xa")](n,Mc("0x6"),(()=>{n[Mc("0xe")]?this[Mc("0x7")]():this[Mc("0x15")]()}))}[Mc("0x3")](){this._acceptCommand[Mc("0x13")](this[Mc("0xc")].id)}[Mc("0x1a")](){this[Mc("0x16")][Mc("0x13")](this[Mc("0xc")].id)}[Mc("0x5")](){this[Mc("0x0")][Mc("0x12")](Mc("0x1d")),this[Mc("0x0")][Mc("0x12")]("canAccept"),this[Mc("0x0")][Mc("0x12")](Mc("0xd")),this[Mc("0x2")](),this[Mc("0x1c")].destroy(),this._pendingAction&&this[Mc("0x15")]()}[Mc("0x7")](){const t=Qo(this._editor[Mc("0xf")],"PENDING_ACTION_SUGGESTION");this[Mc("0x9")]=this[Mc("0x11")][Mc("0x1b")].get(Mc("0x10"))[Mc("0x8")](t)}[Mc("0x15")](){null!==this[Mc("0x9")]&&this[Mc("0x11")][Mc("0x1b")].get("PendingActions").remove(this[Mc("0x9")]),this._pendingAction=null}}const Oc=["isActive","updateComment","_createCommentViews","commentThread","removeComment","isReadOnly","descriptionParts","commentThreadInputView","bind","fire","canDiscard","_createCommentThreadInputView","cancel","editor","length","isDirty","disabledSubmit","commentsListView","focus","locale","set","isEnabled","canAccept","showInput","_config","value","_model","hasDirtyComment","delegate","setData","commentInputView","addComment","destroy","_localUser","editorConfig","authoredAt"];var Fc,Dc;Fc=Oc,Dc=152,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends r.View{constructor(t,e,n,o){super(t),this[Bc("0x9")]=null,this[Bc("0x23")]=null,this[Bc("0xc")](Bc("0x1c"),!1),this.set(Bc("0x1b"),e[Bc("0x1b")]),this[Bc("0x0")](Bc("0x1b")).to(e),this[Bc("0xc")](Bc("0x22"),[]),this[Bc("0xc")]("isDirty",!1),this[Bc("0xc")](Bc("0xd"),!1),this[Bc("0xc")](Bc("0xe"),!1),this[Bc("0xc")](Bc("0x2"),!1),this[Bc("0x12")]=e,this[Bc("0x19")]=n,this[Bc("0x10")]=o,o.disableComments?this[Bc("0xc")](Bc("0x6"),1):this[Bc("0x1e")]()}[Bc("0xa")](){this.element[Bc("0xa")]()}[Bc("0x18")](){this[Bc("0x9")]&&this[Bc("0x9")][Bc("0x18")](),this.commentThreadInputView&&this[Bc("0x23")].destroy(),super[Bc("0x18")]()}[Bc("0x1e")](){const{CommentsListView:t}=this[Bc("0x10")];this.commentsListView=new t(this[Bc("0xb")],this[Bc("0x12")].commentThread,Object.assign({CommentView:this._config.CommentView},this._config)),this[Bc("0x9")][Bc("0x14")](Bc("0x20")).to(this),this[Bc("0x9")][Bc("0x14")](Bc("0x1d")).to(this),this[Bc("0x9")][Bc("0x0")](Bc("0x1c")).to(this),this[Bc("0xc")](Bc("0x6"),this[Bc("0x9")][Bc("0x6")]+1),this[Bc("0x0")](Bc("0x6")).to(this[Bc("0x9")],Bc("0x6"),(t=>t+1)),this.commentThreadInputView=this[Bc("0x3")](),this.on(Bc("0x20"),(()=>this[Bc("0xa")]())),this[Bc("0x0")](Bc("0x7")).to(this[Bc("0x9")],Bc("0x13"),this[Bc("0x23")].commentInputView,Bc("0x11"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Bc("0x10")],e=new t(this.locale,this[Bc("0x19")],this[Bc("0x10")][Bc("0x1a")]),n=e[Bc("0x16")];return e[Bc("0x0")](Bc("0xf")).to(this,Bc("0x1c"),this[Bc("0x12")][Bc("0x1f")],"isReadOnly",n,Bc("0x11"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Bc("0x1")](Bc("0x17"),e),n[Bc("0x5")][Bc("0x15")]("")})),n.on(Bc("0x4"),(()=>this[Bc("0xa")]())),n.bind(Bc("0x8")).to(this[Bc("0x12")][Bc("0x1f")],Bc("0x21")),e}}const Uc=["ck-suggestion--discard","description","EXTERNAL_SUGGESTION","color","canDiscard","ck-suggestion__info","time","extendTemplate","cancel","EXTERNAL_IMPORT_WORD_SUGGESTION","createElement","_config","ck-comment__info-time","ck-annotation__content-wrapper","attributes","discardButton","querySelector","formatDateTime","discardSuggestion","delegate","</span>","ck-annotation__main","ck-suggestion--disabled-comments",'"></span>',"EXTERNAL_IMPORT_WORD_AVATAR","render","element","ck-comment__external","push","ck-annotation__info-time",'<span class="ck-suggestion-color" style="background-color: ',"bindTemplate","ck-suggestion__user","source",'" title="',"editorDestroyed","_descriptionElement","fire","innerText","check","innerHTML","Accept suggestion","isActive","commentsListView","_model","userView","join","content","isEnabled","change:description","authoredAt","editorReady","set","title","ck-suggestion__main","@external","getTemplate","<p>","ck-suggestion-wrapper","setTemplate","name","canAccept","execute","span","_createButton","bind","Discard suggestion","ck-annotation",".ck-annotation__content-wrapper","commentThreadInputView","ck-annotation__user","importWord","ck-suggestion__actions","creator","div","split","value","acceptButton","getUserViewNotificationText","ck-annotation__actions",'<span class="ck-suggestion-type">',"ck-annotation__info-name","type","author","locale","ck-suggestion__info-name","getExternalSuggestionNote"];var jc,Gc;jc=Uc,Gc=265,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Hc=function(t,e){return Uc[t-=0]};class Vc extends Pc{constructor(e,n,o,r){super(e,n,o,r),this[Hc("0x30")]("type",""),this.bind(Hc("0x4e")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][Hc("0x4e")]:"")),this[Hc("0x3d")](Hc("0x54")).to(this,"descriptionParts",this,Hc("0x26"),((t,e)=>{let n="";for(const e of t)n+=Hc("0x35")+zc(e[Hc("0x2b")],e[Hc("0x56")])+"</p>";return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Hc("0x20")]=null,this[Hc("0x49")]=this[Hc("0x3c")](Qo(e,Hc("0x25")),t.icons[Hc("0x23")],"ck-suggestion--accept","acceptSuggestion","sw"),this[Hc("0x49")].bind("isEnabled").to(this,Hc("0x39")),this[Hc("0xb")]=this[Hc("0x3c")](Qo(e,Hc("0x3e")),t.icons[Hc("0x4")],Hc("0x53"),Hc("0xe"),"sw"),this[Hc("0xb")][Hc("0x3d")](Hc("0x2c")).to(this,Hc("0x0")),this[Hc("0x29")]=new i.UserView(e,this[Hc("0x28")][Hc("0x4f")],this[Hc("0x4a")]()),this[Hc("0x29")][Hc("0x3")]({attributes:{class:[Hc("0x1c"),Hc("0x42")]}}),this[Hc("0x37")](this[Hc("0x34")]())}getTemplate(){const t=this[Hc("0x1b")],e=[{tag:Hc("0x46"),attributes:{class:[Hc("0x1"),"ck-annotation__info"]},children:[{tag:Hc("0x3b"),children:[{text:this[Hc("0x29")][Hc("0x38")]}],attributes:{class:[Hc("0x51"),Hc("0x4d")]}},{tag:Hc("0x2"),attributes:{datetime:t.to(Hc("0x2e")),class:[Hc("0x8"),Hc("0x19")]},children:[{text:t.to("authoredAt",(t=>this[Hc("0x7")][Hc("0xd")](t)))}]}]},{tag:Hc("0x46"),attributes:{class:[Hc("0x44"),Hc("0x4b")]},children:[this[Hc("0x49")],this[Hc("0xb")]]},{tag:Hc("0x46"),attributes:{class:[Hc("0x9")]}}];this[Hc("0x28")].isExternal&&e[Hc("0x18")]({tag:Hc("0x46"),attributes:{class:[Hc("0x17")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:Hc("0x46"),attributes:{class:[Hc("0x36"),t.if("isActive","ck-suggestion-wrapper--active"),t.to(Hc("0x4e"),(t=>"ck-suggestion-"+t)),this[Hc("0x7")].disableComments&&Hc("0x12")],"data-suggestion-id":this._model.id,"data-thread-id":this[Hc("0x28")].commentThread.id,"data-author-id":this[Hc("0x28")].author.id,tabindex:-1},children:[{tag:"div",attributes:{class:["ck-suggestion",Hc("0x3f")]},children:[this.userView,{tag:Hc("0x46"),attributes:{class:[Hc("0x32"),Hc("0x11")]},children:e}]}]};return this[Hc("0x27")]&&this.commentThreadInputView&&(n.children[Hc("0x18")](this[Hc("0x27")],this[Hc("0x41")]),this[Hc("0x27")][Hc("0xf")](Hc("0x2f")).to(this),this[Hc("0x27")].delegate(Hc("0x1f")).to(this),this[Hc("0x41")].delegate(Hc("0x2f")).to(this),this[Hc("0x41")].delegate(Hc("0x1f")).to(this)),n}[Hc("0x15")](){super.render(),this[Hc("0x20")]=this[Hc("0x16")][Hc("0xc")](Hc("0x40")),this._descriptionElement[Hc("0x24")]=this[Hc("0x54")],this.on(Hc("0x2d"),((t,e,n)=>{this[Hc("0x20")][Hc("0x24")]=n}))}[Hc("0x3c")](t,e,n,o,i){const s=new r.ButtonView(this.locale);return s[Hc("0x30")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Hc("0x3")]({attributes:{class:n}}),s.on(Hc("0x3a"),(()=>{this[Hc("0x21")](o,this._model.id)})),s}[Hc("0x52")](){return Hc("0x43")===this[Hc("0x28")].attributes[Hc("0x33")][Hc("0x1d")]?Qo(this[Hc("0x50")],Hc("0x5")):Qo(this[Hc("0x50")],Hc("0x55"))}[Hc("0x4a")](){return this[Hc("0x28")].isExternal?Hc("0x43")===this._model[Hc("0xa")][Hc("0x33")][Hc("0x1d")]?Qo(this[Hc("0x50")],Hc("0x14"),this[Hc("0x28")][Hc("0x45")].name):Qo(this[Hc("0x50")],"EXTERNAL_AVATAR",this[Hc("0x28")][Hc("0x45")].name):null}}function zc(t,e){let n="";return n+=t[Hc("0x47")]("*").map(((t,e)=>e%2!=0?Hc("0x4c")+Wc(t)+Hc("0x10"):Wc(t)))[Hc("0x2a")](""),e&&(n+=Hc("0x1a")+e[Hc("0x48")]+Hc("0x1e")+e[Hc("0x31")]+Hc("0x13")),n}function Wc(t){const e=document[Hc("0x6")](Hc("0x3b"));return e[Hc("0x22")]=t,e[Hc("0x24")]}const Kc=["has","mainView","_bindAnnotationToEditors","view","createAnnotationView","innerView","getByInnerView","comments.maxThreadTotalWeight","acceptSelectedSuggestions","model","comments.maxCommentCharsWhenCollapsed","source","_viewToController","init","execute","editing","some","hasSuggestion","EditorAnnotations","descriptionParts","_destroyController","trackChanges","_updateController","toMany","_descriptionFactory","_disableComments","Discard all suggestions","editor","push","unbind","stopListening","getRanges","_handleControllerBuffer","acceptButton","bind","_createUIButton","trackChanges.SuggestionThreadView","button","value","CommentsRepository","filter","define","type","getMarkers","_initializeController","focus","TrackChangesEditing","buttonView","getFirstRange","Accept all selected suggestions","suggestionUnloaded","_suggestionToController","addSourceCollector","plugins","suggestionLoaded","getMarkerNames","Track changes","CommentView","commands","activeMarkers","add","destroy","_handleSuggestionControllerDelayed","isOn","refreshSelectedViews","discardAllSuggestions","from","change:activeAnnotations","delete","discardButton","getJoined","actionView","CommentsUI","comments","discardSelectedSuggestions","commandName","acceptAllSuggestions","commentThread","comments.editorConfig","get","suggestionChanged","change:previous","reduce","previous","componentFactory","separator","locale","getSuggestion","listenTo","set","_annotationViews","Accept all suggestions","Annotations","activeAnnotations","isInContent","arrowView","SuggestionThreadView","TrackChangesUI","Discard all selected suggestions","isEnabled","length","clear","_unbindEditors","createCommentThreadController","head","getDescriptions","map","_refreshActiveMarkers"];var qc,Xc;qc=Kc,Xc=346,function(t){for(;--t;)qc.push(qc.shift())}(++Xc);const $c=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get requires(){return[hc,i.Users,"CommentsRepository",$c("0x46"),$c("0x68")]}static get pluginName(){return $c("0x4b")}constructor(t){super(t),this[$c("0x1d")]=new Map,this[$c("0x62")]=new Map,this[$c("0x44")]=new Map,this[$c("0xa")]=new Map;const e=this[$c("0x5")].config;e[$c("0x13")]($c("0xe"),Vc),e[$c("0x13")]("trackChanges.disableComments",!1),this[$c("0x3")]=e.get("trackChanges.disableComments")}[$c("0x28")](t,e){0===this[$c("0xa")].size&&setTimeout((()=>{for(const[t,e]of this[$c("0xa")]){const n=this[$c("0x1d")][$c("0x56")](t);n||e?n&&e&&this._destroyController(t):this[$c("0x16")](t)}this[$c("0x5")][$c("0x1f")][$c("0x39")]($c("0x68"))[$c("0x2a")](),this[$c("0x55")](),this._handleControllerBuffer[$c("0x4f")]()}),10),this[$c("0xa")].set(t,e)}[$c("0x63")](){const t=this[$c("0x5")],e=t[$c("0x1f")].get($c("0x18")),n=t[$c("0x1f")][$c("0x39")]($c("0x46")),o=t[$c("0x1f")][$c("0x39")]($c("0x68")),r=t.plugins.get($c("0x11"));t.ui[$c("0x3e")].add("trackChanges",(t=>this[$c("0xd")](t))),o[$c("0x1e")]((()=>{const t=[];for(const[e,n]of Array[$c("0x2c")](this[$c("0x1d")])){const o=e.getAllAdjacentSuggestions(),r=[];for(const t of o){if(!t[$c("0x48")])continue;if(t.isMultiRange){r[$c("0x6")](...t[$c("0x9")]());continue}const e=t[$c("0x1a")]();if(r[$c("0x4e")]>0){const t=r[0][$c("0x30")](e);if(t){r[0]=t;continue}}r[$c("0x6")](e)}t.push([n[$c("0x59")],r])}return t})),this[$c("0x42")](e,$c("0x20"),((t,e)=>{this[$c("0x42")](e,$c("0x3b"),((t,n,o,r)=>{e[$c("0x48")]&&(null==o?(this[$c("0x0")](r[$c("0x52")]),this._handleSuggestionControllerDelayed(e,!1)):(this[$c("0x0")](o[$c("0x52")]),null==r&&this[$c("0x28")](e,!0)))})),null!==e[$c("0x3d")]?this[$c("0x0")](e[$c("0x52")]):this[$c("0x28")](e,!1)})),this.listenTo(e,$c("0x1c"),((t,e,n)=>{this[$c("0x8")](e,$c("0x3b")),this[$c("0xa")].delete(e),this[$c("0x1d")].has(e)&&this._destroyController(e),n&&this[$c("0x0")](n.head)})),this[$c("0x42")](e,$c("0x3a"),((t,e)=>{this[$c("0x0")](e)})),this[$c("0x42")](n,$c("0x2d"),(()=>{this[$c("0x55")]()})),this[$c("0x42")](r,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[$c("0x67")](n))return;const r=e[$c("0x41")](n);this[$c("0x1d")][$c("0x39")](r)[$c("0x59")][$c("0x17")]()}),{priority:"lowest"})}_refreshActiveMarkers(){const t=this[$c("0x5")].plugins[$c("0x39")]($c("0x46")),e=this.editor[$c("0x1f")].get("TrackChangesEditing"),n=Array[$c("0x2c")](t[$c("0x47")],(t=>t[$c("0x5b")])).filter((t=>this._viewToController.has(t))),o=[];for(const t of n){const e=this[$c("0x62")][$c("0x39")](t)[$c("0x5f")].getAllAdjacentSuggestions();o[$c("0x6")](...e[$c("0x3c")](((t,e)=>[...t,...e[$c("0x21")]()]),[]))}e[$c("0x25")]=o}[$c("0xd")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[$c("0x5")].commands[$c("0x39")]($c("0x6b")),i=Qo(t,$c("0x22"));n[$c("0x19")][$c("0x43")]({tooltip:i,label:i,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-2023, 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.buttonView[$c("0xc")]($c("0x29")).to(o,$c("0x10")),n[$c("0x19")].on($c("0x64"),(()=>{o[$c("0x64")](),this[$c("0x5")][$c("0x65")][$c("0x59")][$c("0x17")]()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:i,commandName:$c("0x6b")}},{type:$c("0x3f")},{type:"button",model:{withText:!0,label:Qo(t,$c("0x45")),commandName:$c("0x36")}},{type:$c("0xf"),model:{withText:!0,label:Qo(t,$c("0x1b")),commandName:$c("0x5e")}},{type:$c("0xf"),model:{withText:!0,label:Qo(t,$c("0x4")),commandName:$c("0x2b")}},{type:$c("0xf"),model:{withText:!0,label:Qo(t,$c("0x4c")),commandName:$c("0x34")}}];for(const t of x){let e={type:$c("0x3f")};if(t[$c("0x5f")]){const n=new r.Model(t.model),o=this[$c("0x5")].commands[$c("0x39")](n[$c("0x35")]);n[$c("0xc")]($c("0x29"),"isEnabled").to(o,$c("0x10"),$c("0x4d")),e={type:t[$c("0x14")],model:n}}s[$c("0x26")](e)}(0,r.addListToDropdown)(n,s);const a=x[$c("0x12")]((t=>null!=t[$c("0x5f")]))[$c("0x54")]((t=>this[$c("0x5")][$c("0x24")].get(t[$c("0x5f")][$c("0x35")]))),c=n[$c("0x19")];return c[$c("0x31")][$c("0x7")]($c("0x4d")),c[$c("0x49")][$c("0x7")]("isEnabled"),c[$c("0x31")][$c("0xc")]($c("0x4d")).to(o,$c("0x4d")),c[$c("0x49")].bind($c("0x4d"))[$c("0x1")](a,$c("0x4d"),((...t)=>t[$c("0x66")]((t=>t)))),n.on($c("0x64"),(t=>{this.editor[$c("0x64")](t[$c("0x61")][$c("0x35")]),this.editor[$c("0x65")][$c("0x59")].focus()})),n}[$c("0x16")](t){const e=this[$c("0x5")],n=e.config,o=e.plugins[$c("0x39")]($c("0x46")),r=e.plugins[$c("0x39")]("CommentsRepository"),s=e[$c("0x1f")][$c("0x39")]($c("0x68")),x=e[$c("0x1f")][$c("0x39")](i.Users).me,a=n[$c("0x39")]($c("0x6b"))[$c("0x4a")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[$c("0x39")]($c("0x32"));let u,d;this[$c("0x44")][$c("0x56")](t.id)?(d=this[$c("0x44")][$c("0x39")](t.id),u=d[$c("0x57")]):(u=new a(e.locale,t,x,{disableComments:this._disableComments,editorConfig:n.get($c("0x38")),maxCommentsWhenCollapsed:n[$c("0x39")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[$c("0x39")]($c("0x5d")),maxCommentCharsWhenCollapsed:n[$c("0x39")]($c("0x60")),formatDateTime:(0,i.getDateTimeFormatter)(n[$c("0x39")]("locale")),CommentView:n[$c("0x39")]($c("0x33"))[$c("0x23")],CommentsListView:c,CommentThreadInputView:l}),u[$c("0xb")].on("execute",(()=>{e.editing.view[$c("0x17")]()})),u[$c("0x2f")].on($c("0x64"),(()=>{e[$c("0x65")][$c("0x59")].focus()})),d=o[$c("0x5a")](this[$c("0x5")][$c("0x40")],u),d[$c("0xc")]("isDirty").to(u,"isDirty"),d[$c("0xc")]($c("0x4e")).to(u),d[$c("0xc")]($c("0x14")).to(u,$c("0x14"),(t=>"suggestion-"+t)),this[$c("0x44")][$c("0x43")](t.id,d));const g=r[$c("0x51")](t[$c("0x37")],u),f=new wc(e,t,u,g),m=t.getAllAdjacentSuggestions()[$c("0x12")]((t=>t[$c("0x48")]));u[$c("0x69")]=e[$c("0x1f")][$c("0x39")]("TrackChangesEditing")[$c("0x2")][$c("0x53")](m),this[$c("0x1d")][$c("0x43")](t,f),this._viewToController[$c("0x43")](u,f);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[$c("0x12")]((t=>t[$c("0x48")]));for(const t of o)n[$c("0x6")](...t[$c("0x15")]());return(0,i.getAllMarkersDomElementsSorted)(e[$c("0x65")],n)},type:()=>"suggestion-"+f.view[$c("0x14")]});r[$c("0x58")](u,h),o[$c("0x26")](h),s.registerAnnotation(h)}[$c("0x6a")](t){const e=this[$c("0x5")][$c("0x1f")][$c("0x39")]($c("0x11")),n=this[$c("0x5")].plugins[$c("0x39")]($c("0x46")),o=this[$c("0x1d")].get(t),r=o.view,i=n[$c("0x5c")](r);e[$c("0x50")](r),i&&n.remove(i),this[$c("0x1d")][$c("0x2e")](t),this[$c("0x62")].delete(r),o[$c("0x27")]()}[$c("0x0")](t){if(!t[$c("0x48")]||!this[$c("0x1d")][$c("0x56")](t))return;const e=this[$c("0x5")][$c("0x1f")][$c("0x39")]("TrackChangesEditing"),n=this[$c("0x1d")][$c("0x39")](t),o=t.getAllAdjacentSuggestions();n.view[$c("0x69")]=e[$c("0x2")].getDescriptions(o)}[$c("0x27")](){for(const t of this[$c("0x1d")].keys())this[$c("0x6a")](t);for(const t of this._annotationViews.values())t[$c("0x57")][$c("0x27")]();super[$c("0x27")]()}}var Yc,Jc,Qc=["requires","Comments","pluginName","TrackChanges","editor","getSuggestions","get","adapter","plugins","getSuggestion"];Yc=Qc,Jc=489,function(t){for(;--t;)Yc.push(Yc.shift())}(++Jc);var tl=function(t,e){return Qc[t-=0]};class el extends t.Plugin{static get[tl("0x1")](){return[hc,Zc,tl("0x2")]}static get[tl("0x3")](){return tl("0x4")}set[tl("0x8")](t){this.editor[tl("0x9")][tl("0x7")](hc)[tl("0x8")]=t}get adapter(){return this[tl("0x5")][tl("0x9")][tl("0x7")](hc)[tl("0x8")]}addSuggestion(t){return this.editor[tl("0x9")][tl("0x7")](hc).addSuggestionData(t)}[tl("0x6")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[tl("0x5")][tl("0x9")][tl("0x7")](hc).getSuggestions({skipNotAttached:t,toJSON:e})}[tl("0x0")](t){return this[tl("0x5")][tl("0x9")].get(hc).getSuggestion(t)}}const nl=["function","createDocumentFragment","set","TrackChangesDataGetter","config","model","create","getRootsAttributes","Pagination","get","_adapter","CommentsRepository","execute","data","define","useAnonymousUser","constructor","map","TrackChangesData","pluginName","addUser","TrackChangesEditing","div","getFullData","editorCreator","plugins","trackChangesData","init","acceptAllSuggestions","getRootNames","reduce","editor","addSuggestionData","createElement","requires","trackChangesData.editorCreator","result","destroy"];var ol,rl;ol=nl,rl=436,function(t){for(;--t;)ol.push(ol.shift())}(++rl);const il=function(t,e){return nl[t-=0]},sl=[il("0x1c")];class xl extends t.Plugin{static get[il("0x10")](){return[hc]}static get pluginName(){return il("0x0")}[il("0x9")](){const t=this[il("0xd")];if(t[il("0x18")][il("0x22")](il("0x11"),(e=>{const n=t[il("0x19")].document[il("0xb")]()[il("0xc")](((t,e)=>(t[e]="",t)),{});return t[il("0x24")][il("0x1a")](n,e)})),il("0x14")!=typeof t[il("0x18")].get(il("0x8"))[il("0x6")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}getDataWithAcceptedSuggestions(t){return ll(this[il("0xd")],!0,t)}getDataWithDiscardedSuggestions(t){return ll(this[il("0xd")],!1,t)}}class al extends t.Plugin{static get[il("0x1")](){return il("0x17")}constructor(t){super(t),this[il("0x12")]="end"}[il("0x9")](){this[il("0xd")][il("0x7")][il("0x1d")](il("0x1f"))._adapter={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.editor[il("0x7")][il("0x1d")](il("0x3"))[il("0x1e")]=null}}function cl(t){return void 0!==t[il("0x1b")]}async function ll(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,sl);o[il("0x7")].push(hc,al),o.rootsAttributes=cl(t)?t[il("0x1b")]():void 0;const r=document[il("0x15")](),s=t[il("0x18")][il("0x1d")](il("0x8")).editorCreator,x=await s(o,(()=>function(t){const e=document[il("0xf")](il("0x4"));return t.appendChild(e),e}(r)));!function(t,e){const n=t[il("0x19")].document[il("0xb")]()[il("0xc")](((e,n)=>(e[n]=t[il("0x21")].get({rootName:n}),e)),{}),o=t[il("0x7")][il("0x1d")]("Users").users[il("0x25")]((t=>({id:t.id,name:t.name}))),r=t[il("0x7")][il("0x1d")]("TrackChangesEditing").getSuggestions({skipNotAttached:!0,toJSON:!0}),i=e.plugins[il("0x1d")]("Users"),s=e.plugins[il("0x1d")](il("0x3"));for(const t of o)i.getUser(t.id)||i[il("0x2")](t);i.me||i[il("0x23")]();for(const t of r)s[il("0xe")](t);e[il("0x21")][il("0x16")](n)}(t,x),x[il("0x20")](e?il("0xa"):"discardAllSuggestions");const a=cl(x)?x[il("0x5")](n):x[il("0x21")][il("0x1d")](n);return await x[il("0x13")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();