@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231006.0 → 0.0.0-nightly-20231008.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 (65) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  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/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/link.js +1 -1
  32. package/src/integrations/list.js +1 -1
  33. package/src/integrations/listproperties.js +1 -1
  34. package/src/integrations/mediaembed.js +1 -1
  35. package/src/integrations/mention.js +1 -1
  36. package/src/integrations/pagebreak.js +1 -1
  37. package/src/integrations/paragraph.js +1 -1
  38. package/src/integrations/removeformat.js +1 -1
  39. package/src/integrations/restrictededitingmode.js +1 -1
  40. package/src/integrations/shiftentercommand.js +1 -1
  41. package/src/integrations/standardeditingmode.js +1 -1
  42. package/src/integrations/style.js +1 -1
  43. package/src/integrations/table.js +1 -1
  44. package/src/integrations/tablecaption.js +1 -1
  45. package/src/integrations/tableclipboard.js +1 -1
  46. package/src/integrations/tablecolumnresize.js +1 -1
  47. package/src/integrations/tableheadings.js +1 -1
  48. package/src/integrations/tablemergesplit.js +1 -1
  49. package/src/integrations/tableofcontents.js +1 -1
  50. package/src/integrations/tableproperties.js +1 -1
  51. package/src/integrations/template.js +1 -1
  52. package/src/integrations/title.js +1 -1
  53. package/src/integrations/undo.js +1 -1
  54. package/src/integrations/utils.js +1 -1
  55. package/src/suggestion.js +1 -1
  56. package/src/suggestiondescriptionfactory.js +1 -1
  57. package/src/trackchanges.js +1 -1
  58. package/src/trackchangesdata.js +1 -1
  59. package/src/trackchangesediting.js +1 -1
  60. package/src/trackchangesui.js +1 -1
  61. package/src/ui/suggestioncontroller.js +1 -1
  62. package/src/ui/view/basesuggestionthreadview.js +1 -1
  63. package/src/ui/view/suggestionthreadview.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. 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 i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>hc,TrackChanges:()=>Mc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),i=n(417),r=n(492),x=n(995);const a=["_isEnabledBasedOnSelection","_enabledCommands","isEnabled","forceDisabled","has","_disableUnsupportedCommands","clearForceDisabled","commands","execute","TrackChangesCommand","editor","refresh","value","affectsData","_enableCommands"];var c,l;c=a,l=174,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("0x7")]=e,this.value=!1,this[d("0x2")](),this[d("0x6")]=!1}[d("0x2")](){this[d("0x8")]=!0}[d("0xe")](){this[d("0x3")]=!this[d("0x3")],this[d("0x3")]?this[d("0xb")]():this._enableCommands()}[d("0xb")](){for(const t of this[d("0x1")][d("0xd")].commands())t[d("0x4")]&&!this[d("0x7")][d("0xa")](t)&&t[d("0x9")](d("0x0"))}[d("0x5")](){for(const t of this[d("0x1")].commands[d("0xd")]())t[d("0x4")]&&!this._enabledCommands.has(t)&&t[d("0xc")]("TrackChangesCommand")}}const g=["acceptSuggestion","canEditAt","get","_isEnabledBasedOnSelection","_suggestions","editor","isEnabled","refresh","execute"];var m,f;m=g,f=237,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("0x4")](),this[h("0x0")]=!1}[h("0x4")](){this[h("0x3")]=!0}[h("0x5")](t){const n=this[h("0x1")][h("0x8")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n.getRanges();this[h("0x2")].model[h("0x7")](o)&&this[h("0x2")].plugins[h("0x8")]("TrackChangesEditing")[h("0x6")](n)}}const b=["plugins","execute","model","discardSuggestion","_isEnabledBasedOnSelection","getRanges","canEditAt","editor","TrackChangesEditing","get","track-changes-discard-suggestion-not-found","refresh"];var E,_;E=b,_=234,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._suggestions=e,this[T("0x5")](),this[T("0xa")]=!1}[T("0x5")](){this.isEnabled=!0}[T("0x7")](t){const n=this._suggestions[T("0x3")](t);if(!n)throw new e.CKEditorError(T("0x4"),this);const o=n[T("0xb")]();this[T("0x1")][T("0x8")][T("0x0")](o)&&this[T("0x1")][T("0x6")].get(T("0x2"))[T("0x9")](n)}}const y=["createRange","content","from","createPositionAt","next","isMultiRange","execute","getRanges","push","isCollapsed","color","type","join","length","deletion","isArray","isIntersecting","isObject","add","isInContent","change","map","start","end","createPositionAfter","createPositionBefore"];var k,A;k=y,A=450,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("0x6")==t[v("0x3")]&&v("0x6")!=e[v("0x3")]?-1:"deletion"!=t.type&&"deletion"==e[v("0x3")]?1:0))}function I(t,e){let n,o=0;const s=[],i=e.schema;for(;o<t[v("0x5")];){const r=t[o],x=t[o+1];n||(n=e.createPositionBefore(r)),S(e,r,x)||(s[v("0x0")](e[v("0x12")](n,i[v("0x9")](r)?e[v("0x10")](r):e[v("0x15")](r,v("0xf")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t[v("0x11")](n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x5")];){const o=n.splice(0,100);t[v("0xc")]((()=>{for(const t of o)t[v("0xb")]&&e[v("0x18")](t.id)}))}}const N=["_command","isEnabled","values","_suggestions","execute","refresh","some","isInContent","from","model","editor","canEditAt"];var w,M;w=N,M=495,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("0x9")]=e,this[O("0x0")]=n,this.refresh(),this._isEnabledBasedOnSelection=!1}[O("0x2")](){const t=Array[O("0x5")](this[O("0x0")][O("0xb")]())[O("0x3")]((t=>t[O("0x4")]));this[O("0xa")]=this[O("0x9")][O("0xa")]&&t}[O("0x1")](){const t=R(Array[O("0x5")](this[O("0x0")].values()));for(const e of t){const t=e.getRanges();if(!this[O("0x7")][O("0x6")][O("0x8")](t))return}L(this[O("0x7")][O("0x6")],this[O("0x9")],t)}}const P=["_selectedSuggestions","size","_suggestions","from","model","editor","refresh","values","isEnabled","execute","_command"];var D,B;D=P,B=488,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("0x6")]=e,this._suggestions=n,this[j("0x7")]=new Set,this.refresh(),this._isEnabledBasedOnSelection=!1}[j("0x2")](){const t=this[j("0x1")][j("0x0")].document.selection,e=Array[j("0xa")](this[j("0x9")][j("0x3")]());this._selectedSuggestions=function(t,e){const n=Array[v("0x14")](t.getRanges()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0x19")]())(e[v("0x8")](n)||t[v("0x1")]&&!s[v("0x17")]&&s[v("0x16")]&&n[v("0xf")].isTouching(e[v("0xe")]))&&o[v("0xa")](s);return o}(t,e),this.isEnabled=this[j("0x6")][j("0x4")]&&!!this[j("0x7")][j("0x8")]}[j("0x5")](){const t=R(Array[j("0xa")](this._selectedSuggestions));for(const e of t){const t=e.getRanges();if(!this[j("0x1")][j("0x0")].canEditAt(t))return}L(this.editor.model,this[j("0x6")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var it=Object.prototype,rt=it.hasOwnProperty,xt=it.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=rt.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 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 zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,o){var s=!n;n||(n={});for(var i=-1,r=e.length;++i<r;){var x=e[i],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 re=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 we=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),i=!n&&!o&&!s&&Le(t),r=n||o||s||i,x=r?re(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||r&&("length"==c||s&&("offset"==c||"parent"==c)||i&&("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&&ie(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&ie(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,i=[];++n<o;){var r=t[n];e(r,n,t)&&(i[s++]=r)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return ie(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 ie(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const 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=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?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 zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;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,s,i,r){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=i?o(e,s,i,r):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==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!i){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return i?e:{};x=Un(e,u,a)}}r||(r=new Yt);var m=r.get(e);if(m)return m;r.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,r))})):Kn(e)&&e.forEach((function(s,i){x.set(i,t(s,n,o,i,e,r))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,i){f&&(s=e[i=s]),se(x,i,t(s,n,o,i,e,r))})),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 io=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 ro(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],i=n.cache;if(i.has(s))return i.get(s);var r=t.apply(this,o);return n.cache=i.set(s,r)||i,r};return n.cache=new(ro.Cache||Jt),n}ro.Cache=Jt;const xo=ro;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:io(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,i=(e=po(e,t)).length,r=i-1,x=t;null!=x&&++s<i;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=r){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,i){var r=1&n,x=t.length,a=e.length;if(x!=a&&!(r&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(i.set(t,e),i.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=r?o(f,m,d,e,t,i):o(m,f,d,t,e,i);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,i)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,i)){u=!1;break}}return i.delete(t),i.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 wo=function(t,e,n,o,s,i,r){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new 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=r.get(t);if(c)return c==e;o|=2,r.set(t,e);var l=Ro(x(t),x(e),o,s,i,r);return r.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,s,i){var r=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!r)return!1;for(var c=a;c--;){var l=x[c];if(!(r?l in e:Mo.call(e,l)))return!1}var d=i.get(t),u=i.get(e);if(d&&u)return d==e&&u==t;var g=!0;i.set(t,e),i.set(e,t);for(var m=r;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=r?o(h,f,l,e,t,i):o(f,h,l,t,e,i);if(!(void 0===p?f===h||s(f,h,n,o,i):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 i.delete(t),i.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,i){var r=ge(t),x=ge(e),a=r?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;r=!0,l=!1}if(u&&!l)return i||(i=new Yt),r||Le(t)?Ro(t,e,n,o,s,i):wo(t,e,a,n,o,s,i);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 i||(i=new Yt),s(f,h,n,o,i)}}return!!u&&(i||(i=new Yt),Oo(t,e,n,o,s,i))};const Uo=function t(e,n,o,s,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,i))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(s);++o<s;)i[o]=t[o+e];return i};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["decorate","isIntersectingWithRange","@external","getItems","length","isIntersecting","subType","getMultiRangeId","data","getAllAdjacentSuggestions","next","nodeBefore","delete","attributes","toJSON","getMarkers","onDiscard","addMarker","markers","clear","_markerNames","_onAttributesChange","removeAttribute","push","commentThread","accept","_model","_saved","getMarkerNames","map","addRange","onAttributesChange","creator","getRange","addMarkerName","filter","reduce","head","hasComments","split","set","_isDataLoaded","end","getRanges","suggestion:","getContainedElement","getFirstMarker","get","isExternal","removeMarker","start","substr","onAccept","discard","removeMarkers","type","size","from","getFirstRange","author","nodeAfter","previous","change","_onAccept","createdAt","isInContent"];var $o,Jo;$o=Xo,Jo=342,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[Qo("0x1d")]=!1,this.id=e.id,this.type=e[Qo("0x2b")],this[Qo("0x3c")]=e[Qo("0x3c")]||null,this[Qo("0x2f")]=e[Qo("0x2f")],this[Qo("0x14")]=e[Qo("0x14")]||e[Qo("0x2f")],this[Qo("0x24")]=Boolean(e[Qo("0x1")]&&e[Qo("0x1")][Qo("0x38")]),this.data=null,this[Qo("0xe")]=t,this._onAccept=e[Qo("0x28")],this._onDiscard=e[Qo("0x4")],this[Qo("0x9")]=e[Qo("0x13")],this[Qo("0x8")]=new Set,this[Qo("0x34")]=null,this[Qo("0x1c")]("authoredAt",null),this[Qo("0x1c")]("attributes",e[Qo("0x1")]||{}),this[Qo("0x1c")](Qo("0x31"),null),this[Qo("0x1c")](Qo("0x40"),null),this.set("commentThread",null),this[Qo("0x1c")](Qo("0xf"),!1),this.decorate("accept"),this[Qo("0x36")](Qo("0x29"))}get[Qo("0x19")](){let t=this;for(;t[Qo("0x31")];)t=t[Qo("0x31")];return t}get hasComments(){return!!this[Qo("0xc")]&&this[Qo("0xc")][Qo("0x3a")]>0}get isMultiRange(){return 0!=this._markerNames[Qo("0x2c")]&&6==Array[Qo("0x2d")](this[Qo("0x8")])[0][Qo("0x1b")](":")[Qo("0x3a")]}get[Qo("0x35")](){return null!==this[Qo("0x22")]()}[Qo("0x16")](t){this[Qo("0x8")].add(t)}getMarkerNames(){return Array[Qo("0x2d")](this._markerNames)}[Qo("0x3")](){return this[Qo("0x10")]()[Qo("0x11")]((t=>this[Qo("0xe")][Qo("0x6")][Qo("0x23")](t)))[Qo("0x17")]((t=>t))}[Qo("0x22")](){return this[Qo("0x3")]()[0]||null}[Qo("0x2a")](){this._model[Qo("0x32")]((t=>{for(const e of this[Qo("0x3")]())t.removeMarker(e)})),this._markerNames[Qo("0x7")]()}[Qo("0x25")](t){this[Qo("0xe")].change((e=>{e.removeMarker(t)})),this[Qo("0x8")][Qo("0x0")](t)}[Qo("0x12")](t){const e=Qo("0x20")+this[Qo("0x2b")]+":"+this.subType+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0x3d")]();this[Qo("0x16")](e),this[Qo("0xe")].change((n=>{n[Qo("0x5")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x37")](t){for(const e of this[Qo("0x1f")]())if(e[Qo("0x3b")](t))return!0;return!1}[Qo("0x1f")](){return this[Qo("0x3")]()[Qo("0x11")]((t=>t[Qo("0x15")]()))}[Qo("0x39")](){return this[Qo("0x1f")]()[Qo("0x18")](((t,e)=>[...t,...e[Qo("0x39")]()]),[])}[Qo("0x2e")](){var t;return(null===(t=this[Qo("0x22")]())||void 0===t?void 0:t[Qo("0x15")]())||null}[Qo("0x21")](){const t=this[Qo("0x1f")]();if(1!=t[Qo("0x3a")])return null;const e=t[0],n=e[Qo("0x26")][Qo("0x30")],o=e[Qo("0x1e")][Qo("0x41")];return n instanceof r.Element?n!=o?null:n:null}[Qo("0xd")](){this[Qo("0x33")](this[Qo("0x1f")](),this[Qo("0x3e")],this[Qo("0x1")]),this[Qo("0x2a")]()}[Qo("0x29")](){this._onDiscard(this.getRanges(),this.data,this.attributes),this[Qo("0x2a")]()}[Qo("0x3f")](){const t=[];let e=this[Qo("0x19")];for(;e;)t[Qo("0xb")](e),e=e[Qo("0x40")];return t}setAttribute(t,e){const n=eo(this[Qo("0x1")]);_o(n,t,e),Go(n,this[Qo("0x1")])||(this[Qo("0x1")]=n,this[Qo("0x9")](n))}[Qo("0xa")](t){const e=eo(this[Qo("0x1")]);qo(e,t),Go(e,this[Qo("0x1")])||(this.attributes=e,this[Qo("0x9")](this[Qo("0x1")]))}[Qo("0x2")](){return{id:this.id,type:this.subType?this.type+":"+this.subType:this[Qo("0x2b")],authorId:this.creator.id,createdAt:this.createdAt,hasComments:this[Qo("0x1a")],data:this[Qo("0x3e")],attributes:this.attributes}}static[Qo("0x3d")](){return(0,e.uid)()[Qo("0x27")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["*Insert:* %0","type","removeContainer","text","replace","item","function","addObject","elementStart","checkChild","removeEmptyContainer","elementEnd","isObject","add","_schema","Container","addEmptyContainer","start","insertion","pop","length","name","_resolveDescriptionItems","*Split:* %0","registerElementLabel","getItemLabel","*Remove:* %0","softBreak","end","ELEMENT_SPACE","getWalker","$text","_customCallbacks","EmptyContainer","label","normal","isEqual","removeObject","getFirstRange","data","remove","get","$textProxy","_addDescriptionItems","_locale","nextSibling","registerDescriptionCallback","addContainer","isEmpty","match","element","_itemLabels","previousSibling","push","isInContent","indexOf","$1 $2","_itemLabelsCallbacks","getDescriptions","skip","quantity","deletion","set"];var es,ns;es=ts,ns=390,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this[os("0x27")]=new Map,this[os("0x2d")]=[],this._schema=t,this[os("0x20")]=e}[os("0x2e")](t){const e=[];for(let n=0;n<t[os("0x8")];n++){const o=t[n];if(!o[os("0x2a")])continue;let s=!1;for(const t of this[os("0x14")]){const n=t(o);if(n){os("0x34")in n&&e[os("0x29")](n),s=!0;break}}if(!s){this[os("0x1f")](e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x10")][os("0x18")](s.getFirstRange()[os("0x5")])){const t=e[e[os("0x8")]-1],n="insertion"==o[os("0x34")]?os("0x1"):os("0x1c");t&&os("0x36")==t[os("0x34")]&&(t[n]+="\n")}}}return this[os("0xa")](e)}[os("0x22")](t){this[os("0x14")][os("0x29")](t)}[os("0xc")](t,n,o=e.priorities[os("0x17")]){os("0x39")==typeof t?(0,e.insertToPriorityArray)(this[os("0x2d")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x32")](t,n)}[os("0xd")](t,e=1){let n;for(const e of this[os("0x2d")])if(e.matchingCallback(t)){n=e[os("0x16")];break}return n||(n=this._itemLabels[os("0x1d")](t.name)),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x9")]}[os("0x1f")](t,e){const n=e[os("0x1a")]()[os("0x12")](),o=os("0x6")==e[os("0x34")]?os("0x1"):os("0x1c");for(const e of n){const s=e[os("0x38")],i=t[t.length-1];if(s.is(os("0x1e")))i&&i[os("0x34")][os("0x2b")]("Container")>-1&&t.pop(),i&&os("0x36")==i[os("0x34")]?i[o]+=s.data:t[os("0x29")]({type:"text",add:os("0x1")==o?s.data:"",remove:"remove"==o?s[os("0x1b")]:""});else if(this[os("0x2")].isObject(s)){const r=s;if(i&&i.type[os("0x2b")](os("0x3"))>-1&&t[os("0x7")](),os("0x3e")==e.type)continue;i&&i.type==o+"Object"&&i[os("0x26")][os("0x9")]==r[os("0x9")]?i[os("0x30")]++:t[os("0x29")]({type:o+"Object",element:r,quantity:1}),n[os("0x2f")]((t=>!("elementEnd"==t[os("0x34")]&&t[os("0x38")]==s)))}else if(this[os("0x2")][os("0x3c")](s,os("0x13"))||s.is("element",os("0xf"))){const n=s;if(os("0x1")==o&&os("0x3b")==e[os("0x34")]||os("0x1c")==o&&"elementEnd"==e[os("0x34")])continue;if(i&&-1==i[os("0x34")][os("0x2b")](os("0x3"))){os("0x36")==i[os("0x34")]&&(i[o]+="\n");continue}let r;if(r=os("0x1")==o?n[os("0x21")]&&!this[os("0x2")][os("0x0")](n[os("0x21")])?n.nextSibling:null:n.previousSibling&&!this[os("0x2")].isObject(n[os("0x28")])?n.previousSibling:null,n[os("0x24")]||r&&r[os("0x24")]){const e=r&&r[os("0x24")]?r:n;i&&i.type==o+os("0x15")&&i[os("0x26")].name==e[os("0x9")]?i.quantity++:t[os("0x29")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x29")]({type:o+os("0x3"),element:n})}}}[os("0xa")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x34")]){case os("0x36"):if(o.add=o.add.replace(/(\S)\u000A+(\S)/g,os("0x2c"))[os("0x37")](/\u000A/g,""),o[os("0x1c")]=o[os("0x1c")][os("0x37")](/(\S)\u000A+(\S)/g,os("0x2c"))[os("0x37")](/\u000A/g,""),""!=o.add&&""!=o[os("0x1c")]){n[os("0x29")]({type:os("0x37"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x1c")]+'"','"'+o.add+'"'])});continue}if(null!=o[os("0x1")].match(/^ +$/)){n[os("0x29")]({type:"insertion",content:Yo(e,os("0x33"),Yo(e,os("0x11"),o[os("0x1")][os("0x8")]))});continue}if(null!=o[os("0x1c")][os("0x25")](/^ +$/)){n[os("0x29")]({type:"deletion",content:Yo(e,os("0xe"),Yo(e,os("0x11"),o[os("0x1c")][os("0x8")]))});continue}if(""!=o[os("0x1")]){n.push({type:os("0x6"),content:Yo(e,os("0x33"),'"'+o.add+'"')});continue}n.push({type:os("0x31"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x1c")]+'"')});continue;case os("0x4"):case os("0x3a"):n[os("0x29")]({type:os("0x6"),content:Yo(e,os("0x33"),this.getItemLabel(o[os("0x26")],o[os("0x30")]))});continue;case os("0x3d"):case os("0x19"):n[os("0x29")]({type:os("0x31"),content:Yo(e,os("0xe"),this[os("0xd")](o[os("0x26")],o[os("0x30")]))});continue;case os("0x23"):n.push({type:os("0x6"),content:Yo(e,os("0xb"),this.getItemLabel(o[os("0x26")],o[os("0x30")]))});continue;case os("0x35"):n[os("0x29")]({type:"deletion",content:Yo(e,"*Merge:* %0",this.getItemLabel(o[os("0x26")],o[os("0x30")]))});continue}n[os("0x29")](o)}return n}}const is=["editor","enableCommand","plugins","get","afterInit","showAIAssistant"];var rs,xs;rs=is,xs=282,function(t){for(;--t;)rs.push(rs.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x4")](){const t=this[as("0x0")],e=t[as("0x2")][as("0x3")]("TrackChangesEditing");t.commands[as("0x3")]("showAIAssistant")&&e[as("0x1")](as("0x5"))}}const ls=["alignment","*Format:* %0","_descriptionFactory","value","getAttribute","change","get","AlignmentEditing","selection","model","from","locale","commandParams","FORMAT_ALIGN_TO_RIGHT","left","center","FORMAT_ALIGN_TO_LEFT","markBlockFormat","TrackChangesEditing","document","registerDescriptionCallback","FORMAT_ALIGN_TO_CENTER","filter","schema","afterInit","editor","right","commandName"];var ds,us;ds=ls,us=476,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0x18")](){const t=this.editor,e=t[gs("0xb")];if(!t.plugins.has(gs("0x7")))return;const n=t.plugins[gs("0x6")](gs("0x12"));n.enableCommand("alignment",((e,o={})=>{let s=o[gs("0x3")];o.value||(s="ltr"===t.locale.contentLanguageDirection?gs("0xe"):"right");const i=Array[gs("0xa")](this[gs("0x19")].model[gs("0x13")][gs("0x8")].getSelectedBlocks())[gs("0x16")]((t=>function(t,e,n){const o=t[gs("0x4")](gs("0x0"))||null;return e.checkAttribute(t,"alignment")&&n!=o}(t,this.editor[gs("0x9")][gs("0x17")],s)));t[gs("0x9")][gs("0x5")]((()=>{for(const t of i)n[gs("0x11")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[gs("0x2")][gs("0x14")]((t=>{const{data:n}=t;if(n&&"alignment"==n[gs("0x1b")]){const t=n[gs("0xc")][0][gs("0x3")];return{type:"format",content:Yo(e,gs("0x1"),function(t){switch(t){case"left":return Yo(e,gs("0x10"));case gs("0x1a"):return Yo(e,gs("0xd"));case gs("0xf"):return Yo(e,gs("0x15"));case"justify":return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const fs=["TrackChangesEditing","elementEnd","start","includes","writer","consumable","parent","activeMarkers","item","ck-suggestion-marker--active","createUIElement","markerRange","nextSibling","previousPosition","addClass","isLimit","toViewPosition","getAttribute","hasAttribute","isAtEnd","ck-suggestion-marker-","type","markerName","element","mapper","plugins","addHighlight","insert","listItem","isContent","getCustomProperty","getItems","name","get","bindElementToMarker"];var hs,ps;hs=fs,ps=412,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return fs[t-=0]};function Es(t,e,n){const o=[];for(const s of e[bs("0x4")]())s[bs("0x1a")](t)&&o.push(n.createRangeOn(s));return o}function _s(t){const e=[];if(t.is(bs("0x1f"),bs("0x1"))){let n=t[bs("0x14")];for(;n&&n.is(bs("0x1f"),bs("0x1"))&&n[bs("0x19")]("listIndent")>0;)e.push(n),n=n[bs("0x14")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x21")][bs("0x6")](bs("0x8"));return(s,i,r)=>{if(!r[bs("0xd")].test(i[bs("0x13")],s[bs("0x5")]))return;const x=i.markerRange.getWalker(),a=i[bs("0x13")][bs("0xa")],c=t.model.schema;let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x10")];u=u||c[bs("0x2")](e);const n=r[bs("0x20")].toViewElement(e);if(n&&n[bs("0x3")](bs("0x22")))return;bs("0x9")==t[bs("0x1d")]&&c.isBlock(e)&&!c[bs("0x17")](e)&&(e[bs("0x14")]||a[bs("0x1b")]?l&&l[bs("0xe")]==e||(l=e,m(t.previousPosition),g=!0):d=d||t[bs("0x15")])}function m(t){const s=r[bs("0xc")][bs("0x12")]("span",{class:bs("0x1c")+e}),x=r.mapper[bs("0x18")](t);n&&o[bs("0xf")][bs("0xb")](i[bs("0x1e")])&&r[bs("0xc")][bs("0x16")](bs("0x11"),s),r[bs("0xc")][bs("0x0")](x,s),r[bs("0x20")][bs("0x7")](s,i[bs("0x1e")])}u||g||!d||m(d)}}const Cs=["afterInit","commandParams","commandName","forceValue","CodeEditing","SuperscriptEditing","SubscriptEditing","getRanges","get","plugins","bold","format","FORMAT_SUBSCRIPT","UnderlineEditing","toLowerCase","code","subscript","_descriptionFactory","FORMAT_STRIKETHROUGH","from","strikethrough","superscript","italic","editor","ItalicEditing","isCollapsed","BoldEditing","enableCommand","FORMAT_SUPERSCRIPT","commands","FORMAT_ITALIC","StrikethroughEditing","FORMAT_BOLD","document"];var ys,ks;ys=Cs,ks=107,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x15"),As("0x13"),As("0x8"),As("0x21"),As("0x1a"),As("0x1"),As("0x0")];class Rs extends t.Plugin{[As("0x1d")](){const t=this[As("0x12")],e=t.model,n=t[As("0x4")][As("0x3")]("TrackChangesEditing"),o=t.locale;for(const o of vs){if(!t[As("0x4")].has(o))continue;const s=o.slice(0,-7)[As("0x9")](),i=t[As("0x18")][As("0x3")](s);n[As("0x16")](s,((t,o={})=>{const r=e[As("0x1c")].selection;if(r[As("0x14")])return void t(o);const x=void 0!==o.forceValue?o.forceValue:!i.value;e.change((()=>{const t=Array[As("0xe")](r[As("0x2")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0xc")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[As("0x1f")]===t)return s[As("0x1e")][0][As("0x20")]?{type:As("0x6"),content:Yo(o,"*Format:* %0",e)}:{type:As("0x6"),content:Yo(o,"*Remove format:* %0",e)}}))}s(As("0x5"),Yo(o,As("0x1b"))),s(As("0x11"),Yo(o,As("0x19"))),s("underline",Yo(o,"FORMAT_UNDERLINE")),s(As("0xa"),Yo(o,"FORMAT_CODE")),s(As("0xf"),Yo(o,As("0xd"))),s(As("0xb"),Yo(o,As("0x7"))),s(As("0x10"),Yo(o,As("0x17")))}}const Is=["registerDescriptionCallback","parent","BlockQuoteEditing","get","model","checkChild","commandName","locale","getSelectedBlocks","plugins","format","commands","commandParams","$root","editor","afterInit","from","selection","TrackChangesEditing","change","name","markBlockFormat","blockQuote","filter","*Format:* %0"];var Ss,Ls;Ss=Is,Ls=455,function(t){for(;--t;)Ss.push(Ss.shift())}(++Ls);const Ns=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ns("0xa")](){const t=this[Ns("0x9")],e=t[Ns("0x2")];if(!t[Ns("0x4")].has(Ns("0x16")))return;const n=t[Ns("0x4")][Ns("0x17")](Ns("0xd")),o=this[Ns("0x9")][Ns("0x6")][Ns("0x17")](Ns("0x11"));n.enableCommand(Ns("0x11"),((e,s={})=>{const i=this[Ns("0x9")][Ns("0x18")].document[Ns("0xc")],r=s&&void 0!==s.forceValue?s.forceValue:!o.value;let x=[];if(r){const e=Array[Ns("0xb")](i[Ns("0x3")]()).filter((t=>Ms(t)||function(t,e){const n=e[Ns("0x0")](t[Ns("0x15")],Ns("0x11")),o=e.checkChild([Ns("0x8"),Ns("0x11")],t);return n&&o}(t,this.editor[Ns("0x18")].schema)));x=I(e,t[Ns("0x18")])}else{const e=Array[Ns("0xb")](i[Ns("0x3")]())[Ns("0x12")]((t=>Ms(t)));x=I(e,t[Ns("0x18")])}t[Ns("0x18")][Ns("0xe")]((()=>{for(const t of x)n[Ns("0x10")](t,{commandName:Ns("0x11"),commandParams:[{forceValue:r}]})}))})),n._descriptionFactory[Ns("0x14")]((t=>{const{data:n}=t;if(n&&Ns("0x11")==n[Ns("0x1")]){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n[Ns("0x7")][0].forceValue?{type:Ns("0x5"),content:Yo(e,Ns("0x13"),t)}:{type:Ns("0x5"),content:Yo(e,"*Remove format:* %0",t)}}}))}}function Ms(t){return Ns("0x11")==t[Ns("0x15")][Ns("0xf")]}const Os=["editor","enableCommand","afterInit","ckbox","commands","plugins","get","TrackChangesEditing"];var Fs,Ps;Fs=Os,Ps=410,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x0")](){const t=this[Ds("0x6")];t[Ds("0x2")][Ds("0x4")](Ds("0x1"))&&t[Ds("0x3")].get(Ds("0x5"))[Ds("0x7")](Ds("0x1"))}}const js=["markBlockFormat","model","codeBlock","languages","name","config","getSelectedBlocks","enableCommand","parent","forceValue","blockName","ELEMENT_CODE_BLOCK","plugins","CodeBlock","change","registerElementLabel","commandParams","language","outdentCodeBlock","value","registerDescriptionCallback","format","filter","get","afterInit","has","isLimit","TrackChangesEditing","document","checkChild","from","find","*Format:* %0","*Remove format:* %0"];var Us,Gs;Us=js,Gs=379,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0x13")](){const t=this.editor;if(!t.plugins[Hs("0x14")](Hs("0x8")))return;const e=t[Hs("0x7")][Hs("0x12")](Hs("0x16")),n=t.locale,o=t[Hs("0x0")].get(Hs("0x1f"))[Hs("0x20")],s=t.commands.get("codeBlock");e.enableCommand("indentCodeBlock"),e[Hs("0x2")](Hs("0xd")),e.enableCommand(Hs("0x1f"),((n,i={})=>{const r=t[Hs("0x1e")],x=t[Hs("0x1e")][Hs("0x17")].selection,a=i&&void 0!==i[Hs("0x4")]?i[Hs("0x4")]:!s[Hs("0xe")];let c;i[Hs("0xc")]||(i.language=o[0][Hs("0xc")]),c=a?Array[Hs("0x19")](x[Hs("0x1")]())[Hs("0x11")]((t=>{return Ws(t)||(e=t,n=r.schema,!e.is("rootElement")&&!n[Hs("0x15")](e)&&n[Hs("0x18")](e[Hs("0x3")],Hs("0x1f")));var e,n})):Array.from(x[Hs("0x1")]())[Hs("0x11")]((t=>Ws(t)));const l=I(c,r);r[Hs("0x9")]((()=>{for(const t of l)e[Hs("0x1d")](t,{commandName:Hs("0x1f"),commandParams:[{...i,forceValue:a}],formatGroupId:Hs("0x5")})}))})),e._descriptionFactory[Hs("0xa")]("codeBlock",(t=>Yo(n,Hs("0x6"),t))),e._descriptionFactory[Hs("0xf")]((t=>{const e=n.t,{type:s,data:i}=t;if("formatBlock"==s&&i&&Hs("0x1f")==i.commandName){const t=i[Hs("0xb")][0][Hs("0xc")],s=e(o[Hs("0x1a")]((e=>e.language===t)).label);return i[Hs("0xb")][0].forceValue?{type:Hs("0x10"),content:Yo(n,Hs("0x1b"),Yo(n,Hs("0x6"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Hs("0x1c"),Yo(n,Hs("0x6"),1))}}}))}}function Ws(t){return Hs("0x1f")==t[Hs("0x21")]}const Vs=["has","TrackChangesEditing","get","editor","plugins","enableCommand","afterInit","addCommentThread","CommentsEditing"];var Ks,qs;Ks=Vs,qs=243,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{[Xs("0x6")](){const t=this[Xs("0x3")];t[Xs("0x4")][Xs("0x0")](Xs("0x8"))&&t[Xs("0x4")][Xs("0x2")](Xs("0x1"))[Xs("0x5")](Xs("0x7"))}}var Js=n(181);const Qs=["buffer","plugins","markerName","TrackChangesEditing","createRange","writer","unbindElementFromMarkerName","high","enableCommand","uiElement","modifySelection","forward","init","detach","root","rootName","markerNameToElements","editor","get","delete","removeMarker:suggestion:deletion","requires","data","remove","showSuggestionHighlights","selection","bind","setSelection","fromRange","deleteForward","isCollapsed","$graveyard","mapper","addMarker:suggestion:deletion","editing","downcastDispatcher","model","merge","unit"];var Zs,Ys;Zs=Qs,Ys=336,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const ti=function(t,e){return Qs[t-=0]};class ei extends t.Plugin{static get[ti("0x24")](){return[Js.Delete]}[ti("0x1b")](){const t=this[ti("0x20")],e=t[ti("0x10")].get(ti("0x12"));e.enableCommand(ti("0x22"));const n=t.commands[ti("0x21")](ti("0x5"));e[ti("0x17")]("deleteForward",((e,o={})=>{const s=t[ti("0xc")].createSelection(t.model.document[ti("0x1")]);s[ti("0x6")]&&t[ti("0xc")][ti("0x19")](s,{direction:ti("0x1a"),unit:o[ti("0xe")]});const i=s.getFirstRange(),x=r.LiveRange[ti("0x4")](i);let a;e(o),a=ti("0x7")==x[ti("0x1d")][ti("0x1e")]?t[ti("0xc")][ti("0x13")](i.start):t[ti("0xc")][ti("0x13")](x.start,x.end),x[ti("0x1c")](),t[ti("0xc")].enqueueChange(n[ti("0xf")].batch,(t=>{n[ti("0xf")].lock(),t[ti("0x3")](t.createRange(a.end)),n[ti("0xf")].unlock()}))})),t.editing[ti("0xb")].on(ti("0x9"),Ts(t,"merge"),{priority:ti("0x16")}),t[ti("0x25")].downcastDispatcher.on(ti("0x9"),((e,n,o)=>{o.options[ti("0x0")]&&Ts(t,ti("0xd"),{showActiveMarker:!1})[ti("0x2")](this)(e,n,o)}),{priority:ti("0x16")}),t[ti("0xa")].downcastDispatcher.on(ti("0x23"),((t,e,n)=>{const o=n[ti("0x8")][ti("0x1f")](e.markerName);if(o)for(const t of o)t.is(ti("0x18"))&&(n.mapper[ti("0x15")](t,e[ti("0x11")]),n[ti("0x14")][ti("0x26")](t))}),{priority:"high"})}}const ni=["fromRange","ELEMENT_NUMBERED_LIST","map","ELEMENT_","start","accept","bulletedList","ELEMENT_BULLETED_LIST","DocumentListEditing","*Format:* insert into %0","list.multiBlock","mergeListItemBackward","numberedList","from","refresh","isFirstBlockOfListItem","commandName","ELEMENT_LIST_ITEM","getAttribute","slice","isObject","next","registerElementLabel","config","mergeListItemForward","before","markBlockFormat","detach","toUpperCase","TrackChangesEditing","execute","documentList","splitListItemBefore","add","outdentList","nodeAfter","plugins","forceValue","indentList","createPositionAt","parent","*Format:* remove from %0","getSelectedBlocks","nextSibling","change","length","enableCommand","format","_LIST","createRange","multipleBlocks","formatBlock","splitListItemAfter","_descriptionFactory","editor","document","commands","after","containsItem","*Change to:* %0","schema","*Outdent:* %0","getRanges","get","selection","setSelection","listType","value","registerDescriptionCallback","listItemId","registerCustomCallback","model","end","push","listIndent","commandParams"];var oi,si;oi=ni,si=390,function(t){for(;--t;)oi.push(oi.shift())}(++si);const ii=function(t,e){return ni[t-=0]};class ri extends t.Plugin{afterInit(){const t=this[ii("0x2c")];if(!t[ii("0x1a")].has(ii("0x4a")))return;const e=t.locale,n=t.plugins[ii("0x35")](ii("0x13")),o=t[ii("0x1a")][ii("0x35")]("DocumentListUtils");function s(e){return()=>{const s=t[ii("0x2e")][ii("0x35")](e);if(s[ii("0x39")]&&!t.config[ii("0x35")](ii("0x0")))return void t[ii("0x14")]("paragraph",{});let i=Array.from(t[ii("0x3d")][ii("0x2d")][ii("0x36")][ii("0x20")]());if(a(e)){i=o.expandListBlocksToCompleteList(i);const t=[];for(const e of i)o[ii("0x5")](e)&&t[ii("0x3f")](e);i=t}t[ii("0x3d")].change((()=>{n.markMultiRangeBlockFormat(i,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:ii("0x38")},[],ii("0x15"))}))}}function i(e){return()=>{const o=function(t){let e=Array.from(t);const n=e.findIndex((t=>!t.hasAttribute(ii("0x3b"))));return n>-1&&(e=e[ii("0x9")](0,n)),e}(t[ii("0x3d")][ii("0x2d")][ii("0x36")][ii("0x20")]()),s=o[o[ii("0x23")]-1],i=t.model[ii("0x32")][ii("0xa")](s)?ii("0x2f"):"end",r=t[ii("0x3d")][ii("0x27")](t[ii("0x3d")][ii("0x1d")](o[0],ii("0xf")),t.model[ii("0x1d")](s,i));t[ii("0x3d")][ii("0x22")]((()=>{n[ii("0x10")](r,{commandName:e,commandParams:[],formatGroupId:ii("0x38")},function(t){const e=new Set;for(const n of t){let t=n[ii("0x21")];for(;t&&t[ii("0x8")]("listIndent")>n[ii("0x8")](ii("0x40"));)e[ii("0x17")](t),t=t[ii("0x21")]}return Array[ii("0x3")](e)}(o))}))}}function x(e){return()=>{const o=t[ii("0x3d")][ii("0x2d")][ii("0x36")][ii("0x20")]()[ii("0xb")]().value,s=t[ii("0x3d")][ii("0x1d")](o,ii("0xf")),i=t[ii("0x3d")][ii("0x1d")](o,0),r=t[ii("0x3d")][ii("0x27")](s,i);t.model[ii("0x22")]((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:ii("0x38")})}))}}function a(e){const n=t[ii("0x2e")][ii("0x35")](ii("0x48"))[ii("0x39")],o=t[ii("0x2e")][ii("0x35")](ii("0x2"))[ii("0x39")];return ii("0x2")===e?n:o}n[ii("0x24")](ii("0x2"),s(ii("0x2"))),n[ii("0x24")]("bulletedList",s(ii("0x48"))),n.enableCommand(ii("0x1c"),i("indentList")),n[ii("0x24")]("outdentList",i(ii("0x18"))),n[ii("0x24")](ii("0x2a"),x(ii("0x2a"))),n.enableCommand(ii("0x16"),x("splitListItemBefore")),n._descriptionFactory[ii("0xc")]((function(e){const n=!t[ii("0x3d")][ii("0x32")].isObject(e),o=e.previousSibling,s=e.nextSibling,i=e[ii("0x8")](ii("0x3b")),r=!o||o[ii("0x8")](ii("0x3b"))!==i,x=!s||s[ii("0x8")]("listItemId")!==i;return n&&Boolean(i)&&r&&x}),(t=>Yo(e,ii("0x7"),t))),n[ii("0x2b")][ii("0x3a")]((function(n){const{data:o}=n;if(!o)return;let s,i,r,x;switch(o.commandName){case ii("0x48"):r=o[ii("0x41")][0][ii("0x1b")],x=a(o[ii("0x6")]),s=r?ii("0x4b"):"*Format:* remove from %0",!x&&t[ii("0xd")][ii("0x35")](ii("0x0"))||(s="*Change to:* %0"),i={type:ii("0x25"),content:Yo(e,s,Yo(e,ii("0x49")))};break;case ii("0x2"):r=o[ii("0x41")][0].forceValue,x=a(o[ii("0x6")]),s=ii(r?"0x4b":"0x1f"),!x&&t[ii("0xd")].get("list.multiBlock")||(s=ii("0x31")),i={type:ii("0x25"),content:Yo(e,s,Yo(e,ii("0x43")))};break;case ii("0x1c"):s="*Indent:* %0",i={type:"format",content:Yo(e,s,Yo(e,"ELEMENT_LIST_ITEM"))};break;case ii("0x18"):s=function(t){const e=t.getFirstRange();let n=e[ii("0x46")].nodeAfter;for(;n&&e[ii("0x30")](n);){if(n.getAttribute("listIndent")>0)return!1;n=n[ii("0x21")]}return!0}(n)?Yo(e,ii("0x1f"),Yo(e,function(t){const e=t.getFirstRange()[ii("0x46")].nodeAfter;return ii("0x45")+e.getAttribute(ii("0x38"))[ii("0x12")]()+ii("0x26")}(n))):Yo(e,ii("0x33"),Yo(e,ii("0x7"))),i={type:ii("0x25"),content:s};break;case ii("0x1"):case ii("0xe"):!1===o[ii("0x28")]&&(s="*Merge:* %0",i={type:"deletion",content:Yo(e,s,Yo(e,"ELEMENT_LIST_ITEM"))})}return i})),n._suggestionFactory[ii("0x3c")](ii("0x29"),ii("0x15"),ii("0x47"),(function(e,n){const o=[];for(let n of e)n[ii("0x46")].nodeAfter===n[ii("0x3e")][ii("0x1e")]&&(n=t[ii("0x3d")].createRange(t[ii("0x3d")].createPositionAt(n[ii("0x46")][ii("0x19")],0))),o.push(n);t[ii("0x3d")][ii("0x22")]((e=>{const s=t[ii("0x3d")][ii("0x2d")][ii("0x36")],i=Array[ii("0x3")](s[ii("0x34")]())[ii("0x44")]((t=>r.LiveRange[ii("0x42")](t)));e[ii("0x37")](o),t.commands[ii("0x35")](n.commandName)[ii("0x4")](),n.commandParams[ii("0x3f")]({forceDefaultExecution:!0}),t.execute(n.commandName,...n.commandParams),e[ii("0x37")](i);for(const t of i)t[ii("0x11")]()}))}))}}var xi=n(331);const ai=["high","split","options","TrackChangesEditing","unbindElementFromMarkerName","fire","data","nextSibling","removeMarker:suggestion:insertion","createRange","enter","addMarker:suggestion:insertion","showSuggestionHighlights","enterBlock","markerName","editing","end","parent","remove","editor","document","init","downcastDispatcher","plugins","afterExecute","hasClass","markInsertion","commands","createPositionAt","mapper","selection","model","enableCommand","get"];var ci,li;ci=ai,li=456,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{static get requires(){return[xi.Enter]}[di("0x7")](){const t=this[di("0x5")],e=t[di("0x9")][di("0x13")](di("0x17")),n=t[di("0xd")][di("0x13")](di("0x1e"));e[di("0x12")](di("0x1e"),(()=>{t.model.change((o=>{const s=t[di("0x11")][di("0x6")][di("0x10")],i=s.getFirstPosition(),x=r.LiveRange.fromRange(s.getFirstRange());if(n[di("0x21")](o)){const n=t.model[di("0xe")](i[di("0x3")][di("0x1b")],0),s=o[di("0x1d")](i,n);e[di("0xc")](s)}else o.setSelection(o[di("0x1d")](x[di("0x2")]));x.detach(),n[di("0x19")](di("0xa"),{writer:o})}))})),t[di("0x1")][di("0x8")].on(di("0x1f"),Ts(t,di("0x15")),{priority:di("0x14")}),t.editing.downcastDispatcher.on(di("0x1c"),((t,e,n)=>{const o=n[di("0xf")].markerNameToElements(e[di("0x0")]);if(o)for(const t of o)t[di("0xb")]("ck-suggestion-marker-split")&&(n[di("0xf")][di("0x18")](t,e[di("0x0")]),n.writer[di("0x4")](t))}),{priority:"high"}),t[di("0x1a")][di("0x8")].on(di("0x1f"),((e,n,o)=>{o[di("0x16")][di("0x20")]&&Ts(t,"split",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:di("0x14")})}}const gi=["start","findPrevious","item","afterInit","handleFindCommand","editor","enableCommand","getRange","plugins","getIntersection","FindAndReplaceEditing","FindAndReplaceUtils","replace","end","findByTextCallback","bind","markers","createPositionAt","string","findNext","getMarkersGroup","filter","_isInDeletionRange","has","model","TrackChangesEditing"];var mi,fi;mi=gi,fi=228,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x9")](){if(!this[hi("0xb")][hi("0xe")][hi("0x3")](hi("0x10")))return;const t=this[hi("0xb")][hi("0xe")].get(hi("0x5"));t.enableCommand("find",this[hi("0xa")][hi("0x15")](this)),t.enableCommand(hi("0x19")),t[hi("0xc")](hi("0x7")),t[hi("0xc")](hi("0x12")),t[hi("0xc")]("replaceAll")}[hi("0xa")](t,e,n={}){const o=this[hi("0xb")][hi("0xe")].get(hi("0x11"));void 0!==n&&t((t=>(hi("0x18")==typeof e?o[hi("0x14")](e,n):e)(t)[hi("0x1")]((e=>!1===this._isInDeletionRange(e,t[hi("0x8")])))),n)}[hi("0x2")](t,e){const n=this[hi("0xb")][hi("0x4")].createRange(this[hi("0xb")][hi("0x4")][hi("0x17")](e,t[hi("0x6")]),this[hi("0xb")].model[hi("0x17")](e,t[hi("0x13")]));for(const t of this[hi("0xb")][hi("0x4")][hi("0x16")][hi("0x0")]("suggestion:deletion"))if(null!==n[hi("0xf")](t[hi("0xd")]()))return!0;return!1}}const bi=["FontBackgroundColorEditing","fontColor.colors","has","format","fontFamily","plugins","title","find","FontColorEditing","fontBackgroundColor","FontSizeEditing","model","toLowerCase","*Reset font family*","_enableCommand","fontBackgroundColor.colors","fontSize","value","config","markInlineFormat","label","*Set font background color:* %0","trim","commandName","from","FontFamilyEditing","isCollapsed","get","registerDescriptionCallback","document","enableCommand","TrackChangesEditing","fontSize.options","getRanges","editor","commandParams","FontSize","fontColor"];var Ei,_i;Ei=bi,_i=443,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]},Ci=[{pluginName:Ti("0x17"),commandName:Ti("0x1d")},{pluginName:Ti("0x0"),commandName:Ti("0x11")},{pluginName:Ti("0x15"),commandName:Ti("0xc")},{pluginName:Ti("0xd"),commandName:Ti("0x16")}];class yi extends t.Plugin{afterInit(){const t=this[Ti("0x9")].locale;for(const{pluginName:t,commandName:e}of Ci)this[Ti("0x9")].plugins[Ti("0xf")](t)&&this[Ti("0x1b")](e);this.editor[Ti("0x12")][Ti("0x2")]("TrackChangesEditing")._descriptionFactory[Ti("0x3")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o.commandName){const e=o[Ti("0xa")][0][Ti("0x1e")];if(e){const o=n(this[Ti("0x9")][Ti("0x12")][Ti("0x2")](Ti("0xb")).normalizeSizeOptions(this[Ti("0x9")].config[Ti("0x2")](Ti("0x7")))[Ti("0x14")]((t=>t[Ti("0x18")]==e))[Ti("0x13")])[Ti("0x19")]();return{type:Ti("0x10"),content:Yo(t,"*Set font size:* %0",o)}}return{type:Ti("0x10"),content:Yo(t,"*Reset font size*")}}if(Ti("0x11")==o[Ti("0x24")]){const e=o[Ti("0xa")][0][Ti("0x1e")];return e?{type:Ti("0x10"),content:Yo(t,"*Set font family:* %0",e)}:{type:Ti("0x10"),content:Yo(t,Ti("0x1a"))}}if("fontColor"==o[Ti("0x24")]){const e=o[Ti("0xa")][0][Ti("0x1e")];if(e){const o=(0,s.normalizeColorOptions)(this[Ti("0x9")][Ti("0x1f")][Ti("0x2")](Ti("0xe")))[Ti("0x14")]((t=>t[Ti("0x18")]==e));let i=e,r="";return o&&(i=o[Ti("0x21")],r=n(i)[Ti("0x19")]()),{type:Ti("0x10"),content:Yo(t,"*Set font color:* %0",r).trim(),color:{value:e,title:r||i}}}return{type:"format",content:Yo(t,"*Reset font color*")}}if("fontBackgroundColor"==o[Ti("0x24")]){const e=o[Ti("0xa")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[Ti("0x9")][Ti("0x1f")].get(Ti("0x1c"))).find((t=>t[Ti("0x18")]==e));let i=e,r="";return o&&(i=o[Ti("0x21")],r=n(i).toLowerCase()),{type:Ti("0x10"),content:Yo(t,Ti("0x22"),r)[Ti("0x23")](),color:{value:e,title:r||i}}}return{type:Ti("0x10"),content:Yo(t,"*Reset font background color*")}}}}))}[Ti("0x1b")](t){const e=this[Ti("0x9")];e.plugins[Ti("0x2")](Ti("0x6"))[Ti("0x5")](t,((n,o={})=>{const s=e.model[Ti("0x4")].selection,i=o[Ti("0x1e")];s[Ti("0x1")]?n(o):e.model.change((()=>{const n=Array[Ti("0x25")](s[Ti("0x8")]());for(const o of n){const n=i?[o]:Es(t,o,e[Ti("0x18")]);for(const o of n)e[Ti("0x12")][Ti("0x2")]("TrackChangesEditing")[Ti("0x20")](o,{commandName:t,commandParams:[{value:i}]})}}))}))}}const ki=["markInlineFormat","getAttributeProperties","registerDescriptionCallback","keys","length","modifySelection","format","word","fontSize","model","copyFormat","getRanges","isFormatting","*Remove all formatting*","find","commandParams","fontBackgroundColor","FontSize","toUpperCase","pasteFormat","getAttributes","backward","afterInit","TrackChangesEditing","commandName","join","push","fontColor","selection","split","enableCommand","getSelectedBlocks","config","locale","_descriptionFactory","toLowerCase","get","charAt","*Set format to:* %0","slice","commands","entries","document","plugins","schema","forward","label","fontSize.options","normalizeSizeOptions","change","editor"];var Ai,vi;Ai=ki,vi=243,function(t){for(;--t;)Ai.push(Ai.shift())}(++vi);const Ri=function(t,e){return ki[t-=0]};class Ii extends t.Plugin{[Ri("0x22")](){const t=this[Ri("0xb")],n=t.model,o=n[Ri("0x3")][Ri("0x28")],s=t[Ri("0x4")][Ri("0x30")](Ri("0x23")),i=t[Ri("0x2d")],r=t[Ri("0x1")][Ri("0x30")](Ri("0x16")),x=t.commands.get("pasteFormat");r&&x&&(s[Ri("0x2a")](Ri("0x1f"),((t,i={})=>{const r=i;n[Ri("0xa")]((()=>{const t=Array.from(o.getRanges()),i=o.isCollapsed?[Si(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Ri("0x20")]()){const t=e[Ri("0xd")](n);t&&t[Ri("0x18")]&&(yield n)}}(t,n));for(const e of t[Ri("0x17")]())for(const t of e.getItems())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Ri("0x2b")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Ri("0x5")]))||0!==Object[Ri("0xf")](r).length)for(const t of i)s[Ri("0xc")](t,{commandName:Ri("0x1f"),commandParams:[r]})}))})),s[Ri("0x2e")][Ri("0xe")]((e=>{const{data:n}=e;if(n&&Ri("0x1f")===n[Ri("0x24")]){const e=[],o=n[Ri("0x1b")][0];for(const[n,s]of Object[Ri("0x2")](o))e[Ri("0x26")](Li(t,n,s));return e[Ri("0x10")]?{type:Ri("0x12"),content:Yo(i,Ri("0x32"),e[Ri("0x25")](", "))}:{type:Ri("0x12"),content:Yo(i,Ri("0x19"))}}})),t[Ri("0x4")][Ri("0x30")](Ri("0x23"))[Ri("0x2a")](Ri("0x16")))}}function Si(t,e){const n=t.createSelection(e);t[Ri("0x11")](n,{unit:Ri("0x13"),direction:Ri("0x21")});const o=n.getFirstPosition();t.modifySelection(n,{unit:Ri("0x13"),direction:Ri("0x6")});const s=n.getLastPosition();return t.createRange(o,s)}function Li(t,e,n){const o=t.locale.t,i=e[Ri("0x29")](/(?=[A-Z])/)[Ri("0x25")](" "),r=o(i[Ri("0x31")](0)[Ri("0x1e")]()+i[Ri("0x0")](1))[Ri("0x2f")]();if("boolean"==typeof n)return r;if(Ri("0x27")===e||Ri("0x1c")===e){const e=(0,s.normalizeColorOptions)(t[Ri("0x2c")][Ri("0x30")]("fontColor.colors"))[Ri("0x1a")]((t=>t[Ri("0x15")]==n));return r+" ("+(e?o(e[Ri("0x7")])[Ri("0x2f")]():n)+")"}if(Ri("0x14")===e&&isNaN(parseFloat(n))){const e=t.plugins[Ri("0x30")](Ri("0x1d"))[Ri("0x9")](t[Ri("0x2c")][Ri("0x30")](Ri("0x8")))[Ri("0x1a")]((t=>t[Ri("0x15")]==n));return r+" ("+(e?o(e.title).toLowerCase():n)+")"}return r+" ("+n+")"}const Ni=["isObject","model","find","value","get","editor","getSelectedBlocks","ELEMENT_HEADING_CUSTOM","formatBlock","from","plugins","heading","HeadingEditing","_descriptionFactory","*Change to:* %0","format","name","paragraph","TrackChangesEditing","parent","change","match","registerElementLabel","schema","enableCommand","selection","checkChild","heading.options","has","locale","commandName","config","registerDescriptionCallback"];var wi,Mi;wi=Ni,Mi=127,function(t){for(;--t;)wi.push(wi.shift())}(++Mi);const Oi=function(t,e){return Ni[t-=0]};class Fi extends t.Plugin{afterInit(){const t=this[Oi("0xa")],e=t[Oi("0x1")],n=t[Oi("0x3")][Oi("0x9")](Oi("0x20"));if(!t[Oi("0xf")][Oi("0x0")](Oi("0x11")))return;const o=t[Oi("0xf")][Oi("0x9")](Oi("0x17"));o[Oi("0x1d")](Oi("0x10"),((e,n)=>{const s=n[Oi("0x8")],i=Array[Oi("0xe")](this[Oi("0xa")][Oi("0x6")].document[Oi("0x1e")][Oi("0xb")]()).filter((t=>{return e=t,n=s,(o=this[Oi("0xa")][Oi("0x6")][Oi("0x1c")])[Oi("0x1f")](e[Oi("0x18")],n)&&!o[Oi("0x5")](e)&&e[Oi("0x15")]!=n;var e,n,o}));t[Oi("0x6")][Oi("0x19")]((()=>{for(const t of i)o.markBlockFormat(t,{commandName:Oi("0x10"),commandParams:[n],formatGroupId:"blockName"},_s(t))}))}));for(const t of n)Oi("0x16")!=t[Oi("0x6")]&&o[Oi("0x12")][Oi("0x1b")](t[Oi("0x6")],(e=>{const n=Pi(t[Oi("0x6")]);return null!==n?s(e,n):i(e,t.title)}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function i(t,n){return Yo(e,Oi("0xc"),[t,n])}o[Oi("0x12")][Oi("0x4")]((t=>{const{type:o,data:r}=t;if(Oi("0xd")==o&&r&&Oi("0x10")==r[Oi("0x2")]){const t=r.commandParams[0].value,o=Pi(t);if(null!==o)return{type:Oi("0x14"),content:Yo(e,Oi("0x13"),s(1,o))};const x=n[Oi("0x7")]((e=>e[Oi("0x6")]===t)).title;return{type:"format",content:Yo(e,Oi("0x13"),i(1,x))}}}))}}function Pi(t){const e=t[Oi("0x1a")](/^heading(\d+)$/);return e?e[1]:null}const Di=["toLowerCase","afterInit","value","*Set highlight:* %0","plugins","highlight","createRange","_descriptionFactory","model","getLastMatchingPosition","backward","getRanges","color","get","commandName","hasAttribute","title","isCollapsed","enableCommand","push","FORMAT_HIGHLIGHT","format","TrackChangesEditing","getAttribute","highlight.options","getFirstPosition","selection","config","locale","find","*Remove highlight*","change"];var Bi,ji;Bi=Di,ji=191,function(t){for(;--t;)Bi.push(Bi.shift())}(++ji);const Ui=function(t,e){return Di[t-=0]};class Gi extends t.Plugin{[Ui("0x2")](){const t=this.editor;if(!t.plugins.has("HighlightEditing"))return;const e=t[Ui("0x5")][Ui("0xe")](Ui("0x17"));e[Ui("0x13")]("highlight",((n,o={})=>{const s=t[Ui("0x9")].document[Ui("0x1b")],i=s[Ui("0x18")](Ui("0x6"));let r=o[Ui("0x3")],x=[];if(s[Ui("0x12")]){const e=s[Ui("0x1a")]();if(!s[Ui("0x10")](Ui("0x6")))return void n(o);{const n=t=>t.item[Ui("0x18")]("highlight")===i,o=e[Ui("0xa")](n,{direction:Ui("0xb")}),s=e[Ui("0xa")](n);x=[t[Ui("0x9")][Ui("0x7")](o,s)],r==i&&(r=null)}}else for(const e of s[Ui("0xc")]())r?x.push(e):x[Ui("0x14")](...Es(Ui("0x6"),e,t[Ui("0x9")]));t[Ui("0x9")][Ui("0x0")]((()=>{for(const t of x)e.markInlineFormat(t,{commandName:Ui("0x6"),commandParams:[{value:r}]})}))}));const n=t[Ui("0x1d")];e[Ui("0x8")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Ui("0x6")==s[Ui("0xf")]){const e=n.t,o=s.commandParams[0][Ui("0x3")];if(o){const s=t[Ui("0x1c")].get(Ui("0x19"))[Ui("0x1e")]((t=>t[Ui("0x9")]==o)),i=e(s.title)[Ui("0x1")]();return{type:Ui("0x16"),content:Yo(n,Ui("0x4"),i),color:{value:s[Ui("0xd")],title:s[Ui("0x11")]}}}return{type:"format",content:Yo(n,Ui("0x1f"),Yo(n,Ui("0x15")))}}}))}}const Hi=["addClass","conversion","showSuggestionHighlights","_descriptionFactory","get","high","horizontalLine","afterInit","for","TrackChangesEditing","div","plugins","dataDowncast","createEmptyElement"];var zi,Wi;zi=Hi,Wi=415,function(t){for(;--t;)zi.push(zi.shift())}(++Wi);const Vi=function(t,e){return Hi[t-=0]};class Ki extends t.Plugin{[Vi("0xc")](){const t=this.editor;if(!t[Vi("0x2")].has("HorizontalLineEditing"))return;t[Vi("0x2")][Vi("0x9")](Vi("0x0")).enableCommand(Vi("0xb"));const e=t[Vi("0x2")][Vi("0x9")](Vi("0x0")),n=t.locale;e[Vi("0x8")].registerElementLabel(Vi("0xb"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Vi("0x6")][Vi("0xd")](Vi("0x3")).elementToStructure({model:Vi("0xb"),view:(t,{writer:e,options:n})=>{if(!n[Vi("0x7")])return null;const o=e.createContainerElement(Vi("0x1")),s=e[Vi("0x4")]("hr");return e[Vi("0x5")]("ck-horizontal-line",o),e.insert(e.createPositionAt(o,0),s),o},converterPriority:Vi("0xa")})}}const qi=["afterInit","value","has","editor","getSelectedElement","plugins","selection","get","rawHtml","rawHtmlApi","cancel","getAttribute","locale","change","commandName","element","_descriptionFactory","view","document","format","ELEMENT_HTML_EMBED","*Change %0 content*","registerElementLabel","HtmlEmbed","htmlEmbed","TrackChangesEditing","markBlockFormat"];var Xi,$i;Xi=qi,$i=373,function(t){for(;--t;)Xi.push(Xi.shift())}(++$i);const Ji=function(t,e){return qi[t-=0]};class Qi extends t.Plugin{[Ji("0x5")](){const t=this[Ji("0x8")];if(!t[Ji("0xa")][Ji("0x7")](Ji("0x1")))return;const e=t.plugins[Ji("0xc")](Ji("0x3")),n=t[Ji("0x11")],o=t.editing[Ji("0x16")][Ji("0x17")][Ji("0xb")];e[Ji("0x15")][Ji("0x0")]("rawHtml",(t=>Yo(n,Ji("0x19"),t))),t[Ji("0xa")][Ji("0xc")]("TrackChangesEditing").enableCommand(Ji("0x2"),((n,s)=>{const i=t.model,r=i[Ji("0x17")].selection;i[Ji("0x12")]((()=>{const t=function(t){const e=t[Ji("0x9")]();return e&&e.is(Ji("0x14"),Ji("0xd"))?t[Ji("0x9")]():null}(r);if(!t)return void n(null);const i=t[Ji("0x10")](Ji("0x6"))||"";void 0!==s&&s!==i&&(e[Ji("0x4")](t,{commandName:Ji("0x2"),commandParams:[s]}),o.getSelectedElement().getCustomProperty(Ji("0xe"))[Ji("0xf")]())}))})),e[Ji("0x15")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Ji("0x2")==e[Ji("0x13")]){const t=Yo(n,Ji("0x19"));return{type:Ji("0x18"),content:Yo(n,Ji("0x1a"),t)}}}))}}const Zi=["registerElementLabel","getAttribute","createRangeOn","get","suggestion","value","convertBlockImageToInline","ELEMENT_IMAGE","refresh","isInlineImage","Inline image to block image","plugins","getCaptionFromImageModelElement","ImageStyleEditing","ImageResize","chain","imageInline","_suggestionFactory","resizedWidth","imageBlock","isBlockImage","ImageUtils","uploadImage","registerDescriptionCallback","commands","_findSuggestions","type","accept","Users","next","resizeImage","locale","schema","head","backward","newRange","filter","nodeBefore","findIndex","getNearestSelectionRange","hasSuggestion","getSuggestionCallback","end","model","getChangedMarkers","change","ImageBlockEditing","ImageInlineEditing","imageStyle","getContainedElement","isInContent","commandReversedParams","imageTypeBlock","differ","normalizedStyles","document","enableCommand","join","isBefore","format","commandParams","imageTypeInline","getFirstRange","convertInlineImageToBlock","_splitMarkerName","imageCaption","element","*Set image width:* %0","nodeAfter","FORMAT_SIDE_IMAGE","discardSuggestion","alt","registerCustomCallback","commandName","name","setImageNaturalSizeAttributes","ELEMENT_INLINE_IMAGE","deletion","getSuggestions","afterInit","markBlockFormat","discard","ImageCaptionEditing","formatBlock","imageStylePreApply","isOwn","has","detach","ImageUploadEditing","addObject","toggleImageCaption","formatInline","ImageCaptionUtils","forceDefaultExecution","width","markInsertion","fromPosition","_descriptionFactory","getClosestSelectedImageElement","markInlineFormat","imageStylePostApply","insertion","selection","side","createRange","start","isCollapsed","getSuggestion","isIntersecting","toNext","toPrevious","subType","imageTextAlternative","hasAttribute","ELEMENT_CAPTION","find","*Format:* %0","author","markDeletion","caption","length","newValue","Block image to inline image","TrackChangesEditing","ImageEditing","isEqual","removeObject"];var Yi,tr;Yi=Zi,tr=467,function(t){for(;--t;)Yi.push(Yi.shift())}(++tr);const er=function(t,e){return Zi[t-=0]};class nr extends t.Plugin{[er("0x78")](){const t=this.editor;if(!t.plugins[er("0x0")](er("0x26")))return;const n=t[er("0x34")][er("0x2c")](er("0x25")),o=t[er("0x34")][er("0x2c")](er("0x3e")),s={},i=t[er("0x48")];if(n[er("0x61")]("insertImage"),n[er("0xb")][er("0x29")](er("0x3c"),(t=>Yo(i,er("0x30"),t))),n._descriptionFactory[er("0x29")](er("0x39"),(t=>Yo(i,er("0x75"),t))),n[er("0xb")].registerElementLabel("caption",(()=>Yo(i,er("0x1c")))),t.plugins[er("0x0")](er("0x2"))&&n[er("0x61")](er("0x3f")),t[er("0x34")].has(er("0x57"))&&t[er("0x34")][er("0x0")](er("0x58"))&&(n.enableCommand("imageTypeInline",((e,s)=>{const i=o[er("0xc")](t.model.document[er("0x10")]);t[er("0x54")][er("0x56")]((()=>{n.markBlockFormat(i,{commandName:er("0x66"),commandParams:[s]},[],er("0x2f"))}))})),n[er("0x61")](er("0x5d"),((e,s)=>{t[er("0x54")].change((i=>{let x=o[er("0xc")](t.model[er("0x60")].selection),a=i[er("0x2b")](x);const c=r.LivePosition[er("0xa")](a[er("0x13")],er("0x18")),l=r.LivePosition.fromPosition(a[er("0x53")],er("0x17"));n[er("0x7")]((()=>e(s))),x=o[er("0xc")](t[er("0x54")].document[er("0x10")]),a=i[er("0x2b")](x);const d=i[er("0x12")](c,l);c[er("0x1")](),l[er("0x1")](),n.markBlockFormat(x,{commandName:er("0x66"),commandParams:[s]},[],er("0x68")),d.start.isBefore(a[er("0x13")])&&n[er("0x9")](i.createRange(d[er("0x13")],a[er("0x13")]),er("0x68")),a[er("0x53")][er("0x63")](d[er("0x53")])&&n.markInsertion(i[er("0x12")](a.end,d.end),"convertInlineImageToBlock")}))})),n[er("0x3a")][er("0x71")](er("0x7c"),er("0x68"),er("0x62"),(()=>!1)),n[er("0x3a")][er("0x71")](er("0x7c"),er("0x68"),er("0x44"),(()=>!1)),n[er("0x3a")][er("0x71")](er("0x7c"),er("0x68"),er("0x7a"),n[er("0x3a")][er("0x52")](er("0x7c"),"",er("0x44"))),n[er("0x3a")].registerCustomCallback("insertion","convertInlineImageToBlock","join",(()=>!1)),n._suggestionFactory[er("0x71")](er("0xf"),"convertInlineImageToBlock",er("0x7a"),(([e])=>{const o=n[er("0x3a")][er("0x52")]("insertion","",er("0x7a"));let s=e.start,i=e.end;const r=t[er("0x54")][er("0x49")][er("0x50")](s,er("0x4b")),x=t[er("0x54")][er("0x49")][er("0x50")](i,"forward");r[er("0x14")]&&(s=r[er("0x13")]),x[er("0x14")]&&(i=x[er("0x53")]),o([t[er("0x54")].createRange(s,i)])})),n[er("0x3a")][er("0x71")]("formatBlock","convertInlineImageToBlock",er("0x38"),c),n[er("0x3a")][er("0x71")](er("0xf"),er("0x68"),er("0x38"),c)),t.plugins[er("0x0")](er("0x7b"))&&(n[er("0x61")](er("0x4"),((e,s)=>{const i=t.plugins.get(er("0x6"));let r=o[er("0xc")](t.model.document.selection),x=i.getCaptionFromImageModelElement(r);t.model[er("0x56")]((()=>{if(x)return void n[er("0x20")](t.model.createRangeOn(x));const a=o.isBlockImage(r);e(s),r=o[er("0xc")](t[er("0x54")][er("0x60")][er("0x10")]),x=i[er("0x35")](r),n[er("0x9")](t[er("0x54")][er("0x2b")](x),a?null:er("0x6a"))}))})),n[er("0x3a")][er("0x71")](er("0xf"),"imageCaption","chain",c)),t[er("0x34")].has("ImageStyleEditing")){n.enableCommand("imageStyle",((s,i)=>{const r=t[er("0x34")].get(er("0x45")).me,x=t.commands[er("0x2c")](er("0x59"));let a=o[er("0xc")](t[er("0x54")].document.selection),c=t[er("0x54")][er("0x2b")](a),l=x[er("0x2e")];if(l==i.value)return;const d={commandName:er("0x59"),commandParams:[i],formatGroupId:(0,e.uid)()};t[er("0x54")].change((()=>{if(n[er("0x77")]().filter((t=>t[er("0x5b")]&&r==t[er("0x1f")]&&("formatBlock"==t[er("0x43")]||er("0x5")==t[er("0x43")])&&("imageStylePreApply"==t.subType||"imageStylePostApply"==t[er("0x19")])&&t.getFirstRange()[er("0x27")](c))).forEach((t=>n[er("0x6f")](t[er("0x4a")]))),a=o[er("0xc")](t[er("0x54")][er("0x60")][er("0x10")]),c=t[er("0x54")].createRangeOn(a),x[er("0x31")](),t[er("0x41")].get("imageTypeInline")[er("0x31")](),t[er("0x41")][er("0x2c")]("imageTypeBlock")[er("0x31")](),l=x.value,l!=i[er("0x2e")])return o[er("0x32")](a)&&x.shouldConvertImageType(i[er("0x2e")],a)?(s({...i,setImageSizes:!1}),a=o[er("0xc")](t[er("0x54")][er("0x60")][er("0x10")]),void n[er("0x79")](a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],er("0x7d"))):void(o[er("0x3d")](a)?n[er("0x79")](a,d,[],er("0xe")):n[er("0xd")](c,d,"imageStylePostApply"))}))}));for(const e of t[er("0x34")].get(er("0x36"))[er("0x5f")])s[e[er("0x73")]]=e.title.toLowerCase();n[er("0x3a")][er("0x71")]("formatBlock",er("0x7d"),"join",(()=>!1)),n._suggestionFactory[er("0x71")](er("0x7c"),er("0xe"),"join",(()=>!1)),n._suggestionFactory.registerCustomCallback(er("0x5"),er("0xe"),er("0x62"),(()=>!1)),n[er("0x3a")][er("0x71")]("formatBlock",er("0x7d"),er("0x44"),(([t])=>{o[er("0x74")](t[er("0x5a")]())})),n[er("0x3a")][er("0x71")]("formatBlock",er("0x7d"),er("0x7a"),((t,e)=>{n[er("0x3a")][er("0x52")](er("0x7c"),"",er("0x44"))(t,{commandName:e[er("0x72")],commandParams:e[er("0x5c")]})})),n._suggestionFactory.registerCustomCallback(er("0x7c"),er("0x7d"),er("0x38"),c)}const x=[{type:"formatBlock",subType:er("0x7d")},{type:er("0xf"),subType:er("0x6a")},{type:er("0x7c"),subType:er("0x68")},{type:"insertion",subType:er("0x68")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[er("0x43")]==e&&t[er("0x19")]==n)),i=x[er("0x4f")]((({type:t,subType:n})=>e[er("0x43")]==t&&e[er("0x19")]==n));if(s<0||i<0)return!1;const r=t[er("0x67")](),a=e[er("0x67")]();if((0==s||1==s)&&2==i&&r[er("0x16")](a))return!0;if(2==s&&3==i){const t=n[er("0x42")](r,er("0xf"))[er("0x4d")]((({suggestion:t,meta:e})=>e[er("0x7e")]&&er("0x68")==t.subType));if(t[er("0x22")]>1&&a[er("0x53")][er("0x27")](r[er("0x13")]))return!0;if(1==t[er("0x22")]&&(r[er("0x13")][er("0x27")](a[er("0x53")])||r[er("0x53")].isEqual(a[er("0x13")])))return!0}if(3==s&&3==i&&r[er("0x13")].isBefore(a[er("0x13")])){const t=r[er("0x53")][er("0x6d")],e=a[er("0x13")][er("0x4e")];return o[er("0x3d")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[er("0x54")][er("0x60")].registerPostFixer((()=>{let e=!1;const s=Array.from(t.model.document[er("0x5e")][er("0x55")]());for(const{name:t,data:i}of s){const{group:s,type:r,subType:x,id:a}=n[er("0x69")](t);if(er("0x2d")==s&&n[er("0x51")](a)){if(er("0x7c")==r&&(er("0x7d")==x||"imageStylePostApply"==x)){const t=n[er("0x15")](a);if(i.newRange){const s=t[er("0x67")]().getContainedElement();if(o[er("0x3d")](s))continue;n[er("0x6f")](t),e=!0}}if(er("0xf")==r&&er("0x6a")==x&&!i[er("0x4c")]){const t=n[er("0x15")](a);t[er("0x46")]&&t[er("0x46")][er("0x5b")]&&(n.discardSuggestion(t[er("0x46")]),e=!0)}}}return e})),t[er("0x34")][er("0x0")](er("0x37"))&&n.enableCommand(er("0x47"),((e,s)=>{const i=o[er("0xc")](t[er("0x54")][er("0x60")][er("0x10")]);i[er("0x2a")](er("0x3b"))!=s[er("0x8")]&&t.model[er("0x56")]((()=>{n[er("0x79")](i,{commandName:"resizeImage",commandParams:[s]})}))})),t[er("0x34")].has("ImageTextAlternativeEditing")&&n.enableCommand(er("0x1a"),((e,s)=>{const i=o[er("0xc")](t[er("0x54")][er("0x60")][er("0x10")]);(i[er("0x1b")](er("0x70"))?i[er("0x2a")](er("0x70")):"")!=s[er("0x23")]&&t[er("0x54")][er("0x56")]((()=>{n[er("0x79")](i,{commandName:er("0x1a"),commandParams:[s]})}))})),n[er("0xb")][er("0x40")]((t=>{if(x[er("0x1d")]((({type:e,subType:n})=>t[er("0x43")]==e&&t.subType==n)))return t.previous?{}:void 0})),n[er("0xb")].registerDescriptionCallback((t=>{if(er("0xf")==t.type||er("0x76")==t[er("0x43")]){const e=t[er("0x5a")]();if(e&&e.is(er("0x6b"),er("0x21")))return{type:er("0xf")==t.type?er("0x3"):er("0x28"),element:e,quantity:1}}})),n._descriptionFactory[er("0x40")]((t=>er("0x7c")==t[er("0x43")]&&er("0x68")==t[er("0x19")]?{type:"format",content:er("0x33")}:er("0x7c")==t[er("0x43")]&&er("0x2f")==t[er("0x19")]?{type:"format",content:er("0x24")}:void 0)),n[er("0xb")][er("0x40")]((t=>{const{data:e}=t;if(e){if(er("0x59")==e[er("0x72")]){const t=e[er("0x65")][0][er("0x2e")];return n=er("0x11")===t?Yo(i,er("0x6e")):s[t]||t,{type:"format",content:Yo(i,er("0x1e"),n)}}if(er("0x1a")==e[er("0x72")]){const t=e[er("0x65")][0].newValue;return t?{type:er("0x64"),content:Yo(i,"*Set image text alternative:* %0",'"'+t+'"')}:{type:"format",content:Yo(i,"*Remove image text alternative*")}}if("resizeImage"==e[er("0x72")]){const t=e[er("0x65")][0].width;return t?{type:er("0x64"),content:Yo(i,er("0x6c"),t)}:{type:er("0x64"),content:Yo(i,"*Reset image width*")}}}var n}))}}const or=["accept","getSelectedElement","*Format:* replace image URL","Users","TrackChangesEditing","commandParams","getSuggestionCallback","plugins","getContainedElement","source","discard","afterInit","registerDescriptionCallback","handleReplaceImageCommand","data","handleSuggestionDescription","_suggestionFactory","enableCommand","get","_descriptionFactory","formatBlock","getAttribute","replaceImageSource","selection","editor","subType","author","model","src","registerCustomCallback","change","getSuggestions"];var sr,ir;sr=or,ir=113,function(t){for(;--t;)sr.push(sr.shift())}(++ir);const rr=function(t,e){return or[t-=0]};class xr extends t.Plugin{[rr("0x1a")](){if(!this[rr("0x7")][rr("0x16")].has("ImageEditing"))return;const t=this[rr("0x7")].plugins[rr("0x1")](rr("0x13"));t[rr("0x0")](rr("0x5"),((t,e)=>this[rr("0x1c")](t,e))),t._suggestionFactory[rr("0xc")](rr("0x3"),"replaceImageSource",rr("0xf"),t[rr("0x1f")][rr("0x15")](rr("0x3"),null,rr("0x19"))),t[rr("0x1f")][rr("0xc")](rr("0x3"),rr("0x5"),rr("0x19"),t[rr("0x1f")][rr("0x15")](rr("0x3"),null,rr("0xf"))),t[rr("0x2")][rr("0x1b")]((t=>this[rr("0x1e")](t)))}handleReplaceImageCommand(t,e){const n=this.editor[rr("0x16")].get(rr("0x13")),o=this[rr("0x7")][rr("0xa")].document[rr("0x6")][rr("0x10")]();this[rr("0x7")][rr("0xa")][rr("0xd")]((()=>{let s=o[rr("0x4")](rr("0xb"));const i=this[rr("0x7")][rr("0x16")][rr("0x1")](rr("0x12")).me;for(const t of n[rr("0xe")]({skipNotAttached:!0})){const e=t[rr("0x17")]();if(rr("0x5")===t[rr("0x8")]&&e===o){t[rr("0x9")]!==i&&t[rr("0x19")](),s=t[rr("0x1d")][rr("0x14")][0][rr("0x18")];break}}t(e),n.markBlockFormat(o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],rr("0x5"))}))}[rr("0x1e")](t){const{data:e}=t;if(e&&"replaceImageSource"===e.commandName){const t=rr("0x11");return{type:"format",content:Yo(this.editor.locale,t)}}}}const ar=["track_changes","Users","collaboration_features","value","_handleImportedData","dataInsert","high","importWord","listenTo","plugins","execute","get","lowest","TrackChangesEditing","afterInit","commands","trackChanges","_trackChangesExecuted","editor","_trackChangesValueDuringImport"];var cr,lr;cr=ar,lr=222,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{constructor(t){super(t),this[dr("0x11")]=!1,this[dr("0xf")]=!1}[dr("0xc")](){const t=this[dr("0x10")],e=t[dr("0xd")][dr("0x9")](dr("0x5")),n=t[dr("0xd")][dr("0x9")](dr("0xe"));e&&(e.on("execute",((t,[,e])=>{this[dr("0x11")]=n[dr("0x1")],e[dr("0x0")][dr("0x12")]=!this[dr("0x11")]}),{priority:dr("0x4")}),this[dr("0x6")](e,dr("0x3"),this[dr("0x2")].bind(this)),this[dr("0x6")](e,dr("0x3"),(()=>{this[dr("0xf")]&&(n.execute(),this[dr("0xf")]=!1)}),{priority:dr("0xa")}),t[dr("0x7")].get(dr("0xb")).enableCommand(dr("0x5")))}[dr("0x2")](t,e){const{suggestions:n}=e,o=this[dr("0x10")][dr("0xd")][dr("0x9")](dr("0xe")),s=o.value;this[dr("0x11")]!==s&&(o[dr("0x8")](),this[dr("0xf")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[dr("0x10")].plugins[dr("0x9")](dr("0x13")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:dr("0x5")}}};this[dr("0x10")][dr("0x7")][dr("0x9")](dr("0xb"))._setSuggestionData(s)}))}}const gr=["_descriptionFactory","IndentEditing","registerDescriptionCallback","enableCommand","document","selection","commandName","indentBlock","schema","*Indent:* %0","has","format","outdentBlock","checkAttribute","editor","from","afterInit","getItemLabel","getItems","*Outdent:* %0","plugins","change","TrackChangesEditing","model","getSelectedBlocks","locale"];var mr,fr;mr=gr,fr=487,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0x17")](){const t=this[hr("0x15")],e=t[hr("0x1")].get(hr("0x3"));t[hr("0x1")].has(hr("0x8"))&&(e[hr("0xa")]("indent"),e.enableCommand("outdent"));const n=t[hr("0x6")];if(t[hr("0x1")][hr("0x11")]("IndentBlock")){for(const n of[hr("0xe"),hr("0x13")])e[hr("0xa")](n,(()=>{const o=Array[hr("0x16")](this[hr("0x15")].model[hr("0xb")][hr("0xc")][hr("0x5")]()).filter((t=>this[hr("0x15")][hr("0x4")][hr("0xf")][hr("0x14")](t,"blockIndent")));t[hr("0x4")][hr("0x2")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:hr("0xe")})}))}));e._descriptionFactory[hr("0x9")]((t=>{const{data:o}=t;if(!o)return;if(hr("0xe")!=o[hr("0xd")]&&"outdentBlock"!=o.commandName)return;const s=t[hr("0x19")]()[0],i=e[hr("0x7")][hr("0x18")](s);return"indentBlock"==o.commandName?{type:"format",content:Yo(n,hr("0x10"),i)}:hr("0x13")==o[hr("0xd")]?{type:hr("0x12"),content:Yo(n,hr("0x0"),i)}:void 0}))}}}var br,Er,_r=["get","init","editor","enableCommand"];br=_r,Er=148,function(t){for(;--t;)br.push(br.shift())}(++Er);var Tr=function(t,e){return _r[t-=0]};class Cr extends t.Plugin{static get requires(){return[Js.Input]}[Tr("0x1")](){this[Tr("0x2")].plugins[Tr("0x0")]("TrackChangesEditing")[Tr("0x3")]("input")}}const yr=["unlink","editor","registerDescriptionCallback","document","*Set link:* %0","*Remove link*","_descriptionFactory","get","getRanges","getFirstPosition","linkHref","selection","locale","format","change","link","getFirstRange","model","LinkEditing","has","markInlineFormat","isCollapsed","plugins","enableCommand","TrackChangesEditing","getAttribute","commandName","afterInit","commandParams"];var kr,Ar;kr=yr,Ar=172,function(t){for(;--t;)kr.push(kr.shift())}(++Ar);const vr=function(t,e){return yr[t-=0]};class Rr extends t.Plugin{[vr("0x0")](){const t=this.editor;if(!t[vr("0x18")][vr("0x15")](vr("0x14")))return;const e=t[vr("0x18")][vr("0x9")](vr("0x1a"));e[vr("0x19")](vr("0x11"),((n,o)=>{const s=t[vr("0x13")].document[vr("0xd")];let i=[];if(s[vr("0x17")]){if(!s.hasAttribute(vr("0xc")))return void n(o);{const e=(0,Js.findAttributeRange)(s[vr("0xb")](),vr("0xc"),s[vr("0x1b")]("linkHref"),t.model);i=[e]}}else i=Array.from(s[vr("0xa")]());t.model[vr("0x10")]((()=>{for(const t of i)e[vr("0x16")](t,{commandName:vr("0x11"),commandParams:[o]})}))})),e[vr("0x19")](vr("0x2"),(()=>{const n=this[vr("0x3")][vr("0x13")],o=n[vr("0x5")].selection;n[vr("0x10")]((()=>{let n=[];n=o[vr("0x17")]?[(0,Js.findAttributeRange)(o[vr("0xb")](),vr("0xc"),o.getAttribute(vr("0xc")),t[vr("0x13")])]:Es(vr("0xc"),o[vr("0x12")](),t[vr("0x13")]);for(const t of n)e[vr("0x16")](t,{commandName:vr("0x2"),commandParams:[]})}))})),e[vr("0x8")][vr("0x4")]((e=>{const{data:n}=e,o=t[vr("0xe")];if(n){if(vr("0x11")==n[vr("0x1c")]){const t=n[vr("0x1")][0];return{type:"format",content:Yo(o,vr("0x6"),'"'+t+'"')}}return vr("0x2")==n[vr("0x1c")]?{type:vr("0xf"),content:Yo(o,vr("0x7"))}:void 0}}))}}const Ir=["nextSibling","listType","previousSibling","*Change to:* %0","indentList","*Indent:* %0","bulleted","length","listIndent","slice","selection","outdentList","value","afterInit","document","numberedList","model","plugins","listItem","commands","replace","execute","ListEditing","findIndex","from","bulletedList","registerDescriptionCallback","List","markBlockFormat","schema","todo","change","before","ELEMENT_LIST_ITEM","ELEMENT_NUMBERED_LIST","filter","commandParams","add","checkChild","blockName","ELEMENT_BULLETED_LIST","*Uncheck item*","end","ELEMENT_TODO_LIST","has","commandName","createPositionAt","forceValue","enableCommand","*Check item*","registerElementLabel","todoList","format","element","get","parent","getAttribute","_selectedElements","getSelectedBlocks","name","checkTodoList","createRange"];var Sr,Lr;Sr=Ir,Lr=310,function(t){for(;--t;)Sr.push(Sr.shift())}(++Lr);const Nr=function(t,e){return Ir[t-=0]};class wr extends t.Plugin{[Nr("0xd")](){const t=this.editor,e=t.locale;if(!t[Nr("0x11")][Nr("0x2c")](Nr("0x16")))return;const n=t[Nr("0x11")][Nr("0x36")]("TrackChangesEditing"),o=t[Nr("0x11")].has("TodoListEditing");function s(e){return()=>{const o=t[Nr("0x10")][Nr("0xe")][Nr("0xa")],s=t[Nr("0x13")][Nr("0x36")](e);if(s[Nr("0xc")])return void t[Nr("0x15")]("paragraph",{});const i=e[Nr("0x9")](0,-4),r=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[Nr("0x26")](e[Nr("0x37")],Nr("0x12"))&&!o.isObject(e);var e,o}));o=o[Nr("0x23")]((t=>!t.is("element",Nr("0x12"))||t[Nr("0x38")](Nr("0x1"))!=e));const s=new Set;for(const t of o)t.is(Nr("0x35"),Nr("0x12"))?s[Nr("0x25")](Mr(t)):s[Nr("0x25")](t);return Array[Nr("0x18")](s)}(o[Nr("0x3a")](),i,t.model[Nr("0x1d")]);t.model[Nr("0x1f")]((()=>{for(const t of r)n[Nr("0x1c")](t,{commandName:e,commandParams:[{forceValue:!s[Nr("0xc")]}],formatGroupId:Nr("0x27")},Or(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Nr("0x18")](t);const n=e[Nr("0x17")]((t=>"listItem"!=t[Nr("0x3b")]));return n>-1&&(e=e[Nr("0x9")](0,n)),e}(t[Nr("0x10")][Nr("0xe")][Nr("0xa")].getSelectedBlocks()),s=t[Nr("0x10")][Nr("0x3d")](t[Nr("0x10")][Nr("0x2e")](o[0],Nr("0x20")),t[Nr("0x10")].createPositionAt(o[o[Nr("0x7")]-1],Nr("0x2a")));t.model[Nr("0x1f")]((()=>{n[Nr("0x1c")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Nr("0x0")];for(;t&&t[Nr("0x38")](Nr("0x8"))>n.getAttribute(Nr("0x8"));)e[Nr("0x25")](t),t=t[Nr("0x0")]}return Array[Nr("0x18")](e)}(o))}))}}n[Nr("0x30")](Nr("0xf"),s(Nr("0xf"))),n[Nr("0x30")](Nr("0x19"),s(Nr("0x19"))),o&&n[Nr("0x30")](Nr("0x33"),s("todoList")),n[Nr("0x30")]("indentList",i("indentList")),n.enableCommand("outdentList",i("outdentList")),o&&n.enableCommand(Nr("0x3c"),(()=>{const e=t[Nr("0x13")][Nr("0x36")](Nr("0x3c")),o=Array.from(e[Nr("0x39")]);o[Nr("0x23")]((t=>t[Nr("0x38")]("todoListChecked")!=e[Nr("0xc")])),t[Nr("0x10")][Nr("0x1f")]((()=>{for(const t of o)n[Nr("0x1c")](t,{commandName:Nr("0x3c"),commandParams:[{forceValue:!e[Nr("0xc")]}]})}))})),n._descriptionFactory[Nr("0x32")](Nr("0x12"),(t=>Yo(e,Nr("0x21"),t))),n._descriptionFactory[Nr("0x1a")]((t=>{const{data:n}=t;if(n){if(Nr("0xf")==n[Nr("0x2d")]||Nr("0x19")==n[Nr("0x2d")]||Nr("0x33")==n.commandName)switch(n[Nr("0x2d")][Nr("0x14")](Nr("0x1b"),"")){case Nr("0x6"):return o(Yo(e,Nr("0x28")));case"numbered":return o(Yo(e,Nr("0x22")));case Nr("0x1e"):return o(Yo(e,Nr("0x2b")))}if(Nr("0x4")==n[Nr("0x2d")])return{type:Nr("0x34"),content:Yo(e,Nr("0x5"),Yo(e,Nr("0x21")))};if(Nr("0xb")==n.commandName)return{type:Nr("0x34"),content:Yo(e,"*Outdent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if(Nr("0x3c")==n[Nr("0x2d")])return n[Nr("0x24")][0][Nr("0x2f")]?{type:Nr("0x34"),content:Yo(e,Nr("0x31"))}:{type:Nr("0x34"),content:Yo(e,Nr("0x29"))}}function o(t){return{type:Nr("0x34"),content:Yo(e,Nr("0x3"),t)}}}))}}function Mr(t){const e=t.getAttribute("listIndent");if(0==e)return t;let n=t;for(;t[Nr("0x2")]&&t[Nr("0x2")].is(Nr("0x35"),"listItem");){const o=t.previousSibling[Nr("0x38")](Nr("0x8"));if(o==e)n=t[Nr("0x2")];else if(o<e)break;t=t[Nr("0x2")]}return n}function Or(t){const e=[];if(t.is(Nr("0x35"),Nr("0x12"))&&t[Nr("0x38")](Nr("0x8"))>0){let n=t.nextSibling;for(;n&&Nr("0x12")==n[Nr("0x3b")]&&n[Nr("0x38")](Nr("0x8"))==t[Nr("0x38")]("listIndent");)e.push(n),n=n[Nr("0x0")]}return e}const Fr=["startIndex","document","*Change to:* %0","getSiblingNodes","commandParams","listReversed","_LIST_","map","getAttribute","element","editor","has","numbered","*Format:* set order to reversed","selection","listStyle","handleListStartCommand","forward","createPositionAt","listItem","backward","get","styles","toUpperCase","reversed","getFirstPosition","handleListReversedCommand","getLastPosition","*Format:* set start index to %0","from","flat","TrackChangesEditing","listStart","replace","ListUtils","change","filter","format","model","afterInit","config","getListTypeFromListStyleType","handleListStyleCommand","enableCommand","registerDescriptionCallback","getSelectedBlocks","plugins","*Format:* set order to regular","bind","_getTranslationKeyForListStyle","_getSuggestionBlocks","handleDescriptions","commandName","ELEMENT_","createRange","before","listType","markMultiRangeBlockFormat","list.properties","ListPropertiesEditing","type","length","_getSuggestionBlocksForListStyle"];var Pr,Dr;Pr=Fr,Dr=199,function(t){for(;--t;)Pr.push(Pr.shift())}(++Dr);const Br=function(t,e){return Fr[t-=0]};class jr extends t.Plugin{[Br("0x1d")](){if(!this[Br("0x0")][Br("0x24")][Br("0x1")](Br("0x31")))return;const t=this[Br("0x0")][Br("0x1e")].get(Br("0x30")),e=this[Br("0x0")][Br("0x24")][Br("0xb")]("TrackChangesEditing");t[Br("0xc")]&&e[Br("0x21")](Br("0x5"),this[Br("0x20")].bind(this)),t[Br("0xe")]&&e[Br("0x21")]("listReversed",this.handleListReversedCommand.bind(this)),t.startIndex&&e.enableCommand("listStart",this.handleListStartCommand[Br("0x26")](this)),e._descriptionFactory[Br("0x22")](this.handleDescriptions[Br("0x26")](this))}[Br("0x20")](t,e={}){const n=this.editor[Br("0x24")][Br("0xb")]("TrackChangesEditing"),o=this[Br("0x34")]();this[Br("0x0")].model[Br("0x19")]((()=>{n[Br("0x2f")](o,{commandName:Br("0x5"),commandParams:[{type:e[Br("0x32")]}],formatGroupId:"listStyle"})}))}[Br("0x10")](t,e={}){const n=this[Br("0x0")].plugins[Br("0xb")](Br("0x15")),o=this[Br("0x28")]((t=>t.is(Br("0x3e"),Br("0x9"))&&Br("0x2")===t[Br("0x3d")](Br("0x2e"))));if(o[Br("0x33")]<1)return;const s=o[Br("0x3c")]((t=>this[Br("0x0")][Br("0x1c")][Br("0x2c")](this.editor[Br("0x1c")][Br("0x8")](t,Br("0x2d")),this[Br("0x0")][Br("0x1c")][Br("0x8")](t,0))));this.editor.model[Br("0x19")]((()=>{n[Br("0x2f")](s,{commandName:Br("0x3a"),commandParams:[{reversed:e[Br("0xe")]}],formatGroupId:Br("0x3a")})}))}[Br("0x6")](t,e={}){const n=this.editor[Br("0x24")][Br("0xb")](Br("0x15")),o=this[Br("0x28")]((t=>t.is(Br("0x3e"),"listItem")&&Br("0x2")===t[Br("0x3d")](Br("0x2e"))));if(o.length<1)return;const s=o[Br("0x3c")]((t=>this[Br("0x0")][Br("0x1c")].createRange(this.editor[Br("0x1c")][Br("0x8")](t,Br("0x2d")),this[Br("0x0")][Br("0x1c")].createPositionAt(t,0))));this.editor[Br("0x1c")][Br("0x19")]((()=>{n[Br("0x2f")](s,{commandName:Br("0x16"),commandParams:[{startIndex:e[Br("0x35")]}],formatGroupId:Br("0x16")})}))}[Br("0x29")](t){const e=this[Br("0x0")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Br("0x2a")]){case"listStyle":o=Br("0x37"),s={type:Br("0x1b"),content:Yo(e,o,Yo(e,this[Br("0x27")](n[Br("0x39")][0][Br("0x32")])))};break;case Br("0x3a"):o=n[Br("0x39")][0][Br("0xe")]?Br("0x3"):Br("0x25"),s={type:"format",content:Yo(e,o)};break;case Br("0x16"):o=Br("0x12"),s={type:Br("0x1b"),content:Yo(e,o,n[Br("0x39")][0][Br("0x35")])}}return s}[Br("0x34")](){var t,e,n,o;const s=this.editor[Br("0x24")][Br("0xb")]("ListUtils");let i=Array[Br("0x13")](this[Br("0x0")][Br("0x1c")][Br("0x36")].selection.getSelectedBlocks());return(null===(t=i[0])||void 0===t?void 0:t.is("element",Br("0x9")))&&i.unshift(...s[Br("0x38")](this[Br("0x0")][Br("0x1c")][Br("0x36")][Br("0x4")][Br("0xf")](),Br("0xa"))),(null===(e=i[i[Br("0x33")]-1])||void 0===e?void 0:e.is(Br("0x3e"),Br("0x9")))&&i.push(...s[Br("0x38")](this.editor.model.document[Br("0x4")][Br("0x11")](),Br("0x7"))),i=[...new Set(i)],(null===(o=null===(n=this[Br("0x0")][Br("0x1c")][Br("0x36")][Br("0x4")].getFirstPosition())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Br("0x3e"),Br("0x9")))&&(i=i[Br("0x1a")]((t=>t.is(Br("0x3e"),Br("0x9"))))),i}[Br("0x28")](t){const e=this[Br("0x0")].plugins[Br("0xb")]("ListUtils");let n=Array[Br("0x13")](this[Br("0x0")][Br("0x1c")][Br("0x36")].selection[Br("0x23")]())[Br("0x1a")](t)[Br("0x3c")]((t=>{const n=this[Br("0x0")].model[Br("0x8")](t,0);return[...e[Br("0x38")](n,Br("0xa")),...e.getSiblingNodes(n,"forward")]}))[Br("0x14")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Br("0x2b")+this[Br("0x0")][Br("0x24")][Br("0xb")](Br("0x18"))[Br("0x1f")](t)[Br("0xd")]()+Br("0x3b")+t[Br("0xd")]()[Br("0x17")](/-/g,"_")}}const Ur=["dataDowncast","createEmptyElement","get","media","for","showSuggestionHighlights","plugins","registerElementLabel","has","div","mediaEmbed","elementToElement","_descriptionFactory","editor","ELEMENT_MEDIA","options","conversion","stop","MediaEmbedEditing","data","attribute:url:media","high","TrackChangesEditing"];var Gr,Hr;Gr=Ur,Hr=464,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const zr=function(t,e){return Ur[t-=0]};class Wr extends t.Plugin{afterInit(){const t=this[zr("0x9")];if(!t[zr("0x2")][zr("0x4")](zr("0xe")))return;const e=t[zr("0x2")][zr("0x15")](zr("0x12")),n=t.locale;e.enableCommand(zr("0x6")),e[zr("0x8")][zr("0x3")]("media",(t=>Yo(n,zr("0xa"),t))),t[zr("0xc")][zr("0x0")](zr("0x13"))[zr("0x7")]({model:zr("0x16"),view:(t,{writer:e,options:n})=>{if(n[zr("0x1")])return e[zr("0x14")](zr("0x5"))},converterPriority:zr("0x11")}),t[zr("0xf")].downcastDispatcher.on(zr("0x10"),((t,e,n)=>{n[zr("0xb")][zr("0x1")]&&t[zr("0xd")]()}),{priority:zr("0x11")})}}const Vr=["plugins","editor","TrackChangesEditing","mention","MentionEditing","enableCommand","has"];var Kr,qr;Kr=Vr,qr=443,function(t){for(;--t;)Kr.push(Kr.shift())}(++qr);const Xr=function(t,e){return Vr[t-=0]};class $r extends t.Plugin{afterInit(){const t=this[Xr("0x6")];t[Xr("0x5")][Xr("0x4")](Xr("0x2"))&&t[Xr("0x5")].get(Xr("0x0"))[Xr("0x3")](Xr("0x1"))}}const Jr=["registerElementLabel","plugins","locale","pageBreak","TrackChangesEditing","PageBreakEditing","get","_descriptionFactory","ELEMENT_PAGE_BREAK"];var Qr,Zr;Qr=Jr,Zr=367,function(t){for(;--t;)Qr.push(Qr.shift())}(++Zr);const Yr=function(t,e){return Jr[t-=0]};class tx extends t.Plugin{afterInit(){const t=this.editor;if(!t[Yr("0x3")].has(Yr("0x7")))return;t[Yr("0x3")][Yr("0x8")](Yr("0x6")).enableCommand(Yr("0x5"));const e=t[Yr("0x3")][Yr("0x8")]("TrackChangesEditing"),n=t[Yr("0x4")];e[Yr("0x0")][Yr("0x2")](Yr("0x5"),(t=>Yo(n,Yr("0x1"),t)))}}const ex=["isTouching","_descriptionFactory","insertion","selection","showSuggestionHighlights","data","type","bindElementToMarker","createUIElement","downcastDispatcher","from","getFirstRange","isObject","toViewPosition","get","highest","getSelectedBlocks","end","name","enableCommand","consume","markBlockFormat","addMarker:suggestion:insertion","blockName","afterInit","schema","TrackChangesEditing","mapper","editor","locale","registerDescriptionCallback","start","addClass","*Change to:* %0","isBlock","insertParagraph","$text","checkChild","commandName","ELEMENT_PARAGRAPH","has","filter","document","parent","includes","writer","consumable","activeMarkers","nodeAfter","paragraph","span","editing","*Insert:* %0","options","markerName","markerRange","plugins","change","registerElementLabel","model","Paragraph","ck-suggestion-marker-split"];var nx,ox;nx=ex,ox=105,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class ix extends t.Plugin{[sx("0x2b")](){const t=this[sx("0x2f")];if(!t[sx("0xd")][sx("0x3b")](sx("0x11")))return;const e=t[sx("0x30")],n=t[sx("0xd")][sx("0x21")](sx("0x2d"));n._descriptionFactory[sx("0xf")](sx("0x6"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n[sx("0x26")](sx("0x6"),((e,o={})=>{const s=t.model[sx("0x3d")],i=o[sx("0x16")]||s[sx("0x16")],r=Array[sx("0x1d")](i[sx("0x23")]())[sx("0x3c")]((t=>{return e=t,(n=this.editor[sx("0x10")][sx("0x2c")])[sx("0x38")](e[sx("0x0")],sx("0x6"))&&!n[sx("0x1f")](e)&&sx("0x6")!=e[sx("0x25")];var e,n}));t[sx("0x10")][sx("0xe")]((()=>{for(const t of r)n[sx("0x28")](t,{commandName:sx("0x6"),commandParams:[],formatGroupId:sx("0x2a")},_s(t))}))})),n[sx("0x14")][sx("0x31")]((t=>{const{data:n}=t;if(n&&sx("0x6")==n[sx("0x39")])return{type:"format",content:Yo(e,sx("0x34"),Yo(e,sx("0x3a")))}})),n[sx("0x26")](sx("0x36")),t[sx("0x8")][sx("0x1c")].on(sx("0x29"),rx(t),{priority:sx("0x22")}),t[sx("0x18")][sx("0x1c")].on(sx("0x29"),((e,n,o)=>{o[sx("0xa")][sx("0x17")]&&rx(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x22")});const o=n[sx("0x14")];o[sx("0x31")]((n=>{if(sx("0x15")!==n[sx("0x19")])return;const{start:s,end:i}=n[sx("0x1e")]();if(!s.isTouching(i)||!s[sx("0x5")])return;const r=t[sx("0x10")][sx("0x2c")],x=s.nodeAfter;return r.isBlock(x)&&!r.isLimit(x)&&r[sx("0x38")](x,sx("0x37"))?{type:sx("0x15"),content:Yo(e,sx("0x9"),o.getItemLabel(x,1))}:void 0}))}}function rx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const i=t.plugins[sx("0x21")](sx("0x2d")),r=o[sx("0xc")][sx("0x32")],x=o[sx("0xc")][sx("0x24")],a=t[sx("0x10")][sx("0x2c")];if(!r[sx("0x13")](x)||!r.nodeAfter)return;const c=r[sx("0x5")];if(a[sx("0x35")](c)&&!a.isLimit(c)&&a[sx("0x38")](c,sx("0x37"))){if(!s[sx("0x3")][sx("0x27")](o[sx("0xc")],n[sx("0x25")]))return;const t=s[sx("0x2")][sx("0x1b")](sx("0x7"),{class:sx("0x12")}),r=s[sx("0x2e")][sx("0x20")](x);e&&i[sx("0x4")][sx("0x1")](o[sx("0xb")])&&s[sx("0x2")][sx("0x33")]("ck-suggestion-marker--active",t),s[sx("0x2")].insert(r,t),s.mapper[sx("0x1a")](t,o[sx("0xb")])}}}const xx=["getItems","model","change","createRangeOn","document","get","isCollapsed","getRanges","commandName","selection","getAttributes","removeFormat","_descriptionFactory","registerDescriptionCallback","schema","RemoveFormatEditing","editor","enableCommand","TrackChangesEditing","getAttributeProperties","from","*Remove all formatting*","afterInit","plugins","isFormatting"];var ax,cx;ax=xx,cx=272,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class dx extends t.Plugin{[lx("0x0")](){const t=this[lx("0x13")];if(!t[lx("0x1")].has(lx("0x12")))return;const e=t[lx("0x1")][lx("0x8")](lx("0x15"));e[lx("0x14")](lx("0xe"),(n=>{const o=t.model[lx("0x7")][lx("0xc")];o[lx("0x9")]?n():t[lx("0x4")][lx("0x5")]((()=>{const n=Array[lx("0x17")](o[lx("0xa")]());for(const o of n)for(const n of o[lx("0x3")]())ux(n,t[lx("0x4")][lx("0x11")])&&e.markInlineFormat(t[lx("0x4")][lx("0x6")](n),{commandName:lx("0xe"),commandParams:[]})}))})),e[lx("0xf")][lx("0x10")]((e=>{const{data:n}=e;if(n&&lx("0xe")==n[lx("0xb")])return{type:"format",content:Yo(t.locale,lx("0x18"))}}))}}function ux(t,e){for(const[n]of t[lx("0xd")]()){const t=e[lx("0x16")](n);if(t&&t[lx("0x2")])return!0}return!1}const gx=["TrackChangesEditing","discardSelectedSuggestions","enableCommand","discardSuggestion","RestrictedEditingModeEditing","plugins","has","discardAllSuggestions","acceptSuggestion","acceptAllSuggestions","editor","afterInit","get"];var mx,fx;mx=gx,fx=365,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0xa")](){const t=this[hx("0x9")];if(!t.plugins[hx("0x5")](hx("0x3")))return;const e=t[hx("0x4")][hx("0xb")](hx("0xc"));e.enableCommand("goToPreviousRestrictedEditingException"),e[hx("0x1")]("goToNextRestrictedEditingException");const n=t[hx("0x4")][hx("0xb")]("RestrictedEditingModeEditing");n.enableCommand("trackChanges"),n.enableCommand(hx("0x7")),n.enableCommand(hx("0x2")),n[hx("0x1")](hx("0x8")),n[hx("0x1")](hx("0x6")),n[hx("0x1")]("acceptSelectedSuggestions"),n[hx("0x1")](hx("0x0"))}}const bx=["shiftEnter","mapper","locale","init","editing","split","plugins","markerRange","ck-suggestion-marker-","registerElementLabel","addClass","enableCommand","writer","ELEMENT_LINE_BREAK","addMarker:suggestion:deletion","addMarker:suggestion:insertion","model","downcastDispatcher","data","high","editor","name","TrackChangesEditing","ck-suggestion-marker--active","test","markerName","includes","createPositionBefore","merge","showSuggestionHighlights","softBreak","get","getItems"];var Ex,_x;Ex=bx,_x=435,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get requires(){return[xi.ShiftEnter]}[Tx("0x1e")](){const t=this[Tx("0xe")],e=t.plugins[Tx("0x19")](Tx("0x10"));e[Tx("0x5")](Tx("0x1b")),t.editing[Tx("0xb")].on(Tx("0x9"),yx(t),{priority:Tx("0xd")}),t[Tx("0x1f")].downcastDispatcher.on(Tx("0x8"),yx(t),{priority:Tx("0xd")}),t[Tx("0xc")][Tx("0xb")].on("addMarker:suggestion",((e,n,o)=>{o.options[Tx("0x17")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Tx("0x3")](Tx("0x18"),(e=>Yo(t[Tx("0x1d")],Tx("0x7"),e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const i=t[Tx("0x0")][Tx("0x19")](Tx("0x10"));if(!s.consumable[Tx("0x12")](o[Tx("0x1")],n[Tx("0xf")]))return;const r=t[Tx("0xa")];for(const t of o.markerRange[Tx("0x1a")]()){if(!t.is("element","softBreak"))continue;const n="deletion"==o.markerName[Tx("0x20")](":")[1]?Tx("0x16"):Tx("0x20"),x=s[Tx("0x6")].createUIElement("span",{class:Tx("0x2")+n}),a=s[Tx("0x1c")].toViewPosition(r[Tx("0x15")](t));e&&i.activeMarkers[Tx("0x14")](o[Tx("0x13")])&&s[Tx("0x6")][Tx("0x4")](Tx("0x11"),x),s[Tx("0x6")].insert(a,x),s[Tx("0x1c")].bindElementToMarker(x,o[Tx("0x13")])}}}const kx=["has","_descriptionFactory","StandardEditingModeEditing","editor","locale","commands","format","commandParams","getRanges","enableCommand","from","TrackChangesEditing","FORMAT_RESTRICTED_ENABLED","FORMAT_RESTRICTED_DISABLED","model","registerDescriptionCallback","forceValue","markInlineFormat","plugins","get"];var Ax,vx;Ax=kx,vx=424,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{afterInit(){const t=this[Rx("0x13")],e=t[Rx("0xa")],n=t[Rx("0x0")];if(!t[Rx("0xe")][Rx("0x10")](Rx("0x12")))return;const o=t[Rx("0xe")][Rx("0xf")](Rx("0x7")),s="restrictedEditingException",i=t[Rx("0x1")].get(s);o[Rx("0x5")](s,((t,n={})=>{const r=e.document.selection;if(r.isCollapsed)return void t(n);const x=void 0!==n[Rx("0xc")]?n.forceValue:!i.value;e.change((()=>{const t=Array[Rx("0x6")](r[Rx("0x4")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0xd")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0x11")][Rx("0xb")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[Rx("0x3")][0][Rx("0xc")]?{type:Rx("0x2"),content:Yo(n,Rx("0x8"))}:{type:Rx("0x2"),content:Yo(n,Rx("0x9"))}}))}}const Sx=["style","getRanges","commands","element","add","*Format:* %0","locale","document","_getStyleDefinition","get","model","modelElements","name","selection","getAttribute","classes","toLowerCase","_descriptionFactory","forceValue","includes","from","isCollapsed","styleName","style.definitions","find","Style","createRangeOn","plugins","value","format","style:","_getRangesWithClasses","getSelectedBlocks","markBlockFormat","isBlock","push","getAncestors","commandName","registerDescriptionCallback","commandParams","inline"];var Lx,Nx;Lx=Sx,Nx=493,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Sx[t-=0]};class Mx extends t.Plugin{afterInit(){const t=this.editor;if(!t[wx("0x1a")].has(wx("0x18")))return;const e=t[wx("0x1")][wx("0x8")](wx("0x28")),n=t.plugins[wx("0x8")]("TrackChangesEditing"),o=t[wx("0x5")],s=t[wx("0x1a")][wx("0x8")]("DataSchema"),i=t[wx("0x1a")][wx("0x8")]("StyleUtils").normalizeConfig(s,t.config[wx("0x8")](wx("0x16")));n.enableCommand("style",((o,{styleName:r})=>{const x=t[wx("0x9")][wx("0x6")][wx("0xc")],a=this[wx("0x7")](r,i);if(!a)return;if(!e.enabledStyles[wx("0x12")](r))return;if(x[wx("0x14")]&&!a[wx("0x21")])return void o({styleName:r});const c=!e[wx("0x1b")].includes(a[wx("0xb")]);if(a[wx("0x21")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[wx("0x23")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[wx("0x12")](o[wx("0xb")])){n[wx("0x3")](o);break}}return n}(x[wx("0x1f")](),a[wx("0xa")]);t[wx("0x9")].change((()=>{for(const t of e)n[wx("0x20")](t,{commandName:wx("0x28"),commandParams:[{styleName:r,forceValue:c}],formatGroupId:wx("0x1d")+r})}))}else{let e=Array[wx("0x13")](x[wx("0x0")]());if(!c){const n=Array[wx("0x13")](s.getDefinitionsForView(a[wx("0x2")],!1))[0].model,o=[];for(const s of e){const e=this._getRangesWithClasses(t.model,s,a[wx("0xe")],n);o.push(...e)}e=o}t.model.change((()=>{for(const t of e)n.markInlineFormat(t,{commandName:wx("0x28"),commandParams:[{styleName:r,forceValue:c}]})}))}})),n[wx("0x10")][wx("0x25")]((t=>{const{data:e}=t;if(e&&"style"===e[wx("0x24")])return e[wx("0x26")][0][wx("0x11")]?{type:"format",content:Yo(o,wx("0x4"),e[wx("0x26")][0][wx("0x15")][wx("0xf")]())}:{type:wx("0x1c"),content:Yo(o,"*Remove format:* %0",e[wx("0x26")][0][wx("0x15")][wx("0xf")]())}}))}[wx("0x7")](t,e){let n=e.block.find((e=>e[wx("0xb")]===t));return n||(n=e[wx("0x27")][wx("0x17")]((e=>e[wx("0xb")]===t))),n}[wx("0x1e")](t,e,n,o){const s=[];for(const i of e.getItems()){const e=i[wx("0xd")](o);e&&n.every((t=>e[wx("0xe")][wx("0x12")](t)))&&s[wx("0x22")](t[wx("0x19")](i))}return s}}const Ox=["getItems","change:data","start","selectTableColumn","TableEditing","substr","*Remove:* %0","removeTableColumn","_suggestionFactory","enableCommand","TableUtils","type","getChildren","tablePaste","tableRow","deletion","has","rowspan","editor","_descriptionFactory","table","isIntersectingWithRange","removeClass","showSuggestionHighlights","addClass","oldRange","left","getColumnIndexes","_tableSuggestions","*Insert:* %0","createRangeOn","colspan","element","order","from","plugins","highest","afterInit","nodeBefore","span","getFirstRange","isArray","subType","position","minRow","createTableWalker","createRangeIn","end","selection","isTouching","options","getAttribute","includes","name","nodeAfter","_getCoordsForCells","addRange","_getSuggestionCoords","_acceptFormatSuggestionCallbackFactory","push","data","getRanges","fromRange","setSelection","MAX_SAFE_INTEGER","$textProxy","isInContent","startsWith","getCellLocation","toLowerCase","ELEMENT_TABLE_ROW_WITH_TEXT","insertTableColumnLeft","_tablePostFixingSubtypes","tableColumn","insertTableRowBelow","TrackChangesEditing","commands","low","registerElementLabel","map","addMarker:suggestion","enqueueChange","getChangedMarkers","getContainedElement","tableCell","registerCustomCallback","execute","some","ELEMENT_TABLE_WITH_TEXT","min","removeTableRow","markMultiRangeInsertion","getRowIndexes","ELEMENT_TABLE_COLUMN","$graveyard","rootName","maxRow","values","discard","last","getChanges","detach","root","ELEMENT_TABLE_COLUMN_WITH_TEXT","downcastDispatcher","isEqual","differ","ELEMENT_TABLE_ROW","join","filter","insertTableRowAbove","toViewElement","classes","markMultiRangeDeletion","insertTable","get","length","change","getSelectionAffectedTableCells","_setupColumnsRowsFixing","locale","document","ELEMENT_TABLE","first","hasAttribute","findAncestor","MIN_SAFE_INTEGER","model","insertion","registerDescriptionCallback"];var Fx,Px;Fx=Ox,Px=290,function(t){for(;--t;)Fx.push(Fx.shift())}(++Px);const Dx=function(t,e){return Ox[t-=0]};class Bx extends t.Plugin{constructor(t){super(t),this[Dx("0x2a")]=[Dx("0x72"),Dx("0x2b")],this[Dx("0x80")]=new Set}[Dx("0x7")](){const t=this[Dx("0x76")],e=t[Dx("0x61")][Dx("0x5b")][Dx("0x12")];if(!t.plugins[Dx("0x74")](Dx("0x68")))return;const n=t[Dx("0x5a")],o=t[Dx("0x5")][Dx("0x55")](Dx("0x2d")),s=t[Dx("0x5")][Dx("0x55")](Dx("0x6e"));o[Dx("0x77")][Dx("0x30")](Dx("0x78"),(t=>Yo(n,Dx("0x5c"),t))),this[Dx("0x59")](),o[Dx("0x6d")](Dx("0x54")),o[Dx("0x6d")]("selectTableRow"),o.enableCommand(Dx("0x67"));for(const n of[Dx("0x50"),Dx("0x2c")]){const i=t[Dx("0x2e")][Dx("0x55")](n);o[Dx("0x6d")](n,(n=>{t[Dx("0x61")][Dx("0x57")]((t=>{n();const r="above"===i[Dx("0x3")],x=s[Dx("0x58")](e),a=s.getRowIndexes(x),c=r?a[Dx("0x5d")]-1:a[Dx("0x45")]+1,l=x[0].findAncestor(Dx("0x78")),d=s[Dx("0xf")](l,{startRow:c,endRow:c}),u=Array[Dx("0x4")](d)[Dx("0x31")]((e=>t[Dx("0x0")](e.cell)));o.markMultiRangeInsertion(u,Dx("0x72"))}))}))}for(const n of[Dx("0x29"),"insertTableColumnRight"]){const i=t[Dx("0x2e")].get(n);o[Dx("0x6d")](n,(n=>{t[Dx("0x61")].change((t=>{n();const r=Dx("0x7e")===i[Dx("0x3")],x=s[Dx("0x58")](e),a=s[Dx("0x7f")](x),c=r?a[Dx("0x5d")]-1:a[Dx("0x45")]+1,l=x[0][Dx("0x5f")]("table"),d=s[Dx("0xf")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Dx("0x4")](d)[Dx("0x31")]((e=>t[Dx("0x0")](e.cell)));o[Dx("0x3d")](u,Dx("0x2b"))}))}))}for(const n of[Dx("0x3c"),Dx("0x6b")]){const i=n[Dx("0x69")](11),r=i[Dx("0x27")](),x=r[Dx("0x69")](0,3)+"span",a=Dx("0x78")+i,c="min"+i,l="max"+i;o.enableCommand(n,(()=>{t[Dx("0x61")][Dx("0x57")]((t=>{const i=s[Dx("0x58")](e),d=i[0].findAncestor("table");let u;if(Dx("0x3c")==n){const t=s[Dx("0x3e")](i);u={startRow:t[Dx("0x5d")],endRow:t[Dx("0x45")],includeAllSlots:!0}}else{const t=s[Dx("0x7f")](i);u={startColumn:t[Dx("0x5d")],endColumn:t[Dx("0x45")],includeAllSlots:!0}}const g=s[Dx("0xf")](d,u),m=Array[Dx("0x4")](g)[Dx("0x31")]((({cell:t})=>t)),f=jx(m[Dx("0x4f")]((t=>t[Dx("0x5e")](x)))),h=jx(m[Dx("0x4f")]((t=>!t[Dx("0x5e")](x))))[Dx("0x31")]((e=>t[Dx("0x0")](e))),p=o[Dx("0x53")](h,a);if(p&&("tableRow"==p[Dx("0xc")]||"tableColumn"==p.subType)){const e=this[Dx("0x1b")](p);for(const n of f){const o=t[Dx("0x0")](n),i=s.getCellLocation(n),a=n.getAttribute(x)-1,d=e[c],u=e[l];d<=i[r]&&i[r]+a<=u&&p[Dx("0x1a")](o)}}}))}))}function i(n){const o=Array[Dx("0x4")](e[Dx("0x1f")]()).map((t=>r.LiveRange[Dx("0x20")](t)));t[Dx("0x61")][Dx("0x57")]((e=>{const s=e.batch;n=n[Dx("0x4f")]((t=>"$graveyard"!=t[Dx("0x48")][Dx("0x41")])),e[Dx("0x21")](n),t.commands[Dx("0x55")](Dx("0x3c")).refresh(),t[Dx("0x38")](Dx("0x3c"),{forceDefaultExecution:!0}),t.model[Dx("0x33")]((()=>{t[Dx("0x61")].enqueueChange(s,(t=>{const e=o[Dx("0x4f")]((t=>"$graveyard"!=t[Dx("0x48")][Dx("0x41")]));e[Dx("0x56")]>0&&t[Dx("0x21")](e);for(const t of o)t.detach()}))}))}))}function a(n){t.model[Dx("0x57")]((o=>{const s=Array[Dx("0x4")](e.getRanges())[Dx("0x31")]((t=>r.LiveRange[Dx("0x20")](t))),i=[];for(const t of n)for(const e of t[Dx("0x64")]({shallow:!0}))i[Dx("0x1d")](e);for(const e of i)Dx("0x40")!=e[Dx("0x48")][Dx("0x41")]&&(o[Dx("0x21")](o.createPositionAt(e,0)),t[Dx("0x2e")][Dx("0x55")](Dx("0x6b")).refresh(),t[Dx("0x38")](Dx("0x6b"),{forceDefaultExecution:!0}));const x=s[Dx("0x4f")]((t=>Dx("0x40")!=t[Dx("0x48")].rootName));x[Dx("0x56")]>0&&o[Dx("0x21")](x);for(const t of s)t[Dx("0x47")]()}))}function c(t,e){return e.every((e=>t[Dx("0x39")]((t=>t.end[Dx("0x4b")](e[Dx("0x66")])||e[Dx("0x11")][Dx("0x4b")](t[Dx("0x66")])))))}function l(t,e){return t[Dx("0x39")]((t=>e[Dx("0x39")]((e=>t[Dx("0x11")][Dx("0x13")](e.start)))))}t[Dx("0x1e")][Dx("0x4a")].on(Dx("0x32"),((t,e,n)=>{if(!n[Dx("0x14")][Dx("0x7b")])return;const o=e.item;if(!o)return;const s=n.mapper[Dx("0x51")](o);function i(t){return Array[Dx("0xb")](t)?t:[t]}s&&Dx("0x36")===o.name&&(0,x.setHighlightHandling)(s,n.writer,((t,e,n)=>n[Dx("0x7c")](i(e[Dx("0x52")]),t)),((t,e,n)=>n[Dx("0x7a")](i(e[Dx("0x52")]),t)))}),{priority:Dx("0x6")}),o[Dx("0x77")][Dx("0x63")]((t=>{if(Dx("0x62")!=t[Dx("0x6f")]&&Dx("0x73")!=t[Dx("0x6f")])return;const e=t[Dx("0x35")]();if(null!=e&&e.is(Dx("0x2"),Dx("0x78"))){if(Dx("0x62")==t.type){const e=t[Dx("0x64")]().filter((t=>t.is("$textProxy")))[Dx("0x31")]((t=>t[Dx("0x1e")]));if(e[Dx("0x56")])return{type:"insertion",content:Yo(n,Dx("0x81"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(Dx("0x73")==t[Dx("0x6f")]){const e=t.getItems()[Dx("0x4f")]((t=>t.is(Dx("0x23"))))[Dx("0x31")]((t=>t.data));if(e[Dx("0x56")])return{type:Dx("0x73"),content:Yo(n,Dx("0x6a"),Yo(n,Dx("0x3a"),'"'+e[Dx("0x4e")](" ")+'"'))}}}})),o[Dx("0x77")][Dx("0x63")]((t=>{if(Dx("0x72")==t[Dx("0xc")]){const e=t[Dx("0x64")]().filter((t=>t.is(Dx("0x23"))))[Dx("0x31")]((t=>t.data)),o=this[Dx("0x1b")](t),s=o[Dx("0x42")]-o[Dx("0xe")]+1;if(Dx("0x62")==t[Dx("0x6f")])return e[Dx("0x56")]?{type:Dx("0x62"),content:Yo(n,Dx("0x81"),Yo(n,Dx("0x28"),[s,'"'+e[Dx("0x4e")](" ")+'"']))}:{type:Dx("0x62"),content:Yo(n,Dx("0x81"),Yo(n,Dx("0x4d"),s))};if(Dx("0x73")==t[Dx("0x6f")])return e[Dx("0x56")]?{type:"deletion",content:Yo(n,Dx("0x6a"),Yo(n,Dx("0x28"),[s,'"'+e[Dx("0x4e")](" ")+'"']))}:{type:Dx("0x73"),content:Yo(n,Dx("0x6a"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if("tableColumn"==t[Dx("0xc")]){const e=t[Dx("0x64")]()[Dx("0x4f")]((t=>t.is("$textProxy")))[Dx("0x31")]((t=>t[Dx("0x1e")])),o=this[Dx("0x1b")](t),s=o.maxColumn-o.minColumn+1;if(Dx("0x62")==t[Dx("0x6f")])return e.length?{type:Dx("0x62"),content:Yo(n,Dx("0x81"),Yo(n,Dx("0x49"),[s,'"'+e[Dx("0x4e")](" ")+'"']))}:{type:"insertion",content:Yo(n,Dx("0x81"),Yo(n,Dx("0x3f"),s))};if("deletion"==t[Dx("0x6f")])return e.length?{type:Dx("0x73"),content:Yo(n,"*Remove:* %0",Yo(n,Dx("0x49"),[s,'"'+e.join(" ")+'"']))}:{type:Dx("0x73"),content:Yo(n,"*Remove:* %0",Yo(n,Dx("0x3f"),s))}}})),o[Dx("0x6c")][Dx("0x37")](Dx("0x62"),Dx("0x72"),Dx("0x44"),i),o[Dx("0x6c")][Dx("0x37")](Dx("0x73"),Dx("0x72"),"accept",i),o._suggestionFactory.registerCustomCallback(Dx("0x62"),"tableColumn","discard",a),o[Dx("0x6c")][Dx("0x37")](Dx("0x73"),Dx("0x2b"),"accept",a),o._suggestionFactory[Dx("0x37")](Dx("0x62"),Dx("0x2b"),Dx("0x4e"),c),o[Dx("0x6c")][Dx("0x37")](Dx("0x73"),Dx("0x2b"),Dx("0x4e"),c),o[Dx("0x6c")][Dx("0x37")](Dx("0x62"),Dx("0x72"),Dx("0x4e"),l),o[Dx("0x6c")].registerCustomCallback(Dx("0x73"),Dx("0x72"),"join",l)}[Dx("0x1c")](){const t=this[Dx("0x76")],e=t[Dx("0x61")][Dx("0x5b")][Dx("0x12")];return(n,o)=>{t.model[Dx("0x57")]((s=>{const{commandName:i,commandParams:x}=o;let a=n[0][Dx("0x11")][Dx("0x8")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start[Dx("0x18")]);const c=s[Dx("0x10")](a);if(Dx("0x40")==c.root[Dx("0x41")])return;const l=Array[Dx("0x4")](e.getRanges())[Dx("0x31")]((t=>r.LiveRange.fromRange(t)));s[Dx("0x21")](c),t[Dx("0x2e")].get(i).refresh(),x[Dx("0x1d")]({forceDefaultExecution:!0}),t[Dx("0x38")](i,...x);const d=l[Dx("0x4f")]((t=>Dx("0x40")!=t.root.rootName));d[Dx("0x56")]>0&&s.setSelection(d);for(const t of l)t[Dx("0x47")]()}))}}_getCoordsForCells(t){const e=this[Dx("0x76")][Dx("0x5")][Dx("0x55")]("TableUtils");let n=Number.MAX_SAFE_INTEGER,o=Number[Dx("0x60")],s=Number[Dx("0x22")],i=Number.MIN_SAFE_INTEGER;for(const r of t){if(Dx("0x40")==r[Dx("0x48")][Dx("0x41")])continue;const{row:t,column:x}=e[Dx("0x26")](r),a=r.hasAttribute(Dx("0x75"))?r[Dx("0x15")](Dx("0x75"))-1:0,c=r[Dx("0x5e")]("colspan")?r[Dx("0x15")](Dx("0x1"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,i=x+c>i?x+c:i}return{minRow:n,maxRow:o,minColumn:s,maxColumn:i}}[Dx("0x59")](){const t=this.editor,e=t[Dx("0x5")][Dx("0x55")]("TrackChangesEditing"),n=t.plugins[Dx("0x55")]("TableUtils");t[Dx("0x61")][Dx("0x5b")].on(Dx("0x65"),(()=>{const n=Array[Dx("0x4")](t[Dx("0x61")].document[Dx("0x4c")][Dx("0x34")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:i}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Dx("0x7d")])continue;const r=e.getSuggestion(s);this[Dx("0x2a")][Dx("0x16")](i)&&this[Dx("0x80")].add(r)}}),{priority:Dx("0x2f")});const o=(t,e)=>{let o=!1;const s=e[Dx("0x0")](t),i=t[Dx("0x5f")]("table"),r=n[Dx("0x26")](t);for(const e of this[Dx("0x80")]){const n=e[Dx("0xc")],x=n[Dx("0x25")](Dx("0x71")),a=n[Dx("0x69")](x?10:5),c=a[Dx("0x27")](),l=c[Dx("0x69")](0,3)+Dx("0x9"),d=Dx("0x3b")+a,u="max"+a;if(!e[Dx("0x24")])continue;if(i!=e[Dx("0xa")]()[Dx("0x66")][Dx("0x5f")](Dx("0x78")))continue;if(e[Dx("0x79")](s))continue;const g=t[Dx("0x5e")](l)?t[Dx("0x15")](l)-1:0,m=this[Dx("0x1b")](e),f=m[d],h=m[u];f<=r[c]&&r[c]+g<=h&&(e[Dx("0x1a")](s),o=!0)}return o};t[Dx("0x61")][Dx("0x5b")].registerPostFixer((e=>{let n=!1;for(const s of t[Dx("0x61")][Dx("0x5b")][Dx("0x4c")][Dx("0x46")]())if("insert"==s.type)if("tableRow"==s[Dx("0x17")])for(const t of s.position[Dx("0x18")][Dx("0x70")]())n=n||o(t,e);else Dx("0x36")==s.name&&(n=n||o(s[Dx("0xd")][Dx("0x18")],e));return n}))}[Dx("0x1b")](t){return this[Dx("0x19")](t[Dx("0x1f")]().map((t=>t[Dx("0x66")][Dx("0x18")])))}}function jx(t){return Array[Dx("0x4")](new Set(t)[Dx("0x43")]())}const Ux=["getAncestors","createTableWalker","commandName","accept","enableCommand","find","splitTableCellHorizontally","*Split cell:* horizontally","mergeTableCells","markBlockFormat","table","filter","size","isEnabled","_tablePostFixingSubtypes","stop","highest","get","execute","findAncestor","trackChanges","rootName","setSelection","commands","author","low","mergeTableCellUp","format","length","element","_isForcedDefaultExecutionBlock","formatBlock","set:isEnabled","editor","getRanges","selection","document","change","TableEditing","map","$graveyard","type","_areSelectedCellsMergable","getSelectionAffectedTableCells","*Split cell:* vertically","locale","add","registerDescriptionCallback","insertion","mergeTableCellLeft","cell","_descriptionFactory","tableCell","horizontally","plugins","_areMergableCells","from","afterInit","createRangeOn","mergeTableCellRight","isInContent","requires","model","getSuggestions","getFirstPosition","direction","markMultiRangeBlockFormat","forceDefaultExecution","TrackChangesEditing","_suggestionFactory","splitTableCellVertically","value","registerCustomCallback","return","*Merge cells*","containsRange","TableUtils","deletion","mergeTableCellDown","has"];var Gx,Hx;Gx=Ux,Hx=307,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x4a")](){return[Bx]}[zx("0x46")](){const t=this[zx("0x2e")],e=t.model[zx("0x31")][zx("0x30")],n=t[zx("0x3a")];if(!t[zx("0x43")][zx("0xc")](zx("0x33")))return;const o=t[zx("0x43")][zx("0x1e")](zx("0x1")),s=t[zx("0x43")][zx("0x1e")](zx("0x9")),i=t.plugins.get(Bx);i[zx("0x1b")].push("mergeTableCells"),o[zx("0x11")]("mergeTableCells",(()=>{const e=s[zx("0x38")](t.model.document.selection);t[zx("0x4b")][zx("0x32")]((()=>{o[zx("0x4f")](e,{commandName:"mergeTableCells",commandParams:[]},[],zx("0x15"))}))})),t.commands[zx("0x1e")](zx("0x15")).on(zx("0x1f"),((e,n)=>{t.commands[zx("0x1e")](zx("0x21"))[zx("0x4")]&&(n[zx("0x29")]>0&&n[n[zx("0x29")]-1]&&n[n[zx("0x29")]-1][zx("0x0")]||o[zx("0x2b")]||this[zx("0x37")]()||e[zx("0x1c")]())}),{priority:zx("0x1d")});for(const e of["mergeTableCellUp","mergeTableCellRight",zx("0xb"),zx("0x3e")]){const n=t.commands[zx("0x1e")](e);o[zx("0x11")](e,(()=>{const e=t[zx("0x4b")].document[zx("0x30")][zx("0x4d")]()[zx("0xd")]()[zx("0x12")]((t=>t.is("element",zx("0x41")))),s=n.value;t.model[zx("0x32")]((()=>{o[zx("0x4f")]([e,s],{commandName:"mergeTableCells",commandParams:[]},[],zx("0x15"))}))}))}for(const e of["splitTableCellVertically",zx("0x13")]){const n=t[zx("0x24")][zx("0x1e")](e);o[zx("0x11")](e,(()=>{const i=s.getSelectionAffectedTableCells(t[zx("0x4b")].document.selection)[0],r=i[zx("0x20")](zx("0x17")),{column:x,row:a}=s.getCellLocation(i);let c=[];if(zx("0x42")==n[zx("0x4e")]){const t=s.createTableWalker(r,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[zx("0x45")](t).map((t=>t[zx("0x3f")]))}else{const t=s[zx("0xe")](r,{column:x,includeAllSlots:!0});c=Array[zx("0x45")](t)[zx("0x34")]((t=>t[zx("0x3f")]))}t.model[zx("0x32")]((t=>{o[zx("0x16")](t[zx("0x47")](i),{commandName:e,commandParams:[]},c,e)}))}))}o[zx("0x40")][zx("0x3c")]((t=>{const{data:e}=t;if(e)return zx("0x15")==e.commandName?{type:zx("0x28"),content:Yo(n,zx("0x7"))}:void 0})),o[zx("0x40")][zx("0x3c")]((t=>{const{data:e}=t;if(e)return zx("0x3")==e.commandName?{type:zx("0x28"),content:Yo(n,zx("0x39"))}:"splitTableCellHorizontally"==e[zx("0xf")]?{type:zx("0x28"),content:Yo(n,zx("0x14"))}:void 0}));const x=i._acceptFormatSuggestionCallbackFactory();for(const t of[zx("0x27"),zx("0x48"),zx("0xb"),"mergeTableCellLeft"])o[zx("0x2")][zx("0x5")](zx("0x2c"),t,"accept",x);for(const t of[zx("0x3"),"splitTableCellHorizontally"])o[zx("0x2")][zx("0x5")]("formatBlock",t,"accept",x);o[zx("0x2")].registerCustomCallback(zx("0x2c"),zx("0x15"),zx("0x10"),(n=>{t[zx("0x4b")][zx("0x32")]((o=>{const s=Array[zx("0x45")](e[zx("0x2f")]())[zx("0x34")]((t=>r.LiveRange.fromRange(t)));o[zx("0x23")](n),t[zx("0x24")].get("mergeTableCells").refresh(),t[zx("0x1f")]("mergeTableCells",{forceDefaultExecution:!0});const i=s[zx("0x18")]((t=>zx("0x35")!=t.root[zx("0x22")]));i[zx("0x29")]>0&&o[zx("0x23")](i);for(const t of s)t.detach()}))}));for(const e of[zx("0x27"),"mergeTableCellDown",zx("0x3e"),zx("0x48")]){const n=t.commands[zx("0x1e")](e);n.on(zx("0x2d"),((e,o,s)=>{if(s){const o=t[zx("0x4b")].document[zx("0x30")][zx("0x4d")]()[zx("0xd")]()[zx("0x12")]((t=>t.is(zx("0x2a"),zx("0x41"))));this[zx("0x44")](n.value,o)||(e[zx("0x6")]=!1,e[zx("0x1c")]())}}),{priority:zx("0x26")})}}[zx("0x37")](){const t=this[zx("0x2e")].commands[zx("0x1e")](zx("0x15")),e=this[zx("0x2e")].plugins[zx("0x1e")](zx("0x9"));if(!t[zx("0x1a")])return!1;const n=e[zx("0x38")](this.editor[zx("0x4b")][zx("0x31")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x44")](t,e))return!1;return!0}[zx("0x44")](t,e){const n=this[zx("0x2e")].plugins[zx("0x1e")]("TrackChangesEditing"),o=this[zx("0x2e")][zx("0x4b")].createRangeOn(t),s=this.editor[zx("0x4b")][zx("0x47")](e),i=new Set,r=new Set;for(const t of n[zx("0x4c")]())if((zx("0x3d")==t[zx("0x36")]||zx("0xa")==t.type||zx("0x15")==t.subType)&&t[zx("0x49")])for(const e of t.getRanges())e[zx("0x8")](o,!0)&&i.add(t[zx("0x36")]+":"+t[zx("0x25")].id),e[zx("0x8")](s,!0)&&r[zx("0x3b")](t[zx("0x36")]+":"+t[zx("0x25")].id);if(i.size!=r[zx("0x19")])return!1;for(const t of i)if(!r[zx("0xc")](t))return!1;return!0}}const Vx=["accept","cell","getSuggestion","ck-suggestion-marker--active","get","registerCustomCallback","FORMAT_REGULAR_COLUMN","createPositionAfter","activeMarkers","consume","unbindElementFromMarkerName","setTableRowHeader","commandParams","removeMarker:suggestion","table","first","isBefore","bindElementToMarker","headingColumns","setAttribute","toViewElement","end","_acceptFormatSuggestionCallbackFactory","markerNameToElements","selection","stop","data","ck-suggestion-marker-","createPositionBefore","showSuggestionHighlights","_descriptionFactory","enableCommand","addMarker:suggestion","getChild","last","downcastDispatcher","consumable","includes","commandName","FORMAT_HEADER_COLUMN","requires","getSelectionAffectedTableCells","parent","editing","FORMAT_HEADER_ROW","removeClass","options","TableEditing","nodeAfter","markerName","writer","formatBlock","item","change","TrackChangesEditing","_splitMarkerName","value","highest","format","getRowIndexes","_suggestionFactory","childCount","markerRange","markBlockFormat","setTableColumnHeader","start","removeAttribute","index","createRange","model","forceValue","getAttribute","commands","afterInit","headingRows","findAncestor","getCellLocation","document","data-suggestion","mapper","locale","plugins","TableUtils"];var Kx,qx;Kx=Vx,qx=436,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]};class $x extends t.Plugin{static get[Xx("0x13")](){return[Bx]}[Xx("0x34")](){const t=this.editor;if(!t[Xx("0x3c")].has(Xx("0x1a")))return;const e=t[Xx("0x3b")],n=t.plugins[Xx("0x42")](Xx("0x21")),o=t.plugins[Xx("0x42")]("TableUtils"),s=t[Xx("0x3c")][Xx("0x42")](Bx);function i({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,i,r)=>{const{type:x,id:a}=n[Xx("0x22")](i[Xx("0x1c")]),c=n[Xx("0x40")](a);if(!c[Xx("0x5")]||Xx("0x2b")!=c[Xx("0x5")][Xx("0x11")])return;if(i[Xx("0x1f")])return void s[Xx("0x4")]();if(!r[Xx("0xf")][Xx("0x47")](i[Xx("0x29")],s.name))return;const l=i.markerRange[Xx("0x2c")][Xx("0x1b")],d=i[Xx("0x29")][Xx("0x0")].nodeBefore,u=l[Xx("0x15")][Xx("0x15")],{column:g}=o[Xx("0x37")](l),{column:m}=o[Xx("0x37")](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[Xx("0x3f")],c=r[Xx("0x3a")][Xx("0x52")](s);r[Xx("0x1d")].addClass(Xx("0x6")+x,c),e&&r[Xx("0x1d")][Xx("0x51")]("data-suggestion",a,c),r[Xx("0x3a")][Xx("0x4f")](c,i[Xx("0x1c")]),t&&(n[Xx("0x46")][Xx("0x10")](i.markerName)?r[Xx("0x1d")].addClass(Xx("0x41"),c):r.writer[Xx("0x18")]("ck-suggestion-marker--active",c))}}}}n[Xx("0xa")](Xx("0x49"),((e,s)=>{const i=o[Xx("0x14")](t[Xx("0x30")][Xx("0x38")].selection),r=o[Xx("0x26")](i),x=i[0].findAncestor("table"),a=x[Xx("0x32")](Xx("0x35"))||0,c=s&&null!==s[Xx("0x31")]?s[Xx("0x31")]:!t.commands[Xx("0x42")](Xx("0x49"))[Xx("0x23")],l=c?r[Xx("0xd")]:r[Xx("0x4d")],d=x[Xx("0xc")](l);let u;if(c){const e=x[Xx("0xc")](a);if(d[Xx("0x2e")]<e[Xx("0x2e")])return;u=t[Xx("0x30")][Xx("0x2f")](t[Xx("0x30")].createPositionBefore(e[Xx("0xc")](0)),t[Xx("0x30")][Xx("0x45")](d.getChild(d.childCount-1)))}else{const e=x[Xx("0xc")](a-1);if(!e)return;u=t[Xx("0x30")][Xx("0x2f")](t[Xx("0x30")][Xx("0x7")](d.getChild(0)),t[Xx("0x30")][Xx("0x45")](e[Xx("0xc")](e[Xx("0x28")]-1)))}t[Xx("0x30")][Xx("0x20")]((()=>{n[Xx("0x2a")](u,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],Xx("0x49"))}))})),n[Xx("0xa")](Xx("0x2b"),((e,o)=>{const s=t[Xx("0x3c")].get(Xx("0x3d")),i=s[Xx("0x14")](t[Xx("0x30")][Xx("0x38")][Xx("0x3")]),r=s.getColumnIndexes(i),x=i[0][Xx("0x36")](Xx("0x4c")),a=x.getAttribute(Xx("0x50"))||0,c=o&&null!==o[Xx("0x31")]?o[Xx("0x31")]:!t[Xx("0x33")][Xx("0x42")](Xx("0x2b")).value;let l;const d=x.getChild(0),u=c?r.last:r[Xx("0x4d")],g=s.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][Xx("0x3f")];if(c){const e=d[Xx("0xc")](a);if(m[Xx("0x4e")](e))return;l=t[Xx("0x30")][Xx("0x2f")](t[Xx("0x30")][Xx("0x7")](e),t.model[Xx("0x45")](m))}else{const e=d[Xx("0xc")](a-1);if(!e)return;l=t[Xx("0x30")][Xx("0x2f")](t[Xx("0x30")][Xx("0x7")](m),t[Xx("0x30")][Xx("0x45")](e))}t[Xx("0x30")].change((()=>{n[Xx("0x2a")](l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],Xx("0x2b"))}))})),t[Xx("0x16")][Xx("0xe")].on(Xx("0xb"),i(),{priority:Xx("0x24")}),t.data[Xx("0xe")].on(Xx("0xb"),((t,e,n)=>{n[Xx("0x19")][Xx("0x8")]&&i({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x24")}),t[Xx("0x16")][Xx("0xe")].on(Xx("0x4b"),((t,e,o)=>{const{type:s,id:i}=n[Xx("0x22")](e.markerName),r=n[Xx("0x40")](i);if(!r[Xx("0x5")]||Xx("0x2b")!=r[Xx("0x5")].commandName)return;const x=o[Xx("0x3a")][Xx("0x2")](e.markerName);if(x)for(const t of x)o[Xx("0x1d")][Xx("0x18")](Xx("0x6")+s,t),o[Xx("0x1d")].removeClass(Xx("0x41"),t),o[Xx("0x1d")][Xx("0x2d")](Xx("0x39"),t),o[Xx("0x3a")][Xx("0x48")](t,e.markerName)}),{priority:Xx("0x24")}),n[Xx("0x9")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(Xx("0x49")==n[Xx("0x11")]){const t=n.commandParams[0][Xx("0x31")];return o(Yo(e,t?Xx("0x17"):"FORMAT_REGULAR_ROW"))}if(Xx("0x2b")==n[Xx("0x11")]){const t=n[Xx("0x4a")][0].forceValue;return o(Yo(e,Xx(t?"0x12":"0x44")))}}function o(t){return{type:Xx("0x25"),content:Yo(e,"*Format:* %0",t)}}}));const r=s[Xx("0x1")]();n[Xx("0x27")][Xx("0x43")](Xx("0x1e"),Xx("0x49"),"accept",r),n._suggestionFactory.registerCustomCallback(Xx("0x1e"),Xx("0x2b"),Xx("0x3e"),r)}}const Jx=["suggestion:formatBlock:tablePasteCell","getColumns","next","getRange","TrackChangesEditing","nodeAfter","elementToElement","markers","root","low","for","_tablePostFixingSubtypes","some","remove","commands","registerCustomCallback","editingDowncast","fromEntries","tableCell","end","columnInsertionIndexes","paragraph","row","formatBlock","hasSuggestion","insert","getMarkers","removeMarker","trackChanges","first","last","high","getAllAdjacentSuggestions","ck-suggestion-marker--active","suggestion-td","getRanges","table","move","suggestionLoaded","createRangeIn","insertion","every","createRangeOn","author","return","forceDefaultExecution","tableCellBorderWidth","filter","includes","TableClipboard","newRange","tableCellPadding","requires","removeColumns","containsRange","endRow","position","stop","getSuggestion","value","getColumnIndexes","entries","registerDescriptionCallback","TableUtils","plugins","createPositionBefore","setAttributes","subType","$graveyard","batch","getItems","getSelectionAffectedTableCells","_suggestionFactory","findAncestor","cell","endColumn","conversion","removeMarkers","unwrap","start","rowInsertionIndexes","suggestion","startsWith","has","createTableWalker","content","isInContent","tableCellSuggestion","nextSibling","tablePasteChainId","ck-suggestion-marker-insertion","editor","rowInsertionRanges","getRowIndexes","columnInsertionRanges","map","afterInit","tableCellHorizontalAlignment","from","Users","markerName","insertionRanges","previous","element","markerToHighlight","document","tablePasteRow","differ","getChanges","getAttributes","_createdBatches","oldRange","createElement","getSuggestionCallback","add","getTableIfOnlyTableInContent","dataDowncast","tablePaste","isEmpty","tablePasteColumn","accept","_getCoordsForCells","getChangedMarkers","attributes","markerAttributes","name","tablePasteCell","editing","previousSibling","getChild","view","schema","markMultiRangeBlockFormat","getContainedElement","get","redo","locale","model","_splitMarkerName","markMultiRangeInsertion","_descriptionFactory","getShiftedBy","change","cells","push","isEqual","createRange","registerPostFixer","reduce","join","getChildren","set","getSuggestions","markMultiRangeDeletion","rootName","discard","_isForcedDefaultExecutionBlock","columns","deletion","*Replace table cells*","length"];var Qx,Zx;Qx=Jx,Zx=178,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=[Yx("0x1d"),"tableCellBorderColor","tableCellBorderStyle",Yx("0x50"),"tableCellVerticalAlignment","tableCellBackgroundColor",Yx("0x22")],ea=Object[Yx("0x0")](ta[Yx("0x4e")]((t=>[t,null])));class na extends t.Plugin{static get[Yx("0x23")](){return[Bx]}[Yx("0x4f")](){const t=this[Yx("0x4a")];if(!t[Yx("0x2f")].has("TableClipboard"))return;const n=t.plugins[Yx("0x75")](Yx("0x94")),o=t.plugins[Yx("0x75")](Yx("0x2e")),s=t[Yx("0x2f")][Yx("0x75")](Bx),i=t[Yx("0x2f")][Yx("0x75")](Yx("0x20"));s[Yx("0x9b")][Yx("0x7f")](Yx("0x59"),Yx("0x66")),t[Yx("0x78")][Yx("0x72")].register("tableCellSuggestion",{allowIn:Yx("0x1"),allowContentOf:"tableCell",isLimit:!0}),t.conversion[Yx("0x96")]({model:Yx("0x46"),view:Yx("0x11")});let r=null;t[Yx("0x78")].on("insertContent",((s,x)=>{const[a,c]=x,l=x[x[Yx("0x8f")]-1];l&&l[Yx("0x1c")]||n[Yx("0x8b")]||this.editor.commands[Yx("0x75")](Yx("0xb"))[Yx("0x2a")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const i=s[Yx("0x62")](t,n);if(!i||!sa(i,void 0,o))return!1;const r=o[Yx("0x36")](n[Yx("0x58")].selection);if(!r[Yx("0x8f")])return!1;const x=r[0][Yx("0x38")](Yx("0x13")),a=o[Yx("0x4c")](r),c=o[Yx("0x2b")](r),l={startRow:a[Yx("0xc")],endRow:a[Yx("0xd")],startColumn:c.first,endColumn:c[Yx("0xd")]};return 1==r[Yx("0x8f")]&&(l[Yx("0x26")]+=o.getRows(i)-1,l[Yx("0x3a")]+=o[Yx("0x91")](i)-1),sa(x,l,o)}(a,c,t[Yx("0x78")],o,i)&&(s[Yx("0x28")](),r={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model.change((()=>{t[Yx("0x78")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=r;s[Yx("0x8f")]&&n[Yx("0x7a")](s,Yx("0x59"),{tablePasteChainId:o}),i[Yx("0x8f")]&&n[Yx("0x7a")](i,"tablePasteColumn",{tablePasteChainId:o}),a.length&&n.markMultiRangeInsertion(a,Yx("0x64"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x8f")]&&n[Yx("0x88")](c,Yx("0x64"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Yx("0x73")](l[Yx("0x4e")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(d){const e=d[Yx("0x9")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const i=t[Yx("0x78")][Yx("0x19")](o),r=e.find((t=>t[Yx("0x93")]().isEqual(i)));r&&n[Yx("0x7f")]([r[Yx("0x6c")],s])}n[Yx("0x8f")]&&d.setAttribute("markerAttributes",Object[Yx("0x0")](n))}r=null})))}),{priority:e.priorities.high+10}),t[Yx("0x2f")].get(Yx("0x20")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!r)return;t[Yx("0x28")]();const i=n[Yx("0x39")],x=o,a=oa(i),c=oa(x);t[Yx("0x1b")]=i;let l=null,d=null;if(c||a)if(a&&!c){s.remove(i[Yx("0x70")](0));for(const t of Array.from(x[Yx("0x85")]()))s[Yx("0x8")](t,i,Yx("0x2"));const t=r[Yx("0x3f")][Yx("0x1f")](n[Yx("0x5")]),e=r[Yx("0x3")].includes(n.column);t||e||(l=s[Yx("0x16")](i))}else c&&!a&&(d=s[Yx("0x16")](i));else{const t=s[Yx("0x5f")]("tableCellSuggestion"),e=s[Yx("0x5f")]("tableCellSuggestion");s.wrap(s[Yx("0x16")](i),e),s[Yx("0x8")](t,i,0);for(const e of Array[Yx("0x51")](x[Yx("0x85")]()))s[Yx("0x8")](e,t,Yx("0x2"));l=s.createRangeOn(t),d=s[Yx("0x19")](e)}const u=Array[Yx("0x51")](x[Yx("0x5c")]())[Yx("0x1e")]((([t])=>ta[Yx("0x1f")](t)));r[Yx("0x7e")][Yx("0x7f")]({element:i,attributes:u.length?Object[Yx("0x0")](u):null}),l&&r[Yx("0x54")].push(l),d&&r.deletionRanges.push(d)}),{priority:"high"}),o.on("insertColumns",((e,n)=>{const[s,i={}]=n;if(!r)return;const x=i.at||0,a=i[Yx("0x8c")]||1;r[Yx("0x3")]=new Array(a).fill(x)[Yx("0x4e")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))r[Yx("0x4d")][Yx("0x7f")](t[Yx("0x78")][Yx("0x19")](e))}),{priority:"low"}),o.on("insertRows",((e,n)=>{const[s,i={}]=n;if(!r)return;const x=i.at||0,a=i.rows||1;r[Yx("0x3f")]=new Array(a).fill(x)[Yx("0x4e")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0x43")](s,{startRow:x,endRow:x+a-1}))r[Yx("0x4b")][Yx("0x7f")](t[Yx("0x78")][Yx("0x19")](e))}),{priority:Yx("0x99")}),n[Yx("0x7b")][Yx("0x2d")]((e=>{if(e[Yx("0x32")]&&e[Yx("0x32")].startsWith(Yx("0x64")))return e.previous?{}:{type:Yx("0x17"),content:Yo(t[Yx("0x77")],Yx("0x8e"))}}));const x=()=>!1;for(const t of[Yx("0x64"),Yx("0x66"),Yx("0x59"),"tablePasteCell"])n._suggestionFactory[Yx("0x9f")]("insertion",t,"join",x),n[Yx("0x37")].registerCustomCallback(Yx("0x8d"),t,"join",x),n[Yx("0x37")][Yx("0x9f")]("formatBlock",t,Yx("0x84"),x);n[Yx("0x37")][Yx("0x9f")](Yx("0x6"),Yx("0x6d"),Yx("0x8a"),x),n._suggestionFactory[Yx("0x9f")]("formatBlock",Yx("0x6d"),Yx("0x67"),((e,n,o)=>{const s=e[Yx("0x4e")]((t=>t[Yx("0x74")]()))[Yx("0x1e")]((t=>t)),i=new Map(s[Yx("0x4e")]((t=>[t,null])));if(r)for(const{element:t,attributes:e}of r.cells)e&&i[Yx("0x86")](t,e);else if(o&&o[Yx("0x6b")])for(const[e,n]of Object[Yx("0x2c")](o[Yx("0x6b")])){const o=t[Yx("0x78")][Yx("0x97")][Yx("0x75")](e),s=o?o.getRange()[Yx("0x74")]():null;s&&i.set(s,n)}t.model[Yx("0x7d")]((t=>{for(const[e,n]of i)t[Yx("0x31")]({...ea,...n},e)}))}));const a=(e,o)=>{n[Yx("0x37")][Yx("0x9f")](e,"tablePaste",o,((s,i,r)=>{t[Yx("0x78")][Yx("0x7d")]((t=>{const x=[];for(const t of s){const e=t[Yx("0x3e")][Yx("0x95")];e.is(Yx("0x56"),"tableCellSuggestion")&&x[Yx("0x7f")](e)}n[Yx("0x37")][Yx("0x60")](e,null,o)(s,i,r);for(const e of x)Yx("0x33")!=e[Yx("0x98")][Yx("0x89")]&&t[Yx("0x3d")](e)}))}))};a(Yx("0x17"),Yx("0x67")),a(Yx("0x17"),Yx("0x8a")),a("deletion",Yx("0x67")),a(Yx("0x8d"),"discard"),n[Yx("0x37")][Yx("0x9f")]("insertion",Yx("0x59"),"discard",(t=>{const e=t.map((t=>t[Yx("0x74")]())),n=e[0].findAncestor("table"),{minRow:i,maxRow:r}=s[Yx("0x68")](e);o.removeRows(n,{at:i,rows:r-i+1})})),n._suggestionFactory[Yx("0x9f")]("insertion","tablePasteColumn",Yx("0x8a"),(t=>{const e=t[Yx("0x4e")]((t=>t[Yx("0x74")]())),n=e[0][Yx("0x38")]("table"),{minColumn:i,maxColumn:r}=s[Yx("0x68")](e);o[Yx("0x24")](n,{at:i,columns:r-i+1})}));const c=(t,e)=>{if(!e.subType||!e[Yx("0x32")][Yx("0x41")]("tablePaste"))return;const o=e[Yx("0x6a")][Yx("0x48")],s=n.getSuggestions()[Yx("0x1e")]((t=>t[Yx("0x45")]&&t[Yx("0x6a")]&&t[Yx("0x6a")][Yx("0x48")]==o));s[Yx("0x8f")]&&e[Yx("0xf")]()[Yx("0x8f")]!=s[Yx("0x8f")]&&s[Yx("0x83")](((t,e)=>(t[Yx("0x92")]=e,e[Yx("0x55")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x79")](t[Yx("0x53")]),s=["ck-suggestion-marker",Yx("0x49")],i=n.activeMarkers[Yx("0x1f")](t[Yx("0x53")]);return i&&s[Yx("0x7f")](Yx("0x10")),{classes:s,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on(Yx("0x15"),c,{priority:Yx("0xe")}),n.on("suggestionUnloaded",c,{priority:"high"}),t[Yx("0x78")][Yx("0x58")][Yx("0x82")]((()=>{let e=!1;const o=Array[Yx("0x51")](t.model[Yx("0x58")][Yx("0x5a")][Yx("0x69")]());for(const{name:s,data:i}of o){const{group:o,type:r,id:x}=n[Yx("0x79")](s);if(Yx("0x40")!=o||Yx("0x8d")!=r||i[Yx("0x5e")])continue;if(!n[Yx("0x7")](x))continue;const a=n[Yx("0x29")](x).getRanges(),c=t.plugins[Yx("0x75")](Yx("0x52")).me;for(const t of n[Yx("0x87")]())if(t.isInContent&&t[Yx("0x1a")]==c&&Yx("0x6")==t.type&&Yx("0x6d")==t.subType&&t[Yx("0x12")]()[Yx("0x18")]((t=>a[Yx("0x9c")]((e=>e[Yx("0x25")](t,!0))))))for(const n of t[Yx("0xf")]())n[Yx("0x45")]&&(n[Yx("0x8a")](),e=!0)}return e})),t.model[Yx("0x58")][Yx("0x82")]((e=>{const o=t[Yx("0x9e")][Yx("0x75")](Yx("0x76"));if(!o||!o[Yx("0x5d")][Yx("0x42")](e[Yx("0x34")]))return!1;let s=!1;const i=t[Yx("0x2f")][Yx("0x75")](Yx("0x52")).me,r=t[Yx("0x78")].document[Yx("0x5a")][Yx("0x5b")](),x=Array[Yx("0x51")](t.model[Yx("0x58")].differ[Yx("0x69")]())[Yx("0x1e")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:r}=n._splitMarkerName(t);return Yx("0x40")==o&&"tablePaste"==s&&r==i.id&&!e[Yx("0x5e")]}));for(const t of r){if(Yx("0x8")!=t.type||Yx("0x46")!=t[Yx("0x6c")]||1!=t[Yx("0x8f")])continue;const n=e[Yx("0x81")](t.position,t[Yx("0x27")][Yx("0x7c")](1));if(!x.find((({data:t})=>t.newRange[Yx("0x80")](n))))for(const{name:t,data:o}of x)if(n[Yx("0x25")](o[Yx("0x21")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Yx("0x78")][Yx("0x58")][Yx("0x82")]((e=>{let o=!1;const s=t[Yx("0x2f")][Yx("0x75")](Yx("0x52")).me,i=n[Yx("0x87")]()[Yx("0x1e")]((t=>t.isInContent&&t[Yx("0x1a")]==s)),r=new Set,x=new Set;for(const t of i)if(Yx("0x64")==t.subType)for(const e of t[Yx("0x9")]()){const n=e[Yx("0x93")]().getContainedElement();if(n)if(n.is(Yx("0x56"),Yx("0x46"))&&oa(n)){t[Yx("0xa")](e[Yx("0x6c")]),r.add(n),o=!0;const s=n[Yx("0x47")],i=n[Yx("0x6f")],a=s&&s.is(Yx("0x56"),Yx("0x46")),c=i&&i.is(Yx("0x56"),Yx("0x46"));a&&!r[Yx("0x42")](s)&&x.add(s),c&&!r[Yx("0x42")](i)&&x[Yx("0x61")](i)}else n.is("element",Yx("0x4"))&&n[Yx("0x65")]&&(t[Yx("0xa")](e[Yx("0x6c")]),o=!0)}else if(Yx("0x6d")==t[Yx("0x32")]){if(!t[Yx("0x6a")]||!t[Yx("0x6a")][Yx("0x48")])continue;const e=t[Yx("0x6a")][Yx("0x6b")];if(e&&Object.keys(e)[Yx("0x8f")])continue;const n=t.attributes[Yx("0x48")];let s=!0,r=!0;for(const e of i)if(e[Yx("0x32")]&&e[Yx("0x32")][Yx("0x41")](Yx("0x64"))){if(!e[Yx("0x6a")][Yx("0x48")]){r=!1;break}if(e.id!=t.id&&e[Yx("0x6a")][Yx("0x48")]==n){s=!1;break}}r&&s&&(t[Yx("0x3c")](),o=!0)}for(const t of r)e[Yx("0x9d")](t);for(const t of x)e[Yx("0x3d")](t);return o})),t[Yx("0x3b")][Yx("0x9a")](Yx("0xa0"))[Yx("0x57")]({model:Yx("0x90"),view:(t,e)=>l(t),converterPriority:Yx("0xe")}),t[Yx("0x3b")][Yx("0x9a")](Yx("0x63"))[Yx("0x57")]({model:Yx("0x90"),view:(t,e)=>e.options.showSuggestionHighlights?l(t,!1):null,converterPriority:Yx("0xe")});const d=t[Yx("0x6e")][Yx("0x71")];this.listenTo(d[Yx("0x58")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d.createRangeIn(e[Yx("0x44")])[Yx("0x35")]())t.is(Yx("0x56"),"suggestion-td")&&n[Yx("0x7f")](t);d[Yx("0x7d")]((t=>{for(const e of n)t[Yx("0x14")](t[Yx("0x16")](e),t[Yx("0x30")](e)),t[Yx("0x9d")](e)}))}))}}function oa(t){if(t[Yx("0x65")])return!0;const e=t[Yx("0x70")](0);return e.is(Yx("0x56"),Yx("0x4"))&&e.isEmpty}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:i}of n[Yx("0x43")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=i)return!1;return!0}const ia=["discard","handleSuggestionDescription","Users","editor","tableWidth","has","get","getContainedElement","document","*Format:* resize table","enableCommand","subType","formatGroupId","format","registerCustomCallback","handleResizeTableWidthCommand","change","accept","getSelectedElement","_suggestionFactory","getSuggestionCallback","bind","getColumnGroupElement","columnWidths","formatBlock","registerDescriptionCallback","TrackChangesEditing","getAttribute","getTableColumnsWidths","model","plugins","resizeTable","selection","_descriptionFactory","commandParams","resizeTableWidth","table","data","resizeColumnWidths"];var ra,xa;ra=ia,xa=137,function(t){for(;--t;)ra.push(ra.shift())}(++xa);const aa=function(t,e){return ia[t-=0]};class ca extends t.Plugin{afterInit(){if(!this.editor[aa("0xa")][aa("0x18")]("TableColumnResizeEditing"))return;const t=this[aa("0x16")][aa("0xa")][aa("0x19")](aa("0x6"));t[aa("0x1d")](aa("0xf"),this[aa("0x22")][aa("0x1")](this)),t[aa("0x1d")](aa("0x12"),this[aa("0x22")][aa("0x1")](this)),t[aa("0x26")][aa("0x21")](aa("0x4"),aa("0xb"),aa("0x24"),t[aa("0x26")][aa("0x0")]("formatBlock",null,aa("0x13"))),t[aa("0x26")][aa("0x21")](aa("0x4"),aa("0xb"),aa("0x13"),t[aa("0x26")].getSuggestionCallback(aa("0x4"),null,aa("0x24"))),t[aa("0xd")][aa("0x5")](this[aa("0x14")][aa("0x1")](this))}[aa("0x22")](t,e){const n=this[aa("0x16")].plugins[aa("0x19")](aa("0x6")),o=this[aa("0x16")].plugins[aa("0x19")]("TableColumnResizeEditing"),s=e[aa("0x10")]||this[aa("0x16")][aa("0x9")][aa("0x1b")][aa("0xc")][aa("0x25")]();this[aa("0x16")][aa("0x9")][aa("0x23")]((()=>{const i=o[aa("0x2")](s);let r=i?o[aa("0x8")](i):null,x=s[aa("0x7")](aa("0x17"))||null;const a=e.tableWidth||x,c=e[aa("0x3")]||r,l=this.editor[aa("0xa")][aa("0x19")](aa("0x15")).me;for(const t of n.getSuggestions()){const e=t[aa("0x1a")]();if(aa("0xb")===t[aa("0x1e")]&&e===s){t.author!==l&&t[aa("0x13")]();const e=t[aa("0x11")][aa("0xe")];x=e[0].tableWidth,r=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:aa("0xf"),commandParams:[{tableWidth:x,columnWidths:r}],formatGroupId:aa("0xb")},[],"resizeTable")}))}[aa("0x14")](t){const{data:e}=t;if(e&&aa("0xb")===e[aa("0x1f")]){const t=aa("0x1c");return{type:aa("0x20"),content:Yo(this[aa("0x16")].locale,t)}}}}const la=["afterInit","insertTemplate","TrackChangesEditing","plugins","editor","enableCommand"];var da,ua;da=la,ua=185,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x1")](){const t=this[ga("0x5")];t[ga("0x4")].has("Template")&&t[ga("0x4")].get(ga("0x3"))[ga("0x0")](ga("0x2"))}}const fa=["editor","locale","tableOfContents","get","TrackChangesEditing","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","_descriptionFactory","plugins","enableCommand"];var ha,pa;ha=fa,pa=374,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[ba("0x6")];if(!t.commands.get("insertTableOfContents"))return;t[ba("0x4")][ba("0x9")]("TrackChangesEditing")[ba("0x5")]("insertTableOfContents");const e=t[ba("0x4")][ba("0x9")](ba("0x0")),n=t[ba("0x7")];e[ba("0x3")][ba("0x1")](ba("0x8"),(t=>Yo(n,ba("0x2"),t)))}}const _a=["createRange","TrackChangesEditing","isTouching","registerPostFixer","start","model","get","afterInit","forward","_splitMarkerName","end","isEqual","nodeBefore","suggestion","element","title-content","getNearestSelectionRange","newRange","document","Title","editor","has","getChangedMarkers","locale","schema","plugins","_descriptionFactory","from","updateMarker"];var Ta,Ca;Ta=_a,Ca=222,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x11")](){const t=this[ya("0x1")];if(!t[ya("0x6")][ya("0x2")](ya("0x0")))return;const e=t[ya("0x6")][ya("0x10")](ya("0xb"));e[ya("0x7")].registerElementLabel("title-content",(()=>Yo(t[ya("0x4")],"ELEMENT_TITLE"))),t[ya("0xf")][ya("0x1c")][ya("0xd")]((n=>{let o=!1;const s=Array[ya("0x8")](t[ya("0xf")].document.differ[ya("0x3")]());for(const{name:i,data:r}of s){const{group:s}=e[ya("0x13")](i);if(ya("0x17")!==s||!r[ya("0x1b")])continue;const x=r[ya("0x1b")],a=x[ya("0x14")][ya("0x16")];if(!a||!a.is(ya("0x18"),ya("0x19")))continue;if(!x[ya("0xe")][ya("0xc")](x.end))continue;const c=t[ya("0xf")][ya("0x5")][ya("0x1a")](x[ya("0x14")],ya("0x12"));if(c&&c.isCollapsed){const t=n[ya("0xa")](x[ya("0xe")],c[ya("0xe")]);t[ya("0x15")](x)||(n[ya("0x9")](i,{range:t}),o=!0)}o||(n.removeMarker(i),o=!0)}return o}))}}const Aa=["undo","plugins","has","enableCommand","get"];var va,Ra;va=Aa,Ra=263,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{afterInit(){const t=this.editor,e=t[Ia("0x3")][Ia("0x1")]("TrackChangesEditing");t[Ia("0x3")][Ia("0x4")]("UndoEditing")&&(e.enableCommand(Ia("0x2")),e[Ia("0x0")]("redo"))}}const La=["TrackChangesEditing","TableCaptionEditing","get","toggleTableCaption","plugins","has","afterInit"];var Na,wa;Na=La,wa=299,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get requires(){return[Bx]}[Ma("0x1")](){const t=this.editor;t[Ma("0x6")][Ma("0x0")](Ma("0x3"))&&t[Ma("0x6")][Ma("0x4")](Ma("0x2")).enableCommand(Ma("0x5"))}}const Fa=["handleListReversedCommand","plugins","list.properties","DocumentListPropertiesUtils","toUpperCase","handleDescriptions","from","getSelectedBlocks","listStyle","numbered","*Format:* set order to reversed","config","enableCommand","format","model","change","commandParams","_LIST_","styles","_getTranslationKeyForListStyle","listStart","filter","DocumentListUtils","_descriptionFactory","getAttribute","startIndex","ELEMENT_","markMultiRangeBlockFormat","editor","_getSuggestionBlocks","type","get","bind","handleListStyleCommand","*Change to:* %0","replace","document","listType","DocumentListPropertiesEditing","has","TrackChangesEditing","_getSuggestionBlocksForListStyle","reversed","listReversed","length","handleListStartCommand","getListTypeFromListStyleType","expandListBlocksToCompleteList","push"];var Pa,Da;Pa=Fa,Da=277,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{afterInit(){if(!this[Ba("0x2d")][Ba("0x12")][Ba("0x7")](Ba("0x6")))return;const t=this.editor[Ba("0x1c")][Ba("0x30")](Ba("0x13")),e=this[Ba("0x2d")].plugins.get("TrackChangesEditing");t[Ba("0x23")]&&e[Ba("0x1d")]("listStyle",this[Ba("0x1")].bind(this)),t[Ba("0xa")]&&e[Ba("0x1d")](Ba("0xb"),this[Ba("0x11")].bind(this)),t[Ba("0x2a")]&&e[Ba("0x1d")](Ba("0x25"),this[Ba("0xd")][Ba("0x0")](this)),e[Ba("0x28")].registerDescriptionCallback(this.handleDescriptions[Ba("0x0")](this))}[Ba("0x1")](t,e={}){const n=this[Ba("0x2d")].plugins[Ba("0x30")](Ba("0x8")),o=this[Ba("0x9")]();this[Ba("0x2d")].model[Ba("0x20")]((()=>{n[Ba("0x2c")](o,{commandName:Ba("0x19"),commandParams:[{type:e[Ba("0x2f")]}],formatGroupId:Ba("0x19")})}))}[Ba("0x11")](t,e={}){const n=this.editor[Ba("0x12")].get(Ba("0x8")),o=this[Ba("0x2d")][Ba("0x12")][Ba("0x30")](Ba("0x27")),s=this[Ba("0x2e")]((t=>o.isListItemBlock(t)&&"numbered"===t[Ba("0x29")]("listType")));null!==s&&this.editor[Ba("0x1f")][Ba("0x20")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ba("0xb"),commandParams:[{reversed:e[Ba("0xa")]}],formatGroupId:Ba("0xb")})}))}[Ba("0xd")](t,e={}){const n=this[Ba("0x2d")][Ba("0x12")][Ba("0x30")](Ba("0x8")),o=this[Ba("0x2d")][Ba("0x12")][Ba("0x30")](Ba("0x27")),s=this[Ba("0x2e")]((t=>o.isListItemBlock(t)&&Ba("0x1a")===t[Ba("0x29")](Ba("0x5"))));null!==s&&this.editor.model.change((()=>{n[Ba("0x2c")](s,{commandName:Ba("0x25"),commandParams:[{startIndex:e[Ba("0x2a")]}],formatGroupId:Ba("0x25")})}))}[Ba("0x16")](t){const e=this[Ba("0x2d")].locale,{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o=Ba("0x2"),s={type:Ba("0x1e"),content:Yo(e,o,Yo(e,this[Ba("0x24")](n[Ba("0x21")][0][Ba("0x2f")])))};break;case Ba("0xb"):o=n.commandParams[0][Ba("0xa")]?Ba("0x1b"):"*Format:* set order to regular",s={type:Ba("0x1e"),content:Yo(e,o)};break;case"listStart":o="*Format:* set start index to %0",s={type:Ba("0x1e"),content:Yo(e,o,n[Ba("0x21")][0][Ba("0x2a")])}}return s}_getSuggestionBlocksForListStyle(){const t=this[Ba("0x2d")][Ba("0x12")][Ba("0x30")](Ba("0x27"));let e=Array[Ba("0x17")](this[Ba("0x2d")].model.document.selection[Ba("0x18")]());return e[Ba("0x10")](...t[Ba("0xf")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[Ba("0x2d")][Ba("0x12")][Ba("0x30")](Ba("0x27"));let n=Array[Ba("0x17")](this[Ba("0x2d")][Ba("0x1f")][Ba("0x4")].selection[Ba("0x18")]())[Ba("0x26")](t);if(!n[Ba("0xc")])return null;n=e[Ba("0xf")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[Ba("0x10")](t);return o}[Ba("0x24")](t){return Ba("0x2b")+this[Ba("0x2d")].plugins.get(Ba("0x14"))[Ba("0xe")](t)[Ba("0x15")]()+Ba("0x22")+t[Ba("0x15")]()[Ba("0x3")](/-/g,"_")}}const Ua=["handleSuggestionDescription","tableBackgroundColor","handleDiscardAction","tableHeight","_descriptionFactory","table","formatBlock","format","_handlePropertyChange","subType","get","setAttribute","afterInit","tableCellBorderWidth","TablePropertiesEditing","commandParams","locale","TableUtils","registerDescriptionCallback","registerCustomCallback","tableCellBorderColor","TrackChangesEditing","tableProperties","_getSuggestion","change","join","*Format:* change table properties","tableCellHorizontalAlignment","enableCommand","selection","_suggestionFactory","model","document","TableCellPropertiesEditing","plugins","tableAlignment","enqueueChange","discard","tableCellProperties","*Format:* change table cell properties","getSuggestions","editor","getAttribute","tableCellPadding","pluginName","TrackChangesTableProperties","tableCellHeight","getSuggestionCallback","tableWidth","data","tableCellWidth","accept","start","tableCellBorderStyle","has","markBlockFormat","getSelectionAffectedTableCells","batch"];var Ga,Ha;Ga=Ua,Ha=491,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x35")]=["tableBorderColor","tableBorderStyle","tableBorderWidth",za("0x8"),za("0x15"),za("0x22"),za("0x20")],this[za("0xb")]=[za("0x33"),za("0x1a"),za("0x2c"),za("0x10"),za("0x17"),za("0x13"),"tableCellBackgroundColor",za("0x0"),"tableCellVerticalAlignment"]}static get[za("0x11")](){return za("0x12")}[za("0x2b")](){const t=this[za("0xe")][za("0x7")][za("0x29")](za("0x34"));if(this[za("0xe")].plugins.has(za("0x2d"))){for(const e of this[za("0x35")])t[za("0x1")](e,((t,n)=>{const o=this[za("0xe")][za("0x4")][za("0x5")].selection.getFirstPosition().findAncestor(za("0x24"));this[za("0x27")](e,[o],this[za("0x35")],za("0x35"),t,n)}));t._suggestionFactory[za("0x32")](za("0x25"),"tableProperties",za("0x18"),t[za("0x3")][za("0x14")]("formatBlock",null,"discard")),t[za("0x3")][za("0x32")](za("0x25"),za("0x35"),za("0xa"),((t,e)=>this[za("0x21")](this.tableProperties,t,e))),t[za("0x3")][za("0x32")](za("0x25"),za("0x35"),za("0x38"),(()=>!1))}if(this[za("0xe")].plugins[za("0x1b")](za("0x6"))){for(const e of this.tableCellProperties)t[za("0x1")](e,((t,n)=>{const o=this[za("0xe")][za("0x7")].get(za("0x30"))[za("0x1d")](this[za("0xe")][za("0x4")][za("0x5")][za("0x2")]);this._handlePropertyChange(e,o,this.tableCellProperties,"tableCellProperties",t,n)}));t[za("0x3")][za("0x32")]("formatBlock",za("0xb"),za("0x18"),t[za("0x3")].getSuggestionCallback(za("0x25"),null,za("0xa"))),t[za("0x3")][za("0x32")](za("0x25"),za("0xb"),za("0xa"),((t,e)=>this[za("0x21")](this[za("0xb")],t,e))),t[za("0x3")][za("0x32")](za("0x25"),za("0xb"),za("0x38"),(()=>!1))}t[za("0x23")][za("0x31")]((t=>this[za("0x1f")](t)))}[za("0x27")](t,e,n,o,s,i){const r=this[za("0xe")][za("0x7")][za("0x29")](za("0x34"));this[za("0xe")][za("0x4")][za("0x9")](i[za("0x1e")],(()=>{for(const t of e)if(this[za("0x36")](t,o))s(i);else{const e={};for(const o of n){const n=t[za("0xf")](o);void 0!==n&&(e[o]=n)}s(i),r[za("0x1c")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][za("0x19")].nodeAfter,s=n[za("0x2e")][0];this.editor.model[za("0x37")]((e=>{for(const n of t)void 0!==s[n]?e[za("0x2a")](n,s[n],o):e.removeAttribute(n,o)}))}[za("0x1f")](t){if(t[za("0x16")])switch(t[za("0x28")]){case za("0x35"):return{type:za("0x26"),content:Yo(this[za("0xe")][za("0x2f")],za("0x39"))};case za("0xb"):return{type:za("0x26"),content:Yo(this[za("0xe")][za("0x2f")],za("0xc"))}}}[za("0x36")](t,e){const n=this.editor[za("0x7")].get("TrackChangesEditing");for(const o of n[za("0xd")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o[za("0x28")]===e&&n===t)return o}return null}}const Va=["consumable","accept","_removeSuggestion","_trackFormatChanges","deletion","set","oldRange","markerNameToElements","_breakSuggestionMarker","_setSuggestionRange","type","position","formatBlock:join","$graveyard","keys","pluginName","_addThreadToSuggestion","formatBlock","authorName","addSuggestion","includes","formatInline:join","change:data","containsRangeInObject","get","_checkSuggestionCorrectness","nodeAfter","isInsideObject","createdAt","isIntersectingWithRange","markMultiRangeBlockFormat","createPositionAfter","batch","start","multipleBlocks","rootName","showSuggestionHighlights","isSelectable","marker-count","push","attributes","multi","getRange","discard","track-changes-command-not-found","size","TrackChangesEditing","every","commandName","add","markMultiRangeInsertion","track-changes-suggestion-not-found","trackChanges","getSuggestionCallback","addSuggestionData","markInlineFormat","registerPostFixer","data","markInsertion","isObject","commentThread","subType","suggestion","insertion:","listenTo","discardSelectedSuggestions","_setSuggestionData","getAttribute","getCustomProperty","activeMarkers","applyOperation","suggestionLoaded","documentSelection","requires","trackChanges.mergeNestedSuggestions","markerToData","_splitMarkerName","_isForcedDefaultExecutionBlock","track-changes-suggestion-data-mismatch","getNearestSelectionRange","isCollapsed","widget","locale","_addSuggestionMarker","_joinSuggestions","editingDowncast","_registerDefaultCallbacks","addMarker:suggestion:formatBlock","range","value","author","_commentsRepository","isBlock","ck-suggestion-marker-","_getAuthorFromId","removeMarkers","skipNestingCheck","next","_descriptionFactory","@external","acceptSelectedSuggestions","insertion","enableReadOnlyMode","forward","deletion:chain","normal","isRemovable","stopListening","removeMarker","getChanges","PENDING_ACTION_SUGGESTION","length","newRange","formatInline:accept","createRange","mapper","ck-suggestion-marker","_customCallbacks","toJSON","Users","isInContent","differ","formatInline:chain","filter","addClass","suggestionUnloaded","getDifference","_suggestionState","containsItem","moveTargetPosition","toViewElement","fromCharCode","define","element","isAtStart","createElement","_updateSuggestionData","_suggestionFactory","change:_saved","suggestion:","delete","dataReady","getWalker","return","createPositionAt","getAllAdjacentSuggestions","commands","isLimit","resolve","fetchCommentThread","options","isDocumentOperation","getSuggestion","getUser","removeMarker:suggestion:formatBlock","map","ck-suggestion-marker-formatBlock","ready","previous","adapter","deleteContent","isAfter","consume","isArray","_editor","getFirstMarker","from","updateSuggestion","never","removeClass","some","values","createSelection","enableCommand","setTo","deletion:join","before","track-changes-adapter-already-set","execute","refresh","sort","stop","buildSuggestion","howMany","assign","bindElementToMarker","isEqual","nodeBefore","_handleNewSuggestionMarker","elementEnd","elementStart","remove","then","upcast","_isDataLoaded","getRanges","formatBlock:accept","_adapter","PendingActions","insertion:accept","createRangeIn","root","addRange","_joinWithAdjacentSuggestions","for","insert","containsRange","high","markerToHighlight","enqueueChange","isUndo","getMarkers","external:","getShiftedBy","hasCommentThread","fire","_refreshSuggestionsChain","getItems","isLocal","selection","_saved","name","default","authoredAt","getLastMatchingPosition","change","forceDefaultExecution","insertion:join","getFirstRange","dataDowncast","config","getIntersection","reconvertMarker","discardSuggestion","isNextTo","detach","markers","_enabledCommands","addMarkerName","conversion","addHighlight","lowest","join","markDeletion","document","getMultiRangeId","_suggestions","move","getSuggestions","_mergeNestedSuggestions","formatBlock:","_model","track-changes-user-not-found","getChangedMarkers","removed","_onDiscard","isOwn","addMarker","backward","clone","low","targetPosition","acceptSuggestion","dataToMarker","_findSuggestions","parent","isBefore","catch","always","editor","markerName","_createSuggestion","has","formatInline","containsPosition","split","collaboration.channelId","acceptAllSuggestions","ck-suggestion-marker--active","rethrowUnexpectedError","insertContent","head","formatGroupId","_defaultCallbacks","trackChanges.trackFormatChanges","deletion:","_rangeIsInLocalUserInsertion","_getSuggestionData","updateMarker","isAtEnd","model","data-suggestion","elementToElement","creator","after","writer","isMultiRange","update:suggestion","notReady","setSelection","item","plugins","schema","CommentsRepository","suggestion-type","end","registerCustomCallback","formatInline:","_cutOutSuggestionMarker","trackChangesCommand","group"];var Ka,qa;Ka=Va,qa=207,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]};class $a extends t.Plugin{static get[Xa("0xb1")](){return[Xa("0x60"),i.Users,t.PendingActions,cs,ms,Rs,ws,Bs,zs,$s,ei,ri,ja,ui,pi,yi,Ii,Fi,Gi,Ki,Qi,nr,xr,ur,pr,Cr,Rr,wr,jr,Wr,$r,tx,ix,dx,px,Cx,Ix,Mx,Bx,Wx,$x,Oa,na,ca,Ea,Wa,ma,ka,Sa]}static get[Xa("0x77")](){return Xa("0x96")}constructor(t){function e(t){return t[Xa("0x103")]((t=>String[Xa("0xeb")](t)))[Xa("0x23")]("")}super(t),this[Xa("0x6d")](Xa("0xad"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this._model[Xa("0x12")]((()=>{for(const e of[...s,...o])this._model[Xa("0x1d")][Xa("0x41")](e)&&t.editing[Xa("0x19")](e)}))})),this[Xa("0xca")]=new ss(this[Xa("0x3e")][Xa("0x53")][Xa("0x5f")],this[Xa("0x3e")][Xa("0xba")]),this[Xa("0x12d")]=null,this[Xa("0xf1")]=new Ja(this[Xa("0x3e")]),this[Xa("0x27")]=new Map,this[Xa("0xc3")]=t[Xa("0x5e")][Xa("0x80")]("CommentsRepository"),this[Xa("0x1e")]=new Set,this[Xa("0x2c")]=this.editor.model,this[Xa("0xe7")]=new WeakMap,this[Xa("0xb5")]=!1,t.config[Xa("0xec")]("trackChanges.trackFormatChanges",Xa("0xf")),this[Xa("0x6b")]=t[Xa("0x17")][Xa("0x80")](Xa("0x4d")),t.config[Xa("0xec")](Xa("0xb2"),!0),this[Xa("0x2a")]=t.config[Xa("0x80")](Xa("0xb2")),this[Xa("0x66")]=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,50,48,49,50])}init(){const t=this[Xa("0x3e")];t.conversion[Xa("0x134")](Xa("0xbd"))[Xa("0x1")]({model:Xa("0xa6"),view:t=>{const{id:e,type:n}=this[Xa("0xb4")](t[Xa("0x3f")]),o=[Xa("0xdc"),Xa("0xc5")+n];let s=3e3;return this[Xa("0xad")].includes(t.markerName)&&(o[Xa("0x8f")]("ck-suggestion-marker--active"),s=3010),Xa("0x6c")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0x20")][Xa("0x134")](Xa("0x16"))[Xa("0x99")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o.options[Xa("0x8c")])return;const s=n[Xa("0x5d")];if(!s)return;const i=o[Xa("0xdb")].toViewElement(s);t[Xa("0x53")].schema[Xa("0xa3")](s)&&i&&!i.getCustomProperty(Xa("0xb9"))&&i.is("containerElement")&&(0,x.toWidget)(i,o[Xa("0x58")])}),{priority:Xa("0x0")})})),t.conversion[Xa("0x134")](Xa("0x16"))[Xa("0x1")]({model:Xa("0xa6"),view:(t,e)=>{if(!e[Xa("0xfe")].showSuggestionHighlights)return null;const{type:n}=this[Xa("0xb4")](t[Xa("0x3f")]);return{classes:[Xa("0xdc"),Xa("0xc5")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[Xa("0x5d")].is(Xa("0xc")))return void s[Xa("0x68")].consume(o.item,n.name);const i=s[Xa("0xdb")][Xa("0xea")](o[Xa("0x5d")]);if(!o[Xa("0x5d")].is(Xa("0xed"))||!t[Xa("0x53")][Xa("0x5f")].isBlock(o[Xa("0x5d")])||i[Xa("0xac")](Xa("0x21")))return;const{id:r}=this[Xa("0xb4")](o[Xa("0x3f")]);s[Xa("0x58")][Xa("0xe4")]([Xa("0xdc"),Xa("0x104")],i),s[Xa("0x58")].setAttribute(Xa("0x54"),r,i),s[Xa("0xdb")][Xa("0x121")](i,o.markerName),e&&(this.activeMarkers[Xa("0x7c")](o[Xa("0x3f")])?s[Xa("0x58")][Xa("0xe4")](Xa("0x47"),i):s[Xa("0x58")][Xa("0x111")](Xa("0x47"),i));for(const e of t[Xa("0x53")][Xa("0x130")](o[Xa("0x5d")])[Xa("0xa")]())s[Xa("0x68")][Xa("0x10a")](e,n[Xa("0xe")]);s[Xa("0x68")][Xa("0x10a")](o.item,n[Xa("0xe")])};t[Xa("0x20")][Xa("0x134")]("dataDowncast")[Xa("0x99")]((t=>{t.on(Xa("0xbf"),((t,e,o)=>{o.options[Xa("0x8c")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t.conversion[Xa("0x134")](Xa("0x16"))[Xa("0xb3")]({model:Xa("0xa6"),view:(t,e)=>e[Xa("0xfe")][Xa("0x8c")]?null:{group:Xa("0xa6"),name:t.substr(11)}}),t.conversion.for(Xa("0x129"))[Xa("0x55")]({view:{name:Xa("0xa6"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0xf3")+t.getAttribute(Xa("0x61"))+":"+t[Xa("0xab")]("id");return t[Xa("0xab")](Xa("0x8e"))&&(n+=":"+t.getAttribute(Xa("0x8e"))),e[Xa("0xef")]("$marker",{"data-name":n})}}),t[Xa("0x20")].for("upcast")[Xa("0x38")]({view:Xa("0xa6")}),t[Xa("0x20")][Xa("0x134")](Xa("0xbd")).add((t=>{t.on(Xa("0xbf"),n(),{priority:Xa("0x0")})})),t[Xa("0x20")][Xa("0x134")](Xa("0xbd"))[Xa("0x99")]((t=>{t.on(Xa("0x102"),((t,e,n)=>{const o=n[Xa("0xdb")][Xa("0x6f")](e[Xa("0x3f")]);if(o)for(const t of o)t[Xa("0xac")](Xa("0x21"))||(n[Xa("0x58")][Xa("0x111")]([Xa("0xdc"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[Xa("0x58")].removeAttribute(Xa("0x54"),t),n[Xa("0xdb")].unbindElementFromMarkerName(t,e[Xa("0x3f")]))}),{priority:"high"})})),t.model.document[Xa("0xa0")]((e=>{let n=!1;const o=Array.from(t[Xa("0x53")][Xa("0x25")][Xa("0xe1")][Xa("0x2e")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0xb4")](x);if(Xa("0xa6")!==o)continue;const d=this[Xa("0x27")][Xa("0x80")](l);if(null!=a[Xa("0xd8")])if("formatInline"==c&&(n=n||Ya(a[Xa("0xd8")],x,e,t[Xa("0x53")].schema)),a[Xa("0xd8")][Xa("0xb8")]||"$graveyard"==a.newRange[Xa("0x131")][Xa("0x8b")]||Xa("0x79")==c&&!ec(a[Xa("0xd8")])||Xa("0x6c")==c&&(Za(r=a[Xa("0xd8")])||(i=r)[Xa("0x89")].parent==i[Xa("0x62")][Xa("0x123")]&&i.start.isAtEnd))e[Xa("0xd4")](x),n=!0;else{if(!d||!d[Xa("0xe0")])continue;s[Xa("0x99")](d)}}var i,r;return s[Xa("0x95")]>0&&(n=!!this[Xa("0x133")](s)||n),n})),t[Xa("0x53")][Xa("0x25")].registerPostFixer((e=>{let n=!1;for(const o of t[Xa("0x53")][Xa("0x25")][Xa("0xe1")][Xa("0xd5")]()){if(Xa("0x135")!=o[Xa("0x72")])continue;const s=o[Xa("0x73")].getShiftedBy(o.length);if(s[Xa("0x52")])for(const i of this[Xa("0x27")][Xa("0x113")]()){if(i[Xa("0x59")]||!i[Xa("0xe0")])continue;if(Xa("0x79")!=i.type)continue;const r=i[Xa("0x15")]();if(r[Xa("0x89")][Xa("0x3a")]!=r.end.parent&&r[Xa("0x62")].isEqual(o[Xa("0x73")])){const o=t.model[Xa("0xda")](r[Xa("0x89")],s);e.updateMarker(i[Xa("0x10d")](),{range:o}),n=!0}}}return n})),t[Xa("0x53")][Xa("0x1d")].on(Xa("0x5a"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[Xa("0xe")]),n=this[Xa("0x27")][Xa("0x80")](t);n&&n[Xa("0x1f")](e[Xa("0xe")])}})),t[Xa("0x53")][Xa("0x25")].on(Xa("0x7e"),(()=>{const e=Array.from(t[Xa("0x53")].document[Xa("0xe1")][Xa("0x2e")]()).filter((t=>"suggestion"===this[Xa("0xb4")](t[Xa("0xe")])[Xa("0x67")]));if(0===e[Xa("0xd7")])return;e[Xa("0x11c")](((t,e)=>{const n=t[Xa("0xa1")][Xa("0x6e")],o=e[Xa("0xa1")][Xa("0x6e")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start.isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0xb4")](t);if(null===s.oldRange){const e=this[Xa("0x124")](t);o.add(e)}else{const t=this[Xa("0x27")][Xa("0x80")](e);null!==s.newRange||t[Xa("0xe0")]?(n[Xa("0x99")](t[Xa("0x4a")]),o.add(t)):this[Xa("0x6a")](t)}}o[Xa("0x95")]>0&&this[Xa("0x9")](o);for(const t of n)this[Xa("0x8")]("suggestionChanged",t)})),t[Xa("0x53")].on(Xa("0xae"),((e,n)=>{const o=n[0];if(!this[Xa("0x27")][Xa("0x95")])return;if(!o[Xa("0xff")])return;if(o[Xa("0x88")][Xa("0x3")]||!o[Xa("0x88")][Xa("0xb")])return;let s,i;switch(o[Xa("0x72")]){case"insert":s=t[Xa("0x53")][Xa("0xf8")](o[Xa("0x73")]),i=s[Xa("0x6")](o[Xa("0x11f")]);break;case Xa("0x44"):s=t.model[Xa("0xf8")](o.splitPosition),i=t[Xa("0x53")][Xa("0xf8")](o[Xa("0xe9")]);break;case Xa("0x28"):s=t[Xa("0x53")][Xa("0xf8")](o[Xa("0x36")]),i=s[Xa("0x6")](o.howMany);break;default:return}const r=t.model.createRange(s,i);t[Xa("0x53")][Xa("0x12")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(r)){if(t[Xa("0x59")])continue;if(Xa("0x42")==t[Xa("0x72")])continue;const n=t[Xa("0xa1")]&&t.data[Xa("0x8a")];(Xa("0x79")!=t[Xa("0x72")]||"split"==o[Xa("0x72")]&&!n)&&(e[Xa("0x7f")]||Xa("0xcd")==t[Xa("0x72")]&&e[Xa("0x31")]||t[Xa("0x15")]()[Xa("0x136")](r)&&this[Xa("0x70")](t,s,i))}}))}),{priority:Xa("0x22")}),t.model.on(Xa("0x108"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0x13")])return;if(this[Xa("0xb5")])return;if(!this.trackChangesCommand[Xa("0xc1")])return;if(o[Xa("0xb8")])return;const i=t.model[Xa("0x5f")],{start:r,end:x}=o[Xa("0x15")](),a=r.nodeAfter&&i.isLimit(r[Xa("0x82")])?null:i[Xa("0xb7")](r,Xa("0xcf")),c=x[Xa("0x123")]&&i[Xa("0xfb")](x[Xa("0x123")])?null:i[Xa("0xb7")](x,Xa("0x33")),l=t.model[Xa("0xda")](a?a[Xa("0x89")]:r,c?c[Xa("0x62")]:x);t[Xa("0x53")][Xa("0x12")]((e=>{this[Xa("0x24")](l);const n=t[Xa("0x53")][Xa("0x5f")][Xa("0xb7")](l[Xa("0x89")]);o.is(Xa("0xb0"))?e[Xa("0x5c")](n):o[Xa("0x116")](n)})),e[Xa("0x11d")]()}),{priority:e.priorities[Xa("0xd1")]+10}),t[Xa("0x53")].on(Xa("0x49"),((e,n)=>{const o=n[n[Xa("0xd7")]-1];o&&o.forceDefaultExecution||this._isForcedDefaultExecutionBlock||this[Xa("0x66")][Xa("0xc1")]&&(t[Xa("0x53")].change((()=>{let o=t[Xa("0x53")][Xa("0x49")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0xf7")]=o[Xa("0x34")]();const s=o.end.nodeBefore,i=t[Xa("0x53")][Xa("0x5f")];s&&i[Xa("0xc4")](s)&&!i[Xa("0xa3")](s)&&(o=t[Xa("0x53")].createRange(o[Xa("0x89")],t[Xa("0x53")][Xa("0xf8")](s,Xa("0x62")))),this[Xa("0xa2")](o)})),e[Xa("0x11d")]())}),{priority:Xa("0x0")}),this[Xa("0x3e")][Xa("0xfa")].add(Xa("0x9c"),this[Xa("0x66")]),this[Xa("0x115")](Xa("0x9c"));const o=new p(t,this[Xa("0x27")]);t[Xa("0xfa")].add(Xa("0x37"),o),this[Xa("0x115")]("acceptSuggestion");const s=new C(t,this[Xa("0x27")]);t[Xa("0xfa")].add(Xa("0x1a"),s),this.enableCommand("discardSuggestion"),t[Xa("0xfa")][Xa("0x99")]("acceptAllSuggestions",new F(t,o,this[Xa("0x27")])),this.enableCommand(Xa("0x46")),t[Xa("0xfa")][Xa("0x99")]("discardAllSuggestions",new F(t,s,this[Xa("0x27")])),this[Xa("0x115")]("discardAllSuggestions"),t[Xa("0xfa")][Xa("0x99")](Xa("0xcc"),new U(t,o,this._suggestions)),this[Xa("0x115")](Xa("0xcc")),t[Xa("0xfa")][Xa("0x99")](Xa("0xa9"),new U(t,s,this[Xa("0x27")])),this[Xa("0x115")](Xa("0xa9"));const i=t[Xa("0x5e")][Xa("0x80")](Xa("0x60"));this[Xa("0xa8")](i,"addComment",((t,{threadId:e})=>{const n=this[Xa("0x27")][Xa("0x80")](e);n&&n[Xa("0xa4")]&&1===n[Xa("0xa4")][Xa("0xd7")]&&this[Xa("0xf0")](e,{hasComments:!0})}),{priority:"low"}),this.listenTo(i,"removeComment",((t,{threadId:e})=>{const n=this[Xa("0x27")][Xa("0x80")](e);n&&n[Xa("0xa4")]&&!n[Xa("0xa4")][Xa("0xd7")]&&this[Xa("0xf0")](e,{hasComments:!1})}),{priority:Xa("0x35")})}set[Xa("0x107")](t){if(this._adapter)throw new e.CKEditorError(Xa("0x119"),this);this[Xa("0x12d")]=t}get[Xa("0x107")](){return this[Xa("0x12d")]}[Xa("0x29")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0x27")].values())t&&!e.isInContent||n[Xa("0x8f")](e);return e?n[Xa("0x103")]((t=>t[Xa("0xde")]())):n}[Xa("0x100")](t){const n=this._suggestions[Xa("0x80")](t);if(!n)throw new e.CKEditorError(Xa("0x9b"),this);return n}hasSuggestion(t){return this[Xa("0x27")][Xa("0x41")](t)}[Xa("0x9e")](t){const{authorId:e,id:n,attributes:o}=t,[s,i]=t[Xa("0x72")].split(":"),r=this[Xa("0x27")].get(n)||this[Xa("0x40")](s,i,n,e,o);if(this[Xa("0x78")](r),this._checkSuggestionCorrectness(r,s,i||null,e),r[Xa("0x84")]=t.createdAt,r._isDataLoaded=!0,o&&o["@external"]){const t=o[Xa("0xcb")],e=this._getExternalAuthor(t[Xa("0x7a")]);r[Xa("0x10")]=t[Xa("0x84")],r.author=e,r.isExternal=!0}else r[Xa("0x10")]=t[Xa("0x84")];switch(t[Xa("0xa1")]&&(r.data=t[Xa("0xa1")]),t[Xa("0x90")]&&(r[Xa("0x90")]=t.attributes),this[Xa("0x12d")]&&this[Xa("0x12d")][Xa("0x7b")]||(r[Xa("0xd")]=!0),this[Xa("0xe7")][Xa("0x80")](r)){case Xa("0x5b"):this[Xa("0xe7")][Xa("0x6d")](r,Xa("0xf5"));break;case"markerReady":r[Xa("0xe0")]?(this[Xa("0x9")](new Set([r])),this[Xa("0x133")](new Set([r])),this._suggestionState.set(r,Xa("0x105")),this[Xa("0x8")](Xa("0xaf"),r)):this[Xa("0xe7")][Xa("0x6d")](r,Xa("0x2f"))}return r}[Xa("0x37")](t){this[Xa("0x13")]((()=>{this[Xa("0x3e")].model[Xa("0x12")]((()=>{for(const e of t[Xa("0xf9")]())e[Xa("0x69")]()}))}))}discardSuggestion(t){this.forceDefaultExecution((()=>{this.editor[Xa("0x53")][Xa("0x12")]((()=>{for(const e of t[Xa("0xf9")]())e[Xa("0x93")]()}))}))}[Xa("0x115")](t,n){const o=this.editor[Xa("0xfa")][Xa("0x80")](t);if(!o)throw new e.CKEditorError(Xa("0x94"),this,{commandName:t});this._enabledCommands[Xa("0x99")](o),n&&o.on("execute",((t,e)=>{this[Xa("0x66")][Xa("0xc1")]&&(this._isForcedDefaultExecutionBlock||e[Xa("0xd7")]>0&&e[e[Xa("0xd7")]-1]&&e[e[Xa("0xd7")]-1][Xa("0x13")]||(n(((...t)=>o[Xa("0x11a")](...t,{forceDefaultExecution:!0})),...e),t[Xa("0x11d")]()))}),{priority:Xa("0x0")})}[Xa("0x13")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[Xa("0xb5")]=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0xb5")]=!1),o&&e.CKEditorError[Xa("0x48")](o,this),n}[Xa("0xa2")](t,n=null,o={}){if(t[Xa("0xb8")])return null;const s=this.editor[Xa("0x5e")][Xa("0x80")]("Users").me;for(const{suggestion:e,meta:s}of this[Xa("0x39")](t,Xa("0xcd")))if(s[Xa("0x31")]){if(!s[Xa("0x1b")]){if(s[Xa("0x7f")]){if(!this[Xa("0x2a")]||!ic(e,o))continue;return e}if(ic(e,o))return e;this[Xa("0x70")](e,t[Xa("0x89")],t.end);break}if(n==e[Xa("0xa5")]&&ic(e,o)){const n=e.getFirstRange();return n.start.isEqual(t[Xa("0x62")])?this[Xa("0x71")](e,this[Xa("0x2c")][Xa("0xda")](t[Xa("0x89")],n[Xa("0x62")])):this[Xa("0x71")](e,this[Xa("0x2c")].createRange(n[Xa("0x89")],t[Xa("0x62")])),e}}const i=(0,e.uid)(),r=s.id,x=n?Xa("0xa7")+n:Xa("0xcd"),a=this[Xa("0xaa")]({id:i,type:x,createdAt:new Date,authorId:r,attributes:o});return this[Xa("0xbb")](x,i,r,t),a}[Xa("0x9a")](t,n=Xa("0x91"),o={}){const s=this[Xa("0x3e")][Xa("0x5e")][Xa("0x80")](Xa("0xdf")).me,i=this[Xa("0xf1")][Xa("0x9d")]("insertion",n,"join");for(const e of this[Xa("0x29")]())if(e.author.id==s.id&&Xa("0xcd")==e[Xa("0x72")]&&e[Xa("0xa5")]==n&&ic(e,o)&&(i(e.getRanges(),t)||i(t,e[Xa("0x12b")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this[Xa("0x39")](t,Xa("0xcd"))){if(!n[Xa("0x31")])continue;if(!this._mergeNestedSuggestions&&n[Xa("0x7f")])continue;if(!ic(e,o))continue;let s=!0;for(const n of e[Xa("0x12b")]())for(const e of t)if(!n[Xa("0x136")](e)){s=!1;break}if(s)return e}const r=(0,e.uid)(),x=s.id,a=Xa("0xa7")+n,c=this[Xa("0xaa")]({id:r,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0xbb")](a,r,x,e,Zo[Xa("0x26")]());return c}[Xa("0x9f")](t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0xb8")])return null;if(Xa("0x110")===this._trackFormatChanges){const e=this[Xa("0xf1")][Xa("0x9d")](Xa("0x42"),o,Xa("0x69"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const i=this[Xa("0x3e")].plugins.get(Xa("0xdf")).me,r=[];if(Xa("0x3d")!==this[Xa("0x6b")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0xcd")))n.isOwn&&!n.isInsideObject&&r[Xa("0x8f")](...e[Xa("0x12b")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Xa("0x18")](o);e&&n.push(e)}return n}(t,r),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xa("0xd7")];){const o=n[e][Xa("0xe6")](t);n.splice(e,1,...o),e+=o[Xa("0xd7")]}}return n}(t,r);x[Xa("0xd7")]&&this[Xa("0x2c")].change((()=>{for(const t of x){const e=this[Xa("0xf1")][Xa("0x9d")](Xa("0x42"),o,Xa("0x69"));this[Xa("0x13")]((()=>e([t],n,s)))}}));for(const t of a){let r=null,x=t[Xa("0x89")],a=t[Xa("0x62")];for(const{suggestion:e,meta:n}of this[Xa("0x39")](t,Xa("0x42"))){if(!n[Xa("0x31")])continue;if(e[Xa("0xa5")]!=o)continue;if(!ic(e,s))continue;const i=e[Xa("0x15")]();if(i[Xa("0x136")](t,!0))return null;x=x[Xa("0x3b")](i[Xa("0x89")])?x:i[Xa("0x89")],a=a.isAfter(i[Xa("0x62")])?a:i[Xa("0x62")],r?i[Xa("0x89")][Xa("0x3b")](r[Xa("0x15")]()[Xa("0x89")])?(r[Xa("0xc7")](),r=e):e[Xa("0xc7")]():r=e}const c=this[Xa("0x2c")][Xa("0xda")](x,a);if(r)this._setSuggestionRange(r,c);else{const t=(0,e.uid)(),r=i.id;this[Xa("0xaa")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:r,attributes:s}),this[Xa("0xbb")](Xa("0x64")+o,t,r,c)}}return null}markBlockFormat(t,n,o=[],s=null,i={}){n[Xa("0x4b")]||(n[Xa("0x4b")]=n[Xa("0x98")]),n[Xa("0x8a")]=t.is(Xa("0xc0")),s=s||tc(n);const r=o.map((t=>nc(t,this[Xa("0x2c")]))),x=t.is(Xa("0xc0"))?t:nc(t,this[Xa("0x2c")]);if("never"===this[Xa("0x6b")]){const t=this[Xa("0xf1")][Xa("0x9d")](Xa("0x79"),s,Xa("0x69"));return this[Xa("0x13")]((()=>t([x],n,i))),null}r[Xa("0x8f")](x);let a=!0;for(const t of r)if(!this[Xa("0x4f")](t)){a=!1;break}if(a&&"always"!==this[Xa("0x6b")]){const t=this._suggestionFactory[Xa("0x9d")](Xa("0x79"),s,Xa("0x69"));return this[Xa("0x13")]((()=>t([x],n,i))),null}let c=null,l=x[Xa("0x89")],d=x.end;for(const{suggestion:t,meta:e}of this[Xa("0x39")](x,"formatBlock")){if(!e[Xa("0x31")])continue;if(e[Xa("0x1b")]||e[Xa("0x7f")]||e[Xa("0x83")])continue;if(t[Xa("0xa1")][Xa("0x4b")]!=n[Xa("0x4b")])continue;if(!ic(t,i))continue;const o=t[Xa("0x15")]();if(t[Xa("0xa5")]==s){if(o[Xa("0x136")](x,!0))return null;l=l[Xa("0x3b")](o.start)?l:o.start,d=d[Xa("0x109")](o.end)?d:o.end,c?o[Xa("0x89")][Xa("0x3b")](c[Xa("0x15")]().start)?(c[Xa("0xc7")](),c=t):t.removeMarkers():c=t}else{const e=x[Xa("0x18")](o);this[Xa("0x65")](t,e)}}const u=this.editor[Xa("0x5e")][Xa("0x80")](Xa("0xdf")).me,g=(0,e.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this._model[Xa("0xda")](l,d)),c;{const t=this[Xa("0xaa")]({id:g,type:Xa("0x2b")+s,data:n,createdAt:new Date,authorId:m,attributes:i});return this[Xa("0xbb")](Xa("0x2b")+s,g,m,this._model[Xa("0xda")](l,d)),t}}[Xa("0x86")](t,n,o=[],s=null,i={}){n[Xa("0x4b")]||(n.formatGroupId=n[Xa("0x98")]);const r=t[0];n.multipleBlocks=r.is(Xa("0xc0")),s=s||tc(n);const x=o[Xa("0x103")]((t=>nc(t,this[Xa("0x2c")]))),a=r.is(Xa("0xc0"))?t:t[Xa("0x103")]((t=>nc(t,this._model)));if(Xa("0x110")===this[Xa("0x6b")]){const t=this[Xa("0xf1")][Xa("0x9d")](Xa("0x79"),s,"accept");return this[Xa("0x13")]((()=>t(a,n,i))),null}x[Xa("0x8f")](...a);let c=!0;for(const t of x)if(!this[Xa("0x4f")](t)){c=!1;break}if(c&&Xa("0x3d")!==this[Xa("0x6b")]){const t=this[Xa("0xf1")][Xa("0x9d")](Xa("0x79"),s,Xa("0x69"));return this[Xa("0x13")]((()=>t(a,n,i))),null}const l=this[Xa("0x3e")][Xa("0x5e")][Xa("0x80")]("Users").me;for(const t of this[Xa("0x29")]()){if(t.author.id!=l.id)continue;if(Xa("0x79")!=t.type||t[Xa("0xa1")].formatGroupId!=n.formatGroupId)continue;if(!ic(t,i))continue;const e=t[Xa("0xa5")]==s;for(let n=0;n<a[Xa("0xd7")];n++){const o=a[n];for(const s of t[Xa("0x4")]()){const i=s[Xa("0x92")]();if(o[Xa("0x122")](i)){e?(a.splice(n,1),n--):t[Xa("0xd4")](s.name);break}}}}if(0==a[Xa("0xd7")])return null;const d=this[Xa("0xf1")][Xa("0x9d")](Xa("0x79"),s,Xa("0x23"));for(const t of this[Xa("0x29")]())if(t[Xa("0xc2")].id==l.id&&Xa("0x79")==t[Xa("0x72")]&&t[Xa("0xa1")][Xa("0x4b")]==n.formatGroupId&&t.subType==s&&ic(t,i)&&(d(t[Xa("0x12b")](),a)||d(a,t[Xa("0x12b")]()))){for(const e of a)t[Xa("0x132")](e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0x2b")+s,f=this[Xa("0xaa")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[Xa("0xbb")](m,u,g,t,Zo.getMultiRangeId());return f}[Xa("0x24")](t,n=null,o={}){if(t[Xa("0xb8")])return null;const s=this[Xa("0x3e")][Xa("0x5e")][Xa("0x80")](Xa("0xdf")).me,i=new r.LiveRange(t[Xa("0x89")],t[Xa("0x62")]);for(const{suggestion:t,meta:e}of this[Xa("0x39")](i,Xa("0xcd")))if(e[Xa("0x31")]&&!e.isNextTo)if(t.isMultiRange){const e=t.getRanges()[Xa("0xe3")]((t=>Xa("0x75")!=t[Xa("0x131")].rootName));if(e[Xa("0x97")]((t=>i[Xa("0x136")](t,!0)))&&t[Xa("0x93")](),e[Xa("0x112")]((t=>t[Xa("0x136")](i,!0)))){const t=this[Xa("0xf1")][Xa("0x9d")]("deletion",n,Xa("0x69"));return this[Xa("0x13")]((()=>t([i],null,o))),null}}else{const e=i[Xa("0x18")](t[Xa("0x15")]());null!==e&&t[Xa("0x30")]([e],null,o)}if(i.detach(),i.isCollapsed||Xa("0x75")==i[Xa("0x131")][Xa("0x8b")])return null;let x=null,a=i[Xa("0x89")],c=i[Xa("0x62")];const l=this[Xa("0x39")](i,Xa("0x6c"));for(const{suggestion:t,meta:e}of l){const n=this[Xa("0x2c")][Xa("0xda")](a,c);if(e.isOwn&&(this[Xa("0x2a")]||!e[Xa("0x7f")]&&!e[Xa("0x83")]))if(t[Xa("0x59")]){if(!ic(t,o))continue;let e=!0;for(const o of t[Xa("0x12b")]()){if(o.containsRange(n,!0))return t;n[Xa("0x136")](o)||(e=!1)}e&&t[Xa("0x93")]()}else{const e=t[Xa("0x15")]();if(e[Xa("0x136")](n,!0))return t;if(!ic(t,o)){n[Xa("0x136")](e)?t[Xa("0xc7")]():e[Xa("0x43")](a)?a=e[Xa("0x62")]:e[Xa("0x43")](c)&&(c=e[Xa("0x89")]);continue}a=a[Xa("0x3b")](e[Xa("0x89")])?a:e.start,c=c.isAfter(e[Xa("0x62")])?c:e[Xa("0x62")],o=Object[Xa("0x120")]({},t[Xa("0x90")]),x?e[Xa("0x89")].isBefore(x[Xa("0x15")]().start)?(x[Xa("0xc7")](),x=t):t[Xa("0xc7")]():x=t}}if(x)return this[Xa("0x71")](x,this[Xa("0x2c")].createRange(a,c)),x;{const t=(0,e.uid)(),i=this[Xa("0x2c")][Xa("0xda")](a,c),r=s.id,x=n?Xa("0x4e")+n:Xa("0x6c"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:r,attributes:o});return this[Xa("0xbb")](x,t,r,i),l}}markMultiRangeDeletion(t,n=Xa("0x91"),o={}){const s=this[Xa("0x3e")][Xa("0x5e")].get(Xa("0xdf")).me,i=t.map((t=>new r.LiveRange(t[Xa("0x89")],t[Xa("0x62")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(i,Xa("0xcd")))e.isOwn&&!e[Xa("0x1b")]&&x[Xa("0x99")](t);for(const e of x)if(e[Xa("0x59")]){const s=e[Xa("0x12b")]();if((!e[Xa("0x90")]||!e.attributes[Xa("0xc8")])&&s[Xa("0x97")]((t=>i[Xa("0x112")]((e=>e[Xa("0x136")](t,!0)))))&&e[Xa("0x93")](),i.every((t=>s[Xa("0x112")]((e=>e.containsRange(t,!0)))))){const e=this._suggestionFactory[Xa("0x9d")](Xa("0x6c"),n,Xa("0x69"));return this[Xa("0x13")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(i[Xa("0x112")]((e=>e[Xa("0x136")](t,!0)))&&e[Xa("0x93")](),i[Xa("0x97")]((e=>t.containsRange(e,!0)))){const t=this[Xa("0xf1")][Xa("0x9d")](Xa("0x6c"),n,Xa("0x69"));return this[Xa("0x13")]((()=>t(i,null,o))),null}}const a=this[Xa("0xf1")][Xa("0x9d")](Xa("0x6c"),n,Xa("0x23"));let c=null;for(const t of this.getSuggestions())if(t[Xa("0xc2")].id==s.id&&t[Xa("0xe0")]&&Xa("0x6c")==t[Xa("0x72")]&&t.subType==n&&ic(t,o)&&(a(t.getRanges(),i)||a(i,t[Xa("0x12b")]())))if(c){if(t[Xa("0xa4")]&&t[Xa("0xa4")][Xa("0xd7")])continue;for(const e of t[Xa("0x12b")]())c.isIntersectingWithRange(e)||c[Xa("0x132")](e);t.removeMarkers()}else{c=t;for(const e of i)t[Xa("0x85")](e)||t[Xa("0x132")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[Xa("0x39")](i,Xa("0x6c")))e[Xa("0x31")]&&(this[Xa("0x2a")]||!e[Xa("0x7f")]&&!e[Xa("0x83")])&&ic(t,o)&&x.add(t);for(const t of x){const e=t.getRanges();if((!o||!o[Xa("0xc8")])&&i[Xa("0x97")]((t=>e[Xa("0x112")]((e=>e.containsRange(t,!0))))))return t;(!t[Xa("0x90")]||!t[Xa("0x90")][Xa("0xc8")])&&e.every((t=>i[Xa("0x112")]((e=>e[Xa("0x136")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u=Xa("0x4e")+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of i)t[Xa("0x1c")](),t[Xa("0xb8")]||Xa("0x75")==t[Xa("0x131")].rootName||this[Xa("0xbb")](u,l,d,t,Zo[Xa("0x26")]());return g}[Xa("0x71")](t,e){const n=t[Xa("0x10d")]();this[Xa("0x2c")][Xa("0x12")]((t=>{t.updateMarker(n,{range:e})}))}[Xa("0x78")](t){const e=t.id,n=this[Xa("0x3e")].config.get("collaboration.channelId");this[Xa("0xc3")][Xa("0x7")](e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0xc3")].getCommentThread(e);o.unbind(Xa("0xd2")),o[Xa("0xd2")]=!1,t[Xa("0xa4")]=o}[Xa("0x81")](t,n,o,s){if(t[Xa("0x72")]!=n||t[Xa("0xa5")]!=o||t[Xa("0x56")].id!=s)throw this.editor[Xa("0xce")](Xa("0xb6")),new e.CKEditorError(Xa("0xb6"),this)}[Xa("0x65")](t,n){const o=t[Xa("0x15")]();if(n[Xa("0x122")](o))t[Xa("0xc7")]();else if(o[Xa("0x136")](n)){const s=this[Xa("0x2c")][Xa("0xf8")](n[Xa("0x89")].nodeBefore,Xa("0x62"));this[Xa("0x71")](t,this[Xa("0x2c")][Xa("0xda")](o[Xa("0x89")],s));const i=(0,e.uid)(),r=t[Xa("0x56")].id,x=t[Xa("0x72")]+":"+t[Xa("0xa5")];this[Xa("0xaa")]({id:i,type:x,createdAt:new Date,authorId:r,data:t[Xa("0xa1")],attributes:t[Xa("0x90")]});const a=this[Xa("0x2c")][Xa("0xf8")](n.end[Xa("0x3a")],Xa("0x57")),c=this[Xa("0x2c")][Xa("0xda")](a,o.end);this[Xa("0xbb")](x,i,r,c)}else if(o[Xa("0x43")](n[Xa("0x89")])){const e=this[Xa("0x2c")][Xa("0xf8")](n[Xa("0x89")].nodeBefore,Xa("0x62"));this[Xa("0x71")](t,this[Xa("0x2c")][Xa("0xda")](o[Xa("0x89")],e))}else{const e=this[Xa("0x2c")].createPositionAt(n.end[Xa("0x3a")],"after");this._setSuggestionRange(t,this[Xa("0x2c")][Xa("0xda")](e,o[Xa("0x62")]))}}[Xa("0x4f")](t){for(const{suggestion:e,meta:n}of this[Xa("0x39")](t,Xa("0xcd"))){if(!n[Xa("0x31")])continue;const o=e[Xa("0x12b")]();for(const e of o)if(!t[Xa("0xe6")](e)[Xa("0xd7")])return!0}return!1}[Xa("0xc6")](t){const n=this[Xa("0x3e")].plugins[Xa("0x80")](Xa("0xdf"))[Xa("0x101")](t);if(!n)throw new e.CKEditorError(Xa("0x2d"),this);return n}_getExternalAuthor(t){const e=this.editor.plugins[Xa("0x80")](Xa("0xdf")),n=(0,i.hashObject)(Xa("0x5")+t);return e[Xa("0x101")](n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,o,s){const i=this[Xa("0xc6")](o),r=this[Xa("0xf1")][Xa("0x11e")](t,e,n,i,s,(t=>this[Xa("0xf0")](n,{attributes:t})));return this[Xa("0xa8")](r,"accept",(()=>{this[Xa("0xf0")](n,{state:"accepted"})}),{priority:Xa("0x0")}),this[Xa("0xa8")](r,Xa("0x93"),(()=>{this[Xa("0xf0")](n,{state:"rejected"})}),{priority:"high"}),this._suggestions[Xa("0x6d")](n,r),this._suggestionState[Xa("0x6d")](r,Xa("0x5b")),r}[Xa("0xb4")](t){const e=t[Xa("0x44")](":");return{group:e[0],type:e[1],subType:e[Xa("0xd7")]>=5?e[2]:null,id:e[Xa("0xd7")]<5?e[2]:e[3],authorId:e[Xa("0xd7")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[Xa("0x70")](t,n,o){const s=t[Xa("0x15")](),i=s[Xa("0x89")],r=s[Xa("0x62")];this._setSuggestionRange(t,this[Xa("0x2c")][Xa("0xda")](i,n));const x=(0,e.uid)(),a=t[Xa("0x56")].id,c=t[Xa("0x72")]+(t.subType?":"+t[Xa("0xa5")]:"");this[Xa("0xaa")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x90")],data:t[Xa("0xa1")]}),Xa("0x79")==t[Xa("0x72")]&&(o=this[Xa("0x2c")].createPositionBefore(o.parent)),this[Xa("0xbb")](c,x,a,this[Xa("0x2c")][Xa("0xda")](o,r))}[Xa("0x39")](t,e=null){const n=[],o=this.editor[Xa("0x5e")][Xa("0x80")]("Users").me;Array[Xa("0x10b")](t)||(t=[t]);for(const s of this[Xa("0x29")]()){if(!s[Xa("0xe0")])continue;if(e&&s[Xa("0x72")]!=e)continue;let i=!1;for(const e of s[Xa("0x12b")]()){for(const r of t){const t=r[Xa("0x89")].isEqual(e[Xa("0x62")])||r.end[Xa("0x122")](e[Xa("0x89")]);if(t||r[Xa("0x18")](e)){const x=r[Xa("0x136")](e)&&Qa(this[Xa("0x2c")][Xa("0x5f")],e[Xa("0x89")],r),a=e.containsRange(r)&&Qa(this._model.schema,r[Xa("0x89")],e);n[Xa("0x8f")]({suggestion:s,meta:{isOwn:o==s.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[Xa("0xbb")](t,e,n,o,s){this[Xa("0x2c")][Xa("0x12")]((i=>{let r=Xa("0xf3")+t+":"+e+":"+n;s&&(r=r+":"+s),i[Xa("0x32")](r,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0x6a")](t){const e=t[Xa("0x106")],n=t.next;t[Xa("0x106")]=null,null!=e&&(e[Xa("0xc9")]=null),t[Xa("0xc9")]=null,null!=n&&(n[Xa("0x106")]=null),Xa("0x105")==this._suggestionState[Xa("0x80")](t)&&(this._suggestionState.set(t,Xa("0x2f")),this[Xa("0x8")](Xa("0xe5"),t,e,n))}[Xa("0xaa")](t){const n=t.id,o=this[Xa("0x9e")](t);if(this[Xa("0x12d")]&&this[Xa("0x12d")].addSuggestion){const s=this[Xa("0x3e")][Xa("0x5e")][Xa("0x80")](Xa("0x12e")),i=o.hasComments,r=o[Xa("0xa5")]?o[Xa("0x72")]+":"+o.subType:o[Xa("0x72")],x=this[Xa("0x3e")].locale,a=s[Xa("0x99")](Yo(x,Xa("0xd6"))),c={id:n,type:r,hasComments:i,data:t[Xa("0xa1")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[Xa("0x90")]};this._adapter[Xa("0x7b")](c).then((t=>{o._saved=!0,s[Xa("0x127")](a),t&&t[Xa("0x84")]&&(this[Xa("0x27")][Xa("0x80")](n)[Xa("0x84")]=t[Xa("0x84")])}))[Xa("0x3c")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[Xa("0x3e")][Xa("0x53")][Xa("0x2")]({isUndoable:!1},(()=>{o[Xa("0x93")]()})),o[Xa("0xd3")](),this._suggestions[Xa("0xf4")](o.id),this[Xa("0xe7")][Xa("0xf4")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[Xa("0x3e")][Xa("0x5e")][Xa("0x80")](Xa("0x12e")),o=this[Xa("0x100")](t);if(this._adapter&&this[Xa("0x12d")][Xa("0x10f")])if(o._saved){const o=n[Xa("0x99")](Yo(this[Xa("0x3e")][Xa("0xba")],"PENDING_ACTION_SUGGESTION"));this._adapter[Xa("0x10f")](t,e)[Xa("0x128")]((()=>{n[Xa("0x127")](o)}))}else o.on(Xa("0xf2"),(()=>{this._updateSuggestionData(t,e)}))}[Xa("0x50")](t){if(!this._adapter||!this[Xa("0x12d")][Xa("0x100")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this._adapter[Xa("0x100")](t)}[Xa("0x124")](t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0xb4")](t),i=this[Xa("0x27")].get(e)||this._createSuggestion(n,o,e,s,{});switch(this[Xa("0x81")](i,n,o,s),this._suggestionState[Xa("0x80")](i)){case Xa("0x5b"):this._getSuggestionData(e).then((t=>{let n=Promise[Xa("0xfc")]();t.hasComments&&(n=this._commentsRepository[Xa("0xfd")]({channelId:this[Xa("0x3e")][Xa("0x17")][Xa("0x80")](Xa("0x45")),threadId:e})),n[Xa("0x128")]((()=>{this[Xa("0x9e")](t)[Xa("0xd")]=!0}))})),this._suggestionState.set(i,"markerReady");break;case Xa("0x2f"):this._updateSuggestionData(e,{state:"open"});case"dataReady":this[Xa("0xe7")][Xa("0x6d")](i,Xa("0x105")),this[Xa("0x8")](Xa("0xaf"),i);break;case Xa("0x105"):this.fire("suggestionChanged",i)}return i[Xa("0x1f")](t),i}[Xa("0x9")](t){const e=Array[Xa("0x10e")](t)[Xa("0xe3")]((t=>!t.isMultiRange)),n=this[Xa("0x29")]({skipNotAttached:!0})[Xa("0xe3")]((t=>!t.isMultiRange)),o=n[Xa("0xe3")]((e=>!t[Xa("0x41")](e))),s=new Map(n.map((t=>[t,this[Xa("0xf1")][Xa("0x9d")](t[Xa("0x72")],t.subType,"chain")]))),i=new Map(n[Xa("0x103")]((t=>[t,t[Xa("0x15")]()]))),r=new Set,x=new Set;for(let t=0;t<e[Xa("0xd7")];t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0xd7")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x.has(n)&&n[Xa("0x106")]&&(n[Xa("0x106")].next===n&&(n[Xa("0x106")].next=null),n[Xa("0x106")]=null),!r[Xa("0x41")](n)&&n.next&&(n[Xa("0xc9")][Xa("0x106")]===n&&(n[Xa("0xc9")].previous=null),n[Xa("0xc9")]=null)}function a(t,e,n){for(let o=n;o<e[Xa("0xd7")];o++){const n=c(t,e[o]);n&&(n[0][Xa("0xc9")]=n[1],n[1].previous=n[0],r[Xa("0x99")](n[0]),x[Xa("0x99")](n[1]))}}function c(t,e){if(t[Xa("0xc2")].id!==e[Xa("0xc2")].id)return null;const n=s.get(t)(t,e,i[Xa("0x80")](t),i[Xa("0x80")](e));return n&&s[Xa("0x80")](e)(t,e,i[Xa("0x80")](t),i[Xa("0x80")](e))?n[1][Xa("0xa4")]&&n[1].commentThread[Xa("0xd7")]?null:n:null}}[Xa("0x133")](t){const e=Array[Xa("0x10e")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n.filter((e=>!t[Xa("0x41")](e))),s=new Map(e[Xa("0x103")]((t=>[t,this._suggestionFactory[Xa("0x9d")](t[Xa("0x72")],t[Xa("0xa5")],Xa("0x23"))]))),i=new Map(n[Xa("0x103")]((t=>[t,t[Xa("0x12b")]()])));for(let t=0;t<e.length;t++)if(r(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(r(this,e[t],o,0))return!0;return!1;function r(t,e,n,o){for(let r=o;r<n[Xa("0xd7")];r++){const o=n[r];if(o.type!==e.type||o[Xa("0xc2")].id!==e.author.id||o[Xa("0xa5")]!==e[Xa("0xa5")])continue;if(!sc(e,o))continue;const x=s.get(e),a=i.get(e),c=i[Xa("0x80")](o),l=e[Xa("0xa4")]&&e[Xa("0xa4")][Xa("0xd7")],d=o[Xa("0xa4")]&&o[Xa("0xa4")].length;if(!l&&x(c,a))return t._joinSuggestions(o,e),i[Xa("0xf4")](e),!0;if(!d&&x(a,c))return t[Xa("0xbc")](e,o),i[Xa("0xf4")](o),!0}return!1}}_joinSuggestions(t,e){if(t[Xa("0x59")])for(const n of e[Xa("0x12b")]())t[Xa("0x132")](n);else{const n=e.getFirstRange().end;this._setSuggestionRange(t,this._model.createRange(t[Xa("0x15")]()[Xa("0x89")],n))}e[Xa("0xc7")]()}}class Ja{constructor(t){this[Xa("0x10c")]=t,this[Xa("0x2c")]=t[Xa("0x53")],this[Xa("0xdd")]=new Map,this._defaultCallbacks=new Map,this[Xa("0xbe")]()}buildSuggestion(t,e,n,o,s,i){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:i,onAccept:(...n)=>this[Xa("0x9d")](t,e,Xa("0x69"))(...n),onDiscard:(...n)=>this[Xa("0x9d")](t,e,Xa("0x93"))(...n)})}[Xa("0x63")](t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0xdd")][Xa("0x6d")](s,o)}[Xa("0x9d")](t,e,n){const o=t+":"+e+":"+n;return this[Xa("0xdd")].get(o)||this[Xa("0x4c")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[Xa("0x11c")](((t,e)=>t[Xa("0x89")].isBefore(e[Xa("0x89")])?1:-1)),this[Xa("0x2c")].change((e=>{for(const n of t){let t;t=n[Xa("0x62")].isAtEnd&&n.end.parent==n.start.nodeAfter?e[Xa("0x114")](n.start.nodeAfter,"on"):e.createSelection(n),this[Xa("0x2c")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0x2c")][Xa("0x12")]((n=>{const{commandName:o,commandParams:s=[]}=e,i=t[Xa("0x103")]((t=>(Za(t)&&(t=this[Xa("0x2c")][Xa("0xda")](t[Xa("0x62")])),t)))[Xa("0xe3")]((t=>"$graveyard"!==t[Xa("0x131")][Xa("0x8b")]));if(i.length<1)return;const x=Array[Xa("0x10e")](this[Xa("0x2c")].document[Xa("0xc")].getRanges())[Xa("0x103")]((t=>r.LiveRange.fromRange(t)));n[Xa("0x5c")](i);for(const t of this[Xa("0x10c")].commands[Xa("0xfa")]())t[Xa("0x11b")]();s[Xa("0x8f")]({forceDefaultExecution:!0}),this[Xa("0x10c")][Xa("0x11a")](o,...s);const a=x[Xa("0xe3")]((t=>Xa("0x75")!=t.root[Xa("0x8b")]));a[Xa("0xd7")]>0&&n.setSelection(a);for(const t of x)t[Xa("0x1c")]()}))},o=(t,e)=>1==t[Xa("0xd7")]&&1==e.length&&t[0].end.isEqual(e[0][Xa("0x89")]),s=(t,e,n,o)=>oc(t,e,n,o,this[Xa("0x2c")])?[t,e]:oc(e,t,o,n,this[Xa("0x2c")])?[e,t]:null;this._defaultCallbacks[Xa("0x6d")](Xa("0x12f"),t),this._defaultCallbacks[Xa("0x6d")]("insertion:discard",e),this[Xa("0x4c")][Xa("0x6d")](Xa("0x14"),o),this[Xa("0x4c")][Xa("0x6d")]("insertion:chain",s),this._defaultCallbacks[Xa("0x6d")]("deletion:accept",e),this[Xa("0x4c")][Xa("0x6d")]("deletion:discard",t),this[Xa("0x4c")][Xa("0x6d")](Xa("0x117"),o),this[Xa("0x4c")][Xa("0x6d")](Xa("0xd0"),s),this._defaultCallbacks.set(Xa("0xd9"),n),this[Xa("0x4c")][Xa("0x6d")]("formatInline:discard",t),this[Xa("0x4c")][Xa("0x6d")](Xa("0x7d"),o),this[Xa("0x4c")].set(Xa("0xe2"),t),this[Xa("0x4c")][Xa("0x6d")](Xa("0x12c"),n),this[Xa("0x4c")].set("formatBlock:discard",t),this._defaultCallbacks[Xa("0x6d")](Xa("0x74"),o),this[Xa("0x4c")][Xa("0x6d")]("formatBlock:chain",t)}}function Qa(t,e,n){for(const o of e[Xa("0x3a")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[Xa("0x131")]==o)return!1;if(!n[Xa("0xe8")](o))return!1;if(t[Xa("0xa3")](o)||t[Xa("0xfb")](o))return!0}return!1}function Za(t){return t[Xa("0x62")][Xa("0x3a")]==t[Xa("0x89")][Xa("0x82")]&&t[Xa("0x62")][Xa("0xee")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0x5d")].is("$textProxy")&&!o.isObject(t[Xa("0x5d")]),i=t[Xa("0x89")][Xa("0x11")](s),r=t[Xa("0x62")][Xa("0x11")](s,{direction:Xa("0x33")});return!(t[Xa("0x89")].isEqual(i)&&t[Xa("0x62")][Xa("0x122")](r)||(i.isBefore(r)?n[Xa("0x51")](e,{range:n[Xa("0xda")](i,r)}):n.removeMarker(e),0))}function tc(t){return(0,i.hashObject)(t)}function ec(t){const e=t.start[Xa("0x82")];return e&&e.is(Xa("0xed"))}function nc(t,e){const n=e[Xa("0x5f")][Xa("0xa3")](t)||e.schema[Xa("0x8d")](t);return e[Xa("0xda")](e[Xa("0xf8")](t,Xa("0x118")),n?e[Xa("0x87")](t):e[Xa("0xf8")](t,Xa("0x62")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n.end[Xa("0x122")](o.start))return!0;if(t.type!=e.type)return!1;if(!n.end.isTouching(o[Xa("0x89")]))return!1;const i=s[Xa("0xda")](n[Xa("0x62")],o[Xa("0x89")])[Xa("0xf6")]();for(const t of i)if([Xa("0x126"),Xa("0x125")].includes(t.type)&&s[Xa("0x5f")][Xa("0xfb")](t[Xa("0x5d")]))return!1;return!0}function sc(t,e){return!(!t[Xa("0x12a")]||!e._isDataLoaded)&&Go(t[Xa("0x90")],e[Xa("0x90")])}function ic(t,e){const n=rc(t.attributes),o=rc(e);if(!t[Xa("0x12a")])return!1;for(const t of Object[Xa("0x76")](o))if(!Go(n[t],o[t]))return!1;return!0}function rc(t){const e=Object[Xa("0x120")]({},t);return delete e[Xa("0xc8")],delete e.tablePasteChainId,e}const xc=["plugins","get","bind","execute","commentThreadController","canEditAt","_acceptCommand","acceptSuggestion","_discardCommand","canAccept","locale","unbind","commands","change:isDirty","isDirty","discardSuggestion","destroy","isEnabled","_setPendingAction","stopListening","listenTo","_removePendingAction","_pendingAction","getRanges","view","_editor","model"];var ac,cc;ac=xc,cc=260,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this[lc("0x7")]=n,this[lc("0xe")]=o,this[lc("0x8")]=t,this[lc("0x10")]=t[lc("0x16")][lc("0xb")](lc("0x11")),this._discardCommand=t.commands[lc("0xb")]("discardSuggestion"),this[lc("0x7")][lc("0xc")](lc("0x0")).to(this[lc("0x10")],this._discardCommand,((t,e)=>t||e)),this[lc("0x7")][lc("0xc")](lc("0x13")).to(this[lc("0x10")],"isEnabled",(t=>t&&this[lc("0x8")][lc("0x9")][lc("0xf")](e[lc("0x6")]()))),this[lc("0x7")].bind("canDiscard").to(this[lc("0x12")],lc("0x0"),(t=>t&&this[lc("0x8")][lc("0x9")][lc("0xf")](e[lc("0x6")]()))),this._pendingAction=null,n[lc("0x18")]&&this._setPendingAction(),this[lc("0x3")](n,lc("0x11"),(()=>this[lc("0x11")]())),this[lc("0x3")](n,lc("0x19"),(()=>this[lc("0x19")]())),this[lc("0x3")](n,lc("0x17"),(()=>{n[lc("0x18")]?this[lc("0x1")]():this._removePendingAction()}))}[lc("0x11")](){this[lc("0x10")].execute(this[lc("0x9")].id)}discardSuggestion(){this[lc("0x12")][lc("0xd")](this.model.id)}[lc("0x1a")](){this[lc("0x7")][lc("0x15")]("isEnabled"),this[lc("0x7")][lc("0x15")](lc("0x13")),this[lc("0x7")][lc("0x15")]("canDiscard"),this[lc("0x2")](),this[lc("0xe")].destroy(),this._pendingAction&&this[lc("0x4")]()}_setPendingAction(){const t=Yo(this[lc("0x8")][lc("0x14")],"PENDING_ACTION_SUGGESTION");this._pendingAction=this[lc("0x8")][lc("0xa")].get("PendingActions").add(t)}[lc("0x4")](){null!==this[lc("0x5")]&&this._editor.plugins[lc("0xb")]("PendingActions").remove(this[lc("0x5")]),this._pendingAction=null}}const uc=["editorConfig","removeComment","disableComments","destroy","descriptionParts","submit","canDiscard","delegate","authoredAt","focus","_createCommentThreadInputView","canAccept","commentsListView","value","disabledSubmit","updateComment","_config","set","element","commentThread","commentInputView","CommentView","isActive","length","_localUser","commentThreadInputView","_createCommentViews","locale","showInput","setData","fire","isReadOnly","_model","isDirty","bind"];var gc,mc;gc=uc,mc=392,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[fc("0x5")]=null,this.commentThreadInputView=null,this.set(fc("0xf"),!1),this[fc("0xa")](fc("0x1"),e[fc("0x1")]),this[fc("0x1b")](fc("0x1")).to(e),this[fc("0xa")](fc("0x20"),[]),this.set(fc("0x1a"),!1),this.set("isEnabled",!1),this[fc("0xa")](fc("0x4"),!1),this[fc("0xa")](fc("0x22"),!1),this[fc("0x19")]=e,this[fc("0x11")]=n,this[fc("0x9")]=o,o[fc("0x1e")]?this.set("length",1):this[fc("0x13")]()}[fc("0x2")](){this[fc("0xb")].focus()}destroy(){this[fc("0x5")]&&this.commentsListView[fc("0x1f")](),this.commentThreadInputView&&this[fc("0x12")].destroy(),super[fc("0x1f")]()}_createCommentViews(){const{CommentsListView:t}=this[fc("0x9")];this[fc("0x5")]=new t(this.locale,this[fc("0x19")][fc("0xc")],Object.assign({CommentView:this[fc("0x9")][fc("0xe")]},this[fc("0x9")])),this[fc("0x5")].delegate(fc("0x1d")).to(this),this[fc("0x5")][fc("0x0")](fc("0x8")).to(this),this[fc("0x5")][fc("0x1b")]("isActive").to(this),this.set(fc("0x10"),this[fc("0x5")][fc("0x10")]+1),this[fc("0x1b")](fc("0x10")).to(this[fc("0x5")],"length",(t=>t+1)),this[fc("0x12")]=this[fc("0x3")](),this.on(fc("0x1d"),(()=>this[fc("0x2")]())),this[fc("0x1b")]("isDirty").to(this.commentsListView,"hasDirtyComment",this.commentThreadInputView[fc("0xd")],fc("0x6"),((t,e)=>t||!!e))}[fc("0x3")](){const{CommentThreadInputView:t}=this[fc("0x9")],e=new t(this[fc("0x14")],this._localUser,this._config[fc("0x1c")]),n=e[fc("0xd")];return e[fc("0x1b")](fc("0x15")).to(this,"isActive",this[fc("0x19")][fc("0xc")],fc("0x18"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(fc("0x21"),((t,e)=>{this[fc("0x17")]("addComment",e),n.editor[fc("0x16")]("")})),n.on("cancel",(()=>this[fc("0x2")]())),n[fc("0x1b")](fc("0x7")).to(this[fc("0x19")].commentThread,fc("0x18")),e}}const pc=["isEnabled","ck-annotation__user",'<span class="ck-suggestion-color" style="background-color: ',"editorReady","fire","ck-suggestion__main","map","commentThread","ck-comment__external","EXTERNAL_AVATAR","title","importWord","getUserViewNotificationText","ck-annotation__info","description","extendTemplate","ck-suggestion__user","time","delegate","bind",'" title="',"descriptionParts","execute","@external","EXTERNAL_SUGGESTION","userView","getExternalSuggestionNote","_descriptionElement","_config","attributes","set","discardSuggestion","ck-comment__info-time","_model","formatDateTime","source","ck-suggestion-wrapper--active","element","acceptButton","div","getTemplate","canDiscard","check",'<span class="ck-suggestion-type">',"isExternal","ck-annotation__main","creator","bindTemplate","querySelector","type","_createButton","children","authoredAt","ck-suggestion__info-name","acceptSuggestion","createElement","cancel","locale","commentsListView","push","content","</p>","ck-suggestion__actions","render","ck-suggestion--disabled-comments","Discard suggestion","name","<p>","ck-suggestion","ck-suggestion__info","innerHTML","editorDestroyed","ck-annotation__info-time","innerText","span","commentThreadInputView","disableComments","ck-annotation__actions","ck-annotation","ck-suggestion-wrapper","Accept suggestion","EXTERNAL_IMPORT_WORD_SUGGESTION","value","author","discardButton","isActive","setTemplate"];var bc,Ec;bc=pc,Ec=496,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends hc{constructor(e,n,o,s){super(e,n,o,s),this[_c("0x38")](_c("0x4b"),""),this[_c("0x2d")](_c("0x4b")).to(this,_c("0x2f"),(t=>t&&t[0]?t[0][_c("0x4b")]:"")),this[_c("0x2d")](_c("0x28")).to(this,_c("0x2f"),this,_c("0x18"),((t,e)=>{let n="";for(const e of t)n+=_c("0x6")+Cc(e[_c("0x56")],e.color)+_c("0x0");return e?n:(0,i.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this.acceptButton=this[_c("0x4c")](Yo(e,_c("0x13")),t.icons[_c("0x44")],"ck-suggestion--accept",_c("0x50"),"sw"),this.acceptButton[_c("0x2d")](_c("0x1a")).to(this,"canAccept"),this[_c("0x17")]=this._createButton(Yo(e,_c("0x4")),t.icons[_c("0x52")],"ck-suggestion--discard",_c("0x39"),"sw"),this[_c("0x17")][_c("0x2d")](_c("0x1a")).to(this,_c("0x43")),this.userView=new i.UserView(e,this[_c("0x3b")][_c("0x16")],this.getUserViewNotificationText()),this[_c("0x33")][_c("0x29")]({attributes:{class:[_c("0x2a"),_c("0x1b")]}}),this[_c("0x19")](this.getTemplate())}[_c("0x42")](){const t=this[_c("0x49")],e=[{tag:_c("0x41"),attributes:{class:[_c("0x8"),_c("0x27")]},children:[{tag:_c("0xd"),children:[{text:this[_c("0x33")][_c("0x5")]}],attributes:{class:[_c("0x4f"),"ck-annotation__info-name"]}},{tag:_c("0x2b"),attributes:{datetime:t.to(_c("0x4e")),class:[_c("0x3a"),_c("0xb")]},children:[{text:t.to(_c("0x4e"),(t=>this[_c("0x36")][_c("0x3c")](t)))}]}]},{tag:"div",attributes:{class:[_c("0x1"),_c("0x10")]},children:[this[_c("0x40")],this.discardButton]},{tag:"div",attributes:{class:["ck-annotation__content-wrapper"]}}];this[_c("0x3b")][_c("0x46")]&&e[_c("0x55")]({tag:_c("0x41"),attributes:{class:[_c("0x22")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:_c("0x41"),attributes:{class:[_c("0x12"),t.if(_c("0x18"),_c("0x3e")),t.to(_c("0x4b"),(t=>"ck-suggestion-"+t)),this[_c("0x36")][_c("0xf")]&&_c("0x3")],"data-suggestion-id":this[_c("0x3b")].id,"data-thread-id":this[_c("0x3b")][_c("0x21")].id,"data-author-id":this._model[_c("0x16")].id,tabindex:-1},children:[{tag:_c("0x41"),attributes:{class:[_c("0x7"),_c("0x11")]},children:[this[_c("0x33")],{tag:_c("0x41"),attributes:{class:[_c("0x1f"),_c("0x47")]},children:e}]}]};return this[_c("0x54")]&&this[_c("0xe")]&&(n[_c("0x4d")][_c("0x55")](this[_c("0x54")],this[_c("0xe")]),this[_c("0x54")][_c("0x2c")](_c("0x1d")).to(this),this[_c("0x54")][_c("0x2c")](_c("0xa")).to(this),this[_c("0xe")][_c("0x2c")](_c("0x1d")).to(this),this[_c("0xe")][_c("0x2c")](_c("0xa")).to(this)),n}[_c("0x2")](){super.render(),this._descriptionElement=this[_c("0x3f")][_c("0x4a")](".ck-annotation__content-wrapper"),this._descriptionElement.innerHTML=this[_c("0x28")],this.on("change:description",((t,e,n)=>{this[_c("0x35")][_c("0x9")]=n}))}[_c("0x4c")](t,e,n,o,i){const r=new s.ButtonView(this[_c("0x53")]);return r[_c("0x38")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),r[_c("0x29")]({attributes:{class:n}}),r.on(_c("0x30"),(()=>{this[_c("0x1e")](o,this[_c("0x3b")].id)})),r}[_c("0x34")](){return _c("0x25")===this[_c("0x3b")][_c("0x37")][_c("0x31")].source?Yo(this[_c("0x53")],_c("0x14")):Yo(this[_c("0x53")],_c("0x32"))}[_c("0x26")](){return this[_c("0x3b")][_c("0x46")]?_c("0x25")===this[_c("0x3b")].attributes[_c("0x31")][_c("0x3d")]?Yo(this.locale,"EXTERNAL_IMPORT_WORD_AVATAR",this[_c("0x3b")][_c("0x48")].name):Yo(this[_c("0x53")],_c("0x23"),this[_c("0x3b")].creator.name):null}}function Cc(t,e){let n="";return n+=t.split("*")[_c("0x20")](((t,e)=>e%2!=0?_c("0x45")+yc(t)+"</span>":yc(t))).join(""),e&&(n+=_c("0x1c")+e[_c("0x15")]+_c("0x2e")+e[_c("0x24")]+'"></span>'),n}function yc(t){const e=document[_c("0x51")]("span");return e[_c("0xc")]=t,e[_c("0x9")]}const kc=["getJoined","trackChanges","suggestionLoaded","head","commands","getMarkers","_handleSuggestionControllerDelayed","_handleControllerBuffer","view","hasSuggestion","change:previous","getSuggestion","getFirstRange","_annotationViews","separator","EditorAnnotations","createCommentThreadController","remove","_suggestionToController","addSourceCollector","TrackChangesUI","Annotations","getDescriptions","has","some","editing","getRanges","_descriptionFactory","type","CommentsRepository","isEnabled","set","bind","plugins","stopListening","discardAllSuggestions","comments.maxCommentsWhenCollapsed","change:activeAnnotations","get","isDirty","trackChanges.disableComments","_createUIButton","_initializeController","_disableComments","define","CommentView","createAnnotationView","mainView","CommentsUI","createAnnotation","locale","acceptSelectedSuggestions","pluginName","lowest","filter","discardButton","button","unbind","acceptButton","suggestionChanged","value","push","_viewToController","getAllAdjacentSuggestions","isInContent","destroy","innerView","_destroyController","componentFactory","editor","activeAnnotations","comments.editorConfig","listenTo","buttonView","values","commandName","_updateController","Accept all suggestions","size","requires","TrackChangesEditing","arrowView","execute","length","comments.maxCommentCharsWhenCollapsed","isOn","clear","reduce","Discard all selected suggestions","registerAnnotation","descriptionParts","_refreshActiveMarkers","_bindAnnotationToEditors","model","discardSelectedSuggestions","getMarkerNames","Discard all suggestions","isMultiRange","suggestion-","map","actionView","focus","commentThread","config","_unbindEditors","delete","add","toMany","getByInnerView"];var Ac,vc;Ac=kc,vc=103,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Ic extends t.Plugin{static get[Rc("0x55")](){return[$a,i.Users,Rc("0x23"),Rc("0x1b"),Rc("0x15")]}static get[Rc("0x3a")](){return Rc("0x1a")}constructor(t){super(t),this[Rc("0x18")]=new Map,this[Rc("0x44")]=new Map,this[Rc("0x13")]=new Map,this[Rc("0xd")]=new Map;const e=this[Rc("0x4b")][Rc("0x0")];e[Rc("0x32")]("trackChanges.SuggestionThreadView",Tc),e[Rc("0x32")](Rc("0x2e"),!1),this._disableComments=e.get(Rc("0x2e"))}[Rc("0xc")](t,e){0===this[Rc("0xd")][Rc("0x54")]&&setTimeout((()=>{for(const[t,e]of this[Rc("0xd")]){const n=this._suggestionToController[Rc("0x1d")](t);n||e?n&&e&&this._destroyController(t):this[Rc("0x30")](t)}this[Rc("0x4b")][Rc("0x27")][Rc("0x2c")](Rc("0x15")).refreshSelectedViews(),this._refreshActiveMarkers(),this[Rc("0xd")][Rc("0x5c")]()}),10),this._handleControllerBuffer.set(t,e)}init(){const t=this[Rc("0x4b")],e=t[Rc("0x27")][Rc("0x2c")](Rc("0x56")),n=t[Rc("0x27")][Rc("0x2c")]("Annotations"),o=t[Rc("0x27")].get(Rc("0x15")),s=t[Rc("0x27")][Rc("0x2c")](Rc("0x23"));t.ui[Rc("0x4a")].add(Rc("0x7"),(t=>this[Rc("0x2f")](t))),o[Rc("0x19")]((()=>{const t=[];for(const[e,n]of Array.from(this._suggestionToController)){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Rc("0x67")]){s[Rc("0x43")](...t[Rc("0x20")]());continue}const e=t[Rc("0x12")]();if(s[Rc("0x59")]>0){const t=s[0][Rc("0x6")](e);if(t){s[0]=t;continue}}s.push(e)}t[Rc("0x43")]([n[Rc("0xe")],s])}return t})),this[Rc("0x4e")](e,Rc("0x8"),((t,e)=>{this[Rc("0x4e")](e,Rc("0x10"),((t,n,o,s)=>{e[Rc("0x46")]&&(null==o?(this._updateController(s.head),this._handleSuggestionControllerDelayed(e,!1)):(this._updateController(o[Rc("0x9")]),this[Rc("0xc")](e,!0)))})),null===e.previous?this[Rc("0xc")](e,!1):this[Rc("0x52")](e[Rc("0x9")])})),this[Rc("0x4e")](e,"suggestionUnloaded",((t,e,n)=>{this[Rc("0x28")](e,"change:previous"),this._handleControllerBuffer.delete(e);const o=n?n[Rc("0x9")]:e,s=this[Rc("0x18")][Rc("0x2c")](o);null!==n&&this[Rc("0x52")](o),null===n&&s&&this._destroyController(e)})),this[Rc("0x4e")](e,Rc("0x41"),((t,e)=>{this[Rc("0x52")](e)})),this[Rc("0x4e")](n,Rc("0x2b"),(()=>{this[Rc("0x61")]()})),this[Rc("0x4e")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0xf")](n))return;const s=e[Rc("0x11")](n);this[Rc("0x18")].get(s)[Rc("0xe")].focus()}),{priority:Rc("0x3b")})}_refreshActiveMarkers(){const t=this.editor[Rc("0x27")][Rc("0x2c")](Rc("0x1b")),e=this.editor[Rc("0x27")][Rc("0x2c")]("TrackChangesEditing"),n=Array.from(t[Rc("0x4c")],(t=>t[Rc("0x48")]))[Rc("0x3c")]((t=>this._viewToController[Rc("0x1d")](t))),o=[];for(const t of n){const e=this[Rc("0x44")][Rc("0x2c")](t)[Rc("0x63")][Rc("0x45")]();o[Rc("0x43")](...e[Rc("0x5d")](((t,e)=>[...t,...e[Rc("0x65")]()]),[]))}e.activeMarkers=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Rc("0xa")][Rc("0x2c")](Rc("0x7")),i=Yo(t,"Track changes");n.buttonView[Rc("0x25")]({tooltip:i,label:i,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Rc("0x4f")].bind(Rc("0x5b")).to(o,"value"),n.buttonView.on(Rc("0x58"),(()=>{o[Rc("0x58")](),this[Rc("0x4b")].editing[Rc("0xe")][Rc("0x6b")]()}));const r=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:i,commandName:Rc("0x7")}},{type:Rc("0x14")},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x53")),commandName:"acceptAllSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Rc("0x39")}},{type:Rc("0x3e"),model:{withText:!0,label:Yo(t,Rc("0x66")),commandName:Rc("0x29")}},{type:Rc("0x3e"),model:{withText:!0,label:Yo(t,Rc("0x5e")),commandName:Rc("0x64")}}];for(const t of x){let e={type:"separator"};if(t.model){const n=new s.Model(t[Rc("0x63")]),o=this[Rc("0x4b")][Rc("0xa")][Rc("0x2c")](n[Rc("0x51")]);n[Rc("0x26")](Rc("0x5b"),Rc("0x24")).to(o,Rc("0x42"),Rc("0x24")),e={type:t[Rc("0x22")],model:n}}r[Rc("0x3")](e)}(0,s.addListToDropdown)(n,r);const a=x[Rc("0x3c")]((t=>null!=t.model))[Rc("0x69")]((t=>this[Rc("0x4b")].commands[Rc("0x2c")](t[Rc("0x63")].commandName))),c=n[Rc("0x4f")];return c[Rc("0x6a")][Rc("0x3f")](Rc("0x24")),c[Rc("0x57")][Rc("0x3f")](Rc("0x24")),c[Rc("0x6a")].bind(Rc("0x24")).to(o,Rc("0x24")),c[Rc("0x57")][Rc("0x26")](Rc("0x24"))[Rc("0x4")](a,Rc("0x24"),((...t)=>t[Rc("0x1e")]((t=>t)))),n.on("execute",(t=>{this[Rc("0x4b")][Rc("0x58")](t.source[Rc("0x51")]),this[Rc("0x4b")][Rc("0x1f")][Rc("0xe")][Rc("0x6b")]()})),n}[Rc("0x30")](t){const e=this[Rc("0x4b")],n=e[Rc("0x0")],o=e.plugins[Rc("0x2c")]("Annotations"),s=e[Rc("0x27")][Rc("0x2c")](Rc("0x23")),r=e[Rc("0x27")].get(Rc("0x15")),x=e.plugins.get(i.Users).me,a=n[Rc("0x2c")](Rc("0x7")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x27")][Rc("0x2c")](Rc("0x36"));let d,u;this[Rc("0x13")][Rc("0x1d")](t.id)?(u=this[Rc("0x13")].get(t.id),d=u.mainView):(d=new a(e[Rc("0x38")],t,x,{disableComments:this[Rc("0x31")],editorConfig:n[Rc("0x2c")](Rc("0x4d")),maxCommentsWhenCollapsed:n.get(Rc("0x2a")),maxThreadTotalWeight:n[Rc("0x2c")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Rc("0x2c")](Rc("0x5a")),formatDateTime:(0,i.getDateTimeFormatter)(n[Rc("0x2c")](Rc("0x38"))),CommentView:n[Rc("0x2c")]("comments")[Rc("0x33")],CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x40")].on(Rc("0x58"),(()=>{e[Rc("0x1f")][Rc("0xe")].focus()})),d[Rc("0x3d")].on("execute",(()=>{e[Rc("0x1f")].view.focus()})),u=o[Rc("0x34")](this.editor[Rc("0x38")],d),u[Rc("0x26")](Rc("0x2d")).to(d,Rc("0x2d")),u[Rc("0x26")](Rc("0x59")).to(d),u[Rc("0x26")]("type").to(d,"type",(t=>Rc("0x68")+t)),this[Rc("0x13")][Rc("0x25")](t.id,u));const g=s[Rc("0x16")](t[Rc("0x6c")],d),m=new dc(e,t,d,g),f=t.getAllAdjacentSuggestions()[Rc("0x3c")]((t=>t[Rc("0x46")]));d[Rc("0x60")]=e.plugins[Rc("0x2c")](Rc("0x56"))[Rc("0x21")][Rc("0x1c")](f),this[Rc("0x18")][Rc("0x25")](t,m),this[Rc("0x44")][Rc("0x25")](d,m);const h=o[Rc("0x37")]({view:u,target:()=>{const n=[],o=t[Rc("0x45")]()[Rc("0x3c")]((t=>t.isInContent));for(const t of o)n[Rc("0x43")](...t[Rc("0xb")]());return(0,i.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Rc("0x68")+m[Rc("0xe")][Rc("0x22")]});s[Rc("0x62")](d,h),o.add(h),r[Rc("0x5f")](h)}[Rc("0x49")](t){const e=this[Rc("0x4b")][Rc("0x27")].get(Rc("0x23")),n=this[Rc("0x4b")][Rc("0x27")][Rc("0x2c")](Rc("0x1b")),o=this[Rc("0x18")][Rc("0x2c")](t),s=o[Rc("0xe")],i=n[Rc("0x5")](s);e[Rc("0x1")](s),i&&n[Rc("0x17")](i),this._suggestionToController[Rc("0x2")](t),this[Rc("0x44")][Rc("0x2")](s),o[Rc("0x47")]()}[Rc("0x52")](t){if(!t.isInContent||!this[Rc("0x18")][Rc("0x1d")](t))return;const e=this[Rc("0x4b")][Rc("0x27")][Rc("0x2c")](Rc("0x56")),n=this[Rc("0x18")][Rc("0x2c")](t),o=t.getAllAdjacentSuggestions();n[Rc("0xe")][Rc("0x60")]=e[Rc("0x21")][Rc("0x1c")](o)}destroy(){for(const t of this[Rc("0x18")].keys())this[Rc("0x49")](t);for(const t of this._annotationViews[Rc("0x50")]())t[Rc("0x35")][Rc("0x47")]();super[Rc("0x47")]()}}var Sc,Lc,Nc=["getSuggestions","editor","requires","adapter","plugins","addSuggestionData","get","TrackChanges","Comments","getSuggestion"];Sc=Nc,Lc=219,function(t){for(;--t;)Sc.push(Sc.shift())}(++Lc);var wc=function(t,e){return Nc[t-=0]};class Mc extends t.Plugin{static get[wc("0x3")](){return[$a,Ic,wc("0x9")]}static get pluginName(){return wc("0x8")}set[wc("0x4")](t){this.editor[wc("0x5")].get($a)[wc("0x4")]=t}get[wc("0x4")](){return this[wc("0x2")][wc("0x5")].get($a).adapter}addSuggestion(t){return this[wc("0x2")].plugins[wc("0x7")]($a)[wc("0x6")](t)}[wc("0x1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[wc("0x5")][wc("0x7")]($a).getSuggestions({skipNotAttached:t,toJSON:e})}[wc("0x0")](t){return this.editor[wc("0x5")][wc("0x7")]($a)[wc("0x0")](t)}}const Oc=["init","createElement","function","TrackChangesDataGetter","model","CommentsRepository","editor","users","plugins","execute","acceptAllSuggestions","requires","TrackChangesEditing","getFullData","get","data","name","constructor","end","push","config","reduce","define","createDocumentFragment","useAnonymousUser","editorCreator","track-changes-data-invalid-editor-creator","getSuggestions","destroy","document","_adapter","TrackChangesData","trackChangesData","pluginName","getDataWithDiscardedSuggestions","Users","getUser","div","map","getRootNames","Pagination","getDataWithAcceptedSuggestions","set","addUser","getRootsAttributes","result"];var Fc,Pc;Fc=Oc,Pc=257,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0xd")];class jc extends t.Plugin{static get[Dc("0x1e")](){return[$a]}static get[Dc("0x6")](){return Dc("0x4")}[Dc("0x13")](){const t=this[Dc("0x19")];if(t[Dc("0x27")][Dc("0x29")]("trackChangesData.editorCreator",(e=>{const n=t[Dc("0x17")][Dc("0x2")].getRootNames()[Dc("0x28")](((t,e)=>(t[e]="",t)),{});return t[Dc("0x24")].create(n,e)})),Dc("0x15")!=typeof t[Dc("0x27")][Dc("0x21")](Dc("0x5"))[Dc("0x2c")])throw new e.CKEditorError(Dc("0x2d"))}[Dc("0xe")](t){return Hc(this.editor,!0,t)}[Dc("0x7")](t){return Hc(this[Dc("0x19")],!1,t)}}class Uc extends t.Plugin{static get pluginName(){return Dc("0x16")}constructor(t){super(t),this[Dc("0x12")]=Dc("0x25")}[Dc("0x13")](){this[Dc("0x19")][Dc("0x1b")][Dc("0x21")](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("0x19")][Dc("0x1b")][Dc("0x21")]("TrackChangesEditing")[Dc("0x3")]=null}}function Gc(t){return void 0!==t[Dc("0x11")]}async function Hc(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,Bc);o[Dc("0x1b")][Dc("0x26")]($a,Uc),o.rootsAttributes=Gc(t)?t[Dc("0x11")]():void 0;const s=document[Dc("0x2a")](),r=t[Dc("0x27")][Dc("0x21")](Dc("0x5"))[Dc("0x2c")],x=await r(o,(()=>function(t){const e=document[Dc("0x14")](Dc("0xa"));return t.appendChild(e),e}(s)));!function(t,e){const n=t.model[Dc("0x2")][Dc("0xc")]()[Dc("0x28")](((e,n)=>(e[n]=t.data[Dc("0x21")]({rootName:n}),e)),{}),o=t[Dc("0x1b")][Dc("0x21")](Dc("0x8"))[Dc("0x1a")][Dc("0xb")]((t=>({id:t.id,name:t[Dc("0x23")]}))),s=t.plugins[Dc("0x21")](Dc("0x1f"))[Dc("0x0")]({skipNotAttached:!0,toJSON:!0}),i=e.plugins[Dc("0x21")](Dc("0x8")),r=e[Dc("0x1b")][Dc("0x21")](Dc("0x1f"));for(const t of o)i[Dc("0x9")](t.id)||i[Dc("0x10")](t);i.me||i[Dc("0x2b")]();for(const t of s)r.addSuggestionData(t);e.data[Dc("0xf")](n)}(t,x),x[Dc("0x1c")](e?Dc("0x1d"):"discardAllSuggestions");const a=Gc(x)?x[Dc("0x20")](n):x[Dc("0x22")][Dc("0x21")](n);return await x[Dc("0x1")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>hc,TrackChanges:()=>Mc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["editor","affectsData","value","_enabledCommands","_disableUnsupportedCommands","has","TrackChangesCommand","clearForceDisabled","_enableCommands","refresh","commands","forceDisabled","isEnabled"];var c,l;c=a,l=137,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[d("0x8")]=!1,this.refresh(),this._isEnabledBasedOnSelection=!1}[d("0x2")](){this[d("0x5")]=!0}execute(){this.value=!this[d("0x8")],this.value?this[d("0xa")]():this[d("0x1")]()}[d("0xa")](){for(const t of this[d("0x6")][d("0x3")][d("0x3")]())t.affectsData&&!this[d("0x9")][d("0xb")](t)&&t[d("0x4")](d("0xc"))}_enableCommands(){for(const t of this[d("0x6")][d("0x3")].commands())t[d("0x7")]&&!this[d("0x9")][d("0xb")](t)&&t[d("0x0")](d("0xc"))}}const g=["model","track-changes-accept-suggestion-not-found","TrackChangesEditing","get","getRanges","refresh","editor"];var m,f;m=g,f=121,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("0x3")](),this._isEnabledBasedOnSelection=!1}refresh(){this.isEnabled=!0}execute(t){const n=this._suggestions[h("0x1")](t);if(!n)throw new e.CKEditorError(h("0x6"),this);const o=n[h("0x2")]();this[h("0x4")][h("0x5")].canEditAt(o)&&this[h("0x4")].plugins[h("0x1")](h("0x0")).acceptSuggestion(n)}}const b=["canEditAt","execute","refresh","isEnabled","model","discardSuggestion","get","editor","getRanges","TrackChangesEditing","_isEnabledBasedOnSelection","plugins"];var E,_;E=b,_=168,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._suggestions=e,this[T("0x2")](),this[T("0xa")]=!1}[T("0x2")](){this[T("0x3")]=!0}[T("0x1")](t){const n=this._suggestions[T("0x6")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x8")]();this.editor[T("0x4")][T("0x0")](o)&&this[T("0x7")][T("0xb")][T("0x6")](T("0x9"))[T("0x5")](n)}}const y=["isArray","join","end","isMultiRange","push","type","isIntersecting","map","length","replace","sort","add","isObject","value","schema","createRange","getRanges","next","deletion","color","start","isTouching","createPositionAt","createPositionBefore","execute","isInContent","createPositionAfter","content"];var k,A;k=y,A=142,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x8")](((t,e)=>v("0x10")==t[v("0x3")]&&v("0x10")!=e.type?-1:v("0x10")!=t[v("0x3")]&&"deletion"==e[v("0x3")]?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0xc")];for(;o<t[v("0x6")];){const i=t[o],x=t[o+1];n||(n=e[v("0x15")](i)),S(e,i,x)||(s[v("0x2")](e[v("0xd")](n,r[v("0xa")](i)?e[v("0x18")](i):e[v("0x14")](i,v("0x0")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0x18")](e),s=t[v("0x15")](n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x6")];){const o=n.splice(0,100);t.change((()=>{for(const t of o)t.isInContent&&e[v("0x16")](t.id)}))}}const N=["refresh","isEnabled","_isEnabledBasedOnSelection","_command","canEditAt","getRanges","model","_suggestions","execute","from","values","isInContent","editor"];var w,M;w=N,M=374,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("0x6")]=e,this[O("0xa")]=n,this[O("0x3")](),this[O("0x5")]=!1}[O("0x3")](){const t=Array[O("0xc")](this[O("0xa")][O("0x0")]()).some((t=>t[O("0x1")]));this[O("0x4")]=this[O("0x6")][O("0x4")]&&t}[O("0xb")](){const t=R(Array[O("0xc")](this._suggestions[O("0x0")]()));for(const e of t){const t=e[O("0x8")]();if(!this.editor[O("0x9")][O("0x7")](t))return}L(this[O("0x2")][O("0x9")],this[O("0x6")],t)}}const D=["values","_selectedSuggestions","_command","getRanges","isEnabled","_isEnabledBasedOnSelection","from","document","model","size","selection","execute","refresh","editor"];var P,B;P=D,B=124,function(t){for(;--t;)P.push(P.shift())}(++B);const j=function(t,e){return D[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x4")]=e,this._suggestions=n,this._selectedSuggestions=new Set,this[j("0x0")](),this[j("0x7")]=!1}[j("0x0")](){const t=this[j("0x1")].model[j("0x9")][j("0xc")],e=Array[j("0x8")](this._suggestions[j("0x2")]());this[j("0x3")]=function(t,e){const n=Array.from(t[v("0xe")]()),o=new Set;for(const s of e)if(s[v("0x17")])for(const e of n)for(const n of s.getRanges())(e[v("0x4")](n)||t.isCollapsed&&!s[v("0x1")]&&s[v("0xf")]&&n[v("0x0")][v("0x13")](e[v("0x12")]))&&o[v("0x9")](s);return o}(t,e),this.isEnabled=this[j("0x4")][j("0x6")]&&!!this[j("0x3")][j("0xb")]}[j("0xd")](){const t=R(Array[j("0x8")](this[j("0x3")]));for(const e of t){const t=e[j("0x5")]();if(!this.editor[j("0xa")].canEditAt(t))return}L(this[j("0x1")][j("0xa")],this[j("0x4")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const 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 Dt=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 Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Pt.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=Dt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const 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&&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 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 De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Pe.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&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const 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 Dn=st?st.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.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 zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;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,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==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const 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 wo=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 Mo=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:Mo.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]",Do="[object Array]",Po="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Do:In(t),c=x?Do:In(e),l=(a=a==Fo?Po:a)==Po,d=(c=c==Fo?Po:c)==Po,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):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["discard","isMultiRange","start","type","data","clear","_markerNames","toJSON","attributes","length","getMultiRangeId","getRanges","creator","author","accept","_onDiscard","onAccept","removeMarkers","removeAttribute","set","push","removeMarker","addMarkerName","subType","getContainedElement","getMarkers","isIntersecting","getFirstMarker","addMarker","hasComments","@external","change","decorate","map","setAttribute","split","delete","getRange","getAllAdjacentSuggestions","previous","suggestion:","getItems","isInContent","_model","createdAt","next","from","end","head","_onAttributesChange","onAttributesChange","_onAccept","filter","authoredAt","getMarkerNames","commentThread"];var $o,Jo;$o=Xo,Jo=322,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._isDataLoaded=!1,this.id=e.id,this.type=e.type,this[Qo("0x25")]=e.subType||null,this[Qo("0x1b")]=e[Qo("0x1b")],this[Qo("0x1a")]=e[Qo("0x1a")]||e[Qo("0x1b")],this.isExternal=Boolean(e[Qo("0x16")]&&e[Qo("0x16")][Qo("0x2c")]),this[Qo("0x12")]=null,this[Qo("0x1")]=t,this._onAccept=e[Qo("0x1e")],this[Qo("0x1d")]=e.onDiscard,this[Qo("0x7")]=e[Qo("0x8")],this._markerNames=new Set,this[Qo("0x2")]=null,this[Qo("0x21")](Qo("0xb"),null),this[Qo("0x21")](Qo("0x16"),e.attributes||{}),this[Qo("0x21")](Qo("0x35"),null),this[Qo("0x21")](Qo("0x3"),null),this[Qo("0x21")]("commentThread",null),this.set("_saved",!1),this.decorate(Qo("0x1c")),this[Qo("0x2e")](Qo("0xe"))}get[Qo("0x6")](){let t=this;for(;t[Qo("0x35")];)t=t[Qo("0x35")];return t}get[Qo("0x2b")](){return!!this[Qo("0xd")]&&this[Qo("0xd")][Qo("0x17")]>0}get[Qo("0xf")](){return 0!=this[Qo("0x14")].size&&6==Array[Qo("0x4")](this[Qo("0x14")])[0][Qo("0x31")](":").length}get[Qo("0x0")](){return null!==this.getFirstMarker()}addMarkerName(t){this[Qo("0x14")].add(t)}[Qo("0xc")](){return Array[Qo("0x4")](this._markerNames)}getMarkers(){return this[Qo("0xc")]().map((t=>this._model.markers.get(t)))[Qo("0xa")]((t=>t))}[Qo("0x29")](){return this[Qo("0x27")]()[0]||null}[Qo("0x1f")](){this._model[Qo("0x2d")]((t=>{for(const e of this[Qo("0x27")]())t.removeMarker(e)})),this[Qo("0x14")][Qo("0x13")]()}[Qo("0x23")](t){this[Qo("0x1")].change((e=>{e[Qo("0x23")](t)})),this[Qo("0x14")][Qo("0x32")](t)}addRange(t){const e=Qo("0x36")+this.type+":"+this[Qo("0x25")]+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0x18")]();this[Qo("0x24")](e),this[Qo("0x1")][Qo("0x2d")]((n=>{n[Qo("0x2a")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x19")]())if(e[Qo("0x28")](t))return!0;return!1}getRanges(){return this[Qo("0x27")]()[Qo("0x2f")]((t=>t[Qo("0x33")]()))}[Qo("0x37")](){return this[Qo("0x19")]().reduce(((t,e)=>[...t,...e[Qo("0x37")]()]),[])}getFirstRange(){var t;return(null===(t=this[Qo("0x29")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x26")](){const t=this[Qo("0x19")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0x10")].nodeAfter,o=e[Qo("0x5")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}accept(){this[Qo("0x9")](this.getRanges(),this.data,this.attributes),this[Qo("0x1f")]()}[Qo("0xe")](){this._onDiscard(this[Qo("0x19")](),this[Qo("0x12")],this.attributes),this.removeMarkers()}[Qo("0x34")](){const t=[];let e=this.head;for(;e;)t[Qo("0x22")](e),e=e[Qo("0x3")];return t}[Qo("0x30")](t,e){const n=eo(this[Qo("0x16")]);_o(n,t,e),Go(n,this[Qo("0x16")])||(this[Qo("0x16")]=n,this[Qo("0x7")](n))}[Qo("0x20")](t){const e=eo(this[Qo("0x16")]);qo(e,t),Go(e,this.attributes)||(this.attributes=e,this[Qo("0x7")](this[Qo("0x16")]))}[Qo("0x15")](){return{id:this.id,type:this.subType?this[Qo("0x11")]+":"+this[Qo("0x25")]:this[Qo("0x11")],authorId:this[Qo("0x1a")].id,createdAt:this.createdAt,hasComments:this[Qo("0x2b")],data:this[Qo("0x12")],attributes:this[Qo("0x16")]}}static[Qo("0x18")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["REPLACE_TEXT","function","checkChild","$1 $2","add","removeObject","*Remove:* %0","$textProxy","data","element","registerElementLabel","nextSibling","normal","isObject","length","Container","item","name","getDescriptions","Object","end","label","quantity","elementStart","_locale","addEmptyContainer","_resolveDescriptionItems","EmptyContainer","registerDescriptionCallback","remove","_itemLabels","pop","type","push","getFirstRange","*Merge:* %0","elementEnd","insertion","replace","get","match","isEmpty","_itemLabelsCallbacks","skip","ELEMENT_SPACE","deletion","previousSibling","isInContent","_schema","removeEmptyContainer","indexOf","addObject","addContainer","_addDescriptionItems","*Insert:* %0","removeContainer","text","getItemLabel"];var es,ns;es=ts,ns=495,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this[os("0x39")]=new Map,this[os("0xb")]=[],this[os("0x11")]=t,this[os("0x33")]=e}[os("0x2d")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x10")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x1")in n&&e[os("0x2")](n),s=!0;break}}if(!s){this[os("0x16")](e,o);const s=t[n+1];if(s&&!o[os("0x3")]()[os("0x2f")].isEqual(s[os("0x3")]().start)){const t=e[e[os("0x29")]-1],n=os("0x6")==o[os("0x1")]?os("0x1f"):os("0x38");t&&os("0x19")==t[os("0x1")]&&(t[n]+="\n")}}}return this[os("0x35")](e)}[os("0x37")](t){this._customCallbacks.push(t)}[os("0x25")](t,n,o=e.priorities[os("0x27")]){os("0x1c")==typeof t?(0,e.insertToPriorityArray)(this[os("0xb")],{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}[os("0x1a")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[os("0x30")];break}return n||(n=this[os("0x39")][os("0x8")](t.name)),n?n(e):1!==e?e+" "+t[os("0x2c")]+"s":""+t[os("0x2c")]}_addDescriptionItems(t,e){const n=e.getFirstRange().getWalker(),o=os("0x6")==e[os("0x1")]?os("0x1f"):os("0x38");for(const e of n){const s=e[os("0x2b")],r=t[t[os("0x29")]-1];if(s.is(os("0x22")))r&&r.type.indexOf(os("0x2a"))>-1&&t.pop(),r&&os("0x19")==r[os("0x1")]?r[o]+=s[os("0x23")]:t.push({type:os("0x19"),add:"add"==o?s.data:"",remove:os("0x38")==o?s[os("0x23")]:""});else if(this[os("0x11")][os("0x28")](s)){const i=s;if(r&&r[os("0x1")][os("0x13")](os("0x2a"))>-1&&t[os("0x0")](),os("0x5")==e[os("0x1")])continue;r&&r[os("0x1")]==o+os("0x2e")&&r[os("0x24")][os("0x2c")]==i.name?r.quantity++:t[os("0x2")]({type:o+os("0x2e"),element:i,quantity:1}),n[os("0xc")]((t=>!("elementEnd"==t[os("0x1")]&&t[os("0x2b")]==s)))}else if(this[os("0x11")][os("0x1d")](s,"$text")||s.is(os("0x24"),"softBreak")){const n=s;if(os("0x1f")==o&&os("0x32")==e[os("0x1")]||os("0x38")==o&&"elementEnd"==e.type)continue;if(r&&-1==r[os("0x1")][os("0x13")](os("0x2a"))){os("0x19")==r[os("0x1")]&&(r[o]+="\n");continue}let i;if(i="add"==o?n[os("0x26")]&&!this._schema[os("0x28")](n[os("0x26")])?n[os("0x26")]:null:n.previousSibling&&!this[os("0x11")][os("0x28")](n[os("0xf")])?n.previousSibling:null,n.isEmpty||i&&i.isEmpty){const e=i&&i[os("0xa")]?i:n;r&&r[os("0x1")]==o+os("0x36")&&r[os("0x24")][os("0x2c")]==e[os("0x2c")]?r.quantity++:t[os("0x2")]({type:o+os("0x36"),element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[os("0x35")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x1")]){case os("0x19"):if(o.add=o[os("0x1f")][os("0x7")](/(\S)\u000A+(\S)/g,os("0x1e")).replace(/\u000A/g,""),o[os("0x38")]=o[os("0x38")][os("0x7")](/(\S)\u000A+(\S)/g,os("0x1e")).replace(/\u000A/g,""),""!=o[os("0x1f")]&&""!=o[os("0x38")]){n[os("0x2")]({type:os("0x7"),content:Yo(e,os("0x1b"),['"'+o[os("0x38")]+'"','"'+o[os("0x1f")]+'"'])});continue}if(null!=o[os("0x1f")][os("0x9")](/^ +$/)){n[os("0x2")]({type:os("0x6"),content:Yo(e,os("0x17"),Yo(e,os("0xd"),o.add[os("0x29")]))});continue}if(null!=o[os("0x38")].match(/^ +$/)){n[os("0x2")]({type:os("0xe"),content:Yo(e,os("0x21"),Yo(e,"ELEMENT_SPACE",o.remove[os("0x29")]))});continue}if(""!=o.add){n.push({type:os("0x6"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x1f")]+'"')});continue}n[os("0x2")]({type:os("0xe"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x38")]+'"')});continue;case os("0x34"):case os("0x14"):n[os("0x2")]({type:os("0x6"),content:Yo(e,os("0x17"),this.getItemLabel(o[os("0x24")],o[os("0x31")]))});continue;case os("0x12"):case os("0x20"):n[os("0x2")]({type:os("0xe"),content:Yo(e,"*Remove:* %0",this.getItemLabel(o[os("0x24")],o[os("0x31")]))});continue;case os("0x15"):n[os("0x2")]({type:"insertion",content:Yo(e,"*Split:* %0",this[os("0x1a")](o[os("0x24")],o.quantity))});continue;case os("0x18"):n.push({type:os("0xe"),content:Yo(e,os("0x4"),this[os("0x1a")](o[os("0x24")],o[os("0x31")]))});continue}n[os("0x2")](o)}return n}}const rs=["showAIAssistant","editor","commands","TrackChangesEditing","get"];var is,xs;is=rs,xs=238,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this[as("0x3")],e=t.plugins[as("0x1")](as("0x0"));t[as("0x4")].get(as("0x2"))&&e.enableCommand(as("0x2"))}}const ls=["get","registerDescriptionCallback","FORMAT_ALIGN_TO_LEFT","TrackChangesEditing","model","justify","getAttribute","alignment","change","document","FORMAT_ALIGN_TO_RIGHT","right","getSelectedBlocks","contentLanguageDirection","value","checkAttribute","markBlockFormat","locale","_descriptionFactory","schema","commandName","afterInit","enableCommand","FORMAT_ALIGN_TO_CENTER","has","editor","FORMAT_JUSTIFY_TEXT","from","format","selection","plugins","*Format:* %0"];var ds,us;ds=ls,us=140,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0x9")](){const t=this[gs("0xd")],e=t[gs("0x5")];if(!t[gs("0x12")][gs("0xc")]("AlignmentEditing"))return;const n=t[gs("0x12")][gs("0x14")](gs("0x17"));n[gs("0xa")](gs("0x1b"),((e,o={})=>{let s=o[gs("0x2")];o[gs("0x2")]||(s="ltr"===t[gs("0x5")][gs("0x1")]?"left":gs("0x1f"));const r=Array[gs("0xf")](this[gs("0xd")][gs("0x18")][gs("0x1d")][gs("0x11")][gs("0x0")]()).filter((t=>function(t,e,n){const o=t[gs("0x1a")](gs("0x1b"))||null;return e[gs("0x3")](t,gs("0x1b"))&&n!=o}(t,this.editor.model[gs("0x7")],s)));t[gs("0x18")][gs("0x1c")]((()=>{for(const t of r)n[gs("0x4")](t,{commandName:gs("0x1b"),commandParams:[{value:s}]})}))})),n[gs("0x6")][gs("0x15")]((t=>{const{data:n}=t;if(n&&"alignment"==n[gs("0x8")]){const t=n.commandParams[0][gs("0x2")];return{type:gs("0x10"),content:Yo(e,gs("0x13"),function(t){switch(t){case"left":return Yo(e,gs("0x16"));case gs("0x1f"):return Yo(e,gs("0x1e"));case"center":return Yo(e,gs("0xb"));case gs("0x19"):return Yo(e,gs("0xe"))}}(t))}}}))}}const fs=["isBlock","getItems","nextSibling","createRangeOn","getAttribute","push","toViewPosition","TrackChangesEditing","mapper","element","activeMarkers","item","markerRange","markerName","consumable","hasAttribute","getWalker","get","includes","listIndent","schema","writer","test","plugins","ck-suggestion-marker-","previousPosition","addHighlight","model","addClass","listItem","span","elementEnd","isContent","ck-suggestion-marker--active","name","bindElementToMarker","toViewElement"];var hs,ps;hs=fs,ps=309,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return fs[t-=0]};function Es(t,e,n){const o=[];for(const s of e[bs("0x19")]())s[bs("0x2")](t)&&o[bs("0x1d")](n[bs("0x1b")](s));return o}function _s(t){const e=[];if(t.is(bs("0x21"),bs("0x10"))){let n=t.nextSibling;for(;n&&n.is(bs("0x21"),bs("0x10"))&&n[bs("0x1c")](bs("0x6"))>0;)e[bs("0x1d")](n),n=n[bs("0x1a")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0xa")][bs("0x4")](bs("0x1f"));return(s,r,i)=>{if(!i[bs("0x1")][bs("0x9")](r[bs("0x24")],s[bs("0x15")]))return;const x=r[bs("0x24")][bs("0x3")](),a=r[bs("0x24")].start,c=t[bs("0xe")][bs("0x7")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x23")];u=u||c[bs("0x13")](e);const n=i[bs("0x20")][bs("0x17")](e);if(n&&n.getCustomProperty(bs("0xd")))return;bs("0x12")==t.type&&c[bs("0x18")](e)&&!c.isLimit(e)&&(e.nextSibling||a.isAtEnd?l&&l.parent==e||(l=e,m(t.previousPosition),g=!0):d=d||t[bs("0xc")])}function m(t){const s=i[bs("0x8")].createUIElement(bs("0x11"),{class:bs("0xb")+e}),x=i[bs("0x20")][bs("0x1e")](t);n&&o[bs("0x22")][bs("0x5")](r[bs("0x0")])&&i[bs("0x8")][bs("0xf")](bs("0x14"),s),i[bs("0x8")].insert(x,s),i[bs("0x20")][bs("0x16")](s,r[bs("0x0")])}u||g||!d||m(d)}}const Cs=["toLowerCase","FORMAT_CODE","italic","slice","getRanges","editor","afterInit","subscript","commandName","superscript","UnderlineEditing","*Remove format:* %0","BoldEditing","CodeEditing","markInlineFormat","forceValue","locale","commandParams","*Format:* %0","FORMAT_ITALIC","_descriptionFactory","document","TrackChangesEditing","enableCommand","value","change","FORMAT_BOLD","underline","FORMAT_SUBSCRIPT","format","model","has","selection","code","commands","registerDescriptionCallback","StrikethroughEditing","plugins","SubscriptEditing"];var ys,ks;ys=Cs,ks=141,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x1b"),"ItalicEditing",As("0x19"),As("0x1c"),As("0xc"),As("0xe"),"SuperscriptEditing"];class Rs extends t.Plugin{[As("0x15")](){const t=this[As("0x14")],e=t[As("0x6")],n=t[As("0xd")].get(As("0x25")),o=t[As("0x1f")];for(const o of vs){if(!t[As("0xd")][As("0x7")](o))continue;const s=o[As("0x12")](0,-7)[As("0xf")](),r=t[As("0xa")].get(s);n[As("0x26")](s,((t,o={})=>{const i=e[As("0x24")][As("0x8")];if(i.isCollapsed)return void t(o);const x=void 0!==o[As("0x1e")]?o.forceValue:!r[As("0x0")];e[As("0x1")]((()=>{const t=Array.from(i[As("0x13")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0x1d")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0x23")][As("0xb")]((n=>{const{data:s}=n;if(s&&s[As("0x17")]===t)return s[As("0x20")][0][As("0x1e")]?{type:As("0x5"),content:Yo(o,As("0x21"),e)}:{type:As("0x5"),content:Yo(o,As("0x1a"),e)}}))}s("bold",Yo(o,As("0x2"))),s(As("0x11"),Yo(o,As("0x22"))),s(As("0x3"),Yo(o,"FORMAT_UNDERLINE")),s(As("0x9"),Yo(o,As("0x10"))),s("strikethrough",Yo(o,"FORMAT_STRIKETHROUGH")),s(As("0x16"),Yo(o,As("0x4"))),s(As("0x18"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const Is=["get","BlockQuoteEditing","from","schema","commandParams","commands","has","forceValue","selection","commandName","markBlockFormat","parent","ELEMENT_BLOCK_QUOTE","checkChild","blockQuote","locale","filter","model","_descriptionFactory","document","value","afterInit","*Format:* %0","registerDescriptionCallback","format","getSelectedBlocks","editor"];var Ss,Ls;Ss=Is,Ls=174,function(t){for(;--t;)Ss.push(Ss.shift())}(++Ls);const Ns=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ns("0x9")](){const t=this[Ns("0xe")],e=t[Ns("0x3")];if(!t.plugins[Ns("0x15")](Ns("0x10")))return;const n=t.plugins[Ns("0xf")]("TrackChangesEditing"),o=this[Ns("0xe")][Ns("0x14")].get(Ns("0x2"));n.enableCommand(Ns("0x2"),((e,s={})=>{const r=this[Ns("0xe")][Ns("0x5")][Ns("0x7")][Ns("0x17")],i=s&&void 0!==s[Ns("0x16")]?s[Ns("0x16")]:!o[Ns("0x8")];let x=[];if(i){const e=Array[Ns("0x11")](r[Ns("0xd")]())[Ns("0x4")]((t=>Ms(t)||function(t,e){const n=e[Ns("0x1")](t[Ns("0x1a")],Ns("0x2")),o=e[Ns("0x1")](["$root","blockQuote"],t);return n&&o}(t,this.editor[Ns("0x5")][Ns("0x12")])));x=I(e,t[Ns("0x5")])}else{const e=Array[Ns("0x11")](r[Ns("0xd")]())[Ns("0x4")]((t=>Ms(t)));x=I(e,t[Ns("0x5")])}t[Ns("0x5")].change((()=>{for(const t of x)n[Ns("0x19")](t,{commandName:Ns("0x2"),commandParams:[{forceValue:i}]})}))})),n[Ns("0x6")][Ns("0xb")]((t=>{const{data:n}=t;if(n&&Ns("0x2")==n[Ns("0x18")]){const t=Yo(e,Ns("0x0"));return n[Ns("0x13")][0][Ns("0x16")]?{type:Ns("0xc"),content:Yo(e,Ns("0xa"),t)}:{type:Ns("0xc"),content:Yo(e,"*Remove format:* %0",t)}}}))}}function Ms(t){return Ns("0x2")==t.parent.name}const Os=["TrackChangesEditing","afterInit","get","ckbox","commands","editor"];var Fs,Ds;Fs=Os,Ds=314,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ds);const Ps=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ps("0x5")](){const t=this[Ps("0x3")];t[Ps("0x2")][Ps("0x0")]("ckbox")&&t.plugins[Ps("0x0")](Ps("0x4")).enableCommand(Ps("0x1"))}}const js=["rootElement","_descriptionFactory","selection","isLimit","name","ELEMENT_CODE_BLOCK","commands","config","getSelectedBlocks","forceValue","languages","change","schema","get","commandParams","enableCommand","plugins","label","document","*Format:* %0","filter","blockName","*Remove format:* %0","checkChild","from","editor","language","parent","codeBlock","formatBlock","markBlockFormat","locale","find","registerDescriptionCallback"];var Us,Gs;Us=js,Gs=251,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{afterInit(){const t=this[Hs("0xc")];if(!t[Hs("0x3")].has("CodeBlock"))return;const e=t[Hs("0x3")][Hs("0x0")]("TrackChangesEditing"),n=t[Hs("0x12")],o=t[Hs("0x1c")].get(Hs("0xf"))[Hs("0x1f")],s=t[Hs("0x1b")].get(Hs("0xf"));e.enableCommand("indentCodeBlock"),e.enableCommand("outdentCodeBlock"),e[Hs("0x2")]("codeBlock",((n,r={})=>{const i=t.model,x=t.model[Hs("0x5")][Hs("0x17")],a=r&&void 0!==r[Hs("0x1e")]?r[Hs("0x1e")]:!s.value;let c;r[Hs("0xd")]||(r[Hs("0xd")]=o[0][Hs("0xd")]),c=a?Array.from(x.getSelectedBlocks())[Hs("0x7")]((t=>{return Ws(t)||(e=t,n=i[Hs("0x21")],!e.is(Hs("0x15"))&&!n[Hs("0x18")](e)&&n[Hs("0xa")](e[Hs("0xe")],Hs("0xf")));var e,n})):Array[Hs("0xb")](x[Hs("0x1d")]())[Hs("0x7")]((t=>Ws(t)));const l=I(c,i);i[Hs("0x20")]((()=>{for(const t of l)e[Hs("0x11")](t,{commandName:Hs("0xf"),commandParams:[{...r,forceValue:a}],formatGroupId:Hs("0x8")})}))})),e[Hs("0x16")].registerElementLabel(Hs("0xf"),(t=>Yo(n,Hs("0x1a"),t))),e[Hs("0x16")][Hs("0x14")]((t=>{const e=n.t,{type:s,data:r}=t;if(Hs("0x10")==s&&r&&Hs("0xf")==r.commandName){const t=r[Hs("0x1")][0][Hs("0xd")],s=e(o[Hs("0x13")]((e=>e[Hs("0xd")]===t))[Hs("0x4")]);return r[Hs("0x1")][0][Hs("0x1e")]?{type:"format",content:Yo(n,Hs("0x6"),Yo(n,Hs("0x1a"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Hs("0x9"),Yo(n,Hs("0x1a"),1))}}}))}}function Ws(t){return Hs("0xf")==t[Hs("0x19")]}const Vs=["has","enableCommand","get","CommentsEditing","afterInit","plugins"];var Ks,qs;Ks=Vs,qs=148,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{[Xs("0x0")](){const t=this.editor;t[Xs("0x1")][Xs("0x2")](Xs("0x5"))&&t.plugins[Xs("0x4")]("TrackChangesEditing")[Xs("0x3")]("addCommentThread")}}var Js=n(181);const Qs=["start","plugins","buffer","mapper","markerName","detach","fromRange","isCollapsed","selection","commands","root","TrackChangesEditing","markerNameToElements","editing","document","downcastDispatcher","enableCommand","removeMarker:suggestion:deletion","createRange","modifySelection","uiElement","model","$graveyard","forward","unlock","addMarker:suggestion:deletion","get","deleteForward","unit","high","rootName","delete","showSuggestionHighlights","requires","data","options","batch","createSelection","remove","lock","merge"];var Zs,Ys;Zs=Qs,Ys=499,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{static get[tr("0x1a")](){return[Js.Delete]}init(){const t=this.editor,e=t[tr("0x23")][tr("0x13")](tr("0x4"));e[tr("0x9")](tr("0x18"));const n=t[tr("0x2")][tr("0x13")](tr("0x14"));e[tr("0x9")](tr("0x14"),((e,o={})=>{const s=t[tr("0xe")][tr("0x1e")](t[tr("0xe")][tr("0x7")][tr("0x1")]);s[tr("0x0")]&&t[tr("0xe")][tr("0xc")](s,{direction:tr("0x10"),unit:o[tr("0x15")]});const r=s.getFirstRange(),x=i.LiveRange[tr("0x28")](r);let a;e(o),a=tr("0xf")==x[tr("0x3")][tr("0x17")]?t[tr("0xe")].createRange(r[tr("0x22")]):t.model[tr("0xb")](x[tr("0x22")],x.end),x[tr("0x27")](),t[tr("0xe")].enqueueChange(n[tr("0x24")][tr("0x1d")],(t=>{n.buffer[tr("0x20")](),t.setSelection(t.createRange(a.end)),n[tr("0x24")][tr("0x11")]()}))})),t[tr("0x6")][tr("0x8")].on(tr("0x12"),Ts(t,tr("0x21")),{priority:tr("0x16")}),t[tr("0x1b")][tr("0x8")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[tr("0x1c")][tr("0x19")]&&Ts(t,"merge",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"}),t[tr("0x6")][tr("0x8")].on(tr("0xa"),((t,e,n)=>{const o=n[tr("0x25")][tr("0x5")](e[tr("0x26")]);if(o)for(const t of o)t.is(tr("0xd"))&&(n.mapper.unbindElementFromMarkerName(t,e.markerName),n.writer[tr("0x1f")](t))}),{priority:tr("0x16")})}}const nr=["registerCustomCallback","list.multiBlock","forceValue","outdentList","plugins","*Format:* insert into %0","schema","ELEMENT_LIST_ITEM","markMultiRangeBlockFormat","start","_LIST","model","config","locale","indentList","registerDescriptionCallback","format","numberedList","commands","splitListItemAfter","containsItem","documentList","editor","document","has","getAttribute","findIndex","execute","splitListItemBefore","bulletedList","before","change","nextSibling","previousSibling","getFirstRange","add","commandName","ELEMENT_BULLETED_LIST","enableCommand","listIndent","getRanges","markBlockFormat","fromRange","isObject","toUpperCase","commandParams","_descriptionFactory","*Change to:* %0","setSelection","value","mergeListItemBackward","*Merge:* %0","listType","from","map","createRange","isFirstBlockOfListItem","nodeAfter","ELEMENT_","get","*Outdent:* %0","end","listItemId","DocumentListUtils","next","push","after","*Format:* remove from %0","hasAttribute","selection","paragraph","createPositionAt","TrackChangesEditing","mergeListItemForward","expandListBlocksToCompleteList"];var or,sr;or=nr,sr=313,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{afterInit(){const t=this[rr("0x9")];if(!t[rr("0x42")][rr("0xb")]("DocumentListEditing"))return;const e=t[rr("0x0")],n=t[rr("0x42")][rr("0x2e")](rr("0x3b")),o=t.plugins[rr("0x2e")](rr("0x32"));function s(e){return()=>{const s=t[rr("0x5")][rr("0x2e")](e);if(s[rr("0x24")]&&!t[rr("0x4a")][rr("0x2e")](rr("0x3f")))return void t[rr("0xe")](rr("0x39"),{});let r=Array[rr("0x28")](t.model[rr("0xa")][rr("0x38")].getSelectedBlocks());if(a(e)){r=o[rr("0x3d")](r);const t=[];for(const e of r)o[rr("0x2b")](e)&&t[rr("0x34")](e);r=t}t[rr("0x49")].change((()=>{n[rr("0x46")](r,{commandName:e,commandParams:[{forceValue:!s[rr("0x24")]}],formatGroupId:rr("0x27")},[],rr("0x8"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[rr("0xd")]((t=>!t[rr("0x37")](rr("0x31"))));return n>-1&&(e=e.slice(0,n)),e}(t[rr("0x49")][rr("0xa")][rr("0x38")].getSelectedBlocks()),s=o[o.length-1],r=t[rr("0x49")][rr("0x44")][rr("0x1e")](s)?rr("0x35"):"end",i=t[rr("0x49")][rr("0x2a")](t[rr("0x49")][rr("0x3a")](o[0],rr("0x11")),t[rr("0x49")][rr("0x3a")](s,r));t[rr("0x49")][rr("0x12")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:rr("0x27")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t.getAttribute(rr("0x1a"))>n[rr("0xc")](rr("0x1a"));)e[rr("0x16")](t),t=t[rr("0x13")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[rr("0x49")][rr("0xa")][rr("0x38")].getSelectedBlocks()[rr("0x33")]()[rr("0x24")],s=t[rr("0x49")][rr("0x3a")](o,rr("0x11")),r=t[rr("0x49")][rr("0x3a")](o,0),i=t[rr("0x49")][rr("0x2a")](s,r);t[rr("0x49")][rr("0x12")]((()=>{n[rr("0x1c")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x27")})}))}}function a(e){const n=t[rr("0x5")][rr("0x2e")](rr("0x10"))[rr("0x24")],o=t.commands[rr("0x2e")](rr("0x4"))[rr("0x24")];return"numberedList"===e?n:o}n[rr("0x19")](rr("0x4"),s(rr("0x4"))),n[rr("0x19")](rr("0x10"),s(rr("0x10"))),n[rr("0x19")](rr("0x1"),r(rr("0x1"))),n[rr("0x19")](rr("0x41"),r(rr("0x41"))),n[rr("0x19")](rr("0x6"),x("splitListItemAfter")),n[rr("0x19")]("splitListItemBefore",x(rr("0xf"))),n[rr("0x21")].registerElementLabel((function(e){const n=!t.model[rr("0x44")][rr("0x1e")](e),o=e[rr("0x14")],s=e[rr("0x13")],r=e[rr("0xc")](rr("0x31")),i=!o||o.getAttribute(rr("0x31"))!==r,x=!s||s[rr("0xc")](rr("0x31"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,rr("0x45"),t))),n[rr("0x21")][rr("0x2")]((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o.commandName){case rr("0x10"):i=o[rr("0x20")][0][rr("0x40")],x=a(o[rr("0x17")]),s=i?rr("0x43"):"*Format:* remove from %0",!x&&t[rr("0x4a")].get(rr("0x3f"))||(s=rr("0x22")),r={type:rr("0x3"),content:Yo(e,s,Yo(e,rr("0x18")))};break;case"numberedList":i=o.commandParams[0][rr("0x40")],x=a(o[rr("0x17")]),s=rr(i?"0x43":"0x36"),!x&&t.config.get(rr("0x3f"))||(s=rr("0x22")),r={type:rr("0x3"),content:Yo(e,s,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case rr("0x1"):s="*Indent:* %0",r={type:rr("0x3"),content:Yo(e,s,Yo(e,rr("0x45")))};break;case rr("0x41"):s=function(t){const e=t[rr("0x15")]();let n=e[rr("0x47")].nodeAfter;for(;n&&e[rr("0x7")](n);){if(n[rr("0xc")](rr("0x1a"))>0)return!1;n=n[rr("0x13")]}return!0}(n)?Yo(e,rr("0x36"),Yo(e,function(t){const e=t[rr("0x15")]()[rr("0x47")].nodeAfter;return rr("0x2d")+e.getAttribute("listType")[rr("0x1f")]()+rr("0x48")}(n))):Yo(e,rr("0x2f"),Yo(e,rr("0x45"))),r={type:rr("0x3"),content:s};break;case rr("0x25"):case rr("0x3c"):!1===o.multipleBlocks&&(s=rr("0x26"),r={type:"deletion",content:Yo(e,s,Yo(e,rr("0x45")))})}return r})),n._suggestionFactory[rr("0x3e")]("formatBlock",rr("0x8"),"accept",(function(e,n){const o=[];for(let n of e)n[rr("0x47")][rr("0x2c")]===n[rr("0x30")].parent&&(n=t.model[rr("0x2a")](t[rr("0x49")][rr("0x3a")](n.start[rr("0x2c")],0))),o[rr("0x34")](n);t.model.change((e=>{const s=t.model.document[rr("0x38")],r=Array.from(s[rr("0x1b")]())[rr("0x29")]((t=>i.LiveRange[rr("0x1d")](t)));e[rr("0x23")](o),t[rr("0x5")].get(n.commandName).refresh(),n.commandParams[rr("0x34")]({forceDefaultExecution:!0}),t[rr("0xe")](n[rr("0x17")],...n.commandParams),e[rr("0x23")](r);for(const t of r)t.detach()}))}))}}var xr=n(331);const ar=["unbindElementFromMarkerName","markerName","end","requires","high","markerNameToElements","model","enter","split","fire","downcastDispatcher","remove","getFirstPosition","setSelection","detach","addMarker:suggestion:insertion","writer","TrackChangesEditing","options","get","hasClass","nextSibling","fromRange","selection","parent","data","change","commands","document","init","editor","enableCommand","enterBlock","getFirstRange","mapper","removeMarker:suggestion:insertion"];var cr,lr;cr=ar,lr=123,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{static get[dr("0x18")](){return[xr.Enter]}[dr("0xe")](){const t=this[dr("0xf")],e=t.plugins[dr("0x4")](dr("0x2")),n=t[dr("0xc")][dr("0x4")](dr("0x1c"));e[dr("0x10")](dr("0x1c"),(()=>{t[dr("0x1b")][dr("0xb")]((o=>{const s=t[dr("0x1b")][dr("0xd")][dr("0x8")],r=s[dr("0x21")](),x=i.LiveRange[dr("0x7")](s[dr("0x12")]());if(n[dr("0x11")](o)){const n=t[dr("0x1b")].createPositionAt(r[dr("0x9")][dr("0x6")],0),s=o.createRange(r,n);e.markInsertion(s)}else o[dr("0x22")](o.createRange(x[dr("0x17")]));x[dr("0x23")](),n[dr("0x1e")]("afterExecute",{writer:o})}))})),t.editing.downcastDispatcher.on(dr("0x0"),Ts(t,dr("0x1d")),{priority:dr("0x19")}),t.editing[dr("0x1f")].on(dr("0x14"),((t,e,n)=>{const o=n[dr("0x13")][dr("0x1a")](e[dr("0x16")]);if(o)for(const t of o)t[dr("0x5")]("ck-suggestion-marker-split")&&(n.mapper[dr("0x15")](t,e[dr("0x16")]),n[dr("0x1")][dr("0x20")](t))}),{priority:dr("0x19")}),t[dr("0xa")].downcastDispatcher.on(dr("0x0"),((e,n,o)=>{o[dr("0x3")].showSuggestionHighlights&&Ts(t,dr("0x1d"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:dr("0x19")})}}const gr=["_isInDeletionRange","findByTextCallback","getIntersection","get","bind","suggestion:deletion","createPositionAt","editor","end","afterInit","model","enableCommand","getRange","markers","handleFindCommand","string","replace","plugins","item","has","FindAndReplaceEditing","find","TrackChangesEditing","replaceAll"];var mr,fr;mr=gr,fr=335,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0xa")](){if(!this[hr("0x8")][hr("0x12")][hr("0x14")](hr("0x15")))return;const t=this[hr("0x8")][hr("0x12")][hr("0x4")](hr("0x17"));t[hr("0xc")](hr("0x16"),this.handleFindCommand[hr("0x5")](this)),t.enableCommand("findNext"),t.enableCommand("findPrevious"),t.enableCommand(hr("0x11")),t[hr("0xc")](hr("0x0"))}[hr("0xf")](t,e,n={}){const o=this.editor[hr("0x12")][hr("0x4")]("FindAndReplaceUtils");void 0!==n&&t((t=>(hr("0x10")==typeof e?o[hr("0x2")](e,n):e)(t).filter((e=>!1===this[hr("0x1")](e,t[hr("0x13")])))),n)}_isInDeletionRange(t,e){const n=this[hr("0x8")][hr("0xb")].createRange(this[hr("0x8")][hr("0xb")][hr("0x7")](e,t.start),this[hr("0x8")][hr("0xb")][hr("0x7")](e,t[hr("0x9")]));for(const t of this.editor[hr("0xb")][hr("0xe")].getMarkersGroup(hr("0x6")))if(null!==n[hr("0x3")](t[hr("0xd")]()))return!0;return!1}}const br=["from","markInlineFormat","normalizeSizeOptions","fontColor.colors","model","FontFamilyEditing","document","TrackChangesEditing","enableCommand","change","value","fontBackgroundColor.colors","find","*Reset font family*","fontColor","FontColorEditing","fontFamily","_enableCommand","title","_descriptionFactory","*Set font size:* %0","*Reset font size*","editor","locale","toLowerCase","format","FontSizeEditing","*Reset font color*","get","fontBackgroundColor","*Set font color:* %0","plugins","fontSize","commandParams","FontSize","*Reset font background color*","label","*Set font family:* %0","commandName","config","afterInit","registerDescriptionCallback"];var Er,_r;Er=br,_r=178,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:Tr("0x10"),commandName:Tr("0x16")},{pluginName:Tr("0x25"),commandName:"fontFamily"},{pluginName:Tr("0x5"),commandName:"fontColor"},{pluginName:"FontBackgroundColorEditing",commandName:Tr("0x13")}];class yr extends t.Plugin{[Tr("0x1e")](){const t=this[Tr("0xc")][Tr("0xd")];for(const{pluginName:t,commandName:e}of Cr)this[Tr("0xc")][Tr("0x15")].has(t)&&this[Tr("0x7")](e);this.editor[Tr("0x15")][Tr("0x12")](Tr("0x27"))[Tr("0x9")][Tr("0x1f")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Tr("0x16")==o[Tr("0x1c")]){const e=o[Tr("0x17")][0][Tr("0x0")];if(e){const o=n(this[Tr("0xc")][Tr("0x15")][Tr("0x12")](Tr("0x18"))[Tr("0x22")](this[Tr("0xc")][Tr("0x1d")][Tr("0x12")]("fontSize.options"))[Tr("0x2")]((t=>t[Tr("0x24")]==e))[Tr("0x8")])[Tr("0xe")]();return{type:"format",content:Yo(t,Tr("0xa"),o)}}return{type:Tr("0xf"),content:Yo(t,Tr("0xb"))}}if(Tr("0x6")==o.commandName){const e=o[Tr("0x17")][0].value;return e?{type:Tr("0xf"),content:Yo(t,Tr("0x1b"),e)}:{type:Tr("0xf"),content:Yo(t,Tr("0x3"))}}if(Tr("0x4")==o[Tr("0x1c")]){const e=o[Tr("0x17")][0][Tr("0x0")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0xc")][Tr("0x1d")][Tr("0x12")](Tr("0x23")))[Tr("0x2")]((t=>t.model==e));let r=e,i="";return o&&(r=o[Tr("0x1a")],i=n(r).toLowerCase()),{type:Tr("0xf"),content:Yo(t,Tr("0x14"),i).trim(),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,Tr("0x11"))}}if(Tr("0x13")==o[Tr("0x1c")]){const e=o[Tr("0x17")][0][Tr("0x0")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0xc")][Tr("0x1d")][Tr("0x12")](Tr("0x1")))[Tr("0x2")]((t=>t[Tr("0x24")]==e));let r=e,i="";return o&&(r=o[Tr("0x1a")],i=n(r)[Tr("0xe")]()),{type:"format",content:Yo(t,"*Set font background color:* %0",i).trim(),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,Tr("0x19"))}}}}))}[Tr("0x7")](t){const e=this.editor;e.plugins.get(Tr("0x27"))[Tr("0x28")](t,((n,o={})=>{const s=e[Tr("0x24")][Tr("0x26")].selection,r=o[Tr("0x0")];s.isCollapsed?n(o):e[Tr("0x24")][Tr("0x29")]((()=>{const n=Array[Tr("0x20")](s.getRanges());for(const o of n){const n=r?[o]:Es(t,o,e.model);for(const o of n)e[Tr("0x15")][Tr("0x12")](Tr("0x27"))[Tr("0x21")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["getItems","commandParams","editor","isFormatting","keys","word","markInlineFormat","pasteFormat","model","createSelection","toLowerCase","fontColor.colors","modifySelection","document","locale","config","title","find","fontSize.options","toUpperCase","enableCommand","copyFormat","isBlock","join","label","push","split","_descriptionFactory","slice","afterInit","backward","*Remove all formatting*","commandName","plugins","registerDescriptionCallback","createRange","get","selection","fontSize","boolean","TrackChangesEditing","getAttributeProperties","format","getRanges","commands","length","change","fontBackgroundColor","getLastPosition","forward"];var Ar,vr;Ar=kr,vr=497,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Ir extends t.Plugin{[Rr("0x20")](){const t=this[Rr("0x5")],n=t[Rr("0xb")],o=n[Rr("0x10")][Rr("0x28")],s=t[Rr("0x24")][Rr("0x27")](Rr("0x2b")),r=t[Rr("0x11")],i=t.commands[Rr("0x27")](Rr("0x18")),x=t[Rr("0x2f")].get(Rr("0xa"));i&&x&&(s[Rr("0x17")]("pasteFormat",((t,r={})=>{const i=r;n[Rr("0x31")]((()=>{const t=Array.from(o.getRanges()),r=o.isCollapsed?[Sr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t.getAttributes()){const t=e[Rr("0x2c")](n);t&&t[Rr("0x6")]&&(yield n)}}(t,n));for(const e of t[Rr("0x2e")]())for(const t of e[Rr("0x3")]())!n[Rr("0x19")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[Rr("0x7")](i)[Rr("0x30")])for(const t of r)s[Rr("0x9")](t,{commandName:Rr("0xa"),commandParams:[i]})}))})),s[Rr("0x1e")][Rr("0x25")]((e=>{const{data:n}=e;if(n&&Rr("0xa")===n[Rr("0x23")]){const e=[],o=n[Rr("0x4")][0];for(const[n,s]of Object.entries(o))e[Rr("0x1c")](Lr(t,n,s));return e[Rr("0x30")]?{type:"format",content:Yo(r,"*Set format to:* %0",e[Rr("0x1a")](", "))}:{type:Rr("0x2d"),content:Yo(r,Rr("0x22"))}}})),t[Rr("0x24")][Rr("0x27")](Rr("0x2b"))[Rr("0x17")](Rr("0x18")))}}function Sr(t,e){const n=t[Rr("0xc")](e);t.modifySelection(n,{unit:Rr("0x8"),direction:Rr("0x21")});const o=n.getFirstPosition();t[Rr("0xf")](n,{unit:Rr("0x8"),direction:Rr("0x2")});const s=n[Rr("0x1")]();return t[Rr("0x26")](o,s)}function Lr(t,e,n){const o=t[Rr("0x11")].t,r=e[Rr("0x1d")](/(?=[A-Z])/)[Rr("0x1a")](" "),i=o(r.charAt(0)[Rr("0x16")]()+r[Rr("0x1f")](1)).toLowerCase();if(Rr("0x2a")==typeof n)return i;if("fontColor"===e||Rr("0x0")===e){const e=(0,s.normalizeColorOptions)(t.config.get(Rr("0xe")))[Rr("0x14")]((t=>t[Rr("0xb")]==n));return i+" ("+(e?o(e[Rr("0x1b")])[Rr("0xd")]():n)+")"}if(Rr("0x29")===e&&isNaN(parseFloat(n))){const e=t[Rr("0x24")][Rr("0x27")]("FontSize").normalizeSizeOptions(t[Rr("0x12")][Rr("0x27")](Rr("0x15")))[Rr("0x14")]((t=>t.model==n));return i+" ("+(e?o(e[Rr("0x13")]).toLowerCase():n)+")"}return i+" ("+n+")"}const Nr=["getSelectedBlocks","name","markBlockFormat","title","model","locale","plugins","change","has","isObject","schema","config","registerDescriptionCallback","editor","HeadingEditing","selection","heading","enableCommand","format","get","commandParams","*Change to:* %0","paragraph","value","from","checkChild","registerElementLabel","filter","formatBlock","TrackChangesEditing","ELEMENT_HEADING","commandName","_descriptionFactory","find"];var wr,Mr;wr=Nr,Mr=499,function(t){for(;--t;)wr.push(wr.shift())}(++Mr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{afterInit(){const t=this[Or("0x18")],e=t[Or("0x10")],n=t[Or("0x16")][Or("0x1e")]("heading.options");if(!t[Or("0x11")][Or("0x13")](Or("0x19")))return;const o=t[Or("0x11")].get(Or("0x6"));o[Or("0x1c")](Or("0x1b"),((e,n)=>{const s=n[Or("0x0")],r=Array[Or("0x1")](this[Or("0x18")][Or("0xf")].document[Or("0x1a")][Or("0xb")]())[Or("0x4")]((t=>{return e=t,n=s,(o=this[Or("0x18")][Or("0xf")][Or("0x15")])[Or("0x2")](e.parent,n)&&!o[Or("0x14")](e)&&e[Or("0xc")]!=n;var e,n,o}));t.model[Or("0x12")]((()=>{for(const t of r)o[Or("0xd")](t,{commandName:"heading",commandParams:[n],formatGroupId:"blockName"},_s(t))}))}));for(const t of n)Or("0x21")!=t[Or("0xf")]&&o[Or("0x9")][Or("0x3")](t[Or("0xf")],(e=>{const n=Dr(t[Or("0xf")]);return null!==n?s(e,n):r(e,t[Or("0xe")])}));function s(t,n){return Yo(e,Or("0x7"),[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Or("0x9")][Or("0x17")]((t=>{const{type:o,data:i}=t;if(Or("0x5")==o&&i&&Or("0x1b")==i[Or("0x8")]){const t=i[Or("0x1f")][0][Or("0x0")],o=Dr(t);if(null!==o)return{type:Or("0x1d"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Or("0xa")]((e=>e[Or("0xf")]===t))[Or("0xe")];return{type:Or("0x1d"),content:Yo(e,Or("0x20"),r(1,x))}}}))}}function Dr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Pr=["commandParams","change","value","_descriptionFactory","FORMAT_HIGHLIGHT","model","getLastMatchingPosition","item","isCollapsed","format","get","markInlineFormat","toLowerCase","*Remove highlight*","document","editor","TrackChangesEditing","config","enableCommand","getAttribute","highlight.options","push","selection","title","locale","plugins","formatInline","afterInit","highlight","HighlightEditing"];var Br,jr;Br=Pr,jr=288,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Pr[t-=0]};class Gr extends t.Plugin{[Ur("0x9")](){const t=this[Ur("0x1b")];if(!t[Ur("0x7")].has(Ur("0xb")))return;const e=t[Ur("0x7")][Ur("0x16")](Ur("0x1c"));e[Ur("0x0")]("highlight",((n,o={})=>{const s=t[Ur("0x11")][Ur("0x1a")][Ur("0x4")],r=s[Ur("0x1")](Ur("0xa"));let i=o[Ur("0xe")],x=[];if(s[Ur("0x14")]){const e=s.getFirstPosition();if(!s.hasAttribute(Ur("0xa")))return void n(o);{const n=t=>t[Ur("0x13")][Ur("0x1")]("highlight")===r,o=e[Ur("0x12")](n,{direction:"backward"}),s=e[Ur("0x12")](n);x=[t.model.createRange(o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x[Ur("0x3")](e):x[Ur("0x3")](...Es(Ur("0xa"),e,t[Ur("0x11")]));t[Ur("0x11")][Ur("0xd")]((()=>{for(const t of x)e[Ur("0x17")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Ur("0x6")];e[Ur("0xf")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Ur("0x8")==o&&s&&Ur("0xa")==s.commandName){const e=n.t,o=s[Ur("0xc")][0][Ur("0xe")];if(o){const s=t[Ur("0x1d")].get(Ur("0x2")).find((t=>t[Ur("0x11")]==o)),r=e(s[Ur("0x5")])[Ur("0x18")]();return{type:Ur("0x15"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s.color,title:s.title}}}return{type:Ur("0x15"),content:Yo(n,Ur("0x19"),Yo(n,Ur("0x10")))}}}))}}const Hr=["registerElementLabel","enableCommand","HorizontalLineEditing","createEmptyElement","ELEMENT_HORIZONTAL_LINE","_descriptionFactory","for","horizontalLine","createContainerElement","plugins","locale","get","TrackChangesEditing","elementToStructure","ck-horizontal-line","div","has","editor","createPositionAt"];var zr,Wr;zr=Hr,Wr=176,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0xc")];if(!t[Vr("0x4")][Vr("0xb")](Vr("0x10")))return;t[Vr("0x4")][Vr("0x6")]("TrackChangesEditing")[Vr("0xf")]("horizontalLine");const e=t[Vr("0x4")][Vr("0x6")](Vr("0x7")),n=t[Vr("0x5")];e[Vr("0x0")][Vr("0xe")](Vr("0x2"),(t=>Yo(n,Vr("0x12"),t))),t.conversion[Vr("0x1")]("dataDowncast")[Vr("0x8")]({model:Vr("0x2"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Vr("0x3")](Vr("0xa")),s=e[Vr("0x11")]("hr");return e.addClass(Vr("0x9"),o),e.insert(e[Vr("0xd")](o,0),s),o},converterPriority:"high"})}}const qr=["*Change %0 content*","get","value","registerDescriptionCallback","getAttribute","markBlockFormat","selection","TrackChangesEditing","view","registerElementLabel","editor","format","locale","getCustomProperty","plugins","document","element","htmlEmbed","getSelectedElement","rawHtml","_descriptionFactory","HtmlEmbed","rawHtmlApi","commandName"];var Xr,$r;Xr=qr,$r=424,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x12")];if(!t[Jr("0x16")].has(Jr("0x5")))return;const e=t[Jr("0x16")][Jr("0x9")](Jr("0xf")),n=t[Jr("0x14")],o=t.editing[Jr("0x10")][Jr("0x17")].selection;e[Jr("0x4")][Jr("0x11")](Jr("0x3"),(t=>Yo(n,"ELEMENT_HTML_EMBED",t))),t[Jr("0x16")][Jr("0x9")](Jr("0xf")).enableCommand(Jr("0x1"),((n,s)=>{const r=t.model,i=r[Jr("0x17")][Jr("0xe")];r.change((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Jr("0x0"),Jr("0x3"))?t[Jr("0x2")]():null}(i);if(!t)return void n(null);const r=t[Jr("0xc")](Jr("0xa"))||"";void 0!==s&&s!==r&&(e[Jr("0xd")](t,{commandName:Jr("0x1"),commandParams:[s]}),o[Jr("0x2")]()[Jr("0x15")](Jr("0x6")).cancel())}))})),e[Jr("0x4")][Jr("0xb")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Jr("0x7")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Jr("0x13"),content:Yo(n,Jr("0x8"),t)}}}))}}const Zr=["plugins","ImageCaptionUtils","isInlineImage","isEqual","getSuggestionCallback","hasSuggestion","element","find","previous","*Set image text alternative:* %0","getNearestSelectionRange","markDeletion","insertion","end","getChangedMarkers","markInlineFormat","discardSuggestion","isCollapsed","imageBlock","detach","*Format:* %0","getCaptionFromImageModelElement","createRangeOn","Block image to inline image","normalizedStyles","markInsertion","isBlockImage","value","formatInline","imageInline","imageTypeInline","isOwn","forEach","title","filter","toLowerCase","discard","ELEMENT_CAPTION","*Remove image text alternative*","subType","change","isInContent","imageStylePostApply","join","addObject","getFirstRange","format","ImageStyleEditing","*Reset image width*","Users","commandReversedParams","imageCaption","get","side","name","getSuggestion","selection","hasAttribute","start","forceDefaultExecution","imageTypeBlock","createRange","registerDescriptionCallback","*Set image width:* %0","nodeAfter","convertInlineImageToBlock","newRange","uploadImage","Inline image to block image","width","markBlockFormat","getContainedElement","ELEMENT_IMAGE","toggleImageCaption","formatBlock","imageTextAlternative","afterInit","commandParams","caption","_suggestionFactory","imageStyle","TrackChangesEditing","ImageUtils","commands","resizeImage","ImageResize","accept","ImageEditing","getAttribute","removeObject","document","convertBlockImageToInline","from","enableCommand","ImageTextAlternativeEditing","toPrevious","registerElementLabel","length","has","getSuggestions","registerCustomCallback","ImageInlineEditing","model","imageStylePreApply","refresh","differ","FORMAT_SIDE_IMAGE","isIntersecting","schema","next","_splitMarkerName","locale","commandName","fromPosition","getClosestSelectedImageElement","type","_descriptionFactory","findIndex","resizedWidth","ImageBlockEditing","alt","nodeBefore"];var Yr,ti;Yr=Zr,ti=146,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x34")](){const t=this.editor;if(!t.plugins[ei("0x4a")](ei("0x3f")))return;const n=t.plugins[ei("0x1c")](ei("0x39")),o=t[ei("0x62")].get(ei("0x3a")),s={},r=t[ei("0x57")];if(n[ei("0x45")]("insertImage"),n[ei("0x5c")][ei("0x48")](ei("0x74"),(t=>Yo(r,ei("0x30"),t))),n._descriptionFactory[ei("0x48")](ei("0x5"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[ei("0x5c")].registerElementLabel(ei("0x36"),(()=>Yo(r,ei("0xd")))),t[ei("0x62")][ei("0x4a")]("ImageUploadEditing")&&n.enableCommand(ei("0x2b")),t.plugins[ei("0x4a")](ei("0x5f"))&&t[ei("0x62")][ei("0x4a")](ei("0x4d"))&&(n[ei("0x45")](ei("0x6"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[ei("0x4e")][ei("0x42")][ei("0x20")]);t[ei("0x4e")].change((()=>{n[ei("0x2e")](r,{commandName:ei("0x6"),commandParams:[s]},[],ei("0x43"))}))})),n[ei("0x45")](ei("0x24"),((e,s)=>{t[ei("0x4e")][ei("0x10")]((r=>{let x=o[ei("0x5a")](t[ei("0x4e")][ei("0x42")][ei("0x20")]),a=r[ei("0x78")](x);const c=i.LivePosition[ei("0x59")](a.start,ei("0x47")),l=i.LivePosition.fromPosition(a[ei("0x6f")],"toNext");n[ei("0x23")]((()=>e(s))),x=o[ei("0x5a")](t[ei("0x4e")][ei("0x42")][ei("0x20")]),a=r.createRangeOn(x);const d=r[ei("0x25")](c,l);c[ei("0x75")](),l[ei("0x75")](),n[ei("0x2e")](x,{commandName:ei("0x6"),commandParams:[s]},[],ei("0x29")),d.start.isBefore(a[ei("0x22")])&&n.markInsertion(r[ei("0x25")](d[ei("0x22")],a[ei("0x22")]),ei("0x29")),a.end.isBefore(d[ei("0x6f")])&&n[ei("0x1")](r[ei("0x25")](a[ei("0x6f")],d.end),ei("0x29"))}))})),n._suggestionFactory[ei("0x4c")]("formatBlock","convertInlineImageToBlock","join",(()=>!1)),n[ei("0x37")][ei("0x4c")](ei("0x32"),ei("0x29"),"accept",(()=>!1)),n[ei("0x37")].registerCustomCallback(ei("0x32"),ei("0x29"),ei("0xc"),n[ei("0x37")][ei("0x66")](ei("0x32"),"","accept")),n[ei("0x37")].registerCustomCallback(ei("0x6e"),"convertInlineImageToBlock","join",(()=>!1)),n[ei("0x37")].registerCustomCallback("insertion","convertInlineImageToBlock",ei("0xc"),(([e])=>{const o=n[ei("0x37")][ei("0x66")]("insertion","",ei("0xc"));let s=e[ei("0x22")],r=e[ei("0x6f")];const i=t[ei("0x4e")][ei("0x54")][ei("0x6c")](s,"backward"),x=t[ei("0x4e")][ei("0x54")][ei("0x6c")](r,"forward");i[ei("0x73")]&&(s=i[ei("0x22")]),x[ei("0x73")]&&(r=x.end),o([t[ei("0x4e")][ei("0x25")](s,r)])})),n[ei("0x37")][ei("0x4c")](ei("0x32"),ei("0x29"),"chain",c),n._suggestionFactory[ei("0x4c")](ei("0x6e"),ei("0x29"),"chain",c)),t.plugins[ei("0x4a")]("ImageCaptionEditing")&&(n[ei("0x45")](ei("0x31"),((e,s)=>{const r=t[ei("0x62")].get(ei("0x63"));let i=o[ei("0x5a")](t.model[ei("0x42")].selection),x=r[ei("0x77")](i);t[ei("0x4e")].change((()=>{if(x)return void n[ei("0x6d")](t[ei("0x4e")][ei("0x78")](x));const a=o[ei("0x2")](i);e(s),i=o[ei("0x5a")](t.model.document[ei("0x20")]),x=r[ei("0x77")](i),n[ei("0x1")](t.model[ei("0x78")](x),a?null:ei("0x1b"))}))})),n[ei("0x37")][ei("0x4c")](ei("0x6e"),ei("0x1b"),"chain",c)),t[ei("0x62")][ei("0x4a")]("ImageStyleEditing")){n.enableCommand(ei("0x38"),((s,r)=>{const i=t[ei("0x62")][ei("0x1c")](ei("0x19")).me,x=t.commands[ei("0x1c")](ei("0x38"));let a=o[ei("0x5a")](t[ei("0x4e")][ei("0x42")][ei("0x20")]),c=t[ei("0x4e")][ei("0x78")](a),l=x.value;if(l==r[ei("0x3")])return;const d={commandName:ei("0x38"),commandParams:[r],formatGroupId:(0,e.uid)()};t[ei("0x4e")][ei("0x10")]((()=>{if(n[ei("0x4b")]().filter((t=>t[ei("0x11")]&&i==t.author&&(ei("0x32")==t.type||ei("0x4")==t[ei("0x5b")])&&(ei("0x4f")==t[ei("0xf")]||"imageStylePostApply"==t[ei("0xf")])&&t[ei("0x15")]()[ei("0x65")](c)))[ei("0x8")]((t=>n[ei("0x72")](t.head))),a=o[ei("0x5a")](t[ei("0x4e")].document[ei("0x20")]),c=t[ei("0x4e")][ei("0x78")](a),x[ei("0x50")](),t[ei("0x3b")][ei("0x1c")]("imageTypeInline")[ei("0x50")](),t.commands[ei("0x1c")](ei("0x24"))[ei("0x50")](),l=x.value,l!=r.value)return o[ei("0x64")](a)&&x.shouldConvertImageType(r.value,a)?(s({...r,setImageSizes:!1}),a=o[ei("0x5a")](t.model[ei("0x42")][ei("0x20")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],ei("0x4f"))):void(o[ei("0x2")](a)?n.markBlockFormat(a,d,[],ei("0x12")):n[ei("0x71")](c,d,ei("0x12")))}))}));for(const e of t.plugins.get(ei("0x17"))[ei("0x0")])s[e[ei("0x1e")]]=e[ei("0x9")][ei("0xb")]();n._suggestionFactory[ei("0x4c")]("formatBlock",ei("0x4f"),ei("0x13"),(()=>!1)),n[ei("0x37")][ei("0x4c")](ei("0x32"),ei("0x12"),ei("0x13"),(()=>!1)),n._suggestionFactory.registerCustomCallback(ei("0x4"),ei("0x12"),ei("0x13"),(()=>!1)),n[ei("0x37")][ei("0x4c")](ei("0x32"),ei("0x4f"),ei("0x3e"),(([t])=>{o.setImageNaturalSizeAttributes(t[ei("0x2f")]())})),n._suggestionFactory.registerCustomCallback("formatBlock",ei("0x4f"),ei("0xc"),((t,e)=>{n[ei("0x37")][ei("0x66")]("formatBlock","",ei("0x3e"))(t,{commandName:e[ei("0x58")],commandParams:e[ei("0x1a")]})})),n[ei("0x37")][ei("0x4c")]("formatBlock",ei("0x4f"),"chain",c)}const x=[{type:ei("0x32"),subType:"imageStylePreApply"},{type:"insertion",subType:ei("0x1b")},{type:ei("0x32"),subType:ei("0x29")},{type:ei("0x6e"),subType:ei("0x29")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[ei("0x5b")]==e&&t[ei("0xf")]==n)),r=x[ei("0x5d")]((({type:t,subType:n})=>e[ei("0x5b")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[ei("0x15")](),a=e[ei("0x15")]();if((0==s||1==s)&&2==r&&i[ei("0x53")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,ei("0x6e"))[ei("0xa")]((({suggestion:t,meta:e})=>e[ei("0x7")]&&ei("0x29")==t[ei("0xf")]));if(t.length>1&&a[ei("0x6f")][ei("0x65")](i[ei("0x22")]))return!0;if(1==t[ei("0x49")]&&(i[ei("0x22")][ei("0x65")](a[ei("0x6f")])||i.end[ei("0x65")](a[ei("0x22")])))return!0}if(3==s&&3==r&&i[ei("0x22")].isBefore(a[ei("0x22")])){const t=i[ei("0x6f")][ei("0x28")],e=a[ei("0x22")][ei("0x61")];return o[ei("0x2")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[ei("0x4e")][ei("0x42")].registerPostFixer((()=>{let e=!1;const s=Array[ei("0x44")](t.model.document[ei("0x51")][ei("0x70")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[ei("0x56")](t);if("suggestion"==s&&n[ei("0x67")](a)){if(ei("0x32")==i&&(ei("0x4f")==x||ei("0x12")==x)){const t=n[ei("0x1f")](a);if(r[ei("0x2a")]){const s=t[ei("0x15")]()[ei("0x2f")]();if(o[ei("0x2")](s))continue;n[ei("0x72")](t),e=!0}}if(ei("0x6e")==i&&"imageCaption"==x&&!r[ei("0x2a")]){const t=n[ei("0x1f")](a);t[ei("0x55")]&&t[ei("0x55")][ei("0x11")]&&(n.discardSuggestion(t[ei("0x55")]),e=!0)}}}return e})),t[ei("0x62")][ei("0x4a")](ei("0x3d"))&&n[ei("0x45")]("resizeImage",((e,s)=>{const r=o[ei("0x5a")](t.model[ei("0x42")][ei("0x20")]);r[ei("0x40")](ei("0x5e"))!=s[ei("0x2d")]&&t[ei("0x4e")][ei("0x10")]((()=>{n[ei("0x2e")](r,{commandName:ei("0x3c"),commandParams:[s]})}))})),t[ei("0x62")][ei("0x4a")](ei("0x46"))&&n[ei("0x45")]("imageTextAlternative",((e,s)=>{const r=o[ei("0x5a")](t[ei("0x4e")][ei("0x42")][ei("0x20")]);(r[ei("0x21")](ei("0x60"))?r[ei("0x40")](ei("0x60")):"")!=s.newValue&&t[ei("0x4e")][ei("0x10")]((()=>{n.markBlockFormat(r,{commandName:ei("0x33"),commandParams:[s]})}))})),n[ei("0x5c")][ei("0x26")]((t=>{if(x[ei("0x69")]((({type:e,subType:n})=>t[ei("0x5b")]==e&&t[ei("0xf")]==n)))return t[ei("0x6a")]?{}:void 0})),n[ei("0x5c")][ei("0x26")]((t=>{if(ei("0x6e")==t[ei("0x5b")]||"deletion"==t[ei("0x5b")]){const e=t[ei("0x2f")]();if(e&&e.is(ei("0x68"),ei("0x36")))return{type:ei("0x6e")==t[ei("0x5b")]?ei("0x14"):ei("0x41"),element:e,quantity:1}}})),n[ei("0x5c")][ei("0x26")]((t=>ei("0x32")==t[ei("0x5b")]&&ei("0x29")==t[ei("0xf")]?{type:ei("0x16"),content:ei("0x2c")}:ei("0x32")==t.type&&ei("0x43")==t[ei("0xf")]?{type:ei("0x16"),content:ei("0x79")}:void 0)),n[ei("0x5c")][ei("0x26")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e[ei("0x58")]){const t=e[ei("0x35")][0].value;return n=ei("0x1d")===t?Yo(r,ei("0x52")):s[t]||t,{type:"format",content:Yo(r,ei("0x76"),n)}}if(ei("0x33")==e[ei("0x58")]){const t=e.commandParams[0].newValue;return t?{type:ei("0x16"),content:Yo(r,ei("0x6b"),'"'+t+'"')}:{type:"format",content:Yo(r,ei("0xe"))}}if(ei("0x3c")==e[ei("0x58")]){const t=e[ei("0x35")][0][ei("0x2d")];return t?{type:ei("0x16"),content:Yo(r,ei("0x27"),t)}:{type:"format",content:Yo(r,ei("0x18"))}}}var n}))}}const oi=["src","get","selection","afterInit","getSuggestionCallback","editor","formatBlock","has","author","registerCustomCallback","enableCommand","change","plugins","getSelectedElement","handleReplaceImageCommand","discard","model","data","getContainedElement","TrackChangesEditing","accept","replaceImageSource","commandParams","handleSuggestionDescription","commandName","registerDescriptionCallback","document","markBlockFormat","_descriptionFactory","locale","Users","subType","_suggestionFactory","getSuggestions"];var si,ri;si=oi,ri=488,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{[ii("0x19")](){if(!this[ii("0x1b")].plugins[ii("0x1d")]("ImageEditing"))return;const t=this[ii("0x1b")][ii("0x0")][ii("0x17")](ii("0x7"));t[ii("0x20")](ii("0x9"),((t,e)=>this[ii("0x2")](t,e))),t[ii("0x14")][ii("0x1f")](ii("0x1c"),"replaceImageSource",ii("0x8"),t._suggestionFactory[ii("0x1a")](ii("0x1c"),null,ii("0x3"))),t[ii("0x14")][ii("0x1f")]("formatBlock","replaceImageSource","discard",t[ii("0x14")][ii("0x1a")](ii("0x1c"),null,ii("0x8"))),t[ii("0x10")][ii("0xd")]((t=>this[ii("0xb")](t)))}[ii("0x2")](t,e){const n=this[ii("0x1b")][ii("0x0")].get("TrackChangesEditing"),o=this[ii("0x1b")][ii("0x4")][ii("0xe")][ii("0x18")][ii("0x1")]();this[ii("0x1b")].model[ii("0x21")]((()=>{let s=o.getAttribute(ii("0x16"));const r=this.editor.plugins[ii("0x17")](ii("0x12")).me;for(const t of n[ii("0x15")]({skipNotAttached:!0})){const e=t[ii("0x6")]();if("replaceImageSource"===t[ii("0x13")]&&e===o){t[ii("0x1e")]!==r&&t[ii("0x3")](),s=t[ii("0x5")][ii("0xa")][0].source;break}}t(e),n[ii("0xf")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ii("0x9"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&ii("0x9")===e[ii("0xc")]){const t="*Format:* replace image URL";return{type:"format",content:Yo(this[ii("0x1b")][ii("0x11")],t)}}}}const ai=["trackChanges","_setSuggestionData","bind","listenTo","plugins","_trackChangesValueDuringImport","value","_handleImportedData","forEach","TrackChangesEditing","importWord","Users","_trackChangesExecuted","dataInsert","editor","lowest","execute","commands","get"];var ci,li;ci=ai,li=398,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{constructor(t){super(t),this[di("0x6")]=!1,this[di("0xd")]=!1}afterInit(){const t=this.editor,e=t.commands.get(di("0xb")),n=t.commands.get("trackChanges");e&&(e.on(di("0x11"),((t,[,e])=>{this._trackChangesValueDuringImport=n.value,e.collaboration_features.track_changes=!this[di("0x6")]}),{priority:"high"}),this[di("0x4")](e,di("0xe"),this._handleImportedData[di("0x3")](this)),this.listenTo(e,di("0xe"),(()=>{this[di("0xd")]&&(n[di("0x11")](),this._trackChangesExecuted=!1)}),{priority:di("0x10")}),t[di("0x5")][di("0x0")](di("0xa")).enableCommand(di("0xb")))}[di("0x8")](t,e){const{suggestions:n}=e,o=this[di("0xf")][di("0x12")][di("0x0")](di("0x1")),s=o[di("0x7")];this[di("0x6")]!==s&&(o[di("0x11")](),this._trackChangesExecuted=!0),n&&n[di("0x9")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[di("0xf")][di("0x5")].get(di("0xc")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:di("0xb")}}};this[di("0xf")][di("0x5")][di("0x0")](di("0xa"))[di("0x2")](s)}))}}const gi=["selection","enableCommand","change","getSelectedBlocks","schema","plugins","filter","_descriptionFactory","getItems","model","from","format","editor","commandName","get","outdent","checkAttribute","IndentBlock","indentBlock","getItemLabel","*Outdent:* %0","registerDescriptionCallback","outdentBlock","has","TrackChangesEditing"];var mi,fi;mi=gi,fi=135,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{afterInit(){const t=this.editor,e=t[hi("0x14")][hi("0x4")](hi("0xe"));t.plugins.has("IndentEditing")&&(e[hi("0x10")]("indent"),e.enableCommand(hi("0x5")));const n=t.locale;if(t.plugins[hi("0xd")](hi("0x7"))){for(const n of[hi("0x8"),hi("0xc")])e[hi("0x10")](n,(()=>{const o=Array[hi("0x0")](this[hi("0x2")][hi("0x18")].document[hi("0xf")][hi("0x12")]())[hi("0x15")]((t=>this.editor[hi("0x18")][hi("0x13")][hi("0x6")](t,"blockIndent")));t[hi("0x18")][hi("0x11")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[hi("0x16")][hi("0xb")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[hi("0x3")]&&"outdentBlock"!=o.commandName)return;const s=t[hi("0x17")]()[0],r=e[hi("0x16")][hi("0x9")](s);return hi("0x8")==o[hi("0x3")]?{type:hi("0x1"),content:Yo(n,"*Indent:* %0",r)}:hi("0xc")==o[hi("0x3")]?{type:hi("0x1"),content:Yo(n,hi("0xa"),r)}:void 0}))}}}var bi,Ei,_i=["init","get","plugins","requires","TrackChangesEditing","input","editor"];bi=_i,Ei=142,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);var Ti=function(t,e){return _i[t-=0]};class Ci extends t.Plugin{static get[Ti("0x1")](){return[Js.Input]}[Ti("0x5")](){this[Ti("0x4")][Ti("0x0")][Ti("0x6")](Ti("0x2")).enableCommand(Ti("0x3"))}}const yi=["commandParams","LinkEditing","isCollapsed","format","registerDescriptionCallback","link","markInlineFormat","commandName","enableCommand","model","unlink","*Remove link*","locale","selection","_descriptionFactory","afterInit","TrackChangesEditing","document","change","getFirstPosition","editor","*Set link:* %0","hasAttribute","plugins","linkHref","getAttribute"];var ki,Ai;ki=yi,Ai=111,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x8")](){const t=this[vi("0xd")];if(!t[vi("0x10")].has(vi("0x14")))return;const e=t[vi("0x10")].get(vi("0x9"));e[vi("0x1")](vi("0x18"),((n,o)=>{const s=t[vi("0x2")][vi("0xa")][vi("0x6")];let r=[];if(s[vi("0x15")]){if(!s[vi("0xf")](vi("0x11")))return void n(o);{const e=(0,Js.findAttributeRange)(s[vi("0xc")](),vi("0x11"),s[vi("0x12")]("linkHref"),t.model);r=[e]}}else r=Array.from(s.getRanges());t[vi("0x2")][vi("0xb")]((()=>{for(const t of r)e[vi("0x19")](t,{commandName:vi("0x18"),commandParams:[o]})}))})),e[vi("0x1")]("unlink",(()=>{const n=this.editor[vi("0x2")],o=n[vi("0xa")][vi("0x6")];n[vi("0xb")]((()=>{let n=[];n=o.isCollapsed?[(0,Js.findAttributeRange)(o[vi("0xc")](),vi("0x11"),o[vi("0x12")]("linkHref"),t[vi("0x2")])]:Es(vi("0x11"),o.getFirstRange(),t[vi("0x2")]);for(const t of n)e[vi("0x19")](t,{commandName:vi("0x3"),commandParams:[]})}))})),e[vi("0x7")][vi("0x17")]((e=>{const{data:n}=e,o=t[vi("0x5")];if(n){if("link"==n[vi("0x0")]){const t=n[vi("0x13")][0];return{type:vi("0x16"),content:Yo(o,vi("0xe"),'"'+t+'"')}}return vi("0x3")==n[vi("0x0")]?{type:vi("0x16"),content:Yo(o,vi("0x4"))}:void 0}}))}}const Ii=["getSelectedBlocks","_selectedElements","format","editor","end","bulleted","get","paragraph","ELEMENT_LIST_ITEM","parent","_descriptionFactory","schema","locale","element","replace","checkTodoList","document","ELEMENT_BULLETED_LIST","push","slice","has","*Change to:* %0","numbered","listType","blockName","execute","TodoListEditing","commands","bulletedList","createPositionAt","outdentList","selection","numberedList","enableCommand","from","afterInit","markBlockFormat","value","name","add","listIndent","registerDescriptionCallback","commandParams","nextSibling","createRange","getAttribute","isObject","plugins","length","TrackChangesEditing","*Check item*","before","registerElementLabel","findIndex","List","indentList","todoList","commandName","previousSibling","model","*Uncheck item*","listItem","change","todoListChecked"];var Si,Li;Si=Ii,Li=203,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Ni=function(t,e){return Ii[t-=0]};class wi extends t.Plugin{[Ni("0x18")](){const t=this[Ni("0x38")],e=t[Ni("0x1")];if(!t.plugins[Ni("0x9")]("ListEditing"))return;const n=t[Ni("0x24")][Ni("0x3b")](Ni("0x26")),o=t[Ni("0x24")].has(Ni("0xf"));function s(e){return()=>{const o=t.model[Ni("0x5")][Ni("0x14")],s=t.commands[Ni("0x3b")](e);if(s[Ni("0x1a")])return void t[Ni("0xe")](Ni("0x3c"),{});const r=e[Ni("0x8")](0,-4),i=function(t,e,n){let o=Array[Ni("0x17")](t).filter((t=>{return e=t,(o=n).checkChild(e[Ni("0x3e")],"listItem")&&!o[Ni("0x23")](e);var e,o}));o=o.filter((t=>!t.is(Ni("0x2"),Ni("0x32"))||t[Ni("0x22")](Ni("0xc"))!=e));const s=new Set;for(const t of o)t.is("element",Ni("0x32"))?s[Ni("0x1c")](Mi(t)):s.add(t);return Array[Ni("0x17")](s)}(o[Ni("0x35")](),r,t[Ni("0x30")][Ni("0x0")]);t.model[Ni("0x33")]((()=>{for(const t of i)n[Ni("0x19")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:Ni("0xd")},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0x17")](t);const n=e[Ni("0x2a")]((t=>Ni("0x32")!=t[Ni("0x1b")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ni("0x30")][Ni("0x5")].selection[Ni("0x35")]()),s=t.model[Ni("0x21")](t.model[Ni("0x12")](o[0],Ni("0x28")),t[Ni("0x30")].createPositionAt(o[o[Ni("0x25")]-1],Ni("0x39")));t[Ni("0x30")][Ni("0x33")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Ni("0x20")];for(;t&&t[Ni("0x22")](Ni("0x1d"))>n.getAttribute(Ni("0x1d"));)e[Ni("0x1c")](t),t=t[Ni("0x20")]}return Array[Ni("0x17")](e)}(o))}))}}n[Ni("0x16")]("numberedList",s("numberedList")),n[Ni("0x16")](Ni("0x11"),s("bulletedList")),o&&n.enableCommand(Ni("0x2d"),s("todoList")),n[Ni("0x16")](Ni("0x2c"),r(Ni("0x2c"))),n[Ni("0x16")](Ni("0x13"),r(Ni("0x13"))),o&&n[Ni("0x16")](Ni("0x4"),(()=>{const e=t[Ni("0x10")][Ni("0x3b")](Ni("0x4")),o=Array[Ni("0x17")](e[Ni("0x36")]);o.filter((t=>t[Ni("0x22")](Ni("0x34"))!=e[Ni("0x1a")])),t[Ni("0x30")][Ni("0x33")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ni("0x1a")]}]})}))})),n[Ni("0x3f")][Ni("0x29")](Ni("0x32"),(t=>Yo(e,Ni("0x3d"),t))),n._descriptionFactory[Ni("0x1e")]((t=>{const{data:n}=t;if(n){if(Ni("0x15")==n[Ni("0x2e")]||Ni("0x11")==n[Ni("0x2e")]||"todoList"==n[Ni("0x2e")])switch(n[Ni("0x2e")][Ni("0x3")](Ni("0x2b"),"")){case Ni("0x3a"):return o(Yo(e,Ni("0x6")));case Ni("0xb"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Yo(e,"ELEMENT_TODO_LIST"))}if(Ni("0x2c")==n[Ni("0x2e")])return{type:"format",content:Yo(e,"*Indent:* %0",Yo(e,Ni("0x3d")))};if(Ni("0x13")==n[Ni("0x2e")])return{type:Ni("0x37"),content:Yo(e,"*Outdent:* %0",Yo(e,Ni("0x3d")))};if(Ni("0x4")==n[Ni("0x2e")])return n[Ni("0x1f")][0].forceValue?{type:"format",content:Yo(e,Ni("0x27"))}:{type:Ni("0x37"),content:Yo(e,Ni("0x31"))}}function o(t){return{type:Ni("0x37"),content:Yo(e,Ni("0xa"),t)}}}))}}function Mi(t){const e=t[Ni("0x22")](Ni("0x1d"));if(0==e)return t;let n=t;for(;t[Ni("0x2f")]&&t[Ni("0x2f")].is("element",Ni("0x32"));){const o=t.previousSibling[Ni("0x22")](Ni("0x1d"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[Ni("0x2f")]}return n}function Oi(t){const e=[];if(t.is(Ni("0x2"),Ni("0x32"))&&t[Ni("0x22")](Ni("0x1d"))>0){let n=t[Ni("0x20")];for(;n&&Ni("0x32")==n[Ni("0x1b")]&&n[Ni("0x22")](Ni("0x1d"))==t[Ni("0x22")](Ni("0x1d"));)e[Ni("0x7")](n),n=n[Ni("0x20")]}return e}const Fi=["_LIST_","createRange","listStart","map","listStyle","getSiblingNodes","_getTranslationKeyForListStyle","backward","document","startIndex","styles","markMultiRangeBlockFormat","get","listType","element","change","getFirstPosition","commandName","format","reversed","config","listItem","_descriptionFactory","*Change to:* %0","handleListStartCommand","handleListStyleCommand","getListTypeFromListStyleType","unshift","commandParams","createPositionAt","plugins","TrackChangesEditing","_getSuggestionBlocksForListStyle","getLastPosition","editor","handleDescriptions","filter","enableCommand","push","length","from","handleListReversedCommand","forward","toUpperCase","type","*Format:* set order to reversed","afterInit","*Format:* set start index to %0","getSelectedBlocks","listReversed","flat","_getSuggestionBlocks","bind","replace","selection","getAttribute","parent","locale","numbered","model","ListUtils"];var Di,Pi;Di=Fi,Pi=492,function(t){for(;--t;)Di.push(Di.shift())}(++Pi);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x2a")](){if(!this[Bi("0x1e")][Bi("0x1a")].has("ListPropertiesEditing"))return;const t=this[Bi("0x1e")][Bi("0x10")].get("list.properties"),e=this[Bi("0x1e")].plugins[Bi("0x8")](Bi("0x1b"));t[Bi("0x6")]&&e[Bi("0x21")](Bi("0x0"),this.handleListStyleCommand[Bi("0x30")](this)),t.reversed&&e[Bi("0x21")](Bi("0x2d"),this[Bi("0x25")][Bi("0x30")](this)),t[Bi("0x5")]&&e.enableCommand(Bi("0x3b"),this[Bi("0x14")][Bi("0x30")](this)),e[Bi("0x12")].registerDescriptionCallback(this[Bi("0x1f")][Bi("0x30")](this))}[Bi("0x15")](t,e={}){const n=this[Bi("0x1e")].plugins[Bi("0x8")](Bi("0x1b")),o=this._getSuggestionBlocksForListStyle();this[Bi("0x1e")].model[Bi("0xb")]((()=>{n[Bi("0x7")](o,{commandName:Bi("0x0"),commandParams:[{type:e[Bi("0x28")]}],formatGroupId:Bi("0x0")})}))}handleListReversedCommand(t,e={}){const n=this[Bi("0x1e")].plugins.get(Bi("0x1b")),o=this[Bi("0x2f")]((t=>t.is("element","listItem")&&Bi("0x36")===t[Bi("0x33")](Bi("0x9"))));if(o[Bi("0x23")]<1)return;const s=o[Bi("0x3c")]((t=>this.editor[Bi("0x37")][Bi("0x3a")](this[Bi("0x1e")][Bi("0x37")][Bi("0x19")](t,"before"),this[Bi("0x1e")][Bi("0x37")][Bi("0x19")](t,0))));this[Bi("0x1e")][Bi("0x37")][Bi("0xb")]((()=>{n[Bi("0x7")](s,{commandName:"listReversed",commandParams:[{reversed:e[Bi("0xf")]}],formatGroupId:"listReversed"})}))}[Bi("0x14")](t,e={}){const n=this[Bi("0x1e")][Bi("0x1a")][Bi("0x8")](Bi("0x1b")),o=this[Bi("0x2f")]((t=>t.is("element",Bi("0x11"))&&Bi("0x36")===t.getAttribute("listType")));if(o.length<1)return;const s=o.map((t=>this[Bi("0x1e")][Bi("0x37")][Bi("0x3a")](this[Bi("0x1e")].model.createPositionAt(t,"before"),this[Bi("0x1e")].model[Bi("0x19")](t,0))));this.editor[Bi("0x37")][Bi("0xb")]((()=>{n[Bi("0x7")](s,{commandName:"listStart",commandParams:[{startIndex:e[Bi("0x5")]}],formatGroupId:"listStart"})}))}[Bi("0x1f")](t){const e=this[Bi("0x1e")][Bi("0x35")],{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0xd")]){case Bi("0x0"):o=Bi("0x13"),s={type:Bi("0xe"),content:Yo(e,o,Yo(e,this[Bi("0x2")](n[Bi("0x18")][0][Bi("0x28")])))};break;case"listReversed":o=n[Bi("0x18")][0][Bi("0xf")]?Bi("0x29"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case Bi("0x3b"):o=Bi("0x2b"),s={type:Bi("0xe"),content:Yo(e,o,n.commandParams[0].startIndex)}}return s}[Bi("0x1c")](){var t,e,n,o;const s=this[Bi("0x1e")].plugins[Bi("0x8")](Bi("0x38"));let r=Array[Bi("0x24")](this[Bi("0x1e")][Bi("0x37")][Bi("0x4")][Bi("0x32")][Bi("0x2c")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element",Bi("0x11")))&&r[Bi("0x17")](...s[Bi("0x1")](this[Bi("0x1e")][Bi("0x37")].document[Bi("0x32")][Bi("0xc")](),Bi("0x3"))),(null===(e=r[r[Bi("0x23")]-1])||void 0===e?void 0:e.is(Bi("0xa"),Bi("0x11")))&&r[Bi("0x22")](...s[Bi("0x1")](this.editor.model[Bi("0x4")].selection[Bi("0x1d")](),Bi("0x26"))),r=[...new Set(r)],(null===(o=null===(n=this[Bi("0x1e")][Bi("0x37")][Bi("0x4")][Bi("0x32")][Bi("0xc")]())||void 0===n?void 0:n[Bi("0x34")])||void 0===o?void 0:o.is(Bi("0xa"),Bi("0x11")))&&(r=r.filter((t=>t.is(Bi("0xa"),Bi("0x11"))))),r}[Bi("0x2f")](t){const e=this[Bi("0x1e")][Bi("0x1a")][Bi("0x8")](Bi("0x38"));let n=Array[Bi("0x24")](this[Bi("0x1e")].model[Bi("0x4")][Bi("0x32")][Bi("0x2c")]())[Bi("0x20")](t).map((t=>{const n=this.editor.model[Bi("0x19")](t,0);return[...e[Bi("0x1")](n,Bi("0x3")),...e[Bi("0x1")](n,"forward")]}))[Bi("0x2e")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[Bi("0x1e")].plugins[Bi("0x8")](Bi("0x38"))[Bi("0x16")](t).toUpperCase()+Bi("0x39")+t[Bi("0x27")]()[Bi("0x31")](/-/g,"_")}}const Ui=["elementToElement","_descriptionFactory","dataDowncast","div","media","has","locale","for","MediaEmbedEditing","enableCommand","createEmptyElement","high","downcastDispatcher","mediaEmbed","plugins","TrackChangesEditing","data","showSuggestionHighlights","options","get","ELEMENT_MEDIA","attribute:url:media","conversion","editor"];var Gi,Hi;Gi=Ui,Hi=170,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this[zi("0x15")];if(!t[zi("0xc")][zi("0x3")](zi("0x6")))return;const e=t[zi("0xc")][zi("0x11")](zi("0xd")),n=t[zi("0x4")];e[zi("0x7")](zi("0xb")),e[zi("0x17")].registerElementLabel(zi("0x2"),(t=>Yo(n,zi("0x12"),t))),t[zi("0x14")][zi("0x5")](zi("0x0"))[zi("0x16")]({model:zi("0x2"),view:(t,{writer:e,options:n})=>{if(n[zi("0xf")])return e[zi("0x8")](zi("0x1"))},converterPriority:zi("0x9")}),t[zi("0xe")][zi("0xa")].on(zi("0x13"),((t,e,n)=>{n[zi("0x10")][zi("0xf")]&&t.stop()}),{priority:zi("0x9")})}}const Vi=["mention","editor","enableCommand","MentionEditing","plugins","afterInit"];var Ki,qi;Ki=Vi,qi=128,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x3")](){const t=this[Xi("0x5")];t[Xi("0x2")].has(Xi("0x1"))&&t[Xi("0x2")].get("TrackChangesEditing")[Xi("0x0")](Xi("0x4"))}}const Ji=["editor","plugins","enableCommand","afterInit","get","pageBreak","ELEMENT_PAGE_BREAK","_descriptionFactory","PageBreakEditing","registerElementLabel","has"];var Qi,Zi;Qi=Ji,Zi=245,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x0")](){const t=this[Yi("0x8")];if(!t[Yi("0x9")][Yi("0x7")](Yi("0x5")))return;t[Yi("0x9")][Yi("0x1")]("TrackChangesEditing")[Yi("0xa")](Yi("0x2"));const e=t.plugins.get("TrackChangesEditing"),n=t.locale;e[Yi("0x4")][Yi("0x6")](Yi("0x2"),(t=>Yo(n,Yi("0x3"),t)))}}const ex=["*Change to:* %0","getItemLabel","has","paragraph","ck-suggestion-marker--active","markerName","ELEMENT_PARAGRAPH","isTouching","parent","format","mapper","from","writer","span","end","markBlockFormat","consumable","highest","change","markerRange","checkChild","activeMarkers","schema","nodeAfter","data","_descriptionFactory","createUIElement","insertion","model","toViewPosition","get","type","addMarker:suggestion:insertion","isLimit","$text","afterInit","ck-suggestion-marker-split","getSelectedBlocks","registerElementLabel","consume","plugins","document","filter","name","commandName","isBlock","Paragraph","selection","addClass","registerDescriptionCallback","editing","TrackChangesEditing","editor","enableCommand","isObject","showSuggestionHighlights","bindElementToMarker","options"];var nx,ox;nx=ex,ox=199,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0xa")](){const t=this[sx("0x1b")];if(!t[sx("0xf")][sx("0x23")](sx("0x15")))return;const e=t.locale,n=t.plugins[sx("0x5")]("TrackChangesEditing");n[sx("0x0")][sx("0xd")](sx("0x24"),(t=>Yo(e,sx("0x27"),t))),n.enableCommand("paragraph",((e,o={})=>{const s=t[sx("0x3")][sx("0x10")],r=o[sx("0x16")]||s[sx("0x16")],i=Array[sx("0x2c")](r[sx("0xc")]())[sx("0x11")]((t=>{return e=t,(n=this.editor[sx("0x3")].schema)[sx("0x35")](e[sx("0x29")],sx("0x24"))&&!n[sx("0x1d")](e)&&sx("0x24")!=e.name;var e,n}));t.model[sx("0x33")]((()=>{for(const t of i)n[sx("0x30")](t,{commandName:sx("0x24"),commandParams:[],formatGroupId:"blockName"},_s(t))}))})),n[sx("0x0")][sx("0x18")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[sx("0x13")])return{type:sx("0x2a"),content:Yo(e,sx("0x21"),Yo(e,sx("0x27")))}})),n[sx("0x1c")]("insertParagraph"),t[sx("0x19")].downcastDispatcher.on(sx("0x7"),ix(t),{priority:sx("0x32")}),t[sx("0x39")].downcastDispatcher.on(sx("0x7"),((e,n,o)=>{o[sx("0x20")][sx("0x1e")]&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x32")});const o=n[sx("0x0")];o[sx("0x18")]((n=>{if(sx("0x2")!==n[sx("0x6")])return;const{start:s,end:r}=n.getFirstRange();if(!s[sx("0x28")](r)||!s.nodeAfter)return;const i=t.model[sx("0x37")],x=s.nodeAfter;return i.isBlock(x)&&!i[sx("0x8")](x)&&i[sx("0x35")](x,sx("0x9"))?{type:sx("0x2"),content:Yo(e,"*Insert:* %0",o[sx("0x22")](x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0xf")][sx("0x5")](sx("0x1a")),i=o[sx("0x34")].start,x=o[sx("0x34")][sx("0x2f")],a=t.model[sx("0x37")];if(!i[sx("0x28")](x)||!i[sx("0x38")])return;const c=i[sx("0x38")];if(a[sx("0x14")](c)&&!a[sx("0x8")](c)&&a[sx("0x35")](c,"$text")){if(!s[sx("0x31")][sx("0xe")](o.markerRange,n[sx("0x12")]))return;const t=s[sx("0x2d")][sx("0x1")](sx("0x2e"),{class:sx("0xb")}),i=s[sx("0x2b")][sx("0x4")](x);e&&r[sx("0x36")].includes(o[sx("0x26")])&&s[sx("0x2d")][sx("0x17")](sx("0x25"),t),s.writer.insert(i,t),s[sx("0x2b")][sx("0x1f")](t,o[sx("0x26")])}}}const xx=["RemoveFormatEditing","has","get","isFormatting","format","TrackChangesEditing","change","removeFormat","*Remove all formatting*","plugins","schema","editor","markInlineFormat","getAttributes","afterInit","isCollapsed","_descriptionFactory","model","getItems"];var ax,cx;ax=xx,cx=235,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class dx extends t.Plugin{[lx("0x7")](){const t=this[lx("0x4")];if(!t[lx("0x2")][lx("0xd")](lx("0xc")))return;const e=t[lx("0x2")][lx("0xe")](lx("0x11"));e.enableCommand(lx("0x0"),(n=>{const o=t[lx("0xa")].document.selection;o[lx("0x8")]?n():t[lx("0xa")][lx("0x12")]((()=>{const n=Array.from(o.getRanges());for(const o of n)for(const n of o[lx("0xb")]())ux(n,t[lx("0xa")][lx("0x3")])&&e[lx("0x5")](t[lx("0xa")].createRangeOn(n),{commandName:"removeFormat",commandParams:[]})}))})),e[lx("0x9")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&lx("0x0")==n.commandName)return{type:lx("0x10"),content:Yo(t.locale,lx("0x1"))}}))}}function ux(t,e){for(const[n]of t[lx("0x6")]()){const t=e.getAttributeProperties(n);if(t&&t[lx("0xf")])return!0}return!1}const gx=["get","editor","trackChanges","discardSelectedSuggestions","has","goToNextRestrictedEditingException","enableCommand","acceptSelectedSuggestions","acceptAllSuggestions","discardAllSuggestions","goToPreviousRestrictedEditingException"];var mx,fx;mx=gx,fx=107,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{afterInit(){const t=this[hx("0x4")];if(!t.plugins[hx("0x7")]("RestrictedEditingModeEditing"))return;const e=t.plugins[hx("0x3")]("TrackChangesEditing");e[hx("0x9")](hx("0x2")),e.enableCommand(hx("0x8"));const n=t.plugins[hx("0x3")]("RestrictedEditingModeEditing");n[hx("0x9")](hx("0x5")),n[hx("0x9")]("acceptSuggestion"),n.enableCommand("discardSuggestion"),n[hx("0x9")](hx("0x0")),n[hx("0x9")](hx("0x1")),n[hx("0x9")](hx("0xa")),n.enableCommand(hx("0x6"))}}const bx=["locale","model","get","getItems","markerRange","insert","markerName","showSuggestionHighlights","enableCommand","editor","options","element","addMarker:suggestion:insertion","writer","_descriptionFactory","registerElementLabel","includes","TrackChangesEditing","softBreak","test","editing","high","createPositionBefore","data","bindElementToMarker","plugins","span","merge","deletion","requires","addMarker:suggestion:deletion","addMarker:suggestion","name","ELEMENT_LINE_BREAK","split","shiftEnter","downcastDispatcher","toViewPosition","mapper"];var Ex,_x;Ex=bx,_x=293,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get[Tx("0x9")](){return[xr.ShiftEnter]}init(){const t=this[Tx("0x1c")],e=t[Tx("0x5")][Tx("0x15")](Tx("0x24"));e[Tx("0x1b")](Tx("0xf")),t[Tx("0x0")][Tx("0x10")].on(Tx("0x1f"),yx(t),{priority:"high"}),t[Tx("0x0")][Tx("0x10")].on(Tx("0xa"),yx(t),{priority:Tx("0x1")}),t[Tx("0x3")][Tx("0x10")].on(Tx("0xb"),((e,n,o)=>{o[Tx("0x1d")][Tx("0x1a")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e[Tx("0x21")][Tx("0x22")](Tx("0x25"),(e=>Yo(t[Tx("0x13")],Tx("0xd"),e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Tx("0x5")][Tx("0x15")](Tx("0x24"));if(!s.consumable[Tx("0x26")](o[Tx("0x17")],n[Tx("0xc")]))return;const i=t[Tx("0x14")];for(const t of o[Tx("0x17")][Tx("0x16")]()){if(!t.is(Tx("0x1e"),"softBreak"))continue;const n=Tx("0x8")==o[Tx("0x19")].split(":")[1]?Tx("0x7"):Tx("0xe"),x=s.writer.createUIElement(Tx("0x6"),{class:"ck-suggestion-marker-"+n}),a=s[Tx("0x12")][Tx("0x11")](i[Tx("0x2")](t));e&&r.activeMarkers[Tx("0x23")](o[Tx("0x19")])&&s[Tx("0x20")].addClass("ck-suggestion-marker--active",x),s[Tx("0x20")][Tx("0x18")](a,x),s[Tx("0x12")][Tx("0x4")](x,o[Tx("0x19")])}}}const kx=["get","commands","_descriptionFactory","has","restrictedEditingException","selection","document","format","from","forceValue","markInlineFormat","TrackChangesEditing","plugins","isCollapsed","editor","commandParams","value","change","FORMAT_RESTRICTED_ENABLED","locale","StandardEditingModeEditing","FORMAT_RESTRICTED_DISABLED","commandName"];var Ax,vx;Ax=kx,vx=320,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{afterInit(){const t=this[Rx("0x10")],e=t.model,n=t[Rx("0x15")];if(!t[Rx("0xe")][Rx("0x5")](Rx("0x16")))return;const o=t[Rx("0xe")].get(Rx("0xd")),s=Rx("0x6"),r=t[Rx("0x3")][Rx("0x2")](s);o.enableCommand(s,((t,n={})=>{const i=e[Rx("0x8")][Rx("0x7")];if(i[Rx("0xf")])return void t(n);const x=void 0!==n.forceValue?n[Rx("0xb")]:!r[Rx("0x12")];e[Rx("0x13")]((()=>{const t=Array[Rx("0xa")](i.getRanges());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0xc")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0x4")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Rx("0x1")]==s)return e[Rx("0x11")][0][Rx("0xb")]?{type:"format",content:Yo(n,Rx("0x14"))}:{type:Rx("0x9"),content:Yo(n,Rx("0x0"))}}))}}const Sx=["get","has","getAncestors","includes","model","every","isCollapsed","normalizeConfig","element","add","styleName","value","StyleUtils","classes","isBlock","getAttribute","format","style.definitions","style","locale","config","name","getItems","getRanges","push","toLowerCase","_getRangesWithClasses","commandName","forceValue","markBlockFormat","find","plugins","from","*Remove format:* %0","enableCommand","editor","change","_getStyleDefinition","commandParams","enabledStyles","*Format:* %0","getDefinitionsForView"];var Lx,Nx;Lx=Sx,Nx=485,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Sx[t-=0]};class Mx extends t.Plugin{afterInit(){const t=this[wx("0xc")];if(!t[wx("0x8")][wx("0x14")]("Style"))return;const e=t.commands[wx("0x13")](wx("0x25")),n=t[wx("0x8")].get("TrackChangesEditing"),o=t[wx("0x26")],s=t[wx("0x8")].get("DataSchema"),r=t.plugins.get(wx("0x1f"))[wx("0x1a")](s,t[wx("0x27")].get(wx("0x24")));n[wx("0xb")]("style",((o,{styleName:i})=>{const x=t[wx("0x17")].document.selection,a=this[wx("0xe")](i,r);if(!a)return;if(!e[wx("0x10")][wx("0x16")](i))return;if(x[wx("0x19")]&&!a[wx("0x21")])return void o({styleName:i});const c=!e[wx("0x1e")].includes(a.name);if(a[wx("0x21")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[wx("0x15")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[wx("0x16")](o[wx("0x28")])){n[wx("0x1c")](o);break}}return n}(x.getSelectedBlocks(),a.modelElements);t[wx("0x17")][wx("0xd")]((()=>{for(const t of e)n[wx("0x6")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[wx("0x9")](x[wx("0x0")]());if(!c){const n=Array.from(s[wx("0x12")](a[wx("0x1b")],!1))[0].model,o=[];for(const s of e){const e=this[wx("0x3")](t[wx("0x17")],s,a[wx("0x20")],n);o[wx("0x1")](...e)}e=o}t[wx("0x17")][wx("0xd")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:wx("0x25"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&wx("0x25")===e[wx("0x4")])return e[wx("0xf")][0][wx("0x5")]?{type:wx("0x23"),content:Yo(o,wx("0x11"),e[wx("0xf")][0][wx("0x1d")][wx("0x2")]())}:{type:wx("0x23"),content:Yo(o,wx("0xa"),e[wx("0xf")][0][wx("0x1d")][wx("0x2")]())}}))}[wx("0xe")](t,e){let n=e.block[wx("0x7")]((e=>e[wx("0x28")]===t));return n||(n=e.inline[wx("0x7")]((e=>e[wx("0x28")]===t))),n}[wx("0x3")](t,e,n,o){const s=[];for(const r of e[wx("0x29")]()){const e=r[wx("0x22")](o);e&&n[wx("0x18")]((t=>e[wx("0x20")][wx("0x16")](t)))&&s[wx("0x1")](t.createRangeOn(r))}return s}}const Ox=["type","ELEMENT_TABLE","downcastDispatcher","$graveyard","removeTableRow","setSelection","getSelectionAffectedTableCells","values","span","maxRow","addMarker:suggestion","removeTableColumn","differ","join","TableEditing","nodeAfter","getChildren","last","ELEMENT_TABLE_COLUMN_WITH_TEXT","filter","addRange","min","TrackChangesEditing","insertTable","order","createPositionAt","isIntersectingWithRange","fromRange","model","addClass","detach","element","rootName","getRowIndexes","_getCoordsForCells","get","TableUtils","insertTableColumnLeft","end","registerElementLabel","position","document","ELEMENT_TABLE_ROW","selectTableColumn","push","findAncestor","enableCommand","markMultiRangeInsertion","suggestion","_acceptFormatSuggestionCallbackFactory","rowspan","insertion","map","maxColumn","tableCell","refresh","*Remove:* %0","createRangeOn","$textProxy","_descriptionFactory","substr","getCellLocation","enqueueChange","afterInit","insertTableColumnRight","registerCustomCallback","locale","getRanges","low","editor","minColumn","isEqual","deletion","highest","minRow","length","commands","getItems","start","tablePaste","insert","mapper","change:data","data","startsWith","_setupColumnsRowsFixing","table","item","every","tableColumn","from","batch","toViewElement","subType","cell","getFirstRange","nodeBefore","_tableSuggestions","_splitMarkerName","isArray","writer","getColumnIndexes","execute","hasAttribute","oldRange","classes","_suggestionFactory","some","MIN_SAFE_INTEGER","first","registerDescriptionCallback","isInContent","toLowerCase","ELEMENT_TABLE_COLUMN","tableRow","createRangeIn","colspan","_getSuggestionCoords","isTouching","name","_tablePostFixingSubtypes","registerPostFixer","left","getAttribute","root","change","getChanges","ELEMENT_TABLE_ROW_WITH_TEXT","MAX_SAFE_INTEGER","markMultiRangeDeletion","ELEMENT_TABLE_WITH_TEXT","getSuggestion","accept","has","discard","plugins","*Insert:* %0","insertTableRowBelow"];var Fx,Dx;Fx=Ox,Dx=479,function(t){for(;--t;)Fx.push(Fx.shift())}(++Dx);const Px=function(t,e){return Ox[t-=0]};class Bx extends t.Plugin{constructor(t){super(t),this[Px("0x37")]=[Px("0x31"),Px("0x18")],this[Px("0x20")]=new Set}[Px("0x88")](){const t=this.editor,e=t.model[Px("0x72")].selection;if(!t.plugins[Px("0x44")](Px("0x57")))return;const n=t[Px("0x1")],o=t[Px("0x46")].get(Px("0x5f")),s=t[Px("0x46")][Px("0x6c")](Px("0x6d"));o[Px("0x84")][Px("0x70")](Px("0x15"),(t=>Yo(n,Px("0x4a"),t))),this[Px("0x14")](),o[Px("0x77")](Px("0x60")),o[Px("0x77")]("selectTableRow"),o[Px("0x77")](Px("0x74"));for(const n of["insertTableRowAbove",Px("0x48")]){const r=t[Px("0xb")].get(n);o[Px("0x77")](n,(n=>{t[Px("0x65")][Px("0x3c")]((t=>{n();const i="above"===r[Px("0x61")],x=s[Px("0x4f")](e),a=s[Px("0x6a")](x),c=i?a[Px("0x2c")]-1:a[Px("0x5a")]+1,l=x[0][Px("0x76")](Px("0x15")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Px("0x19")](d)[Px("0x7d")]((e=>t[Px("0x82")](e.cell)));o.markMultiRangeInsertion(u,Px("0x31"))}))}))}for(const n of[Px("0x6e"),Px("0x89")]){const r=t[Px("0xb")][Px("0x6c")](n);o[Px("0x77")](n,(n=>{t[Px("0x65")].change((t=>{n();const i=Px("0x39")===r[Px("0x61")],x=s[Px("0x4f")](e),a=s[Px("0x24")](x),c=i?a[Px("0x2c")]-1:a[Px("0x5a")]+1,l=x[0][Px("0x76")](Px("0x15")),d=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Px("0x19")](d)[Px("0x7d")]((e=>t[Px("0x82")](e[Px("0x1d")])));o[Px("0x78")](u,Px("0x18"))}))}))}for(const n of["removeTableRow",Px("0x54")]){const r=n[Px("0x85")](11),i=r[Px("0x2f")](),x=i[Px("0x85")](0,3)+Px("0x51"),a=Px("0x15")+r,c=Px("0x5e")+r,l="max"+r;o.enableCommand(n,(()=>{t[Px("0x65")][Px("0x3c")]((t=>{const r=s.getSelectionAffectedTableCells(e),d=r[0][Px("0x76")]("table");let u;if("removeTableRow"==n){const t=s[Px("0x6a")](r);u={startRow:t[Px("0x2c")],endRow:t[Px("0x5a")],includeAllSlots:!0}}else{const t=s[Px("0x24")](r);u={startColumn:t[Px("0x2c")],endColumn:t.last,includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[Px("0x19")](g).map((({cell:t})=>t)),f=jx(m[Px("0x5c")]((t=>t.hasAttribute(x)))),h=jx(m[Px("0x5c")]((t=>!t.hasAttribute(x))))[Px("0x7d")]((e=>t[Px("0x82")](e))),p=o[Px("0x40")](h,a);if(p&&("tableRow"==p[Px("0x1c")]||Px("0x18")==p[Px("0x1c")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s[Px("0x86")](n),a=n[Px("0x3a")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Px("0x5d")](o)}}}))}))}function r(n){const o=Array[Px("0x19")](e[Px("0x2")]()).map((t=>i.LiveRange[Px("0x64")](t)));t.model[Px("0x3c")]((e=>{const s=e[Px("0x1a")];n=n.filter((t=>Px("0x4c")!=t.root[Px("0x69")])),e[Px("0x4e")](n),t[Px("0xb")][Px("0x6c")]("removeTableRow")[Px("0x80")](),t[Px("0x25")](Px("0x4d"),{forceDefaultExecution:!0}),t[Px("0x65")][Px("0x87")]((()=>{t[Px("0x65")][Px("0x87")](s,(t=>{const e=o[Px("0x5c")]((t=>Px("0x4c")!=t[Px("0x3b")][Px("0x69")]));e.length>0&&t[Px("0x4e")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Px("0x65")][Px("0x3c")]((o=>{const s=Array[Px("0x19")](e[Px("0x2")]())[Px("0x7d")]((t=>i.LiveRange[Px("0x64")](t))),r=[];for(const t of n)for(const e of t[Px("0xc")]({shallow:!0}))r[Px("0x75")](e);for(const e of r)"$graveyard"!=e[Px("0x3b")][Px("0x69")]&&(o[Px("0x4e")](o[Px("0x62")](e,0)),t[Px("0xb")][Px("0x6c")](Px("0x54")).refresh(),t[Px("0x25")](Px("0x54"),{forceDefaultExecution:!0}));const x=s[Px("0x5c")]((t=>"$graveyard"!=t.root.rootName));x.length>0&&o[Px("0x4e")](x);for(const t of s)t[Px("0x67")]()}))}function c(t,e){return e[Px("0x17")]((e=>t[Px("0x2a")]((t=>t.end[Px("0x6")](e[Px("0xd")])||e[Px("0x6f")].isEqual(t.start)))))}function l(t,e){return t.some((t=>e.some((e=>t[Px("0x6f")][Px("0x35")](e[Px("0xd")])))))}t[Px("0x12")][Px("0x4b")].on(Px("0x53"),((t,e,n)=>{if(!n.options.showSuggestionHighlights)return;const o=e[Px("0x16")];if(!o)return;const s=n[Px("0x10")][Px("0x1b")](o);function r(t){return Array[Px("0x22")](t)?t:[t]}s&&Px("0x7f")===o[Px("0x36")]&&(0,x.setHighlightHandling)(s,n[Px("0x23")],((t,e,n)=>n[Px("0x66")](r(e.classes),t)),((t,e,n)=>n.removeClass(r(e[Px("0x28")]),t)))}),{priority:Px("0x8")}),o[Px("0x84")][Px("0x2d")]((t=>{if(Px("0x7c")!=t[Px("0x49")]&&"deletion"!=t[Px("0x49")])return;const e=t.getContainedElement();if(null!=e&&e.is(Px("0x68"),Px("0x15"))){if(Px("0x7c")==t[Px("0x49")]){const e=t.getItems().filter((t=>t.is(Px("0x83"))))[Px("0x7d")]((t=>t[Px("0x12")]));if(e[Px("0xa")])return{type:Px("0x7c"),content:Yo(n,Px("0x47"),Yo(n,Px("0x41"),'"'+e[Px("0x56")](" ")+'"'))}}if("deletion"==t[Px("0x49")]){const e=t[Px("0xc")]()[Px("0x5c")]((t=>t.is(Px("0x83"))))[Px("0x7d")]((t=>t[Px("0x12")]));if(e[Px("0xa")])return{type:Px("0x7"),content:Yo(n,Px("0x81"),Yo(n,Px("0x41"),'"'+e[Px("0x56")](" ")+'"'))}}}})),o[Px("0x84")][Px("0x2d")]((t=>{if(Px("0x31")==t[Px("0x1c")]){const e=t.getItems()[Px("0x5c")]((t=>t.is(Px("0x83")))).map((t=>t[Px("0x12")])),o=this[Px("0x34")](t),s=o[Px("0x52")]-o[Px("0x9")]+1;if(Px("0x7c")==t[Px("0x49")])return e[Px("0xa")]?{type:"insertion",content:Yo(n,Px("0x47"),Yo(n,Px("0x3e"),[s,'"'+e[Px("0x56")](" ")+'"']))}:{type:Px("0x7c"),content:Yo(n,Px("0x47"),Yo(n,Px("0x73"),s))};if(Px("0x7")==t[Px("0x49")])return e.length?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Px("0x3e"),[s,'"'+e[Px("0x56")](" ")+'"']))}:{type:Px("0x7"),content:Yo(n,Px("0x81"),Yo(n,Px("0x73"),s))}}if(Px("0x18")==t[Px("0x1c")]){const e=t.getItems()[Px("0x5c")]((t=>t.is(Px("0x83")))).map((t=>t[Px("0x12")])),o=this[Px("0x34")](t),s=o[Px("0x7e")]-o[Px("0x5")]+1;if(Px("0x7c")==t[Px("0x49")])return e[Px("0xa")]?{type:Px("0x7c"),content:Yo(n,Px("0x47"),Yo(n,Px("0x5b"),[s,'"'+e.join(" ")+'"']))}:{type:Px("0x7c"),content:Yo(n,Px("0x47"),Yo(n,Px("0x30"),s))};if("deletion"==t[Px("0x49")])return e[Px("0xa")]?{type:"deletion",content:Yo(n,Px("0x81"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:Px("0x7"),content:Yo(n,Px("0x81"),Yo(n,Px("0x30"),s))}}})),o[Px("0x29")][Px("0x0")]("insertion",Px("0x31"),Px("0x45"),r),o[Px("0x29")].registerCustomCallback(Px("0x7"),Px("0x31"),Px("0x43"),r),o[Px("0x29")].registerCustomCallback("insertion",Px("0x18"),Px("0x45"),a),o[Px("0x29")][Px("0x0")](Px("0x7"),Px("0x18"),"accept",a),o[Px("0x29")][Px("0x0")](Px("0x7c"),"tableColumn",Px("0x56"),c),o[Px("0x29")][Px("0x0")]("deletion",Px("0x18"),Px("0x56"),c),o[Px("0x29")][Px("0x0")](Px("0x7c"),"tableRow","join",l),o._suggestionFactory[Px("0x0")](Px("0x7"),Px("0x31"),Px("0x56"),l)}[Px("0x7a")](){const t=this.editor,e=t[Px("0x65")][Px("0x72")].selection;return(n,o)=>{t.model[Px("0x3c")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Px("0x6f")][Px("0x1f")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Px("0xd")][Px("0x58")]);const c=s[Px("0x32")](a);if("$graveyard"==c[Px("0x3b")].rootName)return;const l=Array.from(e[Px("0x2")]())[Px("0x7d")]((t=>i.LiveRange[Px("0x64")](t)));s.setSelection(c),t[Px("0xb")][Px("0x6c")](r)[Px("0x80")](),x[Px("0x75")]({forceDefaultExecution:!0}),t[Px("0x25")](r,...x);const d=l.filter((t=>Px("0x4c")!=t[Px("0x3b")][Px("0x69")]));d[Px("0xa")]>0&&s[Px("0x4e")](d);for(const t of l)t[Px("0x67")]()}))}}_getCoordsForCells(t){const e=this[Px("0x4")][Px("0x46")][Px("0x6c")](Px("0x6d"));let n=Number[Px("0x3f")],o=Number.MIN_SAFE_INTEGER,s=Number[Px("0x3f")],r=Number[Px("0x2b")];for(const i of t){if(Px("0x4c")==i[Px("0x3b")].rootName)continue;const{row:t,column:x}=e[Px("0x86")](i),a=i[Px("0x26")](Px("0x7b"))?i.getAttribute(Px("0x7b"))-1:0,c=i[Px("0x26")]("colspan")?i[Px("0x3a")](Px("0x33"))-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}}[Px("0x14")](){const t=this.editor,e=t.plugins[Px("0x6c")](Px("0x5f")),n=t.plugins[Px("0x6c")](Px("0x6d"));t.model[Px("0x72")].on(Px("0x11"),(()=>{const n=Array[Px("0x19")](t[Px("0x65")][Px("0x72")][Px("0x55")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Px("0x21")](t);if(Px("0x79")!=n)continue;if(null!=o[Px("0x27")])continue;const i=e[Px("0x42")](s);this[Px("0x37")].includes(r)&&this[Px("0x20")].add(i)}}),{priority:Px("0x3")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Px("0x76")](Px("0x15")),i=n.getCellLocation(t);for(const e of this._tableSuggestions){const n=e[Px("0x1c")],x=n[Px("0x13")](Px("0xe")),a=n[Px("0x85")](x?10:5),c=a[Px("0x2f")](),l=c[Px("0x85")](0,3)+Px("0x51"),d=Px("0x5e")+a,u="max"+a;if(!e[Px("0x2e")])continue;if(r!=e[Px("0x1e")]().start[Px("0x76")]("table"))continue;if(e[Px("0x63")](s))continue;const g=t[Px("0x26")](l)?t[Px("0x3a")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Px("0x5d")](s),o=!0)}return o};t[Px("0x65")][Px("0x72")][Px("0x38")]((e=>{let n=!1;for(const s of t.model[Px("0x72")][Px("0x55")][Px("0x3d")]())if(Px("0xf")==s[Px("0x49")])if(Px("0x31")==s[Px("0x36")])for(const t of s[Px("0x71")].nodeAfter[Px("0x59")]())n=n||o(t,e);else Px("0x7f")==s[Px("0x36")]&&(n=n||o(s[Px("0x71")][Px("0x58")],e));return n}))}[Px("0x34")](t){return this[Px("0x6b")](t[Px("0x2")]()[Px("0x7d")]((t=>t[Px("0xd")][Px("0x58")])))}}function jx(t){return Array.from(new Set(t)[Px("0x50")]())}const Ux=["getSelectionAffectedTableCells","commands","_descriptionFactory","mergeTableCellRight","detach","find","containsRange","filter","value","*Split cell:* vertically","length","stop","document","from","subType","setSelection","_suggestionFactory","author","model","low","mergeTableCells","mergeTableCellLeft","map","getAncestors","add","execute","deletion","direction","locale","_isForcedDefaultExecutionBlock","findAncestor","registerCustomCallback","TableEditing","editor","selection","_acceptFormatSuggestionCallbackFactory","getFirstPosition","splitTableCellVertically","createTableWalker","push","getCellLocation","table","formatBlock","registerDescriptionCallback","plugins","mergeTableCellUp","commandName","_areMergableCells","tableCell","get","return","mergeTableCellDown","TrackChangesEditing","cell","isInContent","markMultiRangeBlockFormat","createRangeOn","format","splitTableCellHorizontally","$graveyard","rootName","change","*Merge cells*","element","TableUtils","set:isEnabled","fromRange","size","*Split cell:* horizontally","_areSelectedCellsMergable","getSuggestions","accept","enableCommand","markBlockFormat","type","refresh","horizontally"];var Gx,Hx;Gx=Ux,Hx=410,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get requires(){return[Bx]}afterInit(){const t=this.editor,e=t[zx("0x46")].document[zx("0x9")],n=t[zx("0x3")];if(!t.plugins.has(zx("0x7")))return;const o=t[zx("0x13")][zx("0x18")](zx("0x1b")),s=t[zx("0x13")][zx("0x18")](zx("0x27")),r=t[zx("0x13")][zx("0x18")](Bx);r._tablePostFixingSubtypes[zx("0xe")](zx("0x48")),o[zx("0x2f")]("mergeTableCells",(()=>{const e=s.getSelectionAffectedTableCells(t[zx("0x46")][zx("0x40")][zx("0x9")]);t[zx("0x46")][zx("0x24")]((()=>{o[zx("0x1e")](e,{commandName:zx("0x48"),commandParams:[]},[],zx("0x48"))}))})),t.commands[zx("0x18")](zx("0x48")).on("execute",((e,n)=>{t[zx("0x35")][zx("0x18")]("trackChanges")[zx("0x3c")]&&(n[zx("0x3e")]>0&&n[n[zx("0x3e")]-1]&&n[n[zx("0x3e")]-1].forceDefaultExecution||o[zx("0x4")]||this[zx("0x2c")]()||e[zx("0x3f")]())}),{priority:"highest"});for(const e of[zx("0x14"),zx("0x37"),zx("0x1a"),"mergeTableCellLeft"]){const n=t[zx("0x35")][zx("0x18")](e);o[zx("0x2f")](e,(()=>{const e=t[zx("0x46")].document[zx("0x9")][zx("0xb")]().getAncestors().find((t=>t.is(zx("0x26"),"tableCell"))),s=n.value;t[zx("0x46")][zx("0x24")]((()=>{o[zx("0x1e")]([e,s],{commandName:"mergeTableCells",commandParams:[]},[],zx("0x48"))}))}))}for(const e of["splitTableCellVertically",zx("0x21")]){const n=t[zx("0x35")].get(e);o[zx("0x2f")](e,(()=>{const r=s[zx("0x34")](t.model[zx("0x40")].selection)[0],i=r[zx("0x5")](zx("0x10")),{column:x,row:a}=s[zx("0xf")](r);let c=[];if(zx("0x33")==n[zx("0x2")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[zx("0x41")](t)[zx("0x4a")]((t=>t[zx("0x1c")]))}else{const t=s[zx("0xd")](i,{column:x,includeAllSlots:!0});c=Array[zx("0x41")](t).map((t=>t[zx("0x1c")]))}t[zx("0x46")].change((t=>{o[zx("0x30")](t[zx("0x1f")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[zx("0x36")][zx("0x12")]((t=>{const{data:e}=t;if(e)return zx("0x48")==e[zx("0x15")]?{type:zx("0x20"),content:Yo(n,zx("0x25"))}:void 0})),o[zx("0x36")][zx("0x12")]((t=>{const{data:e}=t;if(e)return zx("0xc")==e[zx("0x15")]?{type:zx("0x20"),content:Yo(n,zx("0x3d"))}:zx("0x21")==e[zx("0x15")]?{type:zx("0x20"),content:Yo(n,zx("0x2b"))}:void 0}));const x=r[zx("0xa")]();for(const t of[zx("0x14"),zx("0x37"),zx("0x1a"),zx("0x49")])o[zx("0x44")][zx("0x6")](zx("0x11"),t,zx("0x2e"),x);for(const t of[zx("0xc"),zx("0x21")])o._suggestionFactory[zx("0x6")](zx("0x11"),t,zx("0x2e"),x);o[zx("0x44")][zx("0x6")](zx("0x11"),zx("0x48"),"accept",(n=>{t[zx("0x46")][zx("0x24")]((o=>{const s=Array[zx("0x41")](e.getRanges()).map((t=>i.LiveRange[zx("0x29")](t)));o[zx("0x43")](n),t[zx("0x35")][zx("0x18")]("mergeTableCells")[zx("0x32")](),t[zx("0x0")](zx("0x48"),{forceDefaultExecution:!0});const r=s[zx("0x3b")]((t=>zx("0x22")!=t.root[zx("0x23")]));r[zx("0x3e")]>0&&o[zx("0x43")](r);for(const t of s)t[zx("0x38")]()}))}));for(const e of[zx("0x14"),"mergeTableCellDown",zx("0x49"),zx("0x37")]){const n=t[zx("0x35")][zx("0x18")](e);n.on(zx("0x28"),((e,o,s)=>{if(s){const o=t.model.document[zx("0x9")][zx("0xb")]()[zx("0x4b")]()[zx("0x39")]((t=>t.is(zx("0x26"),zx("0x17"))));this[zx("0x16")](n[zx("0x3c")],o)||(e[zx("0x19")]=!1,e[zx("0x3f")]())}}),{priority:zx("0x47")})}}[zx("0x2c")](){const t=this[zx("0x8")].commands.get(zx("0x48")),e=this[zx("0x8")][zx("0x13")].get(zx("0x27"));if(!t.isEnabled)return!1;const n=e.getSelectionAffectedTableCells(this[zx("0x8")][zx("0x46")][zx("0x40")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x16")](t,e))return!1;return!0}[zx("0x16")](t,e){const n=this[zx("0x8")][zx("0x13")].get("TrackChangesEditing"),o=this[zx("0x8")][zx("0x46")][zx("0x1f")](t),s=this.editor[zx("0x46")].createRangeOn(e),r=new Set,i=new Set;for(const t of n[zx("0x2d")]())if(("insertion"==t[zx("0x31")]||zx("0x1")==t[zx("0x31")]||zx("0x48")==t[zx("0x42")])&&t[zx("0x1d")])for(const e of t.getRanges())e[zx("0x3a")](o,!0)&&r[zx("0x4c")](t[zx("0x31")]+":"+t[zx("0x45")].id),e[zx("0x3a")](s,!0)&&i.add(t[zx("0x31")]+":"+t[zx("0x45")].id);if(r[zx("0x2a")]!=i[zx("0x2a")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Vx=["getColumnIndexes","headingColumns","name","unbindElementFromMarkerName","parent","_descriptionFactory","registerCustomCallback","createTableWalker","stop","getCellLocation","addClass","consume","ck-suggestion-marker--active","data","commandParams","commands","isBefore","getAttribute","selection","childCount","format","forceValue","createPositionAfter","getRowIndexes","getSelectionAffectedTableCells","writer","getSuggestion","editor","setTableRowHeader","*Format:* %0","_suggestionFactory","cell","highest","formatBlock","enableCommand","ck-suggestion-marker-","removeClass","locale","FORMAT_REGULAR_COLUMN","removeMarker:suggestion","_splitMarkerName","options","value","from","includes","nodeAfter","commandName","removeAttribute","addMarker:suggestion","markerName","headingRows","bindElementToMarker","findAncestor","getChild","editing","markerRange","FORMAT_REGULAR_ROW","last","createPositionBefore","setTableColumnHeader","createRange","data-suggestion","requires","downcastDispatcher","FORMAT_HEADER_COLUMN","_acceptFormatSuggestionCallbackFactory","index","setAttribute","nodeBefore","mapper","markerNameToElements","toViewElement","FORMAT_HEADER_ROW","model","plugins","registerDescriptionCallback","first","start","activeMarkers","get","has","change","document"];var Kx,qx;Kx=Vx,qx=255,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]};class $x extends t.Plugin{static get[Xx("0x38")](){return[Bx]}afterInit(){const t=this[Xx("0x15")];if(!t.plugins[Xx("0x4a")]("TableEditing"))return;const e=t[Xx("0x1f")],n=t[Xx("0x44")][Xx("0x49")]("TrackChangesEditing"),o=t[Xx("0x44")][Xx("0x49")]("TableUtils"),s=t[Xx("0x44")][Xx("0x49")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Xx("0x22")](r[Xx("0x2b")]),c=n[Xx("0x14")](a);if(!c.data||Xx("0x35")!=c.data[Xx("0x28")])return;if(r.item)return void s[Xx("0x2")]();if(!i.consumable[Xx("0x5")](r[Xx("0x31")],s[Xx("0x4f")]))return;const l=r[Xx("0x31")][Xx("0x47")][Xx("0x27")],d=r.markerRange.end[Xx("0x3e")],u=l[Xx("0x51")][Xx("0x51")],{column:g}=o[Xx("0x3")](l),{column:m}=o.getCellLocation(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[Xx("0x19")],c=i[Xx("0x3f")][Xx("0x41")](s);i[Xx("0x13")][Xx("0x4")](Xx("0x1d")+x,c),e&&i[Xx("0x13")][Xx("0x3d")](Xx("0x37"),a,c),i[Xx("0x3f")][Xx("0x2d")](c,r.markerName),t&&(n[Xx("0x48")][Xx("0x26")](r[Xx("0x2b")])?i[Xx("0x13")][Xx("0x4")]("ck-suggestion-marker--active",c):i.writer[Xx("0x1e")](Xx("0x6"),c))}}}}n[Xx("0x1c")]("setTableRowHeader",((e,s)=>{const r=o[Xx("0x12")](t[Xx("0x43")][Xx("0x4c")].selection),i=o[Xx("0x11")](r),x=r[0][Xx("0x2e")]("table"),a=x[Xx("0xb")](Xx("0x2c"))||0,c=s&&null!==s[Xx("0xf")]?s[Xx("0xf")]:!t.commands[Xx("0x49")](Xx("0x16"))[Xx("0x24")],l=c?i[Xx("0x33")]:i[Xx("0x46")],d=x[Xx("0x2f")](l);let u;if(c){const e=x.getChild(a);if(d[Xx("0x3c")]<e[Xx("0x3c")])return;u=t[Xx("0x43")][Xx("0x36")](t[Xx("0x43")][Xx("0x34")](e[Xx("0x2f")](0)),t[Xx("0x43")][Xx("0x10")](d.getChild(d[Xx("0xd")]-1)))}else{const e=x[Xx("0x2f")](a-1);if(!e)return;u=t[Xx("0x43")][Xx("0x36")](t.model.createPositionBefore(d[Xx("0x2f")](0)),t[Xx("0x43")].createPositionAfter(e[Xx("0x2f")](e[Xx("0xd")]-1)))}t[Xx("0x43")][Xx("0x4b")]((()=>{n.markBlockFormat(u,{commandName:Xx("0x16"),commandParams:[{forceValue:c}]},[],Xx("0x16"))}))})),n.enableCommand(Xx("0x35"),((e,o)=>{const s=t.plugins[Xx("0x49")]("TableUtils"),r=s.getSelectionAffectedTableCells(t[Xx("0x43")][Xx("0x4c")][Xx("0xc")]),i=s[Xx("0x4d")](r),x=r[0].findAncestor("table"),a=x.getAttribute(Xx("0x4e"))||0,c=o&&null!==o[Xx("0xf")]?o[Xx("0xf")]:!t[Xx("0x9")][Xx("0x49")](Xx("0x35")).value;let l;const d=x[Xx("0x2f")](0),u=c?i[Xx("0x33")]:i[Xx("0x46")],g=s[Xx("0x1")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Xx("0x25")](g)[0][Xx("0x19")];if(c){const e=d.getChild(a);if(m[Xx("0xa")](e))return;l=t.model[Xx("0x36")](t[Xx("0x43")][Xx("0x34")](e),t.model[Xx("0x10")](m))}else{const e=d.getChild(a-1);if(!e)return;l=t.model[Xx("0x36")](t.model[Xx("0x34")](m),t[Xx("0x43")][Xx("0x10")](e))}t.model.change((()=>{n.markBlockFormat(l,{commandName:Xx("0x35"),commandParams:[{forceValue:c}]},[],Xx("0x35"))}))})),t[Xx("0x30")][Xx("0x39")].on(Xx("0x2a"),r(),{priority:Xx("0x1a")}),t[Xx("0x7")][Xx("0x39")].on("addMarker:suggestion",((t,e,n)=>{n[Xx("0x23")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x1a")}),t[Xx("0x30")][Xx("0x39")].on(Xx("0x21"),((t,e,o)=>{const{type:s,id:r}=n[Xx("0x22")](e[Xx("0x2b")]),i=n[Xx("0x14")](r);if(!i[Xx("0x7")]||Xx("0x35")!=i.data.commandName)return;const x=o.mapper[Xx("0x40")](e[Xx("0x2b")]);if(x)for(const t of x)o[Xx("0x13")][Xx("0x1e")](Xx("0x1d")+s,t),o[Xx("0x13")].removeClass(Xx("0x6"),t),o[Xx("0x13")][Xx("0x29")](Xx("0x37"),t),o[Xx("0x3f")][Xx("0x50")](t,e.markerName)}),{priority:Xx("0x1a")}),n[Xx("0x52")][Xx("0x45")]((t=>{const{data:n}=t;if(n){if(Xx("0x16")==n[Xx("0x28")]){const t=n[Xx("0x8")][0][Xx("0xf")];return o(Yo(e,Xx(t?"0x42":"0x32")))}if(Xx("0x35")==n.commandName){const t=n[Xx("0x8")][0][Xx("0xf")];return o(Yo(e,Xx(t?"0x3a":"0x20")))}}function o(t){return{type:Xx("0xe"),content:Yo(e,Xx("0x17"),t)}}}));const i=s[Xx("0x3b")]();n[Xx("0x18")][Xx("0x0")]("formatBlock","setTableRowHeader","accept",i),n[Xx("0x18")][Xx("0x0")](Xx("0x1b"),Xx("0x35"),"accept",i)}}const Jx=["batch","filter","removeMarkers","markers","TrackChangesEditing","getSuggestion","Users","document","author","model","tableCellSuggestion","nodeAfter","element","map","previousSibling","accept","showSuggestionHighlights","newRange","row","getChangedMarkers","high","insertion","for","cells","formatBlock","isEmpty","columns","tableCellHorizontalAlignment","end","suggestionUnloaded","listenTo","ck-suggestion-marker","columnInsertionRanges","editing","editor","some","plugins","tablePasteColumn","length","name","getColumnIndexes","getChild","attributes","getChildren","startsWith","rowInsertionIndexes","tablePaste","oldRange","root","rows","containsRange","conversion","deletion","*Replace table cells*","tablePasteChainId","change","_suggestionFactory","columnInsertionIndexes","removeRows","createRange","view","elementToElement","getSelectionAffectedTableCells","setAttributes","tablePasteCell","editingDowncast","commands","markMultiRangeDeletion","getRanges","content","_createdBatches","last","$graveyard","schema","getTableIfOnlyTableInContent","keys","tableCellBorderColor","getAttributes","has","registerDescriptionCallback","value","getShiftedBy","type","suggestion","tableCellPadding","TableClipboard","_isForcedDefaultExecutionBlock","suggestion-td","get","locale","getChanges","deletionRanges","dataDowncast","insertColumns","activeMarkers","removeMarker","find","registerCustomCallback","from","subType","tablePasteRow","_descriptionFactory","markerToHighlight","tableCellBorderWidth","fromEntries","every","createRangeOn","includes","afterInit","selection","paragraph","_getCoordsForCells","getItems","insertContent","redo","getSuggestions","differ","getSuggestionCallback","position","createTableWalker","previous","getRange","first","next","forceDefaultExecution","markMultiRangeBlockFormat","insertRows","getRowIndexes","getAllAdjacentSuggestions","tableCell","getContainedElement","join","_splitMarkerName","low","getColumns","registerPostFixer","createPositionBefore","setAttribute","column","documentSelection","set","tableCellBorderStyle","insertionRanges","isEqual","remove","ck-suggestion-marker-insertion","markerAttributes","getRows","fill","markerName","table","stop","endColumn","suggestion:formatBlock:tablePasteCell","wrap","findAncestor","requires","tableCellBackgroundColor","options","_tablePostFixingSubtypes","add","TableUtils","updateMarker","isInContent","trackChanges","markMultiRangeInsertion","createRangeIn","unwrap","createElement","discard","removeColumns","endRow","push","insert"];var Qx,Zx;Qx=Jx,Zx=467,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=[Yx("0x9e"),Yx("0x83"),Yx("0x16"),Yx("0x52"),"tableCellVerticalAlignment",Yx("0x26"),Yx("0x8b")],ea=Object[Yx("0x9f")](ta[Yx("0x44")]((t=>[t,null])));class na extends t.Plugin{static get[Yx("0x25")](){return[Bx]}[Yx("0xa3")](){const t=this[Yx("0x59")];if(!t.plugins[Yx("0x85")](Yx("0x8c")))return;const n=t[Yx("0x5b")][Yx("0x8f")](Yx("0x3b")),o=t[Yx("0x5b")][Yx("0x8f")](Yx("0x2a")),s=t.plugins.get(Bx),r=t[Yx("0x5b")][Yx("0x8f")](Yx("0x8c"));s[Yx("0x28")][Yx("0x35")](Yx("0x9b"),Yx("0x5c")),t[Yx("0x40")][Yx("0x80")].register(Yx("0x41"),{allowIn:Yx("0xa"),allowContentOf:"tableCell",isLimit:!0}),t.conversion[Yx("0x74")]({model:Yx("0x41"),view:"suggestion-td"});let i=null;t[Yx("0x40")].on(Yx("0xa8"),((s,x)=>{const[a,c]=x,l=x[x[Yx("0x5d")]-1];l&&l[Yx("0x5")]||n[Yx("0x8d")]||this[Yx("0x59")][Yx("0x79")][Yx("0x8f")](Yx("0x2d"))[Yx("0x87")]&&function(t,e,n,o,s){if(e&&!e.is(Yx("0x14")))return!1;const r=s[Yx("0x81")](t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x75")](n[Yx("0x3e")][Yx("0xa4")]);if(!i[Yx("0x5d")])return!1;const x=i[0][Yx("0x24")](Yx("0x1f")),a=o[Yx("0x8")](i),c=o[Yx("0x5f")](i),l={startRow:a[Yx("0x3")],endRow:a[Yx("0x7e")],startColumn:c[Yx("0x3")],endColumn:c[Yx("0x7e")]};return 1==i[Yx("0x5d")]&&(l[Yx("0x34")]+=o[Yx("0x1c")](r)-1,l[Yx("0x21")]+=o[Yx("0xf")](r)-1),sa(x,l,o)}(a,c,t[Yx("0x40")],o,r)&&(s[Yx("0x20")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0x40")][Yx("0x6e")]((()=>{t.model[Yx("0xa8")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[Yx("0x2e")](s,Yx("0x9b"),{tablePasteChainId:o}),r.length&&n[Yx("0x2e")](r,Yx("0x5c"),{tablePasteChainId:o}),a[Yx("0x5d")]&&n[Yx("0x2e")](a,Yx("0x65"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x5d")]&&n[Yx("0x7a")](c,Yx("0x65"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Yx("0x6")](l[Yx("0x44")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x77"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model.createRangeOn(o),i=e[Yx("0x97")]((t=>t.getRange()[Yx("0x18")](r)));i&&n[Yx("0x35")]([i.name,s])}n[Yx("0x5d")]&&d[Yx("0x12")](Yx("0x1b"),Object[Yx("0x9f")](n))}i=null})))}),{priority:e.priorities.high+10}),t[Yx("0x5b")][Yx("0x8f")](Yx("0x8c")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n.cell,x=o,a=oa(r),c=oa(x);t.return=r;let l=null,d=null;if(c||a)if(a&&!c){s[Yx("0x19")](r[Yx("0x60")](0));for(const t of Array.from(x[Yx("0x62")]()))s[Yx("0x36")](t,r,Yx("0x53"));const t=i[Yx("0x64")][Yx("0xa2")](n[Yx("0x49")]),e=i[Yx("0x70")].includes(n[Yx("0x13")]);t||e||(l=s[Yx("0x2f")](r))}else c&&!a&&(d=s.createRangeIn(r));else{const t=s[Yx("0x31")](Yx("0x41")),e=s.createElement(Yx("0x41"));s[Yx("0x23")](s.createRangeIn(r),e),s[Yx("0x36")](t,r,0);for(const e of Array[Yx("0x99")](x.getChildren()))s[Yx("0x36")](e,t,Yx("0x53"));l=s[Yx("0xa1")](t),d=s.createRangeOn(e)}const u=Array[Yx("0x99")](x[Yx("0x84")]())[Yx("0x38")]((([t])=>ta[Yx("0xa2")](t)));i[Yx("0x4e")][Yx("0x35")]({element:r,attributes:u[Yx("0x5d")]?Object[Yx("0x9f")](u):null}),l&&i[Yx("0x17")].push(l),d&&i[Yx("0x92")][Yx("0x35")](d)}),{priority:Yx("0x4b")}),o.on(Yx("0x94"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x51")]||1;i.columnInsertionIndexes=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o[Yx("0x0")](s,{startColumn:x,endColumn:x+a-1}))i[Yx("0x57")][Yx("0x35")](t[Yx("0x40")][Yx("0xa1")](e))}),{priority:"low"}),o.on(Yx("0x7"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x68")]||1;i[Yx("0x64")]=new Array(a)[Yx("0x1d")](x)[Yx("0x44")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Yx("0x35")](t.model[Yx("0xa1")](e))}),{priority:Yx("0xe")}),n[Yx("0x9c")][Yx("0x86")]((e=>{if(e[Yx("0x9a")]&&e[Yx("0x9a")].startsWith(Yx("0x65")))return e[Yx("0x1")]?{}:{type:Yx("0x4c"),content:Yo(t[Yx("0x90")],Yx("0x6c"))}}));const x=()=>!1;for(const t of["tablePaste","tablePasteColumn",Yx("0x9b"),Yx("0x77")])n[Yx("0x6f")][Yx("0x98")](Yx("0x4c"),t,Yx("0xc"),x),n[Yx("0x6f")][Yx("0x98")]("deletion",t,Yx("0xc"),x),n[Yx("0x6f")].registerCustomCallback("formatBlock",t,Yx("0xc"),x);n[Yx("0x6f")][Yx("0x98")](Yx("0x4f"),Yx("0x77"),"discard",x),n[Yx("0x6f")][Yx("0x98")](Yx("0x4f"),Yx("0x77"),Yx("0x46"),((e,n,o)=>{const s=e.map((t=>t[Yx("0xb")]())).filter((t=>t)),r=new Map(s[Yx("0x44")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x4e")])e&&r[Yx("0x15")](t,e);else if(o&&o[Yx("0x1b")])for(const[e,n]of Object.entries(o[Yx("0x1b")])){const o=t[Yx("0x40")][Yx("0x3a")][Yx("0x8f")](e),s=o?o.getRange()[Yx("0xb")]():null;s&&r[Yx("0x15")](s,n)}t[Yx("0x40")].change((t=>{for(const[e,n]of r)t[Yx("0x76")]({...ea,...n},e)}))}));const a=(e,o)=>{n[Yx("0x6f")][Yx("0x98")](e,"tablePaste",o,((s,r,i)=>{t[Yx("0x40")][Yx("0x6e")]((t=>{const x=[];for(const t of s){const e=t.start[Yx("0x42")];e.is(Yx("0x43"),Yx("0x41"))&&x[Yx("0x35")](e)}n[Yx("0x6f")][Yx("0xac")](e,null,o)(s,r,i);for(const e of x)Yx("0x7f")!=e[Yx("0x67")].rootName&&t[Yx("0x30")](e)}))}))};a(Yx("0x4c"),Yx("0x46")),a("insertion",Yx("0x32")),a(Yx("0x6b"),Yx("0x46")),a(Yx("0x6b"),Yx("0x32")),n[Yx("0x6f")][Yx("0x98")](Yx("0x4c"),"tablePasteRow",Yx("0x32"),(t=>{const e=t.map((t=>t[Yx("0xb")]())),n=e[0][Yx("0x24")](Yx("0x1f")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Yx("0x71")](n,{at:r,rows:i-r+1})})),n[Yx("0x6f")].registerCustomCallback(Yx("0x4c"),Yx("0x5c"),Yx("0x32"),(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][Yx("0x24")](Yx("0x1f")),{minColumn:r,maxColumn:i}=s[Yx("0xa6")](e);o[Yx("0x33")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e[Yx("0x9a")][Yx("0x63")](Yx("0x65")))return;const o=e[Yx("0x61")].tablePasteChainId,s=n.getSuggestions()[Yx("0x38")]((t=>t[Yx("0x2c")]&&t[Yx("0x61")]&&t[Yx("0x61")][Yx("0x6d")]==o));s[Yx("0x5d")]&&e.getAllAdjacentSuggestions()[Yx("0x5d")]!=s[Yx("0x5d")]&&s.reduce(((t,e)=>(t[Yx("0x4")]=e,e[Yx("0x1")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Yx("0x1e")]),s=[Yx("0x56"),Yx("0x1a")],r=n[Yx("0x95")].includes(t[Yx("0x1e")]);return r&&s[Yx("0x35")]("ck-suggestion-marker--active"),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Yx("0x4b")}),n.on(Yx("0x54"),c,{priority:Yx("0x4b")}),t[Yx("0x40")][Yx("0x3e")][Yx("0x10")]((()=>{let e=!1;const o=Array.from(t[Yx("0x40")][Yx("0x3e")][Yx("0xab")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if(Yx("0x8a")!=o||Yx("0x6b")!=i||r[Yx("0x66")])continue;if(!n.hasSuggestion(x))continue;const a=n[Yx("0x3c")](x)[Yx("0x7b")](),c=t.plugins.get(Yx("0x3d")).me;for(const t of n[Yx("0xaa")]())if(t.isInContent&&t[Yx("0x3f")]==c&&"formatBlock"==t[Yx("0x89")]&&Yx("0x77")==t.subType&&t.getRanges()[Yx("0xa0")]((t=>a[Yx("0x5a")]((e=>e[Yx("0x69")](t,!0))))))for(const n of t[Yx("0x9")]())n[Yx("0x2c")]&&(n[Yx("0x32")](),e=!0)}return e})),t[Yx("0x40")][Yx("0x3e")][Yx("0x10")]((e=>{const o=t[Yx("0x79")].get(Yx("0xa9"));if(!o||!o[Yx("0x7d")].has(e[Yx("0x37")]))return!1;let s=!1;const r=t[Yx("0x5b")][Yx("0x8f")]("Users").me,i=t[Yx("0x40")][Yx("0x3e")][Yx("0xab")][Yx("0x91")](),x=Array[Yx("0x99")](t[Yx("0x40")].document[Yx("0xab")][Yx("0x4a")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Yx("0xd")](t);return Yx("0x8a")==o&&Yx("0x65")==s&&i==r.id&&!e[Yx("0x66")]}));for(const t of i){if(Yx("0x36")!=t[Yx("0x89")]||Yx("0x41")!=t[Yx("0x5e")]||1!=t[Yx("0x5d")])continue;const n=e[Yx("0x72")](t[Yx("0xad")],t[Yx("0xad")][Yx("0x88")](1));if(!x[Yx("0x97")]((({data:t})=>t.newRange[Yx("0x18")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Yx("0x48")])){e[Yx("0x2b")](t,{range:n}),s=!0;break}}return s})),t[Yx("0x40")][Yx("0x3e")].registerPostFixer((e=>{let o=!1;const s=t[Yx("0x5b")].get(Yx("0x3d")).me,r=n[Yx("0xaa")]()[Yx("0x38")]((t=>t[Yx("0x2c")]&&t[Yx("0x3f")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x65")==t.subType)for(const e of t.getMarkers()){const n=e[Yx("0x2")]()[Yx("0xb")]();if(n)if(n.is(Yx("0x43"),Yx("0x41"))&&oa(n)){t[Yx("0x96")](e[Yx("0x5e")]),i[Yx("0x29")](n),o=!0;const s=n.nextSibling,r=n[Yx("0x45")],a=s&&s.is(Yx("0x43"),Yx("0x41")),c=r&&r.is(Yx("0x43"),Yx("0x41"));a&&!i[Yx("0x85")](s)&&x[Yx("0x29")](s),c&&!i[Yx("0x85")](r)&&x[Yx("0x29")](r)}else n.is(Yx("0x43"),Yx("0xa5"))&&n[Yx("0x50")]&&(t[Yx("0x96")](e[Yx("0x5e")]),o=!0)}else if(Yx("0x77")==t[Yx("0x9a")]){if(!t[Yx("0x61")]||!t[Yx("0x61")][Yx("0x6d")])continue;const e=t[Yx("0x61")].markerAttributes;if(e&&Object[Yx("0x82")](e)[Yx("0x5d")])continue;const n=t.attributes[Yx("0x6d")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[Yx("0x9a")][Yx("0x63")](Yx("0x65"))){if(!e[Yx("0x61")][Yx("0x6d")]){i=!1;break}if(e.id!=t.id&&e[Yx("0x61")][Yx("0x6d")]==n){s=!1;break}}i&&s&&(t[Yx("0x39")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Yx("0x30")](t);return o})),t[Yx("0x6a")][Yx("0x4d")](Yx("0x78"))[Yx("0x9d")]({model:Yx("0x22"),view:(t,e)=>l(t),converterPriority:Yx("0x4b")}),t[Yx("0x6a")][Yx("0x4d")](Yx("0x93")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[Yx("0x27")][Yx("0x47")]?l(t,!1):null,converterPriority:Yx("0x4b")});const d=t[Yx("0x58")][Yx("0x73")];this[Yx("0x55")](d[Yx("0x3e")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d[Yx("0x2f")](e[Yx("0x7c")])[Yx("0xa7")]())t.is(Yx("0x43"),Yx("0x8e"))&&n[Yx("0x35")](t);d[Yx("0x6e")]((t=>{for(const e of n)t.move(t[Yx("0x2f")](e),t[Yx("0x11")](e)),t.remove(e)}))}))}}function oa(t){if(t.isEmpty)return!0;const e=t[Yx("0x60")](0);return e.is(Yx("0x43"),Yx("0xa5"))&&e[Yx("0x50")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Yx("0x0")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["registerCustomCallback","locale","resizeColumnWidths","selection","resizeTable","document","columnWidths","editor","getContainedElement","resizeTableWidth","plugins","handleResizeTableWidthCommand","registerDescriptionCallback","format","getSuggestionCallback","subType","table","discard","commandParams","handleSuggestionDescription","get","getSuggestions","formatBlock","_descriptionFactory","getColumnGroupElement","has","Users","afterInit","_suggestionFactory","getSelectedElement","TrackChangesEditing","*Format:* resize table","model","getAttribute","formatGroupId","enableCommand","accept","bind","tableWidth","getTableColumnsWidths"];var ia,xa;ia=ra,xa=307,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x0")](){if(!this.editor.plugins[aa("0x26")]("TableColumnResizeEditing"))return;const t=this[aa("0x14")][aa("0x17")].get(aa("0x3"));t[aa("0x8")](aa("0x16"),this[aa("0x18")][aa("0xa")](this)),t[aa("0x8")](aa("0xf"),this[aa("0x18")][aa("0xa")](this)),t[aa("0x1")].registerCustomCallback(aa("0x23"),"resizeTable","accept",t[aa("0x1")][aa("0x1b")](aa("0x23"),null,"discard")),t[aa("0x1")][aa("0xd")](aa("0x23"),"resizeTable",aa("0x1e"),t._suggestionFactory[aa("0x1b")](aa("0x23"),null,aa("0x9"))),t[aa("0x24")][aa("0x19")](this.handleSuggestionDescription.bind(this))}[aa("0x18")](t,e){const n=this.editor[aa("0x17")][aa("0x21")](aa("0x3")),o=this[aa("0x14")][aa("0x17")][aa("0x21")]("TableColumnResizeEditing"),s=e[aa("0x1d")]||this[aa("0x14")][aa("0x5")][aa("0x12")][aa("0x10")][aa("0x2")]();this[aa("0x14")].model.change((()=>{const r=o[aa("0x25")](s);let i=r?o[aa("0xc")](r):null,x=s[aa("0x6")](aa("0xb"))||null;const a=e[aa("0xb")]||x,c=e[aa("0x13")]||i,l=this[aa("0x14")][aa("0x17")][aa("0x21")](aa("0x27")).me;for(const t of n[aa("0x22")]()){const e=t[aa("0x15")]();if(aa("0x11")===t[aa("0x1c")]&&e===s){t.author!==l&&t[aa("0x1e")]();const e=t.data[aa("0x1f")];x=e[0][aa("0xb")],i=e[0][aa("0x13")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:aa("0x16"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:aa("0x11")},[],aa("0x11"))}))}[aa("0x20")](t){const{data:e}=t;if(e&&aa("0x11")===e[aa("0x7")]){const t=aa("0x4");return{type:aa("0x1a"),content:Yo(this[aa("0x14")][aa("0xe")],t)}}}}const la=["afterInit","has","plugins","TrackChangesEditing","enableCommand","get","editor","insertTemplate"];var da,ua;da=la,ua=206,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x2")](){const t=this[ga("0x0")];t[ga("0x4")][ga("0x3")]("Template")&&t[ga("0x4")][ga("0x7")](ga("0x5"))[ga("0x6")](ga("0x1"))}}const fa=["_descriptionFactory","insertTableOfContents","locale","registerElementLabel","tableOfContents","get","commands","TrackChangesEditing","ELEMENT_TABLE_OF_CONTENTS","editor","enableCommand","plugins"];var ha,pa;ha=fa,pa=366,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[ba("0x3")];if(!t[ba("0x0")].get(ba("0x7")))return;t[ba("0x5")][ba("0xb")]("TrackChangesEditing")[ba("0x4")]("insertTableOfContents");const e=t[ba("0x5")][ba("0xb")](ba("0x1")),n=t[ba("0x8")];e[ba("0x6")][ba("0x9")](ba("0xa"),(t=>Yo(n,ba("0x2"),t)))}}const _a=["updateMarker","isTouching","suggestion","start","registerElementLabel","isEqual","Title","plugins","_splitMarkerName","end","_descriptionFactory","title-content","schema","removeMarker","TrackChangesEditing","nodeBefore","from","model","forward","ELEMENT_TITLE","editor","locale","differ","document","has","element","get","afterInit"];var Ta,Ca;Ta=_a,Ca=410,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x9")](){const t=this[ya("0x2")];if(!t[ya("0x11")][ya("0x6")](ya("0x10")))return;const e=t[ya("0x11")][ya("0x8")](ya("0x18"));e[ya("0x14")][ya("0xe")](ya("0x15"),(()=>Yo(t[ya("0x3")],ya("0x1")))),t[ya("0x1b")][ya("0x5")].registerPostFixer((n=>{let o=!1;const s=Array[ya("0x1a")](t.model[ya("0x5")][ya("0x4")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e[ya("0x12")](r);if(ya("0xc")!==s||!i.newRange)continue;const x=i.newRange,a=x[ya("0x13")][ya("0x19")];if(!a||!a.is(ya("0x7"),ya("0x15")))continue;if(!x[ya("0xd")][ya("0xb")](x[ya("0x13")]))continue;const c=t[ya("0x1b")][ya("0x16")].getNearestSelectionRange(x[ya("0x13")],ya("0x0"));if(c&&c.isCollapsed){const t=n.createRange(x.start,c[ya("0xd")]);t[ya("0xf")](x)||(n[ya("0xa")](r,{range:t}),o=!0)}o||(n[ya("0x17")](r),o=!0)}return o}))}}const Aa=["editor","UndoEditing","enableCommand","undo","redo","has","TrackChangesEditing","get","plugins"];var va,Ra;va=Aa,Ra=206,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{afterInit(){const t=this[Ia("0x1")],e=t[Ia("0x0")][Ia("0x8")](Ia("0x7"));t[Ia("0x0")][Ia("0x6")](Ia("0x2"))&&(e[Ia("0x3")](Ia("0x4")),e[Ia("0x3")](Ia("0x5")))}}const La=["requires","plugins","toggleTableCaption","TrackChangesEditing","afterInit","get","has","editor"];var Na,wa;Na=La,wa=377,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get[Ma("0x7")](){return[Bx]}[Ma("0x3")](){const t=this[Ma("0x6")];t[Ma("0x0")][Ma("0x5")]("TableCaptionEditing")&&t[Ma("0x0")][Ma("0x4")](Ma("0x2")).enableCommand(Ma("0x1"))}}const Fa=["handleListStartCommand","DocumentListPropertiesEditing","_descriptionFactory","ELEMENT_","enableCommand","selection","_LIST_","length","listStart","type","_getSuggestionBlocksForListStyle","handleListReversedCommand","registerDescriptionCallback","editor","handleListStyleCommand","plugins","_getSuggestionBlocks","_getTranslationKeyForListStyle","push","listStyle","handleDescriptions","afterInit","reversed","*Change to:* %0","has","listReversed","getSelectedBlocks","DocumentListUtils","isFirstBlockOfListItem","getListTypeFromListStyleType","getAttribute","get","listType","DocumentListPropertiesUtils","from","numbered","styles","startIndex","change","isListItemBlock","*Format:* set order to reversed","locale","markMultiRangeBlockFormat","document","TrackChangesEditing","list.properties","commandParams","format","model","toUpperCase","replace","expandListBlocksToCompleteList","bind"];var Da,Pa;Da=Fa,Pa=343,function(t){for(;--t;)Da.push(Da.shift())}(++Pa);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x31")](){if(!this[Ba("0x29")][Ba("0x2b")][Ba("0x34")](Ba("0x1d")))return;const t=this[Ba("0x29")].config.get(Ba("0x14")),e=this.editor[Ba("0x2b")][Ba("0x6")](Ba("0x13"));t[Ba("0xb")]&&e[Ba("0x20")](Ba("0x2f"),this[Ba("0x2a")][Ba("0x1b")](this)),t[Ba("0x32")]&&e[Ba("0x20")]("listReversed",this[Ba("0x27")][Ba("0x1b")](this)),t[Ba("0xc")]&&e[Ba("0x20")](Ba("0x24"),this[Ba("0x1c")][Ba("0x1b")](this)),e[Ba("0x1e")][Ba("0x28")](this[Ba("0x30")][Ba("0x1b")](this))}[Ba("0x2a")](t,e={}){const n=this.editor[Ba("0x2b")][Ba("0x6")](Ba("0x13")),o=this[Ba("0x26")]();this.editor[Ba("0x17")][Ba("0xd")]((()=>{n[Ba("0x11")](o,{commandName:Ba("0x2f"),commandParams:[{type:e.type}],formatGroupId:Ba("0x2f")})}))}handleListReversedCommand(t,e={}){const n=this[Ba("0x29")][Ba("0x2b")][Ba("0x6")](Ba("0x13")),o=this[Ba("0x29")].plugins[Ba("0x6")](Ba("0x2")),s=this[Ba("0x2c")]((t=>o[Ba("0xe")](t)&&Ba("0xa")===t[Ba("0x5")](Ba("0x7"))));null!==s&&this[Ba("0x29")][Ba("0x17")][Ba("0xd")]((()=>{n[Ba("0x11")](s,{commandName:Ba("0x0"),commandParams:[{reversed:e[Ba("0x32")]}],formatGroupId:Ba("0x0")})}))}[Ba("0x1c")](t,e={}){const n=this[Ba("0x29")][Ba("0x2b")][Ba("0x6")](Ba("0x13")),o=this[Ba("0x29")].plugins[Ba("0x6")]("DocumentListUtils"),s=this[Ba("0x2c")]((t=>o[Ba("0xe")](t)&&Ba("0xa")===t.getAttribute("listType")));null!==s&&this[Ba("0x29")].model[Ba("0xd")]((()=>{n[Ba("0x11")](s,{commandName:Ba("0x24"),commandParams:[{startIndex:e[Ba("0xc")]}],formatGroupId:Ba("0x24")})}))}handleDescriptions(t){const e=this[Ba("0x29")][Ba("0x10")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o=Ba("0x33"),s={type:Ba("0x16"),content:Yo(e,o,Yo(e,this[Ba("0x2d")](n[Ba("0x15")][0][Ba("0x25")])))};break;case Ba("0x0"):o=n[Ba("0x15")][0].reversed?Ba("0xf"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case Ba("0x24"):o="*Format:* set start index to %0",s={type:Ba("0x16"),content:Yo(e,o,n[Ba("0x15")][0][Ba("0xc")])}}return s}_getSuggestionBlocksForListStyle(){const t=this.editor[Ba("0x2b")][Ba("0x6")]("DocumentListUtils");let e=Array[Ba("0x9")](this[Ba("0x29")][Ba("0x17")].document[Ba("0x21")][Ba("0x1")]());return e[Ba("0x2e")](...t[Ba("0x1a")](e)),e=[...new Set(e)],e}[Ba("0x2c")](t){const e=this[Ba("0x29")].plugins[Ba("0x6")]("DocumentListUtils");let n=Array[Ba("0x9")](this[Ba("0x29")][Ba("0x17")][Ba("0x12")][Ba("0x21")][Ba("0x1")]()).filter(t);if(!n[Ba("0x23")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[Ba("0x3")](t)&&o[Ba("0x2e")](t);return o}[Ba("0x2d")](t){return Ba("0x1f")+this.editor[Ba("0x2b")].get(Ba("0x8"))[Ba("0x4")](t)[Ba("0x18")]()+Ba("0x22")+t[Ba("0x18")]()[Ba("0x19")](/-/g,"_")}}const Ua=["tableCellBorderColor","tableAlignment","getSuggestionCallback","tableCellProperties","tableBackgroundColor","enableCommand","registerDescriptionCallback","table","model","editor","plugins","get","getContainedElement","enqueueChange","discard","tableHeight","tableCellBackgroundColor","tableBorderColor","handleSuggestionDescription","start","has","tableBorderWidth","locale","data","tableCellBorderWidth","document","accept","join","TrackChangesEditing","afterInit","commandParams","tableCellVerticalAlignment","getAttribute","TableCellPropertiesEditing","formatBlock","tableCellWidth","pluginName","tableBorderStyle","_suggestionFactory","selection","tableCellHorizontalAlignment","removeAttribute","TableUtils","getSelectionAffectedTableCells","subType","tableProperties","registerCustomCallback","_getSuggestion","getSuggestions","findAncestor","format","TrackChangesTableProperties","change","*Format:* change table cell properties","tableWidth","setAttribute"];var Ga,Ha;Ga=Ua,Ha=343,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x26")]=[za("0xa"),za("0x1e"),za("0xe"),za("0x32"),za("0x2f"),za("0x8"),za("0x35")],this[za("0x34")]=[za("0x31"),"tableCellBorderStyle",za("0x11"),"tableCellPadding",za("0x1c"),"tableCellHeight",za("0x9"),za("0x21"),za("0x18")]}static get[za("0x1d")](){return za("0x2c")}[za("0x16")](){const t=this[za("0x2")][za("0x3")].get(za("0x15"));if(this[za("0x2")][za("0x3")][za("0xd")]("TablePropertiesEditing")){for(const e of this[za("0x26")])t.enableCommand(e,((t,n)=>{const o=this[za("0x2")][za("0x1")][za("0x12")][za("0x20")].getFirstPosition()[za("0x2a")](za("0x0"));this._handlePropertyChange(e,[o],this[za("0x26")],za("0x26"),t,n)}));t[za("0x1f")][za("0x27")](za("0x1b"),za("0x26"),za("0x13"),t[za("0x1f")][za("0x33")](za("0x1b"),null,za("0x7"))),t[za("0x1f")][za("0x27")](za("0x1b"),za("0x26"),"discard",((t,e)=>this.handleDiscardAction(this[za("0x26")],t,e))),t[za("0x1f")].registerCustomCallback(za("0x1b"),za("0x26"),"join",(()=>!1))}if(this.editor[za("0x3")].has(za("0x1a"))){for(const e of this[za("0x34")])t[za("0x36")](e,((t,n)=>{const o=this[za("0x2")][za("0x3")][za("0x4")](za("0x23"))[za("0x24")](this[za("0x2")].model[za("0x12")].selection);this._handlePropertyChange(e,o,this[za("0x34")],za("0x34"),t,n)}));t[za("0x1f")][za("0x27")]("formatBlock",za("0x34"),za("0x13"),t[za("0x1f")][za("0x33")](za("0x1b"),null,za("0x7"))),t[za("0x1f")][za("0x27")]("formatBlock",za("0x34"),"discard",((t,e)=>this.handleDiscardAction(this[za("0x34")],t,e))),t._suggestionFactory[za("0x27")]("formatBlock",za("0x34"),za("0x14"),(()=>!1))}t._descriptionFactory[za("0x37")]((t=>this[za("0xb")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this.editor.plugins[za("0x4")](za("0x15"));this.editor.model[za("0x6")](r.batch,(()=>{for(const t of e)if(this[za("0x28")](t,o))s(r);else{const e={};for(const o of n){const n=t[za("0x19")](o);void 0!==n&&(e[o]=n)}s(r),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][za("0xc")].nodeAfter,s=n[za("0x17")][0];this[za("0x2")][za("0x1")][za("0x2d")]((e=>{for(const n of t)void 0!==s[n]?e[za("0x30")](n,s[n],o):e[za("0x22")](n,o)}))}handleSuggestionDescription(t){if(t[za("0x10")])switch(t[za("0x25")]){case za("0x26"):return{type:za("0x2b"),content:Yo(this[za("0x2")][za("0xf")],"*Format:* change table properties")};case za("0x34"):return{type:za("0x2b"),content:Yo(this.editor[za("0xf")],za("0x2e"))}}}_getSuggestion(t,e){const n=this.editor[za("0x3")][za("0x4")](za("0x15"));for(const o of n[za("0x29")]({skipNotAttached:!0})){const n=o[za("0x5")]();if(o[za("0x25")]===e&&n===t)return o}return null}}const Va=["addMarker","elementToElement","addClass","parent","markMultiRangeBlockFormat","default","suggestion:","markBlockFormat","enableCommand","_setSuggestionData","end","track-changes-suggestion-not-found","pluginName","trackChanges.mergeNestedSuggestions","accept","_getSuggestionData","catch","after","discard","addUser","hasCommentThread","getIntersection","size","toViewElement","init","start","_suggestionFactory","rejected","consumable","formatBlock:discard","subType","PENDING_ACTION_SUGGESTION","_findSuggestions","isBefore","refresh","getShiftedBy","from","trackChanges","isMultiRange","discardSuggestion","markMultiRangeInsertion","showSuggestionHighlights","_rangeIsInLocalUserInsertion","editing","_editor","setSelection","remove","getWalker","howMany","getLastMatchingPosition","insertion:join","chain","deleteContent","getRange","_setSuggestionRange","every","_addThreadToSuggestion","_breakSuggestionMarker","createElement","_splitMarkerName","addRange","hasSuggestion","collaboration.channelId","discardAllSuggestions","isAfter","getDifference","marker-count","highest","addMarker:suggestion:formatBlock","ck-suggestion-marker","_model","removed","_customCallbacks","isRemovable","getCustomProperty","widget","for","_defaultCallbacks","_saved","isLimit","listenTo","setTo","authoredAt","deletion","rootName","formatInline:accept","writer","conversion","error-saving-suggestion-data-suggestion-discarded","markers","markerToData","add","return","_joinSuggestions","editingDowncast","_handleNewSuggestionMarker","options","containsItem","_getAuthorFromId","bindElementToMarker","ck-suggestion-marker--active","getAttribute","unbind","track-changes-suggestion-data-mismatch","markInlineFormat","isExternal","length","insertion:discard","getNearestSelectionRange","notReady","oldRange","upcast","unbindElementFromMarkerName","Users","isLocal","removeClass","_enabledCommands","markMultiRangeDeletion","clone","updateSuggestion","fromCharCode","multipleBlocks","trackChangesCommand","ck-suggestion-marker-","commentThread","getAncestors","isIntersectingWithRange","isDocumentOperation","document","_adapter","previous","push","enableReadOnlyMode","change:data","markerName","_refreshSuggestionsChain","containerElement","removeMarker","isInsideObject","isInContent","some","name","acceptAllSuggestions","trackChanges.trackFormatChanges","removeMarkers","buildSuggestion","getFirstRange","isNextTo","insertion:chain","ready","isCollapsed","execute","isAtStart","addSuggestion","markInsertion","commandName","elementStart","requires","suggestion","insertion:","acceptSelectedSuggestions","authorName","always","containsRange","join","clear","applyOperation","_isForcedDefaultExecutionBlock","getCommentThread","formatInline:join","mapper","isSelectable","createPositionAt","change","data","_suggestions","define","reconvertMarker","formatInline:","dataToMarker","detach","getItems","assign","filter","deletion:accept","containsRangeInObject","$marker","multi","never","_registerDefaultCallbacks","formatBlock:chain","_joinWithAdjacentSuggestions","getAllAdjacentSuggestions","getRanges","model","getSuggestionCallback","_createSuggestion","fire","isArray","schema","includes","selection","updateMarker","$graveyard","_mergeNestedSuggestions","accepted","then","containsPosition","differ","author","suggestionChanged","documentSelection","_suggestionState","consume","moveTargetPosition","newRange","removeMarker:suggestion:formatBlock","isAtEnd","next","insert","formatBlock","data-suggestion","backward","config","deletion:","getMultiRangeId","getChangedMarkers","position","stopListening","locale","createPositionAfter","range","markerToHighlight","hasComments","map","markerReady","createdAt","resolve","insertion","getFirstMarker","_updateSuggestionData","formatInline:discard","values","track-changes-adapter-missing-getsuggestion","TrackChangesEditing","isEqual","_trackFormatChanges","getSuggestion","substr","formatBlock:","_addSuggestionMarker","acceptSuggestion","track-changes-adapter-already-set","adapter","enqueueChange","PendingActions","track-changes-command-not-found","addHighlight","value","change:_saved","has","_removeSuggestion","open","formatGroupId","item","addMarkerName","set","creator","stop","high","getChanges","CommentsRepository","element","getUser","sort","_isDataLoaded","commands","low","forceDefaultExecution","markDeletion","formatBlock:accept","dataDowncast","isOwn","_commentsRepository","nodeAfter","split","suggestionLoaded","activeMarkers","_cutOutSuggestionMarker","createRange","registerPostFixer","group","skipNestingCheck","attributes","getSuggestions","type","addComment","move","_checkSuggestionCorrectness","ck-suggestion-marker-formatBlock","_getExternalAuthor","lowest","createRangeIn","splice","isObject","root","formatInline","insertion:accept","nodeBefore","registerCustomCallback","isBlock","plugins","get","createSelection","@external","editor","addSuggestionData","discardSelectedSuggestions"];var Ka,qa;Ka=Va,qa=308,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]};class $a extends t.Plugin{static get[Xa("0xa7")](){return["CommentsRepository",r.Users,t.PendingActions,cs,ms,Rs,ws,Bs,zs,$s,er,ir,ja,ur,pr,yr,Ir,Fr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,wi,ji,Wi,$i,tx,rx,dx,px,Cx,Ix,Mx,Bx,Wx,$x,Oa,na,ca,Ea,Wa,ma,ka,Sa]}static get[Xa("0x16")](){return Xa("0xfe")}constructor(t){function e(t){return t[Xa("0xf4")]((t=>String[Xa("0x82")](t)))[Xa("0xae")]("")}super(t),this[Xa("0x114")](Xa("0x129"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[Xa("0x50")][Xa("0xb7")]((()=>{for(const e of[...s,...o])this[Xa("0x50")][Xa("0x63")][Xa("0x10e")](e)&&t[Xa("0x35")][Xa("0xbb")](e)}))})),this._descriptionFactory=new ss(this[Xa("0x7")][Xa("0xcc")].schema,this[Xa("0x7")][Xa("0xef")]),this[Xa("0x8b")]=null,this[Xa("0x24")]=new Ja(this.editor),this[Xa("0xb9")]=new Map,this._commentsRepository=t[Xa("0x3")].get(Xa("0x119")),this._enabledCommands=new Set,this[Xa("0x50")]=this[Xa("0x7")].model,this[Xa("0xde")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[Xa("0xe9")].define(Xa("0x99"),Xa("0xf")),this[Xa("0x100")]=t[Xa("0xe9")][Xa("0x4")]("trackChanges.trackFormatChanges"),t[Xa("0xe9")][Xa("0xba")](Xa("0x17"),!0),this._mergeNestedSuggestions=t.config.get(Xa("0x17")),this[Xa("0x84")]=new u(t,this[Xa("0x7e")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,48,49,54])}[Xa("0x22")](){const t=this[Xa("0x7")];t.conversion[Xa("0x56")]("editingDowncast")[Xa("0xf2")]({model:"suggestion",view:t=>{const{id:e,type:n}=this[Xa("0x45")](t[Xa("0x90")]),o=[Xa("0x4f"),Xa("0x85")+n];let s=3e3;return this[Xa("0x129")][Xa("0xd2")](t[Xa("0x90")])&&(o.push(Xa("0x6e")),s=3010),Xa("0x5d")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0x61")][Xa("0x56")](Xa("0x123"))[Xa("0x65")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[Xa("0x6a")].showSuggestionHighlights)return;const s=n[Xa("0x112")];if(!s)return;const r=o[Xa("0xb4")].toViewElement(s);t[Xa("0xcc")][Xa("0xd1")][Xa("0x13a")](s)&&r&&!r[Xa("0x54")](Xa("0x55"))&&r.is(Xa("0x92"))&&(0,x.toWidget)(r,o[Xa("0x60")])}),{priority:"high"})})),t.conversion[Xa("0x56")](Xa("0x123"))[Xa("0xf2")]({model:Xa("0xa8"),view:(t,e)=>{if(!e[Xa("0x6a")][Xa("0x33")])return null;const{type:n}=this[Xa("0x45")](t[Xa("0x90")]);return{classes:[Xa("0x4f"),Xa("0x85")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Xa("0x112")])return;if(o.item.is("selection"))return void s.consumable[Xa("0xdf")](o[Xa("0x112")],n[Xa("0x97")]);const r=s[Xa("0xb4")][Xa("0x21")](o.item);if(!o[Xa("0x112")].is(Xa("0x11a"))||!t.model[Xa("0xd1")][Xa("0x2")](o.item)||r.getCustomProperty(Xa("0x10b")))return;const{id:i}=this[Xa("0x45")](o.markerName);s[Xa("0x60")][Xa("0xc")](["ck-suggestion-marker",Xa("0x135")],r),s[Xa("0x60")].setAttribute("data-suggestion",i,r),s.mapper[Xa("0x6d")](r,o.markerName),e&&(this[Xa("0x129")][Xa("0xd2")](o[Xa("0x90")])?s[Xa("0x60")].addClass(Xa("0x6e"),r):s[Xa("0x60")][Xa("0x7d")](Xa("0x6e"),r));for(const e of t[Xa("0xcc")][Xa("0x138")](o[Xa("0x112")])[Xa("0xbf")]())s[Xa("0x26")].consume(e,n[Xa("0x97")]);s[Xa("0x26")][Xa("0xdf")](o[Xa("0x112")],n[Xa("0x97")])};t[Xa("0x61")][Xa("0x56")](Xa("0x123"))[Xa("0x65")]((t=>{t.on(Xa("0x4e"),((t,e,o)=>{o.options[Xa("0x33")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xa("0x4d")})})),t[Xa("0x61")][Xa("0x56")](Xa("0x123"))[Xa("0x64")]({model:Xa("0xa8"),view:(t,e)=>e.options[Xa("0x33")]?null:{group:Xa("0xa8"),name:t[Xa("0x102")](11)}}),t[Xa("0x61")][Xa("0x56")](Xa("0x79"))[Xa("0xb")]({view:{name:Xa("0xa8"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0x10")+t[Xa("0x6f")]("suggestion-type")+":"+t.getAttribute("id");return t[Xa("0x6f")](Xa("0x4c"))&&(n+=":"+t[Xa("0x6f")](Xa("0x4c"))),e[Xa("0x44")](Xa("0xc4"),{"data-name":n})}}),t.conversion.for("upcast")[Xa("0xbd")]({view:Xa("0xa8")}),t.conversion[Xa("0x56")]("editingDowncast").add((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:Xa("0x117")})})),t.conversion[Xa("0x56")](Xa("0x68"))[Xa("0x65")]((t=>{t.on(Xa("0xe2"),((t,e,n)=>{const o=n[Xa("0xb4")].markerNameToElements(e.markerName);if(o)for(const t of o)t[Xa("0x54")]("addHighlight")||(n.writer[Xa("0x7d")]([Xa("0x4f"),Xa("0x135"),Xa("0x6e")],t),n[Xa("0x60")].removeAttribute(Xa("0xe7"),t),n[Xa("0xb4")][Xa("0x7a")](t,e[Xa("0x90")]))}),{priority:"high"})})),t[Xa("0xcc")][Xa("0x8a")][Xa("0x12c")]((e=>{let n=!1;const o=Array[Xa("0x2e")](t[Xa("0xcc")][Xa("0x8a")][Xa("0xda")].getChangedMarkers()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x45")](x);if(Xa("0xa8")!==o)continue;const d=this[Xa("0xb9")][Xa("0x4")](l);if(null!=a.newRange)if(Xa("0x13c")==c&&(n=n||Ya(a[Xa("0xe1")],x,e,t[Xa("0xcc")].schema)),a[Xa("0xe1")][Xa("0xa0")]||"$graveyard"==a[Xa("0xe1")].root[Xa("0x5e")]||Xa("0xe6")==c&&!ec(a.newRange)||Xa("0x5d")==c&&(Za(i=a[Xa("0xe1")])||(r=i)[Xa("0x23")].parent==r[Xa("0x14")][Xa("0x0")]&&r[Xa("0x23")].isAtEnd))e[Xa("0x93")](x),n=!0;else{if(!d||!d.isInContent)continue;s[Xa("0x65")](d)}}var r,i;return s[Xa("0x20")]>0&&(n=!!this[Xa("0xc9")](s)||n),n})),t.model[Xa("0x8a")][Xa("0x12c")]((e=>{let n=!1;for(const o of t.model[Xa("0x8a")][Xa("0xda")][Xa("0x118")]()){if(Xa("0xe5")!=o[Xa("0x131")])continue;const s=o[Xa("0xed")].getShiftedBy(o[Xa("0x74")]);if(s.isAtEnd)for(const r of this[Xa("0xb9")][Xa("0xfc")]()){if(r[Xa("0x30")]||!r[Xa("0x95")])continue;if(Xa("0xe6")!=r[Xa("0x131")])continue;const i=r[Xa("0x9c")]();if(i[Xa("0x23")][Xa("0xd")]!=i.end.parent&&i.end[Xa("0xff")](o[Xa("0xed")])){const o=t[Xa("0xcc")][Xa("0x12b")](i.start,s);e[Xa("0xd4")](r[Xa("0xf9")](),{range:o}),n=!0}}}return n})),t[Xa("0xcc")][Xa("0x63")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x45")](e[Xa("0x97")]),n=this[Xa("0xb9")][Xa("0x4")](t);n&&n[Xa("0x113")](e[Xa("0x97")])}})),t[Xa("0xcc")][Xa("0x8a")].on(Xa("0x8f"),(()=>{const e=Array[Xa("0x2e")](t[Xa("0xcc")][Xa("0x8a")].differ[Xa("0xec")]()).filter((t=>"suggestion"===this[Xa("0x45")](t[Xa("0x97")])[Xa("0x12d")]));if(0===e[Xa("0x74")])return;e[Xa("0x11c")](((t,e)=>{const n=t.data[Xa("0x78")],o=e.data[Xa("0x78")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0x23")][Xa("0x2b")](o[Xa("0x23")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x45")](t);if(null===s[Xa("0x78")]){const e=this[Xa("0x69")](t);o[Xa("0x65")](e)}else{const t=this[Xa("0xb9")][Xa("0x4")](e);null!==s[Xa("0xe1")]||t[Xa("0x95")]?(n[Xa("0x65")](t.head),o[Xa("0x65")](t)):this[Xa("0x10f")](t)}}o[Xa("0x20")]>0&&this[Xa("0x91")](o);for(const t of n)this[Xa("0xcf")](Xa("0xdc"),t)})),t[Xa("0xcc")].on(Xa("0xb0"),((e,n)=>{const o=n[0];if(!this[Xa("0xb9")][Xa("0x20")])return;if(!o[Xa("0x89")])return;if(o.batch.isUndo||!o.batch[Xa("0x7c")])return;let s,r;switch(o[Xa("0x131")]){case Xa("0xe5"):s=t[Xa("0xcc")][Xa("0xb6")](o[Xa("0xed")]),r=s[Xa("0x2d")](o[Xa("0x3a")]);break;case"split":s=t.model[Xa("0xb6")](o.splitPosition),r=t[Xa("0xcc")].createPositionAt(o[Xa("0xe0")]);break;case Xa("0x133"):s=t[Xa("0xcc")][Xa("0xb6")](o.targetPosition),r=s.getShiftedBy(o[Xa("0x3a")]);break;default:return}const i=t[Xa("0xcc")][Xa("0x12b")](s,r);t.model[Xa("0xb7")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[Xa("0x30")])continue;if(Xa("0x13c")==t[Xa("0x131")])continue;const n=t.data&&t[Xa("0xb8")][Xa("0x83")];(Xa("0xe6")!=t[Xa("0x131")]||Xa("0x127")==o[Xa("0x131")]&&!n)&&(e[Xa("0xc3")]||Xa("0xf8")==t[Xa("0x131")]&&e[Xa("0x124")]||t[Xa("0x9c")]()[Xa("0xad")](i)&&this[Xa("0x43")](t,s,r))}}))}),{priority:Xa("0x137")}),t[Xa("0xcc")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0x120")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Xa("0x84")][Xa("0x10c")])return;if(o.isCollapsed)return;const r=t[Xa("0xcc")][Xa("0xd1")],{start:i,end:x}=o[Xa("0x9c")](),a=i[Xa("0x126")]&&r.isLimit(i[Xa("0x126")])?null:r[Xa("0x76")](i,"forward"),c=x[Xa("0x0")]&&r[Xa("0x59")](x.nodeBefore)?null:r.getNearestSelectionRange(x,Xa("0xe8")),l=t[Xa("0xcc")][Xa("0x12b")](a?a.start:i,c?c[Xa("0x14")]:x);t[Xa("0xcc")][Xa("0xb7")]((e=>{this[Xa("0x121")](l);const n=t[Xa("0xcc")][Xa("0xd1")][Xa("0x76")](l.start);o.is(Xa("0xdd"))?e[Xa("0x37")](n):o[Xa("0x5b")](n)})),e[Xa("0x116")]()}),{priority:e.priorities.normal+10}),t[Xa("0xcc")].on("insertContent",((e,n)=>{const o=n[n[Xa("0x74")]-1];o&&o.forceDefaultExecution||this._isForcedDefaultExecutionBlock||this[Xa("0x84")].value&&(t.model.change((()=>{let o=t.model.insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0x66")]=o[Xa("0x80")]();const s=o[Xa("0x14")][Xa("0x0")],r=t[Xa("0xcc")][Xa("0xd1")];s&&r[Xa("0x2")](s)&&!r[Xa("0x13a")](s)&&(o=t.model.createRange(o[Xa("0x23")],t.model[Xa("0xb6")](s,Xa("0x14")))),this.markInsertion(o)})),e[Xa("0x116")]())}),{priority:Xa("0x117")}),this.editor.commands[Xa("0x65")](Xa("0x2f"),this[Xa("0x84")]),this[Xa("0x12")](Xa("0x2f"));const o=new p(t,this[Xa("0xb9")]);t[Xa("0x11e")][Xa("0x65")](Xa("0x105"),o),this[Xa("0x12")](Xa("0x105"));const s=new C(t,this[Xa("0xb9")]);t[Xa("0x11e")][Xa("0x65")](Xa("0x31"),s),this[Xa("0x12")](Xa("0x31")),t[Xa("0x11e")].add("acceptAllSuggestions",new F(t,o,this[Xa("0xb9")])),this[Xa("0x12")](Xa("0x98")),t[Xa("0x11e")][Xa("0x65")](Xa("0x49"),new F(t,s,this._suggestions)),this[Xa("0x12")](Xa("0x49")),t[Xa("0x11e")].add(Xa("0xaa"),new U(t,o,this[Xa("0xb9")])),this[Xa("0x12")](Xa("0xaa")),t[Xa("0x11e")][Xa("0x65")](Xa("0x9"),new U(t,s,this[Xa("0xb9")])),this[Xa("0x12")](Xa("0x9"));const r=t[Xa("0x3")].get(Xa("0x119"));this[Xa("0x5a")](r,Xa("0x132"),((t,{threadId:e})=>{const n=this[Xa("0xb9")][Xa("0x4")](e);n&&n[Xa("0x86")]&&1===n[Xa("0x86")][Xa("0x74")]&&this[Xa("0xfa")](e,{hasComments:!0})}),{priority:"low"}),this[Xa("0x5a")](r,"removeComment",((t,{threadId:e})=>{const n=this[Xa("0xb9")][Xa("0x4")](e);n&&n[Xa("0x86")]&&!n[Xa("0x86")][Xa("0x74")]&&this[Xa("0xfa")](e,{hasComments:!1})}),{priority:Xa("0x11f")})}set adapter(t){if(this[Xa("0x8b")])throw new e.CKEditorError(Xa("0x106"),this);this[Xa("0x8b")]=t}get[Xa("0x107")](){return this[Xa("0x8b")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0xb9")][Xa("0xfc")]())t&&!e[Xa("0x95")]||n[Xa("0x8d")](e);return e?n[Xa("0xf4")]((t=>t.toJSON())):n}[Xa("0x101")](t){const n=this[Xa("0xb9")][Xa("0x4")](t);if(!n)throw new e.CKEditorError(Xa("0x15"),this);return n}[Xa("0x47")](t){return this._suggestions[Xa("0x10e")](t)}[Xa("0x8")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t.type.split(":"),i=this[Xa("0xb9")][Xa("0x4")](n)||this[Xa("0xce")](s,r,n,e,o);if(this._addThreadToSuggestion(i),this[Xa("0x134")](i,s,r||null,e),i[Xa("0xf6")]=t[Xa("0xf6")],i[Xa("0x11d")]=!0,o&&o[Xa("0x6")]){const t=o["@external"],e=this[Xa("0x136")](t[Xa("0xab")]);i[Xa("0x5c")]=t[Xa("0xf6")],i[Xa("0xdb")]=e,i[Xa("0x73")]=!0}else i[Xa("0x5c")]=t.createdAt;switch(t[Xa("0xb8")]&&(i[Xa("0xb8")]=t.data),t[Xa("0x12f")]&&(i[Xa("0x12f")]=t.attributes),this[Xa("0x8b")]&&this._adapter[Xa("0xa3")]||(i[Xa("0x58")]=!0),this._suggestionState[Xa("0x4")](i)){case Xa("0x77"):this[Xa("0xde")].set(i,"dataReady");break;case Xa("0xf5"):i.isInContent?(this._refreshSuggestionsChain(new Set([i])),this._joinWithAdjacentSuggestions(new Set([i])),this[Xa("0xde")].set(i,"ready"),this[Xa("0xcf")](Xa("0x128"),i)):this[Xa("0xde")].set(i,Xa("0x51"))}return i}[Xa("0x105")](t){this[Xa("0x120")]((()=>{this[Xa("0x7")][Xa("0xcc")][Xa("0xb7")]((()=>{for(const e of t[Xa("0xca")]())e[Xa("0x18")]()}))}))}[Xa("0x31")](t){this[Xa("0x120")]((()=>{this[Xa("0x7")][Xa("0xcc")].change((()=>{for(const e of t.getAllAdjacentSuggestions())e[Xa("0x1c")]()}))}))}[Xa("0x12")](t,n){const o=this.editor.commands[Xa("0x4")](t);if(!o)throw new e.CKEditorError(Xa("0x10a"),this,{commandName:t});this[Xa("0x7e")][Xa("0x65")](o),n&&o.on("execute",((t,e)=>{this[Xa("0x84")][Xa("0x10c")]&&(this[Xa("0xb1")]||e[Xa("0x74")]>0&&e[e.length-1]&&e[e[Xa("0x74")]-1][Xa("0x120")]||(n(((...t)=>o[Xa("0xa1")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:Xa("0x117")})}[Xa("0x120")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[Xa("0xb1")]=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0xb1")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[Xa("0xa4")](t,n=null,o={}){if(t[Xa("0xa0")])return null;const s=this.editor[Xa("0x3")][Xa("0x4")]("Users").me;for(const{suggestion:e,meta:s}of this[Xa("0x2a")](t,Xa("0xf8")))if(s[Xa("0x124")]){if(!s.isNextTo){if(s[Xa("0xc3")]){if(!this[Xa("0xd6")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this[Xa("0x43")](e,t.start,t[Xa("0x14")]);break}if(n==e[Xa("0x28")]&&rc(e,o)){const n=e.getFirstRange();return n[Xa("0x23")][Xa("0xff")](t.end)?this[Xa("0x40")](e,this[Xa("0x50")][Xa("0x12b")](t[Xa("0x23")],n[Xa("0x14")])):this[Xa("0x40")](e,this[Xa("0x50")][Xa("0x12b")](n.start,t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:Xa("0xf8"),a=this[Xa("0x13")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}[Xa("0x32")](t,n=Xa("0xc5"),o={}){const s=this[Xa("0x7")].plugins.get(Xa("0x7b")).me,r=this[Xa("0x24")][Xa("0xcd")](Xa("0xf8"),n,Xa("0xae"));for(const e of this[Xa("0x130")]())if(e.author.id==s.id&&Xa("0xf8")==e.type&&e[Xa("0x28")]==n&&rc(e,o)&&(r(e[Xa("0xcb")](),t)||r(t,e[Xa("0xcb")]()))){for(const n of t)e[Xa("0x46")](n);return e}for(const{suggestion:e,meta:n}of this[Xa("0x2a")](t,Xa("0xf8"))){if(!n.isOwn)continue;if(!this[Xa("0xd6")]&&n.containsRangeInObject)continue;if(!rc(e,o))continue;let s=!0;for(const n of e[Xa("0xcb")]())for(const e of t)if(!n.containsRange(e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Xa("0xa9")+n,c=this[Xa("0x13")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo[Xa("0xeb")]());return c}[Xa("0x72")](t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0xa0")])return null;if(Xa("0xc6")===this[Xa("0x100")]){const e=this._suggestionFactory.getSuggestionCallback(Xa("0x13c"),o,Xa("0x18"));return this[Xa("0x120")]((()=>e([t],n,s))),null}const r=this.editor.plugins[Xa("0x4")](Xa("0x7b")).me,i=[];if("always"!==this[Xa("0x100")])for(const{suggestion:e,meta:n}of this[Xa("0x2a")](t,Xa("0xf8")))n[Xa("0x124")]&&!n[Xa("0x94")]&&i[Xa("0x8d")](...e[Xa("0xcb")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Xa("0x1f")](o);e&&n[Xa("0x8d")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xa("0x74")];){const o=n[e][Xa("0x4b")](t);n[Xa("0x139")](e,1,...o),e+=o[Xa("0x74")]}}return n}(t,i);x[Xa("0x74")]&&this[Xa("0x50")][Xa("0xb7")]((()=>{for(const t of x){const e=this[Xa("0x24")].getSuggestionCallback(Xa("0x13c"),o,Xa("0x18"));this.forceDefaultExecution((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Xa("0x23")],a=t[Xa("0x14")];for(const{suggestion:e,meta:n}of this[Xa("0x2a")](t,"formatInline")){if(!n[Xa("0x124")])continue;if(e.subType!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0x9c")]();if(r[Xa("0xad")](t,!0))return null;x=x[Xa("0x2b")](r[Xa("0x23")])?x:r.start,a=a[Xa("0x4a")](r.end)?a:r[Xa("0x14")],i?r.start.isBefore(i[Xa("0x9c")]().start)?(i[Xa("0x9a")](),i=e):e[Xa("0x9a")]():i=e}const c=this[Xa("0x50")].createRange(x,a);if(i)this[Xa("0x40")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Xa("0x13")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Xa("0x104")](Xa("0xbc")+o,t,i,c)}}return null}[Xa("0x11")](t,n,o=[],s=null,r={}){n[Xa("0x111")]||(n[Xa("0x111")]=n[Xa("0xa5")]),n[Xa("0x83")]=t.is(Xa("0xf1")),s=s||tc(n);const i=o[Xa("0xf4")]((t=>nc(t,this._model))),x=t.is("range")?t:nc(t,this._model);if(Xa("0xc6")===this[Xa("0x100")]){const t=this[Xa("0x24")][Xa("0xcd")](Xa("0xe6"),s,Xa("0x18"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&"always"!==this._trackFormatChanges){const t=this[Xa("0x24")][Xa("0xcd")](Xa("0xe6"),s,"accept");return this[Xa("0x120")]((()=>t([x],n,r))),null}let c=null,l=x[Xa("0x23")],d=x.end;for(const{suggestion:t,meta:e}of this._findSuggestions(x,Xa("0xe6"))){if(!e[Xa("0x124")])continue;if(e[Xa("0x9d")]||e.containsRangeInObject||e.isInsideObject)continue;if(t[Xa("0xb8")].formatGroupId!=n.formatGroupId)continue;if(!rc(t,r))continue;const o=t[Xa("0x9c")]();if(t.subType==s){if(o.containsRange(x,!0))return null;l=l.isBefore(o.start)?l:o[Xa("0x23")],d=d[Xa("0x4a")](o.end)?d:o.end,c?o[Xa("0x23")][Xa("0x2b")](c[Xa("0x9c")]()[Xa("0x23")])?(c[Xa("0x9a")](),c=t):t[Xa("0x9a")]():c=t}else{const e=x[Xa("0x1f")](o);this._cutOutSuggestionMarker(t,e)}}const u=this[Xa("0x7")][Xa("0x3")][Xa("0x4")](Xa("0x7b")).me,g=(0,e.uid)(),m=u.id;if(c)return this[Xa("0x40")](c,this[Xa("0x50")].createRange(l,d)),c;{const t=this[Xa("0x13")]({id:g,type:Xa("0x103")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Xa("0x104")](Xa("0x103")+s,g,m,this._model[Xa("0x12b")](l,d)),t}}[Xa("0xe")](t,n,o=[],s=null,r={}){n[Xa("0x111")]||(n[Xa("0x111")]=n.commandName);const i=t[0];n[Xa("0x83")]=i.is(Xa("0xf1")),s=s||tc(n);const x=o[Xa("0xf4")]((t=>nc(t,this[Xa("0x50")]))),a=i.is(Xa("0xf1"))?t:t[Xa("0xf4")]((t=>nc(t,this._model)));if(Xa("0xc6")===this[Xa("0x100")]){const t=this._suggestionFactory[Xa("0xcd")](Xa("0xe6"),s,Xa("0x18"));return this[Xa("0x120")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&Xa("0xac")!==this[Xa("0x100")]){const t=this[Xa("0x24")][Xa("0xcd")](Xa("0xe6"),s,Xa("0x18"));return this[Xa("0x120")]((()=>t(a,n,r))),null}const l=this[Xa("0x7")][Xa("0x3")][Xa("0x4")](Xa("0x7b")).me;for(const t of this[Xa("0x130")]()){if(t[Xa("0xdb")].id!=l.id)continue;if(Xa("0xe6")!=t.type||t[Xa("0xb8")][Xa("0x111")]!=n.formatGroupId)continue;if(!rc(t,r))continue;const e=t.subType==s;for(let n=0;n<a[Xa("0x74")];n++){const o=a[n];for(const s of t.getMarkers()){const r=s[Xa("0x3f")]();if(o.isEqual(r)){e?(a[Xa("0x139")](n,1),n--):t[Xa("0x93")](s[Xa("0x97")]);break}}}}if(0==a[Xa("0x74")])return null;const d=this[Xa("0x24")][Xa("0xcd")](Xa("0xe6"),s,Xa("0xae"));for(const t of this[Xa("0x130")]())if(t[Xa("0xdb")].id==l.id&&Xa("0xe6")==t[Xa("0x131")]&&t[Xa("0xb8")][Xa("0x111")]==n.formatGroupId&&t.subType==s&&rc(t,r)&&(d(t[Xa("0xcb")](),a)||d(a,t.getRanges()))){for(const e of a)t[Xa("0x46")](e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0x103")+s,f=this[Xa("0x13")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(m,u,g,t,Zo[Xa("0xeb")]());return f}[Xa("0x121")](t,n=null,o={}){if(t[Xa("0xa0")])return null;const s=this[Xa("0x7")].plugins[Xa("0x4")](Xa("0x7b")).me,r=new i.LiveRange(t.start,t[Xa("0x14")]);for(const{suggestion:t,meta:e}of this[Xa("0x2a")](r,Xa("0xf8")))if(e[Xa("0x124")]&&!e.isNextTo)if(t[Xa("0x30")]){const e=t[Xa("0xcb")]()[Xa("0xc1")]((t=>Xa("0xd5")!=t[Xa("0x13b")].rootName));if(e[Xa("0x41")]((t=>r.containsRange(t,!0)))&&t[Xa("0x1c")](),e[Xa("0x96")]((t=>t[Xa("0xad")](r,!0)))){const t=this[Xa("0x24")][Xa("0xcd")]("deletion",n,"accept");return this[Xa("0x120")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[Xa("0x9c")]());null!==e&&t._onDiscard([e],null,o)}if(r[Xa("0xbe")](),r.isCollapsed||"$graveyard"==r[Xa("0x13b")][Xa("0x5e")])return null;let x=null,a=r[Xa("0x23")],c=r[Xa("0x14")];const l=this[Xa("0x2a")](r,Xa("0x5d"));for(const{suggestion:t,meta:e}of l){const n=this[Xa("0x50")][Xa("0x12b")](a,c);if(e.isOwn&&(this[Xa("0xd6")]||!e[Xa("0xc3")]&&!e[Xa("0x94")]))if(t[Xa("0x30")]){if(!rc(t,o))continue;let e=!0;for(const o of t[Xa("0xcb")]()){if(o[Xa("0xad")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t[Xa("0x1c")]()}else{const e=t[Xa("0x9c")]();if(e[Xa("0xad")](n,!0))return t;if(!rc(t,o)){n[Xa("0xad")](e)?t[Xa("0x9a")]():e.containsPosition(a)?a=e[Xa("0x14")]:e.containsPosition(c)&&(c=e[Xa("0x23")]);continue}a=a[Xa("0x2b")](e[Xa("0x23")])?a:e[Xa("0x23")],c=c[Xa("0x4a")](e[Xa("0x14")])?c:e[Xa("0x14")],o=Object.assign({},t.attributes),x?e[Xa("0x23")].isBefore(x[Xa("0x9c")]()[Xa("0x23")])?(x[Xa("0x9a")](),x=t):t[Xa("0x9a")]():x=t}}if(x)return this[Xa("0x40")](x,this[Xa("0x50")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this[Xa("0x50")].createRange(a,c),i=s.id,x=n?Xa("0xea")+n:Xa("0x5d"),l=this[Xa("0x13")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}[Xa("0x7f")](t,n=Xa("0xc5"),o={}){const s=this[Xa("0x7")][Xa("0x3")][Xa("0x4")](Xa("0x7b")).me,r=t[Xa("0xf4")]((t=>new i.LiveRange(t.start,t[Xa("0x14")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(r,"insertion"))e[Xa("0x124")]&&!e[Xa("0x9d")]&&x[Xa("0x65")](t);for(const e of x)if(e.isMultiRange){const s=e[Xa("0xcb")]();if((!e[Xa("0x12f")]||!e.attributes[Xa("0x12e")])&&s[Xa("0x41")]((t=>r.some((e=>e[Xa("0xad")](t,!0)))))&&e[Xa("0x1c")](),r[Xa("0x41")]((t=>s[Xa("0x96")]((e=>e[Xa("0xad")](t,!0)))))){const e=this._suggestionFactory[Xa("0xcd")](Xa("0x5d"),n,Xa("0x18"));return this[Xa("0x120")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0x9c")]();if(r[Xa("0x96")]((e=>e[Xa("0xad")](t,!0)))&&e[Xa("0x1c")](),r[Xa("0x41")]((e=>t[Xa("0xad")](e,!0)))){const t=this[Xa("0x24")][Xa("0xcd")](Xa("0x5d"),n,Xa("0x18"));return this[Xa("0x120")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory.getSuggestionCallback("deletion",n,Xa("0xae"));let c=null;for(const t of this[Xa("0x130")]())if(t.author.id==s.id&&t[Xa("0x95")]&&Xa("0x5d")==t[Xa("0x131")]&&t[Xa("0x28")]==n&&rc(t,o)&&(a(t.getRanges(),r)||a(r,t[Xa("0xcb")]())))if(c){if(t[Xa("0x86")]&&t[Xa("0x86")][Xa("0x74")])continue;for(const e of t[Xa("0xcb")]())c.isIntersectingWithRange(e)||c[Xa("0x46")](e);t.removeMarkers()}else{c=t;for(const e of r)t[Xa("0x88")](e)||t.addRange(e)}if(c)return c;x[Xa("0xaf")]();for(const{suggestion:t,meta:e}of this[Xa("0x2a")](r,"deletion"))e.isOwn&&(this[Xa("0xd6")]||!e.containsRangeInObject&&!e.isInsideObject)&&rc(t,o)&&x[Xa("0x65")](t);for(const t of x){const e=t[Xa("0xcb")]();if((!o||!o[Xa("0x12e")])&&r.every((t=>e[Xa("0x96")]((e=>e[Xa("0xad")](t,!0))))))return t;(!t.attributes||!t.attributes.skipNestingCheck)&&e[Xa("0x41")]((t=>r[Xa("0x96")]((e=>e[Xa("0xad")](t,!0)))))&&t[Xa("0x1c")]()}const l=(0,e.uid)(),d=s.id,u=Xa("0xea")+n,g=this[Xa("0x13")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[Xa("0xbe")](),t[Xa("0xa0")]||Xa("0xd5")==t[Xa("0x13b")][Xa("0x5e")]||this[Xa("0x104")](u,l,d,t,Zo[Xa("0xeb")]());return g}[Xa("0x40")](t,e){const n=t.getFirstMarker();this._model.change((t=>{t.updateMarker(n,{range:e})}))}[Xa("0x42")](t){const e=t.id,n=this.editor[Xa("0xe9")][Xa("0x4")](Xa("0x48"));this[Xa("0x125")][Xa("0x1e")](e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0x125")][Xa("0xb2")](e);o[Xa("0x70")]("isRemovable"),o[Xa("0x53")]=!1,t.commentThread=o}[Xa("0x134")](t,n,o,s){if(t[Xa("0x131")]!=n||t.subType!=o||t[Xa("0x115")].id!=s)throw this[Xa("0x7")][Xa("0x8e")](Xa("0x71")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[Xa("0x12a")](t,n){const o=t.getFirstRange();if(n[Xa("0xff")](o))t[Xa("0x9a")]();else if(o[Xa("0xad")](n)){const s=this._model[Xa("0xb6")](n[Xa("0x23")].nodeBefore,"end");this._setSuggestionRange(t,this[Xa("0x50")][Xa("0x12b")](o[Xa("0x23")],s));const r=(0,e.uid)(),i=t[Xa("0x115")].id,x=t[Xa("0x131")]+":"+t.subType;this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t.attributes});const a=this[Xa("0x50")][Xa("0xb6")](n[Xa("0x14")].parent,Xa("0x1b")),c=this[Xa("0x50")][Xa("0x12b")](a,o[Xa("0x14")]);this._addSuggestionMarker(x,r,i,c)}else if(o[Xa("0xd9")](n[Xa("0x23")])){const e=this._model.createPositionAt(n[Xa("0x23")][Xa("0x0")],Xa("0x14"));this[Xa("0x40")](t,this[Xa("0x50")][Xa("0x12b")](o[Xa("0x23")],e))}else{const e=this[Xa("0x50")][Xa("0xb6")](n[Xa("0x14")][Xa("0xd")],Xa("0x1b"));this[Xa("0x40")](t,this[Xa("0x50")][Xa("0x12b")](e,o[Xa("0x14")]))}}[Xa("0x34")](t){for(const{suggestion:e,meta:n}of this[Xa("0x2a")](t,Xa("0xf8"))){if(!n[Xa("0x124")])continue;const o=e[Xa("0xcb")]();for(const e of o)if(!t[Xa("0x4b")](e)[Xa("0x74")])return!0}return!1}[Xa("0x6c")](t){const n=this[Xa("0x7")][Xa("0x3")][Xa("0x4")]("Users")[Xa("0x11b")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[Xa("0x136")](t){const e=this[Xa("0x7")][Xa("0x3")][Xa("0x4")](Xa("0x7b")),n=(0,r.hashObject)("external:"+t);return e[Xa("0x11b")](n)||e[Xa("0x1d")]({id:n,name:t})}[Xa("0xce")](t,e,n,o,s){const r=this[Xa("0x6c")](o),i=this._suggestionFactory[Xa("0x9b")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(i,Xa("0x18"),(()=>{this[Xa("0xfa")](n,{state:Xa("0xd7")})}),{priority:Xa("0x117")}),this[Xa("0x5a")](i,Xa("0x1c"),(()=>{this._updateSuggestionData(n,{state:Xa("0x25")})}),{priority:Xa("0x117")}),this[Xa("0xb9")][Xa("0x114")](n,i),this[Xa("0xde")][Xa("0x114")](i,Xa("0x77")),i}[Xa("0x45")](t){const e=t[Xa("0x127")](":");return{group:e[0],type:e[1],subType:e[Xa("0x74")]>=5?e[2]:null,id:e[Xa("0x74")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[Xa("0x74")]?e[5]:null}}[Xa("0x43")](t,n,o){const s=t[Xa("0x9c")](),r=s.start,i=s[Xa("0x14")];this._setSuggestionRange(t,this[Xa("0x50")][Xa("0x12b")](r,n));const x=(0,e.uid)(),a=t[Xa("0x115")].id,c=t[Xa("0x131")]+(t[Xa("0x28")]?":"+t.subType:"");this[Xa("0x13")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x12f")],data:t[Xa("0xb8")]}),"formatBlock"==t[Xa("0x131")]&&(o=this[Xa("0x50")].createPositionBefore(o.parent)),this._addSuggestionMarker(c,x,a,this[Xa("0x50")].createRange(o,i))}[Xa("0x2a")](t,e=null){const n=[],o=this[Xa("0x7")][Xa("0x3")][Xa("0x4")]("Users").me;Array[Xa("0xd0")](t)||(t=[t]);for(const s of this[Xa("0x130")]()){if(!s[Xa("0x95")])continue;if(e&&s.type!=e)continue;let r=!1;for(const e of s[Xa("0xcb")]()){for(const i of t){const t=i[Xa("0x23")][Xa("0xff")](e[Xa("0x14")])||i.end.isEqual(e[Xa("0x23")]);if(t||i[Xa("0x1f")](e)){const x=i.containsRange(e)&&Qa(this[Xa("0x50")][Xa("0xd1")],e[Xa("0x23")],i),a=e[Xa("0xad")](i)&&Qa(this[Xa("0x50")][Xa("0xd1")],i.start,e);n[Xa("0x8d")]({suggestion:s,meta:{isOwn:o==s[Xa("0xdb")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}_addSuggestionMarker(t,e,n,o,s){this[Xa("0x50")][Xa("0xb7")]((r=>{let i=Xa("0x10")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0xa")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[Xa("0x8c")],n=t.next;t[Xa("0x8c")]=null,null!=e&&(e[Xa("0xe4")]=null),t[Xa("0xe4")]=null,null!=n&&(n.previous=null),Xa("0x9f")==this[Xa("0xde")].get(t)&&(this[Xa("0xde")].set(t,Xa("0x51")),this[Xa("0xcf")]("suggestionUnloaded",t,e,n))}[Xa("0x13")](t){const n=t.id,o=this[Xa("0x8")](t);if(this[Xa("0x8b")]&&this[Xa("0x8b")][Xa("0xa3")]){const s=this[Xa("0x7")][Xa("0x3")][Xa("0x4")]("PendingActions"),r=o[Xa("0xf3")],i=o.subType?o.type+":"+o[Xa("0x28")]:o[Xa("0x131")],x=this.editor[Xa("0xef")],a=s[Xa("0x65")](Yo(x,Xa("0x29"))),c={id:n,type:i,hasComments:r,data:t[Xa("0xb8")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[Xa("0x12f")]};this._adapter[Xa("0xa3")](c)[Xa("0xd8")]((t=>{o[Xa("0x58")]=!0,s[Xa("0x38")](a),t&&t[Xa("0xf6")]&&(this._suggestions.get(n)[Xa("0xf6")]=t[Xa("0xf6")])}))[Xa("0x1a")]((t=>{throw(0,e.logWarning)(Xa("0x62")),this.editor[Xa("0xcc")][Xa("0x108")]({isUndoable:!1},(()=>{o[Xa("0x1c")]()})),o[Xa("0xee")](),this._suggestions.delete(o.id),this[Xa("0xde")].delete(o),t}))}return o}[Xa("0xfa")](t,e){const n=this[Xa("0x7")][Xa("0x3")][Xa("0x4")](Xa("0x109")),o=this[Xa("0x101")](t);if(this[Xa("0x8b")]&&this[Xa("0x8b")][Xa("0x81")])if(o._saved){const o=n[Xa("0x65")](Yo(this[Xa("0x7")][Xa("0xef")],"PENDING_ACTION_SUGGESTION"));this[Xa("0x8b")][Xa("0x81")](t,e).then((()=>{n.remove(o)}))}else o.on(Xa("0x10d"),(()=>{this[Xa("0xfa")](t,e)}))}[Xa("0x19")](t){if(!this._adapter||!this[Xa("0x8b")][Xa("0x101")])throw new e.CKEditorError(Xa("0xfd"),this);return this[Xa("0x8b")].getSuggestion(t)}[Xa("0x69")](t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0x45")](t),r=this._suggestions.get(e)||this[Xa("0xce")](n,o,e,s,{});switch(this[Xa("0x134")](r,n,o,s),this[Xa("0xde")].get(r)){case Xa("0x77"):this._getSuggestionData(e)[Xa("0xd8")]((t=>{let n=Promise[Xa("0xf7")]();t[Xa("0xf3")]&&(n=this._commentsRepository.fetchCommentThread({channelId:this[Xa("0x7")].config.get(Xa("0x48")),threadId:e})),n.then((()=>{this[Xa("0x8")](t)[Xa("0x58")]=!0}))})),this[Xa("0xde")][Xa("0x114")](r,Xa("0xf5"));break;case Xa("0x51"):this._updateSuggestionData(e,{state:Xa("0x110")});case"dataReady":this[Xa("0xde")].set(r,Xa("0x9f")),this[Xa("0xcf")](Xa("0x128"),r);break;case"ready":this.fire("suggestionChanged",r)}return r[Xa("0x113")](t),r}[Xa("0x91")](t){const e=Array[Xa("0x2e")](t).filter((t=>!t.isMultiRange)),n=this[Xa("0x130")]({skipNotAttached:!0})[Xa("0xc1")]((t=>!t[Xa("0x30")])),o=n.filter((e=>!t[Xa("0x10e")](e))),s=new Map(n[Xa("0xf4")]((t=>[t,this[Xa("0x24")][Xa("0xcd")](t[Xa("0x131")],t[Xa("0x28")],Xa("0x3d"))]))),r=new Map(n.map((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[Xa("0x74")];t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0x74")];t++)a(e[t],o,0);for(let t=0;t<e[Xa("0x74")];t++){const n=e[t];!x.has(n)&&n[Xa("0x8c")]&&(n.previous[Xa("0xe4")]===n&&(n.previous[Xa("0xe4")]=null),n[Xa("0x8c")]=null),!i[Xa("0x10e")](n)&&n[Xa("0xe4")]&&(n[Xa("0xe4")][Xa("0x8c")]===n&&(n[Xa("0xe4")][Xa("0x8c")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][Xa("0xe4")]=n[1],n[1][Xa("0x8c")]=n[0],i[Xa("0x65")](n[0]),x[Xa("0x65")](n[1]))}}function c(t,e){if(t[Xa("0xdb")].id!==e[Xa("0xdb")].id)return null;const n=s.get(t)(t,e,r[Xa("0x4")](t),r[Xa("0x4")](e));return n&&s[Xa("0x4")](e)(t,e,r[Xa("0x4")](t),r[Xa("0x4")](e))?n[1][Xa("0x86")]&&n[1][Xa("0x86")][Xa("0x74")]?null:n:null}}[Xa("0xc9")](t){const e=Array.from(t),n=this[Xa("0x130")]({skipNotAttached:!0}),o=n[Xa("0xc1")]((e=>!t[Xa("0x10e")](e))),s=new Map(e.map((t=>[t,this._suggestionFactory[Xa("0xcd")](t.type,t[Xa("0x28")],Xa("0xae"))]))),r=new Map(n.map((t=>[t,t[Xa("0xcb")]()])));for(let t=0;t<e[Xa("0x74")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Xa("0x74")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[Xa("0x74")];i++){const o=n[i];if(o[Xa("0x131")]!==e[Xa("0x131")]||o[Xa("0xdb")].id!==e[Xa("0xdb")].id||o[Xa("0x28")]!==e[Xa("0x28")])continue;if(!sc(e,o))continue;const x=s.get(e),a=r[Xa("0x4")](e),c=r[Xa("0x4")](o),l=e[Xa("0x86")]&&e[Xa("0x86")].length,d=o[Xa("0x86")]&&o[Xa("0x86")][Xa("0x74")];if(!l&&x(c,a))return t[Xa("0x67")](o,e),r.delete(e),!0;if(!d&&x(a,c))return t[Xa("0x67")](e,o),r.delete(o),!0}return!1}}[Xa("0x67")](t,e){if(t[Xa("0x30")])for(const n of e[Xa("0xcb")]())t[Xa("0x46")](n);else{const n=e[Xa("0x9c")]().end;this[Xa("0x40")](t,this[Xa("0x50")][Xa("0x12b")](t[Xa("0x9c")]()[Xa("0x23")],n))}e[Xa("0x9a")]()}}class Ja{constructor(t){this[Xa("0x36")]=t,this[Xa("0x50")]=t[Xa("0xcc")],this[Xa("0x52")]=new Map,this._defaultCallbacks=new Map,this[Xa("0xc7")]()}[Xa("0x9b")](t,e,n,o,s,r){return new Zo(this[Xa("0x50")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Xa("0xcd")](t,e,Xa("0x18"))(...n),onDiscard:(...n)=>this[Xa("0xcd")](t,e,Xa("0x1c"))(...n)})}[Xa("0x1")](t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0x52")][Xa("0x114")](s,o)}[Xa("0xcd")](t,e,n){const o=t+":"+e+":"+n;return this[Xa("0x52")][Xa("0x4")](o)||this[Xa("0x57")].get(t+":"+n)}[Xa("0xc7")](){const t=()=>!1,e=t=>{t[Xa("0x11c")](((t,e)=>t[Xa("0x23")][Xa("0x2b")](e[Xa("0x23")])?1:-1)),this[Xa("0x50")].change((e=>{for(const n of t){let t;t=n[Xa("0x14")][Xa("0xe3")]&&n[Xa("0x14")][Xa("0xd")]==n[Xa("0x23")].nodeAfter?e[Xa("0x5")](n.start[Xa("0x126")],"on"):e.createSelection(n),this[Xa("0x50")][Xa("0x3e")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0x50")][Xa("0xb7")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Xa("0xf4")]((t=>(Za(t)&&(t=this[Xa("0x50")].createRange(t.end)),t)))[Xa("0xc1")]((t=>Xa("0xd5")!==t[Xa("0x13b")].rootName));if(r.length<1)return;const x=Array[Xa("0x2e")](this._model[Xa("0x8a")][Xa("0xd3")][Xa("0xcb")]())[Xa("0xf4")]((t=>i.LiveRange.fromRange(t)));n[Xa("0x37")](r);for(const t of this[Xa("0x36")][Xa("0x11e")][Xa("0x11e")]())t[Xa("0x2c")]();s.push({forceDefaultExecution:!0}),this[Xa("0x36")][Xa("0xa1")](o,...s);const a=x[Xa("0xc1")]((t=>Xa("0xd5")!=t[Xa("0x13b")][Xa("0x5e")]));a[Xa("0x74")]>0&&n[Xa("0x37")](a);for(const t of x)t[Xa("0xbe")]()}))},o=(t,e)=>1==t[Xa("0x74")]&&1==e.length&&t[0][Xa("0x14")][Xa("0xff")](e[0].start),s=(t,e,n,o)=>oc(t,e,n,o,this[Xa("0x50")])?[t,e]:oc(e,t,o,n,this[Xa("0x50")])?[e,t]:null;this[Xa("0x57")][Xa("0x114")](Xa("0x13d"),t),this[Xa("0x57")][Xa("0x114")](Xa("0x75"),e),this[Xa("0x57")][Xa("0x114")](Xa("0x3c"),o),this._defaultCallbacks[Xa("0x114")](Xa("0x9e"),s),this[Xa("0x57")].set(Xa("0xc2"),e),this._defaultCallbacks.set("deletion:discard",t),this[Xa("0x57")][Xa("0x114")]("deletion:join",o),this._defaultCallbacks[Xa("0x114")]("deletion:chain",s),this._defaultCallbacks.set(Xa("0x5f"),n),this[Xa("0x57")].set(Xa("0xfb"),t),this[Xa("0x57")][Xa("0x114")](Xa("0xb3"),o),this[Xa("0x57")].set("formatInline:chain",t),this[Xa("0x57")].set(Xa("0x122"),n),this[Xa("0x57")][Xa("0x114")](Xa("0x27"),t),this[Xa("0x57")][Xa("0x114")]("formatBlock:join",o),this[Xa("0x57")][Xa("0x114")](Xa("0xc8"),t)}}function Qa(t,e,n){for(const o of e[Xa("0xd")][Xa("0x87")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[Xa("0x6b")](o))return!1;if(t[Xa("0x13a")](o)||t.isLimit(o))return!0}return!1}function Za(t){return t.end[Xa("0xd")]==t[Xa("0x23")][Xa("0x126")]&&t.end[Xa("0xa2")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0x112")].is("$textProxy")&&!o[Xa("0x13a")](t.item),r=t[Xa("0x23")][Xa("0x3b")](s),i=t[Xa("0x14")][Xa("0x3b")](s,{direction:"backward"});return!(t[Xa("0x23")][Xa("0xff")](r)&&t[Xa("0x14")][Xa("0xff")](i)||(r[Xa("0x2b")](i)?n[Xa("0xd4")](e,{range:n[Xa("0x12b")](r,i)}):n.removeMarker(e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t.start[Xa("0x126")];return e&&e.is(Xa("0x11a"))}function nc(t,e){const n=e[Xa("0xd1")].isObject(t)||e.schema[Xa("0xb5")](t);return e[Xa("0x12b")](e[Xa("0xb6")](t,"before"),n?e[Xa("0xf0")](t):e[Xa("0xb6")](t,Xa("0x14")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n[Xa("0x14")].isEqual(o.start))return!0;if(t[Xa("0x131")]!=e[Xa("0x131")])return!1;if(!n.end.isTouching(o.start))return!1;const r=s.createRange(n.end,o.start)[Xa("0x39")]();for(const t of r)if([Xa("0xa6"),"elementEnd"][Xa("0xd2")](t[Xa("0x131")])&&s[Xa("0xd1")][Xa("0x59")](t.item))return!1;return!0}function sc(t,e){return!(!t[Xa("0x11d")]||!e._isDataLoaded)&&Go(t[Xa("0x12f")],e[Xa("0x12f")])}function rc(t,e){const n=ic(t[Xa("0x12f")]),o=ic(e);if(!t[Xa("0x11d")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object[Xa("0xc0")]({},t);return delete e[Xa("0x12e")],delete e.tablePasteChainId,e}const xc=["_pendingAction","canDiscard","_setPendingAction","commentThreadController","PendingActions","acceptSuggestion","_removePendingAction","bind","_editor","canAccept","isDirty","destroy","plugins","discardSuggestion","canEditAt","add","unbind","_acceptCommand","locale","execute","PENDING_ACTION_SUGGESTION","_discardCommand","remove","getRanges","commands","get","model","listenTo","change:isDirty","isEnabled","view"];var ac,cc;ac=xc,cc=352,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[lc("0xf")]=e,this[lc("0x13")]=n,this[lc("0x17")]=o,this[lc("0x1c")]=t,this[lc("0x6")]=t[lc("0xd")][lc("0xe")]("acceptSuggestion"),this._discardCommand=t[lc("0xd")][lc("0xe")](lc("0x2")),this[lc("0x13")][lc("0x1b")](lc("0x12")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this[lc("0x13")][lc("0x1b")]("canAccept").to(this[lc("0x6")],lc("0x12"),(t=>t&&this[lc("0x1c")].model[lc("0x3")](e[lc("0xc")]()))),this.view.bind(lc("0x15")).to(this._discardCommand,lc("0x12"),(t=>t&&this[lc("0x1c")][lc("0xf")][lc("0x3")](e[lc("0xc")]()))),this[lc("0x14")]=null,n[lc("0x1e")]&&this[lc("0x16")](),this[lc("0x10")](n,lc("0x19"),(()=>this[lc("0x19")]())),this[lc("0x10")](n,"discardSuggestion",(()=>this[lc("0x2")]())),this[lc("0x10")](n,lc("0x11"),(()=>{n[lc("0x1e")]?this[lc("0x16")]():this[lc("0x1a")]()}))}[lc("0x19")](){this[lc("0x6")][lc("0x8")](this[lc("0xf")].id)}[lc("0x2")](){this[lc("0xa")].execute(this[lc("0xf")].id)}[lc("0x0")](){this[lc("0x13")].unbind(lc("0x12")),this.view[lc("0x5")](lc("0x1d")),this[lc("0x13")][lc("0x5")]("canDiscard"),this.stopListening(),this[lc("0x17")][lc("0x0")](),this[lc("0x14")]&&this._removePendingAction()}[lc("0x16")](){const t=Yo(this[lc("0x1c")][lc("0x7")],lc("0x9"));this[lc("0x14")]=this[lc("0x1c")][lc("0x1")].get(lc("0x18"))[lc("0x4")](t)}[lc("0x1a")](){null!==this[lc("0x14")]&&this._editor[lc("0x1")][lc("0xe")](lc("0x18"))[lc("0xb")](this[lc("0x14")]),this[lc("0x14")]=null}}const uc=["_config","commentThreadInputView","disabledSubmit","locale","commentThread","editor","length","hasDirtyComment","isActive","isDirty","_createCommentThreadInputView","removeComment","cancel","_model","isEnabled","commentInputView","destroy","disableComments","focus","value","_createCommentViews","canDiscard","isReadOnly","editorConfig","descriptionParts","set","element","fire","submit","delegate","_localUser","commentsListView","addComment","canAccept","updateComment","assign","bind","authoredAt"];var gc,mc;gc=uc,mc=383,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[fc("0x1c")]=null,this.commentThreadInputView=null,this.set(fc("0x5"),!1),this[fc("0x16")]("authoredAt",e.authoredAt),this[fc("0x21")](fc("0x22")).to(e),this[fc("0x16")](fc("0x15"),[]),this.set(fc("0x6"),!1),this.set(fc("0xb"),!1),this[fc("0x16")](fc("0x1e"),!1),this.set(fc("0x12"),!1),this[fc("0xa")]=e,this._localUser=n,this[fc("0x23")]=o,o[fc("0xe")]?this[fc("0x16")](fc("0x3"),1):this[fc("0x11")]()}[fc("0xf")](){this[fc("0x17")][fc("0xf")]()}[fc("0xd")](){this[fc("0x1c")]&&this.commentsListView[fc("0xd")](),this[fc("0x24")]&&this[fc("0x24")][fc("0xd")](),super[fc("0xd")]()}[fc("0x11")](){const{CommentsListView:t}=this._config;this[fc("0x1c")]=new t(this[fc("0x0")],this[fc("0xa")][fc("0x1")],Object[fc("0x20")]({CommentView:this[fc("0x23")].CommentView},this._config)),this[fc("0x1c")][fc("0x1a")](fc("0x8")).to(this),this.commentsListView.delegate(fc("0x1f")).to(this),this[fc("0x1c")].bind(fc("0x5")).to(this),this[fc("0x16")](fc("0x3"),this.commentsListView[fc("0x3")]+1),this[fc("0x21")]("length").to(this.commentsListView,fc("0x3"),(t=>t+1)),this[fc("0x24")]=this._createCommentThreadInputView(),this.on("removeComment",(()=>this.focus())),this[fc("0x21")](fc("0x6")).to(this[fc("0x1c")],fc("0x4"),this[fc("0x24")][fc("0xc")],fc("0x10"),((t,e)=>t||!!e))}[fc("0x7")](){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[fc("0x1b")],this[fc("0x23")][fc("0x14")]),n=e[fc("0xc")];return e.bind("showInput").to(this,fc("0x5"),this[fc("0xa")][fc("0x1")],fc("0x13"),n,fc("0x10"),((t,e,n)=>!!n||t&&!e)),n.on(fc("0x19"),((t,e)=>{this[fc("0x18")](fc("0x1d"),e),n[fc("0x2")].setData("")})),n.on(fc("0x9"),(()=>this[fc("0xf")]())),n[fc("0x21")](fc("0x25")).to(this[fc("0xa")][fc("0x1")],"isReadOnly"),e}}const pc=["delegate","getTemplate","ck-comment__info-time","canAccept","title","acceptSuggestion","source","fire","div","canDiscard","discardSuggestion","getExternalSuggestionNote","bindTemplate","render","formatDateTime","commentThreadInputView","querySelector","disableComments","value","ck-annotation__info","_createButton","ck-suggestion",'<span class="ck-suggestion-type">',"ck-annotation__info-time","type","content","ck-suggestion-wrapper","Accept suggestion","_model","element","split","extendTemplate","ck-comment__external","description","check","cancel","importWord","EXTERNAL_SUGGESTION","set","ck-annotation__content-wrapper","discardButton","</p>","locale","push","userView","attributes","descriptionParts","ck-suggestion__info-name","span","change:description","authoredAt","setTemplate","isActive","children","_config","ck-suggestion__actions","ck-suggestion-","ck-suggestion__info","ck-suggestion--discard","ck-annotation__info-name","name","createElement","author","color","isEnabled","ck-suggestion--accept","EXTERNAL_IMPORT_WORD_AVATAR","EXTERNAL_AVATAR","_descriptionElement","getUserViewNotificationText","editorDestroyed","innerHTML","<p>",'" title="',"isExternal","editorReady","acceptButton","creator",'"></span>',"EXTERNAL_IMPORT_WORD_SUGGESTION","commentsListView","ck-suggestion--disabled-comments","join","@external","bind"];var bc,Ec;bc=pc,Ec=385,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends hc{constructor(e,n,o,s){super(e,n,o,s),this[_c("0x4e")]("type",""),this.bind("type").to(this,_c("0x1"),(t=>t&&t[0]?t[0].type:"")),this[_c("0x27")]("description").to(this,_c("0x1"),this,_c("0x7"),((t,e)=>{let n="";for(const e of t)n+=_c("0x1b")+Cc(e[_c("0x41")],e[_c("0x12")])+_c("0x51");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[_c("0x17")]=null,this[_c("0x1f")]=this[_c("0x3c")](Yo(e,_c("0x43")),t.icons[_c("0x4a")],_c("0x14"),_c("0x2d"),"sw"),this.acceptButton.bind(_c("0x13")).to(this,_c("0x2b")),this[_c("0x50")]=this[_c("0x3c")](Yo(e,"Discard suggestion"),t.icons[_c("0x4b")],_c("0xd"),_c("0x32"),"sw"),this[_c("0x50")].bind("isEnabled").to(this,_c("0x31")),this[_c("0x54")]=new r.UserView(e,this[_c("0x44")][_c("0x11")],this[_c("0x18")]()),this[_c("0x54")].extendTemplate({attributes:{class:["ck-suggestion__user","ck-annotation__user"]}}),this[_c("0x6")](this[_c("0x29")]())}[_c("0x29")](){const t=this[_c("0x34")],e=[{tag:_c("0x30"),attributes:{class:[_c("0xc"),_c("0x3b")]},children:[{tag:"span",children:[{text:this[_c("0x54")][_c("0xf")]}],attributes:{class:[_c("0x2"),_c("0xe")]}},{tag:"time",attributes:{datetime:t.to(_c("0x5")),class:[_c("0x2a"),_c("0x3f")]},children:[{text:t.to(_c("0x5"),(t=>this[_c("0x9")][_c("0x36")](t)))}]}]},{tag:_c("0x30"),attributes:{class:[_c("0xa"),"ck-annotation__actions"]},children:[this[_c("0x1f")],this[_c("0x50")]]},{tag:_c("0x30"),attributes:{class:[_c("0x4f")]}}];this[_c("0x44")][_c("0x1d")]&&e.push({tag:"div",attributes:{class:[_c("0x48")]},children:[{text:this[_c("0x33")]()}]});const n={tag:_c("0x30"),attributes:{class:[_c("0x42"),t.if(_c("0x7"),"ck-suggestion-wrapper--active"),t.to(_c("0x40"),(t=>_c("0xb")+t)),this[_c("0x9")][_c("0x39")]&&_c("0x24")],"data-suggestion-id":this[_c("0x44")].id,"data-thread-id":this[_c("0x44")].commentThread.id,"data-author-id":this._model[_c("0x11")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[_c("0x3d"),"ck-annotation"]},children:[this[_c("0x54")],{tag:_c("0x30"),attributes:{class:["ck-suggestion__main","ck-annotation__main"]},children:e}]}]};return this[_c("0x23")]&&this[_c("0x37")]&&(n[_c("0x8")][_c("0x53")](this[_c("0x23")],this[_c("0x37")]),this[_c("0x23")][_c("0x28")](_c("0x1e")).to(this),this[_c("0x23")][_c("0x28")](_c("0x19")).to(this),this[_c("0x37")][_c("0x28")]("editorReady").to(this),this[_c("0x37")][_c("0x28")](_c("0x19")).to(this)),n}render(){super[_c("0x35")](),this._descriptionElement=this[_c("0x45")][_c("0x38")](".ck-annotation__content-wrapper"),this[_c("0x17")][_c("0x1a")]=this[_c("0x49")],this.on(_c("0x4"),((t,e,n)=>{this[_c("0x17")][_c("0x1a")]=n}))}[_c("0x3c")](t,e,n,o,r){const i=new s.ButtonView(this[_c("0x52")]);return i[_c("0x4e")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x47")]({attributes:{class:n}}),i.on("execute",(()=>{this[_c("0x2f")](o,this[_c("0x44")].id)})),i}[_c("0x33")](){return _c("0x4c")===this[_c("0x44")].attributes[_c("0x26")][_c("0x2e")]?Yo(this[_c("0x52")],_c("0x22")):Yo(this[_c("0x52")],_c("0x4d"))}getUserViewNotificationText(){return this[_c("0x44")].isExternal?"importWord"===this[_c("0x44")][_c("0x0")][_c("0x26")].source?Yo(this[_c("0x52")],_c("0x15"),this._model[_c("0x20")][_c("0xf")]):Yo(this[_c("0x52")],_c("0x16"),this._model[_c("0x20")][_c("0xf")]):null}}function Cc(t,e){let n="";return n+=t[_c("0x46")]("*").map(((t,e)=>e%2!=0?_c("0x3e")+yc(t)+"</span>":yc(t)))[_c("0x25")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[_c("0x3a")]+_c("0x1c")+e[_c("0x2c")]+_c("0x21")),n}function yc(t){const e=document[_c("0x10")](_c("0x3"));return e.innerText=t,e.innerHTML}const kc=["model","value","bind","plugins","getMarkers","head","_updateController","length","reduce","lowest","_handleSuggestionControllerDelayed","discardAllSuggestions","addComment","createAnnotation","editing","pluginName","commentThread","getByInnerView","suggestionChanged","comments.maxThreadTotalWeight","switchbutton","_handleControllerBuffer","unbind","previous","isMultiRange","arrowView","execute","destroy","get","EditorAnnotations","keys","discardSelectedSuggestions","button","Accept all selected suggestions","_disableComments","getSuggestion","Accept all suggestions","_destroyController","refreshSelectedViews","isInContent","suggestionLoaded","comments.maxCommentsWhenCollapsed","config","addSourceCollector","type","acceptSelectedSuggestions","init","Discard all selected suggestions","_descriptionFactory","toMany","getMarkerNames","Annotations","values","view","acceptButton","innerView","trackChanges.disableComments","isOn","push","componentFactory","_viewToController","_annotationViews","actionView","acceptAllSuggestions","locale","remove","comments","delete","has","getJoined","filter","getDescriptions","clear","SuggestionThreadView","isEnabled","getAllAdjacentSuggestions","listenTo","Discard all suggestions","_unbindEditors","TrackChangesEditing","CommentView","createCommentThreadController","define","add","trackChanges","focus","_bindAnnotationToEditors","CommentsUI","from","mainView","map","change:activeAnnotations","requires","isDirty","stopListening","comments.maxCommentCharsWhenCollapsed","editor","change:previous","set","activeMarkers","size","suggestion-","getRanges","_suggestionToController","commandName","some","_refreshActiveMarkers","hasSuggestion","commands","buttonView","CommentsRepository","descriptionParts"];var Ac,vc;Ac=kc,vc=222,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Ic extends t.Plugin{static get[Rc("0x5e")](){return[$a,r.Users,Rc("0x0"),Rc("0x35"),Rc("0x1f")]}static get[Rc("0x11")](){return"TrackChangesUI"}constructor(t){super(t),this[Rc("0x69")]=new Map,this[Rc("0x3e")]=new Map,this[Rc("0x3f")]=new Map,this[Rc("0x17")]=new Map;const e=this.editor[Rc("0x2c")];e[Rc("0x54")]("trackChanges.SuggestionThreadView",Tc),e[Rc("0x54")](Rc("0x3a"),!1),this[Rc("0x24")]=e.get("trackChanges.disableComments")}[Rc("0xc")](t,e){0===this._handleControllerBuffer[Rc("0x66")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Rc("0x69")][Rc("0x46")](t);n||e?n&&e&&this[Rc("0x27")](t):this._initializeController(t)}this[Rc("0x62")][Rc("0x5")][Rc("0x1e")]("EditorAnnotations")[Rc("0x28")](),this[Rc("0x6c")](),this._handleControllerBuffer[Rc("0x4a")]()}),10),this[Rc("0x17")][Rc("0x64")](t,e)}[Rc("0x30")](){const t=this.editor,e=t.plugins[Rc("0x1e")](Rc("0x51")),n=t[Rc("0x5")][Rc("0x1e")](Rc("0x35")),o=t[Rc("0x5")][Rc("0x1e")](Rc("0x1f")),s=t.plugins[Rc("0x1e")]("CommentsRepository");t.ui[Rc("0x3d")][Rc("0x55")](Rc("0x56"),(t=>this._createUIButton(t))),o[Rc("0x2d")]((()=>{const t=[];for(const[e,n]of Array[Rc("0x5a")](this[Rc("0x69")])){const o=e[Rc("0x4d")](),s=[];for(const t of o){if(!t[Rc("0x29")])continue;if(t[Rc("0x1a")]){s[Rc("0x3c")](...t[Rc("0x68")]());continue}const e=t.getFirstRange();if(s[Rc("0x9")]>0){const t=s[0][Rc("0x47")](e);if(t){s[0]=t;continue}}s[Rc("0x3c")](e)}t.push([n[Rc("0x37")],s])}return t})),this[Rc("0x4e")](e,Rc("0x2a"),((t,e)=>{this[Rc("0x4e")](e,Rc("0x63"),((t,n,o,s)=>{e[Rc("0x29")]&&(null==o?(this[Rc("0x8")](s[Rc("0x7")]),this[Rc("0xc")](e,!1)):(this[Rc("0x8")](o.head),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Rc("0x19")]?this[Rc("0xc")](e,!1):this[Rc("0x8")](e.head)})),this[Rc("0x4e")](e,"suggestionUnloaded",((t,e,n)=>{this[Rc("0x60")](e,Rc("0x63")),this._handleControllerBuffer[Rc("0x45")](e);const o=n?n.head:e,s=this[Rc("0x69")].get(o);null!==n&&this[Rc("0x8")](o),null===n&&s&&this[Rc("0x27")](e)})),this.listenTo(e,Rc("0x14"),((t,e)=>{this[Rc("0x8")](e)})),this[Rc("0x4e")](n,Rc("0x5d"),(()=>{this[Rc("0x6c")]()})),this.listenTo(s,Rc("0xe"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x6d")](n))return;const s=e[Rc("0x25")](n);this[Rc("0x69")].get(s).view[Rc("0x57")]()}),{priority:Rc("0xb")})}[Rc("0x6c")](){const t=this[Rc("0x62")][Rc("0x5")][Rc("0x1e")](Rc("0x35")),e=this[Rc("0x62")][Rc("0x5")][Rc("0x1e")](Rc("0x51")),n=Array[Rc("0x5a")](t.activeAnnotations,(t=>t[Rc("0x39")]))[Rc("0x48")]((t=>this[Rc("0x3e")][Rc("0x46")](t))),o=[];for(const t of n){const e=this[Rc("0x3e")][Rc("0x1e")](t)[Rc("0x2")][Rc("0x4d")]();o[Rc("0x3c")](...e[Rc("0xa")](((t,e)=>[...t,...e[Rc("0x34")]()]),[]))}e[Rc("0x65")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x62")][Rc("0x6e")].get(Rc("0x56")),r=Yo(t,"Track changes");n[Rc("0x6f")][Rc("0x64")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Rc("0x6f")][Rc("0x4")](Rc("0x3b")).to(o,Rc("0x3")),n[Rc("0x6f")].on("execute",(()=>{o[Rc("0x1c")](),this[Rc("0x62")][Rc("0x10")][Rc("0x37")][Rc("0x57")]()}));const i=new e.Collection,x=[{type:Rc("0x16"),model:{withText:!0,label:r,commandName:Rc("0x56")}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x26")),commandName:Rc("0x41")}},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x23")),commandName:Rc("0x2f")}},{type:Rc("0x22"),model:{withText:!0,label:Yo(t,Rc("0x4f")),commandName:Rc("0xd")}},{type:Rc("0x22"),model:{withText:!0,label:Yo(t,Rc("0x31")),commandName:Rc("0x21")}}];for(const t of x){let e={type:"separator"};if(t[Rc("0x2")]){const n=new s.Model(t[Rc("0x2")]),o=this[Rc("0x62")][Rc("0x6e")][Rc("0x1e")](n[Rc("0x6a")]);n[Rc("0x4")](Rc("0x3b"),"isEnabled").to(o,Rc("0x3"),"isEnabled"),e={type:t[Rc("0x2e")],model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Rc("0x2")]))[Rc("0x5c")]((t=>this.editor.commands[Rc("0x1e")](t[Rc("0x2")].commandName))),c=n[Rc("0x6f")];return c[Rc("0x40")].unbind(Rc("0x4c")),c[Rc("0x1b")][Rc("0x18")]("isEnabled"),c[Rc("0x40")][Rc("0x4")](Rc("0x4c")).to(o,Rc("0x4c")),c[Rc("0x1b")].bind(Rc("0x4c"))[Rc("0x33")](a,"isEnabled",((...t)=>t[Rc("0x6b")]((t=>t)))),n.on("execute",(t=>{this.editor[Rc("0x1c")](t.source.commandName),this[Rc("0x62")][Rc("0x10")][Rc("0x37")].focus()})),n}_initializeController(t){const e=this[Rc("0x62")],n=e[Rc("0x2c")],o=e[Rc("0x5")].get(Rc("0x35")),s=e[Rc("0x5")][Rc("0x1e")](Rc("0x0")),i=e[Rc("0x5")][Rc("0x1e")]("EditorAnnotations"),x=e[Rc("0x5")][Rc("0x1e")](r.Users).me,a=n[Rc("0x1e")](Rc("0x56"))[Rc("0x4b")],{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x5")][Rc("0x1e")](Rc("0x59"));let d,u;this[Rc("0x3f")].has(t.id)?(u=this[Rc("0x3f")].get(t.id),d=u[Rc("0x5b")]):(d=new a(e.locale,t,x,{disableComments:this[Rc("0x24")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n[Rc("0x1e")](Rc("0x2b")),maxThreadTotalWeight:n[Rc("0x1e")](Rc("0x15")),maxCommentCharsWhenCollapsed:n.get(Rc("0x61")),formatDateTime:(0,r.getDateTimeFormatter)(n[Rc("0x1e")]("locale")),CommentView:n.get(Rc("0x44"))[Rc("0x52")],CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x38")].on(Rc("0x1c"),(()=>{e.editing.view[Rc("0x57")]()})),d.discardButton.on(Rc("0x1c"),(()=>{e[Rc("0x10")][Rc("0x37")][Rc("0x57")]()})),u=o.createAnnotationView(this[Rc("0x62")][Rc("0x42")],d),u[Rc("0x4")](Rc("0x5f")).to(d,Rc("0x5f")),u.bind(Rc("0x9")).to(d),u[Rc("0x4")](Rc("0x2e")).to(d,"type",(t=>Rc("0x67")+t)),this[Rc("0x3f")][Rc("0x64")](t.id,u));const g=s[Rc("0x53")](t[Rc("0x12")],d),m=new dc(e,t,d,g),f=t[Rc("0x4d")]().filter((t=>t[Rc("0x29")]));d[Rc("0x1")]=e[Rc("0x5")][Rc("0x1e")](Rc("0x51"))[Rc("0x32")].getDescriptions(f),this[Rc("0x69")].set(t,m),this[Rc("0x3e")][Rc("0x64")](d,m);const h=o[Rc("0xf")]({view:u,target:()=>{const n=[],o=t[Rc("0x4d")]()[Rc("0x48")]((t=>t[Rc("0x29")]));for(const t of o)n[Rc("0x3c")](...t[Rc("0x6")]());return(0,r.getAllMarkersDomElementsSorted)(e[Rc("0x10")],n)},type:()=>"suggestion-"+m[Rc("0x37")][Rc("0x2e")]});s[Rc("0x58")](d,h),o.add(h),i.registerAnnotation(h)}[Rc("0x27")](t){const e=this[Rc("0x62")][Rc("0x5")].get(Rc("0x0")),n=this[Rc("0x62")][Rc("0x5")][Rc("0x1e")]("Annotations"),o=this._suggestionToController[Rc("0x1e")](t),s=o[Rc("0x37")],r=n[Rc("0x13")](s);e[Rc("0x50")](s),r&&n[Rc("0x43")](r),this._suggestionToController[Rc("0x45")](t),this[Rc("0x3e")][Rc("0x45")](s),o[Rc("0x1d")]()}[Rc("0x8")](t){if(!t[Rc("0x29")]||!this[Rc("0x69")][Rc("0x46")](t))return;const e=this[Rc("0x62")][Rc("0x5")].get("TrackChangesEditing"),n=this[Rc("0x69")].get(t),o=t[Rc("0x4d")]();n.view[Rc("0x1")]=e[Rc("0x32")][Rc("0x49")](o)}[Rc("0x1d")](){for(const t of this[Rc("0x69")][Rc("0x20")]())this[Rc("0x27")](t);for(const t of this[Rc("0x3f")][Rc("0x36")]())t[Rc("0x5b")][Rc("0x1d")]();super.destroy()}}var Sc,Lc,Nc=["getSuggestions","adapter","requires","plugins","TrackChanges","getSuggestion","get","Comments","editor","addSuggestionData"];Sc=Nc,Lc=345,function(t){for(;--t;)Sc.push(Sc.shift())}(++Lc);var wc=function(t,e){return Nc[t-=0]};class Mc extends t.Plugin{static get[wc("0x7")](){return[$a,Ic,wc("0x2")]}static get pluginName(){return wc("0x9")}set adapter(t){this.editor[wc("0x8")].get($a)[wc("0x6")]=t}get[wc("0x6")](){return this[wc("0x3")][wc("0x8")].get($a)[wc("0x6")]}addSuggestion(t){return this[wc("0x3")][wc("0x8")][wc("0x1")]($a)[wc("0x4")](t)}[wc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[wc("0x3")][wc("0x8")][wc("0x1")]($a).getSuggestions({skipNotAttached:t,toJSON:e})}[wc("0x0")](t){return this[wc("0x3")][wc("0x8")][wc("0x1")]($a).getSuggestion(t)}}const Oc=["track-changes-data-invalid-editor-creator","model","getRootNames","getRootsAttributes","reduce","execute","users","config","function","trackChangesData.editorCreator","trackChangesData","_adapter","plugins","rootsAttributes","useAnonymousUser","acceptAllSuggestions","TrackChangesDataGetter","TrackChangesData","pluginName","editor","create","document","getUser","init","destroy","appendChild","createElement","map","Pagination","data","getDataWithDiscardedSuggestions","result","TrackChangesEditing","discardAllSuggestions","createDocumentFragment","addUser","end","Users","push","get","getSuggestions","CommentsRepository"];var Fc,Dc;Fc=Oc,Dc=480,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Pc=function(t,e){return Oc[t-=0]},Bc=[Pc("0xa")];class jc extends t.Plugin{static get requires(){return[$a]}static get[Pc("0x0")](){return Pc("0x29")}[Pc("0x5")](){const t=this[Pc("0x1")];if(t[Pc("0x1f")].define(Pc("0x21"),(e=>{const n=t.model[Pc("0x3")].getRootNames()[Pc("0x1c")](((t,e)=>(t[e]="",t)),{});return t.constructor[Pc("0x2")](n,e)})),Pc("0x20")!=typeof t.config[Pc("0x15")](Pc("0x22")).editorCreator)throw new e.CKEditorError(Pc("0x18"))}getDataWithAcceptedSuggestions(t){return Hc(this[Pc("0x1")],!0,t)}[Pc("0xc")](t){return Hc(this[Pc("0x1")],!1,t)}}class Uc extends t.Plugin{static get[Pc("0x0")](){return Pc("0x28")}constructor(t){super(t),this[Pc("0xd")]=Pc("0x12")}[Pc("0x5")](){this.editor[Pc("0x24")].get(Pc("0x17"))._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[Pc("0x1")][Pc("0x24")][Pc("0x15")](Pc("0xe"))[Pc("0x23")]=null}}function Gc(t){return void 0!==t[Pc("0x1b")]}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o[Pc("0x24")][Pc("0x14")]($a,Uc),o[Pc("0x25")]=Gc(t)?t[Pc("0x1b")]():void 0;const s=document[Pc("0x10")](),i=t.config.get("trackChangesData").editorCreator,x=await i(o,(()=>function(t){const e=document[Pc("0x8")]("div");return t[Pc("0x7")](e),e}(s)));!function(t,e){const n=t[Pc("0x19")][Pc("0x3")][Pc("0x1a")]()[Pc("0x1c")](((e,n)=>(e[n]=t.data[Pc("0x15")]({rootName:n}),e)),{}),o=t[Pc("0x24")][Pc("0x15")](Pc("0x13"))[Pc("0x1e")][Pc("0x9")]((t=>({id:t.id,name:t.name}))),s=t[Pc("0x24")][Pc("0x15")]("TrackChangesEditing")[Pc("0x16")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins.get("Users"),i=e[Pc("0x24")][Pc("0x15")](Pc("0xe"));for(const t of o)r[Pc("0x4")](t.id)||r[Pc("0x11")](t);r.me||r[Pc("0x26")]();for(const t of s)i.addSuggestionData(t);e.data.set(n)}(t,x),x[Pc("0x1d")](Pc(e?"0x27":"0xf"));const a=Gc(x)?x.getFullData(n):x[Pc("0xb")][Pc("0x15")](n);return await x[Pc("0x6")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();