@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231209.0 → 0.0.0-nightly-20231210.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.
package/build/track-changes.js
CHANGED
|
@@ -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 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:()=>Bc,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=["editor","forceDisabled","clearForceDisabled","_enabledCommands","TrackChangesCommand","commands","refresh","affectsData","value","isEnabled","has","_disableUnsupportedCommands","_isEnabledBasedOnSelection"];var c,l;c=a,l=230,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[u("0x7")]=e,this[u("0xc")]=!1,this[u("0xa")](),this[u("0x3")]=!1}[u("0xa")](){this[u("0x0")]=!0}execute(){this.value=!this[u("0xc")],this[u("0xc")]?this[u("0x2")]():this._enableCommands()}_disableUnsupportedCommands(){for(const t of this[u("0x4")].commands[u("0x9")]())t[u("0xb")]&&!this[u("0x7")][u("0x1")](t)&&t[u("0x5")](u("0x8"))}_enableCommands(){for(const t of this[u("0x4")][u("0x9")][u("0x9")]())t.affectsData&&!this._enabledCommands[u("0x1")](t)&&t[u("0x6")](u("0x8"))}}const g=["TrackChangesEditing","plugins","canEditAt","_isEnabledBasedOnSelection","model","isEnabled","refresh","get","getRanges","_suggestions","editor"];var f,m;f=g,m=393,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._suggestions=e,this[h("0x9")](),this[h("0x6")]=!1}[h("0x9")](){this[h("0x8")]=!0}execute(t){const n=this[h("0x1")][h("0xa")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x0")]();this[h("0x2")][h("0x7")][h("0x5")](o)&&this[h("0x2")][h("0x4")][h("0xa")](h("0x3")).acceptSuggestion(n)}}const b=["_suggestions","isEnabled","execute","track-changes-discard-suggestion-not-found","getRanges","plugins","editor","_isEnabledBasedOnSelection","model","get"];var E,_;E=b,_=306,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("0x4")]=e,this.refresh(),this[T("0x1")]=!1}refresh(){this[T("0x5")]=!0}[T("0x6")](t){const n=this[T("0x4")].get(t);if(!n)throw new e.CKEditorError(T("0x7"),this);const o=n[T("0x8")]();this[T("0x0")][T("0x2")].canEditAt(o)&&this[T("0x0")][T("0x9")][T("0x3")]("TrackChangesEditing").discardSuggestion(n)}}const C=["getRanges","createPositionBefore","isTouching","length","next","from","isIntersecting","splice","value","createPositionAfter","isMultiRange","createPositionAt","isObject","isArray","sort","end","type","createRange","deletion","schema","replace","execute","isInContent","color","map"];var A,k;A=C,k=476,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0xd")](((t,e)=>I("0x11")==t[I("0xf")]&&"deletion"!=e[I("0xf")]?-1:I("0x11")!=t[I("0xf")]&&"deletion"==e[I("0xf")]?1:0))}function S(t,e){let n,o=0;const r=[],i=e[I("0x12")];for(;o<t[I("0x2")];){const s=t[o],x=t[o+1];n||(n=e[I("0x0")](s)),v(e,s,x)||(r.push(e[I("0x10")](n,i[I("0xb")](s)?e[I("0x8")](s):e[I("0xa")](s,I("0xe")))),n=null),o++}return r}function v(t,e,n){if(!n)return!1;const o=t[I("0x8")](e),r=t[I("0x0")](n);return o[I("0x1")](r)}function N(t,e,n){for(;n[I("0x2")];){const o=n[I("0x6")](0,100);t.change((()=>{for(const t of o)t[I("0x15")]&&e[I("0x14")](t.id)}))}}const L=["from","editor","canEditAt","isEnabled","_suggestions","values","isInContent","refresh","_command","model"];var M,O;M=L,O=410,function(t){for(;--t;)M.push(M.shift())}(++O);const w=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[w("0x8")]=e,this[w("0x4")]=n,this[w("0x7")](),this._isEnabledBasedOnSelection=!1}refresh(){const t=Array[w("0x0")](this._suggestions[w("0x5")]()).some((t=>t[w("0x6")]));this.isEnabled=this[w("0x8")][w("0x3")]&&t}execute(){const t=R(Array[w("0x0")](this[w("0x4")][w("0x5")]()));for(const e of t){const t=e.getRanges();if(!this[w("0x1")].model[w("0x2")](t))return}N(this[w("0x1")][w("0x9")],this[w("0x8")],t)}}const D=["_isEnabledBasedOnSelection","_selectedSuggestions","size","editor","model","_command","canEditAt","selection","isEnabled","refresh","from","_suggestions"];var P,B;P=D,B=315,function(t){for(;--t;)P.push(P.shift())}(++B);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x2")]=e,this._suggestions=n,this[U("0xa")]=new Set,this[U("0x6")](),this[U("0x9")]=!1}refresh(){const t=this[U("0x0")][U("0x1")].document[U("0x4")],e=Array.from(this[U("0x8")].values());this._selectedSuggestions=function(t,e){const n=Array[I("0x4")](t.getRanges()),o=new Set;for(const r of e)if(r[I("0x15")])for(const e of n)for(const n of r[I("0x18")]())(e[I("0x5")](n)||t.isCollapsed&&!r[I("0x9")]&&r[I("0x3")]&&n.end[I("0x1")](e.start))&&o.add(r);return o}(t,e),this[U("0x5")]=this[U("0x2")][U("0x5")]&&!!this._selectedSuggestions[U("0xb")]}execute(){const t=R(Array[U("0x7")](this[U("0xa")]));for(const e of t){const t=e.getRanges();if(!this[U("0x0")].model[U("0x3")](t))return}N(this[U("0x0")].model,this._command,t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(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=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=H(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,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt: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 St(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(Object,"create");const Ot=function(){this.__data__=Mt?Mt(null):{},this.size=0};const wt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.call(e,t)};const 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=Ot,jt.prototype.delete=wt,jt.prototype.get=Dt,jt.prototype.has=Bt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=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 Ht(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=Vt,$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)&&V(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,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Se&&Se.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 Oe=Object.prototype;const we=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Oe)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!we(t))return De(t);var e=[];for(var n in Object(t))Pe.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):Be(t)};const Ge=function(t,e){return t&&ie(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=we(t),n=[];for(var o in t)("constructor"!=o||!e&&He.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),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Sn=Rn;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 On=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var wn=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,wn.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=rt?rt.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.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 On(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 Bn(t)}};var Gn=Object.create;const Vn=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 Hn=function(t){return"function"!=typeof t.constructor||we(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.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=Sn(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?{}:Hn(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 Ro=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 So=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 V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=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=Ro(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 Oo=Object.prototype.hasOwnProperty;const wo=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:Oo.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]",Po="[object Object]",Bo=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,r,i){var s=ge(t),x=ge(e),a=s?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Po:a)==Po,u=(c=c==Fo?Po:c)==Po,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)?Ro(t,e,n,o,r,i):Mo(t,e,a,n,o,r,i);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),f=u&&Bo.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),wo(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 Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=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:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["isMultiRange","set","suggestion:","type","add","size","discard","_model","createdAt","clear","getRange","getMultiRangeId","start","_onAccept","isIntersectingWithRange","nodeBefore","onDiscard","creator","next","_saved","previous","accept","getRanges","addRange","@external","data","removeMarkers","getMarkerNames","getItems","_markerNames","attributes","subType","commentThread","isExternal","addMarkerName","from","authoredAt","setAttribute","getFirstMarker","onAccept","push","delete","substr","getMarkers","removeMarker","length","markers","isInContent","decorate","getFirstRange","_onAttributesChange","change","head","hasComments","author","_onDiscard","map"];var $o,Zo;$o=Xo,Zo=442,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._isDataLoaded=!1,this.id=e.id,this[Yo("0x11")]=e[Yo("0x11")],this[Yo("0x2d")]=e[Yo("0x2d")]||null,this.author=e[Yo("0xb")],this[Yo("0x1f")]=e.creator||e.author,this[Yo("0x2f")]=Boolean(e[Yo("0x2c")]&&e[Yo("0x2c")][Yo("0x26")]),this.data=null,this[Yo("0x15")]=t,this[Yo("0x1b")]=e[Yo("0x35")],this[Yo("0xc")]=e[Yo("0x1e")],this[Yo("0x7")]=e.onAttributesChange,this[Yo("0x2b")]=new Set,this[Yo("0x16")]=null,this.set(Yo("0x32"),null),this[Yo("0xf")](Yo("0x2c"),e[Yo("0x2c")]||{}),this.set(Yo("0x22"),null),this[Yo("0xf")](Yo("0x20"),null),this.set(Yo("0x2e"),null),this.set(Yo("0x21"),!1),this[Yo("0x5")](Yo("0x23")),this.decorate("discard")}get head(){let t=this;for(;t.previous;)t=t[Yo("0x22")];return t}get[Yo("0xa")](){return!!this[Yo("0x2e")]&&this[Yo("0x2e")].length>0}get[Yo("0xe")](){return 0!=this._markerNames[Yo("0x13")]&&6==Array[Yo("0x31")](this._markerNames)[0].split(":")[Yo("0x2")]}get[Yo("0x4")](){return null!==this.getFirstMarker()}[Yo("0x30")](t){this[Yo("0x2b")][Yo("0x12")](t)}[Yo("0x29")](){return Array[Yo("0x31")](this[Yo("0x2b")])}[Yo("0x0")](){return this[Yo("0x29")]()[Yo("0xd")]((t=>this[Yo("0x15")][Yo("0x3")].get(t))).filter((t=>t))}[Yo("0x34")](){return this[Yo("0x0")]()[0]||null}[Yo("0x28")](){this[Yo("0x15")][Yo("0x8")]((t=>{for(const e of this.getMarkers())t[Yo("0x1")](e)})),this[Yo("0x2b")][Yo("0x17")]()}[Yo("0x1")](t){this[Yo("0x15")][Yo("0x8")]((e=>{e[Yo("0x1")](t)})),this[Yo("0x2b")][Yo("0x37")](t)}[Yo("0x25")](t){const e=Yo("0x10")+this[Yo("0x11")]+":"+this[Yo("0x2d")]+":"+this.id+":"+this[Yo("0x1f")].id+":"+Jo[Yo("0x19")]();this[Yo("0x30")](e),this._model[Yo("0x8")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x1c")](t){for(const e of this[Yo("0x24")]())if(e.isIntersecting(t))return!0;return!1}[Yo("0x24")](){return this[Yo("0x0")]()[Yo("0xd")]((t=>t[Yo("0x18")]()))}getItems(){return this[Yo("0x24")]().reduce(((t,e)=>[...t,...e[Yo("0x2a")]()]),[])}[Yo("0x6")](){var t;return(null===(t=this[Yo("0x34")]())||void 0===t?void 0:t[Yo("0x18")]())||null}getContainedElement(){const t=this.getRanges();if(1!=t[Yo("0x2")])return null;const e=t[0],n=e[Yo("0x1a")].nodeAfter,o=e.end[Yo("0x1d")];return n instanceof s.Element?n!=o?null:n:null}[Yo("0x23")](){this[Yo("0x1b")](this.getRanges(),this[Yo("0x27")],this.attributes),this[Yo("0x28")]()}[Yo("0x14")](){this[Yo("0xc")](this[Yo("0x24")](),this[Yo("0x27")],this[Yo("0x2c")]),this[Yo("0x28")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Yo("0x9")];for(;e;)t[Yo("0x36")](e),e=e[Yo("0x20")];return t}[Yo("0x33")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Yo("0x2c")])||(this[Yo("0x2c")]=n,this[Yo("0x7")](n))}removeAttribute(t){const e=eo(this[Yo("0x2c")]);qo(e,t),Go(e,this[Yo("0x2c")])||(this.attributes=e,this[Yo("0x7")](this[Yo("0x2c")]))}toJSON(){return{id:this.id,type:this[Yo("0x2d")]?this.type+":"+this[Yo("0x2d")]:this[Yo("0x11")],authorId:this.creator.id,createdAt:this[Yo("0x16")],hasComments:this[Yo("0xa")],data:this[Yo("0x27")],attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)()[Yo("0x38")](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=["function","insertion","has","$textProxy","_handleRenameSuggestionDescription","quantity","*Remove format:* %0","join","element","registerElementLabel","type","removeContainer","REPLACE_TEXT","registerDescriptionCallback","$1 $2","match","addFormat","end","normal","_customCallbacks","newValue","pop","previousSibling","length","elementStart","attribute","getItemLabel","data","isObject","removeFormat","_itemLabelsCallbacks","text","_schema","addEmptyContainer","_itemLabels","getFirstRange","ELEMENT_SPACE","push","deletion","remove","key","name","map","skip","set","start","subType","_handleInsertRemoveSuggestionDescription","_handleAttributeSuggestionDescription","isInContent","Container","*Insert:* %0","_handleCustomCallbackDescription","format","Object","_addDescriptionItems","_attributeLabels","add","checkChild","*Split:* %0","EmptyContainer","*Set format:* %0","*Merge:* %0","isEqual","*Remove:* %0","softBreak","isEmpty","nextSibling","$text","replace","_resolveDescriptionItems","elementEnd","_locale","indexOf","item","get"];var er,nr;er=tr,nr=229,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("0x12")]=[],this._itemLabels=new Map,this[or("0x1d")]=[],this[or("0x37")]=new Map,this[or("0x1f")]=t,this._locale=e}getDescriptions(t){const e=[],n=new Set,o=new Set;for(let r=0;r<t.length;r++){const i=t[r];if(!i[or("0x30")])continue;const s=this[or("0x33")](i);if(s){if(null!=i[or("0x2d")]){if(n.has(i[or("0x2d")]))continue;n[or("0x38")](i[or("0x2d")])}e[or("0x24")](s)}else if(or("0x18")!=i[or("0x9")])or("0x0")!=i.type&&or("0x25")!=i[or("0x9")]||this[or("0x2e")](e,i,t[r+1]);else{const t=i[or("0x1a")][or("0x27")];if(o[or("0x1")](t))continue;o.add(i[or("0x1a")][or("0x27")]),t==mc?this[or("0x3")](e,i):this._handleAttributeSuggestionDescription(e,i)}}return this[or("0x45")](e)}[or("0xc")](t){this._customCallbacks[or("0x24")](t)}[or("0x8")](t,n,o=e.priorities[or("0x11")]){or("0x4b")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[or("0x21")][or("0x2b")](t,n)}registerAttributeLabel(t,e){this[or("0x37")].set(t,e)}[or("0x19")](t,e=1){let n;for(const e of this[or("0x1d")])if(e.matchingCallback(t)){n=e.label;break}return n||(n=this[or("0x21")].get(t[or("0x28")])),n?n(e):1!==e?e+" "+t[or("0x28")]+"s":""+t[or("0x28")]}[or("0x36")](t,e){const n=e[or("0x22")]().getWalker(),o="insertion"==e.type?or("0x38"):or("0x26");for(const e of n){const r=e.item,i=t[t[or("0x16")]-1];if(r.is(or("0x2")))i&&i[or("0x9")][or("0x48")](or("0x31"))>-1&&t[or("0x14")](),i&&or("0x1e")==i[or("0x9")]?i[o]+=r[or("0x1a")]:t[or("0x24")]({type:or("0x1e"),add:"add"==o?r[or("0x1a")]:"",remove:or("0x26")==o?r.data:""});else if(this[or("0x1f")][or("0x1b")](r)){const s=r;if(i&&i[or("0x9")].indexOf("Container")>-1&&t.pop(),or("0x46")==e.type)continue;i&&i[or("0x9")]==o+or("0x35")&&i[or("0x7")][or("0x28")]==s.name?i[or("0x4")]++:t[or("0x24")]({type:o+or("0x35"),element:s,quantity:1}),n[or("0x2a")]((t=>!(or("0x46")==t[or("0x9")]&&t[or("0x49")]==r)))}else if(this[or("0x1f")][or("0x39")](r,or("0x43"))||r.is("element",or("0x40"))){const n=r;if(or("0x38")==o&&or("0x17")==e.type||or("0x26")==o&&or("0x46")==e[or("0x9")])continue;if(i&&-1==i.type[or("0x48")](or("0x31"))){"text"==i[or("0x9")]&&(i[o]+="\n");continue}let s;if(s="add"==o?n[or("0x42")]&&!this[or("0x1f")][or("0x1b")](n[or("0x42")])?n[or("0x42")]:null:n.previousSibling&&!this._schema[or("0x1b")](n[or("0x15")])?n.previousSibling:null,n[or("0x41")]||s&&s[or("0x41")]){const e=s&&s[or("0x41")]?s:n;i&&i[or("0x9")]==o+"EmptyContainer"&&i[or("0x7")].name==e[or("0x28")]?i[or("0x4")]++:t[or("0x24")]({type:o+or("0x3b"),element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[or("0x45")](t){const e=this._locale,n=[],o=[],r=[];for(const i of t)switch(i[or("0x9")]){case or("0x1e"):if(i[or("0x38")]=i.add[or("0x44")](/(\S)\u000A+(\S)/g,or("0xd"))[or("0x44")](/\u000A/g,""),i[or("0x26")]=i[or("0x26")].replace(/(\S)\u000A+(\S)/g,or("0xd"))[or("0x44")](/\u000A/g,""),""!=i[or("0x38")]&&""!=i[or("0x26")]){n[or("0x24")]({type:"replace",content:Qo(e,or("0xb"),['"'+i.remove+'"','"'+i.add+'"'])});continue}if(null!=i[or("0x38")][or("0xe")](/^ +$/)){n.push({type:or("0x0"),content:Qo(e,or("0x32"),Qo(e,or("0x23"),i[or("0x38")][or("0x16")]))});continue}if(null!=i[or("0x26")].match(/^ +$/)){n.push({type:"deletion",content:Qo(e,or("0x3f"),Qo(e,or("0x23"),i[or("0x26")].length))});continue}if(""!=i[or("0x38")]){n[or("0x24")]({type:or("0x0"),content:Qo(e,or("0x32"),'"'+i[or("0x38")]+'"')});continue}n[or("0x24")]({type:or("0x25"),content:Qo(e,"*Remove:* %0",'"'+i.remove+'"')});continue;case or("0x20"):case"addObject":n[or("0x24")]({type:"insertion",content:Qo(e,or("0x32"),this[or("0x19")](i[or("0x7")],i.quantity))});continue;case"removeEmptyContainer":case"removeObject":n[or("0x24")]({type:or("0x25"),content:Qo(e,"*Remove:* %0",this[or("0x19")](i[or("0x7")],i[or("0x4")]))});continue;case"addContainer":n[or("0x24")]({type:or("0x0"),content:Qo(e,or("0x3a"),this[or("0x19")](i[or("0x7")],i[or("0x4")]))});continue;case or("0xa"):n.push({type:"deletion",content:Qo(e,or("0x3d"),this[or("0x19")](i[or("0x7")],i[or("0x4")]))});continue;case or("0xf"):o.push(i[or("0x27")]);continue;case or("0x1c"):r[or("0x24")](i[or("0x27")]);continue;default:n[or("0x24")](i)}if(o.length){const t=o[or("0x29")]((t=>this[or("0x37")][or("0x1")](t)?this._attributeLabels[or("0x4a")](t):t))[or("0x6")](", ");n.push({type:"format",content:Qo(this[or("0x47")],or("0x3c"),t)})}if(r[or("0x16")]){const t=r[or("0x29")]((t=>this._attributeLabels[or("0x1")](t)?this._attributeLabels.get(t):t))[or("0x6")](", ");n.push({type:"format",content:Qo(this[or("0x47")],or("0x5"),t)})}return n}[or("0x33")](t){for(const e of this[or("0x12")]){const n=e(t);if(n&&or("0x9")in n)return n}}[or("0x2f")](t,e){const n=e[or("0x1a")],o=void 0===n[or("0x13")]?"removeFormat":or("0xf");t[or("0x24")]({type:o,key:n.key})}_handleRenameSuggestionDescription(t,e){t.push({type:or("0x34"),content:Qo(this._locale,"*Change to:* %0",this[or("0x19")](e[or("0x22")]()[or("0x2c")].nodeAfter,1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this[or("0x36")](t,e),n&&n[or("0x22")]()&&!e[or("0x22")]()[or("0x10")][or("0x3e")](n.getFirstRange()[or("0x2c")])){const n=t[t[or("0x16")]-1],o="insertion"==e[or("0x9")]?"add":"remove";n&&or("0x1e")==n[or("0x9")]&&(n[o]+="\n")}}}const ir=["commands","editor","get","enableCommand","afterInit","showAIAssistant","TrackChangesEditing","plugins"];var sr,xr;sr=ir,xr=304,function(t){for(;--t;)sr.push(sr.shift())}(++xr);const ar=function(t,e){return ir[t-=0]};class cr extends t.Plugin{[ar("0x4")](){const t=this[ar("0x1")],e=t[ar("0x7")][ar("0x2")](ar("0x6"));t[ar("0x0")][ar("0x2")](ar("0x5"))&&e[ar("0x3")](ar("0x5"))}}const lr=["center","registerAttributeLabel","has","FORMAT_ALIGN_TO_LEFT","_descriptionFactory","FORMAT_ALIGN_TO_CENTER","get","plugins","type","formatBlock","locale","editor","left","value","TrackChangesEditing","afterInit","FORMAT_ALIGNMENT","alignment","justify","right","*Format:* %0","commandParams","commandName","_registerLegacyDescription"];var ur,dr;ur=lr,dr=133,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};class fr extends t.Plugin{[gr("0x2")](){const t=this.editor,e=t[gr("0x15")];if(!t[gr("0x12")][gr("0xd")]("AlignmentEditing"))return;const n=t.plugins[gr("0x11")](gr("0x1"));n._enableDefaultAttributesIntegration(gr("0x4"),[],[gr("0x4")]),n[gr("0xf")][gr("0xc")](gr("0x4"),Qo(e,gr("0x3"))),this[gr("0xa")]()}_registerLegacyDescription(){const t=this[gr("0x16")],e=t[gr("0x15")];t[gr("0x12")].get(gr("0x1"))._descriptionFactory.registerDescriptionCallback((t=>{if(gr("0x14")!=t[gr("0x13")])return;const{data:n}=t;if(n&&gr("0x4")==n[gr("0x9")]){const t=n[gr("0x8")][0][gr("0x0")];return{type:"format",content:Qo(e,gr("0x7"),function(t){switch(t){case gr("0x17"):return Qo(e,gr("0xe"));case gr("0x6"):return Qo(e,"FORMAT_ALIGN_TO_RIGHT");case gr("0xb"):return Qo(e,gr("0x10"));case gr("0x5"):return Qo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const mr=["_enableDefaultAttributesIntegration","FORMAT_STRIKETHROUGH","bold","type","editor","toLowerCase","strikethrough","underline","commandParams","FORMAT_UNDERLINE","_registerLegacyDescription","toUpperCase","locale","afterInit","StrikethroughEditing","_descriptionFactory","slice","commandName","TrackChangesEditing","FORMAT_BOLD","BoldEditing","*Remove format:* %0","plugins","FORMAT_SUBSCRIPT","ItalicEditing","CodeEditing","forceValue","FORMAT_","get","UnderlineEditing","FORMAT_ITALIC","subscript","SubscriptEditing","FORMAT_SUPERSCRIPT","has"];var hr,pr;hr=mr,pr=160,function(t){for(;--t;)hr.push(hr.shift())}(++pr);const br=function(t,e){return mr[t-=0]},Er=[br("0x0"),br("0x4"),br("0x9"),br("0x5"),br("0x1d"),br("0xc"),"SuperscriptEditing"];class _r extends t.Plugin{[br("0x1c")](){const t=this[br("0x13")],e=t[br("0x2")][br("0x8")](br("0x21")),n=t[br("0x1b")];for(const o of Er){if(!t[br("0x2")][br("0xe")](o))continue;const r=o[br("0x1f")](0,-7)[br("0x14")](),i=br("0x7")+r[br("0x1a")]();e[br("0xf")](r,[r]),e._descriptionFactory.registerAttributeLabel(r,Qo(n,i))}this[br("0x19")]()}_registerLegacyDescription(){const t=this[br("0x13")],e=t[br("0x1b")],n=t[br("0x2")][br("0x8")](br("0x21"));function o(t,o){n[br("0x1e")].registerDescriptionCallback((n=>{if("formatInline"!=n[br("0x12")])return;const{data:r}=n;return r&&r[br("0x20")]===t?r[br("0x17")][0][br("0x6")]?{type:"format",content:Qo(e,"*Format:* %0",o)}:{type:"format",content:Qo(e,br("0x1"),o)}:void 0}))}o(br("0x11"),Qo(e,br("0x22"))),o("italic",Qo(e,br("0xa"))),o(br("0x16"),Qo(e,br("0x18"))),o("code",Qo(e,"FORMAT_CODE")),o(br("0x15"),Qo(e,br("0x10"))),o(br("0xb"),Qo(e,br("0x3"))),o("superscript",Qo(e,br("0xd")))}}const Tr=["commands","model","markBlockFormat","plugins","_descriptionFactory","has","blockQuote","format","TrackChangesEditing","commandParams","forceValue","locale","document","change","schema","from","afterInit","editor","filter","name","get","checkChild","parent","getSelectedBlocks","enableCommand","commandName","$root"];var yr,Cr;yr=Tr,Cr=301,function(t){for(;--t;)yr.push(yr.shift())}(++Cr);const Ar=function(t,e){return Tr[t-=0]};class kr extends t.Plugin{[Ar("0xc")](){const t=this[Ar("0xd")],e=t[Ar("0x7")];if(!t[Ar("0x1a")][Ar("0x1")]("BlockQuoteEditing"))return;const n=t.plugins[Ar("0x10")](Ar("0x4")),o=this.editor[Ar("0x17")].get(Ar("0x2"));n[Ar("0x14")](Ar("0x2"),((e,r={})=>{const i=this[Ar("0xd")].model[Ar("0x8")].selection,s=r&&void 0!==r[Ar("0x6")]?r[Ar("0x6")]:!o.value;let x=[];if(s){const e=Array[Ar("0xb")](i[Ar("0x13")]())[Ar("0xe")]((t=>Ir(t)||function(t,e){const n=e[Ar("0x11")](t.parent,"blockQuote"),o=e[Ar("0x11")]([Ar("0x16"),Ar("0x2")],t);return n&&o}(t,this.editor.model[Ar("0xa")])));x=S(e,t[Ar("0x18")])}else{const e=Array.from(i.getSelectedBlocks())[Ar("0xe")]((t=>Ir(t)));x=S(e,t.model)}t.model[Ar("0x9")]((()=>{for(const t of x)n[Ar("0x19")](t,{commandName:"blockQuote",commandParams:[{forceValue:s}]})}))})),n[Ar("0x0")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Ar("0x2")==n[Ar("0x15")]){const t=Qo(e,"ELEMENT_BLOCK_QUOTE");return n[Ar("0x5")][0].forceValue?{type:Ar("0x3"),content:Qo(e,"*Set format:* %0",t)}:{type:Ar("0x3"),content:Qo(e,"*Remove format:* %0",t)}}}))}}function Ir(t){return Ar("0x2")==t[Ar("0x12")][Ar("0xf")]}const Rr=["editor","commands","ckbox","afterInit","TrackChangesEditing","get"];var Sr,vr;Sr=Rr,vr=170,function(t){for(;--t;)Sr.push(Sr.shift())}(++vr);const Nr=function(t,e){return Rr[t-=0]};class Lr extends t.Plugin{[Nr("0x1")](){const t=this[Nr("0x4")];t[Nr("0x5")].get(Nr("0x0"))&&t.plugins[Nr("0x3")](Nr("0x2")).enableCommand(Nr("0x0"))}}const Mr=["parent","plugins","forceValue","*Remove format:* %0","codeBlock","CodeBlock","change","rootElement","ELEMENT_CODE_BLOCK","formatBlock","label","language","_descriptionFactory","*Set format:* %0","type","afterInit","locale","toLowerCase","get","markBlockFormat","commandParams","document","value","from","enableCommand","commandName","isLimit","commands","model","registerElementLabel","TrackChangesEditing","selection","registerDescriptionCallback","has","editor","languages","getSelectedBlocks","filter","find","config"];var Or,wr;Or=Mr,wr=290,function(t){for(;--t;)Or.push(Or.shift())}(++wr);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{[Fr("0x5")](){const t=this[Fr("0x18")];if(!t[Fr("0x1f")][Fr("0x17")](Fr("0x23")))return;const e=t[Fr("0x1f")][Fr("0x8")](Fr("0x14")),n=t[Fr("0x6")],o=t[Fr("0x1d")].get(Fr("0x22"))[Fr("0x19")],r=t[Fr("0x11")][Fr("0x8")](Fr("0x22"));e[Fr("0xe")]("indentCodeBlock"),e[Fr("0xe")]("outdentCodeBlock"),e[Fr("0xe")](Fr("0x22"),((n,i={})=>{const s=t[Fr("0x12")],x=t[Fr("0x12")][Fr("0xb")][Fr("0x15")],a=i&&void 0!==i.forceValue?i[Fr("0x20")]:!r[Fr("0xc")];let c;i[Fr("0x1")]||(i.language=o[0].language),c=a?Array[Fr("0xd")](x.getSelectedBlocks())[Fr("0x1b")]((t=>{return Pr(t)||(e=t,n=s.schema,!e.is(Fr("0x25"))&&!n[Fr("0x10")](e)&&n.checkChild(e[Fr("0x1e")],Fr("0x22")));var e,n})):Array[Fr("0xd")](x[Fr("0x1a")]())[Fr("0x1b")]((t=>Pr(t)));const l=S(c,s);s[Fr("0x24")]((()=>{for(const t of l)e[Fr("0x9")](t,{commandName:"codeBlock",commandParams:[{...i,forceValue:a}],formatGroupId:"blockName"})}))})),e[Fr("0x2")][Fr("0x13")]("codeBlock",(t=>Qo(n,Fr("0x26"),t))),e._descriptionFactory[Fr("0x16")]((t=>{if(Fr("0x27")!=t[Fr("0x4")])return;const e=n.t,{data:r}=t;if(!r||Fr("0x22")!=r[Fr("0xf")])return;const i=r[Fr("0xa")][0].language,s=e(o[Fr("0x1c")]((t=>t[Fr("0x1")]===i))[Fr("0x0")])[Fr("0x7")]();return r[Fr("0xa")][0][Fr("0x20")]?{type:"format",content:Qo(n,Fr("0x3"),Qo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Qo(n,Fr("0x21"),Qo(n,Fr("0x26"),1))}}))}}function Pr(t){return Fr("0x22")==t.name}const Br=["has","plugins","enableCommand","editor","CommentsEditing"];var Ur,jr;Ur=Br,jr=161,function(t){for(;--t;)Ur.push(Ur.shift())}(++jr);const Gr=function(t,e){return Br[t-=0]};class Vr extends t.Plugin{afterInit(){const t=this[Gr("0x2")];t.plugins[Gr("0x4")](Gr("0x3"))&&t[Gr("0x0")].get("TrackChangesEditing")[Gr("0x1")]("addCommentThread")}}var Hr=n(181);const zr=["name","element","plugins","mapper","hasAttribute","toViewPosition","nextSibling","listIndent","previousPosition","addHighlight","span","createRangeOn","test","isLimit","isBlock","type","getCustomProperty","markerRange","start","getWalker","toViewElement","listItem","item","markerName","isAtEnd","includes","push","writer","model","ck-suggestion-marker--active","isContent","bindElementToMarker","getItems","schema","getAttribute","TrackChangesEditing"];var Wr,Kr;Wr=zr,Kr=230,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("0x12")]())r[qr("0x1a")](t)&&o.push(n[qr("0x21")](r));return o}function $r(t,e,{showActiveMarker:n=!0}={}){const o=t[qr("0x18")].get(qr("0x15"));return(r,i,s)=>{if(!s.consumable[qr("0x22")](i.markerRange,r[qr("0x16")]))return;const x=i.markerRange[qr("0x5")](),a=i[qr("0x3")][qr("0x4")],c=t[qr("0xe")][qr("0x13")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qr("0x8")];d=d||c[qr("0x10")](e);const n=s[qr("0x19")][qr("0x6")](e);if(n&&n[qr("0x2")](qr("0x1f")))return;"elementEnd"==t[qr("0x1")]&&c[qr("0x0")](e)&&!c[qr("0x23")](e)&&(e[qr("0x1c")]||a[qr("0xa")]?l&&l.parent==e||(l=e,f(t.previousPosition),g=!0):u=u||t[qr("0x1e")])}function f(t){const r=s[qr("0xd")].createUIElement(qr("0x20"),{class:"ck-suggestion-marker-"+e}),x=s[qr("0x19")][qr("0x1b")](t);n&&o.activeMarkers[qr("0xb")](i[qr("0x9")])&&s[qr("0xd")].addClass(qr("0xf"),r),s.writer.insert(x,r),s[qr("0x19")][qr("0x11")](r,i[qr("0x9")])}d||g||!u||f(u)}}const Zr=["end","document","setSelection","editing","markerName","lock","fromRange","writer","selection","detach","showSuggestionHighlights","plugins","batch","editor","model","downcastDispatcher","createSelection","delete","commands","removeMarker:suggestion:deletion","enableCommand","options","createRange","deleteForward","modifySelection","forward","rootName","get","unit","TrackChangesEditing","start","addMarker:suggestion:deletion","mapper","high","root","buffer","bind","unbindElementFromMarkerName","getFirstRange","markerNameToElements","unlock","merge"];var Yr,Jr;Yr=Zr,Jr=220,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 requires(){return[Hr.Delete]}init(){const t=this[Qr("0x3")],e=t[Qr("0x1")].get(Qr("0x13"));e[Qr("0xa")](Qr("0x7"));const n=t[Qr("0x8")][Qr("0x11")]("deleteForward");e[Qr("0xa")](Qr("0xd"),((e,o={})=>{const r=t[Qr("0x4")][Qr("0x6")](t[Qr("0x4")][Qr("0x21")][Qr("0x28")]);r.isCollapsed&&t[Qr("0x4")][Qr("0xe")](r,{direction:Qr("0xf"),unit:o[Qr("0x12")]});const i=r[Qr("0x1c")](),x=s.LiveRange[Qr("0x26")](i);let a;e(o),a="$graveyard"==x[Qr("0x18")][Qr("0x10")]?t[Qr("0x4")].createRange(i[Qr("0x14")]):t[Qr("0x4")][Qr("0xc")](x[Qr("0x14")],x[Qr("0x20")]),x[Qr("0x29")](),t.model.enqueueChange(n.buffer[Qr("0x2")],(t=>{n[Qr("0x19")][Qr("0x25")](),t[Qr("0x22")](t[Qr("0xc")](a[Qr("0x20")])),n.buffer[Qr("0x1e")]()}))})),t[Qr("0x23")][Qr("0x5")].on("addMarker:suggestion:deletion",$r(t,Qr("0x1f")),{priority:Qr("0x17")}),t.data[Qr("0x5")].on(Qr("0x15"),((e,n,o)=>{o[Qr("0xb")][Qr("0x0")]&&$r(t,Qr("0x1f"),{showActiveMarker:!1})[Qr("0x1a")](this)(e,n,o)}),{priority:Qr("0x17")}),t[Qr("0x23")][Qr("0x5")].on(Qr("0x9"),((t,e,n)=>{const o=n[Qr("0x16")][Qr("0x1d")](e.markerName);if(o)for(const t of o)t.is("uiElement")&&(n[Qr("0x16")][Qr("0x1b")](t,e[Qr("0x24")]),n[Qr("0x27")].remove(t))}),{priority:Qr("0x17")})}}const ei=["has","value","splitListItemAfter","before","type","push","schema","isFirstBlockOfListItem","TrackChangesEditing","map","mergeListItemForward","length","forceValue","isObject","ELEMENT_NUMBERED_LIST","add","_suggestionFactory","multipleBlocks","_descriptionFactory","createPositionAt","findIndex","list.multiBlock","setSelection","format","getSelectedBlocks","editor","from","plugins","expandListBlocksToCompleteList","registerCustomCallback","listIndent","get","nextSibling","containsItem","commandName","listItemId","*Format:* remove from %0","paragraph","markBlockFormat","enableCommand","model","*Indent:* %0","registerDescriptionCallback","ELEMENT_LIST_ITEM","*Change to:* %0","documentList","markMultiRangeBlockFormat","nodeAfter","indentList","deletion","document","toUpperCase","*Merge:* %0","change","bulletedList","getAttribute","DocumentListUtils","*Format:* insert into %0","commandParams","*Outdent:* %0","commands","ELEMENT_BULLETED_LIST","createRange","previousSibling","splitListItemBefore","next","getRanges","_LIST","formatBlock","locale","numberedList","detach","end","fromRange","start","listType","getFirstRange","selection","config","parent","outdentList","slice","formatInline"];var ni,oi;ni=ei,oi=192,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class ii extends t.Plugin{afterInit(){const t=this[ri("0x52")];if(!t[ri("0x1")][ri("0x39")]("DocumentListEditing"))return;const e=t[ri("0x2b")],n=t[ri("0x1")][ri("0x5")](ri("0x41")),o=t.plugins.get(ri("0x1e"));function r(e){return()=>{const r=t[ri("0x22")][ri("0x5")](e);if(r[ri("0x3a")]&&!t[ri("0x34")].get(ri("0x4e")))return void t.execute(ri("0xb"),{});let i=Array[ri("0x0")](t.model[ri("0x18")][ri("0x33")][ri("0x51")]());if(a(e)){i=o[ri("0x2")](i);const t=[];for(const e of i)o[ri("0x40")](e)&&t[ri("0x3e")](e);i=t}t[ri("0xe")][ri("0x1b")]((()=>{n[ri("0x14")](i,{commandName:e,commandParams:[{forceValue:!r[ri("0x3a")]}],formatGroupId:"listType"},[],ri("0x13"))}))}}function i(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[ri("0x4d")]((t=>!t.hasAttribute("listItemId")));return n>-1&&(e=e[ri("0x37")](0,n)),e}(t.model.document.selection[ri("0x51")]()),r=o[o[ri("0x44")]-1],i=t[ri("0xe")][ri("0x3f")].isObject(r)?"after":ri("0x2e"),s=t[ri("0xe")][ri("0x24")](t[ri("0xe")][ri("0x4c")](o[0],ri("0x3c")),t[ri("0xe")].createPositionAt(r,i));t[ri("0xe")][ri("0x1b")]((()=>{n[ri("0xc")](s,{commandName:e,commandParams:[],formatGroupId:ri("0x31")},function(t){const e=new Set;for(const n of t){let t=n[ri("0x6")];for(;t&&t.getAttribute("listIndent")>n[ri("0x1d")](ri("0x4"));)e[ri("0x48")](t),t=t[ri("0x6")]}return Array[ri("0x0")](e)}(o))}))}}function x(e){return()=>{const o=t[ri("0xe")][ri("0x18")][ri("0x33")][ri("0x51")]()[ri("0x27")]().value,r=t.model.createPositionAt(o,ri("0x3c")),i=t.model.createPositionAt(o,0),s=t[ri("0xe")][ri("0x24")](r,i);t.model[ri("0x1b")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:ri("0x31")})}))}}function a(e){const n=t[ri("0x22")][ri("0x5")]("bulletedList")[ri("0x3a")],o=t[ri("0x22")][ri("0x5")](ri("0x2c"))[ri("0x3a")];return"numberedList"===e?n:o}n.enableCommand(ri("0x2c"),r(ri("0x2c"))),n[ri("0xd")]("bulletedList",r(ri("0x1c"))),n[ri("0xd")](ri("0x16"),i("indentList")),n[ri("0xd")](ri("0x36"),i("outdentList")),n[ri("0xd")](ri("0x3b"),x(ri("0x3b"))),n[ri("0xd")](ri("0x26"),x(ri("0x26"))),n._descriptionFactory.registerElementLabel((function(e){const n=!t[ri("0xe")][ri("0x3f")][ri("0x46")](e),o=e[ri("0x25")],r=e[ri("0x6")],i=e[ri("0x1d")](ri("0x9")),s=!o||o.getAttribute("listItemId")!==i,x=!r||r[ri("0x1d")](ri("0x9"))!==i;return n&&Boolean(i)&&s&&x}),(t=>Qo(e,ri("0x11"),t))),n[ri("0x4b")][ri("0x10")]((function(n){if(ri("0x2a")!=n.type&&ri("0x38")!=n[ri("0x3d")])return;const{data:o}=n;if(!o)return;let r,i,s,x;switch(o[ri("0x8")]){case ri("0x1c"):s=o.commandParams[0][ri("0x45")],x=a(o[ri("0x8")]),r=s?"*Format:* insert into %0":"*Format:* remove from %0",!x&&t[ri("0x34")].get("list.multiBlock")||(r="*Change to:* %0"),i={type:ri("0x50"),content:Qo(e,r,Qo(e,ri("0x23")))};break;case ri("0x2c"):s=o[ri("0x20")][0][ri("0x45")],x=a(o[ri("0x8")]),r=ri(s?"0x1f":"0xa"),!x&&t[ri("0x34")][ri("0x5")]("list.multiBlock")||(r=ri("0x12")),i={type:ri("0x50"),content:Qo(e,r,Qo(e,ri("0x47")))};break;case ri("0x16"):r=ri("0xf"),i={type:"format",content:Qo(e,r,Qo(e,ri("0x11")))};break;case ri("0x36"):r=function(t){const e=t[ri("0x32")]();let n=e[ri("0x30")][ri("0x15")];for(;n&&e[ri("0x7")](n);){if(n[ri("0x1d")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(n)?Qo(e,ri("0xa"),Qo(e,"ELEMENT_"+n[ri("0x32")]()[ri("0x30")][ri("0x15")][ri("0x1d")](ri("0x31"))[ri("0x19")]()+ri("0x29"))):Qo(e,ri("0x21"),Qo(e,ri("0x11"))),i={type:ri("0x50"),content:r};break;case"mergeListItemBackward":case ri("0x43"):!1===o[ri("0x4a")]&&(r=ri("0x1a"),i={type:ri("0x17"),content:Qo(e,r,Qo(e,ri("0x11")))})}return i})),n[ri("0x49")][ri("0x3")](ri("0x2a"),"documentList","accept",(function(e,n){const o=[];for(let n of e)n[ri("0x30")][ri("0x15")]===n[ri("0x2e")][ri("0x35")]&&(n=t[ri("0xe")].createRange(t.model.createPositionAt(n[ri("0x30")][ri("0x15")],0))),o[ri("0x3e")](n);t[ri("0xe")][ri("0x1b")]((e=>{const r=t[ri("0xe")][ri("0x18")][ri("0x33")],i=Array[ri("0x0")](r[ri("0x28")]())[ri("0x42")]((t=>s.LiveRange[ri("0x2f")](t)));e[ri("0x4f")](o),t.commands.get(n[ri("0x8")]).refresh(),n.commandParams[ri("0x3e")]({forceDefaultExecution:!0}),t.execute(n[ri("0x8")],...n.commandParams),e.setSelection(i);for(const t of i)t[ri("0x2d")]()}))}))}}const si=["DocumentListUtils","document","listType","listStyle","getListTypeFromListStyleType","toUpperCase","DocumentListPropertiesUtils","enableCommand","listReversed","type","editor","handleListStyleCommand","*Format:* set order to reversed","isListItemBlock","format","bind","formatBlock","commandParams","push","handleListReversedCommand","*Format:* set start index to %0","replace","getAttribute","config","reversed","plugins","_descriptionFactory","afterInit","DocumentListPropertiesEditing","get","styles","markMultiRangeBlockFormat","commandName","registerDescriptionCallback","_getTranslationKeyForListStyle","*Format:* set order to regular","getSelectedBlocks","model","has","ELEMENT_","TrackChangesEditing","change","selection","_getSuggestionBlocksForListStyle","handleListStartCommand","from","formatInline","handleDescriptions","isFirstBlockOfListItem","expandListBlocksToCompleteList","listStart","_getSuggestionBlocks","locale","numbered","startIndex"];var xi,ai;xi=si,ai=151,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0x29")](){if(!this[ci("0x18")][ci("0x27")][ci("0x34")](ci("0x2a")))return;const t=this.editor[ci("0x25")][ci("0x2b")]("list.properties"),e=this.editor[ci("0x27")][ci("0x2b")](ci("0x36"));t[ci("0x2c")]&&e[ci("0x15")](ci("0x11"),this.handleListStyleCommand[ci("0x1d")](this)),t[ci("0x26")]&&e.enableCommand(ci("0x16"),this[ci("0x21")][ci("0x1d")](this)),t[ci("0xd")]&&e[ci("0x15")]("listStart",this[ci("0x3")].bind(this)),e[ci("0x28")][ci("0x2f")](this[ci("0x6")].bind(this))}[ci("0x19")](t,e={}){const n=this[ci("0x18")][ci("0x27")][ci("0x2b")](ci("0x36")),o=this._getSuggestionBlocksForListStyle();this[ci("0x18")].model[ci("0x0")]((()=>{n[ci("0x2d")](o,{commandName:ci("0x11"),commandParams:[{type:e.type}],formatGroupId:ci("0x11")})}))}[ci("0x21")](t,e={}){const n=this[ci("0x18")][ci("0x27")][ci("0x2b")](ci("0x36")),o=this[ci("0x18")][ci("0x27")][ci("0x2b")](ci("0xe")),r=this[ci("0xa")]((t=>o.isListItemBlock(t)&&ci("0xc")===t[ci("0x24")](ci("0x10"))));null!==r&&this[ci("0x18")][ci("0x33")][ci("0x0")]((()=>{n[ci("0x2d")](r,{commandName:ci("0x16"),commandParams:[{reversed:e[ci("0x26")]}],formatGroupId:ci("0x16")})}))}handleListStartCommand(t,e={}){const n=this[ci("0x18")].plugins[ci("0x2b")]("TrackChangesEditing"),o=this[ci("0x18")].plugins.get(ci("0xe")),r=this[ci("0xa")]((t=>o[ci("0x1b")](t)&&"numbered"===t[ci("0x24")]("listType")));null!==r&&this.editor[ci("0x33")].change((()=>{n[ci("0x2d")](r,{commandName:ci("0x9"),commandParams:[{startIndex:e[ci("0xd")]}],formatGroupId:ci("0x9")})}))}[ci("0x6")](t){if(ci("0x1e")!=t[ci("0x17")]&&ci("0x5")!=t[ci("0x17")])return;const e=this[ci("0x18")][ci("0xb")],{data:n}=t;if(!n)return;let o,r;switch(n[ci("0x2e")]){case ci("0x11"):o="*Change to:* %0",r={type:ci("0x1c"),content:Qo(e,o,Qo(e,this[ci("0x30")](n[ci("0x1f")][0][ci("0x17")])))};break;case ci("0x16"):o=n[ci("0x1f")][0].reversed?ci("0x1a"):ci("0x31"),r={type:"format",content:Qo(e,o)};break;case ci("0x9"):o=ci("0x22"),r={type:ci("0x1c"),content:Qo(e,o,n[ci("0x1f")][0][ci("0xd")])}}return r}[ci("0x2")](){const t=this.editor[ci("0x27")].get(ci("0xe"));let e=Array[ci("0x4")](this[ci("0x18")][ci("0x33")].document.selection[ci("0x32")]());return e[ci("0x20")](...t[ci("0x8")](e)),e=[...new Set(e)],e}[ci("0xa")](t){const e=this[ci("0x18")].plugins.get(ci("0xe"));let n=Array[ci("0x4")](this.editor[ci("0x33")][ci("0xf")][ci("0x1")][ci("0x32")]()).filter(t);if(!n.length)return null;n=e[ci("0x8")](n);const o=[];for(const t of n)e[ci("0x7")](t)&&o[ci("0x20")](t);return o}[ci("0x30")](t){return ci("0x35")+this[ci("0x18")][ci("0x27")][ci("0x2b")](ci("0x14"))[ci("0x12")](t)[ci("0x13")]()+"_LIST_"+t[ci("0x13")]()[ci("0x23")](/-/g,"_")}}var ui=n(331);const di=["split","createRange","change","options","detach","writer","commands","fromRange","selection","end","nextSibling","get","plugins","init","markerNameToElements","unbindElementFromMarkerName","fire","high","TrackChangesEditing","markerName","downcastDispatcher","mapper","editor","enter","bind","requires","remove","createPositionAt","model","document","data","removeMarker:suggestion:insertion","getFirstPosition","markInsertion","showSuggestionHighlights","editing","addMarker:suggestion:insertion"];var gi,fi;gi=di,fi=417,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("0xf")](){return[ui.Enter]}[mi("0x3")](){const t=this[mi("0xc")],e=t[mi("0x2")][mi("0x1")](mi("0x8")),n=t[mi("0x21")].get("enter");e.enableCommand(mi("0xd"),(()=>{t.model[mi("0x1d")]((o=>{const r=t[mi("0x12")][mi("0x13")][mi("0x23")],i=r[mi("0x16")](),x=s.LiveRange[mi("0x22")](r.getFirstRange());if(n.enterBlock(o)){const n=t[mi("0x12")][mi("0x11")](i.parent[mi("0x0")],0),r=o[mi("0x1c")](i,n);e[mi("0x17")](r)}else o.setSelection(o.createRange(x[mi("0x24")]));x[mi("0x1f")](),n[mi("0x6")]("afterExecute",{writer:o})}))})),t.editing[mi("0xa")].on(mi("0x1a"),$r(t,mi("0x1b")),{priority:mi("0x7")}),t[mi("0x19")][mi("0xa")].on(mi("0x15"),((t,e,n)=>{const o=n.mapper[mi("0x4")](e[mi("0x9")]);if(o)for(const t of o)t.hasClass("ck-suggestion-marker-split")&&(n[mi("0xb")][mi("0x5")](t,e[mi("0x9")]),n[mi("0x20")][mi("0x10")](t))}),{priority:mi("0x7")}),t[mi("0x14")].downcastDispatcher.on(mi("0x1a"),((e,n,o)=>{o[mi("0x1e")][mi("0x18")]&&$r(t,mi("0x1b"),{showActiveMarker:!1})[mi("0xe")](this)(e,n,o)}),{priority:mi("0x7")})}}const pi=["getRange","find","handleFindCommand","enableCommand","_isInDeletionRange","findNext","findByTextCallback","markers","filter","model","FindAndReplaceUtils","get","editor","getIntersection","plugins","item","createRange","replace","start","createPositionAt","getMarkersGroup"];var bi,Ei;bi=pi,Ei=376,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);const _i=function(t,e){return pi[t-=0]};class Ti extends t.Plugin{afterInit(){if(!this.editor[_i("0x10")].has("FindAndReplaceEditing"))return;const t=this[_i("0xe")][_i("0x10")].get("TrackChangesEditing");t.enableCommand(_i("0x3"),this[_i("0x4")].bind(this)),t[_i("0x5")](_i("0x7")),t[_i("0x5")]("findPrevious"),t[_i("0x5")](_i("0x13")),t[_i("0x5")]("replaceAll")}[_i("0x4")](t,e,n={}){const o=this[_i("0xe")][_i("0x10")][_i("0xd")](_i("0xc"));return t((t=>("string"==typeof e?o[_i("0x8")](e,n):e)(t)[_i("0xa")]((e=>!1===this._isInDeletionRange(e,t[_i("0x11")])))),n)}[_i("0x6")](t,e){const n=this.editor.model[_i("0x12")](this[_i("0xe")][_i("0xb")][_i("0x0")](e,t[_i("0x14")]),this[_i("0xe")][_i("0xb")][_i("0x0")](e,t.end));for(const t of this[_i("0xe")][_i("0xb")][_i("0x9")][_i("0x1")]("suggestion:deletion"))if(null!==n[_i("0xf")](t[_i("0x2")]()))return!0;return!1}}const yi=["*Set font background color:* %0","fontBackgroundColor.colors","commandParams","fontBackgroundColor","editor","FontFamilyEditing","value","title","*Reset font family*","FontSize","formatInline","_descriptionFactory","config","*Reset font size*","fontSize.options","plugins","fontColor.colors","model","commandName","fontColor","FORMAT_FONT_COLOR","trim","get","*Set font size:* %0","format","registerDescriptionCallback","find","FontSizeEditing","_registerLegacyDescription","fontFamily","fontSize","_enableDefaultAttributesIntegration","afterInit","FORMAT_FONT_BACKGROUND","FontBackgroundColorEditing","registerAttributeLabel","FontColorEditing","locale","FORMAT_FONT_SIZE","TrackChangesEditing","*Set font color:* %0","normalizeSizeOptions"];var Ci,Ai;Ci=yi,Ai=354,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Ii=[{pluginName:ki("0x9"),commandName:ki("0xc")},{pluginName:ki("0x1d"),commandName:"fontFamily"},{pluginName:ki("0x12"),commandName:ki("0x1")},{pluginName:ki("0x10"),commandName:ki("0x1b")}];class Ri extends t.Plugin{[ki("0xe")](){const t=this[ki("0x1c")][ki("0x13")],e=this[ki("0x1c")][ki("0x27")].get(ki("0x15"));for(const{pluginName:t,commandName:n}of Ii)this.editor[ki("0x27")].has(t)&&e[ki("0xd")](n,[n]);t.t,e._descriptionFactory.registerAttributeLabel(ki("0xc"),Qo(t,ki("0x14"))),e._descriptionFactory[ki("0x11")](ki("0xb"),Qo(t,"FORMAT_FONT_FAMILY")),e[ki("0x23")][ki("0x11")](ki("0x1"),Qo(t,ki("0x2"))),e[ki("0x23")].registerAttributeLabel(ki("0x1b"),Qo(t,ki("0xf"))),this[ki("0xa")]()}[ki("0xa")](){const t=this.editor,e=t[ki("0x13")];t[ki("0x27")].get(ki("0x15"))._descriptionFactory[ki("0x7")]((t=>{const n=e.t;if(ki("0x22")!=t.type)return;const{data:o}=t;if(null!=o){if(ki("0xc")==o[ki("0x0")]){const t=o.commandParams[0][ki("0x1e")];if(t){const o=n(this[ki("0x1c")][ki("0x27")][ki("0x4")](ki("0x21"))[ki("0x17")](this[ki("0x1c")][ki("0x24")][ki("0x4")](ki("0x26")))[ki("0x8")]((e=>e[ki("0x29")]==t))[ki("0x1f")]).toLowerCase();return{type:ki("0x6"),content:Qo(e,ki("0x5"),o)}}return{type:"format",content:Qo(e,ki("0x25"))}}if(ki("0xb")==o[ki("0x0")]){const t=o[ki("0x1a")][0][ki("0x1e")];return t?{type:"format",content:Qo(e,"*Set font family:* %0",t)}:{type:ki("0x6"),content:Qo(e,ki("0x20"))}}if("fontColor"==o[ki("0x0")]){const t=o[ki("0x1a")][0][ki("0x1e")];if(t){const o=(0,r.normalizeColorOptions)(this[ki("0x1c")][ki("0x24")][ki("0x4")](ki("0x28")))[ki("0x8")]((e=>e[ki("0x29")]==t));let i=t,s="";return o&&(i=o.label,s=n(i).toLowerCase()),{type:"format",content:Qo(e,ki("0x16"),s).trim(),color:{value:t,title:s||i}}}return{type:ki("0x6"),content:Qo(e,"*Reset font color*")}}if(ki("0x1b")==o[ki("0x0")]){const t=o.commandParams[0][ki("0x1e")];if(t){const o=(0,r.normalizeColorOptions)(this.editor[ki("0x24")][ki("0x4")](ki("0x19")))[ki("0x8")]((e=>e[ki("0x29")]==t));let i=t,s="";return o&&(i=o.label,s=n(i).toLowerCase()),{type:ki("0x6"),content:Qo(e,ki("0x18"),s)[ki("0x3")](),color:{value:t,title:s||i}}}return{type:ki("0x6"),content:Qo(e,"*Reset font background color*")}}}}))}}const Si=["commands","entries","*Set format to:* %0","toLowerCase","fontSize.options","boolean","_registerLegacyDescription","type","length","enableCommand","label","commandName","_descriptionFactory","locale","title","fontSize","_enableDefaultAttributesIntegration","join","config","get","push","fontColor.colors","format","TrackChangesEditing","formatBlock","toUpperCase","plugins","copyFormat","find","editor","model","fontColor","pasteFormat","split","afterInit","registerDescriptionCallback"];var vi,Ni;vi=Si,Ni=368,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Si[t-=0]};class Mi extends t.Plugin{[Li("0x1a")](){const t=this.editor,e=t.plugins[Li("0xb")](Li("0xf")),n=t[Li("0x1c")].get(Li("0x13")),o=t[Li("0x1c")][Li("0xb")](Li("0x18"));n&&o&&(e[Li("0x8")](Li("0x18")),e[Li("0x1")](Li("0x13")),this[Li("0x22")]())}_registerLegacyDescription(){const t=this[Li("0x15")],e=t[Li("0x5")];t.plugins[Li("0xb")](Li("0xf"))[Li("0x4")][Li("0x1b")]((n=>{if(Li("0x10")!=n[Li("0x23")]&&"formatInline"!=n[Li("0x23")])return;const{data:o}=n;if(o&&Li("0x18")===o[Li("0x3")]){const n=[],r=o.commandParams[0];for(const[e,o]of Object[Li("0x1d")](r))n[Li("0xc")](Oi(t,e,o));return n[Li("0x0")]?{type:Li("0xe"),content:Qo(e,Li("0x1e"),n[Li("0x9")](", "))}:{type:"format",content:Qo(e,"*Remove all formatting*")}}}))}}function Oi(t,e,n){const o=t[Li("0x5")].t,i=e[Li("0x19")](/(?=[A-Z])/)[Li("0x9")](" "),s=o(i.charAt(0)[Li("0x11")]()+i.slice(1))[Li("0x1f")]();if(Li("0x21")==typeof n)return s;if(Li("0x17")===e||"fontBackgroundColor"===e){const e=(0,r.normalizeColorOptions)(t[Li("0xa")][Li("0xb")](Li("0xd")))[Li("0x14")]((t=>t[Li("0x16")]==n));return s+" ("+(e?o(e[Li("0x2")])[Li("0x1f")]():n)+")"}if(Li("0x7")===e&&isNaN(parseFloat(n))){const e=t[Li("0x12")].get("FontSize").normalizeSizeOptions(t.config.get(Li("0x20")))[Li("0x14")]((t=>t[Li("0x16")]==n));return s+" ("+(e?o(e[Li("0x6")])[Li("0x1f")]():n)+")"}return s+" ("+n+")"}const wi=["get","heading.options","ELEMENT_HEADING","paragraph","_headingOptions","_descriptionFactory","formatBlock","title","find","_enableDefaultAttributesIntegration","match","has","*Change to:* %0","editor","TrackChangesEditing","registerElementLabel","HeadingEditing","locale","heading","_registerLegacyDescription","commandParams","ELEMENT_HEADING_CUSTOM","afterInit","_getHeadingLevel","type","view","format","config","plugins","name","model"];var Fi,Di;Fi=wi,Di=252,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Pi=function(t,e){return wi[t-=0]};class Bi extends t.Plugin{[Pi("0x12")](){const t=this[Pi("0x9")];if(!t[Pi("0x18")][Pi("0x7")](Pi("0xc")))return;this._headingOptions=t[Pi("0x17")].get(Pi("0x1c"));const e=t[Pi("0xd")],n=t[Pi("0x18")][Pi("0x1b")](Pi("0xa"));n[Pi("0x5")](Pi("0xe"));for(const t of this[Pi("0x0")])Pi("0x1e")!=t[Pi("0x1a")]&&n[Pi("0x1")][Pi("0xb")](t.model,(n=>{const o=this[Pi("0x13")](t.model);return null!==o?(s=n,x=o,Qo(e,Pi("0x1d"),[s,x])):(r=n,i=t[Pi("0x3")],Qo(e,Pi("0x11"),[r,i]));var r,i,s,x}));this[Pi("0xf")]()}[Pi("0xf")](){const t=this[Pi("0x9")],e=t[Pi("0xd")];t[Pi("0x18")][Pi("0x1b")](Pi("0xa"))[Pi("0x1")].registerDescriptionCallback((t=>{if(Pi("0x2")!=t[Pi("0x14")])return;const{data:n}=t;if(n&&Pi("0xe")==n.commandName){const t=n[Pi("0x10")][0].value,s=this[Pi("0x13")](t);if(null!==s)return{type:Pi("0x16"),content:Qo(e,Pi("0x8"),(1,i=s,Qo(e,Pi("0x1d"),[1,i])))};const x=this[Pi("0x0")][Pi("0x4")]((e=>e.model===t))[Pi("0x3")];return{type:Pi("0x16"),content:Qo(e,Pi("0x8"),(o=1,r=x,Qo(e,Pi("0x11"),[o,r])))}}var o,r,i}))}[Pi("0x13")](t){var e,n;const o=t[Pi("0x6")](/^heading(\d+)/);if(o)return o[1];const r=null===(e=this[Pi("0x0")])||void 0===e?void 0:e[Pi("0x4")]((e=>e[Pi("0x1a")]==t));if(r&&r[Pi("0x15")]){const t=r.view,e=(null!==(n=t[Pi("0x19")])&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["formatInline","config","color","find","locale","highlight","_enableDefaultAttributesIntegration","FORMAT_HIGHLIGHT","editor","*Remove highlight*","*Set highlight:* %0","_descriptionFactory","value","plugins","model","HighlightEditing","get","_registerLegacyDescription","type","registerDescriptionCallback","toLowerCase","format","has","TrackChangesEditing","title"];var ji,Gi;ji=Ui,Gi=154,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Vi=function(t,e){return Ui[t-=0]};class Hi extends t.Plugin{afterInit(){const t=this[Vi("0x4")];if(!t.plugins[Vi("0x12")](Vi("0xb")))return;const e=t[Vi("0x9")][Vi("0xc")](Vi("0x13")),n=t[Vi("0x0")];e[Vi("0x2")](Vi("0x1"),[Vi("0x1")]),e[Vi("0x7")].registerAttributeLabel("highlight",Qo(n,Vi("0x3"))),this[Vi("0xd")]()}[Vi("0xd")](){const t=this[Vi("0x4")],e=t[Vi("0x0")];t[Vi("0x9")][Vi("0xc")](Vi("0x13"))[Vi("0x7")][Vi("0xf")]((n=>{if(Vi("0x15")!=n[Vi("0xe")])return;const{data:o}=n;if(o&&Vi("0x1")==o.commandName){const n=e.t,r=o.commandParams[0][Vi("0x8")];if(r){const o=t[Vi("0x16")].get("highlight.options")[Vi("0x18")]((t=>t[Vi("0xa")]==r)),i=n(o[Vi("0x14")])[Vi("0x10")]();return{type:"format",content:Qo(e,Vi("0x6"),i),color:{value:o[Vi("0x17")],title:o[Vi("0x14")]}}}return{type:Vi("0x11"),content:Qo(e,Vi("0x5"),Qo(e,Vi("0x3")))}}}))}}const zi=["HorizontalLineEditing","conversion","high","afterInit","_descriptionFactory","get","ck-horizontal-line","ELEMENT_HORIZONTAL_LINE","editor","horizontalLine","elementToStructure","enableCommand","plugins","insert","registerElementLabel","createEmptyElement","dataDowncast","has","addClass","TrackChangesEditing","createContainerElement"];var Wi,Ki;Wi=zi,Ki=142,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class Xi extends t.Plugin{[qi("0x8")](){const t=this[qi("0xd")];if(!t[qi("0x11")][qi("0x1")](qi("0x5")))return;t[qi("0x11")].get(qi("0x3"))[qi("0x10")](qi("0xe"));const e=t[qi("0x11")][qi("0xa")](qi("0x3")),n=t.locale;e[qi("0x9")][qi("0x13")](qi("0xe"),(t=>Qo(n,qi("0xc"),t))),t[qi("0x6")].for(qi("0x0"))[qi("0xf")]({model:qi("0xe"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[qi("0x4")]("div"),r=e[qi("0x14")]("hr");return e[qi("0x2")](qi("0xb"),o),e[qi("0x12")](e.createPositionAt(o,0),r),o},converterPriority:qi("0x7")})}}const $i=["element","_registerLegacyDescription","HtmlEmbed","_descriptionFactory","locale","type","registerElementLabel","editor","nodeAfter","rawHtml","format","htmlEmbed","getFirstRange","start","registerDescriptionCallback","value","formatBlock","*Change %0 content*","plugins","attribute","commandName","ELEMENT_HTML_EMBED"];var Zi,Yi;Zi=$i,Yi=479,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("0xc")];if(!t[Ji("0x1")].has(Ji("0x7")))return;const e=t[Ji("0x1")].get("TrackChangesEditing"),n=t.locale;e[Ji("0x8")][Ji("0xb")](Ji("0xe"),(t=>Qo(n,Ji("0x4"),t))),e._enableDefaultAttributesIntegration(Ji("0x10"),[],[Ji("0x14")]),e[Ji("0x8")][Ji("0x13")]((t=>{if(Ji("0x2")!=t[Ji("0xa")])return;const{data:e}=t;if(e&&Ji("0x14")==e.key&&t[Ji("0x11")]()[Ji("0x12")][Ji("0xd")].is(Ji("0x5"),Ji("0xe"))){const t=Qo(n,Ji("0x4"));return{type:"format",content:Qo(n,Ji("0x0"),t)}}})),this._registerLegacyDescription()}[Ji("0x6")](){const t=this[Ji("0xc")],e=t[Ji("0x9")];t[Ji("0x1")].get("TrackChangesEditing")[Ji("0x8")][Ji("0x13")]((t=>{if(Ji("0x15")!=t[Ji("0xa")])return;const{data:n}=t;if(n&&"htmlEmbed"==n[Ji("0x3")]){const t=Qo(e,Ji("0x4"));return{type:Ji("0xf"),content:Qo(e,Ji("0x0"),t)}}}))}}const ts=["getFirstRange","_findSuggestions","editor","getClosestSelectedImageElement","change","findIndex","schema","end","convertBlockImageToInline","width","imageTypeInline","imageInline","ImageUploadEditing","_suggestionFactory","removeObject","previous","isCollapsed","find","nodeAfter","imageStylePreApply","markInsertion","newValue","plugins","subType","get","nodeBefore","isBefore","join","isIntersecting","document","ImageCaptionUtils","getNearestSelectionRange","formatBlock","ImageInlineEditing","createRange","_descriptionFactory","has","*Set image text alternative:* %0","resizedWidth","selection","enableCommand","element","isEqual","Inline image to block image","insertion","isBlockImage","getCaptionFromImageModelElement","imageTextAlternative","start","ImageEditing","FORMAT_IMAGE_SIZE","fromPosition","_enableDefaultAttributesIntegration","forward","TrackChangesEditing","imageBlock","alt","type","getSuggestionCallback","format","key","deletion","accept","toggleImageCaption","uploadImage","resizeImage","commandName","_registerLegacyDescription","createRangeOn","ImageUtils","ELEMENT_INLINE_IMAGE","model","imageTypeBlock","*Remove image text alternative*","imageCaption","length","insertImage","*Set image width:* %0","registerAttributeLabel","caption","toPrevious","discard","afterInit","registerCustomCallback","forceDefaultExecution","detach","Block image to inline image","locale","ELEMENT_CAPTION","filter","convertInlineImageToBlock","registerDescriptionCallback","commandParams","registerElementLabel","addObject"];var es,ns;es=ts,ns=278,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{[os("0x59")](){const t=this[os("0x9")];if(!t[os("0x1d")][os("0x2b")](os("0x38")))return;const e=t[os("0x1d")][os("0x1f")](os("0x3d")),n=t.plugins[os("0x1f")](os("0x4c")),o=t[os("0x5e")];e[os("0x2f")](os("0x53")),e[os("0x2a")][os("0x5")](os("0x3e"),(t=>Qo(o,"ELEMENT_IMAGE",t))),e[os("0x2a")][os("0x5")](os("0x12"),(t=>Qo(o,os("0x4d"),t))),e[os("0x2a")][os("0x5")](os("0x56"),(()=>Qo(o,os("0x0")))),t[os("0x1d")][os("0x2b")](os("0x13"))&&e.enableCommand(os("0x47")),t[os("0x1d")][os("0x2b")]("ImageBlockEditing")&&t[os("0x1d")][os("0x2b")](os("0x28"))&&(e[os("0x2f")](os("0x11"),((o,r)=>{const i=n[os("0xa")](t[os("0x4e")][os("0x24")][os("0x2e")]);t[os("0x4e")].change((()=>{e.markBlockFormat(i,{commandName:os("0x11"),commandParams:[r]},[],os("0xf"))}))})),e[os("0x2f")](os("0x4f"),((o,r)=>{t[os("0x4e")][os("0xb")]((i=>{let x=n.getClosestSelectedImageElement(t[os("0x4e")][os("0x24")][os("0x2e")]),a=i[os("0x4b")](x);const c=s.LivePosition[os("0x3a")](a[os("0x37")],os("0x57")),l=s.LivePosition.fromPosition(a[os("0xe")],"toNext");e[os("0x5b")]((()=>o(r))),x=n[os("0xa")](t[os("0x4e")][os("0x24")][os("0x2e")]),a=i[os("0x4b")](x);const u=i[os("0x29")](c,l);c[os("0x5c")](),l[os("0x5c")](),e.markBlockFormat(x,{commandName:os("0x11"),commandParams:[r]},[],"convertInlineImageToBlock"),u[os("0x37")][os("0x21")](a[os("0x37")])&&e.markInsertion(i.createRange(u[os("0x37")],a[os("0x37")]),os("0x2")),a[os("0xe")][os("0x21")](u[os("0xe")])&&e[os("0x1b")](i[os("0x29")](a[os("0xe")],u[os("0xe")]),"convertInlineImageToBlock")}))})),e[os("0x14")][os("0x5a")](os("0x27"),"convertInlineImageToBlock","join",(()=>!1)),e._suggestionFactory.registerCustomCallback(os("0x27"),os("0x2"),os("0x45"),(()=>!1)),e[os("0x14")][os("0x5a")](os("0x27"),os("0x2"),os("0x58"),e._suggestionFactory[os("0x41")](os("0x27"),"",os("0x45"))),e[os("0x14")][os("0x5a")]("insertion",os("0x2"),os("0x22"),(()=>!1)),e[os("0x14")][os("0x5a")](os("0x33"),os("0x2"),os("0x58"),(([n])=>{const o=e[os("0x14")][os("0x41")](os("0x33"),"",os("0x58"));let r=n.start,i=n.end;const s=t[os("0x4e")][os("0xd")][os("0x26")](r,"backward"),x=t.model[os("0xd")][os("0x26")](i,os("0x3c"));s[os("0x17")]&&(r=s[os("0x37")]),x.isCollapsed&&(i=x.end),o([t.model[os("0x29")](r,i)])})),e[os("0x14")][os("0x5a")](os("0x27"),"convertInlineImageToBlock","chain",x),e[os("0x14")].registerCustomCallback(os("0x33"),os("0x2"),"chain",x)),t[os("0x1d")][os("0x2b")]("ImageCaptionEditing")&&(e[os("0x2f")](os("0x46"),((o,r)=>{const i=t[os("0x1d")][os("0x1f")](os("0x25"));let s=n[os("0xa")](t[os("0x4e")][os("0x24")][os("0x2e")]),x=i.getCaptionFromImageModelElement(s);t.model[os("0xb")]((()=>{if(x)return void e.markDeletion(t.model[os("0x4b")](x));const a=n[os("0x34")](s);o(r),s=n.getClosestSelectedImageElement(t.model[os("0x24")][os("0x2e")]),x=i[os("0x35")](s),e[os("0x1b")](t[os("0x4e")][os("0x4b")](x),a?null:os("0x51"))}))})),e[os("0x14")][os("0x5a")](os("0x33"),os("0x51"),"chain",x));const r=[{type:os("0x27"),subType:os("0x1a")},{type:os("0x33"),subType:"imageCaption"},{type:os("0x27"),subType:os("0x2")},{type:os("0x33"),subType:"convertInlineImageToBlock"}];function i(t,o){const i=r[os("0xc")]((({type:e,subType:n})=>t[os("0x40")]==e&&t.subType==n)),s=r[os("0xc")]((({type:t,subType:e})=>o[os("0x40")]==t&&o[os("0x1e")]==e));if(i<0||s<0)return!1;const x=t[os("0x7")](),a=o.getFirstRange();if((0==i||1==i)&&2==s&&x[os("0x23")](a))return!0;if(2==i&&3==s){const t=e[os("0x8")](x,os("0x33"))[os("0x1")]((({suggestion:t,meta:e})=>e.isOwn&&os("0x2")==t[os("0x1e")]));if(t[os("0x52")]>1&&a[os("0xe")][os("0x31")](x[os("0x37")]))return!0;if(1==t[os("0x52")]&&(x.start[os("0x31")](a[os("0xe")])||x[os("0xe")][os("0x31")](a[os("0x37")])))return!0}if(3==i&&3==s&&x[os("0x37")][os("0x21")](a[os("0x37")])){const t=x[os("0xe")][os("0x19")],e=a[os("0x37")][os("0x20")];return n.isBlockImage(t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[os("0x1d")][os("0x2b")]("ImageResize")&&(e[os("0x3b")]("resizeImage",[],[os("0x2d")]),e[os("0x2a")][os("0x55")](os("0x2d"),Qo(o,os("0x39")))),t[os("0x1d")][os("0x2b")]("ImageTextAlternativeEditing")&&e[os("0x3b")](os("0x36"),[],[os("0x3f")]),e._descriptionFactory[os("0x3")]((t=>{if(r[os("0x18")]((({type:e,subType:n})=>t[os("0x40")]==e&&t[os("0x1e")]==n)))return t[os("0x16")]?{}:void 0})),e[os("0x2a")].registerDescriptionCallback((t=>{if(os("0x33")==t[os("0x40")]||os("0x44")==t[os("0x40")]){const e=t.getContainedElement();if(e&&e.is(os("0x30"),"caption"))return{type:os("0x33")==t.type?os("0x6"):os("0x15"),element:e,quantity:1}}})),e[os("0x2a")][os("0x3")]((t=>os("0x27")==t[os("0x40")]&&"convertInlineImageToBlock"==t[os("0x1e")]?{type:os("0x42"),content:os("0x32")}:os("0x27")==t[os("0x40")]&&os("0xf")==t[os("0x1e")]?{type:os("0x42"),content:os("0x5d")}:void 0)),e[os("0x2a")][os("0x3")]((t=>{if("attribute"!=t[os("0x40")])return;const{data:e}=t;if(!e||os("0x3f")!=e[os("0x43")])return;const n=e[os("0x1c")];return n?{type:os("0x42"),content:Qo(o,"*Set image text alternative:* %0",'"'+n+'"')}:{type:os("0x42"),content:Qo(o,os("0x50"))}})),this._registerLegacyDescription()}[os("0x4a")](){const t=this.editor,e=t.locale;t[os("0x1d")].get("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((t=>{if(os("0x27")!=t[os("0x40")]&&"formatInline"!=t[os("0x40")])return;const{data:n}=t;if(n){if(os("0x36")==n[os("0x49")]){const t=n[os("0x4")][0][os("0x1c")];return t?{type:os("0x42"),content:Qo(e,os("0x2c"),'"'+t+'"')}:{type:os("0x42"),content:Qo(e,os("0x50"))}}if(os("0x48")==n[os("0x49")]){const t=n.commandParams[0][os("0x10")];return t?{type:os("0x42"),content:Qo(e,os("0x54"),t)}:{type:os("0x42"),content:Qo(e,"*Reset image width*")}}}}))}}const is=["discard","oldValue","_enableDefaultAttributesIntegration","_registerLegacyDescription","formatBlock","get","registerCustomCallback","*Format:* replace image URL","_handleLegacySuggestions","_suggestionFactory","*Replace image URL*","formatInline","registerDescriptionCallback","attribute","format","newValue","accept","_descriptionFactory","src","type","editor","TrackChangesEditing","locale","replaceImageSource","plugins","commandName"];var ss,xs;ss=is,xs=354,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{afterInit(){if(!this[as("0x4")][as("0x8")].has("ImageEditing"))return;const t=this[as("0x4")].locale,e=this[as("0x4")][as("0x8")][as("0xf")](as("0x5"));e[as("0xc")](as("0x7"),[],[as("0x2")]),e[as("0x1")].registerDescriptionCallback((e=>{if(as("0x17")!=e.type)return;const{data:n}=e;return n&&as("0x2")==n.key?n[as("0x19")]&&n[as("0xb")]?{type:as("0x18"),content:Qo(t,as("0x14"))}:{type:as("0x18"),content:""}:void 0})),this[as("0x12")]()}[as("0x12")](){const t=this.editor.plugins[as("0xf")]("TrackChangesEditing");t[as("0x13")][as("0x10")](as("0xe"),as("0x7"),as("0x0"),t[as("0x13")].getSuggestionCallback(as("0xe"),null,as("0xa"))),t._suggestionFactory[as("0x10")](as("0xe"),"replaceImageSource",as("0xa"),t[as("0x13")].getSuggestionCallback("formatBlock",null,as("0x0"))),this[as("0xd")]()}[as("0xd")](){const t=this.editor,e=t[as("0x6")];t.plugins[as("0xf")](as("0x5"))._descriptionFactory[as("0x16")]((t=>{if(as("0xe")!=t[as("0x3")]&&as("0x15")!=t[as("0x3")])return;const{data:n}=t;return n&&as("0x7")==n[as("0x9")]?{type:"format",content:Qo(e,as("0x11"))}:void 0}))}}const ls=["editor","getSuggestionCallback","forEach","getSuggestions","_findSuggestions","formatInline","getClosestSelectedImageElement","_suggestionFactory","refresh","isBefore","commands","registerDescriptionCallback","getContainedElement","discardSuggestion","imageStyle","end","isIntersecting","document","imageCaption","_splitMarkerName","discard","next","nodeAfter","commandName","getFirstRange","hasSuggestion","length","accept","getSuggestion","newRange","type","imageStylePreApply","start","get","subType","join","insertion","author","imageTypeInline","isEqual","markBlockFormat","Users","TrackChangesEditing","normalizedStyles","createRangeOn","commandParams","model","isOwn","name","toLowerCase","afterInit","imageTypeBlock","from","title","format","findIndex","isInContent","suggestion","plugins","chain","setImageNaturalSizeAttributes","change","ImageStyleEditing","value","registerPostFixer","commandReversedParams","registerCustomCallback","selection","_descriptionFactory","*Format:* %0","shouldConvertImageType","_registerLegacyDescription","isBlockImage","imageStylePostApply","formatBlock","convertInlineImageToBlock"];var us,ds;us=ls,ds=155,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x2f")](){const t=this[gs("0x49")];if(!t[gs("0x37")].has(gs("0x3b")))return;const n=t[gs("0x37")][gs("0x1e")](gs("0x27")),o=t[gs("0x37")][gs("0x1e")]("ImageUtils"),r={};n.enableCommand(gs("0xb"),((r,i)=>{const s=t[gs("0x37")][gs("0x1e")](gs("0x26")).me,x=t[gs("0x7")][gs("0x1e")](gs("0xb"));let a=o[gs("0x3")](t[gs("0x2b")][gs("0xe")].selection),c=t[gs("0x2b")].createRangeOn(a),l=x[gs("0x3c")];if(l==i[gs("0x3c")])return;const u={commandName:gs("0xb"),commandParams:[i],formatGroupId:(0,e.uid)()};t[gs("0x2b")][gs("0x3a")]((()=>{if(n[gs("0x0")]().filter((t=>t[gs("0x35")]&&s==t[gs("0x22")]&&(gs("0x47")==t[gs("0x1b")]||gs("0x2")==t.type)&&("imageStylePreApply"==t[gs("0x1f")]||gs("0x46")==t[gs("0x1f")])&&t[gs("0x15")]()[gs("0x24")](c)))[gs("0x4b")]((t=>n[gs("0xa")](t.head))),a=o[gs("0x3")](t[gs("0x2b")].document[gs("0x40")]),c=t[gs("0x2b")][gs("0x29")](a),x[gs("0x5")](),t[gs("0x7")].get(gs("0x23"))[gs("0x5")](),t[gs("0x7")].get(gs("0x30"))[gs("0x5")](),l=x[gs("0x3c")],l!=i[gs("0x3c")])return o.isInlineImage(a)&&x[gs("0x43")](i[gs("0x3c")],a)?(r({...i,setImageSizes:!1}),a=o.getClosestSelectedImageElement(t.model[gs("0xe")][gs("0x40")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x1c"))):void(o[gs("0x45")](a)?n[gs("0x25")](a,u,[],gs("0x46")):n.markInlineFormat(c,u,gs("0x46")))}))}));for(const e of t[gs("0x37")].get(gs("0x3b"))[gs("0x28")])r[e[gs("0x2d")]]=e[gs("0x32")][gs("0x2e")]();n[gs("0x4")].registerCustomCallback(gs("0x47"),gs("0x1c"),"join",(()=>!1)),n[gs("0x4")][gs("0x3f")](gs("0x47"),"imageStylePostApply",gs("0x20"),(()=>!1)),n._suggestionFactory[gs("0x3f")](gs("0x2"),gs("0x46"),"join",(()=>!1)),n[gs("0x4")][gs("0x3f")](gs("0x47"),gs("0x1c"),gs("0x18"),(([t])=>{o[gs("0x39")](t[gs("0x9")]())})),n[gs("0x4")][gs("0x3f")](gs("0x47"),"imageStylePreApply",gs("0x11"),((t,e)=>{n._suggestionFactory[gs("0x4a")](gs("0x47"),"",gs("0x18"))(t,{commandName:e[gs("0x14")],commandParams:e[gs("0x3e")]})})),n[gs("0x4")].registerCustomCallback(gs("0x47"),gs("0x1c"),gs("0x38"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:gs("0x47"),subType:"imageStylePreApply"},{type:gs("0x21"),subType:gs("0xf")},{type:gs("0x47"),subType:"convertInlineImageToBlock"},{type:gs("0x21"),subType:"convertInlineImageToBlock"}];function s(t,e){const r=i[gs("0x34")]((({type:e,subType:n})=>t[gs("0x1b")]==e&&t.subType==n)),s=i[gs("0x34")]((({type:t,subType:n})=>e.type==t&&e[gs("0x1f")]==n));if(r<0||s<0)return!1;const x=t[gs("0x15")](),a=e[gs("0x15")]();if((0==r||1==r)&&2==s&&x[gs("0xd")](a))return!0;if(2==r&&3==s){const t=n[gs("0x1")](x,gs("0x21")).filter((({suggestion:t,meta:e})=>e[gs("0x2c")]&&gs("0x48")==t[gs("0x1f")]));if(t[gs("0x17")]>1&&a[gs("0xc")].isEqual(x[gs("0x1d")]))return!0;if(1==t[gs("0x17")]&&(x[gs("0x1d")][gs("0x24")](a[gs("0xc")])||x[gs("0xc")][gs("0x24")](a[gs("0x1d")])))return!0}if(3==r&&3==s&&x.start[gs("0x6")](a[gs("0x1d")])){const t=x[gs("0xc")][gs("0x13")],e=a[gs("0x1d")].nodeBefore;return o.isBlockImage(t)&&t===e}return!1}t[gs("0x2b")].document[gs("0x3d")]((()=>{let e=!1;const r=Array[gs("0x31")](t[gs("0x2b")][gs("0xe")].differ.getChangedMarkers());for(const{name:t,data:i}of r){const{group:r,type:s,subType:x,id:a}=n[gs("0x10")](t);if(gs("0x36")==r&&n[gs("0x16")](a)){if("formatBlock"==s&&(gs("0x1c")==x||"imageStylePostApply"==x)){const t=n[gs("0x19")](a);if(i[gs("0x1a")]){const r=t[gs("0x15")]().getContainedElement();if(o[gs("0x45")](r))continue;n[gs("0xa")](t),e=!0}}if(gs("0x21")==s&&gs("0xf")==x&&!i.newRange){const t=n.getSuggestion(a);t[gs("0x12")]&&t[gs("0x12")].isInContent&&(n[gs("0xa")](t.next),e=!0)}}}return e})),this[gs("0x44")](r)}_registerLegacyDescription(t){const e=this[gs("0x49")],n=e.locale;e[gs("0x37")][gs("0x1e")]("TrackChangesEditing")[gs("0x41")][gs("0x8")]((e=>{if("formatBlock"!=e[gs("0x1b")]&&gs("0x2")!=e[gs("0x1b")])return;const{data:o}=e;if(!o||gs("0xb")!=o[gs("0x14")])return;const r=o[gs("0x2a")][0].value;return i="side"===r?Qo(n,"FORMAT_SIDE_IMAGE"):t[r]||r,{type:gs("0x33"),content:Qo(n,gs("0x42"),i)};var i}))}}const ms=["listenTo","_handleImportedData","_trackChangesExecuted","forEach","commands","trackChanges","get","editor","TrackChangesEditing","Users","track_changes","bind","_trackChangesValueDuringImport","afterInit","plugins","enableCommand","high","importWord","dataInsert","value","lowest","execute"];var hs,ps;hs=ms,ps=168,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("0xa")]=!1}[bs("0x15")](){const t=this.editor,e=t.commands[bs("0xe")](bs("0x3")),n=t[bs("0xc")][bs("0xe")]("trackChanges");e&&(e.on(bs("0x7"),((t,[,e])=>{this[bs("0x14")]=n[bs("0x5")],e.collaboration_features[bs("0x12")]=!this._trackChangesValueDuringImport}),{priority:bs("0x2")}),this[bs("0x8")](e,bs("0x4"),this[bs("0x9")][bs("0x13")](this)),this.listenTo(e,bs("0x4"),(()=>{this[bs("0xa")]&&(n[bs("0x7")](),this[bs("0xa")]=!1)}),{priority:bs("0x6")}),t[bs("0x0")][bs("0xe")](bs("0x10"))[bs("0x1")](bs("0x3")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[bs("0xf")][bs("0xc")].get(bs("0xd")),r=o[bs("0x5")];this[bs("0x14")]!==r&&(o[bs("0x7")](),this[bs("0xa")]=!0),n&&n[bs("0xb")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[bs("0xf")][bs("0x0")].get(bs("0x11")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:bs("0x3")}}};this[bs("0xf")].plugins[bs("0xe")](bs("0x10"))._setSuggestionData(r)}))}}const _s=["indentBlock","IndentEditing","registerDescriptionCallback","enableCommand","has","_descriptionFactory","_registerLegacyDescription","formatBlock","commandName","TrackChangesEditing","indent","format","outdentBlock","IndentBlock","editor","getItems","plugins","blockIndent","*Outdent:* %0","_registerBlockAttribute","FORMAT_INDENT","get","*Indent:* %0","afterInit"];var Ts,ys;Ts=_s,ys=490,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0xd")](){const t=this[Cs("0x4")],e=t[Cs("0x6")].get(Cs("0x17"));if(t.plugins[Cs("0x12")](Cs("0xf"))&&(e[Cs("0x11")](Cs("0x0")),e[Cs("0x11")]("outdent")),t[Cs("0x6")].has(Cs("0x3")))for(const t of[Cs("0xe"),Cs("0x2")])e._enableDefaultAttributesIntegration(t);const n=t.locale;e[Cs("0x9")](Cs("0x7")),e._descriptionFactory.registerAttributeLabel("blockIndent",Qo(n,Cs("0xa"))),this[Cs("0x14")]()}[Cs("0x14")](){const t=this[Cs("0x4")],e=t.locale,n=t.plugins[Cs("0xb")](Cs("0x17"));n[Cs("0x13")][Cs("0x10")]((t=>{if(Cs("0x15")!=t.type)return;const{data:o}=t;if(!o)return;if(Cs("0xe")!=o[Cs("0x16")]&&Cs("0x2")!=o.commandName)return;const r=t[Cs("0x5")]()[0],i=n[Cs("0x13")].getItemLabel(r);return"indentBlock"==o[Cs("0x16")]?{type:"format",content:Qo(e,Cs("0xc"),i)}:Cs("0x2")==o[Cs("0x16")]?{type:Cs("0x1"),content:Qo(e,Cs("0x8"),i)}:void 0}))}}var ks,Is,Rs=["input","enableCommand","TrackChangesEditing","requires","init"];ks=Rs,Is=476,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Ss=function(t,e){return Rs[t-=0]};class vs extends t.Plugin{static get[Ss("0x2")](){return[Hr.Input]}[Ss("0x3")](){this.editor.plugins.get(Ss("0x1"))[Ss("0x0")](Ss("0x4"))}}const Ns=["get","_registerLegacyDescription","link","formatInline","attribute","has","manualDecorators","_descriptionFactory","*Remove link*","_enableDefaultAttributesIntegration","key","unlink","TrackChangesEditing","editor","registerAttributeLabel","commandParams","commandName","label","map","*Set link:* %0","plugins","newValue","LinkEditing","afterInit","format","commands","toLowerCase","linkHref","locale"];var Ls,Ms;Ls=Ns,Ms=390,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const Os=function(t,e){return Ns[t-=0]};class ws extends t.Plugin{[Os("0xa")](){const t=this[Os("0x0")];if(!t[Os("0x7")][Os("0x15")](Os("0x9")))return;const e=t.plugins.get(Os("0x1c")),n=t[Os("0xc")][Os("0x10")](Os("0x12"));e._enableDefaultAttributesIntegration(Os("0x12"),[Os("0xe"),...n[Os("0x16")][Os("0x5")]((t=>t.id))]),e[Os("0x19")]("unlink");for(const t of n[Os("0x16")])e[Os("0x17")][Os("0x1")](t.id,"link ("+t[Os("0x4")][Os("0xd")]()+")");e[Os("0x17")].registerDescriptionCallback((e=>{if(Os("0x14")!=e.type)return;const{data:n}=e;if(!n||Os("0xe")!=n[Os("0x1a")])return;const o=n[Os("0x8")],r=t[Os("0xf")];return{type:Os("0xb"),content:null==o?Qo(r,Os("0x18")):Qo(r,"*Set link:* %0",'"'+o+'"')}})),this[Os("0x11")]()}_registerLegacyDescription(){const t=this.editor,e=t[Os("0xf")];t[Os("0x7")][Os("0x10")](Os("0x1c"))[Os("0x17")].registerDescriptionCallback((t=>{if(Os("0x13")!=t.type)return;const{data:n}=t;if(n){if(Os("0x12")==n[Os("0x3")]){const t=n[Os("0x2")][0];return{type:Os("0xb"),content:Qo(e,Os("0x6"),'"'+t+'"')}}return Os("0x1b")==n[Os("0x3")]?{type:"format",content:Qo(e,Os("0x18"))}:void 0}}))}}const Fs=["getSelectedBlocks","nextSibling","document","indentList","push","end","plugins","registerElementLabel","getAttribute","listIndent","*Check item*","filter","slice","from","before","ListEditing","type","_descriptionFactory","format","findIndex","commands","change","paragraph","todo","selection","length","parent","formatBlock","value","*Outdent:* %0","has","model","element","todoListChecked","createRange","todoList","ELEMENT_TODO_LIST","previousSibling","forceValue","add","registerDescriptionCallback","markBlockFormat","replace","outdentList","ELEMENT_BULLETED_LIST","TrackChangesEditing","blockName","listItem","numberedList","createPositionAt","get","formatInline","bulletedList","name","commandName","checkChild","checkTodoList","ELEMENT_LIST_ITEM","TodoListEditing","enableCommand"];var Ds,Ps;Ds=Fs,Ps=278,function(t){for(;--t;)Ds.push(Ds.shift())}(++Ps);const Bs=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{afterInit(){const t=this.editor,e=t.locale;if(!t[Bs("0x1c")][Bs("0x34")](Bs("0x25")))return;const n=t.plugins.get(Bs("0x7")),o=t[Bs("0x1c")][Bs("0x34")](Bs("0x14"));function r(e){return()=>{const o=t[Bs("0x35")][Bs("0x18")][Bs("0x2e")],r=t[Bs("0x2a")].get(e);if(r[Bs("0x32")])return void t.execute(Bs("0x2c"),{});const i=e[Bs("0x22")](0,-4),s=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[Bs("0x11")](e[Bs("0x30")],Bs("0x9"))&&!o.isObject(e);var e,o}));o=o[Bs("0x21")]((t=>!t.is("element","listItem")||t[Bs("0x1e")]("listType")!=e));const r=new Set;for(const t of o)t.is("element","listItem")?r[Bs("0x1")](js(t)):r[Bs("0x1")](t);return Array[Bs("0x23")](r)}(o.getSelectedBlocks(),i,t.model.schema);t[Bs("0x35")][Bs("0x2b")]((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!r.value}],formatGroupId:Bs("0x8")},Gs(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Bs("0x23")](t);const n=e[Bs("0x29")]((t=>Bs("0x9")!=t.name));return n>-1&&(e=e[Bs("0x22")](0,n)),e}(t[Bs("0x35")].document[Bs("0x2e")][Bs("0x16")]()),r=t[Bs("0x35")][Bs("0x38")](t[Bs("0x35")][Bs("0xb")](o[0],Bs("0x24")),t.model.createPositionAt(o[o[Bs("0x2f")]-1],Bs("0x1b")));t[Bs("0x35")][Bs("0x2b")]((()=>{n[Bs("0x3")](r,{commandName:e,commandParams:[],formatGroupId:Bs("0x1f")},function(t){const e=new Set;for(const n of t){let t=n[Bs("0x17")];for(;t&&t[Bs("0x1e")](Bs("0x1f"))>n[Bs("0x1e")](Bs("0x1f"));)e[Bs("0x1")](t),t=t[Bs("0x17")]}return Array[Bs("0x23")](e)}(o))}))}}n[Bs("0x15")](Bs("0xa"),r(Bs("0xa"))),n[Bs("0x15")]("bulletedList",r(Bs("0xe"))),o&&n[Bs("0x15")](Bs("0x39"),r("todoList")),n[Bs("0x15")](Bs("0x19"),i(Bs("0x19"))),n[Bs("0x15")](Bs("0x5"),i("outdentList")),o&&n[Bs("0x15")]("checkTodoList",(()=>{const e=t[Bs("0x2a")][Bs("0xc")](Bs("0x12")),o=Array[Bs("0x23")](e._selectedElements);o[Bs("0x21")]((t=>t[Bs("0x1e")](Bs("0x37"))!=e.value)),t[Bs("0x35")].change((()=>{for(const t of o)n[Bs("0x3")](t,{commandName:Bs("0x12"),commandParams:[{forceValue:!e[Bs("0x32")]}]})}))})),n[Bs("0x27")][Bs("0x1d")](Bs("0x9"),(t=>Qo(e,Bs("0x13"),t))),n[Bs("0x27")][Bs("0x2")]((t=>{if(Bs("0x31")!=t[Bs("0x26")]&&Bs("0xd")!=t[Bs("0x26")])return;const{data:n}=t;if(n){if("numberedList"==n.commandName||Bs("0xe")==n[Bs("0x10")]||Bs("0x39")==n[Bs("0x10")])switch(n[Bs("0x10")][Bs("0x4")]("List","")){case"bulleted":return o(Qo(e,Bs("0x6")));case"numbered":return o(Qo(e,"ELEMENT_NUMBERED_LIST"));case Bs("0x2d"):return o(Qo(e,Bs("0x3a")))}if(Bs("0x19")==n.commandName)return{type:"format",content:Qo(e,"*Indent:* %0",Qo(e,Bs("0x13")))};if(Bs("0x5")==n[Bs("0x10")])return{type:Bs("0x28"),content:Qo(e,Bs("0x33"),Qo(e,Bs("0x13")))};if(Bs("0x12")==n[Bs("0x10")])return n.commandParams[0][Bs("0x0")]?{type:Bs("0x28"),content:Qo(e,Bs("0x20"))}:{type:Bs("0x28"),content:Qo(e,"*Uncheck item*")}}function o(t){return{type:Bs("0x28"),content:Qo(e,"*Change to:* %0",t)}}}))}}function js(t){const e=t.getAttribute(Bs("0x1f"));if(0==e)return t;let n=t;for(;t[Bs("0x3b")]&&t[Bs("0x3b")].is("element",Bs("0x9"));){const o=t[Bs("0x3b")][Bs("0x1e")]("listIndent");if(o==e)n=t[Bs("0x3b")];else if(o<e)break;t=t[Bs("0x3b")]}return n}function Gs(t){const e=[];if(t.is(Bs("0x36"),Bs("0x9"))&&t[Bs("0x1e")](Bs("0x1f"))>0){let n=t[Bs("0x17")];for(;n&&Bs("0x9")==n[Bs("0xf")]&&n[Bs("0x1e")](Bs("0x1f"))==t[Bs("0x1e")](Bs("0x1f"));)e[Bs("0x1a")](n),n=n[Bs("0x17")]}return e}const Vs=["ListPropertiesEditing","*Change to:* %0","TrackChangesEditing","map","_getTranslationKeyForListStyle","toUpperCase","registerDescriptionCallback","handleDescriptions","plugins","replace","_LIST_","reversed","commandName","list.properties","startIndex","getFirstPosition","createPositionAt","afterInit","handleListStartCommand","_descriptionFactory","formatInline","selection","filter","*Format:* set order to regular","listStyle","handleListStyleCommand","parent","numbered","commandParams","_getSuggestionBlocksForListStyle","before","get","backward","getAttribute","*Format:* set order to reversed","length","*Format:* set start index to %0","createRange","bind","document","ListUtils","enableCommand","listItem","locale","model","type","element","flat","getSelectedBlocks","listStart","change","formatBlock","forward","markMultiRangeBlockFormat","unshift","_getSuggestionBlocks","getSiblingNodes","editor","getLastPosition","format","from","has","handleListReversedCommand","listReversed","listType","config"];var Hs,zs;Hs=Vs,zs=143,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x6")](){if(!this[Ws("0x2e")].plugins[Ws("0x32")](Ws("0x37")))return;const t=this[Ws("0x2e")][Ws("0x36")][Ws("0x14")](Ws("0x2")),e=this[Ws("0x2e")][Ws("0x3f")][Ws("0x14")]("TrackChangesEditing");t.styles&&e[Ws("0x1e")](Ws("0xd"),this[Ws("0xe")].bind(this)),t[Ws("0x0")]&&e.enableCommand(Ws("0x34"),this[Ws("0x33")][Ws("0x1b")](this)),t[Ws("0x3")]&&e[Ws("0x1e")](Ws("0x26"),this[Ws("0x7")][Ws("0x1b")](this)),e[Ws("0x8")][Ws("0x3d")](this[Ws("0x3e")][Ws("0x1b")](this))}[Ws("0xe")](t,e={}){const n=this.editor.plugins[Ws("0x14")]("TrackChangesEditing"),o=this[Ws("0x12")]();this.editor[Ws("0x21")].change((()=>{n[Ws("0x2a")](o,{commandName:Ws("0xd"),commandParams:[{type:e[Ws("0x22")]}],formatGroupId:Ws("0xd")})}))}[Ws("0x33")](t,e={}){const n=this.editor[Ws("0x3f")][Ws("0x14")](Ws("0x39")),o=this._getSuggestionBlocks((t=>t.is(Ws("0x23"),Ws("0x1f"))&&Ws("0x10")===t[Ws("0x16")](Ws("0x35"))));if(o.length<1)return;const r=o[Ws("0x3a")]((t=>this[Ws("0x2e")][Ws("0x21")][Ws("0x1a")](this.editor[Ws("0x21")][Ws("0x5")](t,Ws("0x13")),this[Ws("0x2e")][Ws("0x21")][Ws("0x5")](t,0))));this.editor[Ws("0x21")][Ws("0x27")]((()=>{n[Ws("0x2a")](r,{commandName:Ws("0x34"),commandParams:[{reversed:e[Ws("0x0")]}],formatGroupId:Ws("0x34")})}))}[Ws("0x7")](t,e={}){const n=this[Ws("0x2e")].plugins.get(Ws("0x39")),o=this[Ws("0x2c")]((t=>t.is(Ws("0x23"),"listItem")&&"numbered"===t[Ws("0x16")](Ws("0x35"))));if(o[Ws("0x18")]<1)return;const r=o[Ws("0x3a")]((t=>this[Ws("0x2e")].model[Ws("0x1a")](this[Ws("0x2e")][Ws("0x21")][Ws("0x5")](t,Ws("0x13")),this.editor.model.createPositionAt(t,0))));this[Ws("0x2e")][Ws("0x21")][Ws("0x27")]((()=>{n[Ws("0x2a")](r,{commandName:Ws("0x26"),commandParams:[{startIndex:e[Ws("0x3")]}],formatGroupId:Ws("0x26")})}))}[Ws("0x3e")](t){if(Ws("0x28")!=t[Ws("0x22")]&&Ws("0x9")!=t[Ws("0x22")])return;const e=this[Ws("0x2e")][Ws("0x20")],{data:n}=t;if(!n)return;let o,r;switch(n[Ws("0x1")]){case Ws("0xd"):o=Ws("0x38"),r={type:Ws("0x30"),content:Qo(e,o,Qo(e,this._getTranslationKeyForListStyle(n.commandParams[0][Ws("0x22")])))};break;case Ws("0x34"):o=n[Ws("0x11")][0].reversed?Ws("0x17"):Ws("0xc"),r={type:"format",content:Qo(e,o)};break;case Ws("0x26"):o=Ws("0x19"),r={type:Ws("0x30"),content:Qo(e,o,n[Ws("0x11")][0].startIndex)}}return r}_getSuggestionBlocksForListStyle(){var t,e,n,o;const r=this[Ws("0x2e")].plugins[Ws("0x14")](Ws("0x1d"));let i=Array[Ws("0x31")](this[Ws("0x2e")].model[Ws("0x1c")][Ws("0xa")][Ws("0x25")]());return(null===(t=i[0])||void 0===t?void 0:t.is("element",Ws("0x1f")))&&i[Ws("0x2b")](...r.getSiblingNodes(this.editor[Ws("0x21")].document[Ws("0xa")].getFirstPosition(),Ws("0x15"))),(null===(e=i[i[Ws("0x18")]-1])||void 0===e?void 0:e.is(Ws("0x23"),Ws("0x1f")))&&i.push(...r[Ws("0x2d")](this[Ws("0x2e")].model[Ws("0x1c")].selection[Ws("0x2f")](),Ws("0x29"))),i=[...new Set(i)],(null===(o=null===(n=this[Ws("0x2e")][Ws("0x21")][Ws("0x1c")].selection[Ws("0x4")]())||void 0===n?void 0:n[Ws("0xf")])||void 0===o?void 0:o.is("element",Ws("0x1f")))&&(i=i[Ws("0xb")]((t=>t.is(Ws("0x23"),Ws("0x1f"))))),i}[Ws("0x2c")](t){const e=this.editor[Ws("0x3f")][Ws("0x14")](Ws("0x1d"));let n=Array.from(this[Ws("0x2e")][Ws("0x21")][Ws("0x1c")].selection[Ws("0x25")]())[Ws("0xb")](t)[Ws("0x3a")]((t=>{const n=this[Ws("0x2e")][Ws("0x21")][Ws("0x5")](t,0);return[...e[Ws("0x2d")](n,"backward"),...e.getSiblingNodes(n,Ws("0x29"))]}))[Ws("0x24")]();return n=[...new Set(n)],n}[Ws("0x3b")](t){return"ELEMENT_"+this[Ws("0x2e")][Ws("0x3f")].get(Ws("0x1d")).getListTypeFromListStyleType(t)[Ws("0x3c")]()+Ws("0x41")+t[Ws("0x3c")]()[Ws("0x40")](/-/g,"_")}}const qs=["editor","elementToElement","conversion","div","downcastDispatcher","media","plugins","high","attribute:url:media","dataDowncast","registerElementLabel","MediaEmbedEditing","locale","data","afterInit","get","ELEMENT_MEDIA","options","stop","showSuggestionHighlights"];var Xs,$s;Xs=qs,$s=270,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0x4")](){const t=this[Zs("0xa")];if(!t[Zs("0x10")].has(Zs("0x1")))return;const e=t[Zs("0x10")][Zs("0x5")]("TrackChangesEditing"),n=t[Zs("0x2")];e.enableCommand("mediaEmbed"),e._descriptionFactory[Zs("0x0")](Zs("0xf"),(t=>Qo(n,Zs("0x6"),t))),t[Zs("0xc")].for(Zs("0x13"))[Zs("0xb")]({model:Zs("0xf"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x9")])return e.createEmptyElement(Zs("0xd"))},converterPriority:Zs("0x11")}),t[Zs("0x3")][Zs("0xe")].on(Zs("0x12"),((t,e,n)=>{n[Zs("0x7")][Zs("0x9")]&&t[Zs("0x8")]()}),{priority:Zs("0x11")})}}const Js=["editor","enableCommand","plugins","mention","get","has","afterInit"];var Qs,tx;Qs=Js,tx=376,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x1")](){const t=this[ex("0x2")];t[ex("0x4")][ex("0x0")]("MentionEditing")&&t.plugins[ex("0x6")]("TrackChangesEditing")[ex("0x3")](ex("0x5"))}}const ox=["_descriptionFactory","registerElementLabel","editor","afterInit","PageBreakEditing","pageBreak","enableCommand","get","ELEMENT_PAGE_BREAK","plugins","TrackChangesEditing","has"];var rx,ix;rx=ox,ix=242,function(t){for(;--t;)rx.push(rx.shift())}(++ix);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x1")](){const t=this[sx("0x0")];if(!t[sx("0x7")][sx("0x9")](sx("0x2")))return;t[sx("0x7")][sx("0x5")](sx("0x8"))[sx("0x4")](sx("0x3"));const e=t.plugins[sx("0x5")]("TrackChangesEditing"),n=t.locale;e[sx("0xa")][sx("0xb")](sx("0x3"),(t=>Qo(n,sx("0x6"),t)))}}const ax=["commandName","_descriptionFactory","$text","Paragraph","isBlock","mapper","registerDescriptionCallback","nodeAfter","ELEMENT_PARAGRAPH","plugins","paragraph","bindElementToMarker","schema","afterInit","enableCommand","*Insert:* %0","start","ck-suggestion-marker--active","options","get","writer","isLimit","data","isTouching","formatBlock","insertParagraph","span","createUIElement","model","insert","activeMarkers","locale","getFirstRange","TrackChangesEditing","highest","_enableDefaultAttributesIntegration","markerName","markerRange","type","addMarker:suggestion:insertion","consumable","checkChild","editing","insertion","ck-suggestion-marker-split","has","includes","_registerLegacyDescription","end","addClass","consume","name","registerElementLabel"];var cx,lx;cx=ax,lx=469,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x15")](){const t=this.editor;if(!t.plugins[ux("0x0")](ux("0xb")))return;const e=t[ux("0x27")],n=t[ux("0x11")][ux("0x1b")](ux("0x29"));n[ux("0x9")][ux("0x7")]("paragraph",(t=>Qo(e,ux("0x10"),t))),n[ux("0x2b")](ux("0x12")),n[ux("0x16")](ux("0x21")),t[ux("0x32")].downcastDispatcher.on(ux("0x2f"),gx(t),{priority:ux("0x2a")}),t[ux("0x1e")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o[ux("0x1a")].showSuggestionHighlights&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:ux("0x2a")});const o=n[ux("0x9")];o[ux("0xe")]((n=>{if(ux("0x33")!==n[ux("0x2e")])return;const{start:r,end:i}=n[ux("0x28")]();if(!r[ux("0x1f")](i)||!r[ux("0xf")])return;const s=t[ux("0x24")][ux("0x14")],x=r[ux("0xf")];return s.isBlock(x)&&!s[ux("0x1d")](x)&&s.checkChild(x,ux("0xa"))?{type:ux("0x33"),content:Qo(e,ux("0x17"),o.getItemLabel(x,1))}:void 0})),this[ux("0x2")]()}[ux("0x2")](){const t=this.editor,e=t[ux("0x27")];t.plugins[ux("0x1b")]("TrackChangesEditing")._descriptionFactory[ux("0xe")]((t=>{if(ux("0x20")!=t[ux("0x2e")])return;const{data:n}=t;return n&&ux("0x12")==n[ux("0x8")]?{type:"format",content:Qo(e,"*Change to:* %0",Qo(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t.plugins.get(ux("0x29")),s=o[ux("0x2d")][ux("0x18")],x=o[ux("0x2d")][ux("0x3")],a=t.model[ux("0x14")];if(!s[ux("0x1f")](x)||!s[ux("0xf")])return;const c=s[ux("0xf")];if(a[ux("0xc")](c)&&!a[ux("0x1d")](c)&&a[ux("0x31")](c,"$text")){if(!r[ux("0x30")][ux("0x5")](o[ux("0x2d")],n[ux("0x6")]))return;const t=r.writer[ux("0x23")](ux("0x22"),{class:ux("0x34")}),s=r[ux("0xd")].toViewPosition(x);e&&i[ux("0x26")][ux("0x1")](o.markerName)&&r[ux("0x1c")][ux("0x4")](ux("0x19"),t),r[ux("0x1c")][ux("0x25")](s,t),r[ux("0xd")][ux("0x13")](t,o[ux("0x2c")])}}}const fx=["formatInline","has","get","editor","_descriptionFactory","formatBlock","TrackChangesEditing","format","removeFormat","_registerLegacyDescription","plugins","locale","type","commandName","RemoveFormatEditing","afterInit"];var mx,hx;mx=fx,hx=157,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0x2")](){const t=this[px("0x6")];t.plugins[px("0x4")](px("0x1"))&&(t[px("0xd")][px("0x5")](px("0x9"))._enableDefaultAttributesIntegration(px("0xb")),this[px("0xc")]())}[px("0xc")](){const t=this.editor;t[px("0xd")].get(px("0x9"))[px("0x7")].registerDescriptionCallback((e=>{if(px("0x8")!=e[px("0xf")]&&px("0x3")!=e[px("0xf")])return;const{data:n}=e;return n&&px("0xb")==n[px("0x0")]?{type:px("0xa"),content:Qo(t[px("0xe")],"*Remove all formatting*")}:void 0}))}}const Ex=["TrackChangesEditing","RestrictedEditingModeEditing","discardSelectedSuggestions","acceptSelectedSuggestions","goToNextRestrictedEditingException","acceptAllSuggestions","afterInit","get","has","acceptSuggestion","enableCommand","discardAllSuggestions","plugins"];var _x,Tx;_x=Ex,Tx=324,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x7")](){const t=this.editor;if(!t[yx("0x0")][yx("0x9")](yx("0x2")))return;const e=t[yx("0x0")].get(yx("0x1"));e.enableCommand("goToPreviousRestrictedEditingException"),e.enableCommand(yx("0x5"));const n=t.plugins[yx("0x8")]("RestrictedEditingModeEditing");n[yx("0xb")]("trackChanges"),n[yx("0xb")](yx("0xa")),n[yx("0xb")]("discardSuggestion"),n.enableCommand(yx("0x6")),n[yx("0xb")](yx("0xc")),n[yx("0xb")](yx("0x4")),n[yx("0xb")](yx("0x3"))}}const Ax=["registerElementLabel","markerRange","test","model","span","writer","markerName","activeMarkers","enableCommand","addMarker:suggestion:insertion","bindElementToMarker","insert","high","addClass","downcastDispatcher","element","editing","shiftEnter","editor","split","plugins","createPositionBefore","data","TrackChangesEditing","requires","get","deletion","ck-suggestion-marker-","addMarker:suggestion:deletion","getItems","init","_descriptionFactory","ELEMENT_LINE_BREAK","createUIElement","mapper","softBreak"];var kx,Ix;kx=Ax,Ix=221,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{static get[Rx("0x13")](){return[ui.ShiftEnter]}[Rx("0x19")](){const t=this[Rx("0xd")],e=t[Rx("0xf")][Rx("0x14")](Rx("0x12"));e[Rx("0x3")](Rx("0xc")),t[Rx("0xb")].downcastDispatcher.on(Rx("0x4"),vx(t),{priority:Rx("0x7")}),t[Rx("0xb")][Rx("0x9")].on(Rx("0x17"),vx(t),{priority:Rx("0x7")}),t[Rx("0x11")][Rx("0x9")].on("addMarker:suggestion",((e,n,o)=>{o.options.showSuggestionHighlights&&vx(t,{showActiveMarker:!1})(e,n,o)})),e[Rx("0x1a")][Rx("0x1f")](Rx("0x1e"),(e=>Qo(t.locale,Rx("0x1b"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[Rx("0xf")].get("TrackChangesEditing");if(!r.consumable[Rx("0x21")](o[Rx("0x20")],n.name))return;const s=t[Rx("0x22")];for(const t of o.markerRange[Rx("0x18")]()){if(!t.is(Rx("0xa"),"softBreak"))continue;const n=Rx("0x15")==o.markerName[Rx("0xe")](":")[1]?"merge":Rx("0xe"),x=r.writer[Rx("0x1c")](Rx("0x23"),{class:Rx("0x16")+n}),a=r[Rx("0x1d")].toViewPosition(s[Rx("0x10")](t));e&&i[Rx("0x2")].includes(o[Rx("0x1")])&&r[Rx("0x0")][Rx("0x8")]("ck-suggestion-marker--active",x),r[Rx("0x0")][Rx("0x6")](a,x),r.mapper[Rx("0x5")](x,o[Rx("0x1")])}}}const Nx=["commands","TrackChangesEditing","restrictedEditingException","format","_descriptionFactory","type","get","change","getRanges","forceValue","document","StandardEditingModeEditing","registerDescriptionCallback","plugins","commandParams","markInlineFormat","formatInline","isCollapsed","commandName","editor","has","selection","model","enableCommand","formatBlock"];var Lx,Mx;Lx=Nx,Mx=368,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const Ox=function(t,e){return Nx[t-=0]};class wx extends t.Plugin{afterInit(){const t=this[Ox("0x1")],e=t[Ox("0x4")],n=t.locale;if(!t[Ox("0x14")][Ox("0x2")](Ox("0x12")))return;const o=t[Ox("0x14")][Ox("0xd")](Ox("0x8")),r=Ox("0x9"),i=t[Ox("0x7")][Ox("0xd")](r);o[Ox("0x5")](r,((t,n={})=>{const s=e[Ox("0x11")][Ox("0x3")];if(s[Ox("0x18")])return void t(n);const x=void 0!==n.forceValue?n.forceValue:!i.value;e[Ox("0xe")]((()=>{const t=Array.from(s[Ox("0xf")]());for(const n of t){const t=x?[n]:Xr(r,n,e);for(const e of t)o[Ox("0x16")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[Ox("0xb")][Ox("0x13")]((t=>{if(Ox("0x6")!=t.type&&Ox("0x17")!=t[Ox("0xc")])return;const{data:e}=t;return e&&e[Ox("0x0")]==r?e[Ox("0x15")][0][Ox("0x10")]?{type:Ox("0xa"),content:Qo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Ox("0xa"),content:Qo(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Fx=["TrackChangesEditing","toLowerCase","GeneralHtmlSupport","formatInline","Style","has","style","add","_enableDefaultAttributesIntegration","definitions","registerDescriptionCallback","_registerInlineAttribute","locale","format","type","*Remove format:* %0","DataSchema","forceValue","_registerLegacyDescription","config","styleName","formatBlock","get","element","commandParams","block","plugins","_descriptionFactory","ghsAttributes","commandName","normalizeConfig","getGhsAttributeNameForElement","registerAttributeLabel"];var Dx,Px;Dx=Fx,Px=111,function(t){for(;--t;)Dx.push(Dx.shift())}(++Px);const Bx=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this.editor;if(!t[Bx("0xe")][Bx("0x1a")](Bx("0x19"))||!t[Bx("0xe")][Bx("0x1a")](Bx("0x4")))return;const e=t.plugins[Bx("0xa")](Bx("0x15")),n=t[Bx("0x0")],o=t[Bx("0x7")].get("style"),r=t[Bx("0xe")][Bx("0xa")](Bx("0x17")),i=t[Bx("0xe")][Bx("0xa")]("StyleUtils")[Bx("0x12")](t[Bx("0xe")].get(Bx("0x4")),o[Bx("0x1e")]);e[Bx("0x1d")](Bx("0x1b"));const s=new Set;for(const t of i[Bx("0xd")]){const e=r.getGhsAttributeNameForElement(t[Bx("0xb")]);s[Bx("0x1c")](e)}const x=new Set;for(const t of i.inline){const e=r[Bx("0x13")](t[Bx("0xb")]);x[Bx("0x1c")](e);for(const e of t[Bx("0x10")])x[Bx("0x1c")](e)}for(const t of s)e._registerBlockAttribute(t),e[Bx("0xf")][Bx("0x14")](t,Qo(n,"FORMAT_STYLE"));for(const t of x)e[Bx("0x20")](t),e[Bx("0xf")].registerAttributeLabel(t,Qo(n,"FORMAT_STYLE"));this[Bx("0x6")]()}[Bx("0x6")](){const t=this.editor,e=t[Bx("0x0")];t[Bx("0xe")].get(Bx("0x15"))._descriptionFactory[Bx("0x1f")]((t=>{if(Bx("0x9")!=t.type&&Bx("0x18")!=t[Bx("0x2")])return;const{data:n}=t;return n&&Bx("0x1b")===n[Bx("0x11")]?n[Bx("0xc")][0][Bx("0x5")]?{type:Bx("0x1"),content:Qo(e,"*Set format:* %0",n[Bx("0xc")][0][Bx("0x8")].toLowerCase())}:{type:Bx("0x1"),content:Qo(e,Bx("0x3"),n[Bx("0xc")][0][Bx("0x8")][Bx("0x16")]())}:void 0}))}}const jx=["some","rowspan","getRanges","*Remove:* %0","toViewElement","_acceptFormatSuggestionCallbackFactory","removeTableRow","ELEMENT_TABLE","start","TableUtils","insertion","TrackChangesEditing","push","map","afterInit","plugins","suggestion","findAncestor","from","nodeAfter","markMultiRangeDeletion","registerElementLabel","registerDescriptionCallback","$textProxy","getChildren","span","_suggestionFactory","document","cell","hasAttribute","getSelectionAffectedTableCells","_tablePostFixingSubtypes","getFirstRange","editor","element","isEqual","insert","selectTableRow","isArray","*Insert:* %0","commands","createRangeOn","_getSuggestionCoords","left","above","getColumnIndexes","type","_setupColumnsRowsFixing","refresh","writer","end","registerCustomCallback","_tableSuggestions","maxColumn","tableRow","_getCoordsForCells","startsWith","insertTableColumnRight","position","rootName","fromRange","data","highest","getAttribute","tablePaste","options","createPositionAt","MIN_SAFE_INTEGER","getChangedMarkers","change","change:data","execute","removeTableColumn","locale","markMultiRangeInsertion","addClass","max","model","minColumn","length","downcastDispatcher","showSuggestionHighlights","removeClass","add","ELEMENT_TABLE_WITH_TEXT","colspan","registerPostFixer","getItems","join","detach","name","ELEMENT_TABLE_COLUMN","MAX_SAFE_INTEGER","differ","selectTableColumn","subType","oldRange","enableCommand","batch","getCellLocation","values","insertTableColumnLeft","substr","addRange","get","first","toLowerCase","every","TableEditing","forceValue","last","min","includes","low","maxRow","item","table","createRangeIn","filter","ELEMENT_TABLE_ROW","$graveyard","addMarker:suggestion","enqueueChange","getRowIndexes","has","discard","ELEMENT_TABLE_ROW_WITH_TEXT","deletion","root","mapper","isInContent","accept","_descriptionFactory","createTableWalker","setSelection","tableColumn","getSuggestion","order","insertTable"];var Gx,Vx;Gx=jx,Vx=342,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Hx("0x81"),Hx("0x47")],this._tableSuggestions=new Set}[Hx("0x59")](){const t=this[Hx("0x6c")],e=t.model[Hx("0x66")].selection;if(!t.plugins[Hx("0x3c")](Hx("0x2c")))return;const n=t[Hx("0x9")],o=t.plugins[Hx("0x28")](Hx("0x56")),r=t.plugins.get("TableUtils");o[Hx("0x44")][Hx("0x60")](Hx("0x34"),(t=>Qo(n,Hx("0x52"),t))),this[Hx("0x7a")](),o[Hx("0x21")](Hx("0x4a")),o[Hx("0x21")](Hx("0x70")),o[Hx("0x21")](Hx("0x1e"));for(const n of["insertTableRowAbove","insertTableRowBelow"]){const i=t[Hx("0x73")].get(n);o.enableCommand(n,(n=>{t[Hx("0xd")][Hx("0x5")]((t=>{n();const s=Hx("0x77")===i[Hx("0x49")],x=r[Hx("0x69")](e),a=r[Hx("0x3b")](x),c=s?a[Hx("0x29")]-1:a[Hx("0x2e")]+1,l=x[0][Hx("0x5c")](Hx("0x34")),u=r[Hx("0x45")](l,{startRow:c,endRow:c}),d=Array[Hx("0x5d")](u)[Hx("0x58")]((e=>t[Hx("0x74")](e[Hx("0x67")])));o[Hx("0xa")](d,Hx("0x81"))}))}))}for(const n of[Hx("0x25"),Hx("0x84")]){const i=t[Hx("0x73")][Hx("0x28")](n);o[Hx("0x21")](n,(n=>{t.model[Hx("0x5")]((t=>{n();const s=Hx("0x76")===i[Hx("0x49")],x=r[Hx("0x69")](e),a=r.getColumnIndexes(x),c=s?a[Hx("0x29")]-1:a.last+1,l=x[0][Hx("0x5c")](Hx("0x34")),u=r[Hx("0x45")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u).map((e=>t.createRangeOn(e.cell)));o[Hx("0xa")](d,Hx("0x47"))}))}))}for(const n of[Hx("0x51"),Hx("0x8")]){const i=n[Hx("0x26")](11),s=i[Hx("0x2a")](),x=s[Hx("0x26")](0,3)+Hx("0x64"),a="table"+i,c=Hx("0x2f")+i,l=Hx("0xc")+i;o[Hx("0x21")](n,(()=>{t[Hx("0xd")][Hx("0x5")]((t=>{const i=r[Hx("0x69")](e),u=i[0][Hx("0x5c")]("table");let d;if("removeTableRow"==n){const t=r[Hx("0x3b")](i);d={startRow:t[Hx("0x29")],endRow:t[Hx("0x2e")],includeAllSlots:!0}}else{const t=r[Hx("0x78")](i);d={startColumn:t.first,endColumn:t[Hx("0x2e")],includeAllSlots:!0}}const g=r[Hx("0x45")](u,d),f=Array[Hx("0x5d")](g)[Hx("0x58")]((({cell:t})=>t)),m=Wx(f[Hx("0x36")]((t=>t[Hx("0x68")](x)))),h=Wx(f[Hx("0x36")]((t=>!t[Hx("0x68")](x))))[Hx("0x58")]((e=>t[Hx("0x74")](e))),p=o[Hx("0x5f")](h,a);if(p&&(Hx("0x81")==p.subType||Hx("0x47")==p[Hx("0x1f")])){const e=this[Hx("0x75")](p);for(const n of m){const o=t.createRangeOn(n),i=r[Hx("0x23")](n),a=n[Hx("0x8a")](x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&p[Hx("0x27")](o)}}}))}))}function i(n){const o=Array[Hx("0x5d")](e[Hx("0x4d")]())[Hx("0x58")]((t=>s.LiveRange[Hx("0x87")](t)));t.model.change((e=>{const r=e[Hx("0x22")];n=n[Hx("0x36")]((t=>"$graveyard"!=t.root[Hx("0x86")])),e.setSelection(n),t[Hx("0x73")][Hx("0x28")](Hx("0x51"))[Hx("0x7b")](),t[Hx("0x7")](Hx("0x51"),{forceDefaultExecution:!0}),t[Hx("0xd")][Hx("0x3a")]((()=>{t[Hx("0xd")][Hx("0x3a")](r,(t=>{const e=o[Hx("0x36")]((t=>Hx("0x38")!=t[Hx("0x40")].rootName));e.length>0&&t[Hx("0x46")](e);for(const t of o)t[Hx("0x19")]()}))}))}))}function a(n){t[Hx("0xd")].change((o=>{const r=Array[Hx("0x5d")](e[Hx("0x4d")]())[Hx("0x58")]((t=>s.LiveRange.fromRange(t))),i=[];for(const t of n)for(const e of t[Hx("0x17")]({shallow:!0}))i[Hx("0x57")](e);for(const e of i)"$graveyard"!=e[Hx("0x40")][Hx("0x86")]&&(o[Hx("0x46")](o[Hx("0x2")](e,0)),t.commands[Hx("0x28")]("removeTableColumn")[Hx("0x7b")](),t.execute(Hx("0x8"),{forceDefaultExecution:!0}));const x=r[Hx("0x36")]((t=>Hx("0x38")!=t[Hx("0x40")][Hx("0x86")]));x[Hx("0xf")]>0&&o[Hx("0x46")](x);for(const t of r)t[Hx("0x19")]()}))}function c(t,e){return e[Hx("0x2b")]((e=>t[Hx("0x4b")]((t=>t[Hx("0x7d")][Hx("0x6e")](e[Hx("0x53")])||e.end[Hx("0x6e")](t[Hx("0x53")])))))}function l(t,e){return t[Hx("0x4b")]((t=>e[Hx("0x4b")]((e=>t[Hx("0x7d")].isTouching(e.start)))))}t[Hx("0x88")][Hx("0x10")].on(Hx("0x39"),((t,e,n)=>{if(!n[Hx("0x1")][Hx("0x11")])return;const o=e[Hx("0x33")];if(!o)return;const r=n[Hx("0x41")][Hx("0x4f")](o);function i(t){return Array[Hx("0x71")](t)?t:[t]}r&&"tableCell"===o[Hx("0x1a")]&&(0,x.setHighlightHandling)(r,n[Hx("0x7c")],((t,e,n)=>n[Hx("0xb")](i(e.classes),t)),((t,e,n)=>n[Hx("0x12")](i(e.classes),t)))}),{priority:Hx("0x89")}),o[Hx("0x44")][Hx("0x61")]((t=>{if(Hx("0x55")!=t.type&&Hx("0x3f")!=t[Hx("0x79")])return;const e=t.getContainedElement();if(null!=e&&e.is(Hx("0x6d"),Hx("0x34"))){if(Hx("0x55")==t.type){const e=t[Hx("0x17")]()[Hx("0x36")]((t=>t.is(Hx("0x62"))))[Hx("0x58")]((t=>t[Hx("0x88")]));if(e[Hx("0xf")])return{type:Hx("0x55"),content:Qo(n,"*Insert:* %0",Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Hx("0x18")](" ")+'"'))}}if("deletion"==t[Hx("0x79")]){const e=t[Hx("0x17")]()[Hx("0x36")]((t=>t.is(Hx("0x62")))).map((t=>t[Hx("0x88")]));if(e[Hx("0xf")])return{type:Hx("0x3f"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x14"),'"'+e[Hx("0x18")](" ")+'"'))}}}})),o[Hx("0x44")][Hx("0x61")]((t=>{if(Hx("0x81")==t[Hx("0x1f")]){const e=t[Hx("0x17")]()[Hx("0x36")]((t=>t.is(Hx("0x62")))).map((t=>t[Hx("0x88")])),o=this[Hx("0x75")](t),r=o[Hx("0x32")]-o.minRow+1;if("insertion"==t[Hx("0x79")])return e[Hx("0xf")]?{type:Hx("0x55"),content:Qo(n,Hx("0x72"),Qo(n,Hx("0x3e"),[r,'"'+e[Hx("0x18")](" ")+'"']))}:{type:"insertion",content:Qo(n,Hx("0x72"),Qo(n,Hx("0x37"),r))};if(Hx("0x3f")==t[Hx("0x79")])return e[Hx("0xf")]?{type:Hx("0x3f"),content:Qo(n,Hx("0x4e"),Qo(n,Hx("0x3e"),[r,'"'+e[Hx("0x18")](" ")+'"']))}:{type:"deletion",content:Qo(n,Hx("0x4e"),Qo(n,"ELEMENT_TABLE_ROW",r))}}if(Hx("0x47")==t[Hx("0x1f")]){const e=t[Hx("0x17")]().filter((t=>t.is("$textProxy")))[Hx("0x58")]((t=>t[Hx("0x88")])),o=this[Hx("0x75")](t),r=o[Hx("0x80")]-o[Hx("0xe")]+1;if(Hx("0x55")==t[Hx("0x79")])return e[Hx("0xf")]?{type:Hx("0x55"),content:Qo(n,Hx("0x72"),Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Qo(n,"*Insert:* %0",Qo(n,Hx("0x1b"),r))};if(Hx("0x3f")==t.type)return e.length?{type:Hx("0x3f"),content:Qo(n,Hx("0x4e"),Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e[Hx("0x18")](" ")+'"']))}:{type:Hx("0x3f"),content:Qo(n,Hx("0x4e"),Qo(n,Hx("0x1b"),r))}}})),o._suggestionFactory[Hx("0x7e")]("insertion",Hx("0x81"),"discard",i),o[Hx("0x65")][Hx("0x7e")](Hx("0x3f"),Hx("0x81"),Hx("0x43"),i),o._suggestionFactory[Hx("0x7e")](Hx("0x55"),Hx("0x47"),Hx("0x3d"),a),o[Hx("0x65")][Hx("0x7e")]("deletion","tableColumn","accept",a),o[Hx("0x65")][Hx("0x7e")](Hx("0x55"),Hx("0x47"),Hx("0x18"),c),o[Hx("0x65")].registerCustomCallback(Hx("0x3f"),"tableColumn",Hx("0x18"),c),o[Hx("0x65")].registerCustomCallback(Hx("0x55"),Hx("0x81"),Hx("0x18"),l),o[Hx("0x65")][Hx("0x7e")](Hx("0x3f"),Hx("0x81"),Hx("0x18"),l)}[Hx("0x50")](){const t=this[Hx("0x6c")],e=t[Hx("0xd")][Hx("0x66")].selection;return(n,o)=>{t[Hx("0xd")].change((r=>{const{commandName:i,commandParams:x}=o;let a=n[0][Hx("0x7d")].nodeBefore;x&&x[0]&&!1===x[0][Hx("0x2d")]&&(a=n[0][Hx("0x53")][Hx("0x5e")]);const c=r[Hx("0x35")](a);if(Hx("0x38")==c[Hx("0x40")].rootName)return;const l=Array[Hx("0x5d")](e[Hx("0x4d")]())[Hx("0x58")]((t=>s.LiveRange[Hx("0x87")](t)));r[Hx("0x46")](c),t[Hx("0x73")][Hx("0x28")](i)[Hx("0x7b")](),x[Hx("0x57")]({forceDefaultExecution:!0}),t[Hx("0x7")](i,...x);const u=l[Hx("0x36")]((t=>Hx("0x38")!=t[Hx("0x40")][Hx("0x86")]));u[Hx("0xf")]>0&&r[Hx("0x46")](u);for(const t of l)t[Hx("0x19")]()}))}}[Hx("0x82")](t){const e=this[Hx("0x6c")].plugins[Hx("0x28")](Hx("0x54"));let n=Number[Hx("0x1c")],o=Number[Hx("0x3")],r=Number[Hx("0x1c")],i=Number[Hx("0x3")];for(const s of t){if(Hx("0x38")==s[Hx("0x40")][Hx("0x86")])continue;const{row:t,column:x}=e.getCellLocation(s),a=s.hasAttribute(Hx("0x4c"))?s[Hx("0x8a")](Hx("0x4c"))-1:0,c=s[Hx("0x68")]("colspan")?s[Hx("0x8a")](Hx("0x15"))-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}}_setupColumnsRowsFixing(){const t=this.editor,e=t[Hx("0x5a")].get(Hx("0x56")),n=t.plugins.get(Hx("0x54"));t[Hx("0xd")][Hx("0x66")].on(Hx("0x6"),(()=>{const n=Array.from(t.model[Hx("0x66")].differ[Hx("0x4")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:i}=e._splitMarkerName(t);if(Hx("0x5b")!=n)continue;if(null!=o[Hx("0x20")])continue;const s=e[Hx("0x48")](r);this[Hx("0x6a")][Hx("0x30")](i)&&this[Hx("0x7f")][Hx("0x13")](s)}}),{priority:Hx("0x31")});const o=(t,e)=>{let o=!1;const r=e[Hx("0x74")](t),i=t[Hx("0x5c")]("table"),s=n[Hx("0x23")](t);for(const e of this[Hx("0x7f")]){const n=e.subType,x=n[Hx("0x83")](Hx("0x0")),a=n.substr(x?10:5),c=a[Hx("0x2a")](),l=c[Hx("0x26")](0,3)+"span",u=Hx("0x2f")+a,d=Hx("0xc")+a;if(!e[Hx("0x42")])continue;if(i!=e[Hx("0x6b")]().start[Hx("0x5c")](Hx("0x34")))continue;if(e.isIntersectingWithRange(r))continue;const g=t[Hx("0x68")](l)?t.getAttribute(l)-1:0,f=this[Hx("0x75")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x27")](r),o=!0)}return o};t[Hx("0xd")][Hx("0x66")][Hx("0x16")]((e=>{let n=!1;for(const r of t[Hx("0xd")][Hx("0x66")][Hx("0x1d")].getChanges())if(Hx("0x6f")==r.type)if("tableRow"==r.name)for(const t of r[Hx("0x85")].nodeAfter[Hx("0x63")]())n=n||o(t,e);else"tableCell"==r.name&&(n=n||o(r.position[Hx("0x5e")],e));return n}))}[Hx("0x75")](t){return this[Hx("0x82")](t.getRanges()[Hx("0x58")]((t=>t.start[Hx("0x5e")])))}}function Wx(t){return Array[Hx("0x5d")](new Set(t)[Hx("0x24")]())}const Kx=["detach","from","table","model","TableUtils","setSelection","value","set:isEnabled","createTableWalker","find","_areSelectedCellsMergable","commandName","locale","return","createRangeOn","element","subType","horizontally","getRanges","_areMergableCells","filter","tableCell","refresh","add","mergeTableCellDown","map","getSelectionAffectedTableCells","commands","size","document","getFirstPosition","cell","has","markBlockFormat","registerDescriptionCallback","_acceptFormatSuggestionCallbackFactory","getSuggestions","stop","mergeTableCellUp","author","containsRange","_suggestionFactory","enableCommand","direction","formatBlock","type","formatInline","low","length","insertion","mergeTableCellLeft","accept","selection","editor","plugins","splitTableCellVertically","deletion","_descriptionFactory","get","getAncestors","change","mergeTableCellRight","mergeTableCells","splitTableCellHorizontally","isInContent","*Merge cells*","_isForcedDefaultExecutionBlock","$graveyard","format","execute"];var qx,Xx;qx=Kx,Xx=317,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 requires(){return[zx]}afterInit(){const t=this[$x("0x10")],e=t[$x("0x24")][$x("0x3e")][$x("0xf")],n=t[$x("0x2d")];if(!t[$x("0x11")][$x("0x41")]("TableEditing"))return;const o=t[$x("0x11")][$x("0x15")]("TrackChangesEditing"),r=t[$x("0x11")][$x("0x15")]($x("0x25")),i=t[$x("0x11")][$x("0x15")](zx);i._tablePostFixingSubtypes.push("mergeTableCells"),o[$x("0x5")]($x("0x19"),(()=>{const e=r[$x("0x3b")](t.model[$x("0x3e")][$x("0xf")]);t.model[$x("0x17")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:$x("0x19"),commandParams:[]},[],$x("0x19"))}))})),t.commands.get("mergeTableCells").on($x("0x20"),((e,n)=>{t[$x("0x3c")].get("trackChanges")[$x("0x27")]&&(n[$x("0xb")]>0&&n[n[$x("0xb")]-1]&&n[n.length-1].forceDefaultExecution||o[$x("0x1d")]||this[$x("0x2b")]()||e[$x("0x0")]())}),{priority:"highest"});for(const e of[$x("0x1"),"mergeTableCellRight",$x("0x39"),$x("0xd")]){const n=t[$x("0x3c")][$x("0x15")](e);o[$x("0x5")](e,(()=>{const e=t[$x("0x24")][$x("0x3e")][$x("0xf")][$x("0x3f")]().getAncestors()[$x("0x2a")]((t=>t.is("element",$x("0x36")))),r=n.value;t[$x("0x24")].change((()=>{o.markMultiRangeBlockFormat([e,r],{commandName:$x("0x19"),commandParams:[]},[],$x("0x19"))}))}))}for(const e of[$x("0x12"),$x("0x1a")]){const n=t[$x("0x3c")][$x("0x15")](e);o[$x("0x5")](e,(()=>{const i=r.getSelectionAffectedTableCells(t[$x("0x24")][$x("0x3e")][$x("0xf")])[0],s=i.findAncestor($x("0x23")),{column:x,row:a}=r.getCellLocation(i);let c=[];if($x("0x32")==n[$x("0x6")]){const t=r[$x("0x29")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x22")](t).map((t=>t.cell))}else{const t=r.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array[$x("0x22")](t)[$x("0x3a")]((t=>t[$x("0x40")]))}t[$x("0x24")][$x("0x17")]((t=>{o[$x("0x42")](t[$x("0x2f")](i),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[$x("0x43")]((t=>{if($x("0x7")!=t[$x("0x8")]&&$x("0x9")!=t.type)return;const{data:e}=t;return e&&$x("0x19")==e[$x("0x2c")]?{type:$x("0x1f"),content:Qo(n,$x("0x1c"))}:void 0})),o[$x("0x14")][$x("0x43")]((t=>{if($x("0x7")!=t[$x("0x8")]&&"formatInline"!=t.type)return;const{data:e}=t;return e?$x("0x12")==e[$x("0x2c")]?{type:$x("0x1f"),content:Qo(n,"*Split cell:* vertically")}:$x("0x1a")==e.commandName?{type:$x("0x1f"),content:Qo(n,"*Split cell:* horizontally")}:void 0:void 0}));const x=i[$x("0x44")]();for(const t of["mergeTableCellUp","mergeTableCellRight",$x("0x39"),$x("0xd")])o[$x("0x4")].registerCustomCallback($x("0x7"),t,$x("0xe"),x);for(const t of[$x("0x12"),$x("0x1a")])o[$x("0x4")].registerCustomCallback("formatBlock",t,"accept",x);o._suggestionFactory.registerCustomCallback($x("0x7"),"mergeTableCells","accept",(n=>{t[$x("0x24")][$x("0x17")]((o=>{const r=Array[$x("0x22")](e[$x("0x33")]())[$x("0x3a")]((t=>s.LiveRange.fromRange(t)));o[$x("0x26")](n),t.commands[$x("0x15")]($x("0x19"))[$x("0x37")](),t[$x("0x20")]("mergeTableCells",{forceDefaultExecution:!0});const i=r[$x("0x35")]((t=>$x("0x1e")!=t.root.rootName));i.length>0&&o[$x("0x26")](i);for(const t of r)t[$x("0x21")]()}))}));for(const e of[$x("0x1"),$x("0x39"),$x("0xd"),$x("0x18")]){const n=t.commands[$x("0x15")](e);n.on($x("0x28"),((e,o,r)=>{if(r){const o=t[$x("0x24")].document.selection.getFirstPosition()[$x("0x16")]()[$x("0x2a")]((t=>t.is($x("0x30"),$x("0x36"))));this._areMergableCells(n[$x("0x27")],o)||(e[$x("0x2e")]=!1,e[$x("0x0")]())}}),{priority:$x("0xa")})}}_areSelectedCellsMergable(){const t=this[$x("0x10")][$x("0x3c")][$x("0x15")]($x("0x19")),e=this.editor.plugins[$x("0x15")]("TableUtils");if(!t.isEnabled)return!1;const n=e[$x("0x3b")](this[$x("0x10")][$x("0x24")][$x("0x3e")][$x("0xf")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x34")](t,e))return!1;return!0}[$x("0x34")](t,e){const n=this[$x("0x10")][$x("0x11")][$x("0x15")]("TrackChangesEditing"),o=this[$x("0x10")][$x("0x24")][$x("0x2f")](t),r=this.editor[$x("0x24")][$x("0x2f")](e),i=new Set,s=new Set;for(const t of n[$x("0x45")]())if(($x("0xc")==t[$x("0x8")]||$x("0x13")==t.type||$x("0x19")==t[$x("0x31")])&&t[$x("0x1b")])for(const e of t[$x("0x33")]())e[$x("0x3")](o,!0)&&i[$x("0x38")](t.type+":"+t[$x("0x2")].id),e[$x("0x3")](r,!0)&&s.add(t[$x("0x8")]+":"+t[$x("0x2")].id);if(i.size!=s[$x("0x3d")])return!1;for(const t of i)if(!s[$x("0x41")](t))return!1;return!0}}const Yx=["format","name","end","FORMAT_REGULAR_ROW","commandName","_handleLegacySuggestions","toViewElement","showSuggestionHighlights","formatBlock","markerRange","registerDescriptionCallback","writer","ck-suggestion-marker-","consumable","nodeBefore","addClass","downcastDispatcher","type","requires","TableEditing","TrackChangesEditing","accept","setAttribute","registerCustomCallback","nodeAfter","setTableRowHeader","mapper","data-suggestion","commandParams","markerName","removeMarker:suggestion","_descriptionFactory","editor","cell","FORMAT_HEADER_COLUMN","getSuggestion","bindElementToMarker","activeMarkers","parent","TableUtils","registerAttributeLabel","setTableColumnHeader","headingColumns","get","markerNameToElements","unbindElementFromMarkerName","consume","FORMAT_REGULAR_COLUMN","data","includes","_acceptFormatSuggestionCallbackFactory","_splitMarkerName","_enableDefaultAttributesIntegration","FORMAT_HEADER_ROW","removeClass","headingRows","removeAttribute","afterInit","highest","ck-suggestion-marker--active","has","plugins","forceValue","locale","addMarker:suggestion","getCellLocation"];var Jx,Qx;Jx=Yx,Qx=347,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("0x1")](){return[zx]}[ta("0x28")](){const t=this[ta("0xf")];if(!t[ta("0x2c")][ta("0x2b")](ta("0x2")))return;const e=t[ta("0x2e")],n=t[ta("0x2c")][ta("0x1a")]("TrackChangesEditing");n[ta("0x23")](ta("0x8"),[],[ta("0x26")]),n._enableDefaultAttributesIntegration("setTableColumnHeader",[],[ta("0x19")]),n._descriptionFactory.registerAttributeLabel(ta("0x26"),Qo(e,ta("0x24"))),n[ta("0xe")][ta("0x17")](ta("0x19"),Qo(e,ta("0x11"))),this[ta("0x36")]()}[ta("0x36")](){const t=this[ta("0xf")][ta("0x2c")].get("TrackChangesEditing"),e=this[ta("0xf")][ta("0x2c")].get(ta("0x16")),n=this.editor[ta("0x2c")][ta("0x1a")](zx)[ta("0x21")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(r,i,s)=>{const{type:x,id:a}=t[ta("0x22")](i.markerName),c=t[ta("0x12")](a),l=c[ta("0x1f")];if(ta("0x39")!=c[ta("0x0")]||!l||ta("0x18")!=l.commandName)return;if(i.item)return void r.stop();if(!s[ta("0x3e")][ta("0x1d")](i[ta("0x3a")],r[ta("0x32")]))return;const u=i.markerRange.start[ta("0x7")],d=i.markerRange[ta("0x33")][ta("0x3f")],g=u[ta("0x15")][ta("0x15")],{column:f}=e[ta("0x30")](u),{column:m}=e[ta("0x30")](d);for(let r=f;r<=m;r++){const c=e.createTableWalker(g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[ta("0x10")],c=s.mapper[ta("0x37")](r);s.writer[ta("0x40")](ta("0x3d")+x,c),o&&s[ta("0x3c")][ta("0x5")](ta("0xa"),a,c),s[ta("0x9")][ta("0x13")](c,i[ta("0xc")]),n&&(t[ta("0x14")][ta("0x20")](i[ta("0xc")])?s[ta("0x3c")][ta("0x40")](ta("0x2a"),c):s[ta("0x3c")][ta("0x25")]("ck-suggestion-marker--active",c))}}}}t._suggestionFactory[ta("0x6")](ta("0x39"),ta("0x8"),ta("0x4"),n),t._suggestionFactory[ta("0x6")]("formatBlock",ta("0x18"),ta("0x4"),n),this[ta("0xf")].editing[ta("0x41")].on("addMarker:suggestion",o(),{priority:ta("0x29")}),this.editor[ta("0x1f")][ta("0x41")].on(ta("0x2f"),((t,e,n)=>{n.options[ta("0x38")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this[ta("0xf")].editing[ta("0x41")].on(ta("0xd"),((e,n,o)=>{const{type:r,id:i}=t[ta("0x22")](n[ta("0xc")]),s=t[ta("0x12")](i),x=s[ta("0x1f")];if(ta("0x39")!=s[ta("0x0")]||!x||ta("0x18")!=x[ta("0x35")])return;const a=o[ta("0x9")][ta("0x1b")](n[ta("0xc")]);if(a)for(const t of a)o.writer[ta("0x25")]("ck-suggestion-marker-"+r,t),o[ta("0x3c")][ta("0x25")](ta("0x2a"),t),o[ta("0x3c")][ta("0x27")]("data-suggestion",t),o[ta("0x9")][ta("0x1c")](t,n[ta("0xc")])}),{priority:ta("0x29")}),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ta("0xf")],e=t[ta("0x2e")];function n(t){return{type:ta("0x31"),content:Qo(e,"*Format:* %0",t)}}t.plugins[ta("0x1a")](ta("0x3"))[ta("0xe")][ta("0x3b")]((t=>{if(ta("0x39")!=t[ta("0x0")])return;const{data:o}=t;if(o){if(ta("0x8")==o[ta("0x35")]){const t=o[ta("0xb")][0][ta("0x2d")];return n(Qo(e,ta(t?"0x24":"0x34")))}if("setTableColumnHeader"==o[ta("0x35")]){const t=o[ta("0xb")][0][ta("0x2d")];return n(Qo(e,ta(t?"0x11":"0x1e")))}}}))}}const na=["author","wrap","TableClipboard","registerCustomCallback","documentSelection","getAttributes","subType","tablePaste","accept","paragraph","from","insertContent","commands","clipboardOutput","end","differ","*Replace table cells*","getChanges","unwrap","markMultiRangeBlockFormat","removeMarker","getChangedMarkers","nodeAfter","discard","name","document","getRange","_replaceTableSlotCell","getSuggestionCallback","set","join","batch","low","createRangeOn","editingDowncast","tablePasteChainId","last","insertRows","add","tableCell","register","insertion","afterInit","createTableWalker","createElement","registerPostFixer","tableCellBorderColor","oldRange","getSelectionAffectedTableCells","has","rootName","fromEntries","getShiftedBy","nextSibling","insertionRanges","columnInsertionRanges","markMultiRangeDeletion","rowInsertionRanges","tablePasteCell","listenTo","conversion","registerDescriptionCallback","_splitMarkerName","tablePasteColumn","suggestionUnloaded","containsRange","get","root","hasSuggestion","deletionRanges","filter","TrackChangesEditing","suggestion","markers","rows","change","markerToHighlight","type","tableCellHorizontalAlignment","cells","getColumnIndexes","find","columnInsertionIndexes","length","options","previous","getRows","push","createRangeIn","requires","content","findAncestor","first","deletion","getItems","map","includes","isEqual","$graveyard","getMarkers","keys","reduce","value","tableCellPadding","getTableIfOnlyTableInContent","createRange","endRow","insert","editor","suggestion:formatBlock:tablePasteCell","entries","startsWith","stop","isEmpty","plugins","tablePasteRow","getSuggestion","elementToElement","getRanges","position","formatBlock","isInContent","getSuggestions","column","remove","locale","for","attributes","activeMarkers","markerName","trackChanges","setAttribute","table","removeColumns","_isForcedDefaultExecutionBlock","markMultiRangeInsertion","newRange","tableCellBorderWidth","selection","view","_suggestionFactory","high","editing","model","Users","tableCellSuggestion","suggestion-td","markerAttributes","updateMarker","getContainedElement","rowInsertionIndexes","element","start","setAttributes","_getCoordsForCells"];var oa,ra;oa=na,ra=403,function(t){for(;--t;)oa.push(oa.shift())}(++ra);const ia=function(t,e){return na[t-=0]},sa=[ia("0x2c"),ia("0x6c"),"tableCellBorderStyle",ia("0x8c"),"tableCellVerticalAlignment","tableCellBackgroundColor",ia("0xa")],xa=Object[ia("0x71")](sa[ia("0x2")]((t=>[t,null])));class aa extends t.Plugin{static get[ia("0x97")](){return[zx]}[ia("0x68")](){const t=this[ia("0xf")];if(!t[ia("0x15")].has(ia("0x40")))return;const n=t[ia("0x15")].get(ia("0x85")),o=t.plugins.get("TableUtils"),r=t[ia("0x15")].get(zx),i=t[ia("0x15")][ia("0x80")]("TableClipboard");r._tablePostFixingSubtypes.push("tablePasteRow","tablePasteColumn"),t[ia("0x32")].schema[ia("0x66")](ia("0x34"),{allowIn:ia("0x65"),allowContentOf:ia("0x65"),isLimit:!0}),t[ia("0x7a")][ia("0x18")]({model:ia("0x34"),view:ia("0x35")});let s=null;t[ia("0x32")].on("insertContent",((r,x)=>{const[a,c]=x,l=x[x[ia("0x91")]-1];l&&l.forceDefaultExecution||n[ia("0x29")]||this[ia("0xf")][ia("0x4a")][ia("0x80")](ia("0x25"))[ia("0x9")]&&function(t,e,n,o,r){if(e&&!e.is(ia("0x42")))return!1;const i=r[ia("0xb")](t,n);if(!i||!la(i,void 0,o))return!1;const s=o[ia("0x6e")](n[ia("0x57")][ia("0x2d")]);if(!s[ia("0x91")])return!1;const x=s[0][ia("0x99")](ia("0x27")),a=o.getRowIndexes(s),c=o[ia("0x8e")](s),l={startRow:a[ia("0x9a")],endRow:a[ia("0x62")],startColumn:c.first,endColumn:c.last};return 1==s[ia("0x91")]&&(l[ia("0xd")]+=o[ia("0x94")](i)-1,l.endColumn+=o.getColumns(i)-1),la(x,l,o)}(a,c,t[ia("0x32")],o,i)&&(r[ia("0x13")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ia("0x32")][ia("0x89")]((()=>{t.model[ia("0x49")](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("0x91")]&&n.markMultiRangeInsertion(r,ia("0x16"),{tablePasteChainId:o}),i[ia("0x91")]&&n[ia("0x2a")](i,ia("0x7d"),{tablePasteChainId:o}),a.length&&n[ia("0x2a")](a,ia("0x45"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[ia("0x76")](c,ia("0x45"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ia("0x51")](l[ia("0x2")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u[ia("0x6")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const i=t[ia("0x32")][ia("0x5f")](o),s=e[ia("0x8f")]((t=>t[ia("0x58")]()[ia("0x4")](i)));s&&n[ia("0x95")]([s[ia("0x56")],r])}n[ia("0x91")]&&u[ia("0x26")](ia("0x36"),Object[ia("0x71")](n))}s=null})))}),{priority:e.priorities[ia("0x30")]+10}),t[ia("0x15")][ia("0x80")]("TableClipboard").on(ia("0x59"),((t,e)=>{const[n,o,,r]=e;if(!s)return;t[ia("0x13")]();const i=n.cell,x=o,a=ca(i),c=ca(x);t.return=i;let l=null,u=null;if(c||a)if(a&&!c){r.remove(i.getChild(0));for(const t of Array.from(x.getChildren()))r[ia("0xe")](t,i,ia("0x4c"));const t=s[ia("0x39")][ia("0x3")](n.row),e=s[ia("0x90")].includes(n[ia("0x1e")]);t||e||(l=r[ia("0x96")](i))}else c&&!a&&(u=r.createRangeIn(i));else{const t=r[ia("0x6a")](ia("0x34")),e=r[ia("0x6a")](ia("0x34"));r[ia("0x3f")](r[ia("0x96")](i),e),r[ia("0xe")](t,i,0);for(const e of Array[ia("0x48")](x.getChildren()))r.insert(e,t,ia("0x4c"));l=r[ia("0x5f")](t),u=r[ia("0x5f")](e)}const d=Array[ia("0x48")](x[ia("0x43")]())[ia("0x84")]((([t])=>sa[ia("0x3")](t)));s[ia("0x8d")][ia("0x95")]({element:i,attributes:d[ia("0x91")]?Object[ia("0x71")](d):null}),l&&s[ia("0x74")][ia("0x95")](l),u&&s[ia("0x83")][ia("0x95")](u)}),{priority:ia("0x30")}),o.on("insertColumns",((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i.columns||1;s.columnInsertionIndexes=new Array(a).fill(x)[ia("0x2")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startColumn:x,endColumn:x+a-1}))s[ia("0x75")][ia("0x95")](t[ia("0x32")][ia("0x5f")](e))}),{priority:ia("0x5e")}),o.on(ia("0x63"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x88")]||1;s[ia("0x39")]=new Array(a).fill(x)[ia("0x2")](((t,e)=>t+e));for(const{cell:e}of o[ia("0x69")](r,{startRow:x,endRow:x+a-1}))s[ia("0x77")][ia("0x95")](t[ia("0x32")].createRangeOn(e))}),{priority:ia("0x5e")}),n._descriptionFactory[ia("0x7b")]((e=>{if(e[ia("0x44")]&&e.subType[ia("0x12")](ia("0x45")))return e.previous?{}:{type:ia("0x67"),content:Qo(t[ia("0x20")],ia("0x4e"))}}));const x=()=>!1;for(const t of["tablePaste",ia("0x7d"),ia("0x16"),"tablePasteCell"])n[ia("0x2f")][ia("0x41")](ia("0x67"),t,ia("0x5c"),x),n[ia("0x2f")].registerCustomCallback("deletion",t,ia("0x5c"),x),n._suggestionFactory[ia("0x41")](ia("0x1b"),t,ia("0x5c"),x);n[ia("0x2f")][ia("0x41")](ia("0x1b"),ia("0x78"),ia("0x55"),x),n[ia("0x2f")][ia("0x41")](ia("0x1b"),"tablePasteCell","accept",((e,n,o)=>{const r=e[ia("0x2")]((t=>t[ia("0x38")]()))[ia("0x84")]((t=>t)),i=new Map(r[ia("0x2")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s.cells)e&&i[ia("0x5b")](t,e);else if(o&&o[ia("0x36")])for(const[e,n]of Object[ia("0x11")](o[ia("0x36")])){const o=t[ia("0x32")][ia("0x87")][ia("0x80")](e),r=o?o[ia("0x58")]()[ia("0x38")]():null;r&&i[ia("0x5b")](r,n)}t.model[ia("0x89")]((t=>{for(const[e,n]of i)t[ia("0x3c")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ia("0x2f")][ia("0x41")](e,ia("0x45"),o,((r,i,s)=>{t[ia("0x32")].change((t=>{const x=[];for(const t of r){const e=t[ia("0x3b")][ia("0x54")];e.is(ia("0x3a"),ia("0x34"))&&x[ia("0x95")](e)}n[ia("0x2f")][ia("0x5a")](e,null,o)(r,i,s);for(const e of x)ia("0x5")!=e[ia("0x81")][ia("0x70")]&&t[ia("0x50")](e)}))}))};a(ia("0x67"),ia("0x46")),a(ia("0x67"),ia("0x55")),a(ia("0x0"),ia("0x46")),a(ia("0x0"),ia("0x55")),n[ia("0x2f")][ia("0x41")]("insertion",ia("0x16"),"discard",(t=>{const e=t[ia("0x2")]((t=>t[ia("0x38")]())),n=e[0].findAncestor("table"),{minRow:i,maxRow:s}=r._getCoordsForCells(e);o.removeRows(n,{at:i,rows:s-i+1})})),n._suggestionFactory[ia("0x41")](ia("0x67"),"tablePasteColumn","discard",(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][ia("0x99")](ia("0x27")),{minColumn:i,maxColumn:s}=r[ia("0x3d")](e);o[ia("0x28")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0x44")]||!e.subType.startsWith(ia("0x45")))return;const o=e[ia("0x22")][ia("0x61")],r=n[ia("0x1d")]().filter((t=>t.isInContent&&t[ia("0x22")]&&t[ia("0x22")][ia("0x61")]==o));r[ia("0x91")]&&e.getAllAdjacentSuggestions()[ia("0x91")]!=r[ia("0x91")]&&r[ia("0x8")](((t,e)=>(t.next=e,e[ia("0x93")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[ia("0x24")]),r=["ck-suggestion-marker","ck-suggestion-marker-insertion"],i=n[ia("0x23")][ia("0x3")](t[ia("0x24")]);return i&&r[ia("0x95")]("ck-suggestion-marker--active"),{classes:r,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:ia("0x30")}),n.on(ia("0x7e"),c,{priority:"high"}),t.model[ia("0x57")][ia("0x6b")]((()=>{let e=!1;const o=Array.from(t.model[ia("0x57")][ia("0x4d")][ia("0x53")]());for(const{name:r,data:i}of o){const{group:o,type:s,id:x}=n._splitMarkerName(r);if(ia("0x86")!=o||"deletion"!=s||i.oldRange)continue;if(!n[ia("0x82")](x))continue;const a=n[ia("0x17")](x)[ia("0x19")](),c=t.plugins[ia("0x80")]("Users").me;for(const t of n.getSuggestions())if(t[ia("0x1c")]&&t[ia("0x3e")]==c&&ia("0x1b")==t[ia("0x8b")]&&ia("0x78")==t[ia("0x44")]&&t.getRanges().every((t=>a.some((e=>e[ia("0x7f")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[ia("0x1c")]&&(n[ia("0x55")](),e=!0)}return e})),t[ia("0x32")][ia("0x57")][ia("0x6b")]((e=>{const o=t[ia("0x4a")][ia("0x80")]("redo");if(!o||!o._createdBatches[ia("0x6f")](e[ia("0x5d")]))return!1;let r=!1;const i=t[ia("0x15")][ia("0x80")](ia("0x33")).me,s=t[ia("0x32")][ia("0x57")][ia("0x4d")][ia("0x4f")](),x=Array[ia("0x48")](t[ia("0x32")].document[ia("0x4d")].getChangedMarkers())[ia("0x84")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:s}=n[ia("0x7c")](t);return"suggestion"==o&&ia("0x45")==r&&s==i.id&&!e[ia("0x6d")]}));for(const t of s){if(ia("0xe")!=t[ia("0x8b")]||ia("0x34")!=t[ia("0x56")]||1!=t[ia("0x91")])continue;const n=e[ia("0xc")](t[ia("0x1a")],t[ia("0x1a")][ia("0x72")](1));if(!x[ia("0x8f")]((({data:t})=>t[ia("0x2b")][ia("0x4")](n))))for(const{name:t,data:o}of x)if(n[ia("0x7f")](o[ia("0x2b")])){e[ia("0x37")](t,{range:n}),r=!0;break}}return r})),t[ia("0x32")][ia("0x57")][ia("0x6b")]((e=>{let o=!1;const r=t[ia("0x15")][ia("0x80")](ia("0x33")).me,i=n[ia("0x1d")]()[ia("0x84")]((t=>t[ia("0x1c")]&&t[ia("0x3e")]==r)),s=new Set,x=new Set;for(const t of i)if(ia("0x45")==t.subType)for(const e of t.getMarkers()){const n=e[ia("0x58")]()[ia("0x38")]();if(n)if(n.is(ia("0x3a"),ia("0x34"))&&ca(n)){t[ia("0x52")](e.name),s.add(n),o=!0;const r=n[ia("0x73")],i=n.previousSibling,a=r&&r.is(ia("0x3a"),ia("0x34")),c=i&&i.is(ia("0x3a"),ia("0x34"));a&&!s[ia("0x6f")](r)&&x.add(r),c&&!s[ia("0x6f")](i)&&x[ia("0x64")](i)}else n.is(ia("0x3a"),ia("0x47"))&&n[ia("0x14")]&&(t[ia("0x52")](e[ia("0x56")]),o=!0)}else if(ia("0x78")==t[ia("0x44")]){if(!t[ia("0x22")]||!t[ia("0x22")][ia("0x61")])continue;const e=t[ia("0x22")][ia("0x36")];if(e&&Object[ia("0x7")](e)[ia("0x91")])continue;const n=t[ia("0x22")][ia("0x61")];let r=!0,s=!0;for(const e of i)if(e[ia("0x44")]&&e[ia("0x44")][ia("0x12")](ia("0x45"))){if(!e[ia("0x22")].tablePasteChainId){s=!1;break}if(e.id!=t.id&&e[ia("0x22")].tablePasteChainId==n){r=!1;break}}s&&r&&(t.removeMarkers(),o=!0)}for(const t of s)e[ia("0x1f")](t);for(const t of x)e[ia("0x50")](t);return o})),t[ia("0x7a")][ia("0x21")](ia("0x60"))[ia("0x8a")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:ia("0x30")}),t.conversion.for("dataDowncast")[ia("0x8a")]({model:ia("0x10"),view:(t,e)=>e[ia("0x92")].showSuggestionHighlights?l(t,!1):null,converterPriority:ia("0x30")});const u=t[ia("0x31")][ia("0x2e")];this[ia("0x79")](u[ia("0x57")],ia("0x4b"),((t,e)=>{const n=[];for(const t of u.createRangeIn(e[ia("0x98")])[ia("0x1")]())t.is("element","suggestion-td")&&n.push(t);u[ia("0x89")]((t=>{for(const e of n)t.move(t[ia("0x96")](e),t.createPositionBefore(e)),t[ia("0x1f")](e)}))}))}}function ca(t){if(t[ia("0x14")])return!0;const e=t.getChild(0);return e.is(ia("0x3a"),ia("0x47"))&&e[ia("0x14")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:i}of n[ia("0x69")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=i)return!1;return!0}const ua=["TrackChangesEditing","model","getAttribute","editor","_suggestionFactory","handleResizeTableWidthCommand","*Format:* resize table","document","get","resizeTable","afterInit","discard","handleSuggestionDescription","enableCommand","registerCustomCallback","_descriptionFactory","type","getSuggestions","accept","formatInline","has","formatGroupId","subType","resizeTableWidth","format","TableColumnResizeEditing","formatBlock","getColumnGroupElement","plugins","selection","data","getContainedElement","columnWidths","getTableColumnsWidths","tableWidth"];var da,ga;da=ua,ga=247,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x8")](){if(!this.editor[fa("0x1a")][fa("0x12")](fa("0x17")))return;const t=this[fa("0x1")][fa("0x1a")][fa("0x6")](fa("0x21"));t[fa("0xb")](fa("0x15"),this[fa("0x3")].bind(this)),t._suggestionFactory[fa("0xc")]("formatBlock","resizeTable",fa("0x10"),t[fa("0x2")].getSuggestionCallback(fa("0x18"),null,fa("0x9"))),t[fa("0x2")][fa("0xc")](fa("0x18"),fa("0x7"),"discard",t[fa("0x2")].getSuggestionCallback(fa("0x18"),null,"accept")),t[fa("0xd")].registerDescriptionCallback(this.handleSuggestionDescription.bind(this))}handleResizeTableWidthCommand(t,e){const n=this.editor[fa("0x1a")][fa("0x6")](fa("0x21")),o=this.editor[fa("0x1a")][fa("0x6")](fa("0x17")),r=e.table||this[fa("0x1")][fa("0x22")][fa("0x5")][fa("0x1b")].getSelectedElement();this[fa("0x1")][fa("0x22")].change((()=>{const i=o[fa("0x19")](r);let s=i?o[fa("0x1f")](i):null,x=r[fa("0x0")](fa("0x20"))||null;const a=e[fa("0x20")]||x,c=e[fa("0x1e")]||s,l=this.editor.plugins[fa("0x6")]("Users").me;for(const t of n[fa("0xf")]()){const e=t[fa("0x1d")]();if(fa("0x7")===t[fa("0x14")]&&e===r){t.author!==l&&t[fa("0x9")]();const e=t[fa("0x1c")].commandParams;x=e[0][fa("0x20")],s=e[0][fa("0x1e")];break}}t({table:r,tableWidth:a,columnWidths:c}),n.markBlockFormat(r,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x7")},[],"resizeTable")}))}[fa("0xa")](t){if("formatBlock"!=t.type&&fa("0x11")!=t[fa("0xe")])return;const{data:e}=t;if(e&&fa("0x7")===e[fa("0x13")]){const t=fa("0x4");return{type:fa("0x16"),content:Qo(this.editor.locale,t)}}}}const ha=["Template","afterInit","has","get","TrackChangesEditing","plugins","insertTemplate","editor"];var pa,ba;pa=ha,ba=224,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("0x7")];t[Ea("0x5")][Ea("0x2")](Ea("0x0"))&&t[Ea("0x5")][Ea("0x3")](Ea("0x4")).enableCommand(Ea("0x6"))}}const Ta=["get","editor","commands","afterInit","insertTableOfContents","TrackChangesEditing","ELEMENT_TABLE_OF_CONTENTS","tableOfContents","plugins"];var ya,Ca;ya=Ta,Ca=163,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x2")](){const t=this[Aa("0x0")];if(!t[Aa("0x1")].get("insertTableOfContents"))return;t.plugins[Aa("0x8")](Aa("0x4")).enableCommand(Aa("0x3"));const e=t[Aa("0x7")][Aa("0x8")](Aa("0x4")),n=t.locale;e._descriptionFactory.registerElementLabel(Aa("0x6"),(t=>Qo(n,Aa("0x5"),t)))}}const Ia=["getChangedMarkers","isTouching","model","registerElementLabel","forward","getNearestSelectionRange","title-content","locale","document","differ","newRange","removeMarker","_descriptionFactory","suggestion","createRange","start","isCollapsed","nodeBefore","get","isEqual","end","editor","ELEMENT_TITLE","Title","schema","_splitMarkerName","has"];var Ra,Sa;Ra=Ia,Sa=207,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{afterInit(){const t=this[va("0x3")];if(!t.plugins[va("0x8")](va("0x5")))return;const e=t.plugins[va("0x0")]("TrackChangesEditing");e[va("0x15")][va("0xc")](va("0xf"),(()=>Qo(t[va("0x10")],va("0x4")))),t.model[va("0x11")].registerPostFixer((n=>{let o=!1;const r=Array.from(t[va("0xb")][va("0x11")][va("0x12")][va("0x9")]());for(const{name:i,data:s}of r){const{group:r}=e[va("0x7")](i);if(va("0x16")!==r||!s.newRange)continue;const x=s[va("0x13")],a=x[va("0x2")][va("0x1a")];if(!a||!a.is("element","title-content"))continue;if(!x[va("0x18")][va("0xa")](x[va("0x2")]))continue;const c=t[va("0xb")][va("0x6")][va("0xe")](x[va("0x2")],va("0xd"));if(c&&c[va("0x19")]){const t=n[va("0x17")](x[va("0x18")],c[va("0x18")]);t[va("0x1")](x)||(n.updateMarker(i,{range:t}),o=!0)}o||(n[va("0x14")](i),o=!0)}return o}))}}const La=["UndoEditing","has","afterInit","get","TrackChangesEditing","enableCommand","plugins"];var Ma,Oa;Ma=La,Oa=141,function(t){for(;--t;)Ma.push(Ma.shift())}(++Oa);const wa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[wa("0x1")](){const t=this.editor,e=t[wa("0x5")][wa("0x2")](wa("0x3"));t[wa("0x5")][wa("0x0")](wa("0x6"))&&(e[wa("0x4")]("undo"),e[wa("0x4")]("redo"))}}const Da=["requires","afterInit","get","editor","TrackChangesEditing","plugins"];var Pa,Ba;Pa=Da,Ba=260,function(t){for(;--t;)Pa.push(Pa.shift())}(++Ba);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("0x1")];t[Ua("0x3")].has("TableCaptionEditing")&&t.plugins[Ua("0x0")](Ua("0x2")).enableCommand("toggleTableCaption")}}const Ga=["getFirstPosition","markBlockFormat","*Format:* change table properties","tableCellWidth","enableCommand","registerDescriptionCallback","nodeAfter","pluginName","_getSuggestion","handleDiscardAction","handleSuggestionDescription","tableBorderWidth","TrackChangesTableProperties","tableCellHorizontalAlignment","format","tableBorderColor","tableCellHeight","tableCellVerticalAlignment","_handlePropertyChange","tableAlignment","TableCellPropertiesEditing","data","findAncestor","accept","commandParams","TableUtils","change","table","tableCellProperties","plugins","getSuggestionCallback","tableProperties","getContainedElement","tableCellBorderWidth","model","setAttribute","discard","tableBorderStyle","tableCellPadding","tableCellBorderStyle","batch","tableHeight","has","TablePropertiesEditing","subType","getSuggestions","_descriptionFactory","registerCustomCallback","get","TrackChangesEditing","document","formatBlock","editor","removeAttribute","selection","locale","tableWidth","_suggestionFactory"];var Va,Ha;Va=Ga,Ha=235,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x1c")]=[za("0xc"),za("0x22"),za("0x8"),za("0x10"),za("0x35"),za("0x26"),"tableBackgroundColor"],this[za("0x19")]=["tableCellBorderColor",za("0x24"),za("0x1e"),za("0x23"),za("0x0"),za("0xd"),"tableCellBackgroundColor",za("0xa"),za("0xe")]}static get[za("0x4")](){return za("0x9")}afterInit(){const t=this[za("0x31")][za("0x1a")][za("0x2d")](za("0x2e"));if(this[za("0x31")][za("0x1a")][za("0x27")](za("0x28"))){for(const e of this[za("0x1c")])t.enableCommand(e,((t,n)=>{const o=this[za("0x31")].model[za("0x2f")][za("0x33")][za("0x37")]()[za("0x13")](za("0x18"));this[za("0xf")](e,[o],this[za("0x1c")],za("0x1c"),t,n)}));t._suggestionFactory.registerCustomCallback(za("0x30"),"tableProperties",za("0x14"),t[za("0x36")].getSuggestionCallback("formatBlock",null,za("0x21"))),t[za("0x36")].registerCustomCallback("formatBlock",za("0x1c"),za("0x21"),((t,e)=>this.handleDiscardAction(this[za("0x1c")],t,e))),t[za("0x36")].registerCustomCallback(za("0x30"),"tableProperties","join",(()=>!1))}if(this[za("0x31")][za("0x1a")][za("0x27")](za("0x11"))){for(const e of this.tableCellProperties)t[za("0x1")](e,((t,n)=>{const o=this.editor[za("0x1a")][za("0x2d")](za("0x16")).getSelectionAffectedTableCells(this[za("0x31")][za("0x1f")][za("0x2f")].selection);this[za("0xf")](e,o,this.tableCellProperties,za("0x19"),t,n)}));t[za("0x36")][za("0x2c")](za("0x30"),za("0x19"),za("0x14"),t[za("0x36")][za("0x1b")](za("0x30"),null,za("0x21"))),t[za("0x36")][za("0x2c")](za("0x30"),za("0x19"),za("0x21"),((t,e)=>this[za("0x6")](this.tableCellProperties,t,e))),t._suggestionFactory.registerCustomCallback(za("0x30"),za("0x19"),"join",(()=>!1))}t[za("0x2b")][za("0x2")]((t=>this[za("0x7")](t)))}[za("0xf")](t,e,n,o,r,i){const s=this[za("0x31")][za("0x1a")].get("TrackChangesEditing");this[za("0x31")][za("0x1f")].enqueueChange(i[za("0x25")],(()=>{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[za("0x38")](t,{commandParams:[e]},[],o)}}))}[za("0x6")](t,e,n){const o=e[0].start[za("0x3")],r=n[za("0x15")][0];this[za("0x31")].model[za("0x17")]((e=>{for(const n of t)void 0!==r[n]?e[za("0x20")](n,r[n],o):e[za("0x32")](n,o)}))}handleSuggestionDescription(t){if(t[za("0x12")])switch(t.subType){case"tableProperties":return{type:"format",content:Qo(this[za("0x31")][za("0x34")],za("0x39"))};case"tableCellProperties":return{type:za("0xb"),content:Qo(this[za("0x31")][za("0x34")],"*Format:* change table cell properties")}}}[za("0x5")](t,e){const n=this.editor[za("0x1a")][za("0x2d")](za("0x2e"));for(const o of n[za("0x2a")]({skipNotAttached:!0})){const n=o[za("0x1d")]();if(o[za("0x29")]===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=["removeMarker:suggestion:formatBlock","next","isTouching","options","open","return","isIntersecting","enableReadOnlyMode","addMarker:suggestion","setAttribute","rename","data-suggestion","head","getAncestors","fire","removeMarker:suggestion:attribute","isInsideObject","previous","nodeAfter","getCommentThread","stop","widget","push","track-changes-command-not-found","skipNestingCheck","announce","newRange","suggestion-type","markerToHighlight","plugins","dataDowncast","isDocumentOperation","createPositionAfter","dataReady","markers","insertion:accept","creator","_getMarkerAnnouncementText","ck-suggestion-marker-","isRemovable","deleteContent","model","isBlock","_addThreadToSuggestion","change:activeMarkers","_model","addSuggestion","track-changes-suggestion-data-mismatch","getIntersection","toJSON","multipleBlocks","removeComment","delete","markerToData","deletion:chain","getMultiRangeId","track-changes-suggestion-not-found","_isBlockAttribute","_inlineAttributeKeys","stopListening","parent","trackChanges","comments","_blockAttributeKeys","_reduceSuggestionAttributeRange","_processAttributeChanges","filter","getFirstRange","_reduceExistingSuggestions","toViewElement","containsPosition","showSuggestionHighlights","_findSuggestions","pluginName","meta","concat","multi","discardAllSuggestions","find","nodeBefore","applyOperation","addMarker:suggestion:formatBlock","deletion:","root","setSelection","dataToMarker","tablePasteChainId","_isDataLoaded","createRangeIn","accepted","suggestionUnloaded","originalSuggestionId","formatBlock:chain","attribute:accept","addMarkerName","_registerInlineAttribute","_registerDefaultCallbacks","formatInline","getNearestSelectionRange","notReady","createPositionAt","_trackFormatChanges","markerName","every","fromCharCode","always","ck-suggestion-marker","isBefore","markBlockFormat","end","deletion","assign","acceptSuggestion","attribute:join","_defaultCallbacks","addMarker:suggestion:attribute","insertion:","isSelectable","subType","getUser","isObject","getSuggestion","_joinWithAdjacentSuggestions","position","catch","_recordAttributeChanges","ck-suggestion-marker-formatBlock","update:suggestion","getAllAdjacentSuggestions","markAttributeChange","chain","define","moveTargetPosition","isAfter","getShiftedBy","getChangedMarkers","getSuggestionCallback","fromRange","_refreshSuggestionsChain","get","groupId","join","then","formatBlock:","formatBlock","discard","_updateSuggestionData","writer","formatInline:discard","hasComments","external:","clear","size","acceptSelectedSuggestions","deletion:accept","addMarker","removeClass","change:_saved","commands","_SUGGESTION_ANNOUNCEMENT","mapper","format","TrackChangesEditing","has","conversion","oldRange","_getExternalAuthor","enqueueChange","isOwn","_checkSuggestionCorrectness","ck-suggestion-marker-formatInline","getDifference","attributeKey","suggestion:attribute:","author","removeAttribute","error-saving-suggestion-data-suggestion-discarded","PendingActions","change","isExternal","config","$elementName","authoredAt","discardSuggestion","splice","isNextTo","addRange","sort","_initAriaMarkerChangeAnnouncements","collaboration.channelId","_commentsRepository","forward","oldName","commandName","detach","never","setTo","_createSuggestion","createRange","discardSelectedSuggestions","removeMarkers","start","$graveyard","editing","formatInline:join","createdAt","_getSuggestionData","LEAVE","suggestion:","_breakSuggestionMarker","version","attributeOldValue","schema","containsRange","acceptAllSuggestions","unbindElementFromMarkerName","markInsertion","ready","isAtStart","track-changes-user-not-found","markerReady","containsRangeInObject","change:data","splitPosition","batch","formatBlock:accept","after","formatBlock:join","_mergeNestedSuggestions","insertion:chain","isLocal","accept","forEach","_suggestionState","rethrowUnexpectedError","isEqual","$text","hasSuggestion","FORMATTING","_adapter","some","enableCommand","_enableDefaultAttributesIntegration","containerElement","insertion","registerCustomCallback","addHighlight","_getAuthorFromId","_rangeIsInLocalUserInsertion","attribute:discard","requires","includes","suggestionChanged","buildSuggestion","isCollapsed","getContainedElement","activeMarkers","attributeNewValue","trackChanges.mergeNestedSuggestions","_processAttributeSuggestions","insertContent","element","howMany","for","getWalker","insert","attribute:","newName","length","suggestionLoaded","differ","suggestion","deletion:join","createRangeOn","_removeSuggestion","addClass","removeMarker","_suggestionFactory","value","rejected","split","_descriptionFactory","add","formatInline:","_saved","track-changes-enable-command-twice","getAttribute","forceDefaultExecution","_customCallbacks","formatGroupId","selection","addAttribute","track-changes-adapter-already-set","addCommentThread","_registerBlockAttribute","_setSuggestionRange","newValue","adapter","isInContent","commentThread","getFirstMarker","item","highest","deletion:discard","@external","data","high","addUser","name","consume","insertion:join","execute","_suggestions","isAtEnd","_setSuggestionData","ariaLiveAnnouncer","markDeletion","Users","rootName","removed","isMultiRange","_enabledCommands","_handleNewSuggestionMarker","$marker","from","toUpperCase","updateMarker","document","startsWith","trackChangesCommand","elementToElement","values","_splitMarkerName","set","upcast","default","low","PENDING_ACTION_SUGGESTION","isLimit","remove","oldValue","isIntersectingWithRange","attribute","_recordAttributeSuggestionsFromVersion","attributes","editor","ck-suggestion-marker--active","getSuggestions","getRanges","_isForcedDefaultExecutionBlock","_joinSuggestions","keys","addSuggestionData","getLastMatchingPosition","$textProxy","editingDowncast","map","trackChanges.trackFormatChanges","targetPosition","isArray","locale","changeAttribute","type","clone","CommentsRepository","registerPostFixer","_refreshAttributeSuggestionsChain","group","_addSuggestionMarker","elementStart","_editor","key","listenTo","lowest","history","range","getCustomProperty","consumable","unshift","_cutOutSuggestionMarker"];var dc,gc;dc=uc,gc=252,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x135");class hc extends t.Plugin{static get[fc("0x17a")](){return[fc("0x70"),i.Users,t.PendingActions,cr,fr,_r,kr,Lr,Dr,Vr,ti,ii,li,hi,Ti,Ri,Mi,Bi,Hi,Xi,Qi,rs,fs,cs,Es,As,vs,ws,Us,Ks,Ys,nx,xx,dx,bx,Cx,Sx,wx,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0xc9")](){return fc("0x122")}constructor(t){function e(t){return t[fc("0x68")]((t=>String[fc("0xe8")](t))).join("")}super(t),this[fc("0x5b")]=null,this[fc("0x51")](fc("0x4"),[]),this.on(fc("0xac"),((e,n,o,r)=>{this[fc("0xad")][fc("0x132")]((()=>{for(const e of[...r,...o])this[fc("0xad")][fc("0xa2")][fc("0x123")](e)&&t[fc("0x14b")].reconvertMarker(e)}))})),this[fc("0x1d")]=new rr(this[fc("0x5d")][fc("0xa9")][fc("0x154")],this[fc("0x5d")][fc("0x6c")]),this._adapter=null,this._suggestionFactory=new pc(this[fc("0x5d")]),this[fc("0x3c")]=new Map,this[fc("0x13e")]=t[fc("0x9d")][fc("0x10b")](fc("0x70")),this._enabledCommands=new Set,this[fc("0xad")]=this.editor[fc("0xa9")],this[fc("0x169")]=new WeakMap,this[fc("0x61")]=!1,this._blockAttributeKeys=new Set([fc("0x135")]),this[fc("0xba")]=new Set,t[fc("0x134")][fc("0x103")](fc("0x69"),fc("0x53")),this._trackFormatChanges=t.config[fc("0x10b")]("trackChanges.trackFormatChanges"),t[fc("0x134")].define(fc("0x6"),!0),this[fc("0x164")]=t[fc("0x134")][fc("0x10b")](fc("0x6")),this[fc("0x4d")]=new d(t,this[fc("0x45")]),this[fc("0x13c")](),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,49,56])}init(){const t=this[fc("0x5d")],n=(t,e)=>{if("attribute"!=t)return fc("0xa6")+t;const n=e[fc("0x1c")]("|")[0];return this[fc("0xb9")](n)?fc("0xfe"):fc("0x12a")};t[fc("0x124")][fc("0xb")](fc("0x67"))[fc("0x9c")]({model:"suggestion",view:t=>{const{id:e,type:o,subType:r}=this[fc("0x50")](t.markerName),i=["ck-suggestion-marker",n(o,r)];let s=3e3;return this[fc("0x4")].includes(t[fc("0xe6")])&&(i[fc("0x96")]("ck-suggestion-marker--active"),s=3010),fc("0xee")==o&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x124")].for(fc("0x9e")).add((e=>{e.on(fc("0x88"),((e,n,o)=>{if(!o[fc("0x83")][fc("0xc7")])return;const r=n.item;if(!r)return;const i=o[fc("0x120")].toViewElement(r);t[fc("0xa9")][fc("0x154")][fc("0xf8")](r)&&i&&!i[fc("0x7c")](fc("0x95"))&&i.is(fc("0x173"))&&(0,x.toWidget)(i,o[fc("0x113")])}),{priority:fc("0x36")})})),t.conversion[fc("0xb")](fc("0x9e"))[fc("0x9c")]({model:fc("0x13"),view:(t,e)=>{if(!e.options[fc("0xc7")])return null;const{type:o,subType:r}=this[fc("0x50")](t[fc("0xe6")]);return{classes:[fc("0xea"),n(o,r)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,r,i)=>{if(!r[fc("0x31")])return;const{id:s}=this[fc("0x50")](r.markerName);if(n){const t=Sc(this[fc("0x3c")][fc("0x10b")](s));if(!this._isBlockAttribute(t))return}if(r.item.is(fc("0x26")))return void i.consumable.consume(r[fc("0x31")],o[fc("0x38")]);const x=i.mapper[fc("0xc5")](r[fc("0x31")]);if(r.item.is("element")&&t[fc("0xa9")][fc("0x154")][fc("0xaa")](r[fc("0x31")])&&!x[fc("0x7c")](fc("0x176"))){i.writer[fc("0x17")]([fc("0xea"),fc("0xfe")],x),i[fc("0x113")][fc("0x89")](fc("0x8b"),s,x),i[fc("0x120")].bindElementToMarker(x,r[fc("0xe6")]),e&&(this.activeMarkers[fc("0x17b")](r.markerName)?i[fc("0x113")][fc("0x17")](fc("0x5e"),x):i[fc("0x113")].removeClass(fc("0x5e"),x));for(const e of t[fc("0xa9")][fc("0xd8")](r[fc("0x31")]).getItems())i[fc("0x7d")][fc("0x39")](e,o[fc("0x38")]);i[fc("0x7d")][fc("0x39")](r.item,o[fc("0x38")])}};t.conversion[fc("0xb")]("dataDowncast").add((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,n)=>{n[fc("0x83")].showSuggestionHighlights&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x32")})})),t[fc("0x124")][fc("0xb")](fc("0x9e"))[fc("0x1e")]((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n.options[fc("0xc7")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x32")})})),t[fc("0x124")][fc("0xb")]("dataDowncast")[fc("0xb5")]({model:fc("0x13"),view:(t,e)=>e.options[fc("0xc7")]?null:{group:fc("0x13"),name:t.substr(11)}}),t[fc("0x124")].for(fc("0x52"))[fc("0x4e")]({view:{name:fc("0x13"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x150")+t[fc("0x22")](fc("0x9b"))+":"+t[fc("0x22")]("id");return t[fc("0x22")]("marker-count")&&(n+=":"+t[fc("0x22")]("marker-count")),e.createElement(fc("0x47"),{"data-name":n})}}),t[fc("0x124")][fc("0xb")](fc("0x52"))[fc("0xd5")]({view:fc("0x13")}),t[fc("0x124")][fc("0xb")](fc("0x67")).add((t=>{t.on(fc("0xd1"),o(),{priority:fc("0x36")})})),t[fc("0x124")].for(fc("0x67")).add((t=>{t.on(fc("0xf3"),o({isAttributeSuggestion:!0}),{priority:fc("0x36")})})),t.conversion[fc("0xb")](fc("0x67"))[fc("0x1e")]((t=>{t.on(fc("0x80"),((t,e,n)=>{const o=n[fc("0x120")].markerNameToElements(e[fc("0xe6")]);if(o)for(const t of o)t[fc("0x7c")](fc("0x176"))||(n[fc("0x113")][fc("0x11c")]([fc("0xea"),fc("0xfe"),"ck-suggestion-marker--active"],t),n[fc("0x113")][fc("0x12f")](fc("0x8b"),t),n.mapper.unbindElementFromMarkerName(t,e[fc("0xe6")]))}),{priority:fc("0x36")})})),t.conversion[fc("0xb")]("editingDowncast")[fc("0x1e")]((t=>{t.on(fc("0x8f"),((t,e,n)=>{const o=n[fc("0x120")].markerNameToElements(e[fc("0xe6")]);if(!o)return;const{id:r}=this._splitMarkerName(e[fc("0xe6")]),i=Sc(this._suggestions[fc("0x10b")](r));if(this[fc("0xb9")](i))for(const t of o)t[fc("0x7c")](fc("0x176"))||(n[fc("0x113")].removeClass([fc("0xea"),fc("0xfe"),fc("0x5e")],t),n[fc("0x113")][fc("0x12f")](fc("0x8b"),t),n[fc("0x120")][fc("0x157")](t,e.markerName))}),{priority:fc("0x36")})})),t[fc("0xa9")][fc("0x4b")][fc("0x71")]((e=>{let n=!1;const o=Array[fc("0x48")](t[fc("0xa9")][fc("0x4b")][fc("0x12")][fc("0x107")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0x50")](x);if(fc("0x13")!==o)continue;const d=this[fc("0x3c")][fc("0x10b")](u);if(null!=a[fc("0x9a")]){fc("0xe1")==c&&(n=n||_c(a[fc("0x9a")],x,e,t[fc("0xa9")][fc("0x154")]));const o=fc("0x5a")==c&&this._isBlockAttribute(l[fc("0x1c")]("|")[0]);if(a[fc("0x9a")][fc("0x2")]||fc("0x14a")==a[fc("0x9a")][fc("0xd3")][fc("0x42")]||"formatBlock"==c&&!yc(a[fc("0x9a")])||o&&!yc(a[fc("0x9a")])||fc("0xee")==c&&(Ec(s=a[fc("0x9a")])||(i=s).start[fc("0xbc")]==i[fc("0xed")][fc("0xcf")]&&i[fc("0x149")][fc("0x3d")]))e[fc("0x18")](x),n=!0;else{if(!d||!d.isInContent)continue;r[fc("0x1e")](d)}}}var i,s;return r[fc("0x118")]>0&&(n=!!this[fc("0xfa")](r)||n),n})),t[fc("0xa9")].document[fc("0x71")]((e=>{let n=!1;for(const o of t[fc("0xa9")][fc("0x4b")][fc("0x12")].getChanges())if(fc("0xd")==o[fc("0x6e")])for(const o of this._suggestions.values()){if(o[fc("0x44")]||!o.isInContent)continue;const r=fc("0x110")==o.type,i=Sc(o),s=i&&this[fc("0xb9")](i);if(!r&&!s)continue;const x=o[fc("0xc3")]();if(x[fc("0x149")][fc("0xbc")]!=x[fc("0xed")][fc("0xbc")]&&!x[fc("0xed")][fc("0x3d")]){const r=t.model[fc("0xe4")](x[fc("0x149")][fc("0x92")],"end"),i=t[fc("0xa9")][fc("0x146")](x[fc("0x149")],r);e[fc("0x4a")](o[fc("0x30")](),{range:i}),n=!0}}return n})),t[fc("0xa9")].document[fc("0x71")]((t=>this._processAttributeChanges(t))),t[fc("0xa9")][fc("0x4b")].registerPostFixer((t=>!t.batch.isLocal&&this[fc("0x7")](t))),t.model.markers.on(fc("0xff"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e.name),n=this._suggestions[fc("0x10b")](t);n&&n[fc("0xde")](e[fc("0x38")])}})),t[fc("0xa9")][fc("0x4b")].on(fc("0x15e"),(()=>{const e=Array[fc("0x48")](t[fc("0xa9")].document[fc("0x12")][fc("0x107")]()).filter((t=>"suggestion"===this[fc("0x50")](t[fc("0x38")])[fc("0x73")]));if(0===e[fc("0x10")])return;e[fc("0x13b")](((t,e)=>{const n=t[fc("0x35")][fc("0x125")],o=e.data[fc("0x125")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0x149")][fc("0xeb")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[fc("0x50")](t);if(null===r[fc("0x125")]){const e=this[fc("0x46")](t);o[fc("0x1e")](e)}else{const t=this[fc("0x3c")][fc("0x10b")](e);null!==r.newRange||t[fc("0x2e")]?(n[fc("0x1e")](t[fc("0x8c")]),o[fc("0x1e")](t)):this[fc("0x16")](t)}}o[fc("0x118")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[fc("0x8e")]("suggestionChanged",t)})),t[fc("0xa9")].on(fc("0xd0"),((e,n)=>{const o=n[0];if(!this[fc("0x3c")][fc("0x118")])return;if(!o[fc("0x9f")])return;if(o[fc("0x160")].isUndo||!o.batch[fc("0x166")])return;let r,i;switch(o.type){case fc("0xd"):r=t[fc("0xa9")][fc("0xe4")](o[fc("0xfb")]),i=r[fc("0x106")](o[fc("0xa")]);break;case"split":r=t[fc("0xa9")][fc("0xe4")](o[fc("0x15f")]),i=t[fc("0xa9")][fc("0xe4")](o[fc("0x104")]);break;case"move":r=t[fc("0xa9")][fc("0xe4")](o[fc("0x6a")]),i=r[fc("0x106")](o[fc("0xa")]);break;default:return}const s=t.model[fc("0x146")](r,i);t.model[fc("0x132")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0xc8")](s)){if(t.isMultiRange)continue;if(fc("0xe1")==t.type)continue;const n=Sc(t);if(n&&this[fc("0xb9")](n)&&fc("0x1c")!=o.type)continue;const x=t[fc("0x35")]&&t[fc("0x35")][fc("0xb2")];(fc("0x110")!=t.type||fc("0x1c")==o[fc("0x6e")]&&!x)&&(e.containsRangeInObject||fc("0x174")==t[fc("0x6e")]&&e[fc("0x128")]||t[fc("0xc3")]()[fc("0x155")](s)&&this[fc("0x151")](t,r,i))}}))}),{priority:fc("0x79")}),t.model.on(fc("0xa8"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[fc("0x23")])return;if(this[fc("0x61")])return;if(!this.trackChangesCommand[fc("0x1a")])return;if(o[fc("0x2")])return;const i=t.model[fc("0x154")],{start:s,end:x}=o.getFirstRange(),a=s[fc("0x92")]&&i[fc("0x56")](s[fc("0x92")])?null:i[fc("0xe2")](s,fc("0x13f")),c=x[fc("0xcf")]&&i[fc("0x56")](x.nodeBefore)?null:i[fc("0xe2")](x,"backward"),l=t[fc("0xa9")][fc("0x146")](a?a.start:s,c?c[fc("0xed")]:x);t[fc("0xa9")].change((e=>{this.markDeletion(l);const n=t[fc("0xa9")][fc("0x154")][fc("0xe2")](l[fc("0x149")]);o.is("documentSelection")?e[fc("0xd4")](n):o[fc("0x144")](n)})),e[fc("0x94")]()}),{priority:e.priorities.normal+10}),t[fc("0xa9")].on(fc("0x8"),((e,n)=>{const o=n[n[fc("0x10")]-1];o&&o.forceDefaultExecution||this[fc("0x61")]||this.trackChangesCommand[fc("0x1a")]&&(t.model.change((()=>{let o=t.model.insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0x85")]=o[fc("0x6f")]();const r=o.end[fc("0xcf")],i=t[fc("0xa9")][fc("0x154")];r&&i[fc("0xaa")](r)&&!i[fc("0xf8")](r)&&(o=t[fc("0xa9")][fc("0x146")](o.start,t[fc("0xa9")][fc("0xe4")](r,"end"))),this.markInsertion(o)})),e[fc("0x94")]())}),{priority:fc("0x36")}),this.editor[fc("0x11e")][fc("0x1e")](fc("0xbd"),this.trackChangesCommand),this.enableCommand(fc("0xbd"));const r=new p(t,this[fc("0x3c")]);t[fc("0x11e")][fc("0x1e")](fc("0xf0"),r),this[fc("0x171")](fc("0xf0"));const i=new y(t,this[fc("0x3c")]);t.commands.add("discardSuggestion",i),this[fc("0x171")]("discardSuggestion"),t.commands[fc("0x1e")](fc("0x156"),new F(t,r,this._suggestions)),this[fc("0x171")](fc("0x156")),t[fc("0x11e")].add(fc("0xcd"),new F(t,i,this._suggestions)),this[fc("0x171")](fc("0xcd")),t.commands[fc("0x1e")]("acceptSelectedSuggestions",new j(t,r,this._suggestions)),this[fc("0x171")](fc("0x119")),t[fc("0x11e")][fc("0x1e")]("discardSelectedSuggestions",new j(t,i,this[fc("0x3c")])),this[fc("0x171")](fc("0x147"));const s=t.plugins.get(fc("0x70"));this.listenTo(s,"addComment",((t,{threadId:e})=>{const n=this[fc("0x3c")][fc("0x10b")](e);n&&n[fc("0x2f")]&&1===n[fc("0x2f")][fc("0x10")]&&this[fc("0x112")](e,{hasComments:!0})}),{priority:fc("0x54")}),this.listenTo(s,fc("0xb3"),((t,{threadId:e})=>{const n=this[fc("0x3c")][fc("0x10b")](e);n&&n[fc("0x2f")]&&!n[fc("0x2f")].length&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:fc("0x54")})}set adapter(t){if(this[fc("0x16f")])throw new e.CKEditorError(fc("0x28"),this);this[fc("0x16f")]=t}get[fc("0x2d")](){return this[fc("0x16f")]}[fc("0x5f")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0x3c")][fc("0x4f")]())t&&!e.isInContent||n[fc("0x96")](e);return e?n[fc("0x68")]((t=>t[fc("0xb1")]())):n}getSuggestion(t){const n=this[fc("0x3c")][fc("0x10b")](t);if(!n)throw new e.CKEditorError(fc("0xb8"),this);return n}[fc("0x16d")](t){return this[fc("0x3c")][fc("0x123")](t)}[fc("0x64")](t){const{authorId:e,id:n,attributes:o}=t,[r,i]=t[fc("0x6e")][fc("0x1c")](":"),s=this[fc("0x3c")].get(n)||this[fc("0x145")](r,i,n,e,o);if(this[fc("0xab")](s),this[fc("0x129")](s,r,i||null,e),s[fc("0x14d")]=t[fc("0x14d")],s[fc("0xd7")]=!0,o&&o[fc("0x34")]){const t=o[fc("0x34")],e=this[fc("0x126")](t.authorName);s.authoredAt=t.createdAt,s[fc("0x12e")]=e,s[fc("0x133")]=!0}else s[fc("0x136")]=t[fc("0x14d")];switch(t[fc("0x35")]&&(s[fc("0x35")]=t[fc("0x35")]),t.attributes&&(s[fc("0x5c")]=t[fc("0x5c")]),this[fc("0x16f")]&&this[fc("0x16f")].addSuggestion||(s[fc("0x20")]=!0),this[fc("0x169")][fc("0x10b")](s)){case fc("0xe3"):this[fc("0x169")][fc("0x51")](s,fc("0xa1"));break;case fc("0x15c"):s[fc("0x2e")]?(this[fc("0x10a")](new Set([s])),this._joinWithAdjacentSuggestions(new Set([s])),this[fc("0x169")][fc("0x51")](s,fc("0x159")),this[fc("0x8e")]("suggestionLoaded",s)):this[fc("0x169")][fc("0x51")](s,fc("0x43"))}return s}[fc("0xf0")](t){this[fc("0x23")]((()=>{this.editor[fc("0xa9")].change((()=>{for(const e of t[fc("0x100")]())e[fc("0x167")]()}))}))}[fc("0x137")](t){this[fc("0x23")]((()=>{this[fc("0x5d")][fc("0xa9")][fc("0x132")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[fc("0x111")]()}))}))}[fc("0x171")](t,n){const o=this[fc("0x5d")][fc("0x11e")][fc("0x10b")](t);if(!o)throw new e.CKEditorError(fc("0x97"),this,{commandName:t});if(this[fc("0x45")][fc("0x123")](o))throw new e.CKEditorError(fc("0x21"),this,{commandName:t});this[fc("0x45")][fc("0x1e")](o),n&&o.on(fc("0x3b"),((t,e)=>{this[fc("0x4d")][fc("0x1a")]&&(this[fc("0x61")]||(e[fc("0x10")]>0&&e[e[fc("0x10")]-1]&&e[e.length-1][fc("0x23")]?e.pop():(t[fc("0x85")]=n(((...t)=>o[fc("0x3b")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x94")]())))}),{priority:fc("0x36")})}forceDefaultExecution(t){let n,o;const r=this[fc("0x61")];this[fc("0x61")]=!0;try{n=t()}catch(t){o=t}return r||(this[fc("0x61")]=!1),o&&e.CKEditorError[fc("0x16a")](o,this),n}[fc("0x158")](t,n=null,o={}){if(t[fc("0x2")])return null;const r=this[fc("0x5d")][fc("0x9d")][fc("0x10b")](fc("0x41")).me;for(const{suggestion:e,meta:r}of this[fc("0xc8")](t,fc("0x174")))if(r.isOwn){if(!r[fc("0x139")]){if(r[fc("0x15d")]){if(!this[fc("0x164")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0x151")](e,t[fc("0x149")],t[fc("0xed")]);break}if(n==e[fc("0xf6")]&&Ic(e,o)){const n=e[fc("0xc3")]();return n[fc("0x149")][fc("0x16b")](t[fc("0xed")])?this[fc("0x2b")](e,this[fc("0xad")].createRange(t.start,n[fc("0xed")])):this[fc("0x2b")](e,this[fc("0xad")][fc("0x146")](n[fc("0x149")],t[fc("0xed")])),e}}const i=(0,e.uid)(),s=r.id,x=n?fc("0xf4")+n:fc("0x174"),a=this[fc("0x3e")]({id:i,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x74")](x,i,s,t),a}markMultiRangeInsertion(t,n="multi",o={}){const r=this.editor[fc("0x9d")][fc("0x10b")]("Users").me,i=this[fc("0x19")][fc("0x108")](fc("0x174"),n,fc("0x10d"));for(const e of this.getSuggestions())if(e[fc("0x12e")].id==r.id&&fc("0x174")==e[fc("0x6e")]&&e[fc("0xf6")]==n&&Ic(e,o)&&(i(e.getRanges(),t)||i(t,e[fc("0x60")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x174"))){if(!n[fc("0x128")])continue;if(!this._mergeNestedSuggestions&&n[fc("0x15d")])continue;if(!Ic(e,o))continue;let r=!0;for(const n of e[fc("0x60")]())for(const e of t)if(!n[fc("0x155")](e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a=fc("0xf4")+n,c=this[fc("0x3e")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x74")](a,s,x,e,Jo[fc("0xb7")]());return c}markInlineFormat(t,n,o=null,r={}){if(o=o||Tc(n),t[fc("0x2")])return null;if(fc("0x143")===this[fc("0xe5")]){const e=this[fc("0x19")][fc("0x108")]("formatInline",o,fc("0x167"));return this[fc("0x23")]((()=>e([t],n,r))),null}const i=this[fc("0x5d")][fc("0x9d")].get(fc("0x41")).me,s=[];if(fc("0xe9")!==this[fc("0xe5")])for(const{suggestion:e,meta:n}of this[fc("0xc8")](t,"insertion"))n[fc("0x128")]&&!n.isInsideObject&&s[fc("0x96")](...e[fc("0x60")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0xb0")](o);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x10")];){const o=n[e][fc("0x12b")](t);n[fc("0x138")](e,1,...o),e+=o[fc("0x10")]}}return n}(t,s);x[fc("0x10")]&&this[fc("0xad")][fc("0x132")]((()=>{for(const t of x){const e=this[fc("0x19")].getSuggestionCallback("formatInline",o,"accept");this.forceDefaultExecution((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t[fc("0x149")],a=t[fc("0xed")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0xe1"))){if(!n.isOwn)continue;if(e[fc("0xf6")]!=o)continue;if(!Ic(e,r))continue;const i=e.getFirstRange();if(i.containsRange(t,!0))return null;x=x[fc("0xeb")](i[fc("0x149")])?x:i[fc("0x149")],a=a.isAfter(i[fc("0xed")])?a:i[fc("0xed")],s?i[fc("0x149")][fc("0xeb")](s[fc("0xc3")]().start)?(s[fc("0x148")](),s=e):e[fc("0x148")]():s=e}const c=this[fc("0xad")][fc("0x146")](x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=i.id;this._setSuggestionData({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:s,attributes:r}),this[fc("0x74")](fc("0x1f")+o,t,s,c)}}return null}[fc("0xec")](t,n,o=[],r=null,i={}){n.formatGroupId||(n[fc("0x25")]=n.commandName),n[fc("0xb2")]=t.is(fc("0x7b")),r=r||Tc(n);const s=o[fc("0x68")]((t=>Cc(t,this._model))),x=t.is(fc("0x7b"))?t:Cc(t,this[fc("0xad")]);if(fc("0x143")===this[fc("0xe5")]){const t=this[fc("0x19")][fc("0x108")](fc("0x110"),r,fc("0x167"));return this[fc("0x23")]((()=>t([x],n,i))),null}s[fc("0x96")](x);let a=!0;for(const t of s)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&fc("0xe9")!==this[fc("0xe5")]){const t=this._suggestionFactory.getSuggestionCallback(fc("0x110"),r,fc("0x167"));return this[fc("0x23")]((()=>t([x],n,i))),null}let c=null,l=x[fc("0x149")],u=x[fc("0xed")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,fc("0x110"))){if(!e.isOwn)continue;if(e.isNextTo||e[fc("0x15d")]||e[fc("0x90")])continue;if(t[fc("0x35")][fc("0x25")]!=n.formatGroupId)continue;if(!Ic(t,i))continue;const o=t[fc("0xc3")]();if(t[fc("0xf6")]==r){if(o[fc("0x155")](x,!0))return null;l=l.isBefore(o.start)?l:o[fc("0x149")],u=u[fc("0x105")](o.end)?u:o.end,c?o[fc("0x149")][fc("0xeb")](c[fc("0xc3")]()[fc("0x149")])?(c[fc("0x148")](),c=t):t[fc("0x148")]():c=t}else{const e=x[fc("0xb0")](o);this[fc("0x7f")](t,e)}}const d=this[fc("0x5d")][fc("0x9d")][fc("0x10b")](fc("0x41")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x2b")](c,this[fc("0xad")][fc("0x146")](l,u)),c;{const t=this[fc("0x3e")]({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:f,attributes:i});return this[fc("0x74")]("formatBlock:"+r,g,f,this[fc("0xad")][fc("0x146")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],r=null,i={}){n[fc("0x25")]||(n[fc("0x25")]=n[fc("0x141")]);const s=t[0];n[fc("0xb2")]=s.is(fc("0x7b")),r=r||Tc(n);const x=o.map((t=>Cc(t,this[fc("0xad")]))),a=s.is(fc("0x7b"))?t:t[fc("0x68")]((t=>Cc(t,this[fc("0xad")])));if(fc("0x143")===this._trackFormatChanges){const t=this[fc("0x19")][fc("0x108")](fc("0x110"),r,fc("0x167"));return this[fc("0x23")]((()=>t(a,n,i))),null}x[fc("0x96")](...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&fc("0xe9")!==this[fc("0xe5")]){const t=this._suggestionFactory[fc("0x108")](fc("0x110"),r,"accept");return this.forceDefaultExecution((()=>t(a,n,i))),null}const l=this.editor[fc("0x9d")][fc("0x10b")]("Users").me;for(const t of this[fc("0x5f")]()){if(t[fc("0x12e")].id!=l.id)continue;if(fc("0x110")!=t[fc("0x6e")]||t[fc("0x35")].formatGroupId!=n[fc("0x25")])continue;if(!Ic(t,i))continue;const e=t[fc("0xf6")]==r;for(let n=0;n<a[fc("0x10")];n++){const o=a[n];for(const r of t.getMarkers()){const i=r.getRange();if(o[fc("0x16b")](i)){e?(a[fc("0x138")](n,1),n--):t.removeMarker(r[fc("0x38")]);break}}}}if(0==a.length)return null;const u=this[fc("0x19")][fc("0x108")]("formatBlock",r,"join");for(const t of this.getSuggestions())if(t[fc("0x12e")].id==l.id&&fc("0x110")==t[fc("0x6e")]&&t[fc("0x35")].formatGroupId==n.formatGroupId&&t[fc("0xf6")]==r&&Ic(t,i)&&(u(t.getRanges(),a)||u(a,t[fc("0x60")]()))){for(const e of a)t[fc("0x13a")](e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0x10f")+r,m=this[fc("0x3e")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[fc("0x74")](f,d,g,t,Jo[fc("0xb7")]());return m}[fc("0x40")](t,n=null,o={}){if(t[fc("0x2")])return null;const r=this[fc("0x5d")].plugins[fc("0x10b")](fc("0x41")).me,i=new s.LiveRange(t[fc("0x149")],t[fc("0xed")]);for(const{suggestion:t,meta:e}of this[fc("0xc8")](i,fc("0x174")))if(e[fc("0x128")]&&!e[fc("0x139")])if(t[fc("0x44")]){const e=t[fc("0x60")]()[fc("0xc2")]((t=>"$graveyard"!=t[fc("0xd3")][fc("0x42")]));if(e[fc("0xe7")]((t=>i.containsRange(t,!0)))&&t.discard(),e.some((t=>t[fc("0x155")](i,!0)))){const t=this[fc("0x19")].getSuggestionCallback(fc("0xee"),n,fc("0x167"));return this[fc("0x23")]((()=>t([i],null,o))),null}}else{const e=i.getIntersection(t[fc("0xc3")]());null!==e&&t._onDiscard([e],null,o)}if(i[fc("0x142")](),i[fc("0x2")]||fc("0x14a")==i[fc("0xd3")].rootName)return null;let x=null,a=i[fc("0x149")],c=i.end;const l=this[fc("0xc8")](i,fc("0xee"));for(const{suggestion:t,meta:e}of l){const n=this._model[fc("0x146")](a,c);if(e.isOwn&&(this[fc("0x164")]||!e.containsRangeInObject&&!e.isInsideObject))if(t.isMultiRange){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0x60")]()){if(o[fc("0x155")](n,!0))return t;n[fc("0x155")](o)||(e=!1)}e&&t.discard()}else{const e=t[fc("0xc3")]();if(e[fc("0x155")](n,!0))return t;if(!Ic(t,o)){n[fc("0x155")](e)?t[fc("0x148")]():e[fc("0xc6")](a)?a=e[fc("0xed")]:e[fc("0xc6")](c)&&(c=e.start);continue}a=a[fc("0xeb")](e.start)?a:e[fc("0x149")],c=c[fc("0x105")](e[fc("0xed")])?c:e.end,o=Object.assign({},t[fc("0x5c")]),x?e[fc("0x149")].isBefore(x.getFirstRange()[fc("0x149")])?(x[fc("0x148")](),x=t):t[fc("0x148")]():x=t}}if(x)return this[fc("0x2b")](x,this[fc("0xad")][fc("0x146")](a,c)),x;{const t=(0,e.uid)(),i=this[fc("0xad")][fc("0x146")](a,c),s=r.id,x=n?fc("0xd2")+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x74")](x,t,s,i),l}}markMultiRangeDeletion(t,n=fc("0xcc"),o={}){const r=this.editor.plugins[fc("0x10b")](fc("0x41")).me,i=t[fc("0x68")]((t=>new s.LiveRange(t[fc("0x149")],t[fc("0xed")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0xc8")](i,fc("0x174")))e[fc("0x128")]&&!e[fc("0x139")]&&x[fc("0x1e")](t);for(const e of x)if(e[fc("0x44")]){const r=e[fc("0x60")]();if((!e[fc("0x5c")]||!e[fc("0x5c")][fc("0x98")])&&r[fc("0xe7")]((t=>i[fc("0x170")]((e=>e.containsRange(t,!0)))))&&e[fc("0x111")](),i[fc("0xe7")]((t=>r[fc("0x170")]((e=>e[fc("0x155")](t,!0)))))){const e=this[fc("0x19")][fc("0x108")](fc("0xee"),n,"accept");return this[fc("0x23")]((()=>e(t,null,o))),null}}else{const t=e[fc("0xc3")]();if(i[fc("0x170")]((e=>e.containsRange(t,!0)))&&e[fc("0x111")](),i[fc("0xe7")]((e=>t.containsRange(e,!0)))){const t=this[fc("0x19")].getSuggestionCallback("deletion",n,fc("0x167"));return this.forceDefaultExecution((()=>t(i,null,o))),null}}const a=this[fc("0x19")].getSuggestionCallback(fc("0xee"),n,fc("0x10d"));let c=null;for(const t of this[fc("0x5f")]())if(t[fc("0x12e")].id==r.id&&t[fc("0x2e")]&&fc("0xee")==t[fc("0x6e")]&&t[fc("0xf6")]==n&&Ic(t,o)&&(a(t.getRanges(),i)||a(i,t[fc("0x60")]())))if(c){if(t[fc("0x2f")]&&t[fc("0x2f")][fc("0x10")])continue;for(const e of t[fc("0x60")]())c.isIntersectingWithRange(e)||c.addRange(e);t[fc("0x148")]()}else{c=t;for(const e of i)t.isIntersectingWithRange(e)||t[fc("0x13a")](e)}if(c)return c;x[fc("0x117")]();for(const{suggestion:t,meta:e}of this[fc("0xc8")](i,"deletion"))e[fc("0x128")]&&(this[fc("0x164")]||!e[fc("0x15d")]&&!e[fc("0x90")])&&Ic(t,o)&&x[fc("0x1e")](t);for(const t of x){const e=t[fc("0x60")]();if((!o||!o[fc("0x98")])&&i[fc("0xe7")]((t=>e[fc("0x170")]((e=>e.containsRange(t,!0))))))return t;(!t.attributes||!t.attributes[fc("0x98")])&&e[fc("0xe7")]((t=>i[fc("0x170")]((e=>e[fc("0x155")](t,!0)))))&&t[fc("0x111")]()}const l=(0,e.uid)(),u=r.id,d=fc("0xd2")+n,g=this[fc("0x3e")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of i)t.detach(),t[fc("0x2")]||"$graveyard"==t[fc("0xd3")][fc("0x42")]||this._addSuggestionMarker(d,l,u,t,Jo[fc("0xb7")]());return g}[fc("0x101")](t,n,o,r,i){if(t[fc("0x2")])return[];if("never"===this[fc("0xe5")])return[];const s=this[fc("0x5d")].plugins[fc("0x10b")](fc("0x41")).me.id,x=Array[fc("0x48")](this[fc("0x3c")][fc("0x4f")]())[fc("0xc2")]((e=>fc("0x5a")==e[fc("0x6e")]&&e[fc("0x35")][fc("0x77")]==n&&e[fc("0x59")](t)));if(fc("0x53")===this[fc("0xe5")]){const e=this[fc("0xc8")](t,fc("0x174"))[fc("0xc2")]((({meta:t})=>t[fc("0x128")]&&!t[fc("0x90")]&&!t[fc("0x139")])).map((({suggestion:t})=>t));x[fc("0x7e")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0x5a")==t[fc("0x6e")]?t.data[fc("0x58")]:void 0,i=t[fc("0xc3")](),s=Array[fc("0x48")](a[fc("0x63")]())[fc("0xce")]((t=>t[fc("0x86")](i)));if(!s)continue;const x=s[fc("0x12b")](i);this[fc("0xb9")](n)&&fc("0x174")==t[fc("0x6e")]&&0!=x.length||(a[fc("0xb4")](s),x[fc("0x168")]((t=>{a[fc("0x51")](t,o)})),fc("0x174")!=t[fc("0x6e")]&&e!=r&&a[fc("0x51")](s[fc("0xb0")](i),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:r};n.length>37&&console.warn("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.",{key:n});const l=(fc("0xe")+(n+"|")+Tc({newValue:r})).substring(0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[fc("0x96")](u),this._addSuggestionMarker(l,x,s,t)}return c}[fc("0x2a")](t){this._blockAttributeKeys[fc("0x1e")](t)}[fc("0xdf")](t){this[fc("0xba")][fc("0x1e")](t)}[fc("0x172")](t,e=[],n=[]){this[fc("0x171")](t,((t,...e)=>{this[fc("0xfd")]((()=>{t(...e)}))}));for(const t of e)this[fc("0xdf")](t);for(const t of n)this._registerBlockAttribute(t)}[fc("0x2b")](t,e){const n=t[fc("0x30")]();this[fc("0xad")][fc("0x132")]((t=>{t.updateMarker(n,{range:e})}))}[fc("0xab")](t){const e=t.id,n=this[fc("0x5d")][fc("0x134")][fc("0x10b")](fc("0x13d"));this._commentsRepository.hasCommentThread(e)||this[fc("0x13e")][fc("0x29")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0x13e")][fc("0x93")](e);o.unbind(fc("0xa7")),o[fc("0xa7")]=!1,t.commentThread=o}_checkSuggestionCorrectness(t,n,o,r){if(t[fc("0x6e")]!=n||t[fc("0xf6")]!=o||t[fc("0xa4")].id!=r)throw this[fc("0x5d")][fc("0x87")](fc("0xaf")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}_cutOutSuggestionMarker(t,n){const o=t[fc("0xc3")]();if(n[fc("0x16b")](o))t.removeMarkers();else if(o[fc("0x155")](n)){const r=this[fc("0xad")][fc("0xe4")](n[fc("0x149")][fc("0xcf")],fc("0xed"));this[fc("0x2b")](t,this._model[fc("0x146")](o[fc("0x149")],r));const i=(0,e.uid)(),s=t[fc("0xa4")].id,x=t[fc("0x6e")]+":"+t[fc("0xf6")];this[fc("0x3e")]({id:i,type:x,createdAt:new Date,authorId:s,data:t[fc("0x35")],attributes:t[fc("0x5c")]});const a=this._model[fc("0xe4")](n[fc("0xed")][fc("0xbc")],fc("0x162")),c=this[fc("0xad")][fc("0x146")](a,o[fc("0xed")]);this._addSuggestionMarker(x,i,s,c)}else if(o.containsPosition(n[fc("0x149")])){const e=this[fc("0xad")][fc("0xe4")](n[fc("0x149")][fc("0xcf")],"end");this._setSuggestionRange(t,this._model.createRange(o[fc("0x149")],e))}else{const e=this[fc("0xad")][fc("0xe4")](n[fc("0xed")][fc("0xbc")],fc("0x162"));this._setSuggestionRange(t,this[fc("0xad")].createRange(e,o[fc("0xed")]))}}[fc("0x178")](t){for(const{suggestion:e,meta:n}of this[fc("0xc8")](t,"insertion")){if(!n.isOwn)continue;const o=e.getRanges();for(const e of o)if(!t[fc("0x12b")](e)[fc("0x10")])return!0}return!1}[fc("0x177")](t){const n=this[fc("0x5d")][fc("0x9d")][fc("0x10b")]("Users").getUser(t);if(!n)throw new e.CKEditorError(fc("0x15b"),this);return n}[fc("0x126")](t){const e=this.editor[fc("0x9d")].get(fc("0x41")),n=(0,i.hashObject)(fc("0x116")+t);return e[fc("0xf7")](n)||e[fc("0x37")]({id:n,name:t})}[fc("0x145")](t,e,n,o,r){const i=this[fc("0x177")](o),s=this[fc("0x19")][fc("0x1")](t,e,n,i,r,(t=>this[fc("0x112")](n,{attributes:t})));return this[fc("0x78")](s,fc("0x167"),(()=>{this[fc("0x112")](n,{state:fc("0xd9")})}),{priority:fc("0x36")}),this[fc("0x78")](s,"discard",(()=>{this[fc("0x112")](n,{state:fc("0x1b")})}),{priority:fc("0x36")}),this[fc("0x3c")][fc("0x51")](n,s),this[fc("0x169")][fc("0x51")](s,fc("0xe3")),s}_splitMarkerName(t){const e=t[fc("0x1c")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[fc("0x10")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[fc("0x151")](t,n,o){const r=t[fc("0xc3")](),i=r[fc("0x149")],s=r[fc("0xed")];this[fc("0x2b")](t,this[fc("0xad")][fc("0x146")](i,n));const x=(0,e.uid)(),a=t[fc("0xa4")].id,c=t[fc("0x6e")]+(t[fc("0xf6")]?":"+t.subType:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x5c")],data:t[fc("0x35")]});const l=Sc(t);(fc("0x110")==t.type||l&&this._isBlockAttribute(l))&&(o=this._model.createPositionBefore(o.parent)),this._addSuggestionMarker(c,x,a,this[fc("0xad")][fc("0x146")](o,s))}_findSuggestions(t,e=null){const n=[],o=this[fc("0x5d")][fc("0x9d")][fc("0x10b")]("Users").me;Array[fc("0x6b")](t)||(t=[t]);for(const r of this[fc("0x5f")]()){if(!r.isInContent)continue;if(e&&r[fc("0x6e")]!=e)continue;let i=!1;for(const e of r[fc("0x60")]()){for(const s of t){const t=s[fc("0x149")][fc("0x16b")](e[fc("0xed")])||s[fc("0xed")][fc("0x16b")](e.start);if(t||s[fc("0xb0")](e)){const x=s[fc("0x155")](e)&&bc(this[fc("0xad")][fc("0x154")],e[fc("0x149")],s),a=e[fc("0x155")](s)&&bc(this[fc("0xad")].schema,s.start,e);n[fc("0x96")]({suggestion:r,meta:{isOwn:o==r[fc("0x12e")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0x74")](t,e,n,o,r){this._model[fc("0x132")]((i=>{let s=fc("0x150")+t+":"+e+":"+n;r&&(s=s+":"+r),i[fc("0x11b")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0x16")](t){const e=t[fc("0x91")],n=t.next;t[fc("0x91")]=null,t[fc("0x81")]=null,null!=e&&(e.next=n),null!=n&&(n.previous=e),fc("0x159")==this[fc("0x169")][fc("0x10b")](t)&&(this._suggestionState[fc("0x51")](t,fc("0x43")),this[fc("0x8e")](fc("0xda"),t,e,n))}[fc("0x3e")](t){const n=t.id,o=this[fc("0x64")](t);if(this[fc("0x16f")]&&this[fc("0x16f")][fc("0xae")]){const r=this[fc("0x5d")][fc("0x9d")][fc("0x10b")](fc("0x131")),i=o[fc("0x115")],s=o[fc("0xf6")]?o[fc("0x6e")]+":"+o.subType:o[fc("0x6e")],x=this.editor[fc("0x6c")],a=r[fc("0x1e")](Qo(x,fc("0x55"))),c={id:n,type:s,hasComments:i,data:t.data||null,originalSuggestionId:t[fc("0xdb")]||null,attributes:o[fc("0x5c")]};this[fc("0x16f")][fc("0xae")](c).then((t=>{o[fc("0x20")]=!0,r[fc("0x57")](a),t&&t[fc("0x14d")]&&(this._suggestions[fc("0x10b")](n)[fc("0x14d")]=t[fc("0x14d")])}))[fc("0xfc")]((t=>{throw(0,e.logWarning)(fc("0x130")),this.editor[fc("0xa9")][fc("0x127")]({isUndoable:!1},(()=>{o[fc("0x111")]()})),o[fc("0xbb")](),this._suggestions.delete(o.id),this[fc("0x169")][fc("0xb4")](o),t}))}return o}_isBlockAttribute(t){return this[fc("0xbf")][fc("0x123")](t)}[fc("0x112")](t,e){const n=this.editor[fc("0x9d")][fc("0x10b")](fc("0x131")),o=this[fc("0xf9")](t);if(this[fc("0x16f")]&&this[fc("0x16f")].updateSuggestion)if(o._saved){const o=n[fc("0x1e")](Qo(this.editor[fc("0x6c")],fc("0x55")));this._adapter.updateSuggestion(t,e)[fc("0x10e")]((()=>{n.remove(o)}))}else o.on(fc("0x11d"),(()=>{this[fc("0x112")](t,e)}))}[fc("0x14e")](t){if(!this[fc("0x16f")]||!this[fc("0x16f")][fc("0xf9")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[fc("0x16f")][fc("0xf9")](t)}[fc("0x46")](t){const{id:e,type:n,subType:o,authorId:r}=this._splitMarkerName(t),i=this[fc("0x3c")][fc("0x10b")](e)||this[fc("0x145")](n,o,e,r,{});switch(this[fc("0x129")](i,n,o,r),this[fc("0x169")][fc("0x10b")](i)){case fc("0xe3"):this[fc("0x14e")](e)[fc("0x10e")]((t=>{let n=Promise.resolve();t.hasComments&&(n=this[fc("0x13e")].fetchCommentThread({channelId:this[fc("0x5d")][fc("0x134")][fc("0x10b")](fc("0x13d")),threadId:e})),n[fc("0x10e")]((()=>{this.addSuggestionData(t)[fc("0x20")]=!0}))})),this[fc("0x169")].set(i,fc("0x15c"));break;case fc("0x43"):this[fc("0x112")](e,{state:fc("0x84")});case fc("0xa1"):this[fc("0x169")][fc("0x51")](i,fc("0x159")),this[fc("0x8e")](fc("0x11"),i);break;case fc("0x159"):this.fire(fc("0x0"),i)}return i[fc("0xde")](t),i}[fc("0x10a")](t){const e=Array[fc("0x48")](t),n=e.filter((t=>"attribute"==t[fc("0x6e")]));this[fc("0x72")](n);const o=e[fc("0xc2")]((t=>!t[fc("0x44")]&&fc("0x5a")!=t[fc("0x6e")])),r=this[fc("0x5f")]({skipNotAttached:!0})[fc("0xc2")]((t=>!t[fc("0x44")]&&fc("0x5a")!=t.type)),i=r[fc("0xc2")]((e=>!t[fc("0x123")](e))),s=new Map(r[fc("0x68")]((t=>[t,this._suggestionFactory[fc("0x108")](t.type,t[fc("0xf6")],fc("0x102"))]))),x=new Map(r[fc("0x68")]((t=>[t,t[fc("0xc3")]()]))),a=new Set,c=new Set;for(let t=0;t<o.length;t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0x10")];t++)u(o[t],i,0);const l=new Set;for(let t=0;t<o[fc("0x10")];t++){const e=o[t];!c[fc("0x123")](e)&&e[fc("0x91")]&&(l[fc("0x1e")](e[fc("0x91")]),e.previous.next===e&&(e[fc("0x91")][fc("0x81")]=null),e[fc("0x91")]=null),!a[fc("0x123")](e)&&e[fc("0x81")]&&(l[fc("0x1e")](e[fc("0x81")]),e.next[fc("0x91")]===e&&(e[fc("0x81")][fc("0x91")]=null),e[fc("0x81")]=null)}function u(t,e,n){for(let o=n;o<e.length;o++){const n=d(t,e[o]);n&&(n[0][fc("0x81")]=n[1],n[1][fc("0x91")]=n[0],a[fc("0x1e")](n[0]),c.add(n[1]))}}function d(t,e){if(t[fc("0x12e")].id!==e[fc("0x12e")].id)return null;const n=s[fc("0x10b")](t)(t,e,x[fc("0x10b")](t),x.get(e));return n&&s.get(e)(t,e,x[fc("0x10b")](t),x[fc("0x10b")](e))?n[1][fc("0x2f")]&&n[1][fc("0x2f")][fc("0x10")]?null:n:null}l[fc("0x118")]&&this[fc("0x10a")](l)}[fc("0x72")](t){if(0==t[fc("0x10")])return;const e=this[fc("0x5f")]({skipNotAttached:!0})[fc("0xc2")]((t=>fc("0x5a")==t.type&&t[fc("0xd7")])),n=[],o=new Map;for(const t of e){const e=(0,i.hashObject)(t[fc("0x5c")]);o[fc("0x123")](e)||(o[fc("0x51")](e,n.length),n[fc("0x96")]([]));const r=o[fc("0x10b")](e);n[r][fc("0x96")](t)}!function(){n[fc("0x13b")](((t,e)=>{const n=t[0][fc("0x14d")],o=e[0][fc("0x14d")];return n==o?t[0][fc("0x5c")].groupId<e[0][fc("0x5c")].groupId?-1:1:n<o?-1:1}));for(const t of n)t[fc("0x13b")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x10")];t++){if(0==n[t].length)continue;const e=[];for(let o=t+1;o<n[fc("0x10")];o++)0!=n[o].length&&r(n[t],n[o])&&e[fc("0x96")](o);for(const o of e)n[t]=n[t][fc("0xcb")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0x81")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0x91")]=t[e-1]||null;function r(t,e){if(t[0][fc("0x12e")]!==e[0].author)return!1;if(n=t[0],o=e[0],(n[fc("0x115")]||o[fc("0x115")])&&(n[fc("0x115")]&&o[fc("0x115")]||!(n[fc("0x115")]&&o[fc("0x14d")]<n[fc("0x2f")][fc("0xbe")].get(0)[fc("0x14d")]||o.hasComments&&n[fc("0x14d")]<o[fc("0x2f")][fc("0xbe")][fc("0x10b")](0)[fc("0x14d")])))return!1;var n,o;const r=lc(t[0][fc("0x5c")],fc("0x10c")),i=lc(e[0][fc("0x5c")],fc("0x10c"));return!!Go(r,i)&&(!!t.every((t=>e[fc("0x170")]((e=>t[fc("0xc3")]()[fc("0x16b")](e[fc("0xc3")]())))))&&e[fc("0xe7")]((e=>t.some((t=>e.getFirstRange()[fc("0x16b")](t[fc("0xc3")]()))))))}}[fc("0xfa")](t){const e=Array[fc("0x48")](t),n=this[fc("0x5f")]({skipNotAttached:!0}),o=n.filter((e=>!t[fc("0x123")](e))),r=new Map(e[fc("0x68")]((t=>[t,this[fc("0x19")].getSuggestionCallback(t[fc("0x6e")],t[fc("0xf6")],fc("0x10d"))]))),i=new Map(n.map((t=>[t,t[fc("0x60")]()])));for(let t=0;t<e[fc("0x10")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x10")];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("0x10")];s++){const o=n[s];if(o[fc("0x6e")]!==e[fc("0x6e")]||o[fc("0x12e")].id!==e.author.id||o[fc("0xf6")]!==e[fc("0xf6")])continue;if(!kc(e,o))continue;if(fc("0x5a")==e[fc("0x6e")]&&e[fc("0x35")].oldValue!=o[fc("0x35")][fc("0x58")])continue;if(fc("0x5a")==e[fc("0x6e")]&&t[fc("0xb9")](e.data[fc("0x77")]))continue;if(fc("0x110")==e[fc("0x6e")]){const n=t.editor[fc("0xa9")],o=e[fc("0x3")]();if(o&&(n.schema[fc("0xf8")](o)||n.schema.isLimit(o)))continue}const x=r[fc("0x10b")](e),a=i[fc("0x10b")](e),c=i[fc("0x10b")](o),l=e[fc("0x2f")]&&e[fc("0x2f")].length,u=o[fc("0x2f")]&&o[fc("0x2f")][fc("0x10")];if(!l&&x(c,a))return t[fc("0x62")](o,e),i[fc("0xb4")](e),!0;if(!u&&x(a,c))return t[fc("0x62")](e,o),i[fc("0xb4")](o),!0}return!1}}[fc("0x62")](t,e){if(t.isMultiRange)for(const n of e[fc("0x60")]())t[fc("0x13a")](n);else{const n=e[fc("0xc3")]().end;this[fc("0x2b")](t,this[fc("0xad")][fc("0x146")](t.getFirstRange()[fc("0x149")],n))}e[fc("0x148")]()}_getMarkerAnnouncementText(t,e){const n=t[fc("0x4c")](fc("0x121"))||t.startsWith("attribute")?fc("0x16e"):t[fc("0x49")]();return Qo(this[fc("0x5d")].locale,e+"_"+n+fc("0x11f"))}[fc("0x13c")](){const t=this[fc("0x5d")];(0,i.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this._splitMarkerName(t.name);if(fc("0x13")===e){o[fc("0x96")](this._getMarkerAnnouncementText(n,fc("0x14f")));break}}for(const t of n){const{group:e,type:n}=this[fc("0x50")](t[fc("0x38")]);if(fc("0x13")===e){o[fc("0x96")](this[fc("0xa5")](n,"ENTER"));break}}o[fc("0x10")]&&t.ui[fc("0x3f")][fc("0x99")](fc("0xbd"),o[fc("0x10d")](" "))}))}[fc("0xc1")](t){if(null!==this._recordAttributeSuggestionsFromVersion)return!1;const e=this[fc("0x5d")],n=e[fc("0xa9")].document[fc("0x12")].getChanges();if(0==n.length)return!1;const o=[],r=n[fc("0xc2")]((t=>fc("0x5a")==t.type)),i=n[fc("0xc2")]((t=>"insert"==t[fc("0x6e")]&&"$text"!=t[fc("0x38")])),s=n[fc("0xc2")]((t=>"remove"==t[fc("0x6e")]&&fc("0x16c")!=t[fc("0x38")]));for(const t of r)o[fc("0x96")]({key:t[fc("0x12c")],newValue:t[fc("0x5")],oldValue:t[fc("0x153")],range:(x=t[fc("0x7b")],null==x[fc("0xed")].nodeBefore&&x[fc("0xed")][fc("0xbc")]==x[fc("0x149")][fc("0x92")]?Cc(x[fc("0x149")][fc("0x92")],e[fc("0xa9")]):x)});var x;for(const t of i){const n=s.find((e=>e[fc("0xfb")][fc("0x16b")](t[fc("0xfb")])));n&&o[fc("0x96")]({key:fc("0x135"),newValue:t[fc("0x38")],oldValue:n[fc("0x38")],range:e[fc("0xa9")][fc("0x15")](t.position.nodeAfter)})}return 0!=o.length&&this._reduceExistingSuggestions(t,o)}[fc("0x7")](t){let e=!1;const n=this[fc("0x5d")][fc("0xa9")][fc("0x4b")][fc("0x12")][fc("0x107")]().filter((t=>t[fc("0x35")][fc("0x9a")]&&t.name[fc("0x4c")](fc("0x12d"))));for(const o of n){const{subType:n,id:r}=this[fc("0x50")](o.name),i=n[fc("0x1c")]("|")[0];for(const n of this.getSuggestions({skipNotAttached:!0}))n.id!=r&&"attribute"==n[fc("0x6e")]&&n.data&&n.data[fc("0x77")]==i&&n.getFirstRange()[fc("0x86")](o.data[fc("0x9a")])&&(this[fc("0xc0")](n,o.data[fc("0x9a")],t),e=!0)}return e}_recordAttributeChanges(t){if(null!==this._recordAttributeSuggestionsFromVersion)return void t();const n=this[fc("0x5d")];this[fc("0x5b")]=n.model[fc("0x4b")][fc("0x152")],t();const o=new Map;for(const t of n.model[fc("0x4b")][fc("0x7a")].getOperations(this[fc("0x5b")]))if([fc("0x8a"),fc("0x27"),fc("0x12f"),fc("0x6d")][fc("0x17b")](t[fc("0x6e")])){const e=t.batch,n=o.get(e)||[];n[fc("0x96")](t),o[fc("0x51")](e,n)}this._recordAttributeSuggestionsFromVersion=null;for(const[t,r]of o){const o=(0,e.uid)();n[fc("0xa9")][fc("0x127")](t,(t=>{const e=[];for(const t of r){let r,i,s,x;if(fc("0x8a")==t.type){const e=t;r=Cc(e[fc("0xfb")][fc("0x92")],n[fc("0xa9")]),i=fc("0x135"),s=e[fc("0xf")],x=e[fc("0x140")]}else{const e=t,o=this[fc("0xb9")](e[fc("0x77")]),a=this[fc("0xba")].has(e.key);if(!o&&!a)continue;r=o?Cc(e[fc("0x7b")].start[fc("0x92")],n[fc("0xa9")]):e[fc("0x7b")],i=e[fc("0x77")],s=fc("0x12f")==t.type?void 0:e.newValue,x=e.oldValue}this[fc("0x101")](r,i,x,s,{groupId:o}),e[fc("0x96")]({range:r,key:i,newValue:s,oldValue:x})}this[fc("0xc4")](t,e)}))}}[fc("0xc4")](t,e){if(0==e[fc("0x10")])return!1;let n=!1;for(const o of e){const e=this[fc("0xc8")](o[fc("0x7b")],"attribute")[fc("0xc2")]((t=>!t[fc("0xca")][fc("0x139")]))[fc("0x68")]((t=>t[fc("0x13")])),r=(0,i.hashObject)({newValue:o[fc("0x2c")]});e[fc("0xc2")]((t=>{const[e,n]=t[fc("0xf6")][fc("0x1c")]("|");return e==o[fc("0x77")]&&n!=r})).forEach((e=>{this[fc("0xc0")](e,o[fc("0x7b")],t),n=!0}))}return n}[fc("0xc0")](t,e,n){const o=t[fc("0xc3")]()[fc("0x12b")](e);0!==o[fc("0x10")]?1!==o.length?this[fc("0x151")](t,e[fc("0x149")],e.end):this[fc("0x2b")](t,o[0]):n[fc("0x18")](t[fc("0x30")]())}}class pc{constructor(t){this[fc("0x76")]=t,this[fc("0xad")]=t[fc("0xa9")],this[fc("0x24")]=new Map,this[fc("0xf2")]=new Map,this[fc("0xe0")]()}[fc("0x1")](t,e,n,o,r,i){return new Jo(this[fc("0xad")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:i,onAccept:(...n)=>this[fc("0x108")](t,e,fc("0x167"))(...n),onDiscard:(...n)=>this[fc("0x108")](t,e,"discard")(...n)})}[fc("0x175")](t,e,n,o){const r=t+":"+e+":"+n;this[fc("0x24")][fc("0x51")](r,o)}[fc("0x108")](t,e,n){const o=t+":"+e+":"+n;return this[fc("0x24")].get(o)||this._defaultCallbacks[fc("0x10b")](t+":"+n)}[fc("0xe0")](){const t=()=>!1,e=t=>{t[fc("0x13b")](((t,e)=>t[fc("0x149")][fc("0xeb")](e[fc("0x149")])?1:-1)),this[fc("0xad")].change((e=>{for(const n of t){let t;t=n[fc("0xed")][fc("0x3d")]&&n[fc("0xed")][fc("0xbc")]==n[fc("0x149")].nodeAfter?e.createSelection(n[fc("0x149")][fc("0x92")],"on"):e.createSelection(n),this._model[fc("0xa8")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model.change((n=>{const{commandName:o,commandParams:r=[]}=e,i=t[fc("0x68")]((t=>(Ec(t)&&(t=this[fc("0xad")][fc("0x146")](t.end)),t)))[fc("0xc2")]((t=>fc("0x14a")!==t[fc("0xd3")][fc("0x42")]));if(i.length<1)return;const x=Array[fc("0x48")](this[fc("0xad")][fc("0x4b")][fc("0x26")][fc("0x60")]())[fc("0x68")]((t=>s.LiveRange[fc("0x109")](t)));n.setSelection(i);for(const t of this[fc("0x76")][fc("0x11e")][fc("0x11e")]())t.refresh();r.push({forceDefaultExecution:!0}),this[fc("0x76")][fc("0x3b")](o,...r);const a=x.filter((t=>fc("0x14a")!=t[fc("0xd3")][fc("0x42")]));a[fc("0x10")]>0&&n[fc("0xd4")](a);for(const t of x)t[fc("0x142")]()}))},o=(t,e)=>1==t[fc("0x10")]&&1==e.length&&t[0][fc("0xed")][fc("0x16b")](e[0][fc("0x149")]),r=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0xad")])?[t,e]:Ac(e,t,o,n,this[fc("0xad")])?[e,t]:null;this[fc("0xf2")].set(fc("0xa3"),t),this[fc("0xf2")].set("insertion:discard",e),this[fc("0xf2")][fc("0x51")](fc("0x3a"),o),this[fc("0xf2")][fc("0x51")](fc("0x165"),r),this[fc("0xf2")][fc("0x51")](fc("0x11a"),e),this[fc("0xf2")][fc("0x51")](fc("0x33"),t),this._defaultCallbacks[fc("0x51")](fc("0x14"),o),this[fc("0xf2")][fc("0x51")](fc("0xb6"),r),this[fc("0xf2")].set("formatInline:accept",n),this._defaultCallbacks[fc("0x51")](fc("0x114"),t),this[fc("0xf2")][fc("0x51")](fc("0x14c"),o),this[fc("0xf2")][fc("0x51")]("formatInline:chain",t),this[fc("0xf2")].set(fc("0x161"),n),this._defaultCallbacks[fc("0x51")]("formatBlock:discard",t),this[fc("0xf2")][fc("0x51")](fc("0x163"),o),this._defaultCallbacks[fc("0x51")](fc("0xdc"),t),this[fc("0xf2")][fc("0x51")](fc("0xdd"),t),this._defaultCallbacks[fc("0x51")](fc("0x179"),((t,e)=>{if(!e)return;const n=this[fc("0x76")][fc("0x9d")][fc("0x10b")](hc);this[fc("0xad")][fc("0x132")]((o=>{if("$elementName"==e[fc("0x77")])for(const n of t){const t=n[fc("0x149")][fc("0x92")],r=e[fc("0x58")];o[fc("0x8a")](t,r)}else if(n[fc("0xb9")](e[fc("0x77")]))for(const n of t)void 0!==e[fc("0x58")]?o.setAttribute(e[fc("0x77")],e[fc("0x58")],n[fc("0x149")][fc("0x92")]):o[fc("0x12f")](e[fc("0x77")],n[fc("0x149")][fc("0x92")]);else for(const n of t)e[fc("0x58")]?o[fc("0x89")](e[fc("0x77")],e[fc("0x58")],n):o[fc("0x12f")](e[fc("0x77")],n)}))})),this[fc("0xf2")][fc("0x51")](fc("0xf1"),o)}}function bc(t,e,n){for(const o of e[fc("0xbc")][fc("0x8d")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0xd3")]==o)return!1;if(!n.containsItem(o))return!1;if(t[fc("0xf8")](o)||t[fc("0x56")](o))return!0}return!1}function Ec(t){return t[fc("0xed")].parent==t.start[fc("0x92")]&&t[fc("0xed")][fc("0x15a")]}function _c(t,e,n,o){const r=t=>!t.item.is(fc("0x66"))&&!o[fc("0xf8")](t.item),i=t[fc("0x149")][fc("0x65")](r),s=t[fc("0xed")].getLastMatchingPosition(r,{direction:"backward"});return!(t.start[fc("0x16b")](i)&&t[fc("0xed")][fc("0x16b")](s)||(i[fc("0xeb")](s)?n[fc("0x4a")](e,{range:n[fc("0x146")](i,s)}):n[fc("0x18")](e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t[fc("0x149")].nodeAfter;return e&&e.is(fc("0x9"))}function Cc(t,e){const n=e[fc("0x154")].isObject(t)||e.schema[fc("0xf5")](t);return e[fc("0x146")](e[fc("0xe4")](t,"before"),n?e[fc("0xa0")](t):e[fc("0xe4")](t,fc("0xed")))}function Ac(t,e,n,o,r){if(!kc(t,e))return!1;if(n[fc("0xed")].isEqual(o[fc("0x149")]))return!0;if(t[fc("0x6e")]!=e.type)return!1;if(!n.end[fc("0x82")](o[fc("0x149")]))return!1;const i=r[fc("0x146")](n[fc("0xed")],o.start)[fc("0xc")]();for(const t of i)if([fc("0x75"),"elementEnd"][fc("0x17b")](t[fc("0x6e")])&&r[fc("0x154")][fc("0x56")](t[fc("0x31")]))return!1;return!0}function kc(t,e){return!(!t[fc("0xd7")]||!e[fc("0xd7")])&&Go(t[fc("0x5c")],e[fc("0x5c")])}function Ic(t,e){const n=Rc(t[fc("0x5c")]),o=Rc(e);if(!t._isDataLoaded)return!1;for(const t of Object[fc("0x63")](o))if(!Go(n[t],o[t]))return!1;return!0}function Rc(t){const e=Object[fc("0xef")]({},t);return delete e[fc("0x98")],delete e[fc("0xd6")],e}function Sc(t){return fc("0x5a")==t[fc("0x6e")]?t[fc("0xf6")][fc("0x1c")]("|")[0]:null}const vc=["_removePendingAction","unbind","plugins","canDiscard","_setPendingAction","isEnabled","destroy","isDirty","change:isDirty","add","model","_discardCommand","bind","stopListening","listenTo","_acceptCommand","remove","view","canEditAt","acceptSuggestion","_pendingAction","canAccept","get","commands","discardSuggestion","_editor","commentThreadController","locale","PendingActions"];var Nc,Lc;Nc=vc,Lc=500,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return vc[t-=0]};class Oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Mc("0x3")]=e,this[Mc("0xa")]=n,this[Mc("0x13")]=o,this._editor=t,this._acceptCommand=t[Mc("0x10")][Mc("0xf")]("acceptSuggestion"),this._discardCommand=t.commands[Mc("0xf")](Mc("0x11")),this[Mc("0xa")][Mc("0x5")](Mc("0x1b")).to(this[Mc("0x8")],this._discardCommand,((t,e)=>t||e)),this[Mc("0xa")][Mc("0x5")](Mc("0xe")).to(this[Mc("0x8")],Mc("0x1b"),(t=>t&&this[Mc("0x12")][Mc("0x3")].canEditAt(e.getRanges()))),this[Mc("0xa")][Mc("0x5")](Mc("0x19")).to(this[Mc("0x4")],"isEnabled",(t=>t&&this._editor[Mc("0x3")][Mc("0xb")](e.getRanges()))),this[Mc("0xd")]=null,n[Mc("0x0")]&&this._setPendingAction(),this.listenTo(n,Mc("0xc"),(()=>this[Mc("0xc")]())),this[Mc("0x7")](n,Mc("0x11"),(()=>this[Mc("0x11")]())),this[Mc("0x7")](n,Mc("0x1"),(()=>{n[Mc("0x0")]?this[Mc("0x1a")]():this[Mc("0x16")]()}))}[Mc("0xc")](){this[Mc("0x8")].execute(this.model.id)}[Mc("0x11")](){this[Mc("0x4")].execute(this[Mc("0x3")].id)}[Mc("0x1c")](){this[Mc("0xa")].unbind(Mc("0x1b")),this[Mc("0xa")][Mc("0x17")](Mc("0xe")),this[Mc("0xa")][Mc("0x17")]("canDiscard"),this[Mc("0x6")](),this[Mc("0x13")].destroy(),this[Mc("0xd")]&&this[Mc("0x16")]()}_setPendingAction(){const t=Qo(this[Mc("0x12")][Mc("0x14")],"PENDING_ACTION_SUGGESTION");this[Mc("0xd")]=this[Mc("0x12")].plugins.get(Mc("0x15"))[Mc("0x2")](t)}[Mc("0x16")](){null!==this[Mc("0xd")]&&this[Mc("0x12")][Mc("0x18")].get(Mc("0x15"))[Mc("0x9")](this[Mc("0xd")]),this[Mc("0xd")]=null}}const wc=["length","setData","_createCommentViews","_localUser","commentThread","isDirty","commentInputView","editorConfig","authoredAt","commentsListView","element","value","locale","canDiscard","_model","isActive","disableComments","delegate","assign","updateComment","removeComment","_config","disabledSubmit","commentThreadInputView","submit","cancel","set","destroy","isReadOnly","showInput","focus","bind","descriptionParts","CommentView"];var Fc,Dc;Fc=wc,Dc=200,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Pc=function(t,e){return wc[t-=0]};class Bc extends r.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[Pc("0x1b")]=null,this[Pc("0x1e")]("isActive",!1),this[Pc("0x1e")](Pc("0xc"),e.authoredAt),this[Pc("0x1")](Pc("0xc")).to(e),this[Pc("0x1e")](Pc("0x2"),[]),this[Pc("0x1e")](Pc("0x9"),!1),this.set("isEnabled",!1),this[Pc("0x1e")]("canAccept",!1),this[Pc("0x1e")](Pc("0x11"),!1),this[Pc("0x12")]=e,this[Pc("0x7")]=n,this[Pc("0x19")]=o,o[Pc("0x14")]?this[Pc("0x1e")](Pc("0x4"),1):this[Pc("0x6")]()}[Pc("0x0")](){this[Pc("0xe")][Pc("0x0")]()}[Pc("0x1f")](){this[Pc("0xd")]&&this[Pc("0xd")].destroy(),this[Pc("0x1b")]&&this.commentThreadInputView[Pc("0x1f")](),super[Pc("0x1f")]()}[Pc("0x6")](){const{CommentsListView:t}=this[Pc("0x19")];this.commentsListView=new t(this[Pc("0x10")],this[Pc("0x12")][Pc("0x8")],Object[Pc("0x16")]({CommentView:this[Pc("0x19")][Pc("0x3")]},this[Pc("0x19")])),this[Pc("0xd")][Pc("0x15")](Pc("0x18")).to(this),this[Pc("0xd")][Pc("0x15")](Pc("0x17")).to(this),this[Pc("0xd")][Pc("0x1")](Pc("0x13")).to(this),this[Pc("0x1e")](Pc("0x4"),this[Pc("0xd")].length+1),this.bind("length").to(this[Pc("0xd")],Pc("0x4"),(t=>t+1)),this[Pc("0x1b")]=this._createCommentThreadInputView(),this.on("removeComment",(()=>this[Pc("0x0")]())),this[Pc("0x1")](Pc("0x9")).to(this[Pc("0xd")],"hasDirtyComment",this[Pc("0x1b")][Pc("0xa")],Pc("0xf"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Pc("0x19")],e=new t(this[Pc("0x10")],this._localUser,this[Pc("0x19")][Pc("0xb")]),n=e[Pc("0xa")];return e[Pc("0x1")](Pc("0x21")).to(this,Pc("0x13"),this[Pc("0x12")].commentThread,Pc("0x20"),n,Pc("0xf"),((t,e,n)=>!!n||t&&!e)),n.on(Pc("0x1c"),((t,e)=>{this.fire("addComment",e),n.editor[Pc("0x5")]("")})),n.on(Pc("0x1d"),(()=>this.focus())),n[Pc("0x1")](Pc("0x1a")).to(this[Pc("0x12")][Pc("0x8")],"isReadOnly"),e}}const Uc=["cancel","ck-annotation","bindTemplate","ck-suggestion-wrapper--active","getExternalSuggestionNote","commentsListView","EXTERNAL_AVATAR","ck-annotation__info-time","color","EXTERNAL_SUGGESTION","getTemplate",'" title="',"innerHTML","locale","map","_descriptionElement","description","ck-suggestion--disabled-comments","authoredAt","commentThread","ck-comment__external","innerText","@external","ck-suggestion__main","importWord","commentThreadInputView","_createButton","disableComments","render","<p>","ck-annotation__info-name","extendTemplate","fire","ck-suggestion","querySelector","element","_config","author","EXTERNAL_IMPORT_WORD_AVATAR","attributes","EXTERNAL_IMPORT_WORD_SUGGESTION","acceptButton","createElement","ck-suggestion--discard","discardSuggestion","check","bind","discardButton","setTemplate","Accept suggestion","ck-suggestion__info","userView","execute","name",'<span class="ck-suggestion-type">',"time",'<span class="ck-suggestion-color" style="background-color: ',"_model","canAccept",".ck-annotation__content-wrapper","delegate","ck-suggestion--accept","editorDestroyed","div","ck-comment__info-time","isActive","Discard suggestion","span","content","split","source","ck-suggestion-wrapper","set","descriptionParts","creator","editorReady","title","formatDateTime","type","push","isEnabled","ck-annotation__actions","canDiscard","getUserViewNotificationText","children"];var jc,Gc;jc=Uc,Gc=373,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends Bc{constructor(e,n,o,r){super(e,n,o,r),this[Vc("0x27")](Vc("0x2d"),""),this[Vc("0xd")](Vc("0x2d")).to(this,Vc("0x28"),(t=>t&&t[0]?t[0][Vc("0x2d")]:"")),this[Vc("0xd")](Vc("0x44")).to(this,"descriptionParts",this,Vc("0x20"),((t,e)=>{let n="";for(const e of t)n+=Vc("0x51")+zc(e[Vc("0x23")],e[Vc("0x3c")])+"</p>";return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Vc("0x43")]=null,this[Vc("0x8")]=this[Vc("0x4e")](Qo(e,Vc("0x10")),t.icons[Vc("0xc")],Vc("0x1c"),"acceptSuggestion","sw"),this[Vc("0x8")].bind(Vc("0x2f")).to(this,Vc("0x19")),this[Vc("0xe")]=this[Vc("0x4e")](Qo(e,Vc("0x21")),t.icons[Vc("0x34")],Vc("0xa"),Vc("0xb"),"sw"),this[Vc("0xe")][Vc("0xd")](Vc("0x2f")).to(this,Vc("0x31")),this[Vc("0x12")]=new i.UserView(e,this[Vc("0x18")][Vc("0x4")],this[Vc("0x32")]()),this[Vc("0x12")][Vc("0x53")]({attributes:{class:["ck-suggestion__user","ck-annotation__user"]}}),this[Vc("0xf")](this[Vc("0x3e")]())}[Vc("0x3e")](){const t=this[Vc("0x36")],e=[{tag:Vc("0x1e"),attributes:{class:[Vc("0x11"),"ck-annotation__info"]},children:[{tag:Vc("0x22"),children:[{text:this.userView[Vc("0x14")]}],attributes:{class:["ck-suggestion__info-name",Vc("0x52")]}},{tag:Vc("0x16"),attributes:{datetime:t.to("authoredAt"),class:[Vc("0x1f"),Vc("0x3b")]},children:[{text:t.to(Vc("0x46"),(t=>this._config[Vc("0x2c")](t)))}]}]},{tag:Vc("0x1e"),attributes:{class:["ck-suggestion__actions",Vc("0x30")]},children:[this[Vc("0x8")],this[Vc("0xe")]]},{tag:Vc("0x1e"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[Vc("0x18")].isExternal&&e.push({tag:Vc("0x1e"),attributes:{class:[Vc("0x48")]},children:[{text:this[Vc("0x38")]()}]});const n={tag:"div",attributes:{class:[Vc("0x26"),t.if(Vc("0x20"),Vc("0x37")),t.to(Vc("0x2d"),(t=>"ck-suggestion-"+t)),this[Vc("0x3")][Vc("0x4f")]&&Vc("0x45")],"data-suggestion-id":this[Vc("0x18")].id,"data-thread-id":this[Vc("0x18")][Vc("0x47")].id,"data-author-id":this._model[Vc("0x4")].id,tabindex:-1},children:[{tag:Vc("0x1e"),attributes:{class:[Vc("0x0"),Vc("0x35")]},children:[this[Vc("0x12")],{tag:"div",attributes:{class:[Vc("0x4b"),"ck-annotation__main"]},children:e}]}]};return this[Vc("0x39")]&&this[Vc("0x4d")]&&(n[Vc("0x33")][Vc("0x2e")](this[Vc("0x39")],this.commentThreadInputView),this[Vc("0x39")][Vc("0x1b")]("editorReady").to(this),this[Vc("0x39")][Vc("0x1b")](Vc("0x1d")).to(this),this[Vc("0x4d")][Vc("0x1b")](Vc("0x2a")).to(this),this[Vc("0x4d")][Vc("0x1b")](Vc("0x1d")).to(this)),n}[Vc("0x50")](){super[Vc("0x50")](),this[Vc("0x43")]=this[Vc("0x2")][Vc("0x1")](Vc("0x1a")),this[Vc("0x43")][Vc("0x40")]=this[Vc("0x44")],this.on("change:description",((t,e,n)=>{this[Vc("0x43")].innerHTML=n}))}[Vc("0x4e")](t,e,n,o,i){const s=new r.ButtonView(this[Vc("0x41")]);return s[Vc("0x27")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Vc("0x53")]({attributes:{class:n}}),s.on(Vc("0x13"),(()=>{this[Vc("0x54")](o,this[Vc("0x18")].id)})),s}[Vc("0x38")](){return Vc("0x4c")===this[Vc("0x18")].attributes[Vc("0x4a")][Vc("0x25")]?Qo(this[Vc("0x41")],Vc("0x7")):Qo(this[Vc("0x41")],Vc("0x3d"))}[Vc("0x32")](){return this[Vc("0x18")].isExternal?"importWord"===this[Vc("0x18")][Vc("0x6")][Vc("0x4a")].source?Qo(this[Vc("0x41")],Vc("0x5"),this[Vc("0x18")][Vc("0x29")][Vc("0x14")]):Qo(this[Vc("0x41")],Vc("0x3a"),this[Vc("0x18")].creator[Vc("0x14")]):null}}function zc(t,e){let n="";return n+=t[Vc("0x24")]("*")[Vc("0x42")](((t,e)=>e%2!=0?Vc("0x15")+Wc(t)+"</span>":Wc(t))).join(""),e&&(n+=Vc("0x17")+e.value+Vc("0x3f")+e[Vc("0x2b")]+'"></span>'),n}function Wc(t){const e=document[Vc("0x9")](Vc("0x22"));return e[Vc("0x49")]=t,e[Vc("0x40")]}const Kc=["change:previous","getDescriptions","getSuggestion","descriptionParts","getByInnerView","stopListening","isInContent","getRanges","acceptButton","_annotationViews","value","isDirty","trackChanges.SuggestionThreadView","editor","get","view","destroy","comments.maxCommentsWhenCollapsed","separator","SuggestionThreadView","commandName","reduce","CommentsRepository","_handleSuggestionControllerDelayed","Discard all selected suggestions","push","Accept all selected suggestions","from","_suggestionToController","isMultiRange","head","suggestionUnloaded","getMarkers","acceptSelectedSuggestions","Accept all suggestions","change:activeAnnotations","getMarkerNames","set","editing","createAnnotation","_updateController","suggestionLoaded","acceptAllSuggestions","listenTo","delete","trackChanges","filter","getAllAdjacentSuggestions","CommentView","values","type","bind","Annotations","EditorAnnotations","_descriptionFactory","mainView","TrackChangesEditing","trackChanges.disableComments","remove","registerAnnotation","_createUIButton","init","isOn","comments.maxThreadTotalWeight","lowest","activeAnnotations","locale","Discard all suggestions","buttonView","model","createCommentThreadController","has","toMany","isEnabled","keys","componentFactory","arrowView","add","source","comments.maxCommentCharsWhenCollapsed","suggestion-","config","_refreshActiveMarkers","actionView","_destroyController","comments","focus","clear","execute","size","some","discardSelectedSuggestions","pluginName","discardButton","commentThread","createAnnotationView","CommentsUI","unbind","getJoined","_bindAnnotationToEditors","addComment","commands","previous","_disableComments","button","_handleControllerBuffer","TrackChangesUI","_viewToController","discardAllSuggestions","_initializeController","plugins","_unbindEditors"];var qc,Xc;qc=Kc,Xc=475,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","Annotations","EditorAnnotations"]}static get[$c("0x41")](){return $c("0x4f")}constructor(t){super(t),this[$c("0x1")]=new Map,this[$c("0x50")]=new Map,this[$c("0x5e")]=new Map,this[$c("0x4e")]=new Map;const e=this[$c("0x62")].config;e.define($c("0x61"),Hc),e.define("trackChanges.disableComments",!1),this[$c("0x4c")]=e[$c("0x63")]($c("0x1e"))}[$c("0x6c")](t,e){0===this[$c("0x4e")][$c("0x3e")]&&setTimeout((()=>{for(const[t,e]of this[$c("0x4e")]){const n=this._suggestionToController[$c("0x2c")](t);n||e?n&&e&&this[$c("0x39")](t):this._initializeController(t)}this.editor[$c("0x53")].get($c("0x1a")).refreshSelectedViews(),this[$c("0x37")](),this[$c("0x4e")][$c("0x3c")]()}),10),this._handleControllerBuffer.set(t,e)}[$c("0x22")](){const t=this[$c("0x62")],e=t[$c("0x53")][$c("0x63")]("TrackChangesEditing"),n=t[$c("0x53")].get("Annotations"),o=t[$c("0x53")][$c("0x63")]($c("0x1a")),r=t[$c("0x53")].get($c("0x6b"));t.ui[$c("0x30")][$c("0x32")]("trackChanges",(t=>this[$c("0x21")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array.from(this[$c("0x1")])){const o=e[$c("0x14")](),r=[];for(const t of o){if(!t[$c("0x5b")])continue;if(t[$c("0x2")]){r[$c("0x6e")](...t[$c("0x5c")]());continue}const e=t.getFirstRange();if(r.length>0){const t=r[0][$c("0x47")](e);if(t){r[0]=t;continue}}r[$c("0x6e")](e)}t[$c("0x6e")]([n.view,r])}return t})),this.listenTo(e,$c("0xe"),((t,e)=>{this.listenTo(e,"change:previous",((t,n,o,r)=>{e[$c("0x5b")]&&(null==o?(this._updateController(r[$c("0x3")]),this[$c("0x6c")](e,!1)):(this[$c("0xd")](o.head),null==r&&this._handleSuggestionControllerDelayed(e,!0)))})),null!==e[$c("0x4b")]?this._updateController(e[$c("0x3")]):this._handleSuggestionControllerDelayed(e,!1)})),this[$c("0x10")](e,$c("0x4"),((t,e,n)=>{this[$c("0x5a")](e,$c("0x55")),this[$c("0x4e")][$c("0x11")](e),this._suggestionToController[$c("0x2c")](e)&&this[$c("0x39")](e),n&&this._updateController(n.head)})),this.listenTo(e,"suggestionChanged",((t,e)=>{this[$c("0xd")](e)})),this[$c("0x10")](n,$c("0x8"),(()=>{this[$c("0x37")]()})),this.listenTo(r,$c("0x49"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const r=e[$c("0x57")](n);this[$c("0x1")][$c("0x63")](r)[$c("0x64")][$c("0x3b")]()}),{priority:$c("0x25")})}[$c("0x37")](){const t=this[$c("0x62")][$c("0x53")].get($c("0x19")),e=this.editor.plugins[$c("0x63")]("TrackChangesEditing"),n=Array[$c("0x0")](t[$c("0x26")],(t=>t.innerView))[$c("0x13")]((t=>this[$c("0x50")].has(t))),o=[];for(const t of n){const e=this._viewToController.get(t)[$c("0x2a")][$c("0x14")]();o.push(...e[$c("0x6a")](((t,e)=>[...t,...e[$c("0x9")]()]),[]))}e.activeMarkers=o}[$c("0x21")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this.editor[$c("0x4a")][$c("0x63")]($c("0x12")),i=Qo(t,"Track changes");n[$c("0x29")].set({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[$c("0x29")][$c("0x18")]("isOn").to(o,$c("0x5f")),n[$c("0x29")].on($c("0x3d"),(()=>{o.execute(),this[$c("0x62")][$c("0xb")][$c("0x64")].focus()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:i,commandName:$c("0x12")}},{type:$c("0x67")},{type:$c("0x4d"),model:{withText:!0,label:Qo(t,$c("0x7")),commandName:$c("0xf")}},{type:"button",model:{withText:!0,label:Qo(t,$c("0x6f")),commandName:$c("0x6")}},{type:$c("0x4d"),model:{withText:!0,label:Qo(t,$c("0x28")),commandName:$c("0x51")}},{type:"button",model:{withText:!0,label:Qo(t,$c("0x6d")),commandName:$c("0x40")}}];for(const t of x){let e={type:"separator"};if(t[$c("0x2a")]){const n=new r.Model(t.model),o=this.editor[$c("0x4a")][$c("0x63")](n[$c("0x69")]);n.bind($c("0x23"),"isEnabled").to(o,$c("0x5f"),$c("0x2e")),e={type:t[$c("0x17")],model:n}}s[$c("0x32")](e)}(0,r.addListToDropdown)(n,s);const a=x[$c("0x13")]((t=>null!=t[$c("0x2a")])).map((t=>this[$c("0x62")].commands.get(t[$c("0x2a")][$c("0x69")]))),c=n[$c("0x29")];return c.actionView.unbind($c("0x2e")),c.arrowView[$c("0x46")]($c("0x2e")),c[$c("0x38")][$c("0x18")]("isEnabled").to(o,$c("0x2e")),c[$c("0x31")][$c("0x18")]($c("0x2e"))[$c("0x2d")](a,"isEnabled",((...t)=>t[$c("0x3f")]((t=>t)))),n.on("execute",(t=>{this[$c("0x62")].execute(t[$c("0x33")][$c("0x69")]),this[$c("0x62")][$c("0xb")][$c("0x64")][$c("0x3b")]()})),n}[$c("0x52")](t){const e=this[$c("0x62")],n=e[$c("0x36")],o=e[$c("0x53")][$c("0x63")]($c("0x19")),r=e[$c("0x53")][$c("0x63")]($c("0x6b")),s=e.plugins[$c("0x63")]($c("0x1a")),x=e[$c("0x53")][$c("0x63")](i.Users).me,a=n.get($c("0x12"))[$c("0x68")],{CommentsListView:c,CommentThreadInputView:l}=e[$c("0x53")][$c("0x63")]($c("0x45"));let u,d;this._annotationViews.has(t.id)?(d=this[$c("0x5e")][$c("0x63")](t.id),u=d[$c("0x1c")]):(u=new a(e[$c("0x27")],t,x,{disableComments:this[$c("0x4c")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n[$c("0x63")]($c("0x66")),maxThreadTotalWeight:n[$c("0x63")]($c("0x24")),maxCommentCharsWhenCollapsed:n[$c("0x63")]($c("0x34")),formatDateTime:(0,i.getDateTimeFormatter)(n[$c("0x63")]($c("0x27"))),CommentView:n[$c("0x63")]($c("0x3a"))[$c("0x15")],CommentsListView:c,CommentThreadInputView:l}),u[$c("0x5d")].on("execute",(()=>{e[$c("0xb")][$c("0x64")].focus()})),u[$c("0x42")].on($c("0x3d"),(()=>{e[$c("0xb")][$c("0x64")][$c("0x3b")]()})),d=o[$c("0x44")](this.editor.locale,u),d[$c("0x18")]($c("0x60")).to(u,$c("0x60")),d[$c("0x18")]("length").to(u),d[$c("0x18")]("type").to(u,"type",(t=>"suggestion-"+t)),this._annotationViews[$c("0xa")](t.id,d));const g=r[$c("0x2b")](t[$c("0x43")],u),f=new Oc(e,t,u,g),m=t.getAllAdjacentSuggestions()[$c("0x13")]((t=>t[$c("0x5b")]));u.descriptionParts=e[$c("0x53")][$c("0x63")]($c("0x1d"))[$c("0x1b")][$c("0x56")](m),this[$c("0x1")][$c("0xa")](t,f),this[$c("0x50")][$c("0xa")](u,f);const h=o[$c("0xc")]({view:d,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[$c("0x13")]((t=>t[$c("0x5b")]));for(const t of o)n[$c("0x6e")](...t[$c("0x5")]());return(0,i.getAllMarkersDomElementsSorted)(e[$c("0xb")],n)},type:()=>$c("0x35")+f.view[$c("0x17")]});r[$c("0x48")](u,h),o[$c("0x32")](h),s[$c("0x20")](h)}[$c("0x39")](t){const e=this[$c("0x62")][$c("0x53")][$c("0x63")]($c("0x6b")),n=this[$c("0x62")][$c("0x53")].get("Annotations"),o=this._suggestionToController[$c("0x63")](t),r=o[$c("0x64")],i=n[$c("0x59")](r);e[$c("0x54")](r),i&&n[$c("0x1f")](i),this._suggestionToController[$c("0x11")](t),this[$c("0x50")][$c("0x11")](r),o[$c("0x65")]()}[$c("0xd")](t){if(!t[$c("0x5b")]||!this[$c("0x1")].has(t))return;const e=this[$c("0x62")][$c("0x53")].get($c("0x1d")),n=this._suggestionToController[$c("0x63")](t),o=t[$c("0x14")]();n[$c("0x64")][$c("0x58")]=e[$c("0x1b")][$c("0x56")](o)}[$c("0x65")](){for(const t of this[$c("0x1")][$c("0x2f")]())this[$c("0x39")](t);for(const t of this[$c("0x5e")][$c("0x16")]())t[$c("0x1c")].destroy();super.destroy()}}var Yc,Jc,Qc=["get","editor","plugins","addSuggestion","requires","adapter","getSuggestions","addSuggestionData","Comments","pluginName","getSuggestion"];Yc=Qc,Jc=291,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("0xa")](){return[hc,Zc,tl("0x3")]}static get[tl("0x4")](){return"TrackChanges"}set adapter(t){this[tl("0x7")].plugins[tl("0x6")](hc)[tl("0x0")]=t}get adapter(){return this[tl("0x7")][tl("0x8")][tl("0x6")](hc)[tl("0x0")]}[tl("0x9")](t){return this.editor.plugins[tl("0x6")](hc)[tl("0x2")](t)}[tl("0x1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[tl("0x7")][tl("0x8")].get(hc)[tl("0x1")]({skipNotAttached:t,toJSON:e})}[tl("0x5")](t){return this.editor[tl("0x8")].get(hc)[tl("0x5")](t)}}const nl=["model","track-changes-data-invalid-editor-creator","getUser","Users","reduce","config","addSuggestionData","define","get","pluginName","TrackChangesData","getSuggestions","Pagination","editor","_adapter","constructor","div","end","document","name","editorCreator","TrackChangesDataGetter","data","addUser","TrackChangesEditing","CommentsRepository","push","plugins","trackChangesData.editorCreator","getDataWithAcceptedSuggestions","trackChangesData","createDocumentFragment","getRootNames","init","function","users","discardAllSuggestions","set","getFullData","getDataWithDiscardedSuggestions","appendChild"];var ol,rl;ol=nl,rl=132,function(t){for(;--t;)ol.push(ol.shift())}(++rl);const il=function(t,e){return nl[t-=0]},sl=[il("0x3")];class xl extends t.Plugin{static get requires(){return[hc]}static get[il("0x0")](){return il("0x1")}[il("0x18")](){const t=this[il("0x4")];if(t.config[il("0x27")](il("0x13"),(e=>{const n=t[il("0x20")][il("0x9")][il("0x17")]()[il("0x24")](((t,e)=>(t[e]="",t)),{});return t[il("0x6")].create(n,e)})),il("0x19")!=typeof t[il("0x25")][il("0x28")](il("0x15"))[il("0xb")])throw new e.CKEditorError(il("0x21"))}[il("0x14")](t){return ll(this[il("0x4")],!0,t)}[il("0x1e")](t){return ll(this[il("0x4")],!1,t)}}class al extends t.Plugin{static get pluginName(){return il("0xc")}constructor(t){super(t),this.result=il("0x8")}[il("0x18")](){this.editor[il("0x12")][il("0x28")](il("0x10"))[il("0x5")]={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[il("0x4")][il("0x12")][il("0x28")](il("0xf"))[il("0x5")]=null}}function cl(t){return void 0!==t.getRootsAttributes}async function ll(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,sl);o.plugins[il("0x11")](hc,al),o.rootsAttributes=cl(t)?t.getRootsAttributes():void 0;const r=document[il("0x16")](),s=t[il("0x25")].get(il("0x15"))[il("0xb")],x=await s(o,(()=>function(t){const e=document.createElement(il("0x7"));return t[il("0x1f")](e),e}(r)));!function(t,e){const n=t[il("0x20")].document[il("0x17")]().reduce(((e,n)=>(e[n]=t[il("0xd")][il("0x28")]({rootName:n}),e)),{}),o=t.plugins[il("0x28")](il("0x23"))[il("0x1a")].map((t=>({id:t.id,name:t[il("0xa")]}))),r=t[il("0x12")][il("0x28")](il("0xf"))[il("0x2")]({skipNotAttached:!0,toJSON:!0}),i=e.plugins[il("0x28")](il("0x23")),s=e[il("0x12")][il("0x28")](il("0xf"));for(const t of o)i[il("0x22")](t.id)||i[il("0xe")](t);i.me||i.useAnonymousUser();for(const t of r)s[il("0x26")](t);e.data[il("0x1c")](n)}(t,x),x.execute(e?"acceptAllSuggestions":il("0x1b"));const a=cl(x)?x[il("0x1d")](n):x.data[il("0x28")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var 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:()=>Bc,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=["editor","forceDisabled","clearForceDisabled","_enabledCommands","TrackChangesCommand","commands","refresh","affectsData","value","isEnabled","has","_disableUnsupportedCommands","_isEnabledBasedOnSelection"];var c,l;c=a,l=230,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[u("0x7")]=e,this[u("0xc")]=!1,this[u("0xa")](),this[u("0x3")]=!1}[u("0xa")](){this[u("0x0")]=!0}execute(){this.value=!this[u("0xc")],this[u("0xc")]?this[u("0x2")]():this._enableCommands()}_disableUnsupportedCommands(){for(const t of this[u("0x4")].commands[u("0x9")]())t[u("0xb")]&&!this[u("0x7")][u("0x1")](t)&&t[u("0x5")](u("0x8"))}_enableCommands(){for(const t of this[u("0x4")][u("0x9")][u("0x9")]())t.affectsData&&!this._enabledCommands[u("0x1")](t)&&t[u("0x6")](u("0x8"))}}const g=["TrackChangesEditing","plugins","canEditAt","_isEnabledBasedOnSelection","model","isEnabled","refresh","get","getRanges","_suggestions","editor"];var f,m;f=g,m=393,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._suggestions=e,this[h("0x9")](),this[h("0x6")]=!1}[h("0x9")](){this[h("0x8")]=!0}execute(t){const n=this[h("0x1")][h("0xa")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x0")]();this[h("0x2")][h("0x7")][h("0x5")](o)&&this[h("0x2")][h("0x4")][h("0xa")](h("0x3")).acceptSuggestion(n)}}const b=["_suggestions","isEnabled","execute","track-changes-discard-suggestion-not-found","getRanges","plugins","editor","_isEnabledBasedOnSelection","model","get"];var E,_;E=b,_=306,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("0x4")]=e,this.refresh(),this[T("0x1")]=!1}refresh(){this[T("0x5")]=!0}[T("0x6")](t){const n=this[T("0x4")].get(t);if(!n)throw new e.CKEditorError(T("0x7"),this);const o=n[T("0x8")]();this[T("0x0")][T("0x2")].canEditAt(o)&&this[T("0x0")][T("0x9")][T("0x3")]("TrackChangesEditing").discardSuggestion(n)}}const C=["getRanges","createPositionBefore","isTouching","length","next","from","isIntersecting","splice","value","createPositionAfter","isMultiRange","createPositionAt","isObject","isArray","sort","end","type","createRange","deletion","schema","replace","execute","isInContent","color","map"];var A,k;A=C,k=476,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0xd")](((t,e)=>I("0x11")==t[I("0xf")]&&"deletion"!=e[I("0xf")]?-1:I("0x11")!=t[I("0xf")]&&"deletion"==e[I("0xf")]?1:0))}function S(t,e){let n,o=0;const r=[],i=e[I("0x12")];for(;o<t[I("0x2")];){const s=t[o],x=t[o+1];n||(n=e[I("0x0")](s)),v(e,s,x)||(r.push(e[I("0x10")](n,i[I("0xb")](s)?e[I("0x8")](s):e[I("0xa")](s,I("0xe")))),n=null),o++}return r}function v(t,e,n){if(!n)return!1;const o=t[I("0x8")](e),r=t[I("0x0")](n);return o[I("0x1")](r)}function N(t,e,n){for(;n[I("0x2")];){const o=n[I("0x6")](0,100);t.change((()=>{for(const t of o)t[I("0x15")]&&e[I("0x14")](t.id)}))}}const L=["from","editor","canEditAt","isEnabled","_suggestions","values","isInContent","refresh","_command","model"];var M,O;M=L,O=410,function(t){for(;--t;)M.push(M.shift())}(++O);const w=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[w("0x8")]=e,this[w("0x4")]=n,this[w("0x7")](),this._isEnabledBasedOnSelection=!1}refresh(){const t=Array[w("0x0")](this._suggestions[w("0x5")]()).some((t=>t[w("0x6")]));this.isEnabled=this[w("0x8")][w("0x3")]&&t}execute(){const t=R(Array[w("0x0")](this[w("0x4")][w("0x5")]()));for(const e of t){const t=e.getRanges();if(!this[w("0x1")].model[w("0x2")](t))return}N(this[w("0x1")][w("0x9")],this[w("0x8")],t)}}const D=["_isEnabledBasedOnSelection","_selectedSuggestions","size","editor","model","_command","canEditAt","selection","isEnabled","refresh","from","_suggestions"];var P,B;P=D,B=315,function(t){for(;--t;)P.push(P.shift())}(++B);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x2")]=e,this._suggestions=n,this[U("0xa")]=new Set,this[U("0x6")](),this[U("0x9")]=!1}refresh(){const t=this[U("0x0")][U("0x1")].document[U("0x4")],e=Array.from(this[U("0x8")].values());this._selectedSuggestions=function(t,e){const n=Array[I("0x4")](t.getRanges()),o=new Set;for(const r of e)if(r[I("0x15")])for(const e of n)for(const n of r[I("0x18")]())(e[I("0x5")](n)||t.isCollapsed&&!r[I("0x9")]&&r[I("0x3")]&&n.end[I("0x1")](e.start))&&o.add(r);return o}(t,e),this[U("0x5")]=this[U("0x2")][U("0x5")]&&!!this._selectedSuggestions[U("0xb")]}execute(){const t=R(Array[U("0x7")](this[U("0xa")]));for(const e of t){const t=e.getRanges();if(!this[U("0x0")].model[U("0x3")](t))return}N(this[U("0x0")].model,this._command,t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(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=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const $=function(t,e){var n=this.__data__,o=H(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function X(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])}}X.prototype.clear=G,X.prototype.delete=W,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const Z=X;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,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt: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 St(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(Object,"create");const Ot=function(){this.__data__=Mt?Mt(null):{},this.size=0};const wt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.call(e,t)};const 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=Ot,jt.prototype.delete=wt,jt.prototype.get=Dt,jt.prototype.has=Bt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=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 Ht(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 $t=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 Xt(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])}}Xt.prototype.clear=Vt,Xt.prototype.delete=Wt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Zt=Xt;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)&&V(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,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Se&&Se.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 Oe=Object.prototype;const we=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Oe)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!we(t))return De(t);var e=[];for(var n in Object(t))Pe.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):Be(t)};const Ge=function(t,e){return t&&ie(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=we(t),n=[];for(var o in t)("constructor"!=o||!e&&He.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,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?ot.Buffer:void 0,Ze=Xe?Xe.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),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Sn=Rn;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 On=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var wn=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,wn.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=rt?rt.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.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 On(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 Bn(t)}};var Gn=Object.create;const Vn=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 Hn=function(t){return"function"!=typeof t.constructor||we(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var $n=Se&&Se.isSet;const Xn=$n?Ae($n):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=Sn(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?{}:Hn(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),Xn(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 Ro=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 So=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 V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=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=Ro(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 Oo=Object.prototype.hasOwnProperty;const wo=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:Oo.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]",Po="[object Object]",Bo=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,r,i){var s=ge(t),x=ge(e),a=s?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Po:a)==Po,u=(c=c==Fo?Po:c)==Po,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)?Ro(t,e,n,o,r,i):Mo(t,e,a,n,o,r,i);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),f=u&&Bo.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),wo(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 Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=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:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},$o=["isMultiRange","set","suggestion:","type","add","size","discard","_model","createdAt","clear","getRange","getMultiRangeId","start","_onAccept","isIntersectingWithRange","nodeBefore","onDiscard","creator","next","_saved","previous","accept","getRanges","addRange","@external","data","removeMarkers","getMarkerNames","getItems","_markerNames","attributes","subType","commentThread","isExternal","addMarkerName","from","authoredAt","setAttribute","getFirstMarker","onAccept","push","delete","substr","getMarkers","removeMarker","length","markers","isInContent","decorate","getFirstRange","_onAttributesChange","change","head","hasComments","author","_onDiscard","map"];var Xo,Zo;Xo=$o,Zo=442,function(t){for(;--t;)Xo.push(Xo.shift())}(++Zo);const Yo=function(t,e){return $o[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Yo("0x11")]=e[Yo("0x11")],this[Yo("0x2d")]=e[Yo("0x2d")]||null,this.author=e[Yo("0xb")],this[Yo("0x1f")]=e.creator||e.author,this[Yo("0x2f")]=Boolean(e[Yo("0x2c")]&&e[Yo("0x2c")][Yo("0x26")]),this.data=null,this[Yo("0x15")]=t,this[Yo("0x1b")]=e[Yo("0x35")],this[Yo("0xc")]=e[Yo("0x1e")],this[Yo("0x7")]=e.onAttributesChange,this[Yo("0x2b")]=new Set,this[Yo("0x16")]=null,this.set(Yo("0x32"),null),this[Yo("0xf")](Yo("0x2c"),e[Yo("0x2c")]||{}),this.set(Yo("0x22"),null),this[Yo("0xf")](Yo("0x20"),null),this.set(Yo("0x2e"),null),this.set(Yo("0x21"),!1),this[Yo("0x5")](Yo("0x23")),this.decorate("discard")}get head(){let t=this;for(;t.previous;)t=t[Yo("0x22")];return t}get[Yo("0xa")](){return!!this[Yo("0x2e")]&&this[Yo("0x2e")].length>0}get[Yo("0xe")](){return 0!=this._markerNames[Yo("0x13")]&&6==Array[Yo("0x31")](this._markerNames)[0].split(":")[Yo("0x2")]}get[Yo("0x4")](){return null!==this.getFirstMarker()}[Yo("0x30")](t){this[Yo("0x2b")][Yo("0x12")](t)}[Yo("0x29")](){return Array[Yo("0x31")](this[Yo("0x2b")])}[Yo("0x0")](){return this[Yo("0x29")]()[Yo("0xd")]((t=>this[Yo("0x15")][Yo("0x3")].get(t))).filter((t=>t))}[Yo("0x34")](){return this[Yo("0x0")]()[0]||null}[Yo("0x28")](){this[Yo("0x15")][Yo("0x8")]((t=>{for(const e of this.getMarkers())t[Yo("0x1")](e)})),this[Yo("0x2b")][Yo("0x17")]()}[Yo("0x1")](t){this[Yo("0x15")][Yo("0x8")]((e=>{e[Yo("0x1")](t)})),this[Yo("0x2b")][Yo("0x37")](t)}[Yo("0x25")](t){const e=Yo("0x10")+this[Yo("0x11")]+":"+this[Yo("0x2d")]+":"+this.id+":"+this[Yo("0x1f")].id+":"+Jo[Yo("0x19")]();this[Yo("0x30")](e),this._model[Yo("0x8")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x1c")](t){for(const e of this[Yo("0x24")]())if(e.isIntersecting(t))return!0;return!1}[Yo("0x24")](){return this[Yo("0x0")]()[Yo("0xd")]((t=>t[Yo("0x18")]()))}getItems(){return this[Yo("0x24")]().reduce(((t,e)=>[...t,...e[Yo("0x2a")]()]),[])}[Yo("0x6")](){var t;return(null===(t=this[Yo("0x34")]())||void 0===t?void 0:t[Yo("0x18")]())||null}getContainedElement(){const t=this.getRanges();if(1!=t[Yo("0x2")])return null;const e=t[0],n=e[Yo("0x1a")].nodeAfter,o=e.end[Yo("0x1d")];return n instanceof s.Element?n!=o?null:n:null}[Yo("0x23")](){this[Yo("0x1b")](this.getRanges(),this[Yo("0x27")],this.attributes),this[Yo("0x28")]()}[Yo("0x14")](){this[Yo("0xc")](this[Yo("0x24")](),this[Yo("0x27")],this[Yo("0x2c")]),this[Yo("0x28")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Yo("0x9")];for(;e;)t[Yo("0x36")](e),e=e[Yo("0x20")];return t}[Yo("0x33")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Yo("0x2c")])||(this[Yo("0x2c")]=n,this[Yo("0x7")](n))}removeAttribute(t){const e=eo(this[Yo("0x2c")]);qo(e,t),Go(e,this[Yo("0x2c")])||(this.attributes=e,this[Yo("0x7")](this[Yo("0x2c")]))}toJSON(){return{id:this.id,type:this[Yo("0x2d")]?this.type+":"+this[Yo("0x2d")]:this[Yo("0x11")],authorId:this.creator.id,createdAt:this[Yo("0x16")],hasComments:this[Yo("0xa")],data:this[Yo("0x27")],attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)()[Yo("0x38")](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=["function","insertion","has","$textProxy","_handleRenameSuggestionDescription","quantity","*Remove format:* %0","join","element","registerElementLabel","type","removeContainer","REPLACE_TEXT","registerDescriptionCallback","$1 $2","match","addFormat","end","normal","_customCallbacks","newValue","pop","previousSibling","length","elementStart","attribute","getItemLabel","data","isObject","removeFormat","_itemLabelsCallbacks","text","_schema","addEmptyContainer","_itemLabels","getFirstRange","ELEMENT_SPACE","push","deletion","remove","key","name","map","skip","set","start","subType","_handleInsertRemoveSuggestionDescription","_handleAttributeSuggestionDescription","isInContent","Container","*Insert:* %0","_handleCustomCallbackDescription","format","Object","_addDescriptionItems","_attributeLabels","add","checkChild","*Split:* %0","EmptyContainer","*Set format:* %0","*Merge:* %0","isEqual","*Remove:* %0","softBreak","isEmpty","nextSibling","$text","replace","_resolveDescriptionItems","elementEnd","_locale","indexOf","item","get"];var er,nr;er=tr,nr=229,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("0x12")]=[],this._itemLabels=new Map,this[or("0x1d")]=[],this[or("0x37")]=new Map,this[or("0x1f")]=t,this._locale=e}getDescriptions(t){const e=[],n=new Set,o=new Set;for(let r=0;r<t.length;r++){const i=t[r];if(!i[or("0x30")])continue;const s=this[or("0x33")](i);if(s){if(null!=i[or("0x2d")]){if(n.has(i[or("0x2d")]))continue;n[or("0x38")](i[or("0x2d")])}e[or("0x24")](s)}else if(or("0x18")!=i[or("0x9")])or("0x0")!=i.type&&or("0x25")!=i[or("0x9")]||this[or("0x2e")](e,i,t[r+1]);else{const t=i[or("0x1a")][or("0x27")];if(o[or("0x1")](t))continue;o.add(i[or("0x1a")][or("0x27")]),t==mc?this[or("0x3")](e,i):this._handleAttributeSuggestionDescription(e,i)}}return this[or("0x45")](e)}[or("0xc")](t){this._customCallbacks[or("0x24")](t)}[or("0x8")](t,n,o=e.priorities[or("0x11")]){or("0x4b")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[or("0x21")][or("0x2b")](t,n)}registerAttributeLabel(t,e){this[or("0x37")].set(t,e)}[or("0x19")](t,e=1){let n;for(const e of this[or("0x1d")])if(e.matchingCallback(t)){n=e.label;break}return n||(n=this[or("0x21")].get(t[or("0x28")])),n?n(e):1!==e?e+" "+t[or("0x28")]+"s":""+t[or("0x28")]}[or("0x36")](t,e){const n=e[or("0x22")]().getWalker(),o="insertion"==e.type?or("0x38"):or("0x26");for(const e of n){const r=e.item,i=t[t[or("0x16")]-1];if(r.is(or("0x2")))i&&i[or("0x9")][or("0x48")](or("0x31"))>-1&&t[or("0x14")](),i&&or("0x1e")==i[or("0x9")]?i[o]+=r[or("0x1a")]:t[or("0x24")]({type:or("0x1e"),add:"add"==o?r[or("0x1a")]:"",remove:or("0x26")==o?r.data:""});else if(this[or("0x1f")][or("0x1b")](r)){const s=r;if(i&&i[or("0x9")].indexOf("Container")>-1&&t.pop(),or("0x46")==e.type)continue;i&&i[or("0x9")]==o+or("0x35")&&i[or("0x7")][or("0x28")]==s.name?i[or("0x4")]++:t[or("0x24")]({type:o+or("0x35"),element:s,quantity:1}),n[or("0x2a")]((t=>!(or("0x46")==t[or("0x9")]&&t[or("0x49")]==r)))}else if(this[or("0x1f")][or("0x39")](r,or("0x43"))||r.is("element",or("0x40"))){const n=r;if(or("0x38")==o&&or("0x17")==e.type||or("0x26")==o&&or("0x46")==e[or("0x9")])continue;if(i&&-1==i.type[or("0x48")](or("0x31"))){"text"==i[or("0x9")]&&(i[o]+="\n");continue}let s;if(s="add"==o?n[or("0x42")]&&!this[or("0x1f")][or("0x1b")](n[or("0x42")])?n[or("0x42")]:null:n.previousSibling&&!this._schema[or("0x1b")](n[or("0x15")])?n.previousSibling:null,n[or("0x41")]||s&&s[or("0x41")]){const e=s&&s[or("0x41")]?s:n;i&&i[or("0x9")]==o+"EmptyContainer"&&i[or("0x7")].name==e[or("0x28")]?i[or("0x4")]++:t[or("0x24")]({type:o+or("0x3b"),element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[or("0x45")](t){const e=this._locale,n=[],o=[],r=[];for(const i of t)switch(i[or("0x9")]){case or("0x1e"):if(i[or("0x38")]=i.add[or("0x44")](/(\S)\u000A+(\S)/g,or("0xd"))[or("0x44")](/\u000A/g,""),i[or("0x26")]=i[or("0x26")].replace(/(\S)\u000A+(\S)/g,or("0xd"))[or("0x44")](/\u000A/g,""),""!=i[or("0x38")]&&""!=i[or("0x26")]){n[or("0x24")]({type:"replace",content:Qo(e,or("0xb"),['"'+i.remove+'"','"'+i.add+'"'])});continue}if(null!=i[or("0x38")][or("0xe")](/^ +$/)){n.push({type:or("0x0"),content:Qo(e,or("0x32"),Qo(e,or("0x23"),i[or("0x38")][or("0x16")]))});continue}if(null!=i[or("0x26")].match(/^ +$/)){n.push({type:"deletion",content:Qo(e,or("0x3f"),Qo(e,or("0x23"),i[or("0x26")].length))});continue}if(""!=i[or("0x38")]){n[or("0x24")]({type:or("0x0"),content:Qo(e,or("0x32"),'"'+i[or("0x38")]+'"')});continue}n[or("0x24")]({type:or("0x25"),content:Qo(e,"*Remove:* %0",'"'+i.remove+'"')});continue;case or("0x20"):case"addObject":n[or("0x24")]({type:"insertion",content:Qo(e,or("0x32"),this[or("0x19")](i[or("0x7")],i.quantity))});continue;case"removeEmptyContainer":case"removeObject":n[or("0x24")]({type:or("0x25"),content:Qo(e,"*Remove:* %0",this[or("0x19")](i[or("0x7")],i[or("0x4")]))});continue;case"addContainer":n[or("0x24")]({type:or("0x0"),content:Qo(e,or("0x3a"),this[or("0x19")](i[or("0x7")],i[or("0x4")]))});continue;case or("0xa"):n.push({type:"deletion",content:Qo(e,or("0x3d"),this[or("0x19")](i[or("0x7")],i[or("0x4")]))});continue;case or("0xf"):o.push(i[or("0x27")]);continue;case or("0x1c"):r[or("0x24")](i[or("0x27")]);continue;default:n[or("0x24")](i)}if(o.length){const t=o[or("0x29")]((t=>this[or("0x37")][or("0x1")](t)?this._attributeLabels[or("0x4a")](t):t))[or("0x6")](", ");n.push({type:"format",content:Qo(this[or("0x47")],or("0x3c"),t)})}if(r[or("0x16")]){const t=r[or("0x29")]((t=>this._attributeLabels[or("0x1")](t)?this._attributeLabels.get(t):t))[or("0x6")](", ");n.push({type:"format",content:Qo(this[or("0x47")],or("0x5"),t)})}return n}[or("0x33")](t){for(const e of this[or("0x12")]){const n=e(t);if(n&&or("0x9")in n)return n}}[or("0x2f")](t,e){const n=e[or("0x1a")],o=void 0===n[or("0x13")]?"removeFormat":or("0xf");t[or("0x24")]({type:o,key:n.key})}_handleRenameSuggestionDescription(t,e){t.push({type:or("0x34"),content:Qo(this._locale,"*Change to:* %0",this[or("0x19")](e[or("0x22")]()[or("0x2c")].nodeAfter,1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this[or("0x36")](t,e),n&&n[or("0x22")]()&&!e[or("0x22")]()[or("0x10")][or("0x3e")](n.getFirstRange()[or("0x2c")])){const n=t[t[or("0x16")]-1],o="insertion"==e[or("0x9")]?"add":"remove";n&&or("0x1e")==n[or("0x9")]&&(n[o]+="\n")}}}const ir=["commands","editor","get","enableCommand","afterInit","showAIAssistant","TrackChangesEditing","plugins"];var sr,xr;sr=ir,xr=304,function(t){for(;--t;)sr.push(sr.shift())}(++xr);const ar=function(t,e){return ir[t-=0]};class cr extends t.Plugin{[ar("0x4")](){const t=this[ar("0x1")],e=t[ar("0x7")][ar("0x2")](ar("0x6"));t[ar("0x0")][ar("0x2")](ar("0x5"))&&e[ar("0x3")](ar("0x5"))}}const lr=["center","registerAttributeLabel","has","FORMAT_ALIGN_TO_LEFT","_descriptionFactory","FORMAT_ALIGN_TO_CENTER","get","plugins","type","formatBlock","locale","editor","left","value","TrackChangesEditing","afterInit","FORMAT_ALIGNMENT","alignment","justify","right","*Format:* %0","commandParams","commandName","_registerLegacyDescription"];var ur,dr;ur=lr,dr=133,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};class fr extends t.Plugin{[gr("0x2")](){const t=this.editor,e=t[gr("0x15")];if(!t[gr("0x12")][gr("0xd")]("AlignmentEditing"))return;const n=t.plugins[gr("0x11")](gr("0x1"));n._enableDefaultAttributesIntegration(gr("0x4"),[],[gr("0x4")]),n[gr("0xf")][gr("0xc")](gr("0x4"),Qo(e,gr("0x3"))),this[gr("0xa")]()}_registerLegacyDescription(){const t=this[gr("0x16")],e=t[gr("0x15")];t[gr("0x12")].get(gr("0x1"))._descriptionFactory.registerDescriptionCallback((t=>{if(gr("0x14")!=t[gr("0x13")])return;const{data:n}=t;if(n&&gr("0x4")==n[gr("0x9")]){const t=n[gr("0x8")][0][gr("0x0")];return{type:"format",content:Qo(e,gr("0x7"),function(t){switch(t){case gr("0x17"):return Qo(e,gr("0xe"));case gr("0x6"):return Qo(e,"FORMAT_ALIGN_TO_RIGHT");case gr("0xb"):return Qo(e,gr("0x10"));case gr("0x5"):return Qo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const mr=["_enableDefaultAttributesIntegration","FORMAT_STRIKETHROUGH","bold","type","editor","toLowerCase","strikethrough","underline","commandParams","FORMAT_UNDERLINE","_registerLegacyDescription","toUpperCase","locale","afterInit","StrikethroughEditing","_descriptionFactory","slice","commandName","TrackChangesEditing","FORMAT_BOLD","BoldEditing","*Remove format:* %0","plugins","FORMAT_SUBSCRIPT","ItalicEditing","CodeEditing","forceValue","FORMAT_","get","UnderlineEditing","FORMAT_ITALIC","subscript","SubscriptEditing","FORMAT_SUPERSCRIPT","has"];var hr,pr;hr=mr,pr=160,function(t){for(;--t;)hr.push(hr.shift())}(++pr);const br=function(t,e){return mr[t-=0]},Er=[br("0x0"),br("0x4"),br("0x9"),br("0x5"),br("0x1d"),br("0xc"),"SuperscriptEditing"];class _r extends t.Plugin{[br("0x1c")](){const t=this[br("0x13")],e=t[br("0x2")][br("0x8")](br("0x21")),n=t[br("0x1b")];for(const o of Er){if(!t[br("0x2")][br("0xe")](o))continue;const r=o[br("0x1f")](0,-7)[br("0x14")](),i=br("0x7")+r[br("0x1a")]();e[br("0xf")](r,[r]),e._descriptionFactory.registerAttributeLabel(r,Qo(n,i))}this[br("0x19")]()}_registerLegacyDescription(){const t=this[br("0x13")],e=t[br("0x1b")],n=t[br("0x2")][br("0x8")](br("0x21"));function o(t,o){n[br("0x1e")].registerDescriptionCallback((n=>{if("formatInline"!=n[br("0x12")])return;const{data:r}=n;return r&&r[br("0x20")]===t?r[br("0x17")][0][br("0x6")]?{type:"format",content:Qo(e,"*Format:* %0",o)}:{type:"format",content:Qo(e,br("0x1"),o)}:void 0}))}o(br("0x11"),Qo(e,br("0x22"))),o("italic",Qo(e,br("0xa"))),o(br("0x16"),Qo(e,br("0x18"))),o("code",Qo(e,"FORMAT_CODE")),o(br("0x15"),Qo(e,br("0x10"))),o(br("0xb"),Qo(e,br("0x3"))),o("superscript",Qo(e,br("0xd")))}}const Tr=["commands","model","markBlockFormat","plugins","_descriptionFactory","has","blockQuote","format","TrackChangesEditing","commandParams","forceValue","locale","document","change","schema","from","afterInit","editor","filter","name","get","checkChild","parent","getSelectedBlocks","enableCommand","commandName","$root"];var yr,Cr;yr=Tr,Cr=301,function(t){for(;--t;)yr.push(yr.shift())}(++Cr);const Ar=function(t,e){return Tr[t-=0]};class kr extends t.Plugin{[Ar("0xc")](){const t=this[Ar("0xd")],e=t[Ar("0x7")];if(!t[Ar("0x1a")][Ar("0x1")]("BlockQuoteEditing"))return;const n=t.plugins[Ar("0x10")](Ar("0x4")),o=this.editor[Ar("0x17")].get(Ar("0x2"));n[Ar("0x14")](Ar("0x2"),((e,r={})=>{const i=this[Ar("0xd")].model[Ar("0x8")].selection,s=r&&void 0!==r[Ar("0x6")]?r[Ar("0x6")]:!o.value;let x=[];if(s){const e=Array[Ar("0xb")](i[Ar("0x13")]())[Ar("0xe")]((t=>Ir(t)||function(t,e){const n=e[Ar("0x11")](t.parent,"blockQuote"),o=e[Ar("0x11")]([Ar("0x16"),Ar("0x2")],t);return n&&o}(t,this.editor.model[Ar("0xa")])));x=S(e,t[Ar("0x18")])}else{const e=Array.from(i.getSelectedBlocks())[Ar("0xe")]((t=>Ir(t)));x=S(e,t.model)}t.model[Ar("0x9")]((()=>{for(const t of x)n[Ar("0x19")](t,{commandName:"blockQuote",commandParams:[{forceValue:s}]})}))})),n[Ar("0x0")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Ar("0x2")==n[Ar("0x15")]){const t=Qo(e,"ELEMENT_BLOCK_QUOTE");return n[Ar("0x5")][0].forceValue?{type:Ar("0x3"),content:Qo(e,"*Set format:* %0",t)}:{type:Ar("0x3"),content:Qo(e,"*Remove format:* %0",t)}}}))}}function Ir(t){return Ar("0x2")==t[Ar("0x12")][Ar("0xf")]}const Rr=["editor","commands","ckbox","afterInit","TrackChangesEditing","get"];var Sr,vr;Sr=Rr,vr=170,function(t){for(;--t;)Sr.push(Sr.shift())}(++vr);const Nr=function(t,e){return Rr[t-=0]};class Lr extends t.Plugin{[Nr("0x1")](){const t=this[Nr("0x4")];t[Nr("0x5")].get(Nr("0x0"))&&t.plugins[Nr("0x3")](Nr("0x2")).enableCommand(Nr("0x0"))}}const Mr=["parent","plugins","forceValue","*Remove format:* %0","codeBlock","CodeBlock","change","rootElement","ELEMENT_CODE_BLOCK","formatBlock","label","language","_descriptionFactory","*Set format:* %0","type","afterInit","locale","toLowerCase","get","markBlockFormat","commandParams","document","value","from","enableCommand","commandName","isLimit","commands","model","registerElementLabel","TrackChangesEditing","selection","registerDescriptionCallback","has","editor","languages","getSelectedBlocks","filter","find","config"];var Or,wr;Or=Mr,wr=290,function(t){for(;--t;)Or.push(Or.shift())}(++wr);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{[Fr("0x5")](){const t=this[Fr("0x18")];if(!t[Fr("0x1f")][Fr("0x17")](Fr("0x23")))return;const e=t[Fr("0x1f")][Fr("0x8")](Fr("0x14")),n=t[Fr("0x6")],o=t[Fr("0x1d")].get(Fr("0x22"))[Fr("0x19")],r=t[Fr("0x11")][Fr("0x8")](Fr("0x22"));e[Fr("0xe")]("indentCodeBlock"),e[Fr("0xe")]("outdentCodeBlock"),e[Fr("0xe")](Fr("0x22"),((n,i={})=>{const s=t[Fr("0x12")],x=t[Fr("0x12")][Fr("0xb")][Fr("0x15")],a=i&&void 0!==i.forceValue?i[Fr("0x20")]:!r[Fr("0xc")];let c;i[Fr("0x1")]||(i.language=o[0].language),c=a?Array[Fr("0xd")](x.getSelectedBlocks())[Fr("0x1b")]((t=>{return Pr(t)||(e=t,n=s.schema,!e.is(Fr("0x25"))&&!n[Fr("0x10")](e)&&n.checkChild(e[Fr("0x1e")],Fr("0x22")));var e,n})):Array[Fr("0xd")](x[Fr("0x1a")]())[Fr("0x1b")]((t=>Pr(t)));const l=S(c,s);s[Fr("0x24")]((()=>{for(const t of l)e[Fr("0x9")](t,{commandName:"codeBlock",commandParams:[{...i,forceValue:a}],formatGroupId:"blockName"})}))})),e[Fr("0x2")][Fr("0x13")]("codeBlock",(t=>Qo(n,Fr("0x26"),t))),e._descriptionFactory[Fr("0x16")]((t=>{if(Fr("0x27")!=t[Fr("0x4")])return;const e=n.t,{data:r}=t;if(!r||Fr("0x22")!=r[Fr("0xf")])return;const i=r[Fr("0xa")][0].language,s=e(o[Fr("0x1c")]((t=>t[Fr("0x1")]===i))[Fr("0x0")])[Fr("0x7")]();return r[Fr("0xa")][0][Fr("0x20")]?{type:"format",content:Qo(n,Fr("0x3"),Qo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Qo(n,Fr("0x21"),Qo(n,Fr("0x26"),1))}}))}}function Pr(t){return Fr("0x22")==t.name}const Br=["has","plugins","enableCommand","editor","CommentsEditing"];var Ur,jr;Ur=Br,jr=161,function(t){for(;--t;)Ur.push(Ur.shift())}(++jr);const Gr=function(t,e){return Br[t-=0]};class Vr extends t.Plugin{afterInit(){const t=this[Gr("0x2")];t.plugins[Gr("0x4")](Gr("0x3"))&&t[Gr("0x0")].get("TrackChangesEditing")[Gr("0x1")]("addCommentThread")}}var Hr=n(181);const zr=["name","element","plugins","mapper","hasAttribute","toViewPosition","nextSibling","listIndent","previousPosition","addHighlight","span","createRangeOn","test","isLimit","isBlock","type","getCustomProperty","markerRange","start","getWalker","toViewElement","listItem","item","markerName","isAtEnd","includes","push","writer","model","ck-suggestion-marker--active","isContent","bindElementToMarker","getItems","schema","getAttribute","TrackChangesEditing"];var Wr,Kr;Wr=zr,Kr=230,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};function $r(t,e,n){const o=[];for(const r of e[qr("0x12")]())r[qr("0x1a")](t)&&o.push(n[qr("0x21")](r));return o}function Xr(t,e,{showActiveMarker:n=!0}={}){const o=t[qr("0x18")].get(qr("0x15"));return(r,i,s)=>{if(!s.consumable[qr("0x22")](i.markerRange,r[qr("0x16")]))return;const x=i.markerRange[qr("0x5")](),a=i[qr("0x3")][qr("0x4")],c=t[qr("0xe")][qr("0x13")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qr("0x8")];d=d||c[qr("0x10")](e);const n=s[qr("0x19")][qr("0x6")](e);if(n&&n[qr("0x2")](qr("0x1f")))return;"elementEnd"==t[qr("0x1")]&&c[qr("0x0")](e)&&!c[qr("0x23")](e)&&(e[qr("0x1c")]||a[qr("0xa")]?l&&l.parent==e||(l=e,f(t.previousPosition),g=!0):u=u||t[qr("0x1e")])}function f(t){const r=s[qr("0xd")].createUIElement(qr("0x20"),{class:"ck-suggestion-marker-"+e}),x=s[qr("0x19")][qr("0x1b")](t);n&&o.activeMarkers[qr("0xb")](i[qr("0x9")])&&s[qr("0xd")].addClass(qr("0xf"),r),s.writer.insert(x,r),s[qr("0x19")][qr("0x11")](r,i[qr("0x9")])}d||g||!u||f(u)}}const Zr=["end","document","setSelection","editing","markerName","lock","fromRange","writer","selection","detach","showSuggestionHighlights","plugins","batch","editor","model","downcastDispatcher","createSelection","delete","commands","removeMarker:suggestion:deletion","enableCommand","options","createRange","deleteForward","modifySelection","forward","rootName","get","unit","TrackChangesEditing","start","addMarker:suggestion:deletion","mapper","high","root","buffer","bind","unbindElementFromMarkerName","getFirstRange","markerNameToElements","unlock","merge"];var Yr,Jr;Yr=Zr,Jr=220,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 requires(){return[Hr.Delete]}init(){const t=this[Qr("0x3")],e=t[Qr("0x1")].get(Qr("0x13"));e[Qr("0xa")](Qr("0x7"));const n=t[Qr("0x8")][Qr("0x11")]("deleteForward");e[Qr("0xa")](Qr("0xd"),((e,o={})=>{const r=t[Qr("0x4")][Qr("0x6")](t[Qr("0x4")][Qr("0x21")][Qr("0x28")]);r.isCollapsed&&t[Qr("0x4")][Qr("0xe")](r,{direction:Qr("0xf"),unit:o[Qr("0x12")]});const i=r[Qr("0x1c")](),x=s.LiveRange[Qr("0x26")](i);let a;e(o),a="$graveyard"==x[Qr("0x18")][Qr("0x10")]?t[Qr("0x4")].createRange(i[Qr("0x14")]):t[Qr("0x4")][Qr("0xc")](x[Qr("0x14")],x[Qr("0x20")]),x[Qr("0x29")](),t.model.enqueueChange(n.buffer[Qr("0x2")],(t=>{n[Qr("0x19")][Qr("0x25")](),t[Qr("0x22")](t[Qr("0xc")](a[Qr("0x20")])),n.buffer[Qr("0x1e")]()}))})),t[Qr("0x23")][Qr("0x5")].on("addMarker:suggestion:deletion",Xr(t,Qr("0x1f")),{priority:Qr("0x17")}),t.data[Qr("0x5")].on(Qr("0x15"),((e,n,o)=>{o[Qr("0xb")][Qr("0x0")]&&Xr(t,Qr("0x1f"),{showActiveMarker:!1})[Qr("0x1a")](this)(e,n,o)}),{priority:Qr("0x17")}),t[Qr("0x23")][Qr("0x5")].on(Qr("0x9"),((t,e,n)=>{const o=n[Qr("0x16")][Qr("0x1d")](e.markerName);if(o)for(const t of o)t.is("uiElement")&&(n[Qr("0x16")][Qr("0x1b")](t,e[Qr("0x24")]),n[Qr("0x27")].remove(t))}),{priority:Qr("0x17")})}}const ei=["has","value","splitListItemAfter","before","type","push","schema","isFirstBlockOfListItem","TrackChangesEditing","map","mergeListItemForward","length","forceValue","isObject","ELEMENT_NUMBERED_LIST","add","_suggestionFactory","multipleBlocks","_descriptionFactory","createPositionAt","findIndex","list.multiBlock","setSelection","format","getSelectedBlocks","editor","from","plugins","expandListBlocksToCompleteList","registerCustomCallback","listIndent","get","nextSibling","containsItem","commandName","listItemId","*Format:* remove from %0","paragraph","markBlockFormat","enableCommand","model","*Indent:* %0","registerDescriptionCallback","ELEMENT_LIST_ITEM","*Change to:* %0","documentList","markMultiRangeBlockFormat","nodeAfter","indentList","deletion","document","toUpperCase","*Merge:* %0","change","bulletedList","getAttribute","DocumentListUtils","*Format:* insert into %0","commandParams","*Outdent:* %0","commands","ELEMENT_BULLETED_LIST","createRange","previousSibling","splitListItemBefore","next","getRanges","_LIST","formatBlock","locale","numberedList","detach","end","fromRange","start","listType","getFirstRange","selection","config","parent","outdentList","slice","formatInline"];var ni,oi;ni=ei,oi=192,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class ii extends t.Plugin{afterInit(){const t=this[ri("0x52")];if(!t[ri("0x1")][ri("0x39")]("DocumentListEditing"))return;const e=t[ri("0x2b")],n=t[ri("0x1")][ri("0x5")](ri("0x41")),o=t.plugins.get(ri("0x1e"));function r(e){return()=>{const r=t[ri("0x22")][ri("0x5")](e);if(r[ri("0x3a")]&&!t[ri("0x34")].get(ri("0x4e")))return void t.execute(ri("0xb"),{});let i=Array[ri("0x0")](t.model[ri("0x18")][ri("0x33")][ri("0x51")]());if(a(e)){i=o[ri("0x2")](i);const t=[];for(const e of i)o[ri("0x40")](e)&&t[ri("0x3e")](e);i=t}t[ri("0xe")][ri("0x1b")]((()=>{n[ri("0x14")](i,{commandName:e,commandParams:[{forceValue:!r[ri("0x3a")]}],formatGroupId:"listType"},[],ri("0x13"))}))}}function i(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[ri("0x4d")]((t=>!t.hasAttribute("listItemId")));return n>-1&&(e=e[ri("0x37")](0,n)),e}(t.model.document.selection[ri("0x51")]()),r=o[o[ri("0x44")]-1],i=t[ri("0xe")][ri("0x3f")].isObject(r)?"after":ri("0x2e"),s=t[ri("0xe")][ri("0x24")](t[ri("0xe")][ri("0x4c")](o[0],ri("0x3c")),t[ri("0xe")].createPositionAt(r,i));t[ri("0xe")][ri("0x1b")]((()=>{n[ri("0xc")](s,{commandName:e,commandParams:[],formatGroupId:ri("0x31")},function(t){const e=new Set;for(const n of t){let t=n[ri("0x6")];for(;t&&t.getAttribute("listIndent")>n[ri("0x1d")](ri("0x4"));)e[ri("0x48")](t),t=t[ri("0x6")]}return Array[ri("0x0")](e)}(o))}))}}function x(e){return()=>{const o=t[ri("0xe")][ri("0x18")][ri("0x33")][ri("0x51")]()[ri("0x27")]().value,r=t.model.createPositionAt(o,ri("0x3c")),i=t.model.createPositionAt(o,0),s=t[ri("0xe")][ri("0x24")](r,i);t.model[ri("0x1b")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:ri("0x31")})}))}}function a(e){const n=t[ri("0x22")][ri("0x5")]("bulletedList")[ri("0x3a")],o=t[ri("0x22")][ri("0x5")](ri("0x2c"))[ri("0x3a")];return"numberedList"===e?n:o}n.enableCommand(ri("0x2c"),r(ri("0x2c"))),n[ri("0xd")]("bulletedList",r(ri("0x1c"))),n[ri("0xd")](ri("0x16"),i("indentList")),n[ri("0xd")](ri("0x36"),i("outdentList")),n[ri("0xd")](ri("0x3b"),x(ri("0x3b"))),n[ri("0xd")](ri("0x26"),x(ri("0x26"))),n._descriptionFactory.registerElementLabel((function(e){const n=!t[ri("0xe")][ri("0x3f")][ri("0x46")](e),o=e[ri("0x25")],r=e[ri("0x6")],i=e[ri("0x1d")](ri("0x9")),s=!o||o.getAttribute("listItemId")!==i,x=!r||r[ri("0x1d")](ri("0x9"))!==i;return n&&Boolean(i)&&s&&x}),(t=>Qo(e,ri("0x11"),t))),n[ri("0x4b")][ri("0x10")]((function(n){if(ri("0x2a")!=n.type&&ri("0x38")!=n[ri("0x3d")])return;const{data:o}=n;if(!o)return;let r,i,s,x;switch(o[ri("0x8")]){case ri("0x1c"):s=o.commandParams[0][ri("0x45")],x=a(o[ri("0x8")]),r=s?"*Format:* insert into %0":"*Format:* remove from %0",!x&&t[ri("0x34")].get("list.multiBlock")||(r="*Change to:* %0"),i={type:ri("0x50"),content:Qo(e,r,Qo(e,ri("0x23")))};break;case ri("0x2c"):s=o[ri("0x20")][0][ri("0x45")],x=a(o[ri("0x8")]),r=ri(s?"0x1f":"0xa"),!x&&t[ri("0x34")][ri("0x5")]("list.multiBlock")||(r=ri("0x12")),i={type:ri("0x50"),content:Qo(e,r,Qo(e,ri("0x47")))};break;case ri("0x16"):r=ri("0xf"),i={type:"format",content:Qo(e,r,Qo(e,ri("0x11")))};break;case ri("0x36"):r=function(t){const e=t[ri("0x32")]();let n=e[ri("0x30")][ri("0x15")];for(;n&&e[ri("0x7")](n);){if(n[ri("0x1d")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(n)?Qo(e,ri("0xa"),Qo(e,"ELEMENT_"+n[ri("0x32")]()[ri("0x30")][ri("0x15")][ri("0x1d")](ri("0x31"))[ri("0x19")]()+ri("0x29"))):Qo(e,ri("0x21"),Qo(e,ri("0x11"))),i={type:ri("0x50"),content:r};break;case"mergeListItemBackward":case ri("0x43"):!1===o[ri("0x4a")]&&(r=ri("0x1a"),i={type:ri("0x17"),content:Qo(e,r,Qo(e,ri("0x11")))})}return i})),n[ri("0x49")][ri("0x3")](ri("0x2a"),"documentList","accept",(function(e,n){const o=[];for(let n of e)n[ri("0x30")][ri("0x15")]===n[ri("0x2e")][ri("0x35")]&&(n=t[ri("0xe")].createRange(t.model.createPositionAt(n[ri("0x30")][ri("0x15")],0))),o[ri("0x3e")](n);t[ri("0xe")][ri("0x1b")]((e=>{const r=t[ri("0xe")][ri("0x18")][ri("0x33")],i=Array[ri("0x0")](r[ri("0x28")]())[ri("0x42")]((t=>s.LiveRange[ri("0x2f")](t)));e[ri("0x4f")](o),t.commands.get(n[ri("0x8")]).refresh(),n.commandParams[ri("0x3e")]({forceDefaultExecution:!0}),t.execute(n[ri("0x8")],...n.commandParams),e.setSelection(i);for(const t of i)t[ri("0x2d")]()}))}))}}const si=["DocumentListUtils","document","listType","listStyle","getListTypeFromListStyleType","toUpperCase","DocumentListPropertiesUtils","enableCommand","listReversed","type","editor","handleListStyleCommand","*Format:* set order to reversed","isListItemBlock","format","bind","formatBlock","commandParams","push","handleListReversedCommand","*Format:* set start index to %0","replace","getAttribute","config","reversed","plugins","_descriptionFactory","afterInit","DocumentListPropertiesEditing","get","styles","markMultiRangeBlockFormat","commandName","registerDescriptionCallback","_getTranslationKeyForListStyle","*Format:* set order to regular","getSelectedBlocks","model","has","ELEMENT_","TrackChangesEditing","change","selection","_getSuggestionBlocksForListStyle","handleListStartCommand","from","formatInline","handleDescriptions","isFirstBlockOfListItem","expandListBlocksToCompleteList","listStart","_getSuggestionBlocks","locale","numbered","startIndex"];var xi,ai;xi=si,ai=151,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0x29")](){if(!this[ci("0x18")][ci("0x27")][ci("0x34")](ci("0x2a")))return;const t=this.editor[ci("0x25")][ci("0x2b")]("list.properties"),e=this.editor[ci("0x27")][ci("0x2b")](ci("0x36"));t[ci("0x2c")]&&e[ci("0x15")](ci("0x11"),this.handleListStyleCommand[ci("0x1d")](this)),t[ci("0x26")]&&e.enableCommand(ci("0x16"),this[ci("0x21")][ci("0x1d")](this)),t[ci("0xd")]&&e[ci("0x15")]("listStart",this[ci("0x3")].bind(this)),e[ci("0x28")][ci("0x2f")](this[ci("0x6")].bind(this))}[ci("0x19")](t,e={}){const n=this[ci("0x18")][ci("0x27")][ci("0x2b")](ci("0x36")),o=this._getSuggestionBlocksForListStyle();this[ci("0x18")].model[ci("0x0")]((()=>{n[ci("0x2d")](o,{commandName:ci("0x11"),commandParams:[{type:e.type}],formatGroupId:ci("0x11")})}))}[ci("0x21")](t,e={}){const n=this[ci("0x18")][ci("0x27")][ci("0x2b")](ci("0x36")),o=this[ci("0x18")][ci("0x27")][ci("0x2b")](ci("0xe")),r=this[ci("0xa")]((t=>o.isListItemBlock(t)&&ci("0xc")===t[ci("0x24")](ci("0x10"))));null!==r&&this[ci("0x18")][ci("0x33")][ci("0x0")]((()=>{n[ci("0x2d")](r,{commandName:ci("0x16"),commandParams:[{reversed:e[ci("0x26")]}],formatGroupId:ci("0x16")})}))}handleListStartCommand(t,e={}){const n=this[ci("0x18")].plugins[ci("0x2b")]("TrackChangesEditing"),o=this[ci("0x18")].plugins.get(ci("0xe")),r=this[ci("0xa")]((t=>o[ci("0x1b")](t)&&"numbered"===t[ci("0x24")]("listType")));null!==r&&this.editor[ci("0x33")].change((()=>{n[ci("0x2d")](r,{commandName:ci("0x9"),commandParams:[{startIndex:e[ci("0xd")]}],formatGroupId:ci("0x9")})}))}[ci("0x6")](t){if(ci("0x1e")!=t[ci("0x17")]&&ci("0x5")!=t[ci("0x17")])return;const e=this[ci("0x18")][ci("0xb")],{data:n}=t;if(!n)return;let o,r;switch(n[ci("0x2e")]){case ci("0x11"):o="*Change to:* %0",r={type:ci("0x1c"),content:Qo(e,o,Qo(e,this[ci("0x30")](n[ci("0x1f")][0][ci("0x17")])))};break;case ci("0x16"):o=n[ci("0x1f")][0].reversed?ci("0x1a"):ci("0x31"),r={type:"format",content:Qo(e,o)};break;case ci("0x9"):o=ci("0x22"),r={type:ci("0x1c"),content:Qo(e,o,n[ci("0x1f")][0][ci("0xd")])}}return r}[ci("0x2")](){const t=this.editor[ci("0x27")].get(ci("0xe"));let e=Array[ci("0x4")](this[ci("0x18")][ci("0x33")].document.selection[ci("0x32")]());return e[ci("0x20")](...t[ci("0x8")](e)),e=[...new Set(e)],e}[ci("0xa")](t){const e=this[ci("0x18")].plugins.get(ci("0xe"));let n=Array[ci("0x4")](this.editor[ci("0x33")][ci("0xf")][ci("0x1")][ci("0x32")]()).filter(t);if(!n.length)return null;n=e[ci("0x8")](n);const o=[];for(const t of n)e[ci("0x7")](t)&&o[ci("0x20")](t);return o}[ci("0x30")](t){return ci("0x35")+this[ci("0x18")][ci("0x27")][ci("0x2b")](ci("0x14"))[ci("0x12")](t)[ci("0x13")]()+"_LIST_"+t[ci("0x13")]()[ci("0x23")](/-/g,"_")}}var ui=n(331);const di=["split","createRange","change","options","detach","writer","commands","fromRange","selection","end","nextSibling","get","plugins","init","markerNameToElements","unbindElementFromMarkerName","fire","high","TrackChangesEditing","markerName","downcastDispatcher","mapper","editor","enter","bind","requires","remove","createPositionAt","model","document","data","removeMarker:suggestion:insertion","getFirstPosition","markInsertion","showSuggestionHighlights","editing","addMarker:suggestion:insertion"];var gi,fi;gi=di,fi=417,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("0xf")](){return[ui.Enter]}[mi("0x3")](){const t=this[mi("0xc")],e=t[mi("0x2")][mi("0x1")](mi("0x8")),n=t[mi("0x21")].get("enter");e.enableCommand(mi("0xd"),(()=>{t.model[mi("0x1d")]((o=>{const r=t[mi("0x12")][mi("0x13")][mi("0x23")],i=r[mi("0x16")](),x=s.LiveRange[mi("0x22")](r.getFirstRange());if(n.enterBlock(o)){const n=t[mi("0x12")][mi("0x11")](i.parent[mi("0x0")],0),r=o[mi("0x1c")](i,n);e[mi("0x17")](r)}else o.setSelection(o.createRange(x[mi("0x24")]));x[mi("0x1f")](),n[mi("0x6")]("afterExecute",{writer:o})}))})),t.editing[mi("0xa")].on(mi("0x1a"),Xr(t,mi("0x1b")),{priority:mi("0x7")}),t[mi("0x19")][mi("0xa")].on(mi("0x15"),((t,e,n)=>{const o=n.mapper[mi("0x4")](e[mi("0x9")]);if(o)for(const t of o)t.hasClass("ck-suggestion-marker-split")&&(n[mi("0xb")][mi("0x5")](t,e[mi("0x9")]),n[mi("0x20")][mi("0x10")](t))}),{priority:mi("0x7")}),t[mi("0x14")].downcastDispatcher.on(mi("0x1a"),((e,n,o)=>{o[mi("0x1e")][mi("0x18")]&&Xr(t,mi("0x1b"),{showActiveMarker:!1})[mi("0xe")](this)(e,n,o)}),{priority:mi("0x7")})}}const pi=["getRange","find","handleFindCommand","enableCommand","_isInDeletionRange","findNext","findByTextCallback","markers","filter","model","FindAndReplaceUtils","get","editor","getIntersection","plugins","item","createRange","replace","start","createPositionAt","getMarkersGroup"];var bi,Ei;bi=pi,Ei=376,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);const _i=function(t,e){return pi[t-=0]};class Ti extends t.Plugin{afterInit(){if(!this.editor[_i("0x10")].has("FindAndReplaceEditing"))return;const t=this[_i("0xe")][_i("0x10")].get("TrackChangesEditing");t.enableCommand(_i("0x3"),this[_i("0x4")].bind(this)),t[_i("0x5")](_i("0x7")),t[_i("0x5")]("findPrevious"),t[_i("0x5")](_i("0x13")),t[_i("0x5")]("replaceAll")}[_i("0x4")](t,e,n={}){const o=this[_i("0xe")][_i("0x10")][_i("0xd")](_i("0xc"));return t((t=>("string"==typeof e?o[_i("0x8")](e,n):e)(t)[_i("0xa")]((e=>!1===this._isInDeletionRange(e,t[_i("0x11")])))),n)}[_i("0x6")](t,e){const n=this.editor.model[_i("0x12")](this[_i("0xe")][_i("0xb")][_i("0x0")](e,t[_i("0x14")]),this[_i("0xe")][_i("0xb")][_i("0x0")](e,t.end));for(const t of this[_i("0xe")][_i("0xb")][_i("0x9")][_i("0x1")]("suggestion:deletion"))if(null!==n[_i("0xf")](t[_i("0x2")]()))return!0;return!1}}const yi=["*Set font background color:* %0","fontBackgroundColor.colors","commandParams","fontBackgroundColor","editor","FontFamilyEditing","value","title","*Reset font family*","FontSize","formatInline","_descriptionFactory","config","*Reset font size*","fontSize.options","plugins","fontColor.colors","model","commandName","fontColor","FORMAT_FONT_COLOR","trim","get","*Set font size:* %0","format","registerDescriptionCallback","find","FontSizeEditing","_registerLegacyDescription","fontFamily","fontSize","_enableDefaultAttributesIntegration","afterInit","FORMAT_FONT_BACKGROUND","FontBackgroundColorEditing","registerAttributeLabel","FontColorEditing","locale","FORMAT_FONT_SIZE","TrackChangesEditing","*Set font color:* %0","normalizeSizeOptions"];var Ci,Ai;Ci=yi,Ai=354,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Ii=[{pluginName:ki("0x9"),commandName:ki("0xc")},{pluginName:ki("0x1d"),commandName:"fontFamily"},{pluginName:ki("0x12"),commandName:ki("0x1")},{pluginName:ki("0x10"),commandName:ki("0x1b")}];class Ri extends t.Plugin{[ki("0xe")](){const t=this[ki("0x1c")][ki("0x13")],e=this[ki("0x1c")][ki("0x27")].get(ki("0x15"));for(const{pluginName:t,commandName:n}of Ii)this.editor[ki("0x27")].has(t)&&e[ki("0xd")](n,[n]);t.t,e._descriptionFactory.registerAttributeLabel(ki("0xc"),Qo(t,ki("0x14"))),e._descriptionFactory[ki("0x11")](ki("0xb"),Qo(t,"FORMAT_FONT_FAMILY")),e[ki("0x23")][ki("0x11")](ki("0x1"),Qo(t,ki("0x2"))),e[ki("0x23")].registerAttributeLabel(ki("0x1b"),Qo(t,ki("0xf"))),this[ki("0xa")]()}[ki("0xa")](){const t=this.editor,e=t[ki("0x13")];t[ki("0x27")].get(ki("0x15"))._descriptionFactory[ki("0x7")]((t=>{const n=e.t;if(ki("0x22")!=t.type)return;const{data:o}=t;if(null!=o){if(ki("0xc")==o[ki("0x0")]){const t=o.commandParams[0][ki("0x1e")];if(t){const o=n(this[ki("0x1c")][ki("0x27")][ki("0x4")](ki("0x21"))[ki("0x17")](this[ki("0x1c")][ki("0x24")][ki("0x4")](ki("0x26")))[ki("0x8")]((e=>e[ki("0x29")]==t))[ki("0x1f")]).toLowerCase();return{type:ki("0x6"),content:Qo(e,ki("0x5"),o)}}return{type:"format",content:Qo(e,ki("0x25"))}}if(ki("0xb")==o[ki("0x0")]){const t=o[ki("0x1a")][0][ki("0x1e")];return t?{type:"format",content:Qo(e,"*Set font family:* %0",t)}:{type:ki("0x6"),content:Qo(e,ki("0x20"))}}if("fontColor"==o[ki("0x0")]){const t=o[ki("0x1a")][0][ki("0x1e")];if(t){const o=(0,r.normalizeColorOptions)(this[ki("0x1c")][ki("0x24")][ki("0x4")](ki("0x28")))[ki("0x8")]((e=>e[ki("0x29")]==t));let i=t,s="";return o&&(i=o.label,s=n(i).toLowerCase()),{type:"format",content:Qo(e,ki("0x16"),s).trim(),color:{value:t,title:s||i}}}return{type:ki("0x6"),content:Qo(e,"*Reset font color*")}}if(ki("0x1b")==o[ki("0x0")]){const t=o.commandParams[0][ki("0x1e")];if(t){const o=(0,r.normalizeColorOptions)(this.editor[ki("0x24")][ki("0x4")](ki("0x19")))[ki("0x8")]((e=>e[ki("0x29")]==t));let i=t,s="";return o&&(i=o.label,s=n(i).toLowerCase()),{type:ki("0x6"),content:Qo(e,ki("0x18"),s)[ki("0x3")](),color:{value:t,title:s||i}}}return{type:ki("0x6"),content:Qo(e,"*Reset font background color*")}}}}))}}const Si=["commands","entries","*Set format to:* %0","toLowerCase","fontSize.options","boolean","_registerLegacyDescription","type","length","enableCommand","label","commandName","_descriptionFactory","locale","title","fontSize","_enableDefaultAttributesIntegration","join","config","get","push","fontColor.colors","format","TrackChangesEditing","formatBlock","toUpperCase","plugins","copyFormat","find","editor","model","fontColor","pasteFormat","split","afterInit","registerDescriptionCallback"];var vi,Ni;vi=Si,Ni=368,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Si[t-=0]};class Mi extends t.Plugin{[Li("0x1a")](){const t=this.editor,e=t.plugins[Li("0xb")](Li("0xf")),n=t[Li("0x1c")].get(Li("0x13")),o=t[Li("0x1c")][Li("0xb")](Li("0x18"));n&&o&&(e[Li("0x8")](Li("0x18")),e[Li("0x1")](Li("0x13")),this[Li("0x22")]())}_registerLegacyDescription(){const t=this[Li("0x15")],e=t[Li("0x5")];t.plugins[Li("0xb")](Li("0xf"))[Li("0x4")][Li("0x1b")]((n=>{if(Li("0x10")!=n[Li("0x23")]&&"formatInline"!=n[Li("0x23")])return;const{data:o}=n;if(o&&Li("0x18")===o[Li("0x3")]){const n=[],r=o.commandParams[0];for(const[e,o]of Object[Li("0x1d")](r))n[Li("0xc")](Oi(t,e,o));return n[Li("0x0")]?{type:Li("0xe"),content:Qo(e,Li("0x1e"),n[Li("0x9")](", "))}:{type:"format",content:Qo(e,"*Remove all formatting*")}}}))}}function Oi(t,e,n){const o=t[Li("0x5")].t,i=e[Li("0x19")](/(?=[A-Z])/)[Li("0x9")](" "),s=o(i.charAt(0)[Li("0x11")]()+i.slice(1))[Li("0x1f")]();if(Li("0x21")==typeof n)return s;if(Li("0x17")===e||"fontBackgroundColor"===e){const e=(0,r.normalizeColorOptions)(t[Li("0xa")][Li("0xb")](Li("0xd")))[Li("0x14")]((t=>t[Li("0x16")]==n));return s+" ("+(e?o(e[Li("0x2")])[Li("0x1f")]():n)+")"}if(Li("0x7")===e&&isNaN(parseFloat(n))){const e=t[Li("0x12")].get("FontSize").normalizeSizeOptions(t.config.get(Li("0x20")))[Li("0x14")]((t=>t[Li("0x16")]==n));return s+" ("+(e?o(e[Li("0x6")])[Li("0x1f")]():n)+")"}return s+" ("+n+")"}const wi=["get","heading.options","ELEMENT_HEADING","paragraph","_headingOptions","_descriptionFactory","formatBlock","title","find","_enableDefaultAttributesIntegration","match","has","*Change to:* %0","editor","TrackChangesEditing","registerElementLabel","HeadingEditing","locale","heading","_registerLegacyDescription","commandParams","ELEMENT_HEADING_CUSTOM","afterInit","_getHeadingLevel","type","view","format","config","plugins","name","model"];var Fi,Di;Fi=wi,Di=252,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Pi=function(t,e){return wi[t-=0]};class Bi extends t.Plugin{[Pi("0x12")](){const t=this[Pi("0x9")];if(!t[Pi("0x18")][Pi("0x7")](Pi("0xc")))return;this._headingOptions=t[Pi("0x17")].get(Pi("0x1c"));const e=t[Pi("0xd")],n=t[Pi("0x18")][Pi("0x1b")](Pi("0xa"));n[Pi("0x5")](Pi("0xe"));for(const t of this[Pi("0x0")])Pi("0x1e")!=t[Pi("0x1a")]&&n[Pi("0x1")][Pi("0xb")](t.model,(n=>{const o=this[Pi("0x13")](t.model);return null!==o?(s=n,x=o,Qo(e,Pi("0x1d"),[s,x])):(r=n,i=t[Pi("0x3")],Qo(e,Pi("0x11"),[r,i]));var r,i,s,x}));this[Pi("0xf")]()}[Pi("0xf")](){const t=this[Pi("0x9")],e=t[Pi("0xd")];t[Pi("0x18")][Pi("0x1b")](Pi("0xa"))[Pi("0x1")].registerDescriptionCallback((t=>{if(Pi("0x2")!=t[Pi("0x14")])return;const{data:n}=t;if(n&&Pi("0xe")==n.commandName){const t=n[Pi("0x10")][0].value,s=this[Pi("0x13")](t);if(null!==s)return{type:Pi("0x16"),content:Qo(e,Pi("0x8"),(1,i=s,Qo(e,Pi("0x1d"),[1,i])))};const x=this[Pi("0x0")][Pi("0x4")]((e=>e.model===t))[Pi("0x3")];return{type:Pi("0x16"),content:Qo(e,Pi("0x8"),(o=1,r=x,Qo(e,Pi("0x11"),[o,r])))}}var o,r,i}))}[Pi("0x13")](t){var e,n;const o=t[Pi("0x6")](/^heading(\d+)/);if(o)return o[1];const r=null===(e=this[Pi("0x0")])||void 0===e?void 0:e[Pi("0x4")]((e=>e[Pi("0x1a")]==t));if(r&&r[Pi("0x15")]){const t=r.view,e=(null!==(n=t[Pi("0x19")])&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["formatInline","config","color","find","locale","highlight","_enableDefaultAttributesIntegration","FORMAT_HIGHLIGHT","editor","*Remove highlight*","*Set highlight:* %0","_descriptionFactory","value","plugins","model","HighlightEditing","get","_registerLegacyDescription","type","registerDescriptionCallback","toLowerCase","format","has","TrackChangesEditing","title"];var ji,Gi;ji=Ui,Gi=154,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Vi=function(t,e){return Ui[t-=0]};class Hi extends t.Plugin{afterInit(){const t=this[Vi("0x4")];if(!t.plugins[Vi("0x12")](Vi("0xb")))return;const e=t[Vi("0x9")][Vi("0xc")](Vi("0x13")),n=t[Vi("0x0")];e[Vi("0x2")](Vi("0x1"),[Vi("0x1")]),e[Vi("0x7")].registerAttributeLabel("highlight",Qo(n,Vi("0x3"))),this[Vi("0xd")]()}[Vi("0xd")](){const t=this[Vi("0x4")],e=t[Vi("0x0")];t[Vi("0x9")][Vi("0xc")](Vi("0x13"))[Vi("0x7")][Vi("0xf")]((n=>{if(Vi("0x15")!=n[Vi("0xe")])return;const{data:o}=n;if(o&&Vi("0x1")==o.commandName){const n=e.t,r=o.commandParams[0][Vi("0x8")];if(r){const o=t[Vi("0x16")].get("highlight.options")[Vi("0x18")]((t=>t[Vi("0xa")]==r)),i=n(o[Vi("0x14")])[Vi("0x10")]();return{type:"format",content:Qo(e,Vi("0x6"),i),color:{value:o[Vi("0x17")],title:o[Vi("0x14")]}}}return{type:Vi("0x11"),content:Qo(e,Vi("0x5"),Qo(e,Vi("0x3")))}}}))}}const zi=["HorizontalLineEditing","conversion","high","afterInit","_descriptionFactory","get","ck-horizontal-line","ELEMENT_HORIZONTAL_LINE","editor","horizontalLine","elementToStructure","enableCommand","plugins","insert","registerElementLabel","createEmptyElement","dataDowncast","has","addClass","TrackChangesEditing","createContainerElement"];var Wi,Ki;Wi=zi,Ki=142,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class $i extends t.Plugin{[qi("0x8")](){const t=this[qi("0xd")];if(!t[qi("0x11")][qi("0x1")](qi("0x5")))return;t[qi("0x11")].get(qi("0x3"))[qi("0x10")](qi("0xe"));const e=t[qi("0x11")][qi("0xa")](qi("0x3")),n=t.locale;e[qi("0x9")][qi("0x13")](qi("0xe"),(t=>Qo(n,qi("0xc"),t))),t[qi("0x6")].for(qi("0x0"))[qi("0xf")]({model:qi("0xe"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[qi("0x4")]("div"),r=e[qi("0x14")]("hr");return e[qi("0x2")](qi("0xb"),o),e[qi("0x12")](e.createPositionAt(o,0),r),o},converterPriority:qi("0x7")})}}const Xi=["element","_registerLegacyDescription","HtmlEmbed","_descriptionFactory","locale","type","registerElementLabel","editor","nodeAfter","rawHtml","format","htmlEmbed","getFirstRange","start","registerDescriptionCallback","value","formatBlock","*Change %0 content*","plugins","attribute","commandName","ELEMENT_HTML_EMBED"];var Zi,Yi;Zi=Xi,Yi=479,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return Xi[t-=0]};class Qi extends t.Plugin{afterInit(){const t=this[Ji("0xc")];if(!t[Ji("0x1")].has(Ji("0x7")))return;const e=t[Ji("0x1")].get("TrackChangesEditing"),n=t.locale;e[Ji("0x8")][Ji("0xb")](Ji("0xe"),(t=>Qo(n,Ji("0x4"),t))),e._enableDefaultAttributesIntegration(Ji("0x10"),[],[Ji("0x14")]),e[Ji("0x8")][Ji("0x13")]((t=>{if(Ji("0x2")!=t[Ji("0xa")])return;const{data:e}=t;if(e&&Ji("0x14")==e.key&&t[Ji("0x11")]()[Ji("0x12")][Ji("0xd")].is(Ji("0x5"),Ji("0xe"))){const t=Qo(n,Ji("0x4"));return{type:"format",content:Qo(n,Ji("0x0"),t)}}})),this._registerLegacyDescription()}[Ji("0x6")](){const t=this[Ji("0xc")],e=t[Ji("0x9")];t[Ji("0x1")].get("TrackChangesEditing")[Ji("0x8")][Ji("0x13")]((t=>{if(Ji("0x15")!=t[Ji("0xa")])return;const{data:n}=t;if(n&&"htmlEmbed"==n[Ji("0x3")]){const t=Qo(e,Ji("0x4"));return{type:Ji("0xf"),content:Qo(e,Ji("0x0"),t)}}}))}}const ts=["getFirstRange","_findSuggestions","editor","getClosestSelectedImageElement","change","findIndex","schema","end","convertBlockImageToInline","width","imageTypeInline","imageInline","ImageUploadEditing","_suggestionFactory","removeObject","previous","isCollapsed","find","nodeAfter","imageStylePreApply","markInsertion","newValue","plugins","subType","get","nodeBefore","isBefore","join","isIntersecting","document","ImageCaptionUtils","getNearestSelectionRange","formatBlock","ImageInlineEditing","createRange","_descriptionFactory","has","*Set image text alternative:* %0","resizedWidth","selection","enableCommand","element","isEqual","Inline image to block image","insertion","isBlockImage","getCaptionFromImageModelElement","imageTextAlternative","start","ImageEditing","FORMAT_IMAGE_SIZE","fromPosition","_enableDefaultAttributesIntegration","forward","TrackChangesEditing","imageBlock","alt","type","getSuggestionCallback","format","key","deletion","accept","toggleImageCaption","uploadImage","resizeImage","commandName","_registerLegacyDescription","createRangeOn","ImageUtils","ELEMENT_INLINE_IMAGE","model","imageTypeBlock","*Remove image text alternative*","imageCaption","length","insertImage","*Set image width:* %0","registerAttributeLabel","caption","toPrevious","discard","afterInit","registerCustomCallback","forceDefaultExecution","detach","Block image to inline image","locale","ELEMENT_CAPTION","filter","convertInlineImageToBlock","registerDescriptionCallback","commandParams","registerElementLabel","addObject"];var es,ns;es=ts,ns=278,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{[os("0x59")](){const t=this[os("0x9")];if(!t[os("0x1d")][os("0x2b")](os("0x38")))return;const e=t[os("0x1d")][os("0x1f")](os("0x3d")),n=t.plugins[os("0x1f")](os("0x4c")),o=t[os("0x5e")];e[os("0x2f")](os("0x53")),e[os("0x2a")][os("0x5")](os("0x3e"),(t=>Qo(o,"ELEMENT_IMAGE",t))),e[os("0x2a")][os("0x5")](os("0x12"),(t=>Qo(o,os("0x4d"),t))),e[os("0x2a")][os("0x5")](os("0x56"),(()=>Qo(o,os("0x0")))),t[os("0x1d")][os("0x2b")](os("0x13"))&&e.enableCommand(os("0x47")),t[os("0x1d")][os("0x2b")]("ImageBlockEditing")&&t[os("0x1d")][os("0x2b")](os("0x28"))&&(e[os("0x2f")](os("0x11"),((o,r)=>{const i=n[os("0xa")](t[os("0x4e")][os("0x24")][os("0x2e")]);t[os("0x4e")].change((()=>{e.markBlockFormat(i,{commandName:os("0x11"),commandParams:[r]},[],os("0xf"))}))})),e[os("0x2f")](os("0x4f"),((o,r)=>{t[os("0x4e")][os("0xb")]((i=>{let x=n.getClosestSelectedImageElement(t[os("0x4e")][os("0x24")][os("0x2e")]),a=i[os("0x4b")](x);const c=s.LivePosition[os("0x3a")](a[os("0x37")],os("0x57")),l=s.LivePosition.fromPosition(a[os("0xe")],"toNext");e[os("0x5b")]((()=>o(r))),x=n[os("0xa")](t[os("0x4e")][os("0x24")][os("0x2e")]),a=i[os("0x4b")](x);const u=i[os("0x29")](c,l);c[os("0x5c")](),l[os("0x5c")](),e.markBlockFormat(x,{commandName:os("0x11"),commandParams:[r]},[],"convertInlineImageToBlock"),u[os("0x37")][os("0x21")](a[os("0x37")])&&e.markInsertion(i.createRange(u[os("0x37")],a[os("0x37")]),os("0x2")),a[os("0xe")][os("0x21")](u[os("0xe")])&&e[os("0x1b")](i[os("0x29")](a[os("0xe")],u[os("0xe")]),"convertInlineImageToBlock")}))})),e[os("0x14")][os("0x5a")](os("0x27"),"convertInlineImageToBlock","join",(()=>!1)),e._suggestionFactory.registerCustomCallback(os("0x27"),os("0x2"),os("0x45"),(()=>!1)),e[os("0x14")][os("0x5a")](os("0x27"),os("0x2"),os("0x58"),e._suggestionFactory[os("0x41")](os("0x27"),"",os("0x45"))),e[os("0x14")][os("0x5a")]("insertion",os("0x2"),os("0x22"),(()=>!1)),e[os("0x14")][os("0x5a")](os("0x33"),os("0x2"),os("0x58"),(([n])=>{const o=e[os("0x14")][os("0x41")](os("0x33"),"",os("0x58"));let r=n.start,i=n.end;const s=t[os("0x4e")][os("0xd")][os("0x26")](r,"backward"),x=t.model[os("0xd")][os("0x26")](i,os("0x3c"));s[os("0x17")]&&(r=s[os("0x37")]),x.isCollapsed&&(i=x.end),o([t.model[os("0x29")](r,i)])})),e[os("0x14")][os("0x5a")](os("0x27"),"convertInlineImageToBlock","chain",x),e[os("0x14")].registerCustomCallback(os("0x33"),os("0x2"),"chain",x)),t[os("0x1d")][os("0x2b")]("ImageCaptionEditing")&&(e[os("0x2f")](os("0x46"),((o,r)=>{const i=t[os("0x1d")][os("0x1f")](os("0x25"));let s=n[os("0xa")](t[os("0x4e")][os("0x24")][os("0x2e")]),x=i.getCaptionFromImageModelElement(s);t.model[os("0xb")]((()=>{if(x)return void e.markDeletion(t.model[os("0x4b")](x));const a=n[os("0x34")](s);o(r),s=n.getClosestSelectedImageElement(t.model[os("0x24")][os("0x2e")]),x=i[os("0x35")](s),e[os("0x1b")](t[os("0x4e")][os("0x4b")](x),a?null:os("0x51"))}))})),e[os("0x14")][os("0x5a")](os("0x33"),os("0x51"),"chain",x));const r=[{type:os("0x27"),subType:os("0x1a")},{type:os("0x33"),subType:"imageCaption"},{type:os("0x27"),subType:os("0x2")},{type:os("0x33"),subType:"convertInlineImageToBlock"}];function i(t,o){const i=r[os("0xc")]((({type:e,subType:n})=>t[os("0x40")]==e&&t.subType==n)),s=r[os("0xc")]((({type:t,subType:e})=>o[os("0x40")]==t&&o[os("0x1e")]==e));if(i<0||s<0)return!1;const x=t[os("0x7")](),a=o.getFirstRange();if((0==i||1==i)&&2==s&&x[os("0x23")](a))return!0;if(2==i&&3==s){const t=e[os("0x8")](x,os("0x33"))[os("0x1")]((({suggestion:t,meta:e})=>e.isOwn&&os("0x2")==t[os("0x1e")]));if(t[os("0x52")]>1&&a[os("0xe")][os("0x31")](x[os("0x37")]))return!0;if(1==t[os("0x52")]&&(x.start[os("0x31")](a[os("0xe")])||x[os("0xe")][os("0x31")](a[os("0x37")])))return!0}if(3==i&&3==s&&x[os("0x37")][os("0x21")](a[os("0x37")])){const t=x[os("0xe")][os("0x19")],e=a[os("0x37")][os("0x20")];return n.isBlockImage(t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[os("0x1d")][os("0x2b")]("ImageResize")&&(e[os("0x3b")]("resizeImage",[],[os("0x2d")]),e[os("0x2a")][os("0x55")](os("0x2d"),Qo(o,os("0x39")))),t[os("0x1d")][os("0x2b")]("ImageTextAlternativeEditing")&&e[os("0x3b")](os("0x36"),[],[os("0x3f")]),e._descriptionFactory[os("0x3")]((t=>{if(r[os("0x18")]((({type:e,subType:n})=>t[os("0x40")]==e&&t[os("0x1e")]==n)))return t[os("0x16")]?{}:void 0})),e[os("0x2a")].registerDescriptionCallback((t=>{if(os("0x33")==t[os("0x40")]||os("0x44")==t[os("0x40")]){const e=t.getContainedElement();if(e&&e.is(os("0x30"),"caption"))return{type:os("0x33")==t.type?os("0x6"):os("0x15"),element:e,quantity:1}}})),e[os("0x2a")][os("0x3")]((t=>os("0x27")==t[os("0x40")]&&"convertInlineImageToBlock"==t[os("0x1e")]?{type:os("0x42"),content:os("0x32")}:os("0x27")==t[os("0x40")]&&os("0xf")==t[os("0x1e")]?{type:os("0x42"),content:os("0x5d")}:void 0)),e[os("0x2a")][os("0x3")]((t=>{if("attribute"!=t[os("0x40")])return;const{data:e}=t;if(!e||os("0x3f")!=e[os("0x43")])return;const n=e[os("0x1c")];return n?{type:os("0x42"),content:Qo(o,"*Set image text alternative:* %0",'"'+n+'"')}:{type:os("0x42"),content:Qo(o,os("0x50"))}})),this._registerLegacyDescription()}[os("0x4a")](){const t=this.editor,e=t.locale;t[os("0x1d")].get("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((t=>{if(os("0x27")!=t[os("0x40")]&&"formatInline"!=t[os("0x40")])return;const{data:n}=t;if(n){if(os("0x36")==n[os("0x49")]){const t=n[os("0x4")][0][os("0x1c")];return t?{type:os("0x42"),content:Qo(e,os("0x2c"),'"'+t+'"')}:{type:os("0x42"),content:Qo(e,os("0x50"))}}if(os("0x48")==n[os("0x49")]){const t=n.commandParams[0][os("0x10")];return t?{type:os("0x42"),content:Qo(e,os("0x54"),t)}:{type:os("0x42"),content:Qo(e,"*Reset image width*")}}}}))}}const is=["discard","oldValue","_enableDefaultAttributesIntegration","_registerLegacyDescription","formatBlock","get","registerCustomCallback","*Format:* replace image URL","_handleLegacySuggestions","_suggestionFactory","*Replace image URL*","formatInline","registerDescriptionCallback","attribute","format","newValue","accept","_descriptionFactory","src","type","editor","TrackChangesEditing","locale","replaceImageSource","plugins","commandName"];var ss,xs;ss=is,xs=354,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{afterInit(){if(!this[as("0x4")][as("0x8")].has("ImageEditing"))return;const t=this[as("0x4")].locale,e=this[as("0x4")][as("0x8")][as("0xf")](as("0x5"));e[as("0xc")](as("0x7"),[],[as("0x2")]),e[as("0x1")].registerDescriptionCallback((e=>{if(as("0x17")!=e.type)return;const{data:n}=e;return n&&as("0x2")==n.key?n[as("0x19")]&&n[as("0xb")]?{type:as("0x18"),content:Qo(t,as("0x14"))}:{type:as("0x18"),content:""}:void 0})),this[as("0x12")]()}[as("0x12")](){const t=this.editor.plugins[as("0xf")]("TrackChangesEditing");t[as("0x13")][as("0x10")](as("0xe"),as("0x7"),as("0x0"),t[as("0x13")].getSuggestionCallback(as("0xe"),null,as("0xa"))),t._suggestionFactory[as("0x10")](as("0xe"),"replaceImageSource",as("0xa"),t[as("0x13")].getSuggestionCallback("formatBlock",null,as("0x0"))),this[as("0xd")]()}[as("0xd")](){const t=this.editor,e=t[as("0x6")];t.plugins[as("0xf")](as("0x5"))._descriptionFactory[as("0x16")]((t=>{if(as("0xe")!=t[as("0x3")]&&as("0x15")!=t[as("0x3")])return;const{data:n}=t;return n&&as("0x7")==n[as("0x9")]?{type:"format",content:Qo(e,as("0x11"))}:void 0}))}}const ls=["editor","getSuggestionCallback","forEach","getSuggestions","_findSuggestions","formatInline","getClosestSelectedImageElement","_suggestionFactory","refresh","isBefore","commands","registerDescriptionCallback","getContainedElement","discardSuggestion","imageStyle","end","isIntersecting","document","imageCaption","_splitMarkerName","discard","next","nodeAfter","commandName","getFirstRange","hasSuggestion","length","accept","getSuggestion","newRange","type","imageStylePreApply","start","get","subType","join","insertion","author","imageTypeInline","isEqual","markBlockFormat","Users","TrackChangesEditing","normalizedStyles","createRangeOn","commandParams","model","isOwn","name","toLowerCase","afterInit","imageTypeBlock","from","title","format","findIndex","isInContent","suggestion","plugins","chain","setImageNaturalSizeAttributes","change","ImageStyleEditing","value","registerPostFixer","commandReversedParams","registerCustomCallback","selection","_descriptionFactory","*Format:* %0","shouldConvertImageType","_registerLegacyDescription","isBlockImage","imageStylePostApply","formatBlock","convertInlineImageToBlock"];var us,ds;us=ls,ds=155,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x2f")](){const t=this[gs("0x49")];if(!t[gs("0x37")].has(gs("0x3b")))return;const n=t[gs("0x37")][gs("0x1e")](gs("0x27")),o=t[gs("0x37")][gs("0x1e")]("ImageUtils"),r={};n.enableCommand(gs("0xb"),((r,i)=>{const s=t[gs("0x37")][gs("0x1e")](gs("0x26")).me,x=t[gs("0x7")][gs("0x1e")](gs("0xb"));let a=o[gs("0x3")](t[gs("0x2b")][gs("0xe")].selection),c=t[gs("0x2b")].createRangeOn(a),l=x[gs("0x3c")];if(l==i[gs("0x3c")])return;const u={commandName:gs("0xb"),commandParams:[i],formatGroupId:(0,e.uid)()};t[gs("0x2b")][gs("0x3a")]((()=>{if(n[gs("0x0")]().filter((t=>t[gs("0x35")]&&s==t[gs("0x22")]&&(gs("0x47")==t[gs("0x1b")]||gs("0x2")==t.type)&&("imageStylePreApply"==t[gs("0x1f")]||gs("0x46")==t[gs("0x1f")])&&t[gs("0x15")]()[gs("0x24")](c)))[gs("0x4b")]((t=>n[gs("0xa")](t.head))),a=o[gs("0x3")](t[gs("0x2b")].document[gs("0x40")]),c=t[gs("0x2b")][gs("0x29")](a),x[gs("0x5")](),t[gs("0x7")].get(gs("0x23"))[gs("0x5")](),t[gs("0x7")].get(gs("0x30"))[gs("0x5")](),l=x[gs("0x3c")],l!=i[gs("0x3c")])return o.isInlineImage(a)&&x[gs("0x43")](i[gs("0x3c")],a)?(r({...i,setImageSizes:!1}),a=o.getClosestSelectedImageElement(t.model[gs("0xe")][gs("0x40")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x1c"))):void(o[gs("0x45")](a)?n[gs("0x25")](a,u,[],gs("0x46")):n.markInlineFormat(c,u,gs("0x46")))}))}));for(const e of t[gs("0x37")].get(gs("0x3b"))[gs("0x28")])r[e[gs("0x2d")]]=e[gs("0x32")][gs("0x2e")]();n[gs("0x4")].registerCustomCallback(gs("0x47"),gs("0x1c"),"join",(()=>!1)),n[gs("0x4")][gs("0x3f")](gs("0x47"),"imageStylePostApply",gs("0x20"),(()=>!1)),n._suggestionFactory[gs("0x3f")](gs("0x2"),gs("0x46"),"join",(()=>!1)),n[gs("0x4")][gs("0x3f")](gs("0x47"),gs("0x1c"),gs("0x18"),(([t])=>{o[gs("0x39")](t[gs("0x9")]())})),n[gs("0x4")][gs("0x3f")](gs("0x47"),"imageStylePreApply",gs("0x11"),((t,e)=>{n._suggestionFactory[gs("0x4a")](gs("0x47"),"",gs("0x18"))(t,{commandName:e[gs("0x14")],commandParams:e[gs("0x3e")]})})),n[gs("0x4")].registerCustomCallback(gs("0x47"),gs("0x1c"),gs("0x38"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:gs("0x47"),subType:"imageStylePreApply"},{type:gs("0x21"),subType:gs("0xf")},{type:gs("0x47"),subType:"convertInlineImageToBlock"},{type:gs("0x21"),subType:"convertInlineImageToBlock"}];function s(t,e){const r=i[gs("0x34")]((({type:e,subType:n})=>t[gs("0x1b")]==e&&t.subType==n)),s=i[gs("0x34")]((({type:t,subType:n})=>e.type==t&&e[gs("0x1f")]==n));if(r<0||s<0)return!1;const x=t[gs("0x15")](),a=e[gs("0x15")]();if((0==r||1==r)&&2==s&&x[gs("0xd")](a))return!0;if(2==r&&3==s){const t=n[gs("0x1")](x,gs("0x21")).filter((({suggestion:t,meta:e})=>e[gs("0x2c")]&&gs("0x48")==t[gs("0x1f")]));if(t[gs("0x17")]>1&&a[gs("0xc")].isEqual(x[gs("0x1d")]))return!0;if(1==t[gs("0x17")]&&(x[gs("0x1d")][gs("0x24")](a[gs("0xc")])||x[gs("0xc")][gs("0x24")](a[gs("0x1d")])))return!0}if(3==r&&3==s&&x.start[gs("0x6")](a[gs("0x1d")])){const t=x[gs("0xc")][gs("0x13")],e=a[gs("0x1d")].nodeBefore;return o.isBlockImage(t)&&t===e}return!1}t[gs("0x2b")].document[gs("0x3d")]((()=>{let e=!1;const r=Array[gs("0x31")](t[gs("0x2b")][gs("0xe")].differ.getChangedMarkers());for(const{name:t,data:i}of r){const{group:r,type:s,subType:x,id:a}=n[gs("0x10")](t);if(gs("0x36")==r&&n[gs("0x16")](a)){if("formatBlock"==s&&(gs("0x1c")==x||"imageStylePostApply"==x)){const t=n[gs("0x19")](a);if(i[gs("0x1a")]){const r=t[gs("0x15")]().getContainedElement();if(o[gs("0x45")](r))continue;n[gs("0xa")](t),e=!0}}if(gs("0x21")==s&&gs("0xf")==x&&!i.newRange){const t=n.getSuggestion(a);t[gs("0x12")]&&t[gs("0x12")].isInContent&&(n[gs("0xa")](t.next),e=!0)}}}return e})),this[gs("0x44")](r)}_registerLegacyDescription(t){const e=this[gs("0x49")],n=e.locale;e[gs("0x37")][gs("0x1e")]("TrackChangesEditing")[gs("0x41")][gs("0x8")]((e=>{if("formatBlock"!=e[gs("0x1b")]&&gs("0x2")!=e[gs("0x1b")])return;const{data:o}=e;if(!o||gs("0xb")!=o[gs("0x14")])return;const r=o[gs("0x2a")][0].value;return i="side"===r?Qo(n,"FORMAT_SIDE_IMAGE"):t[r]||r,{type:gs("0x33"),content:Qo(n,gs("0x42"),i)};var i}))}}const ms=["listenTo","_handleImportedData","_trackChangesExecuted","forEach","commands","trackChanges","get","editor","TrackChangesEditing","Users","track_changes","bind","_trackChangesValueDuringImport","afterInit","plugins","enableCommand","high","importWord","dataInsert","value","lowest","execute"];var hs,ps;hs=ms,ps=168,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("0xa")]=!1}[bs("0x15")](){const t=this.editor,e=t.commands[bs("0xe")](bs("0x3")),n=t[bs("0xc")][bs("0xe")]("trackChanges");e&&(e.on(bs("0x7"),((t,[,e])=>{this[bs("0x14")]=n[bs("0x5")],e.collaboration_features[bs("0x12")]=!this._trackChangesValueDuringImport}),{priority:bs("0x2")}),this[bs("0x8")](e,bs("0x4"),this[bs("0x9")][bs("0x13")](this)),this.listenTo(e,bs("0x4"),(()=>{this[bs("0xa")]&&(n[bs("0x7")](),this[bs("0xa")]=!1)}),{priority:bs("0x6")}),t[bs("0x0")][bs("0xe")](bs("0x10"))[bs("0x1")](bs("0x3")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[bs("0xf")][bs("0xc")].get(bs("0xd")),r=o[bs("0x5")];this[bs("0x14")]!==r&&(o[bs("0x7")](),this[bs("0xa")]=!0),n&&n[bs("0xb")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[bs("0xf")][bs("0x0")].get(bs("0x11")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:bs("0x3")}}};this[bs("0xf")].plugins[bs("0xe")](bs("0x10"))._setSuggestionData(r)}))}}const _s=["indentBlock","IndentEditing","registerDescriptionCallback","enableCommand","has","_descriptionFactory","_registerLegacyDescription","formatBlock","commandName","TrackChangesEditing","indent","format","outdentBlock","IndentBlock","editor","getItems","plugins","blockIndent","*Outdent:* %0","_registerBlockAttribute","FORMAT_INDENT","get","*Indent:* %0","afterInit"];var Ts,ys;Ts=_s,ys=490,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0xd")](){const t=this[Cs("0x4")],e=t[Cs("0x6")].get(Cs("0x17"));if(t.plugins[Cs("0x12")](Cs("0xf"))&&(e[Cs("0x11")](Cs("0x0")),e[Cs("0x11")]("outdent")),t[Cs("0x6")].has(Cs("0x3")))for(const t of[Cs("0xe"),Cs("0x2")])e._enableDefaultAttributesIntegration(t);const n=t.locale;e[Cs("0x9")](Cs("0x7")),e._descriptionFactory.registerAttributeLabel("blockIndent",Qo(n,Cs("0xa"))),this[Cs("0x14")]()}[Cs("0x14")](){const t=this[Cs("0x4")],e=t.locale,n=t.plugins[Cs("0xb")](Cs("0x17"));n[Cs("0x13")][Cs("0x10")]((t=>{if(Cs("0x15")!=t.type)return;const{data:o}=t;if(!o)return;if(Cs("0xe")!=o[Cs("0x16")]&&Cs("0x2")!=o.commandName)return;const r=t[Cs("0x5")]()[0],i=n[Cs("0x13")].getItemLabel(r);return"indentBlock"==o[Cs("0x16")]?{type:"format",content:Qo(e,Cs("0xc"),i)}:Cs("0x2")==o[Cs("0x16")]?{type:Cs("0x1"),content:Qo(e,Cs("0x8"),i)}:void 0}))}}var ks,Is,Rs=["input","enableCommand","TrackChangesEditing","requires","init"];ks=Rs,Is=476,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Ss=function(t,e){return Rs[t-=0]};class vs extends t.Plugin{static get[Ss("0x2")](){return[Hr.Input]}[Ss("0x3")](){this.editor.plugins.get(Ss("0x1"))[Ss("0x0")](Ss("0x4"))}}const Ns=["get","_registerLegacyDescription","link","formatInline","attribute","has","manualDecorators","_descriptionFactory","*Remove link*","_enableDefaultAttributesIntegration","key","unlink","TrackChangesEditing","editor","registerAttributeLabel","commandParams","commandName","label","map","*Set link:* %0","plugins","newValue","LinkEditing","afterInit","format","commands","toLowerCase","linkHref","locale"];var Ls,Ms;Ls=Ns,Ms=390,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const Os=function(t,e){return Ns[t-=0]};class ws extends t.Plugin{[Os("0xa")](){const t=this[Os("0x0")];if(!t[Os("0x7")][Os("0x15")](Os("0x9")))return;const e=t.plugins.get(Os("0x1c")),n=t[Os("0xc")][Os("0x10")](Os("0x12"));e._enableDefaultAttributesIntegration(Os("0x12"),[Os("0xe"),...n[Os("0x16")][Os("0x5")]((t=>t.id))]),e[Os("0x19")]("unlink");for(const t of n[Os("0x16")])e[Os("0x17")][Os("0x1")](t.id,"link ("+t[Os("0x4")][Os("0xd")]()+")");e[Os("0x17")].registerDescriptionCallback((e=>{if(Os("0x14")!=e.type)return;const{data:n}=e;if(!n||Os("0xe")!=n[Os("0x1a")])return;const o=n[Os("0x8")],r=t[Os("0xf")];return{type:Os("0xb"),content:null==o?Qo(r,Os("0x18")):Qo(r,"*Set link:* %0",'"'+o+'"')}})),this[Os("0x11")]()}_registerLegacyDescription(){const t=this.editor,e=t[Os("0xf")];t[Os("0x7")][Os("0x10")](Os("0x1c"))[Os("0x17")].registerDescriptionCallback((t=>{if(Os("0x13")!=t.type)return;const{data:n}=t;if(n){if(Os("0x12")==n[Os("0x3")]){const t=n[Os("0x2")][0];return{type:Os("0xb"),content:Qo(e,Os("0x6"),'"'+t+'"')}}return Os("0x1b")==n[Os("0x3")]?{type:"format",content:Qo(e,Os("0x18"))}:void 0}}))}}const Fs=["getSelectedBlocks","nextSibling","document","indentList","push","end","plugins","registerElementLabel","getAttribute","listIndent","*Check item*","filter","slice","from","before","ListEditing","type","_descriptionFactory","format","findIndex","commands","change","paragraph","todo","selection","length","parent","formatBlock","value","*Outdent:* %0","has","model","element","todoListChecked","createRange","todoList","ELEMENT_TODO_LIST","previousSibling","forceValue","add","registerDescriptionCallback","markBlockFormat","replace","outdentList","ELEMENT_BULLETED_LIST","TrackChangesEditing","blockName","listItem","numberedList","createPositionAt","get","formatInline","bulletedList","name","commandName","checkChild","checkTodoList","ELEMENT_LIST_ITEM","TodoListEditing","enableCommand"];var Ds,Ps;Ds=Fs,Ps=278,function(t){for(;--t;)Ds.push(Ds.shift())}(++Ps);const Bs=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{afterInit(){const t=this.editor,e=t.locale;if(!t[Bs("0x1c")][Bs("0x34")](Bs("0x25")))return;const n=t.plugins.get(Bs("0x7")),o=t[Bs("0x1c")][Bs("0x34")](Bs("0x14"));function r(e){return()=>{const o=t[Bs("0x35")][Bs("0x18")][Bs("0x2e")],r=t[Bs("0x2a")].get(e);if(r[Bs("0x32")])return void t.execute(Bs("0x2c"),{});const i=e[Bs("0x22")](0,-4),s=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[Bs("0x11")](e[Bs("0x30")],Bs("0x9"))&&!o.isObject(e);var e,o}));o=o[Bs("0x21")]((t=>!t.is("element","listItem")||t[Bs("0x1e")]("listType")!=e));const r=new Set;for(const t of o)t.is("element","listItem")?r[Bs("0x1")](js(t)):r[Bs("0x1")](t);return Array[Bs("0x23")](r)}(o.getSelectedBlocks(),i,t.model.schema);t[Bs("0x35")][Bs("0x2b")]((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!r.value}],formatGroupId:Bs("0x8")},Gs(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Bs("0x23")](t);const n=e[Bs("0x29")]((t=>Bs("0x9")!=t.name));return n>-1&&(e=e[Bs("0x22")](0,n)),e}(t[Bs("0x35")].document[Bs("0x2e")][Bs("0x16")]()),r=t[Bs("0x35")][Bs("0x38")](t[Bs("0x35")][Bs("0xb")](o[0],Bs("0x24")),t.model.createPositionAt(o[o[Bs("0x2f")]-1],Bs("0x1b")));t[Bs("0x35")][Bs("0x2b")]((()=>{n[Bs("0x3")](r,{commandName:e,commandParams:[],formatGroupId:Bs("0x1f")},function(t){const e=new Set;for(const n of t){let t=n[Bs("0x17")];for(;t&&t[Bs("0x1e")](Bs("0x1f"))>n[Bs("0x1e")](Bs("0x1f"));)e[Bs("0x1")](t),t=t[Bs("0x17")]}return Array[Bs("0x23")](e)}(o))}))}}n[Bs("0x15")](Bs("0xa"),r(Bs("0xa"))),n[Bs("0x15")]("bulletedList",r(Bs("0xe"))),o&&n[Bs("0x15")](Bs("0x39"),r("todoList")),n[Bs("0x15")](Bs("0x19"),i(Bs("0x19"))),n[Bs("0x15")](Bs("0x5"),i("outdentList")),o&&n[Bs("0x15")]("checkTodoList",(()=>{const e=t[Bs("0x2a")][Bs("0xc")](Bs("0x12")),o=Array[Bs("0x23")](e._selectedElements);o[Bs("0x21")]((t=>t[Bs("0x1e")](Bs("0x37"))!=e.value)),t[Bs("0x35")].change((()=>{for(const t of o)n[Bs("0x3")](t,{commandName:Bs("0x12"),commandParams:[{forceValue:!e[Bs("0x32")]}]})}))})),n[Bs("0x27")][Bs("0x1d")](Bs("0x9"),(t=>Qo(e,Bs("0x13"),t))),n[Bs("0x27")][Bs("0x2")]((t=>{if(Bs("0x31")!=t[Bs("0x26")]&&Bs("0xd")!=t[Bs("0x26")])return;const{data:n}=t;if(n){if("numberedList"==n.commandName||Bs("0xe")==n[Bs("0x10")]||Bs("0x39")==n[Bs("0x10")])switch(n[Bs("0x10")][Bs("0x4")]("List","")){case"bulleted":return o(Qo(e,Bs("0x6")));case"numbered":return o(Qo(e,"ELEMENT_NUMBERED_LIST"));case Bs("0x2d"):return o(Qo(e,Bs("0x3a")))}if(Bs("0x19")==n.commandName)return{type:"format",content:Qo(e,"*Indent:* %0",Qo(e,Bs("0x13")))};if(Bs("0x5")==n[Bs("0x10")])return{type:Bs("0x28"),content:Qo(e,Bs("0x33"),Qo(e,Bs("0x13")))};if(Bs("0x12")==n[Bs("0x10")])return n.commandParams[0][Bs("0x0")]?{type:Bs("0x28"),content:Qo(e,Bs("0x20"))}:{type:Bs("0x28"),content:Qo(e,"*Uncheck item*")}}function o(t){return{type:Bs("0x28"),content:Qo(e,"*Change to:* %0",t)}}}))}}function js(t){const e=t.getAttribute(Bs("0x1f"));if(0==e)return t;let n=t;for(;t[Bs("0x3b")]&&t[Bs("0x3b")].is("element",Bs("0x9"));){const o=t[Bs("0x3b")][Bs("0x1e")]("listIndent");if(o==e)n=t[Bs("0x3b")];else if(o<e)break;t=t[Bs("0x3b")]}return n}function Gs(t){const e=[];if(t.is(Bs("0x36"),Bs("0x9"))&&t[Bs("0x1e")](Bs("0x1f"))>0){let n=t[Bs("0x17")];for(;n&&Bs("0x9")==n[Bs("0xf")]&&n[Bs("0x1e")](Bs("0x1f"))==t[Bs("0x1e")](Bs("0x1f"));)e[Bs("0x1a")](n),n=n[Bs("0x17")]}return e}const Vs=["ListPropertiesEditing","*Change to:* %0","TrackChangesEditing","map","_getTranslationKeyForListStyle","toUpperCase","registerDescriptionCallback","handleDescriptions","plugins","replace","_LIST_","reversed","commandName","list.properties","startIndex","getFirstPosition","createPositionAt","afterInit","handleListStartCommand","_descriptionFactory","formatInline","selection","filter","*Format:* set order to regular","listStyle","handleListStyleCommand","parent","numbered","commandParams","_getSuggestionBlocksForListStyle","before","get","backward","getAttribute","*Format:* set order to reversed","length","*Format:* set start index to %0","createRange","bind","document","ListUtils","enableCommand","listItem","locale","model","type","element","flat","getSelectedBlocks","listStart","change","formatBlock","forward","markMultiRangeBlockFormat","unshift","_getSuggestionBlocks","getSiblingNodes","editor","getLastPosition","format","from","has","handleListReversedCommand","listReversed","listType","config"];var Hs,zs;Hs=Vs,zs=143,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x6")](){if(!this[Ws("0x2e")].plugins[Ws("0x32")](Ws("0x37")))return;const t=this[Ws("0x2e")][Ws("0x36")][Ws("0x14")](Ws("0x2")),e=this[Ws("0x2e")][Ws("0x3f")][Ws("0x14")]("TrackChangesEditing");t.styles&&e[Ws("0x1e")](Ws("0xd"),this[Ws("0xe")].bind(this)),t[Ws("0x0")]&&e.enableCommand(Ws("0x34"),this[Ws("0x33")][Ws("0x1b")](this)),t[Ws("0x3")]&&e[Ws("0x1e")](Ws("0x26"),this[Ws("0x7")][Ws("0x1b")](this)),e[Ws("0x8")][Ws("0x3d")](this[Ws("0x3e")][Ws("0x1b")](this))}[Ws("0xe")](t,e={}){const n=this.editor.plugins[Ws("0x14")]("TrackChangesEditing"),o=this[Ws("0x12")]();this.editor[Ws("0x21")].change((()=>{n[Ws("0x2a")](o,{commandName:Ws("0xd"),commandParams:[{type:e[Ws("0x22")]}],formatGroupId:Ws("0xd")})}))}[Ws("0x33")](t,e={}){const n=this.editor[Ws("0x3f")][Ws("0x14")](Ws("0x39")),o=this._getSuggestionBlocks((t=>t.is(Ws("0x23"),Ws("0x1f"))&&Ws("0x10")===t[Ws("0x16")](Ws("0x35"))));if(o.length<1)return;const r=o[Ws("0x3a")]((t=>this[Ws("0x2e")][Ws("0x21")][Ws("0x1a")](this.editor[Ws("0x21")][Ws("0x5")](t,Ws("0x13")),this[Ws("0x2e")][Ws("0x21")][Ws("0x5")](t,0))));this.editor[Ws("0x21")][Ws("0x27")]((()=>{n[Ws("0x2a")](r,{commandName:Ws("0x34"),commandParams:[{reversed:e[Ws("0x0")]}],formatGroupId:Ws("0x34")})}))}[Ws("0x7")](t,e={}){const n=this[Ws("0x2e")].plugins.get(Ws("0x39")),o=this[Ws("0x2c")]((t=>t.is(Ws("0x23"),"listItem")&&"numbered"===t[Ws("0x16")](Ws("0x35"))));if(o[Ws("0x18")]<1)return;const r=o[Ws("0x3a")]((t=>this[Ws("0x2e")].model[Ws("0x1a")](this[Ws("0x2e")][Ws("0x21")][Ws("0x5")](t,Ws("0x13")),this.editor.model.createPositionAt(t,0))));this[Ws("0x2e")][Ws("0x21")][Ws("0x27")]((()=>{n[Ws("0x2a")](r,{commandName:Ws("0x26"),commandParams:[{startIndex:e[Ws("0x3")]}],formatGroupId:Ws("0x26")})}))}[Ws("0x3e")](t){if(Ws("0x28")!=t[Ws("0x22")]&&Ws("0x9")!=t[Ws("0x22")])return;const e=this[Ws("0x2e")][Ws("0x20")],{data:n}=t;if(!n)return;let o,r;switch(n[Ws("0x1")]){case Ws("0xd"):o=Ws("0x38"),r={type:Ws("0x30"),content:Qo(e,o,Qo(e,this._getTranslationKeyForListStyle(n.commandParams[0][Ws("0x22")])))};break;case Ws("0x34"):o=n[Ws("0x11")][0].reversed?Ws("0x17"):Ws("0xc"),r={type:"format",content:Qo(e,o)};break;case Ws("0x26"):o=Ws("0x19"),r={type:Ws("0x30"),content:Qo(e,o,n[Ws("0x11")][0].startIndex)}}return r}_getSuggestionBlocksForListStyle(){var t,e,n,o;const r=this[Ws("0x2e")].plugins[Ws("0x14")](Ws("0x1d"));let i=Array[Ws("0x31")](this[Ws("0x2e")].model[Ws("0x1c")][Ws("0xa")][Ws("0x25")]());return(null===(t=i[0])||void 0===t?void 0:t.is("element",Ws("0x1f")))&&i[Ws("0x2b")](...r.getSiblingNodes(this.editor[Ws("0x21")].document[Ws("0xa")].getFirstPosition(),Ws("0x15"))),(null===(e=i[i[Ws("0x18")]-1])||void 0===e?void 0:e.is(Ws("0x23"),Ws("0x1f")))&&i.push(...r[Ws("0x2d")](this[Ws("0x2e")].model[Ws("0x1c")].selection[Ws("0x2f")](),Ws("0x29"))),i=[...new Set(i)],(null===(o=null===(n=this[Ws("0x2e")][Ws("0x21")][Ws("0x1c")].selection[Ws("0x4")]())||void 0===n?void 0:n[Ws("0xf")])||void 0===o?void 0:o.is("element",Ws("0x1f")))&&(i=i[Ws("0xb")]((t=>t.is(Ws("0x23"),Ws("0x1f"))))),i}[Ws("0x2c")](t){const e=this.editor[Ws("0x3f")][Ws("0x14")](Ws("0x1d"));let n=Array.from(this[Ws("0x2e")][Ws("0x21")][Ws("0x1c")].selection[Ws("0x25")]())[Ws("0xb")](t)[Ws("0x3a")]((t=>{const n=this[Ws("0x2e")][Ws("0x21")][Ws("0x5")](t,0);return[...e[Ws("0x2d")](n,"backward"),...e.getSiblingNodes(n,Ws("0x29"))]}))[Ws("0x24")]();return n=[...new Set(n)],n}[Ws("0x3b")](t){return"ELEMENT_"+this[Ws("0x2e")][Ws("0x3f")].get(Ws("0x1d")).getListTypeFromListStyleType(t)[Ws("0x3c")]()+Ws("0x41")+t[Ws("0x3c")]()[Ws("0x40")](/-/g,"_")}}const qs=["editor","elementToElement","conversion","div","downcastDispatcher","media","plugins","high","attribute:url:media","dataDowncast","registerElementLabel","MediaEmbedEditing","locale","data","afterInit","get","ELEMENT_MEDIA","options","stop","showSuggestionHighlights"];var $s,Xs;$s=qs,Xs=270,function(t){for(;--t;)$s.push($s.shift())}(++Xs);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0x4")](){const t=this[Zs("0xa")];if(!t[Zs("0x10")].has(Zs("0x1")))return;const e=t[Zs("0x10")][Zs("0x5")]("TrackChangesEditing"),n=t[Zs("0x2")];e.enableCommand("mediaEmbed"),e._descriptionFactory[Zs("0x0")](Zs("0xf"),(t=>Qo(n,Zs("0x6"),t))),t[Zs("0xc")].for(Zs("0x13"))[Zs("0xb")]({model:Zs("0xf"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x9")])return e.createEmptyElement(Zs("0xd"))},converterPriority:Zs("0x11")}),t[Zs("0x3")][Zs("0xe")].on(Zs("0x12"),((t,e,n)=>{n[Zs("0x7")][Zs("0x9")]&&t[Zs("0x8")]()}),{priority:Zs("0x11")})}}const Js=["editor","enableCommand","plugins","mention","get","has","afterInit"];var Qs,tx;Qs=Js,tx=376,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x1")](){const t=this[ex("0x2")];t[ex("0x4")][ex("0x0")]("MentionEditing")&&t.plugins[ex("0x6")]("TrackChangesEditing")[ex("0x3")](ex("0x5"))}}const ox=["_descriptionFactory","registerElementLabel","editor","afterInit","PageBreakEditing","pageBreak","enableCommand","get","ELEMENT_PAGE_BREAK","plugins","TrackChangesEditing","has"];var rx,ix;rx=ox,ix=242,function(t){for(;--t;)rx.push(rx.shift())}(++ix);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x1")](){const t=this[sx("0x0")];if(!t[sx("0x7")][sx("0x9")](sx("0x2")))return;t[sx("0x7")][sx("0x5")](sx("0x8"))[sx("0x4")](sx("0x3"));const e=t.plugins[sx("0x5")]("TrackChangesEditing"),n=t.locale;e[sx("0xa")][sx("0xb")](sx("0x3"),(t=>Qo(n,sx("0x6"),t)))}}const ax=["commandName","_descriptionFactory","$text","Paragraph","isBlock","mapper","registerDescriptionCallback","nodeAfter","ELEMENT_PARAGRAPH","plugins","paragraph","bindElementToMarker","schema","afterInit","enableCommand","*Insert:* %0","start","ck-suggestion-marker--active","options","get","writer","isLimit","data","isTouching","formatBlock","insertParagraph","span","createUIElement","model","insert","activeMarkers","locale","getFirstRange","TrackChangesEditing","highest","_enableDefaultAttributesIntegration","markerName","markerRange","type","addMarker:suggestion:insertion","consumable","checkChild","editing","insertion","ck-suggestion-marker-split","has","includes","_registerLegacyDescription","end","addClass","consume","name","registerElementLabel"];var cx,lx;cx=ax,lx=469,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x15")](){const t=this.editor;if(!t.plugins[ux("0x0")](ux("0xb")))return;const e=t[ux("0x27")],n=t[ux("0x11")][ux("0x1b")](ux("0x29"));n[ux("0x9")][ux("0x7")]("paragraph",(t=>Qo(e,ux("0x10"),t))),n[ux("0x2b")](ux("0x12")),n[ux("0x16")](ux("0x21")),t[ux("0x32")].downcastDispatcher.on(ux("0x2f"),gx(t),{priority:ux("0x2a")}),t[ux("0x1e")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o[ux("0x1a")].showSuggestionHighlights&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:ux("0x2a")});const o=n[ux("0x9")];o[ux("0xe")]((n=>{if(ux("0x33")!==n[ux("0x2e")])return;const{start:r,end:i}=n[ux("0x28")]();if(!r[ux("0x1f")](i)||!r[ux("0xf")])return;const s=t[ux("0x24")][ux("0x14")],x=r[ux("0xf")];return s.isBlock(x)&&!s[ux("0x1d")](x)&&s.checkChild(x,ux("0xa"))?{type:ux("0x33"),content:Qo(e,ux("0x17"),o.getItemLabel(x,1))}:void 0})),this[ux("0x2")]()}[ux("0x2")](){const t=this.editor,e=t[ux("0x27")];t.plugins[ux("0x1b")]("TrackChangesEditing")._descriptionFactory[ux("0xe")]((t=>{if(ux("0x20")!=t[ux("0x2e")])return;const{data:n}=t;return n&&ux("0x12")==n[ux("0x8")]?{type:"format",content:Qo(e,"*Change to:* %0",Qo(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t.plugins.get(ux("0x29")),s=o[ux("0x2d")][ux("0x18")],x=o[ux("0x2d")][ux("0x3")],a=t.model[ux("0x14")];if(!s[ux("0x1f")](x)||!s[ux("0xf")])return;const c=s[ux("0xf")];if(a[ux("0xc")](c)&&!a[ux("0x1d")](c)&&a[ux("0x31")](c,"$text")){if(!r[ux("0x30")][ux("0x5")](o[ux("0x2d")],n[ux("0x6")]))return;const t=r.writer[ux("0x23")](ux("0x22"),{class:ux("0x34")}),s=r[ux("0xd")].toViewPosition(x);e&&i[ux("0x26")][ux("0x1")](o.markerName)&&r[ux("0x1c")][ux("0x4")](ux("0x19"),t),r[ux("0x1c")][ux("0x25")](s,t),r[ux("0xd")][ux("0x13")](t,o[ux("0x2c")])}}}const fx=["formatInline","has","get","editor","_descriptionFactory","formatBlock","TrackChangesEditing","format","removeFormat","_registerLegacyDescription","plugins","locale","type","commandName","RemoveFormatEditing","afterInit"];var mx,hx;mx=fx,hx=157,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0x2")](){const t=this[px("0x6")];t.plugins[px("0x4")](px("0x1"))&&(t[px("0xd")][px("0x5")](px("0x9"))._enableDefaultAttributesIntegration(px("0xb")),this[px("0xc")]())}[px("0xc")](){const t=this.editor;t[px("0xd")].get(px("0x9"))[px("0x7")].registerDescriptionCallback((e=>{if(px("0x8")!=e[px("0xf")]&&px("0x3")!=e[px("0xf")])return;const{data:n}=e;return n&&px("0xb")==n[px("0x0")]?{type:px("0xa"),content:Qo(t[px("0xe")],"*Remove all formatting*")}:void 0}))}}const Ex=["TrackChangesEditing","RestrictedEditingModeEditing","discardSelectedSuggestions","acceptSelectedSuggestions","goToNextRestrictedEditingException","acceptAllSuggestions","afterInit","get","has","acceptSuggestion","enableCommand","discardAllSuggestions","plugins"];var _x,Tx;_x=Ex,Tx=324,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x7")](){const t=this.editor;if(!t[yx("0x0")][yx("0x9")](yx("0x2")))return;const e=t[yx("0x0")].get(yx("0x1"));e.enableCommand("goToPreviousRestrictedEditingException"),e.enableCommand(yx("0x5"));const n=t.plugins[yx("0x8")]("RestrictedEditingModeEditing");n[yx("0xb")]("trackChanges"),n[yx("0xb")](yx("0xa")),n[yx("0xb")]("discardSuggestion"),n.enableCommand(yx("0x6")),n[yx("0xb")](yx("0xc")),n[yx("0xb")](yx("0x4")),n[yx("0xb")](yx("0x3"))}}const Ax=["registerElementLabel","markerRange","test","model","span","writer","markerName","activeMarkers","enableCommand","addMarker:suggestion:insertion","bindElementToMarker","insert","high","addClass","downcastDispatcher","element","editing","shiftEnter","editor","split","plugins","createPositionBefore","data","TrackChangesEditing","requires","get","deletion","ck-suggestion-marker-","addMarker:suggestion:deletion","getItems","init","_descriptionFactory","ELEMENT_LINE_BREAK","createUIElement","mapper","softBreak"];var kx,Ix;kx=Ax,Ix=221,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{static get[Rx("0x13")](){return[ui.ShiftEnter]}[Rx("0x19")](){const t=this[Rx("0xd")],e=t[Rx("0xf")][Rx("0x14")](Rx("0x12"));e[Rx("0x3")](Rx("0xc")),t[Rx("0xb")].downcastDispatcher.on(Rx("0x4"),vx(t),{priority:Rx("0x7")}),t[Rx("0xb")][Rx("0x9")].on(Rx("0x17"),vx(t),{priority:Rx("0x7")}),t[Rx("0x11")][Rx("0x9")].on("addMarker:suggestion",((e,n,o)=>{o.options.showSuggestionHighlights&&vx(t,{showActiveMarker:!1})(e,n,o)})),e[Rx("0x1a")][Rx("0x1f")](Rx("0x1e"),(e=>Qo(t.locale,Rx("0x1b"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[Rx("0xf")].get("TrackChangesEditing");if(!r.consumable[Rx("0x21")](o[Rx("0x20")],n.name))return;const s=t[Rx("0x22")];for(const t of o.markerRange[Rx("0x18")]()){if(!t.is(Rx("0xa"),"softBreak"))continue;const n=Rx("0x15")==o.markerName[Rx("0xe")](":")[1]?"merge":Rx("0xe"),x=r.writer[Rx("0x1c")](Rx("0x23"),{class:Rx("0x16")+n}),a=r[Rx("0x1d")].toViewPosition(s[Rx("0x10")](t));e&&i[Rx("0x2")].includes(o[Rx("0x1")])&&r[Rx("0x0")][Rx("0x8")]("ck-suggestion-marker--active",x),r[Rx("0x0")][Rx("0x6")](a,x),r.mapper[Rx("0x5")](x,o[Rx("0x1")])}}}const Nx=["commands","TrackChangesEditing","restrictedEditingException","format","_descriptionFactory","type","get","change","getRanges","forceValue","document","StandardEditingModeEditing","registerDescriptionCallback","plugins","commandParams","markInlineFormat","formatInline","isCollapsed","commandName","editor","has","selection","model","enableCommand","formatBlock"];var Lx,Mx;Lx=Nx,Mx=368,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const Ox=function(t,e){return Nx[t-=0]};class wx extends t.Plugin{afterInit(){const t=this[Ox("0x1")],e=t[Ox("0x4")],n=t.locale;if(!t[Ox("0x14")][Ox("0x2")](Ox("0x12")))return;const o=t[Ox("0x14")][Ox("0xd")](Ox("0x8")),r=Ox("0x9"),i=t[Ox("0x7")][Ox("0xd")](r);o[Ox("0x5")](r,((t,n={})=>{const s=e[Ox("0x11")][Ox("0x3")];if(s[Ox("0x18")])return void t(n);const x=void 0!==n.forceValue?n.forceValue:!i.value;e[Ox("0xe")]((()=>{const t=Array.from(s[Ox("0xf")]());for(const n of t){const t=x?[n]:$r(r,n,e);for(const e of t)o[Ox("0x16")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[Ox("0xb")][Ox("0x13")]((t=>{if(Ox("0x6")!=t.type&&Ox("0x17")!=t[Ox("0xc")])return;const{data:e}=t;return e&&e[Ox("0x0")]==r?e[Ox("0x15")][0][Ox("0x10")]?{type:Ox("0xa"),content:Qo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Ox("0xa"),content:Qo(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Fx=["TrackChangesEditing","toLowerCase","GeneralHtmlSupport","formatInline","Style","has","style","add","_enableDefaultAttributesIntegration","definitions","registerDescriptionCallback","_registerInlineAttribute","locale","format","type","*Remove format:* %0","DataSchema","forceValue","_registerLegacyDescription","config","styleName","formatBlock","get","element","commandParams","block","plugins","_descriptionFactory","ghsAttributes","commandName","normalizeConfig","getGhsAttributeNameForElement","registerAttributeLabel"];var Dx,Px;Dx=Fx,Px=111,function(t){for(;--t;)Dx.push(Dx.shift())}(++Px);const Bx=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this.editor;if(!t[Bx("0xe")][Bx("0x1a")](Bx("0x19"))||!t[Bx("0xe")][Bx("0x1a")](Bx("0x4")))return;const e=t.plugins[Bx("0xa")](Bx("0x15")),n=t[Bx("0x0")],o=t[Bx("0x7")].get("style"),r=t[Bx("0xe")][Bx("0xa")](Bx("0x17")),i=t[Bx("0xe")][Bx("0xa")]("StyleUtils")[Bx("0x12")](t[Bx("0xe")].get(Bx("0x4")),o[Bx("0x1e")]);e[Bx("0x1d")](Bx("0x1b"));const s=new Set;for(const t of i[Bx("0xd")]){const e=r.getGhsAttributeNameForElement(t[Bx("0xb")]);s[Bx("0x1c")](e)}const x=new Set;for(const t of i.inline){const e=r[Bx("0x13")](t[Bx("0xb")]);x[Bx("0x1c")](e);for(const e of t[Bx("0x10")])x[Bx("0x1c")](e)}for(const t of s)e._registerBlockAttribute(t),e[Bx("0xf")][Bx("0x14")](t,Qo(n,"FORMAT_STYLE"));for(const t of x)e[Bx("0x20")](t),e[Bx("0xf")].registerAttributeLabel(t,Qo(n,"FORMAT_STYLE"));this[Bx("0x6")]()}[Bx("0x6")](){const t=this.editor,e=t[Bx("0x0")];t[Bx("0xe")].get(Bx("0x15"))._descriptionFactory[Bx("0x1f")]((t=>{if(Bx("0x9")!=t.type&&Bx("0x18")!=t[Bx("0x2")])return;const{data:n}=t;return n&&Bx("0x1b")===n[Bx("0x11")]?n[Bx("0xc")][0][Bx("0x5")]?{type:Bx("0x1"),content:Qo(e,"*Set format:* %0",n[Bx("0xc")][0][Bx("0x8")].toLowerCase())}:{type:Bx("0x1"),content:Qo(e,Bx("0x3"),n[Bx("0xc")][0][Bx("0x8")][Bx("0x16")]())}:void 0}))}}const jx=["some","rowspan","getRanges","*Remove:* %0","toViewElement","_acceptFormatSuggestionCallbackFactory","removeTableRow","ELEMENT_TABLE","start","TableUtils","insertion","TrackChangesEditing","push","map","afterInit","plugins","suggestion","findAncestor","from","nodeAfter","markMultiRangeDeletion","registerElementLabel","registerDescriptionCallback","$textProxy","getChildren","span","_suggestionFactory","document","cell","hasAttribute","getSelectionAffectedTableCells","_tablePostFixingSubtypes","getFirstRange","editor","element","isEqual","insert","selectTableRow","isArray","*Insert:* %0","commands","createRangeOn","_getSuggestionCoords","left","above","getColumnIndexes","type","_setupColumnsRowsFixing","refresh","writer","end","registerCustomCallback","_tableSuggestions","maxColumn","tableRow","_getCoordsForCells","startsWith","insertTableColumnRight","position","rootName","fromRange","data","highest","getAttribute","tablePaste","options","createPositionAt","MIN_SAFE_INTEGER","getChangedMarkers","change","change:data","execute","removeTableColumn","locale","markMultiRangeInsertion","addClass","max","model","minColumn","length","downcastDispatcher","showSuggestionHighlights","removeClass","add","ELEMENT_TABLE_WITH_TEXT","colspan","registerPostFixer","getItems","join","detach","name","ELEMENT_TABLE_COLUMN","MAX_SAFE_INTEGER","differ","selectTableColumn","subType","oldRange","enableCommand","batch","getCellLocation","values","insertTableColumnLeft","substr","addRange","get","first","toLowerCase","every","TableEditing","forceValue","last","min","includes","low","maxRow","item","table","createRangeIn","filter","ELEMENT_TABLE_ROW","$graveyard","addMarker:suggestion","enqueueChange","getRowIndexes","has","discard","ELEMENT_TABLE_ROW_WITH_TEXT","deletion","root","mapper","isInContent","accept","_descriptionFactory","createTableWalker","setSelection","tableColumn","getSuggestion","order","insertTable"];var Gx,Vx;Gx=jx,Vx=342,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Hx("0x81"),Hx("0x47")],this._tableSuggestions=new Set}[Hx("0x59")](){const t=this[Hx("0x6c")],e=t.model[Hx("0x66")].selection;if(!t.plugins[Hx("0x3c")](Hx("0x2c")))return;const n=t[Hx("0x9")],o=t.plugins[Hx("0x28")](Hx("0x56")),r=t.plugins.get("TableUtils");o[Hx("0x44")][Hx("0x60")](Hx("0x34"),(t=>Qo(n,Hx("0x52"),t))),this[Hx("0x7a")](),o[Hx("0x21")](Hx("0x4a")),o[Hx("0x21")](Hx("0x70")),o[Hx("0x21")](Hx("0x1e"));for(const n of["insertTableRowAbove","insertTableRowBelow"]){const i=t[Hx("0x73")].get(n);o.enableCommand(n,(n=>{t[Hx("0xd")][Hx("0x5")]((t=>{n();const s=Hx("0x77")===i[Hx("0x49")],x=r[Hx("0x69")](e),a=r[Hx("0x3b")](x),c=s?a[Hx("0x29")]-1:a[Hx("0x2e")]+1,l=x[0][Hx("0x5c")](Hx("0x34")),u=r[Hx("0x45")](l,{startRow:c,endRow:c}),d=Array[Hx("0x5d")](u)[Hx("0x58")]((e=>t[Hx("0x74")](e[Hx("0x67")])));o[Hx("0xa")](d,Hx("0x81"))}))}))}for(const n of[Hx("0x25"),Hx("0x84")]){const i=t[Hx("0x73")][Hx("0x28")](n);o[Hx("0x21")](n,(n=>{t.model[Hx("0x5")]((t=>{n();const s=Hx("0x76")===i[Hx("0x49")],x=r[Hx("0x69")](e),a=r.getColumnIndexes(x),c=s?a[Hx("0x29")]-1:a.last+1,l=x[0][Hx("0x5c")](Hx("0x34")),u=r[Hx("0x45")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u).map((e=>t.createRangeOn(e.cell)));o[Hx("0xa")](d,Hx("0x47"))}))}))}for(const n of[Hx("0x51"),Hx("0x8")]){const i=n[Hx("0x26")](11),s=i[Hx("0x2a")](),x=s[Hx("0x26")](0,3)+Hx("0x64"),a="table"+i,c=Hx("0x2f")+i,l=Hx("0xc")+i;o[Hx("0x21")](n,(()=>{t[Hx("0xd")][Hx("0x5")]((t=>{const i=r[Hx("0x69")](e),u=i[0][Hx("0x5c")]("table");let d;if("removeTableRow"==n){const t=r[Hx("0x3b")](i);d={startRow:t[Hx("0x29")],endRow:t[Hx("0x2e")],includeAllSlots:!0}}else{const t=r[Hx("0x78")](i);d={startColumn:t.first,endColumn:t[Hx("0x2e")],includeAllSlots:!0}}const g=r[Hx("0x45")](u,d),f=Array[Hx("0x5d")](g)[Hx("0x58")]((({cell:t})=>t)),m=Wx(f[Hx("0x36")]((t=>t[Hx("0x68")](x)))),h=Wx(f[Hx("0x36")]((t=>!t[Hx("0x68")](x))))[Hx("0x58")]((e=>t[Hx("0x74")](e))),p=o[Hx("0x5f")](h,a);if(p&&(Hx("0x81")==p.subType||Hx("0x47")==p[Hx("0x1f")])){const e=this[Hx("0x75")](p);for(const n of m){const o=t.createRangeOn(n),i=r[Hx("0x23")](n),a=n[Hx("0x8a")](x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&p[Hx("0x27")](o)}}}))}))}function i(n){const o=Array[Hx("0x5d")](e[Hx("0x4d")]())[Hx("0x58")]((t=>s.LiveRange[Hx("0x87")](t)));t.model.change((e=>{const r=e[Hx("0x22")];n=n[Hx("0x36")]((t=>"$graveyard"!=t.root[Hx("0x86")])),e.setSelection(n),t[Hx("0x73")][Hx("0x28")](Hx("0x51"))[Hx("0x7b")](),t[Hx("0x7")](Hx("0x51"),{forceDefaultExecution:!0}),t[Hx("0xd")][Hx("0x3a")]((()=>{t[Hx("0xd")][Hx("0x3a")](r,(t=>{const e=o[Hx("0x36")]((t=>Hx("0x38")!=t[Hx("0x40")].rootName));e.length>0&&t[Hx("0x46")](e);for(const t of o)t[Hx("0x19")]()}))}))}))}function a(n){t[Hx("0xd")].change((o=>{const r=Array[Hx("0x5d")](e[Hx("0x4d")]())[Hx("0x58")]((t=>s.LiveRange.fromRange(t))),i=[];for(const t of n)for(const e of t[Hx("0x17")]({shallow:!0}))i[Hx("0x57")](e);for(const e of i)"$graveyard"!=e[Hx("0x40")][Hx("0x86")]&&(o[Hx("0x46")](o[Hx("0x2")](e,0)),t.commands[Hx("0x28")]("removeTableColumn")[Hx("0x7b")](),t.execute(Hx("0x8"),{forceDefaultExecution:!0}));const x=r[Hx("0x36")]((t=>Hx("0x38")!=t[Hx("0x40")][Hx("0x86")]));x[Hx("0xf")]>0&&o[Hx("0x46")](x);for(const t of r)t[Hx("0x19")]()}))}function c(t,e){return e[Hx("0x2b")]((e=>t[Hx("0x4b")]((t=>t[Hx("0x7d")][Hx("0x6e")](e[Hx("0x53")])||e.end[Hx("0x6e")](t[Hx("0x53")])))))}function l(t,e){return t[Hx("0x4b")]((t=>e[Hx("0x4b")]((e=>t[Hx("0x7d")].isTouching(e.start)))))}t[Hx("0x88")][Hx("0x10")].on(Hx("0x39"),((t,e,n)=>{if(!n[Hx("0x1")][Hx("0x11")])return;const o=e[Hx("0x33")];if(!o)return;const r=n[Hx("0x41")][Hx("0x4f")](o);function i(t){return Array[Hx("0x71")](t)?t:[t]}r&&"tableCell"===o[Hx("0x1a")]&&(0,x.setHighlightHandling)(r,n[Hx("0x7c")],((t,e,n)=>n[Hx("0xb")](i(e.classes),t)),((t,e,n)=>n[Hx("0x12")](i(e.classes),t)))}),{priority:Hx("0x89")}),o[Hx("0x44")][Hx("0x61")]((t=>{if(Hx("0x55")!=t.type&&Hx("0x3f")!=t[Hx("0x79")])return;const e=t.getContainedElement();if(null!=e&&e.is(Hx("0x6d"),Hx("0x34"))){if(Hx("0x55")==t.type){const e=t[Hx("0x17")]()[Hx("0x36")]((t=>t.is(Hx("0x62"))))[Hx("0x58")]((t=>t[Hx("0x88")]));if(e[Hx("0xf")])return{type:Hx("0x55"),content:Qo(n,"*Insert:* %0",Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Hx("0x18")](" ")+'"'))}}if("deletion"==t[Hx("0x79")]){const e=t[Hx("0x17")]()[Hx("0x36")]((t=>t.is(Hx("0x62")))).map((t=>t[Hx("0x88")]));if(e[Hx("0xf")])return{type:Hx("0x3f"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x14"),'"'+e[Hx("0x18")](" ")+'"'))}}}})),o[Hx("0x44")][Hx("0x61")]((t=>{if(Hx("0x81")==t[Hx("0x1f")]){const e=t[Hx("0x17")]()[Hx("0x36")]((t=>t.is(Hx("0x62")))).map((t=>t[Hx("0x88")])),o=this[Hx("0x75")](t),r=o[Hx("0x32")]-o.minRow+1;if("insertion"==t[Hx("0x79")])return e[Hx("0xf")]?{type:Hx("0x55"),content:Qo(n,Hx("0x72"),Qo(n,Hx("0x3e"),[r,'"'+e[Hx("0x18")](" ")+'"']))}:{type:"insertion",content:Qo(n,Hx("0x72"),Qo(n,Hx("0x37"),r))};if(Hx("0x3f")==t[Hx("0x79")])return e[Hx("0xf")]?{type:Hx("0x3f"),content:Qo(n,Hx("0x4e"),Qo(n,Hx("0x3e"),[r,'"'+e[Hx("0x18")](" ")+'"']))}:{type:"deletion",content:Qo(n,Hx("0x4e"),Qo(n,"ELEMENT_TABLE_ROW",r))}}if(Hx("0x47")==t[Hx("0x1f")]){const e=t[Hx("0x17")]().filter((t=>t.is("$textProxy")))[Hx("0x58")]((t=>t[Hx("0x88")])),o=this[Hx("0x75")](t),r=o[Hx("0x80")]-o[Hx("0xe")]+1;if(Hx("0x55")==t[Hx("0x79")])return e[Hx("0xf")]?{type:Hx("0x55"),content:Qo(n,Hx("0x72"),Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Qo(n,"*Insert:* %0",Qo(n,Hx("0x1b"),r))};if(Hx("0x3f")==t.type)return e.length?{type:Hx("0x3f"),content:Qo(n,Hx("0x4e"),Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e[Hx("0x18")](" ")+'"']))}:{type:Hx("0x3f"),content:Qo(n,Hx("0x4e"),Qo(n,Hx("0x1b"),r))}}})),o._suggestionFactory[Hx("0x7e")]("insertion",Hx("0x81"),"discard",i),o[Hx("0x65")][Hx("0x7e")](Hx("0x3f"),Hx("0x81"),Hx("0x43"),i),o._suggestionFactory[Hx("0x7e")](Hx("0x55"),Hx("0x47"),Hx("0x3d"),a),o[Hx("0x65")][Hx("0x7e")]("deletion","tableColumn","accept",a),o[Hx("0x65")][Hx("0x7e")](Hx("0x55"),Hx("0x47"),Hx("0x18"),c),o[Hx("0x65")].registerCustomCallback(Hx("0x3f"),"tableColumn",Hx("0x18"),c),o[Hx("0x65")].registerCustomCallback(Hx("0x55"),Hx("0x81"),Hx("0x18"),l),o[Hx("0x65")][Hx("0x7e")](Hx("0x3f"),Hx("0x81"),Hx("0x18"),l)}[Hx("0x50")](){const t=this[Hx("0x6c")],e=t[Hx("0xd")][Hx("0x66")].selection;return(n,o)=>{t[Hx("0xd")].change((r=>{const{commandName:i,commandParams:x}=o;let a=n[0][Hx("0x7d")].nodeBefore;x&&x[0]&&!1===x[0][Hx("0x2d")]&&(a=n[0][Hx("0x53")][Hx("0x5e")]);const c=r[Hx("0x35")](a);if(Hx("0x38")==c[Hx("0x40")].rootName)return;const l=Array[Hx("0x5d")](e[Hx("0x4d")]())[Hx("0x58")]((t=>s.LiveRange[Hx("0x87")](t)));r[Hx("0x46")](c),t[Hx("0x73")][Hx("0x28")](i)[Hx("0x7b")](),x[Hx("0x57")]({forceDefaultExecution:!0}),t[Hx("0x7")](i,...x);const u=l[Hx("0x36")]((t=>Hx("0x38")!=t[Hx("0x40")][Hx("0x86")]));u[Hx("0xf")]>0&&r[Hx("0x46")](u);for(const t of l)t[Hx("0x19")]()}))}}[Hx("0x82")](t){const e=this[Hx("0x6c")].plugins[Hx("0x28")](Hx("0x54"));let n=Number[Hx("0x1c")],o=Number[Hx("0x3")],r=Number[Hx("0x1c")],i=Number[Hx("0x3")];for(const s of t){if(Hx("0x38")==s[Hx("0x40")][Hx("0x86")])continue;const{row:t,column:x}=e.getCellLocation(s),a=s.hasAttribute(Hx("0x4c"))?s[Hx("0x8a")](Hx("0x4c"))-1:0,c=s[Hx("0x68")]("colspan")?s[Hx("0x8a")](Hx("0x15"))-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}}_setupColumnsRowsFixing(){const t=this.editor,e=t[Hx("0x5a")].get(Hx("0x56")),n=t.plugins.get(Hx("0x54"));t[Hx("0xd")][Hx("0x66")].on(Hx("0x6"),(()=>{const n=Array.from(t.model[Hx("0x66")].differ[Hx("0x4")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:i}=e._splitMarkerName(t);if(Hx("0x5b")!=n)continue;if(null!=o[Hx("0x20")])continue;const s=e[Hx("0x48")](r);this[Hx("0x6a")][Hx("0x30")](i)&&this[Hx("0x7f")][Hx("0x13")](s)}}),{priority:Hx("0x31")});const o=(t,e)=>{let o=!1;const r=e[Hx("0x74")](t),i=t[Hx("0x5c")]("table"),s=n[Hx("0x23")](t);for(const e of this[Hx("0x7f")]){const n=e.subType,x=n[Hx("0x83")](Hx("0x0")),a=n.substr(x?10:5),c=a[Hx("0x2a")](),l=c[Hx("0x26")](0,3)+"span",u=Hx("0x2f")+a,d=Hx("0xc")+a;if(!e[Hx("0x42")])continue;if(i!=e[Hx("0x6b")]().start[Hx("0x5c")](Hx("0x34")))continue;if(e.isIntersectingWithRange(r))continue;const g=t[Hx("0x68")](l)?t.getAttribute(l)-1:0,f=this[Hx("0x75")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x27")](r),o=!0)}return o};t[Hx("0xd")][Hx("0x66")][Hx("0x16")]((e=>{let n=!1;for(const r of t[Hx("0xd")][Hx("0x66")][Hx("0x1d")].getChanges())if(Hx("0x6f")==r.type)if("tableRow"==r.name)for(const t of r[Hx("0x85")].nodeAfter[Hx("0x63")]())n=n||o(t,e);else"tableCell"==r.name&&(n=n||o(r.position[Hx("0x5e")],e));return n}))}[Hx("0x75")](t){return this[Hx("0x82")](t.getRanges()[Hx("0x58")]((t=>t.start[Hx("0x5e")])))}}function Wx(t){return Array[Hx("0x5d")](new Set(t)[Hx("0x24")]())}const Kx=["detach","from","table","model","TableUtils","setSelection","value","set:isEnabled","createTableWalker","find","_areSelectedCellsMergable","commandName","locale","return","createRangeOn","element","subType","horizontally","getRanges","_areMergableCells","filter","tableCell","refresh","add","mergeTableCellDown","map","getSelectionAffectedTableCells","commands","size","document","getFirstPosition","cell","has","markBlockFormat","registerDescriptionCallback","_acceptFormatSuggestionCallbackFactory","getSuggestions","stop","mergeTableCellUp","author","containsRange","_suggestionFactory","enableCommand","direction","formatBlock","type","formatInline","low","length","insertion","mergeTableCellLeft","accept","selection","editor","plugins","splitTableCellVertically","deletion","_descriptionFactory","get","getAncestors","change","mergeTableCellRight","mergeTableCells","splitTableCellHorizontally","isInContent","*Merge cells*","_isForcedDefaultExecutionBlock","$graveyard","format","execute"];var qx,$x;qx=Kx,$x=317,function(t){for(;--t;)qx.push(qx.shift())}(++$x);const Xx=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get requires(){return[zx]}afterInit(){const t=this[Xx("0x10")],e=t[Xx("0x24")][Xx("0x3e")][Xx("0xf")],n=t[Xx("0x2d")];if(!t[Xx("0x11")][Xx("0x41")]("TableEditing"))return;const o=t[Xx("0x11")][Xx("0x15")]("TrackChangesEditing"),r=t[Xx("0x11")][Xx("0x15")](Xx("0x25")),i=t[Xx("0x11")][Xx("0x15")](zx);i._tablePostFixingSubtypes.push("mergeTableCells"),o[Xx("0x5")](Xx("0x19"),(()=>{const e=r[Xx("0x3b")](t.model[Xx("0x3e")][Xx("0xf")]);t.model[Xx("0x17")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:Xx("0x19"),commandParams:[]},[],Xx("0x19"))}))})),t.commands.get("mergeTableCells").on(Xx("0x20"),((e,n)=>{t[Xx("0x3c")].get("trackChanges")[Xx("0x27")]&&(n[Xx("0xb")]>0&&n[n[Xx("0xb")]-1]&&n[n.length-1].forceDefaultExecution||o[Xx("0x1d")]||this[Xx("0x2b")]()||e[Xx("0x0")]())}),{priority:"highest"});for(const e of[Xx("0x1"),"mergeTableCellRight",Xx("0x39"),Xx("0xd")]){const n=t[Xx("0x3c")][Xx("0x15")](e);o[Xx("0x5")](e,(()=>{const e=t[Xx("0x24")][Xx("0x3e")][Xx("0xf")][Xx("0x3f")]().getAncestors()[Xx("0x2a")]((t=>t.is("element",Xx("0x36")))),r=n.value;t[Xx("0x24")].change((()=>{o.markMultiRangeBlockFormat([e,r],{commandName:Xx("0x19"),commandParams:[]},[],Xx("0x19"))}))}))}for(const e of[Xx("0x12"),Xx("0x1a")]){const n=t[Xx("0x3c")][Xx("0x15")](e);o[Xx("0x5")](e,(()=>{const i=r.getSelectionAffectedTableCells(t[Xx("0x24")][Xx("0x3e")][Xx("0xf")])[0],s=i.findAncestor(Xx("0x23")),{column:x,row:a}=r.getCellLocation(i);let c=[];if(Xx("0x32")==n[Xx("0x6")]){const t=r[Xx("0x29")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Xx("0x22")](t).map((t=>t.cell))}else{const t=r.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array[Xx("0x22")](t)[Xx("0x3a")]((t=>t[Xx("0x40")]))}t[Xx("0x24")][Xx("0x17")]((t=>{o[Xx("0x42")](t[Xx("0x2f")](i),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Xx("0x43")]((t=>{if(Xx("0x7")!=t[Xx("0x8")]&&Xx("0x9")!=t.type)return;const{data:e}=t;return e&&Xx("0x19")==e[Xx("0x2c")]?{type:Xx("0x1f"),content:Qo(n,Xx("0x1c"))}:void 0})),o[Xx("0x14")][Xx("0x43")]((t=>{if(Xx("0x7")!=t[Xx("0x8")]&&"formatInline"!=t.type)return;const{data:e}=t;return e?Xx("0x12")==e[Xx("0x2c")]?{type:Xx("0x1f"),content:Qo(n,"*Split cell:* vertically")}:Xx("0x1a")==e.commandName?{type:Xx("0x1f"),content:Qo(n,"*Split cell:* horizontally")}:void 0:void 0}));const x=i[Xx("0x44")]();for(const t of["mergeTableCellUp","mergeTableCellRight",Xx("0x39"),Xx("0xd")])o[Xx("0x4")].registerCustomCallback(Xx("0x7"),t,Xx("0xe"),x);for(const t of[Xx("0x12"),Xx("0x1a")])o[Xx("0x4")].registerCustomCallback("formatBlock",t,"accept",x);o._suggestionFactory.registerCustomCallback(Xx("0x7"),"mergeTableCells","accept",(n=>{t[Xx("0x24")][Xx("0x17")]((o=>{const r=Array[Xx("0x22")](e[Xx("0x33")]())[Xx("0x3a")]((t=>s.LiveRange.fromRange(t)));o[Xx("0x26")](n),t.commands[Xx("0x15")](Xx("0x19"))[Xx("0x37")](),t[Xx("0x20")]("mergeTableCells",{forceDefaultExecution:!0});const i=r[Xx("0x35")]((t=>Xx("0x1e")!=t.root.rootName));i.length>0&&o[Xx("0x26")](i);for(const t of r)t[Xx("0x21")]()}))}));for(const e of[Xx("0x1"),Xx("0x39"),Xx("0xd"),Xx("0x18")]){const n=t.commands[Xx("0x15")](e);n.on(Xx("0x28"),((e,o,r)=>{if(r){const o=t[Xx("0x24")].document.selection.getFirstPosition()[Xx("0x16")]()[Xx("0x2a")]((t=>t.is(Xx("0x30"),Xx("0x36"))));this._areMergableCells(n[Xx("0x27")],o)||(e[Xx("0x2e")]=!1,e[Xx("0x0")]())}}),{priority:Xx("0xa")})}}_areSelectedCellsMergable(){const t=this[Xx("0x10")][Xx("0x3c")][Xx("0x15")](Xx("0x19")),e=this.editor.plugins[Xx("0x15")]("TableUtils");if(!t.isEnabled)return!1;const n=e[Xx("0x3b")](this[Xx("0x10")][Xx("0x24")][Xx("0x3e")][Xx("0xf")]);for(const t of n)for(const e of n)if(t!=e&&!this[Xx("0x34")](t,e))return!1;return!0}[Xx("0x34")](t,e){const n=this[Xx("0x10")][Xx("0x11")][Xx("0x15")]("TrackChangesEditing"),o=this[Xx("0x10")][Xx("0x24")][Xx("0x2f")](t),r=this.editor[Xx("0x24")][Xx("0x2f")](e),i=new Set,s=new Set;for(const t of n[Xx("0x45")]())if((Xx("0xc")==t[Xx("0x8")]||Xx("0x13")==t.type||Xx("0x19")==t[Xx("0x31")])&&t[Xx("0x1b")])for(const e of t[Xx("0x33")]())e[Xx("0x3")](o,!0)&&i[Xx("0x38")](t.type+":"+t[Xx("0x2")].id),e[Xx("0x3")](r,!0)&&s.add(t[Xx("0x8")]+":"+t[Xx("0x2")].id);if(i.size!=s[Xx("0x3d")])return!1;for(const t of i)if(!s[Xx("0x41")](t))return!1;return!0}}const Yx=["format","name","end","FORMAT_REGULAR_ROW","commandName","_handleLegacySuggestions","toViewElement","showSuggestionHighlights","formatBlock","markerRange","registerDescriptionCallback","writer","ck-suggestion-marker-","consumable","nodeBefore","addClass","downcastDispatcher","type","requires","TableEditing","TrackChangesEditing","accept","setAttribute","registerCustomCallback","nodeAfter","setTableRowHeader","mapper","data-suggestion","commandParams","markerName","removeMarker:suggestion","_descriptionFactory","editor","cell","FORMAT_HEADER_COLUMN","getSuggestion","bindElementToMarker","activeMarkers","parent","TableUtils","registerAttributeLabel","setTableColumnHeader","headingColumns","get","markerNameToElements","unbindElementFromMarkerName","consume","FORMAT_REGULAR_COLUMN","data","includes","_acceptFormatSuggestionCallbackFactory","_splitMarkerName","_enableDefaultAttributesIntegration","FORMAT_HEADER_ROW","removeClass","headingRows","removeAttribute","afterInit","highest","ck-suggestion-marker--active","has","plugins","forceValue","locale","addMarker:suggestion","getCellLocation"];var Jx,Qx;Jx=Yx,Qx=347,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("0x1")](){return[zx]}[ta("0x28")](){const t=this[ta("0xf")];if(!t[ta("0x2c")][ta("0x2b")](ta("0x2")))return;const e=t[ta("0x2e")],n=t[ta("0x2c")][ta("0x1a")]("TrackChangesEditing");n[ta("0x23")](ta("0x8"),[],[ta("0x26")]),n._enableDefaultAttributesIntegration("setTableColumnHeader",[],[ta("0x19")]),n._descriptionFactory.registerAttributeLabel(ta("0x26"),Qo(e,ta("0x24"))),n[ta("0xe")][ta("0x17")](ta("0x19"),Qo(e,ta("0x11"))),this[ta("0x36")]()}[ta("0x36")](){const t=this[ta("0xf")][ta("0x2c")].get("TrackChangesEditing"),e=this[ta("0xf")][ta("0x2c")].get(ta("0x16")),n=this.editor[ta("0x2c")][ta("0x1a")](zx)[ta("0x21")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(r,i,s)=>{const{type:x,id:a}=t[ta("0x22")](i.markerName),c=t[ta("0x12")](a),l=c[ta("0x1f")];if(ta("0x39")!=c[ta("0x0")]||!l||ta("0x18")!=l.commandName)return;if(i.item)return void r.stop();if(!s[ta("0x3e")][ta("0x1d")](i[ta("0x3a")],r[ta("0x32")]))return;const u=i.markerRange.start[ta("0x7")],d=i.markerRange[ta("0x33")][ta("0x3f")],g=u[ta("0x15")][ta("0x15")],{column:f}=e[ta("0x30")](u),{column:m}=e[ta("0x30")](d);for(let r=f;r<=m;r++){const c=e.createTableWalker(g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[ta("0x10")],c=s.mapper[ta("0x37")](r);s.writer[ta("0x40")](ta("0x3d")+x,c),o&&s[ta("0x3c")][ta("0x5")](ta("0xa"),a,c),s[ta("0x9")][ta("0x13")](c,i[ta("0xc")]),n&&(t[ta("0x14")][ta("0x20")](i[ta("0xc")])?s[ta("0x3c")][ta("0x40")](ta("0x2a"),c):s[ta("0x3c")][ta("0x25")]("ck-suggestion-marker--active",c))}}}}t._suggestionFactory[ta("0x6")](ta("0x39"),ta("0x8"),ta("0x4"),n),t._suggestionFactory[ta("0x6")]("formatBlock",ta("0x18"),ta("0x4"),n),this[ta("0xf")].editing[ta("0x41")].on("addMarker:suggestion",o(),{priority:ta("0x29")}),this.editor[ta("0x1f")][ta("0x41")].on(ta("0x2f"),((t,e,n)=>{n.options[ta("0x38")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this[ta("0xf")].editing[ta("0x41")].on(ta("0xd"),((e,n,o)=>{const{type:r,id:i}=t[ta("0x22")](n[ta("0xc")]),s=t[ta("0x12")](i),x=s[ta("0x1f")];if(ta("0x39")!=s[ta("0x0")]||!x||ta("0x18")!=x[ta("0x35")])return;const a=o[ta("0x9")][ta("0x1b")](n[ta("0xc")]);if(a)for(const t of a)o.writer[ta("0x25")]("ck-suggestion-marker-"+r,t),o[ta("0x3c")][ta("0x25")](ta("0x2a"),t),o[ta("0x3c")][ta("0x27")]("data-suggestion",t),o[ta("0x9")][ta("0x1c")](t,n[ta("0xc")])}),{priority:ta("0x29")}),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ta("0xf")],e=t[ta("0x2e")];function n(t){return{type:ta("0x31"),content:Qo(e,"*Format:* %0",t)}}t.plugins[ta("0x1a")](ta("0x3"))[ta("0xe")][ta("0x3b")]((t=>{if(ta("0x39")!=t[ta("0x0")])return;const{data:o}=t;if(o){if(ta("0x8")==o[ta("0x35")]){const t=o[ta("0xb")][0][ta("0x2d")];return n(Qo(e,ta(t?"0x24":"0x34")))}if("setTableColumnHeader"==o[ta("0x35")]){const t=o[ta("0xb")][0][ta("0x2d")];return n(Qo(e,ta(t?"0x11":"0x1e")))}}}))}}const na=["author","wrap","TableClipboard","registerCustomCallback","documentSelection","getAttributes","subType","tablePaste","accept","paragraph","from","insertContent","commands","clipboardOutput","end","differ","*Replace table cells*","getChanges","unwrap","markMultiRangeBlockFormat","removeMarker","getChangedMarkers","nodeAfter","discard","name","document","getRange","_replaceTableSlotCell","getSuggestionCallback","set","join","batch","low","createRangeOn","editingDowncast","tablePasteChainId","last","insertRows","add","tableCell","register","insertion","afterInit","createTableWalker","createElement","registerPostFixer","tableCellBorderColor","oldRange","getSelectionAffectedTableCells","has","rootName","fromEntries","getShiftedBy","nextSibling","insertionRanges","columnInsertionRanges","markMultiRangeDeletion","rowInsertionRanges","tablePasteCell","listenTo","conversion","registerDescriptionCallback","_splitMarkerName","tablePasteColumn","suggestionUnloaded","containsRange","get","root","hasSuggestion","deletionRanges","filter","TrackChangesEditing","suggestion","markers","rows","change","markerToHighlight","type","tableCellHorizontalAlignment","cells","getColumnIndexes","find","columnInsertionIndexes","length","options","previous","getRows","push","createRangeIn","requires","content","findAncestor","first","deletion","getItems","map","includes","isEqual","$graveyard","getMarkers","keys","reduce","value","tableCellPadding","getTableIfOnlyTableInContent","createRange","endRow","insert","editor","suggestion:formatBlock:tablePasteCell","entries","startsWith","stop","isEmpty","plugins","tablePasteRow","getSuggestion","elementToElement","getRanges","position","formatBlock","isInContent","getSuggestions","column","remove","locale","for","attributes","activeMarkers","markerName","trackChanges","setAttribute","table","removeColumns","_isForcedDefaultExecutionBlock","markMultiRangeInsertion","newRange","tableCellBorderWidth","selection","view","_suggestionFactory","high","editing","model","Users","tableCellSuggestion","suggestion-td","markerAttributes","updateMarker","getContainedElement","rowInsertionIndexes","element","start","setAttributes","_getCoordsForCells"];var oa,ra;oa=na,ra=403,function(t){for(;--t;)oa.push(oa.shift())}(++ra);const ia=function(t,e){return na[t-=0]},sa=[ia("0x2c"),ia("0x6c"),"tableCellBorderStyle",ia("0x8c"),"tableCellVerticalAlignment","tableCellBackgroundColor",ia("0xa")],xa=Object[ia("0x71")](sa[ia("0x2")]((t=>[t,null])));class aa extends t.Plugin{static get[ia("0x97")](){return[zx]}[ia("0x68")](){const t=this[ia("0xf")];if(!t[ia("0x15")].has(ia("0x40")))return;const n=t[ia("0x15")].get(ia("0x85")),o=t.plugins.get("TableUtils"),r=t[ia("0x15")].get(zx),i=t[ia("0x15")][ia("0x80")]("TableClipboard");r._tablePostFixingSubtypes.push("tablePasteRow","tablePasteColumn"),t[ia("0x32")].schema[ia("0x66")](ia("0x34"),{allowIn:ia("0x65"),allowContentOf:ia("0x65"),isLimit:!0}),t[ia("0x7a")][ia("0x18")]({model:ia("0x34"),view:ia("0x35")});let s=null;t[ia("0x32")].on("insertContent",((r,x)=>{const[a,c]=x,l=x[x[ia("0x91")]-1];l&&l.forceDefaultExecution||n[ia("0x29")]||this[ia("0xf")][ia("0x4a")][ia("0x80")](ia("0x25"))[ia("0x9")]&&function(t,e,n,o,r){if(e&&!e.is(ia("0x42")))return!1;const i=r[ia("0xb")](t,n);if(!i||!la(i,void 0,o))return!1;const s=o[ia("0x6e")](n[ia("0x57")][ia("0x2d")]);if(!s[ia("0x91")])return!1;const x=s[0][ia("0x99")](ia("0x27")),a=o.getRowIndexes(s),c=o[ia("0x8e")](s),l={startRow:a[ia("0x9a")],endRow:a[ia("0x62")],startColumn:c.first,endColumn:c.last};return 1==s[ia("0x91")]&&(l[ia("0xd")]+=o[ia("0x94")](i)-1,l.endColumn+=o.getColumns(i)-1),la(x,l,o)}(a,c,t[ia("0x32")],o,i)&&(r[ia("0x13")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ia("0x32")][ia("0x89")]((()=>{t.model[ia("0x49")](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("0x91")]&&n.markMultiRangeInsertion(r,ia("0x16"),{tablePasteChainId:o}),i[ia("0x91")]&&n[ia("0x2a")](i,ia("0x7d"),{tablePasteChainId:o}),a.length&&n[ia("0x2a")](a,ia("0x45"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[ia("0x76")](c,ia("0x45"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ia("0x51")](l[ia("0x2")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u[ia("0x6")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const i=t[ia("0x32")][ia("0x5f")](o),s=e[ia("0x8f")]((t=>t[ia("0x58")]()[ia("0x4")](i)));s&&n[ia("0x95")]([s[ia("0x56")],r])}n[ia("0x91")]&&u[ia("0x26")](ia("0x36"),Object[ia("0x71")](n))}s=null})))}),{priority:e.priorities[ia("0x30")]+10}),t[ia("0x15")][ia("0x80")]("TableClipboard").on(ia("0x59"),((t,e)=>{const[n,o,,r]=e;if(!s)return;t[ia("0x13")]();const i=n.cell,x=o,a=ca(i),c=ca(x);t.return=i;let l=null,u=null;if(c||a)if(a&&!c){r.remove(i.getChild(0));for(const t of Array.from(x.getChildren()))r[ia("0xe")](t,i,ia("0x4c"));const t=s[ia("0x39")][ia("0x3")](n.row),e=s[ia("0x90")].includes(n[ia("0x1e")]);t||e||(l=r[ia("0x96")](i))}else c&&!a&&(u=r.createRangeIn(i));else{const t=r[ia("0x6a")](ia("0x34")),e=r[ia("0x6a")](ia("0x34"));r[ia("0x3f")](r[ia("0x96")](i),e),r[ia("0xe")](t,i,0);for(const e of Array[ia("0x48")](x.getChildren()))r.insert(e,t,ia("0x4c"));l=r[ia("0x5f")](t),u=r[ia("0x5f")](e)}const d=Array[ia("0x48")](x[ia("0x43")]())[ia("0x84")]((([t])=>sa[ia("0x3")](t)));s[ia("0x8d")][ia("0x95")]({element:i,attributes:d[ia("0x91")]?Object[ia("0x71")](d):null}),l&&s[ia("0x74")][ia("0x95")](l),u&&s[ia("0x83")][ia("0x95")](u)}),{priority:ia("0x30")}),o.on("insertColumns",((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i.columns||1;s.columnInsertionIndexes=new Array(a).fill(x)[ia("0x2")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startColumn:x,endColumn:x+a-1}))s[ia("0x75")][ia("0x95")](t[ia("0x32")][ia("0x5f")](e))}),{priority:ia("0x5e")}),o.on(ia("0x63"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x88")]||1;s[ia("0x39")]=new Array(a).fill(x)[ia("0x2")](((t,e)=>t+e));for(const{cell:e}of o[ia("0x69")](r,{startRow:x,endRow:x+a-1}))s[ia("0x77")][ia("0x95")](t[ia("0x32")].createRangeOn(e))}),{priority:ia("0x5e")}),n._descriptionFactory[ia("0x7b")]((e=>{if(e[ia("0x44")]&&e.subType[ia("0x12")](ia("0x45")))return e.previous?{}:{type:ia("0x67"),content:Qo(t[ia("0x20")],ia("0x4e"))}}));const x=()=>!1;for(const t of["tablePaste",ia("0x7d"),ia("0x16"),"tablePasteCell"])n[ia("0x2f")][ia("0x41")](ia("0x67"),t,ia("0x5c"),x),n[ia("0x2f")].registerCustomCallback("deletion",t,ia("0x5c"),x),n._suggestionFactory[ia("0x41")](ia("0x1b"),t,ia("0x5c"),x);n[ia("0x2f")][ia("0x41")](ia("0x1b"),ia("0x78"),ia("0x55"),x),n[ia("0x2f")][ia("0x41")](ia("0x1b"),"tablePasteCell","accept",((e,n,o)=>{const r=e[ia("0x2")]((t=>t[ia("0x38")]()))[ia("0x84")]((t=>t)),i=new Map(r[ia("0x2")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s.cells)e&&i[ia("0x5b")](t,e);else if(o&&o[ia("0x36")])for(const[e,n]of Object[ia("0x11")](o[ia("0x36")])){const o=t[ia("0x32")][ia("0x87")][ia("0x80")](e),r=o?o[ia("0x58")]()[ia("0x38")]():null;r&&i[ia("0x5b")](r,n)}t.model[ia("0x89")]((t=>{for(const[e,n]of i)t[ia("0x3c")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ia("0x2f")][ia("0x41")](e,ia("0x45"),o,((r,i,s)=>{t[ia("0x32")].change((t=>{const x=[];for(const t of r){const e=t[ia("0x3b")][ia("0x54")];e.is(ia("0x3a"),ia("0x34"))&&x[ia("0x95")](e)}n[ia("0x2f")][ia("0x5a")](e,null,o)(r,i,s);for(const e of x)ia("0x5")!=e[ia("0x81")][ia("0x70")]&&t[ia("0x50")](e)}))}))};a(ia("0x67"),ia("0x46")),a(ia("0x67"),ia("0x55")),a(ia("0x0"),ia("0x46")),a(ia("0x0"),ia("0x55")),n[ia("0x2f")][ia("0x41")]("insertion",ia("0x16"),"discard",(t=>{const e=t[ia("0x2")]((t=>t[ia("0x38")]())),n=e[0].findAncestor("table"),{minRow:i,maxRow:s}=r._getCoordsForCells(e);o.removeRows(n,{at:i,rows:s-i+1})})),n._suggestionFactory[ia("0x41")](ia("0x67"),"tablePasteColumn","discard",(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][ia("0x99")](ia("0x27")),{minColumn:i,maxColumn:s}=r[ia("0x3d")](e);o[ia("0x28")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0x44")]||!e.subType.startsWith(ia("0x45")))return;const o=e[ia("0x22")][ia("0x61")],r=n[ia("0x1d")]().filter((t=>t.isInContent&&t[ia("0x22")]&&t[ia("0x22")][ia("0x61")]==o));r[ia("0x91")]&&e.getAllAdjacentSuggestions()[ia("0x91")]!=r[ia("0x91")]&&r[ia("0x8")](((t,e)=>(t.next=e,e[ia("0x93")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[ia("0x24")]),r=["ck-suggestion-marker","ck-suggestion-marker-insertion"],i=n[ia("0x23")][ia("0x3")](t[ia("0x24")]);return i&&r[ia("0x95")]("ck-suggestion-marker--active"),{classes:r,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:ia("0x30")}),n.on(ia("0x7e"),c,{priority:"high"}),t.model[ia("0x57")][ia("0x6b")]((()=>{let e=!1;const o=Array.from(t.model[ia("0x57")][ia("0x4d")][ia("0x53")]());for(const{name:r,data:i}of o){const{group:o,type:s,id:x}=n._splitMarkerName(r);if(ia("0x86")!=o||"deletion"!=s||i.oldRange)continue;if(!n[ia("0x82")](x))continue;const a=n[ia("0x17")](x)[ia("0x19")](),c=t.plugins[ia("0x80")]("Users").me;for(const t of n.getSuggestions())if(t[ia("0x1c")]&&t[ia("0x3e")]==c&&ia("0x1b")==t[ia("0x8b")]&&ia("0x78")==t[ia("0x44")]&&t.getRanges().every((t=>a.some((e=>e[ia("0x7f")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[ia("0x1c")]&&(n[ia("0x55")](),e=!0)}return e})),t[ia("0x32")][ia("0x57")][ia("0x6b")]((e=>{const o=t[ia("0x4a")][ia("0x80")]("redo");if(!o||!o._createdBatches[ia("0x6f")](e[ia("0x5d")]))return!1;let r=!1;const i=t[ia("0x15")][ia("0x80")](ia("0x33")).me,s=t[ia("0x32")][ia("0x57")][ia("0x4d")][ia("0x4f")](),x=Array[ia("0x48")](t[ia("0x32")].document[ia("0x4d")].getChangedMarkers())[ia("0x84")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:s}=n[ia("0x7c")](t);return"suggestion"==o&&ia("0x45")==r&&s==i.id&&!e[ia("0x6d")]}));for(const t of s){if(ia("0xe")!=t[ia("0x8b")]||ia("0x34")!=t[ia("0x56")]||1!=t[ia("0x91")])continue;const n=e[ia("0xc")](t[ia("0x1a")],t[ia("0x1a")][ia("0x72")](1));if(!x[ia("0x8f")]((({data:t})=>t[ia("0x2b")][ia("0x4")](n))))for(const{name:t,data:o}of x)if(n[ia("0x7f")](o[ia("0x2b")])){e[ia("0x37")](t,{range:n}),r=!0;break}}return r})),t[ia("0x32")][ia("0x57")][ia("0x6b")]((e=>{let o=!1;const r=t[ia("0x15")][ia("0x80")](ia("0x33")).me,i=n[ia("0x1d")]()[ia("0x84")]((t=>t[ia("0x1c")]&&t[ia("0x3e")]==r)),s=new Set,x=new Set;for(const t of i)if(ia("0x45")==t.subType)for(const e of t.getMarkers()){const n=e[ia("0x58")]()[ia("0x38")]();if(n)if(n.is(ia("0x3a"),ia("0x34"))&&ca(n)){t[ia("0x52")](e.name),s.add(n),o=!0;const r=n[ia("0x73")],i=n.previousSibling,a=r&&r.is(ia("0x3a"),ia("0x34")),c=i&&i.is(ia("0x3a"),ia("0x34"));a&&!s[ia("0x6f")](r)&&x.add(r),c&&!s[ia("0x6f")](i)&&x[ia("0x64")](i)}else n.is(ia("0x3a"),ia("0x47"))&&n[ia("0x14")]&&(t[ia("0x52")](e[ia("0x56")]),o=!0)}else if(ia("0x78")==t[ia("0x44")]){if(!t[ia("0x22")]||!t[ia("0x22")][ia("0x61")])continue;const e=t[ia("0x22")][ia("0x36")];if(e&&Object[ia("0x7")](e)[ia("0x91")])continue;const n=t[ia("0x22")][ia("0x61")];let r=!0,s=!0;for(const e of i)if(e[ia("0x44")]&&e[ia("0x44")][ia("0x12")](ia("0x45"))){if(!e[ia("0x22")].tablePasteChainId){s=!1;break}if(e.id!=t.id&&e[ia("0x22")].tablePasteChainId==n){r=!1;break}}s&&r&&(t.removeMarkers(),o=!0)}for(const t of s)e[ia("0x1f")](t);for(const t of x)e[ia("0x50")](t);return o})),t[ia("0x7a")][ia("0x21")](ia("0x60"))[ia("0x8a")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:ia("0x30")}),t.conversion.for("dataDowncast")[ia("0x8a")]({model:ia("0x10"),view:(t,e)=>e[ia("0x92")].showSuggestionHighlights?l(t,!1):null,converterPriority:ia("0x30")});const u=t[ia("0x31")][ia("0x2e")];this[ia("0x79")](u[ia("0x57")],ia("0x4b"),((t,e)=>{const n=[];for(const t of u.createRangeIn(e[ia("0x98")])[ia("0x1")]())t.is("element","suggestion-td")&&n.push(t);u[ia("0x89")]((t=>{for(const e of n)t.move(t[ia("0x96")](e),t.createPositionBefore(e)),t[ia("0x1f")](e)}))}))}}function ca(t){if(t[ia("0x14")])return!0;const e=t.getChild(0);return e.is(ia("0x3a"),ia("0x47"))&&e[ia("0x14")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:i}of n[ia("0x69")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=i)return!1;return!0}const ua=["TrackChangesEditing","model","getAttribute","editor","_suggestionFactory","handleResizeTableWidthCommand","*Format:* resize table","document","get","resizeTable","afterInit","discard","handleSuggestionDescription","enableCommand","registerCustomCallback","_descriptionFactory","type","getSuggestions","accept","formatInline","has","formatGroupId","subType","resizeTableWidth","format","TableColumnResizeEditing","formatBlock","getColumnGroupElement","plugins","selection","data","getContainedElement","columnWidths","getTableColumnsWidths","tableWidth"];var da,ga;da=ua,ga=247,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x8")](){if(!this.editor[fa("0x1a")][fa("0x12")](fa("0x17")))return;const t=this[fa("0x1")][fa("0x1a")][fa("0x6")](fa("0x21"));t[fa("0xb")](fa("0x15"),this[fa("0x3")].bind(this)),t._suggestionFactory[fa("0xc")]("formatBlock","resizeTable",fa("0x10"),t[fa("0x2")].getSuggestionCallback(fa("0x18"),null,fa("0x9"))),t[fa("0x2")][fa("0xc")](fa("0x18"),fa("0x7"),"discard",t[fa("0x2")].getSuggestionCallback(fa("0x18"),null,"accept")),t[fa("0xd")].registerDescriptionCallback(this.handleSuggestionDescription.bind(this))}handleResizeTableWidthCommand(t,e){const n=this.editor[fa("0x1a")][fa("0x6")](fa("0x21")),o=this.editor[fa("0x1a")][fa("0x6")](fa("0x17")),r=e.table||this[fa("0x1")][fa("0x22")][fa("0x5")][fa("0x1b")].getSelectedElement();this[fa("0x1")][fa("0x22")].change((()=>{const i=o[fa("0x19")](r);let s=i?o[fa("0x1f")](i):null,x=r[fa("0x0")](fa("0x20"))||null;const a=e[fa("0x20")]||x,c=e[fa("0x1e")]||s,l=this.editor.plugins[fa("0x6")]("Users").me;for(const t of n[fa("0xf")]()){const e=t[fa("0x1d")]();if(fa("0x7")===t[fa("0x14")]&&e===r){t.author!==l&&t[fa("0x9")]();const e=t[fa("0x1c")].commandParams;x=e[0][fa("0x20")],s=e[0][fa("0x1e")];break}}t({table:r,tableWidth:a,columnWidths:c}),n.markBlockFormat(r,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x7")},[],"resizeTable")}))}[fa("0xa")](t){if("formatBlock"!=t.type&&fa("0x11")!=t[fa("0xe")])return;const{data:e}=t;if(e&&fa("0x7")===e[fa("0x13")]){const t=fa("0x4");return{type:fa("0x16"),content:Qo(this.editor.locale,t)}}}}const ha=["Template","afterInit","has","get","TrackChangesEditing","plugins","insertTemplate","editor"];var pa,ba;pa=ha,ba=224,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("0x7")];t[Ea("0x5")][Ea("0x2")](Ea("0x0"))&&t[Ea("0x5")][Ea("0x3")](Ea("0x4")).enableCommand(Ea("0x6"))}}const Ta=["get","editor","commands","afterInit","insertTableOfContents","TrackChangesEditing","ELEMENT_TABLE_OF_CONTENTS","tableOfContents","plugins"];var ya,Ca;ya=Ta,Ca=163,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x2")](){const t=this[Aa("0x0")];if(!t[Aa("0x1")].get("insertTableOfContents"))return;t.plugins[Aa("0x8")](Aa("0x4")).enableCommand(Aa("0x3"));const e=t[Aa("0x7")][Aa("0x8")](Aa("0x4")),n=t.locale;e._descriptionFactory.registerElementLabel(Aa("0x6"),(t=>Qo(n,Aa("0x5"),t)))}}const Ia=["getChangedMarkers","isTouching","model","registerElementLabel","forward","getNearestSelectionRange","title-content","locale","document","differ","newRange","removeMarker","_descriptionFactory","suggestion","createRange","start","isCollapsed","nodeBefore","get","isEqual","end","editor","ELEMENT_TITLE","Title","schema","_splitMarkerName","has"];var Ra,Sa;Ra=Ia,Sa=207,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{afterInit(){const t=this[va("0x3")];if(!t.plugins[va("0x8")](va("0x5")))return;const e=t.plugins[va("0x0")]("TrackChangesEditing");e[va("0x15")][va("0xc")](va("0xf"),(()=>Qo(t[va("0x10")],va("0x4")))),t.model[va("0x11")].registerPostFixer((n=>{let o=!1;const r=Array.from(t[va("0xb")][va("0x11")][va("0x12")][va("0x9")]());for(const{name:i,data:s}of r){const{group:r}=e[va("0x7")](i);if(va("0x16")!==r||!s.newRange)continue;const x=s[va("0x13")],a=x[va("0x2")][va("0x1a")];if(!a||!a.is("element","title-content"))continue;if(!x[va("0x18")][va("0xa")](x[va("0x2")]))continue;const c=t[va("0xb")][va("0x6")][va("0xe")](x[va("0x2")],va("0xd"));if(c&&c[va("0x19")]){const t=n[va("0x17")](x[va("0x18")],c[va("0x18")]);t[va("0x1")](x)||(n.updateMarker(i,{range:t}),o=!0)}o||(n[va("0x14")](i),o=!0)}return o}))}}const La=["UndoEditing","has","afterInit","get","TrackChangesEditing","enableCommand","plugins"];var Ma,Oa;Ma=La,Oa=141,function(t){for(;--t;)Ma.push(Ma.shift())}(++Oa);const wa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[wa("0x1")](){const t=this.editor,e=t[wa("0x5")][wa("0x2")](wa("0x3"));t[wa("0x5")][wa("0x0")](wa("0x6"))&&(e[wa("0x4")]("undo"),e[wa("0x4")]("redo"))}}const Da=["requires","afterInit","get","editor","TrackChangesEditing","plugins"];var Pa,Ba;Pa=Da,Ba=260,function(t){for(;--t;)Pa.push(Pa.shift())}(++Ba);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("0x1")];t[Ua("0x3")].has("TableCaptionEditing")&&t.plugins[Ua("0x0")](Ua("0x2")).enableCommand("toggleTableCaption")}}const Ga=["getFirstPosition","markBlockFormat","*Format:* change table properties","tableCellWidth","enableCommand","registerDescriptionCallback","nodeAfter","pluginName","_getSuggestion","handleDiscardAction","handleSuggestionDescription","tableBorderWidth","TrackChangesTableProperties","tableCellHorizontalAlignment","format","tableBorderColor","tableCellHeight","tableCellVerticalAlignment","_handlePropertyChange","tableAlignment","TableCellPropertiesEditing","data","findAncestor","accept","commandParams","TableUtils","change","table","tableCellProperties","plugins","getSuggestionCallback","tableProperties","getContainedElement","tableCellBorderWidth","model","setAttribute","discard","tableBorderStyle","tableCellPadding","tableCellBorderStyle","batch","tableHeight","has","TablePropertiesEditing","subType","getSuggestions","_descriptionFactory","registerCustomCallback","get","TrackChangesEditing","document","formatBlock","editor","removeAttribute","selection","locale","tableWidth","_suggestionFactory"];var Va,Ha;Va=Ga,Ha=235,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x1c")]=[za("0xc"),za("0x22"),za("0x8"),za("0x10"),za("0x35"),za("0x26"),"tableBackgroundColor"],this[za("0x19")]=["tableCellBorderColor",za("0x24"),za("0x1e"),za("0x23"),za("0x0"),za("0xd"),"tableCellBackgroundColor",za("0xa"),za("0xe")]}static get[za("0x4")](){return za("0x9")}afterInit(){const t=this[za("0x31")][za("0x1a")][za("0x2d")](za("0x2e"));if(this[za("0x31")][za("0x1a")][za("0x27")](za("0x28"))){for(const e of this[za("0x1c")])t.enableCommand(e,((t,n)=>{const o=this[za("0x31")].model[za("0x2f")][za("0x33")][za("0x37")]()[za("0x13")](za("0x18"));this[za("0xf")](e,[o],this[za("0x1c")],za("0x1c"),t,n)}));t._suggestionFactory.registerCustomCallback(za("0x30"),"tableProperties",za("0x14"),t[za("0x36")].getSuggestionCallback("formatBlock",null,za("0x21"))),t[za("0x36")].registerCustomCallback("formatBlock",za("0x1c"),za("0x21"),((t,e)=>this.handleDiscardAction(this[za("0x1c")],t,e))),t[za("0x36")].registerCustomCallback(za("0x30"),"tableProperties","join",(()=>!1))}if(this[za("0x31")][za("0x1a")][za("0x27")](za("0x11"))){for(const e of this.tableCellProperties)t[za("0x1")](e,((t,n)=>{const o=this.editor[za("0x1a")][za("0x2d")](za("0x16")).getSelectionAffectedTableCells(this[za("0x31")][za("0x1f")][za("0x2f")].selection);this[za("0xf")](e,o,this.tableCellProperties,za("0x19"),t,n)}));t[za("0x36")][za("0x2c")](za("0x30"),za("0x19"),za("0x14"),t[za("0x36")][za("0x1b")](za("0x30"),null,za("0x21"))),t[za("0x36")][za("0x2c")](za("0x30"),za("0x19"),za("0x21"),((t,e)=>this[za("0x6")](this.tableCellProperties,t,e))),t._suggestionFactory.registerCustomCallback(za("0x30"),za("0x19"),"join",(()=>!1))}t[za("0x2b")][za("0x2")]((t=>this[za("0x7")](t)))}[za("0xf")](t,e,n,o,r,i){const s=this[za("0x31")][za("0x1a")].get("TrackChangesEditing");this[za("0x31")][za("0x1f")].enqueueChange(i[za("0x25")],(()=>{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[za("0x38")](t,{commandParams:[e]},[],o)}}))}[za("0x6")](t,e,n){const o=e[0].start[za("0x3")],r=n[za("0x15")][0];this[za("0x31")].model[za("0x17")]((e=>{for(const n of t)void 0!==r[n]?e[za("0x20")](n,r[n],o):e[za("0x32")](n,o)}))}handleSuggestionDescription(t){if(t[za("0x12")])switch(t.subType){case"tableProperties":return{type:"format",content:Qo(this[za("0x31")][za("0x34")],za("0x39"))};case"tableCellProperties":return{type:za("0xb"),content:Qo(this[za("0x31")][za("0x34")],"*Format:* change table cell properties")}}}[za("0x5")](t,e){const n=this.editor[za("0x1a")][za("0x2d")](za("0x2e"));for(const o of n[za("0x2a")]({skipNotAttached:!0})){const n=o[za("0x1d")]();if(o[za("0x29")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,$a=Ka.toString,Xa=qa.hasOwnProperty,Za=$a.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=Xa.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&$a.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=["markBlockFormat","unbindElementFromMarkerName","dataToMarker","attributeOldValue","keys","isInsideObject","creator","notReady","from","suggestion-type","isDocumentOperation","selection","tablePasteChainId","removed","next","track-changes-enable-command-twice","_processAttributeChanges","addMarker:suggestion:attribute","insertion:discard","isOwn","addRange","addMarker:suggestion:formatBlock","addMarker:suggestion","track-changes-adapter-missing-getsuggestion","_suggestionFactory","toUpperCase","_refreshSuggestionsChain","find","writer","forEach","getUser","data-suggestion","removeMarker","createRange","accepted","previous","deletion:","insert","widget","high","_breakSuggestionMarker","newRange","addSuggestionData","attributeNewValue","formatInline:chain","some","_cutOutSuggestionMarker","formatInline","dataDowncast","refresh","start","toViewElement","reconvertMarker","for","attributes","chain","options","elementEnd","item","_trackFormatChanges","model","formatBlock:join","setSelection","name","_editor","default","end","getShiftedBy","dataReady","_setSuggestionData","_mergeNestedSuggestions","formatGroupId","oldValue","init","conversion","ck-suggestion-marker--active","pluginName","root","isInContent","newName","has","markInsertion","_isDataLoaded","deletion","commentThread","length","suggestionUnloaded","after","deleteContent","_enableDefaultAttributesIntegration","formatInline:","warn","_setSuggestionRange","filter","enqueueChange","forceDefaultExecution","getFirstMarker","external:","substr","elementToElement","version","markerName","lowest","createPositionAfter","stopListening","getMarkers","getCustomProperty","getAttribute","data","isAtStart","TrackChangesEditing","batch","getChanges","execute","bindElementToMarker","map","push","_splitMarkerName","_getExternalAuthor","never","addSuggestion","getIntersection","_joinWithAdjacentSuggestions","key","isLimit","remove","_initAriaMarkerChangeAnnouncements","groupId","suggestionChanged","forward","ready","fire","markMultiRangeDeletion","then","$marker","consume","suggestion","getSuggestion","addCommentThread","_isBlockAttribute","removeClass","_suggestionState","delete","stop","isIntersecting","_reduceSuggestionAttributeRange","_getMarkerAnnouncementText","changeAttribute","concat","getRange","attribute:discard","_getAuthorFromId","config","every","editor","_customCallbacks","markerReady","isEqual","_commentsRepository","getAncestors","locale","isRemovable","buildSuggestion","resolve","comments","listenTo","assign","_isForcedDefaultExecutionBlock","_processAttributeSuggestions","includes","updateSuggestion","setTo","marker-count","substring","isNextTo","isObject","head","differ","_descriptionFactory","_adapter","formatBlock:","getContainedElement","_joinSuggestions","upcast","markerNameToElements","discardSuggestion","discardSelectedSuggestions","low","discard","_inlineAttributeKeys","pop","_enabledCommands","getChangedMarkers","markerToHighlight","getWalker","_getSuggestionData","clone","authoredAt","isSelectable","track-changes-user-not-found","ck-suggestion-marker-formatInline","containsRangeInObject","getCommentThread","trackChanges","updateMarker","unbind","LEAVE","getNearestSelectionRange","plugins","showSuggestionHighlights","range","isAfter","collaboration.channelId","hasCommentThread","$graveyard","getItems","change:activeMarkers","formatInline:discard","discardAllSuggestions","markers","originalSuggestionId","nodeAfter","Users","howMany","move","newValue","isBlock","_addSuggestionMarker","return","startsWith","join","change:_saved","track-changes-adapter-already-set","attributeKey","clear","multi","isLocal","author","containsPosition","set","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.","addClass","_registerInlineAttribute","acceptSelectedSuggestions","formatBlock:chain","formatInline:accept","createPositionAt","add","skipNestingCheck","subType","containerElement","_createSuggestion","containsItem","mapper","getDifference","addHighlight","oldName","attribute:join","getSuggestionCallback","isBefore","markerToData","acceptAllSuggestions","rename","insertion:join","getSuggestions","deletion:accept","_rangeIsInLocalUserInsertion","formatBlock:discard","commandName","activeMarkers","define","document","getMultiRangeId","toJSON","isCollapsed","_reduceExistingSuggestions","_saved","markMultiRangeInsertion","$text","position","removeMarker:suggestion:formatBlock","ck-suggestion-marker-","splitPosition","insertion:","ck-suggestion-marker-formatBlock","deletion:discard","_updateSuggestionData","PENDING_ACTION_SUGGESTION","createdAt","get","suggestion:attribute:","track-changes-command-not-found","markDeletion","group","targetPosition","addMarker","backward","insertion","insertContent","setAttribute","track-changes-suggestion-data-mismatch","removeMarkers","catch","change:data","commands","accept","applyOperation","getLastMatchingPosition","sort","values","trackChanges.trackFormatChanges","_handleNewSuggestionMarker","_onDiscard","nodeBefore","_defaultCallbacks","trackChanges.mergeNestedSuggestions","requires","FORMATTING","_addThreadToSuggestion","_recordAttributeSuggestionsFromVersion","formatBlock","rejected","_checkSuggestionCorrectness","_recordAttributeChanges","before","getFirstRange","_refreshAttributeSuggestionsChain","formatBlock:accept","track-changes-suggestion-not-found","getAllAdjacentSuggestions","createSelection","editingDowncast","detach","parent","isTouching","@external","attribute","oldRange","suggestionLoaded","markInlineFormat","containsRange","isMultiRange","update:suggestion","getRanges","multipleBlocks","_findSuggestions","addAttribute","always","size","schema","isArray","trackChangesCommand","addMarkerName","consumable","_suggestions","hasComments","registerPostFixer","value","addUser","enableReadOnlyMode","split","fromCharCode","_model","change","removeComment","PendingActions","$textProxy","acceptSuggestion","highest","CommentsRepository","removeAttribute","isAtEnd","$elementName","_blockAttributeKeys","ck-suggestion-marker","isIntersectingWithRange","element","fromRange","moveTargetPosition","rootName","attribute:accept","createPositionBefore","enableCommand","type","deletion:join"];var dc,gc;dc=uc,gc=316,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x38");class hc extends t.Plugin{static get[fc("0x0")](){return[fc("0x35"),i.Users,t.PendingActions,cr,fr,_r,kr,Lr,Dr,Vr,ti,ii,li,hi,Ti,Ri,Mi,Bi,Hi,$i,Qi,rs,fs,cs,Es,As,vs,ws,Us,Ks,Ys,nx,xx,dx,bx,Cx,Sx,wx,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0x91")](){return fc("0xb3")}constructor(t){function e(t){return t[fc("0xb8")]((t=>String[fc("0x2d")](t)))[fc("0x12b")]("")}super(t),this[fc("0x3")]=null,this[fc("0x134")](fc("0x152"),[]),this.on(fc("0x11d"),((e,n,o,r)=>{this[fc("0x2e")][fc("0x2f")]((()=>{for(const e of[...r,...o])this[fc("0x2e")][fc("0x120")][fc("0x95")](e)&&t.editing[fc("0x79")](e)}))})),this[fc("0xf7")]=new rr(this.editor[fc("0x81")].schema,this[fc("0xdf")].locale),this[fc("0xf8")]=null,this._suggestionFactory=new pc(this[fc("0xdf")]),this[fc("0x26")]=new Map,this[fc("0xe3")]=t[fc("0x115")][fc("0x166")](fc("0x35")),this[fc("0x104")]=new Set,this[fc("0x2e")]=this.editor[fc("0x81")],this[fc("0xd2")]=new WeakMap,this[fc("0xec")]=!1,this._blockAttributeKeys=new Set(["$elementName"]),this._inlineAttributeKeys=new Set,t[fc("0xdd")][fc("0x153")]("trackChanges.trackFormatChanges",fc("0x86")),this[fc("0x80")]=t[fc("0xdd")][fc("0x166")](fc("0x17b")),t.config[fc("0x153")](fc("0x180"),!0),this[fc("0x8b")]=t[fc("0xdd")].get(fc("0x180")),this[fc("0x23")]=new d(t,this[fc("0x104")]),this[fc("0xc3")](),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,48])}[fc("0x8e")](){const t=this[fc("0xdf")],n=(t,e)=>{if("attribute"!=t)return fc("0x15e")+t;const n=e[fc("0x2c")]("|")[0];return this._isBlockAttribute(n)?fc("0x161"):fc("0x10d")};t[fc("0x8f")][fc("0x7a")]("editingDowncast")[fc("0x106")]({model:"suggestion",view:t=>{const{id:e,type:o,subType:r}=this[fc("0xba")](t[fc("0xaa")]),i=[fc("0x3a"),n(o,r)];let s=3e3;return this[fc("0x152")][fc("0xee")](t[fc("0xaa")])&&(i[fc("0xb9")](fc("0x90")),s=3010),"deletion"==o&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x8f")][fc("0x7a")](fc("0x75"))[fc("0x13c")]((e=>{e.on(fc("0x5b"),((e,n,o)=>{if(!o.options.showSuggestionHighlights)return;const r=n.item;if(!r)return;const i=o[fc("0x142")].toViewElement(r);t[fc("0x81")][fc("0x21")][fc("0xf4")](r)&&i&&!i.getCustomProperty(fc("0x6b"))&&i.is(fc("0x13f"))&&(0,x.toWidget)(i,o[fc("0x61")])}),{priority:fc("0x6c")})})),t[fc("0x8f")].for(fc("0x75"))[fc("0x106")]({model:fc("0xcd"),view:(t,e)=>{if(!e[fc("0x7d")][fc("0x116")])return null;const{type:o,subType:r}=this[fc("0xba")](t[fc("0xaa")]);return{classes:[fc("0x3a"),n(o,r)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,r,i)=>{if(!r[fc("0x7f")])return;const{id:s}=this[fc("0xba")](r.markerName);if(n){const t=Sc(this[fc("0x26")][fc("0x166")](s));if(!this[fc("0xd0")](t))return}if(r[fc("0x7f")].is(fc("0x50")))return void i.consumable.consume(r[fc("0x7f")],o[fc("0x84")]);const x=i.mapper[fc("0x78")](r.item);if(r.item.is(fc("0x3c"))&&t[fc("0x81")].schema[fc("0x127")](r[fc("0x7f")])&&!x[fc("0xaf")](fc("0x144"))){i[fc("0x61")][fc("0x136")](["ck-suggestion-marker",fc("0x161")],x),i.writer[fc("0x170")]("data-suggestion",s,x),i.mapper[fc("0xb7")](x,r[fc("0xaa")]),e&&(this[fc("0x152")][fc("0xee")](r[fc("0xaa")])?i.writer.addClass(fc("0x90"),x):i[fc("0x61")][fc("0xd1")](fc("0x90"),x));for(const e of t[fc("0x81")].createRangeIn(r.item)[fc("0x11c")]())i[fc("0x25")][fc("0xcc")](e,o.name);i[fc("0x25")][fc("0xcc")](r[fc("0x7f")],o[fc("0x84")])}};t.conversion[fc("0x7a")](fc("0x75"))[fc("0x13c")]((t=>{t.on(fc("0x5a"),((t,e,n)=>{n[fc("0x7d")][fc("0x116")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x34")})})),t[fc("0x8f")][fc("0x7a")](fc("0x75"))[fc("0x13c")]((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n[fc("0x7d")][fc("0x116")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t[fc("0x8f")][fc("0x7a")](fc("0x75"))[fc("0x149")]({model:fc("0xcd"),view:(t,e)=>e[fc("0x7d")].showSuggestionHighlights?null:{group:"suggestion",name:t[fc("0xa7")](11)}}),t[fc("0x8f")][fc("0x7a")](fc("0xfc"))[fc("0xa8")]({view:{name:fc("0xcd"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[fc("0xb0")](fc("0x4e"))+":"+t[fc("0xb0")]("id");return t[fc("0xb0")](fc("0xf1"))&&(n+=":"+t[fc("0xb0")]("marker-count")),e.createElement(fc("0xcb"),{"data-name":n})}}),t[fc("0x8f")][fc("0x7a")]("upcast")[fc("0x47")]({view:fc("0xcd")}),t[fc("0x8f")][fc("0x7a")]("editingDowncast")[fc("0x13c")]((t=>{t.on(fc("0x5a"),o(),{priority:"high"})})),t[fc("0x8f")][fc("0x7a")]("editingDowncast")[fc("0x13c")]((t=>{t.on(fc("0x56"),o({isAttributeSuggestion:!0}),{priority:fc("0x6c")})})),t[fc("0x8f")][fc("0x7a")](fc("0xf"))[fc("0x13c")]((t=>{t.on(fc("0x15d"),((t,e,n)=>{const o=n.mapper[fc("0xfd")](e[fc("0xaa")]);if(o)for(const t of o)t.getCustomProperty("addHighlight")||(n[fc("0x61")][fc("0xd1")]([fc("0x3a"),fc("0x161"),"ck-suggestion-marker--active"],t),n[fc("0x61")][fc("0x36")](fc("0x64"),t),n.mapper[fc("0x46")](t,e.markerName))}),{priority:fc("0x6c")})})),t[fc("0x8f")][fc("0x7a")]("editingDowncast").add((t=>{t.on("removeMarker:suggestion:attribute",((t,e,n)=>{const o=n[fc("0x142")][fc("0xfd")](e[fc("0xaa")]);if(!o)return;const{id:r}=this._splitMarkerName(e[fc("0xaa")]),i=Sc(this[fc("0x26")].get(r));if(this[fc("0xd0")](i))for(const t of o)t[fc("0xaf")](fc("0x144"))||(n[fc("0x61")][fc("0xd1")](["ck-suggestion-marker",fc("0x161"),"ck-suggestion-marker--active"],t),n[fc("0x61")][fc("0x36")](fc("0x64"),t),n[fc("0x142")][fc("0x46")](t,e[fc("0xaa")]))}),{priority:fc("0x6c")})})),t[fc("0x81")][fc("0x154")][fc("0x28")]((e=>{let n=!1;const o=Array.from(t[fc("0x81")][fc("0x154")].differ[fc("0x105")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0xba")](x);if(fc("0xcd")!==o)continue;const d=this[fc("0x26")].get(u);if(null!=a[fc("0x6e")]){"formatInline"==c&&(n=n||_c(a[fc("0x6e")],x,e,t[fc("0x81")].schema));const o=fc("0x14")==c&&this[fc("0xd0")](l[fc("0x2c")]("|")[0]);if(a[fc("0x6e")].isCollapsed||fc("0x11b")==a[fc("0x6e")][fc("0x92")].rootName||fc("0x4")==c&&!yc(a[fc("0x6e")])||o&&!yc(a[fc("0x6e")])||fc("0x98")==c&&(Ec(s=a[fc("0x6e")])||(i=s)[fc("0x77")][fc("0x11")]==i[fc("0x87")][fc("0x17e")]&&i[fc("0x77")][fc("0x37")]))e.removeMarker(x),n=!0;else{if(!d||!d[fc("0x93")])continue;r[fc("0x13c")](d)}}}var i,s;return r[fc("0x20")]>0&&(n=!!this[fc("0xbf")](r)||n),n})),t[fc("0x81")].document[fc("0x28")]((e=>{let n=!1;for(const o of t[fc("0x81")].document[fc("0xf6")][fc("0xb5")]())if(fc("0x6a")==o[fc("0x43")])for(const o of this[fc("0x26")][fc("0x17a")]()){if(o.isMultiRange||!o[fc("0x93")])continue;const r=fc("0x4")==o[fc("0x43")],i=Sc(o),s=i&&this[fc("0xd0")](i);if(!r&&!s)continue;const x=o[fc("0x9")]();if(x.start[fc("0x11")]!=x[fc("0x87")][fc("0x11")]&&!x.end.isAtEnd){const r=t.model[fc("0x13b")](x[fc("0x77")][fc("0x122")],fc("0x87")),i=t[fc("0x81")][fc("0x66")](x.start,r);e[fc("0x111")](o[fc("0xa5")](),{range:i}),n=!0}}return n})),t[fc("0x81")][fc("0x154")][fc("0x28")]((t=>this[fc("0x55")](t))),t[fc("0x81")][fc("0x154")][fc("0x28")]((t=>!t.batch.isLocal&&this[fc("0xed")](t))),t.model[fc("0x120")].on(fc("0x1a"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0xba")](e.name),n=this._suggestions[fc("0x166")](t);n&&n[fc("0x24")](e[fc("0x84")])}})),t[fc("0x81")][fc("0x154")].on(fc("0x174"),(()=>{const e=Array[fc("0x4d")](t[fc("0x81")][fc("0x154")][fc("0xf6")][fc("0x105")]())[fc("0xa2")]((t=>fc("0xcd")===this[fc("0xba")](t.name)[fc("0x16a")]));if(0===e[fc("0x9a")])return;e.sort(((t,e)=>{const n=t[fc("0xb1")][fc("0x15")],o=e[fc("0xb1")][fc("0x15")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0x77")][fc("0x148")](o[fc("0x77")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this._splitMarkerName(t);if(null===r[fc("0x15")]){const e=this[fc("0x17c")](t);o[fc("0x13c")](e)}else{const t=this._suggestions[fc("0x166")](e);null!==r[fc("0x6e")]||t[fc("0x93")]?(n[fc("0x13c")](t[fc("0xf5")]),o.add(t)):this._removeSuggestion(t)}}o[fc("0x20")]>0&&this[fc("0x5f")](o);for(const t of n)this[fc("0xc8")](fc("0xc5"),t)})),t[fc("0x81")].on(fc("0x177"),((e,n)=>{const o=n[0];if(!this[fc("0x26")].size)return;if(!o[fc("0x4f")])return;if(o.batch.isUndo||!o[fc("0xb4")][fc("0x131")])return;let r,i;switch(o[fc("0x43")]){case fc("0x6a"):r=t[fc("0x81")][fc("0x13b")](o[fc("0x15c")]),i=r[fc("0x88")](o[fc("0x124")]);break;case"split":r=t[fc("0x81")][fc("0x13b")](o[fc("0x15f")]),i=t[fc("0x81")][fc("0x13b")](o[fc("0x3e")]);break;case fc("0x125"):r=t.model[fc("0x13b")](o[fc("0x16b")]),i=r[fc("0x88")](o.howMany);break;default:return}const s=t.model.createRange(r,i);t[fc("0x81")][fc("0x2f")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0x1d")](s)){if(t[fc("0x19")])continue;if(fc("0x74")==t[fc("0x43")])continue;const n=Sc(t);if(n&&this._isBlockAttribute(n)&&fc("0x2c")!=o.type)continue;const x=t[fc("0xb1")]&&t[fc("0xb1")][fc("0x1c")];(fc("0x4")!=t[fc("0x43")]||fc("0x2c")==o.type&&!x)&&(e[fc("0x10e")]||fc("0x16e")==t[fc("0x43")]&&e.isOwn||t[fc("0x9")]()[fc("0x18")](s)&&this._breakSuggestionMarker(t,r,i))}}))}),{priority:fc("0xab")}),t[fc("0x81")].on("deleteContent",((e,n)=>{const o=n[0],r=n[1];if(r&&r[fc("0xa4")])return;if(this[fc("0xec")])return;if(!this[fc("0x23")][fc("0x29")])return;if(o[fc("0x157")])return;const i=t[fc("0x81")][fc("0x21")],{start:s,end:x}=o[fc("0x9")](),a=s[fc("0x122")]&&i[fc("0xc1")](s[fc("0x122")])?null:i.getNearestSelectionRange(s,fc("0xc6")),c=x[fc("0x17e")]&&i[fc("0xc1")](x.nodeBefore)?null:i[fc("0x114")](x,fc("0x16d")),l=t[fc("0x81")][fc("0x66")](a?a.start:s,c?c.end:x);t.model.change((e=>{this.markDeletion(l);const n=t[fc("0x81")][fc("0x21")][fc("0x114")](l.start);o.is("documentSelection")?e[fc("0x83")](n):o[fc("0xf0")](n)})),e.stop()}),{priority:e.priorities.normal+10}),t[fc("0x81")].on("insertContent",((e,n)=>{const o=n[n.length-1];o&&o.forceDefaultExecution||this[fc("0xec")]||this[fc("0x23")][fc("0x29")]&&(t.model[fc("0x2f")]((()=>{let o=t[fc("0x81")][fc("0x16f")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0x129")]=o[fc("0x109")]();const r=o[fc("0x87")][fc("0x17e")],i=t[fc("0x81")][fc("0x21")];r&&i[fc("0x127")](r)&&!i.isObject(r)&&(o=t.model.createRange(o[fc("0x77")],t[fc("0x81")][fc("0x13b")](r,"end"))),this.markInsertion(o)})),e[fc("0xd4")]())}),{priority:fc("0x6c")}),this.editor[fc("0x175")][fc("0x13c")]("trackChanges",this[fc("0x23")]),this[fc("0x42")](fc("0x110"));const r=new p(t,this[fc("0x26")]);t[fc("0x175")].add(fc("0x33"),r),this[fc("0x42")](fc("0x33"));const i=new y(t,this[fc("0x26")]);t.commands[fc("0x13c")](fc("0xfe"),i),this[fc("0x42")](fc("0xfe")),t.commands[fc("0x13c")](fc("0x14a"),new F(t,r,this[fc("0x26")])),this[fc("0x42")](fc("0x14a")),t.commands[fc("0x13c")](fc("0x11f"),new F(t,i,this[fc("0x26")])),this[fc("0x42")](fc("0x11f")),t[fc("0x175")][fc("0x13c")]("acceptSelectedSuggestions",new j(t,r,this[fc("0x26")])),this[fc("0x42")](fc("0x138")),t[fc("0x175")][fc("0x13c")]("discardSelectedSuggestions",new j(t,i,this._suggestions)),this[fc("0x42")](fc("0xff"));const s=t[fc("0x115")][fc("0x166")]("CommentsRepository");this[fc("0xea")](s,"addComment",((t,{threadId:e})=>{const n=this._suggestions[fc("0x166")](e);n&&n.commentThread&&1===n[fc("0x99")][fc("0x9a")]&&this[fc("0x163")](e,{hasComments:!0})}),{priority:fc("0x100")}),this[fc("0xea")](s,fc("0x30"),((t,{threadId:e})=>{const n=this._suggestions[fc("0x166")](e);n&&n[fc("0x99")]&&!n[fc("0x99")][fc("0x9a")]&&this[fc("0x163")](e,{hasComments:!1})}),{priority:fc("0x100")})}set adapter(t){if(this[fc("0xf8")])throw new e.CKEditorError(fc("0x12d"),this);this._adapter=t}get adapter(){return this[fc("0xf8")]}[fc("0x14d")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0x26")][fc("0x17a")]())t&&!e[fc("0x93")]||n[fc("0xb9")](e);return e?n[fc("0xb8")]((t=>t[fc("0x156")]())):n}[fc("0xce")](t){const n=this._suggestions[fc("0x166")](t);if(!n)throw new e.CKEditorError(fc("0xc"),this);return n}hasSuggestion(t){return this[fc("0x26")].has(t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[r,i]=t[fc("0x43")].split(":"),s=this[fc("0x26")][fc("0x166")](n)||this[fc("0x140")](r,i,n,e,o);if(this[fc("0x2")](s),this[fc("0x6")](s,r,i||null,e),s.createdAt=t[fc("0x165")],s[fc("0x97")]=!0,o&&o[fc("0x13")]){const t=o[fc("0x13")],e=this._getExternalAuthor(t.authorName);s[fc("0x10a")]=t[fc("0x165")],s.author=e,s.isExternal=!0}else s[fc("0x10a")]=t[fc("0x165")];switch(t.data&&(s[fc("0xb1")]=t.data),t[fc("0x7b")]&&(s[fc("0x7b")]=t[fc("0x7b")]),this._adapter&&this._adapter[fc("0xbd")]||(s[fc("0x159")]=!0),this[fc("0xd2")][fc("0x166")](s)){case fc("0x4c"):this[fc("0xd2")][fc("0x134")](s,fc("0x89"));break;case fc("0xe1"):s[fc("0x93")]?(this[fc("0x5f")](new Set([s])),this[fc("0xbf")](new Set([s])),this[fc("0xd2")].set(s,fc("0xc7")),this.fire(fc("0x16"),s)):this._suggestionState.set(s,fc("0x52"))}return s}[fc("0x33")](t){this[fc("0xa4")]((()=>{this[fc("0xdf")][fc("0x81")][fc("0x2f")]((()=>{for(const e of t[fc("0xd")]())e[fc("0x176")]()}))}))}[fc("0xfe")](t){this[fc("0xa4")]((()=>{this[fc("0xdf")].model[fc("0x2f")]((()=>{for(const e of t[fc("0xd")]())e[fc("0x101")]()}))}))}[fc("0x42")](t,n){const o=this[fc("0xdf")][fc("0x175")].get(t);if(!o)throw new e.CKEditorError(fc("0x168"),this,{commandName:t});if(this[fc("0x104")].has(o))throw new e.CKEditorError(fc("0x54"),this,{commandName:t});this[fc("0x104")][fc("0x13c")](o),n&&o.on(fc("0xb6"),((t,e)=>{this[fc("0x23")][fc("0x29")]&&(this._isForcedDefaultExecutionBlock||(e[fc("0x9a")]>0&&e[e.length-1]&&e[e[fc("0x9a")]-1][fc("0xa4")]?e[fc("0x103")]():(t[fc("0x129")]=n(((...t)=>o[fc("0xb6")](...t,{forceDefaultExecution:!0})),...e),t[fc("0xd4")]())))}),{priority:fc("0x6c")})}[fc("0xa4")](t){let n,o;const r=this._isForcedDefaultExecutionBlock;this[fc("0xec")]=!0;try{n=t()}catch(t){o=t}return r||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[fc("0x96")](t,n=null,o={}){if(t[fc("0x157")])return null;const r=this[fc("0xdf")][fc("0x115")][fc("0x166")]("Users").me;for(const{suggestion:e,meta:r}of this[fc("0x1d")](t,"insertion"))if(r.isOwn){if(!r[fc("0xf3")]){if(r[fc("0x10e")]){if(!this[fc("0x8b")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0x6d")](e,t[fc("0x77")],t[fc("0x87")]);break}if(n==e.subType&&Ic(e,o)){const n=e.getFirstRange();return n.start[fc("0xe2")](t[fc("0x87")])?this[fc("0xa1")](e,this._model.createRange(t.start,n.end)):this[fc("0xa1")](e,this[fc("0x2e")][fc("0x66")](n[fc("0x77")],t[fc("0x87")])),e}}const i=(0,e.uid)(),s=r.id,x=n?fc("0x160")+n:fc("0x16e"),a=this[fc("0x8a")]({id:i,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x128")](x,i,s,t),a}[fc("0x15a")](t,n=fc("0x130"),o={}){const r=this[fc("0xdf")][fc("0x115")][fc("0x166")](fc("0x123")).me,i=this[fc("0x5d")][fc("0x147")](fc("0x16e"),n,fc("0x12b"));for(const e of this.getSuggestions())if(e[fc("0x132")].id==r.id&&fc("0x16e")==e[fc("0x43")]&&e.subType==n&&Ic(e,o)&&(i(e[fc("0x1b")](),t)||i(t,e[fc("0x1b")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this[fc("0x1d")](t,fc("0x16e"))){if(!n[fc("0x58")])continue;if(!this[fc("0x8b")]&&n[fc("0x10e")])continue;if(!Ic(e,o))continue;let r=!0;for(const n of e[fc("0x1b")]())for(const e of t)if(!n.containsRange(e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a=fc("0x160")+n,c=this[fc("0x8a")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x128")](a,s,x,e,Jo[fc("0x155")]());return c}[fc("0x17")](t,n,o=null,r={}){if(o=o||Tc(n),t[fc("0x157")])return null;if("never"===this[fc("0x80")]){const e=this[fc("0x5d")][fc("0x147")]("formatInline",o,fc("0x176"));return this[fc("0xa4")]((()=>e([t],n,r))),null}const i=this[fc("0xdf")].plugins[fc("0x166")](fc("0x123")).me,s=[];if(fc("0x1f")!==this[fc("0x80")])for(const{suggestion:e,meta:n}of this[fc("0x1d")](t,fc("0x16e")))n[fc("0x58")]&&!n[fc("0x4a")]&&s[fc("0xb9")](...e[fc("0x1b")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0xbe")](o);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x9a")];){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o[fc("0x9a")]}}return n}(t,s);x[fc("0x9a")]&&this[fc("0x2e")][fc("0x2f")]((()=>{for(const t of x){const e=this[fc("0x5d")][fc("0x147")](fc("0x74"),o,"accept");this[fc("0xa4")]((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t.start,a=t[fc("0x87")];for(const{suggestion:e,meta:n}of this[fc("0x1d")](t,fc("0x74"))){if(!n[fc("0x58")])continue;if(e[fc("0x13e")]!=o)continue;if(!Ic(e,r))continue;const i=e.getFirstRange();if(i[fc("0x18")](t,!0))return null;x=x[fc("0x148")](i[fc("0x77")])?x:i[fc("0x77")],a=a.isAfter(i.end)?a:i[fc("0x87")],s?i[fc("0x77")][fc("0x148")](s.getFirstRange()[fc("0x77")])?(s.removeMarkers(),s=e):e[fc("0x172")]():s=e}const c=this[fc("0x2e")][fc("0x66")](x,a);if(s)this[fc("0xa1")](s,c);else{const t=(0,e.uid)(),s=i.id;this[fc("0x8a")]({id:t,type:fc("0x9f")+o,data:n,createdAt:new Date,authorId:s,attributes:r}),this[fc("0x128")](fc("0x9f")+o,t,s,c)}}return null}[fc("0x45")](t,n,o=[],r=null,i={}){n[fc("0x8c")]||(n[fc("0x8c")]=n[fc("0x151")]),n[fc("0x1c")]=t.is(fc("0x117")),r=r||Tc(n);const s=o[fc("0xb8")]((t=>Cc(t,this._model))),x=t.is(fc("0x117"))?t:Cc(t,this[fc("0x2e")]);if(fc("0xbc")===this[fc("0x80")]){const t=this[fc("0x5d")][fc("0x147")](fc("0x4"),r,fc("0x176"));return this[fc("0xa4")]((()=>t([x],n,i))),null}s.push(x);let a=!0;for(const t of s)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&fc("0x1f")!==this._trackFormatChanges){const t=this[fc("0x5d")].getSuggestionCallback(fc("0x4"),r,fc("0x176"));return this[fc("0xa4")]((()=>t([x],n,i))),null}let c=null,l=x[fc("0x77")],u=x[fc("0x87")];for(const{suggestion:t,meta:e}of this[fc("0x1d")](x,"formatBlock")){if(!e.isOwn)continue;if(e.isNextTo||e[fc("0x10e")]||e[fc("0x4a")])continue;if(t[fc("0xb1")].formatGroupId!=n[fc("0x8c")])continue;if(!Ic(t,i))continue;const o=t[fc("0x9")]();if(t[fc("0x13e")]==r){if(o.containsRange(x,!0))return null;l=l.isBefore(o.start)?l:o[fc("0x77")],u=u[fc("0x118")](o[fc("0x87")])?u:o.end,c?o[fc("0x77")].isBefore(c.getFirstRange()[fc("0x77")])?(c[fc("0x172")](),c=t):t[fc("0x172")]():c=t}else{const e=x[fc("0xbe")](o);this[fc("0x73")](t,e)}}const d=this[fc("0xdf")][fc("0x115")][fc("0x166")](fc("0x123")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0xa1")](c,this[fc("0x2e")][fc("0x66")](l,u)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:f,attributes:i});return this._addSuggestionMarker("formatBlock:"+r,g,f,this[fc("0x2e")][fc("0x66")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],r=null,i={}){n[fc("0x8c")]||(n[fc("0x8c")]=n[fc("0x151")]);const s=t[0];n[fc("0x1c")]=s.is(fc("0x117")),r=r||Tc(n);const x=o[fc("0xb8")]((t=>Cc(t,this._model))),a=s.is(fc("0x117"))?t:t[fc("0xb8")]((t=>Cc(t,this._model)));if(fc("0xbc")===this[fc("0x80")]){const t=this[fc("0x5d")][fc("0x147")](fc("0x4"),r,fc("0x176"));return this.forceDefaultExecution((()=>t(a,n,i))),null}x[fc("0xb9")](...a);let c=!0;for(const t of x)if(!this[fc("0x14f")](t)){c=!1;break}if(c&&fc("0x1f")!==this[fc("0x80")]){const t=this._suggestionFactory[fc("0x147")]("formatBlock",r,fc("0x176"));return this[fc("0xa4")]((()=>t(a,n,i))),null}const l=this[fc("0xdf")][fc("0x115")].get("Users").me;for(const t of this[fc("0x14d")]()){if(t[fc("0x132")].id!=l.id)continue;if(fc("0x4")!=t[fc("0x43")]||t[fc("0xb1")][fc("0x8c")]!=n.formatGroupId)continue;if(!Ic(t,i))continue;const e=t.subType==r;for(let n=0;n<a[fc("0x9a")];n++){const o=a[n];for(const r of t[fc("0xae")]()){const i=r[fc("0xda")]();if(o.isEqual(i)){e?(a.splice(n,1),n--):t[fc("0x65")](r.name);break}}}}if(0==a[fc("0x9a")])return null;const u=this[fc("0x5d")].getSuggestionCallback(fc("0x4"),r,fc("0x12b"));for(const t of this[fc("0x14d")]())if(t[fc("0x132")].id==l.id&&fc("0x4")==t.type&&t.data[fc("0x8c")]==n[fc("0x8c")]&&t[fc("0x13e")]==r&&Ic(t,i)&&(u(t[fc("0x1b")](),a)||u(a,t[fc("0x1b")]()))){for(const e of a)t[fc("0x59")](e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0xf9")+r,m=this._setSuggestionData({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[fc("0x128")](f,d,g,t,Jo[fc("0x155")]());return m}[fc("0x169")](t,n=null,o={}){if(t[fc("0x157")])return null;const r=this.editor[fc("0x115")][fc("0x166")](fc("0x123")).me,i=new s.LiveRange(t[fc("0x77")],t[fc("0x87")]);for(const{suggestion:t,meta:e}of this[fc("0x1d")](i,fc("0x16e")))if(e[fc("0x58")]&&!e[fc("0xf3")])if(t[fc("0x19")]){const e=t[fc("0x1b")]()[fc("0xa2")]((t=>"$graveyard"!=t.root[fc("0x3f")]));if(e.every((t=>i.containsRange(t,!0)))&&t[fc("0x101")](),e[fc("0x72")]((t=>t[fc("0x18")](i,!0)))){const t=this[fc("0x5d")][fc("0x147")](fc("0x98"),n,fc("0x176"));return this[fc("0xa4")]((()=>t([i],null,o))),null}}else{const e=i[fc("0xbe")](t[fc("0x9")]());null!==e&&t[fc("0x17d")]([e],null,o)}if(i[fc("0x10")](),i[fc("0x157")]||"$graveyard"==i[fc("0x92")][fc("0x3f")])return null;let x=null,a=i[fc("0x77")],c=i.end;const l=this[fc("0x1d")](i,"deletion");for(const{suggestion:t,meta:e}of l){const n=this._model.createRange(a,c);if(e.isOwn&&(this[fc("0x8b")]||!e.containsRangeInObject&&!e.isInsideObject))if(t[fc("0x19")]){if(!Ic(t,o))continue;let e=!0;for(const o of t.getRanges()){if(o[fc("0x18")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t[fc("0x101")]()}else{const e=t[fc("0x9")]();if(e[fc("0x18")](n,!0))return t;if(!Ic(t,o)){n.containsRange(e)?t.removeMarkers():e.containsPosition(a)?a=e[fc("0x87")]:e[fc("0x133")](c)&&(c=e[fc("0x77")]);continue}a=a[fc("0x148")](e[fc("0x77")])?a:e[fc("0x77")],c=c[fc("0x118")](e[fc("0x87")])?c:e[fc("0x87")],o=Object[fc("0xeb")]({},t.attributes),x?e[fc("0x77")][fc("0x148")](x[fc("0x9")]()[fc("0x77")])?(x[fc("0x172")](),x=t):t[fc("0x172")]():x=t}}if(x)return this[fc("0xa1")](x,this[fc("0x2e")][fc("0x66")](a,c)),x;{const t=(0,e.uid)(),i=this[fc("0x2e")][fc("0x66")](a,c),s=r.id,x=n?fc("0x69")+n:fc("0x98"),l=this[fc("0x8a")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x128")](x,t,s,i),l}}[fc("0xc9")](t,n=fc("0x130"),o={}){const r=this[fc("0xdf")][fc("0x115")][fc("0x166")]("Users").me,i=t[fc("0xb8")]((t=>new s.LiveRange(t[fc("0x77")],t[fc("0x87")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(i,fc("0x16e")))e[fc("0x58")]&&!e[fc("0xf3")]&&x[fc("0x13c")](t);for(const e of x)if(e[fc("0x19")]){const r=e[fc("0x1b")]();if((!e[fc("0x7b")]||!e[fc("0x7b")][fc("0x13d")])&&r.every((t=>i[fc("0x72")]((e=>e[fc("0x18")](t,!0)))))&&e[fc("0x101")](),i[fc("0xde")]((t=>r.some((e=>e.containsRange(t,!0)))))){const e=this[fc("0x5d")].getSuggestionCallback(fc("0x98"),n,fc("0x176"));return this[fc("0xa4")]((()=>e(t,null,o))),null}}else{const t=e[fc("0x9")]();if(i[fc("0x72")]((e=>e[fc("0x18")](t,!0)))&&e.discard(),i[fc("0xde")]((e=>t[fc("0x18")](e,!0)))){const t=this[fc("0x5d")][fc("0x147")]("deletion",n,fc("0x176"));return this[fc("0xa4")]((()=>t(i,null,o))),null}}const a=this._suggestionFactory[fc("0x147")](fc("0x98"),n,"join");let c=null;for(const t of this[fc("0x14d")]())if(t.author.id==r.id&&t[fc("0x93")]&&fc("0x98")==t.type&&t[fc("0x13e")]==n&&Ic(t,o)&&(a(t[fc("0x1b")](),i)||a(i,t.getRanges())))if(c){if(t[fc("0x99")]&&t[fc("0x99")][fc("0x9a")])continue;for(const e of t.getRanges())c[fc("0x3b")](e)||c[fc("0x59")](e);t.removeMarkers()}else{c=t;for(const e of i)t.isIntersectingWithRange(e)||t.addRange(e)}if(c)return c;x[fc("0x12f")]();for(const{suggestion:t,meta:e}of this._findSuggestions(i,fc("0x98")))e.isOwn&&(this[fc("0x8b")]||!e[fc("0x10e")]&&!e[fc("0x4a")])&&Ic(t,o)&&x[fc("0x13c")](t);for(const t of x){const e=t[fc("0x1b")]();if((!o||!o[fc("0x13d")])&&i[fc("0xde")]((t=>e[fc("0x72")]((e=>e[fc("0x18")](t,!0))))))return t;(!t[fc("0x7b")]||!t[fc("0x7b")].skipNestingCheck)&&e.every((t=>i[fc("0x72")]((e=>e[fc("0x18")](t,!0)))))&&t[fc("0x101")]()}const l=(0,e.uid)(),u=r.id,d=fc("0x69")+n,g=this[fc("0x8a")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of i)t[fc("0x10")](),t.isCollapsed||fc("0x11b")==t.root[fc("0x3f")]||this[fc("0x128")](d,l,u,t,Jo[fc("0x155")]());return g}markAttributeChange(t,n,o,r,i){if(t[fc("0x157")])return[];if(fc("0xbc")===this._trackFormatChanges)return[];const s=this[fc("0xdf")][fc("0x115")][fc("0x166")](fc("0x123")).me.id,x=Array[fc("0x4d")](this._suggestions[fc("0x17a")]())[fc("0xa2")]((e=>fc("0x14")==e[fc("0x43")]&&e.data[fc("0xc0")]==n&&e[fc("0x3b")](t)));if(fc("0x86")===this[fc("0x80")]){const e=this[fc("0x1d")](t,fc("0x16e"))[fc("0xa2")]((({meta:t})=>t[fc("0x58")]&&!t[fc("0x4a")]&&!t[fc("0xf3")]))[fc("0xb8")]((({suggestion:t})=>t));x.unshift(...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0x14")==t[fc("0x43")]?t[fc("0xb1")][fc("0x8d")]:void 0,i=t[fc("0x9")](),s=Array.from(a[fc("0x49")]())[fc("0x60")]((t=>t[fc("0xd5")](i)));if(!s)continue;const x=s[fc("0x143")](i);this._isBlockAttribute(n)&&"insertion"==t[fc("0x43")]&&0!=x.length||(a[fc("0xd3")](s),x[fc("0x62")]((t=>{a.set(t,o)})),fc("0x16e")!=t.type&&e!=r&&a[fc("0x134")](s[fc("0xbe")](i),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:r};n[fc("0x9a")]>37&&console[fc("0xa0")](fc("0x135"),{key:n});const l=("attribute:"+n+"|"+Tc({newValue:r}))[fc("0xf2")](0,60),u=this[fc("0x8a")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c.push(u),this[fc("0x128")](l,x,s,t)}return c}_registerBlockAttribute(t){this[fc("0x39")][fc("0x13c")](t)}_registerInlineAttribute(t){this[fc("0x102")][fc("0x13c")](t)}[fc("0x9e")](t,e=[],n=[]){this[fc("0x42")](t,((t,...e)=>{this[fc("0x7")]((()=>{t(...e)}))}));for(const t of e)this[fc("0x137")](t);for(const t of n)this._registerBlockAttribute(t)}[fc("0xa1")](t,e){const n=t.getFirstMarker();this[fc("0x2e")][fc("0x2f")]((t=>{t[fc("0x111")](n,{range:e})}))}[fc("0x2")](t){const e=t.id,n=this.editor[fc("0xdd")][fc("0x166")](fc("0x119"));this[fc("0xe3")][fc("0x11a")](e)||this[fc("0xe3")][fc("0xcf")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0xe3")][fc("0x10f")](e);o[fc("0x112")]("isRemovable"),o[fc("0xe6")]=!1,t[fc("0x99")]=o}[fc("0x6")](t,n,o,r){if(t[fc("0x43")]!=n||t[fc("0x13e")]!=o||t[fc("0x4b")].id!=r)throw this[fc("0xdf")][fc("0x2b")](fc("0x171")),new e.CKEditorError(fc("0x171"),this)}_cutOutSuggestionMarker(t,n){const o=t.getFirstRange();if(n.isEqual(o))t.removeMarkers();else if(o[fc("0x18")](n)){const r=this[fc("0x2e")][fc("0x13b")](n[fc("0x77")].nodeBefore,fc("0x87"));this._setSuggestionRange(t,this[fc("0x2e")][fc("0x66")](o[fc("0x77")],r));const i=(0,e.uid)(),s=t.creator.id,x=t[fc("0x43")]+":"+t[fc("0x13e")];this[fc("0x8a")]({id:i,type:x,createdAt:new Date,authorId:s,data:t[fc("0xb1")],attributes:t[fc("0x7b")]});const a=this[fc("0x2e")].createPositionAt(n[fc("0x87")].parent,fc("0x9c")),c=this[fc("0x2e")][fc("0x66")](a,o[fc("0x87")]);this._addSuggestionMarker(x,i,s,c)}else if(o[fc("0x133")](n[fc("0x77")])){const e=this[fc("0x2e")].createPositionAt(n[fc("0x77")].nodeBefore,fc("0x87"));this._setSuggestionRange(t,this[fc("0x2e")].createRange(o[fc("0x77")],e))}else{const e=this[fc("0x2e")][fc("0x13b")](n[fc("0x87")][fc("0x11")],"after");this[fc("0xa1")](t,this[fc("0x2e")].createRange(e,o.end))}}[fc("0x14f")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x16e"))){if(!n[fc("0x58")])continue;const o=e[fc("0x1b")]();for(const e of o)if(!t[fc("0x143")](e).length)return!0}return!1}_getAuthorFromId(t){const n=this[fc("0xdf")][fc("0x115")][fc("0x166")](fc("0x123"))[fc("0x63")](t);if(!n)throw new e.CKEditorError(fc("0x10c"),this);return n}[fc("0xbb")](t){const e=this[fc("0xdf")].plugins[fc("0x166")](fc("0x123")),n=(0,i.hashObject)(fc("0xa6")+t);return e[fc("0x63")](n)||e[fc("0x2a")]({id:n,name:t})}_createSuggestion(t,e,n,o,r){const i=this[fc("0xdc")](o),s=this[fc("0x5d")][fc("0xe7")](t,e,n,i,r,(t=>this[fc("0x163")](n,{attributes:t})));return this[fc("0xea")](s,fc("0x176"),(()=>{this[fc("0x163")](n,{state:fc("0x67")})}),{priority:fc("0x6c")}),this.listenTo(s,fc("0x101"),(()=>{this[fc("0x163")](n,{state:fc("0x5")})}),{priority:fc("0x6c")}),this._suggestions.set(n,s),this._suggestionState[fc("0x134")](s,"notReady"),s}[fc("0xba")](t){const e=t[fc("0x2c")](":");return{group:e[0],type:e[1],subType:e[fc("0x9a")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[fc("0x9a")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[fc("0x6d")](t,n,o){const r=t[fc("0x9")](),i=r[fc("0x77")],s=r.end;this[fc("0xa1")](t,this[fc("0x2e")].createRange(i,n));const x=(0,e.uid)(),a=t[fc("0x4b")].id,c=t.type+(t[fc("0x13e")]?":"+t[fc("0x13e")]:"");this[fc("0x8a")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[fc("0xb1")]});const l=Sc(t);(fc("0x4")==t[fc("0x43")]||l&&this[fc("0xd0")](l))&&(o=this[fc("0x2e")][fc("0x41")](o[fc("0x11")])),this._addSuggestionMarker(c,x,a,this[fc("0x2e")][fc("0x66")](o,s))}[fc("0x1d")](t,e=null){const n=[],o=this.editor[fc("0x115")][fc("0x166")](fc("0x123")).me;Array[fc("0x22")](t)||(t=[t]);for(const r of this.getSuggestions()){if(!r[fc("0x93")])continue;if(e&&r[fc("0x43")]!=e)continue;let i=!1;for(const e of r.getRanges()){for(const s of t){const t=s[fc("0x77")][fc("0xe2")](e[fc("0x87")])||s[fc("0x87")][fc("0xe2")](e[fc("0x77")]);if(t||s[fc("0xbe")](e)){const x=s[fc("0x18")](e)&&bc(this[fc("0x2e")][fc("0x21")],e[fc("0x77")],s),a=e[fc("0x18")](s)&&bc(this[fc("0x2e")][fc("0x21")],s.start,e);n[fc("0xb9")]({suggestion:r,meta:{isOwn:o==r[fc("0x132")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0x128")](t,e,n,o,r){this._model[fc("0x2f")]((i=>{let s="suggestion:"+t+":"+e+":"+n;r&&(s=s+":"+r),i[fc("0x16c")](s,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[fc("0x68")],n=t.next;t.previous=null,t[fc("0x53")]=null,null!=e&&(e[fc("0x53")]=n),null!=n&&(n.previous=e),"ready"==this[fc("0xd2")][fc("0x166")](t)&&(this._suggestionState[fc("0x134")](t,fc("0x52")),this[fc("0xc8")](fc("0x9b"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[fc("0x6f")](t);if(this._adapter&&this[fc("0xf8")][fc("0xbd")]){const r=this[fc("0xdf")][fc("0x115")][fc("0x166")](fc("0x31")),i=o.hasComments,s=o[fc("0x13e")]?o.type+":"+o[fc("0x13e")]:o[fc("0x43")],x=this[fc("0xdf")][fc("0xe5")],a=r[fc("0x13c")](Qo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:s,hasComments:i,data:t.data||null,originalSuggestionId:t[fc("0x121")]||null,attributes:o[fc("0x7b")]};this._adapter[fc("0xbd")](c).then((t=>{o[fc("0x159")]=!0,r.remove(a),t&&t[fc("0x165")]&&(this[fc("0x26")][fc("0x166")](n).createdAt=t[fc("0x165")])}))[fc("0x173")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[fc("0xdf")][fc("0x81")][fc("0xa3")]({isUndoable:!1},(()=>{o.discard()})),o[fc("0xad")](),this._suggestions[fc("0xd3")](o.id),this[fc("0xd2")][fc("0xd3")](o),t}))}return o}_isBlockAttribute(t){return this[fc("0x39")][fc("0x95")](t)}[fc("0x163")](t,e){const n=this[fc("0xdf")].plugins[fc("0x166")]("PendingActions"),o=this[fc("0xce")](t);if(this[fc("0xf8")]&&this._adapter[fc("0xef")])if(o[fc("0x159")]){const o=n.add(Qo(this[fc("0xdf")][fc("0xe5")],fc("0x164")));this._adapter.updateSuggestion(t,e)[fc("0xca")]((()=>{n[fc("0xc2")](o)}))}else o.on(fc("0x12c"),(()=>{this[fc("0x163")](t,e)}))}[fc("0x108")](t){if(!this[fc("0xf8")]||!this[fc("0xf8")][fc("0xce")])throw new e.CKEditorError(fc("0x5c"),this);return this[fc("0xf8")][fc("0xce")](t)}[fc("0x17c")](t){const{id:e,type:n,subType:o,authorId:r}=this[fc("0xba")](t),i=this[fc("0x26")][fc("0x166")](e)||this[fc("0x140")](n,o,e,r,{});switch(this._checkSuggestionCorrectness(i,n,o,r),this[fc("0xd2")][fc("0x166")](i)){case"notReady":this._getSuggestionData(e).then((t=>{let n=Promise[fc("0xe8")]();t[fc("0x27")]&&(n=this[fc("0xe3")].fetchCommentThread({channelId:this[fc("0xdf")][fc("0xdd")].get(fc("0x119")),threadId:e})),n[fc("0xca")]((()=>{this[fc("0x6f")](t)._saved=!0}))})),this._suggestionState.set(i,fc("0xe1"));break;case fc("0x52"):this[fc("0x163")](e,{state:"open"});case fc("0x89"):this[fc("0xd2")][fc("0x134")](i,fc("0xc7")),this[fc("0xc8")](fc("0x16"),i);break;case fc("0xc7"):this[fc("0xc8")](fc("0xc5"),i)}return i[fc("0x24")](t),i}[fc("0x5f")](t){const e=Array[fc("0x4d")](t),n=e.filter((t=>"attribute"==t[fc("0x43")]));this[fc("0xa")](n);const o=e[fc("0xa2")]((t=>!t[fc("0x19")]&&fc("0x14")!=t.type)),r=this[fc("0x14d")]({skipNotAttached:!0})[fc("0xa2")]((t=>!t.isMultiRange&&"attribute"!=t.type)),i=r.filter((e=>!t[fc("0x95")](e))),s=new Map(r.map((t=>[t,this._suggestionFactory[fc("0x147")](t[fc("0x43")],t[fc("0x13e")],fc("0x7c"))]))),x=new Map(r[fc("0xb8")]((t=>[t,t[fc("0x9")]()]))),a=new Set,c=new Set;for(let t=0;t<o.length;t++)u(o[t],o,t+1);for(let t=0;t<o.length;t++)u(o[t],i,0);const l=new Set;for(let t=0;t<o.length;t++){const e=o[t];!c[fc("0x95")](e)&&e[fc("0x68")]&&(l[fc("0x13c")](e.previous),e[fc("0x68")][fc("0x53")]===e&&(e[fc("0x68")].next=null),e[fc("0x68")]=null),!a.has(e)&&e[fc("0x53")]&&(l[fc("0x13c")](e.next),e[fc("0x53")][fc("0x68")]===e&&(e[fc("0x53")][fc("0x68")]=null),e.next=null)}function u(t,e,n){for(let o=n;o<e.length;o++){const n=d(t,e[o]);n&&(n[0].next=n[1],n[1][fc("0x68")]=n[0],a[fc("0x13c")](n[0]),c[fc("0x13c")](n[1]))}}function d(t,e){if(t.author.id!==e[fc("0x132")].id)return null;const n=s.get(t)(t,e,x[fc("0x166")](t),x[fc("0x166")](e));return n&&s[fc("0x166")](e)(t,e,x[fc("0x166")](t),x[fc("0x166")](e))?n[1].commentThread&&n[1][fc("0x99")][fc("0x9a")]?null:n:null}l.size&&this[fc("0x5f")](l)}[fc("0xa")](t){if(0==t.length)return;const e=this[fc("0x14d")]({skipNotAttached:!0})[fc("0xa2")]((t=>"attribute"==t[fc("0x43")]&&t[fc("0x97")])),n=[],o=new Map;for(const t of e){const e=(0,i.hashObject)(t[fc("0x7b")]);o[fc("0x95")](e)||(o[fc("0x134")](e,n.length),n[fc("0xb9")]([]));const r=o[fc("0x166")](e);n[r].push(t)}!function(){n[fc("0x179")](((t,e)=>{const n=t[0].createdAt,o=e[0][fc("0x165")];return n==o?t[0][fc("0x7b")].groupId<e[0].attributes[fc("0xc4")]?-1:1:n<o?-1:1}));for(const t of n)t[fc("0x179")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x9a")];t++){if(0==n[t][fc("0x9a")])continue;const e=[];for(let o=t+1;o<n[fc("0x9a")];o++)0!=n[o].length&&r(n[t],n[o])&&e[fc("0xb9")](o);for(const o of e)n[t]=n[t][fc("0xd9")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0x9a")];e++)t[e][fc("0x53")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0x68")]=t[e-1]||null;function r(t,e){if(t[0][fc("0x132")]!==e[0][fc("0x132")])return!1;if(n=t[0],o=e[0],(n[fc("0x27")]||o[fc("0x27")])&&(n[fc("0x27")]&&o[fc("0x27")]||!(n[fc("0x27")]&&o[fc("0x165")]<n.commentThread[fc("0xe9")][fc("0x166")](0).createdAt||o[fc("0x27")]&&n[fc("0x165")]<o[fc("0x99")][fc("0xe9")].get(0)[fc("0x165")])))return!1;var n,o;const r=lc(t[0][fc("0x7b")],"groupId"),i=lc(e[0].attributes,fc("0xc4"));return!!Go(r,i)&&(!!t[fc("0xde")]((t=>e[fc("0x72")]((e=>t[fc("0x9")]()[fc("0xe2")](e.getFirstRange())))))&&e[fc("0xde")]((e=>t[fc("0x72")]((t=>e[fc("0x9")]()[fc("0xe2")](t[fc("0x9")]()))))))}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this[fc("0x14d")]({skipNotAttached:!0}),o=n[fc("0xa2")]((e=>!t.has(e))),r=new Map(e[fc("0xb8")]((t=>[t,this[fc("0x5d")][fc("0x147")](t.type,t.subType,"join")]))),i=new Map(n[fc("0xb8")]((t=>[t,t[fc("0x1b")]()])));for(let t=0;t<e[fc("0x9a")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;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("0x9a")];s++){const o=n[s];if(o.type!==e[fc("0x43")]||o[fc("0x132")].id!==e.author.id||o[fc("0x13e")]!==e.subType)continue;if(!kc(e,o))continue;if("attribute"==e.type&&e[fc("0xb1")][fc("0x8d")]!=o[fc("0xb1")][fc("0x8d")])continue;if(fc("0x14")==e[fc("0x43")]&&t[fc("0xd0")](e[fc("0xb1")][fc("0xc0")]))continue;if(fc("0x4")==e[fc("0x43")]){const n=t[fc("0xdf")][fc("0x81")],o=e[fc("0xfa")]();if(o&&(n[fc("0x21")].isObject(o)||n[fc("0x21")][fc("0xc1")](o)))continue}const x=r.get(e),a=i[fc("0x166")](e),c=i[fc("0x166")](o),l=e[fc("0x99")]&&e[fc("0x99")].length,u=o[fc("0x99")]&&o[fc("0x99")].length;if(!l&&x(c,a))return t[fc("0xfb")](o,e),i.delete(e),!0;if(!u&&x(a,c))return t[fc("0xfb")](e,o),i[fc("0xd3")](o),!0}return!1}}[fc("0xfb")](t,e){if(t[fc("0x19")])for(const n of e.getRanges())t[fc("0x59")](n);else{const n=e[fc("0x9")]()[fc("0x87")];this[fc("0xa1")](t,this._model[fc("0x66")](t[fc("0x9")]().start,n))}e[fc("0x172")]()}[fc("0xd7")](t,e){const n=t[fc("0x12a")]("format")||t.startsWith(fc("0x14"))?fc("0x1"):t[fc("0x5e")]();return Qo(this[fc("0xdf")][fc("0xe5")],e+"_"+n+"_SUGGESTION_ANNOUNCEMENT")}[fc("0xc3")](){const t=this[fc("0xdf")];(0,i.surroundingMarkersDetector)(this[fc("0x2e")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0xba")](t[fc("0x84")]);if(fc("0xcd")===e){o.push(this[fc("0xd7")](n,fc("0x113")));break}}for(const t of n){const{group:e,type:n}=this[fc("0xba")](t[fc("0x84")]);if(fc("0xcd")===e){o[fc("0xb9")](this[fc("0xd7")](n,"ENTER"));break}}o[fc("0x9a")]&&t.ui.ariaLiveAnnouncer.announce(fc("0x110"),o.join(" "))}))}[fc("0x55")](t){if(null!==this._recordAttributeSuggestionsFromVersion)return!1;const e=this.editor,n=e[fc("0x81")][fc("0x154")][fc("0xf6")][fc("0xb5")]();if(0==n[fc("0x9a")])return!1;const o=[],r=n[fc("0xa2")]((t=>fc("0x14")==t[fc("0x43")])),i=n[fc("0xa2")]((t=>fc("0x6a")==t.type&&"$text"!=t[fc("0x84")])),s=n.filter((t=>"remove"==t[fc("0x43")]&&fc("0x15b")!=t[fc("0x84")]));for(const t of r)o[fc("0xb9")]({key:t[fc("0x12e")],newValue:t[fc("0x70")],oldValue:t[fc("0x48")],range:(x=t[fc("0x117")],null==x.end.nodeBefore&&x[fc("0x87")][fc("0x11")]==x[fc("0x77")][fc("0x122")]?Cc(x[fc("0x77")].nodeAfter,e[fc("0x81")]):x)});var x;for(const t of i){const n=s[fc("0x60")]((e=>e.position.isEqual(t[fc("0x15c")])));n&&o[fc("0xb9")]({key:fc("0x38"),newValue:t[fc("0x84")],oldValue:n.name,range:e.model.createRangeOn(t[fc("0x15c")][fc("0x122")])})}return 0!=o[fc("0x9a")]&&this[fc("0x158")](t,o)}[fc("0xed")](t){let e=!1;const n=this[fc("0xdf")][fc("0x81")][fc("0x154")][fc("0xf6")].getChangedMarkers()[fc("0xa2")]((t=>t[fc("0xb1")][fc("0x6e")]&&t.name[fc("0x12a")](fc("0x167"))));for(const o of n){const{subType:n,id:r}=this._splitMarkerName(o[fc("0x84")]),i=n[fc("0x2c")]("|")[0];for(const n of this[fc("0x14d")]({skipNotAttached:!0}))n.id!=r&&"attribute"==n[fc("0x43")]&&n[fc("0xb1")]&&n.data[fc("0xc0")]==i&&n.getFirstRange()[fc("0xd5")](o.data[fc("0x6e")])&&(this[fc("0xd6")](n,o.data[fc("0x6e")],t),e=!0)}return e}[fc("0x7")](t){if(null!==this._recordAttributeSuggestionsFromVersion)return void t();const n=this[fc("0xdf")];this._recordAttributeSuggestionsFromVersion=n[fc("0x81")].document[fc("0xa9")],t();const o=new Map;for(const t of n.model[fc("0x154")].history.getOperations(this[fc("0x3")]))if([fc("0x14b"),fc("0x1e"),"removeAttribute",fc("0xd8")][fc("0xee")](t.type)){const e=t[fc("0xb4")],n=o[fc("0x166")](e)||[];n[fc("0xb9")](t),o.set(e,n)}this[fc("0x3")]=null;for(const[t,r]of o){const o=(0,e.uid)();n[fc("0x81")][fc("0xa3")](t,(t=>{const e=[];for(const t of r){let r,i,s,x;if(fc("0x14b")==t[fc("0x43")]){const e=t;r=Cc(e.position.nodeAfter,n.model),i="$elementName",s=e[fc("0x94")],x=e[fc("0x145")]}else{const e=t,o=this[fc("0xd0")](e[fc("0xc0")]),a=this[fc("0x102")][fc("0x95")](e.key);if(!o&&!a)continue;r=o?Cc(e[fc("0x117")].start[fc("0x122")],n[fc("0x81")]):e[fc("0x117")],i=e[fc("0xc0")],s=fc("0x36")==t[fc("0x43")]?void 0:e[fc("0x126")],x=e.oldValue}this.markAttributeChange(r,i,x,s,{groupId:o}),e[fc("0xb9")]({range:r,key:i,newValue:s,oldValue:x})}this[fc("0x158")](t,e)}))}}[fc("0x158")](t,e){if(0==e[fc("0x9a")])return!1;let n=!1;for(const o of e){const e=this[fc("0x1d")](o.range,"attribute")[fc("0xa2")]((t=>!t.meta[fc("0xf3")]))[fc("0xb8")]((t=>t.suggestion)),r=(0,i.hashObject)({newValue:o.newValue});e.filter((t=>{const[e,n]=t[fc("0x13e")][fc("0x2c")]("|");return e==o[fc("0xc0")]&&n!=r}))[fc("0x62")]((e=>{this[fc("0xd6")](e,o[fc("0x117")],t),n=!0}))}return n}[fc("0xd6")](t,e,n){const o=t[fc("0x9")]()[fc("0x143")](e);0!==o[fc("0x9a")]?1!==o[fc("0x9a")]?this[fc("0x6d")](t,e.start,e[fc("0x87")]):this[fc("0xa1")](t,o[0]):n[fc("0x65")](t.getFirstMarker())}}class pc{constructor(t){this[fc("0x85")]=t,this[fc("0x2e")]=t[fc("0x81")],this._customCallbacks=new Map,this[fc("0x17f")]=new Map,this._registerDefaultCallbacks()}buildSuggestion(t,e,n,o,r,i){return new Jo(this[fc("0x2e")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:i,onAccept:(...n)=>this[fc("0x147")](t,e,fc("0x176"))(...n),onDiscard:(...n)=>this[fc("0x147")](t,e,fc("0x101"))(...n)})}registerCustomCallback(t,e,n,o){const r=t+":"+e+":"+n;this[fc("0xe0")][fc("0x134")](r,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[fc("0x166")](o)||this[fc("0x17f")][fc("0x166")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[fc("0x179")](((t,e)=>t.start[fc("0x148")](e[fc("0x77")])?1:-1)),this[fc("0x2e")][fc("0x2f")]((e=>{for(const n of t){let t;t=n[fc("0x87")][fc("0x37")]&&n[fc("0x87")][fc("0x11")]==n.start[fc("0x122")]?e[fc("0xe")](n[fc("0x77")][fc("0x122")],"on"):e[fc("0xe")](n),this[fc("0x2e")][fc("0x9d")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0x2e")][fc("0x2f")]((n=>{const{commandName:o,commandParams:r=[]}=e,i=t[fc("0xb8")]((t=>(Ec(t)&&(t=this[fc("0x2e")][fc("0x66")](t[fc("0x87")])),t)))[fc("0xa2")]((t=>fc("0x11b")!==t[fc("0x92")][fc("0x3f")]));if(i[fc("0x9a")]<1)return;const x=Array.from(this._model[fc("0x154")][fc("0x50")][fc("0x1b")]())[fc("0xb8")]((t=>s.LiveRange[fc("0x3d")](t)));n[fc("0x83")](i);for(const t of this[fc("0x85")].commands[fc("0x175")]())t[fc("0x76")]();r[fc("0xb9")]({forceDefaultExecution:!0}),this[fc("0x85")][fc("0xb6")](o,...r);const a=x[fc("0xa2")]((t=>fc("0x11b")!=t[fc("0x92")][fc("0x3f")]));a[fc("0x9a")]>0&&n[fc("0x83")](a);for(const t of x)t[fc("0x10")]()}))},o=(t,e)=>1==t[fc("0x9a")]&&1==e.length&&t[0][fc("0x87")][fc("0xe2")](e[0][fc("0x77")]),r=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x2e")])?[t,e]:Ac(e,t,o,n,this[fc("0x2e")])?[e,t]:null;this._defaultCallbacks.set("insertion:accept",t),this._defaultCallbacks[fc("0x134")](fc("0x57"),e),this._defaultCallbacks[fc("0x134")](fc("0x14c"),o),this._defaultCallbacks[fc("0x134")]("insertion:chain",r),this[fc("0x17f")][fc("0x134")](fc("0x14e"),e),this[fc("0x17f")][fc("0x134")](fc("0x162"),t),this[fc("0x17f")].set(fc("0x44"),o),this._defaultCallbacks[fc("0x134")]("deletion:chain",r),this._defaultCallbacks[fc("0x134")](fc("0x13a"),n),this[fc("0x17f")][fc("0x134")](fc("0x11e"),t),this._defaultCallbacks.set("formatInline:join",o),this[fc("0x17f")][fc("0x134")](fc("0x71"),t),this._defaultCallbacks[fc("0x134")](fc("0xb"),n),this._defaultCallbacks[fc("0x134")](fc("0x150"),t),this[fc("0x17f")].set(fc("0x82"),o),this._defaultCallbacks[fc("0x134")](fc("0x139"),t),this[fc("0x17f")].set(fc("0x40"),t),this._defaultCallbacks[fc("0x134")](fc("0xdb"),((t,e)=>{if(!e)return;const n=this[fc("0x85")][fc("0x115")][fc("0x166")](hc);this[fc("0x2e")][fc("0x2f")]((o=>{if(fc("0x38")==e.key)for(const n of t){const t=n[fc("0x77")][fc("0x122")],r=e.oldValue;o[fc("0x14b")](t,r)}else if(n[fc("0xd0")](e[fc("0xc0")]))for(const n of t)void 0!==e[fc("0x8d")]?o[fc("0x170")](e[fc("0xc0")],e[fc("0x8d")],n[fc("0x77")].nodeAfter):o[fc("0x36")](e[fc("0xc0")],n[fc("0x77")][fc("0x122")]);else for(const n of t)e.oldValue?o[fc("0x170")](e[fc("0xc0")],e[fc("0x8d")],n):o.removeAttribute(e[fc("0xc0")],n)}))})),this._defaultCallbacks[fc("0x134")](fc("0x146"),o)}}function bc(t,e,n){for(const o of e[fc("0x11")][fc("0xe4")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0x92")]==o)return!1;if(!n[fc("0x141")](o))return!1;if(t.isObject(o)||t[fc("0xc1")](o))return!0}return!1}function Ec(t){return t[fc("0x87")].parent==t[fc("0x77")][fc("0x122")]&&t[fc("0x87")][fc("0xb2")]}function _c(t,e,n,o){const r=t=>!t[fc("0x7f")].is(fc("0x32"))&&!o[fc("0xf4")](t[fc("0x7f")]),i=t[fc("0x77")][fc("0x178")](r),s=t.end[fc("0x178")](r,{direction:"backward"});return!(t[fc("0x77")][fc("0xe2")](i)&&t[fc("0x87")].isEqual(s)||(i.isBefore(s)?n.updateMarker(e,{range:n[fc("0x66")](i,s)}):n[fc("0x65")](e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t.start[fc("0x122")];return e&&e.is(fc("0x3c"))}function Cc(t,e){const n=e[fc("0x21")][fc("0xf4")](t)||e[fc("0x21")][fc("0x10b")](t);return e[fc("0x66")](e[fc("0x13b")](t,fc("0x8")),n?e[fc("0xac")](t):e[fc("0x13b")](t,"end"))}function Ac(t,e,n,o,r){if(!kc(t,e))return!1;if(n[fc("0x87")][fc("0xe2")](o[fc("0x77")]))return!0;if(t[fc("0x43")]!=e[fc("0x43")])return!1;if(!n[fc("0x87")][fc("0x12")](o[fc("0x77")]))return!1;const i=r.createRange(n[fc("0x87")],o[fc("0x77")])[fc("0x107")]();for(const t of i)if(["elementStart",fc("0x7e")][fc("0xee")](t[fc("0x43")])&&r[fc("0x21")][fc("0xc1")](t.item))return!1;return!0}function kc(t,e){return!(!t._isDataLoaded||!e[fc("0x97")])&&Go(t[fc("0x7b")],e[fc("0x7b")])}function Ic(t,e){const n=Rc(t[fc("0x7b")]),o=Rc(e);if(!t._isDataLoaded)return!1;for(const t of Object[fc("0x49")](o))if(!Go(n[t],o[t]))return!1;return!0}function Rc(t){const e=Object.assign({},t);return delete e[fc("0x13d")],delete e[fc("0x51")],e}function Sc(t){return fc("0x14")==t[fc("0x43")]?t[fc("0x13e")][fc("0x2c")]("|")[0]:null}const vc=["_removePendingAction","unbind","plugins","canDiscard","_setPendingAction","isEnabled","destroy","isDirty","change:isDirty","add","model","_discardCommand","bind","stopListening","listenTo","_acceptCommand","remove","view","canEditAt","acceptSuggestion","_pendingAction","canAccept","get","commands","discardSuggestion","_editor","commentThreadController","locale","PendingActions"];var Nc,Lc;Nc=vc,Lc=500,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return vc[t-=0]};class Oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Mc("0x3")]=e,this[Mc("0xa")]=n,this[Mc("0x13")]=o,this._editor=t,this._acceptCommand=t[Mc("0x10")][Mc("0xf")]("acceptSuggestion"),this._discardCommand=t.commands[Mc("0xf")](Mc("0x11")),this[Mc("0xa")][Mc("0x5")](Mc("0x1b")).to(this[Mc("0x8")],this._discardCommand,((t,e)=>t||e)),this[Mc("0xa")][Mc("0x5")](Mc("0xe")).to(this[Mc("0x8")],Mc("0x1b"),(t=>t&&this[Mc("0x12")][Mc("0x3")].canEditAt(e.getRanges()))),this[Mc("0xa")][Mc("0x5")](Mc("0x19")).to(this[Mc("0x4")],"isEnabled",(t=>t&&this._editor[Mc("0x3")][Mc("0xb")](e.getRanges()))),this[Mc("0xd")]=null,n[Mc("0x0")]&&this._setPendingAction(),this.listenTo(n,Mc("0xc"),(()=>this[Mc("0xc")]())),this[Mc("0x7")](n,Mc("0x11"),(()=>this[Mc("0x11")]())),this[Mc("0x7")](n,Mc("0x1"),(()=>{n[Mc("0x0")]?this[Mc("0x1a")]():this[Mc("0x16")]()}))}[Mc("0xc")](){this[Mc("0x8")].execute(this.model.id)}[Mc("0x11")](){this[Mc("0x4")].execute(this[Mc("0x3")].id)}[Mc("0x1c")](){this[Mc("0xa")].unbind(Mc("0x1b")),this[Mc("0xa")][Mc("0x17")](Mc("0xe")),this[Mc("0xa")][Mc("0x17")]("canDiscard"),this[Mc("0x6")](),this[Mc("0x13")].destroy(),this[Mc("0xd")]&&this[Mc("0x16")]()}_setPendingAction(){const t=Qo(this[Mc("0x12")][Mc("0x14")],"PENDING_ACTION_SUGGESTION");this[Mc("0xd")]=this[Mc("0x12")].plugins.get(Mc("0x15"))[Mc("0x2")](t)}[Mc("0x16")](){null!==this[Mc("0xd")]&&this[Mc("0x12")][Mc("0x18")].get(Mc("0x15"))[Mc("0x9")](this[Mc("0xd")]),this[Mc("0xd")]=null}}const wc=["length","setData","_createCommentViews","_localUser","commentThread","isDirty","commentInputView","editorConfig","authoredAt","commentsListView","element","value","locale","canDiscard","_model","isActive","disableComments","delegate","assign","updateComment","removeComment","_config","disabledSubmit","commentThreadInputView","submit","cancel","set","destroy","isReadOnly","showInput","focus","bind","descriptionParts","CommentView"];var Fc,Dc;Fc=wc,Dc=200,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Pc=function(t,e){return wc[t-=0]};class Bc extends r.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[Pc("0x1b")]=null,this[Pc("0x1e")]("isActive",!1),this[Pc("0x1e")](Pc("0xc"),e.authoredAt),this[Pc("0x1")](Pc("0xc")).to(e),this[Pc("0x1e")](Pc("0x2"),[]),this[Pc("0x1e")](Pc("0x9"),!1),this.set("isEnabled",!1),this[Pc("0x1e")]("canAccept",!1),this[Pc("0x1e")](Pc("0x11"),!1),this[Pc("0x12")]=e,this[Pc("0x7")]=n,this[Pc("0x19")]=o,o[Pc("0x14")]?this[Pc("0x1e")](Pc("0x4"),1):this[Pc("0x6")]()}[Pc("0x0")](){this[Pc("0xe")][Pc("0x0")]()}[Pc("0x1f")](){this[Pc("0xd")]&&this[Pc("0xd")].destroy(),this[Pc("0x1b")]&&this.commentThreadInputView[Pc("0x1f")](),super[Pc("0x1f")]()}[Pc("0x6")](){const{CommentsListView:t}=this[Pc("0x19")];this.commentsListView=new t(this[Pc("0x10")],this[Pc("0x12")][Pc("0x8")],Object[Pc("0x16")]({CommentView:this[Pc("0x19")][Pc("0x3")]},this[Pc("0x19")])),this[Pc("0xd")][Pc("0x15")](Pc("0x18")).to(this),this[Pc("0xd")][Pc("0x15")](Pc("0x17")).to(this),this[Pc("0xd")][Pc("0x1")](Pc("0x13")).to(this),this[Pc("0x1e")](Pc("0x4"),this[Pc("0xd")].length+1),this.bind("length").to(this[Pc("0xd")],Pc("0x4"),(t=>t+1)),this[Pc("0x1b")]=this._createCommentThreadInputView(),this.on("removeComment",(()=>this[Pc("0x0")]())),this[Pc("0x1")](Pc("0x9")).to(this[Pc("0xd")],"hasDirtyComment",this[Pc("0x1b")][Pc("0xa")],Pc("0xf"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Pc("0x19")],e=new t(this[Pc("0x10")],this._localUser,this[Pc("0x19")][Pc("0xb")]),n=e[Pc("0xa")];return e[Pc("0x1")](Pc("0x21")).to(this,Pc("0x13"),this[Pc("0x12")].commentThread,Pc("0x20"),n,Pc("0xf"),((t,e,n)=>!!n||t&&!e)),n.on(Pc("0x1c"),((t,e)=>{this.fire("addComment",e),n.editor[Pc("0x5")]("")})),n.on(Pc("0x1d"),(()=>this.focus())),n[Pc("0x1")](Pc("0x1a")).to(this[Pc("0x12")][Pc("0x8")],"isReadOnly"),e}}const Uc=["cancel","ck-annotation","bindTemplate","ck-suggestion-wrapper--active","getExternalSuggestionNote","commentsListView","EXTERNAL_AVATAR","ck-annotation__info-time","color","EXTERNAL_SUGGESTION","getTemplate",'" title="',"innerHTML","locale","map","_descriptionElement","description","ck-suggestion--disabled-comments","authoredAt","commentThread","ck-comment__external","innerText","@external","ck-suggestion__main","importWord","commentThreadInputView","_createButton","disableComments","render","<p>","ck-annotation__info-name","extendTemplate","fire","ck-suggestion","querySelector","element","_config","author","EXTERNAL_IMPORT_WORD_AVATAR","attributes","EXTERNAL_IMPORT_WORD_SUGGESTION","acceptButton","createElement","ck-suggestion--discard","discardSuggestion","check","bind","discardButton","setTemplate","Accept suggestion","ck-suggestion__info","userView","execute","name",'<span class="ck-suggestion-type">',"time",'<span class="ck-suggestion-color" style="background-color: ',"_model","canAccept",".ck-annotation__content-wrapper","delegate","ck-suggestion--accept","editorDestroyed","div","ck-comment__info-time","isActive","Discard suggestion","span","content","split","source","ck-suggestion-wrapper","set","descriptionParts","creator","editorReady","title","formatDateTime","type","push","isEnabled","ck-annotation__actions","canDiscard","getUserViewNotificationText","children"];var jc,Gc;jc=Uc,Gc=373,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends Bc{constructor(e,n,o,r){super(e,n,o,r),this[Vc("0x27")](Vc("0x2d"),""),this[Vc("0xd")](Vc("0x2d")).to(this,Vc("0x28"),(t=>t&&t[0]?t[0][Vc("0x2d")]:"")),this[Vc("0xd")](Vc("0x44")).to(this,"descriptionParts",this,Vc("0x20"),((t,e)=>{let n="";for(const e of t)n+=Vc("0x51")+zc(e[Vc("0x23")],e[Vc("0x3c")])+"</p>";return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Vc("0x43")]=null,this[Vc("0x8")]=this[Vc("0x4e")](Qo(e,Vc("0x10")),t.icons[Vc("0xc")],Vc("0x1c"),"acceptSuggestion","sw"),this[Vc("0x8")].bind(Vc("0x2f")).to(this,Vc("0x19")),this[Vc("0xe")]=this[Vc("0x4e")](Qo(e,Vc("0x21")),t.icons[Vc("0x34")],Vc("0xa"),Vc("0xb"),"sw"),this[Vc("0xe")][Vc("0xd")](Vc("0x2f")).to(this,Vc("0x31")),this[Vc("0x12")]=new i.UserView(e,this[Vc("0x18")][Vc("0x4")],this[Vc("0x32")]()),this[Vc("0x12")][Vc("0x53")]({attributes:{class:["ck-suggestion__user","ck-annotation__user"]}}),this[Vc("0xf")](this[Vc("0x3e")]())}[Vc("0x3e")](){const t=this[Vc("0x36")],e=[{tag:Vc("0x1e"),attributes:{class:[Vc("0x11"),"ck-annotation__info"]},children:[{tag:Vc("0x22"),children:[{text:this.userView[Vc("0x14")]}],attributes:{class:["ck-suggestion__info-name",Vc("0x52")]}},{tag:Vc("0x16"),attributes:{datetime:t.to("authoredAt"),class:[Vc("0x1f"),Vc("0x3b")]},children:[{text:t.to(Vc("0x46"),(t=>this._config[Vc("0x2c")](t)))}]}]},{tag:Vc("0x1e"),attributes:{class:["ck-suggestion__actions",Vc("0x30")]},children:[this[Vc("0x8")],this[Vc("0xe")]]},{tag:Vc("0x1e"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[Vc("0x18")].isExternal&&e.push({tag:Vc("0x1e"),attributes:{class:[Vc("0x48")]},children:[{text:this[Vc("0x38")]()}]});const n={tag:"div",attributes:{class:[Vc("0x26"),t.if(Vc("0x20"),Vc("0x37")),t.to(Vc("0x2d"),(t=>"ck-suggestion-"+t)),this[Vc("0x3")][Vc("0x4f")]&&Vc("0x45")],"data-suggestion-id":this[Vc("0x18")].id,"data-thread-id":this[Vc("0x18")][Vc("0x47")].id,"data-author-id":this._model[Vc("0x4")].id,tabindex:-1},children:[{tag:Vc("0x1e"),attributes:{class:[Vc("0x0"),Vc("0x35")]},children:[this[Vc("0x12")],{tag:"div",attributes:{class:[Vc("0x4b"),"ck-annotation__main"]},children:e}]}]};return this[Vc("0x39")]&&this[Vc("0x4d")]&&(n[Vc("0x33")][Vc("0x2e")](this[Vc("0x39")],this.commentThreadInputView),this[Vc("0x39")][Vc("0x1b")]("editorReady").to(this),this[Vc("0x39")][Vc("0x1b")](Vc("0x1d")).to(this),this[Vc("0x4d")][Vc("0x1b")](Vc("0x2a")).to(this),this[Vc("0x4d")][Vc("0x1b")](Vc("0x1d")).to(this)),n}[Vc("0x50")](){super[Vc("0x50")](),this[Vc("0x43")]=this[Vc("0x2")][Vc("0x1")](Vc("0x1a")),this[Vc("0x43")][Vc("0x40")]=this[Vc("0x44")],this.on("change:description",((t,e,n)=>{this[Vc("0x43")].innerHTML=n}))}[Vc("0x4e")](t,e,n,o,i){const s=new r.ButtonView(this[Vc("0x41")]);return s[Vc("0x27")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Vc("0x53")]({attributes:{class:n}}),s.on(Vc("0x13"),(()=>{this[Vc("0x54")](o,this[Vc("0x18")].id)})),s}[Vc("0x38")](){return Vc("0x4c")===this[Vc("0x18")].attributes[Vc("0x4a")][Vc("0x25")]?Qo(this[Vc("0x41")],Vc("0x7")):Qo(this[Vc("0x41")],Vc("0x3d"))}[Vc("0x32")](){return this[Vc("0x18")].isExternal?"importWord"===this[Vc("0x18")][Vc("0x6")][Vc("0x4a")].source?Qo(this[Vc("0x41")],Vc("0x5"),this[Vc("0x18")][Vc("0x29")][Vc("0x14")]):Qo(this[Vc("0x41")],Vc("0x3a"),this[Vc("0x18")].creator[Vc("0x14")]):null}}function zc(t,e){let n="";return n+=t[Vc("0x24")]("*")[Vc("0x42")](((t,e)=>e%2!=0?Vc("0x15")+Wc(t)+"</span>":Wc(t))).join(""),e&&(n+=Vc("0x17")+e.value+Vc("0x3f")+e[Vc("0x2b")]+'"></span>'),n}function Wc(t){const e=document[Vc("0x9")](Vc("0x22"));return e[Vc("0x49")]=t,e[Vc("0x40")]}const Kc=["change:previous","getDescriptions","getSuggestion","descriptionParts","getByInnerView","stopListening","isInContent","getRanges","acceptButton","_annotationViews","value","isDirty","trackChanges.SuggestionThreadView","editor","get","view","destroy","comments.maxCommentsWhenCollapsed","separator","SuggestionThreadView","commandName","reduce","CommentsRepository","_handleSuggestionControllerDelayed","Discard all selected suggestions","push","Accept all selected suggestions","from","_suggestionToController","isMultiRange","head","suggestionUnloaded","getMarkers","acceptSelectedSuggestions","Accept all suggestions","change:activeAnnotations","getMarkerNames","set","editing","createAnnotation","_updateController","suggestionLoaded","acceptAllSuggestions","listenTo","delete","trackChanges","filter","getAllAdjacentSuggestions","CommentView","values","type","bind","Annotations","EditorAnnotations","_descriptionFactory","mainView","TrackChangesEditing","trackChanges.disableComments","remove","registerAnnotation","_createUIButton","init","isOn","comments.maxThreadTotalWeight","lowest","activeAnnotations","locale","Discard all suggestions","buttonView","model","createCommentThreadController","has","toMany","isEnabled","keys","componentFactory","arrowView","add","source","comments.maxCommentCharsWhenCollapsed","suggestion-","config","_refreshActiveMarkers","actionView","_destroyController","comments","focus","clear","execute","size","some","discardSelectedSuggestions","pluginName","discardButton","commentThread","createAnnotationView","CommentsUI","unbind","getJoined","_bindAnnotationToEditors","addComment","commands","previous","_disableComments","button","_handleControllerBuffer","TrackChangesUI","_viewToController","discardAllSuggestions","_initializeController","plugins","_unbindEditors"];var qc,$c;qc=Kc,$c=475,function(t){for(;--t;)qc.push(qc.shift())}(++$c);const Xc=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get requires(){return[hc,i.Users,"CommentsRepository","Annotations","EditorAnnotations"]}static get[Xc("0x41")](){return Xc("0x4f")}constructor(t){super(t),this[Xc("0x1")]=new Map,this[Xc("0x50")]=new Map,this[Xc("0x5e")]=new Map,this[Xc("0x4e")]=new Map;const e=this[Xc("0x62")].config;e.define(Xc("0x61"),Hc),e.define("trackChanges.disableComments",!1),this[Xc("0x4c")]=e[Xc("0x63")](Xc("0x1e"))}[Xc("0x6c")](t,e){0===this[Xc("0x4e")][Xc("0x3e")]&&setTimeout((()=>{for(const[t,e]of this[Xc("0x4e")]){const n=this._suggestionToController[Xc("0x2c")](t);n||e?n&&e&&this[Xc("0x39")](t):this._initializeController(t)}this.editor[Xc("0x53")].get(Xc("0x1a")).refreshSelectedViews(),this[Xc("0x37")](),this[Xc("0x4e")][Xc("0x3c")]()}),10),this._handleControllerBuffer.set(t,e)}[Xc("0x22")](){const t=this[Xc("0x62")],e=t[Xc("0x53")][Xc("0x63")]("TrackChangesEditing"),n=t[Xc("0x53")].get("Annotations"),o=t[Xc("0x53")][Xc("0x63")](Xc("0x1a")),r=t[Xc("0x53")].get(Xc("0x6b"));t.ui[Xc("0x30")][Xc("0x32")]("trackChanges",(t=>this[Xc("0x21")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array.from(this[Xc("0x1")])){const o=e[Xc("0x14")](),r=[];for(const t of o){if(!t[Xc("0x5b")])continue;if(t[Xc("0x2")]){r[Xc("0x6e")](...t[Xc("0x5c")]());continue}const e=t.getFirstRange();if(r.length>0){const t=r[0][Xc("0x47")](e);if(t){r[0]=t;continue}}r[Xc("0x6e")](e)}t[Xc("0x6e")]([n.view,r])}return t})),this.listenTo(e,Xc("0xe"),((t,e)=>{this.listenTo(e,"change:previous",((t,n,o,r)=>{e[Xc("0x5b")]&&(null==o?(this._updateController(r[Xc("0x3")]),this[Xc("0x6c")](e,!1)):(this[Xc("0xd")](o.head),null==r&&this._handleSuggestionControllerDelayed(e,!0)))})),null!==e[Xc("0x4b")]?this._updateController(e[Xc("0x3")]):this._handleSuggestionControllerDelayed(e,!1)})),this[Xc("0x10")](e,Xc("0x4"),((t,e,n)=>{this[Xc("0x5a")](e,Xc("0x55")),this[Xc("0x4e")][Xc("0x11")](e),this._suggestionToController[Xc("0x2c")](e)&&this[Xc("0x39")](e),n&&this._updateController(n.head)})),this.listenTo(e,"suggestionChanged",((t,e)=>{this[Xc("0xd")](e)})),this[Xc("0x10")](n,Xc("0x8"),(()=>{this[Xc("0x37")]()})),this.listenTo(r,Xc("0x49"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const r=e[Xc("0x57")](n);this[Xc("0x1")][Xc("0x63")](r)[Xc("0x64")][Xc("0x3b")]()}),{priority:Xc("0x25")})}[Xc("0x37")](){const t=this[Xc("0x62")][Xc("0x53")].get(Xc("0x19")),e=this.editor.plugins[Xc("0x63")]("TrackChangesEditing"),n=Array[Xc("0x0")](t[Xc("0x26")],(t=>t.innerView))[Xc("0x13")]((t=>this[Xc("0x50")].has(t))),o=[];for(const t of n){const e=this._viewToController.get(t)[Xc("0x2a")][Xc("0x14")]();o.push(...e[Xc("0x6a")](((t,e)=>[...t,...e[Xc("0x9")]()]),[]))}e.activeMarkers=o}[Xc("0x21")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this.editor[Xc("0x4a")][Xc("0x63")](Xc("0x12")),i=Qo(t,"Track changes");n[Xc("0x29")].set({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[Xc("0x29")][Xc("0x18")]("isOn").to(o,Xc("0x5f")),n[Xc("0x29")].on(Xc("0x3d"),(()=>{o.execute(),this[Xc("0x62")][Xc("0xb")][Xc("0x64")].focus()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:i,commandName:Xc("0x12")}},{type:Xc("0x67")},{type:Xc("0x4d"),model:{withText:!0,label:Qo(t,Xc("0x7")),commandName:Xc("0xf")}},{type:"button",model:{withText:!0,label:Qo(t,Xc("0x6f")),commandName:Xc("0x6")}},{type:Xc("0x4d"),model:{withText:!0,label:Qo(t,Xc("0x28")),commandName:Xc("0x51")}},{type:"button",model:{withText:!0,label:Qo(t,Xc("0x6d")),commandName:Xc("0x40")}}];for(const t of x){let e={type:"separator"};if(t[Xc("0x2a")]){const n=new r.Model(t.model),o=this.editor[Xc("0x4a")][Xc("0x63")](n[Xc("0x69")]);n.bind(Xc("0x23"),"isEnabled").to(o,Xc("0x5f"),Xc("0x2e")),e={type:t[Xc("0x17")],model:n}}s[Xc("0x32")](e)}(0,r.addListToDropdown)(n,s);const a=x[Xc("0x13")]((t=>null!=t[Xc("0x2a")])).map((t=>this[Xc("0x62")].commands.get(t[Xc("0x2a")][Xc("0x69")]))),c=n[Xc("0x29")];return c.actionView.unbind(Xc("0x2e")),c.arrowView[Xc("0x46")](Xc("0x2e")),c[Xc("0x38")][Xc("0x18")]("isEnabled").to(o,Xc("0x2e")),c[Xc("0x31")][Xc("0x18")](Xc("0x2e"))[Xc("0x2d")](a,"isEnabled",((...t)=>t[Xc("0x3f")]((t=>t)))),n.on("execute",(t=>{this[Xc("0x62")].execute(t[Xc("0x33")][Xc("0x69")]),this[Xc("0x62")][Xc("0xb")][Xc("0x64")][Xc("0x3b")]()})),n}[Xc("0x52")](t){const e=this[Xc("0x62")],n=e[Xc("0x36")],o=e[Xc("0x53")][Xc("0x63")](Xc("0x19")),r=e[Xc("0x53")][Xc("0x63")](Xc("0x6b")),s=e.plugins[Xc("0x63")](Xc("0x1a")),x=e[Xc("0x53")][Xc("0x63")](i.Users).me,a=n.get(Xc("0x12"))[Xc("0x68")],{CommentsListView:c,CommentThreadInputView:l}=e[Xc("0x53")][Xc("0x63")](Xc("0x45"));let u,d;this._annotationViews.has(t.id)?(d=this[Xc("0x5e")][Xc("0x63")](t.id),u=d[Xc("0x1c")]):(u=new a(e[Xc("0x27")],t,x,{disableComments:this[Xc("0x4c")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n[Xc("0x63")](Xc("0x66")),maxThreadTotalWeight:n[Xc("0x63")](Xc("0x24")),maxCommentCharsWhenCollapsed:n[Xc("0x63")](Xc("0x34")),formatDateTime:(0,i.getDateTimeFormatter)(n[Xc("0x63")](Xc("0x27"))),CommentView:n[Xc("0x63")](Xc("0x3a"))[Xc("0x15")],CommentsListView:c,CommentThreadInputView:l}),u[Xc("0x5d")].on("execute",(()=>{e[Xc("0xb")][Xc("0x64")].focus()})),u[Xc("0x42")].on(Xc("0x3d"),(()=>{e[Xc("0xb")][Xc("0x64")][Xc("0x3b")]()})),d=o[Xc("0x44")](this.editor.locale,u),d[Xc("0x18")](Xc("0x60")).to(u,Xc("0x60")),d[Xc("0x18")]("length").to(u),d[Xc("0x18")]("type").to(u,"type",(t=>"suggestion-"+t)),this._annotationViews[Xc("0xa")](t.id,d));const g=r[Xc("0x2b")](t[Xc("0x43")],u),f=new Oc(e,t,u,g),m=t.getAllAdjacentSuggestions()[Xc("0x13")]((t=>t[Xc("0x5b")]));u.descriptionParts=e[Xc("0x53")][Xc("0x63")](Xc("0x1d"))[Xc("0x1b")][Xc("0x56")](m),this[Xc("0x1")][Xc("0xa")](t,f),this[Xc("0x50")][Xc("0xa")](u,f);const h=o[Xc("0xc")]({view:d,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[Xc("0x13")]((t=>t[Xc("0x5b")]));for(const t of o)n[Xc("0x6e")](...t[Xc("0x5")]());return(0,i.getAllMarkersDomElementsSorted)(e[Xc("0xb")],n)},type:()=>Xc("0x35")+f.view[Xc("0x17")]});r[Xc("0x48")](u,h),o[Xc("0x32")](h),s[Xc("0x20")](h)}[Xc("0x39")](t){const e=this[Xc("0x62")][Xc("0x53")][Xc("0x63")](Xc("0x6b")),n=this[Xc("0x62")][Xc("0x53")].get("Annotations"),o=this._suggestionToController[Xc("0x63")](t),r=o[Xc("0x64")],i=n[Xc("0x59")](r);e[Xc("0x54")](r),i&&n[Xc("0x1f")](i),this._suggestionToController[Xc("0x11")](t),this[Xc("0x50")][Xc("0x11")](r),o[Xc("0x65")]()}[Xc("0xd")](t){if(!t[Xc("0x5b")]||!this[Xc("0x1")].has(t))return;const e=this[Xc("0x62")][Xc("0x53")].get(Xc("0x1d")),n=this._suggestionToController[Xc("0x63")](t),o=t[Xc("0x14")]();n[Xc("0x64")][Xc("0x58")]=e[Xc("0x1b")][Xc("0x56")](o)}[Xc("0x65")](){for(const t of this[Xc("0x1")][Xc("0x2f")]())this[Xc("0x39")](t);for(const t of this[Xc("0x5e")][Xc("0x16")]())t[Xc("0x1c")].destroy();super.destroy()}}var Yc,Jc,Qc=["get","editor","plugins","addSuggestion","requires","adapter","getSuggestions","addSuggestionData","Comments","pluginName","getSuggestion"];Yc=Qc,Jc=291,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("0xa")](){return[hc,Zc,tl("0x3")]}static get[tl("0x4")](){return"TrackChanges"}set adapter(t){this[tl("0x7")].plugins[tl("0x6")](hc)[tl("0x0")]=t}get adapter(){return this[tl("0x7")][tl("0x8")][tl("0x6")](hc)[tl("0x0")]}[tl("0x9")](t){return this.editor.plugins[tl("0x6")](hc)[tl("0x2")](t)}[tl("0x1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[tl("0x7")][tl("0x8")].get(hc)[tl("0x1")]({skipNotAttached:t,toJSON:e})}[tl("0x5")](t){return this.editor[tl("0x8")].get(hc)[tl("0x5")](t)}}const nl=["model","track-changes-data-invalid-editor-creator","getUser","Users","reduce","config","addSuggestionData","define","get","pluginName","TrackChangesData","getSuggestions","Pagination","editor","_adapter","constructor","div","end","document","name","editorCreator","TrackChangesDataGetter","data","addUser","TrackChangesEditing","CommentsRepository","push","plugins","trackChangesData.editorCreator","getDataWithAcceptedSuggestions","trackChangesData","createDocumentFragment","getRootNames","init","function","users","discardAllSuggestions","set","getFullData","getDataWithDiscardedSuggestions","appendChild"];var ol,rl;ol=nl,rl=132,function(t){for(;--t;)ol.push(ol.shift())}(++rl);const il=function(t,e){return nl[t-=0]},sl=[il("0x3")];class xl extends t.Plugin{static get requires(){return[hc]}static get[il("0x0")](){return il("0x1")}[il("0x18")](){const t=this[il("0x4")];if(t.config[il("0x27")](il("0x13"),(e=>{const n=t[il("0x20")][il("0x9")][il("0x17")]()[il("0x24")](((t,e)=>(t[e]="",t)),{});return t[il("0x6")].create(n,e)})),il("0x19")!=typeof t[il("0x25")][il("0x28")](il("0x15"))[il("0xb")])throw new e.CKEditorError(il("0x21"))}[il("0x14")](t){return ll(this[il("0x4")],!0,t)}[il("0x1e")](t){return ll(this[il("0x4")],!1,t)}}class al extends t.Plugin{static get pluginName(){return il("0xc")}constructor(t){super(t),this.result=il("0x8")}[il("0x18")](){this.editor[il("0x12")][il("0x28")](il("0x10"))[il("0x5")]={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[il("0x4")][il("0x12")][il("0x28")](il("0xf"))[il("0x5")]=null}}function cl(t){return void 0!==t.getRootsAttributes}async function ll(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,sl);o.plugins[il("0x11")](hc,al),o.rootsAttributes=cl(t)?t.getRootsAttributes():void 0;const r=document[il("0x16")](),s=t[il("0x25")].get(il("0x15"))[il("0xb")],x=await s(o,(()=>function(t){const e=document.createElement(il("0x7"));return t[il("0x1f")](e),e}(r)));!function(t,e){const n=t[il("0x20")].document[il("0x17")]().reduce(((e,n)=>(e[n]=t[il("0xd")][il("0x28")]({rootName:n}),e)),{}),o=t.plugins[il("0x28")](il("0x23"))[il("0x1a")].map((t=>({id:t.id,name:t[il("0xa")]}))),r=t[il("0x12")][il("0x28")](il("0xf"))[il("0x2")]({skipNotAttached:!0,toJSON:!0}),i=e.plugins[il("0x28")](il("0x23")),s=e[il("0x12")][il("0x28")](il("0xf"));for(const t of o)i[il("0x22")](t.id)||i[il("0xe")](t);i.me||i.useAnonymousUser();for(const t of r)s[il("0x26")](t);e.data[il("0x1c")](n)}(t,x),x.execute(e?"acceptAllSuggestions":il("0x1b"));const a=cl(x)?x[il("0x1d")](n):x.data[il("0x28")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|