@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231026.0 → 0.0.0-nightly-20231028.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=["_disableUnsupportedCommands","affectsData","value","TrackChangesCommand","forceDisabled","_enabledCommands","refresh","execute","editor","clearForceDisabled","commands","_enableCommands","isEnabled","has"];var c,l;c=a,l=280,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("0x2")]=!1,this[d("0x6")](),this._isEnabledBasedOnSelection=!1}[d("0x6")](){this[d("0xc")]=!0}[d("0x7")](){this[d("0x2")]=!this[d("0x2")],this[d("0x2")]?this[d("0x0")]():this[d("0xb")]()}[d("0x0")](){for(const t of this[d("0x8")][d("0xa")][d("0xa")]())t.affectsData&&!this[d("0x5")].has(t)&&t[d("0x4")](d("0x3"))}[d("0xb")](){for(const t of this[d("0x8")][d("0xa")][d("0xa")]())t[d("0x1")]&&!this[d("0x5")][d("0xd")](t)&&t[d("0x9")](d("0x3"))}}const g=["isEnabled","plugins","TrackChangesEditing","_suggestions","acceptSuggestion","get","canEditAt","refresh","getRanges","track-changes-accept-suggestion-not-found","model","_isEnabledBasedOnSelection"];var m,f;m=g,f=392,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("0xb")](),this[h("0x3")]=!1}refresh(){this[h("0x4")]=!0}execute(t){const n=this[h("0x7")].get(t);if(!n)throw new e.CKEditorError(h("0x1"),this);const o=n[h("0x0")]();this.editor[h("0x2")][h("0xa")](o)&&this.editor[h("0x5")][h("0x9")](h("0x6"))[h("0x8")](n)}}const b=["_isEnabledBasedOnSelection","model","editor","TrackChangesEditing","get","canEditAt","discardSuggestion","_suggestions","plugins","getRanges","refresh"];var E,_;E=b,_=372,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.refresh(),this[T("0x2")]=!1}[T("0x1")](){this.isEnabled=!0}execute(t){const n=this[T("0x9")].get(t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x0")]();this[T("0x4")][T("0x3")][T("0x7")](o)&&this[T("0x4")][T("0xa")][T("0x6")](T("0x5"))[T("0x8")](n)}}const y=["type","from","createPositionAt","start","map","change","end","value","length","color","sort","isTouching","join","deletion","schema","content","getRanges","isMultiRange","isObject","add"," [color ","isIntersecting","isInContent","createPositionAfter","isCollapsed","replace","createRange","push","execute","createPositionBefore"];var k,A;k=y,A=274,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x6")](((t,e)=>v("0x9")==t.type&&v("0x9")!=e[v("0x1a")]?-1:"deletion"!=t.type&&v("0x9")==e[v("0x1a")]?1:0))}function S(t,e){let n,o=0;const s=[],i=e[v("0xa")];for(;o<t.length;){const r=t[o],x=t[o+1];n||(n=e[v("0x19")](r)),I(e,r,x)||(s[v("0x17")](e[v("0x16")](n,i[v("0xe")](r)?e[v("0x13")](r):e[v("0x1c")](r,v("0x2")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x13")](e),s=t[v("0x19")](n);return o[v("0x7")](s)}function L(t,e,n){for(;n[v("0x4")];){const o=n.splice(0,100);t[v("0x1")]((()=>{for(const t of o)t[v("0x12")]&&e[v("0x18")](t.id)}))}}const N=["values","editor","isInContent","refresh","from","_isEnabledBasedOnSelection","isEnabled","model","_command","canEditAt","some","_suggestions"];var w,M;w=N,M=462,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x2")]=e,this._suggestions=n,this[O("0x9")](),this[O("0xb")]=!1}[O("0x9")](){const t=Array[O("0xa")](this[O("0x5")][O("0x6")]())[O("0x4")]((t=>t[O("0x8")]));this[O("0x0")]=this[O("0x2")][O("0x0")]&&t}execute(){const t=R(Array[O("0xa")](this[O("0x5")][O("0x6")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x7")][O("0x1")][O("0x3")](t))return}L(this[O("0x7")][O("0x1")],this[O("0x2")],t)}}const P=["editor","_suggestions","getRanges","from","document","isEnabled","canEditAt","model","_isEnabledBasedOnSelection","refresh","size","_selectedSuggestions","selection","_command","values"];var D,B;D=P,B=200,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("0x8")]=e,this._suggestions=n,this[j("0x6")]=new Set,this[j("0x4")](),this[j("0x3")]=!1}refresh(){const t=this[j("0xa")][j("0x2")][j("0xe")][j("0x7")],e=Array[j("0xd")](this[j("0xb")][j("0x9")]());this[j("0x6")]=function(t,e){const n=Array[v("0x1b")](t[v("0xc")]()),o=new Set;for(const s of e)if(s[v("0x12")])for(const e of n)for(const n of s[v("0xc")]())(e[v("0x11")](n)||t[v("0x14")]&&!s[v("0xd")]&&s.next&&n[v("0x2")][v("0x7")](e[v("0x1d")]))&&o[v("0xf")](s);return o}(t,e),this[j("0x0")]=this._command[j("0x0")]&&!!this._selectedSuggestions[j("0x5")]}execute(){const t=R(Array[j("0xd")](this[j("0x6")]));for(const e of t){const t=e[j("0xc")]();if(!this[j("0xa")][j("0x2")][j("0x1")](t))return}L(this[j("0xa")][j("0x2")],this[j("0x8")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const V=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Q=$;const J=function(){this.__data__=new Q,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var 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 St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const 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||Q),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const 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 Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const 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 We=Object.prototype.hasOwnProperty;const ze=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):ze(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,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,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 Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const 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 Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Jn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,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=Sn(e),g=u==Jn||"[object GeneratorFunction]"==u;if(be(e))return Je(e,a);if(u==Zn||u==Qn||g&&!i){if(x=c||g?{}:Wn(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||Qt),n}ro.Cache=Qt;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 Qt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,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 So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const 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=So;case"[object Set]":var a=1&o;if(x||(x=Io),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:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;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 Wo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=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:Wo(t,zo(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=["creator","decorate","getRanges","_model","getRange","suggestion:","getFirstRange","_onAccept","start","clear","_onAttributesChange","type","removeAttribute","isIntersectingWithRange","substr","setAttribute","next","_saved","addMarkerName","filter","head","_markerNames","isIntersecting","get","set","data","onDiscard","onAttributesChange","getItems","change","removeMarker","getFirstMarker","_isDataLoaded","_onDiscard","addMarker","previous","split","getContainedElement","markers","push","length","author","getMarkers","subType","@external","getMarkerNames","commentThread","addRange","nodeBefore","from","reduce","toJSON","attributes","nodeAfter","authoredAt","isExternal","discard","delete","map","getAllAdjacentSuggestions","removeMarkers","isMultiRange"];var $o,Qo;$o=Xo,Qo=247,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Jo("0x21")]=!1,this.id=e.id,this[Jo("0xc")]=e.type,this[Jo("0x2c")]=e.subType||null,this[Jo("0x2a")]=e[Jo("0x2a")],this[Jo("0x1")]=e[Jo("0x1")]||e[Jo("0x2a")],this[Jo("0x38")]=Boolean(e[Jo("0x35")]&&e[Jo("0x35")][Jo("0x2d")]),this[Jo("0x1a")]=null,this._model=t,this[Jo("0x8")]=e.onAccept,this[Jo("0x22")]=e[Jo("0x1b")],this._onAttributesChange=e[Jo("0x1c")],this[Jo("0x16")]=new Set,this.createdAt=null,this[Jo("0x19")](Jo("0x37"),null),this[Jo("0x19")](Jo("0x35"),e[Jo("0x35")]||{}),this[Jo("0x19")](Jo("0x24"),null),this[Jo("0x19")](Jo("0x11"),null),this.set("commentThread",null),this[Jo("0x19")](Jo("0x12"),!1),this[Jo("0x2")]("accept"),this[Jo("0x2")](Jo("0x39"))}get[Jo("0x15")](){let t=this;for(;t[Jo("0x24")];)t=t[Jo("0x24")];return t}get hasComments(){return!!this[Jo("0x2f")]&&this[Jo("0x2f")][Jo("0x29")]>0}get[Jo("0x0")](){return 0!=this._markerNames.size&&6==Array[Jo("0x32")](this._markerNames)[0][Jo("0x25")](":").length}get isInContent(){return null!==this[Jo("0x20")]()}[Jo("0x13")](t){this[Jo("0x16")].add(t)}[Jo("0x2e")](){return Array[Jo("0x32")](this._markerNames)}[Jo("0x2b")](){return this[Jo("0x2e")]()[Jo("0x3b")]((t=>this[Jo("0x4")][Jo("0x27")][Jo("0x18")](t)))[Jo("0x14")]((t=>t))}[Jo("0x20")](){return this[Jo("0x2b")]()[0]||null}[Jo("0x3d")](){this[Jo("0x4")][Jo("0x1e")]((t=>{for(const e of this[Jo("0x2b")]())t[Jo("0x1f")](e)})),this[Jo("0x16")][Jo("0xa")]()}[Jo("0x1f")](t){this[Jo("0x4")][Jo("0x1e")]((e=>{e[Jo("0x1f")](t)})),this[Jo("0x16")][Jo("0x3a")](t)}[Jo("0x30")](t){const e=Jo("0x6")+this.type+":"+this[Jo("0x2c")]+":"+this.id+":"+this[Jo("0x1")].id+":"+Zo.getMultiRangeId();this[Jo("0x13")](e),this[Jo("0x4")].change((n=>{n[Jo("0x23")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Jo("0xe")](t){for(const e of this[Jo("0x3")]())if(e[Jo("0x17")](t))return!0;return!1}[Jo("0x3")](){return this[Jo("0x2b")]().map((t=>t[Jo("0x5")]()))}[Jo("0x1d")](){return this[Jo("0x3")]()[Jo("0x33")](((t,e)=>[...t,...e[Jo("0x1d")]()]),[])}[Jo("0x7")](){var t;return(null===(t=this[Jo("0x20")]())||void 0===t?void 0:t[Jo("0x5")]())||null}[Jo("0x26")](){const t=this.getRanges();if(1!=t[Jo("0x29")])return null;const e=t[0],n=e[Jo("0x9")][Jo("0x36")],o=e.end[Jo("0x31")];return n instanceof r.Element?n!=o?null:n:null}accept(){this[Jo("0x8")](this[Jo("0x3")](),this[Jo("0x1a")],this.attributes),this[Jo("0x3d")]()}[Jo("0x39")](){this._onDiscard(this.getRanges(),this[Jo("0x1a")],this.attributes),this[Jo("0x3d")]()}[Jo("0x3c")](){const t=[];let e=this[Jo("0x15")];for(;e;)t[Jo("0x28")](e),e=e[Jo("0x11")];return t}[Jo("0x10")](t,e){const n=eo(this[Jo("0x35")]);_o(n,t,e),Go(n,this[Jo("0x35")])||(this[Jo("0x35")]=n,this._onAttributesChange(n))}[Jo("0xd")](t){const e=eo(this[Jo("0x35")]);qo(e,t),Go(e,this[Jo("0x35")])||(this[Jo("0x35")]=e,this[Jo("0xb")](this[Jo("0x35")]))}[Jo("0x34")](){return{id:this.id,type:this[Jo("0x2c")]?this.type+":"+this[Jo("0x2c")]:this.type,authorId:this.creator.id,createdAt:this.createdAt,hasComments:this.hasComments,data:this[Jo("0x1a")],attributes:this[Jo("0x35")]}}static getMultiRangeId(){return(0,e.uid)()[Jo("0xf")](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=["Container","add","elementStart","addContainer","ELEMENT_SPACE","matchingCallback","push","*Insert:* %0","addObject","$text","checkChild","pop","get","registerElementLabel","insertion","EmptyContainer","match","label","_resolveDescriptionItems","item","quantity","indexOf","remove","length","deletion","isInContent","text","previousSibling","_locale","*Split:* %0","set","registerDescriptionCallback","*Merge:* %0","element","isEmpty","type","addEmptyContainer","elementEnd","softBreak","nextSibling","Object","skip","data","_customCallbacks","function","getItemLabel","end","getDescriptions","removeObject","getFirstRange","getWalker","_itemLabels","isEqual","normal","name","isObject","*Remove:* %0","_schema","replace"];var es,ns;es=ts,ns=317,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("0x1d")]=new Map,this._itemLabelsCallbacks=[],this[os("0x23")]=t,this[os("0x6")]=e}[os("0x19")](t){const e=[];for(let n=0;n<t[os("0x1")];n++){const o=t[n];if(!o[os("0x3")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){"type"in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x18")][os("0x1e")](s[os("0x1b")]().start)){const t=e[e[os("0x1")]-1],n="insertion"==o.type?"add":os("0x0");t&&os("0x4")==t[os("0xd")]&&(t[n]+="\n")}}}return this[os("0x37")](e)}[os("0x9")](t){this[os("0x15")].push(t)}[os("0x32")](t,n,o=e.priorities[os("0x1f")]){os("0x16")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0x1d")][os("0x8")](t,n)}[os("0x17")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x2a")](t)){n=e[os("0x36")];break}return n||(n=this._itemLabels[os("0x31")](t[os("0x20")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x20")]}_addDescriptionItems(t,e){const n=e[os("0x1b")]()[os("0x1c")](),o="insertion"==e[os("0xd")]?"add":os("0x0");for(const e of n){const s=e[os("0x38")],i=t[t[os("0x1")]-1];if(s.is("$textProxy"))i&&i[os("0xd")][os("0x3a")]("Container")>-1&&t[os("0x30")](),i&&os("0x4")==i[os("0xd")]?i[o]+=s[os("0x14")]:t[os("0x2b")]({type:os("0x4"),add:os("0x26")==o?s.data:"",remove:os("0x0")==o?s[os("0x14")]:""});else if(this[os("0x23")][os("0x21")](s)){const r=s;if(i&&i[os("0xd")][os("0x3a")]("Container")>-1&&t.pop(),os("0xf")==e[os("0xd")])continue;i&&i[os("0xd")]==o+os("0x12")&&i[os("0xb")][os("0x20")]==r[os("0x20")]?i[os("0x39")]++:t[os("0x2b")]({type:o+os("0x12"),element:r,quantity:1}),n[os("0x13")]((t=>!("elementEnd"==t[os("0xd")]&&t[os("0x38")]==s)))}else if(this[os("0x23")][os("0x2f")](s,os("0x2e"))||s.is(os("0xb"),os("0x10"))){const n=s;if(os("0x26")==o&&os("0x27")==e[os("0xd")]||os("0x0")==o&&"elementEnd"==e.type)continue;if(i&&-1==i[os("0xd")][os("0x3a")](os("0x25"))){os("0x4")==i[os("0xd")]&&(i[o]+="\n");continue}let r;if(r=os("0x26")==o?n[os("0x11")]&&!this[os("0x23")][os("0x21")](n.nextSibling)?n[os("0x11")]:null:n[os("0x5")]&&!this[os("0x23")].isObject(n.previousSibling)?n.previousSibling:null,n[os("0xc")]||r&&r[os("0xc")]){const e=r&&r.isEmpty?r:n;i&&i[os("0xd")]==o+os("0x34")&&i[os("0xb")][os("0x20")]==e[os("0x20")]?i[os("0x39")]++:t[os("0x2b")]({type:o+os("0x34"),element:e,quantity:1})}else t.push({type:o+os("0x25"),element:n})}}}[os("0x37")](t){const e=this._locale,n=[];for(const o of t){switch(o.type){case os("0x4"):if(o[os("0x26")]=o[os("0x26")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[os("0x24")](/\u000A/g,""),o[os("0x0")]=o.remove[os("0x24")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x24")](/\u000A/g,""),""!=o[os("0x26")]&&""!=o[os("0x0")]){n[os("0x2b")]({type:os("0x24"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x0")]+'"','"'+o[os("0x26")]+'"'])});continue}if(null!=o[os("0x26")][os("0x35")](/^ +$/)){n.push({type:os("0x33"),content:Yo(e,os("0x2c"),Yo(e,os("0x29"),o[os("0x26")][os("0x1")]))});continue}if(null!=o[os("0x0")][os("0x35")](/^ +$/)){n.push({type:os("0x2"),content:Yo(e,os("0x22"),Yo(e,os("0x29"),o[os("0x0")][os("0x1")]))});continue}if(""!=o[os("0x26")]){n[os("0x2b")]({type:os("0x33"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x26")]+'"')});continue}n[os("0x2b")]({type:os("0x2"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x0")]+'"')});continue;case os("0xe"):case os("0x2d"):n[os("0x2b")]({type:os("0x33"),content:Yo(e,"*Insert:* %0",this[os("0x17")](o[os("0xb")],o.quantity))});continue;case"removeEmptyContainer":case os("0x1a"):n[os("0x2b")]({type:os("0x2"),content:Yo(e,os("0x22"),this.getItemLabel(o[os("0xb")],o[os("0x39")]))});continue;case os("0x28"):n.push({type:os("0x33"),content:Yo(e,os("0x7"),this[os("0x17")](o.element,o[os("0x39")]))});continue;case"removeContainer":n[os("0x2b")]({type:os("0x2"),content:Yo(e,os("0xa"),this[os("0x17")](o[os("0xb")],o[os("0x39")]))});continue}n[os("0x2b")](o)}return n}}const is=["showAIAssistant","enableCommand","TrackChangesEditing","afterInit","get","editor","plugins","commands"];var rs,xs;rs=is,xs=201,function(t){for(;--t;)rs.push(rs.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x2")](){const t=this[as("0x4")],e=t[as("0x5")][as("0x3")](as("0x1"));t[as("0x6")][as("0x3")](as("0x7"))&&e[as("0x0")](as("0x7"))}}const ls=["schema","commandParams","plugins","FORMAT_JUSTIFY_TEXT","locale","has","checkAttribute","format","contentLanguageDirection","model","document","FORMAT_ALIGN_TO_CENTER","get","right","afterInit","TrackChangesEditing","markBlockFormat","*Format:* %0","enableCommand","value","left","_descriptionFactory","commandName","alignment","registerDescriptionCallback","editor","getSelectedBlocks","FORMAT_ALIGN_TO_RIGHT","change","justify","from","selection"];var ds,us;ds=ls,us=289,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0xd")](){const t=this[gs("0x18")],e=t[gs("0x3")];if(!t[gs("0x1")][gs("0x4")]("AlignmentEditing"))return;const n=t.plugins[gs("0xb")](gs("0xe"));n[gs("0x11")](gs("0x16"),((e,o={})=>{let s=o[gs("0x12")];o.value||(s="ltr"===t[gs("0x3")][gs("0x7")]?gs("0x13"):gs("0xc"));const i=Array[gs("0x1d")](this[gs("0x18")][gs("0x8")][gs("0x9")][gs("0x1e")][gs("0x19")]()).filter((t=>function(t,e,n){const o=t.getAttribute(gs("0x16"))||null;return e[gs("0x5")](t,gs("0x16"))&&n!=o}(t,this[gs("0x18")][gs("0x8")][gs("0x1f")],s)));t[gs("0x8")][gs("0x1b")]((()=>{for(const t of i)n[gs("0xf")](t,{commandName:gs("0x16"),commandParams:[{value:s}]})}))})),n[gs("0x14")][gs("0x17")]((t=>{const{data:n}=t;if(n&&gs("0x16")==n[gs("0x15")]){const t=n[gs("0x0")][0][gs("0x12")];return{type:gs("0x6"),content:Yo(e,gs("0x10"),function(t){switch(t){case"left":return Yo(e,"FORMAT_ALIGN_TO_LEFT");case gs("0xc"):return Yo(e,gs("0x1a"));case"center":return Yo(e,gs("0xa"));case gs("0x1c"):return Yo(e,gs("0x2"))}}(t))}}}))}}const fs=["element","addClass","name","createRangeOn","markerRange","TrackChangesEditing","getAttribute","span","elementEnd","getCustomProperty","start","get","mapper","toViewElement","activeMarkers","plugins","markerName","item","isLimit","listIndent","test","createUIElement","insert","ck-suggestion-marker--active","bindElementToMarker","getItems","previousPosition","addHighlight","isContent","ck-suggestion-marker-","isAtEnd","nextSibling","writer","push","schema","listItem"];var hs,ps;hs=fs,ps=278,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("0x23")]())s.hasAttribute(t)&&o[bs("0x7")](n[bs("0xd")](s));return o}function _s(t){const e=[];if(t.is(bs("0xa"),bs("0x9"))){let n=t.nextSibling;for(;n&&n.is("element",bs("0x9"))&&n[bs("0x10")](bs("0x1d"))>0;)e[bs("0x7")](n),n=n[bs("0x5")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x19")][bs("0x15")](bs("0xf"));return(s,i,r)=>{if(!r.consumable[bs("0x1e")](i[bs("0xe")],s[bs("0xc")]))return;const x=i[bs("0xe")].getWalker(),a=i[bs("0xe")][bs("0x14")],c=t.model[bs("0x8")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x1b")];u=u||c[bs("0x2")](e);const n=r.mapper[bs("0x17")](e);if(n&&n[bs("0x13")](bs("0x1")))return;bs("0x12")==t.type&&c.isBlock(e)&&!c[bs("0x1c")](e)&&(e[bs("0x5")]||a[bs("0x4")]?l&&l.parent==e||(l=e,m(t[bs("0x0")]),g=!0):d=d||t.previousPosition)}function m(t){const s=r.writer[bs("0x1f")](bs("0x11"),{class:bs("0x3")+e}),x=r.mapper.toViewPosition(t);n&&o[bs("0x18")].includes(i[bs("0x1a")])&&r[bs("0x6")][bs("0xb")](bs("0x21"),s),r[bs("0x6")][bs("0x20")](x,s),r[bs("0x16")][bs("0x22")](s,i[bs("0x1a")])}u||g||!d||m(d)}}const Cs=["CodeEditing","isCollapsed","UnderlineEditing","format","BoldEditing","slice","FORMAT_BOLD","FORMAT_STRIKETHROUGH","forceValue","commands","StrikethroughEditing","SuperscriptEditing","value","getRanges","editor","underline","FORMAT_CODE","ItalicEditing","enableCommand","selection","bold","model","FORMAT_UNDERLINE","get","TrackChangesEditing","*Remove format:* %0","from","*Format:* %0","markInlineFormat","locale","FORMAT_SUBSCRIPT","plugins","commandParams"];var ys,ks;ys=Cs,ks=346,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x15"),As("0x1"),As("0x13"),As("0x11"),As("0x1b"),"SubscriptEditing",As("0x1c")];class Rs extends t.Plugin{afterInit(){const t=this[As("0x1f")],e=t[As("0x5")],n=t[As("0xf")][As("0x7")](As("0x8")),o=t[As("0xd")];for(const o of vs){if(!t[As("0xf")].has(o))continue;const s=o[As("0x16")](0,-7).toLowerCase(),i=t[As("0x1a")].get(s);n[As("0x2")](s,((t,o={})=>{const r=e.document[As("0x3")];if(r[As("0x12")])return void t(o);const x=void 0!==o[As("0x19")]?o[As("0x19")]:!i[As("0x1d")];e.change((()=>{const t=Array[As("0xa")](r[As("0x1e")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0xc")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory.registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[As("0x10")][0][As("0x19")]?{type:"format",content:Yo(o,As("0xb"),e)}:{type:As("0x14"),content:Yo(o,As("0x9"),e)}}))}s(As("0x4"),Yo(o,As("0x17"))),s("italic",Yo(o,"FORMAT_ITALIC")),s(As("0x20"),Yo(o,As("0x6"))),s("code",Yo(o,As("0x0"))),s("strikethrough",Yo(o,As("0x18"))),s("subscript",Yo(o,As("0xe"))),s("superscript",Yo(o,"FORMAT_SUPERSCRIPT"))}}const Ss=["_descriptionFactory","registerDescriptionCallback","name","document","plugins","blockQuote","getSelectedBlocks","change","ELEMENT_BLOCK_QUOTE","*Remove format:* %0","BlockQuoteEditing","locale","commandName","enableCommand","get","checkChild","markBlockFormat","*Format:* %0","model","parent","format","afterInit","commandParams","value","filter","editor","has","schema","forceValue","from"];var Is,Ls;Is=Ss,Ls=136,function(t){for(;--t;)Is.push(Is.shift())}(++Ls);const Ns=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ns("0x5")](){const t=this[Ns("0x9")],e=t[Ns("0x19")];if(!t[Ns("0x12")][Ns("0xa")](Ns("0x18")))return;const n=t[Ns("0x12")][Ns("0x1c")]("TrackChangesEditing"),o=this.editor.commands[Ns("0x1c")](Ns("0x13"));n[Ns("0x1b")]("blockQuote",((e,s={})=>{const i=this[Ns("0x9")][Ns("0x2")][Ns("0x11")].selection,r=s&&void 0!==s[Ns("0xc")]?s[Ns("0xc")]:!o[Ns("0x7")];let x=[];if(r){const e=Array[Ns("0xd")](i[Ns("0x14")]())[Ns("0x8")]((t=>Ms(t)||function(t,e){const n=e.checkChild(t[Ns("0x3")],Ns("0x13")),o=e[Ns("0x1d")](["$root","blockQuote"],t);return n&&o}(t,this[Ns("0x9")][Ns("0x2")][Ns("0xb")])));x=S(e,t[Ns("0x2")])}else{const e=Array[Ns("0xd")](i[Ns("0x14")]()).filter((t=>Ms(t)));x=S(e,t[Ns("0x2")])}t[Ns("0x2")][Ns("0x15")]((()=>{for(const t of x)n[Ns("0x0")](t,{commandName:Ns("0x13"),commandParams:[{forceValue:r}]})}))})),n[Ns("0xe")][Ns("0xf")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[Ns("0x1a")]){const t=Yo(e,Ns("0x16"));return n[Ns("0x6")][0][Ns("0xc")]?{type:Ns("0x4"),content:Yo(e,Ns("0x1"),t)}:{type:Ns("0x4"),content:Yo(e,Ns("0x17"),t)}}}))}}function Ms(t){return"blockQuote"==t[Ns("0x3")][Ns("0x10")]}const Os=["ckbox","plugins","get","TrackChangesEditing"];var Fs,Ps;Fs=Os,Ps=412,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this.editor;t.commands.get(Ds("0x0"))&&t[Ds("0x1")][Ds("0x2")](Ds("0x3")).enableCommand(Ds("0x0"))}}const js=["get","commandName","plugins","TrackChangesEditing","getSelectedBlocks","parent","model","*Remove format:* %0","codeBlock","markBlockFormat","change","checkChild","from","indentCodeBlock","formatBlock","_descriptionFactory","find","format","languages","forceValue","blockName","editor","afterInit","label","locale","commands","outdentCodeBlock","registerElementLabel","rootElement","document","config","ELEMENT_CODE_BLOCK","CodeBlock","language","registerDescriptionCallback","commandParams","enableCommand"];var Us,Gs;Us=js,Gs=130,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class Ws extends t.Plugin{[Hs("0x3")](){const t=this[Hs("0x2")];if(!t[Hs("0x14")].has(Hs("0xd")))return;const e=t[Hs("0x14")][Hs("0x12")](Hs("0x15")),n=t[Hs("0x5")],o=t[Hs("0xb")].get(Hs("0x1a"))[Hs("0x24")],s=t[Hs("0x6")].get(Hs("0x1a"));e[Hs("0x11")](Hs("0x1f")),e.enableCommand(Hs("0x7")),e[Hs("0x11")](Hs("0x1a"),((n,i={})=>{const r=t[Hs("0x18")],x=t.model[Hs("0xa")].selection,a=i&&void 0!==i.forceValue?i[Hs("0x0")]:!s.value;let c;i.language||(i[Hs("0xe")]=o[0][Hs("0xe")]),c=a?Array[Hs("0x1e")](x[Hs("0x16")]()).filter((t=>{return zs(t)||(e=t,n=r.schema,!e.is(Hs("0x9"))&&!n.isLimit(e)&&n[Hs("0x1d")](e[Hs("0x17")],Hs("0x1a")));var e,n})):Array[Hs("0x1e")](x[Hs("0x16")]()).filter((t=>zs(t)));const l=S(c,r);r[Hs("0x1c")]((()=>{for(const t of l)e[Hs("0x1b")](t,{commandName:Hs("0x1a"),commandParams:[{...i,forceValue:a}],formatGroupId:Hs("0x1")})}))})),e[Hs("0x21")][Hs("0x8")](Hs("0x1a"),(t=>Yo(n,Hs("0xc"),t))),e[Hs("0x21")][Hs("0xf")]((t=>{const e=n.t,{type:s,data:i}=t;if(Hs("0x20")==s&&i&&Hs("0x1a")==i[Hs("0x13")]){const t=i.commandParams[0].language,s=e(o[Hs("0x22")]((e=>e[Hs("0xe")]===t))[Hs("0x4")]);return i[Hs("0x10")][0][Hs("0x0")]?{type:"format",content:Yo(n,"*Format:* %0",Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Hs("0x23"),content:Yo(n,Hs("0x19"),Yo(n,Hs("0xc"),1))}}}))}}function zs(t){return Hs("0x1a")==t.name}const Vs=["editor","enableCommand","has","plugins","addCommentThread","get"];var Ks,qs;Ks=Vs,qs=379,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{afterInit(){const t=this[Xs("0x5")];t[Xs("0x2")][Xs("0x1")]("CommentsEditing")&&t.plugins[Xs("0x4")]("TrackChangesEditing")[Xs("0x0")](Xs("0x3"))}}var Qs=n(181);const Js=["editor","setSelection","init","bind","deleteForward","commands","getFirstRange","enqueueChange","high","fromRange","buffer","delete","start","lock","showSuggestionHighlights","editing","TrackChangesEditing","requires","removeMarker:suggestion:deletion","isCollapsed","modifySelection","model","root","markerName","markerNameToElements","downcastDispatcher","unbindElementFromMarkerName","get","unlock","remove","writer","createRange","selection","mapper","detach","document","forward","createSelection","uiElement","unit","merge","enableCommand"];var Zs,Ys;Zs=Js,Ys=437,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const ti=function(t,e){return Js[t-=0]};class ei extends t.Plugin{static get[ti("0x0")](){return[Qs.Delete]}[ti("0x1b")](){const t=this[ti("0x19")],e=t.plugins[ti("0xa")](ti("0x29"));e[ti("0x18")](ti("0x24"));const n=t[ti("0x1e")][ti("0xa")](ti("0x1d"));e.enableCommand(ti("0x1d"),((e,o={})=>{const s=t[ti("0x4")][ti("0x14")](t[ti("0x4")][ti("0x12")][ti("0xf")]);s[ti("0x2")]&&t[ti("0x4")][ti("0x3")](s,{direction:ti("0x13"),unit:o[ti("0x16")]});const i=s[ti("0x1f")](),x=r.LiveRange[ti("0x22")](i);let a;e(o),a="$graveyard"==x[ti("0x5")].rootName?t[ti("0x4")][ti("0xe")](i[ti("0x25")]):t[ti("0x4")].createRange(x[ti("0x25")],x.end),x[ti("0x11")](),t.model[ti("0x20")](n.buffer.batch,(t=>{n[ti("0x23")][ti("0x26")](),t[ti("0x1a")](t[ti("0xe")](a.end)),n[ti("0x23")][ti("0xb")]()}))})),t[ti("0x28")][ti("0x8")].on("addMarker:suggestion:deletion",Ts(t,ti("0x17")),{priority:"high"}),t.data.downcastDispatcher.on("addMarker:suggestion:deletion",((e,n,o)=>{o.options[ti("0x27")]&&Ts(t,ti("0x17"),{showActiveMarker:!1})[ti("0x1c")](this)(e,n,o)}),{priority:ti("0x21")}),t[ti("0x28")][ti("0x8")].on(ti("0x1"),((t,e,n)=>{const o=n.mapper[ti("0x7")](e.markerName);if(o)for(const t of o)t.is(ti("0x15"))&&(n[ti("0x10")][ti("0x9")](t,e[ti("0x6")]),n[ti("0xd")][ti("0xc")](t))}),{priority:ti("0x21")})}}const ni=["enableCommand","ELEMENT_BULLETED_LIST","documentList","setSelection","registerCustomCallback","config","map","model","DocumentListEditing","findIndex","length","registerElementLabel","change","getFirstRange","bulletedList","commandParams","splitListItemBefore","ELEMENT_NUMBERED_LIST","start","editor","markMultiRangeBlockFormat","execute","containsItem","list.multiBlock","paragraph","_suggestionFactory","ELEMENT_","schema","before","markBlockFormat","listItemId","has","isObject","push","*Format:* insert into %0","expandListBlocksToCompleteList","TrackChangesEditing","_LIST","registerDescriptionCallback","nextSibling","afterInit","getRanges","splitListItemAfter","format","multipleBlocks","nodeAfter","forceValue","deletion","*Outdent:* %0","*Indent:* %0","after","end","_descriptionFactory","add","getAttribute","document","listType","refresh","commands","ELEMENT_LIST_ITEM","formatBlock","hasAttribute","selection","slice","indentList","value","*Format:* remove from %0","createPositionAt","get","previousSibling","mergeListItemForward","plugins","commandName","*Merge:* %0","numberedList","createRange","from","*Change to:* %0","getSelectedBlocks","outdentList"];var oi,si;oi=ni,si=308,function(t){for(;--t;)oi.push(oi.shift())}(++si);const ii=function(t,e){return ni[t-=0]};class ri extends t.Plugin{[ii("0x34")](){const t=this[ii("0x1f")];if(!t[ii("0x3")][ii("0x2b")](ii("0x14")))return;const e=t.locale,n=t[ii("0x3")][ii("0x0")](ii("0x30")),o=t.plugins[ii("0x0")]("DocumentListUtils");function s(e){return()=>{const s=t[ii("0x46")][ii("0x0")](e);if(s[ii("0x4d")]&&!t[ii("0x11")].get(ii("0x23")))return void t[ii("0x21")](ii("0x24"),{});let i=Array.from(t.model[ii("0x43")][ii("0x4a")][ii("0xa")]());if(a(e)){i=o[ii("0x2f")](i);const t=[];for(const e of i)o.isFirstBlockOfListItem(e)&&t[ii("0x2d")](e);i=t}t.model[ii("0x18")]((()=>{n[ii("0x20")](i,{commandName:e,commandParams:[{forceValue:!s[ii("0x4d")]}],formatGroupId:ii("0x44")},[],ii("0xe"))}))}}function i(e){return()=>{const o=function(t){let e=Array[ii("0x8")](t);const n=e[ii("0x15")]((t=>!t[ii("0x49")](ii("0x2a"))));return n>-1&&(e=e[ii("0x4b")](0,n)),e}(t[ii("0x13")][ii("0x43")].selection.getSelectedBlocks()),s=o[o[ii("0x16")]-1],i=t[ii("0x13")][ii("0x27")][ii("0x2c")](s)?ii("0x3e"):"end",r=t[ii("0x13")][ii("0x7")](t.model[ii("0x4f")](o[0],"before"),t[ii("0x13")].createPositionAt(s,i));t[ii("0x13")].change((()=>{n[ii("0x29")](r,{commandName:e,commandParams:[],formatGroupId:ii("0x44")},function(t){const e=new Set;for(const n of t){let t=n[ii("0x33")];for(;t&&t[ii("0x42")]("listIndent")>n[ii("0x42")]("listIndent");)e[ii("0x41")](t),t=t[ii("0x33")]}return Array[ii("0x8")](e)}(o))}))}}function x(e){return()=>{const o=t.model[ii("0x43")][ii("0x4a")].getSelectedBlocks().next()[ii("0x4d")],s=t[ii("0x13")].createPositionAt(o,ii("0x28")),i=t[ii("0x13")][ii("0x4f")](o,0),r=t.model[ii("0x7")](s,i);t[ii("0x13")][ii("0x18")]((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:ii("0x44")})}))}}function a(e){const n=t[ii("0x46")][ii("0x0")](ii("0x1a"))[ii("0x4d")],o=t[ii("0x46")][ii("0x0")]("numberedList")[ii("0x4d")];return"numberedList"===e?n:o}n.enableCommand(ii("0x6"),s(ii("0x6"))),n[ii("0xc")](ii("0x1a"),s(ii("0x1a"))),n.enableCommand(ii("0x4c"),i(ii("0x4c"))),n[ii("0xc")](ii("0xb"),i(ii("0xb"))),n[ii("0xc")](ii("0x36"),x(ii("0x36"))),n[ii("0xc")](ii("0x1c"),x(ii("0x1c"))),n[ii("0x40")][ii("0x17")]((function(e){const n=!t[ii("0x13")][ii("0x27")][ii("0x2c")](e),o=e[ii("0x1")],s=e[ii("0x33")],i=e[ii("0x42")](ii("0x2a")),r=!o||o.getAttribute("listItemId")!==i,x=!s||s[ii("0x42")](ii("0x2a"))!==i;return n&&Boolean(i)&&r&&x}),(t=>Yo(e,ii("0x47"),t))),n[ii("0x40")][ii("0x32")]((function(n){const{data:o}=n;if(!o)return;let s,i,r,x;switch(o[ii("0x4")]){case"bulletedList":r=o[ii("0x1b")][0].forceValue,x=a(o[ii("0x4")]),s=ii(r?"0x2e":"0x4e"),!x&&t.config.get("list.multiBlock")||(s=ii("0x9")),i={type:ii("0x37"),content:Yo(e,s,Yo(e,ii("0xd")))};break;case ii("0x6"):r=o[ii("0x1b")][0][ii("0x3a")],x=a(o[ii("0x4")]),s=ii(r?"0x2e":"0x4e"),!x&&t[ii("0x11")][ii("0x0")](ii("0x23"))||(s=ii("0x9")),i={type:ii("0x37"),content:Yo(e,s,Yo(e,ii("0x1d")))};break;case ii("0x4c"):s=ii("0x3d"),i={type:ii("0x37"),content:Yo(e,s,Yo(e,"ELEMENT_LIST_ITEM"))};break;case ii("0xb"):s=function(t){const e=t[ii("0x19")]();let n=e[ii("0x1e")].nodeAfter;for(;n&&e[ii("0x22")](n);){if(n[ii("0x42")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(n)?Yo(e,ii("0x4e"),Yo(e,function(t){const e=t[ii("0x19")]()[ii("0x1e")][ii("0x39")];return ii("0x26")+e.getAttribute(ii("0x44")).toUpperCase()+ii("0x31")}(n))):Yo(e,ii("0x3c"),Yo(e,ii("0x47"))),i={type:ii("0x37"),content:s};break;case"mergeListItemBackward":case ii("0x2"):!1===o[ii("0x38")]&&(s=ii("0x5"),i={type:ii("0x3b"),content:Yo(e,s,Yo(e,"ELEMENT_LIST_ITEM"))})}return i})),n[ii("0x25")][ii("0x10")](ii("0x48"),ii("0xe"),"accept",(function(e,n){const o=[];for(let n of e)n.start[ii("0x39")]===n[ii("0x3f")].parent&&(n=t.model[ii("0x7")](t.model.createPositionAt(n[ii("0x1e")][ii("0x39")],0))),o[ii("0x2d")](n);t[ii("0x13")][ii("0x18")]((e=>{const s=t[ii("0x13")][ii("0x43")][ii("0x4a")],i=Array.from(s[ii("0x35")]())[ii("0x12")]((t=>r.LiveRange.fromRange(t)));e[ii("0xf")](o),t[ii("0x46")][ii("0x0")](n[ii("0x4")])[ii("0x45")](),n[ii("0x1b")][ii("0x2d")]({forceDefaultExecution:!0}),t[ii("0x21")](n[ii("0x4")],...n[ii("0x1b")]),e.setSelection(i);for(const t of i)t.detach()}))}))}}var xi=n(331);const ai=["parent","options","selection","high","split","downcastDispatcher","showSuggestionHighlights","plugins","end","detach","init","fire","hasClass","data","setSelection","nextSibling","requires","model","unbindElementFromMarkerName","ck-suggestion-marker-split","afterExecute","bind","createRange","writer","remove","document","markerName","get","enterBlock","getFirstPosition","editing","mapper","change","editor","addMarker:suggestion:insertion"];var ci,li;ci=ai,li=219,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[di("0x7")](){return[xi.Enter]}[di("0x1")](){const t=this[di("0x18")],e=t[di("0x21")][di("0x12")]("TrackChangesEditing"),n=t.commands.get("enter");e.enableCommand("enter",(()=>{t[di("0x8")][di("0x17")]((o=>{const s=t[di("0x8")][di("0x10")][di("0x1c")],i=s[di("0x14")](),x=r.LiveRange.fromRange(s.getFirstRange());if(n[di("0x13")](o)){const n=t[di("0x8")].createPositionAt(i[di("0x1a")][di("0x6")],0),s=o[di("0xd")](i,n);e.markInsertion(s)}else o[di("0x5")](o[di("0xd")](x[di("0x22")]));x[di("0x0")](),n[di("0x2")](di("0xb"),{writer:o})}))})),t[di("0x15")][di("0x1f")].on(di("0x19"),Ts(t,di("0x1e")),{priority:"high"}),t.editing.downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n.mapper.markerNameToElements(e[di("0x11")]);if(o)for(const t of o)t[di("0x3")](di("0xa"))&&(n[di("0x16")][di("0x9")](t,e[di("0x11")]),n[di("0xe")][di("0xf")](t))}),{priority:di("0x1d")}),t[di("0x4")][di("0x1f")].on(di("0x19"),((e,n,o)=>{o[di("0x1b")][di("0x20")]&&Ts(t,"split",{showActiveMarker:!1})[di("0xc")](this)(e,n,o)}),{priority:di("0x1d")})}}const gi=["replace","find","createPositionAt","findByTextCallback","findNext","FindAndReplaceEditing","createRange","afterInit","TrackChangesEditing","_isInDeletionRange","model","plugins","string","getIntersection","findPrevious","get","editor","enableCommand","start","item","has","getRange","suggestion:deletion","handleFindCommand","filter","getMarkersGroup","replaceAll"];var mi,fi;mi=gi,fi=377,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x8")](){if(!this[hi("0x11")].plugins[hi("0x15")](hi("0x6")))return;const t=this.editor.plugins[hi("0x10")](hi("0x9"));t[hi("0x12")](hi("0x2"),this[hi("0x18")].bind(this)),t.enableCommand(hi("0x5")),t[hi("0x12")](hi("0xf")),t.enableCommand(hi("0x1")),t[hi("0x12")](hi("0x0"))}[hi("0x18")](t,e,n={}){const o=this[hi("0x11")][hi("0xc")][hi("0x10")]("FindAndReplaceUtils");if(void 0!==n)return t((t=>(hi("0xd")==typeof e?o[hi("0x4")](e,n):e)(t)[hi("0x19")]((e=>!1===this[hi("0xa")](e,t[hi("0x14")])))),n)}[hi("0xa")](t,e){const n=this.editor[hi("0xb")][hi("0x7")](this[hi("0x11")].model[hi("0x3")](e,t[hi("0x13")]),this[hi("0x11")][hi("0xb")][hi("0x3")](e,t.end));for(const t of this.editor[hi("0xb")].markers[hi("0x1a")](hi("0x17")))if(null!==n[hi("0xe")](t[hi("0x16")]()))return!0;return!1}}const bi=["change","TrackChangesEditing","get","config","_descriptionFactory","fontFamily","fontBackgroundColor.colors","commandParams","FontSizeEditing","*Reset font size*","markInlineFormat","plugins","FontFamilyEditing","*Set font color:* %0","_enableCommand","*Set font size:* %0","fontSize.options","value","commandName","fontColor","from","enableCommand","selection","fontSize","trim","format","*Reset font color*","toLowerCase","editor","FontBackgroundColorEditing","fontColor.colors","model","fontBackgroundColor","registerDescriptionCallback","FontColorEditing","find","isCollapsed","FontSize","*Set font background color:* %0"];var Ei,_i;Ei=bi,_i=308,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]},Ci=[{pluginName:Ti("0xc"),commandName:"fontSize"},{pluginName:Ti("0x10"),commandName:Ti("0x9")},{pluginName:Ti("0x26"),commandName:Ti("0x17")},{pluginName:Ti("0x21"),commandName:Ti("0x24")}];class yi extends t.Plugin{afterInit(){const t=this.editor.locale;for(const{pluginName:t,commandName:e}of Ci)this[Ti("0x20")][Ti("0xf")].has(t)&&this[Ti("0x12")](e);this.editor[Ti("0xf")].get("TrackChangesEditing")[Ti("0x8")][Ti("0x25")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Ti("0x1b")==o[Ti("0x16")]){const e=o[Ti("0xb")][0][Ti("0x15")];if(e){const o=n(this[Ti("0x20")][Ti("0xf")].get(Ti("0x2")).normalizeSizeOptions(this[Ti("0x20")][Ti("0x7")].get(Ti("0x14"))).find((t=>t[Ti("0x23")]==e)).title)[Ti("0x1f")]();return{type:Ti("0x1d"),content:Yo(t,Ti("0x13"),o)}}return{type:Ti("0x1d"),content:Yo(t,Ti("0xd"))}}if("fontFamily"==o[Ti("0x16")]){const e=o.commandParams[0][Ti("0x15")];return e?{type:Ti("0x1d"),content:Yo(t,"*Set font family:* %0",e)}:{type:"format",content:Yo(t,"*Reset font family*")}}if(Ti("0x17")==o[Ti("0x16")]){const e=o[Ti("0xb")][0][Ti("0x15")];if(e){const o=(0,s.normalizeColorOptions)(this[Ti("0x20")][Ti("0x7")][Ti("0x6")](Ti("0x22")))[Ti("0x0")]((t=>t[Ti("0x23")]==e));let i=e,r="";return o&&(i=o.label,r=n(i)[Ti("0x1f")]()),{type:Ti("0x1d"),content:Yo(t,Ti("0x11"),r)[Ti("0x1c")](),color:{value:e,title:r||i}}}return{type:Ti("0x1d"),content:Yo(t,Ti("0x1e"))}}if("fontBackgroundColor"==o[Ti("0x16")]){const e=o[Ti("0xb")][0][Ti("0x15")];if(e){const o=(0,s.normalizeColorOptions)(this[Ti("0x20")][Ti("0x7")][Ti("0x6")](Ti("0xa")))[Ti("0x0")]((t=>t[Ti("0x23")]==e));let i=e,r="";return o&&(i=o.label,r=n(i).toLowerCase()),{type:Ti("0x1d"),content:Yo(t,Ti("0x3"),r)[Ti("0x1c")](),color:{value:e,title:r||i}}}return{type:Ti("0x1d"),content:Yo(t,"*Reset font background color*")}}}}))}[Ti("0x12")](t){const e=this[Ti("0x20")];e.plugins[Ti("0x6")]("TrackChangesEditing")[Ti("0x19")](t,((n,o={})=>{const s=e.model.document[Ti("0x1a")],i=o.value;s[Ti("0x1")]?n(o):e[Ti("0x23")][Ti("0x4")]((()=>{const n=Array[Ti("0x18")](s.getRanges());for(const o of n){const n=i?[o]:Es(t,o,e.model);for(const o of n)e[Ti("0xf")][Ti("0x6")](Ti("0x5"))[Ti("0xe")](o,{commandName:t,commandParams:[{value:i}]})}}))}))}}const ki=["TrackChangesEditing","title","join","change","from","slice","forward","fontColor.colors","getSelectedBlocks","locale","getLastPosition","pasteFormat","_descriptionFactory","charAt","getRanges","fontSize","copyFormat","enableCommand","plugins","toUpperCase","*Set format to:* %0","afterInit","commands","createSelection","isBlock","FontSize","get","createRange","getFirstPosition","model","schema","boolean","entries","*Remove all formatting*","getAttributeProperties","config","fontBackgroundColor","toLowerCase","registerDescriptionCallback","format","length","label","word","keys","document","isFormatting","find","split","fontColor","normalizeSizeOptions","getAttributes","modifySelection","backward","selection","isCollapsed","getItems","editor"];var Ai,vi;Ai=ki,vi=405,function(t){for(;--t;)Ai.push(Ai.shift())}(++vi);const Ri=function(t,e){return ki[t-=0]};class Si extends t.Plugin{[Ri("0xf")](){const t=this[Ri("0x32")],n=t[Ri("0x17")],o=n[Ri("0x26")][Ri("0x2f")],s=t.plugins[Ri("0x14")](Ri("0x33")),i=t.locale,r=t[Ri("0x10")][Ri("0x14")](Ri("0xa")),x=t[Ri("0x10")].get(Ri("0x5"));r&&x&&(s[Ri("0xb")](Ri("0x5"),((t,i={})=>{const r=i;n[Ri("0x36")]((()=>{const t=Array[Ri("0x37")](o.getRanges()),i=o[Ri("0x30")]?[Ii(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("0x2c")]()){const t=e[Ri("0x1c")](n);t&&t[Ri("0x27")]&&(yield n)}}(t,n));for(const e of t[Ri("0x8")]())for(const t of e[Ri("0x31")]())!n[Ri("0x12")](t)&&o(t)&&(yield t);for(const e of t[Ri("0x2")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Ri("0x18")]))||0!==Object[Ri("0x25")](r)[Ri("0x22")])for(const t of i)s.markInlineFormat(t,{commandName:Ri("0x5"),commandParams:[r]})}))})),s[Ri("0x6")][Ri("0x20")]((e=>{const{data:n}=e;if(n&&Ri("0x5")===n.commandName){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Ri("0x1a")](o))e.push(Li(t,n,s));return e.length?{type:Ri("0x21"),content:Yo(i,Ri("0xe"),e[Ri("0x35")](", "))}:{type:Ri("0x21"),content:Yo(i,Ri("0x1b"))}}})),t[Ri("0xc")].get(Ri("0x33"))[Ri("0xb")](Ri("0xa")))}}function Ii(t,e){const n=t[Ri("0x11")](e);t[Ri("0x2d")](n,{unit:Ri("0x24"),direction:Ri("0x2e")});const o=n[Ri("0x16")]();t[Ri("0x2d")](n,{unit:"word",direction:Ri("0x0")});const s=n[Ri("0x4")]();return t[Ri("0x15")](o,s)}function Li(t,e,n){const o=t[Ri("0x3")].t,i=e[Ri("0x29")](/(?=[A-Z])/)[Ri("0x35")](" "),r=o(i[Ri("0x7")](0)[Ri("0xd")]()+i[Ri("0x38")](1))[Ri("0x1f")]();if(Ri("0x19")==typeof n)return r;if(Ri("0x2a")===e||Ri("0x1e")===e){const e=(0,s.normalizeColorOptions)(t[Ri("0x1d")][Ri("0x14")](Ri("0x1")))[Ri("0x28")]((t=>t.model==n));return r+" ("+(e?o(e[Ri("0x23")])[Ri("0x1f")]():n)+")"}if(Ri("0x9")===e&&isNaN(parseFloat(n))){const e=t[Ri("0xc")][Ri("0x14")](Ri("0x13"))[Ri("0x2b")](t[Ri("0x1d")].get("fontSize.options"))[Ri("0x28")]((t=>t[Ri("0x17")]==n));return r+" ("+(e?o(e[Ri("0x34")])[Ri("0x1f")]():n)+")"}return r+" ("+n+")"}const Ni=["document","getSelectedBlocks","parent","registerElementLabel","format","paragraph","commandParams","match","heading","name","find","HeadingEditing","value","has","get","enableCommand","markBlockFormat","heading.options","filter","config","model","editor","checkChild","plugins","selection","blockName","ELEMENT_HEADING_CUSTOM","_descriptionFactory","formatBlock","title","isObject","locale"];var wi,Mi;wi=Ni,Mi=247,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("0x1e")],e=t[Oi("0x8")],n=t[Oi("0x1c")].get(Oi("0x1a"));if(!t[Oi("0x0")][Oi("0x16")](Oi("0x14")))return;const o=t[Oi("0x0")][Oi("0x17")]("TrackChangesEditing");o[Oi("0x18")](Oi("0x11"),((e,n)=>{const s=n[Oi("0x15")],i=Array.from(this[Oi("0x1e")][Oi("0x1d")][Oi("0x9")][Oi("0x1")][Oi("0xa")]())[Oi("0x1b")]((t=>{return e=t,n=s,(o=this[Oi("0x1e")].model.schema)[Oi("0x1f")](e[Oi("0xb")],n)&&!o[Oi("0x7")](e)&&e[Oi("0x12")]!=n;var e,n,o}));t[Oi("0x1d")].change((()=>{for(const t of i)o[Oi("0x19")](t,{commandName:"heading",commandParams:[n],formatGroupId:Oi("0x2")},_s(t))}))}));for(const t of n)Oi("0xe")!=t[Oi("0x1d")]&&o[Oi("0x4")][Oi("0xc")](t[Oi("0x1d")],(e=>{const n=Pi(t[Oi("0x1d")]);return null!==n?s(e,n):i(e,t[Oi("0x6")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function i(t,n){return Yo(e,Oi("0x3"),[t,n])}o[Oi("0x4")].registerDescriptionCallback((t=>{const{type:o,data:r}=t;if(Oi("0x5")==o&&r&&Oi("0x11")==r.commandName){const t=r[Oi("0xf")][0][Oi("0x15")],o=Pi(t);if(null!==o)return{type:Oi("0xd"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Oi("0x13")]((e=>e[Oi("0x1d")]===t))[Oi("0x6")];return{type:Oi("0xd"),content:Yo(e,"*Change to:* %0",i(1,x))}}}))}}function Pi(t){const e=t[Oi("0x10")](/^heading(\d+)$/);return e?e[1]:null}const Di=["editor","push","item","hasAttribute","title","getAttribute","TrackChangesEditing","highlight","registerDescriptionCallback","getFirstPosition","backward","change","createRange","toLowerCase","find","plugins","formatInline","has","afterInit","model","enableCommand","commandName","HighlightEditing","format","selection","isCollapsed","getRanges","get","commandParams","_descriptionFactory","document","FORMAT_HIGHLIGHT","*Remove highlight*","markInlineFormat","value","color","locale"];var Bi,ji;Bi=Di,ji=314,function(t){for(;--t;)Bi.push(Bi.shift())}(++ji);const Ui=function(t,e){return Di[t-=0]};class Gi extends t.Plugin{[Ui("0x0")](){const t=this[Ui("0x13")];if(!t[Ui("0x22")][Ui("0x24")](Ui("0x4")))return;const e=t[Ui("0x22")][Ui("0x9")](Ui("0x19"));e[Ui("0x2")]("highlight",((n,o={})=>{const s=t[Ui("0x1")][Ui("0xc")][Ui("0x6")],i=s.getAttribute(Ui("0x1a"));let r=o[Ui("0x10")],x=[];if(s[Ui("0x7")]){const e=s[Ui("0x1c")]();if(!s[Ui("0x16")](Ui("0x1a")))return void n(o);{const n=t=>t[Ui("0x15")][Ui("0x18")](Ui("0x1a"))===i,o=e.getLastMatchingPosition(n,{direction:Ui("0x1d")}),s=e.getLastMatchingPosition(n);x=[t[Ui("0x1")][Ui("0x1f")](o,s)],r==i&&(r=null)}}else for(const e of s[Ui("0x8")]())r?x[Ui("0x14")](e):x[Ui("0x14")](...Es(Ui("0x1a"),e,t[Ui("0x1")]));t.model[Ui("0x1e")]((()=>{for(const t of x)e[Ui("0xf")](t,{commandName:Ui("0x1a"),commandParams:[{value:r}]})}))}));const n=t[Ui("0x12")];e[Ui("0xb")][Ui("0x1b")]((e=>{const{type:o,data:s}=e;if(Ui("0x23")==o&&s&&"highlight"==s[Ui("0x3")]){const e=n.t,o=s[Ui("0xa")][0][Ui("0x10")];if(o){const s=t.config[Ui("0x9")]("highlight.options")[Ui("0x21")]((t=>t[Ui("0x1")]==o)),i=e(s[Ui("0x17")])[Ui("0x20")]();return{type:Ui("0x5"),content:Yo(n,"*Set highlight:* %0",i),color:{value:s[Ui("0x11")],title:s.title}}}return{type:Ui("0x5"),content:Yo(n,Ui("0xe"),Yo(n,Ui("0xd")))}}}))}}const Hi=["conversion","horizontalLine","HorizontalLineEditing","locale","enableCommand","addClass","afterInit","get","ELEMENT_HORIZONTAL_LINE","registerElementLabel","plugins","_descriptionFactory","createPositionAt","createEmptyElement","TrackChangesEditing","editor","createContainerElement","dataDowncast","insert"];var Wi,zi;Wi=Hi,zi=149,function(t){for(;--t;)Wi.push(Wi.shift())}(++zi);const Vi=function(t,e){return Hi[t-=0]};class Ki extends t.Plugin{[Vi("0x9")](){const t=this[Vi("0x12")];if(!t[Vi("0xd")].has(Vi("0x5")))return;t[Vi("0xd")][Vi("0xa")]("TrackChangesEditing")[Vi("0x7")](Vi("0x4"));const e=t[Vi("0xd")][Vi("0xa")](Vi("0x11")),n=t[Vi("0x6")];e[Vi("0xe")][Vi("0xc")](Vi("0x4"),(t=>Yo(n,Vi("0xb"),t))),t[Vi("0x3")].for(Vi("0x1")).elementToStructure({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Vi("0x0")]("div"),s=e[Vi("0x10")]("hr");return e[Vi("0x8")]("ck-horizontal-line",o),e[Vi("0x2")](e[Vi("0xf")](o,0),s),o},converterPriority:"high"})}}const qi=["enableCommand","selection","HtmlEmbed","rawHtmlApi","editing","document","value","plugins","cancel","htmlEmbed","commandName","ELEMENT_HTML_EMBED","TrackChangesEditing","change","getSelectedElement","markBlockFormat","model","afterInit","rawHtml","registerDescriptionCallback","_descriptionFactory","*Change %0 content*","element","get","locale"];var Xi,$i;Xi=qi,$i=130,function(t){for(;--t;)Xi.push(Xi.shift())}(++$i);const Qi=function(t,e){return qi[t-=0]};class Ji extends t.Plugin{[Qi("0xc")](){const t=this.editor;if(!t[Qi("0x2")].has(Qi("0x16")))return;const e=t.plugins.get(Qi("0x7")),n=t[Qi("0x13")],o=t[Qi("0x18")].view.document[Qi("0x15")];e[Qi("0xf")].registerElementLabel(Qi("0xd"),(t=>Yo(n,Qi("0x6"),t))),t[Qi("0x2")][Qi("0x12")]("TrackChangesEditing")[Qi("0x14")](Qi("0x4"),((n,s)=>{const i=t[Qi("0xb")],r=i[Qi("0x0")][Qi("0x15")];i[Qi("0x8")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Qi("0x11"),Qi("0xd"))?t[Qi("0x9")]():null}(r);if(!t)return void n(null);const i=t.getAttribute(Qi("0x1"))||"";void 0!==s&&s!==i&&(e[Qi("0xa")](t,{commandName:Qi("0x4"),commandParams:[s]}),o[Qi("0x9")]().getCustomProperty(Qi("0x17"))[Qi("0x3")]())}))})),e[Qi("0xf")][Qi("0xe")]((t=>{const{data:e}=t;if(e&&Qi("0x4")==e[Qi("0x5")]){const t=Yo(n,Qi("0x6"));return{type:"format",content:Yo(n,Qi("0x10"),t)}}}))}}const Zi=["imageCaption","schema","toggleImageCaption","hasAttribute","formatBlock","subType","Users","join","ImageTextAlternativeEditing","ImageUploadEditing","refresh","resizedWidth","_suggestionFactory","isBlockImage","imageTextAlternative","toLowerCase","chain","createRange","registerPostFixer","hasSuggestion","differ","author","discard","shouldConvertImageType","side","name","imageTypeInline","ImageCaptionEditing","start","Inline image to block image","has","getSuggestions","removeObject","nodeAfter","isInContent","imageStylePreApply","_descriptionFactory","imageStyle","getClosestSelectedImageElement","change","previous","formatInline","element","format","_splitMarkerName","getChangedMarkers","getCaptionFromImageModelElement","registerDescriptionCallback","commands","suggestion","editor","registerCustomCallback","imageInline","backward","normalizedStyles","get","markBlockFormat","alt","ImageUtils","*Reset image width*","*Format:* %0","deletion","getNearestSelectionRange","setImageNaturalSizeAttributes","findIndex","getSuggestionCallback","*Remove image text alternative*","forceDefaultExecution","markInlineFormat","end","caption","value","toPrevious","getContainedElement","insertion","commandReversedParams","addObject","insertImage","ELEMENT_CAPTION","ImageBlockEditing","getFirstRange","markDeletion","*Set image width:* %0","isIntersecting","imageBlock","convertInlineImageToBlock","accept","imageStylePostApply","getAttribute","newRange","isCollapsed","isEqual","registerElementLabel","discardSuggestion","ImageStyleEditing","type","createRangeOn","plugins","title","imageTypeBlock","ELEMENT_IMAGE","convertBlockImageToInline","length","next","newValue","find","enableCommand","head","document","markInsertion","forward","ImageInlineEditing","filter","commandParams","isBefore","nodeBefore","getSuggestion","resizeImage","model","selection","commandName","ImageCaptionUtils"];var Yi,tr;Yi=Zi,tr=429,function(t){for(;--t;)Yi.push(Yi.shift())}(++tr);const er=function(t,e){return Zi[t-=0]};class nr extends t.Plugin{afterInit(){const t=this[er("0x6d")];if(!t[er("0x22")][er("0x59")]("ImageEditing"))return;const n=t.plugins[er("0x72")]("TrackChangesEditing"),o=t.plugins[er("0x72")](er("0x75")),s={},i=t.locale;if(n[er("0x2b")](er("0xe")),n[er("0x5f")][er("0x1d")](er("0x15"),(t=>Yo(i,er("0x25"),t))),n[er("0x5f")][er("0x1d")](er("0x6f"),(t=>Yo(i,"ELEMENT_INLINE_IMAGE",t))),n[er("0x5f")].registerElementLabel(er("0x7"),(()=>Yo(i,er("0xf")))),t[er("0x22")][er("0x59")](er("0x44"))&&n[er("0x2b")]("uploadImage"),t[er("0x22")][er("0x59")](er("0x10"))&&t[er("0x22")].has(er("0x30"))&&(n[er("0x2b")](er("0x55"),((e,s)=>{const i=o.getClosestSelectedImageElement(t[er("0x37")][er("0x2d")][er("0x38")]);t[er("0x37")][er("0x62")]((()=>{n[er("0x73")](i,{commandName:"imageTypeInline",commandParams:[s]},[],er("0x26"))}))})),n[er("0x2b")](er("0x24"),((e,s)=>{t.model[er("0x62")]((i=>{let x=o.getClosestSelectedImageElement(t[er("0x37")][er("0x2d")][er("0x38")]),a=i[er("0x21")](x);const c=r.LivePosition.fromPosition(a[er("0x57")],er("0x9")),l=r.LivePosition.fromPosition(a.end,"toNext");n[er("0x4")]((()=>e(s))),x=o[er("0x61")](t[er("0x37")].document.selection),a=i[er("0x21")](x);const d=i[er("0x4c")](c,l);c.detach(),l.detach(),n[er("0x73")](x,{commandName:er("0x55"),commandParams:[s]},[],er("0x16")),d.start[er("0x33")](a.start)&&n[er("0x2e")](i[er("0x4c")](d[er("0x57")],a[er("0x57")]),er("0x16")),a[er("0x6")].isBefore(d[er("0x6")])&&n[er("0x2e")](i[er("0x4c")](a[er("0x6")],d[er("0x6")]),"convertInlineImageToBlock")}))})),n[er("0x47")][er("0x6e")](er("0x3f"),er("0x16"),"join",(()=>!1)),n[er("0x47")].registerCustomCallback(er("0x3f"),er("0x16"),er("0x17"),(()=>!1)),n[er("0x47")].registerCustomCallback(er("0x3f"),er("0x16"),er("0x51"),n[er("0x47")][er("0x2")](er("0x3f"),"",er("0x17"))),n[er("0x47")][er("0x6e")]("insertion","convertInlineImageToBlock",er("0x42"),(()=>!1)),n[er("0x47")][er("0x6e")](er("0xb"),er("0x16"),er("0x51"),(([e])=>{const o=n._suggestionFactory[er("0x2")](er("0xb"),"","discard");let s=e[er("0x57")],i=e[er("0x6")];const r=t.model[er("0x3c")][er("0x79")](s,er("0x70")),x=t[er("0x37")][er("0x3c")][er("0x79")](i,er("0x2f"));r[er("0x1b")]&&(s=r[er("0x57")]),x[er("0x1b")]&&(i=x[er("0x6")]),o([t[er("0x37")][er("0x4c")](s,i)])})),n[er("0x47")][er("0x6e")](er("0x3f"),er("0x16"),"chain",c),n[er("0x47")][er("0x6e")](er("0xb"),er("0x16"),er("0x4b"),c)),t[er("0x22")][er("0x59")](er("0x56"))&&(n[er("0x2b")](er("0x3d"),((e,s)=>{const i=t[er("0x22")][er("0x72")](er("0x3a"));let r=o[er("0x61")](t[er("0x37")][er("0x2d")].selection),x=i[er("0x69")](r);t[er("0x37")].change((()=>{if(x)return void n[er("0x12")](t[er("0x37")][er("0x21")](x));const a=o[er("0x48")](r);e(s),r=o.getClosestSelectedImageElement(t[er("0x37")].document[er("0x38")]),x=i[er("0x69")](r),n[er("0x2e")](t[er("0x37")].createRangeOn(x),a?null:er("0x3b"))}))})),n[er("0x47")].registerCustomCallback("insertion","imageCaption",er("0x4b"),c)),t[er("0x22")][er("0x59")]("ImageStyleEditing")){n[er("0x2b")](er("0x60"),((s,i)=>{const r=t[er("0x22")].get(er("0x41")).me,x=t[er("0x6b")][er("0x72")](er("0x60"));let a=o.getClosestSelectedImageElement(t[er("0x37")][er("0x2d")][er("0x38")]),c=t.model[er("0x21")](a),l=x[er("0x8")];if(l==i[er("0x8")])return;const d={commandName:"imageStyle",commandParams:[i],formatGroupId:(0,e.uid)()};t[er("0x37")][er("0x62")]((()=>{if(n[er("0x5a")]()[er("0x31")]((t=>t[er("0x5d")]&&r==t[er("0x50")]&&(er("0x3f")==t.type||er("0x64")==t[er("0x20")])&&(er("0x5e")==t[er("0x40")]||er("0x18")==t[er("0x40")])&&t[er("0x11")]().isEqual(c))).forEach((t=>n.discardSuggestion(t[er("0x2c")]))),a=o[er("0x61")](t[er("0x37")][er("0x2d")][er("0x38")]),c=t[er("0x37")].createRangeOn(a),x[er("0x45")](),t[er("0x6b")][er("0x72")](er("0x55"))[er("0x45")](),t[er("0x6b")][er("0x72")](er("0x24")).refresh(),l=x.value,l!=i[er("0x8")])return o.isInlineImage(a)&&x[er("0x52")](i[er("0x8")],a)?(s({...i,setImageSizes:!1}),a=o[er("0x61")](t.model[er("0x2d")][er("0x38")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],er("0x5e"))):void(o[er("0x48")](a)?n[er("0x73")](a,d,[],"imageStylePostApply"):n[er("0x5")](c,d,"imageStylePostApply"))}))}));for(const e of t.plugins[er("0x72")](er("0x1f"))[er("0x71")])s[e[er("0x54")]]=e[er("0x23")][er("0x4a")]();n[er("0x47")].registerCustomCallback(er("0x3f"),er("0x5e"),er("0x42"),(()=>!1)),n[er("0x47")].registerCustomCallback(er("0x3f"),er("0x18"),er("0x42"),(()=>!1)),n[er("0x47")][er("0x6e")](er("0x64"),"imageStylePostApply",er("0x42"),(()=>!1)),n._suggestionFactory[er("0x6e")](er("0x3f"),"imageStylePreApply",er("0x17"),(([t])=>{o[er("0x0")](t.getContainedElement())})),n[er("0x47")][er("0x6e")](er("0x3f"),er("0x5e"),er("0x51"),((t,e)=>{n[er("0x47")].getSuggestionCallback(er("0x3f"),"",er("0x17"))(t,{commandName:e[er("0x39")],commandParams:e[er("0xc")]})})),n._suggestionFactory[er("0x6e")](er("0x3f"),er("0x5e"),er("0x4b"),c)}const x=[{type:er("0x3f"),subType:er("0x5e")},{type:"insertion",subType:er("0x3b")},{type:"formatBlock",subType:er("0x16")},{type:er("0xb"),subType:er("0x16")}];function a(t,e){const s=x[er("0x1")]((({type:e,subType:n})=>t[er("0x20")]==e&&t[er("0x40")]==n)),i=x[er("0x1")]((({type:t,subType:n})=>e[er("0x20")]==t&&e[er("0x40")]==n));if(s<0||i<0)return!1;const r=t[er("0x11")](),a=e[er("0x11")]();if((0==s||1==s)&&2==i&&r[er("0x14")](a))return!0;if(2==s&&3==i){const t=n._findSuggestions(r,er("0xb")).filter((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[er("0x40")]));if(t[er("0x27")]>1&&a[er("0x6")][er("0x1c")](r[er("0x57")]))return!0;if(1==t.length&&(r[er("0x57")][er("0x1c")](a[er("0x6")])||r[er("0x6")][er("0x1c")](a[er("0x57")])))return!0}if(3==s&&3==i&&r[er("0x57")][er("0x33")](a.start)){const t=r[er("0x6")][er("0x5c")],e=a[er("0x57")][er("0x34")];return o[er("0x48")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[er("0x37")].document[er("0x4d")]((()=>{let e=!1;const s=Array.from(t[er("0x37")][er("0x2d")][er("0x4f")][er("0x68")]());for(const{name:t,data:i}of s){const{group:s,type:r,subType:x,id:a}=n[er("0x67")](t);if(er("0x6c")==s&&n[er("0x4e")](a)){if("formatBlock"==r&&("imageStylePreApply"==x||"imageStylePostApply"==x)){const t=n[er("0x35")](a);if(i[er("0x1a")]){const s=t[er("0x11")]()[er("0xa")]();if(o[er("0x48")](s))continue;n[er("0x1e")](t),e=!0}}if(er("0xb")==r&&"imageCaption"==x&&!i[er("0x1a")]){const t=n[er("0x35")](a);t.next&&t[er("0x28")][er("0x5d")]&&(n[er("0x1e")](t[er("0x28")]),e=!0)}}}return e})),t[er("0x22")][er("0x59")]("ImageResize")&&n[er("0x2b")](er("0x36"),((e,s)=>{const i=o.getClosestSelectedImageElement(t[er("0x37")].document.selection);i.getAttribute(er("0x46"))!=s.width&&t[er("0x37")][er("0x62")]((()=>{n[er("0x73")](i,{commandName:er("0x36"),commandParams:[s]})}))})),t[er("0x22")].has(er("0x43"))&&n[er("0x2b")](er("0x49"),((e,s)=>{const i=o[er("0x61")](t[er("0x37")][er("0x2d")].selection);(i[er("0x3e")](er("0x74"))?i[er("0x19")](er("0x74")):"")!=s[er("0x29")]&&t.model[er("0x62")]((()=>{n[er("0x73")](i,{commandName:er("0x49"),commandParams:[s]})}))})),n._descriptionFactory[er("0x6a")]((t=>{if(x[er("0x2a")]((({type:e,subType:n})=>t[er("0x20")]==e&&t[er("0x40")]==n)))return t[er("0x63")]?{}:void 0})),n._descriptionFactory[er("0x6a")]((t=>{if(er("0xb")==t[er("0x20")]||er("0x78")==t.type){const e=t[er("0xa")]();if(e&&e.is(er("0x65"),er("0x7")))return{type:er("0xb")==t[er("0x20")]?er("0xd"):er("0x5b"),element:e,quantity:1}}})),n._descriptionFactory[er("0x6a")]((t=>er("0x3f")==t[er("0x20")]&&er("0x16")==t[er("0x40")]?{type:er("0x66"),content:er("0x58")}:er("0x3f")==t[er("0x20")]&&er("0x26")==t[er("0x40")]?{type:er("0x66"),content:"Block image to inline image"}:void 0)),n[er("0x5f")][er("0x6a")]((t=>{const{data:e}=t;if(e){if(er("0x60")==e[er("0x39")]){const t=e[er("0x32")][0][er("0x8")];return n=er("0x53")===t?Yo(i,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:er("0x66"),content:Yo(i,er("0x77"),n)}}if(er("0x49")==e[er("0x39")]){const t=e.commandParams[0][er("0x29")];return t?{type:er("0x66"),content:Yo(i,"*Set image text alternative:* %0",'"'+t+'"')}:{type:er("0x66"),content:Yo(i,er("0x3"))}}if(er("0x36")==e[er("0x39")]){const t=e[er("0x32")][0].width;return t?{type:er("0x66"),content:Yo(i,er("0x13"),t)}:{type:er("0x66"),content:Yo(i,er("0x76"))}}}var n}))}}const or=["enableCommand","getAttribute","markBlockFormat","get","replaceImageSource","src","handleReplaceImageCommand","handleSuggestionDescription","afterInit","selection","locale","discard","formatBlock","*Format:* replace image URL","_suggestionFactory","getSuggestionCallback","commandName","plugins","_descriptionFactory","accept","editor","getSuggestions","Users","model","change","getSelectedElement","registerCustomCallback","registerDescriptionCallback","TrackChangesEditing","source"];var sr,ir;sr=or,ir=346,function(t){for(;--t;)sr.push(sr.shift())}(++ir);const rr=function(t,e){return or[t-=0]};class xr extends t.Plugin{[rr("0x16")](){if(!this[rr("0x4")].plugins.has("ImageEditing"))return;const t=this[rr("0x4")][rr("0x1")][rr("0x11")](rr("0xc"));t[rr("0xe")](rr("0x12"),((t,e)=>this.handleReplaceImageCommand(t,e))),t._suggestionFactory[rr("0xa")](rr("0x1a"),"replaceImageSource",rr("0x3"),t._suggestionFactory.getSuggestionCallback(rr("0x1a"),null,"discard")),t[rr("0x1c")][rr("0xa")](rr("0x1a"),rr("0x12"),rr("0x19"),t._suggestionFactory[rr("0x1d")](rr("0x1a"),null,rr("0x3"))),t[rr("0x2")][rr("0xb")]((t=>this[rr("0x15")](t)))}[rr("0x14")](t,e){const n=this[rr("0x4")][rr("0x1")][rr("0x11")](rr("0xc")),o=this.editor[rr("0x7")].document[rr("0x17")][rr("0x9")]();this[rr("0x4")][rr("0x7")][rr("0x8")]((()=>{let s=o[rr("0xf")](rr("0x13"));const i=this.editor.plugins[rr("0x11")](rr("0x6")).me;for(const t of n[rr("0x5")]({skipNotAttached:!0})){const e=t.getContainedElement();if(rr("0x12")===t.subType&&e===o){t.author!==i&&t.discard(),s=t.data.commandParams[0][rr("0xd")];break}}t(e),n[rr("0x10")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],"replaceImageSource")}))}[rr("0x15")](t){const{data:e}=t;if(e&&rr("0x12")===e[rr("0x0")]){const t=rr("0x1b");return{type:"format",content:Yo(this[rr("0x4")][rr("0x18")],t)}}}}const ar=["forEach","enableCommand","_trackChangesValueDuringImport","get","execute","_trackChangesExecuted","_setSuggestionData","commands","value","dataInsert","lowest","listenTo","afterInit","editor","importWord","collaboration_features","high","_handleImportedData","plugins","trackChanges","TrackChangesEditing"];var cr,lr;cr=ar,lr=252,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("0x2")]=!1,this._trackChangesExecuted=!1}[dr("0xc")](){const t=this[dr("0xd")],e=t[dr("0x7")].get("importWord"),n=t[dr("0x7")][dr("0x3")](dr("0x13"));e&&(e.on("execute",((t,[,e])=>{this[dr("0x2")]=n[dr("0x8")],e[dr("0xf")].track_changes=!this[dr("0x2")]}),{priority:dr("0x10")}),this[dr("0xb")](e,dr("0x9"),this[dr("0x11")].bind(this)),this.listenTo(e,dr("0x9"),(()=>{this[dr("0x5")]&&(n.execute(),this[dr("0x5")]=!1)}),{priority:dr("0xa")}),t[dr("0x12")][dr("0x3")]("TrackChangesEditing")[dr("0x1")]("importWord"))}[dr("0x11")](t,e){const{suggestions:n}=e,o=this[dr("0xd")][dr("0x7")][dr("0x3")](dr("0x13")),s=o[dr("0x8")];this._trackChangesValueDuringImport!==s&&(o[dr("0x4")](),this[dr("0x5")]=!0),n&&n[dr("0x0")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[dr("0xd")][dr("0x12")][dr("0x3")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:dr("0xe")}}};this[dr("0xd")].plugins[dr("0x3")](dr("0x14"))[dr("0x6")](s)}))}}const gr=["outdent","has","get","commandName","_descriptionFactory","filter","*Outdent:* %0","plugins","indentBlock","change","afterInit","document","blockIndent","registerDescriptionCallback","enableCommand","format","indent","locale","TrackChangesEditing","outdentBlock","markBlockFormat","getItemLabel","*Indent:* %0","editor","from","model","getItems"];var mr,fr;mr=gr,fr=295,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0xc")](){const t=this[hr("0x19")],e=t[hr("0x9")][hr("0x4")](hr("0x14"));t[hr("0x9")][hr("0x3")]("IndentEditing")&&(e[hr("0x10")](hr("0x12")),e.enableCommand(hr("0x2")));const n=t[hr("0x13")];if(t.plugins[hr("0x3")]("IndentBlock")){for(const n of[hr("0xa"),"outdentBlock"])e[hr("0x10")](n,(()=>{const o=Array[hr("0x1a")](this[hr("0x19")].model[hr("0xd")].selection.getSelectedBlocks())[hr("0x7")]((t=>this[hr("0x19")][hr("0x0")].schema.checkAttribute(t,hr("0xe"))));t[hr("0x0")][hr("0xb")]((()=>{for(const t of o)e[hr("0x16")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:hr("0xa")})}))}));e[hr("0x6")][hr("0xf")]((t=>{const{data:o}=t;if(!o)return;if(hr("0xa")!=o[hr("0x5")]&&hr("0x15")!=o[hr("0x5")])return;const s=t[hr("0x1")]()[0],i=e._descriptionFactory[hr("0x17")](s);return"indentBlock"==o.commandName?{type:hr("0x11"),content:Yo(n,hr("0x18"),i)}:hr("0x15")==o[hr("0x5")]?{type:hr("0x11"),content:Yo(n,hr("0x8"),i)}:void 0}))}}}var br,Er,_r=["TrackChangesEditing","requires","enableCommand","get","plugins","init","editor"];br=_r,Er=478,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[Tr("0x6")](){return[Qs.Input]}[Tr("0x3")](){this[Tr("0x4")][Tr("0x2")][Tr("0x1")](Tr("0x5"))[Tr("0x0")]("input")}}const yr=["afterInit","editor","*Set link:* %0","LinkEditing","link","_descriptionFactory","format","model","locale","change","getRanges","markInlineFormat","registerDescriptionCallback","from","document","plugins","linkHref","getFirstRange","has","getAttribute","enableCommand","commandName","commandParams","get","TrackChangesEditing","selection","*Remove link*","unlink","getFirstPosition"];var kr,Ar;kr=yr,Ar=475,function(t){for(;--t;)kr.push(kr.shift())}(++Ar);const vr=function(t,e){return yr[t-=0]};class Rr extends t.Plugin{[vr("0x12")](){const t=this[vr("0x13")];if(!t[vr("0x4")][vr("0x7")](vr("0x15")))return;const e=t[vr("0x4")][vr("0xc")](vr("0xd"));e[vr("0x9")]("link",((n,o)=>{const s=t[vr("0x19")][vr("0x3")][vr("0xe")];let i=[];if(s.isCollapsed){if(!s.hasAttribute(vr("0x5")))return void n(o);{const e=(0,Qs.findAttributeRange)(s[vr("0x11")](),vr("0x5"),s[vr("0x8")](vr("0x5")),t[vr("0x19")]);i=[e]}}else i=Array[vr("0x2")](s[vr("0x1c")]());t[vr("0x19")][vr("0x1b")]((()=>{for(const t of i)e[vr("0x0")](t,{commandName:vr("0x16"),commandParams:[o]})}))})),e[vr("0x9")](vr("0x10"),(()=>{const n=this[vr("0x13")][vr("0x19")],o=n[vr("0x3")][vr("0xe")];n.change((()=>{let n=[];n=o.isCollapsed?[(0,Qs.findAttributeRange)(o.getFirstPosition(),"linkHref",o[vr("0x8")](vr("0x5")),t[vr("0x19")])]:Es(vr("0x5"),o[vr("0x6")](),t[vr("0x19")]);for(const t of n)e[vr("0x0")](t,{commandName:vr("0x10"),commandParams:[]})}))})),e[vr("0x17")][vr("0x1")]((e=>{const{data:n}=e,o=t[vr("0x1a")];if(n){if(vr("0x16")==n[vr("0xa")]){const t=n[vr("0xb")][0];return{type:vr("0x18"),content:Yo(o,vr("0x14"),'"'+t+'"')}}return vr("0x10")==n[vr("0xa")]?{type:vr("0x18"),content:Yo(o,vr("0xf"))}:void 0}}))}}const Sr=["paragraph","execute","todoListChecked","registerDescriptionCallback","_descriptionFactory","element","TodoListEditing","findIndex","afterInit","nextSibling","numberedList","name","model","parent","ELEMENT_TODO_LIST","List","get","filter","TrackChangesEditing","commands","change","getAttribute","commandParams","*Change to:* %0","markBlockFormat","slice","bulletedList","todo","listItem","bulleted","add","*Indent:* %0","length","listIndent","locale","document","getSelectedBlocks","selection","push","_selectedElements","editor","before","replace","ELEMENT_LIST_ITEM","outdentList","ListEditing","end","checkChild","checkTodoList","createRange","createPositionAt","previousSibling","has","todoList","*Outdent:* %0","plugins","enableCommand","commandName","value","format","from"];var Ir,Lr;Ir=Sr,Lr=104,function(t){for(;--t;)Ir.push(Ir.shift())}(++Lr);const Nr=function(t,e){return Sr[t-=0]};class wr extends t.Plugin{[Nr("0x1a")](){const t=this[Nr("0x3a")],e=t[Nr("0x34")];if(!t[Nr("0xc")].has(Nr("0x2")))return;const n=t[Nr("0xc")].get(Nr("0x24")),o=t.plugins[Nr("0x9")](Nr("0x18"));function s(e){return()=>{const o=t[Nr("0x1e")][Nr("0x35")][Nr("0x37")],s=t[Nr("0x25")][Nr("0x22")](e);if(s[Nr("0xf")])return void t[Nr("0x13")](Nr("0x12"),{});const i=e[Nr("0x2b")](0,-4),r=function(t,e,n){let o=Array[Nr("0x11")](t).filter((t=>{return e=t,(o=n)[Nr("0x4")](e[Nr("0x1f")],Nr("0x2e"))&&!o.isObject(e);var e,o}));o=o[Nr("0x23")]((t=>!t.is(Nr("0x17"),Nr("0x2e"))||t.getAttribute("listType")!=e));const s=new Set;for(const t of o)t.is(Nr("0x17"),Nr("0x2e"))?s.add(Mr(t)):s[Nr("0x30")](t);return Array[Nr("0x11")](s)}(o[Nr("0x36")](),i,t.model.schema);t[Nr("0x1e")][Nr("0x26")]((()=>{for(const t of r)n[Nr("0x2a")](t,{commandName:e,commandParams:[{forceValue:!s[Nr("0xf")]}],formatGroupId:"blockName"},Or(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Nr("0x11")](t);const n=e[Nr("0x19")]((t=>Nr("0x2e")!=t[Nr("0x1d")]));return n>-1&&(e=e[Nr("0x2b")](0,n)),e}(t[Nr("0x1e")][Nr("0x35")][Nr("0x37")][Nr("0x36")]()),s=t[Nr("0x1e")][Nr("0x6")](t[Nr("0x1e")][Nr("0x7")](o[0],Nr("0x3b")),t.model.createPositionAt(o[o[Nr("0x32")]-1],Nr("0x3")));t.model[Nr("0x26")]((()=>{n[Nr("0x2a")](s,{commandName:e,commandParams:[],formatGroupId:Nr("0x33")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Nr("0x27")]("listIndent")>n[Nr("0x27")]("listIndent");)e.add(t),t=t[Nr("0x1b")]}return Array[Nr("0x11")](e)}(o))}))}}n[Nr("0xd")](Nr("0x1c"),s(Nr("0x1c"))),n[Nr("0xd")](Nr("0x2c"),s(Nr("0x2c"))),o&&n[Nr("0xd")]("todoList",s(Nr("0xa"))),n.enableCommand("indentList",i("indentList")),n[Nr("0xd")](Nr("0x1"),i("outdentList")),o&&n[Nr("0xd")]("checkTodoList",(()=>{const e=t[Nr("0x25")][Nr("0x22")](Nr("0x5")),o=Array[Nr("0x11")](e[Nr("0x39")]);o.filter((t=>t.getAttribute(Nr("0x14"))!=e[Nr("0xf")])),t.model[Nr("0x26")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e.value}]})}))})),n[Nr("0x16")].registerElementLabel(Nr("0x2e"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[Nr("0x16")][Nr("0x15")]((t=>{const{data:n}=t;if(n){if(Nr("0x1c")==n[Nr("0xe")]||Nr("0x2c")==n[Nr("0xe")]||Nr("0xa")==n[Nr("0xe")])switch(n.commandName[Nr("0x3c")](Nr("0x21"),"")){case Nr("0x2f"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case Nr("0x2d"):return o(Yo(e,Nr("0x20")))}if("indentList"==n.commandName)return{type:Nr("0x10"),content:Yo(e,Nr("0x31"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Nr("0x1")==n.commandName)return{type:Nr("0x10"),content:Yo(e,Nr("0xb"),Yo(e,Nr("0x0")))};if("checkTodoList"==n[Nr("0xe")])return n[Nr("0x28")][0].forceValue?{type:Nr("0x10"),content:Yo(e,"*Check item*")}:{type:Nr("0x10"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:"format",content:Yo(e,Nr("0x29"),t)}}}))}}function Mr(t){const e=t[Nr("0x27")](Nr("0x33"));if(0==e)return t;let n=t;for(;t[Nr("0x8")]&&t[Nr("0x8")].is(Nr("0x17"),Nr("0x2e"));){const o=t[Nr("0x8")][Nr("0x27")](Nr("0x33"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[Nr("0x8")]}return n}function Or(t){const e=[];if(t.is("element",Nr("0x2e"))&&t[Nr("0x27")](Nr("0x33"))>0){let n=t[Nr("0x1b")];for(;n&&Nr("0x2e")==n.name&&n[Nr("0x27")](Nr("0x33"))==t[Nr("0x27")](Nr("0x33"));)e[Nr("0x38")](n),n=n[Nr("0x1b")]}return e}const Fr=["handleListStyleCommand","map","listStyle","model","_LIST_","ListUtils","forward","_getTranslationKeyForListStyle","ListPropertiesEditing","_getSuggestionBlocks","backward","listReversed","bind","handleListReversedCommand","reversed","registerDescriptionCallback","commandParams","element","getAttribute","unshift","from","getFirstPosition","commandName","*Format:* set order to reversed","replace","change","document","listItem","numbered","handleDescriptions","length","getSelectedBlocks","enableCommand","startIndex","_getSuggestionBlocksForListStyle","has","before","editor","listType","plugins","get","toUpperCase","TrackChangesEditing","handleListStartCommand","createPositionAt","createRange","parent","getSiblingNodes","afterInit","getLastPosition","type","filter","selection","styles","_descriptionFactory","markMultiRangeBlockFormat","listStart"];var Pr,Dr;Pr=Fr,Dr=203,function(t){for(;--t;)Pr.push(Pr.shift())}(++Dr);const Br=function(t,e){return Fr[t-=0]};class jr extends t.Plugin{[Br("0x10")](){if(!this.editor[Br("0x7")][Br("0x3")](Br("0x21")))return;const t=this[Br("0x5")].config.get("list.properties"),e=this[Br("0x5")][Br("0x7")][Br("0x8")]("TrackChangesEditing");t[Br("0x15")]&&e[Br("0x0")]("listStyle",this.handleListStyleCommand[Br("0x25")](this)),t[Br("0x27")]&&e[Br("0x0")](Br("0x24"),this[Br("0x26")][Br("0x25")](this)),t[Br("0x1")]&&e[Br("0x0")](Br("0x18"),this[Br("0xb")][Br("0x25")](this)),e[Br("0x16")][Br("0x28")](this[Br("0x36")][Br("0x25")](this))}[Br("0x19")](t,e={}){const n=this[Br("0x5")][Br("0x7")].get(Br("0xa")),o=this[Br("0x2")]();this[Br("0x5")][Br("0x1c")][Br("0x32")]((()=>{n[Br("0x17")](o,{commandName:"listStyle",commandParams:[{type:e[Br("0x12")]}],formatGroupId:Br("0x1b")})}))}[Br("0x26")](t,e={}){const n=this[Br("0x5")][Br("0x7")][Br("0x8")](Br("0xa")),o=this._getSuggestionBlocks((t=>t.is(Br("0x2a"),Br("0x34"))&&"numbered"===t[Br("0x2b")](Br("0x6"))));if(o[Br("0x37")]<1)return;const s=o[Br("0x1a")]((t=>this[Br("0x5")].model[Br("0xd")](this[Br("0x5")][Br("0x1c")][Br("0xc")](t,Br("0x4")),this[Br("0x5")].model[Br("0xc")](t,0))));this[Br("0x5")][Br("0x1c")].change((()=>{n[Br("0x17")](s,{commandName:Br("0x24"),commandParams:[{reversed:e.reversed}],formatGroupId:Br("0x24")})}))}[Br("0xb")](t,e={}){const n=this[Br("0x5")][Br("0x7")][Br("0x8")]("TrackChangesEditing"),o=this[Br("0x22")]((t=>t.is("element",Br("0x34"))&&Br("0x35")===t.getAttribute("listType")));if(o[Br("0x37")]<1)return;const s=o[Br("0x1a")]((t=>this[Br("0x5")][Br("0x1c")][Br("0xd")](this[Br("0x5")][Br("0x1c")][Br("0xc")](t,"before"),this[Br("0x5")][Br("0x1c")].createPositionAt(t,0))));this.editor[Br("0x1c")][Br("0x32")]((()=>{n[Br("0x17")](s,{commandName:Br("0x18"),commandParams:[{startIndex:e[Br("0x1")]}],formatGroupId:Br("0x18")})}))}handleDescriptions(t){const e=this[Br("0x5")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Br("0x2f")]){case Br("0x1b"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this[Br("0x20")](n[Br("0x29")][0].type)))};break;case Br("0x24"):o=n.commandParams[0][Br("0x27")]?Br("0x30"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case Br("0x18"):o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n[Br("0x29")][0][Br("0x1")])}}return s}[Br("0x2")](){var t,e,n,o;const s=this.editor[Br("0x7")].get(Br("0x1e"));let i=Array.from(this.editor[Br("0x1c")][Br("0x33")][Br("0x14")][Br("0x38")]());return(null===(t=i[0])||void 0===t?void 0:t.is(Br("0x2a"),Br("0x34")))&&i[Br("0x2c")](...s[Br("0xf")](this[Br("0x5")][Br("0x1c")][Br("0x33")][Br("0x14")][Br("0x2e")](),Br("0x23"))),(null===(e=i[i[Br("0x37")]-1])||void 0===e?void 0:e.is(Br("0x2a"),Br("0x34")))&&i.push(...s[Br("0xf")](this[Br("0x5")][Br("0x1c")][Br("0x33")][Br("0x14")][Br("0x11")](),Br("0x1f"))),i=[...new Set(i)],(null===(o=null===(n=this[Br("0x5")].model[Br("0x33")][Br("0x14")][Br("0x2e")]())||void 0===n?void 0:n[Br("0xe")])||void 0===o?void 0:o.is(Br("0x2a"),"listItem"))&&(i=i.filter((t=>t.is(Br("0x2a"),"listItem")))),i}_getSuggestionBlocks(t){const e=this.editor.plugins[Br("0x8")](Br("0x1e"));let n=Array[Br("0x2d")](this[Br("0x5")].model.document[Br("0x14")][Br("0x38")]())[Br("0x13")](t)[Br("0x1a")]((t=>{const n=this.editor[Br("0x1c")][Br("0xc")](t,0);return[...e[Br("0xf")](n,Br("0x23")),...e[Br("0xf")](n,Br("0x1f"))]})).flat();return n=[...new Set(n)],n}[Br("0x20")](t){return"ELEMENT_"+this[Br("0x5")][Br("0x7")][Br("0x8")]("ListUtils").getListTypeFromListStyleType(t)[Br("0x9")]()+Br("0x1d")+t[Br("0x9")]()[Br("0x31")](/-/g,"_")}}const Ur=["high","ELEMENT_MEDIA","stop","conversion","createEmptyElement","_descriptionFactory","dataDowncast","MediaEmbedEditing","TrackChangesEditing","get","locale","editor","has","afterInit","options","plugins","media","showSuggestionHighlights","mediaEmbed","attribute:url:media"];var Gr,Hr;Gr=Ur,Hr=371,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const Wr=function(t,e){return Ur[t-=0]};class zr extends t.Plugin{[Wr("0x2")](){const t=this[Wr("0x0")];if(!t[Wr("0x4")][Wr("0x1")](Wr("0x10")))return;const e=t[Wr("0x4")][Wr("0x12")](Wr("0x11")),n=t[Wr("0x13")];e.enableCommand(Wr("0x7")),e[Wr("0xe")].registerElementLabel(Wr("0x5"),(t=>Yo(n,Wr("0xa"),t))),t[Wr("0xc")].for(Wr("0xf")).elementToElement({model:"media",view:(t,{writer:e,options:n})=>{if(n[Wr("0x6")])return e[Wr("0xd")]("div")},converterPriority:"high"}),t.data.downcastDispatcher.on(Wr("0x8"),((t,e,n)=>{n[Wr("0x3")].showSuggestionHighlights&&t[Wr("0xb")]()}),{priority:Wr("0x9")})}}const Vr=["mention","editor","TrackChangesEditing","enableCommand","MentionEditing","has"];var Kr,qr;Kr=Vr,qr=375,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("0x4")];t.plugins[Xr("0x2")](Xr("0x1"))&&t.plugins.get(Xr("0x5"))[Xr("0x0")](Xr("0x3"))}}const Qr=["get","afterInit","editor","plugins","enableCommand","locale","registerElementLabel","_descriptionFactory","TrackChangesEditing"];var Jr,Zr;Jr=Qr,Zr=304,function(t){for(;--t;)Jr.push(Jr.shift())}(++Zr);const Yr=function(t,e){return Qr[t-=0]};class tx extends t.Plugin{[Yr("0x3")](){const t=this[Yr("0x4")];if(!t[Yr("0x5")].has("PageBreakEditing"))return;t[Yr("0x5")][Yr("0x2")](Yr("0x1"))[Yr("0x6")]("pageBreak");const e=t[Yr("0x5")][Yr("0x2")](Yr("0x1")),n=t[Yr("0x7")];e[Yr("0x0")][Yr("0x8")]("pageBreak",(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const ex=["markBlockFormat","markerRange","has","commandName","insertion","locale","consume","isTouching","registerElementLabel","ELEMENT_PARAGRAPH","ck-suggestion-marker-split","data","insert","$text","end","selection","paragraph","nodeAfter","enableCommand","registerDescriptionCallback","TrackChangesEditing","markerName","model","schema","bindElementToMarker","isObject","*Insert:* %0","activeMarkers","addClass","addMarker:suggestion:insertion","span","checkChild","change","toViewPosition","blockName","plugins","getFirstRange","editor","mapper","options","isLimit","getItemLabel","get","Paragraph","afterInit","from","filter","type","parent","writer","getSelectedBlocks","_descriptionFactory","name","isBlock"];var nx,ox;nx=ex,ox=309,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class ix extends t.Plugin{[sx("0x5")](){const t=this[sx("0x34")];if(!t[sx("0x32")][sx("0x11")](sx("0x4")))return;const e=t[sx("0x14")],n=t[sx("0x32")][sx("0x3")](sx("0x23"));n[sx("0xc")][sx("0x17")](sx("0x1f"),(t=>Yo(e,sx("0x18"),t))),n[sx("0x21")](sx("0x1f"),((e,o={})=>{const s=t.model.document,i=o.selection||s[sx("0x1e")],r=Array[sx("0x6")](i[sx("0xb")]())[sx("0x7")]((t=>{return e=t,(n=this[sx("0x34")][sx("0x25")][sx("0x26")])[sx("0x2e")](e[sx("0x9")],"paragraph")&&!n[sx("0x28")](e)&&sx("0x1f")!=e.name;var e,n}));t.model[sx("0x2f")]((()=>{for(const t of r)n[sx("0xf")](t,{commandName:sx("0x1f"),commandParams:[],formatGroupId:sx("0x31")},_s(t))}))})),n._descriptionFactory[sx("0x22")]((t=>{const{data:n}=t;if(n&&sx("0x1f")==n[sx("0x12")])return{type:"format",content:Yo(e,"*Change to:* %0",Yo(e,sx("0x18")))}})),n[sx("0x21")]("insertParagraph"),t.editing.downcastDispatcher.on("addMarker:suggestion:insertion",rx(t),{priority:"highest"}),t[sx("0x1a")].downcastDispatcher.on(sx("0x2c"),((e,n,o)=>{o[sx("0x0")].showSuggestionHighlights&&rx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[sx("0xc")];o[sx("0x22")]((n=>{if(sx("0x13")!==n[sx("0x8")])return;const{start:s,end:i}=n[sx("0x33")]();if(!s[sx("0x16")](i)||!s[sx("0x20")])return;const r=t[sx("0x25")][sx("0x26")],x=s[sx("0x20")];return r[sx("0xe")](x)&&!r.isLimit(x)&&r[sx("0x2e")](x,sx("0x1c"))?{type:sx("0x13"),content:Yo(e,sx("0x29"),o[sx("0x2")](x,1))}:void 0}))}}function rx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const i=t[sx("0x32")][sx("0x3")]("TrackChangesEditing"),r=o[sx("0x10")].start,x=o[sx("0x10")][sx("0x1d")],a=t[sx("0x25")][sx("0x26")];if(!r[sx("0x16")](x)||!r.nodeAfter)return;const c=r[sx("0x20")];if(a.isBlock(c)&&!a[sx("0x1")](c)&&a[sx("0x2e")](c,"$text")){if(!s.consumable[sx("0x15")](o[sx("0x10")],n[sx("0xd")]))return;const t=s[sx("0xa")].createUIElement(sx("0x2d"),{class:sx("0x19")}),r=s[sx("0x35")][sx("0x30")](x);e&&i[sx("0x2a")].includes(o.markerName)&&s[sx("0xa")][sx("0x2b")]("ck-suggestion-marker--active",t),s.writer[sx("0x1b")](r,t),s[sx("0x35")][sx("0x27")](t,o[sx("0x24")])}}}const xx=["TrackChangesEditing","isFormatting","schema","removeFormat","enableCommand","editor","createRangeOn","get","document","*Remove all formatting*","getAttributes","_descriptionFactory","from","has","getItems","selection","registerDescriptionCallback","RemoveFormatEditing","getAttributeProperties","afterInit","commandName","locale","model","change","plugins"];var ax,cx;ax=xx,cx=387,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("0x12")];if(!t[lx("0xc")][lx("0x1")](lx("0x5")))return;const e=t[lx("0xc")][lx("0x14")](lx("0xd"));e[lx("0x11")](lx("0x10"),(n=>{const o=t.model[lx("0x15")][lx("0x3")];o.isCollapsed?n():t.model[lx("0xb")]((()=>{const n=Array[lx("0x0")](o.getRanges());for(const o of n)for(const n of o[lx("0x2")]())ux(n,t[lx("0xa")][lx("0xf")])&&e.markInlineFormat(t[lx("0xa")][lx("0x13")](n),{commandName:lx("0x10"),commandParams:[]})}))})),e[lx("0x18")][lx("0x4")]((e=>{const{data:n}=e;if(n&&lx("0x10")==n[lx("0x8")])return{type:"format",content:Yo(t[lx("0x9")],lx("0x16"))}}))}}function ux(t,e){for(const[n]of t[lx("0x17")]()){const t=e[lx("0x6")](n);if(t&&t[lx("0xe")])return!0}return!1}const gx=["acceptSelectedSuggestions","enableCommand","discardSelectedSuggestions","goToNextRestrictedEditingException","discardAllSuggestions","RestrictedEditingModeEditing","plugins","acceptAllSuggestions","afterInit","trackChanges","TrackChangesEditing","discardSuggestion","editor","goToPreviousRestrictedEditingException","get"];var mx,fx;mx=gx,fx=191,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0xc")](){const t=this[hx("0x1")];if(!t.plugins.has(hx("0x9")))return;const e=t.plugins[hx("0x3")](hx("0xe"));e[hx("0x5")](hx("0x2")),e[hx("0x5")](hx("0x7"));const n=t[hx("0xa")][hx("0x3")](hx("0x9"));n.enableCommand(hx("0xd")),n[hx("0x5")]("acceptSuggestion"),n.enableCommand(hx("0x0")),n.enableCommand(hx("0xb")),n[hx("0x5")](hx("0x8")),n.enableCommand(hx("0x4")),n.enableCommand(hx("0x6"))}}const bx=["bindElementToMarker","split","createPositionBefore","createUIElement","merge","editor","includes","ck-suggestion-marker--active","activeMarkers","ck-suggestion-marker-","getItems","ELEMENT_LINE_BREAK","deletion","locale","consumable","addMarker:suggestion:insertion","mapper","editing","get","TrackChangesEditing","markerName","registerElementLabel","options","shiftEnter","addClass","requires","high","toViewPosition","showSuggestionHighlights","downcastDispatcher","insert","writer","plugins","markerRange","span","_descriptionFactory","softBreak","test"];var Ex,_x;Ex=bx,_x=223,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("0x1e")](){return[xi.ShiftEnter]}init(){const t=this[Tx("0xa")],e=t[Tx("0x25")][Tx("0x17")]("TrackChangesEditing");e.enableCommand(Tx("0x1c")),t.editing[Tx("0x22")].on(Tx("0x14"),yx(t),{priority:"high"}),t[Tx("0x16")][Tx("0x22")].on("addMarker:suggestion:deletion",yx(t),{priority:Tx("0x1f")}),t.data.downcastDispatcher.on("addMarker:suggestion",((e,n,o)=>{o[Tx("0x1b")][Tx("0x21")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e[Tx("0x2")][Tx("0x1a")](Tx("0x3"),(e=>Yo(t[Tx("0x12")],Tx("0x10"),e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const i=t[Tx("0x25")][Tx("0x17")](Tx("0x18"));if(!s[Tx("0x13")][Tx("0x4")](o[Tx("0x0")],n.name))return;const r=t.model;for(const t of o[Tx("0x0")][Tx("0xf")]()){if(!t.is("element",Tx("0x3")))continue;const n=Tx("0x11")==o[Tx("0x19")][Tx("0x6")](":")[1]?Tx("0x9"):Tx("0x6"),x=s[Tx("0x24")][Tx("0x8")](Tx("0x1"),{class:Tx("0xe")+n}),a=s[Tx("0x15")][Tx("0x20")](r[Tx("0x7")](t));e&&i[Tx("0xd")][Tx("0xb")](o.markerName)&&s[Tx("0x24")][Tx("0x1d")](Tx("0xc"),x),s[Tx("0x24")][Tx("0x23")](a,x),s[Tx("0x15")][Tx("0x5")](x,o[Tx("0x19")])}}}const kx=["selection","value","enableCommand","FORMAT_RESTRICTED_ENABLED","registerDescriptionCallback","forceValue","_descriptionFactory","has","commandParams","commands","markInlineFormat","FORMAT_RESTRICTED_DISABLED","change","getRanges","from","get","restrictedEditingException","format","document","locale","plugins"];var Ax,vx;Ax=kx,vx=393,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this.editor,e=t.model,n=t[Rx("0x4")];if(!t[Rx("0x5")][Rx("0xd")]("StandardEditingModeEditing"))return;const o=t.plugins[Rx("0x0")]("TrackChangesEditing"),s=Rx("0x1"),i=t[Rx("0xf")][Rx("0x0")](s);o[Rx("0x8")](s,((t,n={})=>{const r=e[Rx("0x3")][Rx("0x6")];if(r.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n[Rx("0xb")]:!i[Rx("0x7")];e[Rx("0x12")]((()=>{const t=Array[Rx("0x14")](r[Rx("0x13")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x10")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0xc")][Rx("0xa")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[Rx("0xe")][0][Rx("0xb")]?{type:Rx("0x2"),content:Yo(n,Rx("0x9"))}:{type:Rx("0x2"),content:Yo(n,Rx("0x11"))}}))}}const Ix=["getRanges","commandName","find","name","isBlock","every","createRangeOn","afterInit","getItems","model","push","_descriptionFactory","styleName","getSelectedBlocks","DataSchema","element","style","config","plugins","markBlockFormat","getDefinitionsForView","TrackChangesEditing","document","Style","StyleUtils","getAttribute","get","commands","inline","_getStyleDefinition","_getRangesWithClasses","style:","*Remove format:* %0","selection","modelElements","format","change","includes","locale","style.definitions","toLowerCase","classes","block","*Format:* %0","getAncestors","add","commandParams","value","from","editor"];var Lx,Nx;Lx=Ix,Nx=498,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{[wx("0x9")](){const t=this[wx("0x1")];if(!t[wx("0x14")].has(wx("0x19")))return;const e=t[wx("0x1d")][wx("0x1c")](wx("0x12")),n=t.plugins[wx("0x1c")](wx("0x17")),o=t[wx("0x28")],s=t.plugins[wx("0x1c")](wx("0x10")),i=t[wx("0x14")][wx("0x1c")](wx("0x1a")).normalizeConfig(s,t[wx("0x13")].get(wx("0x29")));n.enableCommand(wx("0x12"),((o,{styleName:r})=>{const x=t[wx("0xb")][wx("0x18")][wx("0x23")],a=this[wx("0x1f")](r,i);if(!a)return;if(!e.enabledStyles[wx("0x27")](r))return;if(x.isCollapsed&&!a[wx("0x6")])return void o({styleName:r});const c=!e[wx("0x31")][wx("0x27")](a.name);if(a[wx("0x6")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[wx("0x2e")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[wx("0x27")](o.name)){n[wx("0x2f")](o);break}}return n}(x[wx("0xf")](),a[wx("0x24")]);t[wx("0xb")][wx("0x26")]((()=>{for(const t of e)n[wx("0x15")](t,{commandName:wx("0x12"),commandParams:[{styleName:r,forceValue:c}],formatGroupId:wx("0x21")+r})}))}else{let e=Array[wx("0x0")](x[wx("0x2")]());if(!c){const n=Array.from(s[wx("0x16")](a[wx("0x11")],!1))[0].model,o=[];for(const s of e){const e=this[wx("0x20")](t[wx("0xb")],s,a[wx("0x2b")],n);o[wx("0xc")](...e)}e=o}t[wx("0xb")][wx("0x26")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:wx("0x12"),commandParams:[{styleName:r,forceValue:c}]})}))}})),n[wx("0xd")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&wx("0x12")===e[wx("0x3")])return e.commandParams[0].forceValue?{type:wx("0x25"),content:Yo(o,wx("0x2d"),e[wx("0x30")][0].styleName[wx("0x2a")]())}:{type:wx("0x25"),content:Yo(o,wx("0x22"),e.commandParams[0][wx("0xe")][wx("0x2a")]())}}))}_getStyleDefinition(t,e){let n=e[wx("0x2c")][wx("0x4")]((e=>e[wx("0x5")]===t));return n||(n=e[wx("0x1e")][wx("0x4")]((e=>e[wx("0x5")]===t))),n}[wx("0x20")](t,e,n,o){const s=[];for(const i of e[wx("0xa")]()){const e=i[wx("0x1b")](o);e&&n[wx("0x7")]((t=>e[wx("0x2b")][wx("0x27")](t)))&&s[wx("0xc")](t[wx("0x8")](i))}return s}}const Ox=["TableEditing","span","max","writer","position","detach","left","fromRange","maxRow","registerPostFixer","removeClass","downcastDispatcher","addClass","name","toViewElement","tableCell","document","createPositionAt","classes","ELEMENT_TABLE_WITH_TEXT","_getSuggestionCoords","isInContent","last","nodeAfter","TrackChangesEditing","deletion","nodeBefore","getSelectionAffectedTableCells","type","toLowerCase","ELEMENT_TABLE_ROW","root","insertion","length","*Insert:* %0","getItems","MAX_SAFE_INTEGER","join","enableCommand","enqueueChange","low","_tableSuggestions","refresh","oldRange","getRowIndexes","tablePaste","min","ELEMENT_TABLE_COLUMN_WITH_TEXT","registerElementLabel","data","createTableWalker","forceValue","setSelection","ELEMENT_TABLE_COLUMN","start","options","markMultiRangeInsertion","findAncestor","commands","_suggestionFactory","insertTableRowBelow","tableColumn","selection","getFirstRange","getAttribute","highest","_setupColumnsRowsFixing","includes","above","cell","colspan","TableUtils","_descriptionFactory","model","insertTableRowAbove","isEqual","$graveyard","values","_tablePostFixingSubtypes","ELEMENT_TABLE_ROW_WITH_TEXT","every","end","rootName","discard","removeTableColumn","*Remove:* %0","filter","order","_acceptFormatSuggestionCallbackFactory","tableRow","hasAttribute","some","insertTableColumnRight","editor","insert","table","accept","from","afterInit","map","item","getSuggestion","change","element","execute","getRanges","add","$textProxy","has","insertTable","isTouching","_splitMarkerName","differ","subType","maxColumn","registerCustomCallback","createRangeOn","removeTableRow","_getCoordsForCells","getCellLocation","insertTableColumnLeft","push","plugins","registerDescriptionCallback","minColumn","substr","get","addRange","getChildren","first"];var Fx,Px;Fx=Ox,Px=308,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("0x1e")]=["tableRow",Dx("0xd")],this[Dx("0x7b")]=new Set}[Dx("0x32")](){const t=this[Dx("0x2d")],e=t[Dx("0x19")][Dx("0x62")][Dx("0xe")];if(!t[Dx("0x4a")][Dx("0x3c")](Dx("0x52")))return;const n=t.locale,o=t.plugins.get(Dx("0x6a")),s=t.plugins.get(Dx("0x17"));o[Dx("0x18")][Dx("0x0")]("table",(t=>Yo(n,"ELEMENT_TABLE",t))),this[Dx("0x12")](),o.enableCommand(Dx("0x3d")),o[Dx("0x78")]("selectTableRow"),o[Dx("0x78")]("selectTableColumn");for(const n of[Dx("0x1a"),Dx("0xc")]){const i=t[Dx("0xa")][Dx("0x4e")](n);o.enableCommand(n,(n=>{t.model[Dx("0x36")]((t=>{n();const r=Dx("0x14")===i[Dx("0x27")],x=s.getSelectionAffectedTableCells(e),a=s[Dx("0x7e")](x),c=r?a[Dx("0x51")]-1:a[Dx("0x68")]+1,l=x[0][Dx("0x9")](Dx("0x2f")),d=s[Dx("0x2")](l,{startRow:c,endRow:c}),u=Array.from(d)[Dx("0x33")]((e=>t[Dx("0x44")](e[Dx("0x15")])));o[Dx("0x8")](u,Dx("0x29"))}))}))}for(const n of[Dx("0x48"),Dx("0x2c")]){const i=t.commands[Dx("0x4e")](n);o[Dx("0x78")](n,(n=>{t[Dx("0x19")].change((t=>{n();const r=Dx("0x58")===i.order,x=s[Dx("0x6d")](e),a=s.getColumnIndexes(x),c=r?a.first-1:a[Dx("0x68")]+1,l=x[0][Dx("0x9")](Dx("0x2f")),d=s[Dx("0x2")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array.from(d).map((e=>t[Dx("0x44")](e[Dx("0x15")])));o[Dx("0x8")](u,Dx("0xd"))}))}))}for(const n of[Dx("0x45"),Dx("0x24")]){const i=n[Dx("0x4d")](11),r=i[Dx("0x6f")](),x=r[Dx("0x4d")](0,3)+Dx("0x53"),a="table"+i,c=Dx("0x80")+i,l=Dx("0x54")+i;o[Dx("0x78")](n,(()=>{t[Dx("0x19")][Dx("0x36")]((t=>{const i=s[Dx("0x6d")](e),d=i[0].findAncestor(Dx("0x2f"));let u;if(Dx("0x45")==n){const t=s[Dx("0x7e")](i);u={startRow:t[Dx("0x51")],endRow:t.last,includeAllSlots:!0}}else{const t=s.getColumnIndexes(i);u={startColumn:t[Dx("0x51")],endColumn:t.last,includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[Dx("0x31")](g).map((({cell:t})=>t)),f=jx(m[Dx("0x26")]((t=>t[Dx("0x2a")](x)))),h=jx(m.filter((t=>!t.hasAttribute(x))))[Dx("0x33")]((e=>t[Dx("0x44")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Dx("0x29")==p.subType||Dx("0xd")==p[Dx("0x41")])){const e=this[Dx("0x66")](p);for(const n of f){const o=t[Dx("0x44")](n),i=s[Dx("0x47")](n),a=n[Dx("0x10")](x)-1,d=e[c],u=e[l];d<=i[r]&&i[r]+a<=u&&p[Dx("0x4f")](o)}}}))}))}function i(n){const o=Array[Dx("0x31")](e.getRanges())[Dx("0x33")]((t=>r.LiveRange.fromRange(t)));t[Dx("0x19")][Dx("0x36")]((e=>{const s=e.batch;n=n[Dx("0x26")]((t=>Dx("0x1c")!=t[Dx("0x71")].rootName)),e[Dx("0x4")](n),t[Dx("0xa")].get(Dx("0x45"))[Dx("0x7c")](),t.execute(Dx("0x45"),{forceDefaultExecution:!0}),t[Dx("0x19")][Dx("0x79")]((()=>{t[Dx("0x19")][Dx("0x79")](s,(t=>{const e=o[Dx("0x26")]((t=>Dx("0x1c")!=t[Dx("0x71")][Dx("0x22")]));e.length>0&&t[Dx("0x4")](e);for(const t of o)t[Dx("0x57")]()}))}))}))}function a(n){t[Dx("0x19")][Dx("0x36")]((o=>{const s=Array[Dx("0x31")](e[Dx("0x39")]()).map((t=>r.LiveRange.fromRange(t))),i=[];for(const t of n)for(const e of t[Dx("0x75")]({shallow:!0}))i[Dx("0x49")](e);for(const e of i)Dx("0x1c")!=e[Dx("0x71")].rootName&&(o[Dx("0x4")](o[Dx("0x63")](e,0)),t[Dx("0xa")][Dx("0x4e")]("removeTableColumn")[Dx("0x7c")](),t.execute(Dx("0x24"),{forceDefaultExecution:!0}));const x=s[Dx("0x26")]((t=>Dx("0x1c")!=t[Dx("0x71")][Dx("0x22")]));x[Dx("0x73")]>0&&o[Dx("0x4")](x);for(const t of s)t[Dx("0x57")]()}))}function c(t,e){return e[Dx("0x20")]((e=>t.some((t=>t.end[Dx("0x1b")](e.start)||e[Dx("0x21")][Dx("0x1b")](t[Dx("0x6")])))))}function l(t,e){return t[Dx("0x2b")]((t=>e[Dx("0x2b")]((e=>t.end[Dx("0x3e")](e[Dx("0x6")])))))}t[Dx("0x1")][Dx("0x5d")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Dx("0x7")].showSuggestionHighlights)return;const o=e[Dx("0x34")];if(!o)return;const s=n.mapper[Dx("0x60")](o);function i(t){return Array.isArray(t)?t:[t]}s&&Dx("0x61")===o[Dx("0x5f")]&&(0,x.setHighlightHandling)(s,n[Dx("0x55")],((t,e,n)=>n[Dx("0x5e")](i(e[Dx("0x64")]),t)),((t,e,n)=>n[Dx("0x5c")](i(e[Dx("0x64")]),t)))}),{priority:Dx("0x11")}),o[Dx("0x18")][Dx("0x4b")]((t=>{if(Dx("0x72")!=t[Dx("0x6e")]&&Dx("0x6b")!=t[Dx("0x6e")])return;const e=t.getContainedElement();if(null!=e&&e.is(Dx("0x37"),"table")){if(Dx("0x72")==t[Dx("0x6e")]){const e=t.getItems()[Dx("0x26")]((t=>t.is(Dx("0x3b"))))[Dx("0x33")]((t=>t[Dx("0x1")]));if(e[Dx("0x73")])return{type:"insertion",content:Yo(n,Dx("0x74"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Dx("0x77")](" ")+'"'))}}if(Dx("0x6b")==t[Dx("0x6e")]){const e=t[Dx("0x75")]().filter((t=>t.is(Dx("0x3b"))))[Dx("0x33")]((t=>t[Dx("0x1")]));if(e[Dx("0x73")])return{type:Dx("0x6b"),content:Yo(n,Dx("0x25"),Yo(n,Dx("0x65"),'"'+e[Dx("0x77")](" ")+'"'))}}}})),o[Dx("0x18")][Dx("0x4b")]((t=>{if(Dx("0x29")==t[Dx("0x41")]){const e=t[Dx("0x75")]().filter((t=>t.is(Dx("0x3b")))).map((t=>t[Dx("0x1")])),o=this._getSuggestionCoords(t),s=o[Dx("0x5a")]-o.minRow+1;if(Dx("0x72")==t.type)return e[Dx("0x73")]?{type:"insertion",content:Yo(n,Dx("0x74"),Yo(n,Dx("0x1f"),[s,'"'+e[Dx("0x77")](" ")+'"']))}:{type:Dx("0x72"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x70"),s))};if(Dx("0x6b")==t[Dx("0x6e")])return e[Dx("0x73")]?{type:"deletion",content:Yo(n,Dx("0x25"),Yo(n,Dx("0x1f"),[s,'"'+e[Dx("0x77")](" ")+'"']))}:{type:Dx("0x6b"),content:Yo(n,Dx("0x25"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Dx("0xd")==t[Dx("0x41")]){const e=t[Dx("0x75")]()[Dx("0x26")]((t=>t.is("$textProxy")))[Dx("0x33")]((t=>t[Dx("0x1")])),o=this[Dx("0x66")](t),s=o[Dx("0x42")]-o[Dx("0x4c")]+1;if(Dx("0x72")==t[Dx("0x6e")])return e[Dx("0x73")]?{type:Dx("0x72"),content:Yo(n,Dx("0x74"),Yo(n,Dx("0x81"),[s,'"'+e[Dx("0x77")](" ")+'"']))}:{type:Dx("0x72"),content:Yo(n,Dx("0x74"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Dx("0x6b")==t[Dx("0x6e")])return e[Dx("0x73")]?{type:"deletion",content:Yo(n,Dx("0x25"),Yo(n,Dx("0x81"),[s,'"'+e[Dx("0x77")](" ")+'"']))}:{type:Dx("0x6b"),content:Yo(n,Dx("0x25"),Yo(n,Dx("0x5"),s))}}})),o[Dx("0xb")][Dx("0x43")](Dx("0x72"),Dx("0x29"),Dx("0x23"),i),o[Dx("0xb")][Dx("0x43")](Dx("0x6b"),Dx("0x29"),Dx("0x30"),i),o._suggestionFactory.registerCustomCallback("insertion",Dx("0xd"),Dx("0x23"),a),o[Dx("0xb")][Dx("0x43")]("deletion",Dx("0xd"),"accept",a),o[Dx("0xb")][Dx("0x43")](Dx("0x72"),Dx("0xd"),Dx("0x77"),c),o[Dx("0xb")][Dx("0x43")](Dx("0x6b"),Dx("0xd"),"join",c),o[Dx("0xb")][Dx("0x43")](Dx("0x72"),Dx("0x29"),"join",l),o[Dx("0xb")][Dx("0x43")](Dx("0x6b"),Dx("0x29"),"join",l)}[Dx("0x28")](){const t=this[Dx("0x2d")],e=t[Dx("0x19")].document[Dx("0xe")];return(n,o)=>{t[Dx("0x19")][Dx("0x36")]((s=>{const{commandName:i,commandParams:x}=o;let a=n[0].end[Dx("0x6c")];x&&x[0]&&!1===x[0][Dx("0x3")]&&(a=n[0].start[Dx("0x69")]);const c=s.createRangeIn(a);if(Dx("0x1c")==c[Dx("0x71")].rootName)return;const l=Array.from(e.getRanges())[Dx("0x33")]((t=>r.LiveRange[Dx("0x59")](t)));s[Dx("0x4")](c),t[Dx("0xa")][Dx("0x4e")](i)[Dx("0x7c")](),x[Dx("0x49")]({forceDefaultExecution:!0}),t[Dx("0x38")](i,...x);const d=l[Dx("0x26")]((t=>Dx("0x1c")!=t.root.rootName));d[Dx("0x73")]>0&&s[Dx("0x4")](d);for(const t of l)t[Dx("0x57")]()}))}}[Dx("0x46")](t){const e=this[Dx("0x2d")][Dx("0x4a")][Dx("0x4e")](Dx("0x17"));let n=Number[Dx("0x76")],o=Number.MIN_SAFE_INTEGER,s=Number[Dx("0x76")],i=Number.MIN_SAFE_INTEGER;for(const r of t){if(Dx("0x1c")==r[Dx("0x71")][Dx("0x22")])continue;const{row:t,column:x}=e[Dx("0x47")](r),a=r[Dx("0x2a")]("rowspan")?r.getAttribute("rowspan")-1:0,c=r.hasAttribute(Dx("0x16"))?r[Dx("0x10")](Dx("0x16"))-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("0x12")](){const t=this[Dx("0x2d")],e=t[Dx("0x4a")][Dx("0x4e")]("TrackChangesEditing"),n=t[Dx("0x4a")].get(Dx("0x17"));t[Dx("0x19")].document.on("change:data",(()=>{const n=Array[Dx("0x31")](t[Dx("0x19")][Dx("0x62")][Dx("0x40")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:i}=e[Dx("0x3f")](t);if("suggestion"!=n)continue;if(null!=o[Dx("0x7d")])continue;const r=e[Dx("0x35")](s);this[Dx("0x1e")][Dx("0x13")](i)&&this[Dx("0x7b")][Dx("0x3a")](r)}}),{priority:Dx("0x7a")});const o=(t,e)=>{let o=!1;const s=e[Dx("0x44")](t),i=t[Dx("0x9")](Dx("0x2f")),r=n.getCellLocation(t);for(const e of this._tableSuggestions){const n=e[Dx("0x41")],x=n.startsWith(Dx("0x7f")),a=n[Dx("0x4d")](x?10:5),c=a.toLowerCase(),l=c[Dx("0x4d")](0,3)+Dx("0x53"),d=Dx("0x80")+a,u=Dx("0x54")+a;if(!e[Dx("0x67")])continue;if(i!=e[Dx("0xf")]().start[Dx("0x9")](Dx("0x2f")))continue;if(e.isIntersectingWithRange(s))continue;const g=t.hasAttribute(l)?t[Dx("0x10")](l)-1:0,m=this[Dx("0x66")](e),f=m[d],h=m[u];f<=r[c]&&r[c]+g<=h&&(e[Dx("0x4f")](s),o=!0)}return o};t[Dx("0x19")][Dx("0x62")][Dx("0x5b")]((e=>{let n=!1;for(const s of t.model[Dx("0x62")][Dx("0x40")].getChanges())if(Dx("0x2e")==s[Dx("0x6e")])if(Dx("0x29")==s.name)for(const t of s.position[Dx("0x69")][Dx("0x50")]())n=n||o(t,e);else"tableCell"==s.name&&(n=n||o(s[Dx("0x56")][Dx("0x69")],e));return n}))}[Dx("0x66")](t){return this[Dx("0x46")](t[Dx("0x39")]().map((t=>t[Dx("0x6")][Dx("0x69")])))}}function jx(t){return Array[Dx("0x31")](new Set(t)[Dx("0x1d")]())}const Ux=["filter","set:isEnabled","$graveyard","commandName","length","getAncestors","getRanges","registerDescriptionCallback","push","accept","author","afterInit","registerCustomCallback","TrackChangesEditing","selection","TableUtils","detach","mergeTableCellLeft","splitTableCellVertically","getSelectionAffectedTableCells","*Split cell:* vertically","editor","splitTableCellHorizontally","root","markMultiRangeBlockFormat","element","return","commands","value","document","refresh","createRangeOn","type","_isForcedDefaultExecutionBlock","_suggestionFactory","*Split cell:* horizontally","getCellLocation","has","map","tableCell","plugins","locale","format","insertion","getFirstPosition","enableCommand","size","mergeTableCells","table","mergeTableCellDown","TableEditing","add","direction","forceDefaultExecution","model","execute","_areMergableCells","mergeTableCellRight","find","formatBlock","get","from","cell","containsRange","findAncestor","fromRange","horizontally","change","deletion","_descriptionFactory","mergeTableCellUp","createTableWalker","_areSelectedCellsMergable","subType","_tablePostFixingSubtypes"];var Gx,Hx;Gx=Ux,Hx=387,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Wx=function(t,e){return Ux[t-=0]};class zx extends t.Plugin{static get requires(){return[Bx]}[Wx("0x4a")](){const t=this[Wx("0x9")],e=t[Wx("0x2a")][Wx("0x11")][Wx("0x2")],n=t[Wx("0x1d")];if(!t.plugins[Wx("0x19")](Wx("0x26")))return;const o=t[Wx("0x1c")][Wx("0x30")](Wx("0x1")),s=t.plugins[Wx("0x30")](Wx("0x3")),i=t[Wx("0x1c")].get(Bx);i[Wx("0x3e")][Wx("0x47")](Wx("0x23")),o.enableCommand(Wx("0x23"),(()=>{const e=s[Wx("0x7")](t[Wx("0x2a")][Wx("0x11")][Wx("0x2")]);t.model.change((()=>{o[Wx("0xc")](e,{commandName:"mergeTableCells",commandParams:[]},[],Wx("0x23"))}))})),t.commands[Wx("0x30")](Wx("0x23")).on(Wx("0x2b"),((e,n)=>{t[Wx("0xf")].get("trackChanges")[Wx("0x10")]&&(n[Wx("0x43")]>0&&n[n[Wx("0x43")]-1]&&n[n[Wx("0x43")]-1][Wx("0x29")]||o[Wx("0x15")]||this[Wx("0x3c")]()||e.stop())}),{priority:"highest"});for(const e of["mergeTableCellUp",Wx("0x2d"),Wx("0x25"),Wx("0x5")]){const n=t.commands.get(e);o[Wx("0x21")](e,(()=>{const e=t[Wx("0x2a")].document[Wx("0x2")].getFirstPosition()[Wx("0x44")]()[Wx("0x2e")]((t=>t.is(Wx("0xd"),Wx("0x1b")))),s=n[Wx("0x10")];t[Wx("0x2a")][Wx("0x37")]((()=>{o[Wx("0xc")]([e,s],{commandName:Wx("0x23"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Wx("0x6"),"splitTableCellHorizontally"]){const n=t[Wx("0xf")][Wx("0x30")](e);o.enableCommand(e,(()=>{const i=s[Wx("0x7")](t[Wx("0x2a")].document.selection)[0],r=i[Wx("0x34")](Wx("0x24")),{column:x,row:a}=s[Wx("0x18")](i);let c=[];if(Wx("0x36")==n[Wx("0x28")]){const t=s[Wx("0x3b")](r,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Wx("0x31")](t)[Wx("0x1a")]((t=>t.cell))}else{const t=s[Wx("0x3b")](r,{column:x,includeAllSlots:!0});c=Array.from(t)[Wx("0x1a")]((t=>t[Wx("0x32")]))}t.model[Wx("0x37")]((t=>{o.markBlockFormat(t[Wx("0x13")](i),{commandName:e,commandParams:[]},c,e)}))}))}o[Wx("0x39")][Wx("0x46")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Wx("0x42")]?{type:Wx("0x1e"),content:Yo(n,"*Merge cells*")}:void 0})),o[Wx("0x39")][Wx("0x46")]((t=>{const{data:e}=t;if(e)return Wx("0x6")==e[Wx("0x42")]?{type:Wx("0x1e"),content:Yo(n,Wx("0x8"))}:Wx("0xa")==e[Wx("0x42")]?{type:Wx("0x1e"),content:Yo(n,Wx("0x17"))}:void 0}));const x=i._acceptFormatSuggestionCallbackFactory();for(const t of[Wx("0x3a"),"mergeTableCellRight",Wx("0x25"),"mergeTableCellLeft"])o[Wx("0x16")][Wx("0x0")]("formatBlock",t,"accept",x);for(const t of[Wx("0x6"),Wx("0xa")])o._suggestionFactory.registerCustomCallback(Wx("0x2f"),t,Wx("0x48"),x);o[Wx("0x16")][Wx("0x0")](Wx("0x2f"),Wx("0x23"),"accept",(n=>{t[Wx("0x2a")][Wx("0x37")]((o=>{const s=Array[Wx("0x31")](e[Wx("0x45")]())[Wx("0x1a")]((t=>r.LiveRange[Wx("0x35")](t)));o.setSelection(n),t.commands[Wx("0x30")](Wx("0x23"))[Wx("0x12")](),t[Wx("0x2b")](Wx("0x23"),{forceDefaultExecution:!0});const i=s[Wx("0x3f")]((t=>Wx("0x41")!=t[Wx("0xb")].rootName));i.length>0&&o.setSelection(i);for(const t of s)t[Wx("0x4")]()}))}));for(const e of["mergeTableCellUp",Wx("0x25"),Wx("0x5"),"mergeTableCellRight"]){const n=t[Wx("0xf")][Wx("0x30")](e);n.on(Wx("0x40"),((e,o,s)=>{if(s){const o=t[Wx("0x2a")].document[Wx("0x2")][Wx("0x20")]()[Wx("0x44")]()[Wx("0x2e")]((t=>t.is(Wx("0xd"),Wx("0x1b"))));this._areMergableCells(n[Wx("0x10")],o)||(e[Wx("0xe")]=!1,e.stop())}}),{priority:"low"})}}[Wx("0x3c")](){const t=this[Wx("0x9")][Wx("0xf")].get(Wx("0x23")),e=this.editor[Wx("0x1c")].get("TableUtils");if(!t.isEnabled)return!1;const n=e[Wx("0x7")](this[Wx("0x9")].model[Wx("0x11")][Wx("0x2")]);for(const t of n)for(const e of n)if(t!=e&&!this[Wx("0x2c")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Wx("0x9")].plugins[Wx("0x30")](Wx("0x1")),o=this.editor[Wx("0x2a")][Wx("0x13")](t),s=this[Wx("0x9")].model[Wx("0x13")](e),i=new Set,r=new Set;for(const t of n.getSuggestions())if((Wx("0x1f")==t[Wx("0x14")]||Wx("0x38")==t[Wx("0x14")]||Wx("0x23")==t[Wx("0x3d")])&&t.isInContent)for(const e of t[Wx("0x45")]())e[Wx("0x33")](o,!0)&&i[Wx("0x27")](t[Wx("0x14")]+":"+t[Wx("0x49")].id),e[Wx("0x33")](s,!0)&&r[Wx("0x27")](t[Wx("0x14")]+":"+t[Wx("0x49")].id);if(i[Wx("0x22")]!=r[Wx("0x22")])return!1;for(const t of i)if(!r[Wx("0x19")](t))return!1;return!0}}const Vx=["_suggestionFactory","createPositionAfter","TrackChangesEditing","markerName","markerRange","markerNameToElements","format","getChild","findAncestor","getRowIndexes","table","getSuggestion","removeMarker:suggestion","enableCommand","removeAttribute","highest","ck-suggestion-marker-","childCount","TableUtils","get","addClass","TableEditing","value","last","getAttribute","showSuggestionHighlights","commandName","activeMarkers","consume","model","consumable","change","end","data","forceValue","item","setAttribute","writer","from","FORMAT_HEADER_COLUMN","FORMAT_REGULAR_ROW","getCellLocation","accept","createPositionBefore","commands","toViewElement","removeClass","setTableRowHeader","includes","nodeBefore","formatBlock","headingRows","getColumnIndexes","addMarker:suggestion","registerDescriptionCallback","registerCustomCallback","createRange","editing","stop","options","parent","_splitMarkerName","getSelectionAffectedTableCells","_descriptionFactory","plugins","downcastDispatcher","start","nodeAfter","selection","document","name","first","markBlockFormat","ck-suggestion-marker--active","setTableColumnHeader","mapper","cell","headingColumns","FORMAT_REGULAR_COLUMN","FORMAT_HEADER_ROW","commandParams"];var Kx,qx;Kx=Vx,qx=407,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 requires(){return[Bx]}afterInit(){const t=this.editor;if(!t.plugins.has(Xx("0x13")))return;const e=t.locale,n=t[Xx("0x3e")][Xx("0x11")](Xx("0x0")),o=t[Xx("0x3e")].get("TableUtils"),s=t[Xx("0x3e")][Xx("0x11")](Bx);function i({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,i,r)=>{const{type:x,id:a}=n[Xx("0x3b")](i.markerName),c=n[Xx("0x9")](a);if(!c[Xx("0x1f")]||Xx("0x48")!=c[Xx("0x1f")].commandName)return;if(i[Xx("0x21")])return void s[Xx("0x38")]();if(!r[Xx("0x1c")][Xx("0x1a")](i[Xx("0x2")],s[Xx("0x44")]))return;const l=i[Xx("0x2")][Xx("0x40")][Xx("0x41")],d=i[Xx("0x2")][Xx("0x1e")][Xx("0x2f")],u=l[Xx("0x3a")][Xx("0x3a")],{column:g}=o.getCellLocation(l),{column:m}=o[Xx("0x27")](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.cell,c=r.mapper[Xx("0x2b")](s);r[Xx("0x23")].addClass(Xx("0xe")+x,c),e&&r[Xx("0x23")][Xx("0x22")]("data-suggestion",a,c),r.mapper.bindElementToMarker(c,i[Xx("0x1")]),t&&(n[Xx("0x19")][Xx("0x2e")](i.markerName)?r[Xx("0x23")][Xx("0x12")](Xx("0x47"),c):r[Xx("0x23")][Xx("0x2c")](Xx("0x47"),c))}}}}n[Xx("0xb")](Xx("0x2d"),((e,s)=>{const i=o.getSelectionAffectedTableCells(t[Xx("0x1b")][Xx("0x43")][Xx("0x42")]),r=o[Xx("0x7")](i),x=i[0][Xx("0x6")](Xx("0x8")),a=x[Xx("0x16")](Xx("0x31"))||0,c=s&&null!==s[Xx("0x20")]?s[Xx("0x20")]:!t[Xx("0x2a")][Xx("0x11")](Xx("0x2d"))[Xx("0x14")],l=c?r[Xx("0x15")]:r[Xx("0x45")],d=x.getChild(l);let u;if(c){const e=x[Xx("0x5")](a);if(d.index<e.index)return;u=t[Xx("0x1b")].createRange(t[Xx("0x1b")][Xx("0x29")](e.getChild(0)),t.model[Xx("0x50")](d[Xx("0x5")](d[Xx("0xf")]-1)))}else{const e=x[Xx("0x5")](a-1);if(!e)return;u=t[Xx("0x1b")][Xx("0x36")](t[Xx("0x1b")].createPositionBefore(d[Xx("0x5")](0)),t[Xx("0x1b")][Xx("0x50")](e[Xx("0x5")](e[Xx("0xf")]-1)))}t[Xx("0x1b")][Xx("0x1d")]((()=>{n[Xx("0x46")](u,{commandName:Xx("0x2d"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[Xx("0xb")](Xx("0x48"),((e,o)=>{const s=t[Xx("0x3e")][Xx("0x11")](Xx("0x10")),i=s[Xx("0x3c")](t.model[Xx("0x43")][Xx("0x42")]),r=s[Xx("0x32")](i),x=i[0][Xx("0x6")]("table"),a=x[Xx("0x16")](Xx("0x4b"))||0,c=o&&null!==o[Xx("0x20")]?o[Xx("0x20")]:!t[Xx("0x2a")][Xx("0x11")](Xx("0x48"))[Xx("0x14")];let l;const d=x.getChild(0),u=c?r[Xx("0x15")]:r[Xx("0x45")],g=s.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Xx("0x24")](g)[0][Xx("0x4a")];if(c){const e=d.getChild(a);if(m.isBefore(e))return;l=t[Xx("0x1b")][Xx("0x36")](t[Xx("0x1b")].createPositionBefore(e),t[Xx("0x1b")][Xx("0x50")](m))}else{const e=d.getChild(a-1);if(!e)return;l=t[Xx("0x1b")][Xx("0x36")](t[Xx("0x1b")][Xx("0x29")](m),t.model[Xx("0x50")](e))}t[Xx("0x1b")][Xx("0x1d")]((()=>{n[Xx("0x46")](l,{commandName:Xx("0x48"),commandParams:[{forceValue:c}]},[],Xx("0x48"))}))})),t.editing[Xx("0x3f")].on(Xx("0x33"),i(),{priority:Xx("0xd")}),t[Xx("0x1f")][Xx("0x3f")].on(Xx("0x33"),((t,e,n)=>{n[Xx("0x39")][Xx("0x17")]&&i({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0xd")}),t[Xx("0x37")][Xx("0x3f")].on(Xx("0xa"),((t,e,o)=>{const{type:s,id:i}=n[Xx("0x3b")](e.markerName),r=n.getSuggestion(i);if(!r[Xx("0x1f")]||"setTableColumnHeader"!=r[Xx("0x1f")][Xx("0x18")])return;const x=o[Xx("0x49")][Xx("0x3")](e[Xx("0x1")]);if(x)for(const t of x)o[Xx("0x23")][Xx("0x2c")]("ck-suggestion-marker-"+s,t),o.writer.removeClass("ck-suggestion-marker--active",t),o.writer[Xx("0xc")]("data-suggestion",t),o[Xx("0x49")].unbindElementFromMarkerName(t,e[Xx("0x1")])}),{priority:Xx("0xd")}),n[Xx("0x3d")][Xx("0x34")]((t=>{const{data:n}=t;if(n){if(Xx("0x2d")==n[Xx("0x18")]){const t=n[Xx("0x4e")][0][Xx("0x20")];return o(Yo(e,Xx(t?"0x4d":"0x26")))}if(Xx("0x48")==n.commandName){const t=n[Xx("0x4e")][0][Xx("0x20")];return o(Yo(e,Xx(t?"0x25":"0x4c")))}}function o(t){return{type:Xx("0x4"),content:Yo(e,"*Format:* %0",t)}}}));const r=s._acceptFormatSuggestionCallbackFactory();n[Xx("0x4f")][Xx("0x35")](Xx("0x30"),"setTableRowHeader",Xx("0x28"),r),n[Xx("0x4f")][Xx("0x35")](Xx("0x30"),"setTableColumnHeader",Xx("0x28"),r)}}const Qx=["add","registerPostFixer","getSelectionAffectedTableCells","options","tableCellBorderWidth","getChangedMarkers","editing","tableCellHorizontalAlignment","selection","cell","*Replace table cells*","reduce","startsWith","map","editingDowncast","rowInsertionRanges","tablePaste","removeMarker","getContainedElement","updateMarker","previous","plugins","first","next","registerDescriptionCallback","nodeAfter","accept","suggestion","keys","remove","documentSelection","getRanges","document","subType","markerToHighlight","TableUtils","markers","length","insertion","get","set","suggestionLoaded","conversion","view","rootName","ck-suggestion-marker-insertion","createRangeIn","getAttributes","low","discard","for","insert","insertColumns","createTableWalker","columns","deletionRanges","unwrap","_isForcedDefaultExecutionBlock","_createdBatches","has","registerCustomCallback","markMultiRangeInsertion","elementToElement","tableCellSuggestion","attributes","join","find","change","cells","_replaceTableSlotCell","some","previousSibling","clipboardOutput","rowInsertionIndexes","markMultiRangeBlockFormat","formatBlock","TrackChangesEditing","getChanges","isEqual","_tablePostFixingSubtypes","oldRange","getShiftedBy","requires","schema","push","getRange","paragraph","afterInit","suggestion:formatBlock:tablePasteCell","insertionRanges","findAncestor","isInContent","createRange","getRowIndexes","name","editor","tablePasteRow","stop","fill","getChildren","tableCellVerticalAlignment","high","getColumns","tablePasteCell","root","suggestionUnloaded","redo","insertRows","wrap","type","tableCellBorderColor","getMarkers","setAttribute","tablePasteChainId","end","nextSibling","endRow","ck-suggestion-marker--active","differ","getItems","column","TableClipboard","$graveyard","hasSuggestion","removeMarkers","model","getSuggestion","_suggestionFactory","columnInsertionIndexes","getRows","tableCell","containsRange","newRange","getSuggestionCallback","removeColumns","endColumn","value","register","commands","position","author","_splitMarkerName","isEmpty","tablePasteColumn","Users","tableCellBackgroundColor","markerName","createElement","createRangeOn","markerAttributes","forceDefaultExecution","locale","from","return","getSuggestions","filter","element","suggestion-td","fromEntries","getTableIfOnlyTableInContent","_getCoordsForCells","activeMarkers","includes","deletion","columnInsertionRanges"];var Jx,Zx;Jx=Qx,Zx=278,function(t){for(;--t;)Jx.push(Jx.shift())}(++Zx);const Yx=function(t,e){return Qx[t-=0]},ta=[Yx("0x38"),Yx("0xa2"),"tableCellBorderStyle",Yx("0x3b"),Yx("0x98"),Yx("0x20"),"tableCellPadding"],ea=Object.fromEntries(ta.map((t=>[t,null])));class na extends t.Plugin{static get[Yx("0x86")](){return[Bx]}[Yx("0x8b")](){const t=this[Yx("0x93")];if(!t[Yx("0x49")][Yx("0x6f")](Yx("0x8")))return;const n=t[Yx("0x49")][Yx("0x5b")](Yx("0x80")),o=t[Yx("0x49")][Yx("0x5b")](Yx("0x57")),s=t[Yx("0x49")][Yx("0x5b")](Bx),i=t[Yx("0x49")][Yx("0x5b")]("TableClipboard");s[Yx("0x83")][Yx("0x88")](Yx("0x94"),Yx("0x1e")),t.model[Yx("0x87")][Yx("0x18")](Yx("0x73"),{allowIn:Yx("0x11"),allowContentOf:Yx("0x11"),isLimit:!0}),t.conversion[Yx("0x72")]({model:Yx("0x73"),view:Yx("0x2c")});let r=null;t[Yx("0xc")].on("insertContent",((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Yx("0x25")]||n[Yx("0x6d")]||this[Yx("0x93")][Yx("0x19")][Yx("0x5b")]("trackChanges")[Yx("0x17")]&&function(t,e,n,o,s){if(e&&!e.is(Yx("0x52")))return!1;const i=s[Yx("0x2e")](t,n);if(!i||!sa(i,void 0,o))return!1;const r=o[Yx("0x36")](n[Yx("0x54")][Yx("0x3c")]);if(!r[Yx("0x59")])return!1;const x=r[0][Yx("0x8e")]("table"),a=o[Yx("0x91")](r),c=o.getColumnIndexes(r),l={startRow:a[Yx("0x4a")],endRow:a.last,startColumn:c[Yx("0x4a")],endColumn:c.last};return 1==r[Yx("0x59")]&&(l[Yx("0x3")]+=o[Yx("0x10")](i)-1,l[Yx("0x16")]+=o[Yx("0x9a")](i)-1),sa(x,l,o)}(a,c,t[Yx("0xc")],o,i)&&(s[Yx("0x95")](),r={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0xc")][Yx("0x77")]((()=>{t.model.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.length&&n[Yx("0x71")](s,Yx("0x94"),{tablePasteChainId:o}),i[Yx("0x59")]&&n[Yx("0x71")](i,"tablePasteColumn",{tablePasteChainId:o}),a[Yx("0x59")]&&n[Yx("0x71")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x59")]&&n.markMultiRangeDeletion(c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Yx("0x7e")](l[Yx("0x41")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x9b"),{tablePasteChainId:o});if(d){const e=d[Yx("0xa3")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const i=t[Yx("0xc")][Yx("0x23")](o),r=e[Yx("0x76")]((t=>t[Yx("0x89")]()[Yx("0x82")](i)));r&&n[Yx("0x88")]([r.name,s])}n[Yx("0x59")]&&d[Yx("0xa4")](Yx("0x24"),Object[Yx("0x2d")](n))}r=null})))}),{priority:e.priorities.high+10}),t[Yx("0x49")][Yx("0x5b")]("TableClipboard").on(Yx("0x79"),((t,e)=>{const[n,o,,s]=e;if(!r)return;t.stop();const i=n[Yx("0x3d")],x=o,a=oa(i),c=oa(x);t[Yx("0x28")]=i;let l=null,d=null;if(c||a)if(a&&!c){s[Yx("0x51")](i.getChild(0));for(const t of Array[Yx("0x27")](x[Yx("0x97")]()))s[Yx("0x67")](t,i,Yx("0x1"));const t=r[Yx("0x7d")][Yx("0x31")](n.row),e=r[Yx("0xf")][Yx("0x31")](n[Yx("0x7")]);t||e||(l=s[Yx("0x62")](i))}else c&&!a&&(d=s[Yx("0x62")](i));else{const t=s[Yx("0x22")](Yx("0x73")),e=s[Yx("0x22")](Yx("0x73"));s[Yx("0xa0")](s.createRangeIn(i),e),s.insert(t,i,0);for(const e of Array[Yx("0x27")](x[Yx("0x97")]()))s.insert(e,t,Yx("0x1"));l=s[Yx("0x23")](t),d=s[Yx("0x23")](e)}const u=Array[Yx("0x27")](x[Yx("0x63")]())[Yx("0x2a")]((([t])=>ta[Yx("0x31")](t)));r[Yx("0x78")].push({element:i,attributes:u[Yx("0x59")]?Object.fromEntries(u):null}),l&&r[Yx("0x8d")][Yx("0x88")](l),d&&r[Yx("0x6b")][Yx("0x88")](d)}),{priority:Yx("0x99")}),o.on(Yx("0x68"),((e,n)=>{const[s,i={}]=n;if(!r)return;const x=i.at||0,a=i[Yx("0x6a")]||1;r[Yx("0xf")]=new Array(a)[Yx("0x96")](x)[Yx("0x41")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))r[Yx("0x33")][Yx("0x88")](t[Yx("0xc")].createRangeOn(e))}),{priority:Yx("0x64")}),o.on(Yx("0x9f"),((e,n)=>{const[s,i={}]=n;if(!r)return;const x=i.at||0,a=i.rows||1;r[Yx("0x7d")]=new Array(a).fill(x)[Yx("0x41")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))r[Yx("0x43")][Yx("0x88")](t[Yx("0xc")][Yx("0x23")](e))}),{priority:"low"}),n._descriptionFactory[Yx("0x4c")]((e=>{if(e.subType&&e[Yx("0x55")][Yx("0x40")](Yx("0x44")))return e[Yx("0x48")]?{}:{type:"insertion",content:Yo(t[Yx("0x26")],Yx("0x3e"))}}));const x=()=>!1;for(const t of[Yx("0x44"),Yx("0x1e"),"tablePasteRow",Yx("0x9b")])n._suggestionFactory.registerCustomCallback(Yx("0x5a"),t,Yx("0x75"),x),n[Yx("0xe")][Yx("0x70")]("deletion",t,Yx("0x75"),x),n[Yx("0xe")][Yx("0x70")](Yx("0x7f"),t,Yx("0x75"),x);n[Yx("0xe")].registerCustomCallback(Yx("0x7f"),Yx("0x9b"),"discard",x),n._suggestionFactory[Yx("0x70")](Yx("0x7f"),Yx("0x9b"),Yx("0x4e"),((e,n,o)=>{const s=e[Yx("0x41")]((t=>t.getContainedElement())).filter((t=>t)),i=new Map(s[Yx("0x41")]((t=>[t,null])));if(r)for(const{element:t,attributes:e}of r[Yx("0x78")])e&&i[Yx("0x5c")](t,e);else if(o&&o[Yx("0x24")])for(const[e,n]of Object.entries(o[Yx("0x24")])){const o=t.model[Yx("0x58")][Yx("0x5b")](e),s=o?o[Yx("0x89")]()[Yx("0x46")]():null;s&&i[Yx("0x5c")](s,n)}t[Yx("0xc")][Yx("0x77")]((t=>{for(const[e,n]of i)t.setAttributes({...ea,...n},e)}))}));const a=(e,o)=>{n[Yx("0xe")][Yx("0x70")](e,Yx("0x44"),o,((s,i,r)=>{t[Yx("0xc")].change((t=>{const x=[];for(const t of s){const e=t.start[Yx("0x4d")];e.is(Yx("0x2b"),Yx("0x73"))&&x[Yx("0x88")](e)}n[Yx("0xe")][Yx("0x14")](e,null,o)(s,i,r);for(const e of x)Yx("0x9")!=e[Yx("0x9c")][Yx("0x60")]&&t[Yx("0x6c")](e)}))}))};a("insertion","accept"),a(Yx("0x5a"),Yx("0x65")),a(Yx("0x32"),"accept"),a("deletion",Yx("0x65")),n[Yx("0xe")][Yx("0x70")](Yx("0x5a"),Yx("0x94"),Yx("0x65"),(t=>{const e=t[Yx("0x41")]((t=>t.getContainedElement())),n=e[0].findAncestor("table"),{minRow:i,maxRow:r}=s[Yx("0x2f")](e);o.removeRows(n,{at:i,rows:r-i+1})})),n._suggestionFactory[Yx("0x70")](Yx("0x5a"),"tablePasteColumn",Yx("0x65"),(t=>{const e=t[Yx("0x41")]((t=>t.getContainedElement())),n=e[0].findAncestor("table"),{minColumn:i,maxColumn:r}=s._getCoordsForCells(e);o[Yx("0x15")](n,{at:i,columns:r-i+1})}));const c=(t,e)=>{if(!e.subType||!e[Yx("0x55")].startsWith(Yx("0x44")))return;const o=e[Yx("0x74")][Yx("0x0")],s=n[Yx("0x29")]()[Yx("0x2a")]((t=>t[Yx("0x8f")]&&t.attributes&&t[Yx("0x74")].tablePasteChainId==o));s[Yx("0x59")]&&e.getAllAdjacentSuggestions()[Yx("0x59")]!=s[Yx("0x59")]&&s[Yx("0x3f")](((t,e)=>(t[Yx("0x4b")]=e,e[Yx("0x48")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x1c")](t[Yx("0x21")]),s=["ck-suggestion-marker",Yx("0x61")],i=n[Yx("0x30")][Yx("0x31")](t[Yx("0x21")]);return i&&s[Yx("0x88")](Yx("0x4")),{classes:s,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on(Yx("0x5d"),c,{priority:Yx("0x99")}),n.on(Yx("0x9d"),c,{priority:Yx("0x99")}),t[Yx("0xc")][Yx("0x54")][Yx("0x35")]((()=>{let e=!1;const o=Array[Yx("0x27")](t[Yx("0xc")].document[Yx("0x5")][Yx("0x39")]());for(const{name:s,data:i}of o){const{group:o,type:r,id:x}=n._splitMarkerName(s);if(Yx("0x4f")!=o||Yx("0x32")!=r||i.oldRange)continue;if(!n[Yx("0xa")](x))continue;const a=n[Yx("0xd")](x).getRanges(),c=t[Yx("0x49")].get("Users").me;for(const t of n.getSuggestions())if(t[Yx("0x8f")]&&t[Yx("0x1b")]==c&&Yx("0x7f")==t[Yx("0xa1")]&&Yx("0x9b")==t[Yx("0x55")]&&t[Yx("0x53")]().every((t=>a[Yx("0x7a")]((e=>e.containsRange(t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Yx("0x8f")]&&(n[Yx("0x65")](),e=!0)}return e})),t[Yx("0xc")].document[Yx("0x35")]((e=>{const o=t[Yx("0x19")][Yx("0x5b")](Yx("0x9e"));if(!o||!o[Yx("0x6e")].has(e.batch))return!1;let s=!1;const i=t[Yx("0x49")].get(Yx("0x1f")).me,r=t[Yx("0xc")][Yx("0x54")][Yx("0x5")][Yx("0x81")](),x=Array[Yx("0x27")](t[Yx("0xc")][Yx("0x54")][Yx("0x5")][Yx("0x39")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:r}=n[Yx("0x1c")](t);return Yx("0x4f")==o&&Yx("0x44")==s&&r==i.id&&!e[Yx("0x84")]}));for(const t of r){if(Yx("0x67")!=t.type||Yx("0x73")!=t[Yx("0x92")]||1!=t[Yx("0x59")])continue;const n=e[Yx("0x90")](t.position,t[Yx("0x1a")][Yx("0x85")](1));if(!x[Yx("0x76")]((({data:t})=>t[Yx("0x13")][Yx("0x82")](n))))for(const{name:t,data:o}of x)if(n[Yx("0x12")](o.newRange)){e[Yx("0x47")](t,{range:n}),s=!0;break}}return s})),t.model[Yx("0x54")][Yx("0x35")]((e=>{let o=!1;const s=t[Yx("0x49")][Yx("0x5b")](Yx("0x1f")).me,i=n.getSuggestions().filter((t=>t[Yx("0x8f")]&&t[Yx("0x1b")]==s)),r=new Set,x=new Set;for(const t of i)if("tablePaste"==t.subType)for(const e of t[Yx("0xa3")]()){const n=e[Yx("0x89")]()[Yx("0x46")]();if(n)if(n.is("element",Yx("0x73"))&&oa(n)){t[Yx("0x45")](e[Yx("0x92")]),r[Yx("0x34")](n),o=!0;const s=n[Yx("0x2")],i=n[Yx("0x7b")],a=s&&s.is("element",Yx("0x73")),c=i&&i.is(Yx("0x2b"),Yx("0x73"));a&&!r[Yx("0x6f")](s)&&x[Yx("0x34")](s),c&&!r[Yx("0x6f")](i)&&x.add(i)}else n.is(Yx("0x2b"),"paragraph")&&n[Yx("0x1d")]&&(t[Yx("0x45")](e[Yx("0x92")]),o=!0)}else if("tablePasteCell"==t[Yx("0x55")]){if(!t[Yx("0x74")]||!t[Yx("0x74")][Yx("0x0")])continue;const e=t[Yx("0x74")].markerAttributes;if(e&&Object[Yx("0x50")](e).length)continue;const n=t.attributes[Yx("0x0")];let s=!0,r=!0;for(const e of i)if(e[Yx("0x55")]&&e[Yx("0x55")].startsWith(Yx("0x44"))){if(!e[Yx("0x74")][Yx("0x0")]){r=!1;break}if(e.id!=t.id&&e[Yx("0x74")].tablePasteChainId==n){s=!1;break}}r&&s&&(t[Yx("0xb")](),o=!0)}for(const t of r)e.remove(t);for(const t of x)e[Yx("0x6c")](t);return o})),t[Yx("0x5e")].for(Yx("0x42")).markerToHighlight({model:Yx("0x8c"),view:(t,e)=>l(t),converterPriority:"high"}),t[Yx("0x5e")][Yx("0x66")]("dataDowncast")[Yx("0x56")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[Yx("0x37")].showSuggestionHighlights?l(t,!1):null,converterPriority:"high"});const d=t[Yx("0x3a")][Yx("0x5f")];this.listenTo(d[Yx("0x54")],Yx("0x7c"),((t,e)=>{const n=[];for(const t of d[Yx("0x62")](e.content)[Yx("0x6")]())t.is(Yx("0x2b"),Yx("0x2c"))&&n.push(t);d[Yx("0x77")]((t=>{for(const e of n)t.move(t.createRangeIn(e),t.createPositionBefore(e)),t[Yx("0x51")](e)}))}))}}function oa(t){if(t.isEmpty)return!0;const e=t.getChild(0);return e.is(Yx("0x2b"),Yx("0x8a"))&&e[Yx("0x1d")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:i}of n[Yx("0x69")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=i)return!1;return!0}const ia=["TrackChangesEditing","handleSuggestionDescription","format","model","resizeTable","document","selection","getSelectedElement","getAttribute","data","plugins","discard","table","resizeTableWidth","getSuggestionCallback","handleResizeTableWidthCommand","getTableColumnsWidths","bind","change","getColumnGroupElement","*Format:* resize table","resizeColumnWidths","afterInit","markBlockFormat","formatBlock","TableColumnResizeEditing","tableWidth","get","_suggestionFactory","registerDescriptionCallback","getContainedElement","getSuggestions","editor","formatGroupId","_descriptionFactory","locale","commandParams"];var ra,xa;ra=ia,xa=110,function(t){for(;--t;)ra.push(ra.shift())}(++xa);const aa=function(t,e){return ia[t-=0]};class ca extends t.Plugin{[aa("0x17")](){if(!this[aa("0x21")][aa("0xb")].has(aa("0x1a")))return;const t=this[aa("0x21")][aa("0xb")][aa("0x1c")](aa("0x1"));t.enableCommand("resizeTableWidth",this.handleResizeTableWidthCommand[aa("0x12")](this)),t.enableCommand(aa("0x16"),this[aa("0x10")][aa("0x12")](this)),t[aa("0x1d")].registerCustomCallback(aa("0x19"),aa("0x5"),"accept",t[aa("0x1d")][aa("0xf")](aa("0x19"),null,aa("0xc"))),t._suggestionFactory.registerCustomCallback(aa("0x19"),"resizeTable",aa("0xc"),t[aa("0x1d")][aa("0xf")](aa("0x19"),null,"accept")),t[aa("0x23")][aa("0x1e")](this.handleSuggestionDescription[aa("0x12")](this))}handleResizeTableWidthCommand(t,e){const n=this[aa("0x21")][aa("0xb")][aa("0x1c")](aa("0x1")),o=this.editor.plugins[aa("0x1c")](aa("0x1a")),s=e[aa("0xd")]||this[aa("0x21")].model[aa("0x6")][aa("0x7")][aa("0x8")]();this[aa("0x21")][aa("0x4")][aa("0x13")]((()=>{const i=o[aa("0x14")](s);let r=i?o[aa("0x11")](i):null,x=s[aa("0x9")](aa("0x1b"))||null;const a=e[aa("0x1b")]||x,c=e.columnWidths||r,l=this.editor[aa("0xb")].get("Users").me;for(const t of n[aa("0x20")]()){const e=t[aa("0x1f")]();if(aa("0x5")===t.subType&&e===s){t.author!==l&&t.discard();const e=t[aa("0xa")][aa("0x0")];x=e[0][aa("0x1b")],r=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[aa("0x18")](s,{commandName:aa("0xe"),commandParams:[{tableWidth:x,columnWidths:r}],formatGroupId:aa("0x5")},[],aa("0x5"))}))}[aa("0x2")](t){const{data:e}=t;if(e&&aa("0x5")===e[aa("0x22")]){const t=aa("0x15");return{type:aa("0x3"),content:Yo(this[aa("0x21")][aa("0x24")],t)}}}}const la=["insertTemplate","plugins","Template","TrackChangesEditing","get"];var da,ua;da=la,ua=479,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{afterInit(){const t=this.editor;t[ga("0x2")].has(ga("0x3"))&&t[ga("0x2")][ga("0x0")](ga("0x4")).enableCommand(ga("0x1"))}}const fa=["get","enableCommand","tableOfContents","plugins","editor","_descriptionFactory","TrackChangesEditing","registerElementLabel","insertTableOfContents","commands","afterInit"];var ha,pa;ha=fa,pa=334,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x6")](){const t=this[ba("0x0")];if(!t[ba("0x5")][ba("0x7")]("insertTableOfContents"))return;t[ba("0xa")][ba("0x7")](ba("0x2"))[ba("0x8")](ba("0x4"));const e=t.plugins[ba("0x7")](ba("0x2")),n=t.locale;e[ba("0x1")][ba("0x3")](ba("0x9"),(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const _a=["plugins","Title","_splitMarkerName","document","locale","has","registerPostFixer","nodeBefore","TrackChangesEditing","newRange","registerElementLabel","editor","isCollapsed","model","end","isEqual","isTouching","element","start","schema","differ","afterInit","suggestion","ELEMENT_TITLE","title-content","forward","get","getChangedMarkers"];var Ta,Ca;Ta=_a,Ca=497,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x0")](){const t=this[ya("0x12")];if(!t[ya("0x7")][ya("0xc")](ya("0x8")))return;const e=t[ya("0x7")][ya("0x5")](ya("0xf"));e._descriptionFactory[ya("0x11")](ya("0x3"),(()=>Yo(t[ya("0xb")],ya("0x2")))),t[ya("0x14")].document[ya("0xd")]((n=>{let o=!1;const s=Array.from(t[ya("0x14")][ya("0xa")][ya("0x1b")][ya("0x6")]());for(const{name:i,data:r}of s){const{group:s}=e[ya("0x9")](i);if(ya("0x1")!==s||!r[ya("0x10")])continue;const x=r[ya("0x10")],a=x[ya("0x15")][ya("0xe")];if(!a||!a.is(ya("0x18"),ya("0x3")))continue;if(!x[ya("0x19")][ya("0x17")](x[ya("0x15")]))continue;const c=t[ya("0x14")][ya("0x1a")].getNearestSelectionRange(x[ya("0x15")],ya("0x4"));if(c&&c[ya("0x13")]){const t=n.createRange(x.start,c[ya("0x19")]);t[ya("0x16")](x)||(n.updateMarker(i,{range:t}),o=!0)}o||(n.removeMarker(i),o=!0)}return o}))}}const Aa=["UndoEditing","plugins","afterInit","has","get","undo","redo","enableCommand"];var va,Ra;va=Aa,Ra=427,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{[Sa("0x7")](){const t=this.editor,e=t[Sa("0x6")][Sa("0x1")]("TrackChangesEditing");t.plugins[Sa("0x0")](Sa("0x5"))&&(e[Sa("0x4")](Sa("0x2")),e.enableCommand(Sa("0x3")))}}const La=["get","has","afterInit","requires","editor","enableCommand","plugins"];var Na,wa;Na=La,wa=490,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("0x3")](){return[Bx]}[Ma("0x2")](){const t=this[Ma("0x4")];t[Ma("0x6")][Ma("0x1")]("TableCaptionEditing")&&t.plugins[Ma("0x0")]("TrackChangesEditing")[Ma("0x5")]("toggleTableCaption")}}const Fa=["format","filter","bind","document","getAttribute","list.properties","listStart","editor","DocumentListUtils","*Format:* set start index to %0","_getSuggestionBlocks","*Format:* set order to reversed","change","reversed","handleListStartCommand","_descriptionFactory","toUpperCase","handleDescriptions","listType","locale","_LIST_","listReversed","length","_getTranslationKeyForListStyle","plugins","afterInit","handleListStyleCommand","from","_getSuggestionBlocksForListStyle","listStyle","commandParams","handleListReversedCommand","*Change to:* %0","model","TrackChangesEditing","selection","push","startIndex","has","numbered","isListItemBlock","get","markMultiRangeBlockFormat","getSelectedBlocks","enableCommand","isFirstBlockOfListItem","config","ELEMENT_","type","DocumentListPropertiesEditing","commandName","styles","DocumentListPropertiesUtils"];var Pa,Da;Pa=Fa,Da=329,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0xe")](){if(!this[Ba("0x31")][Ba("0xd")][Ba("0x1b")](Ba("0x26")))return;const t=this[Ba("0x31")][Ba("0x23")][Ba("0x1e")](Ba("0x2f")),e=this[Ba("0x31")][Ba("0xd")].get("TrackChangesEditing");t[Ba("0x28")]&&e[Ba("0x21")](Ba("0x12"),this[Ba("0xf")].bind(this)),t[Ba("0x2")]&&e.enableCommand(Ba("0xa"),this[Ba("0x14")][Ba("0x2c")](this)),t[Ba("0x1a")]&&e[Ba("0x21")](Ba("0x30"),this[Ba("0x3")][Ba("0x2c")](this)),e[Ba("0x4")].registerDescriptionCallback(this[Ba("0x6")].bind(this))}[Ba("0xf")](t,e={}){const n=this.editor[Ba("0xd")].get(Ba("0x17")),o=this[Ba("0x11")]();this[Ba("0x31")][Ba("0x16")].change((()=>{n[Ba("0x1f")](o,{commandName:"listStyle",commandParams:[{type:e[Ba("0x25")]}],formatGroupId:"listStyle"})}))}[Ba("0x14")](t,e={}){const n=this[Ba("0x31")][Ba("0xd")][Ba("0x1e")](Ba("0x17")),o=this[Ba("0x31")][Ba("0xd")][Ba("0x1e")](Ba("0x32")),s=this[Ba("0x34")]((t=>o[Ba("0x1d")](t)&&Ba("0x1c")===t.getAttribute(Ba("0x7"))));null!==s&&this[Ba("0x31")][Ba("0x16")][Ba("0x1")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ba("0xa"),commandParams:[{reversed:e.reversed}],formatGroupId:Ba("0xa")})}))}[Ba("0x3")](t,e={}){const n=this.editor[Ba("0xd")][Ba("0x1e")](Ba("0x17")),o=this[Ba("0x31")][Ba("0xd")][Ba("0x1e")](Ba("0x32")),s=this[Ba("0x34")]((t=>o[Ba("0x1d")](t)&&Ba("0x1c")===t[Ba("0x2e")]("listType")));null!==s&&this[Ba("0x31")][Ba("0x16")][Ba("0x1")]((()=>{n[Ba("0x1f")](s,{commandName:Ba("0x30"),commandParams:[{startIndex:e[Ba("0x1a")]}],formatGroupId:Ba("0x30")})}))}[Ba("0x6")](t){const e=this[Ba("0x31")][Ba("0x8")],{data:n}=t;if(!n)return;let o,s;switch(n[Ba("0x27")]){case Ba("0x12"):o=Ba("0x15"),s={type:"format",content:Yo(e,o,Yo(e,this[Ba("0xc")](n.commandParams[0].type)))};break;case Ba("0xa"):o=n[Ba("0x13")][0].reversed?Ba("0x0"):"*Format:* set order to regular",s={type:Ba("0x2a"),content:Yo(e,o)};break;case"listStart":o=Ba("0x33"),s={type:Ba("0x2a"),content:Yo(e,o,n.commandParams[0][Ba("0x1a")])}}return s}[Ba("0x11")](){const t=this[Ba("0x31")].plugins[Ba("0x1e")](Ba("0x32"));let e=Array[Ba("0x10")](this[Ba("0x31")].model[Ba("0x2d")].selection[Ba("0x20")]());return e[Ba("0x19")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[Ba("0x34")](t){const e=this[Ba("0x31")].plugins[Ba("0x1e")](Ba("0x32"));let n=Array[Ba("0x10")](this[Ba("0x31")][Ba("0x16")].document[Ba("0x18")][Ba("0x20")]())[Ba("0x2b")](t);if(!n[Ba("0xb")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[Ba("0x22")](t)&&o[Ba("0x19")](t);return o}[Ba("0xc")](t){return Ba("0x24")+this[Ba("0x31")][Ba("0xd")][Ba("0x1e")](Ba("0x29")).getListTypeFromListStyleType(t)[Ba("0x5")]()+Ba("0x9")+t[Ba("0x5")]().replace(/-/g,"_")}}const Ua=["registerCustomCallback","enqueueChange","accept","model","afterInit","has","tableCellHeight","tableBackgroundColor","getAttribute","subType","tableProperties","enableCommand","removeAttribute","document","editor","tableHeight","_getSuggestion","tableCellVerticalAlignment","tableWidth","getFirstPosition","join","get","tableBorderStyle","table","plugins","tableCellBorderWidth","*Format:* change table properties","start","getContainedElement","_suggestionFactory","_descriptionFactory","commandParams","formatBlock","data","getSuggestions","handleDiscardAction","getSuggestionCallback","_handlePropertyChange","TrackChangesTableProperties","discard","tableCellPadding","TablePropertiesEditing","TableUtils","handleSuggestionDescription","TrackChangesEditing","selection","tableCellHorizontalAlignment","tableCellProperties","format"];var Ga,Ha;Ga=Ua,Ha=260,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{constructor(t){super(t),this[Wa("0x2c")]=["tableBorderColor",Wa("0x7"),"tableBorderWidth","tableAlignment",Wa("0x3"),Wa("0x0"),Wa("0x29")],this[Wa("0x20")]=["tableCellBorderColor","tableCellBorderStyle",Wa("0xa"),Wa("0x19"),"tableCellWidth",Wa("0x28"),"tableCellBackgroundColor",Wa("0x1f"),Wa("0x2")]}static get pluginName(){return Wa("0x17")}[Wa("0x26")](){const t=this[Wa("0x30")][Wa("0x9")][Wa("0x6")](Wa("0x1d"));if(this[Wa("0x30")][Wa("0x9")][Wa("0x27")](Wa("0x1a"))){for(const e of this.tableProperties)t[Wa("0x2d")](e,((t,n)=>{const o=this[Wa("0x30")][Wa("0x25")][Wa("0x2f")][Wa("0x1e")][Wa("0x4")]().findAncestor(Wa("0x8"));this._handlePropertyChange(e,[o],this.tableProperties,"tableProperties",t,n)}));t[Wa("0xe")][Wa("0x22")](Wa("0x11"),Wa("0x2c"),Wa("0x24"),t[Wa("0xe")][Wa("0x15")]("formatBlock",null,Wa("0x18"))),t[Wa("0xe")][Wa("0x22")]("formatBlock",Wa("0x2c"),Wa("0x18"),((t,e)=>this[Wa("0x14")](this.tableProperties,t,e))),t._suggestionFactory[Wa("0x22")](Wa("0x11"),"tableProperties",Wa("0x5"),(()=>!1))}if(this[Wa("0x30")][Wa("0x9")].has("TableCellPropertiesEditing")){for(const e of this.tableCellProperties)t[Wa("0x2d")](e,((t,n)=>{const o=this[Wa("0x30")][Wa("0x9")].get(Wa("0x1b")).getSelectionAffectedTableCells(this[Wa("0x30")][Wa("0x25")][Wa("0x2f")][Wa("0x1e")]);this[Wa("0x16")](e,o,this.tableCellProperties,Wa("0x20"),t,n)}));t[Wa("0xe")][Wa("0x22")](Wa("0x11"),Wa("0x20"),Wa("0x24"),t._suggestionFactory.getSuggestionCallback(Wa("0x11"),null,Wa("0x18"))),t._suggestionFactory[Wa("0x22")](Wa("0x11"),Wa("0x20"),Wa("0x18"),((t,e)=>this[Wa("0x14")](this[Wa("0x20")],t,e))),t[Wa("0xe")][Wa("0x22")](Wa("0x11"),"tableCellProperties","join",(()=>!1))}t[Wa("0xf")].registerDescriptionCallback((t=>this[Wa("0x1c")](t)))}[Wa("0x16")](t,e,n,o,s,i){const r=this[Wa("0x30")].plugins[Wa("0x6")]("TrackChangesEditing");this[Wa("0x30")][Wa("0x25")][Wa("0x23")](i.batch,(()=>{for(const t of e)if(this[Wa("0x1")](t,o))s(i);else{const e={};for(const o of n){const n=t[Wa("0x2a")](o);void 0!==n&&(e[o]=n)}s(i),r.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[Wa("0x14")](t,e,n){const o=e[0][Wa("0xc")].nodeAfter,s=n[Wa("0x10")][0];this[Wa("0x30")][Wa("0x25")].change((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Wa("0x2e")](n,o)}))}handleSuggestionDescription(t){if(t[Wa("0x12")])switch(t[Wa("0x2b")]){case Wa("0x2c"):return{type:Wa("0x21"),content:Yo(this[Wa("0x30")].locale,Wa("0xb"))};case Wa("0x20"):return{type:"format",content:Yo(this[Wa("0x30")].locale,"*Format:* change table cell properties")}}}[Wa("0x1")](t,e){const n=this.editor[Wa("0x9")][Wa("0x6")](Wa("0x1d"));for(const o of n[Wa("0x13")]({skipNotAttached:!0})){const n=o[Wa("0xd")]();if(o[Wa("0x2b")]===e&&n===t)return o}return null}}const Va=["getSuggestions","_adapter","_rangeIsInLocalUserInsertion","containerElement","formatInline","addSuggestion","getAttribute","clone","updateSuggestion","selection","pluginName","never","isInContent","substr","acceptSuggestion","always","consumable","_updateSuggestionData","after","_model","markInsertion","markMultiRangeDeletion","isBefore","removeClass","element","getShiftedBy","setTo","plugins","authorName","next","newRange","isObject","get","split","Users","for","_trackFormatChanges","sort","type","addComment","length","_checkSuggestionCorrectness","notReady","_mergeNestedSuggestions","hasCommentThread","size","getFirstRange","_cutOutSuggestionMarker","trackChanges","isInsideObject","writer","elementStart","suggestion","set","_createSuggestion","schema","enqueueChange","assign","isAtEnd","addMarkerName","rejected","commandName","editor","delete","clear","trackChanges.mergeNestedSuggestions","track-changes-user-not-found","_getSuggestionData","lowest","from","markers","isAfter","high","isNextTo","createRange","isExternal","removeMarker:suggestion:formatBlock","removeComment","insert","discardSelectedSuggestions","_suggestionFactory","return","forceDefaultExecution","values","dataDowncast","containsPosition","requires","adapter","highest","setAttribute","attributes","change:data","editing","registerPostFixer","filter","value","ck-suggestion-marker","createSelection","containsRange","change:_saved","insertion:discard","_refreshSuggestionsChain","@external","ck-suggestion-marker-formatBlock","isBlock","insertion:chain","trackChangesCommand","bindElementToMarker","some","track-changes-suggestion-not-found","marker-count","has","differ","discardAllSuggestions","addRange","_defaultCallbacks","_customCallbacks","deletion:join","$graveyard","deletion","before","getRanges","_joinWithAdjacentSuggestions","then","join","formatGroupId","discardSuggestion","addSuggestionData","locale","getAllAdjacentSuggestions","_handleNewSuggestionMarker","markerToHighlight","splice","originalSuggestionId","createPositionAt","getMarkers","suggestionLoaded","insertion","insertContent","isArray","define","author","acceptSelectedSuggestions","deletion:accept","addMarker:suggestion","insertion:accept","insertion:","isUndo","chain","isLimit","fetchCommentThread","showSuggestionHighlights","addUser","$textProxy","formatInline:","_commentsRepository","end","root","item","subType","splitPosition","consume","buildSuggestion","getChanges","accept","_splitMarkerName","listenTo","_removeSuggestion","formatBlock:discard","isAtStart","getChangedMarkers","elementEnd","markBlockFormat","_editor","targetPosition","getWalker","_isForcedDefaultExecutionBlock","conversion","deletion:chain","CommentsRepository","default","move","commentThread","_findSuggestions","activeMarkers","previous","_joinSuggestions","accepted","multipleBlocks","every","document","getAncestors","change","getSuggestionCallback","formatBlock:join","removeMarker","keys","isOwn","removed","discard","markInlineFormat","unbind","getIntersection","_getExternalAuthor","formatBlock:","change:activeMarkers","isRemovable","deletion:discard","track-changes-command-not-found","enableReadOnlyMode","suggestion-type","getDifference","map","external:","_enabledCommands","creator","formatBlock","isIntersectingWithRange","range","formatInline:discard","addMarker:suggestion:formatBlock","_setSuggestionRange","deletion:","stopListening","getUser","position","markerName","tablePasteChainId","PENDING_ACTION_SUGGESTION","authoredAt","push","parent","fire","markerNameToElements","addCommentThread","updateMarker","nodeAfter","markerReady","oldRange","_suggestions","howMany","mapper","_registerDefaultCallbacks","dataToMarker","detach","batch","nodeBefore","acceptAllSuggestions","hasComments","containsRangeInObject","formatInline:chain","multi","add","_descriptionFactory","ck-suggestion-marker-","options","error-saving-suggestion-data-suggestion-discarded","forward","ready","data","trackChanges.trackFormatChanges","isSelectable","config","getItems","getMultiRangeId","update:suggestion","isDocumentOperation","model","execute","_saved","getFirstMarker","reconvertMarker","init","_setSuggestionData","createdAt","getLastMatchingPosition","_addThreadToSuggestion","catch","track-changes-adapter-missing-getsuggestion","toViewElement","PendingActions","data-suggestion","dataReady","remove","isLocal","stop","refresh","suggestionUnloaded","_suggestionState","addHighlight","start","setSelection","_isDataLoaded","_addSuggestionMarker","markerToData","isCollapsed","backward","createElement","getCustomProperty","removeMarkers","isMultiRange","editingDowncast","name","deleteContent","track-changes-suggestion-data-mismatch","widget","_getAuthorFromId","markDeletion","suggestionChanged","rootName","addClass","moveTargetPosition","isEqual","commands","enableCommand","ck-suggestion-marker--active","low","getSuggestion","elementToElement","upcast","getNearestSelectionRange","_breakSuggestionMarker","includes"];var Ka,qa;Ka=Va,qa=162,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("0xf7")](){return["CommentsRepository",i.Users,t.PendingActions,cs,ms,Rs,ws,Bs,Ws,$s,ei,ri,ja,ui,pi,yi,Si,Fi,Gi,Ki,Ji,nr,xr,ur,pr,Cr,Rr,wr,jr,zr,$r,tx,ix,dx,px,Cx,Sx,Mx,Bx,zx,$x,Oa,na,ca,Ea,za,ma,ka,Ia]}static get[Xa("0xab")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[Xa("0x32")]((t=>String.fromCharCode(t))).join("")}super(t),this.set(Xa("0x16"),[]),this.on(Xa("0x2b"),((e,n,o,s)=>{this._model.change((()=>{for(const e of[...s,...o])this[Xa("0xb4")].markers[Xa("0x110")](e)&&t[Xa("0xfd")][Xa("0x6d")](e)}))})),this[Xa("0x5b")]=new ss(this.editor.model[Xa("0xd8")],this[Xa("0xdf")][Xa("0x121")]),this[Xa("0xa2")]=null,this[Xa("0xf1")]=new Qa(this[Xa("0xdf")]),this._suggestions=new Map,this._commentsRepository=t[Xa("0xbc")][Xa("0xc1")](Xa("0x11")),this._enabledCommands=new Set,this._model=this[Xa("0xdf")][Xa("0x69")],this[Xa("0x7e")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[Xa("0x64")].define(Xa("0x62"),Xa("0x12")),this[Xa("0xc5")]=t.config[Xa("0xc1")]("trackChanges.trackFormatChanges"),t[Xa("0x64")][Xa("0x12d")](Xa("0xe2"),!0),this[Xa("0xcc")]=t[Xa("0x64")][Xa("0xc1")](Xa("0xe2")),this[Xa("0x10b")]=new u(t,this[Xa("0x34")]),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,53,50])}[Xa("0x6e")](){const t=this[Xa("0xdf")];t[Xa("0xf")][Xa("0xc4")]("editingDowncast")[Xa("0x124")]({model:Xa("0xd5"),view:t=>{const{id:e,type:n}=this[Xa("0x3")](t[Xa("0x40")]),o=[Xa("0x101"),"ck-suggestion-marker-"+n];let s=3e3;return this[Xa("0x16")][Xa("0xa0")](t[Xa("0x40")])&&(o[Xa("0x44")](Xa("0x99")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[Xa("0xc4")](Xa("0xf5"))[Xa("0x5a")]((e=>{e.on(Xa("0x131"),((e,n,o)=>{if(!o[Xa("0x5d")].showSuggestionHighlights)return;const s=n[Xa("0x13f")];if(!s)return;const i=o[Xa("0x4f")][Xa("0x75")](s);t[Xa("0x69")][Xa("0xd8")][Xa("0xc0")](s)&&i&&!i[Xa("0x88")](Xa("0x8f"))&&i.is(Xa("0xa4"))&&(0,x.toWidget)(i,o[Xa("0xd3")])}),{priority:Xa("0xe9")})})),t[Xa("0xf")][Xa("0xc4")]("dataDowncast")[Xa("0x124")]({model:Xa("0xd5"),view:(t,e)=>{if(!e[Xa("0x5d")].showSuggestionHighlights)return null;const{type:n}=this[Xa("0x3")](t.markerName);return{classes:[Xa("0x101"),Xa("0x5c")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[Xa("0x13f")].is(Xa("0xaa")))return void s[Xa("0xb1")].consume(o[Xa("0x13f")],n[Xa("0x8c")]);const i=s[Xa("0x4f")][Xa("0x75")](o[Xa("0x13f")]);if(!o.item.is(Xa("0xb9"))||!t[Xa("0x69")][Xa("0xd8")][Xa("0x109")](o[Xa("0x13f")])||i[Xa("0x88")](Xa("0x7f")))return;const{id:r}=this[Xa("0x3")](o[Xa("0x40")]);s.writer[Xa("0x94")]([Xa("0x101"),Xa("0x108")],i),s.writer[Xa("0xfa")](Xa("0x77"),r,i),s[Xa("0x4f")][Xa("0x10c")](i,o.markerName),e&&(this[Xa("0x16")][Xa("0xa0")](o[Xa("0x40")])?s[Xa("0xd3")][Xa("0x94")](Xa("0x99"),i):s[Xa("0xd3")][Xa("0xb8")](Xa("0x99"),i));for(const e of t[Xa("0x69")].createRangeIn(o[Xa("0x13f")])[Xa("0x65")]())s.consumable[Xa("0x142")](e,n[Xa("0x8c")]);s[Xa("0xb1")][Xa("0x142")](o[Xa("0x13f")],n[Xa("0x8c")])};t[Xa("0xf")][Xa("0xc4")](Xa("0xf5")).add((t=>{t.on(Xa("0x3a"),((t,e,o)=>{o[Xa("0x5d")][Xa("0x138")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xa("0xf9")})})),t[Xa("0xf")][Xa("0xc4")](Xa("0xf5"))[Xa("0x84")]({model:Xa("0xd5"),view:(t,e)=>e[Xa("0x5d")].showSuggestionHighlights?null:{group:Xa("0xd5"),name:t[Xa("0xae")](11)}}),t.conversion[Xa("0xc4")](Xa("0x9d"))[Xa("0x9c")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[Xa("0xa7")](Xa("0x30"))+":"+t.getAttribute("id");return t.getAttribute(Xa("0x10f"))&&(n+=":"+t[Xa("0xa7")](Xa("0x10f"))),e[Xa("0x87")]("$marker",{"data-name":n})}}),t[Xa("0xf")][Xa("0xc4")](Xa("0x9d"))[Xa("0x51")]({view:Xa("0xd5")}),t.conversion[Xa("0xc4")](Xa("0x8b")).add((t=>{t.on(Xa("0x3a"),n(),{priority:Xa("0xe9")})})),t.conversion[Xa("0xc4")](Xa("0x8b")).add((t=>{t.on(Xa("0xed"),((t,e,n)=>{const o=n.mapper[Xa("0x47")](e[Xa("0x40")]);if(o)for(const t of o)t[Xa("0x88")](Xa("0x7f"))||(n[Xa("0xd3")][Xa("0xb8")]([Xa("0x101"),Xa("0x108"),Xa("0x99")],t),n[Xa("0xd3")].removeAttribute(Xa("0x77"),t),n.mapper.unbindElementFromMarkerName(t,e[Xa("0x40")]))}),{priority:"high"})})),t[Xa("0x69")][Xa("0x1c")][Xa("0xfe")]((e=>{let n=!1;const o=Array[Xa("0xe6")](t[Xa("0x69")].document.differ[Xa("0x8")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x3")](x);if(Xa("0xd5")!==o)continue;const d=this[Xa("0x4d")][Xa("0xc1")](l);if(null!=a.newRange)if(Xa("0xa5")==c&&(n=n||Ya(a[Xa("0xbf")],x,e,t[Xa("0x69")][Xa("0xd8")])),a[Xa("0xbf")].isCollapsed||"$graveyard"==a[Xa("0xbf")][Xa("0x13e")].rootName||Xa("0x36")==c&&!ec(a[Xa("0xbf")])||Xa("0x118")==c&&(Za(r=a[Xa("0xbf")])||(i=r).start[Xa("0x45")]==i[Xa("0x13d")][Xa("0x54")]&&i[Xa("0x80")][Xa("0xdb")]))e[Xa("0x21")](x),n=!0;else{if(!d||!d.isInContent)continue;s[Xa("0x5a")](d)}}var i,r;return s[Xa("0xce")]>0&&(n=!!this[Xa("0x11b")](s)||n),n})),t[Xa("0x69")][Xa("0x1c")].registerPostFixer((e=>{let n=!1;for(const o of t[Xa("0x69")][Xa("0x1c")][Xa("0x111")][Xa("0x1")]()){if(Xa("0xef")!=o[Xa("0xc7")])continue;const s=o[Xa("0x3f")][Xa("0xba")](o[Xa("0xc9")]);if(s.isAtEnd)for(const i of this[Xa("0x4d")][Xa("0xf4")]()){if(i.isMultiRange||!i[Xa("0xad")])continue;if(Xa("0x36")!=i.type)continue;const r=i[Xa("0xcf")]();if(r[Xa("0x80")].parent!=r.end[Xa("0x45")]&&r[Xa("0x13d")].isEqual(o[Xa("0x3f")])){const o=t[Xa("0x69")][Xa("0xeb")](r[Xa("0x80")],s);e[Xa("0x49")](i[Xa("0x6c")](),{range:o}),n=!0}}}return n})),t.model[Xa("0xe7")].on(Xa("0x67"),((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x3")](e[Xa("0x8c")]),n=this[Xa("0x4d")][Xa("0xc1")](t);n&&n[Xa("0xdc")](e[Xa("0x8c")])}})),t[Xa("0x69")][Xa("0x1c")].on(Xa("0xfc"),(()=>{const e=Array[Xa("0xe6")](t[Xa("0x69")].document[Xa("0x111")][Xa("0x8")]())[Xa("0xff")]((t=>Xa("0xd5")===this[Xa("0x3")](t[Xa("0x8c")]).group));if(0===e[Xa("0xc9")])return;e[Xa("0xc6")](((t,e)=>{const n=t[Xa("0x61")][Xa("0x4c")],o=e[Xa("0x61")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0x80")][Xa("0xb7")](o[Xa("0x80")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x3")](t);if(null===s[Xa("0x4c")]){const e=this[Xa("0x123")](t);o.add(e)}else{const t=this[Xa("0x4d")].get(e);null!==s[Xa("0xbf")]||t.isInContent?(n[Xa("0x5a")](t.head),o[Xa("0x5a")](t)):this[Xa("0x5")](t)}}o[Xa("0xce")]>0&&this[Xa("0x106")](o);for(const t of n)this[Xa("0x46")](Xa("0x92"),t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this[Xa("0x4d")][Xa("0xce")])return;if(!o[Xa("0x68")])return;if(o.batch[Xa("0x134")]||!o[Xa("0x53")][Xa("0x7a")])return;let s,i;switch(o[Xa("0xc7")]){case Xa("0xef"):s=t.model[Xa("0x127")](o[Xa("0x3f")]),i=s[Xa("0xba")](o[Xa("0x4e")]);break;case Xa("0xc2"):s=t[Xa("0x69")][Xa("0x127")](o[Xa("0x141")]),i=t[Xa("0x69")][Xa("0x127")](o[Xa("0x95")]);break;case Xa("0x13"):s=t[Xa("0x69")].createPositionAt(o[Xa("0xc")]),i=s.getShiftedBy(o.howMany);break;default:return}const r=t[Xa("0x69")][Xa("0xeb")](s,i);t.model[Xa("0x1e")]((()=>{for(const{suggestion:t,meta:e}of this[Xa("0x15")](r)){if(t.isMultiRange)continue;if("formatInline"==t[Xa("0xc7")])continue;const n=t[Xa("0x61")]&&t.data[Xa("0x1a")];(Xa("0x36")!=t.type||Xa("0xc2")==o.type&&!n)&&(e.containsRangeInObject||Xa("0x12a")==t[Xa("0xc7")]&&e[Xa("0x23")]||t.getFirstRange().containsRange(r)&&this[Xa("0x9f")](t,s,i))}}))}),{priority:Xa("0xe5")}),t[Xa("0x69")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Xa("0x10b")][Xa("0x100")])return;if(o[Xa("0x85")])return;const i=t.model[Xa("0xd8")],{start:r,end:x}=o[Xa("0xcf")](),a=r[Xa("0x4a")]&&i[Xa("0x136")](r[Xa("0x4a")])?null:i.getNearestSelectionRange(r,Xa("0x5f")),c=x.nodeBefore&&i[Xa("0x136")](x.nodeBefore)?null:i[Xa("0x9e")](x,Xa("0x86")),l=t.model[Xa("0xeb")](a?a.start:r,c?c[Xa("0x13d")]:x);t.model[Xa("0x1e")]((e=>{this[Xa("0x91")](l);const n=t[Xa("0x69")][Xa("0xd8")][Xa("0x9e")](l[Xa("0x80")]);o.is("documentSelection")?e.setSelection(n):o[Xa("0xbb")](n)})),e[Xa("0x7b")]()}),{priority:e.priorities.normal+10}),t[Xa("0x69")].on(Xa("0x12b"),((e,n)=>{const o=n[n[Xa("0xc9")]-1];o&&o[Xa("0xf3")]||this[Xa("0xe")]||this[Xa("0x10b")].value&&(t[Xa("0x69")][Xa("0x1e")]((()=>{let o=t[Xa("0x69")][Xa("0x12b")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[Xa("0xa8")]();const s=o[Xa("0x13d")][Xa("0x54")],i=t[Xa("0x69")][Xa("0xd8")];s&&i.isBlock(s)&&!i[Xa("0xc0")](s)&&(o=t[Xa("0x69")][Xa("0xeb")](o[Xa("0x80")],t.model[Xa("0x127")](s,Xa("0x13d")))),this[Xa("0xb5")](o)})),e[Xa("0x7b")]())}),{priority:"high"}),this[Xa("0xdf")][Xa("0x97")][Xa("0x5a")]("trackChanges",this[Xa("0x10b")]),this[Xa("0x98")](Xa("0xd1"));const o=new p(t,this[Xa("0x4d")]);t[Xa("0x97")].add("acceptSuggestion",o),this[Xa("0x98")](Xa("0xaf"));const s=new C(t,this[Xa("0x4d")]);t[Xa("0x97")][Xa("0x5a")](Xa("0x11f"),s),this[Xa("0x98")](Xa("0x11f")),t.commands[Xa("0x5a")](Xa("0x55"),new F(t,o,this._suggestions)),this[Xa("0x98")](Xa("0x55")),t[Xa("0x97")].add(Xa("0x112"),new F(t,s,this._suggestions)),this[Xa("0x98")]("discardAllSuggestions"),t[Xa("0x97")][Xa("0x5a")](Xa("0x12f"),new U(t,o,this[Xa("0x4d")])),this[Xa("0x98")](Xa("0x12f")),t.commands[Xa("0x5a")](Xa("0xf0"),new U(t,s,this[Xa("0x4d")])),this[Xa("0x98")](Xa("0xf0"));const i=t.plugins[Xa("0xc1")](Xa("0x11"));this[Xa("0x4")](i,Xa("0xc8"),((t,{threadId:e})=>{const n=this[Xa("0x4d")][Xa("0xc1")](e);n&&n[Xa("0x14")]&&1===n[Xa("0x14")][Xa("0xc9")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:Xa("0x9a")}),this.listenTo(i,Xa("0xee"),((t,{threadId:e})=>{const n=this[Xa("0x4d")].get(e);n&&n[Xa("0x14")]&&!n[Xa("0x14")][Xa("0xc9")]&&this[Xa("0xb2")](e,{hasComments:!1})}),{priority:"low"})}set[Xa("0xf8")](t){if(this[Xa("0xa2")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[Xa("0xa2")]=t}get[Xa("0xf8")](){return this[Xa("0xa2")]}[Xa("0xa1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[Xa("0xf4")]())t&&!e[Xa("0xad")]||n[Xa("0x44")](e);return e?n[Xa("0x32")]((t=>t.toJSON())):n}[Xa("0x9b")](t){const n=this[Xa("0x4d")][Xa("0xc1")](t);if(!n)throw new e.CKEditorError(Xa("0x10e"),this);return n}hasSuggestion(t){return this[Xa("0x4d")].has(t)}[Xa("0x120")](t){const{authorId:e,id:n,attributes:o}=t,[s,i]=t[Xa("0xc7")][Xa("0xc2")](":"),r=this[Xa("0x4d")][Xa("0xc1")](n)||this[Xa("0xd7")](s,i,n,e,o);if(this[Xa("0x72")](r),this[Xa("0xca")](r,s,i||null,e),r.createdAt=t[Xa("0x70")],r._isDataLoaded=!0,o&&o[Xa("0x107")]){const t=o[Xa("0x107")],e=this[Xa("0x29")](t[Xa("0xbd")]);r[Xa("0x43")]=t[Xa("0x70")],r.author=e,r[Xa("0xec")]=!0}else r[Xa("0x43")]=t.createdAt;switch(t[Xa("0x61")]&&(r[Xa("0x61")]=t.data),t[Xa("0xfb")]&&(r[Xa("0xfb")]=t.attributes),this[Xa("0xa2")]&&this[Xa("0xa2")][Xa("0xa6")]||(r[Xa("0x6b")]=!0),this[Xa("0x7e")][Xa("0xc1")](r)){case Xa("0xcb"):this._suggestionState[Xa("0xd6")](r,"dataReady");break;case"markerReady":r.isInContent?(this._refreshSuggestionsChain(new Set([r])),this._joinWithAdjacentSuggestions(new Set([r])),this[Xa("0x7e")][Xa("0xd6")](r,Xa("0x60")),this[Xa("0x46")](Xa("0x129"),r)):this[Xa("0x7e")][Xa("0xd6")](r,Xa("0x24"))}return r}[Xa("0xaf")](t){this[Xa("0xf3")]((()=>{this[Xa("0xdf")].model[Xa("0x1e")]((()=>{for(const e of t[Xa("0x122")]())e[Xa("0x2")]()}))}))}[Xa("0x11f")](t){this[Xa("0xf3")]((()=>{this.editor[Xa("0x69")][Xa("0x1e")]((()=>{for(const e of t[Xa("0x122")]())e[Xa("0x25")]()}))}))}[Xa("0x98")](t,n){const o=this[Xa("0xdf")].commands[Xa("0xc1")](t);if(!o)throw new e.CKEditorError(Xa("0x2e"),this,{commandName:t});this[Xa("0x34")].add(o),n&&o.on("execute",((t,e)=>{this.trackChangesCommand[Xa("0x100")]&&(this[Xa("0xe")]||e.length>0&&e[e.length-1]&&e[e[Xa("0xc9")]-1][Xa("0xf3")]||(t[Xa("0xf2")]=n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[Xa("0x7b")]()))}),{priority:"high"})}[Xa("0xf3")](t){let n,o;const s=this[Xa("0xe")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[Xa("0xb5")](t,n=null,o={}){if(t[Xa("0x85")])return null;const s=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")]("Users").me;for(const{suggestion:e,meta:s}of this._findSuggestions(t,Xa("0x12a")))if(s.isOwn){if(!s[Xa("0xea")]){if(s.containsRangeInObject){if(!this._mergeNestedSuggestions||!ic(e,o))continue;return e}if(ic(e,o))return e;this[Xa("0x9f")](e,t.start,t[Xa("0x13d")]);break}if(n==e[Xa("0x140")]&&ic(e,o)){const n=e[Xa("0xcf")]();return n.start[Xa("0x96")](t[Xa("0x13d")])?this[Xa("0x3b")](e,this[Xa("0xb4")][Xa("0xeb")](t.start,n[Xa("0x13d")])):this._setSuggestionRange(e,this[Xa("0xb4")][Xa("0xeb")](n[Xa("0x80")],t[Xa("0x13d")])),e}}const i=(0,e.uid)(),r=s.id,x=n?Xa("0x133")+n:Xa("0x12a"),a=this[Xa("0x6f")]({id:i,type:x,createdAt:new Date,authorId:r,attributes:o});return this[Xa("0x83")](x,i,r,t),a}markMultiRangeInsertion(t,n=Xa("0x59"),o={}){const s=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")](Xa("0xc3")).me,i=this._suggestionFactory[Xa("0x1f")](Xa("0x12a"),n,Xa("0x11d"));for(const e of this[Xa("0xa1")]())if(e.author.id==s.id&&"insertion"==e[Xa("0xc7")]&&e[Xa("0x140")]==n&&ic(e,o)&&(i(e.getRanges(),t)||i(t,e[Xa("0x11a")]()))){for(const n of t)e[Xa("0x113")](n);return e}for(const{suggestion:e,meta:n}of this[Xa("0x15")](t,"insertion")){if(!n[Xa("0x23")])continue;if(!this[Xa("0xcc")]&&n.containsRangeInObject)continue;if(!ic(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n[Xa("0x103")](e)){s=!1;break}if(s)return e}const r=(0,e.uid)(),x=s.id,a=Xa("0x133")+n,c=this[Xa("0x6f")]({id:r,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0x83")](a,r,x,e,Zo[Xa("0x66")]());return c}[Xa("0x26")](t,n,o=null,s={}){if(o=o||tc(n),t.isCollapsed)return null;if(Xa("0xac")===this[Xa("0xc5")]){const e=this._suggestionFactory[Xa("0x1f")]("formatInline",o,Xa("0x2"));return this[Xa("0xf3")]((()=>e([t],n,s))),null}const i=this.editor[Xa("0xbc")][Xa("0xc1")]("Users").me,r=[];if("always"!==this[Xa("0xc5")])for(const{suggestion:e,meta:n}of this[Xa("0x15")](t,Xa("0x12a")))n[Xa("0x23")]&&!n.isInsideObject&&r[Xa("0x44")](...e[Xa("0x11a")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Xa("0x28")](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("0xc9")];){const o=n[e][Xa("0x31")](t);n[Xa("0x125")](e,1,...o),e+=o.length}}return n}(t,r);x[Xa("0xc9")]&&this[Xa("0xb4")][Xa("0x1e")]((()=>{for(const t of x){const e=this[Xa("0xf1")][Xa("0x1f")](Xa("0xa5"),o,Xa("0x2"));this[Xa("0xf3")]((()=>e([t],n,s)))}}));for(const t of a){let r=null,x=t[Xa("0x80")],a=t.end;for(const{suggestion:e,meta:n}of this[Xa("0x15")](t,Xa("0xa5"))){if(!n[Xa("0x23")])continue;if(e[Xa("0x140")]!=o)continue;if(!ic(e,s))continue;const i=e[Xa("0xcf")]();if(i[Xa("0x103")](t,!0))return null;x=x.isBefore(i[Xa("0x80")])?x:i[Xa("0x80")],a=a.isAfter(i.end)?a:i[Xa("0x13d")],r?i[Xa("0x80")][Xa("0xb7")](r[Xa("0xcf")]()[Xa("0x80")])?(r[Xa("0x89")](),r=e):e.removeMarkers():r=e}const c=this[Xa("0xb4")][Xa("0xeb")](x,a);if(r)this[Xa("0x3b")](r,c);else{const t=(0,e.uid)(),r=i.id;this[Xa("0x6f")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:r,attributes:s}),this[Xa("0x83")](Xa("0x13b")+o,t,r,c)}}return null}[Xa("0xa")](t,n,o=[],s=null,i={}){n.formatGroupId||(n[Xa("0x11e")]=n[Xa("0xde")]),n.multipleBlocks=t.is(Xa("0x38")),s=s||tc(n);const r=o.map((t=>nc(t,this[Xa("0xb4")]))),x=t.is(Xa("0x38"))?t:nc(t,this._model);if(Xa("0xac")===this._trackFormatChanges){const t=this._suggestionFactory.getSuggestionCallback(Xa("0x36"),s,"accept");return this[Xa("0xf3")]((()=>t([x],n,i))),null}r[Xa("0x44")](x);let a=!0;for(const t of r)if(!this[Xa("0xa3")](t)){a=!1;break}if(a&&Xa("0xb0")!==this[Xa("0xc5")]){const t=this[Xa("0xf1")].getSuggestionCallback(Xa("0x36"),s,Xa("0x2"));return this.forceDefaultExecution((()=>t([x],n,i))),null}let c=null,l=x[Xa("0x80")],d=x[Xa("0x13d")];for(const{suggestion:t,meta:e}of this[Xa("0x15")](x,Xa("0x36"))){if(!e[Xa("0x23")])continue;if(e.isNextTo||e.containsRangeInObject||e[Xa("0xd2")])continue;if(t[Xa("0x61")][Xa("0x11e")]!=n.formatGroupId)continue;if(!ic(t,i))continue;const o=t[Xa("0xcf")]();if(t[Xa("0x140")]==s){if(o[Xa("0x103")](x,!0))return null;l=l[Xa("0xb7")](o[Xa("0x80")])?l:o[Xa("0x80")],d=d.isAfter(o[Xa("0x13d")])?d:o[Xa("0x13d")],c?o.start[Xa("0xb7")](c[Xa("0xcf")]()[Xa("0x80")])?(c[Xa("0x89")](),c=t):t[Xa("0x89")]():c=t}else{const e=x[Xa("0x28")](o);this._cutOutSuggestionMarker(t,e)}}const u=this.editor.plugins[Xa("0xc1")](Xa("0xc3")).me,g=(0,e.uid)(),m=u.id;if(c)return this[Xa("0x3b")](c,this[Xa("0xb4")][Xa("0xeb")](l,d)),c;{const t=this._setSuggestionData({id:g,type:Xa("0x2a")+s,data:n,createdAt:new Date,authorId:m,attributes:i});return this[Xa("0x83")](Xa("0x2a")+s,g,m,this[Xa("0xb4")][Xa("0xeb")](l,d)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,i={}){n[Xa("0x11e")]||(n[Xa("0x11e")]=n.commandName);const r=t[0];n.multipleBlocks=r.is(Xa("0x38")),s=s||tc(n);const x=o.map((t=>nc(t,this._model))),a=r.is(Xa("0x38"))?t:t.map((t=>nc(t,this._model)));if("never"===this[Xa("0xc5")]){const t=this[Xa("0xf1")].getSuggestionCallback(Xa("0x36"),s,Xa("0x2"));return this[Xa("0xf3")]((()=>t(a,n,i))),null}x[Xa("0x44")](...a);let c=!0;for(const t of x)if(!this[Xa("0xa3")](t)){c=!1;break}if(c&&Xa("0xb0")!==this[Xa("0xc5")]){const t=this._suggestionFactory[Xa("0x1f")](Xa("0x36"),s,"accept");return this[Xa("0xf3")]((()=>t(a,n,i))),null}const l=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")]("Users").me;for(const t of this.getSuggestions()){if(t[Xa("0x12e")].id!=l.id)continue;if(Xa("0x36")!=t.type||t[Xa("0x61")][Xa("0x11e")]!=n[Xa("0x11e")])continue;if(!ic(t,i))continue;const e=t[Xa("0x140")]==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[Xa("0x128")]()){const i=s.getRange();if(o[Xa("0x96")](i)){e?(a[Xa("0x125")](n,1),n--):t.removeMarker(s[Xa("0x8c")]);break}}}}if(0==a.length)return null;const d=this[Xa("0xf1")][Xa("0x1f")](Xa("0x36"),s,Xa("0x11d"));for(const t of this.getSuggestions())if(t[Xa("0x12e")].id==l.id&&Xa("0x36")==t[Xa("0xc7")]&&t[Xa("0x61")][Xa("0x11e")]==n.formatGroupId&&t.subType==s&&ic(t,i)&&(d(t[Xa("0x11a")](),a)||d(a,t[Xa("0x11a")]()))){for(const e of a)t[Xa("0x113")](e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0x2a")+s,f=this[Xa("0x6f")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[Xa("0x83")](m,u,g,t,Zo.getMultiRangeId());return f}[Xa("0x91")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")](Xa("0xc3")).me,i=new r.LiveRange(t[Xa("0x80")],t[Xa("0x13d")]);for(const{suggestion:t,meta:e}of this[Xa("0x15")](i,"insertion"))if(e[Xa("0x23")]&&!e[Xa("0xea")])if(t[Xa("0x8a")]){const e=t[Xa("0x11a")]()[Xa("0xff")]((t=>Xa("0x117")!=t[Xa("0x13e")][Xa("0x93")]));if(e[Xa("0x1b")]((t=>i[Xa("0x103")](t,!0)))&&t[Xa("0x25")](),e.some((t=>t[Xa("0x103")](i,!0)))){const t=this._suggestionFactory[Xa("0x1f")]("deletion",n,Xa("0x2"));return this.forceDefaultExecution((()=>t([i],null,o))),null}}else{const e=i[Xa("0x28")](t[Xa("0xcf")]());null!==e&&t._onDiscard([e],null,o)}if(i[Xa("0x52")](),i[Xa("0x85")]||Xa("0x117")==i[Xa("0x13e")].rootName)return null;let x=null,a=i.start,c=i[Xa("0x13d")];const l=this[Xa("0x15")](i,"deletion");for(const{suggestion:t,meta:e}of l){const n=this._model[Xa("0xeb")](a,c);if(e[Xa("0x23")]&&(this[Xa("0xcc")]||!e[Xa("0x57")]&&!e[Xa("0xd2")]))if(t[Xa("0x8a")]){if(!ic(t,o))continue;let e=!0;for(const o of t[Xa("0x11a")]()){if(o[Xa("0x103")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t[Xa("0x25")]()}else{const e=t[Xa("0xcf")]();if(e[Xa("0x103")](n,!0))return t;if(!ic(t,o)){n[Xa("0x103")](e)?t[Xa("0x89")]():e.containsPosition(a)?a=e[Xa("0x13d")]:e.containsPosition(c)&&(c=e[Xa("0x80")]);continue}a=a[Xa("0xb7")](e.start)?a:e.start,c=c[Xa("0xe8")](e.end)?c:e[Xa("0x13d")],o=Object[Xa("0xda")]({},t[Xa("0xfb")]),x?e.start[Xa("0xb7")](x[Xa("0xcf")]()[Xa("0x80")])?(x[Xa("0x89")](),x=t):t[Xa("0x89")]():x=t}}if(x)return this._setSuggestionRange(x,this[Xa("0xb4")][Xa("0xeb")](a,c)),x;{const t=(0,e.uid)(),i=this._model.createRange(a,c),r=s.id,x=n?Xa("0x3c")+n:Xa("0x118"),l=this[Xa("0x6f")]({id:t,type:x,createdAt:new Date,authorId:r,attributes:o});return this._addSuggestionMarker(x,t,r,i),l}}[Xa("0xb6")](t,n=Xa("0x59"),o={}){const s=this[Xa("0xdf")][Xa("0xbc")].get(Xa("0xc3")).me,i=t[Xa("0x32")]((t=>new r.LiveRange(t[Xa("0x80")],t[Xa("0x13d")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0x15")](i,Xa("0x12a")))e[Xa("0x23")]&&!e.isNextTo&&x[Xa("0x5a")](t);for(const e of x)if(e[Xa("0x8a")]){const s=e[Xa("0x11a")]();if((!e[Xa("0xfb")]||!e[Xa("0xfb")].skipNestingCheck)&&s[Xa("0x1b")]((t=>i[Xa("0x10d")]((e=>e[Xa("0x103")](t,!0)))))&&e.discard(),i[Xa("0x1b")]((t=>s[Xa("0x10d")]((e=>e.containsRange(t,!0)))))){const e=this[Xa("0xf1")][Xa("0x1f")](Xa("0x118"),n,"accept");return this[Xa("0xf3")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0xcf")]();if(i[Xa("0x10d")]((e=>e.containsRange(t,!0)))&&e[Xa("0x25")](),i[Xa("0x1b")]((e=>t[Xa("0x103")](e,!0)))){const t=this[Xa("0xf1")][Xa("0x1f")](Xa("0x118"),n,Xa("0x2"));return this[Xa("0xf3")]((()=>t(i,null,o))),null}}const a=this[Xa("0xf1")][Xa("0x1f")](Xa("0x118"),n,Xa("0x11d"));let c=null;for(const t of this[Xa("0xa1")]())if(t[Xa("0x12e")].id==s.id&&t.isInContent&&Xa("0x118")==t[Xa("0xc7")]&&t[Xa("0x140")]==n&&ic(t,o)&&(a(t[Xa("0x11a")](),i)||a(i,t[Xa("0x11a")]())))if(c){if(t[Xa("0x14")]&&t.commentThread.length)continue;for(const e of t[Xa("0x11a")]())c[Xa("0x37")](e)||c[Xa("0x113")](e);t.removeMarkers()}else{c=t;for(const e of i)t[Xa("0x37")](e)||t[Xa("0x113")](e)}if(c)return c;x[Xa("0xe1")]();for(const{suggestion:t,meta:e}of this._findSuggestions(i,Xa("0x118")))e[Xa("0x23")]&&(this[Xa("0xcc")]||!e[Xa("0x57")]&&!e[Xa("0xd2")])&&ic(t,o)&&x[Xa("0x5a")](t);for(const t of x){const e=t[Xa("0x11a")]();if((!o||!o.skipNestingCheck)&&i[Xa("0x1b")]((t=>e[Xa("0x10d")]((e=>e[Xa("0x103")](t,!0))))))return t;(!t[Xa("0xfb")]||!t[Xa("0xfb")].skipNestingCheck)&&e.every((t=>i.some((e=>e[Xa("0x103")](t,!0)))))&&t[Xa("0x25")]()}const l=(0,e.uid)(),d=s.id,u=Xa("0x3c")+n,g=this[Xa("0x6f")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of i)t[Xa("0x52")](),t[Xa("0x85")]||Xa("0x117")==t[Xa("0x13e")][Xa("0x93")]||this[Xa("0x83")](u,l,d,t,Zo.getMultiRangeId());return g}_setSuggestionRange(t,e){const n=t[Xa("0x6c")]();this[Xa("0xb4")][Xa("0x1e")]((t=>{t.updateMarker(n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this.editor[Xa("0x64")].get("collaboration.channelId");this[Xa("0x13c")][Xa("0xcd")](e)||this._commentsRepository[Xa("0x48")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0x13c")].getCommentThread(e);o[Xa("0x27")](Xa("0x2c")),o[Xa("0x2c")]=!1,t[Xa("0x14")]=o}[Xa("0xca")](t,n,o,s){if(t.type!=n||t[Xa("0x140")]!=o||t.creator.id!=s)throw this[Xa("0xdf")][Xa("0x2f")](Xa("0x8e")),new e.CKEditorError(Xa("0x8e"),this)}[Xa("0xd0")](t,n){const o=t[Xa("0xcf")]();if(n[Xa("0x96")](o))t[Xa("0x89")]();else if(o[Xa("0x103")](n)){const s=this[Xa("0xb4")][Xa("0x127")](n.start[Xa("0x54")],Xa("0x13d"));this._setSuggestionRange(t,this[Xa("0xb4")].createRange(o[Xa("0x80")],s));const i=(0,e.uid)(),r=t[Xa("0x35")].id,x=t[Xa("0xc7")]+":"+t[Xa("0x140")];this[Xa("0x6f")]({id:i,type:x,createdAt:new Date,authorId:r,data:t.data,attributes:t[Xa("0xfb")]});const a=this[Xa("0xb4")][Xa("0x127")](n[Xa("0x13d")].parent,Xa("0xb3")),c=this[Xa("0xb4")].createRange(a,o[Xa("0x13d")]);this[Xa("0x83")](x,i,r,c)}else if(o[Xa("0xf6")](n[Xa("0x80")])){const e=this[Xa("0xb4")][Xa("0x127")](n.start.nodeBefore,Xa("0x13d"));this[Xa("0x3b")](t,this[Xa("0xb4")][Xa("0xeb")](o[Xa("0x80")],e))}else{const e=this[Xa("0xb4")][Xa("0x127")](n.end.parent,"after");this[Xa("0x3b")](t,this._model.createRange(e,o[Xa("0x13d")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[Xa("0x15")](t,Xa("0x12a"))){if(!n[Xa("0x23")])continue;const o=e[Xa("0x11a")]();for(const e of o)if(!t[Xa("0x31")](e)[Xa("0xc9")])return!0}return!1}[Xa("0x90")](t){const n=this[Xa("0xdf")].plugins.get(Xa("0xc3"))[Xa("0x3e")](t);if(!n)throw new e.CKEditorError(Xa("0xe3"),this);return n}_getExternalAuthor(t){const e=this.editor.plugins[Xa("0xc1")](Xa("0xc3")),n=(0,i.hashObject)(Xa("0x33")+t);return e[Xa("0x3e")](n)||e[Xa("0x139")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const i=this[Xa("0x90")](o),r=this[Xa("0xf1")][Xa("0x0")](t,e,n,i,s,(t=>this[Xa("0xb2")](n,{attributes:t})));return this.listenTo(r,Xa("0x2"),(()=>{this[Xa("0xb2")](n,{state:Xa("0x19")})}),{priority:"high"}),this[Xa("0x4")](r,"discard",(()=>{this[Xa("0xb2")](n,{state:Xa("0xdd")})}),{priority:Xa("0xe9")}),this[Xa("0x4d")][Xa("0xd6")](n,r),this[Xa("0x7e")].set(r,Xa("0xcb")),r}[Xa("0x3")](t){const e=t[Xa("0xc2")](":");return{group:e[0],type:e[1],subType:e[Xa("0xc9")]>=5?e[2]:null,id:e[Xa("0xc9")]<5?e[2]:e[3],authorId:e[Xa("0xc9")]<5?e[3]:e[4],markerCount:6==e[Xa("0xc9")]?e[5]:null}}[Xa("0x9f")](t,n,o){const s=t[Xa("0xcf")](),i=s.start,r=s[Xa("0x13d")];this[Xa("0x3b")](t,this[Xa("0xb4")][Xa("0xeb")](i,n));const x=(0,e.uid)(),a=t[Xa("0x35")].id,c=t.type+(t[Xa("0x140")]?":"+t[Xa("0x140")]:"");this[Xa("0x6f")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0xfb")],data:t[Xa("0x61")]}),"formatBlock"==t[Xa("0xc7")]&&(o=this[Xa("0xb4")].createPositionBefore(o[Xa("0x45")])),this[Xa("0x83")](c,x,a,this._model[Xa("0xeb")](o,r))}[Xa("0x15")](t,e=null){const n=[],o=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")](Xa("0xc3")).me;Array[Xa("0x12c")](t)||(t=[t]);for(const s of this[Xa("0xa1")]()){if(!s[Xa("0xad")])continue;if(e&&s[Xa("0xc7")]!=e)continue;let i=!1;for(const e of s[Xa("0x11a")]()){for(const r of t){const t=r[Xa("0x80")][Xa("0x96")](e[Xa("0x13d")])||r[Xa("0x13d")].isEqual(e[Xa("0x80")]);if(t||r[Xa("0x28")](e)){const x=r[Xa("0x103")](e)&&Ja(this[Xa("0xb4")][Xa("0xd8")],e[Xa("0x80")],r),a=e[Xa("0x103")](r)&&Ja(this._model[Xa("0xd8")],r.start,e);n[Xa("0x44")]({suggestion:s,meta:{isOwn:o==s[Xa("0x12e")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[Xa("0x83")](t,e,n,o,s){this[Xa("0xb4")].change((i=>{let r="suggestion:"+t+":"+e+":"+n;s&&(r=r+":"+s),i.addMarker(r,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0x5")](t){const e=t[Xa("0x17")],n=t.next;t.previous=null,null!=e&&(e.next=null),t[Xa("0xbe")]=null,null!=n&&(n[Xa("0x17")]=null),"ready"==this._suggestionState[Xa("0xc1")](t)&&(this[Xa("0x7e")][Xa("0xd6")](t,Xa("0x24")),this[Xa("0x46")](Xa("0x7d"),t,e,n))}[Xa("0x6f")](t){const n=t.id,o=this[Xa("0x120")](t);if(this[Xa("0xa2")]&&this._adapter[Xa("0xa6")]){const s=this.editor[Xa("0xbc")][Xa("0xc1")](Xa("0x76")),i=o[Xa("0x56")],r=o[Xa("0x140")]?o.type+":"+o.subType:o[Xa("0xc7")],x=this[Xa("0xdf")].locale,a=s[Xa("0x5a")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:r,hasComments:i,data:t[Xa("0x61")]||null,originalSuggestionId:t[Xa("0x126")]||null,attributes:o[Xa("0xfb")]};this[Xa("0xa2")][Xa("0xa6")](c)[Xa("0x11c")]((t=>{o[Xa("0x6b")]=!0,s[Xa("0x79")](a),t&&t[Xa("0x70")]&&(this[Xa("0x4d")][Xa("0xc1")](n).createdAt=t[Xa("0x70")])}))[Xa("0x73")]((t=>{throw(0,e.logWarning)(Xa("0x5e")),this.editor[Xa("0x69")][Xa("0xd9")]({isUndoable:!1},(()=>{o[Xa("0x25")]()})),o[Xa("0x3d")](),this[Xa("0x4d")][Xa("0xe0")](o.id),this._suggestionState[Xa("0xe0")](o),t}))}return o}[Xa("0xb2")](t,e){const n=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")](Xa("0x76")),o=this.getSuggestion(t);if(this[Xa("0xa2")]&&this._adapter[Xa("0xa9")])if(o[Xa("0x6b")]){const o=n[Xa("0x5a")](Yo(this[Xa("0xdf")].locale,Xa("0x42")));this[Xa("0xa2")][Xa("0xa9")](t,e)[Xa("0x11c")]((()=>{n[Xa("0x79")](o)}))}else o.on(Xa("0x104"),(()=>{this[Xa("0xb2")](t,e)}))}[Xa("0xe4")](t){if(!this._adapter||!this[Xa("0xa2")][Xa("0x9b")])throw new e.CKEditorError(Xa("0x74"),this);return this[Xa("0xa2")][Xa("0x9b")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0x3")](t),i=this[Xa("0x4d")].get(e)||this._createSuggestion(n,o,e,s,{});switch(this[Xa("0xca")](i,n,o,s),this[Xa("0x7e")][Xa("0xc1")](i)){case Xa("0xcb"):this[Xa("0xe4")](e).then((t=>{let n=Promise.resolve();t[Xa("0x56")]&&(n=this[Xa("0x13c")][Xa("0x137")]({channelId:this[Xa("0xdf")][Xa("0x64")][Xa("0xc1")]("collaboration.channelId"),threadId:e})),n[Xa("0x11c")]((()=>{this[Xa("0x120")](t)[Xa("0x6b")]=!0}))})),this._suggestionState.set(i,Xa("0x4b"));break;case Xa("0x24"):this[Xa("0xb2")](e,{state:"open"});case Xa("0x78"):this[Xa("0x7e")].set(i,Xa("0x60")),this[Xa("0x46")]("suggestionLoaded",i);break;case"ready":this[Xa("0x46")](Xa("0x92"),i)}return i[Xa("0xdc")](t),i}[Xa("0x106")](t){const e=Array[Xa("0xe6")](t)[Xa("0xff")]((t=>!t[Xa("0x8a")])),n=this[Xa("0xa1")]({skipNotAttached:!0}).filter((t=>!t[Xa("0x8a")])),o=n[Xa("0xff")]((e=>!t[Xa("0x110")](e))),s=new Map(n[Xa("0x32")]((t=>[t,this[Xa("0xf1")][Xa("0x1f")](t[Xa("0xc7")],t[Xa("0x140")],Xa("0x135"))]))),i=new Map(n[Xa("0x32")]((t=>[t,t[Xa("0xcf")]()]))),r=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0xc9")];t++)a(e[t],o,0);for(let t=0;t<e[Xa("0xc9")];t++){const n=e[t];!x.has(n)&&n.previous&&(n[Xa("0x17")][Xa("0xbe")]===n&&(n.previous.next=null),n[Xa("0x17")]=null),!r.has(n)&&n.next&&(n[Xa("0xbe")][Xa("0x17")]===n&&(n[Xa("0xbe")][Xa("0x17")]=null),n[Xa("0xbe")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][Xa("0xbe")]=n[1],n[1][Xa("0x17")]=n[0],r[Xa("0x5a")](n[0]),x.add(n[1]))}}function c(t,e){if(t.author.id!==e[Xa("0x12e")].id)return null;const n=s[Xa("0xc1")](t)(t,e,i.get(t),i[Xa("0xc1")](e));return n&&s[Xa("0xc1")](e)(t,e,i[Xa("0xc1")](t),i.get(e))?n[1][Xa("0x14")]&&n[1][Xa("0x14")].length?null:n:null}}[Xa("0x11b")](t){const e=Array[Xa("0xe6")](t),n=this[Xa("0xa1")]({skipNotAttached:!0}),o=n[Xa("0xff")]((e=>!t.has(e))),s=new Map(e.map((t=>[t,this[Xa("0xf1")][Xa("0x1f")](t[Xa("0xc7")],t[Xa("0x140")],"join")]))),i=new Map(n.map((t=>[t,t[Xa("0x11a")]()])));for(let t=0;t<e[Xa("0xc9")];t++)if(r(this,e[t],e,t+1))return!0;for(let t=0;t<e[Xa("0xc9")];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("0xc9")];r++){const o=n[r];if(o[Xa("0xc7")]!==e[Xa("0xc7")]||o[Xa("0x12e")].id!==e[Xa("0x12e")].id||o.subType!==e[Xa("0x140")])continue;if(!sc(e,o))continue;const x=s.get(e),a=i[Xa("0xc1")](e),c=i[Xa("0xc1")](o),l=e[Xa("0x14")]&&e.commentThread[Xa("0xc9")],d=o[Xa("0x14")]&&o[Xa("0x14")][Xa("0xc9")];if(!l&&x(c,a))return t[Xa("0x18")](o,e),i[Xa("0xe0")](e),!0;if(!d&&x(a,c))return t[Xa("0x18")](e,o),i[Xa("0xe0")](o),!0}return!1}}[Xa("0x18")](t,e){if(t[Xa("0x8a")])for(const n of e.getRanges())t[Xa("0x113")](n);else{const n=e[Xa("0xcf")]().end;this[Xa("0x3b")](t,this[Xa("0xb4")][Xa("0xeb")](t[Xa("0xcf")]().start,n))}e[Xa("0x89")]()}}class Qa{constructor(t){this[Xa("0xb")]=t,this[Xa("0xb4")]=t.model,this[Xa("0x115")]=new Map,this._defaultCallbacks=new Map,this._registerDefaultCallbacks()}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("0x1f")](t,e,Xa("0x2"))(...n),onDiscard:(...n)=>this[Xa("0x1f")](t,e,Xa("0x25"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0x115")][Xa("0xd6")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[Xa("0x115")][Xa("0xc1")](o)||this[Xa("0x114")][Xa("0xc1")](t+":"+n)}[Xa("0x50")](){const t=()=>!1,e=t=>{t[Xa("0xc6")](((t,e)=>t[Xa("0x80")][Xa("0xb7")](e[Xa("0x80")])?1:-1)),this[Xa("0xb4")].change((e=>{for(const n of t){let t;t=n[Xa("0x13d")][Xa("0xdb")]&&n.end.parent==n.start[Xa("0x4a")]?e[Xa("0x102")](n[Xa("0x80")][Xa("0x4a")],"on"):e.createSelection(n),this._model[Xa("0x8d")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[Xa("0x1e")]((n=>{const{commandName:o,commandParams:s=[]}=e,i=t[Xa("0x32")]((t=>(Za(t)&&(t=this[Xa("0xb4")].createRange(t[Xa("0x13d")])),t)))[Xa("0xff")]((t=>Xa("0x117")!==t[Xa("0x13e")][Xa("0x93")]));if(i.length<1)return;const x=Array.from(this._model[Xa("0x1c")].selection[Xa("0x11a")]()).map((t=>r.LiveRange.fromRange(t)));n[Xa("0x81")](i);for(const t of this._editor[Xa("0x97")].commands())t[Xa("0x7c")]();s.push({forceDefaultExecution:!0}),this[Xa("0xb")][Xa("0x6a")](o,...s);const a=x[Xa("0xff")]((t=>Xa("0x117")!=t.root.rootName));a[Xa("0xc9")]>0&&n.setSelection(a);for(const t of x)t[Xa("0x52")]()}))},o=(t,e)=>1==t.length&&1==e[Xa("0xc9")]&&t[0].end[Xa("0x96")](e[0][Xa("0x80")]),s=(t,e,n,o)=>oc(t,e,n,o,this._model)?[t,e]:oc(e,t,o,n,this._model)?[e,t]:null;this._defaultCallbacks[Xa("0xd6")](Xa("0x132"),t),this[Xa("0x114")][Xa("0xd6")](Xa("0x105"),e),this._defaultCallbacks[Xa("0xd6")]("insertion:join",o),this[Xa("0x114")].set(Xa("0x10a"),s),this[Xa("0x114")][Xa("0xd6")](Xa("0x130"),e),this[Xa("0x114")][Xa("0xd6")](Xa("0x2d"),t),this[Xa("0x114")][Xa("0xd6")](Xa("0x116"),o),this[Xa("0x114")].set(Xa("0x10"),s),this._defaultCallbacks.set("formatInline:accept",n),this._defaultCallbacks.set(Xa("0x39"),t),this[Xa("0x114")][Xa("0xd6")]("formatInline:join",o),this[Xa("0x114")][Xa("0xd6")](Xa("0x58"),t),this[Xa("0x114")][Xa("0xd6")]("formatBlock:accept",n),this[Xa("0x114")][Xa("0xd6")](Xa("0x6"),t),this[Xa("0x114")][Xa("0xd6")](Xa("0x20"),o),this[Xa("0x114")].set("formatBlock:chain",t)}}function Ja(t,e,n){for(const o of e[Xa("0x45")][Xa("0x1d")]({includeSelf:!0,parentFirst:!0})){if(o[Xa("0x13e")]==o)return!1;if(!n.containsItem(o))return!1;if(t.isObject(o)||t[Xa("0x136")](o))return!0}return!1}function Za(t){return t[Xa("0x13d")][Xa("0x45")]==t[Xa("0x80")].nodeAfter&&t[Xa("0x13d")][Xa("0x7")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0x13f")].is(Xa("0x13a"))&&!o[Xa("0xc0")](t[Xa("0x13f")]),i=t[Xa("0x80")][Xa("0x71")](s),r=t[Xa("0x13d")][Xa("0x71")](s,{direction:Xa("0x86")});return!(t[Xa("0x80")][Xa("0x96")](i)&&t[Xa("0x13d")][Xa("0x96")](r)||(i[Xa("0xb7")](r)?n[Xa("0x49")](e,{range:n.createRange(i,r)}):n.removeMarker(e),0))}function tc(t){return(0,i.hashObject)(t)}function ec(t){const e=t[Xa("0x80")][Xa("0x4a")];return e&&e.is(Xa("0xb9"))}function nc(t,e){const n=e[Xa("0xd8")][Xa("0xc0")](t)||e[Xa("0xd8")][Xa("0x63")](t);return e[Xa("0xeb")](e[Xa("0x127")](t,Xa("0x119")),n?e.createPositionAfter(t):e[Xa("0x127")](t,"end"))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n.end.isEqual(o[Xa("0x80")]))return!0;if(t[Xa("0xc7")]!=e.type)return!1;if(!n[Xa("0x13d")].isTouching(o[Xa("0x80")]))return!1;const i=s[Xa("0xeb")](n[Xa("0x13d")],o.start)[Xa("0xd")]();for(const t of i)if([Xa("0xd4"),Xa("0x9")][Xa("0xa0")](t[Xa("0xc7")])&&s[Xa("0xd8")][Xa("0x136")](t[Xa("0x13f")]))return!1;return!0}function sc(t,e){return!(!t._isDataLoaded||!e[Xa("0x82")])&&Go(t[Xa("0xfb")],e[Xa("0xfb")])}function ic(t,e){const n=rc(t[Xa("0xfb")]),o=rc(e);if(!t[Xa("0x82")])return!1;for(const t of Object[Xa("0x22")](o))if(!Go(n[t],o[t]))return!1;return!0}function rc(t){const e=Object[Xa("0xda")]({},t);return delete e.skipNestingCheck,delete e[Xa("0x41")],e}const xc=["_pendingAction","_discardCommand","discardSuggestion","bind","_setPendingAction","destroy","PendingActions","unbind","commentThreadController","stopListening","canEditAt","execute","add","canAccept","isEnabled","_editor","_acceptCommand","listenTo","commands","change:isDirty","locale","view","remove","model","get","plugins","_removePendingAction","isDirty","canDiscard","acceptSuggestion"];var ac,cc;ac=xc,cc=292,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("0x1")]=e,this[lc("0x1d")]=n,this[lc("0x10")]=o,this[lc("0x17")]=t,this[lc("0x18")]=t[lc("0x1a")][lc("0x2")](lc("0x7")),this[lc("0x9")]=t[lc("0x1a")][lc("0x2")](lc("0xa")),this.view[lc("0xb")](lc("0x16")).to(this._acceptCommand,this[lc("0x9")],((t,e)=>t||e)),this[lc("0x1d")][lc("0xb")](lc("0x15")).to(this[lc("0x18")],"isEnabled",(t=>t&&this[lc("0x17")].model[lc("0x12")](e.getRanges()))),this[lc("0x1d")].bind(lc("0x6")).to(this[lc("0x9")],lc("0x16"),(t=>t&&this[lc("0x17")][lc("0x1")][lc("0x12")](e.getRanges()))),this[lc("0x8")]=null,n[lc("0x5")]&&this[lc("0xc")](),this[lc("0x19")](n,lc("0x7"),(()=>this[lc("0x7")]())),this[lc("0x19")](n,lc("0xa"),(()=>this[lc("0xa")]())),this[lc("0x19")](n,lc("0x1b"),(()=>{n[lc("0x5")]?this[lc("0xc")]():this._removePendingAction()}))}[lc("0x7")](){this[lc("0x18")][lc("0x13")](this.model.id)}[lc("0xa")](){this[lc("0x9")][lc("0x13")](this.model.id)}[lc("0xd")](){this[lc("0x1d")][lc("0xf")](lc("0x16")),this[lc("0x1d")].unbind("canAccept"),this[lc("0x1d")].unbind(lc("0x6")),this[lc("0x11")](),this.commentThreadController[lc("0xd")](),this[lc("0x8")]&&this[lc("0x4")]()}[lc("0xc")](){const t=Yo(this[lc("0x17")][lc("0x1c")],"PENDING_ACTION_SUGGESTION");this[lc("0x8")]=this[lc("0x17")][lc("0x3")][lc("0x2")]("PendingActions")[lc("0x14")](t)}_removePendingAction(){null!==this._pendingAction&&this._editor[lc("0x3")][lc("0x2")](lc("0xe"))[lc("0x0")](this._pendingAction),this[lc("0x8")]=null}}const uc=["commentsListView","_config","element","commentInputView","bind","cancel","canDiscard","submit","setData","length","destroy","delegate","locale","focus","removeComment","_localUser","value","disabledSubmit","_createCommentThreadInputView","CommentView","commentThreadInputView","commentThread","addComment","set","isDirty","updateComment","_createCommentViews","isReadOnly","authoredAt","showInput","editor","fire","_model","isActive"];var gc,mc;gc=uc,mc=315,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("0x19")]=null,this[fc("0xb")]=null,this[fc("0xe")]("isActive",!1),this[fc("0xe")]("authoredAt",e[fc("0x13")]),this[fc("0x1d")](fc("0x13")).to(e),this[fc("0xe")]("descriptionParts",[]),this[fc("0xe")](fc("0xf"),!1),this[fc("0xe")]("isEnabled",!1),this[fc("0xe")]("canAccept",!1),this[fc("0xe")](fc("0x1f"),!1),this._model=e,this._localUser=n,this._config=o,o.disableComments?this[fc("0xe")](fc("0x0"),1):this[fc("0x11")]()}focus(){this[fc("0x1b")][fc("0x4")]()}[fc("0x1")](){this[fc("0x19")]&&this[fc("0x19")][fc("0x1")](),this[fc("0xb")]&&this.commentThreadInputView[fc("0x1")](),super[fc("0x1")]()}[fc("0x11")](){const{CommentsListView:t}=this._config;this[fc("0x19")]=new t(this[fc("0x3")],this[fc("0x17")][fc("0xc")],Object.assign({CommentView:this[fc("0x1a")][fc("0xa")]},this._config)),this.commentsListView[fc("0x2")]("removeComment").to(this),this[fc("0x19")][fc("0x2")](fc("0x10")).to(this),this[fc("0x19")][fc("0x1d")](fc("0x18")).to(this),this[fc("0xe")]("length",this[fc("0x19")].length+1),this[fc("0x1d")](fc("0x0")).to(this.commentsListView,"length",(t=>t+1)),this.commentThreadInputView=this[fc("0x9")](),this.on(fc("0x5"),(()=>this[fc("0x4")]())),this[fc("0x1d")](fc("0xf")).to(this[fc("0x19")],"hasDirtyComment",this[fc("0xb")][fc("0x1c")],fc("0x7"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this._config,e=new t(this[fc("0x3")],this[fc("0x6")],this._config.editorConfig),n=e[fc("0x1c")];return e.bind(fc("0x14")).to(this,fc("0x18"),this._model[fc("0xc")],fc("0x12"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(fc("0x20"),((t,e)=>{this[fc("0x16")](fc("0xd"),e),n[fc("0x15")][fc("0x21")]("")})),n.on(fc("0x1e"),(()=>this.focus())),n[fc("0x1d")](fc("0x8")).to(this[fc("0x17")][fc("0xc")],fc("0x12")),e}}const pc=["map",".ck-annotation__content-wrapper","div","set","children","ck-suggestion-","span","ck-suggestion__info","isExternal","bind","isActive","ck-annotation__info","content","_model","execute","userView","editorReady","acceptSuggestion","source","element","ck-annotation__info-name","ck-annotation__user","editorDestroyed","bindTemplate","getTemplate","name","join","discardButton","value","_config","EXTERNAL_IMPORT_WORD_SUGGESTION","querySelector","ck-suggestion__main","attributes","commentThread",'<span class="ck-suggestion-type">',"descriptionParts","creator","_createButton","setTemplate","time","formatDateTime","innerText","discardSuggestion","author","importWord","type",'"></span>',"cancel","</p>","ck-suggestion",'<span class="ck-suggestion-color" style="background-color: ',"render","acceptButton","EXTERNAL_AVATAR","ck-annotation__info-time","push","locale","description","color","EXTERNAL_IMPORT_WORD_AVATAR","commentsListView","change:description","delegate","ck-suggestion--disabled-comments","EXTERNAL_SUGGESTION","ck-suggestion__info-name","ck-suggestion--discard","ck-suggestion__user","commentThreadInputView","_descriptionElement","ck-suggestion--accept","check","ck-suggestion-wrapper--active","innerHTML","createElement","split","extendTemplate","@external","canAccept","getUserViewNotificationText","ck-annotation__content-wrapper","authoredAt","isEnabled"];var bc,Ec;bc=pc,Ec=134,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("0x25")](_c("0x50"),""),this.bind(_c("0x50")).to(this,_c("0x46"),(t=>t&&t[0]?t[0].type:"")),this[_c("0x2b")](_c("0x8")).to(this,_c("0x46"),this,_c("0x2c"),((t,e)=>{let n="";for(const e of t)n+="<p>"+Cc(e[_c("0x2e")],e[_c("0x9")])+_c("0x53");return e?n:(0,i.trimHtml)(n,{limit:140})})),this[_c("0x14")]=null,this[_c("0x3")]=this[_c("0x48")](Yo(e,"Accept suggestion"),t.icons[_c("0x16")],_c("0x15"),_c("0x33"),"sw"),this[_c("0x3")].bind(_c("0x21")).to(this,_c("0x1d")),this[_c("0x3d")]=this[_c("0x48")](Yo(e,"Discard suggestion"),t.icons[_c("0x52")],_c("0x11"),_c("0x4d"),"sw"),this[_c("0x3d")][_c("0x2b")](_c("0x21")).to(this,"canDiscard"),this[_c("0x31")]=new i.UserView(e,this._model[_c("0x4e")],this[_c("0x1e")]()),this.userView[_c("0x1b")]({attributes:{class:[_c("0x12"),_c("0x37")]}}),this[_c("0x49")](this[_c("0x3a")]())}getTemplate(){const t=this[_c("0x39")],e=[{tag:_c("0x24"),attributes:{class:[_c("0x29"),_c("0x2d")]},children:[{tag:_c("0x28"),children:[{text:this[_c("0x31")][_c("0x3b")]}],attributes:{class:[_c("0x10"),_c("0x36")]}},{tag:_c("0x4a"),attributes:{datetime:t.to(_c("0x20")),class:["ck-comment__info-time",_c("0x5")]},children:[{text:t.to(_c("0x20"),(t=>this[_c("0x3f")][_c("0x4b")](t)))}]}]},{tag:_c("0x24"),attributes:{class:["ck-suggestion__actions","ck-annotation__actions"]},children:[this.acceptButton,this[_c("0x3d")]]},{tag:_c("0x24"),attributes:{class:[_c("0x1f")]}}];this._model[_c("0x2a")]&&e[_c("0x6")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:_c("0x24"),attributes:{class:["ck-suggestion-wrapper",t.if(_c("0x2c"),_c("0x17")),t.to("type",(t=>_c("0x27")+t)),this[_c("0x3f")].disableComments&&_c("0xe")],"data-suggestion-id":this._model.id,"data-thread-id":this[_c("0x2f")][_c("0x44")].id,"data-author-id":this[_c("0x2f")][_c("0x4e")].id,tabindex:-1},children:[{tag:_c("0x24"),attributes:{class:[_c("0x0"),"ck-annotation"]},children:[this[_c("0x31")],{tag:_c("0x24"),attributes:{class:[_c("0x42"),"ck-annotation__main"]},children:e}]}]};return this[_c("0xb")]&&this[_c("0x13")]&&(n[_c("0x26")].push(this[_c("0xb")],this[_c("0x13")]),this[_c("0xb")][_c("0xd")](_c("0x32")).to(this),this[_c("0xb")][_c("0xd")](_c("0x38")).to(this),this.commentThreadInputView[_c("0xd")](_c("0x32")).to(this),this[_c("0x13")][_c("0xd")](_c("0x38")).to(this)),n}[_c("0x2")](){super[_c("0x2")](),this[_c("0x14")]=this[_c("0x35")][_c("0x41")](_c("0x23")),this[_c("0x14")][_c("0x18")]=this[_c("0x8")],this.on(_c("0xc"),((t,e,n)=>{this._descriptionElement[_c("0x18")]=n}))}[_c("0x48")](t,e,n,o,i){const r=new s.ButtonView(this[_c("0x7")]);return r[_c("0x25")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),r[_c("0x1b")]({attributes:{class:n}}),r.on(_c("0x30"),(()=>{this.fire(o,this[_c("0x2f")].id)})),r}getExternalSuggestionNote(){return _c("0x4f")===this[_c("0x2f")][_c("0x43")][_c("0x1c")].source?Yo(this.locale,_c("0x40")):Yo(this[_c("0x7")],_c("0xf"))}[_c("0x1e")](){return this[_c("0x2f")][_c("0x2a")]?_c("0x4f")===this[_c("0x2f")][_c("0x43")]["@external"][_c("0x34")]?Yo(this[_c("0x7")],_c("0xa"),this[_c("0x2f")].creator[_c("0x3b")]):Yo(this[_c("0x7")],_c("0x4"),this[_c("0x2f")][_c("0x47")].name):null}}function Cc(t,e){let n="";return n+=t[_c("0x1a")]("*")[_c("0x22")](((t,e)=>e%2!=0?_c("0x45")+yc(t)+"</span>":yc(t)))[_c("0x3c")](""),e&&(n+=_c("0x1")+e[_c("0x3e")]+'" title="'+e.title+_c("0x51")),n}function yc(t){const e=document[_c("0x19")]("span");return e[_c("0x4c")]=t,e[_c("0x18")]}const kc=["lowest","acceptSelectedSuggestions","createCommentThreadController","pluginName","map","buttonView","Discard all selected suggestions","getJoined","Annotations","suggestionChanged","TrackChangesEditing","head","acceptButton","activeAnnotations","_disableComments","_bindAnnotationToEditors","delete","commentThread","has","size","change:previous","init","locale","unbind","getFirstRange","actionView","some","remove","getRanges","plugins","trackChanges.SuggestionThreadView","button","add","getSuggestion","editing","type","listenTo","isInContent","refreshSelectedViews","comments.maxThreadTotalWeight","CommentsRepository","requires","destroy","push","_viewToController","arrowView","filter","Discard all suggestions","bind","isEnabled","_handleControllerBuffer","set","isOn","_descriptionFactory","get","_handleSuggestionControllerDelayed","_unbindEditors","config","getDescriptions","_createUIButton","focus","separator","reduce","commands","change:activeAnnotations","_suggestionToController","getMarkerNames","mainView","addComment","getAllAdjacentSuggestions","CommentsUI","_updateController","comments.editorConfig","discardButton","acceptAllSuggestions","keys","_annotationViews","TrackChangesUI","Accept all selected suggestions","registerAnnotation","define","suggestion-","model","descriptionParts","clear","editor","_initializeController","length","view","execute","comments","commandName","source","isMultiRange","from","isDirty","trackChanges.disableComments","_destroyController","value","suggestionLoaded","_refreshActiveMarkers","addSourceCollector","getByInnerView","Accept all suggestions","createAnnotationView","trackChanges","EditorAnnotations","stopListening","switchbutton"];var Ac,vc;Ac=kc,vc=387,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Sc extends t.Plugin{static get[Rc("0x5a")](){return[$a,i.Users,"CommentsRepository",Rc("0x39"),"EditorAnnotations"]}static get[Rc("0x34")](){return Rc("0x11")}constructor(t){super(t),this[Rc("0x5")]=new Map,this[Rc("0x5d")]=new Map,this[Rc("0x10")]=new Map,this[Rc("0x63")]=new Map;const e=this.editor.config;e[Rc("0x14")](Rc("0x4f"),Tc),e[Rc("0x14")](Rc("0x24"),!1),this[Rc("0x3f")]=e[Rc("0x67")]("trackChanges.disableComments")}[Rc("0x68")](t,e){0===this[Rc("0x63")][Rc("0x44")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Rc("0x5")][Rc("0x43")](t);n||e?n&&e&&this._destroyController(t):this[Rc("0x1a")](t)}this[Rc("0x19")][Rc("0x4e")][Rc("0x67")]("EditorAnnotations")[Rc("0x57")](),this[Rc("0x28")](),this[Rc("0x63")][Rc("0x18")]()}),10),this[Rc("0x63")][Rc("0x64")](t,e)}[Rc("0x46")](){const t=this.editor,e=t[Rc("0x4e")][Rc("0x67")](Rc("0x3b")),n=t.plugins[Rc("0x67")](Rc("0x39")),o=t.plugins[Rc("0x67")](Rc("0x2e")),s=t[Rc("0x4e")][Rc("0x67")](Rc("0x59"));t.ui.componentFactory[Rc("0x51")]("trackChanges",(t=>this[Rc("0x6c")](t))),o[Rc("0x29")]((()=>{const t=[];for(const[e,n]of Array[Rc("0x22")](this._suggestionToController)){const o=e[Rc("0x9")](),s=[];for(const t of o){if(!t[Rc("0x56")])continue;if(t[Rc("0x21")]){s[Rc("0x5c")](...t[Rc("0x4d")]());continue}const e=t[Rc("0x49")]();if(s[Rc("0x1b")]>0){const t=s[0][Rc("0x38")](e);if(t){s[0]=t;continue}}s[Rc("0x5c")](e)}t[Rc("0x5c")]([n[Rc("0x1c")],s])}return t})),this[Rc("0x55")](e,Rc("0x27"),((t,e)=>{this.listenTo(e,Rc("0x45"),((t,n,o,s)=>{e[Rc("0x56")]&&(null==o?(this[Rc("0xb")](s[Rc("0x3c")]),this[Rc("0x68")](e,!1)):(this[Rc("0xb")](o[Rc("0x3c")]),this[Rc("0x68")](e,!0)))})),null===e.previous?this._handleSuggestionControllerDelayed(e,!1):this[Rc("0xb")](e[Rc("0x3c")])})),this[Rc("0x55")](e,"suggestionUnloaded",((t,e,n)=>{this[Rc("0x2f")](e,Rc("0x45")),this[Rc("0x63")][Rc("0x41")](e);const o=n?n[Rc("0x3c")]:e,s=this[Rc("0x5")][Rc("0x67")](o);null!==n&&this[Rc("0xb")](o),null===n&&s&&this[Rc("0x25")](e)})),this[Rc("0x55")](e,Rc("0x3a"),((t,e)=>{this[Rc("0xb")](e)})),this[Rc("0x55")](n,Rc("0x4"),(()=>{this[Rc("0x28")]()})),this[Rc("0x55")](s,Rc("0x8"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Rc("0x52")](n);this._suggestionToController[Rc("0x67")](s)[Rc("0x1c")][Rc("0x0")]()}),{priority:Rc("0x31")})}_refreshActiveMarkers(){const t=this[Rc("0x19")][Rc("0x4e")][Rc("0x67")](Rc("0x39")),e=this.editor[Rc("0x4e")][Rc("0x67")](Rc("0x3b")),n=Array.from(t[Rc("0x3e")],(t=>t.innerView))[Rc("0x5f")]((t=>this[Rc("0x5d")][Rc("0x43")](t))),o=[];for(const t of n){const e=this._viewToController[Rc("0x67")](t)[Rc("0x16")].getAllAdjacentSuggestions();o[Rc("0x5c")](...e[Rc("0x2")](((t,e)=>[...t,...e[Rc("0x6")]()]),[]))}e.activeMarkers=o}[Rc("0x6c")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x19")][Rc("0x3")][Rc("0x67")](Rc("0x2d")),i=Yo(t,"Track changes");n[Rc("0x36")][Rc("0x64")]({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("0x36")][Rc("0x61")](Rc("0x65")).to(o,Rc("0x26")),n[Rc("0x36")].on(Rc("0x1d"),(()=>{o[Rc("0x1d")](),this[Rc("0x19")][Rc("0x53")][Rc("0x1c")].focus()}));const r=new e.Collection,x=[{type:Rc("0x30"),model:{withText:!0,label:i,commandName:Rc("0x2d")}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x2b")),commandName:Rc("0xe")}},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x12")),commandName:Rc("0x32")}},{type:Rc("0x50"),model:{withText:!0,label:Yo(t,Rc("0x60")),commandName:"discardAllSuggestions"}},{type:Rc("0x50"),model:{withText:!0,label:Yo(t,Rc("0x37")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:Rc("0x1")};if(t[Rc("0x16")]){const n=new s.Model(t[Rc("0x16")]),o=this[Rc("0x19")].commands[Rc("0x67")](n[Rc("0x1f")]);n[Rc("0x61")](Rc("0x65"),Rc("0x62")).to(o,Rc("0x26"),Rc("0x62")),e={type:t[Rc("0x54")],model:n}}r[Rc("0x51")](e)}(0,s.addListToDropdown)(n,r);const a=x.filter((t=>null!=t[Rc("0x16")]))[Rc("0x35")]((t=>this[Rc("0x19")][Rc("0x3")].get(t[Rc("0x16")][Rc("0x1f")]))),c=n[Rc("0x36")];return c.actionView[Rc("0x48")](Rc("0x62")),c.arrowView.unbind("isEnabled"),c[Rc("0x4a")][Rc("0x61")]("isEnabled").to(o,"isEnabled"),c[Rc("0x5e")][Rc("0x61")]("isEnabled").toMany(a,Rc("0x62"),((...t)=>t[Rc("0x4b")]((t=>t)))),n.on(Rc("0x1d"),(t=>{this[Rc("0x19")][Rc("0x1d")](t[Rc("0x20")][Rc("0x1f")]),this[Rc("0x19")][Rc("0x53")][Rc("0x1c")][Rc("0x0")]()})),n}[Rc("0x1a")](t){const e=this[Rc("0x19")],n=e[Rc("0x6a")],o=e.plugins[Rc("0x67")](Rc("0x39")),s=e[Rc("0x4e")][Rc("0x67")](Rc("0x59")),r=e[Rc("0x4e")][Rc("0x67")]("EditorAnnotations"),x=e[Rc("0x4e")][Rc("0x67")](i.Users).me,a=n[Rc("0x67")](Rc("0x2d")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x4e")].get(Rc("0xa"));let d,u;this[Rc("0x10")][Rc("0x43")](t.id)?(u=this[Rc("0x10")][Rc("0x67")](t.id),d=u[Rc("0x7")]):(d=new a(e[Rc("0x47")],t,x,{disableComments:this[Rc("0x3f")],editorConfig:n[Rc("0x67")](Rc("0xc")),maxCommentsWhenCollapsed:n[Rc("0x67")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n.get(Rc("0x58")),maxCommentCharsWhenCollapsed:n[Rc("0x67")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,i.getDateTimeFormatter)(n[Rc("0x67")]("locale")),CommentView:n[Rc("0x67")](Rc("0x1e")).CommentView,CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x3d")].on(Rc("0x1d"),(()=>{e.editing.view.focus()})),d[Rc("0xd")].on(Rc("0x1d"),(()=>{e.editing[Rc("0x1c")][Rc("0x0")]()})),u=o[Rc("0x2c")](this[Rc("0x19")][Rc("0x47")],d),u[Rc("0x61")](Rc("0x23")).to(d,Rc("0x23")),u[Rc("0x61")](Rc("0x1b")).to(d),u[Rc("0x61")](Rc("0x54")).to(d,Rc("0x54"),(t=>Rc("0x15")+t)),this[Rc("0x10")].set(t.id,u));const g=s[Rc("0x33")](t[Rc("0x42")],d),m=new dc(e,t,d,g),f=t[Rc("0x9")]()[Rc("0x5f")]((t=>t.isInContent));d[Rc("0x17")]=e[Rc("0x4e")][Rc("0x67")](Rc("0x3b"))._descriptionFactory[Rc("0x6b")](f),this[Rc("0x5")][Rc("0x64")](t,m),this[Rc("0x5d")][Rc("0x64")](d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Rc("0x9")]()[Rc("0x5f")]((t=>t[Rc("0x56")]));for(const t of o)n[Rc("0x5c")](...t.getMarkers());return(0,i.getAllMarkersDomElementsSorted)(e[Rc("0x53")],n)},type:()=>"suggestion-"+m.view.type});s[Rc("0x40")](d,h),o.add(h),r[Rc("0x13")](h)}_destroyController(t){const e=this.editor[Rc("0x4e")].get(Rc("0x59")),n=this.editor.plugins[Rc("0x67")](Rc("0x39")),o=this[Rc("0x5")].get(t),s=o.view,i=n[Rc("0x2a")](s);e[Rc("0x69")](s),i&&n[Rc("0x4c")](i),this[Rc("0x5")].delete(t),this[Rc("0x5d")][Rc("0x41")](s),o[Rc("0x5b")]()}[Rc("0xb")](t){if(!t[Rc("0x56")]||!this._suggestionToController[Rc("0x43")](t))return;const e=this[Rc("0x19")][Rc("0x4e")].get("TrackChangesEditing"),n=this[Rc("0x5")][Rc("0x67")](t),o=t.getAllAdjacentSuggestions();n.view[Rc("0x17")]=e[Rc("0x66")][Rc("0x6b")](o)}[Rc("0x5b")](){for(const t of this[Rc("0x5")][Rc("0xf")]())this[Rc("0x25")](t);for(const t of this._annotationViews.values())t[Rc("0x7")][Rc("0x5b")]();super[Rc("0x5b")]()}}var Ic,Lc,Nc=["adapter","addSuggestion","getSuggestions","get","plugins","TrackChanges","Comments","editor"];Ic=Nc,Lc=461,function(t){for(;--t;)Ic.push(Ic.shift())}(++Lc);var wc=function(t,e){return Nc[t-=0]};class Mc extends t.Plugin{static get requires(){return[$a,Sc,wc("0x1")]}static get pluginName(){return wc("0x0")}set[wc("0x3")](t){this[wc("0x2")][wc("0x7")][wc("0x6")]($a)[wc("0x3")]=t}get[wc("0x3")](){return this[wc("0x2")].plugins[wc("0x6")]($a)[wc("0x3")]}[wc("0x4")](t){return this[wc("0x2")].plugins[wc("0x6")]($a).addSuggestionData(t)}[wc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[wc("0x2")].plugins[wc("0x6")]($a)[wc("0x5")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[wc("0x2")][wc("0x7")][wc("0x6")]($a).getSuggestion(t)}}const Oc=["getRootNames","getRootsAttributes","TrackChangesDataGetter","Users","TrackChangesData","data","acceptAllSuggestions","getUser","function","plugins","trackChangesData.editorCreator","init","discardAllSuggestions","editor","constructor","getFullData","editorCreator","getSuggestions","pluginName","reduce","_adapter","trackChangesData","rootsAttributes","define","useAnonymousUser","end","document","destroy","track-changes-data-invalid-editor-creator","TrackChangesEditing","name","addUser","execute","config","set","result","create","get","getDataWithAcceptedSuggestions","model","CommentsRepository","Pagination"];var Fc,Pc;Fc=Oc,Pc=297,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x26")];class jc extends t.Plugin{static get requires(){return[$a]}static get pluginName(){return Dc("0x1")}[Dc("0x8")](){const t=this[Dc("0xa")];if(t[Dc("0x1e")][Dc("0x14")](Dc("0x7"),(e=>{const n=t[Dc("0x24")][Dc("0x17")][Dc("0x27")]()[Dc("0x10")](((t,e)=>(t[e]="",t)),{});return t[Dc("0xb")][Dc("0x21")](n,e)})),Dc("0x5")!=typeof t.config[Dc("0x22")](Dc("0x12"))[Dc("0xd")])throw new e.CKEditorError(Dc("0x19"))}[Dc("0x23")](t){return Hc(this[Dc("0xa")],!0,t)}getDataWithDiscardedSuggestions(t){return Hc(this.editor,!1,t)}}class Uc extends t.Plugin{static get[Dc("0xf")](){return Dc("0x29")}constructor(t){super(t),this[Dc("0x20")]=Dc("0x16")}init(){this[Dc("0xa")][Dc("0x6")][Dc("0x22")](Dc("0x25"))[Dc("0x11")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[Dc("0x6")].get(Dc("0x1a"))[Dc("0x11")]=null}}function Gc(t){return void 0!==t[Dc("0x28")]}async function Hc(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,Bc);o[Dc("0x6")].push($a,Uc),o[Dc("0x13")]=Gc(t)?t[Dc("0x28")]():void 0;const s=document.createDocumentFragment(),r=t[Dc("0x1e")].get(Dc("0x12"))[Dc("0xd")],x=await r(o,(()=>function(t){const e=document.createElement("div");return t.appendChild(e),e}(s)));!function(t,e){const n=t[Dc("0x24")][Dc("0x17")][Dc("0x27")]()[Dc("0x10")](((e,n)=>(e[n]=t[Dc("0x2")].get({rootName:n}),e)),{}),o=t[Dc("0x6")][Dc("0x22")](Dc("0x0")).users.map((t=>({id:t.id,name:t[Dc("0x1b")]}))),s=t[Dc("0x6")][Dc("0x22")]("TrackChangesEditing")[Dc("0xe")]({skipNotAttached:!0,toJSON:!0}),i=e[Dc("0x6")][Dc("0x22")]("Users"),r=e[Dc("0x6")].get(Dc("0x1a"));for(const t of o)i[Dc("0x4")](t.id)||i[Dc("0x1c")](t);i.me||i[Dc("0x15")]();for(const t of s)r.addSuggestionData(t);e[Dc("0x2")][Dc("0x1f")](n)}(t,x),x[Dc("0x1d")](Dc(e?"0x3":"0x9"));const a=Gc(x)?x[Dc("0xc")](n):x[Dc("0x2")][Dc("0x22")](n);return await x[Dc("0x18")](),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=["clearForceDisabled","has","isEnabled","forceDisabled","value","_enableCommands","editor","execute","_disableUnsupportedCommands","TrackChangesCommand","_enabledCommands","commands","affectsData","refresh"];var c,l;c=a,l=129,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0x1")]=!1,this[u("0xa")](),this._isEnabledBasedOnSelection=!1}[u("0xa")](){this[u("0xd")]=!0}[u("0x4")](){this.value=!this.value,this[u("0x1")]?this[u("0x5")]():this[u("0x2")]()}[u("0x5")](){for(const t of this[u("0x3")][u("0x8")][u("0x8")]())t[u("0x9")]&&!this[u("0x7")][u("0xc")](t)&&t[u("0x0")](u("0x6"))}[u("0x2")](){for(const t of this.editor[u("0x8")][u("0x8")]())t[u("0x9")]&&!this[u("0x7")].has(t)&&t[u("0xb")](u("0x6"))}}const g=["_suggestions","model","refresh","acceptSuggestion","get","_isEnabledBasedOnSelection","TrackChangesEditing","canEditAt","editor","execute","isEnabled","getRanges"];var f,m;f=g,m=351,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0xb")](),this[h("0x2")]=!1}[h("0xb")](){this[h("0x7")]=!0}[h("0x6")](t){const n=this[h("0x9")][h("0x1")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x8")]();this[h("0x5")][h("0xa")][h("0x4")](o)&&this[h("0x5")].plugins.get(h("0x3"))[h("0x0")](n)}}const b=["getRanges","track-changes-discard-suggestion-not-found","canEditAt","_suggestions","editor","get","refresh","plugins","_isEnabledBasedOnSelection","discardSuggestion"];var E,_;E=b,_=388,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x5")]=e,this[T("0x8")](),this[T("0x0")]=!1}[T("0x8")](){this.isEnabled=!0}execute(t){const n=this[T("0x5")][T("0x7")](t);if(!n)throw new e.CKEditorError(T("0x3"),this);const o=n[T("0x2")]();this[T("0x6")].model[T("0x4")](o)&&this[T("0x6")][T("0x9")].get("TrackChangesEditing")[T("0x1")](n)}}const y=["end","map","execute","isCollapsed","getRanges","content","add","length","isIntersecting","change","createPositionAt","isTouching","createPositionAfter","isMultiRange","createPositionBefore","next","type","splice","schema","isInContent","start","deletion","isArray","createRange","color","sort","isObject"];var k,A;k=y,A=471,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xd")](((t,e)=>"deletion"==t[v("0x4")]&&"deletion"!=e[v("0x4")]?-1:v("0x9")!=t[v("0x4")]&&v("0x9")==e[v("0x4")]?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x6")];for(;o<t[v("0x16")];){const i=t[o],x=t[o+1];n||(n=e[v("0x2")](i)),S(e,i,x)||(s.push(e[v("0xb")](n,r[v("0xe")](i)?e[v("0x0")](i):e[v("0x19")](i,v("0xf")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0x0")](e),s=t[v("0x2")](n);return o[v("0x1a")](s)}function L(t,e,n){for(;n[v("0x16")];){const o=n[v("0x5")](0,100);t[v("0x18")]((()=>{for(const t of o)t[v("0x7")]&&e[v("0x11")](t.id)}))}}const N=["from","execute","isEnabled","getRanges","isInContent","_suggestions","_command","some","canEditAt","values","editor","refresh"];var w,M;w=N,M=299,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("0x7")]=e,this._suggestions=n,this[O("0x0")](),this._isEnabledBasedOnSelection=!1}[O("0x0")](){const t=Array[O("0x1")](this[O("0x6")][O("0xa")]())[O("0x8")]((t=>t[O("0x5")]));this[O("0x3")]=this[O("0x7")][O("0x3")]&&t}[O("0x2")](){const t=R(Array[O("0x1")](this[O("0x6")].values()));for(const e of t){const t=e[O("0x4")]();if(!this[O("0xb")].model[O("0x9")](t))return}L(this[O("0xb")].model,this._command,t)}}const P=["_suggestions","refresh","isEnabled","values","selection","from","document","execute","editor","_selectedSuggestions","_command","size","model"];var D,B;D=P,B=124,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("0x3")]=e,this[j("0x6")]=n,this[j("0x2")]=new Set,this.refresh(),this._isEnabledBasedOnSelection=!1}[j("0x7")](){const t=this[j("0x1")][j("0x5")][j("0xc")][j("0xa")],e=Array[j("0xb")](this[j("0x6")][j("0x9")]());this[j("0x2")]=function(t,e){const n=Array.from(t[v("0x13")]()),o=new Set;for(const s of e)if(s[v("0x7")])for(const e of n)for(const n of s.getRanges())(e[v("0x17")](n)||t[v("0x12")]&&!s[v("0x1")]&&s[v("0x3")]&&n[v("0xf")][v("0x1a")](e[v("0x8")]))&&o[v("0x15")](s);return o}(t,e),this.isEnabled=this[j("0x3")][j("0x8")]&&!!this[j("0x2")][j("0x4")]}[j("0x0")](){const t=R(Array[j("0xb")](this[j("0x2")]));for(const e of t){const t=e.getRanges();if(!this.editor[j("0x5")].canEditAt(t))return}L(this[j("0x1")][j("0x5")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const V=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var 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!(!ft(t)||Et(t))&&(mt(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&de(t),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 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)&&!mt(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 We=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const fn=Lt(ot,"Promise");const mn=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(fn),An=Tt(mn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||fn&&Rn(fn.resolve())!=bn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case 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(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):zn;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(!ft(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=In(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:Wn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var f=i.get(e);if(f)return f;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 m=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(m||e,(function(s,r){m&&(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,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var 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=ft(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=i?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(f===t||s(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!s(f,m,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=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=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=i;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=i?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||s(m,h,n,o,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),f=u&&Bo.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Yt),s(m,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Wo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=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:Wo(t,zo(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=["toJSON","getRanges","_onAttributesChange","split","length","isIntersecting","addMarkerName","accept","removeMarker","@external","isInContent","getMultiRangeId","next","onAccept","substr","getAllAdjacentSuggestions","attributes","type","authoredAt","getFirstRange","previous","_saved","head","addMarker","push","creator","markers","_model","author","nodeBefore","reduce","suggestion:","decorate","delete","data","getFirstMarker","getMarkers","subType","start","getRange","discard","onAttributesChange","isIntersectingWithRange","_onAccept","commentThread","_markerNames","addRange","onDiscard","hasComments","_onDiscard","filter","getMarkerNames","createdAt","get","getItems","change","_isDataLoaded","set","from","removeMarkers","clear","map"];var $o,Jo;$o=Xo,Jo=118,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("0x0")]=!1,this.id=e.id,this[Qo("0x17")]=e[Qo("0x17")],this[Qo("0x2b")]=e[Qo("0x2b")]||null,this[Qo("0x22")]=e[Qo("0x22")],this.creator=e[Qo("0x1f")]||e[Qo("0x22")],this.isExternal=Boolean(e[Qo("0x16")]&&e[Qo("0x16")][Qo("0xf")]),this[Qo("0x28")]=null,this[Qo("0x21")]=t,this[Qo("0x31")]=e[Qo("0x13")],this[Qo("0x37")]=e[Qo("0x35")],this[Qo("0x8")]=e[Qo("0x2f")],this[Qo("0x33")]=new Set,this[Qo("0x3a")]=null,this[Qo("0x1")](Qo("0x18"),null),this[Qo("0x1")](Qo("0x16"),e[Qo("0x16")]||{}),this[Qo("0x1")](Qo("0x1a"),null),this[Qo("0x1")]("next",null),this[Qo("0x1")](Qo("0x32"),null),this[Qo("0x1")](Qo("0x1b"),!1),this[Qo("0x26")](Qo("0xd")),this[Qo("0x26")](Qo("0x2e"))}get[Qo("0x1c")](){let t=this;for(;t[Qo("0x1a")];)t=t[Qo("0x1a")];return t}get hasComments(){return!!this[Qo("0x32")]&&this[Qo("0x32")][Qo("0xa")]>0}get isMultiRange(){return 0!=this._markerNames.size&&6==Array[Qo("0x2")](this[Qo("0x33")])[0][Qo("0x9")](":")[Qo("0xa")]}get[Qo("0x10")](){return null!==this[Qo("0x29")]()}[Qo("0xc")](t){this._markerNames.add(t)}[Qo("0x39")](){return Array[Qo("0x2")](this[Qo("0x33")])}[Qo("0x2a")](){return this.getMarkerNames()[Qo("0x5")]((t=>this[Qo("0x21")][Qo("0x20")][Qo("0x3b")](t)))[Qo("0x38")]((t=>t))}[Qo("0x29")](){return this[Qo("0x2a")]()[0]||null}[Qo("0x3")](){this[Qo("0x21")][Qo("0x3d")]((t=>{for(const e of this.getMarkers())t.removeMarker(e)})),this._markerNames[Qo("0x4")]()}removeMarker(t){this[Qo("0x21")][Qo("0x3d")]((e=>{e[Qo("0xe")](t)})),this._markerNames[Qo("0x27")](t)}[Qo("0x34")](t){const e=Qo("0x25")+this[Qo("0x17")]+":"+this[Qo("0x2b")]+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0x11")]();this[Qo("0xc")](e),this._model[Qo("0x3d")]((n=>{n[Qo("0x1d")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x30")](t){for(const e of this.getRanges())if(e[Qo("0xb")](t))return!0;return!1}[Qo("0x7")](){return this[Qo("0x2a")]()[Qo("0x5")]((t=>t[Qo("0x2d")]()))}[Qo("0x3c")](){return this[Qo("0x7")]()[Qo("0x24")](((t,e)=>[...t,...e[Qo("0x3c")]()]),[])}[Qo("0x19")](){var t;return(null===(t=this[Qo("0x29")]())||void 0===t?void 0:t[Qo("0x2d")]())||null}getContainedElement(){const t=this[Qo("0x7")]();if(1!=t[Qo("0xa")])return null;const e=t[0],n=e[Qo("0x2c")].nodeAfter,o=e.end[Qo("0x23")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0xd")](){this[Qo("0x31")](this[Qo("0x7")](),this.data,this[Qo("0x16")]),this[Qo("0x3")]()}[Qo("0x2e")](){this._onDiscard(this[Qo("0x7")](),this.data,this[Qo("0x16")]),this[Qo("0x3")]()}[Qo("0x15")](){const t=[];let e=this[Qo("0x1c")];for(;e;)t[Qo("0x1e")](e),e=e[Qo("0x12")];return t}setAttribute(t,e){const n=eo(this[Qo("0x16")]);_o(n,t,e),Go(n,this[Qo("0x16")])||(this[Qo("0x16")]=n,this[Qo("0x8")](n))}removeAttribute(t){const e=eo(this[Qo("0x16")]);qo(e,t),Go(e,this[Qo("0x16")])||(this.attributes=e,this._onAttributesChange(this[Qo("0x16")]))}[Qo("0x6")](){return{id:this.id,type:this[Qo("0x2b")]?this[Qo("0x17")]+":"+this[Qo("0x2b")]:this[Qo("0x17")],authorId:this.creator.id,createdAt:this[Qo("0x3a")],hasComments:this[Qo("0x36")],data:this[Qo("0x28")],attributes:this.attributes}}static[Qo("0x11")](){return(0,e.uid)()[Qo("0x14")](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=["add","_customCallbacks","removeEmptyContainer","start","elementEnd","isInContent","deletion","$1 $2","_resolveDescriptionItems","pop","softBreak","_addDescriptionItems","_schema","label","Object","removeContainer","isEmpty","replace","push","text","end","getItemLabel","ELEMENT_SPACE","length","element","_itemLabels","EmptyContainer","type","addEmptyContainer","registerDescriptionCallback","getDescriptions","insertion","match","quantity","previousSibling","function","getWalker","$text","item","*Remove:* %0","getFirstRange","normal","checkChild","*Insert:* %0","data","*Split:* %0","indexOf","_locale","remove","nextSibling","get","isEqual","_itemLabelsCallbacks","isObject","Container","REPLACE_TEXT","addObject","registerElementLabel","name","elementStart"];var es,ns;es=ts,ns=417,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x4")]=[],this[os("0x1c")]=new Map,this._itemLabelsCallbacks=[],this._schema=t,this[os("0x32")]=e}[os("0x21")](t){const e=[];for(let n=0;n<t[os("0x1a")];n++){const o=t[n];if(!o[os("0x8")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x1e")in n&&e[os("0x15")](n),s=!0;break}}if(!s){this[os("0xe")](e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x17")][os("0x36")](s[os("0x2b")]()[os("0x6")])){const t=e[e[os("0x1a")]-1],n=os("0x22")==o[os("0x1e")]?os("0x3"):os("0x33");t&&os("0x16")==t[os("0x1e")]&&(t[n]+="\n")}}}return this[os("0xb")](e)}[os("0x20")](t){this[os("0x4")].push(t)}[os("0x0")](t,n,o=e.priorities[os("0x2c")]){os("0x26")==typeof t?(0,e.insertToPriorityArray)(this[os("0x37")],{matchingCallback:t,label:n,priority:o}):this[os("0x1c")].set(t,n)}getItemLabel(t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[os("0x10")];break}return n||(n=this[os("0x1c")][os("0x35")](t[os("0x1")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x1")]}[os("0xe")](t,e){const n=e[os("0x2b")]()[os("0x27")](),o=os("0x22")==e[os("0x1e")]?"add":os("0x33");for(const e of n){const s=e[os("0x29")],r=t[t[os("0x1a")]-1];if(s.is("$textProxy"))r&&r[os("0x1e")][os("0x31")]("Container")>-1&&t[os("0xc")](),r&&"text"==r[os("0x1e")]?r[o]+=s[os("0x2f")]:t[os("0x15")]({type:os("0x16"),add:os("0x3")==o?s.data:"",remove:os("0x33")==o?s[os("0x2f")]:""});else if(this[os("0xf")].isObject(s)){const i=s;if(r&&r[os("0x1e")][os("0x31")](os("0x39"))>-1&&t.pop(),os("0x7")==e[os("0x1e")])continue;r&&r.type==o+os("0x11")&&r.element[os("0x1")]==i.name?r.quantity++:t.push({type:o+os("0x11"),element:i,quantity:1}),n.skip((t=>!("elementEnd"==t[os("0x1e")]&&t.item==s)))}else if(this[os("0xf")][os("0x2d")](s,os("0x28"))||s.is(os("0x1b"),os("0xd"))){const n=s;if(os("0x3")==o&&os("0x2")==e[os("0x1e")]||"remove"==o&&"elementEnd"==e.type)continue;if(r&&-1==r.type[os("0x31")](os("0x39"))){os("0x16")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x3")==o?n[os("0x34")]&&!this[os("0xf")][os("0x38")](n.nextSibling)?n.nextSibling:null:n[os("0x25")]&&!this[os("0xf")][os("0x38")](n[os("0x25")])?n[os("0x25")]:null,n.isEmpty||i&&i[os("0x13")]){const e=i&&i[os("0x13")]?i:n;r&&r[os("0x1e")]==o+os("0x1d")&&r[os("0x1b")][os("0x1")]==e[os("0x1")]?r.quantity++:t[os("0x15")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x15")]({type:o+os("0x39"),element:n})}}}[os("0xb")](t){const e=this[os("0x32")],n=[];for(const o of t){switch(o[os("0x1e")]){case"text":if(o[os("0x3")]=o[os("0x3")][os("0x14")](/(\S)\u000A+(\S)/g,os("0xa"))[os("0x14")](/\u000A/g,""),o[os("0x33")]=o[os("0x33")][os("0x14")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x14")](/\u000A/g,""),""!=o.add&&""!=o[os("0x33")]){n.push({type:os("0x14"),content:Yo(e,os("0x3a"),['"'+o[os("0x33")]+'"','"'+o[os("0x3")]+'"'])});continue}if(null!=o.add.match(/^ +$/)){n[os("0x15")]({type:"insertion",content:Yo(e,os("0x2e"),Yo(e,os("0x19"),o[os("0x3")][os("0x1a")]))});continue}if(null!=o[os("0x33")][os("0x23")](/^ +$/)){n.push({type:os("0x9"),content:Yo(e,os("0x2a"),Yo(e,os("0x19"),o[os("0x33")][os("0x1a")]))});continue}if(""!=o[os("0x3")]){n[os("0x15")]({type:os("0x22"),content:Yo(e,os("0x2e"),'"'+o[os("0x3")]+'"')});continue}n.push({type:"deletion",content:Yo(e,os("0x2a"),'"'+o[os("0x33")]+'"')});continue;case os("0x1f"):case os("0x3b"):n[os("0x15")]({type:os("0x22"),content:Yo(e,"*Insert:* %0",this[os("0x18")](o[os("0x1b")],o[os("0x24")]))});continue;case os("0x5"):case"removeObject":n[os("0x15")]({type:os("0x9"),content:Yo(e,os("0x2a"),this[os("0x18")](o[os("0x1b")],o.quantity))});continue;case"addContainer":n[os("0x15")]({type:os("0x22"),content:Yo(e,os("0x30"),this[os("0x18")](o[os("0x1b")],o[os("0x24")]))});continue;case os("0x12"):n[os("0x15")]({type:os("0x9"),content:Yo(e,"*Merge:* %0",this[os("0x18")](o[os("0x1b")],o[os("0x24")]))});continue}n[os("0x15")](o)}return n}}const rs=["editor","get","showAIAssistant","plugins","commands"];var is,xs;is=rs,xs=241,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("0x4")],e=t[as("0x2")][as("0x0")]("TrackChangesEditing");t[as("0x3")][as("0x0")](as("0x1"))&&e.enableCommand(as("0x1"))}}const ls=["AlignmentEditing","value","format","FORMAT_ALIGN_TO_RIGHT","commandName","checkAttribute","FORMAT_ALIGN_TO_CENTER","alignment","center","plugins","editor","registerDescriptionCallback","locale","*Format:* %0","afterInit","model","left","ltr","_descriptionFactory","getAttribute","getSelectedBlocks","selection","FORMAT_ALIGN_TO_LEFT","FORMAT_JUSTIFY_TEXT","markBlockFormat","from","TrackChangesEditing","document","contentLanguageDirection","commandParams","has","change","schema","enableCommand"];var us,ds;us=ls,ds=438,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x12")](){const t=this[gs("0xe")],e=t[gs("0x10")];if(!t.plugins[gs("0x0")](gs("0x4")))return;const n=t[gs("0xd")].get(gs("0x1e"));n[gs("0x3")](gs("0xb"),((e,o={})=>{let s=o.value;o[gs("0x5")]||(s=gs("0x15")===t.locale[gs("0x20")]?gs("0x14"):"right");const r=Array[gs("0x1d")](this[gs("0xe")][gs("0x13")][gs("0x1f")][gs("0x19")][gs("0x18")]()).filter((t=>function(t,e,n){const o=t[gs("0x17")]("alignment")||null;return e[gs("0x9")](t,gs("0xb"))&&n!=o}(t,this.editor[gs("0x13")][gs("0x2")],s)));t[gs("0x13")][gs("0x1")]((()=>{for(const t of r)n[gs("0x1c")](t,{commandName:gs("0xb"),commandParams:[{value:s}]})}))})),n[gs("0x16")][gs("0xf")]((t=>{const{data:n}=t;if(n&&gs("0xb")==n[gs("0x8")]){const t=n[gs("0x21")][0].value;return{type:gs("0x6"),content:Yo(e,gs("0x11"),function(t){switch(t){case"left":return Yo(e,gs("0x1a"));case"right":return Yo(e,gs("0x7"));case gs("0xc"):return Yo(e,gs("0xa"));case"justify":return Yo(e,gs("0x1b"))}}(t))}}}))}}const ms=["hasAttribute","listItem","name","writer","element","get","type","nextSibling","consumable","test","schema","addHighlight","push","elementEnd","markerRange","mapper","getAttribute","model","listIndent","ck-suggestion-marker-","addClass","item","activeMarkers","previousPosition","parent","isContent","createUIElement","start","markerName","createRangeOn","isLimit","getCustomProperty"];var hs,ps;hs=ms,ps=173,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};function Es(t,e,n){const o=[];for(const s of e.getItems())s[bs("0x13")](t)&&o.push(n[bs("0x10")](s));return o}function _s(t){const e=[];if(t.is(bs("0x17"),bs("0x14"))){let n=t[bs("0x1a")];for(;n&&n.is(bs("0x17"),bs("0x14"))&&n[bs("0x3")](bs("0x5"))>0;)e[bs("0x1f")](n),n=n[bs("0x1a")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[bs("0x18")]("TrackChangesEditing");return(s,r,i)=>{if(!i[bs("0x1b")][bs("0x1c")](r[bs("0x1")],s[bs("0x15")]))return;const x=r.markerRange.getWalker(),a=r.markerRange[bs("0xe")],c=t[bs("0x4")][bs("0x1d")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[bs("0x8")];d=d||c[bs("0xc")](e);const n=i[bs("0x2")].toViewElement(e);if(n&&n[bs("0x12")](bs("0x1e")))return;bs("0x0")==t[bs("0x19")]&&c.isBlock(e)&&!c[bs("0x11")](e)&&(e.nextSibling||a.isAtEnd?l&&l[bs("0xb")]==e||(l=e,f(t[bs("0xa")]),g=!0):u=u||t[bs("0xa")])}function f(t){const s=i.writer[bs("0xd")]("span",{class:bs("0x6")+e}),x=i[bs("0x2")].toViewPosition(t);n&&o[bs("0x9")].includes(r[bs("0xf")])&&i[bs("0x16")][bs("0x7")]("ck-suggestion-marker--active",s),i[bs("0x16")].insert(x,s),i[bs("0x2")].bindElementToMarker(s,r.markerName)}d||g||!u||f(u)}}const Cs=["markInlineFormat","toLowerCase","editor","SuperscriptEditing","commandName","FORMAT_SUBSCRIPT","FORMAT_STRIKETHROUGH","FORMAT_CODE","subscript","SubscriptEditing","strikethrough","registerDescriptionCallback","isCollapsed","plugins","model","forceValue","UnderlineEditing","FORMAT_ITALIC","FORMAT_UNDERLINE","TrackChangesEditing","*Remove format:* %0","bold","FORMAT_SUPERSCRIPT","underline","ItalicEditing","getRanges","from","commands","FORMAT_BOLD","value","italic","enableCommand","_descriptionFactory","*Format:* %0","locale","format","document","CodeEditing","get","change"];var ys,ks;ys=Cs,ks=391,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=["BoldEditing",As("0x21"),As("0x19"),As("0x6"),"StrikethroughEditing",As("0x12"),As("0xc")];class Rs extends t.Plugin{afterInit(){const t=this[As("0xb")],e=t[As("0x17")],n=t[As("0x16")][As("0x7")](As("0x1c")),o=t[As("0x3")];for(const o of vs){if(!t[As("0x16")].has(o))continue;const s=o.slice(0,-7)[As("0xa")](),r=t[As("0x24")][As("0x7")](s);n[As("0x0")](s,((t,o={})=>{const i=e[As("0x5")].selection;if(i[As("0x15")])return void t(o);const x=void 0!==o.forceValue?o[As("0x18")]:!r[As("0x26")];e[As("0x8")]((()=>{const t=Array[As("0x23")](i[As("0x22")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0x9")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0x1")][As("0x14")]((n=>{const{data:s}=n;if(s&&s[As("0xd")]===t)return s.commandParams[0].forceValue?{type:"format",content:Yo(o,As("0x2"),e)}:{type:As("0x4"),content:Yo(o,As("0x1d"),e)}}))}s(As("0x1e"),Yo(o,As("0x25"))),s(As("0x27"),Yo(o,As("0x1a"))),s(As("0x20"),Yo(o,As("0x1b"))),s("code",Yo(o,As("0x10"))),s(As("0x13"),Yo(o,As("0xf"))),s(As("0x11"),Yo(o,As("0xe"))),s("superscript",Yo(o,As("0x1f")))}}const Is=["plugins","$root","forceValue","schema","ELEMENT_BLOCK_QUOTE","_descriptionFactory","get","enableCommand","filter","commandName","checkChild","getSelectedBlocks","blockQuote","from","parent","change","editor","*Format:* %0","selection","commands","has","markBlockFormat","model","format","value"];var Ss,Ls;Ss=Is,Ls=387,function(t){for(;--t;)Ss.push(Ss.shift())}(++Ls);const Ns=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this[Ns("0x4")],e=t.locale;if(!t[Ns("0xd")][Ns("0x8")]("BlockQuoteEditing"))return;const n=t[Ns("0xd")].get("TrackChangesEditing"),o=this.editor[Ns("0x7")][Ns("0x13")](Ns("0x0"));n[Ns("0x14")]("blockQuote",((e,s={})=>{const r=this[Ns("0x4")][Ns("0xa")].document[Ns("0x6")],i=s&&void 0!==s[Ns("0xf")]?s.forceValue:!o[Ns("0xc")];let x=[];if(i){const e=Array[Ns("0x1")](r.getSelectedBlocks())[Ns("0x15")]((t=>Ms(t)||function(t,e){const n=e[Ns("0x17")](t[Ns("0x2")],"blockQuote"),o=e.checkChild([Ns("0xe"),Ns("0x0")],t);return n&&o}(t,this[Ns("0x4")][Ns("0xa")][Ns("0x10")])));x=I(e,t[Ns("0xa")])}else{const e=Array[Ns("0x1")](r[Ns("0x18")]())[Ns("0x15")]((t=>Ms(t)));x=I(e,t[Ns("0xa")])}t.model[Ns("0x3")]((()=>{for(const t of x)n[Ns("0x9")](t,{commandName:Ns("0x0"),commandParams:[{forceValue:i}]})}))})),n[Ns("0x12")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Ns("0x0")==n[Ns("0x16")]){const t=Yo(e,Ns("0x11"));return n.commandParams[0].forceValue?{type:Ns("0xb"),content:Yo(e,Ns("0x5"),t)}:{type:Ns("0xb"),content:Yo(e,"*Remove format:* %0",t)}}}))}}function Ms(t){return Ns("0x0")==t[Ns("0x2")].name}const Os=["plugins","get","enableCommand","afterInit","commands","TrackChangesEditing","editor","ckbox"];var Fs,Ps;Fs=Os,Ps=355,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("0x3")];t[Ds("0x1")][Ds("0x6")](Ds("0x4"))&&t[Ds("0x5")][Ds("0x6")](Ds("0x2"))[Ds("0x7")](Ds("0x4"))}}const js=["language","format","value","checkChild","ELEMENT_CODE_BLOCK","outdentCodeBlock","commandName","schema","afterInit","name","has","enableCommand","CodeBlock","filter","rootElement","from","label","*Format:* %0","*Remove format:* %0","plugins","model","forceValue","document","get","TrackChangesEditing","selection","formatBlock","markBlockFormat","config","isLimit","blockName","codeBlock","locale","_descriptionFactory","getSelectedBlocks","change","commandParams"];var Us,Gs;Us=js,Gs=280,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class Ws extends t.Plugin{[Hs("0x18")](){const t=this.editor;if(!t[Hs("0x23")][Hs("0x1a")](Hs("0x1c")))return;const e=t[Hs("0x23")][Hs("0x2")](Hs("0x3")),n=t[Hs("0xb")],o=t[Hs("0x7")].get(Hs("0xa")).languages,s=t.commands[Hs("0x2")](Hs("0xa"));e[Hs("0x1b")]("indentCodeBlock"),e.enableCommand(Hs("0x15")),e[Hs("0x1b")]("codeBlock",((n,r={})=>{const i=t[Hs("0x24")],x=t.model[Hs("0x1")][Hs("0x4")],a=r&&void 0!==r.forceValue?r[Hs("0x0")]:!s[Hs("0x12")];let c;r[Hs("0x10")]||(r[Hs("0x10")]=o[0][Hs("0x10")]),c=a?Array[Hs("0x1f")](x[Hs("0xd")]())[Hs("0x1d")]((t=>{return zs(t)||(e=t,n=i[Hs("0x17")],!e.is(Hs("0x1e"))&&!n[Hs("0x8")](e)&&n[Hs("0x13")](e.parent,"codeBlock"));var e,n})):Array.from(x[Hs("0xd")]())[Hs("0x1d")]((t=>zs(t)));const l=I(c,i);i[Hs("0xe")]((()=>{for(const t of l)e[Hs("0x6")](t,{commandName:Hs("0xa"),commandParams:[{...r,forceValue:a}],formatGroupId:Hs("0x9")})}))})),e[Hs("0xc")].registerElementLabel(Hs("0xa"),(t=>Yo(n,Hs("0x14"),t))),e[Hs("0xc")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Hs("0x5")==s&&r&&Hs("0xa")==r[Hs("0x16")]){const t=r[Hs("0xf")][0].language,s=e(o.find((e=>e[Hs("0x10")]===t))[Hs("0x20")]);return r[Hs("0xf")][0][Hs("0x0")]?{type:Hs("0x11"),content:Yo(n,Hs("0x21"),Yo(n,Hs("0x14"),1)+" ("+s+")")}:{type:Hs("0x11"),content:Yo(n,Hs("0x22"),Yo(n,Hs("0x14"),1))}}}))}}function zs(t){return Hs("0xa")==t[Hs("0x19")]}const Vs=["editor","plugins","has","TrackChangesEditing","CommentsEditing","enableCommand"];var Ks,qs;Ks=Vs,qs=193,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{afterInit(){const t=this[Xs("0x5")];t[Xs("0x0")][Xs("0x1")](Xs("0x3"))&&t[Xs("0x0")].get(Xs("0x2"))[Xs("0x4")]("addCommentThread")}}var Js=n(181);const Qs=["unbindElementFromMarkerName","lock","plugins","data","model","mapper","enqueueChange","unlock","getFirstRange","editing","detach","end","batch","uiElement","forward","remove","deleteForward","options","commands","selection","markerNameToElements","get","writer","addMarker:suggestion:deletion","removeMarker:suggestion:deletion","isCollapsed","TrackChangesEditing","document","downcastDispatcher","setSelection","fromRange","init","start","$graveyard","buffer","markerName","modifySelection","high","root","delete","createRange","unit","showSuggestionHighlights","createSelection","merge"];var Zs,Ys;Zs=Qs,Ys=203,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 requires(){return[Js.Delete]}[tr("0x8")](){const t=this.editor,e=t[tr("0x18")][tr("0x2b")](tr("0x3"));e.enableCommand(tr("0x10"));const n=t[tr("0x28")][tr("0x2b")](tr("0x26"));e.enableCommand(tr("0x26"),((e,o={})=>{const s=t[tr("0x1a")][tr("0x14")](t[tr("0x1a")][tr("0x4")][tr("0x29")]);s[tr("0x2")]&&t.model[tr("0xd")](s,{direction:tr("0x24"),unit:o[tr("0x12")]});const r=s[tr("0x1e")](),x=i.LiveRange[tr("0x7")](r);let a;e(o),a=tr("0xa")==x[tr("0xf")].rootName?t[tr("0x1a")].createRange(r.start):t[tr("0x1a")][tr("0x11")](x[tr("0x9")],x[tr("0x21")]),x[tr("0x20")](),t[tr("0x1a")][tr("0x1c")](n[tr("0xb")][tr("0x22")],(t=>{n[tr("0xb")][tr("0x17")](),t[tr("0x6")](t[tr("0x11")](a[tr("0x21")])),n.buffer[tr("0x1d")]()}))})),t[tr("0x1f")].downcastDispatcher.on(tr("0x0"),Ts(t,tr("0x15")),{priority:tr("0xe")}),t[tr("0x19")][tr("0x5")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[tr("0x27")][tr("0x13")]&&Ts(t,"merge",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:tr("0xe")}),t.editing[tr("0x5")].on(tr("0x1"),((t,e,n)=>{const o=n[tr("0x1b")][tr("0x2a")](e[tr("0xc")]);if(o)for(const t of o)t.is(tr("0x23"))&&(n[tr("0x1b")][tr("0x16")](t,e[tr("0xc")]),n[tr("0x2c")][tr("0x25")](t))}),{priority:tr("0xe")})}}const nr=["numberedList","length","nodeAfter","listType","*Format:* insert into %0","ELEMENT_LIST_ITEM","_LIST","document","deletion","refresh","hasAttribute","_suggestionFactory","previousSibling","commandParams","documentList","containsItem","locale","detach","createRange","listItemId","TrackChangesEditing","isObject","enableCommand","setSelection","add","forceValue","DocumentListUtils","editor","commands","after","splitListItemAfter","model","change","parent","has","*Indent:* %0","outdentList","getAttribute","*Change to:* %0","slice","nextSibling","start","mergeListItemForward","multipleBlocks","registerCustomCallback","ELEMENT_NUMBERED_LIST","registerDescriptionCallback","markBlockFormat","push","selection","splitListItemBefore","*Merge:* %0","markMultiRangeBlockFormat","from","*Format:* remove from %0","before","bulletedList","listIndent","formatBlock","afterInit","createPositionAt","schema","getFirstRange","value","paragraph","execute","get","getSelectedBlocks","toUpperCase","format","plugins","_descriptionFactory","list.multiBlock","isFirstBlockOfListItem","ELEMENT_BULLETED_LIST","fromRange","expandListBlocksToCompleteList","config","indentList","next","map","registerElementLabel","end","commandName"];var or,sr;or=nr,sr=296,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{[rr("0xf")](){const t=this[rr("0x43")];if(!t[rr("0x1a")][rr("0x4a")]("DocumentListEditing"))return;const e=t[rr("0x38")],n=t[rr("0x1a")].get(rr("0x3c")),o=t.plugins[rr("0x16")](rr("0x42"));function s(e){return()=>{const s=t[rr("0x44")][rr("0x16")](e);if(s[rr("0x13")]&&!t[rr("0x21")][rr("0x16")](rr("0x1c")))return void t[rr("0x15")](rr("0x14"),{});let r=Array[rr("0x9")](t[rr("0x47")][rr("0x2f")][rr("0x5")][rr("0x17")]());if(a(e)){r=o[rr("0x20")](r);const t=[];for(const e of r)o[rr("0x1d")](e)&&t[rr("0x4")](e);r=t}t.model[rr("0x48")]((()=>{n[rr("0x8")](r,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:rr("0x2b")},[],rr("0x36"))}))}}function r(e){return()=>{const o=function(t){let e=Array[rr("0x9")](t);const n=e.findIndex((t=>!t[rr("0x32")](rr("0x3b"))));return n>-1&&(e=e[rr("0x4f")](0,n)),e}(t[rr("0x47")][rr("0x2f")][rr("0x5")][rr("0x17")]()),s=o[o[rr("0x29")]-1],r=t[rr("0x47")][rr("0x11")].isObject(s)?rr("0x45"):rr("0x26"),i=t.model.createRange(t[rr("0x47")][rr("0x10")](o[0],rr("0xb")),t[rr("0x47")][rr("0x10")](s,r));t[rr("0x47")][rr("0x48")]((()=>{n[rr("0x3")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x2b")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[rr("0x4d")]("listIndent")>n[rr("0x4d")](rr("0xd"));)e[rr("0x40")](t),t=t.nextSibling}return Array[rr("0x9")](e)}(o))}))}}function x(e){return()=>{const o=t[rr("0x47")].document.selection[rr("0x17")]()[rr("0x23")]().value,s=t[rr("0x47")][rr("0x10")](o,"before"),r=t[rr("0x47")][rr("0x10")](o,0),i=t[rr("0x47")][rr("0x3a")](s,r);t.model[rr("0x48")]((()=>{n[rr("0x3")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x2b")})}))}}function a(e){const n=t[rr("0x44")].get(rr("0xc"))[rr("0x13")],o=t[rr("0x44")].get(rr("0x28"))[rr("0x13")];return"numberedList"===e?n:o}n[rr("0x3e")](rr("0x28"),s(rr("0x28"))),n.enableCommand(rr("0xc"),s("bulletedList")),n.enableCommand(rr("0x22"),r(rr("0x22"))),n[rr("0x3e")](rr("0x4c"),r("outdentList")),n[rr("0x3e")](rr("0x46"),x("splitListItemAfter")),n[rr("0x3e")](rr("0x6"),x(rr("0x6"))),n[rr("0x1b")][rr("0x25")]((function(e){const n=!t[rr("0x47")][rr("0x11")][rr("0x3d")](e),o=e[rr("0x34")],s=e[rr("0x50")],r=e[rr("0x4d")]("listItemId"),i=!o||o[rr("0x4d")](rr("0x3b"))!==r,x=!s||s[rr("0x4d")]("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,rr("0x2d"),t))),n[rr("0x1b")][rr("0x2")]((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o[rr("0x27")]){case rr("0xc"):i=o[rr("0x35")][0][rr("0x41")],x=a(o[rr("0x27")]),s=rr(i?"0x2c":"0xa"),!x&&t[rr("0x21")][rr("0x16")]("list.multiBlock")||(s=rr("0x4e")),r={type:"format",content:Yo(e,s,Yo(e,rr("0x1e")))};break;case rr("0x28"):i=o.commandParams[0][rr("0x41")],x=a(o[rr("0x27")]),s=i?rr("0x2c"):"*Format:* remove from %0",!x&&t.config.get(rr("0x1c"))||(s=rr("0x4e")),r={type:rr("0x19"),content:Yo(e,s,Yo(e,rr("0x1")))};break;case rr("0x22"):s=rr("0x4b"),r={type:rr("0x19"),content:Yo(e,s,Yo(e,rr("0x2d")))};break;case rr("0x4c"):s=function(t){const e=t[rr("0x12")]();let n=e[rr("0x51")][rr("0x2a")];for(;n&&e[rr("0x37")](n);){if(n[rr("0x4d")](rr("0xd"))>0)return!1;n=n[rr("0x50")]}return!0}(n)?Yo(e,rr("0xa"),Yo(e,"ELEMENT_"+n[rr("0x12")]().start[rr("0x2a")].getAttribute(rr("0x2b"))[rr("0x18")]()+rr("0x2e"))):Yo(e,"*Outdent:* %0",Yo(e,rr("0x2d"))),r={type:rr("0x19"),content:s};break;case"mergeListItemBackward":case rr("0x52"):!1===o[rr("0x53")]&&(s=rr("0x7"),r={type:rr("0x30"),content:Yo(e,s,Yo(e,rr("0x2d")))})}return r})),n[rr("0x33")][rr("0x0")](rr("0xe"),rr("0x36"),"accept",(function(e,n){const o=[];for(let n of e)n[rr("0x51")][rr("0x2a")]===n[rr("0x26")][rr("0x49")]&&(n=t.model[rr("0x3a")](t[rr("0x47")].createPositionAt(n[rr("0x51")].nodeAfter,0))),o[rr("0x4")](n);t[rr("0x47")][rr("0x48")]((e=>{const s=t[rr("0x47")].document[rr("0x5")],r=Array[rr("0x9")](s.getRanges())[rr("0x24")]((t=>i.LiveRange[rr("0x1f")](t)));e[rr("0x3f")](o),t[rr("0x44")][rr("0x16")](n[rr("0x27")])[rr("0x31")](),n[rr("0x35")].push({forceDefaultExecution:!0}),t[rr("0x15")](n.commandName,...n.commandParams),e[rr("0x3f")](r);for(const t of r)t[rr("0x39")]()}))}))}}var xr=n(331);const ar=["end","fromRange","mapper","enableCommand","document","bind","unbindElementFromMarkerName","showSuggestionHighlights","plugins","downcastDispatcher","TrackChangesEditing","enter","getFirstPosition","editor","ck-suggestion-marker-split","split","editing","change","get","addMarker:suggestion:insertion","requires","data","setSelection","getFirstRange","init","hasClass","commands","markerNameToElements","remove","writer","parent","options","high","model","markerName","createRange"];var cr,lr;cr=ar,lr=308,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{static get[ur("0x0")](){return[xr.Enter]}[ur("0x4")](){const t=this[ur("0x1d")],e=t[ur("0x18")][ur("0x22")](ur("0x1a")),n=t[ur("0x6")][ur("0x22")](ur("0x1b"));e[ur("0x13")](ur("0x1b"),(()=>{t.model[ur("0x21")]((o=>{const s=t.model[ur("0x14")].selection,r=s[ur("0x1c")](),x=i.LiveRange[ur("0x11")](s[ur("0x3")]());if(n.enterBlock(o)){const n=t[ur("0xd")].createPositionAt(r[ur("0xa")].nextSibling,0),s=o[ur("0xf")](r,n);e.markInsertion(s)}else o[ur("0x2")](o.createRange(x[ur("0x10")]));x.detach(),n.fire("afterExecute",{writer:o})}))})),t.editing[ur("0x19")].on(ur("0x23"),Ts(t,ur("0x1f")),{priority:"high"}),t[ur("0x20")][ur("0x19")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[ur("0x12")][ur("0x7")](e[ur("0xe")]);if(o)for(const t of o)t[ur("0x5")](ur("0x1e"))&&(n[ur("0x12")][ur("0x16")](t,e.markerName),n[ur("0x9")][ur("0x8")](t))}),{priority:ur("0xc")}),t[ur("0x1")][ur("0x19")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ur("0xb")][ur("0x17")]&&Ts(t,ur("0x1f"),{showActiveMarker:!1})[ur("0x15")](this)(e,n,o)}),{priority:ur("0xc")})}}const gr=["FindAndReplaceUtils","start","afterInit","createPositionAt","model","getIntersection","get","bind","findByTextCallback","item","FindAndReplaceEditing","replaceAll","has","handleFindCommand","TrackChangesEditing","end","find","editor","markers","string","plugins","suggestion:deletion","enableCommand","replace"];var fr,mr;fr=gr,mr=395,function(t){for(;--t;)fr.push(fr.shift())}(++mr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0xf")](){if(!this.editor[hr("0x9")][hr("0x1")](hr("0x17")))return;const t=this[hr("0x6")][hr("0x9")].get(hr("0x3"));t[hr("0xb")](hr("0x5"),this[hr("0x2")][hr("0x14")](this)),t[hr("0xb")]("findNext"),t[hr("0xb")]("findPrevious"),t.enableCommand(hr("0xc")),t[hr("0xb")](hr("0x0"))}[hr("0x2")](t,e,n={}){const o=this.editor[hr("0x9")][hr("0x13")](hr("0xd"));if(void 0!==n)return t((t=>(hr("0x8")==typeof e?o[hr("0x15")](e,n):e)(t).filter((e=>!1===this._isInDeletionRange(e,t[hr("0x16")])))),n)}_isInDeletionRange(t,e){const n=this.editor[hr("0x11")].createRange(this[hr("0x6")][hr("0x11")].createPositionAt(e,t[hr("0xe")]),this[hr("0x6")].model[hr("0x10")](e,t[hr("0x4")]));for(const t of this[hr("0x6")].model[hr("0x7")].getMarkersGroup(hr("0xa")))if(null!==n[hr("0x12")](t.getRange()))return!0;return!1}}const br=["FontColorEditing","fontFamily","commandName","*Reset font background color*","*Reset font family*","document","editor","change","selection","fontBackgroundColor","trim","fontBackgroundColor.colors","_enableCommand","FontSizeEditing","fontColor.colors","locale","commandParams","*Set font size:* %0","find","*Set font color:* %0","TrackChangesEditing","fontColor","has","get","fontSize","toLowerCase","*Set font family:* %0","afterInit","model","normalizeSizeOptions","registerDescriptionCallback","isCollapsed","title","config","enableCommand","value","plugins","*Set font background color:* %0","label","*Reset font size*","format","from","_descriptionFactory"];var Er,_r;Er=br,_r=190,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:Tr("0x26"),commandName:Tr("0x6")},{pluginName:"FontFamilyEditing",commandName:Tr("0x1a")},{pluginName:Tr("0x19"),commandName:Tr("0x3")},{pluginName:"FontBackgroundColorEditing",commandName:"fontBackgroundColor"}];class yr extends t.Plugin{[Tr("0x9")](){const t=this[Tr("0x1f")][Tr("0x28")];for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x1f")][Tr("0x12")][Tr("0x4")](t)&&this[Tr("0x25")](e);this.editor[Tr("0x12")][Tr("0x5")]("TrackChangesEditing")[Tr("0x18")][Tr("0xc")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Tr("0x6")==o[Tr("0x1b")]){const e=o[Tr("0x29")][0][Tr("0x11")];if(e){const o=n(this[Tr("0x1f")][Tr("0x12")][Tr("0x5")]("FontSize")[Tr("0xb")](this.editor[Tr("0xf")][Tr("0x5")]("fontSize.options")).find((t=>t[Tr("0xa")]==e))[Tr("0xe")]).toLowerCase();return{type:Tr("0x16"),content:Yo(t,Tr("0x2a"),o)}}return{type:Tr("0x16"),content:Yo(t,Tr("0x15"))}}if(Tr("0x1a")==o[Tr("0x1b")]){const e=o[Tr("0x29")][0].value;return e?{type:"format",content:Yo(t,Tr("0x8"),e)}:{type:Tr("0x16"),content:Yo(t,Tr("0x1d"))}}if("fontColor"==o[Tr("0x1b")]){const e=o[Tr("0x29")][0][Tr("0x11")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x1f")].config.get(Tr("0x27")))[Tr("0x0")]((t=>t[Tr("0xa")]==e));let r=e,i="";return o&&(r=o[Tr("0x14")],i=n(r).toLowerCase()),{type:"format",content:Yo(t,Tr("0x1"),i)[Tr("0x23")](),color:{value:e,title:i||r}}}return{type:Tr("0x16"),content:Yo(t,"*Reset font color*")}}if(Tr("0x22")==o.commandName){const e=o.commandParams[0][Tr("0x11")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x1f")][Tr("0xf")][Tr("0x5")](Tr("0x24"))).find((t=>t[Tr("0xa")]==e));let r=e,i="";return o&&(r=o[Tr("0x14")],i=n(r)[Tr("0x7")]()),{type:Tr("0x16"),content:Yo(t,Tr("0x13"),i)[Tr("0x23")](),color:{value:e,title:i||r}}}return{type:Tr("0x16"),content:Yo(t,Tr("0x1c"))}}}}))}[Tr("0x25")](t){const e=this[Tr("0x1f")];e[Tr("0x12")][Tr("0x5")](Tr("0x2"))[Tr("0x10")](t,((n,o={})=>{const s=e[Tr("0xa")][Tr("0x1e")][Tr("0x21")],r=o[Tr("0x11")];s[Tr("0xd")]?n(o):e[Tr("0xa")][Tr("0x20")]((()=>{const n=Array[Tr("0x17")](s.getRanges());for(const o of n){const n=r?[o]:Es(t,o,e[Tr("0xa")]);for(const o of n)e.plugins[Tr("0x5")](Tr("0x2")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["entries","fontSize","fontColor.colors","registerDescriptionCallback","selection","charAt","get","afterInit","boolean","config","toUpperCase","_descriptionFactory","join","FontSize","modifySelection","plugins","find","isCollapsed","split","title","copyFormat","document","markInlineFormat","label","fontSize.options","isFormatting","pasteFormat","keys","toLowerCase","commandParams","getSelectedBlocks","forward","TrackChangesEditing","getLastPosition","format","*Remove all formatting*","word","createSelection","enableCommand","getAttributes","model","slice","*Set format to:* %0","length","backward","getFirstPosition"];var Ar,vr;Ar=kr,vr=341,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Ir extends t.Plugin{[Rr("0x22")](){const t=this.editor,n=t[Rr("0x15")],o=n[Rr("0x2")][Rr("0x1f")],s=t[Rr("0x2a")][Rr("0x21")](Rr("0xd")),r=t.locale,i=t.commands[Rr("0x21")](Rr("0x1")),x=t.commands[Rr("0x21")](Rr("0x7"));i&&x&&(s[Rr("0x13")](Rr("0x7"),((t,r={})=>{const i=r;n.change((()=>{const t=Array.from(o.getRanges()),r=o[Rr("0x2c")]?[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[Rr("0x14")]()){const t=e.getAttributeProperties(n);t&&t[Rr("0x6")]&&(yield n)}}(t,n));for(const e of t.getRanges())for(const t of e.getItems())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Rr("0xb")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[Rr("0x8")](i)[Rr("0x18")])for(const t of r)s[Rr("0x3")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Rr("0x26")][Rr("0x1e")]((e=>{const{data:n}=e;if(n&&Rr("0x7")===n.commandName){const e=[],o=n[Rr("0xa")][0];for(const[n,s]of Object[Rr("0x1b")](o))e.push(Lr(t,n,s));return e[Rr("0x18")]?{type:Rr("0xf"),content:Yo(r,Rr("0x17"),e[Rr("0x27")](", "))}:{type:Rr("0xf"),content:Yo(r,Rr("0x10"))}}})),t.plugins[Rr("0x21")](Rr("0xd"))[Rr("0x13")]("copyFormat"))}}function Sr(t,e){const n=t[Rr("0x12")](e);t.modifySelection(n,{unit:Rr("0x11"),direction:Rr("0x19")});const o=n[Rr("0x1a")]();t[Rr("0x29")](n,{unit:Rr("0x11"),direction:Rr("0xc")});const s=n[Rr("0xe")]();return t.createRange(o,s)}function Lr(t,e,n){const o=t.locale.t,r=e[Rr("0x2d")](/(?=[A-Z])/)[Rr("0x27")](" "),i=o(r[Rr("0x20")](0)[Rr("0x25")]()+r[Rr("0x16")](1)).toLowerCase();if(Rr("0x23")==typeof n)return i;if("fontColor"===e||"fontBackgroundColor"===e){const e=(0,s.normalizeColorOptions)(t.config.get(Rr("0x1d")))[Rr("0x2b")]((t=>t[Rr("0x15")]==n));return i+" ("+(e?o(e[Rr("0x4")]).toLowerCase():n)+")"}if(Rr("0x1c")===e&&isNaN(parseFloat(n))){const e=t[Rr("0x2a")][Rr("0x21")](Rr("0x28")).normalizeSizeOptions(t[Rr("0x24")][Rr("0x21")](Rr("0x5")))[Rr("0x2b")]((t=>t[Rr("0x15")]==n));return i+" ("+(e?o(e[Rr("0x0")])[Rr("0x9")]():n)+")"}return i+" ("+n+")"}const Nr=["commandParams","value","parent","model","heading.options","filter","find","ELEMENT_HEADING_CUSTOM","TrackChangesEditing","schema","_descriptionFactory","ELEMENT_HEADING","plugins","formatBlock","match","HeadingEditing","name","getSelectedBlocks","from","isObject","has","checkChild","title","heading","paragraph","registerDescriptionCallback","selection","registerElementLabel","get","blockName","editor","markBlockFormat","format","commandName","locale"];var wr,Mr;wr=Nr,Mr=239,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("0x1")],e=t[Or("0x5")],n=t.config[Or("0x22")](Or("0xa"));if(!t[Or("0x12")][Or("0x1a")](Or("0x15")))return;const o=t.plugins.get(Or("0xe"));o.enableCommand("heading",((e,n)=>{const s=n[Or("0x7")],r=Array[Or("0x18")](this[Or("0x1")][Or("0x9")].document[Or("0x20")][Or("0x17")]())[Or("0xb")]((t=>{return e=t,n=s,(o=this[Or("0x1")][Or("0x9")][Or("0xf")])[Or("0x1b")](e[Or("0x8")],n)&&!o[Or("0x19")](e)&&e[Or("0x16")]!=n;var e,n,o}));t[Or("0x9")].change((()=>{for(const t of r)o[Or("0x2")](t,{commandName:"heading",commandParams:[n],formatGroupId:Or("0x0")},_s(t))}))}));for(const t of n)Or("0x1e")!=t[Or("0x9")]&&o[Or("0x10")][Or("0x21")](t[Or("0x9")],(e=>{const n=Pr(t[Or("0x9")]);return null!==n?s(e,n):r(e,t[Or("0x1c")])}));function s(t,n){return Yo(e,Or("0x11"),[t,n])}function r(t,n){return Yo(e,Or("0xd"),[t,n])}o[Or("0x10")][Or("0x1f")]((t=>{const{type:o,data:i}=t;if(Or("0x13")==o&&i&&Or("0x1d")==i[Or("0x4")]){const t=i[Or("0x6")][0][Or("0x7")],o=Pr(t);if(null!==o)return{type:Or("0x3"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Or("0xc")]((e=>e[Or("0x9")]===t)).title;return{type:Or("0x3"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Pr(t){const e=t[Or("0x14")](/^heading(\d+)$/);return e?e[1]:null}const Dr=["find","getRanges","config","_descriptionFactory","TrackChangesEditing","getAttribute","model","selection","commandParams","markInlineFormat","registerDescriptionCallback","*Set highlight:* %0","document","formatInline","plugins","change","highlight","*Remove highlight*","backward","value","isCollapsed","commandName","getFirstPosition","editor","afterInit","format","HighlightEditing","hasAttribute","locale","createRange","has","get","title","push"];var Br,jr;Br=Dr,jr=151,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x9")](){const t=this[Ur("0x8")];if(!t[Ur("0x21")][Ur("0xf")](Ur("0xb")))return;const e=t.plugins[Ur("0x10")](Ur("0x17"));e.enableCommand(Ur("0x1"),((n,o={})=>{const s=t[Ur("0x19")][Ur("0x1f")][Ur("0x1a")],r=s[Ur("0x18")](Ur("0x1"));let i=o.value,x=[];if(s[Ur("0x5")]){const e=s[Ur("0x7")]();if(!s[Ur("0xc")]("highlight"))return void n(o);{const n=t=>t.item.getAttribute("highlight")===r,o=e.getLastMatchingPosition(n,{direction:Ur("0x3")}),s=e.getLastMatchingPosition(n);x=[t[Ur("0x19")][Ur("0xe")](o,s)],i==r&&(i=null)}}else for(const e of s[Ur("0x14")]())i?x.push(e):x[Ur("0x12")](...Es(Ur("0x1"),e,t[Ur("0x19")]));t[Ur("0x19")][Ur("0x0")]((()=>{for(const t of x)e[Ur("0x1c")](t,{commandName:Ur("0x1"),commandParams:[{value:i}]})}))}));const n=t[Ur("0xd")];e[Ur("0x16")][Ur("0x1d")]((e=>{const{type:o,data:s}=e;if(Ur("0x20")==o&&s&&Ur("0x1")==s[Ur("0x6")]){const e=n.t,o=s[Ur("0x1b")][0][Ur("0x4")];if(o){const s=t[Ur("0x15")].get("highlight.options")[Ur("0x13")]((t=>t[Ur("0x19")]==o)),r=e(s[Ur("0x11")]).toLowerCase();return{type:"format",content:Yo(n,Ur("0x1e"),r),color:{value:s.color,title:s[Ur("0x11")]}}}return{type:Ur("0xa"),content:Yo(n,Ur("0x2"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Hr=["createEmptyElement","ck-horizontal-line","showSuggestionHighlights","TrackChangesEditing","conversion","div","editor","locale","createPositionAt","horizontalLine","registerElementLabel","_descriptionFactory","get","plugins","for","enableCommand","HorizontalLineEditing","afterInit","insert","addClass","elementToStructure","has"];var Wr,zr;Wr=Hr,zr=200,function(t){for(;--t;)Wr.push(Wr.shift())}(++zr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0xf")](){const t=this[Vr("0x4")];if(!t.plugins[Vr("0x13")](Vr("0xe")))return;t[Vr("0xb")][Vr("0xa")](Vr("0x1"))[Vr("0xd")](Vr("0x7"));const e=t[Vr("0xb")][Vr("0xa")]("TrackChangesEditing"),n=t[Vr("0x5")];e[Vr("0x9")][Vr("0x8")](Vr("0x7"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Vr("0x2")][Vr("0xc")]("dataDowncast")[Vr("0x12")]({model:Vr("0x7"),view:(t,{writer:e,options:n})=>{if(!n[Vr("0x0")])return null;const o=e.createContainerElement(Vr("0x3")),s=e[Vr("0x14")]("hr");return e[Vr("0x11")](Vr("0x15"),o),e[Vr("0x10")](e[Vr("0x6")](o,0),s),o},converterPriority:"high"})}}const qr=["markBlockFormat","htmlEmbed","getCustomProperty","view","document","getSelectedElement","ELEMENT_HTML_EMBED","get","*Change %0 content*","editing","afterInit","value","enableCommand","change","selection","TrackChangesEditing","getAttribute","plugins","registerElementLabel","has","commandName","registerDescriptionCallback","rawHtmlApi","cancel","model","editor","rawHtml"];var Xr,$r;Xr=qr,$r=470,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x1a")](){const t=this[Jr("0xe")];if(!t.plugins[Jr("0x8")]("HtmlEmbed"))return;const e=t[Jr("0x6")][Jr("0x17")](Jr("0x4")),n=t.locale,o=t[Jr("0x19")][Jr("0x13")][Jr("0x14")][Jr("0x3")];e._descriptionFactory[Jr("0x7")]("rawHtml",(t=>Yo(n,Jr("0x16"),t))),t[Jr("0x6")][Jr("0x17")]("TrackChangesEditing")[Jr("0x1")](Jr("0x11"),((n,s)=>{const r=t[Jr("0xd")],i=r[Jr("0x14")][Jr("0x3")];r[Jr("0x2")]((()=>{const t=function(t){const e=t[Jr("0x15")]();return e&&e.is("element",Jr("0xf"))?t[Jr("0x15")]():null}(i);if(!t)return void n(null);const r=t[Jr("0x5")](Jr("0x0"))||"";void 0!==s&&s!==r&&(e[Jr("0x10")](t,{commandName:Jr("0x11"),commandParams:[s]}),o[Jr("0x15")]()[Jr("0x12")](Jr("0xb"))[Jr("0xc")]())}))})),e._descriptionFactory[Jr("0xa")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Jr("0x9")]){const t=Yo(n,Jr("0x16"));return{type:"format",content:Yo(n,Jr("0x18"),t)}}}))}}const Zr=["registerPostFixer","editor","imageTypeBlock","toggleImageCaption","toPrevious","ImageStyleEditing","refresh","element","schema","nodeBefore","registerCustomCallback","isInContent","markBlockFormat","imageStylePreApply","getFirstRange","isEqual","document","_splitMarkerName","selection","toNext","chain","formatBlock","formatInline","getContainedElement","newRange","removeObject","getNearestSelectionRange","next","suggestion","imageStyle","caption","isOwn","ImageTextAlternativeEditing","accept","normalizedStyles","hasAttribute","Inline image to block image","Users","side","ImageResize","insertImage","isBlockImage","*Format:* %0","commandName","imageCaption","join","getAttribute","newValue","registerElementLabel","registerDescriptionCallback","ELEMENT_INLINE_IMAGE","commandParams","format","_descriptionFactory","has","forEach","commandReversedParams","ELEMENT_IMAGE","deletion","afterInit","*Set image text alternative:* %0","getSuggestions","imageTypeInline","imageStylePostApply","author","forward","*Reset image width*","isBefore","markDeletion","fromPosition","markInlineFormat","getClosestSelectedImageElement","start","addObject","ImageBlockEditing","toLowerCase","insertion","from","end","createRange","createRangeOn","alt","convertBlockImageToInline","hasSuggestion","forceDefaultExecution","backward","discardSuggestion","model","subType","markInsertion","locale","setImageNaturalSizeAttributes","resizedWidth","length","discard","detach","resizeImage","head","imageBlock","ImageInlineEditing","shouldConvertImageType","plugins","imageTextAlternative","getChangedMarkers","filter","commands","enableCommand","ImageCaptionEditing","findIndex","_suggestionFactory","type","change","find","nodeAfter","width","getSuggestion","get","value","ImageUtils","convertInlineImageToBlock","_findSuggestions"];var Yr,ti;Yr=Zr,ti=416,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x6")](){const t=this[ei("0x45")];if(!t[ei("0x30")][ei("0x1")]("ImageEditing"))return;const n=t.plugins[ei("0x3f")]("TrackChangesEditing"),o=t[ei("0x30")][ei("0x3f")](ei("0x41")),s={},r=t[ei("0x25")];if(n.enableCommand(ei("0x6c")),n[ei("0x0")][ei("0x74")](ei("0x2d"),(t=>Yo(r,ei("0x4"),t))),n[ei("0x0")][ei("0x74")]("imageInline",(t=>Yo(r,ei("0x76"),t))),n[ei("0x0")][ei("0x74")]("caption",(()=>Yo(r,"ELEMENT_CAPTION"))),t.plugins[ei("0x1")]("ImageUploadEditing")&&n.enableCommand("uploadImage"),t.plugins[ei("0x1")](ei("0x15"))&&t[ei("0x30")][ei("0x1")](ei("0x2e"))&&(n[ei("0x35")]("imageTypeInline",((e,s)=>{const r=o[ei("0x12")](t.model.document[ei("0x56")]);t[ei("0x22")].change((()=>{n.markBlockFormat(r,{commandName:ei("0x9"),commandParams:[s]},[],ei("0x1d"))}))})),n[ei("0x35")](ei("0x46"),((e,s)=>{t[ei("0x22")][ei("0x3a")]((r=>{let x=o[ei("0x12")](t[ei("0x22")][ei("0x54")].selection),a=r[ei("0x1b")](x);const c=i.LivePosition[ei("0x10")](a[ei("0x13")],ei("0x48")),l=i.LivePosition.fromPosition(a[ei("0x19")],ei("0x57"));n[ei("0x1f")]((()=>e(s))),x=o[ei("0x12")](t[ei("0x22")][ei("0x54")][ei("0x56")]),a=r[ei("0x1b")](x);const u=r.createRange(c,l);c.detach(),l[ei("0x2a")](),n[ei("0x50")](x,{commandName:ei("0x9"),commandParams:[s]},[],ei("0x42")),u[ei("0x13")].isBefore(a[ei("0x13")])&&n[ei("0x24")](r[ei("0x1a")](u[ei("0x13")],a.start),ei("0x42")),a[ei("0x19")][ei("0xe")](u[ei("0x19")])&&n[ei("0x24")](r[ei("0x1a")](a.end,u[ei("0x19")]),ei("0x42"))}))})),n._suggestionFactory[ei("0x4e")](ei("0x59"),ei("0x42"),ei("0x71"),(()=>!1)),n[ei("0x38")].registerCustomCallback("formatBlock",ei("0x42"),ei("0x65"),(()=>!1)),n[ei("0x38")][ei("0x4e")](ei("0x59"),ei("0x42"),ei("0x29"),n[ei("0x38")].getSuggestionCallback(ei("0x59"),"","accept")),n[ei("0x38")].registerCustomCallback(ei("0x17"),"convertInlineImageToBlock","join",(()=>!1)),n._suggestionFactory[ei("0x4e")](ei("0x17"),ei("0x42"),ei("0x29"),(([e])=>{const o=n[ei("0x38")].getSuggestionCallback(ei("0x17"),"",ei("0x29"));let s=e[ei("0x13")],r=e[ei("0x19")];const i=t.model[ei("0x4c")][ei("0x5e")](s,ei("0x20")),x=t.model[ei("0x4c")][ei("0x5e")](r,ei("0xc"));i.isCollapsed&&(s=i[ei("0x13")]),x.isCollapsed&&(r=x[ei("0x19")]),o([t[ei("0x22")][ei("0x1a")](s,r)])})),n[ei("0x38")][ei("0x4e")](ei("0x59"),ei("0x42"),"chain",c),n._suggestionFactory[ei("0x4e")]("insertion",ei("0x42"),ei("0x58"),c)),t[ei("0x30")][ei("0x1")](ei("0x36"))&&(n[ei("0x35")](ei("0x47"),((e,s)=>{const r=t[ei("0x30")][ei("0x3f")]("ImageCaptionUtils");let i=o[ei("0x12")](t.model[ei("0x54")][ei("0x56")]),x=r.getCaptionFromImageModelElement(i);t[ei("0x22")][ei("0x3a")]((()=>{if(x)return void n[ei("0xf")](t.model[ei("0x1b")](x));const a=o[ei("0x6d")](i);e(s),i=o[ei("0x12")](t[ei("0x22")][ei("0x54")][ei("0x56")]),x=r.getCaptionFromImageModelElement(i),n[ei("0x24")](t[ei("0x22")][ei("0x1b")](x),a?null:ei("0x70"))}))})),n._suggestionFactory[ei("0x4e")](ei("0x17"),"imageCaption",ei("0x58"),c)),t[ei("0x30")][ei("0x1")](ei("0x49"))){n[ei("0x35")](ei("0x61"),((s,r)=>{const i=t[ei("0x30")].get(ei("0x69")).me,x=t[ei("0x34")][ei("0x3f")](ei("0x61"));let a=o[ei("0x12")](t.model.document.selection),c=t[ei("0x22")][ei("0x1b")](a),l=x[ei("0x40")];if(l==r[ei("0x40")])return;const u={commandName:ei("0x61"),commandParams:[r],formatGroupId:(0,e.uid)()};t[ei("0x22")][ei("0x3a")]((()=>{if(n[ei("0x8")]()[ei("0x33")]((t=>t[ei("0x4f")]&&i==t[ei("0xb")]&&(ei("0x59")==t.type||ei("0x5a")==t[ei("0x39")])&&(ei("0x51")==t.subType||"imageStylePostApply"==t[ei("0x23")])&&t[ei("0x52")]()[ei("0x53")](c)))[ei("0x2")]((t=>n[ei("0x21")](t[ei("0x2c")]))),a=o[ei("0x12")](t[ei("0x22")][ei("0x54")].selection),c=t[ei("0x22")][ei("0x1b")](a),x.refresh(),t[ei("0x34")][ei("0x3f")]("imageTypeInline")[ei("0x4a")](),t[ei("0x34")][ei("0x3f")](ei("0x46")).refresh(),l=x[ei("0x40")],l!=r[ei("0x40")])return o.isInlineImage(a)&&x[ei("0x2f")](r[ei("0x40")],a)?(s({...r,setImageSizes:!1}),a=o[ei("0x12")](t[ei("0x22")].document.selection),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],ei("0x51"))):void(o[ei("0x6d")](a)?n[ei("0x50")](a,u,[],ei("0xa")):n[ei("0x11")](c,u,"imageStylePostApply"))}))}));for(const e of t[ei("0x30")][ei("0x3f")]("ImageStyleEditing")[ei("0x66")])s[e.name]=e.title[ei("0x16")]();n[ei("0x38")][ei("0x4e")]("formatBlock",ei("0x51"),ei("0x71"),(()=>!1)),n[ei("0x38")][ei("0x4e")](ei("0x59"),ei("0xa"),ei("0x71"),(()=>!1)),n[ei("0x38")][ei("0x4e")](ei("0x5a"),ei("0xa"),ei("0x71"),(()=>!1)),n._suggestionFactory[ei("0x4e")](ei("0x59"),ei("0x51"),ei("0x65"),(([t])=>{o[ei("0x26")](t[ei("0x5b")]())})),n[ei("0x38")].registerCustomCallback("formatBlock","imageStylePreApply","discard",((t,e)=>{n[ei("0x38")].getSuggestionCallback(ei("0x59"),"",ei("0x65"))(t,{commandName:e[ei("0x6f")],commandParams:e[ei("0x3")]})})),n[ei("0x38")][ei("0x4e")]("formatBlock",ei("0x51"),ei("0x58"),c)}const x=[{type:ei("0x59"),subType:"imageStylePreApply"},{type:ei("0x17"),subType:"imageCaption"},{type:ei("0x59"),subType:ei("0x42")},{type:"insertion",subType:ei("0x42")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t.type==e&&t[ei("0x23")]==n)),r=x[ei("0x37")]((({type:t,subType:n})=>e[ei("0x39")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[ei("0x52")](),a=e[ei("0x52")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[ei("0x43")](i,ei("0x17"))[ei("0x33")]((({suggestion:t,meta:e})=>e[ei("0x63")]&&ei("0x42")==t.subType));if(t.length>1&&a[ei("0x19")][ei("0x53")](i[ei("0x13")]))return!0;if(1==t[ei("0x28")]&&(i[ei("0x13")][ei("0x53")](a[ei("0x19")])||i.end[ei("0x53")](a[ei("0x13")])))return!0}if(3==s&&3==r&&i[ei("0x13")][ei("0xe")](a[ei("0x13")])){const t=i[ei("0x19")][ei("0x3c")],e=a[ei("0x13")][ei("0x4d")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[ei("0x22")][ei("0x54")][ei("0x44")]((()=>{let e=!1;const s=Array[ei("0x18")](t[ei("0x22")][ei("0x54")].differ[ei("0x32")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[ei("0x55")](t);if(ei("0x60")==s&&n[ei("0x1e")](a)){if("formatBlock"==i&&(ei("0x51")==x||ei("0xa")==x)){const t=n[ei("0x3e")](a);if(r[ei("0x5c")]){const s=t[ei("0x52")]()[ei("0x5b")]();if(o.isBlockImage(s))continue;n[ei("0x21")](t),e=!0}}if(ei("0x17")==i&&ei("0x70")==x&&!r[ei("0x5c")]){const t=n[ei("0x3e")](a);t[ei("0x5f")]&&t[ei("0x5f")][ei("0x4f")]&&(n[ei("0x21")](t.next),e=!0)}}}return e})),t.plugins.has(ei("0x6b"))&&n.enableCommand(ei("0x2b"),((e,s)=>{const r=o[ei("0x12")](t.model[ei("0x54")][ei("0x56")]);r.getAttribute(ei("0x27"))!=s.width&&t[ei("0x22")][ei("0x3a")]((()=>{n.markBlockFormat(r,{commandName:ei("0x2b"),commandParams:[s]})}))})),t[ei("0x30")][ei("0x1")](ei("0x64"))&&n[ei("0x35")](ei("0x31"),((e,s)=>{const r=o[ei("0x12")](t[ei("0x22")].document[ei("0x56")]);(r[ei("0x67")](ei("0x1c"))?r[ei("0x72")](ei("0x1c")):"")!=s.newValue&&t[ei("0x22")][ei("0x3a")]((()=>{n.markBlockFormat(r,{commandName:ei("0x31"),commandParams:[s]})}))})),n[ei("0x0")].registerDescriptionCallback((t=>{if(x[ei("0x3b")]((({type:e,subType:n})=>t[ei("0x39")]==e&&t[ei("0x23")]==n)))return t.previous?{}:void 0})),n[ei("0x0")][ei("0x75")]((t=>{if(ei("0x17")==t[ei("0x39")]||ei("0x5")==t[ei("0x39")]){const e=t[ei("0x5b")]();if(e&&e.is(ei("0x4b"),ei("0x62")))return{type:ei("0x17")==t.type?ei("0x14"):ei("0x5d"),element:e,quantity:1}}})),n._descriptionFactory[ei("0x75")]((t=>"formatBlock"==t[ei("0x39")]&&ei("0x42")==t.subType?{type:ei("0x78"),content:ei("0x68")}:ei("0x59")==t[ei("0x39")]&&ei("0x1d")==t[ei("0x23")]?{type:ei("0x78"),content:"Block image to inline image"}:void 0)),n[ei("0x0")][ei("0x75")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e[ei("0x6f")]){const t=e[ei("0x77")][0][ei("0x40")];return n=ei("0x6a")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:"format",content:Yo(r,ei("0x6e"),n)}}if(ei("0x31")==e.commandName){const t=e.commandParams[0][ei("0x73")];return t?{type:ei("0x78"),content:Yo(r,ei("0x7"),'"'+t+'"')}:{type:ei("0x78"),content:Yo(r,"*Remove image text alternative*")}}if(ei("0x2b")==e.commandName){const t=e[ei("0x77")][0][ei("0x3d")];return t?{type:"format",content:Yo(r,"*Set image width:* %0",t)}:{type:ei("0x78"),content:Yo(r,ei("0xd"))}}}var n}))}}const oi=["src","registerCustomCallback","commandParams","document","getContainedElement","_suggestionFactory","enableCommand","editor","registerDescriptionCallback","formatBlock","locale","TrackChangesEditing","author","has","handleSuggestionDescription","commandName","getAttribute","getSelectedElement","get","_descriptionFactory","format","model","change","replaceImageSource","subType","selection","accept","discard","handleReplaceImageCommand","source","getSuggestionCallback","*Format:* replace image URL","plugins","markBlockFormat","Users"];var si,ri;si=oi,ri=423,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{afterInit(){if(!this.editor[ii("0x1d")][ii("0xa")]("ImageEditing"))return;const t=this[ii("0x4")].plugins[ii("0xf")]("TrackChangesEditing");t[ii("0x3")](ii("0x14"),((t,e)=>this[ii("0x19")](t,e))),t._suggestionFactory[ii("0x21")](ii("0x6"),ii("0x14"),ii("0x17"),t[ii("0x2")][ii("0x1b")](ii("0x6"),null,ii("0x18"))),t[ii("0x2")][ii("0x21")](ii("0x6"),ii("0x14"),ii("0x18"),t[ii("0x2")].getSuggestionCallback(ii("0x6"),null,ii("0x17"))),t[ii("0x10")][ii("0x5")]((t=>this.handleSuggestionDescription(t)))}[ii("0x19")](t,e){const n=this[ii("0x4")][ii("0x1d")][ii("0xf")](ii("0x8")),o=this[ii("0x4")][ii("0x12")][ii("0x0")][ii("0x16")][ii("0xe")]();this[ii("0x4")][ii("0x12")][ii("0x13")]((()=>{let s=o[ii("0xd")](ii("0x20"));const r=this[ii("0x4")].plugins.get(ii("0x1f")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t[ii("0x1")]();if(ii("0x14")===t[ii("0x15")]&&e===o){t[ii("0x9")]!==r&&t[ii("0x18")](),s=t.data[ii("0x22")][0][ii("0x1a")];break}}t(e),n[ii("0x1e")](o,{commandName:ii("0x14"),commandParams:[{source:s}]},[],"replaceImageSource")}))}[ii("0xb")](t){const{data:e}=t;if(e&&ii("0x14")===e[ii("0xc")]){const t=ii("0x1c");return{type:ii("0x11"),content:Yo(this[ii("0x4")][ii("0x7")],t)}}}}const ai=["plugins","_trackChangesExecuted","enableCommand","bind","importWord","_setSuggestionData","listenTo","track_changes","get","_trackChangesValueDuringImport","lowest","execute","editor","value","dataInsert","_handleImportedData","high","forEach","trackChanges","commands"];var ci,li;ci=ai,li=470,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{constructor(t){super(t),this[ui("0x13")]=!1,this._trackChangesExecuted=!1}afterInit(){const t=this[ui("0x2")],e=t[ui("0x9")][ui("0x12")](ui("0xe")),n=t[ui("0x9")].get(ui("0x8"));e&&(e.on(ui("0x1"),((t,[,e])=>{this[ui("0x13")]=n[ui("0x3")],e.collaboration_features[ui("0x11")]=!this[ui("0x13")]}),{priority:ui("0x6")}),this[ui("0x10")](e,ui("0x4"),this[ui("0x5")][ui("0xd")](this)),this[ui("0x10")](e,ui("0x4"),(()=>{this[ui("0xb")]&&(n[ui("0x1")](),this[ui("0xb")]=!1)}),{priority:ui("0x0")}),t[ui("0xa")][ui("0x12")]("TrackChangesEditing")[ui("0xc")](ui("0xe")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this.editor.commands[ui("0x12")](ui("0x8")),s=o.value;this[ui("0x13")]!==s&&(o[ui("0x1")](),this[ui("0xb")]=!0),n&&n[ui("0x7")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ui("0xa")][ui("0x12")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ui("0xe")}}};this[ui("0x2")][ui("0xa")][ui("0x12")]("TrackChangesEditing")[ui("0xf")](s)}))}}const gi=["enableCommand","TrackChangesEditing","editor","model","commandName","change","has","indent","format","indentBlock","schema","_descriptionFactory","plugins","afterInit","locale","document","outdent","markBlockFormat","IndentEditing","checkAttribute","getItems","from","getSelectedBlocks","outdentBlock","blockIndent","registerDescriptionCallback","selection","*Outdent:* %0","*Indent:* %0","get"];var fi,mi;fi=gi,mi=362,function(t){for(;--t;)fi.push(fi.shift())}(++mi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0xb")](){const t=this[hi("0x0")],e=t[hi("0xa")][hi("0x1b")](hi("0x1d"));t[hi("0xa")][hi("0x4")](hi("0x10"))&&(e.enableCommand(hi("0x5")),e.enableCommand(hi("0xe")));const n=t[hi("0xc")];if(t[hi("0xa")][hi("0x4")]("IndentBlock")){for(const n of[hi("0x7"),hi("0x15")])e[hi("0x1c")](n,(()=>{const o=Array[hi("0x13")](this[hi("0x0")][hi("0x1")][hi("0xd")][hi("0x18")][hi("0x14")]()).filter((t=>this[hi("0x0")].model[hi("0x8")][hi("0x11")](t,hi("0x16"))));t[hi("0x1")][hi("0x3")]((()=>{for(const t of o)e[hi("0xf")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e._descriptionFactory[hi("0x17")]((t=>{const{data:o}=t;if(!o)return;if(hi("0x7")!=o[hi("0x2")]&&hi("0x15")!=o[hi("0x2")])return;const s=t[hi("0x12")]()[0],r=e[hi("0x9")].getItemLabel(s);return hi("0x7")==o[hi("0x2")]?{type:hi("0x6"),content:Yo(n,hi("0x1a"),r)}:hi("0x15")==o[hi("0x2")]?{type:hi("0x6"),content:Yo(n,hi("0x19"),r)}:void 0}))}}}var bi,Ei,_i=["plugins","enableCommand","requires","TrackChangesEditing","input"];bi=_i,Ei=347,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("0x0")](){return[Js.Input]}init(){this.editor[Ti("0x3")].get(Ti("0x1"))[Ti("0x4")](Ti("0x2"))}}const yi=["hasAttribute","format","document","commandParams","locale","from","editor","afterInit","getFirstPosition","getAttribute","has","isCollapsed","commandName","model","unlink","registerDescriptionCallback","enableCommand","plugins","_descriptionFactory","LinkEditing","change","get","linkHref","TrackChangesEditing","*Remove link*","getFirstRange","markInlineFormat","*Set link:* %0","link"];var ki,Ai;ki=yi,Ai=194,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x10")](){const t=this.editor;if(!t[vi("0x1a")][vi("0x13")](vi("0x1c")))return;const e=t[vi("0x1a")][vi("0x1")](vi("0x3"));e[vi("0x19")](vi("0x8"),((n,o)=>{const s=t[vi("0x16")].document.selection;let r=[];if(s[vi("0x14")]){if(!s[vi("0x9")]("linkHref"))return void n(o);{const e=(0,Js.findAttributeRange)(s.getFirstPosition(),vi("0x2"),s[vi("0x12")](vi("0x2")),t.model);r=[e]}}else r=Array[vi("0xe")](s.getRanges());t[vi("0x16")][vi("0x0")]((()=>{for(const t of r)e[vi("0x6")](t,{commandName:vi("0x8"),commandParams:[o]})}))})),e[vi("0x19")](vi("0x17"),(()=>{const n=this[vi("0xf")].model,o=n[vi("0xb")].selection;n.change((()=>{let n=[];n=o[vi("0x14")]?[(0,Js.findAttributeRange)(o[vi("0x11")](),vi("0x2"),o[vi("0x12")](vi("0x2")),t[vi("0x16")])]:Es(vi("0x2"),o[vi("0x5")](),t[vi("0x16")]);for(const t of n)e[vi("0x6")](t,{commandName:vi("0x17"),commandParams:[]})}))})),e[vi("0x1b")][vi("0x18")]((e=>{const{data:n}=e,o=t[vi("0xd")];if(n){if(vi("0x8")==n[vi("0x15")]){const t=n[vi("0xc")][0];return{type:vi("0xa"),content:Yo(o,vi("0x7"),'"'+t+'"')}}return vi("0x17")==n[vi("0x15")]?{type:"format",content:Yo(o,vi("0x4"))}:void 0}}))}}const Ii=["todoList","registerElementLabel","before","replace","name","paragraph","commandParams","nextSibling","checkChild","element","ListEditing","getAttribute","ELEMENT_LIST_ITEM","get","end","List","from","listType","listIndent","TodoListEditing","createPositionAt","add","selection","bulleted","has","checkTodoList","numbered","commandName","*Uncheck item*","registerDescriptionCallback","listItem","previousSibling","*Indent:* %0","document","_descriptionFactory","markBlockFormat","format","change","enableCommand","commands","execute","indentList","value","todo","ELEMENT_BULLETED_LIST","*Check item*","slice","parent","getSelectedBlocks","numberedList","createRange","_selectedElements","model","editor","plugins","filter","TrackChangesEditing","forceValue","bulletedList"];var Si,Li;Si=Ii,Li=474,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Ni=function(t,e){return Ii[t-=0]};class wi extends t.Plugin{afterInit(){const t=this[Ni("0x33")],e=t.locale;if(!t[Ni("0x34")][Ni("0x16")](Ni("0x8")))return;const n=t[Ni("0x34")][Ni("0xb")](Ni("0x36")),o=t[Ni("0x34")].has(Ni("0x11"));function s(e){return()=>{const o=t[Ni("0x32")][Ni("0x1f")][Ni("0x14")],s=t[Ni("0x25")].get(e);if(s[Ni("0x28")])return void t[Ni("0x26")](Ni("0x3"),{});const r=e[Ni("0x2c")](0,-4),i=function(t,e,n){let o=Array[Ni("0xe")](t).filter((t=>{return e=t,(o=n)[Ni("0x6")](e[Ni("0x2d")],"listItem")&&!o.isObject(e);var e,o}));o=o[Ni("0x35")]((t=>!t.is(Ni("0x7"),Ni("0x1c"))||t.getAttribute(Ni("0xf"))!=e));const s=new Set;for(const t of o)t.is(Ni("0x7"),Ni("0x1c"))?s[Ni("0x13")](Mi(t)):s[Ni("0x13")](t);return Array[Ni("0xe")](s)}(o[Ni("0x2e")](),r,t[Ni("0x32")].schema);t[Ni("0x32")].change((()=>{for(const t of i)n[Ni("0x21")](t,{commandName:e,commandParams:[{forceValue:!s[Ni("0x28")]}],formatGroupId:"blockName"},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0xe")](t);const n=e.findIndex((t=>Ni("0x1c")!=t.name));return n>-1&&(e=e[Ni("0x2c")](0,n)),e}(t[Ni("0x32")].document[Ni("0x14")][Ni("0x2e")]()),s=t.model[Ni("0x30")](t[Ni("0x32")][Ni("0x12")](o[0],Ni("0x0")),t[Ni("0x32")][Ni("0x12")](o[o.length-1],Ni("0xc")));t[Ni("0x32")][Ni("0x23")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:Ni("0x10")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Ni("0x9")]("listIndent")>n[Ni("0x9")]("listIndent");)e[Ni("0x13")](t),t=t[Ni("0x5")]}return Array[Ni("0xe")](e)}(o))}))}}n[Ni("0x24")](Ni("0x2f"),s(Ni("0x2f"))),n[Ni("0x24")](Ni("0x38"),s(Ni("0x38"))),o&&n[Ni("0x24")]("todoList",s(Ni("0x39"))),n[Ni("0x24")](Ni("0x27"),r(Ni("0x27"))),n[Ni("0x24")]("outdentList",r("outdentList")),o&&n[Ni("0x24")]("checkTodoList",(()=>{const e=t.commands[Ni("0xb")]("checkTodoList"),o=Array.from(e[Ni("0x31")]);o[Ni("0x35")]((t=>t.getAttribute("todoListChecked")!=e.value)),t[Ni("0x32")][Ni("0x23")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:Ni("0x17"),commandParams:[{forceValue:!e.value}]})}))})),n[Ni("0x20")][Ni("0x3a")](Ni("0x1c"),(t=>Yo(e,Ni("0xa"),t))),n[Ni("0x20")][Ni("0x1b")]((t=>{const{data:n}=t;if(n){if("numberedList"==n[Ni("0x19")]||Ni("0x38")==n[Ni("0x19")]||Ni("0x39")==n[Ni("0x19")])switch(n[Ni("0x19")][Ni("0x1")](Ni("0xd"),"")){case Ni("0x15"):return o(Yo(e,Ni("0x2a")));case Ni("0x18"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case Ni("0x29"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if("indentList"==n.commandName)return{type:Ni("0x22"),content:Yo(e,Ni("0x1e"),Yo(e,Ni("0xa")))};if("outdentList"==n.commandName)return{type:Ni("0x22"),content:Yo(e,"*Outdent:* %0",Yo(e,Ni("0xa")))};if("checkTodoList"==n.commandName)return n[Ni("0x4")][0][Ni("0x37")]?{type:Ni("0x22"),content:Yo(e,Ni("0x2b"))}:{type:"format",content:Yo(e,Ni("0x1a"))}}function o(t){return{type:"format",content:Yo(e,"*Change to:* %0",t)}}}))}}function Mi(t){const e=t.getAttribute(Ni("0x10"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ni("0x1d")].is(Ni("0x7"),Ni("0x1c"));){const o=t[Ni("0x1d")].getAttribute(Ni("0x10"));if(o==e)n=t[Ni("0x1d")];else if(o<e)break;t=t[Ni("0x1d")]}return n}function Oi(t){const e=[];if(t.is(Ni("0x7"),Ni("0x1c"))&&t[Ni("0x9")](Ni("0x10"))>0){let n=t[Ni("0x5")];for(;n&&Ni("0x1c")==n[Ni("0x2")]&&n[Ni("0x9")]("listIndent")==t.getAttribute(Ni("0x10"));)e.push(n),n=n[Ni("0x5")]}return e}const Fi=["TrackChangesEditing","handleListStartCommand","*Format:* set order to reversed","toUpperCase","numbered","commandParams","locale","list.properties","getLastPosition","listItem","_LIST_","selection","type","_descriptionFactory","element","editor","bind","replace","getSiblingNodes","commandName","get","listType","ListUtils","push","createRange","change","length","*Format:* set start index to %0","reversed","markMultiRangeBlockFormat","createPositionAt","filter","plugins","*Format:* set order to regular","forward","_getSuggestionBlocks","document","from","listStart","getListTypeFromListStyleType","before","handleListStyleCommand","ListPropertiesEditing","backward","*Change to:* %0","handleListReversedCommand","_getSuggestionBlocksForListStyle","_getTranslationKeyForListStyle","afterInit","getFirstPosition","startIndex","format","listStyle","listReversed","has","model","registerDescriptionCallback","config","handleDescriptions","map","getSelectedBlocks","ELEMENT_","getAttribute","enableCommand","flat"];var Pi,Di;Pi=Fi,Di=254,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x36")](){if(!this[Bi("0x15")][Bi("0x26")][Bi("0x3c")](Bi("0x30")))return;const t=this[Bi("0x15")][Bi("0x3f")][Bi("0x1a")](Bi("0xd")),e=this[Bi("0x15")].plugins.get(Bi("0x6"));t.styles&&e[Bi("0x4")](Bi("0x3a"),this.handleListStyleCommand[Bi("0x16")](this)),t[Bi("0x22")]&&e[Bi("0x4")]("listReversed",this[Bi("0x33")].bind(this)),t[Bi("0x38")]&&e[Bi("0x4")](Bi("0x2c"),this[Bi("0x7")][Bi("0x16")](this)),e[Bi("0x13")][Bi("0x3e")](this[Bi("0x40")].bind(this))}[Bi("0x2f")](t,e={}){const n=this[Bi("0x15")][Bi("0x26")][Bi("0x1a")]("TrackChangesEditing"),o=this[Bi("0x34")]();this[Bi("0x15")][Bi("0x3d")][Bi("0x1f")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:Bi("0x3a")})}))}handleListReversedCommand(t,e={}){const n=this.editor[Bi("0x26")][Bi("0x1a")]("TrackChangesEditing"),o=this._getSuggestionBlocks((t=>t.is(Bi("0x14"),Bi("0xf"))&&Bi("0xa")===t[Bi("0x3")](Bi("0x1b"))));if(o.length<1)return;const s=o[Bi("0x0")]((t=>this[Bi("0x15")][Bi("0x3d")].createRange(this.editor[Bi("0x3d")].createPositionAt(t,Bi("0x2e")),this[Bi("0x15")].model[Bi("0x24")](t,0))));this.editor[Bi("0x3d")][Bi("0x1f")]((()=>{n[Bi("0x23")](s,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}[Bi("0x7")](t,e={}){const n=this[Bi("0x15")][Bi("0x26")][Bi("0x1a")]("TrackChangesEditing"),o=this[Bi("0x29")]((t=>t.is("element",Bi("0xf"))&&"numbered"===t[Bi("0x3")]("listType")));if(o[Bi("0x20")]<1)return;const s=o[Bi("0x0")]((t=>this[Bi("0x15")][Bi("0x3d")][Bi("0x1e")](this[Bi("0x15")][Bi("0x3d")][Bi("0x24")](t,Bi("0x2e")),this[Bi("0x15")].model[Bi("0x24")](t,0))));this.editor.model[Bi("0x1f")]((()=>{n[Bi("0x23")](s,{commandName:Bi("0x2c"),commandParams:[{startIndex:e[Bi("0x38")]}],formatGroupId:"listStart"})}))}[Bi("0x40")](t){const e=this.editor[Bi("0xc")],{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0x19")]){case Bi("0x3a"):o=Bi("0x32"),s={type:Bi("0x39"),content:Yo(e,o,Yo(e,this[Bi("0x35")](n[Bi("0xb")][0][Bi("0x12")])))};break;case Bi("0x3b"):o=n[Bi("0xb")][0][Bi("0x22")]?Bi("0x8"):Bi("0x27"),s={type:Bi("0x39"),content:Yo(e,o)};break;case Bi("0x2c"):o=Bi("0x21"),s={type:"format",content:Yo(e,o,n[Bi("0xb")][0][Bi("0x38")])}}return s}[Bi("0x34")](){var t,e,n,o;const s=this[Bi("0x15")][Bi("0x26")].get(Bi("0x1c"));let r=Array.from(this[Bi("0x15")].model[Bi("0x2a")][Bi("0x11")][Bi("0x1")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element","listItem"))&&r.unshift(...s[Bi("0x18")](this[Bi("0x15")].model.document[Bi("0x11")][Bi("0x37")](),Bi("0x31"))),(null===(e=r[r[Bi("0x20")]-1])||void 0===e?void 0:e.is(Bi("0x14"),Bi("0xf")))&&r[Bi("0x1d")](...s[Bi("0x18")](this.editor[Bi("0x3d")][Bi("0x2a")][Bi("0x11")][Bi("0xe")](),Bi("0x28"))),r=[...new Set(r)],(null===(o=null===(n=this[Bi("0x15")][Bi("0x3d")][Bi("0x2a")][Bi("0x11")][Bi("0x37")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Bi("0x14"),Bi("0xf")))&&(r=r[Bi("0x25")]((t=>t.is(Bi("0x14"),"listItem")))),r}_getSuggestionBlocks(t){const e=this[Bi("0x15")][Bi("0x26")][Bi("0x1a")]("ListUtils");let n=Array[Bi("0x2b")](this[Bi("0x15")].model[Bi("0x2a")][Bi("0x11")][Bi("0x1")]())[Bi("0x25")](t).map((t=>{const n=this[Bi("0x15")][Bi("0x3d")][Bi("0x24")](t,0);return[...e[Bi("0x18")](n,Bi("0x31")),...e[Bi("0x18")](n,Bi("0x28"))]}))[Bi("0x5")]();return n=[...new Set(n)],n}[Bi("0x35")](t){return Bi("0x2")+this.editor[Bi("0x26")].get(Bi("0x1c"))[Bi("0x2d")](t)[Bi("0x9")]()+Bi("0x10")+t[Bi("0x9")]()[Bi("0x17")](/-/g,"_")}}const Ui=["div","showSuggestionHighlights","dataDowncast","enableCommand","editor","elementToElement","conversion","plugins","_descriptionFactory","MediaEmbedEditing","ELEMENT_MEDIA","afterInit","TrackChangesEditing","stop","downcastDispatcher","data","createEmptyElement","media","mediaEmbed","high","registerElementLabel","for","options"];var Gi,Hi;Gi=Ui,Hi=445,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Wi=function(t,e){return Ui[t-=0]};class zi extends t.Plugin{[Wi("0x3")](){const t=this[Wi("0x13")];if(!t[Wi("0x16")].has(Wi("0x1")))return;const e=t[Wi("0x16")].get(Wi("0x4")),n=t.locale;e[Wi("0x12")](Wi("0xa")),e[Wi("0x0")][Wi("0xc")](Wi("0x9"),(t=>Yo(n,Wi("0x2"),t))),t[Wi("0x15")][Wi("0xd")](Wi("0x11"))[Wi("0x14")]({model:Wi("0x9"),view:(t,{writer:e,options:n})=>{if(n[Wi("0x10")])return e[Wi("0x8")](Wi("0xf"))},converterPriority:Wi("0xb")}),t[Wi("0x7")][Wi("0x6")].on("attribute:url:media",((t,e,n)=>{n[Wi("0xe")].showSuggestionHighlights&&t[Wi("0x5")]()}),{priority:"high"})}}const Vi=["MentionEditing","mention","has","TrackChangesEditing","editor","plugins","enableCommand"];var Ki,qi;Ki=Vi,qi=457,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x2")];t[Xi("0x3")][Xi("0x0")](Xi("0x5"))&&t[Xi("0x3")].get(Xi("0x1"))[Xi("0x4")](Xi("0x6"))}}const Ji=["registerElementLabel","_descriptionFactory","TrackChangesEditing","pageBreak","editor","plugins","get","ELEMENT_PAGE_BREAK","enableCommand"];var Qi,Zi;Qi=Ji,Zi=349,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{afterInit(){const t=this[Yi("0x6")];if(!t[Yi("0x7")].has("PageBreakEditing"))return;t[Yi("0x7")][Yi("0x8")](Yi("0x4"))[Yi("0x1")](Yi("0x5"));const e=t.plugins[Yi("0x8")](Yi("0x4")),n=t.locale;e[Yi("0x3")][Yi("0x2")]("pageBreak",(t=>Yo(n,Yi("0x0"),t)))}}const ex=["end","span","isObject","getFirstRange","TrackChangesEditing","schema","toViewPosition","name","registerElementLabel","isLimit","markerRange","downcastDispatcher","format","filter","paragraph","Paragraph","bindElementToMarker","registerDescriptionCallback","getItemLabel","markBlockFormat","insertParagraph","ck-suggestion-marker-split","plugins","*Change to:* %0","document","afterInit","_descriptionFactory","ELEMENT_PARAGRAPH","start","addClass","consume","activeMarkers","insertion","includes","isTouching","enableCommand","has","checkChild","createUIElement","addMarker:suggestion:insertion","editor","nodeAfter","model","isBlock","options","get","data","locale","ck-suggestion-marker--active","type","highest","writer","change","from","parent","markerName","blockName"];var nx,ox;nx=ex,ox=297,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0xd")](){const t=this.editor;if(!t.plugins[sx("0x18")](sx("0x3")))return;const e=t[sx("0x23")],n=t[sx("0xa")][sx("0x21")](sx("0x31"));n._descriptionFactory[sx("0x35")](sx("0x2"),(t=>Yo(e,sx("0xf"),t))),n[sx("0x17")](sx("0x2"),((e,o={})=>{const s=t[sx("0x1e")][sx("0xc")],r=o.selection||s.selection,i=Array[sx("0x29")](r.getSelectedBlocks())[sx("0x1")]((t=>{return e=t,(n=this[sx("0x1c")].model.schema).checkChild(e[sx("0x2a")],sx("0x2"))&&!n[sx("0x2f")](e)&&sx("0x2")!=e[sx("0x34")];var e,n}));t[sx("0x1e")][sx("0x28")]((()=>{for(const t of i)n[sx("0x7")](t,{commandName:sx("0x2"),commandParams:[],formatGroupId:sx("0x2c")},_s(t))}))})),n[sx("0xe")][sx("0x5")]((t=>{const{data:n}=t;if(n&&sx("0x2")==n.commandName)return{type:sx("0x0"),content:Yo(e,sx("0xb"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n[sx("0x17")](sx("0x8")),t.editing.downcastDispatcher.on(sx("0x1b"),ix(t),{priority:sx("0x26")}),t[sx("0x22")][sx("0x38")].on(sx("0x1b"),((e,n,o)=>{o[sx("0x20")].showSuggestionHighlights&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x26")});const o=n._descriptionFactory;o[sx("0x5")]((n=>{if(sx("0x14")!==n[sx("0x25")])return;const{start:s,end:r}=n[sx("0x30")]();if(!s[sx("0x16")](r)||!s.nodeAfter)return;const i=t.model.schema,x=s[sx("0x1d")];return i[sx("0x1f")](x)&&!i[sx("0x36")](x)&&i[sx("0x19")](x,"$text")?{type:sx("0x14"),content:Yo(e,"*Insert:* %0",o[sx("0x6")](x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0xa")][sx("0x21")](sx("0x31")),i=o[sx("0x37")][sx("0x10")],x=o[sx("0x37")][sx("0x2d")],a=t.model[sx("0x32")];if(!i[sx("0x16")](x)||!i.nodeAfter)return;const c=i[sx("0x1d")];if(a[sx("0x1f")](c)&&!a[sx("0x36")](c)&&a.checkChild(c,"$text")){if(!s.consumable[sx("0x12")](o.markerRange,n[sx("0x34")]))return;const t=s[sx("0x27")][sx("0x1a")](sx("0x2e"),{class:sx("0x9")}),i=s.mapper[sx("0x33")](x);e&&r[sx("0x13")][sx("0x15")](o[sx("0x2b")])&&s[sx("0x27")][sx("0x11")](sx("0x24"),t),s[sx("0x27")].insert(i,t),s.mapper[sx("0x4")](t,o[sx("0x2b")])}}}const xx=["commandName","change","removeFormat","isFormatting","afterInit","enableCommand","editor","getRanges","selection","createRangeOn","RemoveFormatEditing","getAttributeProperties","TrackChangesEditing","schema","registerDescriptionCallback","getAttributes","format","markInlineFormat","plugins","*Remove all formatting*","get","has"];var ax,cx;ax=xx,cx=495,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class ux extends t.Plugin{[lx("0xf")](){const t=this[lx("0x11")];if(!t[lx("0x7")][lx("0xa")](lx("0x15")))return;const e=t[lx("0x7")][lx("0x9")](lx("0x1"));e[lx("0x10")](lx("0xd"),(n=>{const o=t.model.document[lx("0x13")];o.isCollapsed?n():t.model[lx("0xc")]((()=>{const n=Array.from(o[lx("0x12")]());for(const o of n)for(const n of o.getItems())dx(n,t.model[lx("0x2")])&&e[lx("0x6")](t.model[lx("0x14")](n),{commandName:lx("0xd"),commandParams:[]})}))})),e._descriptionFactory[lx("0x3")]((e=>{const{data:n}=e;if(n&&lx("0xd")==n[lx("0xb")])return{type:lx("0x5"),content:Yo(t.locale,lx("0x8"))}}))}}function dx(t,e){for(const[n]of t[lx("0x4")]()){const t=e[lx("0x0")](n);if(t&&t[lx("0xe")])return!0}return!1}const gx=["discardAllSuggestions","has","acceptSelectedSuggestions","RestrictedEditingModeEditing","acceptSuggestion","acceptAllSuggestions","enableCommand","plugins","discardSuggestion","trackChanges","editor","discardSelectedSuggestions","get"];var fx,mx;fx=gx,mx=448,function(t){for(;--t;)fx.push(fx.shift())}(++mx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{afterInit(){const t=this[hx("0x4")];if(!t[hx("0x1")][hx("0x8")](hx("0xa")))return;const e=t[hx("0x1")][hx("0x6")]("TrackChangesEditing");e[hx("0x0")]("goToPreviousRestrictedEditingException"),e.enableCommand("goToNextRestrictedEditingException");const n=t[hx("0x1")].get("RestrictedEditingModeEditing");n[hx("0x0")](hx("0x3")),n[hx("0x0")](hx("0xb")),n[hx("0x0")](hx("0x2")),n[hx("0x0")](hx("0xc")),n[hx("0x0")](hx("0x7")),n[hx("0x0")](hx("0x9")),n.enableCommand(hx("0x5"))}}const bx=["high","toViewPosition","ck-suggestion-marker--active","enableCommand","TrackChangesEditing","init","createPositionBefore","markerRange","bindElementToMarker","test","options","registerElementLabel","span","addClass","ELEMENT_LINE_BREAK","softBreak","mapper","activeMarkers","get","showSuggestionHighlights","addMarker:suggestion","requires","downcastDispatcher","shiftEnter","plugins","deletion","name","addMarker:suggestion:insertion","editor","includes","insert","writer","markerName","merge","editing","split","ck-suggestion-marker-"];var Ex,_x;Ex=bx,_x=490,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("0xc")](){return[xr.ShiftEnter]}[Tx("0x21")](){const t=this[Tx("0x13")],e=t.plugins[Tx("0x9")](Tx("0x20"));e[Tx("0x1f")](Tx("0xe")),t[Tx("0x19")][Tx("0xd")].on(Tx("0x12"),yx(t),{priority:Tx("0x1c")}),t[Tx("0x19")][Tx("0xd")].on("addMarker:suggestion:deletion",yx(t),{priority:Tx("0x1c")}),t.data.downcastDispatcher.on(Tx("0xb"),((e,n,o)=>{o[Tx("0x1")][Tx("0xa")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Tx("0x2")](Tx("0x6"),(e=>Yo(t.locale,Tx("0x5"),e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Tx("0xf")][Tx("0x9")]("TrackChangesEditing");if(!s.consumable[Tx("0x0")](o[Tx("0x23")],n[Tx("0x11")]))return;const i=t.model;for(const t of o.markerRange.getItems()){if(!t.is("element","softBreak"))continue;const n=Tx("0x10")==o[Tx("0x17")][Tx("0x1a")](":")[1]?Tx("0x18"):Tx("0x1a"),x=s[Tx("0x16")].createUIElement(Tx("0x3"),{class:Tx("0x1b")+n}),a=s[Tx("0x7")][Tx("0x1d")](i[Tx("0x22")](t));e&&r[Tx("0x8")][Tx("0x14")](o[Tx("0x17")])&&s[Tx("0x16")][Tx("0x4")](Tx("0x1e"),x),s[Tx("0x16")][Tx("0x15")](a,x),s.mapper[Tx("0x24")](x,o[Tx("0x17")])}}}const kx=["commands","plugins","getRanges","FORMAT_RESTRICTED_ENABLED","from","commandParams","FORMAT_RESTRICTED_DISABLED","restrictedEditingException","forceValue","enableCommand","StandardEditingModeEditing","afterInit","commandName","get","has","document","format","value","selection","TrackChangesEditing","model","_descriptionFactory","markInlineFormat"];var Ax,vx;Ax=kx,vx=499,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[Rx("0x12")](){const t=this.editor,e=t[Rx("0x4")],n=t.locale;if(!t[Rx("0x8")][Rx("0x15")](Rx("0x11")))return;const o=t[Rx("0x8")].get(Rx("0x3")),s=Rx("0xe"),r=t[Rx("0x7")][Rx("0x14")](s);o[Rx("0x10")](s,((t,n={})=>{const i=e[Rx("0x16")][Rx("0x2")];if(i.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n[Rx("0xf")]:!r[Rx("0x1")];e.change((()=>{const t=Array[Rx("0xb")](i[Rx("0x9")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x6")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0x5")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Rx("0x13")]==s)return e[Rx("0xc")][0][Rx("0xf")]?{type:Rx("0x0"),content:Yo(n,Rx("0xa"))}:{type:"format",content:Yo(n,Rx("0xd"))}}))}}const Sx=["value","includes","_getStyleDefinition","isBlock","config","every","commands","TrackChangesEditing","registerDescriptionCallback","selection","forceValue","markBlockFormat","format","from","style.definitions","markInlineFormat","name","find","getAttribute","createRangeOn","style:","getSelectedBlocks","enabledStyles","getDefinitionsForView","classes","plugins","block","getAncestors","isCollapsed","style","Style","*Remove format:* %0","commandParams","getItems","getRanges","modelElements","element","normalizeConfig","change","editor","styleName","model","get"];var Lx,Nx;Lx=Sx,Nx=252,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("0x2")];if(!t[wx("0x1f")].has(wx("0x24")))return;const e=t[wx("0xc")][wx("0x5")](wx("0x23")),n=t[wx("0x1f")][wx("0x5")](wx("0xd")),o=t.locale,s=t.plugins[wx("0x5")]("DataSchema"),r=t.plugins[wx("0x5")]("StyleUtils")[wx("0x0")](s,t[wx("0xa")][wx("0x5")](wx("0x14")));n.enableCommand(wx("0x23"),((o,{styleName:i})=>{const x=t[wx("0x4")].document[wx("0xf")],a=this[wx("0x8")](i,r);if(!a)return;if(!e[wx("0x1c")].includes(i))return;if(x[wx("0x22")]&&!a[wx("0x9")])return void o({styleName:i});const c=!e[wx("0x6")][wx("0x7")](a[wx("0x16")]);if(a[wx("0x9")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[wx("0x21")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[wx("0x16")])){n.add(o);break}}return n}(x[wx("0x1b")](),a[wx("0x29")]);t[wx("0x4")][wx("0x1")]((()=>{for(const t of e)n[wx("0x11")](t,{commandName:wx("0x23"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:wx("0x1a")+i})}))}else{let e=Array.from(x[wx("0x28")]());if(!c){const n=Array[wx("0x13")](s[wx("0x1d")](a[wx("0x2a")],!1))[0][wx("0x4")],o=[];for(const s of e){const e=this._getRangesWithClasses(t[wx("0x4")],s,a[wx("0x1e")],n);o.push(...e)}e=o}t[wx("0x4")][wx("0x1")]((()=>{for(const t of e)n[wx("0x15")](t,{commandName:wx("0x23"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[wx("0xe")]((t=>{const{data:e}=t;if(e&&wx("0x23")===e.commandName)return e[wx("0x26")][0][wx("0x10")]?{type:wx("0x12"),content:Yo(o,"*Format:* %0",e[wx("0x26")][0][wx("0x3")].toLowerCase())}:{type:wx("0x12"),content:Yo(o,wx("0x25"),e[wx("0x26")][0][wx("0x3")].toLowerCase())}}))}[wx("0x8")](t,e){let n=e[wx("0x20")][wx("0x17")]((e=>e[wx("0x16")]===t));return n||(n=e.inline[wx("0x17")]((e=>e.name===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[wx("0x27")]()){const e=r[wx("0x18")](o);e&&n[wx("0xb")]((t=>e[wx("0x1e")][wx("0x7")](t)))&&s.push(t[wx("0x19")](r))}return s}}const Ox=["last","isArray","table","from","addMarker:suggestion","minColumn","afterInit","selectTableRow","createPositionAt","insertTableColumnRight","execute","start","_tableSuggestions","root","isEqual","document","span","above","ELEMENT_TABLE_ROW","selection","every","getAttribute","*Insert:* %0","registerDescriptionCallback","toLowerCase","join","getChanges","enqueueChange","getChildren","tableColumn","tablePaste","some","filter","$graveyard","substr","insertion","insertTableColumnLeft","getChangedMarkers","showSuggestionHighlights","element","isInContent","ELEMENT_TABLE_ROW_WITH_TEXT","ELEMENT_TABLE_WITH_TEXT","min","highest","push","item","locale","rootName","accept","isIntersectingWithRange","getContainedElement","subType","_acceptFormatSuggestionCallbackFactory","editor","name","left","getFirstRange","refresh","toViewElement","max","has","colspan","setSelection","deletion","isTouching","rowspan","markMultiRangeInsertion","getSelectionAffectedTableCells","getCellLocation","removeTableColumn","addRange","TableUtils","nodeAfter","hasAttribute","plugins","createRangeOn","getItems","ELEMENT_TABLE","findAncestor","get","commands","_getSuggestionCoords","createRangeIn","add","change:data","ELEMENT_TABLE_COLUMN","insertTableRowBelow","getRanges","addClass","removeTableRow","tableRow","classes","forceValue","getRowIndexes","length","position","tableCell","MIN_SAFE_INTEGER","order","selectTableColumn","createTableWalker","writer","TableEditing","data","change","registerElementLabel","cell","type","_setupColumnsRowsFixing","registerCustomCallback","maxColumn","getColumnIndexes","_splitMarkerName","discard","map","_tablePostFixingSubtypes","markMultiRangeDeletion","_suggestionFactory","nodeBefore","MAX_SAFE_INTEGER","first","includes","maxRow","getSuggestion","$textProxy","_descriptionFactory","end","batch","options","model","*Remove:* %0","detach","TrackChangesEditing","fromRange","enableCommand","suggestion"];var Fx,Px;Fx=Ox,Px=209,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("0x2c")]=["tableRow",Dx("0x5e")],this._tableSuggestions=new Set}[Dx("0x47")](){const t=this[Dx("0x77")],e=t.model[Dx("0x50")][Dx("0x54")];if(!t[Dx("0x3")][Dx("0x7e")](Dx("0x1f")))return;const n=t[Dx("0x70")],o=t[Dx("0x3")][Dx("0x8")](Dx("0x3d")),s=t[Dx("0x3")][Dx("0x8")](Dx("0x0"));o[Dx("0x36")][Dx("0x22")](Dx("0x43"),(t=>Yo(n,Dx("0x6"),t))),this[Dx("0x25")](),o[Dx("0x3f")]("insertTable"),o.enableCommand(Dx("0x48")),o[Dx("0x3f")](Dx("0x1c"));for(const n of["insertTableRowAbove",Dx("0xf")]){const r=t[Dx("0x9")].get(n);o[Dx("0x3f")](n,(n=>{t[Dx("0x3a")][Dx("0x21")]((t=>{n();const i=Dx("0x52")===r[Dx("0x1b")],x=s[Dx("0x85")](e),a=s[Dx("0x16")](x),c=i?a[Dx("0x31")]-1:a[Dx("0x41")]+1,l=x[0][Dx("0x7")](Dx("0x43")),u=s[Dx("0x1d")](l,{startRow:c,endRow:c}),d=Array[Dx("0x44")](u)[Dx("0x2b")]((e=>t[Dx("0x4")](e[Dx("0x23")])));o.markMultiRangeInsertion(d,Dx("0x13"))}))}))}for(const n of[Dx("0x65"),Dx("0x4a")]){const r=t[Dx("0x9")].get(n);o.enableCommand(n,(n=>{t[Dx("0x3a")][Dx("0x21")]((t=>{n();const i=Dx("0x79")===r.order,x=s[Dx("0x85")](e),a=s.getColumnIndexes(x),c=i?a[Dx("0x31")]-1:a.last+1,l=x[0][Dx("0x7")]("table"),u=s[Dx("0x1d")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Dx("0x44")](u).map((e=>t[Dx("0x4")](e[Dx("0x23")])));o[Dx("0x84")](d,Dx("0x5e"))}))}))}for(const n of[Dx("0x12"),Dx("0x87")]){const r=n.substr(11),i=r[Dx("0x59")](),x=i.substr(0,3)+"span",a=Dx("0x43")+r,c="min"+r,l=Dx("0x7d")+r;o[Dx("0x3f")](n,(()=>{t[Dx("0x3a")].change((t=>{const r=s[Dx("0x85")](e),u=r[0][Dx("0x7")](Dx("0x43"));let d;if("removeTableRow"==n){const t=s[Dx("0x16")](r);d={startRow:t.first,endRow:t[Dx("0x41")],includeAllSlots:!0}}else{const t=s[Dx("0x28")](r);d={startColumn:t[Dx("0x31")],endColumn:t.last,includeAllSlots:!0}}const g=s[Dx("0x1d")](u,d),f=Array.from(g).map((({cell:t})=>t)),m=jx(f.filter((t=>t[Dx("0x2")](x)))),h=jx(f[Dx("0x61")]((t=>!t[Dx("0x2")](x))))[Dx("0x2b")]((e=>t.createRangeOn(e))),p=o[Dx("0x2d")](h,a);if(p&&("tableRow"==p[Dx("0x75")]||Dx("0x5e")==p[Dx("0x75")])){const e=this[Dx("0xa")](p);for(const n of m){const o=t.createRangeOn(n),r=s[Dx("0x86")](n),a=n[Dx("0x56")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Dx("0x88")](o)}}}))}))}function r(n){const o=Array[Dx("0x44")](e[Dx("0x10")]())[Dx("0x2b")]((t=>i.LiveRange.fromRange(t)));t[Dx("0x3a")].change((e=>{const s=e[Dx("0x38")];n=n[Dx("0x61")]((t=>Dx("0x62")!=t[Dx("0x4e")].rootName)),e[Dx("0x80")](n),t[Dx("0x9")][Dx("0x8")]("removeTableRow")[Dx("0x7b")](),t[Dx("0x4b")]("removeTableRow",{forceDefaultExecution:!0}),t.model.enqueueChange((()=>{t[Dx("0x3a")][Dx("0x5c")](s,(t=>{const e=o.filter((t=>Dx("0x62")!=t[Dx("0x4e")][Dx("0x71")]));e.length>0&&t[Dx("0x80")](e);for(const t of o)t[Dx("0x3c")]()}))}))}))}function a(n){t.model[Dx("0x21")]((o=>{const s=Array[Dx("0x44")](e[Dx("0x10")]()).map((t=>i.LiveRange[Dx("0x3e")](t))),r=[];for(const t of n)for(const e of t[Dx("0x5")]({shallow:!0}))r[Dx("0x6e")](e);for(const e of r)"$graveyard"!=e.root[Dx("0x71")]&&(o[Dx("0x80")](o[Dx("0x49")](e,0)),t[Dx("0x9")][Dx("0x8")](Dx("0x87")).refresh(),t.execute("removeTableColumn",{forceDefaultExecution:!0}));const x=s[Dx("0x61")]((t=>Dx("0x62")!=t[Dx("0x4e")][Dx("0x71")]));x[Dx("0x17")]>0&&o[Dx("0x80")](x);for(const t of s)t[Dx("0x3c")]()}))}function c(t,e){return e[Dx("0x55")]((e=>t[Dx("0x60")]((t=>t[Dx("0x37")][Dx("0x4f")](e[Dx("0x4c")])||e[Dx("0x37")].isEqual(t.start)))))}function l(t,e){return t[Dx("0x60")]((t=>e.some((e=>t.end[Dx("0x82")](e[Dx("0x4c")])))))}t.data.downcastDispatcher.on(Dx("0x45"),((t,e,n)=>{if(!n[Dx("0x39")][Dx("0x67")])return;const o=e[Dx("0x6f")];if(!o)return;const s=n.mapper[Dx("0x7c")](o);function r(t){return Array[Dx("0x42")](t)?t:[t]}s&&Dx("0x19")===o[Dx("0x78")]&&(0,x.setHighlightHandling)(s,n[Dx("0x1e")],((t,e,n)=>n[Dx("0x11")](r(e.classes),t)),((t,e,n)=>n.removeClass(r(e[Dx("0x14")]),t)))}),{priority:Dx("0x6d")}),o[Dx("0x36")].registerDescriptionCallback((t=>{if("insertion"!=t.type&&Dx("0x81")!=t.type)return;const e=t[Dx("0x74")]();if(null!=e&&e.is(Dx("0x68"),Dx("0x43"))){if(Dx("0x64")==t[Dx("0x24")]){const e=t[Dx("0x5")]()[Dx("0x61")]((t=>t.is(Dx("0x35")))).map((t=>t[Dx("0x20")]));if(e[Dx("0x17")])return{type:Dx("0x64"),content:Yo(n,Dx("0x57"),Yo(n,Dx("0x6b"),'"'+e.join(" ")+'"'))}}if(Dx("0x81")==t[Dx("0x24")]){const e=t[Dx("0x5")]()[Dx("0x61")]((t=>t.is(Dx("0x35"))))[Dx("0x2b")]((t=>t[Dx("0x20")]));if(e[Dx("0x17")])return{type:"deletion",content:Yo(n,Dx("0x3b"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}}})),o[Dx("0x36")][Dx("0x58")]((t=>{if(Dx("0x13")==t[Dx("0x75")]){const e=t[Dx("0x5")]()[Dx("0x61")]((t=>t.is(Dx("0x35")))).map((t=>t[Dx("0x20")])),o=this._getSuggestionCoords(t),s=o[Dx("0x33")]-o.minRow+1;if(Dx("0x64")==t[Dx("0x24")])return e[Dx("0x17")]?{type:Dx("0x64"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x6a"),[s,'"'+e[Dx("0x5a")](" ")+'"']))}:{type:Dx("0x64"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))};if(Dx("0x81")==t[Dx("0x24")])return e[Dx("0x17")]?{type:Dx("0x81"),content:Yo(n,Dx("0x3b"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Dx("0x5a")](" ")+'"']))}:{type:"deletion",content:Yo(n,Dx("0x3b"),Yo(n,Dx("0x53"),s))}}if(Dx("0x5e")==t[Dx("0x75")]){const e=t[Dx("0x5")]()[Dx("0x61")]((t=>t.is(Dx("0x35")))).map((t=>t.data)),o=this[Dx("0xa")](t),s=o[Dx("0x27")]-o[Dx("0x46")]+1;if("insertion"==t[Dx("0x24")])return e[Dx("0x17")]?{type:Dx("0x64"),content:Yo(n,Dx("0x57"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Dx("0x5a")](" ")+'"']))}:{type:Dx("0x64"),content:Yo(n,Dx("0x57"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Dx("0x81")==t.type)return e.length?{type:Dx("0x81"),content:Yo(n,Dx("0x3b"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Dx("0x5a")](" ")+'"']))}:{type:Dx("0x81"),content:Yo(n,Dx("0x3b"),Yo(n,Dx("0xe"),s))}}})),o._suggestionFactory[Dx("0x26")](Dx("0x64"),Dx("0x13"),Dx("0x2a"),r),o[Dx("0x2e")][Dx("0x26")](Dx("0x81"),"tableRow",Dx("0x72"),r),o[Dx("0x2e")][Dx("0x26")](Dx("0x64"),"tableColumn",Dx("0x2a"),a),o._suggestionFactory.registerCustomCallback("deletion",Dx("0x5e"),Dx("0x72"),a),o[Dx("0x2e")].registerCustomCallback(Dx("0x64"),Dx("0x5e"),Dx("0x5a"),c),o._suggestionFactory.registerCustomCallback("deletion","tableColumn",Dx("0x5a"),c),o._suggestionFactory[Dx("0x26")](Dx("0x64"),Dx("0x13"),Dx("0x5a"),l),o[Dx("0x2e")][Dx("0x26")](Dx("0x81"),Dx("0x13"),Dx("0x5a"),l)}[Dx("0x76")](){const t=this.editor,e=t[Dx("0x3a")][Dx("0x50")].selection;return(n,o)=>{t[Dx("0x3a")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Dx("0x37")][Dx("0x2f")];x&&x[0]&&!1===x[0][Dx("0x15")]&&(a=n[0][Dx("0x4c")][Dx("0x1")]);const c=s[Dx("0xb")](a);if(Dx("0x62")==c[Dx("0x4e")][Dx("0x71")])return;const l=Array[Dx("0x44")](e[Dx("0x10")]())[Dx("0x2b")]((t=>i.LiveRange[Dx("0x3e")](t)));s[Dx("0x80")](c),t[Dx("0x9")][Dx("0x8")](r)[Dx("0x7b")](),x[Dx("0x6e")]({forceDefaultExecution:!0}),t[Dx("0x4b")](r,...x);const u=l.filter((t=>Dx("0x62")!=t.root[Dx("0x71")]));u[Dx("0x17")]>0&&s[Dx("0x80")](u);for(const t of l)t[Dx("0x3c")]()}))}}_getCoordsForCells(t){const e=this[Dx("0x77")][Dx("0x3")][Dx("0x8")](Dx("0x0"));let n=Number[Dx("0x30")],o=Number[Dx("0x1a")],s=Number[Dx("0x30")],r=Number[Dx("0x1a")];for(const i of t){if(Dx("0x62")==i[Dx("0x4e")][Dx("0x71")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Dx("0x2")](Dx("0x83"))?i[Dx("0x56")](Dx("0x83"))-1:0,c=i.hasAttribute(Dx("0x7f"))?i.getAttribute(Dx("0x7f"))-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}}[Dx("0x25")](){const t=this[Dx("0x77")],e=t.plugins[Dx("0x8")]("TrackChangesEditing"),n=t[Dx("0x3")].get(Dx("0x0"));t[Dx("0x3a")][Dx("0x50")].on(Dx("0xd"),(()=>{const n=Array.from(t.model[Dx("0x50")].differ[Dx("0x66")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Dx("0x29")](t);if(Dx("0x40")!=n)continue;if(null!=o.oldRange)continue;const i=e[Dx("0x34")](s);this[Dx("0x2c")][Dx("0x32")](r)&&this[Dx("0x4d")][Dx("0xc")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Dx("0x4")](t),r=t[Dx("0x7")](Dx("0x43")),i=n[Dx("0x86")](t);for(const e of this[Dx("0x4d")]){const n=e[Dx("0x75")],x=n.startsWith(Dx("0x5f")),a=n.substr(x?10:5),c=a[Dx("0x59")](),l=c[Dx("0x63")](0,3)+Dx("0x51"),u=Dx("0x6c")+a,d=Dx("0x7d")+a;if(!e[Dx("0x69")])continue;if(r!=e[Dx("0x7a")]()[Dx("0x4c")][Dx("0x7")]("table"))continue;if(e[Dx("0x73")](s))continue;const g=t[Dx("0x2")](l)?t.getAttribute(l)-1:0,f=this._getSuggestionCoords(e),m=f[u],h=f[d];m<=i[c]&&i[c]+g<=h&&(e[Dx("0x88")](s),o=!0)}return o};t.model[Dx("0x50")].registerPostFixer((e=>{let n=!1;for(const s of t[Dx("0x3a")][Dx("0x50")].differ[Dx("0x5b")]())if("insert"==s[Dx("0x24")])if(Dx("0x13")==s[Dx("0x78")])for(const t of s[Dx("0x18")].nodeAfter[Dx("0x5d")]())n=n||o(t,e);else Dx("0x19")==s.name&&(n=n||o(s[Dx("0x18")][Dx("0x1")],e));return n}))}[Dx("0xa")](t){return this._getCoordsForCells(t[Dx("0x10")]().map((t=>t.start[Dx("0x1")])))}}function jx(t){return Array[Dx("0x44")](new Set(t).values())}const Ux=["document","isInContent","format","cell","TableEditing","mergeTableCellRight","fromRange","registerCustomCallback","set:isEnabled","*Split cell:* horizontally","size","requires","model","add","markMultiRangeBlockFormat","low","deletion","registerDescriptionCallback","find","createRangeOn","detach","accept","formatBlock","findAncestor","getAncestors","length","subType","from","splitTableCellHorizontally","getSuggestions","$graveyard","rootName","get","refresh","mergeTableCellUp","getCellLocation","horizontally","mergeTableCells","_tablePostFixingSubtypes","_suggestionFactory","editor","*Split cell:* vertically","_areMergableCells","root","isEnabled","_descriptionFactory","locale","markBlockFormat","createTableWalker","type","execute","trackChanges","TrackChangesEditing","getRanges","splitTableCellVertically","setSelection","mergeTableCellLeft","has","push","*Merge cells*","plugins","element","commands","selection","containsRange","value","highest","author","map","change","TableUtils","filter","getFirstPosition","getSelectionAffectedTableCells","tableCell","direction","mergeTableCellDown","_acceptFormatSuggestionCallbackFactory","afterInit","enableCommand"];var Gx,Hx;Gx=Ux,Hx=406,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Wx=function(t,e){return Ux[t-=0]};class zx extends t.Plugin{static get[Wx("0x5")](){return[Bx]}[Wx("0x48")](){const t=this[Wx("0x22")],e=t.model[Wx("0x4a")][Wx("0x39")],n=t[Wx("0x28")];if(!t[Wx("0x36")][Wx("0x33")](Wx("0x4e")))return;const o=t[Wx("0x36")][Wx("0x1a")](Wx("0x2e")),s=t[Wx("0x36")][Wx("0x1a")](Wx("0x40")),r=t[Wx("0x36")][Wx("0x1a")](Bx);r[Wx("0x20")][Wx("0x34")](Wx("0x1f")),o[Wx("0x49")](Wx("0x1f"),(()=>{const e=s[Wx("0x43")](t[Wx("0x6")][Wx("0x4a")].selection);t[Wx("0x6")][Wx("0x3f")]((()=>{o[Wx("0x8")](e,{commandName:Wx("0x1f"),commandParams:[]},[],Wx("0x1f"))}))})),t[Wx("0x38")][Wx("0x1a")](Wx("0x1f")).on("execute",((e,n)=>{t[Wx("0x38")][Wx("0x1a")](Wx("0x2d"))[Wx("0x3b")]&&(n.length>0&&n[n.length-1]&&n[n.length-1].forceDefaultExecution||o._isForcedDefaultExecutionBlock||this._areSelectedCellsMergable()||e.stop())}),{priority:Wx("0x3c")});for(const e of["mergeTableCellUp",Wx("0x4f"),Wx("0x46"),Wx("0x32")]){const n=t[Wx("0x38")][Wx("0x1a")](e);o[Wx("0x49")](e,(()=>{const e=t[Wx("0x6")][Wx("0x4a")].selection.getFirstPosition()[Wx("0x12")]().find((t=>t.is(Wx("0x37"),"tableCell"))),s=n.value;t[Wx("0x6")][Wx("0x3f")]((()=>{o[Wx("0x8")]([e,s],{commandName:Wx("0x1f"),commandParams:[]},[],Wx("0x1f"))}))}))}for(const e of[Wx("0x30"),Wx("0x16")]){const n=t[Wx("0x38")].get(e);o.enableCommand(e,(()=>{const r=s[Wx("0x43")](t[Wx("0x6")][Wx("0x4a")][Wx("0x39")])[0],i=r[Wx("0x11")]("table"),{column:x,row:a}=s[Wx("0x1d")](r);let c=[];if(Wx("0x1e")==n[Wx("0x45")]){const t=s[Wx("0x2a")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Wx("0x3e")]((t=>t.cell))}else{const t=s[Wx("0x2a")](i,{column:x,includeAllSlots:!0});c=Array[Wx("0x15")](t).map((t=>t[Wx("0x4d")]))}t[Wx("0x6")][Wx("0x3f")]((t=>{o[Wx("0x29")](t[Wx("0xd")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Wx("0x27")][Wx("0xb")]((t=>{const{data:e}=t;if(e)return Wx("0x1f")==e.commandName?{type:"format",content:Yo(n,Wx("0x35"))}:void 0})),o[Wx("0x27")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Wx("0x30")==e.commandName?{type:Wx("0x4c"),content:Yo(n,Wx("0x23"))}:Wx("0x16")==e.commandName?{type:Wx("0x4c"),content:Yo(n,Wx("0x3"))}:void 0}));const x=r[Wx("0x47")]();for(const t of["mergeTableCellUp","mergeTableCellRight",Wx("0x46"),Wx("0x32")])o[Wx("0x21")][Wx("0x1")](Wx("0x10"),t,Wx("0xf"),x);for(const t of["splitTableCellVertically",Wx("0x16")])o[Wx("0x21")].registerCustomCallback(Wx("0x10"),t,Wx("0xf"),x);o._suggestionFactory[Wx("0x1")]("formatBlock",Wx("0x1f"),Wx("0xf"),(n=>{t.model[Wx("0x3f")]((o=>{const s=Array[Wx("0x15")](e[Wx("0x2f")]())[Wx("0x3e")]((t=>i.LiveRange[Wx("0x0")](t)));o[Wx("0x31")](n),t[Wx("0x38")][Wx("0x1a")]("mergeTableCells")[Wx("0x1b")](),t[Wx("0x2c")](Wx("0x1f"),{forceDefaultExecution:!0});const r=s[Wx("0x41")]((t=>Wx("0x18")!=t[Wx("0x25")][Wx("0x19")]));r[Wx("0x13")]>0&&o[Wx("0x31")](r);for(const t of s)t[Wx("0xe")]()}))}));for(const e of[Wx("0x1c"),"mergeTableCellDown",Wx("0x32"),Wx("0x4f")]){const n=t.commands.get(e);n.on(Wx("0x2"),((e,o,s)=>{if(s){const o=t[Wx("0x6")][Wx("0x4a")].selection[Wx("0x42")]().getAncestors()[Wx("0xc")]((t=>t.is(Wx("0x37"),Wx("0x44"))));this[Wx("0x24")](n.value,o)||(e.return=!1,e.stop())}}),{priority:Wx("0x9")})}}_areSelectedCellsMergable(){const t=this.editor[Wx("0x38")][Wx("0x1a")](Wx("0x1f")),e=this[Wx("0x22")][Wx("0x36")].get(Wx("0x40"));if(!t[Wx("0x26")])return!1;const n=e[Wx("0x43")](this[Wx("0x22")][Wx("0x6")][Wx("0x4a")][Wx("0x39")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Wx("0x24")](t,e){const n=this[Wx("0x22")][Wx("0x36")][Wx("0x1a")](Wx("0x2e")),o=this.editor.model[Wx("0xd")](t),s=this[Wx("0x22")][Wx("0x6")][Wx("0xd")](e),r=new Set,i=new Set;for(const t of n[Wx("0x17")]())if(("insertion"==t[Wx("0x2b")]||Wx("0xa")==t.type||Wx("0x1f")==t[Wx("0x14")])&&t[Wx("0x4b")])for(const e of t[Wx("0x2f")]())e[Wx("0x3a")](o,!0)&&r.add(t[Wx("0x2b")]+":"+t[Wx("0x3d")].id),e.containsRange(s,!0)&&i[Wx("0x7")](t[Wx("0x2b")]+":"+t.author.id);if(r[Wx("0x4")]!=i[Wx("0x4")])return!1;for(const t of r)if(!i[Wx("0x33")](t))return!1;return!0}}const Vx=["FORMAT_HEADER_ROW","createPositionBefore","unbindElementFromMarkerName","isBefore","_descriptionFactory","*Format:* %0","markBlockFormat","plugins","afterInit","createPositionAfter","enableCommand","setAttribute","nodeAfter","findAncestor","registerCustomCallback","activeMarkers","markerName","headingColumns","addMarker:suggestion","data","TrackChangesEditing","markerNameToElements","_suggestionFactory","consumable","consume","from","FORMAT_REGULAR_COLUMN","model","highest","getCellLocation","setTableColumnHeader","get","commandParams","downcastDispatcher","index","registerDescriptionCallback","getSuggestion","last","removeMarker:suggestion","includes","selection","commands","nodeBefore","name","_acceptFormatSuggestionCallbackFactory","writer","table","createRange","_splitMarkerName","end","forceValue","change","getRowIndexes","data-suggestion","locale","TableUtils","getSelectionAffectedTableCells","formatBlock","FORMAT_HEADER_COLUMN","ck-suggestion-marker--active","setTableRowHeader","childCount","document","toViewElement","options","commandName","cell","removeClass","first","markerRange","parent","createTableWalker","item","TableEditing","getChild","requires","editing","format","accept","FORMAT_REGULAR_ROW","addClass","getAttribute","removeAttribute","ck-suggestion-marker-","mapper"];var Kx,qx;Kx=Vx,qx=364,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("0x33")](){return[Bx]}[Xx("0x45")](){const t=this.editor;if(!t[Xx("0x44")].has(Xx("0x31")))return;const e=t[Xx("0x1e")],n=t[Xx("0x44")][Xx("0x7")](Xx("0x51")),o=t[Xx("0x44")][Xx("0x7")](Xx("0x1f")),s=t[Xx("0x44")][Xx("0x7")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[Xx("0x4d")]),c=n[Xx("0xc")](a);if(!c[Xx("0x50")]||Xx("0x6")!=c[Xx("0x50")][Xx("0x29")])return;if(r[Xx("0x30")])return void s.stop();if(!i[Xx("0x54")][Xx("0x0")](r[Xx("0x2d")],s[Xx("0x13")]))return;const l=r[Xx("0x2d")].start[Xx("0x49")],u=r[Xx("0x2d")][Xx("0x19")][Xx("0x12")],d=l[Xx("0x2e")][Xx("0x2e")],{column:g}=o[Xx("0x5")](l),{column:f}=o[Xx("0x5")](u);for(let s=g;s<=f;s++){const c=o[Xx("0x2f")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Xx("0x2a")],c=i[Xx("0x3c")][Xx("0x27")](s);i[Xx("0x15")][Xx("0x38")]("ck-suggestion-marker-"+x,c),e&&i[Xx("0x15")][Xx("0x48")](Xx("0x1d"),a,c),i.mapper.bindElementToMarker(c,r.markerName),t&&(n[Xx("0x4c")][Xx("0xf")](r[Xx("0x4d")])?i[Xx("0x15")][Xx("0x38")]("ck-suggestion-marker--active",c):i[Xx("0x15")][Xx("0x2b")](Xx("0x23"),c))}}}}n.enableCommand(Xx("0x24"),((e,s)=>{const r=o.getSelectionAffectedTableCells(t[Xx("0x3")][Xx("0x26")][Xx("0x10")]),i=o[Xx("0x1c")](r),x=r[0].findAncestor("table"),a=x[Xx("0x39")]("headingRows")||0,c=s&&null!==s[Xx("0x1a")]?s[Xx("0x1a")]:!t[Xx("0x11")][Xx("0x7")](Xx("0x24")).value,l=c?i[Xx("0xd")]:i[Xx("0x2c")],u=x[Xx("0x32")](l);let d;if(c){const e=x[Xx("0x32")](a);if(u[Xx("0xa")]<e.index)return;d=t[Xx("0x3")].createRange(t[Xx("0x3")][Xx("0x3e")](e[Xx("0x32")](0)),t[Xx("0x3")][Xx("0x46")](u.getChild(u.childCount-1)))}else{const e=x.getChild(a-1);if(!e)return;d=t[Xx("0x3")].createRange(t.model[Xx("0x3e")](u.getChild(0)),t.model[Xx("0x46")](e[Xx("0x32")](e[Xx("0x25")]-1)))}t[Xx("0x3")][Xx("0x1b")]((()=>{n[Xx("0x43")](d,{commandName:Xx("0x24"),commandParams:[{forceValue:c}]},[],Xx("0x24"))}))})),n[Xx("0x47")](Xx("0x6"),((e,o)=>{const s=t[Xx("0x44")].get("TableUtils"),r=s[Xx("0x20")](t[Xx("0x3")][Xx("0x26")].selection),i=s.getColumnIndexes(r),x=r[0][Xx("0x4a")](Xx("0x16")),a=x[Xx("0x39")](Xx("0x4e"))||0,c=o&&null!==o[Xx("0x1a")]?o[Xx("0x1a")]:!t.commands.get(Xx("0x6")).value;let l;const u=x.getChild(0),d=c?i[Xx("0xd")]:i[Xx("0x2c")],g=s.createTableWalker(x,{startRow:0,column:d,includeAllSlots:!1}),f=Array[Xx("0x1")](g)[0].cell;if(c){const e=u[Xx("0x32")](a);if(f[Xx("0x40")](e))return;l=t[Xx("0x3")][Xx("0x17")](t[Xx("0x3")][Xx("0x3e")](e),t.model[Xx("0x46")](f))}else{const e=u[Xx("0x32")](a-1);if(!e)return;l=t[Xx("0x3")][Xx("0x17")](t[Xx("0x3")][Xx("0x3e")](f),t[Xx("0x3")].createPositionAfter(e))}t[Xx("0x3")][Xx("0x1b")]((()=>{n[Xx("0x43")](l,{commandName:Xx("0x6"),commandParams:[{forceValue:c}]},[],Xx("0x6"))}))})),t[Xx("0x34")][Xx("0x9")].on("addMarker:suggestion",r(),{priority:Xx("0x4")}),t[Xx("0x50")].downcastDispatcher.on(Xx("0x4f"),((t,e,n)=>{n[Xx("0x28")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x4")}),t[Xx("0x34")][Xx("0x9")].on(Xx("0xe"),((t,e,o)=>{const{type:s,id:r}=n[Xx("0x18")](e.markerName),i=n[Xx("0xc")](r);if(!i[Xx("0x50")]||Xx("0x6")!=i[Xx("0x50")].commandName)return;const x=o[Xx("0x3c")][Xx("0x52")](e[Xx("0x4d")]);if(x)for(const t of x)o[Xx("0x15")][Xx("0x2b")](Xx("0x3b")+s,t),o[Xx("0x15")][Xx("0x2b")]("ck-suggestion-marker--active",t),o[Xx("0x15")][Xx("0x3a")](Xx("0x1d"),t),o[Xx("0x3c")][Xx("0x3f")](t,e[Xx("0x4d")])}),{priority:Xx("0x4")}),n[Xx("0x41")][Xx("0xb")]((t=>{const{data:n}=t;if(n){if(Xx("0x24")==n[Xx("0x29")]){const t=n[Xx("0x8")][0][Xx("0x1a")];return o(Yo(e,Xx(t?"0x3d":"0x37")))}if(Xx("0x6")==n[Xx("0x29")]){const t=n[Xx("0x8")][0][Xx("0x1a")];return o(Yo(e,Xx(t?"0x22":"0x2")))}}function o(t){return{type:Xx("0x35"),content:Yo(e,Xx("0x42"),t)}}}));const i=s[Xx("0x14")]();n[Xx("0x53")].registerCustomCallback("formatBlock",Xx("0x24"),Xx("0x36"),i),n[Xx("0x53")][Xx("0x4b")](Xx("0x21"),Xx("0x6"),Xx("0x36"),i)}}const Jx=["keys","elementToElement","markerToHighlight","createElement","filter","editing","model","createPositionBefore","getRange","registerDescriptionCallback","name","getShiftedBy","editor","formatBlock","markerName","afterInit","cell","getChangedMarkers","*Replace table cells*","getAttributes","nextSibling","endRow","conversion","getContainedElement","getChild","next","unwrap","getRows","rows","containsRange","return","insert","markMultiRangeDeletion","for","nodeAfter","table","accept","low","newRange","findAncestor","subType","getSelectionAffectedTableCells","join","getChildren","_suggestionFactory","TableUtils","find","previousSibling","tablePasteCell","insertionRanges","getSuggestions","insertContent","cells","_splitMarkerName","_createdBatches","length","first","set","column","removeColumns","suggestion:formatBlock:tablePasteCell","getSuggestionCallback","TableClipboard","suggestion","_replaceTableSlotCell","options","row","type","insertion","register","documentSelection","some","isEqual","fromEntries","tableCellPadding","every","createRangeOn","move","removeMarkers","setAttribute","isInContent","ck-suggestion-marker--active","createRangeIn","deletionRanges","startsWith","fill","remove","discard","createTableWalker","last","markerAttributes","_tablePostFixingSubtypes","redo","tableCellSuggestion","tablePaste","differ","getMarkers","listenTo","getTableIfOnlyTableInContent","removeRows","removeMarker","getRanges","push","tablePasteRow","tablePasteChainId","has","$graveyard","includes","document","insertRows","paragraph","requires","updateMarker","stop","end","suggestion-td","wrap","selection","registerPostFixer","root","from","showSuggestionHighlights","entries","map","tableCell","high","attributes","rootName","_getCoordsForCells","ck-suggestion-marker-insertion","author","activeMarkers","tableCellBorderWidth","getColumnIndexes","tableCellBorderStyle","Users","change","tableCellBackgroundColor","add","get","tableCellVerticalAlignment","tablePasteColumn","markers","batch","deletion","element","previous","_descriptionFactory","TrackChangesEditing","clipboardOutput","isEmpty","value","createRange","trackChanges","plugins","getSuggestion","reduce","markMultiRangeBlockFormat","tableCellBorderColor","getAllAdjacentSuggestions","setAttributes","getRowIndexes","registerCustomCallback"];var Qx,Zx;Qx=Jx,Zx=220,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=[Yx("0x4b"),Yx("0x65"),Yx("0x4d"),"tableCellHorizontalAlignment",Yx("0x53"),Yx("0x50"),Yx("0x11")],ea=Object[Yx("0x10")](ta[Yx("0x42")]((t=>[t,null])));class na extends t.Plugin{static get[Yx("0x36")](){return[Bx]}[Yx("0x79")](){const t=this.editor;if(!t[Yx("0x61")][Yx("0x30")]("TableClipboard"))return;const n=t[Yx("0x61")][Yx("0x52")](Yx("0x5b")),o=t[Yx("0x61")].get(Yx("0x97")),s=t[Yx("0x61")].get(Bx),r=t[Yx("0x61")][Yx("0x52")](Yx("0x5"));s[Yx("0x22")].push(Yx("0x2e"),Yx("0x54")),t[Yx("0x70")].schema[Yx("0xc")](Yx("0x24"),{allowIn:Yx("0x43"),allowContentOf:"tableCell",isLimit:!0}),t[Yx("0x80")][Yx("0x6b")]({model:Yx("0x24"),view:Yx("0x3a")});let i=null;t[Yx("0x70")].on(Yx("0x9d"),((s,x)=>{const[a,c]=x,l=x[x[Yx("0xa1")]-1];l&&l.forceDefaultExecution||n._isForcedDefaultExecutionBlock||this[Yx("0x76")].commands[Yx("0x52")](Yx("0x60"))[Yx("0x5e")]&&function(t,e,n,o,s){if(e&&!e.is(Yx("0xd")))return!1;const r=s[Yx("0x29")](t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x93")](n[Yx("0x33")][Yx("0x3c")]);if(!i[Yx("0xa1")])return!1;const x=i[0][Yx("0x91")](Yx("0x8d")),a=o[Yx("0x68")](i),c=o[Yx("0x4c")](i),l={startRow:a[Yx("0xa2")],endRow:a[Yx("0x20")],startColumn:c[Yx("0xa2")],endColumn:c[Yx("0x20")]};return 1==i[Yx("0xa1")]&&(l[Yx("0x7f")]+=o[Yx("0x85")](r)-1,l.endColumn+=o.getColumns(r)-1),sa(x,l,o)}(a,c,t[Yx("0x70")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0x70")][Yx("0x4f")]((()=>{t[Yx("0x70")].insertContent(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.markMultiRangeInsertion(s,Yx("0x2e"),{tablePasteChainId:o}),r.length&&n.markMultiRangeInsertion(r,Yx("0x54"),{tablePasteChainId:o}),a.length&&n.markMultiRangeInsertion(a,Yx("0x25"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0xa1")]&&n[Yx("0x8a")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Yx("0x64")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x9a"),{tablePasteChainId:o});if(u){const e=u[Yx("0x27")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Yx("0x70")].createRangeOn(o),i=e.find((t=>t[Yx("0x72")]()[Yx("0xf")](r)));i&&n[Yx("0x2d")]([i[Yx("0x74")],s])}n[Yx("0xa1")]&&u[Yx("0x16")]("markerAttributes",Object.fromEntries(n))}i=null})))}),{priority:e.priorities.high+10}),t.plugins[Yx("0x52")](Yx("0x5")).on(Yx("0x7"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Yx("0x38")]();const r=n[Yx("0x7a")],x=o,a=oa(r),c=oa(x);t[Yx("0x88")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[Yx("0x1d")](r[Yx("0x82")](0));for(const t of Array.from(x[Yx("0x95")]()))s.insert(t,r,Yx("0x39"));const t=i.rowInsertionIndexes[Yx("0x32")](n[Yx("0x9")]),e=i.columnInsertionIndexes[Yx("0x32")](n[Yx("0x1")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(u=s[Yx("0x19")](r));else{const t=s[Yx("0x6d")](Yx("0x24")),e=s.createElement(Yx("0x24"));s[Yx("0x3b")](s[Yx("0x19")](r),e),s[Yx("0x89")](t,r,0);for(const e of Array.from(x.getChildren()))s.insert(e,t,Yx("0x39"));l=s.createRangeOn(t),u=s[Yx("0x13")](e)}const d=Array[Yx("0x3f")](x[Yx("0x7d")]())[Yx("0x6e")]((([t])=>ta[Yx("0x32")](t)));i[Yx("0x9e")].push({element:r,attributes:d[Yx("0xa1")]?Object[Yx("0x10")](d):null}),l&&i[Yx("0x9b")][Yx("0x2d")](l),u&&i[Yx("0x1a")].push(u)}),{priority:Yx("0x44")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i.columnInsertionIndexes=new Array(a)[Yx("0x1c")](x)[Yx("0x42")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0x1f")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t[Yx("0x70")][Yx("0x13")](e))}),{priority:Yx("0x8f")}),o.on(Yx("0x34"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x86")]||1;i.rowInsertionIndexes=new Array(a)[Yx("0x1c")](x)[Yx("0x42")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0x1f")](s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Yx("0x2d")](t.model[Yx("0x13")](e))}),{priority:Yx("0x8f")}),n[Yx("0x5a")][Yx("0x73")]((e=>{if(e[Yx("0x92")]&&e[Yx("0x92")][Yx("0x1b")](Yx("0x25")))return e[Yx("0x59")]?{}:{type:"insertion",content:Yo(t.locale,Yx("0x7c"))}}));const x=()=>!1;for(const t of[Yx("0x25"),Yx("0x54"),Yx("0x2e"),Yx("0x9a")])n[Yx("0x96")][Yx("0x69")](Yx("0xb"),t,Yx("0x94"),x),n[Yx("0x96")][Yx("0x69")](Yx("0x57"),t,Yx("0x94"),x),n[Yx("0x96")][Yx("0x69")](Yx("0x77"),t,Yx("0x94"),x);n[Yx("0x96")].registerCustomCallback(Yx("0x77"),Yx("0x9a"),"discard",x),n[Yx("0x96")][Yx("0x69")](Yx("0x77"),Yx("0x9a"),"accept",((e,n,o)=>{const s=e[Yx("0x42")]((t=>t.getContainedElement())).filter((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x9e")])e&&r[Yx("0x0")](t,e);else if(o&&o[Yx("0x21")])for(const[e,n]of Object[Yx("0x41")](o[Yx("0x21")])){const o=t[Yx("0x70")][Yx("0x55")][Yx("0x52")](e),s=o?o.getRange().getContainedElement():null;s&&r[Yx("0x0")](s,n)}t.model[Yx("0x4f")]((t=>{for(const[e,n]of r)t[Yx("0x67")]({...ea,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory.registerCustomCallback(e,"tablePaste",o,((s,r,i)=>{t.model[Yx("0x4f")]((t=>{const x=[];for(const t of s){const e=t.start[Yx("0x8c")];e.is(Yx("0x58"),Yx("0x24"))&&x.push(e)}n[Yx("0x96")][Yx("0x4")](e,null,o)(s,r,i);for(const e of x)Yx("0x31")!=e[Yx("0x3e")][Yx("0x46")]&&t[Yx("0x84")](e)}))}))};a(Yx("0xb"),Yx("0x8e")),a(Yx("0xb"),"discard"),a(Yx("0x57"),Yx("0x8e")),a(Yx("0x57"),Yx("0x1e")),n[Yx("0x96")][Yx("0x69")]("insertion",Yx("0x2e"),Yx("0x1e"),(t=>{const e=t[Yx("0x42")]((t=>t[Yx("0x81")]())),n=e[0].findAncestor(Yx("0x8d")),{minRow:r,maxRow:i}=s[Yx("0x47")](e);o[Yx("0x2a")](n,{at:r,rows:i-r+1})})),n[Yx("0x96")][Yx("0x69")](Yx("0xb"),Yx("0x54"),Yx("0x1e"),(t=>{const e=t.map((t=>t[Yx("0x81")]())),n=e[0][Yx("0x91")](Yx("0x8d")),{minColumn:r,maxColumn:i}=s[Yx("0x47")](e);o[Yx("0x2")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Yx("0x92")]||!e[Yx("0x92")].startsWith("tablePaste"))return;const o=e.attributes[Yx("0x2f")],s=n.getSuggestions()[Yx("0x6e")]((t=>t[Yx("0x17")]&&t[Yx("0x45")]&&t[Yx("0x45")][Yx("0x2f")]==o));s[Yx("0xa1")]&&e[Yx("0x66")]()[Yx("0xa1")]!=s[Yx("0xa1")]&&s[Yx("0x63")](((t,e)=>(t[Yx("0x83")]=e,e[Yx("0x59")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x9f")](t[Yx("0x78")]),s=["ck-suggestion-marker",Yx("0x48")],r=n[Yx("0x4a")][Yx("0x32")](t.markerName);return r&&s.push(Yx("0x18")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Yx("0x44")}),n.on("suggestionUnloaded",c,{priority:Yx("0x44")}),t[Yx("0x70")][Yx("0x33")].registerPostFixer((()=>{let e=!1;const o=Array.from(t.model[Yx("0x33")][Yx("0x26")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Yx("0x9f")](s);if(Yx("0x6")!=o||Yx("0x57")!=i||r.oldRange)continue;if(!n.hasSuggestion(x))continue;const a=n[Yx("0x62")](x)[Yx("0x2c")](),c=t[Yx("0x61")][Yx("0x52")](Yx("0x4e")).me;for(const t of n[Yx("0x9c")]())if(t[Yx("0x17")]&&t[Yx("0x49")]==c&&Yx("0x77")==t[Yx("0xa")]&&"tablePasteCell"==t.subType&&t[Yx("0x2c")]()[Yx("0x12")]((t=>a[Yx("0xe")]((e=>e[Yx("0x87")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Yx("0x17")]&&(n[Yx("0x1e")](),e=!0)}return e})),t.model[Yx("0x33")].registerPostFixer((e=>{const o=t.commands[Yx("0x52")](Yx("0x23"));if(!o||!o[Yx("0xa0")][Yx("0x30")](e[Yx("0x56")]))return!1;let s=!1;const r=t.plugins.get(Yx("0x4e")).me,i=t[Yx("0x70")][Yx("0x33")][Yx("0x26")].getChanges(),x=Array[Yx("0x3f")](t[Yx("0x70")].document.differ[Yx("0x7b")]())[Yx("0x6e")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Yx("0x9f")](t);return Yx("0x6")==o&&Yx("0x25")==s&&i==r.id&&!e.oldRange}));for(const t of i){if("insert"!=t[Yx("0xa")]||Yx("0x24")!=t.name||1!=t[Yx("0xa1")])continue;const n=e[Yx("0x5f")](t.position,t.position[Yx("0x75")](1));if(!x[Yx("0x98")]((({data:t})=>t.newRange[Yx("0xf")](n))))for(const{name:t,data:o}of x)if(n[Yx("0x87")](o[Yx("0x90")])){e[Yx("0x37")](t,{range:n}),s=!0;break}}return s})),t[Yx("0x70")][Yx("0x33")][Yx("0x3d")]((e=>{let o=!1;const s=t[Yx("0x61")][Yx("0x52")](Yx("0x4e")).me,r=n[Yx("0x9c")]()[Yx("0x6e")]((t=>t[Yx("0x17")]&&t[Yx("0x49")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x25")==t[Yx("0x92")])for(const e of t[Yx("0x27")]()){const n=e[Yx("0x72")]()[Yx("0x81")]();if(n)if(n.is(Yx("0x58"),Yx("0x24"))&&oa(n)){t[Yx("0x2b")](e.name),i[Yx("0x51")](n),o=!0;const s=n[Yx("0x7e")],r=n[Yx("0x99")],a=s&&s.is(Yx("0x58"),Yx("0x24")),c=r&&r.is(Yx("0x58"),Yx("0x24"));a&&!i[Yx("0x30")](s)&&x[Yx("0x51")](s),c&&!i[Yx("0x30")](r)&&x[Yx("0x51")](r)}else n.is(Yx("0x58"),Yx("0x35"))&&n[Yx("0x5d")]&&(t[Yx("0x2b")](e[Yx("0x74")]),o=!0)}else if(Yx("0x9a")==t.subType){if(!t[Yx("0x45")]||!t[Yx("0x45")].tablePasteChainId)continue;const e=t.attributes.markerAttributes;if(e&&Object[Yx("0x6a")](e)[Yx("0xa1")])continue;const n=t[Yx("0x45")][Yx("0x2f")];let s=!0,i=!0;for(const e of r)if(e[Yx("0x92")]&&e.subType[Yx("0x1b")](Yx("0x25"))){if(!e[Yx("0x45")][Yx("0x2f")]){i=!1;break}if(e.id!=t.id&&e[Yx("0x45")].tablePasteChainId==n){s=!1;break}}i&&s&&(t[Yx("0x15")](),o=!0)}for(const t of i)e[Yx("0x1d")](t);for(const t of x)e[Yx("0x84")](t);return o})),t[Yx("0x80")][Yx("0x8b")]("editingDowncast").markerToHighlight({model:Yx("0x3"),view:(t,e)=>l(t),converterPriority:Yx("0x44")}),t.conversion[Yx("0x8b")]("dataDowncast")[Yx("0x6c")]({model:Yx("0x3"),view:(t,e)=>e[Yx("0x8")][Yx("0x40")]?l(t,!1):null,converterPriority:Yx("0x44")});const u=t[Yx("0x6f")].view;this[Yx("0x28")](u[Yx("0x33")],Yx("0x5c"),((t,e)=>{const n=[];for(const t of u[Yx("0x19")](e.content).getItems())t.is(Yx("0x58"),"suggestion-td")&&n[Yx("0x2d")](t);u.change((t=>{for(const e of n)t[Yx("0x14")](t[Yx("0x19")](e),t[Yx("0x71")](e)),t.remove(e)}))}))}}function oa(t){if(t[Yx("0x5d")])return!0;const e=t[Yx("0x82")](0);return e.is(Yx("0x58"),"paragraph")&&e[Yx("0x5d")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Yx("0x1f")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["Users","getSuggestions","formatBlock","model","has","resizeTableWidth","_suggestionFactory","resizeColumnWidths","getAttribute","accept","bind","getContainedElement","handleSuggestionDescription","TrackChangesEditing","get","getTableColumnsWidths","resizeTable","registerCustomCallback","enableCommand","data","subType","getSelectedElement","selection","_descriptionFactory","getSuggestionCallback","handleResizeTableWidthCommand","plugins","format","getColumnGroupElement","registerDescriptionCallback","editor","author","change","TableColumnResizeEditing","columnWidths","discard","markBlockFormat"];var ia,xa;ia=ra,xa=461,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){if(!this[aa("0xd")].plugins[aa("0x18")](aa("0x10")))return;const t=this[aa("0xd")][aa("0x9")][aa("0x22")](aa("0x21"));t[aa("0x1")]("resizeTableWidth",this[aa("0x8")][aa("0x1e")](this)),t.enableCommand(aa("0x1b"),this[aa("0x8")].bind(this)),t[aa("0x1a")].registerCustomCallback(aa("0x16"),aa("0x24"),aa("0x1d"),t[aa("0x1a")][aa("0x7")]("formatBlock",null,"discard")),t[aa("0x1a")][aa("0x0")](aa("0x16"),aa("0x24"),aa("0x12"),t[aa("0x1a")][aa("0x7")]("formatBlock",null,aa("0x1d"))),t[aa("0x6")][aa("0xc")](this[aa("0x20")][aa("0x1e")](this))}handleResizeTableWidthCommand(t,e){const n=this.editor.plugins[aa("0x22")]("TrackChangesEditing"),o=this[aa("0xd")][aa("0x9")][aa("0x22")](aa("0x10")),s=e.table||this[aa("0xd")][aa("0x17")].document[aa("0x5")][aa("0x4")]();this[aa("0xd")][aa("0x17")][aa("0xf")]((()=>{const r=o[aa("0xb")](s);let i=r?o[aa("0x23")](r):null,x=s[aa("0x1c")]("tableWidth")||null;const a=e.tableWidth||x,c=e[aa("0x11")]||i,l=this[aa("0xd")][aa("0x9")][aa("0x22")](aa("0x14")).me;for(const t of n[aa("0x15")]()){const e=t[aa("0x1f")]();if(aa("0x24")===t[aa("0x3")]&&e===s){t[aa("0xe")]!==l&&t[aa("0x12")]();const e=t[aa("0x2")].commandParams;x=e[0].tableWidth,i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[aa("0x13")](s,{commandName:aa("0x19"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:aa("0x24")},[],aa("0x24"))}))}[aa("0x20")](t){const{data:e}=t;if(e&&aa("0x24")===e.formatGroupId){const t="*Format:* resize table";return{type:aa("0xa"),content:Yo(this.editor.locale,t)}}}}const la=["afterInit","enableCommand","TrackChangesEditing","Template","insertTemplate","has","plugins"];var ua,da;ua=la,da=133,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class fa extends t.Plugin{[ga("0x0")](){const t=this.editor;t[ga("0x6")][ga("0x5")](ga("0x3"))&&t[ga("0x6")].get(ga("0x2"))[ga("0x1")](ga("0x4"))}}const ma=["plugins","insertTableOfContents","editor","get","TrackChangesEditing","enableCommand","ELEMENT_TABLE_OF_CONTENTS","locale","tableOfContents","afterInit","registerElementLabel","commands"];var ha,pa;ha=ma,pa=164,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return ma[t-=0]};class Ea extends t.Plugin{[ba("0x1")](){const t=this[ba("0x6")];if(!t[ba("0x3")][ba("0x7")](ba("0x5")))return;t[ba("0x4")][ba("0x7")]("TrackChangesEditing")[ba("0x9")](ba("0x5"));const e=t[ba("0x4")][ba("0x7")](ba("0x8")),n=t[ba("0xb")];e._descriptionFactory[ba("0x2")](ba("0x0"),(t=>Yo(n,ba("0xa"),t)))}}const _a=["start","end","schema","plugins","has","get","registerPostFixer","locale","differ","Title","getNearestSelectionRange","title-content","suggestion","document","isCollapsed","newRange","TrackChangesEditing","_descriptionFactory","registerElementLabel","ELEMENT_TITLE","updateMarker","removeMarker","getChangedMarkers","nodeBefore","model","forward","createRange","_splitMarkerName","afterInit"];var Ta,Ca;Ta=_a,Ca=275,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0xe")](){const t=this.editor;if(!t.plugins[ya("0x13")](ya("0x18")))return;const e=t[ya("0x12")][ya("0x14")](ya("0x2"));e[ya("0x3")][ya("0x4")](ya("0x1a"),(()=>Yo(t[ya("0x16")],ya("0x5")))),t.model[ya("0x1c")][ya("0x15")]((n=>{let o=!1;const s=Array.from(t[ya("0xa")][ya("0x1c")][ya("0x17")][ya("0x8")]());for(const{name:r,data:i}of s){const{group:s}=e[ya("0xd")](r);if(ya("0x1b")!==s||!i[ya("0x1")])continue;const x=i.newRange,a=x[ya("0x10")][ya("0x9")];if(!a||!a.is("element",ya("0x1a")))continue;if(!x[ya("0xf")].isTouching(x[ya("0x10")]))continue;const c=t.model[ya("0x11")][ya("0x19")](x.end,ya("0xb"));if(c&&c[ya("0x0")]){const t=n[ya("0xc")](x[ya("0xf")],c.start);t.isEqual(x)||(n[ya("0x6")](r,{range:t}),o=!0)}o||(n[ya("0x7")](r),o=!0)}return o}))}}const Aa=["afterInit","TrackChangesEditing","enableCommand","undo","has","redo","UndoEditing","editor","plugins"];var va,Ra;va=Aa,Ra=204,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{[Ia("0x3")](){const t=this[Ia("0x1")],e=t[Ia("0x2")].get(Ia("0x4"));t[Ia("0x2")][Ia("0x7")](Ia("0x0"))&&(e[Ia("0x5")](Ia("0x6")),e[Ia("0x5")](Ia("0x8")))}}const La=["TrackChangesEditing","requires","toggleTableCaption","editor","plugins","afterInit","get","TableCaptionEditing","enableCommand"];var Na,wa;Na=La,wa=186,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("0x4")](){return[Bx]}[Ma("0x8")](){const t=this[Ma("0x6")];t[Ma("0x7")].has(Ma("0x1"))&&t.plugins[Ma("0x0")](Ma("0x3"))[Ma("0x2")](Ma("0x5"))}}const Fa=["isListItemBlock","type","getAttribute","styles","has","ELEMENT_","expandListBlocksToCompleteList","handleDescriptions","markMultiRangeBlockFormat","commandName","reversed","*Format:* set order to reversed","push","DocumentListPropertiesEditing","listStyle","locale","handleListReversedCommand","numbered","model","selection","afterInit","enableCommand","_getSuggestionBlocksForListStyle","*Format:* set start index to %0","_getTranslationKeyForListStyle","plugins","format","length","_LIST_","DocumentListPropertiesUtils","_descriptionFactory","DocumentListUtils","TrackChangesEditing","startIndex","isFirstBlockOfListItem","listType","handleListStyleCommand","commandParams","editor","filter","list.properties","from","change","bind","getSelectedBlocks","listStart","config","toUpperCase","listReversed","_getSuggestionBlocks","get","handleListStartCommand"];var Pa,Da;Pa=Fa,Da=291,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x29")](){if(!this.editor.plugins[Ba("0x19")](Ba("0x22")))return;const t=this[Ba("0x7")][Ba("0xf")][Ba("0x13")](Ba("0x9")),e=this[Ba("0x7")][Ba("0x2e")][Ba("0x13")](Ba("0x1"));t[Ba("0x18")]&&e[Ba("0x2a")]("listStyle",this[Ba("0x5")].bind(this)),t.reversed&&e[Ba("0x2a")](Ba("0x11"),this[Ba("0x25")][Ba("0xc")](this)),t[Ba("0x2")]&&e[Ba("0x2a")](Ba("0xe"),this[Ba("0x14")][Ba("0xc")](this)),e[Ba("0x33")].registerDescriptionCallback(this[Ba("0x1c")][Ba("0xc")](this))}[Ba("0x5")](t,e={}){const n=this.editor[Ba("0x2e")].get("TrackChangesEditing"),o=this._getSuggestionBlocksForListStyle();this.editor[Ba("0x27")][Ba("0xb")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ba("0x23"),commandParams:[{type:e[Ba("0x16")]}],formatGroupId:Ba("0x23")})}))}handleListReversedCommand(t,e={}){const n=this[Ba("0x7")][Ba("0x2e")][Ba("0x13")](Ba("0x1")),o=this[Ba("0x7")].plugins[Ba("0x13")]("DocumentListUtils"),s=this[Ba("0x12")]((t=>o[Ba("0x15")](t)&&Ba("0x26")===t.getAttribute("listType")));null!==s&&this[Ba("0x7")][Ba("0x27")][Ba("0xb")]((()=>{n[Ba("0x1d")](s,{commandName:"listReversed",commandParams:[{reversed:e[Ba("0x1f")]}],formatGroupId:Ba("0x11")})}))}[Ba("0x14")](t,e={}){const n=this[Ba("0x7")][Ba("0x2e")].get(Ba("0x1")),o=this[Ba("0x7")][Ba("0x2e")][Ba("0x13")](Ba("0x0")),s=this[Ba("0x12")]((t=>o[Ba("0x15")](t)&&Ba("0x26")===t[Ba("0x17")](Ba("0x4"))));null!==s&&this[Ba("0x7")][Ba("0x27")][Ba("0xb")]((()=>{n[Ba("0x1d")](s,{commandName:"listStart",commandParams:[{startIndex:e[Ba("0x2")]}],formatGroupId:Ba("0xe")})}))}[Ba("0x1c")](t){const e=this.editor[Ba("0x24")],{data:n}=t;if(!n)return;let o,s;switch(n[Ba("0x1e")]){case Ba("0x23"):o="*Change to:* %0",s={type:Ba("0x2f"),content:Yo(e,o,Yo(e,this[Ba("0x2d")](n[Ba("0x6")][0][Ba("0x16")])))};break;case Ba("0x11"):o=n[Ba("0x6")][0][Ba("0x1f")]?Ba("0x20"):"*Format:* set order to regular",s={type:Ba("0x2f"),content:Yo(e,o)};break;case Ba("0xe"):o=Ba("0x2c"),s={type:Ba("0x2f"),content:Yo(e,o,n[Ba("0x6")][0][Ba("0x2")])}}return s}[Ba("0x2b")](){const t=this[Ba("0x7")].plugins.get(Ba("0x0"));let e=Array[Ba("0xa")](this[Ba("0x7")].model.document[Ba("0x28")].getSelectedBlocks());return e[Ba("0x21")](...t[Ba("0x1b")](e)),e=[...new Set(e)],e}[Ba("0x12")](t){const e=this[Ba("0x7")][Ba("0x2e")].get(Ba("0x0"));let n=Array[Ba("0xa")](this[Ba("0x7")][Ba("0x27")].document.selection[Ba("0xd")]())[Ba("0x8")](t);if(!n[Ba("0x30")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[Ba("0x3")](t)&&o[Ba("0x21")](t);return o}[Ba("0x2d")](t){return Ba("0x1a")+this[Ba("0x7")][Ba("0x2e")][Ba("0x13")](Ba("0x32")).getListTypeFromListStyleType(t).toUpperCase()+Ba("0x31")+t[Ba("0x10")]().replace(/-/g,"_")}}const Ua=["tableBorderStyle","TrackChangesEditing","has","tableBorderWidth","removeAttribute","tableCellBorderWidth","TablePropertiesEditing","tableCellWidth","join","tableWidth","plugins","getAttribute","enableCommand","handleSuggestionDescription","tableCellBackgroundColor","table","_handlePropertyChange","TrackChangesTableProperties","getSelectionAffectedTableCells","tableCellProperties","registerDescriptionCallback","document","tableProperties","locale","tableCellHeight","TableUtils","get","discard","registerCustomCallback","markBlockFormat","_suggestionFactory","getSuggestions","tableCellBorderStyle","formatBlock","accept","tableCellHorizontalAlignment","change","tableHeight","editor","tableBackgroundColor","afterInit","selection","TableCellPropertiesEditing","model","_getSuggestion","*Format:* change table properties","handleDiscardAction","setAttribute","findAncestor","batch","tableBorderColor","getSuggestionCallback"];var Ga,Ha;Ga=Ua,Ha=314,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{constructor(t){super(t),this[Wa("0x14")]=[Wa("0x30"),Wa("0x32"),Wa("0x1"),"tableAlignment",Wa("0x7"),Wa("0x23"),Wa("0x25")],this.tableCellProperties=["tableCellBorderColor",Wa("0x1e"),Wa("0x3"),"tableCellPadding",Wa("0x5"),Wa("0x16"),Wa("0xc"),Wa("0x21"),"tableCellVerticalAlignment"]}static get pluginName(){return Wa("0xf")}[Wa("0x26")](){const t=this[Wa("0x24")][Wa("0x8")].get("TrackChangesEditing");if(this.editor[Wa("0x8")][Wa("0x0")](Wa("0x4"))){for(const e of this[Wa("0x14")])t[Wa("0xa")](e,((t,n)=>{const o=this[Wa("0x24")].model[Wa("0x13")].selection.getFirstPosition()[Wa("0x2e")](Wa("0xd"));this[Wa("0xe")](e,[o],this[Wa("0x14")],"tableProperties",t,n)}));t[Wa("0x1c")][Wa("0x1a")](Wa("0x1f"),Wa("0x14"),Wa("0x20"),t._suggestionFactory[Wa("0x31")](Wa("0x1f"),null,Wa("0x19"))),t._suggestionFactory[Wa("0x1a")](Wa("0x1f"),Wa("0x14"),Wa("0x19"),((t,e)=>this[Wa("0x2c")](this.tableProperties,t,e))),t[Wa("0x1c")][Wa("0x1a")]("formatBlock",Wa("0x14"),Wa("0x6"),(()=>!1))}if(this[Wa("0x24")][Wa("0x8")].has(Wa("0x28"))){for(const e of this[Wa("0x11")])t[Wa("0xa")](e,((t,n)=>{const o=this[Wa("0x24")].plugins[Wa("0x18")](Wa("0x17"))[Wa("0x10")](this[Wa("0x24")].model.document[Wa("0x27")]);this[Wa("0xe")](e,o,this.tableCellProperties,Wa("0x11"),t,n)}));t[Wa("0x1c")][Wa("0x1a")](Wa("0x1f"),Wa("0x11"),Wa("0x20"),t._suggestionFactory[Wa("0x31")](Wa("0x1f"),null,Wa("0x19"))),t[Wa("0x1c")][Wa("0x1a")](Wa("0x1f"),Wa("0x11"),Wa("0x19"),((t,e)=>this[Wa("0x2c")](this[Wa("0x11")],t,e))),t._suggestionFactory[Wa("0x1a")](Wa("0x1f"),"tableCellProperties",Wa("0x6"),(()=>!1))}t._descriptionFactory[Wa("0x12")]((t=>this[Wa("0xb")](t)))}[Wa("0xe")](t,e,n,o,s,r){const i=this[Wa("0x24")][Wa("0x8")][Wa("0x18")](Wa("0x33"));this[Wa("0x24")][Wa("0x29")].enqueueChange(r[Wa("0x2f")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Wa("0x9")](o);void 0!==n&&(e[o]=n)}s(r),i[Wa("0x1b")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start.nodeAfter,s=n.commandParams[0];this[Wa("0x24")][Wa("0x29")][Wa("0x22")]((e=>{for(const n of t)void 0!==s[n]?e[Wa("0x2d")](n,s[n],o):e[Wa("0x2")](n,o)}))}[Wa("0xb")](t){if(t.data)switch(t.subType){case Wa("0x14"):return{type:"format",content:Yo(this[Wa("0x24")][Wa("0x15")],Wa("0x2b"))};case Wa("0x11"):return{type:"format",content:Yo(this[Wa("0x24")][Wa("0x15")],"*Format:* change table cell properties")}}}[Wa("0x2a")](t,e){const n=this[Wa("0x24")][Wa("0x8")].get(Wa("0x33"));for(const o of n[Wa("0x1d")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Va=["clear","isBlock","getMarkers","isUndo","collaboration.channelId","discard","discardSelectedSuggestions","subType","_rangeIsInLocalUserInsertion","_breakSuggestionMarker","isLimit","consumable","_updateSuggestionData","_saved","item","fromCharCode","toViewElement","showSuggestionHighlights","acceptAllSuggestions","stop","markInlineFormat","sort","isSelectable","getFirstMarker","high","createdAt","markMultiRangeInsertion","previous","_getSuggestionData","hasCommentThread","writer","insertContent","formatInline:join","listenTo","_findSuggestions","getSuggestionCallback","containsRange","_addSuggestionMarker","trackChanges.trackFormatChanges","deletion:chain","bindElementToMarker","resolve","_getExternalAuthor","config","suggestionChanged","getSuggestion","getRange","insertion:chain","_getAuthorFromId","model","filter","error-saving-suggestion-data-suggestion-discarded","name","notReady","markInsertion","enableCommand","newRange","insertion:join","track-changes-suggestion-data-mismatch","_trackFormatChanges","markBlockFormat","isTouching","getWalker","includes","isCollapsed","discardSuggestion","move","elementToElement","multi","getIntersection","nodeAfter","low","createSelection","data-suggestion","_suggestionState","deletion:join","isExternal","assign","documentSelection","$textProxy","isAtStart","isArray","markerName","containsPosition","_removeSuggestion","_commentsRepository","getRanges","getAttribute","value","isEqual","ck-suggestion-marker--active","setAttribute","formatInline","getCustomProperty","ck-suggestion-marker-formatBlock","insertion:accept","unbind","forceDefaultExecution","nodeBefore","start","range","getAllAdjacentSuggestions","addSuggestionData","creator","dataDowncast","removed","adapter","mapper","set","addMarkerName","targetPosition","markMultiRangeDeletion","_suggestions","fire","howMany","_joinWithAdjacentSuggestions","formatBlock:accept","isRemovable","plugins","editor","suggestion","oldRange","every","toJSON","options","define","setTo","forward","_suggestionFactory","tablePasteChainId","addMarker:suggestion","marker-count","delete","_editor","markerReady","isInContent","_onDiscard","conversion","suggestionLoaded","PendingActions","hasComments","trackChanges.mergeNestedSuggestions","PENDING_ACTION_SUGGESTION","_joinSuggestions","execute","markers","open","detach","removeComment","fromRange","isIntersectingWithRange","_handleNewSuggestionMarker","_setSuggestionData","values","formatBlock:join","some","group","getItems","deletion","change:data","isInsideObject","locale","_mergeNestedSuggestions","isAfter","addClass","removeMarker","_isDataLoaded","ck-suggestion-marker","_addThreadToSuggestion","getMultiRangeId","originalSuggestionId","size","_refreshSuggestionsChain","@external","elementStart","insert","type","_customCallbacks","isBefore","_isForcedDefaultExecutionBlock","_defaultCallbacks","formatBlock:discard","addComment","fetchCommentThread","accept","add","catch","getChangedMarkers","join","has","createPositionAfter","author","after","_registerDefaultCallbacks","formatInline:chain","authorName","markerToHighlight","suggestionUnloaded","addMarker:suggestion:formatBlock","attributes","ready","formatBlock","document","differ","createRangeIn","highest","skipNestingCheck","formatBlock:chain","then","removeMarker:suggestion:formatBlock","createPositionAt","dataReady","ck-suggestion-marker-","multipleBlocks","update:suggestion","from","track-changes-adapter-already-set","addSuggestion","external:","data","isNextTo","_adapter","rejected","commands","suggestion:","stopListening","trackChanges","buildSuggestion","getSuggestions","deletion:","consume","_cutOutSuggestionMarker","CommentsRepository","track-changes-adapter-missing-getsuggestion","isLocal","formatInline:","discardAllSuggestions","selection","createRange","registerPostFixer","_splitMarkerName","getLastMatchingPosition","getNearestSelectionRange","insertion:","map","position","$marker","deleteContent","elementEnd","change","getDifference","get","getChanges","_enabledCommands","isMultiRange","never","insertion","addMarker","_checkSuggestionCorrectness","acceptSelectedSuggestions","updateMarker","end","head","addRange","split","keys","_createSuggestion","getAncestors","getShiftedBy","unbindElementFromMarkerName","formatGroupId","for","init","applyOperation","change:_saved","root","$graveyard","containerElement","acceptSuggestion","removeClass","next","isDocumentOperation","schema","rootName","getUser","always","getFirstRange","parent","moveTargetPosition","getCommentThread","setSelection","updateSuggestion","removeMarkers","markDeletion","change:activeMarkers","formatBlock:","push","trackChangesCommand","batch","commentThread","widget","element","containsItem","isOwn","backward","activeMarkers","accepted","_model","TrackChangesEditing","_setSuggestionRange","containsRangeInObject","dataToMarker","remove","deletion:discard","insertion:discard","isObject","length","splitPosition","Users","lowest","upcast","chain","editingDowncast","addUser","suggestion-type"];var Ka,qa;Ka=Va,qa=497,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 requires(){return["CommentsRepository",r.Users,t.PendingActions,cs,fs,Rs,ws,Bs,Ws,$s,er,ir,ja,dr,pr,yr,Ir,Fr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,wi,ji,zi,$i,tx,rx,ux,px,Cx,Ix,Mx,Bx,zx,$x,Oa,na,ca,Ea,za,fa,ka,Sa]}static get pluginName(){return Xa("0x88")}constructor(t){function e(t){return t[Xa("0x48")]((t=>String[Xa("0xa8")](t)))[Xa("0x10")]("")}super(t),this[Xa("0x105")](Xa("0x85"),[]),this.on(Xa("0x7a"),((e,n,o,s)=>{this[Xa("0x87")][Xa("0x4d")]((()=>{for(const e of[...s,...o])this[Xa("0x87")][Xa("0x12a")].has(e)&&t.editing.reconvertMarker(e)}))})),this._descriptionFactory=new ss(this[Xa("0x110")][Xa("0xca")].schema,this[Xa("0x110")][Xa("0x13a")]),this[Xa("0x31")]=null,this[Xa("0x119")]=new Ja(this[Xa("0x110")]),this._suggestions=new Map,this[Xa("0xee")]=t[Xa("0x10f")][Xa("0x4f")](Xa("0x3c")),this[Xa("0x51")]=new Set,this._model=this[Xa("0x110")][Xa("0xca")],this[Xa("0xe3")]=new WeakMap,this[Xa("0x7")]=!1,t[Xa("0xc4")][Xa("0x116")]("trackChanges.trackFormatChanges","default"),this[Xa("0xd4")]=t.config[Xa("0x4f")](Xa("0xbf")),t.config.define(Xa("0x126"),!0),this[Xa("0x13b")]=t[Xa("0xc4")].get(Xa("0x126")),this.trackChangesCommand=new d(t,this[Xa("0x51")]),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,53,54])}[Xa("0x64")](){const t=this[Xa("0x110")];t[Xa("0x122")][Xa("0x63")](Xa("0x96"))[Xa("0x18")]({model:Xa("0x111"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[Xa("0xeb")]),o=[Xa("0x140"),"ck-suggestion-marker-"+n];let s=3e3;return this[Xa("0x85")].includes(t[Xa("0xeb")])&&(o[Xa("0x7c")](Xa("0xf3")),s=3010),Xa("0x137")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0x122")].for("dataDowncast")[Xa("0xd")]((e=>{e.on(Xa("0x11b"),((e,n,o)=>{if(!o.options.showSuggestionHighlights)return;const s=n.item;if(!s)return;const r=o.mapper[Xa("0xa9")](s);t[Xa("0xca")][Xa("0x6e")][Xa("0x8f")](s)&&r&&!r[Xa("0xf6")](Xa("0x80"))&&r.is(Xa("0x69"))&&(0,x.toWidget)(r,o[Xa("0xb7")])}),{priority:Xa("0xb1")})})),t[Xa("0x122")][Xa("0x63")](Xa("0x101"))[Xa("0x18")]({model:"suggestion",view:(t,e)=>{if(!e.options[Xa("0xaa")])return null;const{type:n}=this[Xa("0x44")](t[Xa("0xeb")]);return{classes:[Xa("0x140"),Xa("0x28")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Xa("0xa7")])return;if(o[Xa("0xa7")].is(Xa("0x41")))return void s[Xa("0xa4")].consume(o[Xa("0xa7")],n[Xa("0xcd")]);const r=s.mapper[Xa("0xa9")](o[Xa("0xa7")]);if(!o[Xa("0xa7")].is(Xa("0x81"))||!t[Xa("0xca")][Xa("0x6e")][Xa("0x9a")](o[Xa("0xa7")])||r.getCustomProperty("addHighlight"))return;const{id:i}=this[Xa("0x44")](o[Xa("0xeb")]);s.writer[Xa("0x13d")]([Xa("0x140"),Xa("0xf7")],r),s[Xa("0xb7")][Xa("0xf4")](Xa("0xe2"),i,r),s[Xa("0x104")][Xa("0xc1")](r,o[Xa("0xeb")]),e&&(this[Xa("0x85")].includes(o[Xa("0xeb")])?s[Xa("0xb7")][Xa("0x13d")](Xa("0xf3"),r):s.writer[Xa("0x6b")](Xa("0xf3"),r));for(const e of t[Xa("0xca")][Xa("0x20")](o.item)[Xa("0x136")]())s[Xa("0xa4")][Xa("0x3a")](e,n[Xa("0xcd")]);s[Xa("0xa4")][Xa("0x3a")](o[Xa("0xa7")],n[Xa("0xcd")])};t[Xa("0x122")].for("dataDowncast")[Xa("0xd")]((t=>{t.on(Xa("0x1a"),((t,e,o)=>{o[Xa("0x115")][Xa("0xaa")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xa("0x21")})})),t[Xa("0x122")][Xa("0x63")](Xa("0x101")).markerToData({model:Xa("0x111"),view:(t,e)=>e[Xa("0x115")][Xa("0xaa")]?null:{group:Xa("0x111"),name:t.substr(11)}}),t[Xa("0x122")][Xa("0x63")](Xa("0x94"))[Xa("0xdc")]({view:{name:Xa("0x111"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0x34")+t[Xa("0xf0")](Xa("0x98"))+":"+t.getAttribute("id");return t[Xa("0xf0")](Xa("0x11c"))&&(n+=":"+t[Xa("0xf0")](Xa("0x11c"))),e.createElement(Xa("0x4a"),{"data-name":n})}}),t.conversion[Xa("0x63")]("upcast")[Xa("0x8b")]({view:"suggestion"}),t[Xa("0x122")][Xa("0x63")]("editingDowncast")[Xa("0xd")]((t=>{t.on(Xa("0x1a"),n(),{priority:Xa("0xb1")})})),t.conversion[Xa("0x63")](Xa("0x96"))[Xa("0xd")]((t=>{t.on(Xa("0x25"),((t,e,n)=>{const o=n[Xa("0x104")].markerNameToElements(e.markerName);if(o)for(const t of o)t.getCustomProperty("addHighlight")||(n[Xa("0xb7")][Xa("0x6b")]([Xa("0x140"),Xa("0xf7"),"ck-suggestion-marker--active"],t),n[Xa("0xb7")].removeAttribute(Xa("0xe2"),t),n[Xa("0x104")][Xa("0x61")](t,e[Xa("0xeb")]))}),{priority:Xa("0xb1")})})),t[Xa("0xca")][Xa("0x1e")][Xa("0x43")]((e=>{let n=!1;const o=Array.from(t[Xa("0xca")][Xa("0x1e")][Xa("0x1f")][Xa("0xf")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x44")](x);if("suggestion"!==o)continue;const u=this[Xa("0x109")][Xa("0x4f")](l);if(null!=a[Xa("0xd1")])if(Xa("0xf5")==c&&(n=n||Ya(a.newRange,x,e,t[Xa("0xca")][Xa("0x6e")])),a[Xa("0xd1")].isCollapsed||"$graveyard"==a[Xa("0xd1")][Xa("0x67")].rootName||Xa("0x1d")==c&&!ec(a[Xa("0xd1")])||Xa("0x137")==c&&(Za(i=a[Xa("0xd1")])||(r=i)[Xa("0xfc")][Xa("0x73")]==r[Xa("0x59")].nodeBefore&&r[Xa("0xfc")].isAtEnd))e.removeMarker(x),n=!0;else{if(!u||!u[Xa("0x120")])continue;s.add(u)}}var r,i;return s[Xa("0x144")]>0&&(n=!!this[Xa("0x10c")](s)||n),n})),t[Xa("0xca")][Xa("0x1e")][Xa("0x43")]((e=>{let n=!1;for(const o of t[Xa("0xca")][Xa("0x1e")].differ[Xa("0x50")]()){if(Xa("0x3")!=o[Xa("0x4")])continue;const s=o[Xa("0x49")][Xa("0x60")](o[Xa("0x90")]);if(s.isAtEnd)for(const r of this[Xa("0x109")][Xa("0x132")]()){if(r[Xa("0x52")]||!r[Xa("0x120")])continue;if(Xa("0x1d")!=r[Xa("0x4")])continue;const i=r.getFirstRange();if(i[Xa("0xfc")].parent!=i.end[Xa("0x73")]&&i[Xa("0x59")][Xa("0xf2")](o[Xa("0x49")])){const o=t.model[Xa("0x42")](i[Xa("0xfc")],s);e[Xa("0x58")](r[Xa("0xb0")](),{range:o}),n=!0}}}return n})),t[Xa("0xca")][Xa("0x12a")].on(Xa("0x2a"),((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x44")](e.name),n=this[Xa("0x109")][Xa("0x4f")](t);n&&n[Xa("0x106")](e.name)}})),t[Xa("0xca")][Xa("0x1e")].on(Xa("0x138"),(()=>{const e=Array[Xa("0x2b")](t.model[Xa("0x1e")].differ.getChangedMarkers())[Xa("0xcb")]((t=>Xa("0x111")===this[Xa("0x44")](t[Xa("0xcd")])[Xa("0x135")]));if(0===e[Xa("0x90")])return;e[Xa("0xae")](((t,e)=>{const n=t.data[Xa("0x112")],o=e[Xa("0x2f")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0xfc")].isBefore(o[Xa("0xfc")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x44")](t);if(null===s[Xa("0x112")]){const e=this[Xa("0x130")](t);o[Xa("0xd")](e)}else{const t=this._suggestions[Xa("0x4f")](e);null!==s[Xa("0xd1")]||t.isInContent?(n.add(t[Xa("0x5a")]),o[Xa("0xd")](t)):this._removeSuggestion(t)}}o[Xa("0x144")]>0&&this[Xa("0x0")](o);for(const t of n)this.fire(Xa("0xc5"),t)})),t[Xa("0xca")].on(Xa("0x65"),((e,n)=>{const o=n[0];if(!this[Xa("0x109")].size)return;if(!o[Xa("0x6d")])return;if(o[Xa("0x7e")][Xa("0x9c")]||!o[Xa("0x7e")][Xa("0x3e")])return;let s,r;switch(o.type){case"insert":s=t.model[Xa("0x26")](o[Xa("0x49")]),r=s[Xa("0x60")](o.howMany);break;case"split":s=t[Xa("0xca")][Xa("0x26")](o[Xa("0x91")]),r=t[Xa("0xca")][Xa("0x26")](o[Xa("0x74")]);break;case Xa("0xdb"):s=t.model[Xa("0x26")](o[Xa("0x107")]),r=s.getShiftedBy(o[Xa("0x10b")]);break;default:return}const i=t[Xa("0xca")][Xa("0x42")](s,r);t[Xa("0xca")][Xa("0x4d")]((()=>{for(const{suggestion:t,meta:e}of this[Xa("0xbb")](i)){if(t.isMultiRange)continue;if(Xa("0xf5")==t.type)continue;const n=t[Xa("0x2f")]&&t.data[Xa("0x29")];(Xa("0x1d")!=t[Xa("0x4")]||Xa("0x5c")==o[Xa("0x4")]&&!n)&&(e[Xa("0x8a")]||Xa("0x54")==t[Xa("0x4")]&&e[Xa("0x83")]||t[Xa("0x72")]()[Xa("0xbd")](i)&&this[Xa("0xa2")](t,s,r))}}))}),{priority:Xa("0x93")}),t[Xa("0xca")].on(Xa("0x4b"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0xfa")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Xa("0x7d")].value)return;if(o[Xa("0xd9")])return;const r=t[Xa("0xca")][Xa("0x6e")],{start:i,end:x}=o[Xa("0x72")](),a=i[Xa("0xdf")]&&r[Xa("0xa3")](i[Xa("0xdf")])?null:r[Xa("0x46")](i,Xa("0x118")),c=x[Xa("0xfb")]&&r[Xa("0xa3")](x.nodeBefore)?null:r[Xa("0x46")](x,Xa("0x84")),l=t[Xa("0xca")][Xa("0x42")](a?a[Xa("0xfc")]:i,c?c[Xa("0x59")]:x);t[Xa("0xca")][Xa("0x4d")]((e=>{this.markDeletion(l);const n=t[Xa("0xca")].schema[Xa("0x46")](l[Xa("0xfc")]);o.is(Xa("0xe7"))?e[Xa("0x76")](n):o[Xa("0x117")](n)})),e[Xa("0xac")]()}),{priority:e.priorities.normal+10}),t.model.on("insertContent",((e,n)=>{const o=n[n[Xa("0x90")]-1];o&&o[Xa("0xfa")]||this[Xa("0x7")]||this.trackChangesCommand[Xa("0xf1")]&&(t[Xa("0xca")][Xa("0x4d")]((()=>{let o=t[Xa("0xca")][Xa("0xb8")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o.clone();const s=o[Xa("0x59")].nodeBefore,r=t[Xa("0xca")][Xa("0x6e")];s&&r[Xa("0x9a")](s)&&!r[Xa("0x8f")](s)&&(o=t.model.createRange(o[Xa("0xfc")],t.model[Xa("0x26")](s,Xa("0x59")))),this[Xa("0xcf")](o)})),e.stop())}),{priority:Xa("0xb1")}),this[Xa("0x110")][Xa("0x33")][Xa("0xd")](Xa("0x36"),this[Xa("0x7d")]),this[Xa("0xd0")](Xa("0x36"));const o=new p(t,this[Xa("0x109")]);t[Xa("0x33")][Xa("0xd")](Xa("0x6a"),o),this[Xa("0xd0")](Xa("0x6a"));const s=new C(t,this._suggestions);t.commands[Xa("0xd")](Xa("0xda"),s),this[Xa("0xd0")](Xa("0xda")),t[Xa("0x33")][Xa("0xd")](Xa("0xab"),new F(t,o,this[Xa("0x109")])),this[Xa("0xd0")]("acceptAllSuggestions"),t[Xa("0x33")].add(Xa("0x40"),new F(t,s,this[Xa("0x109")])),this[Xa("0xd0")](Xa("0x40")),t[Xa("0x33")][Xa("0xd")](Xa("0x57"),new U(t,o,this[Xa("0x109")])),this[Xa("0xd0")](Xa("0x57")),t[Xa("0x33")].add(Xa("0x9f"),new U(t,s,this[Xa("0x109")])),this[Xa("0xd0")](Xa("0x9f"));const r=t.plugins[Xa("0x4f")]("CommentsRepository");this[Xa("0xba")](r,Xa("0xa"),((t,{threadId:e})=>{const n=this[Xa("0x109")][Xa("0x4f")](e);n&&n[Xa("0x7f")]&&1===n.commentThread[Xa("0x90")]&&this[Xa("0xa5")](e,{hasComments:!0})}),{priority:Xa("0xe0")}),this[Xa("0xba")](r,Xa("0x12d"),((t,{threadId:e})=>{const n=this._suggestions[Xa("0x4f")](e);n&&n[Xa("0x7f")]&&!n.commentThread[Xa("0x90")]&&this[Xa("0xa5")](e,{hasComments:!1})}),{priority:"low"})}set[Xa("0x103")](t){if(this._adapter)throw new e.CKEditorError(Xa("0x2c"),this);this[Xa("0x31")]=t}get[Xa("0x103")](){return this[Xa("0x31")]}[Xa("0x38")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0x109")][Xa("0x132")]())t&&!e.isInContent||n[Xa("0x7c")](e);return e?n[Xa("0x48")]((t=>t[Xa("0x114")]())):n}[Xa("0xc6")](t){const n=this._suggestions[Xa("0x4f")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}hasSuggestion(t){return this[Xa("0x109")].has(t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t.type[Xa("0x5c")](":"),i=this[Xa("0x109")].get(n)||this[Xa("0x5e")](s,r,n,e,o);if(this._addThreadToSuggestion(i),this[Xa("0x56")](i,s,r||null,e),i.createdAt=t[Xa("0xb2")],i[Xa("0x13f")]=!0,o&&o["@external"]){const t=o[Xa("0x1")],e=this._getExternalAuthor(t[Xa("0x17")]);i.authoredAt=t[Xa("0xb2")],i[Xa("0x13")]=e,i[Xa("0xe5")]=!0}else i.authoredAt=t[Xa("0xb2")];switch(t[Xa("0x2f")]&&(i[Xa("0x2f")]=t[Xa("0x2f")]),t[Xa("0x1b")]&&(i[Xa("0x1b")]=t.attributes),this[Xa("0x31")]&&this[Xa("0x31")].addSuggestion||(i[Xa("0xa6")]=!0),this._suggestionState[Xa("0x4f")](i)){case Xa("0xce"):this[Xa("0xe3")][Xa("0x105")](i,Xa("0x27"));break;case"markerReady":i.isInContent?(this[Xa("0x0")](new Set([i])),this[Xa("0x10c")](new Set([i])),this[Xa("0xe3")][Xa("0x105")](i,"ready"),this.fire(Xa("0x123"),i)):this[Xa("0xe3")][Xa("0x105")](i,Xa("0x102"))}return i}[Xa("0x6a")](t){this[Xa("0xfa")]((()=>{this.editor[Xa("0xca")][Xa("0x4d")]((()=>{for(const e of t[Xa("0xfe")]())e[Xa("0xc")]()}))}))}[Xa("0xda")](t){this[Xa("0xfa")]((()=>{this[Xa("0x110")][Xa("0xca")][Xa("0x4d")]((()=>{for(const e of t[Xa("0xfe")]())e[Xa("0x9e")]()}))}))}[Xa("0xd0")](t,n){const o=this[Xa("0x110")][Xa("0x33")].get(t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[Xa("0x51")][Xa("0xd")](o),n&&o.on(Xa("0x129"),((t,e)=>{this[Xa("0x7d")][Xa("0xf1")]&&(this[Xa("0x7")]||e[Xa("0x90")]>0&&e[e[Xa("0x90")]-1]&&e[e[Xa("0x90")]-1][Xa("0xfa")]||(t.return=n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[Xa("0xac")]()))}),{priority:Xa("0xb1")})}[Xa("0xfa")](t){let n,o;const s=this[Xa("0x7")];this[Xa("0x7")]=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0x7")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[Xa("0xcf")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[Xa("0x110")][Xa("0x10f")][Xa("0x4f")](Xa("0x92")).me;for(const{suggestion:e,meta:s}of this[Xa("0xbb")](t,"insertion"))if(s.isOwn){if(!s[Xa("0x30")]){if(s[Xa("0x8a")]){if(!this[Xa("0x13b")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this[Xa("0xa2")](e,t[Xa("0xfc")],t[Xa("0x59")]);break}if(n==e[Xa("0xa0")]&&rc(e,o)){const n=e[Xa("0x72")]();return n.start[Xa("0xf2")](t.end)?this[Xa("0x89")](e,this[Xa("0x87")][Xa("0x42")](t[Xa("0xfc")],n[Xa("0x59")])):this._setSuggestionRange(e,this._model[Xa("0x42")](n[Xa("0xfc")],t[Xa("0x59")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:Xa("0x54"),a=this[Xa("0x131")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xbe")](x,r,i,t),a}[Xa("0xb3")](t,n=Xa("0xdd"),o={}){const s=this.editor[Xa("0x10f")][Xa("0x4f")]("Users").me,r=this[Xa("0x119")][Xa("0xbc")](Xa("0x54"),n,Xa("0x10"));for(const e of this[Xa("0x38")]())if(e[Xa("0x13")].id==s.id&&"insertion"==e[Xa("0x4")]&&e[Xa("0xa0")]==n&&rc(e,o)&&(r(e[Xa("0xef")](),t)||r(t,e[Xa("0xef")]()))){for(const n of t)e[Xa("0x5b")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0x54"))){if(!n[Xa("0x83")])continue;if(!this[Xa("0x13b")]&&n[Xa("0x8a")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e[Xa("0xef")]())for(const e of t)if(!n[Xa("0xbd")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Xa("0x47")+n,c=this[Xa("0x131")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0xbe")](a,i,x,e,Zo[Xa("0x142")]());return c}[Xa("0xad")](t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0xd9")])return null;if(Xa("0x53")===this[Xa("0xd4")]){const e=this[Xa("0x119")].getSuggestionCallback(Xa("0xf5"),o,Xa("0xc"));return this[Xa("0xfa")]((()=>e([t],n,s))),null}const r=this[Xa("0x110")].plugins[Xa("0x4f")](Xa("0x92")).me,i=[];if("always"!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[Xa("0xbb")](t,Xa("0x54")))n.isOwn&&!n[Xa("0x139")]&&i[Xa("0x7c")](...e[Xa("0xef")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Xa("0xde")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xa("0x90")];){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o[Xa("0x90")]}}return n}(t,i);x[Xa("0x90")]&&this[Xa("0x87")][Xa("0x4d")]((()=>{for(const t of x){const e=this[Xa("0x119")][Xa("0xbc")](Xa("0xf5"),o,Xa("0xc"));this.forceDefaultExecution((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Xa("0xfc")],a=t[Xa("0x59")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0xf5"))){if(!n[Xa("0x83")])continue;if(e[Xa("0xa0")]!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0x72")]();if(r[Xa("0xbd")](t,!0))return null;x=x.isBefore(r.start)?x:r[Xa("0xfc")],a=a[Xa("0x13c")](r[Xa("0x59")])?a:r[Xa("0x59")],i?r[Xa("0xfc")][Xa("0x6")](i[Xa("0x72")]()[Xa("0xfc")])?(i[Xa("0x78")](),i=e):e[Xa("0x78")]():i=e}const c=this[Xa("0x87")][Xa("0x42")](x,a);if(i)this[Xa("0x89")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Xa("0x131")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Xa("0xbe")](Xa("0x3f")+o,t,i,c)}}return null}[Xa("0xd5")](t,n,o=[],s=null,r={}){n[Xa("0x62")]||(n[Xa("0x62")]=n.commandName),n[Xa("0x29")]=t.is(Xa("0xfd")),s=s||tc(n);const i=o[Xa("0x48")]((t=>nc(t,this[Xa("0x87")]))),x=t.is(Xa("0xfd"))?t:nc(t,this[Xa("0x87")]);if(Xa("0x53")===this[Xa("0xd4")]){const t=this[Xa("0x119")][Xa("0xbc")](Xa("0x1d"),s,"accept");return this[Xa("0xfa")]((()=>t([x],n,r))),null}i[Xa("0x7c")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&Xa("0x71")!==this[Xa("0xd4")]){const t=this[Xa("0x119")][Xa("0xbc")](Xa("0x1d"),s,Xa("0xc"));return this[Xa("0xfa")]((()=>t([x],n,r))),null}let c=null,l=x[Xa("0xfc")],u=x[Xa("0x59")];for(const{suggestion:t,meta:e}of this[Xa("0xbb")](x,Xa("0x1d"))){if(!e.isOwn)continue;if(e[Xa("0x30")]||e[Xa("0x8a")]||e.isInsideObject)continue;if(t[Xa("0x2f")][Xa("0x62")]!=n.formatGroupId)continue;if(!rc(t,r))continue;const o=t[Xa("0x72")]();if(t[Xa("0xa0")]==s){if(o.containsRange(x,!0))return null;l=l[Xa("0x6")](o[Xa("0xfc")])?l:o[Xa("0xfc")],u=u[Xa("0x13c")](o[Xa("0x59")])?u:o.end,c?o.start.isBefore(c[Xa("0x72")]()[Xa("0xfc")])?(c[Xa("0x78")](),c=t):t[Xa("0x78")]():c=t}else{const e=x.getIntersection(o);this[Xa("0x3b")](t,e)}}const d=this[Xa("0x110")][Xa("0x10f")][Xa("0x4f")](Xa("0x92")).me,g=(0,e.uid)(),f=d.id;if(c)return this[Xa("0x89")](c,this[Xa("0x87")][Xa("0x42")](l,u)),c;{const t=this[Xa("0x131")]({id:g,type:Xa("0x7b")+s,data:n,createdAt:new Date,authorId:f,attributes:r});return this._addSuggestionMarker(Xa("0x7b")+s,g,f,this[Xa("0x87")][Xa("0x42")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[Xa("0x62")]||(n[Xa("0x62")]=n.commandName);const i=t[0];n[Xa("0x29")]=i.is(Xa("0xfd")),s=s||tc(n);const x=o[Xa("0x48")]((t=>nc(t,this._model))),a=i.is("range")?t:t[Xa("0x48")]((t=>nc(t,this._model)));if(Xa("0x53")===this._trackFormatChanges){const t=this[Xa("0x119")][Xa("0xbc")](Xa("0x1d"),s,Xa("0xc"));return this[Xa("0xfa")]((()=>t(a,n,r))),null}x[Xa("0x7c")](...a);let c=!0;for(const t of x)if(!this[Xa("0xa1")](t)){c=!1;break}if(c&&Xa("0x71")!==this[Xa("0xd4")]){const t=this[Xa("0x119")][Xa("0xbc")](Xa("0x1d"),s,Xa("0xc"));return this[Xa("0xfa")]((()=>t(a,n,r))),null}const l=this[Xa("0x110")][Xa("0x10f")].get(Xa("0x92")).me;for(const t of this[Xa("0x38")]()){if(t[Xa("0x13")].id!=l.id)continue;if(Xa("0x1d")!=t[Xa("0x4")]||t[Xa("0x2f")].formatGroupId!=n[Xa("0x62")])continue;if(!rc(t,r))continue;const e=t[Xa("0xa0")]==s;for(let n=0;n<a[Xa("0x90")];n++){const o=a[n];for(const s of t[Xa("0x9b")]()){const r=s[Xa("0xc7")]();if(o[Xa("0xf2")](r)){e?(a.splice(n,1),n--):t[Xa("0x13e")](s[Xa("0xcd")]);break}}}}if(0==a[Xa("0x90")])return null;const u=this[Xa("0x119")][Xa("0xbc")]("formatBlock",s,Xa("0x10"));for(const t of this[Xa("0x38")]())if(t[Xa("0x13")].id==l.id&&Xa("0x1d")==t.type&&t[Xa("0x2f")].formatGroupId==n[Xa("0x62")]&&t.subType==s&&rc(t,r)&&(u(t[Xa("0xef")](),a)||u(a,t[Xa("0xef")]()))){for(const e of a)t[Xa("0x5b")](e);return t}const d=(0,e.uid)(),g=l.id,f=Xa("0x7b")+s,m=this[Xa("0x131")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(f,d,g,t,Zo[Xa("0x142")]());return m}[Xa("0x79")](t,n=null,o={}){if(t[Xa("0xd9")])return null;const s=this[Xa("0x110")].plugins[Xa("0x4f")](Xa("0x92")).me,r=new i.LiveRange(t[Xa("0xfc")],t[Xa("0x59")]);for(const{suggestion:t,meta:e}of this[Xa("0xbb")](r,Xa("0x54")))if(e.isOwn&&!e[Xa("0x30")])if(t[Xa("0x52")]){const e=t[Xa("0xef")]()[Xa("0xcb")]((t=>Xa("0x68")!=t[Xa("0x67")].rootName));if(e.every((t=>r[Xa("0xbd")](t,!0)))&&t[Xa("0x9e")](),e[Xa("0x134")]((t=>t[Xa("0xbd")](r,!0)))){const t=this._suggestionFactory[Xa("0xbc")](Xa("0x137"),n,"accept");return this[Xa("0xfa")]((()=>t([r],null,o))),null}}else{const e=r[Xa("0xde")](t[Xa("0x72")]());null!==e&&t[Xa("0x121")]([e],null,o)}if(r[Xa("0x12c")](),r[Xa("0xd9")]||Xa("0x68")==r[Xa("0x67")][Xa("0x6f")])return null;let x=null,a=r[Xa("0xfc")],c=r[Xa("0x59")];const l=this[Xa("0xbb")](r,Xa("0x137"));for(const{suggestion:t,meta:e}of l){const n=this[Xa("0x87")][Xa("0x42")](a,c);if(e[Xa("0x83")]&&(this[Xa("0x13b")]||!e[Xa("0x8a")]&&!e.isInsideObject))if(t[Xa("0x52")]){if(!rc(t,o))continue;let e=!0;for(const o of t[Xa("0xef")]()){if(o[Xa("0xbd")](n,!0))return t;n[Xa("0xbd")](o)||(e=!1)}e&&t[Xa("0x9e")]()}else{const e=t[Xa("0x72")]();if(e[Xa("0xbd")](n,!0))return t;if(!rc(t,o)){n.containsRange(e)?t[Xa("0x78")]():e.containsPosition(a)?a=e[Xa("0x59")]:e[Xa("0xec")](c)&&(c=e.start);continue}a=a[Xa("0x6")](e.start)?a:e[Xa("0xfc")],c=c[Xa("0x13c")](e[Xa("0x59")])?c:e[Xa("0x59")],o=Object[Xa("0xe6")]({},t[Xa("0x1b")]),x?e.start.isBefore(x[Xa("0x72")]()[Xa("0xfc")])?(x[Xa("0x78")](),x=t):t[Xa("0x78")]():x=t}}if(x)return this[Xa("0x89")](x,this[Xa("0x87")][Xa("0x42")](a,c)),x;{const t=(0,e.uid)(),r=this._model[Xa("0x42")](a,c),i=s.id,x=n?Xa("0x39")+n:Xa("0x137"),l=this[Xa("0x131")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xbe")](x,t,i,r),l}}[Xa("0x108")](t,n=Xa("0xdd"),o={}){const s=this[Xa("0x110")][Xa("0x10f")][Xa("0x4f")](Xa("0x92")).me,r=t[Xa("0x48")]((t=>new i.LiveRange(t[Xa("0xfc")],t[Xa("0x59")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0xbb")](r,Xa("0x54")))e.isOwn&&!e[Xa("0x30")]&&x[Xa("0xd")](t);for(const e of x)if(e[Xa("0x52")]){const s=e[Xa("0xef")]();if((!e[Xa("0x1b")]||!e[Xa("0x1b")][Xa("0x22")])&&s[Xa("0x113")]((t=>r[Xa("0x134")]((e=>e[Xa("0xbd")](t,!0)))))&&e[Xa("0x9e")](),r[Xa("0x113")]((t=>s[Xa("0x134")]((e=>e[Xa("0xbd")](t,!0)))))){const e=this._suggestionFactory[Xa("0xbc")]("deletion",n,Xa("0xc"));return this[Xa("0xfa")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0x72")]();if(r[Xa("0x134")]((e=>e[Xa("0xbd")](t,!0)))&&e[Xa("0x9e")](),r.every((e=>t[Xa("0xbd")](e,!0)))){const t=this[Xa("0x119")][Xa("0xbc")](Xa("0x137"),n,Xa("0xc"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this._suggestionFactory[Xa("0xbc")](Xa("0x137"),n,"join");let c=null;for(const t of this[Xa("0x38")]())if(t[Xa("0x13")].id==s.id&&t.isInContent&&Xa("0x137")==t[Xa("0x4")]&&t[Xa("0xa0")]==n&&rc(t,o)&&(a(t[Xa("0xef")](),r)||a(r,t[Xa("0xef")]())))if(c){if(t[Xa("0x7f")]&&t[Xa("0x7f")][Xa("0x90")])continue;for(const e of t.getRanges())c.isIntersectingWithRange(e)||c[Xa("0x5b")](e);t[Xa("0x78")]()}else{c=t;for(const e of r)t[Xa("0x12f")](e)||t[Xa("0x5b")](e)}if(c)return c;x[Xa("0x99")]();for(const{suggestion:t,meta:e}of this._findSuggestions(r,Xa("0x137")))e.isOwn&&(this[Xa("0x13b")]||!e[Xa("0x8a")]&&!e.isInsideObject)&&rc(t,o)&&x.add(t);for(const t of x){const e=t[Xa("0xef")]();if((!o||!o.skipNestingCheck)&&r.every((t=>e.some((e=>e[Xa("0xbd")](t,!0))))))return t;(!t[Xa("0x1b")]||!t[Xa("0x1b")][Xa("0x22")])&&e.every((t=>r[Xa("0x134")]((e=>e[Xa("0xbd")](t,!0)))))&&t[Xa("0x9e")]()}const l=(0,e.uid)(),u=s.id,d=Xa("0x39")+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t.detach(),t[Xa("0xd9")]||Xa("0x68")==t[Xa("0x67")][Xa("0x6f")]||this[Xa("0xbe")](d,l,u,t,Zo[Xa("0x142")]());return g}[Xa("0x89")](t,e){const n=t[Xa("0xb0")]();this._model[Xa("0x4d")]((t=>{t[Xa("0x58")](n,{range:e})}))}[Xa("0x141")](t){const e=t.id,n=this.editor[Xa("0xc4")][Xa("0x4f")](Xa("0x9d"));this[Xa("0xee")][Xa("0xb6")](e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[Xa("0x75")](e);o[Xa("0xf9")](Xa("0x10e")),o.isRemovable=!1,t[Xa("0x7f")]=o}[Xa("0x56")](t,n,o,s){if(t[Xa("0x4")]!=n||t[Xa("0xa0")]!=o||t[Xa("0x100")].id!=s)throw this[Xa("0x110")].enableReadOnlyMode(Xa("0xd3")),new e.CKEditorError(Xa("0xd3"),this)}[Xa("0x3b")](t,n){const o=t[Xa("0x72")]();if(n[Xa("0xf2")](o))t[Xa("0x78")]();else if(o[Xa("0xbd")](n)){const s=this[Xa("0x87")].createPositionAt(n.start[Xa("0xfb")],"end");this._setSuggestionRange(t,this[Xa("0x87")].createRange(o[Xa("0xfc")],s));const r=(0,e.uid)(),i=t[Xa("0x100")].id,x=t.type+":"+t[Xa("0xa0")];this[Xa("0x131")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t.attributes});const a=this[Xa("0x87")][Xa("0x26")](n.end.parent,Xa("0x14")),c=this[Xa("0x87")][Xa("0x42")](a,o[Xa("0x59")]);this[Xa("0xbe")](x,r,i,c)}else if(o[Xa("0xec")](n[Xa("0xfc")])){const e=this[Xa("0x87")].createPositionAt(n[Xa("0xfc")][Xa("0xfb")],Xa("0x59"));this[Xa("0x89")](t,this[Xa("0x87")].createRange(o[Xa("0xfc")],e))}else{const e=this[Xa("0x87")].createPositionAt(n.end[Xa("0x73")],Xa("0x14"));this[Xa("0x89")](t,this[Xa("0x87")][Xa("0x42")](e,o.end))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[Xa("0xbb")](t,Xa("0x54"))){if(!n.isOwn)continue;const o=e.getRanges();for(const e of o)if(!t[Xa("0x4e")](e)[Xa("0x90")])return!0}return!1}[Xa("0xc9")](t){const n=this[Xa("0x110")][Xa("0x10f")][Xa("0x4f")](Xa("0x92"))[Xa("0x70")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[Xa("0xc3")](t){const e=this.editor[Xa("0x10f")][Xa("0x4f")](Xa("0x92")),n=(0,r.hashObject)(Xa("0x2e")+t);return e[Xa("0x70")](n)||e[Xa("0x97")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[Xa("0xc9")](o),i=this[Xa("0x119")][Xa("0x37")](t,e,n,r,s,(t=>this[Xa("0xa5")](n,{attributes:t})));return this.listenTo(i,Xa("0xc"),(()=>{this[Xa("0xa5")](n,{state:Xa("0x86")})}),{priority:"high"}),this.listenTo(i,Xa("0x9e"),(()=>{this[Xa("0xa5")](n,{state:Xa("0x32")})}),{priority:Xa("0xb1")}),this[Xa("0x109")][Xa("0x105")](n,i),this[Xa("0xe3")].set(i,Xa("0xce")),i}[Xa("0x44")](t){const e=t[Xa("0x5c")](":");return{group:e[0],type:e[1],subType:e[Xa("0x90")]>=5?e[2]:null,id:e[Xa("0x90")]<5?e[2]:e[3],authorId:e[Xa("0x90")]<5?e[3]:e[4],markerCount:6==e[Xa("0x90")]?e[5]:null}}[Xa("0xa2")](t,n,o){const s=t.getFirstRange(),r=s[Xa("0xfc")],i=s.end;this._setSuggestionRange(t,this[Xa("0x87")][Xa("0x42")](r,n));const x=(0,e.uid)(),a=t[Xa("0x100")].id,c=t.type+(t.subType?":"+t[Xa("0xa0")]:"");this[Xa("0x131")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x1b")],data:t[Xa("0x2f")]}),Xa("0x1d")==t[Xa("0x4")]&&(o=this[Xa("0x87")].createPositionBefore(o[Xa("0x73")])),this[Xa("0xbe")](c,x,a,this[Xa("0x87")][Xa("0x42")](o,i))}[Xa("0xbb")](t,e=null){const n=[],o=this.editor[Xa("0x10f")][Xa("0x4f")](Xa("0x92")).me;Array[Xa("0xea")](t)||(t=[t]);for(const s of this.getSuggestions()){if(!s.isInContent)continue;if(e&&s[Xa("0x4")]!=e)continue;let r=!1;for(const e of s[Xa("0xef")]()){for(const i of t){const t=i[Xa("0xfc")][Xa("0xf2")](e[Xa("0x59")])||i[Xa("0x59")][Xa("0xf2")](e[Xa("0xfc")]);if(t||i.getIntersection(e)){const x=i.containsRange(e)&&Qa(this[Xa("0x87")][Xa("0x6e")],e.start,i),a=e.containsRange(i)&&Qa(this._model[Xa("0x6e")],i[Xa("0xfc")],e);n[Xa("0x7c")]({suggestion:s,meta:{isOwn:o==s[Xa("0x13")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}_addSuggestionMarker(t,e,n,o,s){this[Xa("0x87")][Xa("0x4d")]((r=>{let i=Xa("0x34")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0x55")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0xed")](t){const e=t.previous,n=t[Xa("0x6c")];t[Xa("0xb4")]=null,null!=e&&(e[Xa("0x6c")]=null),t[Xa("0x6c")]=null,null!=n&&(n[Xa("0xb4")]=null),Xa("0x1c")==this._suggestionState[Xa("0x4f")](t)&&(this[Xa("0xe3")][Xa("0x105")](t,Xa("0x102")),this.fire(Xa("0x19"),t,e,n))}[Xa("0x131")](t){const n=t.id,o=this[Xa("0xff")](t);if(this[Xa("0x31")]&&this[Xa("0x31")][Xa("0x2d")]){const s=this[Xa("0x110")][Xa("0x10f")][Xa("0x4f")](Xa("0x124")),r=o[Xa("0x125")],i=o[Xa("0xa0")]?o[Xa("0x4")]+":"+o[Xa("0xa0")]:o.type,x=this[Xa("0x110")][Xa("0x13a")],a=s.add(Yo(x,Xa("0x127"))),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t[Xa("0x143")]||null,attributes:o[Xa("0x1b")]};this[Xa("0x31")][Xa("0x2d")](c).then((t=>{o[Xa("0xa6")]=!0,s[Xa("0x8c")](a),t&&t[Xa("0xb2")]&&(this[Xa("0x109")][Xa("0x4f")](n).createdAt=t[Xa("0xb2")])}))[Xa("0xe")]((t=>{throw(0,e.logWarning)(Xa("0xcc")),this.editor[Xa("0xca")].enqueueChange({isUndoable:!1},(()=>{o[Xa("0x9e")]()})),o[Xa("0x35")](),this[Xa("0x109")][Xa("0x11d")](o.id),this[Xa("0xe3")].delete(o),t}))}return o}_updateSuggestionData(t,e){const n=this.editor[Xa("0x10f")][Xa("0x4f")](Xa("0x124")),o=this[Xa("0xc6")](t);if(this[Xa("0x31")]&&this._adapter[Xa("0x77")])if(o[Xa("0xa6")]){const o=n[Xa("0xd")](Yo(this[Xa("0x110")].locale,Xa("0x127")));this._adapter.updateSuggestion(t,e)[Xa("0x24")]((()=>{n[Xa("0x8c")](o)}))}else o.on(Xa("0x66"),(()=>{this._updateSuggestionData(t,e)}))}[Xa("0xb5")](t){if(!this._adapter||!this[Xa("0x31")][Xa("0xc6")])throw new e.CKEditorError(Xa("0x3d"),this);return this[Xa("0x31")][Xa("0xc6")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[Xa("0x109")][Xa("0x4f")](e)||this[Xa("0x5e")](n,o,e,s,{});switch(this[Xa("0x56")](r,n,o,s),this[Xa("0xe3")].get(r)){case Xa("0xce"):this[Xa("0xb5")](e).then((t=>{let n=Promise[Xa("0xc2")]();t[Xa("0x125")]&&(n=this[Xa("0xee")][Xa("0xb")]({channelId:this[Xa("0x110")].config[Xa("0x4f")](Xa("0x9d")),threadId:e})),n.then((()=>{this[Xa("0xff")](t)[Xa("0xa6")]=!0}))})),this[Xa("0xe3")][Xa("0x105")](r,Xa("0x11f"));break;case Xa("0x102"):this._updateSuggestionData(e,{state:Xa("0x12b")});case Xa("0x27"):this[Xa("0xe3")].set(r,Xa("0x1c")),this[Xa("0x10a")](Xa("0x123"),r);break;case Xa("0x1c"):this.fire("suggestionChanged",r)}return r[Xa("0x106")](t),r}[Xa("0x0")](t){const e=Array[Xa("0x2b")](t)[Xa("0xcb")]((t=>!t.isMultiRange)),n=this.getSuggestions({skipNotAttached:!0})[Xa("0xcb")]((t=>!t[Xa("0x52")])),o=n[Xa("0xcb")]((e=>!t[Xa("0x11")](e))),s=new Map(n[Xa("0x48")]((t=>[t,this[Xa("0x119")][Xa("0xbc")](t[Xa("0x4")],t[Xa("0xa0")],Xa("0x95"))]))),r=new Map(n[Xa("0x48")]((t=>[t,t[Xa("0x72")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Xa("0x90")];t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0x90")];t++)a(e[t],o,0);for(let t=0;t<e[Xa("0x90")];t++){const n=e[t];!x[Xa("0x11")](n)&&n.previous&&(n[Xa("0xb4")][Xa("0x6c")]===n&&(n[Xa("0xb4")][Xa("0x6c")]=null),n.previous=null),!i[Xa("0x11")](n)&&n[Xa("0x6c")]&&(n[Xa("0x6c")][Xa("0xb4")]===n&&(n.next.previous=null),n[Xa("0x6c")]=null)}function a(t,e,n){for(let o=n;o<e[Xa("0x90")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][Xa("0xb4")]=n[0],i.add(n[0]),x[Xa("0xd")](n[1]))}}function c(t,e){if(t[Xa("0x13")].id!==e.author.id)return null;const n=s[Xa("0x4f")](t)(t,e,r.get(t),r[Xa("0x4f")](e));return n&&s[Xa("0x4f")](e)(t,e,r[Xa("0x4f")](t),r[Xa("0x4f")](e))?n[1][Xa("0x7f")]&&n[1][Xa("0x7f")][Xa("0x90")]?null:n:null}}[Xa("0x10c")](t){const e=Array[Xa("0x2b")](t),n=this[Xa("0x38")]({skipNotAttached:!0}),o=n[Xa("0xcb")]((e=>!t[Xa("0x11")](e))),s=new Map(e[Xa("0x48")]((t=>[t,this[Xa("0x119")][Xa("0xbc")](t[Xa("0x4")],t[Xa("0xa0")],Xa("0x10"))]))),r=new Map(n[Xa("0x48")]((t=>[t,t[Xa("0xef")]()])));for(let t=0;t<e[Xa("0x90")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Xa("0x90")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[Xa("0x4")]!==e[Xa("0x4")]||o[Xa("0x13")].id!==e[Xa("0x13")].id||o.subType!==e[Xa("0xa0")])continue;if(!sc(e,o))continue;const x=s[Xa("0x4f")](e),a=r.get(e),c=r[Xa("0x4f")](o),l=e[Xa("0x7f")]&&e[Xa("0x7f")][Xa("0x90")],u=o.commentThread&&o.commentThread[Xa("0x90")];if(!l&&x(c,a))return t[Xa("0x128")](o,e),r[Xa("0x11d")](e),!0;if(!u&&x(a,c))return t._joinSuggestions(e,o),r.delete(o),!0}return!1}}[Xa("0x128")](t,e){if(t.isMultiRange)for(const n of e[Xa("0xef")]())t.addRange(n);else{const n=e[Xa("0x72")]()[Xa("0x59")];this._setSuggestionRange(t,this[Xa("0x87")].createRange(t[Xa("0x72")]()[Xa("0xfc")],n))}e[Xa("0x78")]()}}class Ja{constructor(t){this._editor=t,this[Xa("0x87")]=t.model,this._customCallbacks=new Map,this[Xa("0x8")]=new Map,this[Xa("0x15")]()}[Xa("0x37")](t,e,n,o,s,r){return new Zo(this[Xa("0x87")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Xa("0xbc")](t,e,Xa("0xc"))(...n),onDiscard:(...n)=>this[Xa("0xbc")](t,e,Xa("0x9e"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0x5")][Xa("0x105")](s,o)}[Xa("0xbc")](t,e,n){const o=t+":"+e+":"+n;return this[Xa("0x5")][Xa("0x4f")](o)||this._defaultCallbacks[Xa("0x4f")](t+":"+n)}[Xa("0x15")](){const t=()=>!1,e=t=>{t[Xa("0xae")](((t,e)=>t[Xa("0xfc")].isBefore(e.start)?1:-1)),this[Xa("0x87")][Xa("0x4d")]((e=>{for(const n of t){let t;t=n[Xa("0x59")].isAtEnd&&n.end[Xa("0x73")]==n[Xa("0xfc")].nodeAfter?e[Xa("0xe1")](n.start[Xa("0xdf")],"on"):e[Xa("0xe1")](n),this[Xa("0x87")][Xa("0x4b")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0x87")][Xa("0x4d")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Xa("0x48")]((t=>(Za(t)&&(t=this._model[Xa("0x42")](t[Xa("0x59")])),t)))[Xa("0xcb")]((t=>Xa("0x68")!==t[Xa("0x67")][Xa("0x6f")]));if(r.length<1)return;const x=Array[Xa("0x2b")](this[Xa("0x87")].document[Xa("0x41")][Xa("0xef")]())[Xa("0x48")]((t=>i.LiveRange[Xa("0x12e")](t)));n[Xa("0x76")](r);for(const t of this._editor[Xa("0x33")][Xa("0x33")]())t.refresh();s[Xa("0x7c")]({forceDefaultExecution:!0}),this[Xa("0x11e")][Xa("0x129")](o,...s);const a=x.filter((t=>Xa("0x68")!=t[Xa("0x67")].rootName));a[Xa("0x90")]>0&&n[Xa("0x76")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t.length&&1==e[Xa("0x90")]&&t[0][Xa("0x59")][Xa("0xf2")](e[0][Xa("0xfc")]),s=(t,e,n,o)=>oc(t,e,n,o,this._model)?[t,e]:oc(e,t,o,n,this[Xa("0x87")])?[e,t]:null;this[Xa("0x8")].set(Xa("0xf8"),t),this[Xa("0x8")].set(Xa("0x8e"),e),this._defaultCallbacks[Xa("0x105")](Xa("0xd2"),o),this._defaultCallbacks[Xa("0x105")](Xa("0xc8"),s),this[Xa("0x8")][Xa("0x105")]("deletion:accept",e),this[Xa("0x8")][Xa("0x105")](Xa("0x8d"),t),this._defaultCallbacks.set(Xa("0xe4"),o),this._defaultCallbacks[Xa("0x105")](Xa("0xc0"),s),this[Xa("0x8")][Xa("0x105")]("formatInline:accept",n),this[Xa("0x8")][Xa("0x105")]("formatInline:discard",t),this._defaultCallbacks[Xa("0x105")](Xa("0xb9"),o),this[Xa("0x8")].set(Xa("0x16"),t),this._defaultCallbacks[Xa("0x105")](Xa("0x10d"),n),this._defaultCallbacks[Xa("0x105")](Xa("0x9"),t),this[Xa("0x8")][Xa("0x105")](Xa("0x133"),o),this._defaultCallbacks[Xa("0x105")](Xa("0x23"),t)}}function Qa(t,e,n){for(const o of e[Xa("0x73")][Xa("0x5f")]({includeSelf:!0,parentFirst:!0})){if(o[Xa("0x67")]==o)return!1;if(!n[Xa("0x82")](o))return!1;if(t[Xa("0x8f")](o)||t[Xa("0xa3")](o))return!0}return!1}function Za(t){return t[Xa("0x59")].parent==t[Xa("0xfc")][Xa("0xdf")]&&t[Xa("0x59")][Xa("0xe9")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0xa7")].is(Xa("0xe8"))&&!o.isObject(t[Xa("0xa7")]),r=t[Xa("0xfc")][Xa("0x45")](s),i=t[Xa("0x59")][Xa("0x45")](s,{direction:Xa("0x84")});return!(t.start.isEqual(r)&&t.end[Xa("0xf2")](i)||(r[Xa("0x6")](i)?n.updateMarker(e,{range:n[Xa("0x42")](r,i)}):n[Xa("0x13e")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t[Xa("0xfc")][Xa("0xdf")];return e&&e.is(Xa("0x81"))}function nc(t,e){const n=e.schema[Xa("0x8f")](t)||e[Xa("0x6e")][Xa("0xaf")](t);return e[Xa("0x42")](e[Xa("0x26")](t,"before"),n?e[Xa("0x12")](t):e.createPositionAt(t,Xa("0x59")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n[Xa("0x59")][Xa("0xf2")](o[Xa("0xfc")]))return!0;if(t[Xa("0x4")]!=e[Xa("0x4")])return!1;if(!n.end[Xa("0xd6")](o[Xa("0xfc")]))return!1;const r=s[Xa("0x42")](n.end,o[Xa("0xfc")])[Xa("0xd7")]();for(const t of r)if([Xa("0x2"),Xa("0x4c")][Xa("0xd8")](t[Xa("0x4")])&&s[Xa("0x6e")][Xa("0xa3")](t[Xa("0xa7")]))return!1;return!0}function sc(t,e){return!(!t[Xa("0x13f")]||!e[Xa("0x13f")])&&Go(t[Xa("0x1b")],e[Xa("0x1b")])}function rc(t,e){const n=ic(t[Xa("0x1b")]),o=ic(e);if(!t[Xa("0x13f")])return!1;for(const t of Object[Xa("0x5d")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object.assign({},t);return delete e.skipNestingCheck,delete e[Xa("0x11a")],e}const xc=["listenTo","locale","add","_editor","remove","getRanges","isDirty","_discardCommand","view","_acceptCommand","_pendingAction","unbind","_removePendingAction","PendingActions","canEditAt","canAccept","destroy","change:isDirty","discardSuggestion","commands","acceptSuggestion","isEnabled","plugins","_setPendingAction","canDiscard","commentThreadController","get","PENDING_ACTION_SUGGESTION","model","bind"];var ac,cc;ac=xc,cc=379,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class uc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[lc("0x9")]=e,this[lc("0x13")]=n,this[lc("0x6")]=o,this[lc("0xe")]=t,this[lc("0x14")]=t[lc("0x0")][lc("0x7")](lc("0x1")),this[lc("0x12")]=t[lc("0x0")][lc("0x7")](lc("0x1d")),this[lc("0x13")].bind("isEnabled").to(this[lc("0x14")],this[lc("0x12")],((t,e)=>t||e)),this[lc("0x13")][lc("0xa")]("canAccept").to(this[lc("0x14")],lc("0x2"),(t=>t&&this[lc("0xe")].model[lc("0x19")](e[lc("0x10")]()))),this[lc("0x13")][lc("0xa")](lc("0x5")).to(this[lc("0x12")],lc("0x2"),(t=>t&&this[lc("0xe")][lc("0x9")][lc("0x19")](e[lc("0x10")]()))),this._pendingAction=null,n[lc("0x11")]&&this._setPendingAction(),this[lc("0xb")](n,"acceptSuggestion",(()=>this[lc("0x1")]())),this[lc("0xb")](n,lc("0x1d"),(()=>this[lc("0x1d")]())),this[lc("0xb")](n,lc("0x1c"),(()=>{n[lc("0x11")]?this[lc("0x4")]():this[lc("0x17")]()}))}[lc("0x1")](){this[lc("0x14")].execute(this[lc("0x9")].id)}discardSuggestion(){this[lc("0x12")].execute(this[lc("0x9")].id)}[lc("0x1b")](){this.view[lc("0x16")]("isEnabled"),this[lc("0x13")].unbind(lc("0x1a")),this[lc("0x13")][lc("0x16")](lc("0x5")),this.stopListening(),this[lc("0x6")][lc("0x1b")](),this[lc("0x15")]&&this[lc("0x17")]()}[lc("0x4")](){const t=Yo(this[lc("0xe")][lc("0xc")],lc("0x8"));this[lc("0x15")]=this._editor[lc("0x3")][lc("0x7")](lc("0x18"))[lc("0xd")](t)}[lc("0x17")](){null!==this[lc("0x15")]&&this[lc("0xe")].plugins[lc("0x7")](lc("0x18"))[lc("0xf")](this[lc("0x15")]),this._pendingAction=null}}const dc=["commentThread","_createCommentThreadInputView","removeComment","_createCommentViews","addComment","bind","_model","isEnabled","updateComment","locale","showInput","isReadOnly","canAccept","_localUser","delegate","commentThreadInputView","_config","commentInputView","value","submit","descriptionParts","assign","cancel","length","hasDirtyComment","element","isActive","focus","commentsListView","isDirty","set","destroy","authoredAt"];var gc,fc;gc=dc,fc=493,function(t){for(;--t;)gc.push(gc.shift())}(++fc);const mc=function(t,e){return dc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[mc("0x1e")]=null,this.commentThreadInputView=null,this[mc("0x20")](mc("0x1c"),!1),this[mc("0x20")](mc("0x1"),e[mc("0x1")]),this[mc("0x7")](mc("0x1")).to(e),this[mc("0x20")](mc("0x16"),[]),this[mc("0x20")](mc("0x1f"),!1),this.set(mc("0x9"),!1),this[mc("0x20")](mc("0xe"),!1),this[mc("0x20")]("canDiscard",!1),this._model=e,this._localUser=n,this[mc("0x12")]=o,o.disableComments?this[mc("0x20")](mc("0x19"),1):this._createCommentViews()}focus(){this[mc("0x1b")][mc("0x1d")]()}destroy(){this[mc("0x1e")]&&this.commentsListView[mc("0x0")](),this[mc("0x11")]&&this[mc("0x11")][mc("0x0")](),super[mc("0x0")]()}[mc("0x5")](){const{CommentsListView:t}=this[mc("0x12")];this[mc("0x1e")]=new t(this[mc("0xb")],this[mc("0x8")].commentThread,Object[mc("0x17")]({CommentView:this[mc("0x12")].CommentView},this._config)),this[mc("0x1e")][mc("0x10")](mc("0x4")).to(this),this[mc("0x1e")][mc("0x10")](mc("0xa")).to(this),this.commentsListView[mc("0x7")](mc("0x1c")).to(this),this[mc("0x20")]("length",this.commentsListView[mc("0x19")]+1),this[mc("0x7")](mc("0x19")).to(this.commentsListView,mc("0x19"),(t=>t+1)),this[mc("0x11")]=this[mc("0x3")](),this.on(mc("0x4"),(()=>this[mc("0x1d")]())),this[mc("0x7")]("isDirty").to(this[mc("0x1e")],mc("0x1a"),this[mc("0x11")][mc("0x13")],mc("0x14"),((t,e)=>t||!!e))}[mc("0x3")](){const{CommentThreadInputView:t}=this[mc("0x12")],e=new t(this[mc("0xb")],this[mc("0xf")],this[mc("0x12")].editorConfig),n=e.commentInputView;return e[mc("0x7")](mc("0xc")).to(this,mc("0x1c"),this[mc("0x8")].commentThread,mc("0xd"),n,mc("0x14"),((t,e,n)=>!!n||t&&!e)),n.on(mc("0x15"),((t,e)=>{this.fire(mc("0x6"),e),n.editor.setData("")})),n.on(mc("0x18"),(()=>this.focus())),n[mc("0x7")]("disabledSubmit").to(this._model[mc("0x2")],mc("0xd")),e}}const pc=["createElement","split","ck-comment__external","ck-annotation__main","Accept suggestion","ck-suggestion__actions","EXTERNAL_SUGGESTION","ck-annotation","render","ck-suggestion__info","_config","<p>","authoredAt","formatDateTime","setTemplate","ck-comment__info-time","ck-suggestion-","ck-suggestion--accept","canDiscard","ck-annotation__actions","name","canAccept","title","commentsListView","innerText","attributes","acceptButton","discardButton","time","bindTemplate","extendTemplate","ck-suggestion-wrapper--active","isActive","querySelector","ck-suggestion__user","disableComments","editorReady","editorDestroyed","importWord","commentThreadInputView","author",'"></span>',"_descriptionElement","description","discardSuggestion","change:description","</p>","ck-suggestion-wrapper","innerHTML","_createButton","content","source","creator","delegate","ck-suggestion__main","userView","isEnabled","check","map","getTemplate","type","descriptionParts",'<span class="ck-suggestion-type">',"span","div","EXTERNAL_IMPORT_WORD_AVATAR",'" title="',"element","ck-annotation__user","@external","getExternalSuggestionNote","bind","isExternal","ck-annotation__info","cancel","join","EXTERNAL_AVATAR","</span>","_model","push","locale",".ck-annotation__content-wrapper","set","ck-annotation__content-wrapper"];var bc,Ec;bc=pc,Ec=321,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("0xd")](_c("0x4b"),""),this[_c("0x2")](_c("0x4b")).to(this,_c("0x4c"),(t=>t&&t[0]?t[0][_c("0x4b")]:"")),this[_c("0x2")](_c("0x3a")).to(this,_c("0x4c"),this,_c("0x2f"),((t,e)=>{let n="";for(const e of t)n+=_c("0x1a")+Cc(e[_c("0x41")],e.color)+_c("0x3d");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[_c("0x29")]=this[_c("0x40")](Yo(e,_c("0x13")),t.icons[_c("0x48")],_c("0x20"),"acceptSuggestion","sw"),this[_c("0x29")].bind(_c("0x47")).to(this,_c("0x24")),this[_c("0x2a")]=this[_c("0x40")](Yo(e,"Discard suggestion"),t.icons[_c("0x5")],"ck-suggestion--discard",_c("0x3b"),"sw"),this[_c("0x2a")][_c("0x2")](_c("0x47")).to(this,_c("0x21")),this[_c("0x46")]=new r.UserView(e,this[_c("0x9")][_c("0x37")],this.getUserViewNotificationText()),this[_c("0x46")][_c("0x2d")]({attributes:{class:[_c("0x31"),_c("0x53")]}}),this[_c("0x1d")](this[_c("0x4a")]())}[_c("0x4a")](){const t=this[_c("0x2c")],e=[{tag:"div",attributes:{class:[_c("0x18"),_c("0x4")]},children:[{tag:_c("0x4e"),children:[{text:this.userView[_c("0x23")]}],attributes:{class:["ck-suggestion__info-name","ck-annotation__info-name"]}},{tag:_c("0x2b"),attributes:{datetime:t.to(_c("0x1b")),class:[_c("0x1e"),"ck-annotation__info-time"]},children:[{text:t.to(_c("0x1b"),(t=>this[_c("0x19")][_c("0x1c")](t)))}]}]},{tag:_c("0x4f"),attributes:{class:[_c("0x14"),_c("0x22")]},children:[this[_c("0x29")],this[_c("0x2a")]]},{tag:_c("0x4f"),attributes:{class:[_c("0xe")]}}];this[_c("0x9")][_c("0x3")]&&e[_c("0xa")]({tag:_c("0x4f"),attributes:{class:[_c("0x11")]},children:[{text:this[_c("0x1")]()}]});const n={tag:_c("0x4f"),attributes:{class:[_c("0x3e"),t.if("isActive",_c("0x2e")),t.to(_c("0x4b"),(t=>_c("0x1f")+t)),this._config[_c("0x32")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[_c("0x9")].id,"data-thread-id":this[_c("0x9")].commentThread.id,"data-author-id":this._model.author.id,tabindex:-1},children:[{tag:_c("0x4f"),attributes:{class:["ck-suggestion",_c("0x16")]},children:[this.userView,{tag:"div",attributes:{class:[_c("0x45"),_c("0x12")]},children:e}]}]};return this[_c("0x26")]&&this[_c("0x36")]&&(n.children[_c("0xa")](this[_c("0x26")],this.commentThreadInputView),this[_c("0x26")][_c("0x44")](_c("0x33")).to(this),this[_c("0x26")].delegate(_c("0x34")).to(this),this[_c("0x36")].delegate(_c("0x33")).to(this),this.commentThreadInputView[_c("0x44")](_c("0x34")).to(this)),n}render(){super[_c("0x17")](),this[_c("0x39")]=this[_c("0x52")][_c("0x30")](_c("0xc")),this[_c("0x39")][_c("0x3f")]=this[_c("0x3a")],this.on(_c("0x3c"),((t,e,n)=>{this[_c("0x39")][_c("0x3f")]=n}))}[_c("0x40")](t,e,n,o,r){const i=new s.ButtonView(this[_c("0xb")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x2d")]({attributes:{class:n}}),i.on("execute",(()=>{this.fire(o,this[_c("0x9")].id)})),i}getExternalSuggestionNote(){return"importWord"===this[_c("0x9")][_c("0x28")][_c("0x0")][_c("0x42")]?Yo(this[_c("0xb")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[_c("0xb")],_c("0x15"))}getUserViewNotificationText(){return this[_c("0x9")][_c("0x3")]?_c("0x35")===this._model[_c("0x28")][_c("0x0")][_c("0x42")]?Yo(this[_c("0xb")],_c("0x50"),this[_c("0x9")][_c("0x43")][_c("0x23")]):Yo(this[_c("0xb")],_c("0x7"),this[_c("0x9")].creator[_c("0x23")]):null}}function Cc(t,e){let n="";return n+=t[_c("0x10")]("*")[_c("0x49")](((t,e)=>e%2!=0?_c("0x4d")+yc(t)+_c("0x8"):yc(t)))[_c("0x6")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e.value+_c("0x51")+e[_c("0x25")]+_c("0x38")),n}function yc(t){const e=document[_c("0xf")](_c("0x4e"));return e[_c("0x27")]=t,e[_c("0x3f")]}const kc=["change:activeAnnotations","acceptSelectedSuggestions","getSuggestion","trackChanges.SuggestionThreadView","_destroyController","filter","suggestionLoaded","get","view","createAnnotationView","getDescriptions","editor","from","source","_disableComments","actionView","activeMarkers","push","innerView","EditorAnnotations","define","acceptButton","isEnabled","Annotations","switchbutton","plugins","listenTo","discardSelectedSuggestions","editing","_annotationViews","trackChanges","discardAllSuggestions","head","bind","getRanges","delete","add","mainView","getAllAdjacentSuggestions","type","pluginName","init","CommentsRepository","suggestion-","hasSuggestion","stopListening","execute","_updateController","SuggestionThreadView","value","locale","config","Accept all selected suggestions","model","_handleSuggestionControllerDelayed","commentThread","isOn","change:previous","trackChanges.disableComments","set","buttonView","TrackChangesEditing","some","createCommentThreadController","registerAnnotation","toMany","length","comments.maxCommentsWhenCollapsed","CommentView","_descriptionFactory","size","Accept all suggestions","separator","_viewToController","getFirstRange","commands","refreshSelectedViews","_refreshActiveMarkers","clear","getMarkerNames","_suggestionToController","_initializeController","focus","unbind","commandName","CommentsUI","has","suggestionChanged","lowest","button","discardButton","arrowView","_bindAnnotationToEditors","isInContent","_handleControllerBuffer","previous","values","map","keys","_unbindEditors","isMultiRange","isDirty","addComment","descriptionParts","suggestionUnloaded","activeAnnotations","Discard all selected suggestions","destroy"];var Ac,vc;Ac=kc,vc=310,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 requires(){return[$a,r.Users,Rc("0x38"),"Annotations","EditorAnnotations"]}static get[Rc("0x36")](){return"TrackChangesUI"}constructor(t){super(t),this[Rc("0x5e")]=new Map,this._viewToController=new Map,this[Rc("0x2b")]=new Map,this[Rc("0x0")]=new Map;const e=this[Rc("0x19")].config;e[Rc("0x22")](Rc("0x11"),Tc),e[Rc("0x22")](Rc("0x48"),!1),this[Rc("0x1c")]=e.get(Rc("0x48"))}_handleSuggestionControllerDelayed(t,e){0===this._handleControllerBuffer[Rc("0x54")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Rc("0x5e")][Rc("0x64")](t);n||e?n&&e&&this[Rc("0x12")](t):this[Rc("0x5f")](t)}this[Rc("0x19")][Rc("0x27")][Rc("0x15")]("EditorAnnotations")[Rc("0x5a")](),this[Rc("0x5b")](),this[Rc("0x0")][Rc("0x5c")]()}),10),this._handleControllerBuffer[Rc("0x49")](t,e)}[Rc("0x37")](){const t=this[Rc("0x19")],e=t[Rc("0x27")][Rc("0x15")](Rc("0x4b")),n=t[Rc("0x27")][Rc("0x15")]("Annotations"),o=t[Rc("0x27")].get(Rc("0x21")),s=t.plugins[Rc("0x15")]("CommentsRepository");t.ui.componentFactory.add(Rc("0x2c"),(t=>this._createUIButton(t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array.from(this[Rc("0x5e")])){const o=e[Rc("0x34")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Rc("0x6")]){s[Rc("0x1f")](...t[Rc("0x30")]());continue}const e=t[Rc("0x58")]();if(s[Rc("0x50")]>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s[Rc("0x1f")](e)}t[Rc("0x1f")]([n[Rc("0x16")],s])}return t})),this[Rc("0x28")](e,Rc("0x14"),((t,e)=>{this[Rc("0x28")](e,Rc("0x47"),((t,n,o,s)=>{e.isInContent&&(null==o?(this._updateController(s.head),this[Rc("0x44")](e,!1)):(this._updateController(o[Rc("0x2e")]),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Rc("0x1")]?this[Rc("0x44")](e,!1):this[Rc("0x3d")](e.head)})),this.listenTo(e,Rc("0xa"),((t,e,n)=>{this[Rc("0x3b")](e,"change:previous"),this[Rc("0x0")][Rc("0x31")](e);const o=n?n[Rc("0x2e")]:e,s=this[Rc("0x5e")][Rc("0x15")](o);null!==n&&this[Rc("0x3d")](o),null===n&&s&&this[Rc("0x12")](e)})),this[Rc("0x28")](e,Rc("0x65"),((t,e)=>{this[Rc("0x3d")](e)})),this[Rc("0x28")](n,Rc("0xe"),(()=>{this[Rc("0x5b")]()})),this[Rc("0x28")](s,Rc("0x8"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x3a")](n))return;const s=e[Rc("0x10")](n);this[Rc("0x5e")][Rc("0x15")](s).view[Rc("0x60")]()}),{priority:Rc("0x66")})}[Rc("0x5b")](){const t=this[Rc("0x19")][Rc("0x27")][Rc("0x15")](Rc("0x25")),e=this.editor.plugins.get(Rc("0x4b")),n=Array[Rc("0x1a")](t[Rc("0xb")],(t=>t[Rc("0x20")]))[Rc("0x13")]((t=>this[Rc("0x57")][Rc("0x64")](t))),o=[];for(const t of n){const e=this[Rc("0x57")][Rc("0x15")](t)[Rc("0x43")][Rc("0x34")]();o.push(...e.reduce(((t,e)=>[...t,...e[Rc("0x5d")]()]),[]))}e[Rc("0x1e")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x19")][Rc("0x59")][Rc("0x15")](Rc("0x2c")),r=Yo(t,"Track changes");n[Rc("0x4a")][Rc("0x49")]({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("0x4a")][Rc("0x2f")](Rc("0x46")).to(o,Rc("0x3f")),n[Rc("0x4a")].on(Rc("0x3c"),(()=>{o[Rc("0x3c")](),this.editor.editing.view.focus()}));const i=new e.Collection,x=[{type:Rc("0x26"),model:{withText:!0,label:r,commandName:Rc("0x2c")}},{type:Rc("0x56")},{type:Rc("0x67"),model:{withText:!0,label:Yo(t,Rc("0x55")),commandName:"acceptAllSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x42")),commandName:Rc("0xf")}},{type:"button",model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:Rc("0x2d")}},{type:Rc("0x67"),model:{withText:!0,label:Yo(t,Rc("0xc")),commandName:Rc("0x29")}}];for(const t of x){let e={type:Rc("0x56")};if(t[Rc("0x43")]){const n=new s.Model(t[Rc("0x43")]),o=this[Rc("0x19")][Rc("0x59")][Rc("0x15")](n[Rc("0x62")]);n[Rc("0x2f")](Rc("0x46"),Rc("0x24")).to(o,Rc("0x3f"),Rc("0x24")),e={type:t[Rc("0x35")],model:n}}i[Rc("0x32")](e)}(0,s.addListToDropdown)(n,i);const a=x[Rc("0x13")]((t=>null!=t[Rc("0x43")]))[Rc("0x3")]((t=>this[Rc("0x19")][Rc("0x59")][Rc("0x15")](t.model[Rc("0x62")]))),c=n.buttonView;return c[Rc("0x1d")][Rc("0x61")](Rc("0x24")),c[Rc("0x69")][Rc("0x61")](Rc("0x24")),c[Rc("0x1d")][Rc("0x2f")]("isEnabled").to(o,Rc("0x24")),c[Rc("0x69")][Rc("0x2f")](Rc("0x24"))[Rc("0x4f")](a,"isEnabled",((...t)=>t[Rc("0x4c")]((t=>t)))),n.on(Rc("0x3c"),(t=>{this.editor[Rc("0x3c")](t[Rc("0x1b")][Rc("0x62")]),this[Rc("0x19")][Rc("0x2a")].view[Rc("0x60")]()})),n}[Rc("0x5f")](t){const e=this[Rc("0x19")],n=e[Rc("0x41")],o=e.plugins[Rc("0x15")](Rc("0x25")),s=e.plugins.get(Rc("0x38")),i=e.plugins[Rc("0x15")](Rc("0x21")),x=e[Rc("0x27")][Rc("0x15")](r.Users).me,a=n.get("trackChanges")[Rc("0x3e")],{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x27")].get(Rc("0x63"));let u,d;this[Rc("0x2b")][Rc("0x64")](t.id)?(d=this[Rc("0x2b")].get(t.id),u=d.mainView):(u=new a(e[Rc("0x40")],t,x,{disableComments:this[Rc("0x1c")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n.get(Rc("0x51")),maxThreadTotalWeight:n[Rc("0x15")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Rc("0x15")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Rc("0x15")](Rc("0x40"))),CommentView:n[Rc("0x15")]("comments")[Rc("0x52")],CommentsListView:c,CommentThreadInputView:l}),u[Rc("0x23")].on(Rc("0x3c"),(()=>{e.editing[Rc("0x16")][Rc("0x60")]()})),u[Rc("0x68")].on(Rc("0x3c"),(()=>{e[Rc("0x2a")][Rc("0x16")].focus()})),d=o[Rc("0x17")](this.editor[Rc("0x40")],u),d[Rc("0x2f")]("isDirty").to(u,Rc("0x7")),d[Rc("0x2f")](Rc("0x50")).to(u),d[Rc("0x2f")](Rc("0x35")).to(u,Rc("0x35"),(t=>"suggestion-"+t)),this[Rc("0x2b")].set(t.id,d));const g=s[Rc("0x4d")](t[Rc("0x45")],u),f=new uc(e,t,u,g),m=t.getAllAdjacentSuggestions()[Rc("0x13")]((t=>t[Rc("0x6b")]));u[Rc("0x9")]=e[Rc("0x27")][Rc("0x15")](Rc("0x4b"))[Rc("0x53")][Rc("0x18")](m),this[Rc("0x5e")][Rc("0x49")](t,f),this[Rc("0x57")][Rc("0x49")](u,f);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t[Rc("0x34")]()[Rc("0x13")]((t=>t[Rc("0x6b")]));for(const t of o)n.push(...t.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(e[Rc("0x2a")],n)},type:()=>Rc("0x39")+f[Rc("0x16")][Rc("0x35")]});s[Rc("0x6a")](u,h),o.add(h),i[Rc("0x4e")](h)}_destroyController(t){const e=this[Rc("0x19")][Rc("0x27")][Rc("0x15")](Rc("0x38")),n=this[Rc("0x19")][Rc("0x27")].get(Rc("0x25")),o=this[Rc("0x5e")][Rc("0x15")](t),s=o[Rc("0x16")],r=n.getByInnerView(s);e[Rc("0x5")](s),r&&n.remove(r),this[Rc("0x5e")][Rc("0x31")](t),this[Rc("0x57")][Rc("0x31")](s),o[Rc("0xd")]()}[Rc("0x3d")](t){if(!t.isInContent||!this[Rc("0x5e")][Rc("0x64")](t))return;const e=this[Rc("0x19")].plugins[Rc("0x15")]("TrackChangesEditing"),n=this[Rc("0x5e")][Rc("0x15")](t),o=t[Rc("0x34")]();n[Rc("0x16")][Rc("0x9")]=e[Rc("0x53")][Rc("0x18")](o)}[Rc("0xd")](){for(const t of this[Rc("0x5e")][Rc("0x4")]())this._destroyController(t);for(const t of this[Rc("0x2b")][Rc("0x2")]())t[Rc("0x33")].destroy();super[Rc("0xd")]()}}var Sc,Lc,Nc=["editor","getSuggestions","Comments","pluginName","getSuggestion","adapter","plugins","requires","addSuggestionData","TrackChanges","get"];Sc=Nc,Lc=351,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("0x8")](){return[$a,Ic,wc("0x3")]}static get[wc("0x4")](){return wc("0xa")}set[wc("0x6")](t){this[wc("0x1")].plugins[wc("0x0")]($a)[wc("0x6")]=t}get adapter(){return this[wc("0x1")][wc("0x7")][wc("0x0")]($a).adapter}addSuggestion(t){return this.editor.plugins[wc("0x0")]($a)[wc("0x9")](t)}[wc("0x2")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[wc("0x1")][wc("0x7")].get($a)[wc("0x2")]({skipNotAttached:t,toJSON:e})}[wc("0x5")](t){return this[wc("0x1")][wc("0x7")][wc("0x0")]($a)[wc("0x5")](t)}}const Oc=["rootsAttributes","Users","plugins","editor","users","constructor","trackChangesData","set","getUser","addUser","TrackChangesEditing","acceptAllSuggestions","editorCreator","data","discardAllSuggestions","track-changes-data-invalid-editor-creator","addSuggestionData","createDocumentFragment","create","requires","getSuggestions","Pagination","pluginName","model","get","reduce","getRootNames","_adapter","div","getDataWithAcceptedSuggestions","trackChangesData.editorCreator","getRootsAttributes","CommentsRepository","appendChild","define","config"];var Fc,Pc;Fc=Oc,Pc=129,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x0")];class jc extends t.Plugin{static get[Dc("0x22")](){return[$a]}static get pluginName(){return"TrackChangesData"}init(){const t=this[Dc("0x12")];if(t[Dc("0xe")][Dc("0xd")](Dc("0x9"),(e=>{const n=t[Dc("0x2")].document[Dc("0x5")]()[Dc("0x4")](((t,e)=>(t[e]="",t)),{});return t[Dc("0x14")][Dc("0x21")](n,e)})),"function"!=typeof t[Dc("0xe")][Dc("0x3")](Dc("0x15"))[Dc("0x1b")])throw new e.CKEditorError(Dc("0x1e"))}[Dc("0x8")](t){return Hc(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return Hc(this[Dc("0x12")],!1,t)}}class Uc extends t.Plugin{static get[Dc("0x1")](){return"TrackChangesDataGetter"}constructor(t){super(t),this.result="end"}init(){this[Dc("0x12")].plugins.get(Dc("0xb"))[Dc("0x6")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[Dc("0x11")].get(Dc("0x19"))[Dc("0x6")]=null}}function Gc(t){return void 0!==t[Dc("0xa")]}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o[Dc("0x11")].push($a,Uc),o[Dc("0xf")]=Gc(t)?t[Dc("0xa")]():void 0;const s=document[Dc("0x20")](),i=t.config[Dc("0x3")](Dc("0x15"))[Dc("0x1b")],x=await i(o,(()=>function(t){const e=document.createElement(Dc("0x7"));return t[Dc("0xc")](e),e}(s)));!function(t,e){const n=t[Dc("0x2")].document[Dc("0x5")]()[Dc("0x4")](((e,n)=>(e[n]=t[Dc("0x1c")][Dc("0x3")]({rootName:n}),e)),{}),o=t[Dc("0x11")][Dc("0x3")](Dc("0x10"))[Dc("0x13")].map((t=>({id:t.id,name:t.name}))),s=t[Dc("0x11")].get(Dc("0x19"))[Dc("0x23")]({skipNotAttached:!0,toJSON:!0}),r=e[Dc("0x11")].get(Dc("0x10")),i=e[Dc("0x11")][Dc("0x3")](Dc("0x19"));for(const t of o)r[Dc("0x17")](t.id)||r[Dc("0x18")](t);r.me||r.useAnonymousUser();for(const t of s)i[Dc("0x1f")](t);e.data[Dc("0x16")](n)}(t,x),x.execute(Dc(e?"0x1a":"0x1d"));const a=Gc(x)?x.getFullData(n):x.data[Dc("0x3")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();