@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230726.0 → 0.0.0-nightly-20230727.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 (64) 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/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["editor","refresh","has","commands","forceDisabled","_isEnabledBasedOnSelection","_enabledCommands","execute","value","TrackChangesCommand","affectsData","_enableCommands","_disableUnsupportedCommands"];var c,l;c=a,l=341,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0x3")]=e,this[d("0x5")]=!1,this[d("0xb")](),this[d("0x2")]=!1}[d("0xb")](){this.isEnabled=!0}[d("0x4")](){this[d("0x5")]=!this[d("0x5")],this[d("0x5")]?this[d("0x9")]():this[d("0x8")]()}_disableUnsupportedCommands(){for(const t of this[d("0xa")][d("0x0")][d("0x0")]())t[d("0x7")]&&!this._enabledCommands[d("0xc")](t)&&t[d("0x1")](d("0x6"))}[d("0x8")](){for(const t of this[d("0xa")][d("0x0")][d("0x0")]())t[d("0x7")]&&!this[d("0x3")][d("0xc")](t)&&t.clearForceDisabled("TrackChangesCommand")}}const g=["canEditAt","track-changes-accept-suggestion-not-found","TrackChangesEditing","_suggestions","editor","refresh","isEnabled","plugins","model"];var m,f;m=g,f=306,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x3")]=e,this[h("0x5")](),this._isEnabledBasedOnSelection=!1}[h("0x5")](){this[h("0x6")]=!0}execute(t){const n=this[h("0x3")].get(t);if(!n)throw new e.CKEditorError(h("0x1"),this);const o=n.getRanges();this[h("0x4")][h("0x8")][h("0x0")](o)&&this[h("0x4")][h("0x7")].get(h("0x2")).acceptSuggestion(n)}}const b=["_suggestions","TrackChangesEditing","isEnabled","plugins","discardSuggestion","editor","track-changes-discard-suggestion-not-found","get","execute","_isEnabledBasedOnSelection","refresh","getRanges"];var E,_;E=b,_=312,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x0")]=e,this[T("0xa")](),this[T("0x9")]=!1}refresh(){this[T("0x2")]=!0}[T("0x8")](t){const n=this[T("0x0")][T("0x7")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const o=n[T("0xb")]();this[T("0x5")].model.canEditAt(o)&&this[T("0x5")][T("0x3")][T("0x7")](T("0x1"))[T("0x4")](n)}}const y=["color","length","isMultiRange","from","push","end","createPositionAfter","join","sort","getRange","isTouching","next","change","replace","isCollapsed","deletion","splice","type","start","execute","content","createPositionAt","value","getRanges","map","isInContent","isArray","createPositionBefore","isObject","createRange","add"];var k,A;k=y,A=453,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x14")](((t,e)=>v("0x1b")==t[v("0x1d")]&&"deletion"!=e.type?-1:v("0x1b")!=t[v("0x1d")]&&v("0x1b")==e.type?1:0))}function S(t,e){let n,o=0;const s=[],r=e.schema;for(;o<t[v("0xd")];){const i=t[o],x=t[o+1];n||(n=e[v("0x8")](i)),I(e,i,x)||(s[v("0x10")](e[v("0xa")](n,r[v("0x9")](i)?e[v("0x12")](i):e[v("0x2")](i,v("0x11")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x12")](e),s=t[v("0x8")](n);return o[v("0x16")](s)}function L(t,e,n){for(;n[v("0xd")];){const o=n[v("0x1c")](0,100);t[v("0x18")]((()=>{for(const t of o)t[v("0x6")]&&e[v("0x0")](t.id)}))}}const N=["_command","from","isInContent","isEnabled","editor","model","canEditAt","getRanges","values","some","_isEnabledBasedOnSelection","_suggestions","refresh"];var M,w;M=N,w=105,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xc")]=e,this[O("0xa")]=n,this[O("0xb")](),this[O("0x9")]=!1}[O("0xb")](){const t=Array[O("0x0")](this[O("0xa")][O("0x7")]())[O("0x8")]((t=>t[O("0x1")]));this[O("0x2")]=this._command[O("0x2")]&&t}execute(){const t=R(Array[O("0x0")](this._suggestions[O("0x7")]()));for(const e of t){const t=e[O("0x6")]();if(!this.editor[O("0x4")][O("0x5")](t))return}L(this[O("0x3")].model,this[O("0xc")],t)}}const P=["_selectedSuggestions","_suggestions","model","isEnabled","getRanges","execute","editor","from","_command","values","canEditAt","selection","refresh"];var D,B;D=P,B=369,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("0x9")]=n,this[j("0x8")]=new Set,this[j("0x7")](),this._isEnabledBasedOnSelection=!1}[j("0x7")](){const t=this[j("0x1")][j("0xa")].document[j("0x6")],e=Array[j("0x2")](this[j("0x9")][j("0x4")]());this[j("0x8")]=function(t,e){const n=Array[v("0xf")](t[v("0x4")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s.getMarkers()){const r=n[v("0x15")]();(e.isIntersecting(r)||t[v("0x1a")]&&!s[v("0xe")]&&s[v("0x17")]&&r.end[v("0x16")](e[v("0x1e")]))&&o[v("0xb")](s)}return o}(t,e),this[j("0xb")]=this._command[j("0xb")]&&!!this[j("0x8")].size}[j("0x0")](){const t=R(Array[j("0x2")](this[j("0x8")]));for(const e of t){const t=e[j("0xc")]();if(!this[j("0x1")][j("0xa")][j("0x5")](t))return}L(this.editor.model,this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const $=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}X.prototype.clear=G,X.prototype.delete=V,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const J=X;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const $t=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function Xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Xt.prototype.clear=Ht,Xt.prototype.delete=Vt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Jt=Xt;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?ot.Buffer:void 0,Je=Xe?Xe.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var $n=Se&&Se.isSet;const Xn=$n?ke($n):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),Xn(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},$o=["previous","markers","end","removeAttribute","_model","getContainedElement","onAccept","_onAccept","change","onDiscard","addMarker","authoredAt","hasComments","addRange","delete","type","getFirstRange","_saved","onAttributesChange","push","createdAt","set","map","decorate","start","from","commentThread","subType","_markerNames","getMarkerNames","_onAttributesChange","getMultiRangeId","isInContent","data","head","addMarkerName","nodeBefore","author","attributes","discard","_onDiscard","substr","split","next","removeMarkers","getRange","getRanges","isExternal","getAllAdjacentSuggestions","isMultiRange","removeMarker","creator","accept","add","getMarkers","length","getItems","getFirstMarker","nodeAfter","isIntersecting","setAttribute","toJSON","reduce","get"];var Xo,Jo;Xo=$o,Jo=497,function(t){for(;--t;)Xo.push(Xo.shift())}(++Jo);const Qo=function(t,e){return $o[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x1e")]=e.type,this[Qo("0x2a")]=e[Qo("0x2a")]||null,this[Qo("0x34")]=e[Qo("0x34")],this[Qo("0x2")]=e[Qo("0x2")]||e.author,this[Qo("0x3e")]=Boolean(e[Qo("0x35")]&&e[Qo("0x35")]["@external"]),this.data=null,this[Qo("0x13")]=t,this[Qo("0x16")]=e[Qo("0x15")],this[Qo("0x37")]=e[Qo("0x18")],this[Qo("0x2d")]=e[Qo("0x21")],this[Qo("0x2b")]=new Set,this[Qo("0x23")]=null,this[Qo("0x24")](Qo("0x1a"),null),this[Qo("0x24")](Qo("0x35"),e.attributes||{}),this[Qo("0x24")]("previous",null),this.set(Qo("0x3a"),null),this[Qo("0x24")](Qo("0x29"),null),this.set(Qo("0x20"),!1),this[Qo("0x26")](Qo("0x3")),this[Qo("0x26")]("discard")}get[Qo("0x31")](){let t=this;for(;t.previous;)t=t[Qo("0xf")];return t}get[Qo("0x1b")](){return!!this[Qo("0x29")]&&this[Qo("0x29")][Qo("0x6")]>0}get[Qo("0x0")](){return 0!=this._markerNames.size&&6==Array.from(this[Qo("0x2b")])[0][Qo("0x39")](":")[Qo("0x6")]}get[Qo("0x2f")](){return null!==this[Qo("0x8")]()}addMarkerName(t){this[Qo("0x2b")][Qo("0x4")](t)}[Qo("0x2c")](){return Array[Qo("0x28")](this[Qo("0x2b")])}getMarkers(){return this[Qo("0x2c")]()[Qo("0x25")]((t=>this[Qo("0x13")][Qo("0x10")][Qo("0xe")](t))).filter((t=>t))}[Qo("0x8")](){return this[Qo("0x5")]()[0]||null}[Qo("0x3b")](){this[Qo("0x13")][Qo("0x17")]((t=>{for(const e of this[Qo("0x5")]())t.removeMarker(e)})),this[Qo("0x2b")].clear()}[Qo("0x1")](t){this[Qo("0x13")][Qo("0x17")]((e=>{e[Qo("0x1")](t)})),this[Qo("0x2b")][Qo("0x1d")](t)}[Qo("0x1c")](t){const e="suggestion:"+this[Qo("0x1e")]+":"+this[Qo("0x2a")]+":"+this.id+":"+this[Qo("0x2")].id+":"+Zo[Qo("0x2e")]();this[Qo("0x32")](e),this._model[Qo("0x17")]((n=>{n[Qo("0x19")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x3d")]())if(e[Qo("0xa")](t))return!0;return!1}[Qo("0x3d")](){return this.getMarkers()[Qo("0x25")]((t=>t[Qo("0x3c")]()))}[Qo("0x7")](){return this[Qo("0x3d")]()[Qo("0xd")](((t,e)=>[...t,...e[Qo("0x7")]()]),[])}[Qo("0x1f")](){var t;return(null===(t=this[Qo("0x8")]())||void 0===t?void 0:t[Qo("0x3c")]())||null}[Qo("0x14")](){const t=this.getRanges();if(1!=t[Qo("0x6")])return null;const e=t[0],n=e[Qo("0x27")][Qo("0x9")],o=e[Qo("0x11")][Qo("0x33")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x3")](){this[Qo("0x16")](this[Qo("0x3d")](),this.data,this.attributes),this.removeMarkers()}[Qo("0x36")](){this[Qo("0x37")](this[Qo("0x3d")](),this[Qo("0x30")],this[Qo("0x35")]),this[Qo("0x3b")]()}[Qo("0x3f")](){const t=[];let e=this[Qo("0x31")];for(;e;)t[Qo("0x22")](e),e=e[Qo("0x3a")];return t}[Qo("0xb")](t,e){const n=eo(this[Qo("0x35")]);_o(n,t,e),Go(n,this[Qo("0x35")])||(this.attributes=n,this._onAttributesChange(n))}[Qo("0x12")](t){const e=eo(this[Qo("0x35")]);qo(e,t),Go(e,this[Qo("0x35")])||(this[Qo("0x35")]=e,this._onAttributesChange(this[Qo("0x35")]))}[Qo("0xc")](){return{id:this.id,type:this[Qo("0x2a")]?this[Qo("0x1e")]+":"+this[Qo("0x2a")]:this[Qo("0x1e")],authorId:this[Qo("0x2")].id,createdAt:this[Qo("0x23")],hasComments:this[Qo("0x1b")],data:this[Qo("0x30")],attributes:this.attributes}}static[Qo("0x2e")](){return(0,e.uid)()[Qo("0x38")](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=["*Remove:* %0","*Insert:* %0","getItemLabel","skip","_itemLabels","set","removeObject","nextSibling","name","checkChild","indexOf","normal","elementStart","_customCallbacks","_itemLabelsCallbacks","registerDescriptionCallback","insertion","text","addEmptyContainer","isInContent","push","*Split:* %0","removeEmptyContainer","getWalker","length","end","softBreak","isObject","$1 $2","get","function","remove","getFirstRange","Container","getDescriptions","registerElementLabel","add","match","pop","matchingCallback","_schema","elementEnd","data","$textProxy","deletion","_addDescriptionItems","_resolveDescriptionItems","addObject","start","previousSibling","type","isEmpty","isEqual","quantity","EmptyContainer","replace","removeContainer","Object","element","addContainer","item","ELEMENT_SPACE"];var es,ns;es=ts,ns=302,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x15")]=[],this[os("0xc")]=new Map,this[os("0x16")]=[],this[os("0x30")]=t,this._locale=e}[os("0x2a")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x1b")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x3a")in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x28")]()[os("0x21")][os("0x3c")](s[os("0x28")]()[os("0x38")])){const t=e[e[os("0x20")]-1],n="insertion"==o.type?"add":"remove";t&&os("0x19")==t[os("0x3a")]&&(t[n]+="\n")}}}return this[os("0x36")](e)}[os("0x17")](t){this[os("0x15")].push(t)}[os("0x2b")](t,n,o=e.priorities[os("0x13")]){os("0x26")==typeof t?(0,e.insertToPriorityArray)(this[os("0x16")],{matchingCallback:t,label:n,priority:o}):this[os("0xc")][os("0xd")](t,n)}[os("0xa")](t,e=1){let n;for(const e of this[os("0x16")])if(e[os("0x2f")](t)){n=e.label;break}return n||(n=this[os("0xc")][os("0x25")](t[os("0x10")])),n?n(e):1!==e?e+" "+t[os("0x10")]+"s":""+t[os("0x10")]}[os("0x35")](t,e){const n=e[os("0x28")]()[os("0x1f")](),o=os("0x18")==e[os("0x3a")]?os("0x2c"):"remove";for(const e of n){const s=e[os("0x6")],r=t[t.length-1];if(s.is(os("0x33")))r&&r[os("0x3a")][os("0x12")](os("0x29"))>-1&&t[os("0x2e")](),r&&os("0x19")==r[os("0x3a")]?r[o]+=s[os("0x32")]:t.push({type:os("0x19"),add:os("0x2c")==o?s.data:"",remove:os("0x27")==o?s[os("0x32")]:""});else if(this[os("0x30")][os("0x23")](s)){const i=s;if(r&&r[os("0x3a")][os("0x12")](os("0x29"))>-1&&t[os("0x2e")](),os("0x31")==e[os("0x3a")])continue;r&&r.type==o+os("0x3")&&r[os("0x4")].name==i[os("0x10")]?r[os("0x3d")]++:t[os("0x1c")]({type:o+os("0x3"),element:i,quantity:1}),n[os("0xb")]((t=>!(os("0x31")==t[os("0x3a")]&&t[os("0x6")]==s)))}else if(this[os("0x30")][os("0x11")](s,"$text")||s.is("element",os("0x22"))){const n=s;if(os("0x2c")==o&&os("0x14")==e[os("0x3a")]||"remove"==o&&"elementEnd"==e[os("0x3a")])continue;if(r&&-1==r[os("0x3a")][os("0x12")](os("0x29"))){os("0x19")==r[os("0x3a")]&&(r[o]+="\n");continue}let i;if(i=os("0x2c")==o?n[os("0xf")]&&!this[os("0x30")][os("0x23")](n[os("0xf")])?n[os("0xf")]:null:n[os("0x39")]&&!this[os("0x30")][os("0x23")](n[os("0x39")])?n[os("0x39")]:null,n[os("0x3b")]||i&&i[os("0x3b")]){const e=i&&i[os("0x3b")]?i:n;r&&r[os("0x3a")]==o+os("0x0")&&r[os("0x4")][os("0x10")]==e.name?r.quantity++:t[os("0x1c")]({type:o+os("0x0"),element:e,quantity:1})}else t[os("0x1c")]({type:o+os("0x29"),element:n})}}}_resolveDescriptionItems(t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x3a")]){case os("0x19"):if(o[os("0x2c")]=o[os("0x2c")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[os("0x1")](/\u000A/g,""),o[os("0x27")]=o[os("0x27")].replace(/(\S)\u000A+(\S)/g,os("0x24"))[os("0x1")](/\u000A/g,""),""!=o.add&&""!=o[os("0x27")]){n.push({type:os("0x1"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x27")]+'"','"'+o[os("0x2c")]+'"'])});continue}if(null!=o.add[os("0x2d")](/^ +$/)){n[os("0x1c")]({type:"insertion",content:Yo(e,"*Insert:* %0",Yo(e,os("0x7"),o[os("0x2c")][os("0x20")]))});continue}if(null!=o[os("0x27")].match(/^ +$/)){n[os("0x1c")]({type:os("0x34"),content:Yo(e,os("0x8"),Yo(e,"ELEMENT_SPACE",o.remove.length))});continue}if(""!=o[os("0x2c")]){n[os("0x1c")]({type:"insertion",content:Yo(e,os("0x9"),'"'+o.add+'"')});continue}n.push({type:"deletion",content:Yo(e,"*Remove:* %0",'"'+o[os("0x27")]+'"')});continue;case os("0x1a"):case os("0x37"):n[os("0x1c")]({type:"insertion",content:Yo(e,os("0x9"),this[os("0xa")](o[os("0x4")],o.quantity))});continue;case os("0x1e"):case os("0xe"):n[os("0x1c")]({type:os("0x34"),content:Yo(e,"*Remove:* %0",this.getItemLabel(o.element,o[os("0x3d")]))});continue;case os("0x5"):n[os("0x1c")]({type:os("0x18"),content:Yo(e,os("0x1d"),this[os("0xa")](o[os("0x4")],o[os("0x3d")]))});continue;case os("0x2"):n[os("0x1c")]({type:os("0x34"),content:Yo(e,"*Merge:* %0",this[os("0xa")](o[os("0x4")],o[os("0x3d")]))});continue}n[os("0x1c")](o)}return n}}const rs=["getSelectedBlocks","contentLanguageDirection","AlignmentEditing","left","change","has","document","FORMAT_ALIGN_TO_CENTER","markBlockFormat","ltr","model","locale","schema","commandName","alignment","FORMAT_ALIGN_TO_LEFT","center","checkAttribute","right","getAttribute","commandParams","enableCommand","get","editor","FORMAT_JUSTIFY_TEXT","value","*Format:* %0","format","_descriptionFactory"];var is,xs;is=rs,xs=110,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("0x0")],e=t[as("0x11")];if(!t.plugins[as("0xb")](as("0x8")))return;const n=t.plugins[as("0x1c")]("TrackChangesEditing");n[as("0x1b")](as("0x14"),((e,o={})=>{let s=o[as("0x2")];o[as("0x2")]||(s=as("0xf")===t[as("0x11")][as("0x7")]?as("0x9"):as("0x18"));const r=Array.from(this.editor[as("0x10")][as("0xc")].selection[as("0x6")]()).filter((t=>function(t,e,n){const o=t[as("0x19")](as("0x14"))||null;return e[as("0x17")](t,"alignment")&&n!=o}(t,this.editor[as("0x10")][as("0x12")],s)));t[as("0x10")][as("0xa")]((()=>{for(const t of r)n[as("0xe")](t,{commandName:as("0x14"),commandParams:[{value:s}]})}))})),n[as("0x5")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x14")==n[as("0x13")]){const t=n[as("0x1a")][0][as("0x2")];return{type:as("0x4"),content:Yo(e,as("0x3"),function(t){switch(t){case"left":return Yo(e,as("0x15"));case as("0x18"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case as("0x16"):return Yo(e,as("0xd"));case"justify":return Yo(e,as("0x1"))}}(t))}}}))}}const ls=["isBlock","elementEnd","listItem","isContent","plugins","insert","includes","markerName","addClass","span","createRangeOn","model","toViewPosition","markerRange","get","name","nextSibling","addHighlight","TrackChangesEditing","schema","mapper","consumable","bindElementToMarker","previousPosition","hasAttribute","isAtEnd","getCustomProperty","item","type","ck-suggestion-marker-","writer","parent","getItems","push"];var ds,us;ds=ls,us=500,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x8")]())s[gs("0x0")](t)&&o.push(n[gs("0x14")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0xc"))){let n=t[gs("0x1a")];for(;n&&n.is("element",gs("0xc"))&&n.getAttribute("listIndent")>0;)e[gs("0x9")](n),n=n[gs("0x1a")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0xe")][gs("0x18")](gs("0x1c"));return(s,r,i)=>{if(!i[gs("0x1f")].test(r[gs("0x17")],s[gs("0x19")]))return;const x=r.markerRange.getWalker(),a=r[gs("0x17")].start,c=t[gs("0x15")][gs("0x1d")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x3")];u=u||c[gs("0xd")](e);const n=i[gs("0x1e")].toViewElement(e);if(n&&n[gs("0x2")](gs("0x1b")))return;gs("0xb")==t[gs("0x4")]&&c[gs("0xa")](e)&&!c.isLimit(e)&&(e[gs("0x1a")]||a[gs("0x1")]?l&&l[gs("0x7")]==e||(l=e,m(t[gs("0x21")]),g=!0):d=d||t[gs("0x21")])}function m(t){const s=i[gs("0x6")].createUIElement(gs("0x13"),{class:gs("0x5")+e}),x=i.mapper[gs("0x16")](t);n&&o.activeMarkers[gs("0x10")](r[gs("0x11")])&&i[gs("0x6")][gs("0x12")]("ck-suggestion-marker--active",s),i[gs("0x6")][gs("0xf")](x,s),i[gs("0x1e")][gs("0x20")](s,r[gs("0x11")])}u||g||!d||m(d)}}const ps=["subscript","commandName","*Remove format:* %0","superscript","format","underline","getRanges","FORMAT_BOLD","code","document","plugins","commandParams","slice","afterInit","forceValue","editor","markInlineFormat","FORMAT_CODE","enableCommand","FORMAT_SUBSCRIPT","italic","SuperscriptEditing","isCollapsed","ItalicEditing","value","FORMAT_ITALIC","BoldEditing","strikethrough","bold","model","change","UnderlineEditing","get","toLowerCase","TrackChangesEditing","FORMAT_STRIKETHROUGH","has","_descriptionFactory","selection","SubscriptEditing","from"];var bs,Es;bs=ps,Es=469,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x8"),_s("0x5"),_s("0xd"),"CodeEditing","StrikethroughEditing",_s("0x15"),_s("0x3")];class Cs extends t.Plugin{[_s("0x24")](){const t=this[_s("0x26")],e=t[_s("0xb")],n=t[_s("0x21")][_s("0xe")](_s("0x10")),o=t.locale;for(const o of Ts){if(!t[_s("0x21")][_s("0x12")](o))continue;const s=o[_s("0x23")](0,-7)[_s("0xf")](),r=t.commands[_s("0xe")](s);n[_s("0x0")](s,((t,o={})=>{const i=e[_s("0x20")][_s("0x14")];if(i[_s("0x4")])return void t(o);const x=void 0!==o.forceValue?o[_s("0x25")]:!r[_s("0x6")];e[_s("0xc")]((()=>{const t=Array[_s("0x16")](i[_s("0x1d")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x27")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x13")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x18")]===t)return s[_s("0x22")][0][_s("0x25")]?{type:_s("0x1b"),content:Yo(o,"*Format:* %0",e)}:{type:_s("0x1b"),content:Yo(o,_s("0x19"),e)}}))}s(_s("0xa"),Yo(o,_s("0x1e"))),s(_s("0x2"),Yo(o,_s("0x7"))),s(_s("0x1c"),Yo(o,"FORMAT_UNDERLINE")),s(_s("0x1f"),Yo(o,_s("0x28"))),s(_s("0x9"),Yo(o,_s("0x11"))),s(_s("0x17"),Yo(o,_s("0x1"))),s(_s("0x1a"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["registerDescriptionCallback","parent","schema","$root","commands","plugins","change","name","commandName","editor","*Remove format:* %0","has","enableCommand","get","getSelectedBlocks","afterInit","*Format:* %0","markBlockFormat","model","blockQuote","ELEMENT_BLOCK_QUOTE","checkChild","commandParams","format","forceValue","from","filter"];var ks,As;ks=ys,As=272,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0xd")](){const t=this.editor,e=t.locale;if(!t[vs("0x3")][vs("0x9")]("BlockQuoteEditing"))return;const n=t.plugins[vs("0xb")]("TrackChangesEditing"),o=this[vs("0x7")][vs("0x2")].get(vs("0x11"));n[vs("0xa")](vs("0x11"),((e,s={})=>{const r=this[vs("0x7")][vs("0x10")].document.selection,i=s&&void 0!==s[vs("0x16")]?s.forceValue:!o.value;let x=[];if(i){const e=Array.from(r.getSelectedBlocks()).filter((t=>Ss(t)||function(t,e){const n=e[vs("0x13")](t.parent,vs("0x11")),o=e.checkChild([vs("0x1"),vs("0x11")],t);return n&&o}(t,this[vs("0x7")][vs("0x10")][vs("0x0")])));x=S(e,t.model)}else{const e=Array[vs("0x17")](r[vs("0xc")]())[vs("0x18")]((t=>Ss(t)));x=S(e,t[vs("0x10")])}t[vs("0x10")][vs("0x4")]((()=>{for(const t of x)n[vs("0xf")](t,{commandName:vs("0x11"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x19")]((t=>{const{data:n}=t;if(n&&vs("0x11")==n[vs("0x6")]){const t=Yo(e,vs("0x12"));return n[vs("0x14")][0][vs("0x16")]?{type:vs("0x15"),content:Yo(e,vs("0xe"),t)}:{type:vs("0x15"),content:Yo(e,vs("0x8"),t)}}}))}}function Ss(t){return"blockQuote"==t[vs("0x1a")][vs("0x5")]}const Is=["TrackChangesEditing","ckbox","plugins","commands","enableCommand"];var Ls,Ns;Ls=Is,Ns=225,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this.editor;t[Ms("0x3")].get(Ms("0x1"))&&t[Ms("0x2")].get(Ms("0x0"))[Ms("0x4")]("ckbox")}}const Os=["filter","*Format:* %0","value","format","selection","indentCodeBlock","_descriptionFactory","language","codeBlock","get","editor","forceValue","enableCommand","blockName","document","plugins","parent","registerElementLabel","registerDescriptionCallback","afterInit","formatBlock","commandParams","name","TrackChangesEditing","ELEMENT_CODE_BLOCK","commandName","commands","from","change","has","config","isLimit","model","locale","getSelectedBlocks"];var Fs,Ps;Fs=Os,Ps=194,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("0x1a")];if(!t[Ds("0x1f")][Ds("0xa")]("CodeBlock"))return;const e=t[Ds("0x1f")][Ds("0x19")](Ds("0x4")),n=t[Ds("0xe")],o=t[Ds("0xb")].get("codeBlock").languages,s=t[Ds("0x7")].get("codeBlock");e[Ds("0x1c")](Ds("0x15")),e[Ds("0x1c")]("outdentCodeBlock"),e.enableCommand("codeBlock",((n,r={})=>{const i=t[Ds("0xd")],x=t[Ds("0xd")][Ds("0x1e")][Ds("0x14")],a=r&&void 0!==r[Ds("0x1b")]?r[Ds("0x1b")]:!s[Ds("0x12")];let c;r[Ds("0x17")]||(r[Ds("0x17")]=o[0].language),c=a?Array[Ds("0x8")](x[Ds("0xf")]())[Ds("0x10")]((t=>{return js(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n[Ds("0xc")](e)&&n.checkChild(e[Ds("0x20")],Ds("0x18")));var e,n})):Array.from(x[Ds("0xf")]()).filter((t=>js(t)));const l=S(c,i);i[Ds("0x9")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ds("0x18"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x1d")})}))})),e._descriptionFactory[Ds("0x21")]("codeBlock",(t=>Yo(n,Ds("0x5"),t))),e[Ds("0x16")][Ds("0x22")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x1")==s&&r&&Ds("0x18")==r[Ds("0x6")]){const t=r.commandParams[0].language,s=e(o.find((e=>e[Ds("0x17")]===t)).label);return r[Ds("0x2")][0][Ds("0x1b")]?{type:"format",content:Yo(n,Ds("0x11"),Yo(n,Ds("0x5"),1)+" ("+s+")")}:{type:Ds("0x13"),content:Yo(n,"*Remove format:* %0",Yo(n,Ds("0x5"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x3")]}const Us=["TrackChangesEditing","afterInit","CommentsEditing","plugins","has","editor","get"];var Gs,Hs;Gs=Us,Hs=274,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x0")](){const t=this[zs("0x4")];t[zs("0x2")][zs("0x3")](zs("0x1"))&&t[zs("0x2")][zs("0x5")](zs("0x6")).enableCommand("addCommentThread")}}var Vs=n(181);const Ks=["get","unit","enableCommand","commands","model","delete","requires","deleteForward","downcastDispatcher","mapper","isCollapsed","lock","high","TrackChangesEditing","start","merge","detach","rootName","buffer","forward","bind","setSelection","plugins","removeMarker:suggestion:deletion","end","enqueueChange","markerName","writer","data","$graveyard","init","options","getFirstRange","createRange","uiElement","unbindElementFromMarkerName","editing","addMarker:suggestion:deletion"];var qs,$s;qs=Ks,$s=482,function(t){for(;--t;)qs.push(qs.shift())}(++$s);const Xs=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[Xs("0x12")](){return[Vs.Delete]}[Xs("0x4")](){const t=this.editor,e=t[Xs("0x22")][Xs("0xc")](Xs("0x19"));e[Xs("0xe")](Xs("0x11"));const n=t[Xs("0xf")][Xs("0xc")](Xs("0x13"));e.enableCommand(Xs("0x13"),((e,o={})=>{const s=t[Xs("0x10")].createSelection(t[Xs("0x10")].document.selection);s[Xs("0x16")]&&t[Xs("0x10")].modifySelection(s,{direction:Xs("0x1f"),unit:o[Xs("0xd")]});const r=s[Xs("0x6")](),x=i.LiveRange.fromRange(r);let a;e(o),a=Xs("0x3")==x.root[Xs("0x1d")]?t[Xs("0x10")].createRange(r[Xs("0x1a")]):t[Xs("0x10")][Xs("0x7")](x.start,x[Xs("0x24")]),x[Xs("0x1c")](),t[Xs("0x10")][Xs("0x25")](n.buffer.batch,(t=>{n[Xs("0x1e")][Xs("0x17")](),t[Xs("0x21")](t[Xs("0x7")](a[Xs("0x24")])),n[Xs("0x1e")].unlock()}))})),t[Xs("0xa")][Xs("0x14")].on(Xs("0xb"),hs(t,"merge"),{priority:"high"}),t[Xs("0x2")][Xs("0x14")].on(Xs("0xb"),((e,n,o)=>{o[Xs("0x5")].showSuggestionHighlights&&hs(t,Xs("0x1b"),{showActiveMarker:!1})[Xs("0x20")](this)(e,n,o)}),{priority:Xs("0x18")}),t[Xs("0xa")][Xs("0x14")].on(Xs("0x23"),((t,e,n)=>{const o=n[Xs("0x15")].markerNameToElements(e[Xs("0x0")]);if(o)for(const t of o)t.is(Xs("0x8"))&&(n.mapper[Xs("0x9")](t,e[Xs("0x0")]),n[Xs("0x1")].remove(t))}),{priority:"high"})}}const Qs=["next","refresh","editor","get","parent","getFirstRange","listType","fromRange","*Outdent:* %0","document","has","*Format:* insert into %0","enableCommand","ELEMENT_","ELEMENT_NUMBERED_LIST","deletion","formatBlock","documentList","_LIST","splitListItemBefore","value","end","isObject","plugins","afterInit","isFirstBlockOfListItem","add","*Change to:* %0","ELEMENT_LIST_ITEM","DocumentListUtils","listIndent","bulletedList","push","from","mergeListItemForward","markBlockFormat","expandListBlocksToCompleteList","*Merge:* %0","format","nextSibling","detach","map","locale","_suggestionFactory","createPositionAt","forceValue","selection","registerElementLabel","listItemId","nodeAfter","registerDescriptionCallback","hasAttribute","outdentList","registerCustomCallback","getAttribute","slice","start","length","_descriptionFactory","markMultiRangeBlockFormat","createRange","after","change","previousSibling","schema","getSelectedBlocks","model","commandParams","toUpperCase","setSelection","execute","*Indent:* %0","findIndex","commandName","commands","indentList","ELEMENT_BULLETED_LIST","numberedList","containsItem"];var Zs,Ys;Zs=Qs,Ys=469,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x1d")](){const t=this[tr("0x7")];if(!t[tr("0x1c")][tr("0xf")]("DocumentListEditing"))return;const e=t[tr("0x2f")],n=t[tr("0x1c")][tr("0x8")]("TrackChangesEditing"),o=t[tr("0x1c")][tr("0x8")](tr("0x22"));function s(e){return()=>{const s=t[tr("0x0")].get(e);let r=Array[tr("0x26")](t[tr("0x47")][tr("0xe")][tr("0x33")][tr("0x46")]());if(a(e)){r=o[tr("0x29")](r);const t=[];for(const e of r)o[tr("0x1e")](e)&&t.push(e);r=t}t[tr("0x47")][tr("0x43")]((()=>{n[tr("0x40")](r,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:tr("0xb")},[],tr("0x16"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x26")](t);const n=e[tr("0x4d")]((t=>!t[tr("0x38")](tr("0x35"))));return n>-1&&(e=e[tr("0x3c")](0,n)),e}(t.model[tr("0xe")][tr("0x33")][tr("0x46")]()),s=o[o[tr("0x3e")]-1],r=t[tr("0x47")][tr("0x45")][tr("0x1b")](s)?tr("0x42"):tr("0x1a"),i=t[tr("0x47")].createRange(t[tr("0x47")][tr("0x31")](o[0],"before"),t.model.createPositionAt(s,r));t.model[tr("0x43")]((()=>{n[tr("0x28")](i,{commandName:e,commandParams:[],formatGroupId:tr("0xb")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x2c")];for(;t&&t[tr("0x3b")](tr("0x23"))>n[tr("0x3b")](tr("0x23"));)e[tr("0x1f")](t),t=t[tr("0x2c")]}return Array[tr("0x26")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x47")][tr("0xe")][tr("0x33")][tr("0x46")]()[tr("0x5")]()[tr("0x19")],s=t[tr("0x47")].createPositionAt(o,"before"),r=t.model[tr("0x31")](o,0),i=t.model[tr("0x41")](s,r);t[tr("0x47")][tr("0x43")]((()=>{n[tr("0x28")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[tr("0x0")][tr("0x8")](tr("0x24"))[tr("0x19")],o=t[tr("0x0")].get(tr("0x3")).value;return tr("0x3")===e?n:o}n[tr("0x11")]("numberedList",s("numberedList")),n[tr("0x11")]("bulletedList",s(tr("0x24"))),n[tr("0x11")]("indentList",r(tr("0x1"))),n[tr("0x11")](tr("0x39"),r(tr("0x39"))),n[tr("0x11")]("splitListItemAfter",x("splitListItemAfter")),n[tr("0x11")](tr("0x18"),x(tr("0x18"))),n._descriptionFactory[tr("0x34")]((function(e){const n=!t[tr("0x47")].schema[tr("0x1b")](e),o=e[tr("0x44")],s=e.nextSibling,r=e[tr("0x3b")](tr("0x35")),i=!o||o[tr("0x3b")]("listItemId")!==r,x=!s||s[tr("0x3b")](tr("0x35"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x21"),t))),n[tr("0x3f")][tr("0x37")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n.commandName){case tr("0x24"):r=n.commandParams[0][tr("0x32")],i=a(n[tr("0x4e")]),o=r?tr("0x10"):"*Format:* remove from %0",i&&(o="*Change to:* %0"),s={type:tr("0x2b"),content:Yo(e,o,Yo(e,tr("0x2")))};break;case tr("0x3"):r=n.commandParams[0][tr("0x32")],i=a(n[tr("0x4e")]),o=r?tr("0x10"):"*Format:* remove from %0",i&&(o=tr("0x20")),s={type:tr("0x2b"),content:Yo(e,o,Yo(e,tr("0x13")))};break;case tr("0x1"):o=tr("0x4c"),s={type:tr("0x2b"),content:Yo(e,o,Yo(e,tr("0x21")))};break;case tr("0x39"):o=function(t){const e=t[tr("0xa")]();let n=e[tr("0x3d")].nodeAfter;for(;n&&e[tr("0x4")](n);){if(n[tr("0x3b")](tr("0x23"))>0)return!1;n=n[tr("0x2c")]}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0xa")]()[tr("0x3d")].nodeAfter;return tr("0x12")+e[tr("0x3b")]("listType")[tr("0x49")]()+tr("0x17")}(t))):Yo(e,tr("0xd"),Yo(e,tr("0x21"))),s={type:"format",content:o};break;case"mergeListItemBackward":case tr("0x27"):!1===n.multipleBlocks&&(o=tr("0x2a"),s={type:tr("0x14"),content:Yo(e,o,Yo(e,tr("0x21")))})}return s})),n[tr("0x30")][tr("0x3a")](tr("0x15"),"documentList","accept",(function(e,n){const o=[];for(let n of e)n.start[tr("0x36")]===n[tr("0x1a")][tr("0x9")]&&(n=t[tr("0x47")][tr("0x41")](t[tr("0x47")].createPositionAt(n.start[tr("0x36")],0))),o[tr("0x25")](n);t.model[tr("0x43")]((e=>{const s=t[tr("0x47")][tr("0xe")][tr("0x33")],r=Array.from(s.getRanges())[tr("0x2e")]((t=>i.LiveRange[tr("0xc")](t)));e[tr("0x4a")](o),t[tr("0x0")][tr("0x8")](n[tr("0x4e")])[tr("0x6")](),n[tr("0x48")].push({forceDefaultExecution:!0}),t[tr("0x4b")](n[tr("0x4e")],...n[tr("0x48")]),e[tr("0x4a")](r);for(const t of r)t[tr("0x2d")]()}))}))}}var nr=n(331);const or=["end","enterBlock","afterExecute","getFirstPosition","get","split","detach","setSelection","change","remove","high","model","ck-suggestion-marker-split","createRange","plugins","document","parent","enableCommand","data","mapper","downcastDispatcher","showSuggestionHighlights","hasClass","createPositionAt","markerName","bind","selection","commands","fromRange","init","getFirstRange","editing","enter","markerNameToElements","unbindElementFromMarkerName"];var sr,rr;sr=or,rr=434,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get requires(){return[nr.Enter]}[ir("0xf")](){const t=this.editor,e=t[ir("0x0")].get("TrackChangesEditing"),n=t[ir("0xd")][ir("0x19")](ir("0x12"));e[ir("0x3")]("enter",(()=>{t.model[ir("0x1d")]((o=>{const s=t[ir("0x20")][ir("0x1")][ir("0xc")],r=s[ir("0x18")](),x=i.LiveRange[ir("0xe")](s[ir("0x10")]());if(n[ir("0x16")](o)){const n=t.model[ir("0x9")](r[ir("0x2")].nextSibling,0),s=o[ir("0x22")](r,n);e.markInsertion(s)}else o[ir("0x1c")](o[ir("0x22")](x[ir("0x15")]));x[ir("0x1b")](),n.fire(ir("0x17"),{writer:o})}))})),t[ir("0x11")][ir("0x6")].on("addMarker:suggestion:insertion",hs(t,"split"),{priority:ir("0x1f")}),t[ir("0x11")][ir("0x6")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[ir("0x5")][ir("0x13")](e[ir("0xa")]);if(o)for(const t of o)t[ir("0x8")](ir("0x21"))&&(n[ir("0x5")][ir("0x14")](t,e[ir("0xa")]),n.writer[ir("0x1e")](t))}),{priority:ir("0x1f")}),t[ir("0x4")][ir("0x6")].on("addMarker:suggestion:insertion",((e,n,o)=>{o.options[ir("0x7")]&&hs(t,ir("0x1a"),{showActiveMarker:!1})[ir("0xb")](this)(e,n,o)}),{priority:ir("0x1f")})}}const ar=["FindAndReplaceUtils","afterInit","createPositionAt","plugins","findNext","findByTextCallback","createRange","bind","editor","markers","handleFindCommand","find","getRange","start","get","item","replaceAll","model","string","filter","getIntersection","suggestion:deletion","has","findPrevious","enableCommand","FindAndReplaceEditing"];var cr,lr;cr=ar,lr=476,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x13")](){if(!this[dr("0x0")][dr("0x15")][dr("0xe")](dr("0x11")))return;const t=this[dr("0x0")][dr("0x15")].get("TrackChangesEditing");t[dr("0x10")](dr("0x3"),this[dr("0x2")][dr("0x19")](this)),t.enableCommand(dr("0x16")),t[dr("0x10")](dr("0xf")),t[dr("0x10")]("replace"),t[dr("0x10")](dr("0x8"))}[dr("0x2")](t,e,n={}){const o=this[dr("0x0")][dr("0x15")][dr("0x6")](dr("0x12"));void 0!==n&&t((t=>(dr("0xa")==typeof e?o[dr("0x17")](e,n):e)(t)[dr("0xb")]((e=>!1===this._isInDeletionRange(e,t[dr("0x7")])))),n)}_isInDeletionRange(t,e){const n=this[dr("0x0")][dr("0x9")][dr("0x18")](this.editor[dr("0x9")][dr("0x14")](e,t[dr("0x5")]),this[dr("0x0")][dr("0x9")][dr("0x14")](e,t.end));for(const t of this[dr("0x0")][dr("0x9")][dr("0x1")].getMarkersGroup(dr("0xd")))if(null!==n[dr("0xc")](t[dr("0x4")]()))return!0;return!1}}const gr=["FontColorEditing","change","selection","afterInit","*Set font color:* %0","from","TrackChangesEditing","document","config","editor","commandParams","*Reset font size*","normalizeSizeOptions","FontFamilyEditing","value","*Reset font background color*","registerDescriptionCallback","FontBackgroundColorEditing","plugins","FontSizeEditing","get","label","fontSize","fontFamily","commandName","model","*Set font family:* %0","_descriptionFactory","toLowerCase","title","fontColor","*Reset font family*","getRanges","fontSize.options","format","markInlineFormat","find","*Reset font color*","FontSize"];var mr,fr;mr=gr,fr=363,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x7"),commandName:"fontSize"},{pluginName:hr("0x1"),commandName:"fontFamily"},{pluginName:hr("0x1b"),commandName:hr("0x12")},{pluginName:hr("0x5"),commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x1e")](){const t=this[hr("0x24")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x24")][hr("0x6")].has(t)&&this._enableCommand(e);this[hr("0x24")][hr("0x6")][hr("0x8")](hr("0x21"))[hr("0xf")][hr("0x4")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0xa")==o.commandName){const e=o[hr("0x25")][0].value;if(e){const o=n(this[hr("0x24")][hr("0x6")][hr("0x8")](hr("0x1a"))[hr("0x0")](this[hr("0x24")][hr("0x23")].get(hr("0x15")))[hr("0x18")]((t=>t[hr("0xd")]==e))[hr("0x11")])[hr("0x10")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x16"),content:Yo(t,hr("0x26"))}}if(hr("0xb")==o[hr("0xc")]){const e=o.commandParams[0][hr("0x2")];return e?{type:hr("0x16"),content:Yo(t,hr("0xe"),e)}:{type:"format",content:Yo(t,hr("0x13"))}}if("fontColor"==o[hr("0xc")]){const e=o.commandParams[0][hr("0x2")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x23")][hr("0x8")]("fontColor.colors"))[hr("0x18")]((t=>t[hr("0xd")]==e));let r=e,i="";return o&&(r=o[hr("0x9")],i=n(r)[hr("0x10")]()),{type:hr("0x16"),content:Yo(t,hr("0x1f"),i).trim(),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x19"))}}if("fontBackgroundColor"==o.commandName){const e=o[hr("0x25")][0][hr("0x2")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x24")][hr("0x23")][hr("0x8")]("fontBackgroundColor.colors"))[hr("0x18")]((t=>t[hr("0xd")]==e));let r=e,i="";return o&&(r=o[hr("0x9")],i=n(r)[hr("0x10")]()),{type:hr("0x16"),content:Yo(t,"*Set font background color:* %0",i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x16"),content:Yo(t,hr("0x3"))}}}}))}_enableCommand(t){const e=this[hr("0x24")];e[hr("0x6")][hr("0x8")](hr("0x21")).enableCommand(t,((n,o={})=>{const s=e[hr("0xd")][hr("0x22")][hr("0x1d")],r=o[hr("0x2")];s.isCollapsed?n(o):e.model[hr("0x1c")]((()=>{const n=Array[hr("0x20")](s[hr("0x14")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0xd")]);for(const o of n)e.plugins[hr("0x8")]("TrackChangesEditing")[hr("0x17")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["word","get","editor","locale","copyFormat","markInlineFormat","afterInit","toLowerCase","forward","_descriptionFactory","keys","plugins","getRanges","getSelectedBlocks","getFirstPosition","isFormatting","registerDescriptionCallback","createRange","format","length","join","fontColor","isBlock","find","title","slice","backward","config","getItems","*Set format to:* %0","charAt","getLastPosition","boolean","fontBackgroundColor","entries","pasteFormat","change","getAttributes","isCollapsed","label","schema","TrackChangesEditing","FontSize","model","push","modifySelection","from"];var _r,Tr;_r=Er,Tr=192,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x2")](){const t=this[Cr("0x2d")],n=t[Cr("0x27")],o=n.document.selection,s=t[Cr("0x7")].get(Cr("0x25")),r=t[Cr("0x2e")],i=t.commands[Cr("0x2c")]("copyFormat"),x=t.commands[Cr("0x2c")](Cr("0x1f"));i&&x&&(s.enableCommand(Cr("0x1f"),((t,r={})=>{const i=r;n[Cr("0x20")]((()=>{const t=Array[Cr("0x2a")](o[Cr("0x8")]()),r=o[Cr("0x22")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x21")]()){const t=e.getAttributeProperties(n);t&&t[Cr("0xb")]&&(yield n)}}(t,n));for(const e of t[Cr("0x8")]())for(const t of e[Cr("0x18")]())!n[Cr("0x12")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x9")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x24")]))||0!==Object[Cr("0x6")](i)[Cr("0xf")])for(const t of r)s[Cr("0x1")](t,{commandName:Cr("0x1f"),commandParams:[i]})}))})),s[Cr("0x5")][Cr("0xc")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Cr("0x1e")](o))e[Cr("0x28")](Ar(t,n,s));return e[Cr("0xf")]?{type:Cr("0xe"),content:Yo(r,Cr("0x19"),e[Cr("0x10")](", "))}:{type:Cr("0xe"),content:Yo(r,"*Remove all formatting*")}}})),t.plugins[Cr("0x2c")]("TrackChangesEditing").enableCommand(Cr("0x0")))}}function kr(t,e){const n=t.createSelection(e);t[Cr("0x29")](n,{unit:"word",direction:Cr("0x16")});const o=n[Cr("0xa")]();t[Cr("0x29")](n,{unit:Cr("0x2b"),direction:Cr("0x4")});const s=n[Cr("0x1b")]();return t[Cr("0xd")](o,s)}function Ar(t,e,n){const o=t[Cr("0x2e")].t,r=e.split(/(?=[A-Z])/)[Cr("0x10")](" "),i=o(r[Cr("0x1a")](0).toUpperCase()+r[Cr("0x15")](1))[Cr("0x3")]();if(Cr("0x1c")==typeof n)return i;if(Cr("0x11")===e||Cr("0x1d")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0x2c")]("fontColor.colors"))[Cr("0x13")]((t=>t[Cr("0x27")]==n));return i+" ("+(e?o(e[Cr("0x23")]).toLowerCase():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x2c")](Cr("0x26")).normalizeSizeOptions(t[Cr("0x17")][Cr("0x2c")]("fontSize.options"))[Cr("0x13")]((t=>t[Cr("0x27")]==n));return i+" ("+(e?o(e[Cr("0x14")]).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["commandParams","registerElementLabel","value","get","from","has","heading.options","formatBlock","paragraph","title","document","HeadingEditing","*Change to:* %0","TrackChangesEditing","change","selection","checkChild","enableCommand","registerDescriptionCallback","filter","format","editor","heading","config","getSelectedBlocks","schema","_descriptionFactory","plugins","locale","afterInit","model","match","ELEMENT_HEADING_CUSTOM","blockName","find","isObject"];var Rr,Sr;Rr=vr,Sr=137,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x0")](){const t=this[Ir("0x1c")],e=t[Ir("0x23")],n=t[Ir("0x1e")][Ir("0xa")](Ir("0xd"));if(!t[Ir("0x22")][Ir("0xc")](Ir("0x12")))return;const o=t[Ir("0x22")][Ir("0xa")](Ir("0x14"));o[Ir("0x18")]("heading",((e,n)=>{const s=n.value,r=Array[Ir("0xb")](this[Ir("0x1c")][Ir("0x1")][Ir("0x11")][Ir("0x16")][Ir("0x1f")]())[Ir("0x1a")]((t=>{return e=t,n=s,(o=this.editor.model[Ir("0x20")])[Ir("0x17")](e.parent,n)&&!o[Ir("0x6")](e)&&e.name!=n;var e,n,o}));t[Ir("0x1")][Ir("0x15")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0x1d"),commandParams:[n],formatGroupId:Ir("0x4")},fs(t))}))}));for(const t of n)Ir("0xf")!=t.model&&o[Ir("0x21")][Ir("0x8")](t[Ir("0x1")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0x10")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,Ir("0x3"),[t,n])}o._descriptionFactory[Ir("0x19")]((t=>{const{type:o,data:i}=t;if(Ir("0xe")==o&&i&&"heading"==i.commandName){const t=i[Ir("0x7")][0][Ir("0x9")],o=Nr(t);if(null!==o)return{type:Ir("0x1b"),content:Yo(e,Ir("0x13"),s(1,o))};const x=n[Ir("0x5")]((e=>e[Ir("0x1")]===t))[Ir("0x10")];return{type:Ir("0x1b"),content:Yo(e,Ir("0x13"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x2")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["getAttribute","commandParams","createRange","has","model","highlight","color","getRanges","enableCommand","get","getFirstPosition","value","commandName","document","plugins","editor","push","title","hasAttribute","_descriptionFactory","TrackChangesEditing","locale","item","format","HighlightEditing","find"];var wr,Or;wr=Mr,Or=288,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{afterInit(){const t=this[Fr("0xd")];if(!t[Fr("0xc")][Fr("0x1")](Fr("0x16")))return;const e=t.plugins[Fr("0x7")](Fr("0x12"));e[Fr("0x6")](Fr("0x3"),((n,o={})=>{const s=t[Fr("0x2")][Fr("0xb")].selection,r=s[Fr("0x18")](Fr("0x3"));let i=o[Fr("0x9")],x=[];if(s.isCollapsed){const e=s[Fr("0x8")]();if(!s[Fr("0x10")](Fr("0x3")))return void n(o);{const n=t=>t[Fr("0x14")][Fr("0x18")](Fr("0x3"))===r,o=e.getLastMatchingPosition(n,{direction:"backward"}),s=e.getLastMatchingPosition(n);x=[t[Fr("0x2")][Fr("0x0")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x5")]())i?x[Fr("0xe")](e):x[Fr("0xe")](...ms(Fr("0x3"),e,t[Fr("0x2")]));t[Fr("0x2")].change((()=>{for(const t of x)e.markInlineFormat(t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x13")];e[Fr("0x11")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Fr("0x3")==s[Fr("0xa")]){const e=n.t,o=s[Fr("0x19")][0][Fr("0x9")];if(o){const s=t.config.get("highlight.options")[Fr("0x17")]((t=>t[Fr("0x2")]==o)),r=e(s[Fr("0xf")]).toLowerCase();return{type:Fr("0x15"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s[Fr("0x4")],title:s.title}}}return{type:Fr("0x15"),content:Yo(n,"*Remove highlight*",Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["horizontalLine","enableCommand","addClass","createContainerElement","div","has","showSuggestionHighlights","high","editor","createPositionAt","ELEMENT_HORIZONTAL_LINE","HorizontalLineEditing","plugins","createEmptyElement","for","registerElementLabel","elementToStructure","TrackChangesEditing","get","afterInit"];var Br,jr;Br=Dr,jr=306,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xd")](){const t=this[Ur("0x2")];if(!t[Ur("0x6")][Ur("0x13")](Ur("0x5")))return;t[Ur("0x6")][Ur("0xc")](Ur("0xb"))[Ur("0xf")](Ur("0xe"));const e=t.plugins[Ur("0xc")]("TrackChangesEditing"),n=t.locale;e._descriptionFactory[Ur("0x9")](Ur("0xe"),(t=>Yo(n,Ur("0x4"),t))),t.conversion[Ur("0x8")]("dataDowncast")[Ur("0xa")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0x0")])return null;const o=e[Ur("0x11")](Ur("0x12")),s=e[Ur("0x7")]("hr");return e[Ur("0x10")]("ck-horizontal-line",o),e.insert(e[Ur("0x3")](o,0),s),o},converterPriority:Ur("0x1")})}}const Hr=["HtmlEmbed","getCustomProperty","cancel","document","get","TrackChangesEditing","editing","htmlEmbed","plugins","registerElementLabel","editor","afterInit","markBlockFormat","enableCommand","element","rawHtml","_descriptionFactory","view","getAttribute","change","has","commandName","getSelectedElement","format","ELEMENT_HTML_EMBED"];var zr,Wr;zr=Hr,Wr=234,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x2")](){const t=this[Vr("0x1")];if(!t[Vr("0x18")][Vr("0xb")](Vr("0x10")))return;const e=t[Vr("0x18")][Vr("0x14")]("TrackChangesEditing"),n=t.locale,o=t[Vr("0x16")][Vr("0x8")][Vr("0x13")].selection;e[Vr("0x7")][Vr("0x0")](Vr("0x6"),(t=>Yo(n,Vr("0xf"),t))),t[Vr("0x18")][Vr("0x14")](Vr("0x15"))[Vr("0x4")](Vr("0x17"),((n,s)=>{const r=t.model,i=r[Vr("0x13")].selection;r[Vr("0xa")]((()=>{const t=function(t){const e=t[Vr("0xd")]();return e&&e.is(Vr("0x5"),Vr("0x6"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t[Vr("0x9")]("value")||"";void 0!==s&&s!==r&&(e[Vr("0x3")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Vr("0xd")]()[Vr("0x11")]("rawHtmlApi")[Vr("0x12")]())}))})),e[Vr("0x7")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Vr("0x17")==e[Vr("0xc")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0xe"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["getContainedElement","getNearestSelectionRange","insertion","imageTextAlternative","createRangeOn","type","_splitMarkerName","schema","has","getFirstRange","refresh","isBefore","imageStylePreApply","newRange","model","end","join","getSuggestionCallback","detach","formatInline","ImageUploadEditing","isEqual","isCollapsed","forceDefaultExecution","_descriptionFactory","ImageUtils","uploadImage","FORMAT_SIDE_IMAGE","plugins","getClosestSelectedImageElement","isBlockImage","*Reset image width*","getChangedMarkers","hasSuggestion","ELEMENT_CAPTION","imageCaption","isInContent","length","author","_suggestionFactory","start","markBlockFormat","addObject","commandParams","value","ImageStyleEditing","accept","alt","shouldConvertImageType","fromPosition","convertBlockImageToInline","imageTypeInline","isInlineImage","previous","name","resizeImage","markInsertion","ELEMENT_INLINE_IMAGE","forEach","removeObject","get","convertInlineImageToBlock","change","ImageEditing","imageStylePostApply","TrackChangesEditing","toggleImageCaption","side","newValue","ImageBlockEditing","title","isOwn","toLowerCase","ImageResize","findIndex","suggestion","document","getAttribute","registerPostFixer","from","formatBlock","deletion","ImageCaptionUtils","selection","*Set image width:* %0","enableCommand","Block image to inline image","commandName","element","discardSuggestion","registerDescriptionCallback","*Set image text alternative:* %0","locale","filter","registerCustomCallback","width","subType","format","ImageInlineEditing","imageStyle","*Format:* %0","ImageTextAlternativeEditing","_findSuggestions","head","toPrevious","createRange","afterInit","chain","next","find","ImageCaptionEditing","differ","getCaptionFromImageModelElement","discard","registerElementLabel","commands","getSuggestion","Users","nodeBefore"];var $r,Xr;$r=qr,Xr=500,function(t){for(;--t;)$r.push($r.shift())}(++Xr);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x52")](){const t=this.editor;if(!t[Jr("0x4")][Jr("0x67")](Jr("0x27")))return;const n=t[Jr("0x4")][Jr("0x24")](Jr("0x29")),o=t.plugins.get(Jr("0x1")),s={},r=t[Jr("0x44")];if(n.enableCommand("insertImage"),n[Jr("0x0")][Jr("0x5a")]("imageBlock",(t=>Yo(r,"ELEMENT_IMAGE",t))),n[Jr("0x0")][Jr("0x5a")]("imageInline",(t=>Yo(r,Jr("0x21"),t))),n[Jr("0x0")][Jr("0x5a")]("caption",(()=>Yo(r,Jr("0xa")))),t.plugins[Jr("0x67")](Jr("0x73"))&&n[Jr("0x3d")](Jr("0x2")),t.plugins[Jr("0x67")](Jr("0x2d"))&&t.plugins[Jr("0x67")](Jr("0x4a"))&&(n[Jr("0x3d")]("imageTypeInline",((e,s)=>{const r=o[Jr("0x5")](t[Jr("0x6d")].document[Jr("0x3b")]);t[Jr("0x6d")].change((()=>{n[Jr("0x11")](r,{commandName:"imageTypeInline",commandParams:[s]},[],Jr("0x1a"))}))})),n[Jr("0x3d")]("imageTypeBlock",((e,s)=>{t.model[Jr("0x26")]((r=>{let x=o[Jr("0x5")](t.model[Jr("0x34")].selection),a=r[Jr("0x63")](x);const c=i.LivePosition[Jr("0x19")](a[Jr("0x10")],Jr("0x50")),l=i.LivePosition[Jr("0x19")](a.end,"toNext");n[Jr("0x76")]((()=>e(s))),x=o[Jr("0x5")](t[Jr("0x6d")][Jr("0x34")][Jr("0x3b")]),a=r[Jr("0x63")](x);const d=r[Jr("0x51")](c,l);c.detach(),l[Jr("0x71")](),n.markBlockFormat(x,{commandName:Jr("0x1b"),commandParams:[]},[],Jr("0x25")),d[Jr("0x10")][Jr("0x6a")](a[Jr("0x10")])&&n.markInsertion(r.createRange(d.start,a[Jr("0x10")]),"convertInlineImageToBlock"),a.end[Jr("0x6a")](d.end)&&n[Jr("0x20")](r.createRange(a[Jr("0x6e")],d[Jr("0x6e")]),Jr("0x25"))}))})),n[Jr("0xf")][Jr("0x46")]("formatBlock",Jr("0x25"),Jr("0x6f"),(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x38"),"convertInlineImageToBlock",Jr("0x16"),(()=>{})),n[Jr("0xf")][Jr("0x46")](Jr("0x38"),Jr("0x25"),Jr("0x59"),n._suggestionFactory[Jr("0x70")](Jr("0x38"),"",Jr("0x16"))),n._suggestionFactory[Jr("0x46")](Jr("0x61"),Jr("0x25"),Jr("0x6f"),(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x61"),Jr("0x25"),"discard",(([e])=>{const o=n[Jr("0xf")].getSuggestionCallback("insertion","",Jr("0x59"));let s=e[Jr("0x10")],r=e.end;const i=t[Jr("0x6d")][Jr("0x66")][Jr("0x60")](s,"backward"),x=t[Jr("0x6d")][Jr("0x66")][Jr("0x60")](r,"forward");i[Jr("0x75")]&&(s=i[Jr("0x10")]),x[Jr("0x75")]&&(r=x[Jr("0x6e")]),o([t[Jr("0x6d")][Jr("0x51")](s,r)])})),n[Jr("0xf")][Jr("0x46")](Jr("0x38"),Jr("0x25"),Jr("0x53"),c),n[Jr("0xf")].registerCustomCallback(Jr("0x61"),Jr("0x25"),Jr("0x53"),c)),t[Jr("0x4")][Jr("0x67")](Jr("0x56"))&&(n[Jr("0x3d")](Jr("0x2a"),((e,s)=>{const r=t.plugins.get(Jr("0x3a"));let i=o[Jr("0x5")](t.model[Jr("0x34")][Jr("0x3b")]),x=r.getCaptionFromImageModelElement(i);t.model[Jr("0x26")]((()=>{if(x)return void n.markDeletion(t[Jr("0x6d")][Jr("0x63")](x));const a=o[Jr("0x6")](i);e(s),i=o.getClosestSelectedImageElement(t[Jr("0x6d")][Jr("0x34")][Jr("0x3b")]),x=r[Jr("0x58")](i),n[Jr("0x20")](t[Jr("0x6d")][Jr("0x63")](x),a?null:"imageCaption")}))})),n[Jr("0xf")][Jr("0x46")](Jr("0x61"),Jr("0xb"),Jr("0x53"),c)),t[Jr("0x4")][Jr("0x67")](Jr("0x15"))){n.enableCommand(Jr("0x4b"),((s,r)=>{const i=t.plugins[Jr("0x24")](Jr("0x5d")).me,x=t[Jr("0x5b")][Jr("0x24")](Jr("0x4b"));let a=o[Jr("0x5")](t[Jr("0x6d")][Jr("0x34")][Jr("0x3b")]),c=t.model[Jr("0x63")](a),l=x[Jr("0x14")];if(l==r.value)return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Jr("0x26")]((()=>{if(n.getSuggestions()[Jr("0x45")]((t=>t[Jr("0xc")]&&i==t[Jr("0xe")]&&(Jr("0x38")==t.type||Jr("0x72")==t[Jr("0x64")])&&(Jr("0x6b")==t[Jr("0x48")]||Jr("0x28")==t[Jr("0x48")])&&t[Jr("0x68")]()[Jr("0x74")](c)))[Jr("0x22")]((t=>n.discardSuggestion(t[Jr("0x4f")]))),a=o[Jr("0x5")](t[Jr("0x6d")][Jr("0x34")][Jr("0x3b")]),c=t[Jr("0x6d")][Jr("0x63")](a),x.refresh(),t[Jr("0x5b")].get(Jr("0x1b"))[Jr("0x69")](),t[Jr("0x5b")][Jr("0x24")]("imageTypeBlock").refresh(),l=x[Jr("0x14")],l!=r[Jr("0x14")])return o[Jr("0x1c")](a)&&x[Jr("0x18")](r.value,a)?(s(r),a=o[Jr("0x5")](t[Jr("0x6d")][Jr("0x34")].selection),void n[Jr("0x11")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x6")](a)?n[Jr("0x11")](a,d,[],"imageStylePostApply"):n.markInlineFormat(c,d,Jr("0x28")))}))}));for(const e of t[Jr("0x4")].get(Jr("0x15")).normalizedStyles)s[e[Jr("0x1e")]]=e[Jr("0x2e")][Jr("0x30")]();n[Jr("0xf")].registerCustomCallback(Jr("0x38"),Jr("0x6b"),Jr("0x6f"),(()=>{})),n._suggestionFactory[Jr("0x46")](Jr("0x38"),Jr("0x28"),Jr("0x6f"),(()=>{})),n[Jr("0xf")].registerCustomCallback(Jr("0x72"),Jr("0x28"),"join",(()=>{})),n[Jr("0xf")][Jr("0x46")](Jr("0x38"),Jr("0x6b"),"accept",(()=>{})),n[Jr("0xf")][Jr("0x46")](Jr("0x38"),"imageStylePreApply",Jr("0x59"),((t,e)=>{n._suggestionFactory[Jr("0x70")](Jr("0x38"),"",Jr("0x16"))(t,{commandName:e[Jr("0x3f")],commandParams:e.commandReversedParams})})),n[Jr("0xf")].registerCustomCallback(Jr("0x38"),"imageStylePreApply",Jr("0x53"),c)}const x=[{type:Jr("0x38"),subType:Jr("0x6b")},{type:"insertion",subType:Jr("0xb")},{type:Jr("0x38"),subType:"convertInlineImageToBlock"},{type:Jr("0x61"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[Jr("0x32")]((({type:e,subType:n})=>t[Jr("0x64")]==e&&t[Jr("0x48")]==n)),r=x[Jr("0x32")]((({type:t,subType:n})=>e[Jr("0x64")]==t&&e[Jr("0x48")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x68")](),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x4e")](i,"insertion").filter((({suggestion:t,meta:e})=>e[Jr("0x2f")]&&Jr("0x25")==t[Jr("0x48")]));if(t[Jr("0xd")]>1&&a.end[Jr("0x74")](i[Jr("0x10")]))return!0;if(1==t[Jr("0xd")]&&(i[Jr("0x10")].isEqual(a[Jr("0x6e")])||i.end[Jr("0x74")](a.start)))return!0}if(3==s&&3==r&&i[Jr("0x10")].isBefore(a.start)){const t=i.end.nodeAfter,e=a[Jr("0x10")][Jr("0x5e")];return o[Jr("0x6")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x6d")][Jr("0x34")][Jr("0x36")]((()=>{let e=!1;const s=Array[Jr("0x37")](t[Jr("0x6d")][Jr("0x34")][Jr("0x57")][Jr("0x8")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x65")](t);if(Jr("0x33")==s&&n[Jr("0x9")](a)){if(Jr("0x38")==i&&(Jr("0x6b")==x||Jr("0x28")==x)){const t=n[Jr("0x5c")](a);if(r[Jr("0x6c")]){const s=t.getFirstRange()[Jr("0x5f")]();if(o.isBlockImage(s))continue;n[Jr("0x41")](t),e=!0}}if(Jr("0x61")==i&&Jr("0xb")==x&&!r.newRange){const t=n[Jr("0x5c")](a);t[Jr("0x54")]&&t[Jr("0x54")][Jr("0xc")]&&(n[Jr("0x41")](t.next),e=!0)}}}return e})),t[Jr("0x4")][Jr("0x67")](Jr("0x31"))&&n[Jr("0x3d")](Jr("0x1f"),((e,s)=>{const r=o[Jr("0x5")](t[Jr("0x6d")][Jr("0x34")][Jr("0x3b")]);r.getAttribute(Jr("0x47"))!=s[Jr("0x47")]&&t[Jr("0x6d")][Jr("0x26")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x1f"),commandParams:[s]})}))})),t.plugins[Jr("0x67")](Jr("0x4d"))&&n[Jr("0x3d")](Jr("0x62"),((e,s)=>{const r=o[Jr("0x5")](t[Jr("0x6d")].document.selection);(r.hasAttribute(Jr("0x17"))?r[Jr("0x35")](Jr("0x17")):"")!=s[Jr("0x2c")]&&t[Jr("0x6d")][Jr("0x26")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x62"),commandParams:[s]})}))})),n[Jr("0x0")][Jr("0x42")]((t=>{if(x[Jr("0x55")]((({type:e,subType:n})=>t[Jr("0x64")]==e&&t[Jr("0x48")]==n)))return t[Jr("0x1d")]?{}:void 0})),n[Jr("0x0")].registerDescriptionCallback((t=>{if(Jr("0x61")==t.type||Jr("0x39")==t[Jr("0x64")]){const e=t[Jr("0x5f")]();if(e&&e.is(Jr("0x40"),"caption"))return{type:"insertion"==t[Jr("0x64")]?Jr("0x12"):Jr("0x23"),element:e,quantity:1}}})),n[Jr("0x0")][Jr("0x42")]((t=>Jr("0x38")==t.type&&Jr("0x25")==t.subType?{type:"format",content:"Inline image to block image"}:"formatBlock"==t[Jr("0x64")]&&Jr("0x1a")==t[Jr("0x48")]?{type:"format",content:Jr("0x3e")}:void 0)),n[Jr("0x0")][Jr("0x42")]((t=>{const{data:e}=t;if(e){if(Jr("0x4b")==e.commandName){const t=e.commandParams[0][Jr("0x14")];return n=Jr("0x2b")===t?Yo(r,Jr("0x3")):s[t]||t,{type:Jr("0x49"),content:Yo(r,Jr("0x4c"),n)}}if("imageTextAlternative"==e[Jr("0x3f")]){const t=e[Jr("0x13")][0][Jr("0x2c")];return t?{type:Jr("0x49"),content:Yo(r,Jr("0x43"),'"'+t+'"')}:{type:Jr("0x49"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x1f")==e[Jr("0x3f")]){const t=e[Jr("0x13")][0].width;return t?{type:"format",content:Yo(r,Jr("0x3c"),t)}:{type:Jr("0x49"),content:Yo(r,Jr("0x7"))}}}var n}))}}const Zr=["plugins","locale","format","ImageEditing","model","getAttribute","discard","accept","registerCustomCallback","editor","getContainedElement","formatBlock","get","commandParams","src","handleReplaceImageCommand","document","author","change","registerDescriptionCallback","has","*Format:* replace image URL","Users","data","getSuggestions","_suggestionFactory","source","getSuggestionCallback","afterInit","handleSuggestionDescription","markBlockFormat","replaceImageSource"];var Yr,ti;Yr=Zr,ti=485,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x17")](){if(!this[ei("0x4")][ei("0x1b")][ei("0xf")](ei("0x1e")))return;const t=this.editor.plugins.get("TrackChangesEditing");t.enableCommand("replaceImageSource",((t,e)=>this[ei("0xa")](t,e))),t[ei("0x14")][ei("0x3")](ei("0x6"),ei("0x1a"),"accept",t[ei("0x14")][ei("0x16")]("formatBlock",null,ei("0x1"))),t[ei("0x14")][ei("0x3")](ei("0x6"),ei("0x1a"),ei("0x1"),t[ei("0x14")][ei("0x16")](ei("0x6"),null,ei("0x2"))),t._descriptionFactory[ei("0xe")]((t=>this.handleSuggestionDescription(t)))}handleReplaceImageCommand(t,e){const n=this[ei("0x4")][ei("0x1b")][ei("0x7")]("TrackChangesEditing"),o=this[ei("0x4")][ei("0x1f")][ei("0xb")].selection.getSelectedElement();this[ei("0x4")][ei("0x1f")][ei("0xd")]((()=>{let s=o[ei("0x0")](ei("0x9"));const r=this.editor.plugins[ei("0x7")](ei("0x11")).me;for(const t of n[ei("0x13")]({skipNotAttached:!0})){const e=t[ei("0x5")]();if(ei("0x1a")===t.subType&&e===o){t[ei("0xc")]!==r&&t.discard(),s=t[ei("0x12")][ei("0x8")][0][ei("0x15")];break}}t(e),n[ei("0x19")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0x1a"))}))}[ei("0x18")](t){const{data:e}=t;if(e&&"replaceImageSource"===e.commandName){const t=ei("0x10");return{type:ei("0x1d"),content:Yo(this[ei("0x4")][ei("0x1c")],t)}}}}const oi=["forEach","listenTo","trackChanges","get","high","bind","dataInsert","lowest","enableCommand","importWord","Users","commands","_trackChangesValueDuringImport","value","editor","plugins","_trackChangesExecuted","execute","_handleImportedData","TrackChangesEditing"];var si,ri;si=oi,ri=389,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this._trackChangesExecuted=!1}afterInit(){const t=this.editor,e=t[ii("0x2")].get("importWord"),n=t[ii("0x2")][ii("0xe")](ii("0xd"));e&&(e.on(ii("0x8"),((t,[,e])=>{this[ii("0x3")]=n.value,e.collaboration_features.track_changes=!this[ii("0x3")]}),{priority:ii("0xf")}),this[ii("0xc")](e,ii("0x11"),this[ii("0x9")][ii("0x10")](this)),this[ii("0xc")](e,ii("0x11"),(()=>{this[ii("0x7")]&&(n[ii("0x8")](),this[ii("0x7")]=!1)}),{priority:ii("0x12")}),t[ii("0x6")][ii("0xe")]("TrackChangesEditing")[ii("0x13")](ii("0x0")))}[ii("0x9")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x2")].get(ii("0xd")),s=o[ii("0x4")];this[ii("0x3")]!==s&&(o.execute(),this[ii("0x7")]=!0),n&&n[ii("0xb")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ii("0x6")].get(ii("0x1")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x0")}}};this[ii("0x5")][ii("0x6")][ii("0xe")](ii("0xa"))._setSuggestionData(s)}))}}const ai=["blockIndent","getItems","get","has","checkAttribute","afterInit","locale","commandName","markBlockFormat","*Indent:* %0","IndentBlock","enableCommand","outdentBlock","IndentEditing","plugins","indent","getItemLabel","schema","from","*Outdent:* %0","model","indentBlock","TrackChangesEditing","format","document","registerDescriptionCallback","_descriptionFactory","editor"];var ci,li;ci=ai,li=102,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0xf")](){const t=this.editor,e=t[di("0x18")][di("0xc")](di("0x4"));t[di("0x18")].has(di("0x17"))&&(e[di("0x15")](di("0x19")),e[di("0x15")]("outdent"));const n=t[di("0x10")];if(t.plugins[di("0xd")](di("0x14"))){for(const n of[di("0x3"),"outdentBlock"])e[di("0x15")](n,(()=>{const o=Array[di("0x0")](this.editor[di("0x2")][di("0x6")].selection.getSelectedBlocks()).filter((t=>this[di("0x9")][di("0x2")][di("0x1b")][di("0xe")](t,di("0xa"))));t.model.change((()=>{for(const t of o)e[di("0x12")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x3")})}))}));e[di("0x8")][di("0x7")]((t=>{const{data:o}=t;if(!o)return;if(di("0x3")!=o[di("0x11")]&&"outdentBlock"!=o.commandName)return;const s=t[di("0xb")]()[0],r=e._descriptionFactory[di("0x1a")](s);return"indentBlock"==o[di("0x11")]?{type:di("0x5"),content:Yo(n,di("0x13"),r)}:di("0x16")==o[di("0x11")]?{type:"format",content:Yo(n,di("0x1"),r)}:void 0}))}}}var gi,mi,fi=["requires","plugins","init","TrackChangesEditing","enableCommand"];gi=fi,mi=287,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x3")](){return[Vs.Input]}[hi("0x0")](){this.editor[hi("0x4")].get(hi("0x1"))[hi("0x2")]("input")}}const bi=["LinkEditing","has","commandName","isCollapsed","getAttribute","*Remove link*","getFirstRange","hasAttribute","linkHref","get","link","change","unlink","commandParams","selection","registerDescriptionCallback","enableCommand","format","getFirstPosition","markInlineFormat","TrackChangesEditing","model","document"];var Ei,_i;Ei=bi,_i=157,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Ti("0x5")](Ti("0x4")))return;const e=t.plugins[Ti("0xd")](Ti("0x1"));e.enableCommand(Ti("0xe"),((n,o)=>{const s=t[Ti("0x2")][Ti("0x3")][Ti("0x12")];let r=[];if(s[Ti("0x7")]){if(!s[Ti("0xb")](Ti("0xc")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x16")](),Ti("0xc"),s[Ti("0x8")]("linkHref"),t[Ti("0x2")]);r=[e]}}else r=Array.from(s.getRanges());t[Ti("0x2")][Ti("0xf")]((()=>{for(const t of r)e[Ti("0x0")](t,{commandName:Ti("0xe"),commandParams:[o]})}))})),e[Ti("0x14")](Ti("0x10"),(()=>{const n=this.editor.model,o=n.document[Ti("0x12")];n[Ti("0xf")]((()=>{let n=[];n=o[Ti("0x7")]?[(0,Vs.findAttributeRange)(o[Ti("0x16")](),Ti("0xc"),o[Ti("0x8")](Ti("0xc")),t.model)]:ms(Ti("0xc"),o[Ti("0xa")](),t[Ti("0x2")]);for(const t of n)e.markInlineFormat(t,{commandName:Ti("0x10"),commandParams:[]})}))})),e._descriptionFactory[Ti("0x13")]((e=>{const{data:n}=e,o=t.locale;if(n){if("link"==n[Ti("0x6")]){return{type:"format",content:Yo(o,"*Set link:* %0",'"'+n[Ti("0x11")][0]+'"')}}return Ti("0x10")==n[Ti("0x6")]?{type:Ti("0x15"),content:Yo(o,Ti("0x9"))}:void 0}}))}}const yi=["model","execute","value","blockName","slice","afterInit","from","todo","schema","enableCommand","name","ELEMENT_TODO_LIST","listItem","ELEMENT_BULLETED_LIST","format","commandParams","locale","ListEditing","isObject","registerDescriptionCallback","createPositionAt","*Change to:* %0","ELEMENT_NUMBERED_LIST","has","get","getAttribute","bulleted","element","before","replace","paragraph","add","createRange","registerElementLabel","bulletedList","listIndent","change","*Indent:* %0","push","commandName","findIndex","document","outdentList","*Check item*","*Uncheck item*","getSelectedBlocks","listType","ELEMENT_LIST_ITEM","todoList","previousSibling","_descriptionFactory","plugins","TodoListEditing","List","numberedList","selection","checkTodoList","markBlockFormat","indentList","filter","nextSibling","length"];var ki,Ai;ki=yi,Ai=244,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x9")](){const t=this.editor,e=t[vi("0x14")];if(!t.plugins[vi("0x1b")](vi("0x15")))return;const n=t.plugins[vi("0x1c")]("TrackChangesEditing"),o=t[vi("0x37")][vi("0x1b")](vi("0x38"));function s(e){return()=>{const o=t[vi("0x4")][vi("0x2d")][vi("0x3b")],s=t.commands[vi("0x1c")](e);if(s[vi("0x6")])return void t[vi("0x5")](vi("0x22"),{});const r=e[vi("0x8")](0,-4),i=function(t,e,n){let o=Array[vi("0xa")](t)[vi("0x1")]((t=>{return e=t,(o=n).checkChild(e.parent,vi("0x10"))&&!o[vi("0x16")](e);var e,o}));o=o[vi("0x1")]((t=>!t.is("element","listItem")||t[vi("0x1d")](vi("0x32"))!=e));const s=new Set;for(const t of o)t.is(vi("0x1f"),vi("0x10"))?s[vi("0x23")](Si(t)):s.add(t);return Array[vi("0xa")](s)}(o.getSelectedBlocks(),r,t.model[vi("0xc")]);t[vi("0x4")][vi("0x28")]((()=>{for(const t of i)n[vi("0x3d")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x6")]}],formatGroupId:vi("0x7")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0xa")](t);const n=e[vi("0x2c")]((t=>vi("0x10")!=t.name));return n>-1&&(e=e[vi("0x8")](0,n)),e}(t[vi("0x4")][vi("0x2d")][vi("0x3b")][vi("0x31")]()),s=t[vi("0x4")][vi("0x24")](t.model[vi("0x18")](o[0],vi("0x20")),t[vi("0x4")][vi("0x18")](o[o[vi("0x3")]-1],"end"));t.model[vi("0x28")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:vi("0x27")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x2")];for(;t&&t[vi("0x1d")](vi("0x27"))>n[vi("0x1d")]("listIndent");)e.add(t),t=t[vi("0x2")]}return Array[vi("0xa")](e)}(o))}))}}n.enableCommand(vi("0x3a"),s(vi("0x3a"))),n.enableCommand(vi("0x26"),s(vi("0x26"))),o&&n[vi("0xd")](vi("0x34"),s("todoList")),n.enableCommand("indentList",r("indentList")),n[vi("0xd")](vi("0x2e"),r("outdentList")),o&&n[vi("0xd")]("checkTodoList",(()=>{const e=t.commands[vi("0x1c")](vi("0x3c")),o=Array[vi("0xa")](e._selectedElements);o[vi("0x1")]((t=>t[vi("0x1d")]("todoListChecked")!=e[vi("0x6")])),t[vi("0x4")].change((()=>{for(const t of o)n[vi("0x3d")](t,{commandName:vi("0x3c"),commandParams:[{forceValue:!e.value}]})}))})),n[vi("0x36")][vi("0x25")](vi("0x10"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x36")][vi("0x17")]((t=>{const{data:n}=t;if(n){if(vi("0x3a")==n[vi("0x2b")]||vi("0x26")==n[vi("0x2b")]||vi("0x34")==n[vi("0x2b")])switch(n[vi("0x2b")][vi("0x21")](vi("0x39"),"")){case vi("0x1e"):return o(Yo(e,vi("0x11")));case"numbered":return o(Yo(e,vi("0x1a")));case vi("0xb"):return o(Yo(e,vi("0xf")))}if(vi("0x0")==n[vi("0x2b")])return{type:vi("0x12"),content:Yo(e,vi("0x29"),Yo(e,vi("0x33")))};if(vi("0x2e")==n[vi("0x2b")])return{type:vi("0x12"),content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x33")))};if(vi("0x3c")==n[vi("0x2b")])return n[vi("0x13")][0].forceValue?{type:"format",content:Yo(e,vi("0x2f"))}:{type:vi("0x12"),content:Yo(e,vi("0x30"))}}function o(t){return{type:vi("0x12"),content:Yo(e,vi("0x19"),t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x27"));if(0==e)return t;let n=t;for(;t[vi("0x35")]&&t[vi("0x35")].is(vi("0x1f"),vi("0x10"));){const o=t[vi("0x35")].getAttribute("listIndent");if(o==e)n=t[vi("0x35")];else if(o<e)break;t=t[vi("0x35")]}return n}function Ii(t){const e=[];if(t.is(vi("0x1f"),"listItem")&&t[vi("0x1d")]("listIndent")>0){let n=t.nextSibling;for(;n&&vi("0x10")==n[vi("0xe")]&&n.getAttribute("listIndent")==t[vi("0x1d")](vi("0x27"));)e[vi("0x2a")](n),n=n[vi("0x2")]}return e}const Li=["get","getListTypeFromListStyleType","_getTranslationKeyForListStyle","enableCommand","from","*Format:* set start index to %0","listStyle","startIndex","document","_getSuggestionBlocksForListStyle","handleListStyleCommand","registerDescriptionCallback","flat","numbered","forward","unshift","_getSuggestionBlocks","afterInit","filter","getAttribute","element","TrackChangesEditing","ListPropertiesEditing","listReversed","getSiblingNodes","styles","commandName","toUpperCase","config","getSelectedBlocks","*Change to:* %0","listItem","bind","createRange","getFirstPosition","listType","handleListStartCommand","backward","before","format","replace","change","markMultiRangeBlockFormat","reversed","ListUtils","model","ELEMENT_","selection","commandParams","createPositionAt","length","_descriptionFactory","handleDescriptions","editor","handleListReversedCommand","*Format:* set order to regular","map","push","listStart","type","plugins"];var Ni,Mi;Ni=Li,Mi=118,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x15")](){if(!this[wi("0x39")][wi("0x3")].has(wi("0x1a")))return;const t=this[wi("0x39")][wi("0x20")][wi("0x4")]("list.properties"),e=this.editor[wi("0x3")][wi("0x4")](wi("0x19"));t[wi("0x1d")]&&e.enableCommand(wi("0xa"),this.handleListStyleCommand[wi("0x24")](this)),t[wi("0x2f")]&&e[wi("0x7")](wi("0x1b"),this[wi("0x3a")][wi("0x24")](this)),t[wi("0xb")]&&e[wi("0x7")](wi("0x1"),this[wi("0x28")][wi("0x24")](this)),e[wi("0x37")][wi("0xf")](this.handleDescriptions[wi("0x24")](this))}[wi("0xe")](t,e={}){const n=this.editor[wi("0x3")].get(wi("0x19")),o=this[wi("0xd")]();this[wi("0x39")].model.change((()=>{n[wi("0x2e")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x2")]}],formatGroupId:wi("0xa")})}))}[wi("0x3a")](t,e={}){const n=this.editor[wi("0x3")][wi("0x4")](wi("0x19")),o=this._getSuggestionBlocks((t=>t.is(wi("0x18"),wi("0x23"))&&wi("0x11")===t[wi("0x17")](wi("0x27"))));if(o.length<1)return;const s=o[wi("0x3c")]((t=>this.editor[wi("0x31")][wi("0x25")](this.editor[wi("0x31")].createPositionAt(t,"before"),this[wi("0x39")][wi("0x31")][wi("0x35")](t,0))));this[wi("0x39")][wi("0x31")][wi("0x2d")]((()=>{n[wi("0x2e")](s,{commandName:wi("0x1b"),commandParams:[{reversed:e[wi("0x2f")]}],formatGroupId:wi("0x1b")})}))}[wi("0x28")](t,e={}){const n=this[wi("0x39")][wi("0x3")][wi("0x4")](wi("0x19")),o=this[wi("0x14")]((t=>t.is(wi("0x18"),wi("0x23"))&&wi("0x11")===t[wi("0x17")](wi("0x27"))));if(o[wi("0x36")]<1)return;const s=o[wi("0x3c")]((t=>this.editor[wi("0x31")].createRange(this.editor.model.createPositionAt(t,wi("0x2a")),this[wi("0x39")][wi("0x31")][wi("0x35")](t,0))));this[wi("0x39")][wi("0x31")][wi("0x2d")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x1"),commandParams:[{startIndex:e[wi("0xb")]}],formatGroupId:wi("0x1")})}))}[wi("0x38")](t){const e=this.editor.locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x1e")]){case wi("0xa"):o=wi("0x22"),s={type:"format",content:Yo(e,o,Yo(e,this[wi("0x6")](n[wi("0x34")][0].type)))};break;case wi("0x1b"):o=n[wi("0x34")][0][wi("0x2f")]?"*Format:* set order to reversed":wi("0x3b"),s={type:"format",content:Yo(e,o)};break;case"listStart":o=wi("0x9"),s={type:wi("0x2b"),content:Yo(e,o,n[wi("0x34")][0][wi("0xb")])}}return s}[wi("0xd")](){var t,e,n,o;const s=this.editor[wi("0x3")][wi("0x4")](wi("0x30"));let r=Array[wi("0x8")](this[wi("0x39")][wi("0x31")][wi("0xc")][wi("0x33")][wi("0x21")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x18"),wi("0x23")))&&r[wi("0x13")](...s[wi("0x1c")](this[wi("0x39")][wi("0x31")].document[wi("0x33")].getFirstPosition(),wi("0x29"))),(null===(e=r[r[wi("0x36")]-1])||void 0===e?void 0:e.is(wi("0x18"),wi("0x23")))&&r[wi("0x0")](...s[wi("0x1c")](this[wi("0x39")][wi("0x31")][wi("0xc")][wi("0x33")].getLastPosition(),"forward")),r=[...new Set(r)],(null===(o=null===(n=this.editor[wi("0x31")][wi("0xc")][wi("0x33")][wi("0x26")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is("element",wi("0x23")))&&(r=r[wi("0x16")]((t=>t.is(wi("0x18"),wi("0x23"))))),r}[wi("0x14")](t){const e=this[wi("0x39")].plugins[wi("0x4")](wi("0x30"));let n=Array[wi("0x8")](this[wi("0x39")].model.document[wi("0x33")].getSelectedBlocks())[wi("0x16")](t)[wi("0x3c")]((t=>{const n=this[wi("0x39")][wi("0x31")][wi("0x35")](t,0);return[...e[wi("0x1c")](n,wi("0x29")),...e.getSiblingNodes(n,wi("0x12"))]}))[wi("0x10")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return wi("0x32")+this.editor[wi("0x3")][wi("0x4")]("ListUtils")[wi("0x5")](t)[wi("0x1f")]()+"_LIST_"+t.toUpperCase()[wi("0x2c")](/-/g,"_")}}const Fi=["registerElementLabel","has","locale","media","plugins","downcastDispatcher","get","conversion","attribute:url:media","elementToElement","dataDowncast","MediaEmbedEditing","ELEMENT_MEDIA","mediaEmbed","TrackChangesEditing","data","high","_descriptionFactory","showSuggestionHighlights"];var Pi,Di;Pi=Fi,Di=104,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Bi("0xb")](Bi("0x2")))return;const e=t[Bi("0xe")][Bi("0x10")](Bi("0x5")),n=t[Bi("0xc")];e.enableCommand(Bi("0x4")),e[Bi("0x8")][Bi("0xa")](Bi("0xd"),(t=>Yo(n,Bi("0x3"),t))),t[Bi("0x11")].for(Bi("0x1"))[Bi("0x0")]({model:Bi("0xd"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x9")])return e.createEmptyElement("div")},converterPriority:Bi("0x7")}),t[Bi("0x6")][Bi("0xf")].on(Bi("0x12"),((t,e,n)=>{n.options[Bi("0x9")]&&t.stop()}),{priority:Bi("0x7")})}}const Ui=["plugins","get","MentionEditing","TrackChangesEditing","has","editor","mention"];var Gi,Hi;Gi=Ui,Hi=359,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this[zi("0x3")];t[zi("0x5")][zi("0x2")](zi("0x0"))&&t[zi("0x5")][zi("0x6")](zi("0x1")).enableCommand(zi("0x4"))}}const Vi=["pageBreak","locale","afterInit","enableCommand","has","get","registerElementLabel","PageBreakEditing","TrackChangesEditing","plugins","_descriptionFactory","editor"];var Ki,qi;Ki=Vi,qi=367,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const $i=function(t,e){return Vi[t-=0]};class Xi extends t.Plugin{[$i("0x7")](){const t=this[$i("0x4")];if(!t[$i("0x2")][$i("0x9")]($i("0x0")))return;t.plugins.get("TrackChangesEditing")[$i("0x8")]($i("0x5"));const e=t[$i("0x2")][$i("0xa")]($i("0x1")),n=t[$i("0x6")];e[$i("0x3")][$i("0xb")]($i("0x5"),(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const Ji=["plugins","editing","model","paragraph","*Insert:* %0","TrackChangesEditing","type","addClass","insertion","createUIElement","get","isTouching","options","data","checkChild","name","locale","markerRange","insert","addMarker:suggestion:insertion","commandName","Paragraph","end","highest","afterInit","parent","getItemLabel","schema","format","getFirstRange","toViewPosition","filter","downcastDispatcher","mapper","start","markerName","activeMarkers","*Change to:* %0","blockName","editor","consume","_descriptionFactory","registerDescriptionCallback","selection","change","isLimit","enableCommand","ck-suggestion-marker-split","from","isBlock","nodeAfter","markBlockFormat","document","consumable","showSuggestionHighlights","writer","insertParagraph"];var Qi,Zi;Qi=Ji,Zi=329,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x25")](){const t=this[Yi("0x34")];if(!t[Yi("0xd")].has(Yi("0x22")))return;const e=t[Yi("0x1d")],n=t.plugins.get(Yi("0x12"));n._descriptionFactory.registerElementLabel(Yi("0x10"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n.enableCommand(Yi("0x10"),((e,o={})=>{const s=t[Yi("0xf")][Yi("0x8")],r=o[Yi("0x38")]||s[Yi("0x38")],i=Array[Yi("0x4")](r.getSelectedBlocks())[Yi("0x2c")]((t=>{return e=t,(n=this.editor.model[Yi("0x28")])[Yi("0x1b")](e[Yi("0x26")],Yi("0x10"))&&!n.isObject(e)&&Yi("0x10")!=e[Yi("0x1c")];var e,n}));t[Yi("0xf")][Yi("0x0")]((()=>{for(const t of i)n[Yi("0x7")](t,{commandName:Yi("0x10"),commandParams:[],formatGroupId:Yi("0x33")},fs(t))}))})),n[Yi("0x36")][Yi("0x37")]((t=>{const{data:n}=t;if(n&&Yi("0x10")==n[Yi("0x21")])return{type:Yi("0x29"),content:Yo(e,Yi("0x32"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n[Yi("0x2")](Yi("0xc")),t[Yi("0xe")].downcastDispatcher.on(Yi("0x20"),ex(t),{priority:Yi("0x24")}),t[Yi("0x1a")][Yi("0x2d")].on(Yi("0x20"),((e,n,o)=>{o[Yi("0x19")][Yi("0xa")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x24")});const o=n[Yi("0x36")];o[Yi("0x37")]((n=>{if(Yi("0x15")!==n[Yi("0x13")])return;const{start:s,end:r}=n[Yi("0x2a")]();if(!s[Yi("0x18")](r)||!s.nodeAfter)return;const i=t[Yi("0xf")][Yi("0x28")],x=s[Yi("0x6")];return i[Yi("0x5")](x)&&!i[Yi("0x1")](x)&&i[Yi("0x1b")](x,"$text")?{type:Yi("0x15"),content:Yo(e,Yi("0x11"),o[Yi("0x27")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0xd")][Yi("0x17")](Yi("0x12")),i=o[Yi("0x1e")][Yi("0x2f")],x=o[Yi("0x1e")][Yi("0x23")],a=t[Yi("0xf")][Yi("0x28")];if(!i[Yi("0x18")](x)||!i[Yi("0x6")])return;const c=i[Yi("0x6")];if(a.isBlock(c)&&!a[Yi("0x1")](c)&&a[Yi("0x1b")](c,"$text")){if(!s[Yi("0x9")][Yi("0x35")](o.markerRange,n[Yi("0x1c")]))return;const t=s.writer[Yi("0x16")]("span",{class:Yi("0x3")}),i=s.mapper[Yi("0x2b")](x);e&&r[Yi("0x31")].includes(o[Yi("0x30")])&&s[Yi("0xb")][Yi("0x14")]("ck-suggestion-marker--active",t),s[Yi("0xb")][Yi("0x1f")](i,t),s[Yi("0x2e")].bindElementToMarker(t,o[Yi("0x30")])}}}const nx=["getItems","has","change","isCollapsed","createRangeOn","commandName","getAttributes","RemoveFormatEditing","editor","selection","TrackChangesEditing","enableCommand","get","getRanges","format","plugins","from","removeFormat","locale","registerDescriptionCallback","afterInit","getAttributeProperties","model","markInlineFormat","_descriptionFactory","*Remove all formatting*"];var ox,sx;ox=nx,sx=105,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x13")](){const t=this[rx("0x7")];if(!t[rx("0xe")][rx("0x0")](rx("0x6")))return;const e=t[rx("0xe")][rx("0xb")](rx("0x9"));e[rx("0xa")]("removeFormat",(n=>{const o=t[rx("0x15")].document[rx("0x8")];o[rx("0x2")]?n():t[rx("0x15")][rx("0x1")]((()=>{const n=Array[rx("0xf")](o[rx("0xc")]());for(const o of n)for(const n of o[rx("0x19")]())xx(n,t[rx("0x15")].schema)&&e[rx("0x16")](t.model[rx("0x3")](n),{commandName:rx("0x10"),commandParams:[]})}))})),e[rx("0x17")][rx("0x12")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[rx("0x4")])return{type:rx("0xd"),content:Yo(t[rx("0x11")],rx("0x18"))}}))}}function xx(t,e){for(const[n]of t[rx("0x5")]()){const t=e[rx("0x14")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["enableCommand","TrackChangesEditing","editor","discardSelectedSuggestions","RestrictedEditingModeEditing","discardSuggestion","acceptAllSuggestions","afterInit","acceptSelectedSuggestions","trackChanges","get","discardAllSuggestions","goToNextRestrictedEditingException","plugins","goToPreviousRestrictedEditingException"];var cx,lx;cx=ax,lx=222,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0xa")](){const t=this[dx("0x5")];if(!t[dx("0x1")].has(dx("0x7")))return;const e=t[dx("0x1")][dx("0xd")](dx("0x4"));e[dx("0x3")](dx("0x2")),e[dx("0x3")](dx("0x0"));const n=t.plugins[dx("0xd")]("RestrictedEditingModeEditing");n.enableCommand(dx("0xc")),n[dx("0x3")]("acceptSuggestion"),n[dx("0x3")](dx("0x8")),n[dx("0x3")](dx("0x9")),n[dx("0x3")](dx("0xe")),n[dx("0x3")](dx("0xb")),n[dx("0x3")](dx("0x6"))}}const gx=["markerName","downcastDispatcher","high","bindElementToMarker","showSuggestionHighlights","span","plugins","addClass","_descriptionFactory","addMarker:suggestion","split","mapper","ck-suggestion-marker-","addMarker:suggestion:deletion","ck-suggestion-marker--active","includes","model","init","writer","ELEMENT_LINE_BREAK","softBreak","shiftEnter","insert","get","merge","enableCommand","data","options","activeMarkers","consumable","test","locale","editing","element","name","createPositionBefore","markerRange","deletion","requires"];var mx,fx;mx=gx,fx=313,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x25")](){return[nr.ShiftEnter]}[hx("0x10")](){const t=this.editor,e=t[hx("0x5")][hx("0x16")]("TrackChangesEditing");e[hx("0x18")](hx("0x14")),t.editing[hx("0x0")].on("addMarker:suggestion:insertion",bx(t),{priority:hx("0x1")}),t[hx("0x1f")].downcastDispatcher.on(hx("0xc"),bx(t),{priority:hx("0x1")}),t[hx("0x19")].downcastDispatcher.on(hx("0x8"),((e,n,o)=>{o[hx("0x1a")][hx("0x3")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x7")].registerElementLabel(hx("0x13"),(e=>Yo(t[hx("0x1e")],hx("0x12"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x5")][hx("0x16")]("TrackChangesEditing");if(!s[hx("0x1c")][hx("0x1d")](o.markerRange,n[hx("0x21")]))return;const i=t[hx("0xf")];for(const t of o[hx("0x23")].getItems()){if(!t.is(hx("0x20"),hx("0x13")))continue;const n=hx("0x24")==o[hx("0x26")][hx("0x9")](":")[1]?hx("0x17"):"split",x=s[hx("0x11")].createUIElement(hx("0x4"),{class:hx("0xb")+n}),a=s[hx("0xa")].toViewPosition(i[hx("0x22")](t));e&&r[hx("0x1b")][hx("0xe")](o[hx("0x26")])&&s[hx("0x11")][hx("0x6")](hx("0xd"),x),s[hx("0x11")][hx("0x15")](a,x),s[hx("0xa")][hx("0x2")](x,o[hx("0x26")])}}}const Ex=["has","markInlineFormat","selection","document","commandParams","commandName","commands","forceValue","locale","from","get","change","StandardEditingModeEditing","model","TrackChangesEditing","registerDescriptionCallback","afterInit","FORMAT_RESTRICTED_DISABLED","enableCommand","value","editor","_descriptionFactory","plugins"];var _x,Tx;_x=Ex,Tx=472,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x4")](){const t=this[Cx("0x8")],e=t[Cx("0x1")],n=t[Cx("0x13")];if(!t.plugins[Cx("0xb")](Cx("0x0")))return;const o=t[Cx("0xa")][Cx("0x15")](Cx("0x2")),s="restrictedEditingException",r=t[Cx("0x11")].get(s);o[Cx("0x6")](s,((t,n={})=>{const i=e[Cx("0xe")][Cx("0xd")];if(i.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n[Cx("0x12")]:!r[Cx("0x7")];e[Cx("0x16")]((()=>{const t=Array[Cx("0x14")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0xc")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x9")][Cx("0x3")]((t=>{const{data:e}=t;if(e&&e[Cx("0x10")]==s)return e[Cx("0xf")][0].forceValue?{type:"format",content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:"format",content:Yo(n,Cx("0x5"))}}))}}const kx=["format","isBlock","getItems","style","style.definitions","*Remove format:* %0","enableCommand","inline","TrackChangesEditing","model","from","_getStyleDefinition","get","push","commands","plugins","getRanges","style:","every","Style","DataSchema","change","toLowerCase","add","_getRangesWithClasses","name","commandName","document","element","config","enabledStyles","registerDescriptionCallback","find","StyleUtils","normalizeConfig","createRangeOn","forceValue","styleName","block","isCollapsed","has","includes","commandParams"];var Ax,vx;Ax=kx,vx=280,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;if(!t[Rx("0x24")][Rx("0x12")](Rx("0x28")))return;const e=t[Rx("0x23")].get(Rx("0x18")),n=t[Rx("0x24")][Rx("0x21")](Rx("0x1d")),o=t.locale,s=t.plugins.get(Rx("0x29")),r=t[Rx("0x24")][Rx("0x21")](Rx("0xb"))[Rx("0xc")](s,t[Rx("0x7")][Rx("0x21")](Rx("0x19")));n[Rx("0x1b")](Rx("0x18"),((o,{styleName:i})=>{const x=t.model[Rx("0x5")].selection,a=this._getStyleDefinition(i,r);if(!a)return;if(!e[Rx("0x8")][Rx("0x13")](i))return;if(x[Rx("0x11")]&&!a[Rx("0x16")])return void o({styleName:i});const c=!e.value[Rx("0x13")](a[Rx("0x3")]);if(a[Rx("0x16")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x13")](o[Rx("0x3")])){n[Rx("0x1")](o);break}}return n}(x.getSelectedBlocks(),a.modelElements);t[Rx("0x1e")].change((()=>{for(const t of e)n.markBlockFormat(t,{commandName:Rx("0x18"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x26")+i})}))}else{let e=Array[Rx("0x1f")](x[Rx("0x25")]());if(!c){const n=Array[Rx("0x1f")](s.getDefinitionsForView(a[Rx("0x6")],!1))[0].model,o=[];for(const s of e){const e=this[Rx("0x2")](t[Rx("0x1e")],s,a.classes,n);o[Rx("0x22")](...e)}e=o}t[Rx("0x1e")][Rx("0x2a")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Rx("0x18"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[Rx("0x9")]((t=>{const{data:e}=t;if(e&&Rx("0x18")===e[Rx("0x4")])return e[Rx("0x14")][0][Rx("0xe")]?{type:Rx("0x15"),content:Yo(o,"*Format:* %0",e[Rx("0x14")][0][Rx("0xf")][Rx("0x0")]())}:{type:Rx("0x15"),content:Yo(o,Rx("0x1a"),e[Rx("0x14")][0][Rx("0xf")][Rx("0x0")]())}}))}[Rx("0x20")](t,e){let n=e[Rx("0x10")][Rx("0xa")]((e=>e[Rx("0x3")]===t));return n||(n=e[Rx("0x1c")][Rx("0xa")]((e=>e.name===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0x17")]()){const e=r.getAttribute(o);e&&n[Rx("0x27")]((t=>e.classes[Rx("0x13")](t)))&&s[Rx("0x22")](t[Rx("0xd")](r))}return s}}const Ix=["MIN_SAFE_INTEGER","getSuggestion","above","includes","ELEMENT_TABLE_ROW_WITH_TEXT","maxColumn","add","commands","refresh","end","ELEMENT_TABLE_COLUMN","insert","type","nodeBefore","MAX_SAFE_INTEGER","removeTableRow","substr","isTouching","batch","from","enableCommand","getItems","start","table","rowspan","_getSuggestionCoords","$textProxy","suggestion","push","deletion","min","_tableSuggestions","fromRange","isArray","data","addRange","removeTableColumn","maxRow","createRangeOn","findAncestor","ELEMENT_TABLE_COLUMN_WITH_TEXT","insertTableRowAbove","insertTableColumnRight","getCellLocation","change","isInContent","markMultiRangeInsertion","_suggestionFactory","ELEMENT_TABLE_ROW","_acceptFormatSuggestionCallbackFactory","colspan","position","span","ELEMENT_TABLE","getRowIndexes","detach","model","registerCustomCallback","writer","insertTable","plugins","rootName","some","options","tableRow","_descriptionFactory","toLowerCase","highest","max","discard","getSelectionAffectedTableCells","removeClass","get","first","length","low","tablePaste","getRanges","registerDescriptionCallback","getAttribute","selectTableColumn","registerElementLabel","join","left","nodeAfter","_splitMarkerName","accept","createTableWalker","insertTableColumnLeft","showSuggestionHighlights","insertion","addMarker:suggestion","locale","execute","every","enqueueChange","TrackChangesEditing","insertTableRowBelow","differ","hasAttribute","filter","selectTableRow","*Insert:* %0","document","setSelection","editor","root","minColumn","markMultiRangeDeletion","last","*Remove:* %0","change:data","isIntersectingWithRange","getChangedMarkers","getContainedElement","oldRange","getColumnIndexes","order","_setupColumnsRowsFixing","downcastDispatcher","ELEMENT_TABLE_WITH_TEXT","has","tableColumn","selection","classes","$graveyard","values","_getCoordsForCells","getFirstRange","TableUtils","element","tableCell","_tablePostFixingSubtypes","startsWith","subType","cell","map","name","item"];var Lx,Nx;Lx=Ix,Nx=172,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x63")]=["tableRow",Mx("0x59")],this[Mx("0x89")]=new Set}afterInit(){const t=this.editor,e=t.model[Mx("0x46")][Mx("0x5a")];if(!t.plugins[Mx("0x58")]("TableEditing"))return;const n=t[Mx("0x3b")],o=t[Mx("0x1b")][Mx("0x27")](Mx("0x3f")),s=t[Mx("0x1b")][Mx("0x27")]("TableUtils");o[Mx("0x20")][Mx("0x30")](Mx("0x81"),(t=>Yo(n,Mx("0x14"),t))),this._setupColumnsRowsFixing(),o[Mx("0x7e")](Mx("0x1a")),o[Mx("0x7e")](Mx("0x44")),o.enableCommand(Mx("0x2f"));for(const n of[Mx("0x8"),Mx("0x40")]){const r=t[Mx("0x71")][Mx("0x27")](n);o[Mx("0x7e")](n,(n=>{t.model[Mx("0xb")]((t=>{n();const i=Mx("0x6c")===r[Mx("0x54")],x=s[Mx("0x25")](e),a=s[Mx("0x15")](x),c=i?a[Mx("0x28")]-1:a[Mx("0x4c")]+1,l=x[0][Mx("0x6")](Mx("0x81")),d=s[Mx("0x36")](l,{startRow:c,endRow:c}),u=Array.from(d)[Mx("0x67")]((e=>t.createRangeOn(e[Mx("0x66")])));o[Mx("0xd")](u,Mx("0x1f"))}))}))}for(const n of[Mx("0x37"),Mx("0x9")]){const r=t[Mx("0x71")][Mx("0x27")](n);o[Mx("0x7e")](n,(n=>{t.model[Mx("0xb")]((t=>{n();const i=Mx("0x32")===r[Mx("0x54")],x=s.getSelectionAffectedTableCells(e),a=s[Mx("0x53")](x),c=i?a[Mx("0x28")]-1:a[Mx("0x4c")]+1,l=x[0][Mx("0x6")]("table"),d=s[Mx("0x36")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x7d")](d)[Mx("0x67")]((e=>t[Mx("0x5")](e[Mx("0x66")])));o[Mx("0xd")](u,Mx("0x59"))}))}))}for(const n of[Mx("0x79"),"removeTableColumn"]){const r=n[Mx("0x7a")](11),i=r[Mx("0x21")](),x=i[Mx("0x7a")](0,3)+Mx("0x13"),a=Mx("0x81")+r,c=Mx("0x88")+r,l="max"+r;o[Mx("0x7e")](n,(()=>{t.model[Mx("0xb")]((t=>{const r=s[Mx("0x25")](e),d=r[0].findAncestor(Mx("0x81"));let u;if(Mx("0x79")==n){const t=s[Mx("0x15")](r);u={startRow:t.first,endRow:t[Mx("0x4c")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t[Mx("0x28")],endColumn:t.last,includeAllSlots:!0}}const g=s[Mx("0x36")](d,u),m=Array[Mx("0x7d")](g)[Mx("0x67")]((({cell:t})=>t)),f=Ox(m[Mx("0x43")]((t=>t[Mx("0x42")](x)))),h=Ox(m[Mx("0x43")]((t=>!t[Mx("0x42")](x))))[Mx("0x67")]((e=>t[Mx("0x5")](e))),p=o[Mx("0x4b")](h,a);if(p&&(Mx("0x1f")==p[Mx("0x65")]||Mx("0x59")==p[Mx("0x65")])){const e=this[Mx("0x83")](p);for(const n of f){const o=t[Mx("0x5")](n),r=s[Mx("0xa")](n),a=n[Mx("0x2e")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array[Mx("0x7d")](e[Mx("0x2c")]())[Mx("0x67")]((t=>i.LiveRange.fromRange(t)));t[Mx("0x17")][Mx("0xb")]((e=>{const s=e[Mx("0x7c")];n=n[Mx("0x43")]((t=>Mx("0x5c")!=t[Mx("0x49")][Mx("0x1c")])),e[Mx("0x47")](n),t[Mx("0x71")][Mx("0x27")](Mx("0x79")).refresh(),t.execute("removeTableRow",{forceDefaultExecution:!0}),t[Mx("0x17")][Mx("0x3e")]((()=>{t[Mx("0x17")][Mx("0x3e")](s,(t=>{const e=o[Mx("0x43")]((t=>Mx("0x5c")!=t.root[Mx("0x1c")]));e[Mx("0x29")]>0&&t[Mx("0x47")](e);for(const t of o)t[Mx("0x16")]()}))}))}))}function a(n){t[Mx("0x17")].change((o=>{const s=Array[Mx("0x7d")](e.getRanges())[Mx("0x67")]((t=>i.LiveRange[Mx("0x8a")](t))),r=[];for(const t of n)for(const e of t[Mx("0x7f")]({shallow:!0}))r[Mx("0x86")](e);for(const e of r)"$graveyard"!=e[Mx("0x49")][Mx("0x1c")]&&(o[Mx("0x47")](o.createPositionAt(e,0)),t[Mx("0x71")][Mx("0x27")](Mx("0x3"))[Mx("0x72")](),t[Mx("0x3c")](Mx("0x3"),{forceDefaultExecution:!0}));const x=s[Mx("0x43")]((t=>Mx("0x5c")!=t[Mx("0x49")].rootName));x[Mx("0x29")]>0&&o.setSelection(x);for(const t of s)t[Mx("0x16")]()}))}function c(t,e){return e[Mx("0x3d")]((e=>t.some((t=>t.end.isEqual(e[Mx("0x80")])||e[Mx("0x73")].isEqual(t[Mx("0x80")])))))}function l(t,e){return t[Mx("0x1d")]((t=>e[Mx("0x1d")]((e=>t[Mx("0x73")][Mx("0x7b")](e[Mx("0x80")])))))}t.data[Mx("0x56")].on(Mx("0x3a"),((t,e,n)=>{if(!n[Mx("0x1e")][Mx("0x38")])return;const o=e[Mx("0x69")];if(!o)return;const s=n.mapper.toViewElement(o);function r(t){return Array[Mx("0x0")](t)?t:[t]}s&&Mx("0x62")===o[Mx("0x68")]&&(0,x.setHighlightHandling)(s,n[Mx("0x19")],((t,e,n)=>n.addClass(r(e[Mx("0x5b")]),t)),((t,e,n)=>n[Mx("0x26")](r(e.classes),t)))}),{priority:Mx("0x22")}),o[Mx("0x20")].registerDescriptionCallback((t=>{if(Mx("0x39")!=t[Mx("0x76")]&&Mx("0x87")!=t[Mx("0x76")])return;const e=t[Mx("0x51")]();if(null!=e&&e.is(Mx("0x61"),Mx("0x81"))){if(Mx("0x39")==t[Mx("0x76")]){const e=t[Mx("0x7f")]()[Mx("0x43")]((t=>t.is(Mx("0x84"))))[Mx("0x67")]((t=>t.data));if(e[Mx("0x29")])return{type:Mx("0x39"),content:Yo(n,Mx("0x45"),Yo(n,Mx("0x57"),'"'+e[Mx("0x31")](" ")+'"'))}}if(Mx("0x87")==t[Mx("0x76")]){const e=t[Mx("0x7f")]()[Mx("0x43")]((t=>t.is(Mx("0x84"))))[Mx("0x67")]((t=>t[Mx("0x1")]));if(e[Mx("0x29")])return{type:Mx("0x87"),content:Yo(n,Mx("0x4d"),Yo(n,Mx("0x57"),'"'+e[Mx("0x31")](" ")+'"'))}}}})),o[Mx("0x20")][Mx("0x2d")]((t=>{if("tableRow"==t[Mx("0x65")]){const e=t.getItems()[Mx("0x43")]((t=>t.is(Mx("0x84")))).map((t=>t.data)),o=this[Mx("0x83")](t),s=o[Mx("0x4")]-o.minRow+1;if(Mx("0x39")==t[Mx("0x76")])return e[Mx("0x29")]?{type:Mx("0x39"),content:Yo(n,Mx("0x45"),Yo(n,Mx("0x6e"),[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x39"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))};if(Mx("0x87")==t[Mx("0x76")])return e[Mx("0x29")]?{type:"deletion",content:Yo(n,Mx("0x4d"),Yo(n,Mx("0x6e"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x87"),content:Yo(n,Mx("0x4d"),Yo(n,Mx("0xf"),s))}}if(Mx("0x59")==t[Mx("0x65")]){const e=t.getItems()[Mx("0x43")]((t=>t.is("$textProxy")))[Mx("0x67")]((t=>t[Mx("0x1")])),o=this[Mx("0x83")](t),s=o[Mx("0x6f")]-o[Mx("0x4a")]+1;if(Mx("0x39")==t[Mx("0x76")])return e[Mx("0x29")]?{type:Mx("0x39"),content:Yo(n,Mx("0x45"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x39"),content:Yo(n,Mx("0x45"),Yo(n,Mx("0x74"),s))};if(Mx("0x87")==t[Mx("0x76")])return e.length?{type:Mx("0x87"),content:Yo(n,Mx("0x4d"),Yo(n,Mx("0x7"),[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x74"),s))}}})),o[Mx("0xe")][Mx("0x18")](Mx("0x39"),Mx("0x1f"),"discard",r),o._suggestionFactory.registerCustomCallback(Mx("0x87"),Mx("0x1f"),Mx("0x35"),r),o[Mx("0xe")][Mx("0x18")]("insertion",Mx("0x59"),Mx("0x24"),a),o[Mx("0xe")].registerCustomCallback(Mx("0x87"),"tableColumn","accept",a),o[Mx("0xe")][Mx("0x18")](Mx("0x39"),Mx("0x59"),"join",c),o[Mx("0xe")][Mx("0x18")](Mx("0x87"),Mx("0x59"),Mx("0x31"),c),o[Mx("0xe")][Mx("0x18")](Mx("0x39"),Mx("0x1f"),Mx("0x31"),l),o[Mx("0xe")][Mx("0x18")](Mx("0x87"),"tableRow",Mx("0x31"),l)}[Mx("0x10")](){const t=this[Mx("0x48")],e=t[Mx("0x17")].document.selection;return(n,o)=>{t[Mx("0x17")][Mx("0xb")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x73")][Mx("0x77")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Mx("0x80")].nodeAfter);const c=s.createRangeIn(a);if(Mx("0x5c")==c[Mx("0x49")][Mx("0x1c")])return;const l=Array[Mx("0x7d")](e[Mx("0x2c")]())[Mx("0x67")]((t=>i.LiveRange.fromRange(t)));s.setSelection(c),t.commands[Mx("0x27")](r).refresh(),x[Mx("0x86")]({forceDefaultExecution:!0}),t.execute(r,...x);const d=l[Mx("0x43")]((t=>Mx("0x5c")!=t[Mx("0x49")].rootName));d[Mx("0x29")]>0&&s[Mx("0x47")](d);for(const t of l)t[Mx("0x16")]()}))}}[Mx("0x5e")](t){const e=this[Mx("0x48")].plugins[Mx("0x27")](Mx("0x60"));let n=Number[Mx("0x78")],o=Number[Mx("0x6a")],s=Number[Mx("0x78")],r=Number[Mx("0x6a")];for(const i of t){if("$graveyard"==i[Mx("0x49")].rootName)continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x42")](Mx("0x82"))?i[Mx("0x2e")](Mx("0x82"))-1:0,c=i[Mx("0x42")](Mx("0x11"))?i.getAttribute(Mx("0x11"))-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}}[Mx("0x55")](){const t=this[Mx("0x48")],e=t[Mx("0x1b")][Mx("0x27")](Mx("0x3f")),n=t[Mx("0x1b")][Mx("0x27")](Mx("0x60"));t.model[Mx("0x46")].on(Mx("0x4e"),(()=>{const n=Array[Mx("0x7d")](t[Mx("0x17")][Mx("0x46")][Mx("0x41")][Mx("0x50")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x34")](t);if(Mx("0x85")!=n)continue;if(null!=o[Mx("0x52")])continue;const i=e[Mx("0x6b")](s);this._tablePostFixingSubtypes[Mx("0x6d")](r)&&this[Mx("0x89")][Mx("0x70")](i)}}),{priority:Mx("0x2a")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x5")](t),r=t.findAncestor(Mx("0x81")),i=n[Mx("0xa")](t);for(const e of this._tableSuggestions){const n=e[Mx("0x65")],x=n[Mx("0x64")](Mx("0x2b")),a=n.substr(x?10:5),c=a[Mx("0x21")](),l=c[Mx("0x7a")](0,3)+"span",d=Mx("0x88")+a,u=Mx("0x23")+a;if(!e[Mx("0xc")])continue;if(r!=e[Mx("0x5f")]()[Mx("0x80")][Mx("0x6")](Mx("0x81")))continue;if(e[Mx("0x4f")](s))continue;const g=t[Mx("0x42")](l)?t[Mx("0x2e")](l)-1:0,m=this[Mx("0x83")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x2")](s),o=!0)}return o};t[Mx("0x17")].document.registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x17")].document[Mx("0x41")].getChanges())if(Mx("0x75")==s[Mx("0x76")])if(Mx("0x1f")==s[Mx("0x68")])for(const t of s[Mx("0x12")][Mx("0x33")].getChildren())n=n||o(t,e);else Mx("0x62")==s.name&&(n=n||o(s[Mx("0x12")][Mx("0x33")],e));return n}))}[Mx("0x83")](t){return this[Mx("0x5e")](t[Mx("0x2c")]().map((t=>t[Mx("0x80")][Mx("0x33")])))}}function Ox(t){return Array[Mx("0x7d")](new Set(t)[Mx("0x5d")]())}const Fx=["element","from","createTableWalker","getAncestors","afterInit","type","requires","findAncestor","_acceptFormatSuggestionCallbackFactory","isInContent","root","mergeTableCells","map","insertion","*Split cell:* horizontally","execute","enableCommand","editor","forceDefaultExecution","author","$graveyard","setSelection","mergeTableCellUp","mergeTableCellRight","markBlockFormat","commands","model","cell","mergeTableCellLeft","isEnabled","refresh","format","add","_tablePostFixingSubtypes","*Merge cells*","_suggestionFactory","_areSelectedCellsMergable","registerCustomCallback","low","_isForcedDefaultExecutionBlock","value","highest","commandName","getRanges","length","selection","_areMergableCells","*Split cell:* vertically","deletion","plugins","detach","mergeTableCellDown","accept","TableEditing","set:isEnabled","markMultiRangeBlockFormat","subType","_descriptionFactory","rootName","formatBlock","getSelectionAffectedTableCells","has","change","splitTableCellVertically","filter","get","trackChanges","stop","find","containsRange","splitTableCellHorizontally","size","registerDescriptionCallback","direction","horizontally","getFirstPosition","tableCell","document","TrackChangesEditing","createRangeOn"];var Px,Dx;Px=Fx,Dx=178,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x44")](){return[wx]}[Bx("0x42")](){const t=this.editor,e=t.model[Bx("0x3b")][Bx("0x1b")],n=t.locale;if(!t.plugins[Bx("0x2b")](Bx("0x23")))return;const o=t.plugins[Bx("0x2f")](Bx("0x3c")),s=t.plugins.get("TableUtils"),r=t[Bx("0x1f")].get(wx);r[Bx("0xf")].push(Bx("0x49")),o[Bx("0x4e")](Bx("0x49"),(()=>{const e=s[Bx("0x2a")](t.model[Bx("0x3b")][Bx("0x1b")]);t[Bx("0x8")].change((()=>{o[Bx("0x25")](e,{commandName:Bx("0x49"),commandParams:[]},[],Bx("0x49"))}))})),t[Bx("0x7")][Bx("0x2f")](Bx("0x49")).on(Bx("0x4d"),((e,n)=>{t[Bx("0x7")][Bx("0x2f")](Bx("0x30"))[Bx("0x16")]&&(n[Bx("0x1a")]>0&&n[n[Bx("0x1a")]-1]&&n[n.length-1][Bx("0x0")]||o[Bx("0x15")]||this[Bx("0x12")]()||e[Bx("0x31")]())}),{priority:Bx("0x17")});for(const e of[Bx("0x4"),Bx("0x5"),Bx("0x21"),Bx("0xa")]){const n=t[Bx("0x7")].get(e);o.enableCommand(e,(()=>{const e=t[Bx("0x8")].document[Bx("0x1b")][Bx("0x39")]()[Bx("0x41")]()[Bx("0x32")]((t=>t.is(Bx("0x3e"),Bx("0x3a")))),s=n[Bx("0x16")];t.model[Bx("0x2c")]((()=>{o[Bx("0x25")]([e,s],{commandName:Bx("0x49"),commandParams:[]},[],Bx("0x49"))}))}))}for(const e of[Bx("0x2d"),Bx("0x34")]){const n=t.commands[Bx("0x2f")](e);o[Bx("0x4e")](e,(()=>{const r=s[Bx("0x2a")](t[Bx("0x8")][Bx("0x3b")][Bx("0x1b")])[0],i=r[Bx("0x45")]("table"),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Bx("0x38")==n[Bx("0x37")]){const t=s[Bx("0x40")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x3f")](t).map((t=>t[Bx("0x9")]))}else{const t=s[Bx("0x40")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x3f")](t)[Bx("0x4a")]((t=>t[Bx("0x9")]))}t[Bx("0x8")][Bx("0x2c")]((t=>{o[Bx("0x6")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x27")][Bx("0x36")]((t=>{const{data:e}=t;if(e)return Bx("0x49")==e[Bx("0x18")]?{type:Bx("0xd"),content:Yo(n,Bx("0x10"))}:void 0})),o[Bx("0x27")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x2d")==e[Bx("0x18")]?{type:Bx("0xd"),content:Yo(n,Bx("0x1d"))}:Bx("0x34")==e[Bx("0x18")]?{type:"format",content:Yo(n,Bx("0x4c"))}:void 0}));const x=r[Bx("0x46")]();for(const t of[Bx("0x4"),Bx("0x5"),"mergeTableCellDown",Bx("0xa")])o[Bx("0x11")][Bx("0x13")](Bx("0x29"),t,Bx("0x22"),x);for(const t of[Bx("0x2d"),Bx("0x34")])o[Bx("0x11")][Bx("0x13")]("formatBlock",t,Bx("0x22"),x);o[Bx("0x11")].registerCustomCallback(Bx("0x29"),Bx("0x49"),"accept",(n=>{t[Bx("0x8")][Bx("0x2c")]((o=>{const s=Array[Bx("0x3f")](e[Bx("0x19")]())[Bx("0x4a")]((t=>i.LiveRange.fromRange(t)));o[Bx("0x3")](n),t.commands[Bx("0x2f")](Bx("0x49"))[Bx("0xc")](),t[Bx("0x4d")](Bx("0x49"),{forceDefaultExecution:!0});const r=s[Bx("0x2e")]((t=>Bx("0x2")!=t[Bx("0x48")][Bx("0x28")]));r[Bx("0x1a")]>0&&o[Bx("0x3")](r);for(const t of s)t[Bx("0x20")]()}))}));for(const e of[Bx("0x4"),"mergeTableCellDown",Bx("0xa"),Bx("0x5")]){const n=t[Bx("0x7")][Bx("0x2f")](e);n.on(Bx("0x24"),((e,o,s)=>{if(s){const o=t[Bx("0x8")][Bx("0x3b")].selection[Bx("0x39")]()[Bx("0x41")]()[Bx("0x32")]((t=>t.is("element",Bx("0x3a"))));this[Bx("0x1c")](n.value,o)||(e.return=!1,e[Bx("0x31")]())}}),{priority:Bx("0x14")})}}_areSelectedCellsMergable(){const t=this[Bx("0x4f")][Bx("0x7")][Bx("0x2f")](Bx("0x49")),e=this[Bx("0x4f")][Bx("0x1f")].get("TableUtils");if(!t[Bx("0xb")])return!1;const n=e.getSelectionAffectedTableCells(this[Bx("0x4f")][Bx("0x8")][Bx("0x3b")][Bx("0x1b")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Bx("0x1c")](t,e){const n=this[Bx("0x4f")].plugins.get(Bx("0x3c")),o=this[Bx("0x4f")][Bx("0x8")][Bx("0x3d")](t),s=this.editor[Bx("0x8")][Bx("0x3d")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if((Bx("0x4b")==t[Bx("0x43")]||Bx("0x1e")==t[Bx("0x43")]||Bx("0x49")==t[Bx("0x26")])&&t[Bx("0x47")])for(const e of t[Bx("0x19")]())e[Bx("0x33")](o,!0)&&r[Bx("0xe")](t.type+":"+t.author.id),e[Bx("0x33")](s,!0)&&i[Bx("0xe")](t[Bx("0x43")]+":"+t[Bx("0x1")].id);if(r[Bx("0x35")]!=i.size)return!1;for(const t of r)if(!i[Bx("0x2b")](t))return!1;return!0}}const Ux=["document","getAttribute","accept","_suggestionFactory","removeAttribute","findAncestor","markBlockFormat","markerName","addMarker:suggestion","writer","editing","setTableRowHeader","parent","last","getChild","start","forceValue","FORMAT_HEADER_COLUMN","markerNameToElements","mapper","plugins","consume","get","nodeAfter","options","ck-suggestion-marker--active","value","downcastDispatcher","createPositionAfter","removeClass","*Format:* %0","markerRange","cell","locale","end","unbindElementFromMarkerName","createRange","_splitMarkerName","model","afterInit","selection","_descriptionFactory","childCount","index","headingRows","activeMarkers","getColumnIndexes","formatBlock","has","setAttribute","getCellLocation","format","addClass","data","headingColumns","ck-suggestion-marker-","createTableWalker","TrackChangesEditing","first","TableEditing","bindElementToMarker","isBefore","commandName","requires","includes","registerCustomCallback","highest","FORMAT_HEADER_ROW","table","FORMAT_REGULAR_COLUMN","getSelectionAffectedTableCells","change","_acceptFormatSuggestionCallbackFactory","consumable","setTableColumnHeader","nodeBefore","toViewElement","getRowIndexes","commandParams","createPositionBefore","enableCommand","TableUtils"];var Gx,Hx;Gx=Ux,Hx=205,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x16")](){return[wx]}[zx("0x50")](){const t=this.editor;if(!t[zx("0x3d")][zx("0x7")](zx("0x12")))return;const e=t[zx("0x4a")],n=t.plugins[zx("0x3f")](zx("0x10")),o=t[zx("0x3d")].get("TableUtils"),s=t[zx("0x3d")][zx("0x3f")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x4e")](r[zx("0x30")]),c=n.getSuggestion(a);if(!c[zx("0xc")]||"setTableColumnHeader"!=c.data[zx("0x15")])return;if(r.item)return void s.stop();if(!i[zx("0x20")][zx("0x3e")](r[zx("0x48")],s.name))return;const l=r.markerRange[zx("0x38")][zx("0x40")],d=r[zx("0x48")][zx("0x4b")][zx("0x22")],u=l[zx("0x35")][zx("0x35")],{column:g}=o.getCellLocation(l),{column:m}=o[zx("0x9")](d);for(let s=g;s<=m;s++){const c=o[zx("0xf")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x49")],c=i[zx("0x3c")][zx("0x23")](s);i.writer[zx("0xb")](zx("0xe")+x,c),e&&i[zx("0x32")][zx("0x8")]("data-suggestion",a,c),i[zx("0x3c")][zx("0x13")](c,r[zx("0x30")]),t&&(n[zx("0x4")][zx("0x17")](r[zx("0x30")])?i[zx("0x32")][zx("0xb")](zx("0x42"),c):i[zx("0x32")].removeClass(zx("0x42"),c))}}}}n[zx("0x27")](zx("0x34"),((e,s)=>{const r=o[zx("0x1d")](t[zx("0x4f")][zx("0x29")][zx("0x51")]),i=o[zx("0x24")](r),x=r[0][zx("0x2e")](zx("0x1b")),a=x[zx("0x2a")](zx("0x3"))||0,c=s&&null!==s[zx("0x39")]?s[zx("0x39")]:!t.commands[zx("0x3f")](zx("0x34"))[zx("0x43")],l=c?i[zx("0x36")]:i[zx("0x11")],d=x[zx("0x37")](l);let u;if(c){const e=x[zx("0x37")](a);if(d[zx("0x2")]<e[zx("0x2")])return;u=t[zx("0x4f")][zx("0x4d")](t[zx("0x4f")].createPositionBefore(e[zx("0x37")](0)),t[zx("0x4f")][zx("0x45")](d[zx("0x37")](d.childCount-1)))}else{const e=x[zx("0x37")](a-1);if(!e)return;u=t[zx("0x4f")][zx("0x4d")](t.model[zx("0x26")](d[zx("0x37")](0)),t[zx("0x4f")].createPositionAfter(e[zx("0x37")](e[zx("0x1")]-1)))}t[zx("0x4f")].change((()=>{n[zx("0x2f")](u,{commandName:zx("0x34"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[zx("0x27")](zx("0x21"),((e,o)=>{const s=t.plugins[zx("0x3f")](zx("0x28")),r=s.getSelectionAffectedTableCells(t[zx("0x4f")][zx("0x29")][zx("0x51")]),i=s[zx("0x5")](r),x=r[0].findAncestor(zx("0x1b")),a=x[zx("0x2a")](zx("0xd"))||0,c=o&&null!==o[zx("0x39")]?o[zx("0x39")]:!t.commands[zx("0x3f")](zx("0x21")).value;let l;const d=x[zx("0x37")](0),u=c?i[zx("0x36")]:i[zx("0x11")],g=s[zx("0xf")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][zx("0x49")];if(c){const e=d[zx("0x37")](a);if(m[zx("0x14")](e))return;l=t[zx("0x4f")].createRange(t.model[zx("0x26")](e),t[zx("0x4f")].createPositionAfter(m))}else{const e=d.getChild(a-1);if(!e)return;l=t.model[zx("0x4d")](t[zx("0x4f")][zx("0x26")](m),t[zx("0x4f")][zx("0x45")](e))}t[zx("0x4f")][zx("0x1e")]((()=>{n.markBlockFormat(l,{commandName:zx("0x21"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[zx("0x33")][zx("0x44")].on("addMarker:suggestion",r(),{priority:zx("0x19")}),t[zx("0xc")][zx("0x44")].on(zx("0x31"),((t,e,n)=>{n[zx("0x41")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x19")}),t[zx("0x33")][zx("0x44")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[zx("0x4e")](e[zx("0x30")]),i=n.getSuggestion(r);if(!i[zx("0xc")]||"setTableColumnHeader"!=i.data.commandName)return;const x=o[zx("0x3c")][zx("0x3b")](e[zx("0x30")]);if(x)for(const t of x)o[zx("0x32")].removeClass(zx("0xe")+s,t),o.writer[zx("0x46")](zx("0x42"),t),o[zx("0x32")][zx("0x2d")]("data-suggestion",t),o[zx("0x3c")][zx("0x4c")](t,e[zx("0x30")])}),{priority:zx("0x19")}),n[zx("0x0")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x34")==n[zx("0x15")]){const t=n[zx("0x25")][0][zx("0x39")];return o(Yo(e,t?zx("0x1a"):"FORMAT_REGULAR_ROW"))}if("setTableColumnHeader"==n[zx("0x15")]){const t=n[zx("0x25")][0][zx("0x39")];return o(Yo(e,zx(t?"0x3a":"0x1c")))}}function o(t){return{type:zx("0xa"),content:Yo(e,zx("0x47"),t)}}}));const i=s[zx("0x1f")]();n[zx("0x2c")][zx("0x18")](zx("0x6"),zx("0x34"),zx("0x2b"),i),n[zx("0x2c")][zx("0x18")]("formatBlock",zx("0x21"),"accept",i)}}const Vx=["cells","isEmpty","getChildren","remove","row","high","reduce","selection","insertContent","setAttribute","markMultiRangeInsertion","_getCoordsForCells","every","suggestion:formatBlock:tablePasteCell","document","$graveyard","tableCellBorderWidth","_descriptionFactory","getShiftedBy","isInContent","end","previous","length","push","getChanges","hasSuggestion","columnInsertionRanges","options","rows","startsWith","tablePaste","columnInsertionIndexes","commands","getRows","attributes","change","low","columns","clipboardOutput","tableCellBorderStyle","table","includes","getRanges","oldRange","markerAttributes","formatBlock","_replaceTableSlotCell","map","locale","Users","editor","from","cell","tablePasteColumn","_tablePostFixingSubtypes","endRow","entries","differ","rowInsertionRanges","_splitMarkerName","removeMarkers","containsRange","TableUtils","endColumn","nodeAfter","tableCellBorderColor","_suggestionFactory","markerName","getSuggestions","insertRows","position","next","tableCellHorizontalAlignment","join","createRangeIn","stop","getTableIfOnlyTableInContent","tableCellSuggestion","tableCell","subType","fromEntries","createPositionBefore","markerToHighlight","rootName","removeMarker","suggestion-td","insertion","findAncestor","registerCustomCallback","plugins","getAllAdjacentSuggestions","getAttributes","requires","discard","TableClipboard","documentSelection","return","isEqual","getSuggestion","rowInsertionIndexes","has","first","ck-suggestion-marker-insertion","insert","filter","view","find","createRangeOn","model","markMultiRangeBlockFormat","listenTo","conversion","element","markers","getMarkers","root","insertColumns","last","wrap","type","move","redo","fill","unwrap","dataDowncast","trackChanges","registerPostFixer","batch","set","getChangedMarkers","getColumns","deletion","getContainedElement","previousSibling","tablePasteRow","createTableWalker","getRange","nextSibling","add","paragraph","some","getColumnIndexes","createElement","tablePasteCell","editing","tableCellVerticalAlignment","setAttributes","suggestion","getChild","accept","author","TrackChangesEditing","_isForcedDefaultExecutionBlock","name","getSuggestionCallback","get","getSelectionAffectedTableCells","ck-suggestion-marker--active","newRange","keys","tablePasteChainId","column"];var Kx,qx;Kx=Vx,qx=466,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const $x=function(t,e){return Vx[t-=0]},Xx=[$x("0x24"),$x("0x55"),$x("0x3b"),$x("0x5c"),$x("0x3"),"tableCellBackgroundColor","tableCellPadding"],Jx=Object[$x("0x64")](Xx.map((t=>[t,null])));class Qx extends t.Plugin{static get[$x("0x70")](){return[wx]}afterInit(){const t=this[$x("0x46")];if(!t[$x("0x6d")].has("TableClipboard"))return;const n=t[$x("0x6d")][$x("0xd")]($x("0x9")),o=t[$x("0x6d")].get($x("0x52")),s=t[$x("0x6d")][$x("0xd")](wx),r=t[$x("0x6d")].get($x("0x72"));s[$x("0x4a")][$x("0x2b")]($x("0x9a"),$x("0x49")),t[$x("0x80")].schema.register("tableCellSuggestion",{allowIn:$x("0x62"),allowContentOf:$x("0x62"),isLimit:!0}),t[$x("0x83")].elementToElement({model:$x("0x61"),view:$x("0x69")});let i=null;t[$x("0x80")].on($x("0x1c"),((s,x)=>{const[a,c]=x,l=x[x[$x("0x2a")]-1];l&&l.forceDefaultExecution||n[$x("0xa")]||this[$x("0x46")][$x("0x34")].get($x("0x91")).value&&function(t,e,n,o,s){if(e&&!e.is($x("0x73")))return!1;const r=s[$x("0x60")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[$x("0xe")](n[$x("0x22")][$x("0x1b")]);if(!i[$x("0x2a")])return!1;const x=i[0][$x("0x6b")]($x("0x3c")),a=o.getRowIndexes(i),c=o[$x("0xa1")](i),l={startRow:a[$x("0x79")],endRow:a[$x("0x89")],startColumn:c[$x("0x79")],endColumn:c[$x("0x89")]};return 1==i[$x("0x2a")]&&(l[$x("0x4b")]+=o[$x("0x35")](r)-1,l[$x("0x53")]+=o[$x("0x96")](r)-1),Yx(x,l,o)}(a,c,t[$x("0x80")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[$x("0x80")][$x("0x37")]((()=>{t[$x("0x80")][$x("0x1c")](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[$x("0x2a")]&&n[$x("0x1e")](s,$x("0x9a"),{tablePasteChainId:o}),r[$x("0x2a")]&&n[$x("0x1e")](r,"tablePasteColumn",{tablePasteChainId:o}),a.length&&n[$x("0x1e")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[$x("0x2a")]&&n.markMultiRangeDeletion(c,$x("0x32"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[$x("0x81")](l[$x("0x43")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(d){const e=d[$x("0x86")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[$x("0x80")][$x("0x7f")](o),i=e[$x("0x7e")]((t=>t[$x("0x9c")]()[$x("0x75")](r)));i&&n[$x("0x2b")]([i[$x("0xb")],s])}n[$x("0x2a")]&&d[$x("0x1d")]($x("0x40"),Object[$x("0x64")](n))}i=null})))}),{priority:e.priorities[$x("0x19")]+10}),t[$x("0x6d")][$x("0xd")]($x("0x72")).on($x("0x42"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[$x("0x5f")]();const r=n[$x("0x48")],x=o,a=Zx(r),c=Zx(x);t[$x("0x74")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[$x("0x17")](r[$x("0x6")](0));for(const t of Array[$x("0x47")](x[$x("0x16")]()))s[$x("0x7b")](t,r,$x("0x28"));const t=i[$x("0x77")].includes(n[$x("0x18")]),e=i[$x("0x33")][$x("0x3d")](n[$x("0x13")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s[$x("0x5e")](r));else{const t=s[$x("0x0")]($x("0x61")),e=s.createElement("tableCellSuggestion");s[$x("0x8a")](s[$x("0x5e")](r),e),s[$x("0x7b")](t,r,0);for(const e of Array[$x("0x47")](x[$x("0x16")]()))s[$x("0x7b")](e,t,$x("0x28"));l=s.createRangeOn(t),d=s[$x("0x7f")](e)}const u=Array[$x("0x47")](x[$x("0x6f")]())[$x("0x7c")]((([t])=>Xx[$x("0x3d")](t)));i[$x("0x14")][$x("0x2b")]({element:r,attributes:u.length?Object[$x("0x64")](u):null}),l&&i.insertionRanges.push(l),d&&i.deletionRanges[$x("0x2b")](d)}),{priority:$x("0x19")}),o.on($x("0x88"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[$x("0x39")]||1;i[$x("0x33")]=new Array(a)[$x("0x8e")](x)[$x("0x43")](((t,e)=>t+e));for(const{cell:e}of o[$x("0x9b")](s,{startColumn:x,endColumn:x+a-1}))i[$x("0x2e")][$x("0x2b")](t[$x("0x80")].createRangeOn(e))}),{priority:"low"}),o.on($x("0x59"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[$x("0x30")]||1;i[$x("0x77")]=new Array(a)[$x("0x8e")](x)[$x("0x43")](((t,e)=>t+e));for(const{cell:e}of o[$x("0x9b")](s,{startRow:x,endRow:x+a-1}))i[$x("0x4e")][$x("0x2b")](t[$x("0x80")][$x("0x7f")](e))}),{priority:$x("0x38")}),n[$x("0x25")].registerDescriptionCallback((e=>{if(e[$x("0x63")]&&e.subType.startsWith($x("0x32")))return e[$x("0x29")]?{}:{type:$x("0x6a"),content:Yo(t[$x("0x44")],"*Replace table cells*")}}));const x=()=>{};for(const t of[$x("0x32"),"tablePasteColumn",$x("0x9a"),$x("0x1")])n[$x("0x56")].registerCustomCallback("insertion",t,$x("0x5d"),x),n[$x("0x56")].registerCustomCallback($x("0x97"),t,$x("0x5d"),x);n[$x("0x56")][$x("0x6c")]($x("0x41"),$x("0x1"),"discard",x),n[$x("0x56")][$x("0x6c")]($x("0x41"),$x("0x1"),$x("0x7"),((e,n,o)=>{const s=e.map((t=>t[$x("0x98")]()))[$x("0x7c")]((t=>t)),r=new Map(s[$x("0x43")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[$x("0x14")])e&&r[$x("0x94")](t,e);else if(o&&o[$x("0x40")])for(const[e,n]of Object[$x("0x4c")](o[$x("0x40")])){const o=t[$x("0x80")][$x("0x85")][$x("0xd")](e),s=o?o.getRange().getContainedElement():null;s&&r.set(s,n)}t[$x("0x80")].change((t=>{for(const[e,n]of r)t[$x("0x4")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[$x("0x56")][$x("0x6c")](e,"tablePaste",o,((s,r,i)=>{t[$x("0x80")][$x("0x37")]((t=>{const x=[];for(const t of s){const e=t.start[$x("0x54")];e.is($x("0x84"),$x("0x61"))&&x[$x("0x2b")](e)}n[$x("0x56")][$x("0xc")](e,null,o)(s,r,i);for(const e of x)$x("0x23")!=e[$x("0x87")][$x("0x67")]&&t[$x("0x8f")](e)}))}))};a($x("0x6a"),$x("0x7")),a($x("0x6a"),$x("0x71")),a("deletion",$x("0x7")),a($x("0x97"),$x("0x71")),n[$x("0x56")][$x("0x6c")]($x("0x6a"),$x("0x9a"),$x("0x71"),(t=>{const e=t.map((t=>t[$x("0x98")]())),n=e[0].findAncestor("table"),{minRow:r,maxRow:i}=s[$x("0x1f")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[$x("0x56")][$x("0x6c")]($x("0x6a"),"tablePasteColumn","discard",(t=>{const e=t.map((t=>t[$x("0x98")]())),n=e[0][$x("0x6b")]($x("0x3c")),{minColumn:r,maxColumn:i}=s[$x("0x1f")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[$x("0x63")]||!e[$x("0x63")][$x("0x31")]($x("0x32")))return;const o=e[$x("0x36")][$x("0x12")],s=n[$x("0x58")]()[$x("0x7c")]((t=>t[$x("0x27")]&&t[$x("0x36")]&&t[$x("0x36")].tablePasteChainId==o));s.length&&e[$x("0x6e")]()[$x("0x2a")]!=s.length&&s[$x("0x1a")](((t,e)=>(t[$x("0x5b")]=e,e[$x("0x29")]=t,e)))};function l(t,e=!0){const{id:o}=n[$x("0x4f")](t.markerName),s=["ck-suggestion-marker",$x("0x7a")],r=n.activeMarkers[$x("0x3d")](t[$x("0x57")]);return r&&s[$x("0x2b")]($x("0xf")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:$x("0x19")}),n.on("suggestionUnloaded",c,{priority:$x("0x19")}),t.model[$x("0x22")][$x("0x92")]((()=>{let e=!1;const o=Array[$x("0x47")](t[$x("0x80")].document[$x("0x4d")][$x("0x95")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[$x("0x4f")](s);if($x("0x5")!=o||$x("0x97")!=i||r[$x("0x3f")])continue;if(!n[$x("0x2d")](x))continue;const a=n[$x("0x76")](x)[$x("0x3e")](),c=t[$x("0x6d")].get($x("0x45")).me;for(const t of n[$x("0x58")]())if(t.isInContent&&t[$x("0x8")]==c&&$x("0x41")==t.type&&"tablePasteCell"==t[$x("0x63")]&&t.getRanges()[$x("0x20")]((t=>a[$x("0xa0")]((e=>e[$x("0x51")](t,!0))))))for(const n of t[$x("0x6e")]())n[$x("0x27")]&&(n[$x("0x71")](),e=!0)}return e})),t[$x("0x80")][$x("0x22")][$x("0x92")]((e=>{const o=t[$x("0x34")][$x("0xd")]($x("0x8d"));if(!o||!o._createdBatches[$x("0x78")](e[$x("0x93")]))return!1;let s=!1;const r=t[$x("0x6d")].get($x("0x45")).me,i=t[$x("0x80")][$x("0x22")][$x("0x4d")][$x("0x2c")](),x=Array[$x("0x47")](t[$x("0x80")][$x("0x22")][$x("0x4d")].getChangedMarkers())[$x("0x7c")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[$x("0x4f")](t);return $x("0x5")==o&&$x("0x32")==s&&i==r.id&&!e.oldRange}));for(const t of i){if($x("0x7b")!=t[$x("0x8b")]||$x("0x61")!=t[$x("0xb")]||1!=t[$x("0x2a")])continue;const n=e.createRange(t[$x("0x5a")],t[$x("0x5a")][$x("0x26")](1));if(!x.find((({data:t})=>t[$x("0x10")][$x("0x75")](n))))for(const{name:t,data:o}of x)if(n[$x("0x51")](o.newRange)){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[$x("0x80")][$x("0x22")][$x("0x92")]((e=>{let o=!1;const s=t[$x("0x6d")][$x("0xd")]($x("0x45")).me,r=n[$x("0x58")]().filter((t=>t[$x("0x27")]&&t[$x("0x8")]==s)),i=new Set,x=new Set;for(const t of r)if($x("0x32")==t[$x("0x63")])for(const e of t.getMarkers()){const n=e[$x("0x9c")]().getContainedElement();if(n)if(n.is("element","tableCellSuggestion")&&Zx(n)){t[$x("0x68")](e[$x("0xb")]),i.add(n),o=!0;const s=n[$x("0x9d")],r=n[$x("0x99")],a=s&&s.is($x("0x84"),$x("0x61")),c=r&&r.is($x("0x84"),$x("0x61"));a&&!i[$x("0x78")](s)&&x[$x("0x9e")](s),c&&!i[$x("0x78")](r)&&x[$x("0x9e")](r)}else n.is($x("0x84"),"paragraph")&&n.isEmpty&&(t[$x("0x68")](e[$x("0xb")]),o=!0)}else if($x("0x1")==t[$x("0x63")]){if(!t.attributes||!t[$x("0x36")][$x("0x12")])continue;const e=t[$x("0x36")].markerAttributes;if(e&&Object[$x("0x11")](e)[$x("0x2a")])continue;const n=t[$x("0x36")][$x("0x12")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[$x("0x63")][$x("0x31")]($x("0x32"))){if(!e[$x("0x36")][$x("0x12")]){i=!1;break}if(e.id!=t.id&&e[$x("0x36")][$x("0x12")]==n){s=!1;break}}i&&s&&(t[$x("0x50")](),o=!0)}for(const t of i)e[$x("0x17")](t);for(const t of x)e[$x("0x8f")](t);return o})),t[$x("0x83")].for("editingDowncast")[$x("0x66")]({model:$x("0x21"),view:(t,e)=>l(t),converterPriority:$x("0x19")}),t[$x("0x83")].for($x("0x90"))[$x("0x66")]({model:$x("0x21"),view:(t,e)=>e[$x("0x2f")].showSuggestionHighlights?l(t,!1):null,converterPriority:$x("0x19")});const d=t[$x("0x2")][$x("0x7d")];this[$x("0x82")](d[$x("0x22")],$x("0x3a"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e.content).getItems())t.is("element",$x("0x69"))&&n[$x("0x2b")](t);d.change((t=>{for(const e of n)t[$x("0x8c")](t.createRangeIn(e),t[$x("0x65")](e)),t[$x("0x17")](e)}))}))}}function Zx(t){if(t[$x("0x15")])return!0;const e=t[$x("0x6")](0);return e.is($x("0x84"),$x("0x9f"))&&e[$x("0x15")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["plugins","getColumnGroupElement","handleSuggestionDescription","columnWidths","getAttribute","formatGroupId","handleResizeTableWidthCommand","tableWidth","enableCommand","TableColumnResizeEditing","resizeTable","registerDescriptionCallback","accept","model","*Format:* resize table","afterInit","editor","getSelectedElement","bind","_suggestionFactory","_descriptionFactory","selection","Users","markBlockFormat","document","formatBlock","getSuggestions","getSuggestionCallback","change","get","discard","getContainedElement","resizeTableWidth","registerCustomCallback","subType","getTableColumnsWidths","table"];var ea,na;ea=ta,na=397,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x19")](){if(!this[oa("0x1a")][oa("0xa")].has(oa("0x13")))return;const t=this.editor[oa("0xa")][oa("0x2")]("TrackChangesEditing");t[oa("0x12")](oa("0x5"),this[oa("0x10")][oa("0x1c")](this)),t[oa("0x12")]("resizeColumnWidths",this[oa("0x10")].bind(this)),t[oa("0x1d")][oa("0x6")](oa("0x23"),"resizeTable","accept",t[oa("0x1d")].getSuggestionCallback("formatBlock",null,oa("0x3"))),t[oa("0x1d")][oa("0x6")]("formatBlock",oa("0x14"),"discard",t[oa("0x1d")][oa("0x0")](oa("0x23"),null,oa("0x16"))),t[oa("0x1e")][oa("0x15")](this.handleSuggestionDescription.bind(this))}[oa("0x10")](t,e){const n=this[oa("0x1a")].plugins[oa("0x2")]("TrackChangesEditing"),o=this.editor.plugins[oa("0x2")](oa("0x13")),s=e[oa("0x9")]||this.editor[oa("0x17")][oa("0x22")][oa("0x1f")][oa("0x1b")]();this.editor[oa("0x17")][oa("0x1")]((()=>{const r=o[oa("0xb")](s);let i=r?o[oa("0x8")](r):null,x=s[oa("0xe")](oa("0x11"))||null;const a=e[oa("0x11")]||x,c=e[oa("0xd")]||i,l=this[oa("0x1a")][oa("0xa")][oa("0x2")](oa("0x20")).me;for(const t of n[oa("0x24")]()){const e=t[oa("0x4")]();if("resizeTable"===t[oa("0x7")]&&e===s){t.author!==l&&t[oa("0x3")]();const e=t.data.commandParams;x=e[0][oa("0x11")],i=e[0][oa("0xd")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x21")](s,{commandName:oa("0x5"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x14")},[],oa("0x14"))}))}[oa("0xc")](t){const{data:e}=t;if(e&&oa("0x14")===e[oa("0xf")]){const t=oa("0x18");return{type:"format",content:Yo(this[oa("0x1a")].locale,t)}}}}const ra=["TrackChangesEditing","enableCommand","editor","insertTemplate","get"];var ia,xa;ia=ra,xa=289,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this[aa("0x3")];t.plugins.has("Template")&&t.plugins[aa("0x0")](aa("0x1"))[aa("0x2")](aa("0x4"))}}const la=["locale","tableOfContents","insertTableOfContents","ELEMENT_TABLE_OF_CONTENTS","enableCommand","commands","get"];var da,ua;da=la,ua=229,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;if(!t[ga("0x0")][ga("0x1")]("insertTableOfContents"))return;t.plugins[ga("0x1")]("TrackChangesEditing")[ga("0x6")](ga("0x4"));const e=t.plugins[ga("0x1")]("TrackChangesEditing"),n=t[ga("0x2")];e._descriptionFactory.registerElementLabel(ga("0x3"),(t=>Yo(n,ga("0x5"),t)))}}const fa=["document","get","getChangedMarkers","_descriptionFactory","end","registerElementLabel","isEqual","newRange","updateMarker","suggestion","forward","locale","isCollapsed","model","title-content","Title","getNearestSelectionRange","start","schema","afterInit","registerPostFixer","nodeBefore","removeMarker","isTouching","plugins","editor"];var ha,pa;ha=fa,pa=165,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0xa")](){const t=this[ba("0x10")];if(!t[ba("0xf")].has(ba("0x6")))return;const e=t[ba("0xf")][ba("0x12")]("TrackChangesEditing");e[ba("0x14")][ba("0x16")](ba("0x5"),(()=>Yo(t[ba("0x2")],"ELEMENT_TITLE"))),t[ba("0x4")][ba("0x11")][ba("0xb")]((n=>{let o=!1;const s=Array.from(t[ba("0x4")][ba("0x11")].differ[ba("0x13")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x0")!==s||!i[ba("0x18")])continue;const x=i[ba("0x18")],a=x[ba("0x15")][ba("0xc")];if(!a||!a.is("element",ba("0x5")))continue;if(!x[ba("0x8")][ba("0xe")](x.end))continue;const c=t[ba("0x4")][ba("0x9")][ba("0x7")](x[ba("0x15")],ba("0x1"));if(c&&c[ba("0x3")]){const t=n.createRange(x[ba("0x8")],c.start);t[ba("0x17")](x)||(n[ba("0x19")](r,{range:t}),o=!0)}o||(n[ba("0xd")](r),o=!0)}return o}))}}const _a=["enableCommand","has","undo","UndoEditing","plugins","editor","afterInit","get"];var Ta,Ca;Ta=_a,Ca=157,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x1")](){const t=this[ya("0x0")],e=t[ya("0x7")][ya("0x2")]("TrackChangesEditing");t[ya("0x7")][ya("0x4")](ya("0x6"))&&(e[ya("0x3")](ya("0x5")),e[ya("0x3")]("redo"))}}const Aa=["get","plugins","enableCommand","editor","has","TableCaptionEditing"];var va,Ra;va=Aa,Ra=138,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get requires(){return[wx]}afterInit(){const t=this[Sa("0x3")];t.plugins[Sa("0x4")](Sa("0x5"))&&t[Sa("0x1")][Sa("0x0")]("TrackChangesEditing")[Sa("0x2")]("toggleTableCaption")}}const La=["styles","document","editor","TrackChangesEditing","DocumentListUtils","*Format:* set start index to %0","commandParams","expandListBlocksToCompleteList","bind","getListTypeFromListStyleType","handleDescriptions","length","_getSuggestionBlocks","listType","*Change to:* %0","toUpperCase","handleListStartCommand","push","listStyle","_getTranslationKeyForListStyle","commandName","DocumentListPropertiesEditing","afterInit","isListItemBlock","list.properties","get","listStart","plugins","startIndex","type","listReversed","ELEMENT_","reversed","enableCommand","_getSuggestionBlocksForListStyle","filter","has","locale","_LIST_","change","selection","*Format:* set order to reversed","model","format","handleListReversedCommand","DocumentListPropertiesUtils","handleListStyleCommand","getAttribute","markMultiRangeBlockFormat","from","numbered","registerDescriptionCallback","replace"];var Na,Ma;Na=La,Ma=183,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x33")](){if(!this[wa("0x1f")][wa("0x3")][wa("0xc")](wa("0x32")))return;const t=this[wa("0x1f")].config[wa("0x1")](wa("0x0")),e=this[wa("0x1f")][wa("0x3")][wa("0x1")](wa("0x20"));t[wa("0x1d")]&&e[wa("0x9")](wa("0x2f"),this[wa("0x16")][wa("0x25")](this)),t[wa("0x8")]&&e[wa("0x9")](wa("0x6"),this[wa("0x14")][wa("0x25")](this)),t[wa("0x4")]&&e.enableCommand(wa("0x2"),this[wa("0x2d")][wa("0x25")](this)),e._descriptionFactory[wa("0x1b")](this.handleDescriptions[wa("0x25")](this))}[wa("0x16")](t,e={}){const n=this.editor.plugins.get(wa("0x20")),o=this[wa("0xa")]();this[wa("0x1f")][wa("0x12")][wa("0xf")]((()=>{n[wa("0x18")](o,{commandName:wa("0x2f"),commandParams:[{type:e[wa("0x5")]}],formatGroupId:wa("0x2f")})}))}[wa("0x14")](t,e={}){const n=this[wa("0x1f")][wa("0x3")].get(wa("0x20")),o=this.editor[wa("0x3")][wa("0x1")](wa("0x21")),s=this[wa("0x29")]((t=>o[wa("0x34")](t)&&wa("0x1a")===t[wa("0x17")](wa("0x2a"))));null!==s&&this[wa("0x1f")][wa("0x12")][wa("0xf")]((()=>{n[wa("0x18")](s,{commandName:"listReversed",commandParams:[{reversed:e[wa("0x8")]}],formatGroupId:wa("0x6")})}))}[wa("0x2d")](t,e={}){const n=this.editor[wa("0x3")][wa("0x1")](wa("0x20")),o=this[wa("0x1f")].plugins[wa("0x1")](wa("0x21")),s=this[wa("0x29")]((t=>o[wa("0x34")](t)&&wa("0x1a")===t.getAttribute(wa("0x2a"))));null!==s&&this.editor.model[wa("0xf")]((()=>{n[wa("0x18")](s,{commandName:wa("0x2"),commandParams:[{startIndex:e[wa("0x4")]}],formatGroupId:wa("0x2")})}))}[wa("0x27")](t){const e=this[wa("0x1f")][wa("0xd")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x31")]){case wa("0x2f"):o=wa("0x2b"),s={type:wa("0x13"),content:Yo(e,o,Yo(e,this[wa("0x30")](n.commandParams[0][wa("0x5")])))};break;case wa("0x6"):o=n[wa("0x23")][0][wa("0x8")]?wa("0x11"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case wa("0x2"):o=wa("0x22"),s={type:wa("0x13"),content:Yo(e,o,n.commandParams[0][wa("0x4")])}}return s}_getSuggestionBlocksForListStyle(){const t=this.editor[wa("0x3")][wa("0x1")](wa("0x21"));let e=Array.from(this[wa("0x1f")][wa("0x12")][wa("0x1e")].selection.getSelectedBlocks());return e[wa("0x2e")](...t[wa("0x24")](e)),e=[...new Set(e)],e}[wa("0x29")](t){const e=this.editor[wa("0x3")].get("DocumentListUtils");let n=Array[wa("0x19")](this[wa("0x1f")].model[wa("0x1e")][wa("0x10")].getSelectedBlocks())[wa("0xb")](t);if(!n[wa("0x28")])return null;n=e[wa("0x24")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[wa("0x2e")](t);return o}[wa("0x30")](t){return wa("0x7")+this[wa("0x1f")].plugins[wa("0x1")](wa("0x15"))[wa("0x26")](t)[wa("0x2c")]()+wa("0xe")+t.toUpperCase()[wa("0x1c")](/-/g,"_")}}const Fa=["plugins","_descriptionFactory","tableAlignment","tableHeight","handleSuggestionDescription","setAttribute","join","model","removeAttribute","getSuggestionCallback","pluginName","*Format:* change table properties","findAncestor","TablePropertiesEditing","has","registerCustomCallback","TableUtils","tableCellBorderWidth","afterInit","enableCommand","subType","data","tableCellProperties","table","editor","enqueueChange","commandParams","document","accept","tableProperties","getFirstPosition","getAttribute","discard","markBlockFormat","locale","selection","format","_getSuggestion","get","tableCellPadding","_suggestionFactory","tableBorderStyle","*Format:* change table cell properties","handleDiscardAction","formatBlock","tableCellHeight","tableBorderWidth","TrackChangesEditing","getSelectionAffectedTableCells","_handlePropertyChange","tableBorderColor","registerDescriptionCallback","tableWidth","change","TrackChangesTableProperties","tableCellBorderColor","tableBackgroundColor","tableCellWidth"];var Pa,Da;Pa=Fa,Da=170,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x21")]=[Ba("0x36"),Ba("0x2d"),Ba("0x32"),Ba("0x6"),Ba("0x38"),Ba("0x7"),Ba("0x2")],this.tableCellProperties=[Ba("0x1"),"tableCellBorderStyle",Ba("0x15"),Ba("0x2b"),Ba("0x3"),Ba("0x31"),"tableCellBackgroundColor","tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get[Ba("0xe")](){return Ba("0x0")}[Ba("0x16")](){const t=this.editor[Ba("0x4")].get(Ba("0x33"));if(this[Ba("0x1c")].plugins[Ba("0x12")](Ba("0x11"))){for(const e of this[Ba("0x21")])t[Ba("0x17")](e,((t,n)=>{const o=this[Ba("0x1c")][Ba("0xb")][Ba("0x1f")][Ba("0x27")][Ba("0x22")]()[Ba("0x10")](Ba("0x1b"));this[Ba("0x35")](e,[o],this[Ba("0x21")],Ba("0x21"),t,n)}));t[Ba("0x2c")][Ba("0x13")](Ba("0x30"),"tableProperties","accept",t[Ba("0x2c")].getSuggestionCallback(Ba("0x30"),null,Ba("0x24"))),t[Ba("0x2c")][Ba("0x13")]("formatBlock",Ba("0x21"),Ba("0x24"),((t,e)=>this[Ba("0x2f")](this[Ba("0x21")],t,e))),t[Ba("0x2c")][Ba("0x13")](Ba("0x30"),Ba("0x21"),"join",(()=>!1))}if(this[Ba("0x1c")][Ba("0x4")][Ba("0x12")]("TableCellPropertiesEditing")){for(const e of this.tableCellProperties)t[Ba("0x17")](e,((t,n)=>{const o=this.editor[Ba("0x4")][Ba("0x2a")](Ba("0x14"))[Ba("0x34")](this[Ba("0x1c")][Ba("0xb")][Ba("0x1f")][Ba("0x27")]);this._handlePropertyChange(e,o,this[Ba("0x1a")],"tableCellProperties",t,n)}));t._suggestionFactory[Ba("0x13")](Ba("0x30"),"tableCellProperties",Ba("0x20"),t[Ba("0x2c")][Ba("0xd")](Ba("0x30"),null,"discard")),t[Ba("0x2c")][Ba("0x13")]("formatBlock","tableCellProperties",Ba("0x24"),((t,e)=>this[Ba("0x2f")](this[Ba("0x1a")],t,e))),t._suggestionFactory[Ba("0x13")](Ba("0x30"),Ba("0x1a"),Ba("0xa"),(()=>!1))}t[Ba("0x5")][Ba("0x37")]((t=>this[Ba("0x8")](t)))}[Ba("0x35")](t,e,n,o,s,r){const i=this.editor[Ba("0x4")][Ba("0x2a")]("TrackChangesEditing");this[Ba("0x1c")].model[Ba("0x1d")](r.batch,(()=>{for(const t of e)if(this[Ba("0x29")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x23")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x25")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start.nodeAfter,s=n[Ba("0x1e")][0];this[Ba("0x1c")][Ba("0xb")][Ba("0x39")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x9")](n,s[n],o):e[Ba("0xc")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x19")])switch(t[Ba("0x18")]){case Ba("0x21"):return{type:Ba("0x28"),content:Yo(this[Ba("0x1c")][Ba("0x26")],Ba("0xf"))};case Ba("0x1a"):return{type:"format",content:Yo(this[Ba("0x1c")][Ba("0x26")],Ba("0x2e"))}}}[Ba("0x29")](t,e){const n=this.editor.plugins[Ba("0x2a")](Ba("0x33"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0x18")]===e&&n===t)return o}return null}}const Ua=["moveTargetPosition","_addSuggestionMarker","low","plugins","_saved","@external","markerToData","notReady","next","activeMarkers","_createSuggestion","formatInline:accept","conversion","root","enableCommand","return","forceDefaultExecution","get","getAllAdjacentSuggestions","addClass","ck-suggestion-marker-formatBlock","createRange","trackChanges.trackFormatChanges","from","markers","_setSuggestionRange","init","elementStart","createRangeIn","discardSelectedSuggestions","options","_editor","unbindElementFromMarkerName","differ","insertion:join","getWalker","value","previous","nodeAfter","_setSuggestionData","dataToMarker","_suggestionFactory","CommentsRepository","pluginName","consume","dataReady","discardAllSuggestions","getMarkers","formatBlock:chain","isRemovable","type","define","insert","getLastMatchingPosition","open","ck-suggestion-marker--active","model","splitPosition","targetPosition","creator","removeMarker","change:data","forward","insertion","_refreshSuggestionsChain","_enabledCommands","rootName","split","getNearestSelectionRange","clone","suggestion","getRanges","stopListening","Users","values","includes","track-changes-command-not-found","formatGroupId","after","some","isInContent","requires","mapper","acceptSuggestion","suggestionLoaded","editing","formatInline","_descriptionFactory","join","addSuggestion","createSelection","insertion:","discard","elementToElement","commentThread","markDeletion","subType","lowest","getSuggestionCallback","containerElement","high","isMultiRange","elementEnd","howMany","trackChangesCommand","move","getSuggestion","isSelectable","head","rejected","isLimit","formatBlock:discard","$graveyard","change","normal","isLocal","hasComments","removeMarkers","editingDowncast","isInsideObject","documentSelection","isCollapsed","getCustomProperty","deletion:chain","accept","commands","track-changes-suggestion-data-mismatch","isAtStart","name","markerToHighlight","showSuggestionHighlights","element","addMarker:suggestion:formatBlock","insertContent","markMultiRangeInsertion","isBefore","editor","newRange","deletion:join","parent","isTouching","markMultiRangeDeletion","isAfter","error-saving-suggestion-data-suggestion-discarded","change:activeMarkers","updateMarker","track-changes-suggestion-not-found","_adapter","update:suggestion","backward","attributes","bindElementToMarker","commandName","getFirstRange","deleteContent","markBlockFormat","writer","filter","_handleNewSuggestionMarker","stop","getAncestors","getAttribute","_model","length","markInlineFormat","hasCommentThread","fromRange","trackChanges","getSuggestions","insertion:discard","originalSuggestionId","execute","applyOperation","end","_removeSuggestion","_splitMarkerName","nodeBefore","_joinWithAdjacentSuggestions","suggestionChanged","formatInline:","_customCallbacks","setSelection","multipleBlocks","_rangeIsInLocalUserInsertion","isEqual","set","acceptAllSuggestions","unbind","resolve","then","listenTo","before","deletion:accept","createdAt","isNextTo","_trackFormatChanges","data-suggestion","updateSuggestion","registerCustomCallback","add","marker-count","getChangedMarkers","range","getDifference","ck-suggestion-marker","formatBlock:","ck-suggestion-marker-","_checkSuggestionCorrectness","suggestionUnloaded","_getAuthorFromId","change:_saved","_suggestions","push","authorName","ready","hasSuggestion","getMultiRangeId","markMultiRangeBlockFormat","_registerDefaultCallbacks","suggestion:","getUser","containsItem","isDocumentOperation","createPositionAfter","_getExternalAuthor","createPositionAt","collaboration.channelId","data","config","default","getCommentThread","getRange","setAttribute","PENDING_ACTION_SUGGESTION","removeMarker:suggestion:formatBlock","_joinSuggestions","authoredAt","_addThreadToSuggestion","remove","addRange","for","fire","schema","highest","discardSuggestion","substr","suggestion-type","rethrowUnexpectedError","skipNestingCheck","addMarker:suggestion","chain","addHighlight","PendingActions","_commentsRepository","document","getChanges","selection","addSuggestionData","map","isIntersectingWithRange","$textProxy","formatInline:chain","isOwn","isUndo","batch","deletion:","getShiftedBy","acceptSelectedSuggestions","trackChanges.mergeNestedSuggestions","isAtEnd","reconvertMarker","registerPostFixer","_mergeNestedSuggestions","never","accepted","_defaultCallbacks","every","multi","fetchCommentThread","deletion:discard","createElement","removeComment","formatBlock:join","_breakSuggestionMarker","_updateSuggestionData","addMarkerName","delete","always","item","_findSuggestions","position","_cutOutSuggestionMarker","oldRange","upcast","markerReady","markerName","getFirstMarker","removed","track-changes-adapter-missing-getsuggestion","size","isBlock","author","adapter","formatBlock","_isForcedDefaultExecutionBlock","isExternal","setTo","_suggestionState","locale","clear","createPositionBefore","containsRangeInObject","catch","consumable","enqueueChange","detach","start","containsRange","getItems","deletion","getIntersection","has","formatInline:join","dataDowncast","toViewElement","isObject","removeAttribute","removeClass"];var Ga,Ha;Ga=Ua,Ha=131,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x116")](){return[za("0xef"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,Xi,tx,ix,ux,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0xf0")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[za("0x7f")]((t=>String.fromCharCode(t))).join("")}super(t),this.set(za("0xce"),[]),this.on(za("0xd"),((e,n,o,s)=>{this._model.change((()=>{for(const e of[...s,...o])this[za("0x1f")][za("0xdd")][za("0xbe")](e)&&t[za("0x11a")][za("0x8b")](e)}))})),this[za("0x11c")]=new ss(this[za("0x5")][za("0xfd")].schema,this[za("0x5")][za("0xb1")]),this[za("0x10")]=null,this[za("0xee")]=new Va(this[za("0x5")]),this[za("0x50")]=new Map,this[za("0x7a")]=t[za("0xc8")][za("0xd6")]("CommentsRepository"),this._enabledCommands=new Set,this[za("0x1f")]=this[za("0x5")][za("0xfd")],this[za("0xb0")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t.config[za("0xf8")](za("0xdb"),za("0x62")),this[za("0x40")]=t.config.get(za("0xdb")),t.config.define(za("0x89"),!0),this._mergeNestedSuggestions=t[za("0x61")][za("0xd6")]("trackChanges.mergeNestedSuggestions"),this.trackChangesCommand=new u(t,this[za("0x106")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,52,53,50])}[za("0xdf")](){const t=this[za("0x5")];t[za("0xd1")].for(za("0x13b"))[za("0x146")]({model:za("0x10b"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[za("0xa4")]),o=["ck-suggestion-marker","ck-suggestion-marker-"+n];let s=3e3;return this[za("0xce")][za("0x110")](t[za("0xa4")])&&(o[za("0x51")](za("0xfc")),s=3010),za("0xbc")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xd1")][za("0x6d")]("dataDowncast")[za("0x44")]((e=>{e.on(za("0x76"),((e,n,o)=>{if(!o.options[za("0x147")])return;const s=n[za("0x9d")];if(!s)return;const r=o.mapper[za("0xc1")](s);t[za("0xfd")][za("0x6f")][za("0xc2")](s)&&r&&!r[za("0x13f")]("widget")&&r.is(za("0x128"))&&(0,x.toWidget)(r,o[za("0x19")])}),{priority:za("0x129")})})),t.conversion[za("0x6d")]("dataDowncast").markerToHighlight({model:"suggestion",view:(t,e)=>{if(!e[za("0xe3")][za("0x147")])return null;const{type:n}=this[za("0x2c")](t[za("0xa4")]);return{classes:["ck-suggestion-marker",za("0x4b")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0x9d")].is(za("0x7d")))return void s[za("0xb6")][za("0xf1")](o[za("0x9d")],n[za("0x145")]);const r=s[za("0x117")][za("0xc1")](o.item);if(!o[za("0x9d")].is(za("0x0"))||!t.model[za("0x6f")][za("0xa9")](o[za("0x9d")])||r.getCustomProperty(za("0x78")))return;const{id:i}=this[za("0x2c")](o[za("0xa4")]);s[za("0x19")][za("0xd8")]([za("0x49"),za("0xd9")],r),s[za("0x19")][za("0x65")](za("0x41"),i,r),s[za("0x117")][za("0x14")](r,o[za("0xa4")]),e&&(this[za("0xce")].includes(o[za("0xa4")])?s[za("0x19")][za("0xd8")](za("0xfc"),r):s[za("0x19")][za("0xc4")](za("0xfc"),r));for(const e of t[za("0xfd")][za("0xe1")](o.item)[za("0xbb")]())s[za("0xb6")][za("0xf1")](e,n[za("0x145")]);s[za("0xb6")][za("0xf1")](o.item,n.name)};t[za("0xd1")][za("0x6d")](za("0xc0")).add((t=>{t.on(za("0x1"),((t,e,o)=>{o[za("0xe3")][za("0x147")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x70")})})),t[za("0xd1")][za("0x6d")](za("0xc0"))[za("0xcb")]({model:za("0x10b"),view:(t,e)=>e[za("0xe3")][za("0x147")]?null:{group:za("0x10b"),name:t[za("0x72")](11)}}),t.conversion.for(za("0xa2"))[za("0x122")]({view:{name:za("0x10b"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x58")+t[za("0x1e")](za("0x73"))+":"+t[za("0x1e")]("id");return t[za("0x1e")](za("0x45"))&&(n+=":"+t[za("0x1e")](za("0x45"))),e[za("0x95")]("$marker",{"data-name":n})}}),t[za("0xd1")][za("0x6d")](za("0xa2"))[za("0xed")]({view:za("0x10b")}),t[za("0xd1")][za("0x6d")]("editingDowncast")[za("0x44")]((t=>{t.on(za("0x1"),n(),{priority:za("0x129")})})),t[za("0xd1")][za("0x6d")](za("0x13b"))[za("0x44")]((t=>{t.on(za("0x67"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[za("0xa4")]);if(o)for(const t of o)t.getCustomProperty("addHighlight")||(n[za("0x19")].removeClass([za("0x49"),za("0xd9"),za("0xfc")],t),n[za("0x19")][za("0xc3")](za("0x41"),t),n[za("0x117")][za("0xe5")](t,e.markerName))}),{priority:za("0x129")})})),t.model.document.registerPostFixer((e=>{let n=!1;const o=Array.from(t[za("0xfd")][za("0x7b")][za("0xe6")][za("0x46")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x2c")](x);if("suggestion"!==o)continue;const d=this[za("0x50")][za("0xd6")](l);if(null!=a.newRange)if(za("0x11b")==c&&(n=n||$a(a.newRange,x,e,t[za("0xfd")][za("0x6f")])),a[za("0x6")][za("0x13e")]||"$graveyard"==a[za("0x6")][za("0xd2")][za("0x107")]||za("0xac")==c&&!Ja(a[za("0x6")])||za("0xbc")==c&&(qa(i=a[za("0x6")])||(r=i)[za("0xb9")][za("0x8")]==r[za("0x2a")][za("0x2d")]&&r[za("0xb9")][za("0x8a")]))e[za("0x101")](x),n=!0;else{if(!d||!d.isInContent)continue;s[za("0x44")](d)}}var r,i;return s[za("0xa8")]>0&&(n=!!this[za("0x2e")](s)||n),n})),t.model[za("0x7b")][za("0x8c")]((e=>{let n=!1;for(const o of t.model[za("0x7b")].differ[za("0x7c")]()){if(za("0xf9")!=o[za("0xf7")])continue;const s=o[za("0x9f")][za("0x87")](o[za("0x20")]);if(s.isAtEnd)for(const r of this[za("0x50")].values()){if(r.isMultiRange||!r[za("0x115")])continue;if(za("0xac")!=r[za("0xf7")])continue;const i=r.getFirstRange();if(i[za("0xb9")].parent!=i[za("0x2a")][za("0x8")]&&i[za("0x2a")][za("0x35")](o.position)){const o=t.model.createRange(i[za("0xb9")],s);e[za("0xe")](r[za("0xa5")](),{range:o}),n=!0}}}return n})),t[za("0xfd")].markers.on(za("0x11"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x2c")](e[za("0x145")]),n=this[za("0x50")][za("0xd6")](t);n&&n.addMarkerName(e.name)}})),t.model[za("0x7b")].on(za("0x102"),(()=>{const e=Array[za("0xdc")](t[za("0xfd")][za("0x7b")][za("0xe6")][za("0x46")]())[za("0x1a")]((t=>"suggestion"===this._splitMarkerName(t.name).group));if(0===e[za("0x20")])return;e.sort(((t,e)=>{const n=t[za("0x60")][za("0xa1")],o=e[za("0x60")][za("0xa1")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[za("0x4")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x2c")](t);if(null===s.oldRange){const e=this[za("0x1b")](t);o[za("0x44")](e)}else{const t=this._suggestions[za("0xd6")](e);null!==s.newRange||t.isInContent?(n[za("0x44")](t[za("0x131")]),o.add(t)):this[za("0x2b")](t)}}o[za("0xa8")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x6e")]("suggestionChanged",t)})),t.model.on(za("0x29"),((e,n)=>{const o=n[0];if(!this[za("0x50")][za("0xa8")])return;if(!o[za("0x5b")])return;if(o[za("0x85")][za("0x84")]||!o.batch[za("0x138")])return;let s,r;switch(o[za("0xf7")]){case"insert":s=t[za("0xfd")][za("0x5e")](o[za("0x9f")]),r=s.getShiftedBy(o[za("0x12c")]);break;case za("0x108"):s=t[za("0xfd")][za("0x5e")](o[za("0xfe")]),r=t.model.createPositionAt(o[za("0xc5")]);break;case za("0x12e"):s=t[za("0xfd")].createPositionAt(o[za("0xff")]),r=s[za("0x87")](o[za("0x12c")]);break;default:return}const i=t[za("0xfd")][za("0xda")](s,r);t[za("0xfd")][za("0x136")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[za("0x12a")])continue;if("formatInline"==t[za("0xf7")])continue;const n=t[za("0x60")]&&t[za("0x60")][za("0x33")];(za("0xac")!=t[za("0xf7")]||za("0x108")==o[za("0xf7")]&&!n)&&(e[za("0xb4")]||za("0x104")==t.type&&e[za("0x83")]||t[za("0x16")]()[za("0xba")](i)&&this[za("0x98")](t,s,r))}}))}),{priority:za("0x126")}),t[za("0xfd")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0xd5")])return;if(this[za("0xad")])return;if(!this[za("0x12d")][za("0xe9")])return;if(o[za("0x13e")])return;const r=t.model.schema,{start:i,end:x}=o[za("0x16")](),a=i[za("0xeb")]&&r.isLimit(i[za("0xeb")])?null:r[za("0x109")](i,za("0x103")),c=x[za("0x2d")]&&r[za("0x133")](x[za("0x2d")])?null:r.getNearestSelectionRange(x,za("0x12")),l=t[za("0xfd")][za("0xda")](a?a[za("0xb9")]:i,c?c.end:x);t[za("0xfd")][za("0x136")]((e=>{this[za("0x124")](l);const n=t.model[za("0x6f")].getNearestSelectionRange(l[za("0xb9")]);o.is(za("0x13d"))?e[za("0x32")](n):o[za("0xaf")](n)})),e[za("0x1c")]()}),{priority:e.priorities[za("0x137")]+10}),t[za("0xfd")].on(za("0x2"),((e,n)=>{const o=n[n.length-1];o&&o[za("0xd5")]||this[za("0xad")]||this[za("0x12d")][za("0xe9")]&&(t[za("0xfd")][za("0x136")]((()=>{let o=t.model[za("0x2")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0xd4")]=o[za("0x10a")]();const s=o.end.nodeBefore,r=t.model[za("0x6f")];s&&r[za("0xa9")](s)&&!r[za("0xc2")](s)&&(o=t.model[za("0xda")](o[za("0xb9")],t[za("0xfd")].createPositionAt(s,za("0x2a")))),this.markInsertion(o)})),e[za("0x1c")]())}),{priority:za("0x129")}),this.editor[za("0x142")].add(za("0x24"),this[za("0x12d")]),this.enableCommand("trackChanges");const o=new p(t,this[za("0x50")]);t[za("0x142")][za("0x44")](za("0x118"),o),this[za("0xd3")](za("0x118"));const s=new C(t,this[za("0x50")]);t[za("0x142")][za("0x44")](za("0x71"),s),this.enableCommand(za("0x71")),t[za("0x142")].add(za("0x37"),new F(t,o,this[za("0x50")])),this.enableCommand(za("0x37")),t[za("0x142")].add(za("0xf3"),new F(t,s,this[za("0x50")])),this[za("0xd3")](za("0xf3")),t[za("0x142")][za("0x44")](za("0x88"),new U(t,o,this[za("0x50")])),this[za("0xd3")](za("0x88")),t[za("0x142")][za("0x44")](za("0xe2"),new U(t,s,this[za("0x50")])),this[za("0xd3")]("discardSelectedSuggestions");const r=t[za("0xc8")].get(za("0xef"));this[za("0x3b")](r,"addComment",((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[za("0x123")]&&1===n.commentThread.length&&this[za("0x99")](e,{hasComments:!0})}),{priority:za("0xc7")}),this[za("0x3b")](r,za("0x96"),((t,{threadId:e})=>{const n=this[za("0x50")][za("0xd6")](e);n&&n[za("0x123")]&&!n[za("0x123")][za("0x20")]&&this[za("0x99")](e,{hasComments:!1})}),{priority:za("0xc7")})}set[za("0xab")](t){if(this[za("0x10")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[za("0x10")]=t}get adapter(){return this[za("0x10")]}[za("0x25")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x50")][za("0x10f")]())t&&!e.isInContent||n[za("0x51")](e);return e?n.map((t=>t.toJSON())):n}getSuggestion(t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(za("0xf"),this);return n}[za("0x54")](t){return this._suggestions[za("0xbe")](t)}[za("0x7e")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0xf7")][za("0x108")](":"),i=this[za("0x50")][za("0xd6")](n)||this[za("0xcf")](s,r,n,e,o);if(this[za("0x6a")](i),this._checkSuggestionCorrectness(i,s,r||null,e),i[za("0x3e")]=t[za("0x3e")],o&&o[za("0xca")]){const t=o[za("0xca")],e=this[za("0x5d")](t[za("0x52")]);i[za("0x69")]=t[za("0x3e")],i.author=e,i[za("0xae")]=!0}else i.authoredAt=t[za("0x3e")];switch(t[za("0x60")]&&(i[za("0x60")]=t.data),t[za("0x13")]&&(i[za("0x13")]=t[za("0x13")]),this[za("0x10")]&&this._adapter[za("0x11e")]||(i._saved=!0),this[za("0xb0")][za("0xd6")](i)){case za("0xcc"):this[za("0xb0")][za("0x36")](i,za("0xf2"));break;case za("0xa3"):i[za("0x115")]?(this[za("0xb0")].set(i,za("0x53")),this[za("0x6e")](za("0x119"),i)):this[za("0xb0")][za("0x36")](i,za("0xa6"))}return i}[za("0x118")](t){this[za("0xd5")]((()=>{this.editor.model.change((()=>{for(const e of t[za("0xd7")]())e[za("0x141")]()}))}))}discardSuggestion(t){this[za("0xd5")]((()=>{this.editor.model[za("0x136")]((()=>{for(const e of t[za("0xd7")]())e[za("0x121")]()}))}))}[za("0xd3")](t,n){const o=this[za("0x5")][za("0x142")][za("0xd6")](t);if(!o)throw new e.CKEditorError(za("0x111"),this,{commandName:t});this[za("0x106")].add(o),n&&o.on(za("0x28"),((t,e)=>{this.trackChangesCommand[za("0xe9")]&&(this[za("0xad")]||e[za("0x20")]>0&&e[e.length-1]&&e[e[za("0x20")]-1][za("0xd5")]||(n(((...t)=>o[za("0x28")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:za("0x129")})}[za("0xd5")](t){let n,o;const s=this[za("0xad")];this[za("0xad")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[za("0x74")](o,this),n}markInsertion(t,n=null,o={}){if(t[za("0x13e")])return null;const s=this[za("0x5")].plugins[za("0xd6")](za("0x10e")).me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,za("0x104")))if(o[za("0x83")]){if(!o[za("0x3f")]){if(!this[za("0x8d")]&&o[za("0xb4")])continue;return e}if(n==e[za("0x125")]){const n=e[za("0x16")]();return n[za("0xb9")][za("0x35")](t[za("0x2a")])?this[za("0xde")](e,this[za("0x1f")][za("0xda")](t[za("0xb9")],n[za("0x2a")])):this._setSuggestionRange(e,this[za("0x1f")][za("0xda")](n[za("0xb9")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x120")+n:"insertion",a=this[za("0xec")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xc6")](x,r,i,t),a}[za("0x3")](t,n="multi",o={}){const s=this[za("0x5")][za("0xc8")][za("0xd6")]("Users").me,r=this[za("0xee")].getSuggestionCallback("insertion",n,za("0x11d"));for(const e of this.getSuggestions())if(e[za("0xaa")].id==s.id&&za("0x104")==e[za("0xf7")]&&e[za("0x125")]==n&&(r(e[za("0x10c")](),t)||r(t,e[za("0x10c")]()))){for(const n of t)e[za("0x6c")](n);return e}if(this[za("0x8d")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x9e")](e,za("0x104"))){if(!o[za("0x83")])continue;let e=!0;for(const o of n[za("0x10c")]())for(const n of t)if(!o[za("0xba")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x120")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo.getMultiRangeId());return c}[za("0x21")](t,n,o=null,s={}){if(o=o||Xa(n),t.isCollapsed)return null;if(za("0x8e")===this[za("0x40")]){const e=this._suggestionFactory.getSuggestionCallback("formatInline",o,za("0x141"));return this[za("0xd5")]((()=>e([t],n,s))),null}const r=this[za("0x5")][za("0xc8")].get(za("0x10e")).me,i=[];if("always"!==this[za("0x40")])for(const{suggestion:e,meta:n}of this[za("0x9e")](t,za("0x104")))n[za("0x83")]&&!n[za("0x13c")]&&i[za("0x51")](...e[za("0x10c")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[za("0x51")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x20")];){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o[za("0x20")]}}return n}(t,i);x[za("0x20")]&&this._model[za("0x136")]((()=>{for(const t of x){const e=this._suggestionFactory[za("0x127")]("formatInline",o,za("0x141"));this[za("0xd5")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0xb9")],a=t[za("0x2a")];for(const{suggestion:e,meta:n}of this[za("0x9e")](t,za("0x11b"))){if(!n[za("0x83")])continue;if(e[za("0x125")]!=o)continue;const s=e[za("0x16")]();if(s[za("0xba")](t,!0))return null;x=x[za("0x4")](s[za("0xb9")])?x:s[za("0xb9")],a=a[za("0xb")](s.end)?a:s.end,i?s[za("0xb9")][za("0x4")](i[za("0x16")]()[za("0xb9")])?(i[za("0x13a")](),i=e):e.removeMarkers():i=e}const c=this[za("0x1f")].createRange(x,a);if(i)this[za("0xde")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xec")]({id:t,type:za("0x30")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0xc6")](za("0x30")+o,t,i,c)}}return null}[za("0x18")](t,n,o=[],s=null,r={}){n[za("0x112")]||(n.formatGroupId=n.commandName),n[za("0x33")]=t.is("range"),s=s||Xa(n);const i=o[za("0x7f")]((t=>Qa(t,this[za("0x1f")]))),x=t.is(za("0x47"))?t:Qa(t,this[za("0x1f")]);if(za("0x8e")===this._trackFormatChanges){const t=this[za("0xee")][za("0x127")](za("0xac"),s,za("0x141"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i[za("0x51")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0x9c")!==this._trackFormatChanges){const t=this._suggestionFactory[za("0x127")]("formatBlock",s,za("0x141"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x.start,d=x[za("0x2a")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,za("0xac"))){if(!e[za("0x83")]||e[za("0x3f")]||e[za("0xb4")]||e[za("0x13c")])continue;if(t.data[za("0x112")]!=n.formatGroupId)continue;const o=t.getFirstRange();if(t[za("0x125")]==s){if(o.containsRange(x,!0))return null;l=l[za("0x4")](o[za("0xb9")])?l:o[za("0xb9")],d=d[za("0xb")](o.end)?d:o[za("0x2a")],c?o[za("0xb9")][za("0x4")](c.getFirstRange()[za("0xb9")])?(c[za("0x13a")](),c=t):t[za("0x13a")]():c=t}else{const e=x[za("0xbd")](o);this[za("0xa0")](t,e)}}const u=this[za("0x5")][za("0xc8")][za("0xd6")](za("0x10e")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0xde")](c,this[za("0x1f")][za("0xda")](l,d)),c;{const t=this[za("0xec")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0xc6")](za("0x4a")+s,g,m,this[za("0x1f")][za("0xda")](l,d)),t}}[za("0x56")](t,n,o=[],s=null,r={}){n[za("0x112")]||(n[za("0x112")]=n[za("0x15")]);const i=t[0];n[za("0x33")]=i.is("range"),s=s||Xa(n);const x=o.map((t=>Qa(t,this[za("0x1f")]))),a=i.is(za("0x47"))?t:t[za("0x7f")]((t=>Qa(t,this._model)));if("never"===this[za("0x40")]){const t=this[za("0xee")][za("0x127")](za("0xac"),s,za("0x141"));return this[za("0xd5")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[za("0x34")](t)){c=!1;break}if(c&&za("0x9c")!==this[za("0x40")]){const t=this[za("0xee")].getSuggestionCallback(za("0xac"),s,za("0x141"));return this[za("0xd5")]((()=>t(a,n,r))),null}const l=this[za("0x5")][za("0xc8")][za("0xd6")](za("0x10e")).me;for(const t of this[za("0x25")]()){if(t.author.id!=l.id)continue;if("formatBlock"!=t[za("0xf7")]||t.data[za("0x112")]!=n[za("0x112")])continue;const e=t.subType==s;for(let n=0;n<a[za("0x20")];n++){const o=a[n];for(const s of t[za("0xf4")]()){const r=s[za("0x64")]();if(o[za("0x35")](r)){e?(a.splice(n,1),n--):t[za("0x101")](s.name);break}}}}if(0==a[za("0x20")])return null;const d=this[za("0xee")][za("0x127")](za("0xac"),s,za("0x11d"));for(const t of this[za("0x25")]())if(t[za("0xaa")].id==l.id&&za("0xac")==t[za("0xf7")]&&t[za("0x60")][za("0x112")]==n[za("0x112")]&&t[za("0x125")]==s&&(d(t[za("0x10c")](),a)||d(a,t[za("0x10c")]()))){for(const e of a)t[za("0x6c")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x4a")+s,f=this[za("0xec")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0xc6")](m,u,g,t,Zo[za("0x55")]());return f}markDeletion(t,n=null,o={}){if(t[za("0x13e")])return null;const s=this.editor[za("0xc8")][za("0xd6")]("Users").me,r=new i.LiveRange(t.start,t[za("0x2a")]);for(const{suggestion:t,meta:e}of this[za("0x9e")](r,za("0x104")))if(e[za("0x83")]&&!e[za("0x3f")])if(t[za("0x12a")]){const e=t[za("0x10c")]()[za("0x1a")]((t=>"$graveyard"!=t[za("0xd2")][za("0x107")]));if(e[za("0x91")]((t=>r[za("0xba")](t,!0)))&&t[za("0x121")](),e.some((t=>t[za("0xba")](r,!0)))){const t=this[za("0xee")][za("0x127")]("deletion",n,za("0x141"));return this[za("0xd5")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t.getFirstRange());null!==e&&t._onDiscard([e],null,o)}if(r[za("0xb8")](),r[za("0x13e")]||"$graveyard"==r[za("0xd2")].rootName)return null;let x=null,a=r[za("0xb9")],c=r[za("0x2a")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0xbc")))if(e[za("0x83")])if(t.isMultiRange&&this[za("0x8d")]){let e=!0;for(const n of t[za("0x10c")]()){if(n[za("0xba")](r,!0))return t;r[za("0xba")](n)||(e=!1)}e&&t.discard()}else{const n=t[za("0x16")]();if(n[za("0xba")](r,!0)){if(!this[za("0x8d")]&&e.containsRangeInObject)continue;return t}a=a[za("0x4")](n[za("0xb9")])?a:n[za("0xb9")],c=c[za("0xb")](n[za("0x2a")])?c:n[za("0x2a")],x?n[za("0xb9")][za("0x4")](x[za("0x16")]()[za("0xb9")])?(x[za("0x13a")](),x=t):t[za("0x13a")]():x=t}if(x)return this[za("0xde")](x,this[za("0x1f")][za("0xda")](a,c)),x;{const t=(0,e.uid)(),r=this._model[za("0xda")](a,c),i=s.id,x=n?za("0x86")+n:za("0xbc"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xc6")](x,t,i,r),l}}[za("0xa")](t,n=za("0x92"),o={}){const s=this[za("0x5")][za("0xc8")][za("0xd6")](za("0x10e")).me,r=t[za("0x7f")]((t=>new i.LiveRange(t[za("0xb9")],t.end))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion"))n.isOwn&&!n.isNextTo&&x[za("0x44")](e);for(const e of x)if(e[za("0x12a")]){const s=e[za("0x10c")]();if((!e[za("0x13")]||!e[za("0x13")].skipNestingCheck)&&s[za("0x91")]((t=>r[za("0x114")]((e=>e.containsRange(t,!0)))))&&e.discard(),r[za("0x91")]((t=>s[za("0x114")]((e=>e.containsRange(t,!0)))))){const e=this[za("0xee")][za("0x127")]("deletion",n,za("0x141"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[za("0x114")]((e=>e[za("0xba")](t,!0)))&&e[za("0x121")](),r[za("0x91")]((e=>t[za("0xba")](e,!0)))){const t=this[za("0xee")][za("0x127")](za("0xbc"),n,"accept");return this[za("0xd5")]((()=>t(r,null,o))),null}}const a=this[za("0xee")].getSuggestionCallback("deletion",n,"join");let c=null;for(const t of this.getSuggestions())if(t[za("0xaa")].id==s.id&&t.isInContent&&za("0xbc")==t.type&&t[za("0x125")]==n&&(a(t[za("0x10c")](),r)||a(r,t.getRanges())))if(c){if(t[za("0x123")]&&t[za("0x123")][za("0x20")])continue;for(const e of t[za("0x10c")]())c.isIntersectingWithRange(e)||c.addRange(e);t[za("0x13a")]()}else{c=t;for(const e of r)t[za("0x80")](e)||t[za("0x6c")](e)}if(c)return c;x[za("0xb2")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x9e")](t,za("0xbc")))n[za("0x83")]&&x[za("0x44")](e);for(const t of x){const e=t[za("0x10c")]();if((!o||!o.skipNestingCheck)&&r[za("0x91")]((t=>e[za("0x114")]((e=>e[za("0xba")](t,!0))))))return t;(!t[za("0x13")]||!t[za("0x13")][za("0x75")])&&e[za("0x91")]((t=>r[za("0x114")]((e=>e[za("0xba")](t,!0)))))&&t[za("0x121")]()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t.detach(),t.isCollapsed||za("0x135")==t[za("0xd2")][za("0x107")]||this[za("0xc6")](u,l,d,t,Zo[za("0x55")]());return g}[za("0xde")](t,e){const n=t[za("0xa5")]();this._model[za("0x136")]((t=>{t[za("0xe")](n,{range:e})}))}[za("0x6a")](t){const e=t.id,n=this.editor.config.get("collaboration.channelId");this[za("0x7a")][za("0x22")](e)||this[za("0x7a")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x7a")][za("0x63")](e);o[za("0x38")](za("0xf6")),o[za("0xf6")]=!1,t[za("0x123")]=o}[za("0x4c")](t,n,o,s){if(t[za("0xf7")]!=n||t[za("0x125")]!=o||t.creator.id!=s)throw this[za("0x5")].enableReadOnlyMode(za("0x143")),new e.CKEditorError(za("0x143"),this)}[za("0xa0")](t,n){const o=t[za("0x16")]();if(n[za("0x35")](o))t.removeMarkers();else if(o.containsRange(n)){const s=this[za("0x1f")][za("0x5e")](n[za("0xb9")][za("0x2d")],za("0x2a"));this[za("0xde")](t,this._model[za("0xda")](o[za("0xb9")],s));const r=(0,e.uid)(),i=t[za("0x100")].id,x=t[za("0xf7")]+":"+t[za("0x125")];this[za("0xec")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x60")],attributes:t[za("0x13")]});const a=this[za("0x1f")][za("0x5e")](n[za("0x2a")][za("0x8")],za("0x113")),c=this[za("0x1f")][za("0xda")](a,o[za("0x2a")]);this[za("0xc6")](x,r,i,c)}else if(o.containsPosition(n[za("0xb9")])){const e=this[za("0x1f")][za("0x5e")](n.start.nodeBefore,za("0x2a"));this._setSuggestionRange(t,this[za("0x1f")].createRange(o.start,e))}else{const e=this[za("0x1f")][za("0x5e")](n[za("0x2a")][za("0x8")],"after");this[za("0xde")](t,this[za("0x1f")][za("0xda")](e,o.end))}}[za("0x34")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x104"))){if(!n[za("0x83")])continue;const o=e[za("0x10c")]();for(const e of o)if(!t[za("0x48")](e)[za("0x20")])return!0}return!1}_getAuthorFromId(t){const n=this[za("0x5")].plugins[za("0xd6")](za("0x10e")).getUser(t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[za("0x5d")](t){const e=this[za("0x5")].plugins[za("0xd6")](za("0x10e")),n=(0,r.hashObject)("external:"+t);return e[za("0x59")](n)||e.addUser({id:n,name:t})}[za("0xcf")](t,e,n,o,s){const r=this[za("0x4e")](o),i=this[za("0xee")].buildSuggestion(t,e,n,r,s,(t=>this[za("0x99")](n,{attributes:t})));return this[za("0x3b")](i,"accept",(()=>{this._updateSuggestionData(n,{state:za("0x8f")})}),{priority:za("0x129")}),this.listenTo(i,za("0x121"),(()=>{this._updateSuggestionData(n,{state:za("0x132")})}),{priority:za("0x129")}),this._suggestions[za("0x36")](n,i),this._suggestionState[za("0x36")](i,za("0xcc")),i}_splitMarkerName(t){const e=t[za("0x108")](":");return{group:e[0],type:e[1],subType:e[za("0x20")]>=5?e[2]:null,id:e[za("0x20")]<5?e[2]:e[3],authorId:e[za("0x20")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t.getFirstRange(),r=s[za("0xb9")],i=s[za("0x2a")];this._setSuggestionRange(t,this[za("0x1f")][za("0xda")](r,n));const x=(0,e.uid)(),a=t[za("0x100")].id,c=t[za("0xf7")]+(t[za("0x125")]?":"+t[za("0x125")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[za("0x60")]}),za("0xac")==t[za("0xf7")]&&(o=this._model[za("0xb3")](o[za("0x8")])),this[za("0xc6")](c,x,a,this[za("0x1f")][za("0xda")](o,i))}_findSuggestions(t,e=null){const n=[],o=this._model[za("0x6f")],s=this.editor[za("0xc8")][za("0xd6")](za("0x10e")).me;for(const r of this[za("0x25")]())if(r[za("0x115")]&&(!e||r[za("0xf7")]==e))for(const e of r[za("0x10c")]()){const i=t[za("0xb9")][za("0x35")](e.end)||t[za("0x2a")][za("0x35")](e[za("0xb9")]);if(i||t[za("0xbd")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0xb9")],t),a=e[za("0xba")](t)&&Ka(o,t.start,e);n.push({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}_addSuggestionMarker(t,e,n,o,s){this[za("0x1f")][za("0x136")]((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x2b")](t){const e=t[za("0xea")],n=t.next;t.previous=null,null!=e&&(e[za("0xcd")]=null),t[za("0xcd")]=null,null!=n&&(n[za("0xea")]=null),za("0x53")==this._suggestionState[za("0xd6")](t)&&(this[za("0xb0")][za("0x36")](t,za("0xa6")),this[za("0x6e")](za("0x4d"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[za("0x7e")](t);if(this._adapter&&this[za("0x10")].addSuggestion){const s=this[za("0x5")][za("0xc8")][za("0xd6")](za("0x79")),r=o[za("0x139")],i=o[za("0x125")]?o[za("0xf7")]+":"+o[za("0x125")]:o.type,x=this.editor.locale,a=s.add(Yo(x,za("0x66"))),c={id:n,type:i,hasComments:r,data:t[za("0x60")]||null,originalSuggestionId:t[za("0x27")]||null,attributes:o.attributes};this[za("0x10")].addSuggestion(c).then((t=>{o[za("0xc9")]=!0,s[za("0x6b")](a),t&&t[za("0x3e")]&&(this[za("0x50")][za("0xd6")](n)[za("0x3e")]=t.createdAt)}))[za("0xb5")]((t=>{throw(0,e.logWarning)(za("0xc")),this[za("0x5")][za("0xfd")][za("0xb7")]({isUndoable:!1},(()=>{o[za("0x121")]()})),o[za("0x10d")](),this[za("0x50")][za("0x9b")](o.id),this[za("0xb0")][za("0x9b")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[za("0x5")][za("0xc8")].get(za("0x79")),o=this[za("0x12f")](t);if(this._adapter&&this[za("0x10")].updateSuggestion)if(o[za("0xc9")]){const o=n.add(Yo(this[za("0x5")].locale,"PENDING_ACTION_SUGGESTION"));this._adapter[za("0x42")](t,e)[za("0x3a")]((()=>{n.remove(o)}))}else o.on(za("0x4f"),(()=>{this._updateSuggestionData(t,e)}))}_getSuggestionData(t){if(!this[za("0x10")]||!this[za("0x10")].getSuggestion)throw new e.CKEditorError(za("0xa7"),this);return this._adapter.getSuggestion(t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x2c")](t),r=this[za("0x50")][za("0xd6")](e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0x4c")](r,n,o,s),this[za("0xb0")][za("0xd6")](r)){case"notReady":this._getSuggestionData(e)[za("0x3a")]((t=>{let n=Promise[za("0x39")]();t[za("0x139")]&&(n=this[za("0x7a")][za("0x93")]({channelId:this.editor[za("0x61")][za("0xd6")](za("0x5f")),threadId:e})),n[za("0x3a")]((()=>{this[za("0x7e")](t)[za("0xc9")]=!0}))})),this[za("0xb0")][za("0x36")](r,za("0xa3"));break;case za("0xa6"):this[za("0x99")](e,{state:za("0xfb")});case za("0xf2"):this._suggestionState[za("0x36")](r,za("0x53")),this[za("0x6e")](za("0x119"),r);break;case za("0x53"):this[za("0x6e")](za("0x2f"),r)}return r[za("0x9a")](t),r}[za("0x105")](t){const e=Array[za("0xdc")](t)[za("0x1a")]((t=>!t.isMultiRange)),n=this[za("0x25")]({skipNotAttached:!0})[za("0x1a")]((t=>!t[za("0x12a")])),o=n[za("0x1a")]((e=>!t[za("0xbe")](e))),s=new Map(n.map((t=>[t,this[za("0xee")][za("0x127")](t[za("0xf7")],t[za("0x125")],za("0x77"))]))),r=new Map(n[za("0x7f")]((t=>[t,t[za("0x16")]()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x20")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[za("0xbe")](n)&&n[za("0xea")]&&(n[za("0xea")][za("0xcd")]===n&&(n[za("0xea")].next=null),n[za("0xea")]=null),!i[za("0xbe")](n)&&n[za("0xcd")]&&(n[za("0xcd")][za("0xea")]===n&&(n[za("0xcd")][za("0xea")]=null),n[za("0xcd")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0xcd")]=n[1],n[1][za("0xea")]=n[0],i[za("0x44")](n[0]),x[za("0x44")](n[1]))}}function c(t,e){if(t.author.id!==e[za("0xaa")].id)return null;const n=s[za("0xd6")](t)(t,e,r[za("0xd6")](t),r[za("0xd6")](e));return n&&s.get(e)(t,e,r.get(t),r[za("0xd6")](e))?n[1][za("0x123")]&&n[1][za("0x123")][za("0x20")]?null:n:null}}[za("0x2e")](t){const e=Array[za("0xdc")](t),n=this[za("0x25")]({skipNotAttached:!0}),o=n[za("0x1a")]((e=>!t[za("0xbe")](e))),s=new Map(e[za("0x7f")]((t=>[t,this[za("0xee")][za("0x127")](t[za("0xf7")],t[za("0x125")],za("0x11d"))]))),r=new Map(n[za("0x7f")]((t=>[t,t[za("0x10c")]()])));for(let t=0;t<e[za("0x20")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o.type!==e.type||o.author.id!==e.author.id||o[za("0x125")]!==e[za("0x125")])continue;const x=s[za("0xd6")](e),a=r[za("0xd6")](e),c=r[za("0xd6")](o),l=e[za("0x123")]&&e[za("0x123")][za("0x20")],d=o.commentThread&&o[za("0x123")].length;if(!l&&x(c,a))return t[za("0x68")](o,e),r[za("0x9b")](e),!0;if(!d&&x(a,c))return t[za("0x68")](e,o),r[za("0x9b")](o),!0}return!1}}[za("0x68")](t,e){if(t[za("0x12a")])for(const n of e.getRanges())t[za("0x6c")](n);else{const n=e[za("0x16")]()[za("0x2a")];this[za("0xde")](t,this._model.createRange(t[za("0x16")]()[za("0xb9")],n))}e[za("0x13a")]()}}class Va{constructor(t){this[za("0xe4")]=t,this._model=t[za("0xfd")],this[za("0x31")]=new Map,this[za("0x90")]=new Map,this[za("0x57")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[za("0x1f")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x127")](t,e,za("0x141"))(...n),onDiscard:(...n)=>this[za("0x127")](t,e,"discard")(...n)})}[za("0x43")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x31")].set(s,o)}[za("0x127")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x31")][za("0xd6")](o)||this._defaultCallbacks[za("0xd6")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t.sort(((t,e)=>t.start.isBefore(e[za("0xb9")])?1:-1)),this._model[za("0x136")]((e=>{for(const n of t){let t;t=n[za("0x2a")].isAtEnd&&n[za("0x2a")][za("0x8")]==n[za("0xb9")].nodeAfter?e[za("0x11f")](n[za("0xb9")][za("0xeb")],"on"):e[za("0x11f")](n),this[za("0x1f")][za("0x17")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x1f")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x7f")]((t=>(qa(t)&&(t=this[za("0x1f")][za("0xda")](t[za("0x2a")])),t)))[za("0x1a")]((t=>za("0x135")!==t[za("0xd2")].rootName));if(r[za("0x20")]<1)return;const x=Array[za("0xdc")](this[za("0x1f")].document[za("0x7d")].getRanges())[za("0x7f")]((t=>i.LiveRange[za("0x23")](t)));n[za("0x32")](r);for(const t of this[za("0xe4")].commands[za("0x142")]())t.refresh();s[za("0x51")]({forceDefaultExecution:!0}),this[za("0xe4")].execute(o,...s);const a=x[za("0x1a")]((t=>za("0x135")!=t[za("0xd2")].rootName));a.length>0&&n[za("0x32")](a);for(const t of x)t[za("0xb8")]()}))},o=(t,e)=>1==t[za("0x20")]&&1==e.length&&t[0][za("0x2a")][za("0x35")](e[0][za("0xb9")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x1f")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x90")].set("insertion:accept",t),this[za("0x90")].set(za("0x26"),e),this[za("0x90")][za("0x36")](za("0xe7"),o),this[za("0x90")][za("0x36")]("insertion:chain",s),this._defaultCallbacks[za("0x36")](za("0x3d"),e),this[za("0x90")][za("0x36")](za("0x94"),t),this[za("0x90")][za("0x36")](za("0x7"),o),this[za("0x90")].set(za("0x140"),s),this[za("0x90")].set(za("0xd0"),n),this[za("0x90")][za("0x36")]("formatInline:discard",t),this._defaultCallbacks[za("0x36")](za("0xbf"),o),this[za("0x90")][za("0x36")](za("0x82"),t),this._defaultCallbacks[za("0x36")]("formatBlock:accept",n),this[za("0x90")][za("0x36")](za("0x134"),t),this[za("0x90")].set(za("0x97"),o),this[za("0x90")].set(za("0xf5"),t)}}function Ka(t,e,n){for(const o of e.parent[za("0x1d")]({includeSelf:!0,parentFirst:!0})){if(o[za("0xd2")]==o)return!1;if(!n[za("0x5a")](o))return!1;if(t[za("0xc2")](o)||t[za("0x133")](o))return!0}return!1}function qa(t){return t.end[za("0x8")]==t[za("0xb9")][za("0xeb")]&&t.end[za("0x144")]}function $a(t,e,n,o){const s=t=>!t.item.is(za("0x81"))&&!o[za("0xc2")](t.item),r=t[za("0xb9")][za("0xfa")](s),i=t.end[za("0xfa")](s,{direction:za("0x12")});return!(t[za("0xb9")][za("0x35")](r)&&t[za("0x2a")][za("0x35")](i)||(r[za("0x4")](i)?n[za("0xe")](e,{range:n[za("0xda")](r,i)}):n[za("0x101")](e),0))}function Xa(t){return(0,r.hashObject)(t)}function Ja(t){const e=t.start.nodeAfter;return e&&e.is("element")}function Qa(t,e){const n=e.schema[za("0xc2")](t)||e.schema[za("0x130")](t);return e[za("0xda")](e[za("0x5e")](t,za("0x3c")),n?e[za("0x5c")](t):e[za("0x5e")](t,za("0x2a")))}function Za(t,e,n,o,s){if(n[za("0x2a")][za("0x35")](o[za("0xb9")]))return!0;if(t[za("0xf7")]!=e[za("0xf7")])return!1;if(!n.end[za("0x9")](o[za("0xb9")]))return!1;const r=s.createRange(n[za("0x2a")],o[za("0xb9")])[za("0xe8")]();for(const t of r)if([za("0xe0"),za("0x12b")][za("0x110")](t[za("0xf7")])&&s[za("0x6f")][za("0x133")](t[za("0x9d")]))return!1;return!0}const Ya=["execute","model","_discardCommand","PendingActions","discardSuggestion","canDiscard","destroy","commentThreadController","_acceptCommand","plugins","remove","_pendingAction","canEditAt","_setPendingAction","isEnabled","stopListening","locale","PENDING_ACTION_SUGGESTION","commands","acceptSuggestion","_editor","isDirty","view","_removePendingAction","listenTo","unbind","add","getRanges","get","bind"];var tc,ec;tc=Ya,ec=411,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0xa")]=e,this[nc("0x1")]=n,this[nc("0x10")]=o,this._editor=t,this[nc("0x11")]=t[nc("0x1b")][nc("0x7")]("acceptSuggestion"),this[nc("0xb")]=t.commands[nc("0x7")]("discardSuggestion"),this.view[nc("0x8")](nc("0x17")).to(this[nc("0x11")],this[nc("0xb")],((t,e)=>t||e)),this[nc("0x1")][nc("0x8")]("canAccept").to(this[nc("0x11")],nc("0x17"),(t=>t&&this._editor[nc("0xa")][nc("0x15")](e[nc("0x6")]()))),this[nc("0x1")][nc("0x8")](nc("0xe")).to(this[nc("0xb")],nc("0x17"),(t=>t&&this[nc("0x1d")].model[nc("0x15")](e[nc("0x6")]()))),this[nc("0x14")]=null,n[nc("0x0")]&&this[nc("0x16")](),this[nc("0x3")](n,nc("0x1c"),(()=>this[nc("0x1c")]())),this[nc("0x3")](n,nc("0xd"),(()=>this[nc("0xd")]())),this[nc("0x3")](n,"change:isDirty",(()=>{n[nc("0x0")]?this[nc("0x16")]():this[nc("0x2")]()}))}[nc("0x1c")](){this._acceptCommand[nc("0x9")](this[nc("0xa")].id)}[nc("0xd")](){this[nc("0xb")].execute(this[nc("0xa")].id)}[nc("0xf")](){this.view.unbind(nc("0x17")),this[nc("0x1")][nc("0x4")]("canAccept"),this.view[nc("0x4")](nc("0xe")),this[nc("0x18")](),this[nc("0x10")][nc("0xf")](),this._pendingAction&&this[nc("0x2")]()}[nc("0x16")](){const t=Yo(this[nc("0x1d")][nc("0x19")],nc("0x1a"));this[nc("0x14")]=this[nc("0x1d")].plugins[nc("0x7")](nc("0xc"))[nc("0x5")](t)}_removePendingAction(){null!==this._pendingAction&&this._editor[nc("0x12")][nc("0x7")](nc("0xc"))[nc("0x13")](this._pendingAction),this[nc("0x14")]=null}}const sc=["hasDirtyComment","disabledSubmit","_localUser","value","delegate","_createCommentViews","removeComment","_config","addComment","isDirty","commentInputView","editor","_createCommentThreadInputView","isReadOnly","assign","bind","updateComment","fire","set","CommentView","element","focus","submit","commentThread","commentThreadInputView","_model","authoredAt","isEnabled","length","canDiscard","commentsListView","isActive","canAccept","locale","destroy"];var rc,ic;rc=sc,ic=186,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x13")]=null,this.commentThreadInputView=null,this[xc("0x7")](xc("0x14"),!1),this.set(xc("0xf"),e[xc("0xf")]),this.bind(xc("0xf")).to(e),this[xc("0x7")]("descriptionParts",[]),this[xc("0x7")](xc("0x21"),!1),this[xc("0x7")](xc("0x10"),!1),this.set(xc("0x15"),!1),this[xc("0x7")](xc("0x12"),!1),this[xc("0xe")]=e,this[xc("0x1a")]=n,this[xc("0x1f")]=o,o.disableComments?this[xc("0x7")](xc("0x11"),1):this[xc("0x1d")]()}focus(){this[xc("0x9")].focus()}[xc("0x17")](){this[xc("0x13")]&&this[xc("0x13")][xc("0x17")](),this[xc("0xd")]&&this.commentThreadInputView[xc("0x17")](),super[xc("0x17")]()}[xc("0x1d")](){const{CommentsListView:t}=this._config;this.commentsListView=new t(this[xc("0x16")],this._model[xc("0xc")],Object[xc("0x3")]({CommentView:this._config[xc("0x8")]},this._config)),this[xc("0x13")][xc("0x1c")]("removeComment").to(this),this[xc("0x13")].delegate(xc("0x5")).to(this),this[xc("0x13")][xc("0x4")]("isActive").to(this),this[xc("0x7")](xc("0x11"),this[xc("0x13")].length+1),this.bind(xc("0x11")).to(this.commentsListView,xc("0x11"),(t=>t+1)),this[xc("0xd")]=this[xc("0x1")](),this.on(xc("0x1e"),(()=>this[xc("0xa")]())),this[xc("0x4")]("isDirty").to(this.commentsListView,xc("0x18"),this[xc("0xd")].commentInputView,xc("0x1b"),((t,e)=>t||!!e))}[xc("0x1")](){const{CommentThreadInputView:t}=this[xc("0x1f")],e=new t(this[xc("0x16")],this[xc("0x1a")],this._config.editorConfig),n=e[xc("0x22")];return e.bind("showInput").to(this,xc("0x14"),this[xc("0xe")][xc("0xc")],xc("0x2"),n,xc("0x1b"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0xb"),((t,e)=>{this[xc("0x6")](xc("0x20"),e),n[xc("0x0")].setData("")})),n.on("cancel",(()=>this[xc("0xa")]())),n[xc("0x4")](xc("0x19")).to(this[xc("0xe")][xc("0xc")],"isReadOnly"),e}}const cc=["_config","ck-annotation__info-time",'"></span>',"querySelector","formatDateTime","Discard suggestion","ck-suggestion__info","map","ck-annotation__content-wrapper","ck-suggestion--discard","ck-annotation__info","name","locale","check","<p>","span","title","extendTemplate","disableComments","descriptionParts","source","_model","getExternalSuggestionNote","ck-suggestion--disabled-comments","</span>","ck-suggestion__actions","canDiscard","EXTERNAL_IMPORT_WORD_SUGGESTION","getUserViewNotificationText","canAccept","isEnabled",'" title="','<span class="ck-suggestion-color" style="background-color: ',"innerText","ck-suggestion-wrapper","cancel","bind","attributes","EXTERNAL_SUGGESTION","push","change:description","children","getTemplate","discardSuggestion","set",'<span class="ck-suggestion-type">',"ck-suggestion__user","bindTemplate","importWord",".ck-annotation__content-wrapper","discardButton","createElement","ck-suggestion","_createButton","_descriptionElement","isExternal","EXTERNAL_AVATAR","type","@external","execute","innerHTML","isActive","commentThreadInputView","ck-suggestion__info-name","acceptSuggestion","time","EXTERNAL_IMPORT_WORD_AVATAR","acceptButton","userView","creator","content","join","div","fire","value","ck-suggestion-wrapper--active","commentsListView","description","author","render","authoredAt"];var lc,dc;lc=cc,dc=425,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[uc("0x18")](uc("0x25"),""),this.bind("type").to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this[uc("0x10")](uc("0x39")).to(this,uc("0x50"),this,uc("0x29"),((t,e)=>{let n="";for(const e of t)n+=uc("0x4b")+mc(e[uc("0x32")],e.color)+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[uc("0x2f")]=this._createButton(Yo(e,"Accept suggestion"),t.icons[uc("0x4a")],"ck-suggestion--accept",uc("0x2c"),"sw"),this.acceptButton[uc("0x10")](uc("0xa")).to(this,uc("0x9")),this[uc("0x1e")]=this[uc("0x21")](Yo(e,uc("0x42")),t.icons[uc("0xf")],uc("0x46"),uc("0x17"),"sw"),this[uc("0x1e")].bind(uc("0xa")).to(this,uc("0x6")),this[uc("0x30")]=new r.UserView(e,this._model.author,this[uc("0x8")]()),this[uc("0x30")][uc("0x4e")]({attributes:{class:[uc("0x1a"),"ck-annotation__user"]}}),this.setTemplate(this.getTemplate())}[uc("0x16")](){const t=this[uc("0x1b")],e=[{tag:uc("0x34"),attributes:{class:[uc("0x43"),uc("0x47")]},children:[{tag:uc("0x4c"),children:[{text:this.userView[uc("0x48")]}],attributes:{class:[uc("0x2b"),"ck-annotation__info-name"]}},{tag:uc("0x2d"),attributes:{datetime:t.to(uc("0x3c")),class:["ck-comment__info-time",uc("0x3e")]},children:[{text:t.to(uc("0x3c"),(t=>this[uc("0x3d")][uc("0x41")](t)))}]}]},{tag:"div",attributes:{class:[uc("0x5"),"ck-annotation__actions"]},children:[this[uc("0x2f")],this[uc("0x1e")]]},{tag:uc("0x34"),attributes:{class:[uc("0x45")]}}];this[uc("0x1")].isExternal&&e[uc("0x13")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:uc("0x34"),attributes:{class:[uc("0xe"),t.if(uc("0x29"),uc("0x37")),t.to(uc("0x25"),(t=>"ck-suggestion-"+t)),this._config[uc("0x4f")]&&uc("0x3")],"data-suggestion-id":this[uc("0x1")].id,"data-thread-id":this[uc("0x1")].commentThread.id,"data-author-id":this[uc("0x1")][uc("0x3a")].id,tabindex:-1},children:[{tag:uc("0x34"),attributes:{class:[uc("0x20"),"ck-annotation"]},children:[this[uc("0x30")],{tag:"div",attributes:{class:["ck-suggestion__main","ck-annotation__main"]},children:e}]}]};return this[uc("0x38")]&&this[uc("0x2a")]&&n[uc("0x15")].push(this[uc("0x38")],this[uc("0x2a")]),n}[uc("0x3b")](){super[uc("0x3b")](),this._descriptionElement=this.element[uc("0x40")](uc("0x1d")),this[uc("0x22")][uc("0x28")]=this[uc("0x39")],this.on(uc("0x14"),((t,e,n)=>{this[uc("0x22")][uc("0x28")]=n}))}[uc("0x21")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x49")]);return i[uc("0x18")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x4e")]({attributes:{class:n}}),i.on(uc("0x27"),(()=>{this[uc("0x35")](o,this[uc("0x1")].id)})),i}[uc("0x2")](){return uc("0x1c")===this._model[uc("0x11")][uc("0x26")].source?Yo(this[uc("0x49")],uc("0x7")):Yo(this[uc("0x49")],uc("0x12"))}[uc("0x8")](){return this[uc("0x1")][uc("0x23")]?uc("0x1c")===this[uc("0x1")][uc("0x11")][uc("0x26")][uc("0x0")]?Yo(this[uc("0x49")],uc("0x2e"),this[uc("0x1")][uc("0x31")][uc("0x48")]):Yo(this[uc("0x49")],uc("0x24"),this._model[uc("0x31")][uc("0x48")]):null}}function mc(t,e){let n="";return n+=t.split("*")[uc("0x44")](((t,e)=>e%2!=0?uc("0x19")+fc(t)+uc("0x4"):fc(t)))[uc("0x33")](""),e&&(n+=uc("0xc")+e[uc("0x36")]+uc("0xb")+e[uc("0x4d")]+uc("0x3f")),n}function fc(t){const e=document[uc("0x1f")](uc("0x4c"));return e[uc("0xd")]=t,e[uc("0x28")]}const hc=["Accept all suggestions","addSourceCollector","focus","config","createAnnotation","CommentsRepository","keys","pluginName","button","stopListening","_destroyController","type","switchbutton","delete","_suggestionToController","filter","comments.editorConfig","unbind","registerAnnotation","isEnabled","remove","acceptButton","execute","acceptAllSuggestions","hasSuggestion","getMarkers","suggestionLoaded","Annotations","has","change:activeAnnotations","SuggestionThreadView","activeAnnotations","add","map","Track changes","_initializeController","getFirstRange","head","trackChanges.SuggestionThreadView","_disableComments","set","Discard all selected suggestions","getJoined","value","buttonView","comments.maxCommentsWhenCollapsed","isInContent","comments.maxCommentCharsWhenCollapsed","_annotationViews","size","requires","isMultiRange","getAllAdjacentSuggestions","commandName","editing","change:previous","editor","listenTo","arrowView","CommentView","bind","actionView","trackChanges","_handleSuggestionControllerDelayed","plugins","clear","getRanges","createCommentThreadController","previous","source","get","createAnnotationView","mainView","Accept all selected suggestions","_createUIButton","view","push","values","discardAllSuggestions","CommentsUI","_descriptionFactory","Discard all suggestions","descriptionParts","length","model","suggestion-","getMarkerNames","isOn","discardSelectedSuggestions","suggestionChanged","componentFactory","getDescriptions","activeMarkers","locale","comments.maxThreadTotalWeight","destroy","TrackChangesUI","getSuggestion","commands","from","innerView","toMany","_handleControllerBuffer","_viewToController","isDirty","lowest","commentThread","refreshSelectedViews","TrackChangesEditing","suggestionUnloaded","define","getByInnerView","separator","_updateController","_refreshActiveMarkers","trackChanges.disableComments","EditorAnnotations"];var pc,bc;pc=hc,bc=446,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x48")](){return[Wa,r.Users,"CommentsRepository",Ec("0x31"),"EditorAnnotations"]}static get[Ec("0x1d")](){return Ec("0x1")}constructor(t){super(t),this._suggestionToController=new Map,this[Ec("0x8")]=new Map,this[Ec("0x46")]=new Map,this[Ec("0x7")]=new Map;const e=this[Ec("0x4e")][Ec("0x19")];e[Ec("0xf")](Ec("0x3c"),gc),e[Ec("0xf")](Ec("0x14"),!1),this[Ec("0x3d")]=e[Ec("0x5c")](Ec("0x14"))}[Ec("0x55")](t,e){0===this._handleControllerBuffer[Ec("0x47")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x7")]){const n=this[Ec("0x24")].has(t);n||e?n&&e&&this._destroyController(t):this[Ec("0x39")](t)}this[Ec("0x4e")][Ec("0x56")].get("EditorAnnotations")[Ec("0xc")](),this[Ec("0x13")](),this[Ec("0x7")][Ec("0x57")]()}),10),this[Ec("0x7")].set(t,e)}init(){const t=this.editor,e=t.plugins[Ec("0x5c")](Ec("0xd")),n=t[Ec("0x56")][Ec("0x5c")](Ec("0x31")),o=t[Ec("0x56")].get(Ec("0x15")),s=t.plugins[Ec("0x5c")](Ec("0x1b"));t.ui[Ec("0x70")].add("trackChanges",(t=>this[Ec("0x60")](t))),o[Ec("0x17")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x4")](this[Ec("0x24")])){const o=e[Ec("0x4a")](),s=[];for(const t of o){if(!t[Ec("0x44")])continue;if(t[Ec("0x49")]){s[Ec("0x62")](...t[Ec("0x58")]());continue}const e=t[Ec("0x3a")]();if(s[Ec("0x69")]>0){const t=s[0][Ec("0x40")](e);if(t){s[0]=t;continue}}s[Ec("0x62")](e)}t[Ec("0x62")]([n.view,s])}return t})),this[Ec("0x4f")](e,Ec("0x30"),((t,e)=>{this.listenTo(e,Ec("0x4d"),((t,n,o,s)=>{e[Ec("0x44")]&&(null==o?(this[Ec("0x12")](s[Ec("0x3b")]),this[Ec("0x55")](e,!1)):(this._updateController(o[Ec("0x3b")]),this[Ec("0x55")](e,!0)))})),null===e[Ec("0x5a")]?this._handleSuggestionControllerDelayed(e,!1):this._updateController(e[Ec("0x3b")])})),this[Ec("0x4f")](e,Ec("0xe"),((t,e,n)=>{this[Ec("0x1f")](e,Ec("0x4d")),this[Ec("0x7")][Ec("0x23")](e);const o=n?n[Ec("0x3b")]:e,s=this[Ec("0x24")][Ec("0x5c")](o);null!==n&&this._updateController(o),null===n&&s&&this[Ec("0x20")](e)})),this[Ec("0x4f")](e,Ec("0x6f"),((t,e)=>{this[Ec("0x12")](e)})),this[Ec("0x4f")](n,Ec("0x33"),(()=>{this._refreshActiveMarkers()})),this[Ec("0x4f")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x2e")](n))return;const s=e[Ec("0x2")](n);this._suggestionToController[Ec("0x5c")](s)[Ec("0x61")][Ec("0x18")]()}),{priority:Ec("0xa")})}[Ec("0x13")](){const t=this[Ec("0x4e")].plugins[Ec("0x5c")](Ec("0x31")),e=this.editor[Ec("0x56")][Ec("0x5c")]("TrackChangesEditing"),n=Array[Ec("0x4")](t[Ec("0x35")],(t=>t[Ec("0x5")]))[Ec("0x25")]((t=>this[Ec("0x8")].has(t))),o=[];for(const t of n){const e=this[Ec("0x8")][Ec("0x5c")](t)[Ec("0x6a")][Ec("0x4a")]();o[Ec("0x62")](...e.reduce(((t,e)=>[...t,...e[Ec("0x6c")]()]),[]))}e[Ec("0x72")]=o}[Ec("0x60")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Ec("0x3")][Ec("0x5c")]("trackChanges"),r=Yo(t,Ec("0x38"));n.buttonView[Ec("0x3e")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x42")][Ec("0x52")](Ec("0x6d")).to(o,Ec("0x41")),n.buttonView.on(Ec("0x2c"),(()=>{o[Ec("0x2c")](),this[Ec("0x4e")][Ec("0x4c")][Ec("0x61")].focus()}));const i=new e.Collection,x=[{type:Ec("0x22"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:Ec("0x11")},{type:Ec("0x1e"),model:{withText:!0,label:Yo(t,Ec("0x16")),commandName:Ec("0x2d")}},{type:Ec("0x1e"),model:{withText:!0,label:Yo(t,Ec("0x5f")),commandName:"acceptSelectedSuggestions"}},{type:Ec("0x1e"),model:{withText:!0,label:Yo(t,Ec("0x67")),commandName:Ec("0x64")}},{type:Ec("0x1e"),model:{withText:!0,label:Yo(t,Ec("0x3f")),commandName:Ec("0x6e")}}];for(const t of x){let e={type:"separator"};if(t[Ec("0x6a")]){const n=new s.Model(t[Ec("0x6a")]),o=this.editor[Ec("0x3")].get(n[Ec("0x4b")]);n[Ec("0x52")](Ec("0x6d"),"isEnabled").to(o,Ec("0x41"),"isEnabled"),e={type:t[Ec("0x21")],model:n}}i[Ec("0x36")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x25")]((t=>null!=t[Ec("0x6a")]))[Ec("0x37")]((t=>this[Ec("0x4e")][Ec("0x3")].get(t[Ec("0x6a")][Ec("0x4b")]))),c=n[Ec("0x42")];return c[Ec("0x53")][Ec("0x27")](Ec("0x29")),c[Ec("0x50")][Ec("0x27")](Ec("0x29")),c.actionView[Ec("0x52")](Ec("0x29")).to(o,"isEnabled"),c[Ec("0x50")].bind(Ec("0x29"))[Ec("0x6")](a,Ec("0x29"),((...t)=>t.some((t=>t)))),n.on(Ec("0x2c"),(t=>{this[Ec("0x4e")][Ec("0x2c")](t[Ec("0x5b")][Ec("0x4b")]),this.editor[Ec("0x4c")][Ec("0x61")][Ec("0x18")]()})),n}[Ec("0x39")](t){const e=this[Ec("0x4e")],n=e[Ec("0x19")],o=e[Ec("0x56")][Ec("0x5c")](Ec("0x31")),s=e.plugins[Ec("0x5c")](Ec("0x1b")),i=e[Ec("0x56")][Ec("0x5c")](Ec("0x15")),x=e.plugins.get(r.Users).me,a=n[Ec("0x5c")](Ec("0x54"))[Ec("0x34")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x56")][Ec("0x5c")](Ec("0x65"));let d,u;this[Ec("0x46")][Ec("0x32")](t.id)?(u=this[Ec("0x46")][Ec("0x5c")](t.id),d=u.mainView):(d=new a(e.locale,t,x,{disableComments:this[Ec("0x3d")],editorConfig:n[Ec("0x5c")](Ec("0x26")),maxCommentsWhenCollapsed:n[Ec("0x5c")](Ec("0x43")),maxThreadTotalWeight:n.get(Ec("0x74")),maxCommentCharsWhenCollapsed:n[Ec("0x5c")](Ec("0x45")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x5c")](Ec("0x73"))),CommentView:n[Ec("0x5c")]("comments")[Ec("0x51")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x2b")].on("execute",(()=>{e.editing[Ec("0x61")].focus()})),d.discardButton.on(Ec("0x2c"),(()=>{e[Ec("0x4c")].view.focus()})),u=o[Ec("0x5d")](this.editor[Ec("0x73")],d),u[Ec("0x52")](Ec("0x9")).to(d,"isDirty"),u[Ec("0x52")](Ec("0x69")).to(d),u[Ec("0x52")](Ec("0x21")).to(d,Ec("0x21"),(t=>Ec("0x6b")+t)),this._annotationViews[Ec("0x3e")](t.id,u));const g=s[Ec("0x59")](t[Ec("0xb")],d),m=new oc(e,t,d,g),f=t.getAllAdjacentSuggestions().filter((t=>t.isInContent));d.descriptionParts=e.plugins.get("TrackChangesEditing")[Ec("0x66")].getDescriptions(f),this[Ec("0x24")][Ec("0x3e")](t,m),this._viewToController.set(d,m);const h=o[Ec("0x1a")]({view:u,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[Ec("0x25")]((t=>t.isInContent));for(const t of o)n[Ec("0x62")](...t[Ec("0x2f")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x4c")],n)},type:()=>Ec("0x6b")+m[Ec("0x61")].type});o[Ec("0x36")](h),i[Ec("0x28")](h)}_destroyController(t){const e=this[Ec("0x4e")][Ec("0x56")][Ec("0x5c")]("Annotations"),n=this._suggestionToController[Ec("0x5c")](t),o=n.view,s=e[Ec("0x10")](o);s&&e[Ec("0x2a")](s),this[Ec("0x24")][Ec("0x23")](t),this[Ec("0x8")][Ec("0x23")](o),n[Ec("0x0")]()}[Ec("0x12")](t){if(!t[Ec("0x44")]||!this[Ec("0x24")][Ec("0x32")](t))return;const e=this[Ec("0x4e")][Ec("0x56")][Ec("0x5c")](Ec("0xd")),n=this._suggestionToController[Ec("0x5c")](t),o=t[Ec("0x4a")]();n[Ec("0x61")][Ec("0x68")]=e[Ec("0x66")][Ec("0x71")](o)}destroy(){for(const t of this[Ec("0x24")][Ec("0x1c")]())this[Ec("0x20")](t);for(const t of this._annotationViews[Ec("0x63")]())t[Ec("0x5e")][Ec("0x0")]();super[Ec("0x0")]()}}var Tc,Cc,yc=["addSuggestionData","plugins","get","getSuggestion","TrackChanges","pluginName","editor","getSuggestions","adapter"];Tc=yc,Cc=266,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get requires(){return[Wa,_c,"Comments"]}static get[kc("0x0")](){return kc("0x8")}set[kc("0x3")](t){this[kc("0x1")][kc("0x5")][kc("0x6")](Wa)[kc("0x3")]=t}get[kc("0x3")](){return this[kc("0x1")][kc("0x5")][kc("0x6")](Wa).adapter}addSuggestion(t){return this[kc("0x1")][kc("0x5")][kc("0x6")](Wa)[kc("0x4")](t)}[kc("0x2")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x1")][kc("0x5")][kc("0x6")](Wa)[kc("0x2")]({skipNotAttached:t,toJSON:e})}[kc("0x7")](t){return this[kc("0x1")][kc("0x5")][kc("0x6")](Wa)[kc("0x7")](t)}}const vc=["function","trackChangesData","getUser","getRootNames","push","getDataWithDiscardedSuggestions","CommentsRepository","_adapter","define","constructor","getFullData","name","users","destroy","TrackChangesDataGetter","init","reduce","pluginName","data","document","editor","createElement","div","Pagination","addUser","createDocumentFragment","model","editorCreator","result","set","config","Users","map","get","plugins","execute","getSuggestions","discardAllSuggestions","TrackChangesEditing"];var Rc,Sc;Rc=vc,Sc=105,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x23")];class Nc extends t.Plugin{static get requires(){return[Wa]}static get[Ic("0x1d")](){return"TrackChangesData"}[Ic("0x1b")](){const t=this.editor;if(t[Ic("0x3")][Ic("0x14")]("trackChangesData.editorCreator",(e=>{const n=t[Ic("0x26")][Ic("0x1f")][Ic("0xf")]()[Ic("0x1c")](((t,e)=>(t[e]="",t)),{});return t[Ic("0x15")].create(n,e)})),Ic("0xc")!=typeof t[Ic("0x3")][Ic("0x6")](Ic("0xd"))[Ic("0x0")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}getDataWithAcceptedSuggestions(t){return Oc(this[Ic("0x20")],!0,t)}[Ic("0x11")](t){return Oc(this[Ic("0x20")],!1,t)}}class Mc extends t.Plugin{static get pluginName(){return Ic("0x1a")}constructor(t){super(t),this[Ic("0x1")]="end"}[Ic("0x1b")](){this[Ic("0x20")].plugins[Ic("0x6")](Ic("0x12"))[Ic("0x13")]={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[Ic("0x7")][Ic("0x6")](Ic("0xb"))[Ic("0x13")]=null}}function wc(t){return void 0!==t.getRootsAttributes}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o.plugins[Ic("0x10")](Wa,Mc),o.rootsAttributes=wc(t)?t.getRootsAttributes():void 0;const s=document[Ic("0x25")](),i=t[Ic("0x3")][Ic("0x6")]("trackChangesData")[Ic("0x0")],x=await i(o,(()=>function(t){const e=document[Ic("0x21")](Ic("0x22"));return t.appendChild(e),e}(s)));!function(t,e){const n=t.model[Ic("0x1f")].getRootNames()[Ic("0x1c")](((e,n)=>(e[n]=t[Ic("0x1e")].get({rootName:n}),e)),{}),o=t[Ic("0x7")].get("Users")[Ic("0x18")][Ic("0x5")]((t=>({id:t.id,name:t[Ic("0x17")]}))),s=t.plugins[Ic("0x6")](Ic("0xb"))[Ic("0x9")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x7")][Ic("0x6")](Ic("0x4")),i=e[Ic("0x7")][Ic("0x6")]("TrackChangesEditing");for(const t of o)r[Ic("0xe")](t.id)||r[Ic("0x24")](t);r.me||r.useAnonymousUser();for(const t of s)i.addSuggestionData(t);e[Ic("0x1e")][Ic("0x2")](n)}(t,x),x[Ic("0x8")](e?"acceptAllSuggestions":Ic("0xa"));const a=wc(x)?x[Ic("0x16")](n):x.data[Ic("0x6")](n);return await x[Ic("0x19")](),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:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["TrackChangesCommand","clearForceDisabled","_enabledCommands","value","_disableUnsupportedCommands","has","isEnabled","refresh","_isEnabledBasedOnSelection","forceDisabled","commands","affectsData","_enableCommands","execute","editor"];var c,l;c=a,l=437,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x0")]=e,this[u("0x1")]=!1,this[u("0x5")](),this[u("0x6")]=!1}[u("0x5")](){this[u("0x4")]=!0}[u("0xb")](){this.value=!this[u("0x1")],this[u("0x1")]?this._disableUnsupportedCommands():this[u("0xa")]()}[u("0x2")](){for(const t of this.editor[u("0x8")][u("0x8")]())t[u("0x9")]&&!this[u("0x0")][u("0x3")](t)&&t[u("0x7")]("TrackChangesCommand")}_enableCommands(){for(const t of this[u("0xc")][u("0x8")][u("0x8")]())t[u("0x9")]&&!this[u("0x0")][u("0x3")](t)&&t[u("0xe")](u("0xd"))}}const g=["canEditAt","model","isEnabled","refresh","editor","plugins","track-changes-accept-suggestion-not-found","get","acceptSuggestion","_suggestions"];var m,f;m=g,f=172,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x7")]=e,this[h("0x1")](),this._isEnabledBasedOnSelection=!1}[h("0x1")](){this[h("0x0")]=!0}execute(t){const n=this[h("0x7")][h("0x5")](t);if(!n)throw new e.CKEditorError(h("0x4"),this);const o=n.getRanges();this[h("0x2")][h("0x9")][h("0x8")](o)&&this.editor[h("0x3")][h("0x5")]("TrackChangesEditing")[h("0x6")](n)}}const b=["model","refresh","plugins","isEnabled","TrackChangesEditing","editor","track-changes-discard-suggestion-not-found","getRanges","_isEnabledBasedOnSelection","canEditAt","get","discardSuggestion","_suggestions"];var E,_;E=b,_=258,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("0x1")]=e,this[T("0x3")](),this[T("0xa")]=!1}[T("0x3")](){this[T("0x5")]=!0}execute(t){const n=this[T("0x1")].get(t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n[T("0x9")]();this[T("0x7")][T("0x2")][T("0xb")](o)&&this.editor[T("0x4")][T("0xc")](T("0x6"))[T("0x0")](n)}}const y=["isInContent","getRange","isIntersecting","change","join","splice","value","end","createRange","isMultiRange","color","content","getMarkers","type","sort","isObject"," [color ","createPositionAt","isArray","from","length","getRanges","add","schema","start","isTouching","deletion","replace","createPositionBefore","createPositionAfter"];var k,A;k=y,A=170,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x18")](((t,e)=>v("0x6")==t[v("0x17")]&&v("0x6")!=e.type?-1:v("0x6")!=t[v("0x17")]&&v("0x6")==e[v("0x17")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x3")];for(;o<t[v("0x0")];){const i=t[o],x=t[o+1];n||(n=e[v("0x8")](i)),I(e,i,x)||(s.push(e[v("0x12")](n,r[v("0x19")](i)?e[v("0x9")](i):e[v("0x1b")](i,v("0x11")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x9")](e),s=t[v("0x8")](n);return o[v("0x5")](s)}function L(t,e,n){for(;n[v("0x0")];){const o=n[v("0xf")](0,100);t[v("0xd")]((()=>{for(const t of o)t[v("0xa")]&&e.execute(t.id)}))}}const N=["_isEnabledBasedOnSelection","values","getRanges","model","from","isInContent","_command","isEnabled","some","editor","_suggestions","refresh","execute"];var M,w;M=N,w=378,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x9")]=n,this[O("0xa")](),this[O("0xc")]=!1}refresh(){const t=Array[O("0x3")](this[O("0x9")][O("0x0")]())[O("0x7")]((t=>t[O("0x4")]));this[O("0x6")]=this[O("0x5")][O("0x6")]&&t}[O("0xb")](){const t=R(Array.from(this._suggestions.values()));for(const e of t){const t=e[O("0x1")]();if(!this[O("0x8")][O("0x2")].canEditAt(t))return}L(this.editor[O("0x2")],this._command,t)}}const P=["isEnabled","execute","canEditAt","getRanges","from","_command","editor","selection","values","refresh","size","model","_selectedSuggestions","_suggestions"];var D,B;D=P,B=337,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("0x4")]=e,this[j("0xc")]=n,this[j("0xb")]=new Set,this[j("0x8")](),this._isEnabledBasedOnSelection=!1}[j("0x8")](){const t=this[j("0x5")][j("0xa")].document[j("0x6")],e=Array[j("0x3")](this[j("0xc")][j("0x7")]());this[j("0xb")]=function(t,e){const n=Array[v("0x1d")](t[v("0x1")]()),o=new Set;for(const s of e)if(s[v("0xa")])for(const e of n)for(const n of s[v("0x16")]()){const r=n[v("0xb")]();(e[v("0xc")](r)||t.isCollapsed&&!s[v("0x13")]&&s.next&&r[v("0x11")].isTouching(e[v("0x4")]))&&o[v("0x2")](s)}return o}(t,e),this.isEnabled=this[j("0x4")][j("0xd")]&&!!this[j("0xb")][j("0x9")]}[j("0x0")](){const t=R(Array[j("0x3")](this._selectedSuggestions));for(const e of t){const t=e[j("0x2")]();if(!this[j("0x5")][j("0xa")][j("0x1")](t))return}L(this[j("0x5")].model,this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["discard","subType","_onDiscard","data","_saved","createdAt","get","filter","setAttribute","map","removeAttribute","start","accept","isIntersectingWithRange","change","getFirstRange","substr","getContainedElement","removeMarkers","getAllAdjacentSuggestions","isIntersecting","onAttributesChange","from","addMarkerName","authoredAt","nodeAfter","@external","_onAttributesChange","next","_model","getMultiRangeId","getMarkerNames","clear","_onAccept","getMarkers","hasComments","length","getFirstMarker","set","author","getItems","toJSON","type","previous","markers","commentThread","isExternal","getRange","onDiscard","split","onAccept","removeMarker","_markerNames","creator","getRanges","add","end","decorate","addRange","attributes","head"];var $o,Jo;$o=Xo,Jo=177,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x30")]=e[Qo("0x30")],this[Qo("0x7")]=e[Qo("0x7")]||null,this.author=e[Qo("0x2d")],this.creator=e[Qo("0x3b")]||e[Qo("0x2d")],this[Qo("0x34")]=Boolean(e[Qo("0x4")]&&e[Qo("0x4")][Qo("0x20")]),this[Qo("0x9")]=null,this[Qo("0x23")]=t,this[Qo("0x27")]=e[Qo("0x38")],this[Qo("0x8")]=e[Qo("0x36")],this._onAttributesChange=e[Qo("0x1b")],this._markerNames=new Set,this[Qo("0xb")]=null,this[Qo("0x2c")](Qo("0x1e"),null),this[Qo("0x2c")]("attributes",e[Qo("0x4")]||{}),this[Qo("0x2c")](Qo("0x31"),null),this.set(Qo("0x22"),null),this[Qo("0x2c")](Qo("0x33"),null),this.set(Qo("0xa"),!1),this[Qo("0x2")]("accept"),this.decorate("discard")}get[Qo("0x5")](){let t=this;for(;t[Qo("0x31")];)t=t.previous;return t}get[Qo("0x29")](){return!!this[Qo("0x33")]&&this[Qo("0x33")][Qo("0x2a")]>0}get isMultiRange(){return 0!=this[Qo("0x3a")].size&&6==Array[Qo("0x1c")](this._markerNames)[0][Qo("0x37")](":").length}get isInContent(){return null!==this.getFirstMarker()}[Qo("0x1d")](t){this[Qo("0x3a")][Qo("0x0")](t)}[Qo("0x25")](){return Array.from(this[Qo("0x3a")])}[Qo("0x28")](){return this[Qo("0x25")]()[Qo("0xf")]((t=>this[Qo("0x23")][Qo("0x32")][Qo("0xc")](t)))[Qo("0xd")]((t=>t))}[Qo("0x2b")](){return this[Qo("0x28")]()[0]||null}removeMarkers(){this[Qo("0x23")][Qo("0x14")]((t=>{for(const e of this[Qo("0x28")]())t.removeMarker(e)})),this._markerNames[Qo("0x26")]()}[Qo("0x39")](t){this[Qo("0x23")][Qo("0x14")]((e=>{e.removeMarker(t)})),this[Qo("0x3a")].delete(t)}[Qo("0x3")](t){const e="suggestion:"+this[Qo("0x30")]+":"+this[Qo("0x7")]+":"+this.id+":"+this[Qo("0x3b")].id+":"+Zo.getMultiRangeId();this.addMarkerName(e),this._model[Qo("0x14")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x13")](t){for(const e of this.getRanges())if(e[Qo("0x1a")](t))return!0;return!1}[Qo("0x3c")](){return this.getMarkers().map((t=>t[Qo("0x35")]()))}getItems(){return this[Qo("0x3c")]().reduce(((t,e)=>[...t,...e[Qo("0x2e")]()]),[])}[Qo("0x15")](){var t;return(null===(t=this[Qo("0x2b")]())||void 0===t?void 0:t[Qo("0x35")]())||null}[Qo("0x17")](){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e[Qo("0x11")][Qo("0x1f")],o=e[Qo("0x1")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Qo("0x12")](){this[Qo("0x27")](this[Qo("0x3c")](),this.data,this[Qo("0x4")]),this.removeMarkers()}[Qo("0x6")](){this[Qo("0x8")](this[Qo("0x3c")](),this[Qo("0x9")],this.attributes),this[Qo("0x18")]()}[Qo("0x19")](){const t=[];let e=this.head;for(;e;)t.push(e),e=e.next;return t}[Qo("0xe")](t,e){const n=eo(this[Qo("0x4")]);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x4")]=n,this[Qo("0x21")](n))}[Qo("0x10")](t){const e=eo(this[Qo("0x4")]);qo(e,t),Go(e,this[Qo("0x4")])||(this.attributes=e,this[Qo("0x21")](this[Qo("0x4")]))}[Qo("0x2f")](){return{id:this.id,type:this[Qo("0x7")]?this[Qo("0x30")]+":"+this[Qo("0x7")]:this.type,authorId:this.creator.id,createdAt:this[Qo("0xb")],hasComments:this.hasComments,data:this[Qo("0x9")],attributes:this[Qo("0x4")]}}static[Qo("0x24")](){return(0,e.uid)()[Qo("0x16")](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=["_addDescriptionItems","elementEnd","addEmptyContainer","function","end","getItemLabel","indexOf","ELEMENT_SPACE","$text","name","addObject","*Insert:* %0","$1 $2","skip","push","deletion","EmptyContainer","_itemLabelsCallbacks","length","getFirstRange","Container","add","label","isEqual","_itemLabels","type","pop","set","data","previousSibling","quantity","get","_locale","removeObject","text","element","isObject","removeContainer","match","*Remove:* %0","getWalker","isEmpty","replace","*Merge:* %0","_schema","Object","normal","_customCallbacks","*Split:* %0","_resolveDescriptionItems","remove","REPLACE_TEXT","insertion","nextSibling"];var es,ns;es=ts,ns=122,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("0xa")]=new Map,this._itemLabelsCallbacks=[],this[os("0x1e")]=t,this[os("0x12")]=e}getDescriptions(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0x21")]){const n=t(o);if(n){os("0xb")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x28")](e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x2c")][os("0x9")](s[os("0x5")]().start)){const t=e[e[os("0x4")]-1],n="insertion"==o.type?"add":os("0x24");t&&os("0x14")==t[os("0xb")]&&(t[n]+="\n")}}}return this[os("0x23")](e)}registerDescriptionCallback(t){this[os("0x21")][os("0x0")](t)}registerElementLabel(t,n,o=e.priorities[os("0x20")]){os("0x2b")==typeof t?(0,e.insertToPriorityArray)(this[os("0x3")],{matchingCallback:t,label:n,priority:o}):this[os("0xa")][os("0xd")](t,n)}getItemLabel(t,e=1){let n;for(const e of this[os("0x3")])if(e.matchingCallback(t)){n=e[os("0x8")];break}return n||(n=this._itemLabels[os("0x11")](t[os("0x31")])),n?n(e):1!==e?e+" "+t[os("0x31")]+"s":""+t.name}[os("0x28")](t,e){const n=e[os("0x5")]()[os("0x1a")](),o=os("0x26")==e[os("0xb")]?os("0x7"):"remove";for(const e of n){const s=e.item,r=t[t[os("0x4")]-1];if(s.is("$textProxy"))r&&r.type[os("0x2e")](os("0x6"))>-1&&t[os("0xc")](),r&&os("0x14")==r[os("0xb")]?r[o]+=s[os("0xe")]:t.push({type:os("0x14"),add:os("0x7")==o?s[os("0xe")]:"",remove:os("0x24")==o?s.data:""});else if(this[os("0x1e")].isObject(s)){const i=s;if(r&&r[os("0xb")][os("0x2e")](os("0x6"))>-1&&t[os("0xc")](),os("0x29")==e[os("0xb")])continue;r&&r.type==o+"Object"&&r[os("0x15")].name==i.name?r.quantity++:t.push({type:o+os("0x1f"),element:i,quantity:1}),n[os("0x35")]((t=>!(os("0x29")==t[os("0xb")]&&t.item==s)))}else if(this[os("0x1e")].checkChild(s,os("0x30"))||s.is(os("0x15"),"softBreak")){const n=s;if(os("0x7")==o&&"elementStart"==e.type||os("0x24")==o&&os("0x29")==e[os("0xb")])continue;if(r&&-1==r.type[os("0x2e")](os("0x6"))){"text"==r[os("0xb")]&&(r[o]+="\n");continue}let i;if(i=os("0x7")==o?n[os("0x27")]&&!this[os("0x1e")][os("0x16")](n[os("0x27")])?n[os("0x27")]:null:n[os("0xf")]&&!this[os("0x1e")][os("0x16")](n[os("0xf")])?n[os("0xf")]:null,n.isEmpty||i&&i[os("0x1b")]){const e=i&&i[os("0x1b")]?i:n;r&&r[os("0xb")]==o+os("0x2")&&r[os("0x15")][os("0x31")]==e[os("0x31")]?r[os("0x10")]++:t[os("0x0")]({type:o+os("0x2"),element:e,quantity:1})}else t.push({type:o+os("0x6"),element:n})}}}_resolveDescriptionItems(t){const e=this[os("0x12")],n=[];for(const o of t){switch(o[os("0xb")]){case os("0x14"):if(o[os("0x7")]=o.add.replace(/(\S)\u000A+(\S)/g,os("0x34")).replace(/\u000A/g,""),o[os("0x24")]=o[os("0x24")].replace(/(\S)\u000A+(\S)/g,os("0x34"))[os("0x1c")](/\u000A/g,""),""!=o[os("0x7")]&&""!=o.remove){n[os("0x0")]({type:"replace",content:Yo(e,os("0x25"),['"'+o[os("0x24")]+'"','"'+o[os("0x7")]+'"'])});continue}if(null!=o.add[os("0x18")](/^ +$/)){n[os("0x0")]({type:os("0x26"),content:Yo(e,os("0x33"),Yo(e,os("0x2f"),o[os("0x7")][os("0x4")]))});continue}if(null!=o[os("0x24")][os("0x18")](/^ +$/)){n.push({type:"deletion",content:Yo(e,os("0x19"),Yo(e,"ELEMENT_SPACE",o[os("0x24")][os("0x4")]))});continue}if(""!=o[os("0x7")]){n[os("0x0")]({type:os("0x26"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x7")]+'"')});continue}n[os("0x0")]({type:"deletion",content:Yo(e,os("0x19"),'"'+o.remove+'"')});continue;case os("0x2a"):case os("0x32"):n.push({type:os("0x26"),content:Yo(e,os("0x33"),this.getItemLabel(o.element,o[os("0x10")]))});continue;case"removeEmptyContainer":case os("0x13"):n[os("0x0")]({type:"deletion",content:Yo(e,os("0x19"),this.getItemLabel(o[os("0x15")],o[os("0x10")]))});continue;case"addContainer":n[os("0x0")]({type:os("0x26"),content:Yo(e,os("0x22"),this[os("0x2d")](o[os("0x15")],o[os("0x10")]))});continue;case os("0x17"):n[os("0x0")]({type:os("0x1"),content:Yo(e,os("0x1d"),this[os("0x2d")](o.element,o[os("0x10")]))});continue}n[os("0x0")](o)}return n}}const rs=["plugins","FORMAT_ALIGN_TO_RIGHT","format","change","right","contentLanguageDirection","commandParams","from","*Format:* %0","markBlockFormat","registerDescriptionCallback","justify","FORMAT_ALIGN_TO_LEFT","TrackChangesEditing","FORMAT_ALIGN_TO_CENTER","value","model","getAttribute","alignment","has","editor","get","locale","enableCommand","left","commandName","getSelectedBlocks","FORMAT_JUSTIFY_TEXT"];var is,xs;is=rs,xs=291,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("0x9")],e=t[as("0xb")];if(!t[as("0x11")][as("0x8")]("AlignmentEditing"))return;const n=t.plugins[as("0xa")](as("0x2"));n[as("0xc")](as("0x7"),((e,o={})=>{let s=o[as("0x4")];o[as("0x4")]||(s="ltr"===t[as("0xb")][as("0x16")]?as("0xd"):as("0x15"));const r=Array[as("0x18")](this[as("0x9")][as("0x5")].document.selection[as("0xf")]()).filter((t=>function(t,e,n){const o=t[as("0x6")](as("0x7"))||null;return e.checkAttribute(t,as("0x7"))&&n!=o}(t,this.editor.model.schema,s)));t[as("0x5")][as("0x14")]((()=>{for(const t of r)n[as("0x1a")](t,{commandName:as("0x7"),commandParams:[{value:s}]})}))})),n._descriptionFactory[as("0x1b")]((t=>{const{data:n}=t;if(n&&"alignment"==n[as("0xe")]){const t=n[as("0x17")][0][as("0x4")];return{type:as("0x13"),content:Yo(e,as("0x19"),function(t){switch(t){case"left":return Yo(e,as("0x1"));case as("0x15"):return Yo(e,as("0x12"));case"center":return Yo(e,as("0x3"));case as("0x0"):return Yo(e,as("0x10"))}}(t))}}}))}}const ls=["previousPosition","writer","plugins","item","isAtEnd","getAttribute","nextSibling","test","addHighlight","markerRange","getItems","element","createRangeOn","bindElementToMarker","toViewPosition","isContent","ck-suggestion-marker--active","span","createUIElement","consumable","listIndent","addClass","markerName","mapper","push","includes","activeMarkers","schema","parent","type","get","model","getWalker","start","ck-suggestion-marker-","name"];var us,ds;us=ls,ds=103,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0xf")]())s.hasAttribute(t)&&o[gs("0x1d")](n[gs("0x11")](s));return o}function fs(t){const e=[];if(t.is("element","listItem")){let n=t[gs("0xb")];for(;n&&n.is(gs("0x10"),"listItem")&&n[gs("0xa")](gs("0x19"))>0;)e.push(n),n=n[gs("0xb")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x7")][gs("0x23")]("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0x18")][gs("0xc")](r.markerRange,s[gs("0x4")]))return;const x=r[gs("0xe")][gs("0x1")](),a=r.markerRange[gs("0x2")],c=t[gs("0x0")][gs("0x20")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x8")];d=d||c[gs("0x14")](e);const n=i[gs("0x1c")].toViewElement(e);if(n&&n.getCustomProperty(gs("0xd")))return;"elementEnd"==t[gs("0x22")]&&c.isBlock(e)&&!c.isLimit(e)&&(e[gs("0xb")]||a[gs("0x9")]?l&&l[gs("0x21")]==e||(l=e,m(t[gs("0x5")]),g=!0):u=u||t[gs("0x5")])}function m(t){const s=i[gs("0x6")][gs("0x17")](gs("0x16"),{class:gs("0x3")+e}),x=i[gs("0x1c")][gs("0x13")](t);n&&o[gs("0x1f")][gs("0x1e")](r[gs("0x1b")])&&i[gs("0x6")][gs("0x1a")](gs("0x15"),s),i[gs("0x6")].insert(x,s),i[gs("0x1c")][gs("0x12")](s,r.markerName)}d||g||!u||m(u)}}const ps=["ItalicEditing","bold","get","commandName","CodeEditing","slice","italic","_descriptionFactory","selection","plugins","SuperscriptEditing","editor","enableCommand","commandParams","markInlineFormat","from","SubscriptEditing","has","FORMAT_ITALIC","toLowerCase","FORMAT_STRIKETHROUGH","TrackChangesEditing","FORMAT_SUBSCRIPT","value","StrikethroughEditing","code","FORMAT_CODE","forceValue","superscript","format","UnderlineEditing","locale","isCollapsed","subscript","model","BoldEditing","registerDescriptionCallback"];var bs,Es;bs=ps,Es=140,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x6"),_s("0x8"),_s("0x1"),_s("0xc"),_s("0x20"),_s("0x18"),_s("0x12")];class Cs extends t.Plugin{afterInit(){const t=this[_s("0x13")],e=t[_s("0x5")],n=t[_s("0x11")][_s("0xa")](_s("0x1d")),o=t[_s("0x2")];for(const o of Ts){if(!t[_s("0x11")][_s("0x19")](o))continue;const s=o[_s("0xd")](0,-7)[_s("0x1b")](),r=t.commands.get(s);n[_s("0x14")](s,((t,o={})=>{const i=e.document[_s("0x10")];if(i[_s("0x3")])return void t(o);const x=void 0!==o[_s("0x23")]?o[_s("0x23")]:!r[_s("0x1f")];e.change((()=>{const t=Array[_s("0x17")](i.getRanges());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x16")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0xf")][_s("0x7")]((n=>{const{data:s}=n;if(s&&s[_s("0xb")]===t)return s[_s("0x15")][0][_s("0x23")]?{type:"format",content:Yo(o,"*Format:* %0",e)}:{type:_s("0x0"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0x9"),Yo(o,"FORMAT_BOLD")),s(_s("0xe"),Yo(o,_s("0x1a"))),s("underline",Yo(o,"FORMAT_UNDERLINE")),s(_s("0x21"),Yo(o,_s("0x22"))),s("strikethrough",Yo(o,_s("0x1c"))),s(_s("0x4"),Yo(o,_s("0x1e"))),s(_s("0x24"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["editor","afterInit","plugins","schema","getSelectedBlocks","has","enableCommand","registerDescriptionCallback","forceValue","commands","ELEMENT_BLOCK_QUOTE","TrackChangesEditing","parent","_descriptionFactory","from","change","name","get","checkChild","markBlockFormat","document","model","format","$root","BlockQuoteEditing","blockQuote","commandParams","locale","value","filter"];var ks,As;ks=ys,As=309,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x16")](){const t=this[vs("0x15")],e=t[vs("0x12")];if(!t[vs("0x17")][vs("0x1a")](vs("0xf")))return;const n=t.plugins[vs("0x8")](vs("0x2")),o=this[vs("0x15")][vs("0x0")].get(vs("0x10"));n[vs("0x1b")]("blockQuote",((e,s={})=>{const r=this.editor[vs("0xc")][vs("0xb")].selection,i=s&&void 0!==s[vs("0x1d")]?s[vs("0x1d")]:!o[vs("0x13")];let x=[];if(i){const e=Array[vs("0x5")](r[vs("0x19")]()).filter((t=>Ss(t)||function(t,e){const n=e.checkChild(t.parent,vs("0x10")),o=e[vs("0x9")]([vs("0xe"),vs("0x10")],t);return n&&o}(t,this[vs("0x15")][vs("0xc")][vs("0x18")])));x=S(e,t[vs("0xc")])}else{const e=Array[vs("0x5")](r[vs("0x19")]())[vs("0x14")]((t=>Ss(t)));x=S(e,t[vs("0xc")])}t[vs("0xc")][vs("0x6")]((()=>{for(const t of x)n[vs("0xa")](t,{commandName:vs("0x10"),commandParams:[{forceValue:i}]})}))})),n[vs("0x4")][vs("0x1c")]((t=>{const{data:n}=t;if(n&&vs("0x10")==n.commandName){const t=Yo(e,vs("0x1"));return n[vs("0x11")][0][vs("0x1d")]?{type:vs("0xd"),content:Yo(e,"*Format:* %0",t)}:{type:vs("0xd"),content:Yo(e,"*Remove format:* %0",t)}}}))}}function Ss(t){return vs("0x10")==t[vs("0x3")][vs("0x7")]}const Is=["plugins","afterInit","TrackChangesEditing","editor","commands","ckbox","get"];var Ls,Ns;Ls=Is,Ns=150,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x5")](){const t=this[Ms("0x0")];t[Ms("0x1")][Ms("0x3")](Ms("0x2"))&&t[Ms("0x4")].get(Ms("0x6")).enableCommand("ckbox")}}const Os=["document","rootElement","registerDescriptionCallback","name","blockName","ELEMENT_CODE_BLOCK","CodeBlock","commandParams","markBlockFormat","value","formatBlock","_descriptionFactory","enableCommand","plugins","model","find","TrackChangesEditing","label","commands","codeBlock","getSelectedBlocks","indentCodeBlock","get","schema","*Format:* %0","languages","parent","editor","forceValue","from","format","commandName","*Remove format:* %0","language","outdentCodeBlock"];var Fs,Ps;Fs=Os,Ps=494,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[Ds("0x17")];if(!t.plugins.has(Ds("0x2")))return;const e=t[Ds("0x9")][Ds("0x12")](Ds("0xc")),n=t.locale,o=t.config[Ds("0x12")](Ds("0xf"))[Ds("0x15")],s=t[Ds("0xe")][Ds("0x12")](Ds("0xf"));e[Ds("0x8")](Ds("0x11")),e[Ds("0x8")](Ds("0x1e")),e[Ds("0x8")](Ds("0xf"),((n,r={})=>{const i=t.model,x=t[Ds("0xa")][Ds("0x1f")].selection,a=r&&void 0!==r[Ds("0x18")]?r[Ds("0x18")]:!s[Ds("0x5")];let c;r[Ds("0x1d")]||(r[Ds("0x1d")]=o[0][Ds("0x1d")]),c=a?Array[Ds("0x19")](x[Ds("0x10")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0x13")],!e.is(Ds("0x20"))&&!n.isLimit(e)&&n.checkChild(e[Ds("0x16")],Ds("0xf")));var e,n})):Array[Ds("0x19")](x[Ds("0x10")]()).filter((t=>js(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Ds("0x4")](t,{commandName:Ds("0xf"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x0")})}))})),e._descriptionFactory.registerElementLabel(Ds("0xf"),(t=>Yo(n,Ds("0x1"),t))),e[Ds("0x7")][Ds("0x21")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x6")==s&&r&&"codeBlock"==r[Ds("0x1b")]){const t=r.commandParams[0][Ds("0x1d")],s=e(o[Ds("0xb")]((e=>e[Ds("0x1d")]===t))[Ds("0xd")]);return r[Ds("0x3")][0][Ds("0x18")]?{type:Ds("0x1a"),content:Yo(n,Ds("0x14"),Yo(n,Ds("0x1"),1)+" ("+s+")")}:{type:Ds("0x1a"),content:Yo(n,Ds("0x1c"),Yo(n,Ds("0x1"),1))}}}))}}function js(t){return Ds("0xf")==t[Ds("0x22")]}const Us=["TrackChangesEditing","has","afterInit","plugins","enableCommand","get"];var Gs,Hs;Gs=Us,Hs=166,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x4")](){const t=this.editor;t.plugins[zs("0x3")]("CommentsEditing")&&t[zs("0x5")][zs("0x1")](zs("0x2"))[zs("0x0")]("addCommentThread")}}var Vs=n(181);const Ks=["document","unlock","data","commands","unit","getFirstRange","addMarker:suggestion:deletion","get","editor","end","markerNameToElements","removeMarker:suggestion:deletion","detach","showSuggestionHighlights","remove","deleteForward","enqueueChange","bind","uiElement","isCollapsed","createSelection","start","rootName","batch","options","high","TrackChangesEditing","setSelection","forward","modifySelection","buffer","plugins","downcastDispatcher","$graveyard","writer","editing","requires","mapper","merge","delete","enableCommand","model","fromRange","createRange"];var qs,Xs;qs=Ks,Xs=228,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x1c")](){return[Vs.Delete]}init(){const t=this[$s("0x0")],e=t[$s("0x17")][$s("0x2b")]($s("0x12"));e.enableCommand($s("0x1f"));const n=t[$s("0x27")][$s("0x2b")]($s("0x7"));e[$s("0x20")]($s("0x7"),((e,o={})=>{const s=t[$s("0x21")][$s("0xc")](t.model[$s("0x24")].selection);s[$s("0xb")]&&t.model[$s("0x15")](s,{direction:$s("0x14"),unit:o[$s("0x28")]});const r=s[$s("0x29")](),x=i.LiveRange[$s("0x22")](r);let a;e(o),a=$s("0x19")==x.root[$s("0xe")]?t[$s("0x21")][$s("0x23")](r.start):t[$s("0x21")][$s("0x23")](x[$s("0xd")],x[$s("0x1")]),x[$s("0x4")](),t[$s("0x21")][$s("0x8")](n[$s("0x16")][$s("0xf")],(t=>{n[$s("0x16")].lock(),t[$s("0x13")](t.createRange(a[$s("0x1")])),n[$s("0x16")][$s("0x25")]()}))})),t[$s("0x1b")][$s("0x18")].on($s("0x2a"),hs(t,$s("0x1e")),{priority:$s("0x11")}),t[$s("0x26")][$s("0x18")].on($s("0x2a"),((e,n,o)=>{o[$s("0x10")][$s("0x5")]&&hs(t,$s("0x1e"),{showActiveMarker:!1})[$s("0x9")](this)(e,n,o)}),{priority:"high"}),t.editing[$s("0x18")].on($s("0x3"),((t,e,n)=>{const o=n[$s("0x1d")][$s("0x2")](e.markerName);if(o)for(const t of o)t.is($s("0xa"))&&(n[$s("0x1d")].unbindElementFromMarkerName(t,e.markerName),n[$s("0x1a")][$s("0x6")](t))}),{priority:$s("0x11")})}}const Qs=["push","selection","after","isFirstBlockOfListItem","from","getRanges","ELEMENT_LIST_ITEM","map","getFirstRange","multipleBlocks","isObject","createRange","model","end","numberedList","*Merge:* %0","*Indent:* %0","markBlockFormat","commandName","toUpperCase","setSelection","commands","value","bulletedList","editor","ELEMENT_","*Format:* remove from %0","previousSibling","splitListItemBefore","registerCustomCallback","markMultiRangeBlockFormat","splitListItemAfter","getAttribute","plugins","DocumentListEditing","deletion","locale","ELEMENT_NUMBERED_LIST","outdentList","afterInit","*Format:* insert into %0","length","_descriptionFactory","nodeAfter","slice","mergeListItemForward","formatBlock","schema","getSelectedBlocks","hasAttribute","format","start","fromRange","mergeListItemBackward","TrackChangesEditing","*Outdent:* %0","*Change to:* %0","listItemId","change","enableCommand","nextSibling","document","commandParams","registerDescriptionCallback","listType","indentList","forceValue","refresh","findIndex","before","registerElementLabel","get","listIndent","createPositionAt"];var Zs,Ys;Zs=Qs,Ys=323,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0xc")](){const t=this[tr("0x47")];if(!t[tr("0x6")].has(tr("0x7")))return;const e=t[tr("0x9")],n=t[tr("0x6")].get(tr("0x1b")),o=t[tr("0x6")][tr("0x2c")]("DocumentListUtils");function s(e){return()=>{const s=t[tr("0x44")][tr("0x2c")](e);let r=Array.from(t[tr("0x3b")].document[tr("0x30")][tr("0x15")]());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o[tr("0x32")](e)&&t[tr("0x2f")](e);r=t}t.model[tr("0x1f")]((()=>{n[tr("0x3")](r,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:tr("0x25")},[],"documentList")}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[tr("0x29")]((t=>!t[tr("0x16")](tr("0x1e"))));return n>-1&&(e=e[tr("0x11")](0,n)),e}(t[tr("0x3b")][tr("0x22")].selection[tr("0x15")]()),s=o[o[tr("0xe")]-1],r=t[tr("0x3b")][tr("0x14")][tr("0x39")](s)?tr("0x31"):tr("0x3c"),i=t[tr("0x3b")][tr("0x3a")](t[tr("0x3b")][tr("0x2e")](o[0],tr("0x2a")),t[tr("0x3b")][tr("0x2e")](s,r));t[tr("0x3b")][tr("0x1f")]((()=>{n[tr("0x40")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x25")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x21")];for(;t&&t.getAttribute("listIndent")>n[tr("0x5")]("listIndent");)e.add(t),t=t[tr("0x21")]}return Array[tr("0x33")](e)}(o))}))}}function x(e){return()=>{const o=t.model.document.selection[tr("0x15")]().next()[tr("0x45")],s=t[tr("0x3b")][tr("0x2e")](o,"before"),r=t[tr("0x3b")].createPositionAt(o,0),i=t[tr("0x3b")].createRange(s,r);t[tr("0x3b")][tr("0x1f")]((()=>{n[tr("0x40")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x25")})}))}}function a(e){const n=t.commands[tr("0x2c")](tr("0x46"))[tr("0x45")],o=t[tr("0x44")][tr("0x2c")]("numberedList")[tr("0x45")];return"numberedList"===e?n:o}n[tr("0x20")](tr("0x3d"),s(tr("0x3d"))),n[tr("0x20")](tr("0x46"),s(tr("0x46"))),n[tr("0x20")](tr("0x26"),r(tr("0x26"))),n[tr("0x20")](tr("0xb"),r(tr("0xb"))),n[tr("0x20")](tr("0x4"),x(tr("0x4"))),n[tr("0x20")]("splitListItemBefore",x(tr("0x1"))),n._descriptionFactory[tr("0x2b")]((function(e){const n=!t[tr("0x3b")][tr("0x14")].isObject(e),o=e[tr("0x0")],s=e[tr("0x21")],r=e[tr("0x5")](tr("0x1e")),i=!o||o[tr("0x5")]("listItemId")!==r,x=!s||s[tr("0x5")]("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x35"),t))),n[tr("0xf")][tr("0x24")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n.commandName){case"bulletedList":r=n[tr("0x23")][0][tr("0x27")],i=a(n[tr("0x41")]),o=r?"*Format:* insert into %0":"*Format:* remove from %0",i&&(o=tr("0x1d")),s={type:tr("0x17"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0x3d"):r=n[tr("0x23")][0].forceValue,i=a(n[tr("0x41")]),o=tr(r?"0xd":"0x49"),i&&(o=tr("0x1d")),s={type:"format",content:Yo(e,o,Yo(e,tr("0xa")))};break;case"indentList":o=tr("0x3f"),s={type:tr("0x17"),content:Yo(e,o,Yo(e,tr("0x35")))};break;case tr("0xb"):o=function(t){const e=t[tr("0x37")]();let n=e.start[tr("0x10")];for(;n&&e.containsItem(n);){if(n[tr("0x5")](tr("0x2d"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x49"),Yo(e,function(t){const e=t[tr("0x37")]()[tr("0x18")].nodeAfter;return tr("0x48")+e[tr("0x5")](tr("0x25"))[tr("0x42")]()+"_LIST"}(t))):Yo(e,tr("0x1c"),Yo(e,"ELEMENT_LIST_ITEM")),s={type:tr("0x17"),content:o};break;case tr("0x1a"):case tr("0x12"):!1===n[tr("0x38")]&&(o=tr("0x3e"),s={type:tr("0x8"),content:Yo(e,o,Yo(e,tr("0x35")))})}return s})),n._suggestionFactory[tr("0x2")](tr("0x13"),"documentList","accept",(function(e,n){const o=[];for(let n of e)n[tr("0x18")][tr("0x10")]===n.end.parent&&(n=t.model[tr("0x3a")](t.model.createPositionAt(n[tr("0x18")][tr("0x10")],0))),o[tr("0x2f")](n);t[tr("0x3b")][tr("0x1f")]((e=>{const s=t[tr("0x3b")][tr("0x22")].selection,r=Array[tr("0x33")](s[tr("0x34")]())[tr("0x36")]((t=>i.LiveRange[tr("0x19")](t)));e[tr("0x43")](o),t.commands[tr("0x2c")](n[tr("0x41")])[tr("0x28")](),n[tr("0x23")][tr("0x2f")]({forceDefaultExecution:!0}),t.execute(n[tr("0x41")],...n[tr("0x23")]),e.setSelection(r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["init","requires","downcastDispatcher","removeMarker:suggestion:insertion","editor","parent","split","detach","setSelection","nextSibling","model","markerNameToElements","createRange","bind","TrackChangesEditing","createPositionAt","markerName","showSuggestionHighlights","editing","fire","mapper","enterBlock","document","remove","writer","unbindElementFromMarkerName","plugins","markInsertion","afterExecute","hasClass","high","change","commands","enableCommand","addMarker:suggestion:insertion","get","getFirstPosition","ck-suggestion-marker-split"];var sr,rr;sr=or,rr=334,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x9")](){return[nr.Enter]}[ir("0x8")](){const t=this[ir("0xc")],e=t[ir("0x22")][ir("0x5")](ir("0x16")),n=t[ir("0x2")][ir("0x5")]("enter");e[ir("0x3")]("enter",(()=>{t[ir("0x12")][ir("0x1")]((o=>{const s=t[ir("0x12")][ir("0x1e")].selection,r=s[ir("0x6")](),x=i.LiveRange.fromRange(s.getFirstRange());if(n[ir("0x1d")](o)){const n=t[ir("0x12")][ir("0x17")](r[ir("0xd")][ir("0x11")],0),s=o[ir("0x14")](r,n);e[ir("0x23")](s)}else o[ir("0x10")](o[ir("0x14")](x.end));x[ir("0xf")](),n[ir("0x1b")](ir("0x24"),{writer:o})}))})),t[ir("0x1a")][ir("0xa")].on(ir("0x4"),hs(t,ir("0xe")),{priority:"high"}),t[ir("0x1a")][ir("0xa")].on(ir("0xb"),((t,e,n)=>{const o=n.mapper[ir("0x13")](e[ir("0x18")]);if(o)for(const t of o)t[ir("0x25")](ir("0x7"))&&(n[ir("0x1c")][ir("0x21")](t,e.markerName),n[ir("0x20")][ir("0x1f")](t))}),{priority:ir("0x0")}),t.data[ir("0xa")].on(ir("0x4"),((e,n,o)=>{o.options[ir("0x19")]&&hs(t,ir("0xe"),{showActiveMarker:!1})[ir("0x15")](this)(e,n,o)}),{priority:ir("0x0")})}}const ar=["has","item","start","findNext","TrackChangesEditing","_isInDeletionRange","get","bind","getIntersection","afterInit","plugins","findPrevious","enableCommand","FindAndReplaceUtils","model","editor","getMarkersGroup","createRange","handleFindCommand","markers","FindAndReplaceEditing","end","string","createPositionAt"];var cr,lr;cr=ar,lr=123,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0x6")](){if(!this.editor[ur("0x7")][ur("0x15")](ur("0x11")))return;const t=this[ur("0xc")].plugins.get(ur("0x1"));t.enableCommand("find",this[ur("0xf")][ur("0x4")](this)),t[ur("0x9")](ur("0x0")),t[ur("0x9")](ur("0x8")),t.enableCommand("replace"),t[ur("0x9")]("replaceAll")}[ur("0xf")](t,e,n={}){const o=this.editor[ur("0x7")][ur("0x3")](ur("0xa"));void 0!==n&&t((t=>(ur("0x13")==typeof e?o.findByTextCallback(e,n):e)(t).filter((e=>!1===this[ur("0x2")](e,t[ur("0x16")])))),n)}[ur("0x2")](t,e){const n=this[ur("0xc")][ur("0xb")][ur("0xe")](this[ur("0xc")][ur("0xb")][ur("0x14")](e,t[ur("0x17")]),this.editor.model[ur("0x14")](e,t[ur("0x12")]));for(const t of this.editor.model[ur("0x10")][ur("0xd")]("suggestion:deletion"))if(null!==n[ur("0x5")](t.getRange()))return!0;return!1}}const gr=["trim","*Set font size:* %0","registerDescriptionCallback","commandName","markInlineFormat","isCollapsed","model","document","TrackChangesEditing","getRanges","find","_descriptionFactory","plugins","value","FontSizeEditing","fontSize","get","FontSize","from","label","fontBackgroundColor.colors","_enableCommand","format","fontSize.options","enableCommand","normalizeSizeOptions","toLowerCase","fontColor","locale","config","change","commandParams","fontBackgroundColor","*Set font background color:* %0","*Reset font family*","editor","fontColor.colors","fontFamily","FontBackgroundColorEditing","has","*Reset font size*","*Set font color:* %0","*Reset font color*","FontFamilyEditing","*Set font family:* %0"];var mr,fr;mr=gr,fr=438,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1a"),commandName:"fontSize"},{pluginName:hr("0xa"),commandName:"fontFamily"},{pluginName:"FontColorEditing",commandName:hr("0x27")},{pluginName:hr("0x5"),commandName:hr("0x2c")}];class br extends t.Plugin{afterInit(){const t=this[hr("0x2")][hr("0x28")];for(const{pluginName:t,commandName:e}of pr)this.editor.plugins[hr("0x6")](t)&&this[hr("0x21")](e);this.editor.plugins.get("TrackChangesEditing")[hr("0x17")][hr("0xe")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x1b")==o.commandName){const e=o[hr("0x2b")][0][hr("0x19")];if(e){const o=n(this[hr("0x2")][hr("0x18")][hr("0x1c")](hr("0x1d"))[hr("0x25")](this[hr("0x2")].config[hr("0x1c")](hr("0x23"))).find((t=>t.model==e)).title)[hr("0x26")]();return{type:hr("0x22"),content:Yo(t,hr("0xd"),o)}}return{type:"format",content:Yo(t,hr("0x7"))}}if(hr("0x4")==o[hr("0xf")]){const e=o[hr("0x2b")][0].value;return e?{type:hr("0x22"),content:Yo(t,hr("0xb"),e)}:{type:hr("0x22"),content:Yo(t,hr("0x1"))}}if(hr("0x27")==o[hr("0xf")]){const e=o[hr("0x2b")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x2")][hr("0x29")][hr("0x1c")](hr("0x3")))[hr("0x16")]((t=>t[hr("0x12")]==e));let r=e,i="";return o&&(r=o[hr("0x1f")],i=n(r).toLowerCase()),{type:"format",content:Yo(t,hr("0x8"),i)[hr("0xc")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x9"))}}if("fontBackgroundColor"==o[hr("0xf")]){const e=o[hr("0x2b")][0][hr("0x19")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x2")][hr("0x29")][hr("0x1c")](hr("0x20")))[hr("0x16")]((t=>t[hr("0x12")]==e));let r=e,i="";return o&&(r=o.label,i=n(r).toLowerCase()),{type:hr("0x22"),content:Yo(t,hr("0x0"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x22"),content:Yo(t,"*Reset font background color*")}}}}))}_enableCommand(t){const e=this[hr("0x2")];e[hr("0x18")][hr("0x1c")]("TrackChangesEditing")[hr("0x24")](t,((n,o={})=>{const s=e.model[hr("0x13")].selection,r=o[hr("0x19")];s[hr("0x11")]?n(o):e[hr("0x12")][hr("0x2a")]((()=>{const n=Array[hr("0x1e")](s[hr("0x15")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x12")]);for(const o of n)e[hr("0x18")].get(hr("0x14"))[hr("0x10")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["locale","join","find","model","toUpperCase","plugins","pasteFormat","createRange","keys","change","copyFormat","selection","push","format","FontSize","*Remove all formatting*","label","get","fontSize","document","editor","toLowerCase","fontSize.options","fontBackgroundColor","word","markInlineFormat","commandName","createSelection","getAttributes","*Set format to:* %0","title","registerDescriptionCallback","enableCommand","length","getSelectedBlocks","_descriptionFactory","isCollapsed","forward","split","commands","afterInit","boolean","getLastPosition","config","isBlock","commandParams","from","slice","isFormatting","fontColor","entries","schema","modifySelection","getRanges","backward"];var _r,Tr;_r=Er,Tr=365,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x5")](){const t=this[Cr("0x28")],n=t[Cr("0x17")],o=n[Cr("0x27")][Cr("0x1f")],s=t.plugins[Cr("0x25")]("TrackChangesEditing"),r=t[Cr("0x14")],i=t[Cr("0x4")][Cr("0x25")](Cr("0x1e")),x=t[Cr("0x4")][Cr("0x25")](Cr("0x1a"));i&&x&&(s[Cr("0x34")](Cr("0x1a"),((t,r={})=>{const i=r;n[Cr("0x1d")]((()=>{const t=Array[Cr("0xb")](o[Cr("0x12")]()),r=o[Cr("0x1")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x30")]()){const t=e.getAttributeProperties(n);t&&t[Cr("0xd")]&&(yield n)}}(t,n));for(const e of t[Cr("0x12")]())for(const t of e.getItems())!n[Cr("0x9")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x36")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x10")]))||0!==Object[Cr("0x1c")](i)[Cr("0x35")])for(const t of r)s[Cr("0x2d")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Cr("0x0")][Cr("0x33")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n[Cr("0x2e")]){const e=[],o=n[Cr("0xa")][0];for(const[n,s]of Object[Cr("0xf")](o))e[Cr("0x20")](Ar(t,n,s));return e[Cr("0x35")]?{type:Cr("0x21"),content:Yo(r,Cr("0x31"),e.join(", "))}:{type:"format",content:Yo(r,Cr("0x23"))}}})),t[Cr("0x19")][Cr("0x25")]("TrackChangesEditing")[Cr("0x34")]("copyFormat"))}}function kr(t,e){const n=t[Cr("0x2f")](e);t[Cr("0x11")](n,{unit:Cr("0x2c"),direction:Cr("0x13")});const o=n.getFirstPosition();t[Cr("0x11")](n,{unit:Cr("0x2c"),direction:Cr("0x2")});const s=n[Cr("0x7")]();return t[Cr("0x1b")](o,s)}function Ar(t,e,n){const o=t[Cr("0x14")].t,r=e[Cr("0x3")](/(?=[A-Z])/)[Cr("0x15")](" "),i=o(r.charAt(0)[Cr("0x18")]()+r[Cr("0xc")](1)).toLowerCase();if(Cr("0x6")==typeof n)return i;if(Cr("0xe")===e||Cr("0x2b")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x8")].get("fontColor.colors"))[Cr("0x16")]((t=>t[Cr("0x17")]==n));return i+" ("+(e?o(e[Cr("0x24")])[Cr("0x29")]():n)+")"}if(Cr("0x26")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x25")](Cr("0x22")).normalizeSizeOptions(t[Cr("0x8")][Cr("0x25")](Cr("0x2a")))[Cr("0x16")]((t=>t[Cr("0x17")]==n));return i+" ("+(e?o(e[Cr("0x32")])[Cr("0x29")]():n)+")"}return i+" ("+n+")"}const vr=["format","registerDescriptionCallback","commandParams","config","registerElementLabel","checkChild","name","plugins","TrackChangesEditing","match","*Change to:* %0","heading.options","change","ELEMENT_HEADING_CUSTOM","heading","enableCommand","_descriptionFactory","commandName","markBlockFormat","get","model","title","find","selection","locale","has","filter","ELEMENT_HEADING","parent","editor","value","formatBlock","afterInit","paragraph"];var Rr,Sr;Rr=vr,Sr=478,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x1e")](){const t=this[Ir("0x1b")],e=t[Ir("0x16")],n=t[Ir("0x1")][Ir("0x11")](Ir("0x9"));if(!t[Ir("0x5")][Ir("0x17")]("HeadingEditing"))return;const o=t.plugins[Ir("0x11")](Ir("0x6"));o[Ir("0xd")](Ir("0xc"),((e,n)=>{const s=n[Ir("0x1c")],r=Array.from(this[Ir("0x1b")][Ir("0x12")].document[Ir("0x15")].getSelectedBlocks())[Ir("0x18")]((t=>{return e=t,n=s,(o=this[Ir("0x1b")][Ir("0x12")].schema)[Ir("0x3")](e[Ir("0x1a")],n)&&!o.isObject(e)&&e[Ir("0x4")]!=n;var e,n,o}));t[Ir("0x12")][Ir("0xa")]((()=>{for(const t of r)o[Ir("0x10")](t,{commandName:Ir("0xc"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)Ir("0x1f")!=t[Ir("0x12")]&&o[Ir("0xe")][Ir("0x2")](t[Ir("0x12")],(e=>{const n=Nr(t[Ir("0x12")]);return null!==n?s(e,n):r(e,t[Ir("0x13")])}));function s(t,n){return Yo(e,Ir("0x19"),[t,n])}function r(t,n){return Yo(e,Ir("0xb"),[t,n])}o._descriptionFactory[Ir("0x21")]((t=>{const{type:o,data:i}=t;if(Ir("0x1d")==o&&i&&Ir("0xc")==i[Ir("0xf")]){const t=i[Ir("0x0")][0][Ir("0x1c")],o=Nr(t);if(null!==o)return{type:Ir("0x20"),content:Yo(e,Ir("0x8"),s(1,o))};const x=n[Ir("0x14")]((e=>e[Ir("0x12")]===t))[Ir("0x13")];return{type:Ir("0x20"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x7")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["TrackChangesEditing","enableCommand","registerDescriptionCallback","locale","_descriptionFactory","color","push","value","getLastMatchingPosition","createRange","*Set highlight:* %0","commandParams","document","model","config","get","HighlightEditing","plugins","change","format","selection","isCollapsed","commandName","editor","formatInline","find","getAttribute","highlight","highlight.options","afterInit","toLowerCase","markInlineFormat"];var wr,Or;wr=Mr,Or=151,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x6")](){const t=this[Fr("0x0")];if(!t[Fr("0x1a")].has(Fr("0x19")))return;const e=t[Fr("0x1a")].get(Fr("0x9"));e[Fr("0xa")](Fr("0x4"),((n,o={})=>{const s=t[Fr("0x16")][Fr("0x15")][Fr("0x1d")],r=s[Fr("0x3")](Fr("0x4"));let i=o[Fr("0x10")],x=[];if(s[Fr("0x1e")]){const e=s.getFirstPosition();if(!s.hasAttribute("highlight"))return void n(o);{const n=t=>t.item[Fr("0x3")](Fr("0x4"))===r,o=e[Fr("0x11")](n,{direction:"backward"}),s=e[Fr("0x11")](n);x=[t[Fr("0x16")][Fr("0x12")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x.push(e):x[Fr("0xf")](...ms(Fr("0x4"),e,t[Fr("0x16")]));t[Fr("0x16")][Fr("0x1b")]((()=>{for(const t of x)e[Fr("0x8")](t,{commandName:Fr("0x4"),commandParams:[{value:i}]})}))}));const n=t[Fr("0xc")];e[Fr("0xd")][Fr("0xb")]((e=>{const{type:o,data:s}=e;if(Fr("0x1")==o&&s&&Fr("0x4")==s[Fr("0x1f")]){const e=n.t,o=s[Fr("0x14")][0][Fr("0x10")];if(o){const s=t[Fr("0x17")][Fr("0x18")](Fr("0x5"))[Fr("0x2")]((t=>t[Fr("0x16")]==o)),r=e(s.title)[Fr("0x7")]();return{type:Fr("0x1c"),content:Yo(n,Fr("0x13"),r),color:{value:s[Fr("0xe")],title:s.title}}}return{type:Fr("0x1c"),content:Yo(n,"*Remove highlight*",Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["get","HorizontalLineEditing","ELEMENT_HORIZONTAL_LINE","conversion","editor","createContainerElement","createPositionAt","elementToStructure","locale","for","afterInit","registerElementLabel","horizontalLine","has","dataDowncast","_descriptionFactory","ck-horizontal-line","enableCommand","plugins","div","TrackChangesEditing","createEmptyElement"];var Br,jr;Br=Dr,jr=126,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x10")](){const t=this[Ur("0xa")];if(!t[Ur("0x2")][Ur("0x13")](Ur("0x7")))return;t[Ur("0x2")].get(Ur("0x4"))[Ur("0x1")]("horizontalLine");const e=t[Ur("0x2")][Ur("0x6")](Ur("0x4")),n=t[Ur("0xe")];e[Ur("0x15")][Ur("0x11")](Ur("0x12"),(t=>Yo(n,Ur("0x8"),t))),t[Ur("0x9")][Ur("0xf")](Ur("0x14"))[Ur("0xd")]({model:Ur("0x12"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0xb")](Ur("0x3")),s=e[Ur("0x5")]("hr");return e.addClass(Ur("0x0"),o),e.insert(e[Ur("0xc")](o,0),s),o},converterPriority:"high"})}}const Hr=["htmlEmbed","model","format","selection","editor","getAttribute","getCustomProperty","rawHtml","_descriptionFactory","rawHtmlApi","afterInit","value","commandName","*Change %0 content*","TrackChangesEditing","registerElementLabel","ELEMENT_HTML_EMBED","markBlockFormat","enableCommand","document","HtmlEmbed","getSelectedElement","plugins","view","has","get","editing","change"];var zr,Wr;zr=Hr,Wr=106,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x10")](){const t=this[Vr("0xa")];if(!t[Vr("0x0")][Vr("0x2")](Vr("0x1a")))return;const e=t[Vr("0x0")][Vr("0x3")](Vr("0x14")),n=t.locale,o=t[Vr("0x4")][Vr("0x1")][Vr("0x19")].selection;e._descriptionFactory[Vr("0x15")](Vr("0xd"),(t=>Yo(n,Vr("0x16"),t))),t[Vr("0x0")].get(Vr("0x14"))[Vr("0x18")](Vr("0x6"),((n,s)=>{const r=t[Vr("0x7")],i=r[Vr("0x19")][Vr("0x9")];r[Vr("0x5")]((()=>{const t=function(t){const e=t[Vr("0x1b")]();return e&&e.is("element",Vr("0xd"))?t[Vr("0x1b")]():null}(i);if(!t)return void n(null);const r=t[Vr("0xb")](Vr("0x11"))||"";void 0!==s&&s!==r&&(e[Vr("0x17")](t,{commandName:Vr("0x6"),commandParams:[s]}),o[Vr("0x1b")]()[Vr("0xc")](Vr("0xf")).cancel())}))})),e[Vr("0xe")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Vr("0x6")==e[Vr("0x12")]){const t=Yo(n,Vr("0x16"));return{type:Vr("0x8"),content:Yo(n,Vr("0x13"),t)}}}))}}const qr=["registerDescriptionCallback","addObject","discard","toNext","has","side","Inline image to block image","caption","insertion","createRange","ImageCaptionEditing","getSuggestionCallback","commandName","isInContent","*Format:* %0","deletion","refresh","getSuggestion","suggestion","nodeAfter","imageStylePostApply","next","Block image to inline image","discardSuggestion","toPrevious","*Remove image text alternative*","differ","imageStyle","getClosestSelectedImageElement","title","*Reset image width*","isInlineImage","getAttribute","ImageResize","forceDefaultExecution","enableCommand","isBlockImage","afterInit","newRange","accept","formatInline","imageCaption","newValue","ImageBlockEditing","shouldConvertImageType","commandParams","getNearestSelectionRange","model","*Set image text alternative:* %0","imageBlock","isEqual","end","subType","_suggestionFactory","hasSuggestion","fromPosition","imageInline","backward","imageTextAlternative","ImageEditing","ELEMENT_INLINE_IMAGE","isBefore","plugins","author","registerElementLabel","markDeletion","normalizedStyles","registerCustomCallback","*Set image width:* %0","imageTypeBlock","head","value","name","getContainedElement","resizeImage","convertBlockImageToInline","FORMAT_SIDE_IMAGE","getFirstRange","detach","convertInlineImageToBlock","insertImage","start","ELEMENT_IMAGE","format","from","_descriptionFactory","chain","Users","ImageInlineEditing","join","get","ELEMENT_CAPTION","selection","getCaptionFromImageModelElement","document","isCollapsed","findIndex","width","removeObject","markBlockFormat","type","alt","isIntersecting","createRangeOn","formatBlock","forEach","filter","change","getChangedMarkers","commands","_findSuggestions","imageTypeInline","element","_splitMarkerName","imageStylePreApply","nodeBefore","registerPostFixer","ImageStyleEditing"];var Xr,$r;Xr=qr,$r=333,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x3a")](){const t=this.editor;if(!t[Jr("0x53")][Jr("0x19")](Jr("0x50")))return;const n=t[Jr("0x53")].get("TrackChangesEditing"),o=t[Jr("0x53")][Jr("0x6f")]("ImageUtils"),s={},r=t.locale;if(n[Jr("0x38")](Jr("0x65")),n[Jr("0x6a")][Jr("0x55")](Jr("0x46"),(t=>Yo(r,Jr("0x67"),t))),n._descriptionFactory.registerElementLabel(Jr("0x4d"),(t=>Yo(r,Jr("0x51"),t))),n[Jr("0x6a")][Jr("0x55")]("caption",(()=>Yo(r,Jr("0x70")))),t.plugins[Jr("0x19")]("ImageUploadEditing")&&n.enableCommand("uploadImage"),t[Jr("0x53")][Jr("0x19")](Jr("0x40"))&&t[Jr("0x53")][Jr("0x19")](Jr("0x6d"))&&(n[Jr("0x38")](Jr("0xe"),((e,s)=>{const r=o[Jr("0x31")](t[Jr("0x44")][Jr("0x73")][Jr("0x71")]);t[Jr("0x44")][Jr("0xa")]((()=>{n[Jr("0x2")](r,{commandName:Jr("0xe"),commandParams:[s]},[],Jr("0x60"))}))})),n[Jr("0x38")](Jr("0x5a"),((e,s)=>{t[Jr("0x44")].change((r=>{let x=o[Jr("0x31")](t[Jr("0x44")][Jr("0x73")][Jr("0x71")]),a=r.createRangeOn(x);const c=i.LivePosition[Jr("0x4c")](a[Jr("0x66")],Jr("0x2d")),l=i.LivePosition[Jr("0x4c")](a.end,Jr("0x18"));n[Jr("0x37")]((()=>e(s))),x=o.getClosestSelectedImageElement(t[Jr("0x44")][Jr("0x73")].selection),a=r[Jr("0x6")](x);const u=r[Jr("0x1e")](c,l);c[Jr("0x63")](),l[Jr("0x63")](),n[Jr("0x2")](x,{commandName:Jr("0xe"),commandParams:[]},[],Jr("0x64")),u[Jr("0x66")][Jr("0x52")](a[Jr("0x66")])&&n.markInsertion(r[Jr("0x1e")](u[Jr("0x66")],a[Jr("0x66")]),Jr("0x64")),a.end.isBefore(u.end)&&n.markInsertion(r[Jr("0x1e")](a[Jr("0x48")],u[Jr("0x48")]),Jr("0x64"))}))})),n[Jr("0x4a")][Jr("0x58")](Jr("0x7"),Jr("0x64"),Jr("0x6e"),(()=>{})),n[Jr("0x4a")][Jr("0x58")](Jr("0x7"),Jr("0x64"),Jr("0x3c"),(()=>{})),n[Jr("0x4a")][Jr("0x58")]("formatBlock","convertInlineImageToBlock",Jr("0x17"),n._suggestionFactory.getSuggestionCallback(Jr("0x7"),"",Jr("0x3c"))),n[Jr("0x4a")][Jr("0x58")](Jr("0x1d"),Jr("0x64"),Jr("0x6e"),(()=>{})),n[Jr("0x4a")][Jr("0x58")]("insertion",Jr("0x64"),"discard",(([e])=>{const o=n[Jr("0x4a")][Jr("0x20")](Jr("0x1d"),"","discard");let s=e[Jr("0x66")],r=e[Jr("0x48")];const i=t[Jr("0x44")].schema[Jr("0x43")](s,Jr("0x4e")),x=t[Jr("0x44")].schema[Jr("0x43")](r,"forward");i[Jr("0x74")]&&(s=i[Jr("0x66")]),x[Jr("0x74")]&&(r=x[Jr("0x48")]),o([t[Jr("0x44")].createRange(s,r)])})),n._suggestionFactory[Jr("0x58")](Jr("0x7"),Jr("0x64"),"chain",c),n._suggestionFactory.registerCustomCallback("insertion","convertInlineImageToBlock",Jr("0x6b"),c)),t.plugins[Jr("0x19")](Jr("0x1f"))&&(n[Jr("0x38")]("toggleImageCaption",((e,s)=>{const r=t[Jr("0x53")][Jr("0x6f")]("ImageCaptionUtils");let i=o[Jr("0x31")](t[Jr("0x44")][Jr("0x73")][Jr("0x71")]),x=r[Jr("0x72")](i);t[Jr("0x44")].change((()=>{if(x)return void n[Jr("0x56")](t[Jr("0x44")][Jr("0x6")](x));const a=o[Jr("0x39")](i);e(s),i=o[Jr("0x31")](t[Jr("0x44")][Jr("0x73")][Jr("0x71")]),x=r[Jr("0x72")](i),n.markInsertion(t.model[Jr("0x6")](x),a?null:Jr("0x3e"))}))})),n._suggestionFactory[Jr("0x58")](Jr("0x1d"),Jr("0x3e"),Jr("0x6b"),c)),t.plugins.has(Jr("0x14"))){n[Jr("0x38")]("imageStyle",((s,r)=>{const i=t[Jr("0x53")][Jr("0x6f")](Jr("0x6c")).me,x=t[Jr("0xc")][Jr("0x6f")]("imageStyle");let a=o[Jr("0x31")](t[Jr("0x44")][Jr("0x73")][Jr("0x71")]),c=t[Jr("0x44")][Jr("0x6")](a),l=x[Jr("0x5c")];if(l==r[Jr("0x5c")])return;const u={commandName:Jr("0x30"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x44")].change((()=>{if(n.getSuggestions()[Jr("0x9")]((t=>t[Jr("0x22")]&&i==t[Jr("0x54")]&&(Jr("0x7")==t[Jr("0x3")]||"formatInline"==t.type)&&(Jr("0x11")==t[Jr("0x49")]||Jr("0x29")==t[Jr("0x49")])&&t[Jr("0x62")]()[Jr("0x47")](c)))[Jr("0x8")]((t=>n[Jr("0x2c")](t[Jr("0x5b")]))),a=o[Jr("0x31")](t[Jr("0x44")][Jr("0x73")][Jr("0x71")]),c=t[Jr("0x44")][Jr("0x6")](a),x[Jr("0x25")](),t.commands[Jr("0x6f")](Jr("0xe"))[Jr("0x25")](),t[Jr("0xc")][Jr("0x6f")]("imageTypeBlock")[Jr("0x25")](),l=x[Jr("0x5c")],l!=r[Jr("0x5c")])return o[Jr("0x34")](a)&&x[Jr("0x41")](r.value,a)?(s(r),a=o[Jr("0x31")](t[Jr("0x44")][Jr("0x73")].selection),void n[Jr("0x2")](a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x11"))):void(o[Jr("0x39")](a)?n.markBlockFormat(a,u,[],Jr("0x29")):n.markInlineFormat(c,u,"imageStylePostApply"))}))}));for(const e of t[Jr("0x53")][Jr("0x6f")](Jr("0x14"))[Jr("0x57")])s[e[Jr("0x5d")]]=e[Jr("0x32")].toLowerCase();n[Jr("0x4a")][Jr("0x58")](Jr("0x7"),Jr("0x11"),Jr("0x6e"),(()=>{})),n[Jr("0x4a")][Jr("0x58")]("formatBlock",Jr("0x29"),Jr("0x6e"),(()=>{})),n[Jr("0x4a")][Jr("0x58")](Jr("0x3d"),Jr("0x29"),Jr("0x6e"),(()=>{})),n._suggestionFactory[Jr("0x58")]("formatBlock","imageStylePreApply",Jr("0x3c"),(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x7"),Jr("0x11"),Jr("0x17"),((t,e)=>{n[Jr("0x4a")][Jr("0x20")]("formatBlock","",Jr("0x3c"))(t,{commandName:e[Jr("0x21")],commandParams:e.commandReversedParams})})),n[Jr("0x4a")].registerCustomCallback(Jr("0x7"),"imageStylePreApply",Jr("0x6b"),c)}const x=[{type:Jr("0x7"),subType:Jr("0x11")},{type:Jr("0x1d"),subType:Jr("0x3e")},{type:Jr("0x7"),subType:Jr("0x64")},{type:Jr("0x1d"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[Jr("0x75")]((({type:e,subType:n})=>t[Jr("0x3")]==e&&t.subType==n)),r=x[Jr("0x75")]((({type:t,subType:n})=>e[Jr("0x3")]==t&&e[Jr("0x49")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x62")](),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i[Jr("0x5")](a))return!0;if(2==s&&3==r){const t=n[Jr("0xd")](i,Jr("0x1d"))[Jr("0x9")]((({suggestion:t,meta:e})=>e.isOwn&&Jr("0x64")==t.subType));if(t.length>1&&a[Jr("0x48")][Jr("0x47")](i[Jr("0x66")]))return!0;if(1==t.length&&(i[Jr("0x66")][Jr("0x47")](a[Jr("0x48")])||i.end[Jr("0x47")](a.start)))return!0}if(3==s&&3==r&&i[Jr("0x66")].isBefore(a[Jr("0x66")])){const t=i.end[Jr("0x28")],e=a[Jr("0x66")][Jr("0x12")];return o[Jr("0x39")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x44")][Jr("0x73")][Jr("0x13")]((()=>{let e=!1;const s=Array[Jr("0x69")](t.model[Jr("0x73")][Jr("0x2f")][Jr("0xb")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x10")](t);if(Jr("0x27")==s&&n[Jr("0x4b")](a)){if(Jr("0x7")==i&&(Jr("0x11")==x||Jr("0x29")==x)){const t=n[Jr("0x26")](a);if(r[Jr("0x3b")]){const s=t[Jr("0x62")]()[Jr("0x5e")]();if(o.isBlockImage(s))continue;n.discardSuggestion(t),e=!0}}if(Jr("0x1d")==i&&Jr("0x3e")==x&&!r[Jr("0x3b")]){const t=n.getSuggestion(a);t.next&&t.next[Jr("0x22")]&&(n.discardSuggestion(t[Jr("0x2a")]),e=!0)}}}return e})),t.plugins[Jr("0x19")](Jr("0x36"))&&n[Jr("0x38")](Jr("0x5f"),((e,s)=>{const r=o[Jr("0x31")](t[Jr("0x44")].document[Jr("0x71")]);r[Jr("0x35")]("width")!=s[Jr("0x0")]&&t[Jr("0x44")].change((()=>{n[Jr("0x2")](r,{commandName:Jr("0x5f"),commandParams:[s]})}))})),t[Jr("0x53")].has("ImageTextAlternativeEditing")&&n[Jr("0x38")](Jr("0x4f"),((e,s)=>{const r=o[Jr("0x31")](t.model[Jr("0x73")].selection);(r.hasAttribute(Jr("0x4"))?r.getAttribute(Jr("0x4")):"")!=s[Jr("0x3f")]&&t[Jr("0x44")].change((()=>{n[Jr("0x2")](r,{commandName:Jr("0x4f"),commandParams:[s]})}))})),n[Jr("0x6a")][Jr("0x15")]((t=>{if(x.find((({type:e,subType:n})=>t[Jr("0x3")]==e&&t[Jr("0x49")]==n)))return t.previous?{}:void 0})),n[Jr("0x6a")][Jr("0x15")]((t=>{if("insertion"==t.type||Jr("0x24")==t[Jr("0x3")]){const e=t.getContainedElement();if(e&&e.is(Jr("0xf"),Jr("0x1c")))return{type:Jr("0x1d")==t[Jr("0x3")]?Jr("0x16"):Jr("0x1"),element:e,quantity:1}}})),n[Jr("0x6a")].registerDescriptionCallback((t=>Jr("0x7")==t[Jr("0x3")]&&"convertInlineImageToBlock"==t[Jr("0x49")]?{type:"format",content:Jr("0x1b")}:Jr("0x7")==t[Jr("0x3")]&&Jr("0x60")==t.subType?{type:"format",content:Jr("0x2b")}:void 0)),n[Jr("0x6a")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if("imageStyle"==e[Jr("0x21")]){const t=e.commandParams[0].value;return n=Jr("0x1a")===t?Yo(r,Jr("0x61")):s[t]||t,{type:Jr("0x68"),content:Yo(r,Jr("0x23"),n)}}if(Jr("0x4f")==e[Jr("0x21")]){const t=e[Jr("0x42")][0][Jr("0x3f")];return t?{type:"format",content:Yo(r,Jr("0x45"),'"'+t+'"')}:{type:Jr("0x68"),content:Yo(r,Jr("0x2e"))}}if(Jr("0x5f")==e[Jr("0x21")]){const t=e[Jr("0x42")][0][Jr("0x0")];return t?{type:Jr("0x68"),content:Yo(r,Jr("0x59"),t)}:{type:Jr("0x68"),content:Yo(r,Jr("0x33"))}}}var n}))}}const Zr=["plugins","data","author","editor","getContainedElement","getSuggestionCallback","has","handleSuggestionDescription","TrackChangesEditing","change","model","registerCustomCallback","handleReplaceImageCommand","ImageEditing","accept","registerDescriptionCallback","_suggestionFactory","src","discard","locale","replaceImageSource","markBlockFormat","enableCommand","source","commandParams","_descriptionFactory","get","formatBlock"];var Yr,ti;Yr=Zr,ti=401,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this.editor.plugins[ei("0x19")](ei("0x4")))return;const t=this[ei("0x16")][ei("0x13")].get("TrackChangesEditing");t[ei("0xd")](ei("0xb"),((t,e)=>this[ei("0x3")](t,e))),t[ei("0x7")][ei("0x2")](ei("0x12"),ei("0xb"),"accept",t[ei("0x7")][ei("0x18")](ei("0x12"),null,ei("0x9"))),t._suggestionFactory.registerCustomCallback("formatBlock","replaceImageSource","discard",t._suggestionFactory[ei("0x18")](ei("0x12"),null,ei("0x5"))),t[ei("0x10")][ei("0x6")]((t=>this[ei("0x1a")](t)))}[ei("0x3")](t,e){const n=this[ei("0x16")].plugins[ei("0x11")](ei("0x1b")),o=this[ei("0x16")][ei("0x1")].document.selection.getSelectedElement();this[ei("0x16")].model[ei("0x0")]((()=>{let s=o.getAttribute(ei("0x8"));const r=this[ei("0x16")][ei("0x13")][ei("0x11")]("Users").me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t[ei("0x17")]();if(ei("0xb")===t.subType&&e===o){t[ei("0x15")]!==r&&t[ei("0x9")](),s=t[ei("0x14")][ei("0xf")][0][ei("0xe")];break}}t(e),n[ei("0xc")](o,{commandName:ei("0xb"),commandParams:[{source:s}]},[],"replaceImageSource")}))}[ei("0x1a")](t){const{data:e}=t;if(e&&"replaceImageSource"===e.commandName){const t="*Format:* replace image URL";return{type:"format",content:Yo(this[ei("0x16")][ei("0xa")],t)}}}}const oi=["dataInsert","get","editor","_trackChangesValueDuringImport","track_changes","execute","high","Users","TrackChangesEditing","commands","trackChanges","_handleImportedData","_trackChangesExecuted","value","afterInit","lowest","collaboration_features","importWord","plugins","listenTo"];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{constructor(t){super(t),this[ii("0x0")]=!1,this[ii("0x9")]=!1}[ii("0xb")](){const t=this.editor,e=t[ii("0x6")][ii("0x12")](ii("0xe")),n=t[ii("0x6")][ii("0x12")](ii("0x7"));e&&(e.on(ii("0x2"),((t,[,e])=>{this[ii("0x0")]=n[ii("0xa")],e[ii("0xd")][ii("0x1")]=!this._trackChangesValueDuringImport}),{priority:ii("0x3")}),this[ii("0x10")](e,ii("0x11"),this._handleImportedData.bind(this)),this[ii("0x10")](e,ii("0x11"),(()=>{this[ii("0x9")]&&(n[ii("0x2")](),this[ii("0x9")]=!1)}),{priority:ii("0xc")}),t[ii("0xf")].get(ii("0x5")).enableCommand("importWord"))}[ii("0x8")](t,e){const{suggestions:n}=e,o=this[ii("0x13")][ii("0x6")][ii("0x12")](ii("0x7")),s=o[ii("0xa")];this[ii("0x0")]!==s&&(o.execute(),this[ii("0x9")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x13")].plugins[ii("0x12")](ii("0x4")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0xe")}}};this[ii("0x13")][ii("0xf")].get("TrackChangesEditing")._setSuggestionData(s)}))}}const ai=["IndentEditing","filter","document","indentBlock","IndentBlock","_descriptionFactory","from","outdentBlock","model","*Outdent:* %0","get","indent","has","enableCommand","plugins","locale","outdent","commandName","format","schema","getSelectedBlocks","markBlockFormat","editor","blockIndent","getItemLabel"];var ci,li;ci=ai,li=452,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{afterInit(){const t=this[ui("0x14")],e=t.plugins[ui("0x8")]("TrackChangesEditing");t[ui("0xc")].has(ui("0x17"))&&(e[ui("0xb")](ui("0x9")),e[ui("0xb")](ui("0xe")));const n=t[ui("0xd")];if(t.plugins[ui("0xa")](ui("0x2"))){for(const n of[ui("0x1"),ui("0x5")])e[ui("0xb")](n,(()=>{const o=Array[ui("0x4")](this[ui("0x14")][ui("0x6")][ui("0x0")].selection[ui("0x12")]())[ui("0x18")]((t=>this[ui("0x14")].model[ui("0x11")].checkAttribute(t,ui("0x15"))));t.model.change((()=>{for(const t of o)e[ui("0x13")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0x1")})}))}));e[ui("0x3")].registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[ui("0xf")]&&"outdentBlock"!=o[ui("0xf")])return;const s=t.getItems()[0],r=e[ui("0x3")][ui("0x16")](s);return ui("0x1")==o[ui("0xf")]?{type:ui("0x10"),content:Yo(n,"*Indent:* %0",r)}:ui("0x5")==o[ui("0xf")]?{type:ui("0x10"),content:Yo(n,ui("0x7"),r)}:void 0}))}}}var gi,mi,fi=["get","requires","editor","enableCommand","TrackChangesEditing"];gi=fi,mi=315,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x1")](){return[Vs.Input]}init(){this[hi("0x2")].plugins[hi("0x0")](hi("0x4"))[hi("0x3")]("input")}}const bi=["unlink","commandParams","registerDescriptionCallback","has","locale","getFirstRange","editor","getFirstPosition","afterInit","plugins","selection","model","linkHref","getRanges","markInlineFormat","format","*Set link:* %0","commandName","hasAttribute","TrackChangesEditing","isCollapsed","link","_descriptionFactory","document","enableCommand","change"];var Ei,_i;Ei=bi,_i=424,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x0")](){const t=this[Ti("0x18")];if(!t[Ti("0x1")][Ti("0x15")]("LinkEditing"))return;const e=t[Ti("0x1")].get(Ti("0xb"));e[Ti("0x10")](Ti("0xd"),((n,o)=>{const s=t[Ti("0x3")][Ti("0xf")].selection;let r=[];if(s[Ti("0xc")]){if(!s[Ti("0xa")](Ti("0x4")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x19")](),Ti("0x4"),s.getAttribute(Ti("0x4")),t[Ti("0x3")]);r=[e]}}else r=Array.from(s[Ti("0x5")]());t.model[Ti("0x11")]((()=>{for(const t of r)e[Ti("0x6")](t,{commandName:Ti("0xd"),commandParams:[o]})}))})),e[Ti("0x10")](Ti("0x12"),(()=>{const n=this[Ti("0x18")][Ti("0x3")],o=n[Ti("0xf")][Ti("0x2")];n.change((()=>{let n=[];n=o[Ti("0xc")]?[(0,Vs.findAttributeRange)(o[Ti("0x19")](),Ti("0x4"),o.getAttribute(Ti("0x4")),t.model)]:ms(Ti("0x4"),o[Ti("0x17")](),t[Ti("0x3")]);for(const t of n)e[Ti("0x6")](t,{commandName:"unlink",commandParams:[]})}))})),e[Ti("0xe")][Ti("0x14")]((e=>{const{data:n}=e,o=t[Ti("0x16")];if(n){if("link"==n[Ti("0x9")]){const t=n[Ti("0x13")][0];return{type:Ti("0x7"),content:Yo(o,Ti("0x8"),'"'+t+'"')}}return Ti("0x12")==n[Ti("0x9")]?{type:"format",content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["markBlockFormat","checkChild","ListEditing","listItem","slice","findIndex","getAttribute","get","listIndent","todoListChecked","*Change to:* %0","push","listType","_selectedElements","todoList","registerDescriptionCallback","ELEMENT_LIST_ITEM","plugins","commands","outdentList","locale","add","todo","selection","createPositionAt","before","TrackChangesEditing","checkTodoList","*Uncheck item*","*Outdent:* %0","replace","element","*Check item*","ELEMENT_BULLETED_LIST","forceValue","ELEMENT_NUMBERED_LIST","registerElementLabel","format","model","isObject","TodoListEditing","document","has","indentList","_descriptionFactory","enableCommand","end","schema","commandName","change","getSelectedBlocks","filter","commandParams","numbered","paragraph","bulletedList","value","numberedList","ELEMENT_TODO_LIST","name","from","previousSibling","nextSibling","*Indent:* %0"];var ki,Ai;ki=yi,Ai=428,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this.editor,e=t[vi("0x28")];if(!t[vi("0x25")][vi("0x3e")](vi("0x16")))return;const n=t[vi("0x25")].get(vi("0x2e")),o=t[vi("0x25")][vi("0x3e")](vi("0x3c"));function s(e){return()=>{const o=t[vi("0x3a")][vi("0x3d")][vi("0x2b")],s=t.commands[vi("0x1b")](e);if(s.value)return void t.execute(vi("0xa"),{});const r=e[vi("0x18")](0,-4),i=function(t,e,n){let o=Array[vi("0x10")](t).filter((t=>{return e=t,(o=n)[vi("0x15")](e.parent,"listItem")&&!o[vi("0x3b")](e);var e,o}));o=o[vi("0x7")]((t=>!t.is(vi("0x33"),"listItem")||t[vi("0x1a")](vi("0x20"))!=e));const s=new Set;for(const t of o)t.is(vi("0x33"),vi("0x17"))?s[vi("0x29")](Si(t)):s.add(t);return Array.from(s)}(o[vi("0x6")](),r,t.model[vi("0x3")]);t[vi("0x3a")][vi("0x5")]((()=>{for(const t of i)n[vi("0x14")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:"blockName"},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x10")](t);const n=e[vi("0x19")]((t=>vi("0x17")!=t[vi("0xf")]));return n>-1&&(e=e[vi("0x18")](0,n)),e}(t[vi("0x3a")][vi("0x3d")][vi("0x2b")][vi("0x6")]()),s=t[vi("0x3a")].createRange(t.model.createPositionAt(o[0],vi("0x2d")),t.model[vi("0x2c")](o[o.length-1],vi("0x2")));t[vi("0x3a")].change((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:vi("0x1c")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[vi("0x1a")](vi("0x1c"))>n[vi("0x1a")](vi("0x1c"));)e.add(t),t=t.nextSibling}return Array[vi("0x10")](e)}(o))}))}}n.enableCommand("numberedList",s(vi("0xd"))),n[vi("0x1")]("bulletedList",s(vi("0xb"))),o&&n[vi("0x1")]("todoList",s(vi("0x22"))),n[vi("0x1")]("indentList",r(vi("0x3f"))),n[vi("0x1")](vi("0x27"),r(vi("0x27"))),o&&n[vi("0x1")](vi("0x2f"),(()=>{const e=t[vi("0x26")][vi("0x1b")]("checkTodoList"),o=Array[vi("0x10")](e[vi("0x21")]);o[vi("0x7")]((t=>t[vi("0x1a")](vi("0x1d"))!=e[vi("0xc")])),t[vi("0x3a")][vi("0x5")]((()=>{for(const t of o)n[vi("0x14")](t,{commandName:vi("0x2f"),commandParams:[{forceValue:!e.value}]})}))})),n._descriptionFactory[vi("0x38")](vi("0x17"),(t=>Yo(e,vi("0x24"),t))),n[vi("0x0")][vi("0x23")]((t=>{const{data:n}=t;if(n){if(vi("0xd")==n[vi("0x4")]||vi("0xb")==n[vi("0x4")]||vi("0x22")==n[vi("0x4")])switch(n.commandName[vi("0x32")]("List","")){case"bulleted":return o(Yo(e,vi("0x35")));case vi("0x9"):return o(Yo(e,vi("0x37")));case vi("0x2a"):return o(Yo(e,vi("0xe")))}if(vi("0x3f")==n.commandName)return{type:"format",content:Yo(e,vi("0x13"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x27")==n[vi("0x4")])return{type:vi("0x39"),content:Yo(e,vi("0x31"),Yo(e,vi("0x24")))};if(vi("0x2f")==n[vi("0x4")])return n[vi("0x8")][0][vi("0x36")]?{type:vi("0x39"),content:Yo(e,vi("0x34"))}:{type:vi("0x39"),content:Yo(e,vi("0x30"))}}function o(t){return{type:"format",content:Yo(e,vi("0x1e"),t)}}}))}}function Si(t){const e=t[vi("0x1a")](vi("0x1c"));if(0==e)return t;let n=t;for(;t[vi("0x11")]&&t[vi("0x11")].is(vi("0x33"),vi("0x17"));){const o=t[vi("0x11")].getAttribute(vi("0x1c"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x11")]}return n}function Ii(t){const e=[];if(t.is("element",vi("0x17"))&&t.getAttribute(vi("0x1c"))>0){let n=t[vi("0x12")];for(;n&&"listItem"==n[vi("0xf")]&&n[vi("0x1a")]("listIndent")==t.getAttribute(vi("0x1c"));)e[vi("0x1f")](n),n=n[vi("0x12")]}return e}const Li=["numbered","format","list.properties","createPositionAt","unshift","getSiblingNodes","_getTranslationKeyForListStyle","getListTypeFromListStyleType","_getSuggestionBlocks","model","before","map","ELEMENT_","listStyle","editor","toUpperCase","parent","change","element","from","locale","document","plugins","forward","get","listItem","afterInit","listReversed","*Format:* set order to regular","filter","getFirstPosition","listStart","has","handleListReversedCommand","bind","listType","type","handleDescriptions","*Format:* set order to reversed","startIndex","push","config","enableCommand","_getSuggestionBlocksForListStyle","_LIST_","*Format:* set start index to %0","styles","ListPropertiesEditing","commandParams","backward","getSelectedBlocks","length","_descriptionFactory","createRange","handleListStartCommand","reversed","selection","TrackChangesEditing","handleListStyleCommand","getAttribute","registerDescriptionCallback","ListUtils","markMultiRangeBlockFormat","getLastPosition"];var Ni,Mi;Ni=Li,Mi=172,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x2e")](){if(!this[wi("0x22")].plugins[wi("0x34")](wi("0x3")))return;const t=this[wi("0x22")][wi("0x3d")].get(wi("0x16")),e=this[wi("0x22")].plugins[wi("0x2c")](wi("0xd"));t[wi("0x2")]&&e[wi("0x3e")]("listStyle",this[wi("0xe")][wi("0x36")](this)),t[wi("0xb")]&&e[wi("0x3e")](wi("0x2f"),this[wi("0x35")].bind(this)),t[wi("0x3b")]&&e[wi("0x3e")](wi("0x33"),this[wi("0xa")][wi("0x36")](this)),e[wi("0x8")][wi("0x10")](this.handleDescriptions.bind(this))}[wi("0xe")](t,e={}){const n=this[wi("0x22")][wi("0x2a")][wi("0x2c")]("TrackChangesEditing"),o=this[wi("0x3f")]();this[wi("0x22")].model[wi("0x25")]((()=>{n[wi("0x12")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x38")]}],formatGroupId:wi("0x21")})}))}handleListReversedCommand(t,e={}){const n=this.editor[wi("0x2a")].get("TrackChangesEditing"),o=this[wi("0x1c")]((t=>t.is(wi("0x26"),wi("0x2d"))&&wi("0x14")===t.getAttribute(wi("0x37"))));if(o.length<1)return;const s=o.map((t=>this[wi("0x22")].model.createRange(this[wi("0x22")][wi("0x1d")][wi("0x17")](t,wi("0x1e")),this.editor[wi("0x1d")][wi("0x17")](t,0))));this.editor[wi("0x1d")][wi("0x25")]((()=>{n[wi("0x12")](s,{commandName:wi("0x2f"),commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}handleListStartCommand(t,e={}){const n=this.editor[wi("0x2a")][wi("0x2c")](wi("0xd")),o=this._getSuggestionBlocks((t=>t.is(wi("0x26"),"listItem")&&wi("0x14")===t[wi("0xf")](wi("0x37"))));if(o[wi("0x7")]<1)return;const s=o[wi("0x1f")]((t=>this[wi("0x22")].model[wi("0x9")](this[wi("0x22")][wi("0x1d")][wi("0x17")](t,"before"),this.editor[wi("0x1d")][wi("0x17")](t,0))));this[wi("0x22")][wi("0x1d")].change((()=>{n[wi("0x12")](s,{commandName:wi("0x33"),commandParams:[{startIndex:e[wi("0x3b")]}],formatGroupId:"listStart"})}))}[wi("0x39")](t){const e=this[wi("0x22")][wi("0x28")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wi("0x21"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0][wi("0x38")])))};break;case wi("0x2f"):o=n[wi("0x4")][0][wi("0xb")]?wi("0x3a"):wi("0x30"),s={type:wi("0x15"),content:Yo(e,o)};break;case wi("0x33"):o=wi("0x1"),s={type:wi("0x15"),content:Yo(e,o,n[wi("0x4")][0].startIndex)}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[wi("0x22")].plugins[wi("0x2c")](wi("0x11"));let r=Array.from(this[wi("0x22")][wi("0x1d")][wi("0x29")][wi("0xc")][wi("0x6")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x26"),wi("0x2d")))&&r[wi("0x18")](...s.getSiblingNodes(this[wi("0x22")][wi("0x1d")].document[wi("0xc")][wi("0x32")](),"backward")),(null===(e=r[r[wi("0x7")]-1])||void 0===e?void 0:e.is("element",wi("0x2d")))&&r[wi("0x3c")](...s[wi("0x19")](this[wi("0x22")][wi("0x1d")][wi("0x29")].selection[wi("0x13")](),wi("0x2b"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x22")][wi("0x1d")][wi("0x29")][wi("0xc")][wi("0x32")]())||void 0===n?void 0:n[wi("0x24")])||void 0===o?void 0:o.is(wi("0x26"),"listItem"))&&(r=r[wi("0x31")]((t=>t.is("element","listItem")))),r}[wi("0x1c")](t){const e=this[wi("0x22")].plugins[wi("0x2c")](wi("0x11"));let n=Array[wi("0x27")](this[wi("0x22")][wi("0x1d")][wi("0x29")].selection.getSelectedBlocks()).filter(t)[wi("0x1f")]((t=>{const n=this[wi("0x22")][wi("0x1d")][wi("0x17")](t,0);return[...e[wi("0x19")](n,wi("0x5")),...e[wi("0x19")](n,wi("0x2b"))]})).flat();return n=[...new Set(n)],n}[wi("0x1a")](t){return wi("0x20")+this[wi("0x22")][wi("0x2a")][wi("0x2c")](wi("0x11"))[wi("0x1b")](t)[wi("0x23")]()+wi("0x0")+t[wi("0x23")]().replace(/-/g,"_")}}const Fi=["plugins","has","_descriptionFactory","high","options","stop","MediaEmbedEditing","dataDowncast","showSuggestionHighlights","afterInit","elementToElement","div","data","TrackChangesEditing","ELEMENT_MEDIA","for","conversion","media","downcastDispatcher","get","attribute:url:media"];var Pi,Di;Pi=Fi,Di=482,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xa")](){const t=this.editor;if(!t[Bi("0x1")][Bi("0x2")](Bi("0x7")))return;const e=t.plugins[Bi("0x14")](Bi("0xe")),n=t.locale;e.enableCommand("mediaEmbed"),e[Bi("0x3")].registerElementLabel(Bi("0x12"),(t=>Yo(n,Bi("0xf"),t))),t[Bi("0x11")][Bi("0x10")](Bi("0x8"))[Bi("0xb")]({model:Bi("0x12"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x9")])return e.createEmptyElement(Bi("0xc"))},converterPriority:"high"}),t[Bi("0xd")][Bi("0x13")].on(Bi("0x0"),((t,e,n)=>{n[Bi("0x5")][Bi("0x9")]&&t[Bi("0x6")]()}),{priority:Bi("0x4")})}}const Ui=["afterInit","editor","plugins","enableCommand","mention","MentionEditing","TrackChangesEditing","get"];var Gi,Hi;Gi=Ui,Hi=235,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x5")](){const t=this[zi("0x6")];t[zi("0x7")].has(zi("0x2"))&&t[zi("0x7")][zi("0x4")](zi("0x3"))[zi("0x0")](zi("0x1"))}}const Vi=["PageBreakEditing","TrackChangesEditing","_descriptionFactory","editor","plugins","locale","get","pageBreak","afterInit","registerElementLabel","enableCommand"];var Ki,qi;Ki=Vi,qi=286,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x8")](){const t=this[Xi("0x3")];if(!t[Xi("0x4")].has(Xi("0x0")))return;t.plugins[Xi("0x6")](Xi("0x1"))[Xi("0xa")]("pageBreak");const e=t[Xi("0x4")][Xi("0x6")]("TrackChangesEditing"),n=t[Xi("0x5")];e[Xi("0x2")][Xi("0x9")](Xi("0x7"),(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const Ji=["enableCommand","model","writer","document","showSuggestionHighlights","createUIElement","checkChild","has","blockName","nodeAfter","get","markerName","_descriptionFactory","mapper","data","editing","insert","type","markerRange","selection","name","schema","TrackChangesEditing","ck-suggestion-marker-split","editor","isTouching","filter","registerElementLabel","format","insertion","downcastDispatcher","isBlock","getItemLabel","toViewPosition","Paragraph","paragraph","isLimit","options","commandName","getSelectedBlocks","markBlockFormat","$text","bindElementToMarker","span","end","activeMarkers","addMarker:suggestion:insertion","registerDescriptionCallback","plugins","ELEMENT_PARAGRAPH","consumable","afterInit","highest","isObject","locale"];var Qi,Zi;Qi=Ji,Zi=239,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x20")](){const t=this[Yi("0x5")];if(!t[Yi("0x1d")][Yi("0x2b")](Yi("0xf")))return;const e=t[Yi("0x23")],n=t[Yi("0x1d")][Yi("0x2e")](Yi("0x3"));n._descriptionFactory[Yi("0x8")](Yi("0x10"),(t=>Yo(e,Yi("0x1e"),t))),n[Yi("0x24")](Yi("0x10"),((e,o={})=>{const s=t[Yi("0x25")][Yi("0x27")],r=o[Yi("0x0")]||s[Yi("0x0")],i=Array.from(r[Yi("0x14")]())[Yi("0x7")]((t=>{return e=t,(n=this.editor[Yi("0x25")][Yi("0x2")])[Yi("0x2a")](e.parent,"paragraph")&&!n[Yi("0x22")](e)&&"paragraph"!=e[Yi("0x1")];var e,n}));t[Yi("0x25")].change((()=>{for(const t of i)n[Yi("0x15")](t,{commandName:Yi("0x10"),commandParams:[],formatGroupId:Yi("0x2c")},fs(t))}))})),n[Yi("0x30")][Yi("0x1c")]((t=>{const{data:n}=t;if(n&&Yi("0x10")==n[Yi("0x13")])return{type:Yi("0x9"),content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x1e")))}})),n[Yi("0x24")]("insertParagraph"),t[Yi("0x33")].downcastDispatcher.on(Yi("0x1b"),ex(t),{priority:Yi("0x21")}),t[Yi("0x32")][Yi("0xb")].on(Yi("0x1b"),((e,n,o)=>{o[Yi("0x12")][Yi("0x28")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x21")});const o=n._descriptionFactory;o[Yi("0x1c")]((n=>{if(Yi("0xa")!==n[Yi("0x35")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x6")](r)||!s.nodeAfter)return;const i=t.model.schema,x=s[Yi("0x2d")];return i[Yi("0xc")](x)&&!i[Yi("0x11")](x)&&i.checkChild(x,Yi("0x16"))?{type:"insertion",content:Yo(e,"*Insert:* %0",o[Yi("0xd")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x1d")][Yi("0x2e")](Yi("0x3")),i=o[Yi("0x36")].start,x=o[Yi("0x36")][Yi("0x19")],a=t.model[Yi("0x2")];if(!i.isTouching(x)||!i[Yi("0x2d")])return;const c=i.nodeAfter;if(a[Yi("0xc")](c)&&!a[Yi("0x11")](c)&&a[Yi("0x2a")](c,Yi("0x16"))){if(!s[Yi("0x1f")].consume(o[Yi("0x36")],n[Yi("0x1")]))return;const t=s[Yi("0x26")][Yi("0x29")](Yi("0x18"),{class:Yi("0x4")}),i=s[Yi("0x31")][Yi("0xe")](x);e&&r[Yi("0x1a")].includes(o.markerName)&&s[Yi("0x26")].addClass("ck-suggestion-marker--active",t),s[Yi("0x26")][Yi("0x34")](i,t),s[Yi("0x31")][Yi("0x17")](t,o[Yi("0x2f")])}}}const nx=["plugins","markInlineFormat","commandName","RemoveFormatEditing","get","getAttributeProperties","getAttributes","enableCommand","editor","has","TrackChangesEditing","isFormatting","isCollapsed","registerDescriptionCallback","change","from","schema","createRangeOn","removeFormat","document","afterInit","selection","_descriptionFactory","getItems","format","model"];var ox,sx;ox=nx,sx=267,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0xd")](){const t=this[rx("0x1")];if(!t.plugins[rx("0x2")](rx("0x16")))return;const e=t[rx("0x13")][rx("0x17")](rx("0x3"));e[rx("0x0")](rx("0xb"),(n=>{const o=t[rx("0x12")][rx("0xc")][rx("0xe")];o[rx("0x5")]?n():t[rx("0x12")][rx("0x7")]((()=>{const n=Array[rx("0x8")](o.getRanges());for(const o of n)for(const n of o[rx("0x10")]())xx(n,t[rx("0x12")][rx("0x9")])&&e[rx("0x14")](t[rx("0x12")][rx("0xa")](n),{commandName:"removeFormat",commandParams:[]})}))})),e[rx("0xf")][rx("0x6")]((e=>{const{data:n}=e;if(n&&rx("0xb")==n[rx("0x15")])return{type:rx("0x11"),content:Yo(t.locale,"*Remove all formatting*")}}))}}function xx(t,e){for(const[n]of t[rx("0x19")]()){const t=e[rx("0x18")](n);if(t&&t[rx("0x4")])return!0}return!1}const ax=["trackChanges","goToNextRestrictedEditingException","enableCommand","get","has","TrackChangesEditing","discardAllSuggestions","goToPreviousRestrictedEditingException","discardSuggestion","plugins"];var cx,lx;cx=ax,lx=283,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{afterInit(){const t=this.editor;if(!t[ux("0x6")][ux("0x1")]("RestrictedEditingModeEditing"))return;const e=t[ux("0x6")][ux("0x0")](ux("0x2"));e.enableCommand(ux("0x4")),e[ux("0x9")](ux("0x8"));const n=t[ux("0x6")].get("RestrictedEditingModeEditing");n[ux("0x9")](ux("0x7")),n.enableCommand("acceptSuggestion"),n.enableCommand(ux("0x5")),n.enableCommand("acceptAllSuggestions"),n[ux("0x9")](ux("0x3")),n.enableCommand("acceptSelectedSuggestions"),n[ux("0x9")]("discardSelectedSuggestions")}}const gx=["span","addMarker:suggestion:deletion","element","editor","includes","addMarker:suggestion","test","locale","high","getItems","createUIElement","softBreak","TrackChangesEditing","insert","model","options","_descriptionFactory","markerName","consumable","merge","markerRange","ELEMENT_LINE_BREAK","showSuggestionHighlights","createPositionBefore","shiftEnter","get","ck-suggestion-marker--active","ck-suggestion-marker-","downcastDispatcher","plugins","deletion","split","requires","writer","mapper","enableCommand","registerElementLabel"];var mx,fx;mx=gx,fx=393,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x9")](){return[nr.ShiftEnter]}init(){const t=this[hx("0x11")],e=t[hx("0x6")].get("TrackChangesEditing");e[hx("0xc")](hx("0x1")),t.editing[hx("0x5")].on("addMarker:suggestion:insertion",bx(t),{priority:hx("0x16")}),t.editing.downcastDispatcher.on(hx("0xf"),bx(t),{priority:"high"}),t.data.downcastDispatcher.on(hx("0x13"),((e,n,o)=>{o[hx("0x1d")][hx("0x24")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x1e")][hx("0xd")](hx("0x19"),(e=>Yo(t[hx("0x15")],hx("0x23"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x6")][hx("0x2")](hx("0x1a"));if(!s[hx("0x20")][hx("0x14")](o[hx("0x22")],n.name))return;const i=t[hx("0x1c")];for(const t of o[hx("0x22")][hx("0x17")]()){if(!t.is(hx("0x10"),hx("0x19")))continue;const n=hx("0x7")==o.markerName[hx("0x8")](":")[1]?hx("0x21"):hx("0x8"),x=s[hx("0xa")][hx("0x18")](hx("0xe"),{class:hx("0x4")+n}),a=s[hx("0xb")].toViewPosition(i[hx("0x0")](t));e&&r.activeMarkers[hx("0x12")](o[hx("0x1f")])&&s.writer.addClass(hx("0x3"),x),s[hx("0xa")][hx("0x1b")](a,x),s[hx("0xb")].bindElementToMarker(x,o[hx("0x1f")])}}}const Ex=["enableCommand","afterInit","editor","FORMAT_RESTRICTED_DISABLED","getRanges","TrackChangesEditing","locale","selection","StandardEditingModeEditing","format","markInlineFormat","registerDescriptionCallback","commandName","isCollapsed","commandParams","forceValue","plugins","commands","has","get","_descriptionFactory"];var _x,Tx;_x=Ex,Tx=199,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0xc")](){const t=this[Cx("0xd")],e=t.model,n=t[Cx("0x11")];if(!t[Cx("0x6")][Cx("0x8")](Cx("0x13")))return;const o=t[Cx("0x6")][Cx("0x9")](Cx("0x10")),s="restrictedEditingException",r=t[Cx("0x7")][Cx("0x9")](s);o[Cx("0xb")](s,((t,n={})=>{const i=e.document[Cx("0x12")];if(i[Cx("0x3")])return void t(n);const x=void 0!==n[Cx("0x5")]?n.forceValue:!r.value;e.change((()=>{const t=Array.from(i[Cx("0xf")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x0")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0xa")][Cx("0x1")]((t=>{const{data:e}=t;if(e&&e[Cx("0x2")]==s)return e[Cx("0x4")][0].forceValue?{type:Cx("0x14"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Cx("0x14"),content:Yo(n,Cx("0xe"))}}))}}const kx=["name","plugins","classes","every","commandParams","element","_getStyleDefinition","normalizeConfig","push","document","_getRangesWithClasses","change","enableCommand","from","isBlock","get","has","modelElements","_descriptionFactory","model","getRanges","enabledStyles","*Format:* %0","StyleUtils","Style","style.definitions","style","format","find","isCollapsed","commandName","selection","styleName","createRangeOn","getItems","markInlineFormat","includes","toLowerCase","getAttribute","locale","style:","commands","block","editor","getAncestors","getDefinitionsForView"];var Ax,vx;Ax=kx,vx=324,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[Rx("0x29")];if(!t[Rx("0x2d")][Rx("0xe")](Rx("0x16")))return;const e=t[Rx("0x27")].get(Rx("0x18")),n=t[Rx("0x2d")].get("TrackChangesEditing"),o=t[Rx("0x25")],s=t[Rx("0x2d")][Rx("0xd")]("DataSchema"),r=t.plugins[Rx("0xd")](Rx("0x15"))[Rx("0x5")](s,t.config[Rx("0xd")](Rx("0x17")));n[Rx("0xa")](Rx("0x18"),((o,{styleName:i})=>{const x=t[Rx("0x11")][Rx("0x7")][Rx("0x1d")],a=this._getStyleDefinition(i,r);if(!a)return;if(!e[Rx("0x13")][Rx("0x22")](i))return;if(x[Rx("0x1b")]&&!a[Rx("0xc")])return void o({styleName:i});const c=!e.value[Rx("0x22")](a[Rx("0x2c")]);if(a[Rx("0xc")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x2a")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x22")](o[Rx("0x2c")])){n.add(o);break}}return n}(x.getSelectedBlocks(),a[Rx("0xf")]);t[Rx("0x11")].change((()=>{for(const t of e)n.markBlockFormat(t,{commandName:Rx("0x18"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x26")+i})}))}else{let e=Array[Rx("0xb")](x[Rx("0x12")]());if(!c){const n=Array[Rx("0xb")](s[Rx("0x2b")](a[Rx("0x3")],!1))[0][Rx("0x11")],o=[];for(const s of e){const e=this[Rx("0x8")](t[Rx("0x11")],s,a[Rx("0x0")],n);o[Rx("0x6")](...e)}e=o}t.model[Rx("0x9")]((()=>{for(const t of e)n[Rx("0x21")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x10")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x1c")])return e[Rx("0x2")][0].forceValue?{type:Rx("0x19"),content:Yo(o,Rx("0x14"),e.commandParams[0][Rx("0x1e")][Rx("0x23")]())}:{type:Rx("0x19"),content:Yo(o,"*Remove format:* %0",e[Rx("0x2")][0][Rx("0x1e")][Rx("0x23")]())}}))}[Rx("0x4")](t,e){let n=e[Rx("0x28")][Rx("0x1a")]((e=>e[Rx("0x2c")]===t));return n||(n=e.inline[Rx("0x1a")]((e=>e[Rx("0x2c")]===t))),n}[Rx("0x8")](t,e,n,o){const s=[];for(const r of e[Rx("0x20")]()){const e=r[Rx("0x24")](o);e&&n[Rx("0x1")]((t=>e[Rx("0x0")][Rx("0x22")](t)))&&s.push(t[Rx("0x1f")](r))}return s}}const Ix=["values","join","getRanges","MIN_SAFE_INTEGER","registerDescriptionCallback","accept","has","start","cell","setSelection","createRangeIn","registerElementLabel","$graveyard","isArray","plugins","name","type","some","item","length","change","tableCell","hasAttribute","*Insert:* %0","addRange","maxColumn","ELEMENT_TABLE","_tableSuggestions","minColumn","createRangeOn","getChildren","insert","selectTableRow","above","ELEMENT_TABLE_ROW_WITH_TEXT","TableUtils","left","toLowerCase","differ","insertTableRowBelow","TableEditing","max","minRow","_suggestionFactory","includes","last","ELEMENT_TABLE_WITH_TEXT","downcastDispatcher","colspan","data","writer","getItems","refresh","selection","getFirstRange","getChanges","getColumnIndexes","execute","first","ELEMENT_TABLE_COLUMN","createTableWalker","detach","substr","table","model","enqueueChange","discard","maxRow","deletion","insertTableColumnLeft","_getCoordsForCells","addClass","isEqual","removeTableRow","registerCustomCallback","isInContent","selectTableColumn","enableCommand","add","change:data","_descriptionFactory","subType","nodeAfter","$textProxy","removeTableColumn","editor","filter","getChangedMarkers","addMarker:suggestion","rootName","_splitMarkerName","position","getCellLocation","document","classes","from","_setupColumnsRowsFixing","insertion","commands","options","getSelectionAffectedTableCells","isIntersectingWithRange","tablePaste","toViewElement","batch","TrackChangesEditing","nodeBefore","MAX_SAFE_INTEGER","_tablePostFixingSubtypes","afterInit","startsWith","locale","tableColumn","showSuggestionHighlights","min","element","span","push","getAttribute","insertTable","markMultiRangeInsertion","tableRow","ELEMENT_TABLE_ROW","findAncestor","map","rowspan","get","getSuggestion","isTouching","suggestion","_getSuggestionCoords","ELEMENT_TABLE_COLUMN_WITH_TEXT","getRowIndexes","highest","order","end","fromRange","markMultiRangeDeletion","*Remove:* %0","root"];var Lx,Nx;Lx=Ix,Nx=272,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x74")]=["tableRow",Mx("0x78")],this[Mx("0x23")]=new Set}[Mx("0x75")](){const t=this.editor,e=t[Mx("0x48")][Mx("0x65")][Mx("0x3d")];if(!t.plugins[Mx("0xe")](Mx("0x30")))return;const n=t[Mx("0x77")],o=t[Mx("0x16")][Mx("0x86")](Mx("0x71")),s=t[Mx("0x16")].get("TableUtils");o[Mx("0x58")][Mx("0x13")](Mx("0x47"),(t=>Yo(n,Mx("0x22"),t))),this[Mx("0x68")](),o[Mx("0x55")](Mx("0x7f")),o[Mx("0x55")](Mx("0x28")),o.enableCommand(Mx("0x54"));for(const n of["insertTableRowAbove",Mx("0x2f")]){const r=t.commands.get(n);o[Mx("0x55")](n,(n=>{t[Mx("0x48")][Mx("0x1c")]((t=>{n();const i=Mx("0x29")===r[Mx("0x2")],x=s[Mx("0x6c")](e),a=s.getRowIndexes(x),c=i?a[Mx("0x42")]-1:a[Mx("0x35")]+1,l=x[0][Mx("0x83")](Mx("0x47")),u=s[Mx("0x44")](l,{startRow:c,endRow:c}),d=Array[Mx("0x67")](u)[Mx("0x84")]((e=>t[Mx("0x25")](e.cell)));o.markMultiRangeInsertion(d,Mx("0x81"))}))}))}for(const n of[Mx("0x4d"),"insertTableColumnRight"]){const r=t[Mx("0x6a")][Mx("0x86")](n);o[Mx("0x55")](n,(n=>{t[Mx("0x48")][Mx("0x1c")]((t=>{n();const i=Mx("0x2c")===r[Mx("0x2")],x=s[Mx("0x6c")](e),a=s[Mx("0x40")](x),c=i?a[Mx("0x42")]-1:a[Mx("0x35")]+1,l=x[0][Mx("0x83")](Mx("0x47")),u=s[Mx("0x44")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Mx("0x67")](u).map((e=>t[Mx("0x25")](e[Mx("0x10")])));o[Mx("0x80")](d,Mx("0x78"))}))}))}for(const n of[Mx("0x51"),"removeTableColumn"]){const r=n.substr(11),i=r[Mx("0x2d")](),x=i[Mx("0x46")](0,3)+Mx("0x7c"),a=Mx("0x47")+r,c=Mx("0x7a")+r,l="max"+r;o[Mx("0x55")](n,(()=>{t.model[Mx("0x1c")]((t=>{const r=s[Mx("0x6c")](e),u=r[0][Mx("0x83")](Mx("0x47"));let d;if(Mx("0x51")==n){const t=s[Mx("0x0")](r);d={startRow:t.first,endRow:t[Mx("0x35")],includeAllSlots:!0}}else{const t=s[Mx("0x40")](r);d={startColumn:t[Mx("0x42")],endColumn:t[Mx("0x35")],includeAllSlots:!0}}const g=s[Mx("0x44")](u,d),m=Array.from(g)[Mx("0x84")]((({cell:t})=>t)),f=Ox(m[Mx("0x5e")]((t=>t[Mx("0x1e")](x)))),h=Ox(m[Mx("0x5e")]((t=>!t[Mx("0x1e")](x))))[Mx("0x84")]((e=>t[Mx("0x25")](e))),p=o[Mx("0x5")](h,a);if(p&&(Mx("0x81")==p.subType||Mx("0x78")==p[Mx("0x59")])){const e=this[Mx("0x8a")](p);for(const n of f){const o=t[Mx("0x25")](n),r=s[Mx("0x64")](n),a=n[Mx("0x7e")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Mx("0x20")](o)}}}))}))}function r(n){const o=Array[Mx("0x67")](e[Mx("0xa")]()).map((t=>i.LiveRange[Mx("0x4")](t)));t[Mx("0x48")][Mx("0x1c")]((e=>{const s=e[Mx("0x70")];n=n.filter((t=>Mx("0x14")!=t[Mx("0x7")][Mx("0x61")])),e[Mx("0x11")](n),t.commands[Mx("0x86")]("removeTableRow")[Mx("0x3c")](),t[Mx("0x41")](Mx("0x51"),{forceDefaultExecution:!0}),t[Mx("0x48")][Mx("0x49")]((()=>{t[Mx("0x48")].enqueueChange(s,(t=>{const e=o[Mx("0x5e")]((t=>"$graveyard"!=t[Mx("0x7")][Mx("0x61")]));e[Mx("0x1b")]>0&&t.setSelection(e);for(const t of o)t[Mx("0x45")]()}))}))}))}function a(n){t.model.change((o=>{const s=Array[Mx("0x67")](e.getRanges())[Mx("0x84")]((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t[Mx("0x3b")]({shallow:!0}))r.push(e);for(const e of r)Mx("0x14")!=e.root.rootName&&(o[Mx("0x11")](o.createPositionAt(e,0)),t[Mx("0x6a")][Mx("0x86")](Mx("0x5c"))[Mx("0x3c")](),t.execute(Mx("0x5c"),{forceDefaultExecution:!0}));const x=s[Mx("0x5e")]((t=>Mx("0x14")!=t[Mx("0x7")].rootName));x.length>0&&o[Mx("0x11")](x);for(const t of s)t.detach()}))}function c(t,e){return e.every((e=>t.some((t=>t.end[Mx("0x50")](e.start)||e[Mx("0x3")][Mx("0x50")](t[Mx("0xf")])))))}function l(t,e){return t[Mx("0x19")]((t=>e[Mx("0x19")]((e=>t[Mx("0x3")][Mx("0x88")](e[Mx("0xf")])))))}t[Mx("0x39")][Mx("0x37")].on(Mx("0x60"),((t,e,n)=>{if(!n[Mx("0x6b")][Mx("0x79")])return;const o=e[Mx("0x1a")];if(!o)return;const s=n.mapper[Mx("0x6f")](o);function r(t){return Array[Mx("0x15")](t)?t:[t]}s&&"tableCell"===o[Mx("0x17")]&&(0,x.setHighlightHandling)(s,n[Mx("0x3a")],((t,e,n)=>n[Mx("0x4f")](r(e[Mx("0x66")]),t)),((t,e,n)=>n.removeClass(r(e.classes),t)))}),{priority:Mx("0x1")}),o._descriptionFactory.registerDescriptionCallback((t=>{if(Mx("0x69")!=t[Mx("0x18")]&&Mx("0x4c")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(Mx("0x7b"),"table")){if(Mx("0x69")==t[Mx("0x18")]){const e=t[Mx("0x3b")]()[Mx("0x5e")]((t=>t.is(Mx("0x5b"))))[Mx("0x84")]((t=>t[Mx("0x39")]));if(e[Mx("0x1b")])return{type:Mx("0x69"),content:Yo(n,Mx("0x1f"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(Mx("0x4c")==t[Mx("0x18")]){const e=t[Mx("0x3b")]()[Mx("0x5e")]((t=>t.is(Mx("0x5b")))).map((t=>t[Mx("0x39")]));if(e[Mx("0x1b")])return{type:Mx("0x4c"),content:Yo(n,Mx("0x6"),Yo(n,Mx("0x36"),'"'+e[Mx("0x9")](" ")+'"'))}}}})),o[Mx("0x58")][Mx("0xc")]((t=>{if(Mx("0x81")==t.subType){const e=t.getItems().filter((t=>t.is(Mx("0x5b")))).map((t=>t.data)),o=this[Mx("0x8a")](t),s=o[Mx("0x4b")]-o[Mx("0x32")]+1;if(Mx("0x69")==t.type)return e.length?{type:Mx("0x69"),content:Yo(n,Mx("0x1f"),Yo(n,Mx("0x2a"),[s,'"'+e[Mx("0x9")](" ")+'"']))}:{type:"insertion",content:Yo(n,Mx("0x1f"),Yo(n,Mx("0x82"),s))};if(Mx("0x4c")==t.type)return e[Mx("0x1b")]?{type:Mx("0x4c"),content:Yo(n,Mx("0x6"),Yo(n,Mx("0x2a"),[s,'"'+e[Mx("0x9")](" ")+'"']))}:{type:Mx("0x4c"),content:Yo(n,Mx("0x6"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Mx("0x78")==t[Mx("0x59")]){const e=t[Mx("0x3b")]()[Mx("0x5e")]((t=>t.is("$textProxy")))[Mx("0x84")]((t=>t.data)),o=this[Mx("0x8a")](t),s=o[Mx("0x21")]-o[Mx("0x24")]+1;if(Mx("0x69")==t.type)return e[Mx("0x1b")]?{type:Mx("0x69"),content:Yo(n,Mx("0x1f"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x9")](" ")+'"']))}:{type:Mx("0x69"),content:Yo(n,Mx("0x1f"),Yo(n,Mx("0x43"),s))};if(Mx("0x4c")==t[Mx("0x18")])return e.length?{type:Mx("0x4c"),content:Yo(n,Mx("0x6"),Yo(n,Mx("0x8b"),[s,'"'+e[Mx("0x9")](" ")+'"']))}:{type:Mx("0x4c"),content:Yo(n,Mx("0x6"),Yo(n,Mx("0x43"),s))}}})),o[Mx("0x33")].registerCustomCallback(Mx("0x69"),Mx("0x81"),Mx("0x4a"),r),o[Mx("0x33")].registerCustomCallback(Mx("0x4c"),Mx("0x81"),Mx("0xd"),r),o._suggestionFactory.registerCustomCallback("insertion",Mx("0x78"),Mx("0x4a"),a),o[Mx("0x33")].registerCustomCallback("deletion",Mx("0x78"),"accept",a),o._suggestionFactory[Mx("0x52")]("insertion",Mx("0x78"),Mx("0x9"),c),o._suggestionFactory[Mx("0x52")]("deletion",Mx("0x78"),Mx("0x9"),c),o._suggestionFactory[Mx("0x52")](Mx("0x69"),Mx("0x81"),"join",l),o[Mx("0x33")][Mx("0x52")](Mx("0x4c"),Mx("0x81"),"join",l)}_acceptFormatSuggestionCallbackFactory(){const t=this.editor,e=t[Mx("0x48")][Mx("0x65")][Mx("0x3d")];return(n,o)=>{t[Mx("0x48")][Mx("0x1c")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x3")][Mx("0x72")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Mx("0xf")][Mx("0x5a")]);const c=s[Mx("0x12")](a);if(Mx("0x14")==c[Mx("0x7")].rootName)return;const l=Array[Mx("0x67")](e[Mx("0xa")]()).map((t=>i.LiveRange[Mx("0x4")](t)));s[Mx("0x11")](c),t[Mx("0x6a")][Mx("0x86")](r)[Mx("0x3c")](),x[Mx("0x7d")]({forceDefaultExecution:!0}),t.execute(r,...x);const u=l[Mx("0x5e")]((t=>Mx("0x14")!=t[Mx("0x7")].rootName));u[Mx("0x1b")]>0&&s[Mx("0x11")](u);for(const t of l)t[Mx("0x45")]()}))}}[Mx("0x4e")](t){const e=this[Mx("0x5d")][Mx("0x16")].get(Mx("0x2b"));let n=Number[Mx("0x73")],o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x73")],r=Number[Mx("0xb")];for(const i of t){if("$graveyard"==i[Mx("0x7")][Mx("0x61")])continue;const{row:t,column:x}=e[Mx("0x64")](i),a=i[Mx("0x1e")]("rowspan")?i[Mx("0x7e")](Mx("0x85"))-1:0,c=i.hasAttribute(Mx("0x38"))?i[Mx("0x7e")](Mx("0x38"))-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}}[Mx("0x68")](){const t=this[Mx("0x5d")],e=t.plugins[Mx("0x86")](Mx("0x71")),n=t[Mx("0x16")][Mx("0x86")]("TableUtils");t[Mx("0x48")][Mx("0x65")].on(Mx("0x57"),(()=>{const n=Array.from(t.model.document[Mx("0x2e")][Mx("0x5f")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x62")](t);if(Mx("0x89")!=n)continue;if(null!=o.oldRange)continue;const i=e[Mx("0x87")](s);this._tablePostFixingSubtypes[Mx("0x34")](r)&&this._tableSuggestions[Mx("0x56")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Mx("0x25")](t),r=t.findAncestor("table"),i=n[Mx("0x64")](t);for(const e of this[Mx("0x23")]){const n=e[Mx("0x59")],x=n[Mx("0x76")](Mx("0x6e")),a=n[Mx("0x46")](x?10:5),c=a.toLowerCase(),l=c[Mx("0x46")](0,3)+Mx("0x7c"),u=Mx("0x7a")+a,d=Mx("0x31")+a;if(!e[Mx("0x53")])continue;if(r!=e[Mx("0x3e")]()[Mx("0xf")][Mx("0x83")](Mx("0x47")))continue;if(e[Mx("0x6d")](s))continue;const g=t.hasAttribute(l)?t[Mx("0x7e")](l)-1:0,m=this[Mx("0x8a")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x20")](s),o=!0)}return o};t[Mx("0x48")][Mx("0x65")].registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x48")][Mx("0x65")][Mx("0x2e")][Mx("0x3f")]())if(Mx("0x27")==s[Mx("0x18")])if(Mx("0x81")==s.name)for(const t of s[Mx("0x63")][Mx("0x5a")][Mx("0x26")]())n=n||o(t,e);else Mx("0x1d")==s[Mx("0x17")]&&(n=n||o(s[Mx("0x63")][Mx("0x5a")],e));return n}))}_getSuggestionCoords(t){return this[Mx("0x4e")](t[Mx("0xa")]()[Mx("0x84")]((t=>t.start[Mx("0x5a")])))}}function Ox(t){return Array[Mx("0x67")](new Set(t)[Mx("0x8")]())}const Fx=["mergeTableCellUp","insertion","commands","type","containsRange","map","tableCell","filter","editor","markMultiRangeBlockFormat","deletion","createTableWalker","isInContent","createRangeOn","has","_tablePostFixingSubtypes","getRanges","trackChanges","splitTableCellVertically","add","push","_descriptionFactory","commandName","mergeTableCellDown","getSelectionAffectedTableCells","model","author","get","TableEditing","forceDefaultExecution","$graveyard","splitTableCellHorizontally","direction","locale","_areSelectedCellsMergable","getCellLocation","value","findAncestor","length","registerCustomCallback","highest","rootName","*Split cell:* horizontally","_suggestionFactory","*Merge cells*","subType","refresh","cell","stop","mergeTableCellLeft","set:isEnabled","size","document","mergeTableCellRight","selection","enableCommand","mergeTableCells","table","_acceptFormatSuggestionCallbackFactory","TableUtils","root","plugins","element","getFirstPosition","change","requires","from","_isForcedDefaultExecutionBlock","registerDescriptionCallback","formatBlock","setSelection","markBlockFormat","low","fromRange","_areMergableCells","horizontally","format","detach","getSuggestions"];var Px,Dx;Px=Fx,Dx=117,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x1b")](){return[wx]}afterInit(){const t=this[Bx("0x31")],e=t.model.document[Bx("0x10")],n=t[Bx("0x4a")];if(!t[Bx("0x17")][Bx("0x37")](Bx("0x45")))return;const o=t[Bx("0x17")].get("TrackChangesEditing"),s=t.plugins[Bx("0x44")](Bx("0x15")),r=t[Bx("0x17")][Bx("0x44")](wx);r[Bx("0x38")][Bx("0x3d")]("mergeTableCells"),o[Bx("0x11")](Bx("0x12"),(()=>{const e=s[Bx("0x41")](t[Bx("0x42")].document.selection);t[Bx("0x42")][Bx("0x1a")]((()=>{o[Bx("0x32")](e,{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))})),t[Bx("0x2b")][Bx("0x44")](Bx("0x12")).on("execute",((e,n)=>{t[Bx("0x2b")].get(Bx("0x3a"))[Bx("0x4d")]&&(n[Bx("0x0")]>0&&n[n.length-1]&&n[n[Bx("0x0")]-1][Bx("0x46")]||o[Bx("0x1d")]||this._areSelectedCellsMergable()||e[Bx("0xa")]())}),{priority:Bx("0x2")});for(const e of[Bx("0x29"),Bx("0xf"),Bx("0x40"),"mergeTableCellLeft"]){const n=t[Bx("0x2b")][Bx("0x44")](e);o[Bx("0x11")](e,(()=>{const e=t.model[Bx("0xe")][Bx("0x10")][Bx("0x19")]().getAncestors().find((t=>t.is(Bx("0x18"),Bx("0x2f")))),s=n[Bx("0x4d")];t[Bx("0x42")][Bx("0x1a")]((()=>{o[Bx("0x32")]([e,s],{commandName:Bx("0x12"),commandParams:[]},[],Bx("0x12"))}))}))}for(const e of["splitTableCellVertically","splitTableCellHorizontally"]){const n=t[Bx("0x2b")][Bx("0x44")](e);o[Bx("0x11")](e,(()=>{const r=s[Bx("0x41")](t[Bx("0x42")].document.selection)[0],i=r[Bx("0x4e")](Bx("0x13")),{column:x,row:a}=s[Bx("0x4c")](r);let c=[];if(Bx("0x25")==n[Bx("0x49")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x1c")](t)[Bx("0x2e")]((t=>t[Bx("0x9")]))}else{const t=s[Bx("0x34")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x1c")](t).map((t=>t.cell))}t.model.change((t=>{o[Bx("0x21")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3e")][Bx("0x1e")]((t=>{const{data:e}=t;if(e)return Bx("0x12")==e[Bx("0x3f")]?{type:Bx("0x26"),content:Yo(n,Bx("0x6"))}:void 0})),o[Bx("0x3e")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x3b")==e[Bx("0x3f")]?{type:Bx("0x26"),content:Yo(n,"*Split cell:* vertically")}:Bx("0x48")==e[Bx("0x3f")]?{type:Bx("0x26"),content:Yo(n,Bx("0x4"))}:void 0}));const x=r[Bx("0x14")]();for(const t of[Bx("0x29"),Bx("0xf"),Bx("0x40"),Bx("0xb")])o[Bx("0x5")][Bx("0x1")](Bx("0x1f"),t,"accept",x);for(const t of["splitTableCellVertically",Bx("0x48")])o[Bx("0x5")][Bx("0x1")](Bx("0x1f"),t,"accept",x);o[Bx("0x5")][Bx("0x1")](Bx("0x1f"),Bx("0x12"),"accept",(n=>{t[Bx("0x42")].change((o=>{const s=Array[Bx("0x1c")](e[Bx("0x39")]())[Bx("0x2e")]((t=>i.LiveRange[Bx("0x23")](t)));o[Bx("0x20")](n),t[Bx("0x2b")][Bx("0x44")](Bx("0x12"))[Bx("0x8")](),t.execute("mergeTableCells",{forceDefaultExecution:!0});const r=s[Bx("0x30")]((t=>Bx("0x47")!=t[Bx("0x16")][Bx("0x3")]));r.length>0&&o[Bx("0x20")](r);for(const t of s)t[Bx("0x27")]()}))}));for(const e of["mergeTableCellUp",Bx("0x40"),"mergeTableCellLeft",Bx("0xf")]){const n=t.commands[Bx("0x44")](e);n.on(Bx("0xc"),((e,o,s)=>{if(s){const o=t[Bx("0x42")][Bx("0xe")].selection[Bx("0x19")]().getAncestors().find((t=>t.is(Bx("0x18"),Bx("0x2f"))));this._areMergableCells(n[Bx("0x4d")],o)||(e.return=!1,e[Bx("0xa")]())}}),{priority:Bx("0x22")})}}[Bx("0x4b")](){const t=this[Bx("0x31")][Bx("0x2b")][Bx("0x44")](Bx("0x12")),e=this[Bx("0x31")][Bx("0x17")][Bx("0x44")](Bx("0x15"));if(!t.isEnabled)return!1;const n=e[Bx("0x41")](this[Bx("0x31")][Bx("0x42")].document.selection);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Bx("0x24")](t,e){const n=this[Bx("0x31")].plugins[Bx("0x44")]("TrackChangesEditing"),o=this[Bx("0x31")].model[Bx("0x36")](t),s=this[Bx("0x31")].model.createRangeOn(e),r=new Set,i=new Set;for(const t of n[Bx("0x28")]())if((Bx("0x2a")==t.type||Bx("0x33")==t[Bx("0x2c")]||"mergeTableCells"==t[Bx("0x7")])&&t[Bx("0x35")])for(const e of t.getRanges())e[Bx("0x2d")](o,!0)&&r[Bx("0x3c")](t[Bx("0x2c")]+":"+t[Bx("0x43")].id),e[Bx("0x2d")](s,!0)&&i[Bx("0x3c")](t[Bx("0x2c")]+":"+t[Bx("0x43")].id);if(r.size!=i[Bx("0xd")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ux=["formatBlock","value","editor","childCount","createPositionAfter","addMarker:suggestion","get","FORMAT_REGULAR_COLUMN","activeMarkers","commandName","has","start","first","_acceptFormatSuggestionCallbackFactory","getCellLocation","markerName","TableUtils","getAttribute","createPositionBefore","nodeAfter","last","item","markerNameToElements","parent","consume","addClass","setAttribute","end","accept","findAncestor","FORMAT_REGULAR_ROW","toViewElement","enableCommand","getChild","ck-suggestion-marker--active","name","_descriptionFactory","highest","from","getColumnIndexes","isBefore","model","removeClass","removeAttribute","registerDescriptionCallback","editing","locale","_splitMarkerName","setTableColumnHeader","table","forceValue","commandParams","data-suggestion","markerRange","TableEditing","change","plugins","requires","createRange","ck-suggestion-marker-","selection","afterInit","bindElementToMarker","mapper","createTableWalker","data","writer","registerCustomCallback","getSuggestion","*Format:* %0","headingRows","downcastDispatcher","format","setTableRowHeader","getSelectionAffectedTableCells","commands","FORMAT_HEADER_ROW","showSuggestionHighlights","cell","consumable"];var Gx,Hx;Gx=Ux,Hx=422,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x23")](){return[wx]}[zx("0x27")](){const t=this[zx("0x3c")];if(!t[zx("0x22")][zx("0x44")](zx("0x20")))return;const e=t[zx("0x18")],n=t[zx("0x22")][zx("0x40")]("TrackChangesEditing"),o=t[zx("0x22")].get(zx("0x4a")),s=t[zx("0x22")].get(wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x19")](r[zx("0x49")]),c=n.getSuggestion(a);if(!c[zx("0x2b")]||zx("0x1a")!=c[zx("0x2b")][zx("0x43")])return;if(r[zx("0x4f")])return void s.stop();if(!i[zx("0x39")][zx("0x2")](r.markerRange,s[zx("0xd")]))return;const l=r[zx("0x1f")][zx("0x45")][zx("0x4d")],u=r[zx("0x1f")][zx("0x5")].nodeBefore,d=l.parent[zx("0x1")],{column:g}=o[zx("0x48")](l),{column:m}=o[zx("0x48")](u);for(let s=g;s<=m;s++){const c=o.createTableWalker(d,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[zx("0x29")][zx("0x9")](s);i[zx("0x2c")][zx("0x3")]("ck-suggestion-marker-"+x,c),e&&i[zx("0x2c")][zx("0x4")](zx("0x1e"),a,c),i[zx("0x29")][zx("0x28")](c,r[zx("0x49")]),t&&(n[zx("0x42")].includes(r[zx("0x49")])?i[zx("0x2c")][zx("0x3")]("ck-suggestion-marker--active",c):i[zx("0x2c")][zx("0x14")](zx("0xc"),c))}}}}n[zx("0xa")](zx("0x33"),((e,s)=>{const r=o[zx("0x34")](t[zx("0x13")].document[zx("0x26")]),i=o.getRowIndexes(r),x=r[0][zx("0x7")](zx("0x1b")),a=x[zx("0x4b")](zx("0x30"))||0,c=s&&null!==s.forceValue?s[zx("0x1c")]:!t[zx("0x35")][zx("0x40")](zx("0x33"))[zx("0x3b")],l=c?i[zx("0x4e")]:i.first,u=x[zx("0xb")](l);let d;if(c){const e=x[zx("0xb")](a);if(u.index<e.index)return;d=t[zx("0x13")][zx("0x24")](t.model[zx("0x4c")](e[zx("0xb")](0)),t[zx("0x13")][zx("0x3e")](u.getChild(u[zx("0x3d")]-1)))}else{const e=x[zx("0xb")](a-1);if(!e)return;d=t[zx("0x13")][zx("0x24")](t[zx("0x13")].createPositionBefore(u[zx("0xb")](0)),t.model[zx("0x3e")](e.getChild(e.childCount-1)))}t[zx("0x13")].change((()=>{n.markBlockFormat(d,{commandName:zx("0x33"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[zx("0xa")](zx("0x1a"),((e,o)=>{const s=t[zx("0x22")][zx("0x40")](zx("0x4a")),r=s.getSelectionAffectedTableCells(t[zx("0x13")].document[zx("0x26")]),i=s[zx("0x11")](r),x=r[0][zx("0x7")](zx("0x1b")),a=x[zx("0x4b")]("headingColumns")||0,c=o&&null!==o[zx("0x1c")]?o[zx("0x1c")]:!t.commands[zx("0x40")](zx("0x1a"))[zx("0x3b")];let l;const u=x[zx("0xb")](0),d=c?i.last:i[zx("0x46")],g=s[zx("0x2a")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x10")](g)[0][zx("0x38")];if(c){const e=u[zx("0xb")](a);if(m[zx("0x12")](e))return;l=t[zx("0x13")][zx("0x24")](t[zx("0x13")][zx("0x4c")](e),t[zx("0x13")][zx("0x3e")](m))}else{const e=u[zx("0xb")](a-1);if(!e)return;l=t[zx("0x13")][zx("0x24")](t.model.createPositionBefore(m),t[zx("0x13")].createPositionAfter(e))}t[zx("0x13")][zx("0x21")]((()=>{n.markBlockFormat(l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],zx("0x1a"))}))})),t[zx("0x17")][zx("0x31")].on("addMarker:suggestion",r(),{priority:zx("0xf")}),t[zx("0x2b")].downcastDispatcher.on(zx("0x3f"),((t,e,n)=>{n.options[zx("0x37")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0xf")}),t[zx("0x17")][zx("0x31")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[zx("0x19")](e[zx("0x49")]),i=n[zx("0x2e")](r);if(!i[zx("0x2b")]||zx("0x1a")!=i.data[zx("0x43")])return;const x=o[zx("0x29")][zx("0x0")](e[zx("0x49")]);if(x)for(const t of x)o[zx("0x2c")][zx("0x14")](zx("0x25")+s,t),o.writer[zx("0x14")](zx("0xc"),t),o[zx("0x2c")][zx("0x15")](zx("0x1e"),t),o[zx("0x29")].unbindElementFromMarkerName(t,e[zx("0x49")])}),{priority:zx("0xf")}),n[zx("0xe")][zx("0x16")]((t=>{const{data:n}=t;if(n){if(zx("0x33")==n[zx("0x43")]){const t=n[zx("0x1d")][0].forceValue;return o(Yo(e,zx(t?"0x36":"0x8")))}if("setTableColumnHeader"==n[zx("0x43")]){const t=n[zx("0x1d")][0][zx("0x1c")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":zx("0x41")))}}function o(t){return{type:zx("0x32"),content:Yo(e,zx("0x2f"),t)}}}));const i=s[zx("0x47")]();n._suggestionFactory[zx("0x2d")](zx("0x3a"),"setTableRowHeader",zx("0x6"),i),n._suggestionFactory[zx("0x2d")](zx("0x3a"),"setTableColumnHeader",zx("0x6"),i)}}const Vx=["*Replace table cells*","cells","activeMarkers","unwrap","setAttributes","afterInit","subType","getAllAdjacentSuggestions","insertRows","element","paragraph","view","suggestionUnloaded","map","length","markMultiRangeBlockFormat","suggestion-td","next","getRanges","tableCellVerticalAlignment","attributes","findAncestor","nextSibling","createTableWalker","newRange","conversion","insertContent","removeColumns","columnInsertionRanges","tableCellBackgroundColor","removeMarker","commands","selection","tableCellPadding","remove","has","document","insertColumns","TableUtils","tableCellBorderWidth","tableCellSuggestion","_isForcedDefaultExecutionBlock","author","fromEntries","createRangeOn","change","containsRange","Users","insertion","keys","insert","suggestion","register","tablePasteColumn","getMarkers","tableCell","reduce","push","plugins","getColumnIndexes","registerPostFixer","fill","ck-suggestion-marker","content","_splitMarkerName","table","for","suggestion:formatBlock:tablePasteCell","low","tablePaste","get","requires","join","end","stop","isEqual","_descriptionFactory","_suggestionFactory","differ","createPositionBefore","editing","getRows","previousSibling","isInContent","setAttribute","entries","getRange","name","getChanges","type","value","first","find","oldRange","locale","every","createElement","columns","tablePasteChainId","tablePasteRow","start","includes","accept","cell","getColumns","tablePasteCell","getSelectionAffectedTableCells","high","set","dataDowncast","rootName","registerCustomCallback","clipboardOutput","createRangeIn","discard","from","deletion","documentSelection","last","getChildren","showSuggestionHighlights","TableClipboard","_getCoordsForCells","return","position","editor","listenTo","registerDescriptionCallback","markMultiRangeInsertion","markerToHighlight","markerName","batch","elementToElement","markerAttributes","getContainedElement","formatBlock","removeMarkers","wrap","startsWith","endRow","isEmpty","columnInsertionIndexes","getAttributes","some","markMultiRangeDeletion","getSuggestions","redo","ck-suggestion-marker--active","trackChanges","filter","nodeAfter","getChangedMarkers","getChild","model","editingDowncast","_tablePostFixingSubtypes","markers"];var Kx,qx;Kx=Vx,qx=233,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x78"),"tableCellBorderColor","tableCellBorderStyle","tableCellHorizontalAlignment",Xx("0x64"),Xx("0x6e"),Xx("0x72")],Jx=Object[Xx("0x7c")]($x[Xx("0x5e")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x98")](){return[wx]}[Xx("0x56")](){const t=this[Xx("0x31")];if(!t[Xx("0x8b")][Xx("0x74")](Xx("0x2d")))return;const n=t[Xx("0x8b")][Xx("0x97")]("TrackChangesEditing"),o=t[Xx("0x8b")][Xx("0x97")](Xx("0x77")),s=t[Xx("0x8b")][Xx("0x97")](wx),r=t[Xx("0x8b")][Xx("0x97")](Xx("0x2d"));s[Xx("0x4f")][Xx("0x8a")](Xx("0x17"),Xx("0x86")),t[Xx("0x4d")].schema[Xx("0x85")]("tableCellSuggestion",{allowIn:Xx("0x88"),allowContentOf:"tableCell",isLimit:!0}),t.conversion[Xx("0x38")]({model:Xx("0x79"),view:Xx("0x61")});let i=null;t[Xx("0x4d")].on(Xx("0x6b"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x5f")]-1];l&&l.forceDefaultExecution||n[Xx("0x7a")]||this.editor.commands.get(Xx("0x48"))[Xx("0xe")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x29")))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x1e")](n[Xx("0x75")][Xx("0x71")]);if(!i[Xx("0x5f")])return!1;const x=i[0][Xx("0x66")](Xx("0x92")),a=o.getRowIndexes(i),c=o[Xx("0x8c")](i),l={startRow:a[Xx("0xf")],endRow:a[Xx("0x2a")],startColumn:c.first,endColumn:c[Xx("0x2a")]};return 1==i.length&&(l[Xx("0x3f")]+=o[Xx("0x5")](r)-1,l.endColumn+=o[Xx("0x1c")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s[Xx("0x9b")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x4d")][Xx("0x7e")]((()=>{t[Xx("0x4d")][Xx("0x6b")](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[Xx("0x5f")]&&n.markMultiRangeInsertion(s,"tablePasteRow",{tablePasteChainId:o}),r[Xx("0x5f")]&&n[Xx("0x34")](r,Xx("0x86"),{tablePasteChainId:o}),a[Xx("0x5f")]&&n[Xx("0x34")](a,Xx("0x96"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x5f")]&&n[Xx("0x44")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xx("0x60")](l[Xx("0x5e")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x1d"),{tablePasteChainId:o});if(u){const e=u[Xx("0x87")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x4d")].createRangeOn(o),i=e[Xx("0x10")]((t=>t[Xx("0xa")]()[Xx("0x9c")](r)));i&&n[Xx("0x8a")]([i[Xx("0xb")],s])}n.length&&u[Xx("0x8")]("markerAttributes",Object[Xx("0x7c")](n))}i=null})))}),{priority:e.priorities[Xx("0x1f")]+10}),t[Xx("0x8b")][Xx("0x97")]("TableClipboard").on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Xx("0x1b")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x2f")]=r;let l=null,u=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x4c")](0));for(const t of Array[Xx("0x27")](x[Xx("0x2b")]()))s[Xx("0x83")](t,r,"end");const t=i.rowInsertionIndexes.includes(n.row),e=i[Xx("0x41")][Xx("0x19")](n.column);t||e||(l=s.createRangeIn(r))}else c&&!a&&(u=s[Xx("0x25")](r));else{const t=s.createElement("tableCellSuggestion"),e=s[Xx("0x14")](Xx("0x79"));s[Xx("0x3d")](s[Xx("0x25")](r),e),s.insert(t,r,0);for(const e of Array[Xx("0x27")](x[Xx("0x2b")]()))s[Xx("0x83")](e,t,Xx("0x9a"));l=s[Xx("0x7d")](t),u=s.createRangeOn(e)}const d=Array[Xx("0x27")](x[Xx("0x42")]())[Xx("0x49")]((([t])=>$x[Xx("0x19")](t)));i.cells[Xx("0x8a")]({element:r,attributes:d[Xx("0x5f")]?Object[Xx("0x7c")](d):null}),l&&i.insertionRanges[Xx("0x8a")](l),u&&i.deletionRanges[Xx("0x8a")](u)}),{priority:Xx("0x1f")}),o.on(Xx("0x76"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x15")]||1;i[Xx("0x41")]=new Array(a)[Xx("0x8e")](x)[Xx("0x5e")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x68")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x6d")].push(t[Xx("0x4d")][Xx("0x7d")](e))}),{priority:Xx("0x95")}),o.on(Xx("0x59"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i.rowInsertionIndexes=new Array(a)[Xx("0x8e")](x)[Xx("0x5e")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x68")](s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Xx("0x8a")](t[Xx("0x4d")][Xx("0x7d")](e))}),{priority:Xx("0x95")}),n[Xx("0x0")][Xx("0x33")]((e=>{if(e[Xx("0x57")]&&e[Xx("0x57")][Xx("0x3e")](Xx("0x96")))return e.previous?{}:{type:Xx("0x81"),content:Yo(t[Xx("0x12")],Xx("0x51"))}}));const x=()=>{};for(const t of[Xx("0x96"),Xx("0x86"),Xx("0x17"),Xx("0x1d")])n[Xx("0x1")][Xx("0x23")](Xx("0x81"),t,Xx("0x99"),x),n[Xx("0x1")][Xx("0x23")]("deletion",t,Xx("0x99"),x);n._suggestionFactory.registerCustomCallback(Xx("0x3b"),"tablePasteCell",Xx("0x26"),x),n[Xx("0x1")][Xx("0x23")](Xx("0x3b"),Xx("0x1d"),Xx("0x1a"),((e,n,o)=>{const s=e.map((t=>t[Xx("0x3a")]()))[Xx("0x49")]((t=>t)),r=new Map(s[Xx("0x5e")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x52")])e&&r[Xx("0x20")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Xx("0x9")](o[Xx("0x39")])){const o=t[Xx("0x4d")][Xx("0x50")][Xx("0x97")](e),s=o?o[Xx("0xa")]()[Xx("0x3a")]():null;s&&r[Xx("0x20")](s,n)}t[Xx("0x4d")][Xx("0x7e")]((t=>{for(const[e,n]of r)t[Xx("0x55")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x1")][Xx("0x23")](e,Xx("0x96"),o,((s,r,i)=>{t[Xx("0x4d")][Xx("0x7e")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x18")][Xx("0x4a")];e.is(Xx("0x5a"),Xx("0x79"))&&x.push(e)}n[Xx("0x1")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e.root[Xx("0x22")]&&t[Xx("0x54")](e)}))}))};a(Xx("0x81"),"accept"),a(Xx("0x81"),"discard"),a(Xx("0x28"),Xx("0x1a")),a(Xx("0x28"),Xx("0x26")),n._suggestionFactory[Xx("0x23")](Xx("0x81"),Xx("0x17"),"discard",(t=>{const e=t[Xx("0x5e")]((t=>t[Xx("0x3a")]())),n=e[0][Xx("0x66")](Xx("0x92")),{minRow:r,maxRow:i}=s[Xx("0x2e")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Xx("0x1")][Xx("0x23")](Xx("0x81"),Xx("0x86"),"discard",(t=>{const e=t[Xx("0x5e")]((t=>t[Xx("0x3a")]())),n=e[0][Xx("0x66")](Xx("0x92")),{minColumn:r,maxColumn:i}=s[Xx("0x2e")](e);o[Xx("0x6c")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x57")]||!e[Xx("0x57")][Xx("0x3e")](Xx("0x96")))return;const o=e[Xx("0x65")][Xx("0x16")],s=n.getSuggestions().filter((t=>t[Xx("0x7")]&&t[Xx("0x65")]&&t[Xx("0x65")][Xx("0x16")]==o));s[Xx("0x5f")]&&e[Xx("0x58")]()[Xx("0x5f")]!=s[Xx("0x5f")]&&s[Xx("0x89")](((t,e)=>(t[Xx("0x62")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x91")](t[Xx("0x36")]),s=[Xx("0x8f"),"ck-suggestion-marker-insertion"],r=n[Xx("0x53")][Xx("0x19")](t[Xx("0x36")]);return r&&s[Xx("0x8a")](Xx("0x47")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Xx("0x1f")}),n.on(Xx("0x5d"),c,{priority:Xx("0x1f")}),t.model.document[Xx("0x8d")]((()=>{let e=!1;const o=Array[Xx("0x27")](t[Xx("0x4d")][Xx("0x75")][Xx("0x2")][Xx("0x4b")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x91")](s);if(Xx("0x84")!=o||Xx("0x28")!=i||r.oldRange)continue;if(!n.hasSuggestion(x))continue;const a=n.getSuggestion(x)[Xx("0x63")](),c=t.plugins[Xx("0x97")](Xx("0x80")).me;for(const t of n[Xx("0x45")]())if(t[Xx("0x7")]&&t.author==c&&"formatBlock"==t.type&&"tablePasteCell"==t.subType&&t[Xx("0x63")]()[Xx("0x13")]((t=>a[Xx("0x43")]((e=>e[Xx("0x7f")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Xx("0x7")]&&(n[Xx("0x26")](),e=!0)}return e})),t.model[Xx("0x75")][Xx("0x8d")]((e=>{const o=t[Xx("0x70")].get(Xx("0x46"));if(!o||!o._createdBatches[Xx("0x74")](e[Xx("0x37")]))return!1;let s=!1;const r=t[Xx("0x8b")][Xx("0x97")](Xx("0x80")).me,i=t[Xx("0x4d")][Xx("0x75")].differ[Xx("0xc")](),x=Array[Xx("0x27")](t[Xx("0x4d")][Xx("0x75")][Xx("0x2")][Xx("0x4b")]())[Xx("0x49")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return"suggestion"==o&&Xx("0x96")==s&&i==r.id&&!e[Xx("0x11")]}));for(const t of i){if(Xx("0x83")!=t[Xx("0xd")]||Xx("0x79")!=t[Xx("0xb")]||1!=t.length)continue;const n=e.createRange(t[Xx("0x30")],t[Xx("0x30")].getShiftedBy(1));if(!x[Xx("0x10")]((({data:t})=>t[Xx("0x69")][Xx("0x9c")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Xx("0x69")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x75")].registerPostFixer((e=>{let o=!1;const s=t[Xx("0x8b")][Xx("0x97")](Xx("0x80")).me,r=n[Xx("0x45")]()[Xx("0x49")]((t=>t[Xx("0x7")]&&t[Xx("0x7b")]==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t.subType)for(const e of t[Xx("0x87")]()){const n=e[Xx("0xa")]()[Xx("0x3a")]();if(n)if(n.is(Xx("0x5a"),Xx("0x79"))&&Zx(n)){t[Xx("0x6f")](e[Xx("0xb")]),i.add(n),o=!0;const s=n[Xx("0x67")],r=n[Xx("0x6")],a=s&&s.is(Xx("0x5a"),Xx("0x79")),c=r&&r.is(Xx("0x5a"),Xx("0x79"));a&&!i[Xx("0x74")](s)&&x.add(s),c&&!i.has(r)&&x.add(r)}else n.is(Xx("0x5a"),Xx("0x5b"))&&n[Xx("0x40")]&&(t[Xx("0x6f")](e[Xx("0xb")]),o=!0)}else if("tablePasteCell"==t[Xx("0x57")]){if(!t[Xx("0x65")]||!t.attributes.tablePasteChainId)continue;const e=t[Xx("0x65")][Xx("0x39")];if(e&&Object[Xx("0x82")](e)[Xx("0x5f")])continue;const n=t[Xx("0x65")][Xx("0x16")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[Xx("0x57")].startsWith("tablePaste")){if(!e.attributes[Xx("0x16")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x65")].tablePasteChainId==n){s=!1;break}}i&&s&&(t[Xx("0x3c")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x54")](t);return o})),t[Xx("0x6a")][Xx("0x93")](Xx("0x4e"))[Xx("0x35")]({model:Xx("0x94"),view:(t,e)=>l(t),converterPriority:"high"}),t[Xx("0x6a")][Xx("0x93")](Xx("0x21"))[Xx("0x35")]({model:Xx("0x94"),view:(t,e)=>e.options[Xx("0x2c")]?l(t,!1):null,converterPriority:Xx("0x1f")});const u=t[Xx("0x4")][Xx("0x5c")];this[Xx("0x32")](u[Xx("0x75")],Xx("0x24"),((t,e)=>{const n=[];for(const t of u[Xx("0x25")](e[Xx("0x90")]).getItems())t.is(Xx("0x5a"),Xx("0x61"))&&n[Xx("0x8a")](t);u[Xx("0x7e")]((t=>{for(const e of n)t.move(t.createRangeIn(e),t[Xx("0x3")](e)),t[Xx("0x73")](e)}))}))}}function Zx(t){if(t[Xx("0x40")])return!0;const e=t.getChild(0);return e.is(Xx("0x5a"),Xx("0x5b"))&&e.isEmpty}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x68")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["locale","model","editor","_suggestionFactory","TrackChangesEditing","formatBlock","getTableColumnsWidths","Users","data","*Format:* resize table","columnWidths","TableColumnResizeEditing","selection","subType","getColumnGroupElement","getAttribute","formatGroupId","has","getSelectedElement","discard","resizeColumnWidths","getSuggestionCallback","enableCommand","format","handleSuggestionDescription","registerCustomCallback","resizeTableWidth","registerDescriptionCallback","author","table","getSuggestions","getContainedElement","get","handleResizeTableWidthCommand","commandParams","resizeTable","accept","document","plugins","bind","afterInit","tableWidth","change"];var ea,na;ea=ta,na=330,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0xb")](){if(!this[oa("0x10")][oa("0x9")][oa("0x1f")]("TableColumnResizeEditing"))return;const t=this[oa("0x10")][oa("0x9")][oa("0x3")](oa("0x12"));t.enableCommand("resizeTableWidth",this[oa("0x4")][oa("0xa")](this)),t[oa("0x24")](oa("0x22"),this[oa("0x4")][oa("0xa")](this)),t[oa("0x11")][oa("0x27")](oa("0x13"),oa("0x6"),"accept",t[oa("0x11")][oa("0x23")](oa("0x13"),null,oa("0x21"))),t[oa("0x11")][oa("0x27")](oa("0x13"),oa("0x6"),oa("0x21"),t[oa("0x11")][oa("0x23")]("formatBlock",null,oa("0x7"))),t._descriptionFactory[oa("0x29")](this[oa("0x26")][oa("0xa")](this))}handleResizeTableWidthCommand(t,e){const n=this.editor[oa("0x9")].get(oa("0x12")),o=this[oa("0x10")][oa("0x9")][oa("0x3")](oa("0x19")),s=e[oa("0x0")]||this[oa("0x10")].model[oa("0x8")][oa("0x1a")][oa("0x20")]();this[oa("0x10")][oa("0xf")][oa("0xd")]((()=>{const r=o[oa("0x1c")](s);let i=r?o[oa("0x14")](r):null,x=s[oa("0x1d")](oa("0xc"))||null;const a=e[oa("0xc")]||x,c=e[oa("0x18")]||i,l=this[oa("0x10")][oa("0x9")][oa("0x3")](oa("0x15")).me;for(const t of n[oa("0x1")]()){const e=t[oa("0x2")]();if(oa("0x6")===t[oa("0x1b")]&&e===s){t[oa("0x2a")]!==l&&t[oa("0x21")]();const e=t[oa("0x16")][oa("0x5")];x=e[0].tableWidth,i=e[0][oa("0x18")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:oa("0x28"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],oa("0x6"))}))}[oa("0x26")](t){const{data:e}=t;if(e&&oa("0x6")===e[oa("0x1e")]){const t=oa("0x17");return{type:oa("0x25"),content:Yo(this[oa("0x10")][oa("0xe")],t)}}}}const ra=["get","enableCommand","has","plugins"];var ia,xa;ia=ra,xa=480,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this.editor;t[aa("0x3")][aa("0x2")]("Template")&&t[aa("0x3")][aa("0x0")]("TrackChangesEditing")[aa("0x1")]("insertTemplate")}}const la=["registerElementLabel","editor","_descriptionFactory","tableOfContents","get","TrackChangesEditing","plugins","insertTableOfContents","locale","ELEMENT_TABLE_OF_CONTENTS"];var ua,da;ua=la,da=390,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{afterInit(){const t=this[ga("0x1")];if(!t.commands[ga("0x4")](ga("0x7")))return;t[ga("0x6")][ga("0x4")](ga("0x5")).enableCommand(ga("0x7"));const e=t[ga("0x6")][ga("0x4")](ga("0x5")),n=t[ga("0x8")];e[ga("0x2")][ga("0x0")](ga("0x3"),(t=>Yo(n,ga("0x9"),t)))}}const fa=["title-content","updateMarker","end","start","element","registerElementLabel","forward","plugins","differ","get","has","nodeBefore","afterInit","getChangedMarkers","TrackChangesEditing","removeMarker","isCollapsed","schema","createRange","newRange","model","_descriptionFactory","registerPostFixer","editor","document"];var ha,pa;ha=fa,pa=408,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x4")](){const t=this[ba("0xf")];if(!t[ba("0x18")][ba("0x2")]("Title"))return;const e=t[ba("0x18")][ba("0x1")](ba("0x6"));e[ba("0xd")][ba("0x16")](ba("0x11"),(()=>Yo(t.locale,"ELEMENT_TITLE"))),t[ba("0xc")][ba("0x10")][ba("0xe")]((n=>{let o=!1;const s=Array.from(t.model[ba("0x10")][ba("0x0")][ba("0x5")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if("suggestion"!==s||!i.newRange)continue;const x=i[ba("0xb")],a=x[ba("0x13")][ba("0x3")];if(!a||!a.is(ba("0x15"),"title-content"))continue;if(!x[ba("0x14")].isTouching(x[ba("0x13")]))continue;const c=t[ba("0xc")][ba("0x9")].getNearestSelectionRange(x[ba("0x13")],ba("0x17"));if(c&&c[ba("0x8")]){const t=n[ba("0xa")](x[ba("0x14")],c[ba("0x14")]);t.isEqual(x)||(n[ba("0x12")](r,{range:t}),o=!0)}o||(n[ba("0x7")](r),o=!0)}return o}))}}const _a=["has","afterInit","TrackChangesEditing","redo","UndoEditing","enableCommand","plugins"];var Ta,Ca;Ta=_a,Ca=498,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.editor,e=t[ya("0x5")].get(ya("0x1"));t[ya("0x5")][ya("0x6")](ya("0x3"))&&(e.enableCommand("undo"),e[ya("0x4")](ya("0x2")))}}const Aa=["plugins","editor","TrackChangesEditing","has"];var va,Ra;va=Aa,Ra=219,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get requires(){return[wx]}afterInit(){const t=this[Sa("0x2")];t[Sa("0x1")][Sa("0x0")]("TableCaptionEditing")&&t[Sa("0x1")].get(Sa("0x3")).enableCommand("toggleTableCaption")}}const La=["isListItemBlock","expandListBlocksToCompleteList","*Format:* set order to reversed","*Format:* set start index to %0","locale","_getTranslationKeyForListStyle","isFirstBlockOfListItem","markMultiRangeBlockFormat","*Change to:* %0","model","DocumentListUtils","bind","TrackChangesEditing","getAttribute","push","reversed","startIndex","format","listReversed","document","change","handleListStyleCommand","config","*Format:* set order to regular","_getSuggestionBlocksForListStyle","getSelectedBlocks","get","listStart","registerDescriptionCallback","getListTypeFromListStyleType","from","commandParams","listStyle","numbered","listType","has","handleListStartCommand","toUpperCase","list.properties","_getSuggestionBlocks","handleDescriptions","_LIST_","type","handleListReversedCommand","enableCommand","_descriptionFactory","plugins","editor"];var Na,Ma;Na=La,Ma=136,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this[wa("0x7")][wa("0x6")][wa("0x2b")]("DocumentListPropertiesEditing"))return;const t=this[wa("0x7")][wa("0x1e")].get(wa("0x2e")),e=this[wa("0x7")][wa("0x6")][wa("0x22")]("TrackChangesEditing");t.styles&&e[wa("0x4")]("listStyle",this.handleListStyleCommand[wa("0x13")](this)),t[wa("0x17")]&&e[wa("0x4")]("listReversed",this[wa("0x3")][wa("0x13")](this)),t[wa("0x18")]&&e[wa("0x4")](wa("0x23"),this[wa("0x2c")][wa("0x13")](this)),e[wa("0x5")][wa("0x24")](this[wa("0x0")].bind(this))}[wa("0x1d")](t,e={}){const n=this.editor[wa("0x6")][wa("0x22")]("TrackChangesEditing"),o=this._getSuggestionBlocksForListStyle();this[wa("0x7")].model.change((()=>{n[wa("0xf")](o,{commandName:wa("0x28"),commandParams:[{type:e[wa("0x2")]}],formatGroupId:"listStyle"})}))}[wa("0x3")](t,e={}){const n=this[wa("0x7")][wa("0x6")].get(wa("0x14")),o=this[wa("0x7")][wa("0x6")][wa("0x22")](wa("0x12")),s=this._getSuggestionBlocks((t=>o.isListItemBlock(t)&&wa("0x29")===t.getAttribute("listType")));null!==s&&this.editor[wa("0x11")][wa("0x1c")]((()=>{n[wa("0xf")](s,{commandName:wa("0x1a"),commandParams:[{reversed:e[wa("0x17")]}],formatGroupId:wa("0x1a")})}))}handleListStartCommand(t,e={}){const n=this[wa("0x7")][wa("0x6")].get(wa("0x14")),o=this[wa("0x7")].plugins[wa("0x22")](wa("0x12")),s=this._getSuggestionBlocks((t=>o[wa("0x8")](t)&&wa("0x29")===t[wa("0x15")](wa("0x2a"))));null!==s&&this[wa("0x7")][wa("0x11")][wa("0x1c")]((()=>{n[wa("0xf")](s,{commandName:wa("0x23"),commandParams:[{startIndex:e[wa("0x18")]}],formatGroupId:"listStart"})}))}[wa("0x0")](t){const e=this[wa("0x7")][wa("0xc")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o=wa("0x10"),s={type:wa("0x19"),content:Yo(e,o,Yo(e,this[wa("0xd")](n[wa("0x27")][0][wa("0x2")])))};break;case"listReversed":o=n[wa("0x27")][0][wa("0x17")]?wa("0xa"):wa("0x1f"),s={type:wa("0x19"),content:Yo(e,o)};break;case"listStart":o=wa("0xb"),s={type:wa("0x19"),content:Yo(e,o,n[wa("0x27")][0][wa("0x18")])}}return s}[wa("0x20")](){const t=this[wa("0x7")][wa("0x6")].get("DocumentListUtils");let e=Array[wa("0x26")](this[wa("0x7")].model[wa("0x1b")].selection[wa("0x21")]());return e[wa("0x16")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[wa("0x2f")](t){const e=this.editor[wa("0x6")].get("DocumentListUtils");let n=Array[wa("0x26")](this[wa("0x7")][wa("0x11")].document.selection[wa("0x21")]()).filter(t);if(!n.length)return null;n=e[wa("0x9")](n);const o=[];for(const t of n)e[wa("0xe")](t)&&o[wa("0x16")](t);return o}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[wa("0x7")].plugins[wa("0x22")]("DocumentListPropertiesUtils")[wa("0x25")](t)[wa("0x2d")]()+wa("0x1")+t[wa("0x2d")]().replace(/-/g,"_")}}const Fa=["tableProperties","handleSuggestionDescription","tableCellHorizontalAlignment","_descriptionFactory","join","tableBorderStyle","subType","tableWidth","discard","findAncestor","model","TrackChangesTableProperties","pluginName","enableCommand","registerCustomCallback","has","*Format:* change table properties","tableCellPadding","locale","format","selection","setAttribute","tableCellVerticalAlignment","editor","TableUtils","getSuggestionCallback","accept","removeAttribute","tableAlignment","_getSuggestion","getFirstPosition","TableCellPropertiesEditing","tableCellHeight","tableBackgroundColor","handleDiscardAction","TrackChangesEditing","getSuggestions","tableBorderWidth","tableCellBorderStyle","tableCellProperties","enqueueChange","table","tableCellBackgroundColor","*Format:* change table cell properties","markBlockFormat","TablePropertiesEditing","afterInit","commandParams","_suggestionFactory","_handlePropertyChange","getAttribute","nodeAfter","registerDescriptionCallback","get","tableCellBorderWidth","data","tableHeight","plugins","batch","tableBorderColor","tableCellBorderColor","formatBlock"];var Pa,Da;Pa=Fa,Da=154,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x20")]=[Ba("0x1d"),Ba("0x25"),Ba("0x7"),Ba("0x3c"),Ba("0x27"),Ba("0x1a"),Ba("0x3")],this.tableCellProperties=[Ba("0x1e"),Ba("0x8"),Ba("0x18"),Ba("0x31"),"tableCellWidth",Ba("0x2"),Ba("0xc"),Ba("0x22"),Ba("0x36")]}static get[Ba("0x2c")](){return Ba("0x2b")}[Ba("0x10")](){const t=this.editor[Ba("0x1b")][Ba("0x17")](Ba("0x5"));if(this.editor.plugins[Ba("0x2f")](Ba("0xf"))){for(const e of this[Ba("0x20")])t[Ba("0x2d")](e,((t,n)=>{const o=this[Ba("0x37")][Ba("0x2a")].document.selection[Ba("0x0")]()[Ba("0x29")](Ba("0xb"));this._handlePropertyChange(e,[o],this[Ba("0x20")],"tableProperties",t,n)}));t[Ba("0x12")][Ba("0x2e")](Ba("0x1f"),"tableProperties",Ba("0x3a"),t[Ba("0x12")][Ba("0x39")]("formatBlock",null,Ba("0x28"))),t._suggestionFactory[Ba("0x2e")]("formatBlock",Ba("0x20"),Ba("0x28"),((t,e)=>this[Ba("0x4")](this.tableProperties,t,e))),t[Ba("0x12")][Ba("0x2e")](Ba("0x1f"),"tableProperties",Ba("0x24"),(()=>!1))}if(this[Ba("0x37")][Ba("0x1b")].has(Ba("0x1"))){for(const e of this[Ba("0x9")])t[Ba("0x2d")](e,((t,n)=>{const o=this[Ba("0x37")][Ba("0x1b")][Ba("0x17")](Ba("0x38")).getSelectionAffectedTableCells(this[Ba("0x37")][Ba("0x2a")].document[Ba("0x34")]);this[Ba("0x13")](e,o,this[Ba("0x9")],Ba("0x9"),t,n)}));t[Ba("0x12")].registerCustomCallback("formatBlock",Ba("0x9"),Ba("0x3a"),t[Ba("0x12")][Ba("0x39")](Ba("0x1f"),null,Ba("0x28"))),t[Ba("0x12")][Ba("0x2e")](Ba("0x1f"),Ba("0x9"),"discard",((t,e)=>this[Ba("0x4")](this.tableCellProperties,t,e))),t._suggestionFactory[Ba("0x2e")]("formatBlock",Ba("0x9"),Ba("0x24"),(()=>!1))}t[Ba("0x23")][Ba("0x16")]((t=>this[Ba("0x21")](t)))}[Ba("0x13")](t,e,n,o,s,r){const i=this[Ba("0x37")][Ba("0x1b")][Ba("0x17")]("TrackChangesEditing");this[Ba("0x37")][Ba("0x2a")][Ba("0xa")](r[Ba("0x1c")],(()=>{for(const t of e)if(this[Ba("0x3d")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x14")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0xe")](t,{commandParams:[e]},[],o)}}))}[Ba("0x4")](t,e,n){const o=e[0].start[Ba("0x15")],s=n[Ba("0x11")][0];this[Ba("0x37")].model.change((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x35")](n,s[n],o):e[Ba("0x3b")](n,o)}))}[Ba("0x21")](t){if(t[Ba("0x19")])switch(t[Ba("0x26")]){case Ba("0x20"):return{type:Ba("0x33"),content:Yo(this.editor[Ba("0x32")],Ba("0x30"))};case Ba("0x9"):return{type:"format",content:Yo(this.editor[Ba("0x32")],Ba("0xd"))}}}[Ba("0x3d")](t,e){const n=this[Ba("0x37")].plugins[Ba("0x17")]("TrackChangesEditing");for(const o of n[Ba("0x6")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0x26")]===e&&n===t)return o}return null}}const Ua=["_setSuggestionData","originalSuggestionId","reconvertMarker","addMarker:suggestion","return","getMarkers","data-suggestion","position","markers","size","toJSON","suggestion","name","moveTargetPosition","updateMarker","insertion:discard","getLastMatchingPosition","change:_saved","enqueueChange","rootName","conversion","widget","_isForcedDefaultExecutionBlock","_updateSuggestionData","some","registerPostFixer","createSelection","filter","has","formatBlock:join","never","track-changes-suggestion-not-found","item","consume","_refreshSuggestionsChain","addSuggestion","forceDefaultExecution","markerReady","isCollapsed","removeMarkers","deletion","resolve","subType","delete","updateSuggestion","suggestion-type","removeAttribute","PENDING_ACTION_SUGGESTION","isInsideObject","listenTo","sort","_joinWithAdjacentSuggestions","hasSuggestion","getRanges","authoredAt","getItems","_enabledCommands","removed","markerName","addClass","open","unbindElementFromMarkerName","_removeSuggestion","backward","removeComment","splitPosition","_splitMarkerName","differ","containerElement","locale","formatBlock:","document","data","documentSelection","getMultiRangeId","insertion:accept","getFirstMarker","deleteContent","_rangeIsInLocalUserInsertion","ck-suggestion-marker--active","insertion:join","external:","howMany","_descriptionFactory","markDeletion","add","oldRange","insertion:chain","splice","isInContent","requires","previous","suggestionLoaded","getChangedMarkers","forward","clone","formatInline:discard","TrackChangesEditing","removeClass","newRange","selection","set","getAllAdjacentSuggestions","isUndo","_addThreadToSuggestion","rejected","_adapter","getSuggestionCallback","targetPosition","_getExternalAuthor","ck-suggestion-marker-","addCommentThread","every","join","isAfter","split","skipNestingCheck","head","createPositionAt","isOwn","_customCallbacks","root","marker-count","range","_suggestionFactory","low","dataDowncast","discard","addRange","registerCustomCallback","editor","deletion:","formatBlock:discard","init","_saved","getSuggestion","getFirstRange","createPositionAfter","execute","dataReady","suggestionChanged","multi","_registerDefaultCallbacks","multipleBlocks","markBlockFormat","CommentsRepository","chain","acceptSuggestion","_checkSuggestionCorrectness","setSelection","markMultiRangeInsertion","remove","discardAllSuggestions","detach","markInsertion","options","formatBlock:accept","always","addMarker:suggestion:formatBlock","collaboration.channelId","createRangeIn","isRemovable","getNearestSelectionRange","mapper","getUser","lowest","length","insertion","markerToData","accept","author","parent","insertContent","element","addSuggestionData","formatBlock:chain","addMarkerName","isIntersectingWithRange","_trackFormatChanges","change:activeMarkers","formatGroupId","from","fire","formatBlock","value","trackChangesCommand","nodeAfter","refresh","nodeBefore","formatInline:accept","authorName","@external","markerToHighlight","then","_commentsRepository","hasComments","PendingActions","getChanges","fromRange","_suggestionState","isLimit","_getAuthorFromId","isAtStart","batch","markerNameToElements","showSuggestionHighlights","values","_findSuggestions","addMarker","addHighlight","getCommentThread","isEqual","push","_suggestions","attributes","before","_joinSuggestions","createdAt","deletion:chain","buildSuggestion","rethrowUnexpectedError","map","discardSuggestion","commandName","containsPosition","elementStart","plugins","Users","creator","isAtEnd","isObject","editingDowncast","_mergeNestedSuggestions","_model","$graveyard","normal","_setSuggestionRange","isTouching","bindElementToMarker","getIntersection","setAttribute","commentThread","discardSelectedSuggestions","_defaultCallbacks","getAttribute","getCustomProperty","isMultiRange","formatInline","upcast","enableCommand","deletion:discard","stop","createRange","ready","formatInline:","get","toViewElement","next","isNextTo","$textProxy","isBefore","markMultiRangeBlockFormat","containsRangeInObject","for","editing","change","isBlock","_handleNewSuggestionMarker","schema","start","fetchCommentThread","change:data","_cutOutSuggestionMarker","getDifference","accepted","getSuggestions","high","includes","getWalker","type","fromCharCode","ck-suggestion-marker-formatBlock","config","insert","setTo","ck-suggestion-marker","_getSuggestionData","containsRange","writer","getShiftedBy","track-changes-suggestion-data-mismatch","unbind","deletion:join","deletion:accept","_createSuggestion","activeMarkers","_addSuggestionMarker","commands","track-changes-adapter-already-set","clear","end","enableReadOnlyMode","model","consumable","trackChanges.trackFormatChanges","acceptAllSuggestions","removeMarker","after","trackChanges.mergeNestedSuggestions"];var Ga,Ha;Ga=Ua,Ha=165,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0xea")](){return[za("0x121"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get pluginName(){return za("0xf1")}constructor(t){function e(t){return t[za("0x38")]((t=>String[za("0x73")](t)))[za("0x101")]("")}super(t),this[za("0xf5")](za("0x82"),[]),this.on(za("0xe"),((e,n,o,s)=>{this[za("0x44")][za("0x64")]((()=>{for(const e of[...s,...o])this[za("0x44")][za("0x98")][za("0xac")](e)&&t[za("0x63")][za("0x92")](e)}))})),this[za("0xe3")]=new ss(this[za("0x112")].model.schema,this[za("0x112")][za("0xd5")]),this[za("0xfa")]=null,this[za("0x10c")]=new Va(this[za("0x112")]),this[za("0x30")]=new Map,this[za("0x1d")]=t[za("0x3d")][za("0x5a")](za("0x121")),this[za("0xc8")]=new Set,this[za("0x44")]=this[za("0x112")][za("0x89")],this._suggestionState=new WeakMap,this[za("0xa6")]=!1,t[za("0x75")].define("trackChanges.trackFormatChanges","default"),this[za("0xd")]=t[za("0x75")][za("0x5a")](za("0x8b")),t[za("0x75")].define(za("0x8f"),!0),this._mergeNestedSuggestions=t.config[za("0x5a")](za("0x8f")),this[za("0x14")]=new d(t,this._enabledCommands),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,52,53,52])}[za("0x115")](){const t=this.editor;t[za("0xa4")].for(za("0x42"))[za("0x1b")]({model:za("0x9b"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[za("0xca")]),o=["ck-suggestion-marker",za("0xfe")+n];let s=3e3;return this.activeMarkers[za("0x70")](t[za("0xca")])&&(o[za("0x2f")](za("0xdf")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xa4")][za("0x62")](za("0x10e"))[za("0xe5")]((e=>{e.on(za("0x93"),((e,n,o)=>{if(!o[za("0x12b")][za("0x28")])return;const s=n[za("0xb0")];if(!s)return;const r=o[za("0x133")][za("0x5b")](s);t[za("0x89")][za("0x67")][za("0x41")](s)&&r&&!r[za("0x50")](za("0xa5"))&&r.is(za("0xd4"))&&(0,x.toWidget)(r,o[za("0x7b")])}),{priority:za("0x6f")})})),t[za("0xa4")][za("0x62")]("dataDowncast")[za("0x1b")]({model:za("0x9b"),view:(t,e)=>{if(!e[za("0x12b")][za("0x28")])return null;const{type:n}=this[za("0xd2")](t.markerName);return{classes:[za("0x78"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0xb0")].is("selection"))return void s[za("0x8a")][za("0xb1")](o[za("0xb0")],n[za("0x9c")]);const r=s[za("0x133")][za("0x5b")](o[za("0xb0")]);if(!o.item.is(za("0x8"))||!t.model.schema[za("0x65")](o[za("0xb0")])||r[za("0x50")](za("0x2c")))return;const{id:i}=this[za("0xd2")](o[za("0xca")]);s[za("0x7b")][za("0xcb")](["ck-suggestion-marker",za("0x74")],r),s[za("0x7b")][za("0x4b")]("data-suggestion",i,r),s[za("0x133")][za("0x49")](r,o[za("0xca")]),e&&(this[za("0x82")][za("0x70")](o[za("0xca")])?s[za("0x7b")][za("0xcb")](za("0xdf"),r):s[za("0x7b")][za("0xf2")](za("0xdf"),r));for(const e of t.model[za("0x130")](o.item)[za("0xc7")]())s.consumable[za("0xb1")](e,n.name);s[za("0x8a")].consume(o[za("0xb0")],n[za("0x9c")])};t[za("0xa4")][za("0x62")](za("0x10e"))[za("0xe5")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o.options[za("0x28")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[za("0xa4")][za("0x62")](za("0x10e"))[za("0x3")]({model:za("0x9b"),view:(t,e)=>e[za("0x12b")][za("0x28")]?null:{group:za("0x9b"),name:t.substr(11)}}),t[za("0xa4")][za("0x62")]("upcast").elementToElement({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[za("0x4f")](za("0xbd"))+":"+t.getAttribute("id");return t.getAttribute(za("0x10a"))&&(n+=":"+t[za("0x4f")](za("0x10a"))),e.createElement("$marker",{"data-name":n})}}),t[za("0xa4")][za("0x62")](za("0x53")).dataToMarker({view:za("0x9b")}),t[za("0xa4")][za("0x62")](za("0x42"))[za("0xe5")]((t=>{t.on(za("0x12e"),n(),{priority:"high"})})),t[za("0xa4")][za("0x62")](za("0x42"))[za("0xe5")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n.mapper[za("0x27")](e[za("0xca")]);if(o)for(const t of o)t[za("0x50")](za("0x2c"))||(n[za("0x7b")][za("0xf2")]([za("0x78"),za("0x74"),za("0xdf")],t),n[za("0x7b")][za("0xbe")](za("0x96"),t),n[za("0x133")][za("0xcd")](t,e[za("0xca")]))}),{priority:za("0x6f")})})),t[za("0x89")][za("0xd7")].registerPostFixer((e=>{let n=!1;const o=Array[za("0x10")](t[za("0x89")][za("0xd7")][za("0xd3")][za("0xed")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0xd2")](x);if("suggestion"!==o)continue;const u=this[za("0x30")][za("0x5a")](l);if(null!=a.newRange)if("formatInline"==c&&(n=n||Xa(a.newRange,x,e,t.model[za("0x67")])),a[za("0xf3")].isCollapsed||za("0x45")==a[za("0xf3")][za("0x109")][za("0xa3")]||za("0x12")==c&&!Ja(a[za("0xf3")])||"deletion"==c&&(qa(i=a[za("0xf3")])||(r=i).start[za("0x6")]==r[za("0x87")][za("0x17")]&&r[za("0x68")][za("0x40")]))e[za("0x8d")](x),n=!0;else{if(!u||!u[za("0xe9")])continue;s.add(u)}}var r,i;return s[za("0x99")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t.model[za("0xd7")][za("0xa9")]((e=>{let n=!1;for(const o of t[za("0x89")][za("0xd7")][za("0xd3")][za("0x20")]()){if("insert"!=o[za("0x72")])continue;const s=o[za("0x97")][za("0x7c")](o[za("0x1")]);if(s[za("0x40")])for(const r of this._suggestions[za("0x29")]()){if(r[za("0x51")]||!r[za("0xe9")])continue;if(za("0x12")!=r[za("0x72")])continue;const i=r.getFirstRange();if(i.start[za("0x6")]!=i[za("0x87")][za("0x6")]&&i[za("0x87")].isEqual(o[za("0x97")])){const o=t[za("0x89")][za("0x57")](i[za("0x68")],s);e[za("0x9e")](r[za("0xdc")](),{range:o}),n=!0}}}return n})),t[za("0x89")][za("0x98")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0x9c")]),n=this[za("0x30")].get(t);n&&n.addMarkerName(e[za("0x9c")])}})),t[za("0x89")][za("0xd7")].on(za("0x6a"),(()=>{const e=Array[za("0x10")](t.model[za("0xd7")][za("0xd3")][za("0xed")]())[za("0xab")]((t=>za("0x9b")===this[za("0xd2")](t[za("0x9c")]).group));if(0===e[za("0x1")])return;e.sort(((t,e)=>{const n=t[za("0xd8")][za("0xe6")],o=e[za("0xd8")][za("0xe6")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x68")].isBefore(o[za("0x68")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xd2")](t);if(null===s[za("0xe6")]){const e=this[za("0x66")](t);o[za("0xe5")](e)}else{const t=this[za("0x30")][za("0x5a")](e);null!==s[za("0xf3")]||t[za("0xe9")]?(n[za("0xe5")](t[za("0x105")]),o[za("0xe5")](t)):this[za("0xce")](t)}}o.size>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x11")](za("0x11c"),t)})),t[za("0x89")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0x30")][za("0x99")])return;if(!o.isDocumentOperation)return;if(o[za("0x26")][za("0xf7")]||!o[za("0x26")].isLocal)return;let s,r;switch(o[za("0x72")]){case za("0x76"):s=t[za("0x89")][za("0x106")](o.position),r=s[za("0x7c")](o[za("0xe2")]);break;case za("0x103"):s=t[za("0x89")].createPositionAt(o[za("0xd1")]),r=t.model[za("0x106")](o[za("0x9d")]);break;case"move":s=t[za("0x89")][za("0x106")](o[za("0xfc")]),r=s[za("0x7c")](o[za("0xe2")]);break;default:return}const i=t.model.createRange(s,r);t[za("0x89")].change((()=>{for(const{suggestion:t,meta:e}of this[za("0x2a")](i)){if(t.isMultiRange)continue;if(za("0x52")==t[za("0x72")])continue;const n=t[za("0xd8")]&&t[za("0xd8")][za("0x11f")];(za("0x12")!=t[za("0x72")]||za("0x103")==o[za("0x72")]&&!n)&&(e[za("0x61")]||za("0x2")==t[za("0x72")]&&e[za("0x107")]||t[za("0x118")]()[za("0x7a")](i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:za("0x0")}),t[za("0x89")].on(za("0xdd"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0xb4")])return;if(this[za("0xa6")])return;if(!this.trackChangesCommand[za("0x13")])return;if(o[za("0xb6")])return;const r=t[za("0x89")][za("0x67")],{start:i,end:x}=o[za("0x118")](),a=i[za("0x15")]&&r.isLimit(i[za("0x15")])?null:r[za("0x132")](i,za("0xee")),c=x[za("0x17")]&&r[za("0x23")](x[za("0x17")])?null:r[za("0x132")](x,za("0xcf")),l=t[za("0x89")][za("0x57")](a?a.start:i,c?c[za("0x87")]:x);t[za("0x89")][za("0x64")]((e=>{this[za("0xe4")](l);const n=t[za("0x89")].schema.getNearestSelectionRange(l[za("0x68")]);o.is(za("0xd9"))?e[za("0x125")](n):o[za("0x77")](n)})),e[za("0x56")]()}),{priority:e.priorities[za("0x46")]+10}),t[za("0x89")].on(za("0x7"),((e,n)=>{const o=n[n[za("0x1")]-1];o&&o.forceDefaultExecution||this[za("0xa6")]||this[za("0x14")][za("0x13")]&&(t[za("0x89")][za("0x64")]((()=>{let o=t[za("0x89")][za("0x7")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x94")]=o[za("0xef")]();const s=o.end[za("0x17")],r=t[za("0x89")][za("0x67")];s&&r[za("0x65")](s)&&!r[za("0x41")](s)&&(o=t.model[za("0x57")](o[za("0x68")],t[za("0x89")][za("0x106")](s,za("0x87")))),this[za("0x12a")](o)})),e[za("0x56")]())}),{priority:za("0x6f")}),this[za("0x112")][za("0x84")][za("0xe5")]("trackChanges",this[za("0x14")]),this[za("0x54")]("trackChanges");const o=new p(t,this._suggestions);t[za("0x84")][za("0xe5")]("acceptSuggestion",o),this[za("0x54")]("acceptSuggestion");const s=new C(t,this[za("0x30")]);t[za("0x84")][za("0xe5")](za("0x39"),s),this[za("0x54")](za("0x39")),t[za("0x84")][za("0xe5")](za("0x8c"),new F(t,o,this[za("0x30")])),this[za("0x54")](za("0x8c")),t.commands[za("0xe5")](za("0x128"),new F(t,s,this._suggestions)),this[za("0x54")](za("0x128")),t[za("0x84")][za("0xe5")]("acceptSelectedSuggestions",new U(t,o,this[za("0x30")])),this[za("0x54")]("acceptSelectedSuggestions"),t[za("0x84")].add("discardSelectedSuggestions",new U(t,s,this[za("0x30")])),this[za("0x54")](za("0x4d"));const r=t[za("0x3d")].get(za("0x121"));this[za("0xc1")](r,"addComment",((t,{threadId:e})=>{const n=this[za("0x30")][za("0x5a")](e);n&&n[za("0x4c")]&&1===n.commentThread[za("0x1")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:za("0x10d")}),this[za("0xc1")](r,za("0xd0"),((t,{threadId:e})=>{const n=this[za("0x30")][za("0x5a")](e);n&&n[za("0x4c")]&&!n[za("0x4c")][za("0x1")]&&this[za("0xa7")](e,{hasComments:!1})}),{priority:"low"})}set adapter(t){if(this[za("0xfa")])throw new e.CKEditorError(za("0x85"),this);this[za("0xfa")]=t}get adapter(){return this[za("0xfa")]}[za("0x6e")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x30")][za("0x29")]())t&&!e.isInContent||n[za("0x2f")](e);return e?n[za("0x38")]((t=>t[za("0x9a")]())):n}getSuggestion(t){const n=this[za("0x30")][za("0x5a")](t);if(!n)throw new e.CKEditorError(za("0xaf"),this);return n}[za("0xc4")](t){return this[za("0x30")][za("0xac")](t)}[za("0x9")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x72")][za("0x103")](":"),i=this[za("0x30")].get(n)||this[za("0x81")](s,r,n,e,o);if(this._addThreadToSuggestion(i),this[za("0x124")](i,s,r||null,e),i[za("0x34")]=t[za("0x34")],o&&o[za("0x1a")]){const t=o[za("0x1a")],e=this[za("0xfd")](t[za("0x19")]);i[za("0xc6")]=t[za("0x34")],i[za("0x5")]=e,i.isExternal=!0}else i[za("0xc6")]=t[za("0x34")];switch(t.data&&(i.data=t.data),t[za("0x31")]&&(i[za("0x31")]=t[za("0x31")]),this[za("0xfa")]&&this[za("0xfa")][za("0xb3")]||(i._saved=!0),this._suggestionState[za("0x5a")](i)){case"notReady":this[za("0x22")][za("0xf5")](i,za("0x11b"));break;case"markerReady":i.isInContent?(this[za("0x22")].set(i,za("0x58")),this.fire(za("0xec"),i)):this._suggestionState.set(i,za("0xc9"))}return i}[za("0x123")](t){this[za("0xb4")]((()=>{this.editor[za("0x89")][za("0x64")]((()=>{for(const e of t[za("0xf6")]())e[za("0x4")]()}))}))}[za("0x39")](t){this[za("0xb4")]((()=>{this[za("0x112")][za("0x89")].change((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0x10f")]()}))}))}[za("0x54")](t,n){const o=this[za("0x112")][za("0x84")][za("0x5a")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this._enabledCommands.add(o),n&&o.on(za("0x11a"),((t,e)=>{this[za("0x14")].value&&(this[za("0xa6")]||e[za("0x1")]>0&&e[e[za("0x1")]-1]&&e[e.length-1].forceDefaultExecution||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[za("0x56")]()))}),{priority:za("0x6f")})}[za("0xb4")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[za("0x37")](o,this),n}markInsertion(t,n=null,o={}){if(t[za("0xb6")])return null;const s=this[za("0x112")][za("0x3d")][za("0x5a")](za("0x3e")).me;for(const{suggestion:e,meta:o}of this[za("0x2a")](t,"insertion"))if(o.isOwn){if(!o[za("0x5d")]){if(!this._mergeNestedSuggestions&&o[za("0x61")])continue;return e}if(n==e[za("0xba")]){const n=e[za("0x118")]();return n[za("0x68")][za("0x2e")](t[za("0x87")])?this[za("0x47")](e,this[za("0x44")][za("0x57")](t[za("0x68")],n[za("0x87")])):this[za("0x47")](e,this[za("0x44")][za("0x57")](n[za("0x68")],t[za("0x87")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:za("0x2"),a=this[za("0x90")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x83")](x,r,i,t),a}[za("0x126")](t,n=za("0x11d"),o={}){const s=this[za("0x112")][za("0x3d")][za("0x5a")](za("0x3e")).me,r=this[za("0x10c")][za("0xfb")]("insertion",n,za("0x101"));for(const e of this[za("0x6e")]())if(e[za("0x5")].id==s.id&&za("0x2")==e[za("0x72")]&&e[za("0xba")]==n&&(r(e.getRanges(),t)||r(t,e.getRanges()))){for(const n of t)e[za("0x110")](n);return e}if(this[za("0x43")])for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,za("0x2"))){if(!o[za("0x107")])continue;let e=!0;for(const o of n[za("0xc5")]())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a="insertion:"+n,c=this[za("0x90")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x83")](a,i,x,e,Zo[za("0xda")]());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[za("0xb6")])return null;if(za("0xae")===this._trackFormatChanges){const e=this._suggestionFactory[za("0xfb")](za("0x52"),o,za("0x4"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[za("0x112")].plugins.get(za("0x3e")).me,i=[];if(za("0x12d")!==this[za("0xd")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x2")))n[za("0x107")]&&!n[za("0xc0")]&&i.push(...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x4a")](o);e&&n[za("0x2f")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x1")];){const o=n[e][za("0x6c")](t);n[za("0xe8")](e,1,...o),e+=o.length}}return n}(t,i);x.length&&this[za("0x44")][za("0x64")]((()=>{for(const t of x){const e=this[za("0x10c")].getSuggestionCallback(za("0x52"),o,za("0x4"));this[za("0xb4")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[za("0x87")];for(const{suggestion:e,meta:n}of this[za("0x2a")](t,"formatInline")){if(!n[za("0x107")])continue;if(e[za("0xba")]!=o)continue;const s=e.getFirstRange();if(s.containsRange(t,!0))return null;x=x[za("0x5f")](s[za("0x68")])?x:s.start,a=a[za("0x102")](s[za("0x87")])?a:s[za("0x87")],i?s.start[za("0x5f")](i[za("0x118")]()[za("0x68")])?(i[za("0xb7")](),i=e):e[za("0xb7")]():i=e}const c=this._model[za("0x57")](x,a);if(i)this[za("0x47")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x90")]({id:t,type:za("0x59")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x83")](za("0x59")+o,t,i,c)}}return null}[za("0x120")](t,n,o=[],s=null,r={}){n[za("0xf")]||(n[za("0xf")]=n[za("0x3a")]),n.multipleBlocks=t.is(za("0x10b")),s=s||$a(n);const i=o[za("0x38")]((t=>Qa(t,this[za("0x44")]))),x=t.is("range")?t:Qa(t,this[za("0x44")]);if(za("0xae")===this[za("0xd")]){const t=this[za("0x10c")][za("0xfb")](za("0x12"),s,"accept");return this[za("0xb4")]((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0x12d")!==this[za("0xd")]){const t=this[za("0x10c")][za("0xfb")](za("0x12"),s,"accept");return this[za("0xb4")]((()=>t([x],n,r))),null}let c=null,l=x.start,u=x[za("0x87")];for(const{suggestion:t,meta:e}of this[za("0x2a")](x,za("0x12"))){if(!e[za("0x107")]||e.isNextTo||e.containsRangeInObject||e[za("0xc0")])continue;if(t.data[za("0xf")]!=n.formatGroupId)continue;const o=t[za("0x118")]();if(t[za("0xba")]==s){if(o[za("0x7a")](x,!0))return null;l=l[za("0x5f")](o[za("0x68")])?l:o[za("0x68")],u=u[za("0x102")](o[za("0x87")])?u:o.end,c?o[za("0x68")].isBefore(c[za("0x118")]().start)?(c[za("0xb7")](),c=t):t[za("0xb7")]():c=t}else{const e=x[za("0x4a")](o);this[za("0x6b")](t,e)}}const d=this[za("0x112")][za("0x3d")].get(za("0x3e")).me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0x47")](c,this[za("0x44")][za("0x57")](l,u)),c;{const t=this[za("0x90")]({id:g,type:za("0xd6")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x83")](za("0xd6")+s,g,m,this[za("0x44")][za("0x57")](l,u)),t}}[za("0x60")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[za("0xf")]=n[za("0x3a")]);const i=t[0];n[za("0x11f")]=i.is(za("0x10b")),s=s||$a(n);const x=o.map((t=>Qa(t,this[za("0x44")]))),a=i.is(za("0x10b"))?t:t[za("0x38")]((t=>Qa(t,this[za("0x44")])));if(za("0xae")===this[za("0xd")]){const t=this[za("0x10c")][za("0xfb")](za("0x12"),s,za("0x4"));return this[za("0xb4")]((()=>t(a,n,r))),null}x[za("0x2f")](...a);let c=!0;for(const t of x)if(!this[za("0xde")](t)){c=!1;break}if(c&&"always"!==this[za("0xd")]){const t=this[za("0x10c")].getSuggestionCallback(za("0x12"),s,za("0x4"));return this[za("0xb4")]((()=>t(a,n,r))),null}const l=this[za("0x112")][za("0x3d")].get(za("0x3e")).me;for(const t of this[za("0x6e")]()){if(t[za("0x5")].id!=l.id)continue;if(za("0x12")!=t[za("0x72")]||t[za("0xd8")].formatGroupId!=n[za("0xf")])continue;const e=t[za("0xba")]==s;for(let n=0;n<a[za("0x1")];n++){const o=a[n];for(const s of t[za("0x95")]()){const r=s.getRange();if(o[za("0x2e")](r)){e?(a[za("0xe8")](n,1),n--):t.removeMarker(s[za("0x9c")]);break}}}}if(0==a.length)return null;const u=this[za("0x10c")][za("0xfb")](za("0x12"),s,"join");for(const t of this[za("0x6e")]())if(t.author.id==l.id&&za("0x12")==t.type&&t[za("0xd8")][za("0xf")]==n[za("0xf")]&&t[za("0xba")]==s&&(u(t[za("0xc5")](),a)||u(a,t[za("0xc5")]()))){for(const e of a)t[za("0x110")](e);return t}const d=(0,e.uid)(),g=l.id,m="formatBlock:"+s,f=this._setSuggestionData({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x83")](m,d,g,t,Zo[za("0xda")]());return f}[za("0xe4")](t,n=null,o={}){if(t[za("0xb6")])return null;const s=this[za("0x112")][za("0x3d")][za("0x5a")](za("0x3e")).me,r=new i.LiveRange(t[za("0x68")],t[za("0x87")]);for(const{suggestion:t,meta:e}of this[za("0x2a")](r,"insertion"))if(e.isOwn&&!e[za("0x5d")])if(t.isMultiRange){const e=t.getRanges()[za("0xab")]((t=>za("0x45")!=t[za("0x109")][za("0xa3")]));if(e.every((t=>r[za("0x7a")](t,!0)))&&t.discard(),e[za("0xa8")]((t=>t.containsRange(r,!0)))){const t=this[za("0x10c")][za("0xfb")](za("0xb8"),n,"accept");return this[za("0xb4")]((()=>t([r],null,o))),null}}else{const e=r[za("0x4a")](t[za("0x118")]());null!==e&&t._onDiscard([e],null,o)}if(r[za("0x129")](),r[za("0xb6")]||za("0x45")==r[za("0x109")][za("0xa3")])return null;let x=null,a=r[za("0x68")],c=r[za("0x87")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0xb8")))if(e.isOwn)if(t[za("0x51")]&&this[za("0x43")]){let e=!0;for(const n of t.getRanges()){if(n[za("0x7a")](r,!0))return t;r.containsRange(n)||(e=!1)}e&&t.discard()}else{const n=t[za("0x118")]();if(n[za("0x7a")](r,!0)){if(!this[za("0x43")]&&e[za("0x61")])continue;return t}a=a.isBefore(n[za("0x68")])?a:n[za("0x68")],c=c[za("0x102")](n[za("0x87")])?c:n[za("0x87")],x?n.start.isBefore(x[za("0x118")]()[za("0x68")])?(x.removeMarkers(),x=t):t[za("0xb7")]():x=t}if(x)return this._setSuggestionRange(x,this._model[za("0x57")](a,c)),x;{const t=(0,e.uid)(),r=this._model[za("0x57")](a,c),i=s.id,x=n?za("0x113")+n:za("0xb8"),l=this[za("0x90")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x83")](x,t,i,r),l}}markMultiRangeDeletion(t,n=za("0x11d"),o={}){const s=this.editor[za("0x3d")][za("0x5a")]("Users").me,r=t[za("0x38")]((t=>new i.LiveRange(t[za("0x68")],t[za("0x87")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x2a")](t,za("0x2")))n.isOwn&&!n[za("0x5d")]&&x[za("0xe5")](e);for(const e of x)if(e[za("0x51")]){const s=e[za("0xc5")]();if((!e.attributes||!e[za("0x31")][za("0x104")])&&s[za("0x100")]((t=>r.some((e=>e[za("0x7a")](t,!0)))))&&e[za("0x10f")](),r.every((t=>s[za("0xa8")]((e=>e[za("0x7a")](t,!0)))))){const e=this._suggestionFactory[za("0xfb")](za("0xb8"),n,"accept");return this[za("0xb4")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r.some((e=>e[za("0x7a")](t,!0)))&&e[za("0x10f")](),r[za("0x100")]((e=>t[za("0x7a")](e,!0)))){const t=this[za("0x10c")][za("0xfb")](za("0xb8"),n,"accept");return this[za("0xb4")]((()=>t(r,null,o))),null}}const a=this[za("0x10c")][za("0xfb")]("deletion",n,"join");let c=null;for(const t of this[za("0x6e")]())if(t[za("0x5")].id==s.id&&t[za("0xe9")]&&"deletion"==t[za("0x72")]&&t[za("0xba")]==n&&(a(t[za("0xc5")](),r)||a(r,t[za("0xc5")]())))if(c){if(t.commentThread&&t[za("0x4c")][za("0x1")])continue;for(const e of t.getRanges())c[za("0xc")](e)||c[za("0x110")](e);t[za("0xb7")]()}else{c=t;for(const e of r)t[za("0xc")](e)||t[za("0x110")](e)}if(c)return c;x[za("0x86")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x2a")](t,za("0xb8")))n[za("0x107")]&&x[za("0xe5")](e);for(const t of x){const e=t[za("0xc5")]();if((!o||!o.skipNestingCheck)&&r.every((t=>e[za("0xa8")]((e=>e[za("0x7a")](t,!0))))))return t;(!t[za("0x31")]||!t[za("0x31")][za("0x104")])&&e[za("0x100")]((t=>r.some((e=>e[za("0x7a")](t,!0)))))&&t[za("0x10f")]()}const l=(0,e.uid)(),u=s.id,d=za("0x113")+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[za("0x129")](),t[za("0xb6")]||za("0x45")==t[za("0x109")].rootName||this._addSuggestionMarker(d,l,u,t,Zo[za("0xda")]());return g}[za("0x47")](t,e){const n=t[za("0xdc")]();this[za("0x44")].change((t=>{t.updateMarker(n,{range:e})}))}[za("0xf8")](t){const e=t.id,n=this[za("0x112")][za("0x75")].get(za("0x12f"));this._commentsRepository.hasCommentThread(e)||this[za("0x1d")][za("0xff")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x1d")][za("0x2d")](e);o[za("0x7e")](za("0x131")),o[za("0x131")]=!1,t[za("0x4c")]=o}_checkSuggestionCorrectness(t,n,o,s){if(t.type!=n||t[za("0xba")]!=o||t[za("0x3f")].id!=s)throw this[za("0x112")][za("0x88")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(za("0x7d"),this)}_cutOutSuggestionMarker(t,n){const o=t.getFirstRange();if(n[za("0x2e")](o))t.removeMarkers();else if(o[za("0x7a")](n)){const s=this[za("0x44")][za("0x106")](n[za("0x68")][za("0x17")],za("0x87"));this._setSuggestionRange(t,this[za("0x44")][za("0x57")](o[za("0x68")],s));const r=(0,e.uid)(),i=t[za("0x3f")].id,x=t[za("0x72")]+":"+t[za("0xba")];this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0xd8")],attributes:t[za("0x31")]});const a=this[za("0x44")][za("0x106")](n[za("0x87")][za("0x6")],za("0x8e")),c=this[za("0x44")][za("0x57")](a,o[za("0x87")]);this._addSuggestionMarker(x,r,i,c)}else if(o[za("0x3b")](n[za("0x68")])){const e=this[za("0x44")][za("0x106")](n.start[za("0x17")],za("0x87"));this[za("0x47")](t,this[za("0x44")][za("0x57")](o[za("0x68")],e))}else{const e=this[za("0x44")].createPositionAt(n[za("0x87")][za("0x6")],"after");this[za("0x47")](t,this[za("0x44")][za("0x57")](e,o[za("0x87")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[za("0x2a")](t,za("0x2"))){if(!n.isOwn)continue;const o=e[za("0xc5")]();for(const e of o)if(!t[za("0x6c")](e)[za("0x1")])return!0}return!1}[za("0x24")](t){const n=this[za("0x112")].plugins[za("0x5a")](za("0x3e"))[za("0x134")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[za("0xfd")](t){const e=this[za("0x112")][za("0x3d")][za("0x5a")](za("0x3e")),n=(0,r.hashObject)(za("0xe1")+t);return e[za("0x134")](n)||e.addUser({id:n,name:t})}[za("0x81")](t,e,n,o,s){const r=this[za("0x24")](o),i=this._suggestionFactory[za("0x36")](t,e,n,r,s,(t=>this[za("0xa7")](n,{attributes:t})));return this[za("0xc1")](i,za("0x4"),(()=>{this[za("0xa7")](n,{state:za("0x6d")})}),{priority:za("0x6f")}),this[za("0xc1")](i,za("0x10f"),(()=>{this[za("0xa7")](n,{state:za("0xf9")})}),{priority:za("0x6f")}),this[za("0x30")].set(n,i),this._suggestionState[za("0xf5")](i,"notReady"),i}[za("0xd2")](t){const e=t[za("0x103")](":");return{group:e[0],type:e[1],subType:e[za("0x1")]>=5?e[2]:null,id:e[za("0x1")]<5?e[2]:e[3],authorId:e[za("0x1")]<5?e[3]:e[4],markerCount:6==e[za("0x1")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t[za("0x118")](),r=s[za("0x68")],i=s.end;this._setSuggestionRange(t,this[za("0x44")].createRange(r,n));const x=(0,e.uid)(),a=t.creator.id,c=t[za("0x72")]+(t.subType?":"+t.subType:"");this[za("0x90")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x31")],data:t.data}),za("0x12")==t.type&&(o=this[za("0x44")].createPositionBefore(o[za("0x6")])),this[za("0x83")](c,x,a,this[za("0x44")].createRange(o,i))}[za("0x2a")](t,e=null){const n=[],o=this[za("0x44")][za("0x67")],s=this.editor.plugins[za("0x5a")](za("0x3e")).me;for(const r of this[za("0x6e")]())if(r[za("0xe9")]&&(!e||r[za("0x72")]==e))for(const e of r[za("0xc5")]()){const i=t.start[za("0x2e")](e[za("0x87")])||t[za("0x87")][za("0x2e")](e[za("0x68")]);if(i||t.getIntersection(e)){const x=t.containsRange(e)&&Ka(o,e.start,t),a=e.containsRange(t)&&Ka(o,t[za("0x68")],e);n[za("0x2f")]({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x83")](t,e,n,o,s){this[za("0x44")][za("0x64")]((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x2b")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xce")](t){const e=t.previous,n=t[za("0x5c")];t[za("0xeb")]=null,null!=e&&(e.next=null),t.next=null,null!=n&&(n[za("0xeb")]=null),"ready"==this._suggestionState[za("0x5a")](t)&&(this[za("0x22")][za("0xf5")](t,za("0xc9")),this.fire("suggestionUnloaded",t,e,n))}[za("0x90")](t){const n=t.id,o=this.addSuggestionData(t);if(this._adapter&&this[za("0xfa")][za("0xb3")]){const s=this[za("0x112")][za("0x3d")][za("0x5a")](za("0x1f")),r=o[za("0x1e")],i=o[za("0xba")]?o[za("0x72")]+":"+o[za("0xba")]:o[za("0x72")],x=this[za("0x112")][za("0xd5")],a=s.add(Yo(x,za("0xbf"))),c={id:n,type:i,hasComments:r,data:t[za("0xd8")]||null,originalSuggestionId:t[za("0x91")]||null,attributes:o[za("0x31")]};this[za("0xfa")][za("0xb3")](c).then((t=>{o[za("0x116")]=!0,s[za("0x127")](a),t&&t[za("0x34")]&&(this[za("0x30")][za("0x5a")](n).createdAt=t[za("0x34")])})).catch((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[za("0x112")][za("0x89")][za("0xa2")]({isUndoable:!1},(()=>{o[za("0x10f")]()})),o.stopListening(),this[za("0x30")][za("0xbb")](o.id),this[za("0x22")][za("0xbb")](o),t}))}return o}[za("0xa7")](t,e){const n=this.editor[za("0x3d")][za("0x5a")](za("0x1f")),o=this.getSuggestion(t);if(this._adapter&&this[za("0xfa")][za("0xbc")])if(o[za("0x116")]){const o=n[za("0xe5")](Yo(this[za("0x112")][za("0xd5")],za("0xbf")));this._adapter[za("0xbc")](t,e)[za("0x1c")]((()=>{n[za("0x127")](o)}))}else o.on(za("0xa1"),(()=>{this._updateSuggestionData(t,e)}))}[za("0x79")](t){if(!this[za("0xfa")]||!this[za("0xfa")][za("0x117")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[za("0xfa")][za("0x117")](t)}[za("0x66")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xd2")](t),r=this[za("0x30")][za("0x5a")](e)||this[za("0x81")](n,o,e,s,{});switch(this[za("0x124")](r,n,o,s),this[za("0x22")][za("0x5a")](r)){case"notReady":this[za("0x79")](e)[za("0x1c")]((t=>{let n=Promise[za("0xb9")]();t[za("0x1e")]&&(n=this[za("0x1d")][za("0x69")]({channelId:this[za("0x112")][za("0x75")][za("0x5a")](za("0x12f")),threadId:e})),n[za("0x1c")]((()=>{this[za("0x9")](t)[za("0x116")]=!0}))})),this._suggestionState[za("0xf5")](r,za("0xb5"));break;case za("0xc9"):this[za("0xa7")](e,{state:za("0xcc")});case za("0x11b"):this[za("0x22")][za("0xf5")](r,"ready"),this[za("0x11")]("suggestionLoaded",r);break;case"ready":this[za("0x11")](za("0x11c"),r)}return r[za("0xb")](t),r}[za("0xb2")](t){const e=Array[za("0x10")](t)[za("0xab")]((t=>!t[za("0x51")])),n=this[za("0x6e")]({skipNotAttached:!0})[za("0xab")]((t=>!t[za("0x51")])),o=n.filter((e=>!t[za("0xac")](e))),s=new Map(n.map((t=>[t,this[za("0x10c")][za("0xfb")](t[za("0x72")],t[za("0xba")],za("0x122"))]))),r=new Map(n[za("0x38")]((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x1")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x1")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x1")];t++){const n=e[t];!x[za("0xac")](n)&&n[za("0xeb")]&&(n[za("0xeb")].next===n&&(n[za("0xeb")][za("0x5c")]=null),n[za("0xeb")]=null),!i.has(n)&&n.next&&(n[za("0x5c")][za("0xeb")]===n&&(n[za("0x5c")].previous=null),n.next=null)}function a(t,e,n){for(let o=n;o<e[za("0x1")];o++){const n=c(t,e[o]);n&&(n[0][za("0x5c")]=n[1],n[1][za("0xeb")]=n[0],i.add(n[0]),x[za("0xe5")](n[1]))}}function c(t,e){if(t.author.id!==e[za("0x5")].id)return null;const n=s.get(t)(t,e,r[za("0x5a")](t),r[za("0x5a")](e));return n&&s.get(e)(t,e,r[za("0x5a")](t),r[za("0x5a")](e))?n[1][za("0x4c")]&&n[1][za("0x4c")][za("0x1")]?null:n:null}}[za("0xc3")](t){const e=Array[za("0x10")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0xab")]((e=>!t[za("0xac")](e))),s=new Map(e[za("0x38")]((t=>[t,this[za("0x10c")][za("0xfb")](t[za("0x72")],t[za("0xba")],"join")]))),r=new Map(n[za("0x38")]((t=>[t,t[za("0xc5")]()])));for(let t=0;t<e[za("0x1")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x1")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0x1")];i++){const o=n[i];if(o[za("0x72")]!==e[za("0x72")]||o[za("0x5")].id!==e[za("0x5")].id||o[za("0xba")]!==e[za("0xba")])continue;const x=s[za("0x5a")](e),a=r[za("0x5a")](e),c=r.get(o),l=e.commentThread&&e[za("0x4c")].length,u=o[za("0x4c")]&&o.commentThread[za("0x1")];if(!l&&x(c,a))return t[za("0x33")](o,e),r.delete(e),!0;if(!u&&x(a,c))return t._joinSuggestions(e,o),r[za("0xbb")](o),!0}return!1}}_joinSuggestions(t,e){if(t[za("0x51")])for(const n of e[za("0xc5")]())t[za("0x110")](n);else{const n=e[za("0x118")]()[za("0x87")];this._setSuggestionRange(t,this[za("0x44")][za("0x57")](t.getFirstRange()[za("0x68")],n))}e.removeMarkers()}}class Va{constructor(t){this._editor=t,this[za("0x44")]=t.model,this[za("0x108")]=new Map,this[za("0x4e")]=new Map,this._registerDefaultCallbacks()}[za("0x36")](t,e,n,o,s,r){return new Zo(this[za("0x44")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0xfb")](t,e,za("0x4"))(...n),onDiscard:(...n)=>this[za("0xfb")](t,e,za("0x10f"))(...n)})}[za("0x111")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x108")][za("0xf5")](s,o)}[za("0xfb")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x108")][za("0x5a")](o)||this[za("0x4e")][za("0x5a")](t+":"+n)}[za("0x11e")](){const t=()=>{},e=t=>{t[za("0xc2")](((t,e)=>t[za("0x68")][za("0x5f")](e.start)?1:-1)),this._model[za("0x64")]((e=>{for(const n of t){let t;t=n[za("0x87")][za("0x40")]&&n[za("0x87")].parent==n[za("0x68")][za("0x15")]?e[za("0xaa")](n[za("0x68")][za("0x15")],"on"):e[za("0xaa")](n),this[za("0x44")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x44")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x38")]((t=>(qa(t)&&(t=this._model[za("0x57")](t[za("0x87")])),t)))[za("0xab")]((t=>za("0x45")!==t[za("0x109")][za("0xa3")]));if(r[za("0x1")]<1)return;const x=Array[za("0x10")](this._model.document[za("0xf4")].getRanges())[za("0x38")]((t=>i.LiveRange[za("0x21")](t)));n[za("0x125")](r);for(const t of this._editor[za("0x84")][za("0x84")]())t[za("0x16")]();s[za("0x2f")]({forceDefaultExecution:!0}),this._editor[za("0x11a")](o,...s);const a=x.filter((t=>za("0x45")!=t[za("0x109")][za("0xa3")]));a[za("0x1")]>0&&n[za("0x125")](a);for(const t of x)t[za("0x129")]()}))},o=(t,e)=>1==t.length&&1==e[za("0x1")]&&t[0].end[za("0x2e")](e[0][za("0x68")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x44")])?[t,e]:Za(e,t,o,n,this[za("0x44")])?[e,t]:null;this._defaultCallbacks.set(za("0xdb"),t),this._defaultCallbacks.set(za("0x9f"),e),this[za("0x4e")][za("0xf5")](za("0xe0"),o),this[za("0x4e")][za("0xf5")](za("0xe7"),s),this[za("0x4e")][za("0xf5")](za("0x80"),e),this[za("0x4e")].set(za("0x55"),t),this._defaultCallbacks[za("0xf5")](za("0x7f"),o),this[za("0x4e")][za("0xf5")](za("0x35"),s),this[za("0x4e")][za("0xf5")](za("0x18"),n),this._defaultCallbacks[za("0xf5")](za("0xf0"),t),this[za("0x4e")][za("0xf5")]("formatInline:join",o),this[za("0x4e")].set("formatInline:chain",t),this[za("0x4e")].set(za("0x12c"),n),this[za("0x4e")].set(za("0x114"),t),this[za("0x4e")].set(za("0xad"),o),this[za("0x4e")][za("0xf5")](za("0xa"),t)}}function Ka(t,e,n){for(const o of e[za("0x6")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0x109")]==o)return!1;if(!n.containsItem(o))return!1;if(t[za("0x41")](o)||t[za("0x23")](o))return!0}return!1}function qa(t){return t[za("0x87")][za("0x6")]==t[za("0x68")][za("0x15")]&&t[za("0x87")][za("0x25")]}function Xa(t,e,n,o){const s=t=>!t.item.is(za("0x5e"))&&!o[za("0x41")](t.item),r=t.start.getLastMatchingPosition(s),i=t[za("0x87")][za("0xa0")](s,{direction:"backward"});return!(t[za("0x68")][za("0x2e")](r)&&t.end.isEqual(i)||(r[za("0x5f")](i)?n[za("0x9e")](e,{range:n[za("0x57")](r,i)}):n[za("0x8d")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x68")][za("0x15")];return e&&e.is("element")}function Qa(t,e){const n=e[za("0x67")][za("0x41")](t)||e.schema.isSelectable(t);return e[za("0x57")](e[za("0x106")](t,za("0x32")),n?e[za("0x119")](t):e[za("0x106")](t,za("0x87")))}function Za(t,e,n,o,s){if(n[za("0x87")][za("0x2e")](o.start))return!0;if(t.type!=e.type)return!1;if(!n.end[za("0x48")](o.start))return!1;const r=s[za("0x57")](n[za("0x87")],o[za("0x68")])[za("0x71")]();for(const t of r)if([za("0x3c"),"elementEnd"][za("0x70")](t.type)&&s[za("0x67")][za("0x23")](t.item))return!1;return!0}const Ya=["change:isDirty","getRanges","PendingActions","commentThreadController","listenTo","acceptSuggestion","canDiscard","isEnabled","plugins","commands","_editor","_pendingAction","execute","canEditAt","locale","stopListening","unbind","_discardCommand","get","discardSuggestion","model","canAccept","_acceptCommand","destroy","_removePendingAction","view","isDirty","_setPendingAction","bind"];var tc,ec;tc=Ya,ec=313,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this.view=n,this[nc("0x9")]=o,this[nc("0x10")]=t,this[nc("0x1c")]=t[nc("0xf")][nc("0x18")](nc("0xb")),this[nc("0x17")]=t.commands[nc("0x18")](nc("0x19")),this[nc("0x2")][nc("0x5")](nc("0xd")).to(this._acceptCommand,this[nc("0x17")],((t,e)=>t||e)),this.view.bind("canAccept").to(this._acceptCommand,nc("0xd"),(t=>t&&this[nc("0x10")][nc("0x1a")][nc("0x13")](e[nc("0x7")]()))),this.view[nc("0x5")](nc("0xc")).to(this[nc("0x17")],nc("0xd"),(t=>t&&this[nc("0x10")][nc("0x1a")].canEditAt(e[nc("0x7")]()))),this[nc("0x11")]=null,n[nc("0x3")]&&this[nc("0x4")](),this[nc("0xa")](n,nc("0xb"),(()=>this[nc("0xb")]())),this[nc("0xa")](n,"discardSuggestion",(()=>this[nc("0x19")]())),this[nc("0xa")](n,nc("0x6"),(()=>{n[nc("0x3")]?this[nc("0x4")]():this[nc("0x1")]()}))}[nc("0xb")](){this[nc("0x1c")][nc("0x12")](this[nc("0x1a")].id)}[nc("0x19")](){this._discardCommand[nc("0x12")](this[nc("0x1a")].id)}[nc("0x0")](){this[nc("0x2")][nc("0x16")]("isEnabled"),this[nc("0x2")][nc("0x16")](nc("0x1b")),this[nc("0x2")].unbind("canDiscard"),this[nc("0x15")](),this[nc("0x9")][nc("0x0")](),this[nc("0x11")]&&this._removePendingAction()}[nc("0x4")](){const t=Yo(this._editor[nc("0x14")],"PENDING_ACTION_SUGGESTION");this[nc("0x11")]=this[nc("0x10")][nc("0xe")][nc("0x18")](nc("0x8")).add(t)}[nc("0x1")](){null!==this[nc("0x11")]&&this._editor[nc("0xe")][nc("0x18")](nc("0x8")).remove(this._pendingAction),this[nc("0x11")]=null}}const sc=["hasDirtyComment","focus","submit","_localUser","commentsListView","length","_model","isReadOnly","destroy","CommentView","canDiscard","editorConfig","_config","descriptionParts","isActive","delegate","set","commentThreadInputView","authoredAt","element","commentThread","locale","isEnabled","editor","_createCommentThreadInputView","cancel","removeComment","_createCommentViews","setData","assign","bind","isDirty"];var rc,ic;rc=sc,ic=428,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x18")]=null,this[xc("0x5")]=null,this.set("isActive",!1),this[xc("0x4")](xc("0x6"),e[xc("0x6")]),this.bind(xc("0x6")).to(e),this[xc("0x4")](xc("0x1"),[]),this[xc("0x4")](xc("0x13"),!1),this[xc("0x4")](xc("0xa"),!1),this[xc("0x4")]("canAccept",!1),this[xc("0x4")](xc("0x1e"),!1),this[xc("0x1a")]=e,this._localUser=n,this[xc("0x0")]=o,o.disableComments?this.set(xc("0x19"),1):this[xc("0xf")]()}[xc("0x15")](){this[xc("0x7")].focus()}[xc("0x1c")](){this.commentsListView&&this[xc("0x18")][xc("0x1c")](),this[xc("0x5")]&&this[xc("0x5")][xc("0x1c")](),super[xc("0x1c")]()}_createCommentViews(){const{CommentsListView:t}=this[xc("0x0")];this.commentsListView=new t(this[xc("0x9")],this[xc("0x1a")][xc("0x8")],Object[xc("0x11")]({CommentView:this[xc("0x0")][xc("0x1d")]},this[xc("0x0")])),this.commentsListView[xc("0x3")](xc("0xe")).to(this),this[xc("0x18")].delegate("updateComment").to(this),this[xc("0x18")][xc("0x12")]("isActive").to(this),this.set(xc("0x19"),this[xc("0x18")][xc("0x19")]+1),this.bind(xc("0x19")).to(this[xc("0x18")],"length",(t=>t+1)),this[xc("0x5")]=this[xc("0xc")](),this.on(xc("0xe"),(()=>this.focus())),this[xc("0x12")]("isDirty").to(this[xc("0x18")],xc("0x14"),this[xc("0x5")].commentInputView,"value",((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[xc("0x0")],e=new t(this[xc("0x9")],this[xc("0x17")],this._config[xc("0x1f")]),n=e.commentInputView;return e[xc("0x12")]("showInput").to(this,xc("0x2"),this._model[xc("0x8")],xc("0x1b"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(xc("0x16"),((t,e)=>{this.fire("addComment",e),n[xc("0xb")][xc("0x10")]("")})),n.on(xc("0xd"),(()=>this.focus())),n[xc("0x12")]("disabledSubmit").to(this._model.commentThread,xc("0x1b")),e}}const cc=["span","descriptionParts","getTemplate","ck-annotation__main","ck-annotation","createElement","discardSuggestion","_config","disableComments","div","innerHTML","join","@external","canAccept","userView","ck-suggestion","cancel","ck-suggestion--discard","</p>","execute","Discard suggestion","commentsListView","ck-comment__external","time","getUserViewNotificationText","ck-suggestion__user","description","locale","content","extendTemplate","author","discardButton","ck-annotation__info-name","_model","fire","ck-annotation__content-wrapper","acceptSuggestion","ck-suggestion-wrapper--active","element","isEnabled","push","commentThreadInputView",'"></span>',"EXTERNAL_IMPORT_WORD_AVATAR","_createButton","children","ck-suggestion-","check","bind","commentThread","ck-suggestion__info-name","type","color","ck-annotation__info","importWord","Accept suggestion","creator","_descriptionElement","getExternalSuggestionNote","ck-suggestion__info","<p>","ck-annotation__actions","setTemplate","bindTemplate","isActive","ck-suggestion__main","map","EXTERNAL_AVATAR","innerText","source","name","ck-suggestion__actions","isExternal","acceptButton","ck-comment__info-time","querySelector","ck-annotation__info-time","authoredAt","split","render","ck-suggestion--accept","set","ck-suggestion--disabled-comments"];var lc,uc;lc=cc,uc=206,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[dc("0x29")]("type",""),this[dc("0x8")](dc("0xb")).to(this,dc("0x2c"),(t=>t&&t[0]?t[0].type:"")),this.bind(dc("0x45")).to(this,dc("0x2c"),this,dc("0x18"),((t,e)=>{let n="";for(const e of t)n+=dc("0x14")+mc(e[dc("0x47")],e[dc("0xc")])+dc("0x3d");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[dc("0x21")]=this._createButton(Yo(e,dc("0xf")),t.icons[dc("0x7")],dc("0x28"),dc("0x4f"),"sw"),this.acceptButton[dc("0x8")](dc("0x52")).to(this,dc("0x38")),this.discardButton=this[dc("0x4")](Yo(e,dc("0x3f")),t.icons[dc("0x3b")],dc("0x3c"),dc("0x31"),"sw"),this.discardButton[dc("0x8")](dc("0x52")).to(this,"canDiscard"),this[dc("0x39")]=new r.UserView(e,this[dc("0x4c")][dc("0x49")],this.getUserViewNotificationText()),this[dc("0x39")][dc("0x48")]({attributes:{class:[dc("0x44"),"ck-annotation__user"]}}),this[dc("0x16")](this[dc("0x2d")]())}getTemplate(){const t=this[dc("0x17")],e=[{tag:dc("0x34"),attributes:{class:[dc("0x13"),dc("0xd")]},children:[{tag:dc("0x2b"),children:[{text:this[dc("0x39")][dc("0x1e")]}],attributes:{class:[dc("0xa"),dc("0x4b")]}},{tag:dc("0x42"),attributes:{datetime:t.to(dc("0x25")),class:[dc("0x22"),dc("0x24")]},children:[{text:t.to(dc("0x25"),(t=>this[dc("0x32")].formatDateTime(t)))}]}]},{tag:dc("0x34"),attributes:{class:[dc("0x1f"),dc("0x15")]},children:[this[dc("0x21")],this[dc("0x4a")]]},{tag:dc("0x34"),attributes:{class:[dc("0x4e")]}}];this[dc("0x4c")].isExternal&&e[dc("0x0")]({tag:dc("0x34"),attributes:{class:[dc("0x41")]},children:[{text:this[dc("0x12")]()}]});const n={tag:dc("0x34"),attributes:{class:["ck-suggestion-wrapper",t.if(dc("0x18"),dc("0x50")),t.to(dc("0xb"),(t=>dc("0x6")+t)),this._config[dc("0x33")]&&dc("0x2a")],"data-suggestion-id":this[dc("0x4c")].id,"data-thread-id":this._model[dc("0x9")].id,"data-author-id":this[dc("0x4c")][dc("0x49")].id,tabindex:-1},children:[{tag:dc("0x34"),attributes:{class:[dc("0x3a"),dc("0x2f")]},children:[this[dc("0x39")],{tag:dc("0x34"),attributes:{class:[dc("0x19"),dc("0x2e")]},children:e}]}]};return this[dc("0x40")]&&this[dc("0x1")]&&n[dc("0x5")][dc("0x0")](this[dc("0x40")],this[dc("0x1")]),n}[dc("0x27")](){super[dc("0x27")](),this[dc("0x11")]=this[dc("0x51")][dc("0x23")](".ck-annotation__content-wrapper"),this[dc("0x11")][dc("0x35")]=this[dc("0x45")],this.on("change:description",((t,e,n)=>{this._descriptionElement[dc("0x35")]=n}))}[dc("0x4")](t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[dc("0x29")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i.extendTemplate({attributes:{class:n}}),i.on(dc("0x3e"),(()=>{this[dc("0x4d")](o,this[dc("0x4c")].id)})),i}[dc("0x12")](){return dc("0xe")===this[dc("0x4c")].attributes[dc("0x37")][dc("0x1d")]?Yo(this.locale,"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[dc("0x46")],"EXTERNAL_SUGGESTION")}[dc("0x43")](){return this[dc("0x4c")][dc("0x20")]?dc("0xe")===this._model.attributes[dc("0x37")][dc("0x1d")]?Yo(this[dc("0x46")],dc("0x3"),this._model[dc("0x10")][dc("0x1e")]):Yo(this.locale,dc("0x1b"),this[dc("0x4c")][dc("0x10")][dc("0x1e")]):null}}function mc(t,e){let n="";return n+=t[dc("0x26")]("*")[dc("0x1a")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+fc(t)+"</span>":fc(t)))[dc("0x36")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e.value+'" title="'+e.title+dc("0x2")),n}function fc(t){const e=document[dc("0x30")](dc("0x2b"));return e[dc("0x1c")]=t,e[dc("0x35")]}const hc=["activeMarkers","activeAnnotations","addSourceCollector","_suggestionToController","actionView","get","separator","getJoined","locale","type","discardButton","suggestionLoaded","add","CommentsRepository","createAnnotationView","focus","addComment","config","comments.maxCommentCharsWhenCollapsed","_destroyController","editing","suggestionChanged","toMany","delete","trackChanges","switchbutton","bind","commentThread","pluginName","arrowView","_viewToController","commandName","plugins","EditorAnnotations","acceptAllSuggestions","getRanges","buttonView","CommentsUI","getDescriptions","execute","filter","view","getAllAdjacentSuggestions","values","destroy","_initializeController","_descriptionFactory","Discard all suggestions","createAnnotation","_handleSuggestionControllerDelayed","comments.editorConfig","suggestionUnloaded","descriptionParts","_createUIButton","requires","getSuggestion","comments.maxThreadTotalWeight","editor","length","getMarkerNames","change:previous","button","change:activeAnnotations","has","_handleControllerBuffer","reduce","commands","push","set","acceptSelectedSuggestions","TrackChangesEditing","_disableComments","isOn","Accept all suggestions","listenTo","head","Accept all selected suggestions","registerAnnotation","value","trackChanges.disableComments","acceptButton","Annotations","suggestion-","isDirty","trackChanges.SuggestionThreadView","getFirstRange","from","remove","init","Track changes","some","isInContent","define","_refreshActiveMarkers","isMultiRange","_annotationViews","model","isEnabled","mainView","_updateController","size","SuggestionThreadView","discardAllSuggestions","Discard all selected suggestions"];var pc,bc;pc=hc,bc=461,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x9")](){return[Wa,r.Users,Ec("0x48"),"Annotations",Ec("0x5c")]}static get[Ec("0x57")](){return"TrackChangesUI"}constructor(t){super(t),this._suggestionToController=new Map,this[Ec("0x59")]=new Map,this[Ec("0x32")]=new Map,this[Ec("0x13")]=new Map;const e=this.editor[Ec("0x4c")];e[Ec("0x2f")](Ec("0x27"),gc),e.define(Ec("0x22"),!1),this[Ec("0x1a")]=e[Ec("0x40")](Ec("0x22"))}[Ec("0x4")](t,e){0===this[Ec("0x13")][Ec("0x37")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x13")]){const n=this._suggestionToController[Ec("0x12")](t);n||e?n&&e&&this[Ec("0x4e")](t):this[Ec("0x0")](t)}this.editor[Ec("0x5b")][Ec("0x40")](Ec("0x5c")).refreshSelectedViews(),this[Ec("0x30")](),this[Ec("0x13")].clear()}),10),this[Ec("0x13")][Ec("0x17")](t,e)}[Ec("0x2b")](){const t=this.editor,e=t[Ec("0x5b")][Ec("0x40")](Ec("0x19")),n=t.plugins[Ec("0x40")](Ec("0x24")),o=t[Ec("0x5b")].get(Ec("0x5c")),s=t[Ec("0x5b")][Ec("0x40")](Ec("0x48"));t.ui.componentFactory[Ec("0x47")]("trackChanges",(t=>this[Ec("0x8")](t))),o[Ec("0x3d")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x29")](this[Ec("0x3e")])){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t[Ec("0x2e")])continue;if(t[Ec("0x31")]){s[Ec("0x16")](...t[Ec("0x5e")]());continue}const e=t[Ec("0x28")]();if(s.length>0){const t=s[0][Ec("0x42")](e);if(t){s[0]=t;continue}}s[Ec("0x16")](e)}t[Ec("0x16")]([n[Ec("0x64")],s])}return t})),this.listenTo(e,Ec("0x46"),((t,e)=>{this.listenTo(e,Ec("0xf"),((t,n,o,s)=>{e[Ec("0x2e")]&&(null==o?(this[Ec("0x36")](s[Ec("0x1e")]),this[Ec("0x4")](e,!1)):(this[Ec("0x36")](o[Ec("0x1e")]),this[Ec("0x4")](e,!0)))})),null===e.previous?this[Ec("0x4")](e,!1):this._updateController(e[Ec("0x1e")])})),this.listenTo(e,Ec("0x6"),((t,e,n)=>{this.stopListening(e,Ec("0xf")),this[Ec("0x13")][Ec("0x52")](e);const o=n?n[Ec("0x1e")]:e,s=this._suggestionToController[Ec("0x40")](o);null!==n&&this._updateController(o),null===n&&s&&this[Ec("0x4e")](e)})),this[Ec("0x1d")](e,Ec("0x50"),((t,e)=>{this[Ec("0x36")](e)})),this[Ec("0x1d")](n,Ec("0x11"),(()=>{this._refreshActiveMarkers()})),this.listenTo(s,Ec("0x4b"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Ec("0xa")](n);this[Ec("0x3e")][Ec("0x40")](s)[Ec("0x64")][Ec("0x4a")]()}),{priority:"lowest"})}_refreshActiveMarkers(){const t=this[Ec("0xc")].plugins[Ec("0x40")](Ec("0x24")),e=this[Ec("0xc")][Ec("0x5b")][Ec("0x40")](Ec("0x19")),n=Array[Ec("0x29")](t[Ec("0x3c")],(t=>t.innerView))[Ec("0x63")]((t=>this._viewToController.has(t))),o=[];for(const t of n){const e=this[Ec("0x59")][Ec("0x40")](t).model[Ec("0x65")]();o[Ec("0x16")](...e[Ec("0x14")](((t,e)=>[...t,...e[Ec("0xe")]()]),[]))}e[Ec("0x3b")]=o}[Ec("0x8")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0xc")][Ec("0x15")][Ec("0x40")](Ec("0x53")),r=Yo(t,Ec("0x2c"));n.buttonView[Ec("0x17")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x5f")][Ec("0x55")](Ec("0x1b")).to(o,Ec("0x21")),n.buttonView.on(Ec("0x62"),(()=>{o.execute(),this[Ec("0xc")][Ec("0x4f")][Ec("0x64")][Ec("0x4a")]()}));const i=new e.Collection,x=[{type:Ec("0x54"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:Ec("0x41")},{type:Ec("0x10"),model:{withText:!0,label:Yo(t,Ec("0x1c")),commandName:Ec("0x5d")}},{type:Ec("0x10"),model:{withText:!0,label:Yo(t,Ec("0x1f")),commandName:Ec("0x18")}},{type:Ec("0x10"),model:{withText:!0,label:Yo(t,Ec("0x2")),commandName:Ec("0x39")}},{type:Ec("0x10"),model:{withText:!0,label:Yo(t,Ec("0x3a")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:"separator"};if(t[Ec("0x33")]){const n=new s.Model(t[Ec("0x33")]),o=this[Ec("0xc")][Ec("0x15")][Ec("0x40")](n[Ec("0x5a")]);n[Ec("0x55")]("isOn","isEnabled").to(o,Ec("0x21"),Ec("0x34")),e={type:t[Ec("0x44")],model:n}}i[Ec("0x47")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x63")]((t=>null!=t.model)).map((t=>this[Ec("0xc")][Ec("0x15")][Ec("0x40")](t[Ec("0x33")][Ec("0x5a")]))),c=n.buttonView;return c.actionView.unbind("isEnabled"),c[Ec("0x58")].unbind("isEnabled"),c[Ec("0x3f")][Ec("0x55")](Ec("0x34")).to(o,Ec("0x34")),c[Ec("0x58")].bind(Ec("0x34"))[Ec("0x51")](a,"isEnabled",((...t)=>t[Ec("0x2d")]((t=>t)))),n.on(Ec("0x62"),(t=>{this.editor[Ec("0x62")](t.source[Ec("0x5a")]),this[Ec("0xc")][Ec("0x4f")][Ec("0x64")].focus()})),n}[Ec("0x0")](t){const e=this[Ec("0xc")],n=e[Ec("0x4c")],o=e[Ec("0x5b")][Ec("0x40")](Ec("0x24")),s=e[Ec("0x5b")].get("CommentsRepository"),i=e[Ec("0x5b")][Ec("0x40")](Ec("0x5c")),x=e.plugins[Ec("0x40")](r.Users).me,a=n[Ec("0x40")](Ec("0x53"))[Ec("0x38")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x5b")][Ec("0x40")](Ec("0x60"));let u,d;this[Ec("0x32")][Ec("0x12")](t.id)?(d=this[Ec("0x32")][Ec("0x40")](t.id),u=d[Ec("0x35")]):(u=new a(e.locale,t,x,{disableComments:this[Ec("0x1a")],editorConfig:n[Ec("0x40")](Ec("0x5")),maxCommentsWhenCollapsed:n.get("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n.get(Ec("0xb")),maxCommentCharsWhenCollapsed:n[Ec("0x40")](Ec("0x4d")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x40")](Ec("0x43"))),CommentView:n.get("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x23")].on(Ec("0x62"),(()=>{e[Ec("0x4f")][Ec("0x64")].focus()})),u[Ec("0x45")].on(Ec("0x62"),(()=>{e[Ec("0x4f")][Ec("0x64")][Ec("0x4a")]()})),d=o[Ec("0x49")](this[Ec("0xc")].locale,u),d[Ec("0x55")]("isDirty").to(u,Ec("0x26")),d[Ec("0x55")](Ec("0xd")).to(u),d[Ec("0x55")]("type").to(u,"type",(t=>Ec("0x25")+t)),this[Ec("0x32")].set(t.id,d));const g=s.createCommentThreadController(t[Ec("0x56")],u),m=new oc(e,t,u,g),f=t[Ec("0x65")]()[Ec("0x63")]((t=>t[Ec("0x2e")]));u[Ec("0x7")]=e[Ec("0x5b")].get(Ec("0x19"))[Ec("0x1")][Ec("0x61")](f),this[Ec("0x3e")][Ec("0x17")](t,m),this[Ec("0x59")][Ec("0x17")](u,m);const h=o[Ec("0x3")]({view:d,target:()=>{const n=[],o=t[Ec("0x65")]()[Ec("0x63")]((t=>t[Ec("0x2e")]));for(const t of o)n.push(...t.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x4f")],n)},type:()=>Ec("0x25")+m[Ec("0x64")][Ec("0x44")]});o[Ec("0x47")](h),i[Ec("0x20")](h)}[Ec("0x4e")](t){const e=this.editor[Ec("0x5b")].get("Annotations"),n=this._suggestionToController[Ec("0x40")](t),o=n[Ec("0x64")],s=e.getByInnerView(o);s&&e[Ec("0x2a")](s),this._suggestionToController[Ec("0x52")](t),this[Ec("0x59")][Ec("0x52")](o),n[Ec("0x67")]()}_updateController(t){if(!t.isInContent||!this[Ec("0x3e")].has(t))return;const e=this[Ec("0xc")].plugins[Ec("0x40")]("TrackChangesEditing"),n=this._suggestionToController[Ec("0x40")](t),o=t[Ec("0x65")]();n[Ec("0x64")][Ec("0x7")]=e._descriptionFactory[Ec("0x61")](o)}[Ec("0x67")](){for(const t of this[Ec("0x3e")].keys())this[Ec("0x4e")](t);for(const t of this[Ec("0x32")][Ec("0x66")]())t.mainView.destroy();super.destroy()}}var Tc,Cc,yc=["adapter","plugins","getSuggestion","getSuggestions","pluginName","addSuggestion","TrackChanges","get","addSuggestionData","Comments","editor"];Tc=yc,Cc=405,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get requires(){return[Wa,_c,kc("0x0")]}static get[kc("0x6")](){return kc("0x8")}set[kc("0x2")](t){this[kc("0x1")].plugins[kc("0x9")](Wa).adapter=t}get[kc("0x2")](){return this[kc("0x1")][kc("0x3")].get(Wa)[kc("0x2")]}[kc("0x7")](t){return this[kc("0x1")][kc("0x3")].get(Wa)[kc("0xa")](t)}[kc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x1")].plugins[kc("0x9")](Wa)[kc("0x5")]({skipNotAttached:t,toJSON:e})}[kc("0x4")](t){return this[kc("0x1")][kc("0x3")][kc("0x9")](Wa)[kc("0x4")](t)}}const vc=["getDataWithAcceptedSuggestions","data","getUser","addSuggestionData","addUser","TrackChangesEditing","plugins","trackChangesData","execute","getRootNames","end","config","createElement","name","function","set","get","editorCreator","CommentsRepository","map","result","getRootsAttributes","define","create","Pagination","appendChild","trackChangesData.editorCreator","reduce","_adapter","getFullData","destroy","pluginName","document","requires","getDataWithDiscardedSuggestions","TrackChangesData","init","editor","users","TrackChangesDataGetter","track-changes-data-invalid-editor-creator","model","Users"];var Rc,Sc;Rc=vc,Sc=183,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0xd")];class Nc extends t.Plugin{static get[Ic("0x16")](){return[Wa]}static get[Ic("0x14")](){return Ic("0x18")}[Ic("0x19")](){const t=this[Ic("0x1a")];if(t.config[Ic("0xb")](Ic("0xf"),(e=>{const n=t[Ic("0x1e")][Ic("0x15")][Ic("0x29")]()[Ic("0x10")](((t,e)=>(t[e]="",t)),{});return t.constructor[Ic("0xc")](n,e)})),Ic("0x3")!=typeof t.config.get(Ic("0x27")).editorCreator)throw new e.CKEditorError(Ic("0x1d"))}[Ic("0x20")](t){return Oc(this.editor,!0,t)}[Ic("0x17")](t){return Oc(this[Ic("0x1a")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0x14")](){return Ic("0x1c")}constructor(t){super(t),this[Ic("0x9")]=Ic("0x2a")}[Ic("0x19")](){this.editor[Ic("0x26")].get(Ic("0x7"))[Ic("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[Ic("0x1a")][Ic("0x26")].get(Ic("0x25"))[Ic("0x11")]=null}}function wc(t){return void 0!==t[Ic("0xa")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x26")].push(Wa,Mc),o.rootsAttributes=wc(t)?t[Ic("0xa")]():void 0;const s=document.createDocumentFragment(),i=t[Ic("0x0")][Ic("0x5")](Ic("0x27"))[Ic("0x6")],x=await i(o,(()=>function(t){const e=document[Ic("0x1")]("div");return t[Ic("0xe")](e),e}(s)));!function(t,e){const n=t[Ic("0x1e")][Ic("0x15")].getRootNames()[Ic("0x10")](((e,n)=>(e[n]=t[Ic("0x21")][Ic("0x5")]({rootName:n}),e)),{}),o=t.plugins[Ic("0x5")]("Users")[Ic("0x1b")][Ic("0x8")]((t=>({id:t.id,name:t[Ic("0x2")]}))),s=t.plugins[Ic("0x5")](Ic("0x25")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e.plugins.get(Ic("0x1f")),i=e[Ic("0x26")].get(Ic("0x25"));for(const t of o)r[Ic("0x22")](t.id)||r[Ic("0x24")](t);r.me||r.useAnonymousUser();for(const t of s)i[Ic("0x23")](t);e[Ic("0x21")][Ic("0x4")](n)}(t,x),x[Ic("0x28")](e?"acceptAllSuggestions":"discardAllSuggestions");const a=wc(x)?x[Ic("0x12")](n):x.data[Ic("0x5")](n);return await x[Ic("0x13")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();