@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231130.0 → 0.0.0-nightly-20231201.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 (66) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/imagestyle.js +1 -1
  29. package/src/integrations/importword.js +1 -1
  30. package/src/integrations/indent.js +1 -1
  31. package/src/integrations/inputcommand.js +1 -1
  32. package/src/integrations/link.js +1 -1
  33. package/src/integrations/list.js +1 -1
  34. package/src/integrations/listproperties.js +1 -1
  35. package/src/integrations/mediaembed.js +1 -1
  36. package/src/integrations/mention.js +1 -1
  37. package/src/integrations/pagebreak.js +1 -1
  38. package/src/integrations/paragraph.js +1 -1
  39. package/src/integrations/removeformat.js +1 -1
  40. package/src/integrations/restrictededitingmode.js +1 -1
  41. package/src/integrations/shiftentercommand.js +1 -1
  42. package/src/integrations/standardeditingmode.js +1 -1
  43. package/src/integrations/style.js +1 -1
  44. package/src/integrations/table.js +1 -1
  45. package/src/integrations/tablecaption.js +1 -1
  46. package/src/integrations/tableclipboard.js +1 -1
  47. package/src/integrations/tablecolumnresize.js +1 -1
  48. package/src/integrations/tableheadings.js +1 -1
  49. package/src/integrations/tablemergesplit.js +1 -1
  50. package/src/integrations/tableofcontents.js +1 -1
  51. package/src/integrations/tableproperties.js +1 -1
  52. package/src/integrations/template.js +1 -1
  53. package/src/integrations/title.js +1 -1
  54. package/src/integrations/undo.js +1 -1
  55. package/src/integrations/utils.js +1 -1
  56. package/src/suggestion.js +1 -1
  57. package/src/suggestiondescriptionfactory.js +1 -1
  58. package/src/trackchanges.js +1 -1
  59. package/src/trackchangesdata.js +1 -1
  60. package/src/trackchangesediting.js +1 -1
  61. package/src/trackchangesui.js +1 -1
  62. package/src/ui/suggestioncontroller.js +1 -1
  63. package/src/ui/view/basesuggestionthreadview.js +1 -1
  64. package/src/ui/view/suggestionthreadview.js +1 -1
  65. package/src/utils/common-translations.js +1 -1
  66. 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(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};(()=>{"use strict";n.r(r),n.d(r,{BaseSuggestionThreadView:()=>Bc,TrackChanges:()=>tl,TrackChangesData:()=>sl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),o=n(273),i=n(417),s=n(492),x=n(995);const a=["editor","forceDisabled","affectsData","clearForceDisabled","_disableUnsupportedCommands","value","_enabledCommands","_enableCommands","refresh","commands","execute","TrackChangesCommand"];var c,l;c=a,l=219,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("0x3")]=e,this[u("0x2")]=!1,this[u("0x5")](),this._isEnabledBasedOnSelection=!1}[u("0x5")](){this.isEnabled=!0}[u("0x7")](){this.value=!this.value,this[u("0x2")]?this[u("0x1")]():this[u("0x4")]()}[u("0x1")](){for(const t of this[u("0x9")][u("0x6")][u("0x6")]())t.affectsData&&!this._enabledCommands.has(t)&&t[u("0xa")](u("0x8"))}[u("0x4")](){for(const t of this.editor[u("0x6")][u("0x6")]())t[u("0xb")]&&!this[u("0x3")].has(t)&&t[u("0x0")](u("0x8"))}}const g=["track-changes-accept-suggestion-not-found","getRanges","canEditAt","plugins","model","acceptSuggestion","execute","refresh","TrackChangesEditing","_suggestions","get","_isEnabledBasedOnSelection","editor"];var f,m;f=g,m=306,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x2")]=e,this[h("0x0")](),this[h("0x4")]=!1}refresh(){this.isEnabled=!0}[h("0xc")](t){const n=this[h("0x2")].get(t);if(!n)throw new e.CKEditorError(h("0x6"),this);const r=n[h("0x7")]();this[h("0x5")][h("0xa")][h("0x8")](r)&&this[h("0x5")][h("0x9")][h("0x3")](h("0x1"))[h("0xb")](n)}}const p=["discardSuggestion","get","_suggestions","refresh","isEnabled","getRanges","editor","model","_isEnabledBasedOnSelection","plugins","TrackChangesEditing"];var E,_;E=p,_=360,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x5")]=e,this[T("0x6")](),this[T("0x0")]=!1}[T("0x6")](){this[T("0x7")]=!0}execute(t){const n=this[T("0x5")].get(t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const r=n[T("0x8")]();this[T("0x9")][T("0xa")].canEditAt(r)&&this.editor[T("0x1")][T("0x4")](T("0x2"))[T("0x3")](n)}}const C=["isIntersecting","type","push","start","schema","sort"," [color ","length","createPositionAt","value","isTouching","getRanges","change","isCollapsed","content","deletion","end","isArray","isMultiRange","replace","createPositionBefore","splice","isObject","isInContent","createPositionAfter","execute","color"];var A,k;A=C,k=153,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0xe")](((t,e)=>I("0x18")==t.type&&I("0x18")!=e.type?-1:I("0x18")!=t.type&&I("0x18")==e[I("0xa")]?1:0))}function S(t,e){let n,r=0;const o=[],i=e[I("0xd")];for(;r<t.length;){const s=t[r],x=t[r+1];n||(n=e.createPositionBefore(s)),v(e,s,x)||(o[I("0xb")](e.createRange(n,i[I("0x4")](s)?e[I("0x6")](s):e[I("0x11")](s,I("0x19")))),n=null),r++}return o}function v(t,e,n){if(!n)return!1;const r=t[I("0x6")](e),o=t[I("0x2")](n);return r.isTouching(o)}function N(t,e,n){for(;n[I("0x10")];){const r=n[I("0x3")](0,100);t[I("0x15")]((()=>{for(const t of r)t[I("0x5")]&&e[I("0x7")](t.id)}))}}const L=["from","values","canEditAt","refresh","model","isEnabled","editor","_isEnabledBasedOnSelection","_suggestions","_command"];var M,w;M=L,w=371,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x8")]=e,this[O("0x7")]=n,this[O("0x2")](),this[O("0x6")]=!1}[O("0x2")](){const t=Array[O("0x9")](this[O("0x7")][O("0x0")]()).some((t=>t.isInContent));this[O("0x4")]=this[O("0x8")][O("0x4")]&&t}execute(){const t=R(Array[O("0x9")](this[O("0x7")].values()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x3")][O("0x1")](t))return}N(this[O("0x5")].model,this[O("0x8")],t)}}const D=["model","_command","values","isEnabled","_selectedSuggestions","execute","from","refresh","_suggestions","getRanges","editor","selection","canEditAt"];var B,P;B=D,P=360,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this._command=e,this._suggestions=n,this._selectedSuggestions=new Set,this.refresh(),this._isEnabledBasedOnSelection=!1}[U("0xb")](){const t=this[U("0x1")][U("0x4")].document[U("0x2")],e=Array.from(this[U("0xc")][U("0x6")]());this[U("0x8")]=function(t,e){const n=Array.from(t[I("0x14")]()),r=new Set;for(const o of e)if(o[I("0x5")])for(const e of n)for(const n of o[I("0x14")]())(e[I("0x9")](n)||t[I("0x16")]&&!o[I("0x0")]&&o.next&&n.end[I("0x13")](e[I("0xc")]))&&r.add(o);return r}(t,e),this[U("0x7")]=this._command[U("0x7")]&&!!this._selectedSuggestions.size}[U("0x9")](){const t=R(Array[U("0xa")](this[U("0x8")]));for(const e of t){const t=e[U("0x0")]();if(!this.editor[U("0x4")][U("0x3")](t))return}N(this.editor[U("0x4")],this[U("0x5")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const V=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=V(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=V(e,t);return n<0?void 0:e[n][1]};const q=function(t){return V(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,r=V(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=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 rt=et||nt||Function("return this")();const ot=rt.Symbol;var it=Object.prototype,st=it.hasOwnProperty,xt=it.toString,at=ot?ot.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var o=xt.call(t);return r&&(e?t[at]=n:delete t[at]),o};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=ot?ot.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=rt["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt 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 yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return St(n)?n:void 0};const Lt=Nt(rt,"Map");const Mt=Nt(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 Dt=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 Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=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 jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Vt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Vt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var r=n.__data__;if(!Lt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(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 re=Object.prototype.hasOwnProperty;const oe=function(t,e,n){var r=t[e];re.call(t,e)&&H(r,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var x=e[i],a=r?r(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),o?ne(n,x,a):oe(n,x,a)}return n};const se=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===me?rt.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Se&&Se.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),r=!n&&de(t),o=!n&&!r&&pe(t),i=!n&&!r&&!o&&Ne(t),s=n||r||o||i,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("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 De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&ie(e,je(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var Ve=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return He(t);var e=Oe(t),n=[];for(var r in t)("constructor"!=r||!e&&Ve.call(t,r))&&n.push(r);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&ie(e,We(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?rt.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Je=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return ie(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return ie(t,an(t),e)};const ln=function(t,e,n){var r=e(t);return ge(t)?r:sn(r,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=Nt(rt,"DataView");const fn=Nt(rt,"Promise");const mn=Nt(rt,"Set");const hn=Nt(rt,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=bn||fn&&Rn(fn.resolve())!=pn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,r=n?Tt(n):"";if(r)switch(r){case yn:return Tn;case Cn:return bn;case An:return pn;case kn:return En;case In:return _n}return e});const Sn=Rn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=rt.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(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 Dn=ot?ot.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new r(+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 Un(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Vn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const tr=function t(e,n,r,o,i,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=i?r(e,o,i,s):r(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(pe(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!i){if(x=c||g?{}:Vn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Qn[d])return i?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(o){x.add(t(o,n,r,o,e,s))})):Kn(e)&&e.forEach((function(o,i){x.set(i,t(o,n,r,i,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(o,i){m&&(o=e[i=o]),oe(x,i,t(o,n,r,i,e,s))})),x};const er=function(t){return tr(t,5)};const nr=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,or=/^\w*$/;const ir=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(or.test(t)||!rr.test(t)||null!=e&&t in Object(e))};function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(sr.Cache||Zt),n}sr.Cache=Zt;const xr=sr;var ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/\\(\\)?/g;const lr=function(t){var e=xr(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(ar,(function(t,n,r,o){e.push(r?o.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o};var dr=ot?ot.prototype:void 0,gr=dr?dr.toString:void 0;const fr=function t(e){if("string"==typeof e)return e;if(ge(e))return ur(e,t)+"";if(nr(e))return gr?gr.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const mr=function(t){return null==t?"":fr(t)};const hr=function(t,e){return ge(t)?t:ir(t,e)?[t]:lr(mr(t))};const br=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const pr=function(t,e,n,r){if(!ft(t))return t;for(var o=-1,i=(e=hr(e,t)).length,s=i-1,x=t;null!=x&&++o<i;){var a=br(e[o]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(o!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[o+1])?[]:{})}oe(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t:pr(t,e,n)};const _r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Tr=function(t){return this.__data__.has(t)};function yr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yr.prototype.add=yr.prototype.push=_r,yr.prototype.has=Tr;const Cr=yr;const Ar=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};const kr=function(t,e){return t.has(e)};const Ir=function(t,e,n,r,o,i){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(i.set(t,e),i.set(e,t);++u<x;){var f=t[u],m=e[u];if(r)var h=s?r(m,f,u,e,t,i):r(f,m,u,t,e,i);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||o(f,t,n,r,i)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!o(f,m,n,r,i)){d=!1;break}}return i.delete(t),i.delete(e),d};const Rr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Sr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vr=ot?ot.prototype:void 0,Nr=vr?vr.valueOf:void 0;const Lr=function(t,e,n,r,o,i,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Ln(t),new Ln(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=Rr;case"[object Set]":var a=1&r;if(x||(x=Sr),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Ir(x(t),x(e),r,o,i,s);return s.delete(t),l;case"[object Symbol]":if(Nr)return Nr.call(t)==Nr.call(e)}return!1};var Mr=Object.prototype.hasOwnProperty;const wr=function(t,e,n,r,o,i){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:Mr.call(e,l)))return!1}var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var g=!0;i.set(t,e),i.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(r)var b=s?r(h,m,l,e,t,i):r(m,h,l,t,e,i);if(!(void 0===b?m===h||o(m,h,n,r,i):b)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return i.delete(t),i.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Br=Object.prototype.hasOwnProperty;const Pr=function(t,e,n,r,o,i){var s=ge(t),x=ge(e),a=s?Fr:Sn(t),c=x?Fr:Sn(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,d=a==c;if(d&&pe(t)){if(!pe(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new Qt),s||Ne(t)?Ir(t,e,n,r,o,i):Lr(t,e,a,n,r,o,i);if(!(1&n)){var g=l&&Br.call(t,"__wrapped__"),f=u&&Br.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return i||(i=new Qt),o(m,h,n,r,i)}}return!!d&&(i||(i=new Qt),wr(t,e,n,r,o,i))};const Ur=function t(e,n,r,o,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pr(e,n,r,o,t,i))};const jr=function(t,e){return Ur(t,e)};const Gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Hr=function(t,e){for(var n=0,r=(e=hr(e,t)).length;null!=t&&n<r;)t=t[br(e[n++])];return n&&n==r?t:void 0};const Vr=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i};const zr=function(t,e){return e.length<2?t:Hr(t,Vr(e,0,-1))};const Wr=function(t,e){return e=hr(e,t),null==(t=zr(t,e))||delete t[br(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["type","accept","next","attributes","from","decorate","getContainedElement","size","getMultiRangeId","_isDataLoaded","hasComments","set","getMarkers","markers","map","getRange","createdAt","@external","author","isInContent","getItems","getRanges","getFirstMarker","delete","end","creator","nodeBefore","previous","getFirstRange","clear","reduce","removeMarkers","discard","isExternal","suggestion:","_onAttributesChange","setAttribute","_markerNames","addMarkerName","onAccept","push","add","change","removeMarker","get","length","_saved","isIntersecting","_model","data","onAttributesChange","_onDiscard","substr","isMultiRange","subType","commentThread","isIntersectingWithRange","head"];var Xr,$r;Xr=qr,$r=353,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Yr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x4")]=!1,this.id=e.id,this[Zr("0x35")]=e[Zr("0x35")],this[Zr("0x31")]=e[Zr("0x31")]||null,this[Zr("0xd")]=e.author,this[Zr("0x14")]=e.creator||e.author,this[Zr("0x1c")]=Boolean(e[Zr("0x38")]&&e[Zr("0x38")][Zr("0xc")]),this.data=null,this._model=t,this._onAccept=e[Zr("0x22")],this[Zr("0x2e")]=e.onDiscard,this[Zr("0x1e")]=e[Zr("0x2d")],this[Zr("0x20")]=new Set,this[Zr("0xb")]=null,this[Zr("0x6")]("authoredAt",null),this[Zr("0x6")]("attributes",e[Zr("0x38")]||{}),this[Zr("0x6")](Zr("0x16"),null),this[Zr("0x6")](Zr("0x37"),null),this[Zr("0x6")](Zr("0x32"),null),this[Zr("0x6")](Zr("0x29"),!1),this[Zr("0x0")](Zr("0x36")),this[Zr("0x0")]("discard")}get head(){let t=this;for(;t.previous;)t=t[Zr("0x16")];return t}get[Zr("0x5")](){return!!this[Zr("0x32")]&&this[Zr("0x32")][Zr("0x28")]>0}get[Zr("0x30")](){return 0!=this[Zr("0x20")][Zr("0x2")]&&6==Array[Zr("0x39")](this[Zr("0x20")])[0].split(":")[Zr("0x28")]}get[Zr("0xe")](){return null!==this[Zr("0x11")]()}[Zr("0x21")](t){this[Zr("0x20")][Zr("0x24")](t)}getMarkerNames(){return Array[Zr("0x39")](this[Zr("0x20")])}getMarkers(){return this.getMarkerNames()[Zr("0x9")]((t=>this[Zr("0x2b")][Zr("0x8")][Zr("0x27")](t))).filter((t=>t))}[Zr("0x11")](){return this[Zr("0x7")]()[0]||null}[Zr("0x1a")](){this._model[Zr("0x25")]((t=>{for(const e of this[Zr("0x7")]())t.removeMarker(e)})),this[Zr("0x20")][Zr("0x18")]()}[Zr("0x26")](t){this[Zr("0x2b")][Zr("0x25")]((e=>{e[Zr("0x26")](t)})),this._markerNames[Zr("0x12")](t)}addRange(t){const e=Zr("0x1d")+this[Zr("0x35")]+":"+this.subType+":"+this.id+":"+this[Zr("0x14")].id+":"+Yr[Zr("0x3")]();this.addMarkerName(e),this._model[Zr("0x25")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x33")](t){for(const e of this.getRanges())if(e[Zr("0x2a")](t))return!0;return!1}getRanges(){return this[Zr("0x7")]()[Zr("0x9")]((t=>t[Zr("0xa")]()))}[Zr("0xf")](){return this.getRanges()[Zr("0x19")](((t,e)=>[...t,...e.getItems()]),[])}[Zr("0x17")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Zr("0xa")]())||null}[Zr("0x1")](){const t=this[Zr("0x10")]();if(1!=t[Zr("0x28")])return null;const e=t[0],n=e.start.nodeAfter,r=e[Zr("0x13")][Zr("0x15")];return n instanceof s.Element?n!=r?null:n:null}accept(){this._onAccept(this[Zr("0x10")](),this[Zr("0x2c")],this.attributes),this[Zr("0x1a")]()}[Zr("0x1b")](){this[Zr("0x2e")](this[Zr("0x10")](),this[Zr("0x2c")],this.attributes),this[Zr("0x1a")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Zr("0x34")];for(;e;)t[Zr("0x23")](e),e=e[Zr("0x37")];return t}[Zr("0x1f")](t,e){const n=er(this[Zr("0x38")]);Er(n,t,e),jr(n,this.attributes)||(this.attributes=n,this[Zr("0x1e")](n))}removeAttribute(t){const e=er(this[Zr("0x38")]);Kr(e,t),jr(e,this.attributes)||(this[Zr("0x38")]=e,this._onAttributesChange(this[Zr("0x38")]))}toJSON(){return{id:this.id,type:this.subType?this[Zr("0x35")]+":"+this.subType:this.type,authorId:this[Zr("0x14")].id,createdAt:this[Zr("0xb")],hasComments:this.hasComments,data:this[Zr("0x2c")],attributes:this[Zr("0x38")]}}static getMultiRangeId(){return(0,e.uid)()[Zr("0x2f")](1,5)}}function Jr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({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 r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({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 r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qr=["isEqual","indexOf","elementEnd","isEmpty","name","insertion","addEmptyContainer","start","set","subType","_handleRenameSuggestionDescription","_locale","match","end","key","label","text","getWalker","has","Container","*Split:* %0","type","skip","_addDescriptionItems","registerAttributeLabel","_itemLabelsCallbacks","_resolveDescriptionItems","format","remove","item","ELEMENT_SPACE","_handleAttributeSuggestionDescription","deletion","addObject","EmptyContainer","normal","removeContainer","previousSibling","isObject","_itemLabels","*Change to:* %0","removeFormat","matchingCallback","element","quantity","get","$text","pop","join","getDescriptions","checkChild","add","getFirstRange","newValue","removeEmptyContainer","push","_schema","_customCallbacks","$1 $2","_handleCustomCallbackDescription","*Remove:* %0","data","*Merge:* %0","nodeAfter","Object","removeObject","map","nextSibling","_attributeLabels","*Set format:* %0","REPLACE_TEXT","attribute","*Insert:* %0","softBreak","replace","registerElementLabel","length","_handleInsertRemoveSuggestionDescription","addFormat","function","$textProxy","getItemLabel"];var to,eo;to=Qr,eo=166,function(t){for(;--t;)to.push(to.shift())}(++eo);const no=function(t,e){return Qr[t-=0]};class ro{constructor(t,e){this[no("0x37")]=[],this[no("0x25")]=new Map,this[no("0x17")]=[],this._attributeLabels=new Map,this[no("0x36")]=t,this[no("0x9")]=e}[no("0x2f")](t){const e=[],n=new Set,r=new Set;for(let o=0;o<t[no("0x4a")];o++){const i=t[o];if(!i.isInContent)continue;const s=this[no("0x39")](i);if(s){if(null!=i[no("0x7")]){if(n[no("0x10")](i.subType))continue;n[no("0x31")](i[no("0x7")])}e[no("0x35")](s)}else if(no("0x45")!=i.type)no("0x3")!=i[no("0x13")]&&"deletion"!=i[no("0x13")]||this[no("0x4b")](e,i,t[o+1]);else{const t=i[no("0x3b")][no("0xc")];if(r[no("0x10")](t))continue;r[no("0x31")](i.data[no("0xc")]),t==mc?this[no("0x8")](e,i):this[no("0x1d")](e,i)}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this[no("0x37")].push(t)}[no("0x49")](t,n,r=e.priorities[no("0x21")]){no("0x4d")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:r}):this[no("0x25")][no("0x6")](t,n)}[no("0x16")](t,e){this._attributeLabels[no("0x6")](t,e)}[no("0x4f")](t,e=1){let n;for(const e of this[no("0x17")])if(e[no("0x28")](t)){n=e[no("0xd")];break}return n||(n=this._itemLabels[no("0x2b")](t[no("0x2")])),n?n(e):1!==e?e+" "+t.name+"s":""+t.name}[no("0x15")](t,e){const n=e[no("0x32")]()[no("0xf")](),r=no("0x3")==e.type?no("0x31"):"remove";for(const e of n){const o=e.item,i=t[t[no("0x4a")]-1];if(o.is(no("0x4e")))i&&i[no("0x13")].indexOf("Container")>-1&&t[no("0x2d")](),i&&no("0xe")==i[no("0x13")]?i[r]+=o[no("0x3b")]:t[no("0x35")]({type:no("0xe"),add:no("0x31")==r?o.data:"",remove:"remove"==r?o.data:""});else if(this[no("0x36")][no("0x24")](o)){const s=o;if(i&&i[no("0x13")][no("0x51")](no("0x11"))>-1&&t.pop(),no("0x0")==e[no("0x13")])continue;i&&i.type==r+"Object"&&i[no("0x29")][no("0x2")]==s[no("0x2")]?i[no("0x2a")]++:t[no("0x35")]({type:r+no("0x3e"),element:s,quantity:1}),n[no("0x14")]((t=>!(no("0x0")==t.type&&t[no("0x1b")]==o)))}else if(this[no("0x36")][no("0x30")](o,no("0x2c"))||o.is(no("0x29"),no("0x47"))){const n=o;if(no("0x31")==r&&"elementStart"==e[no("0x13")]||"remove"==r&&no("0x0")==e[no("0x13")])continue;if(i&&-1==i.type.indexOf(no("0x11"))){no("0xe")==i.type&&(i[r]+="\n");continue}let s;if(s="add"==r?n[no("0x41")]&&!this[no("0x36")][no("0x24")](n[no("0x41")])?n.nextSibling:null:n[no("0x23")]&&!this[no("0x36")][no("0x24")](n.previousSibling)?n.previousSibling:null,n[no("0x1")]||s&&s.isEmpty){const e=s&&s[no("0x1")]?s:n;i&&i[no("0x13")]==r+"EmptyContainer"&&i[no("0x29")][no("0x2")]==e.name?i[no("0x2a")]++:t[no("0x35")]({type:r+no("0x20"),element:e,quantity:1})}else t.push({type:r+no("0x11"),element:n})}}}[no("0x18")](t){const e=this[no("0x9")],n=[],r=[],o=[];for(const i of t)switch(i[no("0x13")]){case no("0xe"):if(i[no("0x31")]=i[no("0x31")][no("0x48")](/(\S)\u000A+(\S)/g,no("0x38"))[no("0x48")](/\u000A/g,""),i[no("0x1a")]=i[no("0x1a")][no("0x48")](/(\S)\u000A+(\S)/g,no("0x38"))[no("0x48")](/\u000A/g,""),""!=i[no("0x31")]&&""!=i[no("0x1a")]){n[no("0x35")]({type:"replace",content:Jr(e,no("0x44"),['"'+i[no("0x1a")]+'"','"'+i[no("0x31")]+'"'])});continue}if(null!=i[no("0x31")][no("0xa")](/^ +$/)){n.push({type:no("0x3"),content:Jr(e,no("0x46"),Jr(e,no("0x1c"),i.add[no("0x4a")]))});continue}if(null!=i.remove[no("0xa")](/^ +$/)){n[no("0x35")]({type:no("0x1e"),content:Jr(e,no("0x3a"),Jr(e,no("0x1c"),i[no("0x1a")][no("0x4a")]))});continue}if(""!=i[no("0x31")]){n[no("0x35")]({type:no("0x3"),content:Jr(e,"*Insert:* %0",'"'+i[no("0x31")]+'"')});continue}n[no("0x35")]({type:no("0x1e"),content:Jr(e,no("0x3a"),'"'+i[no("0x1a")]+'"')});continue;case no("0x4"):case no("0x1f"):n[no("0x35")]({type:no("0x3"),content:Jr(e,"*Insert:* %0",this[no("0x4f")](i[no("0x29")],i.quantity))});continue;case no("0x34"):case no("0x3f"):n[no("0x35")]({type:no("0x1e"),content:Jr(e,no("0x3a"),this[no("0x4f")](i[no("0x29")],i[no("0x2a")]))});continue;case"addContainer":n[no("0x35")]({type:no("0x3"),content:Jr(e,no("0x12"),this[no("0x4f")](i[no("0x29")],i.quantity))});continue;case no("0x22"):n[no("0x35")]({type:no("0x1e"),content:Jr(e,no("0x3c"),this[no("0x4f")](i[no("0x29")],i[no("0x2a")]))});continue;case no("0x4c"):r[no("0x35")](i[no("0xc")]);continue;case no("0x27"):o.push(i[no("0xc")]);continue;default:n[no("0x35")](i)}if(r[no("0x4a")]){const t=r[no("0x40")]((t=>this[no("0x42")][no("0x10")](t)?this[no("0x42")][no("0x2b")](t):t))[no("0x2e")](", ");n[no("0x35")]({type:no("0x19"),content:Jr(this[no("0x9")],no("0x43"),t)})}if(o[no("0x4a")]){const t=o[no("0x40")]((t=>this._attributeLabels[no("0x10")](t)?this._attributeLabels[no("0x2b")](t):t))[no("0x2e")](", ");n.push({type:no("0x19"),content:Jr(this._locale,"*Remove format:* %0",t)})}return n}[no("0x39")](t){for(const e of this._customCallbacks){const n=e(t);if(n&&no("0x13")in n)return n}}[no("0x1d")](t,e){const n=e[no("0x3b")],r=void 0===n[no("0x33")]?no("0x27"):no("0x4c");t.push({type:r,key:n[no("0xc")]})}_handleRenameSuggestionDescription(t,e){t[no("0x35")]({type:"format",content:Jr(this[no("0x9")],no("0x26"),this.getItemLabel(e[no("0x32")]()[no("0x5")][no("0x3d")],1))})}[no("0x4b")](t,e,n){if(this[no("0x15")](t,e),n&&n[no("0x32")]()&&!e.getFirstRange()[no("0xb")][no("0x50")](n.getFirstRange().start)){const n=t[t.length-1],r=no("0x3")==e[no("0x13")]?"add":no("0x1a");n&&no("0xe")==n.type&&(n[r]+="\n")}}}const oo=["editor","commands","get","plugins","afterInit","TrackChangesEditing","showAIAssistant"];var io,so;io=oo,so=378,function(t){for(;--t;)io.push(io.shift())}(++so);const xo=function(t,e){return oo[t-=0]};class ao extends t.Plugin{[xo("0x4")](){const t=this[xo("0x0")],e=t[xo("0x3")][xo("0x2")](xo("0x5"));t[xo("0x1")][xo("0x2")]("showAIAssistant")&&e.enableCommand(xo("0x6"))}}const co=["registerDescriptionCallback","registerAttributeLabel","FORMAT_ALIGN_TO_RIGHT","plugins","_enableDefaultAttributesIntegration","_descriptionFactory","FORMAT_ALIGNMENT","commandName","_registerLegacyDescription","FORMAT_ALIGN_TO_LEFT","locale","editor","has","alignment","center","type","afterInit","format","*Format:* %0","TrackChangesEditing","justify","FORMAT_JUSTIFY_TEXT"];var lo,uo;lo=co,uo=183,function(t){for(;--t;)lo.push(lo.shift())}(++uo);const go=function(t,e){return co[t-=0]};class fo extends t.Plugin{[go("0x9")](){const t=this[go("0x4")],e=t[go("0x3")];if(!t.plugins[go("0x5")]("AlignmentEditing"))return;const n=t[go("0x12")].get(go("0xc"));n[go("0x13")](go("0x6"),[],[go("0x6")]),n[go("0x14")][go("0x10")](go("0x6"),Jr(e,go("0x15"))),this[go("0x1")]()}[go("0x1")](){const t=this[go("0x4")],e=t[go("0x3")];t[go("0x12")].get(go("0xc"))[go("0x14")][go("0xf")]((t=>{if("formatBlock"!=t[go("0x8")])return;const{data:n}=t;if(n&&go("0x6")==n[go("0x0")]){const t=n.commandParams[0].value;return{type:go("0xa"),content:Jr(e,go("0xb"),function(t){switch(t){case"left":return Jr(e,go("0x2"));case"right":return Jr(e,go("0x11"));case go("0x7"):return Jr(e,"FORMAT_ALIGN_TO_CENTER");case go("0xd"):return Jr(e,go("0xe"))}}(t))}}}))}}const mo=["toLowerCase","code","FORMAT_UNDERLINE","ItalicEditing","FORMAT_ITALIC","BoldEditing","formatInline","subscript","*Format:* %0","editor","_registerLegacyDescription","FORMAT_CODE","afterInit","registerAttributeLabel","strikethrough","toUpperCase","forceValue","slice","StrikethroughEditing","locale","underline","plugins","TrackChangesEditing","italic","UnderlineEditing","has","format","get","bold","_descriptionFactory","registerDescriptionCallback","FORMAT_SUBSCRIPT","FORMAT_BOLD","FORMAT_STRIKETHROUGH","commandName"];var ho,bo;ho=mo,bo=346,function(t){for(;--t;)ho.push(ho.shift())}(++bo);const po=function(t,e){return mo[t-=0]},Eo=[po("0x9"),po("0x7"),po("0x1c"),"CodeEditing",po("0x16"),"SubscriptEditing","SuperscriptEditing"];class _o extends t.Plugin{[po("0x10")](){const t=this[po("0xd")],e=t[po("0x19")][po("0x1f")](po("0x1a")),n=t[po("0x17")];for(const r of Eo){if(!t[po("0x19")][po("0x1d")](r))continue;const o=r[po("0x15")](0,-7)[po("0x4")](),i="FORMAT_"+o[po("0x13")]();e._enableDefaultAttributesIntegration(o,[o]),e[po("0x21")][po("0x11")](o,Jr(n,i))}this[po("0xe")]()}_registerLegacyDescription(){const t=this[po("0xd")],e=t.locale,n=t[po("0x19")].get(po("0x1a"));function r(t,r){n[po("0x21")][po("0x22")]((n=>{if(po("0xa")!=n.type)return;const{data:o}=n;return o&&o[po("0x3")]===t?o.commandParams[0][po("0x14")]?{type:po("0x1e"),content:Jr(e,po("0xc"),r)}:{type:po("0x1e"),content:Jr(e,"*Remove format:* %0",r)}:void 0}))}r(po("0x20"),Jr(e,po("0x1"))),r(po("0x1b"),Jr(e,po("0x8"))),r(po("0x18"),Jr(e,po("0x6"))),r(po("0x5"),Jr(e,po("0xf"))),r(po("0x12"),Jr(e,po("0x2"))),r(po("0xb"),Jr(e,po("0x0"))),r("superscript",Jr(e,"FORMAT_SUPERSCRIPT"))}}const To=["name","document","has","TrackChangesEditing","*Remove format:* %0","selection","*Set format:* %0","commandParams","editor","locale","blockQuote","from","commandName","forceValue","afterInit","get","getSelectedBlocks","registerDescriptionCallback","value","model","parent","_descriptionFactory","plugins","$root","change","filter","format","schema"];var yo,Co;yo=To,Co=272,function(t){for(;--t;)yo.push(yo.shift())}(++Co);const Ao=function(t,e){return To[t-=0]};class ko extends t.Plugin{[Ao("0x16")](){const t=this[Ao("0x10")],e=t[Ao("0x11")];if(!t.plugins[Ao("0xa")]("BlockQuoteEditing"))return;const n=t[Ao("0x2")][Ao("0x17")](Ao("0xb")),r=this[Ao("0x10")].commands[Ao("0x17")](Ao("0x12"));n.enableCommand(Ao("0x12"),((e,o={})=>{const i=this[Ao("0x10")][Ao("0x1b")][Ao("0x9")][Ao("0xd")],s=o&&void 0!==o[Ao("0x15")]?o[Ao("0x15")]:!r[Ao("0x1a")];let x=[];if(s){const e=Array[Ao("0x13")](i.getSelectedBlocks())[Ao("0x5")]((t=>Io(t)||function(t,e){const n=e.checkChild(t[Ao("0x0")],Ao("0x12")),r=e.checkChild([Ao("0x3"),Ao("0x12")],t);return n&&r}(t,this.editor[Ao("0x1b")][Ao("0x7")])));x=S(e,t.model)}else{const e=Array.from(i[Ao("0x18")]())[Ao("0x5")]((t=>Io(t)));x=S(e,t.model)}t.model[Ao("0x4")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ao("0x12"),commandParams:[{forceValue:s}]})}))})),n[Ao("0x1")][Ao("0x19")]((t=>{const{data:n}=t;if(n&&Ao("0x12")==n[Ao("0x14")]){const t=Jr(e,"ELEMENT_BLOCK_QUOTE");return n[Ao("0xf")][0][Ao("0x15")]?{type:Ao("0x6"),content:Jr(e,Ao("0xe"),t)}:{type:Ao("0x6"),content:Jr(e,Ao("0xc"),t)}}}))}}function Io(t){return"blockQuote"==t[Ao("0x0")][Ao("0x8")]}const Ro=["plugins","get","ckbox","editor","afterInit","commands","TrackChangesEditing"];var So,vo;So=Ro,vo=190,function(t){for(;--t;)So.push(So.shift())}(++vo);const No=function(t,e){return Ro[t-=0]};class Lo extends t.Plugin{[No("0x3")](){const t=this[No("0x2")];t[No("0x4")][No("0x0")]("ckbox")&&t[No("0x6")][No("0x0")](No("0x5")).enableCommand(No("0x1"))}}const Mo=["has","ELEMENT_CODE_BLOCK","find","editor","blockName","filter","*Set format:* %0","TrackChangesEditing","CodeBlock","registerDescriptionCallback","outdentCodeBlock","get","commands","locale","change","_descriptionFactory","document","schema","name","parent","*Remove format:* %0","codeBlock","type","format","config","registerElementLabel","model","checkChild","enableCommand","toLowerCase","selection","language","markBlockFormat","commandParams","plugins","forceValue","getSelectedBlocks","isLimit"];var wo,Oo;wo=Mo,Oo=239,function(t){for(;--t;)wo.push(wo.shift())}(++Oo);const Fo=function(t,e){return Mo[t-=0]};class Do extends t.Plugin{afterInit(){const t=this[Fo("0x1e")];if(!t[Fo("0x17")][Fo("0x1b")](Fo("0x23")))return;const e=t.plugins[Fo("0x0")](Fo("0x22")),n=t[Fo("0x2")],r=t[Fo("0xd")].get(Fo("0xa")).languages,o=t[Fo("0x1")].get("codeBlock");e[Fo("0x11")]("indentCodeBlock"),e[Fo("0x11")](Fo("0x25")),e[Fo("0x11")]("codeBlock",((n,i={})=>{const s=t[Fo("0xf")],x=t[Fo("0xf")][Fo("0x5")][Fo("0x13")],a=i&&void 0!==i[Fo("0x18")]?i[Fo("0x18")]:!o.value;let c;i[Fo("0x14")]||(i[Fo("0x14")]=r[0][Fo("0x14")]),c=a?Array.from(x[Fo("0x19")]())[Fo("0x20")]((t=>{return Bo(t)||(e=t,n=s[Fo("0x6")],!e.is("rootElement")&&!n[Fo("0x1a")](e)&&n[Fo("0x10")](e[Fo("0x8")],"codeBlock"));var e,n})):Array.from(x[Fo("0x19")]())[Fo("0x20")]((t=>Bo(t)));const l=S(c,s);s[Fo("0x3")]((()=>{for(const t of l)e[Fo("0x15")](t,{commandName:Fo("0xa"),commandParams:[{...i,forceValue:a}],formatGroupId:Fo("0x1f")})}))})),e[Fo("0x4")][Fo("0xe")](Fo("0xa"),(t=>Jr(n,Fo("0x1c"),t))),e[Fo("0x4")][Fo("0x24")]((t=>{if("formatBlock"!=t[Fo("0xb")])return;const e=n.t,{data:o}=t;if(!o||Fo("0xa")!=o.commandName)return;const i=o[Fo("0x16")][0][Fo("0x14")],s=e(r[Fo("0x1d")]((t=>t[Fo("0x14")]===i)).label)[Fo("0x12")]();return o[Fo("0x16")][0][Fo("0x18")]?{type:Fo("0xc"),content:Jr(n,Fo("0x21"),Jr(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Fo("0xc"),content:Jr(n,Fo("0x9"),Jr(n,Fo("0x1c"),1))}}))}}function Bo(t){return Fo("0xa")==t[Fo("0x7")]}const Po=["editor","afterInit","has","enableCommand","CommentsEditing","plugins","get"];var Uo,jo;Uo=Po,jo=480,function(t){for(;--t;)Uo.push(Uo.shift())}(++jo);const Go=function(t,e){return Po[t-=0]};class Ho extends t.Plugin{[Go("0x4")](){const t=this[Go("0x3")];t.plugins[Go("0x5")](Go("0x0"))&&t[Go("0x1")][Go("0x2")]("TrackChangesEditing")[Go("0x6")]("addCommentThread")}}var Vo=n(181);const zo=["nextSibling","get","span","push","bindElementToMarker","listItem","includes","addClass","consumable","getCustomProperty","type","createRangeOn","test","mapper","model","markerName","ck-suggestion-marker-","elementEnd","writer","isBlock","previousPosition","getAttribute","getItems","markerRange","toViewElement","activeMarkers","plugins","parent","createUIElement","toViewPosition","addHighlight","isLimit","start","hasAttribute","schema","insert","listIndent"];var Wo,Ko;Wo=zo,Ko=162,function(t){for(;--t;)Wo.push(Wo.shift())}(++Ko);const qo=function(t,e){return zo[t-=0]};function Xo(t,e,n){const r=[];for(const o of e[qo("0x8")]())o[qo("0x13")](t)&&r[qo("0x1a")](n[qo("0x22")](o));return r}function $o(t,e,{showActiveMarker:n=!0}={}){const r=t[qo("0xc")][qo("0x18")]("TrackChangesEditing");return(o,i,s)=>{if(!s[qo("0x1f")][qo("0x23")](i[qo("0x9")],o.name))return;const x=i.markerRange.getWalker(),a=i[qo("0x9")][qo("0x12")],c=t[qo("0x0")][qo("0x14")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c.isContent(e);const n=s.mapper[qo("0xa")](e);if(n&&n[qo("0x20")](qo("0x10")))return;qo("0x3")==t[qo("0x21")]&&c[qo("0x5")](e)&&!c[qo("0x11")](e)&&(e[qo("0x17")]||a.isAtEnd?l&&l[qo("0xd")]==e||(l=e,f(t[qo("0x6")]),g=!0):u=u||t[qo("0x6")])}function f(t){const o=s[qo("0x4")][qo("0xe")](qo("0x19"),{class:qo("0x2")+e}),x=s.mapper[qo("0xf")](t);n&&r[qo("0xb")][qo("0x1d")](i[qo("0x1")])&&s[qo("0x4")][qo("0x1e")]("ck-suggestion-marker--active",o),s.writer[qo("0x15")](x,o),s[qo("0x24")][qo("0x1b")](o,i[qo("0x1")])}d||g||!u||f(u)}}const Zo=["$graveyard","start","writer","lock","remove","unit","document","isCollapsed","enableCommand","showSuggestionHighlights","selection","detach","removeMarker:suggestion:deletion","addMarker:suggestion:deletion","deleteForward","createRange","unbindElementFromMarkerName","uiElement","downcastDispatcher","options","unlock","requires","markerName","TrackChangesEditing","end","getFirstRange","enqueueChange","setSelection","init","get","forward","editing","merge","high","model","rootName","buffer","fromRange","commands","plugins","mapper"];var Yo,Jo;Yo=Zo,Jo=184,function(t){for(;--t;)Yo.push(Yo.shift())}(++Jo);const Qo=function(t,e){return Zo[t-=0]};class ti extends t.Plugin{static get[Qo("0x1")](){return[Vo.Delete]}[Qo("0x8")](){const t=this.editor,e=t[Qo("0x13")][Qo("0x9")](Qo("0x3"));e[Qo("0x1d")]("delete");const n=t[Qo("0x12")][Qo("0x9")](Qo("0x23"));e.enableCommand("deleteForward",((e,r={})=>{const o=t[Qo("0xe")].createSelection(t.model[Qo("0x1b")][Qo("0x1f")]);o[Qo("0x1c")]&&t[Qo("0xe")].modifySelection(o,{direction:Qo("0xa"),unit:r[Qo("0x1a")]});const i=o[Qo("0x5")](),x=s.LiveRange[Qo("0x11")](i);let a;e(r),a=Qo("0x15")==x.root[Qo("0xf")]?t[Qo("0xe")][Qo("0x24")](i.start):t.model[Qo("0x24")](x[Qo("0x16")],x[Qo("0x4")]),x[Qo("0x20")](),t[Qo("0xe")][Qo("0x6")](n[Qo("0x10")].batch,(t=>{n[Qo("0x10")][Qo("0x18")](),t[Qo("0x7")](t.createRange(a[Qo("0x4")])),n.buffer[Qo("0x0")]()}))})),t.editing.downcastDispatcher.on(Qo("0x22"),$o(t,"merge"),{priority:Qo("0xd")}),t.data[Qo("0x27")].on(Qo("0x22"),((e,n,r)=>{r[Qo("0x28")][Qo("0x1e")]&&$o(t,Qo("0xc"),{showActiveMarker:!1}).bind(this)(e,n,r)}),{priority:"high"}),t[Qo("0xb")].downcastDispatcher.on(Qo("0x21"),((t,e,n)=>{const r=n[Qo("0x14")].markerNameToElements(e.markerName);if(r)for(const t of r)t.is(Qo("0x26"))&&(n.mapper[Qo("0x25")](t,e[Qo("0x2")]),n[Qo("0x17")][Qo("0x19")](t))}),{priority:Qo("0xd")})}}const ei=["outdentList","forceValue","selection","end","numberedList","toUpperCase","push","DocumentListUtils","accept","has","after","isObject","documentList","add","format","nextSibling","fromRange","getFirstRange","start","createPositionAt","locale","listItemId","length","from","splitListItemAfter","config","next","setSelection","map","commandParams","slice","before","_descriptionFactory","getRanges","get","nodeAfter","findIndex","splitListItemBefore","value","change","enableCommand","*Format:* remove from %0","document","list.multiBlock","markBlockFormat","_LIST","ELEMENT_LIST_ITEM","_suggestionFactory","listType","previousSibling","commands","ELEMENT_BULLETED_LIST","ELEMENT_","DocumentListEditing","*Merge:* %0","paragraph","formatBlock","commandName","type","execute","schema","*Format:* insert into %0","model","indentList","registerDescriptionCallback","detach","listIndent","isFirstBlockOfListItem","createRange","mergeListItemForward","getSelectedBlocks","plugins","multipleBlocks","getAttribute","hasAttribute","bulletedList"];var ni,ri;ni=ei,ri=347,function(t){for(;--t;)ni.push(ni.shift())}(++ri);const oi=function(t,e){return ei[t-=0]};class ii extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[oi("0x2a")](oi("0xa")))return;const e=t[oi("0x35")],n=t[oi("0x1c")][oi("0x43")]("TrackChangesEditing"),r=t[oi("0x1c")].get(oi("0x28"));function o(e){return()=>{const o=t[oi("0x7")][oi("0x43")](e);if(o[oi("0x47")]&&!t[oi("0x3a")].get(oi("0x0")))return void t[oi("0x10")](oi("0xc"),{});let i=Array[oi("0x38")](t.model[oi("0x4b")][oi("0x23")][oi("0x1b")]());if(a(e)){i=r.expandListBlocksToCompleteList(i);const t=[];for(const e of i)r[oi("0x18")](e)&&t[oi("0x27")](e);i=t}t[oi("0x13")][oi("0x48")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:e,commandParams:[{forceValue:!o[oi("0x47")]}],formatGroupId:oi("0x5")},[],oi("0x2d"))}))}}function i(e){return()=>{const r=function(t){let e=Array[oi("0x38")](t);const n=e[oi("0x45")]((t=>!t[oi("0x1f")](oi("0x36"))));return n>-1&&(e=e[oi("0x3f")](0,n)),e}(t[oi("0x13")][oi("0x4b")].selection.getSelectedBlocks()),o=r[r[oi("0x37")]-1],i=t.model[oi("0x11")][oi("0x2c")](o)?oi("0x2b"):oi("0x24"),s=t[oi("0x13")][oi("0x19")](t[oi("0x13")][oi("0x34")](r[0],"before"),t[oi("0x13")][oi("0x34")](o,i));t[oi("0x13")][oi("0x48")]((()=>{n[oi("0x1")](s,{commandName:e,commandParams:[],formatGroupId:oi("0x5")},function(t){const e=new Set;for(const n of t){let t=n[oi("0x30")];for(;t&&t[oi("0x1e")](oi("0x17"))>n.getAttribute(oi("0x17"));)e[oi("0x2e")](t),t=t[oi("0x30")]}return Array[oi("0x38")](e)}(r))}))}}function x(e){return()=>{const r=t[oi("0x13")][oi("0x4b")][oi("0x23")][oi("0x1b")]()[oi("0x3b")]()[oi("0x47")],o=t.model[oi("0x34")](r,oi("0x40")),i=t[oi("0x13")][oi("0x34")](r,0),s=t.model[oi("0x19")](o,i);t[oi("0x13")].change((()=>{n[oi("0x1")](s,{commandName:e,commandParams:[],formatGroupId:oi("0x5")})}))}}function a(e){const n=t[oi("0x7")].get(oi("0x20"))[oi("0x47")],r=t.commands[oi("0x43")](oi("0x25"))[oi("0x47")];return"numberedList"===e?n:r}n[oi("0x49")](oi("0x25"),o(oi("0x25"))),n[oi("0x49")](oi("0x20"),o(oi("0x20"))),n.enableCommand(oi("0x14"),i(oi("0x14"))),n.enableCommand("outdentList",i(oi("0x21"))),n[oi("0x49")](oi("0x39"),x(oi("0x39"))),n.enableCommand(oi("0x46"),x(oi("0x46"))),n[oi("0x41")].registerElementLabel((function(e){const n=!t.model[oi("0x11")][oi("0x2c")](e),r=e[oi("0x6")],o=e[oi("0x30")],i=e[oi("0x1e")](oi("0x36")),s=!r||r.getAttribute("listItemId")!==i,x=!o||o[oi("0x1e")](oi("0x36"))!==i;return n&&Boolean(i)&&s&&x}),(t=>Jr(e,oi("0x3"),t))),n[oi("0x41")][oi("0x15")]((function(n){if(oi("0xd")!=n.type&&"formatInline"!=n[oi("0xf")])return;const{data:r}=n;if(!r)return;let o,i,s,x;switch(r[oi("0xe")]){case oi("0x20"):s=r[oi("0x3e")][0][oi("0x22")],x=a(r[oi("0xe")]),o=oi(s?"0x12":"0x4a"),!x&&t.config[oi("0x43")](oi("0x0"))||(o="*Change to:* %0"),i={type:oi("0x2f"),content:Jr(e,o,Jr(e,oi("0x8")))};break;case oi("0x25"):s=r.commandParams[0][oi("0x22")],x=a(r.commandName),o=s?"*Format:* insert into %0":oi("0x4a"),!x&&t[oi("0x3a")].get("list.multiBlock")||(o="*Change to:* %0"),i={type:oi("0x2f"),content:Jr(e,o,Jr(e,"ELEMENT_NUMBERED_LIST"))};break;case oi("0x14"):o="*Indent:* %0",i={type:"format",content:Jr(e,o,Jr(e,oi("0x3")))};break;case oi("0x21"):o=function(t){const e=t.getFirstRange();let n=e.start[oi("0x44")];for(;n&&e.containsItem(n);){if(n.getAttribute("listIndent")>0)return!1;n=n[oi("0x30")]}return!0}(n)?Jr(e,oi("0x4a"),Jr(e,function(t){const e=t[oi("0x32")]()[oi("0x33")].nodeAfter;return oi("0x9")+e[oi("0x1e")]("listType")[oi("0x26")]()+oi("0x2")}(n))):Jr(e,"*Outdent:* %0",Jr(e,oi("0x3"))),i={type:"format",content:o};break;case"mergeListItemBackward":case oi("0x1a"):!1===r[oi("0x1d")]&&(o=oi("0xb"),i={type:"deletion",content:Jr(e,o,Jr(e,"ELEMENT_LIST_ITEM"))})}return i})),n[oi("0x4")].registerCustomCallback("formatBlock",oi("0x2d"),oi("0x29"),(function(e,n){const r=[];for(let n of e)n[oi("0x33")][oi("0x44")]===n[oi("0x24")].parent&&(n=t[oi("0x13")].createRange(t.model.createPositionAt(n[oi("0x33")][oi("0x44")],0))),r[oi("0x27")](n);t.model[oi("0x48")]((e=>{const o=t[oi("0x13")][oi("0x4b")].selection,i=Array[oi("0x38")](o[oi("0x42")]())[oi("0x3d")]((t=>s.LiveRange[oi("0x31")](t)));e[oi("0x3c")](r),t[oi("0x7")][oi("0x43")](n[oi("0xe")]).refresh(),n[oi("0x3e")].push({forceDefaultExecution:!0}),t[oi("0x10")](n[oi("0xe")],...n[oi("0x3e")]),e[oi("0x3c")](i);for(const t of i)t[oi("0x16")]()}))}))}}const si=["formatInline","push","registerDescriptionCallback","formatBlock","format","getListTypeFromListStyleType","isListItemBlock","has","change","listStyle","markMultiRangeBlockFormat","replace","model","DocumentListPropertiesEditing","handleListStartCommand","_getSuggestionBlocksForListStyle","_getTranslationKeyForListStyle","expandListBlocksToCompleteList","toUpperCase","styles","_descriptionFactory","get","commandParams","filter","from","handleListStyleCommand","listStart","plugins","listType","isFirstBlockOfListItem","*Format:* set order to regular","*Change to:* %0","type","getSelectedBlocks","numbered","_getSuggestionBlocks","DocumentListPropertiesUtils","getAttribute","DocumentListUtils","locale","bind","listReversed","startIndex","_LIST_","reversed","list.properties","handleDescriptions","enableCommand","editor","TrackChangesEditing","handleListReversedCommand"];var xi,ai;xi=si,ai=415,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{afterInit(){if(!this[ci("0x29")][ci("0x14")][ci("0x0")](ci("0x6")))return;const t=this[ci("0x29")].config[ci("0xe")](ci("0x26")),e=this[ci("0x29")][ci("0x14")][ci("0xe")](ci("0x2a"));t[ci("0xc")]&&e[ci("0x28")]("listStyle",this[ci("0x12")][ci("0x21")](this)),t[ci("0x25")]&&e[ci("0x28")]("listReversed",this.handleListReversedCommand[ci("0x21")](this)),t[ci("0x23")]&&e[ci("0x28")](ci("0x13"),this.handleListStartCommand.bind(this)),e[ci("0xd")][ci("0x2e")](this[ci("0x27")][ci("0x21")](this))}handleListStyleCommand(t,e={}){const n=this[ci("0x29")][ci("0x14")].get(ci("0x2a")),r=this._getSuggestionBlocksForListStyle();this[ci("0x29")][ci("0x5")][ci("0x1")]((()=>{n[ci("0x3")](r,{commandName:ci("0x2"),commandParams:[{type:e[ci("0x19")]}],formatGroupId:ci("0x2")})}))}[ci("0x2b")](t,e={}){const n=this.editor[ci("0x14")][ci("0xe")](ci("0x2a")),r=this.editor.plugins[ci("0xe")](ci("0x1f")),o=this._getSuggestionBlocks((t=>r[ci("0x32")](t)&&ci("0x1b")===t[ci("0x1e")](ci("0x15"))));null!==o&&this[ci("0x29")].model[ci("0x1")]((()=>{n[ci("0x3")](o,{commandName:ci("0x22"),commandParams:[{reversed:e[ci("0x25")]}],formatGroupId:ci("0x22")})}))}[ci("0x7")](t,e={}){const n=this[ci("0x29")][ci("0x14")][ci("0xe")]("TrackChangesEditing"),r=this[ci("0x29")][ci("0x14")][ci("0xe")](ci("0x1f")),o=this[ci("0x1c")]((t=>r.isListItemBlock(t)&&ci("0x1b")===t[ci("0x1e")](ci("0x15"))));null!==o&&this[ci("0x29")].model.change((()=>{n[ci("0x3")](o,{commandName:ci("0x13"),commandParams:[{startIndex:e.startIndex}],formatGroupId:ci("0x13")})}))}[ci("0x27")](t){if(ci("0x2f")!=t[ci("0x19")]&&ci("0x2c")!=t.type)return;const e=this[ci("0x29")][ci("0x20")],{data:n}=t;if(!n)return;let r,o;switch(n.commandName){case ci("0x2"):r=ci("0x18"),o={type:ci("0x30"),content:Jr(e,r,Jr(e,this[ci("0x9")](n.commandParams[0][ci("0x19")])))};break;case ci("0x22"):r=n[ci("0xf")][0][ci("0x25")]?"*Format:* set order to reversed":ci("0x17"),o={type:ci("0x30"),content:Jr(e,r)};break;case ci("0x13"):r="*Format:* set start index to %0",o={type:ci("0x30"),content:Jr(e,r,n.commandParams[0][ci("0x23")])}}return o}[ci("0x8")](){const t=this[ci("0x29")].plugins[ci("0xe")]("DocumentListUtils");let e=Array[ci("0x11")](this[ci("0x29")].model.document.selection[ci("0x1a")]());return e[ci("0x2d")](...t[ci("0xa")](e)),e=[...new Set(e)],e}[ci("0x1c")](t){const e=this[ci("0x29")].plugins[ci("0xe")](ci("0x1f"));let n=Array[ci("0x11")](this[ci("0x29")][ci("0x5")].document.selection[ci("0x1a")]())[ci("0x10")](t);if(!n.length)return null;n=e[ci("0xa")](n);const r=[];for(const t of n)e[ci("0x16")](t)&&r[ci("0x2d")](t);return r}[ci("0x9")](t){return"ELEMENT_"+this.editor[ci("0x14")][ci("0xe")](ci("0x1d"))[ci("0x31")](t)[ci("0xb")]()+ci("0x24")+t[ci("0xb")]()[ci("0x4")](/-/g,"_")}}var ui=n(331);const di=["high","options","setSelection","fromRange","get","unbindElementFromMarkerName","requires","hasClass","downcastDispatcher","end","mapper","selection","writer","data","remove","parent","nextSibling","bind","markInsertion","createRange","markerName","fire","enableCommand","commands","split","model","TrackChangesEditing","editing","document","getFirstRange","afterExecute","createPositionAt","removeMarker:suggestion:insertion","markerNameToElements","enterBlock","enter","getFirstPosition","plugins","init","addMarker:suggestion:insertion"];var gi,fi;gi=di,fi=300,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const mi=function(t,e){return di[t-=0]};class hi extends t.Plugin{static get[mi("0x1a")](){return[ui.Enter]}[mi("0x12")](){const t=this.editor,e=t[mi("0x11")][mi("0x18")](mi("0x6")),n=t[mi("0x3")][mi("0x18")]("enter");e[mi("0x2")](mi("0xf"),(()=>{t[mi("0x5")].change((r=>{const o=t.model[mi("0x8")][mi("0x1f")],i=o[mi("0x10")](),x=s.LiveRange[mi("0x17")](o[mi("0x9")]());if(n[mi("0xe")](r)){const n=t[mi("0x5")][mi("0xb")](i[mi("0x23")][mi("0x24")],0),o=r[mi("0x27")](i,n);e[mi("0x26")](o)}else r[mi("0x16")](r[mi("0x27")](x[mi("0x1d")]));x.detach(),n[mi("0x1")](mi("0xa"),{writer:r})}))})),t[mi("0x7")].downcastDispatcher.on(mi("0x13"),$o(t,mi("0x4")),{priority:mi("0x14")}),t[mi("0x7")][mi("0x1c")].on(mi("0xc"),((t,e,n)=>{const r=n[mi("0x1e")][mi("0xd")](e[mi("0x0")]);if(r)for(const t of r)t[mi("0x1b")]("ck-suggestion-marker-split")&&(n[mi("0x1e")][mi("0x19")](t,e[mi("0x0")]),n[mi("0x20")][mi("0x22")](t))}),{priority:"high"}),t[mi("0x21")][mi("0x1c")].on(mi("0x13"),((e,n,r)=>{r[mi("0x15")].showSuggestionHighlights&&$o(t,mi("0x4"),{showActiveMarker:!1})[mi("0x25")](this)(e,n,r)}),{priority:"high"})}}const bi=["replace","bind","string","getRange","findByTextCallback","item","findNext","start","findPrevious","enableCommand","replaceAll","suggestion:deletion","_isInDeletionRange","createRange","markers","getMarkersGroup","model","has","editor","get","filter","FindAndReplaceEditing","end","TrackChangesEditing","plugins","handleFindCommand","afterInit","createPositionAt"];var pi,Ei;pi=bi,Ei=347,function(t){for(;--t;)pi.push(pi.shift())}(++Ei);const _i=function(t,e){return bi[t-=0]};class Ti extends t.Plugin{[_i("0xf")](){if(!this.editor.plugins[_i("0x6")](_i("0xa")))return;const t=this.editor[_i("0xd")][_i("0x8")](_i("0xc"));t[_i("0x1a")]("find",this[_i("0xe")][_i("0x12")](this)),t[_i("0x1a")](_i("0x17")),t[_i("0x1a")](_i("0x19")),t[_i("0x1a")](_i("0x11")),t[_i("0x1a")](_i("0x1b"))}[_i("0xe")](t,e,n={}){const r=this[_i("0x7")].plugins[_i("0x8")]("FindAndReplaceUtils");if(void 0!==n)return t((t=>(_i("0x13")==typeof e?r[_i("0x15")](e,n):e)(t)[_i("0x9")]((e=>!1===this[_i("0x1")](e,t[_i("0x16")])))),n)}_isInDeletionRange(t,e){const n=this[_i("0x7")][_i("0x5")][_i("0x2")](this[_i("0x7")][_i("0x5")][_i("0x10")](e,t[_i("0x18")]),this[_i("0x7")][_i("0x5")][_i("0x10")](e,t[_i("0xb")]));for(const t of this.editor[_i("0x5")][_i("0x3")][_i("0x4")](_i("0x0")))if(null!==n.getIntersection(t[_i("0x14")]()))return!0;return!1}}const yi=["commandName","registerDescriptionCallback","*Set font family:* %0","commandParams","_registerLegacyDescription","find","*Set font color:* %0","trim","format","normalizeSizeOptions","fontColor","FORMAT_FONT_BACKGROUND","locale","value","*Reset font background color*","FORMAT_FONT_SIZE","fontColor.colors","fontBackgroundColor","FontSize","FORMAT_FONT_COLOR","*Reset font size*","toLowerCase","afterInit","model","editor","get","*Reset font color*","registerAttributeLabel","plugins","label","config","*Set font background color:* %0","has","fontSize","fontFamily","FontSizeEditing","_descriptionFactory","fontBackgroundColor.colors","*Reset font family*"];var Ci,Ai;Ci=yi,Ai=411,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Ii=[{pluginName:ki("0xe"),commandName:ki("0xc")},{pluginName:"FontFamilyEditing",commandName:ki("0xd")},{pluginName:"FontColorEditing",commandName:ki("0x1c")},{pluginName:"FontBackgroundColorEditing",commandName:ki("0x23")}];class Ri extends t.Plugin{[ki("0x1")](){const t=this.editor[ki("0x1e")],e=this.editor.plugins[ki("0x4")]("TrackChangesEditing");for(const{pluginName:t,commandName:n}of Ii)this.editor[ki("0x7")][ki("0xb")](t)&&e._enableDefaultAttributesIntegration(n,[n]);t.t,e[ki("0xf")][ki("0x6")]("fontSize",Jr(t,ki("0x21"))),e[ki("0xf")].registerAttributeLabel(ki("0xd"),Jr(t,"FORMAT_FONT_FAMILY")),e[ki("0xf")][ki("0x6")](ki("0x1c"),Jr(t,ki("0x25"))),e[ki("0xf")][ki("0x6")](ki("0x23"),Jr(t,ki("0x1d"))),this[ki("0x16")]()}[ki("0x16")](){const t=this[ki("0x3")],e=t[ki("0x1e")];t.plugins[ki("0x4")]("TrackChangesEditing")[ki("0xf")][ki("0x13")]((t=>{const n=e.t;if("formatInline"!=t.type)return;const{data:r}=t;if(null!=r){if(ki("0xc")==r[ki("0x12")]){const t=r[ki("0x15")][0][ki("0x1f")];if(t){const r=n(this[ki("0x3")][ki("0x7")][ki("0x4")](ki("0x24"))[ki("0x1b")](this[ki("0x3")].config.get("fontSize.options"))[ki("0x17")]((e=>e[ki("0x2")]==t)).title)[ki("0x0")]();return{type:ki("0x1a"),content:Jr(e,"*Set font size:* %0",r)}}return{type:ki("0x1a"),content:Jr(e,ki("0x26"))}}if(ki("0xd")==r[ki("0x12")]){const t=r[ki("0x15")][0][ki("0x1f")];return t?{type:"format",content:Jr(e,ki("0x14"),t)}:{type:"format",content:Jr(e,ki("0x11"))}}if(ki("0x1c")==r.commandName){const t=r[ki("0x15")][0][ki("0x1f")];if(t){const r=(0,o.normalizeColorOptions)(this[ki("0x3")].config.get(ki("0x22"))).find((e=>e.model==t));let i=t,s="";return r&&(i=r[ki("0x8")],s=n(i)[ki("0x0")]()),{type:ki("0x1a"),content:Jr(e,ki("0x18"),s)[ki("0x19")](),color:{value:t,title:s||i}}}return{type:ki("0x1a"),content:Jr(e,ki("0x5"))}}if(ki("0x23")==r.commandName){const t=r[ki("0x15")][0][ki("0x1f")];if(t){const r=(0,o.normalizeColorOptions)(this.editor[ki("0x9")][ki("0x4")](ki("0x10")))[ki("0x17")]((e=>e.model==t));let i=t,s="";return r&&(i=r.label,s=n(i).toLowerCase()),{type:ki("0x1a"),content:Jr(e,ki("0xa"),s)[ki("0x19")](),color:{value:t,title:s||i}}}return{type:ki("0x1a"),content:Jr(e,ki("0x20"))}}}}))}}const Si=["toLowerCase","afterInit","fontBackgroundColor","label","toUpperCase","fontSize","find","model","join","fontColor","locale","registerDescriptionCallback","pasteFormat","commandParams","_registerLegacyDescription","get","TrackChangesEditing","copyFormat","entries","type","editor","split","commands","formatBlock","enableCommand","*Remove all formatting*","config","commandName","_enableDefaultAttributesIntegration","plugins","boolean","format","formatInline","slice","*Set format to:* %0","fontColor.colors","_descriptionFactory"];var vi,Ni;vi=Si,Ni=195,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Si[t-=0]};class Mi extends t.Plugin{[Li("0x1c")](){const t=this[Li("0xa")],e=t.plugins[Li("0x5")]("TrackChangesEditing"),n=t[Li("0xc")][Li("0x5")](Li("0x7")),r=t.commands[Li("0x5")](Li("0x2"));n&&r&&(e[Li("0x12")](Li("0x2")),e[Li("0xe")](Li("0x7")),this[Li("0x4")]())}[Li("0x4")](){const t=this[Li("0xa")],e=t[Li("0x0")];t[Li("0x13")].get(Li("0x6"))[Li("0x1a")][Li("0x1")]((n=>{if(Li("0xd")!=n[Li("0x9")]&&Li("0x16")!=n[Li("0x9")])return;const{data:r}=n;if(r&&Li("0x2")===r[Li("0x11")]){const n=[],o=r[Li("0x3")][0];for(const[e,r]of Object[Li("0x8")](o))n.push(wi(t,e,r));return n.length?{type:Li("0x15"),content:Jr(e,Li("0x18"),n[Li("0x23")](", "))}:{type:"format",content:Jr(e,Li("0xf"))}}}))}}function wi(t,e,n){const r=t.locale.t,i=e[Li("0xb")](/(?=[A-Z])/).join(" "),s=r(i.charAt(0)[Li("0x1f")]()+i[Li("0x17")](1))[Li("0x1b")]();if(Li("0x14")==typeof n)return s;if(Li("0x24")===e||Li("0x1d")===e){const e=(0,o.normalizeColorOptions)(t.config.get(Li("0x19")))[Li("0x21")]((t=>t[Li("0x22")]==n));return s+" ("+(e?r(e[Li("0x1e")]).toLowerCase():n)+")"}if(Li("0x20")===e&&isNaN(parseFloat(n))){const e=t[Li("0x13")][Li("0x5")]("FontSize").normalizeSizeOptions(t[Li("0x10")][Li("0x5")]("fontSize.options"))[Li("0x21")]((t=>t[Li("0x22")]==n));return s+" ("+(e?r(e.title).toLowerCase():n)+")"}return s+" ("+n+")"}const Oi=["has","paragraph","heading.options","heading","model","ELEMENT_HEADING_CUSTOM","registerDescriptionCallback","_registerLegacyDescription","_getHeadingLevel","config","*Change to:* %0","title","commandName","_headingOptions","plugins","match","afterInit","_descriptionFactory","view","get","locale","commandParams","formatBlock","find","editor","format","TrackChangesEditing"];var Fi,Di;Fi=Oi,Di=367,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Bi=function(t,e){return Oi[t-=0]};class Pi extends t.Plugin{[Bi("0x0")](){const t=this.editor;if(!t[Bi("0x19")][Bi("0xb")]("HeadingEditing"))return;this[Bi("0x18")]=t[Bi("0x14")][Bi("0x3")](Bi("0xd"));const e=t[Bi("0x4")],n=t[Bi("0x19")].get(Bi("0xa"));n._enableDefaultAttributesIntegration(Bi("0xe"));for(const t of this._headingOptions)Bi("0xc")!=t[Bi("0xf")]&&n[Bi("0x1")].registerElementLabel(t[Bi("0xf")],(n=>{const r=this._getHeadingLevel(t[Bi("0xf")]);return null!==r?Jr(e,"ELEMENT_HEADING",[n,r]):(o=n,i=t[Bi("0x16")],Jr(e,"ELEMENT_HEADING_CUSTOM",[o,i]));var o,i}));this._registerLegacyDescription()}[Bi("0x12")](){const t=this[Bi("0x8")],e=t[Bi("0x4")];t[Bi("0x19")].get(Bi("0xa"))._descriptionFactory[Bi("0x11")]((t=>{if(Bi("0x6")!=t.type)return;const{data:n}=t;if(n&&Bi("0xe")==n[Bi("0x17")]){const t=n[Bi("0x5")][0].value,s=this[Bi("0x13")](t);if(null!==s)return{type:Bi("0x9"),content:Jr(e,"*Change to:* %0",(1,i=s,Jr(e,"ELEMENT_HEADING",[1,i])))};const x=this[Bi("0x18")][Bi("0x7")]((e=>e[Bi("0xf")]===t))[Bi("0x16")];return{type:Bi("0x9"),content:Jr(e,Bi("0x15"),(r=1,o=x,Jr(e,Bi("0x10"),[r,o])))}}var r,o,i}))}[Bi("0x13")](t){var e,n;const r=t[Bi("0x1a")](/^heading(\d+)/);if(r)return r[1];const o=null===(e=this[Bi("0x18")])||void 0===e?void 0:e.find((e=>e.model==t));if(o&&o.view){const t=o[Bi("0x2")],e=(null!==(n=t.name)&&void 0!==n?n:t)[Bi("0x1a")](/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["config","color","get","afterInit","*Set highlight:* %0","type","locale","commandName","highlight.options","editor","highlight","value","plugins","registerAttributeLabel","find","_descriptionFactory","registerDescriptionCallback","_registerLegacyDescription","TrackChangesEditing","FORMAT_HIGHLIGHT","format","HighlightEditing","title","toLowerCase","_enableDefaultAttributesIntegration"];var ji,Gi;ji=Ui,Gi=304,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Hi=function(t,e){return Ui[t-=0]};class Vi extends t.Plugin{[Hi("0x18")](){const t=this[Hi("0x5")];if(!t[Hi("0x8")].has(Hi("0x11")))return;const e=t[Hi("0x8")][Hi("0x17")](Hi("0xe")),n=t[Hi("0x2")];e[Hi("0x14")](Hi("0x6"),[Hi("0x6")]),e[Hi("0xb")][Hi("0x9")](Hi("0x6"),Jr(n,Hi("0xf"))),this[Hi("0xd")]()}[Hi("0xd")](){const t=this[Hi("0x5")],e=t[Hi("0x2")];t[Hi("0x8")][Hi("0x17")](Hi("0xe"))[Hi("0xb")][Hi("0xc")]((n=>{if("formatInline"!=n[Hi("0x1")])return;const{data:r}=n;if(r&&Hi("0x6")==r[Hi("0x3")]){const n=e.t,o=r.commandParams[0][Hi("0x7")];if(o){const r=t[Hi("0x15")][Hi("0x17")](Hi("0x4"))[Hi("0xa")]((t=>t.model==o)),i=n(r[Hi("0x12")])[Hi("0x13")]();return{type:Hi("0x10"),content:Jr(e,Hi("0x0"),i),color:{value:r[Hi("0x16")],title:r[Hi("0x12")]}}}return{type:"format",content:Jr(e,"*Remove highlight*",Jr(e,Hi("0xf")))}}}))}}const zi=["has","createContainerElement","horizontalLine","afterInit","showSuggestionHighlights","for","createEmptyElement","div","insert","createPositionAt","TrackChangesEditing","ck-horizontal-line","dataDowncast","HorizontalLineEditing","get","plugins"];var Wi,Ki;Wi=zi,Ki=222,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class Xi extends t.Plugin{[qi("0x5")](){const t=this.editor;if(!t[qi("0x1")][qi("0x2")](qi("0xf")))return;t[qi("0x1")][qi("0x0")]("TrackChangesEditing").enableCommand(qi("0x4"));const e=t[qi("0x1")][qi("0x0")](qi("0xc")),n=t.locale;e._descriptionFactory.registerElementLabel(qi("0x4"),(t=>Jr(n,"ELEMENT_HORIZONTAL_LINE",t))),t.conversion[qi("0x7")](qi("0xe")).elementToStructure({model:qi("0x4"),view:(t,{writer:e,options:n})=>{if(!n[qi("0x6")])return null;const r=e[qi("0x3")](qi("0x9")),o=e[qi("0x8")]("hr");return e.addClass(qi("0xd"),r),e[qi("0xa")](e[qi("0xb")](r,0),o),r},converterPriority:"high"})}}const $i=["value","htmlEmbed","*Change %0 content*","_registerLegacyDescription","type","ELEMENT_HTML_EMBED","formatBlock","TrackChangesEditing","attribute","registerDescriptionCallback","key","start","locale","format","editor","plugins","afterInit","rawHtml","HtmlEmbed","_descriptionFactory","getFirstRange","nodeAfter","registerElementLabel","get","has","commandName"];var Zi,Yi;Zi=$i,Yi=320,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return $i[t-=0]};class Qi extends t.Plugin{[Ji("0x8")](){const t=this[Ji("0x6")];if(!t[Ji("0x7")][Ji("0x10")](Ji("0xa")))return;const e=t.plugins[Ji("0xf")]("TrackChangesEditing"),n=t[Ji("0x4")];e[Ji("0xb")][Ji("0xe")]("rawHtml",(t=>Jr(n,Ji("0x17"),t))),e._enableDefaultAttributesIntegration(Ji("0x13"),[],[Ji("0x12")]),e[Ji("0xb")][Ji("0x1")]((t=>{if(Ji("0x0")!=t[Ji("0x16")])return;const{data:e}=t;if(e&&Ji("0x12")==e[Ji("0x2")]&&t[Ji("0xc")]()[Ji("0x3")][Ji("0xd")].is("element",Ji("0x9"))){const t=Jr(n,Ji("0x17"));return{type:Ji("0x5"),content:Jr(n,Ji("0x14"),t)}}})),this[Ji("0x15")]()}[Ji("0x15")](){const t=this[Ji("0x6")],e=t[Ji("0x4")];t.plugins.get(Ji("0x19"))[Ji("0xb")].registerDescriptionCallback((t=>{if(Ji("0x18")!=t.type)return;const{data:n}=t;if(n&&Ji("0x13")==n[Ji("0x11")]){const t=Jr(e,Ji("0x17"));return{type:Ji("0x5"),content:Jr(e,"*Change %0 content*",t)}}}))}}const ts=["subType","registerElementLabel","getNearestSelectionRange","find","forward","model","newValue","createRange","previous","selection","join","markDeletion","imageTextAlternative","format","afterInit","commandParams","FORMAT_IMAGE_SIZE","ImageTextAlternativeEditing","imageTypeInline","isEqual","addObject","_enableDefaultAttributesIntegration","ELEMENT_INLINE_IMAGE","isBefore","key","locale","isCollapsed","length","commandName","change","toNext","formatInline","ELEMENT_CAPTION","Inline image to block image","registerDescriptionCallback","element","_descriptionFactory","getSuggestionCallback","isIntersecting","forceDefaultExecution","isOwn","formatBlock","nodeBefore","resizeImage","alt","*Remove image text alternative*","accept","imageStylePreApply","convertBlockImageToInline","registerCustomCallback","get","editor","TrackChangesEditing","discard","ImageEditing","isBlockImage","ImageBlockEditing","nodeAfter","markBlockFormat","imageCaption","createRangeOn","has","backward","chain","ImageUploadEditing","schema","_registerLegacyDescription","insertion","uploadImage","*Set image width:* %0","ELEMENT_IMAGE","convertInlineImageToBlock","_findSuggestions","imageTypeBlock","getContainedElement","imageInline","start","getFirstRange","ImageCaptionUtils","Block image to inline image","markInsertion","plugins","_suggestionFactory","detach","findIndex","fromPosition","*Set image text alternative:* %0","type","resizedWidth","caption","ImageInlineEditing","document","getCaptionFromImageModelElement","insertImage","removeObject","enableCommand","end","getClosestSelectedImageElement"];var es,ns;es=ts,ns=197,function(t){for(;--t;)es.push(es.shift())}(++ns);const rs=function(t,e){return ts[t-=0]};class os extends t.Plugin{[rs("0xd")](){const t=this[rs("0x32")];if(!t[rs("0x50")][rs("0x3c")](rs("0x35")))return;const e=t.plugins.get(rs("0x33")),n=t[rs("0x50")].get("ImageUtils"),r=t[rs("0x18")];e[rs("0x5e")](rs("0x5c")),e[rs("0x23")][rs("0x0")]("imageBlock",(t=>Jr(r,rs("0x45"),t))),e[rs("0x23")][rs("0x0")](rs("0x4a"),(t=>Jr(r,rs("0x15"),t))),e[rs("0x23")].registerElementLabel(rs("0x58"),(()=>Jr(r,rs("0x1f")))),t.plugins.has(rs("0x3f"))&&e.enableCommand(rs("0x43")),t[rs("0x50")][rs("0x3c")](rs("0x37"))&&t[rs("0x50")][rs("0x3c")](rs("0x59"))&&(e[rs("0x5e")]("imageTypeInline",((r,o)=>{const i=n[rs("0x60")](t.model.document[rs("0x8")]);t[rs("0x4")].change((()=>{e[rs("0x39")](i,{commandName:rs("0x11"),commandParams:[o]},[],rs("0x2f"))}))})),e[rs("0x5e")](rs("0x48"),((r,o)=>{t[rs("0x4")][rs("0x1c")]((i=>{let x=n[rs("0x60")](t.model[rs("0x5a")][rs("0x8")]),a=i[rs("0x3b")](x);const c=s.LivePosition.fromPosition(a.start,"toPrevious"),l=s.LivePosition[rs("0x54")](a[rs("0x5f")],rs("0x1d"));e[rs("0x26")]((()=>r(o))),x=n[rs("0x60")](t[rs("0x4")][rs("0x5a")][rs("0x8")]),a=i[rs("0x3b")](x);const u=i[rs("0x6")](c,l);c[rs("0x52")](),l[rs("0x52")](),e.markBlockFormat(x,{commandName:rs("0x11"),commandParams:[o]},[],rs("0x46")),u[rs("0x4b")][rs("0x16")](a[rs("0x4b")])&&e[rs("0x4f")](i[rs("0x6")](u[rs("0x4b")],a[rs("0x4b")]),"convertInlineImageToBlock"),a[rs("0x5f")][rs("0x16")](u.end)&&e[rs("0x4f")](i[rs("0x6")](a[rs("0x5f")],u[rs("0x5f")]),rs("0x46"))}))})),e[rs("0x51")].registerCustomCallback(rs("0x28"),rs("0x46"),rs("0x9"),(()=>!1)),e[rs("0x51")].registerCustomCallback("formatBlock",rs("0x46"),rs("0x2d"),(()=>!1)),e._suggestionFactory[rs("0x30")](rs("0x28"),rs("0x46"),rs("0x34"),e._suggestionFactory[rs("0x24")](rs("0x28"),"","accept")),e[rs("0x51")][rs("0x30")](rs("0x42"),rs("0x46"),rs("0x9"),(()=>!1)),e[rs("0x51")][rs("0x30")](rs("0x42"),rs("0x46"),rs("0x34"),(([n])=>{const r=e[rs("0x51")][rs("0x24")]("insertion","","discard");let o=n.start,i=n[rs("0x5f")];const s=t[rs("0x4")][rs("0x40")][rs("0x1")](o,rs("0x3d")),x=t[rs("0x4")].schema[rs("0x1")](i,rs("0x3"));s[rs("0x19")]&&(o=s[rs("0x4b")]),x[rs("0x19")]&&(i=x[rs("0x5f")]),r([t[rs("0x4")][rs("0x6")](o,i)])})),e[rs("0x51")][rs("0x30")]("formatBlock","convertInlineImageToBlock","chain",x),e[rs("0x51")][rs("0x30")](rs("0x42"),rs("0x46"),rs("0x3e"),x)),t.plugins[rs("0x3c")]("ImageCaptionEditing")&&(e[rs("0x5e")]("toggleImageCaption",((r,o)=>{const i=t[rs("0x50")][rs("0x31")](rs("0x4d"));let s=n[rs("0x60")](t[rs("0x4")][rs("0x5a")][rs("0x8")]),x=i[rs("0x5b")](s);t[rs("0x4")][rs("0x1c")]((()=>{if(x)return void e[rs("0xa")](t[rs("0x4")][rs("0x3b")](x));const a=n[rs("0x36")](s);r(o),s=n[rs("0x60")](t[rs("0x4")][rs("0x5a")].selection),x=i.getCaptionFromImageModelElement(s),e[rs("0x4f")](t[rs("0x4")][rs("0x3b")](x),a?null:rs("0x3a"))}))})),e._suggestionFactory[rs("0x30")](rs("0x42"),rs("0x3a"),"chain",x));const o=[{type:"formatBlock",subType:rs("0x2e")},{type:rs("0x42"),subType:rs("0x3a")},{type:rs("0x28"),subType:rs("0x46")},{type:rs("0x42"),subType:rs("0x46")}];function i(t,r){const i=o.findIndex((({type:e,subType:n})=>t[rs("0x56")]==e&&t[rs("0x61")]==n)),s=o[rs("0x53")]((({type:t,subType:e})=>r.type==t&&r[rs("0x61")]==e));if(i<0||s<0)return!1;const x=t[rs("0x4c")](),a=r[rs("0x4c")]();if((0==i||1==i)&&2==s&&x[rs("0x25")](a))return!0;if(2==i&&3==s){const t=e[rs("0x47")](x,"insertion").filter((({suggestion:t,meta:e})=>e[rs("0x27")]&&rs("0x46")==t[rs("0x61")]));if(t[rs("0x1a")]>1&&a[rs("0x5f")].isEqual(x[rs("0x4b")]))return!0;if(1==t[rs("0x1a")]&&(x[rs("0x4b")][rs("0x12")](a.end)||x[rs("0x5f")][rs("0x12")](a.start)))return!0}if(3==i&&3==s&&x.start[rs("0x16")](a.start)){const t=x[rs("0x5f")][rs("0x38")],e=a[rs("0x4b")][rs("0x29")];return n[rs("0x36")](t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[rs("0x50")][rs("0x3c")]("ImageResize")&&(e[rs("0x14")](rs("0x2a"),[],[rs("0x57")]),e[rs("0x23")].registerAttributeLabel(rs("0x57"),Jr(r,rs("0xf")))),t[rs("0x50")][rs("0x3c")](rs("0x10"))&&e[rs("0x14")](rs("0xb"),[],[rs("0x2b")]),e[rs("0x23")][rs("0x21")]((t=>{if(o[rs("0x2")]((({type:e,subType:n})=>t[rs("0x56")]==e&&t[rs("0x61")]==n)))return t[rs("0x7")]?{}:void 0})),e[rs("0x23")].registerDescriptionCallback((t=>{if(rs("0x42")==t[rs("0x56")]||"deletion"==t[rs("0x56")]){const e=t[rs("0x49")]();if(e&&e.is(rs("0x22"),"caption"))return{type:rs("0x42")==t[rs("0x56")]?rs("0x13"):rs("0x5d"),element:e,quantity:1}}})),e[rs("0x23")][rs("0x21")]((t=>"formatBlock"==t.type&&rs("0x46")==t[rs("0x61")]?{type:rs("0xc"),content:rs("0x20")}:rs("0x28")==t[rs("0x56")]&&"convertBlockImageToInline"==t[rs("0x61")]?{type:rs("0xc"),content:rs("0x4e")}:void 0)),e[rs("0x23")][rs("0x21")]((t=>{if("attribute"!=t[rs("0x56")])return;const{data:e}=t;if(!e||rs("0x2b")!=e[rs("0x17")])return;const n=e[rs("0x5")];return n?{type:rs("0xc"),content:Jr(r,rs("0x55"),'"'+n+'"')}:{type:"format",content:Jr(r,rs("0x2c"))}})),this._registerLegacyDescription()}[rs("0x41")](){const t=this[rs("0x32")],e=t[rs("0x18")];t.plugins[rs("0x31")](rs("0x33"))._descriptionFactory[rs("0x21")]((t=>{if(rs("0x28")!=t.type&&rs("0x1e")!=t[rs("0x56")])return;const{data:n}=t;if(n){if(rs("0xb")==n[rs("0x1b")]){const t=n[rs("0xe")][0].newValue;return t?{type:rs("0xc"),content:Jr(e,rs("0x55"),'"'+t+'"')}:{type:"format",content:Jr(e,rs("0x2c"))}}if(rs("0x2a")==n[rs("0x1b")]){const t=n[rs("0xe")][0].width;return t?{type:rs("0xc"),content:Jr(e,rs("0x44"),t)}:{type:rs("0xc"),content:Jr(e,"*Reset image width*")}}}}))}}const is=["_handleLegacySuggestions","formatBlock","_registerLegacyDescription","editor","get","plugins","registerCustomCallback","accept","commandName","_descriptionFactory","formatInline","registerDescriptionCallback","getSuggestionCallback","attribute","has","_suggestionFactory","oldValue","newValue","src","key","discard","*Replace image URL*","type","locale","TrackChangesEditing","replaceImageSource","ImageEditing","afterInit"];var ss,xs;ss=is,xs=470,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x5")](){if(!this[as("0x9")].plugins[as("0x14")](as("0x4")))return;const t=this.editor[as("0x1")],e=this.editor[as("0xb")][as("0xa")](as("0x2"));e._enableDefaultAttributesIntegration(as("0x3"),[],["src"]),e[as("0xf")].registerDescriptionCallback((e=>{if(as("0x13")!=e[as("0x0")])return;const{data:n}=e;return n&&as("0x18")==n[as("0x19")]?n[as("0x17")]&&n[as("0x16")]?{type:"format",content:Jr(t,as("0x1b"))}:{type:"format",content:""}:void 0})),this[as("0x6")]()}[as("0x6")](){const t=this[as("0x9")].plugins[as("0xa")](as("0x2"));t[as("0x15")][as("0xc")](as("0x7"),as("0x3"),"accept",t[as("0x15")][as("0x12")](as("0x7"),null,"discard")),t._suggestionFactory[as("0xc")]("formatBlock",as("0x3"),as("0x1a"),t[as("0x15")].getSuggestionCallback(as("0x7"),null,as("0xd"))),this[as("0x8")]()}_registerLegacyDescription(){const t=this.editor,e=t[as("0x1")];t[as("0xb")].get("TrackChangesEditing")[as("0xf")][as("0x11")]((t=>{if("formatBlock"!=t[as("0x0")]&&as("0x10")!=t[as("0x0")])return;const{data:n}=t;return n&&"replaceImageSource"===n[as("0xe")]?{type:"format",content:Jr(e,"*Replace image URL*")}:void 0}))}}const ls=["ImageStyleEditing","formatInline","head","imageStyle","toLowerCase","nodeAfter","createRangeOn","start","imageTypeInline","commandReversedParams","type","discard","has","getSuggestion","editor","model","filter","length","differ","getClosestSelectedImageElement","value","registerCustomCallback","newRange","isIntersecting","getSuggestionCallback","locale","getFirstRange","document","commandName","isEqual","normalizedStyles","refresh","name","registerPostFixer","hasSuggestion","getContainedElement","discardSuggestion","imageStylePostApply","subType","findIndex","from","end","insertion","title","next","isInContent","imageCaption","side","formatBlock","_splitMarkerName","join","get","_descriptionFactory","convertInlineImageToBlock","chain","markBlockFormat","forEach","registerDescriptionCallback","plugins","shouldConvertImageType","getSuggestions","change","getChangedMarkers","ImageUtils","commandParams","TrackChangesEditing","selection","commands","Users","imageStylePreApply","_suggestionFactory","isBlockImage","afterInit","accept","*Format:* %0"];var us,ds;us=ls,ds=161,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x3d")](){const t=this[gs("0x3")];if(!t[gs("0x2f")][gs("0x1")]("ImageStyleEditing"))return;const n=t.plugins[gs("0x28")](gs("0x36")),r=t[gs("0x2f")][gs("0x28")](gs("0x34")),o={};n.enableCommand(gs("0x43"),((o,i)=>{const s=t[gs("0x2f")][gs("0x28")](gs("0x39")).me,x=t[gs("0x38")].get(gs("0x43"));let a=r.getClosestSelectedImageElement(t[gs("0x4")].document[gs("0x37")]),c=t[gs("0x4")][gs("0x46")](a),l=x[gs("0x9")];if(l==i.value)return;const u={commandName:gs("0x43"),commandParams:[i],formatGroupId:(0,e.uid)()};t[gs("0x4")][gs("0x32")]((()=>{if(n[gs("0x31")]()[gs("0x5")]((t=>t[gs("0x22")]&&s==t.author&&(gs("0x25")==t[gs("0x4a")]||gs("0x41")==t[gs("0x4a")])&&(gs("0x3a")==t[gs("0x1b")]||gs("0x1a")==t[gs("0x1b")])&&t[gs("0xf")]().isEqual(c)))[gs("0x2d")]((t=>n.discardSuggestion(t[gs("0x42")]))),a=r[gs("0x8")](t.model[gs("0x10")][gs("0x37")]),c=t[gs("0x4")][gs("0x46")](a),x.refresh(),t[gs("0x38")][gs("0x28")](gs("0x48"))[gs("0x14")](),t[gs("0x38")][gs("0x28")]("imageTypeBlock").refresh(),l=x[gs("0x9")],l!=i.value)return r.isInlineImage(a)&&x[gs("0x30")](i[gs("0x9")],a)?(o({...i,setImageSizes:!1}),a=r[gs("0x8")](t[gs("0x4")][gs("0x10")][gs("0x37")]),void n[gs("0x2c")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x3a"))):void(r.isBlockImage(a)?n[gs("0x2c")](a,u,[],"imageStylePostApply"):n.markInlineFormat(c,u,gs("0x1a")))}))}));for(const e of t[gs("0x2f")][gs("0x28")](gs("0x40"))[gs("0x13")])o[e[gs("0x15")]]=e[gs("0x20")][gs("0x44")]();n[gs("0x3b")].registerCustomCallback(gs("0x25"),"imageStylePreApply",gs("0x27"),(()=>!1)),n[gs("0x3b")][gs("0xa")]("formatBlock",gs("0x1a"),gs("0x27"),(()=>!1)),n[gs("0x3b")][gs("0xa")](gs("0x41"),gs("0x1a"),gs("0x27"),(()=>!1)),n[gs("0x3b")].registerCustomCallback("formatBlock","imageStylePreApply",gs("0x3e"),(([t])=>{r.setImageNaturalSizeAttributes(t[gs("0x18")]())})),n[gs("0x3b")][gs("0xa")](gs("0x25"),"imageStylePreApply",gs("0x0"),((t,e)=>{n[gs("0x3b")][gs("0xd")](gs("0x25"),"",gs("0x3e"))(t,{commandName:e[gs("0x11")],commandParams:e[gs("0x49")]})})),n[gs("0x3b")].registerCustomCallback("formatBlock",gs("0x3a"),gs("0x2b"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:gs("0x25"),subType:"imageStylePreApply"},{type:"insertion",subType:gs("0x23")},{type:gs("0x25"),subType:"convertInlineImageToBlock"},{type:gs("0x1f"),subType:gs("0x2a")}];function s(t,e){const o=i[gs("0x1c")]((({type:e,subType:n})=>t[gs("0x4a")]==e&&t[gs("0x1b")]==n)),s=i[gs("0x1c")]((({type:t,subType:n})=>e[gs("0x4a")]==t&&e[gs("0x1b")]==n));if(o<0||s<0)return!1;const x=t.getFirstRange(),a=e[gs("0xf")]();if((0==o||1==o)&&2==s&&x[gs("0xc")](a))return!0;if(2==o&&3==s){const t=n._findSuggestions(x,gs("0x1f")).filter((({suggestion:t,meta:e})=>e.isOwn&&gs("0x2a")==t[gs("0x1b")]));if(t[gs("0x6")]>1&&a.end[gs("0x12")](x[gs("0x47")]))return!0;if(1==t[gs("0x6")]&&(x[gs("0x47")][gs("0x12")](a[gs("0x1e")])||x[gs("0x1e")][gs("0x12")](a[gs("0x47")])))return!0}if(3==o&&3==s&&x[gs("0x47")].isBefore(a.start)){const t=x[gs("0x1e")][gs("0x45")],e=a.start.nodeBefore;return r[gs("0x3c")](t)&&t===e}return!1}t[gs("0x4")][gs("0x10")][gs("0x16")]((()=>{let e=!1;const o=Array[gs("0x1d")](t[gs("0x4")].document[gs("0x7")][gs("0x33")]());for(const{name:t,data:i}of o){const{group:o,type:s,subType:x,id:a}=n[gs("0x26")](t);if("suggestion"==o&&n[gs("0x17")](a)){if("formatBlock"==s&&(gs("0x3a")==x||"imageStylePostApply"==x)){const t=n[gs("0x2")](a);if(i[gs("0xb")]){const o=t[gs("0xf")]()[gs("0x18")]();if(r[gs("0x3c")](o))continue;n[gs("0x19")](t),e=!0}}if(gs("0x1f")==s&&gs("0x23")==x&&!i.newRange){const t=n[gs("0x2")](a);t[gs("0x21")]&&t[gs("0x21")][gs("0x22")]&&(n.discardSuggestion(t.next),e=!0)}}}return e})),this._registerLegacyDescription(o)}_registerLegacyDescription(t){const e=this[gs("0x3")],n=e[gs("0xe")];e[gs("0x2f")][gs("0x28")](gs("0x36"))[gs("0x29")][gs("0x2e")]((e=>{if("formatBlock"!=e[gs("0x4a")]&&gs("0x41")!=e[gs("0x4a")])return;const{data:r}=e;if(!r||gs("0x43")!=r.commandName)return;const o=r[gs("0x35")][0][gs("0x9")];return i=gs("0x24")===o?Jr(n,"FORMAT_SIDE_IMAGE"):t[o]||o,{type:"format",content:Jr(n,gs("0x3f"),i)};var i}))}}const ms=["get","collaboration_features","plugins","track_changes","editor","dataInsert","high","bind","_trackChangesExecuted","lowest","listenTo","Users","TrackChangesEditing","trackChanges","execute","_setSuggestionData","importWord","commands","_handleImportedData","enableCommand","afterInit","value","_trackChangesValueDuringImport"];var hs,bs;hs=ms,bs=370,function(t){for(;--t;)hs.push(hs.shift())}(++bs);const ps=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ps("0x6")]=!1}[ps("0x12")](){const t=this.editor,e=t[ps("0xf")][ps("0x15")](ps("0xe")),n=t.commands[ps("0x15")](ps("0xb"));e&&(e.on(ps("0xc"),((t,[,e])=>{this[ps("0x14")]=n[ps("0x13")],e[ps("0x16")][ps("0x1")]=!this[ps("0x14")]}),{priority:ps("0x4")}),this[ps("0x8")](e,ps("0x3"),this[ps("0x10")][ps("0x5")](this)),this[ps("0x8")](e,ps("0x3"),(()=>{this[ps("0x6")]&&(n.execute(),this[ps("0x6")]=!1)}),{priority:ps("0x7")}),t.plugins[ps("0x15")](ps("0xa"))[ps("0x11")](ps("0xe")))}[ps("0x10")](t,e){const{suggestions:n}=e,r=this[ps("0x2")][ps("0xf")][ps("0x15")](ps("0xb")),o=r[ps("0x13")];this[ps("0x14")]!==o&&(r.execute(),this[ps("0x6")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:r})=>{const o={id:t,type:e,authorId:this[ps("0x2")][ps("0x0")].get(ps("0x9")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:ps("0xe")}}};this[ps("0x2")][ps("0x0")][ps("0x15")](ps("0xa"))[ps("0xd")](o)}))}}const _s=["_registerLegacyDescription","IndentBlock","TrackChangesEditing","FORMAT_INDENT","has","indent","plugins","type","_enableDefaultAttributesIntegration","*Outdent:* %0","format","editor","*Indent:* %0","commandName","blockIndent","locale","indentBlock","_descriptionFactory","afterInit","getItemLabel","_registerBlockAttribute","enableCommand","getItems","outdentBlock","registerAttributeLabel","IndentEditing","get"];var Ts,ys;Ts=_s,ys=349,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x14")](){const t=this[Cs("0xd")],e=t[Cs("0x8")].get(Cs("0x4"));if(t[Cs("0x8")][Cs("0x6")](Cs("0x0"))&&(e[Cs("0x17")](Cs("0x7")),e[Cs("0x17")]("outdent")),t[Cs("0x8")][Cs("0x6")](Cs("0x3")))for(const t of[Cs("0x12"),Cs("0x19")])e[Cs("0xa")](t);const n=t[Cs("0x11")];e[Cs("0x16")](Cs("0x10")),e._descriptionFactory[Cs("0x1a")](Cs("0x10"),Jr(n,Cs("0x5"))),this[Cs("0x2")]()}_registerLegacyDescription(){const t=this[Cs("0xd")],e=t[Cs("0x11")],n=t[Cs("0x8")][Cs("0x1")](Cs("0x4"));n[Cs("0x13")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Cs("0x9")])return;const{data:r}=t;if(!r)return;if(Cs("0x12")!=r[Cs("0xf")]&&"outdentBlock"!=r.commandName)return;const o=t[Cs("0x18")]()[0],i=n._descriptionFactory[Cs("0x15")](o);return"indentBlock"==r.commandName?{type:Cs("0xc"),content:Jr(e,Cs("0xe"),i)}:Cs("0x19")==r.commandName?{type:"format",content:Jr(e,Cs("0xb"),i)}:void 0}))}}var ks,Is,Rs=["TrackChangesEditing","input","plugins","get","editor","enableCommand"];ks=Rs,Is=139,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Ss=function(t,e){return Rs[t-=0]};class vs extends t.Plugin{static get requires(){return[Vo.Input]}init(){this[Ss("0x3")][Ss("0x1")][Ss("0x2")](Ss("0x5"))[Ss("0x4")](Ss("0x0"))}}const Ns=["get","_enableDefaultAttributesIntegration","plugins","*Set link:* %0","*Remove link*","map","key","_registerLegacyDescription","registerDescriptionCallback","locale","type","commandParams","_descriptionFactory","attribute","TrackChangesEditing","commandName","registerAttributeLabel","LinkEditing","has","format","editor","commands","toLowerCase","unlink","link"];var Ls,Ms;Ls=Ns,Ms=218,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[ws("0x0")](ws("0x18")))return;const e=t[ws("0x9")][ws("0x7")](ws("0x15")),n=t[ws("0x3")][ws("0x7")](ws("0x6"));e[ws("0x8")](ws("0x6"),["linkHref",...n.manualDecorators[ws("0xc")]((t=>t.id))]),e[ws("0x8")](ws("0x5"));for(const t of n.manualDecorators)e[ws("0x13")][ws("0x17")](t.id,"link ("+t.label[ws("0x4")]()+")");e[ws("0x13")][ws("0xf")]((e=>{if(ws("0x14")!=e[ws("0x11")])return;const{data:n}=e;if(!n||"linkHref"!=n[ws("0xd")])return;const r=n.newValue,o=t[ws("0x10")];return{type:ws("0x1"),content:r?Jr(o,"*Set link:* %0",'"'+r+'"'):Jr(o,ws("0xb"))}})),this[ws("0xe")]()}[ws("0xe")](){const t=this[ws("0x2")],e=t.locale;t[ws("0x9")][ws("0x7")](ws("0x15"))._descriptionFactory[ws("0xf")]((t=>{if("formatInline"!=t[ws("0x11")])return;const{data:n}=t;if(n){if(ws("0x6")==n[ws("0x16")]){const t=n[ws("0x12")][0];return{type:ws("0x1"),content:Jr(e,ws("0xa"),'"'+t+'"')}}return ws("0x5")==n[ws("0x16")]?{type:ws("0x1"),content:Jr(e,ws("0xb"))}:void 0}}))}}const Fs=["document","plugins","previousSibling","selection","checkChild","commandParams","*Indent:* %0","add","bulletedList","numbered","value","*Outdent:* %0","findIndex","registerDescriptionCallback","outdentList","enableCommand","has","commandName","editor","_descriptionFactory","getAttribute","*Check item*","createRange","checkTodoList","markBlockFormat","formatBlock","indentList","listItem","from","createPositionAt","*Change to:* %0","replace","filter","element","numberedList","_selectedElements","todoList","ELEMENT_BULLETED_LIST","forceValue","commands","parent","isObject","getSelectedBlocks","listType","blockName","nextSibling","format","ELEMENT_LIST_ITEM","ELEMENT_TODO_LIST","slice","before","change","ELEMENT_NUMBERED_LIST","ListEditing","listIndent","List","type","model","get","name"];var Ds,Bs;Ds=Fs,Bs=288,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{afterInit(){const t=this[Ps("0x1e")],e=t.locale;if(!t.plugins[Ps("0x1c")](Ps("0x5")))return;const n=t[Ps("0xd")][Ps("0xa")]("TrackChangesEditing"),r=t[Ps("0xd")][Ps("0x1c")]("TodoListEditing");function o(e){return()=>{const r=t[Ps("0x9")][Ps("0xc")][Ps("0xf")],o=t[Ps("0x33")].get(e);if(o[Ps("0x16")])return void t.execute("paragraph",{});const i=e.slice(0,-4),s=function(t,e,n){let r=Array.from(t).filter((t=>{return e=t,(r=n)[Ps("0x10")](e[Ps("0x34")],Ps("0x27"))&&!r[Ps("0x35")](e);var e,r}));r=r[Ps("0x2c")]((t=>!t.is(Ps("0x2d"),Ps("0x27"))||t.getAttribute(Ps("0x37"))!=e));const o=new Set;for(const t of r)t.is("element",Ps("0x27"))?o.add(js(t)):o[Ps("0x13")](t);return Array.from(o)}(r[Ps("0x36")](),i,t[Ps("0x9")].schema);t[Ps("0x9")][Ps("0x3")]((()=>{for(const t of s)n[Ps("0x24")](t,{commandName:e,commandParams:[{forceValue:!o[Ps("0x16")]}],formatGroupId:Ps("0x38")},Gs(t))}))}}function i(e){return()=>{const r=function(t){let e=Array[Ps("0x28")](t);const n=e[Ps("0x18")]((t=>Ps("0x27")!=t.name));return n>-1&&(e=e[Ps("0x1")](0,n)),e}(t.model[Ps("0xc")][Ps("0xf")][Ps("0x36")]()),o=t[Ps("0x9")][Ps("0x22")](t.model[Ps("0x29")](r[0],Ps("0x2")),t[Ps("0x9")].createPositionAt(r[r.length-1],"end"));t[Ps("0x9")].change((()=>{n.markBlockFormat(o,{commandName:e,commandParams:[],formatGroupId:Ps("0x6")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x39")];for(;t&&t.getAttribute("listIndent")>n.getAttribute(Ps("0x6"));)e[Ps("0x13")](t),t=t[Ps("0x39")]}return Array[Ps("0x28")](e)}(r))}))}}n[Ps("0x1b")](Ps("0x2e"),o(Ps("0x2e"))),n[Ps("0x1b")](Ps("0x14"),o(Ps("0x14"))),r&&n[Ps("0x1b")](Ps("0x30"),o(Ps("0x30"))),n[Ps("0x1b")](Ps("0x26"),i("indentList")),n.enableCommand(Ps("0x1a"),i(Ps("0x1a"))),r&&n.enableCommand("checkTodoList",(()=>{const e=t[Ps("0x33")][Ps("0xa")](Ps("0x23")),r=Array[Ps("0x28")](e[Ps("0x2f")]);r.filter((t=>t[Ps("0x20")]("todoListChecked")!=e.value)),t[Ps("0x9")][Ps("0x3")]((()=>{for(const t of r)n.markBlockFormat(t,{commandName:Ps("0x23"),commandParams:[{forceValue:!e.value}]})}))})),n[Ps("0x1f")].registerElementLabel(Ps("0x27"),(t=>Jr(e,Ps("0x3b"),t))),n[Ps("0x1f")][Ps("0x19")]((t=>{if(Ps("0x25")!=t[Ps("0x8")]&&"formatInline"!=t.type)return;const{data:n}=t;if(n){if(Ps("0x2e")==n[Ps("0x1d")]||"bulletedList"==n.commandName||Ps("0x30")==n[Ps("0x1d")])switch(n[Ps("0x1d")][Ps("0x2b")](Ps("0x7"),"")){case"bulleted":return r(Jr(e,Ps("0x31")));case Ps("0x15"):return r(Jr(e,Ps("0x4")));case"todo":return r(Jr(e,Ps("0x0")))}if(Ps("0x26")==n[Ps("0x1d")])return{type:Ps("0x3a"),content:Jr(e,Ps("0x12"),Jr(e,Ps("0x3b")))};if(Ps("0x1a")==n[Ps("0x1d")])return{type:Ps("0x3a"),content:Jr(e,Ps("0x17"),Jr(e,"ELEMENT_LIST_ITEM"))};if(Ps("0x23")==n[Ps("0x1d")])return n[Ps("0x11")][0][Ps("0x32")]?{type:Ps("0x3a"),content:Jr(e,Ps("0x21"))}:{type:"format",content:Jr(e,"*Uncheck item*")}}function r(t){return{type:Ps("0x3a"),content:Jr(e,Ps("0x2a"),t)}}}))}}function js(t){const e=t[Ps("0x20")](Ps("0x6"));if(0==e)return t;let n=t;for(;t[Ps("0xe")]&&t[Ps("0xe")].is(Ps("0x2d"),Ps("0x27"));){const r=t[Ps("0xe")][Ps("0x20")](Ps("0x6"));if(r==e)n=t[Ps("0xe")];else if(r<e)break;t=t[Ps("0xe")]}return n}function Gs(t){const e=[];if(t.is(Ps("0x2d"),"listItem")&&t[Ps("0x20")](Ps("0x6"))>0){let n=t[Ps("0x39")];for(;n&&"listItem"==n[Ps("0xb")]&&n[Ps("0x20")](Ps("0x6"))==t[Ps("0x20")]("listIndent");)e.push(n),n=n.nextSibling}return e}const Hs=["_getSuggestionBlocks","*Format:* set order to reversed","forward","createRange","reversed","handleListStyleCommand","markMultiRangeBlockFormat","from","element","document","_LIST_","map","filter","*Format:* set order to regular","editor","formatInline","model","getSiblingNodes","getSelectedBlocks","formatBlock","ListPropertiesEditing","ELEMENT_","getAttribute","toUpperCase","handleListStartCommand","listStart","*Change to:* %0","config","commandParams","bind","handleListReversedCommand","type","before","getListTypeFromListStyleType","_getTranslationKeyForListStyle","enableCommand","get","listStyle","length","registerDescriptionCallback","listReversed","getFirstPosition","plugins","listItem","createPositionAt","*Format:* set start index to %0","TrackChangesEditing","push","startIndex","numbered","handleDescriptions","parent","format","selection","_getSuggestionBlocksForListStyle","listType","change","locale","ListUtils","list.properties"];var Vs,zs;Vs=Hs,zs=175,function(t){for(;--t;)Vs.push(Vs.shift())}(++zs);const Ws=function(t,e){return Hs[t-=0]};class Ks extends t.Plugin{afterInit(){if(!this.editor[Ws("0x2f")].has(Ws("0x19")))return;const t=this[Ws("0x13")][Ws("0x20")][Ws("0x29")](Ws("0x4")),e=this[Ws("0x13")][Ws("0x2f")][Ws("0x29")](Ws("0x33"));t.styles&&e.enableCommand("listStyle",this[Ws("0xa")][Ws("0x22")](this)),t[Ws("0x9")]&&e[Ws("0x28")](Ws("0x2d"),this[Ws("0x23")][Ws("0x22")](this)),t[Ws("0x35")]&&e[Ws("0x28")](Ws("0x1e"),this[Ws("0x1d")][Ws("0x22")](this)),e._descriptionFactory[Ws("0x2c")](this[Ws("0x37")][Ws("0x22")](this))}[Ws("0xa")](t,e={}){const n=this.editor[Ws("0x2f")][Ws("0x29")](Ws("0x33")),r=this[Ws("0x3b")]();this[Ws("0x13")].model[Ws("0x1")]((()=>{n[Ws("0xb")](r,{commandName:Ws("0x2a"),commandParams:[{type:e[Ws("0x24")]}],formatGroupId:Ws("0x2a")})}))}[Ws("0x23")](t,e={}){const n=this[Ws("0x13")][Ws("0x2f")][Ws("0x29")](Ws("0x33")),r=this[Ws("0x5")]((t=>t.is(Ws("0xd"),Ws("0x30"))&&Ws("0x36")===t[Ws("0x1b")]("listType")));if(r.length<1)return;const o=r[Ws("0x10")]((t=>this[Ws("0x13")][Ws("0x15")][Ws("0x8")](this[Ws("0x13")][Ws("0x15")][Ws("0x31")](t,Ws("0x25")),this.editor.model.createPositionAt(t,0))));this[Ws("0x13")][Ws("0x15")][Ws("0x1")]((()=>{n[Ws("0xb")](o,{commandName:"listReversed",commandParams:[{reversed:e[Ws("0x9")]}],formatGroupId:Ws("0x2d")})}))}handleListStartCommand(t,e={}){const n=this[Ws("0x13")][Ws("0x2f")].get(Ws("0x33")),r=this[Ws("0x5")]((t=>t.is(Ws("0xd"),Ws("0x30"))&&Ws("0x36")===t[Ws("0x1b")](Ws("0x0"))));if(r[Ws("0x2b")]<1)return;const o=r[Ws("0x10")]((t=>this[Ws("0x13")][Ws("0x15")][Ws("0x8")](this[Ws("0x13")].model.createPositionAt(t,Ws("0x25")),this[Ws("0x13")][Ws("0x15")][Ws("0x31")](t,0))));this[Ws("0x13")].model[Ws("0x1")]((()=>{n[Ws("0xb")](o,{commandName:Ws("0x1e"),commandParams:[{startIndex:e[Ws("0x35")]}],formatGroupId:Ws("0x1e")})}))}[Ws("0x37")](t){if(Ws("0x18")!=t.type&&Ws("0x14")!=t[Ws("0x24")])return;const e=this[Ws("0x13")][Ws("0x2")],{data:n}=t;if(!n)return;let r,o;switch(n.commandName){case"listStyle":r=Ws("0x1f"),o={type:Ws("0x39"),content:Jr(e,r,Jr(e,this[Ws("0x27")](n[Ws("0x21")][0][Ws("0x24")])))};break;case Ws("0x2d"):r=n[Ws("0x21")][0][Ws("0x9")]?Ws("0x6"):Ws("0x12"),o={type:Ws("0x39"),content:Jr(e,r)};break;case"listStart":r=Ws("0x32"),o={type:Ws("0x39"),content:Jr(e,r,n.commandParams[0][Ws("0x35")])}}return o}_getSuggestionBlocksForListStyle(){var t,e,n,r;const o=this[Ws("0x13")][Ws("0x2f")][Ws("0x29")](Ws("0x3"));let i=Array.from(this[Ws("0x13")][Ws("0x15")].document[Ws("0x3a")][Ws("0x17")]());return(null===(t=i[0])||void 0===t?void 0:t.is("element",Ws("0x30")))&&i.unshift(...o[Ws("0x16")](this[Ws("0x13")][Ws("0x15")].document[Ws("0x3a")][Ws("0x2e")](),"backward")),(null===(e=i[i[Ws("0x2b")]-1])||void 0===e?void 0:e.is(Ws("0xd"),Ws("0x30")))&&i[Ws("0x34")](...o[Ws("0x16")](this[Ws("0x13")].model[Ws("0xe")][Ws("0x3a")].getLastPosition(),Ws("0x7"))),i=[...new Set(i)],(null===(r=null===(n=this[Ws("0x13")][Ws("0x15")][Ws("0xe")][Ws("0x3a")][Ws("0x2e")]())||void 0===n?void 0:n[Ws("0x38")])||void 0===r?void 0:r.is(Ws("0xd"),Ws("0x30")))&&(i=i[Ws("0x11")]((t=>t.is(Ws("0xd"),Ws("0x30"))))),i}[Ws("0x5")](t){const e=this[Ws("0x13")][Ws("0x2f")][Ws("0x29")](Ws("0x3"));let n=Array[Ws("0xc")](this[Ws("0x13")].model[Ws("0xe")][Ws("0x3a")].getSelectedBlocks())[Ws("0x11")](t)[Ws("0x10")]((t=>{const n=this[Ws("0x13")][Ws("0x15")][Ws("0x31")](t,0);return[...e.getSiblingNodes(n,"backward"),...e.getSiblingNodes(n,Ws("0x7"))]})).flat();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Ws("0x1a")+this[Ws("0x13")][Ws("0x2f")][Ws("0x29")]("ListUtils")[Ws("0x26")](t)[Ws("0x1c")]()+Ws("0xf")+t[Ws("0x1c")]().replace(/-/g,"_")}}const qs=["data","editor","options","high","elementToElement","locale","stop","conversion","createEmptyElement","get","registerElementLabel","has","dataDowncast","downcastDispatcher","media","MediaEmbedEditing","mediaEmbed","div","_descriptionFactory","showSuggestionHighlights","for","plugins","TrackChangesEditing"];var Xs,$s;Xs=qs,$s=297,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{afterInit(){const t=this[Zs("0x3")];if(!t[Zs("0x0")][Zs("0xd")](Zs("0x11")))return;const e=t[Zs("0x0")][Zs("0xb")](Zs("0x1")),n=t[Zs("0x7")];e.enableCommand(Zs("0x12")),e[Zs("0x14")][Zs("0xc")](Zs("0x10"),(t=>Jr(n,"ELEMENT_MEDIA",t))),t[Zs("0x9")][Zs("0x16")](Zs("0xe"))[Zs("0x6")]({model:"media",view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Zs("0xa")](Zs("0x13"))},converterPriority:Zs("0x5")}),t[Zs("0x2")][Zs("0xf")].on("attribute:url:media",((t,e,n)=>{n[Zs("0x4")][Zs("0x15")]&&t[Zs("0x8")]()}),{priority:Zs("0x5")})}}const Js=["MentionEditing","plugins","TrackChangesEditing","afterInit","get","mention","has","editor"];var Qs,tx;Qs=Js,tx=126,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x5")](){const t=this[ex("0x1")];t[ex("0x3")][ex("0x0")](ex("0x2"))&&t[ex("0x3")][ex("0x6")](ex("0x4")).enableCommand(ex("0x7"))}}const rx=["TrackChangesEditing","plugins","registerElementLabel","get","ELEMENT_PAGE_BREAK","PageBreakEditing","afterInit","has","pageBreak","enableCommand","_descriptionFactory","editor"];var ox,ix;ox=rx,ix=248,function(t){for(;--t;)ox.push(ox.shift())}(++ix);const sx=function(t,e){return rx[t-=0]};class xx extends t.Plugin{[sx("0xa")](){const t=this[sx("0x3")];if(!t[sx("0x5")][sx("0xb")](sx("0x9")))return;t[sx("0x5")][sx("0x7")]("TrackChangesEditing")[sx("0x1")](sx("0x0"));const e=t.plugins[sx("0x7")](sx("0x4")),n=t.locale;e[sx("0x2")][sx("0x6")](sx("0x0"),(t=>Jr(n,sx("0x8"),t)))}}const ax=["addClass","editor","insertion","get","isLimit","*Insert:* %0","afterInit","checkChild","markerRange","data","Paragraph","nodeAfter","highest","downcastDispatcher","writer","commandName","bindElementToMarker","addMarker:suggestion:insertion","end","$text","ELEMENT_PARAGRAPH","start","insert","paragraph","consumable","getItemLabel","formatBlock","ck-suggestion-marker--active","_registerLegacyDescription","schema","_enableDefaultAttributesIntegration","mapper","type","ck-suggestion-marker-split","_descriptionFactory","format","activeMarkers","registerElementLabel","editing","isTouching","locale","isBlock","span","model","markerName","plugins","TrackChangesEditing","options","registerDescriptionCallback"];var cx,lx;cx=ax,lx=288,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0xc")](){const t=this[ux("0x7")];if(!t[ux("0x2")].has(ux("0x10")))return;const e=t[ux("0x2e")],n=t[ux("0x2")][ux("0x9")](ux("0x3"));n._descriptionFactory[ux("0x2b")](ux("0x1d"),(t=>Jr(e,ux("0x1a"),t))),n[ux("0x24")](ux("0x1d")),n.enableCommand("insertParagraph"),t[ux("0x2c")].downcastDispatcher.on(ux("0x17"),gx(t),{priority:ux("0x12")}),t[ux("0xf")][ux("0x13")].on("addMarker:suggestion:insertion",((e,n,r)=>{r[ux("0x4")].showSuggestionHighlights&&gx(t,{showActiveMarker:!1})(e,n,r)}),{priority:ux("0x12")});const r=n._descriptionFactory;r[ux("0x5")]((n=>{if(ux("0x8")!==n[ux("0x26")])return;const{start:o,end:i}=n.getFirstRange();if(!o[ux("0x2d")](i)||!o[ux("0x11")])return;const s=t[ux("0x0")][ux("0x23")],x=o[ux("0x11")];return s[ux("0x2f")](x)&&!s[ux("0xa")](x)&&s[ux("0xd")](x,"$text")?{type:ux("0x8"),content:Jr(e,ux("0xb"),r[ux("0x1f")](x,1))}:void 0})),this[ux("0x22")]()}_registerLegacyDescription(){const t=this[ux("0x7")],e=t[ux("0x2e")];t[ux("0x2")].get(ux("0x3"))[ux("0x28")][ux("0x5")]((t=>{if(ux("0x20")!=t[ux("0x26")])return;const{data:n}=t;return n&&"paragraph"==n[ux("0x15")]?{type:ux("0x29"),content:Jr(e,"*Change to:* %0",Jr(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,r,o)=>{const i=t[ux("0x2")].get(ux("0x3")),s=r[ux("0xe")][ux("0x1b")],x=r[ux("0xe")][ux("0x18")],a=t.model[ux("0x23")];if(!s[ux("0x2d")](x)||!s[ux("0x11")])return;const c=s.nodeAfter;if(a[ux("0x2f")](c)&&!a[ux("0xa")](c)&&a[ux("0xd")](c,ux("0x19"))){if(!o[ux("0x1e")].consume(r[ux("0xe")],n.name))return;const t=o.writer.createUIElement(ux("0x30"),{class:ux("0x27")}),s=o[ux("0x25")].toViewPosition(x);e&&i[ux("0x2a")].includes(r.markerName)&&o.writer[ux("0x6")](ux("0x21"),t),o[ux("0x14")][ux("0x1c")](s,t),o.mapper[ux("0x16")](t,r[ux("0x1")])}}}const fx=["_enableDefaultAttributesIntegration","removeFormat","type","formatBlock","TrackChangesEditing","format","plugins","get","editor","locale","afterInit","formatInline"];var mx,hx;mx=fx,hx=365,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const bx=function(t,e){return fx[t-=0]};class px extends t.Plugin{[bx("0x5")](){const t=this[bx("0x3")];t[bx("0x1")].has("RemoveFormatEditing")&&(t[bx("0x1")].get("TrackChangesEditing")[bx("0x7")](bx("0x8")),this._registerLegacyDescription())}_registerLegacyDescription(){const t=this[bx("0x3")];t[bx("0x1")][bx("0x2")](bx("0xb"))._descriptionFactory.registerDescriptionCallback((e=>{if(bx("0xa")!=e[bx("0x9")]&&bx("0x6")!=e[bx("0x9")])return;const{data:n}=e;return n&&bx("0x8")==n.commandName?{type:bx("0x0"),content:Jr(t[bx("0x4")],"*Remove all formatting*")}:void 0}))}}const Ex=["acceptSuggestion","acceptSelectedSuggestions","get","goToNextRestrictedEditingException","discardAllSuggestions","discardSuggestion","editor","discardSelectedSuggestions","plugins","has","afterInit","enableCommand","TrackChangesEditing","goToPreviousRestrictedEditingException","acceptAllSuggestions"];var _x,Tx;_x=Ex,Tx=187,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x3")](){const t=this[yx("0xe")];if(!t.plugins[yx("0x2")]("RestrictedEditingModeEditing"))return;const e=t[yx("0x1")][yx("0xa")](yx("0x5"));e[yx("0x4")](yx("0x6")),e[yx("0x4")](yx("0xb"));const n=t[yx("0x1")].get("RestrictedEditingModeEditing");n[yx("0x4")]("trackChanges"),n[yx("0x4")](yx("0x8")),n[yx("0x4")](yx("0xd")),n[yx("0x4")](yx("0x7")),n[yx("0x4")](yx("0xc")),n[yx("0x4")](yx("0x9")),n.enableCommand(yx("0x0"))}}const Ax=["deletion","split","options","model","writer","merge","TrackChangesEditing","data","downcastDispatcher","markerRange","createUIElement","mapper","markerName","addClass","high","name","init","editor","activeMarkers","addMarker:suggestion:deletion","addMarker:suggestion:insertion","shiftEnter","registerElementLabel","plugins","ck-suggestion-marker--active","bindElementToMarker","getItems","showSuggestionHighlights","editing","createPositionBefore","consumable","requires","enableCommand","test","locale","ck-suggestion-marker-","get","span"];var kx,Ix;kx=Ax,Ix=262,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{static get[Rx("0x23")](){return[ui.ShiftEnter]}[Rx("0x14")](){const t=this[Rx("0x15")],e=t[Rx("0x1b")].get(Rx("0xa"));e[Rx("0x24")](Rx("0x19")),t[Rx("0x20")][Rx("0xc")].on(Rx("0x18"),vx(t),{priority:"high"}),t[Rx("0x20")][Rx("0xc")].on(Rx("0x17"),vx(t),{priority:Rx("0x12")}),t[Rx("0xb")][Rx("0xc")].on("addMarker:suggestion",((e,n,r)=>{r[Rx("0x6")][Rx("0x1f")]&&vx(t,{showActiveMarker:!1})(e,n,r)})),e._descriptionFactory[Rx("0x1a")]("softBreak",(e=>Jr(t[Rx("0x0")],"ELEMENT_LINE_BREAK",e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,r,o)=>{const i=t[Rx("0x1b")][Rx("0x2")](Rx("0xa"));if(!o[Rx("0x22")][Rx("0x25")](r[Rx("0xd")],n[Rx("0x13")]))return;const s=t[Rx("0x7")];for(const t of r.markerRange[Rx("0x1e")]()){if(!t.is("element","softBreak"))continue;const n=Rx("0x4")==r.markerName[Rx("0x5")](":")[1]?Rx("0x9"):Rx("0x5"),x=o.writer[Rx("0xe")](Rx("0x3"),{class:Rx("0x1")+n}),a=o[Rx("0xf")].toViewPosition(s[Rx("0x21")](t));e&&i[Rx("0x16")].includes(r[Rx("0x10")])&&o[Rx("0x8")][Rx("0x11")](Rx("0x1c"),x),o[Rx("0x8")].insert(a,x),o[Rx("0xf")][Rx("0x1d")](x,r.markerName)}}}const Nx=["markInlineFormat","has","forceValue","plugins","StandardEditingModeEditing","document","registerDescriptionCallback","restrictedEditingException","model","value","getRanges","change","type","get","from","commandName","locale","commandParams","formatInline","format","formatBlock"];var Lx,Mx;Lx=Nx,Mx=350,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{afterInit(){const t=this.editor,e=t[wx("0xf")],n=t[wx("0x2")];if(!t[wx("0xa")][wx("0x8")](wx("0xb")))return;const r=t[wx("0xa")][wx("0x14")]("TrackChangesEditing"),o=wx("0xe"),i=t.commands.get(o);r.enableCommand(o,((t,n={})=>{const s=e[wx("0xc")].selection;if(s.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n[wx("0x9")]:!i[wx("0x10")];e[wx("0x12")]((()=>{const t=Array[wx("0x0")](s[wx("0x11")]());for(const n of t){const t=x?[n]:Xo(o,n,e);for(const e of t)r[wx("0x7")](e,{commandName:o,commandParams:[{forceValue:x}]})}}))})),r._descriptionFactory[wx("0xd")]((t=>{if(wx("0x6")!=t[wx("0x13")]&&wx("0x4")!=t[wx("0x13")])return;const{data:e}=t;return e&&e[wx("0x1")]==o?e[wx("0x3")][0][wx("0x9")]?{type:wx("0x5"),content:Jr(n,"FORMAT_RESTRICTED_ENABLED")}:{type:wx("0x5"),content:Jr(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Fx=["style","type","get","FORMAT_STYLE","locale","format","forceValue","_registerBlockAttribute","ghsAttributes","GeneralHtmlSupport","afterInit","_registerLegacyDescription","normalizeConfig","*Set format:* %0","element","styleName","Style","formatBlock","definitions","block","DataSchema","has","toLowerCase","_descriptionFactory","commandParams","StyleUtils","registerDescriptionCallback","_registerInlineAttribute","add","editor","TrackChangesEditing","getGhsAttributeNameForElement","formatInline","registerAttributeLabel","plugins"];var Dx,Bx;Dx=Fx,Bx=314,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0xb")](){const t=this[Px("0x1e")];if(!t.plugins[Px("0x16")](Px("0x11"))||!t[Px("0x0")][Px("0x16")]("DataSchema"))return;const e=t[Px("0x0")][Px("0x3")]("TrackChangesEditing"),n=t.locale,r=t.config[Px("0x3")](Px("0x1")),o=t[Px("0x0")][Px("0x3")](Px("0xa")),i=t.plugins[Px("0x3")](Px("0x1a"))[Px("0xd")](t[Px("0x0")][Px("0x3")](Px("0x15")),r[Px("0x13")]);e._enableDefaultAttributesIntegration("style");const s=new Set;for(const t of i[Px("0x14")]){const e=o[Px("0x20")](t[Px("0xf")]);s[Px("0x1d")](e)}const x=new Set;for(const t of i.inline){const e=o[Px("0x20")](t.element);x[Px("0x1d")](e);for(const e of t[Px("0x9")])x[Px("0x1d")](e)}for(const t of s)e[Px("0x8")](t),e._descriptionFactory[Px("0x22")](t,Jr(n,Px("0x4")));for(const t of x)e[Px("0x1c")](t),e[Px("0x18")][Px("0x22")](t,Jr(n,Px("0x4")));this[Px("0xc")]()}[Px("0xc")](){const t=this[Px("0x1e")],e=t[Px("0x5")];t.plugins[Px("0x3")](Px("0x1f"))._descriptionFactory[Px("0x1b")]((t=>{if(Px("0x12")!=t.type&&Px("0x21")!=t[Px("0x2")])return;const{data:n}=t;return n&&Px("0x1")===n.commandName?n[Px("0x19")][0][Px("0x7")]?{type:Px("0x6"),content:Jr(e,Px("0xe"),n.commandParams[0][Px("0x10")][Px("0x17")]())}:{type:"format",content:Jr(e,"*Remove format:* %0",n[Px("0x19")][0].styleName[Px("0x17")]())}:void 0}))}}const jx=["setSelection","_acceptFormatSuggestionCallbackFactory","TableEditing","createTableWalker","plugins","registerPostFixer","getAttribute","*Insert:* %0","_getCoordsForCells","suggestion","element","registerDescriptionCallback","createRangeOn","addMarker:suggestion","subType","_tableSuggestions","accept","min","ELEMENT_TABLE_COLUMN","discard","MAX_SAFE_INTEGER","_suggestionFactory","editor","root","values","execute","some","batch","last","ELEMENT_TABLE_ROW_WITH_TEXT","get","ELEMENT_TABLE","findAncestor","refresh","ELEMENT_TABLE_COLUMN_WITH_TEXT","classes","_tablePostFixingSubtypes","getSelectionAffectedTableCells","name","TableUtils","deletion","removeTableRow","nodeAfter","table","model","isEqual","getSuggestion","filter","_descriptionFactory","$graveyard","enableCommand","markMultiRangeInsertion","insertTableColumnRight","getFirstRange","every","first","enqueueChange","getItems","nodeBefore","getRowIndexes","rootName","change","$textProxy","length","getContainedElement","_setupColumnsRowsFixing","options","colspan","markMultiRangeDeletion","getChildren","getCellLocation","addRange","maxRow","startsWith","max","differ","forceValue","above","substr","commands","has","addClass","insertion","toLowerCase","registerCustomCallback","join","createPositionAt","document","tableCell","from","position","data","MIN_SAFE_INTEGER","insertTableRowAbove","TrackChangesEditing","afterInit","map","hasAttribute","rowspan","tableColumn","isInContent","*Remove:* %0","tableRow","ELEMENT_TABLE_WITH_TEXT","selectTableColumn","_getSuggestionCoords","_splitMarkerName","writer","span","ELEMENT_TABLE_ROW","type","removeTableColumn","start","end","insertTableRowBelow","tablePaste","left","isArray","insertTableColumnLeft","change:data","order","fromRange","isIntersectingWithRange","showSuggestionHighlights","item","detach","getChanges","highest","removeClass","getRanges"];var Gx,Hx;Gx=jx,Hx=335,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Vx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Vx("0x5b")]=[Vx("0x1b"),"tableColumn"],this[Vx("0x46")]=new Set}[Vx("0x14")](){const t=this[Vx("0x4d")],e=t[Vx("0x63")][Vx("0xc")].selection;if(!t[Vx("0x3b")][Vx("0x5")](Vx("0x39")))return;const n=t.locale,r=t[Vx("0x3b")][Vx("0x55")](Vx("0x13")),o=t.plugins[Vx("0x55")]("TableUtils");r[Vx("0x67")].registerElementLabel(Vx("0x62"),(t=>Jr(n,Vx("0x56"),t))),this._setupColumnsRowsFixing(),r[Vx("0x69")]("insertTable"),r[Vx("0x69")]("selectTableRow"),r[Vx("0x69")](Vx("0x1d"));for(const n of[Vx("0x12"),Vx("0x27")]){const i=t[Vx("0x4")][Vx("0x55")](n);r[Vx("0x69")](n,(n=>{t[Vx("0x63")].change((t=>{n();const s=Vx("0x2")===i[Vx("0x2d")],x=o[Vx("0x5c")](e),a=o[Vx("0x72")](x),c=s?a.first-1:a[Vx("0x53")]+1,l=x[0][Vx("0x57")](Vx("0x62")),u=o[Vx("0x3a")](l,{startRow:c,endRow:c}),d=Array[Vx("0xe")](u).map((e=>t[Vx("0x43")](e.cell)));r[Vx("0x6a")](d,"tableRow")}))}))}for(const n of[Vx("0x2b"),Vx("0x6b")]){const i=t[Vx("0x4")].get(n);r.enableCommand(n,(n=>{t[Vx("0x63")].change((t=>{n();const s=Vx("0x29")===i[Vx("0x2d")],x=o[Vx("0x5c")](e),a=o.getColumnIndexes(x),c=s?a[Vx("0x6e")]-1:a[Vx("0x53")]+1,l=x[0][Vx("0x57")]("table"),u=o.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u).map((e=>t[Vx("0x43")](e.cell)));r[Vx("0x6a")](d,"tableColumn")}))}))}for(const n of[Vx("0x60"),Vx("0x24")]){const i=n[Vx("0x3")](11),s=i[Vx("0x8")](),x=s[Vx("0x3")](0,3)+Vx("0x21"),a=Vx("0x62")+i,c=Vx("0x48")+i,l="max"+i;r.enableCommand(n,(()=>{t[Vx("0x63")].change((t=>{const i=o[Vx("0x5c")](e),u=i[0][Vx("0x57")](Vx("0x62"));let d;if(Vx("0x60")==n){const t=o.getRowIndexes(i);d={startRow:t[Vx("0x6e")],endRow:t[Vx("0x53")],includeAllSlots:!0}}else{const t=o.getColumnIndexes(i);d={startColumn:t[Vx("0x6e")],endColumn:t[Vx("0x53")],includeAllSlots:!0}}const g=o.createTableWalker(u,d),f=Array.from(g)[Vx("0x15")]((({cell:t})=>t)),m=Wx(f.filter((t=>t[Vx("0x16")](x)))),h=Wx(f[Vx("0x66")]((t=>!t[Vx("0x16")](x))))[Vx("0x15")]((e=>t[Vx("0x43")](e))),b=r[Vx("0x7b")](h,a);if(b&&(Vx("0x1b")==b[Vx("0x45")]||"tableColumn"==b[Vx("0x45")])){const e=this._getSuggestionCoords(b);for(const n of m){const r=t.createRangeOn(n),i=o[Vx("0x7d")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&b[Vx("0x7e")](r)}}}))}))}function i(n){const r=Array.from(e[Vx("0x36")]())[Vx("0x15")]((t=>s.LiveRange.fromRange(t)));t.model[Vx("0x74")]((e=>{const o=e[Vx("0x52")];n=n.filter((t=>Vx("0x68")!=t[Vx("0x4e")][Vx("0x73")])),e.setSelection(n),t[Vx("0x4")][Vx("0x55")](Vx("0x60"))[Vx("0x58")](),t[Vx("0x50")]("removeTableRow",{forceDefaultExecution:!0}),t[Vx("0x63")][Vx("0x6f")]((()=>{t.model[Vx("0x6f")](o,(t=>{const e=r[Vx("0x66")]((t=>Vx("0x68")!=t[Vx("0x4e")][Vx("0x73")]));e[Vx("0x76")]>0&&t[Vx("0x37")](e);for(const t of r)t.detach()}))}))}))}function a(n){t[Vx("0x63")][Vx("0x74")]((r=>{const o=Array[Vx("0xe")](e[Vx("0x36")]()).map((t=>s.LiveRange[Vx("0x2e")](t))),i=[];for(const t of n)for(const e of t.getItems({shallow:!0}))i.push(e);for(const e of i)Vx("0x68")!=e[Vx("0x4e")][Vx("0x73")]&&(r[Vx("0x37")](r[Vx("0xb")](e,0)),t[Vx("0x4")][Vx("0x55")](Vx("0x24"))[Vx("0x58")](),t[Vx("0x50")](Vx("0x24"),{forceDefaultExecution:!0}));const x=o[Vx("0x66")]((t=>Vx("0x68")!=t[Vx("0x4e")][Vx("0x73")]));x.length>0&&r[Vx("0x37")](x);for(const t of o)t[Vx("0x32")]()}))}function c(t,e){return e[Vx("0x6d")]((e=>t[Vx("0x51")]((t=>t[Vx("0x26")][Vx("0x64")](e[Vx("0x25")])||e.end[Vx("0x64")](t[Vx("0x25")])))))}function l(t,e){return t[Vx("0x51")]((t=>e.some((e=>t.end.isTouching(e[Vx("0x25")])))))}t[Vx("0x10")].downcastDispatcher.on(Vx("0x44"),((t,e,n)=>{if(!n[Vx("0x79")][Vx("0x30")])return;const r=e[Vx("0x31")];if(!r)return;const o=n.mapper.toViewElement(r);function i(t){return Array[Vx("0x2a")](t)?t:[t]}o&&Vx("0xd")===r[Vx("0x5d")]&&(0,x.setHighlightHandling)(o,n[Vx("0x20")],((t,e,n)=>n[Vx("0x6")](i(e[Vx("0x5a")]),t)),((t,e,n)=>n[Vx("0x35")](i(e[Vx("0x5a")]),t)))}),{priority:Vx("0x34")}),r[Vx("0x67")][Vx("0x42")]((t=>{if(Vx("0x7")!=t[Vx("0x23")]&&"deletion"!=t[Vx("0x23")])return;const e=t[Vx("0x77")]();if(null!=e&&e.is(Vx("0x41"),"table")){if(Vx("0x7")==t[Vx("0x23")]){const e=t[Vx("0x70")]()[Vx("0x66")]((t=>t.is(Vx("0x75"))))[Vx("0x15")]((t=>t[Vx("0x10")]));if(e[Vx("0x76")])return{type:"insertion",content:Jr(n,Vx("0x3e"),Jr(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Vx("0xa")](" ")+'"'))}}if(Vx("0x5f")==t[Vx("0x23")]){const e=t[Vx("0x70")]().filter((t=>t.is(Vx("0x75"))))[Vx("0x15")]((t=>t[Vx("0x10")]));if(e[Vx("0x76")])return{type:"deletion",content:Jr(n,Vx("0x1a"),Jr(n,Vx("0x1c"),'"'+e[Vx("0xa")](" ")+'"'))}}}})),r._descriptionFactory[Vx("0x42")]((t=>{if(Vx("0x1b")==t[Vx("0x45")]){const e=t[Vx("0x70")]()[Vx("0x66")]((t=>t.is(Vx("0x75"))))[Vx("0x15")]((t=>t[Vx("0x10")])),r=this[Vx("0x1e")](t),o=r[Vx("0x7f")]-r.minRow+1;if(Vx("0x7")==t.type)return e[Vx("0x76")]?{type:Vx("0x7"),content:Jr(n,Vx("0x3e"),Jr(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[o,'"'+e[Vx("0xa")](" ")+'"']))}:{type:"insertion",content:Jr(n,Vx("0x3e"),Jr(n,Vx("0x22"),o))};if(Vx("0x5f")==t[Vx("0x23")])return e[Vx("0x76")]?{type:"deletion",content:Jr(n,Vx("0x1a"),Jr(n,Vx("0x54"),[o,'"'+e[Vx("0xa")](" ")+'"']))}:{type:Vx("0x5f"),content:Jr(n,Vx("0x1a"),Jr(n,Vx("0x22"),o))}}if("tableColumn"==t[Vx("0x45")]){const e=t[Vx("0x70")]()[Vx("0x66")]((t=>t.is(Vx("0x75")))).map((t=>t[Vx("0x10")])),r=this[Vx("0x1e")](t),o=r.maxColumn-r.minColumn+1;if(Vx("0x7")==t.type)return e[Vx("0x76")]?{type:Vx("0x7"),content:Jr(n,"*Insert:* %0",Jr(n,Vx("0x59"),[o,'"'+e[Vx("0xa")](" ")+'"']))}:{type:"insertion",content:Jr(n,Vx("0x3e"),Jr(n,Vx("0x49"),o))};if(Vx("0x5f")==t[Vx("0x23")])return e[Vx("0x76")]?{type:Vx("0x5f"),content:Jr(n,"*Remove:* %0",Jr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[o,'"'+e[Vx("0xa")](" ")+'"']))}:{type:Vx("0x5f"),content:Jr(n,"*Remove:* %0",Jr(n,Vx("0x49"),o))}}})),r[Vx("0x4c")][Vx("0x9")]("insertion",Vx("0x1b"),Vx("0x4a"),i),r[Vx("0x4c")][Vx("0x9")](Vx("0x5f"),"tableRow",Vx("0x47"),i),r._suggestionFactory[Vx("0x9")]("insertion",Vx("0x18"),Vx("0x4a"),a),r[Vx("0x4c")][Vx("0x9")](Vx("0x5f"),Vx("0x18"),"accept",a),r[Vx("0x4c")][Vx("0x9")](Vx("0x7"),Vx("0x18"),Vx("0xa"),c),r._suggestionFactory[Vx("0x9")](Vx("0x5f"),Vx("0x18"),Vx("0xa"),c),r._suggestionFactory[Vx("0x9")]("insertion",Vx("0x1b"),Vx("0xa"),l),r._suggestionFactory[Vx("0x9")](Vx("0x5f"),Vx("0x1b"),Vx("0xa"),l)}[Vx("0x38")](){const t=this[Vx("0x4d")],e=t[Vx("0x63")][Vx("0xc")].selection;return(n,r)=>{t[Vx("0x63")].change((o=>{const{commandName:i,commandParams:x}=r;let a=n[0][Vx("0x26")][Vx("0x71")];x&&x[0]&&!1===x[0][Vx("0x1")]&&(a=n[0][Vx("0x25")][Vx("0x61")]);const c=o.createRangeIn(a);if(Vx("0x68")==c.root[Vx("0x73")])return;const l=Array.from(e[Vx("0x36")]()).map((t=>s.LiveRange[Vx("0x2e")](t)));o[Vx("0x37")](c),t.commands[Vx("0x55")](i)[Vx("0x58")](),x.push({forceDefaultExecution:!0}),t.execute(i,...x);const u=l[Vx("0x66")]((t=>"$graveyard"!=t[Vx("0x4e")].rootName));u[Vx("0x76")]>0&&o[Vx("0x37")](u);for(const t of l)t[Vx("0x32")]()}))}}[Vx("0x3f")](t){const e=this[Vx("0x4d")][Vx("0x3b")][Vx("0x55")](Vx("0x5e"));let n=Number.MAX_SAFE_INTEGER,r=Number[Vx("0x11")],o=Number[Vx("0x4b")],i=Number.MIN_SAFE_INTEGER;for(const s of t){if(Vx("0x68")==s[Vx("0x4e")][Vx("0x73")])continue;const{row:t,column:x}=e[Vx("0x7d")](s),a=s[Vx("0x16")](Vx("0x17"))?s[Vx("0x3d")]("rowspan")-1:0,c=s[Vx("0x16")](Vx("0x7a"))?s[Vx("0x3d")](Vx("0x7a"))-1:0;n=t<n?t:n,r=t+a>r?t+a:r,o=x<o?x:o,i=x+c>i?x+c:i}return{minRow:n,maxRow:r,minColumn:o,maxColumn:i}}[Vx("0x78")](){const t=this[Vx("0x4d")],e=t.plugins[Vx("0x55")](Vx("0x13")),n=t.plugins[Vx("0x55")]("TableUtils");t.model.document.on(Vx("0x2c"),(()=>{const n=Array[Vx("0xe")](t[Vx("0x63")][Vx("0xc")][Vx("0x0")].getChangedMarkers());for(const{name:t,data:r}of n){const{group:n,id:o,subType:i}=e[Vx("0x1f")](t);if(Vx("0x40")!=n)continue;if(null!=r.oldRange)continue;const s=e[Vx("0x65")](o);this[Vx("0x5b")].includes(i)&&this[Vx("0x46")].add(s)}}),{priority:"low"});const r=(t,e)=>{let r=!1;const o=e[Vx("0x43")](t),i=t[Vx("0x57")](Vx("0x62")),s=n[Vx("0x7d")](t);for(const e of this[Vx("0x46")]){const n=e[Vx("0x45")],x=n[Vx("0x80")](Vx("0x28")),a=n[Vx("0x3")](x?10:5),c=a[Vx("0x8")](),l=c[Vx("0x3")](0,3)+Vx("0x21"),u=Vx("0x48")+a,d=Vx("0x81")+a;if(!e[Vx("0x19")])continue;if(i!=e[Vx("0x6c")]()[Vx("0x25")][Vx("0x57")](Vx("0x62")))continue;if(e[Vx("0x2f")](o))continue;const g=t[Vx("0x16")](l)?t[Vx("0x3d")](l)-1:0,f=this[Vx("0x1e")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e.addRange(o),r=!0)}return r};t[Vx("0x63")][Vx("0xc")][Vx("0x3c")]((e=>{let n=!1;for(const o of t[Vx("0x63")][Vx("0xc")][Vx("0x0")][Vx("0x33")]())if("insert"==o[Vx("0x23")])if(Vx("0x1b")==o[Vx("0x5d")])for(const t of o[Vx("0xf")][Vx("0x61")][Vx("0x7c")]())n=n||r(t,e);else Vx("0xd")==o[Vx("0x5d")]&&(n=n||r(o[Vx("0xf")].nodeAfter,e));return n}))}[Vx("0x1e")](t){return this[Vx("0x3f")](t[Vx("0x36")]()[Vx("0x15")]((t=>t.start.nodeAfter)))}}function Wx(t){return Array[Vx("0xe")](new Set(t)[Vx("0x4f")]())}const Kx=["selection","getAncestors","_tablePostFixingSubtypes","afterInit","getSelectionAffectedTableCells","_areMergableCells","TableUtils","mergeTableCellLeft","enableCommand","author","insertion","from","*Merge cells*","formatBlock","registerDescriptionCallback","createRangeOn","set:isEnabled","format","_suggestionFactory","locale","find","detach","isInContent","mergeTableCells","_areSelectedCellsMergable","commands","commandName","*Split cell:* vertically","subType","_isForcedDefaultExecutionBlock","element","stop","$graveyard","markBlockFormat","change","editor","size","TrackChangesEditing","mergeTableCellRight","isEnabled","markMultiRangeBlockFormat","mergeTableCellDown","getCellLocation","model","length","get","formatInline","plugins","getRanges","value","rootName","mergeTableCellUp","horizontally","document","_descriptionFactory","return","createTableWalker","registerCustomCallback","cell","map","containsRange","execute","splitTableCellHorizontally","findAncestor","TableEditing","trackChanges","splitTableCellVertically","tableCell","push","type","getSuggestions","add","*Split cell:* horizontally","deletion","low"];var qx,Xx;qx=Kx,Xx=490,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get requires(){return[zx]}[$x("0x26")](){const t=this[$x("0x46")],e=t.model[$x("0xd")][$x("0x23")],n=t[$x("0x36")];if(!t[$x("0x7")].has($x("0x18")))return;const r=t[$x("0x7")].get("TrackChangesEditing"),o=t[$x("0x7")].get($x("0x29")),i=t[$x("0x7")][$x("0x5")](zx);i[$x("0x25")][$x("0x1c")]($x("0x3a")),r[$x("0x2b")]($x("0x3a"),(()=>{const e=o.getSelectionAffectedTableCells(t[$x("0x3")][$x("0xd")][$x("0x23")]);t[$x("0x3")][$x("0x45")]((()=>{r[$x("0x0")](e,{commandName:$x("0x3a"),commandParams:[]},[],$x("0x3a"))}))})),t[$x("0x3c")][$x("0x5")]($x("0x3a")).on($x("0x15"),((e,n)=>{t[$x("0x3c")][$x("0x5")]($x("0x19")).value&&(n.length>0&&n[n[$x("0x4")]-1]&&n[n[$x("0x4")]-1].forceDefaultExecution||r[$x("0x40")]||this[$x("0x3b")]()||e[$x("0x42")]())}),{priority:"highest"});for(const e of[$x("0xb"),$x("0x49"),$x("0x1"),$x("0x2a")]){const n=t[$x("0x3c")][$x("0x5")](e);r.enableCommand(e,(()=>{const e=t.model[$x("0xd")][$x("0x23")].getFirstPosition()[$x("0x24")]()[$x("0x37")]((t=>t.is($x("0x41"),$x("0x1b")))),o=n.value;t.model[$x("0x45")]((()=>{r[$x("0x0")]([e,o],{commandName:"mergeTableCells",commandParams:[]},[],$x("0x3a"))}))}))}for(const e of["splitTableCellVertically","splitTableCellHorizontally"]){const n=t.commands.get(e);r[$x("0x2b")](e,(()=>{const i=o[$x("0x27")](t[$x("0x3")].document.selection)[0],s=i[$x("0x17")]("table"),{column:x,row:a}=o[$x("0x2")](i);let c=[];if($x("0xc")==n.direction){const t=o.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x2e")](t)[$x("0x13")]((t=>t[$x("0x12")]))}else{const t=o[$x("0x10")](s,{column:x,includeAllSlots:!0});c=Array.from(t)[$x("0x13")]((t=>t[$x("0x12")]))}t[$x("0x3")][$x("0x45")]((t=>{r[$x("0x44")](t.createRangeOn(i),{commandName:e,commandParams:[]},c,e)}))}))}r[$x("0xe")][$x("0x31")]((t=>{if("formatBlock"!=t.type&&$x("0x6")!=t.type)return;const{data:e}=t;return e&&$x("0x3a")==e[$x("0x3d")]?{type:$x("0x34"),content:Jr(n,$x("0x2f"))}:void 0})),r[$x("0xe")].registerDescriptionCallback((t=>{if($x("0x30")!=t.type&&"formatInline"!=t[$x("0x1d")])return;const{data:e}=t;return e?$x("0x1a")==e[$x("0x3d")]?{type:$x("0x34"),content:Jr(n,$x("0x3e"))}:"splitTableCellHorizontally"==e[$x("0x3d")]?{type:$x("0x34"),content:Jr(n,$x("0x20"))}:void 0:void 0}));const x=i._acceptFormatSuggestionCallbackFactory();for(const t of[$x("0xb"),$x("0x49"),$x("0x1"),"mergeTableCellLeft"])r[$x("0x35")][$x("0x11")]($x("0x30"),t,"accept",x);for(const t of[$x("0x1a"),$x("0x16")])r._suggestionFactory.registerCustomCallback("formatBlock",t,"accept",x);r._suggestionFactory[$x("0x11")]($x("0x30"),$x("0x3a"),"accept",(n=>{t[$x("0x3")][$x("0x45")]((r=>{const o=Array[$x("0x2e")](e[$x("0x8")]())[$x("0x13")]((t=>s.LiveRange.fromRange(t)));r.setSelection(n),t[$x("0x3c")][$x("0x5")]($x("0x3a")).refresh(),t[$x("0x15")]($x("0x3a"),{forceDefaultExecution:!0});const i=o.filter((t=>$x("0x43")!=t.root[$x("0xa")]));i[$x("0x4")]>0&&r.setSelection(i);for(const t of o)t[$x("0x38")]()}))}));for(const e of["mergeTableCellUp",$x("0x1"),$x("0x2a"),$x("0x49")]){const n=t[$x("0x3c")][$x("0x5")](e);n.on($x("0x33"),((e,r,o)=>{if(o){const r=t[$x("0x3")].document[$x("0x23")].getFirstPosition()[$x("0x24")]()[$x("0x37")]((t=>t.is("element",$x("0x1b"))));this[$x("0x28")](n[$x("0x9")],r)||(e[$x("0xf")]=!1,e.stop())}}),{priority:$x("0x22")})}}[$x("0x3b")](){const t=this.editor.commands[$x("0x5")]("mergeTableCells"),e=this[$x("0x46")][$x("0x7")][$x("0x5")]($x("0x29"));if(!t[$x("0x4a")])return!1;const n=e[$x("0x27")](this[$x("0x46")][$x("0x3")].document[$x("0x23")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[$x("0x28")](t,e){const n=this.editor[$x("0x7")][$x("0x5")]($x("0x48")),r=this[$x("0x46")][$x("0x3")][$x("0x32")](t),o=this[$x("0x46")][$x("0x3")][$x("0x32")](e),i=new Set,s=new Set;for(const t of n[$x("0x1e")]())if(($x("0x2d")==t[$x("0x1d")]||$x("0x21")==t[$x("0x1d")]||"mergeTableCells"==t[$x("0x3f")])&&t[$x("0x39")])for(const e of t[$x("0x8")]())e[$x("0x14")](r,!0)&&i[$x("0x1f")](t[$x("0x1d")]+":"+t[$x("0x2c")].id),e[$x("0x14")](o,!0)&&s.add(t[$x("0x1d")]+":"+t[$x("0x2c")].id);if(i.size!=s[$x("0x47")])return!1;for(const t of i)if(!s.has(t))return!1;return!0}}const Yx=["setTableColumnHeader","_descriptionFactory","stop","data-suggestion","unbindElementFromMarkerName","ck-suggestion-marker-","highest","FORMAT_REGULAR_ROW","markerName","editor","TrackChangesEditing","get","setAttribute","removeClass","accept","mapper","_suggestionFactory","name","FORMAT_REGULAR_COLUMN","writer","includes","consume","requires","_acceptFormatSuggestionCallbackFactory","addClass","_handleLegacySuggestions","addMarker:suggestion","TableEditing","setTableRowHeader","FORMAT_HEADER_COLUMN","afterInit","activeMarkers","getSuggestion","markerRange","formatBlock","registerAttributeLabel","has","ck-suggestion-marker--active","markerNameToElements","registerCustomCallback","forceValue","format","_enableDefaultAttributesIntegration","parent","headingRows","commandParams","getCellLocation","nodeBefore","FORMAT_HEADER_ROW","plugins","registerDescriptionCallback","data","item","commandName","locale","nodeAfter","cell","start","downcastDispatcher","_registerLegacyDescription","editing","type"];var Jx,Qx;Jx=Yx,Qx=266,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0x4")](){return[zx]}[ta("0xc")](){const t=this.editor;if(!t[ta("0x1f")][ta("0x12")](ta("0x9")))return;const e=t.locale,n=t.plugins[ta("0x37")]("TrackChangesEditing");n[ta("0x18")](ta("0xa"),[],[ta("0x1a")]),n._enableDefaultAttributesIntegration("setTableColumnHeader",[],["headingColumns"]),n[ta("0x2d")][ta("0x11")](ta("0x1a"),Jr(e,ta("0x1e"))),n[ta("0x2d")][ta("0x11")]("headingColumns",Jr(e,ta("0xb"))),this[ta("0x7")]()}_handleLegacySuggestions(){const t=this.editor.plugins[ta("0x37")](ta("0x36")),e=this.editor.plugins[ta("0x37")]("TableUtils"),n=this[ta("0x35")].plugins.get(zx)[ta("0x5")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(o,i,s)=>{const{type:x,id:a}=t._splitMarkerName(i[ta("0x34")]),c=t[ta("0xe")](a),l=c[ta("0x21")];if(ta("0x10")!=c[ta("0x2b")]||!l||"setTableColumnHeader"!=l[ta("0x23")])return;if(i[ta("0x22")])return void o[ta("0x2e")]();if(!s.consumable[ta("0x3")](i[ta("0xf")],o[ta("0x3d")]))return;const u=i.markerRange[ta("0x27")][ta("0x25")],d=i[ta("0xf")].end[ta("0x1d")],g=u[ta("0x19")][ta("0x19")],{column:f}=e[ta("0x1c")](u),{column:m}=e[ta("0x1c")](d);for(let o=f;o<=m;o++){const c=e.createTableWalker(g,{column:o,includeAllSlots:!1});for(const e of c){const o=e[ta("0x26")],c=s[ta("0x3b")].toViewElement(o);s[ta("0x1")][ta("0x6")](ta("0x31")+x,c),r&&s.writer[ta("0x38")](ta("0x2f"),a,c),s[ta("0x3b")].bindElementToMarker(c,i.markerName),n&&(t[ta("0xd")][ta("0x2")](i.markerName)?s[ta("0x1")][ta("0x6")](ta("0x13"),c):s.writer[ta("0x39")](ta("0x13"),c))}}}}t[ta("0x3c")][ta("0x15")](ta("0x10"),ta("0xa"),"accept",n),t[ta("0x3c")][ta("0x15")](ta("0x10"),ta("0x2c"),ta("0x3a"),n),this[ta("0x35")][ta("0x2a")][ta("0x28")].on(ta("0x8"),r(),{priority:"highest"}),this[ta("0x35")][ta("0x21")][ta("0x28")].on(ta("0x8"),((t,e,n)=>{n.options.showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this[ta("0x35")][ta("0x2a")].downcastDispatcher.on("removeMarker:suggestion",((e,n,r)=>{const{type:o,id:i}=t._splitMarkerName(n[ta("0x34")]),s=t.getSuggestion(i),x=s[ta("0x21")];if(ta("0x10")!=s[ta("0x2b")]||!x||ta("0x2c")!=x[ta("0x23")])return;const a=r[ta("0x3b")][ta("0x14")](n[ta("0x34")]);if(a)for(const t of a)r[ta("0x1")][ta("0x39")](ta("0x31")+o,t),r[ta("0x1")][ta("0x39")]("ck-suggestion-marker--active",t),r[ta("0x1")].removeAttribute(ta("0x2f"),t),r.mapper[ta("0x30")](t,n.markerName)}),{priority:ta("0x32")}),this[ta("0x29")]()}[ta("0x29")](){const t=this.editor,e=t[ta("0x24")];function n(t){return{type:ta("0x17"),content:Jr(e,"*Format:* %0",t)}}t.plugins.get(ta("0x36"))[ta("0x2d")][ta("0x20")]((t=>{if(ta("0x10")!=t[ta("0x2b")])return;const{data:r}=t;if(r){if(ta("0xa")==r[ta("0x23")]){const t=r.commandParams[0][ta("0x16")];return n(Jr(e,ta(t?"0x1e":"0x33")))}if(ta("0x2c")==r[ta("0x23")]){const t=r[ta("0x1b")][0][ta("0x16")];return n(Jr(e,ta(t?"0xb":"0x0")))}}}))}}const na=["deletionRanges","endColumn","suggestionUnloaded","trackChanges","getChanges","getChildren","columnInsertionIndexes","set","schema","elementToElement","getColumnIndexes","insertColumns","remove","low","getShiftedBy","options","isEmpty","value","getMarkers","registerDescriptionCallback","rows","wrap","_isForcedDefaultExecutionBlock","has","register","join","tableCellBorderColor","filter","getAllAdjacentSuggestions","locale","end","unwrap","activeMarkers","row","push","markerAttributes","root","markMultiRangeDeletion","cells","registerCustomCallback","get","getSuggestions","model","previous","hasSuggestion","_splitMarkerName","newRange","_suggestionFactory","_getCoordsForCells","getTableIfOnlyTableInContent","some","suggestion-td","tableCellBackgroundColor","tableCellVerticalAlignment","removeColumns","getContainedElement","markers","name","from","clipboardOutput","tablePasteRow","createElement","entries","tablePasteColumn","_tablePostFixingSubtypes","previousSibling","findAncestor","rootName","oldRange","author","move","createTableWalker","listenTo","getRanges","getRange","insertion","containsRange","last","tablePaste","ck-suggestion-marker-insertion","selection","cell","length","insertRows","TrackChangesEditing","tableCellPadding","dataDowncast","suggestion","tablePasteCell","includes","setAttributes","columnInsertionRanges","removeMarker","plugins","isInContent","rowInsertionRanges","conversion","column","paragraph","insertionRanges","_createdBatches","type","subType","requires","getItems","TableClipboard","TableUtils","removeRows","next","discard","stop","markerName","tablePasteChainId","tableCell","insert","endRow","createPositionBefore","updateMarker","getRows","createRangeIn","getSuggestionCallback","differ","fill","start","commands","attributes","getAttributes","change","first","suggestion:formatBlock:tablePasteCell","editor","add","fromEntries","editing","keys","for","Users","_replaceTableSlotCell","ck-suggestion-marker--active","tableCellSuggestion","insertContent","reduce","showSuggestionHighlights","removeMarkers","accept","registerPostFixer","startsWith","deletion","table","createRangeOn","map","position","editingDowncast","getSelectionAffectedTableCells","element","document","forceDefaultExecution","high","isEqual","batch","redo","nextSibling","nodeAfter","formatBlock","getChild"];var ra,oa;ra=na,oa=140,function(t){for(;--t;)ra.push(ra.shift())}(++oa);const ia=function(t,e){return na[t-=0]},sa=["tableCellBorderWidth",ia("0x33"),"tableCellBorderStyle","tableCellHorizontalAlignment",ia("0x4e"),ia("0x4d"),ia("0x6e")],xa=Object[ia("0x9d")](sa.map((t=>[t,null])));class aa extends t.Plugin{static get[ia("0x80")](){return[zx]}afterInit(){const t=this[ia("0x9b")];if(!t[ia("0x76")][ia("0x30")](ia("0x82")))return;const n=t[ia("0x76")][ia("0x41")](ia("0x6d")),r=t.plugins[ia("0x41")](ia("0x83")),o=t[ia("0x76")][ia("0x41")](zx),i=t[ia("0x76")][ia("0x41")]("TableClipboard");o[ia("0x59")][ia("0x3b")](ia("0x55"),ia("0x58")),t.model[ia("0x21")][ia("0x31")](ia("0xa4"),{allowIn:ia("0x8a"),allowContentOf:ia("0x8a"),isLimit:!0}),t.conversion[ia("0x22")]({model:ia("0xa4"),view:ia("0x4c")});let s=null;t[ia("0x43")].on(ia("0x0"),((o,x)=>{const[a,c]=x,l=x[x[ia("0x6b")]-1];l&&l[ia("0x10")]||n[ia("0x2f")]||this[ia("0x9b")][ia("0x95")][ia("0x41")](ia("0x1c"))[ia("0x2a")]&&function(t,e,n,r,o){if(e&&!e.is("documentSelection"))return!1;const i=o[ia("0x4a")](t,n);if(!i||!la(i,void 0,r))return!1;const s=r[ia("0xd")](n[ia("0xf")][ia("0x69")]);if(!s.length)return!1;const x=s[0][ia("0x5b")]("table"),a=r.getRowIndexes(s),c=r[ia("0x23")](s),l={startRow:a[ia("0x99")],endRow:a[ia("0x66")],startColumn:c[ia("0x99")],endColumn:c[ia("0x66")]};return 1==s[ia("0x6b")]&&(l[ia("0x8c")]+=r[ia("0x8f")](i)-1,l[ia("0x1a")]+=r.getColumns(i)-1),la(x,l,r)}(a,c,t[ia("0x43")],r,i)&&(o[ia("0x87")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ia("0x43")].change((()=>{t.model[ia("0x0")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:o,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=s;o[ia("0x6b")]&&n.markMultiRangeInsertion(o,ia("0x55"),{tablePasteChainId:r}),i[ia("0x6b")]&&n.markMultiRangeInsertion(i,ia("0x58"),{tablePasteChainId:r}),a.length&&n.markMultiRangeInsertion(a,ia("0x67"),{tablePasteChainId:r,skipNestingCheck:!0}),c[ia("0x6b")]&&n[ia("0x3e")](c,ia("0x67"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[ia("0xa")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:r});if(u){const e=u[ia("0x2b")](),n=[];for(const{element:r,attributes:o}of l){if(!o)continue;const i=t.model[ia("0x9")](r),s=e.find((t=>t[ia("0x63")]()[ia("0x12")](i)));s&&n[ia("0x3b")]([s[ia("0x52")],o])}n[ia("0x6b")]&&u.setAttribute(ia("0x3c"),Object.fromEntries(n))}s=null})))}),{priority:e.priorities[ia("0x11")]+10}),t[ia("0x76")][ia("0x41")](ia("0x82")).on(ia("0xa2"),((t,e)=>{const[n,r,,o]=e;if(!s)return;t.stop();const i=n[ia("0x6a")],x=r,a=ca(i),c=ca(x);t.return=i;let l=null,u=null;if(c||a)if(a&&!c){o[ia("0x25")](i[ia("0x18")](0));for(const t of Array[ia("0x53")](x[ia("0x1e")]()))o[ia("0x8b")](t,i,ia("0x37"));const t=s.rowInsertionIndexes[ia("0x72")](n[ia("0x3a")]),e=s[ia("0x1f")][ia("0x72")](n[ia("0x7a")]);t||e||(l=o.createRangeIn(i))}else c&&!a&&(u=o.createRangeIn(i));else{const t=o[ia("0x56")]("tableCellSuggestion"),e=o[ia("0x56")](ia("0xa4"));o[ia("0x2e")](o[ia("0x90")](i),e),o.insert(t,i,0);for(const e of Array[ia("0x53")](x[ia("0x1e")]()))o[ia("0x8b")](e,t,"end");l=o[ia("0x9")](t),u=o[ia("0x9")](e)}const d=Array[ia("0x53")](x[ia("0x97")]()).filter((([t])=>sa[ia("0x72")](t)));s[ia("0x3f")][ia("0x3b")]({element:i,attributes:d[ia("0x6b")]?Object[ia("0x9d")](d):null}),l&&s[ia("0x7c")][ia("0x3b")](l),u&&s[ia("0x19")][ia("0x3b")](u)}),{priority:ia("0x11")}),r.on(ia("0x24"),((e,n)=>{const[o,i={}]=n;if(!s)return;const x=i.at||0,a=i.columns||1;s[ia("0x1f")]=new Array(a)[ia("0x93")](x)[ia("0xa")](((t,e)=>t+e));for(const{cell:e}of r[ia("0x60")](o,{startColumn:x,endColumn:x+a-1}))s[ia("0x74")][ia("0x3b")](t[ia("0x43")][ia("0x9")](e))}),{priority:ia("0x26")}),r.on(ia("0x6c"),((e,n)=>{const[o,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x2d")]||1;s.rowInsertionIndexes=new Array(a)[ia("0x93")](x)[ia("0xa")](((t,e)=>t+e));for(const{cell:e}of r[ia("0x60")](o,{startRow:x,endRow:x+a-1}))s[ia("0x78")][ia("0x3b")](t[ia("0x43")][ia("0x9")](e))}),{priority:ia("0x26")}),n._descriptionFactory[ia("0x2c")]((e=>{if(e[ia("0x7f")]&&e[ia("0x7f")].startsWith(ia("0x67")))return e[ia("0x44")]?{}:{type:ia("0x64"),content:Jr(t[ia("0x36")],"*Replace table cells*")}}));const x=()=>!1;for(const t of["tablePaste",ia("0x58"),"tablePasteRow",ia("0x71")])n[ia("0x48")][ia("0x40")]("insertion",t,ia("0x32"),x),n._suggestionFactory[ia("0x40")](ia("0x7"),t,ia("0x32"),x),n[ia("0x48")][ia("0x40")](ia("0x17"),t,ia("0x32"),x);n[ia("0x48")].registerCustomCallback(ia("0x17"),"tablePasteCell",ia("0x86"),x),n[ia("0x48")].registerCustomCallback(ia("0x17"),ia("0x71"),ia("0x4"),((e,n,r)=>{const o=e[ia("0xa")]((t=>t[ia("0x50")]()))[ia("0x34")]((t=>t)),i=new Map(o[ia("0xa")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ia("0x3f")])e&&i[ia("0x20")](t,e);else if(r&&r.markerAttributes)for(const[e,n]of Object[ia("0x57")](r[ia("0x3c")])){const r=t[ia("0x43")][ia("0x51")][ia("0x41")](e),o=r?r[ia("0x63")]().getContainedElement():null;o&&i.set(o,n)}t[ia("0x43")][ia("0x98")]((t=>{for(const[e,n]of i)t[ia("0x73")]({...xa,...n},e)}))}));const a=(e,r)=>{n[ia("0x48")][ia("0x40")](e,"tablePaste",r,((o,i,s)=>{t[ia("0x43")].change((t=>{const x=[];for(const t of o){const e=t[ia("0x94")][ia("0x16")];e.is("element",ia("0xa4"))&&x[ia("0x3b")](e)}n[ia("0x48")][ia("0x91")](e,null,r)(o,i,s);for(const e of x)"$graveyard"!=e[ia("0x3d")][ia("0x5c")]&&t[ia("0x38")](e)}))}))};a("insertion",ia("0x4")),a("insertion",ia("0x86")),a(ia("0x7"),ia("0x4")),a(ia("0x7"),ia("0x86")),n[ia("0x48")][ia("0x40")](ia("0x64"),"tablePasteRow",ia("0x86"),(t=>{const e=t[ia("0xa")]((t=>t.getContainedElement())),n=e[0][ia("0x5b")](ia("0x8")),{minRow:i,maxRow:s}=o[ia("0x49")](e);r[ia("0x84")](n,{at:i,rows:s-i+1})})),n[ia("0x48")][ia("0x40")]("insertion",ia("0x58"),ia("0x86"),(t=>{const e=t[ia("0xa")]((t=>t[ia("0x50")]())),n=e[0][ia("0x5b")]("table"),{minColumn:i,maxColumn:s}=o._getCoordsForCells(e);r[ia("0x4f")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0x7f")]||!e.subType.startsWith("tablePaste"))return;const r=e[ia("0x96")][ia("0x89")],o=n.getSuggestions()[ia("0x34")]((t=>t[ia("0x77")]&&t.attributes&&t[ia("0x96")][ia("0x89")]==r));o.length&&e[ia("0x35")]().length!=o[ia("0x6b")]&&o[ia("0x1")](((t,e)=>(t[ia("0x85")]=e,e[ia("0x44")]=t,e)))};function l(t,e=!0){const{id:r}=n[ia("0x46")](t.markerName),o=["ck-suggestion-marker",ia("0x68")],i=n[ia("0x39")].includes(t[ia("0x88")]);return i&&o.push(ia("0xa3")),{classes:o,attributes:{"data-suggestion":r},priority:i&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:"high"}),n.on(ia("0x1b"),c,{priority:ia("0x11")}),t[ia("0x43")].document[ia("0x5")]((()=>{let e=!1;const r=Array[ia("0x53")](t[ia("0x43")][ia("0xf")].differ.getChangedMarkers());for(const{name:o,data:i}of r){const{group:r,type:s,id:x}=n[ia("0x46")](o);if(ia("0x70")!=r||ia("0x7")!=s||i[ia("0x5d")])continue;if(!n[ia("0x45")](x))continue;const a=n.getSuggestion(x)[ia("0x62")](),c=t[ia("0x76")][ia("0x41")](ia("0xa1")).me;for(const t of n.getSuggestions())if(t[ia("0x77")]&&t[ia("0x5e")]==c&&ia("0x17")==t[ia("0x7e")]&&ia("0x71")==t.subType&&t[ia("0x62")]().every((t=>a[ia("0x4b")]((e=>e[ia("0x65")](t,!0))))))for(const n of t[ia("0x35")]())n[ia("0x77")]&&(n.discard(),e=!0)}return e})),t.model[ia("0xf")][ia("0x5")]((e=>{const r=t[ia("0x95")][ia("0x41")](ia("0x14"));if(!r||!r[ia("0x7d")][ia("0x30")](e[ia("0x13")]))return!1;let o=!1;const i=t[ia("0x76")][ia("0x41")]("Users").me,s=t[ia("0x43")][ia("0xf")][ia("0x92")][ia("0x1d")](),x=Array[ia("0x53")](t[ia("0x43")][ia("0xf")][ia("0x92")].getChangedMarkers())[ia("0x34")]((({name:t,data:e})=>{const{group:r,subType:o,authorId:s}=n[ia("0x46")](t);return"suggestion"==r&&ia("0x67")==o&&s==i.id&&!e[ia("0x5d")]}));for(const t of s){if(ia("0x8b")!=t.type||ia("0xa4")!=t[ia("0x52")]||1!=t[ia("0x6b")])continue;const n=e.createRange(t[ia("0xb")],t[ia("0xb")][ia("0x27")](1));if(!x.find((({data:t})=>t.newRange[ia("0x12")](n))))for(const{name:t,data:r}of x)if(n.containsRange(r[ia("0x47")])){e[ia("0x8e")](t,{range:n}),o=!0;break}}return o})),t[ia("0x43")][ia("0xf")][ia("0x5")]((e=>{let r=!1;const o=t[ia("0x76")][ia("0x41")](ia("0xa1")).me,i=n[ia("0x42")]()[ia("0x34")]((t=>t[ia("0x77")]&&t.author==o)),s=new Set,x=new Set;for(const t of i)if(ia("0x67")==t[ia("0x7f")])for(const e of t[ia("0x2b")]()){const n=e[ia("0x63")]()[ia("0x50")]();if(n)if(n.is(ia("0xe"),ia("0xa4"))&&ca(n)){t[ia("0x75")](e[ia("0x52")]),s[ia("0x9c")](n),r=!0;const o=n[ia("0x15")],i=n[ia("0x5a")],a=o&&o.is(ia("0xe"),"tableCellSuggestion"),c=i&&i.is("element",ia("0xa4"));a&&!s[ia("0x30")](o)&&x[ia("0x9c")](o),c&&!s[ia("0x30")](i)&&x[ia("0x9c")](i)}else n.is(ia("0xe"),ia("0x7b"))&&n[ia("0x29")]&&(t.removeMarker(e[ia("0x52")]),r=!0)}else if(ia("0x71")==t[ia("0x7f")]){if(!t[ia("0x96")]||!t[ia("0x96")].tablePasteChainId)continue;const e=t.attributes[ia("0x3c")];if(e&&Object[ia("0x9f")](e).length)continue;const n=t[ia("0x96")][ia("0x89")];let o=!0,s=!0;for(const e of i)if(e[ia("0x7f")]&&e[ia("0x7f")][ia("0x6")](ia("0x67"))){if(!e[ia("0x96")].tablePasteChainId){s=!1;break}if(e.id!=t.id&&e[ia("0x96")][ia("0x89")]==n){o=!1;break}}s&&o&&(t[ia("0x3")](),r=!0)}for(const t of s)e.remove(t);for(const t of x)e[ia("0x38")](t);return r})),t.conversion[ia("0xa0")](ia("0xc")).markerToHighlight({model:ia("0x9a"),view:(t,e)=>l(t),converterPriority:ia("0x11")}),t[ia("0x79")].for(ia("0x6f")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[ia("0x28")][ia("0x2")]?l(t,!1):null,converterPriority:ia("0x11")});const u=t[ia("0x9e")].view;this[ia("0x61")](u.document,ia("0x54"),((t,e)=>{const n=[];for(const t of u.createRangeIn(e.content)[ia("0x81")]())t.is(ia("0xe"),ia("0x4c"))&&n[ia("0x3b")](t);u[ia("0x98")]((t=>{for(const e of n)t[ia("0x5f")](t[ia("0x90")](e),t[ia("0x8d")](e)),t[ia("0x25")](e)}))}))}}function ca(t){if(t[ia("0x29")])return!0;const e=t[ia("0x18")](0);return e.is(ia("0xe"),ia("0x7b"))&&e.isEmpty}function la(t,e={},n){for(const{isAnchor:r,cellHeight:o,cellWidth:i}of n[ia("0x60")](t,{includeAllSlots:!0,...e}))if(!r||1!=o||1!=i)return!1;return!0}const ua=["model","accept","get","getSuggestionCallback","getTableColumnsWidths","getSuggestions","TableColumnResizeEditing","formatGroupId","Users","tableWidth","locale","formatBlock","markBlockFormat","getColumnGroupElement","getAttribute","data","resizeTable","columnWidths","commandParams","afterInit","_descriptionFactory","formatInline","handleSuggestionDescription","format","discard","table","enableCommand","registerCustomCallback","editor","handleResizeTableWidthCommand","change","_suggestionFactory","document","TrackChangesEditing","getContainedElement","getSelectedElement","bind","has","type","plugins"];var da,ga;da=ua,ga=328,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0xb")](){if(!this.editor[fa("0x1f")][fa("0x1d")](fa("0x26")))return;const t=this[fa("0x14")][fa("0x1f")][fa("0x22")]("TrackChangesEditing");t[fa("0x12")]("resizeTableWidth",this.handleResizeTableWidthCommand.bind(this)),t[fa("0x17")][fa("0x13")](fa("0x3"),fa("0x8"),fa("0x21"),t._suggestionFactory.getSuggestionCallback("formatBlock",null,fa("0x10"))),t._suggestionFactory.registerCustomCallback("formatBlock",fa("0x8"),fa("0x10"),t[fa("0x17")][fa("0x23")](fa("0x3"),null,fa("0x21"))),t[fa("0xc")].registerDescriptionCallback(this[fa("0xe")][fa("0x1c")](this))}[fa("0x15")](t,e){const n=this.editor[fa("0x1f")].get(fa("0x19")),r=this[fa("0x14")].plugins[fa("0x22")](fa("0x26")),o=e[fa("0x11")]||this[fa("0x14")][fa("0x20")][fa("0x18")].selection[fa("0x1b")]();this.editor[fa("0x20")][fa("0x16")]((()=>{const i=r[fa("0x5")](o);let s=i?r[fa("0x24")](i):null,x=o[fa("0x6")](fa("0x1"))||null;const a=e.tableWidth||x,c=e.columnWidths||s,l=this[fa("0x14")][fa("0x1f")][fa("0x22")](fa("0x0")).me;for(const t of n[fa("0x25")]()){const e=t[fa("0x1a")]();if("resizeTable"===t.subType&&e===o){t.author!==l&&t[fa("0x10")]();const e=t[fa("0x7")][fa("0xa")];x=e[0][fa("0x1")],s=e[0][fa("0x9")];break}}t({table:o,tableWidth:a,columnWidths:c}),n[fa("0x4")](o,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x8")},[],"resizeTable")}))}[fa("0xe")](t){if(fa("0x3")!=t[fa("0x1e")]&&fa("0xd")!=t[fa("0x1e")])return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0x27")]){const t="*Format:* resize table";return{type:fa("0xf"),content:Jr(this[fa("0x14")][fa("0x2")],t)}}}}const ha=["TrackChangesEditing","plugins","editor","enableCommand","insertTemplate","get","has","Template"];var ba,pa;ba=ha,pa=453,function(t){for(;--t;)ba.push(ba.shift())}(++pa);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{afterInit(){const t=this[Ea("0x5")];t[Ea("0x4")][Ea("0x1")](Ea("0x2"))&&t[Ea("0x4")][Ea("0x0")](Ea("0x3"))[Ea("0x6")](Ea("0x7"))}}const Ta=["plugins","insertTableOfContents","registerElementLabel","get","TrackChangesEditing","_descriptionFactory","ELEMENT_TABLE_OF_CONTENTS","tableOfContents","locale","afterInit","commands","editor"];var ya,Ca;ya=Ta,Ca=177,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x0")](){const t=this[Aa("0x2")];if(!t[Aa("0x1")][Aa("0x6")]("insertTableOfContents"))return;t[Aa("0x3")][Aa("0x6")](Aa("0x7")).enableCommand(Aa("0x4"));const e=t[Aa("0x3")][Aa("0x6")](Aa("0x7")),n=t[Aa("0xb")];e[Aa("0x8")][Aa("0x5")](Aa("0xa"),(t=>Jr(n,Aa("0x9"),t)))}}const Ia=["ELEMENT_TITLE","registerPostFixer","_descriptionFactory","locale","schema","model","createRange","start","updateMarker","getNearestSelectionRange","title-content","newRange","TrackChangesEditing","from","differ","removeMarker","document","_splitMarkerName","element","Title","has","end","isTouching","get","registerElementLabel","plugins","forward","suggestion","editor"];var Ra,Sa;Ra=Ia,Sa=215,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{afterInit(){const t=this[va("0x10")];if(!t[va("0xd")][va("0x8")](va("0x7")))return;const e=t[va("0xd")][va("0xb")](va("0x0"));e[va("0x13")][va("0xc")]("title-content",(()=>Jr(t[va("0x14")],va("0x11")))),t[va("0x16")][va("0x4")][va("0x12")]((n=>{let r=!1;const o=Array[va("0x1")](t.model[va("0x4")][va("0x2")].getChangedMarkers());for(const{name:i,data:s}of o){const{group:o}=e[va("0x5")](i);if(va("0xf")!==o||!s[va("0x1c")])continue;const x=s[va("0x1c")],a=x[va("0x9")].nodeBefore;if(!a||!a.is(va("0x6"),va("0x1b")))continue;if(!x[va("0x18")][va("0xa")](x[va("0x9")]))continue;const c=t[va("0x16")][va("0x15")][va("0x1a")](x[va("0x9")],va("0xe"));if(c&&c.isCollapsed){const t=n[va("0x17")](x.start,c.start);t.isEqual(x)||(n[va("0x19")](i,{range:t}),r=!0)}r||(n[va("0x3")](i),r=!0)}return r}))}}const La=["enableCommand","editor","redo","get","afterInit","UndoEditing","undo","TrackChangesEditing","has"];var Ma,wa;Ma=La,wa=124,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x6")](){const t=this[Oa("0x3")],e=t.plugins[Oa("0x5")](Oa("0x0"));t.plugins[Oa("0x1")](Oa("0x7"))&&(e[Oa("0x2")](Oa("0x8")),e.enableCommand(Oa("0x4")))}}const Da=["toggleTableCaption","plugins","has","get","afterInit","requires"];var Ba,Pa;Ba=Da,Pa=361,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x4")](){return[zx]}[Ua("0x3")](){const t=this.editor;t[Ua("0x0")][Ua("0x1")]("TableCaptionEditing")&&t.plugins[Ua("0x2")]("TrackChangesEditing").enableCommand(Ua("0x5"))}}const Ga=["getSuggestions","getFirstPosition","getAttribute","change","get","enableCommand","tableBorderStyle","getSelectionAffectedTableCells","model","tableWidth","handleSuggestionDescription","getSuggestionCallback","tableCellHorizontalAlignment","_getSuggestion","tableAlignment","locale","table","tableCellHeight","_descriptionFactory","tableCellBackgroundColor","tableProperties","has","_handlePropertyChange","plugins","*Format:* change table properties","tableCellProperties","tableHeight","discard","TrackChangesEditing","start","markBlockFormat","registerCustomCallback","data","format","tableCellVerticalAlignment","TableCellPropertiesEditing","_suggestionFactory","accept","removeAttribute","handleDiscardAction","registerDescriptionCallback","tableCellWidth","afterInit","tableCellBorderColor","commandParams","batch","formatBlock","editor","join","tableCellBorderWidth","tableBorderColor","subType","tableBorderWidth","selection","enqueueChange","tableCellBorderStyle"];var Ha,Va;Ha=Ga,Va=337,function(t){for(;--t;)Ha.push(Ha.shift())}(++Va);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x13")]=[za("0x31"),za("0x5"),za("0x33"),za("0xd"),za("0x8"),za("0x19"),"tableBackgroundColor"],this[za("0x18")]=[za("0x2a"),za("0x36"),za("0x30"),"tableCellPadding",za("0x28"),za("0x10"),za("0x12"),za("0xb"),za("0x21")]}static get pluginName(){return"TrackChangesTableProperties"}[za("0x29")](){const t=this[za("0x2e")].plugins.get(za("0x1b"));if(this.editor[za("0x16")][za("0x14")]("TablePropertiesEditing")){for(const e of this[za("0x13")])t[za("0x4")](e,((t,n)=>{const r=this[za("0x2e")][za("0x7")].document[za("0x34")][za("0x0")]().findAncestor(za("0xf"));this[za("0x15")](e,[r],this[za("0x13")],za("0x13"),t,n)}));t._suggestionFactory[za("0x1e")](za("0x2d"),za("0x13"),za("0x24"),t[za("0x23")].getSuggestionCallback(za("0x2d"),null,za("0x1a"))),t[za("0x23")][za("0x1e")](za("0x2d"),"tableProperties",za("0x1a"),((t,e)=>this[za("0x26")](this[za("0x13")],t,e))),t[za("0x23")][za("0x1e")](za("0x2d"),za("0x13"),za("0x2f"),(()=>!1))}if(this[za("0x2e")].plugins[za("0x14")](za("0x22"))){for(const e of this.tableCellProperties)t[za("0x4")](e,((t,n)=>{const r=this[za("0x2e")][za("0x16")][za("0x3")]("TableUtils")[za("0x6")](this[za("0x2e")].model.document[za("0x34")]);this._handlePropertyChange(e,r,this[za("0x18")],za("0x18"),t,n)}));t[za("0x23")][za("0x1e")](za("0x2d"),"tableCellProperties",za("0x24"),t[za("0x23")][za("0xa")]("formatBlock",null,za("0x1a"))),t._suggestionFactory[za("0x1e")](za("0x2d"),za("0x18"),za("0x1a"),((t,e)=>this[za("0x26")](this[za("0x18")],t,e))),t._suggestionFactory[za("0x1e")](za("0x2d"),za("0x18"),za("0x2f"),(()=>!1))}t[za("0x11")][za("0x27")]((t=>this[za("0x9")](t)))}[za("0x15")](t,e,n,r,o,i){const s=this[za("0x2e")][za("0x16")][za("0x3")]("TrackChangesEditing");this[za("0x2e")][za("0x7")][za("0x35")](i[za("0x2c")],(()=>{for(const t of e)if(this._getSuggestion(t,r))o(i);else{const e={};for(const r of n){const n=t[za("0x1")](r);void 0!==n&&(e[r]=n)}o(i),s[za("0x1d")](t,{commandParams:[e]},[],r)}}))}[za("0x26")](t,e,n){const r=e[0][za("0x1c")].nodeAfter,o=n[za("0x2b")][0];this[za("0x2e")][za("0x7")][za("0x2")]((e=>{for(const n of t)void 0!==o[n]?e.setAttribute(n,o[n],r):e[za("0x25")](n,r)}))}[za("0x9")](t){if(t[za("0x1f")])switch(t.subType){case za("0x13"):return{type:za("0x20"),content:Jr(this[za("0x2e")].locale,za("0x17"))};case"tableCellProperties":return{type:"format",content:Jr(this[za("0x2e")][za("0xe")],"*Format:* change table cell properties")}}}[za("0xc")](t,e){const n=this[za("0x2e")].plugins.get(za("0x1b"));for(const r of n[za("0x37")]({skipNotAttached:!0})){const n=r.getContainedElement();if(r[za("0x32")]===e&&n===t)return r}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=ot?ot.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,r,o,i){var s=-1,x=e.length;for(r||(r=tc),i||(i=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,o,i):sn(i,a):o||(i[i.length]=a)}return i};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const rc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var oc=Math.max;const ic=function(t,e,n){return e=oc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=oc(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var x=Array(e+1);++o<e;)x[o]=r[o];return x[e]=n(s),rc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var r=ac(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(ic(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=hr(e,t),r||(r=e.length>1),e})),ie(t,dn(t),n),r&&(n=tr(n,7,Ja));for(var o=e.length;o--;)Wr(n,e[o]);return n})),uc=["root","multi","getChangedMarkers","init","markers","deletion:discard","getContainedElement","_adapter","enqueueChange","concat","locale","getFirstMarker","rename","external:","newRange","insertion:","track-changes-suggestion-data-mismatch","values","editingDowncast","_splitMarkerName","removeMarker:suggestion:formatBlock","delete","getMultiRangeId","isLimit","author","suggestionUnloaded","_joinSuggestions","trackChanges","name","_rangeIsInLocalUserInsertion","ck-suggestion-marker-","for","previous","fromRange","announce","_processAttributeSuggestions","suggestion:","applyOperation","isIntersecting","_setSuggestionData","change:activeMarkers","find","format","config","registerCustomCallback","getShiftedBy","notReady","removed","_inlineAttributeKeys","push","getLastMatchingPosition","upcast","dataToMarker","Users","attribute:join","clear","set","fetchCommentThread","toJSON","then","registerPostFixer","_addThreadToSuggestion","isInContent","_getSuggestionData","data-suggestion","meta","_trackFormatChanges","add","formatInline:","createRange","markerNameToElements","markAttributeChange","execute","_model","_registerDefaultCallbacks","trackChanges.trackFormatChanges","oldValue","_reduceExistingSuggestions","plugins","consumable","isEqual","getAttribute","after","attributes","highest","head","forEach","addUser","_suggestionFactory","oldRange","startsWith","TrackChangesEditing","getSuggestions","from","getItems","deletion:","setSelection","getSuggestion","containsItem","addMarkerName","originalSuggestionId","isObject","discardAllSuggestions","trackChanges.mergeNestedSuggestions","_setSuggestionRange","_getExternalAuthor","formatInline:discard","getUser","createdAt","_customCallbacks","size","setTo","_suggestionState","formatGroupId","mapper","selection","element","stop","catch","isLocal","FORMATTING","markInsertion","commands","isInsideObject","_suggestions","activeMarkers","discardSuggestion","isRemovable","value","keys","moveTargetPosition","commandName","next","_getAttributeKeyFromSubType","adapter","ck-suggestion-marker","removeMarker","formatInline:join","markerReady","unshift","insert","_cutOutSuggestionMarker","multipleBlocks","high","isExternal","_getMarkerAnnouncementText","listenTo","isArray","markInlineFormat","_blockAttributeKeys","markMultiRangeInsertion","differ","splice","attributeOldValue","schema","discard","addClass","widget","createSelection","range","normal","length","low","addSuggestion","isAtStart","formatInline:chain","isOwn","every","_refreshAttributeSuggestionsChain","data","getDifference","track-changes-adapter-already-set","removeMarker:suggestion:attribute","ck-suggestion-marker-formatBlock","attributeNewValue","isAtEnd","splitPosition","markMultiRangeBlockFormat","acceptAllSuggestions","error-saving-suggestion-data-suggestion-discarded","rethrowUnexpectedError","get","$graveyard","fire","getCustomProperty","removeMarkers","_saved","consume","oldName","map","newName","formatInline:accept","assign","markMultiRangeDeletion","hasSuggestion","_joinWithAdjacentSuggestions","enableReadOnlyMode","LEAVE","hasComments","has","deletion:accept","createPositionAfter","@external","addComment","changeAttribute","createPositionBefore","markerToData","_handleNewSuggestionMarker","containsRange","track-changes-adapter-missing-getsuggestion","insertion","deletion","key","addCommentThread","item","isSelectable","_defaultCallbacks","subType","always","type","_editor","editor","_findSuggestions","getFirstRange","createRangeOn","markerName","bindElementToMarker","suggestionLoaded","formatBlock:accept","track-changes-suggestion-not-found","skipNestingCheck","addMarker:suggestion:formatBlock","commentThread","accept","change","ENTER","fromCharCode","createRangeIn","nodeBefore","getIntersection","_checkSuggestionCorrectness","hasCommentThread","isNextTo","isIntersectingWithRange","containsRangeInObject","refresh","rootName","before","update:suggestion","getNearestSelectionRange","$text","isMultiRange","filter","version","suggestion","getWalker","history","_registerInlineAttribute","ariaLiveAnnouncer","createPositionAt","addHighlight","newValue","chain","nodeAfter","change:data","attribute:","discardSelectedSuggestions","containsPosition","ready","authoredAt","conversion","$marker","formatBlock","includes","creator","forward","_commentsRepository","_enabledCommands","detach","getSuggestionCallback","formatBlock:","_SUGGESTION_ANNOUNCEMENT","split","join","formatInline","_isForcedDefaultExecutionBlock","unbindElementFromMarkerName","buildSuggestion","_mergeNestedSuggestions","deletion:chain","change:_saved","_reduceSuggestionAttributeRange","marker-count","_isDataLoaded","PendingActions","batch","documentSelection","options","_updateSuggestionData","targetPosition","acceptSuggestion","groupId","move","isBefore","never","_recordAttributeChanges","tablePasteChainId","accepted","trackChangesCommand","_descriptionFactory","markerToHighlight","parent","remove","toViewElement","_registerBlockAttribute","createElement","writer","enableCommand","_refreshSuggestionsChain","removeClass","_recordAttributeSuggestionsFromVersion","track-changes-user-not-found","markDeletion","addMarker:suggestion:attribute","_addSuggestionMarker","suggestionChanged","some","ck-suggestion-marker--active","CommentsRepository","updateMarker","showSuggestionHighlights","end","removeAttribute","return","_removeSuggestion","position","collaboration.channelId","sort","_breakSuggestionMarker","isBlock","addSuggestionData","dataDowncast","howMany","substring","getAllAdjacentSuggestions","define","attribute","$textProxy","_processAttributeChanges","isAfter","_isBlockAttribute","model","requires","start","comments","lowest","addRange","dataReady","markBlockFormat","deleteContent","getRanges","pluginName","document","authorName","getRange","updateSuggestion","pop","_createSuggestion","clone","isCollapsed","forceDefaultExecution","getChanges","backward","_getAuthorFromId","PENDING_ACTION_SUGGESTION","$elementName","setAttribute"];var dc,gc;dc=uc,gc=150,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0xe1");class hc extends t.Plugin{static get[fc("0xca")](){return[fc("0xb2"),i.Users,t.PendingActions,ao,fo,_o,ko,Lo,Do,Ho,ti,ii,li,hi,Ti,Ri,Mi,Pi,Vi,Xi,Qi,os,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,px,Cx,Sx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0xd3")](){return fc("0x13e")}constructor(t){function e(t){return t[fc("0x27")]((t=>String[fc("0x56")](t)))[fc("0x85")]("")}super(t),this[fc("0xaa")]=null,this[fc("0x11b")](fc("0x160"),[]),this.on(fc("0x10b"),((e,n,r,o)=>{this[fc("0x12c")][fc("0x54")]((()=>{for(const e of[...o,...r])this[fc("0x12c")].markers[fc("0x31")](e)&&t.editing.reconvertMarker(e)}))})),this[fc("0x9f")]=new ro(this[fc("0x47")][fc("0xc9")].schema,this[fc("0x47")][fc("0xed")]),this[fc("0xea")]=null,this._suggestionFactory=new bc(this[fc("0x47")]),this._suggestions=new Map,this[fc("0x7e")]=t[fc("0x131")].get("CommentsRepository"),this._enabledCommands=new Set,this[fc("0x12c")]=this[fc("0x47")][fc("0xc9")],this[fc("0x153")]=new WeakMap,this[fc("0x87")]=!1,this[fc("0x178")]=new Set([fc("0xe1")]),this[fc("0x113")]=new Set,t[fc("0x10e")][fc("0xc3")](fc("0x12e"),"default"),this[fc("0x125")]=t.config[fc("0x1f")](fc("0x12e")),t.config[fc("0xc3")](fc("0x14a"),!0),this._mergeNestedSuggestions=t[fc("0x10e")][fc("0x1f")](fc("0x14a")),this.trackChangesCommand=new d(t,this[fc("0x7f")]),this._initAriaMarkerChangeAnnouncements(),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,50,54,48])}[fc("0xe6")](){const t=this[fc("0x47")],n=(t,e)=>{if("attribute"!=t)return fc("0x101")+t;const n=e[fc("0x84")]("|")[0];return this._isBlockAttribute(n)?fc("0x17"):"ck-suggestion-marker-formatInline"};t[fc("0x78")][fc("0x102")]("editingDowncast")[fc("0xa0")]({model:"suggestion",view:t=>{const{id:e,type:r,subType:o}=this[fc("0xf6")](t[fc("0x4b")]),i=["ck-suggestion-marker",n(r,o)];let s=3e3;return this[fc("0x160")][fc("0x7b")](t[fc("0x4b")])&&(i.push(fc("0xb1")),s=3010),fc("0x3d")==r&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[fc("0x102")](fc("0xbf"))[fc("0x126")]((e=>{e.on("addMarker:suggestion",((e,n,r)=>{if(!r[fc("0x93")][fc("0xb4")])return;const o=n[fc("0x40")];if(!o)return;const i=r[fc("0x155")][fc("0xa3")](o);t[fc("0xc9")][fc("0x4")].isObject(o)&&i&&!i[fc("0x22")](fc("0x7"))&&i.is("containerElement")&&(0,x.toWidget)(i,r[fc("0xa6")])}),{priority:fc("0x172")})})),t[fc("0x78")][fc("0x102")](fc("0xbf"))[fc("0xa0")]({model:fc("0x68"),view:(t,e)=>{if(!e[fc("0x93")][fc("0xb4")])return null;const{type:r,subType:o}=this[fc("0xf6")](t[fc("0x4b")]);return{classes:[fc("0x16a"),n(r,o)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,o,i)=>{if(!o[fc("0x40")])return;const{id:s}=this[fc("0xf6")](o[fc("0x4b")]);if(n){const t=this._suggestions[fc("0x1f")](s),e=this[fc("0x168")](t);if(!this[fc("0xc8")](e))return}if(o[fc("0x40")].is(fc("0x156")))return void i[fc("0x132")][fc("0x25")](o[fc("0x40")],r[fc("0xff")]);const x=i[fc("0x155")][fc("0xa3")](o.item);if(o[fc("0x40")].is("element")&&t.model[fc("0x4")][fc("0xbd")](o[fc("0x40")])&&!x[fc("0x22")](fc("0x6e"))){i[fc("0xa6")][fc("0x6")]([fc("0x16a"),"ck-suggestion-marker-formatBlock"],x),i[fc("0xa6")].setAttribute(fc("0x123"),s,x),i[fc("0x155")][fc("0x4c")](x,o[fc("0x4b")]),e&&(this[fc("0x160")][fc("0x7b")](o.markerName)?i[fc("0xa6")].addClass(fc("0xb1"),x):i[fc("0xa6")][fc("0xa9")]("ck-suggestion-marker--active",x));for(const e of t.model[fc("0x57")](o[fc("0x40")])[fc("0x141")]())i[fc("0x132")][fc("0x25")](e,r[fc("0xff")]);i[fc("0x132")][fc("0x25")](o[fc("0x40")],r[fc("0xff")])}};t[fc("0x78")][fc("0x102")]("dataDowncast").add((t=>{t.on(fc("0x51"),((t,e,n)=>{n[fc("0x93")][fc("0xb4")]&&r({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x137")})})),t.conversion[fc("0x102")](fc("0xbf"))[fc("0x126")]((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n[fc("0x93")][fc("0xb4")]&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x137")})})),t.conversion[fc("0x102")](fc("0xbf"))[fc("0x38")]({model:fc("0x68"),view:(t,e)=>e[fc("0x93")][fc("0xb4")]?null:{group:"suggestion",name:t.substr(11)}}),t[fc("0x78")][fc("0x102")](fc("0x116")).elementToElement({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[fc("0x134")]("suggestion-type")+":"+t[fc("0x134")]("id");return t[fc("0x134")]("marker-count")&&(n+=":"+t.getAttribute(fc("0x8e"))),e[fc("0xa5")](fc("0x79"),{"data-name":n})}}),t[fc("0x78")].for(fc("0x116"))[fc("0x117")]({view:fc("0x68")}),t.conversion[fc("0x102")](fc("0xf5"))[fc("0x126")]((t=>{t.on("addMarker:suggestion:formatBlock",r(),{priority:fc("0x172")})})),t.conversion[fc("0x102")](fc("0xf5"))[fc("0x126")]((t=>{t.on(fc("0xad"),r({isAttributeSuggestion:!0}),{priority:fc("0x172")})})),t[fc("0x78")][fc("0x102")]("editingDowncast")[fc("0x126")]((t=>{t.on(fc("0xf7"),((t,e,n)=>{const r=n[fc("0x155")][fc("0x129")](e[fc("0x4b")]);if(r)for(const t of r)t[fc("0x22")]("addHighlight")||(n[fc("0xa6")][fc("0xa9")]([fc("0x16a"),fc("0x17"),fc("0xb1")],t),n[fc("0xa6")][fc("0xb6")]("data-suggestion",t),n[fc("0x155")][fc("0x88")](t,e.markerName))}),{priority:"high"})})),t[fc("0x78")][fc("0x102")](fc("0xf5"))[fc("0x126")]((t=>{t.on(fc("0x16"),((t,e,n)=>{const r=n.mapper.markerNameToElements(e[fc("0x4b")]);if(!r)return;const{id:o}=this[fc("0xf6")](e[fc("0x4b")]),i=this._suggestions[fc("0x1f")](o),s=this[fc("0x168")](i);if(this[fc("0xc8")](s))for(const t of r)t.getCustomProperty(fc("0x6e"))||(n[fc("0xa6")][fc("0xa9")]([fc("0x16a"),"ck-suggestion-marker-formatBlock",fc("0xb1")],t),n.writer[fc("0xb6")](fc("0x123"),t),n.mapper[fc("0x88")](t,e.markerName))}),{priority:fc("0x172")})})),t[fc("0xc9")][fc("0xd4")][fc("0x11f")]((e=>{let n=!1;const r=Array[fc("0x140")](t[fc("0xc9")][fc("0xd4")][fc("0x1")].getChangedMarkers()),o=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this[fc("0xf6")](x);if("suggestion"!==r)continue;const d=this[fc("0x15f")][fc("0x1f")](u);if(null!=a[fc("0xf1")]){"formatInline"==c&&(n=n||_c(a[fc("0xf1")],x,e,t[fc("0xc9")].schema));const r="attribute"==c&&this._isBlockAttribute(l.split("|")[0]);if(a[fc("0xf1")][fc("0xdb")]||"$graveyard"==a[fc("0xf1")][fc("0xe3")][fc("0x60")]||fc("0x7a")==c&&!yc(a.newRange)||r&&!yc(a[fc("0xf1")])||"deletion"==c&&(Ec(s=a.newRange)||(i=s)[fc("0xcb")][fc("0xa1")]==i.end.nodeBefore&&i[fc("0xcb")][fc("0x19")]))e[fc("0x16b")](x),n=!0;else{if(!d||!d[fc("0x121")])continue;o[fc("0x126")](d)}}}var i,s;return o[fc("0x151")]>0&&(n=!!this[fc("0x2d")](o)||n),n})),t[fc("0xc9")][fc("0xd4")][fc("0x11f")]((e=>{let n=!1;for(const r of t.model[fc("0xd4")].differ[fc("0xdd")]())if(fc("0x16f")==r[fc("0x45")])for(const r of this[fc("0x15f")][fc("0xf4")]()){if(r[fc("0x65")]||!r[fc("0x121")])continue;const o=fc("0x7a")==r[fc("0x45")],i=this[fc("0x168")](r),s=i&&this[fc("0xc8")](i);if(!o&&!s)continue;const x=r[fc("0x49")]();if(x[fc("0xcb")][fc("0xa1")]!=x[fc("0xb5")][fc("0xa1")]&&!x[fc("0xb5")].isAtEnd){const o=t[fc("0xc9")][fc("0x6d")](x[fc("0xcb")][fc("0x71")],"end"),i=t[fc("0xc9")].createRange(x.start,o);e[fc("0xb3")](r[fc("0xee")](),{range:i}),n=!0}}return n})),t[fc("0xc9")][fc("0xd4")][fc("0x11f")]((t=>this[fc("0xc6")](t))),t[fc("0xc9")][fc("0xd4")].registerPostFixer((t=>!t.batch.isLocal&&this[fc("0x106")](t))),t.model[fc("0xe7")].on(fc("0x62"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0xf6")](e.name),n=this[fc("0x15f")].get(t);n&&n.addMarkerName(e[fc("0xff")])}})),t[fc("0xc9")][fc("0xd4")].on(fc("0x72"),(()=>{const e=Array[fc("0x140")](t[fc("0xc9")][fc("0xd4")].differ.getChangedMarkers())[fc("0x66")]((t=>fc("0x68")===this[fc("0xf6")](t[fc("0xff")]).group));if(0===e.length)return;e[fc("0xbb")](((t,e)=>{const n=t[fc("0x13")][fc("0x13c")],r=e[fc("0x13")][fc("0x13c")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n[fc("0xcb")].isBefore(r[fc("0xcb")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:o}of e){const{id:e}=this[fc("0xf6")](t);if(null===o[fc("0x13c")]){const e=this[fc("0x39")](t);r.add(e)}else{const t=this[fc("0x15f")][fc("0x1f")](e);null!==o[fc("0xf1")]||t[fc("0x121")]?(n[fc("0x126")](t[fc("0x138")]),r[fc("0x126")](t)):this._removeSuggestion(t)}}r.size>0&&this._refreshSuggestionsChain(r);for(const t of n)this.fire(fc("0xaf"),t)})),t[fc("0xc9")].on(fc("0x108"),((e,n)=>{const r=n[0];if(!this[fc("0x15f")][fc("0x151")])return;if(!r.isDocumentOperation)return;if(r[fc("0x91")].isUndo||!r.batch[fc("0x15a")])return;let o,i;switch(r.type){case fc("0x16f"):o=t[fc("0xc9")][fc("0x6d")](r[fc("0xb9")]),i=o[fc("0x110")](r[fc("0xc0")]);break;case fc("0x84"):o=t.model.createPositionAt(r[fc("0x1a")]),i=t[fc("0xc9")][fc("0x6d")](r[fc("0x165")]);break;case fc("0x98"):o=t[fc("0xc9")][fc("0x6d")](r[fc("0x95")]),i=o[fc("0x110")](r[fc("0xc0")]);break;default:return}const s=t[fc("0xc9")][fc("0x128")](o,i);t[fc("0xc9")].change((()=>{for(const{suggestion:t,meta:e}of this[fc("0x48")](s)){if(t[fc("0x65")])continue;if(fc("0x86")==t.type)continue;const n=this[fc("0x168")](t);if(n&&this[fc("0xc8")](n)&&"split"!=r[fc("0x45")])continue;const x=t[fc("0x13")]&&t[fc("0x13")].multipleBlocks;(fc("0x7a")!=t[fc("0x45")]||fc("0x84")==r[fc("0x45")]&&!x)&&(e[fc("0x5e")]||fc("0x3c")==t[fc("0x45")]&&e[fc("0x10")]||t[fc("0x49")]().containsRange(s)&&this[fc("0xbc")](t,o,i))}}))}),{priority:fc("0xcd")}),t.model.on(fc("0xd1"),((e,n)=>{const r=n[0],o=n[1];if(o&&o[fc("0xdc")])return;if(this[fc("0x87")])return;if(!this.trackChangesCommand.value)return;if(r[fc("0xdb")])return;const i=t[fc("0xc9")][fc("0x4")],{start:s,end:x}=r[fc("0x49")](),a=s.nodeAfter&&i[fc("0xfa")](s[fc("0x71")])?null:i[fc("0x63")](s,fc("0x7d")),c=x[fc("0x58")]&&i.isLimit(x[fc("0x58")])?null:i.getNearestSelectionRange(x,fc("0xde")),l=t[fc("0xc9")].createRange(a?a[fc("0xcb")]:s,c?c.end:x);t.model.change((e=>{this.markDeletion(l);const n=t[fc("0xc9")][fc("0x4")][fc("0x63")](l[fc("0xcb")]);r.is(fc("0x92"))?e[fc("0x143")](n):r[fc("0x152")](n)})),e[fc("0x158")]()}),{priority:e.priorities[fc("0xa")]+10}),t[fc("0xc9")].on("insertContent",((e,n)=>{const r=n[n[fc("0xb")]-1];r&&r[fc("0xdc")]||this[fc("0x87")]||this[fc("0x9e")][fc("0x163")]&&(t[fc("0xc9")][fc("0x54")]((()=>{let r=t[fc("0xc9")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[fc("0xb7")]=r[fc("0xda")]();const o=r.end.nodeBefore,i=t[fc("0xc9")][fc("0x4")];o&&i.isBlock(o)&&!i[fc("0x148")](o)&&(r=t[fc("0xc9")].createRange(r.start,t[fc("0xc9")].createPositionAt(o,fc("0xb5")))),this[fc("0x15c")](r)})),e.stop())}),{priority:"high"}),this.editor[fc("0x15d")][fc("0x126")]("trackChanges",this[fc("0x9e")]),this[fc("0xa7")](fc("0xfe"));const o=new b(t,this[fc("0x15f")]);t[fc("0x15d")][fc("0x126")](fc("0x96"),o),this[fc("0xa7")](fc("0x96"));const i=new y(t,this[fc("0x15f")]);t[fc("0x15d")][fc("0x126")](fc("0x161"),i),this[fc("0xa7")](fc("0x161")),t[fc("0x15d")][fc("0x126")](fc("0x1c"),new F(t,o,this[fc("0x15f")])),this.enableCommand(fc("0x1c")),t[fc("0x15d")][fc("0x126")](fc("0x149"),new F(t,i,this[fc("0x15f")])),this.enableCommand("discardAllSuggestions"),t[fc("0x15d")][fc("0x126")]("acceptSelectedSuggestions",new j(t,o,this[fc("0x15f")])),this[fc("0xa7")]("acceptSelectedSuggestions"),t[fc("0x15d")][fc("0x126")](fc("0x74"),new j(t,i,this._suggestions)),this.enableCommand(fc("0x74"));const s=t[fc("0x131")].get(fc("0xb2"));this[fc("0x175")](s,fc("0x35"),((t,{threadId:e})=>{const n=this[fc("0x15f")][fc("0x1f")](e);n&&n[fc("0x52")]&&1===n[fc("0x52")][fc("0xb")]&&this[fc("0x94")](e,{hasComments:!0})}),{priority:fc("0xc")}),this[fc("0x175")](s,"removeComment",((t,{threadId:e})=>{const n=this[fc("0x15f")][fc("0x1f")](e);n&&n.commentThread&&!n.commentThread[fc("0xb")]&&this[fc("0x94")](e,{hasComments:!1})}),{priority:fc("0xc")})}set[fc("0x169")](t){if(this[fc("0xea")])throw new e.CKEditorError(fc("0x15"),this);this[fc("0xea")]=t}get[fc("0x169")](){return this[fc("0xea")]}[fc("0x13f")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0x15f")].values())t&&!e[fc("0x121")]||n[fc("0x114")](e);return e?n[fc("0x27")]((t=>t[fc("0x11d")]())):n}[fc("0x144")](t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(fc("0x4f"),this);return n}[fc("0x2c")](t){return this[fc("0x15f")][fc("0x31")](t)}[fc("0xbe")](t){const{authorId:e,id:n,attributes:r}=t,[o,i]=t[fc("0x45")][fc("0x84")](":"),s=this[fc("0x15f")][fc("0x1f")](n)||this._createSuggestion(o,i,n,e,r);if(this[fc("0x120")](s),this._checkSuggestionCorrectness(s,o,i||null,e),s[fc("0x14f")]=t[fc("0x14f")],s._isDataLoaded=!0,r&&r["@external"]){const t=r[fc("0x34")],e=this[fc("0x14c")](t[fc("0xd5")]);s[fc("0x77")]=t.createdAt,s[fc("0xfb")]=e,s[fc("0x173")]=!0}else s.authoredAt=t[fc("0x14f")];switch(t.data&&(s[fc("0x13")]=t.data),t[fc("0x136")]&&(s[fc("0x136")]=t[fc("0x136")]),this[fc("0xea")]&&this._adapter[fc("0xd")]||(s[fc("0x24")]=!0),this[fc("0x153")][fc("0x1f")](s)){case fc("0x111"):this[fc("0x153")][fc("0x11b")](s,"dataReady");break;case fc("0x16d"):s[fc("0x121")]?(this[fc("0xa8")](new Set([s])),this._joinWithAdjacentSuggestions(new Set([s])),this[fc("0x153")][fc("0x11b")](s,fc("0x76")),this.fire(fc("0x4d"),s)):this._suggestionState[fc("0x11b")](s,fc("0x112"))}return s}[fc("0x96")](t){this[fc("0xdc")]((()=>{this.editor.model[fc("0x54")]((()=>{for(const e of t[fc("0xc2")]())e.accept()}))}))}[fc("0x161")](t){this[fc("0xdc")]((()=>{this[fc("0x47")][fc("0xc9")][fc("0x54")]((()=>{for(const e of t[fc("0xc2")]())e[fc("0x5")]()}))}))}[fc("0xa7")](t,n){const r=this[fc("0x47")][fc("0x15d")][fc("0x1f")](t);if(!r)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this._enabledCommands[fc("0x31")](r))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this[fc("0x7f")].add(r),n&&r.on("execute",((t,e)=>{this[fc("0x9e")][fc("0x163")]&&(this[fc("0x87")]||(e[fc("0xb")]>0&&e[e[fc("0xb")]-1]&&e[e[fc("0xb")]-1][fc("0xdc")]?e[fc("0xd8")]():(t[fc("0xb7")]=n(((...t)=>r.execute(...t,{forceDefaultExecution:!0})),...e),t[fc("0x158")]())))}),{priority:fc("0x172")})}[fc("0xdc")](t){let n,r;const o=this[fc("0x87")];this[fc("0x87")]=!0;try{n=t()}catch(t){r=t}return o||(this[fc("0x87")]=!1),r&&e.CKEditorError[fc("0x1e")](r,this),n}[fc("0x15c")](t,n=null,r={}){if(t[fc("0xdb")])return null;const o=this[fc("0x47")].plugins[fc("0x1f")](fc("0x118")).me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,fc("0x3c")))if(o.isOwn){if(!o.isNextTo){if(o[fc("0x5e")]){if(!this[fc("0x8a")]||!Ic(e,r))continue;return e}if(Ic(e,r))return e;this[fc("0xbc")](e,t.start,t[fc("0xb5")]);break}if(n==e.subType&&Ic(e,r)){const n=e.getFirstRange();return n[fc("0xcb")][fc("0x133")](t[fc("0xb5")])?this[fc("0x14b")](e,this._model[fc("0x128")](t[fc("0xcb")],n[fc("0xb5")])):this[fc("0x14b")](e,this[fc("0x12c")][fc("0x128")](n[fc("0xcb")],t[fc("0xb5")])),e}}const i=(0,e.uid)(),s=o.id,x=n?fc("0xf2")+n:fc("0x3c"),a=this[fc("0x10a")]({id:i,type:x,createdAt:new Date,authorId:s,attributes:r});return this[fc("0xae")](x,i,s,t),a}[fc("0x0")](t,n=fc("0xe4"),r={}){const o=this[fc("0x47")][fc("0x131")][fc("0x1f")](fc("0x118")).me,i=this[fc("0x13b")][fc("0x81")]("insertion",n,"join");for(const e of this[fc("0x13f")]())if(e.author.id==o.id&&"insertion"==e[fc("0x45")]&&e[fc("0x43")]==n&&Ic(e,r)&&(i(e[fc("0xd2")](),t)||i(t,e[fc("0xd2")]()))){for(const n of t)e[fc("0xce")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x48")](t,fc("0x3c"))){if(!n[fc("0x10")])continue;if(!this[fc("0x8a")]&&n.containsRangeInObject)continue;if(!Ic(e,r))continue;let o=!0;for(const n of e[fc("0xd2")]())for(const e of t)if(!n[fc("0x3a")](e)){o=!1;break}if(o)return e}const s=(0,e.uid)(),x=o.id,a=fc("0xf2")+n,c=this[fc("0x10a")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[fc("0xae")](a,s,x,e,Yr[fc("0xf9")]());return c}[fc("0x177")](t,n,r=null,o={}){if(r=r||Tc(n),t[fc("0xdb")])return null;if(fc("0x9a")===this._trackFormatChanges){const e=this[fc("0x13b")].getSuggestionCallback(fc("0x86"),r,fc("0x53"));return this[fc("0xdc")]((()=>e([t],n,o))),null}const i=this.editor[fc("0x131")][fc("0x1f")](fc("0x118")).me,s=[];if("always"!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x3c")))n[fc("0x10")]&&!n[fc("0x15e")]&&s[fc("0x114")](...e[fc("0xd2")]());const x=function(t,e){const n=[];for(const r of e){const e=t.getIntersection(r);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0xb")];){const r=n[e][fc("0x14")](t);n[fc("0x2")](e,1,...r),e+=r[fc("0xb")]}}return n}(t,s);x[fc("0xb")]&&this[fc("0x12c")][fc("0x54")]((()=>{for(const t of x){const e=this[fc("0x13b")][fc("0x81")](fc("0x86"),r,fc("0x53"));this[fc("0xdc")]((()=>e([t],n,o)))}}));for(const t of a){let s=null,x=t[fc("0xcb")],a=t.end;for(const{suggestion:e,meta:n}of this[fc("0x48")](t,fc("0x86"))){if(!n[fc("0x10")])continue;if(e.subType!=r)continue;if(!Ic(e,o))continue;const i=e.getFirstRange();if(i[fc("0x3a")](t,!0))return null;x=x.isBefore(i.start)?x:i[fc("0xcb")],a=a[fc("0xc7")](i[fc("0xb5")])?a:i[fc("0xb5")],s?i[fc("0xcb")][fc("0x99")](s[fc("0x49")]()[fc("0xcb")])?(s[fc("0x23")](),s=e):e[fc("0x23")]():s=e}const c=this[fc("0x12c")][fc("0x128")](x,a);if(s)this[fc("0x14b")](s,c);else{const t=(0,e.uid)(),s=i.id;this[fc("0x10a")]({id:t,type:fc("0x127")+r,data:n,createdAt:new Date,authorId:s,attributes:o}),this._addSuggestionMarker(fc("0x127")+r,t,s,c)}}return null}[fc("0xd0")](t,n,r=[],o=null,i={}){n[fc("0x154")]||(n.formatGroupId=n[fc("0x166")]),n.multipleBlocks=t.is(fc("0x9")),o=o||Tc(n);const s=r[fc("0x27")]((t=>Cc(t,this[fc("0x12c")]))),x=t.is(fc("0x9"))?t:Cc(t,this[fc("0x12c")]);if(fc("0x9a")===this._trackFormatChanges){const t=this[fc("0x13b")][fc("0x81")](fc("0x7a"),o,"accept");return this[fc("0xdc")]((()=>t([x],n,i))),null}s[fc("0x114")](x);let a=!0;for(const t of s)if(!this[fc("0x100")](t)){a=!1;break}if(a&&fc("0x44")!==this[fc("0x125")]){const t=this[fc("0x13b")][fc("0x81")]("formatBlock",o,fc("0x53"));return this[fc("0xdc")]((()=>t([x],n,i))),null}let c=null,l=x.start,u=x[fc("0xb5")];for(const{suggestion:t,meta:e}of this[fc("0x48")](x,"formatBlock")){if(!e[fc("0x10")])continue;if(e[fc("0x5c")]||e[fc("0x5e")]||e[fc("0x15e")])continue;if(t.data.formatGroupId!=n.formatGroupId)continue;if(!Ic(t,i))continue;const r=t[fc("0x49")]();if(t[fc("0x43")]==o){if(r[fc("0x3a")](x,!0))return null;l=l[fc("0x99")](r[fc("0xcb")])?l:r[fc("0xcb")],u=u[fc("0xc7")](r[fc("0xb5")])?u:r[fc("0xb5")],c?r[fc("0xcb")][fc("0x99")](c[fc("0x49")]()[fc("0xcb")])?(c[fc("0x23")](),c=t):t[fc("0x23")]():c=t}else{const e=x[fc("0x59")](r);this[fc("0x170")](t,e)}}const d=this[fc("0x47")][fc("0x131")][fc("0x1f")]("Users").me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x14b")](c,this[fc("0x12c")][fc("0x128")](l,u)),c;{const t=this[fc("0x10a")]({id:g,type:fc("0x82")+o,data:n,createdAt:new Date,authorId:f,attributes:i});return this[fc("0xae")](fc("0x82")+o,g,f,this[fc("0x12c")].createRange(l,u)),t}}[fc("0x1b")](t,n,r=[],o=null,i={}){n[fc("0x154")]||(n[fc("0x154")]=n.commandName);const s=t[0];n[fc("0x171")]=s.is(fc("0x9")),o=o||Tc(n);const x=r[fc("0x27")]((t=>Cc(t,this._model))),a=s.is(fc("0x9"))?t:t[fc("0x27")]((t=>Cc(t,this[fc("0x12c")])));if(fc("0x9a")===this[fc("0x125")]){const t=this[fc("0x13b")][fc("0x81")](fc("0x7a"),o,fc("0x53"));return this.forceDefaultExecution((()=>t(a,n,i))),null}x[fc("0x114")](...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&"always"!==this._trackFormatChanges){const t=this._suggestionFactory[fc("0x81")](fc("0x7a"),o,fc("0x53"));return this[fc("0xdc")]((()=>t(a,n,i))),null}const l=this[fc("0x47")][fc("0x131")][fc("0x1f")](fc("0x118")).me;for(const t of this[fc("0x13f")]()){if(t[fc("0xfb")].id!=l.id)continue;if(fc("0x7a")!=t[fc("0x45")]||t[fc("0x13")].formatGroupId!=n[fc("0x154")])continue;if(!Ic(t,i))continue;const e=t.subType==o;for(let n=0;n<a.length;n++){const r=a[n];for(const o of t.getMarkers()){const i=o[fc("0xd6")]();if(r.isEqual(i)){e?(a[fc("0x2")](n,1),n--):t[fc("0x16b")](o.name);break}}}}if(0==a.length)return null;const u=this[fc("0x13b")].getSuggestionCallback("formatBlock",o,"join");for(const t of this[fc("0x13f")]())if(t[fc("0xfb")].id==l.id&&fc("0x7a")==t[fc("0x45")]&&t[fc("0x13")].formatGroupId==n[fc("0x154")]&&t[fc("0x43")]==o&&Ic(t,i)&&(u(t[fc("0xd2")](),a)||u(a,t[fc("0xd2")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0x82")+o,m=this[fc("0x10a")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this._addSuggestionMarker(f,d,g,t,Yr.getMultiRangeId());return m}[fc("0xac")](t,n=null,r={}){if(t[fc("0xdb")])return null;const o=this[fc("0x47")].plugins[fc("0x1f")](fc("0x118")).me,i=new s.LiveRange(t.start,t.end);for(const{suggestion:t,meta:e}of this[fc("0x48")](i,fc("0x3c")))if(e[fc("0x10")]&&!e[fc("0x5c")])if(t[fc("0x65")]){const e=t[fc("0xd2")]()[fc("0x66")]((t=>fc("0x20")!=t[fc("0xe3")].rootName));if(e[fc("0x11")]((t=>i[fc("0x3a")](t,!0)))&&t[fc("0x5")](),e[fc("0xb0")]((t=>t[fc("0x3a")](i,!0)))){const t=this[fc("0x13b")][fc("0x81")]("deletion",n,fc("0x53"));return this[fc("0xdc")]((()=>t([i],null,r))),null}}else{const e=i[fc("0x59")](t[fc("0x49")]());null!==e&&t._onDiscard([e],null,r)}if(i[fc("0x80")](),i[fc("0xdb")]||fc("0x20")==i[fc("0xe3")][fc("0x60")])return null;let x=null,a=i.start,c=i[fc("0xb5")];const l=this._findSuggestions(i,"deletion");for(const{suggestion:t,meta:e}of l){const n=this._model[fc("0x128")](a,c);if(e.isOwn&&(this[fc("0x8a")]||!e.containsRangeInObject&&!e.isInsideObject))if(t[fc("0x65")]){if(!Ic(t,r))continue;let e=!0;for(const r of t[fc("0xd2")]()){if(r[fc("0x3a")](n,!0))return t;n[fc("0x3a")](r)||(e=!1)}e&&t[fc("0x5")]()}else{const e=t.getFirstRange();if(e[fc("0x3a")](n,!0))return t;if(!Ic(t,r)){n[fc("0x3a")](e)?t[fc("0x23")]():e[fc("0x75")](a)?a=e[fc("0xb5")]:e[fc("0x75")](c)&&(c=e.start);continue}a=a[fc("0x99")](e[fc("0xcb")])?a:e.start,c=c[fc("0xc7")](e[fc("0xb5")])?c:e[fc("0xb5")],r=Object[fc("0x2a")]({},t[fc("0x136")]),x?e[fc("0xcb")][fc("0x99")](x.getFirstRange()[fc("0xcb")])?(x[fc("0x23")](),x=t):t[fc("0x23")]():x=t}}if(x)return this[fc("0x14b")](x,this[fc("0x12c")].createRange(a,c)),x;{const t=(0,e.uid)(),i=this._model.createRange(a,c),s=o.id,x=n?fc("0x142")+n:"deletion",l=this[fc("0x10a")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this._addSuggestionMarker(x,t,s,i),l}}[fc("0x2b")](t,n=fc("0xe4"),r={}){const o=this[fc("0x47")][fc("0x131")][fc("0x1f")](fc("0x118")).me,i=t.map((t=>new s.LiveRange(t.start,t[fc("0xb5")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x48")](i,fc("0x3c")))e[fc("0x10")]&&!e[fc("0x5c")]&&x[fc("0x126")](t);for(const e of x)if(e.isMultiRange){const o=e.getRanges();if((!e.attributes||!e[fc("0x136")][fc("0x50")])&&o[fc("0x11")]((t=>i[fc("0xb0")]((e=>e.containsRange(t,!0)))))&&e[fc("0x5")](),i.every((t=>o[fc("0xb0")]((e=>e[fc("0x3a")](t,!0)))))){const e=this[fc("0x13b")][fc("0x81")](fc("0x3d"),n,fc("0x53"));return this.forceDefaultExecution((()=>e(t,null,r))),null}}else{const t=e.getFirstRange();if(i[fc("0xb0")]((e=>e[fc("0x3a")](t,!0)))&&e[fc("0x5")](),i[fc("0x11")]((e=>t[fc("0x3a")](e,!0)))){const t=this[fc("0x13b")][fc("0x81")](fc("0x3d"),n,fc("0x53"));return this[fc("0xdc")]((()=>t(i,null,r))),null}}const a=this[fc("0x13b")][fc("0x81")](fc("0x3d"),n,fc("0x85"));let c=null;for(const t of this[fc("0x13f")]())if(t[fc("0xfb")].id==o.id&&t[fc("0x121")]&&fc("0x3d")==t[fc("0x45")]&&t[fc("0x43")]==n&&Ic(t,r)&&(a(t.getRanges(),i)||a(i,t[fc("0xd2")]())))if(c){if(t.commentThread&&t[fc("0x52")][fc("0xb")])continue;for(const e of t[fc("0xd2")]())c[fc("0x5d")](e)||c[fc("0xce")](e);t[fc("0x23")]()}else{c=t;for(const e of i)t.isIntersectingWithRange(e)||t[fc("0xce")](e)}if(c)return c;x[fc("0x11a")]();for(const{suggestion:t,meta:e}of this._findSuggestions(i,"deletion"))e.isOwn&&(this[fc("0x8a")]||!e[fc("0x5e")]&&!e[fc("0x15e")])&&Ic(t,r)&&x.add(t);for(const t of x){const e=t.getRanges();if((!r||!r[fc("0x50")])&&i.every((t=>e[fc("0xb0")]((e=>e[fc("0x3a")](t,!0))))))return t;(!t[fc("0x136")]||!t[fc("0x136")][fc("0x50")])&&e[fc("0x11")]((t=>i[fc("0xb0")]((e=>e.containsRange(t,!0)))))&&t[fc("0x5")]()}const l=(0,e.uid)(),u=o.id,d="deletion:"+n,g=this[fc("0x10a")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of i)t[fc("0x80")](),t.isCollapsed||"$graveyard"==t[fc("0xe3")][fc("0x60")]||this[fc("0xae")](d,l,u,t,Yr[fc("0xf9")]());return g}markAttributeChange(t,n,r,o,i){if(t[fc("0xdb")])return[];if(fc("0x9a")===this._trackFormatChanges)return[];const s=this[fc("0x47")].plugins[fc("0x1f")](fc("0x118")).me.id,x=Array[fc("0x140")](this[fc("0x15f")][fc("0xf4")]())[fc("0x66")]((e=>fc("0xc4")==e[fc("0x45")]&&e[fc("0x13")].key==n&&e[fc("0x5d")](t)));if("default"===this[fc("0x125")]){const e=this[fc("0x48")](t,fc("0x3c"))[fc("0x66")]((({meta:t})=>t[fc("0x10")]&&!t[fc("0x15e")]&&!t[fc("0x5c")]))[fc("0x27")]((({suggestion:t})=>t));x[fc("0x16e")](...e)}const a=new Map([[t,r]]);for(const t of x){const e=fc("0xc4")==t.type?t[fc("0x13")][fc("0x12f")]:void 0,i=t[fc("0x49")](),s=Array[fc("0x140")](a[fc("0x164")]())[fc("0x10c")]((t=>t[fc("0x109")](i)));if(!s)continue;const x=s[fc("0x14")](i);this._isBlockAttribute(n)&&fc("0x3c")==t.type&&0!=x.length||(a.delete(s),x[fc("0x139")]((t=>{a[fc("0x11b")](t,r)})),fc("0x3c")!=t[fc("0x45")]&&e!=o&&a.set(s[fc("0x59")](i),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:o};n.length>37&&console.warn("Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.",{key:n});const l=(fc("0x73")+(n+"|")+Tc({newValue:o}))[fc("0xc1")](0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c.push(u),this[fc("0xae")](l,x,s,t)}return c}[fc("0xa4")](t){this._blockAttributeKeys[fc("0x126")](t)}_registerInlineAttribute(t){this[fc("0x113")][fc("0x126")](t)}_enableDefaultAttributesIntegration(t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this[fc("0x9b")]((()=>{t(...e)}))}));for(const t of e)this[fc("0x6b")](t);for(const t of n)this._registerBlockAttribute(t)}_setSuggestionRange(t,e){const n=t[fc("0xee")]();this[fc("0x12c")][fc("0x54")]((t=>{t.updateMarker(n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[fc("0x47")][fc("0x10e")][fc("0x1f")](fc("0xba"));this[fc("0x7e")][fc("0x5b")](e)||this[fc("0x7e")][fc("0x3f")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this._commentsRepository.getCommentThread(e);r.unbind(fc("0x162")),r[fc("0x162")]=!1,t.commentThread=r}[fc("0x5a")](t,n,r,o){if(t[fc("0x45")]!=n||t[fc("0x43")]!=r||t[fc("0x7c")].id!=o)throw this.editor[fc("0x2e")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(fc("0xf3"),this)}_cutOutSuggestionMarker(t,n){const r=t[fc("0x49")]();if(n[fc("0x133")](r))t[fc("0x23")]();else if(r.containsRange(n)){const o=this[fc("0x12c")][fc("0x6d")](n.start[fc("0x58")],fc("0xb5"));this[fc("0x14b")](t,this._model[fc("0x128")](r.start,o));const i=(0,e.uid)(),s=t[fc("0x7c")].id,x=t.type+":"+t[fc("0x43")];this[fc("0x10a")]({id:i,type:x,createdAt:new Date,authorId:s,data:t.data,attributes:t[fc("0x136")]});const a=this[fc("0x12c")][fc("0x6d")](n[fc("0xb5")][fc("0xa1")],fc("0x135")),c=this._model[fc("0x128")](a,r[fc("0xb5")]);this[fc("0xae")](x,i,s,c)}else if(r[fc("0x75")](n[fc("0xcb")])){const e=this[fc("0x12c")][fc("0x6d")](n[fc("0xcb")][fc("0x58")],fc("0xb5"));this[fc("0x14b")](t,this[fc("0x12c")][fc("0x128")](r[fc("0xcb")],e))}else{const e=this[fc("0x12c")][fc("0x6d")](n.end[fc("0xa1")],fc("0x135"));this[fc("0x14b")](t,this[fc("0x12c")][fc("0x128")](e,r[fc("0xb5")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[fc("0x48")](t,"insertion")){if(!n[fc("0x10")])continue;const r=e[fc("0xd2")]();for(const e of r)if(!t.getDifference(e).length)return!0}return!1}[fc("0xdf")](t){const n=this.editor.plugins[fc("0x1f")](fc("0x118"))[fc("0x14e")](t);if(!n)throw new e.CKEditorError(fc("0xab"),this);return n}[fc("0x14c")](t){const e=this[fc("0x47")][fc("0x131")][fc("0x1f")](fc("0x118")),n=(0,i.hashObject)(fc("0xf0")+t);return e[fc("0x14e")](n)||e[fc("0x13a")]({id:n,name:t})}[fc("0xd9")](t,e,n,r,o){const i=this._getAuthorFromId(r),s=this[fc("0x13b")][fc("0x89")](t,e,n,i,o,(t=>this[fc("0x94")](n,{attributes:t})));return this.listenTo(s,"accept",(()=>{this[fc("0x94")](n,{state:fc("0x9d")})}),{priority:fc("0x172")}),this[fc("0x175")](s,fc("0x5"),(()=>{this[fc("0x94")](n,{state:"rejected"})}),{priority:fc("0x172")}),this[fc("0x15f")][fc("0x11b")](n,s),this[fc("0x153")][fc("0x11b")](s,"notReady"),s}[fc("0xf6")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[fc("0xb")]>=5?e[2]:null,id:e[fc("0xb")]<5?e[2]:e[3],authorId:e[fc("0xb")]<5?e[3]:e[4],markerCount:6==e[fc("0xb")]?e[5]:null}}[fc("0xbc")](t,n,r){const o=t[fc("0x49")](),i=o[fc("0xcb")],s=o[fc("0xb5")];this[fc("0x14b")](t,this._model[fc("0x128")](i,n));const x=(0,e.uid)(),a=t[fc("0x7c")].id,c=t[fc("0x45")]+(t[fc("0x43")]?":"+t[fc("0x43")]:"");this[fc("0x10a")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x136")],data:t[fc("0x13")]});const l=this[fc("0x168")](t);(fc("0x7a")==t[fc("0x45")]||l&&this[fc("0xc8")](l))&&(r=this[fc("0x12c")][fc("0x37")](r.parent)),this[fc("0xae")](c,x,a,this[fc("0x12c")][fc("0x128")](r,s))}_findSuggestions(t,e=null){const n=[],r=this[fc("0x47")][fc("0x131")].get(fc("0x118")).me;Array[fc("0x176")](t)||(t=[t]);for(const o of this[fc("0x13f")]()){if(!o.isInContent)continue;if(e&&o[fc("0x45")]!=e)continue;let i=!1;for(const e of o[fc("0xd2")]()){for(const s of t){const t=s.start[fc("0x133")](e[fc("0xb5")])||s[fc("0xb5")][fc("0x133")](e[fc("0xcb")]);if(t||s[fc("0x59")](e)){const x=s.containsRange(e)&&pc(this[fc("0x12c")][fc("0x4")],e[fc("0xcb")],s),a=e.containsRange(s)&&pc(this._model[fc("0x4")],s.start,e);n[fc("0x114")]({suggestion:o,meta:{isOwn:r==o[fc("0xfb")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0xae")](t,e,n,r,o){this[fc("0x12c")][fc("0x54")]((i=>{let s=fc("0x107")+t+":"+e+":"+n;o&&(s=s+":"+o),i.addMarker(s,{range:r,usingOperation:!0,affectsData:!0})}))}[fc("0xb8")](t){const e=t[fc("0x103")],n=t[fc("0x167")];t[fc("0x103")]=null,t[fc("0x167")]=null,null!=e&&(e.next=n),null!=n&&(n[fc("0x103")]=e),fc("0x76")==this[fc("0x153")][fc("0x1f")](t)&&(this._suggestionState.set(t,fc("0x112")),this[fc("0x21")](fc("0xfc"),t,e,n))}[fc("0x10a")](t){const n=t.id,r=this[fc("0xbe")](t);if(this[fc("0xea")]&&this[fc("0xea")][fc("0xd")]){const o=this[fc("0x47")][fc("0x131")].get(fc("0x90")),i=r[fc("0x30")],s=r[fc("0x43")]?r[fc("0x45")]+":"+r[fc("0x43")]:r[fc("0x45")],x=this[fc("0x47")].locale,a=o[fc("0x126")](Jr(x,fc("0xe0"))),c={id:n,type:s,hasComments:i,data:t[fc("0x13")]||null,originalSuggestionId:t[fc("0x147")]||null,attributes:r[fc("0x136")]};this[fc("0xea")][fc("0xd")](c)[fc("0x11e")]((t=>{r[fc("0x24")]=!0,o[fc("0xa2")](a),t&&t[fc("0x14f")]&&(this._suggestions.get(n)[fc("0x14f")]=t.createdAt)}))[fc("0x159")]((t=>{throw(0,e.logWarning)(fc("0x1d")),this.editor[fc("0xc9")].enqueueChange({isUndoable:!1},(()=>{r[fc("0x5")]()})),r.stopListening(),this[fc("0x15f")][fc("0xf8")](r.id),this[fc("0x153")][fc("0xf8")](r),t}))}return r}_isBlockAttribute(t){return this[fc("0x178")][fc("0x31")](t)}_getAttributeKeyFromSubType(t){return fc("0xc4")==t.type&&t[fc("0x43")].split("|")[0]}[fc("0x94")](t,e){const n=this.editor[fc("0x131")].get(fc("0x90")),r=this[fc("0x144")](t);if(this[fc("0xea")]&&this[fc("0xea")].updateSuggestion)if(r._saved){const r=n[fc("0x126")](Jr(this[fc("0x47")].locale,fc("0xe0")));this._adapter[fc("0xd7")](t,e)[fc("0x11e")]((()=>{n.remove(r)}))}else r.on(fc("0x8c"),(()=>{this[fc("0x94")](t,e)}))}[fc("0x122")](t){if(!this._adapter||!this[fc("0xea")][fc("0x144")])throw new e.CKEditorError(fc("0x3b"),this);return this[fc("0xea")][fc("0x144")](t)}[fc("0x39")](t){const{id:e,type:n,subType:r,authorId:o}=this[fc("0xf6")](t),i=this[fc("0x15f")].get(e)||this[fc("0xd9")](n,r,e,o,{});switch(this._checkSuggestionCorrectness(i,n,r,o),this[fc("0x153")][fc("0x1f")](i)){case"notReady":this._getSuggestionData(e)[fc("0x11e")]((t=>{let n=Promise.resolve();t[fc("0x30")]&&(n=this._commentsRepository[fc("0x11c")]({channelId:this[fc("0x47")][fc("0x10e")][fc("0x1f")](fc("0xba")),threadId:e})),n[fc("0x11e")]((()=>{this[fc("0xbe")](t)[fc("0x24")]=!0}))})),this[fc("0x153")][fc("0x11b")](i,fc("0x16d"));break;case"removed":this._updateSuggestionData(e,{state:"open"});case fc("0xcf"):this[fc("0x153")][fc("0x11b")](i,fc("0x76")),this[fc("0x21")](fc("0x4d"),i);break;case fc("0x76"):this[fc("0x21")]("suggestionChanged",i)}return i[fc("0x146")](t),i}[fc("0xa8")](t){const e=Array[fc("0x140")](t),n=e[fc("0x66")]((t=>"attribute"==t[fc("0x45")]));this[fc("0x12")](n);const r=e[fc("0x66")]((t=>!t[fc("0x65")]&&fc("0xc4")!=t[fc("0x45")])),o=this[fc("0x13f")]({skipNotAttached:!0})[fc("0x66")]((t=>!t[fc("0x65")]&&fc("0xc4")!=t[fc("0x45")])),i=o[fc("0x66")]((e=>!t[fc("0x31")](e))),s=new Map(o[fc("0x27")]((t=>[t,this[fc("0x13b")][fc("0x81")](t[fc("0x45")],t[fc("0x43")],fc("0x70"))]))),x=new Map(o.map((t=>[t,t.getFirstRange()]))),a=new Set,c=new Set;for(let t=0;t<r[fc("0xb")];t++)u(r[t],r,t+1);for(let t=0;t<r[fc("0xb")];t++)u(r[t],i,0);const l=new Set;for(let t=0;t<r[fc("0xb")];t++){const e=r[t];!c[fc("0x31")](e)&&e[fc("0x103")]&&(l[fc("0x126")](e[fc("0x103")]),e[fc("0x103")][fc("0x167")]===e&&(e[fc("0x103")][fc("0x167")]=null),e[fc("0x103")]=null),!a[fc("0x31")](e)&&e[fc("0x167")]&&(l[fc("0x126")](e[fc("0x167")]),e[fc("0x167")][fc("0x103")]===e&&(e[fc("0x167")][fc("0x103")]=null),e[fc("0x167")]=null)}function u(t,e,n){for(let r=n;r<e[fc("0xb")];r++){const n=d(t,e[r]);n&&(n[0].next=n[1],n[1][fc("0x103")]=n[0],a[fc("0x126")](n[0]),c[fc("0x126")](n[1]))}}function d(t,e){if(t.author.id!==e[fc("0xfb")].id)return null;const n=s[fc("0x1f")](t)(t,e,x[fc("0x1f")](t),x[fc("0x1f")](e));return n&&s[fc("0x1f")](e)(t,e,x[fc("0x1f")](t),x.get(e))?n[1].commentThread&&n[1][fc("0x52")].length?null:n:null}l.size&&this[fc("0xa8")](l)}[fc("0x12")](t){if(0==t.length)return;const e=this.getSuggestions({skipNotAttached:!0})[fc("0x66")]((t=>fc("0xc4")==t[fc("0x45")]&&t._isDataLoaded)),n=[],r=new Map;for(const t of e){const e=(0,i.hashObject)(t[fc("0x136")]);r[fc("0x31")](e)||(r[fc("0x11b")](e,n[fc("0xb")]),n[fc("0x114")]([]));const o=r[fc("0x1f")](e);n[o][fc("0x114")](t)}!function(){n.sort(((t,e)=>{const n=t[0][fc("0x14f")],r=e[0][fc("0x14f")];return n==r?t[0][fc("0x136")][fc("0x97")]<e[0][fc("0x136")][fc("0x97")]?-1:1:n<r?-1:1}));for(const t of n)t[fc("0xbb")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0xb")];t++){if(0==n[t][fc("0xb")])continue;const e=[];for(let r=t+1;r<n.length;r++)0!=n[r].length&&o(n[t],n[r])&&e[fc("0x114")](r);for(const r of e)n[t]=n[t][fc("0xec")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0x167")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0xb")];e++)t[e][fc("0x103")]=t[e-1]||null;function o(t,e){if(t[0].author!==e[0][fc("0xfb")])return!1;if(n=t[0],r=e[0],(n.hasComments||r.hasComments)&&(n[fc("0x30")]&&r[fc("0x30")]||!(n[fc("0x30")]&&r.createdAt<n[fc("0x52")][fc("0xcc")].get(0)[fc("0x14f")]||r[fc("0x30")]&&n[fc("0x14f")]<r[fc("0x52")].comments.get(0)[fc("0x14f")])))return!1;var n,r;const o=lc(t[0][fc("0x136")],fc("0x97")),i=lc(e[0][fc("0x136")],fc("0x97"));return!!jr(o,i)&&(!!t[fc("0x11")]((t=>e[fc("0xb0")]((e=>t[fc("0x49")]().isEqual(e[fc("0x49")]())))))&&e.every((e=>t[fc("0xb0")]((t=>e[fc("0x49")]()[fc("0x133")](t[fc("0x49")]()))))))}}[fc("0x2d")](t){const e=Array.from(t),n=this[fc("0x13f")]({skipNotAttached:!0}),r=n[fc("0x66")]((e=>!t[fc("0x31")](e))),o=new Map(e[fc("0x27")]((t=>[t,this[fc("0x13b")].getSuggestionCallback(t[fc("0x45")],t.subType,"join")]))),i=new Map(n[fc("0x27")]((t=>[t,t[fc("0xd2")]()])));for(let t=0;t<e[fc("0xb")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0xb")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[fc("0xb")];s++){const r=n[s];if(r[fc("0x45")]!==e[fc("0x45")]||r[fc("0xfb")].id!==e[fc("0xfb")].id||r.subType!==e[fc("0x43")])continue;if(!kc(e,r))continue;if(fc("0xc4")==e[fc("0x45")]&&e[fc("0x13")].oldValue!=r[fc("0x13")][fc("0x12f")])continue;if("attribute"==e[fc("0x45")]&&t._isBlockAttribute(e[fc("0x13")].key))continue;if(fc("0x7a")==e.type){const n=t[fc("0x47")].model,r=e[fc("0xe9")]();if(r&&(n.schema[fc("0x148")](r)||n[fc("0x4")][fc("0xfa")](r)))continue}const x=o.get(e),a=i[fc("0x1f")](e),c=i[fc("0x1f")](r),l=e[fc("0x52")]&&e[fc("0x52")][fc("0xb")],u=r[fc("0x52")]&&r[fc("0x52")][fc("0xb")];if(!l&&x(c,a))return t._joinSuggestions(r,e),i.delete(e),!0;if(!u&&x(a,c))return t[fc("0xfd")](e,r),i[fc("0xf8")](r),!0}return!1}}[fc("0xfd")](t,e){if(t[fc("0x65")])for(const n of e[fc("0xd2")]())t.addRange(n);else{const n=e[fc("0x49")]()[fc("0xb5")];this[fc("0x14b")](t,this._model[fc("0x128")](t[fc("0x49")]()[fc("0xcb")],n))}e[fc("0x23")]()}[fc("0x174")](t,e){const n=t.startsWith(fc("0x10d"))||t[fc("0x13d")]("attribute")?fc("0x15b"):t.toUpperCase();return Jr(this.editor[fc("0xed")],e+"_"+n+fc("0x83"))}_initAriaMarkerChangeAnnouncements(){const t=this[fc("0x47")];(0,i.surroundingMarkersDetector)(this[fc("0x12c")],(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[fc("0xf6")](t[fc("0xff")]);if(fc("0x68")===e){r.push(this._getMarkerAnnouncementText(n,fc("0x2f")));break}}for(const t of n){const{group:e,type:n}=this[fc("0xf6")](t[fc("0xff")]);if(fc("0x68")===e){r[fc("0x114")](this[fc("0x174")](n,fc("0x55")));break}}r.length&&t.ui[fc("0x6c")][fc("0x105")](fc("0xfe"),r[fc("0x85")](" "))}))}[fc("0xc6")](t){if(null!==this[fc("0xaa")])return!1;const e=this[fc("0x47")],n=e[fc("0xc9")][fc("0xd4")][fc("0x1")].getChanges();if(0==n[fc("0xb")])return!1;const r=[],o=n[fc("0x66")]((t=>"attribute"==t[fc("0x45")])),i=n.filter((t=>fc("0x16f")==t[fc("0x45")]&&fc("0x64")!=t.name)),s=n[fc("0x66")]((t=>"remove"==t.type&&fc("0x64")!=t[fc("0xff")]));for(const t of o)r[fc("0x114")]({key:t.attributeKey,newValue:t[fc("0x18")],oldValue:t[fc("0x3")],range:(x=t.range,null==x.end[fc("0x58")]&&x[fc("0xb5")][fc("0xa1")]==x[fc("0xcb")][fc("0x71")]?Cc(x.start[fc("0x71")],e[fc("0xc9")]):x)});var x;for(const t of i){const n=s.find((e=>e[fc("0xb9")][fc("0x133")](t[fc("0xb9")])));n&&r.push({key:fc("0xe1"),newValue:t[fc("0xff")],oldValue:n.name,range:e[fc("0xc9")][fc("0x4a")](t[fc("0xb9")].nodeAfter)})}return 0!=r[fc("0xb")]&&this[fc("0x130")](t,r)}[fc("0x106")](t){let e=!1;const n=this[fc("0x47")][fc("0xc9")][fc("0xd4")][fc("0x1")][fc("0xe5")]()[fc("0x66")]((t=>t.data[fc("0xf1")]&&t[fc("0xff")].startsWith("suggestion:attribute:")));for(const r of n){const{subType:n,id:o}=this._splitMarkerName(r[fc("0xff")]),i=n[fc("0x84")]("|")[0];for(const n of this.getSuggestions({skipNotAttached:!0}))n.id!=o&&fc("0xc4")==n[fc("0x45")]&&n.data&&n[fc("0x13")].key==i&&n.getFirstRange().isIntersecting(r.data.newRange)&&(this[fc("0x8d")](n,r.data[fc("0xf1")],t),e=!0)}return e}_recordAttributeChanges(t){if(null!==this[fc("0xaa")])return void t();const n=this[fc("0x47")];this[fc("0xaa")]=n[fc("0xc9")][fc("0xd4")][fc("0x67")],t();const r=new Map;for(const t of n[fc("0xc9")][fc("0xd4")][fc("0x6a")].getOperations(this._recordAttributeSuggestionsFromVersion))if([fc("0xef"),"addAttribute","removeAttribute",fc("0x36")][fc("0x7b")](t[fc("0x45")])){const e=t[fc("0x91")],n=r.get(e)||[];n[fc("0x114")](t),r[fc("0x11b")](e,n)}this[fc("0xaa")]=null;for(const[t,o]of r){const r=(0,e.uid)();n[fc("0xc9")][fc("0xeb")](t,(t=>{const e=[];for(const t of o){let o,i,s,x;if(fc("0xef")==t[fc("0x45")]){const e=t;o=Cc(e.position[fc("0x71")],n[fc("0xc9")]),i=fc("0xe1"),s=e[fc("0x28")],x=e[fc("0x26")]}else{const e=t,r=this[fc("0xc8")](e[fc("0x3e")]),a=this[fc("0x113")][fc("0x31")](e[fc("0x3e")]);if(!r&&!a)continue;o=r?Cc(e[fc("0x9")][fc("0xcb")][fc("0x71")],n[fc("0xc9")]):e[fc("0x9")],i=e[fc("0x3e")],s="removeAttribute"==t[fc("0x45")]?void 0:e.newValue,x=e[fc("0x12f")]}this[fc("0x12a")](o,i,x,s,{groupId:r}),e[fc("0x114")]({range:o,key:i,newValue:s,oldValue:x})}this[fc("0x130")](t,e)}))}}[fc("0x130")](t,e){if(0==e[fc("0xb")])return!1;let n=!1;for(const r of e){const e=this._findSuggestions(r[fc("0x9")],"attribute")[fc("0x66")]((t=>!t[fc("0x124")][fc("0x5c")])).map((t=>t[fc("0x68")])),o=(0,i.hashObject)({newValue:r[fc("0x6f")]});e.filter((t=>{const[e,n]=t[fc("0x43")][fc("0x84")]("|");return e==r.key&&n!=o}))[fc("0x139")]((e=>{this[fc("0x8d")](e,r[fc("0x9")],t),n=!0}))}return n}[fc("0x8d")](t,e,n){const r=t[fc("0x49")]().getDifference(e);0!==r.length?1!==r[fc("0xb")]?this[fc("0xbc")](t,e[fc("0xcb")],e[fc("0xb5")]):this[fc("0x14b")](t,r[0]):n[fc("0x16b")](t[fc("0xee")]())}}class bc{constructor(t){this[fc("0x46")]=t,this[fc("0x12c")]=t[fc("0xc9")],this._customCallbacks=new Map,this._defaultCallbacks=new Map,this[fc("0x12d")]()}[fc("0x89")](t,e,n,r,o,i){return new Yr(this[fc("0x12c")],{type:t,subType:e,id:n,author:r,creator:r,attributes:o,onAttributesChange:i,onAccept:(...n)=>this[fc("0x81")](t,e,fc("0x53"))(...n),onDiscard:(...n)=>this[fc("0x81")](t,e,fc("0x5"))(...n)})}[fc("0x10f")](t,e,n,r){const o=t+":"+e+":"+n;this[fc("0x150")].set(o,r)}[fc("0x81")](t,e,n){const r=t+":"+e+":"+n;return this[fc("0x150")][fc("0x1f")](r)||this[fc("0x42")][fc("0x1f")](t+":"+n)}[fc("0x12d")](){const t=()=>!1,e=t=>{t[fc("0xbb")](((t,e)=>t[fc("0xcb")][fc("0x99")](e[fc("0xcb")])?1:-1)),this._model[fc("0x54")]((e=>{for(const n of t){let t;t=n[fc("0xb5")][fc("0x19")]&&n[fc("0xb5")][fc("0xa1")]==n[fc("0xcb")][fc("0x71")]?e[fc("0x8")](n.start.nodeAfter,"on"):e.createSelection(n),this[fc("0x12c")][fc("0xd1")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[fc("0x54")]((n=>{const{commandName:r,commandParams:o=[]}=e,i=t.map((t=>(Ec(t)&&(t=this[fc("0x12c")][fc("0x128")](t[fc("0xb5")])),t))).filter((t=>fc("0x20")!==t[fc("0xe3")][fc("0x60")]));if(i[fc("0xb")]<1)return;const x=Array[fc("0x140")](this[fc("0x12c")][fc("0xd4")][fc("0x156")][fc("0xd2")]()).map((t=>s.LiveRange[fc("0x104")](t)));n[fc("0x143")](i);for(const t of this._editor[fc("0x15d")][fc("0x15d")]())t[fc("0x5f")]();o[fc("0x114")]({forceDefaultExecution:!0}),this[fc("0x46")][fc("0x12b")](r,...o);const a=x[fc("0x66")]((t=>fc("0x20")!=t[fc("0xe3")][fc("0x60")]));a[fc("0xb")]>0&&n[fc("0x143")](a);for(const t of x)t[fc("0x80")]()}))},r=(t,e)=>1==t[fc("0xb")]&&1==e[fc("0xb")]&&t[0][fc("0xb5")].isEqual(e[0][fc("0xcb")]),o=(t,e,n,r)=>Ac(t,e,n,r,this[fc("0x12c")])?[t,e]:Ac(e,t,r,n,this[fc("0x12c")])?[e,t]:null;this._defaultCallbacks[fc("0x11b")]("insertion:accept",t),this._defaultCallbacks.set("insertion:discard",e),this[fc("0x42")][fc("0x11b")]("insertion:join",r),this._defaultCallbacks.set("insertion:chain",o),this[fc("0x42")][fc("0x11b")](fc("0x32"),e),this[fc("0x42")][fc("0x11b")](fc("0xe8"),t),this[fc("0x42")][fc("0x11b")]("deletion:join",r),this[fc("0x42")][fc("0x11b")](fc("0x8b"),o),this[fc("0x42")][fc("0x11b")](fc("0x29"),n),this[fc("0x42")][fc("0x11b")](fc("0x14d"),t),this[fc("0x42")][fc("0x11b")](fc("0x16c"),r),this[fc("0x42")][fc("0x11b")](fc("0xf"),t),this[fc("0x42")][fc("0x11b")](fc("0x4e"),n),this[fc("0x42")][fc("0x11b")]("formatBlock:discard",t),this[fc("0x42")][fc("0x11b")]("formatBlock:join",r),this[fc("0x42")].set("formatBlock:chain",t),this[fc("0x42")][fc("0x11b")]("attribute:accept",t),this[fc("0x42")][fc("0x11b")]("attribute:discard",((t,e)=>{if(!e)return;const n=this._editor[fc("0x131")][fc("0x1f")](hc);this[fc("0x12c")][fc("0x54")]((r=>{if(fc("0xe1")==e[fc("0x3e")])for(const n of t){const t=n[fc("0xcb")][fc("0x71")],o=e[fc("0x12f")];r[fc("0xef")](t,o)}else if(n[fc("0xc8")](e[fc("0x3e")]))for(const n of t)void 0!==e[fc("0x12f")]?r.setAttribute(e.key,e[fc("0x12f")],n[fc("0xcb")][fc("0x71")]):r[fc("0xb6")](e[fc("0x3e")],n[fc("0xcb")][fc("0x71")]);else for(const n of t)e[fc("0x12f")]?r[fc("0xe2")](e[fc("0x3e")],e[fc("0x12f")],n):r.removeAttribute(e[fc("0x3e")],n)}))})),this[fc("0x42")][fc("0x11b")](fc("0x119"),r)}}function pc(t,e,n){for(const r of e[fc("0xa1")].getAncestors({includeSelf:!0,parentFirst:!0})){if(r[fc("0xe3")]==r)return!1;if(!n[fc("0x145")](r))return!1;if(t[fc("0x148")](r)||t.isLimit(r))return!0}return!1}function Ec(t){return t[fc("0xb5")].parent==t.start.nodeAfter&&t[fc("0xb5")][fc("0xe")]}function _c(t,e,n,r){const o=t=>!t[fc("0x40")].is(fc("0xc5"))&&!r[fc("0x148")](t[fc("0x40")]),i=t[fc("0xcb")][fc("0x115")](o),s=t[fc("0xb5")].getLastMatchingPosition(o,{direction:fc("0xde")});return!(t[fc("0xcb")][fc("0x133")](i)&&t[fc("0xb5")][fc("0x133")](s)||(i.isBefore(s)?n.updateMarker(e,{range:n[fc("0x128")](i,s)}):n.removeMarker(e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t[fc("0xcb")][fc("0x71")];return e&&e.is(fc("0x157"))}function Cc(t,e){const n=e[fc("0x4")][fc("0x148")](t)||e[fc("0x4")][fc("0x41")](t);return e[fc("0x128")](e[fc("0x6d")](t,fc("0x61")),n?e[fc("0x33")](t):e[fc("0x6d")](t,fc("0xb5")))}function Ac(t,e,n,r,o){if(!kc(t,e))return!1;if(n.end[fc("0x133")](r.start))return!0;if(t[fc("0x45")]!=e[fc("0x45")])return!1;if(!n[fc("0xb5")].isTouching(r[fc("0xcb")]))return!1;const i=o[fc("0x128")](n[fc("0xb5")],r[fc("0xcb")])[fc("0x69")]();for(const t of i)if(["elementStart","elementEnd"][fc("0x7b")](t[fc("0x45")])&&o.schema[fc("0xfa")](t[fc("0x40")]))return!1;return!0}function kc(t,e){return!(!t[fc("0x8f")]||!e[fc("0x8f")])&&jr(t.attributes,e.attributes)}function Ic(t,e){const n=Rc(t.attributes),r=Rc(e);if(!t[fc("0x8f")])return!1;for(const t of Object[fc("0x164")](r))if(!jr(n[t],r[t]))return!1;return!0}function Rc(t){const e=Object[fc("0x2a")]({},t);return delete e[fc("0x50")],delete e[fc("0x9c")],e}const Sc=["add","bind","model","canEditAt","_discardCommand","PendingActions","canDiscard","locale","_removePendingAction","acceptSuggestion","commands","listenTo","plugins","canAccept","discardSuggestion","get","_setPendingAction","isEnabled","_acceptCommand","_editor","PENDING_ACTION_SUGGESTION","getRanges","view","destroy","stopListening","_pendingAction","change:isDirty","execute","isDirty","unbind"];var vc,Nc;vc=Sc,Nc=209,function(t){for(;--t;)vc.push(vc.shift())}(++Nc);const Lc=function(t,e){return Sc[t-=0]};class Mc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this.model=e,this[Lc("0x17")]=n,this.commentThreadController=r,this[Lc("0x14")]=t,this._acceptCommand=t[Lc("0xb")].get(Lc("0xa")),this._discardCommand=t[Lc("0xb")][Lc("0x10")](Lc("0xf")),this[Lc("0x17")].bind(Lc("0x12")).to(this[Lc("0x13")],this._discardCommand,((t,e)=>t||e)),this[Lc("0x17")][Lc("0x2")](Lc("0xe")).to(this[Lc("0x13")],Lc("0x12"),(t=>t&&this[Lc("0x14")][Lc("0x3")][Lc("0x4")](e[Lc("0x16")]()))),this[Lc("0x17")][Lc("0x2")]("canDiscard").to(this[Lc("0x5")],Lc("0x12"),(t=>t&&this._editor[Lc("0x3")][Lc("0x4")](e.getRanges()))),this[Lc("0x1a")]=null,n[Lc("0x1d")]&&this[Lc("0x11")](),this[Lc("0xc")](n,Lc("0xa"),(()=>this[Lc("0xa")]())),this[Lc("0xc")](n,Lc("0xf"),(()=>this.discardSuggestion())),this.listenTo(n,Lc("0x1b"),(()=>{n.isDirty?this._setPendingAction():this[Lc("0x9")]()}))}[Lc("0xa")](){this[Lc("0x13")][Lc("0x1c")](this[Lc("0x3")].id)}discardSuggestion(){this[Lc("0x5")][Lc("0x1c")](this[Lc("0x3")].id)}destroy(){this[Lc("0x17")].unbind(Lc("0x12")),this[Lc("0x17")][Lc("0x0")](Lc("0xe")),this[Lc("0x17")][Lc("0x0")](Lc("0x7")),this[Lc("0x19")](),this.commentThreadController[Lc("0x18")](),this[Lc("0x1a")]&&this[Lc("0x9")]()}[Lc("0x11")](){const t=Jr(this[Lc("0x14")][Lc("0x8")],Lc("0x15"));this[Lc("0x1a")]=this._editor[Lc("0xd")][Lc("0x10")](Lc("0x6"))[Lc("0x1")](t)}[Lc("0x9")](){null!==this._pendingAction&&this[Lc("0x14")].plugins[Lc("0x10")](Lc("0x6")).remove(this[Lc("0x1a")]),this[Lc("0x1a")]=null}}const wc=["disabledSubmit","element","canDiscard","destroy","submit","commentInputView","commentThread","isReadOnly","set","showInput","updateComment","disableComments","canAccept","length","isActive","removeComment","setData","_config","commentThreadInputView","fire","bind","commentsListView","addComment","_localUser","descriptionParts","value","assign","locale","authoredAt","_createCommentThreadInputView","editorConfig","delegate","hasDirtyComment","_model","isDirty","CommentView","focus","_createCommentViews"];var Oc,Fc;Oc=wc,Fc=230,function(t){for(;--t;)Oc.push(Oc.shift())}(++Fc);const Dc=function(t,e){return wc[t-=0]};class Bc extends o.View{constructor(t,e,n,r){super(t),this[Dc("0x13")]=null,this[Dc("0x10")]=null,this[Dc("0x6")](Dc("0xc"),!1),this[Dc("0x6")](Dc("0x1a"),e[Dc("0x1a")]),this[Dc("0x12")](Dc("0x1a")).to(e),this[Dc("0x6")](Dc("0x16"),[]),this[Dc("0x6")](Dc("0x20"),!1),this[Dc("0x6")]("isEnabled",!1),this.set(Dc("0xa"),!1),this[Dc("0x6")](Dc("0x0"),!1),this._model=e,this[Dc("0x15")]=n,this[Dc("0xf")]=r,r[Dc("0x9")]?this[Dc("0x6")](Dc("0xb"),1):this[Dc("0x23")]()}[Dc("0x22")](){this[Dc("0x25")].focus()}[Dc("0x1")](){this[Dc("0x13")]&&this[Dc("0x13")].destroy(),this[Dc("0x10")]&&this[Dc("0x10")].destroy(),super.destroy()}[Dc("0x23")](){const{CommentsListView:t}=this[Dc("0xf")];this[Dc("0x13")]=new t(this[Dc("0x19")],this[Dc("0x1f")][Dc("0x4")],Object[Dc("0x18")]({CommentView:this[Dc("0xf")][Dc("0x21")]},this[Dc("0xf")])),this.commentsListView[Dc("0x1d")](Dc("0xd")).to(this),this[Dc("0x13")][Dc("0x1d")](Dc("0x8")).to(this),this[Dc("0x13")][Dc("0x12")]("isActive").to(this),this[Dc("0x6")](Dc("0xb"),this[Dc("0x13")][Dc("0xb")]+1),this.bind(Dc("0xb")).to(this[Dc("0x13")],"length",(t=>t+1)),this[Dc("0x10")]=this[Dc("0x1b")](),this.on("removeComment",(()=>this[Dc("0x22")]())),this[Dc("0x12")](Dc("0x20")).to(this[Dc("0x13")],Dc("0x1e"),this[Dc("0x10")].commentInputView,Dc("0x17"),((t,e)=>t||!!e))}[Dc("0x1b")](){const{CommentThreadInputView:t}=this[Dc("0xf")],e=new t(this[Dc("0x19")],this[Dc("0x15")],this[Dc("0xf")][Dc("0x1c")]),n=e[Dc("0x3")];return e[Dc("0x12")](Dc("0x7")).to(this,Dc("0xc"),this[Dc("0x1f")].commentThread,Dc("0x5"),n,Dc("0x17"),((t,e,n)=>!!n||t&&!e)),n.on(Dc("0x2"),((t,e)=>{this[Dc("0x11")](Dc("0x14"),e),n.editor[Dc("0xe")]("")})),n.on("cancel",(()=>this[Dc("0x22")]())),n.bind(Dc("0x24")).to(this[Dc("0x1f")][Dc("0x4")],Dc("0x5")),e}}const Pc=["name","ck-suggestion--accept","acceptButton","_config","fire","ck-annotation__actions","creator","EXTERNAL_IMPORT_WORD_SUGGESTION","EXTERNAL_IMPORT_WORD_AVATAR","value","commentsListView","bindTemplate","isEnabled","commentThread","formatDateTime","getUserViewNotificationText","div","isActive","description","source","EXTERNAL_AVATAR","isExternal","ck-annotation__user","authoredAt","delegate","time","extendTemplate","</span>","innerHTML","bind","setTemplate","userView","@external",'" title="',"commentThreadInputView","ck-suggestion__info","ck-suggestion__actions","execute",'<span class="ck-suggestion-type">',"descriptionParts","_createButton","ck-suggestion-","editorDestroyed","locale","push","ck-suggestion","ck-annotation__info","ck-comment__info-time","type","_descriptionElement","querySelector","ck-annotation__content-wrapper","ck-suggestion-wrapper","EXTERNAL_SUGGESTION","canAccept","map","discardButton",'"></span>',"ck-annotation__info-name","canDiscard","author","ck-suggestion-wrapper--active","ck-suggestion__main","ck-annotation","render","split","Accept suggestion","<p>","ck-annotation__main","_model","getTemplate","importWord","acceptSuggestion","getExternalSuggestionNote",'<span class="ck-suggestion-color" style="background-color: ',"set"];var Uc,jc;Uc=Pc,jc=394,function(t){for(;--t;)Uc.push(Uc.shift())}(++jc);const Gc=function(t,e){return Pc[t-=0]};class Hc extends Bc{constructor(e,n,r,o){super(e,n,r,o),this.set(Gc("0x22"),""),this[Gc("0xf")]("type").to(this,Gc("0x19"),(t=>t&&t[0]?t[0][Gc("0x22")]:"")),this[Gc("0xf")](Gc("0x4")).to(this,Gc("0x19"),this,Gc("0x3"),((t,e)=>{let n="";for(const e of t)n+=Gc("0x35")+Vc(e.content,e.color)+"</p>";return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Gc("0x23")]=null,this[Gc("0x40")]=this[Gc("0x1a")](Jr(e,Gc("0x34")),t.icons.check,Gc("0x3f"),Gc("0x3a"),"sw"),this[Gc("0x40")][Gc("0xf")](Gc("0x4a")).to(this,Gc("0x28")),this[Gc("0x2a")]=this[Gc("0x1a")](Jr(e,"Discard suggestion"),t.icons.cancel,"ck-suggestion--discard","discardSuggestion","sw"),this.discardButton.bind("isEnabled").to(this,Gc("0x2d")),this[Gc("0x11")]=new i.UserView(e,this[Gc("0x37")][Gc("0x2e")],this[Gc("0x1")]()),this[Gc("0x11")][Gc("0xc")]({attributes:{class:["ck-suggestion__user",Gc("0x8")]}}),this[Gc("0x10")](this[Gc("0x38")]())}getTemplate(){const t=this[Gc("0x49")],e=[{tag:Gc("0x2"),attributes:{class:[Gc("0x15"),Gc("0x20")]},children:[{tag:"span",children:[{text:this[Gc("0x11")][Gc("0x3e")]}],attributes:{class:["ck-suggestion__info-name",Gc("0x2c")]}},{tag:Gc("0xb"),attributes:{datetime:t.to("authoredAt"),class:[Gc("0x21"),"ck-annotation__info-time"]},children:[{text:t.to(Gc("0x9"),(t=>this[Gc("0x41")][Gc("0x0")](t)))}]}]},{tag:"div",attributes:{class:[Gc("0x16"),Gc("0x43")]},children:[this[Gc("0x40")],this.discardButton]},{tag:Gc("0x2"),attributes:{class:[Gc("0x25")]}}];this._model.isExternal&&e[Gc("0x1e")]({tag:Gc("0x2"),attributes:{class:["ck-comment__external"]},children:[{text:this[Gc("0x3b")]()}]});const n={tag:Gc("0x2"),attributes:{class:[Gc("0x26"),t.if(Gc("0x3"),Gc("0x2f")),t.to(Gc("0x22"),(t=>Gc("0x1b")+t)),this[Gc("0x41")].disableComments&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[Gc("0x37")].id,"data-thread-id":this._model[Gc("0x4b")].id,"data-author-id":this[Gc("0x37")].author.id,tabindex:-1},children:[{tag:Gc("0x2"),attributes:{class:[Gc("0x1f"),Gc("0x31")]},children:[this[Gc("0x11")],{tag:Gc("0x2"),attributes:{class:[Gc("0x30"),Gc("0x36")]},children:e}]}]};return this[Gc("0x48")]&&this.commentThreadInputView&&(n.children[Gc("0x1e")](this[Gc("0x48")],this[Gc("0x14")]),this[Gc("0x48")][Gc("0xa")]("editorReady").to(this),this[Gc("0x48")][Gc("0xa")](Gc("0x1c")).to(this),this[Gc("0x14")][Gc("0xa")]("editorReady").to(this),this[Gc("0x14")][Gc("0xa")](Gc("0x1c")).to(this)),n}[Gc("0x32")](){super.render(),this[Gc("0x23")]=this.element[Gc("0x24")](".ck-annotation__content-wrapper"),this._descriptionElement.innerHTML=this.description,this.on("change:description",((t,e,n)=>{this._descriptionElement[Gc("0xe")]=n}))}[Gc("0x1a")](t,e,n,r,i){const s=new o.ButtonView(this[Gc("0x1d")]);return s[Gc("0x3d")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Gc("0xc")]({attributes:{class:n}}),s.on(Gc("0x17"),(()=>{this[Gc("0x42")](r,this[Gc("0x37")].id)})),s}[Gc("0x3b")](){return Gc("0x39")===this._model.attributes[Gc("0x12")][Gc("0x5")]?Jr(this[Gc("0x1d")],Gc("0x45")):Jr(this[Gc("0x1d")],Gc("0x27"))}getUserViewNotificationText(){return this[Gc("0x37")][Gc("0x7")]?Gc("0x39")===this._model.attributes[Gc("0x12")][Gc("0x5")]?Jr(this[Gc("0x1d")],Gc("0x46"),this[Gc("0x37")][Gc("0x44")][Gc("0x3e")]):Jr(this.locale,Gc("0x6"),this[Gc("0x37")][Gc("0x44")][Gc("0x3e")]):null}}function Vc(t,e){let n="";return n+=t[Gc("0x33")]("*")[Gc("0x29")](((t,e)=>e%2!=0?Gc("0x18")+zc(t)+Gc("0xd"):zc(t))).join(""),e&&(n+=Gc("0x3c")+e[Gc("0x47")]+Gc("0x13")+e.title+Gc("0x2b")),n}function zc(t){const e=document.createElement("span");return e.innerText=t,e[Gc("0xe")]}const Wc=["delete","filter","addSourceCollector","_handleControllerBuffer","set","suggestionChanged","acceptSelectedSuggestions","push","focus","isInContent","createAnnotationView","CommentsRepository","_annotationViews","locale","innerView","plugins","isMultiRange","_destroyController","has","add","getRanges","destroy","EditorAnnotations","CommentView","separator","comments.maxThreadTotalWeight","comments.editorConfig","createCommentThreadController","activeAnnotations","Track changes","_refreshActiveMarkers","unbind","Accept all suggestions","previous","Discard all selected suggestions","execute","isOn","TrackChangesUI","model","view","addComment","map","mainView","get","suggestionLoaded","activeMarkers","comments","size","createAnnotation","getByInnerView","change:previous","actionView","_updateController","CommentsUI","_handleSuggestionControllerDelayed","_bindAnnotationToEditors","Discard all suggestions","_createUIButton","getDescriptions","commands","_initializeController","_viewToController","config","getMarkerNames","suggestion-","TrackChangesEditing","Annotations","listenTo","_descriptionFactory","bind","source","commandName","trackChanges","editor","trackChanges.disableComments","getAllAdjacentSuggestions","suggestionUnloaded","SuggestionThreadView","isDirty","length","refreshSelectedViews","acceptButton","define","head","reduce","comments.maxCommentsWhenCollapsed","button","acceptAllSuggestions","from","values","getMarkers","stopListening","editing","arrowView","_disableComments","some","isEnabled","_suggestionToController","type","descriptionParts","buttonView","init","switchbutton","getFirstRange","value","comments.maxCommentCharsWhenCollapsed"];var Kc,qc;Kc=Wc,qc=100,function(t){for(;--t;)Kc.push(Kc.shift())}(++qc);const Xc=function(t,e){return Wc[t-=0]};class $c extends t.Plugin{static get requires(){return[hc,i.Users,Xc("0x11"),Xc("0x48"),"EditorAnnotations"]}static get pluginName(){return Xc("0x2b")}constructor(t){super(t),this[Xc("0x67")]=new Map,this[Xc("0x43")]=new Map,this[Xc("0x12")]=new Map,this[Xc("0x9")]=new Map;const e=this[Xc("0x4f")][Xc("0x44")];e[Xc("0x58")]("trackChanges.SuggestionThreadView",Hc),e[Xc("0x58")](Xc("0x50"),!1),this[Xc("0x64")]=e[Xc("0x31")]("trackChanges.disableComments")}[Xc("0x3c")](t,e){0===this._handleControllerBuffer[Xc("0x35")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this._suggestionToController[Xc("0x18")](t);n||e?n&&e&&this[Xc("0x17")](t):this[Xc("0x42")](t)}this.editor[Xc("0x15")].get(Xc("0x1c"))[Xc("0x56")](),this._refreshActiveMarkers(),this[Xc("0x9")].clear()}),10),this._handleControllerBuffer.set(t,e)}[Xc("0x1")](){const t=this.editor,e=t[Xc("0x15")][Xc("0x31")](Xc("0x47")),n=t[Xc("0x15")][Xc("0x31")](Xc("0x48")),r=t[Xc("0x15")][Xc("0x31")](Xc("0x1c")),o=t[Xc("0x15")][Xc("0x31")]("CommentsRepository");t.ui.componentFactory[Xc("0x19")](Xc("0x4e"),(t=>this._createUIButton(t))),r[Xc("0x8")]((()=>{const t=[];for(const[e,n]of Array[Xc("0x5e")](this[Xc("0x67")])){const r=e.getAllAdjacentSuggestions(),o=[];for(const t of r){if(!t[Xc("0xf")])continue;if(t[Xc("0x16")]){o.push(...t[Xc("0x1a")]());continue}const e=t[Xc("0x3")]();if(o.length>0){const t=o[0].getJoined(e);if(t){o[0]=t;continue}}o[Xc("0xd")](e)}t[Xc("0xd")]([n[Xc("0x2d")],o])}return t})),this[Xc("0x49")](e,Xc("0x32"),((t,e)=>{this[Xc("0x49")](e,"change:previous",((t,n,r,o)=>{e.isInContent&&(null==r?(this[Xc("0x3a")](o[Xc("0x59")]),this[Xc("0x3c")](e,!1)):(this[Xc("0x3a")](r[Xc("0x59")]),null==o&&this[Xc("0x3c")](e,!0)))})),null!==e[Xc("0x27")]?this._updateController(e.head):this[Xc("0x3c")](e,!1)})),this[Xc("0x49")](e,Xc("0x52"),((t,e,n)=>{this[Xc("0x61")](e,Xc("0x38")),this._handleControllerBuffer[Xc("0x6")](e),this[Xc("0x67")][Xc("0x18")](e)&&this._destroyController(e),n&&this[Xc("0x3a")](n[Xc("0x59")])})),this[Xc("0x49")](e,Xc("0xb"),((t,e)=>{this._updateController(e)})),this.listenTo(n,"change:activeAnnotations",(()=>{this[Xc("0x24")]()})),this.listenTo(o,Xc("0x2e"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e.hasSuggestion(n))return;const o=e.getSuggestion(n);this[Xc("0x67")][Xc("0x31")](o)[Xc("0x2d")].focus()}),{priority:"lowest"})}[Xc("0x24")](){const t=this[Xc("0x4f")][Xc("0x15")].get("Annotations"),e=this[Xc("0x4f")].plugins[Xc("0x31")](Xc("0x47")),n=Array.from(t[Xc("0x22")],(t=>t[Xc("0x14")])).filter((t=>this[Xc("0x43")][Xc("0x18")](t))),r=[];for(const t of n){const e=this[Xc("0x43")][Xc("0x31")](t)[Xc("0x2c")][Xc("0x51")]();r[Xc("0xd")](...e[Xc("0x5a")](((t,e)=>[...t,...e[Xc("0x45")]()]),[]))}e[Xc("0x33")]=r}[Xc("0x3f")](t){const n=(0,o.createDropdown)(t,o.SplitButtonView),r=this.editor.commands[Xc("0x31")](Xc("0x4e")),i=Jr(t,Xc("0x23"));n[Xc("0x0")][Xc("0xa")]({tooltip:i,label:i,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Xc("0x0")][Xc("0x4b")]("isOn").to(r,Xc("0x4")),n[Xc("0x0")].on(Xc("0x29"),(()=>{r[Xc("0x29")](),this[Xc("0x4f")][Xc("0x62")].view[Xc("0xe")]()}));const s=new e.Collection,x=[{type:Xc("0x2"),model:{withText:!0,label:i,commandName:Xc("0x4e")}},{type:Xc("0x1e")},{type:Xc("0x5c"),model:{withText:!0,label:Jr(t,Xc("0x26")),commandName:Xc("0x5d")}},{type:"button",model:{withText:!0,label:Jr(t,"Accept all selected suggestions"),commandName:Xc("0xc")}},{type:Xc("0x5c"),model:{withText:!0,label:Jr(t,Xc("0x3e")),commandName:"discardAllSuggestions"}},{type:Xc("0x5c"),model:{withText:!0,label:Jr(t,Xc("0x28")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:Xc("0x1e")};if(t[Xc("0x2c")]){const n=new o.Model(t[Xc("0x2c")]),r=this.editor.commands[Xc("0x31")](n[Xc("0x4d")]);n.bind(Xc("0x2a"),"isEnabled").to(r,"value",Xc("0x66")),e={type:t[Xc("0x68")],model:n}}s.add(e)}(0,o.addListToDropdown)(n,s);const a=x.filter((t=>null!=t[Xc("0x2c")]))[Xc("0x2f")]((t=>this[Xc("0x4f")][Xc("0x41")].get(t[Xc("0x2c")][Xc("0x4d")]))),c=n[Xc("0x0")];return c[Xc("0x39")].unbind(Xc("0x66")),c.arrowView[Xc("0x25")](Xc("0x66")),c[Xc("0x39")][Xc("0x4b")](Xc("0x66")).to(r,Xc("0x66")),c[Xc("0x63")][Xc("0x4b")](Xc("0x66")).toMany(a,Xc("0x66"),((...t)=>t[Xc("0x65")]((t=>t)))),n.on("execute",(t=>{this[Xc("0x4f")][Xc("0x29")](t[Xc("0x4c")][Xc("0x4d")]),this[Xc("0x4f")][Xc("0x62")][Xc("0x2d")][Xc("0xe")]()})),n}[Xc("0x42")](t){const e=this[Xc("0x4f")],n=e[Xc("0x44")],r=e.plugins[Xc("0x31")](Xc("0x48")),o=e[Xc("0x15")][Xc("0x31")](Xc("0x11")),s=e[Xc("0x15")][Xc("0x31")]("EditorAnnotations"),x=e[Xc("0x15")].get(i.Users).me,a=n[Xc("0x31")]("trackChanges")[Xc("0x53")],{CommentsListView:c,CommentThreadInputView:l}=e[Xc("0x15")][Xc("0x31")](Xc("0x3b"));let u,d;this[Xc("0x12")][Xc("0x18")](t.id)?(d=this._annotationViews.get(t.id),u=d.mainView):(u=new a(e.locale,t,x,{disableComments:this[Xc("0x64")],editorConfig:n[Xc("0x31")](Xc("0x20")),maxCommentsWhenCollapsed:n[Xc("0x31")](Xc("0x5b")),maxThreadTotalWeight:n.get(Xc("0x1f")),maxCommentCharsWhenCollapsed:n[Xc("0x31")](Xc("0x5")),formatDateTime:(0,i.getDateTimeFormatter)(n[Xc("0x31")](Xc("0x13"))),CommentView:n[Xc("0x31")](Xc("0x34"))[Xc("0x1d")],CommentsListView:c,CommentThreadInputView:l}),u[Xc("0x57")].on(Xc("0x29"),(()=>{e[Xc("0x62")].view[Xc("0xe")]()})),u.discardButton.on("execute",(()=>{e[Xc("0x62")][Xc("0x2d")][Xc("0xe")]()})),d=r[Xc("0x10")](this.editor[Xc("0x13")],u),d[Xc("0x4b")](Xc("0x54")).to(u,"isDirty"),d[Xc("0x4b")](Xc("0x55")).to(u),d[Xc("0x4b")](Xc("0x68")).to(u,Xc("0x68"),(t=>Xc("0x46")+t)),this[Xc("0x12")][Xc("0xa")](t.id,d));const g=o[Xc("0x21")](t.commentThread,u),f=new Mc(e,t,u,g),m=t[Xc("0x51")]()[Xc("0x7")]((t=>t[Xc("0xf")]));u.descriptionParts=e.plugins[Xc("0x31")]("TrackChangesEditing")[Xc("0x4a")][Xc("0x40")](m),this._suggestionToController[Xc("0xa")](t,f),this._viewToController[Xc("0xa")](u,f);const h=r[Xc("0x36")]({view:d,target:()=>{const n=[],r=t.getAllAdjacentSuggestions().filter((t=>t[Xc("0xf")]));for(const t of r)n.push(...t[Xc("0x60")]());return(0,i.getAllMarkersDomElementsSorted)(e[Xc("0x62")],n)},type:()=>Xc("0x46")+f[Xc("0x2d")][Xc("0x68")]});o[Xc("0x3d")](u,h),r[Xc("0x19")](h),s.registerAnnotation(h)}[Xc("0x17")](t){const e=this.editor[Xc("0x15")][Xc("0x31")](Xc("0x11")),n=this[Xc("0x4f")][Xc("0x15")][Xc("0x31")](Xc("0x48")),r=this[Xc("0x67")][Xc("0x31")](t),o=r[Xc("0x2d")],i=n[Xc("0x37")](o);e._unbindEditors(o),i&&n.remove(i),this[Xc("0x67")].delete(t),this[Xc("0x43")].delete(o),r[Xc("0x1b")]()}[Xc("0x3a")](t){if(!t.isInContent||!this[Xc("0x67")][Xc("0x18")](t))return;const e=this[Xc("0x4f")][Xc("0x15")][Xc("0x31")](Xc("0x47")),n=this._suggestionToController.get(t),r=t.getAllAdjacentSuggestions();n.view[Xc("0x69")]=e[Xc("0x4a")][Xc("0x40")](r)}destroy(){for(const t of this[Xc("0x67")].keys())this._destroyController(t);for(const t of this[Xc("0x12")][Xc("0x5f")]())t[Xc("0x30")][Xc("0x1b")]();super[Xc("0x1b")]()}}var Zc,Yc,Jc=["getSuggestion","TrackChanges","Comments","plugins","editor","adapter","getSuggestions","get","pluginName","addSuggestionData","addSuggestion"];Zc=Jc,Yc=481,function(t){for(;--t;)Zc.push(Zc.shift())}(++Yc);var Qc=function(t,e){return Jc[t-=0]};class tl extends t.Plugin{static get requires(){return[hc,$c,Qc("0x5")]}static get[Qc("0x0")](){return Qc("0x4")}set[Qc("0x8")](t){this[Qc("0x7")].plugins.get(hc)[Qc("0x8")]=t}get[Qc("0x8")](){return this[Qc("0x7")].plugins[Qc("0xa")](hc)[Qc("0x8")]}[Qc("0x2")](t){return this.editor[Qc("0x6")][Qc("0xa")](hc)[Qc("0x1")](t)}[Qc("0x9")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Qc("0x7")][Qc("0x6")][Qc("0xa")](hc)[Qc("0x9")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[Qc("0x7")][Qc("0x6")][Qc("0xa")](hc)[Qc("0x3")](t)}}const el=["config","get","TrackChangesDataGetter","editorCreator","trackChangesData.editorCreator","model","CommentsRepository","getSuggestions","_adapter","rootsAttributes","end","Pagination","map","trackChangesData","useAnonymousUser","plugins","getUser","data","Users","reduce","editor","getDataWithDiscardedSuggestions","function","getRootsAttributes","requires","document","div","getRootNames","result","track-changes-data-invalid-editor-creator","name","init","TrackChangesEditing","define","appendChild","pluginName","create","getDataWithAcceptedSuggestions"];var nl,rl;nl=el,rl=168,function(t){for(;--t;)nl.push(nl.shift())}(++rl);const ol=function(t,e){return el[t-=0]},il=[ol("0x21")];class sl extends t.Plugin{static get[ol("0x8")](){return[hc]}static get[ol("0x13")](){return"TrackChangesData"}init(){const t=this[ol("0x4")];if(t[ol("0x16")][ol("0x11")](ol("0x1a"),(e=>{const n=t[ol("0x1b")][ol("0x9")].getRootNames()[ol("0x3")](((t,e)=>(t[e]="",t)),{});return t.constructor[ol("0x14")](n,e)})),ol("0x6")!=typeof t[ol("0x16")][ol("0x17")]("trackChangesData").editorCreator)throw new e.CKEditorError(ol("0xd"))}[ol("0x15")](t){return cl(this.editor,!0,t)}[ol("0x5")](t){return cl(this.editor,!1,t)}}class xl extends t.Plugin{static get[ol("0x13")](){return ol("0x18")}constructor(t){super(t),this[ol("0xc")]=ol("0x20")}[ol("0xf")](){this[ol("0x4")][ol("0x25")][ol("0x17")](ol("0x1c"))[ol("0x1e")]={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[ol("0x4")][ol("0x25")][ol("0x17")](ol("0x10"))[ol("0x1e")]=null}}function al(t){return void 0!==t.getRootsAttributes}async function cl(t,e,n){const r=(0,i.sanitizeEditorConfig)(t,il);r[ol("0x25")].push(hc,xl),r[ol("0x1f")]=al(t)?t[ol("0x7")]():void 0;const o=document.createDocumentFragment(),s=t.config.get(ol("0x23"))[ol("0x19")],x=await s(r,(()=>function(t){const e=document.createElement(ol("0xa"));return t[ol("0x12")](e),e}(o)));!function(t,e){const n=t[ol("0x1b")][ol("0x9")][ol("0xb")]().reduce(((e,n)=>(e[n]=t.data[ol("0x17")]({rootName:n}),e)),{}),r=t.plugins.get(ol("0x2")).users[ol("0x22")]((t=>({id:t.id,name:t[ol("0xe")]}))),o=t[ol("0x25")].get(ol("0x10"))[ol("0x1d")]({skipNotAttached:!0,toJSON:!0}),i=e.plugins.get(ol("0x2")),s=e[ol("0x25")][ol("0x17")](ol("0x10"));for(const t of r)i[ol("0x0")](t.id)||i.addUser(t);i.me||i[ol("0x24")]();for(const t of o)s.addSuggestionData(t);e[ol("0x1")].set(n)}(t,x),x.execute(e?"acceptAllSuggestions":"discardAllSuggestions");const a=al(x)?x.getFullData(n):x[ol("0x1")][ol("0x17")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>Pc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),r=n(273),i=n(417),s=n(492),x=n(995);const a=["affectsData","_disableUnsupportedCommands","forceDisabled","isEnabled","commands","_enableCommands","_enabledCommands","value","clearForceDisabled","execute","refresh","TrackChangesCommand","_isEnabledBasedOnSelection","editor"];var c,l;c=a,l=193,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0xa")]=!1,this[u("0xd")](),this[u("0x1")]=!1}[u("0xd")](){this[u("0x6")]=!0}[u("0xc")](){this.value=!this.value,this.value?this._disableUnsupportedCommands():this[u("0x8")]()}[u("0x4")](){for(const t of this.editor[u("0x7")][u("0x7")]())t[u("0x3")]&&!this[u("0x9")].has(t)&&t[u("0x5")](u("0x0"))}_enableCommands(){for(const t of this[u("0x2")][u("0x7")][u("0x7")]())t.affectsData&&!this[u("0x9")].has(t)&&t[u("0xb")](u("0x0"))}}const g=["model","TrackChangesEditing","isEnabled","get","refresh","getRanges","_suggestions","_isEnabledBasedOnSelection","acceptSuggestion","canEditAt","execute","plugins","track-changes-accept-suggestion-not-found","editor"];var f,m;f=g,m=397,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x1")]=e,this[h("0xd")](),this[h("0x2")]=!1}[h("0xd")](){this[h("0xb")]=!0}[h("0x5")](t){const n=this[h("0x1")][h("0xc")](t);if(!n)throw new e.CKEditorError(h("0x7"),this);const o=n[h("0x0")]();this[h("0x8")][h("0x9")][h("0x4")](o)&&this[h("0x8")][h("0x6")][h("0xc")](h("0xa"))[h("0x3")](n)}}const p=["TrackChangesEditing","isEnabled","editor","_suggestions","track-changes-discard-suggestion-not-found","execute","getRanges","model","_isEnabledBasedOnSelection","get","plugins"];var E,_;E=p,_=455,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0xa")]=e,this.refresh(),this[T("0x4")]=!1}refresh(){this[T("0x8")]=!0}[T("0x1")](t){const n=this._suggestions[T("0x5")](t);if(!n)throw new e.CKEditorError(T("0x0"),this);const o=n[T("0x2")]();this.editor[T("0x3")].canEditAt(o)&&this[T("0x9")][T("0x6")][T("0x5")](T("0x7")).discardSuggestion(n)}}const C=["isTouching","splice","isInContent","createRange","type"," [color ","start","color","join","getRanges","push","isArray","value","replace","length","createPositionBefore","from","schema","change","add","isMultiRange","createPositionAfter","sort","execute","isCollapsed","deletion"];var A,k;A=C,k=474,function(t){for(;--t;)A.push(A.shift())}(++k);const S=function(t,e){return C[t-=0]};function R(t){return t[S("0x10")](((t,e)=>S("0x13")==t[S("0x18")]&&"deletion"!=e[S("0x18")]?-1:"deletion"!=t.type&&"deletion"==e[S("0x18")]?1:0))}function I(t,e){let n,o=0;const r=[],i=e[S("0xb")];for(;o<t[S("0x8")];){const s=t[o],x=t[o+1];n||(n=e.createPositionBefore(s)),v(e,s,x)||(r[S("0x4")](e[S("0x17")](n,i.isObject(s)?e[S("0xf")](s):e.createPositionAt(s,"end"))),n=null),o++}return r}function v(t,e,n){if(!n)return!1;const o=t[S("0xf")](e),r=t[S("0x9")](n);return o[S("0x14")](r)}function N(t,e,n){for(;n[S("0x8")];){const o=n[S("0x15")](0,100);t[S("0xc")]((()=>{for(const t of o)t[S("0x16")]&&e[S("0x11")](t.id)}))}}const L=["_suggestions","from","model","editor","getRanges","canEditAt","values","_isEnabledBasedOnSelection","isEnabled","execute","_command"];var M,w;M=L,w=326,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x3")]=e,this[O("0x4")]=n,this.refresh(),this[O("0x0")]=!1}refresh(){const t=Array[O("0x5")](this[O("0x4")][O("0xa")]()).some((t=>t.isInContent));this[O("0x1")]=this._command[O("0x1")]&&t}[O("0x2")](){const t=R(Array.from(this[O("0x4")][O("0xa")]()));for(const e of t){const t=e[O("0x8")]();if(!this[O("0x7")].model[O("0x9")](t))return}N(this.editor[O("0x6")],this[O("0x3")],t)}}const D=["size","_selectedSuggestions","_command","document","getRanges","canEditAt","_suggestions","from","execute","selection","isEnabled","values","model","editor","refresh","_isEnabledBasedOnSelection"];var B,P;B=D,P=134,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this._command=e,this[U("0x0")]=n,this._selectedSuggestions=new Set,this[U("0x8")](),this[U("0x9")]=!1}refresh(){const t=this[U("0x7")][U("0x6")][U("0xd")][U("0x3")],e=Array[U("0x1")](this[U("0x0")][U("0x5")]());this[U("0xb")]=function(t,e){const n=Array[S("0xa")](t.getRanges()),o=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r[S("0x3")]())(e.isIntersecting(n)||t[S("0x12")]&&!r[S("0xe")]&&r.next&&n.end.isTouching(e[S("0x0")]))&&o[S("0xd")](r);return o}(t,e),this[U("0x4")]=this[U("0xc")][U("0x4")]&&!!this[U("0xb")][U("0xa")]}[U("0x2")](){const t=R(Array[U("0x1")](this[U("0xb")]));for(const e of t){const t=e[U("0xe")]();if(!this[U("0x7")][U("0x6")][U("0xf")](t))return}N(this.editor[U("0x6")],this[U("0xc")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const V=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=V(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=V(e,t);return n<0?void 0:e[n][1]};const q=function(t){return V(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=V(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=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const rt=ot.Symbol;var it=Object.prototype,st=it.hasOwnProperty,xt=it.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var r=xt.call(t);return o&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=rt?rt.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt 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 yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,St=At.hasOwnProperty,Rt=RegExp("^"+kt.call(St).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return It(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(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 Dt=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 Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=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 jt(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])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Vt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Vt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;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=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const re=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,o){var r=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var x=e[i],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(n,x,a)}return n};const se=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===me?ot.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Se=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Se&&Se.exports===ke&&et.process;const Ie=function(){try{var t=Se&&Se.require&&Se.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Ie&&Ie.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),r=!n&&!o&&pe(t),i=!n&&!o&&!r&&Ne(t),s=n||o||r||i,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("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 De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&ie(e,je(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var Ve=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&Ve.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&ie(e,We(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,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,i=[];++n<o;){var s=t[n];e(s,n,t)&&(i[r++]=s)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return ie(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return ie(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),Sn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=bn||fn&&Rn(fn.resolve())!=pn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return bn;case An:return pn;case kn:return En;case Sn:return _n}return e});const In=Rn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(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 Dn=rt?rt.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=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 Un(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 Pn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Vn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==In(t)};var Wn=Ie&&Ie.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,r,i,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=i?o(e,r,i,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=In(e),g=d==Yn||"[object GeneratorFunction]"==d;if(pe(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!i){if(x=c||g?{}:Vn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return i?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,s))})):Kn(e)&&e.forEach((function(r,i){x.set(i,t(r,n,o,i,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(r,i){m&&(r=e[i=r]),re(x,i,t(r,n,o,i,e,s))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/;const io=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(ro.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var s=t.apply(this,o);return n.cache=i.set(r,s)||i,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,r){e.push(o?r.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var go=rt?rt.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const bo=function(t,e){return ge(t)?t:io(t,e)?[t]:lo(ho(t))};const po=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var r=-1,i=(e=bo(e,t)).length,s=i-1,x=t;null!=x&&++r<i;){var a=po(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[r+1])?[]:{})}re(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=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 So=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,r,i){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(i.set(t,e),i.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,i):o(f,m,u,t,e,i);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!So(g,e)&&(f===t||r(f,t,n,o,i)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!r(f,m,n,o,i)){d=!1;break}}return i.delete(t),i.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=rt?rt.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,r,i,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=vo),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=Ro(x(t),x(e),o,r,i,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,i){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:wo.call(e,l)))return!1}var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var g=!0;i.set(t,e),i.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var b=s?o(h,m,l,e,t,i):o(m,h,l,t,e,i);if(!(void 0===b?m===h||r(m,h,n,o,i):b)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return i.delete(t),i.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,r,i){var s=ge(t),x=ge(e),a=s?Do:In(t),c=x?Do:In(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&pe(t)){if(!pe(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new Qt),s||Ne(t)?Ro(t,e,n,o,r,i):Mo(t,e,a,n,o,r,i);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return i||(i=new Qt),r(m,h,n,o,i)}}return!!d&&(i||(i=new Qt),Oo(t,e,n,o,r,i))};const jo=function t(e,n,o,r,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,r,t,i))};const Go=function(t,e){return jo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vo=function(t,e){for(var n=0,o=(e=bo(e,t)).length;null!=t&&n<o;)t=t[po(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++o<r;)i[o]=t[o+e];return i};const Wo=function(t,e){return e.length<2?t:Vo(t,zo(e,0,-1))};const Ko=function(t,e){return e=bo(e,t),null==(t=Wo(t,e))||delete t[po(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["isInContent","change","substr","removeAttribute","decorate","nodeAfter","removeMarker","data","setAttribute","set","_onAttributesChange","_model","getRange","discard","getAllAdjacentSuggestions","reduce","markers","creator","_markerNames","_onAccept","from","addMarker","isIntersecting","getFirstRange","filter","end","nodeBefore","_isDataLoaded","getMarkers","author","type","previous","next","attributes","get","isMultiRange","map","onDiscard","getFirstMarker","head","start","commentThread","length","getItems","getContainedElement","getRanges","isIntersectingWithRange","removeMarkers","getMarkerNames","delete","accept","_onDiscard","onAttributesChange","hasComments","subType","toJSON","addMarkerName","@external","isExternal","size","authoredAt","onAccept","createdAt"];var $o,Zo;$o=Xo,Zo=250,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Yo=function(t,e){return Xo[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Yo("0x1d")]=!1,this.id=e.id,this[Yo("0x20")]=e.type,this[Yo("0x38")]=e[Yo("0x38")]||null,this[Yo("0x1f")]=e[Yo("0x1f")],this.creator=e.creator||e[Yo("0x1f")],this[Yo("0x3c")]=Boolean(e.attributes&&e[Yo("0x23")][Yo("0x3b")]),this[Yo("0x9")]=null,this[Yo("0xd")]=t,this[Yo("0x15")]=e[Yo("0x0")],this[Yo("0x35")]=e[Yo("0x27")],this._onAttributesChange=e[Yo("0x36")],this[Yo("0x14")]=new Set,this.createdAt=null,this.set(Yo("0x3e"),null),this.set(Yo("0x23"),e[Yo("0x23")]||{}),this.set(Yo("0x21"),null),this[Yo("0xb")]("next",null),this[Yo("0xb")](Yo("0x2b"),null),this[Yo("0xb")]("_saved",!1),this[Yo("0x6")](Yo("0x34")),this.decorate(Yo("0xf"))}get[Yo("0x29")](){let t=this;for(;t[Yo("0x21")];)t=t[Yo("0x21")];return t}get[Yo("0x37")](){return!!this[Yo("0x2b")]&&this[Yo("0x2b")].length>0}get[Yo("0x25")](){return 0!=this._markerNames[Yo("0x3d")]&&6==Array[Yo("0x16")](this[Yo("0x14")])[0].split(":")[Yo("0x2c")]}get[Yo("0x2")](){return null!==this[Yo("0x28")]()}[Yo("0x3a")](t){this[Yo("0x14")].add(t)}getMarkerNames(){return Array[Yo("0x16")](this[Yo("0x14")])}[Yo("0x1e")](){return this[Yo("0x32")]()[Yo("0x26")]((t=>this[Yo("0xd")][Yo("0x12")][Yo("0x24")](t)))[Yo("0x1a")]((t=>t))}getFirstMarker(){return this[Yo("0x1e")]()[0]||null}[Yo("0x31")](){this[Yo("0xd")][Yo("0x3")]((t=>{for(const e of this[Yo("0x1e")]())t[Yo("0x8")](e)})),this[Yo("0x14")].clear()}[Yo("0x8")](t){this[Yo("0xd")][Yo("0x3")]((e=>{e[Yo("0x8")](t)})),this[Yo("0x14")][Yo("0x33")](t)}addRange(t){const e="suggestion:"+this.type+":"+this[Yo("0x38")]+":"+this.id+":"+this[Yo("0x13")].id+":"+Jo.getMultiRangeId();this[Yo("0x3a")](e),this[Yo("0xd")].change((n=>{n[Yo("0x17")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x30")](t){for(const e of this[Yo("0x2f")]())if(e[Yo("0x18")](t))return!0;return!1}[Yo("0x2f")](){return this.getMarkers()[Yo("0x26")]((t=>t.getRange()))}[Yo("0x2d")](){return this[Yo("0x2f")]()[Yo("0x11")](((t,e)=>[...t,...e[Yo("0x2d")]()]),[])}[Yo("0x19")](){var t;return(null===(t=this[Yo("0x28")]())||void 0===t?void 0:t[Yo("0xe")]())||null}[Yo("0x2e")](){const t=this[Yo("0x2f")]();if(1!=t.length)return null;const e=t[0],n=e[Yo("0x2a")][Yo("0x7")],o=e[Yo("0x1b")][Yo("0x1c")];return n instanceof s.Element?n!=o?null:n:null}[Yo("0x34")](){this[Yo("0x15")](this.getRanges(),this[Yo("0x9")],this[Yo("0x23")]),this.removeMarkers()}[Yo("0xf")](){this[Yo("0x35")](this[Yo("0x2f")](),this[Yo("0x9")],this[Yo("0x23")]),this.removeMarkers()}[Yo("0x10")](){const t=[];let e=this[Yo("0x29")];for(;e;)t.push(e),e=e[Yo("0x22")];return t}[Yo("0xa")](t,e){const n=eo(this[Yo("0x23")]);_o(n,t,e),Go(n,this[Yo("0x23")])||(this.attributes=n,this[Yo("0xc")](n))}[Yo("0x5")](t){const e=eo(this[Yo("0x23")]);qo(e,t),Go(e,this[Yo("0x23")])||(this[Yo("0x23")]=e,this._onAttributesChange(this[Yo("0x23")]))}[Yo("0x39")](){return{id:this.id,type:this.subType?this[Yo("0x20")]+":"+this[Yo("0x38")]:this.type,authorId:this.creator.id,createdAt:this[Yo("0x1")],hasComments:this[Yo("0x37")],data:this[Yo("0x9")],attributes:this[Yo("0x23")]}}static getMultiRangeId(){return(0,e.uid)()[Yo("0x4")](1,5)}}function Qo(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"*Replace image URL*":return o("*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 format:* %0":return o("*Set format:* %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_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});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_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});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_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});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"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});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);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const tr=["addEmptyContainer","*Remove:* %0","removeFormat","attribute","type","previousSibling","removeObject","_handleRenameSuggestionDescription","getItemLabel","getWalker","get","elementEnd","registerElementLabel","indexOf","label","length","ELEMENT_SPACE","isInContent","Container","key","EmptyContainer","isObject","join","isEmpty","push","normal","_resolveDescriptionItems","registerAttributeLabel","$textProxy","replace","newValue","_addDescriptionItems","Object","add","start","_locale","$text","_handleCustomCallbackDescription","subType","end","pop","removeContainer","_itemLabelsCallbacks","matchingCallback","getFirstRange","_customCallbacks","skip","_handleInsertRemoveSuggestionDescription","REPLACE_TEXT","elementStart","_schema","match","format","data","nextSibling","*Set format:* %0","*Remove format:* %0","softBreak","_itemLabels","removeEmptyContainer","isEqual","registerDescriptionCallback","*Change to:* %0","deletion","checkChild","remove","element","text","addFormat","$1 $2","*Insert:* %0","item","quantity","has","nodeAfter","insertion","*Merge:* %0","getDescriptions","_handleAttributeSuggestionDescription","_attributeLabels","name","map"];var er,nr;er=tr,nr=482,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this._customCallbacks=[],this[or("0x44")]=new Map,this[or("0x34")]=[],this[or("0x7")]=new Map,this._schema=t,this[or("0x2d")]=e}[or("0x5")](t){const e=[],n=new Set,o=new Set;for(let r=0;r<t.length;r++){const i=t[r];if(!i[or("0x1b")])continue;const s=this._handleCustomCallbackDescription(i);if(s){if(null!=i[or("0x30")]){if(n[or("0x1")](i[or("0x30")]))continue;n[or("0x2b")](i[or("0x30")])}e[or("0x22")](s)}else if(or("0xd")!=i.type)or("0x3")!=i.type&&or("0x49")!=i[or("0xe")]||this[or("0x39")](e,i,t[r+1]);else{const t=i[or("0x3f")].key;if(o[or("0x1")](t))continue;o[or("0x2b")](i[or("0x3f")][or("0x1d")]),t==mc?this._handleRenameSuggestionDescription(e,i):this[or("0x6")](e,i)}}return this[or("0x24")](e)}[or("0x47")](t){this._customCallbacks[or("0x22")](t)}[or("0x16")](t,n,o=e.priorities[or("0x23")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[or("0x34")],{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}[or("0x25")](t,e){this._attributeLabels.set(t,e)}[or("0x12")](t,e=1){let n;for(const e of this[or("0x34")])if(e[or("0x35")](t)){n=e[or("0x18")];break}return n||(n=this[or("0x44")][or("0x14")](t[or("0x8")])),n?n(e):1!==e?e+" "+t[or("0x8")]+"s":""+t[or("0x8")]}[or("0x29")](t,e){const n=e[or("0x36")]()[or("0x13")](),o="insertion"==e[or("0xe")]?or("0x2b"):"remove";for(const e of n){const r=e[or("0x51")],i=t[t[or("0x19")]-1];if(r.is(or("0x26")))i&&i[or("0xe")].indexOf(or("0x1c"))>-1&&t[or("0x32")](),i&&or("0x4d")==i[or("0xe")]?i[o]+=r.data:t[or("0x22")]({type:or("0x4d"),add:"add"==o?r[or("0x3f")]:"",remove:or("0x4b")==o?r.data:""});else if(this._schema[or("0x1f")](r)){const s=r;if(i&&i.type.indexOf(or("0x1c"))>-1&&t[or("0x32")](),or("0x15")==e[or("0xe")])continue;i&&i[or("0xe")]==o+or("0x2a")&&i.element[or("0x8")]==s[or("0x8")]?i[or("0x0")]++:t.push({type:o+"Object",element:s,quantity:1}),n[or("0x38")]((t=>!(or("0x15")==t.type&&t[or("0x51")]==r)))}else if(this[or("0x3c")][or("0x4a")](r,or("0x2e"))||r.is(or("0x4c"),or("0x43"))){const n=r;if(or("0x2b")==o&&or("0x3b")==e[or("0xe")]||or("0x4b")==o&&or("0x15")==e.type)continue;if(i&&-1==i.type[or("0x17")]("Container")){or("0x4d")==i[or("0xe")]&&(i[o]+="\n");continue}let s;if(s=or("0x2b")==o?n[or("0x40")]&&!this[or("0x3c")][or("0x1f")](n[or("0x40")])?n[or("0x40")]:null:n[or("0xf")]&&!this[or("0x3c")].isObject(n[or("0xf")])?n[or("0xf")]:null,n.isEmpty||s&&s[or("0x21")]){const e=s&&s[or("0x21")]?s:n;i&&i[or("0xe")]==o+or("0x1e")&&i[or("0x4c")][or("0x8")]==e[or("0x8")]?i[or("0x0")]++:t.push({type:o+or("0x1e"),element:e,quantity:1})}else t.push({type:o+or("0x1c"),element:n})}}}[or("0x24")](t){const e=this[or("0x2d")],n=[],o=[],r=[];for(const i of t)switch(i[or("0xe")]){case or("0x4d"):if(i[or("0x2b")]=i[or("0x2b")][or("0x27")](/(\S)\u000A+(\S)/g,"$1 $2")[or("0x27")](/\u000A/g,""),i[or("0x4b")]=i[or("0x4b")][or("0x27")](/(\S)\u000A+(\S)/g,or("0x4f"))[or("0x27")](/\u000A/g,""),""!=i.add&&""!=i[or("0x4b")]){n[or("0x22")]({type:or("0x27"),content:Qo(e,or("0x3a"),['"'+i[or("0x4b")]+'"','"'+i[or("0x2b")]+'"'])});continue}if(null!=i[or("0x2b")][or("0x3d")](/^ +$/)){n.push({type:or("0x3"),content:Qo(e,or("0x50"),Qo(e,or("0x1a"),i[or("0x2b")].length))});continue}if(null!=i[or("0x4b")][or("0x3d")](/^ +$/)){n.push({type:or("0x49"),content:Qo(e,or("0xb"),Qo(e,or("0x1a"),i[or("0x4b")][or("0x19")]))});continue}if(""!=i.add){n[or("0x22")]({type:or("0x3"),content:Qo(e,or("0x50"),'"'+i.add+'"')});continue}n[or("0x22")]({type:"deletion",content:Qo(e,or("0xb"),'"'+i[or("0x4b")]+'"')});continue;case or("0xa"):case"addObject":n.push({type:or("0x3"),content:Qo(e,or("0x50"),this[or("0x12")](i[or("0x4c")],i[or("0x0")]))});continue;case or("0x45"):case or("0x10"):n.push({type:or("0x49"),content:Qo(e,or("0xb"),this.getItemLabel(i.element,i.quantity))});continue;case"addContainer":n[or("0x22")]({type:"insertion",content:Qo(e,"*Split:* %0",this[or("0x12")](i.element,i[or("0x0")]))});continue;case or("0x33"):n.push({type:or("0x49"),content:Qo(e,or("0x4"),this[or("0x12")](i.element,i[or("0x0")]))});continue;case or("0x4e"):o.push(i[or("0x1d")]);continue;case or("0xc"):r.push(i[or("0x1d")]);continue;default:n[or("0x22")](i)}if(o.length){const t=o[or("0x9")]((t=>this[or("0x7")].has(t)?this[or("0x7")][or("0x14")](t):t))[or("0x20")](", ");n[or("0x22")]({type:or("0x3e"),content:Qo(this[or("0x2d")],or("0x41"),t)})}if(r[or("0x19")]){const t=r[or("0x9")]((t=>this._attributeLabels[or("0x1")](t)?this._attributeLabels[or("0x14")](t):t))[or("0x20")](", ");n[or("0x22")]({type:"format",content:Qo(this._locale,or("0x42"),t)})}return n}[or("0x2f")](t){for(const e of this[or("0x37")]){const n=e(t);if(n&&or("0xe")in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e[or("0x3f")],o=void 0===n[or("0x28")]?or("0xc"):or("0x4e");t[or("0x22")]({type:o,key:n[or("0x1d")]})}[or("0x11")](t,e){t.push({type:or("0x3e"),content:Qo(this._locale,or("0x48"),this[or("0x12")](e[or("0x36")]()[or("0x2c")][or("0x2")],1))})}[or("0x39")](t,e,n){if(this._addDescriptionItems(t,e),n&&n.getFirstRange()&&!e[or("0x36")]()[or("0x31")][or("0x46")](n.getFirstRange()[or("0x2c")])){const n=t[t[or("0x19")]-1],o=or("0x3")==e.type?or("0x2b"):or("0x4b");n&&or("0x4d")==n[or("0xe")]&&(n[o]+="\n")}}}const ir=["afterInit","commands","get","enableCommand","TrackChangesEditing","showAIAssistant","plugins"];var sr,xr;sr=ir,xr=404,function(t){for(;--t;)sr.push(sr.shift())}(++xr);const ar=function(t,e){return ir[t-=0]};class cr extends t.Plugin{[ar("0x2")](){const t=this.editor,e=t[ar("0x1")][ar("0x4")](ar("0x6"));t[ar("0x3")][ar("0x4")](ar("0x0"))&&e[ar("0x5")](ar("0x0"))}}const lr=["left","get","TrackChangesEditing","locale","type","FORMAT_ALIGN_TO_CENTER","FORMAT_ALIGNMENT","AlignmentEditing","right","registerAttributeLabel","FORMAT_ALIGN_TO_LEFT","registerDescriptionCallback","*Format:* %0","FORMAT_JUSTIFY_TEXT","commandName","formatBlock","_descriptionFactory","value","editor","alignment","FORMAT_ALIGN_TO_RIGHT","commandParams","format","plugins","_enableDefaultAttributesIntegration"];var ur,dr;ur=lr,dr=467,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};class fr extends t.Plugin{afterInit(){const t=this[gr("0x1")],e=t[gr("0xb")];if(!t[gr("0x6")].has(gr("0xf")))return;const n=t[gr("0x6")][gr("0x9")](gr("0xa"));n[gr("0x7")]("alignment",[],["alignment"]),n[gr("0x18")][gr("0x11")](gr("0x2"),Qo(e,gr("0xe"))),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[gr("0x1")],e=t[gr("0xb")];t[gr("0x6")][gr("0x9")](gr("0xa"))[gr("0x18")][gr("0x13")]((t=>{if(gr("0x17")!=t[gr("0xc")])return;const{data:n}=t;if(n&&gr("0x2")==n[gr("0x16")]){const t=n[gr("0x4")][0][gr("0x0")];return{type:gr("0x5"),content:Qo(e,gr("0x14"),function(t){switch(t){case gr("0x8"):return Qo(e,gr("0x12"));case gr("0x10"):return Qo(e,gr("0x3"));case"center":return Qo(e,gr("0xd"));case"justify":return Qo(e,gr("0x15"))}}(t))}}}))}}const mr=["_registerLegacyDescription","locale","FORMAT_SUBSCRIPT","afterInit","bold","subscript","plugins","CodeEditing","FORMAT_BOLD","FORMAT_UNDERLINE","slice","italic","_enableDefaultAttributesIntegration","registerDescriptionCallback","BoldEditing","strikethrough","commandName","TrackChangesEditing","editor","SubscriptEditing","*Format:* %0","FORMAT_SUPERSCRIPT","FORMAT_CODE","FORMAT_","underline","ItalicEditing","StrikethroughEditing","toUpperCase"];var hr,br;hr=mr,br=228,function(t){for(;--t;)hr.push(hr.shift())}(++br);const pr=function(t,e){return mr[t-=0]},Er=[pr("0xa"),pr("0x15"),"UnderlineEditing",pr("0x3"),pr("0x16"),pr("0xf"),"SuperscriptEditing"];class _r extends t.Plugin{[pr("0x1b")](){const t=this.editor,e=t.plugins.get(pr("0xd")),n=t[pr("0x19")];for(const o of Er){if(!t[pr("0x2")].has(o))continue;const r=o[pr("0x6")](0,-7).toLowerCase(),i=pr("0x13")+r[pr("0x17")]();e[pr("0x8")](r,[r]),e._descriptionFactory.registerAttributeLabel(r,Qo(n,i))}this._registerLegacyDescription()}[pr("0x18")](){const t=this[pr("0xe")],e=t[pr("0x19")],n=t.plugins.get(pr("0xd"));function o(t,o){n._descriptionFactory[pr("0x9")]((n=>{if("formatInline"!=n.type)return;const{data:r}=n;return r&&r[pr("0xc")]===t?r.commandParams[0].forceValue?{type:"format",content:Qo(e,pr("0x10"),o)}:{type:"format",content:Qo(e,"*Remove format:* %0",o)}:void 0}))}o(pr("0x0"),Qo(e,pr("0x4"))),o(pr("0x7"),Qo(e,"FORMAT_ITALIC")),o(pr("0x14"),Qo(e,pr("0x5"))),o("code",Qo(e,pr("0x12"))),o(pr("0xb"),Qo(e,"FORMAT_STRIKETHROUGH")),o(pr("0x1"),Qo(e,pr("0x1a"))),o("superscript",Qo(e,pr("0x11")))}}const Tr=["commandName","parent","model","editor","getSelectedBlocks","has","_descriptionFactory","format","markBlockFormat","checkChild","enableCommand","$root","*Remove format:* %0","selection","name","registerDescriptionCallback","BlockQuoteEditing","schema","from","plugins","change","blockQuote","get","forceValue","value","TrackChangesEditing","ELEMENT_BLOCK_QUOTE","*Set format:* %0","afterInit","commandParams","document","commands"];var yr,Cr;yr=Tr,Cr=359,function(t){for(;--t;)yr.push(yr.shift())}(++Cr);const Ar=function(t,e){return Tr[t-=0]};class kr extends t.Plugin{[Ar("0x15")](){const t=this.editor,e=t.locale;if(!t[Ar("0xc")][Ar("0x1e")](Ar("0x9")))return;const n=t.plugins.get(Ar("0x12")),o=this.editor[Ar("0x18")][Ar("0xf")]("blockQuote");n[Ar("0x3")](Ar("0xe"),((e,r={})=>{const i=this[Ar("0x1c")][Ar("0x1b")][Ar("0x17")][Ar("0x6")],s=r&&void 0!==r[Ar("0x10")]?r[Ar("0x10")]:!o[Ar("0x11")];let x=[];if(s){const e=Array[Ar("0xb")](i[Ar("0x1d")]()).filter((t=>Sr(t)||function(t,e){const n=e[Ar("0x2")](t.parent,"blockQuote"),o=e[Ar("0x2")]([Ar("0x4"),Ar("0xe")],t);return n&&o}(t,this[Ar("0x1c")][Ar("0x1b")][Ar("0xa")])));x=I(e,t[Ar("0x1b")])}else{const e=Array[Ar("0xb")](i[Ar("0x1d")]()).filter((t=>Sr(t)));x=I(e,t[Ar("0x1b")])}t.model[Ar("0xd")]((()=>{for(const t of x)n[Ar("0x1")](t,{commandName:Ar("0xe"),commandParams:[{forceValue:s}]})}))})),n[Ar("0x1f")][Ar("0x8")]((t=>{const{data:n}=t;if(n&&Ar("0xe")==n[Ar("0x19")]){const t=Qo(e,Ar("0x13"));return n[Ar("0x16")][0][Ar("0x10")]?{type:Ar("0x0"),content:Qo(e,Ar("0x14"),t)}:{type:Ar("0x0"),content:Qo(e,Ar("0x5"),t)}}}))}}function Sr(t){return Ar("0xe")==t[Ar("0x1a")][Ar("0x7")]}const Rr=["afterInit","get","TrackChangesEditing","commands","enableCommand","editor","ckbox"];var Ir,vr;Ir=Rr,vr=261,function(t){for(;--t;)Ir.push(Ir.shift())}(++vr);const Nr=function(t,e){return Rr[t-=0]};class Lr extends t.Plugin{[Nr("0x5")](){const t=this[Nr("0x3")];t[Nr("0x1")].get("ckbox")&&t.plugins[Nr("0x6")](Nr("0x0"))[Nr("0x2")](Nr("0x4"))}}const Mr=["codeBlock","editor","getSelectedBlocks","config","commands","rootElement","get","model","languages","document","selection","indentCodeBlock","filter","CodeBlock","ELEMENT_CODE_BLOCK","afterInit","blockName","type","markBlockFormat","language","enableCommand","find","forceValue","TrackChangesEditing","isLimit","_descriptionFactory","label","checkChild","change","parent","name","plugins","format","commandParams","*Remove format:* %0","toLowerCase","*Set format:* %0","commandName"];var wr,Or;wr=Mr,Or=188,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{[Fr("0x11")](){const t=this[Fr("0x3")];if(!t[Fr("0x21")].has(Fr("0xf")))return;const e=t[Fr("0x21")][Fr("0x8")](Fr("0x19")),n=t.locale,o=t[Fr("0x5")][Fr("0x8")](Fr("0x2"))[Fr("0xa")],r=t[Fr("0x6")][Fr("0x8")](Fr("0x2"));e[Fr("0x16")](Fr("0xd")),e[Fr("0x16")]("outdentCodeBlock"),e.enableCommand("codeBlock",((n,i={})=>{const s=t[Fr("0x9")],x=t.model[Fr("0xb")][Fr("0xc")],a=i&&void 0!==i[Fr("0x18")]?i.forceValue:!r.value;let c;i.language||(i[Fr("0x15")]=o[0].language),c=a?Array.from(x[Fr("0x4")]())[Fr("0xe")]((t=>{return Br(t)||(e=t,n=s.schema,!e.is(Fr("0x7"))&&!n[Fr("0x1a")](e)&&n[Fr("0x1d")](e[Fr("0x1f")],Fr("0x2")));var e,n})):Array.from(x[Fr("0x4")]()).filter((t=>Br(t)));const l=I(c,s);s[Fr("0x1e")]((()=>{for(const t of l)e[Fr("0x14")](t,{commandName:Fr("0x2"),commandParams:[{...i,forceValue:a}],formatGroupId:Fr("0x12")})}))})),e._descriptionFactory.registerElementLabel(Fr("0x2"),(t=>Qo(n,Fr("0x10"),t))),e[Fr("0x1b")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Fr("0x13")])return;const e=n.t,{data:r}=t;if(!r||Fr("0x2")!=r[Fr("0x1")])return;const i=r[Fr("0x23")][0][Fr("0x15")],s=e(o[Fr("0x17")]((t=>t[Fr("0x15")]===i))[Fr("0x1c")])[Fr("0x25")]();return r[Fr("0x23")][0][Fr("0x18")]?{type:Fr("0x22"),content:Qo(n,Fr("0x0"),Qo(n,Fr("0x10"),1)+" ("+s+")")}:{type:Fr("0x22"),content:Qo(n,Fr("0x24"),Qo(n,Fr("0x10"),1))}}))}}function Br(t){return Fr("0x2")==t[Fr("0x20")]}const Pr=["has","editor","TrackChangesEditing","get","CommentsEditing","enableCommand"];var Ur,jr;Ur=Pr,jr=176,function(t){for(;--t;)Ur.push(Ur.shift())}(++jr);const Gr=function(t,e){return Pr[t-=0]};class Hr extends t.Plugin{afterInit(){const t=this[Gr("0x5")];t.plugins[Gr("0x4")](Gr("0x2"))&&t.plugins[Gr("0x1")](Gr("0x0"))[Gr("0x3")]("addCommentThread")}}var Vr=n(181);const zr=["getCustomProperty","createUIElement","activeMarkers","hasAttribute","element","name","getWalker","consumable","parent","previousPosition","markerRange","push","listItem","mapper","toViewPosition","getAttribute","type","getItems","plugins","isAtEnd","schema","ck-suggestion-marker--active","isBlock","get","writer","isLimit","markerName","span","bindElementToMarker","nextSibling","addClass","isContent"];var Wr,Kr;Wr=zr,Kr=276,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};function Xr(t,e,n){const o=[];for(const r of e[qr("0x1d")]())r[qr("0xf")](t)&&o[qr("0x17")](n.createRangeOn(r));return o}function $r(t,e,{showActiveMarker:n=!0}={}){const o=t[qr("0x1e")][qr("0x3")]("TrackChangesEditing");return(r,i,s)=>{if(!s[qr("0x13")].test(i[qr("0x16")],r[qr("0x11")]))return;const x=i.markerRange[qr("0x12")](),a=i[qr("0x16")].start,c=t.model[qr("0x0")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[qr("0xb")](e);const n=s.mapper.toViewElement(e);if(n&&n[qr("0xc")]("addHighlight"))return;"elementEnd"==t[qr("0x1c")]&&c[qr("0x2")](e)&&!c[qr("0x5")](e)&&(e.nextSibling||a[qr("0x1f")]?l&&l[qr("0x14")]==e||(l=e,f(t[qr("0x15")]),g=!0):u=u||t[qr("0x15")])}function f(t){const r=s[qr("0x4")][qr("0xd")](qr("0x7"),{class:"ck-suggestion-marker-"+e}),x=s.mapper[qr("0x1a")](t);n&&o[qr("0xe")].includes(i[qr("0x6")])&&s[qr("0x4")][qr("0xa")](qr("0x1"),r),s[qr("0x4")].insert(x,r),s[qr("0x19")][qr("0x8")](r,i[qr("0x6")])}d||g||!u||f(u)}}const Zr=["isCollapsed","model","unit","delete","buffer","unlock","document","deleteForward","enqueueChange","unbindElementFromMarkerName","createRange","markerName","merge","removeMarker:suggestion:deletion","$graveyard","rootName","detach","requires","editor","selection","uiElement","mapper","options","getFirstRange","end","setSelection","get","start","forward","enableCommand","fromRange","lock","editing","commands","downcastDispatcher","showSuggestionHighlights","plugins","markerNameToElements","data","high","remove","root","addMarker:suggestion:deletion"];var Yr,Jr;Yr=Zr,Jr=470,function(t){for(;--t;)Yr.push(Yr.shift())}(++Jr);const Qr=function(t,e){return Zr[t-=0]};class ti extends t.Plugin{static get[Qr("0x14")](){return[Vr.Delete]}init(){const t=this[Qr("0x15")],e=t[Qr("0x27")][Qr("0x1d")]("TrackChangesEditing");e[Qr("0x20")](Qr("0x6"));const n=t[Qr("0x24")][Qr("0x1d")](Qr("0xa"));e[Qr("0x20")](Qr("0xa"),((e,o={})=>{const r=t[Qr("0x4")].createSelection(t.model[Qr("0x9")][Qr("0x16")]);r[Qr("0x3")]&&t.model.modifySelection(r,{direction:Qr("0x1f"),unit:o[Qr("0x5")]});const i=r[Qr("0x1a")](),x=s.LiveRange[Qr("0x21")](i);let a;e(o),a=Qr("0x11")==x[Qr("0x1")][Qr("0x12")]?t[Qr("0x4")].createRange(i[Qr("0x1e")]):t[Qr("0x4")][Qr("0xd")](x[Qr("0x1e")],x.end),x[Qr("0x13")](),t[Qr("0x4")][Qr("0xb")](n[Qr("0x7")].batch,(t=>{n[Qr("0x7")][Qr("0x22")](),t[Qr("0x1c")](t.createRange(a[Qr("0x1b")])),n[Qr("0x7")][Qr("0x8")]()}))})),t.editing.downcastDispatcher.on(Qr("0x2"),$r(t,Qr("0xf")),{priority:Qr("0x2a")}),t[Qr("0x29")].downcastDispatcher.on(Qr("0x2"),((e,n,o)=>{o[Qr("0x19")][Qr("0x26")]&&$r(t,Qr("0xf"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"}),t[Qr("0x23")][Qr("0x25")].on(Qr("0x10"),((t,e,n)=>{const o=n[Qr("0x18")][Qr("0x28")](e[Qr("0xe")]);if(o)for(const t of o)t.is(Qr("0x17"))&&(n[Qr("0x18")][Qr("0xc")](t,e[Qr("0xe")]),n.writer[Qr("0x0")](t))}),{priority:Qr("0x2a")})}}const ei=["map","fromRange","plugins","value","TrackChangesEditing","execute","hasAttribute","getRanges","documentList","mergeListItemBackward","ELEMENT_LIST_ITEM","listIndent","slice","toUpperCase","setSelection","DocumentListUtils","registerElementLabel","ELEMENT_","format","enableCommand","model","createPositionAt","commandName","nodeAfter","detach","isObject","formatInline","push","isFirstBlockOfListItem","type","add","listType","numberedList","getAttribute","listItemId","*Merge:* %0","start","containsItem","*Change to:* %0","_suggestionFactory","splitListItemBefore","paragraph","getFirstRange","bulletedList","*Outdent:* %0","*Indent:* %0","before","formatBlock","createRange","*Format:* insert into %0","expandListBlocksToCompleteList","accept","commands","previousSibling","get","afterInit","indentList","commandParams","next","*Format:* remove from %0","list.multiBlock","after","document","schema","markBlockFormat","from","getSelectedBlocks","length","change","nextSibling","outdentList","refresh","selection","_LIST","registerCustomCallback","DocumentListEditing","splitListItemAfter","end","_descriptionFactory"];var ni,oi;ni=ei,oi=486,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class ii extends t.Plugin{[ri("0x2b")](){const t=this.editor;if(!t.plugins.has(ri("0x3f")))return;const e=t.locale,n=t[ri("0x45")].get(ri("0x47")),o=t[ri("0x45")][ri("0x2a")](ri("0x3"));function r(e){return()=>{const r=t[ri("0x28")][ri("0x2a")](e);if(r[ri("0x46")]&&!t.config.get(ri("0x30")))return void t[ri("0x48")](ri("0x1d"),{});let i=Array[ri("0x35")](t[ri("0x8")].document[ri("0x3c")].getSelectedBlocks());if(a(e)){i=o[ri("0x26")](i);const t=[];for(const e of i)o[ri("0x10")](e)&&t.push(e);i=t}t[ri("0x8")][ri("0x38")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:e,commandParams:[{forceValue:!r[ri("0x46")]}],formatGroupId:"listType"},[],ri("0x4b"))}))}}function i(e){return()=>{const o=function(t){let e=Array[ri("0x35")](t);const n=e.findIndex((t=>!t[ri("0x49")](ri("0x16"))));return n>-1&&(e=e[ri("0x0")](0,n)),e}(t[ri("0x8")][ri("0x32")][ri("0x3c")].getSelectedBlocks()),r=o[o[ri("0x37")]-1],i=t.model[ri("0x33")][ri("0xd")](r)?ri("0x31"):ri("0x41"),s=t[ri("0x8")][ri("0x24")](t[ri("0x8")][ri("0x9")](o[0],ri("0x22")),t[ri("0x8")].createPositionAt(r,i));t[ri("0x8")][ri("0x38")]((()=>{n[ri("0x34")](s,{commandName:e,commandParams:[],formatGroupId:ri("0x13")},function(t){const e=new Set;for(const n of t){let t=n[ri("0x39")];for(;t&&t[ri("0x15")]("listIndent")>n[ri("0x15")](ri("0x4e"));)e[ri("0x12")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[ri("0x8")][ri("0x32")].selection[ri("0x36")]()[ri("0x2e")]()[ri("0x46")],r=t.model[ri("0x9")](o,ri("0x22")),i=t[ri("0x8")][ri("0x9")](o,0),s=t.model[ri("0x24")](r,i);t[ri("0x8")][ri("0x38")]((()=>{n[ri("0x34")](s,{commandName:e,commandParams:[],formatGroupId:ri("0x13")})}))}}function a(e){const n=t[ri("0x28")].get(ri("0x1f")).value,o=t[ri("0x28")][ri("0x2a")](ri("0x14")).value;return ri("0x14")===e?n:o}n[ri("0x7")]("numberedList",r("numberedList")),n[ri("0x7")](ri("0x1f"),r(ri("0x1f"))),n[ri("0x7")](ri("0x2c"),i("indentList")),n[ri("0x7")](ri("0x3a"),i(ri("0x3a"))),n[ri("0x7")]("splitListItemAfter",x(ri("0x40"))),n[ri("0x7")](ri("0x1c"),x(ri("0x1c"))),n[ri("0x42")][ri("0x4")]((function(e){const n=!t[ri("0x8")].schema[ri("0xd")](e),o=e[ri("0x29")],r=e.nextSibling,i=e[ri("0x15")]("listItemId"),s=!o||o[ri("0x15")]("listItemId")!==i,x=!r||r.getAttribute(ri("0x16"))!==i;return n&&Boolean(i)&&s&&x}),(t=>Qo(e,ri("0x4d"),t))),n._descriptionFactory.registerDescriptionCallback((function(n){if(ri("0x23")!=n[ri("0x11")]&&ri("0xe")!=n[ri("0x11")])return;const{data:o}=n;if(!o)return;let r,i,s,x;switch(o.commandName){case ri("0x1f"):s=o.commandParams[0].forceValue,x=a(o[ri("0xa")]),r=s?ri("0x25"):"*Format:* remove from %0",!x&&t.config[ri("0x2a")](ri("0x30"))||(r=ri("0x1a")),i={type:"format",content:Qo(e,r,Qo(e,"ELEMENT_BULLETED_LIST"))};break;case ri("0x14"):s=o[ri("0x2d")][0].forceValue,x=a(o[ri("0xa")]),r=ri(s?"0x25":"0x2f"),!x&&t.config[ri("0x2a")](ri("0x30"))||(r=ri("0x1a")),i={type:ri("0x6"),content:Qo(e,r,Qo(e,"ELEMENT_NUMBERED_LIST"))};break;case ri("0x2c"):r=ri("0x21"),i={type:ri("0x6"),content:Qo(e,r,Qo(e,ri("0x4d")))};break;case"outdentList":r=function(t){const e=t[ri("0x1e")]();let n=e[ri("0x18")][ri("0xb")];for(;n&&e[ri("0x19")](n);){if(n[ri("0x15")](ri("0x4e"))>0)return!1;n=n[ri("0x39")]}return!0}(n)?Qo(e,ri("0x2f"),Qo(e,function(t){const e=t[ri("0x1e")]().start.nodeAfter;return ri("0x5")+e[ri("0x15")](ri("0x13"))[ri("0x1")]()+ri("0x3d")}(n))):Qo(e,ri("0x20"),Qo(e,ri("0x4d"))),i={type:ri("0x6"),content:r};break;case ri("0x4c"):case"mergeListItemForward":!1===o.multipleBlocks&&(r=ri("0x17"),i={type:"deletion",content:Qo(e,r,Qo(e,ri("0x4d")))})}return i})),n[ri("0x1b")][ri("0x3e")](ri("0x23"),ri("0x4b"),ri("0x27"),(function(e,n){const o=[];for(let n of e)n[ri("0x18")].nodeAfter===n[ri("0x41")].parent&&(n=t.model[ri("0x24")](t[ri("0x8")][ri("0x9")](n[ri("0x18")][ri("0xb")],0))),o[ri("0xf")](n);t[ri("0x8")][ri("0x38")]((e=>{const r=t.model[ri("0x32")][ri("0x3c")],i=Array[ri("0x35")](r[ri("0x4a")]())[ri("0x43")]((t=>s.LiveRange[ri("0x44")](t)));e[ri("0x2")](o),t[ri("0x28")].get(n[ri("0xa")])[ri("0x3b")](),n[ri("0x2d")][ri("0xf")]({forceDefaultExecution:!0}),t[ri("0x48")](n.commandName,...n[ri("0x2d")]),e[ri("0x2")](i);for(const t of i)t[ri("0xc")]()}))}))}}const si=["listReversed","commandName","handleDescriptions","TrackChangesEditing","has","startIndex","toUpperCase","commandParams","afterInit","from","isListItemBlock","isFirstBlockOfListItem","ELEMENT_","replace","listStart","format","styles","listType","getAttribute","*Format:* set order to reversed","handleListStyleCommand","_getSuggestionBlocksForListStyle","selection","_LIST_","list.properties","handleListStartCommand","DocumentListUtils","editor","formatBlock","markMultiRangeBlockFormat","length","model","registerDescriptionCallback","expandListBlocksToCompleteList","*Format:* set order to regular","document","type","DocumentListPropertiesUtils","_getTranslationKeyForListStyle","push","handleListReversedCommand","bind","*Change to:* %0","getSelectedBlocks","change","_getSuggestionBlocks","formatInline","DocumentListPropertiesEditing","numbered","enableCommand","config","get","locale","plugins"];var xi,ai;xi=si,ai=355,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0x1f")](){if(!this[ci("0x32")][ci("0x16")][ci("0x1b")](ci("0x10")))return;const t=this[ci("0x32")][ci("0x13")][ci("0x14")](ci("0x2f")),e=this.editor[ci("0x16")].get(ci("0x1a"));t[ci("0x27")]&&e[ci("0x12")]("listStyle",this[ci("0x2b")].bind(this)),t.reversed&&e[ci("0x12")](ci("0x17"),this.handleListReversedCommand[ci("0xa")](this)),t[ci("0x1c")]&&e[ci("0x12")](ci("0x25"),this[ci("0x30")].bind(this)),e._descriptionFactory[ci("0x1")](this[ci("0x19")].bind(this))}[ci("0x2b")](t,e={}){const n=this[ci("0x32")][ci("0x16")][ci("0x14")](ci("0x1a")),o=this[ci("0x2c")]();this[ci("0x32")][ci("0x0")][ci("0xd")]((()=>{n[ci("0x34")](o,{commandName:"listStyle",commandParams:[{type:e[ci("0x5")]}],formatGroupId:"listStyle"})}))}[ci("0x9")](t,e={}){const n=this[ci("0x32")].plugins.get(ci("0x1a")),o=this[ci("0x32")][ci("0x16")][ci("0x14")](ci("0x31")),r=this[ci("0xe")]((t=>o[ci("0x21")](t)&&ci("0x11")===t[ci("0x29")]("listType")));null!==r&&this[ci("0x32")][ci("0x0")].change((()=>{n.markMultiRangeBlockFormat(r,{commandName:ci("0x17"),commandParams:[{reversed:e.reversed}],formatGroupId:ci("0x17")})}))}handleListStartCommand(t,e={}){const n=this[ci("0x32")][ci("0x16")][ci("0x14")](ci("0x1a")),o=this[ci("0x32")][ci("0x16")][ci("0x14")](ci("0x31")),r=this._getSuggestionBlocks((t=>o[ci("0x21")](t)&&ci("0x11")===t.getAttribute(ci("0x28"))));null!==r&&this.editor.model[ci("0xd")]((()=>{n[ci("0x34")](r,{commandName:ci("0x25"),commandParams:[{startIndex:e[ci("0x1c")]}],formatGroupId:ci("0x25")})}))}[ci("0x19")](t){if(ci("0x33")!=t[ci("0x5")]&&ci("0xf")!=t[ci("0x5")])return;const e=this[ci("0x32")][ci("0x15")],{data:n}=t;if(!n)return;let o,r;switch(n[ci("0x18")]){case"listStyle":o=ci("0xb"),r={type:ci("0x26"),content:Qo(e,o,Qo(e,this[ci("0x7")](n[ci("0x1e")][0][ci("0x5")])))};break;case ci("0x17"):o=n[ci("0x1e")][0].reversed?ci("0x2a"):ci("0x3"),r={type:ci("0x26"),content:Qo(e,o)};break;case"listStart":o="*Format:* set start index to %0",r={type:ci("0x26"),content:Qo(e,o,n[ci("0x1e")][0].startIndex)}}return r}[ci("0x2c")](){const t=this[ci("0x32")][ci("0x16")][ci("0x14")](ci("0x31"));let e=Array[ci("0x20")](this[ci("0x32")].model[ci("0x4")][ci("0x2d")][ci("0xc")]());return e[ci("0x8")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[ci("0xe")](t){const e=this[ci("0x32")].plugins[ci("0x14")](ci("0x31"));let n=Array[ci("0x20")](this.editor[ci("0x0")][ci("0x4")][ci("0x2d")][ci("0xc")]()).filter(t);if(!n[ci("0x35")])return null;n=e[ci("0x2")](n);const o=[];for(const t of n)e[ci("0x22")](t)&&o[ci("0x8")](t);return o}_getTranslationKeyForListStyle(t){return ci("0x23")+this[ci("0x32")][ci("0x16")].get(ci("0x6")).getListTypeFromListStyleType(t)[ci("0x1d")]()+ci("0x2e")+t[ci("0x1d")]()[ci("0x24")](/-/g,"_")}}var ui=n(331);const di=["model","afterExecute","downcastDispatcher","fromRange","enableCommand","options","addMarker:suggestion:insertion","markerName","enterBlock","remove","markInsertion","document","createRange","createPositionAt","data","getFirstPosition","writer","end","init","commands","TrackChangesEditing","selection","get","enter","editing","detach","getFirstRange","change","requires","bind","fire","mapper","markerNameToElements","high","split","hasClass","ck-suggestion-marker-split"];var gi,fi;gi=di,fi=442,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const mi=function(t,e){return di[t-=0]};class hi extends t.Plugin{static get[mi("0x1e")](){return[ui.Enter]}[mi("0x14")](){const t=this.editor,e=t.plugins[mi("0x18")](mi("0x16")),n=t[mi("0x15")][mi("0x18")](mi("0x19"));e[mi("0x6")]("enter",(()=>{t[mi("0x2")][mi("0x1d")]((o=>{const r=t[mi("0x2")][mi("0xd")][mi("0x17")],i=r[mi("0x11")](),x=s.LiveRange[mi("0x5")](r[mi("0x1c")]());if(n[mi("0xa")](o)){const n=t[mi("0x2")][mi("0xf")](i.parent.nextSibling,0),r=o[mi("0xe")](i,n);e[mi("0xc")](r)}else o.setSelection(o[mi("0xe")](x[mi("0x13")]));x[mi("0x1b")](),n[mi("0x20")](mi("0x3"),{writer:o})}))})),t[mi("0x1a")].downcastDispatcher.on(mi("0x8"),$r(t,"split"),{priority:mi("0x23")}),t.editing[mi("0x4")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[mi("0x21")][mi("0x22")](e[mi("0x9")]);if(o)for(const t of o)t[mi("0x0")](mi("0x1"))&&(n[mi("0x21")].unbindElementFromMarkerName(t,e[mi("0x9")]),n[mi("0x12")][mi("0xb")](t))}),{priority:mi("0x23")}),t[mi("0x10")][mi("0x4")].on(mi("0x8"),((e,n,o)=>{o[mi("0x7")].showSuggestionHighlights&&$r(t,mi("0x24"),{showActiveMarker:!1})[mi("0x1f")](this)(e,n,o)}),{priority:mi("0x23")})}}const bi=["plugins","end","getIntersection","_isInDeletionRange","get","item","afterInit","findPrevious","has","editor","createPositionAt","getRange","FindAndReplaceEditing","getMarkersGroup","model","findNext","enableCommand","start","replaceAll","TrackChangesEditing","markers","handleFindCommand","find","createRange","suggestion:deletion","string","filter","bind"];var pi,Ei;pi=bi,Ei=483,function(t){for(;--t;)pi.push(pi.shift())}(++Ei);const _i=function(t,e){return bi[t-=0]};class Ti extends t.Plugin{[_i("0x1b")](){if(!this[_i("0x2")][_i("0x15")][_i("0x1")](_i("0x5")))return;const t=this[_i("0x2")][_i("0x15")][_i("0x19")](_i("0xc"));t[_i("0x9")](_i("0xf"),this[_i("0xe")][_i("0x14")](this)),t[_i("0x9")](_i("0x8")),t[_i("0x9")](_i("0x0")),t.enableCommand("replace"),t.enableCommand(_i("0xb"))}[_i("0xe")](t,e,n={}){const o=this[_i("0x2")][_i("0x15")][_i("0x19")]("FindAndReplaceUtils");return t((t=>(_i("0x12")==typeof e?o.findByTextCallback(e,n):e)(t)[_i("0x13")]((e=>!1===this[_i("0x18")](e,t[_i("0x1a")])))),n)}_isInDeletionRange(t,e){const n=this[_i("0x2")][_i("0x7")][_i("0x10")](this[_i("0x2")][_i("0x7")][_i("0x3")](e,t[_i("0xa")]),this[_i("0x2")][_i("0x7")][_i("0x3")](e,t[_i("0x16")]));for(const t of this[_i("0x2")][_i("0x7")][_i("0xd")][_i("0x6")](_i("0x11")))if(null!==n[_i("0x17")](t[_i("0x4")]()))return!0;return!1}}const yi=["TrackChangesEditing","has","toLowerCase","formatInline","_registerLegacyDescription","*Set font family:* %0","label","*Set font size:* %0","value","*Set font color:* %0","*Reset font background color*","registerDescriptionCallback","get","fontFamily","afterInit","FontSizeEditing","editor","config","model","trim","*Set font background color:* %0","FORMAT_FONT_BACKGROUND","_descriptionFactory","type","find","fontSize","FontSize","fontBackgroundColor","registerAttributeLabel","format","fontBackgroundColor.colors","commandParams","fontColor","locale","*Reset font size*","commandName","FORMAT_FONT_SIZE","plugins","title","FontBackgroundColorEditing"];var Ci,Ai;Ci=yi,Ai=461,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Si=[{pluginName:ki("0x22"),commandName:ki("0x4")},{pluginName:"FontFamilyEditing",commandName:ki("0x20")},{pluginName:"FontColorEditing",commandName:"fontColor"},{pluginName:ki("0x12"),commandName:ki("0x6")}];class Ri extends t.Plugin{[ki("0x21")](){const t=this.editor[ki("0xc")],e=this[ki("0x23")][ki("0x10")][ki("0x1f")](ki("0x13"));for(const{pluginName:t,commandName:n}of Si)this[ki("0x23")][ki("0x10")][ki("0x14")](t)&&e._enableDefaultAttributesIntegration(n,[n]);t.t,e[ki("0x1")][ki("0x7")]("fontSize",Qo(t,ki("0xf"))),e._descriptionFactory[ki("0x7")]("fontFamily",Qo(t,"FORMAT_FONT_FAMILY")),e[ki("0x1")].registerAttributeLabel(ki("0xb"),Qo(t,"FORMAT_FONT_COLOR")),e[ki("0x1")][ki("0x7")](ki("0x6"),Qo(t,ki("0x0"))),this._registerLegacyDescription()}[ki("0x17")](){const t=this.editor,e=t[ki("0xc")];t[ki("0x10")].get("TrackChangesEditing")[ki("0x1")][ki("0x1e")]((t=>{const n=e.t;if(ki("0x16")!=t[ki("0x2")])return;const{data:o}=t;if(null!=o){if(ki("0x4")==o[ki("0xe")]){const t=o[ki("0xa")][0][ki("0x1b")];if(t){const o=n(this[ki("0x23")][ki("0x10")].get(ki("0x5")).normalizeSizeOptions(this[ki("0x23")].config[ki("0x1f")]("fontSize.options"))[ki("0x3")]((e=>e[ki("0x25")]==t))[ki("0x11")])[ki("0x15")]();return{type:ki("0x8"),content:Qo(e,ki("0x1a"),o)}}return{type:"format",content:Qo(e,ki("0xd"))}}if(ki("0x20")==o.commandName){const t=o.commandParams[0][ki("0x1b")];return t?{type:ki("0x8"),content:Qo(e,ki("0x18"),t)}:{type:"format",content:Qo(e,"*Reset font family*")}}if(ki("0xb")==o[ki("0xe")]){const t=o.commandParams[0].value;if(t){const o=(0,r.normalizeColorOptions)(this.editor[ki("0x24")][ki("0x1f")]("fontColor.colors"))[ki("0x3")]((e=>e[ki("0x25")]==t));let i=t,s="";return o&&(i=o[ki("0x19")],s=n(i)[ki("0x15")]()),{type:ki("0x8"),content:Qo(e,ki("0x1c"),s)[ki("0x26")](),color:{value:t,title:s||i}}}return{type:"format",content:Qo(e,"*Reset font color*")}}if(ki("0x6")==o[ki("0xe")]){const t=o[ki("0xa")][0].value;if(t){const o=(0,r.normalizeColorOptions)(this[ki("0x23")][ki("0x24")].get(ki("0x9")))[ki("0x3")]((e=>e.model==t));let i=t,s="";return o&&(i=o[ki("0x19")],s=n(i)[ki("0x15")]()),{type:ki("0x8"),content:Qo(e,ki("0x27"),s).trim(),color:{value:t,title:s||i}}}return{type:ki("0x8"),content:Qo(e,ki("0x1d"))}}}}))}}const Ii=["boolean","_descriptionFactory","*Remove all formatting*","fontSize","formatBlock","enableCommand","title","config","normalizeSizeOptions","_registerLegacyDescription","FontSize","join","afterInit","model","fontColor.colors","plugins","formatInline","editor","get","split","locale","_enableDefaultAttributesIntegration","toLowerCase","fontSize.options","pasteFormat","push","find","TrackChangesEditing","commandParams","commands","format","length","slice","type","toUpperCase","copyFormat"];var vi,Ni;vi=Ii,Ni=217,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Ii[t-=0]};class Mi extends t.Plugin{[Li("0xb")](){const t=this[Li("0x10")],e=t.plugins[Li("0x11")](Li("0x1a")),n=t[Li("0x1c")][Li("0x11")](Li("0x22")),o=t[Li("0x1c")].get(Li("0x17"));n&&o&&(e[Li("0x14")](Li("0x17")),e[Li("0x4")]("copyFormat"),this[Li("0x8")]())}[Li("0x8")](){const t=this[Li("0x10")],e=t[Li("0x13")];t[Li("0xe")][Li("0x11")](Li("0x1a"))[Li("0x0")].registerDescriptionCallback((n=>{if(Li("0x3")!=n[Li("0x20")]&&Li("0xf")!=n[Li("0x20")])return;const{data:o}=n;if(o&&Li("0x17")===o.commandName){const n=[],r=o[Li("0x1b")][0];for(const[e,o]of Object.entries(r))n[Li("0x18")](wi(t,e,o));return n[Li("0x1e")]?{type:Li("0x1d"),content:Qo(e,"*Set format to:* %0",n[Li("0xa")](", "))}:{type:Li("0x1d"),content:Qo(e,Li("0x1"))}}}))}}function wi(t,e,n){const o=t[Li("0x13")].t,i=e[Li("0x12")](/(?=[A-Z])/)[Li("0xa")](" "),s=o(i.charAt(0)[Li("0x21")]()+i[Li("0x1f")](1))[Li("0x15")]();if(Li("0x23")==typeof n)return s;if("fontColor"===e||"fontBackgroundColor"===e){const e=(0,r.normalizeColorOptions)(t[Li("0x6")][Li("0x11")](Li("0xd"))).find((t=>t.model==n));return s+" ("+(e?o(e.label)[Li("0x15")]():n)+")"}if(Li("0x2")===e&&isNaN(parseFloat(n))){const e=t[Li("0xe")][Li("0x11")](Li("0x9"))[Li("0x7")](t.config.get(Li("0x16")))[Li("0x19")]((t=>t[Li("0xc")]==n));return s+" ("+(e?o(e[Li("0x5")])[Li("0x15")]():n)+")"}return s+" ("+n+")"}const Oi=["TrackChangesEditing","*Change to:* %0","afterInit","commandName","model","has","type","ELEMENT_HEADING_CUSTOM","editor","registerElementLabel","format","plugins","_enableDefaultAttributesIntegration","get","heading","match","view","find","_registerLegacyDescription","_headingOptions","locale","HeadingEditing","_descriptionFactory","ELEMENT_HEADING","heading.options","value"];var Fi,Di;Fi=Oi,Di=479,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Bi=function(t,e){return Oi[t-=0]};class Pi extends t.Plugin{[Bi("0x11")](){const t=this.editor;if(!t[Bi("0x0")][Bi("0x14")](Bi("0xa")))return;this[Bi("0x8")]=t.config[Bi("0x2")](Bi("0xd"));const e=t[Bi("0x9")],n=t[Bi("0x0")].get(Bi("0xf"));n[Bi("0x1")](Bi("0x3"));for(const t of this[Bi("0x8")])"paragraph"!=t.model&&n[Bi("0xb")][Bi("0x18")](t[Bi("0x13")],(n=>{const o=this._getHeadingLevel(t[Bi("0x13")]);return null!==o?(s=n,x=o,Qo(e,Bi("0xc"),[s,x])):(r=n,i=t.title,Qo(e,Bi("0x16"),[r,i]));var r,i,s,x}));this._registerLegacyDescription()}[Bi("0x7")](){const t=this[Bi("0x17")],e=t[Bi("0x9")];t[Bi("0x0")][Bi("0x2")]("TrackChangesEditing")[Bi("0xb")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Bi("0x15")])return;const{data:n}=t;if(n&&"heading"==n[Bi("0x12")]){const t=n.commandParams[0][Bi("0xe")],s=this._getHeadingLevel(t);if(null!==s)return{type:Bi("0x19"),content:Qo(e,Bi("0x10"),(1,i=s,Qo(e,Bi("0xc"),[1,i])))};const x=this._headingOptions[Bi("0x6")]((e=>e[Bi("0x13")]===t)).title;return{type:Bi("0x19"),content:Qo(e,"*Change to:* %0",(o=1,r=x,Qo(e,"ELEMENT_HEADING_CUSTOM",[o,r])))}}var o,r,i}))}_getHeadingLevel(t){var e,n;const o=t[Bi("0x4")](/^heading(\d+)/);if(o)return o[1];const r=null===(e=this[Bi("0x8")])||void 0===e?void 0:e[Bi("0x6")]((e=>e[Bi("0x13")]==t));if(r&&r[Bi("0x5")]){const t=r[Bi("0x5")],e=(null!==(n=t.name)&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["get","HighlightEditing","color","type","*Remove highlight*","commandName","TrackChangesEditing","find","afterInit","model","value","highlight","*Set highlight:* %0","format","FORMAT_HIGHLIGHT","registerAttributeLabel","plugins","has","highlight.options","_registerLegacyDescription","editor","_descriptionFactory","title","formatInline","commandParams"];var ji,Gi;ji=Ui,Gi=451,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Hi=function(t,e){return Ui[t-=0]};class Vi extends t.Plugin{[Hi("0x7")](){const t=this[Hi("0x13")];if(!t[Hi("0xf")][Hi("0x10")](Hi("0x0")))return;const e=t.plugins[Hi("0x18")](Hi("0x5")),n=t.locale;e._enableDefaultAttributesIntegration(Hi("0xa"),["highlight"]),e._descriptionFactory[Hi("0xe")](Hi("0xa"),Qo(n,Hi("0xd"))),this[Hi("0x12")]()}[Hi("0x12")](){const t=this[Hi("0x13")],e=t.locale;t[Hi("0xf")][Hi("0x18")](Hi("0x5"))[Hi("0x14")].registerDescriptionCallback((n=>{if(Hi("0x16")!=n[Hi("0x2")])return;const{data:o}=n;if(o&&Hi("0xa")==o[Hi("0x4")]){const n=e.t,r=o[Hi("0x17")][0][Hi("0x9")];if(r){const o=t.config.get(Hi("0x11"))[Hi("0x6")]((t=>t[Hi("0x8")]==r)),i=n(o[Hi("0x15")]).toLowerCase();return{type:Hi("0xc"),content:Qo(e,Hi("0xb"),i),color:{value:o[Hi("0x1")],title:o[Hi("0x15")]}}}return{type:Hi("0xc"),content:Qo(e,Hi("0x3"),Qo(e,"FORMAT_HIGHLIGHT"))}}}))}}const zi=["div","showSuggestionHighlights","elementToStructure","enableCommand","_descriptionFactory","registerElementLabel","get","HorizontalLineEditing","horizontalLine","has","plugins","createPositionAt","createContainerElement","dataDowncast","ck-horizontal-line","addClass","for","TrackChangesEditing"];var Wi,Ki;Wi=zi,Ki=396,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class Xi extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[qi("0x9")](qi("0x7")))return;t[qi("0xa")].get(qi("0x11"))[qi("0x3")](qi("0x8"));const e=t.plugins[qi("0x6")](qi("0x11")),n=t.locale;e[qi("0x4")][qi("0x5")](qi("0x8"),(t=>Qo(n,"ELEMENT_HORIZONTAL_LINE",t))),t.conversion[qi("0x10")](qi("0xd"))[qi("0x2")]({model:qi("0x8"),view:(t,{writer:e,options:n})=>{if(!n[qi("0x1")])return null;const o=e[qi("0xc")](qi("0x0")),r=e.createEmptyElement("hr");return e[qi("0xf")](qi("0xe"),o),e.insert(e[qi("0xb")](o,0),r),o},converterPriority:"high"})}}const $i=["_enableDefaultAttributesIntegration","TrackChangesEditing","registerDescriptionCallback","attribute","*Change %0 content*","format","value","_descriptionFactory","ELEMENT_HTML_EMBED","element","plugins","getFirstRange","rawHtml","editor","htmlEmbed","locale","key","registerElementLabel","get","commandName","nodeAfter","HtmlEmbed","formatBlock","_registerLegacyDescription","has","start","type"];var Zi,Yi;Zi=$i,Yi=432,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return $i[t-=0]};class Qi extends t.Plugin{afterInit(){const t=this[Ji("0xd")];if(!t[Ji("0xa")][Ji("0x18")](Ji("0x15")))return;const e=t.plugins[Ji("0x12")](Ji("0x1")),n=t.locale;e._descriptionFactory[Ji("0x11")](Ji("0xc"),(t=>Qo(n,"ELEMENT_HTML_EMBED",t))),e[Ji("0x0")](Ji("0xe"),[],[Ji("0x6")]),e[Ji("0x7")][Ji("0x2")]((t=>{if(Ji("0x3")!=t[Ji("0x1a")])return;const{data:e}=t;if(e&&Ji("0x6")==e[Ji("0x10")]&&t[Ji("0xb")]()[Ji("0x19")][Ji("0x14")].is(Ji("0x9"),Ji("0xc"))){const t=Qo(n,Ji("0x8"));return{type:Ji("0x5"),content:Qo(n,Ji("0x4"),t)}}})),this._registerLegacyDescription()}[Ji("0x17")](){const t=this[Ji("0xd")],e=t[Ji("0xf")];t.plugins[Ji("0x12")]("TrackChangesEditing")._descriptionFactory[Ji("0x2")]((t=>{if(Ji("0x16")!=t[Ji("0x1a")])return;const{data:n}=t;if(n&&Ji("0xe")==n[Ji("0x13")]){const t=Qo(e,Ji("0x8"));return{type:Ji("0x5"),content:Qo(e,"*Change %0 content*",t)}}}))}}const ts=["createRange","registerDescriptionCallback","isBlockImage","previous","isIntersecting","*Remove image text alternative*","deletion","alt","*Set image width:* %0","model","_registerLegacyDescription","ImageEditing","type","toPrevious","getCaptionFromImageModelElement","isOwn","key","isEqual","subType","get","convertBlockImageToInline","findIndex","uploadImage","Block image to inline image","newValue","markDeletion","ImageUploadEditing","ELEMENT_INLINE_IMAGE","find","_findSuggestions","FORMAT_IMAGE_SIZE","join","chain","removeObject","Inline image to block image","getClosestSelectedImageElement","format","isBefore","document","formatInline","registerAttributeLabel","markInsertion","nodeAfter","getContainedElement","imageTypeInline","getFirstRange","ELEMENT_CAPTION","commandParams","selection","forward","schema","toggleImageCaption","isCollapsed","resizedWidth","ELEMENT_IMAGE","addObject","_descriptionFactory","imageTypeBlock","width","registerCustomCallback","imageCaption","imageTextAlternative","registerElementLabel","ImageResize","createRangeOn","enableCommand","_suggestionFactory","insertImage","caption","fromPosition","ImageCaptionUtils","end","plugins","insertion","change","_enableDefaultAttributesIntegration","convertInlineImageToBlock","detach","getNearestSelectionRange","markBlockFormat","ImageUtils","length","ImageInlineEditing","commandName","imageStylePreApply","locale","formatBlock","has","getSuggestionCallback","discard","accept","TrackChangesEditing","start","ImageTextAlternativeEditing"];var es,ns;es=ts,ns=332,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{afterInit(){const t=this.editor;if(!t[os("0x16")].has(os("0x37")))return;const e=t.plugins[os("0x3f")](os("0x29")),n=t[os("0x16")][os("0x3f")](os("0x1e")),o=t[os("0x23")];e.enableCommand(os("0x11")),e[os("0x6")][os("0xc")]("imageBlock",(t=>Qo(o,os("0x4"),t))),e._descriptionFactory.registerElementLabel("imageInline",(t=>Qo(o,os("0x47"),t))),e._descriptionFactory[os("0xc")](os("0x12"),(()=>Qo(o,os("0x5a")))),t[os("0x16")][os("0x25")](os("0x46"))&&e[os("0xf")](os("0x42")),t[os("0x16")][os("0x25")]("ImageBlockEditing")&&t.plugins.has(os("0x20"))&&(e[os("0xf")](os("0x58"),((o,r)=>{const i=n[os("0x4f")](t[os("0x35")][os("0x52")].selection);t.model[os("0x18")]((()=>{e[os("0x1d")](i,{commandName:os("0x58"),commandParams:[r]},[],os("0x40"))}))})),e[os("0xf")](os("0x7"),((o,r)=>{t[os("0x35")][os("0x18")]((i=>{let x=n.getClosestSelectedImageElement(t[os("0x35")].document[os("0x5c")]),a=i[os("0xe")](x);const c=s.LivePosition[os("0x13")](a[os("0x2a")],os("0x39")),l=s.LivePosition[os("0x13")](a[os("0x15")],"toNext");e.forceDefaultExecution((()=>o(r))),x=n.getClosestSelectedImageElement(t[os("0x35")][os("0x52")][os("0x5c")]),a=i.createRangeOn(x);const u=i[os("0x2c")](c,l);c[os("0x1b")](),l[os("0x1b")](),e[os("0x1d")](x,{commandName:os("0x58"),commandParams:[r]},[],os("0x1a")),u.start.isBefore(a.start)&&e[os("0x55")](i[os("0x2c")](u[os("0x2a")],a.start),os("0x1a")),a[os("0x15")].isBefore(u[os("0x15")])&&e[os("0x55")](i[os("0x2c")](a[os("0x15")],u[os("0x15")]),os("0x1a"))}))})),e[os("0x10")].registerCustomCallback(os("0x24"),os("0x1a"),"join",(()=>!1)),e[os("0x10")][os("0x9")](os("0x24"),os("0x1a"),os("0x28"),(()=>!1)),e[os("0x10")][os("0x9")]("formatBlock",os("0x1a"),os("0x27"),e._suggestionFactory[os("0x26")](os("0x24"),"",os("0x28"))),e[os("0x10")][os("0x9")](os("0x17"),os("0x1a"),os("0x4b"),(()=>!1)),e[os("0x10")][os("0x9")](os("0x17"),os("0x1a"),os("0x27"),(([n])=>{const o=e._suggestionFactory.getSuggestionCallback(os("0x17"),"",os("0x27"));let r=n[os("0x2a")],i=n[os("0x15")];const s=t[os("0x35")][os("0x0")][os("0x1c")](r,"backward"),x=t[os("0x35")].schema.getNearestSelectionRange(i,os("0x5d"));s[os("0x2")]&&(r=s.start),x[os("0x2")]&&(i=x[os("0x15")]),o([t.model[os("0x2c")](r,i)])})),e[os("0x10")][os("0x9")](os("0x24"),os("0x1a"),os("0x4c"),x),e._suggestionFactory[os("0x9")]("insertion",os("0x1a"),os("0x4c"),x)),t.plugins[os("0x25")]("ImageCaptionEditing")&&(e[os("0xf")](os("0x1"),((o,r)=>{const i=t.plugins[os("0x3f")](os("0x14"));let s=n.getClosestSelectedImageElement(t[os("0x35")].document.selection),x=i.getCaptionFromImageModelElement(s);t[os("0x35")][os("0x18")]((()=>{if(x)return void e[os("0x45")](t[os("0x35")][os("0xe")](x));const a=n[os("0x2e")](s);o(r),s=n.getClosestSelectedImageElement(t[os("0x35")][os("0x52")].selection),x=i[os("0x3a")](s),e[os("0x55")](t.model.createRangeOn(x),a?null:os("0xa"))}))})),e[os("0x10")][os("0x9")](os("0x17"),"imageCaption",os("0x4c"),x));const r=[{type:os("0x24"),subType:os("0x22")},{type:os("0x17"),subType:os("0xa")},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:os("0x17"),subType:os("0x1a")}];function i(t,o){const i=r[os("0x41")]((({type:e,subType:n})=>t[os("0x38")]==e&&t[os("0x3e")]==n)),s=r[os("0x41")]((({type:t,subType:e})=>o[os("0x38")]==t&&o.subType==e));if(i<0||s<0)return!1;const x=t[os("0x59")](),a=o[os("0x59")]();if((0==i||1==i)&&2==s&&x[os("0x30")](a))return!0;if(2==i&&3==s){const t=e[os("0x49")](x,os("0x17")).filter((({suggestion:t,meta:e})=>e[os("0x3b")]&&os("0x1a")==t.subType));if(t[os("0x1f")]>1&&a[os("0x15")][os("0x3d")](x.start))return!0;if(1==t[os("0x1f")]&&(x[os("0x2a")][os("0x3d")](a[os("0x15")])||x.end[os("0x3d")](a[os("0x2a")])))return!0}if(3==i&&3==s&&x[os("0x2a")][os("0x51")](a.start)){const t=x[os("0x15")][os("0x56")],e=a[os("0x2a")].nodeBefore;return n[os("0x2e")](t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[os("0x16")][os("0x25")](os("0xd"))&&(e._enableDefaultAttributesIntegration("resizeImage",[],[os("0x3")]),e._descriptionFactory[os("0x54")](os("0x3"),Qo(o,os("0x4a")))),t[os("0x16")][os("0x25")](os("0x2b"))&&e[os("0x19")]("imageTextAlternative",[],["alt"]),e[os("0x6")][os("0x2d")]((t=>{if(r[os("0x48")]((({type:e,subType:n})=>t[os("0x38")]==e&&t[os("0x3e")]==n)))return t[os("0x2f")]?{}:void 0})),e._descriptionFactory.registerDescriptionCallback((t=>{if(os("0x17")==t[os("0x38")]||os("0x32")==t[os("0x38")]){const e=t[os("0x57")]();if(e&&e.is("element","caption"))return{type:os("0x17")==t.type?os("0x5"):os("0x4d"),element:e,quantity:1}}})),e[os("0x6")][os("0x2d")]((t=>os("0x24")==t[os("0x38")]&&os("0x1a")==t.subType?{type:os("0x50"),content:os("0x4e")}:os("0x24")==t[os("0x38")]&&os("0x40")==t[os("0x3e")]?{type:"format",content:os("0x43")}:void 0)),e[os("0x6")][os("0x2d")]((t=>{if("attribute"!=t[os("0x38")])return;const{data:e}=t;if(!e||os("0x33")!=e[os("0x3c")])return;const n=e[os("0x44")];return n?{type:os("0x50"),content:Qo(o,"*Set image text alternative:* %0",'"'+n+'"')}:{type:os("0x50"),content:Qo(o,"*Remove image text alternative*")}})),this[os("0x36")]()}[os("0x36")](){const t=this.editor,e=t[os("0x23")];t[os("0x16")].get(os("0x29"))._descriptionFactory[os("0x2d")]((t=>{if(os("0x24")!=t[os("0x38")]&&os("0x53")!=t[os("0x38")])return;const{data:n}=t;if(n){if(os("0xb")==n[os("0x21")]){const t=n.commandParams[0].newValue;return t?{type:os("0x50"),content:Qo(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:os("0x50"),content:Qo(e,os("0x31"))}}if("resizeImage"==n[os("0x21")]){const t=n[os("0x5b")][0][os("0x8")];return t?{type:os("0x50"),content:Qo(e,os("0x34"),t)}:{type:os("0x50"),content:Qo(e,"*Reset image width*")}}}}))}}const is=["formatBlock","format","*Format:* replace image URL","key","registerDescriptionCallback","_enableDefaultAttributesIntegration","src","_descriptionFactory","plugins","newValue","commandName","discard","*Replace image URL*","replaceImageSource","_suggestionFactory","editor","get","has","type","oldValue","formatInline","accept","_registerLegacyDescription","attribute","TrackChangesEditing","locale","registerCustomCallback","_handleLegacySuggestions","getSuggestionCallback"];var ss,xs;ss=is,xs=121,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{afterInit(){if(!this[as("0xa")][as("0x3")][as("0xc")]("ImageEditing"))return;const t=this[as("0xa")][as("0x14")],e=this[as("0xa")][as("0x3")][as("0xb")](as("0x13"));e[as("0x0")]("replaceImageSource",[],[as("0x1")]),e._descriptionFactory[as("0x1c")]((e=>{if(as("0x12")!=e[as("0xd")])return;const{data:n}=e;return n&&as("0x1")==n[as("0x1b")]?n[as("0x4")]&&n[as("0xe")]?{type:as("0x19"),content:Qo(t,as("0x7"))}:{type:as("0x19"),content:""}:void 0})),this[as("0x16")]()}[as("0x16")](){const t=this[as("0xa")][as("0x3")].get(as("0x13"));t[as("0x9")][as("0x15")](as("0x18"),as("0x8"),as("0x10"),t[as("0x9")].getSuggestionCallback(as("0x18"),null,"discard")),t._suggestionFactory[as("0x15")](as("0x18"),as("0x8"),as("0x6"),t[as("0x9")][as("0x17")]("formatBlock",null,"accept")),this._registerLegacyDescription()}[as("0x11")](){const t=this.editor,e=t[as("0x14")];t[as("0x3")].get("TrackChangesEditing")[as("0x2")][as("0x1c")]((t=>{if("formatBlock"!=t[as("0xd")]&&as("0xf")!=t[as("0xd")])return;const{data:n}=t;return n&&as("0x8")==n[as("0x5")]?{type:as("0x19"),content:Qo(e,as("0x1a"))}:void 0}))}}const ls=["subType","ImageStyleEditing","suggestion","isBefore","plugins","_descriptionFactory","getSuggestion","hasSuggestion","locale","type","name","get","TrackChangesEditing","document","isInlineImage","formatBlock","*Format:* %0","isIntersecting","getClosestSelectedImageElement","title","has","commandParams","chain","normalizedStyles","forEach","Users","editor","registerPostFixer","getSuggestionCallback","commandReversedParams","_findSuggestions","getContainedElement","isBlockImage","registerCustomCallback","isEqual","imageTypeInline","findIndex","change","from","_suggestionFactory","format","filter","imageStyle","isOwn","registerDescriptionCallback","_registerLegacyDescription","markInlineFormat","commandName","getFirstRange","getChangedMarkers","imageStylePostApply","imageCaption","FORMAT_SIDE_IMAGE","next","differ","isInContent","value","model","end","commands","getSuggestions","convertInlineImageToBlock","toLowerCase","start","_splitMarkerName","discard","createRangeOn","nodeAfter","length","formatInline","refresh","shouldConvertImageType","imageTypeBlock","accept","join","afterInit","discardSuggestion","setImageNaturalSizeAttributes","side","newRange","insertion","author","ImageUtils","imageStylePreApply","selection"];var us,ds;us=ls,ds=143,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x11")](){const t=this[gs("0x35")];if(!t[gs("0x1f")][gs("0x2f")](gs("0x1c")))return;const n=t[gs("0x1f")].get(gs("0x27")),o=t[gs("0x1f")][gs("0x26")](gs("0x18")),r={};n.enableCommand(gs("0x45"),((r,i)=>{const s=t.plugins[gs("0x26")](gs("0x34")).me,x=t[gs("0x1")][gs("0x26")](gs("0x45"));let a=o.getClosestSelectedImageElement(t[gs("0x54")][gs("0x28")][gs("0x1a")]),c=t[gs("0x54")][gs("0x8")](a),l=x[gs("0x53")];if(l==i.value)return;const u={commandName:"imageStyle",commandParams:[i],formatGroupId:(0,e.uid)()};t[gs("0x54")][gs("0x40")]((()=>{if(n[gs("0x2")]().filter((t=>t[gs("0x52")]&&s==t[gs("0x17")]&&(gs("0x2a")==t[gs("0x24")]||gs("0xb")==t[gs("0x24")])&&(gs("0x19")==t[gs("0x1b")]||gs("0x4d")==t[gs("0x1b")])&&t[gs("0x4b")]().isEqual(c)))[gs("0x33")]((t=>n[gs("0x12")](t.head))),a=o[gs("0x2d")](t[gs("0x54")][gs("0x28")][gs("0x1a")]),c=t[gs("0x54")][gs("0x8")](a),x[gs("0xc")](),t[gs("0x1")].get(gs("0x3e")).refresh(),t.commands[gs("0x26")](gs("0xe"))[gs("0xc")](),l=x[gs("0x53")],l!=i[gs("0x53")])return o[gs("0x29")](a)&&x[gs("0xd")](i[gs("0x53")],a)?(r({...i,setImageSizes:!1}),a=o.getClosestSelectedImageElement(t.model.document.selection),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x19"))):void(o[gs("0x3b")](a)?n.markBlockFormat(a,u,[],gs("0x4d")):n[gs("0x49")](c,u,gs("0x4d")))}))}));for(const e of t[gs("0x1f")][gs("0x26")](gs("0x1c"))[gs("0x32")])r[e[gs("0x25")]]=e[gs("0x2e")][gs("0x4")]();n[gs("0x42")].registerCustomCallback(gs("0x2a"),gs("0x19"),"join",(()=>!1)),n[gs("0x42")][gs("0x3c")](gs("0x2a"),gs("0x4d"),"join",(()=>!1)),n._suggestionFactory.registerCustomCallback(gs("0xb"),"imageStylePostApply",gs("0x10"),(()=>!1)),n[gs("0x42")][gs("0x3c")](gs("0x2a"),gs("0x19"),gs("0xf"),(([t])=>{o[gs("0x13")](t[gs("0x3a")]())})),n[gs("0x42")][gs("0x3c")](gs("0x2a"),gs("0x19"),gs("0x7"),((t,e)=>{n[gs("0x42")][gs("0x37")](gs("0x2a"),"","accept")(t,{commandName:e[gs("0x4a")],commandParams:e[gs("0x38")]})})),n[gs("0x42")][gs("0x3c")]("formatBlock",gs("0x19"),gs("0x31"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:gs("0x2a"),subType:gs("0x19")},{type:gs("0x16"),subType:gs("0x4e")},{type:gs("0x2a"),subType:gs("0x3")},{type:gs("0x16"),subType:"convertInlineImageToBlock"}];function s(t,e){const r=i[gs("0x3f")]((({type:e,subType:n})=>t[gs("0x24")]==e&&t.subType==n)),s=i[gs("0x3f")]((({type:t,subType:n})=>e[gs("0x24")]==t&&e[gs("0x1b")]==n));if(r<0||s<0)return!1;const x=t[gs("0x4b")](),a=e[gs("0x4b")]();if((0==r||1==r)&&2==s&&x[gs("0x2c")](a))return!0;if(2==r&&3==s){const t=n[gs("0x39")](x,"insertion")[gs("0x44")]((({suggestion:t,meta:e})=>e[gs("0x46")]&&gs("0x3")==t[gs("0x1b")]));if(t[gs("0xa")]>1&&a[gs("0x0")].isEqual(x[gs("0x5")]))return!0;if(1==t[gs("0xa")]&&(x[gs("0x5")][gs("0x3d")](a[gs("0x0")])||x.end.isEqual(a.start)))return!0}if(3==r&&3==s&&x[gs("0x5")][gs("0x1e")](a[gs("0x5")])){const t=x[gs("0x0")][gs("0x9")],e=a[gs("0x5")].nodeBefore;return o[gs("0x3b")](t)&&t===e}return!1}t[gs("0x54")][gs("0x28")][gs("0x36")]((()=>{let e=!1;const r=Array[gs("0x41")](t.model[gs("0x28")][gs("0x51")][gs("0x4c")]());for(const{name:t,data:i}of r){const{group:r,type:s,subType:x,id:a}=n[gs("0x6")](t);if(gs("0x1d")==r&&n[gs("0x22")](a)){if(gs("0x2a")==s&&(gs("0x19")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(i.newRange){const r=t[gs("0x4b")]()[gs("0x3a")]();if(o[gs("0x3b")](r))continue;n[gs("0x12")](t),e=!0}}if(gs("0x16")==s&&gs("0x4e")==x&&!i[gs("0x15")]){const t=n[gs("0x21")](a);t[gs("0x50")]&&t[gs("0x50")].isInContent&&(n.discardSuggestion(t.next),e=!0)}}}return e})),this[gs("0x48")](r)}[gs("0x48")](t){const e=this.editor,n=e[gs("0x23")];e[gs("0x1f")][gs("0x26")](gs("0x27"))[gs("0x20")][gs("0x47")]((e=>{if(gs("0x2a")!=e.type&&gs("0xb")!=e[gs("0x24")])return;const{data:o}=e;if(!o||gs("0x45")!=o.commandName)return;const r=o[gs("0x30")][0][gs("0x53")];return i=gs("0x14")===r?Qo(n,gs("0x4f")):t[r]||r,{type:gs("0x43"),content:Qo(n,gs("0x2b"),i)};var i}))}}const ms=["dataInsert","_trackChangesValueDuringImport","forEach","_trackChangesExecuted","value","importWord","get","execute","_handleImportedData","lowest","collaboration_features","commands","editor","TrackChangesEditing","plugins","listenTo","trackChanges","track_changes"];var hs,bs;hs=ms,bs=319,function(t){for(;--t;)hs.push(hs.shift())}(++bs);const ps=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[ps("0x6")]=!1,this[ps("0x8")]=!1}afterInit(){const t=this[ps("0x11")],e=t.commands[ps("0xb")](ps("0xa")),n=t[ps("0x10")].get(ps("0x3"));e&&(e.on(ps("0xc"),((t,[,e])=>{this[ps("0x6")]=n[ps("0x9")],e[ps("0xf")][ps("0x4")]=!this[ps("0x6")]}),{priority:"high"}),this[ps("0x2")](e,ps("0x5"),this[ps("0xd")].bind(this)),this[ps("0x2")](e,ps("0x5"),(()=>{this[ps("0x8")]&&(n[ps("0xc")](),this[ps("0x8")]=!1)}),{priority:ps("0xe")}),t[ps("0x1")][ps("0xb")](ps("0x0")).enableCommand(ps("0xa")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this.editor.commands[ps("0xb")](ps("0x3")),r=o[ps("0x9")];this[ps("0x6")]!==r&&(o.execute(),this._trackChangesExecuted=!0),n&&n[ps("0x7")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[ps("0x11")][ps("0x1")][ps("0xb")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ps("0xa")}}};this[ps("0x11")][ps("0x1")][ps("0xb")](ps("0x0"))._setSuggestionData(r)}))}}const _s=["outdentBlock","type","afterInit","registerAttributeLabel","indentBlock","editor","IndentEditing","plugins","blockIndent","registerDescriptionCallback","get","commandName","getItemLabel","outdent","FORMAT_INDENT","_descriptionFactory","format","_registerLegacyDescription","TrackChangesEditing","*Outdent:* %0","_enableDefaultAttributesIntegration","enableCommand","locale","has","IndentBlock","getItems"];var Ts,ys;Ts=_s,ys=452,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x12")](){const t=this[Cs("0x15")],e=t[Cs("0x17")][Cs("0x0")](Cs("0x8"));if(t[Cs("0x17")][Cs("0xd")](Cs("0x16"))&&(e.enableCommand("indent"),e[Cs("0xb")](Cs("0x3"))),t[Cs("0x17")][Cs("0xd")](Cs("0xe")))for(const t of[Cs("0x14"),Cs("0x10")])e[Cs("0xa")](t);const n=t[Cs("0xc")];e._registerBlockAttribute("blockIndent"),e[Cs("0x5")][Cs("0x13")](Cs("0x18"),Qo(n,Cs("0x4"))),this[Cs("0x7")]()}[Cs("0x7")](){const t=this[Cs("0x15")],e=t[Cs("0xc")],n=t[Cs("0x17")][Cs("0x0")]("TrackChangesEditing");n[Cs("0x5")][Cs("0x19")]((t=>{if("formatBlock"!=t[Cs("0x11")])return;const{data:o}=t;if(!o)return;if("indentBlock"!=o[Cs("0x1")]&&Cs("0x10")!=o[Cs("0x1")])return;const r=t[Cs("0xf")]()[0],i=n[Cs("0x5")][Cs("0x2")](r);return Cs("0x14")==o.commandName?{type:Cs("0x6"),content:Qo(e,"*Indent:* %0",i)}:Cs("0x10")==o[Cs("0x1")]?{type:Cs("0x6"),content:Qo(e,Cs("0x9"),i)}:void 0}))}}var ks,Ss,Rs=["init","plugins","get","input","TrackChangesEditing","editor"];ks=Rs,Ss=445,function(t){for(;--t;)ks.push(ks.shift())}(++Ss);var Is=function(t,e){return Rs[t-=0]};class vs extends t.Plugin{static get requires(){return[Vr.Input]}[Is("0x5")](){this[Is("0x4")][Is("0x0")][Is("0x1")](Is("0x3")).enableCommand(Is("0x2"))}}const Ns=["*Remove link*","registerDescriptionCallback","key","TrackChangesEditing","commandParams","attribute","link (","formatInline","toLowerCase","*Set link:* %0","commands","link","has","commandName","_descriptionFactory","get","type","editor","map","plugins","unlink","linkHref","format"];var Ls,Ms;Ls=Ns,Ms=435,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{afterInit(){const t=this[ws("0x13")];if(!t[ws("0x15")][ws("0xe")]("LinkEditing"))return;const e=t[ws("0x15")][ws("0x11")](ws("0x5")),n=t[ws("0xc")].get(ws("0xd"));e._enableDefaultAttributesIntegration(ws("0xd"),[ws("0x0"),...n.manualDecorators[ws("0x14")]((t=>t.id))]),e._enableDefaultAttributesIntegration(ws("0x16"));for(const t of n.manualDecorators)e._descriptionFactory.registerAttributeLabel(t.id,ws("0x8")+t.label[ws("0xa")]()+")");e[ws("0x10")][ws("0x3")]((e=>{if(ws("0x7")!=e.type)return;const{data:n}=e;if(!n||ws("0x0")!=n[ws("0x4")])return;const o=n.newValue,r=t.locale;return{type:ws("0x1"),content:null==o?Qo(r,ws("0x2")):Qo(r,ws("0xb"),'"'+o+'"')}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ws("0x13")],e=t.locale;t[ws("0x15")].get(ws("0x5"))._descriptionFactory[ws("0x3")]((t=>{if(ws("0x9")!=t[ws("0x12")])return;const{data:n}=t;if(n){if(ws("0xd")==n[ws("0xf")]){const t=n[ws("0x6")][0];return{type:ws("0x1"),content:Qo(e,ws("0xb"),'"'+t+'"')}}return ws("0x16")==n.commandName?{type:"format",content:Qo(e,"*Remove link*")}:void 0}}))}}const Fs=["end","_descriptionFactory","outdentList","formatInline","markBlockFormat","value","enableCommand","ELEMENT_NUMBERED_LIST","TrackChangesEditing","listItem","commandName","numberedList","selection","listIndent","ELEMENT_LIST_ITEM","nextSibling","listType","element","name","push","indentList","get","length","paragraph","change","filter","commands","format","*Check item*","replace","add","List","checkTodoList","bulletedList","slice","registerDescriptionCallback","bulleted","getSelectedBlocks","before","schema","TodoListEditing","blockName","createPositionAt","todoList","model","has","commandParams","findIndex","*Change to:* %0","ListEditing","type","execute","getAttribute","isObject","*Indent:* %0","document","*Uncheck item*","from","checkChild","formatBlock","plugins","previousSibling","registerElementLabel"];var Ds,Bs;Ds=Fs,Bs=381,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{afterInit(){const t=this.editor,e=t.locale;if(!t.plugins[Ps("0x2a")](Ps("0x2e")))return;const n=t[Ps("0x39")].get(Ps("0x5")),o=t[Ps("0x39")][Ps("0x2a")](Ps("0x25"));function r(e){return()=>{const o=t[Ps("0x29")][Ps("0x34")][Ps("0x9")],r=t[Ps("0x17")][Ps("0x12")](e);if(r[Ps("0x2")])return void t[Ps("0x30")](Ps("0x14"),{});const i=e[Ps("0x1f")](0,-4),s=function(t,e,n){let o=Array[Ps("0x36")](t)[Ps("0x16")]((t=>{return e=t,(o=n)[Ps("0x37")](e.parent,Ps("0x6"))&&!o[Ps("0x32")](e);var e,o}));o=o.filter((t=>!t.is(Ps("0xe"),Ps("0x6"))||t[Ps("0x31")](Ps("0xd"))!=e));const r=new Set;for(const t of o)t.is(Ps("0xe"),Ps("0x6"))?r[Ps("0x1b")](js(t)):r.add(t);return Array.from(r)}(o[Ps("0x22")](),i,t[Ps("0x29")][Ps("0x24")]);t[Ps("0x29")][Ps("0x15")]((()=>{for(const t of s)n[Ps("0x1")](t,{commandName:e,commandParams:[{forceValue:!r[Ps("0x2")]}],formatGroupId:Ps("0x26")},Gs(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Ps("0x36")](t);const n=e[Ps("0x2c")]((t=>Ps("0x6")!=t[Ps("0xf")]));return n>-1&&(e=e[Ps("0x1f")](0,n)),e}(t[Ps("0x29")].document[Ps("0x9")][Ps("0x22")]()),r=t[Ps("0x29")].createRange(t[Ps("0x29")][Ps("0x27")](o[0],Ps("0x23")),t.model.createPositionAt(o[o[Ps("0x13")]-1],Ps("0x3c")));t[Ps("0x29")][Ps("0x15")]((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:Ps("0xa")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t.getAttribute(Ps("0xa"))>n.getAttribute(Ps("0xa"));)e.add(t),t=t[Ps("0xc")]}return Array[Ps("0x36")](e)}(o))}))}}n.enableCommand(Ps("0x8"),r(Ps("0x8"))),n.enableCommand(Ps("0x1e"),r(Ps("0x1e"))),o&&n[Ps("0x3")]("todoList",r(Ps("0x28"))),n[Ps("0x3")]("indentList",i(Ps("0x11"))),n[Ps("0x3")](Ps("0x3e"),i(Ps("0x3e"))),o&&n.enableCommand(Ps("0x1d"),(()=>{const e=t[Ps("0x17")][Ps("0x12")]("checkTodoList"),o=Array[Ps("0x36")](e._selectedElements);o.filter((t=>t.getAttribute("todoListChecked")!=e.value)),t[Ps("0x29")][Ps("0x15")]((()=>{for(const t of o)n[Ps("0x1")](t,{commandName:Ps("0x1d"),commandParams:[{forceValue:!e[Ps("0x2")]}]})}))})),n[Ps("0x3d")][Ps("0x3b")](Ps("0x6"),(t=>Qo(e,Ps("0xb"),t))),n._descriptionFactory[Ps("0x20")]((t=>{if(Ps("0x38")!=t[Ps("0x2f")]&&Ps("0x0")!=t[Ps("0x2f")])return;const{data:n}=t;if(n){if("numberedList"==n[Ps("0x7")]||Ps("0x1e")==n[Ps("0x7")]||Ps("0x28")==n.commandName)switch(n[Ps("0x7")][Ps("0x1a")](Ps("0x1c"),"")){case Ps("0x21"):return o(Qo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Qo(e,Ps("0x4")));case"todo":return o(Qo(e,"ELEMENT_TODO_LIST"))}if(Ps("0x11")==n[Ps("0x7")])return{type:Ps("0x18"),content:Qo(e,Ps("0x33"),Qo(e,Ps("0xb")))};if("outdentList"==n[Ps("0x7")])return{type:Ps("0x18"),content:Qo(e,"*Outdent:* %0",Qo(e,Ps("0xb")))};if(Ps("0x1d")==n[Ps("0x7")])return n[Ps("0x2b")][0].forceValue?{type:"format",content:Qo(e,Ps("0x19"))}:{type:Ps("0x18"),content:Qo(e,Ps("0x35"))}}function o(t){return{type:Ps("0x18"),content:Qo(e,Ps("0x2d"),t)}}}))}}function js(t){const e=t.getAttribute(Ps("0xa"));if(0==e)return t;let n=t;for(;t[Ps("0x3a")]&&t[Ps("0x3a")].is(Ps("0xe"),Ps("0x6"));){const o=t[Ps("0x3a")].getAttribute(Ps("0xa"));if(o==e)n=t[Ps("0x3a")];else if(o<e)break;t=t[Ps("0x3a")]}return n}function Gs(t){const e=[];if(t.is(Ps("0xe"),Ps("0x6"))&&t[Ps("0x31")](Ps("0xa"))>0){let n=t.nextSibling;for(;n&&Ps("0x6")==n[Ps("0xf")]&&n[Ps("0x31")](Ps("0xa"))==t[Ps("0x31")](Ps("0xa"));)e[Ps("0x10")](n),n=n.nextSibling}return e}const Hs=["plugins","selection","filter","locale","createPositionAt","unshift","listReversed","_LIST_","ListPropertiesEditing","enableCommand","listType","flat","type","getSiblingNodes","handleListStyleCommand","*Format:* set order to regular","list.properties","commandName","listItem","document","map","_descriptionFactory","change","format","_getSuggestionBlocksForListStyle","createRange","TrackChangesEditing","styles","commandParams","handleDescriptions","has","bind","getListTypeFromListStyleType","formatBlock","registerDescriptionCallback","before","forward","*Change to:* %0","listStyle","getSelectedBlocks","markMultiRangeBlockFormat","get","ELEMENT_","ListUtils","listStart","element","length","_getSuggestionBlocks","from","editor","backward","startIndex","handleListReversedCommand","getFirstPosition","toUpperCase","model","*Format:* set order to reversed","reversed"];var Vs,zs;Vs=Hs,zs=371,function(t){for(;--t;)Vs.push(Vs.shift())}(++zs);const Ws=function(t,e){return Hs[t-=0]};class Ks extends t.Plugin{afterInit(){if(!this.editor[Ws("0x23")][Ws("0x7")](Ws("0x2b")))return;const t=this[Ws("0x1a")].config[Ws("0x12")](Ws("0x33")),e=this[Ws("0x1a")][Ws("0x23")].get(Ws("0x3"));t[Ws("0x4")]&&e[Ws("0x2c")](Ws("0xf"),this.handleListStyleCommand[Ws("0x8")](this)),t[Ws("0x22")]&&e[Ws("0x2c")]("listReversed",this[Ws("0x1d")][Ws("0x8")](this)),t.startIndex&&e[Ws("0x2c")](Ws("0x15"),this.handleListStartCommand[Ws("0x8")](this)),e[Ws("0x38")][Ws("0xb")](this.handleDescriptions[Ws("0x8")](this))}[Ws("0x31")](t,e={}){const n=this[Ws("0x1a")][Ws("0x23")][Ws("0x12")]("TrackChangesEditing"),o=this[Ws("0x1")]();this[Ws("0x1a")].model[Ws("0x39")]((()=>{n[Ws("0x11")](o,{commandName:Ws("0xf"),commandParams:[{type:e[Ws("0x2f")]}],formatGroupId:"listStyle"})}))}[Ws("0x1d")](t,e={}){const n=this[Ws("0x1a")][Ws("0x23")][Ws("0x12")](Ws("0x3")),o=this[Ws("0x18")]((t=>t.is(Ws("0x16"),Ws("0x35"))&&"numbered"===t.getAttribute(Ws("0x2d"))));if(o[Ws("0x17")]<1)return;const r=o.map((t=>this[Ws("0x1a")][Ws("0x20")][Ws("0x2")](this[Ws("0x1a")][Ws("0x20")][Ws("0x27")](t,Ws("0xc")),this[Ws("0x1a")][Ws("0x20")][Ws("0x27")](t,0))));this[Ws("0x1a")][Ws("0x20")][Ws("0x39")]((()=>{n[Ws("0x11")](r,{commandName:Ws("0x29"),commandParams:[{reversed:e[Ws("0x22")]}],formatGroupId:Ws("0x29")})}))}handleListStartCommand(t,e={}){const n=this[Ws("0x1a")][Ws("0x23")][Ws("0x12")](Ws("0x3")),o=this[Ws("0x18")]((t=>t.is(Ws("0x16"),Ws("0x35"))&&"numbered"===t.getAttribute("listType")));if(o[Ws("0x17")]<1)return;const r=o[Ws("0x37")]((t=>this[Ws("0x1a")][Ws("0x20")][Ws("0x2")](this[Ws("0x1a")].model[Ws("0x27")](t,"before"),this.editor.model[Ws("0x27")](t,0))));this.editor.model.change((()=>{n.markMultiRangeBlockFormat(r,{commandName:Ws("0x15"),commandParams:[{startIndex:e[Ws("0x1c")]}],formatGroupId:Ws("0x15")})}))}[Ws("0x6")](t){if(Ws("0xa")!=t.type&&"formatInline"!=t[Ws("0x2f")])return;const e=this[Ws("0x1a")][Ws("0x26")],{data:n}=t;if(!n)return;let o,r;switch(n[Ws("0x34")]){case"listStyle":o=Ws("0xe"),r={type:Ws("0x0"),content:Qo(e,o,Qo(e,this._getTranslationKeyForListStyle(n[Ws("0x5")][0][Ws("0x2f")])))};break;case Ws("0x29"):o=n[Ws("0x5")][0].reversed?Ws("0x21"):Ws("0x32"),r={type:Ws("0x0"),content:Qo(e,o)};break;case Ws("0x15"):o="*Format:* set start index to %0",r={type:"format",content:Qo(e,o,n.commandParams[0].startIndex)}}return r}_getSuggestionBlocksForListStyle(){var t,e,n,o;const r=this[Ws("0x1a")][Ws("0x23")][Ws("0x12")]("ListUtils");let i=Array[Ws("0x19")](this[Ws("0x1a")][Ws("0x20")].document[Ws("0x24")][Ws("0x10")]());return(null===(t=i[0])||void 0===t?void 0:t.is(Ws("0x16"),Ws("0x35")))&&i[Ws("0x28")](...r.getSiblingNodes(this[Ws("0x1a")][Ws("0x20")][Ws("0x36")][Ws("0x24")][Ws("0x1e")](),"backward")),(null===(e=i[i[Ws("0x17")]-1])||void 0===e?void 0:e.is(Ws("0x16"),Ws("0x35")))&&i.push(...r[Ws("0x30")](this[Ws("0x1a")][Ws("0x20")][Ws("0x36")][Ws("0x24")].getLastPosition(),Ws("0xd"))),i=[...new Set(i)],(null===(o=null===(n=this[Ws("0x1a")][Ws("0x20")][Ws("0x36")][Ws("0x24")][Ws("0x1e")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Ws("0x16"),Ws("0x35")))&&(i=i[Ws("0x25")]((t=>t.is(Ws("0x16"),Ws("0x35"))))),i}[Ws("0x18")](t){const e=this[Ws("0x1a")][Ws("0x23")][Ws("0x12")](Ws("0x14"));let n=Array[Ws("0x19")](this[Ws("0x1a")][Ws("0x20")][Ws("0x36")][Ws("0x24")][Ws("0x10")]())[Ws("0x25")](t)[Ws("0x37")]((t=>{const n=this[Ws("0x1a")][Ws("0x20")][Ws("0x27")](t,0);return[...e[Ws("0x30")](n,Ws("0x1b")),...e[Ws("0x30")](n,Ws("0xd"))]}))[Ws("0x2e")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Ws("0x13")+this[Ws("0x1a")][Ws("0x23")][Ws("0x12")](Ws("0x14"))[Ws("0x9")](t)[Ws("0x1f")]()+Ws("0x2a")+t[Ws("0x1f")]().replace(/-/g,"_")}}const qs=["afterInit","locale","media","div","createEmptyElement","elementToElement","stop","options","mediaEmbed","dataDowncast","TrackChangesEditing","has","plugins","showSuggestionHighlights","get","ELEMENT_MEDIA","high","_descriptionFactory","MediaEmbedEditing","attribute:url:media","data"];var Xs,$s;Xs=qs,$s=325,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0xb")](){const t=this.editor;if(!t[Zs("0x2")][Zs("0x1")](Zs("0x8")))return;const e=t[Zs("0x2")][Zs("0x4")](Zs("0x0")),n=t[Zs("0xc")];e.enableCommand(Zs("0x13")),e[Zs("0x7")].registerElementLabel(Zs("0xd"),(t=>Qo(n,Zs("0x5"),t))),t.conversion.for(Zs("0x14"))[Zs("0x10")]({model:Zs("0xd"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x3")])return e[Zs("0xf")](Zs("0xe"))},converterPriority:Zs("0x6")}),t[Zs("0xa")].downcastDispatcher.on(Zs("0x9"),((t,e,n)=>{n[Zs("0x12")][Zs("0x3")]&&t[Zs("0x11")]()}),{priority:Zs("0x6")})}}const Js=["get","TrackChangesEditing","plugins","afterInit","enableCommand","MentionEditing","mention"];var Qs,tx;Qs=Js,tx=407,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x2")](){const t=this.editor;t[ex("0x1")].has(ex("0x4"))&&t[ex("0x1")][ex("0x6")](ex("0x0"))[ex("0x3")](ex("0x5"))}}const ox=["enableCommand","get","plugins","TrackChangesEditing","editor","locale","pageBreak","PageBreakEditing","afterInit","ELEMENT_PAGE_BREAK","_descriptionFactory","has"];var rx,ix;rx=ox,ix=124,function(t){for(;--t;)rx.push(rx.shift())}(++ix);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x4")](){const t=this[sx("0x0")];if(!t[sx("0xa")][sx("0x7")](sx("0x3")))return;t.plugins[sx("0x9")](sx("0xb"))[sx("0x8")](sx("0x2"));const e=t[sx("0xa")].get(sx("0xb")),n=t[sx("0x1")];e[sx("0x6")].registerElementLabel(sx("0x2"),(t=>Qo(n,sx("0x5"),t)))}}const ax=["*Insert:* %0","paragraph","consumable","getFirstRange","ck-suggestion-marker--active","checkChild","plugins","start","isLimit","editor","insert","model","ck-suggestion-marker-split","schema","name","markerName","addClass","type","locale","afterInit","showSuggestionHighlights","nodeAfter","data","writer","isBlock","*Change to:* %0","mapper","insertion","format","markerRange","isTouching","editing","consume","get","addMarker:suggestion:insertion","_registerLegacyDescription","commandName","downcastDispatcher","includes","_enableDefaultAttributesIntegration","has","registerDescriptionCallback","insertParagraph","_descriptionFactory","getItemLabel","TrackChangesEditing","$text"];var cx,lx;cx=ax,lx=213,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x29")](){const t=this[ux("0x1f")];if(!t.plugins[ux("0xf")]("Paragraph"))return;const e=t.locale,n=t[ux("0x1c")][ux("0x8")](ux("0x14"));n[ux("0x12")].registerElementLabel("paragraph",(t=>Qo(e,"ELEMENT_PARAGRAPH",t))),n[ux("0xe")](ux("0x17")),n.enableCommand(ux("0x11")),t[ux("0x6")][ux("0xc")].on(ux("0x9"),gx(t),{priority:"highest"}),t[ux("0x2c")][ux("0xc")].on(ux("0x9"),((e,n,o)=>{o.options[ux("0x2a")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[ux("0x12")];o[ux("0x10")]((n=>{if("insertion"!==n[ux("0x27")])return;const{start:r,end:i}=n[ux("0x19")]();if(!r[ux("0x5")](i)||!r[ux("0x2b")])return;const s=t[ux("0x21")][ux("0x23")],x=r[ux("0x2b")];return s[ux("0x2e")](x)&&!s[ux("0x1e")](x)&&s[ux("0x1b")](x,ux("0x15"))?{type:ux("0x2"),content:Qo(e,ux("0x16"),o[ux("0x13")](x,1))}:void 0})),this[ux("0xa")]()}[ux("0xa")](){const t=this[ux("0x1f")],e=t[ux("0x28")];t[ux("0x1c")][ux("0x8")]("TrackChangesEditing")._descriptionFactory[ux("0x10")]((t=>{if("formatBlock"!=t[ux("0x27")])return;const{data:n}=t;return n&&ux("0x17")==n[ux("0xb")]?{type:ux("0x3"),content:Qo(e,ux("0x0"),Qo(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[ux("0x1c")][ux("0x8")](ux("0x14")),s=o[ux("0x4")][ux("0x1d")],x=o[ux("0x4")].end,a=t.model[ux("0x23")];if(!s[ux("0x5")](x)||!s.nodeAfter)return;const c=s[ux("0x2b")];if(a[ux("0x2e")](c)&&!a[ux("0x1e")](c)&&a[ux("0x1b")](c,ux("0x15"))){if(!r[ux("0x18")][ux("0x7")](o[ux("0x4")],n[ux("0x24")]))return;const t=r[ux("0x2d")].createUIElement("span",{class:ux("0x22")}),s=r.mapper.toViewPosition(x);e&&i.activeMarkers[ux("0xd")](o[ux("0x25")])&&r[ux("0x2d")][ux("0x26")](ux("0x1a"),t),r[ux("0x2d")][ux("0x20")](s,t),r[ux("0x1")].bindElementToMarker(t,o[ux("0x25")])}}}const fx=["_descriptionFactory","TrackChangesEditing","plugins","locale","formatBlock","registerDescriptionCallback","removeFormat","_registerLegacyDescription","afterInit","has","commandName","editor","type","get"];var mx,hx;mx=fx,hx=246,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const bx=function(t,e){return fx[t-=0]};class px extends t.Plugin{[bx("0x0")](){const t=this.editor;t[bx("0x8")][bx("0x1")]("RemoveFormatEditing")&&(t[bx("0x8")][bx("0x5")](bx("0x7"))._enableDefaultAttributesIntegration(bx("0xc")),this[bx("0xd")]())}[bx("0xd")](){const t=this[bx("0x3")];t.plugins.get(bx("0x7"))[bx("0x6")][bx("0xb")]((e=>{if(bx("0xa")!=e.type&&"formatInline"!=e[bx("0x4")])return;const{data:n}=e;return n&&"removeFormat"==n[bx("0x2")]?{type:"format",content:Qo(t[bx("0x9")],"*Remove all formatting*")}:void 0}))}}const Ex=["enableCommand","get","plugins","acceptSuggestion","acceptAllSuggestions","acceptSelectedSuggestions","goToPreviousRestrictedEditingException","TrackChangesEditing","discardAllSuggestions","discardSuggestion","has","RestrictedEditingModeEditing","editor","afterInit"];var _x,Tx;_x=Ex,Tx=254,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0xb")](){const t=this[yx("0xa")];if(!t[yx("0x0")][yx("0x8")](yx("0x9")))return;const e=t.plugins[yx("0xd")](yx("0x5"));e[yx("0xc")](yx("0x4")),e.enableCommand("goToNextRestrictedEditingException");const n=t.plugins[yx("0xd")](yx("0x9"));n[yx("0xc")]("trackChanges"),n[yx("0xc")](yx("0x1")),n[yx("0xc")](yx("0x7")),n[yx("0xc")](yx("0x2")),n.enableCommand(yx("0x6")),n[yx("0xc")](yx("0x3")),n[yx("0xc")]("discardSelectedSuggestions")}}const Ax=["editing","split","name","test","high","insert","getItems","shiftEnter","downcastDispatcher","writer","mapper","ELEMENT_LINE_BREAK","requires","TrackChangesEditing","deletion","init","_descriptionFactory","ck-suggestion-marker--active","createPositionBefore","activeMarkers","softBreak","showSuggestionHighlights","includes","addClass","addMarker:suggestion:insertion","editor","options","addMarker:suggestion:deletion","ck-suggestion-marker-","markerName","toViewPosition","bindElementToMarker","model"];var kx,Sx;kx=Ax,Sx=483,function(t){for(;--t;)kx.push(kx.shift())}(++Sx);const Rx=function(t,e){return Ax[t-=0]};class Ix extends t.Plugin{static get[Rx("0x18")](){return[ui.ShiftEnter]}[Rx("0x1b")](){const t=this[Rx("0x4")],e=t.plugins.get(Rx("0x19"));e.enableCommand(Rx("0x13")),t[Rx("0xc")][Rx("0x14")].on(Rx("0x3"),vx(t),{priority:Rx("0x10")}),t[Rx("0xc")][Rx("0x14")].on(Rx("0x6"),vx(t),{priority:"high"}),t.data[Rx("0x14")].on("addMarker:suggestion",((e,n,o)=>{o[Rx("0x5")][Rx("0x0")]&&vx(t,{showActiveMarker:!1})(e,n,o)})),e[Rx("0x1c")].registerElementLabel(Rx("0x20"),(e=>Qo(t.locale,Rx("0x17"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t.plugins.get(Rx("0x19"));if(!r.consumable[Rx("0xf")](o.markerRange,n[Rx("0xe")]))return;const s=t[Rx("0xb")];for(const t of o.markerRange[Rx("0x12")]()){if(!t.is("element","softBreak"))continue;const n=Rx("0x1a")==o[Rx("0x8")][Rx("0xd")](":")[1]?"merge":Rx("0xd"),x=r[Rx("0x15")].createUIElement("span",{class:Rx("0x7")+n}),a=r[Rx("0x16")][Rx("0x9")](s[Rx("0x1e")](t));e&&i[Rx("0x1f")][Rx("0x1")](o.markerName)&&r.writer[Rx("0x2")](Rx("0x1d"),x),r[Rx("0x15")][Rx("0x11")](a,x),r.mapper[Rx("0xa")](x,o[Rx("0x8")])}}}const Nx=["getRanges","document","isCollapsed","StandardEditingModeEditing","model","FORMAT_RESTRICTED_ENABLED","forceValue","registerDescriptionCallback","afterInit","commandParams","formatBlock","type","plugins","markInlineFormat","commands","commandName","editor","selection","enableCommand","change","restrictedEditingException","has","get","formatInline","locale"];var Lx,Mx;Lx=Nx,Mx=213,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0x14")](){const t=this[wx("0x3")],e=t[wx("0x10")],n=t[wx("0xb")];if(!t[wx("0x18")][wx("0x8")](wx("0xf")))return;const o=t[wx("0x18")][wx("0x9")]("TrackChangesEditing"),r=wx("0x7"),i=t[wx("0x1")][wx("0x9")](r);o[wx("0x5")](r,((t,n={})=>{const s=e[wx("0xd")][wx("0x4")];if(s[wx("0xe")])return void t(n);const x=void 0!==n[wx("0x12")]?n.forceValue:!i.value;e[wx("0x6")]((()=>{const t=Array.from(s[wx("0xc")]());for(const n of t){const t=x?[n]:Xr(r,n,e);for(const e of t)o[wx("0x0")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[wx("0x13")]((t=>{if(wx("0x16")!=t[wx("0x17")]&&wx("0xa")!=t[wx("0x17")])return;const{data:e}=t;return e&&e[wx("0x2")]==r?e[wx("0x15")][0][wx("0x12")]?{type:"format",content:Qo(n,wx("0x11"))}:{type:"format",content:Qo(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Fx=["definitions","StyleUtils","ghsAttributes","formatInline","add","normalizeConfig","_registerBlockAttribute","_descriptionFactory","config","has","Style","getGhsAttributeNameForElement","_registerInlineAttribute","inline","_enableDefaultAttributesIntegration","format","*Set format:* %0","afterInit","editor","type","registerAttributeLabel","block","_registerLegacyDescription","styleName","element","DataSchema","style","FORMAT_STYLE","TrackChangesEditing","locale","forceValue","commandParams","registerDescriptionCallback","plugins","get","toLowerCase"];var Dx,Bx;Dx=Fx,Bx=101,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x18")](){const t=this.editor;if(!t[Px("0x4")][Px("0x10")](Px("0x11"))||!t[Px("0x4")][Px("0x10")](Px("0x20")))return;const e=t[Px("0x4")][Px("0x5")](Px("0x23")),n=t[Px("0x0")],o=t[Px("0xf")].get(Px("0x21")),r=t[Px("0x4")][Px("0x5")]("GeneralHtmlSupport"),i=t[Px("0x4")][Px("0x5")](Px("0x8"))[Px("0xc")](t[Px("0x4")][Px("0x5")]("DataSchema"),o[Px("0x7")]);e[Px("0x15")]("style");const s=new Set;for(const t of i[Px("0x1c")]){const e=r[Px("0x12")](t[Px("0x1f")]);s[Px("0xb")](e)}const x=new Set;for(const t of i[Px("0x14")]){const e=r.getGhsAttributeNameForElement(t[Px("0x1f")]);x[Px("0xb")](e);for(const e of t[Px("0x9")])x[Px("0xb")](e)}for(const t of s)e[Px("0xd")](t),e[Px("0xe")].registerAttributeLabel(t,Qo(n,Px("0x22")));for(const t of x)e[Px("0x13")](t),e[Px("0xe")][Px("0x1b")](t,Qo(n,Px("0x22")));this[Px("0x1d")]()}[Px("0x1d")](){const t=this[Px("0x19")],e=t.locale;t[Px("0x4")][Px("0x5")](Px("0x23"))[Px("0xe")][Px("0x3")]((t=>{if("formatBlock"!=t[Px("0x1a")]&&Px("0xa")!=t[Px("0x1a")])return;const{data:n}=t;return n&&"style"===n.commandName?n[Px("0x2")][0][Px("0x1")]?{type:Px("0x16"),content:Qo(e,Px("0x17"),n[Px("0x2")][0][Px("0x1e")][Px("0x6")]())}:{type:Px("0x16"),content:Qo(e,"*Remove format:* %0",n[Px("0x2")][0][Px("0x1e")][Px("0x6")]())}:void 0}))}}const jx=["filter","insert","plugins","suggestion","element","tableRow","removeTableColumn","TrackChangesEditing","tableCell","highest","removeTableRow","data","_descriptionFactory","createTableWalker","end","map","deletion","insertTableRowBelow","registerDescriptionCallback","_getCoordsForCells","type","insertTableRowAbove","createRangeOn","markMultiRangeDeletion","batch","insertion","min","commands","push","substr","length","$textProxy","editor","subType","createPositionAt","fromRange","low","registerCustomCallback","insertTableColumnLeft","rootName","insertTableColumnRight","cell","model","ELEMENT_TABLE_ROW","downcastDispatcher","createRangeIn","afterInit","getSelectionAffectedTableCells","execute","discard","accept","registerElementLabel","tableColumn","tablePaste","addRange","ELEMENT_TABLE_ROW_WITH_TEXT","minColumn","getFirstRange","nodeAfter","oldRange","name","from","root","maxRow","getChanges","colspan","TableUtils","last","getSuggestion","findAncestor","options","nodeBefore","position","isInContent","table","maxColumn","some","first","detach","hasAttribute","max","refresh","getContainedElement","ELEMENT_TABLE_COLUMN","_tableSuggestions","_getSuggestionCoords","start","order","getCellLocation","_splitMarkerName","getColumnIndexes","getRanges","above","$graveyard","ELEMENT_TABLE_COLUMN_WITH_TEXT","isEqual","startsWith","isIntersectingWithRange","TableEditing","enqueueChange","*Insert:* %0","values","has","MIN_SAFE_INTEGER","getItems","*Remove:* %0","getAttribute","addMarker:suggestion","setSelection","span","_suggestionFactory","_acceptFormatSuggestionCallbackFactory","addClass","differ","locale","writer","ELEMENT_TABLE","change","toLowerCase","get","insertTable","enableCommand","rowspan","toViewElement","markMultiRangeInsertion","_setupColumnsRowsFixing","left","change:data","MAX_SAFE_INTEGER","classes","selection","document","join","isTouching"];var Gx,Hx;Gx=jx,Hx=259,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Vx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Vx("0xe"),Vx("0x3d")],this[Vx("0x5d")]=new Set}[Vx("0x37")](){const t=this.editor,e=t[Vx("0x33")][Vx("0x6")][Vx("0x5")];if(!t[Vx("0xb")][Vx("0x6f")](Vx("0x6b")))return;const n=t[Vx("0x7b")],o=t[Vx("0xb")][Vx("0x80")](Vx("0x10")),r=t[Vx("0xb")].get(Vx("0x4b"));o[Vx("0x15")][Vx("0x3c")](Vx("0x53"),(t=>Qo(n,Vx("0x7d"),t))),this[Vx("0x0")](),o[Vx("0x82")](Vx("0x81")),o[Vx("0x82")]("selectTableRow"),o[Vx("0x82")]("selectTableColumn");for(const n of[Vx("0x1e"),Vx("0x1a")]){const i=t[Vx("0x24")][Vx("0x80")](n);o[Vx("0x82")](n,(n=>{t[Vx("0x33")][Vx("0x7e")]((t=>{n();const s=Vx("0x65")===i[Vx("0x60")],x=r[Vx("0x38")](e),a=r.getRowIndexes(x),c=s?a[Vx("0x56")]-1:a.last+1,l=x[0][Vx("0x4e")](Vx("0x53")),u=r.createTableWalker(l,{startRow:c,endRow:c}),d=Array[Vx("0x46")](u)[Vx("0x18")]((e=>t[Vx("0x1f")](e[Vx("0x32")])));o[Vx("0x85")](d,Vx("0xe"))}))}))}for(const n of[Vx("0x2f"),Vx("0x31")]){const i=t[Vx("0x24")][Vx("0x80")](n);o.enableCommand(n,(n=>{t[Vx("0x33")][Vx("0x7e")]((t=>{n();const s=Vx("0x1")===i[Vx("0x60")],x=r.getSelectionAffectedTableCells(e),a=r.getColumnIndexes(x),c=s?a.first-1:a[Vx("0x4c")]+1,l=x[0][Vx("0x4e")](Vx("0x53")),u=r[Vx("0x16")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Vx("0x18")]((e=>t[Vx("0x1f")](e.cell)));o[Vx("0x85")](d,Vx("0x3d"))}))}))}for(const n of["removeTableRow",Vx("0xf")]){const i=n.substr(11),s=i[Vx("0x7f")](),x=s[Vx("0x26")](0,3)+"span",a=Vx("0x53")+i,c=Vx("0x23")+i,l="max"+i;o.enableCommand(n,(()=>{t[Vx("0x33")][Vx("0x7e")]((t=>{const i=r[Vx("0x38")](e),u=i[0].findAncestor(Vx("0x53"));let d;if(Vx("0x13")==n){const t=r.getRowIndexes(i);d={startRow:t[Vx("0x56")],endRow:t[Vx("0x4c")],includeAllSlots:!0}}else{const t=r[Vx("0x63")](i);d={startColumn:t[Vx("0x56")],endColumn:t[Vx("0x4c")],includeAllSlots:!0}}const g=r[Vx("0x16")](u,d),f=Array.from(g)[Vx("0x18")]((({cell:t})=>t)),m=Wx(f.filter((t=>t[Vx("0x58")](x)))),h=Wx(f[Vx("0x9")]((t=>!t.hasAttribute(x))))[Vx("0x18")]((e=>t[Vx("0x1f")](e))),b=o[Vx("0x20")](h,a);if(b&&("tableRow"==b[Vx("0x2a")]||"tableColumn"==b.subType)){const e=this[Vx("0x5e")](b);for(const n of m){const o=t[Vx("0x1f")](n),i=r[Vx("0x61")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&b[Vx("0x3f")](o)}}}))}))}function i(n){const o=Array[Vx("0x46")](e.getRanges()).map((t=>s.LiveRange[Vx("0x2c")](t)));t[Vx("0x33")][Vx("0x7e")]((e=>{const r=e[Vx("0x21")];n=n.filter((t=>Vx("0x66")!=t[Vx("0x47")][Vx("0x30")])),e.setSelection(n),t[Vx("0x24")][Vx("0x80")]("removeTableRow")[Vx("0x5a")](),t[Vx("0x39")](Vx("0x13"),{forceDefaultExecution:!0}),t[Vx("0x33")][Vx("0x6c")]((()=>{t[Vx("0x33")][Vx("0x6c")](r,(t=>{const e=o.filter((t=>Vx("0x66")!=t[Vx("0x47")][Vx("0x30")]));e[Vx("0x27")]>0&&t[Vx("0x75")](e);for(const t of o)t[Vx("0x57")]()}))}))}))}function a(n){t[Vx("0x33")][Vx("0x7e")]((o=>{const r=Array[Vx("0x46")](e[Vx("0x64")]())[Vx("0x18")]((t=>s.LiveRange[Vx("0x2c")](t))),i=[];for(const t of n)for(const e of t[Vx("0x71")]({shallow:!0}))i[Vx("0x25")](e);for(const e of i)Vx("0x66")!=e.root[Vx("0x30")]&&(o[Vx("0x75")](o[Vx("0x2b")](e,0)),t[Vx("0x24")].get("removeTableColumn").refresh(),t[Vx("0x39")](Vx("0xf"),{forceDefaultExecution:!0}));const x=r[Vx("0x9")]((t=>Vx("0x66")!=t.root.rootName));x[Vx("0x27")]>0&&o[Vx("0x75")](x);for(const t of r)t[Vx("0x57")]()}))}function c(t,e){return e.every((e=>t[Vx("0x55")]((t=>t.end[Vx("0x68")](e[Vx("0x5f")])||e[Vx("0x17")][Vx("0x68")](t[Vx("0x5f")])))))}function l(t,e){return t[Vx("0x55")]((t=>e[Vx("0x55")]((e=>t[Vx("0x17")][Vx("0x8")](e[Vx("0x5f")])))))}t[Vx("0x14")][Vx("0x35")].on(Vx("0x74"),((t,e,n)=>{if(!n[Vx("0x4f")].showSuggestionHighlights)return;const o=e.item;if(!o)return;const r=n.mapper[Vx("0x84")](o);function i(t){return Array.isArray(t)?t:[t]}r&&"tableCell"===o[Vx("0x45")]&&(0,x.setHighlightHandling)(r,n[Vx("0x7c")],((t,e,n)=>n[Vx("0x79")](i(e[Vx("0x4")]),t)),((t,e,n)=>n.removeClass(i(e[Vx("0x4")]),t)))}),{priority:Vx("0x12")}),o._descriptionFactory.registerDescriptionCallback((t=>{if("insertion"!=t[Vx("0x1d")]&&Vx("0x19")!=t[Vx("0x1d")])return;const e=t[Vx("0x5b")]();if(null!=e&&e.is(Vx("0xd"),"table")){if(Vx("0x22")==t.type){const e=t.getItems()[Vx("0x9")]((t=>t.is(Vx("0x28")))).map((t=>t[Vx("0x14")]));if(e.length)return{type:Vx("0x22"),content:Qo(n,Vx("0x6d"),Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Vx("0x7")](" ")+'"'))}}if(Vx("0x19")==t.type){const e=t.getItems()[Vx("0x9")]((t=>t.is(Vx("0x28")))).map((t=>t[Vx("0x14")]));if(e.length)return{type:Vx("0x19"),content:Qo(n,Vx("0x72"),Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Vx("0x7")](" ")+'"'))}}}})),o[Vx("0x15")][Vx("0x1b")]((t=>{if("tableRow"==t[Vx("0x2a")]){const e=t[Vx("0x71")]()[Vx("0x9")]((t=>t.is(Vx("0x28"))))[Vx("0x18")]((t=>t.data)),o=this._getSuggestionCoords(t),r=o[Vx("0x48")]-o.minRow+1;if(Vx("0x22")==t[Vx("0x1d")])return e[Vx("0x27")]?{type:Vx("0x22"),content:Qo(n,"*Insert:* %0",Qo(n,Vx("0x40"),[r,'"'+e[Vx("0x7")](" ")+'"']))}:{type:"insertion",content:Qo(n,Vx("0x6d"),Qo(n,Vx("0x34"),r))};if("deletion"==t[Vx("0x1d")])return e[Vx("0x27")]?{type:Vx("0x19"),content:Qo(n,"*Remove:* %0",Qo(n,Vx("0x40"),[r,'"'+e[Vx("0x7")](" ")+'"']))}:{type:Vx("0x19"),content:Qo(n,Vx("0x72"),Qo(n,Vx("0x34"),r))}}if("tableColumn"==t.subType){const e=t[Vx("0x71")]()[Vx("0x9")]((t=>t.is("$textProxy")))[Vx("0x18")]((t=>t.data)),o=this[Vx("0x5e")](t),r=o[Vx("0x54")]-o[Vx("0x41")]+1;if(Vx("0x22")==t.type)return e.length?{type:Vx("0x22"),content:Qo(n,Vx("0x6d"),Qo(n,Vx("0x67"),[r,'"'+e[Vx("0x7")](" ")+'"']))}:{type:Vx("0x22"),content:Qo(n,Vx("0x6d"),Qo(n,Vx("0x5c"),r))};if(Vx("0x19")==t.type)return e[Vx("0x27")]?{type:Vx("0x19"),content:Qo(n,Vx("0x72"),Qo(n,Vx("0x67"),[r,'"'+e[Vx("0x7")](" ")+'"']))}:{type:Vx("0x19"),content:Qo(n,Vx("0x72"),Qo(n,Vx("0x5c"),r))}}})),o._suggestionFactory.registerCustomCallback(Vx("0x22"),"tableRow",Vx("0x3a"),i),o[Vx("0x77")][Vx("0x2e")](Vx("0x19"),Vx("0xe"),Vx("0x3b"),i),o[Vx("0x77")][Vx("0x2e")]("insertion",Vx("0x3d"),Vx("0x3a"),a),o._suggestionFactory.registerCustomCallback(Vx("0x19"),Vx("0x3d"),"accept",a),o._suggestionFactory[Vx("0x2e")](Vx("0x22"),"tableColumn",Vx("0x7"),c),o[Vx("0x77")][Vx("0x2e")](Vx("0x19"),Vx("0x3d"),Vx("0x7"),c),o[Vx("0x77")].registerCustomCallback(Vx("0x22"),Vx("0xe"),Vx("0x7"),l),o[Vx("0x77")][Vx("0x2e")]("deletion",Vx("0xe"),"join",l)}[Vx("0x78")](){const t=this[Vx("0x29")],e=t[Vx("0x33")].document.selection;return(n,o)=>{t[Vx("0x33")].change((r=>{const{commandName:i,commandParams:x}=o;let a=n[0][Vx("0x17")][Vx("0x50")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Vx("0x5f")][Vx("0x43")]);const c=r[Vx("0x36")](a);if(Vx("0x66")==c[Vx("0x47")][Vx("0x30")])return;const l=Array[Vx("0x46")](e[Vx("0x64")]()).map((t=>s.LiveRange.fromRange(t)));r[Vx("0x75")](c),t[Vx("0x24")][Vx("0x80")](i).refresh(),x[Vx("0x25")]({forceDefaultExecution:!0}),t.execute(i,...x);const u=l[Vx("0x9")]((t=>Vx("0x66")!=t.root.rootName));u[Vx("0x27")]>0&&r[Vx("0x75")](u);for(const t of l)t[Vx("0x57")]()}))}}[Vx("0x1c")](t){const e=this.editor.plugins[Vx("0x80")](Vx("0x4b"));let n=Number[Vx("0x3")],o=Number[Vx("0x70")],r=Number[Vx("0x3")],i=Number[Vx("0x70")];for(const s of t){if(Vx("0x66")==s[Vx("0x47")][Vx("0x30")])continue;const{row:t,column:x}=e.getCellLocation(s),a=s.hasAttribute(Vx("0x83"))?s[Vx("0x73")](Vx("0x83"))-1:0,c=s[Vx("0x58")](Vx("0x4a"))?s[Vx("0x73")](Vx("0x4a"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,i=x+c>i?x+c:i}return{minRow:n,maxRow:o,minColumn:r,maxColumn:i}}[Vx("0x0")](){const t=this[Vx("0x29")],e=t[Vx("0xb")][Vx("0x80")](Vx("0x10")),n=t[Vx("0xb")][Vx("0x80")](Vx("0x4b"));t[Vx("0x33")][Vx("0x6")].on(Vx("0x2"),(()=>{const n=Array[Vx("0x46")](t[Vx("0x33")][Vx("0x6")][Vx("0x7a")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:r,subType:i}=e[Vx("0x62")](t);if(Vx("0xc")!=n)continue;if(null!=o[Vx("0x44")])continue;const s=e[Vx("0x4d")](r);this._tablePostFixingSubtypes.includes(i)&&this._tableSuggestions.add(s)}}),{priority:Vx("0x2d")});const o=(t,e)=>{let o=!1;const r=e[Vx("0x1f")](t),i=t[Vx("0x4e")](Vx("0x53")),s=n[Vx("0x61")](t);for(const e of this._tableSuggestions){const n=e[Vx("0x2a")],x=n[Vx("0x69")](Vx("0x3e")),a=n[Vx("0x26")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+Vx("0x76"),u=Vx("0x23")+a,d=Vx("0x59")+a;if(!e[Vx("0x52")])continue;if(i!=e[Vx("0x42")]()[Vx("0x5f")][Vx("0x4e")](Vx("0x53")))continue;if(e[Vx("0x6a")](r))continue;const g=t.hasAttribute(l)?t[Vx("0x73")](l)-1:0,f=this[Vx("0x5e")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Vx("0x3f")](r),o=!0)}return o};t.model[Vx("0x6")].registerPostFixer((e=>{let n=!1;for(const r of t[Vx("0x33")][Vx("0x6")][Vx("0x7a")][Vx("0x49")]())if(Vx("0xa")==r[Vx("0x1d")])if("tableRow"==r[Vx("0x45")])for(const t of r[Vx("0x51")].nodeAfter.getChildren())n=n||o(t,e);else Vx("0x11")==r[Vx("0x45")]&&(n=n||o(r[Vx("0x51")].nodeAfter,e));return n}))}[Vx("0x5e")](t){return this._getCoordsForCells(t[Vx("0x64")]()[Vx("0x18")]((t=>t[Vx("0x5f")][Vx("0x43")])))}}function Wx(t){return Array[Vx("0x46")](new Set(t)[Vx("0x6e")]())}const Kx=["find","push","getFirstPosition","filter","selection","mergeTableCellRight","document","return","length","refresh","mergeTableCells","element","mergeTableCellUp","_suggestionFactory","splitTableCellVertically","set:isEnabled","author","type","registerDescriptionCallback","trackChanges","markBlockFormat","model","registerCustomCallback","TableUtils","from","getRanges","execute","commandName","root","locale","map","getCellLocation","add","deletion","mergeTableCellDown","markMultiRangeBlockFormat","direction","forceDefaultExecution","horizontally","_areMergableCells","containsRange","setSelection","getSuggestions","findAncestor","fromRange","getSelectionAffectedTableCells","value","enableCommand","requires","tableCell","*Split cell:* vertically","editor","_tablePostFixingSubtypes","TableEditing","accept","change","_acceptFormatSuggestionCallbackFactory","getAncestors","rootName","detach","isInContent","stop","plugins","format","cell","mergeTableCellLeft","size","table","createRangeOn","_descriptionFactory","TrackChangesEditing","_isForcedDefaultExecutionBlock","splitTableCellHorizontally","commands","get","formatBlock","has"];var qx,Xx;qx=Kx,Xx=133,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0x45")](){return[zx]}afterInit(){const t=this.editor,e=t[$x("0x2a")].document.selection,n=t[$x("0x32")];if(!t[$x("0x6")].has($x("0x4a")))return;const o=t[$x("0x6")].get("TrackChangesEditing"),r=t[$x("0x6")][$x("0x12")]("TableUtils"),i=t[$x("0x6")][$x("0x12")](zx);i[$x("0x49")][$x("0x16")]($x("0x1f")),o[$x("0x44")]($x("0x1f"),(()=>{const e=r[$x("0x42")](t[$x("0x2a")][$x("0x1b")].selection);t.model[$x("0x4c")]((()=>{o[$x("0x38")](e,{commandName:"mergeTableCells",commandParams:[]},[],$x("0x1f"))}))})),t.commands.get($x("0x1f")).on($x("0x2f"),((e,n)=>{t[$x("0x11")][$x("0x12")]($x("0x28")).value&&(n[$x("0x1d")]>0&&n[n.length-1]&&n[n[$x("0x1d")]-1][$x("0x3a")]||o[$x("0xf")]||this._areSelectedCellsMergable()||e[$x("0x5")]())}),{priority:"highest"});for(const e of["mergeTableCellUp","mergeTableCellRight",$x("0x37"),$x("0x9")]){const n=t[$x("0x11")][$x("0x12")](e);o[$x("0x44")](e,(()=>{const e=t[$x("0x2a")][$x("0x1b")].selection[$x("0x17")]().getAncestors()[$x("0x15")]((t=>t.is($x("0x20"),"tableCell"))),r=n[$x("0x43")];t[$x("0x2a")][$x("0x4c")]((()=>{o[$x("0x38")]([e,r],{commandName:$x("0x1f"),commandParams:[]},[],$x("0x1f"))}))}))}for(const e of[$x("0x23"),$x("0x10")]){const n=t[$x("0x11")][$x("0x12")](e);o[$x("0x44")](e,(()=>{const i=r[$x("0x42")](t[$x("0x2a")][$x("0x1b")][$x("0x19")])[0],s=i[$x("0x40")]($x("0xb")),{column:x,row:a}=r[$x("0x34")](i);let c=[];if($x("0x3b")==n[$x("0x39")]){const t=r.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x2d")](t)[$x("0x33")]((t=>t[$x("0x8")]))}else{const t=r.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array[$x("0x2d")](t)[$x("0x33")]((t=>t[$x("0x8")]))}t[$x("0x2a")][$x("0x4c")]((t=>{o[$x("0x29")](t[$x("0xc")](i),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[$x("0x27")]((t=>{if($x("0x13")!=t[$x("0x26")]&&"formatInline"!=t[$x("0x26")])return;const{data:e}=t;return e&&$x("0x1f")==e[$x("0x30")]?{type:$x("0x7"),content:Qo(n,"*Merge cells*")}:void 0})),o[$x("0xd")][$x("0x27")]((t=>{if($x("0x13")!=t[$x("0x26")]&&"formatInline"!=t[$x("0x26")])return;const{data:e}=t;return e?$x("0x23")==e.commandName?{type:$x("0x7"),content:Qo(n,$x("0x47"))}:"splitTableCellHorizontally"==e[$x("0x30")]?{type:$x("0x7"),content:Qo(n,"*Split cell:* horizontally")}:void 0:void 0}));const x=i[$x("0x0")]();for(const t of[$x("0x21"),$x("0x1a"),"mergeTableCellDown",$x("0x9")])o[$x("0x22")][$x("0x2b")]($x("0x13"),t,$x("0x4b"),x);for(const t of[$x("0x23"),$x("0x10")])o[$x("0x22")][$x("0x2b")]($x("0x13"),t,$x("0x4b"),x);o[$x("0x22")].registerCustomCallback($x("0x13"),$x("0x1f"),"accept",(n=>{t[$x("0x2a")][$x("0x4c")]((o=>{const r=Array[$x("0x2d")](e[$x("0x2e")]())[$x("0x33")]((t=>s.LiveRange[$x("0x41")](t)));o[$x("0x3e")](n),t.commands[$x("0x12")]("mergeTableCells")[$x("0x1e")](),t[$x("0x2f")]($x("0x1f"),{forceDefaultExecution:!0});const i=r[$x("0x18")]((t=>"$graveyard"!=t[$x("0x31")][$x("0x2")]));i[$x("0x1d")]>0&&o.setSelection(i);for(const t of r)t[$x("0x3")]()}))}));for(const e of[$x("0x21"),$x("0x37"),"mergeTableCellLeft",$x("0x1a")]){const n=t[$x("0x11")][$x("0x12")](e);n.on($x("0x24"),((e,o,r)=>{if(r){const o=t.model.document[$x("0x19")][$x("0x17")]()[$x("0x1")]()[$x("0x15")]((t=>t.is("element",$x("0x46"))));this[$x("0x3c")](n[$x("0x43")],o)||(e[$x("0x1c")]=!1,e[$x("0x5")]())}}),{priority:"low"})}}_areSelectedCellsMergable(){const t=this[$x("0x48")].commands[$x("0x12")]($x("0x1f")),e=this[$x("0x48")][$x("0x6")][$x("0x12")]($x("0x2c"));if(!t.isEnabled)return!1;const n=e[$x("0x42")](this[$x("0x48")][$x("0x2a")][$x("0x1b")][$x("0x19")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x3c")](t,e))return!1;return!0}[$x("0x3c")](t,e){const n=this[$x("0x48")][$x("0x6")][$x("0x12")]($x("0xe")),o=this[$x("0x48")][$x("0x2a")][$x("0xc")](t),r=this[$x("0x48")].model[$x("0xc")](e),i=new Set,s=new Set;for(const t of n[$x("0x3f")]())if(("insertion"==t.type||$x("0x36")==t[$x("0x26")]||$x("0x1f")==t.subType)&&t[$x("0x4")])for(const e of t.getRanges())e[$x("0x3d")](o,!0)&&i[$x("0x35")](t[$x("0x26")]+":"+t[$x("0x25")].id),e[$x("0x3d")](r,!0)&&s.add(t[$x("0x26")]+":"+t.author.id);if(i[$x("0xa")]!=s.size)return!1;for(const t of i)if(!s[$x("0x14")](t))return!1;return!0}}const Yx=["getCellLocation","consumable","setAttribute","data","addMarker:suggestion","consume","registerDescriptionCallback","ck-suggestion-marker--active","get","markerName","parent","start","registerAttributeLabel","data-suggestion","registerCustomCallback","FORMAT_HEADER_ROW","commandName","FORMAT_HEADER_COLUMN","has","createTableWalker","removeAttribute","setTableColumnHeader","formatBlock","options","type","headingRows","cell","format","accept","end","requires","TrackChangesEditing","writer","removeClass","showSuggestionHighlights","_handleLegacySuggestions","_descriptionFactory","forceValue","plugins","TableEditing","locale","_splitMarkerName","*Format:* %0","commandParams","_registerLegacyDescription","mapper","markerRange","_enableDefaultAttributesIntegration","_acceptFormatSuggestionCallbackFactory","editing","unbindElementFromMarkerName","FORMAT_REGULAR_COLUMN","nodeAfter","editor","highest","ck-suggestion-marker-","headingColumns","setTableRowHeader","addClass","getSuggestion","downcastDispatcher","_suggestionFactory","item","markerNameToElements"];var Jx,Qx;Jx=Yx,Qx=459,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0x13")](){return[zx]}afterInit(){const t=this.editor;if(!t.plugins[ta("0x7")](ta("0x1c")))return;const e=t.locale,n=t.plugins[ta("0x3d")](ta("0x14"));n._enableDefaultAttributesIntegration(ta("0x2e"),[],[ta("0xe")]),n[ta("0x24")](ta("0xa"),[],[ta("0x2d")]),n[ta("0x19")].registerAttributeLabel(ta("0xe"),Qo(e,ta("0x4"))),n[ta("0x19")][ta("0x1")](ta("0x2d"),Qo(e,"FORMAT_HEADER_COLUMN")),this[ta("0x18")]()}[ta("0x18")](){const t=this.editor.plugins[ta("0x3d")](ta("0x14")),e=this[ta("0x2a")][ta("0x1b")].get("TableUtils"),n=this[ta("0x2a")][ta("0x1b")][ta("0x3d")](zx)[ta("0x25")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(r,i,s)=>{const{type:x,id:a}=t[ta("0x1e")](i.markerName),c=t[ta("0x30")](a),l=c[ta("0x38")];if(ta("0xb")!=c[ta("0xd")]||!l||"setTableColumnHeader"!=l[ta("0x5")])return;if(i[ta("0x33")])return void r.stop();if(!s[ta("0x36")][ta("0x3a")](i.markerRange,r.name))return;const u=i[ta("0x23")][ta("0x0")][ta("0x29")],d=i[ta("0x23")][ta("0x12")].nodeBefore,g=u[ta("0x3f")][ta("0x3f")],{column:f}=e[ta("0x35")](u),{column:m}=e[ta("0x35")](d);for(let r=f;r<=m;r++){const c=e[ta("0x8")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[ta("0xf")],c=s[ta("0x22")].toViewElement(r);s[ta("0x15")][ta("0x2f")](ta("0x2c")+x,c),o&&s[ta("0x15")][ta("0x37")](ta("0x2"),a,c),s.mapper.bindElementToMarker(c,i[ta("0x3e")]),n&&(t.activeMarkers.includes(i[ta("0x3e")])?s.writer[ta("0x2f")](ta("0x3c"),c):s[ta("0x15")][ta("0x16")]("ck-suggestion-marker--active",c))}}}}t[ta("0x32")][ta("0x3")](ta("0xb"),"setTableRowHeader",ta("0x11"),n),t[ta("0x32")][ta("0x3")](ta("0xb"),"setTableColumnHeader","accept",n),this[ta("0x2a")][ta("0x26")][ta("0x31")].on(ta("0x39"),o(),{priority:ta("0x2b")}),this[ta("0x2a")][ta("0x38")].downcastDispatcher.on(ta("0x39"),((t,e,n)=>{n[ta("0xc")][ta("0x17")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x2b")}),this[ta("0x2a")][ta("0x26")][ta("0x31")].on("removeMarker:suggestion",((e,n,o)=>{const{type:r,id:i}=t[ta("0x1e")](n[ta("0x3e")]),s=t.getSuggestion(i),x=s.data;if(ta("0xb")!=s.type||!x||"setTableColumnHeader"!=x[ta("0x5")])return;const a=o[ta("0x22")][ta("0x34")](n[ta("0x3e")]);if(a)for(const t of a)o[ta("0x15")].removeClass(ta("0x2c")+r,t),o[ta("0x15")][ta("0x16")](ta("0x3c"),t),o[ta("0x15")][ta("0x9")](ta("0x2"),t),o[ta("0x22")][ta("0x27")](t,n[ta("0x3e")])}),{priority:ta("0x2b")}),this[ta("0x21")]()}[ta("0x21")](){const t=this[ta("0x2a")],e=t[ta("0x1d")];function n(t){return{type:ta("0x10"),content:Qo(e,ta("0x1f"),t)}}t[ta("0x1b")][ta("0x3d")](ta("0x14"))[ta("0x19")][ta("0x3b")]((t=>{if(ta("0xb")!=t[ta("0xd")])return;const{data:o}=t;if(o){if("setTableRowHeader"==o[ta("0x5")]){const t=o[ta("0x20")][0].forceValue;return n(Qo(e,t?ta("0x4"):"FORMAT_REGULAR_ROW"))}if(ta("0xa")==o.commandName){const t=o[ta("0x20")][0][ta("0x1a")];return n(Qo(e,ta(t?"0x6":"0x28")))}}}))}}const na=["join","getSuggestion","containsRange","afterInit","unwrap","name","commands","*Replace table cells*","activeMarkers","_getCoordsForCells","low","tableCellHorizontalAlignment","getChild","getItems","trackChanges","getAllAdjacentSuggestions","createRangeIn","showSuggestionHighlights","createPositionBefore","from","markMultiRangeDeletion","editor","cell","_suggestionFactory","getRowIndexes","getChildren","getShiftedBy","TableUtils","suggestion-td","createRangeOn","subType","markers","root","getSuggestions","keys","cells","markerAttributes","getRanges","view","getRows","nextSibling","length","nodeAfter","createElement","tableCellBorderColor","insert","tablePasteRow","tableCellSuggestion","tablePasteColumn","editingDowncast","wrap","insertContent","getMarkers","deletion","markMultiRangeInsertion","stop","reduce","rowInsertionRanges","tablePasteChainId","removeMarker","find","table","author","formatBlock","_isForcedDefaultExecutionBlock","last","push","suggestionUnloaded","for","removeColumns","options","TrackChangesEditing","suggestion:formatBlock:tablePasteCell","tableCellPadding","setAttribute","getContainedElement","position","startsWith","insertion","content","ck-suggestion-marker","tablePasteCell","newRange","getTableIfOnlyTableInContent","listenTo","has","attributes","createTableWalker","rowInsertionIndexes","removeRows","isInContent","getChanges","isEqual","move","registerPostFixer","createRange","tableCellBorderStyle","elementToElement","fill","_descriptionFactory","getSuggestionCallback","tableCellBackgroundColor","dataDowncast","next","registerCustomCallback","registerDescriptionCallback","suggestion","getChangedMarkers","markMultiRangeBlockFormat","return","insertionRanges","row","forceDefaultExecution","tablePaste","some","get","differ","register","findAncestor","redo","updateMarker","getColumnIndexes","change","tableCellBorderWidth","includes","paragraph","map","markerName","set","conversion","oldRange","isEmpty","plugins","type","rootName","endRow","accept","previous","model","end","high","getRange","value","add","insertColumns","discard","documentSelection","previousSibling","remove","column","suggestionLoaded","filter","hasSuggestion","TableClipboard","clipboardOutput","locale","markerToHighlight","Users","columnInsertionIndexes","document","element","start","getColumns","_splitMarkerName","setAttributes","_replaceTableSlotCell"];var oa,ra;oa=na,ra=298,function(t){for(;--t;)oa.push(oa.shift())}(++ra);const ia=function(t,e){return na[t-=0]},sa=[ia("0x9d"),ia("0x4e"),ia("0x82"),ia("0x2d"),"tableCellVerticalAlignment",ia("0x87"),ia("0x6b")],xa=Object.fromEntries(sa.map((t=>[t,null])));class aa extends t.Plugin{static get requires(){return[zx]}[ia("0x25")](){const t=this[ia("0x37")];if(!t[ia("0x0")][ia("0x77")]("TableClipboard"))return;const n=t[ia("0x0")][ia("0x95")](ia("0x69")),o=t[ia("0x0")][ia("0x95")](ia("0x3d")),r=t[ia("0x0")][ia("0x95")](zx),i=t[ia("0x0")][ia("0x95")](ia("0x15"));r._tablePostFixingSubtypes[ia("0x64")]("tablePasteRow","tablePasteColumn"),t[ia("0x6")].schema[ia("0x97")]("tableCellSuggestion",{allowIn:"tableCell",allowContentOf:"tableCell",isLimit:!0}),t[ia("0xa3")][ia("0x83")]({model:ia("0x51"),view:"suggestion-td"});let s=null;t[ia("0x6")].on(ia("0x55"),((r,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[ia("0x92")]||n[ia("0x62")]||this.editor[ia("0x28")][ia("0x95")](ia("0x30"))[ia("0xa")]&&function(t,e,n,o,r){if(e&&!e.is(ia("0xe")))return!1;const i=r[ia("0x75")](t,n);if(!i||!la(i,void 0,o))return!1;const s=o.getSelectionAffectedTableCells(n[ia("0x1b")].selection);if(!s[ia("0x4b")])return!1;const x=s[0].findAncestor("table"),a=o[ia("0x3a")](s),c=o[ia("0x9b")](s),l={startRow:a.first,endRow:a[ia("0x63")],startColumn:c.first,endColumn:c.last};return 1==s[ia("0x4b")]&&(l[ia("0x3")]+=o[ia("0x49")](i)-1,l.endColumn+=o[ia("0x1e")](i)-1),la(x,l,o)}(a,c,t[ia("0x6")],o,i)&&(r[ia("0x59")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ia("0x6")][ia("0x9c")]((()=>{t.model[ia("0x55")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=s;r.length&&n[ia("0x58")](r,ia("0x50"),{tablePasteChainId:o}),i.length&&n[ia("0x58")](i,ia("0x52"),{tablePasteChainId:o}),a[ia("0x4b")]&&n[ia("0x58")](a,ia("0x93"),{tablePasteChainId:o,skipNestingCheck:!0}),c[ia("0x4b")]&&n[ia("0x36")](c,ia("0x93"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ia("0x8e")](l[ia("0xa0")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ia("0x73"),{tablePasteChainId:o});if(u){const e=u[ia("0x56")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const i=t[ia("0x6")][ia("0x3f")](o),s=e[ia("0x5e")]((t=>t[ia("0x9")]()[ia("0x7e")](i)));s&&n.push([s.name,r])}n[ia("0x4b")]&&u[ia("0x6c")](ia("0x46"),Object.fromEntries(n))}s=null})))}),{priority:e.priorities[ia("0x8")]+10}),t[ia("0x0")][ia("0x95")]("TableClipboard").on(ia("0x21"),((t,e)=>{const[n,o,,r]=e;if(!s)return;t[ia("0x59")]();const i=n[ia("0x38")],x=o,a=ca(i),c=ca(x);t[ia("0x8f")]=i;let l=null,u=null;if(c||a)if(a&&!c){r.remove(i[ia("0x2e")](0));for(const t of Array.from(x[ia("0x3b")]()))r.insert(t,i,"end");const t=s[ia("0x7a")].includes(n[ia("0x91")]),e=s[ia("0x1a")].includes(n[ia("0x11")]);t||e||(l=r[ia("0x32")](i))}else c&&!a&&(u=r[ia("0x32")](i));else{const t=r[ia("0x4d")](ia("0x51")),e=r[ia("0x4d")]("tableCellSuggestion");r[ia("0x54")](r.createRangeIn(i),e),r.insert(t,i,0);for(const e of Array[ia("0x35")](x[ia("0x3b")]()))r[ia("0x4f")](e,t,ia("0x7"));l=r[ia("0x3f")](t),u=r[ia("0x3f")](e)}const d=Array[ia("0x35")](x.getAttributes())[ia("0x13")]((([t])=>sa[ia("0x9e")](t)));s[ia("0x45")][ia("0x64")]({element:i,attributes:d.length?Object.fromEntries(d):null}),l&&s[ia("0x90")][ia("0x64")](l),u&&s.deletionRanges[ia("0x64")](u)}),{priority:ia("0x8")}),o.on(ia("0xc"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i.columns||1;s[ia("0x1a")]=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startColumn:x,endColumn:x+a-1}))s.columnInsertionRanges.push(t.model[ia("0x3f")](e))}),{priority:ia("0x2c")}),o.on("insertRows",((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i.rows||1;s[ia("0x7a")]=new Array(a)[ia("0x84")](x)[ia("0xa0")](((t,e)=>t+e));for(const{cell:e}of o[ia("0x79")](r,{startRow:x,endRow:x+a-1}))s[ia("0x5b")][ia("0x64")](t.model.createRangeOn(e))}),{priority:ia("0x2c")}),n[ia("0x85")][ia("0x8b")]((e=>{if(e[ia("0x40")]&&e[ia("0x40")][ia("0x6f")]("tablePaste"))return e.previous?{}:{type:ia("0x70"),content:Qo(t[ia("0x17")],ia("0x29"))}}));const x=()=>!1;for(const t of[ia("0x93"),ia("0x52"),ia("0x50"),ia("0x73")])n._suggestionFactory[ia("0x8a")](ia("0x70"),t,ia("0x22"),x),n._suggestionFactory.registerCustomCallback(ia("0x57"),t,ia("0x22"),x),n[ia("0x39")][ia("0x8a")](ia("0x61"),t,ia("0x22"),x);n[ia("0x39")][ia("0x8a")](ia("0x61"),"tablePasteCell",ia("0xd"),x),n._suggestionFactory[ia("0x8a")]("formatBlock","tablePasteCell",ia("0x4"),((e,n,o)=>{const r=e[ia("0xa0")]((t=>t[ia("0x6d")]()))[ia("0x13")]((t=>t)),i=new Map(r.map((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ia("0x45")])e&&i.set(t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object.entries(o[ia("0x46")])){const o=t[ia("0x6")][ia("0x41")][ia("0x95")](e),r=o?o[ia("0x9")]().getContainedElement():null;r&&i[ia("0xa2")](r,n)}t[ia("0x6")][ia("0x9c")]((t=>{for(const[e,n]of i)t[ia("0x20")]({...xa,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[ia("0x8a")](e,ia("0x93"),o,((r,i,s)=>{t.model[ia("0x9c")]((t=>{const x=[];for(const t of r){const e=t[ia("0x1d")][ia("0x4c")];e.is(ia("0x1c"),ia("0x51"))&&x.push(e)}n[ia("0x39")][ia("0x86")](e,null,o)(r,i,s);for(const e of x)"$graveyard"!=e[ia("0x42")][ia("0x2")]&&t[ia("0x26")](e)}))}))};a(ia("0x70"),ia("0x4")),a(ia("0x70"),ia("0xd")),a(ia("0x57"),ia("0x4")),a("deletion",ia("0xd")),n[ia("0x39")][ia("0x8a")](ia("0x70"),ia("0x50"),ia("0xd"),(t=>{const e=t[ia("0xa0")]((t=>t[ia("0x6d")]())),n=e[0][ia("0x98")](ia("0x5f")),{minRow:i,maxRow:s}=r._getCoordsForCells(e);o[ia("0x7b")](n,{at:i,rows:s-i+1})})),n[ia("0x39")][ia("0x8a")](ia("0x70"),ia("0x52"),ia("0xd"),(t=>{const e=t[ia("0xa0")]((t=>t[ia("0x6d")]())),n=e[0][ia("0x98")](ia("0x5f")),{minColumn:i,maxColumn:s}=r[ia("0x2b")](e);o[ia("0x67")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0x40")]||!e[ia("0x40")].startsWith("tablePaste"))return;const o=e.attributes[ia("0x5c")],r=n[ia("0x43")]()[ia("0x13")]((t=>t[ia("0x7c")]&&t[ia("0x78")]&&t.attributes[ia("0x5c")]==o));r.length&&e[ia("0x31")]()[ia("0x4b")]!=r.length&&r[ia("0x5a")](((t,e)=>(t[ia("0x89")]=e,e[ia("0x5")]=t,e)))};function l(t,e=!0){const{id:o}=n[ia("0x1f")](t[ia("0xa1")]),r=[ia("0x72"),"ck-suggestion-marker-insertion"],i=n[ia("0x2a")].includes(t[ia("0xa1")]);return i&&r[ia("0x64")]("ck-suggestion-marker--active"),{classes:r,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on(ia("0x12"),c,{priority:"high"}),n.on(ia("0x65"),c,{priority:"high"}),t[ia("0x6")][ia("0x1b")][ia("0x80")]((()=>{let e=!1;const o=Array[ia("0x35")](t[ia("0x6")][ia("0x1b")][ia("0x96")].getChangedMarkers());for(const{name:r,data:i}of o){const{group:o,type:s,id:x}=n[ia("0x1f")](r);if(ia("0x8c")!=o||ia("0x57")!=s||i.oldRange)continue;if(!n[ia("0x14")](x))continue;const a=n[ia("0x23")](x)[ia("0x47")](),c=t[ia("0x0")][ia("0x95")](ia("0x19")).me;for(const t of n.getSuggestions())if(t[ia("0x7c")]&&t[ia("0x60")]==c&&ia("0x61")==t[ia("0x1")]&&ia("0x73")==t[ia("0x40")]&&t.getRanges().every((t=>a[ia("0x94")]((e=>e[ia("0x24")](t,!0))))))for(const n of t[ia("0x31")]())n[ia("0x7c")]&&(n[ia("0xd")](),e=!0)}return e})),t[ia("0x6")][ia("0x1b")][ia("0x80")]((e=>{const o=t.commands[ia("0x95")](ia("0x99"));if(!o||!o._createdBatches[ia("0x77")](e.batch))return!1;let r=!1;const i=t.plugins[ia("0x95")]("Users").me,s=t[ia("0x6")][ia("0x1b")][ia("0x96")][ia("0x7d")](),x=Array[ia("0x35")](t[ia("0x6")].document[ia("0x96")][ia("0x8d")]())[ia("0x13")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:s}=n[ia("0x1f")](t);return ia("0x8c")==o&&ia("0x93")==r&&s==i.id&&!e[ia("0xa4")]}));for(const t of s){if(ia("0x4f")!=t[ia("0x1")]||ia("0x51")!=t[ia("0x27")]||1!=t[ia("0x4b")])continue;const n=e[ia("0x81")](t[ia("0x6e")],t[ia("0x6e")][ia("0x3c")](1));if(!x.find((({data:t})=>t[ia("0x74")][ia("0x7e")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[ia("0x74")])){e[ia("0x9a")](t,{range:n}),r=!0;break}}return r})),t[ia("0x6")][ia("0x1b")][ia("0x80")]((e=>{let o=!1;const r=t[ia("0x0")].get(ia("0x19")).me,i=n[ia("0x43")]()[ia("0x13")]((t=>t[ia("0x7c")]&&t.author==r)),s=new Set,x=new Set;for(const t of i)if(ia("0x93")==t[ia("0x40")])for(const e of t[ia("0x56")]()){const n=e[ia("0x9")]()[ia("0x6d")]();if(n)if(n.is(ia("0x1c"),ia("0x51"))&&ca(n)){t[ia("0x5d")](e[ia("0x27")]),s[ia("0xb")](n),o=!0;const r=n[ia("0x4a")],i=n[ia("0xf")],a=r&&r.is(ia("0x1c"),ia("0x51")),c=i&&i.is(ia("0x1c"),ia("0x51"));a&&!s[ia("0x77")](r)&&x[ia("0xb")](r),c&&!s[ia("0x77")](i)&&x.add(i)}else n.is("element",ia("0x9f"))&&n[ia("0xa5")]&&(t.removeMarker(e.name),o=!0)}else if("tablePasteCell"==t[ia("0x40")]){if(!t[ia("0x78")]||!t[ia("0x78")][ia("0x5c")])continue;const e=t[ia("0x78")][ia("0x46")];if(e&&Object[ia("0x44")](e)[ia("0x4b")])continue;const n=t[ia("0x78")][ia("0x5c")];let r=!0,s=!0;for(const e of i)if(e.subType&&e.subType.startsWith("tablePaste")){if(!e[ia("0x78")][ia("0x5c")]){s=!1;break}if(e.id!=t.id&&e[ia("0x78")].tablePasteChainId==n){r=!1;break}}s&&r&&(t.removeMarkers(),o=!0)}for(const t of s)e.remove(t);for(const t of x)e[ia("0x26")](t);return o})),t[ia("0xa3")][ia("0x66")](ia("0x53"))[ia("0x18")]({model:ia("0x6a"),view:(t,e)=>l(t),converterPriority:ia("0x8")}),t.conversion[ia("0x66")](ia("0x88"))[ia("0x18")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[ia("0x68")][ia("0x33")]?l(t,!1):null,converterPriority:ia("0x8")});const u=t.editing[ia("0x48")];this[ia("0x76")](u[ia("0x1b")],ia("0x16"),((t,e)=>{const n=[];for(const t of u[ia("0x32")](e[ia("0x71")])[ia("0x2f")]())t.is("element",ia("0x3e"))&&n.push(t);u[ia("0x9c")]((t=>{for(const e of n)t[ia("0x7f")](t.createRangeIn(e),t[ia("0x34")](e)),t[ia("0x10")](e)}))}))}}function ca(t){if(t[ia("0xa5")])return!0;const e=t[ia("0x2e")](0);return e.is("element",ia("0x9f"))&&e.isEmpty}function la(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:i}of n[ia("0x79")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=i)return!1;return!0}const ua=["type","handleResizeTableWidthCommand","formatInline","tableWidth","columnWidths","plugins","formatBlock","TrackChangesEditing","getContainedElement","getSelectedElement","document","editor","get","table","accept","formatGroupId","locale","bind","registerCustomCallback","resizeTable","enableCommand","getSuggestions","handleSuggestionDescription","getSuggestionCallback","afterInit","Users","subType","TableColumnResizeEditing","model","discard","_descriptionFactory","author","has","commandParams","data","selection","getAttribute","_suggestionFactory","markBlockFormat"];var da,ga;da=ua,ga=457,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x23")](){if(!this[fa("0x16")].plugins[fa("0x4")]("TableColumnResizeEditing"))return;const t=this[fa("0x16")][fa("0x10")][fa("0x17")](fa("0x12"));t[fa("0x1f")]("resizeTableWidth",this[fa("0xc")][fa("0x1c")](this)),t[fa("0x9")][fa("0x1d")]("formatBlock",fa("0x1e"),fa("0x19"),t._suggestionFactory.getSuggestionCallback(fa("0x11"),null,fa("0x1"))),t[fa("0x9")][fa("0x1d")](fa("0x11"),"resizeTable",fa("0x1"),t[fa("0x9")][fa("0x22")](fa("0x11"),null,fa("0x19"))),t[fa("0x2")].registerDescriptionCallback(this.handleSuggestionDescription[fa("0x1c")](this))}[fa("0xc")](t,e){const n=this.editor[fa("0x10")].get(fa("0x12")),o=this[fa("0x16")][fa("0x10")][fa("0x17")](fa("0x26")),r=e[fa("0x18")]||this[fa("0x16")][fa("0x0")][fa("0x15")][fa("0x7")][fa("0x14")]();this[fa("0x16")].model.change((()=>{const i=o.getColumnGroupElement(r);let s=i?o.getTableColumnsWidths(i):null,x=r[fa("0x8")](fa("0xe"))||null;const a=e.tableWidth||x,c=e[fa("0xf")]||s,l=this[fa("0x16")][fa("0x10")][fa("0x17")](fa("0x24")).me;for(const t of n[fa("0x20")]()){const e=t[fa("0x13")]();if(fa("0x1e")===t[fa("0x25")]&&e===r){t[fa("0x3")]!==l&&t.discard();const e=t[fa("0x6")][fa("0x5")];x=e[0][fa("0xe")],s=e[0][fa("0xf")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[fa("0xa")](r,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x1e")},[],fa("0x1e"))}))}[fa("0x21")](t){if(fa("0x11")!=t[fa("0xb")]&&fa("0xd")!=t[fa("0xb")])return;const{data:e}=t;if(e&&fa("0x1e")===e[fa("0x1a")]){const t="*Format:* resize table";return{type:"format",content:Qo(this[fa("0x16")][fa("0x1b")],t)}}}}const ha=["TrackChangesEditing","plugins","afterInit","insertTemplate","Template","enableCommand","get"];var ba,pa;ba=ha,pa=201,function(t){for(;--t;)ba.push(ba.shift())}(++pa);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x4")](){const t=this.editor;t.plugins.has(Ea("0x6"))&&t[Ea("0x3")][Ea("0x1")](Ea("0x2"))[Ea("0x0")](Ea("0x5"))}}const Ta=["insertTableOfContents","enableCommand","get","TrackChangesEditing","afterInit","ELEMENT_TABLE_OF_CONTENTS","locale","editor","_descriptionFactory"];var ya,Ca;ya=Ta,Ca=445,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x0")](){const t=this[Aa("0x3")];if(!t.commands.get(Aa("0x5")))return;t.plugins[Aa("0x7")]("TrackChangesEditing")[Aa("0x6")](Aa("0x5"));const e=t.plugins[Aa("0x7")](Aa("0x8")),n=t[Aa("0x2")];e[Aa("0x4")].registerElementLabel("tableOfContents",(t=>Qo(n,Aa("0x1"),t)))}}const Sa=["newRange","locale","has","Title","from","start","editor","createRange","isEqual","schema","registerPostFixer","document","suggestion","model","updateMarker","title-content","end","differ","getNearestSelectionRange","removeMarker","registerElementLabel","afterInit","_splitMarkerName","isTouching","plugins","ELEMENT_TITLE"];var Ra,Ia;Ra=Sa,Ia=146,function(t){for(;--t;)Ra.push(Ra.shift())}(++Ia);const va=function(t,e){return Sa[t-=0]};class Na extends t.Plugin{[va("0x5")](){const t=this[va("0x10")];if(!t[va("0x8")][va("0xc")](va("0xd")))return;const e=t[va("0x8")].get("TrackChangesEditing");e._descriptionFactory[va("0x4")](va("0x19"),(()=>Qo(t[va("0xb")],va("0x9")))),t[va("0x17")][va("0x15")][va("0x14")]((n=>{let o=!1;const r=Array[va("0xe")](t[va("0x17")][va("0x15")][va("0x1")].getChangedMarkers());for(const{name:i,data:s}of r){const{group:r}=e[va("0x6")](i);if(va("0x16")!==r||!s[va("0xa")])continue;const x=s[va("0xa")],a=x[va("0x0")].nodeBefore;if(!a||!a.is("element","title-content"))continue;if(!x[va("0xf")][va("0x7")](x[va("0x0")]))continue;const c=t[va("0x17")][va("0x13")][va("0x2")](x.end,"forward");if(c&&c.isCollapsed){const t=n[va("0x11")](x[va("0xf")],c[va("0xf")]);t[va("0x12")](x)||(n[va("0x18")](i,{range:t}),o=!0)}o||(n[va("0x3")](i),o=!0)}return o}))}}const La=["undo","afterInit","plugins","editor","UndoEditing","redo","TrackChangesEditing","enableCommand"];var Ma,wa;Ma=La,wa=495,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x2")](){const t=this[Oa("0x4")],e=t[Oa("0x3")].get(Oa("0x7"));t[Oa("0x3")].has(Oa("0x5"))&&(e[Oa("0x0")](Oa("0x1")),e[Oa("0x0")](Oa("0x6")))}}const Da=["afterInit","toggleTableCaption","editor","enableCommand","has","plugins","requires","get","TableCaptionEditing"];var Ba,Pa;Ba=Da,Pa=226,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x5")](){return[zx]}[Ua("0x8")](){const t=this[Ua("0x1")];t[Ua("0x4")][Ua("0x3")](Ua("0x7"))&&t.plugins[Ua("0x6")]("TrackChangesEditing")[Ua("0x2")](Ua("0x0"))}}const Ga=["afterInit","getAttribute","document","join","nodeAfter","handleSuggestionDescription","tableCellProperties","handleDiscardAction","_handlePropertyChange","data","getSuggestionCallback","getSelectionAffectedTableCells","getContainedElement","_descriptionFactory","TrackChangesEditing","has","_suggestionFactory","registerDescriptionCallback","TableCellPropertiesEditing","registerCustomCallback","*Format:* change table properties","table","tableCellHeight","_getSuggestion","tableBorderStyle","accept","findAncestor","tableAlignment","TableUtils","locale","editor","subType","plugins","TrackChangesTableProperties","commandParams","start","tableProperties","tableCellBorderStyle","tableBorderColor","selection","tableCellPadding","tableCellBorderWidth","getFirstPosition","tableCellBackgroundColor","format","discard","pluginName","tableBorderWidth","removeAttribute","batch","model","get","enableCommand","formatBlock"];var Ha,Va;Ha=Ga,Va=329,function(t){for(;--t;)Ha.push(Ha.shift())}(++Va);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x1f")]=[za("0x21"),za("0x13"),za("0x2a"),za("0x16"),"tableWidth","tableHeight","tableBackgroundColor"],this.tableCellProperties=["tableCellBorderColor",za("0x20"),za("0x24"),za("0x23"),"tableCellWidth",za("0x11"),za("0x26"),"tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get[za("0x29")](){return za("0x1c")}[za("0x31")](){const t=this[za("0x19")][za("0x1b")][za("0x2e")](za("0x9"));if(this.editor.plugins[za("0xa")]("TablePropertiesEditing")){for(const e of this[za("0x1f")])t.enableCommand(e,((t,n)=>{const o=this[za("0x19")].model[za("0x33")][za("0x22")][za("0x25")]()[za("0x15")](za("0x10"));this[za("0x3")](e,[o],this[za("0x1f")],za("0x1f"),t,n)}));t[za("0xb")][za("0xe")](za("0x30"),za("0x1f"),"accept",t[za("0xb")][za("0x5")](za("0x30"),null,za("0x28"))),t[za("0xb")][za("0xe")]("formatBlock",za("0x1f"),za("0x28"),((t,e)=>this.handleDiscardAction(this.tableProperties,t,e))),t[za("0xb")][za("0xe")](za("0x30"),za("0x1f"),za("0x34"),(()=>!1))}if(this.editor[za("0x1b")].has(za("0xd"))){for(const e of this[za("0x1")])t[za("0x2f")](e,((t,n)=>{const o=this[za("0x19")][za("0x1b")][za("0x2e")](za("0x17"))[za("0x6")](this[za("0x19")][za("0x2d")][za("0x33")].selection);this[za("0x3")](e,o,this.tableCellProperties,za("0x1"),t,n)}));t._suggestionFactory[za("0xe")]("formatBlock",za("0x1"),za("0x14"),t[za("0xb")].getSuggestionCallback("formatBlock",null,"discard")),t._suggestionFactory[za("0xe")]("formatBlock",za("0x1"),za("0x28"),((t,e)=>this[za("0x2")](this.tableCellProperties,t,e))),t[za("0xb")].registerCustomCallback(za("0x30"),"tableCellProperties",za("0x34"),(()=>!1))}t[za("0x8")][za("0xc")]((t=>this[za("0x0")](t)))}[za("0x3")](t,e,n,o,r,i){const s=this.editor[za("0x1b")][za("0x2e")](za("0x9"));this[za("0x19")][za("0x2d")].enqueueChange(i[za("0x2c")],(()=>{for(const t of e)if(this[za("0x12")](t,o))r(i);else{const e={};for(const o of n){const n=t[za("0x32")](o);void 0!==n&&(e[o]=n)}r(i),s.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[za("0x2")](t,e,n){const o=e[0][za("0x1e")][za("0x35")],r=n[za("0x1d")][0];this.editor[za("0x2d")].change((e=>{for(const n of t)void 0!==r[n]?e.setAttribute(n,r[n],o):e[za("0x2b")](n,o)}))}handleSuggestionDescription(t){if(t[za("0x4")])switch(t[za("0x1a")]){case za("0x1f"):return{type:za("0x27"),content:Qo(this[za("0x19")].locale,za("0xf"))};case za("0x1"):return{type:za("0x27"),content:Qo(this[za("0x19")][za("0x18")],"*Format:* change table cell properties")}}}[za("0x12")](t,e){const n=this[za("0x19")][za("0x1b")][za("0x2e")](za("0x9"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[za("0x7")]();if(o[za("0x1a")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=rt?rt.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,r,i){var s=-1,x=e.length;for(o||(o=tc),i||(i=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,r,i):sn(i,a):r||(i[i.length]=a)}return i};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var rc=Math.max;const ic=function(t,e,n){return e=rc(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,i=rc(o.length-e,0),s=Array(i);++r<i;)s[r]=o[e+r];r=-1;for(var x=Array(e+1);++r<e;)x[r]=o[r];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),r=16-(o-n);if(n=o,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(ic(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=bo(e,t),o||(o=e.length>1),e})),ie(t,dn(t),n),o&&(n=to(n,7,Ja));for(var r=e.length;r--;)Ko(n,e[r]);return n})),uc=["open","unshift","formatBlock:chain","moveTargetPosition","substr","suggestionLoaded","getShiftedBy","isIntersectingWithRange","registerPostFixer","deletion","addMarker:suggestion:formatBlock","markMultiRangeBlockFormat","documentSelection","skipNestingCheck","key","then","_joinSuggestions","accept","oldRange","isArray","_reduceExistingSuggestions","stop","newValue","start","schema","after","requires","startsWith","change:activeMarkers","root","_suggestionFactory","getSuggestions","isCollapsed","isObject","attributeOldValue","splitPosition","formatInline:discard","_splitMarkerName","change:_saved","isTouching","_isBlockAttribute","_trackFormatChanges","getRanges","head","track-changes-suggestion-data-mismatch","removed","ck-suggestion-marker-formatBlock","getCommentThread","addMarker:suggestion","ENTER","_registerDefaultCallbacks","notReady","_editor","_createSuggestion","next","suggestionUnloaded","formatBlock:","markMultiRangeDeletion","high","createRangeOn","_setSuggestionData","_initAriaMarkerChangeAnnouncements","markMultiRangeInsertion","_model","createSelection","substring","init","_refreshAttributeSuggestionsChain","track-changes-adapter-already-set","addCommentThread","size","_commentsRepository","containerElement","formatBlock:discard","_isForcedDefaultExecutionBlock","get","ck-suggestion-marker--active","hasSuggestion","removeMarker:suggestion:formatBlock","trackChangesCommand","fire","values","originalSuggestionId","addMarker:suggestion:attribute","set","getAllAdjacentSuggestions","addSuggestionData","setSelection","rootName","insertion:chain","unbindElementFromMarkerName","$text","_processAttributeChanges","acceptSelectedSuggestions","acceptAllSuggestions","createPositionBefore","updateMarker","newRange","acceptSuggestion","options","multipleBlocks","resolve","differ","item","elementToElement","suggestion-type","marker-count","isRemovable","formatInline","selection","always","addClass","_recordAttributeChanges","data","dataToMarker","_checkSuggestionCorrectness","_blockAttributeKeys","_customCallbacks","map","addHighlight","insertContent","_rangeIsInLocalUserInsertion","collaboration.channelId","getChangedMarkers","getSuggestion","insertion:discard","ready","lowest","toUpperCase","_mergeNestedSuggestions","suggestion","attributeKey","type","isLocal","trackChanges","containsItem","isSelectable","addAttribute","insert","addUser","refresh","isInContent","discard","parent","nodeBefore","enableCommand","insertion:accept","previous","Users","group","widget","TrackChangesEditing","isBefore","_enableDefaultAttributesIntegration","consume","isExternal","_cutOutSuggestionMarker","getItems","commentThread","toJSON","removeMarker","discardSelectedSuggestions","filter","removeClass","trackChanges.trackFormatChanges","join","suggestion:","from","insertion:","formatInline:","fetchCommentThread","tablePasteChainId","highest","ck-suggestion-marker","getIntersection","createRangeIn","value","some","sort","_removeSuggestion","getUser","_updateSuggestionData","_suggestions","rejected","LEAVE","_defaultCallbacks","setTo","_findSuggestions","pluginName","update:suggestion","createRange","deletion:accept","deletion:join","batch","oldValue","_registerBlockAttribute","containsRange","forward","_getExternalAuthor","CommentsRepository","_refreshSuggestionsChain","conversion","isAfter","_addSuggestionMarker","getSuggestionCallback","track-changes-adapter-missing-getsuggestion","split","commandName","createPositionAfter","formatBlock:accept","format","removeMarker:suggestion:attribute","getLastMatchingPosition","document","$elementName","editor","end","_recordAttributeSuggestionsFromVersion","fromRange","dataDowncast","attribute:","getCustomProperty","delete","deleteContent","subType","isLimit","getFirstRange","attribute","isEqual","remove","getMultiRangeId","version","addMarker","targetPosition","has","registerCustomCallback","_inlineAttributeKeys","addRange","getRange","getNearestSelectionRange","elementEnd","splice","PENDING_ACTION_SUGGESTION","element","forEach","add","formatInline:accept","insertion","reconvertMarker","_registerInlineAttribute","editingDowncast","_getAuthorFromId","upcast","hasComments","backward","locale","forceDefaultExecution","mapper","getOperations","attributes","range","push","never","changeAttribute","markAttributeChange","stopListening","isOwn","oldName","formatBlock","removeComment","markDeletion","change","writer","author","formatInline:chain","enqueueChange","low","authoredAt","deletion:discard","data-suggestion","unbind","trackChanges.mergeNestedSuggestions","name","@external","plugins","getContainedElement","suggestion:attribute:","attributeNewValue","suggestionChanged","isMultiRange","length","getChanges","consumable","announce","before","_handleNewSuggestionMarker","howMany","markInsertion","return","markers","listenTo","authorName","detach","keys","pop","newName","nodeAfter","markerReady","isAtEnd","markerName","getAncestors","getAttribute","addMarkerName","$graveyard","commands","execute","createElement","history","removeMarkers","discardSuggestion","_getSuggestionData","_breakSuggestionMarker","isBlock","isDocumentOperation","addComment","find","attribute:discard","comments","_isDataLoaded","every","setAttribute","_enabledCommands","attribute:accept","buildSuggestion","PendingActions","$marker","model","adapter","for","_setSuggestionRange","markerToHighlight","multi","_suggestionState","createPositionAt","activeMarkers","track-changes-suggestion-not-found","accepted","config","_getMarkerAnnouncementText","formatGroupId","updateSuggestion","_joinWithAdjacentSuggestions","removeAttribute","isInsideObject","fromCharCode","move","clone","_onDiscard","isNextTo","containsPosition","_addThreadToSuggestion","getDifference","_SUGGESTION_ANNOUNCEMENT","enableReadOnlyMode","showSuggestionHighlights","_adapter","clear","markerNameToElements","deletion:","markBlockFormat","meta","position","createdAt","getFirstMarker","default","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","groupId","getMarkers","track-changes-user-not-found","addSuggestion","_processAttributeSuggestions","_saved","$textProxy","discardAllSuggestions","includes","assign","containsRangeInObject"];var dc,gc;dc=uc,gc=172,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc="$elementName";class hc extends t.Plugin{static get[fc("0xf1")](){return["CommentsRepository",i.Users,t.PendingActions,cr,fr,_r,kr,Lr,Dr,Hr,ti,ii,li,hi,Ti,Ri,Mi,Pi,Vi,Xi,Qi,rs,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,px,Cx,Ix,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0x10")](){return fc("0x16e")}constructor(t){function e(t){return t[fc("0x14d")]((t=>String[fc("0xb6")](t)))[fc("0x17c")]("")}super(t),this[fc("0x2d")]=null,this[fc("0x12b")](fc("0xac"),[]),this.on(fc("0xf3"),((e,n,o,r)=>{this._model[fc("0x63")]((()=>{for(const e of[...r,...o])this._model[fc("0x7f")][fc("0x3e")](e)&&t.editing[fc("0x4c")](e)}))})),this._descriptionFactory=new rr(this[fc("0x2b")][fc("0xa4")][fc("0xef")],this[fc("0x2b")].locale),this[fc("0xc1")]=null,this[fc("0xf5")]=new bc(this[fc("0x2b")]),this._suggestions=new Map,this._commentsRepository=t.plugins[fc("0x122")](fc("0x1b")),this[fc("0x9f")]=new Set,this[fc("0x116")]=this.editor[fc("0xa4")],this._suggestionState=new WeakMap,this[fc("0x121")]=!1,this._blockAttributeKeys=new Set([fc("0x2a")]),this._inlineAttributeKeys=new Set,t[fc("0xaf")].define(fc("0x17b"),fc("0xca")),this._trackFormatChanges=t[fc("0xaf")][fc("0x122")](fc("0x17b")),t.config.define(fc("0x6d"),!0),this[fc("0x158")]=t[fc("0xaf")][fc("0x122")](fc("0x6d")),this[fc("0x126")]=new d(t,this._enabledCommands),this[fc("0x114")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,52,48,50])}[fc("0x119")](){const t=this.editor,n=(t,e)=>{if(fc("0x37")!=t)return"ck-suggestion-marker-"+t;const n=e.split("|")[0];return this._isBlockAttribute(n)?fc("0x105"):"ck-suggestion-marker-formatInline"};t.conversion[fc("0xa6")](fc("0x4e")).markerToHighlight({model:fc("0x159"),view:t=>{const{id:e,type:o,subType:r}=this[fc("0xfc")](t[fc("0x89")]),i=[fc("0x1"),n(o,r)];let s=3e3;return this[fc("0xac")][fc("0xd4")](t[fc("0x89")])&&(i[fc("0x59")](fc("0x123")),s=3010),fc("0xe0")==o&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x1d")].for(fc("0x2f"))[fc("0x49")]((e=>{e.on(fc("0x107"),((e,n,o)=>{if(!o[fc("0x13a")][fc("0xc0")])return;const r=n.item;if(!r)return;const i=o[fc("0x55")].toViewElement(r);t[fc("0xa4")][fc("0xef")][fc("0xf8")](r)&&i&&!i[fc("0x31")](fc("0x16d"))&&i.is(fc("0x11f"))&&(0,x.toWidget)(i,o[fc("0x64")])}),{priority:fc("0x111")})})),t[fc("0x1d")][fc("0xa6")]("dataDowncast")[fc("0xa8")]({model:fc("0x159"),view:(t,e)=>{if(!e.options[fc("0xc0")])return null;const{type:o,subType:r}=this[fc("0xfc")](t[fc("0x89")]);return{classes:[fc("0x1"),n(o,r)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,r,i)=>{if(!r[fc("0x13e")])return;const{id:s}=this[fc("0xfc")](r[fc("0x89")]);if(n){const t=Ic(this._suggestions[fc("0x122")](s));if(!this[fc("0xff")](t))return}if(r[fc("0x13e")].is(fc("0x144")))return void i[fc("0x78")][fc("0x171")](r[fc("0x13e")],o.name);const x=i[fc("0x55")].toViewElement(r[fc("0x13e")]);if(r[fc("0x13e")].is(fc("0x47"))&&t.model[fc("0xef")][fc("0x96")](r[fc("0x13e")])&&!x[fc("0x31")]("addHighlight")){i[fc("0x64")].addClass([fc("0x1"),"ck-suggestion-marker-formatBlock"],x),i[fc("0x64")].setAttribute("data-suggestion",s,x),i[fc("0x55")].bindElementToMarker(x,r[fc("0x89")]),e&&(this.activeMarkers[fc("0xd4")](r.markerName)?i[fc("0x64")][fc("0x146")](fc("0x123"),x):i.writer[fc("0x17a")](fc("0x123"),x));for(const e of t[fc("0xa4")][fc("0x3")](r[fc("0x13e")])[fc("0x174")]())i[fc("0x78")].consume(e,o[fc("0x6e")]);i[fc("0x78")].consume(r[fc("0x13e")],o.name)}};t[fc("0x1d")][fc("0xa6")]("dataDowncast")[fc("0x49")]((t=>{t.on(fc("0xe1"),((t,e,n)=>{n[fc("0x13a")].showSuggestionHighlights&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x0")})})),t[fc("0x1d")][fc("0xa6")](fc("0x2f")).add((t=>{t.on(fc("0x12a"),((t,e,n)=>{n[fc("0x13a")][fc("0xc0")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x0")})})),t[fc("0x1d")][fc("0xa6")](fc("0x2f")).markerToData({model:fc("0x159"),view:(t,e)=>e[fc("0x13a")].showSuggestionHighlights?null:{group:"suggestion",name:t[fc("0xdb")](11)}}),t[fc("0x1d")][fc("0xa6")]("upcast")[fc("0x13f")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x17d")+t[fc("0x8b")](fc("0x140"))+":"+t.getAttribute("id");return t.getAttribute(fc("0x141"))&&(n+=":"+t[fc("0x8b")]("marker-count")),e[fc("0x90")](fc("0xa3"),{"data-name":n})}}),t[fc("0x1d")][fc("0xa6")](fc("0x50"))[fc("0x149")]({view:fc("0x159")}),t.conversion[fc("0xa6")](fc("0x4e")).add((t=>{t.on("addMarker:suggestion:formatBlock",o(),{priority:fc("0x111")})})),t[fc("0x1d")][fc("0xa6")](fc("0x4e"))[fc("0x49")]((t=>{t.on(fc("0x12a"),o({isAttributeSuggestion:!0}),{priority:fc("0x111")})})),t.conversion[fc("0xa6")](fc("0x4e"))[fc("0x49")]((t=>{t.on(fc("0x125"),((t,e,n)=>{const o=n.mapper[fc("0xc3")](e[fc("0x89")]);if(o)for(const t of o)t[fc("0x31")](fc("0x14e"))||(n[fc("0x64")][fc("0x17a")]([fc("0x1"),"ck-suggestion-marker-formatBlock",fc("0x123")],t),n[fc("0x64")].removeAttribute(fc("0x6b"),t),n[fc("0x55")][fc("0x131")](t,e.markerName))}),{priority:fc("0x111")})})),t.conversion[fc("0xa6")]("editingDowncast")[fc("0x49")]((t=>{t.on(fc("0x27"),((t,e,n)=>{const o=n[fc("0x55")][fc("0xc3")](e.markerName);if(!o)return;const{id:r}=this[fc("0xfc")](e.markerName),i=Ic(this._suggestions[fc("0x122")](r));if(this[fc("0xff")](i))for(const t of o)t[fc("0x31")]("addHighlight")||(n.writer[fc("0x17a")]([fc("0x1"),fc("0x105"),fc("0x123")],t),n[fc("0x64")][fc("0xb4")]("data-suggestion",t),n[fc("0x55")].unbindElementFromMarkerName(t,e[fc("0x89")]))}),{priority:fc("0x111")})})),t[fc("0xa4")][fc("0x29")][fc("0xdf")]((e=>{let n=!1;const o=Array[fc("0x17e")](t[fc("0xa4")][fc("0x29")].differ[fc("0x152")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0xfc")](x);if(fc("0x159")!==o)continue;const d=this[fc("0xa")][fc("0x122")](u);if(null!=a.newRange){fc("0x143")==c&&(n=n||_c(a[fc("0x138")],x,e,t[fc("0xa4")].schema));const o=fc("0x37")==c&&this._isBlockAttribute(l[fc("0x22")]("|")[0]);if(a.newRange.isCollapsed||"$graveyard"==a[fc("0x138")][fc("0xf4")][fc("0x12f")]||fc("0x60")==c&&!yc(a.newRange)||o&&!yc(a[fc("0x138")])||fc("0xe0")==c&&(Ec(s=a.newRange)||(i=s)[fc("0xee")][fc("0x166")]==i.end[fc("0x167")]&&i[fc("0xee")][fc("0x88")]))e[fc("0x177")](x),n=!0;else{if(!d||!d[fc("0x164")])continue;r[fc("0x49")](d)}}}var i,s;return r[fc("0x11d")]>0&&(n=!!this[fc("0xb3")](r)||n),n})),t[fc("0xa4")].document.registerPostFixer((e=>{let n=!1;for(const o of t[fc("0xa4")][fc("0x29")][fc("0x13d")][fc("0x77")]())if(fc("0x161")==o.type)for(const o of this[fc("0xa")][fc("0x128")]()){if(o[fc("0x75")]||!o[fc("0x164")])continue;const r="formatBlock"==o[fc("0x15b")],i=Ic(o),s=i&&this._isBlockAttribute(i);if(!r&&!s)continue;const x=o[fc("0x36")]();if(x[fc("0xee")][fc("0x166")]!=x[fc("0x2c")][fc("0x166")]&&!x[fc("0x2c")].isAtEnd){const r=t.model[fc("0xab")](x[fc("0xee")][fc("0x86")],fc("0x2c")),i=t[fc("0xa4")][fc("0x12")](x[fc("0xee")],r);e[fc("0x137")](o[fc("0xc9")](),{range:i}),n=!0}}return n})),t[fc("0xa4")].document[fc("0xdf")]((t=>this[fc("0x133")](t))),t[fc("0xa4")][fc("0x29")][fc("0xdf")]((t=>!t.batch[fc("0x15c")]&&this[fc("0xd0")](t))),t[fc("0xa4")][fc("0x7f")].on(fc("0x11"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e.name),n=this[fc("0xa")][fc("0x122")](t);n&&n[fc("0x8c")](e.name)}})),t[fc("0xa4")].document.on("change:data",(()=>{const e=Array.from(t[fc("0xa4")][fc("0x29")][fc("0x13d")][fc("0x152")]())[fc("0x179")]((t=>fc("0x159")===this[fc("0xfc")](t[fc("0x6e")])[fc("0x16c")]));if(0===e[fc("0x76")])return;e[fc("0x6")](((t,e)=>{const n=t[fc("0x148")][fc("0xe9")],o=e[fc("0x148")][fc("0xe9")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0xee")][fc("0x16f")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[fc("0xfc")](t);if(null===r[fc("0xe9")]){const e=this[fc("0x7b")](t);o.add(e)}else{const t=this._suggestions[fc("0x122")](e);null!==r.newRange||t[fc("0x164")]?(n[fc("0x49")](t[fc("0x102")]),o[fc("0x49")](t)):this[fc("0x7")](t)}}o[fc("0x11d")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[fc("0x127")](fc("0x74"),t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this._suggestions[fc("0x11d")])return;if(!o[fc("0x97")])return;if(o[fc("0x15")].isUndo||!o[fc("0x15")][fc("0x15c")])return;let r,i;switch(o[fc("0x15b")]){case fc("0x161"):r=t[fc("0xa4")][fc("0xab")](o[fc("0xc7")]),i=r.getShiftedBy(o[fc("0x7c")]);break;case fc("0x22"):r=t[fc("0xa4")][fc("0xab")](o[fc("0xfa")]),i=t[fc("0xa4")].createPositionAt(o[fc("0xda")]);break;case fc("0xb7"):r=t[fc("0xa4")][fc("0xab")](o[fc("0x3d")]),i=r[fc("0xdd")](o[fc("0x7c")]);break;default:return}const s=t[fc("0xa4")].createRange(r,i);t[fc("0xa4")][fc("0x63")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0xf")](s)){if(t[fc("0x75")])continue;if(fc("0x143")==t[fc("0x15b")])continue;const n=Ic(t);if(n&&this._isBlockAttribute(n)&&fc("0x22")!=o[fc("0x15b")])continue;const x=t[fc("0x148")]&&t.data[fc("0x13b")];(fc("0x60")!=t.type||fc("0x22")==o[fc("0x15b")]&&!x)&&(e[fc("0xd6")]||fc("0x4b")==t[fc("0x15b")]&&e[fc("0x5e")]||t[fc("0x36")]()[fc("0x18")](s)&&this[fc("0x95")](t,r,i))}}))}),{priority:fc("0x156")}),t[fc("0xa4")].on(fc("0x33"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[fc("0x54")])return;if(this[fc("0x121")])return;if(!this[fc("0x126")][fc("0x4")])return;if(o.isCollapsed)return;const i=t[fc("0xa4")][fc("0xef")],{start:s,end:x}=o[fc("0x36")](),a=s[fc("0x86")]&&i[fc("0x35")](s[fc("0x86")])?null:i[fc("0x43")](s,fc("0x19")),c=x[fc("0x167")]&&i[fc("0x35")](x.nodeBefore)?null:i[fc("0x43")](x,fc("0x52")),l=t[fc("0xa4")][fc("0x12")](a?a.start:s,c?c[fc("0x2c")]:x);t[fc("0xa4")][fc("0x63")]((e=>{this[fc("0x62")](l);const n=t[fc("0xa4")][fc("0xef")][fc("0x43")](l[fc("0xee")]);o.is(fc("0xe3"))?e[fc("0x12e")](n):o[fc("0xe")](n)})),e[fc("0xec")]()}),{priority:e.priorities.normal+10}),t[fc("0xa4")].on(fc("0x14f"),((e,n)=>{const o=n[n[fc("0x76")]-1];o&&o[fc("0x54")]||this[fc("0x121")]||this[fc("0x126")].value&&(t[fc("0xa4")].change((()=>{let o=t.model.insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0x7e")]=o[fc("0xb8")]();const r=o[fc("0x2c")][fc("0x167")],i=t[fc("0xa4")][fc("0xef")];r&&i[fc("0x96")](r)&&!i[fc("0xf8")](r)&&(o=t[fc("0xa4")][fc("0x12")](o[fc("0xee")],t[fc("0xa4")].createPositionAt(r,"end"))),this.markInsertion(o)})),e.stop())}),{priority:fc("0x111")}),this[fc("0x2b")][fc("0x8e")][fc("0x49")](fc("0x15d"),this[fc("0x126")]),this[fc("0x168")](fc("0x15d"));const r=new b(t,this._suggestions);t.commands[fc("0x49")](fc("0x139"),r),this[fc("0x168")]("acceptSuggestion");const i=new y(t,this[fc("0xa")]);t[fc("0x8e")][fc("0x49")](fc("0x93"),i),this.enableCommand(fc("0x93")),t.commands[fc("0x49")](fc("0x135"),new F(t,r,this[fc("0xa")])),this[fc("0x168")](fc("0x135")),t.commands.add(fc("0xd3"),new F(t,i,this._suggestions)),this[fc("0x168")](fc("0xd3")),t.commands[fc("0x49")](fc("0x134"),new j(t,r,this._suggestions)),this[fc("0x168")](fc("0x134")),t[fc("0x8e")][fc("0x49")](fc("0x178"),new j(t,i,this[fc("0xa")])),this.enableCommand(fc("0x178"));const s=t[fc("0x70")].get(fc("0x1b"));this[fc("0x80")](s,fc("0x98"),((t,{threadId:e})=>{const n=this[fc("0xa")][fc("0x122")](e);n&&n.commentThread&&1===n[fc("0x175")][fc("0x76")]&&this[fc("0x9")](e,{hasComments:!0})}),{priority:fc("0x68")}),this[fc("0x80")](s,fc("0x61"),((t,{threadId:e})=>{const n=this._suggestions[fc("0x122")](e);n&&n[fc("0x175")]&&!n[fc("0x175")][fc("0x76")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:fc("0x68")})}set[fc("0xa5")](t){if(this[fc("0xc1")])throw new e.CKEditorError(fc("0x11b"),this);this[fc("0xc1")]=t}get[fc("0xa5")](){return this._adapter}[fc("0xf6")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0xa")].values())t&&!e[fc("0x164")]||n.push(e);return e?n[fc("0x14d")]((t=>t[fc("0x176")]())):n}[fc("0x153")](t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(fc("0xad"),this);return n}[fc("0x124")](t){return this[fc("0xa")].has(t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[r,i]=t[fc("0x15b")][fc("0x22")](":"),s=this._suggestions[fc("0x122")](n)||this._createSuggestion(r,i,n,e,o);if(this[fc("0xbc")](s),this[fc("0x14a")](s,r,i||null,e),s[fc("0xc8")]=t.createdAt,s._isDataLoaded=!0,o&&o[fc("0x6f")]){const t=o[fc("0x6f")],e=this[fc("0x1a")](t[fc("0x81")]);s[fc("0x69")]=t[fc("0xc8")],s[fc("0x65")]=e,s[fc("0x172")]=!0}else s.authoredAt=t[fc("0xc8")];switch(t[fc("0x148")]&&(s[fc("0x148")]=t[fc("0x148")]),t.attributes&&(s[fc("0x57")]=t[fc("0x57")]),this._adapter&&this._adapter[fc("0xcf")]||(s[fc("0xd1")]=!0),this[fc("0xaa")][fc("0x122")](s)){case"notReady":this[fc("0xaa")][fc("0x12b")](s,"dataReady");break;case fc("0x87"):s[fc("0x164")]?(this[fc("0x1c")](new Set([s])),this[fc("0xb3")](new Set([s])),this[fc("0xaa")][fc("0x12b")](s,fc("0x155")),this.fire(fc("0xdc"),s)):this[fc("0xaa")].set(s,fc("0x104"))}return s}[fc("0x139")](t){this[fc("0x54")]((()=>{this[fc("0x2b")][fc("0xa4")][fc("0x63")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[fc("0xe8")]()}))}))}[fc("0x93")](t){this[fc("0x54")]((()=>{this[fc("0x2b")][fc("0xa4")][fc("0x63")]((()=>{for(const e of t[fc("0x12c")]())e[fc("0x165")]()}))}))}enableCommand(t,n){const o=this[fc("0x2b")][fc("0x8e")][fc("0x122")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this[fc("0x9f")][fc("0x3e")](o))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this[fc("0x9f")][fc("0x49")](o),n&&o.on(fc("0x8f"),((t,e)=>{this.trackChangesCommand[fc("0x4")]&&(this[fc("0x121")]||(e.length>0&&e[e.length-1]&&e[e[fc("0x76")]-1][fc("0x54")]?e[fc("0x84")]():(t[fc("0x7e")]=n(((...t)=>o[fc("0x8f")](...t,{forceDefaultExecution:!0})),...e),t[fc("0xec")]())))}),{priority:"high"})}forceDefaultExecution(t){let n,o;const r=this._isForcedDefaultExecutionBlock;this[fc("0x121")]=!0;try{n=t()}catch(t){o=t}return r||(this[fc("0x121")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[fc("0x7d")](t,n=null,o={}){if(t[fc("0xf7")])return null;const r=this[fc("0x2b")][fc("0x70")][fc("0x122")](fc("0x16b")).me;for(const{suggestion:e,meta:r}of this[fc("0xf")](t,fc("0x4b")))if(r[fc("0x5e")]){if(!r[fc("0xba")]){if(r[fc("0xd6")]){if(!this[fc("0x158")]||!Sc(e,o))continue;return e}if(Sc(e,o))return e;this[fc("0x95")](e,t.start,t[fc("0x2c")]);break}if(n==e[fc("0x34")]&&Sc(e,o)){const n=e[fc("0x36")]();return n.start[fc("0x38")](t.end)?this[fc("0xa7")](e,this._model.createRange(t[fc("0xee")],n[fc("0x2c")])):this[fc("0xa7")](e,this._model[fc("0x12")](n[fc("0xee")],t[fc("0x2c")])),e}}const i=(0,e.uid)(),s=r.id,x=n?fc("0x17f")+n:fc("0x4b"),a=this[fc("0x113")]({id:i,type:x,createdAt:new Date,authorId:s,attributes:o});return this._addSuggestionMarker(x,i,s,t),a}[fc("0x115")](t,n=fc("0xa9"),o={}){const r=this.editor.plugins[fc("0x122")](fc("0x16b")).me,i=this[fc("0xf5")][fc("0x20")](fc("0x4b"),n,fc("0x17c"));for(const e of this.getSuggestions())if(e.author.id==r.id&&"insertion"==e[fc("0x15b")]&&e[fc("0x34")]==n&&Sc(e,o)&&(i(e.getRanges(),t)||i(t,e[fc("0x101")]()))){for(const n of t)e[fc("0x41")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x4b"))){if(!n[fc("0x5e")])continue;if(!this[fc("0x158")]&&n[fc("0xd6")])continue;if(!Sc(e,o))continue;let r=!0;for(const n of e.getRanges())for(const e of t)if(!n.containsRange(e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a=fc("0x17f")+n,c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,s,x,e,Jo[fc("0x3a")]());return c}markInlineFormat(t,n,o=null,r={}){if(o=o||Tc(n),t[fc("0xf7")])return null;if("never"===this[fc("0x100")]){const e=this[fc("0xf5")].getSuggestionCallback(fc("0x143"),o,"accept");return this[fc("0x54")]((()=>e([t],n,r))),null}const i=this.editor[fc("0x70")][fc("0x122")](fc("0x16b")).me,s=[];if(fc("0x145")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[fc("0xf")](t,fc("0x4b")))n[fc("0x5e")]&&!n[fc("0xb5")]&&s[fc("0x59")](...e[fc("0x101")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0x2")](o);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x76")];){const o=n[e][fc("0xbd")](t);n[fc("0x45")](e,1,...o),e+=o[fc("0x76")]}}return n}(t,s);x.length&&this[fc("0x116")].change((()=>{for(const t of x){const e=this[fc("0xf5")][fc("0x20")](fc("0x143"),o,"accept");this[fc("0x54")]((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t.start,a=t.end;for(const{suggestion:e,meta:n}of this[fc("0xf")](t,fc("0x143"))){if(!n.isOwn)continue;if(e[fc("0x34")]!=o)continue;if(!Sc(e,r))continue;const i=e[fc("0x36")]();if(i.containsRange(t,!0))return null;x=x.isBefore(i[fc("0xee")])?x:i[fc("0xee")],a=a[fc("0x1e")](i[fc("0x2c")])?a:i.end,s?i.start[fc("0x16f")](s.getFirstRange().start)?(s[fc("0x92")](),s=e):e[fc("0x92")]():s=e}const c=this[fc("0x116")].createRange(x,a);if(s)this[fc("0xa7")](s,c);else{const t=(0,e.uid)(),s=i.id;this[fc("0x113")]({id:t,type:fc("0x180")+o,data:n,createdAt:new Date,authorId:s,attributes:r}),this[fc("0x1f")](fc("0x180")+o,t,s,c)}}return null}[fc("0xc5")](t,n,o=[],r=null,i={}){n[fc("0xb1")]||(n[fc("0xb1")]=n[fc("0x23")]),n[fc("0x13b")]=t.is(fc("0x58")),r=r||Tc(n);const s=o[fc("0x14d")]((t=>Cc(t,this[fc("0x116")]))),x=t.is("range")?t:Cc(t,this[fc("0x116")]);if(fc("0x5a")===this._trackFormatChanges){const t=this._suggestionFactory.getSuggestionCallback("formatBlock",r,fc("0xe8"));return this[fc("0x54")]((()=>t([x],n,i))),null}s.push(x);let a=!0;for(const t of s)if(!this[fc("0x150")](t)){a=!1;break}if(a&&"always"!==this[fc("0x100")]){const t=this._suggestionFactory[fc("0x20")]("formatBlock",r,fc("0xe8"));return this.forceDefaultExecution((()=>t([x],n,i))),null}let c=null,l=x[fc("0xee")],u=x[fc("0x2c")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,fc("0x60"))){if(!e[fc("0x5e")])continue;if(e[fc("0xba")]||e[fc("0xd6")]||e[fc("0xb5")])continue;if(t[fc("0x148")].formatGroupId!=n[fc("0xb1")])continue;if(!Sc(t,i))continue;const o=t.getFirstRange();if(t[fc("0x34")]==r){if(o[fc("0x18")](x,!0))return null;l=l[fc("0x16f")](o[fc("0xee")])?l:o[fc("0xee")],u=u[fc("0x1e")](o[fc("0x2c")])?u:o[fc("0x2c")],c?o[fc("0xee")][fc("0x16f")](c[fc("0x36")]()[fc("0xee")])?(c[fc("0x92")](),c=t):t.removeMarkers():c=t}else{const e=x.getIntersection(o);this[fc("0x173")](t,e)}}const d=this[fc("0x2b")].plugins[fc("0x122")]("Users").me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0xa7")](c,this[fc("0x116")].createRange(l,u)),c;{const t=this[fc("0x113")]({id:g,type:fc("0x10f")+r,data:n,createdAt:new Date,authorId:f,attributes:i});return this[fc("0x1f")]("formatBlock:"+r,g,f,this._model[fc("0x12")](l,u)),t}}[fc("0xe2")](t,n,o=[],r=null,i={}){n[fc("0xb1")]||(n.formatGroupId=n.commandName);const s=t[0];n[fc("0x13b")]=s.is(fc("0x58")),r=r||Tc(n);const x=o.map((t=>Cc(t,this[fc("0x116")]))),a=s.is(fc("0x58"))?t:t[fc("0x14d")]((t=>Cc(t,this[fc("0x116")])));if(fc("0x5a")===this[fc("0x100")]){const t=this._suggestionFactory[fc("0x20")](fc("0x60"),r,fc("0xe8"));return this[fc("0x54")]((()=>t(a,n,i))),null}x[fc("0x59")](...a);let c=!0;for(const t of x)if(!this[fc("0x150")](t)){c=!1;break}if(c&&fc("0x145")!==this[fc("0x100")]){const t=this[fc("0xf5")].getSuggestionCallback(fc("0x60"),r,"accept");return this.forceDefaultExecution((()=>t(a,n,i))),null}const l=this[fc("0x2b")][fc("0x70")].get(fc("0x16b")).me;for(const t of this.getSuggestions()){if(t.author.id!=l.id)continue;if(fc("0x60")!=t[fc("0x15b")]||t.data[fc("0xb1")]!=n[fc("0xb1")])continue;if(!Sc(t,i))continue;const e=t.subType==r;for(let n=0;n<a.length;n++){const o=a[n];for(const r of t[fc("0xcd")]()){const i=r[fc("0x42")]();if(o[fc("0x38")](i)){e?(a[fc("0x45")](n,1),n--):t[fc("0x177")](r[fc("0x6e")]);break}}}}if(0==a[fc("0x76")])return null;const u=this._suggestionFactory[fc("0x20")]("formatBlock",r,fc("0x17c"));for(const t of this[fc("0xf6")]())if(t[fc("0x65")].id==l.id&&fc("0x60")==t[fc("0x15b")]&&t[fc("0x148")][fc("0xb1")]==n[fc("0xb1")]&&t[fc("0x34")]==r&&Sc(t,i)&&(u(t[fc("0x101")](),a)||u(a,t[fc("0x101")]()))){for(const e of a)t[fc("0x41")](e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0x10f")+r,m=this[fc("0x113")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[fc("0x1f")](f,d,g,t,Jo[fc("0x3a")]());return m}[fc("0x62")](t,n=null,o={}){if(t[fc("0xf7")])return null;const r=this[fc("0x2b")][fc("0x70")][fc("0x122")]("Users").me,i=new s.LiveRange(t[fc("0xee")],t[fc("0x2c")]);for(const{suggestion:t,meta:e}of this._findSuggestions(i,"insertion"))if(e[fc("0x5e")]&&!e[fc("0xba")])if(t[fc("0x75")]){const e=t[fc("0x101")]()[fc("0x179")]((t=>fc("0x8d")!=t[fc("0xf4")].rootName));if(e[fc("0x9d")]((t=>i.containsRange(t,!0)))&&t.discard(),e[fc("0x5")]((t=>t[fc("0x18")](i,!0)))){const t=this[fc("0xf5")].getSuggestionCallback("deletion",n,fc("0xe8"));return this[fc("0x54")]((()=>t([i],null,o))),null}}else{const e=i[fc("0x2")](t[fc("0x36")]());null!==e&&t[fc("0xb9")]([e],null,o)}if(i[fc("0x82")](),i.isCollapsed||fc("0x8d")==i[fc("0xf4")][fc("0x12f")])return null;let x=null,a=i[fc("0xee")],c=i.end;const l=this._findSuggestions(i,fc("0xe0"));for(const{suggestion:t,meta:e}of l){const n=this._model[fc("0x12")](a,c);if(e[fc("0x5e")]&&(this[fc("0x158")]||!e[fc("0xd6")]&&!e[fc("0xb5")]))if(t.isMultiRange){if(!Sc(t,o))continue;let e=!0;for(const o of t[fc("0x101")]()){if(o[fc("0x18")](n,!0))return t;n[fc("0x18")](o)||(e=!1)}e&&t.discard()}else{const e=t[fc("0x36")]();if(e[fc("0x18")](n,!0))return t;if(!Sc(t,o)){n[fc("0x18")](e)?t[fc("0x92")]():e.containsPosition(a)?a=e.end:e[fc("0xbb")](c)&&(c=e.start);continue}a=a[fc("0x16f")](e[fc("0xee")])?a:e.start,c=c[fc("0x1e")](e[fc("0x2c")])?c:e.end,o=Object[fc("0xd5")]({},t.attributes),x?e[fc("0xee")][fc("0x16f")](x.getFirstRange()[fc("0xee")])?(x[fc("0x92")](),x=t):t[fc("0x92")]():x=t}}if(x)return this[fc("0xa7")](x,this[fc("0x116")][fc("0x12")](a,c)),x;{const t=(0,e.uid)(),i=this[fc("0x116")].createRange(a,c),s=r.id,x=n?fc("0xc4")+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x1f")](x,t,s,i),l}}[fc("0x110")](t,n="multi",o={}){const r=this[fc("0x2b")][fc("0x70")][fc("0x122")](fc("0x16b")).me,i=t.map((t=>new s.LiveRange(t[fc("0xee")],t.end))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(i,fc("0x4b")))e[fc("0x5e")]&&!e[fc("0xba")]&&x[fc("0x49")](t);for(const e of x)if(e[fc("0x75")]){const r=e[fc("0x101")]();if((!e[fc("0x57")]||!e[fc("0x57")][fc("0xe4")])&&r.every((t=>i.some((e=>e[fc("0x18")](t,!0)))))&&e.discard(),i[fc("0x9d")]((t=>r.some((e=>e[fc("0x18")](t,!0)))))){const e=this[fc("0xf5")].getSuggestionCallback("deletion",n,fc("0xe8"));return this[fc("0x54")]((()=>e(t,null,o))),null}}else{const t=e[fc("0x36")]();if(i[fc("0x5")]((e=>e[fc("0x18")](t,!0)))&&e[fc("0x165")](),i[fc("0x9d")]((e=>t[fc("0x18")](e,!0)))){const t=this[fc("0xf5")][fc("0x20")](fc("0xe0"),n,fc("0xe8"));return this.forceDefaultExecution((()=>t(i,null,o))),null}}const a=this[fc("0xf5")][fc("0x20")](fc("0xe0"),n,fc("0x17c"));let c=null;for(const t of this[fc("0xf6")]())if(t[fc("0x65")].id==r.id&&t[fc("0x164")]&&fc("0xe0")==t.type&&t[fc("0x34")]==n&&Sc(t,o)&&(a(t.getRanges(),i)||a(i,t[fc("0x101")]())))if(c){if(t[fc("0x175")]&&t[fc("0x175")].length)continue;for(const e of t[fc("0x101")]())c[fc("0xde")](e)||c[fc("0x41")](e);t[fc("0x92")]()}else{c=t;for(const e of i)t.isIntersectingWithRange(e)||t.addRange(e)}if(c)return c;x[fc("0xc2")]();for(const{suggestion:t,meta:e}of this[fc("0xf")](i,fc("0xe0")))e[fc("0x5e")]&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e[fc("0xb5")])&&Sc(t,o)&&x[fc("0x49")](t);for(const t of x){const e=t[fc("0x101")]();if((!o||!o[fc("0xe4")])&&i[fc("0x9d")]((t=>e[fc("0x5")]((e=>e[fc("0x18")](t,!0))))))return t;(!t[fc("0x57")]||!t.attributes[fc("0xe4")])&&e[fc("0x9d")]((t=>i[fc("0x5")]((e=>e[fc("0x18")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=r.id,d="deletion:"+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of i)t.detach(),t.isCollapsed||fc("0x8d")==t[fc("0xf4")][fc("0x12f")]||this[fc("0x1f")](d,l,u,t,Jo[fc("0x3a")]());return g}[fc("0x5c")](t,n,o,r,i){if(t[fc("0xf7")])return[];if(fc("0x5a")===this[fc("0x100")])return[];const s=this[fc("0x2b")][fc("0x70")].get(fc("0x16b")).me.id,x=Array[fc("0x17e")](this[fc("0xa")][fc("0x128")]())[fc("0x179")]((e=>fc("0x37")==e[fc("0x15b")]&&e[fc("0x148")].key==n&&e[fc("0xde")](t)));if(fc("0xca")===this._trackFormatChanges){const e=this[fc("0xf")](t,fc("0x4b")).filter((({meta:t})=>t[fc("0x5e")]&&!t[fc("0xb5")]&&!t[fc("0xba")]))[fc("0x14d")]((({suggestion:t})=>t));x[fc("0xd8")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0x37")==t.type?t.data[fc("0x16")]:void 0,i=t[fc("0x36")](),s=Array.from(a.keys())[fc("0x99")]((t=>t.isIntersecting(i)));if(!s)continue;const x=s[fc("0xbd")](i);this[fc("0xff")](n)&&fc("0x4b")==t[fc("0x15b")]&&0!=x[fc("0x76")]||(a.delete(s),x[fc("0x48")]((t=>{a.set(t,o)})),fc("0x4b")!=t[fc("0x15b")]&&e!=r&&a[fc("0x12b")](s[fc("0x2")](i),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:r};n[fc("0x76")]>37&&console.warn(fc("0xcb"),{key:n});const l=(fc("0x30")+(n+"|")+Tc({newValue:r}))[fc("0x118")](0,60),u=this[fc("0x113")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c.push(u),this[fc("0x1f")](l,x,s,t)}return c}[fc("0x17")](t){this._blockAttributeKeys[fc("0x49")](t)}[fc("0x4d")](t){this[fc("0x40")][fc("0x49")](t)}[fc("0x170")](t,e=[],n=[]){this[fc("0x168")](t,((t,...e)=>{this[fc("0x147")]((()=>{t(...e)}))}));for(const t of e)this[fc("0x4d")](t);for(const t of n)this[fc("0x17")](t)}[fc("0xa7")](t,e){const n=t[fc("0xc9")]();this._model[fc("0x63")]((t=>{t[fc("0x137")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[fc("0x2b")][fc("0xaf")][fc("0x122")](fc("0x151"));this[fc("0x11e")].hasCommentThread(e)||this[fc("0x11e")][fc("0x11c")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0x11e")][fc("0x106")](e);o[fc("0x6c")](fc("0x142")),o.isRemovable=!1,t[fc("0x175")]=o}[fc("0x14a")](t,n,o,r){if(t[fc("0x15b")]!=n||t[fc("0x34")]!=o||t.creator.id!=r)throw this[fc("0x2b")][fc("0xbf")](fc("0x103")),new e.CKEditorError(fc("0x103"),this)}[fc("0x173")](t,n){const o=t[fc("0x36")]();if(n.isEqual(o))t[fc("0x92")]();else if(o[fc("0x18")](n)){const r=this[fc("0x116")].createPositionAt(n[fc("0xee")][fc("0x167")],"end");this[fc("0xa7")](t,this[fc("0x116")][fc("0x12")](o[fc("0xee")],r));const i=(0,e.uid)(),s=t.creator.id,x=t[fc("0x15b")]+":"+t[fc("0x34")];this[fc("0x113")]({id:i,type:x,createdAt:new Date,authorId:s,data:t[fc("0x148")],attributes:t[fc("0x57")]});const a=this[fc("0x116")][fc("0xab")](n[fc("0x2c")][fc("0x166")],fc("0xf0")),c=this[fc("0x116")][fc("0x12")](a,o[fc("0x2c")]);this[fc("0x1f")](x,i,s,c)}else if(o[fc("0xbb")](n.start)){const e=this._model.createPositionAt(n[fc("0xee")][fc("0x167")],"end");this[fc("0xa7")](t,this[fc("0x116")].createRange(o.start,e))}else{const e=this[fc("0x116")][fc("0xab")](n[fc("0x2c")][fc("0x166")],"after");this[fc("0xa7")](t,this[fc("0x116")].createRange(e,o.end))}}[fc("0x150")](t){for(const{suggestion:e,meta:n}of this[fc("0xf")](t,fc("0x4b"))){if(!n[fc("0x5e")])continue;const o=e.getRanges();for(const e of o)if(!t.getDifference(e)[fc("0x76")])return!0}return!1}[fc("0x4f")](t){const n=this.editor[fc("0x70")].get(fc("0x16b"))[fc("0x8")](t);if(!n)throw new e.CKEditorError(fc("0xce"),this);return n}[fc("0x1a")](t){const e=this[fc("0x2b")][fc("0x70")][fc("0x122")]("Users"),n=(0,i.hashObject)("external:"+t);return e[fc("0x8")](n)||e[fc("0x162")]({id:n,name:t})}_createSuggestion(t,e,n,o,r){const i=this[fc("0x4f")](o),s=this[fc("0xf5")][fc("0xa1")](t,e,n,i,r,(t=>this[fc("0x9")](n,{attributes:t})));return this[fc("0x80")](s,"accept",(()=>{this[fc("0x9")](n,{state:fc("0xae")})}),{priority:fc("0x111")}),this[fc("0x80")](s,"discard",(()=>{this._updateSuggestionData(n,{state:fc("0xb")})}),{priority:fc("0x111")}),this._suggestions.set(n,s),this._suggestionState.set(s,fc("0x10a")),s}_splitMarkerName(t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[fc("0x76")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[fc("0x76")]<5?e[3]:e[4],markerCount:6==e[fc("0x76")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const r=t[fc("0x36")](),i=r[fc("0xee")],s=r.end;this[fc("0xa7")](t,this[fc("0x116")][fc("0x12")](i,n));const x=(0,e.uid)(),a=t.creator.id,c=t[fc("0x15b")]+(t.subType?":"+t[fc("0x34")]:"");this[fc("0x113")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x57")],data:t[fc("0x148")]});const l=Ic(t);(fc("0x60")==t[fc("0x15b")]||l&&this._isBlockAttribute(l))&&(o=this[fc("0x116")][fc("0x136")](o[fc("0x166")])),this[fc("0x1f")](c,x,a,this[fc("0x116")][fc("0x12")](o,s))}_findSuggestions(t,e=null){const n=[],o=this[fc("0x2b")][fc("0x70")][fc("0x122")](fc("0x16b")).me;Array[fc("0xea")](t)||(t=[t]);for(const r of this[fc("0xf6")]()){if(!r[fc("0x164")])continue;if(e&&r[fc("0x15b")]!=e)continue;let i=!1;for(const e of r[fc("0x101")]()){for(const s of t){const t=s[fc("0xee")].isEqual(e[fc("0x2c")])||s[fc("0x2c")][fc("0x38")](e[fc("0xee")]);if(t||s[fc("0x2")](e)){const x=s.containsRange(e)&&pc(this[fc("0x116")][fc("0xef")],e[fc("0xee")],s),a=e.containsRange(s)&&pc(this[fc("0x116")].schema,s[fc("0xee")],e);n[fc("0x59")]({suggestion:r,meta:{isOwn:o==r[fc("0x65")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0x1f")](t,e,n,o,r){this._model[fc("0x63")]((i=>{let s=fc("0x17d")+t+":"+e+":"+n;r&&(s=s+":"+r),i[fc("0x3c")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0x7")](t){const e=t.previous,n=t[fc("0x10d")];t[fc("0x16a")]=null,t[fc("0x10d")]=null,null!=e&&(e[fc("0x10d")]=n),null!=n&&(n[fc("0x16a")]=e),fc("0x155")==this[fc("0xaa")][fc("0x122")](t)&&(this[fc("0xaa")][fc("0x12b")](t,fc("0x104")),this.fire(fc("0x10e"),t,e,n))}[fc("0x113")](t){const n=t.id,o=this.addSuggestionData(t);if(this[fc("0xc1")]&&this[fc("0xc1")].addSuggestion){const r=this[fc("0x2b")][fc("0x70")].get(fc("0xa2")),i=o.hasComments,s=o[fc("0x34")]?o[fc("0x15b")]+":"+o[fc("0x34")]:o[fc("0x15b")],x=this[fc("0x2b")][fc("0x53")],a=r.add(Qo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:s,hasComments:i,data:t.data||null,originalSuggestionId:t[fc("0x129")]||null,attributes:o[fc("0x57")]};this[fc("0xc1")][fc("0xcf")](c)[fc("0xe6")]((t=>{o[fc("0xd1")]=!0,r[fc("0x39")](a),t&&t.createdAt&&(this[fc("0xa")][fc("0x122")](n)[fc("0xc8")]=t[fc("0xc8")])})).catch((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[fc("0x2b")][fc("0xa4")][fc("0x67")]({isUndoable:!1},(()=>{o[fc("0x165")]()})),o[fc("0x5d")](),this[fc("0xa")][fc("0x32")](o.id),this[fc("0xaa")][fc("0x32")](o),t}))}return o}[fc("0xff")](t){return this[fc("0x14b")].has(t)}[fc("0x9")](t,e){const n=this.editor.plugins.get(fc("0xa2")),o=this.getSuggestion(t);if(this[fc("0xc1")]&&this[fc("0xc1")][fc("0xb2")])if(o[fc("0xd1")]){const o=n[fc("0x49")](Qo(this.editor[fc("0x53")],fc("0x46")));this._adapter.updateSuggestion(t,e)[fc("0xe6")]((()=>{n[fc("0x39")](o)}))}else o.on(fc("0xfd"),(()=>{this[fc("0x9")](t,e)}))}_getSuggestionData(t){if(!this[fc("0xc1")]||!this._adapter.getSuggestion)throw new e.CKEditorError(fc("0x21"),this);return this[fc("0xc1")][fc("0x153")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:r}=this[fc("0xfc")](t),i=this[fc("0xa")][fc("0x122")](e)||this[fc("0x10c")](n,o,e,r,{});switch(this[fc("0x14a")](i,n,o,r),this[fc("0xaa")][fc("0x122")](i)){case fc("0x10a"):this[fc("0x94")](e).then((t=>{let n=Promise[fc("0x13c")]();t[fc("0x51")]&&(n=this[fc("0x11e")][fc("0x181")]({channelId:this[fc("0x2b")].config.get(fc("0x151")),threadId:e})),n[fc("0xe6")]((()=>{this[fc("0x12d")](t)[fc("0xd1")]=!0}))})),this._suggestionState[fc("0x12b")](i,fc("0x87"));break;case fc("0x104"):this[fc("0x9")](e,{state:fc("0xd7")});case"dataReady":this[fc("0xaa")][fc("0x12b")](i,"ready"),this[fc("0x127")](fc("0xdc"),i);break;case fc("0x155"):this.fire(fc("0x74"),i)}return i[fc("0x8c")](t),i}_refreshSuggestionsChain(t){const e=Array[fc("0x17e")](t),n=e[fc("0x179")]((t=>fc("0x37")==t.type));this[fc("0x11a")](n);const o=e[fc("0x179")]((t=>!t.isMultiRange&&fc("0x37")!=t[fc("0x15b")])),r=this[fc("0xf6")]({skipNotAttached:!0})[fc("0x179")]((t=>!t.isMultiRange&&fc("0x37")!=t[fc("0x15b")])),i=r[fc("0x179")]((e=>!t[fc("0x3e")](e))),s=new Map(r[fc("0x14d")]((t=>[t,this[fc("0xf5")][fc("0x20")](t[fc("0x15b")],t[fc("0x34")],"chain")]))),x=new Map(r[fc("0x14d")]((t=>[t,t[fc("0x36")]()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0x76")];t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0x76")];t++)u(o[t],i,0);const l=new Set;for(let t=0;t<o.length;t++){const e=o[t];!c[fc("0x3e")](e)&&e.previous&&(l.add(e.previous),e[fc("0x16a")][fc("0x10d")]===e&&(e[fc("0x16a")][fc("0x10d")]=null),e[fc("0x16a")]=null),!a[fc("0x3e")](e)&&e[fc("0x10d")]&&(l[fc("0x49")](e[fc("0x10d")]),e[fc("0x10d")][fc("0x16a")]===e&&(e[fc("0x10d")].previous=null),e[fc("0x10d")]=null)}function u(t,e,n){for(let o=n;o<e[fc("0x76")];o++){const n=d(t,e[o]);n&&(n[0][fc("0x10d")]=n[1],n[1][fc("0x16a")]=n[0],a.add(n[0]),c[fc("0x49")](n[1]))}}function d(t,e){if(t[fc("0x65")].id!==e[fc("0x65")].id)return null;const n=s[fc("0x122")](t)(t,e,x[fc("0x122")](t),x[fc("0x122")](e));return n&&s[fc("0x122")](e)(t,e,x[fc("0x122")](t),x.get(e))?n[1][fc("0x175")]&&n[1].commentThread[fc("0x76")]?null:n:null}l[fc("0x11d")]&&this[fc("0x1c")](l)}[fc("0x11a")](t){if(0==t[fc("0x76")])return;const e=this[fc("0xf6")]({skipNotAttached:!0})[fc("0x179")]((t=>"attribute"==t[fc("0x15b")]&&t[fc("0x9c")])),n=[],o=new Map;for(const t of e){const e=(0,i.hashObject)(t[fc("0x57")]);o.has(e)||(o[fc("0x12b")](e,n.length),n[fc("0x59")]([]));const r=o.get(e);n[r].push(t)}!function(){n[fc("0x6")](((t,e)=>{const n=t[0][fc("0xc8")],o=e[0][fc("0xc8")];return n==o?t[0].attributes[fc("0xcc")]<e[0][fc("0x57")][fc("0xcc")]?-1:1:n<o?-1:1}));for(const t of n)t[fc("0x6")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x76")];t++){if(0==n[t][fc("0x76")])continue;const e=[];for(let o=t+1;o<n.length;o++)0!=n[o].length&&r(n[t],n[o])&&e.push(o);for(const o of e)n[t]=n[t].concat(n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0x76")];e++)t[e][fc("0x10d")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x76")];e++)t[e][fc("0x16a")]=t[e-1]||null;function r(t,e){if(t[0].author!==e[0][fc("0x65")])return!1;if(n=t[0],o=e[0],(n[fc("0x51")]||o[fc("0x51")])&&(n[fc("0x51")]&&o[fc("0x51")]||!(n[fc("0x51")]&&o[fc("0xc8")]<n.commentThread[fc("0x9b")][fc("0x122")](0).createdAt||o.hasComments&&n[fc("0xc8")]<o[fc("0x175")][fc("0x9b")][fc("0x122")](0)[fc("0xc8")])))return!1;var n,o;const r=lc(t[0][fc("0x57")],fc("0xcc")),i=lc(e[0][fc("0x57")],fc("0xcc"));return!!Go(r,i)&&(!!t.every((t=>e.some((e=>t[fc("0x36")]()[fc("0x38")](e[fc("0x36")]())))))&&e[fc("0x9d")]((e=>t[fc("0x5")]((t=>e.getFirstRange()[fc("0x38")](t.getFirstRange()))))))}}[fc("0xb3")](t){const e=Array[fc("0x17e")](t),n=this[fc("0xf6")]({skipNotAttached:!0}),o=n[fc("0x179")]((e=>!t[fc("0x3e")](e))),r=new Map(e[fc("0x14d")]((t=>[t,this[fc("0xf5")][fc("0x20")](t.type,t[fc("0x34")],"join")]))),i=new Map(n[fc("0x14d")]((t=>[t,t[fc("0x101")]()])));for(let t=0;t<e.length;t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x76")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x76")];s++){const o=n[s];if(o.type!==e.type||o[fc("0x65")].id!==e[fc("0x65")].id||o[fc("0x34")]!==e[fc("0x34")])continue;if(!kc(e,o))continue;if(fc("0x37")==e.type&&e.data[fc("0x16")]!=o[fc("0x148")][fc("0x16")])continue;if(fc("0x37")==e[fc("0x15b")]&&t._isBlockAttribute(e[fc("0x148")][fc("0xe5")]))continue;if(fc("0x60")==e.type){const n=t[fc("0x2b")][fc("0xa4")],o=e[fc("0x71")]();if(o&&(n[fc("0xef")][fc("0xf8")](o)||n[fc("0xef")][fc("0x35")](o)))continue}const x=r.get(e),a=i[fc("0x122")](e),c=i[fc("0x122")](o),l=e[fc("0x175")]&&e.commentThread[fc("0x76")],u=o[fc("0x175")]&&o[fc("0x175")][fc("0x76")];if(!l&&x(c,a))return t[fc("0xe7")](o,e),i[fc("0x32")](e),!0;if(!u&&x(a,c))return t[fc("0xe7")](e,o),i[fc("0x32")](o),!0}return!1}}[fc("0xe7")](t,e){if(t[fc("0x75")])for(const n of e.getRanges())t[fc("0x41")](n);else{const n=e[fc("0x36")]()[fc("0x2c")];this._setSuggestionRange(t,this[fc("0x116")][fc("0x12")](t[fc("0x36")]()[fc("0xee")],n))}e[fc("0x92")]()}[fc("0xb0")](t,e){const n=t.startsWith(fc("0x26"))||t[fc("0xf2")](fc("0x37"))?"FORMATTING":t[fc("0x157")]();return Qo(this[fc("0x2b")][fc("0x53")],e+"_"+n+fc("0xbe"))}[fc("0x114")](){const t=this[fc("0x2b")];(0,i.surroundingMarkersDetector)(this[fc("0x116")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0xfc")](t.name);if(fc("0x159")===e){o[fc("0x59")](this[fc("0xb0")](n,fc("0xc")));break}}for(const t of n){const{group:e,type:n}=this._splitMarkerName(t.name);if("suggestion"===e){o[fc("0x59")](this[fc("0xb0")](n,fc("0x108")));break}}o[fc("0x76")]&&t.ui.ariaLiveAnnouncer[fc("0x79")](fc("0x15d"),o.join(" "))}))}_processAttributeChanges(t){if(null!==this[fc("0x2d")])return!1;const e=this[fc("0x2b")],n=e[fc("0xa4")][fc("0x29")].differ[fc("0x77")]();if(0==n.length)return!1;const o=[],r=n[fc("0x179")]((t=>"attribute"==t[fc("0x15b")])),i=n[fc("0x179")]((t=>"insert"==t[fc("0x15b")]&&"$text"!=t[fc("0x6e")])),s=n[fc("0x179")]((t=>"remove"==t.type&&fc("0x132")!=t[fc("0x6e")]));for(const t of r)o[fc("0x59")]({key:t[fc("0x15a")],newValue:t[fc("0x73")],oldValue:t[fc("0xf9")],range:(x=t[fc("0x58")],null==x[fc("0x2c")].nodeBefore&&x[fc("0x2c")].parent==x.start[fc("0x86")]?Cc(x[fc("0xee")][fc("0x86")],e[fc("0xa4")]):x)});var x;for(const t of i){const n=s.find((e=>e[fc("0xc7")][fc("0x38")](t.position)));n&&o.push({key:"$elementName",newValue:t[fc("0x6e")],oldValue:n[fc("0x6e")],range:e[fc("0xa4")][fc("0x112")](t[fc("0xc7")][fc("0x86")])})}return 0!=o[fc("0x76")]&&this[fc("0xeb")](t,o)}[fc("0xd0")](t){let e=!1;const n=this[fc("0x2b")][fc("0xa4")].document[fc("0x13d")][fc("0x152")]()[fc("0x179")]((t=>t[fc("0x148")].newRange&&t[fc("0x6e")][fc("0xf2")](fc("0x72"))));for(const o of n){const{subType:n,id:r}=this[fc("0xfc")](o.name),i=n[fc("0x22")]("|")[0];for(const n of this.getSuggestions({skipNotAttached:!0}))n.id!=r&&fc("0x37")==n[fc("0x15b")]&&n[fc("0x148")]&&n[fc("0x148")][fc("0xe5")]==i&&n.getFirstRange().isIntersecting(o[fc("0x148")].newRange)&&(this._reduceSuggestionAttributeRange(n,o[fc("0x148")][fc("0x138")],t),e=!0)}return e}[fc("0x147")](t){if(null!==this[fc("0x2d")])return void t();const n=this[fc("0x2b")];this._recordAttributeSuggestionsFromVersion=n[fc("0xa4")][fc("0x29")][fc("0x3b")],t();const o=new Map;for(const t of n[fc("0xa4")].document[fc("0x91")][fc("0x56")](this._recordAttributeSuggestionsFromVersion))if(["rename",fc("0x160"),"removeAttribute",fc("0x5b")][fc("0xd4")](t[fc("0x15b")])){const e=t[fc("0x15")],n=o[fc("0x122")](e)||[];n[fc("0x59")](t),o.set(e,n)}this[fc("0x2d")]=null;for(const[t,r]of o){const o=(0,e.uid)();n.model.enqueueChange(t,(t=>{const e=[];for(const t of r){let r,i,s,x;if("rename"==t[fc("0x15b")]){const e=t;r=Cc(e[fc("0xc7")][fc("0x86")],n.model),i=fc("0x2a"),s=e[fc("0x85")],x=e[fc("0x5f")]}else{const e=t,o=this._isBlockAttribute(e[fc("0xe5")]),a=this[fc("0x40")][fc("0x3e")](e.key);if(!o&&!a)continue;r=o?Cc(e[fc("0x58")][fc("0xee")].nodeAfter,n[fc("0xa4")]):e[fc("0x58")],i=e[fc("0xe5")],s="removeAttribute"==t[fc("0x15b")]?void 0:e[fc("0xed")],x=e.oldValue}this.markAttributeChange(r,i,x,s,{groupId:o}),e.push({range:r,key:i,newValue:s,oldValue:x})}this[fc("0xeb")](t,e)}))}}_reduceExistingSuggestions(t,e){if(0==e[fc("0x76")])return!1;let n=!1;for(const o of e){const e=this[fc("0xf")](o[fc("0x58")],"attribute")[fc("0x179")]((t=>!t[fc("0xc6")][fc("0xba")]))[fc("0x14d")]((t=>t[fc("0x159")])),r=(0,i.hashObject)({newValue:o[fc("0xed")]});e[fc("0x179")]((t=>{const[e,n]=t[fc("0x34")][fc("0x22")]("|");return e==o[fc("0xe5")]&&n!=r}))[fc("0x48")]((e=>{this._reduceSuggestionAttributeRange(e,o[fc("0x58")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const o=t[fc("0x36")]()[fc("0xbd")](e);0!==o.length?1!==o.length?this[fc("0x95")](t,e[fc("0xee")],e[fc("0x2c")]):this._setSuggestionRange(t,o[0]):n.removeMarker(t.getFirstMarker())}}class bc{constructor(t){this[fc("0x10b")]=t,this[fc("0x116")]=t[fc("0xa4")],this._customCallbacks=new Map,this._defaultCallbacks=new Map,this._registerDefaultCallbacks()}[fc("0xa1")](t,e,n,o,r,i){return new Jo(this[fc("0x116")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:i,onAccept:(...n)=>this[fc("0x20")](t,e,fc("0xe8"))(...n),onDiscard:(...n)=>this[fc("0x20")](t,e,fc("0x165"))(...n)})}[fc("0x3f")](t,e,n,o){const r=t+":"+e+":"+n;this[fc("0x14c")].set(r,o)}[fc("0x20")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[fc("0x122")](o)||this[fc("0xd")][fc("0x122")](t+":"+n)}[fc("0x109")](){const t=()=>!1,e=t=>{t[fc("0x6")](((t,e)=>t[fc("0xee")].isBefore(e[fc("0xee")])?1:-1)),this[fc("0x116")].change((e=>{for(const n of t){let t;t=n[fc("0x2c")][fc("0x88")]&&n.end.parent==n[fc("0xee")].nodeAfter?e[fc("0x117")](n[fc("0xee")][fc("0x86")],"on"):e.createSelection(n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0x116")][fc("0x63")]((n=>{const{commandName:o,commandParams:r=[]}=e,i=t[fc("0x14d")]((t=>(Ec(t)&&(t=this[fc("0x116")][fc("0x12")](t.end)),t)))[fc("0x179")]((t=>fc("0x8d")!==t.root.rootName));if(i[fc("0x76")]<1)return;const x=Array.from(this._model[fc("0x29")][fc("0x144")][fc("0x101")]())[fc("0x14d")]((t=>s.LiveRange[fc("0x2e")](t)));n.setSelection(i);for(const t of this[fc("0x10b")][fc("0x8e")][fc("0x8e")]())t[fc("0x163")]();r.push({forceDefaultExecution:!0}),this._editor[fc("0x8f")](o,...r);const a=x[fc("0x179")]((t=>fc("0x8d")!=t.root.rootName));a[fc("0x76")]>0&&n[fc("0x12e")](a);for(const t of x)t[fc("0x82")]()}))},o=(t,e)=>1==t[fc("0x76")]&&1==e.length&&t[0].end.isEqual(e[0].start),r=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x116")])?[t,e]:Ac(e,t,o,n,this[fc("0x116")])?[e,t]:null;this._defaultCallbacks[fc("0x12b")](fc("0x169"),t),this[fc("0xd")][fc("0x12b")](fc("0x154"),e),this[fc("0xd")].set("insertion:join",o),this[fc("0xd")][fc("0x12b")](fc("0x130"),r),this._defaultCallbacks[fc("0x12b")](fc("0x13"),e),this[fc("0xd")][fc("0x12b")](fc("0x6a"),t),this._defaultCallbacks[fc("0x12b")](fc("0x14"),o),this[fc("0xd")].set("deletion:chain",r),this[fc("0xd")][fc("0x12b")](fc("0x4a"),n),this[fc("0xd")][fc("0x12b")](fc("0xfb"),t),this[fc("0xd")].set("formatInline:join",o),this[fc("0xd")][fc("0x12b")](fc("0x66"),t),this[fc("0xd")][fc("0x12b")](fc("0x25"),n),this._defaultCallbacks[fc("0x12b")](fc("0x120"),t),this._defaultCallbacks[fc("0x12b")]("formatBlock:join",o),this[fc("0xd")][fc("0x12b")](fc("0xd9"),t),this[fc("0xd")][fc("0x12b")](fc("0xa0"),t),this[fc("0xd")][fc("0x12b")](fc("0x9a"),((t,e)=>{if(!e)return;const n=this[fc("0x10b")][fc("0x70")].get(hc);this[fc("0x116")][fc("0x63")]((o=>{if(fc("0x2a")==e[fc("0xe5")])for(const n of t){const t=n[fc("0xee")][fc("0x86")],r=e[fc("0x16")];o.rename(t,r)}else if(n[fc("0xff")](e[fc("0xe5")]))for(const n of t)void 0!==e[fc("0x16")]?o[fc("0x9e")](e[fc("0xe5")],e[fc("0x16")],n[fc("0xee")][fc("0x86")]):o[fc("0xb4")](e[fc("0xe5")],n[fc("0xee")][fc("0x86")]);else for(const n of t)e[fc("0x16")]?o[fc("0x9e")](e[fc("0xe5")],e[fc("0x16")],n):o[fc("0xb4")](e[fc("0xe5")],n)}))})),this[fc("0xd")][fc("0x12b")]("attribute:join",o)}}function pc(t,e,n){for(const o of e.parent[fc("0x8a")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0xf4")]==o)return!1;if(!n[fc("0x15e")](o))return!1;if(t[fc("0xf8")](o)||t.isLimit(o))return!0}return!1}function Ec(t){return t.end.parent==t[fc("0xee")][fc("0x86")]&&t[fc("0x2c")].isAtStart}function _c(t,e,n,o){const r=t=>!t[fc("0x13e")].is(fc("0xd2"))&&!o[fc("0xf8")](t.item),i=t[fc("0xee")][fc("0x28")](r),s=t[fc("0x2c")].getLastMatchingPosition(r,{direction:fc("0x52")});return!(t[fc("0xee")][fc("0x38")](i)&&t[fc("0x2c")].isEqual(s)||(i.isBefore(s)?n[fc("0x137")](e,{range:n.createRange(i,s)}):n[fc("0x177")](e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t[fc("0xee")].nodeAfter;return e&&e.is("element")}function Cc(t,e){const n=e[fc("0xef")][fc("0xf8")](t)||e[fc("0xef")][fc("0x15f")](t);return e[fc("0x12")](e[fc("0xab")](t,fc("0x7a")),n?e[fc("0x24")](t):e.createPositionAt(t,fc("0x2c")))}function Ac(t,e,n,o,r){if(!kc(t,e))return!1;if(n[fc("0x2c")][fc("0x38")](o[fc("0xee")]))return!0;if(t[fc("0x15b")]!=e.type)return!1;if(!n.end[fc("0xfe")](o[fc("0xee")]))return!1;const i=r[fc("0x12")](n.end,o[fc("0xee")]).getWalker();for(const t of i)if(["elementStart",fc("0x44")][fc("0xd4")](t[fc("0x15b")])&&r.schema.isLimit(t[fc("0x13e")]))return!1;return!0}function kc(t,e){return!(!t._isDataLoaded||!e[fc("0x9c")])&&Go(t[fc("0x57")],e[fc("0x57")])}function Sc(t,e){const n=Rc(t[fc("0x57")]),o=Rc(e);if(!t[fc("0x9c")])return!1;for(const t of Object[fc("0x83")](o))if(!Go(n[t],o[t]))return!1;return!0}function Rc(t){const e=Object[fc("0xd5")]({},t);return delete e[fc("0xe4")],delete e[fc("0x182")],e}function Ic(t){return fc("0x37")==t[fc("0x15b")]?t.subType[fc("0x22")]("|")[0]:null}const vc=["commentThreadController","bind","canEditAt","_discardCommand","model","commands","get","view","stopListening","_removePendingAction","_setPendingAction","unbind","PENDING_ACTION_SUGGESTION","acceptSuggestion","add","execute","canAccept","locale","canDiscard","change:isDirty","destroy","PendingActions","isDirty","_editor","listenTo","_acceptCommand","plugins","discardSuggestion","_pendingAction","isEnabled"];var Nc,Lc;Nc=vc,Lc=270,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return vc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Mc("0x4")]=e,this[Mc("0x7")]=n,this[Mc("0x0")]=o,this[Mc("0x17")]=t,this[Mc("0x19")]=t.commands[Mc("0x6")]("acceptSuggestion"),this[Mc("0x3")]=t[Mc("0x5")][Mc("0x6")](Mc("0x1b")),this.view.bind(Mc("0x1d")).to(this[Mc("0x19")],this[Mc("0x3")],((t,e)=>t||e)),this[Mc("0x7")][Mc("0x1")](Mc("0x10")).to(this._acceptCommand,"isEnabled",(t=>t&&this[Mc("0x17")][Mc("0x4")][Mc("0x2")](e.getRanges()))),this[Mc("0x7")][Mc("0x1")](Mc("0x12")).to(this._discardCommand,Mc("0x1d"),(t=>t&&this[Mc("0x17")].model[Mc("0x2")](e.getRanges()))),this._pendingAction=null,n[Mc("0x16")]&&this[Mc("0xa")](),this[Mc("0x18")](n,Mc("0xd"),(()=>this[Mc("0xd")]())),this[Mc("0x18")](n,Mc("0x1b"),(()=>this.discardSuggestion())),this[Mc("0x18")](n,Mc("0x13"),(()=>{n.isDirty?this[Mc("0xa")]():this[Mc("0x9")]()}))}[Mc("0xd")](){this[Mc("0x19")][Mc("0xf")](this[Mc("0x4")].id)}[Mc("0x1b")](){this[Mc("0x3")][Mc("0xf")](this[Mc("0x4")].id)}[Mc("0x14")](){this[Mc("0x7")][Mc("0xb")](Mc("0x1d")),this[Mc("0x7")][Mc("0xb")](Mc("0x10")),this.view[Mc("0xb")](Mc("0x12")),this[Mc("0x8")](),this[Mc("0x0")][Mc("0x14")](),this[Mc("0x1c")]&&this[Mc("0x9")]()}_setPendingAction(){const t=Qo(this._editor[Mc("0x11")],Mc("0xc"));this[Mc("0x1c")]=this[Mc("0x17")][Mc("0x1a")][Mc("0x6")](Mc("0x15"))[Mc("0xe")](t)}_removePendingAction(){null!==this._pendingAction&&this[Mc("0x17")][Mc("0x1a")][Mc("0x6")](Mc("0x15")).remove(this._pendingAction),this[Mc("0x1c")]=null}}const Oc=["length","commentThread","removeComment","disabledSubmit","commentInputView","isActive","_model","bind","CommentView","focus","authoredAt","descriptionParts","editorConfig","isDirty","editor","locale","updateComment","setData","value","addComment","delegate","showInput","destroy","cancel","isEnabled","_config","_localUser","submit","_createCommentThreadInputView","canAccept","set","commentsListView","isReadOnly","disableComments","canDiscard","hasDirtyComment","_createCommentViews","commentThreadInputView"];var Fc,Dc;Fc=Oc,Dc=114,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends r.View{constructor(t,e,n,o){super(t),this[Bc("0x1f")]=null,this.commentThreadInputView=null,this[Bc("0x1e")](Bc("0x5"),!1),this.set("authoredAt",e[Bc("0xa")]),this[Bc("0x7")](Bc("0xa")).to(e),this[Bc("0x1e")](Bc("0xb"),[]),this[Bc("0x1e")](Bc("0xd"),!1),this[Bc("0x1e")](Bc("0x18"),!1),this[Bc("0x1e")](Bc("0x1d"),!1),this.set(Bc("0x22"),!1),this._model=e,this[Bc("0x1a")]=n,this._config=o,o[Bc("0x21")]?this[Bc("0x1e")](Bc("0x0"),1):this[Bc("0x24")]()}[Bc("0x9")](){this.element[Bc("0x9")]()}destroy(){this[Bc("0x1f")]&&this[Bc("0x1f")][Bc("0x16")](),this[Bc("0x25")]&&this[Bc("0x25")][Bc("0x16")](),super[Bc("0x16")]()}[Bc("0x24")](){const{CommentsListView:t}=this[Bc("0x19")];this[Bc("0x1f")]=new t(this[Bc("0xf")],this[Bc("0x6")].commentThread,Object.assign({CommentView:this._config[Bc("0x8")]},this[Bc("0x19")])),this[Bc("0x1f")][Bc("0x14")](Bc("0x2")).to(this),this[Bc("0x1f")].delegate(Bc("0x10")).to(this),this[Bc("0x1f")].bind(Bc("0x5")).to(this),this[Bc("0x1e")](Bc("0x0"),this[Bc("0x1f")][Bc("0x0")]+1),this[Bc("0x7")](Bc("0x0")).to(this[Bc("0x1f")],Bc("0x0"),(t=>t+1)),this[Bc("0x25")]=this[Bc("0x1c")](),this.on("removeComment",(()=>this[Bc("0x9")]())),this.bind(Bc("0xd")).to(this[Bc("0x1f")],Bc("0x23"),this[Bc("0x25")][Bc("0x4")],Bc("0x12"),((t,e)=>t||!!e))}[Bc("0x1c")](){const{CommentThreadInputView:t}=this[Bc("0x19")],e=new t(this[Bc("0xf")],this._localUser,this[Bc("0x19")][Bc("0xc")]),n=e[Bc("0x4")];return e[Bc("0x7")](Bc("0x15")).to(this,Bc("0x5"),this[Bc("0x6")][Bc("0x1")],Bc("0x20"),n,Bc("0x12"),((t,e,n)=>!!n||t&&!e)),n.on(Bc("0x1b"),((t,e)=>{this.fire(Bc("0x13"),e),n[Bc("0xe")][Bc("0x11")]("")})),n.on(Bc("0x17"),(()=>this[Bc("0x9")]())),n.bind(Bc("0x3")).to(this[Bc("0x6")][Bc("0x1")],Bc("0x20")),e}}const Uc=["ck-suggestion__info-name","ck-annotation__user","extendTemplate","acceptButton","div","join","bind","userView","editorDestroyed","locale","@external","ck-suggestion--disabled-comments","render","ck-comment__info-time",'" title="',"_config","type","querySelector","commentThreadInputView","isEnabled","author","authoredAt","ck-comment__external","createElement","creator","EXTERNAL_AVATAR","description","delegate","discardButton","cancel","canAccept","disableComments","value","commentsListView","span","innerHTML","ck-suggestion-wrapper","ck-annotation","ck-annotation__content-wrapper","getUserViewNotificationText","title","set","split",".ck-annotation__content-wrapper","execute","descriptionParts","EXTERNAL_IMPORT_WORD_SUGGESTION","getTemplate","ck-annotation__info-name","ck-suggestion-","setTemplate","ck-suggestion--accept","ck-suggestion--discard","check",'"></span>',"ck-suggestion__actions","change:description","discardSuggestion",'<span class="ck-suggestion-type">',"ck-suggestion__user","source","ck-suggestion","_descriptionElement","children","push",'<span class="ck-suggestion-color" style="background-color: ',"importWord","editorReady","commentThread","map","ck-annotation__info-time","_model","attributes","getExternalSuggestionNote","ck-suggestion__main","</span>","fire","time","isExternal","canDiscard","<p>","isActive","_createButton","name","innerText"];var jc,Gc;jc=Uc,Gc=227,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Hc=function(t,e){return Uc[t-=0]};class Vc extends Pc{constructor(e,n,o,r){super(e,n,o,r),this[Hc("0x45")](Hc("0x2c"),""),this[Hc("0x22")](Hc("0x2c")).to(this,Hc("0x49"),(t=>t&&t[0]?t[0][Hc("0x2c")]:"")),this.bind("description").to(this,"descriptionParts",this,Hc("0x18"),((t,e)=>{let n="";for(const e of t)n+=Hc("0x17")+zc(e.content,e.color)+"</p>";return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Hc("0x5")]=null,this.acceptButton=this._createButton(Qo(e,"Accept suggestion"),t.icons[Hc("0x51")],Hc("0x4f"),"acceptSuggestion","sw"),this[Hc("0x1f")][Hc("0x22")](Hc("0x2f")).to(this,Hc("0x3a")),this[Hc("0x38")]=this[Hc("0x19")](Qo(e,"Discard suggestion"),t.icons[Hc("0x39")],Hc("0x50"),Hc("0x0"),"sw"),this[Hc("0x38")][Hc("0x22")](Hc("0x2f")).to(this,Hc("0x16")),this[Hc("0x23")]=new i.UserView(e,this._model[Hc("0x30")],this[Hc("0x43")]()),this[Hc("0x23")][Hc("0x1e")]({attributes:{class:[Hc("0x2"),Hc("0x1d")]}}),this[Hc("0x4e")](this.getTemplate())}[Hc("0x4b")](){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:["ck-suggestion__info","ck-annotation__info"]},children:[{tag:Hc("0x3e"),children:[{text:this[Hc("0x23")].name}],attributes:{class:[Hc("0x1c"),Hc("0x4c")]}},{tag:Hc("0x14"),attributes:{datetime:t.to(Hc("0x31")),class:[Hc("0x29"),Hc("0xd")]},children:[{text:t.to(Hc("0x31"),(t=>this[Hc("0x2b")].formatDateTime(t)))}]}]},{tag:Hc("0x20"),attributes:{class:[Hc("0x53"),"ck-annotation__actions"]},children:[this[Hc("0x1f")],this[Hc("0x38")]]},{tag:Hc("0x20"),attributes:{class:[Hc("0x42")]}}];this[Hc("0xe")][Hc("0x15")]&&e.push({tag:"div",attributes:{class:[Hc("0x32")]},children:[{text:this[Hc("0x10")]()}]});const n={tag:Hc("0x20"),attributes:{class:[Hc("0x40"),t.if(Hc("0x18"),"ck-suggestion-wrapper--active"),t.to(Hc("0x2c"),(t=>Hc("0x4d")+t)),this._config[Hc("0x3b")]&&Hc("0x27")],"data-suggestion-id":this._model.id,"data-thread-id":this[Hc("0xe")][Hc("0xb")].id,"data-author-id":this[Hc("0xe")][Hc("0x30")].id,tabindex:-1},children:[{tag:Hc("0x20"),attributes:{class:[Hc("0x4"),Hc("0x41")]},children:[this[Hc("0x23")],{tag:Hc("0x20"),attributes:{class:[Hc("0x11"),"ck-annotation__main"]},children:e}]}]};return this[Hc("0x3d")]&&this[Hc("0x2e")]&&(n[Hc("0x6")][Hc("0x7")](this[Hc("0x3d")],this[Hc("0x2e")]),this.commentsListView.delegate("editorReady").to(this),this[Hc("0x3d")].delegate(Hc("0x24")).to(this),this[Hc("0x2e")].delegate(Hc("0xa")).to(this),this[Hc("0x2e")][Hc("0x37")](Hc("0x24")).to(this)),n}[Hc("0x28")](){super[Hc("0x28")](),this[Hc("0x5")]=this.element[Hc("0x2d")](Hc("0x47")),this[Hc("0x5")][Hc("0x3f")]=this[Hc("0x36")],this.on(Hc("0x54"),((t,e,n)=>{this._descriptionElement[Hc("0x3f")]=n}))}[Hc("0x19")](t,e,n,o,i){const s=new r.ButtonView(this[Hc("0x25")]);return s[Hc("0x45")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s.extendTemplate({attributes:{class:n}}),s.on(Hc("0x48"),(()=>{this[Hc("0x13")](o,this[Hc("0xe")].id)})),s}[Hc("0x10")](){return Hc("0x9")===this[Hc("0xe")][Hc("0xf")]["@external"][Hc("0x3")]?Qo(this[Hc("0x25")],Hc("0x4a")):Qo(this[Hc("0x25")],"EXTERNAL_SUGGESTION")}getUserViewNotificationText(){return this[Hc("0xe")][Hc("0x15")]?Hc("0x9")===this[Hc("0xe")].attributes[Hc("0x26")][Hc("0x3")]?Qo(this[Hc("0x25")],"EXTERNAL_IMPORT_WORD_AVATAR",this[Hc("0xe")][Hc("0x34")].name):Qo(this[Hc("0x25")],Hc("0x35"),this[Hc("0xe")][Hc("0x34")][Hc("0x1a")]):null}}function zc(t,e){let n="";return n+=t[Hc("0x46")]("*")[Hc("0xc")](((t,e)=>e%2!=0?Hc("0x1")+Wc(t)+Hc("0x12"):Wc(t)))[Hc("0x21")](""),e&&(n+=Hc("0x8")+e[Hc("0x3c")]+Hc("0x2a")+e[Hc("0x44")]+Hc("0x52")),n}function Wc(t){const e=document[Hc("0x33")](Hc("0x3e"));return e[Hc("0x1b")]=t,e.innerHTML}const Kc=["map","_annotationViews","comments","getJoined","EditorAnnotations","getDescriptions","discardSelectedSuggestions","from","_refreshActiveMarkers","refreshSelectedViews","suggestion-","comments.maxThreadTotalWeight","_suggestionToController","execute","requires","delete","_viewToController","config","previous","TrackChangesUI","some","activeMarkers","focus","Accept all suggestions","Annotations","suggestionUnloaded","_unbindEditors","isInContent","suggestionLoaded","createCommentThreadController","_updateController","isOn","addSourceCollector","SuggestionThreadView","keys","createAnnotationView","isEnabled","Discard all suggestions","type","registerAnnotation","editing","mainView","commands","set","destroy","pluginName","head","lowest","trackChanges.SuggestionThreadView","filter","view","editor","plugins","suggestionChanged","CommentsUI","_bindAnnotationToEditors","acceptAllSuggestions","has","descriptionParts","separator","_handleSuggestionControllerDelayed","_disableComments","Track changes","comments.maxCommentCharsWhenCollapsed","define","source","unbind","CommentView","init","bind","isDirty","getRanges","hasSuggestion","reduce","value","commentThread","model","acceptSelectedSuggestions","Discard all selected suggestions","buttonView","_initializeController","_handleControllerBuffer","size","_createUIButton","get","_descriptionFactory","listenTo","getAllAdjacentSuggestions","_destroyController","add","arrowView","clear","stopListening","discardAllSuggestions","button","getMarkers","TrackChangesEditing","locale","getByInnerView","trackChanges","discardButton","getFirstRange","length","actionView","trackChanges.disableComments","componentFactory","toMany","innerView","push","comments.maxCommentsWhenCollapsed","change:previous","values","isMultiRange","commandName","CommentsRepository"];var qc,Xc;qc=Kc,Xc=190,function(t){for(;--t;)qc.push(qc.shift())}(++Xc);const $c=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get[$c("0x36")](){return[hc,i.Users,$c("0x27"),$c("0x40"),"EditorAnnotations"]}static get[$c("0x55")](){return $c("0x3b")}constructor(t){super(t),this[$c("0x34")]=new Map,this[$c("0x38")]=new Map,this[$c("0x29")]=new Map,this._handleControllerBuffer=new Map;const e=this[$c("0x5b")].config;e[$c("0x68")]($c("0x58"),Vc),e[$c("0x68")]("trackChanges.disableComments",!1),this[$c("0x65")]=e[$c("0x9")]($c("0x1d"))}[$c("0x64")](t,e){0===this[$c("0x6")][$c("0x7")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[$c("0x34")][$c("0x61")](t);n||e?n&&e&&this[$c("0xd")](t):this._initializeController(t)}this.editor.plugins[$c("0x9")]($c("0x2c"))[$c("0x31")](),this._refreshActiveMarkers(),this._handleControllerBuffer[$c("0x10")]()}),10),this[$c("0x6")].set(t,e)}[$c("0x6c")](){const t=this[$c("0x5b")],e=t.plugins[$c("0x9")]("TrackChangesEditing"),n=t[$c("0x5c")][$c("0x9")]($c("0x40")),o=t[$c("0x5c")][$c("0x9")]($c("0x2c")),r=t[$c("0x5c")][$c("0x9")]($c("0x27"));t.ui[$c("0x1e")][$c("0xe")]($c("0x18"),(t=>this[$c("0x8")](t))),o[$c("0x48")]((()=>{const t=[];for(const[e,n]of Array[$c("0x2f")](this[$c("0x34")])){const o=e[$c("0xc")](),r=[];for(const t of o){if(!t[$c("0x43")])continue;if(t[$c("0x25")]){r[$c("0x21")](...t[$c("0x6f")]());continue}const e=t[$c("0x1a")]();if(r[$c("0x1b")]>0){const t=r[0][$c("0x2b")](e);if(t){r[0]=t;continue}}r[$c("0x21")](e)}t.push([n[$c("0x5a")],r])}return t})),this.listenTo(e,$c("0x44"),((t,e)=>{this[$c("0xb")](e,"change:previous",((t,n,o,r)=>{e[$c("0x43")]&&(null==o?(this[$c("0x46")](r.head),this._handleSuggestionControllerDelayed(e,!1)):(this[$c("0x46")](o[$c("0x56")]),null==r&&this[$c("0x64")](e,!0)))})),null!==e[$c("0x3a")]?this[$c("0x46")](e[$c("0x56")]):this[$c("0x64")](e,!1)})),this.listenTo(e,$c("0x41"),((t,e,n)=>{this[$c("0x11")](e,$c("0x23")),this[$c("0x6")][$c("0x37")](e),this[$c("0x34")][$c("0x61")](e)&&this[$c("0xd")](e),n&&this._updateController(n[$c("0x56")])})),this[$c("0xb")](e,$c("0x5d"),((t,e)=>{this[$c("0x46")](e)})),this[$c("0xb")](n,"change:activeAnnotations",(()=>{this[$c("0x30")]()})),this.listenTo(r,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[$c("0x70")](n))return;const r=e.getSuggestion(n);this[$c("0x34")][$c("0x9")](r)[$c("0x5a")][$c("0x3e")]()}),{priority:$c("0x57")})}_refreshActiveMarkers(){const t=this.editor.plugins[$c("0x9")]($c("0x40")),e=this[$c("0x5b")][$c("0x5c")][$c("0x9")]($c("0x15")),n=Array[$c("0x2f")](t.activeAnnotations,(t=>t[$c("0x20")])).filter((t=>this[$c("0x38")][$c("0x61")](t))),o=[];for(const t of n){const e=this[$c("0x38")][$c("0x9")](t)[$c("0x1")][$c("0xc")]();o[$c("0x21")](...e[$c("0x71")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[$c("0x3d")]=o}_createUIButton(t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[$c("0x5b")].commands[$c("0x9")]($c("0x18")),i=Qo(t,$c("0x66"));n[$c("0x4")][$c("0x53")]({tooltip:i,label:i,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[$c("0x4")][$c("0x6d")]($c("0x47")).to(o,$c("0x72")),n[$c("0x4")].on($c("0x35"),(()=>{o[$c("0x35")](),this[$c("0x5b")].editing[$c("0x5a")].focus()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:i,commandName:$c("0x18")}},{type:$c("0x63")},{type:$c("0x13"),model:{withText:!0,label:Qo(t,$c("0x3f")),commandName:$c("0x60")}},{type:$c("0x13"),model:{withText:!0,label:Qo(t,"Accept all selected suggestions"),commandName:$c("0x2")}},{type:$c("0x13"),model:{withText:!0,label:Qo(t,$c("0x4d")),commandName:$c("0x12")}},{type:"button",model:{withText:!0,label:Qo(t,$c("0x3")),commandName:$c("0x2e")}}];for(const t of x){let e={type:"separator"};if(t[$c("0x1")]){const n=new r.Model(t.model),o=this[$c("0x5b")].commands.get(n[$c("0x26")]);n[$c("0x6d")]($c("0x47"),$c("0x4c")).to(o,$c("0x72"),$c("0x4c")),e={type:t.type,model:n}}s.add(e)}(0,r.addListToDropdown)(n,s);const a=x[$c("0x59")]((t=>null!=t[$c("0x1")]))[$c("0x28")]((t=>this[$c("0x5b")][$c("0x52")].get(t[$c("0x1")][$c("0x26")]))),c=n[$c("0x4")];return c[$c("0x1c")][$c("0x6a")]($c("0x4c")),c[$c("0xf")][$c("0x6a")]("isEnabled"),c[$c("0x1c")][$c("0x6d")]($c("0x4c")).to(o,$c("0x4c")),c.arrowView[$c("0x6d")]("isEnabled")[$c("0x1f")](a,$c("0x4c"),((...t)=>t[$c("0x3c")]((t=>t)))),n.on($c("0x35"),(t=>{this[$c("0x5b")][$c("0x35")](t[$c("0x69")][$c("0x26")]),this[$c("0x5b")][$c("0x50")][$c("0x5a")].focus()})),n}[$c("0x5")](t){const e=this[$c("0x5b")],n=e[$c("0x39")],o=e[$c("0x5c")][$c("0x9")]($c("0x40")),r=e[$c("0x5c")][$c("0x9")]($c("0x27")),s=e[$c("0x5c")][$c("0x9")]($c("0x2c")),x=e[$c("0x5c")][$c("0x9")](i.Users).me,a=n.get("trackChanges")[$c("0x49")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[$c("0x9")]($c("0x5e"));let u,d;this[$c("0x29")][$c("0x61")](t.id)?(d=this[$c("0x29")][$c("0x9")](t.id),u=d[$c("0x51")]):(u=new a(e[$c("0x16")],t,x,{disableComments:this[$c("0x65")],editorConfig:n[$c("0x9")]("comments.editorConfig"),maxCommentsWhenCollapsed:n.get($c("0x22")),maxThreadTotalWeight:n.get($c("0x33")),maxCommentCharsWhenCollapsed:n.get($c("0x67")),formatDateTime:(0,i.getDateTimeFormatter)(n.get($c("0x16"))),CommentView:n[$c("0x9")]($c("0x2a"))[$c("0x6b")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on($c("0x35"),(()=>{e[$c("0x50")][$c("0x5a")][$c("0x3e")]()})),u[$c("0x19")].on($c("0x35"),(()=>{e[$c("0x50")].view[$c("0x3e")]()})),d=o[$c("0x4b")](this[$c("0x5b")][$c("0x16")],u),d.bind($c("0x6e")).to(u,$c("0x6e")),d[$c("0x6d")]($c("0x1b")).to(u),d[$c("0x6d")]($c("0x4e")).to(u,"type",(t=>"suggestion-"+t)),this[$c("0x29")][$c("0x53")](t.id,d));const g=r[$c("0x45")](t[$c("0x0")],u),f=new wc(e,t,u,g),m=t[$c("0xc")]()[$c("0x59")]((t=>t[$c("0x43")]));u.descriptionParts=e[$c("0x5c")][$c("0x9")]("TrackChangesEditing")[$c("0xa")][$c("0x2d")](m),this[$c("0x34")].set(t,f),this[$c("0x38")][$c("0x53")](u,f);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t[$c("0xc")]()[$c("0x59")]((t=>t.isInContent));for(const t of o)n.push(...t[$c("0x14")]());return(0,i.getAllMarkersDomElementsSorted)(e[$c("0x50")],n)},type:()=>$c("0x32")+f.view.type});r[$c("0x5f")](u,h),o.add(h),s[$c("0x4f")](h)}[$c("0xd")](t){const e=this[$c("0x5b")][$c("0x5c")][$c("0x9")]($c("0x27")),n=this.editor[$c("0x5c")][$c("0x9")]($c("0x40")),o=this._suggestionToController.get(t),r=o[$c("0x5a")],i=n[$c("0x17")](r);e[$c("0x42")](r),i&&n.remove(i),this[$c("0x34")][$c("0x37")](t),this._viewToController.delete(r),o[$c("0x54")]()}_updateController(t){if(!t[$c("0x43")]||!this[$c("0x34")][$c("0x61")](t))return;const e=this[$c("0x5b")].plugins[$c("0x9")]("TrackChangesEditing"),n=this[$c("0x34")][$c("0x9")](t),o=t[$c("0xc")]();n.view[$c("0x62")]=e[$c("0xa")][$c("0x2d")](o)}[$c("0x54")](){for(const t of this[$c("0x34")][$c("0x4a")]())this[$c("0xd")](t);for(const t of this._annotationViews[$c("0x24")]())t[$c("0x51")][$c("0x54")]();super[$c("0x54")]()}}var Yc,Jc,Qc=["addSuggestionData","getSuggestions","pluginName","editor","getSuggestion","requires","plugins","adapter","addSuggestion","get"];Yc=Qc,Jc=178,function(t){for(;--t;)Yc.push(Yc.shift())}(++Jc);var tl=function(t,e){return Qc[t-=0]};class el extends t.Plugin{static get[tl("0x7")](){return[hc,Zc,"Comments"]}static get[tl("0x4")](){return"TrackChanges"}set[tl("0x9")](t){this.editor.plugins[tl("0x1")](hc)[tl("0x9")]=t}get[tl("0x9")](){return this[tl("0x5")][tl("0x8")].get(hc)[tl("0x9")]}[tl("0x0")](t){return this[tl("0x5")][tl("0x8")].get(hc)[tl("0x2")](t)}[tl("0x3")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[tl("0x5")][tl("0x8")][tl("0x1")](hc).getSuggestions({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[tl("0x5")][tl("0x8")][tl("0x1")](hc)[tl("0x6")](t)}}const nl=["getRootsAttributes","createDocumentFragment","editor","plugins","discardAllSuggestions","useAnonymousUser","CommentsRepository","execute","track-changes-data-invalid-editor-creator","create","rootsAttributes","name","get","getRootNames","trackChangesData","init","createElement","push","TrackChangesEditing","getFullData","reduce","result","getDataWithDiscardedSuggestions","_adapter","trackChangesData.editorCreator","data","requires","Pagination","Users","define","end","config","model","editorCreator","div","acceptAllSuggestions","users","addSuggestionData","document","appendChild","TrackChangesData","function"];var ol,rl;ol=nl,rl=115,function(t){for(;--t;)ol.push(ol.shift())}(++rl);const il=function(t,e){return nl[t-=0]},sl=[il("0x26")];class xl extends t.Plugin{static get[il("0x25")](){return[hc]}static get pluginName(){return il("0x9")}[il("0x1a")](){const t=this[il("0xd")];if(t[il("0x0")][il("0x28")](il("0x23"),(e=>{const n=t[il("0x1")][il("0x7")][il("0x18")]()[il("0x1f")](((t,e)=>(t[e]="",t)),{});return t.constructor[il("0x14")](n,e)})),il("0xa")!=typeof t[il("0x0")][il("0x17")](il("0x19"))[il("0x2")])throw new e.CKEditorError(il("0x13"))}getDataWithAcceptedSuggestions(t){return ll(this[il("0xd")],!0,t)}[il("0x21")](t){return ll(this[il("0xd")],!1,t)}}class al extends t.Plugin{static get pluginName(){return"TrackChangesDataGetter"}constructor(t){super(t),this[il("0x20")]=il("0x29")}[il("0x1a")](){this[il("0xd")][il("0xe")][il("0x17")](il("0x11"))[il("0x22")]={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[il("0xd")][il("0xe")].get(il("0x1d"))[il("0x22")]=null}}function cl(t){return void 0!==t[il("0xb")]}async function ll(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,sl);o.plugins[il("0x1c")](hc,al),o[il("0x15")]=cl(t)?t[il("0xb")]():void 0;const r=document[il("0xc")](),s=t[il("0x0")][il("0x17")]("trackChangesData")[il("0x2")],x=await s(o,(()=>function(t){const e=document[il("0x1b")](il("0x3"));return t[il("0x8")](e),e}(r)));!function(t,e){const n=t[il("0x1")].document[il("0x18")]()[il("0x1f")](((e,n)=>(e[n]=t.data.get({rootName:n}),e)),{}),o=t[il("0xe")][il("0x17")](il("0x27"))[il("0x5")].map((t=>({id:t.id,name:t[il("0x16")]}))),r=t[il("0xe")][il("0x17")](il("0x1d")).getSuggestions({skipNotAttached:!0,toJSON:!0}),i=e[il("0xe")][il("0x17")](il("0x27")),s=e[il("0xe")][il("0x17")](il("0x1d"));for(const t of o)i.getUser(t.id)||i.addUser(t);i.me||i[il("0x10")]();for(const t of r)s[il("0x6")](t);e.data.set(n)}(t,x),x[il("0x12")](il(e?"0x4":"0xf"));const a=cl(x)?x[il("0x1e")](n):x[il("0x24")][il("0x17")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();