@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230708.0 → 0.0.0-nightly-20230710.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Mc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),r=n(273),s=n(417),i=n(492),x=n(995);const a=["commands","TrackChangesCommand","has","execute","_enableCommands","isEnabled","forceDisabled","clearForceDisabled","_isEnabledBasedOnSelection","_disableUnsupportedCommands","editor","refresh","_enabledCommands","value"];var c,l;c=a,l=434,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[d("0xd")]=!1,this[d("0xb")](),this[d("0x8")]=!1}[d("0xb")](){this[d("0x5")]=!0}[d("0x3")](){this[d("0xd")]=!this[d("0xd")],this[d("0xd")]?this[d("0x9")]():this[d("0x4")]()}_disableUnsupportedCommands(){for(const t of this.editor.commands.commands())t.affectsData&&!this._enabledCommands[d("0x2")](t)&&t[d("0x6")](d("0x1"))}[d("0x4")](){for(const t of this[d("0xa")][d("0x0")][d("0x0")]())t.affectsData&&!this[d("0xc")][d("0x2")](t)&&t[d("0x7")](d("0x1"))}}const g=["get","_suggestions","plugins","isEnabled","TrackChangesEditing","track-changes-accept-suggestion-not-found","refresh","execute","editor","canEditAt","model"];var m,f;m=g,f=250,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x4")]=e,this[h("0x9")](),this._isEnabledBasedOnSelection=!1}refresh(){this[h("0x6")]=!0}[h("0xa")](t){const n=this[h("0x4")][h("0x3")](t);if(!n)throw new e.CKEditorError(h("0x8"),this);const o=n.getRanges();this.editor[h("0x2")][h("0x1")](o)&&this[h("0x0")][h("0x5")][h("0x3")](h("0x7")).acceptSuggestion(n)}}const b=["get","refresh","canEditAt","isEnabled","track-changes-discard-suggestion-not-found","_suggestions","model","plugins","execute","getRanges","editor","TrackChangesEditing"];var E,_;E=b,_=428,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x9")]=e,this[T("0x5")](),this._isEnabledBasedOnSelection=!1}refresh(){this[T("0x7")]=!0}[T("0x0")](t){const n=this._suggestions[T("0x4")](t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n[T("0x1")]();this[T("0x2")][T("0xa")][T("0x6")](o)&&this[T("0x2")][T("0xb")][T("0x4")](T("0x3")).discardSuggestion(n)}}const y=["isMultiRange","next","deletion","createPositionAfter","isObject","content","end","map","push","replace","createPositionBefore","value","getMarkers","isInContent","getRange","type","splice","createPositionAt","isIntersecting","color"," [color ","sort","schema","isTouching","isCollapsed","createRange","join"];var k,A;k=y,A=464,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x10")](((t,e)=>"deletion"==t.type&&v("0x18")!=e[v("0xa")]?-1:v("0x18")!=t[v("0xa")]&&v("0x18")==e[v("0xa")]?1:0))}function S(t,e){let n,o=0;const r=[],s=e[v("0x11")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x5")](i)),I(e,i,x)||(r[v("0x3")](e[v("0x14")](n,s[v("0x1a")](i)?e[v("0x19")](i):e[v("0xc")](i,"end"))),n=null),o++}return r}function I(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),r=t[v("0x5")](n);return o[v("0x12")](r)}function L(t,e,n){for(;n.length;){const o=n[v("0xb")](0,100);t.change((()=>{for(const t of o)t[v("0x8")]&&e.execute(t.id)}))}}const N=["isEnabled","from","values","editor","_command","_suggestions","refresh","isInContent","model"];var M,w;M=N,w=183,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x1")]=e,this._suggestions=n,this[O("0x3")](),this._isEnabledBasedOnSelection=!1}[O("0x3")](){const t=Array.from(this[O("0x2")].values()).some((t=>t[O("0x4")]));this[O("0x6")]=this[O("0x1")][O("0x6")]&&t}execute(){const t=R(Array[O("0x7")](this[O("0x2")][O("0x8")]()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x5")].canEditAt(t))return}L(this[O("0x0")][O("0x5")],this[O("0x1")],t)}}const P=["_command","_selectedSuggestions","model","canEditAt","_isEnabledBasedOnSelection","from","editor","document","isEnabled","_suggestions","size","refresh","values","getRanges","selection"];var D,B;D=P,B=135,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x0")]=e,this[j("0x9")]=n,this[j("0x1")]=new Set,this[j("0xb")](),this[j("0x4")]=!1}[j("0xb")](){const t=this[j("0x6")][j("0x2")][j("0x7")][j("0xe")],e=Array[j("0x5")](this[j("0x9")][j("0xc")]());this[j("0x1")]=function(t,e){const n=Array.from(t.getRanges()),o=new Set;for(const r of e)if(r[v("0x8")])for(const e of n)for(const n of r[v("0x7")]()){const s=n[v("0x9")]();(e[v("0xd")](s)||t[v("0x13")]&&!r[v("0x16")]&&r[v("0x17")]&&s[v("0x1")][v("0x12")](e.start))&&o.add(r)}return o}(t,e),this[j("0x8")]=this[j("0x0")][j("0x8")]&&!!this[j("0x1")][j("0xa")]}execute(){const t=R(Array[j("0x5")](this[j("0x1")]));for(const e of t){const t=e[j("0xd")]();if(!this[j("0x6")][j("0x2")][j("0x3")](t))return}L(this[j("0x6")][j("0x2")],this[j("0x0")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const rt=ot.Symbol;var st=Object.prototype,it=st.hasOwnProperty,xt=st.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var r=xt.call(t);return o&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=rt?rt.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const re=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const se=function(t,e,n,o){var r=!n;n||(n={});for(var s=-1,i=e.length;++s<i;){var x=e[s],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 ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),r=!n&&!o&&be(t),s=!n&&!o&&!r&&Le(t),i=n||o||r||s,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&se(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&se(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return se(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 se(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=rt?rt.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,r,s,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=s?o(e,r,s,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!s){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Yn[u])return s?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,i))})):Kn(e)&&e.forEach((function(r,s){x.set(s,t(r,n,o,s,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(r,s){f&&(r=e[s=r]),re(x,s,t(r,n,o,s,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/;const so=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 io(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],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,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,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:so(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var r=-1,s=(e=po(e,t)).length,i=s-1,x=t;null!=x&&++r<s;){var a=bo(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(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 Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,r,s){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(s.set(t,e),s.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,s):o(m,f,d,t,e,s);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||r(m,t,n,o,s)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){u=!1;break}}return s.delete(t),s.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=rt?rt.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,r,s,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!s(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,r,s,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,s){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=s.get(t),u=s.get(e);if(d&&u)return d==e&&u==t;var g=!0;s.set(t,e),s.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,s):o(f,h,l,t,e,s);if(!(void 0===p?f===h||r(f,h,n,o,s):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return s.delete(t),s.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,r,s){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return s||(s=new Yt),i||Le(t)?Ro(t,e,n,o,r,s):Mo(t,e,a,n,o,r,s);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return s||(s=new Yt),r(f,h,n,o,s)}}return!!u&&(s||(s=new Yt),Oo(t,e,n,o,r,s))};const Uo=function t(e,n,o,r,s){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,r,t,s))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,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 s=Array(r);++o<r;)s[o]=t[o+e];return s};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["nodeBefore","decorate","_markerNames","removeAttribute","addMarkerName","accept","getMultiRangeId","next","@external","previous","getItems","getMarkerNames","_saved","getFirstRange","removeMarker","attributes","subType","data","get","type","change","isIntersectingWithRange","isExternal","getMarkers","map","head","size","substr","delete","filter","length","set","addRange","_model","onAccept","toJSON","onAttributesChange","_onDiscard","reduce","_onAccept","hasComments","start","isInContent","from","_onAttributesChange","getRanges","getRange","add","createdAt","markers","removeMarkers","getContainedElement","commentThread","discard","getFirstMarker","setAttribute","creator","author","isIntersecting"];var $o,Jo;$o=Xo,Jo=416,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x10")]=e[Qo("0x10")],this[Qo("0xd")]=e[Qo("0xd")]||null,this[Qo("0x36")]=e[Qo("0x36")],this.creator=e[Qo("0x35")]||e[Qo("0x36")],this[Qo("0x13")]=Boolean(e[Qo("0xc")]&&e[Qo("0xc")][Qo("0x5")]),this[Qo("0xe")]=null,this[Qo("0x1e")]=t,this._onAccept=e[Qo("0x1f")],this[Qo("0x22")]=e.onDiscard,this[Qo("0x29")]=e[Qo("0x21")],this[Qo("0x3a")]=new Set,this.createdAt=null,this[Qo("0x1c")]("authoredAt",null),this[Qo("0x1c")](Qo("0xc"),e.attributes||{}),this[Qo("0x1c")](Qo("0x6"),null),this[Qo("0x1c")]("next",null),this.set("commentThread",null),this[Qo("0x1c")](Qo("0x9"),!1),this[Qo("0x39")](Qo("0x2")),this.decorate(Qo("0x32"))}get[Qo("0x16")](){let t=this;for(;t.previous;)t=t[Qo("0x6")];return t}get[Qo("0x25")](){return!!this[Qo("0x31")]&&this[Qo("0x31")].length>0}get isMultiRange(){return 0!=this[Qo("0x3a")][Qo("0x17")]&&6==Array[Qo("0x28")](this[Qo("0x3a")])[0].split(":").length}get[Qo("0x27")](){return null!==this[Qo("0x33")]()}[Qo("0x1")](t){this._markerNames[Qo("0x2c")](t)}[Qo("0x8")](){return Array.from(this._markerNames)}[Qo("0x14")](){return this[Qo("0x8")]()[Qo("0x15")]((t=>this._model[Qo("0x2e")][Qo("0xf")](t)))[Qo("0x1a")]((t=>t))}[Qo("0x33")](){return this.getMarkers()[0]||null}removeMarkers(){this[Qo("0x1e")][Qo("0x11")]((t=>{for(const e of this.getMarkers())t[Qo("0xb")](e)})),this[Qo("0x3a")].clear()}[Qo("0xb")](t){this._model[Qo("0x11")]((e=>{e[Qo("0xb")](t)})),this[Qo("0x3a")][Qo("0x19")](t)}[Qo("0x1d")](t){const e="suggestion:"+this[Qo("0x10")]+":"+this[Qo("0xd")]+":"+this.id+":"+this[Qo("0x35")].id+":"+Zo[Qo("0x3")]();this[Qo("0x1")](e),this[Qo("0x1e")].change((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x12")](t){for(const e of this[Qo("0x2a")]())if(e[Qo("0x37")](t))return!0;return!1}[Qo("0x2a")](){return this[Qo("0x14")]().map((t=>t[Qo("0x2b")]()))}getItems(){return this[Qo("0x2a")]()[Qo("0x23")](((t,e)=>[...t,...e[Qo("0x7")]()]),[])}[Qo("0xa")](){var t;return(null===(t=this[Qo("0x33")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x30")](){const t=this[Qo("0x2a")]();if(1!=t[Qo("0x1b")])return null;const e=t[0],n=e[Qo("0x26")].nodeAfter,o=e.end[Qo("0x38")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2")](){this[Qo("0x24")](this[Qo("0x2a")](),this.data,this[Qo("0xc")]),this[Qo("0x2f")]()}[Qo("0x32")](){this[Qo("0x22")](this.getRanges(),this[Qo("0xe")],this.attributes),this[Qo("0x2f")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x16")];for(;e;)t.push(e),e=e[Qo("0x4")];return t}[Qo("0x34")](t,e){const n=eo(this[Qo("0xc")]);_o(n,t,e),Go(n,this[Qo("0xc")])||(this[Qo("0xc")]=n,this[Qo("0x29")](n))}[Qo("0x0")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0xc")])||(this[Qo("0xc")]=e,this[Qo("0x29")](this.attributes))}[Qo("0x20")](){return{id:this.id,type:this[Qo("0xd")]?this.type+":"+this.subType:this[Qo("0x10")],authorId:this.creator.id,createdAt:this[Qo("0x2d")],hasComments:this.hasComments,data:this[Qo("0xe")],attributes:this[Qo("0xc")]}}static[Qo("0x3")](){return(0,e.uid)()[Qo("0x18")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const tr=["skip","get","*Merge:* %0","$text","*Remove:* %0","isInContent","$textProxy","item","previousSibling","replace","_locale","name","elementEnd","deletion","Container","type","indexOf","_addDescriptionItems","isObject","checkChild","ELEMENT_SPACE","Object","text","normal","_resolveDescriptionItems","data","*Insert:* %0","nextSibling","match","remove","length","_customCallbacks","removeContainer","insertion","getFirstRange","function","_schema","EmptyContainer","pop","_itemLabelsCallbacks","isEmpty","start","$1 $2","_itemLabels","getDescriptions","registerDescriptionCallback","add","removeObject","push","getItemLabel","*Split:* %0","quantity","element"];var er,nr;er=tr,nr=177,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("0xd")]=[],this[or("0x19")]=new Map,this[or("0x15")]=[],this[or("0x12")]=t,this[or("0x2d")]=e}[or("0x1a")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[or("0x28")])continue;let r=!1;for(const t of this._customCallbacks){const n=t(o);if(n){or("0x32")in n&&e.push(n),r=!0;break}}if(!r){this._addDescriptionItems(e,o);const r=t[n+1];if(r&&!o[or("0x10")]().end.isEqual(r[or("0x10")]()[or("0x17")])){const t=e[e[or("0xc")]-1],n=or("0xf")==o.type?or("0x1c"):or("0xb");t&&or("0x4")==t[or("0x32")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[or("0x1b")](t){this[or("0xd")][or("0x1e")](t)}registerElementLabel(t,n,o=e.priorities[or("0x5")]){or("0x11")==typeof t?(0,e.insertToPriorityArray)(this[or("0x15")],{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}[or("0x1f")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e.label;break}return n||(n=this[or("0x19")][or("0x24")](t[or("0x2e")])),n?n(e):1!==e?e+" "+t[or("0x2e")]+"s":""+t[or("0x2e")]}[or("0x34")](t,e){const n=e.getFirstRange().getWalker(),o="insertion"==e[or("0x32")]?or("0x1c"):"remove";for(const e of n){const r=e[or("0x2a")],s=t[t[or("0xc")]-1];if(r.is(or("0x29")))s&&s[or("0x32")][or("0x33")](or("0x31"))>-1&&t[or("0x14")](),s&&or("0x4")==s.type?s[o]+=r[or("0x7")]:t[or("0x1e")]({type:or("0x4"),add:or("0x1c")==o?r[or("0x7")]:"",remove:or("0xb")==o?r.data:""});else if(this[or("0x12")][or("0x0")](r)){const i=r;if(s&&s[or("0x32")][or("0x33")](or("0x31"))>-1&&t[or("0x14")](),or("0x2f")==e[or("0x32")])continue;s&&s.type==o+or("0x3")&&s[or("0x22")][or("0x2e")]==i.name?s.quantity++:t.push({type:o+or("0x3"),element:i,quantity:1}),n[or("0x23")]((t=>!("elementEnd"==t[or("0x32")]&&t[or("0x2a")]==r)))}else if(this[or("0x12")][or("0x1")](r,or("0x26"))||r.is(or("0x22"),"softBreak")){const n=r;if("add"==o&&"elementStart"==e[or("0x32")]||"remove"==o&&or("0x2f")==e[or("0x32")])continue;if(s&&-1==s.type[or("0x33")](or("0x31"))){or("0x4")==s[or("0x32")]&&(s[o]+="\n");continue}let i;if(i=or("0x1c")==o?n[or("0x9")]&&!this[or("0x12")].isObject(n.nextSibling)?n[or("0x9")]:null:n[or("0x2b")]&&!this[or("0x12")][or("0x0")](n[or("0x2b")])?n[or("0x2b")]:null,n.isEmpty||i&&i[or("0x16")]){const e=i&&i[or("0x16")]?i:n;s&&s[or("0x32")]==o+or("0x13")&&s[or("0x22")][or("0x2e")]==e.name?s.quantity++:t[or("0x1e")]({type:o+or("0x13"),element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[or("0x6")](t){const e=this[or("0x2d")],n=[];for(const o of t){switch(o[or("0x32")]){case"text":if(o.add=o[or("0x1c")][or("0x2c")](/(\S)\u000A+(\S)/g,or("0x18"))[or("0x2c")](/\u000A/g,""),o[or("0xb")]=o[or("0xb")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[or("0x2c")](/\u000A/g,""),""!=o[or("0x1c")]&&""!=o[or("0xb")]){n.push({type:or("0x2c"),content:Yo(e,"REPLACE_TEXT",['"'+o[or("0xb")]+'"','"'+o[or("0x1c")]+'"'])});continue}if(null!=o[or("0x1c")][or("0xa")](/^ +$/)){n[or("0x1e")]({type:or("0xf"),content:Yo(e,or("0x8"),Yo(e,"ELEMENT_SPACE",o.add.length))});continue}if(null!=o[or("0xb")][or("0xa")](/^ +$/)){n.push({type:or("0x30"),content:Yo(e,or("0x27"),Yo(e,or("0x2"),o[or("0xb")].length))});continue}if(""!=o[or("0x1c")]){n.push({type:"insertion",content:Yo(e,or("0x8"),'"'+o.add+'"')});continue}n[or("0x1e")]({type:"deletion",content:Yo(e,or("0x27"),'"'+o[or("0xb")]+'"')});continue;case"addEmptyContainer":case"addObject":n[or("0x1e")]({type:"insertion",content:Yo(e,or("0x8"),this.getItemLabel(o.element,o[or("0x21")]))});continue;case"removeEmptyContainer":case or("0x1d"):n[or("0x1e")]({type:or("0x30"),content:Yo(e,or("0x27"),this.getItemLabel(o.element,o[or("0x21")]))});continue;case"addContainer":n[or("0x1e")]({type:or("0xf"),content:Yo(e,or("0x20"),this[or("0x1f")](o[or("0x22")],o[or("0x21")]))});continue;case or("0xe"):n.push({type:or("0x30"),content:Yo(e,or("0x25"),this[or("0x1f")](o.element,o.quantity))});continue}n.push(o)}return n}}const sr=["commandName","has","get","value","locale","enableCommand","TrackChangesEditing","filter","center","_descriptionFactory","*Format:* %0","contentLanguageDirection","document","getAttribute","alignment","selection","model","FORMAT_ALIGN_TO_RIGHT","commandParams","FORMAT_ALIGN_TO_LEFT","AlignmentEditing","from","change","plugins","right","afterInit","left","markBlockFormat","getSelectedBlocks","FORMAT_ALIGN_TO_CENTER","justify","editor","format","FORMAT_JUSTIFY_TEXT"];var ir,xr;ir=sr,xr=479,function(t){for(;--t;)ir.push(ir.shift())}(++xr);const ar=function(t,e){return sr[t-=0]};class cr extends t.Plugin{[ar("0x16")](){const t=this[ar("0x1c")],e=t[ar("0x1")];if(!t[ar("0x14")][ar("0x20")](ar("0x11")))return;const n=t.plugins[ar("0x21")](ar("0x3"));n[ar("0x2")]("alignment",((e,o={})=>{let r=o.value;o.value||(r="ltr"===t[ar("0x1")][ar("0x8")]?"left":ar("0x15"));const s=Array[ar("0x12")](this.editor[ar("0xd")][ar("0x9")][ar("0xc")][ar("0x19")]())[ar("0x4")]((t=>function(t,e,n){const o=t[ar("0xa")](ar("0xb"))||null;return e.checkAttribute(t,ar("0xb"))&&n!=o}(t,this[ar("0x1c")][ar("0xd")].schema,r)));t[ar("0xd")][ar("0x13")]((()=>{for(const t of s)n[ar("0x18")](t,{commandName:"alignment",commandParams:[{value:r}]})}))})),n[ar("0x6")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&ar("0xb")==n[ar("0x1f")]){const t=n[ar("0xf")][0][ar("0x0")];return{type:ar("0x1d"),content:Yo(e,ar("0x7"),function(t){switch(t){case ar("0x17"):return Yo(e,ar("0x10"));case ar("0x15"):return Yo(e,ar("0xe"));case ar("0x5"):return Yo(e,ar("0x1a"));case ar("0x1b"):return Yo(e,ar("0x1e"))}}(t))}}}))}}const lr=["getAttribute","includes","consumable","hasAttribute","isLimit","createRangeOn","addHighlight","name","getItems","insert","nextSibling","mapper","test","parent","bindElementToMarker","get","plugins","ck-suggestion-marker--active","activeMarkers","markerRange","ck-suggestion-marker-","listItem","previousPosition","addClass","markerName","writer","schema","push","getWalker","element","elementEnd","toViewPosition","isBlock","model","toViewElement","TrackChangesEditing","start","getCustomProperty"];var dr,ur;dr=lr,ur=365,function(t){for(;--t;)dr.push(dr.shift())}(++ur);const gr=function(t,e){return lr[t-=0]};function mr(t,e,n){const o=[];for(const r of e[gr("0x17")]())r[gr("0x12")](t)&&o[gr("0x4")](n[gr("0x14")](r));return o}function fr(t){const e=[];if(t.is("element","listItem")){let n=t[gr("0x19")];for(;n&&n.is(gr("0x6"),gr("0x24"))&&n[gr("0xf")]("listIndent")>0;)e.push(n),n=n[gr("0x19")]}return e}function hr(t,e,{showActiveMarker:n=!0}={}){const o=t[gr("0x1f")][gr("0x1e")](gr("0xc"));return(r,s,i)=>{if(!i[gr("0x11")][gr("0x1b")](s.markerRange,r[gr("0x16")]))return;const x=s[gr("0x22")][gr("0x5")](),a=s[gr("0x22")][gr("0xd")],c=t[gr("0xa")][gr("0x3")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c.isContent(e);const n=i[gr("0x1a")][gr("0xb")](e);if(n&&n[gr("0xe")](gr("0x15")))return;gr("0x7")==t.type&&c[gr("0x9")](e)&&!c[gr("0x13")](e)&&(e[gr("0x19")]||a.isAtEnd?l&&l[gr("0x1c")]==e||(l=e,m(t[gr("0x25")]),g=!0):d=d||t.previousPosition)}function m(t){const r=i[gr("0x2")].createUIElement("span",{class:gr("0x23")+e}),x=i[gr("0x1a")][gr("0x8")](t);n&&o[gr("0x21")][gr("0x10")](s[gr("0x1")])&&i[gr("0x2")][gr("0x0")](gr("0x20"),r),i[gr("0x2")][gr("0x18")](x,r),i[gr("0x1a")][gr("0x1d")](r,s.markerName)}u||g||!d||m(d)}}const pr=["forceValue","*Remove format:* %0","getRanges","afterInit","commands","plugins","SuperscriptEditing","from","StrikethroughEditing","FORMAT_STRIKETHROUGH","change","selection","get","model","ItalicEditing","document","subscript","underline","value","format","FORMAT_UNDERLINE","enableCommand","SubscriptEditing","slice","editor","commandParams","UnderlineEditing","code","strikethrough","*Format:* %0","superscript","registerDescriptionCallback","BoldEditing","FORMAT_CODE","italic","TrackChangesEditing","CodeEditing","locale"];var br,Er;br=pr,Er=137,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]},Tr=[_r("0x9"),_r("0x1d"),_r("0x3"),_r("0xd"),_r("0x17"),_r("0x25"),_r("0x15")];class Cr extends t.Plugin{[_r("0x12")](){const t=this[_r("0x1")],e=t[_r("0x1c")],n=t[_r("0x14")][_r("0x1b")](_r("0xc")),o=t[_r("0xe")];for(const o of Tr){if(!t[_r("0x14")].has(o))continue;const r=o[_r("0x0")](0,-7).toLowerCase(),s=t[_r("0x13")][_r("0x1b")](r);n[_r("0x24")](r,((t,o={})=>{const i=e[_r("0x1e")][_r("0x1a")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_r("0xf")]?o.forceValue:!s[_r("0x21")];e[_r("0x19")]((()=>{const t=Array[_r("0x16")](i[_r("0x11")]());for(const o of t){const t=x?[o]:mr(r,o,e);for(const e of t)n.markInlineFormat(e,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(t,e){n._descriptionFactory[_r("0x8")]((n=>{const{data:r}=n;if(r&&r.commandName===t)return r[_r("0x2")][0].forceValue?{type:"format",content:Yo(o,_r("0x6"),e)}:{type:_r("0x22"),content:Yo(o,_r("0x10"),e)}}))}r("bold",Yo(o,"FORMAT_BOLD")),r(_r("0xb"),Yo(o,"FORMAT_ITALIC")),r(_r("0x20"),Yo(o,_r("0x23"))),r(_r("0x4"),Yo(o,_r("0xa"))),r(_r("0x5"),Yo(o,_r("0x18"))),r(_r("0x1f"),Yo(o,"FORMAT_SUBSCRIPT")),r(_r("0x7"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const yr=["*Remove format:* %0","filter","schema","commandName","has","TrackChangesEditing","model","$root","locale","enableCommand","checkChild","document","blockQuote","selection","get","name","getSelectedBlocks","editor","*Format:* %0","forceValue","markBlockFormat","afterInit","plugins","ELEMENT_BLOCK_QUOTE","format","_descriptionFactory","parent","BlockQuoteEditing"];var kr,Ar;kr=yr,Ar=267,function(t){for(;--t;)kr.push(kr.shift())}(++Ar);const vr=function(t,e){return yr[t-=0]};class Rr extends t.Plugin{[vr("0x6")](){const t=this[vr("0x2")],e=t[vr("0x15")];if(!t[vr("0x7")][vr("0x11")](vr("0xc")))return;const n=t[vr("0x7")][vr("0x1b")](vr("0x12")),o=this[vr("0x2")].commands.get("blockQuote");n[vr("0x16")](vr("0x19"),((e,r={})=>{const s=this[vr("0x2")][vr("0x13")][vr("0x18")][vr("0x1a")],i=r&&void 0!==r.forceValue?r[vr("0x4")]:!o.value;let x=[];if(i){const e=Array.from(s[vr("0x1")]()).filter((t=>Sr(t)||function(t,e){const n=e[vr("0x17")](t[vr("0xb")],"blockQuote"),o=e[vr("0x17")]([vr("0x14"),vr("0x19")],t);return n&&o}(t,this[vr("0x2")][vr("0x13")][vr("0xf")])));x=S(e,t[vr("0x13")])}else{const e=Array.from(s[vr("0x1")]())[vr("0xe")]((t=>Sr(t)));x=S(e,t[vr("0x13")])}t.model.change((()=>{for(const t of x)n[vr("0x5")](t,{commandName:vr("0x19"),commandParams:[{forceValue:i}]})}))})),n[vr("0xa")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vr("0x19")==n[vr("0x10")]){const t=Yo(e,vr("0x8"));return n.commandParams[0][vr("0x4")]?{type:vr("0x9"),content:Yo(e,vr("0x3"),t)}:{type:"format",content:Yo(e,vr("0xd"),t)}}}))}}function Sr(t){return vr("0x19")==t[vr("0xb")][vr("0x0")]}const Ir=["editor","ckbox","get","enableCommand","afterInit","plugins","TrackChangesEditing"];var Lr,Nr;Lr=Ir,Nr=130,function(t){for(;--t;)Lr.push(Lr.shift())}(++Nr);const Mr=function(t,e){return Ir[t-=0]};class wr extends t.Plugin{[Mr("0x0")](){const t=this[Mr("0x3")];t.commands.get(Mr("0x4"))&&t[Mr("0x1")][Mr("0x5")](Mr("0x2"))[Mr("0x6")](Mr("0x4"))}}const Or=["blockName","commandParams","commandName","isLimit","filter","markBlockFormat","plugins","document","enableCommand","name","checkChild","format","ELEMENT_CODE_BLOCK","find","locale","registerDescriptionCallback","afterInit","parent","_descriptionFactory","outdentCodeBlock","*Remove format:* %0","languages","has","*Format:* %0","from","forceValue","registerElementLabel","rootElement","get","selection","language","getSelectedBlocks","label","config","indentCodeBlock","codeBlock","change","model"];var Fr,Pr;Fr=Or,Pr=224,function(t){for(;--t;)Fr.push(Fr.shift())}(++Pr);const Dr=function(t,e){return Or[t-=0]};class Br extends t.Plugin{[Dr("0x14")](){const t=this.editor;if(!t.plugins[Dr("0x1a")]("CodeBlock"))return;const e=t[Dr("0xa")][Dr("0x20")]("TrackChangesEditing"),n=t[Dr("0x12")],o=t[Dr("0x25")][Dr("0x20")](Dr("0x1"))[Dr("0x19")],r=t.commands[Dr("0x20")](Dr("0x1"));e[Dr("0xc")](Dr("0x0")),e.enableCommand(Dr("0x17")),e.enableCommand(Dr("0x1"),((n,s={})=>{const i=t.model,x=t[Dr("0x3")][Dr("0xb")][Dr("0x21")],a=s&&void 0!==s[Dr("0x1d")]?s[Dr("0x1d")]:!r.value;let c;s[Dr("0x22")]||(s[Dr("0x22")]=o[0][Dr("0x22")]),c=a?Array[Dr("0x1c")](x[Dr("0x23")]())[Dr("0x8")]((t=>{return jr(t)||(e=t,n=i.schema,!e.is(Dr("0x1f"))&&!n[Dr("0x7")](e)&&n[Dr("0xe")](e[Dr("0x15")],Dr("0x1")));var e,n})):Array.from(x[Dr("0x23")]())[Dr("0x8")]((t=>jr(t)));const l=S(c,i);i[Dr("0x2")]((()=>{for(const t of l)e[Dr("0x9")](t,{commandName:"codeBlock",commandParams:[{...s,forceValue:a}],formatGroupId:Dr("0x4")})}))})),e[Dr("0x16")][Dr("0x1e")](Dr("0x1"),(t=>Yo(n,Dr("0x10"),t))),e[Dr("0x16")][Dr("0x13")]((t=>{const e=n.t,{type:r,data:s}=t;if("formatBlock"==r&&s&&Dr("0x1")==s[Dr("0x6")]){const t=s[Dr("0x5")][0][Dr("0x22")],r=e(o[Dr("0x11")]((e=>e[Dr("0x22")]===t))[Dr("0x24")]);return s[Dr("0x5")][0][Dr("0x1d")]?{type:Dr("0xf"),content:Yo(n,Dr("0x1b"),Yo(n,Dr("0x10"),1)+" ("+r+")")}:{type:Dr("0xf"),content:Yo(n,Dr("0x18"),Yo(n,Dr("0x10"),1))}}}))}}function jr(t){return Dr("0x1")==t[Dr("0xd")]}const Ur=["addCommentThread","editor","CommentsEditing","get","enableCommand","plugins","afterInit"];var Gr,Hr;Gr=Ur,Hr=243,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const zr=function(t,e){return Ur[t-=0]};class Wr extends t.Plugin{[zr("0x1")](){const t=this[zr("0x3")];t.plugins.has(zr("0x4"))&&t[zr("0x0")][zr("0x5")]("TrackChangesEditing")[zr("0x6")](zr("0x2"))}}var Vr=n(181);const Kr=["enqueueChange","buffer","high","writer","getFirstRange","start","model","init","createSelection","TrackChangesEditing","markerNameToElements","detach","$graveyard","addMarker:suggestion:deletion","isCollapsed","editor","fromRange","enableCommand","unlock","unit","mapper","setSelection","deleteForward","end","commands","merge","selection","remove","editing","downcastDispatcher","bind","batch","createRange","markerName","get","uiElement","data","root","requires","delete"];var qr,Xr;qr=Kr,Xr=237,function(t){for(;--t;)qr.push(qr.shift())}(++Xr);const $r=function(t,e){return Kr[t-=0]};class Jr extends t.Plugin{static get[$r("0x1")](){return[Vr.Delete]}[$r("0xa")](){const t=this[$r("0x12")],e=t.plugins[$r("0x25")]($r("0xc"));e[$r("0x14")]($r("0x2"));const n=t[$r("0x1b")][$r("0x25")]($r("0x19"));e[$r("0x14")]($r("0x19"),((e,o={})=>{const r=t.model[$r("0xb")](t[$r("0x9")].document[$r("0x1d")]);r[$r("0x11")]&&t[$r("0x9")].modifySelection(r,{direction:"forward",unit:o[$r("0x16")]});const s=r[$r("0x7")](),x=i.LiveRange[$r("0x13")](s);let a;e(o),a=$r("0xf")==x[$r("0x0")].rootName?t.model[$r("0x23")](s[$r("0x8")]):t.model[$r("0x23")](x[$r("0x8")],x[$r("0x1a")]),x[$r("0xe")](),t[$r("0x9")][$r("0x3")](n[$r("0x4")][$r("0x22")],(t=>{n.buffer.lock(),t[$r("0x18")](t.createRange(a[$r("0x1a")])),n[$r("0x4")][$r("0x15")]()}))})),t[$r("0x1f")][$r("0x20")].on($r("0x10"),hr(t,$r("0x1c")),{priority:"high"}),t[$r("0x27")][$r("0x20")].on($r("0x10"),((e,n,o)=>{o.options.showSuggestionHighlights&&hr(t,$r("0x1c"),{showActiveMarker:!1})[$r("0x21")](this)(e,n,o)}),{priority:$r("0x5")}),t.editing.downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n.mapper[$r("0xd")](e.markerName);if(o)for(const t of o)t.is($r("0x26"))&&(n[$r("0x17")].unbindElementFromMarkerName(t,e[$r("0x24")]),n[$r("0x6")][$r("0x1e")](t))}),{priority:$r("0x5")})}}const Qr=["isFirstBlockOfListItem","model","detach","ELEMENT_NUMBERED_LIST","setSelection","plugins","TrackChangesEditing","DocumentListUtils","fromRange","createPositionAt","document","slice","createRange","getFirstRange","*Change to:* %0","format","previousSibling","bulletedList","*Merge:* %0","toUpperCase","selection","enableCommand","registerCustomCallback","length","listIndent","push","_LIST","ELEMENT_LIST_ITEM","add","from","schema","markMultiRangeBlockFormat","accept","get","mergeListItemForward","_descriptionFactory","splitListItemBefore","change","getRanges","listItemId","registerElementLabel","*Outdent:* %0","multipleBlocks","getAttribute","commands","DocumentListEditing","refresh","containsItem","has","getSelectedBlocks","commandName","*Format:* remove from %0","listType","forceValue","execute","markBlockFormat","formatBlock","editor","afterInit","parent","indentList","value","start","next","after","end","documentList","before","outdentList","locale","nextSibling","splitListItemAfter","isObject","*Format:* insert into %0","*Indent:* %0","hasAttribute","deletion","commandParams","numberedList","nodeAfter"];var Zr,Yr;Zr=Qr,Yr=150,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const ts=function(t,e){return Qr[t-=0]};class es extends t.Plugin{[ts("0x44")](){const t=this[ts("0x43")];if(!t[ts("0xf")][ts("0x3a")](ts("0x37")))return;const e=t[ts("0x4f")],n=t[ts("0xf")].get(ts("0x10")),o=t[ts("0xf")].get(ts("0x11"));function r(e){return()=>{const r=t[ts("0x36")][ts("0x2b")](e);let s=Array[ts("0x27")](t.model[ts("0x14")].selection[ts("0x3b")]());if(a(e)){s=o.expandListBlocksToCompleteList(s);const t=[];for(const e of s)o[ts("0xa")](e)&&t[ts("0x23")](e);s=t}t[ts("0xb")].change((()=>{n[ts("0x29")](s,{commandName:e,commandParams:[{forceValue:!r.value}],formatGroupId:ts("0x3e")},[],ts("0x4c"))}))}}function s(e){return()=>{const o=function(t){let e=Array[ts("0x27")](t);const n=e.findIndex((t=>!t[ts("0x5")](ts("0x31"))));return n>-1&&(e=e[ts("0x15")](0,n)),e}(t.model[ts("0x14")][ts("0x1e")][ts("0x3b")]()),r=o[o[ts("0x21")]-1],s=t.model[ts("0x28")][ts("0x2")](r)?ts("0x4a"):"end",i=t[ts("0xb")][ts("0x16")](t[ts("0xb")][ts("0x13")](o[0],ts("0x4d")),t[ts("0xb")].createPositionAt(r,s));t.model[ts("0x2f")]((()=>{n[ts("0x41")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[ts("0x0")];for(;t&&t[ts("0x35")](ts("0x22"))>n.getAttribute(ts("0x22"));)e[ts("0x26")](t),t=t[ts("0x0")]}return Array[ts("0x27")](e)}(o))}))}}function x(e){return()=>{const o=t[ts("0xb")][ts("0x14")].selection.getSelectedBlocks()[ts("0x49")]()[ts("0x47")],r=t[ts("0xb")][ts("0x13")](o,ts("0x4d")),s=t[ts("0xb")][ts("0x13")](o,0),i=t[ts("0xb")][ts("0x16")](r,s);t.model[ts("0x2f")]((()=>{n[ts("0x41")](i,{commandName:e,commandParams:[],formatGroupId:ts("0x3e")})}))}}function a(e){const n=t[ts("0x36")][ts("0x2b")](ts("0x1b"))[ts("0x47")],o=t[ts("0x36")][ts("0x2b")]("numberedList")[ts("0x47")];return ts("0x8")===e?n:o}n[ts("0x1f")]("numberedList",r(ts("0x8"))),n[ts("0x1f")](ts("0x1b"),r(ts("0x1b"))),n[ts("0x1f")](ts("0x46"),s(ts("0x46"))),n[ts("0x1f")](ts("0x4e"),s("outdentList")),n[ts("0x1f")](ts("0x1"),x(ts("0x1"))),n[ts("0x1f")](ts("0x2e"),x(ts("0x2e"))),n[ts("0x2d")][ts("0x32")]((function(e){const n=!t[ts("0xb")][ts("0x28")][ts("0x2")](e),o=e[ts("0x1a")],r=e[ts("0x0")],s=e[ts("0x35")](ts("0x31")),i=!o||o[ts("0x35")](ts("0x31"))!==s,x=!r||r.getAttribute("listItemId")!==s;return n&&Boolean(s)&&i&&x}),(t=>Yo(e,ts("0x25"),t))),n[ts("0x2d")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,r,s,i;switch(n[ts("0x3c")]){case ts("0x1b"):s=n[ts("0x7")][0][ts("0x3f")],i=a(n.commandName),o=ts(s?"0x3":"0x3d"),i&&(o=ts("0x18")),r={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case ts("0x8"):s=n[ts("0x7")][0].forceValue,i=a(n[ts("0x3c")]),o=s?ts("0x3"):"*Format:* remove from %0",i&&(o="*Change to:* %0"),r={type:"format",content:Yo(e,o,Yo(e,ts("0xd")))};break;case ts("0x46"):o=ts("0x4"),r={type:"format",content:Yo(e,o,Yo(e,ts("0x25")))};break;case ts("0x4e"):o=function(t){const e=t[ts("0x17")]();let n=e[ts("0x48")][ts("0x9")];for(;n&&e[ts("0x39")](n);){if(n.getAttribute(ts("0x22"))>0)return!1;n=n[ts("0x0")]}return!0}(t)?Yo(e,ts("0x3d"),Yo(e,"ELEMENT_"+t[ts("0x17")]()[ts("0x48")].nodeAfter[ts("0x35")](ts("0x3e"))[ts("0x1d")]()+ts("0x24"))):Yo(e,ts("0x33"),Yo(e,ts("0x25"))),r={type:ts("0x19"),content:o};break;case"mergeListItemBackward":case ts("0x2c"):!1===n[ts("0x34")]&&(o=ts("0x1c"),r={type:ts("0x6"),content:Yo(e,o,Yo(e,ts("0x25")))})}return r})),n._suggestionFactory[ts("0x20")](ts("0x42"),ts("0x4c"),ts("0x2a"),(function(e,n){const o=[];for(let n of e)n[ts("0x48")][ts("0x9")]===n[ts("0x4b")][ts("0x45")]&&(n=t[ts("0xb")][ts("0x16")](t[ts("0xb")][ts("0x13")](n.start[ts("0x9")],0))),o[ts("0x23")](n);t[ts("0xb")][ts("0x2f")]((e=>{const r=t.model[ts("0x14")][ts("0x1e")],s=Array[ts("0x27")](r[ts("0x30")]()).map((t=>i.LiveRange[ts("0x12")](t)));e[ts("0xe")](o),t.commands[ts("0x2b")](n[ts("0x3c")])[ts("0x38")](),n.commandParams[ts("0x23")]({forceDefaultExecution:!0}),t[ts("0x40")](n.commandName,...n[ts("0x7")]),e.setSelection(s);for(const t of s)t[ts("0xc")]()}))}))}}var ns=n(331);const os=["createRange","split","commands","showSuggestionHighlights","downcastDispatcher","remove","change","data","nextSibling","ck-suggestion-marker-split","mapper","fromRange","end","model","requires","addMarker:suggestion:insertion","bind","high","markerNameToElements","editing","fire","options","writer","editor","detach","init","getFirstRange","markInsertion","removeMarker:suggestion:insertion","setSelection","createPositionAt","enter","markerName","unbindElementFromMarkerName","parent"];var rs,ss;rs=os,ss=386,function(t){for(;--t;)rs.push(rs.shift())}(++ss);const is=function(t,e){return os[t-=0]};class xs extends t.Plugin{static get[is("0xd")](){return[ns.Enter]}[is("0x18")](){const t=this[is("0x16")],e=t.plugins.get("TrackChangesEditing"),n=t[is("0x1")].get(is("0x1e"));e.enableCommand(is("0x1e"),(()=>{t[is("0xc")][is("0x5")]((o=>{const r=t[is("0xc")].document.selection,s=r.getFirstPosition(),x=i.LiveRange[is("0xa")](r[is("0x19")]());if(n.enterBlock(o)){const n=t[is("0xc")][is("0x1d")](s[is("0x21")][is("0x7")],0),r=o[is("0x22")](s,n);e[is("0x1a")](r)}else o[is("0x1c")](o[is("0x22")](x[is("0xb")]));x[is("0x17")](),n[is("0x13")]("afterExecute",{writer:o})}))})),t.editing[is("0x3")].on(is("0xe"),hr(t,"split"),{priority:is("0x10")}),t[is("0x12")][is("0x3")].on(is("0x1b"),((t,e,n)=>{const o=n[is("0x9")][is("0x11")](e.markerName);if(o)for(const t of o)t.hasClass(is("0x8"))&&(n[is("0x9")][is("0x20")](t,e[is("0x1f")]),n[is("0x15")][is("0x4")](t))}),{priority:is("0x10")}),t[is("0x6")][is("0x3")].on(is("0xe"),((e,n,o)=>{o[is("0x14")][is("0x2")]&&hr(t,is("0x0"),{showActiveMarker:!1})[is("0xf")](this)(e,n,o)}),{priority:is("0x10")})}}const as=["markers","get","has","replaceAll","createPositionAt","filter","enableCommand","findByTextCallback","_isInDeletionRange","FindAndReplaceEditing","getMarkersGroup","model","suggestion:deletion","plugins","bind","handleFindCommand","createRange","findPrevious","start","string","TrackChangesEditing","editor","find"];var cs,ls;cs=as,ls=398,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const ds=function(t,e){return as[t-=0]};class us extends t.Plugin{afterInit(){if(!this[ds("0xe")][ds("0x6")][ds("0x12")](ds("0x2")))return;const t=this[ds("0xe")][ds("0x6")][ds("0x11")](ds("0xd"));t[ds("0x16")](ds("0xf"),this.handleFindCommand[ds("0x7")](this)),t[ds("0x16")]("findNext"),t[ds("0x16")](ds("0xa")),t[ds("0x16")]("replace"),t[ds("0x16")](ds("0x13"))}[ds("0x8")](t,e,n={}){const o=this.editor[ds("0x6")][ds("0x11")]("FindAndReplaceUtils");void 0!==n&&t((t=>(ds("0xc")==typeof e?o[ds("0x0")](e,n):e)(t)[ds("0x15")]((e=>!1===this[ds("0x1")](e,t.item)))),n)}_isInDeletionRange(t,e){const n=this[ds("0xe")][ds("0x4")][ds("0x9")](this.editor.model[ds("0x14")](e,t[ds("0xb")]),this[ds("0xe")][ds("0x4")][ds("0x14")](e,t.end));for(const t of this[ds("0xe")].model[ds("0x10")][ds("0x3")](ds("0x5")))if(null!==n.getIntersection(t.getRange()))return!0;return!1}}const gs=["fontBackgroundColor","value","registerDescriptionCallback","FontFamilyEditing","_descriptionFactory","selection","change","toLowerCase","find","fontFamily","*Set font color:* %0","normalizeSizeOptions","commandName","fontSize.options","FontSizeEditing","format","*Set font size:* %0","locale","get","commandParams","editor","getRanges","config","*Reset font background color*","TrackChangesEditing","label","*Reset font color*","FontBackgroundColorEditing","from","afterInit","*Reset font size*","*Reset font family*","_enableCommand","trim","*Set font background color:* %0","plugins","fontColor","enableCommand","has","fontSize","model"];var ms,fs;ms=gs,fs=395,function(t){for(;--t;)ms.push(ms.shift())}(++fs);const hs=function(t,e){return gs[t-=0]},ps=[{pluginName:hs("0x1d"),commandName:hs("0xd")},{pluginName:hs("0x12"),commandName:hs("0x18")},{pluginName:"FontColorEditing",commandName:hs("0xa")},{pluginName:hs("0x1"),commandName:"fontBackgroundColor"}];class bs extends t.Plugin{[hs("0x3")](){const t=this[hs("0x23")][hs("0x20")];for(const{pluginName:t,commandName:e}of ps)this[hs("0x23")][hs("0x9")][hs("0xc")](t)&&this[hs("0x6")](e);this[hs("0x23")].plugins.get(hs("0x27"))[hs("0x13")][hs("0x11")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hs("0xd")==o[hs("0x1b")]){const e=o[hs("0x22")][0][hs("0x10")];if(e){const o=n(this[hs("0x23")].plugins[hs("0x21")]("FontSize")[hs("0x1a")](this[hs("0x23")][hs("0x25")][hs("0x21")](hs("0x1c")))[hs("0x17")]((t=>t[hs("0xe")]==e)).title)[hs("0x16")]();return{type:hs("0x1e"),content:Yo(t,hs("0x1f"),o)}}return{type:hs("0x1e"),content:Yo(t,hs("0x4"))}}if(hs("0x18")==o[hs("0x1b")]){const e=o[hs("0x22")][0][hs("0x10")];return e?{type:"format",content:Yo(t,"*Set font family:* %0",e)}:{type:hs("0x1e"),content:Yo(t,hs("0x5"))}}if(hs("0xa")==o[hs("0x1b")]){const e=o[hs("0x22")][0][hs("0x10")];if(e){const o=(0,r.normalizeColorOptions)(this.editor[hs("0x25")][hs("0x21")]("fontColor.colors"))[hs("0x17")]((t=>t[hs("0xe")]==e));let s=e,i="";return o&&(s=o[hs("0x28")],i=n(s)[hs("0x16")]()),{type:hs("0x1e"),content:Yo(t,hs("0x19"),i)[hs("0x7")](),color:{value:e,title:i||s}}}return{type:hs("0x1e"),content:Yo(t,hs("0x0"))}}if(hs("0xf")==o[hs("0x1b")]){const e=o[hs("0x22")][0][hs("0x10")];if(e){const o=(0,r.normalizeColorOptions)(this.editor[hs("0x25")][hs("0x21")]("fontBackgroundColor.colors"))[hs("0x17")]((t=>t[hs("0xe")]==e));let s=e,i="";return o&&(s=o[hs("0x28")],i=n(s)[hs("0x16")]()),{type:hs("0x1e"),content:Yo(t,hs("0x8"),i)[hs("0x7")](),color:{value:e,title:i||s}}}return{type:hs("0x1e"),content:Yo(t,hs("0x26"))}}}}))}[hs("0x6")](t){const e=this[hs("0x23")];e.plugins.get(hs("0x27"))[hs("0xb")](t,((n,o={})=>{const r=e.model.document[hs("0x14")],s=o[hs("0x10")];r.isCollapsed?n(o):e.model[hs("0x15")]((()=>{const n=Array[hs("0x2")](r[hs("0x24")]());for(const o of n){const n=s?[o]:mr(t,o,e.model);for(const o of n)e.plugins[hs("0x21")](hs("0x27")).markInlineFormat(o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const Es=["TrackChangesEditing","selection","fontSize","length","markInlineFormat","format","locale","registerDescriptionCallback","slice","entries","*Remove all formatting*","createRange","copyFormat","fontSize.options","toLowerCase","boolean","fontColor","getRanges","document","find","FontSize","_descriptionFactory","word","model","pasteFormat","from","isFormatting","join","split","isCollapsed","title","getAttributes","plugins","editor","change","commands","isBlock","commandName","get","getFirstPosition","push","*Set format to:* %0","getLastPosition","enableCommand","fontBackgroundColor","getAttributeProperties","backward","getSelectedBlocks","getItems","afterInit","charAt","keys","modifySelection","commandParams","label","schema"];var _s,Ts;_s=Es,Ts=416,function(t){for(;--t;)_s.push(_s.shift())}(++Ts);const Cs=function(t,e){return Es[t-=0]};class ys extends t.Plugin{[Cs("0x19")](){const t=this[Cs("0x9")],n=t.model,o=n[Cs("0x32")][Cs("0x21")],r=t[Cs("0x8")][Cs("0xe")]("TrackChangesEditing"),s=t[Cs("0x26")],i=t.commands[Cs("0xe")]("copyFormat"),x=t[Cs("0xb")][Cs("0xe")](Cs("0x0"));i&&x&&(r.enableCommand(Cs("0x0"),((t,s={})=>{const i=s;n[Cs("0xa")]((()=>{const t=Array[Cs("0x1")](o[Cs("0x31")]()),s=o[Cs("0x5")]?[ks(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cs("0x7")]()){const t=e[Cs("0x15")](n);t&&t[Cs("0x2")]&&(yield n)}}(t,n));for(const e of t[Cs("0x31")]())for(const t of e[Cs("0x18")]())!n[Cs("0xc")](t)&&o(t)&&(yield t);for(const e of t[Cs("0x17")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cs("0x1f")]))||0!==Object[Cs("0x1b")](i)[Cs("0x23")])for(const t of s)r[Cs("0x24")](t,{commandName:Cs("0x0"),commandParams:[i]})}))})),r[Cs("0x35")][Cs("0x27")]((e=>{const{data:n}=e;if(n&&Cs("0x0")===n[Cs("0xd")]){const e=[],o=n[Cs("0x1d")][0];for(const[n,r]of Object[Cs("0x29")](o))e[Cs("0x10")](As(t,n,r));return e[Cs("0x23")]?{type:Cs("0x25"),content:Yo(s,Cs("0x11"),e[Cs("0x3")](", "))}:{type:Cs("0x25"),content:Yo(s,Cs("0x2a"))}}})),t[Cs("0x8")].get(Cs("0x20"))[Cs("0x13")](Cs("0x2c")))}}function ks(t,e){const n=t.createSelection(e);t[Cs("0x1c")](n,{unit:Cs("0x36"),direction:Cs("0x16")});const o=n[Cs("0xf")]();t[Cs("0x1c")](n,{unit:Cs("0x36"),direction:"forward"});const r=n[Cs("0x12")]();return t[Cs("0x2b")](o,r)}function As(t,e,n){const o=t[Cs("0x26")].t,s=e[Cs("0x4")](/(?=[A-Z])/)[Cs("0x3")](" "),i=o(s[Cs("0x1a")](0).toUpperCase()+s[Cs("0x28")](1))[Cs("0x2e")]();if(Cs("0x2f")==typeof n)return i;if(Cs("0x30")===e||Cs("0x14")===e){const e=(0,r.normalizeColorOptions)(t.config[Cs("0xe")]("fontColor.colors")).find((t=>t.model==n));return i+" ("+(e?o(e[Cs("0x1e")])[Cs("0x2e")]():n)+")"}if(Cs("0x22")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cs("0xe")](Cs("0x34")).normalizeSizeOptions(t.config[Cs("0xe")](Cs("0x2d")))[Cs("0x33")]((t=>t[Cs("0x37")]==n));return i+" ("+(e?o(e[Cs("0x6")])[Cs("0x2e")]():n)+")"}return i+" ("+n+")"}const vs=["find","registerElementLabel","config","filter","enableCommand","_descriptionFactory","has","ELEMENT_HEADING_CUSTOM","title","commandParams","registerDescriptionCallback","afterInit","change","name","HeadingEditing","heading","editor","document","*Change to:* %0","model","value","checkChild","get","formatBlock","format","heading.options","ELEMENT_HEADING","markBlockFormat","commandName","plugins","TrackChangesEditing"];var Rs,Ss;Rs=vs,Ss=221,function(t){for(;--t;)Rs.push(Rs.shift())}(++Ss);const Is=function(t,e){return vs[t-=0]};class Ls extends t.Plugin{[Is("0x7")](){const t=this[Is("0xc")],e=t.locale,n=t[Is("0x1d")][Is("0x12")](Is("0x15"));if(!t[Is("0x19")][Is("0x2")](Is("0xa")))return;const o=t[Is("0x19")][Is("0x12")](Is("0x1a"));o[Is("0x0")](Is("0xb"),((e,n)=>{const r=n.value,s=Array.from(this.editor[Is("0xf")][Is("0xd")].selection.getSelectedBlocks())[Is("0x1e")]((t=>{return e=t,n=r,(o=this[Is("0xc")][Is("0xf")].schema)[Is("0x11")](e.parent,n)&&!o.isObject(e)&&e[Is("0x9")]!=n;var e,n,o}));t.model[Is("0x8")]((()=>{for(const t of s)o[Is("0x17")](t,{commandName:Is("0xb"),commandParams:[n],formatGroupId:"blockName"},fr(t))}))}));for(const t of n)"paragraph"!=t[Is("0xf")]&&o._descriptionFactory[Is("0x1c")](t[Is("0xf")],(e=>{const n=Ns(t.model);return null!==n?r(e,n):s(e,t[Is("0x4")])}));function r(t,n){return Yo(e,Is("0x16"),[t,n])}function s(t,n){return Yo(e,Is("0x3"),[t,n])}o[Is("0x1")][Is("0x6")]((t=>{const{type:o,data:i}=t;if(Is("0x13")==o&&i&&"heading"==i[Is("0x18")]){const t=i[Is("0x5")][0][Is("0x10")],o=Ns(t);if(null!==o)return{type:"format",content:Yo(e,Is("0xe"),r(1,o))};const x=n[Is("0x1b")]((e=>e[Is("0xf")]===t))[Is("0x4")];return{type:Is("0x14"),content:Yo(e,"*Change to:* %0",s(1,x))}}}))}}function Ns(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Ms=["getAttribute","isCollapsed","formatInline","has","editor","document","afterInit","getRanges","markInlineFormat","title","getFirstPosition","model","createRange","item","config","find","get","commandParams","registerDescriptionCallback","toLowerCase","*Remove highlight*","push","getLastMatchingPosition","format","change","_descriptionFactory","TrackChangesEditing","*Set highlight:* %0","selection","value","highlight.options","locale","highlight","HighlightEditing","color","plugins","commandName"];var ws,Os;ws=Ms,Os=200,function(t){for(;--t;)ws.push(ws.shift())}(++Os);const Fs=function(t,e){return Ms[t-=0]};class Ps extends t.Plugin{[Fs("0x1c")](){const t=this[Fs("0x1a")];if(!t[Fs("0x14")][Fs("0x19")](Fs("0x12")))return;const e=t.plugins.get(Fs("0xb"));e.enableCommand(Fs("0x11"),((n,o={})=>{const r=t[Fs("0x21")][Fs("0x1b")][Fs("0xd")],s=r[Fs("0x16")](Fs("0x11"));let i=o.value,x=[];if(r[Fs("0x17")]){const e=r[Fs("0x20")]();if(!r.hasAttribute("highlight"))return void n(o);{const n=t=>t[Fs("0x23")].getAttribute("highlight")===s,o=e[Fs("0x7")](n,{direction:"backward"}),r=e[Fs("0x7")](n);x=[t[Fs("0x21")][Fs("0x22")](o,r)],i==s&&(i=null)}}else for(const e of r[Fs("0x1d")]())i?x.push(e):x[Fs("0x6")](...mr(Fs("0x11"),e,t.model));t[Fs("0x21")][Fs("0x9")]((()=>{for(const t of x)e[Fs("0x1e")](t,{commandName:Fs("0x11"),commandParams:[{value:i}]})}))}));const n=t[Fs("0x10")];e[Fs("0xa")][Fs("0x3")]((e=>{const{type:o,data:r}=e;if(Fs("0x18")==o&&r&&Fs("0x11")==r[Fs("0x15")]){const e=n.t,o=r[Fs("0x2")][0][Fs("0xe")];if(o){const r=t[Fs("0x24")][Fs("0x1")](Fs("0xf"))[Fs("0x0")]((t=>t.model==o)),s=e(r[Fs("0x1f")])[Fs("0x4")]();return{type:Fs("0x8"),content:Yo(n,Fs("0xc"),s),color:{value:r[Fs("0x13")],title:r.title}}}return{type:"format",content:Yo(n,Fs("0x5"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Ds=["createContainerElement","plugins","has","editor","locale","get","elementToStructure","div","enableCommand","high","createPositionAt","ck-horizontal-line","ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","_descriptionFactory","dataDowncast","HorizontalLineEditing","insert","horizontalLine","for","addClass"];var Bs,js;Bs=Ds,js=478,function(t){for(;--t;)Bs.push(Bs.shift())}(++js);const Us=function(t,e){return Ds[t-=0]};class Gs extends t.Plugin{afterInit(){const t=this[Us("0x8")];if(!t[Us("0x6")][Us("0x7")](Us("0x0")))return;t[Us("0x6")][Us("0xa")]("TrackChangesEditing")[Us("0xd")]("horizontalLine");const e=t[Us("0x6")].get(Us("0x12")),n=t[Us("0x9")];e[Us("0x13")].registerElementLabel("horizontalLine",(t=>Yo(n,Us("0x11"),t))),t.conversion[Us("0x3")](Us("0x14"))[Us("0xb")]({model:Us("0x2"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Us("0x5")](Us("0xc")),r=e.createEmptyElement("hr");return e[Us("0x4")](Us("0x10"),o),e[Us("0x1")](e[Us("0xf")](o,0),r),o},converterPriority:Us("0xe")})}}const Hs=["cancel","get","change","document","rawHtmlApi","rawHtml","registerDescriptionCallback","TrackChangesEditing","afterInit","getAttribute","*Change %0 content*","view","element","ELEMENT_HTML_EMBED","value","plugins","enableCommand","htmlEmbed","registerElementLabel","has","locale","getCustomProperty","getSelectedElement","markBlockFormat","editing","model","selection","_descriptionFactory"];var zs,Ws;zs=Hs,Ws=468,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Vs=function(t,e){return Hs[t-=0]};class Ks extends t.Plugin{[Vs("0x10")](){const t=this.editor;if(!t[Vs("0x17")][Vs("0x1b")]("HtmlEmbed"))return;const e=t[Vs("0x17")][Vs("0x9")](Vs("0xf")),n=t[Vs("0x0")],o=t[Vs("0x4")][Vs("0x13")][Vs("0xb")][Vs("0x6")];e._descriptionFactory[Vs("0x1a")]("rawHtml",(t=>Yo(n,Vs("0x15"),t))),t[Vs("0x17")][Vs("0x9")](Vs("0xf"))[Vs("0x18")](Vs("0x19"),((n,r)=>{const s=t[Vs("0x5")],i=s[Vs("0xb")][Vs("0x6")];s[Vs("0xa")]((()=>{const t=function(t){const e=t[Vs("0x2")]();return e&&e.is(Vs("0x14"),Vs("0xd"))?t[Vs("0x2")]():null}(i);if(!t)return void n(null);const s=t[Vs("0x11")](Vs("0x16"))||"";void 0!==r&&r!==s&&(e[Vs("0x3")](t,{commandName:"htmlEmbed",commandParams:[r]}),o.getSelectedElement()[Vs("0x1")](Vs("0xc"))[Vs("0x8")]())}))})),e[Vs("0x7")][Vs("0xe")]((t=>{const{data:e}=t;if(e&&Vs("0x19")==e.commandName){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:"format",content:Yo(n,Vs("0x12"),t)}}}))}}const qs=["head","ImageResize","has","addObject","findIndex","newValue","caption","deletion","ImageInlineEditing","isCollapsed","createRange","isInlineImage","registerPostFixer","markBlockFormat","markDeletion","toNext","change","discardSuggestion","from","shouldConvertImageType","chain","width","previous","type","ELEMENT_INLINE_IMAGE","selection","_descriptionFactory","commandParams","end","ELEMENT_CAPTION","hasSuggestion","getCaptionFromImageModelElement","isInContent","imageStyle","isIntersecting","resizeImage","imageStylePostApply","find","commandName","filter","format","ImageUtils","model","_suggestionFactory","newRange","normalizedStyles","alt","hasAttribute","element","markInlineFormat","document","imageStylePreApply","imageTypeInline","isEqual","enableCommand","createRangeOn","uploadImage","title","suggestion","getChangedMarkers","accept","imageCaption","_splitMarkerName","differ","start","formatInline","fromPosition","convertBlockImageToInline","getNearestSelectionRange","ImageBlockEditing","getAttribute","*Format:* %0","commands","locale","getClosestSelectedImageElement","forward","backward","plugins","isBlockImage","insertImage","detach","getContainedElement","discard","*Set image text alternative:* %0","subType","registerCustomCallback","ImageEditing","registerElementLabel","nodeAfter","side","toggleImageCaption","toLowerCase","schema","get","formatBlock","registerDescriptionCallback","forceDefaultExecution","*Remove image text alternative*","length","isBefore","ImageTextAlternativeEditing","Inline image to block image","*Set image width:* %0","markInsertion","imageTypeBlock","ELEMENT_IMAGE","getSuggestionCallback","getSuggestions","Users","insertion","getSuggestion","refresh","next","value","join","*Reset image width*","toPrevious","imageTextAlternative","TrackChangesEditing","convertInlineImageToBlock","afterInit","editor","getFirstRange","Block image to inline image","ImageStyleEditing"];var Xs,$s;Xs=qs,$s=409,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Js=function(t,e){return qs[t-=0]};class Qs extends t.Plugin{[Js("0x56")](){const t=this[Js("0x57")];if(!t[Js("0x2b")][Js("0x5d")](Js("0x34")))return;const n=t[Js("0x2b")][Js("0x3b")](Js("0x54")),o=t[Js("0x2b")][Js("0x3b")](Js("0x7")),r={},s=t[Js("0x27")];if(n[Js("0x14")](Js("0x2d")),n[Js("0x75")][Js("0x35")]("imageBlock",(t=>Yo(s,Js("0x47"),t))),n[Js("0x75")][Js("0x35")]("imageInline",(t=>Yo(s,Js("0x73"),t))),n[Js("0x75")][Js("0x35")]("caption",(()=>Yo(s,Js("0x78")))),t[Js("0x2b")][Js("0x5d")]("ImageUploadEditing")&&n.enableCommand(Js("0x16")),t.plugins[Js("0x5d")](Js("0x23"))&&t[Js("0x2b")][Js("0x5d")](Js("0x63"))&&(n[Js("0x14")](Js("0x12"),((e,r)=>{const s=o[Js("0x28")](t[Js("0x8")][Js("0x10")][Js("0x74")]);t.model[Js("0x6b")]((()=>{n.markBlockFormat(s,{commandName:Js("0x12"),commandParams:[r]},[],"convertBlockImageToInline")}))})),n[Js("0x14")](Js("0x46"),((e,r)=>{t.model[Js("0x6b")]((s=>{let x=o[Js("0x28")](t.model[Js("0x10")][Js("0x74")]),a=s[Js("0x15")](x);const c=i.LivePosition[Js("0x20")](a[Js("0x1e")],Js("0x52")),l=i.LivePosition.fromPosition(a[Js("0x77")],Js("0x6a"));n[Js("0x3e")]((()=>e(r))),x=o[Js("0x28")](t.model[Js("0x10")][Js("0x74")]),a=s.createRangeOn(x);const d=s[Js("0x65")](c,l);c[Js("0x2e")](),l.detach(),n.markBlockFormat(x,{commandName:Js("0x12"),commandParams:[]},[],Js("0x55")),d[Js("0x1e")][Js("0x41")](a.start)&&n[Js("0x45")](s[Js("0x65")](d.start,a.start),Js("0x55")),a.end[Js("0x41")](d.end)&&n.markInsertion(s[Js("0x65")](a[Js("0x77")],d[Js("0x77")]),Js("0x55"))}))})),n[Js("0x9")][Js("0x33")](Js("0x3c"),Js("0x55"),Js("0x50"),(()=>{})),n[Js("0x9")][Js("0x33")]("formatBlock","convertInlineImageToBlock","accept",(()=>{})),n[Js("0x9")][Js("0x33")](Js("0x3c"),"convertInlineImageToBlock",Js("0x30"),n[Js("0x9")][Js("0x48")](Js("0x3c"),"","accept")),n[Js("0x9")][Js("0x33")]("insertion","convertInlineImageToBlock","join",(()=>{})),n[Js("0x9")][Js("0x33")](Js("0x4b"),Js("0x55"),Js("0x30"),(([e])=>{const o=n[Js("0x9")][Js("0x48")](Js("0x4b"),"",Js("0x30"));let r=e[Js("0x1e")],s=e[Js("0x77")];const i=t[Js("0x8")][Js("0x3a")][Js("0x22")](r,Js("0x2a")),x=t[Js("0x8")][Js("0x3a")].getNearestSelectionRange(s,Js("0x29"));i[Js("0x64")]&&(r=i.start),x[Js("0x64")]&&(s=x[Js("0x77")]),o([t[Js("0x8")][Js("0x65")](r,s)])})),n[Js("0x9")][Js("0x33")]("formatBlock",Js("0x55"),"chain",c),n[Js("0x9")].registerCustomCallback(Js("0x4b"),Js("0x55"),"chain",c)),t[Js("0x2b")][Js("0x5d")]("ImageCaptionEditing")&&(n.enableCommand(Js("0x38"),((e,r)=>{const s=t[Js("0x2b")].get("ImageCaptionUtils");let i=o[Js("0x28")](t.model.document[Js("0x74")]),x=s[Js("0x7a")](i);t[Js("0x8")].change((()=>{if(x)return void n[Js("0x69")](t[Js("0x8")][Js("0x15")](x));const a=o[Js("0x2c")](i);e(r),i=o[Js("0x28")](t.model[Js("0x10")][Js("0x74")]),x=s[Js("0x7a")](i),n[Js("0x45")](t[Js("0x8")][Js("0x15")](x),a?null:Js("0x1b"))}))})),n[Js("0x9")][Js("0x33")](Js("0x4b"),Js("0x1b"),Js("0x6f"),c)),t[Js("0x2b")][Js("0x5d")](Js("0x5a"))){n[Js("0x14")](Js("0x7c"),((r,s)=>{const i=t[Js("0x2b")][Js("0x3b")](Js("0x4a")).me,x=t[Js("0x26")][Js("0x3b")](Js("0x7c"));let a=o[Js("0x28")](t[Js("0x8")][Js("0x10")].selection),c=t[Js("0x8")][Js("0x15")](a),l=x[Js("0x4f")];if(l==s[Js("0x4f")])return;const d={commandName:"imageStyle",commandParams:[s],formatGroupId:(0,e.uid)()};t[Js("0x8")][Js("0x6b")]((()=>{if(n[Js("0x49")]()[Js("0x5")]((t=>t.isInContent&&i==t.author&&(Js("0x3c")==t[Js("0x72")]||Js("0x1f")==t[Js("0x72")])&&(Js("0x11")==t[Js("0x32")]||Js("0x2")==t[Js("0x32")])&&t.getFirstRange()[Js("0x13")](c))).forEach((t=>n[Js("0x6c")](t[Js("0x5b")]))),a=o[Js("0x28")](t[Js("0x8")][Js("0x10")].selection),c=t[Js("0x8")][Js("0x15")](a),x[Js("0x4d")](),t[Js("0x26")][Js("0x3b")](Js("0x12")).refresh(),t[Js("0x26")][Js("0x3b")](Js("0x46"))[Js("0x4d")](),l=x[Js("0x4f")],l!=s.value)return o[Js("0x66")](a)&&x[Js("0x6e")](s.value,a)?(r(s),a=o[Js("0x28")](t.model.document[Js("0x74")]),void n[Js("0x68")](a,{...d,commandReversedParams:[{value:l||null}]},[],Js("0x11"))):void(o[Js("0x2c")](a)?n[Js("0x68")](a,d,[],"imageStylePostApply"):n[Js("0xf")](c,d,Js("0x2")))}))}));for(const e of t[Js("0x2b")][Js("0x3b")](Js("0x5a"))[Js("0xb")])r[e.name]=e[Js("0x17")][Js("0x39")]();n._suggestionFactory[Js("0x33")](Js("0x3c"),Js("0x11"),"join",(()=>{})),n._suggestionFactory.registerCustomCallback(Js("0x3c"),"imageStylePostApply",Js("0x50"),(()=>{})),n._suggestionFactory[Js("0x33")](Js("0x1f"),Js("0x2"),"join",(()=>{})),n[Js("0x9")].registerCustomCallback("formatBlock",Js("0x11"),Js("0x1a"),(()=>{})),n._suggestionFactory[Js("0x33")](Js("0x3c"),Js("0x11"),"discard",((t,e)=>{n[Js("0x9")][Js("0x48")](Js("0x3c"),"",Js("0x1a"))(t,{commandName:e[Js("0x4")],commandParams:e.commandReversedParams})})),n[Js("0x9")][Js("0x33")](Js("0x3c"),Js("0x11"),Js("0x6f"),c)}const x=[{type:"formatBlock",subType:"imageStylePreApply"},{type:Js("0x4b"),subType:Js("0x1b")},{type:"formatBlock",subType:Js("0x55")},{type:"insertion",subType:Js("0x55")}];function a(t,e){const r=x[Js("0x5f")]((({type:e,subType:n})=>t[Js("0x72")]==e&&t[Js("0x32")]==n)),s=x[Js("0x5f")]((({type:t,subType:n})=>e[Js("0x72")]==t&&e[Js("0x32")]==n));if(r<0||s<0)return!1;const i=t[Js("0x58")](),a=e[Js("0x58")]();if((0==r||1==r)&&2==s&&i[Js("0x0")](a))return!0;if(2==r&&3==s){const t=n._findSuggestions(i,Js("0x4b"))[Js("0x5")]((({suggestion:t,meta:e})=>e.isOwn&&Js("0x55")==t[Js("0x32")]));if(t[Js("0x40")]>1&&a[Js("0x77")][Js("0x13")](i[Js("0x1e")]))return!0;if(1==t[Js("0x40")]&&(i[Js("0x1e")][Js("0x13")](a.end)||i[Js("0x77")][Js("0x13")](a[Js("0x1e")])))return!0}if(3==r&&3==s&&i[Js("0x1e")][Js("0x41")](a.start)){const t=i.end[Js("0x36")],e=a[Js("0x1e")].nodeBefore;return o[Js("0x2c")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Js("0x8")][Js("0x10")][Js("0x67")]((()=>{let e=!1;const r=Array[Js("0x6d")](t.model.document[Js("0x1d")][Js("0x19")]());for(const{name:t,data:s}of r){const{group:r,type:i,subType:x,id:a}=n[Js("0x1c")](t);if(Js("0x18")==r&&n[Js("0x79")](a)){if(Js("0x3c")==i&&(Js("0x11")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(s[Js("0xa")]){const r=t[Js("0x58")]()[Js("0x2f")]();if(o[Js("0x2c")](r))continue;n.discardSuggestion(t),e=!0}}if(Js("0x4b")==i&&Js("0x1b")==x&&!s[Js("0xa")]){const t=n[Js("0x4c")](a);t[Js("0x4e")]&&t[Js("0x4e")][Js("0x7b")]&&(n[Js("0x6c")](t[Js("0x4e")]),e=!0)}}}return e})),t[Js("0x2b")][Js("0x5d")](Js("0x5c"))&&n[Js("0x14")]("resizeImage",((e,r)=>{const s=o[Js("0x28")](t.model[Js("0x10")].selection);s[Js("0x24")](Js("0x70"))!=r[Js("0x70")]&&t[Js("0x8")][Js("0x6b")]((()=>{n[Js("0x68")](s,{commandName:"resizeImage",commandParams:[r]})}))})),t[Js("0x2b")][Js("0x5d")](Js("0x42"))&&n.enableCommand("imageTextAlternative",((e,r)=>{const s=o[Js("0x28")](t[Js("0x8")][Js("0x10")][Js("0x74")]);(s[Js("0xd")](Js("0xc"))?s.getAttribute("alt"):"")!=r.newValue&&t.model[Js("0x6b")]((()=>{n.markBlockFormat(s,{commandName:Js("0x53"),commandParams:[r]})}))})),n[Js("0x75")].registerDescriptionCallback((t=>{if(x[Js("0x3")]((({type:e,subType:n})=>t[Js("0x72")]==e&&t[Js("0x32")]==n)))return t[Js("0x71")]?{}:void 0})),n[Js("0x75")][Js("0x3d")]((t=>{if(Js("0x4b")==t[Js("0x72")]||Js("0x62")==t[Js("0x72")]){const e=t[Js("0x2f")]();if(e&&e.is(Js("0xe"),Js("0x61")))return{type:Js("0x4b")==t[Js("0x72")]?Js("0x5e"):"removeObject",element:e,quantity:1}}})),n[Js("0x75")].registerDescriptionCallback((t=>Js("0x3c")==t.type&&Js("0x55")==t.subType?{type:"format",content:Js("0x43")}:"formatBlock"==t.type&&Js("0x21")==t[Js("0x32")]?{type:Js("0x6"),content:Js("0x59")}:void 0)),n[Js("0x75")][Js("0x3d")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e.commandName){const t=e.commandParams[0][Js("0x4f")];return n=Js("0x37")===t?Yo(s,"FORMAT_SIDE_IMAGE"):r[t]||t,{type:Js("0x6"),content:Yo(s,Js("0x25"),n)}}if(Js("0x53")==e[Js("0x4")]){const t=e[Js("0x76")][0][Js("0x60")];return t?{type:Js("0x6"),content:Yo(s,Js("0x31"),'"'+t+'"')}:{type:Js("0x6"),content:Yo(s,Js("0x3f"))}}if(Js("0x1")==e.commandName){const t=e[Js("0x76")][0].width;return t?{type:Js("0x6"),content:Yo(s,Js("0x44"),t)}:{type:Js("0x6"),content:Yo(s,Js("0x51"))}}}var n}))}}const Zs=["change","format","registerDescriptionCallback","TrackChangesEditing","getSuggestionCallback","handleSuggestionDescription","author","discard","editor","get","data","accept","plugins","_suggestionFactory","_descriptionFactory","handleReplaceImageCommand","registerCustomCallback","afterInit","source","src","getSuggestions","has","Users","commandParams","replaceImageSource","selection","commandName","getSelectedElement","locale","*Format:* replace image URL"];var Ys,ti;Ys=Zs,ti=384,function(t){for(;--t;)Ys.push(Ys.shift())}(++ti);const ei=function(t,e){return Zs[t-=0]};class ni extends t.Plugin{[ei("0x17")](){if(!this.editor[ei("0x12")][ei("0x1b")]("ImageEditing"))return;const t=this.editor[ei("0x12")].get(ei("0x9"));t.enableCommand(ei("0x0"),((t,e)=>this[ei("0x15")](t,e))),t[ei("0x13")][ei("0x16")]("formatBlock",ei("0x0"),"accept",t._suggestionFactory[ei("0xa")]("formatBlock",null,ei("0xd"))),t[ei("0x13")][ei("0x16")]("formatBlock",ei("0x0"),"discard",t[ei("0x13")][ei("0xa")]("formatBlock",null,ei("0x11"))),t[ei("0x14")][ei("0x8")]((t=>this[ei("0xb")](t)))}[ei("0x15")](t,e){const n=this[ei("0xe")][ei("0x12")].get(ei("0x9")),o=this[ei("0xe")].model.document[ei("0x1")][ei("0x3")]();this.editor.model[ei("0x6")]((()=>{let r=o.getAttribute(ei("0x19"));const s=this[ei("0xe")][ei("0x12")][ei("0xf")](ei("0x1c")).me;for(const t of n[ei("0x1a")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x0")===t.subType&&e===o){t[ei("0xc")]!==s&&t[ei("0xd")](),r=t[ei("0x10")][ei("0x1d")][0][ei("0x18")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x0"),commandParams:[{source:r}]},[],ei("0x0"))}))}[ei("0xb")](t){const{data:e}=t;if(e&&ei("0x0")===e[ei("0x2")]){const t=ei("0x5");return{type:ei("0x7"),content:Yo(this[ei("0xe")][ei("0x4")],t)}}}}const oi=["_trackChangesValueDuringImport","lowest","TrackChangesEditing","high","Users","_setSuggestionData","execute","bind","enableCommand","_handleImportedData","trackChanges","commands","track_changes","importWord","listenTo","_trackChangesExecuted","value","dataInsert","get","plugins"];var ri,si;ri=oi,si=424,function(t){for(;--t;)ri.push(ri.shift())}(++si);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ii("0xb")]=!1}afterInit(){const t=this.editor,e=t[ii("0x7")][ii("0xe")]("importWord"),n=t[ii("0x7")][ii("0xe")]("trackChanges");e&&(e.on(ii("0x2"),((t,[,e])=>{this[ii("0x10")]=n[ii("0xc")],e.collaboration_features[ii("0x8")]=!this[ii("0x10")]}),{priority:ii("0x13")}),this.listenTo(e,ii("0xd"),this._handleImportedData[ii("0x3")](this)),this[ii("0xa")](e,ii("0xd"),(()=>{this._trackChangesExecuted&&(n.execute(),this[ii("0xb")]=!1)}),{priority:ii("0x11")}),t.plugins[ii("0xe")](ii("0x12"))[ii("0x4")](ii("0x9")))}[ii("0x5")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x7")][ii("0xe")](ii("0x6")),r=o[ii("0xc")];this[ii("0x10")]!==r&&(o[ii("0x2")](),this[ii("0xb")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this.editor[ii("0xf")][ii("0xe")](ii("0x0")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x9")}}};this.editor[ii("0xf")].get("TrackChangesEditing")[ii("0x1")](r)}))}}const ai=["enableCommand","TrackChangesEditing","commandName","getItemLabel","format","model","registerDescriptionCallback","change","_descriptionFactory","*Indent:* %0","get","from","filter","blockIndent","markBlockFormat","editor","getSelectedBlocks","checkAttribute","indentBlock","*Outdent:* %0","plugins","has","locale","afterInit","schema","outdentBlock"];var ci,li;ci=ai,li=263,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x14")](){const t=this.editor,e=t.plugins[di("0x7")](di("0x18"));t[di("0x11")][di("0x12")]("IndentEditing")&&(e.enableCommand("indent"),e[di("0x17")]("outdent"));const n=t[di("0x13")];if(t[di("0x11")].has("IndentBlock")){for(const n of[di("0xf"),di("0x16")])e.enableCommand(n,(()=>{const o=Array[di("0x8")](this.editor[di("0x2")].document.selection[di("0xd")]())[di("0x9")]((t=>this[di("0xc")].model[di("0x15")][di("0xe")](t,di("0xa"))));t[di("0x2")][di("0x4")]((()=>{for(const t of o)e[di("0xb")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0xf")})}))}));e[di("0x5")][di("0x3")]((t=>{const{data:o}=t;if(!o)return;if(di("0xf")!=o.commandName&&"outdentBlock"!=o[di("0x19")])return;const r=t.getItems()[0],s=e[di("0x5")][di("0x0")](r);return di("0xf")==o[di("0x19")]?{type:di("0x1"),content:Yo(n,di("0x6"),s)}:"outdentBlock"==o[di("0x19")]?{type:di("0x1"),content:Yo(n,di("0x10"),s)}:void 0}))}}}var gi,mi,fi=["requires","input","init","enableCommand","get","plugins","TrackChangesEditing","editor"];gi=fi,mi=468,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x4")](){return[Vr.Input]}[hi("0x6")](){this[hi("0x3")][hi("0x1")][hi("0x0")](hi("0x2"))[hi("0x7")](hi("0x5"))}}const bi=["getAttribute","TrackChangesEditing","link","get","_descriptionFactory","isCollapsed","change","markInlineFormat","*Set link:* %0","registerDescriptionCallback","*Remove link*","format","editor","getFirstPosition","document","unlink","plugins","from","model","selection","enableCommand","getFirstRange","commandName","hasAttribute","linkHref","LinkEditing"];var Ei,_i;Ei=bi,_i=336,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this.editor;if(!t[Ti("0x12")].has(Ti("0x1")))return;const e=t[Ti("0x12")][Ti("0x5")](Ti("0x3"));e[Ti("0x16")](Ti("0x4"),((n,o)=>{const r=t[Ti("0x14")][Ti("0x10")][Ti("0x15")];let s=[];if(r[Ti("0x7")]){if(!r[Ti("0x19")](Ti("0x0")))return void n(o);{const e=(0,Vr.findAttributeRange)(r[Ti("0xf")](),Ti("0x0"),r[Ti("0x2")]("linkHref"),t.model);s=[e]}}else s=Array[Ti("0x13")](r.getRanges());t.model[Ti("0x8")]((()=>{for(const t of s)e[Ti("0x9")](t,{commandName:"link",commandParams:[o]})}))})),e[Ti("0x16")](Ti("0x11"),(()=>{const n=this[Ti("0xe")][Ti("0x14")],o=n[Ti("0x10")][Ti("0x15")];n[Ti("0x8")]((()=>{let n=[];n=o[Ti("0x7")]?[(0,Vr.findAttributeRange)(o[Ti("0xf")](),Ti("0x0"),o[Ti("0x2")]("linkHref"),t[Ti("0x14")])]:mr("linkHref",o[Ti("0x17")](),t[Ti("0x14")]);for(const t of n)e[Ti("0x9")](t,{commandName:Ti("0x11"),commandParams:[]})}))})),e[Ti("0x6")][Ti("0xb")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x4")==n[Ti("0x18")]){const t=n.commandParams[0];return{type:Ti("0xd"),content:Yo(o,Ti("0xa"),'"'+t+'"')}}return Ti("0x11")==n[Ti("0x18")]?{type:"format",content:Yo(o,Ti("0xc"))}:void 0}}))}}const yi=["ELEMENT_TODO_LIST","enableCommand","execute","name","plugins","_selectedElements","bulleted","end","replace","todo","bulletedList","isObject","getSelectedBlocks","createRange","document","createPositionAt","registerElementLabel","_descriptionFactory","editor","add","length","*Indent:* %0","findIndex","ELEMENT_NUMBERED_LIST","element","change","paragraph","ELEMENT_LIST_ITEM","selection","commands","nextSibling","outdentList","before","format","previousSibling","getAttribute","ListEditing","listType","push","TodoListEditing","*Uncheck item*","filter","commandName","checkTodoList","slice","*Check item*","listItem","afterInit","blockName","get","listIndent","List","numberedList","model","commandParams","has","forceValue","from","todoListChecked","todoList","*Outdent:* %0","value","schema","locale"];var ki,Ai;ki=yi,Ai=406,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x19")](){const t=this[vi("0x3c")],e=t[vi("0x29")];if(!t[vi("0x2e")].has(vi("0xe")))return;const n=t[vi("0x2e")][vi("0x1b")]("TrackChangesEditing"),o=t[vi("0x2e")][vi("0x21")](vi("0x11"));function r(e){return()=>{const o=t[vi("0x1f")].document[vi("0x6")],r=t[vi("0x7")][vi("0x1b")](e);if(r[vi("0x27")])return void t[vi("0x2c")](vi("0x4"),{});const s=e[vi("0x16")](0,-4),i=function(t,e,n){let o=Array.from(t)[vi("0x13")]((t=>{return e=t,(o=n).checkChild(e.parent,vi("0x18"))&&!o[vi("0x35")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x2"),vi("0x18"))||t[vi("0xd")](vi("0xf"))!=e));const r=new Set;for(const t of o)t.is(vi("0x2"),vi("0x18"))?r.add(Si(t)):r[vi("0x3d")](t);return Array[vi("0x23")](r)}(o.getSelectedBlocks(),s,t.model[vi("0x28")]);t[vi("0x1f")][vi("0x3")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!r[vi("0x27")]}],formatGroupId:vi("0x1a")},Ii(t))}))}}function s(e){return()=>{const o=function(t){let e=Array[vi("0x23")](t);const n=e[vi("0x0")]((t=>vi("0x18")!=t[vi("0x2d")]));return n>-1&&(e=e[vi("0x16")](0,n)),e}(t[vi("0x1f")][vi("0x38")][vi("0x6")][vi("0x36")]()),r=t[vi("0x1f")][vi("0x37")](t[vi("0x1f")].createPositionAt(o[0],vi("0xa")),t[vi("0x1f")][vi("0x39")](o[o[vi("0x3e")]-1],vi("0x31")));t[vi("0x1f")][vi("0x3")]((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[vi("0x8")];for(;t&&t[vi("0xd")](vi("0x1c"))>n[vi("0xd")](vi("0x1c"));)e.add(t),t=t[vi("0x8")]}return Array[vi("0x23")](e)}(o))}))}}n[vi("0x2b")](vi("0x1e"),r(vi("0x1e"))),n[vi("0x2b")](vi("0x34"),r("bulletedList")),o&&n[vi("0x2b")](vi("0x25"),r(vi("0x25"))),n.enableCommand("indentList",s("indentList")),n[vi("0x2b")](vi("0x9"),s(vi("0x9"))),o&&n[vi("0x2b")](vi("0x15"),(()=>{const e=t[vi("0x7")][vi("0x1b")](vi("0x15")),o=Array[vi("0x23")](e[vi("0x2f")]);o.filter((t=>t[vi("0xd")](vi("0x24"))!=e[vi("0x27")])),t[vi("0x1f")][vi("0x3")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[vi("0x27")]}]})}))})),n[vi("0x3b")][vi("0x3a")](vi("0x18"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x3b")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0x1e")==n[vi("0x14")]||vi("0x34")==n[vi("0x14")]||vi("0x25")==n.commandName)switch(n[vi("0x14")][vi("0x32")](vi("0x1d"),"")){case vi("0x30"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,vi("0x1")));case vi("0x33"):return o(Yo(e,vi("0x2a")))}if("indentList"==n[vi("0x14")])return{type:vi("0xb"),content:Yo(e,vi("0x3f"),Yo(e,vi("0x5")))};if(vi("0x9")==n[vi("0x14")])return{type:"format",content:Yo(e,vi("0x26"),Yo(e,vi("0x5")))};if(vi("0x15")==n.commandName)return n[vi("0x20")][0][vi("0x22")]?{type:vi("0xb"),content:Yo(e,vi("0x17"))}:{type:vi("0xb"),content:Yo(e,vi("0x12"))}}function o(t){return{type:"format",content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x1c"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0xc")].is(vi("0x2"),vi("0x18"));){const o=t[vi("0xc")].getAttribute("listIndent");if(o==e)n=t[vi("0xc")];else if(o<e)break;t=t[vi("0xc")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2"),"listItem")&&t[vi("0xd")]("listIndent")>0){let n=t.nextSibling;for(;n&&vi("0x18")==n[vi("0x2d")]&&n.getAttribute(vi("0x1c"))==t.getAttribute(vi("0x1c"));)e[vi("0x10")](n),n=n[vi("0x8")]}return e}const Li=["listReversed","list.properties","model","unshift","commandName","handleListStartCommand","filter","startIndex","listStyle","ListPropertiesEditing","afterInit","type","plugins","registerDescriptionCallback","ListUtils","push","*Change to:* %0","TrackChangesEditing","handleListStyleCommand","getAttribute","change","editor","_getSuggestionBlocks","config","map","length","markMultiRangeBlockFormat","get","commandParams","listStart","getFirstPosition","*Format:* set order to regular","selection","getSelectedBlocks","replace","createPositionAt","enableCommand","forward","listItem","_getSuggestionBlocksForListStyle","numbered","element","bind","has","getLastPosition","_descriptionFactory","toUpperCase","getSiblingNodes","document","styles","reversed","from","before","handleDescriptions","_getTranslationKeyForListStyle","createRange","listType","parent","format","backward","handleListReversedCommand","ELEMENT_"];var Ni,Mi;Ni=Li,Mi=298,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x16")](){if(!this[wi("0x21")][wi("0x18")][wi("0x37")](wi("0x15")))return;const t=this[wi("0x21")][wi("0x23")][wi("0x27")](wi("0xd")),e=this[wi("0x21")][wi("0x18")].get("TrackChangesEditing");t[wi("0x3d")]&&e[wi("0x30")](wi("0x14"),this[wi("0x1e")][wi("0x36")](this)),t[wi("0x0")]&&e[wi("0x30")](wi("0xc"),this[wi("0xa")][wi("0x36")](this)),t[wi("0x13")]&&e[wi("0x30")](wi("0x29"),this.handleListStartCommand[wi("0x36")](this)),e[wi("0x39")][wi("0x19")](this[wi("0x3")][wi("0x36")](this))}[wi("0x1e")](t,e={}){const n=this[wi("0x21")][wi("0x18")][wi("0x27")](wi("0x1d")),o=this._getSuggestionBlocksForListStyle();this[wi("0x21")][wi("0xe")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:wi("0x14"),commandParams:[{type:e[wi("0x17")]}],formatGroupId:wi("0x14")})}))}handleListReversedCommand(t,e={}){const n=this[wi("0x21")].plugins.get("TrackChangesEditing"),o=this[wi("0x22")]((t=>t.is(wi("0x35"),wi("0x32"))&&"numbered"===t[wi("0x1f")]("listType")));if(o[wi("0x25")]<1)return;const r=o[wi("0x24")]((t=>this[wi("0x21")][wi("0xe")][wi("0x5")](this[wi("0x21")][wi("0xe")][wi("0x2f")](t,wi("0x2")),this[wi("0x21")][wi("0xe")][wi("0x2f")](t,0))));this[wi("0x21")][wi("0xe")][wi("0x20")]((()=>{n[wi("0x26")](r,{commandName:wi("0xc"),commandParams:[{reversed:e[wi("0x0")]}],formatGroupId:wi("0xc")})}))}[wi("0x11")](t,e={}){const n=this.editor.plugins.get(wi("0x1d")),o=this[wi("0x22")]((t=>t.is(wi("0x35"),wi("0x32"))&&wi("0x34")===t[wi("0x1f")](wi("0x6"))));if(o[wi("0x25")]<1)return;const r=o[wi("0x24")]((t=>this[wi("0x21")][wi("0xe")].createRange(this[wi("0x21")].model[wi("0x2f")](t,"before"),this[wi("0x21")][wi("0xe")][wi("0x2f")](t,0))));this.editor[wi("0xe")][wi("0x20")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:wi("0x29"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wi("0x3")](t){const e=this[wi("0x21")].locale,{data:n}=t;if(!n)return;let o,r;switch(n[wi("0x10")]){case"listStyle":o=wi("0x1c"),r={type:wi("0x8"),content:Yo(e,o,Yo(e,this[wi("0x4")](n.commandParams[0][wi("0x17")])))};break;case wi("0xc"):o=n[wi("0x28")][0][wi("0x0")]?"*Format:* set order to reversed":wi("0x2b"),r={type:wi("0x8"),content:Yo(e,o)};break;case wi("0x29"):o="*Format:* set start index to %0",r={type:wi("0x8"),content:Yo(e,o,n[wi("0x28")][0][wi("0x13")])}}return r}[wi("0x33")](){var t,e,n,o;const r=this.editor.plugins[wi("0x27")]("ListUtils");let s=Array[wi("0x1")](this.editor.model[wi("0x3c")][wi("0x2c")][wi("0x2d")]());return(null===(t=s[0])||void 0===t?void 0:t.is("element","listItem"))&&s[wi("0xf")](...r[wi("0x3b")](this.editor[wi("0xe")][wi("0x3c")][wi("0x2c")].getFirstPosition(),"backward")),(null===(e=s[s[wi("0x25")]-1])||void 0===e?void 0:e.is(wi("0x35"),wi("0x32")))&&s[wi("0x1b")](...r[wi("0x3b")](this[wi("0x21")][wi("0xe")][wi("0x3c")][wi("0x2c")][wi("0x38")](),wi("0x31"))),s=[...new Set(s)],(null===(o=null===(n=this.editor.model[wi("0x3c")].selection[wi("0x2a")]())||void 0===n?void 0:n[wi("0x7")])||void 0===o?void 0:o.is(wi("0x35"),wi("0x32")))&&(s=s[wi("0x12")]((t=>t.is(wi("0x35"),wi("0x32"))))),s}[wi("0x22")](t){const e=this[wi("0x21")][wi("0x18")].get(wi("0x1a"));let n=Array.from(this[wi("0x21")][wi("0xe")][wi("0x3c")][wi("0x2c")][wi("0x2d")]()).filter(t)[wi("0x24")]((t=>{const n=this[wi("0x21")].model[wi("0x2f")](t,0);return[...e[wi("0x3b")](n,wi("0x9")),...e[wi("0x3b")](n,wi("0x31"))]})).flat();return n=[...new Set(n)],n}[wi("0x4")](t){return wi("0xb")+this[wi("0x21")][wi("0x18")].get(wi("0x1a")).getListTypeFromListStyleType(t).toUpperCase()+"_LIST_"+t[wi("0x3a")]()[wi("0x2e")](/-/g,"_")}}const Fi=["afterInit","data","enableCommand","elementToElement","plugins","stop","div","get","downcastDispatcher","showSuggestionHighlights","options","_descriptionFactory","attribute:url:media","conversion","ELEMENT_MEDIA","mediaEmbed","TrackChangesEditing","media","MediaEmbedEditing","has","dataDowncast","high"];var Pi,Di;Pi=Fi,Di=382,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xe")](){const t=this.editor;if(!t[Bi("0x12")][Bi("0xb")](Bi("0xa")))return;const e=t[Bi("0x12")][Bi("0x15")](Bi("0x8")),n=t.locale;e[Bi("0x10")](Bi("0x7")),e[Bi("0x3")].registerElementLabel(Bi("0x9"),(t=>Yo(n,Bi("0x6"),t))),t[Bi("0x5")].for(Bi("0xc"))[Bi("0x11")]({model:Bi("0x9"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x1")])return e.createEmptyElement(Bi("0x14"))},converterPriority:Bi("0xd")}),t[Bi("0xf")][Bi("0x0")].on(Bi("0x4"),((t,e,n)=>{n[Bi("0x2")][Bi("0x1")]&&t[Bi("0x13")]()}),{priority:Bi("0xd")})}}const Ui=["get","MentionEditing","afterInit","enableCommand","plugins","TrackChangesEditing","has","mention"];var Gi,Hi;Gi=Ui,Hi=388,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x6")](){const t=this.editor;t[zi("0x0")][zi("0x2")](zi("0x5"))&&t.plugins[zi("0x4")](zi("0x1"))[zi("0x7")](zi("0x3"))}}const Vi=["afterInit","has","registerElementLabel","_descriptionFactory","plugins","TrackChangesEditing","locale","ELEMENT_PAGE_BREAK","PageBreakEditing","editor"];var Ki,qi;Ki=Vi,qi=208,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x2")](){const t=this[Xi("0x1")];if(!t.plugins[Xi("0x3")](Xi("0x0")))return;t.plugins.get(Xi("0x7")).enableCommand("pageBreak");const e=t[Xi("0x6")].get(Xi("0x7")),n=t[Xi("0x8")];e[Xi("0x5")][Xi("0x4")]("pageBreak",(t=>Yo(n,Xi("0x9"),t)))}}const Ji=["insert","toViewPosition","ELEMENT_PARAGRAPH","*Change to:* %0","downcastDispatcher","activeMarkers","type","selection","Paragraph","paragraph","span","markerRange","highest","isObject","name","getItemLabel","$text","isTouching","afterInit","createUIElement","getFirstRange","locale","checkChild","schema","isBlock","insertParagraph","editor","markerName","*Insert:* %0","change","mapper","ck-suggestion-marker--active","model","has","start","ck-suggestion-marker-split","getSelectedBlocks","showSuggestionHighlights","blockName","addClass","writer","format","plugins","insertion","end","isLimit","editing","consumable","parent","bindElementToMarker","registerElementLabel","data","addMarker:suggestion:insertion","registerDescriptionCallback","nodeAfter","get","enableCommand","TrackChangesEditing"];var Qi,Zi;Qi=Ji,Zi=415,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x9")](){const t=this.editor;if(!t.plugins[Yi("0x18")](Yi("0x39")))return;const e=t[Yi("0xc")],n=t.plugins[Yi("0x2e")](Yi("0x30"));n._descriptionFactory[Yi("0x29")](Yi("0x0"),(t=>Yo(e,Yi("0x33"),t))),n[Yi("0x2f")](Yi("0x0"),((e,o={})=>{const r=t[Yi("0x17")].document,s=o[Yi("0x38")]||r[Yi("0x38")],i=Array.from(s[Yi("0x1b")]()).filter((t=>{return e=t,(n=this[Yi("0x11")][Yi("0x17")][Yi("0xe")]).checkChild(e[Yi("0x27")],Yi("0x0"))&&!n[Yi("0x4")](e)&&"paragraph"!=e[Yi("0x5")];var e,n}));t[Yi("0x17")][Yi("0x14")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x0"),commandParams:[],formatGroupId:Yi("0x1d")},fr(t))}))})),n._descriptionFactory[Yi("0x2c")]((t=>{const{data:n}=t;if(n&&Yi("0x0")==n.commandName)return{type:Yi("0x20"),content:Yo(e,Yi("0x34"),Yo(e,Yi("0x33")))}})),n[Yi("0x2f")](Yi("0x10")),t[Yi("0x25")][Yi("0x35")].on(Yi("0x2b"),ex(t),{priority:Yi("0x3")}),t[Yi("0x2a")][Yi("0x35")].on(Yi("0x2b"),((e,n,o)=>{o.options[Yi("0x1c")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x3")});const o=n._descriptionFactory;o[Yi("0x2c")]((n=>{if(Yi("0x22")!==n[Yi("0x37")])return;const{start:r,end:s}=n[Yi("0xb")]();if(!r[Yi("0x8")](s)||!r[Yi("0x2d")])return;const i=t[Yi("0x17")][Yi("0xe")],x=r.nodeAfter;return i.isBlock(x)&&!i[Yi("0x24")](x)&&i[Yi("0xd")](x,Yi("0x7"))?{type:Yi("0x22"),content:Yo(e,Yi("0x13"),o[Yi("0x6")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[Yi("0x21")][Yi("0x2e")](Yi("0x30")),i=o[Yi("0x2")][Yi("0x19")],x=o[Yi("0x2")][Yi("0x23")],a=t[Yi("0x17")][Yi("0xe")];if(!i.isTouching(x)||!i[Yi("0x2d")])return;const c=i.nodeAfter;if(a[Yi("0xf")](c)&&!a[Yi("0x24")](c)&&a.checkChild(c,Yi("0x7"))){if(!r[Yi("0x26")].consume(o.markerRange,n[Yi("0x5")]))return;const t=r[Yi("0x1f")][Yi("0xa")](Yi("0x1"),{class:Yi("0x1a")}),i=r.mapper[Yi("0x32")](x);e&&s[Yi("0x36")].includes(o[Yi("0x12")])&&r[Yi("0x1f")][Yi("0x1e")](Yi("0x16"),t),r[Yi("0x1f")][Yi("0x31")](i,t),r[Yi("0x15")][Yi("0x28")](t,o[Yi("0x12")])}}}const nx=["isFormatting","plugins","from","RemoveFormatEditing","get","getAttributes","afterInit","removeFormat","isCollapsed","*Remove all formatting*","document","_descriptionFactory","getItems","model","getAttributeProperties","commandName","has","getRanges","createRangeOn","editor","selection","change"];var ox,rx;ox=nx,rx=372,function(t){for(;--t;)ox.push(ox.shift())}(++rx);const sx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[sx("0x8")](){const t=this[sx("0x15")];if(!t.plugins[sx("0x12")](sx("0x5")))return;const e=t[sx("0x3")][sx("0x6")]("TrackChangesEditing");e.enableCommand("removeFormat",(n=>{const o=t.model[sx("0xc")][sx("0x0")];o[sx("0xa")]?n():t.model[sx("0x1")]((()=>{const n=Array[sx("0x4")](o[sx("0x13")]());for(const o of n)for(const n of o[sx("0xe")]())xx(n,t[sx("0xf")].schema)&&e.markInlineFormat(t[sx("0xf")][sx("0x14")](n),{commandName:sx("0x9"),commandParams:[]})}))})),e[sx("0xd")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&sx("0x9")==n[sx("0x11")])return{type:"format",content:Yo(t.locale,sx("0xb"))}}))}}function xx(t,e){for(const[n]of t[sx("0x7")]()){const t=e[sx("0x10")](n);if(t&&t[sx("0x2")])return!0}return!1}const ax=["TrackChangesEditing","enableCommand","RestrictedEditingModeEditing","afterInit","trackChanges","acceptSuggestion","acceptSelectedSuggestions","editor","get","goToNextRestrictedEditingException","discardSuggestion","has","plugins","discardSelectedSuggestions"];var cx,lx;cx=ax,lx=176,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x9")](){const t=this[dx("0xd")];if(!t[dx("0x4")][dx("0x3")](dx("0x8")))return;const e=t[dx("0x4")][dx("0x0")](dx("0x6"));e.enableCommand("goToPreviousRestrictedEditingException"),e[dx("0x7")](dx("0x1"));const n=t[dx("0x4")].get(dx("0x8"));n[dx("0x7")](dx("0xa")),n.enableCommand(dx("0xb")),n[dx("0x7")](dx("0x2")),n[dx("0x7")]("acceptAllSuggestions"),n[dx("0x7")]("discardAllSuggestions"),n.enableCommand(dx("0xc")),n[dx("0x7")](dx("0x5"))}}const gx=["plugins","addMarker:suggestion:deletion","addClass","addMarker:suggestion:insertion","ck-suggestion-marker--active","markerRange","showSuggestionHighlights","consumable","TrackChangesEditing","options","editing","enableCommand","ELEMENT_LINE_BREAK","writer","model","span","split","getItems","createUIElement","addMarker:suggestion","high","insert","merge","downcastDispatcher","requires","get","shiftEnter","activeMarkers","mapper","softBreak","ck-suggestion-marker-","init","registerElementLabel","test","markerName","name","element"];var mx,fx;mx=gx,fx=315,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x5")](){return[ns.ShiftEnter]}[hx("0xc")](){const t=this.editor,e=t[hx("0x12")][hx("0x6")](hx("0x1a"));e[hx("0x1d")](hx("0x7")),t[hx("0x1c")][hx("0x4")].on(hx("0x15"),bx(t),{priority:hx("0x1")}),t.editing[hx("0x4")].on(hx("0x13"),bx(t),{priority:hx("0x1")}),t.data.downcastDispatcher.on(hx("0x0"),((e,n,o)=>{o[hx("0x1b")][hx("0x18")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[hx("0xd")]("softBreak",(e=>Yo(t.locale,hx("0x1e"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[hx("0x12")][hx("0x6")](hx("0x1a"));if(!r[hx("0x19")][hx("0xe")](o[hx("0x17")],n[hx("0x10")]))return;const i=t[hx("0x20")];for(const t of o[hx("0x17")][hx("0x23")]()){if(!t.is(hx("0x11"),hx("0xa")))continue;const n="deletion"==o[hx("0xf")][hx("0x22")](":")[1]?hx("0x3"):hx("0x22"),x=r[hx("0x1f")][hx("0x24")](hx("0x21"),{class:hx("0xb")+n}),a=r[hx("0x9")].toViewPosition(i.createPositionBefore(t));e&&s[hx("0x8")].includes(o[hx("0xf")])&&r[hx("0x1f")][hx("0x14")](hx("0x16"),x),r[hx("0x1f")][hx("0x2")](a,x),r[hx("0x9")].bindElementToMarker(x,o.markerName)}}}const Ex=["restrictedEditingException","getRanges","isCollapsed","forceValue","plugins","locale","_descriptionFactory","afterInit","get","FORMAT_RESTRICTED_DISABLED","markInlineFormat","commandParams","selection","FORMAT_RESTRICTED_ENABLED","change","editor","value","enableCommand","from","commandName","format"];var _x,Tx;_x=Ex,Tx=367,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x12")](){const t=this[Cx("0x5")],e=t.model,n=t[Cx("0x10")];if(!t[Cx("0xf")].has("StandardEditingModeEditing"))return;const o=t[Cx("0xf")][Cx("0x13")]("TrackChangesEditing"),r=Cx("0xb"),s=t.commands[Cx("0x13")](r);o[Cx("0x7")](r,((t,n={})=>{const i=e.document[Cx("0x2")];if(i[Cx("0xd")])return void t(n);const x=void 0!==n[Cx("0xe")]?n.forceValue:!s[Cx("0x6")];e[Cx("0x4")]((()=>{const t=Array[Cx("0x8")](i[Cx("0xc")]());for(const n of t){const t=x?[n]:mr(r,n,e);for(const e of t)o[Cx("0x0")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x11")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Cx("0x9")]==r)return e[Cx("0x1")][0][Cx("0xe")]?{type:Cx("0xa"),content:Yo(n,Cx("0x3"))}:{type:Cx("0xa"),content:Yo(n,Cx("0x14"))}}))}}const kx=["every","_getRangesWithClasses","config","registerDescriptionCallback","getAncestors","block","locale","has","_descriptionFactory","push","format","StyleUtils","styleName","plugins","editor","document","selection","commandName","style","modelElements","commandParams","add","DataSchema","model","from","createRangeOn","toLowerCase","name","style:","forceValue","get","change","getSelectedBlocks","isBlock","Style","*Remove format:* %0","getItems","commands","find","element","style.definitions","_getStyleDefinition","afterInit","value","includes","classes","enableCommand"];var Ax,vx;Ax=kx,vx=471,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x29")](){const t=this[Rx("0xd")];if(!t[Rx("0xc")][Rx("0x6")](Rx("0x21")))return;const e=t[Rx("0x24")].get("style"),n=t.plugins[Rx("0x1d")]("TrackChangesEditing"),o=t[Rx("0x5")],r=t[Rx("0xc")].get(Rx("0x15")),s=t[Rx("0xc")][Rx("0x1d")](Rx("0xa")).normalizeConfig(r,t[Rx("0x1")][Rx("0x1d")](Rx("0x27")));n[Rx("0x2d")](Rx("0x11"),((o,{styleName:i})=>{const x=t.model[Rx("0xe")][Rx("0xf")],a=this._getStyleDefinition(i,s);if(!a)return;if(!e.enabledStyles[Rx("0x2b")](i))return;if(x.isCollapsed&&!a[Rx("0x20")])return void o({styleName:i});const c=!e[Rx("0x2a")][Rx("0x2b")](a[Rx("0x1a")]);if(a[Rx("0x20")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x3")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x2b")](o[Rx("0x1a")])){n[Rx("0x14")](o);break}}return n}(x[Rx("0x1f")](),a[Rx("0x12")]);t[Rx("0x16")][Rx("0x1e")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x1b")+i})}))}else{let e=Array[Rx("0x17")](x.getRanges());if(!c){const n=Array.from(r.getDefinitionsForView(a[Rx("0x26")],!1))[0][Rx("0x16")],o=[];for(const r of e){const e=this[Rx("0x0")](t[Rx("0x16")],r,a.classes,n);o[Rx("0x8")](...e)}e=o}t[Rx("0x16")][Rx("0x1e")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x7")][Rx("0x2")]((t=>{const{data:e}=t;if(e&&Rx("0x11")===e[Rx("0x10")])return e[Rx("0x13")][0][Rx("0x1c")]?{type:Rx("0x9"),content:Yo(o,"*Format:* %0",e.commandParams[0][Rx("0xb")][Rx("0x19")]())}:{type:Rx("0x9"),content:Yo(o,Rx("0x22"),e[Rx("0x13")][0].styleName[Rx("0x19")]())}}))}[Rx("0x28")](t,e){let n=e[Rx("0x4")][Rx("0x25")]((e=>e[Rx("0x1a")]===t));return n||(n=e.inline.find((e=>e.name===t))),n}[Rx("0x0")](t,e,n,o){const r=[];for(const s of e[Rx("0x23")]()){const e=s.getAttribute(o);e&&n[Rx("0x2e")]((t=>e[Rx("0x2c")][Rx("0x2b")](t)))&&r.push(t[Rx("0x18")](s))}return r}}const Ix=["item","toLowerCase","removeTableColumn","order","every","minRow","markMultiRangeInsertion","insertTableColumnLeft","ELEMENT_TABLE","createTableWalker","setSelection","toViewElement","map","markMultiRangeDeletion","registerCustomCallback","element","locale","discard","refresh","some","ELEMENT_TABLE_COLUMN","MIN_SAFE_INTEGER","insertion","getSuggestion","low","getColumnIndexes","getFirstRange","type","isIntersectingWithRange","highest","filter","oldRange","subType","editor","nodeAfter","ELEMENT_TABLE_COLUMN_WITH_TEXT","change","fromRange","tableColumn","addRange","left","span","afterInit","_getCoordsForCells","change:data","findAncestor","getCellLocation","ELEMENT_TABLE_ROW","isInContent","enqueueChange","_suggestionFactory","_getSuggestionCoords","classes","document","plugins","deletion","cell","insertTableRowBelow","from","substr","first","getChangedMarkers","ELEMENT_TABLE_WITH_TEXT","_tablePostFixingSubtypes","$textProxy","TableUtils","mapper","commands","values","_splitMarkerName","*Insert:* %0","isEqual","_setupColumnsRowsFixing","selectTableColumn","writer","tableCell","_descriptionFactory","accept","insertTableRowAbove","*Remove:* %0","min","getItems","length","detach","removeClass","batch","add","_tableSuggestions","registerDescriptionCallback","TrackChangesEditing","downcastDispatcher","enableCommand","name","getAttribute","registerPostFixer","get","$graveyard","start","nodeBefore","getRanges","minColumn","above","createPositionAt","getRowIndexes","max","rowspan","_acceptFormatSuggestionCallbackFactory","last","join","createRangeOn","insert","execute","hasAttribute","getSelectionAffectedTableCells","includes","push","colspan","position","removeTableRow","showSuggestionHighlights","isTouching","ELEMENT_TABLE_ROW_WITH_TEXT","data","model","tableRow","table","MAX_SAFE_INTEGER","root","rootName","end"];var Lx,Nx;Lx=Ix,Nx=319,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=["tableRow",Mx("0x6d")],this[Mx("0x1c")]=new Set}[Mx("0x71")](){const t=this[Mx("0x68")],e=t[Mx("0x40")][Mx("0x7c")].selection;if(!t[Mx("0x7d")].has("TableEditing"))return;const n=t[Mx("0x57")],o=t.plugins[Mx("0x24")](Mx("0x1e")),r=t.plugins[Mx("0x24")](Mx("0x6"));o[Mx("0x11")].registerElementLabel("table",(t=>Yo(n,Mx("0x4f"),t))),this[Mx("0xd")](),o[Mx("0x20")]("insertTable"),o.enableCommand("selectTableRow"),o[Mx("0x20")](Mx("0xe"));for(const n of[Mx("0x13"),Mx("0x80")]){const s=t[Mx("0x8")].get(n);o[Mx("0x20")](n,(n=>{t[Mx("0x40")][Mx("0x6b")]((t=>{n();const i=Mx("0x2a")===s[Mx("0x4a")],x=r.getSelectionAffectedTableCells(e),a=r[Mx("0x2c")](x),c=i?a[Mx("0x1")]-1:a.last+1,l=x[0][Mx("0x74")](Mx("0x42")),d=r[Mx("0x50")](l,{startRow:c,endRow:c}),u=Array[Mx("0x81")](d)[Mx("0x53")]((e=>t.createRangeOn(e[Mx("0x7f")])));o[Mx("0x4d")](u,Mx("0x41"))}))}))}for(const n of[Mx("0x4e"),"insertTableColumnRight"]){const s=t[Mx("0x8")][Mx("0x24")](n);o[Mx("0x20")](n,(n=>{t.model[Mx("0x6b")]((t=>{n();const i=Mx("0x6f")===s[Mx("0x4a")],x=r[Mx("0x36")](e),a=r.getColumnIndexes(x),c=i?a.first-1:a[Mx("0x30")]+1,l=x[0].findAncestor("table"),d=r[Mx("0x50")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array.from(d)[Mx("0x53")]((e=>t[Mx("0x32")](e[Mx("0x7f")])));o[Mx("0x4d")](u,Mx("0x6d"))}))}))}for(const n of[Mx("0x3b"),Mx("0x49")]){const s=n[Mx("0x0")](11),i=s[Mx("0x48")](),x=i[Mx("0x0")](0,3)+Mx("0x70"),a=Mx("0x42")+s,c=Mx("0x15")+s,l=Mx("0x2d")+s;o[Mx("0x20")](n,(()=>{t[Mx("0x40")][Mx("0x6b")]((t=>{const s=r[Mx("0x36")](e),d=s[0][Mx("0x74")](Mx("0x42"));let u;if(Mx("0x3b")==n){const t=r[Mx("0x2c")](s);u={startRow:t[Mx("0x1")],endRow:t[Mx("0x30")],includeAllSlots:!0}}else{const t=r[Mx("0x60")](s);u={startColumn:t.first,endColumn:t[Mx("0x30")],includeAllSlots:!0}}const g=r[Mx("0x50")](d,u),m=Array[Mx("0x81")](g)[Mx("0x53")]((({cell:t})=>t)),f=Ox(m[Mx("0x65")]((t=>t[Mx("0x35")](x)))),h=Ox(m[Mx("0x65")]((t=>!t[Mx("0x35")](x)))).map((e=>t[Mx("0x32")](e))),p=o[Mx("0x54")](h,a);if(p&&(Mx("0x41")==p[Mx("0x67")]||Mx("0x6d")==p.subType)){const e=this[Mx("0x7a")](p);for(const n of f){const o=t[Mx("0x32")](n),s=r[Mx("0x75")](n),a=n.getAttribute(x)-1,d=e[c],u=e[l];d<=s[i]&&s[i]+a<=u&&p[Mx("0x6e")](o)}}}))}))}function s(n){const o=Array[Mx("0x81")](e[Mx("0x28")]())[Mx("0x53")]((t=>i.LiveRange.fromRange(t)));t[Mx("0x40")][Mx("0x6b")]((e=>{const r=e[Mx("0x1a")];n=n[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")].rootName)),e[Mx("0x51")](n),t[Mx("0x8")][Mx("0x24")](Mx("0x3b"))[Mx("0x59")](),t.execute(Mx("0x3b"),{forceDefaultExecution:!0}),t[Mx("0x40")][Mx("0x78")]((()=>{t.model[Mx("0x78")](r,(t=>{const e=o[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")][Mx("0x45")]));e.length>0&&t[Mx("0x51")](e);for(const t of o)t[Mx("0x18")]()}))}))}))}function a(n){t.model[Mx("0x6b")]((o=>{const r=Array[Mx("0x81")](e[Mx("0x28")]())[Mx("0x53")]((t=>i.LiveRange[Mx("0x6c")](t))),s=[];for(const t of n)for(const e of t[Mx("0x16")]({shallow:!0}))s.push(e);for(const e of s)Mx("0x25")!=e[Mx("0x44")][Mx("0x45")]&&(o[Mx("0x51")](o[Mx("0x2b")](e,0)),t.commands[Mx("0x24")](Mx("0x49"))[Mx("0x59")](),t[Mx("0x34")](Mx("0x49"),{forceDefaultExecution:!0}));const x=r[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")][Mx("0x45")]));x[Mx("0x17")]>0&&o.setSelection(x);for(const t of r)t[Mx("0x18")]()}))}function c(t,e){return e[Mx("0x4b")]((e=>t[Mx("0x5a")]((t=>t[Mx("0x46")][Mx("0xc")](e[Mx("0x26")])||e.end[Mx("0xc")](t[Mx("0x26")])))))}function l(t,e){return t[Mx("0x5a")]((t=>e.some((e=>t[Mx("0x46")][Mx("0x3d")](e[Mx("0x26")])))))}t[Mx("0x3f")][Mx("0x1f")].on("addMarker:suggestion",((t,e,n)=>{if(!n.options[Mx("0x3c")])return;const o=e[Mx("0x47")];if(!o)return;const r=n[Mx("0x7")][Mx("0x52")](o);function s(t){return Array.isArray(t)?t:[t]}r&&Mx("0x10")===o[Mx("0x21")]&&(0,x.setHighlightHandling)(r,n[Mx("0xf")],((t,e,n)=>n.addClass(s(e[Mx("0x7b")]),t)),((t,e,n)=>n[Mx("0x19")](s(e[Mx("0x7b")]),t)))}),{priority:Mx("0x64")}),o[Mx("0x11")][Mx("0x1d")]((t=>{if("insertion"!=t[Mx("0x62")]&&Mx("0x7e")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(Mx("0x56"),"table")){if(Mx("0x5d")==t[Mx("0x62")]){const e=t[Mx("0x16")]()[Mx("0x65")]((t=>t.is(Mx("0x5"))))[Mx("0x53")]((t=>t.data));if(e[Mx("0x17")])return{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x3"),'"'+e.join(" ")+'"'))}}if(Mx("0x7e")==t[Mx("0x62")]){const e=t[Mx("0x16")]()[Mx("0x65")]((t=>t.is(Mx("0x5"))))[Mx("0x53")]((t=>t[Mx("0x3f")]));if(e[Mx("0x17")])return{type:"deletion",content:Yo(n,Mx("0x14"),Yo(n,Mx("0x3"),'"'+e.join(" ")+'"'))}}}})),o[Mx("0x11")].registerDescriptionCallback((t=>{if(Mx("0x41")==t[Mx("0x67")]){const e=t.getItems().filter((t=>t.is("$textProxy"))).map((t=>t[Mx("0x3f")])),o=this[Mx("0x7a")](t),r=o.maxRow-o[Mx("0x4c")]+1;if("insertion"==t[Mx("0x62")])return e.length?{type:"insertion",content:Yo(n,Mx("0xb"),Yo(n,Mx("0x3e"),[r,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x76"),r))};if(Mx("0x7e")==t[Mx("0x62")])return e[Mx("0x17")]?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x3e"),[r,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x7e"),content:Yo(n,Mx("0x14"),Yo(n,Mx("0x76"),r))}}if("tableColumn"==t[Mx("0x67")]){const e=t[Mx("0x16")]()[Mx("0x65")]((t=>t.is(Mx("0x5"))))[Mx("0x53")]((t=>t.data)),o=this[Mx("0x7a")](t),r=o.maxColumn-o[Mx("0x29")]+1;if(Mx("0x5d")==t[Mx("0x62")])return e[Mx("0x17")]?{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x6a"),[r,'"'+e.join(" ")+'"']))}:{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x5b"),r))};if(Mx("0x7e")==t[Mx("0x62")])return e[Mx("0x17")]?{type:Mx("0x7e"),content:Yo(n,Mx("0x14"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x7e"),content:Yo(n,Mx("0x14"),Yo(n,Mx("0x5b"),r))}}})),o[Mx("0x79")][Mx("0x55")](Mx("0x5d"),Mx("0x41"),Mx("0x58"),s),o._suggestionFactory.registerCustomCallback(Mx("0x7e"),Mx("0x41"),Mx("0x12"),s),o[Mx("0x79")][Mx("0x55")]("insertion","tableColumn",Mx("0x58"),a),o[Mx("0x79")][Mx("0x55")](Mx("0x7e"),"tableColumn","accept",a),o[Mx("0x79")][Mx("0x55")](Mx("0x5d"),"tableColumn",Mx("0x31"),c),o[Mx("0x79")].registerCustomCallback(Mx("0x7e"),"tableColumn",Mx("0x31"),c),o._suggestionFactory[Mx("0x55")]("insertion",Mx("0x41"),Mx("0x31"),l),o[Mx("0x79")][Mx("0x55")](Mx("0x7e"),Mx("0x41"),Mx("0x31"),l)}[Mx("0x2f")](){const t=this[Mx("0x68")],e=t.model[Mx("0x7c")].selection;return(n,o)=>{t[Mx("0x40")][Mx("0x6b")]((r=>{const{commandName:s,commandParams:x}=o;let a=n[0].end[Mx("0x27")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start.nodeAfter);const c=r.createRangeIn(a);if(Mx("0x25")==c.root[Mx("0x45")])return;const l=Array[Mx("0x81")](e[Mx("0x28")]()).map((t=>i.LiveRange.fromRange(t)));r[Mx("0x51")](c),t[Mx("0x8")][Mx("0x24")](s)[Mx("0x59")](),x[Mx("0x38")]({forceDefaultExecution:!0}),t.execute(s,...x);const d=l[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")][Mx("0x45")]));d[Mx("0x17")]>0&&r[Mx("0x51")](d);for(const t of l)t[Mx("0x18")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x68")][Mx("0x7d")][Mx("0x24")](Mx("0x6"));let n=Number[Mx("0x43")],o=Number.MIN_SAFE_INTEGER,r=Number[Mx("0x43")],s=Number[Mx("0x5c")];for(const i of t){if(Mx("0x25")==i[Mx("0x44")].rootName)continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x35")](Mx("0x2e"))?i.getAttribute(Mx("0x2e"))-1:0,c=i[Mx("0x35")](Mx("0x39"))?i[Mx("0x22")](Mx("0x39"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,s=x+c>s?x+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}_setupColumnsRowsFixing(){const t=this[Mx("0x68")],e=t.plugins[Mx("0x24")](Mx("0x1e")),n=t[Mx("0x7d")].get(Mx("0x6"));t[Mx("0x40")][Mx("0x7c")].on(Mx("0x73"),(()=>{const n=Array[Mx("0x81")](t[Mx("0x40")][Mx("0x7c")].differ[Mx("0x2")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e[Mx("0xa")](t);if("suggestion"!=n)continue;if(null!=o[Mx("0x66")])continue;const i=e[Mx("0x5e")](r);this[Mx("0x4")][Mx("0x37")](s)&&this[Mx("0x1c")][Mx("0x1b")](i)}}),{priority:Mx("0x5f")});const o=(t,e)=>{let o=!1;const r=e[Mx("0x32")](t),s=t[Mx("0x74")]("table"),i=n[Mx("0x75")](t);for(const e of this[Mx("0x1c")]){const n=e[Mx("0x67")],x=n.startsWith("tablePaste"),a=n[Mx("0x0")](x?10:5),c=a.toLowerCase(),l=c[Mx("0x0")](0,3)+Mx("0x70"),d="min"+a,u=Mx("0x2d")+a;if(!e[Mx("0x77")])continue;if(s!=e[Mx("0x61")]()[Mx("0x26")][Mx("0x74")](Mx("0x42")))continue;if(e[Mx("0x63")](r))continue;const g=t.hasAttribute(l)?t.getAttribute(l)-1:0,m=this[Mx("0x7a")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x6e")](r),o=!0)}return o};t[Mx("0x40")][Mx("0x7c")][Mx("0x23")]((e=>{let n=!1;for(const r of t[Mx("0x40")].document.differ.getChanges())if(Mx("0x33")==r[Mx("0x62")])if("tableRow"==r[Mx("0x21")])for(const t of r[Mx("0x3a")].nodeAfter.getChildren())n=n||o(t,e);else Mx("0x10")==r[Mx("0x21")]&&(n=n||o(r.position[Mx("0x69")],e));return n}))}[Mx("0x7a")](t){return this[Mx("0x72")](t[Mx("0x28")]()[Mx("0x53")]((t=>t.start[Mx("0x69")])))}}function Ox(t){return Array[Mx("0x81")](new Set(t)[Mx("0x9")]())}const Fx=["highest","tableCell","execute","enableCommand","fromRange","cell","registerDescriptionCallback","getSelectionAffectedTableCells","horizontally","commands","TableUtils","mergeTableCellUp","find","TrackChangesEditing","getRanges","mergeTableCellLeft","setSelection","trackChanges","size","createTableWalker","stop","from","isEnabled","requires","locale","registerCustomCallback","markBlockFormat","markMultiRangeBlockFormat","_areMergableCells","editor","*Merge cells*","element","return","containsRange","author","map","add","_areSelectedCellsMergable","selection","low","getFirstPosition","change","push","filter","findAncestor","*Split cell:* vertically","rootName","createRangeOn","accept","_acceptFormatSuggestionCallbackFactory","has","length","direction","mergeTableCellDown","splitTableCellHorizontally","plugins","get","root","model","afterInit","getAncestors","formatBlock","type","detach","value","format","commandName","_suggestionFactory","_tablePostFixingSubtypes","subType","document","set:isEnabled","refresh","mergeTableCells","mergeTableCellRight","isInContent","insertion","table","splitTableCellVertically"];var Px,Dx;Px=Fx,Dx=424,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x49")](){return[wx]}[Bx("0x1e")](){const t=this[Bx("0x0")],e=t[Bx("0x1d")][Bx("0x29")].selection,n=t[Bx("0x4a")];if(!t[Bx("0x1a")][Bx("0x15")]("TableEditing"))return;const o=t[Bx("0x1a")][Bx("0x1b")](Bx("0x3f")),r=t[Bx("0x1a")].get(Bx("0x3c")),s=t[Bx("0x1a")][Bx("0x1b")](wx);s[Bx("0x27")][Bx("0xd")](Bx("0x2c")),o.enableCommand("mergeTableCells",(()=>{const e=r[Bx("0x39")](t[Bx("0x1d")][Bx("0x29")][Bx("0x9")]);t.model[Bx("0xc")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:Bx("0x2c"),commandParams:[]},[],Bx("0x2c"))}))})),t[Bx("0x3b")][Bx("0x1b")]("mergeTableCells").on(Bx("0x34"),((e,n)=>{t.commands[Bx("0x1b")](Bx("0x43")).value&&(n.length>0&&n[n[Bx("0x16")]-1]&&n[n.length-1].forceDefaultExecution||o._isForcedDefaultExecutionBlock||this[Bx("0x8")]()||e[Bx("0x46")]())}),{priority:Bx("0x32")});for(const e of[Bx("0x3d"),Bx("0x2d"),Bx("0x18"),Bx("0x41")]){const n=t.commands[Bx("0x1b")](e);o[Bx("0x35")](e,(()=>{const e=t[Bx("0x1d")][Bx("0x29")][Bx("0x9")][Bx("0xb")]().getAncestors().find((t=>t.is(Bx("0x2"),Bx("0x33")))),r=n[Bx("0x23")];t[Bx("0x1d")][Bx("0xc")]((()=>{o[Bx("0x4d")]([e,r],{commandName:Bx("0x2c"),commandParams:[]},[],Bx("0x2c"))}))}))}for(const e of["splitTableCellVertically",Bx("0x19")]){const n=t[Bx("0x3b")][Bx("0x1b")](e);o.enableCommand(e,(()=>{const s=r.getSelectionAffectedTableCells(t[Bx("0x1d")][Bx("0x29")].selection)[0],i=s[Bx("0xf")](Bx("0x30")),{column:x,row:a}=r.getCellLocation(s);let c=[];if(Bx("0x3a")==n[Bx("0x17")]){const t=r[Bx("0x45")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x6")]((t=>t[Bx("0x37")]))}else{const t=r.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0x47")](t)[Bx("0x6")]((t=>t[Bx("0x37")]))}t[Bx("0x1d")][Bx("0xc")]((t=>{o[Bx("0x4c")](t[Bx("0x12")](s),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Bx("0x38")]((t=>{const{data:e}=t;if(e)return Bx("0x2c")==e[Bx("0x25")]?{type:Bx("0x24"),content:Yo(n,Bx("0x1"))}:void 0})),o._descriptionFactory[Bx("0x38")]((t=>{const{data:e}=t;if(e)return Bx("0x31")==e[Bx("0x25")]?{type:"format",content:Yo(n,Bx("0x10"))}:Bx("0x19")==e[Bx("0x25")]?{type:Bx("0x24"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=s[Bx("0x14")]();for(const t of[Bx("0x3d"),Bx("0x2d"),"mergeTableCellDown","mergeTableCellLeft"])o[Bx("0x26")][Bx("0x4b")](Bx("0x20"),t,Bx("0x13"),x);for(const t of[Bx("0x31"),"splitTableCellHorizontally"])o[Bx("0x26")][Bx("0x4b")](Bx("0x20"),t,Bx("0x13"),x);o._suggestionFactory[Bx("0x4b")](Bx("0x20"),Bx("0x2c"),Bx("0x13"),(n=>{t[Bx("0x1d")][Bx("0xc")]((o=>{const r=Array.from(e[Bx("0x40")]()).map((t=>i.LiveRange[Bx("0x36")](t)));o.setSelection(n),t.commands[Bx("0x1b")](Bx("0x2c"))[Bx("0x2b")](),t[Bx("0x34")](Bx("0x2c"),{forceDefaultExecution:!0});const s=r[Bx("0xe")]((t=>"$graveyard"!=t[Bx("0x1c")][Bx("0x11")]));s[Bx("0x16")]>0&&o[Bx("0x42")](s);for(const t of r)t[Bx("0x22")]()}))}));for(const e of[Bx("0x3d"),Bx("0x18"),Bx("0x41"),Bx("0x2d")]){const n=t.commands[Bx("0x1b")](e);n.on(Bx("0x2a"),((e,o,r)=>{if(r){const o=t[Bx("0x1d")][Bx("0x29")][Bx("0x9")][Bx("0xb")]()[Bx("0x1f")]()[Bx("0x3e")]((t=>t.is("element",Bx("0x33"))));this._areMergableCells(n[Bx("0x23")],o)||(e[Bx("0x3")]=!1,e[Bx("0x46")]())}}),{priority:Bx("0xa")})}}[Bx("0x8")](){const t=this[Bx("0x0")][Bx("0x3b")][Bx("0x1b")](Bx("0x2c")),e=this[Bx("0x0")][Bx("0x1a")][Bx("0x1b")](Bx("0x3c"));if(!t[Bx("0x48")])return!1;const n=e[Bx("0x39")](this.editor.model[Bx("0x29")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x4e")](t,e))return!1;return!0}[Bx("0x4e")](t,e){const n=this[Bx("0x0")][Bx("0x1a")].get("TrackChangesEditing"),o=this[Bx("0x0")][Bx("0x1d")][Bx("0x12")](t),r=this[Bx("0x0")].model[Bx("0x12")](e),s=new Set,i=new Set;for(const t of n.getSuggestions())if((Bx("0x2f")==t[Bx("0x21")]||"deletion"==t[Bx("0x21")]||"mergeTableCells"==t[Bx("0x28")])&&t[Bx("0x2e")])for(const e of t[Bx("0x40")]())e[Bx("0x4")](o,!0)&&s[Bx("0x7")](t[Bx("0x21")]+":"+t[Bx("0x5")].id),e[Bx("0x4")](r,!0)&&i.add(t.type+":"+t[Bx("0x5")].id);if(s[Bx("0x44")]!=i[Bx("0x44")])return!1;for(const t of s)if(!i[Bx("0x15")](t))return!1;return!0}}const Ux=["nodeBefore","FORMAT_HEADER_ROW","table","_suggestionFactory","createRange","model","stop","FORMAT_REGULAR_ROW","highest","getColumnIndexes","_descriptionFactory","index","document","createPositionBefore","removeClass","markerNameToElements","enableCommand","setAttribute","activeMarkers","_splitMarkerName","setTableRowHeader","registerCustomCallback","data-suggestion","TableUtils","removeMarker:suggestion","getRowIndexes","getAttribute","name","findAncestor","from","parent","markerRange","getChild","editing","formatBlock","ck-suggestion-marker--active","item","cell","TrackChangesEditing","isBefore","headingRows","showSuggestionHighlights","plugins","nodeAfter","data","forceValue","consumable","createPositionAfter","downcastDispatcher","removeAttribute","markBlockFormat","markerName","commands","headingColumns","consume","locale","mapper","setTableColumnHeader","ck-suggestion-marker-","selection","get","editor","commandName","change","afterInit","childCount","end","first","getSuggestion","getCellLocation","addMarker:suggestion","FORMAT_HEADER_COLUMN","getSelectionAffectedTableCells","commandParams","TableEditing","createTableWalker","last","writer","requires","start","value","accept","addClass","*Format:* %0","bindElementToMarker","has"];var Gx,Hx;Gx=Ux,Hx=399,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x17")](){return[wx]}[zx("0x9")](){const t=this[zx("0x6")];if(!t.plugins[zx("0x1e")](zx("0x13")))return;const e=t[zx("0x0")],n=t[zx("0x49")].get(zx("0x45")),o=t[zx("0x49")][zx("0x5")]("TableUtils"),r=t[zx("0x49")].get(wx);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n[zx("0x32")](s[zx("0x52")]),c=n[zx("0xd")](a);if(!c.data||zx("0x2")!=c[zx("0x4b")][zx("0x7")])return;if(s[zx("0x43")])return void r[zx("0x25")]();if(!i[zx("0x4d")][zx("0x55")](s[zx("0x3e")],r[zx("0x3a")]))return;const l=s[zx("0x3e")][zx("0x18")][zx("0x4a")],d=s[zx("0x3e")][zx("0xb")][zx("0x1f")],u=l.parent[zx("0x3d")],{column:g}=o[zx("0xe")](l),{column:m}=o[zx("0xe")](d);for(let r=g;r<=m;r++){const c=o[zx("0x14")](u,{column:r,includeAllSlots:!1});for(const o of c){const r=o[zx("0x44")],c=i[zx("0x1")].toViewElement(r);i[zx("0x16")][zx("0x1b")](zx("0x3")+x,c),e&&i[zx("0x16")][zx("0x30")](zx("0x35"),a,c),i[zx("0x1")][zx("0x1d")](c,s[zx("0x52")]),t&&(n[zx("0x31")].includes(s[zx("0x52")])?i[zx("0x16")][zx("0x1b")]("ck-suggestion-marker--active",c):i.writer[zx("0x2d")](zx("0x42"),c))}}}}n.enableCommand(zx("0x33"),((e,r)=>{const s=o[zx("0x11")](t[zx("0x24")][zx("0x2b")][zx("0x4")]),i=o[zx("0x38")](s),x=s[0][zx("0x3b")](zx("0x21")),a=x[zx("0x39")](zx("0x47"))||0,c=r&&null!==r.forceValue?r[zx("0x4c")]:!t[zx("0x53")].get(zx("0x33")).value,l=c?i[zx("0x15")]:i.first,d=x.getChild(l);let u;if(c){const e=x[zx("0x3f")](a);if(d[zx("0x2a")]<e.index)return;u=t.model[zx("0x23")](t[zx("0x24")][zx("0x2c")](e[zx("0x3f")](0)),t[zx("0x24")].createPositionAfter(d[zx("0x3f")](d[zx("0xa")]-1)))}else{const e=x[zx("0x3f")](a-1);if(!e)return;u=t[zx("0x24")][zx("0x23")](t[zx("0x24")][zx("0x2c")](d[zx("0x3f")](0)),t[zx("0x24")][zx("0x4e")](e[zx("0x3f")](e[zx("0xa")]-1)))}t.model[zx("0x8")]((()=>{n[zx("0x51")](u,{commandName:zx("0x33"),commandParams:[{forceValue:c}]},[],zx("0x33"))}))})),n[zx("0x2f")](zx("0x2"),((e,o)=>{const r=t.plugins[zx("0x5")](zx("0x36")),s=r[zx("0x11")](t[zx("0x24")].document[zx("0x4")]),i=r[zx("0x28")](s),x=s[0][zx("0x3b")](zx("0x21")),a=x[zx("0x39")](zx("0x54"))||0,c=o&&null!==o[zx("0x4c")]?o[zx("0x4c")]:!t[zx("0x53")][zx("0x5")](zx("0x2"))[zx("0x19")];let l;const d=x[zx("0x3f")](0),u=c?i[zx("0x15")]:i[zx("0xc")],g=r[zx("0x14")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x3c")](g)[0][zx("0x44")];if(c){const e=d[zx("0x3f")](a);if(m[zx("0x46")](e))return;l=t[zx("0x24")][zx("0x23")](t.model[zx("0x2c")](e),t[zx("0x24")].createPositionAfter(m))}else{const e=d[zx("0x3f")](a-1);if(!e)return;l=t[zx("0x24")][zx("0x23")](t[zx("0x24")][zx("0x2c")](m),t[zx("0x24")].createPositionAfter(e))}t[zx("0x24")][zx("0x8")]((()=>{n.markBlockFormat(l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],zx("0x2"))}))})),t[zx("0x40")][zx("0x4f")].on(zx("0xf"),s(),{priority:"highest"}),t.data[zx("0x4f")].on("addMarker:suggestion",((t,e,n)=>{n.options[zx("0x48")]&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x27")}),t[zx("0x40")][zx("0x4f")].on(zx("0x37"),((t,e,o)=>{const{type:r,id:s}=n[zx("0x32")](e.markerName),i=n.getSuggestion(s);if(!i[zx("0x4b")]||zx("0x2")!=i.data[zx("0x7")])return;const x=o[zx("0x1")][zx("0x2e")](e.markerName);if(x)for(const t of x)o.writer[zx("0x2d")](zx("0x3")+r,t),o[zx("0x16")].removeClass(zx("0x42"),t),o[zx("0x16")][zx("0x50")](zx("0x35"),t),o.mapper.unbindElementFromMarkerName(t,e.markerName)}),{priority:"highest"}),n[zx("0x29")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x33")==n[zx("0x7")]){const t=n[zx("0x12")][0].forceValue;return o(Yo(e,zx(t?"0x20":"0x26")))}if(zx("0x2")==n[zx("0x7")]){const t=n.commandParams[0].forceValue;return o(Yo(e,t?zx("0x10"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:"format",content:Yo(e,zx("0x1c"),t)}}}));const i=r._acceptFormatSuggestionCallbackFactory();n[zx("0x22")][zx("0x34")](zx("0x41"),"setTableRowHeader",zx("0x1a"),i),n[zx("0x22")][zx("0x34")](zx("0x41"),"setTableColumnHeader",zx("0x1a"),i)}}const Vx=["ck-suggestion-marker--active","_suggestionFactory","clipboardOutput","ck-suggestion-marker-insertion","author","removeColumns","push","tableCellHorizontalAlignment","schema","tableCellBackgroundColor","registerPostFixer","registerDescriptionCallback","hasSuggestion","deletionRanges","tableCellPadding","insertion","tableCellBorderWidth","tablePasteChainId","getContainedElement","table","_descriptionFactory","fill","newRange","_isForcedDefaultExecutionBlock","filter","_splitMarkerName","wrap","suggestion:formatBlock:tablePasteCell","stop","start","dataDowncast","markMultiRangeDeletion","tableCellBorderStyle","suggestionUnloaded","cell","TableClipboard","from","previousSibling","createTableWalker","columns","registerCustomCallback","getSuggestions","deletion","for","commands","paragraph","getAttributes","selection","getSelectionAffectedTableCells","afterInit","getRange","Users","fromEntries","suggestion-td","has","content","join","column","row","keys","reduce","rows","documentSelection","get","getChanges","tableCell","insert","set","getSuggestion","rowInsertionIndexes","map","next","markMultiRangeBlockFormat","activeMarkers","getAllAdjacentSuggestions","_replaceTableSlotCell","cells","end","_getCoordsForCells","showSuggestionHighlights","document","length","*Replace table cells*","createElement","listenTo","updateMarker","rowInsertionRanges","markerName","markerToHighlight","name","register","startsWith","createPositionBefore","accept","tablePasteRow","getColumns","remove","move","editingDowncast","last","isEmpty","getMarkers","getColumnIndexes","ck-suggestion-marker","tableCellSuggestion","some","conversion","getChildren","getRanges","type","markMultiRangeInsertion","insertRows","formatBlock","createRange","findAncestor","value","removeRows","differ","markers","plugins","columnInsertionIndexes","nextSibling","discard","getShiftedBy","requires","removeMarker","batch","element","getItems","model","insertionRanges","getChild","TrackChangesEditing","includes","attributes","isInContent","tablePaste","redo","entries","oldRange","getSuggestionCallback","_tablePostFixingSubtypes","isEqual","nodeAfter","insertContent","getRowIndexes","high","createRangeOn","markerAttributes","add","getChangedMarkers","editor","return","forceDefaultExecution","insertColumns","view","_createdBatches","options","position","tablePasteColumn","root","change","previous","createRangeIn","suggestionLoaded","subType","tablePasteCell"];var Kx,qx;Kx=Vx,qx=476,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x29"),"tableCellBorderColor",Xx("0x39"),Xx("0x20"),"tableCellVerticalAlignment",Xx("0x22"),Xx("0x27")],Jx=Object[Xx("0x4d")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x95")](){return[wx]}[Xx("0x4a")](){const t=this[Xx("0x9")];if(!t[Xx("0x90")][Xx("0x4f")](Xx("0x3c")))return;const n=t[Xx("0x90")][Xx("0x58")](Xx("0x9d")),o=t[Xx("0x90")].get("TableUtils"),r=t[Xx("0x90")][Xx("0x58")](wx),s=t[Xx("0x90")][Xx("0x58")]("TableClipboard");r[Xx("0xa6")][Xx("0x1f")](Xx("0x77"),Xx("0x11")),t[Xx("0x9a")][Xx("0x21")][Xx("0x73")](Xx("0x81"),{allowIn:Xx("0x5a"),allowContentOf:Xx("0x5a"),isLimit:!0}),t[Xx("0x83")].elementToElement({model:Xx("0x81"),view:Xx("0x4e")});let i=null;t[Xx("0x9a")].on(Xx("0x2"),((r,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Xx("0xb")]||n[Xx("0x30")]||this.editor[Xx("0x45")].get("trackChanges")[Xx("0x8c")]&&function(t,e,n,o,r){if(e&&!e.is(Xx("0x57")))return!1;const s=r.getTableIfOnlyTableInContent(t,n);if(!s||!Yx(s,void 0,o))return!1;const i=o[Xx("0x49")](n[Xx("0x69")][Xx("0x48")]);if(!i[Xx("0x6a")])return!1;const x=i[0][Xx("0x8b")](Xx("0x2c")),a=o[Xx("0x3")](i),c=o[Xx("0x7f")](i),l={startRow:a.first,endRow:a[Xx("0x7c")],startColumn:c.first,endColumn:c[Xx("0x7c")]};return 1==i[Xx("0x6a")]&&(l.endRow+=o.getRows(s)-1,l.endColumn+=o[Xx("0x78")](s)-1),Yx(x,l,o)}(a,c,t[Xx("0x9a")],o,s)&&(r.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x9a")].change((()=>{t[Xx("0x9a")][Xx("0x2")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:a,deletionRanges:c,cells:l}=i;r.length&&n[Xx("0x87")](r,"tablePasteRow",{tablePasteChainId:o}),s[Xx("0x6a")]&&n.markMultiRangeInsertion(s,Xx("0x11"),{tablePasteChainId:o}),a[Xx("0x6a")]&&n[Xx("0x87")](a,Xx("0xa1"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x38")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x61")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(d){const e=d[Xx("0x7e")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t.model[Xx("0x5")](o),i=e.find((t=>t[Xx("0x4b")]().isEqual(s)));i&&n.push([i[Xx("0x72")],r])}n.length&&d.setAttribute("markerAttributes",Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x4")]+10}),t[Xx("0x90")][Xx("0x58")](Xx("0x3c")).on(Xx("0x64"),((t,e)=>{const[n,o,,r]=e;if(!i)return;t[Xx("0x35")]();const s=n[Xx("0x3b")],x=o,a=Zx(s),c=Zx(x);t[Xx("0xa")]=s;let l=null,d=null;if(c||a)if(a&&!c){r.remove(s[Xx("0x9c")](0));for(const t of Array[Xx("0x3d")](x[Xx("0x84")]()))r[Xx("0x5b")](t,s,Xx("0x66"));const t=i[Xx("0x5e")][Xx("0x9e")](n[Xx("0x53")]),e=i.columnInsertionIndexes[Xx("0x9e")](n[Xx("0x52")]);t||e||(l=r.createRangeIn(s))}else c&&!a&&(d=r.createRangeIn(s));else{const t=r[Xx("0x6c")](Xx("0x81")),e=r[Xx("0x6c")]("tableCellSuggestion");r[Xx("0x33")](r[Xx("0x15")](s),e),r[Xx("0x5b")](t,s,0);for(const e of Array.from(x[Xx("0x84")]()))r[Xx("0x5b")](e,t,Xx("0x66"));l=r[Xx("0x5")](t),d=r[Xx("0x5")](e)}const u=Array[Xx("0x3d")](x[Xx("0x47")]())[Xx("0x31")]((([t])=>$x[Xx("0x9e")](t)));i[Xx("0x65")][Xx("0x1f")]({element:s,attributes:u.length?Object.fromEntries(u):null}),l&&i[Xx("0x9b")][Xx("0x1f")](l),d&&i[Xx("0x26")][Xx("0x1f")](d)}),{priority:Xx("0x4")}),o.on(Xx("0xc"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Xx("0x40")]||1;i[Xx("0x91")]=new Array(a)[Xx("0x2e")](x)[Xx("0x5f")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x3f")](r,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t[Xx("0x9a")][Xx("0x5")](e))}),{priority:"low"}),o.on(Xx("0x88"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Xx("0x56")]||1;i[Xx("0x5e")]=new Array(a)[Xx("0x2e")](x)[Xx("0x5f")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x3f")](r,{startRow:x,endRow:x+a-1}))i[Xx("0x6f")].push(t[Xx("0x9a")][Xx("0x5")](e))}),{priority:"low"}),n[Xx("0x2d")][Xx("0x24")]((e=>{if(e[Xx("0x17")]&&e.subType[Xx("0x74")](Xx("0xa1")))return e[Xx("0x14")]?{}:{type:"insertion",content:Yo(t.locale,Xx("0x6b"))}}));const x=()=>{};for(const t of[Xx("0xa1"),Xx("0x11"),Xx("0x77"),"tablePasteCell"])n[Xx("0x1a")][Xx("0x41")](Xx("0x28"),t,Xx("0x51"),x),n[Xx("0x1a")].registerCustomCallback(Xx("0x43"),t,"join",x);n[Xx("0x1a")][Xx("0x41")](Xx("0x89"),Xx("0x18"),Xx("0x93"),x),n[Xx("0x1a")][Xx("0x41")](Xx("0x89"),Xx("0x18"),"accept",((e,n,o)=>{const r=e[Xx("0x5f")]((t=>t[Xx("0x2b")]()))[Xx("0x31")]((t=>t)),s=new Map(r[Xx("0x5f")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x65")])e&&s[Xx("0x5c")](t,e);else if(o&&o[Xx("0x6")])for(const[e,n]of Object[Xx("0xa3")](o[Xx("0x6")])){const o=t[Xx("0x9a")][Xx("0x8f")][Xx("0x58")](e),r=o?o.getRange().getContainedElement():null;r&&s[Xx("0x5c")](r,n)}t[Xx("0x9a")][Xx("0x13")]((t=>{for(const[e,n]of s)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Xx("0x41")](e,Xx("0xa1"),o,((r,s,i)=>{t[Xx("0x9a")][Xx("0x13")]((t=>{const x=[];for(const t of r){const e=t[Xx("0x36")][Xx("0x1")];e.is(Xx("0x98"),Xx("0x81"))&&x.push(e)}n[Xx("0x1a")][Xx("0xa5")](e,null,o)(r,s,i);for(const e of x)"$graveyard"!=e[Xx("0x12")].rootName&&t.unwrap(e)}))}))};a("insertion","accept"),a(Xx("0x28"),Xx("0x93")),a(Xx("0x43"),Xx("0x76")),a(Xx("0x43"),Xx("0x93")),n[Xx("0x1a")][Xx("0x41")]("insertion",Xx("0x77"),Xx("0x93"),(t=>{const e=t[Xx("0x5f")]((t=>t[Xx("0x2b")]())),n=e[0][Xx("0x8b")](Xx("0x2c")),{minRow:s,maxRow:i}=r[Xx("0x67")](e);o[Xx("0x8d")](n,{at:s,rows:i-s+1})})),n[Xx("0x1a")][Xx("0x41")](Xx("0x28"),Xx("0x11"),Xx("0x93"),(t=>{const e=t[Xx("0x5f")]((t=>t[Xx("0x2b")]())),n=e[0].findAncestor("table"),{minColumn:s,maxColumn:i}=r._getCoordsForCells(e);o[Xx("0x1e")](n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[Xx("0x17")]||!e[Xx("0x17")].startsWith(Xx("0xa1")))return;const o=e[Xx("0x9f")][Xx("0x2a")],r=n[Xx("0x42")]()[Xx("0x31")]((t=>t[Xx("0xa0")]&&t[Xx("0x9f")]&&t.attributes.tablePasteChainId==o));r[Xx("0x6a")]&&e[Xx("0x63")]().length!=r.length&&r[Xx("0x55")](((t,e)=>(t[Xx("0x60")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x32")](t[Xx("0x70")]),r=[Xx("0x80"),Xx("0x1c")],s=n[Xx("0x62")][Xx("0x9e")](t.markerName);return s&&r[Xx("0x1f")](Xx("0x19")),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on(Xx("0x16"),c,{priority:Xx("0x4")}),n.on(Xx("0x3a"),c,{priority:Xx("0x4")}),t.model[Xx("0x69")][Xx("0x23")]((()=>{let e=!1;const o=Array[Xx("0x3d")](t.model[Xx("0x69")][Xx("0x8e")][Xx("0x8")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n[Xx("0x32")](r);if("suggestion"!=o||Xx("0x43")!=i||s[Xx("0xa4")])continue;if(!n[Xx("0x25")](x))continue;const a=n[Xx("0x5d")](x).getRanges(),c=t[Xx("0x90")].get(Xx("0x4c")).me;for(const t of n.getSuggestions())if(t[Xx("0xa0")]&&t[Xx("0x1d")]==c&&Xx("0x89")==t.type&&"tablePasteCell"==t.subType&&t[Xx("0x85")]().every((t=>a[Xx("0x82")]((e=>e.containsRange(t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Xx("0xa0")]&&(n[Xx("0x93")](),e=!0)}return e})),t.model[Xx("0x69")][Xx("0x23")]((e=>{const o=t[Xx("0x45")][Xx("0x58")](Xx("0xa2"));if(!o||!o[Xx("0xe")][Xx("0x4f")](e[Xx("0x97")]))return!1;let r=!1;const s=t[Xx("0x90")].get(Xx("0x4c")).me,i=t[Xx("0x9a")][Xx("0x69")][Xx("0x8e")][Xx("0x59")](),x=Array.from(t[Xx("0x9a")][Xx("0x69")][Xx("0x8e")].getChangedMarkers()).filter((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n[Xx("0x32")](t);return"suggestion"==o&&Xx("0xa1")==r&&i==s.id&&!e[Xx("0xa4")]}));for(const t of i){if(Xx("0x5b")!=t[Xx("0x86")]||Xx("0x81")!=t.name||1!=t[Xx("0x6a")])continue;const n=e[Xx("0x8a")](t[Xx("0x10")],t[Xx("0x10")][Xx("0x94")](1));if(!x.find((({data:t})=>t[Xx("0x2f")][Xx("0x0")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Xx("0x2f")])){e[Xx("0x6e")](t,{range:n}),r=!0;break}}return r})),t[Xx("0x9a")][Xx("0x69")][Xx("0x23")]((e=>{let o=!1;const r=t.plugins[Xx("0x58")](Xx("0x4c")).me,s=n[Xx("0x42")]()[Xx("0x31")]((t=>t[Xx("0xa0")]&&t.author==r)),i=new Set,x=new Set;for(const t of s)if("tablePaste"==t[Xx("0x17")])for(const e of t.getMarkers()){const n=e[Xx("0x4b")]()[Xx("0x2b")]();if(n)if(n.is(Xx("0x98"),"tableCellSuggestion")&&Zx(n)){t[Xx("0x96")](e[Xx("0x72")]),i.add(n),o=!0;const r=n[Xx("0x92")],s=n[Xx("0x3e")],a=r&&r.is(Xx("0x98"),Xx("0x81")),c=s&&s.is(Xx("0x98"),Xx("0x81"));a&&!i[Xx("0x4f")](r)&&x[Xx("0x7")](r),c&&!i[Xx("0x4f")](s)&&x[Xx("0x7")](s)}else n.is(Xx("0x98"),"paragraph")&&n[Xx("0x7d")]&&(t[Xx("0x96")](e.name),o=!0)}else if("tablePasteCell"==t[Xx("0x17")]){if(!t[Xx("0x9f")]||!t[Xx("0x9f")][Xx("0x2a")])continue;const e=t[Xx("0x9f")][Xx("0x6")];if(e&&Object[Xx("0x54")](e)[Xx("0x6a")])continue;const n=t.attributes[Xx("0x2a")];let r=!0,i=!0;for(const e of s)if(e[Xx("0x17")]&&e.subType[Xx("0x74")]("tablePaste")){if(!e[Xx("0x9f")][Xx("0x2a")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x9f")][Xx("0x2a")]==n){r=!1;break}}i&&r&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x79")](t);for(const t of x)e.unwrap(t);return o})),t.conversion[Xx("0x44")](Xx("0x7b")).markerToHighlight({model:Xx("0x34"),view:(t,e)=>l(t),converterPriority:Xx("0x4")}),t[Xx("0x83")].for(Xx("0x37"))[Xx("0x71")]({model:Xx("0x34"),view:(t,e)=>e[Xx("0xf")][Xx("0x68")]?l(t,!1):null,converterPriority:Xx("0x4")});const d=t.editing[Xx("0xd")];this[Xx("0x6d")](d.document,Xx("0x1b"),((t,e)=>{const n=[];for(const t of d[Xx("0x15")](e[Xx("0x50")])[Xx("0x99")]())t.is(Xx("0x98"),"suggestion-td")&&n[Xx("0x1f")](t);d.change((t=>{for(const e of n)t[Xx("0x7a")](t[Xx("0x15")](e),t[Xx("0x75")](e)),t[Xx("0x79")](e)}))}))}}function Zx(t){if(t[Xx("0x7d")])return!0;const e=t[Xx("0x9c")](0);return e.is(Xx("0x98"),Xx("0x46"))&&e[Xx("0x7d")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Xx("0x3f")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const ta=["_descriptionFactory","formatGroupId","document","tableWidth","subType","resizeColumnWidths","*Format:* resize table","bind","commandParams","author","table","editor","enableCommand","resizeTable","registerDescriptionCallback","TrackChangesEditing","model","discard","plugins","accept","handleResizeTableWidthCommand","getTableColumnsWidths","getColumnGroupElement","selection","get","locale","resizeTableWidth","_suggestionFactory","has","data","registerCustomCallback","handleSuggestionDescription","getSuggestionCallback","getAttribute","columnWidths","format","formatBlock","markBlockFormat"];var ea,na;ea=ta,na=281,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class ra extends t.Plugin{afterInit(){if(!this[oa("0x22")][oa("0x3")][oa("0xd")]("TableColumnResizeEditing"))return;const t=this[oa("0x22")][oa("0x3")][oa("0x9")](oa("0x0"));t[oa("0x23")]("resizeTableWidth",this[oa("0x5")][oa("0x1e")](this)),t[oa("0x23")](oa("0x1c"),this[oa("0x5")].bind(this)),t[oa("0xc")][oa("0xf")](oa("0x15"),oa("0x24"),oa("0x4"),t[oa("0xc")][oa("0x11")]("formatBlock",null,oa("0x2"))),t._suggestionFactory.registerCustomCallback("formatBlock",oa("0x24"),oa("0x2"),t[oa("0xc")][oa("0x11")](oa("0x15"),null,oa("0x4"))),t[oa("0x17")][oa("0x25")](this[oa("0x10")][oa("0x1e")](this))}[oa("0x5")](t,e){const n=this[oa("0x22")].plugins[oa("0x9")](oa("0x0")),o=this[oa("0x22")][oa("0x3")][oa("0x9")]("TableColumnResizeEditing"),r=e[oa("0x21")]||this[oa("0x22")][oa("0x1")][oa("0x19")][oa("0x8")].getSelectedElement();this.editor[oa("0x1")].change((()=>{const s=o[oa("0x7")](r);let i=s?o[oa("0x6")](s):null,x=r[oa("0x12")](oa("0x1a"))||null;const a=e.tableWidth||x,c=e[oa("0x13")]||i,l=this[oa("0x22")][oa("0x3")][oa("0x9")]("Users").me;for(const t of n.getSuggestions()){const e=t.getContainedElement();if(oa("0x24")===t[oa("0x1b")]&&e===r){t[oa("0x20")]!==l&&t[oa("0x2")]();const e=t[oa("0xe")][oa("0x1f")];x=e[0][oa("0x1a")],i=e[0][oa("0x13")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[oa("0x16")](r,{commandName:oa("0xb"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x24")},[],oa("0x24"))}))}[oa("0x10")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x18")]){const t=oa("0x1d");return{type:oa("0x14"),content:Yo(this.editor[oa("0xa")],t)}}}}const sa=["Template","get","plugins","insertTemplate","afterInit","TrackChangesEditing"];var ia,xa;ia=sa,xa=114,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return sa[t-=0]};class ca extends t.Plugin{[aa("0x4")](){const t=this.editor;t[aa("0x2")].has(aa("0x0"))&&t[aa("0x2")][aa("0x1")](aa("0x5")).enableCommand(aa("0x3"))}}const la=["TrackChangesEditing","afterInit","commands","get","tableOfContents","plugins","ELEMENT_TABLE_OF_CONTENTS","_descriptionFactory","insertTableOfContents","locale"];var da,ua;da=la,ua=493,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x8")](){const t=this.editor;if(!t[ga("0x9")][ga("0x0")](ga("0x5")))return;t[ga("0x2")].get("TrackChangesEditing").enableCommand("insertTableOfContents");const e=t[ga("0x2")][ga("0x0")](ga("0x7")),n=t[ga("0x6")];e[ga("0x4")].registerElementLabel(ga("0x1"),(t=>Yo(n,ga("0x3"),t)))}}const fa=["title-content","getNearestSelectionRange","start","model","updateMarker","document","registerPostFixer","Title","has","differ","get","afterInit","_splitMarkerName","getChangedMarkers","locale","schema","editor","createRange","element","suggestion","isCollapsed","forward","ELEMENT_TITLE","end","newRange"];var ha,pa;ha=fa,pa=236,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x0")](){const t=this[ba("0x5")];if(!t.plugins[ba("0x16")](ba("0x15")))return;const e=t.plugins[ba("0x18")]("TrackChangesEditing");e._descriptionFactory.registerElementLabel(ba("0xe"),(()=>Yo(t[ba("0x3")],ba("0xb")))),t[ba("0x11")][ba("0x13")][ba("0x14")]((n=>{let o=!1;const r=Array.from(t[ba("0x11")][ba("0x13")][ba("0x17")][ba("0x2")]());for(const{name:s,data:i}of r){const{group:r}=e[ba("0x1")](s);if(ba("0x8")!==r||!i[ba("0xd")])continue;const x=i[ba("0xd")],a=x[ba("0xc")].nodeBefore;if(!a||!a.is(ba("0x7"),ba("0xe")))continue;if(!x[ba("0x10")].isTouching(x[ba("0xc")]))continue;const c=t[ba("0x11")][ba("0x4")][ba("0xf")](x.end,ba("0xa"));if(c&&c[ba("0x9")]){const t=n[ba("0x6")](x[ba("0x10")],c[ba("0x10")]);t.isEqual(x)||(n[ba("0x12")](s,{range:t}),o=!0)}o||(n.removeMarker(s),o=!0)}return o}))}}const _a=["editor","has","redo","plugins","TrackChangesEditing","undo","get","enableCommand"];var Ta,Ca;Ta=_a,Ca=145,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x7")],e=t[ya("0x2")][ya("0x5")](ya("0x3"));t[ya("0x2")][ya("0x0")]("UndoEditing")&&(e[ya("0x6")](ya("0x4")),e[ya("0x6")](ya("0x1")))}}const Aa=["editor","get","toggleTableCaption","TrackChangesEditing","TableCaptionEditing","requires","plugins","enableCommand"];var va,Ra;va=Aa,Ra=458,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x3")](){return[wx]}afterInit(){const t=this[Sa("0x6")];t[Sa("0x4")].has(Sa("0x2"))&&t[Sa("0x4")][Sa("0x7")](Sa("0x1"))[Sa("0x5")](Sa("0x0"))}}const La=["config","DocumentListUtils","listStart","TrackChangesEditing","styles","handleListReversedCommand","_getSuggestionBlocks","isFirstBlockOfListItem","getSelectedBlocks","has","model","filter","_descriptionFactory","listStyle","*Format:* set start index to %0","get","handleListStartCommand","afterInit","*Format:* set order to regular","handleDescriptions","push","list.properties","handleListStyleCommand","selection","ELEMENT_","getListTypeFromListStyleType","from","reversed","document","markMultiRangeBlockFormat","startIndex","getAttribute","listReversed","enableCommand","_LIST_","registerDescriptionCallback","commandName","listType","format","editor","*Format:* set order to reversed","DocumentListPropertiesEditing","_getSuggestionBlocksForListStyle","isListItemBlock","expandListBlocksToCompleteList","numbered","commandParams","locale","toUpperCase","type","change","bind","plugins","DocumentListPropertiesUtils","replace","length","_getTranslationKeyForListStyle"];var Na,Ma;Na=La,Ma=257,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x2d")](){if(!this[wa("0xa")][wa("0x17")][wa("0x25")](wa("0xc")))return;const t=this[wa("0xa")][wa("0x1c")][wa("0x2b")](wa("0x31")),e=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f"));t[wa("0x20")]&&e.enableCommand(wa("0x29"),this.handleListStyleCommand[wa("0x16")](this)),t[wa("0x37")]&&e.enableCommand(wa("0x3"),this[wa("0x21")][wa("0x16")](this)),t[wa("0x1")]&&e[wa("0x4")](wa("0x1e"),this.handleListStartCommand[wa("0x16")](this)),e[wa("0x28")][wa("0x6")](this.handleDescriptions[wa("0x16")](this))}[wa("0x32")](t,e={}){const n=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f")),o=this._getSuggestionBlocksForListStyle();this[wa("0xa")][wa("0x26")][wa("0x15")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:wa("0x29"),commandParams:[{type:e[wa("0x14")]}],formatGroupId:wa("0x29")})}))}[wa("0x21")](t,e={}){const n=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f")),o=this[wa("0xa")].plugins[wa("0x2b")](wa("0x1d")),r=this[wa("0x22")]((t=>o[wa("0xe")](t)&&wa("0x10")===t[wa("0x2")](wa("0x8"))));null!==r&&this[wa("0xa")][wa("0x26")].change((()=>{n[wa("0x0")](r,{commandName:wa("0x3"),commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}[wa("0x2c")](t,e={}){const n=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f")),o=this[wa("0xa")].plugins[wa("0x2b")](wa("0x1d")),r=this._getSuggestionBlocks((t=>o[wa("0xe")](t)&&wa("0x10")===t[wa("0x2")](wa("0x8"))));null!==r&&this[wa("0xa")][wa("0x26")].change((()=>{n[wa("0x0")](r,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wa("0x2f")](t){const e=this[wa("0xa")][wa("0x12")],{data:n}=t;if(!n)return;let o,r;switch(n[wa("0x7")]){case wa("0x29"):o="*Change to:* %0",r={type:"format",content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0][wa("0x14")])))};break;case wa("0x3"):o=n.commandParams[0].reversed?wa("0xb"):wa("0x2e"),r={type:wa("0x9"),content:Yo(e,o)};break;case"listStart":o=wa("0x2a"),r={type:wa("0x9"),content:Yo(e,o,n[wa("0x11")][0][wa("0x1")])}}return r}[wa("0xd")](){const t=this.editor[wa("0x17")][wa("0x2b")](wa("0x1d"));let e=Array[wa("0x36")](this[wa("0xa")][wa("0x26")][wa("0x38")][wa("0x33")].getSelectedBlocks());return e[wa("0x30")](...t[wa("0xf")](e)),e=[...new Set(e)],e}[wa("0x22")](t){const e=this.editor[wa("0x17")].get(wa("0x1d"));let n=Array.from(this[wa("0xa")][wa("0x26")][wa("0x38")][wa("0x33")][wa("0x24")]())[wa("0x27")](t);if(!n[wa("0x1a")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[wa("0x23")](t)&&o[wa("0x30")](t);return o}[wa("0x1b")](t){return wa("0x34")+this[wa("0xa")].plugins[wa("0x2b")](wa("0x18"))[wa("0x35")](t)[wa("0x13")]()+wa("0x5")+t[wa("0x13")]()[wa("0x19")](/-/g,"_")}}const Fa=["TableCellPropertiesEditing","plugins","enableCommand","getSuggestions","afterInit","tableCellVerticalAlignment","tableHeight","_descriptionFactory","handleDiscardAction","get","pluginName","getSuggestionCallback","tableBorderWidth","tableCellBorderWidth","registerCustomCallback","findAncestor","_getSuggestion","change","tableCellHeight","*Format:* change table cell properties","model","tableCellHorizontalAlignment","data","markBlockFormat","tableProperties","tableCellWidth","format","subType","discard","accept","TrackChangesEditing","getAttribute","editor","tableCellPadding","handleSuggestionDescription","tableCellProperties","_handlePropertyChange","_suggestionFactory","locale","formatBlock","document","selection","tableBorderStyle","table","join","*Format:* change table properties","getFirstPosition","getSelectionAffectedTableCells","TablePropertiesEditing","has","nodeAfter","TrackChangesTableProperties","tableWidth","batch","tableCellBorderColor"];var Pa,Da;Pa=Fa,Da=218,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x1a")]=["tableBorderColor",Ba("0x2c"),Ba("0xe"),"tableAlignment",Ba("0x36"),Ba("0x8"),"tableBackgroundColor"],this[Ba("0x25")]=[Ba("0x1"),"tableCellBorderStyle",Ba("0xf"),Ba("0x23"),Ba("0x1b"),Ba("0x14"),"tableCellBackgroundColor",Ba("0x17"),Ba("0x7")]}static get[Ba("0xc")](){return Ba("0x35")}[Ba("0x6")](){const t=this[Ba("0x22")][Ba("0x3")][Ba("0xb")]("TrackChangesEditing");if(this.editor[Ba("0x3")].has(Ba("0x32"))){for(const e of this[Ba("0x1a")])t[Ba("0x4")](e,((t,n)=>{const o=this.editor[Ba("0x16")][Ba("0x2a")][Ba("0x2b")][Ba("0x30")]()[Ba("0x11")](Ba("0x2d"));this[Ba("0x26")](e,[o],this[Ba("0x1a")],Ba("0x1a"),t,n)}));t[Ba("0x27")].registerCustomCallback(Ba("0x29"),Ba("0x1a"),Ba("0x1f"),t._suggestionFactory[Ba("0xd")](Ba("0x29"),null,Ba("0x1e"))),t[Ba("0x27")][Ba("0x10")]("formatBlock",Ba("0x1a"),Ba("0x1e"),((t,e)=>this[Ba("0xa")](this.tableProperties,t,e))),t[Ba("0x27")][Ba("0x10")](Ba("0x29"),"tableProperties",Ba("0x2e"),(()=>!1))}if(this[Ba("0x22")][Ba("0x3")][Ba("0x33")](Ba("0x2"))){for(const e of this[Ba("0x25")])t[Ba("0x4")](e,((t,n)=>{const o=this[Ba("0x22")][Ba("0x3")][Ba("0xb")]("TableUtils")[Ba("0x31")](this[Ba("0x22")][Ba("0x16")][Ba("0x2a")][Ba("0x2b")]);this[Ba("0x26")](e,o,this[Ba("0x25")],Ba("0x25"),t,n)}));t[Ba("0x27")][Ba("0x10")](Ba("0x29"),Ba("0x25"),Ba("0x1f"),t[Ba("0x27")][Ba("0xd")](Ba("0x29"),null,"discard")),t[Ba("0x27")][Ba("0x10")](Ba("0x29"),Ba("0x25"),Ba("0x1e"),((t,e)=>this[Ba("0xa")](this[Ba("0x25")],t,e))),t[Ba("0x27")][Ba("0x10")](Ba("0x29"),"tableCellProperties",Ba("0x2e"),(()=>!1))}t[Ba("0x9")].registerDescriptionCallback((t=>this[Ba("0x24")](t)))}[Ba("0x26")](t,e,n,o,r,s){const i=this[Ba("0x22")].plugins[Ba("0xb")](Ba("0x20"));this[Ba("0x22")][Ba("0x16")].enqueueChange(s[Ba("0x0")],(()=>{for(const t of e)if(this._getSuggestion(t,o))r(s);else{const e={};for(const o of n){const n=t[Ba("0x21")](o);void 0!==n&&(e[o]=n)}r(s),i[Ba("0x19")](t,{commandParams:[e]},[],o)}}))}[Ba("0xa")](t,e,n){const o=e[0].start[Ba("0x34")],r=n.commandParams[0];this[Ba("0x22")][Ba("0x16")][Ba("0x13")]((e=>{for(const n of t)void 0!==r[n]?e.setAttribute(n,r[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x18")])switch(t[Ba("0x1d")]){case Ba("0x1a"):return{type:Ba("0x1c"),content:Yo(this[Ba("0x22")][Ba("0x28")],Ba("0x2f"))};case Ba("0x25"):return{type:"format",content:Yo(this.editor[Ba("0x28")],Ba("0x15"))}}}[Ba("0x12")](t,e){const n=this[Ba("0x22")].plugins.get(Ba("0x20"));for(const o of n[Ba("0x5")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Ua=["registerCustomCallback","showSuggestionHighlights","fetchCommentThread","containsRangeInObject","_joinWithAdjacentSuggestions","reconvertMarker","getItems","sort","default","listenTo","_handleNewSuggestionMarker","open","attributes","markBlockFormat","_isForcedDefaultExecutionBlock","deletion:accept","elementStart","for","hasComments","suggestion:","every","markerToHighlight","trackChanges","value","formatBlock:discard","getMultiRangeId","multipleBlocks","upcast","item","writer","_customCallbacks","getFirstRange","track-changes-command-not-found","element","createSelection","getCommentThread","getChangedMarkers","external:","getIntersection","options","markerName","$graveyard","markMultiRangeDeletion","insert","discard","getDifference","formatInline","discardAllSuggestions","requires","move","_mergeNestedSuggestions","addCommentThread","toViewElement","insertion","containsItem","formatInline:accept","commentThread","_findSuggestions","next","previous","suggestion-type","multi","getRange","acceptSuggestion","_cutOutSuggestionMarker","set","hasCommentThread","createRange","PENDING_ACTION_SUGGESTION","@external","_defaultCallbacks","getShiftedBy","editingDowncast","createPositionBefore","isEqual","size","removeMarker","plugins","fire","error-saving-suggestion-data-suggestion-discarded","map","stopListening","hasSuggestion","splitPosition","markInlineFormat","suggestionChanged","mapper","chain","low","addComment","backward","markerReady","consumable","change","root","enqueueChange","_createSuggestion","batch","isMultiRange","formatInline:","getMarkers","isBefore","addHighlight","_commentsRepository","rootName","addRange","_enabledCommands","isTouching","type","isBlock","setSelection","trackChangesCommand","acceptAllSuggestions","dataReady","deletion:discard","_getAuthorFromId","getSuggestionCallback","nodeAfter","unbind","then","stop","deletion:chain","createRangeIn","_model","trackChanges.mergeNestedSuggestions","insertion:accept","suggestionLoaded","_getSuggestionData","Users","isRemovable","newRange","registerPostFixer","accept","removed","formatBlock:","deletion:join","creator","isExternal","parent","_trackFormatChanges","isAtStart","range","markMultiRangeBlockFormat","PendingActions","containsRange","before","head","insertion:join","unbindElementFromMarkerName","removeAttribute","_updateSuggestionData","removeMarkers","_saved","_getExternalAuthor","config","track-changes-suggestion-data-mismatch","getUser","updateMarker","start","insertion:chain","isAtEnd","addMarkerName","getLastMatchingPosition","enableCommand","subType","includes","howMany","_suggestionState","get","lowest","ck-suggestion-marker-formatBlock","isCollapsed","getAttribute","_setSuggestionData","isUndo","trackChanges.trackFormatChanges","consume","getSuggestion","track-changes-adapter-already-set","insertion:discard","_registerDefaultCallbacks","define","markerNameToElements","discardSuggestion","delete","add","ck-suggestion-marker-","createdAt","ck-suggestion-marker","TrackChangesEditing","isAfter","insertContent","buildSuggestion","differ","formatInline:chain","getNearestSelectionRange","_onDiscard","data-suggestion","editing","addSuggestion","_adapter","group","isNextTo","isLocal","clear","elementToElement","removeClass","commands","ready","end","some","markDeletion","markers","formatInline:join","never","_refreshSuggestionsChain","execute","deletion","suggestion","substr","acceptSelectedSuggestions","elementEnd","collaboration.channelId","formatBlock:join","formatInline:discard","getRanges","adapter","model","skipNestingCheck","_addThreadToSuggestion","remove","nodeBefore","_joinSuggestions","init","enableReadOnlyMode","isOwn","authorName","getChanges","selection","isIntersectingWithRange","getSuggestions","_setSuggestionRange","oldRange","markInsertion","split","join","has","discardSelectedSuggestions","createPositionAt","splice","activeMarkers","position","isObject","_rangeIsInLocalUserInsertion","formatBlock","ck-suggestion-marker--active","document","commandName","catch","bindElementToMarker","_addSuggestionMarker","addClass","formatBlock:chain","dataDowncast","_suggestionFactory","schema","high","containsPosition","deletion:","documentSelection","data","refresh","createPositionAfter","_splitMarkerName","track-changes-adapter-missing-getsuggestion","CommentsRepository","suggestionUnloaded","isLimit","accepted","removeMarker:suggestion:formatBlock","detach","filter","isInContent","getFirstMarker","_editor","formatGroupId","values","$marker","_checkSuggestionCorrectness","length","getWalker","author","authoredAt","_removeSuggestion","editor","_descriptionFactory","notReady","addSuggestionData","conversion","_suggestions","marker-count","always","forceDefaultExecution","resolve","name","forward","containerElement","track-changes-user-not-found","update:suggestion","after","createElement","clone","push","from","getCustomProperty","locale","fromRange"];var Ga,Ha;Ga=Ua,Ha=257,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x6c")](){return["CommentsRepository",s.Users,t.PendingActions,cr,Cr,Rr,wr,Br,Wr,Jr,es,Oa,xs,us,bs,ys,Ls,Ps,Gs,Ks,Qs,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,wx,jx,Wx,Ia,Qx,ra,ma,ja,ca,Ea,ka]}static get pluginName(){return za("0xf9")}constructor(t){function e(t){return t[za("0x8c")]((t=>String.fromCharCode(t)))[za("0x131")]("")}super(t),this[za("0x7d")](za("0x136"),[]),this.on("change:activeMarkers",((e,n,o,r)=>{this._model[za("0x99")]((()=>{for(const e of[...r,...o])this[za("0xb7")].markers[za("0x132")](e)&&t[za("0x102")][za("0x41")](e)}))})),this[za("0x26")]=new rr(this[za("0x25")][za("0x11f")][za("0x8")],this[za("0x25")][za("0x3a")]),this[za("0x104")]=null,this[za("0x7")]=new Va(this.editor),this[za("0x2a")]=new Map,this[za("0xa3")]=t[za("0x89")].get(za("0x12")),this[za("0xa6")]=new Set,this[za("0xb7")]=this.editor.model,this[za("0xe3")]=new WeakMap,this[za("0x4a")]=!1,t.config[za("0xf1")](za("0xeb"),za("0x44")),this[za("0xc7")]=t[za("0xd6")][za("0xe4")](za("0xeb")),t[za("0xd6")][za("0xf1")](za("0xb8"),!0),this[za("0x6e")]=t.config[za("0xe4")]("trackChanges.mergeNestedSuggestions"),this[za("0xab")]=new u(t,this[za("0xa6")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,52,49,54])}[za("0x125")](){const t=this[za("0x25")];t[za("0x29")][za("0x4d")](za("0x84"))[za("0x51")]({model:za("0x116"),view:t=>{const{id:e,type:n}=this[za("0x10")](t.markerName),o=[za("0xf8"),za("0xf6")+n];let r=3e3;return this[za("0x136")][za("0xe1")](t.markerName)&&(o[za("0x37")](za("0x13b")),r=3010),"deletion"==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t[za("0x29")].for(za("0x6"))[za("0xf5")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[za("0x63")][za("0x3d")])return;const r=n[za("0x58")];if(!r)return;const s=o[za("0x92")].toViewElement(r);t[za("0x11f")][za("0x8")].isObject(r)&&s&&!s[za("0x39")]("widget")&&s.is(za("0x31"))&&(0,x.toWidget)(s,o[za("0x59")])}),{priority:za("0x9")})})),t.conversion.for("dataDowncast").markerToHighlight({model:za("0x116"),view:(t,e)=>{if(!e.options[za("0x3d")])return null;const{type:n}=this._splitMarkerName(t[za("0x64")]);return{classes:[za("0xf8"),za("0xf6")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o.item)return;if(o[za("0x58")].is("selection"))return void r[za("0x98")][za("0xec")](o.item,n[za("0x2f")]);const s=r[za("0x92")][za("0x70")](o[za("0x58")]);if(!o[za("0x58")].is(za("0x5d"))||!t[za("0x11f")][za("0x8")][za("0xa9")](o[za("0x58")])||s[za("0x39")](za("0xa2")))return;const{id:i}=this._splitMarkerName(o.markerName);r.writer.addClass([za("0xf8"),za("0xe6")],s),r.writer.setAttribute(za("0x101"),i,s),r[za("0x92")][za("0x2")](s,o[za("0x64")]),e&&(this[za("0x136")][za("0xe1")](o[za("0x64")])?r.writer[za("0x4")](za("0x13b"),s):r.writer[za("0x10a")](za("0x13b"),s));for(const e of t.model[za("0xb6")](o[za("0x58")])[za("0x42")]())r.consumable.consume(e,n[za("0x2f")]);r[za("0x98")].consume(o[za("0x58")],n.name)};t[za("0x29")][za("0x4d")](za("0x6")).add((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o.options[za("0x3d")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[za("0x29")].for("dataDowncast").markerToData({model:za("0x116"),view:(t,e)=>e[za("0x63")][za("0x3d")]?null:{group:"suggestion",name:t[za("0x117")](11)}}),t[za("0x29")][za("0x4d")](za("0x57"))[za("0x109")]({view:{name:za("0x116"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x4f")+t[za("0xe8")](za("0x78"))+":"+t[za("0xe8")]("id");return t[za("0xe8")](za("0x2b"))&&(n+=":"+t.getAttribute("marker-count")),e[za("0x35")](za("0x1e"),{"data-name":n})}}),t[za("0x29")][za("0x4d")](za("0x57")).dataToMarker({view:za("0x116")}),t[za("0x29")][za("0x4d")](za("0x84"))[za("0xf5")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:za("0x9")})})),t.conversion[za("0x4d")](za("0x84")).add((t=>{t.on(za("0x16"),((t,e,n)=>{const o=n.mapper[za("0xf2")](e[za("0x64")]);if(o)for(const t of o)t.getCustomProperty("addHighlight")||(n[za("0x59")][za("0x10a")]([za("0xf8"),za("0xe6"),"ck-suggestion-marker--active"],t),n[za("0x59")][za("0xd1")](za("0x101"),t),n[za("0x92")][za("0xd0")](t,e.markerName))}),{priority:za("0x9")})})),t[za("0x11f")][za("0x13c")][za("0xbf")]((e=>{let n=!1;const o=Array[za("0x38")](t[za("0x11f")][za("0x13c")][za("0xfd")][za("0x60")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x10")](x);if(za("0x116")!==o)continue;const d=this._suggestions[za("0xe4")](l);if(null!=a.newRange)if(za("0x6a")==c&&(n=n||Xa(a[za("0xbe")],x,e,t.model.schema)),a.newRange[za("0xe7")]||za("0x65")==a[za("0xbe")][za("0x9a")][za("0xa4")]||za("0x13a")==c&&!Ja(a[za("0xbe")])||za("0x115")==c&&(qa(i=a[za("0xbe")])||(s=i).start.parent==s.end[za("0x123")]&&s[za("0xda")][za("0xdc")]))e.removeMarker(x),n=!0;else{if(!d||!d.isInContent)continue;r.add(d)}}var s,i;return r[za("0x87")]>0&&(n=!!this[za("0x40")](r)||n),n})),t[za("0x11f")][za("0x13c")][za("0xbf")]((e=>{let n=!1;for(const o of t[za("0x11f")][za("0x13c")].differ[za("0x129")]()){if(za("0x67")!=o[za("0xa8")])continue;const r=o.position.getShiftedBy(o.length);if(r[za("0xdc")])for(const s of this[za("0x2a")][za("0x1d")]()){if(s.isMultiRange||!s.isInContent)continue;if(za("0x13a")!=s[za("0xa8")])continue;const i=s[za("0x5b")]();if(i[za("0xda")][za("0xc6")]!=i.end.parent&&i[za("0x10d")][za("0x86")](o[za("0x137")])){const o=t.model[za("0x7f")](i[za("0xda")],r);e.updateMarker(s[za("0x1a")](),{range:o}),n=!0}}}return n})),t[za("0x11f")][za("0x110")].on(za("0x33"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x10")](e[za("0x2f")]),n=this[za("0x2a")][za("0xe4")](t);n&&n.addMarkerName(e[za("0x2f")])}})),t[za("0x11f")][za("0x13c")].on("change:data",(()=>{const e=Array.from(t[za("0x11f")].document[za("0xfd")].getChangedMarkers()).filter((t=>za("0x116")===this[za("0x10")](t[za("0x2f")])[za("0x105")]));if(0===e.length)return;e[za("0x43")](((t,e)=>{const n=t[za("0xd")][za("0x12e")],o=e[za("0xd")][za("0x12e")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[za("0xa1")](o[za("0xda")])?-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[za("0x12e")]){const e=this[za("0x46")](t);o.add(e)}else{const t=this[za("0x2a")][za("0xe4")](e);null!==r[za("0xbe")]||t.isInContent?(n.add(t[za("0xce")]),o[za("0xf5")](t)):this._removeSuggestion(t)}}o[za("0x87")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x8a")](za("0x91"),t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0x2a")].size)return;if(!o.isDocumentOperation)return;if(o[za("0x9d")][za("0xea")]||!o[za("0x9d")][za("0x107")])return;let r,s;switch(o.type){case za("0x67"):r=t.model[za("0x134")](o[za("0x137")]),s=r[za("0x83")](o[za("0xe2")]);break;case za("0x130"):r=t[za("0x11f")][za("0x134")](o[za("0x8f")]),s=t.model.createPositionAt(o.moveTargetPosition);break;case za("0x6d"):r=t[za("0x11f")][za("0x134")](o.targetPosition),s=r[za("0x83")](o[za("0xe2")]);break;default:return}const i=t[za("0x11f")][za("0x7f")](r,s);t[za("0x11f")][za("0x99")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x75")](i)){if(t[za("0x9e")])continue;if(za("0x6a")==t[za("0xa8")])continue;const n=t[za("0xd")]&&t.data[za("0x56")];(za("0x13a")!=t.type||za("0x130")==o[za("0xa8")]&&!n)&&(e[za("0x3f")]||za("0x71")==t.type&&e[za("0x127")]||t[za("0x5b")]()[za("0xcc")](i)&&this._breakSuggestionMarker(t,r,s))}}))}),{priority:za("0xe5")}),t[za("0x11f")].on("deleteContent",((e,n)=>{const o=n[0],r=n[1];if(r&&r[za("0x2d")])return;if(this[za("0x4a")])return;if(!this[za("0xab")][za("0x53")])return;if(o[za("0xe7")])return;const s=t[za("0x11f")].schema,{start:i,end:x}=o[za("0x5b")](),a=i.nodeAfter&&s.isLimit(i[za("0xb1")])?null:s[za("0xff")](i,za("0x30")),c=x[za("0x123")]&&s[za("0x14")](x.nodeBefore)?null:s.getNearestSelectionRange(x,za("0x96")),l=t[za("0x11f")][za("0x7f")](a?a[za("0xda")]:i,c?c[za("0x10d")]:x);t[za("0x11f")][za("0x99")]((e=>{this.markDeletion(l);const n=t[za("0x11f")].schema[za("0xff")](l[za("0xda")]);o.is(za("0xc"))?e[za("0xaa")](n):o.setTo(n)})),e[za("0xb4")]()}),{priority:e.priorities.normal+10}),t[za("0x11f")].on(za("0xfb"),((e,n)=>{const o=n[n[za("0x20")]-1];o&&o[za("0x2d")]||this[za("0x4a")]||this[za("0xab")].value&&(t[za("0x11f")][za("0x99")]((()=>{let o=t[za("0x11f")][za("0xfb")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[za("0x36")]();const r=o[za("0x10d")][za("0x123")],s=t.model[za("0x8")];r&&s[za("0xa9")](r)&&!s[za("0x138")](r)&&(o=t[za("0x11f")][za("0x7f")](o[za("0xda")],t[za("0x11f")][za("0x134")](r,za("0x10d")))),this[za("0x12f")](o)})),e.stop())}),{priority:za("0x9")}),this[za("0x25")][za("0x10b")][za("0xf5")](za("0x52"),this[za("0xab")]),this.enableCommand(za("0x52"));const o=new p(t,this._suggestions);t[za("0x10b")][za("0xf5")](za("0x7b"),o),this.enableCommand(za("0x7b"));const r=new C(t,this[za("0x2a")]);t.commands[za("0xf5")]("discardSuggestion",r),this[za("0xdf")](za("0xf3")),t[za("0x10b")][za("0xf5")]("acceptAllSuggestions",new F(t,o,this._suggestions)),this[za("0xdf")](za("0xac")),t[za("0x10b")].add(za("0x6b"),new F(t,r,this[za("0x2a")])),this[za("0xdf")](za("0x6b")),t[za("0x10b")][za("0xf5")](za("0x118"),new U(t,o,this[za("0x2a")])),this[za("0xdf")](za("0x118")),t.commands.add(za("0x133"),new U(t,r,this[za("0x2a")])),this[za("0xdf")](za("0x133"));const s=t[za("0x89")][za("0xe4")](za("0x12"));this[za("0x45")](s,za("0x95"),((t,{threadId:e})=>{const n=this[za("0x2a")][za("0xe4")](e);n&&n[za("0x74")]&&1===n.commentThread[za("0x20")]&&this[za("0xd2")](e,{hasComments:!0})}),{priority:za("0x94")}),this.listenTo(s,"removeComment",((t,{threadId:e})=>{const n=this._suggestions[za("0xe4")](e);n&&n.commentThread&&!n[za("0x74")][za("0x20")]&&this[za("0xd2")](e,{hasComments:!1})}),{priority:za("0x94")})}set[za("0x11e")](t){if(this[za("0x104")])throw new e.CKEditorError(za("0xee"),this);this._adapter=t}get[za("0x11e")](){return this._adapter}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x2a")][za("0x1d")]())t&&!e[za("0x19")]||n.push(e);return e?n.map((t=>t.toJSON())):n}[za("0xed")](t){const n=this[za("0x2a")][za("0xe4")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[za("0x8e")](t){return this._suggestions[za("0x132")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[r,s]=t.type[za("0x130")](":"),i=this._suggestions.get(n)||this[za("0x9c")](r,s,n,e,o);if(this[za("0x121")](i),this[za("0x1f")](i,r,s||null,e),i[za("0xf7")]=t[za("0xf7")],o&&o["@external"]){const t=o[za("0x81")],e=this[za("0xd5")](t[za("0x128")]);i[za("0x23")]=t.createdAt,i.author=e,i[za("0xc5")]=!0}else i[za("0x23")]=t[za("0xf7")];switch(t.data&&(i[za("0xd")]=t[za("0xd")]),t[za("0x48")]&&(i[za("0x48")]=t[za("0x48")]),this._adapter&&this[za("0x104")][za("0x103")]||(i[za("0xd4")]=!0),this[za("0xe3")][za("0xe4")](i)){case za("0x27"):this[za("0xe3")][za("0x7d")](i,za("0xad"));break;case"markerReady":i[za("0x19")]?(this[za("0xe3")].set(i,za("0x10c")),this.fire(za("0xba"),i)):this[za("0xe3")][za("0x7d")](i,za("0xc1"))}return i}[za("0x7b")](t){this[za("0x2d")]((()=>{this[za("0x25")][za("0x11f")][za("0x99")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0xc0")]()}))}))}[za("0xf3")](t){this[za("0x2d")]((()=>{this[za("0x25")][za("0x11f")].change((()=>{for(const e of t.getAllAdjacentSuggestions())e.discard()}))}))}[za("0xdf")](t,n){const o=this[za("0x25")].commands[za("0xe4")](t);if(!o)throw new e.CKEditorError(za("0x5c"),this,{commandName:t});this[za("0xa6")][za("0xf5")](o),n&&o.on("execute",((t,e)=>{this.trackChangesCommand[za("0x53")]&&(this[za("0x4a")]||e[za("0x20")]>0&&e[e[za("0x20")]-1]&&e[e[za("0x20")]-1][za("0x2d")]||(n(((...t)=>o[za("0x114")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:za("0x9")})}[za("0x2d")](t){let n,o;const r=this[za("0x4a")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return r||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[za("0x12f")](t,n=null,o={}){if(t[za("0xe7")])return null;const r=this.editor.plugins.get(za("0xbc")).me;for(const{suggestion:e,meta:o}of this[za("0x75")](t,za("0x71")))if(o.isOwn){if(!o[za("0x106")]){if(!this[za("0x6e")]&&o[za("0x3f")])continue;return e}if(n==e[za("0xe0")]){const n=e[za("0x5b")]();return n[za("0xda")].isEqual(t.end)?this[za("0x12d")](e,this[za("0xb7")].createRange(t.start,n[za("0x10d")])):this[za("0x12d")](e,this[za("0xb7")].createRange(n[za("0xda")],t[za("0x10d")])),e}}const s=(0,e.uid)(),i=r.id,x=n?"insertion:"+n:za("0x71"),a=this._setSuggestionData({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x3")](x,s,i,t),a}markMultiRangeInsertion(t,n=za("0x79"),o={}){const r=this[za("0x25")][za("0x89")].get(za("0xbc")).me,s=this[za("0x7")][za("0xb0")]("insertion",n,za("0x131"));for(const e of this[za("0x12c")]())if(e.author.id==r.id&&za("0x71")==e[za("0xa8")]&&e[za("0xe0")]==n&&(s(e.getRanges(),t)||s(t,e.getRanges()))){for(const n of t)e.addRange(n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x75")](e,za("0x71"))){if(!o[za("0x127")])continue;let e=!0;for(const o of n[za("0x11d")]())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=r.id,a="insertion:"+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x3")](a,i,x,e,Zo[za("0x55")]());return c}[za("0x90")](t,n,o=null,r={}){if(o=o||$a(n),t[za("0xe7")])return null;if(za("0x112")===this[za("0xc7")]){const e=this[za("0x7")][za("0xb0")](za("0x6a"),o,"accept");return this[za("0x2d")]((()=>e([t],n,r))),null}const s=this[za("0x25")].plugins[za("0xe4")](za("0xbc")).me,i=[];if(za("0x2c")!==this[za("0xc7")])for(const{suggestion:e,meta:n}of this[za("0x75")](t,za("0x71")))n[za("0x127")]&&!n.isInsideObject&&i.push(...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x62")](o);e&&n[za("0x37")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][za("0x69")](t);n.splice(e,1,...o),e+=o[za("0x20")]}}return n}(t,i);x[za("0x20")]&&this._model[za("0x99")]((()=>{for(const t of x){const e=this._suggestionFactory[za("0xb0")](za("0x6a"),o,za("0xc0"));this[za("0x2d")]((()=>e([t],n,r)))}}));for(const t of a){let i=null,x=t[za("0xda")],a=t[za("0x10d")];for(const{suggestion:e,meta:n}of this[za("0x75")](t,"formatInline")){if(!n[za("0x127")])continue;if(e.subType!=o)continue;const r=e[za("0x5b")]();if(r[za("0xcc")](t,!0))return null;x=x[za("0xa1")](r[za("0xda")])?x:r[za("0xda")],a=a[za("0xfa")](r[za("0x10d")])?a:r[za("0x10d")],i?r.start[za("0xa1")](i.getFirstRange()[za("0xda")])?(i.removeMarkers(),i=e):e[za("0xd3")]():i=e}const c=this[za("0xb7")].createRange(x,a);if(i)this[za("0x12d")](i,c);else{const t=(0,e.uid)(),i=s.id;this[za("0xe9")]({id:t,type:za("0x9f")+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this._addSuggestionMarker(za("0x9f")+o,t,i,c)}}return null}[za("0x49")](t,n,o=[],r=null,s={}){n.formatGroupId||(n[za("0x1c")]=n[za("0x0")]),n.multipleBlocks=t.is(za("0xc9")),r=r||$a(n);const i=o[za("0x8c")]((t=>Qa(t,this[za("0xb7")]))),x=t.is(za("0xc9"))?t:Qa(t,this[za("0xb7")]);if(za("0x112")===this[za("0xc7")]){const t=this[za("0x7")][za("0xb0")](za("0x13a"),r,za("0xc0"));return this.forceDefaultExecution((()=>t([x],n,s))),null}i[za("0x37")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0x2c")!==this[za("0xc7")]){const t=this._suggestionFactory.getSuggestionCallback(za("0x13a"),r,za("0xc0"));return this[za("0x2d")]((()=>t([x],n,s))),null}let c=null,l=x.start,d=x.end;for(const{suggestion:t,meta:e}of this[za("0x75")](x,za("0x13a"))){if(!e[za("0x127")]||e[za("0x106")]||e[za("0x3f")]||e.isInsideObject)continue;if(t[za("0xd")][za("0x1c")]!=n[za("0x1c")])continue;const o=t[za("0x5b")]();if(t.subType==r){if(o[za("0xcc")](x,!0))return null;l=l[za("0xa1")](o.start)?l:o.start,d=d[za("0xfa")](o.end)?d:o[za("0x10d")],c?o[za("0xda")][za("0xa1")](c.getFirstRange().start)?(c[za("0xd3")](),c=t):t.removeMarkers():c=t}else{const e=x[za("0x62")](o);this[za("0x7c")](t,e)}}const u=this[za("0x25")][za("0x89")][za("0xe4")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x12d")](c,this._model.createRange(l,d)),c;{const t=this[za("0xe9")]({id:g,type:za("0xc2")+r,data:n,createdAt:new Date,authorId:m,attributes:s});return this[za("0x3")]("formatBlock:"+r,g,m,this[za("0xb7")][za("0x7f")](l,d)),t}}[za("0xca")](t,n,o=[],r=null,s={}){n.formatGroupId||(n[za("0x1c")]=n[za("0x0")]);const i=t[0];n[za("0x56")]=i.is(za("0xc9")),r=r||$a(n);const x=o[za("0x8c")]((t=>Qa(t,this._model))),a=i.is("range")?t:t[za("0x8c")]((t=>Qa(t,this[za("0xb7")])));if("never"===this._trackFormatChanges){const t=this._suggestionFactory[za("0xb0")](za("0x13a"),r,za("0xc0"));return this[za("0x2d")]((()=>t(a,n,s))),null}x[za("0x37")](...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&"always"!==this[za("0xc7")]){const t=this[za("0x7")][za("0xb0")](za("0x13a"),r,za("0xc0"));return this[za("0x2d")]((()=>t(a,n,s))),null}const l=this.editor[za("0x89")][za("0xe4")](za("0xbc")).me;for(const t of this[za("0x12c")]()){if(t[za("0x22")].id!=l.id)continue;if(za("0x13a")!=t[za("0xa8")]||t.data[za("0x1c")]!=n.formatGroupId)continue;const e=t[za("0xe0")]==r;for(let n=0;n<a[za("0x20")];n++){const o=a[n];for(const r of t[za("0xa0")]()){const s=r[za("0x7a")]();if(o[za("0x86")](s)){e?(a[za("0x135")](n,1),n--):t[za("0x88")](r[za("0x2f")]);break}}}}if(0==a[za("0x20")])return null;const d=this._suggestionFactory[za("0xb0")]("formatBlock",r,"join");for(const t of this.getSuggestions())if(t.author.id==l.id&&za("0x13a")==t[za("0xa8")]&&t[za("0xd")][za("0x1c")]==n[za("0x1c")]&&t[za("0xe0")]==r&&(d(t[za("0x11d")](),a)||d(a,t.getRanges()))){for(const e of a)t.addRange(e);return t}const u=(0,e.uid)(),g=l.id,m=za("0xc2")+r,f=this[za("0xe9")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:s});for(const t of a)this[za("0x3")](m,u,g,t,Zo.getMultiRangeId());return f}[za("0x10f")](t,n=null,o={}){if(t[za("0xe7")])return null;const r=this[za("0x25")][za("0x89")][za("0xe4")](za("0xbc")).me,s=new i.LiveRange(t.start,t[za("0x10d")]);for(const{suggestion:t,meta:e}of this._findSuggestions(s,za("0x71")))if(e[za("0x127")]&&!e[za("0x106")])if(t[za("0x9e")]){const e=t[za("0x11d")]()[za("0x18")]((t=>za("0x65")!=t[za("0x9a")][za("0xa4")]));if(e[za("0x50")]((t=>s[za("0xcc")](t,!0)))&&t[za("0x68")](),e[za("0x10e")]((t=>t.containsRange(s,!0)))){const t=this[za("0x7")][za("0xb0")](za("0x115"),n,za("0xc0"));return this.forceDefaultExecution((()=>t([s],null,o))),null}}else{const e=s[za("0x62")](t[za("0x5b")]());null!==e&&t[za("0x100")]([e],null,o)}if(s.detach(),s[za("0xe7")]||za("0x65")==s[za("0x9a")][za("0xa4")])return null;let x=null,a=s[za("0xda")],c=s[za("0x10d")];for(const{suggestion:t,meta:e}of this[za("0x75")](s,za("0x115")))if(e.isOwn)if(t.isMultiRange&&this[za("0x6e")]){let e=!0;for(const n of t.getRanges()){if(n[za("0xcc")](s,!0))return t;s.containsRange(n)||(e=!1)}e&&t[za("0x68")]()}else{const n=t[za("0x5b")]();if(n.containsRange(s,!0)){if(!this._mergeNestedSuggestions&&e[za("0x3f")])continue;return t}a=a.isBefore(n[za("0xda")])?a:n[za("0xda")],c=c[za("0xfa")](n[za("0x10d")])?c:n[za("0x10d")],x?n.start.isBefore(x.getFirstRange()[za("0xda")])?(x[za("0xd3")](),x=t):t[za("0xd3")]():x=t}if(x)return this[za("0x12d")](x,this._model[za("0x7f")](a,c)),x;{const t=(0,e.uid)(),s=this[za("0xb7")].createRange(a,c),i=r.id,x=n?za("0xb")+n:za("0x115"),l=this[za("0xe9")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x3")](x,t,i,s),l}}[za("0x66")](t,n=za("0x79"),o={}){const r=this[za("0x25")][za("0x89")][za("0xe4")](za("0xbc")).me,s=t[za("0x8c")]((t=>new i.LiveRange(t[za("0xda")],t[za("0x10d")]))),x=new Set;for(const t of s)for(const{suggestion:e,meta:n}of this[za("0x75")](t,za("0x71")))n[za("0x127")]&&!n[za("0x106")]&&x.add(e);for(const e of x)if(e[za("0x9e")]){const r=e.getRanges();if((!e[za("0x48")]||!e[za("0x48")][za("0x120")])&&r[za("0x50")]((t=>s[za("0x10e")]((e=>e[za("0xcc")](t,!0)))))&&e[za("0x68")](),s.every((t=>r[za("0x10e")]((e=>e.containsRange(t,!0)))))){const e=this._suggestionFactory.getSuggestionCallback(za("0x115"),n,"accept");return this[za("0x2d")]((()=>e(t,null,o))),null}}else{const t=e[za("0x5b")]();if(s[za("0x10e")]((e=>e[za("0xcc")](t,!0)))&&e[za("0x68")](),s[za("0x50")]((e=>t.containsRange(e,!0)))){const t=this[za("0x7")][za("0xb0")](za("0x115"),n,za("0xc0"));return this[za("0x2d")]((()=>t(s,null,o))),null}}const a=this[za("0x7")][za("0xb0")](za("0x115"),n,za("0x131"));let c=null;for(const t of this[za("0x12c")]())if(t[za("0x22")].id==r.id&&t[za("0x19")]&&za("0x115")==t[za("0xa8")]&&t[za("0xe0")]==n&&(a(t[za("0x11d")](),s)||a(s,t.getRanges())))if(c){if(t[za("0x74")]&&t[za("0x74")].length)continue;for(const e of t[za("0x11d")]())c[za("0x12b")](e)||c[za("0xa5")](e);t.removeMarkers()}else{c=t;for(const e of s)t.isIntersectingWithRange(e)||t[za("0xa5")](e)}if(c)return c;x[za("0x108")]();for(const t of s)for(const{suggestion:e,meta:n}of this[za("0x75")](t,za("0x115")))n.isOwn&&x[za("0xf5")](e);for(const t of x){const e=t[za("0x11d")]();if((!o||!o.skipNestingCheck)&&s[za("0x50")]((t=>e[za("0x10e")]((e=>e.containsRange(t,!0))))))return t;(!t[za("0x48")]||!t[za("0x48")].skipNestingCheck)&&e.every((t=>s.some((e=>e[za("0xcc")](t,!0)))))&&t[za("0x68")]()}const l=(0,e.uid)(),d=r.id,u=za("0xb")+n,g=this[za("0xe9")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of s)t[za("0x17")](),t[za("0xe7")]||za("0x65")==t[za("0x9a")][za("0xa4")]||this._addSuggestionMarker(u,l,d,t,Zo[za("0x55")]());return g}[za("0x12d")](t,e){const n=t[za("0x1a")]();this[za("0xb7")][za("0x99")]((t=>{t[za("0xd9")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[za("0x25")][za("0xd6")][za("0xe4")]("collaboration.channelId");this[za("0xa3")][za("0x7e")](e)||this[za("0xa3")][za("0x6f")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0xa3")][za("0x5f")](e);o[za("0xb2")](za("0xbd")),o[za("0xbd")]=!1,t[za("0x74")]=o}[za("0x1f")](t,n,o,r){if(t[za("0xa8")]!=n||t[za("0xe0")]!=o||t[za("0xc4")].id!=r)throw this[za("0x25")][za("0x126")](za("0xd7")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[za("0x7c")](t,n){const o=t.getFirstRange();if(n.isEqual(o))t[za("0xd3")]();else if(o.containsRange(n)){const r=this._model.createPositionAt(n[za("0xda")][za("0x123")],za("0x10d"));this[za("0x12d")](t,this[za("0xb7")][za("0x7f")](o.start,r));const s=(0,e.uid)(),i=t[za("0xc4")].id,x=t.type+":"+t[za("0xe0")];this[za("0xe9")]({id:s,type:x,createdAt:new Date,authorId:i,data:t[za("0xd")],attributes:t[za("0x48")]});const a=this[za("0xb7")].createPositionAt(n[za("0x10d")][za("0xc6")],"after"),c=this[za("0xb7")].createRange(a,o.end);this[za("0x3")](x,s,i,c)}else if(o[za("0xa")](n.start)){const e=this[za("0xb7")][za("0x134")](n[za("0xda")][za("0x123")],za("0x10d"));this._setSuggestionRange(t,this._model[za("0x7f")](o[za("0xda")],e))}else{const e=this._model.createPositionAt(n.end[za("0xc6")],za("0x34"));this[za("0x12d")](t,this[za("0xb7")][za("0x7f")](e,o[za("0x10d")]))}}[za("0x139")](t){for(const{suggestion:e,meta:n}of this[za("0x75")](t,za("0x71"))){if(!n[za("0x127")])continue;const o=e.getRanges();for(const e of o)if(!t.getDifference(e)[za("0x20")])return!0}return!1}[za("0xaf")](t){const n=this.editor[za("0x89")][za("0xe4")]("Users").getUser(t);if(!n)throw new e.CKEditorError(za("0x32"),this);return n}[za("0xd5")](t){const e=this[za("0x25")][za("0x89")][za("0xe4")](za("0xbc")),n=(0,s.hashObject)(za("0x61")+t);return e[za("0xd8")](n)||e.addUser({id:n,name:t})}[za("0x9c")](t,e,n,o,r){const s=this[za("0xaf")](o),i=this[za("0x7")][za("0xfc")](t,e,n,s,r,(t=>this[za("0xd2")](n,{attributes:t})));return this[za("0x45")](i,"accept",(()=>{this[za("0xd2")](n,{state:za("0x15")})}),{priority:za("0x9")}),this[za("0x45")](i,za("0x68"),(()=>{this[za("0xd2")](n,{state:"rejected"})}),{priority:"high"}),this[za("0x2a")][za("0x7d")](n,i),this[za("0xe3")].set(i,za("0x27")),i}[za("0x10")](t){const e=t[za("0x130")](":");return{group:e[0],type:e[1],subType:e[za("0x20")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[za("0x20")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}_breakSuggestionMarker(t,n,o){const r=t.getFirstRange(),s=r[za("0xda")],i=r[za("0x10d")];this[za("0x12d")](t,this._model[za("0x7f")](s,n));const x=(0,e.uid)(),a=t[za("0xc4")].id,c=t.type+(t[za("0xe0")]?":"+t[za("0xe0")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x48")],data:t[za("0xd")]}),za("0x13a")==t.type&&(o=this[za("0xb7")][za("0x85")](o[za("0xc6")])),this._addSuggestionMarker(c,x,a,this[za("0xb7")].createRange(o,i))}[za("0x75")](t,e=null){const n=[],o=this._model[za("0x8")],r=this[za("0x25")][za("0x89")][za("0xe4")]("Users").me;for(const s of this.getSuggestions())if(s.isInContent&&(!e||s[za("0xa8")]==e))for(const e of s[za("0x11d")]()){const i=t[za("0xda")].isEqual(e[za("0x10d")])||t[za("0x10d")].isEqual(e[za("0xda")]);if(i||t[za("0x62")](e)){const x=t[za("0xcc")](e)&&Ka(o,e[za("0xda")],t),a=e[za("0xcc")](t)&&Ka(o,t[za("0xda")],e);n.push({suggestion:s,meta:{isOwn:r==s.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}_addSuggestionMarker(t,e,n,o,r){this[za("0xb7")][za("0x99")]((s=>{let i=za("0x4f")+t+":"+e+":"+n;r&&(i=i+":"+r),s.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x24")](t){const e=t.previous,n=t[za("0x76")];t[za("0x77")]=null,null!=e&&(e[za("0x76")]=null),t[za("0x76")]=null,null!=n&&(n[za("0x77")]=null),"ready"==this[za("0xe3")][za("0xe4")](t)&&(this[za("0xe3")][za("0x7d")](t,za("0xc1")),this[za("0x8a")](za("0x13"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[za("0x28")](t);if(this[za("0x104")]&&this[za("0x104")][za("0x103")]){const r=this[za("0x25")][za("0x89")][za("0xe4")]("PendingActions"),s=o[za("0x4e")],i=o.subType?o[za("0xa8")]+":"+o.subType:o[za("0xa8")],x=this[za("0x25")].locale,a=r[za("0xf5")](Yo(x,za("0x80"))),c={id:n,type:i,hasComments:s,data:t.data||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[za("0x48")]};this[za("0x104")][za("0x103")](c)[za("0xb3")]((t=>{o[za("0xd4")]=!0,r.remove(a),t&&t[za("0xf7")]&&(this[za("0x2a")].get(n)[za("0xf7")]=t.createdAt)}))[za("0x1")]((t=>{throw(0,e.logWarning)(za("0x8b")),this[za("0x25")].model[za("0x9b")]({isUndoable:!1},(()=>{o[za("0x68")]()})),o[za("0x8d")](),this._suggestions[za("0xf4")](o.id),this[za("0xe3")].delete(o),t}))}return o}[za("0xd2")](t,e){const n=this[za("0x25")][za("0x89")][za("0xe4")](za("0xcb")),o=this[za("0xed")](t);if(this._adapter&&this[za("0x104")].updateSuggestion)if(o[za("0xd4")]){const o=n.add(Yo(this[za("0x25")][za("0x3a")],za("0x80")));this[za("0x104")].updateSuggestion(t,e).then((()=>{n[za("0x122")](o)}))}else o.on("change:_saved",(()=>{this[za("0xd2")](t,e)}))}[za("0xbb")](t){if(!this[za("0x104")]||!this[za("0x104")].getSuggestion)throw new e.CKEditorError(za("0x11"),this);return this[za("0x104")][za("0xed")](t)}[za("0x46")](t){const{id:e,type:n,subType:o,authorId:r}=this._splitMarkerName(t),s=this[za("0x2a")][za("0xe4")](e)||this._createSuggestion(n,o,e,r,{});switch(this[za("0x1f")](s,n,o,r),this._suggestionState[za("0xe4")](s)){case"notReady":this[za("0xbb")](e)[za("0xb3")]((t=>{let n=Promise[za("0x2e")]();t[za("0x4e")]&&(n=this._commentsRepository[za("0x3e")]({channelId:this[za("0x25")][za("0xd6")][za("0xe4")](za("0x11a")),threadId:e})),n.then((()=>{this.addSuggestionData(t)._saved=!0}))})),this[za("0xe3")].set(s,za("0x97"));break;case"removed":this[za("0xd2")](e,{state:za("0x47")});case za("0xad"):this[za("0xe3")][za("0x7d")](s,za("0x10c")),this[za("0x8a")](za("0xba"),s);break;case za("0x10c"):this.fire(za("0x91"),s)}return s[za("0xdd")](t),s}[za("0x113")](t){const e=Array[za("0x38")](t).filter((t=>!t[za("0x9e")])),n=this[za("0x12c")]({skipNotAttached:!0})[za("0x18")]((t=>!t[za("0x9e")])),o=n[za("0x18")]((e=>!t[za("0x132")](e))),r=new Map(n[za("0x8c")]((t=>[t,this[za("0x7")].getSuggestionCallback(t[za("0xa8")],t[za("0xe0")],za("0x93"))]))),s=new Map(n.map((t=>[t,t[za("0x5b")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x20")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x20")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x20")];t++){const n=e[t];!x[za("0x132")](n)&&n[za("0x77")]&&(n[za("0x77")][za("0x76")]===n&&(n.previous[za("0x76")]=null),n[za("0x77")]=null),!i[za("0x132")](n)&&n[za("0x76")]&&(n[za("0x76")][za("0x77")]===n&&(n[za("0x76")][za("0x77")]=null),n[za("0x76")]=null)}function a(t,e,n){for(let o=n;o<e[za("0x20")];o++){const n=c(t,e[o]);n&&(n[0][za("0x76")]=n[1],n[1][za("0x77")]=n[0],i[za("0xf5")](n[0]),x[za("0xf5")](n[1]))}}function c(t,e){if(t[za("0x22")].id!==e.author.id)return null;const n=r.get(t)(t,e,s[za("0xe4")](t),s[za("0xe4")](e));return n&&r[za("0xe4")](e)(t,e,s[za("0xe4")](t),s.get(e))?n[1][za("0x74")]&&n[1].commentThread[za("0x20")]?null:n:null}}[za("0x40")](t){const e=Array[za("0x38")](t),n=this[za("0x12c")]({skipNotAttached:!0}),o=n.filter((e=>!t[za("0x132")](e))),r=new Map(e[za("0x8c")]((t=>[t,this._suggestionFactory[za("0xb0")](t[za("0xa8")],t[za("0xe0")],za("0x131"))]))),s=new Map(n[za("0x8c")]((t=>[t,t[za("0x11d")]()])));for(let t=0;t<e[za("0x20")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x20")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0x20")];i++){const o=n[i];if(o.type!==e[za("0xa8")]||o.author.id!==e[za("0x22")].id||o[za("0xe0")]!==e.subType)continue;const x=r.get(e),a=s[za("0xe4")](e),c=s[za("0xe4")](o),l=e[za("0x74")]&&e[za("0x74")].length,d=o[za("0x74")]&&o[za("0x74")][za("0x20")];if(!l&&x(c,a))return t._joinSuggestions(o,e),s[za("0xf4")](e),!0;if(!d&&x(a,c))return t[za("0x124")](e,o),s[za("0xf4")](o),!0}return!1}}[za("0x124")](t,e){if(t[za("0x9e")])for(const n of e[za("0x11d")]())t[za("0xa5")](n);else{const n=e.getFirstRange()[za("0x10d")];this[za("0x12d")](t,this[za("0xb7")].createRange(t[za("0x5b")]()[za("0xda")],n))}e.removeMarkers()}}class Va{constructor(t){this[za("0x1b")]=t,this[za("0xb7")]=t[za("0x11f")],this[za("0x5a")]=new Map,this[za("0x82")]=new Map,this[za("0xf0")]()}[za("0xfc")](t,e,n,o,r,s){return new Zo(this[za("0xb7")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this[za("0xb0")](t,e,za("0xc0"))(...n),onDiscard:(...n)=>this[za("0xb0")](t,e,za("0x68"))(...n)})}[za("0x3c")](t,e,n,o){const r=t+":"+e+":"+n;this[za("0x5a")].set(r,o)}[za("0xb0")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x5a")][za("0xe4")](o)||this[za("0x82")][za("0xe4")](t+":"+n)}[za("0xf0")](){const t=()=>{},e=t=>{t[za("0x43")](((t,e)=>t.start[za("0xa1")](e[za("0xda")])?1:-1)),this._model.change((e=>{for(const n of t){let t;t=n[za("0x10d")].isAtEnd&&n.end[za("0xc6")]==n[za("0xda")].nodeAfter?e[za("0x5e")](n[za("0xda")][za("0xb1")],"on"):e[za("0x5e")](n),this[za("0xb7")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0x99")]((n=>{const{commandName:o,commandParams:r=[]}=e,s=t.map((t=>(qa(t)&&(t=this[za("0xb7")][za("0x7f")](t[za("0x10d")])),t)))[za("0x18")]((t=>"$graveyard"!==t[za("0x9a")][za("0xa4")]));if(s[za("0x20")]<1)return;const x=Array[za("0x38")](this[za("0xb7")].document[za("0x12a")][za("0x11d")]())[za("0x8c")]((t=>i.LiveRange[za("0x3b")](t)));n.setSelection(s);for(const t of this[za("0x1b")][za("0x10b")][za("0x10b")]())t[za("0xe")]();r.push({forceDefaultExecution:!0}),this[za("0x1b")][za("0x114")](o,...r);const a=x[za("0x18")]((t=>"$graveyard"!=t[za("0x9a")].rootName));a.length>0&&n[za("0xaa")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[za("0x20")]&&1==e[za("0x20")]&&t[0].end[za("0x86")](e[0].start),r=(t,e,n,o)=>Za(t,e,n,o,this[za("0xb7")])?[t,e]:Za(e,t,o,n,this[za("0xb7")])?[e,t]:null;this._defaultCallbacks[za("0x7d")](za("0xb9"),t),this._defaultCallbacks[za("0x7d")](za("0xef"),e),this[za("0x82")][za("0x7d")](za("0xcf"),o),this._defaultCallbacks[za("0x7d")](za("0xdb"),r),this[za("0x82")][za("0x7d")](za("0x4b"),e),this._defaultCallbacks[za("0x7d")](za("0xae"),t),this._defaultCallbacks[za("0x7d")](za("0xc3"),o),this[za("0x82")][za("0x7d")](za("0xb5"),r),this._defaultCallbacks[za("0x7d")](za("0x73"),n),this[za("0x82")][za("0x7d")](za("0x11c"),t),this[za("0x82")][za("0x7d")](za("0x111"),o),this[za("0x82")][za("0x7d")](za("0xfe"),t),this._defaultCallbacks[za("0x7d")]("formatBlock:accept",n),this[za("0x82")][za("0x7d")](za("0x54"),t),this[za("0x82")][za("0x7d")](za("0x11b"),o),this[za("0x82")][za("0x7d")](za("0x5"),t)}}function Ka(t,e,n){for(const o of e.parent.getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0x9a")]==o)return!1;if(!n[za("0x72")](o))return!1;if(t[za("0x138")](o)||t[za("0x14")](o))return!0}return!1}function qa(t){return t[za("0x10d")][za("0xc6")]==t[za("0xda")].nodeAfter&&t[za("0x10d")][za("0xc8")]}function Xa(t,e,n,o){const r=t=>!t.item.is("$textProxy")&&!o[za("0x138")](t.item),s=t[za("0xda")][za("0xde")](r),i=t[za("0x10d")].getLastMatchingPosition(r,{direction:za("0x96")});return!(t[za("0xda")][za("0x86")](s)&&t[za("0x10d")][za("0x86")](i)||(s[za("0xa1")](i)?n[za("0xd9")](e,{range:n[za("0x7f")](s,i)}):n[za("0x88")](e),0))}function $a(t){return(0,s.hashObject)(t)}function Ja(t){const e=t[za("0xda")][za("0xb1")];return e&&e.is("element")}function Qa(t,e){const n=e[za("0x8")][za("0x138")](t)||e[za("0x8")].isSelectable(t);return e.createRange(e[za("0x134")](t,za("0xcd")),n?e[za("0xf")](t):e.createPositionAt(t,za("0x10d")))}function Za(t,e,n,o,r){if(n[za("0x10d")][za("0x86")](o[za("0xda")]))return!0;if(t[za("0xa8")]!=e.type)return!1;if(!n.end[za("0xa7")](o[za("0xda")]))return!1;const s=r[za("0x7f")](n.end,o[za("0xda")])[za("0x21")]();for(const t of s)if([za("0x4c"),za("0x119")][za("0xe1")](t[za("0xa8")])&&r[za("0x8")][za("0x14")](t[za("0x58")]))return!1;return!0}const Ya=["_editor","canEditAt","canDiscard","add","_acceptCommand","commands","destroy","isEnabled","discardSuggestion","execute","_setPendingAction","_pendingAction","stopListening","change:isDirty","_removePendingAction","get","view","commentThreadController","unbind","getRanges","bind","acceptSuggestion","model","remove","canAccept","_discardCommand","PendingActions","plugins","listenTo"];var tc,ec;tc=Ya,ec=448,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x9")]=e,this[nc("0x3")]=n,this[nc("0x4")]=o,this[nc("0x10")]=t,this[nc("0x14")]=t[nc("0x15")][nc("0x2")](nc("0x8")),this[nc("0xc")]=t.commands[nc("0x2")](nc("0x18")),this[nc("0x3")].bind(nc("0x17")).to(this[nc("0x14")],this[nc("0xc")],((t,e)=>t||e)),this[nc("0x3")][nc("0x7")](nc("0xb")).to(this._acceptCommand,nc("0x17"),(t=>t&&this[nc("0x10")][nc("0x9")].canEditAt(e[nc("0x6")]()))),this[nc("0x3")][nc("0x7")]("canDiscard").to(this[nc("0xc")],nc("0x17"),(t=>t&&this._editor[nc("0x9")][nc("0x11")](e[nc("0x6")]()))),this[nc("0x1b")]=null,n.isDirty&&this[nc("0x1a")](),this[nc("0xf")](n,nc("0x8"),(()=>this[nc("0x8")]())),this[nc("0xf")](n,nc("0x18"),(()=>this[nc("0x18")]())),this.listenTo(n,nc("0x0"),(()=>{n.isDirty?this[nc("0x1a")]():this[nc("0x1")]()}))}acceptSuggestion(){this._acceptCommand.execute(this.model.id)}discardSuggestion(){this[nc("0xc")][nc("0x19")](this[nc("0x9")].id)}[nc("0x16")](){this.view[nc("0x5")](nc("0x17")),this[nc("0x3")][nc("0x5")](nc("0xb")),this[nc("0x3")].unbind(nc("0x12")),this[nc("0x1c")](),this[nc("0x4")][nc("0x16")](),this[nc("0x1b")]&&this[nc("0x1")]()}_setPendingAction(){const t=Yo(this[nc("0x10")].locale,"PENDING_ACTION_SUGGESTION");this._pendingAction=this[nc("0x10")].plugins[nc("0x2")](nc("0xd"))[nc("0x13")](t)}_removePendingAction(){null!==this[nc("0x1b")]&&this._editor[nc("0xe")][nc("0x2")](nc("0xd"))[nc("0xa")](this._pendingAction),this[nc("0x1b")]=null}}const rc=["setData","isActive","addComment","bind","commentThread","editorConfig","length","isReadOnly","commentThreadInputView","commentsListView","destroy","_model","focus","_createCommentViews","_createCommentThreadInputView","isEnabled","element","locale","disableComments","cancel","delegate","commentInputView","hasDirtyComment","value","canAccept","editor","authoredAt","set","_config","removeComment"];var sc,ic;sc=rc,ic=484,function(t){for(;--t;)sc.push(sc.shift())}(++ic);const xc=function(t,e){return rc[t-=0]};class ac extends r.View{constructor(t,e,n,o){super(t),this[xc("0x5")]=null,this[xc("0x4")]=null,this[xc("0x17")]("isActive",!1),this[xc("0x17")](xc("0x16"),e.authoredAt),this[xc("0x1d")](xc("0x16")).to(e),this.set("descriptionParts",[]),this[xc("0x17")]("isDirty",!1),this[xc("0x17")](xc("0xb"),!1),this[xc("0x17")](xc("0x14"),!1),this.set("canDiscard",!1),this[xc("0x7")]=e,this._localUser=n,this[xc("0x18")]=o,o[xc("0xe")]?this[xc("0x17")]("length",1):this._createCommentViews()}[xc("0x8")](){this[xc("0xc")][xc("0x8")]()}[xc("0x6")](){this.commentsListView&&this[xc("0x5")][xc("0x6")](),this[xc("0x4")]&&this[xc("0x4")].destroy(),super[xc("0x6")]()}[xc("0x9")](){const{CommentsListView:t}=this[xc("0x18")];this[xc("0x5")]=new t(this[xc("0xd")],this[xc("0x7")].commentThread,Object.assign({CommentView:this[xc("0x18")].CommentView},this._config)),this[xc("0x5")][xc("0x10")](xc("0x19")).to(this),this[xc("0x5")][xc("0x10")]("updateComment").to(this),this.commentsListView.bind(xc("0x1b")).to(this),this[xc("0x17")](xc("0x2"),this[xc("0x5")].length+1),this[xc("0x1d")](xc("0x2")).to(this.commentsListView,xc("0x2"),(t=>t+1)),this[xc("0x4")]=this[xc("0xa")](),this.on(xc("0x19"),(()=>this[xc("0x8")]())),this[xc("0x1d")]("isDirty").to(this[xc("0x5")],xc("0x12"),this[xc("0x4")][xc("0x11")],xc("0x13"),((t,e)=>t||!!e))}[xc("0xa")](){const{CommentThreadInputView:t}=this[xc("0x18")],e=new t(this[xc("0xd")],this._localUser,this[xc("0x18")][xc("0x1")]),n=e[xc("0x11")];return e[xc("0x1d")]("showInput").to(this,xc("0x1b"),this[xc("0x7")].commentThread,"isReadOnly",n,xc("0x13"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this.fire(xc("0x1c"),e),n[xc("0x15")][xc("0x1a")]("")})),n.on(xc("0xf"),(()=>this[xc("0x8")]())),n.bind("disabledSubmit").to(this[xc("0x7")][xc("0x0")],xc("0x3")),e}}const cc=["creator",".ck-annotation__content-wrapper","_model","canAccept","ck-annotation__info","span","commentsListView","EXTERNAL_IMPORT_WORD_SUGGESTION","name","render","locale","ck-suggestion-","descriptionParts","acceptButton","innerHTML","</p>","push","color","getTemplate","ck-suggestion--accept","formatDateTime","_descriptionElement","@external","value","description","Accept suggestion","join","getUserViewNotificationText","author","canDiscard","children","commentThreadInputView","ck-comment__external","discardSuggestion","ck-annotation__info-time","source","ck-annotation__info-name","ck-suggestion__main","_createButton","ck-suggestion__info","<p>","change:description","_config","acceptSuggestion","isActive","content","isExternal","ck-annotation__actions","isEnabled","authoredAt","setTemplate","userView","attributes","disableComments","EXTERNAL_IMPORT_WORD_AVATAR","set","EXTERNAL_AVATAR","bind","getExternalSuggestionNote","fire","commentThread","type","ck-annotation__user","ck-suggestion__user","Discard suggestion","div","discardButton","time","split","innerText",'<span class="ck-suggestion-color" style="background-color: ',"extendTemplate","importWord","ck-annotation","ck-suggestion--disabled-comments","cancel",'<span class="ck-suggestion-type">',"title","EXTERNAL_SUGGESTION","ck-annotation__main","createElement","ck-suggestion__info-name","map","ck-suggestion"];var lc,dc;lc=cc,dc=199,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,r){super(e,n,o,r),this[uc("0x18")](uc("0x1e"),""),this[uc("0x1a")](uc("0x1e")).to(this,uc("0x41"),(t=>t&&t[0]?t[0].type:"")),this.bind(uc("0x4d")).to(this,uc("0x41"),this,uc("0xd"),((t,e)=>{let n="";for(const e of t)n+=uc("0x9")+mc(e[uc("0xe")],e[uc("0x46")])+uc("0x44");return e?n:(0,s.trimHtml)(n,{limit:140})})),this[uc("0x4a")]=null,this.acceptButton=this[uc("0x7")](Yo(e,uc("0x4e")),t.icons.check,uc("0x48"),uc("0xc"),"sw"),this[uc("0x42")][uc("0x1a")](uc("0x11")).to(this,uc("0x38")),this.discardButton=this._createButton(Yo(e,uc("0x21")),t.icons[uc("0x2c")],"ck-suggestion--discard",uc("0x2"),"sw"),this[uc("0x23")][uc("0x1a")](uc("0x11")).to(this,uc("0x52")),this[uc("0x14")]=new s.UserView(e,this[uc("0x37")][uc("0x51")],this[uc("0x50")]()),this[uc("0x14")].extendTemplate({attributes:{class:[uc("0x20"),uc("0x1f")]}}),this[uc("0x13")](this[uc("0x47")]())}[uc("0x47")](){const t=this.bindTemplate,e=[{tag:uc("0x22"),attributes:{class:[uc("0x8"),uc("0x39")]},children:[{tag:uc("0x3a"),children:[{text:this[uc("0x14")][uc("0x3d")]}],attributes:{class:[uc("0x32"),uc("0x5")]}},{tag:uc("0x24"),attributes:{datetime:t.to(uc("0x12")),class:["ck-comment__info-time",uc("0x3")]},children:[{text:t.to(uc("0x12"),(t=>this[uc("0xb")][uc("0x49")](t)))}]}]},{tag:uc("0x22"),attributes:{class:["ck-suggestion__actions",uc("0x10")]},children:[this.acceptButton,this.discardButton]},{tag:uc("0x22"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[uc("0x37")][uc("0xf")]&&e[uc("0x45")]({tag:uc("0x22"),attributes:{class:[uc("0x1")]},children:[{text:this[uc("0x1b")]()}]});const n={tag:uc("0x22"),attributes:{class:["ck-suggestion-wrapper",t.if(uc("0xd"),"ck-suggestion-wrapper--active"),t.to(uc("0x1e"),(t=>uc("0x40")+t)),this[uc("0xb")][uc("0x16")]&&uc("0x2b")],"data-suggestion-id":this._model.id,"data-thread-id":this[uc("0x37")][uc("0x1d")].id,"data-author-id":this[uc("0x37")].author.id,tabindex:-1},children:[{tag:uc("0x22"),attributes:{class:[uc("0x34"),uc("0x2a")]},children:[this[uc("0x14")],{tag:uc("0x22"),attributes:{class:[uc("0x6"),uc("0x30")]},children:e}]}]};return this.commentsListView&&this[uc("0x0")]&&n[uc("0x53")][uc("0x45")](this[uc("0x3b")],this[uc("0x0")]),n}[uc("0x3e")](){super[uc("0x3e")](),this[uc("0x4a")]=this.element.querySelector(uc("0x36")),this._descriptionElement[uc("0x43")]=this.description,this.on(uc("0xa"),((t,e,n)=>{this._descriptionElement[uc("0x43")]=n}))}[uc("0x7")](t,e,n,o,s){const i=new r.ButtonView(this.locale);return i[uc("0x18")]({label:t,icon:e,tooltip:!0,tooltipPosition:s}),i[uc("0x28")]({attributes:{class:n}}),i.on("execute",(()=>{this[uc("0x1c")](o,this[uc("0x37")].id)})),i}[uc("0x1b")](){return uc("0x29")===this._model[uc("0x15")][uc("0x4b")].source?Yo(this[uc("0x3f")],uc("0x3c")):Yo(this.locale,uc("0x2f"))}[uc("0x50")](){return this[uc("0x37")][uc("0xf")]?uc("0x29")===this[uc("0x37")][uc("0x15")][uc("0x4b")][uc("0x4")]?Yo(this[uc("0x3f")],uc("0x17"),this._model.creator.name):Yo(this[uc("0x3f")],uc("0x19"),this[uc("0x37")][uc("0x35")].name):null}}function mc(t,e){let n="";return n+=t[uc("0x25")]("*")[uc("0x33")](((t,e)=>e%2!=0?uc("0x2d")+fc(t)+"</span>":fc(t)))[uc("0x4f")](""),e&&(n+=uc("0x27")+e[uc("0x4c")]+'" title="'+e[uc("0x2e")]+'"></span>'),n}function fc(t){const e=document[uc("0x31")]("span");return e[uc("0x26")]=t,e[uc("0x43")]}const hc=["commandName","model","trackChanges","EditorAnnotations","isDirty","buttonView","_initializeController","comments.editorConfig","size","remove","CommentsUI","getRanges","CommentsRepository","source","comments","head","isEnabled","has","unbind","push","from","_descriptionFactory","toMany","_annotationViews","focus","TrackChangesUI","suggestion-","pluginName","config","some","isInContent","stopListening","createAnnotation","isOn","requires","type","suggestionChanged","destroy","descriptionParts","Annotations","init","_destroyController","acceptButton","commands","TrackChangesEditing","map","_disableComments","view","getMarkers","bind","comments.maxCommentCharsWhenCollapsed","getByInnerView","change:previous","button","_updateController","acceptSelectedSuggestions","innerView","previous","execute","activeMarkers","CommentView","Accept all suggestions","_createUIButton","switchbutton","filter","refreshSelectedViews","createCommentThreadController","_handleSuggestionControllerDelayed","isMultiRange","componentFactory","_viewToController","actionView","Discard all suggestions","activeAnnotations","_handleControllerBuffer","discardButton","define","locale","set","getAllAdjacentSuggestions","delete","editing","get","length","editor","Track changes","getJoined","acceptAllSuggestions","_suggestionToController","value","comments.maxCommentsWhenCollapsed","trackChanges.disableComments","change:activeAnnotations","mainView","add","separator","keys","discardSelectedSuggestions","clear","lowest","suggestionLoaded","addSourceCollector","getDescriptions","listenTo","plugins","discardAllSuggestions","suggestionUnloaded","createAnnotationView"];var pc,bc;pc=hc,bc=368,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x62")](){return[Wa,s.Users,Ec("0x4c"),Ec("0x67"),Ec("0x43")]}static get[Ec("0x5b")](){return Ec("0x59")}constructor(t){super(t),this[Ec("0x2c")]=new Map,this._viewToController=new Map,this[Ec("0x57")]=new Map,this[Ec("0x1e")]=new Map;const e=this[Ec("0x28")].config;e[Ec("0x20")]("trackChanges.SuggestionThreadView",gc),e[Ec("0x20")](Ec("0x2f"),!1),this[Ec("0x2")]=e[Ec("0x26")]("trackChanges.disableComments")}[Ec("0x17")](t,e){0===this[Ec("0x1e")][Ec("0x48")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x1e")]){const n=this[Ec("0x2c")].has(t);n||e?n&&e&&this._destroyController(t):this._initializeController(t)}this.editor[Ec("0x3c")].get(Ec("0x43"))[Ec("0x15")](),this._refreshActiveMarkers(),this[Ec("0x1e")][Ec("0x36")]()}),10),this[Ec("0x1e")][Ec("0x22")](t,e)}[Ec("0x68")](){const t=this[Ec("0x28")],e=t[Ec("0x3c")][Ec("0x26")]("TrackChangesEditing"),n=t[Ec("0x3c")][Ec("0x26")]("Annotations"),o=t[Ec("0x3c")][Ec("0x26")](Ec("0x43")),r=t[Ec("0x3c")][Ec("0x26")]("CommentsRepository");t.ui[Ec("0x19")].add(Ec("0x42"),(t=>this[Ec("0x12")](t))),o[Ec("0x39")]((()=>{const t=[];for(const[e,n]of Array.from(this._suggestionToController)){const o=e.getAllAdjacentSuggestions(),r=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x18")]){r.push(...t[Ec("0x4b")]());continue}const e=t.getFirstRange();if(r[Ec("0x27")]>0){const t=r[0][Ec("0x2a")](e);if(t){r[0]=t;continue}}r.push(e)}t[Ec("0x53")]([n[Ec("0x3")],r])}return t})),this[Ec("0x3b")](e,Ec("0x38"),((t,e)=>{this[Ec("0x3b")](e,"change:previous",((t,n,o,r)=>{e.isInContent&&(null==o?(this[Ec("0xa")](r[Ec("0x4f")]),this[Ec("0x17")](e,!1)):(this[Ec("0xa")](o.head),this[Ec("0x17")](e,!0)))})),null===e[Ec("0xd")]?this[Ec("0x17")](e,!1):this._updateController(e[Ec("0x4f")])})),this[Ec("0x3b")](e,Ec("0x3e"),((t,e,n)=>{this[Ec("0x5f")](e,Ec("0x8")),this._handleControllerBuffer[Ec("0x24")](e);const o=n?n[Ec("0x4f")]:e,r=this[Ec("0x2c")][Ec("0x26")](o);null!==n&&this[Ec("0xa")](o),null===n&&r&&this[Ec("0x69")](e)})),this[Ec("0x3b")](e,Ec("0x64"),((t,e)=>{this[Ec("0xa")](e)})),this[Ec("0x3b")](n,Ec("0x30"),(()=>{this._refreshActiveMarkers()})),this[Ec("0x3b")](r,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const r=e.getSuggestion(n);this[Ec("0x2c")][Ec("0x26")](r)[Ec("0x3")].focus()}),{priority:Ec("0x37")})}_refreshActiveMarkers(){const t=this.editor[Ec("0x3c")][Ec("0x26")](Ec("0x67")),e=this[Ec("0x28")][Ec("0x3c")][Ec("0x26")](Ec("0x0")),n=Array[Ec("0x54")](t[Ec("0x1d")],(t=>t[Ec("0xc")])).filter((t=>this[Ec("0x1a")][Ec("0x51")](t))),o=[];for(const t of n){const e=this[Ec("0x1a")].get(t)[Ec("0x41")][Ec("0x23")]();o[Ec("0x53")](...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Ec("0xf")]=o}_createUIButton(t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[Ec("0x28")].commands[Ec("0x26")](Ec("0x42")),s=Yo(t,Ec("0x29"));n[Ec("0x45")][Ec("0x22")]({tooltip:s,label:s,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x45")][Ec("0x5")](Ec("0x61")).to(o,Ec("0x2d")),n[Ec("0x45")].on(Ec("0xe"),(()=>{o[Ec("0xe")](),this.editor[Ec("0x25")].view[Ec("0x58")]()}));const i=new e.Collection,x=[{type:Ec("0x13"),model:{withText:!0,label:s,commandName:Ec("0x42")}},{type:"separator"},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,Ec("0x11")),commandName:Ec("0x2b")}},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Ec("0xb")}},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,Ec("0x1c")),commandName:Ec("0x3d")}},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:Ec("0x35")}}];for(const t of x){let e={type:Ec("0x33")};if(t[Ec("0x41")]){const n=new r.Model(t[Ec("0x41")]),o=this[Ec("0x28")].commands[Ec("0x26")](n[Ec("0x40")]);n[Ec("0x5")](Ec("0x61"),"isEnabled").to(o,Ec("0x2d"),Ec("0x50")),e={type:t[Ec("0x63")],model:n}}i[Ec("0x32")](e)}(0,r.addListToDropdown)(n,i);const a=x[Ec("0x14")]((t=>null!=t[Ec("0x41")]))[Ec("0x1")]((t=>this[Ec("0x28")][Ec("0x6b")][Ec("0x26")](t[Ec("0x41")].commandName))),c=n[Ec("0x45")];return c[Ec("0x1b")][Ec("0x52")](Ec("0x50")),c.arrowView.unbind(Ec("0x50")),c[Ec("0x1b")][Ec("0x5")]("isEnabled").to(o,Ec("0x50")),c.arrowView.bind(Ec("0x50"))[Ec("0x56")](a,Ec("0x50"),((...t)=>t[Ec("0x5d")]((t=>t)))),n.on(Ec("0xe"),(t=>{this.editor.execute(t[Ec("0x4d")][Ec("0x40")]),this[Ec("0x28")].editing.view[Ec("0x58")]()})),n}[Ec("0x46")](t){const e=this[Ec("0x28")],n=e[Ec("0x5c")],o=e[Ec("0x3c")][Ec("0x26")](Ec("0x67")),r=e[Ec("0x3c")][Ec("0x26")](Ec("0x4c")),i=e.plugins[Ec("0x26")](Ec("0x43")),x=e.plugins[Ec("0x26")](s.Users).me,a=n[Ec("0x26")](Ec("0x42")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x3c")].get(Ec("0x4a"));let d,u;this[Ec("0x57")].has(t.id)?(u=this[Ec("0x57")][Ec("0x26")](t.id),d=u[Ec("0x31")]):(d=new a(e[Ec("0x21")],t,x,{disableComments:this[Ec("0x2")],editorConfig:n[Ec("0x26")](Ec("0x47")),maxCommentsWhenCollapsed:n[Ec("0x26")](Ec("0x2e")),maxThreadTotalWeight:n[Ec("0x26")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Ec("0x26")](Ec("0x6")),formatDateTime:(0,s.getDateTimeFormatter)(n[Ec("0x26")](Ec("0x21"))),CommentView:n[Ec("0x26")](Ec("0x4e"))[Ec("0x10")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x6a")].on(Ec("0xe"),(()=>{e[Ec("0x25")][Ec("0x3")][Ec("0x58")]()})),d[Ec("0x1f")].on(Ec("0xe"),(()=>{e[Ec("0x25")][Ec("0x3")][Ec("0x58")]()})),u=o[Ec("0x3f")](this[Ec("0x28")][Ec("0x21")],d),u[Ec("0x5")]("isDirty").to(d,Ec("0x44")),u[Ec("0x5")]("length").to(d),u[Ec("0x5")](Ec("0x63")).to(d,Ec("0x63"),(t=>Ec("0x5a")+t)),this[Ec("0x57")][Ec("0x22")](t.id,u));const g=r[Ec("0x16")](t.commentThread,d),m=new oc(e,t,d,g),f=t.getAllAdjacentSuggestions()[Ec("0x14")]((t=>t[Ec("0x5e")]));d[Ec("0x66")]=e.plugins[Ec("0x26")](Ec("0x0"))[Ec("0x55")][Ec("0x3a")](f),this[Ec("0x2c")][Ec("0x22")](t,m),this[Ec("0x1a")][Ec("0x22")](d,m);const h=o[Ec("0x60")]({view:u,target:()=>{const n=[],o=t[Ec("0x23")]()[Ec("0x14")]((t=>t[Ec("0x5e")]));for(const t of o)n[Ec("0x53")](...t[Ec("0x4")]());return(0,s.getAllMarkersDomElementsSorted)(e[Ec("0x25")],n)},type:()=>Ec("0x5a")+m.view.type});o[Ec("0x32")](h),i.registerAnnotation(h)}[Ec("0x69")](t){const e=this[Ec("0x28")][Ec("0x3c")][Ec("0x26")](Ec("0x67")),n=this._suggestionToController[Ec("0x26")](t),o=n.view,r=e[Ec("0x7")](o);r&&e[Ec("0x49")](r),this[Ec("0x2c")][Ec("0x24")](t),this._viewToController[Ec("0x24")](o),n[Ec("0x65")]()}[Ec("0xa")](t){if(!t[Ec("0x5e")]||!this._suggestionToController[Ec("0x51")](t))return;const e=this[Ec("0x28")][Ec("0x3c")][Ec("0x26")](Ec("0x0")),n=this[Ec("0x2c")][Ec("0x26")](t),o=t[Ec("0x23")]();n[Ec("0x3")][Ec("0x66")]=e._descriptionFactory[Ec("0x3a")](o)}[Ec("0x65")](){for(const t of this[Ec("0x2c")][Ec("0x34")]())this._destroyController(t);for(const t of this._annotationViews.values())t[Ec("0x31")][Ec("0x65")]();super[Ec("0x65")]()}}var Tc,Cc,yc=["addSuggestion","pluginName","Comments","addSuggestionData","adapter","editor","get","plugins"];Tc=yc,Cc=500,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get requires(){return[Wa,_c,kc("0x6")]}static get[kc("0x5")](){return"TrackChanges"}set[kc("0x0")](t){this.editor[kc("0x3")].get(Wa).adapter=t}get[kc("0x0")](){return this[kc("0x1")][kc("0x3")][kc("0x2")](Wa).adapter}[kc("0x4")](t){return this[kc("0x1")][kc("0x3")][kc("0x2")](Wa)[kc("0x7")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x1")].plugins[kc("0x2")](Wa).getSuggestions({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[kc("0x1")][kc("0x3")][kc("0x2")](Wa).getSuggestion(t)}}const vc=["WebSocketGateway","getSuggestions","builtinPlugins","context","result","execute","requires","model","toolbar","includes","DocumentOutline","track-changes-data-invalid-editor-creator","WordCount","editorCreator","_context","addUser","config","has","filter","init","appendChild","div","TrackChangesEditing","Autosave","extraPlugins","string","plugins","end","pluginName","constructor","CommentsRepository","find","every","Pagination","map","get","destroy","from","acceptAllSuggestions","trackChangesData.editorCreator","editor","create","names","set","trackChangesData","data","users","RevisionTracker","addSuggestionData","tokenUrl","concat","push","initialData","getDataWithDiscardedSuggestions","discardAllSuggestions","getRootNames","useAnonymousUser","getUser","cloudServices","TrackChangesDataGetter"];var Rc,Sc;Rc=vc,Sc=361,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x33"),Ic("0x2"),Ic("0x7")],Nc=[Ic("0x3b"),Ic("0x2e"),Ic("0x16"),Ic("0xb"),Ic("0x20"),Ic("0x9")];class Mc extends t.Plugin{static get requires(){return[Wa]}static get[Ic("0x1b")](){return"TrackChangesData"}[Ic("0x12")](){const t=this[Ic("0x27")];if(t[Ic("0xf")].define(Ic("0x26"),(e=>t[Ic("0x1c")][Ic("0x28")]("",e))),"function"!=typeof t[Ic("0xf")][Ic("0x22")](Ic("0x2b")).editorCreator)throw new e.CKEditorError(Ic("0xa"))}getDataWithAcceptedSuggestions(t){return Oc(this[Ic("0x27")],!0,t)}[Ic("0x34")](t){return Oc(this.editor,!1,t)}}class wc extends t.Plugin{static get[Ic("0x1b")](){return Ic("0x3a")}constructor(t){super(t),this[Ic("0x3")]=Ic("0x1a")}[Ic("0x12")](){this.editor[Ic("0x19")][Ic("0x22")](Ic("0x1d"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Ic("0x27")][Ic("0x19")][Ic("0x22")](Ic("0x15"))._adapter=null}}async function Oc(t,e,n){const o=function(t){const e={};for(const n of t[Ic("0xf")][Ic("0x29")]())Lc.includes(n)||(e[n]=t[Ic("0xf")][Ic("0x22")](n));e[Ic("0x39")]&&e[Ic("0x39")].tokenUrl&&delete e[Ic("0x39")][Ic("0x30")];const n=t[Ic("0x1c")][Ic("0x1")]||[],o=e.extraPlugins||[];delete e[Ic("0x17")];const r=t[Ic("0xd")][Ic("0xf")].get(Ic("0x19"))||[],s=n[Ic("0x31")](e[Ic("0x19")]).concat(o)[Ic("0x31")](r)[Ic("0x21")]((t=>Ic("0x18")==typeof t?n[Ic("0x1e")]((e=>e[Ic("0x1b")]==t)):t)),i=Array[Ic("0x24")](new Set(s)),x=new Map;return e[Ic("0x19")]=i[Ic("0x11")]((t=>Fc(t,x))),e[Ic("0x19")].push(Wa),e[Ic("0x19")][Ic("0x32")](wc),e}(t),r=document.createDocumentFragment(),s=t.config[Ic("0x22")]("trackChangesData")[Ic("0xc")],i=await s(o,(()=>function(t){const e=document.createElement(Ic("0x14"));return t[Ic("0x13")](e),e}(r)));!function(t,e){const n=t[Ic("0x6")].document[Ic("0x36")]().reduce(((e,n)=>(e[n]=t[Ic("0x2c")][Ic("0x22")]({rootName:n}),e)),{}),o=t.plugins.get("Users")[Ic("0x2d")][Ic("0x21")]((t=>({id:t.id,name:t.name}))),r=t[Ic("0x19")][Ic("0x22")]("TrackChangesEditing")[Ic("0x0")]({skipNotAttached:!0,toJSON:!0}),s=e[Ic("0x19")][Ic("0x22")]("Users"),i=e[Ic("0x19")][Ic("0x22")](Ic("0x15"));for(const t of o)s[Ic("0x38")](t.id)||s[Ic("0xe")](t);s.me||s[Ic("0x37")]();for(const t of r)i[Ic("0x2f")](t);e[Ic("0x2c")][Ic("0x2a")](n)}(t,i),i[Ic("0x4")](Ic(e?"0x25":"0x35"));const x=i.data[Ic("0x22")](n);return await i[Ic("0x23")](),x}function Fc(t,e){const n="function"==typeof t?t[Ic("0x1b")]||t.name:t;if(e[Ic("0x10")](n))return e[Ic("0x22")](n);if(e[Ic("0x2a")](n,!0),n&&Nc[Ic("0x8")](n))return e[Ic("0x2a")](n,!1),!1;if(!t[Ic("0x5")])return e[Ic("0x2a")](n,!0),!0;const o=t.requires[Ic("0x1f")]((t=>Fc(t,e)));return e[Ic("0x2a")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Mc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["commands","TrackChangesCommand","has","execute","_enableCommands","isEnabled","forceDisabled","clearForceDisabled","_isEnabledBasedOnSelection","_disableUnsupportedCommands","editor","refresh","_enabledCommands","value"];var c,l;c=a,l=434,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0xd")]=!1,this[u("0xb")](),this[u("0x8")]=!1}[u("0xb")](){this[u("0x5")]=!0}[u("0x3")](){this[u("0xd")]=!this[u("0xd")],this[u("0xd")]?this[u("0x9")]():this[u("0x4")]()}_disableUnsupportedCommands(){for(const t of this.editor.commands.commands())t.affectsData&&!this._enabledCommands[u("0x2")](t)&&t[u("0x6")](u("0x1"))}[u("0x4")](){for(const t of this[u("0xa")][u("0x0")][u("0x0")]())t.affectsData&&!this[u("0xc")][u("0x2")](t)&&t[u("0x7")](u("0x1"))}}const g=["get","_suggestions","plugins","isEnabled","TrackChangesEditing","track-changes-accept-suggestion-not-found","refresh","execute","editor","canEditAt","model"];var m,f;m=g,f=250,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x4")]=e,this[h("0x9")](),this._isEnabledBasedOnSelection=!1}refresh(){this[h("0x6")]=!0}[h("0xa")](t){const n=this[h("0x4")][h("0x3")](t);if(!n)throw new e.CKEditorError(h("0x8"),this);const o=n.getRanges();this.editor[h("0x2")][h("0x1")](o)&&this[h("0x0")][h("0x5")][h("0x3")](h("0x7")).acceptSuggestion(n)}}const b=["get","refresh","canEditAt","isEnabled","track-changes-discard-suggestion-not-found","_suggestions","model","plugins","execute","getRanges","editor","TrackChangesEditing"];var E,_;E=b,_=428,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x9")]=e,this[T("0x5")](),this._isEnabledBasedOnSelection=!1}refresh(){this[T("0x7")]=!0}[T("0x0")](t){const n=this._suggestions[T("0x4")](t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n[T("0x1")]();this[T("0x2")][T("0xa")][T("0x6")](o)&&this[T("0x2")][T("0xb")][T("0x4")](T("0x3")).discardSuggestion(n)}}const y=["isMultiRange","next","deletion","createPositionAfter","isObject","content","end","map","push","replace","createPositionBefore","value","getMarkers","isInContent","getRange","type","splice","createPositionAt","isIntersecting","color"," [color ","sort","schema","isTouching","isCollapsed","createRange","join"];var k,A;k=y,A=464,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x10")](((t,e)=>"deletion"==t.type&&v("0x18")!=e[v("0xa")]?-1:v("0x18")!=t[v("0xa")]&&v("0x18")==e[v("0xa")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x11")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x5")](i)),I(e,i,x)||(s[v("0x3")](e[v("0x14")](n,r[v("0x1a")](i)?e[v("0x19")](i):e[v("0xc")](i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t[v("0x5")](n);return o[v("0x12")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0xb")](0,100);t.change((()=>{for(const t of o)t[v("0x8")]&&e.execute(t.id)}))}}const N=["isEnabled","from","values","editor","_command","_suggestions","refresh","isInContent","model"];var M,w;M=N,w=183,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x1")]=e,this._suggestions=n,this[O("0x3")](),this._isEnabledBasedOnSelection=!1}[O("0x3")](){const t=Array.from(this[O("0x2")].values()).some((t=>t[O("0x4")]));this[O("0x6")]=this[O("0x1")][O("0x6")]&&t}execute(){const t=R(Array[O("0x7")](this[O("0x2")][O("0x8")]()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x5")].canEditAt(t))return}L(this[O("0x0")][O("0x5")],this[O("0x1")],t)}}const P=["_command","_selectedSuggestions","model","canEditAt","_isEnabledBasedOnSelection","from","editor","document","isEnabled","_suggestions","size","refresh","values","getRanges","selection"];var D,B;D=P,B=135,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x0")]=e,this[j("0x9")]=n,this[j("0x1")]=new Set,this[j("0xb")](),this[j("0x4")]=!1}[j("0xb")](){const t=this[j("0x6")][j("0x2")][j("0x7")][j("0xe")],e=Array[j("0x5")](this[j("0x9")][j("0xc")]());this[j("0x1")]=function(t,e){const n=Array.from(t.getRanges()),o=new Set;for(const s of e)if(s[v("0x8")])for(const e of n)for(const n of s[v("0x7")]()){const r=n[v("0x9")]();(e[v("0xd")](r)||t[v("0x13")]&&!s[v("0x16")]&&s[v("0x17")]&&r[v("0x1")][v("0x12")](e.start))&&o.add(s)}return o}(t,e),this[j("0x8")]=this[j("0x0")][j("0x8")]&&!!this[j("0x1")][j("0xa")]}execute(){const t=R(Array[j("0x5")](this[j("0x1")]));for(const e of t){const t=e[j("0xd")]();if(!this[j("0x6")][j("0x2")][j("0x3")](t))return}L(this[j("0x6")][j("0x2")],this[j("0x0")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.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 mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,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 me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.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 Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["nodeBefore","decorate","_markerNames","removeAttribute","addMarkerName","accept","getMultiRangeId","next","@external","previous","getItems","getMarkerNames","_saved","getFirstRange","removeMarker","attributes","subType","data","get","type","change","isIntersectingWithRange","isExternal","getMarkers","map","head","size","substr","delete","filter","length","set","addRange","_model","onAccept","toJSON","onAttributesChange","_onDiscard","reduce","_onAccept","hasComments","start","isInContent","from","_onAttributesChange","getRanges","getRange","add","createdAt","markers","removeMarkers","getContainedElement","commentThread","discard","getFirstMarker","setAttribute","creator","author","isIntersecting"];var $o,Jo;$o=Xo,Jo=416,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x10")]=e[Qo("0x10")],this[Qo("0xd")]=e[Qo("0xd")]||null,this[Qo("0x36")]=e[Qo("0x36")],this.creator=e[Qo("0x35")]||e[Qo("0x36")],this[Qo("0x13")]=Boolean(e[Qo("0xc")]&&e[Qo("0xc")][Qo("0x5")]),this[Qo("0xe")]=null,this[Qo("0x1e")]=t,this._onAccept=e[Qo("0x1f")],this[Qo("0x22")]=e.onDiscard,this[Qo("0x29")]=e[Qo("0x21")],this[Qo("0x3a")]=new Set,this.createdAt=null,this[Qo("0x1c")]("authoredAt",null),this[Qo("0x1c")](Qo("0xc"),e.attributes||{}),this[Qo("0x1c")](Qo("0x6"),null),this[Qo("0x1c")]("next",null),this.set("commentThread",null),this[Qo("0x1c")](Qo("0x9"),!1),this[Qo("0x39")](Qo("0x2")),this.decorate(Qo("0x32"))}get[Qo("0x16")](){let t=this;for(;t.previous;)t=t[Qo("0x6")];return t}get[Qo("0x25")](){return!!this[Qo("0x31")]&&this[Qo("0x31")].length>0}get isMultiRange(){return 0!=this[Qo("0x3a")][Qo("0x17")]&&6==Array[Qo("0x28")](this[Qo("0x3a")])[0].split(":").length}get[Qo("0x27")](){return null!==this[Qo("0x33")]()}[Qo("0x1")](t){this._markerNames[Qo("0x2c")](t)}[Qo("0x8")](){return Array.from(this._markerNames)}[Qo("0x14")](){return this[Qo("0x8")]()[Qo("0x15")]((t=>this._model[Qo("0x2e")][Qo("0xf")](t)))[Qo("0x1a")]((t=>t))}[Qo("0x33")](){return this.getMarkers()[0]||null}removeMarkers(){this[Qo("0x1e")][Qo("0x11")]((t=>{for(const e of this.getMarkers())t[Qo("0xb")](e)})),this[Qo("0x3a")].clear()}[Qo("0xb")](t){this._model[Qo("0x11")]((e=>{e[Qo("0xb")](t)})),this[Qo("0x3a")][Qo("0x19")](t)}[Qo("0x1d")](t){const e="suggestion:"+this[Qo("0x10")]+":"+this[Qo("0xd")]+":"+this.id+":"+this[Qo("0x35")].id+":"+Zo[Qo("0x3")]();this[Qo("0x1")](e),this[Qo("0x1e")].change((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x12")](t){for(const e of this[Qo("0x2a")]())if(e[Qo("0x37")](t))return!0;return!1}[Qo("0x2a")](){return this[Qo("0x14")]().map((t=>t[Qo("0x2b")]()))}getItems(){return this[Qo("0x2a")]()[Qo("0x23")](((t,e)=>[...t,...e[Qo("0x7")]()]),[])}[Qo("0xa")](){var t;return(null===(t=this[Qo("0x33")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x30")](){const t=this[Qo("0x2a")]();if(1!=t[Qo("0x1b")])return null;const e=t[0],n=e[Qo("0x26")].nodeAfter,o=e.end[Qo("0x38")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2")](){this[Qo("0x24")](this[Qo("0x2a")](),this.data,this[Qo("0xc")]),this[Qo("0x2f")]()}[Qo("0x32")](){this[Qo("0x22")](this.getRanges(),this[Qo("0xe")],this.attributes),this[Qo("0x2f")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x16")];for(;e;)t.push(e),e=e[Qo("0x4")];return t}[Qo("0x34")](t,e){const n=eo(this[Qo("0xc")]);_o(n,t,e),Go(n,this[Qo("0xc")])||(this[Qo("0xc")]=n,this[Qo("0x29")](n))}[Qo("0x0")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0xc")])||(this[Qo("0xc")]=e,this[Qo("0x29")](this.attributes))}[Qo("0x20")](){return{id:this.id,type:this[Qo("0xd")]?this.type+":"+this.subType:this[Qo("0x10")],authorId:this.creator.id,createdAt:this[Qo("0x2d")],hasComments:this.hasComments,data:this[Qo("0xe")],attributes:this[Qo("0xc")]}}static[Qo("0x3")](){return(0,e.uid)()[Qo("0x18")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["skip","get","*Merge:* %0","$text","*Remove:* %0","isInContent","$textProxy","item","previousSibling","replace","_locale","name","elementEnd","deletion","Container","type","indexOf","_addDescriptionItems","isObject","checkChild","ELEMENT_SPACE","Object","text","normal","_resolveDescriptionItems","data","*Insert:* %0","nextSibling","match","remove","length","_customCallbacks","removeContainer","insertion","getFirstRange","function","_schema","EmptyContainer","pop","_itemLabelsCallbacks","isEmpty","start","$1 $2","_itemLabels","getDescriptions","registerDescriptionCallback","add","removeObject","push","getItemLabel","*Split:* %0","quantity","element"];var es,ns;es=ts,ns=177,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0xd")]=[],this[os("0x19")]=new Map,this[os("0x15")]=[],this[os("0x12")]=t,this[os("0x2d")]=e}[os("0x1a")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x28")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x32")in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x10")]().end.isEqual(s[os("0x10")]()[os("0x17")])){const t=e[e[os("0xc")]-1],n=os("0xf")==o.type?os("0x1c"):os("0xb");t&&os("0x4")==t[os("0x32")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x1b")](t){this[os("0xd")][os("0x1e")](t)}registerElementLabel(t,n,o=e.priorities[os("0x5")]){os("0x11")==typeof t?(0,e.insertToPriorityArray)(this[os("0x15")],{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}[os("0x1f")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e.label;break}return n||(n=this[os("0x19")][os("0x24")](t[os("0x2e")])),n?n(e):1!==e?e+" "+t[os("0x2e")]+"s":""+t[os("0x2e")]}[os("0x34")](t,e){const n=e.getFirstRange().getWalker(),o="insertion"==e[os("0x32")]?os("0x1c"):"remove";for(const e of n){const s=e[os("0x2a")],r=t[t[os("0xc")]-1];if(s.is(os("0x29")))r&&r[os("0x32")][os("0x33")](os("0x31"))>-1&&t[os("0x14")](),r&&os("0x4")==r.type?r[o]+=s[os("0x7")]:t[os("0x1e")]({type:os("0x4"),add:os("0x1c")==o?s[os("0x7")]:"",remove:os("0xb")==o?s.data:""});else if(this[os("0x12")][os("0x0")](s)){const i=s;if(r&&r[os("0x32")][os("0x33")](os("0x31"))>-1&&t[os("0x14")](),os("0x2f")==e[os("0x32")])continue;r&&r.type==o+os("0x3")&&r[os("0x22")][os("0x2e")]==i.name?r.quantity++:t.push({type:o+os("0x3"),element:i,quantity:1}),n[os("0x23")]((t=>!("elementEnd"==t[os("0x32")]&&t[os("0x2a")]==s)))}else if(this[os("0x12")][os("0x1")](s,os("0x26"))||s.is(os("0x22"),"softBreak")){const n=s;if("add"==o&&"elementStart"==e[os("0x32")]||"remove"==o&&os("0x2f")==e[os("0x32")])continue;if(r&&-1==r.type[os("0x33")](os("0x31"))){os("0x4")==r[os("0x32")]&&(r[o]+="\n");continue}let i;if(i=os("0x1c")==o?n[os("0x9")]&&!this[os("0x12")].isObject(n.nextSibling)?n[os("0x9")]:null:n[os("0x2b")]&&!this[os("0x12")][os("0x0")](n[os("0x2b")])?n[os("0x2b")]:null,n.isEmpty||i&&i[os("0x16")]){const e=i&&i[os("0x16")]?i:n;r&&r[os("0x32")]==o+os("0x13")&&r[os("0x22")][os("0x2e")]==e.name?r.quantity++:t[os("0x1e")]({type:o+os("0x13"),element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[os("0x6")](t){const e=this[os("0x2d")],n=[];for(const o of t){switch(o[os("0x32")]){case"text":if(o.add=o[os("0x1c")][os("0x2c")](/(\S)\u000A+(\S)/g,os("0x18"))[os("0x2c")](/\u000A/g,""),o[os("0xb")]=o[os("0xb")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[os("0x2c")](/\u000A/g,""),""!=o[os("0x1c")]&&""!=o[os("0xb")]){n.push({type:os("0x2c"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0xb")]+'"','"'+o[os("0x1c")]+'"'])});continue}if(null!=o[os("0x1c")][os("0xa")](/^ +$/)){n[os("0x1e")]({type:os("0xf"),content:Yo(e,os("0x8"),Yo(e,"ELEMENT_SPACE",o.add.length))});continue}if(null!=o[os("0xb")][os("0xa")](/^ +$/)){n.push({type:os("0x30"),content:Yo(e,os("0x27"),Yo(e,os("0x2"),o[os("0xb")].length))});continue}if(""!=o[os("0x1c")]){n.push({type:"insertion",content:Yo(e,os("0x8"),'"'+o.add+'"')});continue}n[os("0x1e")]({type:"deletion",content:Yo(e,os("0x27"),'"'+o[os("0xb")]+'"')});continue;case"addEmptyContainer":case"addObject":n[os("0x1e")]({type:"insertion",content:Yo(e,os("0x8"),this.getItemLabel(o.element,o[os("0x21")]))});continue;case"removeEmptyContainer":case os("0x1d"):n[os("0x1e")]({type:os("0x30"),content:Yo(e,os("0x27"),this.getItemLabel(o.element,o[os("0x21")]))});continue;case"addContainer":n[os("0x1e")]({type:os("0xf"),content:Yo(e,os("0x20"),this[os("0x1f")](o[os("0x22")],o[os("0x21")]))});continue;case os("0xe"):n.push({type:os("0x30"),content:Yo(e,os("0x25"),this[os("0x1f")](o.element,o.quantity))});continue}n.push(o)}return n}}const rs=["commandName","has","get","value","locale","enableCommand","TrackChangesEditing","filter","center","_descriptionFactory","*Format:* %0","contentLanguageDirection","document","getAttribute","alignment","selection","model","FORMAT_ALIGN_TO_RIGHT","commandParams","FORMAT_ALIGN_TO_LEFT","AlignmentEditing","from","change","plugins","right","afterInit","left","markBlockFormat","getSelectedBlocks","FORMAT_ALIGN_TO_CENTER","justify","editor","format","FORMAT_JUSTIFY_TEXT"];var is,xs;is=rs,xs=479,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x16")](){const t=this[as("0x1c")],e=t[as("0x1")];if(!t[as("0x14")][as("0x20")](as("0x11")))return;const n=t.plugins[as("0x21")](as("0x3"));n[as("0x2")]("alignment",((e,o={})=>{let s=o.value;o.value||(s="ltr"===t[as("0x1")][as("0x8")]?"left":as("0x15"));const r=Array[as("0x12")](this.editor[as("0xd")][as("0x9")][as("0xc")][as("0x19")]())[as("0x4")]((t=>function(t,e,n){const o=t[as("0xa")](as("0xb"))||null;return e.checkAttribute(t,as("0xb"))&&n!=o}(t,this[as("0x1c")][as("0xd")].schema,s)));t[as("0xd")][as("0x13")]((()=>{for(const t of r)n[as("0x18")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[as("0x6")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0xb")==n[as("0x1f")]){const t=n[as("0xf")][0][as("0x0")];return{type:as("0x1d"),content:Yo(e,as("0x7"),function(t){switch(t){case as("0x17"):return Yo(e,as("0x10"));case as("0x15"):return Yo(e,as("0xe"));case as("0x5"):return Yo(e,as("0x1a"));case as("0x1b"):return Yo(e,as("0x1e"))}}(t))}}}))}}const ls=["getAttribute","includes","consumable","hasAttribute","isLimit","createRangeOn","addHighlight","name","getItems","insert","nextSibling","mapper","test","parent","bindElementToMarker","get","plugins","ck-suggestion-marker--active","activeMarkers","markerRange","ck-suggestion-marker-","listItem","previousPosition","addClass","markerName","writer","schema","push","getWalker","element","elementEnd","toViewPosition","isBlock","model","toViewElement","TrackChangesEditing","start","getCustomProperty"];var us,ds;us=ls,ds=365,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x17")]())s[gs("0x12")](t)&&o[gs("0x4")](n[gs("0x14")](s));return o}function fs(t){const e=[];if(t.is("element","listItem")){let n=t[gs("0x19")];for(;n&&n.is(gs("0x6"),gs("0x24"))&&n[gs("0xf")]("listIndent")>0;)e.push(n),n=n[gs("0x19")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x1f")][gs("0x1e")](gs("0xc"));return(s,r,i)=>{if(!i[gs("0x11")][gs("0x1b")](r.markerRange,s[gs("0x16")]))return;const x=r[gs("0x22")][gs("0x5")](),a=r[gs("0x22")][gs("0xd")],c=t[gs("0xa")][gs("0x3")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c.isContent(e);const n=i[gs("0x1a")][gs("0xb")](e);if(n&&n[gs("0xe")](gs("0x15")))return;gs("0x7")==t.type&&c[gs("0x9")](e)&&!c[gs("0x13")](e)&&(e[gs("0x19")]||a.isAtEnd?l&&l[gs("0x1c")]==e||(l=e,m(t[gs("0x25")]),g=!0):u=u||t.previousPosition)}function m(t){const s=i[gs("0x2")].createUIElement("span",{class:gs("0x23")+e}),x=i[gs("0x1a")][gs("0x8")](t);n&&o[gs("0x21")][gs("0x10")](r[gs("0x1")])&&i[gs("0x2")][gs("0x0")](gs("0x20"),s),i[gs("0x2")][gs("0x18")](x,s),i[gs("0x1a")][gs("0x1d")](s,r.markerName)}d||g||!u||m(u)}}const ps=["forceValue","*Remove format:* %0","getRanges","afterInit","commands","plugins","SuperscriptEditing","from","StrikethroughEditing","FORMAT_STRIKETHROUGH","change","selection","get","model","ItalicEditing","document","subscript","underline","value","format","FORMAT_UNDERLINE","enableCommand","SubscriptEditing","slice","editor","commandParams","UnderlineEditing","code","strikethrough","*Format:* %0","superscript","registerDescriptionCallback","BoldEditing","FORMAT_CODE","italic","TrackChangesEditing","CodeEditing","locale"];var bs,Es;bs=ps,Es=137,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x9"),_s("0x1d"),_s("0x3"),_s("0xd"),_s("0x17"),_s("0x25"),_s("0x15")];class Cs extends t.Plugin{[_s("0x12")](){const t=this[_s("0x1")],e=t[_s("0x1c")],n=t[_s("0x14")][_s("0x1b")](_s("0xc")),o=t[_s("0xe")];for(const o of Ts){if(!t[_s("0x14")].has(o))continue;const s=o[_s("0x0")](0,-7).toLowerCase(),r=t[_s("0x13")][_s("0x1b")](s);n[_s("0x24")](s,((t,o={})=>{const i=e[_s("0x1e")][_s("0x1a")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0xf")]?o.forceValue:!r[_s("0x21")];e[_s("0x19")]((()=>{const t=Array[_s("0x16")](i[_s("0x11")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0x8")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[_s("0x2")][0].forceValue?{type:"format",content:Yo(o,_s("0x6"),e)}:{type:_s("0x22"),content:Yo(o,_s("0x10"),e)}}))}s("bold",Yo(o,"FORMAT_BOLD")),s(_s("0xb"),Yo(o,"FORMAT_ITALIC")),s(_s("0x20"),Yo(o,_s("0x23"))),s(_s("0x4"),Yo(o,_s("0xa"))),s(_s("0x5"),Yo(o,_s("0x18"))),s(_s("0x1f"),Yo(o,"FORMAT_SUBSCRIPT")),s(_s("0x7"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["*Remove format:* %0","filter","schema","commandName","has","TrackChangesEditing","model","$root","locale","enableCommand","checkChild","document","blockQuote","selection","get","name","getSelectedBlocks","editor","*Format:* %0","forceValue","markBlockFormat","afterInit","plugins","ELEMENT_BLOCK_QUOTE","format","_descriptionFactory","parent","BlockQuoteEditing"];var ks,As;ks=ys,As=267,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x6")](){const t=this[vs("0x2")],e=t[vs("0x15")];if(!t[vs("0x7")][vs("0x11")](vs("0xc")))return;const n=t[vs("0x7")][vs("0x1b")](vs("0x12")),o=this[vs("0x2")].commands.get("blockQuote");n[vs("0x16")](vs("0x19"),((e,s={})=>{const r=this[vs("0x2")][vs("0x13")][vs("0x18")][vs("0x1a")],i=s&&void 0!==s.forceValue?s[vs("0x4")]:!o.value;let x=[];if(i){const e=Array.from(r[vs("0x1")]()).filter((t=>Ss(t)||function(t,e){const n=e[vs("0x17")](t[vs("0xb")],"blockQuote"),o=e[vs("0x17")]([vs("0x14"),vs("0x19")],t);return n&&o}(t,this[vs("0x2")][vs("0x13")][vs("0xf")])));x=S(e,t[vs("0x13")])}else{const e=Array.from(r[vs("0x1")]())[vs("0xe")]((t=>Ss(t)));x=S(e,t[vs("0x13")])}t.model.change((()=>{for(const t of x)n[vs("0x5")](t,{commandName:vs("0x19"),commandParams:[{forceValue:i}]})}))})),n[vs("0xa")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x19")==n[vs("0x10")]){const t=Yo(e,vs("0x8"));return n.commandParams[0][vs("0x4")]?{type:vs("0x9"),content:Yo(e,vs("0x3"),t)}:{type:"format",content:Yo(e,vs("0xd"),t)}}}))}}function Ss(t){return vs("0x19")==t[vs("0xb")][vs("0x0")]}const Is=["editor","ckbox","get","enableCommand","afterInit","plugins","TrackChangesEditing"];var Ls,Ns;Ls=Is,Ns=130,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x0")](){const t=this[Ms("0x3")];t.commands.get(Ms("0x4"))&&t[Ms("0x1")][Ms("0x5")](Ms("0x2"))[Ms("0x6")](Ms("0x4"))}}const Os=["blockName","commandParams","commandName","isLimit","filter","markBlockFormat","plugins","document","enableCommand","name","checkChild","format","ELEMENT_CODE_BLOCK","find","locale","registerDescriptionCallback","afterInit","parent","_descriptionFactory","outdentCodeBlock","*Remove format:* %0","languages","has","*Format:* %0","from","forceValue","registerElementLabel","rootElement","get","selection","language","getSelectedBlocks","label","config","indentCodeBlock","codeBlock","change","model"];var Fs,Ps;Fs=Os,Ps=224,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x14")](){const t=this.editor;if(!t.plugins[Ds("0x1a")]("CodeBlock"))return;const e=t[Ds("0xa")][Ds("0x20")]("TrackChangesEditing"),n=t[Ds("0x12")],o=t[Ds("0x25")][Ds("0x20")](Ds("0x1"))[Ds("0x19")],s=t.commands[Ds("0x20")](Ds("0x1"));e[Ds("0xc")](Ds("0x0")),e.enableCommand(Ds("0x17")),e.enableCommand(Ds("0x1"),((n,r={})=>{const i=t.model,x=t[Ds("0x3")][Ds("0xb")][Ds("0x21")],a=r&&void 0!==r[Ds("0x1d")]?r[Ds("0x1d")]:!s.value;let c;r[Ds("0x22")]||(r[Ds("0x22")]=o[0][Ds("0x22")]),c=a?Array[Ds("0x1c")](x[Ds("0x23")]())[Ds("0x8")]((t=>{return js(t)||(e=t,n=i.schema,!e.is(Ds("0x1f"))&&!n[Ds("0x7")](e)&&n[Ds("0xe")](e[Ds("0x15")],Ds("0x1")));var e,n})):Array.from(x[Ds("0x23")]())[Ds("0x8")]((t=>js(t)));const l=S(c,i);i[Ds("0x2")]((()=>{for(const t of l)e[Ds("0x9")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x4")})}))})),e[Ds("0x16")][Ds("0x1e")](Ds("0x1"),(t=>Yo(n,Ds("0x10"),t))),e[Ds("0x16")][Ds("0x13")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&Ds("0x1")==r[Ds("0x6")]){const t=r[Ds("0x5")][0][Ds("0x22")],s=e(o[Ds("0x11")]((e=>e[Ds("0x22")]===t))[Ds("0x24")]);return r[Ds("0x5")][0][Ds("0x1d")]?{type:Ds("0xf"),content:Yo(n,Ds("0x1b"),Yo(n,Ds("0x10"),1)+" ("+s+")")}:{type:Ds("0xf"),content:Yo(n,Ds("0x18"),Yo(n,Ds("0x10"),1))}}}))}}function js(t){return Ds("0x1")==t[Ds("0xd")]}const Us=["addCommentThread","editor","CommentsEditing","get","enableCommand","plugins","afterInit"];var Gs,Hs;Gs=Us,Hs=243,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x1")](){const t=this[zs("0x3")];t.plugins.has(zs("0x4"))&&t[zs("0x0")][zs("0x5")]("TrackChangesEditing")[zs("0x6")](zs("0x2"))}}var Vs=n(181);const Ks=["enqueueChange","buffer","high","writer","getFirstRange","start","model","init","createSelection","TrackChangesEditing","markerNameToElements","detach","$graveyard","addMarker:suggestion:deletion","isCollapsed","editor","fromRange","enableCommand","unlock","unit","mapper","setSelection","deleteForward","end","commands","merge","selection","remove","editing","downcastDispatcher","bind","batch","createRange","markerName","get","uiElement","data","root","requires","delete"];var qs,Xs;qs=Ks,Xs=237,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x1")](){return[Vs.Delete]}[$s("0xa")](){const t=this[$s("0x12")],e=t.plugins[$s("0x25")]($s("0xc"));e[$s("0x14")]($s("0x2"));const n=t[$s("0x1b")][$s("0x25")]($s("0x19"));e[$s("0x14")]($s("0x19"),((e,o={})=>{const s=t.model[$s("0xb")](t[$s("0x9")].document[$s("0x1d")]);s[$s("0x11")]&&t[$s("0x9")].modifySelection(s,{direction:"forward",unit:o[$s("0x16")]});const r=s[$s("0x7")](),x=i.LiveRange[$s("0x13")](r);let a;e(o),a=$s("0xf")==x[$s("0x0")].rootName?t.model[$s("0x23")](r[$s("0x8")]):t.model[$s("0x23")](x[$s("0x8")],x[$s("0x1a")]),x[$s("0xe")](),t[$s("0x9")][$s("0x3")](n[$s("0x4")][$s("0x22")],(t=>{n.buffer.lock(),t[$s("0x18")](t.createRange(a[$s("0x1a")])),n[$s("0x4")][$s("0x15")]()}))})),t[$s("0x1f")][$s("0x20")].on($s("0x10"),hs(t,$s("0x1c")),{priority:"high"}),t[$s("0x27")][$s("0x20")].on($s("0x10"),((e,n,o)=>{o.options.showSuggestionHighlights&&hs(t,$s("0x1c"),{showActiveMarker:!1})[$s("0x21")](this)(e,n,o)}),{priority:$s("0x5")}),t.editing.downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n.mapper[$s("0xd")](e.markerName);if(o)for(const t of o)t.is($s("0x26"))&&(n[$s("0x17")].unbindElementFromMarkerName(t,e[$s("0x24")]),n[$s("0x6")][$s("0x1e")](t))}),{priority:$s("0x5")})}}const Qs=["isFirstBlockOfListItem","model","detach","ELEMENT_NUMBERED_LIST","setSelection","plugins","TrackChangesEditing","DocumentListUtils","fromRange","createPositionAt","document","slice","createRange","getFirstRange","*Change to:* %0","format","previousSibling","bulletedList","*Merge:* %0","toUpperCase","selection","enableCommand","registerCustomCallback","length","listIndent","push","_LIST","ELEMENT_LIST_ITEM","add","from","schema","markMultiRangeBlockFormat","accept","get","mergeListItemForward","_descriptionFactory","splitListItemBefore","change","getRanges","listItemId","registerElementLabel","*Outdent:* %0","multipleBlocks","getAttribute","commands","DocumentListEditing","refresh","containsItem","has","getSelectedBlocks","commandName","*Format:* remove from %0","listType","forceValue","execute","markBlockFormat","formatBlock","editor","afterInit","parent","indentList","value","start","next","after","end","documentList","before","outdentList","locale","nextSibling","splitListItemAfter","isObject","*Format:* insert into %0","*Indent:* %0","hasAttribute","deletion","commandParams","numberedList","nodeAfter"];var Zs,Ys;Zs=Qs,Ys=150,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x44")](){const t=this[tr("0x43")];if(!t[tr("0xf")][tr("0x3a")](tr("0x37")))return;const e=t[tr("0x4f")],n=t[tr("0xf")].get(tr("0x10")),o=t[tr("0xf")].get(tr("0x11"));function s(e){return()=>{const s=t[tr("0x36")][tr("0x2b")](e);let r=Array[tr("0x27")](t.model[tr("0x14")].selection[tr("0x3b")]());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o[tr("0xa")](e)&&t[tr("0x23")](e);r=t}t[tr("0xb")].change((()=>{n[tr("0x29")](r,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:tr("0x3e")},[],tr("0x4c"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x27")](t);const n=e.findIndex((t=>!t[tr("0x5")](tr("0x31"))));return n>-1&&(e=e[tr("0x15")](0,n)),e}(t.model[tr("0x14")][tr("0x1e")][tr("0x3b")]()),s=o[o[tr("0x21")]-1],r=t.model[tr("0x28")][tr("0x2")](s)?tr("0x4a"):"end",i=t[tr("0xb")][tr("0x16")](t[tr("0xb")][tr("0x13")](o[0],tr("0x4d")),t[tr("0xb")].createPositionAt(s,r));t.model[tr("0x2f")]((()=>{n[tr("0x41")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x0")];for(;t&&t[tr("0x35")](tr("0x22"))>n.getAttribute(tr("0x22"));)e[tr("0x26")](t),t=t[tr("0x0")]}return Array[tr("0x27")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0xb")][tr("0x14")].selection.getSelectedBlocks()[tr("0x49")]()[tr("0x47")],s=t[tr("0xb")][tr("0x13")](o,tr("0x4d")),r=t[tr("0xb")][tr("0x13")](o,0),i=t[tr("0xb")][tr("0x16")](s,r);t.model[tr("0x2f")]((()=>{n[tr("0x41")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x3e")})}))}}function a(e){const n=t[tr("0x36")][tr("0x2b")](tr("0x1b"))[tr("0x47")],o=t[tr("0x36")][tr("0x2b")]("numberedList")[tr("0x47")];return tr("0x8")===e?n:o}n[tr("0x1f")]("numberedList",s(tr("0x8"))),n[tr("0x1f")](tr("0x1b"),s(tr("0x1b"))),n[tr("0x1f")](tr("0x46"),r(tr("0x46"))),n[tr("0x1f")](tr("0x4e"),r("outdentList")),n[tr("0x1f")](tr("0x1"),x(tr("0x1"))),n[tr("0x1f")](tr("0x2e"),x(tr("0x2e"))),n[tr("0x2d")][tr("0x32")]((function(e){const n=!t[tr("0xb")][tr("0x28")][tr("0x2")](e),o=e[tr("0x1a")],s=e[tr("0x0")],r=e[tr("0x35")](tr("0x31")),i=!o||o[tr("0x35")](tr("0x31"))!==r,x=!s||s.getAttribute("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x25"),t))),n[tr("0x2d")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x3c")]){case tr("0x1b"):r=n[tr("0x7")][0][tr("0x3f")],i=a(n.commandName),o=tr(r?"0x3":"0x3d"),i&&(o=tr("0x18")),s={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0x8"):r=n[tr("0x7")][0].forceValue,i=a(n[tr("0x3c")]),o=r?tr("0x3"):"*Format:* remove from %0",i&&(o="*Change to:* %0"),s={type:"format",content:Yo(e,o,Yo(e,tr("0xd")))};break;case tr("0x46"):o=tr("0x4"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x25")))};break;case tr("0x4e"):o=function(t){const e=t[tr("0x17")]();let n=e[tr("0x48")][tr("0x9")];for(;n&&e[tr("0x39")](n);){if(n.getAttribute(tr("0x22"))>0)return!1;n=n[tr("0x0")]}return!0}(t)?Yo(e,tr("0x3d"),Yo(e,"ELEMENT_"+t[tr("0x17")]()[tr("0x48")].nodeAfter[tr("0x35")](tr("0x3e"))[tr("0x1d")]()+tr("0x24"))):Yo(e,tr("0x33"),Yo(e,tr("0x25"))),s={type:tr("0x19"),content:o};break;case"mergeListItemBackward":case tr("0x2c"):!1===n[tr("0x34")]&&(o=tr("0x1c"),s={type:tr("0x6"),content:Yo(e,o,Yo(e,tr("0x25")))})}return s})),n._suggestionFactory[tr("0x20")](tr("0x42"),tr("0x4c"),tr("0x2a"),(function(e,n){const o=[];for(let n of e)n[tr("0x48")][tr("0x9")]===n[tr("0x4b")][tr("0x45")]&&(n=t[tr("0xb")][tr("0x16")](t[tr("0xb")][tr("0x13")](n.start[tr("0x9")],0))),o[tr("0x23")](n);t[tr("0xb")][tr("0x2f")]((e=>{const s=t.model[tr("0x14")][tr("0x1e")],r=Array[tr("0x27")](s[tr("0x30")]()).map((t=>i.LiveRange[tr("0x12")](t)));e[tr("0xe")](o),t.commands[tr("0x2b")](n[tr("0x3c")])[tr("0x38")](),n.commandParams[tr("0x23")]({forceDefaultExecution:!0}),t[tr("0x40")](n.commandName,...n[tr("0x7")]),e.setSelection(r);for(const t of r)t[tr("0xc")]()}))}))}}var nr=n(331);const or=["createRange","split","commands","showSuggestionHighlights","downcastDispatcher","remove","change","data","nextSibling","ck-suggestion-marker-split","mapper","fromRange","end","model","requires","addMarker:suggestion:insertion","bind","high","markerNameToElements","editing","fire","options","writer","editor","detach","init","getFirstRange","markInsertion","removeMarker:suggestion:insertion","setSelection","createPositionAt","enter","markerName","unbindElementFromMarkerName","parent"];var sr,rr;sr=or,rr=386,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0xd")](){return[nr.Enter]}[ir("0x18")](){const t=this[ir("0x16")],e=t.plugins.get("TrackChangesEditing"),n=t[ir("0x1")].get(ir("0x1e"));e.enableCommand(ir("0x1e"),(()=>{t[ir("0xc")][ir("0x5")]((o=>{const s=t[ir("0xc")].document.selection,r=s.getFirstPosition(),x=i.LiveRange[ir("0xa")](s[ir("0x19")]());if(n.enterBlock(o)){const n=t[ir("0xc")][ir("0x1d")](r[ir("0x21")][ir("0x7")],0),s=o[ir("0x22")](r,n);e[ir("0x1a")](s)}else o[ir("0x1c")](o[ir("0x22")](x[ir("0xb")]));x[ir("0x17")](),n[ir("0x13")]("afterExecute",{writer:o})}))})),t.editing[ir("0x3")].on(ir("0xe"),hs(t,"split"),{priority:ir("0x10")}),t[ir("0x12")][ir("0x3")].on(ir("0x1b"),((t,e,n)=>{const o=n[ir("0x9")][ir("0x11")](e.markerName);if(o)for(const t of o)t.hasClass(ir("0x8"))&&(n[ir("0x9")][ir("0x20")](t,e[ir("0x1f")]),n[ir("0x15")][ir("0x4")](t))}),{priority:ir("0x10")}),t[ir("0x6")][ir("0x3")].on(ir("0xe"),((e,n,o)=>{o[ir("0x14")][ir("0x2")]&&hs(t,ir("0x0"),{showActiveMarker:!1})[ir("0xf")](this)(e,n,o)}),{priority:ir("0x10")})}}const ar=["markers","get","has","replaceAll","createPositionAt","filter","enableCommand","findByTextCallback","_isInDeletionRange","FindAndReplaceEditing","getMarkersGroup","model","suggestion:deletion","plugins","bind","handleFindCommand","createRange","findPrevious","start","string","TrackChangesEditing","editor","find"];var cr,lr;cr=ar,lr=398,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{afterInit(){if(!this[ur("0xe")][ur("0x6")][ur("0x12")](ur("0x2")))return;const t=this[ur("0xe")][ur("0x6")][ur("0x11")](ur("0xd"));t[ur("0x16")](ur("0xf"),this.handleFindCommand[ur("0x7")](this)),t[ur("0x16")]("findNext"),t[ur("0x16")](ur("0xa")),t[ur("0x16")]("replace"),t[ur("0x16")](ur("0x13"))}[ur("0x8")](t,e,n={}){const o=this.editor[ur("0x6")][ur("0x11")]("FindAndReplaceUtils");void 0!==n&&t((t=>(ur("0xc")==typeof e?o[ur("0x0")](e,n):e)(t)[ur("0x15")]((e=>!1===this[ur("0x1")](e,t.item)))),n)}_isInDeletionRange(t,e){const n=this[ur("0xe")][ur("0x4")][ur("0x9")](this.editor.model[ur("0x14")](e,t[ur("0xb")]),this[ur("0xe")][ur("0x4")][ur("0x14")](e,t.end));for(const t of this[ur("0xe")].model[ur("0x10")][ur("0x3")](ur("0x5")))if(null!==n.getIntersection(t.getRange()))return!0;return!1}}const gr=["fontBackgroundColor","value","registerDescriptionCallback","FontFamilyEditing","_descriptionFactory","selection","change","toLowerCase","find","fontFamily","*Set font color:* %0","normalizeSizeOptions","commandName","fontSize.options","FontSizeEditing","format","*Set font size:* %0","locale","get","commandParams","editor","getRanges","config","*Reset font background color*","TrackChangesEditing","label","*Reset font color*","FontBackgroundColorEditing","from","afterInit","*Reset font size*","*Reset font family*","_enableCommand","trim","*Set font background color:* %0","plugins","fontColor","enableCommand","has","fontSize","model"];var mr,fr;mr=gr,fr=395,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1d"),commandName:hr("0xd")},{pluginName:hr("0x12"),commandName:hr("0x18")},{pluginName:"FontColorEditing",commandName:hr("0xa")},{pluginName:hr("0x1"),commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x3")](){const t=this[hr("0x23")][hr("0x20")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x23")][hr("0x9")][hr("0xc")](t)&&this[hr("0x6")](e);this[hr("0x23")].plugins.get(hr("0x27"))[hr("0x13")][hr("0x11")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0xd")==o[hr("0x1b")]){const e=o[hr("0x22")][0][hr("0x10")];if(e){const o=n(this[hr("0x23")].plugins[hr("0x21")]("FontSize")[hr("0x1a")](this[hr("0x23")][hr("0x25")][hr("0x21")](hr("0x1c")))[hr("0x17")]((t=>t[hr("0xe")]==e)).title)[hr("0x16")]();return{type:hr("0x1e"),content:Yo(t,hr("0x1f"),o)}}return{type:hr("0x1e"),content:Yo(t,hr("0x4"))}}if(hr("0x18")==o[hr("0x1b")]){const e=o[hr("0x22")][0][hr("0x10")];return e?{type:"format",content:Yo(t,"*Set font family:* %0",e)}:{type:hr("0x1e"),content:Yo(t,hr("0x5"))}}if(hr("0xa")==o[hr("0x1b")]){const e=o[hr("0x22")][0][hr("0x10")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x25")][hr("0x21")]("fontColor.colors"))[hr("0x17")]((t=>t[hr("0xe")]==e));let r=e,i="";return o&&(r=o[hr("0x28")],i=n(r)[hr("0x16")]()),{type:hr("0x1e"),content:Yo(t,hr("0x19"),i)[hr("0x7")](),color:{value:e,title:i||r}}}return{type:hr("0x1e"),content:Yo(t,hr("0x0"))}}if(hr("0xf")==o[hr("0x1b")]){const e=o[hr("0x22")][0][hr("0x10")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x25")][hr("0x21")]("fontBackgroundColor.colors"))[hr("0x17")]((t=>t[hr("0xe")]==e));let r=e,i="";return o&&(r=o[hr("0x28")],i=n(r)[hr("0x16")]()),{type:hr("0x1e"),content:Yo(t,hr("0x8"),i)[hr("0x7")](),color:{value:e,title:i||r}}}return{type:hr("0x1e"),content:Yo(t,hr("0x26"))}}}}))}[hr("0x6")](t){const e=this[hr("0x23")];e.plugins.get(hr("0x27"))[hr("0xb")](t,((n,o={})=>{const s=e.model.document[hr("0x14")],r=o[hr("0x10")];s.isCollapsed?n(o):e.model[hr("0x15")]((()=>{const n=Array[hr("0x2")](s[hr("0x24")]());for(const o of n){const n=r?[o]:ms(t,o,e.model);for(const o of n)e.plugins[hr("0x21")](hr("0x27")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["TrackChangesEditing","selection","fontSize","length","markInlineFormat","format","locale","registerDescriptionCallback","slice","entries","*Remove all formatting*","createRange","copyFormat","fontSize.options","toLowerCase","boolean","fontColor","getRanges","document","find","FontSize","_descriptionFactory","word","model","pasteFormat","from","isFormatting","join","split","isCollapsed","title","getAttributes","plugins","editor","change","commands","isBlock","commandName","get","getFirstPosition","push","*Set format to:* %0","getLastPosition","enableCommand","fontBackgroundColor","getAttributeProperties","backward","getSelectedBlocks","getItems","afterInit","charAt","keys","modifySelection","commandParams","label","schema"];var _r,Tr;_r=Er,Tr=416,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x19")](){const t=this[Cr("0x9")],n=t.model,o=n[Cr("0x32")][Cr("0x21")],s=t[Cr("0x8")][Cr("0xe")]("TrackChangesEditing"),r=t[Cr("0x26")],i=t.commands[Cr("0xe")]("copyFormat"),x=t[Cr("0xb")][Cr("0xe")](Cr("0x0"));i&&x&&(s.enableCommand(Cr("0x0"),((t,r={})=>{const i=r;n[Cr("0xa")]((()=>{const t=Array[Cr("0x1")](o[Cr("0x31")]()),r=o[Cr("0x5")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x7")]()){const t=e[Cr("0x15")](n);t&&t[Cr("0x2")]&&(yield n)}}(t,n));for(const e of t[Cr("0x31")]())for(const t of e[Cr("0x18")]())!n[Cr("0xc")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x17")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x1f")]))||0!==Object[Cr("0x1b")](i)[Cr("0x23")])for(const t of r)s[Cr("0x24")](t,{commandName:Cr("0x0"),commandParams:[i]})}))})),s[Cr("0x35")][Cr("0x27")]((e=>{const{data:n}=e;if(n&&Cr("0x0")===n[Cr("0xd")]){const e=[],o=n[Cr("0x1d")][0];for(const[n,s]of Object[Cr("0x29")](o))e[Cr("0x10")](Ar(t,n,s));return e[Cr("0x23")]?{type:Cr("0x25"),content:Yo(r,Cr("0x11"),e[Cr("0x3")](", "))}:{type:Cr("0x25"),content:Yo(r,Cr("0x2a"))}}})),t[Cr("0x8")].get(Cr("0x20"))[Cr("0x13")](Cr("0x2c")))}}function kr(t,e){const n=t.createSelection(e);t[Cr("0x1c")](n,{unit:Cr("0x36"),direction:Cr("0x16")});const o=n[Cr("0xf")]();t[Cr("0x1c")](n,{unit:Cr("0x36"),direction:"forward"});const s=n[Cr("0x12")]();return t[Cr("0x2b")](o,s)}function Ar(t,e,n){const o=t[Cr("0x26")].t,r=e[Cr("0x4")](/(?=[A-Z])/)[Cr("0x3")](" "),i=o(r[Cr("0x1a")](0).toUpperCase()+r[Cr("0x28")](1))[Cr("0x2e")]();if(Cr("0x2f")==typeof n)return i;if(Cr("0x30")===e||Cr("0x14")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0xe")]("fontColor.colors")).find((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x1e")])[Cr("0x2e")]():n)+")"}if(Cr("0x22")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0xe")](Cr("0x34")).normalizeSizeOptions(t.config[Cr("0xe")](Cr("0x2d")))[Cr("0x33")]((t=>t[Cr("0x37")]==n));return i+" ("+(e?o(e[Cr("0x6")])[Cr("0x2e")]():n)+")"}return i+" ("+n+")"}const vr=["find","registerElementLabel","config","filter","enableCommand","_descriptionFactory","has","ELEMENT_HEADING_CUSTOM","title","commandParams","registerDescriptionCallback","afterInit","change","name","HeadingEditing","heading","editor","document","*Change to:* %0","model","value","checkChild","get","formatBlock","format","heading.options","ELEMENT_HEADING","markBlockFormat","commandName","plugins","TrackChangesEditing"];var Rr,Sr;Rr=vr,Sr=221,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x7")](){const t=this[Ir("0xc")],e=t.locale,n=t[Ir("0x1d")][Ir("0x12")](Ir("0x15"));if(!t[Ir("0x19")][Ir("0x2")](Ir("0xa")))return;const o=t[Ir("0x19")][Ir("0x12")](Ir("0x1a"));o[Ir("0x0")](Ir("0xb"),((e,n)=>{const s=n.value,r=Array.from(this.editor[Ir("0xf")][Ir("0xd")].selection.getSelectedBlocks())[Ir("0x1e")]((t=>{return e=t,n=s,(o=this[Ir("0xc")][Ir("0xf")].schema)[Ir("0x11")](e.parent,n)&&!o.isObject(e)&&e[Ir("0x9")]!=n;var e,n,o}));t.model[Ir("0x8")]((()=>{for(const t of r)o[Ir("0x17")](t,{commandName:Ir("0xb"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0xf")]&&o._descriptionFactory[Ir("0x1c")](t[Ir("0xf")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0x4")])}));function s(t,n){return Yo(e,Ir("0x16"),[t,n])}function r(t,n){return Yo(e,Ir("0x3"),[t,n])}o[Ir("0x1")][Ir("0x6")]((t=>{const{type:o,data:i}=t;if(Ir("0x13")==o&&i&&"heading"==i[Ir("0x18")]){const t=i[Ir("0x5")][0][Ir("0x10")],o=Nr(t);if(null!==o)return{type:"format",content:Yo(e,Ir("0xe"),s(1,o))};const x=n[Ir("0x1b")]((e=>e[Ir("0xf")]===t))[Ir("0x4")];return{type:Ir("0x14"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Mr=["getAttribute","isCollapsed","formatInline","has","editor","document","afterInit","getRanges","markInlineFormat","title","getFirstPosition","model","createRange","item","config","find","get","commandParams","registerDescriptionCallback","toLowerCase","*Remove highlight*","push","getLastMatchingPosition","format","change","_descriptionFactory","TrackChangesEditing","*Set highlight:* %0","selection","value","highlight.options","locale","highlight","HighlightEditing","color","plugins","commandName"];var wr,Or;wr=Mr,Or=200,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x1c")](){const t=this[Fr("0x1a")];if(!t[Fr("0x14")][Fr("0x19")](Fr("0x12")))return;const e=t.plugins.get(Fr("0xb"));e.enableCommand(Fr("0x11"),((n,o={})=>{const s=t[Fr("0x21")][Fr("0x1b")][Fr("0xd")],r=s[Fr("0x16")](Fr("0x11"));let i=o.value,x=[];if(s[Fr("0x17")]){const e=s[Fr("0x20")]();if(!s.hasAttribute("highlight"))return void n(o);{const n=t=>t[Fr("0x23")].getAttribute("highlight")===r,o=e[Fr("0x7")](n,{direction:"backward"}),s=e[Fr("0x7")](n);x=[t[Fr("0x21")][Fr("0x22")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x1d")]())i?x.push(e):x[Fr("0x6")](...ms(Fr("0x11"),e,t.model));t[Fr("0x21")][Fr("0x9")]((()=>{for(const t of x)e[Fr("0x1e")](t,{commandName:Fr("0x11"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x10")];e[Fr("0xa")][Fr("0x3")]((e=>{const{type:o,data:s}=e;if(Fr("0x18")==o&&s&&Fr("0x11")==s[Fr("0x15")]){const e=n.t,o=s[Fr("0x2")][0][Fr("0xe")];if(o){const s=t[Fr("0x24")][Fr("0x1")](Fr("0xf"))[Fr("0x0")]((t=>t.model==o)),r=e(s[Fr("0x1f")])[Fr("0x4")]();return{type:Fr("0x8"),content:Yo(n,Fr("0xc"),r),color:{value:s[Fr("0x13")],title:s.title}}}return{type:"format",content:Yo(n,Fr("0x5"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["createContainerElement","plugins","has","editor","locale","get","elementToStructure","div","enableCommand","high","createPositionAt","ck-horizontal-line","ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","_descriptionFactory","dataDowncast","HorizontalLineEditing","insert","horizontalLine","for","addClass"];var Br,jr;Br=Dr,jr=478,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{afterInit(){const t=this[Ur("0x8")];if(!t[Ur("0x6")][Ur("0x7")](Ur("0x0")))return;t[Ur("0x6")][Ur("0xa")]("TrackChangesEditing")[Ur("0xd")]("horizontalLine");const e=t[Ur("0x6")].get(Ur("0x12")),n=t[Ur("0x9")];e[Ur("0x13")].registerElementLabel("horizontalLine",(t=>Yo(n,Ur("0x11"),t))),t.conversion[Ur("0x3")](Ur("0x14"))[Ur("0xb")]({model:Ur("0x2"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x5")](Ur("0xc")),s=e.createEmptyElement("hr");return e[Ur("0x4")](Ur("0x10"),o),e[Ur("0x1")](e[Ur("0xf")](o,0),s),o},converterPriority:Ur("0xe")})}}const Hr=["cancel","get","change","document","rawHtmlApi","rawHtml","registerDescriptionCallback","TrackChangesEditing","afterInit","getAttribute","*Change %0 content*","view","element","ELEMENT_HTML_EMBED","value","plugins","enableCommand","htmlEmbed","registerElementLabel","has","locale","getCustomProperty","getSelectedElement","markBlockFormat","editing","model","selection","_descriptionFactory"];var zr,Wr;zr=Hr,Wr=468,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x10")](){const t=this.editor;if(!t[Vr("0x17")][Vr("0x1b")]("HtmlEmbed"))return;const e=t[Vr("0x17")][Vr("0x9")](Vr("0xf")),n=t[Vr("0x0")],o=t[Vr("0x4")][Vr("0x13")][Vr("0xb")][Vr("0x6")];e._descriptionFactory[Vr("0x1a")]("rawHtml",(t=>Yo(n,Vr("0x15"),t))),t[Vr("0x17")][Vr("0x9")](Vr("0xf"))[Vr("0x18")](Vr("0x19"),((n,s)=>{const r=t[Vr("0x5")],i=r[Vr("0xb")][Vr("0x6")];r[Vr("0xa")]((()=>{const t=function(t){const e=t[Vr("0x2")]();return e&&e.is(Vr("0x14"),Vr("0xd"))?t[Vr("0x2")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x11")](Vr("0x16"))||"";void 0!==s&&s!==r&&(e[Vr("0x3")](t,{commandName:"htmlEmbed",commandParams:[s]}),o.getSelectedElement()[Vr("0x1")](Vr("0xc"))[Vr("0x8")]())}))})),e[Vr("0x7")][Vr("0xe")]((t=>{const{data:e}=t;if(e&&Vr("0x19")==e.commandName){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:"format",content:Yo(n,Vr("0x12"),t)}}}))}}const qr=["head","ImageResize","has","addObject","findIndex","newValue","caption","deletion","ImageInlineEditing","isCollapsed","createRange","isInlineImage","registerPostFixer","markBlockFormat","markDeletion","toNext","change","discardSuggestion","from","shouldConvertImageType","chain","width","previous","type","ELEMENT_INLINE_IMAGE","selection","_descriptionFactory","commandParams","end","ELEMENT_CAPTION","hasSuggestion","getCaptionFromImageModelElement","isInContent","imageStyle","isIntersecting","resizeImage","imageStylePostApply","find","commandName","filter","format","ImageUtils","model","_suggestionFactory","newRange","normalizedStyles","alt","hasAttribute","element","markInlineFormat","document","imageStylePreApply","imageTypeInline","isEqual","enableCommand","createRangeOn","uploadImage","title","suggestion","getChangedMarkers","accept","imageCaption","_splitMarkerName","differ","start","formatInline","fromPosition","convertBlockImageToInline","getNearestSelectionRange","ImageBlockEditing","getAttribute","*Format:* %0","commands","locale","getClosestSelectedImageElement","forward","backward","plugins","isBlockImage","insertImage","detach","getContainedElement","discard","*Set image text alternative:* %0","subType","registerCustomCallback","ImageEditing","registerElementLabel","nodeAfter","side","toggleImageCaption","toLowerCase","schema","get","formatBlock","registerDescriptionCallback","forceDefaultExecution","*Remove image text alternative*","length","isBefore","ImageTextAlternativeEditing","Inline image to block image","*Set image width:* %0","markInsertion","imageTypeBlock","ELEMENT_IMAGE","getSuggestionCallback","getSuggestions","Users","insertion","getSuggestion","refresh","next","value","join","*Reset image width*","toPrevious","imageTextAlternative","TrackChangesEditing","convertInlineImageToBlock","afterInit","editor","getFirstRange","Block image to inline image","ImageStyleEditing"];var Xr,$r;Xr=qr,$r=409,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x56")](){const t=this[Jr("0x57")];if(!t[Jr("0x2b")][Jr("0x5d")](Jr("0x34")))return;const n=t[Jr("0x2b")][Jr("0x3b")](Jr("0x54")),o=t[Jr("0x2b")][Jr("0x3b")](Jr("0x7")),s={},r=t[Jr("0x27")];if(n[Jr("0x14")](Jr("0x2d")),n[Jr("0x75")][Jr("0x35")]("imageBlock",(t=>Yo(r,Jr("0x47"),t))),n[Jr("0x75")][Jr("0x35")]("imageInline",(t=>Yo(r,Jr("0x73"),t))),n[Jr("0x75")][Jr("0x35")]("caption",(()=>Yo(r,Jr("0x78")))),t[Jr("0x2b")][Jr("0x5d")]("ImageUploadEditing")&&n.enableCommand(Jr("0x16")),t.plugins[Jr("0x5d")](Jr("0x23"))&&t[Jr("0x2b")][Jr("0x5d")](Jr("0x63"))&&(n[Jr("0x14")](Jr("0x12"),((e,s)=>{const r=o[Jr("0x28")](t[Jr("0x8")][Jr("0x10")][Jr("0x74")]);t.model[Jr("0x6b")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x12"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Jr("0x14")](Jr("0x46"),((e,s)=>{t.model[Jr("0x6b")]((r=>{let x=o[Jr("0x28")](t.model[Jr("0x10")][Jr("0x74")]),a=r[Jr("0x15")](x);const c=i.LivePosition[Jr("0x20")](a[Jr("0x1e")],Jr("0x52")),l=i.LivePosition.fromPosition(a[Jr("0x77")],Jr("0x6a"));n[Jr("0x3e")]((()=>e(s))),x=o[Jr("0x28")](t.model[Jr("0x10")][Jr("0x74")]),a=r.createRangeOn(x);const u=r[Jr("0x65")](c,l);c[Jr("0x2e")](),l.detach(),n.markBlockFormat(x,{commandName:Jr("0x12"),commandParams:[]},[],Jr("0x55")),u[Jr("0x1e")][Jr("0x41")](a.start)&&n[Jr("0x45")](r[Jr("0x65")](u.start,a.start),Jr("0x55")),a.end[Jr("0x41")](u.end)&&n.markInsertion(r[Jr("0x65")](a[Jr("0x77")],u[Jr("0x77")]),Jr("0x55"))}))})),n[Jr("0x9")][Jr("0x33")](Jr("0x3c"),Jr("0x55"),Jr("0x50"),(()=>{})),n[Jr("0x9")][Jr("0x33")]("formatBlock","convertInlineImageToBlock","accept",(()=>{})),n[Jr("0x9")][Jr("0x33")](Jr("0x3c"),"convertInlineImageToBlock",Jr("0x30"),n[Jr("0x9")][Jr("0x48")](Jr("0x3c"),"","accept")),n[Jr("0x9")][Jr("0x33")]("insertion","convertInlineImageToBlock","join",(()=>{})),n[Jr("0x9")][Jr("0x33")](Jr("0x4b"),Jr("0x55"),Jr("0x30"),(([e])=>{const o=n[Jr("0x9")][Jr("0x48")](Jr("0x4b"),"",Jr("0x30"));let s=e[Jr("0x1e")],r=e[Jr("0x77")];const i=t[Jr("0x8")][Jr("0x3a")][Jr("0x22")](s,Jr("0x2a")),x=t[Jr("0x8")][Jr("0x3a")].getNearestSelectionRange(r,Jr("0x29"));i[Jr("0x64")]&&(s=i.start),x[Jr("0x64")]&&(r=x[Jr("0x77")]),o([t[Jr("0x8")][Jr("0x65")](s,r)])})),n[Jr("0x9")][Jr("0x33")]("formatBlock",Jr("0x55"),"chain",c),n[Jr("0x9")].registerCustomCallback(Jr("0x4b"),Jr("0x55"),"chain",c)),t[Jr("0x2b")][Jr("0x5d")]("ImageCaptionEditing")&&(n.enableCommand(Jr("0x38"),((e,s)=>{const r=t[Jr("0x2b")].get("ImageCaptionUtils");let i=o[Jr("0x28")](t.model.document[Jr("0x74")]),x=r[Jr("0x7a")](i);t[Jr("0x8")].change((()=>{if(x)return void n[Jr("0x69")](t[Jr("0x8")][Jr("0x15")](x));const a=o[Jr("0x2c")](i);e(s),i=o[Jr("0x28")](t.model[Jr("0x10")][Jr("0x74")]),x=r[Jr("0x7a")](i),n[Jr("0x45")](t[Jr("0x8")][Jr("0x15")](x),a?null:Jr("0x1b"))}))})),n[Jr("0x9")][Jr("0x33")](Jr("0x4b"),Jr("0x1b"),Jr("0x6f"),c)),t[Jr("0x2b")][Jr("0x5d")](Jr("0x5a"))){n[Jr("0x14")](Jr("0x7c"),((s,r)=>{const i=t[Jr("0x2b")][Jr("0x3b")](Jr("0x4a")).me,x=t[Jr("0x26")][Jr("0x3b")](Jr("0x7c"));let a=o[Jr("0x28")](t[Jr("0x8")][Jr("0x10")].selection),c=t[Jr("0x8")][Jr("0x15")](a),l=x[Jr("0x4f")];if(l==r[Jr("0x4f")])return;const u={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x8")][Jr("0x6b")]((()=>{if(n[Jr("0x49")]()[Jr("0x5")]((t=>t.isInContent&&i==t.author&&(Jr("0x3c")==t[Jr("0x72")]||Jr("0x1f")==t[Jr("0x72")])&&(Jr("0x11")==t[Jr("0x32")]||Jr("0x2")==t[Jr("0x32")])&&t.getFirstRange()[Jr("0x13")](c))).forEach((t=>n[Jr("0x6c")](t[Jr("0x5b")]))),a=o[Jr("0x28")](t[Jr("0x8")][Jr("0x10")].selection),c=t[Jr("0x8")][Jr("0x15")](a),x[Jr("0x4d")](),t[Jr("0x26")][Jr("0x3b")](Jr("0x12")).refresh(),t[Jr("0x26")][Jr("0x3b")](Jr("0x46"))[Jr("0x4d")](),l=x[Jr("0x4f")],l!=r.value)return o[Jr("0x66")](a)&&x[Jr("0x6e")](r.value,a)?(s(r),a=o[Jr("0x28")](t.model.document[Jr("0x74")]),void n[Jr("0x68")](a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x11"))):void(o[Jr("0x2c")](a)?n[Jr("0x68")](a,u,[],"imageStylePostApply"):n[Jr("0xf")](c,u,Jr("0x2")))}))}));for(const e of t[Jr("0x2b")][Jr("0x3b")](Jr("0x5a"))[Jr("0xb")])s[e.name]=e[Jr("0x17")][Jr("0x39")]();n._suggestionFactory[Jr("0x33")](Jr("0x3c"),Jr("0x11"),"join",(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x3c"),"imageStylePostApply",Jr("0x50"),(()=>{})),n._suggestionFactory[Jr("0x33")](Jr("0x1f"),Jr("0x2"),"join",(()=>{})),n[Jr("0x9")].registerCustomCallback("formatBlock",Jr("0x11"),Jr("0x1a"),(()=>{})),n._suggestionFactory[Jr("0x33")](Jr("0x3c"),Jr("0x11"),"discard",((t,e)=>{n[Jr("0x9")][Jr("0x48")](Jr("0x3c"),"",Jr("0x1a"))(t,{commandName:e[Jr("0x4")],commandParams:e.commandReversedParams})})),n[Jr("0x9")][Jr("0x33")](Jr("0x3c"),Jr("0x11"),Jr("0x6f"),c)}const x=[{type:"formatBlock",subType:"imageStylePreApply"},{type:Jr("0x4b"),subType:Jr("0x1b")},{type:"formatBlock",subType:Jr("0x55")},{type:"insertion",subType:Jr("0x55")}];function a(t,e){const s=x[Jr("0x5f")]((({type:e,subType:n})=>t[Jr("0x72")]==e&&t[Jr("0x32")]==n)),r=x[Jr("0x5f")]((({type:t,subType:n})=>e[Jr("0x72")]==t&&e[Jr("0x32")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x58")](),a=e[Jr("0x58")]();if((0==s||1==s)&&2==r&&i[Jr("0x0")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,Jr("0x4b"))[Jr("0x5")]((({suggestion:t,meta:e})=>e.isOwn&&Jr("0x55")==t[Jr("0x32")]));if(t[Jr("0x40")]>1&&a[Jr("0x77")][Jr("0x13")](i[Jr("0x1e")]))return!0;if(1==t[Jr("0x40")]&&(i[Jr("0x1e")][Jr("0x13")](a.end)||i[Jr("0x77")][Jr("0x13")](a[Jr("0x1e")])))return!0}if(3==s&&3==r&&i[Jr("0x1e")][Jr("0x41")](a.start)){const t=i.end[Jr("0x36")],e=a[Jr("0x1e")].nodeBefore;return o[Jr("0x2c")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x8")][Jr("0x10")][Jr("0x67")]((()=>{let e=!1;const s=Array[Jr("0x6d")](t.model.document[Jr("0x1d")][Jr("0x19")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x1c")](t);if(Jr("0x18")==s&&n[Jr("0x79")](a)){if(Jr("0x3c")==i&&(Jr("0x11")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(r[Jr("0xa")]){const s=t[Jr("0x58")]()[Jr("0x2f")]();if(o[Jr("0x2c")](s))continue;n.discardSuggestion(t),e=!0}}if(Jr("0x4b")==i&&Jr("0x1b")==x&&!r[Jr("0xa")]){const t=n[Jr("0x4c")](a);t[Jr("0x4e")]&&t[Jr("0x4e")][Jr("0x7b")]&&(n[Jr("0x6c")](t[Jr("0x4e")]),e=!0)}}}return e})),t[Jr("0x2b")][Jr("0x5d")](Jr("0x5c"))&&n[Jr("0x14")]("resizeImage",((e,s)=>{const r=o[Jr("0x28")](t.model[Jr("0x10")].selection);r[Jr("0x24")](Jr("0x70"))!=s[Jr("0x70")]&&t[Jr("0x8")][Jr("0x6b")]((()=>{n[Jr("0x68")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t[Jr("0x2b")][Jr("0x5d")](Jr("0x42"))&&n.enableCommand("imageTextAlternative",((e,s)=>{const r=o[Jr("0x28")](t[Jr("0x8")][Jr("0x10")][Jr("0x74")]);(r[Jr("0xd")](Jr("0xc"))?r.getAttribute("alt"):"")!=s.newValue&&t.model[Jr("0x6b")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x53"),commandParams:[s]})}))})),n[Jr("0x75")].registerDescriptionCallback((t=>{if(x[Jr("0x3")]((({type:e,subType:n})=>t[Jr("0x72")]==e&&t[Jr("0x32")]==n)))return t[Jr("0x71")]?{}:void 0})),n[Jr("0x75")][Jr("0x3d")]((t=>{if(Jr("0x4b")==t[Jr("0x72")]||Jr("0x62")==t[Jr("0x72")]){const e=t[Jr("0x2f")]();if(e&&e.is(Jr("0xe"),Jr("0x61")))return{type:Jr("0x4b")==t[Jr("0x72")]?Jr("0x5e"):"removeObject",element:e,quantity:1}}})),n[Jr("0x75")].registerDescriptionCallback((t=>Jr("0x3c")==t.type&&Jr("0x55")==t.subType?{type:"format",content:Jr("0x43")}:"formatBlock"==t.type&&Jr("0x21")==t[Jr("0x32")]?{type:Jr("0x6"),content:Jr("0x59")}:void 0)),n[Jr("0x75")][Jr("0x3d")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e.commandName){const t=e.commandParams[0][Jr("0x4f")];return n=Jr("0x37")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x6"),content:Yo(r,Jr("0x25"),n)}}if(Jr("0x53")==e[Jr("0x4")]){const t=e[Jr("0x76")][0][Jr("0x60")];return t?{type:Jr("0x6"),content:Yo(r,Jr("0x31"),'"'+t+'"')}:{type:Jr("0x6"),content:Yo(r,Jr("0x3f"))}}if(Jr("0x1")==e.commandName){const t=e[Jr("0x76")][0].width;return t?{type:Jr("0x6"),content:Yo(r,Jr("0x44"),t)}:{type:Jr("0x6"),content:Yo(r,Jr("0x51"))}}}var n}))}}const Zr=["change","format","registerDescriptionCallback","TrackChangesEditing","getSuggestionCallback","handleSuggestionDescription","author","discard","editor","get","data","accept","plugins","_suggestionFactory","_descriptionFactory","handleReplaceImageCommand","registerCustomCallback","afterInit","source","src","getSuggestions","has","Users","commandParams","replaceImageSource","selection","commandName","getSelectedElement","locale","*Format:* replace image URL"];var Yr,ti;Yr=Zr,ti=384,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x17")](){if(!this.editor[ei("0x12")][ei("0x1b")]("ImageEditing"))return;const t=this.editor[ei("0x12")].get(ei("0x9"));t.enableCommand(ei("0x0"),((t,e)=>this[ei("0x15")](t,e))),t[ei("0x13")][ei("0x16")]("formatBlock",ei("0x0"),"accept",t._suggestionFactory[ei("0xa")]("formatBlock",null,ei("0xd"))),t[ei("0x13")][ei("0x16")]("formatBlock",ei("0x0"),"discard",t[ei("0x13")][ei("0xa")]("formatBlock",null,ei("0x11"))),t[ei("0x14")][ei("0x8")]((t=>this[ei("0xb")](t)))}[ei("0x15")](t,e){const n=this[ei("0xe")][ei("0x12")].get(ei("0x9")),o=this[ei("0xe")].model.document[ei("0x1")][ei("0x3")]();this.editor.model[ei("0x6")]((()=>{let s=o.getAttribute(ei("0x19"));const r=this[ei("0xe")][ei("0x12")][ei("0xf")](ei("0x1c")).me;for(const t of n[ei("0x1a")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x0")===t.subType&&e===o){t[ei("0xc")]!==r&&t[ei("0xd")](),s=t[ei("0x10")][ei("0x1d")][0][ei("0x18")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x0"),commandParams:[{source:s}]},[],ei("0x0"))}))}[ei("0xb")](t){const{data:e}=t;if(e&&ei("0x0")===e[ei("0x2")]){const t=ei("0x5");return{type:ei("0x7"),content:Yo(this[ei("0xe")][ei("0x4")],t)}}}}const oi=["_trackChangesValueDuringImport","lowest","TrackChangesEditing","high","Users","_setSuggestionData","execute","bind","enableCommand","_handleImportedData","trackChanges","commands","track_changes","importWord","listenTo","_trackChangesExecuted","value","dataInsert","get","plugins"];var si,ri;si=oi,ri=424,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ii("0xb")]=!1}afterInit(){const t=this.editor,e=t[ii("0x7")][ii("0xe")]("importWord"),n=t[ii("0x7")][ii("0xe")]("trackChanges");e&&(e.on(ii("0x2"),((t,[,e])=>{this[ii("0x10")]=n[ii("0xc")],e.collaboration_features[ii("0x8")]=!this[ii("0x10")]}),{priority:ii("0x13")}),this.listenTo(e,ii("0xd"),this._handleImportedData[ii("0x3")](this)),this[ii("0xa")](e,ii("0xd"),(()=>{this._trackChangesExecuted&&(n.execute(),this[ii("0xb")]=!1)}),{priority:ii("0x11")}),t.plugins[ii("0xe")](ii("0x12"))[ii("0x4")](ii("0x9")))}[ii("0x5")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x7")][ii("0xe")](ii("0x6")),s=o[ii("0xc")];this[ii("0x10")]!==s&&(o[ii("0x2")](),this[ii("0xb")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ii("0xf")][ii("0xe")](ii("0x0")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x9")}}};this.editor[ii("0xf")].get("TrackChangesEditing")[ii("0x1")](s)}))}}const ai=["enableCommand","TrackChangesEditing","commandName","getItemLabel","format","model","registerDescriptionCallback","change","_descriptionFactory","*Indent:* %0","get","from","filter","blockIndent","markBlockFormat","editor","getSelectedBlocks","checkAttribute","indentBlock","*Outdent:* %0","plugins","has","locale","afterInit","schema","outdentBlock"];var ci,li;ci=ai,li=263,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x14")](){const t=this.editor,e=t.plugins[ui("0x7")](ui("0x18"));t[ui("0x11")][ui("0x12")]("IndentEditing")&&(e.enableCommand("indent"),e[ui("0x17")]("outdent"));const n=t[ui("0x13")];if(t[ui("0x11")].has("IndentBlock")){for(const n of[ui("0xf"),ui("0x16")])e.enableCommand(n,(()=>{const o=Array[ui("0x8")](this.editor[ui("0x2")].document.selection[ui("0xd")]())[ui("0x9")]((t=>this[ui("0xc")].model[ui("0x15")][ui("0xe")](t,ui("0xa"))));t[ui("0x2")][ui("0x4")]((()=>{for(const t of o)e[ui("0xb")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0xf")})}))}));e[ui("0x5")][ui("0x3")]((t=>{const{data:o}=t;if(!o)return;if(ui("0xf")!=o.commandName&&"outdentBlock"!=o[ui("0x19")])return;const s=t.getItems()[0],r=e[ui("0x5")][ui("0x0")](s);return ui("0xf")==o[ui("0x19")]?{type:ui("0x1"),content:Yo(n,ui("0x6"),r)}:"outdentBlock"==o[ui("0x19")]?{type:ui("0x1"),content:Yo(n,ui("0x10"),r)}:void 0}))}}}var gi,mi,fi=["requires","input","init","enableCommand","get","plugins","TrackChangesEditing","editor"];gi=fi,mi=468,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x4")](){return[Vs.Input]}[hi("0x6")](){this[hi("0x3")][hi("0x1")][hi("0x0")](hi("0x2"))[hi("0x7")](hi("0x5"))}}const bi=["getAttribute","TrackChangesEditing","link","get","_descriptionFactory","isCollapsed","change","markInlineFormat","*Set link:* %0","registerDescriptionCallback","*Remove link*","format","editor","getFirstPosition","document","unlink","plugins","from","model","selection","enableCommand","getFirstRange","commandName","hasAttribute","linkHref","LinkEditing"];var Ei,_i;Ei=bi,_i=336,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this.editor;if(!t[Ti("0x12")].has(Ti("0x1")))return;const e=t[Ti("0x12")][Ti("0x5")](Ti("0x3"));e[Ti("0x16")](Ti("0x4"),((n,o)=>{const s=t[Ti("0x14")][Ti("0x10")][Ti("0x15")];let r=[];if(s[Ti("0x7")]){if(!s[Ti("0x19")](Ti("0x0")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xf")](),Ti("0x0"),s[Ti("0x2")]("linkHref"),t.model);r=[e]}}else r=Array[Ti("0x13")](s.getRanges());t.model[Ti("0x8")]((()=>{for(const t of r)e[Ti("0x9")](t,{commandName:"link",commandParams:[o]})}))})),e[Ti("0x16")](Ti("0x11"),(()=>{const n=this[Ti("0xe")][Ti("0x14")],o=n[Ti("0x10")][Ti("0x15")];n[Ti("0x8")]((()=>{let n=[];n=o[Ti("0x7")]?[(0,Vs.findAttributeRange)(o[Ti("0xf")](),Ti("0x0"),o[Ti("0x2")]("linkHref"),t[Ti("0x14")])]:ms("linkHref",o[Ti("0x17")](),t[Ti("0x14")]);for(const t of n)e[Ti("0x9")](t,{commandName:Ti("0x11"),commandParams:[]})}))})),e[Ti("0x6")][Ti("0xb")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x4")==n[Ti("0x18")]){const t=n.commandParams[0];return{type:Ti("0xd"),content:Yo(o,Ti("0xa"),'"'+t+'"')}}return Ti("0x11")==n[Ti("0x18")]?{type:"format",content:Yo(o,Ti("0xc"))}:void 0}}))}}const yi=["ELEMENT_TODO_LIST","enableCommand","execute","name","plugins","_selectedElements","bulleted","end","replace","todo","bulletedList","isObject","getSelectedBlocks","createRange","document","createPositionAt","registerElementLabel","_descriptionFactory","editor","add","length","*Indent:* %0","findIndex","ELEMENT_NUMBERED_LIST","element","change","paragraph","ELEMENT_LIST_ITEM","selection","commands","nextSibling","outdentList","before","format","previousSibling","getAttribute","ListEditing","listType","push","TodoListEditing","*Uncheck item*","filter","commandName","checkTodoList","slice","*Check item*","listItem","afterInit","blockName","get","listIndent","List","numberedList","model","commandParams","has","forceValue","from","todoListChecked","todoList","*Outdent:* %0","value","schema","locale"];var ki,Ai;ki=yi,Ai=406,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x19")](){const t=this[vi("0x3c")],e=t[vi("0x29")];if(!t[vi("0x2e")].has(vi("0xe")))return;const n=t[vi("0x2e")][vi("0x1b")]("TrackChangesEditing"),o=t[vi("0x2e")][vi("0x21")](vi("0x11"));function s(e){return()=>{const o=t[vi("0x1f")].document[vi("0x6")],s=t[vi("0x7")][vi("0x1b")](e);if(s[vi("0x27")])return void t[vi("0x2c")](vi("0x4"),{});const r=e[vi("0x16")](0,-4),i=function(t,e,n){let o=Array.from(t)[vi("0x13")]((t=>{return e=t,(o=n).checkChild(e.parent,vi("0x18"))&&!o[vi("0x35")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x2"),vi("0x18"))||t[vi("0xd")](vi("0xf"))!=e));const s=new Set;for(const t of o)t.is(vi("0x2"),vi("0x18"))?s.add(Si(t)):s[vi("0x3d")](t);return Array[vi("0x23")](s)}(o.getSelectedBlocks(),r,t.model[vi("0x28")]);t[vi("0x1f")][vi("0x3")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0x27")]}],formatGroupId:vi("0x1a")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x23")](t);const n=e[vi("0x0")]((t=>vi("0x18")!=t[vi("0x2d")]));return n>-1&&(e=e[vi("0x16")](0,n)),e}(t[vi("0x1f")][vi("0x38")][vi("0x6")][vi("0x36")]()),s=t[vi("0x1f")][vi("0x37")](t[vi("0x1f")].createPositionAt(o[0],vi("0xa")),t[vi("0x1f")][vi("0x39")](o[o[vi("0x3e")]-1],vi("0x31")));t[vi("0x1f")][vi("0x3")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[vi("0x8")];for(;t&&t[vi("0xd")](vi("0x1c"))>n[vi("0xd")](vi("0x1c"));)e.add(t),t=t[vi("0x8")]}return Array[vi("0x23")](e)}(o))}))}}n[vi("0x2b")](vi("0x1e"),s(vi("0x1e"))),n[vi("0x2b")](vi("0x34"),s("bulletedList")),o&&n[vi("0x2b")](vi("0x25"),s(vi("0x25"))),n.enableCommand("indentList",r("indentList")),n[vi("0x2b")](vi("0x9"),r(vi("0x9"))),o&&n[vi("0x2b")](vi("0x15"),(()=>{const e=t[vi("0x7")][vi("0x1b")](vi("0x15")),o=Array[vi("0x23")](e[vi("0x2f")]);o.filter((t=>t[vi("0xd")](vi("0x24"))!=e[vi("0x27")])),t[vi("0x1f")][vi("0x3")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[vi("0x27")]}]})}))})),n[vi("0x3b")][vi("0x3a")](vi("0x18"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x3b")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0x1e")==n[vi("0x14")]||vi("0x34")==n[vi("0x14")]||vi("0x25")==n.commandName)switch(n[vi("0x14")][vi("0x32")](vi("0x1d"),"")){case vi("0x30"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,vi("0x1")));case vi("0x33"):return o(Yo(e,vi("0x2a")))}if("indentList"==n[vi("0x14")])return{type:vi("0xb"),content:Yo(e,vi("0x3f"),Yo(e,vi("0x5")))};if(vi("0x9")==n[vi("0x14")])return{type:"format",content:Yo(e,vi("0x26"),Yo(e,vi("0x5")))};if(vi("0x15")==n.commandName)return n[vi("0x20")][0][vi("0x22")]?{type:vi("0xb"),content:Yo(e,vi("0x17"))}:{type:vi("0xb"),content:Yo(e,vi("0x12"))}}function o(t){return{type:"format",content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x1c"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0xc")].is(vi("0x2"),vi("0x18"));){const o=t[vi("0xc")].getAttribute("listIndent");if(o==e)n=t[vi("0xc")];else if(o<e)break;t=t[vi("0xc")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2"),"listItem")&&t[vi("0xd")]("listIndent")>0){let n=t.nextSibling;for(;n&&vi("0x18")==n[vi("0x2d")]&&n.getAttribute(vi("0x1c"))==t.getAttribute(vi("0x1c"));)e[vi("0x10")](n),n=n[vi("0x8")]}return e}const Li=["listReversed","list.properties","model","unshift","commandName","handleListStartCommand","filter","startIndex","listStyle","ListPropertiesEditing","afterInit","type","plugins","registerDescriptionCallback","ListUtils","push","*Change to:* %0","TrackChangesEditing","handleListStyleCommand","getAttribute","change","editor","_getSuggestionBlocks","config","map","length","markMultiRangeBlockFormat","get","commandParams","listStart","getFirstPosition","*Format:* set order to regular","selection","getSelectedBlocks","replace","createPositionAt","enableCommand","forward","listItem","_getSuggestionBlocksForListStyle","numbered","element","bind","has","getLastPosition","_descriptionFactory","toUpperCase","getSiblingNodes","document","styles","reversed","from","before","handleDescriptions","_getTranslationKeyForListStyle","createRange","listType","parent","format","backward","handleListReversedCommand","ELEMENT_"];var Ni,Mi;Ni=Li,Mi=298,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x16")](){if(!this[wi("0x21")][wi("0x18")][wi("0x37")](wi("0x15")))return;const t=this[wi("0x21")][wi("0x23")][wi("0x27")](wi("0xd")),e=this[wi("0x21")][wi("0x18")].get("TrackChangesEditing");t[wi("0x3d")]&&e[wi("0x30")](wi("0x14"),this[wi("0x1e")][wi("0x36")](this)),t[wi("0x0")]&&e[wi("0x30")](wi("0xc"),this[wi("0xa")][wi("0x36")](this)),t[wi("0x13")]&&e[wi("0x30")](wi("0x29"),this.handleListStartCommand[wi("0x36")](this)),e[wi("0x39")][wi("0x19")](this[wi("0x3")][wi("0x36")](this))}[wi("0x1e")](t,e={}){const n=this[wi("0x21")][wi("0x18")][wi("0x27")](wi("0x1d")),o=this._getSuggestionBlocksForListStyle();this[wi("0x21")][wi("0xe")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:wi("0x14"),commandParams:[{type:e[wi("0x17")]}],formatGroupId:wi("0x14")})}))}handleListReversedCommand(t,e={}){const n=this[wi("0x21")].plugins.get("TrackChangesEditing"),o=this[wi("0x22")]((t=>t.is(wi("0x35"),wi("0x32"))&&"numbered"===t[wi("0x1f")]("listType")));if(o[wi("0x25")]<1)return;const s=o[wi("0x24")]((t=>this[wi("0x21")][wi("0xe")][wi("0x5")](this[wi("0x21")][wi("0xe")][wi("0x2f")](t,wi("0x2")),this[wi("0x21")][wi("0xe")][wi("0x2f")](t,0))));this[wi("0x21")][wi("0xe")][wi("0x20")]((()=>{n[wi("0x26")](s,{commandName:wi("0xc"),commandParams:[{reversed:e[wi("0x0")]}],formatGroupId:wi("0xc")})}))}[wi("0x11")](t,e={}){const n=this.editor.plugins.get(wi("0x1d")),o=this[wi("0x22")]((t=>t.is(wi("0x35"),wi("0x32"))&&wi("0x34")===t[wi("0x1f")](wi("0x6"))));if(o[wi("0x25")]<1)return;const s=o[wi("0x24")]((t=>this[wi("0x21")][wi("0xe")].createRange(this[wi("0x21")].model[wi("0x2f")](t,"before"),this[wi("0x21")][wi("0xe")][wi("0x2f")](t,0))));this.editor[wi("0xe")][wi("0x20")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x29"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wi("0x3")](t){const e=this[wi("0x21")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x10")]){case"listStyle":o=wi("0x1c"),s={type:wi("0x8"),content:Yo(e,o,Yo(e,this[wi("0x4")](n.commandParams[0][wi("0x17")])))};break;case wi("0xc"):o=n[wi("0x28")][0][wi("0x0")]?"*Format:* set order to reversed":wi("0x2b"),s={type:wi("0x8"),content:Yo(e,o)};break;case wi("0x29"):o="*Format:* set start index to %0",s={type:wi("0x8"),content:Yo(e,o,n[wi("0x28")][0][wi("0x13")])}}return s}[wi("0x33")](){var t,e,n,o;const s=this.editor.plugins[wi("0x27")]("ListUtils");let r=Array[wi("0x1")](this.editor.model[wi("0x3c")][wi("0x2c")][wi("0x2d")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element","listItem"))&&r[wi("0xf")](...s[wi("0x3b")](this.editor[wi("0xe")][wi("0x3c")][wi("0x2c")].getFirstPosition(),"backward")),(null===(e=r[r[wi("0x25")]-1])||void 0===e?void 0:e.is(wi("0x35"),wi("0x32")))&&r[wi("0x1b")](...s[wi("0x3b")](this[wi("0x21")][wi("0xe")][wi("0x3c")][wi("0x2c")][wi("0x38")](),wi("0x31"))),r=[...new Set(r)],(null===(o=null===(n=this.editor.model[wi("0x3c")].selection[wi("0x2a")]())||void 0===n?void 0:n[wi("0x7")])||void 0===o?void 0:o.is(wi("0x35"),wi("0x32")))&&(r=r[wi("0x12")]((t=>t.is(wi("0x35"),wi("0x32"))))),r}[wi("0x22")](t){const e=this[wi("0x21")][wi("0x18")].get(wi("0x1a"));let n=Array.from(this[wi("0x21")][wi("0xe")][wi("0x3c")][wi("0x2c")][wi("0x2d")]()).filter(t)[wi("0x24")]((t=>{const n=this[wi("0x21")].model[wi("0x2f")](t,0);return[...e[wi("0x3b")](n,wi("0x9")),...e[wi("0x3b")](n,wi("0x31"))]})).flat();return n=[...new Set(n)],n}[wi("0x4")](t){return wi("0xb")+this[wi("0x21")][wi("0x18")].get(wi("0x1a")).getListTypeFromListStyleType(t).toUpperCase()+"_LIST_"+t[wi("0x3a")]()[wi("0x2e")](/-/g,"_")}}const Fi=["afterInit","data","enableCommand","elementToElement","plugins","stop","div","get","downcastDispatcher","showSuggestionHighlights","options","_descriptionFactory","attribute:url:media","conversion","ELEMENT_MEDIA","mediaEmbed","TrackChangesEditing","media","MediaEmbedEditing","has","dataDowncast","high"];var Pi,Di;Pi=Fi,Di=382,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xe")](){const t=this.editor;if(!t[Bi("0x12")][Bi("0xb")](Bi("0xa")))return;const e=t[Bi("0x12")][Bi("0x15")](Bi("0x8")),n=t.locale;e[Bi("0x10")](Bi("0x7")),e[Bi("0x3")].registerElementLabel(Bi("0x9"),(t=>Yo(n,Bi("0x6"),t))),t[Bi("0x5")].for(Bi("0xc"))[Bi("0x11")]({model:Bi("0x9"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x1")])return e.createEmptyElement(Bi("0x14"))},converterPriority:Bi("0xd")}),t[Bi("0xf")][Bi("0x0")].on(Bi("0x4"),((t,e,n)=>{n[Bi("0x2")][Bi("0x1")]&&t[Bi("0x13")]()}),{priority:Bi("0xd")})}}const Ui=["get","MentionEditing","afterInit","enableCommand","plugins","TrackChangesEditing","has","mention"];var Gi,Hi;Gi=Ui,Hi=388,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x6")](){const t=this.editor;t[zi("0x0")][zi("0x2")](zi("0x5"))&&t.plugins[zi("0x4")](zi("0x1"))[zi("0x7")](zi("0x3"))}}const Vi=["afterInit","has","registerElementLabel","_descriptionFactory","plugins","TrackChangesEditing","locale","ELEMENT_PAGE_BREAK","PageBreakEditing","editor"];var Ki,qi;Ki=Vi,qi=208,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x2")](){const t=this[Xi("0x1")];if(!t.plugins[Xi("0x3")](Xi("0x0")))return;t.plugins.get(Xi("0x7")).enableCommand("pageBreak");const e=t[Xi("0x6")].get(Xi("0x7")),n=t[Xi("0x8")];e[Xi("0x5")][Xi("0x4")]("pageBreak",(t=>Yo(n,Xi("0x9"),t)))}}const Ji=["insert","toViewPosition","ELEMENT_PARAGRAPH","*Change to:* %0","downcastDispatcher","activeMarkers","type","selection","Paragraph","paragraph","span","markerRange","highest","isObject","name","getItemLabel","$text","isTouching","afterInit","createUIElement","getFirstRange","locale","checkChild","schema","isBlock","insertParagraph","editor","markerName","*Insert:* %0","change","mapper","ck-suggestion-marker--active","model","has","start","ck-suggestion-marker-split","getSelectedBlocks","showSuggestionHighlights","blockName","addClass","writer","format","plugins","insertion","end","isLimit","editing","consumable","parent","bindElementToMarker","registerElementLabel","data","addMarker:suggestion:insertion","registerDescriptionCallback","nodeAfter","get","enableCommand","TrackChangesEditing"];var Qi,Zi;Qi=Ji,Zi=415,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x9")](){const t=this.editor;if(!t.plugins[Yi("0x18")](Yi("0x39")))return;const e=t[Yi("0xc")],n=t.plugins[Yi("0x2e")](Yi("0x30"));n._descriptionFactory[Yi("0x29")](Yi("0x0"),(t=>Yo(e,Yi("0x33"),t))),n[Yi("0x2f")](Yi("0x0"),((e,o={})=>{const s=t[Yi("0x17")].document,r=o[Yi("0x38")]||s[Yi("0x38")],i=Array.from(r[Yi("0x1b")]()).filter((t=>{return e=t,(n=this[Yi("0x11")][Yi("0x17")][Yi("0xe")]).checkChild(e[Yi("0x27")],Yi("0x0"))&&!n[Yi("0x4")](e)&&"paragraph"!=e[Yi("0x5")];var e,n}));t[Yi("0x17")][Yi("0x14")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x0"),commandParams:[],formatGroupId:Yi("0x1d")},fs(t))}))})),n._descriptionFactory[Yi("0x2c")]((t=>{const{data:n}=t;if(n&&Yi("0x0")==n.commandName)return{type:Yi("0x20"),content:Yo(e,Yi("0x34"),Yo(e,Yi("0x33")))}})),n[Yi("0x2f")](Yi("0x10")),t[Yi("0x25")][Yi("0x35")].on(Yi("0x2b"),ex(t),{priority:Yi("0x3")}),t[Yi("0x2a")][Yi("0x35")].on(Yi("0x2b"),((e,n,o)=>{o.options[Yi("0x1c")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x3")});const o=n._descriptionFactory;o[Yi("0x2c")]((n=>{if(Yi("0x22")!==n[Yi("0x37")])return;const{start:s,end:r}=n[Yi("0xb")]();if(!s[Yi("0x8")](r)||!s[Yi("0x2d")])return;const i=t[Yi("0x17")][Yi("0xe")],x=s.nodeAfter;return i.isBlock(x)&&!i[Yi("0x24")](x)&&i[Yi("0xd")](x,Yi("0x7"))?{type:Yi("0x22"),content:Yo(e,Yi("0x13"),o[Yi("0x6")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x21")][Yi("0x2e")](Yi("0x30")),i=o[Yi("0x2")][Yi("0x19")],x=o[Yi("0x2")][Yi("0x23")],a=t[Yi("0x17")][Yi("0xe")];if(!i.isTouching(x)||!i[Yi("0x2d")])return;const c=i.nodeAfter;if(a[Yi("0xf")](c)&&!a[Yi("0x24")](c)&&a.checkChild(c,Yi("0x7"))){if(!s[Yi("0x26")].consume(o.markerRange,n[Yi("0x5")]))return;const t=s[Yi("0x1f")][Yi("0xa")](Yi("0x1"),{class:Yi("0x1a")}),i=s.mapper[Yi("0x32")](x);e&&r[Yi("0x36")].includes(o[Yi("0x12")])&&s[Yi("0x1f")][Yi("0x1e")](Yi("0x16"),t),s[Yi("0x1f")][Yi("0x31")](i,t),s[Yi("0x15")][Yi("0x28")](t,o[Yi("0x12")])}}}const nx=["isFormatting","plugins","from","RemoveFormatEditing","get","getAttributes","afterInit","removeFormat","isCollapsed","*Remove all formatting*","document","_descriptionFactory","getItems","model","getAttributeProperties","commandName","has","getRanges","createRangeOn","editor","selection","change"];var ox,sx;ox=nx,sx=372,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x8")](){const t=this[rx("0x15")];if(!t.plugins[rx("0x12")](rx("0x5")))return;const e=t[rx("0x3")][rx("0x6")]("TrackChangesEditing");e.enableCommand("removeFormat",(n=>{const o=t.model[rx("0xc")][rx("0x0")];o[rx("0xa")]?n():t.model[rx("0x1")]((()=>{const n=Array[rx("0x4")](o[rx("0x13")]());for(const o of n)for(const n of o[rx("0xe")]())xx(n,t[rx("0xf")].schema)&&e.markInlineFormat(t[rx("0xf")][rx("0x14")](n),{commandName:rx("0x9"),commandParams:[]})}))})),e[rx("0xd")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0x9")==n[rx("0x11")])return{type:"format",content:Yo(t.locale,rx("0xb"))}}))}}function xx(t,e){for(const[n]of t[rx("0x7")]()){const t=e[rx("0x10")](n);if(t&&t[rx("0x2")])return!0}return!1}const ax=["TrackChangesEditing","enableCommand","RestrictedEditingModeEditing","afterInit","trackChanges","acceptSuggestion","acceptSelectedSuggestions","editor","get","goToNextRestrictedEditingException","discardSuggestion","has","plugins","discardSelectedSuggestions"];var cx,lx;cx=ax,lx=176,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x9")](){const t=this[ux("0xd")];if(!t[ux("0x4")][ux("0x3")](ux("0x8")))return;const e=t[ux("0x4")][ux("0x0")](ux("0x6"));e.enableCommand("goToPreviousRestrictedEditingException"),e[ux("0x7")](ux("0x1"));const n=t[ux("0x4")].get(ux("0x8"));n[ux("0x7")](ux("0xa")),n.enableCommand(ux("0xb")),n[ux("0x7")](ux("0x2")),n[ux("0x7")]("acceptAllSuggestions"),n[ux("0x7")]("discardAllSuggestions"),n.enableCommand(ux("0xc")),n[ux("0x7")](ux("0x5"))}}const gx=["plugins","addMarker:suggestion:deletion","addClass","addMarker:suggestion:insertion","ck-suggestion-marker--active","markerRange","showSuggestionHighlights","consumable","TrackChangesEditing","options","editing","enableCommand","ELEMENT_LINE_BREAK","writer","model","span","split","getItems","createUIElement","addMarker:suggestion","high","insert","merge","downcastDispatcher","requires","get","shiftEnter","activeMarkers","mapper","softBreak","ck-suggestion-marker-","init","registerElementLabel","test","markerName","name","element"];var mx,fx;mx=gx,fx=315,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x5")](){return[nr.ShiftEnter]}[hx("0xc")](){const t=this.editor,e=t[hx("0x12")][hx("0x6")](hx("0x1a"));e[hx("0x1d")](hx("0x7")),t[hx("0x1c")][hx("0x4")].on(hx("0x15"),bx(t),{priority:hx("0x1")}),t.editing[hx("0x4")].on(hx("0x13"),bx(t),{priority:hx("0x1")}),t.data.downcastDispatcher.on(hx("0x0"),((e,n,o)=>{o[hx("0x1b")][hx("0x18")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[hx("0xd")]("softBreak",(e=>Yo(t.locale,hx("0x1e"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x12")][hx("0x6")](hx("0x1a"));if(!s[hx("0x19")][hx("0xe")](o[hx("0x17")],n[hx("0x10")]))return;const i=t[hx("0x20")];for(const t of o[hx("0x17")][hx("0x23")]()){if(!t.is(hx("0x11"),hx("0xa")))continue;const n="deletion"==o[hx("0xf")][hx("0x22")](":")[1]?hx("0x3"):hx("0x22"),x=s[hx("0x1f")][hx("0x24")](hx("0x21"),{class:hx("0xb")+n}),a=s[hx("0x9")].toViewPosition(i.createPositionBefore(t));e&&r[hx("0x8")].includes(o[hx("0xf")])&&s[hx("0x1f")][hx("0x14")](hx("0x16"),x),s[hx("0x1f")][hx("0x2")](a,x),s[hx("0x9")].bindElementToMarker(x,o.markerName)}}}const Ex=["restrictedEditingException","getRanges","isCollapsed","forceValue","plugins","locale","_descriptionFactory","afterInit","get","FORMAT_RESTRICTED_DISABLED","markInlineFormat","commandParams","selection","FORMAT_RESTRICTED_ENABLED","change","editor","value","enableCommand","from","commandName","format"];var _x,Tx;_x=Ex,Tx=367,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x12")](){const t=this[Cx("0x5")],e=t.model,n=t[Cx("0x10")];if(!t[Cx("0xf")].has("StandardEditingModeEditing"))return;const o=t[Cx("0xf")][Cx("0x13")]("TrackChangesEditing"),s=Cx("0xb"),r=t.commands[Cx("0x13")](s);o[Cx("0x7")](s,((t,n={})=>{const i=e.document[Cx("0x2")];if(i[Cx("0xd")])return void t(n);const x=void 0!==n[Cx("0xe")]?n.forceValue:!r[Cx("0x6")];e[Cx("0x4")]((()=>{const t=Array[Cx("0x8")](i[Cx("0xc")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x0")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x11")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Cx("0x9")]==s)return e[Cx("0x1")][0][Cx("0xe")]?{type:Cx("0xa"),content:Yo(n,Cx("0x3"))}:{type:Cx("0xa"),content:Yo(n,Cx("0x14"))}}))}}const kx=["every","_getRangesWithClasses","config","registerDescriptionCallback","getAncestors","block","locale","has","_descriptionFactory","push","format","StyleUtils","styleName","plugins","editor","document","selection","commandName","style","modelElements","commandParams","add","DataSchema","model","from","createRangeOn","toLowerCase","name","style:","forceValue","get","change","getSelectedBlocks","isBlock","Style","*Remove format:* %0","getItems","commands","find","element","style.definitions","_getStyleDefinition","afterInit","value","includes","classes","enableCommand"];var Ax,vx;Ax=kx,vx=471,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x29")](){const t=this[Rx("0xd")];if(!t[Rx("0xc")][Rx("0x6")](Rx("0x21")))return;const e=t[Rx("0x24")].get("style"),n=t.plugins[Rx("0x1d")]("TrackChangesEditing"),o=t[Rx("0x5")],s=t[Rx("0xc")].get(Rx("0x15")),r=t[Rx("0xc")][Rx("0x1d")](Rx("0xa")).normalizeConfig(s,t[Rx("0x1")][Rx("0x1d")](Rx("0x27")));n[Rx("0x2d")](Rx("0x11"),((o,{styleName:i})=>{const x=t.model[Rx("0xe")][Rx("0xf")],a=this._getStyleDefinition(i,r);if(!a)return;if(!e.enabledStyles[Rx("0x2b")](i))return;if(x.isCollapsed&&!a[Rx("0x20")])return void o({styleName:i});const c=!e[Rx("0x2a")][Rx("0x2b")](a[Rx("0x1a")]);if(a[Rx("0x20")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x3")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x2b")](o[Rx("0x1a")])){n[Rx("0x14")](o);break}}return n}(x[Rx("0x1f")](),a[Rx("0x12")]);t[Rx("0x16")][Rx("0x1e")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x1b")+i})}))}else{let e=Array[Rx("0x17")](x.getRanges());if(!c){const n=Array.from(s.getDefinitionsForView(a[Rx("0x26")],!1))[0][Rx("0x16")],o=[];for(const s of e){const e=this[Rx("0x0")](t[Rx("0x16")],s,a.classes,n);o[Rx("0x8")](...e)}e=o}t[Rx("0x16")][Rx("0x1e")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x7")][Rx("0x2")]((t=>{const{data:e}=t;if(e&&Rx("0x11")===e[Rx("0x10")])return e[Rx("0x13")][0][Rx("0x1c")]?{type:Rx("0x9"),content:Yo(o,"*Format:* %0",e.commandParams[0][Rx("0xb")][Rx("0x19")]())}:{type:Rx("0x9"),content:Yo(o,Rx("0x22"),e[Rx("0x13")][0].styleName[Rx("0x19")]())}}))}[Rx("0x28")](t,e){let n=e[Rx("0x4")][Rx("0x25")]((e=>e[Rx("0x1a")]===t));return n||(n=e.inline.find((e=>e.name===t))),n}[Rx("0x0")](t,e,n,o){const s=[];for(const r of e[Rx("0x23")]()){const e=r.getAttribute(o);e&&n[Rx("0x2e")]((t=>e[Rx("0x2c")][Rx("0x2b")](t)))&&s.push(t[Rx("0x18")](r))}return s}}const Ix=["item","toLowerCase","removeTableColumn","order","every","minRow","markMultiRangeInsertion","insertTableColumnLeft","ELEMENT_TABLE","createTableWalker","setSelection","toViewElement","map","markMultiRangeDeletion","registerCustomCallback","element","locale","discard","refresh","some","ELEMENT_TABLE_COLUMN","MIN_SAFE_INTEGER","insertion","getSuggestion","low","getColumnIndexes","getFirstRange","type","isIntersectingWithRange","highest","filter","oldRange","subType","editor","nodeAfter","ELEMENT_TABLE_COLUMN_WITH_TEXT","change","fromRange","tableColumn","addRange","left","span","afterInit","_getCoordsForCells","change:data","findAncestor","getCellLocation","ELEMENT_TABLE_ROW","isInContent","enqueueChange","_suggestionFactory","_getSuggestionCoords","classes","document","plugins","deletion","cell","insertTableRowBelow","from","substr","first","getChangedMarkers","ELEMENT_TABLE_WITH_TEXT","_tablePostFixingSubtypes","$textProxy","TableUtils","mapper","commands","values","_splitMarkerName","*Insert:* %0","isEqual","_setupColumnsRowsFixing","selectTableColumn","writer","tableCell","_descriptionFactory","accept","insertTableRowAbove","*Remove:* %0","min","getItems","length","detach","removeClass","batch","add","_tableSuggestions","registerDescriptionCallback","TrackChangesEditing","downcastDispatcher","enableCommand","name","getAttribute","registerPostFixer","get","$graveyard","start","nodeBefore","getRanges","minColumn","above","createPositionAt","getRowIndexes","max","rowspan","_acceptFormatSuggestionCallbackFactory","last","join","createRangeOn","insert","execute","hasAttribute","getSelectionAffectedTableCells","includes","push","colspan","position","removeTableRow","showSuggestionHighlights","isTouching","ELEMENT_TABLE_ROW_WITH_TEXT","data","model","tableRow","table","MAX_SAFE_INTEGER","root","rootName","end"];var Lx,Nx;Lx=Ix,Nx=319,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=["tableRow",Mx("0x6d")],this[Mx("0x1c")]=new Set}[Mx("0x71")](){const t=this[Mx("0x68")],e=t[Mx("0x40")][Mx("0x7c")].selection;if(!t[Mx("0x7d")].has("TableEditing"))return;const n=t[Mx("0x57")],o=t.plugins[Mx("0x24")](Mx("0x1e")),s=t.plugins[Mx("0x24")](Mx("0x6"));o[Mx("0x11")].registerElementLabel("table",(t=>Yo(n,Mx("0x4f"),t))),this[Mx("0xd")](),o[Mx("0x20")]("insertTable"),o.enableCommand("selectTableRow"),o[Mx("0x20")](Mx("0xe"));for(const n of[Mx("0x13"),Mx("0x80")]){const r=t[Mx("0x8")].get(n);o[Mx("0x20")](n,(n=>{t[Mx("0x40")][Mx("0x6b")]((t=>{n();const i=Mx("0x2a")===r[Mx("0x4a")],x=s.getSelectionAffectedTableCells(e),a=s[Mx("0x2c")](x),c=i?a[Mx("0x1")]-1:a.last+1,l=x[0][Mx("0x74")](Mx("0x42")),u=s[Mx("0x50")](l,{startRow:c,endRow:c}),d=Array[Mx("0x81")](u)[Mx("0x53")]((e=>t.createRangeOn(e[Mx("0x7f")])));o[Mx("0x4d")](d,Mx("0x41"))}))}))}for(const n of[Mx("0x4e"),"insertTableColumnRight"]){const r=t[Mx("0x8")][Mx("0x24")](n);o[Mx("0x20")](n,(n=>{t.model[Mx("0x6b")]((t=>{n();const i=Mx("0x6f")===r[Mx("0x4a")],x=s[Mx("0x36")](e),a=s.getColumnIndexes(x),c=i?a.first-1:a[Mx("0x30")]+1,l=x[0].findAncestor("table"),u=s[Mx("0x50")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Mx("0x53")]((e=>t[Mx("0x32")](e[Mx("0x7f")])));o[Mx("0x4d")](d,Mx("0x6d"))}))}))}for(const n of[Mx("0x3b"),Mx("0x49")]){const r=n[Mx("0x0")](11),i=r[Mx("0x48")](),x=i[Mx("0x0")](0,3)+Mx("0x70"),a=Mx("0x42")+r,c=Mx("0x15")+r,l=Mx("0x2d")+r;o[Mx("0x20")](n,(()=>{t[Mx("0x40")][Mx("0x6b")]((t=>{const r=s[Mx("0x36")](e),u=r[0][Mx("0x74")](Mx("0x42"));let d;if(Mx("0x3b")==n){const t=s[Mx("0x2c")](r);d={startRow:t[Mx("0x1")],endRow:t[Mx("0x30")],includeAllSlots:!0}}else{const t=s[Mx("0x60")](r);d={startColumn:t.first,endColumn:t[Mx("0x30")],includeAllSlots:!0}}const g=s[Mx("0x50")](u,d),m=Array[Mx("0x81")](g)[Mx("0x53")]((({cell:t})=>t)),f=Ox(m[Mx("0x65")]((t=>t[Mx("0x35")](x)))),h=Ox(m[Mx("0x65")]((t=>!t[Mx("0x35")](x)))).map((e=>t[Mx("0x32")](e))),p=o[Mx("0x54")](h,a);if(p&&(Mx("0x41")==p[Mx("0x67")]||Mx("0x6d")==p.subType)){const e=this[Mx("0x7a")](p);for(const n of f){const o=t[Mx("0x32")](n),r=s[Mx("0x75")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Mx("0x6e")](o)}}}))}))}function r(n){const o=Array[Mx("0x81")](e[Mx("0x28")]())[Mx("0x53")]((t=>i.LiveRange.fromRange(t)));t[Mx("0x40")][Mx("0x6b")]((e=>{const s=e[Mx("0x1a")];n=n[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")].rootName)),e[Mx("0x51")](n),t[Mx("0x8")][Mx("0x24")](Mx("0x3b"))[Mx("0x59")](),t.execute(Mx("0x3b"),{forceDefaultExecution:!0}),t[Mx("0x40")][Mx("0x78")]((()=>{t.model[Mx("0x78")](s,(t=>{const e=o[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")][Mx("0x45")]));e.length>0&&t[Mx("0x51")](e);for(const t of o)t[Mx("0x18")]()}))}))}))}function a(n){t.model[Mx("0x6b")]((o=>{const s=Array[Mx("0x81")](e[Mx("0x28")]())[Mx("0x53")]((t=>i.LiveRange[Mx("0x6c")](t))),r=[];for(const t of n)for(const e of t[Mx("0x16")]({shallow:!0}))r.push(e);for(const e of r)Mx("0x25")!=e[Mx("0x44")][Mx("0x45")]&&(o[Mx("0x51")](o[Mx("0x2b")](e,0)),t.commands[Mx("0x24")](Mx("0x49"))[Mx("0x59")](),t[Mx("0x34")](Mx("0x49"),{forceDefaultExecution:!0}));const x=s[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")][Mx("0x45")]));x[Mx("0x17")]>0&&o.setSelection(x);for(const t of s)t[Mx("0x18")]()}))}function c(t,e){return e[Mx("0x4b")]((e=>t[Mx("0x5a")]((t=>t[Mx("0x46")][Mx("0xc")](e[Mx("0x26")])||e.end[Mx("0xc")](t[Mx("0x26")])))))}function l(t,e){return t[Mx("0x5a")]((t=>e.some((e=>t[Mx("0x46")][Mx("0x3d")](e[Mx("0x26")])))))}t[Mx("0x3f")][Mx("0x1f")].on("addMarker:suggestion",((t,e,n)=>{if(!n.options[Mx("0x3c")])return;const o=e[Mx("0x47")];if(!o)return;const s=n[Mx("0x7")][Mx("0x52")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Mx("0x10")===o[Mx("0x21")]&&(0,x.setHighlightHandling)(s,n[Mx("0xf")],((t,e,n)=>n.addClass(r(e[Mx("0x7b")]),t)),((t,e,n)=>n[Mx("0x19")](r(e[Mx("0x7b")]),t)))}),{priority:Mx("0x64")}),o[Mx("0x11")][Mx("0x1d")]((t=>{if("insertion"!=t[Mx("0x62")]&&Mx("0x7e")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(Mx("0x56"),"table")){if(Mx("0x5d")==t[Mx("0x62")]){const e=t[Mx("0x16")]()[Mx("0x65")]((t=>t.is(Mx("0x5"))))[Mx("0x53")]((t=>t.data));if(e[Mx("0x17")])return{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x3"),'"'+e.join(" ")+'"'))}}if(Mx("0x7e")==t[Mx("0x62")]){const e=t[Mx("0x16")]()[Mx("0x65")]((t=>t.is(Mx("0x5"))))[Mx("0x53")]((t=>t[Mx("0x3f")]));if(e[Mx("0x17")])return{type:"deletion",content:Yo(n,Mx("0x14"),Yo(n,Mx("0x3"),'"'+e.join(" ")+'"'))}}}})),o[Mx("0x11")].registerDescriptionCallback((t=>{if(Mx("0x41")==t[Mx("0x67")]){const e=t.getItems().filter((t=>t.is("$textProxy"))).map((t=>t[Mx("0x3f")])),o=this[Mx("0x7a")](t),s=o.maxRow-o[Mx("0x4c")]+1;if("insertion"==t[Mx("0x62")])return e.length?{type:"insertion",content:Yo(n,Mx("0xb"),Yo(n,Mx("0x3e"),[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x76"),s))};if(Mx("0x7e")==t[Mx("0x62")])return e[Mx("0x17")]?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x3e"),[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x7e"),content:Yo(n,Mx("0x14"),Yo(n,Mx("0x76"),s))}}if("tableColumn"==t[Mx("0x67")]){const e=t[Mx("0x16")]()[Mx("0x65")]((t=>t.is(Mx("0x5"))))[Mx("0x53")]((t=>t.data)),o=this[Mx("0x7a")](t),s=o.maxColumn-o[Mx("0x29")]+1;if(Mx("0x5d")==t[Mx("0x62")])return e[Mx("0x17")]?{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x6a"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x5b"),s))};if(Mx("0x7e")==t[Mx("0x62")])return e[Mx("0x17")]?{type:Mx("0x7e"),content:Yo(n,Mx("0x14"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x7e"),content:Yo(n,Mx("0x14"),Yo(n,Mx("0x5b"),s))}}})),o[Mx("0x79")][Mx("0x55")](Mx("0x5d"),Mx("0x41"),Mx("0x58"),r),o._suggestionFactory.registerCustomCallback(Mx("0x7e"),Mx("0x41"),Mx("0x12"),r),o[Mx("0x79")][Mx("0x55")]("insertion","tableColumn",Mx("0x58"),a),o[Mx("0x79")][Mx("0x55")](Mx("0x7e"),"tableColumn","accept",a),o[Mx("0x79")][Mx("0x55")](Mx("0x5d"),"tableColumn",Mx("0x31"),c),o[Mx("0x79")].registerCustomCallback(Mx("0x7e"),"tableColumn",Mx("0x31"),c),o._suggestionFactory[Mx("0x55")]("insertion",Mx("0x41"),Mx("0x31"),l),o[Mx("0x79")][Mx("0x55")](Mx("0x7e"),Mx("0x41"),Mx("0x31"),l)}[Mx("0x2f")](){const t=this[Mx("0x68")],e=t.model[Mx("0x7c")].selection;return(n,o)=>{t[Mx("0x40")][Mx("0x6b")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Mx("0x27")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start.nodeAfter);const c=s.createRangeIn(a);if(Mx("0x25")==c.root[Mx("0x45")])return;const l=Array[Mx("0x81")](e[Mx("0x28")]()).map((t=>i.LiveRange.fromRange(t)));s[Mx("0x51")](c),t[Mx("0x8")][Mx("0x24")](r)[Mx("0x59")](),x[Mx("0x38")]({forceDefaultExecution:!0}),t.execute(r,...x);const u=l[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")][Mx("0x45")]));u[Mx("0x17")]>0&&s[Mx("0x51")](u);for(const t of l)t[Mx("0x18")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x68")][Mx("0x7d")][Mx("0x24")](Mx("0x6"));let n=Number[Mx("0x43")],o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x43")],r=Number[Mx("0x5c")];for(const i of t){if(Mx("0x25")==i[Mx("0x44")].rootName)continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x35")](Mx("0x2e"))?i.getAttribute(Mx("0x2e"))-1:0,c=i[Mx("0x35")](Mx("0x39"))?i[Mx("0x22")](Mx("0x39"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[Mx("0x68")],e=t.plugins[Mx("0x24")](Mx("0x1e")),n=t[Mx("0x7d")].get(Mx("0x6"));t[Mx("0x40")][Mx("0x7c")].on(Mx("0x73"),(()=>{const n=Array[Mx("0x81")](t[Mx("0x40")][Mx("0x7c")].differ[Mx("0x2")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0xa")](t);if("suggestion"!=n)continue;if(null!=o[Mx("0x66")])continue;const i=e[Mx("0x5e")](s);this[Mx("0x4")][Mx("0x37")](r)&&this[Mx("0x1c")][Mx("0x1b")](i)}}),{priority:Mx("0x5f")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x32")](t),r=t[Mx("0x74")]("table"),i=n[Mx("0x75")](t);for(const e of this[Mx("0x1c")]){const n=e[Mx("0x67")],x=n.startsWith("tablePaste"),a=n[Mx("0x0")](x?10:5),c=a.toLowerCase(),l=c[Mx("0x0")](0,3)+Mx("0x70"),u="min"+a,d=Mx("0x2d")+a;if(!e[Mx("0x77")])continue;if(r!=e[Mx("0x61")]()[Mx("0x26")][Mx("0x74")](Mx("0x42")))continue;if(e[Mx("0x63")](s))continue;const g=t.hasAttribute(l)?t.getAttribute(l)-1:0,m=this[Mx("0x7a")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x6e")](s),o=!0)}return o};t[Mx("0x40")][Mx("0x7c")][Mx("0x23")]((e=>{let n=!1;for(const s of t[Mx("0x40")].document.differ.getChanges())if(Mx("0x33")==s[Mx("0x62")])if("tableRow"==s[Mx("0x21")])for(const t of s[Mx("0x3a")].nodeAfter.getChildren())n=n||o(t,e);else Mx("0x10")==s[Mx("0x21")]&&(n=n||o(s.position[Mx("0x69")],e));return n}))}[Mx("0x7a")](t){return this[Mx("0x72")](t[Mx("0x28")]()[Mx("0x53")]((t=>t.start[Mx("0x69")])))}}function Ox(t){return Array[Mx("0x81")](new Set(t)[Mx("0x9")]())}const Fx=["highest","tableCell","execute","enableCommand","fromRange","cell","registerDescriptionCallback","getSelectionAffectedTableCells","horizontally","commands","TableUtils","mergeTableCellUp","find","TrackChangesEditing","getRanges","mergeTableCellLeft","setSelection","trackChanges","size","createTableWalker","stop","from","isEnabled","requires","locale","registerCustomCallback","markBlockFormat","markMultiRangeBlockFormat","_areMergableCells","editor","*Merge cells*","element","return","containsRange","author","map","add","_areSelectedCellsMergable","selection","low","getFirstPosition","change","push","filter","findAncestor","*Split cell:* vertically","rootName","createRangeOn","accept","_acceptFormatSuggestionCallbackFactory","has","length","direction","mergeTableCellDown","splitTableCellHorizontally","plugins","get","root","model","afterInit","getAncestors","formatBlock","type","detach","value","format","commandName","_suggestionFactory","_tablePostFixingSubtypes","subType","document","set:isEnabled","refresh","mergeTableCells","mergeTableCellRight","isInContent","insertion","table","splitTableCellVertically"];var Px,Dx;Px=Fx,Dx=424,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x49")](){return[wx]}[Bx("0x1e")](){const t=this[Bx("0x0")],e=t[Bx("0x1d")][Bx("0x29")].selection,n=t[Bx("0x4a")];if(!t[Bx("0x1a")][Bx("0x15")]("TableEditing"))return;const o=t[Bx("0x1a")][Bx("0x1b")](Bx("0x3f")),s=t[Bx("0x1a")].get(Bx("0x3c")),r=t[Bx("0x1a")][Bx("0x1b")](wx);r[Bx("0x27")][Bx("0xd")](Bx("0x2c")),o.enableCommand("mergeTableCells",(()=>{const e=s[Bx("0x39")](t[Bx("0x1d")][Bx("0x29")][Bx("0x9")]);t.model[Bx("0xc")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:Bx("0x2c"),commandParams:[]},[],Bx("0x2c"))}))})),t[Bx("0x3b")][Bx("0x1b")]("mergeTableCells").on(Bx("0x34"),((e,n)=>{t.commands[Bx("0x1b")](Bx("0x43")).value&&(n.length>0&&n[n[Bx("0x16")]-1]&&n[n.length-1].forceDefaultExecution||o._isForcedDefaultExecutionBlock||this[Bx("0x8")]()||e[Bx("0x46")]())}),{priority:Bx("0x32")});for(const e of[Bx("0x3d"),Bx("0x2d"),Bx("0x18"),Bx("0x41")]){const n=t.commands[Bx("0x1b")](e);o[Bx("0x35")](e,(()=>{const e=t[Bx("0x1d")][Bx("0x29")][Bx("0x9")][Bx("0xb")]().getAncestors().find((t=>t.is(Bx("0x2"),Bx("0x33")))),s=n[Bx("0x23")];t[Bx("0x1d")][Bx("0xc")]((()=>{o[Bx("0x4d")]([e,s],{commandName:Bx("0x2c"),commandParams:[]},[],Bx("0x2c"))}))}))}for(const e of["splitTableCellVertically",Bx("0x19")]){const n=t[Bx("0x3b")][Bx("0x1b")](e);o.enableCommand(e,(()=>{const r=s.getSelectionAffectedTableCells(t[Bx("0x1d")][Bx("0x29")].selection)[0],i=r[Bx("0xf")](Bx("0x30")),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Bx("0x3a")==n[Bx("0x17")]){const t=s[Bx("0x45")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x6")]((t=>t[Bx("0x37")]))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0x47")](t)[Bx("0x6")]((t=>t[Bx("0x37")]))}t[Bx("0x1d")][Bx("0xc")]((t=>{o[Bx("0x4c")](t[Bx("0x12")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Bx("0x38")]((t=>{const{data:e}=t;if(e)return Bx("0x2c")==e[Bx("0x25")]?{type:Bx("0x24"),content:Yo(n,Bx("0x1"))}:void 0})),o._descriptionFactory[Bx("0x38")]((t=>{const{data:e}=t;if(e)return Bx("0x31")==e[Bx("0x25")]?{type:"format",content:Yo(n,Bx("0x10"))}:Bx("0x19")==e[Bx("0x25")]?{type:Bx("0x24"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x14")]();for(const t of[Bx("0x3d"),Bx("0x2d"),"mergeTableCellDown","mergeTableCellLeft"])o[Bx("0x26")][Bx("0x4b")](Bx("0x20"),t,Bx("0x13"),x);for(const t of[Bx("0x31"),"splitTableCellHorizontally"])o[Bx("0x26")][Bx("0x4b")](Bx("0x20"),t,Bx("0x13"),x);o._suggestionFactory[Bx("0x4b")](Bx("0x20"),Bx("0x2c"),Bx("0x13"),(n=>{t[Bx("0x1d")][Bx("0xc")]((o=>{const s=Array.from(e[Bx("0x40")]()).map((t=>i.LiveRange[Bx("0x36")](t)));o.setSelection(n),t.commands[Bx("0x1b")](Bx("0x2c"))[Bx("0x2b")](),t[Bx("0x34")](Bx("0x2c"),{forceDefaultExecution:!0});const r=s[Bx("0xe")]((t=>"$graveyard"!=t[Bx("0x1c")][Bx("0x11")]));r[Bx("0x16")]>0&&o[Bx("0x42")](r);for(const t of s)t[Bx("0x22")]()}))}));for(const e of[Bx("0x3d"),Bx("0x18"),Bx("0x41"),Bx("0x2d")]){const n=t.commands[Bx("0x1b")](e);n.on(Bx("0x2a"),((e,o,s)=>{if(s){const o=t[Bx("0x1d")][Bx("0x29")][Bx("0x9")][Bx("0xb")]()[Bx("0x1f")]()[Bx("0x3e")]((t=>t.is("element",Bx("0x33"))));this._areMergableCells(n[Bx("0x23")],o)||(e[Bx("0x3")]=!1,e[Bx("0x46")]())}}),{priority:Bx("0xa")})}}[Bx("0x8")](){const t=this[Bx("0x0")][Bx("0x3b")][Bx("0x1b")](Bx("0x2c")),e=this[Bx("0x0")][Bx("0x1a")][Bx("0x1b")](Bx("0x3c"));if(!t[Bx("0x48")])return!1;const n=e[Bx("0x39")](this.editor.model[Bx("0x29")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x4e")](t,e))return!1;return!0}[Bx("0x4e")](t,e){const n=this[Bx("0x0")][Bx("0x1a")].get("TrackChangesEditing"),o=this[Bx("0x0")][Bx("0x1d")][Bx("0x12")](t),s=this[Bx("0x0")].model[Bx("0x12")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if((Bx("0x2f")==t[Bx("0x21")]||"deletion"==t[Bx("0x21")]||"mergeTableCells"==t[Bx("0x28")])&&t[Bx("0x2e")])for(const e of t[Bx("0x40")]())e[Bx("0x4")](o,!0)&&r[Bx("0x7")](t[Bx("0x21")]+":"+t[Bx("0x5")].id),e[Bx("0x4")](s,!0)&&i.add(t.type+":"+t[Bx("0x5")].id);if(r[Bx("0x44")]!=i[Bx("0x44")])return!1;for(const t of r)if(!i[Bx("0x15")](t))return!1;return!0}}const Ux=["nodeBefore","FORMAT_HEADER_ROW","table","_suggestionFactory","createRange","model","stop","FORMAT_REGULAR_ROW","highest","getColumnIndexes","_descriptionFactory","index","document","createPositionBefore","removeClass","markerNameToElements","enableCommand","setAttribute","activeMarkers","_splitMarkerName","setTableRowHeader","registerCustomCallback","data-suggestion","TableUtils","removeMarker:suggestion","getRowIndexes","getAttribute","name","findAncestor","from","parent","markerRange","getChild","editing","formatBlock","ck-suggestion-marker--active","item","cell","TrackChangesEditing","isBefore","headingRows","showSuggestionHighlights","plugins","nodeAfter","data","forceValue","consumable","createPositionAfter","downcastDispatcher","removeAttribute","markBlockFormat","markerName","commands","headingColumns","consume","locale","mapper","setTableColumnHeader","ck-suggestion-marker-","selection","get","editor","commandName","change","afterInit","childCount","end","first","getSuggestion","getCellLocation","addMarker:suggestion","FORMAT_HEADER_COLUMN","getSelectionAffectedTableCells","commandParams","TableEditing","createTableWalker","last","writer","requires","start","value","accept","addClass","*Format:* %0","bindElementToMarker","has"];var Gx,Hx;Gx=Ux,Hx=399,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x17")](){return[wx]}[zx("0x9")](){const t=this[zx("0x6")];if(!t.plugins[zx("0x1e")](zx("0x13")))return;const e=t[zx("0x0")],n=t[zx("0x49")].get(zx("0x45")),o=t[zx("0x49")][zx("0x5")]("TableUtils"),s=t[zx("0x49")].get(wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x32")](r[zx("0x52")]),c=n[zx("0xd")](a);if(!c.data||zx("0x2")!=c[zx("0x4b")][zx("0x7")])return;if(r[zx("0x43")])return void s[zx("0x25")]();if(!i[zx("0x4d")][zx("0x55")](r[zx("0x3e")],s[zx("0x3a")]))return;const l=r[zx("0x3e")][zx("0x18")][zx("0x4a")],u=r[zx("0x3e")][zx("0xb")][zx("0x1f")],d=l.parent[zx("0x3d")],{column:g}=o[zx("0xe")](l),{column:m}=o[zx("0xe")](u);for(let s=g;s<=m;s++){const c=o[zx("0x14")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x44")],c=i[zx("0x1")].toViewElement(s);i[zx("0x16")][zx("0x1b")](zx("0x3")+x,c),e&&i[zx("0x16")][zx("0x30")](zx("0x35"),a,c),i[zx("0x1")][zx("0x1d")](c,r[zx("0x52")]),t&&(n[zx("0x31")].includes(r[zx("0x52")])?i[zx("0x16")][zx("0x1b")]("ck-suggestion-marker--active",c):i.writer[zx("0x2d")](zx("0x42"),c))}}}}n.enableCommand(zx("0x33"),((e,s)=>{const r=o[zx("0x11")](t[zx("0x24")][zx("0x2b")][zx("0x4")]),i=o[zx("0x38")](r),x=r[0][zx("0x3b")](zx("0x21")),a=x[zx("0x39")](zx("0x47"))||0,c=s&&null!==s.forceValue?s[zx("0x4c")]:!t[zx("0x53")].get(zx("0x33")).value,l=c?i[zx("0x15")]:i.first,u=x.getChild(l);let d;if(c){const e=x[zx("0x3f")](a);if(u[zx("0x2a")]<e.index)return;d=t.model[zx("0x23")](t[zx("0x24")][zx("0x2c")](e[zx("0x3f")](0)),t[zx("0x24")].createPositionAfter(u[zx("0x3f")](u[zx("0xa")]-1)))}else{const e=x[zx("0x3f")](a-1);if(!e)return;d=t[zx("0x24")][zx("0x23")](t[zx("0x24")][zx("0x2c")](u[zx("0x3f")](0)),t[zx("0x24")][zx("0x4e")](e[zx("0x3f")](e[zx("0xa")]-1)))}t.model[zx("0x8")]((()=>{n[zx("0x51")](d,{commandName:zx("0x33"),commandParams:[{forceValue:c}]},[],zx("0x33"))}))})),n[zx("0x2f")](zx("0x2"),((e,o)=>{const s=t.plugins[zx("0x5")](zx("0x36")),r=s[zx("0x11")](t[zx("0x24")].document[zx("0x4")]),i=s[zx("0x28")](r),x=r[0][zx("0x3b")](zx("0x21")),a=x[zx("0x39")](zx("0x54"))||0,c=o&&null!==o[zx("0x4c")]?o[zx("0x4c")]:!t[zx("0x53")][zx("0x5")](zx("0x2"))[zx("0x19")];let l;const u=x[zx("0x3f")](0),d=c?i[zx("0x15")]:i[zx("0xc")],g=s[zx("0x14")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x3c")](g)[0][zx("0x44")];if(c){const e=u[zx("0x3f")](a);if(m[zx("0x46")](e))return;l=t[zx("0x24")][zx("0x23")](t.model[zx("0x2c")](e),t[zx("0x24")].createPositionAfter(m))}else{const e=u[zx("0x3f")](a-1);if(!e)return;l=t[zx("0x24")][zx("0x23")](t[zx("0x24")][zx("0x2c")](m),t[zx("0x24")].createPositionAfter(e))}t[zx("0x24")][zx("0x8")]((()=>{n.markBlockFormat(l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],zx("0x2"))}))})),t[zx("0x40")][zx("0x4f")].on(zx("0xf"),r(),{priority:"highest"}),t.data[zx("0x4f")].on("addMarker:suggestion",((t,e,n)=>{n.options[zx("0x48")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x27")}),t[zx("0x40")][zx("0x4f")].on(zx("0x37"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x32")](e.markerName),i=n.getSuggestion(r);if(!i[zx("0x4b")]||zx("0x2")!=i.data[zx("0x7")])return;const x=o[zx("0x1")][zx("0x2e")](e.markerName);if(x)for(const t of x)o.writer[zx("0x2d")](zx("0x3")+s,t),o[zx("0x16")].removeClass(zx("0x42"),t),o[zx("0x16")][zx("0x50")](zx("0x35"),t),o.mapper.unbindElementFromMarkerName(t,e.markerName)}),{priority:"highest"}),n[zx("0x29")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x33")==n[zx("0x7")]){const t=n[zx("0x12")][0].forceValue;return o(Yo(e,zx(t?"0x20":"0x26")))}if(zx("0x2")==n[zx("0x7")]){const t=n.commandParams[0].forceValue;return o(Yo(e,t?zx("0x10"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:"format",content:Yo(e,zx("0x1c"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[zx("0x22")][zx("0x34")](zx("0x41"),"setTableRowHeader",zx("0x1a"),i),n[zx("0x22")][zx("0x34")](zx("0x41"),"setTableColumnHeader",zx("0x1a"),i)}}const Vx=["ck-suggestion-marker--active","_suggestionFactory","clipboardOutput","ck-suggestion-marker-insertion","author","removeColumns","push","tableCellHorizontalAlignment","schema","tableCellBackgroundColor","registerPostFixer","registerDescriptionCallback","hasSuggestion","deletionRanges","tableCellPadding","insertion","tableCellBorderWidth","tablePasteChainId","getContainedElement","table","_descriptionFactory","fill","newRange","_isForcedDefaultExecutionBlock","filter","_splitMarkerName","wrap","suggestion:formatBlock:tablePasteCell","stop","start","dataDowncast","markMultiRangeDeletion","tableCellBorderStyle","suggestionUnloaded","cell","TableClipboard","from","previousSibling","createTableWalker","columns","registerCustomCallback","getSuggestions","deletion","for","commands","paragraph","getAttributes","selection","getSelectionAffectedTableCells","afterInit","getRange","Users","fromEntries","suggestion-td","has","content","join","column","row","keys","reduce","rows","documentSelection","get","getChanges","tableCell","insert","set","getSuggestion","rowInsertionIndexes","map","next","markMultiRangeBlockFormat","activeMarkers","getAllAdjacentSuggestions","_replaceTableSlotCell","cells","end","_getCoordsForCells","showSuggestionHighlights","document","length","*Replace table cells*","createElement","listenTo","updateMarker","rowInsertionRanges","markerName","markerToHighlight","name","register","startsWith","createPositionBefore","accept","tablePasteRow","getColumns","remove","move","editingDowncast","last","isEmpty","getMarkers","getColumnIndexes","ck-suggestion-marker","tableCellSuggestion","some","conversion","getChildren","getRanges","type","markMultiRangeInsertion","insertRows","formatBlock","createRange","findAncestor","value","removeRows","differ","markers","plugins","columnInsertionIndexes","nextSibling","discard","getShiftedBy","requires","removeMarker","batch","element","getItems","model","insertionRanges","getChild","TrackChangesEditing","includes","attributes","isInContent","tablePaste","redo","entries","oldRange","getSuggestionCallback","_tablePostFixingSubtypes","isEqual","nodeAfter","insertContent","getRowIndexes","high","createRangeOn","markerAttributes","add","getChangedMarkers","editor","return","forceDefaultExecution","insertColumns","view","_createdBatches","options","position","tablePasteColumn","root","change","previous","createRangeIn","suggestionLoaded","subType","tablePasteCell"];var Kx,qx;Kx=Vx,qx=476,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x29"),"tableCellBorderColor",Xx("0x39"),Xx("0x20"),"tableCellVerticalAlignment",Xx("0x22"),Xx("0x27")],Jx=Object[Xx("0x4d")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x95")](){return[wx]}[Xx("0x4a")](){const t=this[Xx("0x9")];if(!t[Xx("0x90")][Xx("0x4f")](Xx("0x3c")))return;const n=t[Xx("0x90")][Xx("0x58")](Xx("0x9d")),o=t[Xx("0x90")].get("TableUtils"),s=t[Xx("0x90")][Xx("0x58")](wx),r=t[Xx("0x90")][Xx("0x58")]("TableClipboard");s[Xx("0xa6")][Xx("0x1f")](Xx("0x77"),Xx("0x11")),t[Xx("0x9a")][Xx("0x21")][Xx("0x73")](Xx("0x81"),{allowIn:Xx("0x5a"),allowContentOf:Xx("0x5a"),isLimit:!0}),t[Xx("0x83")].elementToElement({model:Xx("0x81"),view:Xx("0x4e")});let i=null;t[Xx("0x9a")].on(Xx("0x2"),((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Xx("0xb")]||n[Xx("0x30")]||this.editor[Xx("0x45")].get("trackChanges")[Xx("0x8c")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x57")))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x49")](n[Xx("0x69")][Xx("0x48")]);if(!i[Xx("0x6a")])return!1;const x=i[0][Xx("0x8b")](Xx("0x2c")),a=o[Xx("0x3")](i),c=o[Xx("0x7f")](i),l={startRow:a.first,endRow:a[Xx("0x7c")],startColumn:c.first,endColumn:c[Xx("0x7c")]};return 1==i[Xx("0x6a")]&&(l.endRow+=o.getRows(r)-1,l.endColumn+=o[Xx("0x78")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x9a")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x9a")].change((()=>{t[Xx("0x9a")][Xx("0x2")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[Xx("0x87")](s,"tablePasteRow",{tablePasteChainId:o}),r[Xx("0x6a")]&&n.markMultiRangeInsertion(r,Xx("0x11"),{tablePasteChainId:o}),a[Xx("0x6a")]&&n[Xx("0x87")](a,Xx("0xa1"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x38")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xx("0x61")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u[Xx("0x7e")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Xx("0x5")](o),i=e.find((t=>t[Xx("0x4b")]().isEqual(r)));i&&n.push([i[Xx("0x72")],s])}n.length&&u.setAttribute("markerAttributes",Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x4")]+10}),t[Xx("0x90")][Xx("0x58")](Xx("0x3c")).on(Xx("0x64"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x35")]();const r=n[Xx("0x3b")],x=o,a=Zx(r),c=Zx(x);t[Xx("0xa")]=r;let l=null,u=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x9c")](0));for(const t of Array[Xx("0x3d")](x[Xx("0x84")]()))s[Xx("0x5b")](t,r,Xx("0x66"));const t=i[Xx("0x5e")][Xx("0x9e")](n[Xx("0x53")]),e=i.columnInsertionIndexes[Xx("0x9e")](n[Xx("0x52")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(u=s.createRangeIn(r));else{const t=s[Xx("0x6c")](Xx("0x81")),e=s[Xx("0x6c")]("tableCellSuggestion");s[Xx("0x33")](s[Xx("0x15")](r),e),s[Xx("0x5b")](t,r,0);for(const e of Array.from(x[Xx("0x84")]()))s[Xx("0x5b")](e,t,Xx("0x66"));l=s[Xx("0x5")](t),u=s[Xx("0x5")](e)}const d=Array[Xx("0x3d")](x[Xx("0x47")]())[Xx("0x31")]((([t])=>$x[Xx("0x9e")](t)));i[Xx("0x65")][Xx("0x1f")]({element:r,attributes:d.length?Object.fromEntries(d):null}),l&&i[Xx("0x9b")][Xx("0x1f")](l),u&&i[Xx("0x26")][Xx("0x1f")](u)}),{priority:Xx("0x4")}),o.on(Xx("0xc"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x40")]||1;i[Xx("0x91")]=new Array(a)[Xx("0x2e")](x)[Xx("0x5f")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x3f")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t[Xx("0x9a")][Xx("0x5")](e))}),{priority:"low"}),o.on(Xx("0x88"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x56")]||1;i[Xx("0x5e")]=new Array(a)[Xx("0x2e")](x)[Xx("0x5f")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x3f")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x6f")].push(t[Xx("0x9a")][Xx("0x5")](e))}),{priority:"low"}),n[Xx("0x2d")][Xx("0x24")]((e=>{if(e[Xx("0x17")]&&e.subType[Xx("0x74")](Xx("0xa1")))return e[Xx("0x14")]?{}:{type:"insertion",content:Yo(t.locale,Xx("0x6b"))}}));const x=()=>{};for(const t of[Xx("0xa1"),Xx("0x11"),Xx("0x77"),"tablePasteCell"])n[Xx("0x1a")][Xx("0x41")](Xx("0x28"),t,Xx("0x51"),x),n[Xx("0x1a")].registerCustomCallback(Xx("0x43"),t,"join",x);n[Xx("0x1a")][Xx("0x41")](Xx("0x89"),Xx("0x18"),Xx("0x93"),x),n[Xx("0x1a")][Xx("0x41")](Xx("0x89"),Xx("0x18"),"accept",((e,n,o)=>{const s=e[Xx("0x5f")]((t=>t[Xx("0x2b")]()))[Xx("0x31")]((t=>t)),r=new Map(s[Xx("0x5f")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x65")])e&&r[Xx("0x5c")](t,e);else if(o&&o[Xx("0x6")])for(const[e,n]of Object[Xx("0xa3")](o[Xx("0x6")])){const o=t[Xx("0x9a")][Xx("0x8f")][Xx("0x58")](e),s=o?o.getRange().getContainedElement():null;s&&r[Xx("0x5c")](s,n)}t[Xx("0x9a")][Xx("0x13")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Xx("0x41")](e,Xx("0xa1"),o,((s,r,i)=>{t[Xx("0x9a")][Xx("0x13")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x36")][Xx("0x1")];e.is(Xx("0x98"),Xx("0x81"))&&x.push(e)}n[Xx("0x1a")][Xx("0xa5")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[Xx("0x12")].rootName&&t.unwrap(e)}))}))};a("insertion","accept"),a(Xx("0x28"),Xx("0x93")),a(Xx("0x43"),Xx("0x76")),a(Xx("0x43"),Xx("0x93")),n[Xx("0x1a")][Xx("0x41")]("insertion",Xx("0x77"),Xx("0x93"),(t=>{const e=t[Xx("0x5f")]((t=>t[Xx("0x2b")]())),n=e[0][Xx("0x8b")](Xx("0x2c")),{minRow:r,maxRow:i}=s[Xx("0x67")](e);o[Xx("0x8d")](n,{at:r,rows:i-r+1})})),n[Xx("0x1a")][Xx("0x41")](Xx("0x28"),Xx("0x11"),Xx("0x93"),(t=>{const e=t[Xx("0x5f")]((t=>t[Xx("0x2b")]())),n=e[0].findAncestor("table"),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[Xx("0x1e")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x17")]||!e[Xx("0x17")].startsWith(Xx("0xa1")))return;const o=e[Xx("0x9f")][Xx("0x2a")],s=n[Xx("0x42")]()[Xx("0x31")]((t=>t[Xx("0xa0")]&&t[Xx("0x9f")]&&t.attributes.tablePasteChainId==o));s[Xx("0x6a")]&&e[Xx("0x63")]().length!=s.length&&s[Xx("0x55")](((t,e)=>(t[Xx("0x60")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x32")](t[Xx("0x70")]),s=[Xx("0x80"),Xx("0x1c")],r=n[Xx("0x62")][Xx("0x9e")](t.markerName);return r&&s[Xx("0x1f")](Xx("0x19")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x16"),c,{priority:Xx("0x4")}),n.on(Xx("0x3a"),c,{priority:Xx("0x4")}),t.model[Xx("0x69")][Xx("0x23")]((()=>{let e=!1;const o=Array[Xx("0x3d")](t.model[Xx("0x69")][Xx("0x8e")][Xx("0x8")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x32")](s);if("suggestion"!=o||Xx("0x43")!=i||r[Xx("0xa4")])continue;if(!n[Xx("0x25")](x))continue;const a=n[Xx("0x5d")](x).getRanges(),c=t[Xx("0x90")].get(Xx("0x4c")).me;for(const t of n.getSuggestions())if(t[Xx("0xa0")]&&t[Xx("0x1d")]==c&&Xx("0x89")==t.type&&"tablePasteCell"==t.subType&&t[Xx("0x85")]().every((t=>a[Xx("0x82")]((e=>e.containsRange(t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Xx("0xa0")]&&(n[Xx("0x93")](),e=!0)}return e})),t.model[Xx("0x69")][Xx("0x23")]((e=>{const o=t[Xx("0x45")][Xx("0x58")](Xx("0xa2"));if(!o||!o[Xx("0xe")][Xx("0x4f")](e[Xx("0x97")]))return!1;let s=!1;const r=t[Xx("0x90")].get(Xx("0x4c")).me,i=t[Xx("0x9a")][Xx("0x69")][Xx("0x8e")][Xx("0x59")](),x=Array.from(t[Xx("0x9a")][Xx("0x69")][Xx("0x8e")].getChangedMarkers()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x32")](t);return"suggestion"==o&&Xx("0xa1")==s&&i==r.id&&!e[Xx("0xa4")]}));for(const t of i){if(Xx("0x5b")!=t[Xx("0x86")]||Xx("0x81")!=t.name||1!=t[Xx("0x6a")])continue;const n=e[Xx("0x8a")](t[Xx("0x10")],t[Xx("0x10")][Xx("0x94")](1));if(!x.find((({data:t})=>t[Xx("0x2f")][Xx("0x0")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Xx("0x2f")])){e[Xx("0x6e")](t,{range:n}),s=!0;break}}return s})),t[Xx("0x9a")][Xx("0x69")][Xx("0x23")]((e=>{let o=!1;const s=t.plugins[Xx("0x58")](Xx("0x4c")).me,r=n[Xx("0x42")]()[Xx("0x31")]((t=>t[Xx("0xa0")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[Xx("0x17")])for(const e of t.getMarkers()){const n=e[Xx("0x4b")]()[Xx("0x2b")]();if(n)if(n.is(Xx("0x98"),"tableCellSuggestion")&&Zx(n)){t[Xx("0x96")](e[Xx("0x72")]),i.add(n),o=!0;const s=n[Xx("0x92")],r=n[Xx("0x3e")],a=s&&s.is(Xx("0x98"),Xx("0x81")),c=r&&r.is(Xx("0x98"),Xx("0x81"));a&&!i[Xx("0x4f")](s)&&x[Xx("0x7")](s),c&&!i[Xx("0x4f")](r)&&x[Xx("0x7")](r)}else n.is(Xx("0x98"),"paragraph")&&n[Xx("0x7d")]&&(t[Xx("0x96")](e.name),o=!0)}else if("tablePasteCell"==t[Xx("0x17")]){if(!t[Xx("0x9f")]||!t[Xx("0x9f")][Xx("0x2a")])continue;const e=t[Xx("0x9f")][Xx("0x6")];if(e&&Object[Xx("0x54")](e)[Xx("0x6a")])continue;const n=t.attributes[Xx("0x2a")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x17")]&&e.subType[Xx("0x74")]("tablePaste")){if(!e[Xx("0x9f")][Xx("0x2a")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x9f")][Xx("0x2a")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x79")](t);for(const t of x)e.unwrap(t);return o})),t.conversion[Xx("0x44")](Xx("0x7b")).markerToHighlight({model:Xx("0x34"),view:(t,e)=>l(t),converterPriority:Xx("0x4")}),t[Xx("0x83")].for(Xx("0x37"))[Xx("0x71")]({model:Xx("0x34"),view:(t,e)=>e[Xx("0xf")][Xx("0x68")]?l(t,!1):null,converterPriority:Xx("0x4")});const u=t.editing[Xx("0xd")];this[Xx("0x6d")](u.document,Xx("0x1b"),((t,e)=>{const n=[];for(const t of u[Xx("0x15")](e[Xx("0x50")])[Xx("0x99")]())t.is(Xx("0x98"),"suggestion-td")&&n[Xx("0x1f")](t);u.change((t=>{for(const e of n)t[Xx("0x7a")](t[Xx("0x15")](e),t[Xx("0x75")](e)),t[Xx("0x79")](e)}))}))}}function Zx(t){if(t[Xx("0x7d")])return!0;const e=t[Xx("0x9c")](0);return e.is(Xx("0x98"),Xx("0x46"))&&e[Xx("0x7d")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x3f")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["_descriptionFactory","formatGroupId","document","tableWidth","subType","resizeColumnWidths","*Format:* resize table","bind","commandParams","author","table","editor","enableCommand","resizeTable","registerDescriptionCallback","TrackChangesEditing","model","discard","plugins","accept","handleResizeTableWidthCommand","getTableColumnsWidths","getColumnGroupElement","selection","get","locale","resizeTableWidth","_suggestionFactory","has","data","registerCustomCallback","handleSuggestionDescription","getSuggestionCallback","getAttribute","columnWidths","format","formatBlock","markBlockFormat"];var ea,na;ea=ta,na=281,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this[oa("0x22")][oa("0x3")][oa("0xd")]("TableColumnResizeEditing"))return;const t=this[oa("0x22")][oa("0x3")][oa("0x9")](oa("0x0"));t[oa("0x23")]("resizeTableWidth",this[oa("0x5")][oa("0x1e")](this)),t[oa("0x23")](oa("0x1c"),this[oa("0x5")].bind(this)),t[oa("0xc")][oa("0xf")](oa("0x15"),oa("0x24"),oa("0x4"),t[oa("0xc")][oa("0x11")]("formatBlock",null,oa("0x2"))),t._suggestionFactory.registerCustomCallback("formatBlock",oa("0x24"),oa("0x2"),t[oa("0xc")][oa("0x11")](oa("0x15"),null,oa("0x4"))),t[oa("0x17")][oa("0x25")](this[oa("0x10")][oa("0x1e")](this))}[oa("0x5")](t,e){const n=this[oa("0x22")].plugins[oa("0x9")](oa("0x0")),o=this[oa("0x22")][oa("0x3")][oa("0x9")]("TableColumnResizeEditing"),s=e[oa("0x21")]||this[oa("0x22")][oa("0x1")][oa("0x19")][oa("0x8")].getSelectedElement();this.editor[oa("0x1")].change((()=>{const r=o[oa("0x7")](s);let i=r?o[oa("0x6")](r):null,x=s[oa("0x12")](oa("0x1a"))||null;const a=e.tableWidth||x,c=e[oa("0x13")]||i,l=this[oa("0x22")][oa("0x3")][oa("0x9")]("Users").me;for(const t of n.getSuggestions()){const e=t.getContainedElement();if(oa("0x24")===t[oa("0x1b")]&&e===s){t[oa("0x20")]!==l&&t[oa("0x2")]();const e=t[oa("0xe")][oa("0x1f")];x=e[0][oa("0x1a")],i=e[0][oa("0x13")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x16")](s,{commandName:oa("0xb"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x24")},[],oa("0x24"))}))}[oa("0x10")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x18")]){const t=oa("0x1d");return{type:oa("0x14"),content:Yo(this.editor[oa("0xa")],t)}}}}const ra=["Template","get","plugins","insertTemplate","afterInit","TrackChangesEditing"];var ia,xa;ia=ra,xa=114,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x4")](){const t=this.editor;t[aa("0x2")].has(aa("0x0"))&&t[aa("0x2")][aa("0x1")](aa("0x5")).enableCommand(aa("0x3"))}}const la=["TrackChangesEditing","afterInit","commands","get","tableOfContents","plugins","ELEMENT_TABLE_OF_CONTENTS","_descriptionFactory","insertTableOfContents","locale"];var ua,da;ua=la,da=493,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x8")](){const t=this.editor;if(!t[ga("0x9")][ga("0x0")](ga("0x5")))return;t[ga("0x2")].get("TrackChangesEditing").enableCommand("insertTableOfContents");const e=t[ga("0x2")][ga("0x0")](ga("0x7")),n=t[ga("0x6")];e[ga("0x4")].registerElementLabel(ga("0x1"),(t=>Yo(n,ga("0x3"),t)))}}const fa=["title-content","getNearestSelectionRange","start","model","updateMarker","document","registerPostFixer","Title","has","differ","get","afterInit","_splitMarkerName","getChangedMarkers","locale","schema","editor","createRange","element","suggestion","isCollapsed","forward","ELEMENT_TITLE","end","newRange"];var ha,pa;ha=fa,pa=236,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x0")](){const t=this[ba("0x5")];if(!t.plugins[ba("0x16")](ba("0x15")))return;const e=t.plugins[ba("0x18")]("TrackChangesEditing");e._descriptionFactory.registerElementLabel(ba("0xe"),(()=>Yo(t[ba("0x3")],ba("0xb")))),t[ba("0x11")][ba("0x13")][ba("0x14")]((n=>{let o=!1;const s=Array.from(t[ba("0x11")][ba("0x13")][ba("0x17")][ba("0x2")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x1")](r);if(ba("0x8")!==s||!i[ba("0xd")])continue;const x=i[ba("0xd")],a=x[ba("0xc")].nodeBefore;if(!a||!a.is(ba("0x7"),ba("0xe")))continue;if(!x[ba("0x10")].isTouching(x[ba("0xc")]))continue;const c=t[ba("0x11")][ba("0x4")][ba("0xf")](x.end,ba("0xa"));if(c&&c[ba("0x9")]){const t=n[ba("0x6")](x[ba("0x10")],c[ba("0x10")]);t.isEqual(x)||(n[ba("0x12")](r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["editor","has","redo","plugins","TrackChangesEditing","undo","get","enableCommand"];var Ta,Ca;Ta=_a,Ca=145,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x7")],e=t[ya("0x2")][ya("0x5")](ya("0x3"));t[ya("0x2")][ya("0x0")]("UndoEditing")&&(e[ya("0x6")](ya("0x4")),e[ya("0x6")](ya("0x1")))}}const Aa=["editor","get","toggleTableCaption","TrackChangesEditing","TableCaptionEditing","requires","plugins","enableCommand"];var va,Ra;va=Aa,Ra=458,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x3")](){return[wx]}afterInit(){const t=this[Sa("0x6")];t[Sa("0x4")].has(Sa("0x2"))&&t[Sa("0x4")][Sa("0x7")](Sa("0x1"))[Sa("0x5")](Sa("0x0"))}}const La=["config","DocumentListUtils","listStart","TrackChangesEditing","styles","handleListReversedCommand","_getSuggestionBlocks","isFirstBlockOfListItem","getSelectedBlocks","has","model","filter","_descriptionFactory","listStyle","*Format:* set start index to %0","get","handleListStartCommand","afterInit","*Format:* set order to regular","handleDescriptions","push","list.properties","handleListStyleCommand","selection","ELEMENT_","getListTypeFromListStyleType","from","reversed","document","markMultiRangeBlockFormat","startIndex","getAttribute","listReversed","enableCommand","_LIST_","registerDescriptionCallback","commandName","listType","format","editor","*Format:* set order to reversed","DocumentListPropertiesEditing","_getSuggestionBlocksForListStyle","isListItemBlock","expandListBlocksToCompleteList","numbered","commandParams","locale","toUpperCase","type","change","bind","plugins","DocumentListPropertiesUtils","replace","length","_getTranslationKeyForListStyle"];var Na,Ma;Na=La,Ma=257,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x2d")](){if(!this[wa("0xa")][wa("0x17")][wa("0x25")](wa("0xc")))return;const t=this[wa("0xa")][wa("0x1c")][wa("0x2b")](wa("0x31")),e=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f"));t[wa("0x20")]&&e.enableCommand(wa("0x29"),this.handleListStyleCommand[wa("0x16")](this)),t[wa("0x37")]&&e.enableCommand(wa("0x3"),this[wa("0x21")][wa("0x16")](this)),t[wa("0x1")]&&e[wa("0x4")](wa("0x1e"),this.handleListStartCommand[wa("0x16")](this)),e[wa("0x28")][wa("0x6")](this.handleDescriptions[wa("0x16")](this))}[wa("0x32")](t,e={}){const n=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f")),o=this._getSuggestionBlocksForListStyle();this[wa("0xa")][wa("0x26")][wa("0x15")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:wa("0x29"),commandParams:[{type:e[wa("0x14")]}],formatGroupId:wa("0x29")})}))}[wa("0x21")](t,e={}){const n=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f")),o=this[wa("0xa")].plugins[wa("0x2b")](wa("0x1d")),s=this[wa("0x22")]((t=>o[wa("0xe")](t)&&wa("0x10")===t[wa("0x2")](wa("0x8"))));null!==s&&this[wa("0xa")][wa("0x26")].change((()=>{n[wa("0x0")](s,{commandName:wa("0x3"),commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}[wa("0x2c")](t,e={}){const n=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f")),o=this[wa("0xa")].plugins[wa("0x2b")](wa("0x1d")),s=this._getSuggestionBlocks((t=>o[wa("0xe")](t)&&wa("0x10")===t[wa("0x2")](wa("0x8"))));null!==s&&this[wa("0xa")][wa("0x26")].change((()=>{n[wa("0x0")](s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wa("0x2f")](t){const e=this[wa("0xa")][wa("0x12")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x7")]){case wa("0x29"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0][wa("0x14")])))};break;case wa("0x3"):o=n.commandParams[0].reversed?wa("0xb"):wa("0x2e"),s={type:wa("0x9"),content:Yo(e,o)};break;case"listStart":o=wa("0x2a"),s={type:wa("0x9"),content:Yo(e,o,n[wa("0x11")][0][wa("0x1")])}}return s}[wa("0xd")](){const t=this.editor[wa("0x17")][wa("0x2b")](wa("0x1d"));let e=Array[wa("0x36")](this[wa("0xa")][wa("0x26")][wa("0x38")][wa("0x33")].getSelectedBlocks());return e[wa("0x30")](...t[wa("0xf")](e)),e=[...new Set(e)],e}[wa("0x22")](t){const e=this.editor[wa("0x17")].get(wa("0x1d"));let n=Array.from(this[wa("0xa")][wa("0x26")][wa("0x38")][wa("0x33")][wa("0x24")]())[wa("0x27")](t);if(!n[wa("0x1a")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[wa("0x23")](t)&&o[wa("0x30")](t);return o}[wa("0x1b")](t){return wa("0x34")+this[wa("0xa")].plugins[wa("0x2b")](wa("0x18"))[wa("0x35")](t)[wa("0x13")]()+wa("0x5")+t[wa("0x13")]()[wa("0x19")](/-/g,"_")}}const Fa=["TableCellPropertiesEditing","plugins","enableCommand","getSuggestions","afterInit","tableCellVerticalAlignment","tableHeight","_descriptionFactory","handleDiscardAction","get","pluginName","getSuggestionCallback","tableBorderWidth","tableCellBorderWidth","registerCustomCallback","findAncestor","_getSuggestion","change","tableCellHeight","*Format:* change table cell properties","model","tableCellHorizontalAlignment","data","markBlockFormat","tableProperties","tableCellWidth","format","subType","discard","accept","TrackChangesEditing","getAttribute","editor","tableCellPadding","handleSuggestionDescription","tableCellProperties","_handlePropertyChange","_suggestionFactory","locale","formatBlock","document","selection","tableBorderStyle","table","join","*Format:* change table properties","getFirstPosition","getSelectionAffectedTableCells","TablePropertiesEditing","has","nodeAfter","TrackChangesTableProperties","tableWidth","batch","tableCellBorderColor"];var Pa,Da;Pa=Fa,Da=218,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x1a")]=["tableBorderColor",Ba("0x2c"),Ba("0xe"),"tableAlignment",Ba("0x36"),Ba("0x8"),"tableBackgroundColor"],this[Ba("0x25")]=[Ba("0x1"),"tableCellBorderStyle",Ba("0xf"),Ba("0x23"),Ba("0x1b"),Ba("0x14"),"tableCellBackgroundColor",Ba("0x17"),Ba("0x7")]}static get[Ba("0xc")](){return Ba("0x35")}[Ba("0x6")](){const t=this[Ba("0x22")][Ba("0x3")][Ba("0xb")]("TrackChangesEditing");if(this.editor[Ba("0x3")].has(Ba("0x32"))){for(const e of this[Ba("0x1a")])t[Ba("0x4")](e,((t,n)=>{const o=this.editor[Ba("0x16")][Ba("0x2a")][Ba("0x2b")][Ba("0x30")]()[Ba("0x11")](Ba("0x2d"));this[Ba("0x26")](e,[o],this[Ba("0x1a")],Ba("0x1a"),t,n)}));t[Ba("0x27")].registerCustomCallback(Ba("0x29"),Ba("0x1a"),Ba("0x1f"),t._suggestionFactory[Ba("0xd")](Ba("0x29"),null,Ba("0x1e"))),t[Ba("0x27")][Ba("0x10")]("formatBlock",Ba("0x1a"),Ba("0x1e"),((t,e)=>this[Ba("0xa")](this.tableProperties,t,e))),t[Ba("0x27")][Ba("0x10")](Ba("0x29"),"tableProperties",Ba("0x2e"),(()=>!1))}if(this[Ba("0x22")][Ba("0x3")][Ba("0x33")](Ba("0x2"))){for(const e of this[Ba("0x25")])t[Ba("0x4")](e,((t,n)=>{const o=this[Ba("0x22")][Ba("0x3")][Ba("0xb")]("TableUtils")[Ba("0x31")](this[Ba("0x22")][Ba("0x16")][Ba("0x2a")][Ba("0x2b")]);this[Ba("0x26")](e,o,this[Ba("0x25")],Ba("0x25"),t,n)}));t[Ba("0x27")][Ba("0x10")](Ba("0x29"),Ba("0x25"),Ba("0x1f"),t[Ba("0x27")][Ba("0xd")](Ba("0x29"),null,"discard")),t[Ba("0x27")][Ba("0x10")](Ba("0x29"),Ba("0x25"),Ba("0x1e"),((t,e)=>this[Ba("0xa")](this[Ba("0x25")],t,e))),t[Ba("0x27")][Ba("0x10")](Ba("0x29"),"tableCellProperties",Ba("0x2e"),(()=>!1))}t[Ba("0x9")].registerDescriptionCallback((t=>this[Ba("0x24")](t)))}[Ba("0x26")](t,e,n,o,s,r){const i=this[Ba("0x22")].plugins[Ba("0xb")](Ba("0x20"));this[Ba("0x22")][Ba("0x16")].enqueueChange(r[Ba("0x0")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x21")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x19")](t,{commandParams:[e]},[],o)}}))}[Ba("0xa")](t,e,n){const o=e[0].start[Ba("0x34")],s=n.commandParams[0];this[Ba("0x22")][Ba("0x16")][Ba("0x13")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x18")])switch(t[Ba("0x1d")]){case Ba("0x1a"):return{type:Ba("0x1c"),content:Yo(this[Ba("0x22")][Ba("0x28")],Ba("0x2f"))};case Ba("0x25"):return{type:"format",content:Yo(this.editor[Ba("0x28")],Ba("0x15"))}}}[Ba("0x12")](t,e){const n=this[Ba("0x22")].plugins.get(Ba("0x20"));for(const o of n[Ba("0x5")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Ua=["execute","for","getFirstMarker","_enabledCommands","end","getChanges","filter","removed","suggestion","_saved","_findSuggestions","nodeAfter","_createSuggestion","notReady","$marker","isBefore","formatInline:discard","deletion:","document","createdAt","addMarker","removeComment","data-suggestion","trackChanges.mergeNestedSuggestions","isAtStart","push","item","_splitMarkerName","insertion","createPositionAt","createElement","before","marker-count","targetPosition","registerPostFixer","updateSuggestion","acceptSelectedSuggestions","_removeSuggestion","insertContent","formatInline:join","normal","deletion:chain","size","move","external:","_rangeIsInLocalUserInsertion","ck-suggestion-marker","isNextTo","markers","markerToHighlight","isAtEnd","_setSuggestionData","PendingActions","_updateSuggestionData","getAllAdjacentSuggestions","containsRangeInObject","_suggestionState","insertion:discard","clone","getRange","markInsertion","enableReadOnlyMode","updateMarker","remove","getAttribute","deletion:accept","CommentsRepository","toViewElement","track-changes-suggestion-data-mismatch","addMarkerName","addComment","isObject","formatInline:accept","multipleBlocks","fetchCommentThread","deleteContent","value","insertion:","accept","author","adapter","getChangedMarkers","previous","_commentsRepository","markMultiRangeDeletion","track-changes-suggestion-not-found","getSuggestions","includes","removeMarkers","init","multi","discardSuggestion","stop","formatInline:chain","getMarkers","skipNestingCheck","sort","change:data","addMarker:suggestion:formatBlock","discard","insertion:accept","always","then","isBlock","trackChanges","start","change:activeMarkers","batch","consumable","$textProxy","ck-suggestion-marker-","default","data","enqueueChange","unbindElementFromMarkerName","addSuggestion","nodeBefore","some","name","markerReady","dataReady","_addSuggestionMarker","parent","conversion","join","mapper","_adapter","forceDefaultExecution","addSuggestionData","addHighlight","highest","isRemovable","formatBlock","add","unbind","track-changes-user-not-found","getCustomProperty","isIntersectingWithRange","range","@external","markDeletion","track-changes-command-not-found","formatBlock:","removeClass","elementToElement","config","isOwn","has","attributes","setAttribute","_defaultCallbacks","writer","getLastMatchingPosition","formatInline:","activeMarkers","_breakSuggestionMarker","trackChanges.trackFormatChanges","element","backward","_getExternalAuthor","rethrowUnexpectedError","update:suggestion","stopListening","isMultiRange","isDocumentOperation","listenTo","newRange","options","resolve","hasComments","fire","getNearestSelectionRange","buildSuggestion","commandName","track-changes-adapter-missing-getsuggestion","bindElementToMarker","subType","getUser","_mergeNestedSuggestions","schema","markMultiRangeInsertion","oldRange","_descriptionFactory","_onDiscard","removeMarker","isInContent","_setSuggestionRange","acceptAllSuggestions","markerName","isSelectable","getItems","get","ck-suggestion-marker-formatBlock","plugins","addRange","acceptSuggestion","formatGroupId","registerCustomCallback","type","clear","getSuggestion","pluginName","markBlockFormat","moveTargetPosition","reconvertMarker","formatInline","containsPosition","markerNameToElements","fromRange","change","consume","position","_isForcedDefaultExecutionBlock","dataDowncast","trackChangesCommand","PENDING_ACTION_SUGGESTION","enableCommand","upcast","change:_saved","low","never","originalSuggestionId","track-changes-adapter-already-set","elementStart","error-saving-suggestion-data-suggestion-discarded","ready","showSuggestionHighlights","TrackChangesEditing","_refreshSuggestionsChain","discardAllSuggestions","containsRange","suggestion:","addCommentThread","Users","_trackFormatChanges","getMultiRangeId","return","isExternal","_customCallbacks","getRanges","dataToMarker","map","catch","isInsideObject","addClass","from","model","chain","splitPosition","insertion:chain","getIntersection","commands","substr","rejected","fromCharCode","creator","insert","setSelection","differ","addMarker:suggestion","_suggestions","getSuggestionCallback","suggestionLoaded","getFirstRange","_suggestionFactory","elementEnd","editor","markerToData","_registerDefaultCallbacks","toJSON","authorName","authoredAt","isLocal","commentThread","howMany","addUser","formatBlock:discard","editingDowncast","insertion:join","detach","collaboration.channelId","isTouching","$graveyard","isUndo","_checkSuggestionCorrectness","high","getDifference","createPositionAfter","isLimit","selection","next","_joinWithAdjacentSuggestions","markMultiRangeBlockFormat","length","_cutOutSuggestionMarker","getShiftedBy","hasSuggestion","isEqual","split","_model","open","delete","root","deletion","_getAuthorFromId","locale","createSelection","_editor","ck-suggestion-marker--active","every","_addThreadToSuggestion","group","formatBlock:join","accepted","rootName","isCollapsed","after","createRange","_joinSuggestions","splice","set","isAfter"];var Ga,Ha;Ga=Ua,Ha=165,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get requires(){return[za("0xdf"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x24")](){return za("0x3e")}constructor(t){function e(t){return t.map((t=>String[za("0x59")](t))).join("")}super(t),this[za("0x9b")](za("0x137"),[]),this.on(za("0x107"),((e,n,o,s)=>{this[za("0x86")][za("0x2c")]((()=>{for(const e of[...s,...o])this._model.markers[za("0x130")](e)&&t.editing[za("0x27")](e)}))})),this[za("0x11")]=new ss(this[za("0x65")][za("0x51")][za("0xe")],this[za("0x65")][za("0x8c")]),this._adapter=null,this._suggestionFactory=new Va(this[za("0x65")]),this[za("0x5f")]=new Map,this._commentsRepository=t[za("0x1c")][za("0x1a")](za("0xdf")),this[za("0xa0")]=new Set,this[za("0x86")]=this[za("0x65")].model,this[za("0xd5")]=new WeakMap,this[za("0x2f")]=!1,t[za("0x12e")].define("trackChanges.trackFormatChanges",za("0x10c")),this._trackFormatChanges=t.config[za("0x1a")](za("0x139")),t[za("0x12e")].define(za("0xb4"),!0),this[za("0xd")]=t[za("0x12e")][za("0x1a")](za("0xb4")),this[za("0x31")]=new d(t,this[za("0xa0")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,52,50,48])}[za("0xf6")](){const t=this[za("0x65")];t[za("0x118")][za("0x9e")]("editingDowncast").markerToHighlight({model:za("0xa5"),view:t=>{const{id:e,type:n}=this[za("0xb8")](t[za("0x17")]),o=[za("0xcb"),za("0x10b")+n];let s=3e3;return this[za("0x137")][za("0xf4")](t[za("0x17")])&&(o.push(za("0x8f")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x118")][za("0x9e")](za("0x30")).add((e=>{e.on(za("0x5e"),((e,n,o)=>{if(!o[za("0x2")][za("0x3d")])return;const s=n[za("0xb7")];if(!s)return;const r=o[za("0x11a")][za("0xe0")](s);t[za("0x51")][za("0xe")][za("0xe4")](s)&&r&&!r[za("0x125")]("widget")&&r.is("containerElement")&&(0,x.toWidget)(r,o[za("0x134")])}),{priority:za("0x78")})})),t.conversion[za("0x9e")](za("0x30"))[za("0xce")]({model:"suggestion",view:(t,e)=>{if(!e.options[za("0x3d")])return null;const{type:n}=this._splitMarkerName(t[za("0x17")]);return{classes:[za("0xcb"),za("0x10b")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0xb7")])return;if(o[za("0xb7")].is(za("0x7c")))return void s[za("0x109")][za("0x2d")](o[za("0xb7")],n[za("0x113")]);const r=s.mapper[za("0xe0")](o[za("0xb7")]);if(!o.item.is(za("0x13a"))||!t[za("0x51")][za("0xe")][za("0x104")](o[za("0xb7")])||r[za("0x125")]("addHighlight"))return;const{id:i}=this._splitMarkerName(o[za("0x17")]);s[za("0x134")][za("0x4f")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock"],r),s[za("0x134")][za("0x132")](za("0xb3"),i,r),s[za("0x11a")][za("0xa")](r,o.markerName),e&&(this[za("0x137")].includes(o.markerName)?s.writer[za("0x4f")](za("0x8f"),r):s[za("0x134")][za("0x12c")](za("0x8f"),r));for(const e of t[za("0x51")].createRangeIn(o.item)[za("0x19")]())s[za("0x109")].consume(e,n[za("0x113")]);s.consumable[za("0x2d")](o[za("0xb7")],n[za("0x113")])};t[za("0x118")][za("0x9e")]("dataDowncast")[za("0x122")]((t=>{t.on(za("0xff"),((t,e,o)=>{o.options[za("0x3d")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x11f")})})),t[za("0x118")][za("0x9e")](za("0x30"))[za("0x66")]({model:za("0xa5"),view:(t,e)=>e.options[za("0x3d")]?null:{group:"suggestion",name:t[za("0x57")](11)}}),t[za("0x118")].for("upcast")[za("0x12d")]({view:{name:za("0xa5"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x42")+t[za("0xdd")]("suggestion-type")+":"+t[za("0xdd")]("id");return t[za("0xdd")](za("0xbd"))&&(n+=":"+t[za("0xdd")]("marker-count")),e[za("0xbb")](za("0xab"),{"data-name":n})}}),t[za("0x118")][za("0x9e")](za("0x34"))[za("0x4b")]({view:za("0xa5")}),t.conversion[za("0x9e")](za("0x70"))[za("0x122")]((t=>{t.on(za("0xff"),n(),{priority:"high"})})),t[za("0x118")][za("0x9e")](za("0x70")).add((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[za("0x11a")][za("0x2a")](e[za("0x17")]);if(o)for(const t of o)t.getCustomProperty(za("0x11e"))||(n[za("0x134")][za("0x12c")]([za("0xcb"),za("0x1b"),za("0x8f")],t),n[za("0x134")].removeAttribute(za("0xb3"),t),n[za("0x11a")][za("0x10f")](t,e[za("0x17")]))}),{priority:za("0x78")})})),t[za("0x51")][za("0xaf")][za("0xbf")]((e=>{let n=!1;const o=Array[za("0x50")](t[za("0x51")][za("0xaf")][za("0x5d")][za("0xee")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0xb8")](x);if(za("0xa5")!==o)continue;const u=this._suggestions.get(l);if(null!=a[za("0x1")])if(za("0x28")==c&&(n=n||Xa(a[za("0x1")],x,e,t[za("0x51")][za("0xe")])),a[za("0x1")].isCollapsed||za("0x75")==a[za("0x1")][za("0x89")][za("0x95")]||za("0x121")==c&&!Ja(a.newRange)||"deletion"==c&&(qa(i=a[za("0x1")])||(r=i).start[za("0x117")]==r[za("0xa1")][za("0x111")]&&r.start.isAtEnd))e[za("0x13")](x),n=!0;else{if(!u||!u[za("0x14")])continue;s.add(u)}}var r,i;return s[za("0xc7")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[za("0x51")][za("0xaf")][za("0xbf")]((e=>{let n=!1;for(const o of t[za("0x51")][za("0xaf")][za("0x5d")][za("0xa2")]()){if(za("0x5b")!=o[za("0x21")])continue;const s=o[za("0x2e")].getShiftedBy(o.length);if(s[za("0xcf")])for(const r of this[za("0x5f")].values()){if(r[za("0x140")]||!r[za("0x14")])continue;if("formatBlock"!=r[za("0x21")])continue;const i=r[za("0x62")]();if(i.start.parent!=i[za("0xa1")].parent&&i.end[za("0x84")](o[za("0x2e")])){const o=t[za("0x51")].createRange(i[za("0x106")],s);e[za("0xdb")](r[za("0x9f")](),{range:o}),n=!0}}}return n})),t[za("0x51")][za("0xcd")].on(za("0x13e"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0x113")]),n=this[za("0x5f")][za("0x1a")](t);n&&n.addMarkerName(e[za("0x113")])}})),t[za("0x51")][za("0xaf")].on(za("0xfe"),(()=>{const e=Array.from(t[za("0x51")][za("0xaf")][za("0x5d")][za("0xee")]())[za("0xa3")]((t=>za("0xa5")===this[za("0xb8")](t[za("0x113")])[za("0x92")]));if(0===e[za("0x80")])return;e[za("0xfd")](((t,e)=>{const n=t.data[za("0x10")],o=e[za("0x10d")][za("0x10")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start.isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xb8")](t);if(null===s[za("0x10")]){const e=this._handleNewSuggestionMarker(t);o[za("0x122")](e)}else{const t=this[za("0x5f")].get(e);null!==s[za("0x1")]||t[za("0x14")]?(n[za("0x122")](t.head),o.add(t)):this[za("0xc2")](t)}}o[za("0xc7")]>0&&this[za("0x3f")](o);for(const t of n)this.fire("suggestionChanged",t)})),t[za("0x51")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0x5f")][za("0xc7")])return;if(!o[za("0x141")])return;if(o[za("0x108")][za("0x76")]||!o.batch[za("0x6b")])return;let s,r;switch(o[za("0x21")]){case"insert":s=t[za("0x51")][za("0xba")](o[za("0x2e")]),r=s[za("0x82")](o[za("0x6d")]);break;case za("0x85"):s=t[za("0x51")][za("0xba")](o[za("0x53")]),r=t[za("0x51")][za("0xba")](o[za("0x26")]);break;case za("0xc8"):s=t[za("0x51")].createPositionAt(o[za("0xbe")]),r=s.getShiftedBy(o[za("0x6d")]);break;default:return}const i=t[za("0x51")][za("0x98")](s,r);t[za("0x51")][za("0x2c")]((()=>{for(const{suggestion:t,meta:e}of this[za("0xa7")](i)){if(t.isMultiRange)continue;if(za("0x28")==t[za("0x21")])continue;const n=t.data&&t[za("0x10d")][za("0xe6")];(za("0x121")!=t[za("0x21")]||za("0x85")==o[za("0x21")]&&!n)&&(e.containsRangeInObject||"insertion"==t[za("0x21")]&&e[za("0x12f")]||t[za("0x62")]()[za("0x41")](i)&&this[za("0x138")](t,s,r))}}))}),{priority:"lowest"}),t[za("0x51")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x11c")])return;if(this[za("0x2f")])return;if(!this[za("0x31")][za("0xe9")])return;if(o.isCollapsed)return;const r=t[za("0x51")][za("0xe")],{start:i,end:x}=o.getFirstRange(),a=i[za("0xa8")]&&r[za("0x7b")](i.nodeAfter)?null:r[za("0x6")](i,"forward"),c=x[za("0x111")]&&r[za("0x7b")](x.nodeBefore)?null:r[za("0x6")](x,za("0x13b")),l=t[za("0x51")][za("0x98")](a?a[za("0x106")]:i,c?c[za("0xa1")]:x);t[za("0x51")].change((e=>{this[za("0x129")](l);const n=t[za("0x51")][za("0xe")].getNearestSelectionRange(l[za("0x106")]);o.is("documentSelection")?e[za("0x5c")](n):o.setTo(n)})),e[za("0xf9")]()}),{priority:e.priorities[za("0xc5")]+10}),t[za("0x51")].on("insertContent",((e,n)=>{const o=n[n.length-1];o&&o.forceDefaultExecution||this._isForcedDefaultExecutionBlock||this.trackChangesCommand[za("0xe9")]&&(t[za("0x51")][za("0x2c")]((()=>{let o=t[za("0x51")][za("0xc3")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x47")]=o[za("0xd7")]();const s=o[za("0xa1")][za("0x111")],r=t[za("0x51")][za("0xe")];s&&r.isBlock(s)&&!r[za("0xe4")](s)&&(o=t.model.createRange(o.start,t[za("0x51")][za("0xba")](s,za("0xa1")))),this[za("0xd9")](o)})),e.stop())}),{priority:za("0x78")}),this.editor[za("0x56")].add(za("0x105"),this[za("0x31")]),this[za("0x33")](za("0x105"));const o=new p(t,this[za("0x5f")]);t[za("0x56")][za("0x122")](za("0x1e"),o),this[za("0x33")](za("0x1e"));const s=new C(t,this._suggestions);t[za("0x56")][za("0x122")](za("0xf8"),s),this.enableCommand(za("0xf8")),t[za("0x56")].add("acceptAllSuggestions",new F(t,o,this[za("0x5f")])),this[za("0x33")](za("0x16")),t[za("0x56")].add(za("0x40"),new F(t,s,this[za("0x5f")])),this[za("0x33")](za("0x40")),t[za("0x56")].add(za("0xc1"),new U(t,o,this[za("0x5f")])),this[za("0x33")](za("0xc1")),t[za("0x56")][za("0x122")]("discardSelectedSuggestions",new U(t,s,this._suggestions)),this[za("0x33")]("discardSelectedSuggestions");const r=t[za("0x1c")].get("CommentsRepository");this[za("0x0")](r,za("0xe3"),((t,{threadId:e})=>{const n=this[za("0x5f")][za("0x1a")](e);n&&n[za("0x6c")]&&1===n[za("0x6c")][za("0x80")]&&this[za("0xd2")](e,{hasComments:!0})}),{priority:"low"}),this[za("0x0")](r,za("0xb2"),((t,{threadId:e})=>{const n=this[za("0x5f")][za("0x1a")](e);n&&n[za("0x6c")]&&!n[za("0x6c")][za("0x80")]&&this[za("0xd2")](e,{hasComments:!1})}),{priority:za("0x36")})}set[za("0xed")](t){if(this[za("0x11b")])throw new e.CKEditorError(za("0x39"),this);this._adapter=t}get[za("0xed")](){return this._adapter}[za("0xf3")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions.values())t&&!e.isInContent||n[za("0xb6")](e);return e?n[za("0x4c")]((t=>t[za("0x68")]())):n}getSuggestion(t){const n=this[za("0x5f")][za("0x1a")](t);if(!n)throw new e.CKEditorError(za("0xf2"),this);return n}[za("0x83")](t){return this[za("0x5f")][za("0x130")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x21")].split(":"),i=this._suggestions.get(n)||this._createSuggestion(s,r,n,e,o);if(this._addThreadToSuggestion(i),this[za("0x77")](i,s,r||null,e),i[za("0xb0")]=t[za("0xb0")],o&&o[za("0x128")]){const t=o[za("0x128")],e=this[za("0x13c")](t[za("0x69")]);i[za("0x6a")]=t[za("0xb0")],i[za("0xec")]=e,i[za("0x48")]=!0}else i[za("0x6a")]=t[za("0xb0")];switch(t[za("0x10d")]&&(i[za("0x10d")]=t[za("0x10d")]),t[za("0x131")]&&(i[za("0x131")]=t[za("0x131")]),this[za("0x11b")]&&this[za("0x11b")][za("0x110")]||(i[za("0xa6")]=!0),this[za("0xd5")][za("0x1a")](i)){case"notReady":this[za("0xd5")][za("0x9b")](i,za("0x115"));break;case za("0x114"):i.isInContent?(this[za("0xd5")].set(i,za("0x3c")),this[za("0x5")]("suggestionLoaded",i)):this[za("0xd5")][za("0x9b")](i,za("0xa4"))}return i}[za("0x1e")](t){this.forceDefaultExecution((()=>{this[za("0x65")][za("0x51")][za("0x2c")]((()=>{for(const e of t[za("0xd3")]())e[za("0xeb")]()}))}))}discardSuggestion(t){this[za("0x11c")]((()=>{this[za("0x65")].model.change((()=>{for(const e of t[za("0xd3")]())e[za("0x100")]()}))}))}[za("0x33")](t,n){const o=this[za("0x65")].commands[za("0x1a")](t);if(!o)throw new e.CKEditorError(za("0x12a"),this,{commandName:t});this[za("0xa0")][za("0x122")](o),n&&o.on(za("0x9d"),((t,e)=>{this.trackChangesCommand[za("0xe9")]&&(this[za("0x2f")]||e[za("0x80")]>0&&e[e[za("0x80")]-1]&&e[e[za("0x80")]-1][za("0x11c")]||(n(((...t)=>o[za("0x9d")](...t,{forceDefaultExecution:!0})),...e),t[za("0xf9")]()))}),{priority:za("0x78")})}[za("0x11c")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[za("0x2f")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x2f")]=!1),o&&e.CKEditorError[za("0x13d")](o,this),n}[za("0xd9")](t,n=null,o={}){if(t[za("0x96")])return null;const s=this[za("0x65")].plugins.get("Users").me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,za("0xb9")))if(o[za("0x12f")]){if(!o[za("0xcc")]){if(!this[za("0xd")]&&o.containsRangeInObject)continue;return e}if(n==e[za("0xb")]){const n=e.getFirstRange();return n.start.isEqual(t[za("0xa1")])?this[za("0x15")](e,this._model[za("0x98")](t[za("0x106")],n[za("0xa1")])):this[za("0x15")](e,this._model[za("0x98")](n.start,t[za("0xa1")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:za("0xb9"),a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x116")](x,r,i,t),a}[za("0xf")](t,n=za("0xf7"),o={}){const s=this[za("0x65")][za("0x1c")][za("0x1a")](za("0x44")).me,r=this[za("0x63")][za("0x60")]("insertion",n,za("0x119"));for(const e of this.getSuggestions())if(e[za("0xec")].id==s.id&&za("0xb9")==e[za("0x21")]&&e[za("0xb")]==n&&(r(e[za("0x4a")](),t)||r(t,e.getRanges()))){for(const n of t)e[za("0x1d")](n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this[za("0xa7")](e,za("0xb9"))){if(!o.isOwn)continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[za("0x41")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xea")+n,c=this[za("0xd0")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo.getMultiRangeId());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[za("0x96")])return null;if(za("0x37")===this[za("0x45")]){const e=this._suggestionFactory[za("0x60")](za("0x28"),o,za("0xeb"));return this[za("0x11c")]((()=>e([t],n,s))),null}const r=this[za("0x65")].plugins[za("0x1a")](za("0x44")).me,i=[];if("always"!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[za("0xa7")](t,za("0xb9")))n[za("0x12f")]&&!n[za("0x4e")]&&i[za("0xb6")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x80")];){const o=n[e][za("0x79")](t);n[za("0x9a")](e,1,...o),e+=o[za("0x80")]}}return n}(t,i);x[za("0x80")]&&this[za("0x86")][za("0x2c")]((()=>{for(const t of x){const e=this[za("0x63")][za("0x60")]("formatInline",o,za("0xeb"));this[za("0x11c")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x106")],a=t[za("0xa1")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x28"))){if(!n[za("0x12f")])continue;if(e[za("0xb")]!=o)continue;const s=e[za("0x62")]();if(s[za("0x41")](t,!0))return null;x=x[za("0xac")](s[za("0x106")])?x:s[za("0x106")],a=a[za("0x9c")](s[za("0xa1")])?a:s[za("0xa1")],i?s[za("0x106")][za("0xac")](i[za("0x62")]()[za("0x106")])?(i[za("0xf5")](),i=e):e[za("0xf5")]():i=e}const c=this._model.createRange(x,a);if(i)this[za("0x15")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xd0")]({id:t,type:za("0x136")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x116")](za("0x136")+o,t,i,c)}}return null}[za("0x25")](t,n,o=[],s=null,r={}){n[za("0x1f")]||(n.formatGroupId=n[za("0x8")]),n[za("0xe6")]=t.is(za("0x127")),s=s||$a(n);const i=o[za("0x4c")]((t=>Qa(t,this._model))),x=t.is(za("0x127"))?t:Qa(t,this[za("0x86")]);if("never"===this[za("0x45")]){const t=this[za("0x63")][za("0x60")](za("0x121"),s,za("0xeb"));return this[za("0x11c")]((()=>t([x],n,r))),null}i[za("0xb6")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0x102")!==this[za("0x45")]){const t=this._suggestionFactory[za("0x60")]("formatBlock",s,za("0xeb"));return this[za("0x11c")]((()=>t([x],n,r))),null}let c=null,l=x.start,u=x[za("0xa1")];for(const{suggestion:t,meta:e}of this[za("0xa7")](x,za("0x121"))){if(!e.isOwn||e.isNextTo||e[za("0xd4")]||e[za("0x4e")])continue;if(t[za("0x10d")][za("0x1f")]!=n[za("0x1f")])continue;const o=t[za("0x62")]();if(t[za("0xb")]==s){if(o.containsRange(x,!0))return null;l=l[za("0xac")](o[za("0x106")])?l:o.start,u=u.isAfter(o[za("0xa1")])?u:o[za("0xa1")],c?o.start[za("0xac")](c[za("0x62")]()[za("0x106")])?(c.removeMarkers(),c=t):t[za("0xf5")]():c=t}else{const e=x[za("0x55")](o);this[za("0x81")](t,e)}}const d=this[za("0x65")][za("0x1c")][za("0x1a")](za("0x44")).me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0x15")](c,this[za("0x86")].createRange(l,u)),c;{const t=this[za("0xd0")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker("formatBlock:"+s,g,m,this[za("0x86")][za("0x98")](l,u)),t}}[za("0x7f")](t,n,o=[],s=null,r={}){n[za("0x1f")]||(n.formatGroupId=n.commandName);const i=t[0];n.multipleBlocks=i.is("range"),s=s||$a(n);const x=o[za("0x4c")]((t=>Qa(t,this[za("0x86")]))),a=i.is(za("0x127"))?t:t[za("0x4c")]((t=>Qa(t,this._model)));if(za("0x37")===this[za("0x45")]){const t=this[za("0x63")][za("0x60")](za("0x121"),s,za("0xeb"));return this[za("0x11c")]((()=>t(a,n,r))),null}x[za("0xb6")](...a);let c=!0;for(const t of x)if(!this[za("0xca")](t)){c=!1;break}if(c&&za("0x102")!==this[za("0x45")]){const t=this._suggestionFactory[za("0x60")](za("0x121"),s,za("0xeb"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this.editor[za("0x1c")][za("0x1a")](za("0x44")).me;for(const t of this[za("0xf3")]()){if(t[za("0xec")].id!=l.id)continue;if(za("0x121")!=t[za("0x21")]||t[za("0x10d")][za("0x1f")]!=n.formatGroupId)continue;const e=t.subType==s;for(let n=0;n<a[za("0x80")];n++){const o=a[n];for(const s of t[za("0xfb")]()){const r=s[za("0xd8")]();if(o[za("0x84")](r)){e?(a[za("0x9a")](n,1),n--):t.removeMarker(s[za("0x113")]);break}}}}if(0==a.length)return null;const u=this._suggestionFactory[za("0x60")](za("0x121"),s,za("0x119"));for(const t of this[za("0xf3")]())if(t.author.id==l.id&&"formatBlock"==t[za("0x21")]&&t[za("0x10d")].formatGroupId==n[za("0x1f")]&&t[za("0xb")]==s&&(u(t[za("0x4a")](),a)||u(a,t[za("0x4a")]()))){for(const e of a)t[za("0x1d")](e);return t}const d=(0,e.uid)(),g=l.id,m=za("0x12b")+s,f=this[za("0xd0")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x116")](m,d,g,t,Zo[za("0x46")]());return f}[za("0x129")](t,n=null,o={}){if(t[za("0x96")])return null;const s=this[za("0x65")].plugins.get(za("0x44")).me,r=new i.LiveRange(t[za("0x106")],t.end);for(const{suggestion:t,meta:e}of this[za("0xa7")](r,za("0xb9")))if(e.isOwn&&!e[za("0xcc")])if(t[za("0x140")]){const e=t[za("0x4a")]()[za("0xa3")]((t=>za("0x75")!=t[za("0x89")][za("0x95")]));if(e[za("0x90")]((t=>r[za("0x41")](t,!0)))&&t.discard(),e[za("0x112")]((t=>t[za("0x41")](r,!0)))){const t=this._suggestionFactory[za("0x60")]("deletion",n,za("0xeb"));return this[za("0x11c")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[za("0x62")]());null!==e&&t[za("0x12")]([e],null,o)}if(r.detach(),r.isCollapsed||za("0x75")==r[za("0x89")].rootName)return null;let x=null,a=r.start,c=r[za("0xa1")];for(const{suggestion:t,meta:e}of this[za("0xa7")](r,za("0x8a")))if(e.isOwn)if(t[za("0x140")]&&this[za("0xd")]){let e=!0;for(const n of t[za("0x4a")]()){if(n[za("0x41")](r,!0))return t;r[za("0x41")](n)||(e=!1)}e&&t[za("0x100")]()}else{const n=t[za("0x62")]();if(n.containsRange(r,!0)){if(!this._mergeNestedSuggestions&&e[za("0xd4")])continue;return t}a=a[za("0xac")](n[za("0x106")])?a:n[za("0x106")],c=c[za("0x9c")](n[za("0xa1")])?c:n[za("0xa1")],x?n[za("0x106")].isBefore(x[za("0x62")]()[za("0x106")])?(x[za("0xf5")](),x=t):t[za("0xf5")]():x=t}if(x)return this._setSuggestionRange(x,this[za("0x86")][za("0x98")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x86")][za("0x98")](a,c),i=s.id,x=n?za("0xae")+n:za("0x8a"),l=this[za("0xd0")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}[za("0xf1")](t,n=za("0xf7"),o={}){const s=this[za("0x65")][za("0x1c")].get(za("0x44")).me,r=t[za("0x4c")]((t=>new i.LiveRange(t[za("0x106")],t.end))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xa7")](t,za("0xb9")))n[za("0x12f")]&&!n.isNextTo&&x.add(e);for(const e of x)if(e[za("0x140")]){const s=e[za("0x4a")]();if((!e[za("0x131")]||!e[za("0x131")][za("0xfc")])&&s[za("0x90")]((t=>r[za("0x112")]((e=>e[za("0x41")](t,!0)))))&&e[za("0x100")](),r[za("0x90")]((t=>s[za("0x112")]((e=>e[za("0x41")](t,!0)))))){const e=this[za("0x63")][za("0x60")](za("0x8a"),n,za("0xeb"));return this[za("0x11c")]((()=>e(t,null,o))),null}}else{const t=e[za("0x62")]();if(r.some((e=>e.containsRange(t,!0)))&&e.discard(),r.every((e=>t[za("0x41")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback(za("0x8a"),n,"accept");return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[za("0x63")][za("0x60")](za("0x8a"),n,za("0x119"));let c=null;for(const t of this[za("0xf3")]())if(t[za("0xec")].id==s.id&&t[za("0x14")]&&"deletion"==t[za("0x21")]&&t[za("0xb")]==n&&(a(t[za("0x4a")](),r)||a(r,t[za("0x4a")]())))if(c){if(t[za("0x6c")]&&t[za("0x6c")].length)continue;for(const e of t[za("0x4a")]())c.isIntersectingWithRange(e)||c[za("0x1d")](e);t[za("0xf5")]()}else{c=t;for(const e of r)t[za("0x126")](e)||t.addRange(e)}if(c)return c;x[za("0x22")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xa7")](t,za("0x8a")))n.isOwn&&x[za("0x122")](e);for(const t of x){const e=t[za("0x4a")]();if((!o||!o[za("0xfc")])&&r[za("0x90")]((t=>e[za("0x112")]((e=>e[za("0x41")](t,!0))))))return t;(!t.attributes||!t[za("0x131")][za("0xfc")])&&e[za("0x90")]((t=>r[za("0x112")]((e=>e[za("0x41")](t,!0)))))&&t[za("0x100")]()}const l=(0,e.uid)(),u=s.id,d=za("0xae")+n,g=this[za("0xd0")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t.detach(),t[za("0x96")]||za("0x75")==t[za("0x89")].rootName||this[za("0x116")](d,l,u,t,Zo[za("0x46")]());return g}_setSuggestionRange(t,e){const n=t[za("0x9f")]();this[za("0x86")][za("0x2c")]((t=>{t[za("0xdb")](n,{range:e})}))}[za("0x91")](t){const e=t.id,n=this[za("0x65")].config[za("0x1a")](za("0x73"));this._commentsRepository.hasCommentThread(e)||this[za("0xf0")][za("0x43")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0xf0")].getCommentThread(e);o[za("0x123")](za("0x120")),o[za("0x120")]=!1,t[za("0x6c")]=o}[za("0x77")](t,n,o,s){if(t[za("0x21")]!=n||t[za("0xb")]!=o||t[za("0x5a")].id!=s)throw this[za("0x65")][za("0xda")](za("0xe1")),new e.CKEditorError(za("0xe1"),this)}[za("0x81")](t,n){const o=t.getFirstRange();if(n[za("0x84")](o))t[za("0xf5")]();else if(o[za("0x41")](n)){const s=this[za("0x86")][za("0xba")](n[za("0x106")][za("0x111")],za("0xa1"));this[za("0x15")](t,this[za("0x86")].createRange(o[za("0x106")],s));const r=(0,e.uid)(),i=t[za("0x5a")].id,x=t[za("0x21")]+":"+t[za("0xb")];this[za("0xd0")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[za("0x131")]});const a=this[za("0x86")].createPositionAt(n.end.parent,"after"),c=this[za("0x86")][za("0x98")](a,o[za("0xa1")]);this._addSuggestionMarker(x,r,i,c)}else if(o[za("0x29")](n[za("0x106")])){const e=this[za("0x86")][za("0xba")](n[za("0x106")].nodeBefore,za("0xa1"));this[za("0x15")](t,this[za("0x86")][za("0x98")](o.start,e))}else{const e=this[za("0x86")].createPositionAt(n[za("0xa1")][za("0x117")],za("0x97"));this[za("0x15")](t,this[za("0x86")][za("0x98")](e,o[za("0xa1")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[za("0xa7")](t,"insertion")){if(!n.isOwn)continue;const o=e[za("0x4a")]();for(const e of o)if(!t[za("0x79")](e).length)return!0}return!1}[za("0x8b")](t){const n=this[za("0x65")].plugins[za("0x1a")](za("0x44"))[za("0xc")](t);if(!n)throw new e.CKEditorError(za("0x124"),this);return n}[za("0x13c")](t){const e=this[za("0x65")].plugins[za("0x1a")](za("0x44")),n=(0,r.hashObject)(za("0xc9")+t);return e[za("0xc")](n)||e[za("0x6e")]({id:n,name:t})}[za("0xa9")](t,e,n,o,s){const r=this[za("0x8b")](o),i=this[za("0x63")][za("0x7")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(i,"accept",(()=>{this[za("0xd2")](n,{state:za("0x94")})}),{priority:za("0x78")}),this[za("0x0")](i,"discard",(()=>{this[za("0xd2")](n,{state:za("0x58")})}),{priority:za("0x78")}),this._suggestions.set(n,i),this[za("0xd5")][za("0x9b")](i,za("0xaa")),i}[za("0xb8")](t){const e=t[za("0x85")](":");return{group:e[0],type:e[1],subType:e[za("0x80")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[za("0x80")]?e[5]:null}}[za("0x138")](t,n,o){const s=t[za("0x62")](),r=s[za("0x106")],i=s[za("0xa1")];this[za("0x15")](t,this[za("0x86")][za("0x98")](r,n));const x=(0,e.uid)(),a=t[za("0x5a")].id,c=t[za("0x21")]+(t[za("0xb")]?":"+t.subType:"");this[za("0xd0")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x131")],data:t[za("0x10d")]}),"formatBlock"==t[za("0x21")]&&(o=this._model.createPositionBefore(o[za("0x117")])),this[za("0x116")](c,x,a,this[za("0x86")].createRange(o,i))}[za("0xa7")](t,e=null){const n=[],o=this[za("0x86")][za("0xe")],s=this[za("0x65")].plugins.get(za("0x44")).me;for(const r of this[za("0xf3")]())if(r[za("0x14")]&&(!e||r.type==e))for(const e of r[za("0x4a")]()){const i=t.start[za("0x84")](e[za("0xa1")])||t[za("0xa1")][za("0x84")](e[za("0x106")]);if(i||t[za("0x55")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0x106")],t),a=e[za("0x41")](t)&&Ka(o,t[za("0x106")],e);n[za("0xb6")]({suggestion:r,meta:{isOwn:s==r[za("0xec")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x116")](t,e,n,o,s){this[za("0x86")][za("0x2c")]((r=>{let i=za("0x42")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xb1")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[za("0xef")],n=t[za("0x7d")];t.previous=null,null!=e&&(e[za("0x7d")]=null),t[za("0x7d")]=null,null!=n&&(n[za("0xef")]=null),za("0x3c")==this[za("0xd5")][za("0x1a")](t)&&(this._suggestionState[za("0x9b")](t,"removed"),this[za("0x5")]("suggestionUnloaded",t,e,n))}[za("0xd0")](t){const n=t.id,o=this.addSuggestionData(t);if(this._adapter&&this[za("0x11b")].addSuggestion){const s=this[za("0x65")][za("0x1c")][za("0x1a")](za("0xd1")),r=o[za("0x4")],i=o[za("0xb")]?o.type+":"+o[za("0xb")]:o[za("0x21")],x=this[za("0x65")][za("0x8c")],a=s[za("0x122")](Yo(x,za("0x32"))),c={id:n,type:i,hasComments:r,data:t[za("0x10d")]||null,originalSuggestionId:t[za("0x38")]||null,attributes:o[za("0x131")]};this[za("0x11b")][za("0x110")](c)[za("0x103")]((t=>{o[za("0xa6")]=!0,s[za("0xdc")](a),t&&t[za("0xb0")]&&(this[za("0x5f")][za("0x1a")](n)[za("0xb0")]=t[za("0xb0")])}))[za("0x4d")]((t=>{throw(0,e.logWarning)(za("0x3b")),this[za("0x65")][za("0x51")][za("0x10e")]({isUndoable:!1},(()=>{o[za("0x100")]()})),o[za("0x13f")](),this[za("0x5f")][za("0x88")](o.id),this[za("0xd5")][za("0x88")](o),t}))}return o}[za("0xd2")](t,e){const n=this.editor.plugins[za("0x1a")](za("0xd1")),o=this[za("0x23")](t);if(this[za("0x11b")]&&this._adapter[za("0xc0")])if(o._saved){const o=n[za("0x122")](Yo(this[za("0x65")][za("0x8c")],za("0x32")));this[za("0x11b")][za("0xc0")](t,e)[za("0x103")]((()=>{n.remove(o)}))}else o.on(za("0x35"),(()=>{this[za("0xd2")](t,e)}))}_getSuggestionData(t){if(!this[za("0x11b")]||!this[za("0x11b")][za("0x23")])throw new e.CKEditorError(za("0x9"),this);return this[za("0x11b")][za("0x23")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xb8")](t),r=this._suggestions.get(e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0x77")](r,n,o,s),this[za("0xd5")].get(r)){case za("0xaa"):this._getSuggestionData(e).then((t=>{let n=Promise[za("0x3")]();t.hasComments&&(n=this._commentsRepository[za("0xe7")]({channelId:this[za("0x65")][za("0x12e")][za("0x1a")](za("0x73")),threadId:e})),n[za("0x103")]((()=>{this[za("0x11d")](t)._saved=!0}))})),this[za("0xd5")][za("0x9b")](r,"markerReady");break;case za("0xa4"):this[za("0xd2")](e,{state:za("0x87")});case za("0x115"):this._suggestionState[za("0x9b")](r,za("0x3c")),this[za("0x5")](za("0x61"),r);break;case"ready":this[za("0x5")]("suggestionChanged",r)}return r[za("0xe2")](t),r}[za("0x3f")](t){const e=Array[za("0x50")](t)[za("0xa3")]((t=>!t.isMultiRange)),n=this[za("0xf3")]({skipNotAttached:!0})[za("0xa3")]((t=>!t[za("0x140")])),o=n[za("0xa3")]((e=>!t[za("0x130")](e))),s=new Map(n[za("0x4c")]((t=>[t,this[za("0x63")].getSuggestionCallback(t[za("0x21")],t[za("0xb")],za("0x52"))]))),r=new Map(n[za("0x4c")]((t=>[t,t[za("0x62")]()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x80")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x80")];t++){const n=e[t];!x[za("0x130")](n)&&n[za("0xef")]&&(n[za("0xef")][za("0x7d")]===n&&(n[za("0xef")][za("0x7d")]=null),n[za("0xef")]=null),!i[za("0x130")](n)&&n[za("0x7d")]&&(n[za("0x7d")].previous===n&&(n[za("0x7d")][za("0xef")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0x7d")]=n[1],n[1][za("0xef")]=n[0],i[za("0x122")](n[0]),x[za("0x122")](n[1]))}}function c(t,e){if(t.author.id!==e[za("0xec")].id)return null;const n=s.get(t)(t,e,r[za("0x1a")](t),r[za("0x1a")](e));return n&&s[za("0x1a")](e)(t,e,r[za("0x1a")](t),r.get(e))?n[1].commentThread&&n[1].commentThread[za("0x80")]?null:n:null}}[za("0x7e")](t){const e=Array[za("0x50")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0xa3")]((e=>!t.has(e))),s=new Map(e[za("0x4c")]((t=>[t,this[za("0x63")].getSuggestionCallback(t[za("0x21")],t[za("0xb")],za("0x119"))]))),r=new Map(n[za("0x4c")]((t=>[t,t.getRanges()])));for(let t=0;t<e[za("0x80")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x80")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0x80")];i++){const o=n[i];if(o[za("0x21")]!==e[za("0x21")]||o[za("0xec")].id!==e[za("0xec")].id||o.subType!==e[za("0xb")])continue;const x=s.get(e),a=r[za("0x1a")](e),c=r[za("0x1a")](o),l=e[za("0x6c")]&&e[za("0x6c")].length,u=o[za("0x6c")]&&o[za("0x6c")][za("0x80")];if(!l&&x(c,a))return t[za("0x99")](o,e),r[za("0x88")](e),!0;if(!u&&x(a,c))return t[za("0x99")](e,o),r[za("0x88")](o),!0}return!1}}_joinSuggestions(t,e){if(t[za("0x140")])for(const n of e[za("0x4a")]())t[za("0x1d")](n);else{const n=e[za("0x62")]()[za("0xa1")];this[za("0x15")](t,this[za("0x86")][za("0x98")](t.getFirstRange()[za("0x106")],n))}e.removeMarkers()}}class Va{constructor(t){this[za("0x8e")]=t,this[za("0x86")]=t[za("0x51")],this[za("0x49")]=new Map,this[za("0x133")]=new Map,this[za("0x67")]()}[za("0x7")](t,e,n,o,s,r){return new Zo(this[za("0x86")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x60")](t,e,za("0xeb"))(...n),onDiscard:(...n)=>this[za("0x60")](t,e,"discard")(...n)})}[za("0x20")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x49")][za("0x9b")](s,o)}[za("0x60")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x49")][za("0x1a")](o)||this[za("0x133")][za("0x1a")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[za("0xfd")](((t,e)=>t[za("0x106")][za("0xac")](e.start)?1:-1)),this._model.change((e=>{for(const n of t){let t;t=n[za("0xa1")][za("0xcf")]&&n[za("0xa1")][za("0x117")]==n[za("0x106")][za("0xa8")]?e[za("0x8d")](n.start[za("0xa8")],"on"):e[za("0x8d")](n),this[za("0x86")][za("0xe8")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0x2c")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x4c")]((t=>(qa(t)&&(t=this[za("0x86")][za("0x98")](t[za("0xa1")])),t))).filter((t=>za("0x75")!==t.root.rootName));if(r[za("0x80")]<1)return;const x=Array[za("0x50")](this[za("0x86")][za("0xaf")][za("0x7c")][za("0x4a")]())[za("0x4c")]((t=>i.LiveRange[za("0x2b")](t)));n[za("0x5c")](r);for(const t of this._editor.commands[za("0x56")]())t.refresh();s[za("0xb6")]({forceDefaultExecution:!0}),this[za("0x8e")].execute(o,...s);const a=x[za("0xa3")]((t=>za("0x75")!=t[za("0x89")][za("0x95")]));a[za("0x80")]>0&&n.setSelection(a);for(const t of x)t[za("0x72")]()}))},o=(t,e)=>1==t[za("0x80")]&&1==e[za("0x80")]&&t[0].end.isEqual(e[0][za("0x106")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x86")])?[t,e]:Za(e,t,o,n,this[za("0x86")])?[e,t]:null;this._defaultCallbacks.set(za("0x101"),t),this[za("0x133")][za("0x9b")](za("0xd6"),e),this[za("0x133")].set(za("0x71"),o),this[za("0x133")][za("0x9b")](za("0x54"),s),this._defaultCallbacks.set(za("0xde"),e),this[za("0x133")][za("0x9b")]("deletion:discard",t),this[za("0x133")][za("0x9b")]("deletion:join",o),this[za("0x133")][za("0x9b")](za("0xc6"),s),this[za("0x133")].set(za("0xe5"),n),this[za("0x133")].set(za("0xad"),t),this[za("0x133")][za("0x9b")](za("0xc4"),o),this._defaultCallbacks.set(za("0xfa"),t),this[za("0x133")][za("0x9b")]("formatBlock:accept",n),this[za("0x133")][za("0x9b")](za("0x6f"),t),this[za("0x133")][za("0x9b")](za("0x93"),o),this[za("0x133")].set("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e[za("0x117")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0x89")]==o)return!1;if(!n.containsItem(o))return!1;if(t.isObject(o)||t[za("0x7b")](o))return!0}return!1}function qa(t){return t[za("0xa1")][za("0x117")]==t[za("0x106")][za("0xa8")]&&t[za("0xa1")][za("0xb5")]}function Xa(t,e,n,o){const s=t=>!t[za("0xb7")].is(za("0x10a"))&&!o[za("0xe4")](t.item),r=t[za("0x106")][za("0x135")](s),i=t[za("0xa1")][za("0x135")](s,{direction:za("0x13b")});return!(t.start[za("0x84")](r)&&t[za("0xa1")][za("0x84")](i)||(r.isBefore(i)?n[za("0xdb")](e,{range:n.createRange(r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x106")][za("0xa8")];return e&&e.is(za("0x13a"))}function Qa(t,e){const n=e.schema[za("0xe4")](t)||e[za("0xe")][za("0x18")](t);return e[za("0x98")](e[za("0xba")](t,za("0xbc")),n?e[za("0x7a")](t):e[za("0xba")](t,"end"))}function Za(t,e,n,o,s){if(n[za("0xa1")][za("0x84")](o[za("0x106")]))return!0;if(t[za("0x21")]!=e[za("0x21")])return!1;if(!n[za("0xa1")][za("0x74")](o[za("0x106")]))return!1;const r=s[za("0x98")](n[za("0xa1")],o[za("0x106")]).getWalker();for(const t of r)if([za("0x3a"),za("0x64")].includes(t[za("0x21")])&&s[za("0xe")].isLimit(t[za("0xb7")]))return!1;return!0}const Ya=["_editor","canEditAt","canDiscard","add","_acceptCommand","commands","destroy","isEnabled","discardSuggestion","execute","_setPendingAction","_pendingAction","stopListening","change:isDirty","_removePendingAction","get","view","commentThreadController","unbind","getRanges","bind","acceptSuggestion","model","remove","canAccept","_discardCommand","PendingActions","plugins","listenTo"];var tc,ec;tc=Ya,ec=448,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x9")]=e,this[nc("0x3")]=n,this[nc("0x4")]=o,this[nc("0x10")]=t,this[nc("0x14")]=t[nc("0x15")][nc("0x2")](nc("0x8")),this[nc("0xc")]=t.commands[nc("0x2")](nc("0x18")),this[nc("0x3")].bind(nc("0x17")).to(this[nc("0x14")],this[nc("0xc")],((t,e)=>t||e)),this[nc("0x3")][nc("0x7")](nc("0xb")).to(this._acceptCommand,nc("0x17"),(t=>t&&this[nc("0x10")][nc("0x9")].canEditAt(e[nc("0x6")]()))),this[nc("0x3")][nc("0x7")]("canDiscard").to(this[nc("0xc")],nc("0x17"),(t=>t&&this._editor[nc("0x9")][nc("0x11")](e[nc("0x6")]()))),this[nc("0x1b")]=null,n.isDirty&&this[nc("0x1a")](),this[nc("0xf")](n,nc("0x8"),(()=>this[nc("0x8")]())),this[nc("0xf")](n,nc("0x18"),(()=>this[nc("0x18")]())),this.listenTo(n,nc("0x0"),(()=>{n.isDirty?this[nc("0x1a")]():this[nc("0x1")]()}))}acceptSuggestion(){this._acceptCommand.execute(this.model.id)}discardSuggestion(){this[nc("0xc")][nc("0x19")](this[nc("0x9")].id)}[nc("0x16")](){this.view[nc("0x5")](nc("0x17")),this[nc("0x3")][nc("0x5")](nc("0xb")),this[nc("0x3")].unbind(nc("0x12")),this[nc("0x1c")](),this[nc("0x4")][nc("0x16")](),this[nc("0x1b")]&&this[nc("0x1")]()}_setPendingAction(){const t=Yo(this[nc("0x10")].locale,"PENDING_ACTION_SUGGESTION");this._pendingAction=this[nc("0x10")].plugins[nc("0x2")](nc("0xd"))[nc("0x13")](t)}_removePendingAction(){null!==this[nc("0x1b")]&&this._editor[nc("0xe")][nc("0x2")](nc("0xd"))[nc("0xa")](this._pendingAction),this[nc("0x1b")]=null}}const sc=["setData","isActive","addComment","bind","commentThread","editorConfig","length","isReadOnly","commentThreadInputView","commentsListView","destroy","_model","focus","_createCommentViews","_createCommentThreadInputView","isEnabled","element","locale","disableComments","cancel","delegate","commentInputView","hasDirtyComment","value","canAccept","editor","authoredAt","set","_config","removeComment"];var rc,ic;rc=sc,ic=484,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x5")]=null,this[xc("0x4")]=null,this[xc("0x17")]("isActive",!1),this[xc("0x17")](xc("0x16"),e.authoredAt),this[xc("0x1d")](xc("0x16")).to(e),this.set("descriptionParts",[]),this[xc("0x17")]("isDirty",!1),this[xc("0x17")](xc("0xb"),!1),this[xc("0x17")](xc("0x14"),!1),this.set("canDiscard",!1),this[xc("0x7")]=e,this._localUser=n,this[xc("0x18")]=o,o[xc("0xe")]?this[xc("0x17")]("length",1):this._createCommentViews()}[xc("0x8")](){this[xc("0xc")][xc("0x8")]()}[xc("0x6")](){this.commentsListView&&this[xc("0x5")][xc("0x6")](),this[xc("0x4")]&&this[xc("0x4")].destroy(),super[xc("0x6")]()}[xc("0x9")](){const{CommentsListView:t}=this[xc("0x18")];this[xc("0x5")]=new t(this[xc("0xd")],this[xc("0x7")].commentThread,Object.assign({CommentView:this[xc("0x18")].CommentView},this._config)),this[xc("0x5")][xc("0x10")](xc("0x19")).to(this),this[xc("0x5")][xc("0x10")]("updateComment").to(this),this.commentsListView.bind(xc("0x1b")).to(this),this[xc("0x17")](xc("0x2"),this[xc("0x5")].length+1),this[xc("0x1d")](xc("0x2")).to(this.commentsListView,xc("0x2"),(t=>t+1)),this[xc("0x4")]=this[xc("0xa")](),this.on(xc("0x19"),(()=>this[xc("0x8")]())),this[xc("0x1d")]("isDirty").to(this[xc("0x5")],xc("0x12"),this[xc("0x4")][xc("0x11")],xc("0x13"),((t,e)=>t||!!e))}[xc("0xa")](){const{CommentThreadInputView:t}=this[xc("0x18")],e=new t(this[xc("0xd")],this._localUser,this[xc("0x18")][xc("0x1")]),n=e[xc("0x11")];return e[xc("0x1d")]("showInput").to(this,xc("0x1b"),this[xc("0x7")].commentThread,"isReadOnly",n,xc("0x13"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this.fire(xc("0x1c"),e),n[xc("0x15")][xc("0x1a")]("")})),n.on(xc("0xf"),(()=>this[xc("0x8")]())),n.bind("disabledSubmit").to(this[xc("0x7")][xc("0x0")],xc("0x3")),e}}const cc=["creator",".ck-annotation__content-wrapper","_model","canAccept","ck-annotation__info","span","commentsListView","EXTERNAL_IMPORT_WORD_SUGGESTION","name","render","locale","ck-suggestion-","descriptionParts","acceptButton","innerHTML","</p>","push","color","getTemplate","ck-suggestion--accept","formatDateTime","_descriptionElement","@external","value","description","Accept suggestion","join","getUserViewNotificationText","author","canDiscard","children","commentThreadInputView","ck-comment__external","discardSuggestion","ck-annotation__info-time","source","ck-annotation__info-name","ck-suggestion__main","_createButton","ck-suggestion__info","<p>","change:description","_config","acceptSuggestion","isActive","content","isExternal","ck-annotation__actions","isEnabled","authoredAt","setTemplate","userView","attributes","disableComments","EXTERNAL_IMPORT_WORD_AVATAR","set","EXTERNAL_AVATAR","bind","getExternalSuggestionNote","fire","commentThread","type","ck-annotation__user","ck-suggestion__user","Discard suggestion","div","discardButton","time","split","innerText",'<span class="ck-suggestion-color" style="background-color: ',"extendTemplate","importWord","ck-annotation","ck-suggestion--disabled-comments","cancel",'<span class="ck-suggestion-type">',"title","EXTERNAL_SUGGESTION","ck-annotation__main","createElement","ck-suggestion__info-name","map","ck-suggestion"];var lc,uc;lc=cc,uc=199,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[dc("0x18")](dc("0x1e"),""),this[dc("0x1a")](dc("0x1e")).to(this,dc("0x41"),(t=>t&&t[0]?t[0].type:"")),this.bind(dc("0x4d")).to(this,dc("0x41"),this,dc("0xd"),((t,e)=>{let n="";for(const e of t)n+=dc("0x9")+mc(e[dc("0xe")],e[dc("0x46")])+dc("0x44");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0x4a")]=null,this.acceptButton=this[dc("0x7")](Yo(e,dc("0x4e")),t.icons.check,dc("0x48"),dc("0xc"),"sw"),this[dc("0x42")][dc("0x1a")](dc("0x11")).to(this,dc("0x38")),this.discardButton=this._createButton(Yo(e,dc("0x21")),t.icons[dc("0x2c")],"ck-suggestion--discard",dc("0x2"),"sw"),this[dc("0x23")][dc("0x1a")](dc("0x11")).to(this,dc("0x52")),this[dc("0x14")]=new r.UserView(e,this[dc("0x37")][dc("0x51")],this[dc("0x50")]()),this[dc("0x14")].extendTemplate({attributes:{class:[dc("0x20"),dc("0x1f")]}}),this[dc("0x13")](this[dc("0x47")]())}[dc("0x47")](){const t=this.bindTemplate,e=[{tag:dc("0x22"),attributes:{class:[dc("0x8"),dc("0x39")]},children:[{tag:dc("0x3a"),children:[{text:this[dc("0x14")][dc("0x3d")]}],attributes:{class:[dc("0x32"),dc("0x5")]}},{tag:dc("0x24"),attributes:{datetime:t.to(dc("0x12")),class:["ck-comment__info-time",dc("0x3")]},children:[{text:t.to(dc("0x12"),(t=>this[dc("0xb")][dc("0x49")](t)))}]}]},{tag:dc("0x22"),attributes:{class:["ck-suggestion__actions",dc("0x10")]},children:[this.acceptButton,this.discardButton]},{tag:dc("0x22"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[dc("0x37")][dc("0xf")]&&e[dc("0x45")]({tag:dc("0x22"),attributes:{class:[dc("0x1")]},children:[{text:this[dc("0x1b")]()}]});const n={tag:dc("0x22"),attributes:{class:["ck-suggestion-wrapper",t.if(dc("0xd"),"ck-suggestion-wrapper--active"),t.to(dc("0x1e"),(t=>dc("0x40")+t)),this[dc("0xb")][dc("0x16")]&&dc("0x2b")],"data-suggestion-id":this._model.id,"data-thread-id":this[dc("0x37")][dc("0x1d")].id,"data-author-id":this[dc("0x37")].author.id,tabindex:-1},children:[{tag:dc("0x22"),attributes:{class:[dc("0x34"),dc("0x2a")]},children:[this[dc("0x14")],{tag:dc("0x22"),attributes:{class:[dc("0x6"),dc("0x30")]},children:e}]}]};return this.commentsListView&&this[dc("0x0")]&&n[dc("0x53")][dc("0x45")](this[dc("0x3b")],this[dc("0x0")]),n}[dc("0x3e")](){super[dc("0x3e")](),this[dc("0x4a")]=this.element.querySelector(dc("0x36")),this._descriptionElement[dc("0x43")]=this.description,this.on(dc("0xa"),((t,e,n)=>{this._descriptionElement[dc("0x43")]=n}))}[dc("0x7")](t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[dc("0x18")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x28")]({attributes:{class:n}}),i.on("execute",(()=>{this[dc("0x1c")](o,this[dc("0x37")].id)})),i}[dc("0x1b")](){return dc("0x29")===this._model[dc("0x15")][dc("0x4b")].source?Yo(this[dc("0x3f")],dc("0x3c")):Yo(this.locale,dc("0x2f"))}[dc("0x50")](){return this[dc("0x37")][dc("0xf")]?dc("0x29")===this[dc("0x37")][dc("0x15")][dc("0x4b")][dc("0x4")]?Yo(this[dc("0x3f")],dc("0x17"),this._model.creator.name):Yo(this[dc("0x3f")],dc("0x19"),this[dc("0x37")][dc("0x35")].name):null}}function mc(t,e){let n="";return n+=t[dc("0x25")]("*")[dc("0x33")](((t,e)=>e%2!=0?dc("0x2d")+fc(t)+"</span>":fc(t)))[dc("0x4f")](""),e&&(n+=dc("0x27")+e[dc("0x4c")]+'" title="'+e[dc("0x2e")]+'"></span>'),n}function fc(t){const e=document[dc("0x31")]("span");return e[dc("0x26")]=t,e[dc("0x43")]}const hc=["commandName","model","trackChanges","EditorAnnotations","isDirty","buttonView","_initializeController","comments.editorConfig","size","remove","CommentsUI","getRanges","CommentsRepository","source","comments","head","isEnabled","has","unbind","push","from","_descriptionFactory","toMany","_annotationViews","focus","TrackChangesUI","suggestion-","pluginName","config","some","isInContent","stopListening","createAnnotation","isOn","requires","type","suggestionChanged","destroy","descriptionParts","Annotations","init","_destroyController","acceptButton","commands","TrackChangesEditing","map","_disableComments","view","getMarkers","bind","comments.maxCommentCharsWhenCollapsed","getByInnerView","change:previous","button","_updateController","acceptSelectedSuggestions","innerView","previous","execute","activeMarkers","CommentView","Accept all suggestions","_createUIButton","switchbutton","filter","refreshSelectedViews","createCommentThreadController","_handleSuggestionControllerDelayed","isMultiRange","componentFactory","_viewToController","actionView","Discard all suggestions","activeAnnotations","_handleControllerBuffer","discardButton","define","locale","set","getAllAdjacentSuggestions","delete","editing","get","length","editor","Track changes","getJoined","acceptAllSuggestions","_suggestionToController","value","comments.maxCommentsWhenCollapsed","trackChanges.disableComments","change:activeAnnotations","mainView","add","separator","keys","discardSelectedSuggestions","clear","lowest","suggestionLoaded","addSourceCollector","getDescriptions","listenTo","plugins","discardAllSuggestions","suggestionUnloaded","createAnnotationView"];var pc,bc;pc=hc,bc=368,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x62")](){return[Wa,r.Users,Ec("0x4c"),Ec("0x67"),Ec("0x43")]}static get[Ec("0x5b")](){return Ec("0x59")}constructor(t){super(t),this[Ec("0x2c")]=new Map,this._viewToController=new Map,this[Ec("0x57")]=new Map,this[Ec("0x1e")]=new Map;const e=this[Ec("0x28")].config;e[Ec("0x20")]("trackChanges.SuggestionThreadView",gc),e[Ec("0x20")](Ec("0x2f"),!1),this[Ec("0x2")]=e[Ec("0x26")]("trackChanges.disableComments")}[Ec("0x17")](t,e){0===this[Ec("0x1e")][Ec("0x48")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x1e")]){const n=this[Ec("0x2c")].has(t);n||e?n&&e&&this._destroyController(t):this._initializeController(t)}this.editor[Ec("0x3c")].get(Ec("0x43"))[Ec("0x15")](),this._refreshActiveMarkers(),this[Ec("0x1e")][Ec("0x36")]()}),10),this[Ec("0x1e")][Ec("0x22")](t,e)}[Ec("0x68")](){const t=this[Ec("0x28")],e=t[Ec("0x3c")][Ec("0x26")]("TrackChangesEditing"),n=t[Ec("0x3c")][Ec("0x26")]("Annotations"),o=t[Ec("0x3c")][Ec("0x26")](Ec("0x43")),s=t[Ec("0x3c")][Ec("0x26")]("CommentsRepository");t.ui[Ec("0x19")].add(Ec("0x42"),(t=>this[Ec("0x12")](t))),o[Ec("0x39")]((()=>{const t=[];for(const[e,n]of Array.from(this._suggestionToController)){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x18")]){s.push(...t[Ec("0x4b")]());continue}const e=t.getFirstRange();if(s[Ec("0x27")]>0){const t=s[0][Ec("0x2a")](e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x53")]([n[Ec("0x3")],s])}return t})),this[Ec("0x3b")](e,Ec("0x38"),((t,e)=>{this[Ec("0x3b")](e,"change:previous",((t,n,o,s)=>{e.isInContent&&(null==o?(this[Ec("0xa")](s[Ec("0x4f")]),this[Ec("0x17")](e,!1)):(this[Ec("0xa")](o.head),this[Ec("0x17")](e,!0)))})),null===e[Ec("0xd")]?this[Ec("0x17")](e,!1):this._updateController(e[Ec("0x4f")])})),this[Ec("0x3b")](e,Ec("0x3e"),((t,e,n)=>{this[Ec("0x5f")](e,Ec("0x8")),this._handleControllerBuffer[Ec("0x24")](e);const o=n?n[Ec("0x4f")]:e,s=this[Ec("0x2c")][Ec("0x26")](o);null!==n&&this[Ec("0xa")](o),null===n&&s&&this[Ec("0x69")](e)})),this[Ec("0x3b")](e,Ec("0x64"),((t,e)=>{this[Ec("0xa")](e)})),this[Ec("0x3b")](n,Ec("0x30"),(()=>{this._refreshActiveMarkers()})),this[Ec("0x3b")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e.getSuggestion(n);this[Ec("0x2c")][Ec("0x26")](s)[Ec("0x3")].focus()}),{priority:Ec("0x37")})}_refreshActiveMarkers(){const t=this.editor[Ec("0x3c")][Ec("0x26")](Ec("0x67")),e=this[Ec("0x28")][Ec("0x3c")][Ec("0x26")](Ec("0x0")),n=Array[Ec("0x54")](t[Ec("0x1d")],(t=>t[Ec("0xc")])).filter((t=>this[Ec("0x1a")][Ec("0x51")](t))),o=[];for(const t of n){const e=this[Ec("0x1a")].get(t)[Ec("0x41")][Ec("0x23")]();o[Ec("0x53")](...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Ec("0xf")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x28")].commands[Ec("0x26")](Ec("0x42")),r=Yo(t,Ec("0x29"));n[Ec("0x45")][Ec("0x22")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x45")][Ec("0x5")](Ec("0x61")).to(o,Ec("0x2d")),n[Ec("0x45")].on(Ec("0xe"),(()=>{o[Ec("0xe")](),this.editor[Ec("0x25")].view[Ec("0x58")]()}));const i=new e.Collection,x=[{type:Ec("0x13"),model:{withText:!0,label:r,commandName:Ec("0x42")}},{type:"separator"},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,Ec("0x11")),commandName:Ec("0x2b")}},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Ec("0xb")}},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,Ec("0x1c")),commandName:Ec("0x3d")}},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:Ec("0x35")}}];for(const t of x){let e={type:Ec("0x33")};if(t[Ec("0x41")]){const n=new s.Model(t[Ec("0x41")]),o=this[Ec("0x28")].commands[Ec("0x26")](n[Ec("0x40")]);n[Ec("0x5")](Ec("0x61"),"isEnabled").to(o,Ec("0x2d"),Ec("0x50")),e={type:t[Ec("0x63")],model:n}}i[Ec("0x32")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x14")]((t=>null!=t[Ec("0x41")]))[Ec("0x1")]((t=>this[Ec("0x28")][Ec("0x6b")][Ec("0x26")](t[Ec("0x41")].commandName))),c=n[Ec("0x45")];return c[Ec("0x1b")][Ec("0x52")](Ec("0x50")),c.arrowView.unbind(Ec("0x50")),c[Ec("0x1b")][Ec("0x5")]("isEnabled").to(o,Ec("0x50")),c.arrowView.bind(Ec("0x50"))[Ec("0x56")](a,Ec("0x50"),((...t)=>t[Ec("0x5d")]((t=>t)))),n.on(Ec("0xe"),(t=>{this.editor.execute(t[Ec("0x4d")][Ec("0x40")]),this[Ec("0x28")].editing.view[Ec("0x58")]()})),n}[Ec("0x46")](t){const e=this[Ec("0x28")],n=e[Ec("0x5c")],o=e[Ec("0x3c")][Ec("0x26")](Ec("0x67")),s=e[Ec("0x3c")][Ec("0x26")](Ec("0x4c")),i=e.plugins[Ec("0x26")](Ec("0x43")),x=e.plugins[Ec("0x26")](r.Users).me,a=n[Ec("0x26")](Ec("0x42")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x3c")].get(Ec("0x4a"));let u,d;this[Ec("0x57")].has(t.id)?(d=this[Ec("0x57")][Ec("0x26")](t.id),u=d[Ec("0x31")]):(u=new a(e[Ec("0x21")],t,x,{disableComments:this[Ec("0x2")],editorConfig:n[Ec("0x26")](Ec("0x47")),maxCommentsWhenCollapsed:n[Ec("0x26")](Ec("0x2e")),maxThreadTotalWeight:n[Ec("0x26")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Ec("0x26")](Ec("0x6")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x26")](Ec("0x21"))),CommentView:n[Ec("0x26")](Ec("0x4e"))[Ec("0x10")],CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x6a")].on(Ec("0xe"),(()=>{e[Ec("0x25")][Ec("0x3")][Ec("0x58")]()})),u[Ec("0x1f")].on(Ec("0xe"),(()=>{e[Ec("0x25")][Ec("0x3")][Ec("0x58")]()})),d=o[Ec("0x3f")](this[Ec("0x28")][Ec("0x21")],u),d[Ec("0x5")]("isDirty").to(u,Ec("0x44")),d[Ec("0x5")]("length").to(u),d[Ec("0x5")](Ec("0x63")).to(u,Ec("0x63"),(t=>Ec("0x5a")+t)),this[Ec("0x57")][Ec("0x22")](t.id,d));const g=s[Ec("0x16")](t.commentThread,u),m=new oc(e,t,u,g),f=t.getAllAdjacentSuggestions()[Ec("0x14")]((t=>t[Ec("0x5e")]));u[Ec("0x66")]=e.plugins[Ec("0x26")](Ec("0x0"))[Ec("0x55")][Ec("0x3a")](f),this[Ec("0x2c")][Ec("0x22")](t,m),this[Ec("0x1a")][Ec("0x22")](u,m);const h=o[Ec("0x60")]({view:d,target:()=>{const n=[],o=t[Ec("0x23")]()[Ec("0x14")]((t=>t[Ec("0x5e")]));for(const t of o)n[Ec("0x53")](...t[Ec("0x4")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x25")],n)},type:()=>Ec("0x5a")+m.view.type});o[Ec("0x32")](h),i.registerAnnotation(h)}[Ec("0x69")](t){const e=this[Ec("0x28")][Ec("0x3c")][Ec("0x26")](Ec("0x67")),n=this._suggestionToController[Ec("0x26")](t),o=n.view,s=e[Ec("0x7")](o);s&&e[Ec("0x49")](s),this[Ec("0x2c")][Ec("0x24")](t),this._viewToController[Ec("0x24")](o),n[Ec("0x65")]()}[Ec("0xa")](t){if(!t[Ec("0x5e")]||!this._suggestionToController[Ec("0x51")](t))return;const e=this[Ec("0x28")][Ec("0x3c")][Ec("0x26")](Ec("0x0")),n=this[Ec("0x2c")][Ec("0x26")](t),o=t[Ec("0x23")]();n[Ec("0x3")][Ec("0x66")]=e._descriptionFactory[Ec("0x3a")](o)}[Ec("0x65")](){for(const t of this[Ec("0x2c")][Ec("0x34")]())this._destroyController(t);for(const t of this._annotationViews.values())t[Ec("0x31")][Ec("0x65")]();super[Ec("0x65")]()}}var Tc,Cc,yc=["addSuggestion","pluginName","Comments","addSuggestionData","adapter","editor","get","plugins"];Tc=yc,Cc=500,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get requires(){return[Wa,_c,kc("0x6")]}static get[kc("0x5")](){return"TrackChanges"}set[kc("0x0")](t){this.editor[kc("0x3")].get(Wa).adapter=t}get[kc("0x0")](){return this[kc("0x1")][kc("0x3")][kc("0x2")](Wa).adapter}[kc("0x4")](t){return this[kc("0x1")][kc("0x3")][kc("0x2")](Wa)[kc("0x7")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x1")].plugins[kc("0x2")](Wa).getSuggestions({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[kc("0x1")][kc("0x3")][kc("0x2")](Wa).getSuggestion(t)}}const vc=["WebSocketGateway","getSuggestions","builtinPlugins","context","result","execute","requires","model","toolbar","includes","DocumentOutline","track-changes-data-invalid-editor-creator","WordCount","editorCreator","_context","addUser","config","has","filter","init","appendChild","div","TrackChangesEditing","Autosave","extraPlugins","string","plugins","end","pluginName","constructor","CommentsRepository","find","every","Pagination","map","get","destroy","from","acceptAllSuggestions","trackChangesData.editorCreator","editor","create","names","set","trackChangesData","data","users","RevisionTracker","addSuggestionData","tokenUrl","concat","push","initialData","getDataWithDiscardedSuggestions","discardAllSuggestions","getRootNames","useAnonymousUser","getUser","cloudServices","TrackChangesDataGetter"];var Rc,Sc;Rc=vc,Sc=361,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x33"),Ic("0x2"),Ic("0x7")],Nc=[Ic("0x3b"),Ic("0x2e"),Ic("0x16"),Ic("0xb"),Ic("0x20"),Ic("0x9")];class Mc extends t.Plugin{static get requires(){return[Wa]}static get[Ic("0x1b")](){return"TrackChangesData"}[Ic("0x12")](){const t=this[Ic("0x27")];if(t[Ic("0xf")].define(Ic("0x26"),(e=>t[Ic("0x1c")][Ic("0x28")]("",e))),"function"!=typeof t[Ic("0xf")][Ic("0x22")](Ic("0x2b")).editorCreator)throw new e.CKEditorError(Ic("0xa"))}getDataWithAcceptedSuggestions(t){return Oc(this[Ic("0x27")],!0,t)}[Ic("0x34")](t){return Oc(this.editor,!1,t)}}class wc extends t.Plugin{static get[Ic("0x1b")](){return Ic("0x3a")}constructor(t){super(t),this[Ic("0x3")]=Ic("0x1a")}[Ic("0x12")](){this.editor[Ic("0x19")][Ic("0x22")](Ic("0x1d"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Ic("0x27")][Ic("0x19")][Ic("0x22")](Ic("0x15"))._adapter=null}}async function Oc(t,e,n){const o=function(t){const e={};for(const n of t[Ic("0xf")][Ic("0x29")]())Lc.includes(n)||(e[n]=t[Ic("0xf")][Ic("0x22")](n));e[Ic("0x39")]&&e[Ic("0x39")].tokenUrl&&delete e[Ic("0x39")][Ic("0x30")];const n=t[Ic("0x1c")][Ic("0x1")]||[],o=e.extraPlugins||[];delete e[Ic("0x17")];const s=t[Ic("0xd")][Ic("0xf")].get(Ic("0x19"))||[],r=n[Ic("0x31")](e[Ic("0x19")]).concat(o)[Ic("0x31")](s)[Ic("0x21")]((t=>Ic("0x18")==typeof t?n[Ic("0x1e")]((e=>e[Ic("0x1b")]==t)):t)),i=Array[Ic("0x24")](new Set(r)),x=new Map;return e[Ic("0x19")]=i[Ic("0x11")]((t=>Fc(t,x))),e[Ic("0x19")].push(Wa),e[Ic("0x19")][Ic("0x32")](wc),e}(t),s=document.createDocumentFragment(),r=t.config[Ic("0x22")]("trackChangesData")[Ic("0xc")],i=await r(o,(()=>function(t){const e=document.createElement(Ic("0x14"));return t[Ic("0x13")](e),e}(s)));!function(t,e){const n=t[Ic("0x6")].document[Ic("0x36")]().reduce(((e,n)=>(e[n]=t[Ic("0x2c")][Ic("0x22")]({rootName:n}),e)),{}),o=t.plugins.get("Users")[Ic("0x2d")][Ic("0x21")]((t=>({id:t.id,name:t.name}))),s=t[Ic("0x19")][Ic("0x22")]("TrackChangesEditing")[Ic("0x0")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x19")][Ic("0x22")]("Users"),i=e[Ic("0x19")][Ic("0x22")](Ic("0x15"));for(const t of o)r[Ic("0x38")](t.id)||r[Ic("0xe")](t);r.me||r[Ic("0x37")]();for(const t of s)i[Ic("0x2f")](t);e[Ic("0x2c")][Ic("0x2a")](n)}(t,i),i[Ic("0x4")](Ic(e?"0x25":"0x35"));const x=i.data[Ic("0x22")](n);return await i[Ic("0x23")](),x}function Fc(t,e){const n="function"==typeof t?t[Ic("0x1b")]||t.name:t;if(e[Ic("0x10")](n))return e[Ic("0x22")](n);if(e[Ic("0x2a")](n,!0),n&&Nc[Ic("0x8")](n))return e[Ic("0x2a")](n,!1),!1;if(!t[Ic("0x5")])return e[Ic("0x2a")](n,!0),!0;const o=t.requires[Ic("0x1f")]((t=>Fc(t,e)));return e[Ic("0x2a")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();