@ckeditor/ckeditor5-track-changes 37.0.0-rc.0 → 37.0.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.
Files changed (61) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +2 -2
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/heading.js +1 -1
  21. package/src/integrations/highlight.js +1 -1
  22. package/src/integrations/horizontalline.js +1 -1
  23. package/src/integrations/htmlembed.js +1 -1
  24. package/src/integrations/image.js +1 -1
  25. package/src/integrations/imagereplace.js +1 -1
  26. package/src/integrations/importword.js +1 -1
  27. package/src/integrations/indent.js +1 -1
  28. package/src/integrations/inputcommand.js +1 -1
  29. package/src/integrations/link.js +1 -1
  30. package/src/integrations/list.js +1 -1
  31. package/src/integrations/listproperties.js +1 -1
  32. package/src/integrations/mediaembed.js +1 -1
  33. package/src/integrations/mention.js +1 -1
  34. package/src/integrations/pagebreak.js +1 -1
  35. package/src/integrations/paragraph.js +1 -1
  36. package/src/integrations/removeformat.js +1 -1
  37. package/src/integrations/restrictededitingmode.js +1 -1
  38. package/src/integrations/shiftentercommand.js +1 -1
  39. package/src/integrations/standardeditingmode.js +1 -1
  40. package/src/integrations/style.js +1 -1
  41. package/src/integrations/table.js +1 -1
  42. package/src/integrations/tablecaption.js +1 -1
  43. package/src/integrations/tableclipboard.js +1 -1
  44. package/src/integrations/tablecolumnresize.js +1 -1
  45. package/src/integrations/tableheadings.js +1 -1
  46. package/src/integrations/tablemergesplit.js +1 -1
  47. package/src/integrations/tableproperties.js +1 -1
  48. package/src/integrations/title.js +1 -1
  49. package/src/integrations/undo.js +1 -1
  50. package/src/integrations/utils.js +1 -1
  51. package/src/suggestion.js +1 -1
  52. package/src/suggestiondescriptionfactory.js +1 -1
  53. package/src/trackchanges.js +1 -1
  54. package/src/trackchangesdata.js +1 -1
  55. package/src/trackchangesediting.js +1 -1
  56. package/src/trackchangesui.js +1 -1
  57. package/src/ui/suggestioncontroller.js +1 -1
  58. package/src/ui/view/basesuggestionthreadview.js +1 -1
  59. package/src/ui/view/suggestionthreadview.js +1 -1
  60. package/src/utils/common-translations.js +1 -1
  61. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>za,TrackChanges:()=>ac,TrackChangesData:()=>fc,TrackChangesEditing:()=>Ra});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["affectsData","forceDisabled","editor","value","has","clearForceDisabled","isEnabled","execute","_enableCommands","commands","TrackChangesCommand","refresh","_disableUnsupportedCommands","_enabledCommands"];var c,l;c=a,l=386,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0x5")]=e,this[d("0x9")]=!1,this[d("0x3")]()}[d("0x3")](){this[d("0xc")]=!0}[d("0xd")](){this[d("0x9")]=!this[d("0x9")],this.value?this[d("0x4")]():this[d("0x0")]()}_disableUnsupportedCommands(){for(const t of this[d("0x8")][d("0x1")].commands())t[d("0x6")]&&!this[d("0x5")][d("0xa")](t)&&t[d("0x7")](d("0x2"))}[d("0x0")](){for(const t of this[d("0x8")][d("0x1")][d("0x1")]())t[d("0x6")]&&!this._enabledCommands[d("0xa")](t)&&t[d("0xb")](d("0x2"))}}const g=["refresh","get","_suggestions","acceptSuggestion","plugins","execute","track-changes-accept-suggestion-not-found"];var m,f;m=g,f=469,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0x0")]()}[h("0x0")](){this.isEnabled=!0}[h("0x5")](t){const n=this[h("0x2")].get(t);if(!n)throw new e.CKEditorError(h("0x6"),this);this.editor[h("0x4")][h("0x1")]("TrackChangesEditing")[h("0x3")](n)}}const b=["plugins","execute","_suggestions","get","editor","isEnabled","discardSuggestion","refresh","TrackChangesEditing"];var E,_;E=b,_=420,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("0x5")]=e,this[T("0x1")]()}[T("0x1")](){this[T("0x8")]=!0}[T("0x4")](t){const n=this[T("0x5")][T("0x6")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);this[T("0x7")][T("0x3")].get(T("0x2"))[T("0x0")](n)}}const y=["sort","isMultiRange","add","createRange","getMarkers","end","createPositionBefore","deletion","isTouching"," [color ","replace","from","map","isObject","createPositionAt","isIntersecting","change","getRange","isInContent","length","push","type","join","splice","value","color","start","createPositionAfter","schema","execute"];var k,A;k=y,A=212,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x1c")](((t,e)=>v("0x5")==t[v("0x13")]&&v("0x5")!=e[v("0x13")]?-1:v("0x5")!=t[v("0x13")]&&v("0x5")==e.type?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x1a")];for(;o<t[v("0x11")];){const i=t[o],x=t[o+1];n||(n=e[v("0x4")](i)),S(e,i,x)||(s[v("0x12")](e[v("0x1")](n,r[v("0xb")](i)?e[v("0x19")](i):e[v("0xc")](i,v("0x3")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0x19")](e),s=t[v("0x4")](n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x11")];){const o=n[v("0x15")](0,100);t[v("0xe")]((()=>{for(const t of o)t[v("0x10")]&&e[v("0x1b")](t.id)}))}}const N=["_command","model","refresh","values","isInContent","editor","isEnabled","_suggestions","from"];var M,w;M=N,w=364,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("0x5")]=e,this[O("0x3")]=n,this[O("0x7")]()}[O("0x7")](){const t=Array[O("0x4")](this[O("0x3")].values()).some((t=>t[O("0x0")]));this[O("0x2")]=this[O("0x5")][O("0x2")]&&t}execute(){const t=R(Array[O("0x4")](this[O("0x3")][O("0x8")]()));L(this[O("0x1")][O("0x6")],this[O("0x5")],t)}}const P=["_suggestions","values","document","model","editor","from","_command","execute","isEnabled","refresh","_selectedSuggestions"];var D,B;D=P,B=315,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("0xa")]=e,this[j("0x4")]=n,this._selectedSuggestions=new Set,this[j("0x2")]()}[j("0x2")](){const t=this[j("0x8")][j("0x7")][j("0x6")].selection,e=Array[j("0x9")](this[j("0x4")][j("0x5")]());this[j("0x3")]=function(t,e){const n=Array[v("0x9")](t.getRanges()),o=new Set;for(const s of e)if(s[v("0x10")])for(const e of n)for(const n of s[v("0x2")]()){const r=n[v("0xf")]();(e[v("0xd")](r)||t.isCollapsed&&!s[v("0x1d")]&&s.next&&r[v("0x3")][v("0x6")](e[v("0x18")]))&&o[v("0x0")](s)}return o}(t,e),this.isEnabled=this._command[j("0x1")]&&!!this[j("0x3")].size}[j("0x0")](){const t=R(Array.from(this[j("0x3")]));L(this.editor[j("0x7")],this[j("0xa")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var V=Array.prototype.splice;const z=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():V.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=z,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Q=$;const J=function(){this.__data__=new Q,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(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||Q),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Vt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const zt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Vt(this,t).get(t)};const qt=function(t){return Vt(this,t).has(t)};const Xt=function(t,e){var n=Vt(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=zt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var We=Object.prototype.hasOwnProperty;const Ve=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const ze=function(t){return je(t)?Me(t,!0):Ve(t)};const Ke=function(t,e){return t&&re(e,ze(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,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,ze,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 In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Vn=function(t){return xe(t)&&"[object Map]"==In(t)};var zn=Ie&&Ie.isMap;const Kn=zn?ke(zn):Vn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=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[Jn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=In(e),g=u==Jn||"[object GeneratorFunction]"==u;if(be(e))return Je(e,a);if(u==Zn||u==Qn||g&&!r){if(x=c||g?{}:Wn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?ze: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||Qt),n}io.Cache=Qt;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 Qt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=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=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Wo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Vo=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 zo=function(t,e){return e.length<2?t:Wo(t,Vo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=zo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["getMarkers","onAttributesChange","decorate","setAttribute","addRange","nodeBefore","onDiscard","substr","change","get","type","getContainedElement","add","toJSON","commentThread","markers","_onAccept","isIntersecting","removeAttribute","start","attributes","createdAt","isInContent","discard","removeMarker","creator","_onDiscard","from","push","getRanges","subType","split","next","getRange","authoredAt","hasComments","_model","getMultiRangeId","removeMarkers","onAccept","_markerNames","_saved","_onAttributesChange","length","head","author","filter","data","set","getMarkerNames","end","isIntersectingWithRange","getFirstMarker","map","accept","previous"];var $o,Qo;$o=Xo,Qo=137,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Jo("0x29")]=e[Jo("0x29")],this[Jo("0x5")]=e[Jo("0x5")]||null,this[Jo("0x14")]=e[Jo("0x14")],this[Jo("0x0")]=e[Jo("0x0")]||e.author,this.isExternal=Boolean(e.attributes&&e.attributes["@external"]),this[Jo("0x16")]=null,this[Jo("0xb")]=t,this[Jo("0x2f")]=e[Jo("0xe")],this[Jo("0x1")]=e[Jo("0x25")],this[Jo("0x11")]=e[Jo("0x20")],this[Jo("0xf")]=new Set,this[Jo("0x34")]=null,this[Jo("0x17")](Jo("0x9"),null),this[Jo("0x17")]("attributes",e[Jo("0x33")]||{}),this.set("previous",null),this[Jo("0x17")](Jo("0x7"),null),this.set(Jo("0x2d"),null),this[Jo("0x17")](Jo("0x10"),!1),this[Jo("0x21")](Jo("0x1d")),this[Jo("0x21")](Jo("0x36"))}get[Jo("0x13")](){let t=this;for(;t[Jo("0x1e")];)t=t[Jo("0x1e")];return t}get[Jo("0xa")](){return!!this.commentThread&&this[Jo("0x2d")][Jo("0x12")]>0}get isMultiRange(){return 0!=this._markerNames.size&&6==Array[Jo("0x2")](this[Jo("0xf")])[0][Jo("0x6")](":").length}get[Jo("0x35")](){return null!==this[Jo("0x1b")]()}addMarkerName(t){this[Jo("0xf")][Jo("0x2b")](t)}[Jo("0x18")](){return Array.from(this[Jo("0xf")])}[Jo("0x1f")](){return this[Jo("0x18")]().map((t=>this._model[Jo("0x2e")][Jo("0x28")](t)))[Jo("0x15")]((t=>t))}[Jo("0x1b")](){return this[Jo("0x1f")]()[0]||null}[Jo("0xd")](){this[Jo("0xb")].change((t=>{for(const e of this[Jo("0x1f")]())t[Jo("0x37")](e)})),this._markerNames.clear()}[Jo("0x37")](t){this[Jo("0xb")][Jo("0x27")]((e=>{e[Jo("0x37")](t)})),this[Jo("0xf")].delete(t)}[Jo("0x23")](t){const e="suggestion:"+this[Jo("0x29")]+":"+this.subType+":"+this.id+":"+this[Jo("0x0")].id+":"+Zo.getMultiRangeId();this.addMarkerName(e),this._model[Jo("0x27")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Jo("0x1a")](t){for(const e of this.getRanges())if(e[Jo("0x30")](t))return!0;return!1}[Jo("0x4")](){return this[Jo("0x1f")]()[Jo("0x1c")]((t=>t[Jo("0x8")]()))}getItems(){return this[Jo("0x4")]().reduce(((t,e)=>[...t,...e.getItems()]),[])}getFirstRange(){var t;return(null===(t=this[Jo("0x1b")]())||void 0===t?void 0:t[Jo("0x8")]())||null}[Jo("0x2a")](){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e[Jo("0x32")].nodeAfter,o=e[Jo("0x19")][Jo("0x24")];return n instanceof i.Element?n!=o?null:n:null}[Jo("0x1d")](){this[Jo("0x2f")](this[Jo("0x4")](),this.data,this[Jo("0x33")]),this[Jo("0xd")]()}[Jo("0x36")](){this._onDiscard(this[Jo("0x4")](),this[Jo("0x16")],this.attributes),this[Jo("0xd")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Jo("0x13")];for(;e;)t[Jo("0x3")](e),e=e[Jo("0x7")];return t}[Jo("0x22")](t,e){const n=eo(this[Jo("0x33")]);_o(n,t,e),Go(n,this[Jo("0x33")])||(this.attributes=n,this[Jo("0x11")](n))}[Jo("0x31")](t){const e=eo(this[Jo("0x33")]);qo(e,t),Go(e,this[Jo("0x33")])||(this[Jo("0x33")]=e,this._onAttributesChange(this.attributes))}[Jo("0x2c")](){return{id:this.id,type:this[Jo("0x5")]?this[Jo("0x29")]+":"+this[Jo("0x5")]:this[Jo("0x29")],authorId:this[Jo("0x0")].id,createdAt:this[Jo("0x34")],hasComments:this[Jo("0xa")],data:this[Jo("0x16")],attributes:this.attributes}}static[Jo("0xc")](){return(0,e.uid)()[Jo("0x26")](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 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_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=["addObject","item","isEmpty","_locale","*Remove:* %0","addContainer","_addDescriptionItems","addEmptyContainer","_schema","normal","isObject","_itemLabels","getWalker","removeObject","matchingCallback","indexOf","elementEnd","previousSibling","end","data","add","skip","_itemLabelsCallbacks","replace","getFirstRange","match","getItemLabel","$1 $2","Object","type","Container","isEqual","registerElementLabel","*Merge:* %0","remove","function","name","text","$textProxy","_customCallbacks","_resolveDescriptionItems","push","EmptyContainer","element","quantity","nextSibling","*Split:* %0","length","REPLACE_TEXT","*Insert:* %0","deletion","isInContent","start","ELEMENT_SPACE","insertion","pop"];var es,ns;es=ts,ns=354,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("0x15")]=[],this[os("0x31")]=new Map,this[os("0x4")]=[],this[os("0x2e")]=t,this[os("0x29")]=e}getDescriptions(t){const e=[];for(let n=0;n<t[os("0x1d")];n++){const o=t[n];if(!o[os("0x21")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0xb")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x2c")](e,o);const s=t[n+1];if(s&&!o[os("0x6")]()[os("0x0")][os("0xd")](s[os("0x6")]()[os("0x22")])){const t=e[e[os("0x1d")]-1],n="insertion"==o[os("0xb")]?"add":os("0x10");t&&os("0x13")==t[os("0xb")]&&(t[n]+="\n")}}}return this[os("0x16")](e)}registerDescriptionCallback(t){this[os("0x15")][os("0x17")](t)}[os("0xe")](t,n,o=e.priorities[os("0x2f")]){os("0x11")==typeof t?(0,e.insertToPriorityArray)(this[os("0x4")],{matchingCallback:t,label:n,priority:o}):this[os("0x31")].set(t,n)}getItemLabel(t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x34")](t)){n=e.label;break}return n||(n=this[os("0x31")].get(t[os("0x12")])),n?n(e):1!==e?e+" "+t[os("0x12")]+"s":""+t.name}[os("0x2c")](t,e){const n=e[os("0x6")]()[os("0x32")](),o="insertion"==e[os("0xb")]?"add":os("0x10");for(const e of n){const s=e.item,r=t[t.length-1];if(s.is(os("0x14")))r&&r.type[os("0x35")](os("0xc"))>-1&&t[os("0x25")](),r&&os("0x13")==r[os("0xb")]?r[o]+=s[os("0x1")]:t[os("0x17")]({type:os("0x13"),add:os("0x2")==o?s[os("0x1")]:"",remove:os("0x10")==o?s[os("0x1")]:""});else if(this[os("0x2e")][os("0x30")](s)){const i=s;if(r&&r[os("0xb")][os("0x35")](os("0xc"))>-1&&t.pop(),"elementEnd"==e.type)continue;r&&r[os("0xb")]==o+os("0xa")&&r[os("0x19")].name==i[os("0x12")]?r[os("0x1a")]++:t.push({type:o+"Object",element:i,quantity:1}),n[os("0x3")]((t=>!(os("0x36")==t[os("0xb")]&&t[os("0x27")]==s)))}else if(this[os("0x2e")].checkChild(s,"$text")||s.is("element","softBreak")){const n=s;if(os("0x2")==o&&"elementStart"==e[os("0xb")]||os("0x10")==o&&os("0x36")==e[os("0xb")])continue;if(r&&-1==r[os("0xb")][os("0x35")]("Container")){"text"==r[os("0xb")]&&(r[o]+="\n");continue}let i;if(i=os("0x2")==o?n[os("0x1b")]&&!this[os("0x2e")].isObject(n[os("0x1b")])?n[os("0x1b")]:null:n[os("0x37")]&&!this._schema.isObject(n[os("0x37")])?n[os("0x37")]:null,n.isEmpty||i&&i[os("0x28")]){const e=i&&i.isEmpty?i:n;r&&r.type==o+os("0x18")&&r[os("0x19")][os("0x12")]==e[os("0x12")]?r[os("0x1a")]++:t[os("0x17")]({type:o+os("0x18"),element:e,quantity:1})}else t.push({type:o+os("0xc"),element:n})}}}[os("0x16")](t){const e=this[os("0x29")],n=[];for(const o of t){switch(o[os("0xb")]){case os("0x13"):if(o.add=o[os("0x2")][os("0x5")](/(\S)\u000A+(\S)/g,os("0x9"))[os("0x5")](/\u000A/g,""),o[os("0x10")]=o[os("0x10")][os("0x5")](/(\S)\u000A+(\S)/g,os("0x9"))[os("0x5")](/\u000A/g,""),""!=o.add&&""!=o.remove){n[os("0x17")]({type:os("0x5"),content:Yo(e,os("0x1e"),['"'+o[os("0x10")]+'"','"'+o[os("0x2")]+'"'])});continue}if(null!=o[os("0x2")][os("0x7")](/^ +$/)){n[os("0x17")]({type:os("0x24"),content:Yo(e,os("0x1f"),Yo(e,os("0x23"),o[os("0x2")].length))});continue}if(null!=o[os("0x10")][os("0x7")](/^ +$/)){n[os("0x17")]({type:os("0x20"),content:Yo(e,os("0x2a"),Yo(e,os("0x23"),o[os("0x10")][os("0x1d")]))});continue}if(""!=o[os("0x2")]){n[os("0x17")]({type:os("0x24"),content:Yo(e,os("0x1f"),'"'+o.add+'"')});continue}n[os("0x17")]({type:os("0x20"),content:Yo(e,os("0x2a"),'"'+o[os("0x10")]+'"')});continue;case os("0x2d"):case os("0x26"):n[os("0x17")]({type:os("0x24"),content:Yo(e,os("0x1f"),this[os("0x8")](o[os("0x19")],o[os("0x1a")]))});continue;case"removeEmptyContainer":case os("0x33"):n.push({type:os("0x20"),content:Yo(e,"*Remove:* %0",this[os("0x8")](o[os("0x19")],o.quantity))});continue;case os("0x2b"):n[os("0x17")]({type:os("0x24"),content:Yo(e,os("0x1c"),this[os("0x8")](o[os("0x19")],o[os("0x1a")]))});continue;case"removeContainer":n[os("0x17")]({type:"deletion",content:Yo(e,os("0xf"),this[os("0x8")](o[os("0x19")],o.quantity))});continue}n.push(o)}return n}}const rs=["TrackChangesEditing","FORMAT_ALIGN_TO_CENTER","editor","center","commandParams","has","locale","afterInit","change","FORMAT_ALIGN_TO_RIGHT","left","getAttribute","enableCommand","justify","plugins","right","alignment","ltr","contentLanguageDirection","get","format","markBlockFormat","commandName","document","filter","*Format:* %0","AlignmentEditing","model","_descriptionFactory","registerDescriptionCallback","selection","value","FORMAT_ALIGN_TO_LEFT"];var is,xs;is=rs,xs=344,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x1a")](){const t=this.editor,e=t[as("0x19")];if(!t.plugins[as("0x18")](as("0xc")))return;const n=t[as("0x0")][as("0x5")](as("0x13"));n[as("0x1f")](as("0x2"),((e,o={})=>{let s=o[as("0x11")];o[as("0x11")]||(s=as("0x3")===t[as("0x19")][as("0x4")]?as("0x1d"):as("0x1"));const r=Array.from(this.editor[as("0xd")][as("0x9")][as("0x10")].getSelectedBlocks())[as("0xa")]((t=>function(t,e,n){const o=t[as("0x1e")](as("0x2"))||null;return e.checkAttribute(t,as("0x2"))&&n!=o}(t,this[as("0x15")][as("0xd")].schema,s)));t.model[as("0x1b")]((()=>{for(const t of r)n[as("0x7")](t,{commandName:as("0x2"),commandParams:[{value:s}]})}))})),n[as("0xe")][as("0xf")]((t=>{const{data:n}=t;if(n&&"alignment"==n[as("0x8")]){const t=n[as("0x17")][0].value;return{type:as("0x6"),content:Yo(e,as("0xb"),function(t){switch(t){case as("0x1d"):return Yo(e,as("0x12"));case"right":return Yo(e,as("0x1c"));case as("0x16"):return Yo(e,as("0x14"));case as("0x20"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["isContent","schema","markerRange","bindElementToMarker","TrackChangesEditing","hasAttribute","get","isLimit","getWalker","getItems","push","span","isAtEnd","includes","item","addHighlight","getAttribute","previousPosition","elementEnd","toViewElement","activeMarkers","markerName","element","nextSibling","isBlock","listItem","writer","insert","createUIElement","mapper","listIndent"];var ds,us;ds=ls,us=340,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0xa")]())s[gs("0x6")](t)&&o[gs("0xb")](n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0x17"),gs("0x1a"))){let n=t[gs("0x18")];for(;n&&n.is(gs("0x17"),gs("0x1a"))&&n[gs("0x11")](gs("0x0"))>0;)e[gs("0xb")](n),n=n[gs("0x18")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0x7")](gs("0x5"));return(s,r,i)=>{if(!i.consumable.test(r[gs("0x3")],s.name))return;const x=r[gs("0x3")][gs("0x9")](),a=r[gs("0x3")].start,c=t.model[gs("0x2")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0xf")];u=u||c[gs("0x1")](e);const n=i[gs("0x1e")][gs("0x14")](e);if(n&&n.getCustomProperty(gs("0x10")))return;gs("0x13")==t.type&&c[gs("0x19")](e)&&!c[gs("0x8")](e)&&(e[gs("0x18")]||a[gs("0xd")]?l&&l.parent==e||(l=e,m(t[gs("0x12")]),g=!0):d=d||t.previousPosition)}function m(t){const s=i[gs("0x1b")][gs("0x1d")](gs("0xc"),{class:"ck-suggestion-marker-"+e}),x=i[gs("0x1e")].toViewPosition(t);n&&o[gs("0x15")][gs("0xe")](r[gs("0x16")])&&i.writer.addClass("ck-suggestion-marker--active",s),i[gs("0x1b")][gs("0x1c")](x,s),i[gs("0x1e")][gs("0x4")](s,r[gs("0x16")])}u||g||!d||m(d)}}const ps=["slice","FORMAT_CODE","FORMAT_SUPERSCRIPT","plugins","toLowerCase","document","registerDescriptionCallback","subscript","has","locale","StrikethroughEditing","commandParams","underline","*Remove format:* %0","FORMAT_BOLD","strikethrough","editor","afterInit","forceValue","format","code","commandName","bold","BoldEditing","commands","FORMAT_UNDERLINE","superscript","change","TrackChangesEditing","get","from","getRanges","italic","markInlineFormat","enableCommand","FORMAT_SUBSCRIPT","value","FORMAT_ITALIC"];var bs,Es;bs=ps,Es=208,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x5"),"ItalicEditing","UnderlineEditing","CodeEditing",_s("0x1e"),"SubscriptEditing","SuperscriptEditing"];class Cs extends t.Plugin{[_s("0x25")](){const t=this[_s("0x24")],e=t.model,n=t[_s("0x17")].get(_s("0xa")),o=t[_s("0x1d")];for(const o of Ts){if(!t[_s("0x17")][_s("0x1c")](o))continue;const s=o[_s("0x14")](0,-7)[_s("0x18")](),r=t[_s("0x6")][_s("0xb")](s);n[_s("0x10")](s,((t,o={})=>{const i=e[_s("0x19")].selection;if(i.isCollapsed)return void t(o);const x=void 0!==o.forceValue?o.forceValue:!r[_s("0x12")];e[_s("0x9")]((()=>{const t=Array[_s("0xc")](i[_s("0xd")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0xf")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0x1a")]((n=>{const{data:s}=n;if(s&&s[_s("0x3")]===t)return s[_s("0x1f")][0][_s("0x0")]?{type:_s("0x1"),content:Yo(o,"*Format:* %0",e)}:{type:"format",content:Yo(o,_s("0x21"),e)}}))}s(_s("0x4"),Yo(o,_s("0x22"))),s(_s("0xe"),Yo(o,_s("0x13"))),s(_s("0x20"),Yo(o,_s("0x7"))),s(_s("0x2"),Yo(o,_s("0x15"))),s(_s("0x23"),Yo(o,"FORMAT_STRIKETHROUGH")),s(_s("0x1b"),Yo(o,_s("0x11"))),s(_s("0x8"),Yo(o,_s("0x16")))}}const ys=["commandName","has","editor","checkChild","commandParams","selection","forceValue","locale","getSelectedBlocks","from","_descriptionFactory","enableCommand","markBlockFormat","ELEMENT_BLOCK_QUOTE","$root","commands","format","TrackChangesEditing","value","change","afterInit","filter","get","plugins","blockQuote","name","parent","*Remove format:* %0","model","BlockQuoteEditing"];var ks,As;ks=ys,As=218,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0xc")](){const t=this[vs("0x18")],e=t[vs("0x1d")];if(!t[vs("0xf")][vs("0x17")](vs("0x15")))return;const n=t[vs("0xf")].get(vs("0x9")),o=this[vs("0x18")][vs("0x7")][vs("0xe")]("blockQuote");n[vs("0x3")]("blockQuote",((e,s={})=>{const r=this[vs("0x18")][vs("0x14")].document[vs("0x1b")],i=s&&void 0!==s[vs("0x1c")]?s[vs("0x1c")]:!o[vs("0xa")];let x=[];if(i){const e=Array.from(r[vs("0x0")]())[vs("0xd")]((t=>Is(t)||function(t,e){const n=e[vs("0x19")](t[vs("0x12")],vs("0x10")),o=e[vs("0x19")]([vs("0x6"),vs("0x10")],t);return n&&o}(t,this[vs("0x18")][vs("0x14")].schema)));x=I(e,t[vs("0x14")])}else{const e=Array[vs("0x1")](r[vs("0x0")]())[vs("0xd")]((t=>Is(t)));x=I(e,t.model)}t[vs("0x14")][vs("0xb")]((()=>{for(const t of x)n[vs("0x4")](t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[vs("0x2")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x10")==n[vs("0x16")]){const t=Yo(e,vs("0x5"));return n[vs("0x1a")][0].forceValue?{type:vs("0x8"),content:Yo(e,"*Format:* %0",t)}:{type:vs("0x8"),content:Yo(e,vs("0x13"),t)}}}))}}function Is(t){return"blockQuote"==t.parent[vs("0x11")]}const Ss=["commands","editor","TrackChangesEditing","ckbox","afterInit","enableCommand","get","plugins"];var Ls,Ns;Ls=Ss,Ns=461,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ms("0x7")](){const t=this[Ms("0x4")];t[Ms("0x3")][Ms("0x1")](Ms("0x6"))&&t[Ms("0x2")][Ms("0x1")](Ms("0x5"))[Ms("0x0")](Ms("0x6"))}}const Os=["label","_descriptionFactory","editor","CodeBlock","config","TrackChangesEditing","selection","locale","registerElementLabel","*Remove format:* %0","parent","registerDescriptionCallback","schema","enableCommand","format","forceValue","blockName","isLimit","model","codeBlock","getSelectedBlocks","indentCodeBlock","get","language","change","outdentCodeBlock","plugins","ELEMENT_CODE_BLOCK","document","filter","from","languages","afterInit","name","commandParams","find","commandName","has"];var Fs,Ps;Fs=Os,Ps=267,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1f")](){const t=this[Ds("0x1")];if(!t[Ds("0x19")][Ds("0x24")](Ds("0x2")))return;const e=t.plugins[Ds("0x15")](Ds("0x4")),n=t[Ds("0x6")],o=t[Ds("0x3")].get("codeBlock")[Ds("0x1e")],s=t.commands.get("codeBlock");e[Ds("0xc")](Ds("0x14")),e[Ds("0xc")](Ds("0x18")),e.enableCommand(Ds("0x12"),((n,r={})=>{const i=t[Ds("0x11")],x=t[Ds("0x11")][Ds("0x1b")][Ds("0x5")],a=r&&void 0!==r[Ds("0xe")]?r.forceValue:!s.value;let c;r[Ds("0x16")]||(r.language=o[0][Ds("0x16")]),c=a?Array[Ds("0x1d")](x[Ds("0x13")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0xb")],!e.is("rootElement")&&!n[Ds("0x10")](e)&&n.checkChild(e[Ds("0x9")],Ds("0x12")));var e,n})):Array[Ds("0x1d")](x.getSelectedBlocks())[Ds("0x1c")]((t=>js(t)));const l=I(c,i);i[Ds("0x17")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ds("0x12"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0xf")})}))})),e[Ds("0x0")][Ds("0x7")](Ds("0x12"),(t=>Yo(n,Ds("0x1a"),t))),e[Ds("0x0")][Ds("0xa")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&"codeBlock"==r[Ds("0x23")]){const t=r[Ds("0x21")][0][Ds("0x16")],s=e(o[Ds("0x22")]((e=>e[Ds("0x16")]===t))[Ds("0x25")]);return r[Ds("0x21")][0][Ds("0xe")]?{type:Ds("0xd"),content:Yo(n,"*Format:* %0",Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Yo(n,Ds("0x8"),Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x20")]}const Us=["afterInit","CommentsEditing","has","addCommentThread","plugins","enableCommand","editor"];var Gs,Hs;Gs=Us,Hs=180,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Ws=function(t,e){return Us[t-=0]};class Vs extends t.Plugin{[Ws("0x2")](){const t=this[Ws("0x1")];t.plugins[Ws("0x4")](Ws("0x3"))&&t[Ws("0x6")].get("TrackChangesEditing")[Ws("0x0")](Ws("0x5"))}}var zs=n(181);const Ks=["requires","forward","downcastDispatcher","model","plugins","root","get","remove","isCollapsed","deleteForward","start","fromRange","createRange","buffer","unit","enqueueChange","markerName","setSelection","end","commands","uiElement","editor","TrackChangesEditing","editing","modifySelection","lock","markerNameToElements","enableCommand","getFirstRange","merge","writer","addMarker:suggestion:deletion","options","showSuggestionHighlights","$graveyard","removeMarker:suggestion:deletion","high","document","data","rootName","mapper","selection"];var qs,Xs;qs=Ks,Xs=356,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Qs extends t.Plugin{static get[$s("0x16")](){return[zs.Delete]}init(){const t=this[$s("0x1")],e=t[$s("0x1a")][$s("0x1c")]($s("0x2"));e[$s("0x7")]("delete");const n=t[$s("0x29")][$s("0x1c")]($s("0x1f"));e[$s("0x7")]($s("0x1f"),((e,o={})=>{const s=t[$s("0x19")].createSelection(t[$s("0x19")][$s("0x11")][$s("0x15")]);s[$s("0x1e")]&&t[$s("0x19")][$s("0x4")](s,{direction:$s("0x17"),unit:o[$s("0x24")]});const r=s[$s("0x8")](),x=i.LiveRange[$s("0x21")](r);let a;e(o),a=$s("0xe")==x[$s("0x1b")][$s("0x13")]?t.model[$s("0x22")](r[$s("0x20")]):t[$s("0x19")][$s("0x22")](x[$s("0x20")],x[$s("0x28")]),x.detach(),t[$s("0x19")][$s("0x25")](n[$s("0x23")].batch,(t=>{n[$s("0x23")][$s("0x5")](),t[$s("0x27")](t.createRange(a[$s("0x28")])),n[$s("0x23")].unlock()}))})),t[$s("0x3")][$s("0x18")].on($s("0xb"),hs(t,$s("0x9")),{priority:$s("0x10")}),t[$s("0x12")][$s("0x18")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[$s("0xc")][$s("0xd")]&&hs(t,$s("0x9"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:$s("0x10")}),t.editing[$s("0x18")].on($s("0xf"),((t,e,n)=>{const o=n.mapper[$s("0x6")](e[$s("0x26")]);if(o)for(const t of o)t.is($s("0x0"))&&(n[$s("0x14")].unbindElementFromMarkerName(t,e[$s("0x26")]),n[$s("0xa")][$s("0x1d")](t))}),{priority:$s("0x10")})}}const Js=["enableCommand","_descriptionFactory","multipleBlocks","schema","getAttribute","format","next","*Outdent:* %0","toUpperCase","after","model","_LIST","bulletedList","listIndent","push","parent","DocumentListEditing","DocumentListUtils","get","add","nextSibling","createPositionAt","has","splitListItemAfter","containsItem","plugins","commandName","refresh","*Format:* remove from %0","ELEMENT_BULLETED_LIST","locale","mergeListItemBackward","mergeListItemForward","hasAttribute","documentList","*Change to:* %0","document","TrackChangesEditing","map","_suggestionFactory","end","listItemId","registerCustomCallback","getRanges","isFirstBlockOfListItem","markBlockFormat","numberedList","ELEMENT_LIST_ITEM","slice","setSelection","*Merge:* %0","*Format:* insert into %0","*Indent:* %0","listType","deletion","indentList","getFirstRange","registerElementLabel","value","markMultiRangeBlockFormat","previousSibling","length","outdentList","change","commandParams","ELEMENT_NUMBERED_LIST","expandListBlocksToCompleteList","commands","accept","nodeAfter","selection","start","forceValue","from","getSelectedBlocks"];var Zs,Ys;Zs=Js,Ys=295,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Js[t-=0]};class er extends t.Plugin{afterInit(){const t=this.editor;if(!t[tr("0x1e")][tr("0x1b")](tr("0x15")))return;const e=t[tr("0x23")],n=t[tr("0x1e")][tr("0x17")](tr("0x2a")),o=t[tr("0x1e")][tr("0x17")](tr("0x16"));function s(e){return()=>{const s=t[tr("0x48")][tr("0x17")](e);let r=Array[tr("0x3")](t.model[tr("0x29")][tr("0x0")][tr("0x4")]());if(a(e)){r=o[tr("0x47")](r);const t=[];for(const e of r)o[tr("0x31")](e)&&t[tr("0x13")](e);r=t}t[tr("0xf")][tr("0x44")]((()=>{n[tr("0x40")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x3f")]}],formatGroupId:tr("0x3a")},[],tr("0x27"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x3")](t);const n=e.findIndex((t=>!t[tr("0x26")](tr("0x2e"))));return n>-1&&(e=e[tr("0x35")](0,n)),e}(t[tr("0xf")][tr("0x29")].selection[tr("0x4")]()),s=o[o[tr("0x42")]-1],r=t.model.schema.isObject(s)?tr("0xe"):"end",i=t[tr("0xf")].createRange(t[tr("0xf")].createPositionAt(o[0],"before"),t.model[tr("0x1a")](s,r));t.model[tr("0x44")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x19")];for(;t&&t[tr("0x9")]("listIndent")>n[tr("0x9")](tr("0x12"));)e[tr("0x18")](t),t=t[tr("0x19")]}return Array[tr("0x3")](e)}(o))}))}}function x(e){return()=>{const o=t.model[tr("0x29")][tr("0x0")][tr("0x4")]()[tr("0xb")]()[tr("0x3f")],s=t[tr("0xf")].createPositionAt(o,"before"),r=t[tr("0xf")][tr("0x1a")](o,0),i=t[tr("0xf")].createRange(s,r);t[tr("0xf")][tr("0x44")]((()=>{n[tr("0x32")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x3a")})}))}}function a(e){const n=t[tr("0x48")][tr("0x17")](tr("0x11")).value,o=t.commands[tr("0x17")](tr("0x33"))[tr("0x3f")];return tr("0x33")===e?n:o}n.enableCommand(tr("0x33"),s("numberedList")),n[tr("0x5")](tr("0x11"),s("bulletedList")),n[tr("0x5")](tr("0x3c"),r(tr("0x3c"))),n.enableCommand(tr("0x43"),r(tr("0x43"))),n[tr("0x5")](tr("0x1c"),x(tr("0x1c"))),n[tr("0x5")]("splitListItemBefore",x("splitListItemBefore")),n[tr("0x6")][tr("0x3e")]((function(e){const n=!t[tr("0xf")][tr("0x8")].isObject(e),o=e[tr("0x41")],s=e[tr("0x19")],r=e[tr("0x9")](tr("0x2e")),i=!o||o[tr("0x9")](tr("0x2e"))!==r,x=!s||s.getAttribute(tr("0x2e"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x34"),t))),n[tr("0x6")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x1f")]){case tr("0x11"):r=n.commandParams[0][tr("0x2")],i=a(n[tr("0x1f")]),o=r?"*Format:* insert into %0":tr("0x21"),i&&(o=tr("0x28")),s={type:"format",content:Yo(e,o,Yo(e,tr("0x22")))};break;case tr("0x33"):r=n.commandParams[0][tr("0x2")],i=a(n[tr("0x1f")]),o=r?tr("0x38"):"*Format:* remove from %0",i&&(o=tr("0x28")),s={type:tr("0xa"),content:Yo(e,o,Yo(e,tr("0x46")))};break;case tr("0x3c"):o=tr("0x39"),s={type:tr("0xa"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))};break;case tr("0x43"):o=function(t){const e=t[tr("0x3d")]();let n=e[tr("0x1")][tr("0x4a")];for(;n&&e[tr("0x1d")](n);){if(n[tr("0x9")](tr("0x12"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x21"),Yo(e,"ELEMENT_"+t[tr("0x3d")]().start.nodeAfter[tr("0x9")]("listType")[tr("0xd")]()+tr("0x10"))):Yo(e,tr("0xc"),Yo(e,tr("0x34"))),s={type:tr("0xa"),content:o};break;case tr("0x24"):case tr("0x25"):!1===n[tr("0x7")]&&(o=tr("0x37"),s={type:tr("0x3b"),content:Yo(e,o,Yo(e,tr("0x34")))})}return s})),n[tr("0x2c")][tr("0x2f")]("formatBlock",tr("0x27"),tr("0x49"),(function(e,n){const o=[];for(let n of e)n[tr("0x1")][tr("0x4a")]===n[tr("0x2d")][tr("0x14")]&&(n=t[tr("0xf")].createRange(t.model.createPositionAt(n[tr("0x1")][tr("0x4a")],0))),o[tr("0x13")](n);t[tr("0xf")][tr("0x44")]((e=>{const s=t[tr("0xf")][tr("0x29")].selection,r=Array[tr("0x3")](s[tr("0x30")]())[tr("0x2b")]((t=>i.LiveRange.fromRange(t)));e[tr("0x36")](o),t[tr("0x48")][tr("0x17")](n[tr("0x1f")])[tr("0x20")](),n[tr("0x45")][tr("0x13")]({forceDefaultExecution:!0}),t.execute(n[tr("0x1f")],...n.commandParams),e.setSelection(r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["hasClass","enter","TrackChangesEditing","document","ck-suggestion-marker-split","markInsertion","fromRange","detach","removeMarker:suggestion:insertion","get","init","parent","setSelection","bind","high","writer","createRange","addMarker:suggestion:insertion","getFirstRange","unbindElementFromMarkerName","remove","editing","nextSibling","end","data","downcastDispatcher","fire","mapper","markerName","markerNameToElements","commands","enterBlock","createPositionAt","getFirstPosition","model","split"];var sr,rr;sr=or,rr=312,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 requires(){return[nr.Enter]}[ir("0x16")](){const t=this.editor,e=t.plugins[ir("0x15")](ir("0xe")),n=t[ir("0x6")][ir("0x15")]("enter");e.enableCommand(ir("0xd"),(()=>{t.model.change((o=>{const s=t[ir("0xa")][ir("0xf")].selection,r=s[ir("0x9")](),x=i.LiveRange[ir("0x12")](s[ir("0x1e")]());if(n[ir("0x7")](o)){const n=t.model[ir("0x8")](r[ir("0x17")][ir("0x22")],0),s=o[ir("0x1c")](r,n);e[ir("0x11")](s)}else o[ir("0x18")](o.createRange(x[ir("0x23")]));x[ir("0x13")](),n[ir("0x2")]("afterExecute",{writer:o})}))})),t.editing[ir("0x1")].on(ir("0x1d"),hs(t,ir("0xb")),{priority:"high"}),t[ir("0x21")][ir("0x1")].on(ir("0x14"),((t,e,n)=>{const o=n.mapper[ir("0x5")](e[ir("0x4")]);if(o)for(const t of o)t[ir("0xc")](ir("0x10"))&&(n[ir("0x3")][ir("0x1f")](t,e[ir("0x4")]),n[ir("0x1b")][ir("0x20")](t))}),{priority:ir("0x1a")}),t[ir("0x0")][ir("0x1")].on(ir("0x1d"),((e,n,o)=>{o.options.showSuggestionHighlights&&hs(t,ir("0xb"),{showActiveMarker:!1})[ir("0x19")](this)(e,n,o)}),{priority:"high"})}}const ar=["bind","replace","findNext","replaceAll","findPrevious","find","start","_isInDeletionRange","getIntersection","model","getMarkersGroup","afterInit","markers","createRange","end","handleFindCommand","createPositionAt","suggestion:deletion","string","enableCommand","item","FindAndReplaceUtils","TrackChangesEditing","plugins","editor","get"];var cr,lr;cr=ar,lr=306,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x11")](){if(!this[dr("0x4")][dr("0x3")].has("FindAndReplaceEditing"))return;const t=this[dr("0x4")][dr("0x3")].get(dr("0x2"));t[dr("0x19")](dr("0xb"),this.handleFindCommand[dr("0x6")](this)),t.enableCommand(dr("0x8")),t[dr("0x19")](dr("0xa")),t[dr("0x19")](dr("0x7")),t[dr("0x19")](dr("0x9"))}[dr("0x15")](t,e,n={}){const o=this[dr("0x4")][dr("0x3")][dr("0x5")](dr("0x1"));void 0!==n&&t((t=>(dr("0x18")==typeof e?o.findByTextCallback(e,n):e)(t).filter((e=>!1===this[dr("0xd")](e,t[dr("0x0")])))),n)}[dr("0xd")](t,e){const n=this[dr("0x4")].model[dr("0x13")](this[dr("0x4")][dr("0xf")][dr("0x16")](e,t[dr("0xc")]),this.editor[dr("0xf")].createPositionAt(e,t[dr("0x14")]));for(const t of this[dr("0x4")][dr("0xf")][dr("0x12")][dr("0x10")](dr("0x17")))if(null!==n[dr("0xe")](t.getRange()))return!0;return!1}}const gr=["FontFamilyEditing","isCollapsed","*Set font family:* %0","model","*Reset font size*","selection","get","fontColor","config","_enableCommand","fontColor.colors","commandParams","*Reset font background color*","TrackChangesEditing","enableCommand","getRanges","value","registerDescriptionCallback","FontColorEditing","*Set font color:* %0","normalizeSizeOptions","trim","has","from","change","fontBackgroundColor.colors","fontFamily","afterInit","editor","format","fontBackgroundColor","markInlineFormat","FontSizeEditing","*Reset font color*","toLowerCase","fontSize.options","_descriptionFactory","find","commandName","fontSize","plugins","FontSize","document","title","locale","FontBackgroundColorEditing","*Set font size:* %0"];var mr,fr;mr=gr,fr=302,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0xc"),commandName:hr("0x13")},{pluginName:hr("0x1b"),commandName:hr("0x6")},{pluginName:hr("0x2d"),commandName:"fontColor"},{pluginName:hr("0x19"),commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x7")](){const t=this[hr("0x8")][hr("0x18")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x8")].plugins[hr("0x2")](t)&&this._enableCommand(e);this.editor[hr("0x14")][hr("0x21")](hr("0x28"))[hr("0x10")][hr("0x2c")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x13")==o[hr("0x12")]){const e=o[hr("0x26")][0][hr("0x2b")];if(e){const o=n(this[hr("0x8")][hr("0x14")][hr("0x21")](hr("0x15"))[hr("0x0")](this[hr("0x8")][hr("0x23")].get(hr("0xf")))[hr("0x11")]((t=>t[hr("0x1e")]==e))[hr("0x17")]).toLowerCase();return{type:hr("0x9"),content:Yo(t,hr("0x1a"),o)}}return{type:hr("0x9"),content:Yo(t,hr("0x1f"))}}if(hr("0x6")==o[hr("0x12")]){const e=o[hr("0x26")][0][hr("0x2b")];return e?{type:"format",content:Yo(t,hr("0x1d"),e)}:{type:"format",content:Yo(t,"*Reset font family*")}}if(hr("0x22")==o.commandName){const e=o.commandParams[0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x8")][hr("0x23")].get(hr("0x25")))[hr("0x11")]((t=>t.model==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0xe")]()),{type:hr("0x9"),content:Yo(t,hr("0x2e"),i)[hr("0x1")](),color:{value:e,title:i||r}}}return{type:hr("0x9"),content:Yo(t,hr("0xd"))}}if(hr("0xa")==o.commandName){const e=o[hr("0x26")][0][hr("0x2b")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x8")][hr("0x23")][hr("0x21")](hr("0x5")))[hr("0x11")]((t=>t.model==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0xe")]()),{type:"format",content:Yo(t,"*Set font background color:* %0",i)[hr("0x1")](),color:{value:e,title:i||r}}}return{type:hr("0x9"),content:Yo(t,hr("0x27"))}}}}))}[hr("0x24")](t){const e=this[hr("0x8")];e[hr("0x14")][hr("0x21")](hr("0x28"))[hr("0x29")](t,((n,o={})=>{const s=e[hr("0x1e")][hr("0x16")][hr("0x20")],r=o.value;s[hr("0x1c")]?n(o):e.model[hr("0x4")]((()=>{const n=Array[hr("0x3")](s[hr("0x2a")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x1e")]);for(const o of n)e[hr("0x14")][hr("0x21")](hr("0x28"))[hr("0xb")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["get","value","document","commandParams","heading.options","registerDescriptionCallback","filter","afterInit","heading","has","markBlockFormat","title","plugins","from","*Change to:* %0","name","ELEMENT_HEADING_CUSTOM","HeadingEditing","selection","ELEMENT_HEADING","change","enableCommand","config","checkChild","format","getSelectedBlocks","find","blockName","_descriptionFactory","editor","model","parent"];var _r,Tr;_r=Er,Tr=273,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x16")](){const t=this.editor,e=t.locale,n=t[Cr("0x5")].get(Cr("0x13"));if(!t[Cr("0x1b")][Cr("0x18")](Cr("0x0")))return;const o=t[Cr("0x1b")][Cr("0xf")]("TrackChangesEditing");o[Cr("0x4")](Cr("0x17"),((e,n)=>{const s=n[Cr("0x10")],r=Array[Cr("0x1c")](this[Cr("0xc")].model[Cr("0x11")][Cr("0x1")][Cr("0x8")]())[Cr("0x15")]((t=>{return e=t,n=s,(o=this.editor.model.schema)[Cr("0x6")](e[Cr("0xe")],n)&&!o.isObject(e)&&e[Cr("0x1e")]!=n;var e,n,o}));t[Cr("0xd")][Cr("0x3")]((()=>{for(const t of r)o[Cr("0x19")](t,{commandName:Cr("0x17"),commandParams:[n],formatGroupId:Cr("0xa")},fs(t))}))}));for(const t of n)"paragraph"!=t[Cr("0xd")]&&o[Cr("0xb")].registerElementLabel(t[Cr("0xd")],(e=>{const n=kr(t[Cr("0xd")]);return null!==n?s(e,n):r(e,t[Cr("0x1a")])}));function s(t,n){return Yo(e,Cr("0x2"),[t,n])}function r(t,n){return Yo(e,Cr("0x1f"),[t,n])}o[Cr("0xb")][Cr("0x14")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&"heading"==i.commandName){const t=i[Cr("0x12")][0][Cr("0x10")],o=kr(t);if(null!==o)return{type:"format",content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Cr("0x9")]((e=>e[Cr("0xd")]===t))[Cr("0x1a")];return{type:Cr("0x7"),content:Yo(e,Cr("0x1d"),r(1,x))}}}))}}function kr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Ar=["getLastMatchingPosition","commandName","plugins","HighlightEditing","*Set highlight:* %0","config","formatInline","getFirstPosition","_descriptionFactory","afterInit","markInlineFormat","push","model","getRanges","locale","hasAttribute","change","format","registerDescriptionCallback","getAttribute","highlight.options","value","backward","commandParams","editor","highlight","get","find","has","createRange","toLowerCase","FORMAT_HIGHLIGHT","selection","title"];var vr,Rr;vr=Ar,Rr=335,function(t){for(;--t;)vr.push(vr.shift())}(++Rr);const Ir=function(t,e){return Ar[t-=0]};class Sr extends t.Plugin{[Ir("0xe")](){const t=this[Ir("0x1d")];if(!t.plugins[Ir("0x21")](Ir("0x8")))return;const e=t[Ir("0x7")][Ir("0x1f")]("TrackChangesEditing");e.enableCommand(Ir("0x1e"),((n,o={})=>{const s=t[Ir("0x11")].document[Ir("0x3")],r=s[Ir("0x18")]("highlight");let i=o[Ir("0x1a")],x=[];if(s.isCollapsed){const e=s[Ir("0xc")]();if(!s[Ir("0x14")]("highlight"))return void n(o);{const n=t=>t.item[Ir("0x18")](Ir("0x1e"))===r,o=e[Ir("0x5")](n,{direction:Ir("0x1b")}),s=e.getLastMatchingPosition(n);x=[t[Ir("0x11")][Ir("0x0")](o,s)],i==r&&(i=null)}}else for(const e of s[Ir("0x12")]())i?x.push(e):x[Ir("0x10")](...ms(Ir("0x1e"),e,t[Ir("0x11")]));t[Ir("0x11")][Ir("0x15")]((()=>{for(const t of x)e[Ir("0xf")](t,{commandName:Ir("0x1e"),commandParams:[{value:i}]})}))}));const n=t[Ir("0x13")];e[Ir("0xd")][Ir("0x17")]((e=>{const{type:o,data:s}=e;if(Ir("0xb")==o&&s&&Ir("0x1e")==s[Ir("0x6")]){const e=n.t,o=s[Ir("0x1c")][0].value;if(o){const s=t[Ir("0xa")][Ir("0x1f")](Ir("0x19"))[Ir("0x20")]((t=>t[Ir("0x11")]==o)),r=e(s[Ir("0x4")])[Ir("0x1")]();return{type:Ir("0x16"),content:Yo(n,Ir("0x9"),r),color:{value:s.color,title:s.title}}}return{type:Ir("0x16"),content:Yo(n,"*Remove highlight*",Yo(n,Ir("0x2")))}}}))}}const Lr=["has","dataDowncast","createPositionAt","showSuggestionHighlights","insert","enableCommand","editor","conversion","afterInit","createEmptyElement","elementToStructure","ELEMENT_HORIZONTAL_LINE","plugins","get","horizontalLine","TrackChangesEditing","div","createContainerElement"];var Nr,Mr;Nr=Lr,Mr=205,function(t){for(;--t;)Nr.push(Nr.shift())}(++Mr);const wr=function(t,e){return Lr[t-=0]};class Or extends t.Plugin{[wr("0x1")](){const t=this[wr("0x11")];if(!t[wr("0x5")][wr("0xb")]("HorizontalLineEditing"))return;t[wr("0x5")][wr("0x6")](wr("0x8"))[wr("0x10")](wr("0x7"));const e=t[wr("0x5")][wr("0x6")](wr("0x8")),n=t.locale;e._descriptionFactory.registerElementLabel(wr("0x7"),(t=>Yo(n,wr("0x4"),t))),t[wr("0x0")].for(wr("0xc"))[wr("0x3")]({model:wr("0x7"),view:(t,{writer:e,options:n})=>{if(!n[wr("0xe")])return null;const o=e[wr("0xa")](wr("0x9")),s=e[wr("0x2")]("hr");return e.addClass("ck-horizontal-line",o),e[wr("0xf")](e[wr("0xd")](o,0),s),o},converterPriority:"high"})}}const Fr=["getSelectedElement","value","_descriptionFactory","enableCommand","format","TrackChangesEditing","getCustomProperty","has","document","commandName","registerElementLabel","model","getAttribute","rawHtml","plugins","afterInit","ELEMENT_HTML_EMBED","markBlockFormat","HtmlEmbed","locale","rawHtmlApi","change","registerDescriptionCallback","selection","get"];var Pr,Dr;Pr=Fr,Dr=212,function(t){for(;--t;)Pr.push(Pr.shift())}(++Dr);const Br=function(t,e){return Fr[t-=0]};class jr extends t.Plugin{[Br("0x3")](){const t=this.editor;if(!t[Br("0x2")][Br("0x14")](Br("0x6")))return;const e=t[Br("0x2")][Br("0xc")](Br("0x12")),n=t[Br("0x7")],o=t.editing.view[Br("0x15")].selection;e[Br("0xf")][Br("0x17")](Br("0x1"),(t=>Yo(n,Br("0x4"),t))),t[Br("0x2")][Br("0xc")](Br("0x12"))[Br("0x10")]("htmlEmbed",((n,s)=>{const r=t[Br("0x18")],i=r.document[Br("0xb")];r[Br("0x9")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is("element",Br("0x1"))?t[Br("0xd")]():null}(i);if(!t)return void n(null);const r=t[Br("0x0")](Br("0xe"))||"";void 0!==s&&s!==r&&(e[Br("0x5")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Br("0xd")]()[Br("0x13")](Br("0x8")).cancel())}))})),e[Br("0xf")][Br("0xa")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Br("0x16")]){const t=Yo(n,Br("0x4"));return{type:Br("0x11"),content:Yo(n,"*Change %0 content*",t)}}}))}}const Ur=["isInContent","enableCommand","getNearestSelectionRange","suggestion","plugins","insertion","imageTypeInline","commandReversedParams","registerDescriptionCallback","forward","resizeImage","chain","newValue","markDeletion","convertInlineImageToBlock","Block image to inline image","_descriptionFactory","detach","refresh","getCaptionFromImageModelElement","ImageTextAlternativeEditing","imageTypeBlock","length","removeObject","name","imageStylePreApply","*Set image width:* %0","toLowerCase","commandParams","alt","get","commandName","filter","document","nodeAfter","has","registerCustomCallback","uploadImage","isCollapsed","find","createRange","ImageCaptionEditing","findIndex","fromPosition","selection","normalizedStyles","join","imageStyle","imageStylePostApply","_splitMarkerName","TrackChangesEditing","backward","value","accept","subType","formatInline","getSuggestions","caption","getSuggestion","convertBlockImageToInline","model","getSuggestionCallback","ImageUploadEditing","_suggestionFactory","discard","createRangeOn","author","ImageInlineEditing","markBlockFormat","width","registerElementLabel","discardSuggestion","getClosestSelectedImageElement","getContainedElement","isOwn","addObject","imageTextAlternative","ImageStyleEditing","ImageBlockEditing","FORMAT_SIDE_IMAGE","ImageUtils","markInsertion","afterInit","imageCaption","previous","forceDefaultExecution","isEqual","type","side","ImageResize","newRange","deletion","isIntersecting","forEach","getFirstRange","hasSuggestion","head","ImageCaptionUtils","formatBlock","getChangedMarkers","shouldConvertImageType","Users","editor","isBlockImage","toggleImageCaption","isInlineImage","locale","*Set image text alternative:* %0","next","commands","*Reset image width*","nodeBefore","start","getAttribute","isBefore","end","Inline image to block image","ELEMENT_IMAGE","element","change","format","_findSuggestions","ImageEditing","schema"];var Gr,Hr;Gr=Ur,Hr=147,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const Wr=function(t,e){return Ur[t-=0]};class Vr extends t.Plugin{[Wr("0x3b")](){const t=this[Wr("0x4f")];if(!t[Wr("0x69")][Wr("0xc")](Wr("0x63")))return;const n=t.plugins[Wr("0x7")](Wr("0x1b")),o=t[Wr("0x69")][Wr("0x7")](Wr("0x39")),s={},r=t[Wr("0x53")];if(n[Wr("0x66")]("insertImage"),n[Wr("0x75")].registerElementLabel("imageBlock",(t=>Yo(r,Wr("0x5e"),t))),n._descriptionFactory[Wr("0x2f")]("imageInline",(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n._descriptionFactory[Wr("0x2f")](Wr("0x22"),(()=>Yo(r,"ELEMENT_CAPTION"))),t.plugins.has(Wr("0x27"))&&n.enableCommand(Wr("0xe")),t.plugins[Wr("0xc")](Wr("0x37"))&&t[Wr("0x69")][Wr("0xc")](Wr("0x2c"))&&(n[Wr("0x66")](Wr("0x6b"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Wr("0x25")][Wr("0xa")].selection);t[Wr("0x25")][Wr("0x60")]((()=>{n.markBlockFormat(r,{commandName:Wr("0x6b"),commandParams:[s]},[],Wr("0x24"))}))})),n.enableCommand(Wr("0x7a"),((e,s)=>{t.model[Wr("0x60")]((r=>{let x=o[Wr("0x31")](t[Wr("0x25")][Wr("0xa")][Wr("0x15")]),a=r.createRangeOn(x);const c=i.LivePosition.fromPosition(a[Wr("0x59")],"toPrevious"),l=i.LivePosition[Wr("0x14")](a[Wr("0x5c")],"toNext");n[Wr("0x3e")]((()=>e(s))),x=o[Wr("0x31")](t.model[Wr("0xa")][Wr("0x15")]),a=r[Wr("0x2a")](x);const d=r.createRange(c,l);c[Wr("0x76")](),l[Wr("0x76")](),n[Wr("0x2d")](x,{commandName:"imageTypeInline",commandParams:[]},[],Wr("0x73")),d[Wr("0x59")].isBefore(a.start)&&n.markInsertion(r.createRange(d[Wr("0x59")],a[Wr("0x59")]),Wr("0x73")),a[Wr("0x5c")].isBefore(d[Wr("0x5c")])&&n[Wr("0x3a")](r[Wr("0x11")](a[Wr("0x5c")],d[Wr("0x5c")]),Wr("0x73"))}))})),n[Wr("0x28")][Wr("0xd")](Wr("0x4b"),Wr("0x73"),Wr("0x17"),(()=>{})),n[Wr("0x28")][Wr("0xd")]("formatBlock","convertInlineImageToBlock",Wr("0x1e"),(()=>{})),n._suggestionFactory[Wr("0xd")](Wr("0x4b"),Wr("0x73"),"discard",n[Wr("0x28")][Wr("0x26")](Wr("0x4b"),"",Wr("0x1e"))),n[Wr("0x28")].registerCustomCallback(Wr("0x6a"),Wr("0x73"),Wr("0x17"),(()=>{})),n._suggestionFactory[Wr("0xd")](Wr("0x6a"),Wr("0x73"),"discard",(([e])=>{const o=n[Wr("0x28")][Wr("0x26")](Wr("0x6a"),"","discard");let s=e.start,r=e.end;const i=t.model[Wr("0x64")].getNearestSelectionRange(s,Wr("0x1c")),x=t[Wr("0x25")].schema[Wr("0x67")](r,Wr("0x6e"));i[Wr("0xf")]&&(s=i[Wr("0x59")]),x[Wr("0xf")]&&(r=x[Wr("0x5c")]),o([t[Wr("0x25")].createRange(s,r)])})),n[Wr("0x28")][Wr("0xd")](Wr("0x4b"),Wr("0x73"),Wr("0x70"),c),n[Wr("0x28")][Wr("0xd")](Wr("0x6a"),Wr("0x73"),Wr("0x70"),c)),t[Wr("0x69")][Wr("0xc")](Wr("0x12"))&&(n.enableCommand(Wr("0x51"),((e,s)=>{const r=t.plugins[Wr("0x7")](Wr("0x4a"));let i=o[Wr("0x31")](t[Wr("0x25")][Wr("0xa")][Wr("0x15")]),x=r[Wr("0x78")](i);t[Wr("0x25")].change((()=>{if(x)return void n[Wr("0x72")](t[Wr("0x25")][Wr("0x2a")](x));const a=o[Wr("0x50")](i);e(s),i=o[Wr("0x31")](t.model[Wr("0xa")].selection),x=r[Wr("0x78")](i),n[Wr("0x3a")](t[Wr("0x25")][Wr("0x2a")](x),a?null:"imageCaption")}))})),n[Wr("0x28")][Wr("0xd")](Wr("0x6a"),"imageCaption",Wr("0x70"),c)),t[Wr("0x69")].has(Wr("0x36"))){n[Wr("0x66")]("imageStyle",((s,r)=>{const i=t[Wr("0x69")].get(Wr("0x4e")).me,x=t.commands.get(Wr("0x18"));let a=o[Wr("0x31")](t.model[Wr("0xa")][Wr("0x15")]),c=t.model.createRangeOn(a),l=x[Wr("0x1d")];if(l==r[Wr("0x1d")])return;const d={commandName:Wr("0x18"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Wr("0x25")].change((()=>{if(n[Wr("0x21")]()[Wr("0x9")]((t=>t[Wr("0x65")]&&i==t[Wr("0x2b")]&&("formatBlock"==t[Wr("0x40")]||Wr("0x20")==t[Wr("0x40")])&&(Wr("0x2")==t.subType||Wr("0x19")==t[Wr("0x1f")])&&t.getFirstRange()[Wr("0x3f")](c)))[Wr("0x46")]((t=>n[Wr("0x30")](t[Wr("0x49")]))),a=o[Wr("0x31")](t[Wr("0x25")].document[Wr("0x15")]),c=t.model[Wr("0x2a")](a),x.refresh(),t[Wr("0x56")][Wr("0x7")](Wr("0x6b"))[Wr("0x77")](),t[Wr("0x56")][Wr("0x7")](Wr("0x7a"))[Wr("0x77")](),l=x[Wr("0x1d")],l!=r[Wr("0x1d")])return o[Wr("0x52")](a)&&x[Wr("0x4d")](r[Wr("0x1d")],a)?(s(r),a=o.getClosestSelectedImageElement(t[Wr("0x25")][Wr("0xa")][Wr("0x15")]),void n[Wr("0x2d")](a,{...d,commandReversedParams:[{value:l||null}]},[],Wr("0x2"))):void(o[Wr("0x50")](a)?n[Wr("0x2d")](a,d,[],"imageStylePostApply"):n.markInlineFormat(c,d,Wr("0x19")))}))}));for(const e of t[Wr("0x69")][Wr("0x7")](Wr("0x36"))[Wr("0x16")])s[e[Wr("0x1")]]=e.title[Wr("0x4")]();n[Wr("0x28")].registerCustomCallback(Wr("0x4b"),"imageStylePreApply",Wr("0x17"),(()=>{})),n[Wr("0x28")][Wr("0xd")](Wr("0x4b"),Wr("0x19"),Wr("0x17"),(()=>{})),n[Wr("0x28")][Wr("0xd")](Wr("0x20"),Wr("0x19"),Wr("0x17"),(()=>{})),n[Wr("0x28")][Wr("0xd")](Wr("0x4b"),Wr("0x2"),Wr("0x1e"),(()=>{})),n._suggestionFactory[Wr("0xd")](Wr("0x4b"),Wr("0x2"),Wr("0x29"),((t,e)=>{n._suggestionFactory.getSuggestionCallback("formatBlock","",Wr("0x1e"))(t,{commandName:e[Wr("0x8")],commandParams:e[Wr("0x6c")]})})),n[Wr("0x28")][Wr("0xd")](Wr("0x4b"),Wr("0x2"),Wr("0x70"),c)}const x=[{type:"formatBlock",subType:Wr("0x2")},{type:Wr("0x6a"),subType:Wr("0x3c")},{type:"formatBlock",subType:Wr("0x73")},{type:Wr("0x6a"),subType:Wr("0x73")}];function a(t,e){const s=x[Wr("0x13")]((({type:e,subType:n})=>t[Wr("0x40")]==e&&t[Wr("0x1f")]==n)),r=x[Wr("0x13")]((({type:t,subType:n})=>e[Wr("0x40")]==t&&e[Wr("0x1f")]==n));if(s<0||r<0)return!1;const i=t[Wr("0x47")](),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i[Wr("0x45")](a))return!0;if(2==s&&3==r){const t=n[Wr("0x62")](i,Wr("0x6a"))[Wr("0x9")]((({suggestion:t,meta:e})=>e[Wr("0x33")]&&Wr("0x73")==t[Wr("0x1f")]));if(t.length>1&&a[Wr("0x5c")].isEqual(i.start))return!0;if(1==t[Wr("0x7b")]&&(i.start[Wr("0x3f")](a[Wr("0x5c")])||i.end[Wr("0x3f")](a[Wr("0x59")])))return!0}if(3==s&&3==r&&i.start[Wr("0x5b")](a[Wr("0x59")])){const t=i.end[Wr("0xb")],e=a[Wr("0x59")][Wr("0x58")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Wr("0x25")].document.registerPostFixer((()=>{let e=!1;const s=Array.from(t[Wr("0x25")][Wr("0xa")].differ[Wr("0x4c")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Wr("0x1a")](t);if(Wr("0x68")==s&&n[Wr("0x48")](a)){if(Wr("0x4b")==i&&(Wr("0x2")==x||Wr("0x19")==x)){const t=n[Wr("0x23")](a);if(r[Wr("0x43")]){const s=t[Wr("0x47")]().getContainedElement();if(o.isBlockImage(s))continue;n[Wr("0x30")](t),e=!0}}if(Wr("0x6a")==i&&"imageCaption"==x&&!r[Wr("0x43")]){const t=n.getSuggestion(a);t.next&&t[Wr("0x55")][Wr("0x65")]&&(n.discardSuggestion(t[Wr("0x55")]),e=!0)}}}return e})),t[Wr("0x69")][Wr("0xc")](Wr("0x42"))&&n.enableCommand(Wr("0x6f"),((e,s)=>{const r=o[Wr("0x31")](t[Wr("0x25")][Wr("0xa")][Wr("0x15")]);r[Wr("0x5a")](Wr("0x2e"))!=s[Wr("0x2e")]&&t[Wr("0x25")][Wr("0x60")]((()=>{n[Wr("0x2d")](r,{commandName:Wr("0x6f"),commandParams:[s]})}))})),t[Wr("0x69")][Wr("0xc")](Wr("0x79"))&&n[Wr("0x66")](Wr("0x35"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Wr("0x25")][Wr("0xa")][Wr("0x15")]);(r.hasAttribute(Wr("0x6"))?r.getAttribute(Wr("0x6")):"")!=s[Wr("0x71")]&&t[Wr("0x25")][Wr("0x60")]((()=>{n.markBlockFormat(r,{commandName:Wr("0x35"),commandParams:[s]})}))})),n[Wr("0x75")].registerDescriptionCallback((t=>{if(x[Wr("0x10")]((({type:e,subType:n})=>t[Wr("0x40")]==e&&t[Wr("0x1f")]==n)))return t[Wr("0x3d")]?{}:void 0})),n._descriptionFactory[Wr("0x6d")]((t=>{if(Wr("0x6a")==t[Wr("0x40")]||Wr("0x44")==t[Wr("0x40")]){const e=t[Wr("0x32")]();if(e&&e.is(Wr("0x5f"),Wr("0x22")))return{type:Wr("0x6a")==t[Wr("0x40")]?Wr("0x34"):Wr("0x0"),element:e,quantity:1}}})),n._descriptionFactory[Wr("0x6d")]((t=>Wr("0x4b")==t[Wr("0x40")]&&"convertInlineImageToBlock"==t.subType?{type:Wr("0x61"),content:Wr("0x5d")}:Wr("0x4b")==t.type&&Wr("0x24")==t[Wr("0x1f")]?{type:"format",content:Wr("0x74")}:void 0)),n[Wr("0x75")][Wr("0x6d")]((t=>{const{data:e}=t;if(e){if(Wr("0x18")==e[Wr("0x8")]){const t=e[Wr("0x5")][0][Wr("0x1d")];return n=Wr("0x41")===t?Yo(r,Wr("0x38")):s[t]||t,{type:Wr("0x61"),content:Yo(r,"*Format:* %0",n)}}if(Wr("0x35")==e[Wr("0x8")]){const t=e[Wr("0x5")][0][Wr("0x71")];return t?{type:Wr("0x61"),content:Yo(r,Wr("0x54"),'"'+t+'"')}:{type:"format",content:Yo(r,"*Remove image text alternative*")}}if(Wr("0x6f")==e.commandName){const t=e.commandParams[0].width;return t?{type:Wr("0x61"),content:Yo(r,Wr("0x3"),t)}:{type:"format",content:Yo(r,Wr("0x57"))}}}var n}))}}const zr=["accept","getSuggestionCallback","model","getSuggestions","getSelectedElement","change","replaceImageSource","source","discard","selection","getContainedElement","TrackChangesEditing","format","src","handleReplaceImageCommand","registerDescriptionCallback","commandParams","document","_descriptionFactory","data","markBlockFormat","*Format:* replace image URL","plugins","formatBlock","_suggestionFactory","enableCommand","get","handleSuggestionDescription","has","Users","subType","ImageEditing","editor"];var Kr,qr;Kr=zr,qr=254,function(t){for(;--t;)Kr.push(Kr.shift())}(++qr);const Xr=function(t,e){return zr[t-=0]};class $r extends t.Plugin{afterInit(){if(!this.editor[Xr("0x20")][Xr("0x5")](Xr("0x8")))return;const t=this.editor.plugins.get("TrackChangesEditing");t[Xr("0x2")](Xr("0x10"),((t,e)=>this[Xr("0x18")](t,e))),t[Xr("0x1")].registerCustomCallback(Xr("0x0"),Xr("0x10"),Xr("0xa"),t[Xr("0x1")].getSuggestionCallback(Xr("0x0"),null,"discard")),t[Xr("0x1")].registerCustomCallback("formatBlock","replaceImageSource",Xr("0x12"),t[Xr("0x1")][Xr("0xb")]("formatBlock",null,"accept")),t[Xr("0x1c")][Xr("0x19")]((t=>this[Xr("0x4")](t)))}[Xr("0x18")](t,e){const n=this[Xr("0x9")].plugins.get(Xr("0x15")),o=this.editor[Xr("0xc")][Xr("0x1b")][Xr("0x13")][Xr("0xe")]();this[Xr("0x9")][Xr("0xc")][Xr("0xf")]((()=>{let s=o.getAttribute(Xr("0x17"));const r=this[Xr("0x9")].plugins[Xr("0x3")](Xr("0x6")).me;for(const t of n[Xr("0xd")]({skipNotAttached:!0})){const e=t[Xr("0x14")]();if(Xr("0x10")===t[Xr("0x7")]&&e===o){t.author!==r&&t[Xr("0x12")](),s=t[Xr("0x1d")][Xr("0x1a")][0][Xr("0x11")];break}}t(e),n[Xr("0x1e")](o,{commandName:Xr("0x10"),commandParams:[{source:s}]},[],Xr("0x10"))}))}[Xr("0x4")](t){const{data:e}=t;if(e&&"replaceImageSource"===e.commandName){const t=Xr("0x1f");return{type:Xr("0x16"),content:Yo(this[Xr("0x9")].locale,t)}}}}const Qr=["_trackChangesExecuted","collaboration_features","importWord","editor","value","execute","_setSuggestionData","_handleImportedData","listenTo","bind","plugins","forEach","_trackChangesValueDuringImport","dataInsert","commands","get","TrackChangesEditing","trackChanges","high","lowest","afterInit"];var Jr,Zr;Jr=Qr,Zr=183,function(t){for(;--t;)Jr.push(Jr.shift())}(++Zr);const Yr=function(t,e){return Qr[t-=0]};class ti extends t.Plugin{constructor(t){super(t),this[Yr("0x12")]=!1,this._trackChangesExecuted=!1}[Yr("0x5")](){const t=this[Yr("0x9")],e=t[Yr("0x14")][Yr("0x0")](Yr("0x8")),n=t[Yr("0x14")][Yr("0x0")](Yr("0x2"));e&&(e.on(Yr("0xb"),((t,[,e])=>{this._trackChangesValueDuringImport=n[Yr("0xa")],e[Yr("0x7")].track_changes=!this[Yr("0x12")]}),{priority:Yr("0x3")}),this.listenTo(e,Yr("0x13"),this[Yr("0xd")][Yr("0xf")](this)),this[Yr("0xe")](e,"dataInsert",(()=>{this._trackChangesExecuted&&(n[Yr("0xb")](),this[Yr("0x6")]=!1)}),{priority:Yr("0x4")}),t[Yr("0x10")][Yr("0x0")](Yr("0x1")).enableCommand(Yr("0x8")))}[Yr("0xd")](t,e){const{suggestions:n}=e,o=this[Yr("0x9")][Yr("0x14")].get("trackChanges"),s=o[Yr("0xa")];this[Yr("0x12")]!==s&&(o[Yr("0xb")](),this[Yr("0x6")]=!0),n&&n[Yr("0x11")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[Yr("0x10")][Yr("0x0")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:Yr("0x8")}}};this[Yr("0x9")][Yr("0x10")].get(Yr("0x1"))[Yr("0xc")](s)}))}}const ei=["*Outdent:* %0","getSelectedBlocks","markBlockFormat","schema","editor","change","selection","commandName","_descriptionFactory","format","from","has","locale","registerDescriptionCallback","IndentEditing","getItems","enableCommand","IndentBlock","plugins","checkAttribute","document","getItemLabel","model","indentBlock","*Indent:* %0","outdentBlock","get"];var ni,oi;ni=ei,oi=148,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const si=function(t,e){return ei[t-=0]};class ri extends t.Plugin{afterInit(){const t=this[si("0x12")],e=t[si("0x5")][si("0xd")]("TrackChangesEditing");t[si("0x5")][si("0x19")](si("0x1"))&&(e[si("0x3")]("indent"),e[si("0x3")]("outdent"));const n=t[si("0x1a")];if(t[si("0x5")][si("0x19")](si("0x4"))){for(const n of["indentBlock",si("0xc")])e.enableCommand(n,(()=>{const o=Array[si("0x18")](this[si("0x12")][si("0x9")][si("0x7")][si("0x14")][si("0xf")]()).filter((t=>this[si("0x12")][si("0x9")][si("0x11")][si("0x6")](t,"blockIndent")));t[si("0x9")][si("0x13")]((()=>{for(const t of o)e[si("0x10")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[si("0x16")][si("0x0")]((t=>{const{data:o}=t;if(!o)return;if(si("0xa")!=o.commandName&&si("0xc")!=o[si("0x15")])return;const s=t[si("0x2")]()[0],r=e._descriptionFactory[si("0x8")](s);return si("0xa")==o[si("0x15")]?{type:si("0x17"),content:Yo(n,si("0xb"),r)}:"outdentBlock"==o[si("0x15")]?{type:si("0x17"),content:Yo(n,si("0xe"),r)}:void 0}))}}}var ii,xi,ai=["editor","enableCommand","input","requires","plugins","TrackChangesEditing","init"];ii=ai,xi=185,function(t){for(;--t;)ii.push(ii.shift())}(++xi);var ci=function(t,e){return ai[t-=0]};class li extends t.Plugin{static get[ci("0x0")](){return[zs.Input]}[ci("0x3")](){this[ci("0x4")][ci("0x1")].get(ci("0x2"))[ci("0x5")](ci("0x6"))}}const di=["registerDescriptionCallback","get","LinkEditing","*Remove link*","change","linkHref","*Set link:* %0","isCollapsed","has","from","getRanges","afterInit","model","link","unlink","format","hasAttribute","selection","getFirstRange","document","getAttribute","plugins","commandName","commandParams","getFirstPosition","enableCommand"];var ui,gi;ui=di,gi=275,function(t){for(;--t;)ui.push(ui.shift())}(++gi);const mi=function(t,e){return di[t-=0]};class fi extends t.Plugin{[mi("0x16")](){const t=this.editor;if(!t[mi("0x6")][mi("0x13")](mi("0xd")))return;const e=t[mi("0x6")][mi("0xc")]("TrackChangesEditing");e[mi("0xa")](mi("0x18"),((n,o)=>{const s=t[mi("0x17")][mi("0x4")].selection;let r=[];if(s[mi("0x12")]){if(!s[mi("0x1")](mi("0x10")))return void n(o);{const e=(0,zs.findAttributeRange)(s[mi("0x9")](),mi("0x10"),s[mi("0x5")]("linkHref"),t[mi("0x17")]);r=[e]}}else r=Array[mi("0x14")](s[mi("0x15")]());t[mi("0x17")].change((()=>{for(const t of r)e.markInlineFormat(t,{commandName:mi("0x18"),commandParams:[o]})}))})),e[mi("0xa")](mi("0x19"),(()=>{const n=this.editor.model,o=n[mi("0x4")][mi("0x2")];n[mi("0xf")]((()=>{let n=[];n=o[mi("0x12")]?[(0,zs.findAttributeRange)(o[mi("0x9")](),mi("0x10"),o[mi("0x5")](mi("0x10")),t[mi("0x17")])]:ms("linkHref",o[mi("0x3")](),t.model);for(const t of n)e.markInlineFormat(t,{commandName:"unlink",commandParams:[]})}))})),e._descriptionFactory[mi("0xb")]((e=>{const{data:n}=e,o=t.locale;if(n){if(mi("0x18")==n[mi("0x7")]){const t=n[mi("0x8")][0];return{type:"format",content:Yo(o,mi("0x11"),'"'+t+'"')}}return mi("0x19")==n.commandName?{type:mi("0x0"),content:Yo(o,mi("0xe"))}:void 0}}))}}const hi=["TodoListEditing","todoListChecked","isObject","slice","filter","listType","todo","*Outdent:* %0","from","listItem","length","commandName","nextSibling","execute","plugins","List","*Change to:* %0","numberedList","markBlockFormat","listIndent","ListEditing","end","add","TrackChangesEditing","createPositionAt","model","element","ELEMENT_LIST_ITEM","getSelectedBlocks","before","change","indentList","registerElementLabel","commandParams","_descriptionFactory","enableCommand","ELEMENT_TODO_LIST","ELEMENT_BULLETED_LIST","format","todoList","registerDescriptionCallback","selection","push","parent","document","getAttribute","value","locale","replace","*Uncheck item*","commands","has","get","*Check item*","forceValue","schema","outdentList","editor","blockName","checkTodoList","previousSibling","bulletedList","checkChild","name","afterInit","ELEMENT_NUMBERED_LIST"];var pi,bi;pi=hi,bi=402,function(t){for(;--t;)pi.push(pi.shift())}(++bi);const Ei=function(t,e){return hi[t-=0]};class _i extends t.Plugin{[Ei("0x3a")](){const t=this[Ei("0x33")],e=t[Ei("0x29")];if(!t[Ei("0x8")][Ei("0x2d")](Ei("0xe")))return;const n=t[Ei("0x8")][Ei("0x2e")](Ei("0x11")),o=t.plugins[Ei("0x2d")](Ei("0x3c"));function s(e){return()=>{const o=t.model[Ei("0x26")][Ei("0x23")],s=t[Ei("0x2c")][Ei("0x2e")](e);if(s.value)return void t[Ei("0x7")]("paragraph",{});const r=e[Ei("0x3f")](0,-4),i=function(t,e,n){let o=Array[Ei("0x2")](t).filter((t=>{return e=t,(o=n)[Ei("0x38")](e[Ei("0x25")],"listItem")&&!o[Ei("0x3e")](e);var e,o}));o=o.filter((t=>!t.is(Ei("0x14"),"listItem")||t[Ei("0x27")](Ei("0x41"))!=e));const s=new Set;for(const t of o)t.is(Ei("0x14"),Ei("0x3"))?s[Ei("0x10")](Ti(t)):s[Ei("0x10")](t);return Array[Ei("0x2")](s)}(o[Ei("0x16")](),r,t[Ei("0x13")][Ei("0x31")]);t[Ei("0x13")][Ei("0x18")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[Ei("0x28")]}],formatGroupId:Ei("0x34")},Ci(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ei("0x2")](t);const n=e.findIndex((t=>Ei("0x3")!=t[Ei("0x39")]));return n>-1&&(e=e[Ei("0x3f")](0,n)),e}(t[Ei("0x13")][Ei("0x26")][Ei("0x23")][Ei("0x16")]()),s=t[Ei("0x13")].createRange(t[Ei("0x13")][Ei("0x12")](o[0],Ei("0x17")),t[Ei("0x13")][Ei("0x12")](o[o[Ei("0x4")]-1],Ei("0xf")));t.model[Ei("0x18")]((()=>{n[Ei("0xc")](s,{commandName:e,commandParams:[],formatGroupId:Ei("0xd")},function(t){const e=new Set;for(const n of t){let t=n[Ei("0x6")];for(;t&&t.getAttribute(Ei("0xd"))>n[Ei("0x27")]("listIndent");)e[Ei("0x10")](t),t=t[Ei("0x6")]}return Array.from(e)}(o))}))}}n.enableCommand(Ei("0xb"),s("numberedList")),n[Ei("0x1d")]("bulletedList",s(Ei("0x37"))),o&&n[Ei("0x1d")]("todoList",s(Ei("0x21"))),n[Ei("0x1d")](Ei("0x19"),r("indentList")),n[Ei("0x1d")](Ei("0x32"),r(Ei("0x32"))),o&&n[Ei("0x1d")]("checkTodoList",(()=>{const e=t[Ei("0x2c")][Ei("0x2e")](Ei("0x35")),o=Array[Ei("0x2")](e._selectedElements);o[Ei("0x40")]((t=>t[Ei("0x27")](Ei("0x3d"))!=e[Ei("0x28")])),t[Ei("0x13")][Ei("0x18")]((()=>{for(const t of o)n[Ei("0xc")](t,{commandName:Ei("0x35"),commandParams:[{forceValue:!e[Ei("0x28")]}]})}))})),n[Ei("0x1c")][Ei("0x1a")]("listItem",(t=>Yo(e,Ei("0x15"),t))),n[Ei("0x1c")][Ei("0x22")]((t=>{const{data:n}=t;if(n){if("numberedList"==n[Ei("0x5")]||Ei("0x37")==n.commandName||Ei("0x21")==n[Ei("0x5")])switch(n[Ei("0x5")][Ei("0x2a")](Ei("0x9"),"")){case"bulleted":return o(Yo(e,Ei("0x1f")));case"numbered":return o(Yo(e,Ei("0x3b")));case Ei("0x0"):return o(Yo(e,Ei("0x1e")))}if("indentList"==n.commandName)return{type:"format",content:Yo(e,"*Indent:* %0",Yo(e,Ei("0x15")))};if("outdentList"==n[Ei("0x5")])return{type:Ei("0x20"),content:Yo(e,Ei("0x1"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Ei("0x35")==n[Ei("0x5")])return n[Ei("0x1b")][0][Ei("0x30")]?{type:Ei("0x20"),content:Yo(e,Ei("0x2f"))}:{type:Ei("0x20"),content:Yo(e,Ei("0x2b"))}}function o(t){return{type:Ei("0x20"),content:Yo(e,Ei("0xa"),t)}}}))}}function Ti(t){const e=t[Ei("0x27")](Ei("0xd"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ei("0x36")].is(Ei("0x14"),"listItem");){const o=t[Ei("0x36")][Ei("0x27")](Ei("0xd"));if(o==e)n=t[Ei("0x36")];else if(o<e)break;t=t[Ei("0x36")]}return n}function Ci(t){const e=[];if(t.is(Ei("0x14"),Ei("0x3"))&&t[Ei("0x27")]("listIndent")>0){let n=t[Ei("0x6")];for(;n&&Ei("0x3")==n[Ei("0x39")]&&n[Ei("0x27")](Ei("0xd"))==t[Ei("0x27")](Ei("0xd"));)e[Ei("0x24")](n),n=n[Ei("0x6")]}return e}const yi=["enableCommand","ListPropertiesEditing","change","model","filter","ListUtils","TrackChangesEditing","getSelectedBlocks","forward","afterInit","getSiblingNodes","document","markMultiRangeBlockFormat","toUpperCase","*Format:* set order to regular","numbered","get","_descriptionFactory","config","plugins","handleListStartCommand","listItem","editor","handleListStyleCommand","before","_LIST_","_getSuggestionBlocksForListStyle","format","startIndex","bind","createPositionAt","listReversed","reversed","_getTranslationKeyForListStyle","getListTypeFromListStyleType","element","_getSuggestionBlocks","listStyle","commandName","listType","type","createRange","replace","*Change to:* %0","selection","listStart","length","from","backward","list.properties","getLastPosition","commandParams","getFirstPosition","push","ELEMENT_","handleDescriptions","getAttribute","handleListReversedCommand","*Format:* set start index to %0","locale","styles","map","registerDescriptionCallback","parent"];var ki,Ai;ki=yi,Ai=176,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")](){if(!this[vi("0x26")][vi("0x23")].has(vi("0x11")))return;const t=this.editor[vi("0x22")].get(vi("0x1")),e=this.editor[vi("0x23")][vi("0x20")](vi("0x16"));t[vi("0xc")]&&e.enableCommand(vi("0x35"),this.handleListStyleCommand[vi("0x2d")](this)),t.reversed&&e[vi("0x10")]("listReversed",this[vi("0x9")][vi("0x2d")](this)),t.startIndex&&e.enableCommand(vi("0x3d"),this[vi("0x24")].bind(this)),e[vi("0x21")][vi("0xe")](this.handleDescriptions[vi("0x2d")](this))}[vi("0x27")](t,e={}){const n=this[vi("0x26")][vi("0x23")][vi("0x20")](vi("0x16")),o=this[vi("0x2a")]();this[vi("0x26")][vi("0x13")][vi("0x12")]((()=>{n[vi("0x1c")](o,{commandName:vi("0x35"),commandParams:[{type:e[vi("0x38")]}],formatGroupId:vi("0x35")})}))}handleListReversedCommand(t,e={}){const n=this.editor[vi("0x23")][vi("0x20")](vi("0x16")),o=this[vi("0x34")]((t=>t.is(vi("0x33"),vi("0x25"))&&vi("0x1f")===t.getAttribute("listType")));if(o[vi("0x3e")]<1)return;const s=o[vi("0xd")]((t=>this[vi("0x26")][vi("0x13")][vi("0x39")](this.editor[vi("0x13")].createPositionAt(t,"before"),this.editor.model.createPositionAt(t,0))));this[vi("0x26")][vi("0x13")][vi("0x12")]((()=>{n[vi("0x1c")](s,{commandName:vi("0x2f"),commandParams:[{reversed:e[vi("0x30")]}],formatGroupId:vi("0x2f")})}))}[vi("0x24")](t,e={}){const n=this[vi("0x26")].plugins[vi("0x20")](vi("0x16")),o=this[vi("0x34")]((t=>t.is(vi("0x33"),vi("0x25"))&&vi("0x1f")===t[vi("0x8")](vi("0x37"))));if(o[vi("0x3e")]<1)return;const s=o[vi("0xd")]((t=>this[vi("0x26")][vi("0x13")][vi("0x39")](this.editor[vi("0x13")][vi("0x2e")](t,vi("0x28")),this.editor[vi("0x13")][vi("0x2e")](t,0))));this[vi("0x26")][vi("0x13")].change((()=>{n[vi("0x1c")](s,{commandName:vi("0x3d"),commandParams:[{startIndex:e[vi("0x2c")]}],formatGroupId:vi("0x3d")})}))}[vi("0x7")](t){const e=this[vi("0x26")][vi("0xb")],{data:n}=t;if(!n)return;let o,s;switch(n[vi("0x36")]){case vi("0x35"):o=vi("0x3b"),s={type:"format",content:Yo(e,o,Yo(e,this[vi("0x31")](n[vi("0x3")][0][vi("0x38")])))};break;case"listReversed":o=n.commandParams[0][vi("0x30")]?"*Format:* set order to reversed":vi("0x1e"),s={type:vi("0x2b"),content:Yo(e,o)};break;case"listStart":o=vi("0xa"),s={type:vi("0x2b"),content:Yo(e,o,n[vi("0x3")][0].startIndex)}}return s}[vi("0x2a")](){var t,e,n,o;const s=this[vi("0x26")][vi("0x23")][vi("0x20")](vi("0x15"));let r=Array[vi("0x3f")](this[vi("0x26")][vi("0x13")][vi("0x1b")].selection[vi("0x17")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element",vi("0x25")))&&r.unshift(...s[vi("0x1a")](this[vi("0x26")][vi("0x13")][vi("0x1b")][vi("0x3c")][vi("0x4")](),vi("0x0"))),(null===(e=r[r[vi("0x3e")]-1])||void 0===e?void 0:e.is(vi("0x33"),"listItem"))&&r[vi("0x5")](...s[vi("0x1a")](this[vi("0x26")][vi("0x13")][vi("0x1b")].selection[vi("0x2")](),vi("0x18"))),r=[...new Set(r)],(null===(o=null===(n=this.editor[vi("0x13")][vi("0x1b")].selection[vi("0x4")]())||void 0===n?void 0:n[vi("0xf")])||void 0===o?void 0:o.is(vi("0x33"),vi("0x25")))&&(r=r[vi("0x14")]((t=>t.is(vi("0x33"),vi("0x25"))))),r}[vi("0x34")](t){const e=this[vi("0x26")].plugins[vi("0x20")](vi("0x15"));let n=Array[vi("0x3f")](this[vi("0x26")].model[vi("0x1b")][vi("0x3c")][vi("0x17")]()).filter(t)[vi("0xd")]((t=>{const n=this[vi("0x26")][vi("0x13")].createPositionAt(t,0);return[...e.getSiblingNodes(n,vi("0x0")),...e[vi("0x1a")](n,vi("0x18"))]})).flat();return n=[...new Set(n)],n}[vi("0x31")](t){return vi("0x6")+this[vi("0x26")][vi("0x23")].get(vi("0x15"))[vi("0x32")](t)[vi("0x1d")]()+vi("0x29")+t[vi("0x1d")]()[vi("0x3a")](/-/g,"_")}}const Ii=["high","stop","options","createEmptyElement","conversion","afterInit","locale","for","get","media","MediaEmbedEditing","div","mediaEmbed","dataDowncast","registerElementLabel","attribute:url:media","_descriptionFactory","plugins","ELEMENT_MEDIA","editor","data"];var Si,Li;Si=Ii,Li=361,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Ni=function(t,e){return Ii[t-=0]};class Mi extends t.Plugin{[Ni("0x1")](){const t=this[Ni("0xf")];if(!t[Ni("0xd")].has(Ni("0x6")))return;const e=t[Ni("0xd")][Ni("0x4")]("TrackChangesEditing"),n=t[Ni("0x2")];e.enableCommand(Ni("0x8")),e[Ni("0xc")][Ni("0xa")](Ni("0x5"),(t=>Yo(n,Ni("0xe"),t))),t[Ni("0x0")][Ni("0x3")](Ni("0x9")).elementToElement({model:"media",view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Ni("0x14")](Ni("0x7"))},converterPriority:Ni("0x11")}),t[Ni("0x10")].downcastDispatcher.on(Ni("0xb"),((t,e,n)=>{n[Ni("0x13")].showSuggestionHighlights&&t[Ni("0x12")]()}),{priority:Ni("0x11")})}}const wi=["has","mention","MentionEditing","enableCommand","TrackChangesEditing","plugins","afterInit"];var Oi,Fi;Oi=wi,Fi=400,function(t){for(;--t;)Oi.push(Oi.shift())}(++Fi);const Pi=function(t,e){return wi[t-=0]};class Di extends t.Plugin{[Pi("0x5")](){const t=this.editor;t[Pi("0x4")][Pi("0x6")](Pi("0x1"))&&t.plugins.get(Pi("0x3"))[Pi("0x2")](Pi("0x0"))}}const Bi=["TrackChangesEditing","afterInit","has","pageBreak","registerElementLabel","locale","plugins","get"];var ji,Ui;ji=Bi,Ui=119,function(t){for(;--t;)ji.push(ji.shift())}(++Ui);const Gi=function(t,e){return Bi[t-=0]};class Hi extends t.Plugin{[Gi("0x2")](){const t=this.editor;if(!t[Gi("0x7")][Gi("0x3")]("PageBreakEditing"))return;t[Gi("0x7")][Gi("0x0")](Gi("0x1")).enableCommand(Gi("0x4"));const e=t[Gi("0x7")][Gi("0x0")](Gi("0x1")),n=t[Gi("0x6")];e._descriptionFactory[Gi("0x5")](Gi("0x4"),(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const Wi=["get","markBlockFormat","isTouching","insertParagraph","schema","change","afterInit","start","isBlock","toViewPosition","name","span","_descriptionFactory","downcastDispatcher","selection","includes","registerElementLabel","activeMarkers","ck-suggestion-marker-split","blockName","type","registerDescriptionCallback","data","paragraph","writer","markerRange","commandName","format","bindElementToMarker","getSelectedBlocks","enableCommand","Paragraph","getItemLabel","addMarker:suggestion:insertion","editing","ELEMENT_PARAGRAPH","TrackChangesEditing","*Change to:* %0","plugins","isObject","parent","isLimit","from","insertion","consume","*Insert:* %0","model","options","showSuggestionHighlights","consumable","nodeAfter","has","markerName","ck-suggestion-marker--active","checkChild","mapper","document","getFirstRange"];var Vi,zi;Vi=Wi,zi=407,function(t){for(;--t;)Vi.push(Vi.shift())}(++zi);const Ki=function(t,e){return Wi[t-=0]};class qi extends t.Plugin{[Ki("0x5")](){const t=this.editor;if(!t[Ki("0x25")][Ki("0x32")](Ki("0x1e")))return;const e=t.locale,n=t[Ki("0x25")][Ki("0x39")](Ki("0x23"));n[Ki("0xb")][Ki("0xf")](Ki("0x16"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n[Ki("0x1d")]("paragraph",((e,o={})=>{const s=t[Ki("0x2d")][Ki("0x37")],r=o[Ki("0xd")]||s[Ki("0xd")],i=Array[Ki("0x29")](r[Ki("0x1c")]()).filter((t=>{return e=t,(n=this.editor[Ki("0x2d")][Ki("0x3")])[Ki("0x35")](e[Ki("0x27")],Ki("0x16"))&&!n[Ki("0x26")](e)&&Ki("0x16")!=e[Ki("0x9")];var e,n}));t.model[Ki("0x4")]((()=>{for(const t of i)n[Ki("0x0")](t,{commandName:"paragraph",commandParams:[],formatGroupId:Ki("0x12")},fs(t))}))})),n[Ki("0xb")][Ki("0x14")]((t=>{const{data:n}=t;if(n&&Ki("0x16")==n[Ki("0x19")])return{type:Ki("0x1a"),content:Yo(e,Ki("0x24"),Yo(e,Ki("0x22")))}})),n[Ki("0x1d")](Ki("0x2")),t[Ki("0x21")][Ki("0xc")].on(Ki("0x20"),Xi(t),{priority:"highest"}),t[Ki("0x15")].downcastDispatcher.on(Ki("0x20"),((e,n,o)=>{o[Ki("0x2e")][Ki("0x2f")]&&Xi(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Ki("0xb")];o[Ki("0x14")]((n=>{if(Ki("0x2a")!==n[Ki("0x13")])return;const{start:s,end:r}=n[Ki("0x38")]();if(!s[Ki("0x1")](r)||!s[Ki("0x31")])return;const i=t[Ki("0x2d")][Ki("0x3")],x=s[Ki("0x31")];return i[Ki("0x7")](x)&&!i[Ki("0x28")](x)&&i[Ki("0x35")](x,"$text")?{type:Ki("0x2a"),content:Yo(e,Ki("0x2c"),o[Ki("0x1f")](x,1))}:void 0}))}}function Xi(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Ki("0x25")][Ki("0x39")](Ki("0x23")),i=o[Ki("0x18")][Ki("0x6")],x=o[Ki("0x18")].end,a=t[Ki("0x2d")][Ki("0x3")];if(!i[Ki("0x1")](x)||!i[Ki("0x31")])return;const c=i.nodeAfter;if(a[Ki("0x7")](c)&&!a[Ki("0x28")](c)&&a[Ki("0x35")](c,"$text")){if(!s[Ki("0x30")][Ki("0x2b")](o[Ki("0x18")],n[Ki("0x9")]))return;const t=s[Ki("0x17")].createUIElement(Ki("0xa"),{class:Ki("0x11")}),i=s[Ki("0x36")][Ki("0x8")](x);e&&r[Ki("0x10")][Ki("0xe")](o[Ki("0x33")])&&s.writer.addClass(Ki("0x34"),t),s[Ki("0x17")].insert(i,t),s[Ki("0x36")][Ki("0x1b")](t,o[Ki("0x33")])}}}const $i=["get","*Remove all formatting*","editor","getItems","format","getAttributes","document","getRanges","removeFormat","createRangeOn","schema","locale","model","TrackChangesEditing","afterInit","registerDescriptionCallback","change","getAttributeProperties","from","isCollapsed","plugins","RemoveFormatEditing","commandName","selection"];var Qi,Ji;Qi=$i,Ji=270,function(t){for(;--t;)Qi.push(Qi.shift())}(++Ji);const Zi=function(t,e){return $i[t-=0]};class Yi extends t.Plugin{[Zi("0x8")](){const t=this[Zi("0x14")];if(!t[Zi("0xe")].has(Zi("0xf")))return;const e=t.plugins[Zi("0x12")](Zi("0x7"));e.enableCommand(Zi("0x2"),(n=>{const o=t[Zi("0x6")][Zi("0x0")][Zi("0x11")];o[Zi("0xd")]?n():t[Zi("0x6")][Zi("0xa")]((()=>{const n=Array[Zi("0xc")](o[Zi("0x1")]());for(const o of n)for(const n of o[Zi("0x15")]())tx(n,t.model[Zi("0x4")])&&e.markInlineFormat(t[Zi("0x6")][Zi("0x3")](n),{commandName:Zi("0x2"),commandParams:[]})}))})),e._descriptionFactory[Zi("0x9")]((e=>{const{data:n}=e;if(n&&Zi("0x2")==n[Zi("0x10")])return{type:Zi("0x16"),content:Yo(t[Zi("0x5")],Zi("0x13"))}}))}}function tx(t,e){for(const[n]of t[Zi("0x17")]()){const t=e[Zi("0xb")](n);if(t&&t.isFormatting)return!0}return!1}const ex=["RestrictedEditingModeEditing","acceptSuggestion","plugins","discardAllSuggestions","discardSelectedSuggestions","get","acceptAllSuggestions","goToNextRestrictedEditingException","enableCommand","has","goToPreviousRestrictedEditingException","afterInit","TrackChangesEditing","acceptSelectedSuggestions"];var nx,ox;nx=ex,ox=128,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0x9")](){const t=this.editor;if(!t[sx("0x0")][sx("0x7")](sx("0xc")))return;const e=t[sx("0x0")][sx("0x3")](sx("0xa"));e[sx("0x6")](sx("0x8")),e[sx("0x6")](sx("0x5"));const n=t[sx("0x0")][sx("0x3")](sx("0xc"));n[sx("0x6")]("trackChanges"),n.enableCommand(sx("0xd")),n[sx("0x6")]("discardSuggestion"),n.enableCommand(sx("0x4")),n[sx("0x6")](sx("0x1")),n.enableCommand(sx("0xb")),n[sx("0x6")](sx("0x2"))}}const ix=["createUIElement","test","consumable","element","ck-suggestion-marker--active","includes","requires","model","editing","addMarker:suggestion:insertion","addMarker:suggestion","ELEMENT_LINE_BREAK","registerElementLabel","editor","enableCommand","span","data","get","mapper","options","getItems","plugins","split","markerRange","toViewPosition","writer","softBreak","bindElementToMarker","insert","addMarker:suggestion:deletion","downcastDispatcher","deletion","markerName","shiftEnter","high","init"];var xx,ax;xx=ix,ax=367,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return ix[t-=0]};class lx extends t.Plugin{static get[cx("0x23")](){return[nr.ShiftEnter]}[cx("0x1c")](){const t=this[cx("0x6")],e=t[cx("0xe")][cx("0xa")]("TrackChangesEditing");e[cx("0x7")](cx("0x1a")),t[cx("0x1")][cx("0x17")].on(cx("0x2"),dx(t),{priority:"high"}),t[cx("0x1")][cx("0x17")].on(cx("0x16"),dx(t),{priority:cx("0x1b")}),t[cx("0x9")][cx("0x17")].on(cx("0x3"),((e,n,o)=>{o[cx("0xc")].showSuggestionHighlights&&dx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[cx("0x5")](cx("0x13"),(e=>Yo(t.locale,cx("0x4"),e)))}}function dx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[cx("0xe")][cx("0xa")]("TrackChangesEditing");if(!s[cx("0x1f")][cx("0x1e")](o[cx("0x10")],n.name))return;const i=t[cx("0x0")];for(const t of o[cx("0x10")][cx("0xd")]()){if(!t.is(cx("0x20"),"softBreak"))continue;const n=cx("0x18")==o[cx("0x19")][cx("0xf")](":")[1]?"merge":cx("0xf"),x=s[cx("0x12")][cx("0x1d")](cx("0x8"),{class:"ck-suggestion-marker-"+n}),a=s.mapper[cx("0x11")](i.createPositionBefore(t));e&&r.activeMarkers[cx("0x22")](o[cx("0x19")])&&s[cx("0x12")].addClass(cx("0x21"),x),s.writer[cx("0x15")](a,x),s[cx("0xb")][cx("0x14")](x,o[cx("0x19")])}}}const ux=["_descriptionFactory","FORMAT_RESTRICTED_DISABLED","forceValue","commands","enableCommand","change","restrictedEditingException","markInlineFormat","document","get","getRanges","StandardEditingModeEditing","format","has","commandParams","commandName","isCollapsed","registerDescriptionCallback","locale","from","FORMAT_RESTRICTED_ENABLED","plugins"];var gx,mx;gx=ux,mx=233,function(t){for(;--t;)gx.push(gx.shift())}(++mx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{afterInit(){const t=this.editor,e=t.model,n=t[fx("0x5")];if(!t.plugins[fx("0x0")](fx("0x14")))return;const o=t[fx("0x8")][fx("0x12")]("TrackChangesEditing"),s=fx("0xf"),r=t[fx("0xc")][fx("0x12")](s);o[fx("0xd")](s,((t,n={})=>{const i=e[fx("0x11")].selection;if(i[fx("0x3")])return void t(n);const x=void 0!==n[fx("0xb")]?n[fx("0xb")]:!r.value;e[fx("0xe")]((()=>{const t=Array[fx("0x6")](i[fx("0x13")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[fx("0x10")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[fx("0x9")][fx("0x4")]((t=>{const{data:e}=t;if(e&&e[fx("0x2")]==s)return e[fx("0x1")][0][fx("0xb")]?{type:fx("0x15"),content:Yo(n,fx("0x7"))}:{type:"format",content:Yo(n,fx("0xa"))}}))}}const px=["*Format:* %0","format","push","markInlineFormat","inline","add","createRangeOn","enabledStyles","isBlock","plugins","find","block","getSelectedBlocks","styleName","change","includes","commandName","name","forceValue","every","document","getAncestors","isCollapsed","modelElements","_descriptionFactory","markBlockFormat","toLowerCase","_getStyleDefinition","selection","getAttribute","Style","has","getRanges","config","TrackChangesEditing","from","enableCommand","model","*Remove format:* %0","style","style:","locale","DataSchema","commandParams","get","getItems"];var bx,Ex;bx=px,Ex=440,function(t){for(;--t;)bx.push(bx.shift())}(++Ex);const _x=function(t,e){return px[t-=0]};class Tx extends t.Plugin{afterInit(){const t=this.editor;if(!t[_x("0x1d")][_x("0x5")](_x("0x4")))return;const e=t.commands[_x("0x12")](_x("0xd")),n=t.plugins[_x("0x12")](_x("0x8")),o=t[_x("0xf")],s=t[_x("0x1d")][_x("0x12")](_x("0x10")),r=t[_x("0x1d")].get("StyleUtils").normalizeConfig(s,t[_x("0x7")][_x("0x12")]("style.definitions"));n[_x("0xa")](_x("0xd"),((o,{styleName:i})=>{const x=t[_x("0xb")][_x("0x28")][_x("0x2")],a=this[_x("0x1")](i,r);if(!a)return;if(!e[_x("0x1b")][_x("0x23")](i))return;if(x[_x("0x2a")]&&!a[_x("0x1c")])return void o({styleName:i});const c=!e.value[_x("0x23")](a.name);if(a[_x("0x1c")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[_x("0x29")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[_x("0x23")](o[_x("0x25")])){n[_x("0x19")](o);break}}return n}(x[_x("0x20")](),a[_x("0x2b")]);t.model[_x("0x22")]((()=>{for(const t of e)n[_x("0x2d")](t,{commandName:_x("0xd"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:_x("0xe")+i})}))}else{let e=Array.from(x[_x("0x6")]());if(!c){const n=Array[_x("0x9")](s.getDefinitionsForView(a.element,!1))[0][_x("0xb")],o=[];for(const s of e){const e=this._getRangesWithClasses(t[_x("0xb")],s,a.classes,n);o[_x("0x16")](...e)}e=o}t.model[_x("0x22")]((()=>{for(const t of e)n[_x("0x17")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[_x("0x2c")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&_x("0xd")===e[_x("0x24")])return e[_x("0x11")][0][_x("0x26")]?{type:_x("0x15"),content:Yo(o,_x("0x14"),e[_x("0x11")][0][_x("0x21")][_x("0x0")]())}:{type:_x("0x15"),content:Yo(o,_x("0xc"),e.commandParams[0][_x("0x21")][_x("0x0")]())}}))}[_x("0x1")](t,e){let n=e[_x("0x1f")].find((e=>e[_x("0x25")]===t));return n||(n=e[_x("0x18")][_x("0x1e")]((e=>e[_x("0x25")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[_x("0x13")]()){const e=r[_x("0x3")](o);e&&n[_x("0x27")]((t=>e.classes[_x("0x23")](t)))&&s[_x("0x16")](t[_x("0x1a")](r))}return s}}const Cx=["createPositionAt","MIN_SAFE_INTEGER","minColumn","enqueueChange","first","ELEMENT_TABLE","deletion","detach","root","join","_descriptionFactory","order","_tableSuggestions","getChanges","*Insert:* %0","ELEMENT_TABLE_ROW_WITH_TEXT","addClass","document","$graveyard","createRangeIn","markMultiRangeDeletion","some","getSuggestion","findAncestor","startsWith","rowspan","rootName","above","nodeBefore","ELEMENT_TABLE_COLUMN_WITH_TEXT","_suggestionFactory","maxRow","fromRange","getItems","options","execute","getRanges","createRangeOn","markMultiRangeInsertion","filter","_getSuggestionCoords","getAttribute","$textProxy","registerElementLabel","removeClass","getCellLocation","colspan","MAX_SAFE_INTEGER","isIntersectingWithRange","_acceptFormatSuggestionCallbackFactory","plugins","data","minRow","nodeAfter","_setupColumnsRowsFixing","from","discard","writer","*Remove:* %0","showSuggestionHighlights","insertion","maxColumn","change:data","max","tablePaste","values","add","change","subType","toLowerCase","highest","name","classes","registerDescriptionCallback","tableRow","removeTableRow","type","TrackChangesEditing","editor","position","getChangedMarkers","TableUtils","table","isTouching","setSelection","getContainedElement","mapper","registerPostFixer","cell","hasAttribute","push","afterInit","tableCell","getRowIndexes","map","forceValue","ELEMENT_TABLE_WITH_TEXT","element","accept","registerCustomCallback","locale","createTableWalker","getColumnIndexes","removeTableColumn","isEqual","substr","get","getSelectionAffectedTableCells","end","start","tableColumn","addRange","model","isArray","enableCommand","last","TableEditing","refresh","low","_getCoordsForCells","commands","_tablePostFixingSubtypes","suggestion","ELEMENT_TABLE_ROW","span","min","selection","length","differ"];var yx,kx;yx=Cx,kx=414,function(t){for(;--t;)yx.push(yx.shift())}(++kx);const Ax=function(t,e){return Cx[t-=0]};class vx extends t.Plugin{constructor(t){super(t),this[Ax("0x5e")]=["tableRow",Ax("0x53")],this._tableSuggestions=new Set}[Ax("0x40")](){const t=this[Ax("0x33")],e=t[Ax("0x55")][Ax("0x77")][Ax("0x63")];if(!t[Ax("0x17")].has(Ax("0x59")))return;const n=t[Ax("0x49")],o=t[Ax("0x17")][Ax("0x4f")](Ax("0x32")),s=t[Ax("0x17")][Ax("0x4f")](Ax("0x36"));o[Ax("0x70")][Ax("0x10")](Ax("0x37"),(t=>Yo(n,Ax("0x6b"),t))),this[Ax("0x1b")](),o[Ax("0x57")]("insertTable"),o[Ax("0x57")]("selectTableRow"),o[Ax("0x57")]("selectTableColumn");for(const n of["insertTableRowAbove","insertTableRowBelow"]){const r=t[Ax("0x5d")][Ax("0x4f")](n);o[Ax("0x57")](n,(n=>{t[Ax("0x55")].change((t=>{n();const i=Ax("0x0")===r.order,x=s[Ax("0x50")](e),a=s[Ax("0x42")](x),c=i?a[Ax("0x6a")]-1:a[Ax("0x58")]+1,l=x[0][Ax("0x7d")](Ax("0x37")),d=s[Ax("0x4a")](l,{startRow:c,endRow:c}),u=Array[Ax("0x1c")](d).map((e=>t.createRangeOn(e[Ax("0x3d")])));o[Ax("0xb")](u,"tableRow")}))}))}for(const n of["insertTableColumnLeft","insertTableColumnRight"]){const r=t[Ax("0x5d")][Ax("0x4f")](n);o[Ax("0x57")](n,(n=>{t[Ax("0x55")].change((t=>{n();const i="left"===r[Ax("0x71")],x=s[Ax("0x50")](e),a=s[Ax("0x4b")](x),c=i?a[Ax("0x6a")]-1:a[Ax("0x58")]+1,l=x[0][Ax("0x7d")](Ax("0x37")),d=s[Ax("0x4a")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array.from(d)[Ax("0x43")]((e=>t.createRangeOn(e[Ax("0x3d")])));o[Ax("0xb")](u,Ax("0x53"))}))}))}for(const n of[Ax("0x30"),"removeTableColumn"]){const r=n.substr(11),i=r.toLowerCase(),x=i.substr(0,3)+Ax("0x61"),a=Ax("0x37")+r,c=Ax("0x62")+r,l="max"+r;o[Ax("0x57")](n,(()=>{t[Ax("0x55")][Ax("0x28")]((t=>{const r=s.getSelectionAffectedTableCells(e),d=r[0].findAncestor("table");let u;if(Ax("0x30")==n){const t=s[Ax("0x42")](r);u={startRow:t.first,endRow:t.last,includeAllSlots:!0}}else{const t=s[Ax("0x4b")](r);u={startColumn:t.first,endColumn:t[Ax("0x58")],includeAllSlots:!0}}const g=s[Ax("0x4a")](d,u),m=Array.from(g)[Ax("0x43")]((({cell:t})=>t)),f=Rx(m.filter((t=>t[Ax("0x3e")](x)))),h=Rx(m[Ax("0xc")]((t=>!t[Ax("0x3e")](x))))[Ax("0x43")]((e=>t[Ax("0xa")](e))),p=o[Ax("0x7a")](h,a);if(p&&(Ax("0x2f")==p.subType||Ax("0x53")==p[Ax("0x29")])){const e=this[Ax("0xd")](p);for(const n of f){const o=t[Ax("0xa")](n),r=s[Ax("0x12")](n),a=n.getAttribute(x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array[Ax("0x1c")](e[Ax("0x9")]())[Ax("0x43")]((t=>i.LiveRange[Ax("0x5")](t)));t[Ax("0x55")][Ax("0x28")]((e=>{const s=e.batch;n=n[Ax("0xc")]((t=>Ax("0x78")!=t[Ax("0x6e")][Ax("0x80")])),e.setSelection(n),t[Ax("0x5d")][Ax("0x4f")]("removeTableRow").refresh(),t.execute("removeTableRow",{forceDefaultExecution:!0}),t.model[Ax("0x69")]((()=>{t[Ax("0x55")][Ax("0x69")](s,(t=>{const e=o[Ax("0xc")]((t=>Ax("0x78")!=t[Ax("0x6e")][Ax("0x80")]));e.length>0&&t[Ax("0x39")](e);for(const t of o)t[Ax("0x6d")]()}))}))}))}function a(n){t[Ax("0x55")][Ax("0x28")]((o=>{const s=Array[Ax("0x1c")](e[Ax("0x9")]())[Ax("0x43")]((t=>i.LiveRange[Ax("0x5")](t))),r=[];for(const t of n)for(const e of t[Ax("0x6")]({shallow:!0}))r[Ax("0x3f")](e);for(const e of r)Ax("0x78")!=e[Ax("0x6e")][Ax("0x80")]&&(o[Ax("0x39")](o[Ax("0x66")](e,0)),t[Ax("0x5d")][Ax("0x4f")](Ax("0x4c"))[Ax("0x5a")](),t.execute(Ax("0x4c"),{forceDefaultExecution:!0}));const x=s.filter((t=>Ax("0x78")!=t[Ax("0x6e")][Ax("0x80")]));x.length>0&&o.setSelection(x);for(const t of s)t[Ax("0x6d")]()}))}function c(t,e){return e.every((e=>t[Ax("0x7b")]((t=>t[Ax("0x51")][Ax("0x4d")](e[Ax("0x52")])||e[Ax("0x51")][Ax("0x4d")](t[Ax("0x52")])))))}function l(t,e){return t.some((t=>e.some((e=>t[Ax("0x51")][Ax("0x38")](e.start)))))}t.data.downcastDispatcher.on("addMarker:suggestion",((t,e,n)=>{if(!n[Ax("0x7")][Ax("0x20")])return;const o=e.item;if(!o)return;const s=n[Ax("0x3b")].toViewElement(o);function r(t){return Array[Ax("0x56")](t)?t:[t]}s&&Ax("0x41")===o[Ax("0x2c")]&&(0,x.setHighlightHandling)(s,n[Ax("0x1e")],((t,e,n)=>n[Ax("0x76")](r(e[Ax("0x2d")]),t)),((t,e,n)=>n[Ax("0x11")](r(e.classes),t)))}),{priority:Ax("0x2b")}),o._descriptionFactory[Ax("0x2e")]((t=>{if(Ax("0x21")!=t[Ax("0x31")]&&Ax("0x6c")!=t[Ax("0x31")])return;const e=t[Ax("0x3a")]();if(null!=e&&e.is(Ax("0x46"),Ax("0x37"))){if("insertion"==t[Ax("0x31")]){const e=t[Ax("0x6")]()[Ax("0xc")]((t=>t.is(Ax("0xf"))))[Ax("0x43")]((t=>t.data));if(e.length)return{type:Ax("0x21"),content:Yo(n,Ax("0x74"),Yo(n,Ax("0x45"),'"'+e[Ax("0x6f")](" ")+'"'))}}if(Ax("0x6c")==t[Ax("0x31")]){const e=t.getItems()[Ax("0xc")]((t=>t.is(Ax("0xf"))))[Ax("0x43")]((t=>t[Ax("0x18")]));if(e.length)return{type:Ax("0x6c"),content:Yo(n,Ax("0x1f"),Yo(n,Ax("0x45"),'"'+e[Ax("0x6f")](" ")+'"'))}}}})),o._descriptionFactory.registerDescriptionCallback((t=>{if(Ax("0x2f")==t[Ax("0x29")]){const e=t[Ax("0x6")]().filter((t=>t.is(Ax("0xf")))).map((t=>t[Ax("0x18")])),o=this[Ax("0xd")](t),s=o[Ax("0x4")]-o[Ax("0x19")]+1;if("insertion"==t[Ax("0x31")])return e[Ax("0x64")]?{type:Ax("0x21"),content:Yo(n,Ax("0x74"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Ax("0x6f")](" ")+'"']))}:{type:"insertion",content:Yo(n,Ax("0x74"),Yo(n,Ax("0x60"),s))};if("deletion"==t[Ax("0x31")])return e[Ax("0x64")]?{type:Ax("0x6c"),content:Yo(n,Ax("0x1f"),Yo(n,Ax("0x75"),[s,'"'+e[Ax("0x6f")](" ")+'"']))}:{type:Ax("0x6c"),content:Yo(n,Ax("0x1f"),Yo(n,Ax("0x60"),s))}}if("tableColumn"==t[Ax("0x29")]){const e=t[Ax("0x6")]()[Ax("0xc")]((t=>t.is(Ax("0xf"))))[Ax("0x43")]((t=>t.data)),o=this._getSuggestionCoords(t),s=o[Ax("0x22")]-o[Ax("0x68")]+1;if("insertion"==t[Ax("0x31")])return e[Ax("0x64")]?{type:Ax("0x21"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Ax("0x6f")](" ")+'"']))}:{type:"insertion",content:Yo(n,Ax("0x74"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Ax("0x6c")==t.type)return e[Ax("0x64")]?{type:Ax("0x6c"),content:Yo(n,Ax("0x1f"),Yo(n,Ax("0x2"),[s,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Yo(n,Ax("0x1f"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o._suggestionFactory[Ax("0x48")](Ax("0x21"),Ax("0x2f"),Ax("0x1d"),r),o[Ax("0x3")][Ax("0x48")](Ax("0x6c"),Ax("0x2f"),"accept",r),o[Ax("0x3")].registerCustomCallback(Ax("0x21"),"tableColumn",Ax("0x1d"),a),o[Ax("0x3")].registerCustomCallback("deletion",Ax("0x53"),Ax("0x47"),a),o._suggestionFactory[Ax("0x48")]("insertion","tableColumn","join",c),o._suggestionFactory[Ax("0x48")](Ax("0x6c"),Ax("0x53"),Ax("0x6f"),c),o[Ax("0x3")][Ax("0x48")]("insertion",Ax("0x2f"),"join",l),o[Ax("0x3")].registerCustomCallback(Ax("0x6c"),Ax("0x2f"),Ax("0x6f"),l)}[Ax("0x16")](){const t=this[Ax("0x33")],e=t[Ax("0x55")][Ax("0x77")][Ax("0x63")];return(n,o)=>{t[Ax("0x55")][Ax("0x28")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Ax("0x51")][Ax("0x1")];x&&x[0]&&!1===x[0][Ax("0x44")]&&(a=n[0].start.nodeAfter);const c=s[Ax("0x79")](a);if("$graveyard"==c.root.rootName)return;const l=Array[Ax("0x1c")](e[Ax("0x9")]())[Ax("0x43")]((t=>i.LiveRange[Ax("0x5")](t)));s.setSelection(c),t[Ax("0x5d")][Ax("0x4f")](r)[Ax("0x5a")](),x.push({forceDefaultExecution:!0}),t[Ax("0x8")](r,...x);const d=l[Ax("0xc")]((t=>"$graveyard"!=t[Ax("0x6e")][Ax("0x80")]));d[Ax("0x64")]>0&&s[Ax("0x39")](d);for(const t of l)t[Ax("0x6d")]()}))}}[Ax("0x5c")](t){const e=this.editor.plugins.get("TableUtils");let n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,s=Number[Ax("0x14")],r=Number[Ax("0x67")];for(const i of t){if(Ax("0x78")==i.root[Ax("0x80")])continue;const{row:t,column:x}=e[Ax("0x12")](i),a=i[Ax("0x3e")](Ax("0x7f"))?i[Ax("0xe")](Ax("0x7f"))-1:0,c=i[Ax("0x3e")](Ax("0x13"))?i.getAttribute(Ax("0x13"))-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}}[Ax("0x1b")](){const t=this.editor,e=t[Ax("0x17")][Ax("0x4f")]("TrackChangesEditing"),n=t[Ax("0x17")].get("TableUtils");t[Ax("0x55")][Ax("0x77")].on(Ax("0x23"),(()=>{const n=Array[Ax("0x1c")](t.model[Ax("0x77")][Ax("0x65")][Ax("0x35")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if(Ax("0x5f")!=n)continue;if(null!=o.oldRange)continue;const i=e[Ax("0x7c")](s);this[Ax("0x5e")].includes(r)&&this[Ax("0x72")][Ax("0x27")](i)}}),{priority:Ax("0x5b")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Ax("0x7d")](Ax("0x37")),i=n[Ax("0x12")](t);for(const e of this[Ax("0x72")]){const n=e.subType,x=n[Ax("0x7e")](Ax("0x25")),a=n[Ax("0x4e")](x?10:5),c=a[Ax("0x2a")](),l=c[Ax("0x4e")](0,3)+Ax("0x61"),d="min"+a,u=Ax("0x24")+a;if(!e.isInContent)continue;if(r!=e.getFirstRange()[Ax("0x52")][Ax("0x7d")]("table"))continue;if(e[Ax("0x15")](s))continue;const g=t[Ax("0x3e")](l)?t[Ax("0xe")](l)-1:0,m=this[Ax("0xd")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Ax("0x54")](s),o=!0)}return o};t[Ax("0x55")].document[Ax("0x3c")]((e=>{let n=!1;for(const s of t[Ax("0x55")].document[Ax("0x65")][Ax("0x73")]())if("insert"==s[Ax("0x31")])if(Ax("0x2f")==s[Ax("0x2c")])for(const t of s.position[Ax("0x1a")].getChildren())n=n||o(t,e);else Ax("0x41")==s[Ax("0x2c")]&&(n=n||o(s[Ax("0x34")].nodeAfter,e));return n}))}[Ax("0xd")](t){return this[Ax("0x5c")](t[Ax("0x9")]()[Ax("0x43")]((t=>t[Ax("0x52")].nodeAfter)))}}function Rx(t){return Array[Ax("0x1c")](new Set(t)[Ax("0x26")]())}const Ix=["editor","document","change","getAncestors","highest","*Split cell:* horizontally","_tablePostFixingSubtypes","requires","getFirstPosition","execute","commandName","$graveyard","author","splitTableCellHorizontally","formatBlock","get","root","from","value","plugins","tableCell","add","TrackChangesEditing","markMultiRangeBlockFormat","getSelectionAffectedTableCells","_areSelectedCellsMergable","getSuggestions","commands","mergeTableCellUp","subType","horizontally","element","stop","format","*Split cell:* vertically","*Merge cells*","_areMergableCells","insertion","push","mergeTableCellLeft","containsRange","enableCommand","map","registerCustomCallback","splitTableCellVertically","filter","isInContent","find","locale","TableUtils","rootName","low","size","_suggestionFactory","mergeTableCellDown","refresh","accept","trackChanges","registerDescriptionCallback","_isForcedDefaultExecutionBlock","mergeTableCells","getRanges","afterInit","cell","direction","setSelection","selection","mergeTableCellRight","model","length","_acceptFormatSuggestionCallbackFactory","type","return","createRangeOn","_descriptionFactory"];var Sx,Lx;Sx=Ix,Lx=442,function(t){for(;--t;)Sx.push(Sx.shift())}(++Lx);const Nx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{static get[Nx("0xf")](){return[vx]}[Nx("0x46")](){const t=this[Nx("0x8")],e=t[Nx("0x1")][Nx("0x9")][Nx("0x4a")],n=t[Nx("0x38")];if(!t[Nx("0x1b")].has("TableEditing"))return;const o=t[Nx("0x1b")][Nx("0x17")](Nx("0x1e")),s=t[Nx("0x1b")][Nx("0x17")](Nx("0x39")),r=t.plugins.get(vx);r[Nx("0xe")][Nx("0x2e")](Nx("0x44")),o.enableCommand("mergeTableCells",(()=>{const e=s[Nx("0x20")](t.model[Nx("0x9")][Nx("0x4a")]);t[Nx("0x1")].change((()=>{o[Nx("0x1f")](e,{commandName:Nx("0x44"),commandParams:[]},[],Nx("0x44"))}))})),t[Nx("0x23")][Nx("0x17")]("mergeTableCells").on(Nx("0x11"),((e,n)=>{t.commands.get(Nx("0x41"))[Nx("0x1a")]&&(n[Nx("0x2")]>0&&n[n[Nx("0x2")]-1]&&n[n.length-1].forceDefaultExecution||o[Nx("0x43")]||this[Nx("0x21")]()||e[Nx("0x28")]())}),{priority:Nx("0xc")});for(const e of[Nx("0x24"),"mergeTableCellRight",Nx("0x3e"),Nx("0x2f")]){const n=t.commands.get(e);o[Nx("0x31")](e,(()=>{const e=t[Nx("0x1")][Nx("0x9")][Nx("0x4a")][Nx("0x10")]()[Nx("0xb")]()[Nx("0x37")]((t=>t.is(Nx("0x27"),Nx("0x1c")))),s=n[Nx("0x1a")];t.model[Nx("0xa")]((()=>{o[Nx("0x1f")]([e,s],{commandName:"mergeTableCells",commandParams:[]},[],Nx("0x44"))}))}))}for(const e of["splitTableCellVertically",Nx("0x15")]){const n=t[Nx("0x23")][Nx("0x17")](e);o[Nx("0x31")](e,(()=>{const r=s.getSelectionAffectedTableCells(t[Nx("0x1")][Nx("0x9")].selection)[0],i=r.findAncestor("table"),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Nx("0x26")==n[Nx("0x48")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Nx("0x19")](t).map((t=>t.cell))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Nx("0x19")](t)[Nx("0x32")]((t=>t[Nx("0x47")]))}t[Nx("0x1")][Nx("0xa")]((t=>{o.markBlockFormat(t[Nx("0x6")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Nx("0x42")]((t=>{const{data:e}=t;if(e)return Nx("0x44")==e[Nx("0x12")]?{type:"format",content:Yo(n,Nx("0x2b"))}:void 0})),o[Nx("0x7")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Nx("0x34")==e[Nx("0x12")]?{type:Nx("0x29"),content:Yo(n,Nx("0x2a"))}:"splitTableCellHorizontally"==e[Nx("0x12")]?{type:"format",content:Yo(n,Nx("0xd"))}:void 0}));const x=r[Nx("0x3")]();for(const t of[Nx("0x24"),"mergeTableCellRight",Nx("0x3e"),"mergeTableCellLeft"])o[Nx("0x3d")][Nx("0x33")]("formatBlock",t,"accept",x);for(const t of[Nx("0x34"),"splitTableCellHorizontally"])o[Nx("0x3d")][Nx("0x33")](Nx("0x16"),t,"accept",x);o._suggestionFactory.registerCustomCallback(Nx("0x16"),Nx("0x44"),Nx("0x40"),(n=>{t[Nx("0x1")].change((o=>{const s=Array[Nx("0x19")](e[Nx("0x45")]()).map((t=>i.LiveRange.fromRange(t)));o[Nx("0x49")](n),t.commands.get(Nx("0x44"))[Nx("0x3f")](),t.execute("mergeTableCells",{forceDefaultExecution:!0});const r=s[Nx("0x35")]((t=>Nx("0x13")!=t[Nx("0x18")][Nx("0x3a")]));r[Nx("0x2")]>0&&o[Nx("0x49")](r);for(const t of s)t.detach()}))}));for(const e of[Nx("0x24"),"mergeTableCellDown",Nx("0x2f"),Nx("0x0")]){const n=t[Nx("0x23")][Nx("0x17")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t[Nx("0x1")][Nx("0x9")][Nx("0x4a")][Nx("0x10")]()[Nx("0xb")]().find((t=>t.is(Nx("0x27"),Nx("0x1c"))));this[Nx("0x2c")](n[Nx("0x1a")],o)||(e[Nx("0x5")]=!1,e.stop())}}),{priority:Nx("0x3b")})}}[Nx("0x21")](){const t=this[Nx("0x8")][Nx("0x23")][Nx("0x17")](Nx("0x44")),e=this[Nx("0x8")][Nx("0x1b")][Nx("0x17")](Nx("0x39"));if(!t.isEnabled)return!1;const n=e[Nx("0x20")](this[Nx("0x8")][Nx("0x1")][Nx("0x9")][Nx("0x4a")]);for(const t of n)for(const e of n)if(t!=e&&!this[Nx("0x2c")](t,e))return!1;return!0}[Nx("0x2c")](t,e){const n=this[Nx("0x8")][Nx("0x1b")][Nx("0x17")](Nx("0x1e")),o=this[Nx("0x8")][Nx("0x1")][Nx("0x6")](t),s=this.editor[Nx("0x1")][Nx("0x6")](e),r=new Set,i=new Set;for(const t of n[Nx("0x22")]())if((Nx("0x2d")==t.type||"deletion"==t[Nx("0x4")]||Nx("0x44")==t[Nx("0x25")])&&t[Nx("0x36")])for(const e of t.getRanges())e[Nx("0x30")](o,!0)&&r.add(t.type+":"+t[Nx("0x14")].id),e[Nx("0x30")](s,!0)&&i[Nx("0x1d")](t[Nx("0x4")]+":"+t[Nx("0x14")].id);if(r[Nx("0x3c")]!=i[Nx("0x3c")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const wx=["_suggestionFactory","highest","getAttribute","selection","options","FORMAT_HEADER_COLUMN","first","model","TrackChangesEditing","registerCustomCallback","getCellLocation","document","from","value","accept","childCount","markerNameToElements","createPositionBefore","setTableColumnHeader","forceValue","getRowIndexes","commands","activeMarkers","table","isBefore","get","enableCommand","formatBlock","downcastDispatcher","FORMAT_REGULAR_COLUMN","requires","cell","data","index","writer","nodeAfter","markBlockFormat","parent","change","start","data-suggestion","_splitMarkerName","plugins","getSelectionAffectedTableCells","editing","afterInit","*Format:* %0","getChild","removeAttribute","createTableWalker","consume","addClass","getColumnIndexes","findAncestor","setAttribute","createRange","registerDescriptionCallback","markerName","name","commandName","includes","setTableRowHeader","addMarker:suggestion","removeMarker:suggestion","format","markerRange","mapper","_descriptionFactory","last","unbindElementFromMarkerName","stop","createPositionAfter","FORMAT_HEADER_ROW","ck-suggestion-marker-","removeClass","ck-suggestion-marker--active","toViewElement","_acceptFormatSuggestionCallbackFactory","getSuggestion","end","commandParams"];var Ox,Fx;Ox=wx,Fx=388,function(t){for(;--t;)Ox.push(Ox.shift())}(++Fx);const Px=function(t,e){return wx[t-=0]};class Dx extends t.Plugin{static get[Px("0x2f")](){return[vx]}[Px("0x3e")](){const t=this.editor;if(!t[Px("0x3b")].has("TableEditing"))return;const e=t.locale,n=t.plugins[Px("0x2a")](Px("0x19")),o=t[Px("0x3b")][Px("0x2a")]("TableUtils"),s=t[Px("0x3b")][Px("0x2a")](vx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[Px("0x4a")]),c=n[Px("0xe")](a);if(!c[Px("0x31")]||Px("0x23")!=c[Px("0x31")].commandName)return;if(r.item)return void s[Px("0x6")]();if(!i.consumable[Px("0x43")](r[Px("0x1")],s[Px("0x4b")]))return;const l=r[Px("0x1")][Px("0x38")][Px("0x34")],d=r[Px("0x1")][Px("0xf")].nodeBefore,u=l[Px("0x36")][Px("0x36")],{column:g}=o[Px("0x1b")](l),{column:m}=o[Px("0x1b")](d);for(let s=g;s<=m;s++){const c=o.createTableWalker(u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Px("0x30")],c=i[Px("0x2")][Px("0xc")](s);i.writer[Px("0x44")]("ck-suggestion-marker-"+x,c),e&&i.writer[Px("0x47")](Px("0x39"),a,c),i[Px("0x2")].bindElementToMarker(c,r.markerName),t&&(n[Px("0x27")][Px("0x4d")](r[Px("0x4a")])?i[Px("0x33")].addClass(Px("0xb"),c):i.writer[Px("0xa")]("ck-suggestion-marker--active",c))}}}}n[Px("0x2b")](Px("0x4e"),((e,s)=>{const r=o[Px("0x3c")](t[Px("0x18")].document[Px("0x14")]),i=o[Px("0x25")](r),x=r[0][Px("0x46")](Px("0x28")),a=x.getAttribute("headingRows")||0,c=s&&null!==s[Px("0x24")]?s[Px("0x24")]:!t[Px("0x26")][Px("0x2a")](Px("0x4e"))[Px("0x1e")],l=c?i[Px("0x4")]:i[Px("0x17")],d=x[Px("0x40")](l);let u;if(c){const e=x.getChild(a);if(d[Px("0x32")]<e.index)return;u=t[Px("0x18")][Px("0x48")](t.model[Px("0x22")](e[Px("0x40")](0)),t.model[Px("0x7")](d[Px("0x40")](d[Px("0x20")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t[Px("0x18")][Px("0x48")](t[Px("0x18")][Px("0x22")](d.getChild(0)),t[Px("0x18")][Px("0x7")](e[Px("0x40")](e[Px("0x20")]-1)))}t[Px("0x18")][Px("0x37")]((()=>{n[Px("0x35")](u,{commandName:Px("0x4e"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[Px("0x2b")](Px("0x23"),((e,o)=>{const s=t[Px("0x3b")].get("TableUtils"),r=s[Px("0x3c")](t[Px("0x18")][Px("0x1c")].selection),i=s[Px("0x45")](r),x=r[0][Px("0x46")](Px("0x28")),a=x[Px("0x13")]("headingColumns")||0,c=o&&null!==o[Px("0x24")]?o[Px("0x24")]:!t.commands[Px("0x2a")](Px("0x23"))[Px("0x1e")];let l;const d=x.getChild(0),u=c?i[Px("0x4")]:i[Px("0x17")],g=s[Px("0x42")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Px("0x1d")](g)[0].cell;if(c){const e=d[Px("0x40")](a);if(m[Px("0x29")](e))return;l=t.model[Px("0x48")](t[Px("0x18")][Px("0x22")](e),t.model[Px("0x7")](m))}else{const e=d.getChild(a-1);if(!e)return;l=t[Px("0x18")][Px("0x48")](t[Px("0x18")][Px("0x22")](m),t.model[Px("0x7")](e))}t.model.change((()=>{n[Px("0x35")](l,{commandName:Px("0x23"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[Px("0x3d")][Px("0x2d")].on(Px("0x4f"),r(),{priority:"highest"}),t.data[Px("0x2d")].on(Px("0x4f"),((t,e,n)=>{n[Px("0x15")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Px("0x12")}),t.editing[Px("0x2d")].on(Px("0x50"),((t,e,o)=>{const{type:s,id:r}=n[Px("0x3a")](e[Px("0x4a")]),i=n.getSuggestion(r);if(!i[Px("0x31")]||"setTableColumnHeader"!=i[Px("0x31")].commandName)return;const x=o[Px("0x2")][Px("0x21")](e[Px("0x4a")]);if(x)for(const t of x)o[Px("0x33")][Px("0xa")](Px("0x9")+s,t),o[Px("0x33")].removeClass(Px("0xb"),t),o[Px("0x33")][Px("0x41")](Px("0x39"),t),o[Px("0x2")][Px("0x5")](t,e[Px("0x4a")])}),{priority:Px("0x12")}),n[Px("0x3")][Px("0x49")]((t=>{const{data:n}=t;if(n){if(Px("0x4e")==n[Px("0x4c")]){const t=n[Px("0x10")][0].forceValue;return o(Yo(e,t?Px("0x8"):"FORMAT_REGULAR_ROW"))}if(Px("0x23")==n[Px("0x4c")]){const t=n.commandParams[0][Px("0x24")];return o(Yo(e,Px(t?"0x16":"0x2e")))}}function o(t){return{type:Px("0x0"),content:Yo(e,Px("0x3f"),t)}}}));const i=s[Px("0xd")]();n[Px("0x11")][Px("0x1a")](Px("0x2c"),"setTableRowHeader","accept",i),n[Px("0x11")][Px("0x1a")](Px("0x2c"),Px("0x23"),Px("0x1f"),i)}}const Bx=["ck-suggestion-marker","change","rowInsertionIndexes","getRowIndexes","fill","_tablePostFixingSubtypes","locale","paragraph","insertContent","listenTo","createElement","from","redo","createPositionBefore","getMarkers","_splitMarkerName","containsRange","tableCellHorizontalAlignment","markerToHighlight","position","getSuggestion","length","type","createRangeIn","setAttribute","getRange","createRange","subType","deletion","push","markerName","registerPostFixer","root","getAttributes","markMultiRangeInsertion","getChangedMarkers","tablePaste","tableCellSuggestion","TrackChangesEditing","deletionRanges","every","high","_createdBatches","element","insertion","editor","fromEntries","has","suggestionUnloaded","last","options","next","editingDowncast","move","markerAttributes","tableCell","tablePasteColumn","getItems","filter","name","columnInsertionIndexes","removeMarker","low","_getCoordsForCells","document","plugins","getRanges","oldRange","Users","schema","row","markMultiRangeBlockFormat","_replaceTableSlotCell","wrap","getChild","activeMarkers","registerDescriptionCallback","elementToElement","tablePasteCell","cells","getColumns","tableCellBorderWidth","content","getContainedElement","getChanges","rowInsertionRanges","removeColumns","return","keys","batch","remove","insertionRanges","cell","suggestion:formatBlock:tablePasteCell","end","nodeAfter","findAncestor","join","discard","TableUtils","attributes","_descriptionFactory","author","ck-suggestion-marker--active","getSuggestions","createTableWalker","editing","showSuggestionHighlights","tablePasteRow","nextSibling","isEqual","setAttributes","includes","model","dataDowncast","some","table","isInContent","stop","register","_suggestionFactory","newRange","reduce","formatBlock","forceDefaultExecution","requires","accept","TableClipboard","set","markMultiRangeDeletion","start","documentSelection","tableCellBorderColor","add","column","tablePasteChainId","getAllAdjacentSuggestions","selection","removeMarkers","conversion","first","getTableIfOnlyTableInContent","differ","getColumnIndexes","for","suggestionLoaded","map","find","columnInsertionRanges","getRows","value","commands","tableCellPadding","getChildren","insert","endColumn","registerCustomCallback","getShiftedBy","suggestion-td","isEmpty","previousSibling","previous","get","unwrap","startsWith","*Replace table cells*","createRangeOn"];var jx,Ux;jx=Bx,Ux=126,function(t){for(;--t;)jx.push(jx.shift())}(++Ux);const Gx=function(t,e){return Bx[t-=0]},Hx=[Gx("0x7a"),Gx("0x6"),"tableCellBorderStyle",Gx("0x3a"),"tableCellVerticalAlignment","tableCellBackgroundColor",Gx("0x1a")],Wx=Object[Gx("0x57")](Hx.map((t=>[t,null])));class Vx extends t.Plugin{static get[Gx("0xa6")](){return[vx]}afterInit(){const t=this[Gx("0x56")];if(!t.plugins.has("TableClipboard"))return;const n=t[Gx("0x6a")][Gx("0x24")](Gx("0x4f")),o=t[Gx("0x6a")].get(Gx("0x8c")),s=t.plugins[Gx("0x24")](vx),r=t[Gx("0x6a")][Gx("0x24")](Gx("0x1"));s[Gx("0x2e")].push(Gx("0x95"),Gx("0x61")),t[Gx("0x9a")][Gx("0x6e")][Gx("0xa0")](Gx("0x4e"),{allowIn:Gx("0x60"),allowContentOf:Gx("0x60"),isLimit:!0}),t[Gx("0xd")][Gx("0x76")]({model:Gx("0x4e"),view:Gx("0x20")});let i=null;t[Gx("0x9a")].on("insertContent",((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Gx("0xa5")]||n._isForcedDefaultExecutionBlock||this[Gx("0x56")][Gx("0x19")][Gx("0x24")]("trackChanges")[Gx("0x18")]&&function(t,e,n,o,s){if(e&&!e.is(Gx("0x5")))return!1;const r=s[Gx("0xf")](t,n);if(!r||!Kx(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Gx("0x69")][Gx("0xb")]);if(!i.length)return!1;const x=i[0][Gx("0x89")](Gx("0x9d")),a=o[Gx("0x2c")](i),c=o[Gx("0x11")](i),l={startRow:a[Gx("0xe")],endRow:a[Gx("0x5a")],startColumn:c.first,endColumn:c[Gx("0x5a")]};return 1==i[Gx("0x3e")]&&(l.endRow+=o[Gx("0x17")](r)-1,l[Gx("0x1d")]+=o[Gx("0x79")](r)-1),Kx(x,l,o)}(a,c,t[Gx("0x9a")],o,r)&&(s[Gx("0x9f")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Gx("0x9a")][Gx("0x2a")]((()=>{t[Gx("0x9a")][Gx("0x31")](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[Gx("0x3e")]&&n.markMultiRangeInsertion(s,Gx("0x95"),{tablePasteChainId:o}),r[Gx("0x3e")]&&n[Gx("0x4b")](r,Gx("0x61"),{tablePasteChainId:o}),a[Gx("0x3e")]&&n[Gx("0x4b")](a,Gx("0x4d"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Gx("0x3e")]&&n[Gx("0x3")](c,Gx("0x4d"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Gx("0x70")](l[Gx("0x14")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Gx("0x77"),{tablePasteChainId:o});if(d){const e=d[Gx("0x37")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Gx("0x28")](o),i=e[Gx("0x15")]((t=>t.getRange()[Gx("0x97")](r)));i&&n[Gx("0x46")]([i[Gx("0x64")],s])}n[Gx("0x3e")]&&d[Gx("0x41")](Gx("0x5f"),Object[Gx("0x57")](n))}i=null})))}),{priority:e.priorities[Gx("0x52")]+10}),t[Gx("0x6a")].get(Gx("0x1")).on(Gx("0x71"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Gx("0x9f")]();const r=n[Gx("0x85")],x=o,a=zx(r),c=zx(x);t[Gx("0x80")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[Gx("0x83")](r[Gx("0x73")](0));for(const t of Array[Gx("0x34")](x[Gx("0x1b")]()))s[Gx("0x1c")](t,r,Gx("0x87"));const t=i[Gx("0x2b")][Gx("0x99")](n[Gx("0x6f")]),e=i[Gx("0x65")][Gx("0x99")](n[Gx("0x8")]);t||e||(l=s[Gx("0x40")](r))}else c&&!a&&(d=s.createRangeIn(r));else{const t=s[Gx("0x33")](Gx("0x4e")),e=s[Gx("0x33")](Gx("0x4e"));s[Gx("0x72")](s[Gx("0x40")](r),e),s.insert(t,r,0);for(const e of Array[Gx("0x34")](x[Gx("0x1b")]()))s[Gx("0x1c")](e,t,Gx("0x87"));l=s.createRangeOn(t),d=s[Gx("0x28")](e)}const u=Array.from(x[Gx("0x4a")]())[Gx("0x63")]((([t])=>Hx.includes(t)));i[Gx("0x78")][Gx("0x46")]({element:r,attributes:u[Gx("0x3e")]?Object[Gx("0x57")](u):null}),l&&i[Gx("0x84")].push(l),d&&i[Gx("0x50")].push(d)}),{priority:Gx("0x52")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i[Gx("0x65")]=new Array(a).fill(x)[Gx("0x14")](((t,e)=>t+e));for(const{cell:e}of o[Gx("0x92")](s,{startColumn:x,endColumn:x+a-1}))i[Gx("0x16")][Gx("0x46")](t[Gx("0x9a")].createRangeOn(e))}),{priority:Gx("0x67")}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Gx("0x2b")]=new Array(a)[Gx("0x2d")](x)[Gx("0x14")](((t,e)=>t+e));for(const{cell:e}of o[Gx("0x92")](s,{startRow:x,endRow:x+a-1}))i[Gx("0x7e")].push(t[Gx("0x9a")][Gx("0x28")](e))}),{priority:Gx("0x67")}),n[Gx("0x8e")][Gx("0x75")]((e=>{if(e[Gx("0x44")]&&e[Gx("0x44")][Gx("0x26")]("tablePaste"))return e[Gx("0x23")]?{}:{type:"insertion",content:Yo(t[Gx("0x2f")],Gx("0x27"))}}));const x=()=>{};for(const t of[Gx("0x4d"),Gx("0x61"),Gx("0x95"),Gx("0x77")])n[Gx("0xa1")].registerCustomCallback(Gx("0x55"),t,Gx("0x8a"),x),n._suggestionFactory[Gx("0x1e")](Gx("0x45"),t,"join",x);n[Gx("0xa1")].registerCustomCallback(Gx("0xa4"),"tablePasteCell",Gx("0x8b"),x),n[Gx("0xa1")][Gx("0x1e")](Gx("0xa4"),Gx("0x77"),Gx("0x0"),((e,n,o)=>{const s=e[Gx("0x14")]((t=>t[Gx("0x7c")]()))[Gx("0x63")]((t=>t)),r=new Map(s[Gx("0x14")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Gx("0x78")])e&&r[Gx("0x2")](t,e);else if(o&&o[Gx("0x5f")])for(const[e,n]of Object.entries(o[Gx("0x5f")])){const o=t[Gx("0x9a")].markers[Gx("0x24")](e),s=o?o[Gx("0x42")]()[Gx("0x7c")]():null;s&&r.set(s,n)}t[Gx("0x9a")][Gx("0x2a")]((t=>{for(const[e,n]of r)t[Gx("0x98")]({...Wx,...n},e)}))}));const a=(e,o)=>{n[Gx("0xa1")][Gx("0x1e")](e,"tablePaste",o,((s,r,i)=>{t[Gx("0x9a")][Gx("0x2a")]((t=>{const x=[];for(const t of s){const e=t[Gx("0x4")][Gx("0x88")];e.is(Gx("0x54"),"tableCellSuggestion")&&x[Gx("0x46")](e)}n[Gx("0xa1")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[Gx("0x49")].rootName&&t.unwrap(e)}))}))};a(Gx("0x55"),"accept"),a(Gx("0x55"),Gx("0x8b")),a("deletion",Gx("0x0")),a(Gx("0x45"),Gx("0x8b")),n[Gx("0xa1")].registerCustomCallback(Gx("0x55"),Gx("0x95"),Gx("0x8b"),(t=>{const e=t[Gx("0x14")]((t=>t[Gx("0x7c")]())),n=e[0][Gx("0x89")](Gx("0x9d")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Gx("0xa1")][Gx("0x1e")](Gx("0x55"),Gx("0x61"),"discard",(t=>{const e=t[Gx("0x14")]((t=>t[Gx("0x7c")]())),n=e[0].findAncestor(Gx("0x9d")),{minColumn:r,maxColumn:i}=s[Gx("0x68")](e);o[Gx("0x7f")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Gx("0x44")]||!e[Gx("0x44")][Gx("0x26")](Gx("0x4d")))return;const o=e.attributes.tablePasteChainId,s=n[Gx("0x91")]()[Gx("0x63")]((t=>t.isInContent&&t[Gx("0x8d")]&&t.attributes[Gx("0x9")]==o));s.length&&e[Gx("0xa")]().length!=s.length&&s[Gx("0xa3")](((t,e)=>(t[Gx("0x5c")]=e,e[Gx("0x23")]=t,e)))};function l(t,e=!0){const{id:o}=n[Gx("0x38")](t[Gx("0x47")]),s=[Gx("0x29"),"ck-suggestion-marker-insertion"],r=n[Gx("0x74")][Gx("0x99")](t[Gx("0x47")]);return r&&s[Gx("0x46")](Gx("0x90")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Gx("0x13"),c,{priority:Gx("0x52")}),n.on(Gx("0x59"),c,{priority:Gx("0x52")}),t[Gx("0x9a")][Gx("0x69")][Gx("0x48")]((()=>{let e=!1;const o=Array[Gx("0x34")](t.model[Gx("0x69")][Gx("0x10")][Gx("0x4c")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Gx("0x38")](s);if("suggestion"!=o||Gx("0x45")!=i||r.oldRange)continue;if(!n.hasSuggestion(x))continue;const a=n[Gx("0x3d")](x)[Gx("0x6b")](),c=t[Gx("0x6a")][Gx("0x24")]("Users").me;for(const t of n[Gx("0x91")]())if(t[Gx("0x9e")]&&t[Gx("0x8f")]==c&&Gx("0xa4")==t[Gx("0x3f")]&&Gx("0x77")==t[Gx("0x44")]&&t[Gx("0x6b")]()[Gx("0x51")]((t=>a[Gx("0x9c")]((e=>e[Gx("0x39")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n.isInContent&&(n[Gx("0x8b")](),e=!0)}return e})),t[Gx("0x9a")][Gx("0x69")][Gx("0x48")]((e=>{const o=t.commands[Gx("0x24")](Gx("0x35"));if(!o||!o[Gx("0x53")][Gx("0x58")](e[Gx("0x82")]))return!1;let s=!1;const r=t[Gx("0x6a")][Gx("0x24")](Gx("0x6d")).me,i=t.model[Gx("0x69")][Gx("0x10")][Gx("0x7d")](),x=Array[Gx("0x34")](t.model[Gx("0x69")][Gx("0x10")].getChangedMarkers())[Gx("0x63")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Gx("0x38")](t);return"suggestion"==o&&"tablePaste"==s&&i==r.id&&!e[Gx("0x6c")]}));for(const t of i){if(Gx("0x1c")!=t[Gx("0x3f")]||"tableCellSuggestion"!=t[Gx("0x64")]||1!=t.length)continue;const n=e[Gx("0x43")](t[Gx("0x3c")],t.position[Gx("0x1f")](1));if(!x[Gx("0x15")]((({data:t})=>t[Gx("0xa2")].isEqual(n))))for(const{name:t,data:o}of x)if(n[Gx("0x39")](o[Gx("0xa2")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Gx("0x9a")][Gx("0x69")][Gx("0x48")]((e=>{let o=!1;const s=t[Gx("0x6a")][Gx("0x24")](Gx("0x6d")).me,r=n[Gx("0x91")]().filter((t=>t[Gx("0x9e")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Gx("0x4d")==t.subType)for(const e of t[Gx("0x37")]()){const n=e[Gx("0x42")]()[Gx("0x7c")]();if(n)if(n.is(Gx("0x54"),Gx("0x4e"))&&zx(n)){t.removeMarker(e[Gx("0x64")]),i[Gx("0x7")](n),o=!0;const s=n[Gx("0x96")],r=n[Gx("0x22")],a=s&&s.is(Gx("0x54"),Gx("0x4e")),c=r&&r.is(Gx("0x54"),"tableCellSuggestion");a&&!i.has(s)&&x[Gx("0x7")](s),c&&!i[Gx("0x58")](r)&&x.add(r)}else n.is("element",Gx("0x30"))&&n.isEmpty&&(t[Gx("0x66")](e[Gx("0x64")]),o=!0)}else if(Gx("0x77")==t[Gx("0x44")]){if(!t[Gx("0x8d")]||!t.attributes[Gx("0x9")])continue;const e=t.attributes[Gx("0x5f")];if(e&&Object[Gx("0x81")](e)[Gx("0x3e")])continue;const n=t[Gx("0x8d")].tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e[Gx("0x44")]&&e[Gx("0x44")][Gx("0x26")](Gx("0x4d"))){if(!e[Gx("0x8d")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e.attributes[Gx("0x9")]==n){s=!1;break}}i&&s&&(t[Gx("0xc")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Gx("0x25")](t);return o})),t[Gx("0xd")][Gx("0x12")](Gx("0x5d"))[Gx("0x3b")]({model:Gx("0x86"),view:(t,e)=>l(t),converterPriority:Gx("0x52")}),t[Gx("0xd")][Gx("0x12")](Gx("0x9b"))[Gx("0x3b")]({model:Gx("0x86"),view:(t,e)=>e[Gx("0x5b")][Gx("0x94")]?l(t,!1):null,converterPriority:"high"});const d=t[Gx("0x93")].view;this[Gx("0x32")](d.document,"clipboardOutput",((t,e)=>{const n=[];for(const t of d.createRangeIn(e[Gx("0x7b")])[Gx("0x62")]())t.is(Gx("0x54"),Gx("0x20"))&&n.push(t);d.change((t=>{for(const e of n)t[Gx("0x5e")](t[Gx("0x40")](e),t[Gx("0x36")](e)),t[Gx("0x83")](e)}))}))}}function zx(t){if(t[Gx("0x21")])return!0;const e=t.getChild(0);return e.is(Gx("0x54"),Gx("0x30"))&&e[Gx("0x21")]}function Kx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Gx("0x92")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const qx=["registerDescriptionCallback","*Format:* resize table","getSuggestions","model","Users","plugins","getSelectedElement","registerCustomCallback","getAttribute","getTableColumnsWidths","has","author","formatBlock","getSuggestionCallback","TrackChangesEditing","change","resizeTable","handleSuggestionDescription","handleResizeTableWidthCommand","enableCommand","subType","locale","_suggestionFactory","selection","markBlockFormat","TableColumnResizeEditing","editor","document","afterInit","tableWidth","resizeTableWidth","resizeColumnWidths","discard","getColumnGroupElement","get","bind","data","formatGroupId","commandParams","format","getContainedElement","columnWidths"];var Xx,$x;Xx=qx,$x=378,function(t){for(;--t;)Xx.push(Xx.shift())}(++$x);const Qx=function(t,e){return qx[t-=0]};class Jx extends t.Plugin{[Qx("0x1c")](){if(!this.editor[Qx("0x5")][Qx("0xa")](Qx("0x19")))return;const t=this[Qx("0x1a")].plugins[Qx("0x22")](Qx("0xe"));t[Qx("0x13")](Qx("0x1e"),this[Qx("0x12")].bind(this)),t.enableCommand(Qx("0x1f"),this.handleResizeTableWidthCommand[Qx("0x23")](this)),t[Qx("0x16")][Qx("0x7")](Qx("0xc"),Qx("0x10"),"accept",t[Qx("0x16")][Qx("0xd")]("formatBlock",null,Qx("0x20"))),t._suggestionFactory[Qx("0x7")]("formatBlock",Qx("0x10"),"discard",t[Qx("0x16")][Qx("0xd")]("formatBlock",null,"accept")),t._descriptionFactory[Qx("0x0")](this.handleSuggestionDescription[Qx("0x23")](this))}[Qx("0x12")](t,e){const n=this[Qx("0x1a")].plugins[Qx("0x22")]("TrackChangesEditing"),o=this[Qx("0x1a")].plugins[Qx("0x22")]("TableColumnResizeEditing"),s=e.table||this.editor[Qx("0x3")][Qx("0x1b")][Qx("0x17")][Qx("0x6")]();this[Qx("0x1a")][Qx("0x3")][Qx("0xf")]((()=>{const r=o[Qx("0x21")](s);let i=r?o[Qx("0x9")](r):null,x=s[Qx("0x8")](Qx("0x1d"))||null;const a=e.tableWidth||x,c=e[Qx("0x29")]||i,l=this[Qx("0x1a")][Qx("0x5")][Qx("0x22")](Qx("0x4")).me;for(const t of n[Qx("0x2")]()){const e=t[Qx("0x28")]();if(Qx("0x10")===t[Qx("0x14")]&&e===s){t[Qx("0xb")]!==l&&t[Qx("0x20")]();const e=t[Qx("0x24")][Qx("0x26")];x=e[0][Qx("0x1d")],i=e[0][Qx("0x29")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[Qx("0x18")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],"resizeTable")}))}[Qx("0x11")](t){const{data:e}=t;if(e&&Qx("0x10")===e[Qx("0x25")]){const t=Qx("0x1");return{type:Qx("0x27"),content:Yo(this[Qx("0x1a")][Qx("0x15")],t)}}}}const Zx=["afterInit","title-content","locale","from","isEqual","isTouching","end","forward","editor","removeMarker","ELEMENT_TITLE","model","createRange","newRange","getChangedMarkers","getNearestSelectionRange","get","_splitMarkerName","suggestion","start","schema","registerPostFixer","has","Title","isCollapsed","plugins","TrackChangesEditing","element","updateMarker"];var Yx,ta;Yx=Zx,ta=141,function(t){for(;--t;)Yx.push(Yx.shift())}(++ta);const ea=function(t,e){return Zx[t-=0]};class na extends t.Plugin{[ea("0x4")](){const t=this[ea("0xc")];if(!t[ea("0x0")][ea("0x1a")](ea("0x1b")))return;const e=t[ea("0x0")][ea("0x14")](ea("0x1"));e._descriptionFactory.registerElementLabel(ea("0x5"),(()=>Yo(t[ea("0x6")],ea("0xe")))),t[ea("0xf")].document[ea("0x19")]((n=>{let o=!1;const s=Array[ea("0x7")](t[ea("0xf")].document.differ[ea("0x12")]());for(const{name:r,data:i}of s){const{group:s}=e[ea("0x15")](r);if(ea("0x16")!==s||!i[ea("0x11")])continue;const x=i.newRange,a=x[ea("0xa")].nodeBefore;if(!a||!a.is(ea("0x2"),ea("0x5")))continue;if(!x[ea("0x17")][ea("0x9")](x.end))continue;const c=t.model[ea("0x18")][ea("0x13")](x[ea("0xa")],ea("0xb"));if(c&&c[ea("0x1c")]){const t=n[ea("0x10")](x[ea("0x17")],c[ea("0x17")]);t[ea("0x8")](x)||(n[ea("0x3")](r,{range:t}),o=!0)}o||(n[ea("0xd")](r),o=!0)}return o}))}}const oa=["undo","get","UndoEditing","enableCommand","TrackChangesEditing","redo","afterInit"];var sa,ra;sa=oa,ra=437,function(t){for(;--t;)sa.push(sa.shift())}(++ra);const ia=function(t,e){return oa[t-=0]};class xa extends t.Plugin{[ia("0x3")](){const t=this.editor,e=t.plugins[ia("0x5")](ia("0x1"));t.plugins.has(ia("0x6"))&&(e[ia("0x0")](ia("0x4")),e[ia("0x0")](ia("0x2")))}}const aa=["get","requires","TrackChangesEditing","TableCaptionEditing","enableCommand","editor","plugins"];var ca,la;ca=aa,la=320,function(t){for(;--t;)ca.push(ca.shift())}(++la);const da=function(t,e){return aa[t-=0]};class ua extends t.Plugin{static get[da("0x3")](){return[vx]}afterInit(){const t=this[da("0x0")];t[da("0x1")].has(da("0x5"))&&t.plugins[da("0x2")](da("0x4"))[da("0x6")]("toggleTableCaption")}}const ga=["afterInit","getListTypeFromListStyleType","list.properties","ELEMENT_","filter","reversed","TrackChangesEditing","startIndex","document","*Format:* set start index to %0","*Format:* set order to regular","bind","listStyle","commandParams","expandListBlocksToCompleteList","isListItemBlock","model","listType","editor","enableCommand","_descriptionFactory","format","has","DocumentListPropertiesEditing","from","isFirstBlockOfListItem","listReversed","_getSuggestionBlocksForListStyle","_LIST_","_getTranslationKeyForListStyle","handleListStyleCommand","_getSuggestionBlocks","config","toUpperCase","*Format:* set order to reversed","push","change","getSelectedBlocks","handleListStartCommand","listStart","selection","length","getAttribute","handleDescriptions","plugins","markMultiRangeBlockFormat","styles","handleListReversedCommand","numbered","DocumentListUtils","locale","get","replace","registerDescriptionCallback"];var ma,fa;ma=ga,fa=295,function(t){for(;--t;)ma.push(ma.shift())}(++fa);const ha=function(t,e){return ga[t-=0]};class pa extends t.Plugin{[ha("0x1d")](){if(!this.editor.plugins[ha("0x33")](ha("0x34")))return;const t=this.editor[ha("0x7")][ha("0x1a")](ha("0x1f")),e=this[ha("0x2f")][ha("0x13")].get(ha("0x23"));t[ha("0x15")]&&e[ha("0x30")](ha("0x29"),this[ha("0x5")][ha("0x28")](this)),t[ha("0x22")]&&e[ha("0x30")](ha("0x1"),this[ha("0x16")][ha("0x28")](this)),t.startIndex&&e.enableCommand(ha("0xe"),this[ha("0xd")].bind(this)),e[ha("0x31")][ha("0x1c")](this[ha("0x12")][ha("0x28")](this))}[ha("0x5")](t,e={}){const n=this[ha("0x2f")][ha("0x13")][ha("0x1a")](ha("0x23")),o=this[ha("0x2")]();this[ha("0x2f")][ha("0x2d")][ha("0xb")]((()=>{n[ha("0x14")](o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:ha("0x29")})}))}[ha("0x16")](t,e={}){const n=this.editor.plugins[ha("0x1a")](ha("0x23")),o=this[ha("0x2f")][ha("0x13")].get(ha("0x18")),s=this[ha("0x6")]((t=>o[ha("0x2c")](t)&&ha("0x17")===t.getAttribute("listType")));null!==s&&this[ha("0x2f")][ha("0x2d")][ha("0xb")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:ha("0x1"),commandParams:[{reversed:e[ha("0x22")]}],formatGroupId:ha("0x1")})}))}[ha("0xd")](t,e={}){const n=this.editor.plugins[ha("0x1a")](ha("0x23")),o=this[ha("0x2f")][ha("0x13")][ha("0x1a")]("DocumentListUtils"),s=this[ha("0x6")]((t=>o[ha("0x2c")](t)&&"numbered"===t[ha("0x11")](ha("0x2e"))));null!==s&&this[ha("0x2f")][ha("0x2d")][ha("0xb")]((()=>{n[ha("0x14")](s,{commandName:"listStart",commandParams:[{startIndex:e[ha("0x24")]}],formatGroupId:"listStart"})}))}[ha("0x12")](t){const e=this[ha("0x2f")][ha("0x19")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case ha("0x29"):o="*Change to:* %0",s={type:ha("0x32"),content:Yo(e,o,Yo(e,this[ha("0x4")](n[ha("0x2a")][0].type)))};break;case ha("0x1"):o=n[ha("0x2a")][0][ha("0x22")]?ha("0x9"):ha("0x27"),s={type:ha("0x32"),content:Yo(e,o)};break;case ha("0xe"):o=ha("0x26"),s={type:"format",content:Yo(e,o,n.commandParams[0].startIndex)}}return s}_getSuggestionBlocksForListStyle(){const t=this[ha("0x2f")][ha("0x13")][ha("0x1a")](ha("0x18"));let e=Array[ha("0x35")](this[ha("0x2f")][ha("0x2d")][ha("0x25")][ha("0xf")][ha("0xc")]());return e[ha("0xa")](...t[ha("0x2b")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[ha("0x2f")].plugins[ha("0x1a")](ha("0x18"));let n=Array.from(this[ha("0x2f")][ha("0x2d")][ha("0x25")][ha("0xf")][ha("0xc")]())[ha("0x21")](t);if(!n[ha("0x10")])return null;n=e[ha("0x2b")](n);const o=[];for(const t of n)e[ha("0x0")](t)&&o.push(t);return o}[ha("0x4")](t){return ha("0x20")+this.editor[ha("0x13")][ha("0x1a")]("DocumentListPropertiesUtils")[ha("0x1e")](t)[ha("0x8")]()+ha("0x3")+t[ha("0x8")]()[ha("0x1b")](/-/g,"_")}}const ba=["markBlockFormat","getSuggestionCallback","format","change","tableBorderColor","handleDiscardAction","getContainedElement","subType","getSuggestions","get","getSelectionAffectedTableCells","tableCellBorderStyle","*Format:* change table properties","model","tableCellPadding","_handlePropertyChange","TableCellPropertiesEditing","_suggestionFactory","tableCellBorderWidth","nodeAfter","enqueueChange","tableCellProperties","registerCustomCallback","tableBorderStyle","*Format:* change table cell properties","getFirstPosition","tableCellWidth","table","data","enableCommand","document","getAttribute","start","locale","plugins","tableCellHorizontalAlignment","tableCellBorderColor","join","tableWidth","TablePropertiesEditing","selection","setAttribute","handleSuggestionDescription","discard","tableProperties","accept","has","formatBlock","tableCellHeight","findAncestor","tableCellBackgroundColor","_getSuggestion","TrackChangesEditing","commandParams","editor"];var Ea,_a;Ea=ba,_a=248,function(t){for(;--t;)Ea.push(Ea.shift())}(++_a);const Ta=function(t,e){return ba[t-=0]};class Ca extends t.Plugin{constructor(t){super(t),this[Ta("0x10")]=[Ta("0x1f"),Ta("0x32"),"tableBorderWidth","tableAlignment",Ta("0xa"),"tableHeight","tableBackgroundColor"],this[Ta("0x30")]=[Ta("0x8"),Ta("0x26"),Ta("0x2d"),Ta("0x29"),Ta("0x35"),Ta("0x14"),Ta("0x16"),Ta("0x7"),"tableCellVerticalAlignment"]}static get pluginName(){return"TrackChangesTableProperties"}afterInit(){const t=this.editor[Ta("0x6")][Ta("0x24")](Ta("0x18"));if(this[Ta("0x1a")].plugins[Ta("0x12")](Ta("0xb"))){for(const e of this[Ta("0x10")])t[Ta("0x1")](e,((t,n)=>{const o=this[Ta("0x1a")][Ta("0x28")].document[Ta("0xc")][Ta("0x34")]()[Ta("0x15")](Ta("0x36"));this[Ta("0x2a")](e,[o],this[Ta("0x10")],Ta("0x10"),t,n)}));t[Ta("0x2c")][Ta("0x31")]("formatBlock",Ta("0x10"),Ta("0x11"),t[Ta("0x2c")][Ta("0x1c")](Ta("0x13"),null,"discard")),t[Ta("0x2c")][Ta("0x31")](Ta("0x13"),"tableProperties",Ta("0xf"),((t,e)=>this[Ta("0x20")](this.tableProperties,t,e))),t[Ta("0x2c")][Ta("0x31")](Ta("0x13"),Ta("0x10"),Ta("0x9"),(()=>!1))}if(this[Ta("0x1a")][Ta("0x6")][Ta("0x12")](Ta("0x2b"))){for(const e of this.tableCellProperties)t[Ta("0x1")](e,((t,n)=>{const o=this[Ta("0x1a")].plugins[Ta("0x24")]("TableUtils")[Ta("0x25")](this[Ta("0x1a")].model[Ta("0x2")][Ta("0xc")]);this[Ta("0x2a")](e,o,this[Ta("0x30")],Ta("0x30"),t,n)}));t._suggestionFactory[Ta("0x31")](Ta("0x13"),Ta("0x30"),Ta("0x11"),t[Ta("0x2c")][Ta("0x1c")]("formatBlock",null,Ta("0xf"))),t[Ta("0x2c")].registerCustomCallback(Ta("0x13"),Ta("0x30"),Ta("0xf"),((t,e)=>this.handleDiscardAction(this.tableCellProperties,t,e))),t[Ta("0x2c")][Ta("0x31")](Ta("0x13"),Ta("0x30"),"join",(()=>!1))}t._descriptionFactory.registerDescriptionCallback((t=>this[Ta("0xe")](t)))}[Ta("0x2a")](t,e,n,o,s,r){const i=this[Ta("0x1a")][Ta("0x6")][Ta("0x24")](Ta("0x18"));this[Ta("0x1a")].model[Ta("0x2f")](r.batch,(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ta("0x3")](o);void 0!==n&&(e[o]=n)}s(r),i[Ta("0x1b")](t,{commandParams:[e]},[],o)}}))}[Ta("0x20")](t,e,n){const o=e[0][Ta("0x4")][Ta("0x2e")],s=n[Ta("0x19")][0];this.editor.model[Ta("0x1e")]((e=>{for(const n of t)void 0!==s[n]?e[Ta("0xd")](n,s[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t[Ta("0x0")])switch(t[Ta("0x22")]){case"tableProperties":return{type:Ta("0x1d"),content:Yo(this[Ta("0x1a")].locale,Ta("0x27"))};case Ta("0x30"):return{type:"format",content:Yo(this[Ta("0x1a")][Ta("0x5")],Ta("0x33"))}}}[Ta("0x17")](t,e){const n=this[Ta("0x1a")][Ta("0x6")][Ta("0x24")](Ta("0x18"));for(const o of n[Ta("0x23")]({skipNotAttached:!0})){const n=o[Ta("0x21")]();if(o[Ta("0x22")]===e&&n===t)return o}return null}}const ya=["high","start","showSuggestionHighlights","markBlockFormat","TrackChangesEditing","values","data-suggestion","insertion:","formatGroupId","schema","ck-suggestion-marker--active","isMultiRange","elementToElement","consume","has","removeComment","markInlineFormat","Users","_getSuggestionData","locale","formatBlock:","_getExternalAuthor","track-changes-adapter-already-set","creator","commentThread","getFirstRange","map","formatBlock:join","conversion","_getAuthorFromId","hasComments","then","isLimit","getUser","change:data","return","insertion:chain","define","size","removeClass","open","formatInline:join","isUndo","markDeletion","consumable","requires","addMarker","widget","_joinWithAdjacentSuggestions","nodeAfter","isInsideObject","insertion:accept","getShiftedBy","getAttribute","moveTargetPosition","insertion","dataReady","rethrowUnexpectedError","markers","formatBlock","isIntersectingWithRange","suggestion:","oldRange","detach","getIntersection","reconvertMarker","before","stop","authorName","_cutOutSuggestionMarker","track-changes-suggestion-data-mismatch","length","getChanges","subType","suggestion-type","hasCommentThread","_refreshSuggestionsChain","_rangeIsInLocalUserInsertion","writer","backward","createSelection","track-changes-command-not-found","isInContent","mapper","isEqual","getNearestSelectionRange","split","unbind","_suggestions","getCustomProperty","model","_adapter","for","isCollapsed","_setSuggestionData","insertContent","accept","skipNestingCheck","_model","addMarker:suggestion","addClass","addMarker:suggestion:formatBlock","originalSuggestionId","lowest","fromCharCode","init","enableReadOnlyMode","enqueueChange","getChangedMarkers","getAncestors","element","createdAt","ck-suggestion-marker","data","resolve","updateMarker","_findSuggestions","forceDefaultExecution","plugins","newRange","trackChangesCommand","forward","getRange","chain","collaboration.channelId","addRange","getSuggestionCallback","isSelectable","range","formatBlock:accept","formatInline","removeMarkers","get","attributes","document","set","bindElementToMarker","addHighlight","acceptAllSuggestions","_updateSuggestionData","insertion:join","removeMarker","editor","formatInline:","$textProxy","dataDowncast","_splitMarkerName","_suggestionFactory","suggestion","next","position","_commentsRepository","remove","_trackFormatChanges","commands","getDifference","isBefore","dataToMarker","activeMarkers","rootName","unbindElementFromMarkerName","createRangeIn","removed","isTouching","accepted","buildSuggestion","updateSuggestion","getSuggestions","track-changes-user-not-found","push","_createSuggestion","options","item","after","config","_customCallbacks","fire","CommentsRepository","join","formatInline:chain","track-changes-suggestion-not-found","isOwn","markerReady","notReady","_isForcedDefaultExecutionBlock","markerName","registerPostFixer","change:activeMarkers","value","ready","discardAllSuggestions","_registerDefaultCallbacks","discard","stopListening","addComment","addUser","_defaultCallbacks","containsPosition","_addSuggestionMarker","insert","delete","isObject","normal","move","multipleBlocks","formatBlock:discard","selection","addSuggestion","enableCommand","fetchCommentThread","root","authoredAt","group","getFirstMarker","ck-suggestion-marker-formatBlock","previous","_checkSuggestionCorrectness","editingDowncast","sort","_breakSuggestionMarker","createRange","_joinSuggestions","type","external:","nodeBefore","isRemovable","_handleNewSuggestionMarker","clear","some","isExternal","suggestionLoaded","PendingActions","update:suggestion","isNextTo","howMany","addCommentThread","$graveyard","deletion:","catch","_onDiscard","isAfter","_setSuggestionRange","addMarkerName","documentSelection","from","commandName","listenTo","createPositionAt","_addThreadToSuggestion","marker-count","parent","getSuggestion","containsRangeInObject","containsItem","every","fromRange","acceptSuggestion","includes","isAtEnd","hasSuggestion","setSelection","markMultiRangeDeletion","discardSelectedSuggestions","@external","refresh","differ","formatInline:accept","getItems","rejected","multi","batch","$marker","_saved","acceptSelectedSuggestions","elementStart","author","getRanges","PENDING_ACTION_SUGGESTION","end","change","markInsertion","containsRange","trackChanges","change:_saved","getLastMatchingPosition","highest","isDocumentOperation","addSuggestionData","deletion:accept","containerElement","editing","_suggestionState","deleteContent","name","discardSuggestion","suggestionChanged","deletion:join","getMultiRangeId","error-saving-suggestion-data-suggestion-discarded","upcast","add","markMultiRangeBlockFormat","low","adapter","ck-suggestion-marker-","splitPosition","execute","filter","removeMarker:suggestion:formatBlock","registerCustomCallback","_editor","_removeSuggestion","deletion","trackChanges.trackFormatChanges","splice","formatInline:discard"];var ka,Aa;ka=ya,Aa=273,function(t){for(;--t;)ka.push(ka.shift())}(++Aa);const va=function(t,e){return ya[t-=0]};class Ra extends t.Plugin{static get[va("0x58")](){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Vs,Qs,er,pa,xr,ur,br,yr,Sr,Or,jr,Vr,$r,ti,ri,li,fi,_i,Ri,Mi,Di,Hi,qi,Yi,rx,lx,hx,Tx,vx,Mx,Dx,ua,Vx,Jx,Ca,na,xa]}static get pluginName(){return va("0x2f")}constructor(t){function e(t){return t[va("0x45")]((t=>String[va("0x93")](t)))[va("0xdd")]("")}super(t),this[va("0xb2")](va("0xc9"),[]),this.on(va("0xe6"),((e,n,o,s)=>{this[va("0x8d")].change((()=>{for(const e of[...s,...o])this._model[va("0x65")][va("0x39")](e)&&t[va("0x11")][va("0x6c")](e)}))})),this._descriptionFactory=new ss(this.editor[va("0x85")][va("0x34")],this[va("0xb9")][va("0x3e")]),this[va("0x86")]=null,this[va("0xbe")]=new Ia(this[va("0xb9")]),this._suggestions=new Map,this[va("0xc2")]=t[va("0xa1")].get(va("0xdc")),this._enabledCommands=new Set,this[va("0x8d")]=this.editor.model,this._suggestionState=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t.config[va("0x50")](va("0x28"),!0),this[va("0xc4")]=t.config[va("0xaf")]("trackChanges.trackFormatChanges"),this[va("0xa3")]=new u(t,this._enabledCommands),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,48,56,48,54])}[va("0x94")](){const t=this[va("0xb9")];t[va("0x47")][va("0x87")](va("0x104")).markerToHighlight({model:va("0xbf"),view:t=>{const{id:e,type:n}=this[va("0xbd")](t.markerName),o=[va("0x9b"),va("0x1f")+n];let s=3e3;return this[va("0xc9")].includes(t[va("0xe4")])&&(o.push("ck-suggestion-marker--active"),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[va("0x87")](va("0xbc")).add((e=>{e.on(va("0x8e"),((e,n,o)=>{if(!o[va("0xd6")][va("0x2d")])return;const s=n[va("0xd7")];if(!s)return;const r=o[va("0x7e")].toViewElement(s);t.model[va("0x34")][va("0xf4")](s)&&r&&!r[va("0x84")](va("0x5a"))&&r.is(va("0x10"))&&(0,x.toWidget)(r,o[va("0x79")])}),{priority:va("0x2b")})})),t[va("0x47")].for("dataDowncast").markerToHighlight({model:va("0xbf"),view:(t,e)=>{if(!e[va("0xd6")][va("0x2d")])return null;const{type:n}=this[va("0xbd")](t[va("0xe4")]);return{classes:[va("0x9b"),va("0x1f")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[va("0xd7")].is("selection"))return void s.consumable[va("0x38")](o[va("0xd7")],n[va("0x14")]);const r=s[va("0x7e")].toViewElement(o[va("0xd7")]);if(!o.item.is(va("0x99"))||!t.model[va("0x34")].isBlock(o[va("0xd7")])||r.getCustomProperty(va("0xb4")))return;const{id:i}=this._splitMarkerName(o[va("0xe4")]);s.writer[va("0x8f")]([va("0x9b"),va("0x101")],r),s[va("0x79")].setAttribute(va("0x31"),i,r),s[va("0x7e")][va("0xb3")](r,o[va("0xe4")]),e&&(this[va("0xc9")][va("0x12c")](o[va("0xe4")])?s[va("0x79")][va("0x8f")](va("0x35"),r):s[va("0x79")].removeClass("ck-suggestion-marker--active",r));for(const e of t[va("0x85")][va("0xcc")](o[va("0xd7")])[va("0x136")]())s[va("0x57")][va("0x38")](e,n[va("0x14")]);s[va("0x57")][va("0x38")](o[va("0xd7")],n.name)};t[va("0x47")].for(va("0xbc")).add((t=>{t.on(va("0x90"),((t,e,o)=>{o[va("0xd6")][va("0x2d")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:va("0xc")})})),t[va("0x47")][va("0x87")]("dataDowncast").markerToData({model:va("0xbf"),view:(t,e)=>e[va("0xd6")][va("0x2d")]?null:{group:va("0xbf"),name:t.substr(va("0xbf")[va("0x72")]+1)}}),t[va("0x47")][va("0x87")](va("0x1a"))[va("0x37")]({view:{name:va("0xbf"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[va("0x60")](va("0x75"))+":"+t[va("0x60")]("id");return t[va("0x60")](va("0x124"))&&(n+=":"+t[va("0x60")](va("0x124"))),e.createElement(va("0x13a"),{"data-name":n})}}),t[va("0x47")][va("0x87")](va("0x1a"))[va("0xc8")]({view:va("0xbf")}),t[va("0x47")][va("0x87")]("editingDowncast")[va("0x1b")]((t=>{t.on(va("0x90"),n(),{priority:va("0x2b")})})),t[va("0x47")][va("0x87")](va("0x104"))[va("0x1b")]((t=>{t.on(va("0x23"),((t,e,n)=>{const o=n[va("0x7e")].markerNameToElements(e[va("0xe4")]);if(o)for(const t of o)t[va("0x84")](va("0xb4"))||(n[va("0x79")][va("0x52")]([va("0x9b"),va("0x101"),va("0x35")],t),n[va("0x79")].removeAttribute(va("0x31"),t),n[va("0x7e")][va("0xcb")](t,e[va("0xe4")]))}),{priority:"high"})})),t[va("0x85")][va("0xb1")][va("0xe5")]((e=>{let n=!1;const o=Array[va("0x11f")](t.model[va("0xb1")][va("0x134")][va("0x97")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[va("0xbd")](x);if("suggestion"!==o)continue;const d=this[va("0x83")][va("0xaf")](l);if(null!=a.newRange)if(va("0xad")==c&&(n=n||Na(a[va("0xa2")],x,e,t.model[va("0x34")])),a[va("0xa2")].isCollapsed||"$graveyard"==a[va("0xa2")][va("0xfd")][va("0xca")]||"formatBlock"==c&&!wa(a[va("0xa2")])||va("0x27")==c&&(La(i=a[va("0xa2")])||(r=i)[va("0x2c")].parent==r[va("0x5")][va("0x10b")]&&r[va("0x2c")][va("0x12d")]))e.removeMarker(x),n=!0;else{if(!d||!d.isInContent)continue;s[va("0x1b")](d)}}var r,i;return s[va("0x51")]>0&&(n=!!this[va("0x5b")](s)||n),n})),t[va("0x85")][va("0xb1")][va("0xe5")]((e=>{let n=!1;for(const o of t[va("0x85")][va("0xb1")][va("0x134")][va("0x73")]()){if("insert"!=o[va("0x109")])continue;const s=o[va("0xc1")].getShiftedBy(o.length);if(s[va("0x12d")])for(const r of this[va("0x83")][va("0x30")]()){if(r[va("0x36")]||!r[va("0x7d")])continue;if(va("0x66")!=r.type)continue;const i=r.getFirstRange();if(i[va("0x2c")][va("0x125")]!=i[va("0x5")][va("0x125")]&&i.end[va("0x7f")](o[va("0xc1")])){const o=t[va("0x85")][va("0x107")](i[va("0x2c")],s);e.updateMarker(r.getFirstMarker(),{range:o}),n=!0}}}return n})),t.model[va("0x65")].on(va("0x113"),((t,e,n)=>{if(null==n){const{id:t}=this[va("0xbd")](e[va("0x14")]),n=this[va("0x83")][va("0xaf")](t);n&&n[va("0x11d")](e.name)}})),t[va("0x85")][va("0xb1")].on(va("0x4d"),(()=>{const e=Array[va("0x11f")](t.model[va("0xb1")][va("0x134")].getChangedMarkers())[va("0x22")]((t=>"suggestion"===this._splitMarkerName(t[va("0x14")])[va("0xff")]));if(0===e[va("0x72")])return;e[va("0x105")](((t,e)=>{const n=t[va("0x9c")][va("0x69")],o=e[va("0x9c")][va("0x69")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[va("0x2c")].isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[va("0xbd")](t);if(null===s[va("0x69")]){const e=this[va("0x10d")](t);o[va("0x1b")](e)}else{const t=this[va("0x83")].get(e);null!==s.newRange||t[va("0x7d")]?(n[va("0x1b")](t.head),o[va("0x1b")](t)):this._removeSuggestion(t)}}o.size>0&&this[va("0x77")](o);for(const t of n)this[va("0xdb")](va("0x16"),t)})),t[va("0x85")].on("applyOperation",((e,n)=>{const o=n[0];if(!this._suggestions[va("0x51")])return;if(!o[va("0xd")])return;if(o[va("0x139")][va("0x55")]||!o.batch.isLocal)return;let s,r;switch(o[va("0x109")]){case va("0xf2"):s=t.model[va("0x122")](o[va("0xc1")]),r=s[va("0x5f")](o[va("0x115")]);break;case va("0x81"):s=t[va("0x85")].createPositionAt(o[va("0x20")]),r=t.model[va("0x122")](o[va("0x61")]);break;case va("0xf6"):s=t[va("0x85")].createPositionAt(o.targetPosition),r=s[va("0x5f")](o[va("0x115")]);break;default:return}const i=t[va("0x85")][va("0x107")](s,r);t[va("0x85")][va("0x6")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t.isMultiRange)continue;if(va("0xad")==t[va("0x109")])continue;const n=t[va("0x9c")]&&t[va("0x9c")].multipleBlocks;(va("0x66")!=t[va("0x109")]||va("0x81")==o[va("0x109")]&&!n)&&(e[va("0x127")]||va("0x62")==t[va("0x109")]&&e.isOwn||t[va("0x44")]()[va("0x8")](i)&&this[va("0x106")](t,s,r))}}))}),{priority:va("0x92")}),t[va("0x85")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[va("0xa0")])return;if(this[va("0xe3")])return;if(!this[va("0xa3")][va("0xe7")])return;if(o[va("0x88")])return;const r=t.model.schema,{start:i,end:x}=o[va("0x44")](),a=i[va("0x5c")]&&r.isLimit(i[va("0x5c")])?null:r[va("0x80")](i,va("0xa4")),c=x[va("0x10b")]&&r[va("0x4b")](x[va("0x10b")])?null:r[va("0x80")](x,va("0x7a")),l=t[va("0x85")][va("0x107")](a?a[va("0x2c")]:i,c?c[va("0x5")]:x);t[va("0x85")][va("0x6")]((e=>{this.markDeletion(l);const n=t.model[va("0x34")][va("0x80")](l[va("0x2c")]);o.is(va("0x11e"))?e[va("0x12f")](n):o.setTo(n)})),e[va("0x6e")]()}),{priority:e.priorities[va("0xf5")]+10}),t.model.on("insertContent",((e,n)=>{const o=n[n.length-1];o&&o[va("0xa0")]||this._isForcedDefaultExecutionBlock||this.trackChangesCommand[va("0xe7")]&&(t[va("0x85")].change((()=>{let o=t[va("0x85")][va("0x8a")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[va("0x4e")]=o.clone();const s=o[va("0x5")].nodeBefore,r=t.model[va("0x34")];s&&r.isBlock(s)&&!r[va("0xf4")](s)&&(o=t.model.createRange(o[va("0x2c")],t[va("0x85")][va("0x122")](s,va("0x5")))),this[va("0x7")](o)})),e[va("0x6e")]())}),{priority:va("0x2b")}),this[va("0xb9")][va("0xc5")][va("0x1b")]("trackChanges",this.trackChangesCommand),this[va("0xfb")](va("0x9"));const o=new p(t,this[va("0x83")]);t.commands[va("0x1b")]("acceptSuggestion",o),this[va("0xfb")](va("0x12b"));const s=new C(t,this[va("0x83")]);t[va("0xc5")][va("0x1b")](va("0x15"),s),this[va("0xfb")](va("0x15")),t[va("0xc5")].add("acceptAllSuggestions",new F(t,o,this[va("0x83")])),this[va("0xfb")](va("0xb5")),t[va("0xc5")][va("0x1b")]("discardAllSuggestions",new F(t,s,this[va("0x83")])),this[va("0xfb")](va("0xe9")),t[va("0xc5")].add("acceptSelectedSuggestions",new U(t,o,this[va("0x83")])),this[va("0xfb")](va("0x0")),t.commands[va("0x1b")](va("0x131"),new U(t,s,this[va("0x83")])),this[va("0xfb")](va("0x131"));const r=t[va("0xa1")][va("0xaf")](va("0xdc"));this[va("0x121")](r,va("0xed"),((t,{threadId:e})=>{const n=this._suggestions[va("0xaf")](e);n&&n[va("0x43")]&&1===n.commentThread[va("0x72")]&&this[va("0xb6")](e,{hasComments:!0})}),{priority:va("0x1d")}),this[va("0x121")](r,va("0x3a"),((t,{threadId:e})=>{const n=this[va("0x83")][va("0xaf")](e);n&&n[va("0x43")]&&!n[va("0x43")][va("0x72")]&&this[va("0xb6")](e,{hasComments:!1})}),{priority:va("0x1d")})}set[va("0x1e")](t){if(this[va("0x86")])throw new e.CKEditorError(va("0x41"),this);this[va("0x86")]=t}get[va("0x1e")](){return this[va("0x86")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[va("0x30")]())t&&!e.isInContent||n.push(e);return e?n[va("0x45")]((t=>t.toJSON())):n}[va("0x126")](t){const n=this._suggestions[va("0xaf")](t);if(!n)throw new e.CKEditorError(va("0xdf"),this);return n}[va("0x12e")](t){return this[va("0x83")][va("0x39")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[va("0x109")][va("0x81")](":"),i=this[va("0x83")].get(n)||this[va("0xd5")](s,r,n,e,o);if(this[va("0x123")](i),this[va("0x103")](i,s,r||null,e),i.createdAt=t.createdAt,o&&o[va("0x132")]){const t=o[va("0x132")],e=this[va("0x40")](t[va("0x6f")]);i.authoredAt=t[va("0x9a")],i.author=e,i[va("0x110")]=!0}else i[va("0xfe")]=t.createdAt;switch(t[va("0x9c")]&&(i[va("0x9c")]=t[va("0x9c")]),t[va("0xb0")]&&(i[va("0xb0")]=t[va("0xb0")]),this._adapter&&this._adapter.addSuggestion||(i._saved=!0),this[va("0x12")][va("0xaf")](i)){case va("0xe2"):this[va("0x12")].set(i,va("0x63"));break;case"markerReady":i.isInContent?(this[va("0x12")][va("0xb2")](i,"ready"),this[va("0xdb")](va("0x111"),i)):this[va("0x12")].set(i,va("0xcd"))}return i}[va("0x12b")](t){this[va("0xa0")]((()=>{this[va("0xb9")].model[va("0x6")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[va("0x8b")]()}))}))}discardSuggestion(t){this[va("0xa0")]((()=>{this[va("0xb9")][va("0x85")][va("0x6")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[va("0xeb")]()}))}))}[va("0xfb")](t,n){const o=this[va("0xb9")][va("0xc5")][va("0xaf")](t);if(!o)throw new e.CKEditorError(va("0x7c"),this,{commandName:t});this._enabledCommands[va("0x1b")](o),n&&o.on(va("0x21"),((t,e)=>{this.trackChangesCommand.value&&(this[va("0xe3")]||e[va("0x72")]>0&&e[e[va("0x72")]-1]&&e[e.length-1].forceDefaultExecution||(n(((...t)=>o[va("0x21")](...t,{forceDefaultExecution:!0})),...e),t[va("0x6e")]()))}),{priority:"high"})}[va("0xa0")](t){let n,o;const s=this[va("0xe3")];this[va("0xe3")]=!0;try{n=t()}catch(t){o=t}return s||(this[va("0xe3")]=!1),o&&e.CKEditorError[va("0x64")](o,this),n}markInsertion(t,n=null,o={}){if(t[va("0x88")])return null;const s=this[va("0xb9")][va("0xa1")].get("Users").me;for(const{suggestion:e,meta:o}of this[va("0x9f")](t,va("0x62")))if(o[va("0xe0")]){if(!o[va("0x114")])return e;if(n==e.subType){const n=e.getFirstRange();return n.start[va("0x7f")](t.end)?this[va("0x11c")](e,this[va("0x8d")][va("0x107")](t.start,n[va("0x5")])):this[va("0x11c")](e,this._model[va("0x107")](n[va("0x2c")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?va("0x32")+n:va("0x62"),a=this[va("0x89")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[va("0xf1")](x,r,i,t),a}markMultiRangeInsertion(t,n="multi",o={}){const s=this[va("0xb9")][va("0xa1")][va("0xaf")](va("0x3c")).me,r=this[va("0xbe")].getSuggestionCallback(va("0x62"),n,"join");for(const e of this[va("0xd2")]())if(e[va("0x2")].id==s.id&&va("0x62")==e[va("0x109")]&&e.subType==n&&(r(e[va("0x3")](),t)||r(t,e[va("0x3")]()))){for(const n of t)e[va("0xa8")](n);return e}for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,va("0x62"))){if(!o[va("0xe0")])continue;let e=!0;for(const o of n[va("0x3")]())for(const n of t)if(!o[va("0x8")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a="insertion:"+n,c=this[va("0x89")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[va("0xf1")](a,i,x,e,Zo[va("0x18")]());return c}[va("0x3b")](t,n,o=null,s={}){if(o=o||Ma(n),t[va("0x88")])return null;if(!1===this[va("0xc4")]){const e=this._suggestionFactory[va("0xa9")](va("0xad"),o,va("0x8b"));return this[va("0xa0")]((()=>e([t],n,s))),null}const r=this[va("0xb9")][va("0xa1")][va("0xaf")]("Users").me,i=[];for(const{suggestion:e,meta:n}of this._findSuggestions(t,va("0x62")))n[va("0xe0")]&&!n[va("0x5d")]&&i.push(...e[va("0x3")]());const x=function(t,e){const n=[];for(const o of e){const e=t[va("0x6b")](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.length;){const o=n[e].getDifference(t);n[va("0x29")](e,1,...o),e+=o[va("0x72")]}}return n}(t,i);x[va("0x72")]&&this._model[va("0x6")]((()=>{for(const t of x){const e=this[va("0xbe")].getSuggestionCallback(va("0xad"),o,va("0x8b"));this[va("0xa0")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t.end;for(const{suggestion:e,meta:n}of this[va("0x9f")](t,va("0xad"))){if(!n[va("0xe0")])continue;if(e[va("0x74")]!=o)continue;const s=e.getFirstRange();if(s.containsRange(t,!0))return null;x=x.isBefore(s.start)?x:s[va("0x2c")],a=a[va("0x11b")](s[va("0x5")])?a:s[va("0x5")],i?s[va("0x2c")][va("0xc7")](i.getFirstRange()[va("0x2c")])?(i[va("0xae")](),i=e):e.removeMarkers():i=e}const c=this[va("0x8d")].createRange(x,a);if(i)this[va("0x11c")](i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:va("0xba")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker(va("0xba")+o,t,i,c)}}return null}[va("0x2e")](t,n,o=[],s=null,r={}){n[va("0x33")]||(n[va("0x33")]=n[va("0x120")]),n.multipleBlocks=t.is(va("0xab")),s=s||Ma(n);const i=o[va("0x45")]((t=>Oa(t,this[va("0x8d")]))),x=t.is("range")?t:Oa(t,this[va("0x8d")]);if(!1===this._trackFormatChanges){const t=this[va("0xbe")].getSuggestionCallback(va("0x66"),s,va("0x8b"));return this[va("0xa0")]((()=>t([x],n,r))),null}i[va("0xd4")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a){const t=this._suggestionFactory[va("0xa9")](va("0x66"),s,va("0x8b"));return this[va("0xa0")]((()=>t([x],n,r))),null}let c=null,l=x[va("0x2c")],d=x[va("0x5")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,va("0x66"))){if(!e[va("0xe0")]||e[va("0x114")]||e.containsRangeInObject||e.isInsideObject)continue;if(t[va("0x9c")][va("0x33")]!=n[va("0x33")])continue;const o=t[va("0x44")]();if(t[va("0x74")]==s){if(o[va("0x8")](x,!0))return null;l=l.isBefore(o[va("0x2c")])?l:o.start,d=d.isAfter(o[va("0x5")])?d:o.end,c?o[va("0x2c")][va("0xc7")](c[va("0x44")]()[va("0x2c")])?(c[va("0xae")](),c=t):t.removeMarkers():c=t}else{const e=x[va("0x6b")](o);this[va("0x70")](t,e)}}const u=this.editor[va("0xa1")].get(va("0x3c")).me,g=(0,e.uid)(),m=u.id;if(c)return this[va("0x11c")](c,this[va("0x8d")][va("0x107")](l,d)),c;{const t=this[va("0x89")]({id:g,type:va("0x3f")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[va("0xf1")]("formatBlock:"+s,g,m,this[va("0x8d")].createRange(l,d)),t}}[va("0x1c")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[va("0x33")]=n[va("0x120")]);const i=t[0];n[va("0xf7")]=i.is(va("0xab")),s=s||Ma(n);const x=o[va("0x45")]((t=>Oa(t,this[va("0x8d")]))),a=i.is(va("0xab"))?t:t.map((t=>Oa(t,this[va("0x8d")])));if(!1===this[va("0xc4")]){const t=this[va("0xbe")].getSuggestionCallback(va("0x66"),s,va("0x8b"));return this[va("0xa0")]((()=>t(a,n,r))),null}x[va("0xd4")](...a);let c=!0;for(const t of x)if(!this[va("0x78")](t)){c=!1;break}if(c){const t=this[va("0xbe")][va("0xa9")](va("0x66"),s,"accept");return this[va("0xa0")]((()=>t(a,n,r))),null}const l=this.editor[va("0xa1")][va("0xaf")]("Users").me;for(const t of this[va("0xd2")]()){if(t.author.id!=l.id)continue;if(va("0x66")!=t[va("0x109")]||t[va("0x9c")][va("0x33")]!=n[va("0x33")])continue;const e=t[va("0x74")]==s;for(let n=0;n<a[va("0x72")];n++){const o=a[n];for(const s of t.getMarkers()){const r=s[va("0xa5")]();if(o[va("0x7f")](r)){e?(a.splice(n,1),n--):t[va("0xb8")](s[va("0x14")]);break}}}}if(0==a[va("0x72")])return null;const d=this[va("0xbe")][va("0xa9")]("formatBlock",s,va("0xdd"));for(const t of this[va("0xd2")]())if(t[va("0x2")].id==l.id&&"formatBlock"==t.type&&t.data[va("0x33")]==n.formatGroupId&&t[va("0x74")]==s&&(d(t[va("0x3")](),a)||d(a,t[va("0x3")]()))){for(const e of a)t[va("0xa8")](e);return t}const u=(0,e.uid)(),g=l.id,m=va("0x3f")+s,f=this[va("0x89")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[va("0xf1")](m,u,g,t,Zo[va("0x18")]());return f}[va("0x56")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[va("0xb9")][va("0xa1")][va("0xaf")](va("0x3c")).me,r=new i.LiveRange(t[va("0x2c")],t[va("0x5")]);for(const{suggestion:t,meta:e}of this[va("0x9f")](r,va("0x62")))if(e.isOwn&&!e[va("0x114")])if(t[va("0x36")]){const e=t[va("0x3")]()[va("0x22")]((t=>va("0x117")!=t[va("0xfd")][va("0xca")]));if(e.every((t=>r.containsRange(t,!0)))&&t.discard(),e.some((t=>t[va("0x8")](r,!0)))){const t=this[va("0xbe")].getSuggestionCallback("deletion",n,va("0x8b"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[va("0x6b")](t[va("0x44")]());t[va("0x11a")]([e],null,o)}if(r.detach(),r[va("0x88")]||va("0x117")==r[va("0xfd")][va("0xca")])return null;let x=null,a=r[va("0x2c")],c=r[va("0x5")];for(const{suggestion:t,meta:e}of this[va("0x9f")](r,va("0x27")))if(e[va("0xe0")])if(t[va("0x36")]){let e=!0;for(const n of t[va("0x3")]()){if(n.containsRange(r,!0))return t;r[va("0x8")](n)||(e=!1)}e&&t.discard()}else{const e=t[va("0x44")]();if(e[va("0x8")](r,!0))return t;a=a[va("0xc7")](e.start)?a:e.start,c=c[va("0x11b")](e[va("0x5")])?c:e.end,x?e.start[va("0xc7")](x[va("0x44")]().start)?(x[va("0xae")](),x=t):t[va("0xae")]():x=t}if(x)return this[va("0x11c")](x,this[va("0x8d")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this[va("0x8d")][va("0x107")](a,c),i=s.id,x=n?"deletion:"+n:"deletion",l=this[va("0x89")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[va("0xf1")](x,t,i,r),l}}[va("0x130")](t,n=va("0x138"),o={}){const s=this.editor.plugins.get(va("0x3c")).me,r=t.map((t=>new i.LiveRange(t[va("0x2c")],t[va("0x5")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[va("0x9f")](t,"insertion"))n[va("0xe0")]&&!n.isNextTo&&x[va("0x1b")](e);for(const e of x)if(e[va("0x36")]){const s=e[va("0x3")]();if((!e.attributes||!e.attributes[va("0x8c")])&&s[va("0x129")]((t=>r.some((e=>e[va("0x8")](t,!0)))))&&e[va("0xeb")](),r.every((t=>s[va("0x10f")]((e=>e[va("0x8")](t,!0)))))){const e=this[va("0xbe")][va("0xa9")](va("0x27"),n,va("0x8b"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[va("0x10f")]((e=>e[va("0x8")](t,!0)))&&e[va("0xeb")](),r.every((e=>t[va("0x8")](e,!0)))){const t=this[va("0xbe")].getSuggestionCallback(va("0x27"),n,"accept");return this[va("0xa0")]((()=>t(r,null,o))),null}}const a=this[va("0xbe")][va("0xa9")](va("0x27"),n,"join");let c=null;for(const t of this[va("0xd2")]())if(t[va("0x2")].id==s.id&&t[va("0x7d")]&&va("0x27")==t[va("0x109")]&&t[va("0x74")]==n&&(a(t[va("0x3")](),r)||a(r,t[va("0x3")]())))if(c){if(t[va("0x43")]&&t[va("0x43")][va("0x72")])continue;for(const e of t[va("0x3")]())c.isIntersectingWithRange(e)||c[va("0xa8")](e);t.removeMarkers()}else{c=t;for(const e of r)t[va("0x67")](e)||t[va("0xa8")](e)}if(c)return c;x[va("0x10e")]();for(const t of r)for(const{suggestion:e,meta:n}of this[va("0x9f")](t,va("0x27")))n[va("0xe0")]&&x.add(e);for(const t of x){const e=t[va("0x3")]();if((!o||!o.skipNestingCheck)&&r[va("0x129")]((t=>e[va("0x10f")]((e=>e[va("0x8")](t,!0))))))return t;(!t.attributes||!t.attributes[va("0x8c")])&&e[va("0x129")]((t=>r[va("0x10f")]((e=>e.containsRange(t,!0)))))&&t[va("0xeb")]()}const l=(0,e.uid)(),d=s.id,u=va("0x118")+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[va("0x6a")](),t[va("0x88")]||va("0x117")==t.root[va("0xca")]||this[va("0xf1")](u,l,d,t,Zo[va("0x18")]());return g}[va("0x11c")](t,e){const n=t[va("0x100")]();this._model[va("0x6")]((t=>{t[va("0x9e")](n,{range:e})}))}[va("0x123")](t){const e=t.id,n=this[va("0xb9")][va("0xd9")][va("0xaf")]("collaboration.channelId");this[va("0xc2")][va("0x76")](e)||this[va("0xc2")][va("0x116")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository.getCommentThread(e);o[va("0x82")](va("0x10c")),o[va("0x10c")]=!1,t[va("0x43")]=o}[va("0x103")](t,n,o,s){if(t[va("0x109")]!=n||t[va("0x74")]!=o||t[va("0x42")].id!=s)throw this[va("0xb9")][va("0x95")](va("0x71")),new e.CKEditorError(va("0x71"),this)}[va("0x70")](t,n){const o=t[va("0x44")]();if(n.isEqual(o))t[va("0xae")]();else if(o[va("0x8")](n)){const s=this._model[va("0x122")](n[va("0x2c")][va("0x10b")],va("0x5"));this[va("0x11c")](t,this[va("0x8d")][va("0x107")](o[va("0x2c")],s));const r=(0,e.uid)(),i=t[va("0x42")].id,x=t[va("0x109")]+":"+t[va("0x74")];this[va("0x89")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[va("0x9c")],attributes:t[va("0xb0")]});const a=this[va("0x8d")][va("0x122")](n[va("0x5")].parent,"after"),c=this[va("0x8d")][va("0x107")](a,o[va("0x5")]);this[va("0xf1")](x,r,i,c)}else if(o[va("0xf0")](n[va("0x2c")])){const e=this._model.createPositionAt(n[va("0x2c")][va("0x10b")],va("0x5"));this._setSuggestionRange(t,this._model[va("0x107")](o[va("0x2c")],e))}else{const e=this[va("0x8d")][va("0x122")](n[va("0x5")][va("0x125")],va("0xd8"));this[va("0x11c")](t,this[va("0x8d")][va("0x107")](e,o.end))}}[va("0x78")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,va("0x62"))){if(!n.isOwn)continue;const o=e[va("0x3")]();for(const e of o)if(!t[va("0xc6")](e)[va("0x72")])return!0}return!1}[va("0x48")](t){const n=this.editor[va("0xa1")].get(va("0x3c"))[va("0x4c")](t);if(!n)throw new e.CKEditorError(va("0xd3"),this);return n}_getExternalAuthor(t){const e=this[va("0xb9")][va("0xa1")][va("0xaf")](va("0x3c")),n=(0,r.hashObject)(va("0x10a")+t);return e[va("0x4c")](n)||e[va("0xee")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[va("0x48")](o),i=this[va("0xbe")].buildSuggestion(t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this[va("0x121")](i,va("0x8b"),(()=>{this[va("0xb6")](n,{state:va("0xcf")})}),{priority:va("0x2b")}),this[va("0x121")](i,va("0xeb"),(()=>{this[va("0xb6")](n,{state:va("0x137")})}),{priority:va("0x2b")}),this._suggestions[va("0xb2")](n,i),this[va("0x12")][va("0xb2")](i,"notReady"),i}[va("0xbd")](t){const e=t[va("0x81")](":");return{group:e[0],type:e[1],subType:e[va("0x72")]>=5?e[2]:null,id:e[va("0x72")]<5?e[2]:e[3],authorId:e[va("0x72")]<5?e[3]:e[4],markerCount:6==e[va("0x72")]?e[5]:null}}[va("0x106")](t,n,o){const s=t.getFirstRange(),r=s[va("0x2c")],i=s.end;this[va("0x11c")](t,this[va("0x8d")][va("0x107")](r,n));const x=(0,e.uid)(),a=t[va("0x42")].id,c=t[va("0x109")]+(t[va("0x74")]?":"+t[va("0x74")]:"");this[va("0x89")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[va("0xb0")],data:t[va("0x9c")]}),"formatBlock"==t.type&&(o=this[va("0x8d")].createPositionBefore(o[va("0x125")])),this._addSuggestionMarker(c,x,a,this[va("0x8d")][va("0x107")](o,i))}[va("0x9f")](t,e=null){const n=[],o=this._model[va("0x34")],s=this.editor[va("0xa1")].get(va("0x3c")).me;for(const r of this[va("0xd2")]())if(r[va("0x7d")]&&(!e||r[va("0x109")]==e))for(const e of r[va("0x3")]()){const i=t.start[va("0x7f")](e[va("0x5")])||t.end[va("0x7f")](e[va("0x2c")]);if(i||t[va("0x6b")](e)){const x=t[va("0x8")](e)&&Sa(o,e[va("0x2c")],t),a=e.containsRange(t)&&Sa(o,t.start,e);n[va("0xd4")]({suggestion:r,meta:{isOwn:s==r[va("0x2")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[va("0xf1")](t,e,n,o,s){this._model.change((r=>{let i=va("0x68")+t+":"+e+":"+n;s&&(i=i+":"+s),r[va("0x59")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[va("0x26")](t){const e=t[va("0x102")],n=t[va("0xc0")];t.previous=null,null!=e&&(e.next=null),t[va("0xc0")]=null,null!=n&&(n[va("0x102")]=null),va("0xe8")==this[va("0x12")][va("0xaf")](t)&&(this._suggestionState[va("0xb2")](t,va("0xcd")),this[va("0xdb")]("suggestionUnloaded",t,e,n))}[va("0x89")](t){const n=t.id,o=this[va("0xe")](t);if(this[va("0x86")]&&this[va("0x86")][va("0xfa")]){const s=this.editor[va("0xa1")].get(va("0x112")),r=o[va("0x49")],i=o[va("0x74")]?o[va("0x109")]+":"+o[va("0x74")]:o[va("0x109")],x=this[va("0xb9")][va("0x3e")],a=s[va("0x1b")](Yo(x,va("0x4"))),c={id:n,type:i,hasComments:r,data:t[va("0x9c")]||null,originalSuggestionId:t[va("0x91")]||null,attributes:o[va("0xb0")]};this[va("0x86")].addSuggestion(c).then((t=>{o[va("0x13b")]=!0,s[va("0xc3")](a),t&&t[va("0x9a")]&&(this[va("0x83")].get(n)[va("0x9a")]=t[va("0x9a")])}))[va("0x119")]((t=>{throw(0,e.logWarning)(va("0x19")),this[va("0xb9")].model[va("0x96")]({isUndoable:!1},(()=>{o[va("0xeb")]()})),o[va("0xec")](),this[va("0x83")][va("0xf3")](o.id),this[va("0x12")][va("0xf3")](o),t}))}return o}[va("0xb6")](t,e){const n=this[va("0xb9")].plugins[va("0xaf")]("PendingActions"),o=this[va("0x126")](t);if(this[va("0x86")]&&this[va("0x86")][va("0xd1")])if(o[va("0x13b")]){const o=n[va("0x1b")](Yo(this[va("0xb9")].locale,"PENDING_ACTION_SUGGESTION"));this[va("0x86")][va("0xd1")](t,e).then((()=>{n.remove(o)}))}else o.on(va("0xa"),(()=>{this[va("0xb6")](t,e)}))}[va("0x3d")](t){if(!this[va("0x86")]||!this[va("0x86")][va("0x126")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[va("0x86")][va("0x126")](t)}[va("0x10d")](t){const{id:e,type:n,subType:o,authorId:s}=this[va("0xbd")](t),r=this[va("0x83")][va("0xaf")](e)||this._createSuggestion(n,o,e,s,{});switch(this[va("0x103")](r,n,o,s),this[va("0x12")][va("0xaf")](r)){case va("0xe2"):this[va("0x3d")](e)[va("0x4a")]((t=>{let n=Promise[va("0x9d")]();t[va("0x49")]&&(n=this._commentsRepository[va("0xfc")]({channelId:this.editor[va("0xd9")][va("0xaf")](va("0xa7")),threadId:e})),n[va("0x4a")]((()=>{this.addSuggestionData(t)[va("0x13b")]=!0}))})),this[va("0x12")].set(r,va("0xe1"));break;case"removed":this._updateSuggestionData(e,{state:va("0x53")});case va("0x63"):this[va("0x12")][va("0xb2")](r,"ready"),this[va("0xdb")](va("0x111"),r);break;case va("0xe8"):this[va("0xdb")]("suggestionChanged",r)}return r[va("0x11d")](t),r}[va("0x77")](t){const e=Array.from(t).filter((t=>!t.isMultiRange)),n=this.getSuggestions({skipNotAttached:!0})[va("0x22")]((t=>!t.isMultiRange)),o=n[va("0x22")]((e=>!t.has(e))),s=new Map(n[va("0x45")]((t=>[t,this[va("0xbe")][va("0xa9")](t[va("0x109")],t[va("0x74")],va("0xa6"))]))),r=new Map(n[va("0x45")]((t=>[t,t[va("0x44")]()]))),i=new Set,x=new Set;for(let t=0;t<e[va("0x72")];t++)a(e[t],e,t+1);for(let t=0;t<e.length;t++)a(e[t],o,0);for(let t=0;t<e[va("0x72")];t++){const n=e[t];!x.has(n)&&n[va("0x102")]&&(n[va("0x102")][va("0xc0")]===n&&(n[va("0x102")][va("0xc0")]=null),n[va("0x102")]=null),!i[va("0x39")](n)&&n[va("0xc0")]&&(n[va("0xc0")][va("0x102")]===n&&(n[va("0xc0")][va("0x102")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e[va("0x72")];o++){const n=c(t,e[o]);n&&(n[0][va("0xc0")]=n[1],n[1][va("0x102")]=n[0],i[va("0x1b")](n[0]),x[va("0x1b")](n[1]))}}function c(t,e){if(t[va("0x2")].id!==e.author.id)return null;const n=s[va("0xaf")](t)(t,e,r[va("0xaf")](t),r[va("0xaf")](e));return n&&s[va("0xaf")](e)(t,e,r[va("0xaf")](t),r.get(e))?n[1][va("0x43")]&&n[1].commentThread[va("0x72")]?null:n:null}}[va("0x5b")](t){const e=Array[va("0x11f")](t),n=this[va("0xd2")]({skipNotAttached:!0}),o=n[va("0x22")]((e=>!t[va("0x39")](e))),s=new Map(e.map((t=>[t,this[va("0xbe")][va("0xa9")](t[va("0x109")],t[va("0x74")],va("0xdd"))]))),r=new Map(n[va("0x45")]((t=>[t,t[va("0x3")]()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[va("0x72")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[va("0x109")]!==e[va("0x109")]||o.author.id!==e[va("0x2")].id||o[va("0x74")]!==e[va("0x74")])continue;const x=s[va("0xaf")](e),a=r.get(e),c=r[va("0xaf")](o),l=e[va("0x43")]&&e.commentThread.length,d=o[va("0x43")]&&o.commentThread[va("0x72")];if(!l&&x(c,a))return t[va("0x108")](o,e),r[va("0xf3")](e),!0;if(!d&&x(a,c))return t[va("0x108")](e,o),r.delete(o),!0}return!1}}[va("0x108")](t,e){if(t.isMultiRange)for(const n of e[va("0x3")]())t.addRange(n);else{const n=e[va("0x44")]()[va("0x5")];this[va("0x11c")](t,this[va("0x8d")][va("0x107")](t[va("0x44")]()[va("0x2c")],n))}e[va("0xae")]()}}class Ia{constructor(t){this[va("0x25")]=t,this._model=t[va("0x85")],this[va("0xda")]=new Map,this[va("0xef")]=new Map,this[va("0xea")]()}[va("0xd0")](t,e,n,o,s,r){return new Zo(this[va("0x8d")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[va("0xa9")](t,e,va("0x8b"))(...n),onDiscard:(...n)=>this[va("0xa9")](t,e,va("0xeb"))(...n)})}[va("0x24")](t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[va("0xb2")](s,o)}[va("0xa9")](t,e,n){const o=t+":"+e+":"+n;return this[va("0xda")][va("0xaf")](o)||this[va("0xef")][va("0xaf")](t+":"+n)}[va("0xea")](){const t=()=>{},e=t=>{t[va("0x105")](((t,e)=>t[va("0x2c")][va("0xc7")](e[va("0x2c")])?1:-1)),this[va("0x8d")][va("0x6")]((e=>{for(const n of t){let t;t=n[va("0x5")][va("0x12d")]&&n[va("0x5")][va("0x125")]==n[va("0x2c")][va("0x5c")]?e[va("0x7b")](n.start[va("0x5c")],"on"):e.createSelection(n),this[va("0x8d")][va("0x13")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[va("0x8d")][va("0x6")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[va("0x45")]((t=>(La(t)&&(t=this[va("0x8d")][va("0x107")](t[va("0x5")])),t)))[va("0x22")]((t=>va("0x117")!==t.root[va("0xca")]));if(r[va("0x72")]<1)return;const x=Array[va("0x11f")](this._model[va("0xb1")][va("0xf9")][va("0x3")]())[va("0x45")]((t=>i.LiveRange[va("0x12a")](t)));n.setSelection(r);for(const t of this[va("0x25")][va("0xc5")].commands())t[va("0x133")]();s[va("0xd4")]({forceDefaultExecution:!0}),this[va("0x25")][va("0x21")](o,...s);const a=x[va("0x22")]((t=>va("0x117")!=t[va("0xfd")].rootName));a[va("0x72")]>0&&n[va("0x12f")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[va("0x72")]&&1==e.length&&t[0].end[va("0x7f")](e[0].start),s=(t,e,n,o)=>Fa(t,e,n,o,this._model)?[t,e]:Fa(e,t,o,n,this[va("0x8d")])?[e,t]:null;this._defaultCallbacks[va("0xb2")](va("0x5e"),t),this[va("0xef")][va("0xb2")]("insertion:discard",e),this._defaultCallbacks.set(va("0xb7"),o),this._defaultCallbacks[va("0xb2")](va("0x4f"),s),this[va("0xef")][va("0xb2")](va("0xf"),e),this._defaultCallbacks[va("0xb2")]("deletion:discard",t),this._defaultCallbacks.set(va("0x17"),o),this[va("0xef")].set("deletion:chain",s),this[va("0xef")][va("0xb2")](va("0x135"),n),this._defaultCallbacks[va("0xb2")](va("0x2a"),t),this[va("0xef")].set(va("0x54"),o),this._defaultCallbacks[va("0xb2")](va("0xde"),t),this[va("0xef")].set(va("0xac"),n),this._defaultCallbacks[va("0xb2")](va("0xf8"),t),this[va("0xef")][va("0xb2")](va("0x46"),o),this._defaultCallbacks.set("formatBlock:chain",t)}}function Sa(t,e,n){for(const o of e.parent[va("0x98")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[va("0x128")](o))return!1;if(t.isObject(o)||t[va("0x4b")](o))return!0}return!1}function La(t){return t[va("0x5")][va("0x125")]==t[va("0x2c")][va("0x5c")]&&t.end.isAtStart}function Na(t,e,n,o){const s=t=>!t[va("0xd7")].is(va("0xbb"))&&!o[va("0xf4")](t[va("0xd7")]),r=t[va("0x2c")][va("0xb")](s),i=t.end[va("0xb")](s,{direction:va("0x7a")});return!(t[va("0x2c")][va("0x7f")](r)&&t.end[va("0x7f")](i)||(r.isBefore(i)?n[va("0x9e")](e,{range:n[va("0x107")](r,i)}):n[va("0xb8")](e),0))}function Ma(t){return(0,r.hashObject)(t)}function wa(t){const e=t.start.nodeAfter;return e&&e.is(va("0x99"))}function Oa(t,e){const n=e[va("0x34")][va("0xf4")](t)||e[va("0x34")][va("0xaa")](t);return e[va("0x107")](e.createPositionAt(t,va("0x6d")),n?e.createPositionAfter(t):e[va("0x122")](t,va("0x5")))}function Fa(t,e,n,o,s){if(n[va("0x5")][va("0x7f")](o[va("0x2c")]))return!0;if(t.type!=e[va("0x109")])return!1;if(!n.end[va("0xce")](o[va("0x2c")]))return!1;const r=s.createRange(n[va("0x5")],o[va("0x2c")]).getWalker();for(const t of r)if([va("0x1"),"elementEnd"][va("0x12c")](t[va("0x109")])&&s[va("0x34")][va("0x4b")](t[va("0xd7")]))return!1;return!0}const Pa=["unbind","PENDING_ACTION_SUGGESTION","isDirty","execute","isEnabled","_discardCommand","plugins","model","_editor","canAccept","_removePendingAction","_acceptCommand","add","_pendingAction","view","listenTo","change:isDirty","bind","commands","discardSuggestion","PendingActions","canDiscard","_setPendingAction","acceptSuggestion","destroy","locale","commentThreadController","get"];var Da,Ba;Da=Pa,Ba=271,function(t){for(;--t;)Da.push(Da.shift())}(++Ba);const ja=function(t,e){return Pa[t-=0]};class Ua extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this[ja("0x17")]=n,this[ja("0x7")]=o,this[ja("0x11")]=t,this[ja("0x14")]=t[ja("0x1b")][ja("0x8")](ja("0x4")),this[ja("0xe")]=t.commands[ja("0x8")](ja("0x0")),this[ja("0x17")][ja("0x1a")](ja("0xd")).to(this[ja("0x14")],this[ja("0xe")],((t,e)=>t||e)),this.view[ja("0x1a")](ja("0x12")).to(this[ja("0x14")],ja("0xd")),this.view.bind("canDiscard").to(this[ja("0xe")],ja("0xd")),this[ja("0x16")]=null,n[ja("0xb")]&&this._setPendingAction(),this[ja("0x18")](n,"acceptSuggestion",(()=>this[ja("0x4")]())),this.listenTo(n,"discardSuggestion",(()=>this[ja("0x0")]())),this[ja("0x18")](n,ja("0x19"),(()=>{n[ja("0xb")]?this[ja("0x3")]():this[ja("0x13")]()}))}[ja("0x4")](){this._acceptCommand[ja("0xc")](this[ja("0x10")].id)}discardSuggestion(){this._discardCommand[ja("0xc")](this[ja("0x10")].id)}[ja("0x5")](){this[ja("0x17")].unbind(ja("0xd")),this[ja("0x17")][ja("0x9")]("canAccept"),this[ja("0x17")].unbind(ja("0x2")),this.stopListening(),this[ja("0x7")].destroy(),this[ja("0x16")]&&this[ja("0x13")]()}_setPendingAction(){const t=Yo(this[ja("0x11")][ja("0x6")],ja("0xa"));this[ja("0x16")]=this[ja("0x11")][ja("0xf")].get(ja("0x1"))[ja("0x15")](t)}_removePendingAction(){null!==this[ja("0x16")]&&this[ja("0x11")][ja("0xf")][ja("0x8")]("PendingActions").remove(this[ja("0x16")]),this._pendingAction=null}}const Ga=["editor","commentInputView","updateComment","isDirty","bind","commentThread","isActive","_createCommentThreadInputView","commentThreadInputView","editorConfig","set","submit","_model","disableComments","disabledSubmit","_createCommentViews","_localUser","commentsListView","length","cancel","canAccept","destroy","value","showInput","delegate","focus","element","_config","fire","isReadOnly","CommentView","removeComment"];var Ha,Wa;Ha=Ga,Wa=126,function(t){for(;--t;)Ha.push(Ha.shift())}(++Wa);const Va=function(t,e){return Ga[t-=0]};class za extends s.View{constructor(t,e,n,o){super(t),this[Va("0x13")]=null,this.commentThreadInputView=null,this[Va("0xc")]("isActive",!1),this[Va("0xc")]("authoredAt",e.authoredAt),this[Va("0x6")]("authoredAt").to(e),this[Va("0xc")]("descriptionParts",[]),this.set(Va("0x5"),!1),this[Va("0xc")]("isEnabled",!1),this[Va("0xc")](Va("0x16"),!1),this[Va("0xc")]("canDiscard",!1),this[Va("0xe")]=e,this[Va("0x12")]=n,this[Va("0x1d")]=o,o[Va("0xf")]?this.set(Va("0x14"),1):this[Va("0x11")]()}focus(){this[Va("0x1c")].focus()}destroy(){this.commentsListView&&this[Va("0x13")][Va("0x17")](),this.commentThreadInputView&&this[Va("0xa")][Va("0x17")](),super[Va("0x17")]()}_createCommentViews(){const{CommentsListView:t}=this[Va("0x1d")];this[Va("0x13")]=new t(this.locale,this[Va("0xe")][Va("0x7")],Object.assign({CommentView:this[Va("0x1d")][Va("0x0")]},this._config)),this[Va("0x13")][Va("0x1a")]("removeComment").to(this),this[Va("0x13")].delegate(Va("0x4")).to(this),this[Va("0x13")][Va("0x6")](Va("0x8")).to(this),this.set(Va("0x14"),this[Va("0x13")][Va("0x14")]+1),this[Va("0x6")](Va("0x14")).to(this[Va("0x13")],Va("0x14"),(t=>t+1)),this.commentThreadInputView=this[Va("0x9")](),this.on(Va("0x1"),(()=>this[Va("0x1b")]())),this[Va("0x6")]("isDirty").to(this[Va("0x13")],"hasDirtyComment",this.commentThreadInputView[Va("0x3")],Va("0x18"),((t,e)=>t||!!e))}[Va("0x9")](){const{CommentThreadInputView:t}=this[Va("0x1d")],e=new t(this.locale,this._localUser,this[Va("0x1d")][Va("0xb")]),n=e[Va("0x3")];return e[Va("0x6")](Va("0x19")).to(this,Va("0x8"),this[Va("0xe")][Va("0x7")],Va("0x1f"),n,Va("0x18"),((t,e,n)=>!!n||t&&!e)),n.on(Va("0xd"),((t,e)=>{this[Va("0x1e")]("addComment",e),n[Va("0x2")].setData("")})),n.on(Va("0x15"),(()=>this[Va("0x1b")]())),n[Va("0x6")](Va("0x10")).to(this[Va("0xe")][Va("0x7")],Va("0x1f")),e}}const Ka=["title","ck-annotation","innerText","ck-suggestion__user","userView","ck-annotation__info-time","ck-annotation__user","EXTERNAL_AVATAR","ck-annotation__content-wrapper","isEnabled","div","commentThread","setTemplate","innerHTML","getTemplate","push","source","</span>","extendTemplate","children","bindTemplate","Discard suggestion","ck-suggestion--disabled-comments","<p>","importWord",".ck-annotation__content-wrapper","ck-comment__info-time","_createButton",'"></span>',"EXTERNAL_IMPORT_WORD_SUGGESTION","isActive","color","author",'<span class="ck-suggestion-color" style="background-color: ',"attributes","acceptButton","split","discardSuggestion","check","disableComments","name","type","ck-annotation__main","ck-suggestion","render","getExternalSuggestionNote","isExternal","locale","set","ck-suggestion-","ck-annotation__info",'" title="',"acceptSuggestion","ck-annotation__actions","querySelector","ck-comment__external","ck-annotation__info-name","ck-suggestion-wrapper","@external","element","value","canAccept","ck-suggestion__actions","EXTERNAL_IMPORT_WORD_AVATAR","_config","join","ck-suggestion-wrapper--active","getUserViewNotificationText","</p>","Accept suggestion","ck-suggestion--accept","ck-suggestion__info","span","fire","_descriptionElement","authoredAt","time","_model","bind","cancel","change:description","EXTERNAL_SUGGESTION","descriptionParts","discardButton","ck-suggestion__info-name","commentsListView"];var qa,Xa;qa=Ka,Xa=283,function(t){for(;--t;)qa.push(qa.shift())}(++Xa);const $a=function(t,e){return Ka[t-=0]};class Qa extends za{constructor(e,n,o,s){super(e,n,o,s),this[$a("0x17")]("type",""),this[$a("0x35")]($a("0x10")).to(this,$a("0x39"),(t=>t&&t[0]?t[0][$a("0x10")]:"")),this.bind("description").to(this,$a("0x39"),this,$a("0x5"),((t,e)=>{let n="";for(const e of t)n+=$a("0x54")+Ja(e.content,e[$a("0x6")])+$a("0x2b");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this.acceptButton=this[$a("0x2")](Yo(e,$a("0x2c")),t.icons[$a("0xd")],$a("0x2d"),$a("0x1b"),"sw"),this.acceptButton[$a("0x35")]($a("0x46")).to(this,$a("0x24")),this[$a("0x3a")]=this[$a("0x2")](Yo(e,$a("0x52")),t.icons[$a("0x36")],"ck-suggestion--discard",$a("0xc"),"sw"),this[$a("0x3a")][$a("0x35")]($a("0x46")).to(this,"canDiscard"),this[$a("0x41")]=new r.UserView(e,this._model[$a("0x7")],this[$a("0x2a")]()),this.userView[$a("0x4f")]({attributes:{class:[$a("0x40"),$a("0x43")]}}),this[$a("0x49")](this[$a("0x4b")]())}[$a("0x4b")](){const t=this[$a("0x51")],e=[{tag:"div",attributes:{class:[$a("0x2e"),$a("0x19")]},children:[{tag:$a("0x2f"),children:[{text:this[$a("0x41")][$a("0xf")]}],attributes:{class:[$a("0x3b"),$a("0x1f")]}},{tag:$a("0x33"),attributes:{datetime:t.to($a("0x32")),class:[$a("0x1"),$a("0x42")]},children:[{text:t.to($a("0x32"),(t=>this[$a("0x27")].formatDateTime(t)))}]}]},{tag:$a("0x47"),attributes:{class:[$a("0x25"),$a("0x1c")]},children:[this[$a("0xa")],this[$a("0x3a")]]},{tag:$a("0x47"),attributes:{class:[$a("0x45")]}}];this[$a("0x34")][$a("0x15")]&&e[$a("0x4c")]({tag:$a("0x47"),attributes:{class:[$a("0x1e")]},children:[{text:this[$a("0x14")]()}]});const n={tag:$a("0x47"),attributes:{class:[$a("0x20"),t.if("isActive",$a("0x29")),t.to($a("0x10"),(t=>$a("0x18")+t)),this[$a("0x27")][$a("0xe")]&&$a("0x53")],"data-suggestion-id":this[$a("0x34")].id,"data-thread-id":this[$a("0x34")][$a("0x48")].id,"data-author-id":this[$a("0x34")][$a("0x7")].id,tabindex:-1},children:[{tag:$a("0x47"),attributes:{class:[$a("0x12"),$a("0x3e")]},children:[this.userView,{tag:$a("0x47"),attributes:{class:["ck-suggestion__main",$a("0x11")]},children:e}]}]};return this[$a("0x3c")]&&this.commentThreadInputView&&n[$a("0x50")][$a("0x4c")](this.commentsListView,this.commentThreadInputView),n}[$a("0x13")](){super.render(),this[$a("0x31")]=this[$a("0x22")][$a("0x1d")]($a("0x0")),this[$a("0x31")][$a("0x4a")]=this.description,this.on($a("0x37"),((t,e,n)=>{this[$a("0x31")].innerHTML=n}))}[$a("0x2")](t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[$a("0x17")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i.extendTemplate({attributes:{class:n}}),i.on("execute",(()=>{this[$a("0x30")](o,this[$a("0x34")].id)})),i}[$a("0x14")](){return $a("0x55")===this[$a("0x34")][$a("0x9")][$a("0x21")][$a("0x4d")]?Yo(this[$a("0x16")],$a("0x4")):Yo(this[$a("0x16")],$a("0x38"))}[$a("0x2a")](){return this[$a("0x34")][$a("0x15")]?$a("0x55")===this._model[$a("0x9")][$a("0x21")][$a("0x4d")]?Yo(this[$a("0x16")],$a("0x26"),this[$a("0x34")].creator[$a("0xf")]):Yo(this[$a("0x16")],$a("0x44"),this[$a("0x34")].creator[$a("0xf")]):null}}function Ja(t,e){let n="";return n+=t[$a("0xb")]("*").map(((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+Za(t)+$a("0x4e"):Za(t)))[$a("0x28")](""),e&&(n+=$a("0x8")+e[$a("0x23")]+$a("0x1a")+e[$a("0x3d")]+$a("0x3")),n}function Za(t){const e=document.createElement("span");return e[$a("0x3f")]=t,e[$a("0x4a")]}const Ya=["acceptAllSuggestions","get","requires","listenTo","separator","getJoined","head","clear","editor","view","_descriptionFactory","comments.maxThreadTotalWeight","init","_updateController","getSuggestion","descriptionParts","_initializeController","getAllAdjacentSuggestions","_destroyController","EditorAnnotations","_disableComments","destroy","activeMarkers","suggestion-","button","componentFactory","isEnabled","discardSelectedSuggestions","values","length","suggestionUnloaded","filter","buttonView","locale","keys","isMultiRange","_handleControllerBuffer","reduce","createAnnotation","acceptButton","_createUIButton","focus","registerAnnotation","value","editing","addComment","Annotations","comments.maxCommentCharsWhenCollapsed","mainView","define","from","source","getMarkerNames","type","switchbutton","_handleSuggestionControllerDelayed","set","pluginName","commandName","comments.editorConfig","bind","plugins","unbind","delete","change:previous","trackChanges.SuggestionThreadView","getMarkers","getDescriptions","isInContent","suggestionLoaded","getByInnerView","comments","add","actionView","TrackChangesEditing","refreshSelectedViews","_refreshActiveMarkers","model","addSourceCollector","trackChanges.disableComments","discardAllSuggestions","CommentsUI","map","config","isDirty","Discard all suggestions","discardButton","isOn","stopListening","has","Accept all suggestions","innerView","SuggestionThreadView","trackChanges","commands","Track changes","_viewToController","_annotationViews","CommentView","CommentsRepository","execute","_suggestionToController","change:activeAnnotations"];var tc,ec;tc=Ya,ec=489,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends t.Plugin{static get[nc("0x1c")](){return[Ra,r.Users,nc("0x16"),nc("0x48"),nc("0x2d")]}static get[nc("0x53")](){return"TrackChangesUI"}constructor(t){super(t),this._suggestionToController=new Map,this[nc("0x13")]=new Map,this[nc("0x14")]=new Map,this._handleControllerBuffer=new Map;const e=this[nc("0x22")][nc("0x6")];e[nc("0x4b")](nc("0x5b"),Qa),e[nc("0x4b")](nc("0x2"),!1),this[nc("0x2e")]=e.get(nc("0x2"))}[nc("0x51")](t,e){0===this[nc("0x3e")].size&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[nc("0x18")][nc("0xc")](t);n||e?n&&e&&this[nc("0x2c")](t):this[nc("0x2a")](t)}this[nc("0x22")].plugins[nc("0x1b")](nc("0x2d"))[nc("0x65")](),this[nc("0x66")](),this[nc("0x3e")][nc("0x21")]()}),10),this[nc("0x3e")][nc("0x52")](t,e)}[nc("0x26")](){const t=this[nc("0x22")],e=t.plugins.get("TrackChangesEditing"),n=t.plugins[nc("0x1b")](nc("0x48")),o=t[nc("0x57")][nc("0x1b")]("EditorAnnotations"),s=t.plugins[nc("0x1b")](nc("0x16"));t.ui[nc("0x33")][nc("0x62")](nc("0x10"),(t=>this[nc("0x42")](t))),o[nc("0x1")]((()=>{const t=[];for(const[e,n]of Array.from(this._suggestionToController)){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t[nc("0x5e")])continue;if(t[nc("0x3d")]){s.push(...t.getRanges());continue}const e=t.getFirstRange();if(s.length>0){const t=s[0][nc("0x1f")](e);if(t){s[0]=t;continue}}s.push(e)}t.push([n[nc("0x23")],s])}return t})),this[nc("0x1d")](e,nc("0x5f"),((t,e)=>{this[nc("0x1d")](e,"change:previous",((t,n,o,s)=>{e[nc("0x5e")]&&(null==o?(this[nc("0x27")](s[nc("0x20")]),this[nc("0x51")](e,!1)):(this[nc("0x27")](o[nc("0x20")]),this[nc("0x51")](e,!0)))})),null===e.previous?this._handleSuggestionControllerDelayed(e,!1):this[nc("0x27")](e[nc("0x20")])})),this[nc("0x1d")](e,nc("0x38"),((t,e,n)=>{this[nc("0xb")](e,nc("0x5a")),this[nc("0x3e")][nc("0x59")](e);const o=n?n[nc("0x20")]:e,s=this._suggestionToController[nc("0x1b")](o);null!==n&&this._updateController(o),null===n&&s&&this._destroyController(e)})),this.listenTo(e,"suggestionChanged",((t,e)=>{this[nc("0x27")](e)})),this[nc("0x1d")](n,nc("0x19"),(()=>{this._refreshActiveMarkers()})),this.listenTo(s,nc("0x47"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[nc("0x28")](n);this[nc("0x18")].get(s)[nc("0x23")][nc("0x43")]()}),{priority:"lowest"})}[nc("0x66")](){const t=this[nc("0x22")].plugins[nc("0x1b")](nc("0x48")),e=this[nc("0x22")][nc("0x57")][nc("0x1b")](nc("0x64")),n=Array[nc("0x4c")](t.activeAnnotations,(t=>t[nc("0xe")])).filter((t=>this._viewToController[nc("0xc")](t))),o=[];for(const t of n){const e=this[nc("0x13")].get(t)[nc("0x0")][nc("0x2b")]();o.push(...e[nc("0x3f")](((t,e)=>[...t,...e[nc("0x4e")]()]),[]))}e[nc("0x30")]=o}[nc("0x42")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[nc("0x22")][nc("0x11")].get(nc("0x10")),r=Yo(t,nc("0x12"));n[nc("0x3a")][nc("0x52")]({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[nc("0x3a")][nc("0x56")](nc("0xa")).to(o,nc("0x45")),n[nc("0x3a")].on(nc("0x17"),(()=>{o[nc("0x17")](),this[nc("0x22")][nc("0x46")][nc("0x23")].focus()}));const i=new e.Collection,x=[{type:nc("0x50"),model:{withText:!0,label:r,commandName:nc("0x10")}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,nc("0xd")),commandName:nc("0x1a")}},{type:nc("0x32"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:"acceptSelectedSuggestions"}},{type:nc("0x32"),model:{withText:!0,label:Yo(t,nc("0x8")),commandName:nc("0x3")}},{type:nc("0x32"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:nc("0x35")}}];for(const t of x){let e={type:nc("0x1e")};if(t[nc("0x0")]){const n=new s.Model(t[nc("0x0")]),o=this[nc("0x22")].commands[nc("0x1b")](n[nc("0x54")]);n[nc("0x56")](nc("0xa"),nc("0x34")).to(o,nc("0x45"),nc("0x34")),e={type:t[nc("0x4f")],model:n}}i[nc("0x62")](e)}(0,s.addListToDropdown)(n,i);const a=x[nc("0x39")]((t=>null!=t[nc("0x0")]))[nc("0x5")]((t=>this[nc("0x22")][nc("0x11")][nc("0x1b")](t[nc("0x0")][nc("0x54")]))),c=n[nc("0x3a")];return c[nc("0x63")][nc("0x58")]("isEnabled"),c.arrowView[nc("0x58")](nc("0x34")),c[nc("0x63")][nc("0x56")](nc("0x34")).to(o,nc("0x34")),c.arrowView[nc("0x56")](nc("0x34")).toMany(a,nc("0x34"),((...t)=>t.some((t=>t)))),n.on(nc("0x17"),(t=>{this[nc("0x22")][nc("0x17")](t[nc("0x4d")][nc("0x54")]),this.editor[nc("0x46")].view[nc("0x43")]()})),n}_initializeController(t){const e=this[nc("0x22")],n=e[nc("0x6")],o=e.plugins[nc("0x1b")]("Annotations"),s=e[nc("0x57")][nc("0x1b")](nc("0x16")),i=e[nc("0x57")][nc("0x1b")](nc("0x2d")),x=e.plugins[nc("0x1b")](r.Users).me,a=n[nc("0x1b")](nc("0x10"))[nc("0xf")],{CommentsListView:c,CommentThreadInputView:l}=e[nc("0x57")].get(nc("0x4"));let d,u;this[nc("0x14")][nc("0xc")](t.id)?(u=this[nc("0x14")][nc("0x1b")](t.id),d=u[nc("0x4a")]):(d=new a(e[nc("0x3b")],t,x,{disableComments:this[nc("0x2e")],editorConfig:n[nc("0x1b")](nc("0x55")),maxCommentsWhenCollapsed:n[nc("0x1b")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[nc("0x1b")](nc("0x25")),maxCommentCharsWhenCollapsed:n.get(nc("0x49")),formatDateTime:(0,r.getDateTimeFormatter)(n[nc("0x1b")](nc("0x3b"))),CommentView:n.get(nc("0x61"))[nc("0x15")],CommentsListView:c,CommentThreadInputView:l}),d[nc("0x41")].on("execute",(()=>{e[nc("0x46")][nc("0x23")][nc("0x43")]()})),d[nc("0x9")].on(nc("0x17"),(()=>{e.editing[nc("0x23")][nc("0x43")]()})),u=o.createAnnotationView(this[nc("0x22")][nc("0x3b")],d),u[nc("0x56")]("isDirty").to(d,nc("0x7")),u[nc("0x56")](nc("0x37")).to(d),u[nc("0x56")](nc("0x4f")).to(d,nc("0x4f"),(t=>nc("0x31")+t)),this[nc("0x14")][nc("0x52")](t.id,u));const g=s.createCommentThreadController(t.commentThread,d),m=new Ua(e,t,d,g),f=t[nc("0x2b")]()[nc("0x39")]((t=>t[nc("0x5e")]));d[nc("0x29")]=e[nc("0x57")][nc("0x1b")](nc("0x64"))[nc("0x24")].getDescriptions(f),this[nc("0x18")][nc("0x52")](t,m),this[nc("0x13")].set(d,m);const h=o[nc("0x40")]({view:u,target:()=>{const n=[],o=t[nc("0x2b")]()[nc("0x39")]((t=>t[nc("0x5e")]));for(const t of o)n.push(...t[nc("0x5c")]());return(0,r.getAllMarkersDomElementsSorted)(e[nc("0x46")],n)},type:()=>nc("0x31")+m.view[nc("0x4f")]});o[nc("0x62")](h),i[nc("0x44")](h)}[nc("0x2c")](t){const e=this.editor[nc("0x57")][nc("0x1b")]("Annotations"),n=this[nc("0x18")].get(t),o=n[nc("0x23")],s=e[nc("0x60")](o);s&&e.remove(s),this[nc("0x18")][nc("0x59")](t),this._viewToController.delete(o),n[nc("0x2f")]()}[nc("0x27")](t){if(!t[nc("0x5e")]||!this[nc("0x18")][nc("0xc")](t))return;const e=this[nc("0x22")][nc("0x57")][nc("0x1b")](nc("0x64")),n=this[nc("0x18")][nc("0x1b")](t),o=t.getAllAdjacentSuggestions();n[nc("0x23")].descriptionParts=e[nc("0x24")][nc("0x5d")](o)}[nc("0x2f")](){for(const t of this[nc("0x18")][nc("0x3c")]())this[nc("0x2c")](t);for(const t of this[nc("0x14")][nc("0x36")]())t[nc("0x4a")][nc("0x2f")]();super[nc("0x2f")]()}}var sc,rc,ic=["requires","plugins","getSuggestions","addSuggestion","get","editor","adapter","Comments","getSuggestion"];sc=ic,rc=471,function(t){for(;--t;)sc.push(sc.shift())}(++rc);var xc=function(t,e){return ic[t-=0]};class ac extends t.Plugin{static get[xc("0x6")](){return[Ra,oc,xc("0x4")]}static get pluginName(){return"TrackChanges"}set[xc("0x3")](t){this.editor.plugins[xc("0x1")](Ra)[xc("0x3")]=t}get[xc("0x3")](){return this[xc("0x2")].plugins[xc("0x1")](Ra)[xc("0x3")]}[xc("0x0")](t){return this[xc("0x2")][xc("0x7")].get(Ra).addSuggestionData(t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[xc("0x2")][xc("0x7")][xc("0x1")](Ra)[xc("0x8")]({skipNotAttached:t,toJSON:e})}[xc("0x5")](t){return this[xc("0x2")].plugins.get(Ra)[xc("0x5")](t)}}const cc=["addSuggestionData","get","TrackChangesDataGetter","document","set","div","appendChild","TrackChangesData","has","toolbar","Pagination","map","init","users","names","concat","string","getSuggestions","acceptAllSuggestions","requires","name","destroy","end","plugins","WebSocketGateway","builtinPlugins","every","constructor","getDataWithAcceptedSuggestions","trackChangesData","getUser","RevisionTracker","function","extraPlugins","initialData","TrackChangesEditing","Users","create","filter","define","data","push","config","editorCreator","pluginName","CommentsRepository","result","createElement","getRootNames","WordCount","editor","createDocumentFragment","context","includes","model"];var lc,dc;lc=cc,dc=354,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]},gc=[uc("0xa"),uc("0x1c"),uc("0x28")],mc=[uc("0x0"),uc("0x7"),"Autosave",uc("0x19"),uc("0x29")];class fc extends t.Plugin{static get[uc("0x32")](){return[Ra]}static get[uc("0x14")](){return uc("0x26")}init(){const t=this[uc("0x1a")];if(t[uc("0x12")][uc("0xf")]("trackChangesData.editorCreator",(e=>t[uc("0x3")][uc("0xd")]("",e))),uc("0x8")!=typeof t.config[uc("0x20")]("trackChangesData")[uc("0x13")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[uc("0x4")](t){return pc(this[uc("0x1a")],!0,t)}getDataWithDiscardedSuggestions(t){return pc(this[uc("0x1a")],!1,t)}}class hc extends t.Plugin{static get pluginName(){return uc("0x21")}constructor(t){super(t),this[uc("0x16")]=uc("0x35")}[uc("0x2b")](){this[uc("0x1a")][uc("0x36")].get(uc("0x15")).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[uc("0x1a")][uc("0x36")][uc("0x20")]("TrackChangesEditing")._adapter=null}}async function pc(t,e,n){const o=function(t){const e={};for(const n of t[uc("0x12")][uc("0x2d")]())gc[uc("0x1d")](n)||(e[n]=t.config[uc("0x20")](n));const n=t.constructor[uc("0x1")]||[],o=e[uc("0x9")]||[];delete e.extraPlugins;const s=n.concat(e.plugins)[uc("0x2e")](o)[uc("0x2a")]((t=>uc("0x2f")==typeof t?n.find((e=>e.pluginName==t)):t)),r=Array.from(new Set(s)),i=new Map;return e.plugins=r[uc("0xe")]((t=>bc(t,i))),e.plugins[uc("0x11")](hc),e[uc("0x36")].push(Ra),e}(t),s=document[uc("0x1b")](),r=t.config[uc("0x20")](uc("0x5"))[uc("0x13")],i=await r(o,(()=>function(t){const e=document[uc("0x17")](uc("0x24"));return t[uc("0x25")](e),e}(s)));!function(t,e){const n=t[uc("0x1e")][uc("0x22")][uc("0x18")]().reduce(((e,n)=>(e[n]=t[uc("0x10")][uc("0x20")]({rootName:n}),e)),{}),o=t.plugins[uc("0x20")](uc("0xc"))[uc("0x2c")][uc("0x2a")]((t=>({id:t.id,name:t[uc("0x33")]}))),s=t[uc("0x36")][uc("0x20")]("TrackChangesEditing")[uc("0x30")]({skipNotAttached:!0,toJSON:!0}),r=e[uc("0x36")][uc("0x20")]("Users"),i=e[uc("0x36")][uc("0x20")](uc("0xb"));for(const t of o)r[uc("0x6")](t.id)||r.addUser(t);r.me||r.useAnonymousUser();for(const t of s)i[uc("0x1f")](t);e[uc("0x10")][uc("0x23")](n)}(t,i),i.execute(e?uc("0x31"):"discardAllSuggestions");const x=i.data[uc("0x20")](n);return await i[uc("0x34")](),x}function bc(t,e){const n=uc("0x8")==typeof t?t[uc("0x14")]||t[uc("0x33")]:t;if(e[uc("0x27")](n))return e[uc("0x20")](n);if(e[uc("0x23")](n,!0),n&&mc[uc("0x1d")](n))return e[uc("0x23")](n,!1),!1;if(!t.requires)return e.set(n,!0),!0;const o=t.requires[uc("0x2")]((t=>bc(t,e)));return e[uc("0x23")](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 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:()=>za,TrackChanges:()=>ac,TrackChangesData:()=>fc,TrackChangesEditing:()=>Ra});var t=n(704),e=n(209),r=n(273),s=n(417),i=n(492),x=n(995);const a=["_enabledCommands","affectsData","isEnabled","execute","_disableUnsupportedCommands","has","_enableCommands","forceDisabled","clearForceDisabled","refresh","commands","editor","TrackChangesCommand","value"];var c,l;c=a,l=103,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x9")]=e,this[u("0x8")]=!1,this[u("0x4")]()}[u("0x4")](){this[u("0xb")]=!0}[u("0xc")](){this[u("0x8")]=!this[u("0x8")],this.value?this[u("0xd")]():this[u("0x1")]()}[u("0xd")](){for(const t of this[u("0x6")][u("0x5")].commands())t[u("0xa")]&&!this[u("0x9")][u("0x0")](t)&&t[u("0x2")](u("0x7"))}_enableCommands(){for(const t of this.editor[u("0x5")][u("0x5")]())t[u("0xa")]&&!this._enabledCommands.has(t)&&t[u("0x3")]("TrackChangesCommand")}}const g=["plugins","_suggestions","refresh","acceptSuggestion","track-changes-accept-suggestion-not-found","execute","get"];var m,f;m=g,f=376,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x3")]=e,this[h("0x4")]()}refresh(){this.isEnabled=!0}[h("0x0")](t){const n=this[h("0x3")][h("0x1")](t);if(!n)throw new e.CKEditorError(h("0x6"),this);this.editor[h("0x2")][h("0x1")]("TrackChangesEditing")[h("0x5")](n)}}const b=["discardSuggestion","refresh","TrackChangesEditing","editor","_suggestions","get","isEnabled"];var E,_;E=b,_=361,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("0x0")]=e,this[T("0x4")]()}[T("0x4")](){this[T("0x2")]=!0}execute(t){const n=this[T("0x0")][T("0x1")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);this[T("0x6")].plugins.get(T("0x5"))[T("0x3")](n)}}const y=["createRange","isTouching","value","length","type","getRanges","isObject","createPositionAfter","from","getRange","deletion","isMultiRange","isInContent","end","createPositionBefore","color","start","next","getMarkers","add","execute","schema","join","map"," [color ","isCollapsed","content"];var k,A;k=y,A=304,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t.sort(((t,e)=>v("0x3")==t[v("0x18")]&&"deletion"!=e.type?-1:v("0x3")!=t[v("0x18")]&&"deletion"==e[v("0x18")]?1:0))}function I(t,e){let n,o=0;const r=[],s=e[v("0xe")];for(;o<t[v("0x17")];){const i=t[o],x=t[o+1];n||(n=e[v("0x7")](i)),S(e,i,x)||(r.push(e[v("0x14")](n,s[v("0x1a")](i)?e.createPositionAfter(i):e.createPositionAt(i,v("0x6")))),n=null),o++}return r}function S(t,e,n){if(!n)return!1;const o=t[v("0x0")](e),r=t[v("0x7")](n);return o.isTouching(r)}function L(t,e,n){for(;n[v("0x17")];){const o=n.splice(0,100);t.change((()=>{for(const t of o)t.isInContent&&e[v("0xd")](t.id)}))}}const N=["_suggestions","some","values","editor","isInContent","model","refresh","_command","isEnabled","from","execute"];var w,M;w=N,M=445,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x2")]=e,this[O("0x6")]=n,this.refresh()}[O("0x1")](){const t=Array[O("0x4")](this[O("0x6")][O("0x8")]())[O("0x7")]((t=>t[O("0xa")]));this[O("0x3")]=this[O("0x2")].isEnabled&&t}[O("0x5")](){const t=R(Array.from(this[O("0x6")][O("0x8")]()));L(this[O("0x9")][O("0x0")],this[O("0x2")],t)}}const P=["_command","size","editor","model","selection","_selectedSuggestions","_suggestions","execute","from","refresh","isEnabled","values"];var D,B;D=P,B=192,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("0x6")]=n,this[j("0x5")]=new Set,this[j("0x9")]()}[j("0x9")](){const t=this.editor[j("0x3")].document[j("0x4")],e=Array[j("0x8")](this[j("0x6")][j("0xb")]());this._selectedSuggestions=function(t,e){const n=Array[v("0x1")](t[v("0x19")]()),o=new Set;for(const r of e)if(r[v("0x5")])for(const e of n)for(const n of r[v("0xb")]()){const s=n[v("0x2")]();(e.isIntersecting(s)||t[v("0x12")]&&!r[v("0x4")]&&r[v("0xa")]&&s[v("0x6")][v("0x15")](e[v("0x9")]))&&o[v("0xc")](r)}return o}(t,e),this.isEnabled=this[j("0x0")][j("0xa")]&&!!this[j("0x5")][j("0x1")]}[j("0x7")](){const t=R(Array[j("0x8")](this[j("0x5")]));L(this[j("0x2")][j("0x3")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var V=Array.prototype.splice;const z=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():V.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=z,$.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 ut=function(t){return lt.call(t)};var dt=rt?rt.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const 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 It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(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(wt){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 wt?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]=wt&&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=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Vt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const zt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Vt(this,t).get(t)};const qt=function(t){return Vt(this,t).has(t)};const Xt=function(t,e){var n=Vt(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=zt,$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,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 Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&de(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 Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};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)?we(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 We=Object.prototype.hasOwnProperty;const Ve=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const ze=function(t){return je(t)?we(t,!0):Ve(t)};const Ke=function(t,e){return t&&se(e,ze(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 un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,ze,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 In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(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?wn(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 wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Vn=function(t){return xe(t)&&"[object Map]"==In(t)};var zn=Ie&&Ie.isMap;const Kn=zn?ke(zn):Vn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.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 u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=In(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!s){if(x=c||g?{}:Wn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Yn[d])return s?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(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=u?void 0:(l?c?dn:un:c?ze: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 u=-1,d=!0,g=2&n?new ko:void 0;for(s.set(t,e),s.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,s):o(m,f,u,t,e,s);if(void 0!==h){if(h)continue;d=!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)}))){d=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){d=!1;break}}return s.delete(t),s.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=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 wo=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=Io;case"[object Set]":var a=1&o;if(x||(x=So),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 Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,s){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:Mo.call(e,l)))return!1}var u=s.get(t),d=s.get(e);if(u&&d)return u==e&&d==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:In(t),c=x?Po:In(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 s||(s=new Yt),i||Le(t)?Ro(t,e,n,o,r,s):wo(t,e,a,n,o,r,s);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 s||(s=new Yt),r(f,h,n,o,s)}}return!!d&&(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 Wo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Vo=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 zo=function(t,e){return e.length<2?t:Wo(t,Vo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=zo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["subType","set","addRange","creator","getMarkerNames","isIntersectingWithRange","onAttributesChange","from","removeAttribute","getRange","size","filter","discard","hasComments","head","_onAttributesChange","end","get","getAllAdjacentSuggestions","_markerNames","onAccept","nodeBefore","@external","add","change","clear","getItems","getContainedElement","addMarkerName","start","getMarkers","isExternal","removeMarkers","map","type","_model","author","suggestion:","onDiscard","getRanges","_onDiscard","reduce","getMultiRangeId","substr","isInContent","push","attributes","data","getFirstRange","removeMarker","isMultiRange","createdAt","addMarker","previous","authoredAt","_onAccept","length","toJSON","getFirstMarker","split","setAttribute","accept","decorate","nodeAfter","commentThread"];var $o,Jo;$o=Xo,Jo=108,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("0x38")]=e[Qo("0x38")],this[Qo("0x16")]=e[Qo("0x16")]||null,this.author=e[Qo("0x3a")],this[Qo("0x19")]=e.creator||e[Qo("0x3a")],this[Qo("0x35")]=Boolean(e[Qo("0x3")]&&e[Qo("0x3")][Qo("0x2c")]),this[Qo("0x4")]=null,this[Qo("0x39")]=t,this[Qo("0xc")]=e[Qo("0x2a")],this[Qo("0x3e")]=e[Qo("0x3c")],this._onAttributesChange=e[Qo("0x1c")],this[Qo("0x29")]=new Set,this.createdAt=null,this[Qo("0x17")](Qo("0xb"),null),this[Qo("0x17")](Qo("0x3"),e[Qo("0x3")]||{}),this[Qo("0x17")]("previous",null),this[Qo("0x17")]("next",null),this[Qo("0x17")](Qo("0x15"),null),this.set("_saved",!1),this[Qo("0x13")]("accept"),this[Qo("0x13")](Qo("0x22"))}get head(){let t=this;for(;t[Qo("0xa")];)t=t[Qo("0xa")];return t}get[Qo("0x23")](){return!!this[Qo("0x15")]&&this[Qo("0x15")][Qo("0xd")]>0}get[Qo("0x7")](){return 0!=this._markerNames[Qo("0x20")]&&6==Array.from(this[Qo("0x29")])[0][Qo("0x10")](":")[Qo("0xd")]}get[Qo("0x1")](){return null!==this.getFirstMarker()}[Qo("0x32")](t){this._markerNames[Qo("0x2d")](t)}[Qo("0x1a")](){return Array[Qo("0x1d")](this[Qo("0x29")])}[Qo("0x34")](){return this[Qo("0x1a")]()[Qo("0x37")]((t=>this._model.markers[Qo("0x27")](t)))[Qo("0x21")]((t=>t))}[Qo("0xf")](){return this.getMarkers()[0]||null}[Qo("0x36")](){this[Qo("0x39")][Qo("0x2e")]((t=>{for(const e of this[Qo("0x34")]())t.removeMarker(e)})),this[Qo("0x29")][Qo("0x2f")]()}[Qo("0x6")](t){this[Qo("0x39")][Qo("0x2e")]((e=>{e[Qo("0x6")](t)})),this[Qo("0x29")].delete(t)}[Qo("0x18")](t){const e=Qo("0x3b")+this[Qo("0x38")]+":"+this[Qo("0x16")]+":"+this.id+":"+this[Qo("0x19")].id+":"+Zo[Qo("0x40")]();this[Qo("0x32")](e),this[Qo("0x39")][Qo("0x2e")]((n=>{n[Qo("0x9")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x1b")](t){for(const e of this[Qo("0x3d")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0x3d")](){return this[Qo("0x34")]()[Qo("0x37")]((t=>t[Qo("0x1f")]()))}[Qo("0x30")](){return this.getRanges()[Qo("0x3f")](((t,e)=>[...t,...e[Qo("0x30")]()]),[])}[Qo("0x5")](){var t;return(null===(t=this[Qo("0xf")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x31")](){const t=this[Qo("0x3d")]();if(1!=t[Qo("0xd")])return null;const e=t[0],n=e[Qo("0x33")][Qo("0x14")],o=e[Qo("0x26")][Qo("0x2b")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x12")](){this[Qo("0xc")](this[Qo("0x3d")](),this[Qo("0x4")],this[Qo("0x3")]),this.removeMarkers()}[Qo("0x22")](){this[Qo("0x3e")](this[Qo("0x3d")](),this[Qo("0x4")],this[Qo("0x3")]),this[Qo("0x36")]()}[Qo("0x28")](){const t=[];let e=this[Qo("0x24")];for(;e;)t[Qo("0x2")](e),e=e.next;return t}[Qo("0x11")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x3")]=n,this[Qo("0x25")](n))}[Qo("0x1e")](t){const e=eo(this[Qo("0x3")]);qo(e,t),Go(e,this[Qo("0x3")])||(this[Qo("0x3")]=e,this[Qo("0x25")](this[Qo("0x3")]))}[Qo("0xe")](){return{id:this.id,type:this[Qo("0x16")]?this[Qo("0x38")]+":"+this[Qo("0x16")]:this[Qo("0x38")],authorId:this[Qo("0x19")].id,createdAt:this[Qo("0x8")],hasComments:this.hasComments,data:this[Qo("0x4")],attributes:this[Qo("0x3")]}}static[Qo("0x40")](){return(0,e.uid)()[Qo("0x0")](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 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_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=["addObject","push","_addDescriptionItems","_schema","get","item","registerDescriptionCallback","addEmptyContainer","end","function","deletion","skip","replace","quantity","match","_itemLabels","*Insert:* %0","REPLACE_TEXT","add","set","_itemLabelsCallbacks","text","elementEnd","isEqual","data","_resolveDescriptionItems","element","getFirstRange","removeObject","elementStart","type","nextSibling","checkChild","getItemLabel","_customCallbacks","remove","label","normal","isEmpty","isInContent","removeContainer","previousSibling","indexOf","pop","getDescriptions","removeEmptyContainer","$textProxy","Container","*Remove:* %0","isObject","ELEMENT_SPACE","Object","addContainer","*Merge:* %0","getWalker","*Split:* %0","EmptyContainer","name","length","$1 $2","start","insertion"];var er,nr;er=tr,nr=140,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this[or("0x12")]=[],this[or("0x3d")]=new Map,this[or("0x4")]=[],this._schema=t,this._locale=e}[or("0x1c")](t){const e=[];for(let n=0;n<t[or("0x2a")];n++){const o=t[n];if(!o[or("0x17")])continue;let r=!1;for(const t of this[or("0x12")]){const n=t(o);if(n){"type"in n&&e.push(n),r=!0;break}}if(!r){this[or("0x30")](e,o);const r=t[n+1];if(r&&!o.getFirstRange()[or("0x36")][or("0x7")](r[or("0xb")]()[or("0x2c")])){const t=e[e[or("0x2a")]-1],n="insertion"==o.type?or("0x2"):or("0x13");t&&or("0x5")==t[or("0xe")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[or("0x34")](t){this._customCallbacks[or("0x2f")](t)}registerElementLabel(t,n,o=e.priorities[or("0x15")]){or("0x37")==typeof t?(0,e.insertToPriorityArray)(this[or("0x4")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[or("0x3")](t,n)}getItemLabel(t,e=1){let n;for(const e of this[or("0x4")])if(e.matchingCallback(t)){n=e[or("0x14")];break}return n||(n=this._itemLabels[or("0x32")](t[or("0x29")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[or("0x29")]}_addDescriptionItems(t,e){const n=e[or("0xb")]()[or("0x26")](),o=or("0x2d")==e[or("0xe")]?or("0x2"):"remove";for(const e of n){const r=e[or("0x33")],s=t[t[or("0x2a")]-1];if(r.is(or("0x1e")))s&&s[or("0xe")][or("0x1a")]("Container")>-1&&t[or("0x1b")](),s&&"text"==s[or("0xe")]?s[o]+=r[or("0x8")]:t[or("0x2f")]({type:or("0x5"),add:"add"==o?r.data:"",remove:or("0x13")==o?r[or("0x8")]:""});else if(this._schema.isObject(r)){const i=r;if(s&&s[or("0xe")][or("0x1a")]("Container")>-1&&t[or("0x1b")](),or("0x6")==e[or("0xe")])continue;s&&s.type==o+"Object"&&s[or("0xa")].name==i.name?s.quantity++:t[or("0x2f")]({type:o+or("0x23"),element:i,quantity:1}),n[or("0x39")]((t=>!(or("0x6")==t.type&&t.item==r)))}else if(this[or("0x31")][or("0x10")](r,"$text")||r.is(or("0xa"),"softBreak")){const n=r;if(or("0x2")==o&&or("0xd")==e.type||"remove"==o&&or("0x6")==e[or("0xe")])continue;if(s&&-1==s[or("0xe")].indexOf(or("0x1f"))){"text"==s[or("0xe")]&&(s[o]+="\n");continue}let i;if(i=or("0x2")==o?n[or("0xf")]&&!this[or("0x31")][or("0x21")](n[or("0xf")])?n[or("0xf")]:null:n[or("0x19")]&&!this._schema[or("0x21")](n[or("0x19")])?n.previousSibling:null,n[or("0x16")]||i&&i.isEmpty){const e=i&&i[or("0x16")]?i:n;s&&s[or("0xe")]==o+or("0x28")&&s[or("0xa")].name==e[or("0x29")]?s[or("0x3b")]++:t[or("0x2f")]({type:o+or("0x28"),element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[or("0x9")](t){const e=this._locale,n=[];for(const o of t){switch(o[or("0xe")]){case or("0x5"):if(o[or("0x2")]=o[or("0x2")][or("0x3a")](/(\S)\u000A+(\S)/g,or("0x2b")).replace(/\u000A/g,""),o[or("0x13")]=o.remove[or("0x3a")](/(\S)\u000A+(\S)/g,or("0x2b"))[or("0x3a")](/\u000A/g,""),""!=o[or("0x2")]&&""!=o[or("0x13")]){n.push({type:or("0x3a"),content:Yo(e,or("0x1"),['"'+o[or("0x13")]+'"','"'+o.add+'"'])});continue}if(null!=o[or("0x2")][or("0x3c")](/^ +$/)){n.push({type:"insertion",content:Yo(e,or("0x0"),Yo(e,or("0x22"),o[or("0x2")][or("0x2a")]))});continue}if(null!=o[or("0x13")][or("0x3c")](/^ +$/)){n[or("0x2f")]({type:"deletion",content:Yo(e,or("0x20"),Yo(e,or("0x22"),o[or("0x13")][or("0x2a")]))});continue}if(""!=o[or("0x2")]){n[or("0x2f")]({type:or("0x2d"),content:Yo(e,or("0x0"),'"'+o.add+'"')});continue}n[or("0x2f")]({type:or("0x38"),content:Yo(e,or("0x20"),'"'+o[or("0x13")]+'"')});continue;case or("0x35"):case or("0x2e"):n.push({type:or("0x2d"),content:Yo(e,or("0x0"),this[or("0x11")](o[or("0xa")],o[or("0x3b")]))});continue;case or("0x1d"):case or("0xc"):n[or("0x2f")]({type:or("0x38"),content:Yo(e,or("0x20"),this[or("0x11")](o[or("0xa")],o.quantity))});continue;case or("0x24"):n[or("0x2f")]({type:or("0x2d"),content:Yo(e,or("0x27"),this[or("0x11")](o[or("0xa")],o[or("0x3b")]))});continue;case or("0x18"):n[or("0x2f")]({type:or("0x38"),content:Yo(e,or("0x25"),this[or("0x11")](o[or("0xa")],o[or("0x3b")]))});continue}n.push(o)}return n}}const sr=["right","registerDescriptionCallback","left","_descriptionFactory","TrackChangesEditing","FORMAT_JUSTIFY_TEXT","commandName","get","afterInit","value","ltr","selection","filter","editor","center","justify","getAttribute","getSelectedBlocks","checkAttribute","FORMAT_ALIGN_TO_CENTER","model","has","*Format:* %0","plugins","document","from","FORMAT_ALIGN_TO_RIGHT","locale","enableCommand","alignment","contentLanguageDirection"];var ir,xr;ir=sr,xr=314,function(t){for(;--t;)ir.push(ir.shift())}(++xr);const ar=function(t,e){return sr[t-=0]};class cr extends t.Plugin{[ar("0x4")](){const t=this[ar("0x9")],e=t[ar("0x17")];if(!t[ar("0x13")][ar("0x11")]("AlignmentEditing"))return;const n=t[ar("0x13")][ar("0x3")](ar("0x0"));n[ar("0x18")](ar("0x19"),((e,o={})=>{let r=o[ar("0x5")];o.value||(r=ar("0x6")===t[ar("0x17")][ar("0x1a")]?ar("0x1d"):ar("0x1b"));const s=Array[ar("0x15")](this[ar("0x9")][ar("0x10")][ar("0x14")][ar("0x7")][ar("0xd")]())[ar("0x8")]((t=>function(t,e,n){const o=t[ar("0xc")]("alignment")||null;return e[ar("0xe")](t,ar("0x19"))&&n!=o}(t,this[ar("0x9")].model.schema,r)));t.model.change((()=>{for(const t of s)n.markBlockFormat(t,{commandName:"alignment",commandParams:[{value:r}]})}))})),n[ar("0x1e")][ar("0x1c")]((t=>{const{data:n}=t;if(n&&"alignment"==n[ar("0x2")]){const t=n.commandParams[0][ar("0x5")];return{type:"format",content:Yo(e,ar("0x12"),function(t){switch(t){case ar("0x1d"):return Yo(e,"FORMAT_ALIGN_TO_LEFT");case ar("0x1b"):return Yo(e,ar("0x16"));case ar("0xa"):return Yo(e,ar("0xf"));case ar("0xb"):return Yo(e,ar("0x1"))}}(t))}}}))}}const lr=["get","previousPosition","toViewPosition","activeMarkers","element","toViewElement","getCustomProperty","markerName","isBlock","mapper","ck-suggestion-marker--active","hasAttribute","listIndent","push","isContent","span","insert","nextSibling","addHighlight","isLimit","TrackChangesEditing","item","includes","ck-suggestion-marker-","createUIElement","writer","name","start","markerRange","consumable","isAtEnd","createRangeOn","plugins","bindElementToMarker"];var ur,dr;ur=lr,dr=441,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};function mr(t,e,n){const o=[];for(const r of e.getItems())r[gr("0xc")](t)&&o[gr("0xe")](n[gr("0x20")](r));return o}function fr(t){const e=[];if(t.is(gr("0x5"),"listItem")){let n=t[gr("0x12")];for(;n&&n.is(gr("0x5"),"listItem")&&n.getAttribute(gr("0xd"))>0;)e[gr("0xe")](n),n=n.nextSibling}return e}function hr(t,e,{showActiveMarker:n=!0}={}){const o=t[gr("0x21")][gr("0x1")](gr("0x15"));return(r,s,i)=>{if(!i[gr("0x1e")].test(s[gr("0x1d")],r[gr("0x1b")]))return;const x=s.markerRange.getWalker(),a=s[gr("0x1d")][gr("0x1c")],c=t.model.schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gr("0x16")];d=d||c[gr("0xf")](e);const n=i[gr("0xa")][gr("0x6")](e);if(n&&n[gr("0x7")](gr("0x13")))return;"elementEnd"==t.type&&c[gr("0x9")](e)&&!c[gr("0x14")](e)&&(e[gr("0x12")]||a[gr("0x1f")]?l&&l.parent==e||(l=e,m(t[gr("0x2")]),g=!0):u=u||t[gr("0x2")])}function m(t){const r=i.writer[gr("0x19")](gr("0x10"),{class:gr("0x18")+e}),x=i[gr("0xa")][gr("0x3")](t);n&&o[gr("0x4")][gr("0x17")](s.markerName)&&i[gr("0x1a")].addClass(gr("0xb"),r),i[gr("0x1a")][gr("0x11")](x,r),i[gr("0xa")][gr("0x0")](r,s[gr("0x8")])}d||g||!u||m(u)}}const pr=["UnderlineEditing","FORMAT_UNDERLINE","*Remove format:* %0","forceValue","SuperscriptEditing","plugins","from","markInlineFormat","toLowerCase","ItalicEditing","registerDescriptionCallback","editor","FORMAT_SUBSCRIPT","commandParams","_descriptionFactory","document","strikethrough","format","FORMAT_CODE","locale","TrackChangesEditing","commands","StrikethroughEditing","get","underline","*Format:* %0","getRanges","afterInit","FORMAT_STRIKETHROUGH","italic","SubscriptEditing","FORMAT_BOLD","code","subscript","superscript","enableCommand","value","selection"];var br,Er;br=pr,Er=296,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]},Tr=["BoldEditing",_r("0x11"),_r("0x8"),"CodeEditing",_r("0x1e"),_r("0x0"),_r("0xc")];class Cr extends t.Plugin{[_r("0x23")](){const t=this[_r("0x13")],e=t.model,n=t[_r("0xd")][_r("0x1f")](_r("0x1c")),o=t[_r("0x1b")];for(const o of Tr){if(!t[_r("0xd")].has(o))continue;const r=o.slice(0,-7)[_r("0x10")](),s=t[_r("0x1d")][_r("0x1f")](r);n[_r("0x5")](r,((t,o={})=>{const i=e[_r("0x17")][_r("0x7")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_r("0xb")]?o.forceValue:!s[_r("0x6")];e.change((()=>{const t=Array[_r("0xe")](i[_r("0x22")]());for(const o of t){const t=x?[o]:mr(r,o,e);for(const e of t)n[_r("0xf")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(t,e){n[_r("0x16")][_r("0x12")]((n=>{const{data:r}=n;if(r&&r.commandName===t)return r[_r("0x15")][0].forceValue?{type:_r("0x19"),content:Yo(o,_r("0x21"),e)}:{type:_r("0x19"),content:Yo(o,_r("0xa"),e)}}))}r("bold",Yo(o,_r("0x1"))),r(_r("0x25"),Yo(o,"FORMAT_ITALIC")),r(_r("0x20"),Yo(o,_r("0x9"))),r(_r("0x2"),Yo(o,_r("0x1a"))),r(_r("0x18"),Yo(o,_r("0x24"))),r(_r("0x3"),Yo(o,_r("0x14"))),r(_r("0x4"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const yr=["afterInit","value","$root","BlockQuoteEditing","name","get","model","TrackChangesEditing","from","forceValue","has","checkChild","schema","locale","format","commands","change","*Remove format:* %0","getSelectedBlocks","parent","enableCommand","markBlockFormat","commandName","registerDescriptionCallback","plugins","ELEMENT_BLOCK_QUOTE","selection","_descriptionFactory","editor","blockQuote","*Format:* %0"];var kr,Ar;kr=yr,Ar=200,function(t){for(;--t;)kr.push(kr.shift())}(++Ar);const vr=function(t,e){return yr[t-=0]};class Rr extends t.Plugin{[vr("0x11")](){const t=this[vr("0xe")],e=t[vr("0x1e")];if(!t.plugins[vr("0x1b")](vr("0x14")))return;const n=t[vr("0xa")][vr("0x16")](vr("0x18")),o=this.editor[vr("0x1")].get(vr("0xf"));n[vr("0x6")]("blockQuote",((e,r={})=>{const s=this[vr("0xe")][vr("0x17")].document[vr("0xc")],i=r&&void 0!==r[vr("0x1a")]?r[vr("0x1a")]:!o[vr("0x12")];let x=[];if(i){const e=Array.from(s[vr("0x4")]()).filter((t=>Ir(t)||function(t,e){const n=e[vr("0x1c")](t[vr("0x5")],vr("0xf")),o=e[vr("0x1c")]([vr("0x13"),"blockQuote"],t);return n&&o}(t,this[vr("0xe")][vr("0x17")][vr("0x1d")])));x=I(e,t[vr("0x17")])}else{const e=Array[vr("0x19")](s[vr("0x4")]()).filter((t=>Ir(t)));x=I(e,t[vr("0x17")])}t[vr("0x17")][vr("0x2")]((()=>{for(const t of x)n[vr("0x7")](t,{commandName:vr("0xf"),commandParams:[{forceValue:i}]})}))})),n[vr("0xd")][vr("0x9")]((t=>{const{data:n}=t;if(n&&vr("0xf")==n[vr("0x8")]){const t=Yo(e,vr("0xb"));return n.commandParams[0][vr("0x1a")]?{type:vr("0x0"),content:Yo(e,vr("0x10"),t)}:{type:vr("0x0"),content:Yo(e,vr("0x3"),t)}}}))}}function Ir(t){return vr("0xf")==t[vr("0x5")][vr("0x15")]}const Sr=["editor","enableCommand","commands","TrackChangesEditing","ckbox","plugins","get"];var Lr,Nr;Lr=Sr,Nr=252,function(t){for(;--t;)Lr.push(Lr.shift())}(++Nr);const wr=function(t,e){return Sr[t-=0]};class Mr extends t.Plugin{afterInit(){const t=this[wr("0x0")];t[wr("0x2")][wr("0x6")](wr("0x4"))&&t[wr("0x5")][wr("0x6")](wr("0x3"))[wr("0x1")](wr("0x4"))}}const Or=["name","commandParams","blockName","filter","plugins","checkChild","enableCommand","forceValue","*Format:* %0","parent","commandName","codeBlock","language","indentCodeBlock","_descriptionFactory","find","languages","document","*Remove format:* %0","outdentCodeBlock","editor","getSelectedBlocks","has","markBlockFormat","afterInit","from","change","commands","registerDescriptionCallback","isLimit","format","model","formatBlock","locale","label","value","get","ELEMENT_CODE_BLOCK"];var Fr,Pr;Fr=Or,Pr=396,function(t){for(;--t;)Fr.push(Fr.shift())}(++Pr);const Dr=function(t,e){return Or[t-=0]};class Br extends t.Plugin{[Dr("0x8")](){const t=this[Dr("0x4")];if(!t[Dr("0x1a")][Dr("0x6")]("CodeBlock"))return;const e=t.plugins[Dr("0x14")]("TrackChangesEditing"),n=t[Dr("0x11")],o=t.config.get(Dr("0x21"))[Dr("0x0")],r=t[Dr("0xb")][Dr("0x14")]("codeBlock");e[Dr("0x1c")](Dr("0x23")),e[Dr("0x1c")](Dr("0x3")),e[Dr("0x1c")](Dr("0x21"),((n,s={})=>{const i=t[Dr("0xf")],x=t[Dr("0xf")][Dr("0x1")].selection,a=s&&void 0!==s[Dr("0x1d")]?s[Dr("0x1d")]:!r[Dr("0x13")];let c;s.language||(s[Dr("0x22")]=o[0][Dr("0x22")]),c=a?Array[Dr("0x9")](x[Dr("0x5")]())[Dr("0x19")]((t=>{return jr(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n[Dr("0xd")](e)&&n[Dr("0x1b")](e[Dr("0x1f")],Dr("0x21")));var e,n})):Array[Dr("0x9")](x.getSelectedBlocks())[Dr("0x19")]((t=>jr(t)));const l=I(c,i);i[Dr("0xa")]((()=>{for(const t of l)e[Dr("0x7")](t,{commandName:Dr("0x21"),commandParams:[{...s,forceValue:a}],formatGroupId:Dr("0x18")})}))})),e[Dr("0x24")].registerElementLabel(Dr("0x21"),(t=>Yo(n,Dr("0x15"),t))),e[Dr("0x24")][Dr("0xc")]((t=>{const e=n.t,{type:r,data:s}=t;if(Dr("0x10")==r&&s&&Dr("0x21")==s[Dr("0x20")]){const t=s[Dr("0x17")][0][Dr("0x22")],r=e(o[Dr("0x25")]((e=>e[Dr("0x22")]===t))[Dr("0x12")]);return s[Dr("0x17")][0].forceValue?{type:"format",content:Yo(n,Dr("0x1e"),Yo(n,Dr("0x15"),1)+" ("+r+")")}:{type:Dr("0xe"),content:Yo(n,Dr("0x2"),Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function jr(t){return Dr("0x21")==t[Dr("0x16")]}const Ur=["TrackChangesEditing","editor","plugins","has","addCommentThread","get"];var Gr,Hr;Gr=Ur,Hr=362,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const Wr=function(t,e){return Ur[t-=0]};class Vr extends t.Plugin{afterInit(){const t=this[Wr("0x5")];t[Wr("0x0")][Wr("0x1")]("CommentsEditing")&&t[Wr("0x0")][Wr("0x3")](Wr("0x4")).enableCommand(Wr("0x2"))}}var zr=n(181);const Kr=["TrackChangesEditing","writer","editor","$graveyard","detach","showSuggestionHighlights","createRange","forward","editing","modifySelection","model","commands","rootName","bind","batch","plugins","unit","merge","uiElement","isCollapsed","high","enableCommand","document","options","downcastDispatcher","enqueueChange","end","start","getFirstRange","removeMarker:suggestion:deletion","addMarker:suggestion:deletion","deleteForward","buffer","createSelection","root","get"];var qr,Xr;qr=Kr,Xr=213,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 requires(){return[zr.Delete]}init(){const t=this[$r("0x5")],e=t[$r("0x12")][$r("0x2")]($r("0x3"));e[$r("0x18")]("delete");const n=t[$r("0xe")][$r("0x2")]($r("0x22"));e[$r("0x18")]($r("0x22"),((e,o={})=>{const r=t[$r("0xd")][$r("0x0")](t.model[$r("0x19")].selection);r[$r("0x16")]&&t[$r("0xd")][$r("0xc")](r,{direction:$r("0xa"),unit:o[$r("0x13")]});const s=r[$r("0x1f")](),x=i.LiveRange.fromRange(s);let a;e(o),a=$r("0x6")==x[$r("0x1")][$r("0xf")]?t.model.createRange(s[$r("0x1e")]):t.model[$r("0x9")](x[$r("0x1e")],x.end),x[$r("0x7")](),t[$r("0xd")][$r("0x1c")](n[$r("0x23")][$r("0x11")],(t=>{n[$r("0x23")].lock(),t.setSelection(t[$r("0x9")](a[$r("0x1d")])),n[$r("0x23")].unlock()}))})),t.editing.downcastDispatcher.on("addMarker:suggestion:deletion",hr(t,"merge"),{priority:"high"}),t.data.downcastDispatcher.on($r("0x21"),((e,n,o)=>{o[$r("0x1a")][$r("0x8")]&&hr(t,$r("0x14"),{showActiveMarker:!1})[$r("0x10")](this)(e,n,o)}),{priority:$r("0x17")}),t[$r("0xb")][$r("0x1b")].on($r("0x20"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e.markerName);if(o)for(const t of o)t.is($r("0x15"))&&(n.mapper.unbindElementFromMarkerName(t,e.markerName),n[$r("0x4")].remove(t))}),{priority:$r("0x17")})}}const Qr=["start","registerCustomCallback","registerElementLabel","parent","end","outdentList","bulletedList","commandParams","containsItem","_suggestionFactory","enableCommand","_descriptionFactory","ELEMENT_","length","numberedList","afterInit","schema","previousSibling","commands","refresh","plugins","map","documentList","ELEMENT_LIST_ITEM","accept","add","createRange","getFirstRange","detach","formatBlock","isObject","ELEMENT_NUMBERED_LIST","deletion","format","from","locale","commandName","markMultiRangeBlockFormat","splitListItemAfter","execute","listIndent","editor","createPositionAt","DocumentListEditing","setSelection","listType","slice","getAttribute","fromRange","indentList","multipleBlocks","selection","next","*Format:* remove from %0","toUpperCase","model","push","_LIST","get","listItemId","document","getSelectedBlocks","splitListItemBefore","mergeListItemForward","has","*Change to:* %0","DocumentListUtils","findIndex","*Format:* insert into %0","nodeAfter","*Merge:* %0","nextSibling","mergeListItemBackward","value","markBlockFormat"];var Zr,Yr;Zr=Qr,Yr=189,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const ts=function(t,e){return Qr[t-=0]};class es extends t.Plugin{[ts("0x33")](){const t=this[ts("0x2")];if(!t[ts("0x38")][ts("0x19")](ts("0x4")))return;const e=t[ts("0x47")],n=t[ts("0x38")][ts("0x13")]("TrackChangesEditing"),o=t.plugins[ts("0x13")](ts("0x1b"));function r(e){return()=>{const r=t[ts("0x36")][ts("0x13")](e);let s=Array.from(t.model.document[ts("0xc")][ts("0x16")]());if(a(e)){s=o.expandListBlocksToCompleteList(s);const t=[];for(const e of s)o.isFirstBlockOfListItem(e)&&t.push(e);s=t}t[ts("0x10")].change((()=>{n[ts("0x49")](s,{commandName:e,commandParams:[{forceValue:!r.value}],formatGroupId:ts("0x6")},[],ts("0x3a"))}))}}function s(e){return()=>{const o=function(t){let e=Array[ts("0x46")](t);const n=e[ts("0x1c")]((t=>!t.hasAttribute(ts("0x14"))));return n>-1&&(e=e[ts("0x7")](0,n)),e}(t.model[ts("0x15")].selection.getSelectedBlocks()),r=o[o[ts("0x31")]-1],s=t[ts("0x10")][ts("0x34")][ts("0x42")](r)?"after":ts("0x28"),i=t[ts("0x10")][ts("0x3e")](t[ts("0x10")][ts("0x3")](o[0],"before"),t.model.createPositionAt(r,s));t[ts("0x10")].change((()=>{n[ts("0x23")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[ts("0x8")]("listIndent")>n[ts("0x8")](ts("0x1"));)e[ts("0x3d")](t),t=t[ts("0x20")]}return Array[ts("0x46")](e)}(o))}))}}function x(e){return()=>{const o=t[ts("0x10")][ts("0x15")].selection[ts("0x16")]()[ts("0xd")]()[ts("0x22")],r=t[ts("0x10")][ts("0x3")](o,"before"),s=t[ts("0x10")].createPositionAt(o,0),i=t[ts("0x10")][ts("0x3e")](r,s);t[ts("0x10")].change((()=>{n[ts("0x23")](i,{commandName:e,commandParams:[],formatGroupId:ts("0x6")})}))}}function a(e){const n=t.commands.get(ts("0x2a"))[ts("0x22")],o=t[ts("0x36")][ts("0x13")](ts("0x32")).value;return ts("0x32")===e?n:o}n[ts("0x2e")](ts("0x32"),r(ts("0x32"))),n.enableCommand("bulletedList",r(ts("0x2a"))),n[ts("0x2e")]("indentList",s(ts("0xa"))),n[ts("0x2e")](ts("0x29"),s(ts("0x29"))),n.enableCommand(ts("0x4a"),x(ts("0x4a"))),n[ts("0x2e")](ts("0x17"),x(ts("0x17"))),n[ts("0x2f")][ts("0x26")]((function(e){const n=!t[ts("0x10")][ts("0x34")][ts("0x42")](e),o=e[ts("0x35")],r=e.nextSibling,s=e[ts("0x8")](ts("0x14")),i=!o||o[ts("0x8")](ts("0x14"))!==s,x=!r||r[ts("0x8")](ts("0x14"))!==s;return n&&Boolean(s)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[ts("0x2f")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,r,s,i;switch(n[ts("0x48")]){case ts("0x2a"):s=n[ts("0x2b")][0].forceValue,i=a(n.commandName),o=ts(s?"0x1d":"0xe"),i&&(o=ts("0x1a")),r={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case ts("0x32"):s=n[ts("0x2b")][0].forceValue,i=a(n.commandName),o=s?"*Format:* insert into %0":ts("0xe"),i&&(o=ts("0x1a")),r={type:"format",content:Yo(e,o,Yo(e,ts("0x43")))};break;case ts("0xa"):o="*Indent:* %0",r={type:ts("0x45"),content:Yo(e,o,Yo(e,ts("0x3b")))};break;case ts("0x29"):o=function(t){const e=t[ts("0x3f")]();let n=e[ts("0x24")][ts("0x1e")];for(;n&&e[ts("0x2c")](n);){if(n[ts("0x8")](ts("0x1"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,ts("0xe"),Yo(e,function(t){const e=t[ts("0x3f")]().start[ts("0x1e")];return ts("0x30")+e[ts("0x8")](ts("0x6"))[ts("0xf")]()+ts("0x12")}(t))):Yo(e,"*Outdent:* %0",Yo(e,ts("0x3b"))),r={type:ts("0x45"),content:o};break;case ts("0x21"):case ts("0x18"):!1===n[ts("0xb")]&&(o=ts("0x1f"),r={type:ts("0x44"),content:Yo(e,o,Yo(e,ts("0x3b")))})}return r})),n[ts("0x2d")][ts("0x25")](ts("0x41"),ts("0x3a"),ts("0x3c"),(function(e,n){const o=[];for(let n of e)n[ts("0x24")][ts("0x1e")]===n[ts("0x28")][ts("0x27")]&&(n=t[ts("0x10")][ts("0x3e")](t[ts("0x10")].createPositionAt(n[ts("0x24")][ts("0x1e")],0))),o[ts("0x11")](n);t[ts("0x10")].change((e=>{const r=t.model[ts("0x15")][ts("0xc")],s=Array[ts("0x46")](r.getRanges())[ts("0x39")]((t=>i.LiveRange[ts("0x9")](t)));e[ts("0x5")](o),t[ts("0x36")].get(n[ts("0x48")])[ts("0x37")](),n[ts("0x2b")].push({forceDefaultExecution:!0}),t[ts("0x0")](n[ts("0x48")],...n.commandParams),e.setSelection(s);for(const t of s)t[ts("0x40")]()}))}))}}var ns=n(331);const os=["hasClass","showSuggestionHighlights","editing","model","selection","markInsertion","enableCommand","commands","markerName","writer","nextSibling","getFirstRange","getFirstPosition","enter","removeMarker:suggestion:insertion","enterBlock","plugins","markerNameToElements","end","remove","detach","options","mapper","setSelection","fire","addMarker:suggestion:insertion","high","init","fromRange","data","ck-suggestion-marker-split","get","createRange"];var rs,ss;rs=os,ss=105,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 requires(){return[ns.Enter]}[is("0x15")](){const t=this.editor,e=t[is("0xa")].get("TrackChangesEditing"),n=t[is("0x1")][is("0x19")](is("0x7"));e[is("0x0")]("enter",(()=>{t.model.change((o=>{const r=t[is("0x1e")].document[is("0x1f")],s=r[is("0x6")](),x=i.LiveRange[is("0x16")](r[is("0x5")]());if(n[is("0x9")](o)){const n=t[is("0x1e")].createPositionAt(s.parent[is("0x4")],0),r=o[is("0x1a")](s,n);e[is("0x20")](r)}else o[is("0x11")](o[is("0x1a")](x[is("0xc")]));x[is("0xe")](),n[is("0x12")]("afterExecute",{writer:o})}))})),t[is("0x1d")].downcastDispatcher.on(is("0x13"),hr(t,"split"),{priority:is("0x14")}),t.editing.downcastDispatcher.on(is("0x8"),((t,e,n)=>{const o=n[is("0x10")][is("0xb")](e[is("0x2")]);if(o)for(const t of o)t[is("0x1b")](is("0x18"))&&(n.mapper.unbindElementFromMarkerName(t,e[is("0x2")]),n[is("0x3")][is("0xd")](t))}),{priority:is("0x14")}),t[is("0x17")].downcastDispatcher.on(is("0x13"),((e,n,o)=>{o[is("0xf")][is("0x1c")]&&hr(t,"split",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:is("0x14")})}}const as=["start","afterInit","findByTextCallback","find","replace","model","enableCommand","TrackChangesEditing","FindAndReplaceUtils","item","findNext","suggestion:deletion","editor","getMarkersGroup","bind","handleFindCommand","string","has","get","plugins","getIntersection","_isInDeletionRange","markers","findPrevious","createRange","createPositionAt","end","getRange"];var cs,ls;cs=as,ls=433,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{[us("0x10")](){if(!this[us("0x1b")][us("0x6")][us("0x4")]("FindAndReplaceEditing"))return;const t=this[us("0x1b")][us("0x6")][us("0x5")](us("0x16"));t[us("0x15")](us("0x12"),this[us("0x2")][us("0x1")](this)),t[us("0x15")](us("0x19")),t.enableCommand(us("0xa")),t[us("0x15")](us("0x13")),t[us("0x15")]("replaceAll")}[us("0x2")](t,e,n={}){const o=this[us("0x1b")][us("0x6")][us("0x5")](us("0x17"));void 0!==n&&t((t=>(us("0x3")==typeof e?o[us("0x11")](e,n):e)(t).filter((e=>!1===this._isInDeletionRange(e,t[us("0x18")])))),n)}[us("0x8")](t,e){const n=this[us("0x1b")][us("0x14")][us("0xb")](this[us("0x1b")][us("0x14")][us("0xc")](e,t[us("0xf")]),this[us("0x1b")][us("0x14")][us("0xc")](e,t[us("0xd")]));for(const t of this[us("0x1b")][us("0x14")][us("0x9")][us("0x0")](us("0x1a")))if(null!==n[us("0x7")](t[us("0xe")]()))return!0;return!1}}const gs=["getRanges","*Reset font color*","toLowerCase","afterInit","*Set font size:* %0","fontFamily","trim","format","fontSize.options","config","get","model","FontBackgroundColorEditing","fontBackgroundColor","*Set font family:* %0","FontSizeEditing","editor","FontFamilyEditing","fontSize","from","locale","registerDescriptionCallback","find","fontColor.colors","commandParams","plugins","TrackChangesEditing","markInlineFormat","FontColorEditing","selection","commandName","label","change","value","title","_enableCommand","*Reset font size*","FontSize","*Set font background color:* %0","_descriptionFactory","document","*Reset font family*","fontBackgroundColor.colors"];var ms,fs;ms=gs,fs=311,function(t){for(;--t;)ms.push(ms.shift())}(++fs);const hs=function(t,e){return gs[t-=0]},ps=[{pluginName:hs("0x5"),commandName:hs("0x8")},{pluginName:hs("0x7"),commandName:hs("0x26")},{pluginName:hs("0x12"),commandName:"fontColor"},{pluginName:hs("0x2"),commandName:hs("0x3")}];class bs extends t.Plugin{[hs("0x24")](){const t=this[hs("0x6")][hs("0xa")];for(const{pluginName:t,commandName:e}of ps)this[hs("0x6")][hs("0xf")].has(t)&&this[hs("0x19")](e);this[hs("0x6")][hs("0xf")][hs("0x0")](hs("0x10"))[hs("0x1d")][hs("0xb")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hs("0x8")==o[hs("0x14")]){const e=o[hs("0xe")][0][hs("0x17")];if(e){const o=n(this[hs("0x6")][hs("0xf")].get(hs("0x1b")).normalizeSizeOptions(this[hs("0x6")][hs("0x2a")].get(hs("0x29")))[hs("0xc")]((t=>t[hs("0x1")]==e))[hs("0x18")])[hs("0x23")]();return{type:hs("0x28"),content:Yo(t,hs("0x25"),o)}}return{type:hs("0x28"),content:Yo(t,hs("0x1a"))}}if(hs("0x26")==o[hs("0x14")]){const e=o[hs("0xe")][0][hs("0x17")];return e?{type:hs("0x28"),content:Yo(t,hs("0x4"),e)}:{type:hs("0x28"),content:Yo(t,hs("0x1f"))}}if("fontColor"==o[hs("0x14")]){const e=o[hs("0xe")][0][hs("0x17")];if(e){const o=(0,r.normalizeColorOptions)(this.editor[hs("0x2a")][hs("0x0")](hs("0xd")))[hs("0xc")]((t=>t[hs("0x1")]==e));let s=e,i="";return o&&(s=o[hs("0x15")],i=n(s).toLowerCase()),{type:"format",content:Yo(t,"*Set font color:* %0",i)[hs("0x27")](),color:{value:e,title:i||s}}}return{type:hs("0x28"),content:Yo(t,hs("0x22"))}}if(hs("0x3")==o[hs("0x14")]){const e=o.commandParams[0].value;if(e){const o=(0,r.normalizeColorOptions)(this[hs("0x6")][hs("0x2a")][hs("0x0")](hs("0x20")))[hs("0xc")]((t=>t[hs("0x1")]==e));let s=e,i="";return o&&(s=o[hs("0x15")],i=n(s)[hs("0x23")]()),{type:hs("0x28"),content:Yo(t,hs("0x1c"),i)[hs("0x27")](),color:{value:e,title:i||s}}}return{type:hs("0x28"),content:Yo(t,"*Reset font background color*")}}}}))}[hs("0x19")](t){const e=this[hs("0x6")];e[hs("0xf")][hs("0x0")](hs("0x10")).enableCommand(t,((n,o={})=>{const r=e[hs("0x1")][hs("0x1e")][hs("0x13")],s=o[hs("0x17")];r.isCollapsed?n(o):e[hs("0x1")][hs("0x16")]((()=>{const n=Array[hs("0x9")](r[hs("0x21")]());for(const o of n){const n=s?[o]:mr(t,o,e[hs("0x1")]);for(const o of n)e.plugins[hs("0x0")](hs("0x10"))[hs("0x11")](o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const Es=["ELEMENT_HEADING_CUSTOM","_descriptionFactory","markBlockFormat","*Change to:* %0","editor","get","change","afterInit","selection","isObject","heading","has","TrackChangesEditing","registerElementLabel","schema","registerDescriptionCallback","format","heading.options","document","ELEMENT_HEADING","formatBlock","blockName","find","locale","config","commandName","filter","title","from","paragraph","value","name","model","match","commandParams","HeadingEditing","checkChild"];var _s,Ts;_s=Es,Ts=480,function(t){for(;--t;)_s.push(_s.shift())}(++Ts);const Cs=function(t,e){return Es[t-=0]};class ys extends t.Plugin{[Cs("0x8")](){const t=this[Cs("0x5")],e=t[Cs("0x18")],n=t[Cs("0x19")][Cs("0x6")](Cs("0x12"));if(!t.plugins[Cs("0xc")](Cs("0x24")))return;const o=t.plugins.get(Cs("0xd"));o.enableCommand(Cs("0xb"),((e,n)=>{const r=n[Cs("0x1f")],s=Array[Cs("0x1d")](this.editor[Cs("0x21")][Cs("0x13")][Cs("0x9")].getSelectedBlocks())[Cs("0x1b")]((t=>{return e=t,n=r,(o=this[Cs("0x5")][Cs("0x21")][Cs("0xf")])[Cs("0x0")](e.parent,n)&&!o[Cs("0xa")](e)&&e[Cs("0x20")]!=n;var e,n,o}));t[Cs("0x21")][Cs("0x7")]((()=>{for(const t of s)o[Cs("0x3")](t,{commandName:Cs("0xb"),commandParams:[n],formatGroupId:Cs("0x16")},fr(t))}))}));for(const t of n)Cs("0x1e")!=t[Cs("0x21")]&&o._descriptionFactory[Cs("0xe")](t[Cs("0x21")],(e=>{const n=ks(t[Cs("0x21")]);return null!==n?r(e,n):s(e,t[Cs("0x1c")])}));function r(t,n){return Yo(e,Cs("0x14"),[t,n])}function s(t,n){return Yo(e,Cs("0x1"),[t,n])}o[Cs("0x2")][Cs("0x10")]((t=>{const{type:o,data:i}=t;if(Cs("0x15")==o&&i&&Cs("0xb")==i[Cs("0x1a")]){const t=i[Cs("0x23")][0][Cs("0x1f")],o=ks(t);if(null!==o)return{type:Cs("0x11"),content:Yo(e,"*Change to:* %0",r(1,o))};const x=n[Cs("0x17")]((e=>e[Cs("0x21")]===t))[Cs("0x1c")];return{type:Cs("0x11"),content:Yo(e,Cs("0x4"),s(1,x))}}}))}}function ks(t){const e=t[Cs("0x22")](/^heading(\d+)$/);return e?e[1]:null}const As=["createRange","getAttribute","TrackChangesEditing","registerDescriptionCallback","commandName","commandParams","find","highlight.options","markInlineFormat","enableCommand","*Set highlight:* %0","plugins","_descriptionFactory","formatInline","editor","format","getLastMatchingPosition","change","FORMAT_HIGHLIGHT","model","getFirstPosition","value","highlight","color","title","isCollapsed","toLowerCase","backward","selection","HighlightEditing","has","get","push"];var vs,Rs;vs=As,Rs=431,function(t){for(;--t;)vs.push(vs.shift())}(++Rs);const Is=function(t,e){return As[t-=0]};class Ss extends t.Plugin{afterInit(){const t=this[Is("0xc")];if(!t.plugins[Is("0x1c")](Is("0x1b")))return;const e=t[Is("0x9")][Is("0x1d")](Is("0x0"));e[Is("0x7")](Is("0x14"),((n,o={})=>{const r=t[Is("0x11")].document[Is("0x1a")],s=r[Is("0x20")]("highlight");let i=o.value,x=[];if(r[Is("0x17")]){const e=r[Is("0x12")]();if(!r.hasAttribute("highlight"))return void n(o);{const n=t=>t.item[Is("0x20")](Is("0x14"))===s,o=e[Is("0xe")](n,{direction:Is("0x19")}),r=e[Is("0xe")](n);x=[t[Is("0x11")][Is("0x1f")](o,r)],i==s&&(i=null)}}else for(const e of r.getRanges())i?x[Is("0x1e")](e):x[Is("0x1e")](...mr(Is("0x14"),e,t.model));t[Is("0x11")][Is("0xf")]((()=>{for(const t of x)e[Is("0x6")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t.locale;e[Is("0xa")][Is("0x1")]((e=>{const{type:o,data:r}=e;if(Is("0xb")==o&&r&&"highlight"==r[Is("0x2")]){const e=n.t,o=r[Is("0x3")][0][Is("0x13")];if(o){const r=t.config[Is("0x1d")](Is("0x5"))[Is("0x4")]((t=>t.model==o)),s=e(r.title)[Is("0x18")]();return{type:Is("0xd"),content:Yo(n,Is("0x8"),s),color:{value:r[Is("0x15")],title:r[Is("0x16")]}}}return{type:"format",content:Yo(n,"*Remove highlight*",Yo(n,Is("0x10")))}}}))}}const Ls=["_descriptionFactory","registerElementLabel","has","plugins","elementToStructure","get","horizontalLine","conversion","addClass","insert","dataDowncast","ELEMENT_HORIZONTAL_LINE","createEmptyElement","TrackChangesEditing","div","afterInit","enableCommand","ck-horizontal-line","showSuggestionHighlights","createPositionAt","createContainerElement"];var Ns,ws;Ns=Ls,ws=348,function(t){for(;--t;)Ns.push(Ns.shift())}(++ws);const Ms=function(t,e){return Ls[t-=0]};class Os extends t.Plugin{[Ms("0x3")](){const t=this.editor;if(!t[Ms("0xc")][Ms("0xb")]("HorizontalLineEditing"))return;t.plugins.get(Ms("0x1"))[Ms("0x4")](Ms("0xf"));const e=t.plugins[Ms("0xe")](Ms("0x1")),n=t.locale;e[Ms("0x9")][Ms("0xa")](Ms("0xf"),(t=>Yo(n,Ms("0x14"),t))),t[Ms("0x10")].for(Ms("0x13"))[Ms("0xd")]({model:Ms("0xf"),view:(t,{writer:e,options:n})=>{if(!n[Ms("0x6")])return null;const o=e[Ms("0x8")](Ms("0x2")),r=e[Ms("0x0")]("hr");return e[Ms("0x11")](Ms("0x5"),o),e[Ms("0x12")](e[Ms("0x7")](o,0),r),o},converterPriority:"high"})}}const Fs=["rawHtmlApi","element","format","htmlEmbed","view","selection","getSelectedElement","getCustomProperty","rawHtml","get","enableCommand","afterInit","plugins","editing","editor","_descriptionFactory","*Change %0 content*","ELEMENT_HTML_EMBED","document","TrackChangesEditing","getAttribute","value","locale"];var Ps,Ds;Ps=Fs,Ds=487,function(t){for(;--t;)Ps.push(Ps.shift())}(++Ds);const Bs=function(t,e){return Fs[t-=0]};class js extends t.Plugin{[Bs("0x7")](){const t=this[Bs("0xa")];if(!t[Bs("0x8")].has("HtmlEmbed"))return;const e=t[Bs("0x8")][Bs("0x5")](Bs("0xf")),n=t[Bs("0x12")],o=t[Bs("0x9")][Bs("0x0")][Bs("0xe")][Bs("0x1")];e[Bs("0xb")].registerElementLabel("rawHtml",(t=>Yo(n,"ELEMENT_HTML_EMBED",t))),t[Bs("0x8")][Bs("0x5")](Bs("0xf"))[Bs("0x6")](Bs("0x16"),((n,r)=>{const s=t.model,i=s[Bs("0xe")].selection;s.change((()=>{const t=function(t){const e=t[Bs("0x2")]();return e&&e.is(Bs("0x14"),Bs("0x4"))?t[Bs("0x2")]():null}(i);if(!t)return void n(null);const s=t[Bs("0x10")](Bs("0x11"))||"";void 0!==r&&r!==s&&(e.markBlockFormat(t,{commandName:Bs("0x16"),commandParams:[r]}),o[Bs("0x2")]()[Bs("0x3")](Bs("0x13")).cancel())}))})),e[Bs("0xb")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Bs("0x16")==e.commandName){const t=Yo(n,Bs("0xd"));return{type:Bs("0x15"),content:Yo(n,Bs("0xc"),t)}}}))}}const Us=["registerElementLabel","markBlockFormat","ELEMENT_CAPTION","imageBlock","_descriptionFactory","plugins","element","getNearestSelectionRange","ImageUtils","chain","imageInline","isIntersecting","suggestion","deletion","selection","registerDescriptionCallback","*Format:* %0","getSuggestions","isBlockImage","isCollapsed","formatBlock","has","getClosestSelectedImageElement","_findSuggestions","insertImage","registerCustomCallback","isEqual","isInContent","schema","getSuggestionCallback","registerPostFixer","getFirstRange","commands","imageStyle","start","forEach","imageTextAlternative","formatInline","shouldConvertImageType","author","accept","isBefore","discard","newValue","nodeBefore","convertBlockImageToInline","forceDefaultExecution","document","convertInlineImageToBlock","width","imageTypeInline","uploadImage","createRange","getAttribute","markDeletion","fromPosition","isOwn","_suggestionFactory","value","change","*Remove image text alternative*","previous","commandReversedParams","get","detach","title","model","*Set image text alternative:* %0","createRangeOn","nodeAfter","removeObject","addObject","forward","getSuggestion","ImageCaptionUtils","discardSuggestion","findIndex","newRange","next","toNext","locale","ImageInlineEditing","toLowerCase","FORMAT_SIDE_IMAGE","join","format","imageStylePreApply","ImageCaptionEditing","imageStylePostApply","imageCaption","toggleImageCaption","commandName","subType","from","caption","hasSuggestion","ImageStyleEditing","refresh","filter","ImageEditing","differ","end","backward","ImageTextAlternativeEditing","type","Block image to inline image","*Set image width:* %0","find","resizeImage","markInsertion","enableCommand","insertion","*Reset image width*","editor","Users","getCaptionFromImageModelElement","getContainedElement","isInlineImage","ELEMENT_INLINE_IMAGE","ImageBlockEditing","commandParams","alt"];var Gs,Hs;Gs=Us,Hs=375,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Ws=function(t,e){return Us[t-=0]};class Vs extends t.Plugin{afterInit(){const t=this[Ws("0x68")];if(!t.plugins[Ws("0xc")](Ws("0x5a")))return;const n=t[Ws("0x76")][Ws("0x36")]("TrackChangesEditing"),o=t[Ws("0x76")][Ws("0x36")](Ws("0x79")),r={},s=t[Ws("0x47")];if(n[Ws("0x65")](Ws("0xf")),n[Ws("0x75")][Ws("0x71")](Ws("0x74"),(t=>Yo(s,"ELEMENT_IMAGE",t))),n[Ws("0x75")][Ws("0x71")](Ws("0x1"),(t=>Yo(s,Ws("0x6d"),t))),n[Ws("0x75")][Ws("0x71")](Ws("0x55"),(()=>Yo(s,Ws("0x73")))),t.plugins[Ws("0xc")]("ImageUploadEditing")&&n[Ws("0x65")](Ws("0x2a")),t[Ws("0x76")][Ws("0xc")](Ws("0x6e"))&&t[Ws("0x76")].has(Ws("0x48"))&&(n[Ws("0x65")](Ws("0x29"),((e,r)=>{const s=o[Ws("0xd")](t[Ws("0x39")][Ws("0x26")].selection);t.model.change((()=>{n[Ws("0x72")](s,{commandName:Ws("0x29"),commandParams:[r]},[],Ws("0x24"))}))})),n.enableCommand("imageTypeBlock",((e,r)=>{t.model[Ws("0x32")]((s=>{let x=o[Ws("0xd")](t[Ws("0x39")][Ws("0x26")].selection),a=s[Ws("0x3b")](x);const c=i.LivePosition[Ws("0x2e")](a[Ws("0x19")],"toPrevious"),l=i.LivePosition.fromPosition(a[Ws("0x5c")],Ws("0x46"));n[Ws("0x25")]((()=>e(r))),x=o[Ws("0xd")](t[Ws("0x39")][Ws("0x26")][Ws("0x5")]),a=s[Ws("0x3b")](x);const u=s.createRange(c,l);c[Ws("0x37")](),l[Ws("0x37")](),n[Ws("0x72")](x,{commandName:Ws("0x29"),commandParams:[]},[],Ws("0x27")),u.start[Ws("0x20")](a[Ws("0x19")])&&n.markInsertion(s[Ws("0x2b")](u[Ws("0x19")],a[Ws("0x19")]),Ws("0x27")),a[Ws("0x5c")][Ws("0x20")](u[Ws("0x5c")])&&n[Ws("0x64")](s[Ws("0x2b")](a[Ws("0x5c")],u[Ws("0x5c")]),Ws("0x27"))}))})),n[Ws("0x30")][Ws("0x10")](Ws("0xb"),Ws("0x27"),"join",(()=>{})),n[Ws("0x30")][Ws("0x10")]("formatBlock",Ws("0x27"),Ws("0x1f"),(()=>{})),n[Ws("0x30")][Ws("0x10")](Ws("0xb"),Ws("0x27"),Ws("0x21"),n._suggestionFactory[Ws("0x14")](Ws("0xb"),"",Ws("0x1f"))),n[Ws("0x30")][Ws("0x10")]("insertion","convertInlineImageToBlock",Ws("0x4b"),(()=>{})),n[Ws("0x30")][Ws("0x10")](Ws("0x66"),Ws("0x27"),"discard",(([e])=>{const o=n._suggestionFactory[Ws("0x14")](Ws("0x66"),"",Ws("0x21"));let r=e.start,s=e[Ws("0x5c")];const i=t[Ws("0x39")][Ws("0x13")][Ws("0x78")](r,Ws("0x5d")),x=t.model[Ws("0x13")][Ws("0x78")](s,Ws("0x3f"));i[Ws("0xa")]&&(r=i[Ws("0x19")]),x[Ws("0xa")]&&(s=x.end),o([t.model[Ws("0x2b")](r,s)])})),n[Ws("0x30")][Ws("0x10")]("formatBlock",Ws("0x27"),Ws("0x0"),c),n[Ws("0x30")][Ws("0x10")](Ws("0x66"),Ws("0x27"),Ws("0x0"),c)),t.plugins[Ws("0xc")](Ws("0x4e"))&&(n[Ws("0x65")](Ws("0x51"),((e,r)=>{const s=t[Ws("0x76")][Ws("0x36")](Ws("0x41"));let i=o[Ws("0xd")](t.model[Ws("0x26")].selection),x=s.getCaptionFromImageModelElement(i);t.model[Ws("0x32")]((()=>{if(x)return void n[Ws("0x2d")](t[Ws("0x39")][Ws("0x3b")](x));const a=o.isBlockImage(i);e(r),i=o[Ws("0xd")](t[Ws("0x39")][Ws("0x26")][Ws("0x5")]),x=s[Ws("0x6a")](i),n[Ws("0x64")](t[Ws("0x39")][Ws("0x3b")](x),a?null:Ws("0x50"))}))})),n._suggestionFactory[Ws("0x10")](Ws("0x66"),Ws("0x50"),Ws("0x0"),c)),t[Ws("0x76")][Ws("0xc")](Ws("0x57"))){n[Ws("0x65")](Ws("0x18"),((r,s)=>{const i=t[Ws("0x76")][Ws("0x36")](Ws("0x69")).me,x=t[Ws("0x17")][Ws("0x36")]("imageStyle");let a=o[Ws("0xd")](t[Ws("0x39")][Ws("0x26")][Ws("0x5")]),c=t[Ws("0x39")].createRangeOn(a),l=x.value;if(l==s[Ws("0x31")])return;const u={commandName:Ws("0x18"),commandParams:[s],formatGroupId:(0,e.uid)()};t[Ws("0x39")][Ws("0x32")]((()=>{if(n[Ws("0x8")]()[Ws("0x59")]((t=>t[Ws("0x12")]&&i==t[Ws("0x1e")]&&(Ws("0xb")==t[Ws("0x5f")]||Ws("0x1c")==t.type)&&(Ws("0x4d")==t[Ws("0x53")]||Ws("0x4f")==t[Ws("0x53")])&&t[Ws("0x16")]()[Ws("0x11")](c)))[Ws("0x1a")]((t=>n[Ws("0x42")](t.head))),a=o.getClosestSelectedImageElement(t[Ws("0x39")][Ws("0x26")][Ws("0x5")]),c=t[Ws("0x39")][Ws("0x3b")](a),x.refresh(),t[Ws("0x17")].get(Ws("0x29"))[Ws("0x58")](),t[Ws("0x17")][Ws("0x36")]("imageTypeBlock")[Ws("0x58")](),l=x.value,l!=s[Ws("0x31")])return o[Ws("0x6c")](a)&&x[Ws("0x1d")](s.value,a)?(r(s),a=o[Ws("0xd")](t[Ws("0x39")].document[Ws("0x5")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o.isBlockImage(a)?n[Ws("0x72")](a,u,[],Ws("0x4f")):n.markInlineFormat(c,u,Ws("0x4f")))}))}));for(const e of t[Ws("0x76")][Ws("0x36")](Ws("0x57")).normalizedStyles)r[e.name]=e[Ws("0x38")][Ws("0x49")]();n[Ws("0x30")].registerCustomCallback("formatBlock",Ws("0x4d"),Ws("0x4b"),(()=>{})),n._suggestionFactory[Ws("0x10")](Ws("0xb"),Ws("0x4f"),Ws("0x4b"),(()=>{})),n[Ws("0x30")][Ws("0x10")]("formatInline",Ws("0x4f"),"join",(()=>{})),n[Ws("0x30")][Ws("0x10")]("formatBlock",Ws("0x4d"),Ws("0x1f"),(()=>{})),n[Ws("0x30")][Ws("0x10")](Ws("0xb"),Ws("0x4d"),"discard",((t,e)=>{n._suggestionFactory.getSuggestionCallback(Ws("0xb"),"",Ws("0x1f"))(t,{commandName:e.commandName,commandParams:e[Ws("0x35")]})})),n[Ws("0x30")][Ws("0x10")]("formatBlock",Ws("0x4d"),Ws("0x0"),c)}const x=[{type:Ws("0xb"),subType:Ws("0x4d")},{type:Ws("0x66"),subType:Ws("0x50")},{type:Ws("0xb"),subType:Ws("0x27")},{type:Ws("0x66"),subType:Ws("0x27")}];function a(t,e){const r=x[Ws("0x43")]((({type:e,subType:n})=>t[Ws("0x5f")]==e&&t[Ws("0x53")]==n)),s=x[Ws("0x43")]((({type:t,subType:n})=>e[Ws("0x5f")]==t&&e[Ws("0x53")]==n));if(r<0||s<0)return!1;const i=t[Ws("0x16")](),a=e.getFirstRange();if((0==r||1==r)&&2==s&&i[Ws("0x2")](a))return!0;if(2==r&&3==s){const t=n[Ws("0xe")](i,Ws("0x66"))[Ws("0x59")]((({suggestion:t,meta:e})=>e[Ws("0x2f")]&&Ws("0x27")==t.subType));if(t.length>1&&a[Ws("0x5c")].isEqual(i.start))return!0;if(1==t.length&&(i.start[Ws("0x11")](a[Ws("0x5c")])||i.end[Ws("0x11")](a[Ws("0x19")])))return!0}if(3==r&&3==s&&i.start.isBefore(a.start)){const t=i[Ws("0x5c")][Ws("0x3c")],e=a[Ws("0x19")][Ws("0x23")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Ws("0x39")][Ws("0x26")][Ws("0x15")]((()=>{let e=!1;const r=Array[Ws("0x54")](t[Ws("0x39")][Ws("0x26")][Ws("0x5b")].getChangedMarkers());for(const{name:t,data:s}of r){const{group:r,type:i,subType:x,id:a}=n._splitMarkerName(t);if(Ws("0x3")==r&&n[Ws("0x56")](a)){if(Ws("0xb")==i&&(Ws("0x4d")==x||Ws("0x4f")==x)){const t=n[Ws("0x40")](a);if(s[Ws("0x44")]){const r=t[Ws("0x16")]().getContainedElement();if(o[Ws("0x9")](r))continue;n.discardSuggestion(t),e=!0}}if(Ws("0x66")==i&&"imageCaption"==x&&!s[Ws("0x44")]){const t=n.getSuggestion(a);t[Ws("0x45")]&&t.next[Ws("0x12")]&&(n[Ws("0x42")](t[Ws("0x45")]),e=!0)}}}return e})),t.plugins[Ws("0xc")]("ImageResize")&&n.enableCommand(Ws("0x63"),((e,r)=>{const s=o[Ws("0xd")](t[Ws("0x39")].document[Ws("0x5")]);s[Ws("0x2c")](Ws("0x28"))!=r[Ws("0x28")]&&t.model[Ws("0x32")]((()=>{n[Ws("0x72")](s,{commandName:"resizeImage",commandParams:[r]})}))})),t[Ws("0x76")].has(Ws("0x5e"))&&n[Ws("0x65")](Ws("0x1b"),((e,r)=>{const s=o[Ws("0xd")](t[Ws("0x39")][Ws("0x26")][Ws("0x5")]);(s.hasAttribute(Ws("0x70"))?s[Ws("0x2c")](Ws("0x70")):"")!=r.newValue&&t[Ws("0x39")].change((()=>{n.markBlockFormat(s,{commandName:Ws("0x1b"),commandParams:[r]})}))})),n._descriptionFactory[Ws("0x6")]((t=>{if(x[Ws("0x62")]((({type:e,subType:n})=>t.type==e&&t.subType==n)))return t[Ws("0x34")]?{}:void 0})),n[Ws("0x75")][Ws("0x6")]((t=>{if(Ws("0x66")==t.type||Ws("0x4")==t.type){const e=t[Ws("0x6b")]();if(e&&e.is(Ws("0x77"),Ws("0x55")))return{type:"insertion"==t.type?Ws("0x3e"):Ws("0x3d"),element:e,quantity:1}}})),n._descriptionFactory.registerDescriptionCallback((t=>Ws("0xb")==t[Ws("0x5f")]&&Ws("0x27")==t.subType?{type:Ws("0x4c"),content:"Inline image to block image"}:Ws("0xb")==t[Ws("0x5f")]&&Ws("0x24")==t[Ws("0x53")]?{type:Ws("0x4c"),content:Ws("0x60")}:void 0)),n[Ws("0x75")][Ws("0x6")]((t=>{const{data:e}=t;if(e){if(Ws("0x18")==e.commandName){const t=e[Ws("0x6f")][0][Ws("0x31")];return n="side"===t?Yo(s,Ws("0x4a")):r[t]||t,{type:Ws("0x4c"),content:Yo(s,Ws("0x7"),n)}}if(Ws("0x1b")==e[Ws("0x52")]){const t=e[Ws("0x6f")][0][Ws("0x22")];return t?{type:"format",content:Yo(s,Ws("0x3a"),'"'+t+'"')}:{type:Ws("0x4c"),content:Yo(s,Ws("0x33"))}}if("resizeImage"==e[Ws("0x52")]){const t=e[Ws("0x6f")][0].width;return t?{type:Ws("0x4c"),content:Yo(s,Ws("0x61"),t)}:{type:"format",content:Yo(s,Ws("0x67"))}}}var n}))}}const zs=["discard","getSelectedElement","handleReplaceImageCommand","src","subType","*Format:* replace image URL","source","afterInit","document","TrackChangesEditing","editor","data","_descriptionFactory","enableCommand","getSuggestionCallback","handleSuggestionDescription","change","model","accept","replaceImageSource","Users","locale","format","plugins","ImageEditing","_suggestionFactory","commandParams","commandName","getAttribute","formatBlock","get","getSuggestions","markBlockFormat","author"];var Ks,qs;Ks=zs,qs=210,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return zs[t-=0]};class $s extends t.Plugin{[Xs("0x1")](){if(!this[Xs("0x4")][Xs("0x11")].has(Xs("0x12")))return;const t=this.editor.plugins.get(Xs("0x3"));t[Xs("0x7")](Xs("0xd"),((t,e)=>this[Xs("0x1e")](t,e))),t[Xs("0x13")].registerCustomCallback("formatBlock","replaceImageSource",Xs("0xc"),t[Xs("0x13")][Xs("0x8")](Xs("0x17"),null,"discard")),t._suggestionFactory.registerCustomCallback("formatBlock",Xs("0xd"),Xs("0x1c"),t[Xs("0x13")][Xs("0x8")]("formatBlock",null,Xs("0xc"))),t[Xs("0x6")].registerDescriptionCallback((t=>this[Xs("0x9")](t)))}[Xs("0x1e")](t,e){const n=this.editor.plugins[Xs("0x18")](Xs("0x3")),o=this[Xs("0x4")][Xs("0xb")][Xs("0x2")].selection[Xs("0x1d")]();this[Xs("0x4")][Xs("0xb")][Xs("0xa")]((()=>{let r=o[Xs("0x16")](Xs("0x1f"));const s=this[Xs("0x4")][Xs("0x11")][Xs("0x18")](Xs("0xe")).me;for(const t of n[Xs("0x19")]({skipNotAttached:!0})){const e=t.getContainedElement();if(Xs("0xd")===t[Xs("0x20")]&&e===o){t[Xs("0x1b")]!==s&&t.discard(),r=t[Xs("0x5")][Xs("0x14")][0][Xs("0x0")];break}}t(e),n[Xs("0x1a")](o,{commandName:"replaceImageSource",commandParams:[{source:r}]},[],"replaceImageSource")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&Xs("0xd")===e[Xs("0x15")]){const t=Xs("0x21");return{type:Xs("0x10"),content:Yo(this[Xs("0x4")][Xs("0xf")],t)}}}}const Js=["_setSuggestionData","TrackChangesEditing","Users","_trackChangesValueDuringImport","editor","execute","commands","forEach","trackChanges","_handleImportedData","plugins","get","dataInsert","listenTo","bind","lowest","_trackChangesExecuted","collaboration_features","high","importWord","track_changes"];var Qs,Zs;Qs=Js,Zs=327,function(t){for(;--t;)Qs.push(Qs.shift())}(++Zs);const Ys=function(t,e){return Js[t-=0]};class ti extends t.Plugin{constructor(t){super(t),this[Ys("0xc")]=!1,this._trackChangesExecuted=!1}afterInit(){const t=this[Ys("0xd")],e=t[Ys("0xf")].get(Ys("0x7")),n=t.commands[Ys("0x14")](Ys("0x11"));e&&(e.on(Ys("0xe"),((t,[,e])=>{this._trackChangesValueDuringImport=n.value,e[Ys("0x5")][Ys("0x8")]=!this[Ys("0xc")]}),{priority:Ys("0x6")}),this[Ys("0x1")](e,Ys("0x0"),this._handleImportedData[Ys("0x2")](this)),this[Ys("0x1")](e,Ys("0x0"),(()=>{this[Ys("0x4")]&&(n[Ys("0xe")](),this[Ys("0x4")]=!1)}),{priority:Ys("0x3")}),t.plugins[Ys("0x14")](Ys("0xa")).enableCommand("importWord"))}[Ys("0x12")](t,e){const{suggestions:n}=e,o=this[Ys("0xd")][Ys("0xf")][Ys("0x14")]("trackChanges"),r=o.value;this[Ys("0xc")]!==r&&(o[Ys("0xe")](),this[Ys("0x4")]=!0),n&&n[Ys("0x10")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this.editor[Ys("0x13")][Ys("0x14")](Ys("0xb")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:Ys("0x7")}}};this[Ys("0xd")][Ys("0x13")][Ys("0x14")](Ys("0xa"))[Ys("0x9")](r)}))}}const ei=["model","from","getItemLabel","checkAttribute","has","markBlockFormat","schema","selection","document","change","plugins","*Indent:* %0","locale","indent","editor","registerDescriptionCallback","afterInit","outdentBlock","IndentEditing","enableCommand","blockIndent","indentBlock","filter","IndentBlock","get","*Outdent:* %0","_descriptionFactory","TrackChangesEditing","commandName","format"];var ni,oi;ni=ei,oi=275,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class si extends t.Plugin{[ri("0xb")](){const t=this.editor,e=t[ri("0x5")][ri("0x13")](ri("0x16"));t[ri("0x5")][ri("0x1d")](ri("0xd"))&&(e[ri("0xe")](ri("0x8")),e[ri("0xe")]("outdent"));const n=t[ri("0x7")];if(t[ri("0x5")][ri("0x1d")](ri("0x12"))){for(const n of[ri("0x10"),ri("0xc")])e.enableCommand(n,(()=>{const o=Array[ri("0x1a")](this[ri("0x9")][ri("0x19")][ri("0x3")][ri("0x2")].getSelectedBlocks())[ri("0x11")]((t=>this[ri("0x9")][ri("0x19")][ri("0x1")][ri("0x1c")](t,ri("0xf"))));t[ri("0x19")][ri("0x4")]((()=>{for(const t of o)e[ri("0x0")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[ri("0x15")][ri("0xa")]((t=>{const{data:o}=t;if(!o)return;if(ri("0x10")!=o.commandName&&"outdentBlock"!=o[ri("0x17")])return;const r=t.getItems()[0],s=e._descriptionFactory[ri("0x1b")](r);return ri("0x10")==o[ri("0x17")]?{type:ri("0x18"),content:Yo(n,ri("0x6"),s)}:ri("0xc")==o.commandName?{type:ri("0x18"),content:Yo(n,ri("0x14"),s)}:void 0}))}}}var ii,xi,ai=["editor","input","TrackChangesEditing","enableCommand","plugins","init","requires"];ii=ai,xi=287,function(t){for(;--t;)ii.push(ii.shift())}(++xi);var ci=function(t,e){return ai[t-=0]};class li extends t.Plugin{static get[ci("0x6")](){return[zr.Input]}[ci("0x5")](){this[ci("0x0")][ci("0x4")].get(ci("0x2"))[ci("0x3")](ci("0x1"))}}const ui=["afterInit","getFirstPosition","isCollapsed","getRanges","registerDescriptionCallback","model","enableCommand","*Remove link*","TrackChangesEditing","format","*Set link:* %0","linkHref","editor","LinkEditing","unlink","getAttribute","markInlineFormat","from","hasAttribute","link","locale","getFirstRange","selection","commandName","change","plugins","document","_descriptionFactory"];var di,gi;di=ui,gi=277,function(t){for(;--t;)di.push(di.shift())}(++gi);const mi=function(t,e){return ui[t-=0]};class fi extends t.Plugin{[mi("0x3")](){const t=this.editor;if(!t[mi("0x0")].has(mi("0x10")))return;const e=t[mi("0x0")].get(mi("0xb"));e[mi("0x9")](mi("0x16"),((n,o)=>{const r=t[mi("0x8")][mi("0x1")][mi("0x19")];let s=[];if(r[mi("0x5")]){if(!r[mi("0x15")](mi("0xe")))return void n(o);{const e=(0,zr.findAttributeRange)(r[mi("0x4")](),mi("0xe"),r[mi("0x12")]("linkHref"),t[mi("0x8")]);s=[e]}}else s=Array[mi("0x14")](r[mi("0x6")]());t[mi("0x8")][mi("0x1b")]((()=>{for(const t of s)e.markInlineFormat(t,{commandName:mi("0x16"),commandParams:[o]})}))})),e.enableCommand(mi("0x11"),(()=>{const n=this[mi("0xf")][mi("0x8")],o=n[mi("0x1")][mi("0x19")];n[mi("0x1b")]((()=>{let n=[];n=o[mi("0x5")]?[(0,zr.findAttributeRange)(o[mi("0x4")](),"linkHref",o[mi("0x12")](mi("0xe")),t[mi("0x8")])]:mr(mi("0xe"),o[mi("0x18")](),t.model);for(const t of n)e[mi("0x13")](t,{commandName:mi("0x11"),commandParams:[]})}))})),e[mi("0x2")][mi("0x7")]((e=>{const{data:n}=e,o=t[mi("0x17")];if(n){if(mi("0x16")==n[mi("0x1a")]){const t=n.commandParams[0];return{type:mi("0xc"),content:Yo(o,mi("0xd"),'"'+t+'"')}}return mi("0x11")==n[mi("0x1a")]?{type:mi("0xc"),content:Yo(o,mi("0xa"))}:void 0}}))}}const hi=["editor","checkChild","ELEMENT_LIST_ITEM","listType","checkTodoList","value","model","from","push","*Uncheck item*","execute","createRange","numbered","getSelectedBlocks","*Change to:* %0","ELEMENT_TODO_LIST","ListEditing","has","todo","format","listItem","element","bulleted","indentList","*Check item*","numberedList","todoList","bulletedList","blockName","commands","List","name","slice","getAttribute","todoListChecked","TrackChangesEditing","*Indent:* %0","add","plugins","listIndent","nextSibling","_descriptionFactory","enableCommand","get","commandName","ELEMENT_NUMBERED_LIST","previousSibling","filter","parent","outdentList","createPositionAt","registerDescriptionCallback","paragraph","commandParams","forceValue","document","afterInit","_selectedElements","isObject","length","before","replace","change","schema","TodoListEditing"];var pi,bi;pi=hi,bi=413,function(t){for(;--t;)pi.push(pi.shift())}(++bi);const Ei=function(t,e){return hi[t-=0]};class _i extends t.Plugin{[Ei("0x21")](){const t=this[Ei("0x2a")],e=t.locale;if(!t[Ei("0xf")][Ei("0x3b")](Ei("0x3a")))return;const n=t[Ei("0xf")][Ei("0x14")](Ei("0xc")),o=t[Ei("0xf")][Ei("0x3b")](Ei("0x29"));function r(e){return()=>{const o=t.model.document.selection,r=t[Ei("0x6")][Ei("0x14")](e);if(r[Ei("0x2f")])return void t[Ei("0x34")](Ei("0x1d"),{});const s=e.slice(0,-4),i=function(t,e,n){let o=Array.from(t)[Ei("0x18")]((t=>{return e=t,(o=n)[Ei("0x2b")](e[Ei("0x19")],Ei("0x3e"))&&!o[Ei("0x23")](e);var e,o}));o=o[Ei("0x18")]((t=>!t.is(Ei("0x3f"),"listItem")||t[Ei("0xa")](Ei("0x2d"))!=e));const r=new Set;for(const t of o)t.is(Ei("0x3f"),"listItem")?r.add(Ti(t)):r[Ei("0xe")](t);return Array[Ei("0x31")](r)}(o[Ei("0x37")](),s,t[Ei("0x30")][Ei("0x28")]);t[Ei("0x30")][Ei("0x27")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!r[Ei("0x2f")]}],formatGroupId:Ei("0x5")},Ci(t))}))}}function s(e){return()=>{const o=function(t){let e=Array[Ei("0x31")](t);const n=e.findIndex((t=>Ei("0x3e")!=t[Ei("0x8")]));return n>-1&&(e=e[Ei("0x9")](0,n)),e}(t.model[Ei("0x20")].selection[Ei("0x37")]()),r=t[Ei("0x30")][Ei("0x35")](t.model.createPositionAt(o[0],Ei("0x25")),t[Ei("0x30")][Ei("0x1b")](o[o[Ei("0x24")]-1],"end"));t[Ei("0x30")][Ei("0x27")]((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t.getAttribute(Ei("0x10"))>n[Ei("0xa")](Ei("0x10"));)e.add(t),t=t[Ei("0x11")]}return Array[Ei("0x31")](e)}(o))}))}}n[Ei("0x13")](Ei("0x2"),r(Ei("0x2"))),n[Ei("0x13")](Ei("0x4"),r("bulletedList")),o&&n[Ei("0x13")]("todoList",r(Ei("0x3"))),n[Ei("0x13")](Ei("0x0"),s(Ei("0x0"))),n[Ei("0x13")](Ei("0x1a"),s(Ei("0x1a"))),o&&n.enableCommand("checkTodoList",(()=>{const e=t[Ei("0x6")][Ei("0x14")](Ei("0x2e")),o=Array.from(e[Ei("0x22")]);o.filter((t=>t.getAttribute(Ei("0xb"))!=e[Ei("0x2f")])),t[Ei("0x30")][Ei("0x27")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:Ei("0x2e"),commandParams:[{forceValue:!e[Ei("0x2f")]}]})}))})),n[Ei("0x12")].registerElementLabel(Ei("0x3e"),(t=>Yo(e,Ei("0x2c"),t))),n[Ei("0x12")][Ei("0x1c")]((t=>{const{data:n}=t;if(n){if("numberedList"==n[Ei("0x15")]||Ei("0x4")==n[Ei("0x15")]||Ei("0x3")==n[Ei("0x15")])switch(n[Ei("0x15")][Ei("0x26")](Ei("0x7"),"")){case Ei("0x40"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case Ei("0x36"):return o(Yo(e,Ei("0x16")));case Ei("0x3c"):return o(Yo(e,Ei("0x39")))}if(Ei("0x0")==n[Ei("0x15")])return{type:Ei("0x3d"),content:Yo(e,Ei("0xd"),Yo(e,Ei("0x2c")))};if(Ei("0x1a")==n.commandName)return{type:Ei("0x3d"),content:Yo(e,"*Outdent:* %0",Yo(e,Ei("0x2c")))};if(Ei("0x2e")==n.commandName)return n[Ei("0x1e")][0][Ei("0x1f")]?{type:Ei("0x3d"),content:Yo(e,Ei("0x1"))}:{type:Ei("0x3d"),content:Yo(e,Ei("0x33"))}}function o(t){return{type:Ei("0x3d"),content:Yo(e,Ei("0x38"),t)}}}))}}function Ti(t){const e=t[Ei("0xa")]("listIndent");if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ei("0x17")].is(Ei("0x3f"),"listItem");){const o=t[Ei("0x17")][Ei("0xa")](Ei("0x10"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[Ei("0x17")]}return n}function Ci(t){const e=[];if(t.is(Ei("0x3f"),Ei("0x3e"))&&t[Ei("0xa")]("listIndent")>0){let n=t[Ei("0x11")];for(;n&&Ei("0x3e")==n.name&&n[Ei("0xa")]("listIndent")==t[Ei("0xa")](Ei("0x10"));)e[Ei("0x32")](n),n=n[Ei("0x11")]}return e}const yi=["commandParams","createPositionAt","*Change to:* %0","getFirstPosition","has","editor","*Format:* set order to regular","listType","before","handleListReversedCommand","from","replace","selection","getSiblingNodes","listStyle","*Format:* set order to reversed","getLastPosition","getSelectedBlocks","registerDescriptionCallback","_descriptionFactory","handleListStartCommand","model","listReversed","flat","TrackChangesEditing","ELEMENT_","filter","_getTranslationKeyForListStyle","commandName","length","type","ListUtils","handleListStyleCommand","element","numbered","list.properties","afterInit","locale","toUpperCase","plugins","bind","reversed","map","parent","document","createRange","listItem","_getSuggestionBlocks","format","get","change","markMultiRangeBlockFormat","handleDescriptions","forward","startIndex","_getSuggestionBlocksForListStyle","listStart","enableCommand","backward","ListPropertiesEditing"];var ki,Ai;ki=yi,Ai=233,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x2b")](){if(!this[vi("0xc")][vi("0x2e")][vi("0xb")](vi("0x6")))return;const t=this[vi("0xc")].config[vi("0x38")](vi("0x2a")),e=this[vi("0xc")][vi("0x2e")][vi("0x38")](vi("0x1f"));t.styles&&e[vi("0x4")](vi("0x15"),this[vi("0x27")].bind(this)),t[vi("0x30")]&&e[vi("0x4")](vi("0x1d"),this[vi("0x10")].bind(this)),t[vi("0x1")]&&e.enableCommand(vi("0x3"),this.handleListStartCommand[vi("0x2f")](this)),e[vi("0x1a")][vi("0x19")](this[vi("0x3b")][vi("0x2f")](this))}[vi("0x27")](t,e={}){const n=this[vi("0xc")].plugins[vi("0x38")](vi("0x1f")),o=this[vi("0x2")]();this[vi("0xc")][vi("0x1c")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:vi("0x15"),commandParams:[{type:e[vi("0x25")]}],formatGroupId:vi("0x15")})}))}[vi("0x10")](t,e={}){const n=this.editor[vi("0x2e")][vi("0x38")](vi("0x1f")),o=this._getSuggestionBlocks((t=>t.is("element",vi("0x35"))&&vi("0x29")===t.getAttribute("listType")));if(o[vi("0x24")]<1)return;const r=o[vi("0x31")]((t=>this[vi("0xc")][vi("0x1c")][vi("0x34")](this[vi("0xc")].model[vi("0x8")](t,vi("0xf")),this[vi("0xc")][vi("0x1c")][vi("0x8")](t,0))));this[vi("0xc")].model[vi("0x39")]((()=>{n[vi("0x3a")](r,{commandName:vi("0x1d"),commandParams:[{reversed:e[vi("0x30")]}],formatGroupId:vi("0x1d")})}))}[vi("0x1b")](t,e={}){const n=this[vi("0xc")][vi("0x2e")].get("TrackChangesEditing"),o=this[vi("0x36")]((t=>t.is(vi("0x28"),"listItem")&&"numbered"===t.getAttribute(vi("0xe"))));if(o[vi("0x24")]<1)return;const r=o[vi("0x31")]((t=>this.editor[vi("0x1c")][vi("0x34")](this[vi("0xc")][vi("0x1c")][vi("0x8")](t,vi("0xf")),this[vi("0xc")][vi("0x1c")].createPositionAt(t,0))));this[vi("0xc")][vi("0x1c")].change((()=>{n[vi("0x3a")](r,{commandName:vi("0x3"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[vi("0x3b")](t){const e=this[vi("0xc")][vi("0x2c")],{data:n}=t;if(!n)return;let o,r;switch(n[vi("0x23")]){case vi("0x15"):o=vi("0x9"),r={type:vi("0x37"),content:Yo(e,o,Yo(e,this[vi("0x22")](n[vi("0x7")][0].type)))};break;case vi("0x1d"):o=n[vi("0x7")][0].reversed?vi("0x16"):vi("0xd"),r={type:vi("0x37"),content:Yo(e,o)};break;case vi("0x3"):o="*Format:* set start index to %0",r={type:"format",content:Yo(e,o,n[vi("0x7")][0][vi("0x1")])}}return r}_getSuggestionBlocksForListStyle(){var t,e,n,o;const r=this[vi("0xc")][vi("0x2e")][vi("0x38")]("ListUtils");let s=Array.from(this[vi("0xc")].model.document[vi("0x13")][vi("0x18")]());return(null===(t=s[0])||void 0===t?void 0:t.is(vi("0x28"),"listItem"))&&s.unshift(...r.getSiblingNodes(this[vi("0xc")][vi("0x1c")].document[vi("0x13")][vi("0xa")](),vi("0x5"))),(null===(e=s[s.length-1])||void 0===e?void 0:e.is("element",vi("0x35")))&&s.push(...r[vi("0x14")](this[vi("0xc")][vi("0x1c")][vi("0x33")][vi("0x13")][vi("0x17")](),vi("0x0"))),s=[...new Set(s)],(null===(o=null===(n=this[vi("0xc")][vi("0x1c")][vi("0x33")][vi("0x13")][vi("0xa")]())||void 0===n?void 0:n[vi("0x32")])||void 0===o?void 0:o.is("element",vi("0x35")))&&(s=s.filter((t=>t.is(vi("0x28"),vi("0x35"))))),s}[vi("0x36")](t){const e=this[vi("0xc")][vi("0x2e")][vi("0x38")](vi("0x26"));let n=Array[vi("0x11")](this.editor[vi("0x1c")][vi("0x33")][vi("0x13")][vi("0x18")]())[vi("0x21")](t)[vi("0x31")]((t=>{const n=this.editor.model[vi("0x8")](t,0);return[...e[vi("0x14")](n,vi("0x5")),...e[vi("0x14")](n,vi("0x0"))]}))[vi("0x1e")]();return n=[...new Set(n)],n}[vi("0x22")](t){return vi("0x20")+this[vi("0xc")][vi("0x2e")][vi("0x38")](vi("0x26")).getListTypeFromListStyleType(t)[vi("0x2d")]()+"_LIST_"+t[vi("0x2d")]()[vi("0x12")](/-/g,"_")}}const Ii=["enableCommand","_descriptionFactory","TrackChangesEditing","locale","plugins","createEmptyElement","media","MediaEmbedEditing","ELEMENT_MEDIA","has","get","options","div","downcastDispatcher","dataDowncast","high","showSuggestionHighlights","editor","elementToElement","stop"];var Si,Li;Si=Ii,Li=317,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Ni=function(t,e){return Ii[t-=0]};class wi extends t.Plugin{afterInit(){const t=this[Ni("0x0")];if(!t[Ni("0x7")][Ni("0xc")](Ni("0xa")))return;const e=t[Ni("0x7")][Ni("0xd")](Ni("0x5")),n=t[Ni("0x6")];e[Ni("0x3")]("mediaEmbed"),e[Ni("0x4")].registerElementLabel("media",(t=>Yo(n,Ni("0xb"),t))),t.conversion.for(Ni("0x11"))[Ni("0x1")]({model:Ni("0x9"),view:(t,{writer:e,options:n})=>{if(n[Ni("0x13")])return e[Ni("0x8")](Ni("0xf"))},converterPriority:Ni("0x12")}),t.data[Ni("0x10")].on("attribute:url:media",((t,e,n)=>{n[Ni("0xe")][Ni("0x13")]&&t[Ni("0x2")]()}),{priority:"high"})}}const Mi=["TrackChangesEditing","editor","get","plugins","mention","enableCommand","MentionEditing","has","afterInit"];var Oi,Fi;Oi=Mi,Fi=316,function(t){for(;--t;)Oi.push(Oi.shift())}(++Fi);const Pi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{[Pi("0x7")](){const t=this[Pi("0x0")];t.plugins[Pi("0x6")](Pi("0x5"))&&t[Pi("0x2")][Pi("0x1")](Pi("0x8"))[Pi("0x4")](Pi("0x3"))}}const Bi=["pageBreak","registerElementLabel","TrackChangesEditing","get","locale","_descriptionFactory","plugins","editor","enableCommand","ELEMENT_PAGE_BREAK","afterInit"];var ji,Ui;ji=Bi,Ui=335,function(t){for(;--t;)ji.push(ji.shift())}(++Ui);const Gi=function(t,e){return Bi[t-=0]};class Hi extends t.Plugin{[Gi("0x5")](){const t=this[Gi("0x2")];if(!t[Gi("0x1")].has("PageBreakEditing"))return;t[Gi("0x1")][Gi("0x9")](Gi("0x8"))[Gi("0x3")](Gi("0x6"));const e=t[Gi("0x1")][Gi("0x9")](Gi("0x8")),n=t[Gi("0xa")];e[Gi("0x0")][Gi("0x7")](Gi("0x6"),(t=>Yo(n,Gi("0x4"),t)))}}const Wi=["isLimit","selection","checkChild","TrackChangesEditing","getFirstRange","getSelectedBlocks","getItemLabel","plugins","name","registerDescriptionCallback","addMarker:suggestion:insertion","afterInit","filter","$text","editor","insertParagraph","enableCommand","has","nodeAfter","isObject","includes","paragraph","markerName","isBlock","editing","span","registerElementLabel","consumable","schema","isTouching","markerRange","_descriptionFactory","mapper","insertion","data","options","get","document","end","highest","markBlockFormat","showSuggestionHighlights","toViewPosition","ELEMENT_PARAGRAPH","format","writer","ck-suggestion-marker-split","bindElementToMarker","consume","type","blockName","downcastDispatcher","ck-suggestion-marker--active","model","createUIElement","activeMarkers","*Change to:* %0","from","addClass"];var Vi,zi;Vi=Wi,zi=209,function(t){for(;--t;)Vi.push(Vi.shift())}(++zi);const Ki=function(t,e){return Wi[t-=0]};class qi extends t.Plugin{[Ki("0x26")](){const t=this[Ki("0x29")];if(!t[Ki("0x22")][Ki("0x2c")]("Paragraph"))return;const e=t.locale,n=t[Ki("0x22")][Ki("0x4")](Ki("0x1e"));n._descriptionFactory[Ki("0x35")](Ki("0x30"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n[Ki("0x2b")](Ki("0x30"),((e,o={})=>{const r=t[Ki("0x15")][Ki("0x5")],s=o[Ki("0x1c")]||r[Ki("0x1c")],i=Array[Ki("0x19")](s[Ki("0x20")]())[Ki("0x27")]((t=>{return e=t,(n=this[Ki("0x29")][Ki("0x15")][Ki("0x37")])[Ki("0x1d")](e.parent,Ki("0x30"))&&!n[Ki("0x2e")](e)&&Ki("0x30")!=e[Ki("0x23")];var e,n}));t[Ki("0x15")].change((()=>{for(const t of i)n[Ki("0x8")](t,{commandName:"paragraph",commandParams:[],formatGroupId:Ki("0x12")},fr(t))}))})),n[Ki("0x3a")][Ki("0x24")]((t=>{const{data:n}=t;if(n&&"paragraph"==n.commandName)return{type:Ki("0xc"),content:Yo(e,Ki("0x18"),Yo(e,Ki("0xb")))}})),n[Ki("0x2b")](Ki("0x2a")),t[Ki("0x33")][Ki("0x13")].on(Ki("0x25"),Xi(t),{priority:Ki("0x7")}),t[Ki("0x2")].downcastDispatcher.on(Ki("0x25"),((e,n,o)=>{o[Ki("0x3")][Ki("0x9")]&&Xi(t,{showActiveMarker:!1})(e,n,o)}),{priority:Ki("0x7")});const o=n[Ki("0x3a")];o.registerDescriptionCallback((n=>{if(Ki("0x1")!==n[Ki("0x11")])return;const{start:r,end:s}=n[Ki("0x1f")]();if(!r[Ki("0x38")](s)||!r[Ki("0x2d")])return;const i=t[Ki("0x15")][Ki("0x37")],x=r[Ki("0x2d")];return i[Ki("0x32")](x)&&!i.isLimit(x)&&i[Ki("0x1d")](x,Ki("0x28"))?{type:Ki("0x1"),content:Yo(e,"*Insert:* %0",o[Ki("0x21")](x,1))}:void 0}))}}function Xi(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[Ki("0x22")].get(Ki("0x1e")),i=o[Ki("0x39")].start,x=o.markerRange[Ki("0x6")],a=t.model[Ki("0x37")];if(!i[Ki("0x38")](x)||!i[Ki("0x2d")])return;const c=i.nodeAfter;if(a[Ki("0x32")](c)&&!a[Ki("0x1b")](c)&&a[Ki("0x1d")](c,Ki("0x28"))){if(!r[Ki("0x36")][Ki("0x10")](o.markerRange,n[Ki("0x23")]))return;const t=r[Ki("0xd")][Ki("0x16")](Ki("0x34"),{class:Ki("0xe")}),i=r[Ki("0x0")][Ki("0xa")](x);e&&s[Ki("0x17")][Ki("0x2f")](o.markerName)&&r.writer[Ki("0x1a")](Ki("0x14"),t),r[Ki("0xd")].insert(i,t),r[Ki("0x0")][Ki("0xf")](t,o[Ki("0x31")])}}}const $i=["removeFormat","registerDescriptionCallback","getRanges","TrackChangesEditing","selection","*Remove all formatting*","model","isFormatting","commandName","from","getItems","enableCommand","change","getAttributeProperties","schema","plugins","get","format","editor","document"];var Ji,Qi;Ji=$i,Qi=403,function(t){for(;--t;)Ji.push(Ji.shift())}(++Qi);const Zi=function(t,e){return $i[t-=0]};class Yi extends t.Plugin{afterInit(){const t=this[Zi("0xf")];if(!t[Zi("0xc")].has("RemoveFormatEditing"))return;const e=t[Zi("0xc")][Zi("0xd")](Zi("0x0"));e[Zi("0x8")](Zi("0x11"),(n=>{const o=t[Zi("0x3")][Zi("0x10")][Zi("0x1")];o.isCollapsed?n():t[Zi("0x3")][Zi("0x9")]((()=>{const n=Array[Zi("0x6")](o[Zi("0x13")]());for(const o of n)for(const n of o[Zi("0x7")]())tx(n,t[Zi("0x3")][Zi("0xb")])&&e.markInlineFormat(t[Zi("0x3")].createRangeOn(n),{commandName:Zi("0x11"),commandParams:[]})}))})),e._descriptionFactory[Zi("0x12")]((e=>{const{data:n}=e;if(n&&Zi("0x11")==n[Zi("0x5")])return{type:Zi("0xe"),content:Yo(t.locale,Zi("0x2"))}}))}}function tx(t,e){for(const[n]of t.getAttributes()){const t=e[Zi("0xa")](n);if(t&&t[Zi("0x4")])return!0}return!1}const ex=["goToPreviousRestrictedEditingException","discardSelectedSuggestions","has","RestrictedEditingModeEditing","discardSuggestion","acceptSuggestion","discardAllSuggestions","TrackChangesEditing","plugins","enableCommand","goToNextRestrictedEditingException","afterInit","acceptSelectedSuggestions","editor","get"];var nx,ox;nx=ex,ox=329,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const rx=function(t,e){return ex[t-=0]};class sx extends t.Plugin{[rx("0xc")](){const t=this[rx("0xe")];if(!t[rx("0x9")][rx("0x3")](rx("0x4")))return;const e=t[rx("0x9")][rx("0x0")](rx("0x8"));e[rx("0xa")](rx("0x1")),e[rx("0xa")](rx("0xb"));const n=t[rx("0x9")][rx("0x0")](rx("0x4"));n.enableCommand("trackChanges"),n[rx("0xa")](rx("0x6")),n[rx("0xa")](rx("0x5")),n[rx("0xa")]("acceptAllSuggestions"),n[rx("0xa")](rx("0x7")),n[rx("0xa")](rx("0xd")),n[rx("0xa")](rx("0x2"))}}const ix=["toViewPosition","addMarker:suggestion:deletion","enableCommand","name","markerRange","test","softBreak","addClass","ck-suggestion-marker--active","registerElementLabel","downcastDispatcher","plugins","high","mapper","ck-suggestion-marker-","locale","options","get","markerName","editing","_descriptionFactory","activeMarkers","deletion","requires","split","addMarker:suggestion","createUIElement","TrackChangesEditing","shiftEnter","bindElementToMarker","createPositionBefore","includes","span","model","addMarker:suggestion:insertion","writer"];var xx,ax;xx=ix,ax=229,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return ix[t-=0]};class lx extends t.Plugin{static get[cx("0xa")](){return[ns.ShiftEnter]}init(){const t=this.editor,e=t[cx("0x22")][cx("0x4")](cx("0xe"));e[cx("0x19")](cx("0xf")),t[cx("0x6")][cx("0x21")].on(cx("0x15"),ux(t),{priority:cx("0x23")}),t.editing[cx("0x21")].on(cx("0x18"),ux(t),{priority:"high"}),t.data[cx("0x21")].on(cx("0xc"),((e,n,o)=>{o[cx("0x3")].showSuggestionHighlights&&ux(t,{showActiveMarker:!1})(e,n,o)})),e[cx("0x7")][cx("0x20")](cx("0x1d"),(e=>Yo(t[cx("0x2")],"ELEMENT_LINE_BREAK",e)))}}function ux(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[cx("0x22")][cx("0x4")](cx("0xe"));if(!r.consumable[cx("0x1c")](o[cx("0x1b")],n[cx("0x1a")]))return;const i=t[cx("0x14")];for(const t of o[cx("0x1b")].getItems()){if(!t.is("element","softBreak"))continue;const n=cx("0x9")==o[cx("0x5")][cx("0xb")](":")[1]?"merge":cx("0xb"),x=r[cx("0x16")][cx("0xd")](cx("0x13"),{class:cx("0x1")+n}),a=r[cx("0x0")][cx("0x17")](i[cx("0x11")](t));e&&s[cx("0x8")][cx("0x12")](o[cx("0x5")])&&r[cx("0x16")][cx("0x1e")](cx("0x1f"),x),r[cx("0x16")].insert(a,x),r[cx("0x0")][cx("0x10")](x,o[cx("0x5")])}}}const dx=["getRanges","_descriptionFactory","StandardEditingModeEditing","plugins","format","FORMAT_RESTRICTED_ENABLED","TrackChangesEditing","commandParams","enableCommand","editor","value","restrictedEditingException","afterInit","selection","model","markInlineFormat","get","forceValue","registerDescriptionCallback","from","commands","has"];var gx,mx;gx=dx,mx=169,function(t){for(;--t;)gx.push(gx.shift())}(++mx);const fx=function(t,e){return dx[t-=0]};class hx extends t.Plugin{[fx("0x13")](){const t=this[fx("0x10")],e=t[fx("0x15")],n=t.locale;if(!t[fx("0xa")][fx("0x6")](fx("0x9")))return;const o=t[fx("0xa")][fx("0x1")](fx("0xd")),r=fx("0x12"),s=t[fx("0x5")][fx("0x1")](r);o[fx("0xf")](r,((t,n={})=>{const i=e.document[fx("0x14")];if(i.isCollapsed)return void t(n);const x=void 0!==n[fx("0x2")]?n[fx("0x2")]:!s[fx("0x11")];e.change((()=>{const t=Array[fx("0x4")](i[fx("0x7")]());for(const n of t){const t=x?[n]:mr(r,n,e);for(const e of t)o[fx("0x0")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[fx("0x8")][fx("0x3")]((t=>{const{data:e}=t;if(e&&e.commandName==r)return e[fx("0xe")][0][fx("0x2")]?{type:fx("0xb"),content:Yo(n,fx("0xc"))}:{type:fx("0xb"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const px=["getItems","*Format:* %0","normalizeConfig","styleName","change","markBlockFormat","getRanges","forceValue","document","find","format","inline","value","getDefinitionsForView","style","isBlock","_getRangesWithClasses","style.definitions","toLowerCase","classes","editor","config","get","push","locale","StyleUtils","Style","_descriptionFactory","commandParams","model","commandName","registerDescriptionCallback","modelElements","block","getSelectedBlocks","includes","isCollapsed","element","plugins","createRangeOn","*Remove format:* %0","has","name","enabledStyles","DataSchema","markInlineFormat","from","selection"];var bx,Ex;bx=px,Ex=191,function(t){for(;--t;)bx.push(bx.shift())}(++Ex);const _x=function(t,e){return px[t-=0]};class Tx extends t.Plugin{afterInit(){const t=this[_x("0x15")];if(!t.plugins[_x("0x2a")](_x("0x1b")))return;const e=t.commands[_x("0x17")](_x("0xf")),n=t[_x("0x27")].get("TrackChangesEditing"),o=t[_x("0x19")],r=t[_x("0x27")].get(_x("0x2d")),s=t[_x("0x27")].get(_x("0x1a"))[_x("0x3")](r,t[_x("0x16")][_x("0x17")](_x("0x12")));n.enableCommand(_x("0xf"),((o,{styleName:i})=>{const x=t[_x("0x1e")][_x("0x9")][_x("0x0")],a=this._getStyleDefinition(i,s);if(!a)return;if(!e[_x("0x2c")][_x("0x24")](i))return;if(x[_x("0x25")]&&!a[_x("0x10")])return void o({styleName:i});const c=!e[_x("0xd")][_x("0x24")](a[_x("0x2b")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[_x("0x24")](o[_x("0x2b")])){n.add(o);break}}return n}(x[_x("0x23")](),a[_x("0x21")]);t[_x("0x1e")][_x("0x5")]((()=>{for(const t of e)n[_x("0x6")](t,{commandName:_x("0xf"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array.from(x[_x("0x7")]());if(!c){const n=Array[_x("0x2f")](r[_x("0xe")](a[_x("0x26")],!1))[0][_x("0x1e")],o=[];for(const r of e){const e=this[_x("0x11")](t[_x("0x1e")],r,a.classes,n);o[_x("0x18")](...e)}e=o}t[_x("0x1e")][_x("0x5")]((()=>{for(const t of e)n[_x("0x2e")](t,{commandName:_x("0xf"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[_x("0x1c")][_x("0x20")]((t=>{const{data:e}=t;if(e&&_x("0xf")===e[_x("0x1f")])return e[_x("0x1d")][0][_x("0x8")]?{type:_x("0xb"),content:Yo(o,_x("0x2"),e[_x("0x1d")][0][_x("0x4")][_x("0x13")]())}:{type:_x("0xb"),content:Yo(o,_x("0x29"),e[_x("0x1d")][0][_x("0x4")][_x("0x13")]())}}))}_getStyleDefinition(t,e){let n=e[_x("0x22")][_x("0xa")]((e=>e[_x("0x2b")]===t));return n||(n=e[_x("0xc")][_x("0xa")]((e=>e.name===t))),n}[_x("0x11")](t,e,n,o){const r=[];for(const s of e[_x("0x1")]()){const e=s.getAttribute(o);e&&n.every((t=>e[_x("0x14")][_x("0x24")](t)))&&r[_x("0x18")](t[_x("0x28")](s))}return r}}const Cx=["$graveyard","fromRange","getRowIndexes","insertTableRowBelow","name","length","tableRow","getContainedElement","_tableSuggestions","hasAttribute","toLowerCase","getFirstRange","getRanges","execute","maxRow","last","subType","from","join","downcastDispatcher","model","left","isTouching","classes","findAncestor","get","registerElementLabel","_descriptionFactory","plugins","insert","TableUtils","rowspan","getItems","markMultiRangeInsertion","*Insert:* %0","registerDescriptionCallback","data","enqueueChange","min","tablePaste","end","editor","root","ELEMENT_TABLE","highest","writer","registerCustomCallback","createTableWalker","maxColumn","_tablePostFixingSubtypes","isInContent","*Remove:* %0","element","_getCoordsForCells","refresh","batch","createRangeOn","rootName","getAttribute","enableCommand","removeClass","addMarker:suggestion","nodeAfter","low","commands","insertion","addClass","first","document","every","_suggestionFactory","removeTableRow","ELEMENT_TABLE_COLUMN","MAX_SAFE_INTEGER","insertTableColumnRight","oldRange","getChildren","ELEMENT_TABLE_ROW","type","showSuggestionHighlights","change:data","registerPostFixer","_getSuggestionCoords","isIntersectingWithRange","ELEMENT_TABLE_WITH_TEXT","startsWith","mapper","colspan","discard","addRange","getColumnIndexes","substr","position","$textProxy","tableCell","map","push","insertTableColumnLeft","selectTableColumn","cell","ELEMENT_TABLE_ROW_WITH_TEXT","afterInit","has","start","nodeBefore","differ","ELEMENT_TABLE_COLUMN_WITH_TEXT","minColumn","tableColumn","getChanges","values","createPositionAt","TrackChangesEditing","some","insertTableRowAbove","accept","includes","deletion","detach","getSelectionAffectedTableCells","setSelection","change","getCellLocation","MIN_SAFE_INTEGER","removeTableColumn","selection","options","max","add","table","forceValue","filter"];var yx,kx;yx=Cx,kx=202,function(t){for(;--t;)yx.push(yx.shift())}(++kx);const Ax=function(t,e){return Cx[t-=0]};class vx extends t.Plugin{constructor(t){super(t),this[Ax("0x6f")]=["tableRow",Ax("0x26")],this._tableSuggestions=new Set}[Ax("0x1f")](){const t=this[Ax("0x67")],e=t[Ax("0x52")].document[Ax("0x37")];if(!t[Ax("0x5a")][Ax("0x20")]("TableEditing"))return;const n=t.locale,o=t[Ax("0x5a")][Ax("0x57")](Ax("0x2a")),r=t[Ax("0x5a")][Ax("0x57")](Ax("0x5c"));o._descriptionFactory[Ax("0x58")](Ax("0x3b"),(t=>Yo(n,Ax("0x69"),t))),this._setupColumnsRowsFixing(),o[Ax("0x79")]("insertTable"),o[Ax("0x79")]("selectTableRow"),o.enableCommand(Ax("0x1c"));for(const n of[Ax("0x2c"),Ax("0x41")]){const s=t.commands[Ax("0x57")](n);o[Ax("0x79")](n,(n=>{t[Ax("0x52")][Ax("0x33")]((t=>{n();const i="above"===s.order,x=r.getSelectionAffectedTableCells(e),a=r[Ax("0x40")](x),c=i?a[Ax("0x81")]-1:a[Ax("0x4d")]+1,l=x[0][Ax("0x56")](Ax("0x3b")),u=r[Ax("0x6d")](l,{startRow:c,endRow:c}),d=Array.from(u)[Ax("0x19")]((e=>t.createRangeOn(e[Ax("0x1d")])));o.markMultiRangeInsertion(d,Ax("0x44"))}))}))}for(const n of[Ax("0x1b"),Ax("0x4")]){const s=t[Ax("0x7e")].get(n);o[Ax("0x79")](n,(n=>{t[Ax("0x52")][Ax("0x33")]((t=>{n();const i=Ax("0x53")===s.order,x=r[Ax("0x31")](e),a=r[Ax("0x14")](x),c=i?a[Ax("0x81")]-1:a.last+1,l=x[0][Ax("0x56")](Ax("0x3b")),u=r[Ax("0x6d")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Ax("0x4f")](u)[Ax("0x19")]((e=>t[Ax("0x76")](e.cell)));o[Ax("0x5f")](d,Ax("0x26"))}))}))}for(const n of["removeTableRow","removeTableColumn"]){const s=n.substr(11),i=s[Ax("0x48")](),x=i[Ax("0x15")](0,3)+"span",a=Ax("0x3b")+s,c=Ax("0x64")+s,l=Ax("0x39")+s;o.enableCommand(n,(()=>{t.model[Ax("0x33")]((t=>{const s=r[Ax("0x31")](e),u=s[0].findAncestor(Ax("0x3b"));let d;if(Ax("0x1")==n){const t=r[Ax("0x40")](s);d={startRow:t[Ax("0x81")],endRow:t[Ax("0x4d")],includeAllSlots:!0}}else{const t=r[Ax("0x14")](s);d={startColumn:t[Ax("0x81")],endColumn:t[Ax("0x4d")],includeAllSlots:!0}}const g=r[Ax("0x6d")](u,d),m=Array.from(g).map((({cell:t})=>t)),f=Rx(m[Ax("0x3d")]((t=>t[Ax("0x47")](x)))),h=Rx(m[Ax("0x3d")]((t=>!t[Ax("0x47")](x))))[Ax("0x19")]((e=>t.createRangeOn(e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Ax("0x44")==p[Ax("0x4e")]||Ax("0x26")==p.subType)){const e=this._getSuggestionCoords(p);for(const n of f){const o=t[Ax("0x76")](n),s=r[Ax("0x34")](n),a=n[Ax("0x78")](x)-1,u=e[c],d=e[l];u<=s[i]&&s[i]+a<=d&&p[Ax("0x13")](o)}}}))}))}function s(n){const o=Array[Ax("0x4f")](e.getRanges()).map((t=>i.LiveRange[Ax("0x3f")](t)));t[Ax("0x52")][Ax("0x33")]((e=>{const r=e[Ax("0x75")];n=n[Ax("0x3d")]((t=>Ax("0x3e")!=t[Ax("0x68")].rootName)),e[Ax("0x32")](n),t.commands[Ax("0x57")](Ax("0x1"))[Ax("0x74")](),t[Ax("0x4b")](Ax("0x1"),{forceDefaultExecution:!0}),t[Ax("0x52")][Ax("0x63")]((()=>{t.model[Ax("0x63")](r,(t=>{const e=o[Ax("0x3d")]((t=>Ax("0x3e")!=t[Ax("0x68")].rootName));e[Ax("0x43")]>0&&t[Ax("0x32")](e);for(const t of o)t.detach()}))}))}))}function a(n){t.model[Ax("0x33")]((o=>{const r=Array[Ax("0x4f")](e.getRanges())[Ax("0x19")]((t=>i.LiveRange.fromRange(t))),s=[];for(const t of n)for(const e of t[Ax("0x5e")]({shallow:!0}))s[Ax("0x1a")](e);for(const e of s)"$graveyard"!=e[Ax("0x68")][Ax("0x77")]&&(o[Ax("0x32")](o[Ax("0x29")](e,0)),t.commands[Ax("0x57")](Ax("0x36"))[Ax("0x74")](),t.execute("removeTableColumn",{forceDefaultExecution:!0}));const x=r[Ax("0x3d")]((t=>Ax("0x3e")!=t[Ax("0x68")][Ax("0x77")]));x[Ax("0x43")]>0&&o[Ax("0x32")](x);for(const t of r)t.detach()}))}function c(t,e){return e[Ax("0x83")]((e=>t[Ax("0x2b")]((t=>t[Ax("0x66")].isEqual(e[Ax("0x21")])||e[Ax("0x66")].isEqual(t[Ax("0x21")])))))}function l(t,e){return t[Ax("0x2b")]((t=>e[Ax("0x2b")]((e=>t[Ax("0x66")][Ax("0x54")](e[Ax("0x21")])))))}t[Ax("0x62")][Ax("0x51")].on(Ax("0x7b"),((t,e,n)=>{if(!n[Ax("0x38")][Ax("0x9")])return;const o=e.item;if(!o)return;const r=n[Ax("0x10")].toViewElement(o);function s(t){return Array.isArray(t)?t:[t]}r&&Ax("0x18")===o[Ax("0x42")]&&(0,x.setHighlightHandling)(r,n[Ax("0x6b")],((t,e,n)=>n[Ax("0x80")](s(e[Ax("0x55")]),t)),((t,e,n)=>n[Ax("0x7a")](s(e[Ax("0x55")]),t)))}),{priority:Ax("0x6a")}),o[Ax("0x59")][Ax("0x61")]((t=>{if("insertion"!=t.type&&Ax("0x2f")!=t[Ax("0x8")])return;const e=t[Ax("0x45")]();if(null!=e&&e.is(Ax("0x72"),Ax("0x3b"))){if("insertion"==t[Ax("0x8")]){const e=t.getItems()[Ax("0x3d")]((t=>t.is("$textProxy")))[Ax("0x19")]((t=>t[Ax("0x62")]));if(e[Ax("0x43")])return{type:Ax("0x7f"),content:Yo(n,Ax("0x60"),Yo(n,Ax("0xe"),'"'+e[Ax("0x50")](" ")+'"'))}}if(Ax("0x2f")==t[Ax("0x8")]){const e=t[Ax("0x5e")]()[Ax("0x3d")]((t=>t.is(Ax("0x17"))))[Ax("0x19")]((t=>t[Ax("0x62")]));if(e[Ax("0x43")])return{type:Ax("0x2f"),content:Yo(n,Ax("0x71"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Ax("0x50")](" ")+'"'))}}}})),o[Ax("0x59")][Ax("0x61")]((t=>{if(Ax("0x44")==t.subType){const e=t.getItems()[Ax("0x3d")]((t=>t.is(Ax("0x17")))).map((t=>t[Ax("0x62")])),o=this._getSuggestionCoords(t),r=o[Ax("0x4c")]-o.minRow+1;if(Ax("0x7f")==t[Ax("0x8")])return e[Ax("0x43")]?{type:Ax("0x7f"),content:Yo(n,Ax("0x60"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[r,'"'+e[Ax("0x50")](" ")+'"']))}:{type:Ax("0x7f"),content:Yo(n,Ax("0x60"),Yo(n,Ax("0x7"),r))};if(Ax("0x2f")==t[Ax("0x8")])return e.length?{type:Ax("0x2f"),content:Yo(n,Ax("0x71"),Yo(n,Ax("0x1e"),[r,'"'+e[Ax("0x50")](" ")+'"']))}:{type:"deletion",content:Yo(n,Ax("0x71"),Yo(n,Ax("0x7"),r))}}if(Ax("0x26")==t[Ax("0x4e")]){const e=t.getItems()[Ax("0x3d")]((t=>t.is(Ax("0x17")))).map((t=>t[Ax("0x62")])),o=this[Ax("0xc")](t),r=o[Ax("0x6e")]-o[Ax("0x25")]+1;if(Ax("0x7f")==t[Ax("0x8")])return e.length?{type:Ax("0x7f"),content:Yo(n,Ax("0x60"),Yo(n,Ax("0x24"),[r,'"'+e.join(" ")+'"']))}:{type:Ax("0x7f"),content:Yo(n,Ax("0x60"),Yo(n,Ax("0x2"),r))};if(Ax("0x2f")==t[Ax("0x8")])return e[Ax("0x43")]?{type:Ax("0x2f"),content:Yo(n,Ax("0x71"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e[Ax("0x50")](" ")+'"']))}:{type:Ax("0x2f"),content:Yo(n,"*Remove:* %0",Yo(n,Ax("0x2"),r))}}})),o._suggestionFactory.registerCustomCallback("insertion",Ax("0x44"),Ax("0x12"),s),o[Ax("0x0")][Ax("0x6c")](Ax("0x2f"),"tableRow",Ax("0x2d"),s),o[Ax("0x0")][Ax("0x6c")](Ax("0x7f"),"tableColumn",Ax("0x12"),a),o[Ax("0x0")][Ax("0x6c")](Ax("0x2f"),Ax("0x26"),Ax("0x2d"),a),o[Ax("0x0")][Ax("0x6c")](Ax("0x7f"),Ax("0x26"),Ax("0x50"),c),o[Ax("0x0")][Ax("0x6c")](Ax("0x2f"),Ax("0x26"),"join",c),o._suggestionFactory.registerCustomCallback("insertion",Ax("0x44"),Ax("0x50"),l),o[Ax("0x0")][Ax("0x6c")](Ax("0x2f"),Ax("0x44"),Ax("0x50"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Ax("0x67")],e=t[Ax("0x52")].document[Ax("0x37")];return(n,o)=>{t[Ax("0x52")][Ax("0x33")]((r=>{const{commandName:s,commandParams:x}=o;let a=n[0].end[Ax("0x22")];x&&x[0]&&!1===x[0][Ax("0x3c")]&&(a=n[0][Ax("0x21")][Ax("0x7c")]);const c=r.createRangeIn(a);if(Ax("0x3e")==c[Ax("0x68")].rootName)return;const l=Array.from(e[Ax("0x4a")]())[Ax("0x19")]((t=>i.LiveRange[Ax("0x3f")](t)));r[Ax("0x32")](c),t[Ax("0x7e")][Ax("0x57")](s).refresh(),x.push({forceDefaultExecution:!0}),t.execute(s,...x);const u=l[Ax("0x3d")]((t=>"$graveyard"!=t[Ax("0x68")].rootName));u.length>0&&r[Ax("0x32")](u);for(const t of l)t[Ax("0x30")]()}))}}_getCoordsForCells(t){const e=this[Ax("0x67")][Ax("0x5a")][Ax("0x57")]("TableUtils");let n=Number[Ax("0x3")],o=Number[Ax("0x35")],r=Number[Ax("0x3")],s=Number.MIN_SAFE_INTEGER;for(const i of t){if("$graveyard"==i[Ax("0x68")][Ax("0x77")])continue;const{row:t,column:x}=e[Ax("0x34")](i),a=i.hasAttribute(Ax("0x5d"))?i[Ax("0x78")](Ax("0x5d"))-1:0,c=i[Ax("0x47")]("colspan")?i[Ax("0x78")](Ax("0x11"))-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.editor,e=t[Ax("0x5a")][Ax("0x57")](Ax("0x2a")),n=t[Ax("0x5a")].get(Ax("0x5c"));t.model.document.on(Ax("0xa"),(()=>{const n=Array.from(t.model[Ax("0x82")][Ax("0x23")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Ax("0x5")])continue;const i=e.getSuggestion(r);this[Ax("0x6f")][Ax("0x2e")](s)&&this[Ax("0x46")][Ax("0x3a")](i)}}),{priority:Ax("0x7d")});const o=(t,e)=>{let o=!1;const r=e[Ax("0x76")](t),s=t[Ax("0x56")](Ax("0x3b")),i=n[Ax("0x34")](t);for(const e of this[Ax("0x46")]){const n=e[Ax("0x4e")],x=n[Ax("0xf")](Ax("0x65")),a=n[Ax("0x15")](x?10:5),c=a[Ax("0x48")](),l=c[Ax("0x15")](0,3)+"span",u="min"+a,d="max"+a;if(!e[Ax("0x70")])continue;if(s!=e[Ax("0x49")]().start[Ax("0x56")](Ax("0x3b")))continue;if(e[Ax("0xd")](r))continue;const g=t[Ax("0x47")](l)?t[Ax("0x78")](l)-1:0,m=this[Ax("0xc")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e.addRange(r),o=!0)}return o};t[Ax("0x52")].document[Ax("0xb")]((e=>{let n=!1;for(const r of t[Ax("0x52")].document.differ[Ax("0x27")]())if(Ax("0x5b")==r[Ax("0x8")])if(Ax("0x44")==r[Ax("0x42")])for(const t of r[Ax("0x16")][Ax("0x7c")][Ax("0x6")]())n=n||o(t,e);else Ax("0x18")==r[Ax("0x42")]&&(n=n||o(r[Ax("0x16")][Ax("0x7c")],e));return n}))}[Ax("0xc")](t){return this[Ax("0x73")](t[Ax("0x4a")]()[Ax("0x19")]((t=>t[Ax("0x21")].nodeAfter)))}}function Rx(t){return Array.from(new Set(t)[Ax("0x28")]())}const Ix=["mergeTableCells","refresh","tableCell","mergeTableCellLeft","requires","low","get","model","from","author","$graveyard","horizontally","format","_areSelectedCellsMergable","commands","stop","_isForcedDefaultExecutionBlock","table","registerCustomCallback","_acceptFormatSuggestionCallbackFactory","enableCommand","set:isEnabled","selection","trackChanges","length","detach","formatBlock","type","findAncestor","setSelection","markMultiRangeBlockFormat","find","mergeTableCellRight","getSelectionAffectedTableCells","mergeTableCellDown","filter","_areMergableCells","plugins","TableUtils","has","document","size","getRanges","execute","TrackChangesEditing","getAncestors","value","afterInit","isInContent","element","_suggestionFactory","mergeTableCellUp","add","locale","splitTableCellVertically","deletion","forceDefaultExecution","cell","change","splitTableCellHorizontally","commandName","map","containsRange","editor","TableEditing","getCellLocation","createRangeOn","*Split cell:* horizontally","accept","direction","_tablePostFixingSubtypes","getSuggestions","highest","registerDescriptionCallback","markBlockFormat","*Merge cells*"];var Sx,Lx;Sx=Ix,Lx=181,function(t){for(;--t;)Sx.push(Sx.shift())}(++Lx);const Nx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{static get[Nx("0x33")](){return[vx]}[Nx("0x12")](){const t=this.editor,e=t[Nx("0x36")][Nx("0xb")][Nx("0x45")],n=t[Nx("0x18")];if(!t[Nx("0x8")][Nx("0xa")](Nx("0x23")))return;const o=t[Nx("0x8")].get(Nx("0xf")),r=t.plugins[Nx("0x35")](Nx("0x9")),s=t[Nx("0x8")].get(vx);s[Nx("0x29")].push(Nx("0x2f")),o.enableCommand(Nx("0x2f"),(()=>{const e=r[Nx("0x4")](t[Nx("0x36")][Nx("0xb")][Nx("0x45")]);t[Nx("0x36")][Nx("0x1d")]((()=>{o[Nx("0x1")](e,{commandName:Nx("0x2f"),commandParams:[]},[],Nx("0x2f"))}))})),t[Nx("0x3d")][Nx("0x35")](Nx("0x2f")).on(Nx("0xe"),((e,n)=>{t[Nx("0x3d")][Nx("0x35")](Nx("0x46"))[Nx("0x11")]&&(n.length>0&&n[n[Nx("0x47")]-1]&&n[n[Nx("0x47")]-1][Nx("0x1b")]||o[Nx("0x3f")]||this[Nx("0x3c")]()||e.stop())}),{priority:Nx("0x2b")});for(const e of[Nx("0x16"),Nx("0x3"),"mergeTableCellDown","mergeTableCellLeft"]){const n=t[Nx("0x3d")][Nx("0x35")](e);o[Nx("0x43")](e,(()=>{const e=t[Nx("0x36")][Nx("0xb")][Nx("0x45")].getFirstPosition()[Nx("0x10")]().find((t=>t.is("element",Nx("0x31")))),r=n[Nx("0x11")];t[Nx("0x36")][Nx("0x1d")]((()=>{o.markMultiRangeBlockFormat([e,r],{commandName:Nx("0x2f"),commandParams:[]},[],Nx("0x2f"))}))}))}for(const e of[Nx("0x19"),"splitTableCellHorizontally"]){const n=t[Nx("0x3d")][Nx("0x35")](e);o[Nx("0x43")](e,(()=>{const s=r[Nx("0x4")](t[Nx("0x36")][Nx("0xb")][Nx("0x45")])[0],i=s[Nx("0x4b")](Nx("0x40")),{column:x,row:a}=r[Nx("0x24")](s);let c=[];if(Nx("0x3a")==n[Nx("0x28")]){const t=r.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Nx("0x37")](t)[Nx("0x20")]((t=>t[Nx("0x1c")]))}else{const t=r.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Nx("0x37")](t).map((t=>t[Nx("0x1c")]))}t[Nx("0x36")][Nx("0x1d")]((t=>{o[Nx("0x2d")](t.createRangeOn(s),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Nx("0x2c")]((t=>{const{data:e}=t;if(e)return Nx("0x2f")==e[Nx("0x1f")]?{type:Nx("0x3b"),content:Yo(n,Nx("0x2e"))}:void 0})),o._descriptionFactory[Nx("0x2c")]((t=>{const{data:e}=t;if(e)return Nx("0x19")==e.commandName?{type:"format",content:Yo(n,"*Split cell:* vertically")}:Nx("0x1e")==e[Nx("0x1f")]?{type:Nx("0x3b"),content:Yo(n,Nx("0x26"))}:void 0}));const x=s[Nx("0x42")]();for(const t of[Nx("0x16"),Nx("0x3"),Nx("0x5"),Nx("0x32")])o[Nx("0x15")][Nx("0x41")](Nx("0x49"),t,Nx("0x27"),x);for(const t of[Nx("0x19"),Nx("0x1e")])o[Nx("0x15")][Nx("0x41")](Nx("0x49"),t,Nx("0x27"),x);o._suggestionFactory[Nx("0x41")](Nx("0x49"),Nx("0x2f"),Nx("0x27"),(n=>{t[Nx("0x36")][Nx("0x1d")]((o=>{const r=Array[Nx("0x37")](e.getRanges()).map((t=>i.LiveRange.fromRange(t)));o.setSelection(n),t[Nx("0x3d")].get(Nx("0x2f"))[Nx("0x30")](),t[Nx("0xe")]("mergeTableCells",{forceDefaultExecution:!0});const s=r[Nx("0x6")]((t=>Nx("0x39")!=t.root.rootName));s[Nx("0x47")]>0&&o[Nx("0x0")](s);for(const t of r)t[Nx("0x48")]()}))}));for(const e of[Nx("0x16"),Nx("0x5"),Nx("0x32"),Nx("0x3")]){const n=t[Nx("0x3d")][Nx("0x35")](e);n.on(Nx("0x44"),((e,o,r)=>{if(r){const o=t[Nx("0x36")][Nx("0xb")][Nx("0x45")].getFirstPosition()[Nx("0x10")]()[Nx("0x2")]((t=>t.is(Nx("0x14"),Nx("0x31"))));this[Nx("0x7")](n[Nx("0x11")],o)||(e.return=!1,e[Nx("0x3e")]())}}),{priority:Nx("0x34")})}}[Nx("0x3c")](){const t=this[Nx("0x22")].commands[Nx("0x35")](Nx("0x2f")),e=this.editor[Nx("0x8")][Nx("0x35")]("TableUtils");if(!t.isEnabled)return!1;const n=e[Nx("0x4")](this.editor[Nx("0x36")].document[Nx("0x45")]);for(const t of n)for(const e of n)if(t!=e&&!this[Nx("0x7")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Nx("0x22")][Nx("0x8")][Nx("0x35")]("TrackChangesEditing"),o=this[Nx("0x22")][Nx("0x36")][Nx("0x25")](t),r=this[Nx("0x22")][Nx("0x36")][Nx("0x25")](e),s=new Set,i=new Set;for(const t of n[Nx("0x2a")]())if(("insertion"==t[Nx("0x4a")]||Nx("0x1a")==t[Nx("0x4a")]||Nx("0x2f")==t.subType)&&t[Nx("0x13")])for(const e of t[Nx("0xd")]())e[Nx("0x21")](o,!0)&&s[Nx("0x17")](t[Nx("0x4a")]+":"+t[Nx("0x38")].id),e[Nx("0x21")](r,!0)&&i[Nx("0x17")](t[Nx("0x4a")]+":"+t[Nx("0x38")].id);if(s[Nx("0xc")]!=i[Nx("0xc")])return!1;for(const t of s)if(!i[Nx("0xa")](t))return!1;return!0}}const Mx=["FORMAT_HEADER_COLUMN","FORMAT_REGULAR_ROW","commandParams","format","downcastDispatcher","document","TableUtils","*Format:* %0","item","forceValue","data","table","getCellLocation","writer","accept","index","createRange","selection","formatBlock","registerDescriptionCallback","ck-suggestion-marker--active","toViewElement","mapper","removeAttribute","includes","has","addMarker:suggestion","afterInit","enableCommand","addClass","start","getAttribute","from","isBefore","setAttribute","_descriptionFactory","getSuggestion","markerName","locale","markBlockFormat","setTableColumnHeader","getRowIndexes","setTableRowHeader","ck-suggestion-marker-","commands","cell","_suggestionFactory","findAncestor","value","createPositionBefore","highest","showSuggestionHighlights","end","first","editing","removeClass","getSelectionAffectedTableCells","markerRange","plugins","FORMAT_REGULAR_COLUMN","markerNameToElements","getChild","nodeBefore","parent","createPositionAfter","commandName","_splitMarkerName","bindElementToMarker","createTableWalker","model","unbindElementFromMarkerName","change","stop","get","options","removeMarker:suggestion","requires","editor","TrackChangesEditing","headingColumns","FORMAT_HEADER_ROW","registerCustomCallback"];var Ox,Fx;Ox=Mx,Fx=395,function(t){for(;--t;)Ox.push(Ox.shift())}(++Fx);const Px=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get[Px("0x9")](){return[vx]}[Px("0x2a")](){const t=this[Px("0xa")];if(!t[Px("0x49")][Px("0x28")]("TableEditing"))return;const e=t[Px("0x35")],n=t[Px("0x49")][Px("0x6")](Px("0xb")),o=t[Px("0x49")][Px("0x6")](Px("0x15")),r=t[Px("0x49")][Px("0x6")](vx);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n[Px("0x51")](s[Px("0x34")]),c=n[Px("0x33")](a);if(!c[Px("0x19")]||Px("0x37")!=c[Px("0x19")][Px("0x50")])return;if(s[Px("0x17")])return void r[Px("0x5")]();if(!i.consumable.consume(s.markerRange,r.name))return;const l=s.markerRange[Px("0x2d")].nodeAfter,u=s[Px("0x48")][Px("0x43")][Px("0x4d")],d=l[Px("0x4e")][Px("0x4e")],{column:g}=o.getCellLocation(l),{column:m}=o[Px("0x1b")](u);for(let r=g;r<=m;r++){const c=o[Px("0x1")](d,{column:r,includeAllSlots:!1});for(const o of c){const r=o.cell,c=i[Px("0x25")][Px("0x24")](r);i[Px("0x1c")][Px("0x2c")](Px("0x3a")+x,c),e&&i.writer[Px("0x31")]("data-suggestion",a,c),i[Px("0x25")][Px("0x0")](c,s[Px("0x34")]),t&&(n.activeMarkers[Px("0x27")](s[Px("0x34")])?i[Px("0x1c")][Px("0x2c")](Px("0x23"),c):i[Px("0x1c")][Px("0x46")](Px("0x23"),c))}}}}n[Px("0x2b")]("setTableRowHeader",((e,r)=>{const s=o.getSelectionAffectedTableCells(t[Px("0x2")][Px("0x14")].selection),i=o[Px("0x38")](s),x=s[0][Px("0x3e")](Px("0x1a")),a=x[Px("0x2e")]("headingRows")||0,c=r&&null!==r[Px("0x18")]?r.forceValue:!t[Px("0x3b")][Px("0x6")](Px("0x39"))[Px("0x3f")],l=c?i.last:i[Px("0x44")],u=x[Px("0x4c")](l);let d;if(c){const e=x[Px("0x4c")](a);if(u[Px("0x1e")]<e[Px("0x1e")])return;d=t.model.createRange(t[Px("0x2")].createPositionBefore(e[Px("0x4c")](0)),t.model[Px("0x4f")](u[Px("0x4c")](u.childCount-1)))}else{const e=x[Px("0x4c")](a-1);if(!e)return;d=t[Px("0x2")][Px("0x1f")](t.model[Px("0x40")](u[Px("0x4c")](0)),t.model[Px("0x4f")](e[Px("0x4c")](e.childCount-1)))}t[Px("0x2")][Px("0x4")]((()=>{n.markBlockFormat(d,{commandName:Px("0x39"),commandParams:[{forceValue:c}]},[],Px("0x39"))}))})),n.enableCommand(Px("0x37"),((e,o)=>{const r=t[Px("0x49")][Px("0x6")](Px("0x15")),s=r[Px("0x47")](t.model[Px("0x14")][Px("0x20")]),i=r.getColumnIndexes(s),x=s[0].findAncestor(Px("0x1a")),a=x[Px("0x2e")](Px("0xc"))||0,c=o&&null!==o.forceValue?o.forceValue:!t.commands[Px("0x6")](Px("0x37"))[Px("0x3f")];let l;const u=x[Px("0x4c")](0),d=c?i.last:i[Px("0x44")],g=r[Px("0x1")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[Px("0x2f")](g)[0][Px("0x3c")];if(c){const e=u[Px("0x4c")](a);if(m[Px("0x30")](e))return;l=t[Px("0x2")][Px("0x1f")](t[Px("0x2")][Px("0x40")](e),t[Px("0x2")][Px("0x4f")](m))}else{const e=u[Px("0x4c")](a-1);if(!e)return;l=t[Px("0x2")].createRange(t[Px("0x2")][Px("0x40")](m),t[Px("0x2")][Px("0x4f")](e))}t[Px("0x2")].change((()=>{n[Px("0x36")](l,{commandName:Px("0x37"),commandParams:[{forceValue:c}]},[],Px("0x37"))}))})),t[Px("0x45")][Px("0x13")].on(Px("0x29"),s(),{priority:Px("0x41")}),t[Px("0x19")][Px("0x13")].on(Px("0x29"),((t,e,n)=>{n[Px("0x7")][Px("0x42")]&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t.editing[Px("0x13")].on(Px("0x8"),((t,e,o)=>{const{type:r,id:s}=n[Px("0x51")](e[Px("0x34")]),i=n[Px("0x33")](s);if(!i[Px("0x19")]||"setTableColumnHeader"!=i[Px("0x19")][Px("0x50")])return;const x=o.mapper[Px("0x4b")](e[Px("0x34")]);if(x)for(const t of x)o[Px("0x1c")][Px("0x46")](Px("0x3a")+r,t),o[Px("0x1c")][Px("0x46")]("ck-suggestion-marker--active",t),o[Px("0x1c")][Px("0x26")]("data-suggestion",t),o[Px("0x25")][Px("0x3")](t,e[Px("0x34")])}),{priority:"highest"}),n[Px("0x32")][Px("0x22")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[Px("0x50")]){const t=n[Px("0x11")][0][Px("0x18")];return o(Yo(e,Px(t?"0xd":"0x10")))}if(Px("0x37")==n[Px("0x50")]){const t=n[Px("0x11")][0].forceValue;return o(Yo(e,Px(t?"0xf":"0x4a")))}}function o(t){return{type:Px("0x12"),content:Yo(e,Px("0x16"),t)}}}));const i=r._acceptFormatSuggestionCallbackFactory();n[Px("0x3d")][Px("0xe")](Px("0x21"),"setTableRowHeader","accept",i),n[Px("0x3d")].registerCustomCallback(Px("0x21"),Px("0x37"),Px("0x1d"),i)}}const Bx=["last","findAncestor","next","getChanges","differ","_suggestionFactory","createPositionBefore","previous","endRow","deletionRanges","tableCellBorderStyle","tablePasteCell","options","model","markerToHighlight","content","discard","change","name","editingDowncast","author","getAllAdjacentSuggestions","getChild","includes","insertRows","editing","showSuggestionHighlights","return","insertion","getChangedMarkers","startsWith","markMultiRangeInsertion","insertColumns","some","*Replace table cells*","activeMarkers","nextSibling","registerCustomCallback","clipboardOutput","tablePasteColumn","markMultiRangeBlockFormat","selection","commands","TrackChangesEditing","registerDescriptionCallback","dataDowncast","columnInsertionIndexes","get","column","rowInsertionIndexes","getRanges","conversion","tableCell","insertionRanges","hasSuggestion","endColumn","getChildren","fill","unwrap","$graveyard","insertContent","getColumns","createTableWalker","insert","move","add","batch","tablePasteChainId","cell","from","createRangeOn","attributes","getSuggestion","_splitMarkerName","removeColumns","deletion","suggestion:formatBlock:tablePasteCell","containsRange","length","createRangeIn","type","remove","_isForcedDefaultExecutionBlock","tablePasteRow","isInContent","isEmpty","map","tableCellSuggestion","suggestion-td","plugins","getContainedElement","filter","cells","formatBlock","getSuggestions","trackChanges","listenTo","getSelectionAffectedTableCells","isEqual","_createdBatches","getSuggestionCallback","getMarkers","subType","schema","_descriptionFactory","stop","accept","tableCellHorizontalAlignment","afterInit","tableCellBorderWidth","for","set","markers","table","tablePaste","ck-suggestion-marker-insertion","document","getColumnIndexes","position","view","markMultiRangeDeletion","editor","push","_getCoordsForCells","columnInsertionRanges","element","tableCellBackgroundColor","newRange","forceDefaultExecution","entries","getRows","has","removeMarkers","TableClipboard","find","Users","high","redo","rootName","ck-suggestion-marker","columns","setAttribute","tableCellPadding","nodeAfter","markerAttributes","TableUtils","markerName","first","removeMarker","updateMarker","createElement","elementToElement","tableCellVerticalAlignment","oldRange","paragraph","every","setAttributes","fromEntries","reduce","ck-suggestion-marker--active","tableCellBorderColor","registerPostFixer","rows","documentSelection","low","getShiftedBy","getRange"];var jx,Ux;jx=Bx,Ux=395,function(t){for(;--t;)jx.push(jx.shift())}(++Ux);const Gx=function(t,e){return Bx[t-=0]},Hx=[Gx("0x30"),Gx("0x63"),Gx("0x74"),Gx("0x2e"),Gx("0x5b"),Gx("0x41"),Gx("0x51")],Wx=Object[Gx("0x60")](Hx.map((t=>[t,null])));class Vx extends t.Plugin{static get requires(){return[vx]}[Gx("0x2f")](){const t=this[Gx("0x3c")];if(!t[Gx("0x1c")][Gx("0x46")](Gx("0x48")))return;const n=t[Gx("0x1c")][Gx("0x99")](Gx("0x95")),o=t[Gx("0x1c")][Gx("0x99")](Gx("0x54")),r=t.plugins[Gx("0x99")](vx),s=t[Gx("0x1c")].get("TableClipboard");r._tablePostFixingSubtypes[Gx("0x3d")]("tablePasteRow","tablePasteColumn"),t[Gx("0x77")][Gx("0x2a")].register(Gx("0x1a"),{allowIn:"tableCell",allowContentOf:Gx("0x9e"),isLimit:!0}),t[Gx("0x9d")][Gx("0x5a")]({model:Gx("0x1a"),view:Gx("0x1b")});let i=null;t[Gx("0x77")].on(Gx("0xa6"),((r,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Gx("0x43")]||n[Gx("0x15")]||this[Gx("0x3c")][Gx("0x94")].get(Gx("0x22")).value&&function(t,e,n,o,r){if(e&&!e.is(Gx("0x66")))return!1;const s=r.getTableIfOnlyTableInContent(t,n);if(!s||!Kx(s,void 0,o))return!1;const i=o[Gx("0x24")](n[Gx("0x37")][Gx("0x93")]);if(!i[Gx("0x11")])return!1;const x=i[0].findAncestor(Gx("0x34")),a=o.getRowIndexes(i),c=o[Gx("0x38")](i),l={startRow:a[Gx("0x56")],endRow:a[Gx("0x6a")],startColumn:c.first,endColumn:c[Gx("0x6a")]};return 1==i[Gx("0x11")]&&(l[Gx("0x72")]+=o[Gx("0x45")](s)-1,l[Gx("0xa1")]+=o[Gx("0x0")](s)-1),Kx(x,l,o)}(a,c,t[Gx("0x77")],o,s)&&(r.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Gx("0x77")][Gx("0x7b")]((()=>{t[Gx("0x77")][Gx("0xa6")](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[Gx("0x11")]&&n[Gx("0x89")](r,Gx("0x16"),{tablePasteChainId:o}),s[Gx("0x11")]&&n[Gx("0x89")](s,"tablePasteColumn",{tablePasteChainId:o}),a[Gx("0x11")]&&n.markMultiRangeInsertion(a,Gx("0x35"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Gx("0x11")]&&n[Gx("0x3b")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Gx("0x92")](l[Gx("0x19")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Gx("0x75"),{tablePasteChainId:o});if(u){const e=u[Gx("0x28")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t[Gx("0x77")][Gx("0x9")](o),i=e.find((t=>t.getRange()[Gx("0x25")](s)));i&&n[Gx("0x3d")]([i[Gx("0x7c")],r])}n[Gx("0x11")]&&u[Gx("0x50")](Gx("0x53"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Gx("0x4b")]+10}),t.plugins[Gx("0x99")](Gx("0x48")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,r]=e;if(!i)return;t[Gx("0x2c")]();const s=n[Gx("0x7")],x=o,a=zx(s),c=zx(x);t[Gx("0x85")]=s;let l=null,u=null;if(c||a)if(a&&!c){r.remove(s[Gx("0x80")](0));for(const t of Array[Gx("0x8")](x.getChildren()))r[Gx("0x2")](t,s,"end");const t=i[Gx("0x9b")][Gx("0x81")](n.row),e=i.columnInsertionIndexes.includes(n[Gx("0x9a")]);t||e||(l=r[Gx("0x12")](s))}else c&&!a&&(u=r.createRangeIn(s));else{const t=r[Gx("0x59")]("tableCellSuggestion"),e=r.createElement("tableCellSuggestion");r.wrap(r[Gx("0x12")](s),e),r[Gx("0x2")](t,s,0);for(const e of Array[Gx("0x8")](x[Gx("0xa2")]()))r[Gx("0x2")](e,t,"end");l=r[Gx("0x9")](t),u=r[Gx("0x9")](e)}const d=Array[Gx("0x8")](x.getAttributes()).filter((([t])=>Hx[Gx("0x81")](t)));i[Gx("0x1f")].push({element:s,attributes:d[Gx("0x11")]?Object.fromEntries(d):null}),l&&i[Gx("0x9f")].push(l),u&&i[Gx("0x73")][Gx("0x3d")](u)}),{priority:Gx("0x4b")}),o.on(Gx("0x8a"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Gx("0x4f")]||1;i[Gx("0x98")]=new Array(a)[Gx("0xa3")](x)[Gx("0x19")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startColumn:x,endColumn:x+a-1}))i[Gx("0x3f")].push(t.model[Gx("0x9")](e))}),{priority:Gx("0x67")}),o.on(Gx("0x82"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Gx("0x65")]||1;i[Gx("0x9b")]=new Array(a)[Gx("0xa3")](x)[Gx("0x19")](((t,e)=>t+e));for(const{cell:e}of o[Gx("0x1")](r,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Gx("0x3d")](t[Gx("0x77")][Gx("0x9")](e))}),{priority:Gx("0x67")}),n[Gx("0x2b")][Gx("0x96")]((e=>{if(e[Gx("0x29")]&&e[Gx("0x29")][Gx("0x88")](Gx("0x35")))return e[Gx("0x71")]?{}:{type:Gx("0x86"),content:Yo(t.locale,Gx("0x8c"))}}));const x=()=>{};for(const t of[Gx("0x35"),Gx("0x91"),Gx("0x16"),Gx("0x75")])n._suggestionFactory[Gx("0x8f")](Gx("0x86"),t,"join",x),n._suggestionFactory.registerCustomCallback("deletion",t,"join",x);n[Gx("0x6f")][Gx("0x8f")](Gx("0x20"),Gx("0x75"),"discard",x),n[Gx("0x6f")][Gx("0x8f")](Gx("0x20"),Gx("0x75"),Gx("0x2d"),((e,n,o)=>{const r=e[Gx("0x19")]((t=>t[Gx("0x1d")]()))[Gx("0x1e")]((t=>t)),s=new Map(r[Gx("0x19")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Gx("0x1f")])e&&s[Gx("0x32")](t,e);else if(o&&o[Gx("0x53")])for(const[e,n]of Object[Gx("0x44")](o[Gx("0x53")])){const o=t[Gx("0x77")][Gx("0x33")][Gx("0x99")](e),r=o?o[Gx("0x69")]()[Gx("0x1d")]():null;r&&s[Gx("0x32")](r,n)}t[Gx("0x77")][Gx("0x7b")]((t=>{for(const[e,n]of s)t[Gx("0x5f")]({...Wx,...n},e)}))}));const a=(e,o)=>{n[Gx("0x6f")].registerCustomCallback(e,Gx("0x35"),o,((r,s,i)=>{t[Gx("0x77")][Gx("0x7b")]((t=>{const x=[];for(const t of r){const e=t.start[Gx("0x52")];e.is(Gx("0x40"),"tableCellSuggestion")&&x[Gx("0x3d")](e)}n._suggestionFactory[Gx("0x27")](e,null,o)(r,s,i);for(const e of x)Gx("0xa5")!=e.root[Gx("0x4d")]&&t[Gx("0xa4")](e)}))}))};a(Gx("0x86"),"accept"),a("insertion",Gx("0x7a")),a(Gx("0xe"),Gx("0x2d")),a(Gx("0xe"),"discard"),n[Gx("0x6f")][Gx("0x8f")](Gx("0x86"),Gx("0x16"),Gx("0x7a"),(t=>{const e=t[Gx("0x19")]((t=>t[Gx("0x1d")]())),n=e[0][Gx("0x6b")](Gx("0x34")),{minRow:s,maxRow:i}=r[Gx("0x3e")](e);o.removeRows(n,{at:s,rows:i-s+1})})),n._suggestionFactory[Gx("0x8f")](Gx("0x86"),Gx("0x91"),Gx("0x7a"),(t=>{const e=t.map((t=>t[Gx("0x1d")]())),n=e[0][Gx("0x6b")](Gx("0x34")),{minColumn:s,maxColumn:i}=r[Gx("0x3e")](e);o[Gx("0xd")](n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[Gx("0x29")]||!e[Gx("0x29")][Gx("0x88")]("tablePaste"))return;const o=e.attributes[Gx("0x6")],r=n[Gx("0x21")]()[Gx("0x1e")]((t=>t[Gx("0x17")]&&t[Gx("0xa")]&&t[Gx("0xa")][Gx("0x6")]==o));r[Gx("0x11")]&&e[Gx("0x7f")]()[Gx("0x11")]!=r.length&&r[Gx("0x61")](((t,e)=>(t[Gx("0x6c")]=e,e[Gx("0x71")]=t,e)))};function l(t,e=!0){const{id:o}=n[Gx("0xc")](t[Gx("0x55")]),r=[Gx("0x4e"),Gx("0x36")],s=n[Gx("0x8d")][Gx("0x81")](t.markerName);return s&&r[Gx("0x3d")](Gx("0x62")),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:"high"}),t[Gx("0x77")][Gx("0x37")][Gx("0x64")]((()=>{let e=!1;const o=Array[Gx("0x8")](t[Gx("0x77")][Gx("0x37")][Gx("0x6e")][Gx("0x87")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n._splitMarkerName(r);if("suggestion"!=o||Gx("0xe")!=i||s.oldRange)continue;if(!n[Gx("0xa0")](x))continue;const a=n[Gx("0xb")](x)[Gx("0x9c")](),c=t[Gx("0x1c")][Gx("0x99")]("Users").me;for(const t of n.getSuggestions())if(t[Gx("0x17")]&&t[Gx("0x7e")]==c&&"formatBlock"==t[Gx("0x13")]&&Gx("0x75")==t[Gx("0x29")]&&t.getRanges()[Gx("0x5e")]((t=>a[Gx("0x8b")]((e=>e.containsRange(t,!0))))))for(const n of t[Gx("0x7f")]())n[Gx("0x17")]&&(n[Gx("0x7a")](),e=!0)}return e})),t[Gx("0x77")].document.registerPostFixer((e=>{const o=t[Gx("0x94")].get(Gx("0x4c"));if(!o||!o[Gx("0x26")][Gx("0x46")](e[Gx("0x5")]))return!1;let r=!1;const s=t[Gx("0x1c")][Gx("0x99")](Gx("0x4a")).me,i=t[Gx("0x77")][Gx("0x37")][Gx("0x6e")][Gx("0x6d")](),x=Array[Gx("0x8")](t[Gx("0x77")][Gx("0x37")].differ[Gx("0x87")]()).filter((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n[Gx("0xc")](t);return"suggestion"==o&&Gx("0x35")==r&&i==s.id&&!e[Gx("0x5c")]}));for(const t of i){if(Gx("0x2")!=t.type||Gx("0x1a")!=t[Gx("0x7c")]||1!=t[Gx("0x11")])continue;const n=e.createRange(t[Gx("0x39")],t.position[Gx("0x68")](1));if(!x[Gx("0x49")]((({data:t})=>t[Gx("0x42")].isEqual(n))))for(const{name:t,data:o}of x)if(n[Gx("0x10")](o.newRange)){e[Gx("0x58")](t,{range:n}),r=!0;break}}return r})),t.model[Gx("0x37")][Gx("0x64")]((e=>{let o=!1;const r=t.plugins.get("Users").me,s=n[Gx("0x21")]()[Gx("0x1e")]((t=>t.isInContent&&t[Gx("0x7e")]==r)),i=new Set,x=new Set;for(const t of s)if("tablePaste"==t.subType)for(const e of t.getMarkers()){const n=e[Gx("0x69")]()[Gx("0x1d")]();if(n)if(n.is("element",Gx("0x1a"))&&zx(n)){t[Gx("0x57")](e[Gx("0x7c")]),i[Gx("0x4")](n),o=!0;const r=n[Gx("0x8e")],s=n.previousSibling,a=r&&r.is(Gx("0x40"),"tableCellSuggestion"),c=s&&s.is(Gx("0x40"),Gx("0x1a"));a&&!i.has(r)&&x[Gx("0x4")](r),c&&!i[Gx("0x46")](s)&&x.add(s)}else n.is(Gx("0x40"),Gx("0x5d"))&&n[Gx("0x18")]&&(t[Gx("0x57")](e[Gx("0x7c")]),o=!0)}else if(Gx("0x75")==t[Gx("0x29")]){if(!t[Gx("0xa")]||!t[Gx("0xa")][Gx("0x6")])continue;const e=t.attributes[Gx("0x53")];if(e&&Object.keys(e)[Gx("0x11")])continue;const n=t[Gx("0xa")][Gx("0x6")];let r=!0,i=!0;for(const e of s)if(e.subType&&e[Gx("0x29")].startsWith(Gx("0x35"))){if(!e[Gx("0xa")][Gx("0x6")]){i=!1;break}if(e.id!=t.id&&e[Gx("0xa")][Gx("0x6")]==n){r=!1;break}}i&&r&&(t[Gx("0x47")](),o=!0)}for(const t of i)e[Gx("0x14")](t);for(const t of x)e[Gx("0xa4")](t);return o})),t[Gx("0x9d")][Gx("0x31")](Gx("0x7d")).markerToHighlight({model:Gx("0xf"),view:(t,e)=>l(t),converterPriority:Gx("0x4b")}),t.conversion.for(Gx("0x97"))[Gx("0x78")]({model:Gx("0xf"),view:(t,e)=>e[Gx("0x76")][Gx("0x84")]?l(t,!1):null,converterPriority:Gx("0x4b")});const u=t[Gx("0x83")][Gx("0x3a")];this[Gx("0x23")](u[Gx("0x37")],Gx("0x90"),((t,e)=>{const n=[];for(const t of u[Gx("0x12")](e[Gx("0x79")]).getItems())t.is(Gx("0x40"),Gx("0x1b"))&&n[Gx("0x3d")](t);u[Gx("0x7b")]((t=>{for(const e of n)t[Gx("0x3")](t[Gx("0x12")](e),t[Gx("0x70")](e)),t[Gx("0x14")](e)}))}))}}function zx(t){if(t[Gx("0x18")])return!0;const e=t[Gx("0x80")](0);return e.is("element",Gx("0x5d"))&&e[Gx("0x18")]}function Kx(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const qx=["getAttribute","Users","plugins","resizeTableWidth","data","enableCommand","markBlockFormat","getSuggestions","tableWidth","discard","has","formatBlock","columnWidths","registerCustomCallback","getTableColumnsWidths","author","_descriptionFactory","model","getSelectedElement","bind","resizeTable","TrackChangesEditing","getColumnGroupElement","format","getSuggestionCallback","_suggestionFactory","resizeColumnWidths","get","*Format:* resize table","editor","formatGroupId","commandParams","afterInit","handleResizeTableWidthCommand","TableColumnResizeEditing","subType","change","accept"];var Xx,$x;Xx=qx,$x=163,function(t){for(;--t;)Xx.push(Xx.shift())}(++$x);const Jx=function(t,e){return qx[t-=0]};class Qx extends t.Plugin{[Jx("0x15")](){if(!this[Jx("0x12")][Jx("0x1d")][Jx("0x25")](Jx("0x17")))return;const t=this[Jx("0x12")][Jx("0x1d")][Jx("0x10")](Jx("0xa"));t[Jx("0x20")](Jx("0x1e"),this.handleResizeTableWidthCommand.bind(this)),t[Jx("0x20")](Jx("0xf"),this[Jx("0x16")].bind(this)),t[Jx("0xe")][Jx("0x2")](Jx("0x0"),"resizeTable",Jx("0x1a"),t[Jx("0xe")].getSuggestionCallback("formatBlock",null,Jx("0x24"))),t._suggestionFactory.registerCustomCallback(Jx("0x0"),Jx("0x9"),Jx("0x24"),t._suggestionFactory[Jx("0xd")]("formatBlock",null,Jx("0x1a"))),t[Jx("0x5")].registerDescriptionCallback(this.handleSuggestionDescription[Jx("0x8")](this))}[Jx("0x16")](t,e){const n=this[Jx("0x12")][Jx("0x1d")][Jx("0x10")](Jx("0xa")),o=this.editor[Jx("0x1d")][Jx("0x10")]("TableColumnResizeEditing"),r=e.table||this.editor[Jx("0x6")].document.selection[Jx("0x7")]();this[Jx("0x12")][Jx("0x6")][Jx("0x19")]((()=>{const s=o[Jx("0xb")](r);let i=s?o[Jx("0x3")](s):null,x=r[Jx("0x1b")](Jx("0x23"))||null;const a=e[Jx("0x23")]||x,c=e[Jx("0x1")]||i,l=this[Jx("0x12")].plugins[Jx("0x10")](Jx("0x1c")).me;for(const t of n[Jx("0x22")]()){const e=t.getContainedElement();if(Jx("0x9")===t[Jx("0x18")]&&e===r){t[Jx("0x4")]!==l&&t[Jx("0x24")]();const e=t[Jx("0x1f")][Jx("0x14")];x=e[0][Jx("0x23")],i=e[0][Jx("0x1")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[Jx("0x21")](r,{commandName:Jx("0x1e"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:Jx("0x9")},[],Jx("0x9"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&"resizeTable"===e[Jx("0x13")]){const t=Jx("0x11");return{type:Jx("0xc"),content:Yo(this.editor.locale,t)}}}}const Zx=["_descriptionFactory","registerPostFixer","afterInit","differ","newRange","title-content","forward","plugins","Title","element","end","removeMarker","registerElementLabel","locale","from","get","isCollapsed","_splitMarkerName","editor","model","isTouching","updateMarker","TrackChangesEditing","schema","has","nodeBefore","start","document","getChangedMarkers"];var Yx,ta;Yx=Zx,ta=272,function(t){for(;--t;)Yx.push(Yx.shift())}(++ta);const ea=function(t,e){return Zx[t-=0]};class na extends t.Plugin{[ea("0x14")](){const t=this[ea("0x7")];if(!t[ea("0x19")][ea("0xd")](ea("0x1a")))return;const e=t[ea("0x19")][ea("0x4")](ea("0xb"));e[ea("0x12")][ea("0x1")]("title-content",(()=>Yo(t[ea("0x2")],"ELEMENT_TITLE"))),t.model[ea("0x10")][ea("0x13")]((n=>{let o=!1;const r=Array[ea("0x3")](t[ea("0x8")][ea("0x10")][ea("0x15")][ea("0x11")]());for(const{name:s,data:i}of r){const{group:r}=e[ea("0x6")](s);if("suggestion"!==r||!i.newRange)continue;const x=i[ea("0x16")],a=x[ea("0x1c")][ea("0xe")];if(!a||!a.is(ea("0x1b"),ea("0x17")))continue;if(!x[ea("0xf")][ea("0x9")](x.end))continue;const c=t[ea("0x8")][ea("0xc")].getNearestSelectionRange(x[ea("0x1c")],ea("0x18"));if(c&&c[ea("0x5")]){const t=n.createRange(x[ea("0xf")],c[ea("0xf")]);t.isEqual(x)||(n[ea("0xa")](s,{range:t}),o=!0)}o||(n[ea("0x0")](s),o=!0)}return o}))}}const oa=["UndoEditing","undo","afterInit","redo","enableCommand","get","editor","plugins"];var ra,sa;ra=oa,sa=413,function(t){for(;--t;)ra.push(ra.shift())}(++sa);const ia=function(t,e){return oa[t-=0]};class xa extends t.Plugin{[ia("0x5")](){const t=this[ia("0x1")],e=t[ia("0x2")][ia("0x0")]("TrackChangesEditing");t[ia("0x2")].has(ia("0x3"))&&(e[ia("0x7")](ia("0x4")),e[ia("0x7")](ia("0x6")))}}const aa=["editor","TrackChangesEditing","enableCommand","get","afterInit","plugins","requires"];var ca,la;ca=aa,la=204,function(t){for(;--t;)ca.push(ca.shift())}(++la);const ua=function(t,e){return aa[t-=0]};class da extends t.Plugin{static get[ua("0x5")](){return[vx]}[ua("0x3")](){const t=this[ua("0x6")];t[ua("0x4")].has("TableCaptionEditing")&&t.plugins[ua("0x2")](ua("0x0"))[ua("0x1")]("toggleTableCaption")}}const ga=["format","*Format:* set start index to %0","getSelectedBlocks","change","DocumentListPropertiesUtils","listStyle","isFirstBlockOfListItem","listReversed","_getSuggestionBlocksForListStyle","filter","get","handleListStartCommand","listType","document","handleListStyleCommand","replace","isListItemBlock","*Change to:* %0","*Format:* set order to regular","numbered","has","ELEMENT_","model","type","handleDescriptions","registerDescriptionCallback","DocumentListUtils","listStart","_descriptionFactory","toUpperCase","startIndex","_getTranslationKeyForListStyle","plugins","_LIST_","reversed","getAttribute","TrackChangesEditing","handleListReversedCommand","afterInit","locale","getListTypeFromListStyleType","expandListBlocksToCompleteList","length","editor","DocumentListPropertiesEditing","selection","styles","push","_getSuggestionBlocks","bind","commandName","from","markMultiRangeBlockFormat","commandParams"];var ma,fa;ma=ga,fa=321,function(t){for(;--t;)ma.push(ma.shift())}(++fa);const ha=function(t,e){return ga[t-=0]};class pa extends t.Plugin{[ha("0x29")](){if(!this[ha("0x2e")][ha("0x23")][ha("0x17")](ha("0x2f")))return;const t=this[ha("0x2e")].config[ha("0xd")]("list.properties"),e=this.editor[ha("0x23")][ha("0xd")](ha("0x27"));t[ha("0x31")]&&e.enableCommand("listStyle",this[ha("0x11")][ha("0x34")](this)),t[ha("0x25")]&&e.enableCommand("listReversed",this[ha("0x28")][ha("0x34")](this)),t[ha("0x21")]&&e.enableCommand(ha("0x1e"),this.handleListStartCommand[ha("0x34")](this)),e[ha("0x1f")][ha("0x1c")](this[ha("0x1b")].bind(this))}[ha("0x11")](t,e={}){const n=this.editor.plugins[ha("0xd")](ha("0x27")),o=this[ha("0xb")]();this[ha("0x2e")].model.change((()=>{n[ha("0x1")](o,{commandName:ha("0x8"),commandParams:[{type:e[ha("0x1a")]}],formatGroupId:ha("0x8")})}))}[ha("0x28")](t,e={}){const n=this[ha("0x2e")][ha("0x23")][ha("0xd")](ha("0x27")),o=this.editor.plugins[ha("0xd")](ha("0x1d")),r=this[ha("0x33")]((t=>o[ha("0x13")](t)&&ha("0x16")===t[ha("0x26")](ha("0xf"))));null!==r&&this[ha("0x2e")][ha("0x19")].change((()=>{n[ha("0x1")](r,{commandName:ha("0xa"),commandParams:[{reversed:e[ha("0x25")]}],formatGroupId:ha("0xa")})}))}[ha("0xe")](t,e={}){const n=this[ha("0x2e")][ha("0x23")][ha("0xd")]("TrackChangesEditing"),o=this[ha("0x2e")][ha("0x23")][ha("0xd")](ha("0x1d")),r=this[ha("0x33")]((t=>o.isListItemBlock(t)&&ha("0x16")===t[ha("0x26")](ha("0xf"))));null!==r&&this[ha("0x2e")][ha("0x19")][ha("0x6")]((()=>{n[ha("0x1")](r,{commandName:ha("0x1e"),commandParams:[{startIndex:e.startIndex}],formatGroupId:ha("0x1e")})}))}[ha("0x1b")](t){const e=this[ha("0x2e")][ha("0x2a")],{data:n}=t;if(!n)return;let o,r;switch(n[ha("0x35")]){case ha("0x8"):o=ha("0x14"),r={type:ha("0x3"),content:Yo(e,o,Yo(e,this[ha("0x22")](n[ha("0x2")][0][ha("0x1a")])))};break;case ha("0xa"):o=n[ha("0x2")][0][ha("0x25")]?"*Format:* set order to reversed":ha("0x15"),r={type:"format",content:Yo(e,o)};break;case ha("0x1e"):o=ha("0x4"),r={type:ha("0x3"),content:Yo(e,o,n[ha("0x2")][0][ha("0x21")])}}return r}[ha("0xb")](){const t=this[ha("0x2e")][ha("0x23")].get(ha("0x1d"));let e=Array[ha("0x0")](this[ha("0x2e")][ha("0x19")][ha("0x10")][ha("0x30")][ha("0x5")]());return e[ha("0x32")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[ha("0x2e")][ha("0x23")][ha("0xd")](ha("0x1d"));let n=Array[ha("0x0")](this[ha("0x2e")][ha("0x19")][ha("0x10")][ha("0x30")][ha("0x5")]())[ha("0xc")](t);if(!n[ha("0x2d")])return null;n=e[ha("0x2c")](n);const o=[];for(const t of n)e[ha("0x9")](t)&&o.push(t);return o}[ha("0x22")](t){return ha("0x18")+this[ha("0x2e")].plugins[ha("0xd")](ha("0x7"))[ha("0x2b")](t)[ha("0x20")]()+ha("0x24")+t[ha("0x20")]()[ha("0x12")](/-/g,"_")}}const ba=["tableBorderStyle","tableCellBorderStyle","change","tableCellWidth","document","*Format:* change table cell properties","formatBlock","accept","TablePropertiesEditing","enqueueChange","_suggestionFactory","tableBorderColor","get","getSelectionAffectedTableCells","tableCellVerticalAlignment","nodeAfter","_handlePropertyChange","tableCellPadding","tableCellProperties","model","getFirstPosition","handleDiscardAction","start","discard","tableWidth","*Format:* change table properties","batch","removeAttribute","editor","table","registerCustomCallback","pluginName","tableCellHorizontalAlignment","data","plugins","has","enableCommand","tableCellBackgroundColor","tableProperties","format","TableUtils","TrackChangesTableProperties","getContainedElement","locale","join","tableCellBorderWidth","getSuggestionCallback","handleSuggestionDescription","TrackChangesEditing","subType","markBlockFormat","_descriptionFactory","tableBorderWidth","selection","findAncestor"];var Ea,_a;Ea=ba,_a=444,function(t){for(;--t;)Ea.push(Ea.shift())}(++_a);const Ta=function(t,e){return ba[t-=0]};class Ca extends t.Plugin{constructor(t){super(t),this[Ta("0x22")]=[Ta("0x7"),Ta("0x33"),Ta("0x30"),"tableAlignment",Ta("0x14"),"tableHeight","tableBackgroundColor"],this[Ta("0xe")]=["tableCellBorderColor",Ta("0x34"),Ta("0x29"),Ta("0xd"),Ta("0x36"),"tableCellHeight",Ta("0x21"),Ta("0x1c"),Ta("0xa")]}static get[Ta("0x1b")](){return Ta("0x25")}afterInit(){const t=this[Ta("0x18")][Ta("0x1e")][Ta("0x8")](Ta("0x2c"));if(this[Ta("0x18")][Ta("0x1e")][Ta("0x1f")](Ta("0x4"))){for(const e of this[Ta("0x22")])t[Ta("0x20")](e,((t,n)=>{const o=this[Ta("0x18")][Ta("0xf")][Ta("0x0")][Ta("0x31")][Ta("0x10")]()[Ta("0x32")](Ta("0x19"));this[Ta("0xc")](e,[o],this[Ta("0x22")],Ta("0x22"),t,n)}));t._suggestionFactory[Ta("0x1a")](Ta("0x2"),"tableProperties",Ta("0x3"),t[Ta("0x6")][Ta("0x2a")](Ta("0x2"),null,Ta("0x13"))),t[Ta("0x6")][Ta("0x1a")](Ta("0x2"),"tableProperties","discard",((t,e)=>this.handleDiscardAction(this.tableProperties,t,e))),t._suggestionFactory[Ta("0x1a")](Ta("0x2"),Ta("0x22"),"join",(()=>!1))}if(this[Ta("0x18")].plugins.has("TableCellPropertiesEditing")){for(const e of this.tableCellProperties)t[Ta("0x20")](e,((t,n)=>{const o=this.editor[Ta("0x1e")].get(Ta("0x24"))[Ta("0x9")](this.editor[Ta("0xf")][Ta("0x0")].selection);this[Ta("0xc")](e,o,this[Ta("0xe")],"tableCellProperties",t,n)}));t[Ta("0x6")][Ta("0x1a")](Ta("0x2"),"tableCellProperties","accept",t._suggestionFactory[Ta("0x2a")](Ta("0x2"),null,Ta("0x13"))),t[Ta("0x6")][Ta("0x1a")](Ta("0x2"),Ta("0xe"),Ta("0x13"),((t,e)=>this[Ta("0x11")](this[Ta("0xe")],t,e))),t[Ta("0x6")][Ta("0x1a")]("formatBlock",Ta("0xe"),Ta("0x28"),(()=>!1))}t[Ta("0x2f")].registerDescriptionCallback((t=>this[Ta("0x2b")](t)))}_handlePropertyChange(t,e,n,o,r,s){const i=this[Ta("0x18")][Ta("0x1e")].get(Ta("0x2c"));this[Ta("0x18")][Ta("0xf")][Ta("0x5")](s[Ta("0x16")],(()=>{for(const t of e)if(this._getSuggestion(t,o))r(s);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}r(s),i[Ta("0x2e")](t,{commandParams:[e]},[],o)}}))}[Ta("0x11")](t,e,n){const o=e[0][Ta("0x12")][Ta("0xb")],r=n.commandParams[0];this.editor[Ta("0xf")][Ta("0x35")]((e=>{for(const n of t)void 0!==r[n]?e.setAttribute(n,r[n],o):e[Ta("0x17")](n,o)}))}[Ta("0x2b")](t){if(t[Ta("0x1d")])switch(t[Ta("0x2d")]){case Ta("0x22"):return{type:Ta("0x23"),content:Yo(this[Ta("0x18")][Ta("0x27")],Ta("0x15"))};case Ta("0xe"):return{type:Ta("0x23"),content:Yo(this[Ta("0x18")][Ta("0x27")],Ta("0x1"))}}}_getSuggestion(t,e){const n=this[Ta("0x18")][Ta("0x1e")][Ta("0x8")](Ta("0x2c"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ta("0x26")]();if(o[Ta("0x2d")]===e&&n===t)return o}return null}}const ya=["_refreshSuggestionsChain","createElement","enableCommand","originalSuggestionId","hasCommentThread","value","from","open","pluginName","formatInline:accept","collaboration.channelId","suggestion","insertion:discard","deletion:accept","suggestionLoaded","removed","ck-suggestion-marker","_getSuggestionData","rethrowUnexpectedError","substr","showSuggestionHighlights","_handleNewSuggestionMarker","getAttribute","delete","getNearestSelectionRange","enableReadOnlyMode","options","acceptSelectedSuggestions","containsPosition","track-changes-suggestion-not-found","_trackFormatChanges","getShiftedBy","splice","subType","markerNameToElements","_saved","_updateSuggestionData","_breakSuggestionMarker","isDocumentOperation","setTo","isAfter","notReady","createPositionAfter","getMultiRangeId","containsItem","hasSuggestion","insertion","values","deleteContent","sort","deletion:chain","add","isAtEnd","track-changes-adapter-already-set","insertion:chain","_editor","formatBlock:discard","setSelection","formatBlock","commandName","config","isObject","PENDING_ACTION_SUGGESTION","attributes","createRangeIn","getIntersection","_checkSuggestionCorrectness","containsRange","init","then","move","addClass","conversion","plugins","isBlock","isNextTo","formatBlock:","size","deletion:join","deletion:discard","getChangedMarkers","join","_customCallbacks","filter","detach","isMultiRange","formatGroupId","$marker","catch","markerToData","TrackChangesEditing","updateMarker","track-changes-command-not-found","position","markers","map","markMultiRangeBlockFormat","after","isLocal","creator","containsRangeInObject","upcast","_getAuthorFromId","nodeAfter","low","getFirstMarker","addHighlight","getAllAdjacentSuggestions","getMarkers","getSuggestion","removeClass","newRange","markerName","range","_addSuggestionMarker","getItems","has","markerReady","rejected","documentSelection","listenTo","isExternal","authoredAt","deletion:","isAtStart","getCustomProperty","parent","selection","group","dataToMarker","accept","elementStart","type","addMarker","isSelectable","root","removeComment","removeMarker","_rangeIsInLocalUserInsertion","isEqual","elementToElement","addSuggestion","chain","error-saving-suggestion-data-suggestion-discarded","_cutOutSuggestionMarker","setAttribute","_removeSuggestion","differ","formatBlock:chain","every","_getExternalAuthor","stop","_commentsRepository","execute","addMarkerName","getWalker","suggestionChanged","createPositionBefore","addMarker:suggestion:formatBlock","markDeletion","next","registerPostFixer","suggestion:","adapter","authorName","fromCharCode","change:activeMarkers","CommentsRepository","_enabledCommands","addRange","before","getFirstRange","discardSelectedSuggestions","for","consumable","length","change","toJSON","marker-count","getUser","schema","trackChanges","data","lowest","commands","removeAttribute","refresh","model","name","isCollapsed","_onDiscard","previous","remove","document","_defaultCallbacks","_suggestionFactory","buildSuggestion","acceptAllSuggestions","unbindElementFromMarkerName","getSuggestions","dataDowncast","normal","discardSuggestion","_joinWithAdjacentSuggestions","markMultiRangeDeletion","isInContent","markerToHighlight","define","getLastMatchingPosition","getSuggestionCallback","createRange","_suggestions","discardAllSuggestions","insertContent","multipleBlocks","ready","rootName","ck-suggestion-marker-formatBlock","markInlineFormat","markBlockFormat","forceDefaultExecution","elementEnd","Users","hasComments","ck-suggestion-marker-","multi","addSuggestionData","backward","ck-suggestion-marker--active","editor","getCommentThread","trackChanges.trackFormatChanges","splitPosition","createSelection","moveTargetPosition","insertion:","createPositionAt","reconvertMarker","accepted","isBefore","addUser","formatInline:join","toViewElement","_registerDefaultCallbacks","_addThreadToSuggestion","isOwn","editingDowncast","writer","forward","update:suggestion","_setSuggestionData","change:_saved","_setSuggestionRange","skipNestingCheck","containerElement","howMany","removeMarkers","fromRange","high","_createSuggestion","_adapter","highest","includes","isRemovable","locale","fire","@external","clone","deletion","formatInline:discard","dataReady","data-suggestion","oldRange","getRange","element","discard","split","$textProxy","addMarker:suggestion","removeMarker:suggestion:formatBlock","_isForcedDefaultExecutionBlock","acceptSuggestion","batch","commentThread","track-changes-adapter-missing-getsuggestion","_splitMarkerName","mapper","markMultiRangeInsertion","_suggestionState","set","_descriptionFactory","$graveyard","push","addComment","consume","get","some","resolve","track-changes-suggestion-data-mismatch","isTouching","item","nodeBefore","widget","getRanges","author","addCommentThread","end","_joinSuggestions","external:","start","formatBlock:accept","insert","track-changes-user-not-found","activeMarkers","formatInline:","markInsertion","_findSuggestions","isLimit","createdAt","formatInline","_model","trackChangesCommand"];var ka,Aa;ka=ya,Aa=354,function(t){for(;--t;)ka.push(ka.shift())}(++Aa);const va=function(t,e){return ya[t-=0]};class Ra extends t.Plugin{static get requires(){return[va("0x87"),s.Users,t.PendingActions,cr,Cr,Rr,Mr,Br,Vr,Jr,es,pa,xs,ds,bs,ys,Ss,Os,js,Vs,$s,ti,si,li,fi,_i,Ri,wi,Di,Hi,qi,Yi,sx,lx,hx,Tx,vx,wx,Dx,da,Vx,Qx,Ca,na,xa]}static get[va("0x12a")](){return va("0x3a")}constructor(t){function e(t){return t.map((t=>String[va("0x85")](t)))[va("0x31")]("")}super(t),this[va("0x101")](va("0x119"),[]),this.on(va("0x86"),((e,n,o,r)=>{this._model[va("0x90")]((()=>{for(const e of[...r,...o])this[va("0x120")][va("0x3e")].has(e)&&t.editing[va("0xcd")](e)}))})),this[va("0x102")]=new rr(this[va("0xc5")].model[va("0x94")],this[va("0xc5")][va("0xe8")]),this[va("0xe4")]=null,this[va("0xa3")]=new Ia(this.editor),this[va("0xb3")]=new Map,this[va("0x78")]=t[va("0x29")][va("0x107")](va("0x87")),this[va("0x88")]=new Set,this[va("0x120")]=this[va("0xc5")][va("0x9b")],this[va("0x100")]=new WeakMap,this[va("0xf8")]=!1,t[va("0x1c")][va("0xaf")](va("0xc7"),!0),this._trackFormatChanges=t[va("0x1c")][va("0x107")](va("0xc7")),this[va("0x121")]=new d(t,this[va("0x88")]),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,48,56,49,48])}[va("0x24")](){const t=this[va("0xc5")];t.conversion.for(va("0xd6")).markerToHighlight({model:"suggestion",view:t=>{const{id:e,type:n}=this[va("0xfd")](t.markerName),o=["ck-suggestion-marker",va("0xc0")+n];let r=3e3;return this[va("0x119")].includes(t.markerName)&&(o[va("0x104")]("ck-suggestion-marker--active"),r=3010),va("0xec")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t[va("0x28")].for("dataDowncast")[va("0x13")]((e=>{e.on(va("0xf6"),((e,n,o)=>{if(!o[va("0x13c")][va("0x136")])return;const r=n[va("0x10c")];if(!r)return;const s=o[va("0xfe")][va("0xd2")](r);t[va("0x9b")].schema[va("0x1d")](r)&&s&&!s.getCustomProperty(va("0x10e"))&&s.is(va("0xde"))&&(0,x.toWidget)(s,o.writer)}),{priority:va("0xe2")})})),t[va("0x28")][va("0x8d")](va("0xa8"))[va("0xae")]({model:va("0x12d"),view:(t,e)=>{if(!e.options.showSuggestionHighlights)return null;const{type:n}=this[va("0xfd")](t.markerName);return{classes:[va("0x132"),va("0xc0")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o.item)return;if(o[va("0x10c")].is(va("0x5f")))return void r[va("0x8e")][va("0x106")](o[va("0x10c")],n.name);const s=r[va("0xfe")][va("0xd2")](o.item);if(!o[va("0x10c")].is(va("0xf2"))||!t[va("0x9b")][va("0x94")][va("0x2a")](o[va("0x10c")])||s[va("0x5d")](va("0x4a")))return;const{id:i}=this[va("0xfd")](o[va("0x50")]);r[va("0xd7")][va("0x27")](["ck-suggestion-marker",va("0xb9")],s),r[va("0xd7")][va("0x71")](va("0xef"),i,s),r[va("0xfe")].bindElementToMarker(s,o[va("0x50")]),e&&(this.activeMarkers.includes(o[va("0x50")])?r[va("0xd7")][va("0x27")](va("0xc4"),s):r[va("0xd7")][va("0x4e")](va("0xc4"),s));for(const e of t.model[va("0x20")](o.item)[va("0x53")]())r[va("0x8e")].consume(e,n[va("0x9c")]);r[va("0x8e")].consume(o[va("0x10c")],n[va("0x9c")])};t.conversion[va("0x8d")](va("0xa8"))[va("0x13")]((t=>{t.on(va("0x7e"),((t,e,o)=>{o[va("0x13c")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:va("0xe5")})})),t[va("0x28")][va("0x8d")](va("0xa8"))[va("0x39")]({model:va("0x12d"),view:(t,e)=>e[va("0x13c")][va("0x136")]?null:{group:va("0x12d"),name:t[va("0x135")]("suggestion"[va("0x8f")]+1)}}),t[va("0x28")].for(va("0x45"))[va("0x6c")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=va("0x82")+t[va("0x138")]("suggestion-type")+":"+t[va("0x138")]("id");return t.getAttribute(va("0x92"))&&(n+=":"+t[va("0x138")](va("0x92"))),e[va("0x123")](va("0x37"),{"data-name":n})}}),t[va("0x28")][va("0x8d")](va("0x45"))[va("0x61")]({view:va("0x12d")}),t[va("0x28")][va("0x8d")](va("0xd6"))[va("0x13")]((t=>{t.on(va("0x7e"),n(),{priority:va("0xe2")})})),t[va("0x28")][va("0x8d")]("editingDowncast").add((t=>{t.on(va("0xf7"),((t,e,n)=>{const o=n[va("0xfe")][va("0x2")](e[va("0x50")]);if(o)for(const t of o)t[va("0x5d")]("addHighlight")||(n[va("0xd7")].removeClass(["ck-suggestion-marker",va("0xb9"),va("0xc4")],t),n[va("0xd7")][va("0x99")]("data-suggestion",t),n[va("0xfe")][va("0xa6")](t,e[va("0x50")]))}),{priority:va("0xe2")})})),t[va("0x9b")].document.registerPostFixer((e=>{let n=!1;const o=Array[va("0x128")](t[va("0x9b")][va("0xa1")][va("0x73")][va("0x30")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[va("0xfd")](x);if(va("0x12d")!==o)continue;const u=this[va("0xb3")].get(l);if(null!=a[va("0x4f")])if("formatInline"==c&&(n=n||Na(a[va("0x4f")],x,e,t.model[va("0x94")])),a[va("0x4f")][va("0x9d")]||va("0x103")==a.newRange.root[va("0xb8")]||va("0x1a")==c&&!Ma(a[va("0x4f")])||"deletion"==c&&(La(i=a[va("0x4f")])||(s=i)[va("0x115")][va("0x5e")]==s[va("0x112")].nodeBefore&&s.start[va("0x14")]))e[va("0x69")](x),n=!0;else{if(!u||!u.isInContent)continue;r.add(u)}}var s,i;return r[va("0x2d")]>0&&(n=!!this._joinWithAdjacentSuggestions(r)||n),n})),t[va("0x9b")].document[va("0x81")]((e=>{let n=!1;for(const o of t[va("0x9b")][va("0xa1")][va("0x73")].getChanges()){if(va("0x117")!=o[va("0x64")])continue;const r=o.position[va("0x141")](o[va("0x8f")]);if(r[va("0x14")])for(const s of this._suggestions.values()){if(s.isMultiRange||!s[va("0xad")])continue;if(va("0x1a")!=s[va("0x64")])continue;const i=s.getFirstRange();if(i.start[va("0x5e")]!=i[va("0x112")][va("0x5e")]&&i.end[va("0x6b")](o[va("0x3d")])){const o=t.model.createRange(i[va("0x115")],r);e[va("0x3b")](s[va("0x49")](),{range:o}),n=!0}}}return n})),t[va("0x9b")][va("0x3e")].on(va("0xd9"),((t,e,n)=>{if(null==n){const{id:t}=this[va("0xfd")](e[va("0x9c")]),n=this[va("0xb3")][va("0x107")](t);n&&n.addMarkerName(e[va("0x9c")])}})),t[va("0x9b")].document.on("change:data",(()=>{const e=Array[va("0x128")](t[va("0x9b")][va("0xa1")].differ[va("0x30")]())[va("0x33")]((t=>"suggestion"===this[va("0xfd")](t[va("0x9c")])[va("0x60")]));if(0===e[va("0x8f")])return;e[va("0x11")](((t,e)=>{const n=t[va("0x96")][va("0xf0")],o=e[va("0x96")][va("0xf0")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[va("0x115")][va("0xcf")](o[va("0x115")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[va("0xfd")](t);if(null===r[va("0xf0")]){const e=this[va("0x137")](t);o.add(e)}else{const t=this[va("0xb3")][va("0x107")](e);null!==r[va("0x4f")]||t[va("0xad")]?(n[va("0x13")](t.head),o[va("0x13")](t)):this[va("0x72")](t)}}o[va("0x2d")]>0&&this[va("0x122")](o);for(const t of n)this.fire(va("0x7c"),t)})),t[va("0x9b")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[va("0xb3")].size)return;if(!o[va("0x6")])return;if(o.batch.isUndo||!o[va("0xfa")][va("0x42")])return;let r,s;switch(o[va("0x64")]){case va("0x117"):r=t.model[va("0xcc")](o[va("0x3d")]),s=r.getShiftedBy(o.howMany);break;case va("0xf4"):r=t[va("0x9b")][va("0xcc")](o[va("0xc8")]),s=t.model.createPositionAt(o[va("0xca")]);break;case va("0x26"):r=t[va("0x9b")].createPositionAt(o.targetPosition),s=r[va("0x141")](o[va("0xdf")]);break;default:return}const i=t.model[va("0xb2")](r,s);t[va("0x9b")].change((()=>{for(const{suggestion:t,meta:e}of this[va("0x11c")](i)){if(t[va("0x35")])continue;if(va("0x11f")==t[va("0x64")])continue;const n=t[va("0x96")]&&t[va("0x96")][va("0xb6")];("formatBlock"!=t[va("0x64")]||va("0xf4")==o[va("0x64")]&&!n)&&(e.containsRangeInObject||"insertion"==t[va("0x64")]&&e.isOwn||t.getFirstRange()[va("0x23")](i)&&this[va("0x5")](t,r,s))}}))}),{priority:va("0x97")}),t[va("0x9b")].on(va("0x10"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[va("0xbc")])return;if(this[va("0xf8")])return;if(!this[va("0x121")].value)return;if(o.isCollapsed)return;const s=t[va("0x9b")].schema,{start:i,end:x}=o.getFirstRange(),a=i[va("0x47")]&&s[va("0x11d")](i.nodeAfter)?null:s[va("0x13a")](i,va("0xd8")),c=x[va("0x10d")]&&s[va("0x11d")](x[va("0x10d")])?null:s[va("0x13a")](x,va("0xc3")),l=t[va("0x9b")][va("0xb2")](a?a.start:i,c?c.end:x);t[va("0x9b")][va("0x90")]((e=>{this[va("0x7f")](l);const n=t[va("0x9b")].schema[va("0x13a")](l[va("0x115")]);o.is(va("0x57"))?e.setSelection(n):o[va("0x7")](n)})),e[va("0x77")]()}),{priority:e.priorities[va("0xa9")]+10}),t[va("0x9b")].on(va("0xb5"),((e,n)=>{const o=n[n[va("0x8f")]-1];o&&o[va("0xbc")]||this[va("0xf8")]||this[va("0x121")].value&&(t[va("0x9b")][va("0x90")]((()=>{let o=t[va("0x9b")][va("0xb5")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[va("0xeb")]();const r=o[va("0x112")][va("0x10d")],s=t[va("0x9b")].schema;r&&s[va("0x2a")](r)&&!s[va("0x1d")](r)&&(o=t[va("0x9b")][va("0xb2")](o[va("0x115")],t[va("0x9b")][va("0xcc")](r,va("0x112")))),this[va("0x11b")](o)})),e.stop())}),{priority:va("0xe2")}),this[va("0xc5")][va("0x98")][va("0x13")](va("0x95"),this[va("0x121")]),this[va("0x124")](va("0x95"));const o=new p(t,this[va("0xb3")]);t.commands.add(va("0xf9"),o),this[va("0x124")](va("0xf9"));const r=new C(t,this[va("0xb3")]);t[va("0x98")][va("0x13")](va("0xaa"),r),this[va("0x124")]("discardSuggestion"),t[va("0x98")].add(va("0xa5"),new F(t,o,this[va("0xb3")])),this[va("0x124")](va("0xa5")),t[va("0x98")][va("0x13")](va("0xb4"),new F(t,r,this[va("0xb3")])),this[va("0x124")]("discardAllSuggestions"),t[va("0x98")].add("acceptSelectedSuggestions",new U(t,o,this._suggestions)),this[va("0x124")](va("0x13d")),t[va("0x98")][va("0x13")](va("0x8c"),new U(t,r,this[va("0xb3")])),this[va("0x124")](va("0x8c"));const s=t[va("0x29")][va("0x107")](va("0x87"));this[va("0x58")](s,va("0x105"),((t,{threadId:e})=>{const n=this[va("0xb3")][va("0x107")](e);n&&n.commentThread&&1===n[va("0xfb")].length&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this.listenTo(s,va("0x68"),((t,{threadId:e})=>{const n=this[va("0xb3")][va("0x107")](e);n&&n[va("0xfb")]&&!n.commentThread.length&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:va("0x48")})}set[va("0x83")](t){if(this._adapter)throw new e.CKEditorError(va("0x15"),this);this[va("0xe4")]=t}get[va("0x83")](){return this[va("0xe4")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[va("0xb3")][va("0xf")]())t&&!e[va("0xad")]||n[va("0x104")](e);return e?n[va("0x3f")]((t=>t[va("0x91")]())):n}getSuggestion(t){const n=this[va("0xb3")][va("0x107")](t);if(!n)throw new e.CKEditorError(va("0x13f"),this);return n}[va("0xd")](t){return this._suggestions[va("0x54")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[r,s]=t[va("0x64")][va("0xf4")](":"),i=this[va("0xb3")][va("0x107")](n)||this[va("0xe3")](r,s,n,e,o);if(this[va("0xd4")](i),this[va("0x22")](i,r,s||null,e),i[va("0x11e")]=t.createdAt,o&&o[va("0xea")]){const t=o[va("0xea")],e=this[va("0x76")](t[va("0x84")]);i[va("0x5a")]=t.createdAt,i[va("0x110")]=e,i[va("0x59")]=!0}else i.authoredAt=t.createdAt;switch(t[va("0x96")]&&(i[va("0x96")]=t.data),t[va("0x1f")]&&(i[va("0x1f")]=t[va("0x1f")]),this[va("0xe4")]&&this[va("0xe4")].addSuggestion||(i._saved=!0),this[va("0x100")][va("0x107")](i)){case va("0x9"):this[va("0x100")][va("0x101")](i,"dataReady");break;case va("0x55"):i[va("0xad")]?(this[va("0x100")][va("0x101")](i,va("0xb7")),this[va("0xe9")](va("0x130"),i)):this._suggestionState[va("0x101")](i,"removed")}return i}[va("0xf9")](t){this[va("0xbc")]((()=>{this[va("0xc5")].model[va("0x90")]((()=>{for(const e of t.getAllAdjacentSuggestions())e.accept()}))}))}[va("0xaa")](t){this[va("0xbc")]((()=>{this[va("0xc5")][va("0x9b")][va("0x90")]((()=>{for(const e of t[va("0x4b")]())e[va("0xf3")]()}))}))}[va("0x124")](t,n){const o=this.editor[va("0x98")].get(t);if(!o)throw new e.CKEditorError(va("0x3c"),this,{commandName:t});this[va("0x88")][va("0x13")](o),n&&o.on(va("0x79"),((t,e)=>{this[va("0x121")][va("0x127")]&&(this[va("0xf8")]||e[va("0x8f")]>0&&e[e.length-1]&&e[e[va("0x8f")]-1][va("0xbc")]||(n(((...t)=>o[va("0x79")](...t,{forceDefaultExecution:!0})),...e),t[va("0x77")]()))}),{priority:va("0xe2")})}[va("0xbc")](t){let n,o;const r=this._isForcedDefaultExecutionBlock;this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return r||(this[va("0xf8")]=!1),o&&e.CKEditorError[va("0x134")](o,this),n}[va("0x11b")](t,n=null,o={}){if(t[va("0x9d")])return null;const r=this.editor[va("0x29")][va("0x107")](va("0xbe")).me;for(const{suggestion:e,meta:o}of this[va("0x11c")](t,va("0xe")))if(o.isOwn){if(!o.isNextTo)return e;if(n==e.subType){const n=e[va("0x8b")]();return n.start[va("0x6b")](t.end)?this[va("0xdc")](e,this[va("0x120")][va("0xb2")](t[va("0x115")],n.end)):this[va("0xdc")](e,this._model[va("0xb2")](n.start,t.end)),e}}const s=(0,e.uid)(),i=r.id,x=n?va("0xcb")+n:va("0xe"),a=this[va("0xda")]({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this[va("0x52")](x,s,i,t),a}[va("0xff")](t,n=va("0xc1"),o={}){const r=this.editor[va("0x29")].get(va("0xbe")).me,s=this[va("0xa3")][va("0xb1")](va("0xe"),n,"join");for(const e of this[va("0xa7")]())if(e[va("0x110")].id==r.id&&va("0xe")==e[va("0x64")]&&e[va("0x1")]==n&&(s(e[va("0x10f")](),t)||s(t,e.getRanges()))){for(const n of t)e[va("0x89")](n);return e}for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,va("0xe"))){if(!o[va("0xd5")])continue;let e=!0;for(const o of n[va("0x10f")]())for(const n of t)if(!o[va("0x23")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=r.id,a=va("0xcb")+n,c=this[va("0xda")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[va("0x52")](a,i,x,e,Zo.getMultiRangeId());return c}[va("0xba")](t,n,o=null,r={}){if(o=o||wa(n),t[va("0x9d")])return null;if(!1===this._trackFormatChanges){const e=this[va("0xa3")].getSuggestionCallback("formatInline",o,"accept");return this.forceDefaultExecution((()=>e([t],n,r))),null}const s=this.editor[va("0x29")].get(va("0xbe")).me,i=[];for(const{suggestion:e,meta:n}of this[va("0x11c")](t,va("0xe")))n.isOwn&&!n.isInsideObject&&i[va("0x104")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[va("0x21")](o);e&&n[va("0x104")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[va("0x8f")];){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o[va("0x8f")]}}return n}(t,i);x[va("0x8f")]&&this._model[va("0x90")]((()=>{for(const t of x){const e=this[va("0xa3")][va("0xb1")](va("0x11f"),o,va("0x62"));this[va("0xbc")]((()=>e([t],n,r)))}}));for(const t of a){let i=null,x=t[va("0x115")],a=t[va("0x112")];for(const{suggestion:e,meta:n}of this[va("0x11c")](t,va("0x11f"))){if(!n[va("0xd5")])continue;if(e[va("0x1")]!=o)continue;const r=e.getFirstRange();if(r[va("0x23")](t,!0))return null;x=x[va("0xcf")](r[va("0x115")])?x:r[va("0x115")],a=a[va("0x8")](r[va("0x112")])?a:r[va("0x112")],i?r.start[va("0xcf")](i.getFirstRange()[va("0x115")])?(i[va("0xe0")](),i=e):e[va("0xe0")]():i=e}const c=this[va("0x120")][va("0xb2")](x,a);if(i)this[va("0xdc")](i,c);else{const t=(0,e.uid)(),i=s.id;this[va("0xda")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this._addSuggestionMarker(va("0x11a")+o,t,i,c)}}return null}[va("0xbb")](t,n,o=[],r=null,s={}){n[va("0x36")]||(n.formatGroupId=n[va("0x1b")]),n[va("0xb6")]=t.is(va("0x51")),r=r||wa(n);const i=o[va("0x3f")]((t=>Oa(t,this[va("0x120")]))),x=t.is(va("0x51"))?t:Oa(t,this[va("0x120")]);if(!1===this[va("0x140")]){const t=this[va("0xa3")].getSuggestionCallback(va("0x1a"),r,va("0x62"));return this[va("0xbc")]((()=>t([x],n,s))),null}i[va("0x104")](x);let a=!0;for(const t of i)if(!this[va("0x6a")](t)){a=!1;break}if(a){const t=this[va("0xa3")][va("0xb1")](va("0x1a"),r,va("0x62"));return this[va("0xbc")]((()=>t([x],n,s))),null}let c=null,l=x[va("0x115")],u=x[va("0x112")];for(const{suggestion:t,meta:e}of this[va("0x11c")](x,va("0x1a"))){if(!e[va("0xd5")]||e[va("0x2b")]||e[va("0x44")]||e.isInsideObject)continue;if(t[va("0x96")][va("0x36")]!=n[va("0x36")])continue;const o=t[va("0x8b")]();if(t.subType==r){if(o[va("0x23")](x,!0))return null;l=l[va("0xcf")](o[va("0x115")])?l:o[va("0x115")],u=u[va("0x8")](o[va("0x112")])?u:o[va("0x112")],c?o[va("0x115")][va("0xcf")](c[va("0x8b")]()[va("0x115")])?(c.removeMarkers(),c=t):t[va("0xe0")]():c=t}else{const e=x[va("0x21")](o);this[va("0x70")](t,e)}}const d=this[va("0xc5")][va("0x29")][va("0x107")](va("0xbe")).me,g=(0,e.uid)(),m=d.id;if(c)return this[va("0xdc")](c,this[va("0x120")][va("0xb2")](l,u)),c;{const t=this[va("0xda")]({id:g,type:va("0x2c")+r,data:n,createdAt:new Date,authorId:m,attributes:s});return this[va("0x52")](va("0x2c")+r,g,m,this[va("0x120")][va("0xb2")](l,u)),t}}[va("0x40")](t,n,o=[],r=null,s={}){n[va("0x36")]||(n.formatGroupId=n[va("0x1b")]);const i=t[0];n[va("0xb6")]=i.is(va("0x51")),r=r||wa(n);const x=o[va("0x3f")]((t=>Oa(t,this[va("0x120")]))),a=i.is(va("0x51"))?t:t.map((t=>Oa(t,this[va("0x120")])));if(!1===this[va("0x140")]){const t=this[va("0xa3")][va("0xb1")](va("0x1a"),r,va("0x62"));return this.forceDefaultExecution((()=>t(a,n,s))),null}x.push(...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c){const t=this._suggestionFactory.getSuggestionCallback(va("0x1a"),r,va("0x62"));return this[va("0xbc")]((()=>t(a,n,s))),null}const l=this[va("0xc5")][va("0x29")][va("0x107")](va("0xbe")).me;for(const t of this[va("0xa7")]()){if(t[va("0x110")].id!=l.id)continue;if("formatBlock"!=t[va("0x64")]||t[va("0x96")][va("0x36")]!=n.formatGroupId)continue;const e=t[va("0x1")]==r;for(let n=0;n<a.length;n++){const o=a[n];for(const r of t[va("0x4c")]()){const s=r[va("0xf1")]();if(o[va("0x6b")](s)){e?(a[va("0x0")](n,1),n--):t[va("0x69")](r[va("0x9c")]);break}}}}if(0==a.length)return null;const u=this[va("0xa3")][va("0xb1")](va("0x1a"),r,"join");for(const t of this[va("0xa7")]())if(t[va("0x110")].id==l.id&&va("0x1a")==t.type&&t[va("0x96")].formatGroupId==n[va("0x36")]&&t[va("0x1")]==r&&(u(t[va("0x10f")](),a)||u(a,t.getRanges()))){for(const e of a)t[va("0x89")](e);return t}const d=(0,e.uid)(),g=l.id,m=va("0x2c")+r,f=this[va("0xda")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:s});for(const t of a)this[va("0x52")](m,d,g,t,Zo.getMultiRangeId());return f}[va("0x7f")](t,n=null,o={}){if(t[va("0x9d")])return null;const r=this[va("0xc5")][va("0x29")][va("0x107")](va("0xbe")).me,s=new i.LiveRange(t[va("0x115")],t[va("0x112")]);for(const{suggestion:t,meta:e}of this[va("0x11c")](s,va("0xe")))if(e.isOwn&&!e[va("0x2b")])if(t[va("0x35")]){const e=t[va("0x10f")]()[va("0x33")]((t=>va("0x103")!=t.root[va("0xb8")]));if(e[va("0x75")]((t=>s[va("0x23")](t,!0)))&&t.discard(),e.some((t=>t[va("0x23")](s,!0)))){const t=this[va("0xa3")][va("0xb1")](va("0xec"),n,va("0x62"));return this.forceDefaultExecution((()=>t([s],null,o))),null}}else{const e=s.getIntersection(t.getFirstRange());t[va("0x9e")]([e],null,o)}if(s.detach(),s.isCollapsed||va("0x103")==s[va("0x67")][va("0xb8")])return null;let x=null,a=s[va("0x115")],c=s[va("0x112")];for(const{suggestion:t,meta:e}of this[va("0x11c")](s,va("0xec")))if(e[va("0xd5")])if(t.isMultiRange){let e=!0;for(const n of t[va("0x10f")]()){if(n[va("0x23")](s,!0))return t;s.containsRange(n)||(e=!1)}e&&t.discard()}else{const e=t[va("0x8b")]();if(e.containsRange(s,!0))return t;a=a[va("0xcf")](e[va("0x115")])?a:e[va("0x115")],c=c[va("0x8")](e.end)?c:e[va("0x112")],x?e[va("0x115")][va("0xcf")](x.getFirstRange()[va("0x115")])?(x[va("0xe0")](),x=t):t[va("0xe0")]():x=t}if(x)return this[va("0xdc")](x,this[va("0x120")][va("0xb2")](a,c)),x;{const t=(0,e.uid)(),s=this[va("0x120")][va("0xb2")](a,c),i=r.id,x=n?va("0x5b")+n:"deletion",l=this[va("0xda")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[va("0x52")](x,t,i,s),l}}[va("0xac")](t,n=va("0xc1"),o={}){const r=this[va("0xc5")][va("0x29")][va("0x107")]("Users").me,s=t[va("0x3f")]((t=>new i.LiveRange(t[va("0x115")],t[va("0x112")]))),x=new Set;for(const t of s)for(const{suggestion:e,meta:n}of this[va("0x11c")](t,"insertion"))n.isOwn&&!n.isNextTo&&x[va("0x13")](e);for(const e of x)if(e[va("0x35")]){const r=e.getRanges();if((!e[va("0x1f")]||!e[va("0x1f")].skipNestingCheck)&&r.every((t=>s.some((e=>e.containsRange(t,!0)))))&&e[va("0xf3")](),s[va("0x75")]((t=>r[va("0x108")]((e=>e[va("0x23")](t,!0)))))){const e=this[va("0xa3")][va("0xb1")](va("0xec"),n,"accept");return this[va("0xbc")]((()=>e(t,null,o))),null}}else{const t=e[va("0x8b")]();if(s[va("0x108")]((e=>e[va("0x23")](t,!0)))&&e[va("0xf3")](),s.every((e=>t[va("0x23")](e,!0)))){const t=this[va("0xa3")][va("0xb1")](va("0xec"),n,va("0x62"));return this[va("0xbc")]((()=>t(s,null,o))),null}}const a=this[va("0xa3")].getSuggestionCallback(va("0xec"),n,va("0x31"));let c=null;for(const t of this.getSuggestions())if(t[va("0x110")].id==r.id&&t[va("0xad")]&&va("0xec")==t[va("0x64")]&&t.subType==n&&(a(t.getRanges(),s)||a(s,t[va("0x10f")]())))if(c){if(t[va("0xfb")]&&t[va("0xfb")].length)continue;for(const e of t[va("0x10f")]())c.isIntersectingWithRange(e)||c[va("0x89")](e);t[va("0xe0")]()}else{c=t;for(const e of s)t.isIntersectingWithRange(e)||t[va("0x89")](e)}if(c)return c;x.clear();for(const t of s)for(const{suggestion:e,meta:n}of this[va("0x11c")](t,va("0xec")))n.isOwn&&x[va("0x13")](e);for(const t of x){const e=t[va("0x10f")]();if((!o||!o[va("0xdd")])&&s[va("0x75")]((t=>e[va("0x108")]((e=>e[va("0x23")](t,!0))))))return t;(!t[va("0x1f")]||!t.attributes[va("0xdd")])&&e[va("0x75")]((t=>s.some((e=>e[va("0x23")](t,!0)))))&&t[va("0xf3")]()}const l=(0,e.uid)(),u=r.id,d=va("0x5b")+n,g=this[va("0xda")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of s)t[va("0x34")](),t[va("0x9d")]||va("0x103")==t[va("0x67")][va("0xb8")]||this[va("0x52")](d,l,u,t,Zo[va("0xb")]());return g}[va("0xdc")](t,e){const n=t[va("0x49")]();this[va("0x120")][va("0x90")]((t=>{t[va("0x3b")](n,{range:e})}))}[va("0xd4")](t){const e=t.id,n=this[va("0xc5")][va("0x1c")][va("0x107")]("collaboration.channelId");this[va("0x78")][va("0x126")](e)||this[va("0x78")][va("0x111")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[va("0x78")][va("0xc6")](e);o.unbind("isRemovable"),o[va("0xe7")]=!1,t[va("0xfb")]=o}[va("0x22")](t,n,o,r){if(t[va("0x64")]!=n||t.subType!=o||t[va("0x43")].id!=r)throw this[va("0xc5")][va("0x13b")](va("0x10a")),new e.CKEditorError(va("0x10a"),this)}[va("0x70")](t,n){const o=t[va("0x8b")]();if(n[va("0x6b")](o))t[va("0xe0")]();else if(o.containsRange(n)){const r=this[va("0x120")][va("0xcc")](n[va("0x115")].nodeBefore,"end");this[va("0xdc")](t,this[va("0x120")][va("0xb2")](o[va("0x115")],r));const s=(0,e.uid)(),i=t[va("0x43")].id,x=t[va("0x64")]+":"+t.subType;this[va("0xda")]({id:s,type:x,createdAt:new Date,authorId:i,data:t[va("0x96")],attributes:t[va("0x1f")]});const a=this[va("0x120")].createPositionAt(n[va("0x112")][va("0x5e")],va("0x41")),c=this[va("0x120")][va("0xb2")](a,o[va("0x112")]);this[va("0x52")](x,s,i,c)}else if(o[va("0x13e")](n[va("0x115")])){const e=this[va("0x120")][va("0xcc")](n[va("0x115")].nodeBefore,va("0x112"));this[va("0xdc")](t,this[va("0x120")].createRange(o.start,e))}else{const e=this[va("0x120")][va("0xcc")](n[va("0x112")][va("0x5e")],va("0x41"));this[va("0xdc")](t,this._model[va("0xb2")](e,o.end))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[va("0x11c")](t,va("0xe"))){if(!n.isOwn)continue;const o=e.getRanges();for(const e of o)if(!t.getDifference(e)[va("0x8f")])return!0}return!1}[va("0x46")](t){const n=this[va("0xc5")][va("0x29")][va("0x107")](va("0xbe"))[va("0x93")](t);if(!n)throw new e.CKEditorError(va("0x118"),this);return n}[va("0x76")](t){const e=this.editor.plugins[va("0x107")]("Users"),n=(0,s.hashObject)(va("0x114")+t);return e.getUser(n)||e[va("0xd0")]({id:n,name:t})}_createSuggestion(t,e,n,o,r){const s=this[va("0x46")](o),i=this[va("0xa3")][va("0xa4")](t,e,n,s,r,(t=>this[va("0x4")](n,{attributes:t})));return this[va("0x58")](i,va("0x62"),(()=>{this._updateSuggestionData(n,{state:va("0xce")})}),{priority:"high"}),this.listenTo(i,va("0xf3"),(()=>{this[va("0x4")](n,{state:va("0x56")})}),{priority:va("0xe2")}),this[va("0xb3")][va("0x101")](n,i),this[va("0x100")][va("0x101")](i,va("0x9")),i}[va("0xfd")](t){const e=t[va("0xf4")](":");return{group:e[0],type:e[1],subType:e[va("0x8f")]>=5?e[2]:null,id:e[va("0x8f")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[va("0x8f")]?e[5]:null}}[va("0x5")](t,n,o){const r=t.getFirstRange(),s=r[va("0x115")],i=r.end;this[va("0xdc")](t,this._model[va("0xb2")](s,n));const x=(0,e.uid)(),a=t[va("0x43")].id,c=t[va("0x64")]+(t[va("0x1")]?":"+t[va("0x1")]:"");this[va("0xda")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[va("0x96")]}),"formatBlock"==t[va("0x64")]&&(o=this._model[va("0x7d")](o[va("0x5e")])),this._addSuggestionMarker(c,x,a,this[va("0x120")][va("0xb2")](o,i))}[va("0x11c")](t,e=null){const n=[],o=this[va("0x120")].schema,r=this[va("0xc5")][va("0x29")][va("0x107")](va("0xbe")).me;for(const s of this[va("0xa7")]())if(s.isInContent&&(!e||s.type==e))for(const e of s[va("0x10f")]()){const i=t.start[va("0x6b")](e[va("0x112")])||t[va("0x112")][va("0x6b")](e.start);if(i||t[va("0x21")](e)){const x=t[va("0x23")](e)&&Sa(o,e[va("0x115")],t),a=e[va("0x23")](t)&&Sa(o,t[va("0x115")],e);n[va("0x104")]({suggestion:s,meta:{isOwn:r==s[va("0x110")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[va("0x52")](t,e,n,o,r){this._model[va("0x90")]((s=>{let i=va("0x82")+t+":"+e+":"+n;r&&(i=i+":"+r),s[va("0x65")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[va("0x9f")],n=t.next;t[va("0x9f")]=null,null!=e&&(e.next=null),t.next=null,null!=n&&(n[va("0x9f")]=null),"ready"==this._suggestionState[va("0x107")](t)&&(this._suggestionState[va("0x101")](t,va("0x131")),this[va("0xe9")]("suggestionUnloaded",t,e,n))}[va("0xda")](t){const n=t.id,o=this.addSuggestionData(t);if(this._adapter&&this[va("0xe4")][va("0x6d")]){const r=this.editor[va("0x29")][va("0x107")]("PendingActions"),s=o[va("0xbf")],i=o[va("0x1")]?o.type+":"+o[va("0x1")]:o[va("0x64")],x=this[va("0xc5")][va("0xe8")],a=r[va("0x13")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:s,data:t[va("0x96")]||null,originalSuggestionId:t[va("0x125")]||null,attributes:o[va("0x1f")]};this[va("0xe4")][va("0x6d")](c).then((t=>{o[va("0x3")]=!0,r.remove(a),t&&t[va("0x11e")]&&(this[va("0xb3")][va("0x107")](n)[va("0x11e")]=t[va("0x11e")])}))[va("0x38")]((t=>{throw(0,e.logWarning)(va("0x6f")),this.editor[va("0x9b")].enqueueChange({isUndoable:!1},(()=>{o[va("0xf3")]()})),o.stopListening(),this[va("0xb3")][va("0x139")](o.id),this[va("0x100")][va("0x139")](o),t}))}return o}[va("0x4")](t,e){const n=this[va("0xc5")].plugins[va("0x107")]("PendingActions"),o=this[va("0x4d")](t);if(this[va("0xe4")]&&this[va("0xe4")].updateSuggestion)if(o[va("0x3")]){const o=n[va("0x13")](Yo(this[va("0xc5")][va("0xe8")],va("0x1e")));this._adapter.updateSuggestion(t,e).then((()=>{n[va("0xa0")](o)}))}else o.on(va("0xdb"),(()=>{this[va("0x4")](t,e)}))}[va("0x133")](t){if(!this._adapter||!this._adapter[va("0x4d")])throw new e.CKEditorError(va("0xfc"),this);return this[va("0xe4")].getSuggestion(t)}[va("0x137")](t){const{id:e,type:n,subType:o,authorId:r}=this[va("0xfd")](t),s=this[va("0xb3")].get(e)||this[va("0xe3")](n,o,e,r,{});switch(this[va("0x22")](s,n,o,r),this[va("0x100")].get(s)){case va("0x9"):this[va("0x133")](e).then((t=>{let n=Promise[va("0x109")]();t[va("0xbf")]&&(n=this[va("0x78")].fetchCommentThread({channelId:this[va("0xc5")][va("0x1c")].get(va("0x12c")),threadId:e})),n[va("0x25")]((()=>{this[va("0xc2")](t)[va("0x3")]=!0}))})),this[va("0x100")].set(s,va("0x55"));break;case va("0x131"):this[va("0x4")](e,{state:va("0x129")});case va("0xee"):this[va("0x100")][va("0x101")](s,va("0xb7")),this[va("0xe9")](va("0x130"),s);break;case va("0xb7"):this.fire(va("0x7c"),s)}return s[va("0x7a")](t),s}[va("0x122")](t){const e=Array[va("0x128")](t)[va("0x33")]((t=>!t[va("0x35")])),n=this[va("0xa7")]({skipNotAttached:!0})[va("0x33")]((t=>!t.isMultiRange)),o=n[va("0x33")]((e=>!t.has(e))),r=new Map(n[va("0x3f")]((t=>[t,this[va("0xa3")][va("0xb1")](t[va("0x64")],t[va("0x1")],va("0x6e"))]))),s=new Map(n.map((t=>[t,t[va("0x8b")]()]))),i=new Set,x=new Set;for(let t=0;t<e[va("0x8f")];t++)a(e[t],e,t+1);for(let t=0;t<e[va("0x8f")];t++)a(e[t],o,0);for(let t=0;t<e[va("0x8f")];t++){const n=e[t];!x[va("0x54")](n)&&n[va("0x9f")]&&(n[va("0x9f")].next===n&&(n[va("0x9f")][va("0x80")]=null),n[va("0x9f")]=null),!i[va("0x54")](n)&&n[va("0x80")]&&(n[va("0x80")][va("0x9f")]===n&&(n[va("0x80")][va("0x9f")]=null),n[va("0x80")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][va("0x9f")]=n[0],i[va("0x13")](n[0]),x[va("0x13")](n[1]))}}function c(t,e){if(t[va("0x110")].id!==e[va("0x110")].id)return null;const n=r.get(t)(t,e,s[va("0x107")](t),s[va("0x107")](e));return n&&r.get(e)(t,e,s[va("0x107")](t),s[va("0x107")](e))?n[1].commentThread&&n[1][va("0xfb")][va("0x8f")]?null:n:null}}[va("0xab")](t){const e=Array[va("0x128")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[va("0x33")]((e=>!t.has(e))),r=new Map(e[va("0x3f")]((t=>[t,this[va("0xa3")][va("0xb1")](t[va("0x64")],t[va("0x1")],va("0x31"))]))),s=new Map(n.map((t=>[t,t.getRanges()])));for(let t=0;t<e[va("0x8f")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[va("0x8f")];i++){const o=n[i];if(o.type!==e[va("0x64")]||o[va("0x110")].id!==e[va("0x110")].id||o.subType!==e[va("0x1")])continue;const x=r[va("0x107")](e),a=s.get(e),c=s[va("0x107")](o),l=e[va("0xfb")]&&e[va("0xfb")][va("0x8f")],u=o[va("0xfb")]&&o[va("0xfb")][va("0x8f")];if(!l&&x(c,a))return t[va("0x113")](o,e),s[va("0x139")](e),!0;if(!u&&x(a,c))return t[va("0x113")](e,o),s[va("0x139")](o),!0}return!1}}_joinSuggestions(t,e){if(t[va("0x35")])for(const n of e[va("0x10f")]())t.addRange(n);else{const n=e[va("0x8b")]()[va("0x112")];this[va("0xdc")](t,this[va("0x120")][va("0xb2")](t[va("0x8b")]()[va("0x115")],n))}e[va("0xe0")]()}}class Ia{constructor(t){this[va("0x17")]=t,this[va("0x120")]=t.model,this[va("0x32")]=new Map,this._defaultCallbacks=new Map,this[va("0xd3")]()}buildSuggestion(t,e,n,o,r,s){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this[va("0xb1")](t,e,va("0x62"))(...n),onDiscard:(...n)=>this[va("0xb1")](t,e,va("0xf3"))(...n)})}registerCustomCallback(t,e,n,o){const r=t+":"+e+":"+n;this[va("0x32")][va("0x101")](r,o)}[va("0xb1")](t,e,n){const o=t+":"+e+":"+n;return this[va("0x32")][va("0x107")](o)||this._defaultCallbacks[va("0x107")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[va("0x11")](((t,e)=>t[va("0x115")][va("0xcf")](e.start)?1:-1)),this[va("0x120")][va("0x90")]((e=>{for(const n of t){let t;t=n[va("0x112")][va("0x14")]&&n[va("0x112")][va("0x5e")]==n[va("0x115")][va("0x47")]?e.createSelection(n.start[va("0x47")],"on"):e[va("0xc9")](n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[va("0x120")][va("0x90")]((n=>{const{commandName:o,commandParams:r=[]}=e,s=t[va("0x3f")]((t=>(La(t)&&(t=this._model.createRange(t[va("0x112")])),t)))[va("0x33")]((t=>"$graveyard"!==t.root[va("0xb8")]));if(s[va("0x8f")]<1)return;const x=Array[va("0x128")](this[va("0x120")][va("0xa1")][va("0x5f")][va("0x10f")]())[va("0x3f")]((t=>i.LiveRange[va("0xe1")](t)));n.setSelection(s);for(const t of this[va("0x17")].commands[va("0x98")]())t[va("0x9a")]();r[va("0x104")]({forceDefaultExecution:!0}),this[va("0x17")].execute(o,...r);const a=x[va("0x33")]((t=>va("0x103")!=t[va("0x67")][va("0xb8")]));a[va("0x8f")]>0&&n[va("0x19")](a);for(const t of x)t[va("0x34")]()}))},o=(t,e)=>1==t[va("0x8f")]&&1==e[va("0x8f")]&&t[0].end.isEqual(e[0][va("0x115")]),r=(t,e,n,o)=>Fa(t,e,n,o,this[va("0x120")])?[t,e]:Fa(e,t,o,n,this[va("0x120")])?[e,t]:null;this[va("0xa2")].set("insertion:accept",t),this[va("0xa2")][va("0x101")](va("0x12e"),e),this[va("0xa2")][va("0x101")]("insertion:join",o),this[va("0xa2")][va("0x101")](va("0x16"),r),this._defaultCallbacks[va("0x101")](va("0x12f"),e),this._defaultCallbacks.set(va("0x2f"),t),this[va("0xa2")][va("0x101")](va("0x2e"),o),this._defaultCallbacks.set(va("0x12"),r),this[va("0xa2")].set(va("0x12b"),n),this[va("0xa2")][va("0x101")](va("0xed"),t),this[va("0xa2")][va("0x101")](va("0xd1"),o),this[va("0xa2")][va("0x101")]("formatInline:chain",t),this[va("0xa2")][va("0x101")](va("0x116"),n),this._defaultCallbacks.set(va("0x18"),t),this[va("0xa2")][va("0x101")]("formatBlock:join",o),this._defaultCallbacks[va("0x101")](va("0x74"),t)}}function Sa(t,e,n){for(const o of e[va("0x5e")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[va("0xc")](o))return!1;if(t[va("0x1d")](o)||t[va("0x11d")](o))return!0}return!1}function La(t){return t[va("0x112")][va("0x5e")]==t[va("0x115")][va("0x47")]&&t[va("0x112")][va("0x5c")]}function Na(t,e,n,o){const r=t=>!t.item.is(va("0xf5"))&&!o[va("0x1d")](t[va("0x10c")]),s=t[va("0x115")][va("0xb0")](r),i=t[va("0x112")].getLastMatchingPosition(r,{direction:va("0xc3")});return!(t[va("0x115")][va("0x6b")](s)&&t[va("0x112")][va("0x6b")](i)||(s[va("0xcf")](i)?n[va("0x3b")](e,{range:n[va("0xb2")](s,i)}):n[va("0x69")](e),0))}function wa(t){return(0,s.hashObject)(t)}function Ma(t){const e=t[va("0x115")][va("0x47")];return e&&e.is(va("0xf2"))}function Oa(t,e){const n=e[va("0x94")].isObject(t)||e[va("0x94")][va("0x66")](t);return e[va("0xb2")](e[va("0xcc")](t,va("0x8a")),n?e[va("0xa")](t):e[va("0xcc")](t,"end"))}function Fa(t,e,n,o,r){if(n[va("0x112")][va("0x6b")](o.start))return!0;if(t[va("0x64")]!=e[va("0x64")])return!1;if(!n[va("0x112")][va("0x10b")](o.start))return!1;const s=r.createRange(n.end,o.start)[va("0x7b")]();for(const t of s)if([va("0x63"),va("0xbd")][va("0xe6")](t.type)&&r[va("0x94")][va("0x11d")](t[va("0x10c")]))return!1;return!0}const Pa=["execute","change:isDirty","get","isEnabled","isDirty","commentThreadController","_discardCommand","_setPendingAction","add","_removePendingAction","listenTo","canAccept","_editor","destroy","stopListening","bind","PendingActions","unbind","model","discardSuggestion","_acceptCommand","_pendingAction","view","plugins","commands","acceptSuggestion","canDiscard","PENDING_ACTION_SUGGESTION","remove"];var Da,Ba;Da=Pa,Ba=323,function(t){for(;--t;)Da.push(Da.shift())}(++Ba);const ja=function(t,e){return Pa[t-=0]};class Ua extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this[ja("0x12")]=n,this[ja("0x1")]=o,this._editor=t,this[ja("0x10")]=t[ja("0x14")].get(ja("0x15")),this[ja("0x2")]=t.commands.get(ja("0xf")),this[ja("0x12")][ja("0xb")](ja("0x1c")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this[ja("0x12")].bind(ja("0x7")).to(this[ja("0x10")],"isEnabled"),this.view.bind(ja("0x16")).to(this[ja("0x2")],ja("0x1c")),this[ja("0x11")]=null,n[ja("0x0")]&&this[ja("0x3")](),this[ja("0x6")](n,ja("0x15"),(()=>this[ja("0x15")]())),this[ja("0x6")](n,ja("0xf"),(()=>this.discardSuggestion())),this[ja("0x6")](n,ja("0x1a"),(()=>{n[ja("0x0")]?this[ja("0x3")]():this[ja("0x5")]()}))}acceptSuggestion(){this._acceptCommand.execute(this.model.id)}discardSuggestion(){this._discardCommand[ja("0x19")](this[ja("0xe")].id)}[ja("0x9")](){this.view[ja("0xd")](ja("0x1c")),this[ja("0x12")][ja("0xd")](ja("0x7")),this[ja("0x12")].unbind(ja("0x16")),this[ja("0xa")](),this[ja("0x1")][ja("0x9")](),this[ja("0x11")]&&this[ja("0x5")]()}_setPendingAction(){const t=Yo(this[ja("0x8")].locale,ja("0x17"));this[ja("0x11")]=this[ja("0x8")][ja("0x13")][ja("0x1b")](ja("0xc"))[ja("0x4")](t)}[ja("0x5")](){null!==this[ja("0x11")]&&this[ja("0x8")].plugins[ja("0x1b")]("PendingActions")[ja("0x18")](this._pendingAction),this[ja("0x11")]=null}}const Ga=["_model","disabledSubmit","commentInputView","hasDirtyComment","isActive","set","_localUser","submit","destroy","CommentView","_createCommentViews","cancel","bind","descriptionParts","disableComments","length","assign","value","authoredAt","isEnabled","commentsListView","setData","commentThread","fire","isReadOnly","delegate","addComment","_config","element","isDirty","editor","commentThreadInputView","focus","canDiscard","removeComment","locale"];var Ha,Wa;Ha=Ga,Wa=268,function(t){for(;--t;)Ha.push(Ha.shift())}(++Wa);const Va=function(t,e){return Ga[t-=0]};class za extends r.View{constructor(t,e,n,o){super(t),this[Va("0x4")]=null,this[Va("0xf")]=null,this[Va("0x19")](Va("0x18"),!1),this[Va("0x19")]("authoredAt",e[Va("0x2")]),this.bind(Va("0x2")).to(e),this[Va("0x19")](Va("0x21"),[]),this[Va("0x19")](Va("0xd"),!1),this[Va("0x19")](Va("0x3"),!1),this[Va("0x19")]("canAccept",!1),this[Va("0x19")](Va("0x11"),!1),this[Va("0x14")]=e,this[Va("0x1a")]=n,this[Va("0xb")]=o,o[Va("0x22")]?this.set("length",1):this[Va("0x1e")]()}[Va("0x10")](){this[Va("0xc")][Va("0x10")]()}[Va("0x1c")](){this[Va("0x4")]&&this[Va("0x4")].destroy(),this.commentThreadInputView&&this[Va("0xf")].destroy(),super[Va("0x1c")]()}_createCommentViews(){const{CommentsListView:t}=this[Va("0xb")];this.commentsListView=new t(this[Va("0x13")],this[Va("0x14")].commentThread,Object[Va("0x0")]({CommentView:this._config[Va("0x1d")]},this[Va("0xb")])),this[Va("0x4")][Va("0x9")](Va("0x12")).to(this),this[Va("0x4")].delegate("updateComment").to(this),this[Va("0x4")].bind("isActive").to(this),this[Va("0x19")](Va("0x23"),this[Va("0x4")].length+1),this[Va("0x20")]("length").to(this.commentsListView,Va("0x23"),(t=>t+1)),this.commentThreadInputView=this._createCommentThreadInputView(),this.on("removeComment",(()=>this[Va("0x10")]())),this[Va("0x20")](Va("0xd")).to(this[Va("0x4")],Va("0x17"),this.commentThreadInputView[Va("0x16")],Va("0x1"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Va("0xb")],e=new t(this.locale,this[Va("0x1a")],this._config.editorConfig),n=e[Va("0x16")];return e[Va("0x20")]("showInput").to(this,Va("0x18"),this[Va("0x14")].commentThread,Va("0x8"),n,Va("0x1"),((t,e,n)=>!!n||t&&!e)),n.on(Va("0x1b"),((t,e)=>{this[Va("0x7")](Va("0xa"),e),n[Va("0xe")][Va("0x5")]("")})),n.on(Va("0x1f"),(()=>this.focus())),n[Va("0x20")](Va("0x15")).to(this[Va("0x14")][Va("0x6")],"isReadOnly"),e}}const Ka=["acceptButton","Discard suggestion","join","ck-suggestion__info-name","title","ck-annotation__actions","creator","ck-suggestion--disabled-comments","bindTemplate","type","</span>","ck-suggestion","authoredAt","name","_createButton","@external",'" title="',"extendTemplate","_descriptionElement","execute","_model","ck-suggestion-wrapper","render","ck-annotation__content-wrapper","description","createElement","EXTERNAL_SUGGESTION","author","innerText","push","ck-suggestion--accept","ck-annotation__main","element","EXTERNAL_AVATAR","map","check",'<span class="ck-suggestion-color" style="background-color: ',"ck-suggestion--discard","importWord","ck-suggestion__info","content","ck-annotation__user","commentThread","descriptionParts","canDiscard","ck-annotation__info-name","commentThreadInputView","getTemplate","querySelector","ck-suggestion-","source","ck-comment__external","div","getUserViewNotificationText","Accept suggestion","EXTERNAL_IMPORT_WORD_AVATAR","getExternalSuggestionNote","value","setTemplate","ck-suggestion-wrapper--active","bind","commentsListView","span","isExternal","formatDateTime","userView","_config","discardSuggestion","attributes","ck-suggestion__user","EXTERNAL_IMPORT_WORD_SUGGESTION","</p>","disableComments","set","discardButton","isEnabled",".ck-annotation__content-wrapper","isActive","locale","change:description","innerHTML","ck-annotation"];var qa,Xa;qa=Ka,Xa=262,function(t){for(;--t;)qa.push(qa.shift())}(++Xa);const $a=function(t,e){return Ka[t-=0]};class Ja extends za{constructor(e,n,o,r){super(e,n,o,r),this[$a("0x39")]($a("0x4b"),""),this.bind("type").to(this,$a("0x1b"),(t=>t&&t[0]?t[0][$a("0x4b")]:"")),this[$a("0x2c")]("description").to(this,$a("0x1b"),this,$a("0x3d"),((t,e)=>{let n="";for(const e of t)n+="<p>"+Qa(e[$a("0x18")],e.color)+$a("0x37");return e?n:(0,s.trimHtml)(n,{limit:140})})),this[$a("0x2")]=null,this[$a("0x42")]=this[$a("0x50")](Yo(e,$a("0x26")),t.icons[$a("0x13")],$a("0xe"),"acceptSuggestion","sw"),this[$a("0x42")][$a("0x2c")]($a("0x3b")).to(this,"canAccept"),this[$a("0x3a")]=this[$a("0x50")](Yo(e,$a("0x43")),t.icons.cancel,$a("0x15"),$a("0x33"),"sw"),this[$a("0x3a")][$a("0x2c")]($a("0x3b")).to(this,$a("0x1c")),this.userView=new s.UserView(e,this[$a("0x4")][$a("0xb")],this[$a("0x25")]()),this.userView[$a("0x1")]({attributes:{class:[$a("0x35"),$a("0x19")]}}),this[$a("0x2a")](this[$a("0x1f")]())}getTemplate(){const t=this[$a("0x4a")],e=[{tag:$a("0x24"),attributes:{class:[$a("0x17"),"ck-annotation__info"]},children:[{tag:$a("0x2e"),children:[{text:this[$a("0x31")][$a("0x4f")]}],attributes:{class:[$a("0x45"),$a("0x1d")]}},{tag:"time",attributes:{datetime:t.to("authoredAt"),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to($a("0x4e"),(t=>this._config[$a("0x30")](t)))}]}]},{tag:$a("0x24"),attributes:{class:["ck-suggestion__actions",$a("0x47")]},children:[this[$a("0x42")],this[$a("0x3a")]]},{tag:$a("0x24"),attributes:{class:[$a("0x7")]}}];this._model.isExternal&&e.push({tag:$a("0x24"),attributes:{class:[$a("0x23")]},children:[{text:this[$a("0x28")]()}]});const n={tag:$a("0x24"),attributes:{class:[$a("0x5"),t.if($a("0x3d"),$a("0x2b")),t.to("type",(t=>$a("0x21")+t)),this[$a("0x32")][$a("0x38")]&&$a("0x49")],"data-suggestion-id":this[$a("0x4")].id,"data-thread-id":this[$a("0x4")][$a("0x1a")].id,"data-author-id":this[$a("0x4")].author.id,tabindex:-1},children:[{tag:$a("0x24"),attributes:{class:[$a("0x4d"),$a("0x41")]},children:[this[$a("0x31")],{tag:"div",attributes:{class:["ck-suggestion__main",$a("0xf")]},children:e}]}]};return this.commentsListView&&this[$a("0x1e")]&&n.children[$a("0xd")](this[$a("0x2d")],this[$a("0x1e")]),n}[$a("0x6")](){super[$a("0x6")](),this._descriptionElement=this[$a("0x10")][$a("0x20")]($a("0x3c")),this[$a("0x2")][$a("0x40")]=this[$a("0x8")],this.on($a("0x3f"),((t,e,n)=>{this._descriptionElement[$a("0x40")]=n}))}[$a("0x50")](t,e,n,o,s){const i=new r.ButtonView(this[$a("0x3e")]);return i[$a("0x39")]({label:t,icon:e,tooltip:!0,tooltipPosition:s}),i[$a("0x1")]({attributes:{class:n}}),i.on($a("0x3"),(()=>{this.fire(o,this[$a("0x4")].id)})),i}getExternalSuggestionNote(){return $a("0x16")===this[$a("0x4")][$a("0x34")][$a("0x51")][$a("0x22")]?Yo(this[$a("0x3e")],$a("0x36")):Yo(this[$a("0x3e")],$a("0xa"))}[$a("0x25")](){return this[$a("0x4")][$a("0x2f")]?$a("0x16")===this._model[$a("0x34")][$a("0x51")][$a("0x22")]?Yo(this[$a("0x3e")],$a("0x27"),this[$a("0x4")][$a("0x48")][$a("0x4f")]):Yo(this[$a("0x3e")],$a("0x11"),this[$a("0x4")][$a("0x48")].name):null}}function Qa(t,e){let n="";return n+=t.split("*")[$a("0x12")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+Za(t)+$a("0x4c"):Za(t)))[$a("0x44")](""),e&&(n+=$a("0x14")+e[$a("0x29")]+$a("0x0")+e[$a("0x46")]+'"></span>'),n}function Za(t){const e=document[$a("0x9")]($a("0x2e"));return e[$a("0xc")]=t,e[$a("0x40")]}const Ya=["registerAnnotation","SuggestionThreadView","createAnnotationView","config","isOn","suggestionLoaded","commentThread","CommentView","commands","_refreshActiveMarkers","trackChanges.SuggestionThreadView","descriptionParts","editor","Discard all suggestions","Track changes","focus","_handleControllerBuffer","_descriptionFactory","bind","comments.maxCommentsWhenCollapsed","locale","buttonView","activeMarkers","hasSuggestion","comments.maxThreadTotalWeight","isMultiRange","value","listenTo","define","editing","_handleSuggestionControllerDelayed","trackChanges.disableComments","discardAllSuggestions","view","_updateController","_createUIButton","unbind","_suggestionToController","pluginName","values","destroy","plugins","getSuggestion","source","getFirstRange","filter","comments","isInContent","add","getMarkerNames","acceptAllSuggestions","execute","some","innerView","delete","EditorAnnotations","_annotationViews","size","discardButton","componentFactory","button","suggestionChanged","stopListening","refreshSelectedViews","actionView","change:previous","model","createCommentThreadController","getByInnerView","init","type","TrackChangesEditing","_destroyController","acceptSelectedSuggestions","push","suggestion-","set","reduce","activeAnnotations","_disableComments","mainView","trackChanges","toMany","Annotations","addComment","getRanges","remove","previous","arrowView","Discard all selected suggestions","from","getAllAdjacentSuggestions","isEnabled","_viewToController","has","addSourceCollector","Accept all suggestions","comments.maxCommentCharsWhenCollapsed","keys","CommentsUI","getJoined","switchbutton","commandName","get","isDirty","Accept all selected suggestions","length","getDescriptions","head","separator","change:activeAnnotations","requires"];var tc,ec;tc=Ya,ec=114,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends t.Plugin{static get[nc("0x6d")](){return[Ra,s.Users,"CommentsRepository",nc("0x51"),nc("0x35")]}static get[nc("0x24")](){return"TrackChangesUI"}constructor(t){super(t),this[nc("0x23")]=new Map,this[nc("0x5b")]=new Map,this[nc("0x36")]=new Map,this[nc("0xe")]=new Map;const e=this[nc("0xa")][nc("0x1")];e[nc("0x1a")](nc("0x8"),Ja),e[nc("0x1a")](nc("0x1d"),!1),this[nc("0x4d")]=e[nc("0x65")](nc("0x1d"))}_handleSuggestionControllerDelayed(t,e){0===this._handleControllerBuffer[nc("0x37")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[nc("0x23")][nc("0x5c")](t);n||e?n&&e&&this[nc("0x46")](t):this._initializeController(t)}this[nc("0xa")][nc("0x27")].get(nc("0x35"))[nc("0x3d")](),this[nc("0x7")](),this[nc("0xe")].clear()}),10),this._handleControllerBuffer[nc("0x4a")](t,e)}[nc("0x43")](){const t=this[nc("0xa")],e=t.plugins.get(nc("0x45")),n=t[nc("0x27")][nc("0x65")](nc("0x51")),o=t[nc("0x27")][nc("0x65")](nc("0x35")),r=t[nc("0x27")][nc("0x65")]("CommentsRepository");t.ui[nc("0x39")][nc("0x2e")](nc("0x4f"),(t=>this._createUIButton(t))),o[nc("0x5d")]((()=>{const t=[];for(const[e,n]of Array.from(this[nc("0x23")])){const o=e[nc("0x59")](),r=[];for(const t of o){if(!t.isInContent)continue;if(t[nc("0x17")]){r[nc("0x48")](...t[nc("0x53")]());continue}const e=t[nc("0x2a")]();if(r[nc("0x68")]>0){const t=r[0][nc("0x62")](e);if(t){r[0]=t;continue}}r[nc("0x48")](e)}t[nc("0x48")]([n[nc("0x1f")],r])}return t})),this[nc("0x19")](e,nc("0x3"),((t,e)=>{this[nc("0x19")](e,nc("0x3f"),((t,n,o,r)=>{e[nc("0x2d")]&&(null==o?(this._updateController(r[nc("0x6a")]),this[nc("0x1c")](e,!1)):(this[nc("0x20")](o[nc("0x6a")]),this[nc("0x1c")](e,!0)))})),null===e[nc("0x55")]?this[nc("0x1c")](e,!1):this[nc("0x20")](e[nc("0x6a")])})),this.listenTo(e,"suggestionUnloaded",((t,e,n)=>{this[nc("0x3c")](e,nc("0x3f")),this[nc("0xe")][nc("0x34")](e);const o=n?n[nc("0x6a")]:e,r=this[nc("0x23")][nc("0x65")](o);null!==n&&this[nc("0x20")](o),null===n&&r&&this[nc("0x46")](e)})),this[nc("0x19")](e,nc("0x3b"),((t,e)=>{this[nc("0x20")](e)})),this[nc("0x19")](n,nc("0x6c"),(()=>{this._refreshActiveMarkers()})),this[nc("0x19")](r,nc("0x52"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[nc("0x15")](n))return;const r=e[nc("0x28")](n);this._suggestionToController[nc("0x65")](r)[nc("0x1f")][nc("0xd")]()}),{priority:"lowest"})}[nc("0x7")](){const t=this[nc("0xa")][nc("0x27")][nc("0x65")](nc("0x51")),e=this[nc("0xa")][nc("0x27")][nc("0x65")]("TrackChangesEditing"),n=Array[nc("0x58")](t[nc("0x4c")],(t=>t[nc("0x33")]))[nc("0x2b")]((t=>this[nc("0x5b")].has(t))),o=[];for(const t of n){const e=this._viewToController[nc("0x65")](t).model[nc("0x59")]();o[nc("0x48")](...e[nc("0x4b")](((t,e)=>[...t,...e[nc("0x2f")]()]),[]))}e[nc("0x14")]=o}[nc("0x21")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this.editor.commands[nc("0x65")](nc("0x4f")),s=Yo(t,nc("0xc"));n.buttonView.set({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.buttonView.bind(nc("0x2")).to(o,nc("0x18")),n[nc("0x13")].on(nc("0x31"),(()=>{o[nc("0x31")](),this[nc("0xa")][nc("0x1b")].view[nc("0xd")]()}));const i=new e.Collection,x=[{type:nc("0x63"),model:{withText:!0,label:s,commandName:nc("0x4f")}},{type:nc("0x6b")},{type:nc("0x3a"),model:{withText:!0,label:Yo(t,nc("0x5e")),commandName:nc("0x30")}},{type:"button",model:{withText:!0,label:Yo(t,nc("0x67")),commandName:nc("0x47")}},{type:nc("0x3a"),model:{withText:!0,label:Yo(t,nc("0xb")),commandName:nc("0x1e")}},{type:nc("0x3a"),model:{withText:!0,label:Yo(t,nc("0x57")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:nc("0x6b")};if(t[nc("0x40")]){const n=new r.Model(t[nc("0x40")]),o=this[nc("0xa")][nc("0x6")].get(n[nc("0x64")]);n[nc("0x10")]("isOn",nc("0x5a")).to(o,nc("0x18"),nc("0x5a")),e={type:t[nc("0x44")],model:n}}i[nc("0x2e")](e)}(0,r.addListToDropdown)(n,i);const a=x[nc("0x2b")]((t=>null!=t[nc("0x40")])).map((t=>this[nc("0xa")].commands[nc("0x65")](t.model[nc("0x64")]))),c=n[nc("0x13")];return c[nc("0x3e")][nc("0x22")](nc("0x5a")),c[nc("0x56")].unbind(nc("0x5a")),c[nc("0x3e")][nc("0x10")](nc("0x5a")).to(o,nc("0x5a")),c[nc("0x56")][nc("0x10")]("isEnabled")[nc("0x50")](a,nc("0x5a"),((...t)=>t[nc("0x32")]((t=>t)))),n.on(nc("0x31"),(t=>{this[nc("0xa")][nc("0x31")](t[nc("0x29")][nc("0x64")]),this.editor[nc("0x1b")].view[nc("0xd")]()})),n}_initializeController(t){const e=this[nc("0xa")],n=e.config,o=e[nc("0x27")].get(nc("0x51")),r=e[nc("0x27")][nc("0x65")]("CommentsRepository"),i=e[nc("0x27")].get(nc("0x35")),x=e[nc("0x27")][nc("0x65")](s.Users).me,a=n[nc("0x65")](nc("0x4f"))[nc("0x6f")],{CommentsListView:c,CommentThreadInputView:l}=e[nc("0x27")][nc("0x65")](nc("0x61"));let u,d;this[nc("0x36")][nc("0x5c")](t.id)?(d=this._annotationViews[nc("0x65")](t.id),u=d.mainView):(u=new a(e[nc("0x12")],t,x,{disableComments:this[nc("0x4d")],editorConfig:n[nc("0x65")]("comments.editorConfig"),maxCommentsWhenCollapsed:n.get(nc("0x11")),maxThreadTotalWeight:n[nc("0x65")](nc("0x16")),maxCommentCharsWhenCollapsed:n[nc("0x65")](nc("0x5f")),formatDateTime:(0,s.getDateTimeFormatter)(n[nc("0x65")](nc("0x12"))),CommentView:n.get(nc("0x2c"))[nc("0x5")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on("execute",(()=>{e.editing[nc("0x1f")][nc("0xd")]()})),u[nc("0x38")].on(nc("0x31"),(()=>{e[nc("0x1b")][nc("0x1f")][nc("0xd")]()})),d=o[nc("0x0")](this[nc("0xa")][nc("0x12")],u),d[nc("0x10")]("isDirty").to(u,nc("0x66")),d[nc("0x10")](nc("0x68")).to(u),d[nc("0x10")](nc("0x44")).to(u,nc("0x44"),(t=>nc("0x49")+t)),this[nc("0x36")][nc("0x4a")](t.id,d));const g=r[nc("0x41")](t[nc("0x4")],u),m=new Ua(e,t,u,g),f=t[nc("0x59")]().filter((t=>t.isInContent));u.descriptionParts=e[nc("0x27")].get("TrackChangesEditing")._descriptionFactory.getDescriptions(f),this[nc("0x23")][nc("0x4a")](t,m),this[nc("0x5b")][nc("0x4a")](u,m);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t[nc("0x59")]()[nc("0x2b")]((t=>t[nc("0x2d")]));for(const t of o)n.push(...t.getMarkers());return(0,s.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>nc("0x49")+m[nc("0x1f")][nc("0x44")]});o[nc("0x2e")](h),i[nc("0x6e")](h)}[nc("0x46")](t){const e=this.editor[nc("0x27")][nc("0x65")]("Annotations"),n=this[nc("0x23")][nc("0x65")](t),o=n[nc("0x1f")],r=e[nc("0x42")](o);r&&e[nc("0x54")](r),this[nc("0x23")][nc("0x34")](t),this[nc("0x5b")][nc("0x34")](o),n[nc("0x26")]()}_updateController(t){if(!t[nc("0x2d")]||!this[nc("0x23")][nc("0x5c")](t))return;const e=this[nc("0xa")][nc("0x27")][nc("0x65")](nc("0x45")),n=this._suggestionToController[nc("0x65")](t),o=t.getAllAdjacentSuggestions();n[nc("0x1f")][nc("0x9")]=e[nc("0xf")][nc("0x69")](o)}destroy(){for(const t of this[nc("0x23")][nc("0x60")]())this[nc("0x46")](t);for(const t of this[nc("0x36")][nc("0x25")]())t[nc("0x4e")][nc("0x26")]();super[nc("0x26")]()}}var rc,sc,ic=["getSuggestions","getSuggestion","editor","addSuggestion","TrackChanges","Comments","requires","get","adapter","plugins"];rc=ic,sc=456,function(t){for(;--t;)rc.push(rc.shift())}(++sc);var xc=function(t,e){return ic[t-=0]};class ac extends t.Plugin{static get[xc("0x0")](){return[Ra,oc,xc("0x9")]}static get pluginName(){return xc("0x8")}set[xc("0x2")](t){this[xc("0x6")][xc("0x3")][xc("0x1")](Ra).adapter=t}get[xc("0x2")](){return this[xc("0x6")][xc("0x3")][xc("0x1")](Ra)[xc("0x2")]}[xc("0x7")](t){return this[xc("0x6")].plugins.get(Ra).addSuggestionData(t)}[xc("0x4")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[xc("0x6")][xc("0x3")][xc("0x1")](Ra)[xc("0x4")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[xc("0x6")].plugins[xc("0x1")](Ra)[xc("0x5")](t)}}const cc=["requires","data","_adapter","push","map","addUser","destroy","execute","reduce","getRootNames","create","trackChangesData.editorCreator","config","Pagination","editor","Users","includes","get","plugins","filter","TrackChangesData","context","editorCreator","Autosave","getDataWithDiscardedSuggestions","initialData","end","function","constructor","getSuggestions","model","document","createElement","pluginName","from","getDataWithAcceptedSuggestions","trackChangesData","CommentsRepository","toolbar","addSuggestionData","find","set","init","every","result","useAnonymousUser","name","extraPlugins","concat","RevisionTracker","discardAllSuggestions","names","TrackChangesEditing","acceptAllSuggestions","createDocumentFragment"];var lc,uc;lc=cc,uc=398,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]},gc=[dc("0xc"),dc("0x8"),dc("0x19")],mc=["WebSocketGateway",dc("0x24"),dc("0xa"),"WordCount",dc("0x0")];class fc extends t.Plugin{static get[dc("0x2a")](){return[Ra]}static get pluginName(){return dc("0x7")}[dc("0x1d")](){const t=this.editor;if(t[dc("0x36")].define(dc("0x35"),(e=>t[dc("0xf")][dc("0x34")]("",e))),dc("0xe")!=typeof t[dc("0x36")].get("trackChangesData").editorCreator)throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[dc("0x16")](t){return pc(this[dc("0x1")],!0,t)}[dc("0xb")](t){return pc(this[dc("0x1")],!1,t)}}class hc extends t.Plugin{static get[dc("0x14")](){return"TrackChangesDataGetter"}constructor(t){super(t),this[dc("0x1f")]=dc("0xd")}[dc("0x1d")](){this[dc("0x1")][dc("0x5")].get(dc("0x18")).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[dc("0x1")].plugins[dc("0x4")](dc("0x27"))[dc("0x2c")]=null}}async function pc(t,e,n){const o=function(t){const e={};for(const n of t[dc("0x36")][dc("0x26")]())gc[dc("0x3")](n)||(e[n]=t[dc("0x36")][dc("0x4")](n));const n=t[dc("0xf")].builtinPlugins||[],o=e[dc("0x22")]||[];delete e[dc("0x22")];const r=n[dc("0x23")](e[dc("0x5")])[dc("0x23")](o)[dc("0x2e")]((t=>"string"==typeof t?n[dc("0x1b")]((e=>e[dc("0x14")]==t)):t)),s=Array[dc("0x15")](new Set(r)),i=new Map;return e[dc("0x5")]=s[dc("0x6")]((t=>bc(t,i))),e[dc("0x5")][dc("0x2d")](hc),e.plugins[dc("0x2d")](Ra),e}(t),r=document[dc("0x29")](),s=t[dc("0x36")].get(dc("0x17"))[dc("0x9")],i=await s(o,(()=>function(t){const e=document[dc("0x13")]("div");return t.appendChild(e),e}(r)));!function(t,e){const n=t[dc("0x11")][dc("0x12")][dc("0x33")]()[dc("0x32")](((e,n)=>(e[n]=t.data.get({rootName:n}),e)),{}),o=t[dc("0x5")][dc("0x4")]("Users").users[dc("0x2e")]((t=>({id:t.id,name:t.name}))),r=t[dc("0x5")][dc("0x4")]("TrackChangesEditing")[dc("0x10")]({skipNotAttached:!0,toJSON:!0}),s=e[dc("0x5")][dc("0x4")](dc("0x2")),i=e[dc("0x5")][dc("0x4")](dc("0x27"));for(const t of o)s.getUser(t.id)||s[dc("0x2f")](t);s.me||s[dc("0x20")]();for(const t of r)i[dc("0x1a")](t);e[dc("0x2b")][dc("0x1c")](n)}(t,i),i[dc("0x31")](dc(e?"0x28":"0x25"));const x=i[dc("0x2b")][dc("0x4")](n);return await i[dc("0x30")](),x}function bc(t,e){const n="function"==typeof t?t[dc("0x14")]||t[dc("0x21")]:t;if(e.has(n))return e[dc("0x4")](n);if(e[dc("0x1c")](n,!0),n&&mc[dc("0x3")](n))return e[dc("0x1c")](n,!1),!1;if(!t[dc("0x2a")])return e[dc("0x1c")](n,!0),!0;const o=t.requires[dc("0x1e")]((t=>bc(t,e)));return e[dc("0x1c")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();