@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231123.0 → 0.0.0-nightly-20231125.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(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>Bc,TrackChanges:()=>tl,TrackChangesData:()=>sl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),i=n(273),r=n(417),s=n(492),x=n(995);const a=["isEnabled","affectsData","_enabledCommands","_disableUnsupportedCommands","refresh","commands","execute","_isEnabledBasedOnSelection","value","editor","_enableCommands","TrackChangesCommand"];var c,l;c=a,l=278,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x0")]=e,this[u("0x6")]=!1,this[u("0x2")](),this[u("0x5")]=!1}[u("0x2")](){this[u("0xa")]=!0}[u("0x4")](){this[u("0x6")]=!this[u("0x6")],this.value?this[u("0x1")]():this[u("0x8")]()}[u("0x1")](){for(const t of this[u("0x7")].commands[u("0x3")]())t[u("0xb")]&&!this[u("0x0")].has(t)&&t.forceDisabled(u("0x9"))}_enableCommands(){for(const t of this.editor[u("0x3")][u("0x3")]())t[u("0xb")]&&!this._enabledCommands.has(t)&&t.clearForceDisabled(u("0x9"))}}const g=["isEnabled","getRanges","_suggestions","acceptSuggestion","plugins","TrackChangesEditing","editor","get","execute","canEditAt","model","_isEnabledBasedOnSelection","refresh"];var f,m;f=g,m=395,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0xa")]=e,this[h("0x7")](),this[h("0x6")]=!1}[h("0x7")](){this[h("0x8")]=!0}[h("0x3")](t){const n=this[h("0xa")].get(t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x9")]();this[h("0x1")][h("0x5")][h("0x4")](o)&&this[h("0x1")][h("0xc")][h("0x2")](h("0x0"))[h("0xb")](n)}}const b=["discardSuggestion","get","_isEnabledBasedOnSelection","_suggestions","model","canEditAt","isEnabled","getRanges","TrackChangesEditing","plugins","track-changes-discard-suggestion-not-found","refresh"];var E,_;E=b,_=136,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0xb")]=e,this[T("0x7")](),this[T("0xa")]=!1}[T("0x7")](){this[T("0x2")]=!0}execute(t){const n=this._suggestions[T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const o=n[T("0x3")]();this.editor[T("0x0")][T("0x1")](o)&&this.editor[T("0x5")][T("0x9")](T("0x4"))[T("0x8")](n)}}const C=["isInContent","createPositionAt","map","add","color","isIntersecting","push","sort","length","createPositionBefore","replace","from","isMultiRange","next","schema","value","type","change","createRange","start","isArray","isTouching"," [color ","getRanges","createPositionAfter","isObject","deletion","content"];var A,k;A=C,k=238,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x15")](((t,e)=>"deletion"==t[I("0x2")]&&I("0xc")!=e[I("0x2")]?-1:I("0xc")!=t.type&&"deletion"==e.type?1:0))}function v(t,e){let n,o=0;const i=[],r=e[I("0x0")];for(;o<t[I("0x16")];){const s=t[o],x=t[o+1];n||(n=e[I("0x17")](s)),S(e,s,x)||(i[I("0x14")](e[I("0x4")](n,r[I("0xb")](s)?e[I("0xa")](s):e[I("0xf")](s,"end"))),n=null),o++}return i}function S(t,e,n){if(!n)return!1;const o=t[I("0xa")](e),i=t[I("0x17")](n);return o[I("0x7")](i)}function N(t,e,n){for(;n[I("0x16")];){const o=n.splice(0,100);t[I("0x3")]((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const L=["values","model","_command","refresh","from","isInContent","canEditAt","_suggestions","some","editor","_isEnabledBasedOnSelection"];var M,w;M=L,w=139,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("0x6")]=e,this[O("0x0")]=n,this.refresh(),this[O("0x3")]=!1}[O("0x7")](){const t=Array[O("0x8")](this[O("0x0")].values())[O("0x1")]((t=>t[O("0x9")]));this.isEnabled=this[O("0x6")].isEnabled&&t}execute(){const t=R(Array[O("0x8")](this[O("0x0")][O("0x4")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x2")].model[O("0xa")](t))return}N(this.editor[O("0x5")],this[O("0x6")],t)}}const D=["values","editor","refresh","from","selection","_selectedSuggestions","execute","_isEnabledBasedOnSelection","isEnabled","size","document","_command","model","_suggestions"];var B,P;B=D,P=433,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[U("0x6")]=new Set,this[U("0x3")](),this[U("0x8")]=!1}[U("0x3")](){const t=this.editor[U("0xd")][U("0xb")][U("0x5")],e=Array[U("0x4")](this[U("0x0")][U("0x1")]());this._selectedSuggestions=function(t,e){const n=Array[I("0x19")](t.getRanges()),o=new Set;for(const i of e)if(i[I("0xe")])for(const e of n)for(const n of i[I("0x9")]())(e[I("0x13")](n)||t.isCollapsed&&!i[I("0x1a")]&&i[I("0x1b")]&&n.end[I("0x7")](e[I("0x5")]))&&o[I("0x11")](i);return o}(t,e),this.isEnabled=this._command[U("0x9")]&&!!this._selectedSuggestions[U("0xa")]}[U("0x7")](){const t=R(Array.from(this[U("0x6")]));for(const e of t){const t=e.getRanges();if(!this.editor[U("0xd")].canEditAt(t))return}N(this[U("0x2")][U("0xd")],this[U("0xc")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(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=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=H(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 it=ot.Symbol;var rt=Object.prototype,st=rt.hasOwnProperty,xt=rt.toString,at=it?it.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 i=xt.call(t);return o&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var 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 vt=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=St(t,e);return vt(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 Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=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 Ht(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=Vt,$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 ie=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(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,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var 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 ve=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=ve&&ve.isTypedArray;const Ne=Se?Ae(Se):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),i=!n&&!o&&be(t),r=!n&&!o&&!i&&Ne(t),s=n||o||i||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const 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&&re(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.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&&re(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,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return re(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+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 re(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 pn="[object Map]",bn="[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)!=pn||fn&&Rn(fn.resolve())!=bn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const vn=Rn;var Sn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const 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=it?it.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 Vn=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 Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==vn(t)};var Wn=ve&&ve.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==vn(t)};var Xn=ve&&ve.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,i,r,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,i,r,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=vn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!r){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return r?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(i){x.add(t(i,n,o,i,e,s))})):Kn(e)&&e.forEach((function(i,r){x.set(r,t(i,n,o,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(i,r){m&&(i=e[r=i]),ie(x,r,t(i,n,o,r,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)\]/,io=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(io.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,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,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,i){e.push(o?i.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var go=it?it.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var i=-1,r=(e=po(e,t)).length,s=r-1,x=t;null!=x&&++i<r;){var a=bo(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(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 Io=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,i,r){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||i(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=it?it.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,i,r,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||!r(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+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=vo;case"[object Set]":var a=1&o;if(x||(x=So),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,i,r,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,i,r){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=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||i(m,h,n,o,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,i,r){var s=ge(t),x=ge(e),a=s?Do:vn(t),c=x?Do:vn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Qt),s||Ne(t)?Ro(t,e,n,o,i,r):Mo(t,e,a,n,o,i,r);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 r||(r=new Qt),i(m,h,n,o,r)}}return!!d&&(r||(r=new Qt),Oo(t,e,n,o,i,r))};const jo=function t(e,n,o,i,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,i,t,r))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["getItems","isIntersecting","getFirstMarker","suggestion:","_saved","map","next","set","getMarkerNames","type","change","createdAt","_markerNames","getMultiRangeId","nodeAfter","removeAttribute","attributes","hasComments","onDiscard","data","addMarkerName","removeMarkers","onAttributesChange","from","_isDataLoaded","accept","addRange","start","getMarkers","toJSON","getAllAdjacentSuggestions","author","split","_onAttributesChange","nodeBefore","creator","length","push","previous","discard","decorate","addMarker","getRange","getRanges","removeMarker","isInContent","@external","isIntersectingWithRange","end","clear","subType","delete","head","get","commentThread","_model","filter"];var $o,Zo;$o=Xo,Zo=350,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("0x10")]=!1,this.id=e.id,this[Yo("0x1")]=e[Yo("0x1")],this[Yo("0x2a")]=e.subType||null,this[Yo("0x17")]=e[Yo("0x17")],this[Yo("0x1b")]=e[Yo("0x1b")]||e[Yo("0x17")],this.isExternal=Boolean(e[Yo("0x8")]&&e[Yo("0x8")][Yo("0x26")]),this.data=null,this._model=t,this._onAccept=e.onAccept,this._onDiscard=e[Yo("0xa")],this._onAttributesChange=e[Yo("0xe")],this[Yo("0x4")]=new Set,this[Yo("0x3")]=null,this[Yo("0x38")]("authoredAt",null),this.set(Yo("0x8"),e[Yo("0x8")]||{}),this[Yo("0x38")](Yo("0x1e"),null),this[Yo("0x38")]("next",null),this.set("commentThread",null),this.set(Yo("0x35"),!1),this[Yo("0x20")]("accept"),this[Yo("0x20")](Yo("0x1f"))}get[Yo("0x2c")](){let t=this;for(;t[Yo("0x1e")];)t=t[Yo("0x1e")];return t}get[Yo("0x9")](){return!!this[Yo("0x2e")]&&this[Yo("0x2e")].length>0}get isMultiRange(){return 0!=this[Yo("0x4")].size&&6==Array[Yo("0xf")](this._markerNames)[0][Yo("0x18")](":")[Yo("0x1c")]}get[Yo("0x25")](){return null!==this[Yo("0x33")]()}[Yo("0xc")](t){this[Yo("0x4")].add(t)}[Yo("0x0")](){return Array[Yo("0xf")](this[Yo("0x4")])}[Yo("0x14")](){return this[Yo("0x0")]()[Yo("0x36")]((t=>this._model.markers[Yo("0x2d")](t)))[Yo("0x30")]((t=>t))}[Yo("0x33")](){return this[Yo("0x14")]()[0]||null}removeMarkers(){this[Yo("0x2f")].change((t=>{for(const e of this.getMarkers())t[Yo("0x24")](e)})),this._markerNames[Yo("0x29")]()}[Yo("0x24")](t){this._model[Yo("0x2")]((e=>{e[Yo("0x24")](t)})),this[Yo("0x4")][Yo("0x2b")](t)}[Yo("0x12")](t){const e=Yo("0x34")+this[Yo("0x1")]+":"+this[Yo("0x2a")]+":"+this.id+":"+this[Yo("0x1b")].id+":"+Jo[Yo("0x5")]();this[Yo("0xc")](e),this._model[Yo("0x2")]((n=>{n[Yo("0x21")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x27")](t){for(const e of this[Yo("0x23")]())if(e[Yo("0x32")](t))return!0;return!1}[Yo("0x23")](){return this.getMarkers()[Yo("0x36")]((t=>t.getRange()))}[Yo("0x31")](){return this.getRanges().reduce(((t,e)=>[...t,...e[Yo("0x31")]()]),[])}getFirstRange(){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Yo("0x22")]())||null}getContainedElement(){const t=this[Yo("0x23")]();if(1!=t[Yo("0x1c")])return null;const e=t[0],n=e[Yo("0x13")][Yo("0x6")],o=e[Yo("0x28")][Yo("0x1a")];return n instanceof s.Element?n!=o?null:n:null}[Yo("0x11")](){this._onAccept(this[Yo("0x23")](),this.data,this.attributes),this[Yo("0xd")]()}[Yo("0x1f")](){this._onDiscard(this.getRanges(),this[Yo("0xb")],this[Yo("0x8")]),this[Yo("0xd")]()}[Yo("0x16")](){const t=[];let e=this.head;for(;e;)t[Yo("0x1d")](e),e=e[Yo("0x37")];return t}setAttribute(t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Yo("0x8")])||(this.attributes=n,this[Yo("0x19")](n))}[Yo("0x7")](t){const e=eo(this[Yo("0x8")]);qo(e,t),Go(e,this.attributes)||(this[Yo("0x8")]=e,this._onAttributesChange(this.attributes))}[Yo("0x15")](){return{id:this.id,type:this.subType?this[Yo("0x1")]+":"+this.subType:this[Yo("0x1")],authorId:this.creator.id,createdAt:this.createdAt,hasComments:this[Yo("0x9")],data:this[Yo("0xb")],attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)().substr(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 ti=["get","$1 $2","*Split:* %0","item","start","elementEnd","add","getWalker","quantity","checkChild","length","key","_handleInsertRemoveSuggestionDescription","match","remove","data","addEmptyContainer","addFormat","isInContent","registerDescriptionCallback","$text","_handleAttributeSuggestionDescription","function","EmptyContainer","normal","replace","$textProxy","has","removeEmptyContainer","indexOf","format","isObject","_handleRenameSuggestionDescription","matchingCallback","insertion","newValue","name","_addDescriptionItems","_attributeLabels","text","addContainer","push","_locale","*Insert:* %0","set","*Change to:* %0","previousSibling","removeObject","subType","type","isEmpty","*Remove format:* %0","pop","deletion","_handleCustomCallbackDescription","label","removeFormat","REPLACE_TEXT","ELEMENT_SPACE","isEqual","_itemLabels","registerElementLabel","_resolveDescriptionItems","elementStart","nextSibling","_schema","registerAttributeLabel","Object","getDescriptions","_itemLabelsCallbacks","getItemLabel","join","map","_customCallbacks","addObject","attribute","*Merge:* %0","element","*Remove:* %0","getFirstRange","removeContainer","Container"];var ei,ni;ei=ti,ni=499,function(t){for(;--t;)ei.push(ei.shift())}(++ni);const oi=function(t,e){return ti[t-=0]};class ii{constructor(t,e){this[oi("0x42")]=[],this[oi("0x35")]=new Map,this._itemLabelsCallbacks=[],this[oi("0x1f")]=new Map,this[oi("0x3a")]=t,this[oi("0x23")]=e}[oi("0x3d")](t){const e=[],n=new Set,o=new Set;for(let i=0;i<t[oi("0x3")];i++){const r=t[i];if(!r[oi("0xb")])continue;const s=this[oi("0x2f")](r);if(s){if(null!=r[oi("0x29")]){if(n.has(r.subType))continue;n.add(r[oi("0x29")])}e.push(s)}else if(oi("0x44")!=r[oi("0x2a")])"insertion"!=r[oi("0x2a")]&&oi("0x2e")!=r[oi("0x2a")]||this[oi("0x5")](e,r,t[i+1]);else{const t=r[oi("0x8")][oi("0x4")];if(o[oi("0x14")](t))continue;o[oi("0x51")](r[oi("0x8")].key),t==mc?this[oi("0x19")](e,r):this._handleAttributeSuggestionDescription(e,r)}}return this[oi("0x37")](e)}[oi("0xc")](t){this[oi("0x42")][oi("0x22")](t)}[oi("0x36")](t,n,o=e.priorities[oi("0x11")]){oi("0xf")==typeof t?(0,e.insertToPriorityArray)(this[oi("0x3e")],{matchingCallback:t,label:n,priority:o}):this[oi("0x35")][oi("0x25")](t,n)}[oi("0x3b")](t,e){this[oi("0x1f")].set(t,e)}getItemLabel(t,e=1){let n;for(const e of this[oi("0x3e")])if(e[oi("0x1a")](t)){n=e[oi("0x30")];break}return n||(n=this[oi("0x35")][oi("0x4b")](t[oi("0x1d")])),n?n(e):1!==e?e+" "+t[oi("0x1d")]+"s":""+t.name}[oi("0x1e")](t,e){const n=e[oi("0x48")]()[oi("0x0")](),o=oi("0x1b")==e[oi("0x2a")]?"add":oi("0x7");for(const e of n){const i=e.item,r=t[t[oi("0x3")]-1];if(i.is(oi("0x13")))r&&r[oi("0x2a")][oi("0x16")](oi("0x4a"))>-1&&t[oi("0x2d")](),r&&oi("0x20")==r.type?r[o]+=i[oi("0x8")]:t[oi("0x22")]({type:"text",add:"add"==o?i[oi("0x8")]:"",remove:oi("0x7")==o?i.data:""});else if(this[oi("0x3a")][oi("0x18")](i)){const s=i;if(r&&r.type[oi("0x16")](oi("0x4a"))>-1&&t[oi("0x2d")](),oi("0x50")==e[oi("0x2a")])continue;r&&r[oi("0x2a")]==o+oi("0x3c")&&r[oi("0x46")][oi("0x1d")]==s.name?r.quantity++:t.push({type:o+"Object",element:s,quantity:1}),n.skip((t=>!(oi("0x50")==t[oi("0x2a")]&&t[oi("0x4e")]==i)))}else if(this[oi("0x3a")][oi("0x2")](i,oi("0xd"))||i.is(oi("0x46"),"softBreak")){const n=i;if(oi("0x51")==o&&oi("0x38")==e[oi("0x2a")]||oi("0x7")==o&&oi("0x50")==e.type)continue;if(r&&-1==r[oi("0x2a")][oi("0x16")](oi("0x4a"))){"text"==r[oi("0x2a")]&&(r[o]+="\n");continue}let s;if(s=oi("0x51")==o?n.nextSibling&&!this[oi("0x3a")][oi("0x18")](n[oi("0x39")])?n[oi("0x39")]:null:n[oi("0x27")]&&!this[oi("0x3a")][oi("0x18")](n.previousSibling)?n[oi("0x27")]:null,n[oi("0x2b")]||s&&s.isEmpty){const e=s&&s[oi("0x2b")]?s:n;r&&r[oi("0x2a")]==o+"EmptyContainer"&&r[oi("0x46")].name==e[oi("0x1d")]?r[oi("0x1")]++:t[oi("0x22")]({type:o+oi("0x10"),element:e,quantity:1})}else t[oi("0x22")]({type:o+oi("0x4a"),element:n})}}}[oi("0x37")](t){const e=this._locale,n=[],o=[],i=[];for(const r of t)switch(r[oi("0x2a")]){case oi("0x20"):if(r[oi("0x51")]=r[oi("0x51")][oi("0x12")](/(\S)\u000A+(\S)/g,oi("0x4c"))[oi("0x12")](/\u000A/g,""),r.remove=r.remove[oi("0x12")](/(\S)\u000A+(\S)/g,oi("0x4c"))[oi("0x12")](/\u000A/g,""),""!=r.add&&""!=r[oi("0x7")]){n[oi("0x22")]({type:oi("0x12"),content:Qo(e,oi("0x32"),['"'+r.remove+'"','"'+r[oi("0x51")]+'"'])});continue}if(null!=r[oi("0x51")][oi("0x6")](/^ +$/)){n[oi("0x22")]({type:oi("0x1b"),content:Qo(e,oi("0x24"),Qo(e,oi("0x33"),r[oi("0x51")][oi("0x3")]))});continue}if(null!=r[oi("0x7")][oi("0x6")](/^ +$/)){n[oi("0x22")]({type:oi("0x2e"),content:Qo(e,oi("0x47"),Qo(e,oi("0x33"),r[oi("0x7")][oi("0x3")]))});continue}if(""!=r[oi("0x51")]){n[oi("0x22")]({type:oi("0x1b"),content:Qo(e,"*Insert:* %0",'"'+r[oi("0x51")]+'"')});continue}n[oi("0x22")]({type:oi("0x2e"),content:Qo(e,"*Remove:* %0",'"'+r[oi("0x7")]+'"')});continue;case oi("0x9"):case oi("0x43"):n[oi("0x22")]({type:oi("0x1b"),content:Qo(e,"*Insert:* %0",this[oi("0x3f")](r.element,r.quantity))});continue;case oi("0x15"):case oi("0x28"):n[oi("0x22")]({type:oi("0x2e"),content:Qo(e,oi("0x47"),this[oi("0x3f")](r[oi("0x46")],r[oi("0x1")]))});continue;case oi("0x21"):n[oi("0x22")]({type:oi("0x1b"),content:Qo(e,oi("0x4d"),this[oi("0x3f")](r[oi("0x46")],r[oi("0x1")]))});continue;case oi("0x49"):n[oi("0x22")]({type:oi("0x2e"),content:Qo(e,oi("0x45"),this[oi("0x3f")](r[oi("0x46")],r.quantity))});continue;case oi("0xa"):o[oi("0x22")](r[oi("0x4")]);continue;case oi("0x31"):i[oi("0x22")](r[oi("0x4")]);continue;default:n[oi("0x22")](r)}if(o[oi("0x3")]){const t=o.map((t=>this._attributeLabels.has(t)?this._attributeLabels.get(t):t))[oi("0x40")](", ");n[oi("0x22")]({type:oi("0x17"),content:Qo(this[oi("0x23")],"*Set format:* %0",t)})}if(i[oi("0x3")]){const t=i[oi("0x41")]((t=>this[oi("0x1f")].has(t)?this[oi("0x1f")][oi("0x4b")](t):t))[oi("0x40")](", ");n[oi("0x22")]({type:oi("0x17"),content:Qo(this[oi("0x23")],oi("0x2c"),t)})}return n}[oi("0x2f")](t){for(const e of this[oi("0x42")]){const n=e(t);if(n&&oi("0x2a")in n)return n}}[oi("0xe")](t,e){const n=e[oi("0x8")],o=void 0===n[oi("0x1c")]?oi("0x31"):oi("0xa");t.push({type:o,key:n[oi("0x4")]})}[oi("0x19")](t,e){t[oi("0x22")]({type:oi("0x17"),content:Qo(this[oi("0x23")],oi("0x26"),this[oi("0x3f")](e[oi("0x48")]()[oi("0x4f")].nodeAfter,1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this._addDescriptionItems(t,e),n&&n[oi("0x48")]()&&!e[oi("0x48")]().end[oi("0x34")](n[oi("0x48")]()[oi("0x4f")])){const n=t[t[oi("0x3")]-1],o=oi("0x1b")==e.type?oi("0x51"):"remove";n&&oi("0x20")==n[oi("0x2a")]&&(n[o]+="\n")}}}const ri=["editor","get","showAIAssistant","afterInit","plugins","commands"];var si,xi;si=ri,xi=159,function(t){for(;--t;)si.push(si.shift())}(++xi);const ai=function(t,e){return ri[t-=0]};class ci extends t.Plugin{[ai("0x0")](){const t=this[ai("0x3")],e=t[ai("0x1")].get("TrackChangesEditing");t[ai("0x2")][ai("0x4")](ai("0x5"))&&e.enableCommand(ai("0x5"))}}const li=["format","get","plugins","right","left","value","commandName","registerAttributeLabel","_registerLegacyDescription","FORMAT_ALIGN_TO_LEFT","registerDescriptionCallback","AlignmentEditing","TrackChangesEditing","justify","FORMAT_ALIGN_TO_RIGHT","FORMAT_ALIGNMENT","FORMAT_ALIGN_TO_CENTER","editor","has","formatBlock","locale","_descriptionFactory","alignment","center","commandParams","afterInit","type","FORMAT_JUSTIFY_TEXT"];var ui,di;ui=li,di=485,function(t){for(;--t;)ui.push(ui.shift())}(++di);const gi=function(t,e){return li[t-=0]};class fi extends t.Plugin{[gi("0x10")](){const t=this.editor,e=t[gi("0xb")];if(!t.plugins[gi("0x9")](gi("0x2")))return;const n=t[gi("0x15")][gi("0x14")](gi("0x3"));n._enableDefaultAttributesIntegration("alignment",[],["alignment"]),n[gi("0xc")][gi("0x1a")](gi("0xd"),Qo(e,gi("0x6"))),this[gi("0x1b")]()}_registerLegacyDescription(){const t=this[gi("0x8")],e=t[gi("0xb")];t[gi("0x15")].get(gi("0x3"))[gi("0xc")][gi("0x1")]((t=>{if(gi("0xa")!=t[gi("0x11")])return;const{data:n}=t;if(n&&"alignment"==n[gi("0x19")]){const t=n[gi("0xf")][0][gi("0x18")];return{type:gi("0x13"),content:Qo(e,"*Format:* %0",function(t){switch(t){case gi("0x17"):return Qo(e,gi("0x0"));case gi("0x16"):return Qo(e,gi("0x5"));case gi("0xe"):return Qo(e,gi("0x7"));case gi("0x4"):return Qo(e,gi("0x12"))}}(t))}}}))}}const mi=["_descriptionFactory","registerAttributeLabel","FORMAT_","commandParams","SubscriptEditing","FORMAT_SUPERSCRIPT","StrikethroughEditing","_registerLegacyDescription","ItalicEditing","locale","FORMAT_CODE","*Format:* %0","UnderlineEditing","BoldEditing","registerDescriptionCallback","editor","plugins","superscript","code","_enableDefaultAttributesIntegration","afterInit","has","italic","forceValue","toLowerCase","commandName","TrackChangesEditing","get","type","SuperscriptEditing","FORMAT_ITALIC","format","FORMAT_BOLD","strikethrough","*Remove format:* %0","bold"];var hi,pi;hi=mi,pi=273,function(t){for(;--t;)hi.push(hi.shift())}(++pi);const bi=function(t,e){return mi[t-=0]},Ei=[bi("0x1c"),bi("0x17"),bi("0x1b"),"CodeEditing",bi("0x15"),bi("0x13"),bi("0x8")];class _i extends t.Plugin{[bi("0x23")](){const t=this[bi("0x1e")],e=t[bi("0x1f")][bi("0x6")](bi("0x5")),n=t[bi("0x18")];for(const o of Ei){if(!t[bi("0x1f")][bi("0x0")](o))continue;const i=o.slice(0,-7)[bi("0x3")](),r=bi("0x11")+i.toUpperCase();e[bi("0x22")](i,[i]),e[bi("0xf")][bi("0x10")](i,Qo(n,r))}this[bi("0x16")]()}[bi("0x16")](){const t=this[bi("0x1e")],e=t[bi("0x18")],n=t[bi("0x1f")][bi("0x6")]("TrackChangesEditing");function o(t,o){n[bi("0xf")][bi("0x1d")]((n=>{if("formatInline"!=n[bi("0x7")])return;const{data:i}=n;return i&&i[bi("0x4")]===t?i[bi("0x12")][0][bi("0x2")]?{type:bi("0xa"),content:Qo(e,bi("0x1a"),o)}:{type:bi("0xa"),content:Qo(e,bi("0xd"),o)}:void 0}))}o(bi("0xe"),Qo(e,bi("0xb"))),o(bi("0x1"),Qo(e,bi("0x9"))),o("underline",Qo(e,"FORMAT_UNDERLINE")),o(bi("0x21"),Qo(e,bi("0x19"))),o(bi("0xc"),Qo(e,"FORMAT_STRIKETHROUGH")),o("subscript",Qo(e,"FORMAT_SUBSCRIPT")),o(bi("0x20"),Qo(e,bi("0x14")))}}const Ti=["$root","get","editor","BlockQuoteEditing","plugins","getSelectedBlocks","blockQuote","checkChild","ELEMENT_BLOCK_QUOTE","locale","document","registerDescriptionCallback","markBlockFormat","parent","forceValue","name","*Set format:* %0","commandParams","from","model","commandName","enableCommand","format","filter","commands","value","TrackChangesEditing","*Remove format:* %0"];var yi,Ci;yi=Ti,Ci=245,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return Ti[t-=0]};class ki extends t.Plugin{afterInit(){const t=this[Ai("0x9")],e=t[Ai("0x10")];if(!t[Ai("0xb")].has(Ai("0xa")))return;const n=t[Ai("0xb")][Ai("0x8")](Ai("0x5")),o=this[Ai("0x9")][Ai("0x3")][Ai("0x8")](Ai("0xd"));n[Ai("0x0")](Ai("0xd"),((e,i={})=>{const r=this[Ai("0x9")][Ai("0x1a")][Ai("0x11")].selection,s=i&&void 0!==i.forceValue?i[Ai("0x15")]:!o[Ai("0x4")];let x=[];if(s){const e=Array[Ai("0x19")](r[Ai("0xc")]())[Ai("0x2")]((t=>Ii(t)||function(t,e){const n=e.checkChild(t.parent,Ai("0xd")),o=e[Ai("0xe")]([Ai("0x7"),"blockQuote"],t);return n&&o}(t,this.editor.model.schema)));x=v(e,t.model)}else{const e=Array.from(r[Ai("0xc")]()).filter((t=>Ii(t)));x=v(e,t[Ai("0x1a")])}t[Ai("0x1a")].change((()=>{for(const t of x)n[Ai("0x13")](t,{commandName:"blockQuote",commandParams:[{forceValue:s}]})}))})),n._descriptionFactory[Ai("0x12")]((t=>{const{data:n}=t;if(n&&Ai("0xd")==n[Ai("0x1b")]){const t=Qo(e,Ai("0xf"));return n[Ai("0x18")][0].forceValue?{type:Ai("0x1"),content:Qo(e,Ai("0x17"),t)}:{type:Ai("0x1"),content:Qo(e,Ai("0x6"),t)}}}))}}function Ii(t){return Ai("0xd")==t[Ai("0x14")][Ai("0x16")]}const Ri=["commands","enableCommand","ckbox","get"];var vi,Si;vi=Ri,Si=346,function(t){for(;--t;)vi.push(vi.shift())}(++Si);const Ni=function(t,e){return Ri[t-=0]};class Li extends t.Plugin{afterInit(){const t=this.editor;t[Ni("0x2")][Ni("0x1")](Ni("0x0"))&&t.plugins[Ni("0x1")]("TrackChangesEditing")[Ni("0x3")]("ckbox")}}const Mi=["registerDescriptionCallback","*Remove format:* %0","plugins","value","formatBlock","language","checkChild","commands","find","filter","config","from","enableCommand","forceValue","name","type","isLimit","has","TrackChangesEditing","indentCodeBlock","toLowerCase","selection","codeBlock","registerElementLabel","parent","markBlockFormat","outdentCodeBlock","locale","commandParams","_descriptionFactory","languages","blockName","ELEMENT_CODE_BLOCK","model","get","getSelectedBlocks","format","schema","rootElement"];var wi,Oi;wi=Mi,Oi=332,function(t){for(;--t;)wi.push(wi.shift())}(++Oi);const Fi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Fi("0x24")]("CodeBlock"))return;const e=t[Fi("0x15")][Fi("0xe")](Fi("0x25")),n=t[Fi("0x7")],o=t[Fi("0x1d")][Fi("0xe")](Fi("0x2"))[Fi("0xa")],i=t[Fi("0x1a")][Fi("0xe")]("codeBlock");e[Fi("0x1f")](Fi("0x26")),e[Fi("0x1f")](Fi("0x6")),e.enableCommand(Fi("0x2"),((n,r={})=>{const s=t[Fi("0xd")],x=t.model.document[Fi("0x1")],a=r&&void 0!==r[Fi("0x20")]?r.forceValue:!i[Fi("0x16")];let c;r.language||(r.language=o[0][Fi("0x18")]),c=a?Array[Fi("0x1e")](x[Fi("0xf")]())[Fi("0x1c")]((t=>{return Bi(t)||(e=t,n=s[Fi("0x11")],!e.is(Fi("0x12"))&&!n[Fi("0x23")](e)&&n[Fi("0x19")](e[Fi("0x4")],Fi("0x2")));var e,n})):Array.from(x[Fi("0xf")]())[Fi("0x1c")]((t=>Bi(t)));const l=v(c,s);s.change((()=>{for(const t of l)e[Fi("0x5")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Fi("0xb")})}))})),e._descriptionFactory[Fi("0x3")]("codeBlock",(t=>Qo(n,Fi("0xc"),t))),e[Fi("0x9")][Fi("0x13")]((t=>{if(Fi("0x17")!=t[Fi("0x22")])return;const e=n.t,{data:i}=t;if(!i||"codeBlock"!=i.commandName)return;const r=i[Fi("0x8")][0][Fi("0x18")],s=e(o[Fi("0x1b")]((t=>t[Fi("0x18")]===r)).label)[Fi("0x0")]();return i[Fi("0x8")][0][Fi("0x20")]?{type:Fi("0x10"),content:Qo(n,"*Set format:* %0",Qo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Fi("0x10"),content:Qo(n,Fi("0x14"),Qo(n,Fi("0xc"),1))}}))}}function Bi(t){return Fi("0x2")==t[Fi("0x21")]}const Pi=["plugins","CommentsEditing","addCommentThread","has","get","editor","TrackChangesEditing","enableCommand","afterInit"];var Ui,ji;Ui=Pi,ji=249,function(t){for(;--t;)Ui.push(Ui.shift())}(++ji);const Gi=function(t,e){return Pi[t-=0]};class Vi extends t.Plugin{[Gi("0x2")](){const t=this[Gi("0x8")];t[Gi("0x3")][Gi("0x6")](Gi("0x4"))&&t[Gi("0x3")][Gi("0x7")](Gi("0x0"))[Gi("0x1")](Gi("0x5"))}}var Hi=n(181);const zi=["writer","elementEnd","listItem","isAtEnd","markerRange","isLimit","push","type","getAttribute","nextSibling","createRangeOn","ck-suggestion-marker--active","mapper","insert","getItems","listIndent","parent","span","addClass","toViewPosition","addHighlight","element","name","previousPosition","plugins","consumable","markerName","bindElementToMarker","isContent","model","includes","test","getCustomProperty","TrackChangesEditing","createUIElement","get","getWalker"];var Wi,Ki;Wi=zi,Ki=158,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};function Xi(t,e,n){const o=[];for(const i of e[qi("0x4")]())i.hasAttribute(t)&&o[qi("0x21")](n[qi("0x0")](i));return o}function $i(t,e,{showActiveMarker:n=!0}={}){const o=t[qi("0xe")][qi("0x19")](qi("0x17"));return(i,r,s)=>{if(!s[qi("0xf")][qi("0x15")](r[qi("0x1f")],i[qi("0xc")]))return;const x=r[qi("0x1f")][qi("0x1a")](),a=r.markerRange.start,c=t[qi("0x13")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[qi("0x12")](e);const n=s[qi("0x2")].toViewElement(e);if(n&&n[qi("0x16")](qi("0xa")))return;qi("0x1c")==t[qi("0x22")]&&c.isBlock(e)&&!c[qi("0x20")](e)&&(e[qi("0x24")]||a[qi("0x1e")]?l&&l[qi("0x6")]==e||(l=e,f(t[qi("0xd")]),g=!0):u=u||t[qi("0xd")])}function f(t){const i=s[qi("0x1b")][qi("0x18")](qi("0x7"),{class:"ck-suggestion-marker-"+e}),x=s[qi("0x2")][qi("0x9")](t);n&&o.activeMarkers[qi("0x14")](r[qi("0x10")])&&s[qi("0x1b")][qi("0x8")](qi("0x1"),i),s.writer[qi("0x3")](x,i),s[qi("0x2")][qi("0x11")](i,r[qi("0x10")])}d||g||!u||f(u)}}const Zi=["TrackChangesEditing","high","modifySelection","editing","unbindElementFromMarkerName","isCollapsed","markerNameToElements","get","model","rootName","delete","deleteForward","enableCommand","commands","start","showSuggestionHighlights","editor","init","buffer","writer","unit","document","markerName","setSelection","merge","mapper","bind","lock","remove","unlock","addMarker:suggestion:deletion","detach","getFirstRange","createRange","batch","downcastDispatcher","data","fromRange","root","end","requires","plugins","uiElement","options"];var Yi,Ji;Yi=Zi,Ji=182,function(t){for(;--t;)Yi.push(Yi.shift())}(++Ji);const Qi=function(t,e){return Zi[t-=0]};class tr extends t.Plugin{static get[Qi("0x22")](){return[Hi.Delete]}[Qi("0xb")](){const t=this[Qi("0xa")],e=t[Qi("0x23")][Qi("0x1")](Qi("0x26"));e[Qi("0x6")](Qi("0x4"));const n=t[Qi("0x7")][Qi("0x1")](Qi("0x5"));e[Qi("0x6")](Qi("0x5"),((e,o={})=>{const i=t.model.createSelection(t[Qi("0x2")][Qi("0xf")].selection);i[Qi("0x2b")]&&t.model[Qi("0x28")](i,{direction:"forward",unit:o[Qi("0xe")]});const r=i[Qi("0x1a")](),x=s.LiveRange[Qi("0x1f")](r);let a;e(o),a="$graveyard"==x[Qi("0x20")][Qi("0x3")]?t[Qi("0x2")][Qi("0x1b")](r[Qi("0x8")]):t[Qi("0x2")][Qi("0x1b")](x[Qi("0x8")],x[Qi("0x21")]),x[Qi("0x19")](),t[Qi("0x2")].enqueueChange(n[Qi("0xc")][Qi("0x1c")],(t=>{n.buffer[Qi("0x15")](),t[Qi("0x11")](t.createRange(a[Qi("0x21")])),n[Qi("0xc")][Qi("0x17")]()}))})),t[Qi("0x29")][Qi("0x1d")].on(Qi("0x18"),$i(t,Qi("0x12")),{priority:Qi("0x27")}),t[Qi("0x1e")][Qi("0x1d")].on(Qi("0x18"),((e,n,o)=>{o[Qi("0x25")][Qi("0x9")]&&$i(t,Qi("0x12"),{showActiveMarker:!1})[Qi("0x14")](this)(e,n,o)}),{priority:"high"}),t[Qi("0x29")][Qi("0x1d")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[Qi("0x13")][Qi("0x0")](e[Qi("0x10")]);if(o)for(const t of o)t.is(Qi("0x24"))&&(n[Qi("0x13")][Qi("0x2a")](t,e[Qi("0x10")]),n[Qi("0xd")][Qi("0x16")](t))}),{priority:Qi("0x27")})}}const er=["fromRange","getFirstRange","createPositionAt","isObject","DocumentListUtils","*Change to:* %0","slice","ELEMENT_LIST_ITEM","get","config","forceValue","change","createRange","enableCommand","refresh","listItemId","setSelection","*Merge:* %0","*Format:* remove from %0","value","listType","commandParams","documentList","afterInit","commandName","commands","after","getSelectedBlocks","accept","registerCustomCallback","end","plugins","push","model","format","indentList","hasAttribute","has","formatBlock","before","*Format:* insert into %0","_LIST","document","isFirstBlockOfListItem","nextSibling","nodeAfter","expandListBlocksToCompleteList","markBlockFormat","length","findIndex","getAttribute","schema","next","getRanges","previousSibling","splitListItemBefore","outdentList","ELEMENT_NUMBERED_LIST","registerDescriptionCallback","markMultiRangeBlockFormat","formatInline","map","type","mergeListItemForward","start","_suggestionFactory","deletion","toUpperCase","*Outdent:* %0","multipleBlocks","numberedList","listIndent","mergeListItemBackward","from","execute","registerElementLabel","list.multiBlock","bulletedList","ELEMENT_BULLETED_LIST","selection","containsItem","DocumentListEditing"];var nr,or;nr=er,or=316,function(t){for(;--t;)nr.push(nr.shift())}(++or);const ir=function(t,e){return er[t-=0]};class rr extends t.Plugin{[ir("0x23")](){const t=this.editor;if(!t[ir("0x2b")][ir("0x31")](ir("0xb")))return;const e=t.locale,n=t[ir("0x2b")][ir("0x14")]("TrackChangesEditing"),o=t[ir("0x2b")][ir("0x14")](ir("0x10"));function i(e){return()=>{const i=t[ir("0x25")][ir("0x14")](e);if(i[ir("0x1f")]&&!t.config[ir("0x14")](ir("0x6")))return void t[ir("0x4")]("paragraph",{});let r=Array[ir("0x3")](t[ir("0x2d")][ir("0x36")][ir("0x9")][ir("0x27")]());if(a(e)){r=o[ir("0x3a")](r);const t=[];for(const e of r)o[ir("0x37")](e)&&t[ir("0x2c")](e);r=t}t[ir("0x2d")][ir("0x17")]((()=>{n[ir("0x47")](r,{commandName:e,commandParams:[{forceValue:!i[ir("0x1f")]}],formatGroupId:ir("0x20")},[],ir("0x22"))}))}}function r(e){return()=>{const o=function(t){let e=Array[ir("0x3")](t);const n=e[ir("0x3d")]((t=>!t[ir("0x30")](ir("0x1b"))));return n>-1&&(e=e[ir("0x12")](0,n)),e}(t.model.document[ir("0x9")][ir("0x27")]()),i=o[o[ir("0x3c")]-1],r=t[ir("0x2d")][ir("0x3f")][ir("0xf")](i)?ir("0x26"):"end",s=t.model.createRange(t[ir("0x2d")].createPositionAt(o[0],ir("0x33")),t.model.createPositionAt(i,r));t[ir("0x2d")][ir("0x17")]((()=>{n[ir("0x3b")](s,{commandName:e,commandParams:[],formatGroupId:ir("0x20")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[ir("0x3e")](ir("0x1"))>n[ir("0x3e")](ir("0x1"));)e.add(t),t=t[ir("0x38")]}return Array[ir("0x3")](e)}(o))}))}}function x(e){return()=>{const o=t[ir("0x2d")][ir("0x36")][ir("0x9")][ir("0x27")]()[ir("0x40")]()[ir("0x1f")],i=t.model[ir("0xe")](o,ir("0x33")),r=t[ir("0x2d")].createPositionAt(o,0),s=t[ir("0x2d")].createRange(i,r);t[ir("0x2d")][ir("0x17")]((()=>{n[ir("0x3b")](s,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t.commands.get("bulletedList")[ir("0x1f")],o=t[ir("0x25")][ir("0x14")](ir("0x0"))[ir("0x1f")];return ir("0x0")===e?n:o}n[ir("0x19")](ir("0x0"),i(ir("0x0"))),n.enableCommand(ir("0x7"),i(ir("0x7"))),n[ir("0x19")]("indentList",r(ir("0x2f"))),n.enableCommand(ir("0x44"),r("outdentList")),n.enableCommand("splitListItemAfter",x("splitListItemAfter")),n[ir("0x19")](ir("0x43"),x(ir("0x43"))),n._descriptionFactory[ir("0x5")]((function(e){const n=!t[ir("0x2d")][ir("0x3f")][ir("0xf")](e),o=e[ir("0x42")],i=e[ir("0x38")],r=e[ir("0x3e")](ir("0x1b")),s=!o||o[ir("0x3e")](ir("0x1b"))!==r,x=!i||i[ir("0x3e")]("listItemId")!==r;return n&&Boolean(r)&&s&&x}),(t=>Qo(e,ir("0x13"),t))),n._descriptionFactory[ir("0x46")]((function(n){if(ir("0x32")!=n[ir("0x4a")]&&ir("0x48")!=n[ir("0x4a")])return;const{data:o}=n;if(!o)return;let i,r,s,x;switch(o[ir("0x24")]){case ir("0x7"):s=o.commandParams[0].forceValue,x=a(o[ir("0x24")]),i=s?"*Format:* insert into %0":ir("0x1e"),!x&&t[ir("0x15")][ir("0x14")](ir("0x6"))||(i=ir("0x11")),r={type:ir("0x2e"),content:Qo(e,i,Qo(e,ir("0x8")))};break;case ir("0x0"):s=o[ir("0x21")][0][ir("0x16")],x=a(o[ir("0x24")]),i=ir(s?"0x34":"0x1e"),!x&&t[ir("0x15")][ir("0x14")](ir("0x6"))||(i=ir("0x11")),r={type:ir("0x2e"),content:Qo(e,i,Qo(e,ir("0x45")))};break;case ir("0x2f"):i="*Indent:* %0",r={type:ir("0x2e"),content:Qo(e,i,Qo(e,ir("0x13")))};break;case ir("0x44"):i=function(t){const e=t.getFirstRange();let n=e.start[ir("0x39")];for(;n&&e[ir("0xa")](n);){if(n[ir("0x3e")](ir("0x1"))>0)return!1;n=n[ir("0x38")]}return!0}(n)?Qo(e,ir("0x1e"),Qo(e,"ELEMENT_"+n[ir("0xd")]()[ir("0x4c")][ir("0x39")][ir("0x3e")](ir("0x20"))[ir("0x4f")]()+ir("0x35"))):Qo(e,ir("0x50"),Qo(e,ir("0x13"))),r={type:"format",content:i};break;case ir("0x2"):case ir("0x4b"):!1===o[ir("0x51")]&&(i=ir("0x1d"),r={type:ir("0x4e"),content:Qo(e,i,Qo(e,ir("0x13")))})}return r})),n[ir("0x4d")][ir("0x29")]("formatBlock","documentList",ir("0x28"),(function(e,n){const o=[];for(let n of e)n.start[ir("0x39")]===n[ir("0x2a")].parent&&(n=t[ir("0x2d")][ir("0x18")](t[ir("0x2d")][ir("0xe")](n[ir("0x4c")][ir("0x39")],0))),o.push(n);t.model[ir("0x17")]((e=>{const i=t[ir("0x2d")][ir("0x36")][ir("0x9")],r=Array[ir("0x3")](i[ir("0x41")]())[ir("0x49")]((t=>s.LiveRange[ir("0xc")](t)));e.setSelection(o),t[ir("0x25")][ir("0x14")](n[ir("0x24")])[ir("0x1a")](),n.commandParams.push({forceDefaultExecution:!0}),t[ir("0x4")](n[ir("0x24")],...n[ir("0x21")]),e[ir("0x1c")](r);for(const t of r)t.detach()}))}))}}const sr=["*Change to:* %0","getSelectedBlocks","_getSuggestionBlocksForListStyle","model","expandListBlocksToCompleteList","toUpperCase","change","_descriptionFactory","config","reversed","listType","replace","isFirstBlockOfListItem","editor","registerDescriptionCallback","plugins","format","afterInit","_getTranslationKeyForListStyle","from","bind","listStart","isListItemBlock","DocumentListPropertiesEditing","DocumentListPropertiesUtils","enableCommand","numbered","locale","type","formatInline","TrackChangesEditing","commandName","getListTypeFromListStyleType","DocumentListUtils","commandParams","handleListStyleCommand","handleListStartCommand","_LIST_","filter","getAttribute","get","startIndex","push","handleDescriptions","document","*Format:* set order to regular","listStyle","ELEMENT_","markMultiRangeBlockFormat","length","_getSuggestionBlocks","formatBlock"];var xr,ar;xr=sr,ar=157,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{[cr("0x10")](){if(!this[cr("0xc")].plugins.has(cr("0x16")))return;const t=this[cr("0xc")][cr("0x7")][cr("0x27")]("list.properties"),e=this[cr("0xc")][cr("0xe")][cr("0x27")](cr("0x1d"));t.styles&&e.enableCommand(cr("0x2d"),this[cr("0x22")][cr("0x13")](this)),t[cr("0x8")]&&e[cr("0x18")]("listReversed",this.handleListReversedCommand[cr("0x13")](this)),t.startIndex&&e[cr("0x18")](cr("0x14"),this[cr("0x23")].bind(this)),e[cr("0x6")][cr("0xd")](this[cr("0x2a")][cr("0x13")](this))}[cr("0x22")](t,e={}){const n=this[cr("0xc")][cr("0xe")].get(cr("0x1d")),o=this._getSuggestionBlocksForListStyle();this.editor[cr("0x2")][cr("0x5")]((()=>{n[cr("0x2f")](o,{commandName:cr("0x2d"),commandParams:[{type:e[cr("0x1b")]}],formatGroupId:cr("0x2d")})}))}handleListReversedCommand(t,e={}){const n=this.editor[cr("0xe")][cr("0x27")](cr("0x1d")),o=this.editor[cr("0xe")].get(cr("0x20")),i=this._getSuggestionBlocks((t=>o.isListItemBlock(t)&&"numbered"===t.getAttribute(cr("0x9"))));null!==i&&this[cr("0xc")].model.change((()=>{n[cr("0x2f")](i,{commandName:"listReversed",commandParams:[{reversed:e[cr("0x8")]}],formatGroupId:"listReversed"})}))}[cr("0x23")](t,e={}){const n=this[cr("0xc")].plugins.get(cr("0x1d")),o=this[cr("0xc")][cr("0xe")][cr("0x27")](cr("0x20")),i=this[cr("0x31")]((t=>o[cr("0x15")](t)&&cr("0x19")===t[cr("0x26")](cr("0x9"))));null!==i&&this[cr("0xc")][cr("0x2")][cr("0x5")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:cr("0x14"),commandParams:[{startIndex:e[cr("0x28")]}],formatGroupId:cr("0x14")})}))}handleDescriptions(t){if(cr("0x32")!=t[cr("0x1b")]&&cr("0x1c")!=t.type)return;const e=this.editor[cr("0x1a")],{data:n}=t;if(!n)return;let o,i;switch(n[cr("0x1e")]){case cr("0x2d"):o=cr("0x33"),i={type:"format",content:Qo(e,o,Qo(e,this[cr("0x11")](n[cr("0x21")][0].type)))};break;case"listReversed":o=n[cr("0x21")][0][cr("0x8")]?"*Format:* set order to reversed":cr("0x2c"),i={type:cr("0xf"),content:Qo(e,o)};break;case"listStart":o="*Format:* set start index to %0",i={type:cr("0xf"),content:Qo(e,o,n[cr("0x21")][0][cr("0x28")])}}return i}[cr("0x1")](){const t=this[cr("0xc")][cr("0xe")][cr("0x27")](cr("0x20"));let e=Array[cr("0x12")](this[cr("0xc")].model.document.selection.getSelectedBlocks());return e[cr("0x29")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[cr("0x31")](t){const e=this.editor.plugins.get(cr("0x20"));let n=Array[cr("0x12")](this[cr("0xc")][cr("0x2")][cr("0x2b")].selection[cr("0x0")]())[cr("0x25")](t);if(!n[cr("0x30")])return null;n=e[cr("0x3")](n);const o=[];for(const t of n)e[cr("0xb")](t)&&o[cr("0x29")](t);return o}[cr("0x11")](t){return cr("0x2e")+this.editor[cr("0xe")][cr("0x27")](cr("0x17"))[cr("0x1f")](t).toUpperCase()+cr("0x24")+t[cr("0x4")]()[cr("0xa")](/-/g,"_")}}var ur=n(331);const dr=["markerNameToElements","enterBlock","removeMarker:suggestion:insertion","bind","requires","commands","model","showSuggestionHighlights","plugins","nextSibling","enableCommand","selection","downcastDispatcher","options","afterExecute","writer","init","high","createRange","document","markInsertion","getFirstRange","enter","fire","getFirstPosition","get","createPositionAt","split","mapper","addMarker:suggestion:insertion","hasClass","editor","ck-suggestion-marker-split","remove","TrackChangesEditing","end","editing","markerName"];var gr,fr;gr=dr,fr=432,function(t){for(;--t;)gr.push(gr.shift())}(++fr);const mr=function(t,e){return dr[t-=0]};class hr extends t.Plugin{static get[mr("0x1c")](){return[ur.Enter]}[mr("0x2")](){const t=this[mr("0x11")],e=t[mr("0x20")][mr("0xb")](mr("0x14")),n=t[mr("0x1d")].get(mr("0x8"));e[mr("0x22")](mr("0x8"),(()=>{t[mr("0x1e")].change((o=>{const i=t[mr("0x1e")][mr("0x5")][mr("0x23")],r=i[mr("0xa")](),x=s.LiveRange.fromRange(i[mr("0x7")]());if(n[mr("0x19")](o)){const n=t[mr("0x1e")][mr("0xc")](r.parent[mr("0x21")],0),i=o[mr("0x4")](r,n);e[mr("0x6")](i)}else o.setSelection(o.createRange(x[mr("0x15")]));x.detach(),n[mr("0x9")](mr("0x0"),{writer:o})}))})),t.editing[mr("0x24")].on(mr("0xf"),$i(t,mr("0xd")),{priority:mr("0x3")}),t[mr("0x16")].downcastDispatcher.on(mr("0x1a"),((t,e,n)=>{const o=n[mr("0xe")][mr("0x18")](e.markerName);if(o)for(const t of o)t[mr("0x10")](mr("0x12"))&&(n[mr("0xe")].unbindElementFromMarkerName(t,e[mr("0x17")]),n[mr("0x1")][mr("0x13")](t))}),{priority:mr("0x3")}),t.data[mr("0x24")].on(mr("0xf"),((e,n,o)=>{o[mr("0x25")][mr("0x1f")]&&$i(t,mr("0xd"),{showActiveMarker:!1})[mr("0x1b")](this)(e,n,o)}),{priority:mr("0x3")})}}const pr=["TrackChangesEditing","suggestion:deletion","createPositionAt","handleFindCommand","has","_isInDeletionRange","start","findByTextCallback","createRange","findPrevious","get","plugins","getRange","enableCommand","markers","editor","end","model","getIntersection","getMarkersGroup","find","replaceAll","filter","FindAndReplaceEditing","string","findNext","FindAndReplaceUtils"];var br,Er;br=pr,Er=240,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]};class Tr extends t.Plugin{afterInit(){if(!this[_r("0x12")][_r("0xe")][_r("0x7")](_r("0x1a")))return;const t=this[_r("0x12")][_r("0xe")].get(_r("0x3"));t[_r("0x10")](_r("0x17"),this[_r("0x6")].bind(this)),t[_r("0x10")](_r("0x1")),t[_r("0x10")](_r("0xc")),t[_r("0x10")]("replace"),t[_r("0x10")](_r("0x18"))}[_r("0x6")](t,e,n={}){const o=this[_r("0x12")][_r("0xe")][_r("0xd")](_r("0x2"));if(void 0!==n)return t((t=>(_r("0x0")==typeof e?o[_r("0xa")](e,n):e)(t)[_r("0x19")]((e=>!1===this[_r("0x8")](e,t.item)))),n)}[_r("0x8")](t,e){const n=this[_r("0x12")].model[_r("0xb")](this[_r("0x12")][_r("0x14")].createPositionAt(e,t[_r("0x9")]),this[_r("0x12")][_r("0x14")][_r("0x5")](e,t[_r("0x13")]));for(const t of this.editor.model[_r("0x11")][_r("0x16")](_r("0x4")))if(null!==n[_r("0x15")](t[_r("0xf")]()))return!0;return!1}}const yr=["find","normalizeSizeOptions","title","FORMAT_FONT_COLOR","model","FontSizeEditing","fontSize.options","FontColorEditing","fontBackgroundColor.colors","*Reset font color*","_enableDefaultAttributesIntegration","commandName","*Reset font background color*","label","trim","locale","_descriptionFactory","FORMAT_FONT_FAMILY","*Reset font size*","*Set font color:* %0","type","fontColor","value","toLowerCase","registerAttributeLabel","_registerLegacyDescription","format","fontFamily","config","editor","fontBackgroundColor","registerDescriptionCallback","commandParams","fontSize","*Set font size:* %0","TrackChangesEditing","get","*Reset font family*","plugins","FORMAT_FONT_BACKGROUND","fontColor.colors","formatInline"];var Cr,Ar;Cr=yr,Ar=270,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]},Ir=[{pluginName:kr("0x1d"),commandName:kr("0xf")},{pluginName:"FontFamilyEditing",commandName:"fontFamily"},{pluginName:kr("0x1f"),commandName:kr("0x3")},{pluginName:"FontBackgroundColorEditing",commandName:kr("0xc")}];class Rr extends t.Plugin{afterInit(){const t=this[kr("0xb")][kr("0x27")],e=this[kr("0xb")].plugins[kr("0x12")](kr("0x11"));for(const{pluginName:t,commandName:n}of Ir)this[kr("0xb")][kr("0x14")].has(t)&&e[kr("0x22")](n,[n]);t.t,e[kr("0x28")].registerAttributeLabel(kr("0xf"),Qo(t,"FORMAT_FONT_SIZE")),e._descriptionFactory.registerAttributeLabel(kr("0x9"),Qo(t,kr("0x29"))),e[kr("0x28")][kr("0x6")]("fontColor",Qo(t,kr("0x1b"))),e[kr("0x28")][kr("0x6")]("fontBackgroundColor",Qo(t,kr("0x15"))),this[kr("0x7")]()}[kr("0x7")](){const t=this.editor,e=t[kr("0x27")];t[kr("0x14")][kr("0x12")](kr("0x11"))[kr("0x28")][kr("0xd")]((t=>{const n=e.t;if(kr("0x17")!=t[kr("0x2")])return;const{data:o}=t;if(null!=o){if(kr("0xf")==o[kr("0x23")]){const t=o[kr("0xe")][0][kr("0x4")];if(t){const o=n(this[kr("0xb")].plugins[kr("0x12")]("FontSize")[kr("0x19")](this[kr("0xb")][kr("0xa")].get(kr("0x1e")))[kr("0x18")]((e=>e[kr("0x1c")]==t))[kr("0x1a")])[kr("0x5")]();return{type:kr("0x8"),content:Qo(e,kr("0x10"),o)}}return{type:kr("0x8"),content:Qo(e,kr("0x0"))}}if(kr("0x9")==o[kr("0x23")]){const t=o[kr("0xe")][0][kr("0x4")];return t?{type:kr("0x8"),content:Qo(e,"*Set font family:* %0",t)}:{type:kr("0x8"),content:Qo(e,kr("0x13"))}}if(kr("0x3")==o[kr("0x23")]){const t=o.commandParams[0].value;if(t){const o=(0,i.normalizeColorOptions)(this[kr("0xb")].config[kr("0x12")](kr("0x16")))[kr("0x18")]((e=>e[kr("0x1c")]==t));let r=t,s="";return o&&(r=o[kr("0x25")],s=n(r)[kr("0x5")]()),{type:kr("0x8"),content:Qo(e,kr("0x1"),s).trim(),color:{value:t,title:s||r}}}return{type:kr("0x8"),content:Qo(e,kr("0x21"))}}if(kr("0xc")==o[kr("0x23")]){const t=o.commandParams[0].value;if(t){const o=(0,i.normalizeColorOptions)(this[kr("0xb")][kr("0xa")][kr("0x12")](kr("0x20")))[kr("0x18")]((e=>e[kr("0x1c")]==t));let r=t,s="";return o&&(r=o[kr("0x25")],s=n(r)[kr("0x5")]()),{type:kr("0x8"),content:Qo(e,"*Set font background color:* %0",s)[kr("0x26")](),color:{value:t,title:s||r}}}return{type:kr("0x8"),content:Qo(e,kr("0x24"))}}}}))}}const vr=["locale","model","editor","commandParams","toUpperCase","title","fontSize","split","afterInit","commands","copyFormat","formatInline","plugins","type","get","label","toLowerCase","join","fontColor.colors","fontBackgroundColor","formatBlock","slice","*Set format to:* %0","commandName","fontSize.options","push","enableCommand","boolean","pasteFormat","find","config","format","_registerLegacyDescription","_enableDefaultAttributesIntegration","normalizeSizeOptions","TrackChangesEditing","length"];var Sr,Nr;Sr=vr,Nr=432,function(t){for(;--t;)Sr.push(Sr.shift())}(++Nr);const Lr=function(t,e){return vr[t-=0]};class Mr extends t.Plugin{[Lr("0x14")](){const t=this[Lr("0xe")],e=t[Lr("0x18")][Lr("0x1a")](Lr("0xa")),n=t[Lr("0x15")][Lr("0x1a")]("copyFormat"),o=t[Lr("0x15")][Lr("0x1a")]("pasteFormat");n&&o&&(e[Lr("0x8")](Lr("0x3")),e[Lr("0x1")](Lr("0x16")),this[Lr("0x7")]())}[Lr("0x7")](){const t=this.editor,e=t[Lr("0xc")];t[Lr("0x18")].get(Lr("0xa"))._descriptionFactory.registerDescriptionCallback((n=>{if(Lr("0x20")!=n[Lr("0x19")]&&Lr("0x17")!=n[Lr("0x19")])return;const{data:o}=n;if(o&&Lr("0x3")===o[Lr("0x23")]){const n=[],i=o[Lr("0xf")][0];for(const[e,o]of Object.entries(i))n[Lr("0x0")](wr(t,e,o));return n[Lr("0xb")]?{type:Lr("0x6"),content:Qo(e,Lr("0x22"),n.join(", "))}:{type:Lr("0x6"),content:Qo(e,"*Remove all formatting*")}}}))}}function wr(t,e,n){const o=t[Lr("0xc")].t,r=e[Lr("0x13")](/(?=[A-Z])/)[Lr("0x1d")](" "),s=o(r.charAt(0)[Lr("0x10")]()+r[Lr("0x21")](1)).toLowerCase();if(Lr("0x2")==typeof n)return s;if("fontColor"===e||Lr("0x1f")===e){const e=(0,i.normalizeColorOptions)(t.config[Lr("0x1a")](Lr("0x1e")))[Lr("0x4")]((t=>t[Lr("0xd")]==n));return s+" ("+(e?o(e[Lr("0x1b")])[Lr("0x1c")]():n)+")"}if(Lr("0x12")===e&&isNaN(parseFloat(n))){const e=t[Lr("0x18")][Lr("0x1a")]("FontSize")[Lr("0x9")](t[Lr("0x5")].get(Lr("0x24")))[Lr("0x4")]((t=>t.model==n));return s+" ("+(e?o(e[Lr("0x11")])[Lr("0x1c")]():n)+")"}return s+" ("+n+")"}const Or=["find","_getHeadingLevel","has","_enableDefaultAttributesIntegration","heading.options","get","ELEMENT_HEADING_CUSTOM","_descriptionFactory","match","format","HeadingEditing","model","heading","_headingOptions","*Change to:* %0","view","afterInit","plugins","_registerLegacyDescription","paragraph","type","ELEMENT_HEADING","title","locale","name"];var Fr,Dr;Fr=Or,Dr=286,function(t){for(;--t;)Fr.push(Fr.shift())}(++Dr);const Br=function(t,e){return Or[t-=0]};class Pr extends t.Plugin{[Br("0x5")](){const t=this.editor;if(!t[Br("0x6")][Br("0x10")](Br("0x18")))return;this[Br("0x2")]=t.config[Br("0x13")](Br("0x12"));const e=t[Br("0xc")],n=t[Br("0x6")][Br("0x13")]("TrackChangesEditing");n[Br("0x11")](Br("0x1"));for(const t of this[Br("0x2")])Br("0x8")!=t[Br("0x0")]&&n[Br("0x15")].registerElementLabel(t.model,(n=>{const o=this._getHeadingLevel(t[Br("0x0")]);return null!==o?(s=n,x=o,Qo(e,Br("0xa"),[s,x])):(i=n,r=t[Br("0xb")],Qo(e,"ELEMENT_HEADING_CUSTOM",[i,r]));var i,r,s,x}));this[Br("0x7")]()}_registerLegacyDescription(){const t=this.editor,e=t[Br("0xc")];t[Br("0x6")][Br("0x13")]("TrackChangesEditing")[Br("0x15")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Br("0x9")])return;const{data:n}=t;if(n&&Br("0x1")==n.commandName){const t=n.commandParams[0].value,s=this[Br("0xf")](t);if(null!==s)return{type:"format",content:Qo(e,Br("0x3"),(1,r=s,Qo(e,Br("0xa"),[1,r])))};const x=this[Br("0x2")][Br("0xe")]((e=>e[Br("0x0")]===t))[Br("0xb")];return{type:Br("0x17"),content:Qo(e,Br("0x3"),(o=1,i=x,Qo(e,Br("0x14"),[o,i])))}}var o,i,r}))}[Br("0xf")](t){var e,n;const o=t[Br("0x16")](/^heading(\d+)/);if(o)return o[1];const i=null===(e=this._headingOptions)||void 0===e?void 0:e[Br("0xe")]((e=>e[Br("0x0")]==t));if(i&&i[Br("0x4")]){const t=i[Br("0x4")],e=(null!==(n=t[Br("0xd")])&&void 0!==n?n:t)[Br("0x16")](/^h(\d+)/);if(e)return e[1]}return null}}const Ur=["type","format","*Remove highlight*","has","locale","_descriptionFactory","FORMAT_HIGHLIGHT","title","toLowerCase","color","*Set highlight:* %0","find","_enableDefaultAttributesIntegration","editor","TrackChangesEditing","afterInit","plugins","value","highlight","_registerLegacyDescription","HighlightEditing","get"];var jr,Gr;jr=Ur,Gr=243,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Vr=function(t,e){return Ur[t-=0]};class Hr extends t.Plugin{[Vr("0xe")](){const t=this[Vr("0xc")];if(!t[Vr("0xf")][Vr("0x2")](Vr("0x13")))return;const e=t[Vr("0xf")][Vr("0x14")]("TrackChangesEditing"),n=t.locale;e[Vr("0xb")]("highlight",["highlight"]),e[Vr("0x4")].registerAttributeLabel("highlight",Qo(n,"FORMAT_HIGHLIGHT")),this[Vr("0x12")]()}[Vr("0x12")](){const t=this.editor,e=t[Vr("0x3")];t[Vr("0xf")][Vr("0x14")](Vr("0xd"))[Vr("0x4")].registerDescriptionCallback((n=>{if("formatInline"!=n[Vr("0x15")])return;const{data:o}=n;if(o&&Vr("0x11")==o.commandName){const n=e.t,i=o.commandParams[0][Vr("0x10")];if(i){const o=t.config.get("highlight.options")[Vr("0xa")]((t=>t.model==i)),r=n(o[Vr("0x6")])[Vr("0x7")]();return{type:Vr("0x0"),content:Qo(e,Vr("0x9"),r),color:{value:o[Vr("0x8")],title:o[Vr("0x6")]}}}return{type:Vr("0x0"),content:Qo(e,Vr("0x1"),Qo(e,Vr("0x5")))}}}))}}const zr=["registerElementLabel","dataDowncast","createEmptyElement","for","insert","conversion","get","createPositionAt","showSuggestionHighlights","locale","elementToStructure","ELEMENT_HORIZONTAL_LINE","plugins","TrackChangesEditing","editor","horizontalLine","addClass","has","afterInit","createContainerElement"];var Wr,Kr;Wr=zr,Kr=197,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class Xr extends t.Plugin{[qr("0x1")](){const t=this[qr("0x11")];if(!t[qr("0xf")][qr("0x0")]("HorizontalLineEditing"))return;t[qr("0xf")][qr("0x9")](qr("0x10")).enableCommand("horizontalLine");const e=t[qr("0xf")][qr("0x9")](qr("0x10")),n=t[qr("0xc")];e._descriptionFactory[qr("0x3")](qr("0x12"),(t=>Qo(n,qr("0xe"),t))),t[qr("0x8")][qr("0x6")](qr("0x4"))[qr("0xd")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[qr("0xb")])return null;const o=e[qr("0x2")]("div"),i=e[qr("0x5")]("hr");return e[qr("0x13")]("ck-horizontal-line",o),e[qr("0x7")](e[qr("0xa")](o,0),i),o},converterPriority:"high"})}}const $r=["formatBlock","get","_registerLegacyDescription","commandName","value","key","registerDescriptionCallback","getFirstRange","afterInit","attribute","nodeAfter","start","type","plugins","locale","htmlEmbed","_descriptionFactory","TrackChangesEditing","_enableDefaultAttributesIntegration","rawHtml","*Change %0 content*","ELEMENT_HTML_EMBED","registerElementLabel","format","editor"];var Zr,Yr;Zr=$r,Yr=303,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const Jr=function(t,e){return $r[t-=0]};class Qr extends t.Plugin{[Jr("0x5")](){const t=this[Jr("0x15")];if(!t[Jr("0xa")].has("HtmlEmbed"))return;const e=t[Jr("0xa")][Jr("0x17")](Jr("0xe")),n=t.locale;e[Jr("0xd")][Jr("0x13")](Jr("0x10"),(t=>Qo(n,"ELEMENT_HTML_EMBED",t))),e[Jr("0xf")](Jr("0xc"),[],[Jr("0x1")]),e[Jr("0xd")][Jr("0x3")]((t=>{if(Jr("0x6")!=t.type)return;const{data:e}=t;if(e&&Jr("0x1")==e[Jr("0x2")]&&t[Jr("0x4")]()[Jr("0x8")][Jr("0x7")].is("element","rawHtml")){const t=Qo(n,Jr("0x12"));return{type:Jr("0x14"),content:Qo(n,"*Change %0 content*",t)}}})),this[Jr("0x18")]()}[Jr("0x18")](){const t=this[Jr("0x15")],e=t[Jr("0xb")];t[Jr("0xa")][Jr("0x17")]("TrackChangesEditing")._descriptionFactory[Jr("0x3")]((t=>{if(Jr("0x16")!=t[Jr("0x9")])return;const{data:n}=t;if(n&&"htmlEmbed"==n[Jr("0x0")]){const t=Qo(e,Jr("0x12"));return{type:Jr("0x14"),content:Qo(e,Jr("0x11"),t)}}}))}}const ts=["nodeAfter","createRange","selection","_registerLegacyDescription","change","*Remove image text alternative*","imageStylePreApply","insertion","schema","*Reset image width*","isEqual","ImageUploadEditing","discard","backward","removeObject","isCollapsed","ImageResize","toggleImageCaption","detach","find","registerDescriptionCallback","imageTextAlternative","filter","caption","locale","ImageEditing","end","imageCaption","getCaptionFromImageModelElement","convertBlockImageToInline","_suggestionFactory","isBlockImage","model","markBlockFormat","nodeBefore","editor","getSuggestionCallback","isBefore","length","getFirstRange","resizedWidth","registerElementLabel","key","format","getNearestSelectionRange","insertImage","getClosestSelectedImageElement","imageInline","start","deletion","type","addObject","get","formatBlock","ELEMENT_CAPTION","isIntersecting","commandParams","alt","*Set image text alternative:* %0","markDeletion","imageTypeInline","_descriptionFactory","imageBlock","width","ImageInlineEditing","plugins","ELEMENT_IMAGE","ImageUtils","Inline image to block image","_enableDefaultAttributesIntegration","*Set image width:* %0","afterInit","ELEMENT_INLINE_IMAGE","toPrevious","fromPosition","formatInline","subType","accept","chain","resizeImage","enableCommand","join","ImageCaptionEditing","element","TrackChangesEditing","document","markInsertion","registerCustomCallback","convertInlineImageToBlock","Block image to inline image","createRangeOn","has","isOwn","ImageTextAlternativeEditing"];var es,ns;es=ts,ns=212,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class is extends t.Plugin{[os("0x2f")](){const t=this[os("0xb")];if(!t[os("0x29")][os("0x43")](os("0x1")))return;const e=t[os("0x29")][os("0x1c")]("TrackChangesEditing"),n=t.plugins[os("0x1c")](os("0x2b")),o=t[os("0x0")];e[os("0x38")](os("0x15")),e[os("0x25")][os("0x11")](os("0x26"),(t=>Qo(o,os("0x2a"),t))),e._descriptionFactory[os("0x11")](os("0x17"),(t=>Qo(o,os("0x30"),t))),e[os("0x25")][os("0x11")](os("0x5d"),(()=>Qo(o,os("0x1e")))),t[os("0x29")][os("0x43")](os("0x51"))&&e[os("0x38")]("uploadImage"),t[os("0x29")][os("0x43")]("ImageBlockEditing")&&t[os("0x29")][os("0x43")](os("0x28"))&&(e[os("0x38")](os("0x24"),((o,i)=>{const r=n[os("0x16")](t.model[os("0x3d")][os("0x48")]);t.model[os("0x4a")]((()=>{e[os("0x9")](r,{commandName:os("0x24"),commandParams:[i]},[],os("0x5"))}))})),e[os("0x38")]("imageTypeBlock",((o,i)=>{t[os("0x8")][os("0x4a")]((r=>{let x=n.getClosestSelectedImageElement(t.model[os("0x3d")].selection),a=r[os("0x42")](x);const c=s.LivePosition[os("0x32")](a.start,os("0x31")),l=s.LivePosition[os("0x32")](a[os("0x2")],"toNext");e.forceDefaultExecution((()=>o(i))),x=n[os("0x16")](t.model[os("0x3d")][os("0x48")]),a=r.createRangeOn(x);const u=r[os("0x47")](c,l);c[os("0x58")](),l.detach(),e[os("0x9")](x,{commandName:"imageTypeInline",commandParams:[i]},[],os("0x40")),u[os("0x18")].isBefore(a[os("0x18")])&&e.markInsertion(r[os("0x47")](u[os("0x18")],a[os("0x18")]),os("0x40")),a[os("0x2")][os("0xd")](u[os("0x2")])&&e[os("0x3e")](r.createRange(a.end,u.end),"convertInlineImageToBlock")}))})),e[os("0x6")].registerCustomCallback(os("0x1d"),os("0x40"),"join",(()=>!1)),e._suggestionFactory[os("0x3f")]("formatBlock",os("0x40"),"accept",(()=>!1)),e._suggestionFactory[os("0x3f")](os("0x1d"),os("0x40"),os("0x52"),e[os("0x6")][os("0xc")](os("0x1d"),"",os("0x35"))),e[os("0x6")][os("0x3f")](os("0x4d"),"convertInlineImageToBlock",os("0x39"),(()=>!1)),e[os("0x6")].registerCustomCallback(os("0x4d"),os("0x40"),os("0x52"),(([n])=>{const o=e[os("0x6")].getSuggestionCallback("insertion","",os("0x52"));let i=n[os("0x18")],r=n[os("0x2")];const s=t[os("0x8")][os("0x4e")][os("0x14")](i,os("0x53")),x=t[os("0x8")].schema.getNearestSelectionRange(r,"forward");s.isCollapsed&&(i=s[os("0x18")]),x[os("0x55")]&&(r=x[os("0x2")]),o([t.model[os("0x47")](i,r)])})),e[os("0x6")][os("0x3f")](os("0x1d"),os("0x40"),os("0x36"),x),e[os("0x6")][os("0x3f")]("insertion","convertInlineImageToBlock","chain",x)),t[os("0x29")][os("0x43")](os("0x3a"))&&(e[os("0x38")](os("0x57"),((o,i)=>{const r=t[os("0x29")][os("0x1c")]("ImageCaptionUtils");let s=n[os("0x16")](t[os("0x8")][os("0x3d")][os("0x48")]),x=r[os("0x4")](s);t[os("0x8")][os("0x4a")]((()=>{if(x)return void e[os("0x23")](t.model[os("0x42")](x));const a=n[os("0x7")](s);o(i),s=n.getClosestSelectedImageElement(t[os("0x8")][os("0x3d")][os("0x48")]),x=r.getCaptionFromImageModelElement(s),e[os("0x3e")](t[os("0x8")][os("0x42")](x),a?null:os("0x3"))}))})),e[os("0x6")][os("0x3f")](os("0x4d"),os("0x3"),os("0x36"),x));const i=[{type:"formatBlock",subType:os("0x4c")},{type:os("0x4d"),subType:os("0x3")},{type:"formatBlock",subType:os("0x40")},{type:os("0x4d"),subType:os("0x40")}];function r(t,o){const r=i.findIndex((({type:e,subType:n})=>t[os("0x1a")]==e&&t[os("0x34")]==n)),s=i.findIndex((({type:t,subType:e})=>o[os("0x1a")]==t&&o[os("0x34")]==e));if(r<0||s<0)return!1;const x=t[os("0xf")](),a=o[os("0xf")]();if((0==r||1==r)&&2==s&&x[os("0x1f")](a))return!0;if(2==r&&3==s){const t=e._findSuggestions(x,os("0x4d"))[os("0x5c")]((({suggestion:t,meta:e})=>e[os("0x44")]&&os("0x40")==t[os("0x34")]));if(t[os("0xe")]>1&&a[os("0x2")][os("0x50")](x[os("0x18")]))return!0;if(1==t[os("0xe")]&&(x[os("0x18")][os("0x50")](a[os("0x2")])||x[os("0x2")][os("0x50")](a[os("0x18")])))return!0}if(3==r&&3==s&&x[os("0x18")][os("0xd")](a[os("0x18")])){const t=x[os("0x2")][os("0x46")],e=a[os("0x18")][os("0xa")];return n[os("0x7")](t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[os("0x29")][os("0x43")](os("0x56"))&&(e._enableDefaultAttributesIntegration(os("0x37"),[],[os("0x10")]),e._descriptionFactory.registerAttributeLabel(os("0x10"),Qo(o,"FORMAT_IMAGE_SIZE"))),t.plugins[os("0x43")](os("0x45"))&&e[os("0x2d")](os("0x5b"),[],[os("0x21")]),e[os("0x25")][os("0x5a")]((t=>{if(i[os("0x59")]((({type:e,subType:n})=>t[os("0x1a")]==e&&t.subType==n)))return t.previous?{}:void 0})),e[os("0x25")].registerDescriptionCallback((t=>{if(os("0x4d")==t[os("0x1a")]||os("0x19")==t[os("0x1a")]){const e=t.getContainedElement();if(e&&e.is(os("0x3b"),os("0x5d")))return{type:os("0x4d")==t[os("0x1a")]?os("0x1b"):os("0x54"),element:e,quantity:1}}})),e[os("0x25")].registerDescriptionCallback((t=>"formatBlock"==t[os("0x1a")]&&"convertInlineImageToBlock"==t[os("0x34")]?{type:os("0x13"),content:os("0x2c")}:os("0x1d")==t[os("0x1a")]&&os("0x5")==t[os("0x34")]?{type:os("0x13"),content:os("0x41")}:void 0)),e._descriptionFactory[os("0x5a")]((t=>{if("attribute"!=t[os("0x1a")])return;const{data:e}=t;if(!e||os("0x21")!=e[os("0x12")])return;const n=e.newValue;return n?{type:os("0x13"),content:Qo(o,"*Set image text alternative:* %0",'"'+n+'"')}:{type:os("0x13"),content:Qo(o,"*Remove image text alternative*")}})),this[os("0x49")]()}[os("0x49")](){const t=this[os("0xb")],e=t[os("0x0")];t[os("0x29")][os("0x1c")](os("0x3c"))._descriptionFactory[os("0x5a")]((t=>{if(os("0x1d")!=t[os("0x1a")]&&os("0x33")!=t[os("0x1a")])return;const{data:n}=t;if(n){if(os("0x5b")==n.commandName){const t=n[os("0x20")][0].newValue;return t?{type:os("0x13"),content:Qo(e,os("0x22"),'"'+t+'"')}:{type:os("0x13"),content:Qo(e,os("0x4b"))}}if(os("0x37")==n.commandName){const t=n.commandParams[0][os("0x27")];return t?{type:os("0x13"),content:Qo(e,os("0x2e"),t)}:{type:os("0x13"),content:Qo(e,os("0x4f"))}}}}))}}const rs=["registerCustomCallback","_registerLegacyDescription","_enableDefaultAttributesIntegration","discard","commandName","replaceImageSource","locale","ImageEditing","newValue","format","_handleLegacySuggestions","editor","formatBlock","*Replace image URL*","type","registerDescriptionCallback","formatInline","_descriptionFactory","_suggestionFactory","getSuggestionCallback","get","TrackChangesEditing","attribute","plugins","accept","oldValue","afterInit"];var ss,xs;ss=rs,xs=241,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x1")](){if(!this[as("0xd")][as("0x19")].has(as("0x9")))return;const t=this[as("0xd")][as("0x8")],e=this[as("0xd")].plugins[as("0x16")](as("0x17"));e[as("0x4")](as("0x7"),[],["src"]),e[as("0x13")].registerDescriptionCallback((e=>{if(as("0x18")!=e[as("0x10")])return;const{data:n}=e;return n&&"src"==n.key?n[as("0xa")]&&n[as("0x0")]?{type:as("0xb"),content:Qo(t,as("0xf"))}:{type:as("0xb"),content:""}:void 0})),this[as("0xc")]()}[as("0xc")](){const t=this[as("0xd")][as("0x19")][as("0x16")](as("0x17"));t._suggestionFactory[as("0x2")](as("0xe"),as("0x7"),as("0x1a"),t[as("0x14")][as("0x15")]("formatBlock",null,as("0x5"))),t[as("0x14")].registerCustomCallback(as("0xe"),"replaceImageSource",as("0x5"),t[as("0x14")][as("0x15")](as("0xe"),null,"accept")),this[as("0x3")]()}[as("0x3")](){const t=this[as("0xd")],e=t[as("0x8")];t[as("0x19")][as("0x16")]("TrackChangesEditing")._descriptionFactory[as("0x11")]((t=>{if(as("0xe")!=t[as("0x10")]&&as("0x12")!=t[as("0x10")])return;const{data:n}=t;return n&&as("0x7")===n[as("0x6")]?{type:"format",content:Qo(e,as("0xf"))}:void 0}))}}const ls=["value","accept","commandReversedParams","filter","getChangedMarkers","document","subType","refresh","newRange","format","imageStylePostApply","getClosestSelectedImageElement","imageStylePreApply","enableCommand","commandParams","ImageUtils","author","findIndex","getSuggestionCallback","has","chain","locale","insertion","get","markInlineFormat","_suggestionFactory","getContainedElement","*Format:* %0","isInContent","getFirstRange","isBlockImage","join","ImageStyleEditing","selection","createRangeOn","next","isBefore","type","toLowerCase","registerCustomCallback","FORMAT_SIDE_IMAGE","end","getSuggestion","shouldConvertImageType","change","isIntersecting","_registerLegacyDescription","isInlineImage","model","from","formatBlock","discardSuggestion","editor","imageTypeBlock","hasSuggestion","plugins","isEqual","isOwn","title","formatInline","getSuggestions","length","imageTypeInline","markBlockFormat","_splitMarkerName","commands","nodeAfter","start","convertInlineImageToBlock","imageStyle"];var us,ds;us=ls,ds=410,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{afterInit(){const t=this[gs("0x3e")];if(!t[gs("0x41")][gs("0x1d")]("ImageStyleEditing"))return;const n=t[gs("0x41")][gs("0x21")]("TrackChangesEditing"),o=t[gs("0x41")][gs("0x21")](gs("0x19")),i={};n[gs("0x17")]("imageStyle",((i,r)=>{const s=t.plugins[gs("0x21")]("Users").me,x=t[gs("0x5")][gs("0x21")](gs("0x9"));let a=o[gs("0x15")](t[gs("0x3a")][gs("0xf")][gs("0x2b")]),c=t[gs("0x3a")][gs("0x2c")](a),l=x[gs("0xa")];if(l==r[gs("0xa")])return;const u={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[gs("0x3a")][gs("0x36")]((()=>{if(n[gs("0x0")]()[gs("0xd")]((t=>t[gs("0x26")]&&s==t[gs("0x1a")]&&(gs("0x3c")==t[gs("0x2f")]||"formatInline"==t.type)&&(gs("0x16")==t.subType||"imageStylePostApply"==t.subType)&&t[gs("0x27")]().isEqual(c))).forEach((t=>n[gs("0x3d")](t.head))),a=o[gs("0x15")](t[gs("0x3a")].document[gs("0x2b")]),c=t[gs("0x3a")][gs("0x2c")](a),x.refresh(),t[gs("0x5")].get(gs("0x2"))[gs("0x11")](),t[gs("0x5")][gs("0x21")](gs("0x3f")).refresh(),l=x.value,l!=r.value)return o[gs("0x39")](a)&&x[gs("0x35")](r[gs("0xa")],a)?(i({...r,setImageSizes:!1}),a=o.getClosestSelectedImageElement(t[gs("0x3a")][gs("0xf")][gs("0x2b")]),void n[gs("0x3")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x16"))):void(o[gs("0x28")](a)?n[gs("0x3")](a,u,[],gs("0x14")):n[gs("0x22")](c,u,gs("0x14")))}))}));for(const e of t.plugins[gs("0x21")](gs("0x2a")).normalizedStyles)i[e.name]=e[gs("0x44")][gs("0x30")]();n._suggestionFactory[gs("0x31")](gs("0x3c"),gs("0x16"),gs("0x29"),(()=>!1)),n._suggestionFactory[gs("0x31")](gs("0x3c"),gs("0x14"),gs("0x29"),(()=>!1)),n[gs("0x23")].registerCustomCallback(gs("0x45"),gs("0x14"),gs("0x29"),(()=>!1)),n._suggestionFactory[gs("0x31")](gs("0x3c"),gs("0x16"),"accept",(([t])=>{o.setImageNaturalSizeAttributes(t.getContainedElement())})),n._suggestionFactory[gs("0x31")]("formatBlock",gs("0x16"),"discard",((t,e)=>{n[gs("0x23")][gs("0x1c")](gs("0x3c"),"",gs("0xb"))(t,{commandName:e.commandName,commandParams:e[gs("0xc")]})})),n[gs("0x23")][gs("0x31")](gs("0x3c"),"imageStylePreApply",gs("0x1e"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:gs("0x3c"),subType:gs("0x16")},{type:gs("0x20"),subType:"imageCaption"},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:gs("0x20"),subType:"convertInlineImageToBlock"}];function s(t,e){const i=r[gs("0x1b")]((({type:e,subType:n})=>t[gs("0x2f")]==e&&t[gs("0x10")]==n)),s=r.findIndex((({type:t,subType:n})=>e[gs("0x2f")]==t&&e[gs("0x10")]==n));if(i<0||s<0)return!1;const x=t[gs("0x27")](),a=e[gs("0x27")]();if((0==i||1==i)&&2==s&&x[gs("0x37")](a))return!0;if(2==i&&3==s){const t=n._findSuggestions(x,gs("0x20"))[gs("0xd")]((({suggestion:t,meta:e})=>e[gs("0x43")]&&gs("0x8")==t[gs("0x10")]));if(t[gs("0x1")]>1&&a[gs("0x33")][gs("0x42")](x[gs("0x7")]))return!0;if(1==t.length&&(x[gs("0x7")].isEqual(a.end)||x[gs("0x33")][gs("0x42")](a[gs("0x7")])))return!0}if(3==i&&3==s&&x[gs("0x7")][gs("0x2e")](a[gs("0x7")])){const t=x[gs("0x33")][gs("0x6")],e=a.start.nodeBefore;return o[gs("0x28")](t)&&t===e}return!1}t[gs("0x3a")][gs("0xf")].registerPostFixer((()=>{let e=!1;const i=Array[gs("0x3b")](t[gs("0x3a")][gs("0xf")].differ[gs("0xe")]());for(const{name:t,data:r}of i){const{group:i,type:s,subType:x,id:a}=n[gs("0x4")](t);if("suggestion"==i&&n[gs("0x40")](a)){if(gs("0x3c")==s&&(gs("0x16")==x||gs("0x14")==x)){const t=n.getSuggestion(a);if(r[gs("0x12")]){const i=t.getFirstRange()[gs("0x24")]();if(o[gs("0x28")](i))continue;n[gs("0x3d")](t),e=!0}}if(gs("0x20")==s&&"imageCaption"==x&&!r[gs("0x12")]){const t=n[gs("0x34")](a);t[gs("0x2d")]&&t.next[gs("0x26")]&&(n[gs("0x3d")](t[gs("0x2d")]),e=!0)}}}return e})),this[gs("0x38")](i)}_registerLegacyDescription(t){const e=this[gs("0x3e")],n=e[gs("0x1f")];e[gs("0x41")][gs("0x21")]("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((e=>{if(gs("0x3c")!=e[gs("0x2f")]&&gs("0x45")!=e[gs("0x2f")])return;const{data:o}=e;if(!o||gs("0x9")!=o.commandName)return;const i=o[gs("0x18")][0][gs("0xa")];return r="side"===i?Qo(n,gs("0x32")):t[i]||i,{type:gs("0x13"),content:Qo(n,gs("0x25"),r)};var r}))}}const ms=["track_changes","commands","dataInsert","_handleImportedData","execute","Users","TrackChangesEditing","value","enableCommand","forEach","high","get","listenTo","_trackChangesValueDuringImport","importWord","lowest","trackChanges","plugins","editor","_trackChangesExecuted","_setSuggestionData","collaboration_features","afterInit"];var hs,ps;hs=ms,ps=269,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[bs("0x14")]=!1,this[bs("0x3")]=!1}[bs("0x6")](){const t=this[bs("0x2")],e=t.commands[bs("0x12")](bs("0x15")),n=t.commands[bs("0x12")](bs("0x0"));e&&(e.on(bs("0xb"),((t,[,e])=>{this[bs("0x14")]=n[bs("0xe")],e[bs("0x5")][bs("0x7")]=!this[bs("0x14")]}),{priority:bs("0x11")}),this.listenTo(e,bs("0x9"),this._handleImportedData.bind(this)),this[bs("0x13")](e,bs("0x9"),(()=>{this[bs("0x3")]&&(n[bs("0xb")](),this[bs("0x3")]=!1)}),{priority:bs("0x16")}),t[bs("0x1")][bs("0x12")](bs("0xd"))[bs("0xf")]("importWord"))}[bs("0xa")](t,e){const{suggestions:n}=e,o=this[bs("0x2")][bs("0x8")][bs("0x12")](bs("0x0")),i=o[bs("0xe")];this[bs("0x14")]!==i&&(o.execute(),this[bs("0x3")]=!0),n&&n[bs("0x10")]((({id:t,type:e,author:n,created_at:o})=>{const i={id:t,type:e,authorId:this[bs("0x2")][bs("0x1")].get(bs("0xc")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this.editor[bs("0x1")].get(bs("0xd"))[bs("0x4")](i)}))}}const _s=["blockIndent","afterInit","plugins","has","_registerBlockAttribute","IndentEditing","locale","indent","registerDescriptionCallback","editor","format","indentBlock","IndentBlock","get","outdent","_descriptionFactory","outdentBlock","TrackChangesEditing","getItemLabel","_registerLegacyDescription","commandName","*Indent:* %0","*Outdent:* %0"];var Ts,ys;Ts=_s,ys=234,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("0x5")],e=t[Cs("0x15")][Cs("0x9")](Cs("0xd"));if(t[Cs("0x15")][Cs("0x16")](Cs("0x1"))&&(e.enableCommand(Cs("0x3")),e.enableCommand(Cs("0xa"))),t.plugins[Cs("0x16")](Cs("0x8")))for(const t of[Cs("0x7"),Cs("0xc")])e._enableDefaultAttributesIntegration(t);const n=t[Cs("0x2")];e[Cs("0x0")](Cs("0x13")),e[Cs("0xb")].registerAttributeLabel(Cs("0x13"),Qo(n,"FORMAT_INDENT")),this[Cs("0xf")]()}[Cs("0xf")](){const t=this.editor,e=t[Cs("0x2")],n=t[Cs("0x15")][Cs("0x9")](Cs("0xd"));n[Cs("0xb")][Cs("0x4")]((t=>{if("formatBlock"!=t.type)return;const{data:o}=t;if(!o)return;if("indentBlock"!=o.commandName&&Cs("0xc")!=o.commandName)return;const i=t.getItems()[0],r=n[Cs("0xb")][Cs("0xe")](i);return Cs("0x7")==o[Cs("0x10")]?{type:Cs("0x6"),content:Qo(e,Cs("0x11"),r)}:Cs("0xc")==o.commandName?{type:"format",content:Qo(e,Cs("0x12"),r)}:void 0}))}}var ks,Is,Rs=["enableCommand","TrackChangesEditing","input","plugins"];ks=Rs,Is=127,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var vs=function(t,e){return Rs[t-=0]};class Ss extends t.Plugin{static get requires(){return[Hi.Input]}init(){this.editor[vs("0x0")].get(vs("0x2"))[vs("0x1")](vs("0x3"))}}const Ns=["key","editor","link (","TrackChangesEditing","registerAttributeLabel","format","type","commands","formatInline","locale","manualDecorators","_registerLegacyDescription","*Set link:* %0","map","linkHref","get","commandName","registerDescriptionCallback","*Remove link*","link","_enableDefaultAttributesIntegration","toLowerCase","LinkEditing","plugins","_descriptionFactory","unlink","newValue","has"];var Ls,Ms;Ls=Ns,Ms=201,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("0x18")];if(!t.plugins[ws("0x16")](ws("0x11")))return;const e=t.plugins[ws("0xa")](ws("0x1a")),n=t[ws("0x2")][ws("0xa")](ws("0xe"));e[ws("0xf")](ws("0xe"),[ws("0x9"),...n[ws("0x5")][ws("0x8")]((t=>t.id))]),e._enableDefaultAttributesIntegration("unlink");for(const t of n.manualDecorators)e[ws("0x13")][ws("0x1b")](t.id,ws("0x19")+t.label[ws("0x10")]()+")");e[ws("0x13")].registerDescriptionCallback((e=>{if("attribute"!=e.type)return;const{data:n}=e;if(!n||ws("0x9")!=n[ws("0x17")])return;const o=n[ws("0x15")],i=t.locale;return{type:ws("0x0"),content:o?Qo(i,ws("0x7"),'"'+o+'"'):Qo(i,ws("0xd"))}})),this[ws("0x6")]()}[ws("0x6")](){const t=this[ws("0x18")],e=t[ws("0x4")];t[ws("0x12")].get(ws("0x1a"))[ws("0x13")][ws("0xc")]((t=>{if(ws("0x3")!=t[ws("0x1")])return;const{data:n}=t;if(n){if("link"==n[ws("0xb")]){const t=n.commandParams[0];return{type:ws("0x0"),content:Qo(e,ws("0x7"),'"'+t+'"')}}return ws("0x14")==n[ws("0xb")]?{type:ws("0x0"),content:Qo(e,ws("0xd"))}:void 0}}))}}const Fs=["*Change to:* %0","ELEMENT_LIST_ITEM","createPositionAt","registerElementLabel","push","value","model","change","schema","List","ELEMENT_BULLETED_LIST","findIndex","numbered","enableCommand","forceValue","commands","blockName","checkChild","TodoListEditing","_descriptionFactory","formatInline","markBlockFormat","locale","parent","filter","slice","afterInit","getAttribute","add","ELEMENT_NUMBERED_LIST","document","numberedList","outdentList","todoListChecked","bulletedList","commandParams","name","listItem","nextSibling","commandName","replace","listIndent","end","getSelectedBlocks","checkTodoList","has","listType","from","plugins","indentList","registerDescriptionCallback","paragraph","previousSibling","format","get","selection","type","bulleted","element","todoList"];var Ds,Bs;Ds=Fs,Bs=172,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0x22")](){const t=this.editor,e=t[Ps("0x1e")];if(!t.plugins[Ps("0x35")]("ListEditing"))return;const n=t[Ps("0x38")][Ps("0x2")]("TrackChangesEditing"),o=t[Ps("0x38")][Ps("0x35")](Ps("0x1a"));function i(e){return()=>{const o=t[Ps("0xe")][Ps("0x26")][Ps("0x3")],i=t.commands[Ps("0x2")](e);if(i[Ps("0xd")])return void t.execute(Ps("0x3b"),{});const r=e[Ps("0x21")](0,-4),s=function(t,e,n){let o=Array[Ps("0x37")](t)[Ps("0x20")]((t=>{return e=t,(o=n)[Ps("0x19")](e[Ps("0x1f")],"listItem")&&!o.isObject(e);var e,o}));o=o[Ps("0x20")]((t=>!t.is("element",Ps("0x2d"))||t.getAttribute(Ps("0x36"))!=e));const i=new Set;for(const t of o)t.is(Ps("0x6"),Ps("0x2d"))?i[Ps("0x24")](js(t)):i[Ps("0x24")](t);return Array.from(i)}(o[Ps("0x33")](),r,t.model[Ps("0x10")]);t[Ps("0xe")][Ps("0xf")]((()=>{for(const t of s)n[Ps("0x1d")](t,{commandName:e,commandParams:[{forceValue:!i.value}],formatGroupId:Ps("0x18")},Gs(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ps("0x37")](t);const n=e[Ps("0x13")]((t=>Ps("0x2d")!=t[Ps("0x2c")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ps("0xe")].document[Ps("0x3")][Ps("0x33")]()),i=t[Ps("0xe")].createRange(t.model.createPositionAt(o[0],"before"),t[Ps("0xe")][Ps("0xa")](o[o.length-1],Ps("0x32")));t[Ps("0xe")][Ps("0xf")]((()=>{n[Ps("0x1d")](i,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x2e")];for(;t&&t[Ps("0x23")]("listIndent")>n.getAttribute("listIndent");)e.add(t),t=t[Ps("0x2e")]}return Array.from(e)}(o))}))}}n.enableCommand(Ps("0x27"),i(Ps("0x27"))),n[Ps("0x15")](Ps("0x2a"),i(Ps("0x2a"))),o&&n[Ps("0x15")]("todoList",i(Ps("0x7"))),n[Ps("0x15")](Ps("0x39"),r(Ps("0x39"))),n[Ps("0x15")](Ps("0x28"),r(Ps("0x28"))),o&&n.enableCommand(Ps("0x34"),(()=>{const e=t[Ps("0x17")][Ps("0x2")](Ps("0x34")),o=Array[Ps("0x37")](e._selectedElements);o[Ps("0x20")]((t=>t[Ps("0x23")](Ps("0x29"))!=e[Ps("0xd")])),t[Ps("0xe")][Ps("0xf")]((()=>{for(const t of o)n[Ps("0x1d")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ps("0xd")]}]})}))})),n[Ps("0x1b")][Ps("0xb")](Ps("0x2d"),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n[Ps("0x1b")][Ps("0x3a")]((t=>{if("formatBlock"!=t[Ps("0x4")]&&Ps("0x1c")!=t.type)return;const{data:n}=t;if(n){if("numberedList"==n[Ps("0x2f")]||Ps("0x2a")==n[Ps("0x2f")]||Ps("0x7")==n[Ps("0x2f")])switch(n[Ps("0x2f")][Ps("0x30")](Ps("0x11"),"")){case Ps("0x5"):return o(Qo(e,Ps("0x12")));case Ps("0x14"):return o(Qo(e,Ps("0x25")));case"todo":return o(Qo(e,"ELEMENT_TODO_LIST"))}if(Ps("0x39")==n.commandName)return{type:"format",content:Qo(e,"*Indent:* %0",Qo(e,Ps("0x9")))};if(Ps("0x28")==n[Ps("0x2f")])return{type:Ps("0x1"),content:Qo(e,"*Outdent:* %0",Qo(e,Ps("0x9")))};if(Ps("0x34")==n[Ps("0x2f")])return n[Ps("0x2b")][0][Ps("0x16")]?{type:Ps("0x1"),content:Qo(e,"*Check item*")}:{type:"format",content:Qo(e,"*Uncheck item*")}}function o(t){return{type:Ps("0x1"),content:Qo(e,Ps("0x8"),t)}}}))}}function js(t){const e=t[Ps("0x23")](Ps("0x31"));if(0==e)return t;let n=t;for(;t[Ps("0x0")]&&t[Ps("0x0")].is(Ps("0x6"),Ps("0x2d"));){const o=t[Ps("0x0")][Ps("0x23")](Ps("0x31"));if(o==e)n=t[Ps("0x0")];else if(o<e)break;t=t[Ps("0x0")]}return n}function Gs(t){const e=[];if(t.is("element","listItem")&&t[Ps("0x23")](Ps("0x31"))>0){let n=t.nextSibling;for(;n&&Ps("0x2d")==n[Ps("0x2c")]&&n[Ps("0x23")](Ps("0x31"))==t.getAttribute(Ps("0x31"));)e[Ps("0xc")](n),n=n[Ps("0x2e")]}return e}const Vs=["ListUtils","get","element","handleListReversedCommand","length","createPositionAt","replace","editor","ListPropertiesEditing","getListTypeFromListStyleType","listReversed","type","from","selection","formatInline","config","listType","reversed","commandName","startIndex","afterInit","push","unshift","registerDescriptionCallback","plugins","getAttribute","map","model","locale","ELEMENT_","listStart","_LIST_","handleListStyleCommand","_getSuggestionBlocksForListStyle","toUpperCase","getFirstPosition","markMultiRangeBlockFormat","flat","_getTranslationKeyForListStyle","enableCommand","commandParams","numbered","createRange","_descriptionFactory","TrackChangesEditing","listStyle","change","formatBlock","list.properties","listItem","filter","handleListStartCommand","document","_getSuggestionBlocks","handleDescriptions","getSiblingNodes","before","*Change to:* %0","styles","*Format:* set order to regular","format","getSelectedBlocks","bind"];var Hs,zs;Hs=Vs,zs=100,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x2e")](){if(!this[Ws("0x21")].plugins.has(Ws("0x22")))return;const t=this[Ws("0x21")][Ws("0x29")].get(Ws("0xb")),e=this.editor[Ws("0x32")][Ws("0x1b")](Ws("0x7"));t[Ws("0x15")]&&e[Ws("0x2")]("listStyle",this.handleListStyleCommand.bind(this)),t[Ws("0x2b")]&&e[Ws("0x2")](Ws("0x24"),this[Ws("0x1d")][Ws("0x19")](this)),t[Ws("0x2d")]&&e[Ws("0x2")]("listStart",this.handleListStartCommand[Ws("0x19")](this)),e[Ws("0x6")][Ws("0x31")](this.handleDescriptions[Ws("0x19")](this))}[Ws("0x3a")](t,e={}){const n=this[Ws("0x21")][Ws("0x32")][Ws("0x1b")]("TrackChangesEditing"),o=this[Ws("0x3b")]();this[Ws("0x21")][Ws("0x35")][Ws("0x9")]((()=>{n[Ws("0x3e")](o,{commandName:Ws("0x8"),commandParams:[{type:e.type}],formatGroupId:Ws("0x8")})}))}[Ws("0x1d")](t,e={}){const n=this.editor.plugins[Ws("0x1b")]("TrackChangesEditing"),o=this._getSuggestionBlocks((t=>t.is("element",Ws("0xc"))&&"numbered"===t.getAttribute(Ws("0x2a"))));if(o.length<1)return;const i=o[Ws("0x34")]((t=>this.editor[Ws("0x35")].createRange(this.editor.model[Ws("0x1f")](t,Ws("0x13")),this[Ws("0x21")][Ws("0x35")][Ws("0x1f")](t,0))));this[Ws("0x21")].model.change((()=>{n.markMultiRangeBlockFormat(i,{commandName:"listReversed",commandParams:[{reversed:e[Ws("0x2b")]}],formatGroupId:Ws("0x24")})}))}[Ws("0xe")](t,e={}){const n=this[Ws("0x21")].plugins.get(Ws("0x7")),o=this[Ws("0x10")]((t=>t.is(Ws("0x1c"),Ws("0xc"))&&Ws("0x4")===t[Ws("0x33")](Ws("0x2a"))));if(o.length<1)return;const i=o[Ws("0x34")]((t=>this.editor[Ws("0x35")][Ws("0x5")](this[Ws("0x21")][Ws("0x35")][Ws("0x1f")](t,Ws("0x13")),this[Ws("0x21")].model[Ws("0x1f")](t,0))));this[Ws("0x21")][Ws("0x35")][Ws("0x9")]((()=>{n[Ws("0x3e")](i,{commandName:Ws("0x38"),commandParams:[{startIndex:e[Ws("0x2d")]}],formatGroupId:Ws("0x38")})}))}[Ws("0x11")](t){if(Ws("0xa")!=t[Ws("0x25")]&&Ws("0x28")!=t[Ws("0x25")])return;const e=this[Ws("0x21")][Ws("0x36")],{data:n}=t;if(!n)return;let o,i;switch(n[Ws("0x2c")]){case Ws("0x8"):o=Ws("0x14"),i={type:"format",content:Qo(e,o,Qo(e,this[Ws("0x1")](n[Ws("0x3")][0][Ws("0x25")])))};break;case Ws("0x24"):o=n[Ws("0x3")][0][Ws("0x2b")]?"*Format:* set order to reversed":Ws("0x16"),i={type:Ws("0x17"),content:Qo(e,o)};break;case Ws("0x38"):o="*Format:* set start index to %0",i={type:Ws("0x17"),content:Qo(e,o,n[Ws("0x3")][0][Ws("0x2d")])}}return i}[Ws("0x3b")](){var t,e,n,o;const i=this[Ws("0x21")][Ws("0x32")][Ws("0x1b")](Ws("0x1a"));let r=Array[Ws("0x26")](this[Ws("0x21")][Ws("0x35")][Ws("0xf")].selection[Ws("0x18")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Ws("0x1c"),Ws("0xc")))&&r[Ws("0x30")](...i[Ws("0x12")](this[Ws("0x21")][Ws("0x35")][Ws("0xf")][Ws("0x27")].getFirstPosition(),"backward")),(null===(e=r[r[Ws("0x1e")]-1])||void 0===e?void 0:e.is(Ws("0x1c"),"listItem"))&&r[Ws("0x2f")](...i.getSiblingNodes(this[Ws("0x21")][Ws("0x35")][Ws("0xf")][Ws("0x27")].getLastPosition(),"forward")),r=[...new Set(r)],(null===(o=null===(n=this.editor[Ws("0x35")][Ws("0xf")].selection[Ws("0x3d")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Ws("0x1c"),Ws("0xc")))&&(r=r[Ws("0xd")]((t=>t.is("element","listItem")))),r}[Ws("0x10")](t){const e=this[Ws("0x21")][Ws("0x32")].get(Ws("0x1a"));let n=Array.from(this[Ws("0x21")][Ws("0x35")].document[Ws("0x27")][Ws("0x18")]())[Ws("0xd")](t).map((t=>{const n=this.editor[Ws("0x35")][Ws("0x1f")](t,0);return[...e[Ws("0x12")](n,"backward"),...e[Ws("0x12")](n,"forward")]}))[Ws("0x0")]();return n=[...new Set(n)],n}[Ws("0x1")](t){return Ws("0x37")+this.editor[Ws("0x32")][Ws("0x1b")](Ws("0x1a"))[Ws("0x23")](t)[Ws("0x3c")]()+Ws("0x39")+t.toUpperCase()[Ws("0x20")](/-/g,"_")}}const qs=["div","has","_descriptionFactory","get","attribute:url:media","showSuggestionHighlights","registerElementLabel","high","conversion","TrackChangesEditing","locale","mediaEmbed","createEmptyElement","ELEMENT_MEDIA","for","MediaEmbedEditing","dataDowncast","data","afterInit","downcastDispatcher","plugins","media"];var Xs,$s;Xs=qs,$s=316,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0xa")](){const t=this.editor;if(!t[Zs("0xc")][Zs("0xf")](Zs("0x7")))return;const e=t[Zs("0xc")][Zs("0x11")](Zs("0x1")),n=t[Zs("0x2")];e.enableCommand(Zs("0x3")),e[Zs("0x10")][Zs("0x14")]("media",(t=>Qo(n,Zs("0x5"),t))),t[Zs("0x0")][Zs("0x6")](Zs("0x8")).elementToElement({model:Zs("0xd"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x13")])return e[Zs("0x4")](Zs("0xe"))},converterPriority:Zs("0x15")}),t[Zs("0x9")][Zs("0xb")].on(Zs("0x12"),((t,e,n)=>{n.options[Zs("0x13")]&&t.stop()}),{priority:Zs("0x15")})}}const Js=["mention","plugins","get","editor","afterInit","MentionEditing","has"];var Qs,tx;Qs=Js,tx=361,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x0")](){const t=this[ex("0x6")];t.plugins[ex("0x2")](ex("0x1"))&&t[ex("0x4")][ex("0x5")]("TrackChangesEditing").enableCommand(ex("0x3"))}}const ox=["editor","get","has","afterInit","TrackChangesEditing","pageBreak","plugins","_descriptionFactory","locale"];var ix,rx;ix=ox,rx=206,function(t){for(;--t;)ix.push(ix.shift())}(++rx);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x4")](){const t=this[sx("0x1")];if(!t[sx("0x7")][sx("0x3")]("PageBreakEditing"))return;t[sx("0x7")][sx("0x2")]("TrackChangesEditing").enableCommand(sx("0x6"));const e=t[sx("0x7")][sx("0x2")](sx("0x5")),n=t[sx("0x0")];e[sx("0x8")].registerElementLabel(sx("0x6"),(t=>Qo(n,"ELEMENT_PAGE_BREAK",t)))}}const ax=["name","type","commandName","insertion","span","_registerLegacyDescription","highest","options","toViewPosition","locale","ck-suggestion-marker-split","isTouching","bindElementToMarker","_enableDefaultAttributesIntegration","get","markerRange","*Insert:* %0","model","downcastDispatcher","Paragraph","enableCommand","_descriptionFactory","$text","markerName","registerElementLabel","addMarker:suggestion:insertion","checkChild","insert","format","ELEMENT_PARAGRAPH","editing","consume","TrackChangesEditing","afterInit","getItemLabel","editor","activeMarkers","nodeAfter","registerDescriptionCallback","plugins","isLimit","isBlock","has","writer","paragraph","data","*Change to:* %0","addClass","formatBlock","includes","end","consumable","insertParagraph","schema"];var cx,lx;cx=ax,lx=320,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x25")](){const t=this.editor;if(!t[ux("0x2b")][ux("0x2e")](ux("0x17")))return;const e=t.locale,n=t[ux("0x2b")].get(ux("0x24"));n[ux("0x19")][ux("0x1c")]("paragraph",(t=>Qo(e,ux("0x21"),t))),n[ux("0x11")](ux("0x30")),n[ux("0x18")](ux("0x2")),t[ux("0x22")].downcastDispatcher.on(ux("0x1d"),gx(t),{priority:ux("0xa")}),t[ux("0x31")][ux("0x16")].on(ux("0x1d"),((e,n,o)=>{o[ux("0xb")].showSuggestionHighlights&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[ux("0x19")];o[ux("0x2a")]((n=>{if("insertion"!==n[ux("0x5")])return;const{start:i,end:r}=n.getFirstRange();if(!i.isTouching(r)||!i[ux("0x29")])return;const s=t[ux("0x15")].schema,x=i[ux("0x29")];return s.isBlock(x)&&!s[ux("0x2c")](x)&&s[ux("0x1e")](x,"$text")?{type:ux("0x7"),content:Qo(e,ux("0x14"),o[ux("0x26")](x,1))}:void 0})),this[ux("0x9")]()}[ux("0x9")](){const t=this[ux("0x27")],e=t[ux("0xd")];t[ux("0x2b")][ux("0x12")](ux("0x24"))._descriptionFactory[ux("0x2a")]((t=>{if(ux("0x34")!=t[ux("0x5")])return;const{data:n}=t;return n&&ux("0x30")==n[ux("0x6")]?{type:ux("0x20"),content:Qo(e,ux("0x32"),Qo(e,ux("0x21")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t[ux("0x2b")][ux("0x12")](ux("0x24")),s=o[ux("0x13")].start,x=o[ux("0x13")][ux("0x0")],a=t[ux("0x15")][ux("0x3")];if(!s[ux("0xf")](x)||!s.nodeAfter)return;const c=s[ux("0x29")];if(a[ux("0x2d")](c)&&!a[ux("0x2c")](c)&&a[ux("0x1e")](c,ux("0x1a"))){if(!i[ux("0x1")][ux("0x23")](o[ux("0x13")],n[ux("0x4")]))return;const t=i[ux("0x2f")].createUIElement(ux("0x8"),{class:ux("0xe")}),s=i.mapper[ux("0xc")](x);e&&r[ux("0x28")][ux("0x35")](o.markerName)&&i[ux("0x2f")][ux("0x33")]("ck-suggestion-marker--active",t),i.writer[ux("0x1f")](s,t),i.mapper[ux("0x10")](t,o[ux("0x1b")])}}}const fx=["format","RemoveFormatEditing","editor","removeFormat","_enableDefaultAttributesIntegration","get","type","TrackChangesEditing","has","_registerLegacyDescription","formatInline","plugins","registerDescriptionCallback","afterInit","locale"];var mx,hx;mx=fx,hx=149,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0xe")](){const t=this[px("0x3")];t[px("0xc")][px("0x9")](px("0x2"))&&(t[px("0xc")][px("0x6")]("TrackChangesEditing")[px("0x5")](px("0x4")),this[px("0xa")]())}[px("0xa")](){const t=this[px("0x3")];t[px("0xc")].get(px("0x8"))._descriptionFactory[px("0xd")]((e=>{if("formatBlock"!=e.type&&px("0xb")!=e[px("0x7")])return;const{data:n}=e;return n&&px("0x4")==n.commandName?{type:px("0x1"),content:Qo(t[px("0x0")],"*Remove all formatting*")}:void 0}))}}const Ex=["discardAllSuggestions","plugins","acceptSelectedSuggestions","get","goToPreviousRestrictedEditingException","TrackChangesEditing","discardSelectedSuggestions","discardSuggestion","editor","acceptSuggestion","trackChanges","RestrictedEditingModeEditing","acceptAllSuggestions","afterInit","enableCommand","has","goToNextRestrictedEditingException"];var _x,Tx;_x=Ex,Tx=402,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x2")](){const t=this[yx("0xe")];if(!t[yx("0x7")][yx("0x4")]("RestrictedEditingModeEditing"))return;const e=t[yx("0x7")][yx("0x9")](yx("0xb"));e.enableCommand(yx("0xa")),e.enableCommand(yx("0x5"));const n=t[yx("0x7")][yx("0x9")](yx("0x0"));n[yx("0x3")](yx("0x10")),n[yx("0x3")](yx("0xf")),n.enableCommand(yx("0xd")),n[yx("0x3")](yx("0x1")),n.enableCommand(yx("0x6")),n[yx("0x3")](yx("0x8")),n[yx("0x3")](yx("0xc"))}}const Ax=["locale","high","ELEMENT_LINE_BREAK","addMarker:suggestion:deletion","TrackChangesEditing","softBreak","createPositionBefore","get","enableCommand","split","activeMarkers","ck-suggestion-marker-","init","mapper","bindElementToMarker","data","markerRange","addMarker:suggestion:insertion","markerName","deletion","requires","editing","shiftEnter","insert","span","registerElementLabel","addClass","createUIElement","model","addMarker:suggestion","consumable","includes","writer","downcastDispatcher","editor","getItems"];var kx,Ix;kx=Ax,Ix=498,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class vx extends t.Plugin{static get[Rx("0x1a")](){return[ur.ShiftEnter]}[Rx("0x12")](){const t=this[Rx("0x4")],e=t.plugins.get(Rx("0xa"));e[Rx("0xe")](Rx("0x1c")),t[Rx("0x1b")].downcastDispatcher.on(Rx("0x17"),Sx(t),{priority:Rx("0x7")}),t.editing.downcastDispatcher.on(Rx("0x9"),Sx(t),{priority:Rx("0x7")}),t[Rx("0x15")][Rx("0x3")].on(Rx("0x23"),((e,n,o)=>{o.options.showSuggestionHighlights&&Sx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Rx("0x1f")](Rx("0xb"),(e=>Qo(t[Rx("0x6")],Rx("0x8"),e)))}}function Sx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins[Rx("0xd")](Rx("0xa"));if(!i[Rx("0x0")].test(o[Rx("0x16")],n.name))return;const s=t[Rx("0x22")];for(const t of o[Rx("0x16")][Rx("0x5")]()){if(!t.is("element","softBreak"))continue;const n=Rx("0x19")==o[Rx("0x18")][Rx("0xf")](":")[1]?"merge":Rx("0xf"),x=i[Rx("0x2")][Rx("0x21")](Rx("0x1e"),{class:Rx("0x11")+n}),a=i[Rx("0x13")].toViewPosition(s[Rx("0xc")](t));e&&r[Rx("0x10")][Rx("0x1")](o[Rx("0x18")])&&i.writer[Rx("0x20")]("ck-suggestion-marker--active",x),i[Rx("0x2")][Rx("0x1d")](a,x),i[Rx("0x13")][Rx("0x14")](x,o[Rx("0x18")])}}}const Nx=["get","selection","plugins","change","isCollapsed","has","model","FORMAT_RESTRICTED_DISABLED","restrictedEditingException","markInlineFormat","commands","commandParams","formatBlock","editor","_descriptionFactory","FORMAT_RESTRICTED_ENABLED","getRanges","format","afterInit","registerDescriptionCallback","type","StandardEditingModeEditing","forceValue","from","document"];var Lx,Mx;Lx=Nx,Mx=192,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0x1")](){const t=this[wx("0x15")],e=t[wx("0xe")],n=t.locale;if(!t.plugins[wx("0xd")](wx("0x4")))return;const o=t[wx("0xa")][wx("0x8")]("TrackChangesEditing"),i=wx("0x10"),r=t[wx("0x12")][wx("0x8")](i);o.enableCommand(i,((t,n={})=>{const s=e[wx("0x7")][wx("0x9")];if(s[wx("0xc")])return void t(n);const x=void 0!==n[wx("0x5")]?n[wx("0x5")]:!r.value;e[wx("0xb")]((()=>{const t=Array[wx("0x6")](s[wx("0x18")]());for(const n of t){const t=x?[n]:Xi(i,n,e);for(const e of t)o[wx("0x11")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),o[wx("0x16")][wx("0x2")]((t=>{if(wx("0x14")!=t[wx("0x3")]&&"formatInline"!=t.type)return;const{data:e}=t;return e&&e.commandName==i?e[wx("0x13")][0][wx("0x5")]?{type:"format",content:Qo(n,wx("0x17"))}:{type:wx("0x0"),content:Qo(n,wx("0xf"))}:void 0}))}}const Fx=["FORMAT_STYLE","StyleUtils","commandParams","format","toLowerCase","locale","commandName","styleName","GeneralHtmlSupport","block","style","_registerBlockAttribute","get","element","config","has","registerAttributeLabel","type","inline","_registerLegacyDescription","definitions","afterInit","*Set format:* %0","Style","TrackChangesEditing","getGhsAttributeNameForElement","_descriptionFactory","editor","DataSchema","plugins","add","_enableDefaultAttributesIntegration","registerDescriptionCallback","normalizeConfig"];var Dx,Bx;Dx=Fx,Bx=370,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x19")](){const t=this[Px("0x1f")];if(!t[Px("0x21")].has(Px("0x1b"))||!t[Px("0x21")][Px("0x13")]("DataSchema"))return;const e=t.plugins.get(Px("0x1c")),n=t.locale,o=t[Px("0x12")][Px("0x10")]("style"),i=t.plugins[Px("0x10")](Px("0xc")),r=t.plugins.get(Px("0x5"))[Px("0x3")](t[Px("0x21")].get(Px("0x20")),o[Px("0x18")]);e[Px("0x1")](Px("0xe"));const s=new Set;for(const t of r[Px("0xd")]){const e=i[Px("0x1d")](t[Px("0x11")]);s[Px("0x0")](e)}const x=new Set;for(const t of r[Px("0x16")]){const e=i.getGhsAttributeNameForElement(t.element);x[Px("0x0")](e);for(const e of t.ghsAttributes)x[Px("0x0")](e)}for(const t of s)e[Px("0xf")](t),e._descriptionFactory[Px("0x14")](t,Qo(n,Px("0x4")));for(const t of x)e._registerInlineAttribute(t),e[Px("0x1e")][Px("0x14")](t,Qo(n,Px("0x4")));this[Px("0x17")]()}[Px("0x17")](){const t=this.editor,e=t[Px("0x9")];t.plugins[Px("0x10")](Px("0x1c"))[Px("0x1e")][Px("0x2")]((t=>{if("formatBlock"!=t[Px("0x15")]&&"formatInline"!=t[Px("0x15")])return;const{data:n}=t;return n&&Px("0xe")===n[Px("0xa")]?n[Px("0x6")][0].forceValue?{type:Px("0x7"),content:Qo(e,Px("0x1a"),n[Px("0x6")][0].styleName[Px("0x8")]())}:{type:Px("0x7"),content:Qo(e,"*Remove format:* %0",n[Px("0x6")][0][Px("0xb")][Px("0x8")]())}:void 0}))}}const jx=["createPositionAt","writer","root","commands","TableEditing","item","plugins","_tablePostFixingSubtypes","differ","ELEMENT_TABLE_ROW","editor","nodeAfter","isArray","ELEMENT_TABLE_ROW_WITH_TEXT","registerCustomCallback","tableColumn","hasAttribute","ELEMENT_TABLE_COLUMN_WITH_TEXT","_suggestionFactory","insert","ELEMENT_TABLE_WITH_TEXT","oldRange","data","registerDescriptionCallback","getRowIndexes","tableRow","document","get","insertion","afterInit","toViewElement","insertTableRowAbove","isTouching","last","classes","getColumnIndexes","type","getCellLocation","TrackChangesEditing","insertTable","showSuggestionHighlights","change","_descriptionFactory","downcastDispatcher","name","removeClass","insertTableColumnLeft","insertTableRowBelow","enqueueChange","fromRange","table","substr","selection","getChangedMarkers","removeTableRow","markMultiRangeInsertion","start","end","refresh","locale","enableCommand","findAncestor","model","ELEMENT_TABLE_COLUMN","forceValue","registerPostFixer","min","getSelectionAffectedTableCells","registerElementLabel","getAttribute","options","selectTableColumn","first","map","markMultiRangeDeletion","selectTableRow","isIntersectingWithRange","join","discard","$textProxy","has","setSelection","push","filter","*Insert:* %0","maxRow","insertTableColumnRight","getSuggestion","span","length","getFirstRange","startsWith","rootName","MAX_SAFE_INTEGER","maxColumn","colspan","rowspan","highest","TableUtils","from","accept","change:data","element","tablePaste","tableCell","subType","isEqual","isInContent","$graveyard","values","removeTableColumn","createTableWalker","_setupColumnsRowsFixing","execute","minRow","*Remove:* %0","getRanges","_getSuggestionCoords","cell","createRangeOn","createRangeIn","deletion","_tableSuggestions","low","detach","getItems","MIN_SAFE_INTEGER"];var Gx,Vx;Gx=jx,Vx=477,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x26")]=[Hx("0x38"),Hx("0x2e")],this[Hx("0x1a")]=new Set}[Hx("0x3c")](){const t=this.editor,e=t.model[Hx("0x39")].selection;if(!t[Hx("0x25")][Hx("0x6f")](Hx("0x23")))return;const n=t[Hx("0x5a")],o=t[Hx("0x25")][Hx("0x3a")](Hx("0x45")),i=t[Hx("0x25")][Hx("0x3a")](Hx("0x2"));o._descriptionFactory[Hx("0x63")](Hx("0x51"),(t=>Qo(n,"ELEMENT_TABLE",t))),this[Hx("0x10")](),o[Hx("0x5b")](Hx("0x46")),o.enableCommand(Hx("0x6a")),o[Hx("0x5b")](Hx("0x66"));for(const n of[Hx("0x3e"),Hx("0x4e")]){const r=t[Hx("0x22")][Hx("0x3a")](n);o.enableCommand(n,(n=>{t.model[Hx("0x48")]((t=>{n();const s="above"===r.order,x=i[Hx("0x62")](e),a=i[Hx("0x37")](x),c=s?a.first-1:a[Hx("0x40")]+1,l=x[0].findAncestor(Hx("0x51")),u=i.createTableWalker(l,{startRow:c,endRow:c}),d=Array[Hx("0x3")](u)[Hx("0x68")]((e=>t[Hx("0x17")](e[Hx("0x16")])));o[Hx("0x56")](d,Hx("0x38"))}))}))}for(const n of[Hx("0x4d"),Hx("0x75")]){const r=t.commands[Hx("0x3a")](n);o.enableCommand(n,(n=>{t[Hx("0x5d")][Hx("0x48")]((t=>{n();const s="left"===r.order,x=i[Hx("0x62")](e),a=i[Hx("0x42")](x),c=s?a.first-1:a[Hx("0x40")]+1,l=x[0].findAncestor(Hx("0x51")),u=i[Hx("0xf")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x3")](u)[Hx("0x68")]((e=>t[Hx("0x17")](e.cell)));o.markMultiRangeInsertion(d,Hx("0x2e"))}))}))}for(const n of[Hx("0x55"),Hx("0xe")]){const r=n[Hx("0x52")](11),s=r.toLowerCase(),x=s[Hx("0x52")](0,3)+Hx("0x77"),a=Hx("0x51")+r,c=Hx("0x61")+r,l="max"+r;o[Hx("0x5b")](n,(()=>{t[Hx("0x5d")][Hx("0x48")]((t=>{const r=i[Hx("0x62")](e),u=r[0][Hx("0x5c")](Hx("0x51"));let d;if(Hx("0x55")==n){const t=i[Hx("0x37")](r);d={startRow:t[Hx("0x67")],endRow:t[Hx("0x40")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(r);d={startColumn:t[Hx("0x67")],endColumn:t[Hx("0x40")],includeAllSlots:!0}}const g=i.createTableWalker(u,d),f=Array[Hx("0x3")](g)[Hx("0x68")]((({cell:t})=>t)),m=Wx(f[Hx("0x72")]((t=>t[Hx("0x2f")](x)))),h=Wx(f[Hx("0x72")]((t=>!t.hasAttribute(x))))[Hx("0x68")]((e=>t[Hx("0x17")](e))),p=o[Hx("0x69")](h,a);if(p&&(Hx("0x38")==p[Hx("0x9")]||"tableColumn"==p[Hx("0x9")])){const e=this[Hx("0x15")](p);for(const n of m){const o=t[Hx("0x17")](n),r=i[Hx("0x44")](n),a=n[Hx("0x64")](x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&p.addRange(o)}}}))}))}function r(n){const o=Array[Hx("0x3")](e[Hx("0x14")]())[Hx("0x68")]((t=>s.LiveRange[Hx("0x50")](t)));t[Hx("0x5d")].change((e=>{const i=e.batch;n=n[Hx("0x72")]((t=>"$graveyard"!=t[Hx("0x21")][Hx("0x7b")])),e.setSelection(n),t[Hx("0x22")][Hx("0x3a")](Hx("0x55"))[Hx("0x59")](),t[Hx("0x11")](Hx("0x55"),{forceDefaultExecution:!0}),t[Hx("0x5d")][Hx("0x4f")]((()=>{t.model[Hx("0x4f")](i,(t=>{const e=o[Hx("0x72")]((t=>Hx("0xc")!=t[Hx("0x21")].rootName));e[Hx("0x78")]>0&&t.setSelection(e);for(const t of o)t[Hx("0x1c")]()}))}))}))}function a(n){t[Hx("0x5d")][Hx("0x48")]((o=>{const i=Array[Hx("0x3")](e[Hx("0x14")]())[Hx("0x68")]((t=>s.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Hx("0x71")](e);for(const e of r)Hx("0xc")!=e.root.rootName&&(o.setSelection(o[Hx("0x1f")](e,0)),t[Hx("0x22")][Hx("0x3a")](Hx("0xe")).refresh(),t.execute(Hx("0xe"),{forceDefaultExecution:!0}));const x=i.filter((t=>Hx("0xc")!=t[Hx("0x21")][Hx("0x7b")]));x[Hx("0x78")]>0&&o[Hx("0x70")](x);for(const t of i)t[Hx("0x1c")]()}))}function c(t,e){return e.every((e=>t.some((t=>t[Hx("0x58")].isEqual(e[Hx("0x57")])||e[Hx("0x58")][Hx("0xa")](t[Hx("0x57")])))))}function l(t,e){return t.some((t=>e.some((e=>t[Hx("0x58")][Hx("0x3f")](e[Hx("0x57")])))))}t[Hx("0x35")][Hx("0x4a")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Hx("0x65")][Hx("0x47")])return;const o=e[Hx("0x24")];if(!o)return;const i=n.mapper[Hx("0x3d")](o);function r(t){return Array[Hx("0x2b")](t)?t:[t]}i&&Hx("0x8")===o[Hx("0x4b")]&&(0,x.setHighlightHandling)(i,n[Hx("0x20")],((t,e,n)=>n.addClass(r(e[Hx("0x41")]),t)),((t,e,n)=>n[Hx("0x4c")](r(e[Hx("0x41")]),t)))}),{priority:Hx("0x1")}),o[Hx("0x49")].registerDescriptionCallback((t=>{if(Hx("0x3b")!=t[Hx("0x43")]&&Hx("0x19")!=t[Hx("0x43")])return;const e=t.getContainedElement();if(null!=e&&e.is(Hx("0x6"),Hx("0x51"))){if("insertion"==t[Hx("0x43")]){const e=t.getItems()[Hx("0x72")]((t=>t.is(Hx("0x6e"))))[Hx("0x68")]((t=>t.data));if(e[Hx("0x78")])return{type:Hx("0x3b"),content:Qo(n,Hx("0x73"),Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(Hx("0x19")==t[Hx("0x43")]){const e=t.getItems()[Hx("0x72")]((t=>t.is(Hx("0x6e")))).map((t=>t[Hx("0x35")]));if(e[Hx("0x78")])return{type:"deletion",content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x33"),'"'+e.join(" ")+'"'))}}}})),o[Hx("0x49")][Hx("0x36")]((t=>{if("tableRow"==t[Hx("0x9")]){const e=t[Hx("0x1d")]().filter((t=>t.is(Hx("0x6e"))))[Hx("0x68")]((t=>t[Hx("0x35")])),o=this[Hx("0x15")](t),i=o[Hx("0x74")]-o[Hx("0x12")]+1;if(Hx("0x3b")==t[Hx("0x43")])return e[Hx("0x78")]?{type:Hx("0x3b"),content:Qo(n,"*Insert:* %0",Qo(n,Hx("0x2c"),[i,'"'+e[Hx("0x6c")](" ")+'"']))}:{type:Hx("0x3b"),content:Qo(n,Hx("0x73"),Qo(n,Hx("0x28"),i))};if(Hx("0x19")==t[Hx("0x43")])return e[Hx("0x78")]?{type:Hx("0x19"),content:Qo(n,Hx("0x13"),Qo(n,Hx("0x2c"),[i,'"'+e[Hx("0x6c")](" ")+'"']))}:{type:"deletion",content:Qo(n,Hx("0x13"),Qo(n,Hx("0x28"),i))}}if("tableColumn"==t[Hx("0x9")]){const e=t.getItems().filter((t=>t.is(Hx("0x6e"))))[Hx("0x68")]((t=>t.data)),o=this._getSuggestionCoords(t),i=o[Hx("0x7d")]-o.minColumn+1;if(Hx("0x3b")==t[Hx("0x43")])return e[Hx("0x78")]?{type:"insertion",content:Qo(n,Hx("0x73"),Qo(n,Hx("0x30"),[i,'"'+e[Hx("0x6c")](" ")+'"']))}:{type:Hx("0x3b"),content:Qo(n,Hx("0x73"),Qo(n,Hx("0x5e"),i))};if(Hx("0x19")==t.type)return e[Hx("0x78")]?{type:Hx("0x19"),content:Qo(n,Hx("0x13"),Qo(n,Hx("0x30"),[i,'"'+e[Hx("0x6c")](" ")+'"']))}:{type:Hx("0x19"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x5e"),i))}}})),o._suggestionFactory[Hx("0x2d")](Hx("0x3b"),Hx("0x38"),Hx("0x6d"),r),o[Hx("0x31")].registerCustomCallback(Hx("0x19"),Hx("0x38"),Hx("0x4"),r),o._suggestionFactory[Hx("0x2d")](Hx("0x3b"),Hx("0x2e"),"discard",a),o[Hx("0x31")][Hx("0x2d")](Hx("0x19"),Hx("0x2e"),Hx("0x4"),a),o._suggestionFactory.registerCustomCallback("insertion",Hx("0x2e"),Hx("0x6c"),c),o[Hx("0x31")][Hx("0x2d")](Hx("0x19"),Hx("0x2e"),Hx("0x6c"),c),o[Hx("0x31")][Hx("0x2d")](Hx("0x3b"),Hx("0x38"),Hx("0x6c"),l),o[Hx("0x31")].registerCustomCallback("deletion",Hx("0x38"),Hx("0x6c"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Hx("0x29")],e=t[Hx("0x5d")][Hx("0x39")][Hx("0x53")];return(n,o)=>{t[Hx("0x5d")][Hx("0x48")]((i=>{const{commandName:r,commandParams:x}=o;let a=n[0].end.nodeBefore;x&&x[0]&&!1===x[0][Hx("0x5f")]&&(a=n[0][Hx("0x57")][Hx("0x2a")]);const c=i[Hx("0x18")](a);if("$graveyard"==c[Hx("0x21")].rootName)return;const l=Array[Hx("0x3")](e[Hx("0x14")]())[Hx("0x68")]((t=>s.LiveRange[Hx("0x50")](t)));i[Hx("0x70")](c),t[Hx("0x22")][Hx("0x3a")](r)[Hx("0x59")](),x[Hx("0x71")]({forceDefaultExecution:!0}),t[Hx("0x11")](r,...x);const u=l[Hx("0x72")]((t=>Hx("0xc")!=t[Hx("0x21")][Hx("0x7b")]));u.length>0&&i[Hx("0x70")](u);for(const t of l)t[Hx("0x1c")]()}))}}_getCoordsForCells(t){const e=this[Hx("0x29")][Hx("0x25")][Hx("0x3a")]("TableUtils");let n=Number[Hx("0x7c")],o=Number[Hx("0x1e")],i=Number[Hx("0x7c")],r=Number[Hx("0x1e")];for(const s of t){if(Hx("0xc")==s[Hx("0x21")].rootName)continue;const{row:t,column:x}=e[Hx("0x44")](s),a=s[Hx("0x2f")]("rowspan")?s[Hx("0x64")](Hx("0x0"))-1:0,c=s[Hx("0x2f")](Hx("0x7e"))?s[Hx("0x64")](Hx("0x7e"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,i=x<i?x:i,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:i,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[Hx("0x29")],e=t[Hx("0x25")][Hx("0x3a")]("TrackChangesEditing"),n=t[Hx("0x25")][Hx("0x3a")](Hx("0x2"));t[Hx("0x5d")][Hx("0x39")].on(Hx("0x5"),(()=>{const n=Array.from(t[Hx("0x5d")].document[Hx("0x27")][Hx("0x54")]());for(const{name:t,data:o}of n){const{group:n,id:i,subType:r}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Hx("0x34")])continue;const s=e[Hx("0x76")](i);this[Hx("0x26")].includes(r)&&this[Hx("0x1a")].add(s)}}),{priority:Hx("0x1b")});const o=(t,e)=>{let o=!1;const i=e[Hx("0x17")](t),r=t[Hx("0x5c")](Hx("0x51")),s=n.getCellLocation(t);for(const e of this[Hx("0x1a")]){const n=e[Hx("0x9")],x=n[Hx("0x7a")](Hx("0x7")),a=n[Hx("0x52")](x?10:5),c=a.toLowerCase(),l=c[Hx("0x52")](0,3)+"span",u=Hx("0x61")+a,d="max"+a;if(!e[Hx("0xb")])continue;if(r!=e[Hx("0x79")]()[Hx("0x57")][Hx("0x5c")](Hx("0x51")))continue;if(e[Hx("0x6b")](i))continue;const g=t[Hx("0x2f")](l)?t[Hx("0x64")](l)-1:0,f=this[Hx("0x15")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e.addRange(i),o=!0)}return o};t[Hx("0x5d")][Hx("0x39")][Hx("0x60")]((e=>{let n=!1;for(const i of t[Hx("0x5d")][Hx("0x39")][Hx("0x27")].getChanges())if(Hx("0x32")==i[Hx("0x43")])if(Hx("0x38")==i[Hx("0x4b")])for(const t of i.position.nodeAfter.getChildren())n=n||o(t,e);else Hx("0x8")==i[Hx("0x4b")]&&(n=n||o(i.position[Hx("0x2a")],e));return n}))}[Hx("0x15")](t){return this._getCoordsForCells(t.getRanges()[Hx("0x68")]((t=>t[Hx("0x57")][Hx("0x2a")])))}}function Wx(t){return Array[Hx("0x3")](new Set(t)[Hx("0xd")]())}const Kx=["getSelectionAffectedTableCells","subType","has","execute","accept","direction","getRanges","fromRange","length","find","TableUtils","createRangeOn","selection","splitTableCellVertically","mergeTableCellDown","size","registerCustomCallback","TrackChangesEditing","commandName","_descriptionFactory","author","detach","root","_areMergableCells","horizontally","_areSelectedCellsMergable","commands","insertion","splitTableCellHorizontally","locale","mergeTableCellRight","getCellLocation","tableCell","format","mergeTableCells","from","createTableWalker","plugins","TableEditing","push","formatInline","table","add","registerDescriptionCallback","getAncestors","formatBlock","getSuggestions","highest","markMultiRangeBlockFormat","change","type","setSelection","low","*Split cell:* horizontally","requires","editor","stop","mergeTableCellLeft","getFirstPosition","value","set:isEnabled","mergeTableCellUp","$graveyard","*Split cell:* vertically","model","_suggestionFactory","get","_acceptFormatSuggestionCallbackFactory","element","enableCommand","refresh","map","isEnabled","afterInit","markBlockFormat","document","forceDefaultExecution"];var qx,Xx;qx=Kx,Xx=326,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("0x24")](){return[zx]}[$x("0x37")](){const t=this[$x("0x25")],e=t[$x("0x2e")][$x("0x39")][$x("0x47")],n=t[$x("0xb")];if(!t[$x("0x13")][$x("0x3d")]($x("0x14")))return;const o=t[$x("0x13")].get($x("0x4c")),i=t[$x("0x13")][$x("0x30")]($x("0x45")),r=t.plugins[$x("0x30")](zx);r._tablePostFixingSubtypes[$x("0x15")]("mergeTableCells"),o.enableCommand($x("0x10"),(()=>{const e=i[$x("0x3b")](t.model[$x("0x39")].selection);t.model[$x("0x1f")]((()=>{o[$x("0x1e")](e,{commandName:$x("0x10"),commandParams:[]},[],"mergeTableCells")}))})),t.commands.get($x("0x10")).on($x("0x3e"),((e,n)=>{t.commands[$x("0x30")]("trackChanges").value&&(n[$x("0x43")]>0&&n[n[$x("0x43")]-1]&&n[n[$x("0x43")]-1][$x("0x3a")]||o._isForcedDefaultExecutionBlock||this[$x("0x7")]()||e[$x("0x26")]())}),{priority:$x("0x1d")});for(const e of[$x("0x2b"),$x("0xc"),$x("0x49"),$x("0x27")]){const n=t.commands.get(e);o.enableCommand(e,(()=>{const e=t[$x("0x2e")][$x("0x39")][$x("0x47")][$x("0x28")]()[$x("0x1a")]()[$x("0x44")]((t=>t.is($x("0x32"),$x("0xe")))),i=n[$x("0x29")];t[$x("0x2e")].change((()=>{o[$x("0x1e")]([e,i],{commandName:$x("0x10"),commandParams:[]},[],$x("0x10"))}))}))}for(const e of["splitTableCellVertically",$x("0xa")]){const n=t[$x("0x8")][$x("0x30")](e);o[$x("0x33")](e,(()=>{const r=i[$x("0x3b")](t.model[$x("0x39")][$x("0x47")])[0],s=r.findAncestor($x("0x17")),{column:x,row:a}=i[$x("0xd")](r);let c=[];if($x("0x6")==n[$x("0x40")]){const t=i[$x("0x12")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[$x("0x35")]((t=>t.cell))}else{const t=i.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array[$x("0x11")](t)[$x("0x35")]((t=>t.cell))}t.model[$x("0x1f")]((t=>{o[$x("0x38")](t[$x("0x46")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[$x("0x1")][$x("0x19")]((t=>{if($x("0x1b")!=t[$x("0x20")]&&"formatInline"!=t[$x("0x20")])return;const{data:e}=t;return e&&$x("0x10")==e[$x("0x0")]?{type:$x("0xf"),content:Qo(n,"*Merge cells*")}:void 0})),o[$x("0x1")][$x("0x19")]((t=>{if($x("0x1b")!=t[$x("0x20")]&&$x("0x16")!=t[$x("0x20")])return;const{data:e}=t;return e?$x("0x48")==e[$x("0x0")]?{type:$x("0xf"),content:Qo(n,$x("0x2d"))}:"splitTableCellHorizontally"==e[$x("0x0")]?{type:$x("0xf"),content:Qo(n,$x("0x23"))}:void 0:void 0}));const x=r[$x("0x31")]();for(const t of[$x("0x2b"),$x("0xc"),"mergeTableCellDown","mergeTableCellLeft"])o._suggestionFactory[$x("0x4b")]($x("0x1b"),t,$x("0x3f"),x);for(const t of[$x("0x48"),"splitTableCellHorizontally"])o[$x("0x2f")][$x("0x4b")]("formatBlock",t,"accept",x);o[$x("0x2f")][$x("0x4b")]($x("0x1b"),$x("0x10"),"accept",(n=>{t.model[$x("0x1f")]((o=>{const i=Array[$x("0x11")](e[$x("0x41")]())[$x("0x35")]((t=>s.LiveRange[$x("0x42")](t)));o[$x("0x21")](n),t.commands[$x("0x30")]($x("0x10"))[$x("0x34")](),t[$x("0x3e")]("mergeTableCells",{forceDefaultExecution:!0});const r=i.filter((t=>$x("0x2c")!=t[$x("0x4")].rootName));r[$x("0x43")]>0&&o[$x("0x21")](r);for(const t of i)t[$x("0x3")]()}))}));for(const e of[$x("0x2b"),"mergeTableCellDown",$x("0x27"),"mergeTableCellRight"]){const n=t[$x("0x8")][$x("0x30")](e);n.on($x("0x2a"),((e,o,i)=>{if(i){const o=t.model[$x("0x39")][$x("0x47")][$x("0x28")]()[$x("0x1a")]()[$x("0x44")]((t=>t.is($x("0x32"),$x("0xe"))));this[$x("0x5")](n[$x("0x29")],o)||(e.return=!1,e[$x("0x26")]())}}),{priority:$x("0x22")})}}[$x("0x7")](){const t=this[$x("0x25")][$x("0x8")][$x("0x30")]($x("0x10")),e=this[$x("0x25")].plugins[$x("0x30")]($x("0x45"));if(!t[$x("0x36")])return!1;const n=e[$x("0x3b")](this[$x("0x25")][$x("0x2e")][$x("0x39")][$x("0x47")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x5")](t,e))return!1;return!0}[$x("0x5")](t,e){const n=this.editor.plugins.get("TrackChangesEditing"),o=this.editor[$x("0x2e")][$x("0x46")](t),i=this[$x("0x25")].model[$x("0x46")](e),r=new Set,s=new Set;for(const t of n[$x("0x1c")]())if(($x("0x9")==t[$x("0x20")]||"deletion"==t[$x("0x20")]||$x("0x10")==t[$x("0x3c")])&&t.isInContent)for(const e of t[$x("0x41")]())e.containsRange(o,!0)&&r[$x("0x18")](t[$x("0x20")]+":"+t[$x("0x2")].id),e.containsRange(i,!0)&&s.add(t[$x("0x20")]+":"+t[$x("0x2")].id);if(r[$x("0x4a")]!=s[$x("0x4a")])return!1;for(const t of r)if(!s[$x("0x3d")](t))return!1;return!0}}const Yx=["item","editor","plugins","addMarker:suggestion","setTableColumnHeader","mapper","FORMAT_REGULAR_ROW","registerAttributeLabel","addClass","markerName","removeMarker:suggestion","forceValue","FORMAT_REGULAR_COLUMN","start","TableEditing","_splitMarkerName","_handleLegacySuggestions","ck-suggestion-marker-","showSuggestionHighlights","getCellLocation","TableUtils","headingRows","registerCustomCallback","markerRange","_enableDefaultAttributesIntegration","bindElementToMarker","getSuggestion","commandName","FORMAT_HEADER_ROW","stop","unbindElementFromMarkerName","get","nodeBefore","editing","writer","has","end","consume","removeClass","includes","data","ck-suggestion-marker--active","downcastDispatcher","accept","locale","createTableWalker","commandParams","TrackChangesEditing","consumable","setTableRowHeader","removeAttribute","type","FORMAT_HEADER_COLUMN","cell","formatBlock","activeMarkers","setAttribute","afterInit","highest","_acceptFormatSuggestionCallbackFactory","name","data-suggestion","headingColumns","_suggestionFactory","markerNameToElements","_registerLegacyDescription","_descriptionFactory"];var Jx,Qx;Jx=Yx,Qx=375,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 requires(){return[zx]}[ta("0x11")](){const t=this.editor;if(!t.plugins[ta("0x3e")](ta("0x29")))return;const e=t[ta("0x4")],n=t.plugins.get("TrackChangesEditing");n[ta("0x33")](ta("0x9"),[],["headingRows"]),n[ta("0x33")](ta("0x1f"),[],[ta("0x16")]),n[ta("0x1a")][ta("0x22")](ta("0x30"),Qo(e,ta("0x37"))),n._descriptionFactory[ta("0x22")]("headingColumns",Qo(e,"FORMAT_HEADER_COLUMN")),this[ta("0x2b")]()}[ta("0x2b")](){const t=this[ta("0x1c")][ta("0x1d")].get(ta("0x7")),e=this[ta("0x1c")][ta("0x1d")][ta("0x3a")](ta("0x2f")),n=this.editor[ta("0x1d")][ta("0x3a")](zx)[ta("0x13")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(i,r,s)=>{const{type:x,id:a}=t[ta("0x2a")](r[ta("0x24")]),c=t[ta("0x35")](a),l=c[ta("0x0")];if(ta("0xe")!=c[ta("0xb")]||!l||"setTableColumnHeader"!=l[ta("0x36")])return;if(r[ta("0x1b")])return void i[ta("0x38")]();if(!s[ta("0x8")][ta("0x40")](r.markerRange,i[ta("0x14")]))return;const u=r[ta("0x32")][ta("0x28")].nodeAfter,d=r.markerRange[ta("0x3f")][ta("0x3b")],g=u.parent.parent,{column:f}=e[ta("0x2e")](u),{column:m}=e[ta("0x2e")](d);for(let i=f;i<=m;i++){const c=e[ta("0x5")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[ta("0xd")],c=s.mapper.toViewElement(i);s[ta("0x3d")][ta("0x23")](ta("0x2c")+x,c),o&&s.writer[ta("0x10")](ta("0x15"),a,c),s[ta("0x20")][ta("0x34")](c,r[ta("0x24")]),n&&(t[ta("0xf")][ta("0x42")](r[ta("0x24")])?s.writer[ta("0x23")]("ck-suggestion-marker--active",c):s[ta("0x3d")][ta("0x41")](ta("0x1"),c))}}}}t[ta("0x17")][ta("0x31")](ta("0xe"),ta("0x9"),"accept",n),t._suggestionFactory[ta("0x31")]("formatBlock",ta("0x1f"),ta("0x3"),n),this.editor.editing[ta("0x2")].on(ta("0x1e"),o(),{priority:ta("0x12")}),this[ta("0x1c")][ta("0x0")][ta("0x2")].on(ta("0x1e"),((t,e,n)=>{n.options[ta("0x2d")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x12")}),this.editor[ta("0x3c")][ta("0x2")].on(ta("0x25"),((e,n,o)=>{const{type:i,id:r}=t[ta("0x2a")](n[ta("0x24")]),s=t[ta("0x35")](r),x=s.data;if("formatBlock"!=s.type||!x||ta("0x1f")!=x[ta("0x36")])return;const a=o[ta("0x20")][ta("0x18")](n.markerName);if(a)for(const t of a)o[ta("0x3d")][ta("0x41")](ta("0x2c")+i,t),o[ta("0x3d")][ta("0x41")]("ck-suggestion-marker--active",t),o[ta("0x3d")][ta("0xa")]("data-suggestion",t),o[ta("0x20")][ta("0x39")](t,n[ta("0x24")])}),{priority:ta("0x12")}),this[ta("0x19")]()}[ta("0x19")](){const t=this.editor,e=t[ta("0x4")];function n(t){return{type:"format",content:Qo(e,"*Format:* %0",t)}}t.plugins[ta("0x3a")](ta("0x7"))[ta("0x1a")].registerDescriptionCallback((t=>{if(ta("0xe")!=t[ta("0xb")])return;const{data:o}=t;if(o){if(ta("0x9")==o[ta("0x36")]){const t=o[ta("0x6")][0][ta("0x26")];return n(Qo(e,ta(t?"0x37":"0x21")))}if(ta("0x1f")==o[ta("0x36")]){const t=o.commandParams[0][ta("0x26")];return n(Qo(e,ta(t?"0xc":"0x27")))}}}))}}const na=["insertContent","afterInit","endRow","add","author","batch","newRange","differ","getContainedElement","keys","find","createPositionBefore","fromEntries","registerCustomCallback","markMultiRangeDeletion","deletion","has","oldRange","_replaceTableSlotCell","isInContent","register","model","subType","every","value","next","tableCellBorderWidth","tablePaste","setAttributes","start","startsWith","insertion","position","tableCellBorderColor","entries","getColumns","unwrap","dataDowncast","tablePasteRow","rowInsertionRanges","getAllAdjacentSuggestions","_tablePostFixingSubtypes","markerToHighlight","_descriptionFactory","cells","getChild","createRangeOn","isEqual","activeMarkers","removeColumns","getTableIfOnlyTableInContent","removeRows","table","rows","listenTo","tableCellHorizontalAlignment","content","insertRows","tableCellPadding","rootName","createTableWalker","deletionRanges","attributes","markers","length","createRangeIn","accept","columnInsertionIndexes","elementToElement","some","tablePasteChainId","join","tableCellVerticalAlignment","*Replace table cells*","tableCell","locale","plugins","editor","suggestion","getItems","stop","fill","previous","remove","getRange","tableCellBorderStyle","columnInsertionRanges","Users","getChildren","getMarkers","createElement","get","editingDowncast","change","high","insert","type","columns","containsRange","conversion","return","last","findAncestor","getSuggestion","removeMarkers","$graveyard","ck-suggestion-marker-insertion","suggestion:formatBlock:tablePasteCell","set","suggestionUnloaded","options","markerAttributes","element","wrap","removeMarker","tablePasteCell","map","isEmpty","ck-suggestion-marker","getSuggestionCallback","filter","discard","insertionRanges","_createdBatches","TableClipboard","trackChanges","includes","ck-suggestion-marker--active","requires","endColumn","tableCellSuggestion","cell","_suggestionFactory","low","getColumnIndexes","tableCellBackgroundColor","first","name","from","move","forceDefaultExecution","for","createRange","editing","end","document","view","registerDescriptionCallback","tablePasteColumn","_splitMarkerName","paragraph","nextSibling","getSelectionAffectedTableCells","getRanges","getSuggestions","formatBlock","getChangedMarkers","push","registerPostFixer","markMultiRangeInsertion","markerName"];var oa,ia;oa=na,ia=335,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]},sa=[ra("0xd"),ra("0x14"),ra("0x48"),ra("0x2a"),ra("0x3b"),ra("0x7a"),ra("0x2d")],xa=Object[ra("0xa0")](sa[ra("0x67")]((t=>[t,null])));class aa extends t.Plugin{static get[ra("0x73")](){return[zx]}[ra("0x95")](){const t=this[ra("0x40")];if(!t.plugins[ra("0x3")](ra("0x6f")))return;const n=t.plugins[ra("0x4e")]("TrackChangesEditing"),o=t[ra("0x3f")].get("TableUtils"),i=t[ra("0x3f")].get(zx),r=t[ra("0x3f")][ra("0x4e")](ra("0x6f"));i[ra("0x1c")][ra("0x90")](ra("0x19"),"tablePasteColumn"),t[ra("0x8")].schema[ra("0x7")]("tableCellSuggestion",{allowIn:ra("0x3d"),allowContentOf:ra("0x3d"),isLimit:!0}),t[ra("0x56")][ra("0x37")]({model:"tableCellSuggestion",view:"suggestion-td"});let s=null;t[ra("0x8")].on(ra("0x94"),((i,x)=>{const[a,c]=x,l=x[x[ra("0x33")]-1];l&&l[ra("0x7f")]||n._isForcedDefaultExecutionBlock||this[ra("0x40")].commands[ra("0x4e")](ra("0x70"))[ra("0xb")]&&function(t,e,n,o,i){if(e&&!e.is("documentSelection"))return!1;const r=i[ra("0x25")](t,n);if(!r||!la(r,void 0,o))return!1;const s=o[ra("0x8b")](n[ra("0x84")].selection);if(!s.length)return!1;const x=s[0].findAncestor(ra("0x27")),a=o.getRowIndexes(s),c=o[ra("0x79")](s),l={startRow:a[ra("0x7b")],endRow:a.last,startColumn:c[ra("0x7b")],endColumn:c[ra("0x58")]};return 1==s.length&&(l[ra("0x96")]+=o.getRows(r)-1,l[ra("0x74")]+=o[ra("0x16")](r)-1),la(x,l,o)}(a,c,t[ra("0x8")],o,r)&&(i[ra("0x43")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ra("0x8")][ra("0x50")]((()=>{t[ra("0x8")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ra("0x33")]&&n[ra("0x92")](i,"tablePasteRow",{tablePasteChainId:o}),r[ra("0x33")]&&n[ra("0x92")](r,ra("0x87"),{tablePasteChainId:o}),a[ra("0x33")]&&n[ra("0x92")](a,ra("0xe"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[ra("0x1")](c,ra("0xe"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ra("0x66"),{tablePasteChainId:o});if(u){const e=u[ra("0x4c")](),n=[];for(const{element:o,attributes:i}of l){if(!i)continue;const r=t[ra("0x8")][ra("0x21")](o),s=e[ra("0x9e")]((t=>t[ra("0x47")]()[ra("0x22")](r)));s&&n[ra("0x90")]([s[ra("0x7c")],i])}n[ra("0x33")]&&u.setAttribute(ra("0x62"),Object.fromEntries(n))}s=null})))}),{priority:e.priorities[ra("0x51")]+10}),t[ra("0x3f")][ra("0x4e")]("TableClipboard").on(ra("0x5"),((t,e)=>{const[n,o,,i]=e;if(!s)return;t[ra("0x43")]();const r=n[ra("0x76")],x=o,a=ca(r),c=ca(x);t[ra("0x57")]=r;let l=null,u=null;if(c||a)if(a&&!c){i[ra("0x46")](r[ra("0x20")](0));for(const t of Array[ra("0x7d")](x[ra("0x4b")]()))i[ra("0x52")](t,r,ra("0x83"));const t=s.rowInsertionIndexes[ra("0x71")](n.row),e=s[ra("0x36")][ra("0x71")](n.column);t||e||(l=i[ra("0x34")](r))}else c&&!a&&(u=i[ra("0x34")](r));else{const t=i[ra("0x4d")](ra("0x75")),e=i.createElement(ra("0x75"));i[ra("0x64")](i[ra("0x34")](r),e),i[ra("0x52")](t,r,0);for(const e of Array[ra("0x7d")](x.getChildren()))i[ra("0x52")](e,t,"end");l=i[ra("0x21")](t),u=i.createRangeOn(e)}const d=Array.from(x.getAttributes())[ra("0x6b")]((([t])=>sa[ra("0x71")](t)));s[ra("0x1f")][ra("0x90")]({element:r,attributes:d[ra("0x33")]?Object[ra("0xa0")](d):null}),l&&s[ra("0x6d")][ra("0x90")](l),u&&s[ra("0x30")][ra("0x90")](u)}),{priority:"high"}),o.on("insertColumns",((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x54")]||1;s[ra("0x36")]=new Array(a)[ra("0x44")](x).map(((t,e)=>t+e));for(const{cell:e}of o[ra("0x2f")](i,{startColumn:x,endColumn:x+a-1}))s[ra("0x49")].push(t[ra("0x8")][ra("0x21")](e))}),{priority:ra("0x78")}),o.on(ra("0x2c"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x28")]||1;s.rowInsertionIndexes=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o[ra("0x2f")](i,{startRow:x,endRow:x+a-1}))s[ra("0x1a")].push(t[ra("0x8")].createRangeOn(e))}),{priority:ra("0x78")}),n[ra("0x1e")][ra("0x86")]((e=>{if(e[ra("0x9")]&&e[ra("0x9")][ra("0x11")](ra("0xe")))return e.previous?{}:{type:ra("0x12"),content:Qo(t[ra("0x3e")],ra("0x3c"))}}));const x=()=>!1;for(const t of[ra("0xe"),ra("0x87"),ra("0x19"),ra("0x66")])n._suggestionFactory[ra("0x0")](ra("0x12"),t,ra("0x3a"),x),n._suggestionFactory[ra("0x0")]("deletion",t,"join",x),n[ra("0x77")][ra("0x0")](ra("0x8e"),t,ra("0x3a"),x);n._suggestionFactory[ra("0x0")](ra("0x8e"),"tablePasteCell",ra("0x6c"),x),n[ra("0x77")].registerCustomCallback(ra("0x8e"),ra("0x66"),ra("0x35"),((e,n,o)=>{const i=e[ra("0x67")]((t=>t[ra("0x9c")]()))[ra("0x6b")]((t=>t)),r=new Map(i[ra("0x67")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ra("0x1f")])e&&r[ra("0x5f")](t,e);else if(o&&o[ra("0x62")])for(const[e,n]of Object[ra("0x15")](o.markerAttributes)){const o=t.model[ra("0x32")].get(e),i=o?o.getRange()[ra("0x9c")]():null;i&&r[ra("0x5f")](i,n)}t[ra("0x8")].change((t=>{for(const[e,n]of r)t[ra("0xf")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ra("0x77")][ra("0x0")](e,"tablePaste",o,((i,r,s)=>{t[ra("0x8")][ra("0x50")]((t=>{const x=[];for(const t of i){const e=t[ra("0x10")].nodeAfter;e.is(ra("0x63"),ra("0x75"))&&x[ra("0x90")](e)}n[ra("0x77")][ra("0x6a")](e,null,o)(i,r,s);for(const e of x)ra("0x5c")!=e.root[ra("0x2e")]&&t[ra("0x17")](e)}))}))};a("insertion","accept"),a("insertion",ra("0x6c")),a("deletion",ra("0x35")),a(ra("0x2"),"discard"),n[ra("0x77")][ra("0x0")](ra("0x12"),"tablePasteRow",ra("0x6c"),(t=>{const e=t[ra("0x67")]((t=>t[ra("0x9c")]())),n=e[0][ra("0x59")](ra("0x27")),{minRow:r,maxRow:s}=i._getCoordsForCells(e);o[ra("0x26")](n,{at:r,rows:s-r+1})})),n._suggestionFactory[ra("0x0")](ra("0x12"),ra("0x87"),"discard",(t=>{const e=t.map((t=>t[ra("0x9c")]())),n=e[0][ra("0x59")](ra("0x27")),{minColumn:r,maxColumn:s}=i._getCoordsForCells(e);o[ra("0x24")](n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e[ra("0x9")]||!e[ra("0x9")][ra("0x11")]("tablePaste"))return;const o=e[ra("0x31")][ra("0x39")],i=n[ra("0x8d")]().filter((t=>t[ra("0x6")]&&t[ra("0x31")]&&t.attributes[ra("0x39")]==o));i.length&&e[ra("0x1b")]()[ra("0x33")]!=i[ra("0x33")]&&i.reduce(((t,e)=>(t[ra("0xc")]=e,e[ra("0x45")]=t,e)))};function l(t,e=!0){const{id:o}=n[ra("0x88")](t[ra("0x93")]),i=[ra("0x69"),ra("0x5d")],r=n[ra("0x23")][ra("0x71")](t.markerName);return r&&i.push(ra("0x72")),{classes:i,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:ra("0x51")}),n.on(ra("0x60"),c,{priority:ra("0x51")}),t[ra("0x8")][ra("0x84")][ra("0x91")]((()=>{let e=!1;const o=Array.from(t.model[ra("0x84")].differ[ra("0x8f")]());for(const{name:i,data:r}of o){const{group:o,type:s,id:x}=n[ra("0x88")](i);if(ra("0x41")!=o||"deletion"!=s||r.oldRange)continue;if(!n.hasSuggestion(x))continue;const a=n[ra("0x5a")](x)[ra("0x8c")](),c=t[ra("0x3f")].get("Users").me;for(const t of n[ra("0x8d")]())if(t[ra("0x6")]&&t[ra("0x98")]==c&&ra("0x8e")==t[ra("0x53")]&&ra("0x66")==t[ra("0x9")]&&t.getRanges()[ra("0xa")]((t=>a[ra("0x38")]((e=>e[ra("0x55")](t,!0))))))for(const n of t[ra("0x1b")]())n[ra("0x6")]&&(n[ra("0x6c")](),e=!0)}return e})),t[ra("0x8")][ra("0x84")].registerPostFixer((e=>{const o=t.commands[ra("0x4e")]("redo");if(!o||!o[ra("0x6e")][ra("0x3")](e[ra("0x99")]))return!1;let i=!1;const r=t[ra("0x3f")][ra("0x4e")](ra("0x4a")).me,s=t[ra("0x8")].document[ra("0x9b")].getChanges(),x=Array[ra("0x7d")](t.model.document[ra("0x9b")][ra("0x8f")]())[ra("0x6b")]((({name:t,data:e})=>{const{group:o,subType:i,authorId:s}=n[ra("0x88")](t);return ra("0x41")==o&&ra("0xe")==i&&s==r.id&&!e[ra("0x4")]}));for(const t of s){if(ra("0x52")!=t[ra("0x53")]||ra("0x75")!=t[ra("0x7c")]||1!=t[ra("0x33")])continue;const n=e[ra("0x81")](t[ra("0x13")],t[ra("0x13")].getShiftedBy(1));if(!x[ra("0x9e")]((({data:t})=>t.newRange.isEqual(n))))for(const{name:t,data:o}of x)if(n.containsRange(o[ra("0x9a")])){e.updateMarker(t,{range:n}),i=!0;break}}return i})),t[ra("0x8")][ra("0x84")].registerPostFixer((e=>{let o=!1;const i=t[ra("0x3f")][ra("0x4e")](ra("0x4a")).me,r=n.getSuggestions()[ra("0x6b")]((t=>t[ra("0x6")]&&t[ra("0x98")]==i)),s=new Set,x=new Set;for(const t of r)if(ra("0xe")==t[ra("0x9")])for(const e of t.getMarkers()){const n=e.getRange()[ra("0x9c")]();if(n)if(n.is(ra("0x63"),ra("0x75"))&&ca(n)){t[ra("0x65")](e[ra("0x7c")]),s[ra("0x97")](n),o=!0;const i=n[ra("0x8a")],r=n.previousSibling,a=i&&i.is(ra("0x63"),ra("0x75")),c=r&&r.is(ra("0x63"),ra("0x75"));a&&!s[ra("0x3")](i)&&x[ra("0x97")](i),c&&!s[ra("0x3")](r)&&x[ra("0x97")](r)}else n.is(ra("0x63"),ra("0x89"))&&n[ra("0x68")]&&(t[ra("0x65")](e.name),o=!0)}else if(ra("0x66")==t[ra("0x9")]){if(!t[ra("0x31")]||!t[ra("0x31")].tablePasteChainId)continue;const e=t[ra("0x31")][ra("0x62")];if(e&&Object[ra("0x9d")](e)[ra("0x33")])continue;const n=t[ra("0x31")][ra("0x39")];let i=!0,s=!0;for(const e of r)if(e[ra("0x9")]&&e[ra("0x9")].startsWith(ra("0xe"))){if(!e[ra("0x31")][ra("0x39")]){s=!1;break}if(e.id!=t.id&&e[ra("0x31")][ra("0x39")]==n){i=!1;break}}s&&i&&(t[ra("0x5b")](),o=!0)}for(const t of s)e[ra("0x46")](t);for(const t of x)e.unwrap(t);return o})),t[ra("0x56")][ra("0x80")](ra("0x4f"))[ra("0x1d")]({model:ra("0x5e"),view:(t,e)=>l(t),converterPriority:ra("0x51")}),t[ra("0x56")][ra("0x80")](ra("0x18"))[ra("0x1d")]({model:ra("0x5e"),view:(t,e)=>e[ra("0x61")].showSuggestionHighlights?l(t,!1):null,converterPriority:ra("0x51")});const u=t[ra("0x82")][ra("0x85")];this[ra("0x29")](u[ra("0x84")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[ra("0x34")](e[ra("0x2b")])[ra("0x42")]())t.is(ra("0x63"),"suggestion-td")&&n[ra("0x90")](t);u[ra("0x50")]((t=>{for(const e of n)t[ra("0x7e")](t[ra("0x34")](e),t[ra("0x9f")](e)),t[ra("0x46")](e)}))}))}}function ca(t){if(t[ra("0x68")])return!0;const e=t[ra("0x20")](0);return e.is(ra("0x63"),ra("0x89"))&&e[ra("0x68")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:i,cellWidth:r}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!o||1!=i||1!=r)return!1;return!0}const ua=["getContainedElement","accept","discard","formatGroupId","format","bind","model","handleResizeTableWidthCommand","getSuggestions","_descriptionFactory","formatBlock","type","change","resizeTableWidth","columnWidths","Users","markBlockFormat","data","tableWidth","registerDescriptionCallback","enableCommand","commandParams","TrackChangesEditing","resizeTable","has","handleSuggestionDescription","getColumnGroupElement","getAttribute","document","*Format:* resize table","get","table","author","TableColumnResizeEditing","editor","selection","_suggestionFactory","getSuggestionCallback","plugins","getSelectedElement","registerCustomCallback"];var da,ga;da=ua,ga=308,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{afterInit(){if(!this.editor[fa("0x11")][fa("0x3")](fa("0xc")))return;const t=this.editor[fa("0x11")][fa("0x9")](fa("0x1"));t[fa("0x28")](fa("0x21"),this[fa("0x1b")].bind(this)),t[fa("0xf")][fa("0x13")]("formatBlock",fa("0x2"),fa("0x15"),t._suggestionFactory[fa("0x10")](fa("0x1e"),null,fa("0x16"))),t[fa("0xf")][fa("0x13")](fa("0x1e"),fa("0x2"),fa("0x16"),t[fa("0xf")][fa("0x10")](fa("0x1e"),null,fa("0x15"))),t[fa("0x1d")][fa("0x27")](this[fa("0x4")][fa("0x19")](this))}[fa("0x1b")](t,e){const n=this[fa("0xd")][fa("0x11")][fa("0x9")](fa("0x1")),o=this.editor[fa("0x11")][fa("0x9")]("TableColumnResizeEditing"),i=e[fa("0xa")]||this[fa("0xd")][fa("0x1a")][fa("0x7")][fa("0xe")][fa("0x12")]();this.editor[fa("0x1a")][fa("0x20")]((()=>{const r=o[fa("0x5")](i);let s=r?o.getTableColumnsWidths(r):null,x=i[fa("0x6")](fa("0x26"))||null;const a=e.tableWidth||x,c=e.columnWidths||s,l=this.editor[fa("0x11")][fa("0x9")](fa("0x23")).me;for(const t of n[fa("0x1c")]()){const e=t[fa("0x14")]();if(fa("0x2")===t.subType&&e===i){t[fa("0xb")]!==l&&t[fa("0x16")]();const e=t[fa("0x25")][fa("0x0")];x=e[0][fa("0x26")],s=e[0][fa("0x22")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[fa("0x24")](i,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x2")},[],"resizeTable")}))}handleSuggestionDescription(t){if(fa("0x1e")!=t[fa("0x1f")]&&"formatInline"!=t.type)return;const{data:e}=t;if(e&&fa("0x2")===e[fa("0x17")]){const t=fa("0x8");return{type:fa("0x18"),content:Qo(this.editor.locale,t)}}}}const ha=["insertTemplate","has","TrackChangesEditing","Template","editor","afterInit","enableCommand"];var pa,ba;pa=ha,ba=352,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x3")](){const t=this[Ea("0x2")];t.plugins[Ea("0x6")](Ea("0x1"))&&t.plugins.get(Ea("0x0"))[Ea("0x4")](Ea("0x5"))}}const Ta=["_descriptionFactory","afterInit","tableOfContents","insertTableOfContents","plugins","get","TrackChangesEditing","locale","registerElementLabel","enableCommand","ELEMENT_TABLE_OF_CONTENTS"];var ya,Ca;ya=Ta,Ca=406,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x2")](){const t=this.editor;if(!t.commands[Aa("0x6")](Aa("0x4")))return;t[Aa("0x5")].get(Aa("0x7"))[Aa("0xa")]("insertTableOfContents");const e=t[Aa("0x5")][Aa("0x6")](Aa("0x7")),n=t[Aa("0x8")];e[Aa("0x1")][Aa("0x9")](Aa("0x3"),(t=>Qo(n,Aa("0x0"),t)))}}const Ia=["locale","title-content","forward","Title","TrackChangesEditing","differ","end","from","registerElementLabel","plugins","updateMarker","removeMarker","has","element","editor","_splitMarkerName","nodeBefore","newRange","getChangedMarkers","start","get","isTouching","model","document","afterInit","isEqual"];var Ra,va;Ra=Ia,va=275,function(t){for(;--t;)Ra.push(Ra.shift())}(++va);const Sa=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[Sa("0x9")](){const t=this[Sa("0x19")];if(!t.plugins[Sa("0x17")](Sa("0xe")))return;const e=t[Sa("0x14")][Sa("0x5")](Sa("0xf"));e._descriptionFactory[Sa("0x13")](Sa("0xc"),(()=>Qo(t[Sa("0xb")],"ELEMENT_TITLE"))),t[Sa("0x7")][Sa("0x8")].registerPostFixer((n=>{let o=!1;const i=Array[Sa("0x12")](t[Sa("0x7")][Sa("0x8")][Sa("0x10")][Sa("0x3")]());for(const{name:r,data:s}of i){const{group:i}=e[Sa("0x0")](r);if("suggestion"!==i||!s[Sa("0x2")])continue;const x=s[Sa("0x2")],a=x[Sa("0x11")][Sa("0x1")];if(!a||!a.is(Sa("0x18"),"title-content"))continue;if(!x[Sa("0x4")][Sa("0x6")](x[Sa("0x11")]))continue;const c=t[Sa("0x7")].schema.getNearestSelectionRange(x[Sa("0x11")],Sa("0xd"));if(c&&c.isCollapsed){const t=n.createRange(x[Sa("0x4")],c[Sa("0x4")]);t[Sa("0xa")](x)||(n[Sa("0x15")](r,{range:t}),o=!0)}o||(n[Sa("0x16")](r),o=!0)}return o}))}}const La=["plugins","undo","TrackChangesEditing","editor","UndoEditing","redo","afterInit","get","enableCommand","has"];var Ma,wa;Ma=La,wa=464,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("0x9")],e=t[Oa("0x6")][Oa("0x3")](Oa("0x8"));t[Oa("0x6")][Oa("0x5")](Oa("0x0"))&&(e[Oa("0x4")](Oa("0x7")),e[Oa("0x4")](Oa("0x1")))}}const Da=["toggleTableCaption","plugins","editor","get","TableCaptionEditing","enableCommand","requires","afterInit","has"];var Ba,Pa;Ba=Da,Pa=161,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("0x7")](){return[zx]}[Ua("0x8")](){const t=this[Ua("0x3")];t[Ua("0x2")][Ua("0x0")](Ua("0x5"))&&t[Ua("0x2")][Ua("0x4")]("TrackChangesEditing")[Ua("0x6")](Ua("0x1"))}}const Ga=["handleDiscardAction","TrackChangesEditing","format","tableCellBorderColor","getContainedElement","subType","locale","plugins","data","batch","tableCellProperties","selection","handleSuggestionDescription","removeAttribute","tableProperties","_suggestionFactory","table","has","tableCellBackgroundColor","tableBackgroundColor","registerCustomCallback","nodeAfter","afterInit","tableCellPadding","tableCellVerticalAlignment","tableCellHeight","tableWidth","discard","tableAlignment","commandParams","getSuggestionCallback","tableCellHorizontalAlignment","model","getFirstPosition","findAncestor","tableBorderColor","tableHeight","TableUtils","getSuggestions","document","formatBlock","tableBorderWidth","getSelectionAffectedTableCells","setAttribute","join","editor","registerDescriptionCallback","tableCellWidth","get","TablePropertiesEditing","getAttribute","*Format:* change table cell properties","pluginName","_handlePropertyChange","tableBorderStyle","accept"];var Va,Ha;Va=Ga,Ha=499,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x13")]=[za("0x28"),za("0x3"),za("0x2e"),za("0x21"),za("0x1f"),za("0x29"),za("0x18")],this.tableCellProperties=[za("0x8"),"tableCellBorderStyle","tableCellBorderWidth",za("0x1c"),za("0x34"),za("0x1e"),za("0x17"),za("0x24"),za("0x1d")]}static get[za("0x1")](){return"TrackChangesTableProperties"}[za("0x1b")](){const t=this[za("0x32")][za("0xc")][za("0x35")]("TrackChangesEditing");if(this[za("0x32")][za("0xc")].has(za("0x36"))){for(const e of this[za("0x13")])t.enableCommand(e,((t,n)=>{const o=this[za("0x32")][za("0x25")].document[za("0x10")][za("0x26")]()[za("0x27")](za("0x15"));this[za("0x2")](e,[o],this[za("0x13")],za("0x13"),t,n)}));t[za("0x14")][za("0x19")]("formatBlock",za("0x13"),za("0x4"),t._suggestionFactory[za("0x23")]("formatBlock",null,za("0x20"))),t[za("0x14")][za("0x19")](za("0x2d"),za("0x13"),"discard",((t,e)=>this[za("0x5")](this[za("0x13")],t,e))),t[za("0x14")][za("0x19")](za("0x2d"),"tableProperties",za("0x31"),(()=>!1))}if(this.editor[za("0xc")][za("0x16")]("TableCellPropertiesEditing")){for(const e of this[za("0xf")])t.enableCommand(e,((t,n)=>{const o=this[za("0x32")].plugins[za("0x35")](za("0x2a"))[za("0x2f")](this.editor.model[za("0x2c")].selection);this[za("0x2")](e,o,this.tableCellProperties,"tableCellProperties",t,n)}));t[za("0x14")].registerCustomCallback(za("0x2d"),za("0xf"),za("0x4"),t[za("0x14")].getSuggestionCallback("formatBlock",null,za("0x20"))),t[za("0x14")][za("0x19")](za("0x2d"),za("0xf"),"discard",((t,e)=>this.handleDiscardAction(this[za("0xf")],t,e))),t[za("0x14")].registerCustomCallback("formatBlock",za("0xf"),"join",(()=>!1))}t._descriptionFactory[za("0x33")]((t=>this[za("0x11")](t)))}[za("0x2")](t,e,n,o,i,r){const s=this[za("0x32")][za("0xc")][za("0x35")](za("0x6"));this[za("0x32")][za("0x25")].enqueueChange(r[za("0xe")],(()=>{for(const t of e)if(this._getSuggestion(t,o))i(r);else{const e={};for(const o of n){const n=t[za("0x37")](o);void 0!==n&&(e[o]=n)}i(r),s.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[za("0x5")](t,e,n){const o=e[0].start[za("0x1a")],i=n[za("0x22")][0];this[za("0x32")][za("0x25")].change((e=>{for(const n of t)void 0!==i[n]?e[za("0x30")](n,i[n],o):e[za("0x12")](n,o)}))}[za("0x11")](t){if(t[za("0xd")])switch(t[za("0xa")]){case"tableProperties":return{type:za("0x7"),content:Qo(this[za("0x32")][za("0xb")],"*Format:* change table properties")};case za("0xf"):return{type:za("0x7"),content:Qo(this[za("0x32")][za("0xb")],za("0x0"))}}}_getSuggestion(t,e){const n=this[za("0x32")][za("0xc")].get("TrackChangesEditing");for(const o of n[za("0x2b")]({skipNotAttached:!0})){const n=o[za("0x9")]();if(o[za("0xa")]===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=it?it.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,i,r){var s=-1,x=e.length;for(o||(o=tc),r||(r=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,i,r):sn(r,a):i||(r[r.length]=a)}return r};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 ic=Math.max;const rc=function(t,e,n){return e=ic(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=ic(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=o[i];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(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(rc(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=po(e,t),o||(o=e.length>1),e})),re(t,dn(t),n),o&&(n=to(n,7,Ja));for(var i=e.length;i--;)Ko(n,e[i]);return n})),uc=["_defaultCallbacks","removeAttribute","insertion:chain","applyOperation","_registerDefaultCallbacks","addSuggestion","newValue","sort","$graveyard","removeMarker","find","addSuggestionData","discardAllSuggestions","_mergeNestedSuggestions","for","_handleNewSuggestionMarker","markBlockFormat","attribute:accept","addMarker:suggestion:formatBlock","_breakSuggestionMarker","conversion","groupId","root","editingDowncast","setTo","_reduceSuggestionAttributeRange","delete","getFirstRange","$elementName","addMarkerName","always","includes","then","isObject","authoredAt","_setSuggestionRange","map","$textProxy","deletion","_cutOutSuggestionMarker","notReady","enqueueChange","ck-suggestion-marker-formatBlock","stop","batch","hasComments","markerNameToElements","getMultiRangeId","getNearestSelectionRange","formatBlock:chain","acceptSelectedSuggestions","removeClass","_processAttributeChanges","formatInline:chain","insertion:join","getFirstMarker","listenTo","enableCommand","_SUGGESTION_ANNOUNCEMENT","markDeletion","_rangeIsInLocalUserInsertion","key","oldRange","_updateSuggestionData","ck-suggestion-marker--active","formatBlock:join","getRanges","trackChanges.trackFormatChanges","model","_enabledCommands","trackChanges.mergeNestedSuggestions","containsRange","rename","addMarker:suggestion","createPositionAt","rootName","getCommentThread","formatBlock:accept","creator","@external","_setSuggestionData","getChangedMarkers","toViewElement","forceDefaultExecution","_blockAttributeKeys","change","containsPosition","item","formatInline:","acceptSuggestion","push","position","attributeOldValue","splice","enableReadOnlyMode","stopListening","consume","config","createRange","hasCommentThread","_isDataLoaded","suggestionUnloaded","getAncestors","next","meta","split","_customCallbacks","_registerBlockAttribute","before","attribute:join","deleteContent","removeMarker:suggestion:attribute","_splitMarkerName","attributes","insertion:discard","accepted","deletion:","formatInline:discard","previous","bindElementToMarker","isInsideObject","track-changes-adapter-missing-getsuggestion","formatInline","_registerInlineAttribute","length","setSelection","fromCharCode","catch","_trackFormatChanges","keys","isBefore","containerElement","_suggestionFactory","end","_suggestions","widget","getRange","schema","getAllAdjacentSuggestions","locale","addCommentThread","version","refresh","plugins","_isBlockAttribute","markerToHighlight","track-changes-user-not-found","from","value","Users","ariaLiveAnnouncer","_getSuggestionData","collaboration.channelId","markMultiRangeInsertion","_inlineAttributeKeys","_getExternalAuthor","unbind","_reduceExistingSuggestions","addMarker","init","PENDING_ACTION_SUGGESTION","upcast","formatGroupId","backward","startsWith","markers","_isForcedDefaultExecutionBlock","remove","updateMarker","setAttribute","resolve","getSuggestionCallback","selection","insertion:","insertion","isNextTo","nodeBefore","getItems","isAtEnd","external:","documentSelection","getShiftedBy","track-changes-suggestion-not-found","chain","targetPosition","suggestion:attribute:","fire","suggestion-type","accept","normal","change:data","getDifference","getWalker","multi","highest","elementStart","discardSelectedSuggestions","differ","attribute:","addClass","range","attributeNewValue","oldName","data","getAttribute","suggestionLoaded","every","define","skipNestingCheck","track-changes-suggestion-data-mismatch","authorName","parent","error-saving-suggestion-data-suggestion-discarded","formatBlock","editor","values","newRange","_saved","return","isIntersecting","unshift","isRemovable","has","formatBlock:discard","PendingActions","dataDowncast","ready","containsRangeInObject","_processAttributeSuggestions","low","open","markMultiRangeBlockFormat","createSelection","isInContent","attribute:discard","isBlock","markAttributeChange","$marker","_checkSuggestionCorrectness","markerReady","markMultiRangeDeletion","rethrowUnexpectedError","addMarker:suggestion:attribute","deletion:discard","isIntersectingWithRange","unbindElementFromMarkerName","_recordAttributeChanges","execute","start","insertContent","deletion:join","isArray","consumable","_joinSuggestions","_editor","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.","_getAttributeKeyFromSubType","_getAuthorFromId","addHighlight","isOwn","track-changes-adapter-already-set","ck-suggestion-marker-formatInline","ck-suggestion-marker-","warn","size","high","ck-suggestion-marker","registerCustomCallback","createElement","registerPostFixer","createPositionAfter","_addSuggestionMarker","author","filter","getLastMatchingPosition","oldValue","suggestion:","markInlineFormat","trackChangesCommand","toJSON","tablePasteChainId","format","comments","commands","getCustomProperty","head","forEach","_refreshSuggestionsChain","_enableDefaultAttributesIntegration","document","isMultiRange","changeAttribute","dataReady","adapter","fromRange","group","writer","createRangeIn","_recordAttributeSuggestionsFromVersion","after","multipleBlocks","discardSuggestion","mapper","removeMarkers","removeMarker:suggestion:formatBlock","_getMarkerAnnouncementText","CommentsRepository","buildSuggestion","removed","change:_saved","discard","track-changes-command-not-found","_adapter","getOperations","isLocal","add","deletion:chain","options","substr","suggestionChanged","join","rejected","clear","formatBlock:","newName","pluginName","getMarkers","commandName","markerName","showSuggestionHighlights","concat","reconvertMarker","$text","_refreshAttributeSuggestionsChain","isLimit","getIntersection","insert","_initAriaMarkerChangeAnnouncements","isTouching","never","getSuggestion","announce","isCollapsed","_joinWithAdjacentSuggestions","addUser","_model","_createSuggestion","nodeAfter","acceptAllSuggestions","name","type","createdAt","some","marker-count","_removeSuggestion","suggestion","commentThread","originalSuggestionId","isEqual","howMany","getUser","move","element","_suggestionState","createPositionBefore","addComment","detach","attribute","get","_onDiscard","data-suggestion","getSuggestions","_addThreadToSuggestion","change:activeMarkers","isUndo","addRange","subType","set","activeMarkers","_commentsRepository","trackChanges","update:suggestion","_findSuggestions","toUpperCase","isAfter"];var dc,gc;dc=uc,gc=317,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x60");class hc extends t.Plugin{static get requires(){return[fc("0x176"),r.Users,t.PendingActions,ci,fi,_i,ki,Li,Di,Vi,tr,rr,lr,hr,Tr,Rr,Mr,Pr,Hr,Xr,Qr,is,fs,cs,Es,As,Ss,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,vx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0x8")](){return"TrackChangesEditing"}constructor(t){function e(t){return t.map((t=>String[fc("0xc2")](t))).join("")}super(t),this._recordAttributeSuggestionsFromVersion=null,this.set(fc("0x3d"),[]),this.on(fc("0x38"),((e,n,o,i)=>{this[fc("0x1c")][fc("0x99")]((()=>{for(const e of[...i,...o])this[fc("0x1c")][fc("0xe9")].has(e)&&t.editing[fc("0xe")](e)}))})),this._descriptionFactory=new ii(this[fc("0x11a")][fc("0x88")][fc("0xcd")],this[fc("0x11a")].locale),this[fc("0x17c")]=null,this._suggestionFactory=new pc(this.editor),this._suggestions=new Map,this[fc("0x3e")]=t[fc("0xd3")][fc("0x33")]("CommentsRepository"),this[fc("0x89")]=new Set,this[fc("0x1c")]=this[fc("0x11a")][fc("0x88")],this[fc("0x2e")]=new WeakMap,this[fc("0xea")]=!1,this._blockAttributeKeys=new Set([fc("0x60")]),this._inlineAttributeKeys=new Set,t.config[fc("0x113")](fc("0x87"),"default"),this[fc("0xc4")]=t.config[fc("0x33")](fc("0x87")),t[fc("0xa5")][fc("0x113")](fc("0x8a"),!0),this[fc("0x51")]=t[fc("0xa5")][fc("0x33")](fc("0x8a")),this[fc("0x15a")]=new d(t,this._enabledCommands),this[fc("0x14")](),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,52,54])}[fc("0xe3")](){const t=this[fc("0x11a")],n=(t,e)=>{if(fc("0x32")!=t)return fc("0x14a")+t;const n=e[fc("0xad")]("|")[0];return this[fc("0xd4")](n)?fc("0x6e"):fc("0x149")};t[fc("0x58")][fc("0x52")](fc("0x5b")).markerToHighlight({model:fc("0x26"),view:t=>{const{id:e,type:o,subType:i}=this._splitMarkerName(t[fc("0xb")]),r=[fc("0x14e"),n(o,i)];let s=3e3;return this[fc("0x3d")][fc("0x63")](t[fc("0xb")])&&(r.push("ck-suggestion-marker--active"),s=3010),fc("0x6a")==o&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x58")].for(fc("0x125"))[fc("0x17f")]((e=>{e.on(fc("0x8d"),((e,n,o)=>{if(!o.options[fc("0xc")])return;const i=n[fc("0x9b")];if(!i)return;const r=o.mapper[fc("0x96")](i);t[fc("0x88")][fc("0xcd")][fc("0x65")](i)&&r&&!r[fc("0x160")](fc("0xcb"))&&r.is(fc("0xc7"))&&(0,x.toWidget)(r,o[fc("0x16c")])}),{priority:"high"})})),t[fc("0x58")][fc("0x52")](fc("0x125"))[fc("0xd5")]({model:fc("0x26"),view:(t,e)=>{if(!e.options[fc("0xc")])return null;const{type:o,subType:i}=this._splitMarkerName(t.markerName);return{classes:["ck-suggestion-marker",n(o,i)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,i,r)=>{if(!i[fc("0x9b")])return;const{id:s}=this._splitMarkerName(i.markerName);if(n){const t=this[fc("0xca")][fc("0x33")](s),e=this._getAttributeKeyFromSubType(t);if(!this[fc("0xd4")](e))return}if(i[fc("0x9b")].is(fc("0xf0")))return void r[fc("0x140")][fc("0xa4")](i[fc("0x9b")],o[fc("0x20")]);const x=r[fc("0x172")][fc("0x96")](i[fc("0x9b")]);if(i.item.is(fc("0x2d"))&&t.model[fc("0xcd")].isBlock(i[fc("0x9b")])&&!x[fc("0x160")](fc("0x146"))){r[fc("0x16c")][fc("0x10b")]([fc("0x14e"),"ck-suggestion-marker-formatBlock"],x),r.writer[fc("0xed")]("data-suggestion",s,x),r[fc("0x172")][fc("0xbb")](x,i.markerName),e&&(this.activeMarkers[fc("0x63")](i[fc("0xb")])?r.writer.addClass(fc("0x84"),x):r[fc("0x16c")][fc("0x77")](fc("0x84"),x));for(const e of t[fc("0x88")][fc("0x16d")](i.item)[fc("0xf5")]())r[fc("0x140")][fc("0xa4")](e,o[fc("0x20")]);r[fc("0x140")].consume(i.item,o[fc("0x20")])}};t.conversion[fc("0x52")](fc("0x125"))[fc("0x17f")]((t=>{t.on(fc("0x56"),((t,e,n)=>{n[fc("0x0")][fc("0xc")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x106")})})),t.conversion[fc("0x52")](fc("0x125"))[fc("0x17f")]((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n.options[fc("0xc")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t.conversion[fc("0x52")](fc("0x125")).markerToData({model:fc("0x26"),view:(t,e)=>e.options[fc("0xc")]?null:{group:fc("0x26"),name:t[fc("0x1")](11)}}),t[fc("0x58")][fc("0x52")](fc("0xe5")).elementToElement({view:{name:fc("0x26"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x158")+t[fc("0x110")](fc("0xff"))+":"+t.getAttribute("id");return t[fc("0x110")](fc("0x24"))&&(n+=":"+t[fc("0x110")](fc("0x24"))),e[fc("0x150")](fc("0x131"),{"data-name":n})}}),t[fc("0x58")][fc("0x52")](fc("0xe5")).dataToMarker({view:fc("0x26")}),t.conversion[fc("0x52")](fc("0x5b"))[fc("0x17f")]((t=>{t.on(fc("0x56"),o(),{priority:fc("0x14d")})})),t[fc("0x58")][fc("0x52")](fc("0x5b")).add((t=>{t.on(fc("0x136"),o({isAttributeSuggestion:!0}),{priority:fc("0x14d")})})),t[fc("0x58")][fc("0x52")](fc("0x5b"))[fc("0x17f")]((t=>{t.on(fc("0x174"),((t,e,n)=>{const o=n.mapper[fc("0x72")](e[fc("0xb")]);if(o)for(const t of o)t[fc("0x160")](fc("0x146"))||(n.writer[fc("0x77")]([fc("0x14e"),fc("0x6e"),fc("0x84")],t),n[fc("0x16c")][fc("0x45")](fc("0x35"),t),n[fc("0x172")][fc("0x139")](t,e[fc("0xb")]))}),{priority:fc("0x14d")})})),t[fc("0x58")][fc("0x52")](fc("0x5b"))[fc("0x17f")]((t=>{t.on(fc("0xb3"),((t,e,n)=>{const o=n[fc("0x172")][fc("0x72")](e[fc("0xb")]);if(!o)return;const{id:i}=this[fc("0xb4")](e[fc("0xb")]),r=this[fc("0xca")].get(i),s=this[fc("0x144")](r);if(this[fc("0xd4")](s))for(const t of o)t[fc("0x160")]("addHighlight")||(n[fc("0x16c")][fc("0x77")]([fc("0x14e"),fc("0x6e"),"ck-suggestion-marker--active"],t),n[fc("0x16c")][fc("0x45")](fc("0x35"),t),n[fc("0x172")][fc("0x139")](t,e[fc("0xb")]))}),{priority:fc("0x14d")})})),t[fc("0x88")][fc("0x165")].registerPostFixer((e=>{let n=!1;const o=Array[fc("0xd7")](t[fc("0x88")][fc("0x165")][fc("0x109")][fc("0x95")]()),i=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0xb4")](x);if(fc("0x26")!==o)continue;const d=this._suggestions[fc("0x33")](u);if(null!=a[fc("0x11c")]){fc("0xbe")==c&&(n=n||_c(a[fc("0x11c")],x,e,t[fc("0x88")].schema));const o=fc("0x32")==c&&this[fc("0xd4")](l[fc("0xad")]("|")[0]);if(a[fc("0x11c")][fc("0x19")]||"$graveyard"==a.newRange[fc("0x5a")].rootName||fc("0x119")==c&&!yc(a.newRange)||o&&!yc(a.newRange)||fc("0x6a")==c&&(Ec(s=a[fc("0x11c")])||(r=s)[fc("0x13c")][fc("0x117")]==r[fc("0xc9")][fc("0xf4")]&&r.start[fc("0xf6")]))e[fc("0x4d")](x),n=!0;else{if(!d||!d.isInContent)continue;i[fc("0x17f")](d)}}}var r,s;return i[fc("0x14c")]>0&&(n=!!this[fc("0x1a")](i)||n),n})),t.model[fc("0x165")].registerPostFixer((e=>{let n=!1;for(const o of t[fc("0x88")][fc("0x165")][fc("0x109")].getChanges())if(fc("0x13")==o.type)for(const o of this._suggestions.values()){if(o[fc("0x166")]||!o.isInContent)continue;const i="formatBlock"==o.type,r=this[fc("0x144")](o),s=r&&this[fc("0xd4")](r);if(!i&&!s)continue;const x=o.getFirstRange();if(x[fc("0x13c")].parent!=x[fc("0xc9")].parent&&!x[fc("0xc9")].isAtEnd){const i=t[fc("0x88")][fc("0x8e")](x[fc("0x13c")][fc("0x1e")],"end"),r=t[fc("0x88")][fc("0xa6")](x[fc("0x13c")],i);e[fc("0xec")](o[fc("0x7b")](),{range:r}),n=!0}}return n})),t[fc("0x88")].document[fc("0x151")]((t=>this[fc("0x78")](t))),t.model.document.registerPostFixer((t=>!t[fc("0x70")].isLocal&&this[fc("0x128")](t))),t[fc("0x88")][fc("0xe9")].on(fc("0x40"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[fc("0x20")]),n=this._suggestions[fc("0x33")](t);n&&n.addMarkerName(e[fc("0x20")])}})),t.model[fc("0x165")].on(fc("0x102"),(()=>{const e=Array[fc("0xd7")](t[fc("0x88")][fc("0x165")].differ[fc("0x95")]())[fc("0x155")]((t=>fc("0x26")===this[fc("0xb4")](t[fc("0x20")])[fc("0x16b")]));if(0===e[fc("0xc0")])return;e[fc("0x4b")](((t,e)=>{const n=t[fc("0x10f")][fc("0x82")],o=e[fc("0x10f")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start.isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:i}of e){const{id:e}=this[fc("0xb4")](t);if(null===i.oldRange){const e=this[fc("0x53")](t);o[fc("0x17f")](e)}else{const t=this[fc("0xca")].get(e);null!==i[fc("0x11c")]||t[fc("0x12d")]?(n.add(t[fc("0x161")]),o[fc("0x17f")](t)):this._removeSuggestion(t)}}o.size>0&&this._refreshSuggestionsChain(o);for(const t of n)this[fc("0xfe")]("suggestionChanged",t)})),t[fc("0x88")].on(fc("0x47"),((e,n)=>{const o=n[0];if(!this[fc("0xca")].size)return;if(!o.isDocumentOperation)return;if(o[fc("0x70")][fc("0x39")]||!o[fc("0x70")][fc("0x17e")])return;let i,r;switch(o[fc("0x21")]){case fc("0x13"):i=t[fc("0x88")][fc("0x8e")](o[fc("0x9f")]),r=i[fc("0xf9")](o.howMany);break;case fc("0xad"):i=t[fc("0x88")][fc("0x8e")](o.splitPosition),r=t.model.createPositionAt(o.moveTargetPosition);break;case fc("0x2c"):i=t[fc("0x88")][fc("0x8e")](o[fc("0xfc")]),r=i.getShiftedBy(o[fc("0x2a")]);break;default:return}const s=t[fc("0x88")].createRange(i,r);t[fc("0x88")][fc("0x99")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0x41")](s)){if(t[fc("0x166")])continue;if(fc("0xbe")==t[fc("0x21")])continue;const n=this[fc("0x144")](t);if(n&&this[fc("0xd4")](n)&&"split"!=o.type)continue;const x=t.data&&t[fc("0x10f")][fc("0x170")];(fc("0x119")!=t[fc("0x21")]||fc("0xad")==o[fc("0x21")]&&!x)&&(e[fc("0x127")]||fc("0xf2")==t[fc("0x21")]&&e[fc("0x147")]||t[fc("0x5f")]()[fc("0x8b")](s)&&this[fc("0x57")](t,i,r))}}))}),{priority:"lowest"}),t.model.on(fc("0xb2"),((e,n)=>{const o=n[0],i=n[1];if(i&&i[fc("0x97")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[fc("0x15a")].value)return;if(o[fc("0x19")])return;const r=t[fc("0x88")][fc("0xcd")],{start:s,end:x}=o[fc("0x5f")](),a=s[fc("0x1e")]&&r.isLimit(s[fc("0x1e")])?null:r[fc("0x74")](s,"forward"),c=x[fc("0xf4")]&&r[fc("0x11")](x[fc("0xf4")])?null:r[fc("0x74")](x,fc("0xe7")),l=t[fc("0x88")].createRange(a?a[fc("0x13c")]:s,c?c[fc("0xc9")]:x);t[fc("0x88")][fc("0x99")]((e=>{this[fc("0x7f")](l);const n=t[fc("0x88")][fc("0xcd")][fc("0x74")](l.start);o.is(fc("0xf8"))?e.setSelection(n):o[fc("0x5c")](n)})),e[fc("0x6f")]()}),{priority:e.priorities[fc("0x101")]+10}),t[fc("0x88")].on(fc("0x13d"),((e,n)=>{const o=n[n.length-1];o&&o[fc("0x97")]||this[fc("0xea")]||this.trackChangesCommand[fc("0xd8")]&&(t[fc("0x88")][fc("0x99")]((()=>{let o=t[fc("0x88")][fc("0x13d")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0x11e")]=o.clone();const i=o.end.nodeBefore,r=t[fc("0x88")][fc("0xcd")];i&&r[fc("0x12f")](i)&&!r[fc("0x65")](i)&&(o=t[fc("0x88")][fc("0xa6")](o[fc("0x13c")],t[fc("0x88")][fc("0x8e")](i,fc("0xc9")))),this.markInsertion(o)})),e.stop())}),{priority:fc("0x14d")}),this[fc("0x11a")][fc("0x15f")].add(fc("0x3f"),this.trackChangesCommand),this.enableCommand(fc("0x3f"));const i=new p(t,this[fc("0xca")]);t[fc("0x15f")][fc("0x17f")](fc("0x9d"),i),this.enableCommand(fc("0x9d"));const r=new y(t,this[fc("0xca")]);t[fc("0x15f")].add(fc("0x171"),r),this.enableCommand(fc("0x171")),t[fc("0x15f")][fc("0x17f")](fc("0x1f"),new F(t,i,this._suggestions)),this[fc("0x7d")]("acceptAllSuggestions"),t[fc("0x15f")].add(fc("0x50"),new F(t,r,this[fc("0xca")])),this.enableCommand(fc("0x50")),t[fc("0x15f")][fc("0x17f")](fc("0x76"),new j(t,i,this[fc("0xca")])),this[fc("0x7d")]("acceptSelectedSuggestions"),t[fc("0x15f")].add(fc("0x108"),new j(t,r,this._suggestions)),this.enableCommand(fc("0x108"));const s=t[fc("0xd3")][fc("0x33")](fc("0x176"));this[fc("0x7c")](s,fc("0x30"),((t,{threadId:e})=>{const n=this[fc("0xca")][fc("0x33")](e);n&&n[fc("0x27")]&&1===n[fc("0x27")][fc("0xc0")]&&this[fc("0x83")](e,{hasComments:!0})}),{priority:fc("0x129")}),this[fc("0x7c")](s,"removeComment",((t,{threadId:e})=>{const n=this._suggestions[fc("0x33")](e);n&&n[fc("0x27")]&&!n[fc("0x27")][fc("0xc0")]&&this[fc("0x83")](e,{hasComments:!1})}),{priority:fc("0x129")})}set[fc("0x169")](t){if(this[fc("0x17c")])throw new e.CKEditorError(fc("0x148"),this);this[fc("0x17c")]=t}get[fc("0x169")](){return this[fc("0x17c")]}[fc("0x36")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0xca")].values())t&&!e[fc("0x12d")]||n.push(e);return e?n[fc("0x68")]((t=>t[fc("0x15b")]())):n}[fc("0x17")](t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(fc("0xfa"),this);return n}hasSuggestion(t){return this[fc("0xca")].has(t)}[fc("0x4f")](t){const{authorId:e,id:n,attributes:o}=t,[i,r]=t[fc("0x21")][fc("0xad")](":"),s=this[fc("0xca")].get(n)||this[fc("0x1d")](i,r,n,e,o);if(this[fc("0x37")](s),this[fc("0x132")](s,i,r||null,e),s.createdAt=t[fc("0x22")],s[fc("0xa8")]=!0,o&&o[fc("0x93")]){const t=o[fc("0x93")],e=this[fc("0xdf")](t[fc("0x116")]);s[fc("0x66")]=t.createdAt,s.author=e,s.isExternal=!0}else s[fc("0x66")]=t[fc("0x22")];switch(t[fc("0x10f")]&&(s[fc("0x10f")]=t[fc("0x10f")]),t[fc("0xb5")]&&(s[fc("0xb5")]=t[fc("0xb5")]),this[fc("0x17c")]&&this[fc("0x17c")][fc("0x49")]||(s[fc("0x11d")]=!0),this._suggestionState[fc("0x33")](s)){case"notReady":this[fc("0x2e")].set(s,fc("0x168"));break;case fc("0x133"):s.isInContent?(this[fc("0x163")](new Set([s])),this[fc("0x1a")](new Set([s])),this._suggestionState.set(s,fc("0x126")),this[fc("0xfe")](fc("0x111"),s)):this[fc("0x2e")][fc("0x3c")](s,fc("0x178"))}return s}[fc("0x9d")](t){this[fc("0x97")]((()=>{this[fc("0x11a")].model.change((()=>{for(const e of t[fc("0xce")]())e[fc("0x100")]()}))}))}[fc("0x171")](t){this[fc("0x97")]((()=>{this[fc("0x11a")].model[fc("0x99")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[fc("0x17a")]()}))}))}[fc("0x7d")](t,n){const o=this[fc("0x11a")].commands[fc("0x33")](t);if(!o)throw new e.CKEditorError(fc("0x17b"),this,{commandName:t});if(this[fc("0x89")][fc("0x122")](o))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this[fc("0x89")].add(o),n&&o.on(fc("0x13b"),((t,e)=>{this[fc("0x15a")].value&&(this._isForcedDefaultExecutionBlock||(e[fc("0xc0")]>0&&e[e[fc("0xc0")]-1]&&e[e[fc("0xc0")]-1][fc("0x97")]?e.pop():(t[fc("0x11e")]=n(((...t)=>o[fc("0x13b")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x6f")]())))}),{priority:fc("0x14d")})}forceDefaultExecution(t){let n,o;const i=this[fc("0xea")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return i||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[fc("0x135")](o,this),n}markInsertion(t,n=null,o={}){if(t[fc("0x19")])return null;const i=this.editor[fc("0xd3")][fc("0x33")]("Users").me;for(const{suggestion:e,meta:i}of this._findSuggestions(t,fc("0xf2")))if(i[fc("0x147")]){if(!i[fc("0xf3")]){if(i.containsRangeInObject){if(!this._mergeNestedSuggestions||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0x57")](e,t[fc("0x13c")],t[fc("0xc9")]);break}if(n==e[fc("0x3b")]&&Ic(e,o)){const n=e[fc("0x5f")]();return n[fc("0x13c")][fc("0x29")](t[fc("0xc9")])?this[fc("0x67")](e,this._model[fc("0xa6")](t[fc("0x13c")],n[fc("0xc9")])):this[fc("0x67")](e,this[fc("0x1c")].createRange(n[fc("0x13c")],t.end)),e}}const r=(0,e.uid)(),s=i.id,x=n?"insertion:"+n:"insertion",a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x153")](x,r,s,t),a}[fc("0xdd")](t,n="multi",o={}){const i=this[fc("0x11a")][fc("0xd3")][fc("0x33")](fc("0xd9")).me,r=this[fc("0xc8")].getSuggestionCallback("insertion",n,fc("0x3"));for(const e of this[fc("0x36")]())if(e[fc("0x154")].id==i.id&&fc("0xf2")==e[fc("0x21")]&&e[fc("0x3b")]==n&&Ic(e,o)&&(r(e[fc("0x86")](),t)||r(t,e[fc("0x86")]()))){for(const n of t)e[fc("0x3a")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x41")](t,fc("0xf2"))){if(!n[fc("0x147")])continue;if(!this._mergeNestedSuggestions&&n[fc("0x127")])continue;if(!Ic(e,o))continue;let i=!0;for(const n of e[fc("0x86")]())for(const e of t)if(!n[fc("0x8b")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=fc("0xf1")+n,c=this[fc("0x94")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x153")](a,s,x,e,Jo[fc("0x73")]());return c}[fc("0x159")](t,n,o=null,i={}){if(o=o||Tc(n),t[fc("0x19")])return null;if("never"===this[fc("0xc4")]){const e=this[fc("0xc8")].getSuggestionCallback(fc("0xbe"),o,fc("0x100"));return this[fc("0x97")]((()=>e([t],n,i))),null}const r=this[fc("0x11a")].plugins.get(fc("0xd9")).me,s=[];if(fc("0x62")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[fc("0x41")](t,"insertion"))n[fc("0x147")]&&!n[fc("0xbc")]&&s.push(...e[fc("0x86")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0x12")](o);e&&n[fc("0x9e")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][fc("0x103")](t);n[fc("0xa1")](e,1,...o),e+=o[fc("0xc0")]}}return n}(t,s);x[fc("0xc0")]&&this._model[fc("0x99")]((()=>{for(const t of x){const e=this[fc("0xc8")].getSuggestionCallback(fc("0xbe"),o,fc("0x100"));this[fc("0x97")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[fc("0x13c")],a=t[fc("0xc9")];for(const{suggestion:e,meta:n}of this[fc("0x41")](t,"formatInline")){if(!n[fc("0x147")])continue;if(e.subType!=o)continue;if(!Ic(e,i))continue;const r=e.getFirstRange();if(r[fc("0x8b")](t,!0))return null;x=x[fc("0xc6")](r[fc("0x13c")])?x:r[fc("0x13c")],a=a.isAfter(r[fc("0xc9")])?a:r[fc("0xc9")],s?r[fc("0x13c")].isBefore(s.getFirstRange()[fc("0x13c")])?(s.removeMarkers(),s=e):e[fc("0x173")]():s=e}const c=this[fc("0x1c")][fc("0xa6")](x,a);if(s)this[fc("0x67")](s,c);else{const t=(0,e.uid)(),s=r.id;this[fc("0x94")]({id:t,type:fc("0x9c")+o,data:n,createdAt:new Date,authorId:s,attributes:i}),this._addSuggestionMarker(fc("0x9c")+o,t,s,c)}}return null}[fc("0x54")](t,n,o=[],i=null,r={}){n.formatGroupId||(n[fc("0xe6")]=n[fc("0xa")]),n.multipleBlocks=t.is("range"),i=i||Tc(n);const s=o.map((t=>Cc(t,this[fc("0x1c")]))),x=t.is("range")?t:Cc(t,this[fc("0x1c")]);if(fc("0x16")===this._trackFormatChanges){const t=this[fc("0xc8")][fc("0xef")](fc("0x119"),i,fc("0x100"));return this[fc("0x97")]((()=>t([x],n,r))),null}s[fc("0x9e")](x);let a=!0;for(const t of s)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&fc("0x62")!==this[fc("0xc4")]){const t=this[fc("0xc8")][fc("0xef")](fc("0x119"),i,fc("0x100"));return this[fc("0x97")]((()=>t([x],n,r))),null}let c=null,l=x[fc("0x13c")],u=x.end;for(const{suggestion:t,meta:e}of this[fc("0x41")](x,fc("0x119"))){if(!e[fc("0x147")])continue;if(e[fc("0xf3")]||e[fc("0x127")]||e[fc("0xbc")])continue;if(t[fc("0x10f")][fc("0xe6")]!=n[fc("0xe6")])continue;if(!Ic(t,r))continue;const o=t.getFirstRange();if(t[fc("0x3b")]==i){if(o[fc("0x8b")](x,!0))return null;l=l[fc("0xc6")](o[fc("0x13c")])?l:o[fc("0x13c")],u=u[fc("0x43")](o[fc("0xc9")])?u:o[fc("0xc9")],c?o[fc("0x13c")][fc("0xc6")](c[fc("0x5f")]()[fc("0x13c")])?(c.removeMarkers(),c=t):t[fc("0x173")]():c=t}else{const e=x[fc("0x12")](o);this._cutOutSuggestionMarker(t,e)}}const d=this[fc("0x11a")].plugins[fc("0x33")](fc("0xd9")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x67")](c,this._model[fc("0xa6")](l,u)),c;{const t=this[fc("0x94")]({id:g,type:fc("0x6")+i,data:n,createdAt:new Date,authorId:f,attributes:r});return this[fc("0x153")](fc("0x6")+i,g,f,this._model[fc("0xa6")](l,u)),t}}[fc("0x12b")](t,n,o=[],i=null,r={}){n.formatGroupId||(n[fc("0xe6")]=n[fc("0xa")]);const s=t[0];n[fc("0x170")]=s.is(fc("0x10c")),i=i||Tc(n);const x=o[fc("0x68")]((t=>Cc(t,this[fc("0x1c")]))),a=s.is("range")?t:t[fc("0x68")]((t=>Cc(t,this[fc("0x1c")])));if(fc("0x16")===this._trackFormatChanges){const t=this[fc("0xc8")][fc("0xef")](fc("0x119"),i,fc("0x100"));return this[fc("0x97")]((()=>t(a,n,r))),null}x[fc("0x9e")](...a);let c=!0;for(const t of x)if(!this[fc("0x80")](t)){c=!1;break}if(c&&"always"!==this._trackFormatChanges){const t=this[fc("0xc8")][fc("0xef")](fc("0x119"),i,fc("0x100"));return this[fc("0x97")]((()=>t(a,n,r))),null}const l=this[fc("0x11a")][fc("0xd3")].get("Users").me;for(const t of this.getSuggestions()){if(t[fc("0x154")].id!=l.id)continue;if(fc("0x119")!=t[fc("0x21")]||t[fc("0x10f")][fc("0xe6")]!=n[fc("0xe6")])continue;if(!Ic(t,r))continue;const e=t[fc("0x3b")]==i;for(let n=0;n<a.length;n++){const o=a[n];for(const i of t[fc("0x9")]()){const r=i[fc("0xcc")]();if(o[fc("0x29")](r)){e?(a.splice(n,1),n--):t[fc("0x4d")](i[fc("0x20")]);break}}}}if(0==a.length)return null;const u=this[fc("0xc8")][fc("0xef")](fc("0x119"),i,fc("0x3"));for(const t of this[fc("0x36")]())if(t.author.id==l.id&&"formatBlock"==t.type&&t[fc("0x10f")].formatGroupId==n[fc("0xe6")]&&t.subType==i&&Ic(t,r)&&(u(t[fc("0x86")](),a)||u(a,t[fc("0x86")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0x6")+i,m=this[fc("0x94")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(f,d,g,t,Jo[fc("0x73")]());return m}[fc("0x7f")](t,n=null,o={}){if(t.isCollapsed)return null;const i=this.editor[fc("0xd3")][fc("0x33")](fc("0xd9")).me,r=new s.LiveRange(t[fc("0x13c")],t[fc("0xc9")]);for(const{suggestion:t,meta:e}of this[fc("0x41")](r,"insertion"))if(e[fc("0x147")]&&!e[fc("0xf3")])if(t[fc("0x166")]){const e=t[fc("0x86")]()[fc("0x155")]((t=>fc("0x4c")!=t.root[fc("0x8f")]));if(e.every((t=>r[fc("0x8b")](t,!0)))&&t[fc("0x17a")](),e[fc("0x23")]((t=>t.containsRange(r,!0)))){const t=this[fc("0xc8")][fc("0xef")](fc("0x6a"),n,fc("0x100"));return this[fc("0x97")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[fc("0x5f")]());null!==e&&t[fc("0x34")]([e],null,o)}if(r[fc("0x31")](),r[fc("0x19")]||fc("0x4c")==r[fc("0x5a")].rootName)return null;let x=null,a=r[fc("0x13c")],c=r.end;const l=this._findSuggestions(r,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[fc("0x1c")][fc("0xa6")](a,c);if(e[fc("0x147")]&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e.isInsideObject))if(t[fc("0x166")]){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0x86")]()){if(o[fc("0x8b")](n,!0))return t;n[fc("0x8b")](o)||(e=!1)}e&&t[fc("0x17a")]()}else{const e=t[fc("0x5f")]();if(e[fc("0x8b")](n,!0))return t;if(!Ic(t,o)){n[fc("0x8b")](e)?t[fc("0x173")]():e.containsPosition(a)?a=e.end:e[fc("0x9a")](c)&&(c=e.start);continue}a=a[fc("0xc6")](e.start)?a:e[fc("0x13c")],c=c[fc("0x43")](e[fc("0xc9")])?c:e[fc("0xc9")],o=Object.assign({},t[fc("0xb5")]),x?e[fc("0x13c")][fc("0xc6")](x[fc("0x5f")]().start)?(x.removeMarkers(),x=t):t[fc("0x173")]():x=t}}if(x)return this._setSuggestionRange(x,this[fc("0x1c")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this._model[fc("0xa6")](a,c),s=i.id,x=n?fc("0xb8")+n:"deletion",l=this[fc("0x94")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x153")](x,t,s,r),l}}[fc("0x134")](t,n=fc("0x105"),o={}){const i=this[fc("0x11a")][fc("0xd3")][fc("0x33")](fc("0xd9")).me,r=t[fc("0x68")]((t=>new s.LiveRange(t[fc("0x13c")],t[fc("0xc9")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x41")](r,fc("0xf2")))e[fc("0x147")]&&!e.isNextTo&&x.add(t);for(const e of x)if(e[fc("0x166")]){const i=e[fc("0x86")]();if((!e[fc("0xb5")]||!e[fc("0xb5")][fc("0x114")])&&i.every((t=>r[fc("0x23")]((e=>e[fc("0x8b")](t,!0)))))&&e.discard(),r[fc("0x112")]((t=>i[fc("0x23")]((e=>e.containsRange(t,!0)))))){const e=this[fc("0xc8")][fc("0xef")](fc("0x6a"),n,"accept");return this[fc("0x97")]((()=>e(t,null,o))),null}}else{const t=e[fc("0x5f")]();if(r[fc("0x23")]((e=>e[fc("0x8b")](t,!0)))&&e[fc("0x17a")](),r[fc("0x112")]((e=>t[fc("0x8b")](e,!0)))){const t=this[fc("0xc8")][fc("0xef")]("deletion",n,"accept");return this[fc("0x97")]((()=>t(r,null,o))),null}}const a=this[fc("0xc8")][fc("0xef")](fc("0x6a"),n,fc("0x3"));let c=null;for(const t of this.getSuggestions())if(t.author.id==i.id&&t.isInContent&&fc("0x6a")==t[fc("0x21")]&&t[fc("0x3b")]==n&&Ic(t,o)&&(a(t[fc("0x86")](),r)||a(r,t.getRanges())))if(c){if(t[fc("0x27")]&&t[fc("0x27")][fc("0xc0")])continue;for(const e of t[fc("0x86")]())c.isIntersectingWithRange(e)||c[fc("0x3a")](e);t[fc("0x173")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[fc("0x3a")](e)}if(c)return c;x[fc("0x5")]();for(const{suggestion:t,meta:e}of this[fc("0x41")](r,fc("0x6a")))e[fc("0x147")]&&(this[fc("0x51")]||!e[fc("0x127")]&&!e[fc("0xbc")])&&Ic(t,o)&&x[fc("0x17f")](t);for(const t of x){const e=t.getRanges();if((!o||!o[fc("0x114")])&&r[fc("0x112")]((t=>e[fc("0x23")]((e=>e.containsRange(t,!0))))))return t;(!t[fc("0xb5")]||!t[fc("0xb5")][fc("0x114")])&&e.every((t=>r.some((e=>e[fc("0x8b")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=i.id,d=fc("0xb8")+n,g=this[fc("0x94")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t.detach(),t[fc("0x19")]||fc("0x4c")==t[fc("0x5a")][fc("0x8f")]||this[fc("0x153")](d,l,u,t,Jo.getMultiRangeId());return g}[fc("0x130")](t,n,o,i,r){if(t[fc("0x19")])return[];if(fc("0x16")===this[fc("0xc4")])return[];const s=this[fc("0x11a")][fc("0xd3")].get(fc("0xd9")).me.id,x=Array[fc("0xd7")](this[fc("0xca")][fc("0x11b")]())[fc("0x155")]((e=>"attribute"==e[fc("0x21")]&&e.data[fc("0x81")]==n&&e[fc("0x138")](t)));if("default"===this[fc("0xc4")]){const e=this[fc("0x41")](t,"insertion")[fc("0x155")]((({meta:t})=>t[fc("0x147")]&&!t[fc("0xbc")]&&!t[fc("0xf3")])).map((({suggestion:t})=>t));x[fc("0x120")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0x32")==t[fc("0x21")]?t[fc("0x10f")][fc("0x157")]:void 0,n=t.getFirstRange(),r=Array[fc("0xd7")](a[fc("0xc5")]()).find((t=>t[fc("0x11f")](n)));r&&(a.delete(r),r.getDifference(n)[fc("0x162")]((t=>{a.set(t,o)})),fc("0xf2")!=t.type&&e!=i&&a[fc("0x3c")](r[fc("0x12")](n),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:i};n[fc("0xc0")]>37&&console[fc("0x14b")](fc("0x143"),{key:n});const l=(fc("0x10a")+(n+"|")+Tc({newValue:i})).substring(0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:r});c[fc("0x9e")](u),this[fc("0x153")](l,x,s,t)}return c}_registerBlockAttribute(t){this[fc("0x98")][fc("0x17f")](t)}[fc("0xbf")](t){this[fc("0xde")][fc("0x17f")](t)}[fc("0x164")](t,e=[],n=[]){this[fc("0x7d")](t,((t,...e)=>{this[fc("0x13a")]((()=>{t(...e)}))}));for(const t of e)this[fc("0xbf")](t);for(const t of n)this[fc("0xaf")](t)}[fc("0x67")](t,e){const n=t[fc("0x7b")]();this[fc("0x1c")][fc("0x99")]((t=>{t[fc("0xec")](n,{range:e})}))}[fc("0x37")](t){const e=t.id,n=this[fc("0x11a")].config[fc("0x33")](fc("0xdc"));this[fc("0x3e")][fc("0xa7")](e)||this._commentsRepository[fc("0xd0")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0x3e")][fc("0x90")](e);o[fc("0xe0")](fc("0x121")),o.isRemovable=!1,t[fc("0x27")]=o}[fc("0x132")](t,n,o,i){if(t[fc("0x21")]!=n||t[fc("0x3b")]!=o||t[fc("0x92")].id!=i)throw this.editor[fc("0xa2")](fc("0x115")),new e.CKEditorError(fc("0x115"),this)}[fc("0x6b")](t,n){const o=t[fc("0x5f")]();if(n[fc("0x29")](o))t[fc("0x173")]();else if(o[fc("0x8b")](n)){const i=this[fc("0x1c")][fc("0x8e")](n[fc("0x13c")][fc("0xf4")],fc("0xc9"));this[fc("0x67")](t,this[fc("0x1c")][fc("0xa6")](o[fc("0x13c")],i));const r=(0,e.uid)(),s=t[fc("0x92")].id,x=t[fc("0x21")]+":"+t[fc("0x3b")];this[fc("0x94")]({id:r,type:x,createdAt:new Date,authorId:s,data:t[fc("0x10f")],attributes:t[fc("0xb5")]});const a=this._model[fc("0x8e")](n[fc("0xc9")][fc("0x117")],"after"),c=this._model.createRange(a,o[fc("0xc9")]);this[fc("0x153")](x,r,s,c)}else if(o[fc("0x9a")](n[fc("0x13c")])){const e=this[fc("0x1c")][fc("0x8e")](n[fc("0x13c")][fc("0xf4")],fc("0xc9"));this[fc("0x67")](t,this._model[fc("0xa6")](o[fc("0x13c")],e))}else{const e=this[fc("0x1c")][fc("0x8e")](n[fc("0xc9")][fc("0x117")],fc("0x16f"));this[fc("0x67")](t,this[fc("0x1c")][fc("0xa6")](e,o[fc("0xc9")]))}}[fc("0x80")](t){for(const{suggestion:e,meta:n}of this[fc("0x41")](t,fc("0xf2"))){if(!n[fc("0x147")])continue;const o=e[fc("0x86")]();for(const e of o)if(!t[fc("0x103")](e)[fc("0xc0")])return!0}return!1}[fc("0x145")](t){const n=this[fc("0x11a")][fc("0xd3")][fc("0x33")](fc("0xd9"))[fc("0x2b")](t);if(!n)throw new e.CKEditorError(fc("0xd6"),this);return n}_getExternalAuthor(t){const e=this[fc("0x11a")][fc("0xd3")][fc("0x33")](fc("0xd9")),n=(0,r.hashObject)(fc("0xf7")+t);return e[fc("0x2b")](n)||e[fc("0x1b")]({id:n,name:t})}[fc("0x1d")](t,e,n,o,i){const r=this[fc("0x145")](o),s=this[fc("0xc8")][fc("0x177")](t,e,n,r,i,(t=>this[fc("0x83")](n,{attributes:t})));return this[fc("0x7c")](s,fc("0x100"),(()=>{this._updateSuggestionData(n,{state:fc("0xb7")})}),{priority:"high"}),this[fc("0x7c")](s,fc("0x17a"),(()=>{this[fc("0x83")](n,{state:fc("0x4")})}),{priority:fc("0x14d")}),this._suggestions[fc("0x3c")](n,s),this[fc("0x2e")][fc("0x3c")](s,fc("0x6c")),s}[fc("0xb4")](t){const e=t[fc("0xad")](":");return{group:e[0],type:e[1],subType:e[fc("0xc0")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[fc("0xc0")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[fc("0x57")](t,n,o){const i=t[fc("0x5f")](),r=i[fc("0x13c")],s=i[fc("0xc9")];this[fc("0x67")](t,this[fc("0x1c")][fc("0xa6")](r,n));const x=(0,e.uid)(),a=t[fc("0x92")].id,c=t[fc("0x21")]+(t[fc("0x3b")]?":"+t.subType:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0xb5")],data:t[fc("0x10f")]});const l=this._getAttributeKeyFromSubType(t);("formatBlock"==t.type||l&&this[fc("0xd4")](l))&&(o=this[fc("0x1c")][fc("0x2f")](o[fc("0x117")])),this[fc("0x153")](c,x,a,this[fc("0x1c")][fc("0xa6")](o,s))}[fc("0x41")](t,e=null){const n=[],o=this[fc("0x11a")].plugins[fc("0x33")](fc("0xd9")).me;Array[fc("0x13f")](t)||(t=[t]);for(const i of this[fc("0x36")]()){if(!i[fc("0x12d")])continue;if(e&&i[fc("0x21")]!=e)continue;let r=!1;for(const e of i[fc("0x86")]()){for(const s of t){const t=s[fc("0x13c")].isEqual(e[fc("0xc9")])||s[fc("0xc9")].isEqual(e[fc("0x13c")]);if(t||s[fc("0x12")](e)){const x=s[fc("0x8b")](e)&&bc(this[fc("0x1c")][fc("0xcd")],e[fc("0x13c")],s),a=e[fc("0x8b")](s)&&bc(this[fc("0x1c")][fc("0xcd")],s[fc("0x13c")],e);n.push({suggestion:i,meta:{isOwn:o==i[fc("0x154")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[fc("0x153")](t,e,n,o,i){this[fc("0x1c")].change((r=>{let s=fc("0x158")+t+":"+e+":"+n;i&&(s=s+":"+i),r[fc("0xe2")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0x25")](t){const e=t[fc("0xba")],n=t[fc("0xab")];t[fc("0xba")]=null,t[fc("0xab")]=null,null!=e&&(e.next=n),null!=n&&(n[fc("0xba")]=e),"ready"==this[fc("0x2e")][fc("0x33")](t)&&(this[fc("0x2e")].set(t,"removed"),this.fire(fc("0xa9"),t,e,n))}[fc("0x94")](t){const n=t.id,o=this.addSuggestionData(t);if(this._adapter&&this[fc("0x17c")][fc("0x49")]){const i=this[fc("0x11a")][fc("0xd3")][fc("0x33")](fc("0x124")),r=o.hasComments,s=o.subType?o[fc("0x21")]+":"+o.subType:o[fc("0x21")],x=this[fc("0x11a")].locale,a=i[fc("0x17f")](Qo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:s,hasComments:r,data:t[fc("0x10f")]||null,originalSuggestionId:t[fc("0x28")]||null,attributes:o.attributes};this._adapter.addSuggestion(c)[fc("0x64")]((t=>{o[fc("0x11d")]=!0,i.remove(a),t&&t[fc("0x22")]&&(this[fc("0xca")][fc("0x33")](n)[fc("0x22")]=t[fc("0x22")])}))[fc("0xc3")]((t=>{throw(0,e.logWarning)(fc("0x118")),this[fc("0x11a")][fc("0x88")][fc("0x6d")]({isUndoable:!1},(()=>{o[fc("0x17a")]()})),o[fc("0xa3")](),this[fc("0xca")][fc("0x5e")](o.id),this[fc("0x2e")][fc("0x5e")](o),t}))}return o}[fc("0xd4")](t){return this[fc("0x98")].has(t)}[fc("0x144")](t){return fc("0x32")==t.type&&t[fc("0x3b")][fc("0xad")]("|")[0]}[fc("0x83")](t,e){const n=this[fc("0x11a")].plugins[fc("0x33")]("PendingActions"),o=this[fc("0x17")](t);if(this[fc("0x17c")]&&this[fc("0x17c")].updateSuggestion)if(o[fc("0x11d")]){const o=n.add(Qo(this[fc("0x11a")].locale,fc("0xe4")));this[fc("0x17c")].updateSuggestion(t,e).then((()=>{n.remove(o)}))}else o.on(fc("0x179"),(()=>{this[fc("0x83")](t,e)}))}[fc("0xdb")](t){if(!this[fc("0x17c")]||!this._adapter[fc("0x17")])throw new e.CKEditorError(fc("0xbd"),this);return this[fc("0x17c")].getSuggestion(t)}[fc("0x53")](t){const{id:e,type:n,subType:o,authorId:i}=this._splitMarkerName(t),r=this[fc("0xca")].get(e)||this._createSuggestion(n,o,e,i,{});switch(this[fc("0x132")](r,n,o,i),this[fc("0x2e")].get(r)){case fc("0x6c"):this[fc("0xdb")](e)[fc("0x64")]((t=>{let n=Promise[fc("0xee")]();t[fc("0x71")]&&(n=this._commentsRepository.fetchCommentThread({channelId:this[fc("0x11a")][fc("0xa5")][fc("0x33")](fc("0xdc")),threadId:e})),n[fc("0x64")]((()=>{this[fc("0x4f")](t)[fc("0x11d")]=!0}))})),this._suggestionState[fc("0x3c")](r,fc("0x133"));break;case"removed":this[fc("0x83")](e,{state:fc("0x12a")});case fc("0x168"):this[fc("0x2e")][fc("0x3c")](r,fc("0x126")),this[fc("0xfe")](fc("0x111"),r);break;case fc("0x126"):this[fc("0xfe")](fc("0x2"),r)}return r[fc("0x61")](t),r}_refreshSuggestionsChain(t){const e=Array[fc("0xd7")](t),n=e[fc("0x155")]((t=>fc("0x32")==t[fc("0x21")]));this[fc("0x10")](n);const o=e[fc("0x155")]((t=>!t.isMultiRange&&fc("0x32")!=t[fc("0x21")])),i=this[fc("0x36")]({skipNotAttached:!0})[fc("0x155")]((t=>!t.isMultiRange&&fc("0x32")!=t.type)),r=i[fc("0x155")]((e=>!t[fc("0x122")](e))),s=new Map(i[fc("0x68")]((t=>[t,this[fc("0xc8")][fc("0xef")](t.type,t[fc("0x3b")],fc("0xfb"))]))),x=new Map(i[fc("0x68")]((t=>[t,t.getFirstRange()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0xc0")];t++)u(o[t],o,t+1);for(let t=0;t<o.length;t++)u(o[t],r,0);const l=new Set;for(let t=0;t<o[fc("0xc0")];t++){const e=o[t];!c[fc("0x122")](e)&&e.previous&&(l[fc("0x17f")](e[fc("0xba")]),e.previous[fc("0xab")]===e&&(e[fc("0xba")][fc("0xab")]=null),e[fc("0xba")]=null),!a.has(e)&&e.next&&(l[fc("0x17f")](e[fc("0xab")]),e.next.previous===e&&(e.next[fc("0xba")]=null),e.next=null)}function u(t,e,n){for(let o=n;o<e[fc("0xc0")];o++){const n=d(t,e[o]);n&&(n[0][fc("0xab")]=n[1],n[1][fc("0xba")]=n[0],a[fc("0x17f")](n[0]),c[fc("0x17f")](n[1]))}}function d(t,e){if(t[fc("0x154")].id!==e[fc("0x154")].id)return null;const n=s[fc("0x33")](t)(t,e,x[fc("0x33")](t),x[fc("0x33")](e));return n&&s.get(e)(t,e,x[fc("0x33")](t),x[fc("0x33")](e))?n[1][fc("0x27")]&&n[1][fc("0x27")][fc("0xc0")]?null:n:null}l.size&&this._refreshSuggestionsChain(l)}_refreshAttributeSuggestionsChain(t){if(0==t[fc("0xc0")])return;const e=this[fc("0x36")]({skipNotAttached:!0})[fc("0x155")]((t=>fc("0x32")==t[fc("0x21")]&&t[fc("0xa8")])),n=[],o=new Map;for(const t of e){const e=(0,r.hashObject)(t[fc("0xb5")]);o[fc("0x122")](e)||(o.set(e,n[fc("0xc0")]),n[fc("0x9e")]([]));const i=o[fc("0x33")](e);n[i][fc("0x9e")](t)}!function(){n[fc("0x4b")](((t,e)=>{const n=t[0][fc("0x22")],o=e[0][fc("0x22")];return n==o?t[0][fc("0xb5")][fc("0x59")]<e[0][fc("0xb5")][fc("0x59")]?-1:1:n<o?-1:1}));for(const t of n)t[fc("0x4b")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0xc0")];t++){if(0==n[t][fc("0xc0")])continue;const e=[];for(let o=t+1;o<n.length;o++)0!=n[o].length&&i(n[t],n[o])&&e[fc("0x9e")](o);for(const o of e)n[t]=n[t][fc("0xd")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0xc0")];e++)t[e][fc("0xab")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0xc0")];e++)t[e][fc("0xba")]=t[e-1]||null;function i(t,e){if(t[0][fc("0x154")]!==e[0][fc("0x154")])return!1;if(n=t[0],o=e[0],(n[fc("0x71")]||o[fc("0x71")])&&(n[fc("0x71")]&&o[fc("0x71")]||!(n[fc("0x71")]&&o[fc("0x22")]<n[fc("0x27")][fc("0x15e")][fc("0x33")](0)[fc("0x22")]||o[fc("0x71")]&&n.createdAt<o.commentThread[fc("0x15e")][fc("0x33")](0)[fc("0x22")])))return!1;var n,o;const i=lc(t[0][fc("0xb5")],"groupId"),r=lc(e[0][fc("0xb5")],fc("0x59"));return!!Go(i,r)&&(!!t[fc("0x112")]((t=>e[fc("0x23")]((e=>t[fc("0x5f")]()[fc("0x29")](e[fc("0x5f")]())))))&&e[fc("0x112")]((e=>t[fc("0x23")]((t=>e[fc("0x5f")]()[fc("0x29")](t.getFirstRange()))))))}}[fc("0x1a")](t){const e=Array.from(t),n=this.getSuggestions({skipNotAttached:!0}),o=n.filter((e=>!t.has(e))),i=new Map(e[fc("0x68")]((t=>[t,this[fc("0xc8")][fc("0xef")](t[fc("0x21")],t.subType,fc("0x3"))]))),r=new Map(n[fc("0x68")]((t=>[t,t[fc("0x86")]()])));for(let t=0;t<e[fc("0xc0")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0xc0")];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("0xc0")];s++){const o=n[s];if(o[fc("0x21")]!==e.type||o[fc("0x154")].id!==e[fc("0x154")].id||o.subType!==e[fc("0x3b")])continue;if(!kc(e,o))continue;if(fc("0x32")==e[fc("0x21")]&&e[fc("0x10f")][fc("0x157")]!=o[fc("0x10f")][fc("0x157")])continue;if(fc("0x32")==e[fc("0x21")]&&t[fc("0xd4")](e[fc("0x10f")].key))continue;const x=i[fc("0x33")](e),a=r[fc("0x33")](e),c=r.get(o),l=e[fc("0x27")]&&e.commentThread[fc("0xc0")],u=o.commentThread&&o.commentThread.length;if(!l&&x(c,a))return t[fc("0x141")](o,e),r[fc("0x5e")](e),!0;if(!u&&x(a,c))return t[fc("0x141")](e,o),r.delete(o),!0}return!1}}[fc("0x141")](t,e){if(t[fc("0x166")])for(const n of e[fc("0x86")]())t[fc("0x3a")](n);else{const n=e[fc("0x5f")]()[fc("0xc9")];this[fc("0x67")](t,this[fc("0x1c")][fc("0xa6")](t[fc("0x5f")]()[fc("0x13c")],n))}e[fc("0x173")]()}[fc("0x175")](t,e){const n=t[fc("0xe8")](fc("0x15d"))||t[fc("0xe8")](fc("0x32"))?"FORMATTING":t[fc("0x42")]();return Qo(this[fc("0x11a")][fc("0xcf")],e+"_"+n+fc("0x7e"))}[fc("0x14")](){const t=this.editor;(0,r.surroundingMarkersDetector)(this[fc("0x1c")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0xb4")](t[fc("0x20")]);if("suggestion"===e){o.push(this[fc("0x175")](n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this._splitMarkerName(t[fc("0x20")]);if("suggestion"===e){o[fc("0x9e")](this._getMarkerAnnouncementText(n,"ENTER"));break}}o[fc("0xc0")]&&t.ui[fc("0xda")][fc("0x18")](fc("0x3f"),o[fc("0x3")](" "))}))}_processAttributeChanges(t){if(null!==this._recordAttributeSuggestionsFromVersion)return!1;const e=this.editor,n=e.model[fc("0x165")][fc("0x109")].getChanges();if(0==n[fc("0xc0")])return!1;const o=[],i=n.filter((t=>fc("0x32")==t[fc("0x21")])),r=n.filter((t=>fc("0x13")==t[fc("0x21")]&&fc("0xf")!=t[fc("0x20")])),s=n.filter((t=>fc("0xeb")==t.type&&fc("0xf")!=t[fc("0x20")]));for(const t of i)o.push({key:t.attributeKey,newValue:t[fc("0x10d")],oldValue:t[fc("0xa0")],range:(x=t[fc("0x10c")],null==x[fc("0xc9")][fc("0xf4")]&&x[fc("0xc9")][fc("0x117")]==x[fc("0x13c")][fc("0x1e")]?Cc(x.start[fc("0x1e")],e[fc("0x88")]):x)});var x;for(const t of r){const n=s[fc("0x4e")]((e=>e[fc("0x9f")][fc("0x29")](t[fc("0x9f")])));n&&o.push({key:"$elementName",newValue:t[fc("0x20")],oldValue:n[fc("0x20")],range:e[fc("0x88")].createRangeOn(t[fc("0x9f")][fc("0x1e")])})}return 0!=o[fc("0xc0")]&&this[fc("0xe1")](t,o)}_processAttributeSuggestions(t){let e=!1;const n=this[fc("0x11a")].model[fc("0x165")][fc("0x109")][fc("0x95")]()[fc("0x155")]((t=>t.data[fc("0x11c")]&&t[fc("0x20")][fc("0xe8")](fc("0xfd"))));for(const o of n){const{subType:n,id:i}=this[fc("0xb4")](o[fc("0x20")]),r=n[fc("0xad")]("|")[0];for(const n of this[fc("0x36")]({skipNotAttached:!0}))n.id!=i&&fc("0x32")==n[fc("0x21")]&&n[fc("0x10f")]&&n.data[fc("0x81")]==r&&n[fc("0x5f")]()[fc("0x11f")](o[fc("0x10f")][fc("0x11c")])&&(this[fc("0x5d")](n,o.data.newRange,t),e=!0)}return e}[fc("0x13a")](t){if(null!==this[fc("0x16e")])return void t();const n=this.editor;this[fc("0x16e")]=n[fc("0x88")][fc("0x165")][fc("0xd1")],t();const o=new Map;for(const t of n[fc("0x88")][fc("0x165")].history[fc("0x17d")](this[fc("0x16e")]))if([fc("0x8c"),"addAttribute",fc("0x45"),fc("0x167")].includes(t.type)){const e=t[fc("0x70")],n=o.get(e)||[];n[fc("0x9e")](t),o[fc("0x3c")](e,n)}this[fc("0x16e")]=null;for(const[t,i]of o){const o=(0,e.uid)();n[fc("0x88")].enqueueChange(t,(t=>{const e=[];for(const t of i){let i,r,s,x;if(fc("0x8c")==t.type){const e=t;i=Cc(e[fc("0x9f")][fc("0x1e")],n[fc("0x88")]),r=fc("0x60"),s=e[fc("0x7")],x=e[fc("0x10e")]}else{const e=t,o=this[fc("0xd4")](e[fc("0x81")]),a=this[fc("0xde")].has(e[fc("0x81")]);if(!o&&!a)continue;i=o?Cc(e.range[fc("0x13c")][fc("0x1e")],n.model):e[fc("0x10c")],r=e[fc("0x81")],s=fc("0x45")==t[fc("0x21")]?void 0:e[fc("0x4a")],x=e[fc("0x157")]}this.markAttributeChange(i,r,x,s,{groupId:o}),e[fc("0x9e")]({range:i,key:r,newValue:s,oldValue:x})}this[fc("0xe1")](t,e)}))}}[fc("0xe1")](t,e){if(0==e[fc("0xc0")])return!1;let n=!1;for(const o of e){const e=this[fc("0x41")](o[fc("0x10c")],fc("0x32"))[fc("0x155")]((t=>!t[fc("0xac")].isNextTo))[fc("0x68")]((t=>t.suggestion)),i=(0,r.hashObject)({newValue:o.newValue});e[fc("0x155")]((t=>{const[e,n]=t[fc("0x3b")].split("|");return e==o.key&&n!=i}))[fc("0x162")]((e=>{this[fc("0x5d")](e,o[fc("0x10c")],t),n=!0}))}return n}[fc("0x5d")](t,e,n){const o=t.getFirstRange().getDifference(e);0!==o[fc("0xc0")]?1!==o[fc("0xc0")]?this[fc("0x57")](t,e.start,e.end):this[fc("0x67")](t,o[0]):n.removeMarker(t[fc("0x7b")]())}}class pc{constructor(t){this[fc("0x142")]=t,this._model=t[fc("0x88")],this[fc("0xae")]=new Map,this[fc("0x44")]=new Map,this[fc("0x48")]()}[fc("0x177")](t,e,n,o,i,r){return new Jo(this[fc("0x1c")],{type:t,subType:e,id:n,author:o,creator:o,attributes:i,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,"accept")(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,fc("0x17a"))(...n)})}[fc("0x14f")](t,e,n,o){const i=t+":"+e+":"+n;this._customCallbacks[fc("0x3c")](i,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[fc("0xae")][fc("0x33")](o)||this[fc("0x44")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t.sort(((t,e)=>t[fc("0x13c")][fc("0xc6")](e.start)?1:-1)),this._model[fc("0x99")]((e=>{for(const n of t){let t;t=n[fc("0xc9")][fc("0xf6")]&&n[fc("0xc9")][fc("0x117")]==n.start[fc("0x1e")]?e[fc("0x12c")](n[fc("0x13c")][fc("0x1e")],"on"):e[fc("0x12c")](n),this._model[fc("0xb2")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[fc("0x99")]((n=>{const{commandName:o,commandParams:i=[]}=e,r=t[fc("0x68")]((t=>(Ec(t)&&(t=this[fc("0x1c")][fc("0xa6")](t[fc("0xc9")])),t))).filter((t=>fc("0x4c")!==t[fc("0x5a")][fc("0x8f")]));if(r.length<1)return;const x=Array[fc("0xd7")](this[fc("0x1c")][fc("0x165")][fc("0xf0")][fc("0x86")]())[fc("0x68")]((t=>s.LiveRange[fc("0x16a")](t)));n[fc("0xc1")](r);for(const t of this[fc("0x142")][fc("0x15f")].commands())t[fc("0xd2")]();i[fc("0x9e")]({forceDefaultExecution:!0}),this[fc("0x142")][fc("0x13b")](o,...i);const a=x.filter((t=>fc("0x4c")!=t[fc("0x5a")].rootName));a[fc("0xc0")]>0&&n.setSelection(a);for(const t of x)t[fc("0x31")]()}))},o=(t,e)=>1==t[fc("0xc0")]&&1==e[fc("0xc0")]&&t[0].end[fc("0x29")](e[0].start),i=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x1c")])?[t,e]:Ac(e,t,o,n,this[fc("0x1c")])?[e,t]:null;this[fc("0x44")][fc("0x3c")]("insertion:accept",t),this._defaultCallbacks[fc("0x3c")](fc("0xb6"),e),this._defaultCallbacks[fc("0x3c")](fc("0x7a"),o),this[fc("0x44")][fc("0x3c")](fc("0x46"),i),this._defaultCallbacks.set("deletion:accept",e),this[fc("0x44")].set(fc("0x137"),t),this._defaultCallbacks[fc("0x3c")](fc("0x13e"),o),this._defaultCallbacks[fc("0x3c")](fc("0x180"),i),this[fc("0x44")][fc("0x3c")]("formatInline:accept",n),this[fc("0x44")].set(fc("0xb9"),t),this._defaultCallbacks[fc("0x3c")]("formatInline:join",o),this[fc("0x44")][fc("0x3c")](fc("0x79"),t),this[fc("0x44")][fc("0x3c")](fc("0x91"),n),this[fc("0x44")][fc("0x3c")](fc("0x123"),t),this._defaultCallbacks[fc("0x3c")](fc("0x85"),o),this[fc("0x44")][fc("0x3c")](fc("0x75"),t),this[fc("0x44")][fc("0x3c")](fc("0x55"),t),this[fc("0x44")][fc("0x3c")](fc("0x12e"),((t,e)=>{if(!e)return;const n=this[fc("0x142")].plugins.get(hc);this[fc("0x1c")][fc("0x99")]((o=>{if(fc("0x60")==e[fc("0x81")])for(const n of t){const t=n.start[fc("0x1e")],i=e.oldValue;o.rename(t,i)}else if(n[fc("0xd4")](e[fc("0x81")]))for(const n of t)void 0!==e[fc("0x157")]?o[fc("0xed")](e[fc("0x81")],e.oldValue,n[fc("0x13c")][fc("0x1e")]):o[fc("0x45")](e.key,n.start.nodeAfter);else for(const n of t)e[fc("0x157")]?o[fc("0xed")](e[fc("0x81")],e[fc("0x157")],n):o.removeAttribute(e.key,n)}))})),this[fc("0x44")].set(fc("0xb1"),o)}}function bc(t,e,n){for(const o of e[fc("0x117")][fc("0xaa")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0x5a")]==o)return!1;if(!n.containsItem(o))return!1;if(t[fc("0x65")](o)||t[fc("0x11")](o))return!0}return!1}function Ec(t){return t[fc("0xc9")][fc("0x117")]==t[fc("0x13c")].nodeAfter&&t[fc("0xc9")].isAtStart}function _c(t,e,n,o){const i=t=>!t[fc("0x9b")].is(fc("0x69"))&&!o[fc("0x65")](t.item),r=t[fc("0x13c")].getLastMatchingPosition(i),s=t.end[fc("0x156")](i,{direction:fc("0xe7")});return!(t[fc("0x13c")][fc("0x29")](r)&&t[fc("0xc9")][fc("0x29")](s)||(r[fc("0xc6")](s)?n[fc("0xec")](e,{range:n[fc("0xa6")](r,s)}):n.removeMarker(e),0))}function Tc(t){return(0,r.hashObject)(t)}function yc(t){const e=t[fc("0x13c")][fc("0x1e")];return e&&e.is(fc("0x2d"))}function Cc(t,e){const n=e[fc("0xcd")].isObject(t)||e.schema.isSelectable(t);return e[fc("0xa6")](e[fc("0x8e")](t,fc("0xb0")),n?e[fc("0x152")](t):e[fc("0x8e")](t,fc("0xc9")))}function Ac(t,e,n,o,i){if(!kc(t,e))return!1;if(n.end[fc("0x29")](o[fc("0x13c")]))return!0;if(t[fc("0x21")]!=e[fc("0x21")])return!1;if(!n[fc("0xc9")][fc("0x15")](o.start))return!1;const r=i[fc("0xa6")](n[fc("0xc9")],o.start)[fc("0x104")]();for(const t of r)if([fc("0x107"),"elementEnd"].includes(t[fc("0x21")])&&i[fc("0xcd")][fc("0x11")](t[fc("0x9b")]))return!1;return!0}function kc(t,e){return!(!t[fc("0xa8")]||!e[fc("0xa8")])&&Go(t.attributes,e[fc("0xb5")])}function Ic(t,e){const n=Rc(t.attributes),o=Rc(e);if(!t[fc("0xa8")])return!1;for(const t of Object[fc("0xc5")](o))if(!Go(n[t],o[t]))return!1;return!0}function Rc(t){const e=Object.assign({},t);return delete e.skipNestingCheck,delete e[fc("0x15c")],e}const vc=["canEditAt","_editor","listenTo","isDirty","PENDING_ACTION_SUGGESTION","get","isEnabled","execute","_discardCommand","discardSuggestion","getRanges","add","PendingActions","remove","model","plugins","canAccept","locale","canDiscard","destroy","_setPendingAction","change:isDirty","_acceptCommand","_pendingAction","commentThreadController","acceptSuggestion","view","bind","unbind","_removePendingAction"];var Sc,Nc;Sc=vc,Nc=403,function(t){for(;--t;)Sc.push(Sc.shift())}(++Nc);const Lc=function(t,e){return vc[t-=0]};class Mc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Lc("0x1")]=e,this.view=n,this[Lc("0xb")]=o,this[Lc("0x12")]=t,this[Lc("0x9")]=t.commands.get(Lc("0xc")),this._discardCommand=t.commands[Lc("0x16")](Lc("0x1a")),this.view[Lc("0xe")](Lc("0x17")).to(this[Lc("0x9")],this[Lc("0x19")],((t,e)=>t||e)),this[Lc("0xd")][Lc("0xe")](Lc("0x3")).to(this[Lc("0x9")],Lc("0x17"),(t=>t&&this[Lc("0x12")].model[Lc("0x11")](e.getRanges()))),this[Lc("0xd")][Lc("0xe")]("canDiscard").to(this[Lc("0x19")],"isEnabled",(t=>t&&this._editor[Lc("0x1")][Lc("0x11")](e[Lc("0x1b")]()))),this._pendingAction=null,n[Lc("0x14")]&&this[Lc("0x7")](),this[Lc("0x13")](n,Lc("0xc"),(()=>this[Lc("0xc")]())),this.listenTo(n,Lc("0x1a"),(()=>this.discardSuggestion())),this[Lc("0x13")](n,Lc("0x8"),(()=>{n.isDirty?this[Lc("0x7")]():this[Lc("0x10")]()}))}[Lc("0xc")](){this[Lc("0x9")].execute(this[Lc("0x1")].id)}[Lc("0x1a")](){this._discardCommand[Lc("0x18")](this.model.id)}[Lc("0x6")](){this.view.unbind(Lc("0x17")),this[Lc("0xd")][Lc("0xf")](Lc("0x3")),this[Lc("0xd")][Lc("0xf")](Lc("0x5")),this.stopListening(),this[Lc("0xb")][Lc("0x6")](),this._pendingAction&&this[Lc("0x10")]()}_setPendingAction(){const t=Qo(this[Lc("0x12")][Lc("0x4")],Lc("0x15"));this[Lc("0xa")]=this._editor[Lc("0x2")][Lc("0x16")](Lc("0x1d"))[Lc("0x1c")](t)}[Lc("0x10")](){null!==this[Lc("0xa")]&&this[Lc("0x12")].plugins[Lc("0x16")](Lc("0x1d"))[Lc("0x0")](this[Lc("0xa")]),this[Lc("0xa")]=null}}const wc=["isDirty","destroy","assign","updateComment","focus","fire","commentInputView","showInput","canAccept","_createCommentThreadInputView","canDiscard","isEnabled","_model","setData","length","submit","value","delegate","isReadOnly","CommentView","editor","cancel","bind","_config","commentThread","set","authoredAt","_createCommentViews","editorConfig","commentsListView","_localUser","locale","hasDirtyComment","isActive","addComment","descriptionParts","commentThreadInputView","element"];var Oc,Fc;Oc=wc,Fc=201,function(t){for(;--t;)Oc.push(Oc.shift())}(++Fc);const Dc=function(t,e){return wc[t-=0]};class Bc extends i.View{constructor(t,e,n,o){super(t),this[Dc("0x12")]=null,this[Dc("0x19")]=null,this.set(Dc("0x16"),!1),this[Dc("0xe")]("authoredAt",e.authoredAt),this[Dc("0xb")](Dc("0xf")).to(e),this[Dc("0xe")](Dc("0x18"),[]),this[Dc("0xe")](Dc("0x1b"),!1),this[Dc("0xe")](Dc("0x0"),!1),this[Dc("0xe")](Dc("0x23"),!1),this[Dc("0xe")](Dc("0x25"),!1),this[Dc("0x1")]=e,this._localUser=n,this._config=o,o.disableComments?this[Dc("0xe")](Dc("0x3"),1):this[Dc("0x10")]()}[Dc("0x1f")](){this[Dc("0x1a")].focus()}[Dc("0x1c")](){this[Dc("0x12")]&&this.commentsListView[Dc("0x1c")](),this[Dc("0x19")]&&this[Dc("0x19")][Dc("0x1c")](),super[Dc("0x1c")]()}[Dc("0x10")](){const{CommentsListView:t}=this[Dc("0xc")];this[Dc("0x12")]=new t(this[Dc("0x14")],this[Dc("0x1")].commentThread,Object[Dc("0x1d")]({CommentView:this[Dc("0xc")][Dc("0x8")]},this[Dc("0xc")])),this[Dc("0x12")].delegate("removeComment").to(this),this[Dc("0x12")][Dc("0x6")](Dc("0x1e")).to(this),this[Dc("0x12")][Dc("0xb")]("isActive").to(this),this.set(Dc("0x3"),this[Dc("0x12")][Dc("0x3")]+1),this[Dc("0xb")]("length").to(this[Dc("0x12")],"length",(t=>t+1)),this[Dc("0x19")]=this[Dc("0x24")](),this.on("removeComment",(()=>this[Dc("0x1f")]())),this.bind(Dc("0x1b")).to(this[Dc("0x12")],Dc("0x15"),this[Dc("0x19")][Dc("0x21")],Dc("0x5"),((t,e)=>t||!!e))}[Dc("0x24")](){const{CommentThreadInputView:t}=this[Dc("0xc")],e=new t(this[Dc("0x14")],this[Dc("0x13")],this[Dc("0xc")][Dc("0x11")]),n=e[Dc("0x21")];return e[Dc("0xb")](Dc("0x22")).to(this,"isActive",this[Dc("0x1")].commentThread,Dc("0x7"),n,Dc("0x5"),((t,e,n)=>!!n||t&&!e)),n.on(Dc("0x4"),((t,e)=>{this[Dc("0x20")](Dc("0x17"),e),n[Dc("0x9")][Dc("0x2")]("")})),n.on(Dc("0xa"),(()=>this[Dc("0x1f")]())),n.bind("disabledSubmit").to(this[Dc("0x1")][Dc("0xd")],Dc("0x7")),e}}const Pc=["_createButton","discardSuggestion","element","Accept suggestion","map","commentThreadInputView","split","ck-annotation__info","bindTemplate","name",'<span class="ck-suggestion-color" style="background-color: ',"ck-suggestion__main","userView","createElement","_descriptionElement","value","importWord","creator","bind","discardButton","editorDestroyed","color","commentsListView","_config","attributes","disableComments","isActive","_model","push","EXTERNAL_SUGGESTION","getUserViewNotificationText","ck-annotation__info-name","getTemplate","ck-annotation__main","</span>","ck-annotation__actions","delegate","formatDateTime","content","ck-suggestion-","children","acceptSuggestion","div","EXTERNAL_IMPORT_WORD_AVATAR","title","ck-suggestion__info-name","@external","ck-comment__external","render","ck-suggestion-wrapper--active","type","EXTERNAL_IMPORT_WORD_SUGGESTION","querySelector","extendTemplate",".ck-annotation__content-wrapper","check","</p>",'<span class="ck-suggestion-type">',"locale","time","acceptButton",'" title="',"cancel","canAccept","canDiscard","span","author","commentThread","ck-suggestion--discard","EXTERNAL_AVATAR","innerHTML","ck-suggestion","descriptionParts","authoredAt","innerText","description","<p>","ck-suggestion--disabled-comments","fire","getExternalSuggestionNote","ck-suggestion__actions","ck-annotation__info-time","ck-suggestion-wrapper","ck-suggestion--accept","ck-annotation__content-wrapper","source","setTemplate","ck-annotation__user","isEnabled"];var Uc,jc;Uc=Pc,jc=210,function(t){for(;--t;)Uc.push(Uc.shift())}(++jc);const Gc=function(t,e){return Pc[t-=0]};class Vc extends Bc{constructor(e,n,o,i){super(e,n,o,i),this.set(Gc("0x12"),""),this[Gc("0x4b")](Gc("0x12")).to(this,Gc("0x28"),(t=>t&&t[0]?t[0].type:"")),this[Gc("0x4b")](Gc("0x2b")).to(this,Gc("0x28"),this,Gc("0x53"),((t,e)=>{let n="";for(const e of t)n+=Gc("0x2c")+Hc(e[Gc("0x6")],e[Gc("0x4e")])+Gc("0x18");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[Gc("0x1c")]=this._createButton(Qo(e,Gc("0x3c")),t.icons[Gc("0x17")],Gc("0x33"),Gc("0x9"),"sw"),this[Gc("0x1c")].bind(Gc("0x38")).to(this,Gc("0x1f")),this[Gc("0x4c")]=this[Gc("0x39")](Qo(e,"Discard suggestion"),t.icons[Gc("0x1e")],Gc("0x24"),Gc("0x3a"),"sw"),this.discardButton[Gc("0x4b")](Gc("0x38")).to(this,Gc("0x20")),this[Gc("0x45")]=new r.UserView(e,this[Gc("0x54")].author,this[Gc("0x57")]()),this[Gc("0x45")].extendTemplate({attributes:{class:["ck-suggestion__user",Gc("0x37")]}}),this[Gc("0x36")](this[Gc("0x0")]())}[Gc("0x0")](){const t=this[Gc("0x41")],e=[{tag:Gc("0xa"),attributes:{class:["ck-suggestion__info",Gc("0x40")]},children:[{tag:Gc("0x21"),children:[{text:this[Gc("0x45")][Gc("0x42")]}],attributes:{class:[Gc("0xd"),Gc("0x58")]}},{tag:Gc("0x1b"),attributes:{datetime:t.to(Gc("0x29")),class:["ck-comment__info-time",Gc("0x31")]},children:[{text:t.to("authoredAt",(t=>this[Gc("0x50")][Gc("0x5")](t)))}]}]},{tag:Gc("0xa"),attributes:{class:[Gc("0x30"),Gc("0x3")]},children:[this.acceptButton,this[Gc("0x4c")]]},{tag:Gc("0xa"),attributes:{class:[Gc("0x34")]}}];this[Gc("0x54")].isExternal&&e[Gc("0x55")]({tag:Gc("0xa"),attributes:{class:[Gc("0xf")]},children:[{text:this[Gc("0x2f")]()}]});const n={tag:Gc("0xa"),attributes:{class:[Gc("0x32"),t.if(Gc("0x53"),Gc("0x11")),t.to(Gc("0x12"),(t=>Gc("0x7")+t)),this[Gc("0x50")][Gc("0x52")]&&Gc("0x2d")],"data-suggestion-id":this._model.id,"data-thread-id":this[Gc("0x54")][Gc("0x23")].id,"data-author-id":this._model[Gc("0x22")].id,tabindex:-1},children:[{tag:Gc("0xa"),attributes:{class:[Gc("0x27"),"ck-annotation"]},children:[this[Gc("0x45")],{tag:Gc("0xa"),attributes:{class:[Gc("0x44"),Gc("0x1")]},children:e}]}]};return this[Gc("0x4f")]&&this[Gc("0x3e")]&&(n[Gc("0x8")][Gc("0x55")](this[Gc("0x4f")],this.commentThreadInputView),this[Gc("0x4f")][Gc("0x4")]("editorReady").to(this),this.commentsListView[Gc("0x4")]("editorDestroyed").to(this),this.commentThreadInputView[Gc("0x4")]("editorReady").to(this),this[Gc("0x3e")].delegate(Gc("0x4d")).to(this)),n}[Gc("0x10")](){super[Gc("0x10")](),this._descriptionElement=this[Gc("0x3b")][Gc("0x14")](Gc("0x16")),this[Gc("0x47")][Gc("0x26")]=this[Gc("0x2b")],this.on("change:description",((t,e,n)=>{this[Gc("0x47")][Gc("0x26")]=n}))}[Gc("0x39")](t,e,n,o,r){const s=new i.ButtonView(this[Gc("0x1a")]);return s.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[Gc("0x15")]({attributes:{class:n}}),s.on("execute",(()=>{this[Gc("0x2e")](o,this[Gc("0x54")].id)})),s}getExternalSuggestionNote(){return Gc("0x49")===this[Gc("0x54")].attributes[Gc("0xe")][Gc("0x35")]?Qo(this[Gc("0x1a")],Gc("0x13")):Qo(this[Gc("0x1a")],Gc("0x56"))}getUserViewNotificationText(){return this[Gc("0x54")].isExternal?Gc("0x49")===this[Gc("0x54")][Gc("0x51")][Gc("0xe")][Gc("0x35")]?Qo(this[Gc("0x1a")],Gc("0xb"),this[Gc("0x54")][Gc("0x4a")][Gc("0x42")]):Qo(this[Gc("0x1a")],Gc("0x25"),this[Gc("0x54")][Gc("0x4a")][Gc("0x42")]):null}}function Hc(t,e){let n="";return n+=t[Gc("0x3f")]("*")[Gc("0x3d")](((t,e)=>e%2!=0?Gc("0x19")+zc(t)+Gc("0x2"):zc(t))).join(""),e&&(n+=Gc("0x43")+e[Gc("0x48")]+Gc("0x1d")+e[Gc("0xc")]+'"></span>'),n}function zc(t){const e=document[Gc("0x46")](Gc("0x21"));return e[Gc("0x2a")]=t,e[Gc("0x26")]}const Wc=["getFirstRange","push","editing","TrackChangesEditing","discardSelectedSuggestions","add","clear","locale","focus","_handleSuggestionControllerDelayed","_annotationViews","isOn","values","refreshSelectedViews","_viewToController","activeAnnotations","_initializeController","suggestionChanged","from","switchbutton","editor","createCommentThreadController","change:previous","_createUIButton","button","acceptSelectedSuggestions","Accept all suggestions","type","Annotations","define","_destroyController","bind","isMultiRange","descriptionParts","pluginName","_descriptionFactory","model","value","actionView","getDescriptions","isDirty","EditorAnnotations","Discard all selected suggestions","_updateController","execute","delete","getAllAdjacentSuggestions","suggestion-","comments.maxCommentsWhenCollapsed","_unbindEditors","CommentsRepository","getByInnerView","commands","unbind","separator","filter","comments.editorConfig","Track changes","Discard all suggestions","_refreshActiveMarkers","size","_disableComments","commandName","getMarkerNames","innerView","suggestionLoaded","comments.maxCommentCharsWhenCollapsed","stopListening","registerAnnotation","buttonView","TrackChangesUI","remove","getJoined","discardButton","CommentsUI","plugins","discardAllSuggestions","requires","get","_bindAnnotationToEditors","some","trackChanges.disableComments","keys","isInContent","CommentView","change:activeAnnotations","_handleControllerBuffer","acceptButton","trackChanges","previous","Accept all selected suggestions","mainView","head","componentFactory","arrowView","suggestionUnloaded","config","destroy","_suggestionToController","listenTo","hasSuggestion","set","has","isEnabled","map","length","view"];var Kc,qc;Kc=Wc,qc=295,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[Xc("0x67")](){return[hc,r.Users,Xc("0x4c"),Xc("0x36"),Xc("0x43")]}static get[Xc("0x3c")](){return Xc("0x60")}constructor(t){super(t),this[Xc("0x11")]=new Map,this[Xc("0x28")]=new Map,this[Xc("0x24")]=new Map,this._handleControllerBuffer=new Map;const e=this[Xc("0x2e")][Xc("0xf")];e.define("trackChanges.SuggestionThreadView",Vc),e[Xc("0x37")]("trackChanges.disableComments",!1),this[Xc("0x57")]=e[Xc("0x68")](Xc("0x0"))}[Xc("0x23")](t,e){0===this[Xc("0x5")][Xc("0x56")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Xc("0x11")].has(t);n||e?n&&e&&this[Xc("0x38")](t):this[Xc("0x2a")](t)}this[Xc("0x2e")][Xc("0x65")].get(Xc("0x43"))[Xc("0x27")](),this[Xc("0x55")](),this[Xc("0x5")][Xc("0x20")]()}),10),this[Xc("0x5")][Xc("0x14")](t,e)}init(){const t=this[Xc("0x2e")],e=t.plugins[Xc("0x68")](Xc("0x1d")),n=t[Xc("0x65")][Xc("0x68")]("Annotations"),o=t.plugins.get("EditorAnnotations"),i=t[Xc("0x65")][Xc("0x68")](Xc("0x4c"));t.ui[Xc("0xc")][Xc("0x1f")](Xc("0x7"),(t=>this[Xc("0x31")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Xc("0x2c")](this[Xc("0x11")])){const o=e[Xc("0x48")](),i=[];for(const t of o){if(!t.isInContent)continue;if(t[Xc("0x3a")]){i.push(...t.getRanges());continue}const e=t[Xc("0x1a")]();if(i[Xc("0x18")]>0){const t=i[0][Xc("0x62")](e);if(t){i[0]=t;continue}}i[Xc("0x1b")](e)}t.push([n[Xc("0x19")],i])}return t})),this[Xc("0x12")](e,Xc("0x5b"),((t,e)=>{this[Xc("0x12")](e,Xc("0x30"),((t,n,o,i)=>{e[Xc("0x2")]&&(null==o?(this._updateController(i.head),this[Xc("0x23")](e,!1)):(this[Xc("0x45")](o[Xc("0xb")]),null==i&&this[Xc("0x23")](e,!0)))})),null!==e[Xc("0x8")]?this._updateController(e[Xc("0xb")]):this[Xc("0x23")](e,!1)})),this[Xc("0x12")](e,Xc("0xe"),((t,e,n)=>{this[Xc("0x5d")](e,Xc("0x30")),this._handleControllerBuffer[Xc("0x47")](e),this[Xc("0x11")][Xc("0x15")](e)&&this[Xc("0x38")](e),n&&this._updateController(n[Xc("0xb")])})),this.listenTo(e,Xc("0x2b"),((t,e)=>{this[Xc("0x45")](e)})),this[Xc("0x12")](n,Xc("0x4"),(()=>{this[Xc("0x55")]()})),this[Xc("0x12")](i,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Xc("0x13")](n))return;const i=e.getSuggestion(n);this[Xc("0x11")].get(i)[Xc("0x19")][Xc("0x22")]()}),{priority:"lowest"})}_refreshActiveMarkers(){const t=this[Xc("0x2e")].plugins[Xc("0x68")]("Annotations"),e=this[Xc("0x2e")][Xc("0x65")][Xc("0x68")](Xc("0x1d")),n=Array[Xc("0x2c")](t[Xc("0x29")],(t=>t[Xc("0x5a")]))[Xc("0x51")]((t=>this[Xc("0x28")][Xc("0x15")](t))),o=[];for(const t of n){const e=this._viewToController[Xc("0x68")](t).model[Xc("0x48")]();o[Xc("0x1b")](...e.reduce(((t,e)=>[...t,...e[Xc("0x59")]()]),[]))}e.activeMarkers=o}_createUIButton(t){const n=(0,i.createDropdown)(t,i.SplitButtonView),o=this[Xc("0x2e")][Xc("0x4e")][Xc("0x68")](Xc("0x7")),r=Qo(t,Xc("0x53"));n[Xc("0x5f")][Xc("0x14")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Xc("0x5f")][Xc("0x39")](Xc("0x25")).to(o,"value"),n[Xc("0x5f")].on(Xc("0x46"),(()=>{o[Xc("0x46")](),this.editor[Xc("0x1c")][Xc("0x19")][Xc("0x22")]()}));const s=new e.Collection,x=[{type:Xc("0x2d"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:Xc("0x50")},{type:Xc("0x32"),model:{withText:!0,label:Qo(t,Xc("0x34")),commandName:"acceptAllSuggestions"}},{type:Xc("0x32"),model:{withText:!0,label:Qo(t,Xc("0x9")),commandName:Xc("0x33")}},{type:"button",model:{withText:!0,label:Qo(t,Xc("0x54")),commandName:Xc("0x66")}},{type:"button",model:{withText:!0,label:Qo(t,Xc("0x44")),commandName:Xc("0x1e")}}];for(const t of x){let e={type:Xc("0x50")};if(t[Xc("0x3e")]){const n=new i.Model(t[Xc("0x3e")]),o=this.editor[Xc("0x4e")][Xc("0x68")](n[Xc("0x58")]);n[Xc("0x39")](Xc("0x25"),Xc("0x16")).to(o,Xc("0x3f"),Xc("0x16")),e={type:t[Xc("0x35")],model:n}}s[Xc("0x1f")](e)}(0,i.addListToDropdown)(n,s);const a=x[Xc("0x51")]((t=>null!=t.model))[Xc("0x17")]((t=>this[Xc("0x2e")][Xc("0x4e")][Xc("0x68")](t[Xc("0x3e")][Xc("0x58")]))),c=n[Xc("0x5f")];return c[Xc("0x40")][Xc("0x4f")](Xc("0x16")),c[Xc("0xd")][Xc("0x4f")](Xc("0x16")),c[Xc("0x40")].bind(Xc("0x16")).to(o,Xc("0x16")),c.arrowView[Xc("0x39")]("isEnabled").toMany(a,Xc("0x16"),((...t)=>t[Xc("0x6a")]((t=>t)))),n.on("execute",(t=>{this[Xc("0x2e")][Xc("0x46")](t.source[Xc("0x58")]),this[Xc("0x2e")].editing[Xc("0x19")].focus()})),n}[Xc("0x2a")](t){const e=this.editor,n=e.config,o=e[Xc("0x65")][Xc("0x68")](Xc("0x36")),i=e[Xc("0x65")][Xc("0x68")](Xc("0x4c")),s=e[Xc("0x65")][Xc("0x68")](Xc("0x43")),x=e.plugins[Xc("0x68")](r.Users).me,a=n.get("trackChanges").SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Xc("0x68")](Xc("0x64"));let u,d;this._annotationViews[Xc("0x15")](t.id)?(d=this[Xc("0x24")].get(t.id),u=d[Xc("0xa")]):(u=new a(e.locale,t,x,{disableComments:this[Xc("0x57")],editorConfig:n[Xc("0x68")](Xc("0x52")),maxCommentsWhenCollapsed:n[Xc("0x68")](Xc("0x4a")),maxThreadTotalWeight:n[Xc("0x68")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Xc("0x68")](Xc("0x5c")),formatDateTime:(0,r.getDateTimeFormatter)(n[Xc("0x68")](Xc("0x21"))),CommentView:n[Xc("0x68")]("comments")[Xc("0x3")],CommentsListView:c,CommentThreadInputView:l}),u[Xc("0x6")].on(Xc("0x46"),(()=>{e.editing[Xc("0x19")][Xc("0x22")]()})),u[Xc("0x63")].on(Xc("0x46"),(()=>{e[Xc("0x1c")][Xc("0x19")][Xc("0x22")]()})),d=o.createAnnotationView(this[Xc("0x2e")][Xc("0x21")],u),d[Xc("0x39")]("isDirty").to(u,Xc("0x42")),d[Xc("0x39")]("length").to(u),d.bind("type").to(u,Xc("0x35"),(t=>Xc("0x49")+t)),this[Xc("0x24")][Xc("0x14")](t.id,d));const g=i[Xc("0x2f")](t.commentThread,u),f=new Mc(e,t,u,g),m=t[Xc("0x48")]()[Xc("0x51")]((t=>t[Xc("0x2")]));u[Xc("0x3b")]=e[Xc("0x65")][Xc("0x68")]("TrackChangesEditing")[Xc("0x3d")][Xc("0x41")](m),this[Xc("0x11")][Xc("0x14")](t,f),this[Xc("0x28")][Xc("0x14")](u,f);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[Xc("0x51")]((t=>t[Xc("0x2")]));for(const t of o)n.push(...t.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(e[Xc("0x1c")],n)},type:()=>"suggestion-"+f[Xc("0x19")].type});i[Xc("0x69")](u,h),o[Xc("0x1f")](h),s[Xc("0x5e")](h)}[Xc("0x38")](t){const e=this[Xc("0x2e")][Xc("0x65")].get(Xc("0x4c")),n=this[Xc("0x2e")].plugins[Xc("0x68")](Xc("0x36")),o=this[Xc("0x11")][Xc("0x68")](t),i=o[Xc("0x19")],r=n[Xc("0x4d")](i);e[Xc("0x4b")](i),r&&n[Xc("0x61")](r),this[Xc("0x11")][Xc("0x47")](t),this[Xc("0x28")][Xc("0x47")](i),o[Xc("0x10")]()}_updateController(t){if(!t.isInContent||!this[Xc("0x11")].has(t))return;const e=this.editor[Xc("0x65")][Xc("0x68")](Xc("0x1d")),n=this[Xc("0x11")][Xc("0x68")](t),o=t[Xc("0x48")]();n[Xc("0x19")].descriptionParts=e._descriptionFactory[Xc("0x41")](o)}[Xc("0x10")](){for(const t of this[Xc("0x11")][Xc("0x1")]())this[Xc("0x38")](t);for(const t of this[Xc("0x24")][Xc("0x26")]())t[Xc("0xa")][Xc("0x10")]();super.destroy()}}var Zc,Yc,Jc=["pluginName","requires","adapter","editor","getSuggestion","getSuggestions","plugins","addSuggestionData","Comments","get"];Zc=Jc,Yc=469,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[Qc("0x2")](){return[hc,$c,Qc("0x9")]}static get[Qc("0x1")](){return"TrackChanges"}set adapter(t){this[Qc("0x4")][Qc("0x7")][Qc("0x0")](hc)[Qc("0x3")]=t}get[Qc("0x3")](){return this[Qc("0x4")][Qc("0x7")][Qc("0x0")](hc)[Qc("0x3")]}addSuggestion(t){return this[Qc("0x4")][Qc("0x7")][Qc("0x0")](hc)[Qc("0x8")](t)}[Qc("0x6")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Qc("0x4")][Qc("0x7")][Qc("0x0")](hc)[Qc("0x6")]({skipNotAttached:t,toJSON:e})}[Qc("0x5")](t){return this[Qc("0x4")][Qc("0x7")].get(hc)[Qc("0x5")](t)}}const el=["execute","init","CommentsRepository","TrackChangesEditing","getDataWithDiscardedSuggestions","getRootsAttributes","trackChangesData","plugins","push","create","TrackChangesDataGetter","_adapter","function","createElement","config","Users","reduce","set","pluginName","define","result","addUser","data","editorCreator","name","requires","get","getFullData","end","getRootNames","addSuggestionData","document","trackChangesData.editorCreator","map","model","track-changes-data-invalid-editor-creator","Pagination","destroy","users","editor"];var nl,ol;nl=el,ol=237,function(t){for(;--t;)nl.push(nl.shift())}(++ol);const il=function(t,e){return el[t-=0]},rl=[il("0x27")];class sl extends t.Plugin{static get[il("0x1c")](){return[hc]}static get pluginName(){return"TrackChangesData"}[il("0x4")](){const t=this[il("0x2")];if(t.config[il("0x16")](il("0x23"),(e=>{const n=t[il("0x25")].document[il("0x20")]()[il("0x13")](((t,e)=>(t[e]="",t)),{});return t.constructor[il("0xc")](n,e)})),il("0xf")!=typeof t[il("0x11")][il("0x1d")](il("0x9"))[il("0x1a")])throw new e.CKEditorError(il("0x26"))}getDataWithAcceptedSuggestions(t){return cl(this[il("0x2")],!0,t)}[il("0x7")](t){return cl(this[il("0x2")],!1,t)}}class xl extends t.Plugin{static get[il("0x15")](){return il("0xd")}constructor(t){super(t),this[il("0x17")]=il("0x1f")}init(){this.editor[il("0xa")][il("0x1d")](il("0x5"))[il("0xe")]={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("0x2")][il("0xa")][il("0x1d")](il("0x6"))[il("0xe")]=null}}function al(t){return void 0!==t[il("0x8")]}async function cl(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,rl);o[il("0xa")][il("0xb")](hc,xl),o.rootsAttributes=al(t)?t[il("0x8")]():void 0;const i=document.createDocumentFragment(),s=t.config.get("trackChangesData")[il("0x1a")],x=await s(o,(()=>function(t){const e=document[il("0x10")]("div");return t.appendChild(e),e}(i)));!function(t,e){const n=t.model[il("0x22")][il("0x20")]()[il("0x13")](((e,n)=>(e[n]=t[il("0x19")][il("0x1d")]({rootName:n}),e)),{}),o=t.plugins.get(il("0x12"))[il("0x1")][il("0x24")]((t=>({id:t.id,name:t[il("0x1b")]}))),i=t[il("0xa")][il("0x1d")]("TrackChangesEditing").getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e.plugins[il("0x1d")](il("0x12")),s=e[il("0xa")][il("0x1d")](il("0x6"));for(const t of o)r.getUser(t.id)||r[il("0x18")](t);r.me||r.useAnonymousUser();for(const t of i)s[il("0x21")](t);e.data[il("0x14")](n)}(t,x),x[il("0x3")](e?"acceptAllSuggestions":"discardAllSuggestions");const a=al(x)?x[il("0x1e")](n):x[il("0x19")][il("0x1d")](n);return await x[il("0x0")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(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","value","refresh","has","affectsData","execute","TrackChangesCommand","_enabledCommands","clearForceDisabled","_isEnabledBasedOnSelection","forceDisabled","commands","_disableUnsupportedCommands","_enableCommands"];var c,l;c=a,l=120,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("0x7")]=!1,this[u("0x8")](),this[u("0x1")]=!1}refresh(){this.isEnabled=!0}[u("0xb")](){this[u("0x7")]=!this[u("0x7")],this[u("0x7")]?this[u("0x4")]():this[u("0x5")]()}[u("0x4")](){for(const t of this[u("0x6")][u("0x3")][u("0x3")]())t[u("0xa")]&&!this[u("0xd")][u("0x9")](t)&&t[u("0x2")]("TrackChangesCommand")}[u("0x5")](){for(const t of this[u("0x6")][u("0x3")].commands())t.affectsData&&!this[u("0xd")][u("0x9")](t)&&t[u("0x0")](u("0xc"))}}const g=["plugins","_suggestions","refresh","TrackChangesEditing","get","canEditAt","acceptSuggestion","isEnabled","model","editor","execute"];var f,m;f=g,m=235,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x8")]=e,this[h("0x9")](),this._isEnabledBasedOnSelection=!1}[h("0x9")](){this[h("0x3")]=!0}[h("0x6")](t){const n=this[h("0x8")][h("0x0")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const r=n.getRanges();this.editor[h("0x4")][h("0x1")](r)&&this[h("0x5")][h("0x7")][h("0x0")](h("0xa"))[h("0x2")](n)}}const b=["refresh","get","_isEnabledBasedOnSelection","execute","editor","track-changes-discard-suggestion-not-found","TrackChangesEditing","canEditAt","plugins","_suggestions","discardSuggestion"];var E,_;E=b,_=436,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x4")](),this[T("0x6")]=!1}[T("0x4")](){this.isEnabled=!0}[T("0x7")](t){const n=this[T("0x2")][T("0x5")](t);if(!n)throw new e.CKEditorError(T("0x9"),this);const r=n.getRanges();this[T("0x8")].model[T("0x0")](r)&&this[T("0x8")][T("0x1")][T("0x5")](T("0xa"))[T("0x3")](n)}}const C=["isMultiRange","start","type","length","value","map","push","createPositionAt","isArray","join","deletion","next","schema","createPositionBefore","add","end","change","getRanges","color","splice","createPositionAfter","execute","isCollapsed","isObject","replace","from","isIntersecting"];var A,k;A=C,k=352,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t.sort(((t,e)=>"deletion"==t[I("0x1")]&&I("0x9")!=e[I("0x1")]?-1:I("0x9")!=t[I("0x1")]&&I("0x9")==e.type?1:0))}function S(t,e){let n,r=0;const o=[],i=e[I("0xb")];for(;r<t[I("0x2")];){const s=t[r],x=t[r+1];n||(n=e[I("0xc")](s)),v(e,s,x)||(o[I("0x5")](e.createRange(n,i[I("0x16")](s)?e.createPositionAfter(s):e[I("0x6")](s,I("0xe")))),n=null),r++}return o}function v(t,e,n){if(!n)return!1;const r=t[I("0x13")](e),o=t[I("0xc")](n);return r.isTouching(o)}function N(t,e,n){for(;n[I("0x2")];){const r=n[I("0x12")](0,100);t[I("0xf")]((()=>{for(const t of r)t.isInContent&&e[I("0x14")](t.id)}))}}const L=["_command","execute","some","model","from","editor","_isEnabledBasedOnSelection","isEnabled","canEditAt","_suggestions","values","refresh"];var M,w;M=L,w=141,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._command=e,this[O("0x0")]=n,this[O("0x2")](),this[O("0x9")]=!1}refresh(){const t=Array[O("0x7")](this._suggestions[O("0x1")]())[O("0x5")]((t=>t.isInContent));this[O("0xa")]=this._command[O("0xa")]&&t}[O("0x4")](){const t=R(Array[O("0x7")](this[O("0x0")][O("0x1")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x8")][O("0x6")][O("0xb")](t))return}N(this[O("0x8")].model,this[O("0x3")],t)}}const D=["from","document","refresh","_selectedSuggestions","editor","_command","size","selection","isEnabled","model","canEditAt","_isEnabledBasedOnSelection","execute","values","_suggestions"];var B,P;B=D,P=401,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("0x3")]=n,this[U("0x7")]=new Set,this[U("0x6")](),this[U("0x0")]=!1}refresh(){const t=this[U("0x8")].model[U("0x5")][U("0xb")],e=Array[U("0x4")](this._suggestions[U("0x2")]());this[U("0x7")]=function(t,e){const n=Array[I("0x18")](t.getRanges()),r=new Set;for(const o of e)if(o.isInContent)for(const e of n)for(const n of o[I("0x10")]())(e[I("0x19")](n)||t[I("0x15")]&&!o[I("0x1a")]&&o[I("0xa")]&&n[I("0xe")].isTouching(e[I("0x0")]))&&r[I("0xd")](o);return r}(t,e),this[U("0xc")]=this._command[U("0xc")]&&!!this[U("0x7")][U("0xa")]}[U("0x1")](){const t=R(Array[U("0x4")](this[U("0x7")]));for(const e of t){const t=e.getRanges();if(!this[U("0x8")][U("0xd")][U("0xe")](t))return}N(this[U("0x8")][U("0xd")],this[U("0x9")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(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=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,r=H(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 pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var 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 Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=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 Ht(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=Vt,$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)&&V(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,pe=he&&he.exports===me?rt.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var 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&&be(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 Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var r in t)("constructor"!=r||!e&&He.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 pn="[object Map]",bn="[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)!=pn||fn&&Rn(fn.resolve())!=bn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,r=n?Tt(n):"";if(r)switch(r){case yn:return Tn;case Cn:return pn;case An:return bn;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 Vn=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 Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(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(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!i){if(x=c||g?{}:Hn(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 pr=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const br=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=pr(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:br(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 V(+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 p=s?r(h,m,l,e,t,i):r(m,h,l,t,e,i);if(!(void 0===p?m===h||o(m,h,n,r,i):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return 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&&be(t)){if(!be(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 Vr=function(t,e){for(var n=0,r=(e=hr(e,t)).length;null!=t&&n<r;)t=t[pr(e[n++])];return n&&n==r?t:void 0};const Hr=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:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=hr(e,t),null==(t=zr(t,e))||delete t[pr(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["onAccept","onDiscard","substr","creator","data","nodeAfter","getRange","getMarkers","discard","getAllAdjacentSuggestions","size","from","getMarkerNames","add","attributes","previous","isIntersecting","getContainedElement","start","addMarkerName","hasComments","getFirstMarker","split","_onDiscard","decorate","createdAt","filter","suggestion:","set","end","onAttributesChange","commentThread","_markerNames","clear","nodeBefore","toJSON","push","change","removeMarkers","_model","delete","type","subType","length","removeMarker","getRanges","isExternal","isInContent","author","authoredAt","next","_onAccept","map","accept","@external","head","getItems","_onAttributesChange","markers"];var Xr,$r;Xr=qr,$r=244,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._isDataLoaded=!1,this.id=e.id,this[Zr("0x21")]=e[Zr("0x21")],this[Zr("0x22")]=e[Zr("0x22")]||null,this.author=e[Zr("0x28")],this[Zr("0x36")]=e[Zr("0x36")]||e.author,this[Zr("0x26")]=Boolean(e.attributes&&e[Zr("0x6")][Zr("0x2e")]),this[Zr("0x37")]=null,this[Zr("0x1f")]=t,this[Zr("0x2b")]=e[Zr("0x33")],this[Zr("0xf")]=e[Zr("0x34")],this[Zr("0x31")]=e[Zr("0x16")],this[Zr("0x18")]=new Set,this[Zr("0x11")]=null,this[Zr("0x14")](Zr("0x29"),null),this[Zr("0x14")](Zr("0x6"),e[Zr("0x6")]||{}),this[Zr("0x14")](Zr("0x7"),null),this[Zr("0x14")](Zr("0x2a"),null),this[Zr("0x14")]("commentThread",null),this[Zr("0x14")]("_saved",!1),this[Zr("0x10")](Zr("0x2d")),this[Zr("0x10")]("discard")}get[Zr("0x2f")](){let t=this;for(;t.previous;)t=t[Zr("0x7")];return t}get[Zr("0xc")](){return!!this[Zr("0x17")]&&this[Zr("0x17")][Zr("0x23")]>0}get isMultiRange(){return 0!=this[Zr("0x18")][Zr("0x2")]&&6==Array.from(this[Zr("0x18")])[0][Zr("0xe")](":")[Zr("0x23")]}get[Zr("0x27")](){return null!==this[Zr("0xd")]()}addMarkerName(t){this[Zr("0x18")][Zr("0x5")](t)}[Zr("0x4")](){return Array[Zr("0x3")](this[Zr("0x18")])}[Zr("0x3a")](){return this[Zr("0x4")]()[Zr("0x2c")]((t=>this._model[Zr("0x32")].get(t)))[Zr("0x12")]((t=>t))}getFirstMarker(){return this[Zr("0x3a")]()[0]||null}[Zr("0x1e")](){this[Zr("0x1f")].change((t=>{for(const e of this[Zr("0x3a")]())t[Zr("0x24")](e)})),this[Zr("0x18")][Zr("0x19")]()}[Zr("0x24")](t){this[Zr("0x1f")].change((e=>{e[Zr("0x24")](t)})),this[Zr("0x18")][Zr("0x20")](t)}addRange(t){const e=Zr("0x13")+this[Zr("0x21")]+":"+this.subType+":"+this.id+":"+this[Zr("0x36")].id+":"+Yr.getMultiRangeId();this[Zr("0xb")](e),this[Zr("0x1f")][Zr("0x1d")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Zr("0x25")]())if(e[Zr("0x8")](t))return!0;return!1}[Zr("0x25")](){return this.getMarkers()[Zr("0x2c")]((t=>t[Zr("0x39")]()))}getItems(){return this[Zr("0x25")]().reduce(((t,e)=>[...t,...e[Zr("0x30")]()]),[])}getFirstRange(){var t;return(null===(t=this[Zr("0xd")]())||void 0===t?void 0:t[Zr("0x39")]())||null}[Zr("0x9")](){const t=this[Zr("0x25")]();if(1!=t[Zr("0x23")])return null;const e=t[0],n=e[Zr("0xa")][Zr("0x38")],r=e[Zr("0x15")][Zr("0x1a")];return n instanceof s.Element?n!=r?null:n:null}[Zr("0x2d")](){this[Zr("0x2b")](this.getRanges(),this[Zr("0x37")],this[Zr("0x6")]),this[Zr("0x1e")]()}[Zr("0x0")](){this[Zr("0xf")](this[Zr("0x25")](),this[Zr("0x37")],this[Zr("0x6")]),this[Zr("0x1e")]()}[Zr("0x1")](){const t=[];let e=this[Zr("0x2f")];for(;e;)t[Zr("0x1c")](e),e=e.next;return t}setAttribute(t,e){const n=er(this.attributes);Er(n,t,e),jr(n,this[Zr("0x6")])||(this.attributes=n,this._onAttributesChange(n))}removeAttribute(t){const e=er(this.attributes);Kr(e,t),jr(e,this[Zr("0x6")])||(this.attributes=e,this[Zr("0x31")](this[Zr("0x6")]))}[Zr("0x1b")](){return{id:this.id,type:this[Zr("0x22")]?this[Zr("0x21")]+":"+this[Zr("0x22")]:this.type,authorId:this.creator.id,createdAt:this.createdAt,hasComments:this[Zr("0xc")],data:this[Zr("0x37")],attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)()[Zr("0x35")](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=["Object","_resolveDescriptionItems","key","data","removeFormat","push","addContainer","_itemLabelsCallbacks","previousSibling","replace","removeContainer","addEmptyContainer","_locale","_handleRenameSuggestionDescription","insertion","subType","isEmpty","element","attribute","set","isObject","indexOf","_customCallbacks","checkChild","nextSibling","add","getFirstRange","isInContent","length","function","type","addFormat","addObject","_handleInsertRemoveSuggestionDescription","remove","format","elementStart","skip","*Remove:* %0","nodeAfter","*Merge:* %0","elementEnd","_attributeLabels","normal","pop","item","registerDescriptionCallback","map","match","start","quantity","getWalker","_addDescriptionItems","newValue","has","ELEMENT_SPACE","end","*Insert:* %0","getItemLabel","Container","name","_schema","join","matchingCallback","get","_itemLabels","_handleCustomCallbackDescription","_handleAttributeSuggestionDescription","EmptyContainer","getDescriptions","REPLACE_TEXT","*Change to:* %0","*Split:* %0","text","deletion","$text","$textProxy"];var to,eo;to=Qr,eo=172,function(t){for(;--t;)to.push(to.shift())}(++eo);const no=function(t,e){return Qr[t-=0]};class ro{constructor(t,e){this._customCallbacks=[],this[no("0x2f")]=new Map,this[no("0x42")]=[],this[no("0x18")]=new Map,this._schema=t,this[no("0x47")]=e}[no("0x33")](t){const e=[],n=new Set,r=new Set;for(let o=0;o<t[no("0xa")];o++){const i=t[o];if(!i[no("0x9")])continue;const s=this[no("0x30")](i);if(s){if(null!=i[no("0x4a")]){if(n[no("0x24")](i[no("0x4a")]))continue;n[no("0x7")](i[no("0x4a")])}e[no("0x40")](s)}else if(no("0x0")!=i.type)no("0x49")!=i[no("0xc")]&&no("0x38")!=i[no("0xc")]||this._handleInsertRemoveSuggestionDescription(e,i,t[o+1]);else{const t=i[no("0x3e")][no("0x3d")];if(r[no("0x24")](t))continue;r[no("0x7")](i[no("0x3e")].key),t==mc?this._handleRenameSuggestionDescription(e,i):this[no("0x31")](e,i)}}return this._resolveDescriptionItems(e)}[no("0x1c")](t){this[no("0x4")].push(t)}registerElementLabel(t,n,r=e.priorities[no("0x19")]){no("0xb")==typeof t?(0,e.insertToPriorityArray)(this[no("0x42")],{matchingCallback:t,label:n,priority:r}):this[no("0x2f")][no("0x1")](t,n)}registerAttributeLabel(t,e){this[no("0x18")][no("0x1")](t,e)}[no("0x28")](t,e=1){let n;for(const e of this[no("0x42")])if(e[no("0x2d")](t)){n=e.label;break}return n||(n=this[no("0x2f")][no("0x2e")](t[no("0x2a")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[no("0x2a")]}[no("0x22")](t,e){const n=e.getFirstRange()[no("0x21")](),r=no("0x49")==e[no("0xc")]?no("0x7"):no("0x10");for(const e of n){const o=e[no("0x1b")],i=t[t[no("0xa")]-1];if(o.is(no("0x3a")))i&&i.type[no("0x3")](no("0x29"))>-1&&t[no("0x1a")](),i&&no("0x37")==i[no("0xc")]?i[r]+=o[no("0x3e")]:t.push({type:no("0x37"),add:no("0x7")==r?o[no("0x3e")]:"",remove:no("0x10")==r?o[no("0x3e")]:""});else if(this._schema.isObject(o)){const s=o;if(i&&i[no("0xc")][no("0x3")](no("0x29"))>-1&&t[no("0x1a")](),no("0x17")==e[no("0xc")])continue;i&&i[no("0xc")]==r+no("0x3b")&&i.element[no("0x2a")]==s.name?i[no("0x20")]++:t[no("0x40")]({type:r+no("0x3b"),element:s,quantity:1}),n[no("0x13")]((t=>!(no("0x17")==t[no("0xc")]&&t.item==o)))}else if(this._schema[no("0x5")](o,no("0x39"))||o.is("element","softBreak")){const n=o;if("add"==r&&no("0x12")==e[no("0xc")]||"remove"==r&&"elementEnd"==e.type)continue;if(i&&-1==i.type.indexOf(no("0x29"))){no("0x37")==i[no("0xc")]&&(i[r]+="\n");continue}let s;if(s=no("0x7")==r?n[no("0x6")]&&!this[no("0x2b")][no("0x2")](n[no("0x6")])?n[no("0x6")]:null:n.previousSibling&&!this[no("0x2b")].isObject(n[no("0x43")])?n[no("0x43")]:null,n[no("0x4b")]||s&&s.isEmpty){const e=s&&s[no("0x4b")]?s:n;i&&i[no("0xc")]==r+no("0x32")&&i[no("0x4c")][no("0x2a")]==e[no("0x2a")]?i[no("0x20")]++:t.push({type:r+no("0x32"),element:e,quantity:1})}else t[no("0x40")]({type:r+no("0x29"),element:n})}}}[no("0x3c")](t){const e=this[no("0x47")],n=[],r=[],o=[];for(const i of t)switch(i[no("0xc")]){case"text":if(i[no("0x7")]=i.add.replace(/(\S)\u000A+(\S)/g,"$1 $2")[no("0x44")](/\u000A/g,""),i.remove=i[no("0x10")][no("0x44")](/(\S)\u000A+(\S)/g,"$1 $2")[no("0x44")](/\u000A/g,""),""!=i[no("0x7")]&&""!=i.remove){n[no("0x40")]({type:"replace",content:Jr(e,no("0x34"),['"'+i[no("0x10")]+'"','"'+i[no("0x7")]+'"'])});continue}if(null!=i.add.match(/^ +$/)){n.push({type:no("0x49"),content:Jr(e,no("0x27"),Jr(e,no("0x25"),i.add[no("0xa")]))});continue}if(null!=i.remove[no("0x1e")](/^ +$/)){n[no("0x40")]({type:no("0x38"),content:Jr(e,no("0x14"),Jr(e,no("0x25"),i[no("0x10")][no("0xa")]))});continue}if(""!=i[no("0x7")]){n.push({type:no("0x49"),content:Jr(e,no("0x27"),'"'+i.add+'"')});continue}n[no("0x40")]({type:no("0x38"),content:Jr(e,no("0x14"),'"'+i[no("0x10")]+'"')});continue;case no("0x46"):case no("0xe"):n.push({type:"insertion",content:Jr(e,no("0x27"),this[no("0x28")](i.element,i[no("0x20")]))});continue;case"removeEmptyContainer":case"removeObject":n.push({type:no("0x38"),content:Jr(e,"*Remove:* %0",this[no("0x28")](i[no("0x4c")],i[no("0x20")]))});continue;case no("0x41"):n[no("0x40")]({type:"insertion",content:Jr(e,no("0x36"),this.getItemLabel(i[no("0x4c")],i[no("0x20")]))});continue;case no("0x45"):n[no("0x40")]({type:"deletion",content:Jr(e,no("0x16"),this.getItemLabel(i[no("0x4c")],i[no("0x20")]))});continue;case no("0xd"):r.push(i[no("0x3d")]);continue;case no("0x3f"):o[no("0x40")](i[no("0x3d")]);continue;default:n[no("0x40")](i)}if(r[no("0xa")]){const t=r[no("0x1d")]((t=>this[no("0x18")][no("0x24")](t)?this[no("0x18")][no("0x2e")](t):t))[no("0x2c")](", ");n[no("0x40")]({type:no("0x11"),content:Jr(this._locale,"*Set format:* %0",t)})}if(o[no("0xa")]){const t=o[no("0x1d")]((t=>this[no("0x18")][no("0x24")](t)?this._attributeLabels.get(t):t))[no("0x2c")](", ");n[no("0x40")]({type:no("0x11"),content:Jr(this[no("0x47")],"*Remove format:* %0",t)})}return n}_handleCustomCallbackDescription(t){for(const e of this[no("0x4")]){const n=e(t);if(n&&no("0xc")in n)return n}}[no("0x31")](t,e){const n=e.data,r=void 0===n[no("0x23")]?no("0x3f"):no("0xd");t[no("0x40")]({type:r,key:n[no("0x3d")]})}[no("0x48")](t,e){t[no("0x40")]({type:no("0x11"),content:Jr(this._locale,no("0x35"),this[no("0x28")](e[no("0x8")]()[no("0x1f")][no("0x15")],1))})}[no("0xf")](t,e,n){if(this[no("0x22")](t,e),n&&n[no("0x8")]()&&!e.getFirstRange()[no("0x26")].isEqual(n.getFirstRange()[no("0x1f")])){const n=t[t[no("0xa")]-1],r=no("0x49")==e[no("0xc")]?no("0x7"):no("0x10");n&&no("0x37")==n[no("0xc")]&&(n[r]+="\n")}}}const oo=["commands","TrackChangesEditing","plugins","get","afterInit","showAIAssistant","enableCommand"];var io,so;io=oo,so=150,function(t){for(;--t;)io.push(io.shift())}(++so);const xo=function(t,e){return oo[t-=0]};class ao extends t.Plugin{[xo("0x1")](){const t=this.editor,e=t[xo("0x6")][xo("0x0")](xo("0x5"));t[xo("0x4")].get(xo("0x2"))&&e[xo("0x3")](xo("0x2"))}}const co=["TrackChangesEditing","get","registerDescriptionCallback","commandName","*Format:* %0","FORMAT_ALIGNMENT","locale","afterInit","FORMAT_ALIGN_TO_LEFT","right","justify","plugins","AlignmentEditing","value","_registerLegacyDescription","_descriptionFactory","_enableDefaultAttributesIntegration","format","has","FORMAT_ALIGN_TO_RIGHT","alignment"];var lo,uo;lo=co,uo=445,function(t){for(;--t;)lo.push(lo.shift())}(++uo);const go=function(t,e){return co[t-=0]};class fo extends t.Plugin{[go("0x3")](){const t=this.editor,e=t.locale;if(!t.plugins[go("0xe")](go("0x8")))return;const n=t[go("0x7")][go("0x12")](go("0x11"));n[go("0xc")](go("0x10"),[],["alignment"]),n[go("0xb")].registerAttributeLabel(go("0x10"),Jr(e,go("0x1"))),this[go("0xa")]()}[go("0xa")](){const t=this.editor,e=t[go("0x2")];t[go("0x7")][go("0x12")]("TrackChangesEditing")[go("0xb")][go("0x13")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;if(n&&"alignment"==n[go("0x14")]){const t=n.commandParams[0][go("0x9")];return{type:go("0xd"),content:Jr(e,go("0x0"),function(t){switch(t){case"left":return Jr(e,go("0x4"));case go("0x5"):return Jr(e,go("0xf"));case"center":return Jr(e,"FORMAT_ALIGN_TO_CENTER");case go("0x6"):return Jr(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const mo=["subscript","FORMAT_BOLD","FORMAT_UNDERLINE","italic","BoldEditing","type","_enableDefaultAttributesIntegration","FORMAT_SUPERSCRIPT","code","*Format:* %0","strikethrough","_registerLegacyDescription","SuperscriptEditing","TrackChangesEditing","FORMAT_SUBSCRIPT","toUpperCase","FORMAT_","_descriptionFactory","ItalicEditing","FORMAT_STRIKETHROUGH","toLowerCase","CodeEditing","format","has","underline","StrikethroughEditing","afterInit","locale","bold","registerDescriptionCallback","commandName","SubscriptEditing","*Remove format:* %0","plugins","FORMAT_ITALIC","slice","get","editor","superscript"];var ho,po;ho=mo,po=177,function(t){for(;--t;)ho.push(ho.shift())}(++po);const bo=function(t,e){return mo[t-=0]},Eo=[bo("0x16"),bo("0x24"),"UnderlineEditing",bo("0x0"),bo("0x4"),bo("0xa"),bo("0x1e")];class _o extends t.Plugin{[bo("0x5")](){const t=this[bo("0x10")],e=t.plugins.get("TrackChangesEditing"),n=t[bo("0x6")];for(const r of Eo){if(!t[bo("0xc")][bo("0x2")](r))continue;const o=r[bo("0xe")](0,-7)[bo("0x26")](),i=bo("0x22")+o[bo("0x21")]();e[bo("0x18")](o,[o]),e[bo("0x23")].registerAttributeLabel(o,Jr(n,i))}this[bo("0x1d")]()}_registerLegacyDescription(){const t=this.editor,e=t[bo("0x6")],n=t[bo("0xc")][bo("0xf")](bo("0x1f"));function r(t,r){n._descriptionFactory[bo("0x8")]((n=>{if("formatInline"!=n[bo("0x17")])return;const{data:o}=n;return o&&o[bo("0x9")]===t?o.commandParams[0].forceValue?{type:bo("0x1"),content:Jr(e,bo("0x1b"),r)}:{type:bo("0x1"),content:Jr(e,bo("0xb"),r)}:void 0}))}r(bo("0x7"),Jr(e,bo("0x13"))),r(bo("0x15"),Jr(e,bo("0xd"))),r(bo("0x3"),Jr(e,bo("0x14"))),r(bo("0x1a"),Jr(e,"FORMAT_CODE")),r(bo("0x1c"),Jr(e,bo("0x25"))),r(bo("0x12"),Jr(e,bo("0x20"))),r(bo("0x11"),Jr(e,bo("0x19")))}}const To=["name","commands","format","filter","$root","_descriptionFactory","plugins","enableCommand","change","blockQuote","getSelectedBlocks","commandParams","markBlockFormat","checkChild","model","forceValue","parent","document","selection","has","schema","BlockQuoteEditing","locale","get","editor","registerDescriptionCallback","afterInit"];var yo,Co;yo=To,Co=167,function(t){for(;--t;)yo.push(yo.shift())}(++Co);const Ao=function(t,e){return To[t-=0]};class ko extends t.Plugin{[Ao("0x15")](){const t=this[Ao("0x13")],e=t[Ao("0x11")];if(!t[Ao("0x1")][Ao("0xe")](Ao("0x10")))return;const n=t[Ao("0x1")][Ao("0x12")]("TrackChangesEditing"),r=this.editor[Ao("0x17")][Ao("0x12")](Ao("0x4"));n[Ao("0x2")](Ao("0x4"),((e,o={})=>{const i=this[Ao("0x13")][Ao("0x9")][Ao("0xc")][Ao("0xd")],s=o&&void 0!==o[Ao("0xa")]?o[Ao("0xa")]:!r.value;let x=[];if(s){const e=Array.from(i[Ao("0x5")]())[Ao("0x19")]((t=>Io(t)||function(t,e){const n=e[Ao("0x8")](t.parent,"blockQuote"),r=e[Ao("0x8")]([Ao("0x1a"),"blockQuote"],t);return n&&r}(t,this[Ao("0x13")].model[Ao("0xf")])));x=S(e,t[Ao("0x9")])}else{const e=Array.from(i[Ao("0x5")]())[Ao("0x19")]((t=>Io(t)));x=S(e,t.model)}t[Ao("0x9")][Ao("0x3")]((()=>{for(const t of x)n[Ao("0x7")](t,{commandName:Ao("0x4"),commandParams:[{forceValue:s}]})}))})),n[Ao("0x0")][Ao("0x14")]((t=>{const{data:n}=t;if(n&&Ao("0x4")==n.commandName){const t=Jr(e,"ELEMENT_BLOCK_QUOTE");return n[Ao("0x6")][0][Ao("0xa")]?{type:"format",content:Jr(e,"*Set format:* %0",t)}:{type:Ao("0x18"),content:Jr(e,"*Remove format:* %0",t)}}}))}}function Io(t){return Ao("0x4")==t[Ao("0xb")][Ao("0x16")]}const Ro=["plugins","TrackChangesEditing","commands","ckbox"];var So,vo;So=Ro,vo=369,function(t){for(;--t;)So.push(So.shift())}(++vo);const No=function(t,e){return Ro[t-=0]};class Lo extends t.Plugin{afterInit(){const t=this.editor;t[No("0x1")].get(No("0x2"))&&t[No("0x3")].get(No("0x0")).enableCommand(No("0x2"))}}const Mo=["CodeBlock","selection","schema","*Set format:* %0","from","locale","registerElementLabel","plugins","format","toLowerCase","parent","_descriptionFactory","get","type","getSelectedBlocks","afterInit","commandParams","ELEMENT_CODE_BLOCK","markBlockFormat","model","TrackChangesEditing","find","registerDescriptionCallback","languages","language","editor","label","isLimit","filter","config","enableCommand","commandName","change","codeBlock","value","name","rootElement","has","indentCodeBlock","forceValue"];var wo,Oo;wo=Mo,Oo=446,function(t){for(;--t;)wo.push(wo.shift())}(++Oo);const Fo=function(t,e){return Mo[t-=0]};class Do extends t.Plugin{[Fo("0x9")](){const t=this[Fo("0x13")];if(!t[Fo("0x1")][Fo("0x1f")](Fo("0x22")))return;const e=t[Fo("0x1")].get(Fo("0xe")),n=t[Fo("0x27")],r=t[Fo("0x17")][Fo("0x6")](Fo("0x1b"))[Fo("0x11")],o=t.commands[Fo("0x6")](Fo("0x1b"));e.enableCommand(Fo("0x20")),e[Fo("0x18")]("outdentCodeBlock"),e.enableCommand(Fo("0x1b"),((n,i={})=>{const s=t[Fo("0xd")],x=t[Fo("0xd")].document[Fo("0x23")],a=i&&void 0!==i.forceValue?i[Fo("0x21")]:!o[Fo("0x1c")];let c;i[Fo("0x12")]||(i[Fo("0x12")]=r[0][Fo("0x12")]),c=a?Array[Fo("0x26")](x[Fo("0x8")]())[Fo("0x16")]((t=>{return Bo(t)||(e=t,n=s[Fo("0x24")],!e.is(Fo("0x1e"))&&!n[Fo("0x15")](e)&&n.checkChild(e[Fo("0x4")],Fo("0x1b")));var e,n})):Array[Fo("0x26")](x[Fo("0x8")]())[Fo("0x16")]((t=>Bo(t)));const l=S(c,s);s[Fo("0x1a")]((()=>{for(const t of l)e[Fo("0xc")](t,{commandName:Fo("0x1b"),commandParams:[{...i,forceValue:a}],formatGroupId:"blockName"})}))})),e[Fo("0x5")][Fo("0x0")](Fo("0x1b"),(t=>Jr(n,Fo("0xb"),t))),e._descriptionFactory[Fo("0x10")]((t=>{if("formatBlock"!=t[Fo("0x7")])return;const e=n.t,{data:o}=t;if(!o||Fo("0x1b")!=o[Fo("0x19")])return;const i=o.commandParams[0][Fo("0x12")],s=e(r[Fo("0xf")]((t=>t.language===i))[Fo("0x14")])[Fo("0x3")]();return o[Fo("0xa")][0][Fo("0x21")]?{type:Fo("0x2"),content:Jr(n,Fo("0x25"),Jr(n,Fo("0xb"),1)+" ("+s+")")}:{type:Fo("0x2"),content:Jr(n,"*Remove format:* %0",Jr(n,Fo("0xb"),1))}}))}}function Bo(t){return Fo("0x1b")==t[Fo("0x1d")]}const Po=["TrackChangesEditing","get","addCommentThread","has","afterInit","CommentsEditing","enableCommand","editor","plugins"];var Uo,jo;Uo=Po,jo=331,function(t){for(;--t;)Uo.push(Uo.shift())}(++jo);const Go=function(t,e){return Po[t-=0]};class Vo extends t.Plugin{[Go("0x6")](){const t=this[Go("0x0")];t[Go("0x1")][Go("0x5")](Go("0x7"))&&t[Go("0x1")][Go("0x3")](Go("0x2"))[Go("0x8")](Go("0x4"))}}var Ho=n(181);const zo=["ck-suggestion-marker-","addHighlight","TrackChangesEditing","hasAttribute","plugins","createUIElement","test","listItem","createRangeOn","markerName","getAttribute","elementEnd","getCustomProperty","bindElementToMarker","schema","get","push","span","markerRange","isAtEnd","isLimit","consumable","previousPosition","ck-suggestion-marker--active","addClass","getWalker","element","includes","isBlock","model","writer","nextSibling"];var Wo,Ko;Wo=zo,Ko=415,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.getItems())o[qo("0x4")](t)&&r[qo("0x11")](n[qo("0x9")](o));return r}function $o(t,e,{showActiveMarker:n=!0}={}){const r=t[qo("0x5")][qo("0x10")](qo("0x3"));return(o,i,s)=>{if(!s[qo("0x16")][qo("0x7")](i.markerRange,o.name))return;const x=i[qo("0x13")][qo("0x1a")](),a=i[qo("0x13")].start,c=t[qo("0x1e")][qo("0xf")];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.toViewElement(e);if(n&&n[qo("0xd")](qo("0x2")))return;qo("0xc")==t.type&&c[qo("0x1d")](e)&&!c[qo("0x15")](e)&&(e[qo("0x0")]||a[qo("0x14")]?l&&l.parent==e||(l=e,f(t[qo("0x17")]),g=!0):u=u||t.previousPosition)}function f(t){const o=s.writer[qo("0x6")](qo("0x12"),{class:qo("0x1")+e}),x=s.mapper.toViewPosition(t);n&&r.activeMarkers[qo("0x1c")](i[qo("0xa")])&&s.writer[qo("0x19")](qo("0x18"),o),s[qo("0x1f")].insert(x,o),s.mapper[qo("0xe")](o,i[qo("0xa")])}d||g||!u||f(u)}}const Zo=["editing","getFirstRange","high","get","document","mapper","isCollapsed","showSuggestionHighlights","downcastDispatcher","model","unbindElementFromMarkerName","requires","forward","createRange","merge","enableCommand","editor","deleteForward","root","buffer","addMarker:suggestion:deletion","options","writer","remove","selection","batch","start","enqueueChange","commands","bind","delete","TrackChangesEditing","init","setSelection","markerName","modifySelection","end"];var Yo,Jo;Yo=Zo,Jo=162,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("0x22")](){return[Ho.Delete]}[Qo("0x12")](){const t=this[Qo("0x2")],e=t.plugins[Qo("0x1a")](Qo("0x11"));e[Qo("0x1")](Qo("0x10"));const n=t[Qo("0xe")][Qo("0x1a")](Qo("0x3"));e.enableCommand(Qo("0x3"),((e,r={})=>{const o=t[Qo("0x20")].createSelection(t.model[Qo("0x1b")][Qo("0xa")]);o[Qo("0x1d")]&&t[Qo("0x20")][Qo("0x15")](o,{direction:Qo("0x23"),unit:r.unit});const i=o[Qo("0x18")](),x=s.LiveRange.fromRange(i);let a;e(r),a="$graveyard"==x[Qo("0x4")].rootName?t[Qo("0x20")][Qo("0x24")](i[Qo("0xc")]):t[Qo("0x20")][Qo("0x24")](x.start,x[Qo("0x16")]),x.detach(),t[Qo("0x20")][Qo("0xd")](n[Qo("0x5")][Qo("0xb")],(t=>{n.buffer.lock(),t[Qo("0x13")](t[Qo("0x24")](a.end)),n[Qo("0x5")].unlock()}))})),t[Qo("0x17")][Qo("0x1f")].on(Qo("0x6"),$o(t,Qo("0x0")),{priority:Qo("0x19")}),t.data[Qo("0x1f")].on("addMarker:suggestion:deletion",((e,n,r)=>{r[Qo("0x7")][Qo("0x1e")]&&$o(t,Qo("0x0"),{showActiveMarker:!1})[Qo("0xf")](this)(e,n,r)}),{priority:Qo("0x19")}),t.editing[Qo("0x1f")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const r=n.mapper.markerNameToElements(e.markerName);if(r)for(const t of r)t.is("uiElement")&&(n[Qo("0x1c")][Qo("0x21")](t,e[Qo("0x14")]),n[Qo("0x8")][Qo("0x9")](t))}),{priority:"high"})}}const ei=["deletion","createPositionAt","getAttribute","toUpperCase","has","after","getRanges","end","getSelectedBlocks","listIndent","type","from","markMultiRangeBlockFormat","*Change to:* %0","selection","findIndex","registerDescriptionCallback","list.multiBlock","detach","paragraph","listItemId","isObject","DocumentListEditing","document","commands","getFirstRange","isFirstBlockOfListItem","push","numberedList","splitListItemBefore","createRange","commandParams","ELEMENT_","nodeAfter","*Merge:* %0","editor","formatInline","splitListItemAfter","accept","next","config","commandName","*Format:* remove from %0","get","fromRange","multipleBlocks","add","_LIST","map","setSelection","ELEMENT_BULLETED_LIST","model","*Indent:* %0","change","DocumentListUtils","indentList","_suggestionFactory","registerElementLabel","outdentList","ELEMENT_NUMBERED_LIST","enableCommand","hasAttribute","formatBlock","nextSibling","_descriptionFactory","value","mergeListItemBackward","schema","execute","format","markBlockFormat","locale","start","plugins","*Outdent:* %0","documentList","refresh","TrackChangesEditing","listType","before","bulletedList"];var ni,ri;ni=ei,ri=474,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[oi("0x2f")];if(!t[oi("0x4")][oi("0x10")](oi("0x22")))return;const e=t[oi("0x2")],n=t[oi("0x4")][oi("0x37")](oi("0x8")),r=t[oi("0x4")][oi("0x37")](oi("0x42"));function o(e){return()=>{const o=t.commands[oi("0x37")](e);if(o.value&&!t[oi("0x34")][oi("0x37")](oi("0x1d")))return void t[oi("0x50")](oi("0x1f"),{});let i=Array[oi("0x17")](t[oi("0x3f")][oi("0x23")][oi("0x1a")][oi("0x14")]());if(a(e)){i=r.expandListBlocksToCompleteList(i);const t=[];for(const e of i)r[oi("0x26")](e)&&t.push(e);i=t}t[oi("0x3f")].change((()=>{n[oi("0x18")](i,{commandName:e,commandParams:[{forceValue:!o[oi("0x4d")]}],formatGroupId:oi("0x9")},[],"documentList")}))}}function i(e){return()=>{const r=function(t){let e=Array[oi("0x17")](t);const n=e[oi("0x1b")]((t=>!t[oi("0x49")](oi("0x20"))));return n>-1&&(e=e.slice(0,n)),e}(t[oi("0x3f")][oi("0x23")][oi("0x1a")][oi("0x14")]()),o=r[r.length-1],i=t[oi("0x3f")].schema[oi("0x21")](o)?oi("0x11"):oi("0x13"),s=t[oi("0x3f")][oi("0x2a")](t[oi("0x3f")].createPositionAt(r[0],oi("0xa")),t[oi("0x3f")][oi("0xd")](o,i));t.model[oi("0x41")]((()=>{n[oi("0x1")](s,{commandName:e,commandParams:[],formatGroupId:oi("0x9")},function(t){const e=new Set;for(const n of t){let t=n[oi("0x4b")];for(;t&&t.getAttribute(oi("0x15"))>n[oi("0xe")](oi("0x15"));)e[oi("0x3a")](t),t=t[oi("0x4b")]}return Array[oi("0x17")](e)}(r))}))}}function x(e){return()=>{const r=t[oi("0x3f")][oi("0x23")][oi("0x1a")][oi("0x14")]()[oi("0x33")]()[oi("0x4d")],o=t[oi("0x3f")][oi("0xd")](r,oi("0xa")),i=t[oi("0x3f")].createPositionAt(r,0),s=t[oi("0x3f")][oi("0x2a")](o,i);t[oi("0x3f")][oi("0x41")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:oi("0x9")})}))}}function a(e){const n=t[oi("0x24")][oi("0x37")](oi("0xb")).value,r=t[oi("0x24")][oi("0x37")](oi("0x28"))[oi("0x4d")];return oi("0x28")===e?n:r}n[oi("0x48")](oi("0x28"),o(oi("0x28"))),n.enableCommand(oi("0xb"),o("bulletedList")),n[oi("0x48")](oi("0x43"),i(oi("0x43"))),n[oi("0x48")]("outdentList",i(oi("0x46"))),n[oi("0x48")](oi("0x31"),x(oi("0x31"))),n[oi("0x48")](oi("0x29"),x(oi("0x29"))),n[oi("0x4c")][oi("0x45")]((function(e){const n=!t[oi("0x3f")][oi("0x4f")][oi("0x21")](e),r=e.previousSibling,o=e[oi("0x4b")],i=e.getAttribute(oi("0x20")),s=!r||r[oi("0xe")]("listItemId")!==i,x=!o||o[oi("0xe")](oi("0x20"))!==i;return n&&Boolean(i)&&s&&x}),(t=>Jr(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[oi("0x1c")]((function(n){if("formatBlock"!=n[oi("0x16")]&&oi("0x30")!=n[oi("0x16")])return;const{data:r}=n;if(!r)return;let o,i,s,x;switch(r[oi("0x35")]){case oi("0xb"):s=r.commandParams[0].forceValue,x=a(r[oi("0x35")]),o=s?"*Format:* insert into %0":oi("0x36"),!x&&t[oi("0x34")][oi("0x37")]("list.multiBlock")||(o=oi("0x19")),i={type:oi("0x0"),content:Jr(e,o,Jr(e,oi("0x3e")))};break;case oi("0x28"):s=r.commandParams[0].forceValue,x=a(r[oi("0x35")]),o=s?"*Format:* insert into %0":oi("0x36"),!x&&t[oi("0x34")][oi("0x37")](oi("0x1d"))||(o=oi("0x19")),i={type:"format",content:Jr(e,o,Jr(e,oi("0x47")))};break;case"indentList":o=oi("0x40"),i={type:oi("0x0"),content:Jr(e,o,Jr(e,"ELEMENT_LIST_ITEM"))};break;case oi("0x46"):o=function(t){const e=t[oi("0x25")]();let n=e[oi("0x3")][oi("0x2d")];for(;n&&e.containsItem(n);){if(n.getAttribute(oi("0x15"))>0)return!1;n=n[oi("0x4b")]}return!0}(n)?Jr(e,oi("0x36"),Jr(e,function(t){const e=t.getFirstRange()[oi("0x3")].nodeAfter;return oi("0x2c")+e[oi("0xe")](oi("0x9"))[oi("0xf")]()+oi("0x3b")}(n))):Jr(e,oi("0x5"),Jr(e,"ELEMENT_LIST_ITEM")),i={type:oi("0x0"),content:o};break;case oi("0x4e"):case"mergeListItemForward":!1===r[oi("0x39")]&&(o=oi("0x2e"),i={type:oi("0xc"),content:Jr(e,o,Jr(e,"ELEMENT_LIST_ITEM"))})}return i})),n[oi("0x44")].registerCustomCallback(oi("0x4a"),oi("0x6"),oi("0x32"),(function(e,n){const r=[];for(let n of e)n[oi("0x3")][oi("0x2d")]===n[oi("0x13")].parent&&(n=t[oi("0x3f")][oi("0x2a")](t[oi("0x3f")][oi("0xd")](n.start[oi("0x2d")],0))),r[oi("0x27")](n);t[oi("0x3f")][oi("0x41")]((e=>{const o=t[oi("0x3f")][oi("0x23")][oi("0x1a")],i=Array[oi("0x17")](o[oi("0x12")]())[oi("0x3c")]((t=>s.LiveRange[oi("0x38")](t)));e[oi("0x3d")](r),t[oi("0x24")][oi("0x37")](n[oi("0x35")])[oi("0x7")](),n[oi("0x2b")][oi("0x27")]({forceDefaultExecution:!0}),t[oi("0x50")](n.commandName,...n[oi("0x2b")]),e.setSelection(i);for(const t of i)t[oi("0x1e")]()}))}))}}const si=["commandParams","bind","DocumentListUtils","startIndex","get","_descriptionFactory","handleDescriptions","DocumentListPropertiesEditing","listReversed","_getTranslationKeyForListStyle","numbered","document","getListTypeFromListStyleType","handleListStyleCommand","isListItemBlock","replace","listStyle","*Format:* set order to reversed","TrackChangesEditing","afterInit","enableCommand","DocumentListPropertiesUtils","format","*Format:* set order to regular","locale","has","from","toUpperCase","model","_getSuggestionBlocks","handleListReversedCommand","filter","*Format:* set start index to %0","expandListBlocksToCompleteList","_getSuggestionBlocksForListStyle","*Change to:* %0","editor","styles","listStart","_LIST_","change","plugins","getAttribute","length","selection","config","push","handleListStartCommand","registerDescriptionCallback","commandName","reversed","type"];var xi,ai;xi=si,ai=374,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0x9")](){if(!this.editor[ci("0x1f")][ci("0xf")](ci("0x31")))return;const t=this[ci("0x1a")][ci("0x23")].get("list.properties"),e=this[ci("0x1a")].plugins[ci("0x2e")](ci("0x8"));t[ci("0x1b")]&&e[ci("0xa")]("listStyle",this[ci("0x3")][ci("0x2b")](this)),t[ci("0x28")]&&e[ci("0xa")](ci("0x32"),this[ci("0x14")][ci("0x2b")](this)),t[ci("0x2d")]&&e[ci("0xa")](ci("0x1c"),this[ci("0x25")][ci("0x2b")](this)),e[ci("0x2f")][ci("0x26")](this[ci("0x30")][ci("0x2b")](this))}[ci("0x3")](t,e={}){const n=this.editor[ci("0x1f")][ci("0x2e")](ci("0x8")),r=this[ci("0x18")]();this[ci("0x1a")][ci("0x12")][ci("0x1e")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:ci("0x6"),commandParams:[{type:e[ci("0x29")]}],formatGroupId:"listStyle"})}))}[ci("0x14")](t,e={}){const n=this.editor[ci("0x1f")].get(ci("0x8")),r=this.editor[ci("0x1f")][ci("0x2e")](ci("0x2c")),o=this._getSuggestionBlocks((t=>r[ci("0x4")](t)&&ci("0x0")===t[ci("0x20")]("listType")));null!==o&&this.editor[ci("0x12")][ci("0x1e")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:"listReversed",commandParams:[{reversed:e[ci("0x28")]}],formatGroupId:"listReversed"})}))}[ci("0x25")](t,e={}){const n=this[ci("0x1a")][ci("0x1f")].get("TrackChangesEditing"),r=this[ci("0x1a")][ci("0x1f")].get("DocumentListUtils"),o=this[ci("0x13")]((t=>r[ci("0x4")](t)&&ci("0x0")===t[ci("0x20")]("listType")));null!==o&&this[ci("0x1a")][ci("0x12")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:ci("0x1c"),commandParams:[{startIndex:e[ci("0x2d")]}],formatGroupId:ci("0x1c")})}))}[ci("0x30")](t){if("formatBlock"!=t.type&&"formatInline"!=t[ci("0x29")])return;const e=this[ci("0x1a")][ci("0xe")],{data:n}=t;if(!n)return;let r,o;switch(n[ci("0x27")]){case ci("0x6"):r=ci("0x19"),o={type:ci("0xc"),content:Jr(e,r,Jr(e,this[ci("0x33")](n[ci("0x2a")][0][ci("0x29")])))};break;case ci("0x32"):r=n.commandParams[0][ci("0x28")]?ci("0x7"):ci("0xd"),o={type:ci("0xc"),content:Jr(e,r)};break;case ci("0x1c"):r=ci("0x16"),o={type:ci("0xc"),content:Jr(e,r,n[ci("0x2a")][0][ci("0x2d")])}}return o}_getSuggestionBlocksForListStyle(){const t=this[ci("0x1a")][ci("0x1f")][ci("0x2e")](ci("0x2c"));let e=Array[ci("0x10")](this.editor[ci("0x12")][ci("0x1")][ci("0x22")].getSelectedBlocks());return e[ci("0x24")](...t[ci("0x17")](e)),e=[...new Set(e)],e}[ci("0x13")](t){const e=this.editor[ci("0x1f")].get("DocumentListUtils");let n=Array[ci("0x10")](this[ci("0x1a")][ci("0x12")][ci("0x1")].selection.getSelectedBlocks())[ci("0x15")](t);if(!n[ci("0x21")])return null;n=e[ci("0x17")](n);const r=[];for(const t of n)e.isFirstBlockOfListItem(t)&&r[ci("0x24")](t);return r}[ci("0x33")](t){return"ELEMENT_"+this[ci("0x1a")].plugins.get(ci("0xb"))[ci("0x2")](t)[ci("0x11")]()+ci("0x1d")+t[ci("0x11")]()[ci("0x5")](/-/g,"_")}}var ui=n(331);const di=["markerName","writer","data","setSelection","editing","fromRange","createRange","remove","parent","document","hasClass","getFirstRange","end","change","high","enterBlock","afterExecute","markerNameToElements","plugins","ck-suggestion-marker-split","createPositionAt","unbindElementFromMarkerName","mapper","addMarker:suggestion:insertion","get","fire","enableCommand","editor","showSuggestionHighlights","getFirstPosition","model","commands","requires","TrackChangesEditing","selection","split","enter","nextSibling","downcastDispatcher"];var gi,fi;gi=di,fi=190,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("0x25")](){return[ui.Enter]}init(){const t=this[mi("0x20")],e=t[mi("0x17")][mi("0x1d")](mi("0x26")),n=t[mi("0x24")][mi("0x1d")](mi("0x2"));e[mi("0x1f")](mi("0x2"),(()=>{t.model[mi("0x12")]((r=>{const o=t[mi("0x23")][mi("0xe")][mi("0x0")],i=o[mi("0x22")](),x=s.LiveRange[mi("0xa")](o[mi("0x10")]());if(n[mi("0x14")](r)){const n=t[mi("0x23")][mi("0x19")](i[mi("0xd")][mi("0x3")],0),o=r[mi("0xb")](i,n);e.markInsertion(o)}else r[mi("0x8")](r.createRange(x[mi("0x11")]));x.detach(),n[mi("0x1e")](mi("0x15"),{writer:r})}))})),t[mi("0x9")][mi("0x4")].on(mi("0x1c"),$o(t,mi("0x1")),{priority:"high"}),t[mi("0x9")].downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const r=n[mi("0x1b")][mi("0x16")](e[mi("0x5")]);if(r)for(const t of r)t[mi("0xf")](mi("0x18"))&&(n[mi("0x1b")][mi("0x1a")](t,e[mi("0x5")]),n[mi("0x6")][mi("0xc")](t))}),{priority:mi("0x13")}),t[mi("0x7")][mi("0x4")].on(mi("0x1c"),((e,n,r)=>{r.options[mi("0x21")]&&$o(t,mi("0x1"),{showActiveMarker:!1}).bind(this)(e,n,r)}),{priority:"high"})}}const pi=["get","TrackChangesEditing","createPositionAt","plugins","findPrevious","findByTextCallback","getMarkersGroup","model","replaceAll","FindAndReplaceEditing","end","item","afterInit","start","editor","string","handleFindCommand","filter","suggestion:deletion","enableCommand","markers","_isInDeletionRange","has","getIntersection","getRange","FindAndReplaceUtils","findNext"];var bi,Ei;bi=pi,Ei=483,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);const _i=function(t,e){return pi[t-=0]};class Ti extends t.Plugin{[_i("0xf")](){if(!this[_i("0x11")][_i("0x6")][_i("0x19")](_i("0xc")))return;const t=this[_i("0x11")].plugins[_i("0x3")](_i("0x4"));t[_i("0x16")]("find",this[_i("0x13")].bind(this)),t[_i("0x16")](_i("0x2")),t[_i("0x16")](_i("0x7")),t.enableCommand("replace"),t[_i("0x16")](_i("0xb"))}[_i("0x13")](t,e,n={}){const r=this[_i("0x11")][_i("0x6")][_i("0x3")](_i("0x1"));if(void 0!==n)return t((t=>(_i("0x12")==typeof e?r[_i("0x8")](e,n):e)(t)[_i("0x14")]((e=>!1===this[_i("0x18")](e,t[_i("0xe")])))),n)}[_i("0x18")](t,e){const n=this[_i("0x11")].model.createRange(this[_i("0x11")][_i("0xa")][_i("0x5")](e,t[_i("0x10")]),this[_i("0x11")].model[_i("0x5")](e,t[_i("0xd")]));for(const t of this[_i("0x11")][_i("0xa")][_i("0x17")][_i("0x9")](_i("0x15")))if(null!==n[_i("0x1a")](t[_i("0x0")]()))return!0;return!1}}const yi=["get","FORMAT_FONT_SIZE","FontSize","*Set font background color:* %0","config","locale","FontFamilyEditing","trim","_descriptionFactory","fontSize","*Set font color:* %0","commandName","FORMAT_FONT_BACKGROUND","TrackChangesEditing","toLowerCase","fontColor","afterInit","format","registerAttributeLabel","normalizeSizeOptions","fontBackgroundColor","*Reset font family*","model","_registerLegacyDescription","FontColorEditing","fontBackgroundColor.colors","commandParams","value","*Set font family:* %0","editor","FontBackgroundColorEditing","_enableDefaultAttributesIntegration","FORMAT_FONT_FAMILY","*Reset font size*","FontSizeEditing","fontFamily","find","label","fontSize.options","plugins"];var Ci,Ai;Ci=yi,Ai=334,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Ii=[{pluginName:ki("0x14"),commandName:ki("0x23")},{pluginName:ki("0x20"),commandName:ki("0x15")},{pluginName:ki("0xa"),commandName:ki("0x1")},{pluginName:ki("0x10"),commandName:ki("0x6")}];class Ri extends t.Plugin{[ki("0x2")](){const t=this.editor[ki("0x1f")],e=this[ki("0xf")][ki("0x19")][ki("0x1a")](ki("0x27"));for(const{pluginName:t,commandName:n}of Ii)this[ki("0xf")][ki("0x19")].has(t)&&e[ki("0x11")](n,[n]);t.t,e[ki("0x22")][ki("0x4")](ki("0x23"),Jr(t,ki("0x1b"))),e._descriptionFactory.registerAttributeLabel("fontFamily",Jr(t,ki("0x12"))),e._descriptionFactory[ki("0x4")](ki("0x1"),Jr(t,"FORMAT_FONT_COLOR")),e._descriptionFactory[ki("0x4")]("fontBackgroundColor",Jr(t,ki("0x26"))),this[ki("0x9")]()}[ki("0x9")](){const t=this[ki("0xf")],e=t[ki("0x1f")];t.plugins[ki("0x1a")](ki("0x27"))[ki("0x22")].registerDescriptionCallback((t=>{const n=e.t;if("formatInline"!=t.type)return;const{data:r}=t;if(null!=r){if("fontSize"==r[ki("0x25")]){const t=r[ki("0xc")][0][ki("0xd")];if(t){const r=n(this.editor[ki("0x19")][ki("0x1a")](ki("0x1c"))[ki("0x5")](this[ki("0xf")][ki("0x1e")][ki("0x1a")](ki("0x18")))[ki("0x16")]((e=>e.model==t)).title)[ki("0x0")]();return{type:ki("0x3"),content:Jr(e,"*Set font size:* %0",r)}}return{type:ki("0x3"),content:Jr(e,ki("0x13"))}}if(ki("0x15")==r.commandName){const t=r[ki("0xc")][0].value;return t?{type:"format",content:Jr(e,ki("0xe"),t)}:{type:ki("0x3"),content:Jr(e,ki("0x7"))}}if(ki("0x1")==r[ki("0x25")]){const t=r[ki("0xc")][0].value;if(t){const r=(0,o.normalizeColorOptions)(this.editor[ki("0x1e")].get("fontColor.colors"))[ki("0x16")]((e=>e[ki("0x8")]==t));let i=t,s="";return r&&(i=r[ki("0x17")],s=n(i)[ki("0x0")]()),{type:ki("0x3"),content:Jr(e,ki("0x24"),s)[ki("0x21")](),color:{value:t,title:s||i}}}return{type:"format",content:Jr(e,"*Reset font color*")}}if(ki("0x6")==r[ki("0x25")]){const t=r[ki("0xc")][0][ki("0xd")];if(t){const r=(0,o.normalizeColorOptions)(this[ki("0xf")][ki("0x1e")][ki("0x1a")](ki("0xb")))[ki("0x16")]((e=>e[ki("0x8")]==t));let i=t,s="";return r&&(i=r[ki("0x17")],s=n(i)[ki("0x0")]()),{type:"format",content:Jr(e,ki("0x1d"),s)[ki("0x21")](),color:{value:t,title:s||i}}}return{type:"format",content:Jr(e,"*Reset font background color*")}}}}))}}const Si=["plugins","entries","split","fontSize.options","*Remove all formatting*","TrackChangesEditing","fontSize","FontSize","join","boolean","formatInline","format","editor","fontColor.colors","_enableDefaultAttributesIntegration","charAt","locale","get","type","commands","model","normalizeSizeOptions","*Set format to:* %0","commandName","pasteFormat","afterInit","commandParams","slice","label","fontBackgroundColor","toUpperCase","fontColor","_registerLegacyDescription","formatBlock","copyFormat","length","config","toLowerCase","push"];var vi,Ni;vi=Si,Ni=439,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Si[t-=0]};class Mi extends t.Plugin{[Li("0xf")](){const t=this[Li("0x2")],e=t[Li("0x1d")][Li("0x7")](Li("0x22")),n=t[Li("0x9")][Li("0x7")](Li("0x18")),r=t.commands[Li("0x7")]("pasteFormat");n&&r&&(e[Li("0x4")](Li("0xe")),e.enableCommand(Li("0x18")),this[Li("0x16")]())}[Li("0x16")](){const t=this.editor,e=t[Li("0x6")];t.plugins[Li("0x7")]("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((n=>{if(Li("0x17")!=n[Li("0x8")]&&Li("0x0")!=n[Li("0x8")])return;const{data:r}=n;if(r&&Li("0xe")===r[Li("0xd")]){const n=[],o=r[Li("0x10")][0];for(const[e,r]of Object[Li("0x1e")](o))n[Li("0x1c")](wi(t,e,r));return n[Li("0x19")]?{type:Li("0x1"),content:Jr(e,Li("0xc"),n[Li("0x25")](", "))}:{type:"format",content:Jr(e,Li("0x21"))}}}))}}function wi(t,e,n){const r=t[Li("0x6")].t,i=e[Li("0x1f")](/(?=[A-Z])/)[Li("0x25")](" "),s=r(i[Li("0x5")](0)[Li("0x14")]()+i[Li("0x11")](1)).toLowerCase();if(Li("0x26")==typeof n)return s;if(Li("0x15")===e||Li("0x13")===e){const e=(0,o.normalizeColorOptions)(t[Li("0x1a")].get(Li("0x3"))).find((t=>t[Li("0xa")]==n));return s+" ("+(e?r(e[Li("0x12")]).toLowerCase():n)+")"}if(Li("0x23")===e&&isNaN(parseFloat(n))){const e=t[Li("0x1d")].get(Li("0x24"))[Li("0xb")](t[Li("0x1a")][Li("0x7")](Li("0x20"))).find((t=>t[Li("0xa")]==n));return s+" ("+(e?r(e.title)[Li("0x1b")]():n)+")"}return s+" ("+n+")"}const Oi=["name","_getHeadingLevel","plugins","locale","_descriptionFactory","HeadingEditing","editor","has","ELEMENT_HEADING_CUSTOM","heading","afterInit","_enableDefaultAttributesIntegration","get","model","TrackChangesEditing","paragraph","title","_registerLegacyDescription","match","type","registerElementLabel","ELEMENT_HEADING","_headingOptions","*Change to:* %0","commandName","format","find"];var Fi,Di;Fi=Oi,Di=161,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Bi=function(t,e){return Oi[t-=0]};class Pi extends t.Plugin{[Bi("0xb")](){const t=this.editor;if(!t[Bi("0x3")][Bi("0x8")](Bi("0x6")))return;this._headingOptions=t.config.get("heading.options");const e=t[Bi("0x4")],n=t[Bi("0x3")][Bi("0xd")](Bi("0xf"));n[Bi("0xc")](Bi("0xa"));for(const t of this[Bi("0x17")])Bi("0x10")!=t[Bi("0xe")]&&n[Bi("0x5")][Bi("0x15")](t[Bi("0xe")],(n=>{const r=this._getHeadingLevel(t.model);return null!==r?(s=n,x=r,Jr(e,Bi("0x16"),[s,x])):(o=n,i=t[Bi("0x11")],Jr(e,"ELEMENT_HEADING_CUSTOM",[o,i]));var o,i,s,x}));this[Bi("0x12")]()}[Bi("0x12")](){const t=this[Bi("0x7")],e=t[Bi("0x4")];t[Bi("0x3")].get(Bi("0xf"))[Bi("0x5")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Bi("0x14")])return;const{data:n}=t;if(n&&Bi("0xa")==n[Bi("0x19")]){const t=n.commandParams[0].value,s=this[Bi("0x2")](t);if(null!==s)return{type:Bi("0x1a"),content:Jr(e,Bi("0x18"),(1,i=s,Jr(e,Bi("0x16"),[1,i])))};const x=this[Bi("0x17")][Bi("0x0")]((e=>e[Bi("0xe")]===t))[Bi("0x11")];return{type:Bi("0x1a"),content:Jr(e,"*Change to:* %0",(r=1,o=x,Jr(e,Bi("0x9"),[r,o])))}}var r,o,i}))}_getHeadingLevel(t){var e,n;const r=t[Bi("0x13")](/^heading(\d+)/);if(r)return r[1];const o=null===(e=this._headingOptions)||void 0===e?void 0:e.find((e=>e[Bi("0xe")]==t));if(o&&o.view){const t=o.view,e=(null!==(n=t[Bi("0x1")])&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["*Set highlight:* %0","title","commandParams","HighlightEditing","color","TrackChangesEditing","highlight","type","_descriptionFactory","has","commandName","format","registerDescriptionCallback","get","highlight.options","*Remove highlight*","locale","config","registerAttributeLabel","plugins","model","afterInit","FORMAT_HIGHLIGHT","editor","_registerLegacyDescription","formatInline"];var ji,Gi;ji=Ui,Gi=498,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Vi=function(t,e){return Ui[t-=0]};class Hi extends t.Plugin{[Vi("0x11")](){const t=this.editor;if(!t[Vi("0xf")][Vi("0x5")](Vi("0x19")))return;const e=t[Vi("0xf")][Vi("0x9")]("TrackChangesEditing"),n=t[Vi("0xc")];e._enableDefaultAttributesIntegration(Vi("0x2"),["highlight"]),e[Vi("0x4")][Vi("0xe")]("highlight",Jr(n,Vi("0x12"))),this[Vi("0x14")]()}[Vi("0x14")](){const t=this[Vi("0x13")],e=t[Vi("0xc")];t[Vi("0xf")][Vi("0x9")](Vi("0x1"))._descriptionFactory[Vi("0x8")]((n=>{if(Vi("0x15")!=n[Vi("0x3")])return;const{data:r}=n;if(r&&"highlight"==r[Vi("0x6")]){const n=e.t,o=r[Vi("0x18")][0].value;if(o){const r=t[Vi("0xd")].get(Vi("0xa")).find((t=>t[Vi("0x10")]==o)),i=n(r[Vi("0x17")]).toLowerCase();return{type:Vi("0x7"),content:Jr(e,Vi("0x16"),i),color:{value:r[Vi("0x0")],title:r[Vi("0x17")]}}}return{type:"format",content:Jr(e,Vi("0xb"),Jr(e,Vi("0x12")))}}}))}}const zi=["div","conversion","editor","enableCommand","for","has","showSuggestionHighlights","dataDowncast","locale","createEmptyElement","ck-horizontal-line","insert","afterInit","TrackChangesEditing","ELEMENT_HORIZONTAL_LINE","_descriptionFactory","get","horizontalLine","HorizontalLineEditing","plugins","createContainerElement","elementToStructure","createPositionAt","registerElementLabel","addClass","high"];var Wi,Ki;Wi=zi,Ki=189,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[qi("0x15")];if(!t[qi("0xc")][qi("0x18")](qi("0xb")))return;t.plugins[qi("0x9")]("TrackChangesEditing")[qi("0x16")](qi("0xa"));const e=t.plugins[qi("0x9")](qi("0x6")),n=t[qi("0x1")];e[qi("0x8")][qi("0x10")](qi("0xa"),(t=>Jr(n,qi("0x7"),t))),t[qi("0x14")][qi("0x17")](qi("0x0"))[qi("0xe")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[qi("0x19")])return null;const r=e[qi("0xd")](qi("0x13")),o=e[qi("0x2")]("hr");return e[qi("0x11")](qi("0x3"),r),e[qi("0x4")](e[qi("0xf")](r,0),o),r},converterPriority:qi("0x12")})}}const $i=["_descriptionFactory","TrackChangesEditing","rawHtml","get","editor","nodeAfter","HtmlEmbed","*Change %0 content*","ELEMENT_HTML_EMBED","format","locale","plugins","_registerLegacyDescription","element","registerDescriptionCallback","htmlEmbed","getFirstRange","start","key","commandName","afterInit","value"];var Zi,Yi;Zi=$i,Yi=104,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return $i[t-=0]};class Qi extends t.Plugin{[Ji("0x4")](){const t=this.editor;if(!t[Ji("0x11")].has(Ji("0xc")))return;const e=t[Ji("0x11")][Ji("0x9")](Ji("0x7")),n=t[Ji("0x10")];e[Ji("0x6")].registerElementLabel(Ji("0x8"),(t=>Jr(n,"ELEMENT_HTML_EMBED",t))),e._enableDefaultAttributesIntegration(Ji("0x15"),[],[Ji("0x5")]),e[Ji("0x6")].registerDescriptionCallback((t=>{if("attribute"!=t.type)return;const{data:e}=t;if(e&&Ji("0x5")==e[Ji("0x2")]&&t[Ji("0x0")]()[Ji("0x1")][Ji("0xb")].is(Ji("0x13"),"rawHtml")){const t=Jr(n,"ELEMENT_HTML_EMBED");return{type:Ji("0xf"),content:Jr(n,Ji("0xd"),t)}}})),this[Ji("0x12")]()}_registerLegacyDescription(){const t=this[Ji("0xa")],e=t.locale;t[Ji("0x11")][Ji("0x9")](Ji("0x7"))[Ji("0x6")][Ji("0x14")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;if(n&&Ji("0x15")==n[Ji("0x3")]){const t=Jr(e,Ji("0xe"));return{type:Ji("0xf"),content:Jr(e,"*Change %0 content*",t)}}}))}}const ts=["document","element","registerDescriptionCallback","Inline image to block image","find","_descriptionFactory","toNext","_enableDefaultAttributesIntegration","editor","resizeImage","imageInline","model","TrackChangesEditing","detach","commandName","has","alt","discard","addObject","ImageResize","fromPosition","ImageCaptionEditing","key","start","accept","registerAttributeLabel","toPrevious","isEqual","registerElementLabel","type","markDeletion","findIndex","attribute","schema","markBlockFormat","nodeBefore","get","convertInlineImageToBlock","change","ImageUtils","format","getCaptionFromImageModelElement","uploadImage","FORMAT_IMAGE_SIZE","createRange","locale","width","registerCustomCallback","isCollapsed","previous","ImageEditing","filter","getFirstRange","*Set image width:* %0","imageTypeInline","imageTextAlternative","newValue","*Reset image width*","insertion","_suggestionFactory","_registerLegacyDescription","insertImage","toggleImageCaption","getClosestSelectedImageElement","enableCommand","Block image to inline image","isIntersecting","markInsertion","ImageInlineEditing","isOwn","resizedWidth","createRangeOn","imageCaption","getContainedElement","getSuggestionCallback","end","chain","forceDefaultExecution","deletion","isBefore","commandParams","imageTypeBlock","getNearestSelectionRange","afterInit","selection","ELEMENT_CAPTION","plugins","subType","forward","ImageBlockEditing","formatBlock","ELEMENT_INLINE_IMAGE","isBlockImage","convertBlockImageToInline","ELEMENT_IMAGE"];var es,ns;es=ts,ns=246,function(t){for(;--t;)es.push(es.shift())}(++ns);const rs=function(t,e){return ts[t-=0]};class os extends t.Plugin{[rs("0x1b")](){const t=this.editor;if(!t.plugins[rs("0x36")](rs("0x59")))return;const e=t.plugins.get(rs("0x33")),n=t[rs("0x1e")][rs("0x4b")](rs("0x4e")),r=t.locale;e[rs("0x8")](rs("0x5")),e[rs("0x2c")][rs("0x43")]("imageBlock",(t=>Jr(r,rs("0x26"),t))),e[rs("0x2c")].registerElementLabel(rs("0x31"),(t=>Jr(r,rs("0x23"),t))),e._descriptionFactory[rs("0x43")]("caption",(()=>Jr(r,rs("0x1d")))),t[rs("0x1e")][rs("0x36")]("ImageUploadEditing")&&e[rs("0x8")](rs("0x51")),t[rs("0x1e")][rs("0x36")](rs("0x21"))&&t[rs("0x1e")][rs("0x36")](rs("0xc"))&&(e[rs("0x8")]("imageTypeInline",((r,o)=>{const i=n.getClosestSelectedImageElement(t.model[rs("0x27")].selection);t.model[rs("0x4d")]((()=>{e[rs("0x49")](i,{commandName:rs("0x5d"),commandParams:[o]},[],"convertBlockImageToInline")}))})),e.enableCommand(rs("0x19"),((r,o)=>{t.model[rs("0x4d")]((i=>{let x=n.getClosestSelectedImageElement(t[rs("0x32")].document[rs("0x1c")]),a=i[rs("0xf")](x);const c=s.LivePosition.fromPosition(a[rs("0x3e")],rs("0x41")),l=s.LivePosition[rs("0x3b")](a[rs("0x13")],rs("0x2d"));e[rs("0x15")]((()=>r(o))),x=n.getClosestSelectedImageElement(t[rs("0x32")][rs("0x27")].selection),a=i[rs("0xf")](x);const u=i[rs("0x53")](c,l);c[rs("0x34")](),l.detach(),e[rs("0x49")](x,{commandName:"imageTypeInline",commandParams:[o]},[],rs("0x4c")),u[rs("0x3e")][rs("0x17")](a.start)&&e[rs("0xb")](i[rs("0x53")](u[rs("0x3e")],a[rs("0x3e")]),"convertInlineImageToBlock"),a[rs("0x13")][rs("0x17")](u[rs("0x13")])&&e[rs("0xb")](i.createRange(a[rs("0x13")],u.end),rs("0x4c"))}))})),e[rs("0x3")][rs("0x56")](rs("0x22"),rs("0x4c"),"join",(()=>!1)),e[rs("0x3")][rs("0x56")](rs("0x22"),rs("0x4c"),rs("0x3f"),(()=>!1)),e[rs("0x3")][rs("0x56")]("formatBlock",rs("0x4c"),rs("0x38"),e[rs("0x3")][rs("0x12")](rs("0x22"),"",rs("0x3f"))),e._suggestionFactory[rs("0x56")](rs("0x2"),rs("0x4c"),"join",(()=>!1)),e[rs("0x3")][rs("0x56")]("insertion",rs("0x4c"),"discard",(([n])=>{const r=e[rs("0x3")][rs("0x12")](rs("0x2"),"",rs("0x38"));let o=n.start,i=n[rs("0x13")];const s=t[rs("0x32")].schema[rs("0x1a")](o,"backward"),x=t.model[rs("0x48")][rs("0x1a")](i,rs("0x20"));s[rs("0x57")]&&(o=s[rs("0x3e")]),x.isCollapsed&&(i=x[rs("0x13")]),r([t[rs("0x32")].createRange(o,i)])})),e._suggestionFactory[rs("0x56")](rs("0x22"),"convertInlineImageToBlock",rs("0x14"),x),e[rs("0x3")][rs("0x56")]("insertion",rs("0x4c"),rs("0x14"),x)),t[rs("0x1e")][rs("0x36")](rs("0x3c"))&&(e.enableCommand(rs("0x6"),((r,o)=>{const i=t[rs("0x1e")][rs("0x4b")]("ImageCaptionUtils");let s=n[rs("0x7")](t.model[rs("0x27")][rs("0x1c")]),x=i[rs("0x50")](s);t[rs("0x32")].change((()=>{if(x)return void e[rs("0x45")](t[rs("0x32")].createRangeOn(x));const a=n[rs("0x24")](s);r(o),s=n[rs("0x7")](t[rs("0x32")][rs("0x27")].selection),x=i[rs("0x50")](s),e[rs("0xb")](t[rs("0x32")][rs("0xf")](x),a?null:rs("0x10"))}))})),e[rs("0x3")].registerCustomCallback(rs("0x2"),rs("0x10"),"chain",x));const o=[{type:rs("0x22"),subType:"imageStylePreApply"},{type:rs("0x2"),subType:"imageCaption"},{type:rs("0x22"),subType:rs("0x4c")},{type:rs("0x2"),subType:"convertInlineImageToBlock"}];function i(t,r){const i=o[rs("0x46")]((({type:e,subType:n})=>t[rs("0x44")]==e&&t.subType==n)),s=o[rs("0x46")]((({type:t,subType:e})=>r[rs("0x44")]==t&&r[rs("0x1f")]==e));if(i<0||s<0)return!1;const x=t[rs("0x5b")](),a=r[rs("0x5b")]();if((0==i||1==i)&&2==s&&x[rs("0xa")](a))return!0;if(2==i&&3==s){const t=e._findSuggestions(x,rs("0x2"))[rs("0x5a")]((({suggestion:t,meta:e})=>e[rs("0xd")]&&rs("0x4c")==t[rs("0x1f")]));if(t.length>1&&a.end[rs("0x42")](x[rs("0x3e")]))return!0;if(1==t.length&&(x[rs("0x3e")][rs("0x42")](a[rs("0x13")])||x[rs("0x13")][rs("0x42")](a.start)))return!0}if(3==i&&3==s&&x.start[rs("0x17")](a[rs("0x3e")])){const t=x.end.nodeAfter,e=a[rs("0x3e")][rs("0x4a")];return n[rs("0x24")](t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t.plugins[rs("0x36")](rs("0x3a"))&&(e._enableDefaultAttributesIntegration("resizeImage",[],[rs("0xe")]),e[rs("0x2c")][rs("0x40")](rs("0xe"),Jr(r,rs("0x52")))),t[rs("0x1e")][rs("0x36")]("ImageTextAlternativeEditing")&&e[rs("0x2e")](rs("0x5e"),[],[rs("0x37")]),e._descriptionFactory[rs("0x29")]((t=>{if(o[rs("0x2b")]((({type:e,subType:n})=>t.type==e&&t[rs("0x1f")]==n)))return t[rs("0x58")]?{}:void 0})),e[rs("0x2c")][rs("0x29")]((t=>{if(rs("0x2")==t[rs("0x44")]||rs("0x16")==t[rs("0x44")]){const e=t[rs("0x11")]();if(e&&e.is(rs("0x28"),"caption"))return{type:rs("0x2")==t.type?rs("0x39"):"removeObject",element:e,quantity:1}}})),e[rs("0x2c")][rs("0x29")]((t=>rs("0x22")==t[rs("0x44")]&&rs("0x4c")==t.subType?{type:rs("0x4f"),content:rs("0x2a")}:rs("0x22")==t[rs("0x44")]&&rs("0x25")==t[rs("0x1f")]?{type:rs("0x4f"),content:rs("0x9")}:void 0)),e[rs("0x2c")].registerDescriptionCallback((t=>{if(rs("0x47")!=t.type)return;const{data:e}=t;if(!e||rs("0x37")!=e[rs("0x3d")])return;const n=e[rs("0x0")];return n?{type:rs("0x4f"),content:Jr(r,"*Set image text alternative:* %0",'"'+n+'"')}:{type:"format",content:Jr(r,"*Remove image text alternative*")}})),this[rs("0x4")]()}[rs("0x4")](){const t=this[rs("0x2f")],e=t[rs("0x54")];t[rs("0x1e")][rs("0x4b")](rs("0x33"))[rs("0x2c")][rs("0x29")]((t=>{if(rs("0x22")!=t[rs("0x44")]&&"formatInline"!=t.type)return;const{data:n}=t;if(n){if("imageTextAlternative"==n[rs("0x35")]){const t=n.commandParams[0][rs("0x0")];return t?{type:rs("0x4f"),content:Jr(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:rs("0x4f"),content:Jr(e,"*Remove image text alternative*")}}if(rs("0x30")==n.commandName){const t=n[rs("0x18")][0][rs("0x55")];return t?{type:rs("0x4f"),content:Jr(e,rs("0x5c"),t)}:{type:rs("0x4f"),content:Jr(e,rs("0x1"))}}}}))}}const is=["*Replace image URL*","src","get","locale","format","_descriptionFactory","_registerLegacyDescription","afterInit","registerCustomCallback","getSuggestionCallback","newValue","_enableDefaultAttributesIntegration","plugins","attribute","registerDescriptionCallback","_suggestionFactory","commandName","TrackChangesEditing","replaceImageSource","editor","key","has","discard","type","formatBlock"];var ss,xs;ss=is,xs=211,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x15")](){if(!this[as("0x8")][as("0x1")][as("0xa")]("ImageEditing"))return;const t=this.editor[as("0x11")],e=this[as("0x8")][as("0x1")][as("0x10")](as("0x6"));e[as("0x0")]("replaceImageSource",[],[as("0xf")]),e[as("0x13")].registerDescriptionCallback((e=>{if(as("0x2")!=e[as("0xc")])return;const{data:n}=e;return n&&"src"==n[as("0x9")]?n[as("0x18")]&&n.oldValue?{type:as("0x12"),content:Jr(t,as("0xe"))}:{type:as("0x12"),content:""}:void 0})),this._handleLegacySuggestions()}_handleLegacySuggestions(){const t=this[as("0x8")][as("0x1")].get(as("0x6"));t[as("0x4")][as("0x16")](as("0xd"),as("0x7"),"accept",t[as("0x4")][as("0x17")](as("0xd"),null,as("0xb"))),t[as("0x4")][as("0x16")]("formatBlock",as("0x7"),as("0xb"),t[as("0x4")][as("0x17")](as("0xd"),null,"accept")),this[as("0x14")]()}[as("0x14")](){const t=this[as("0x8")],e=t.locale;t[as("0x1")][as("0x10")](as("0x6"))[as("0x13")][as("0x3")]((t=>{if(as("0xd")!=t[as("0xc")]&&"formatInline"!=t[as("0xc")])return;const{data:n}=t;return n&&as("0x7")===n[as("0x5")]?{type:as("0x12"),content:Jr(e,as("0xe"))}:void 0}))}}const ls=["author","discard","imageStylePreApply","filter","head","FORMAT_SIDE_IMAGE","formatInline","getSuggestionCallback","refresh","length","imageStyle","shouldConvertImageType","insertion","side","normalizedStyles","getContainedElement","getSuggestions","differ","getClosestSelectedImageElement","name","findIndex","markInlineFormat","imageTypeInline","_findSuggestions","model","commandName","createRangeOn","afterInit","commands","value","TrackChangesEditing","_suggestionFactory","Users","convertInlineImageToBlock","get","_registerLegacyDescription","formatBlock","locale","editor","chain","hasSuggestion","_splitMarkerName","isBlockImage","isEqual","markBlockFormat","title","imageCaption","isIntersecting","_descriptionFactory","ImageStyleEditing","subType","isOwn","start","join","imageStylePostApply","plugins","next","registerPostFixer","change","commandParams","registerCustomCallback","end","ImageUtils","document","from","getFirstRange","getSuggestion","accept","type","isBefore","toLowerCase","discardSuggestion","selection","newRange","*Format:* %0","suggestion"];var us,ds;us=ls,ds=100,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x3")](){const t=this[gs("0xe")];if(!t[gs("0x1f")].has(gs("0x19")))return;const n=t.plugins[gs("0xa")](gs("0x6")),r=t[gs("0x1f")][gs("0xa")](gs("0x26")),o={};n.enableCommand(gs("0x3e"),((o,i)=>{const s=t[gs("0x1f")][gs("0xa")](gs("0x8")).me,x=t[gs("0x4")][gs("0xa")](gs("0x3e"));let a=r[gs("0x46")](t[gs("0x0")].document.selection),c=t[gs("0x0")][gs("0x2")](a),l=x.value;if(l==i[gs("0x5")])return;const u={commandName:gs("0x3e"),commandParams:[i],formatGroupId:(0,e.uid)()};t[gs("0x0")][gs("0x22")]((()=>{if(n[gs("0x44")]()[gs("0x37")]((t=>t.isInContent&&s==t[gs("0x34")]&&("formatBlock"==t.type||"formatInline"==t[gs("0x2c")])&&(gs("0x36")==t[gs("0x1a")]||gs("0x1e")==t[gs("0x1a")])&&t.getFirstRange().isEqual(c))).forEach((t=>n[gs("0x2f")](t[gs("0x38")]))),a=r[gs("0x46")](t.model.document[gs("0x30")]),c=t.model[gs("0x2")](a),x[gs("0x3c")](),t[gs("0x4")][gs("0xa")](gs("0x4a")).refresh(),t[gs("0x4")][gs("0xa")]("imageTypeBlock").refresh(),l=x[gs("0x5")],l!=i[gs("0x5")])return r.isInlineImage(a)&&x[gs("0x3f")](i[gs("0x5")],a)?(o({...i,setImageSizes:!1}),a=r[gs("0x46")](t[gs("0x0")].document[gs("0x30")]),void n[gs("0x14")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x36"))):void(r[gs("0x12")](a)?n[gs("0x14")](a,u,[],gs("0x1e")):n[gs("0x49")](c,u,gs("0x1e")))}))}));for(const e of t[gs("0x1f")][gs("0xa")](gs("0x19"))[gs("0x42")])o[e[gs("0x47")]]=e[gs("0x15")][gs("0x2e")]();n._suggestionFactory.registerCustomCallback("formatBlock",gs("0x36"),gs("0x1d"),(()=>!1)),n[gs("0x7")][gs("0x24")](gs("0xc"),gs("0x1e"),gs("0x1d"),(()=>!1)),n[gs("0x7")][gs("0x24")]("formatInline",gs("0x1e"),gs("0x1d"),(()=>!1)),n[gs("0x7")][gs("0x24")](gs("0xc"),gs("0x36"),gs("0x2b"),(([t])=>{r.setImageNaturalSizeAttributes(t.getContainedElement())})),n[gs("0x7")][gs("0x24")](gs("0xc"),gs("0x36"),gs("0x35"),((t,e)=>{n[gs("0x7")][gs("0x3b")](gs("0xc"),"","accept")(t,{commandName:e[gs("0x1")],commandParams:e.commandReversedParams})})),n._suggestionFactory[gs("0x24")]("formatBlock",gs("0x36"),gs("0xf"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:"formatBlock",subType:gs("0x36")},{type:"insertion",subType:gs("0x16")},{type:gs("0xc"),subType:gs("0x9")},{type:gs("0x40"),subType:gs("0x9")}];function s(t,e){const o=i[gs("0x48")]((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=i[gs("0x48")]((({type:t,subType:n})=>e[gs("0x2c")]==t&&e.subType==n));if(o<0||s<0)return!1;const x=t[gs("0x29")](),a=e[gs("0x29")]();if((0==o||1==o)&&2==s&&x[gs("0x17")](a))return!0;if(2==o&&3==s){const t=n[gs("0x4b")](x,gs("0x40"))[gs("0x37")]((({suggestion:t,meta:e})=>e[gs("0x1b")]&&gs("0x9")==t.subType));if(t[gs("0x3d")]>1&&a[gs("0x25")][gs("0x13")](x.start))return!0;if(1==t[gs("0x3d")]&&(x[gs("0x1c")][gs("0x13")](a[gs("0x25")])||x[gs("0x25")][gs("0x13")](a.start)))return!0}if(3==o&&3==s&&x[gs("0x1c")][gs("0x2d")](a[gs("0x1c")])){const t=x.end.nodeAfter,e=a[gs("0x1c")].nodeBefore;return r[gs("0x12")](t)&&t===e}return!1}t[gs("0x0")][gs("0x27")][gs("0x21")]((()=>{let e=!1;const o=Array[gs("0x28")](t[gs("0x0")][gs("0x27")][gs("0x45")].getChangedMarkers());for(const{name:t,data:i}of o){const{group:o,type:s,subType:x,id:a}=n[gs("0x11")](t);if(gs("0x33")==o&&n[gs("0x10")](a)){if("formatBlock"==s&&(gs("0x36")==x||"imageStylePostApply"==x)){const t=n[gs("0x2a")](a);if(i[gs("0x31")]){const o=t.getFirstRange()[gs("0x43")]();if(r[gs("0x12")](o))continue;n.discardSuggestion(t),e=!0}}if("insertion"==s&&gs("0x16")==x&&!i[gs("0x31")]){const t=n[gs("0x2a")](a);t[gs("0x20")]&&t[gs("0x20")].isInContent&&(n.discardSuggestion(t[gs("0x20")]),e=!0)}}}return e})),this._registerLegacyDescription(o)}[gs("0xb")](t){const e=this.editor,n=e[gs("0xd")];e[gs("0x1f")][gs("0xa")]("TrackChangesEditing")[gs("0x18")].registerDescriptionCallback((e=>{if(gs("0xc")!=e[gs("0x2c")]&&gs("0x3a")!=e[gs("0x2c")])return;const{data:r}=e;if(!r||gs("0x3e")!=r[gs("0x1")])return;const o=r[gs("0x23")][0][gs("0x5")];return i=gs("0x41")===o?Jr(n,gs("0x39")):t[o]||o,{type:"format",content:Jr(n,gs("0x32"),i)};var i}))}}const ms=["editor","trackChanges","afterInit","plugins","dataInsert","high","_setSuggestionData","collaboration_features","lowest","execute","get","importWord","_trackChangesValueDuringImport","_trackChangesExecuted","commands","TrackChangesEditing","_handleImportedData","value","bind","enableCommand","listenTo"];var hs,ps;hs=ms,ps=415,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[bs("0x11")]=!1,this[bs("0x12")]=!1}[bs("0x7")](){const t=this[bs("0x5")],e=t.commands[bs("0xf")](bs("0x10")),n=t[bs("0x13")][bs("0xf")](bs("0x6"));e&&(e.on("execute",((t,[,e])=>{this[bs("0x11")]=n[bs("0x1")],e[bs("0xc")].track_changes=!this._trackChangesValueDuringImport}),{priority:bs("0xa")}),this[bs("0x4")](e,bs("0x9"),this[bs("0x0")][bs("0x2")](this)),this[bs("0x4")](e,"dataInsert",(()=>{this[bs("0x12")]&&(n[bs("0xe")](),this[bs("0x12")]=!1)}),{priority:bs("0xd")}),t.plugins[bs("0xf")](bs("0x14"))[bs("0x3")](bs("0x10")))}[bs("0x0")](t,e){const{suggestions:n}=e,r=this[bs("0x5")][bs("0x13")][bs("0xf")]("trackChanges"),o=r[bs("0x1")];this[bs("0x11")]!==o&&(r.execute(),this[bs("0x12")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:r})=>{const o={id:t,type:e,authorId:this[bs("0x5")].plugins[bs("0xf")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:bs("0x10")}}};this[bs("0x5")][bs("0x8")][bs("0xf")](bs("0x14"))[bs("0xb")](o)}))}}const _s=["has","enableCommand","indentBlock","*Indent:* %0","locale","TrackChangesEditing","getItems","plugins","_enableDefaultAttributesIntegration","outdentBlock","outdent","registerDescriptionCallback","editor","commandName","indent","_registerBlockAttribute","get","blockIndent","registerAttributeLabel","IndentEditing","formatBlock","format","*Outdent:* %0","IndentBlock","_registerLegacyDescription","getItemLabel","_descriptionFactory"];var Ts,ys;Ts=_s,ys=278,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{afterInit(){const t=this.editor,e=t[Cs("0x1a")][Cs("0x8")](Cs("0x18"));if(t[Cs("0x1a")][Cs("0x13")](Cs("0xb"))&&(e.enableCommand(Cs("0x6")),e[Cs("0x14")](Cs("0x2"))),t[Cs("0x1a")][Cs("0x13")](Cs("0xf")))for(const t of[Cs("0x15"),"outdentBlock"])e[Cs("0x0")](t);const n=t[Cs("0x17")];e[Cs("0x7")]("blockIndent"),e[Cs("0x12")][Cs("0xa")](Cs("0x9"),Jr(n,"FORMAT_INDENT")),this[Cs("0x10")]()}[Cs("0x10")](){const t=this[Cs("0x4")],e=t.locale,n=t.plugins[Cs("0x8")](Cs("0x18"));n[Cs("0x12")][Cs("0x3")]((t=>{if(Cs("0xc")!=t.type)return;const{data:r}=t;if(!r)return;if("indentBlock"!=r[Cs("0x5")]&&Cs("0x1")!=r[Cs("0x5")])return;const o=t[Cs("0x19")]()[0],i=n[Cs("0x12")][Cs("0x11")](o);return"indentBlock"==r[Cs("0x5")]?{type:Cs("0xd"),content:Jr(e,Cs("0x16"),i)}:Cs("0x1")==r[Cs("0x5")]?{type:Cs("0xd"),content:Jr(e,Cs("0xe"),i)}:void 0}))}}var ks,Is,Rs=["get","input","plugins","TrackChangesEditing","editor","enableCommand"];ks=Rs,Is=415,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[Ho.Input]}init(){this[Ss("0x3")][Ss("0x1")][Ss("0x5")](Ss("0x2"))[Ss("0x4")](Ss("0x0"))}}const Ns=["_registerLegacyDescription","get","registerAttributeLabel","plugins","formatInline","*Remove link*","format","_descriptionFactory","commands","commandParams","toLowerCase","has","LinkEditing","unlink","registerDescriptionCallback","_enableDefaultAttributesIntegration","link","manualDecorators","map","commandName","linkHref","*Set link:* %0","editor","type","TrackChangesEditing","locale","label"];var Ls,Ms;Ls=Ns,Ms=369,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("0x4")];if(!t[ws("0xc")][ws("0x14")](ws("0x15")))return;const e=t[ws("0xc")].get(ws("0x6")),n=t[ws("0x11")][ws("0xa")]("link");e[ws("0x18")](ws("0x19"),[ws("0x2"),...n[ws("0x1a")][ws("0x0")]((t=>t.id))]),e._enableDefaultAttributesIntegration(ws("0x16"));for(const t of n[ws("0x1a")])e[ws("0x10")][ws("0xb")](t.id,"link ("+t[ws("0x8")][ws("0x13")]()+")");e._descriptionFactory[ws("0x17")]((e=>{if("attribute"!=e.type)return;const{data:n}=e;if(!n||ws("0x2")!=n.key)return;const r=n.newValue,o=t[ws("0x7")];return{type:ws("0xf"),content:r?Jr(o,ws("0x3"),'"'+r+'"'):Jr(o,ws("0xe"))}})),this[ws("0x9")]()}[ws("0x9")](){const t=this.editor,e=t.locale;t.plugins[ws("0xa")](ws("0x6"))[ws("0x10")][ws("0x17")]((t=>{if(ws("0xd")!=t[ws("0x5")])return;const{data:n}=t;if(n){if(ws("0x19")==n[ws("0x1")]){const t=n[ws("0x12")][0];return{type:ws("0xf"),content:Jr(e,ws("0x3"),'"'+t+'"')}}return ws("0x16")==n[ws("0x1")]?{type:"format",content:Jr(e,ws("0xe"))}:void 0}}))}}const Fs=["listItem","push","markBlockFormat","listType","previousSibling","name","blockName","format","element","locale","editor","paragraph","getAttribute","get","_selectedElements","createPositionAt","_descriptionFactory","*Uncheck item*","model","List","listIndent","selection","bulletedList","registerDescriptionCallback","formatInline","value","filter","from","replace","type","getSelectedBlocks","createRange","forceValue","add","TodoListEditing","checkTodoList","slice","parent","todoList","numbered","ELEMENT_LIST_ITEM","*Indent:* %0","outdentList","commandParams","plugins","todo","document","before","numberedList","commandName","has","change","registerElementLabel","afterInit","checkChild","nextSibling","schema","indentList","enableCommand","length","commands","findIndex","ELEMENT_BULLETED_LIST"];var Ds,Bs;Ds=Fs,Bs=123,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0x38")](){const t=this[Ps("0xd")],e=t[Ps("0xc")];if(!t[Ps("0x2f")][Ps("0x35")]("ListEditing"))return;const n=t.plugins.get("TrackChangesEditing"),r=t[Ps("0x2f")][Ps("0x35")](Ps("0x25"));function o(e){return()=>{const r=t[Ps("0x15")].document[Ps("0x18")],o=t[Ps("0x0")][Ps("0x10")](e);if(o[Ps("0x1c")])return void t.execute(Ps("0xe"),{});const i=e[Ps("0x27")](0,-4),s=function(t,e,n){let r=Array[Ps("0x1e")](t).filter((t=>{return e=t,(r=n)[Ps("0x39")](e[Ps("0x28")],Ps("0x3"))&&!r.isObject(e);var e,r}));r=r[Ps("0x1d")]((t=>!t.is(Ps("0xb"),Ps("0x3"))||t.getAttribute(Ps("0x6"))!=e));const o=new Set;for(const t of r)t.is(Ps("0xb"),Ps("0x3"))?o[Ps("0x24")](js(t)):o[Ps("0x24")](t);return Array.from(o)}(r[Ps("0x21")](),i,t[Ps("0x15")][Ps("0x3b")]);t[Ps("0x15")].change((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!o[Ps("0x1c")]}],formatGroupId:Ps("0x9")},Gs(t))}))}}function i(e){return()=>{const r=function(t){let e=Array[Ps("0x1e")](t);const n=e[Ps("0x1")]((t=>"listItem"!=t.name));return n>-1&&(e=e[Ps("0x27")](0,n)),e}(t.model[Ps("0x31")].selection[Ps("0x21")]()),o=t[Ps("0x15")][Ps("0x22")](t[Ps("0x15")][Ps("0x12")](r[0],Ps("0x32")),t[Ps("0x15")][Ps("0x12")](r[r[Ps("0x3e")]-1],"end"));t[Ps("0x15")].change((()=>{n.markBlockFormat(o,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x3a")];for(;t&&t[Ps("0xf")](Ps("0x17"))>n[Ps("0xf")](Ps("0x17"));)e[Ps("0x24")](t),t=t[Ps("0x3a")]}return Array[Ps("0x1e")](e)}(r))}))}}n[Ps("0x3d")](Ps("0x33"),o(Ps("0x33"))),n[Ps("0x3d")](Ps("0x19"),o("bulletedList")),r&&n[Ps("0x3d")](Ps("0x29"),o(Ps("0x29"))),n.enableCommand(Ps("0x3c"),i("indentList")),n[Ps("0x3d")](Ps("0x2d"),i(Ps("0x2d"))),r&&n[Ps("0x3d")]("checkTodoList",(()=>{const e=t[Ps("0x0")][Ps("0x10")]("checkTodoList"),r=Array[Ps("0x1e")](e[Ps("0x11")]);r[Ps("0x1d")]((t=>t.getAttribute("todoListChecked")!=e[Ps("0x1c")])),t[Ps("0x15")][Ps("0x36")]((()=>{for(const t of r)n[Ps("0x5")](t,{commandName:Ps("0x26"),commandParams:[{forceValue:!e[Ps("0x1c")]}]})}))})),n[Ps("0x13")][Ps("0x37")](Ps("0x3"),(t=>Jr(e,"ELEMENT_LIST_ITEM",t))),n[Ps("0x13")][Ps("0x1a")]((t=>{if("formatBlock"!=t[Ps("0x20")]&&Ps("0x1b")!=t[Ps("0x20")])return;const{data:n}=t;if(n){if(Ps("0x33")==n[Ps("0x34")]||Ps("0x19")==n[Ps("0x34")]||Ps("0x29")==n.commandName)switch(n[Ps("0x34")][Ps("0x1f")](Ps("0x16"),"")){case"bulleted":return r(Jr(e,Ps("0x2")));case Ps("0x2a"):return r(Jr(e,"ELEMENT_NUMBERED_LIST"));case Ps("0x30"):return r(Jr(e,"ELEMENT_TODO_LIST"))}if("indentList"==n[Ps("0x34")])return{type:Ps("0xa"),content:Jr(e,Ps("0x2c"),Jr(e,Ps("0x2b")))};if(Ps("0x2d")==n[Ps("0x34")])return{type:Ps("0xa"),content:Jr(e,"*Outdent:* %0",Jr(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n[Ps("0x34")])return n[Ps("0x2e")][0][Ps("0x23")]?{type:Ps("0xa"),content:Jr(e,"*Check item*")}:{type:Ps("0xa"),content:Jr(e,Ps("0x14"))}}function r(t){return{type:"format",content:Jr(e,"*Change to:* %0",t)}}}))}}function js(t){const e=t.getAttribute(Ps("0x17"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ps("0x7")].is(Ps("0xb"),Ps("0x3"));){const r=t.previousSibling[Ps("0xf")](Ps("0x17"));if(r==e)n=t.previousSibling;else if(r<e)break;t=t[Ps("0x7")]}return n}function Gs(t){const e=[];if(t.is(Ps("0xb"),Ps("0x3"))&&t[Ps("0xf")]("listIndent")>0){let n=t[Ps("0x3a")];for(;n&&Ps("0x3")==n[Ps("0x8")]&&n[Ps("0xf")](Ps("0x17"))==t[Ps("0xf")]("listIndent");)e[Ps("0x4")](n),n=n[Ps("0x3a")]}return e}const Vs=["listItem","backward","element","commandName","format","model","enableCommand","map","styles","getListTypeFromListStyleType","afterInit","editor","filter","*Format:* set order to reversed","change","registerDescriptionCallback","flat","_LIST_","_getSuggestionBlocks","getFirstPosition","*Change to:* %0","getAttribute","createPositionAt","startIndex","getSelectedBlocks","reversed","ListUtils","numbered","document","forward","listStart","plugins","handleListStyleCommand","handleDescriptions","getSiblingNodes","_getTranslationKeyForListStyle","length","type","formatInline","locale","commandParams","handleListStartCommand","createRange","has","handleListReversedCommand","selection","before","formatBlock","ListPropertiesEditing","ELEMENT_","from","*Format:* set start index to %0","toUpperCase","bind","get","push","markMultiRangeBlockFormat","listReversed","listStyle","listType","TrackChangesEditing","_getSuggestionBlocksForListStyle"];var Hs,zs;Hs=Vs,zs=248,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0xa")](){if(!this[Ws("0xb")][Ws("0x1f")][Ws("0x2b")](Ws("0x30")))return;const t=this[Ws("0xb")].config[Ws("0x36")]("list.properties"),e=this.editor[Ws("0x1f")][Ws("0x36")](Ws("0x3c"));t[Ws("0x8")]&&e[Ws("0x6")](Ws("0x3a"),this[Ws("0x20")].bind(this)),t[Ws("0x19")]&&e.enableCommand("listReversed",this[Ws("0x2c")].bind(this)),t[Ws("0x17")]&&e[Ws("0x6")]("listStart",this.handleListStartCommand[Ws("0x35")](this)),e._descriptionFactory[Ws("0xf")](this[Ws("0x21")][Ws("0x35")](this))}[Ws("0x20")](t,e={}){const n=this[Ws("0xb")].plugins[Ws("0x36")](Ws("0x3c")),r=this[Ws("0x3d")]();this[Ws("0xb")][Ws("0x5")][Ws("0xe")]((()=>{n[Ws("0x38")](r,{commandName:"listStyle",commandParams:[{type:e[Ws("0x25")]}],formatGroupId:Ws("0x3a")})}))}[Ws("0x2c")](t,e={}){const n=this[Ws("0xb")].plugins[Ws("0x36")](Ws("0x3c")),r=this._getSuggestionBlocks((t=>t.is(Ws("0x2"),Ws("0x0"))&&"numbered"===t[Ws("0x15")]("listType")));if(r[Ws("0x24")]<1)return;const o=r.map((t=>this[Ws("0xb")][Ws("0x5")][Ws("0x2a")](this[Ws("0xb")][Ws("0x5")][Ws("0x16")](t,Ws("0x2e")),this[Ws("0xb")][Ws("0x5")][Ws("0x16")](t,0))));this.editor[Ws("0x5")][Ws("0xe")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ws("0x39"),commandParams:[{reversed:e[Ws("0x19")]}],formatGroupId:Ws("0x39")})}))}[Ws("0x29")](t,e={}){const n=this.editor.plugins.get("TrackChangesEditing"),r=this._getSuggestionBlocks((t=>t.is(Ws("0x2"),Ws("0x0"))&&Ws("0x1b")===t.getAttribute(Ws("0x3b"))));if(r[Ws("0x24")]<1)return;const o=r.map((t=>this.editor[Ws("0x5")][Ws("0x2a")](this[Ws("0xb")].model.createPositionAt(t,"before"),this[Ws("0xb")][Ws("0x5")].createPositionAt(t,0))));this.editor[Ws("0x5")][Ws("0xe")]((()=>{n[Ws("0x38")](o,{commandName:Ws("0x1e"),commandParams:[{startIndex:e[Ws("0x17")]}],formatGroupId:Ws("0x1e")})}))}[Ws("0x21")](t){if(Ws("0x2f")!=t[Ws("0x25")]&&Ws("0x26")!=t[Ws("0x25")])return;const e=this[Ws("0xb")][Ws("0x27")],{data:n}=t;if(!n)return;let r,o;switch(n[Ws("0x3")]){case Ws("0x3a"):r=Ws("0x14"),o={type:"format",content:Jr(e,r,Jr(e,this[Ws("0x23")](n[Ws("0x28")][0][Ws("0x25")])))};break;case Ws("0x39"):r=n.commandParams[0].reversed?Ws("0xd"):"*Format:* set order to regular",o={type:"format",content:Jr(e,r)};break;case"listStart":r=Ws("0x33"),o={type:Ws("0x4"),content:Jr(e,r,n.commandParams[0][Ws("0x17")])}}return o}[Ws("0x3d")](){var t,e,n,r;const o=this[Ws("0xb")][Ws("0x1f")][Ws("0x36")]("ListUtils");let i=Array.from(this[Ws("0xb")][Ws("0x5")][Ws("0x1c")][Ws("0x2d")].getSelectedBlocks());return(null===(t=i[0])||void 0===t?void 0:t.is(Ws("0x2"),"listItem"))&&i.unshift(...o[Ws("0x22")](this[Ws("0xb")][Ws("0x5")].document.selection[Ws("0x13")](),Ws("0x1"))),(null===(e=i[i[Ws("0x24")]-1])||void 0===e?void 0:e.is("element",Ws("0x0")))&&i[Ws("0x37")](...o[Ws("0x22")](this[Ws("0xb")].model[Ws("0x1c")][Ws("0x2d")].getLastPosition(),Ws("0x1d"))),i=[...new Set(i)],(null===(r=null===(n=this[Ws("0xb")].model[Ws("0x1c")][Ws("0x2d")][Ws("0x13")]())||void 0===n?void 0:n.parent)||void 0===r?void 0:r.is("element","listItem"))&&(i=i[Ws("0xc")]((t=>t.is(Ws("0x2"),Ws("0x0"))))),i}[Ws("0x12")](t){const e=this[Ws("0xb")][Ws("0x1f")].get("ListUtils");let n=Array[Ws("0x32")](this[Ws("0xb")][Ws("0x5")][Ws("0x1c")].selection[Ws("0x18")]()).filter(t)[Ws("0x7")]((t=>{const n=this[Ws("0xb")][Ws("0x5")][Ws("0x16")](t,0);return[...e[Ws("0x22")](n,"backward"),...e[Ws("0x22")](n,"forward")]}))[Ws("0x10")]();return n=[...new Set(n)],n}[Ws("0x23")](t){return Ws("0x31")+this[Ws("0xb")][Ws("0x1f")][Ws("0x36")](Ws("0x1a"))[Ws("0x9")](t)[Ws("0x34")]()+Ws("0x11")+t[Ws("0x34")]().replace(/-/g,"_")}}const qs=["createEmptyElement","attribute:url:media","stop","MediaEmbedEditing","downcastDispatcher","for","registerElementLabel","media","options","TrackChangesEditing","locale","afterInit","has","plugins","high","editor","showSuggestionHighlights","conversion","_descriptionFactory","ELEMENT_MEDIA","get","dataDowncast","enableCommand"];var Xs,$s;Xs=qs,$s=250,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0xe")](){const t=this[Zs("0x12")];if(!t[Zs("0x10")][Zs("0xf")](Zs("0x6")))return;const e=t[Zs("0x10")][Zs("0x0")](Zs("0xc")),n=t[Zs("0xd")];e[Zs("0x2")]("mediaEmbed"),e[Zs("0x15")][Zs("0x9")]("media",(t=>Jr(n,Zs("0x16"),t))),t[Zs("0x14")][Zs("0x8")](Zs("0x1")).elementToElement({model:Zs("0xa"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Zs("0x3")]("div")},converterPriority:Zs("0x11")}),t.data[Zs("0x7")].on(Zs("0x4"),((t,e,n)=>{n[Zs("0xb")][Zs("0x13")]&&t[Zs("0x5")]()}),{priority:Zs("0x11")})}}const Js=["TrackChangesEditing","has","plugins","enableCommand","mention","MentionEditing","editor","get","afterInit"];var Qs,tx;Qs=Js,tx=161,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x0")](){const t=this[ex("0x7")];t.plugins[ex("0x2")](ex("0x6"))&&t[ex("0x3")][ex("0x8")](ex("0x1"))[ex("0x4")](ex("0x5"))}}const rx=["registerElementLabel","get","_descriptionFactory","has","enableCommand","editor","locale","afterInit","pageBreak","plugins","ELEMENT_PAGE_BREAK","PageBreakEditing","TrackChangesEditing"];var ox,ix;ox=rx,ix=489,function(t){for(;--t;)ox.push(ox.shift())}(++ix);const sx=function(t,e){return rx[t-=0]};class xx extends t.Plugin{[sx("0xc")](){const t=this[sx("0xa")];if(!t.plugins[sx("0x8")](sx("0x3")))return;t[sx("0x1")][sx("0x6")](sx("0x4"))[sx("0x9")]("pageBreak");const e=t[sx("0x1")].get(sx("0x4")),n=t[sx("0xb")];e[sx("0x7")][sx("0x5")](sx("0x0"),(t=>Jr(n,sx("0x2"),t)))}}const ax=["format","plugins","registerDescriptionCallback","*Insert:* %0","getFirstRange","get","_registerLegacyDescription","model","end","_descriptionFactory","isTouching","highest","commandName","$text","isBlock","addMarker:suggestion:insertion","toViewPosition","span","schema","writer","data","mapper","downcastDispatcher","addClass","nodeAfter","type","editor","*Change to:* %0","markerName","showSuggestionHighlights","consume","editing","TrackChangesEditing","paragraph","insertion","insertParagraph","_enableDefaultAttributesIntegration","createUIElement","markerRange","ck-suggestion-marker--active","formatBlock","getItemLabel","start","consumable","name","locale","has","insert","isLimit","includes"];var cx,lx;cx=ax,lx=202,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[ux("0x2c")]("Paragraph"))return;const e=t[ux("0x2b")],n=t[ux("0x31")][ux("0x3")](ux("0x1e"));n._descriptionFactory.registerElementLabel(ux("0x1f"),(t=>Jr(e,"ELEMENT_PARAGRAPH",t))),n[ux("0x22")]("paragraph"),n.enableCommand(ux("0x21")),t[ux("0x1d")][ux("0x14")].on(ux("0xd"),gx(t),{priority:ux("0x9")}),t[ux("0x12")][ux("0x14")].on(ux("0xd"),((e,n,r)=>{r.options[ux("0x1b")]&&gx(t,{showActiveMarker:!1})(e,n,r)}),{priority:"highest"});const r=n._descriptionFactory;r.registerDescriptionCallback((n=>{if(ux("0x20")!==n[ux("0x17")])return;const{start:o,end:i}=n[ux("0x2")]();if(!o[ux("0x8")](i)||!o.nodeAfter)return;const s=t[ux("0x5")][ux("0x10")],x=o[ux("0x16")];return s[ux("0xc")](x)&&!s[ux("0x2e")](x)&&s.checkChild(x,ux("0xb"))?{type:ux("0x20"),content:Jr(e,ux("0x1"),r[ux("0x27")](x,1))}:void 0})),this[ux("0x4")]()}[ux("0x4")](){const t=this[ux("0x18")],e=t[ux("0x2b")];t[ux("0x31")][ux("0x3")]("TrackChangesEditing")[ux("0x7")][ux("0x0")]((t=>{if(ux("0x26")!=t.type)return;const{data:n}=t;return n&&ux("0x1f")==n[ux("0xa")]?{type:ux("0x30"),content:Jr(e,ux("0x19"),Jr(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,r,o)=>{const i=t[ux("0x31")][ux("0x3")](ux("0x1e")),s=r[ux("0x24")][ux("0x28")],x=r[ux("0x24")][ux("0x6")],a=t[ux("0x5")][ux("0x10")];if(!s[ux("0x8")](x)||!s[ux("0x16")])return;const c=s[ux("0x16")];if(a[ux("0xc")](c)&&!a[ux("0x2e")](c)&&a.checkChild(c,ux("0xb"))){if(!o[ux("0x29")][ux("0x1c")](r[ux("0x24")],n[ux("0x2a")]))return;const t=o.writer[ux("0x23")](ux("0xf"),{class:"ck-suggestion-marker-split"}),s=o[ux("0x13")][ux("0xe")](x);e&&i.activeMarkers[ux("0x2f")](r[ux("0x1a")])&&o[ux("0x11")][ux("0x15")](ux("0x25"),t),o[ux("0x11")][ux("0x2d")](s,t),o[ux("0x13")].bindElementToMarker(t,r[ux("0x1a")])}}}const fx=["registerDescriptionCallback","*Remove all formatting*","formatBlock","formatInline","TrackChangesEditing","locale","type","_enableDefaultAttributesIntegration","RemoveFormatEditing","plugins","commandName","removeFormat"];var mx,hx;mx=fx,hx=324,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{afterInit(){const t=this.editor;t[px("0x9")].has(px("0x8"))&&(t[px("0x9")].get(px("0x4"))[px("0x7")](px("0xb")),this._registerLegacyDescription())}_registerLegacyDescription(){const t=this.editor;t[px("0x9")].get(px("0x4"))._descriptionFactory[px("0x0")]((e=>{if(px("0x2")!=e[px("0x6")]&&px("0x3")!=e[px("0x6")])return;const{data:n}=e;return n&&"removeFormat"==n[px("0xa")]?{type:"format",content:Jr(t[px("0x5")],px("0x1"))}:void 0}))}}const Ex=["acceptSelectedSuggestions","trackChanges","has","acceptAllSuggestions","enableCommand","discardAllSuggestions","editor","discardSelectedSuggestions","plugins","discardSuggestion","get","goToPreviousRestrictedEditingException","acceptSuggestion","goToNextRestrictedEditingException","afterInit","RestrictedEditingModeEditing"];var _x,Tx;_x=Ex,Tx=414,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x0")](){const t=this[yx("0x8")];if(!t.plugins[yx("0x4")](yx("0x1")))return;const e=t[yx("0xa")][yx("0xc")]("TrackChangesEditing");e[yx("0x6")](yx("0xd")),e[yx("0x6")](yx("0xf"));const n=t[yx("0xa")][yx("0xc")](yx("0x1"));n[yx("0x6")](yx("0x3")),n[yx("0x6")](yx("0xe")),n.enableCommand(yx("0xb")),n[yx("0x6")](yx("0x5")),n[yx("0x6")](yx("0x7")),n[yx("0x6")](yx("0x2")),n.enableCommand(yx("0x9"))}}const Ax=["deletion","model","softBreak","getItems","enableCommand","data","consumable","addClass","bindElementToMarker","ck-suggestion-marker--active","ELEMENT_LINE_BREAK","writer","mapper","merge","ck-suggestion-marker-","addMarker:suggestion:insertion","TrackChangesEditing","get","downcastDispatcher","options","plugins","toViewPosition","shiftEnter","addMarker:suggestion:deletion","split","test","init","includes","markerRange","addMarker:suggestion","locale","high","registerElementLabel","createUIElement","requires","markerName","editing"];var kx,Ix;kx=Ax,Ix=147,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("0x1b")](){const t=this.editor,e=t.plugins[Rx("0x12")](Rx("0x11"));e[Rx("0x5")](Rx("0x17")),t[Rx("0x0")][Rx("0x13")].on(Rx("0x10"),vx(t),{priority:Rx("0x20")}),t[Rx("0x0")][Rx("0x13")].on(Rx("0x18"),vx(t),{priority:Rx("0x20")}),t[Rx("0x6")].downcastDispatcher.on(Rx("0x1e"),((e,n,r)=>{r[Rx("0x14")].showSuggestionHighlights&&vx(t,{showActiveMarker:!1})(e,n,r)})),e._descriptionFactory[Rx("0x21")](Rx("0x3"),(e=>Jr(t[Rx("0x1f")],Rx("0xb"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,r,o)=>{const i=t[Rx("0x15")].get(Rx("0x11"));if(!o[Rx("0x7")][Rx("0x1a")](r[Rx("0x1d")],n.name))return;const s=t[Rx("0x2")];for(const t of r[Rx("0x1d")][Rx("0x4")]()){if(!t.is("element",Rx("0x3")))continue;const n=Rx("0x1")==r[Rx("0x24")].split(":")[1]?Rx("0xe"):Rx("0x19"),x=o[Rx("0xc")][Rx("0x22")]("span",{class:Rx("0xf")+n}),a=o[Rx("0xd")][Rx("0x16")](s.createPositionBefore(t));e&&i.activeMarkers[Rx("0x1c")](r.markerName)&&o.writer[Rx("0x8")](Rx("0xa"),x),o[Rx("0xc")].insert(a,x),o[Rx("0xd")][Rx("0x9")](x,r[Rx("0x24")])}}}const Nx=["forceValue","has","from","TrackChangesEditing","FORMAT_RESTRICTED_DISABLED","format","formatInline","formatBlock","commandParams","restrictedEditingException","document","get","plugins","enableCommand","commands","commandName","StandardEditingModeEditing","type","_descriptionFactory","FORMAT_RESTRICTED_ENABLED","change","afterInit","getRanges"];var Lx,Mx;Lx=Nx,Mx=447,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0xb")](){const t=this.editor,e=t.model,n=t.locale;if(!t[wx("0x2")][wx("0xe")](wx("0x6")))return;const r=t.plugins[wx("0x1")](wx("0x10")),o=wx("0x16"),i=t[wx("0x4")][wx("0x1")](o);r[wx("0x3")](o,((t,n={})=>{const s=e[wx("0x0")].selection;if(s.isCollapsed)return void t(n);const x=void 0!==n[wx("0xd")]?n.forceValue:!i.value;e[wx("0xa")]((()=>{const t=Array[wx("0xf")](s[wx("0xc")]());for(const n of t){const t=x?[n]:Xo(o,n,e);for(const e of t)r.markInlineFormat(e,{commandName:o,commandParams:[{forceValue:x}]})}}))})),r[wx("0x8")].registerDescriptionCallback((t=>{if(wx("0x14")!=t.type&&wx("0x13")!=t[wx("0x7")])return;const{data:e}=t;return e&&e[wx("0x5")]==o?e[wx("0x15")][0][wx("0xd")]?{type:wx("0x12"),content:Jr(n,wx("0x9"))}:{type:"format",content:Jr(n,wx("0x11"))}:void 0}))}}const Fx=["_registerBlockAttribute","_descriptionFactory","config","has","*Remove format:* %0","GeneralHtmlSupport","add","get","_registerInlineAttribute","element","formatInline","normalizeConfig","registerAttributeLabel","styleName","plugins","formatBlock","commandName","_registerLegacyDescription","DataSchema","definitions","type","block","FORMAT_STYLE","*Set format:* %0","forceValue","TrackChangesEditing","commandParams","_enableDefaultAttributesIntegration","format","style","toLowerCase","getGhsAttributeNameForElement","locale","registerDescriptionCallback"];var Dx,Bx;Dx=Fx,Bx=121,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this.editor;if(!t[Px("0x1d")][Px("0x12")]("Style")||!t[Px("0x1d")][Px("0x12")](Px("0x21")))return;const e=t[Px("0x1d")][Px("0x16")](Px("0x6")),n=t[Px("0xd")],r=t[Px("0x11")].get("style"),o=t[Px("0x1d")][Px("0x16")](Px("0x14")),i=t.plugins.get("StyleUtils")[Px("0x1a")](t[Px("0x1d")].get(Px("0x21")),r[Px("0x0")]);e[Px("0x8")](Px("0xa"));const s=new Set;for(const t of i[Px("0x2")]){const e=o[Px("0xc")](t.element);s[Px("0x15")](e)}const x=new Set;for(const t of i.inline){const e=o.getGhsAttributeNameForElement(t[Px("0x18")]);x[Px("0x15")](e);for(const e of t.ghsAttributes)x.add(e)}for(const t of s)e[Px("0xf")](t),e[Px("0x10")].registerAttributeLabel(t,Jr(n,Px("0x3")));for(const t of x)e[Px("0x17")](t),e[Px("0x10")][Px("0x1b")](t,Jr(n,"FORMAT_STYLE"));this._registerLegacyDescription()}[Px("0x20")](){const t=this.editor,e=t[Px("0xd")];t.plugins.get(Px("0x6"))[Px("0x10")][Px("0xe")]((t=>{if(Px("0x1e")!=t[Px("0x1")]&&Px("0x19")!=t[Px("0x1")])return;const{data:n}=t;return n&&Px("0xa")===n[Px("0x1f")]?n[Px("0x7")][0][Px("0x5")]?{type:Px("0x9"),content:Jr(e,Px("0x4"),n[Px("0x7")][0].styleName.toLowerCase())}:{type:"format",content:Jr(e,Px("0x13"),n.commandParams[0][Px("0x1c")][Px("0xb")]())}:void 0}))}}const jx=["toLowerCase","add","registerElementLabel","insertTableColumnLeft","_suggestionFactory","differ","first","classes","enableCommand","some","ELEMENT_TABLE_COLUMN_WITH_TEXT","MIN_SAFE_INTEGER","addClass","refresh","last","plugins","insertTable","data","filter","mapper","showSuggestionHighlights","document","ELEMENT_TABLE","MAX_SAFE_INTEGER","afterInit","createTableWalker","removeClass","colspan","ELEMENT_TABLE_ROW_WITH_TEXT","rootName","nodeAfter","TableEditing","from","model","*Remove:* %0","fromRange","removeTableRow","getContainedElement","isEqual","execute","setSelection","item","change","name","order","downcastDispatcher","selection","has","table","ELEMENT_TABLE_WITH_TEXT","writer","ELEMENT_TABLE_ROW","getColumnIndexes","above","getRowIndexes","every","map","_tableSuggestions","selectTableRow","addRange","$graveyard","includes","cell","findAncestor","highest","insert","getSelectionAffectedTableCells","$textProxy","minRow","getCellLocation","tablePaste","markMultiRangeDeletion","commands","addMarker:suggestion","tableRow","editor","_tablePostFixingSubtypes","position","selectTableColumn","nodeBefore","span","registerCustomCallback","TrackChangesEditing","batch","change:data","accept","join","registerDescriptionCallback","min","_descriptionFactory","isArray","createRangeIn","TableUtils","low","get","getRanges","max","rowspan","left","values","locale","*Insert:* %0","_getSuggestionCoords","_splitMarkerName","tableCell","maxColumn","hasAttribute","length","isIntersectingWithRange","_getCoordsForCells","isTouching","subType","_setupColumnsRowsFixing","enqueueChange","getChangedMarkers","type","getSuggestion","substr","insertTableRowAbove","removeTableColumn","insertion","deletion","toViewElement","ELEMENT_TABLE_COLUMN","push","start","getAttribute","createRangeOn","getItems","end","_acceptFormatSuggestionCallbackFactory","root","getFirstRange","tableColumn","detach"];var Gx,Vx;Gx=jx,Vx=443,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x26")]=[Hx("0x24"),Hx("0x5f")],this[Hx("0x13")]=new Set}[Hx("0x79")](){const t=this[Hx("0x25")],e=t[Hx("0x82")][Hx("0x76")][Hx("0x8")];if(!t[Hx("0x70")][Hx("0x9")](Hx("0x80")))return;const n=t[Hx("0x3e")],r=t[Hx("0x70")][Hx("0x38")](Hx("0x2c")),o=t.plugins[Hx("0x38")](Hx("0x36"));r[Hx("0x33")][Hx("0x63")](Hx("0xa"),(t=>Jr(n,Hx("0x77"),t))),this[Hx("0x4a")](),r[Hx("0x69")](Hx("0x71")),r[Hx("0x69")](Hx("0x14")),r[Hx("0x69")](Hx("0x28"));for(const n of[Hx("0x50"),"insertTableRowBelow"]){const i=t[Hx("0x22")][Hx("0x38")](n);r[Hx("0x69")](n,(n=>{t[Hx("0x82")][Hx("0x4")]((t=>{n();const s=Hx("0xf")===i[Hx("0x6")],x=o[Hx("0x1c")](e),a=o[Hx("0x10")](x),c=s?a[Hx("0x67")]-1:a[Hx("0x6f")]+1,l=x[0].findAncestor(Hx("0xa")),u=o[Hx("0x7a")](l,{startRow:c,endRow:c}),d=Array[Hx("0x81")](u).map((e=>t[Hx("0x59")](e[Hx("0x18")])));r.markMultiRangeInsertion(d,"tableRow")}))}))}for(const n of[Hx("0x64"),"insertTableColumnRight"]){const i=t[Hx("0x22")][Hx("0x38")](n);r[Hx("0x69")](n,(n=>{t.model[Hx("0x4")]((t=>{n();const s=Hx("0x3c")===i[Hx("0x6")],x=o[Hx("0x1c")](e),a=o[Hx("0xe")](x),c=s?a[Hx("0x67")]-1:a[Hx("0x6f")]+1,l=x[0][Hx("0x19")]("table"),u=o[Hx("0x7a")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x81")](u)[Hx("0x12")]((e=>t[Hx("0x59")](e[Hx("0x18")])));r.markMultiRangeInsertion(d,Hx("0x5f"))}))}))}for(const n of[Hx("0x85"),"removeTableColumn"]){const i=n[Hx("0x4f")](11),s=i[Hx("0x61")](),x=s[Hx("0x4f")](0,3)+Hx("0x2a"),a=Hx("0xa")+i,c="min"+i,l=Hx("0x3a")+i;r.enableCommand(n,(()=>{t[Hx("0x82")][Hx("0x4")]((t=>{const i=o[Hx("0x1c")](e),u=i[0][Hx("0x19")](Hx("0xa"));let d;if(Hx("0x85")==n){const t=o[Hx("0x10")](i);d={startRow:t[Hx("0x67")],endRow:t[Hx("0x6f")],includeAllSlots:!0}}else{const t=o[Hx("0xe")](i);d={startColumn:t.first,endColumn:t[Hx("0x6f")],includeAllSlots:!0}}const g=o[Hx("0x7a")](u,d),f=Array[Hx("0x81")](g)[Hx("0x12")]((({cell:t})=>t)),m=Wx(f.filter((t=>t[Hx("0x44")](x)))),h=Wx(f[Hx("0x73")]((t=>!t[Hx("0x44")](x))))[Hx("0x12")]((e=>t[Hx("0x59")](e))),p=r[Hx("0x21")](h,a);if(p&&("tableRow"==p.subType||Hx("0x5f")==p.subType)){const e=this._getSuggestionCoords(p);for(const n of m){const r=t[Hx("0x59")](n),i=o[Hx("0x1f")](n),a=n[Hx("0x58")](x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&p[Hx("0x15")](r)}}}))}))}function i(n){const r=Array.from(e[Hx("0x39")]())[Hx("0x12")]((t=>s.LiveRange[Hx("0x84")](t)));t[Hx("0x82")].change((e=>{const o=e[Hx("0x2d")];n=n[Hx("0x73")]((t=>Hx("0x16")!=t[Hx("0x5d")][Hx("0x7e")])),e[Hx("0x2")](n),t[Hx("0x22")][Hx("0x38")](Hx("0x85"))[Hx("0x6e")](),t[Hx("0x1")]("removeTableRow",{forceDefaultExecution:!0}),t[Hx("0x82")][Hx("0x4b")]((()=>{t.model[Hx("0x4b")](o,(t=>{const e=r[Hx("0x73")]((t=>Hx("0x16")!=t[Hx("0x5d")].rootName));e[Hx("0x45")]>0&&t[Hx("0x2")](e);for(const t of r)t[Hx("0x60")]()}))}))}))}function a(n){t[Hx("0x82")][Hx("0x4")]((r=>{const o=Array[Hx("0x81")](e.getRanges()).map((t=>s.LiveRange[Hx("0x84")](t))),i=[];for(const t of n)for(const e of t[Hx("0x5a")]({shallow:!0}))i[Hx("0x56")](e);for(const e of i)Hx("0x16")!=e[Hx("0x5d")].rootName&&(r[Hx("0x2")](r.createPositionAt(e,0)),t[Hx("0x22")][Hx("0x38")]("removeTableColumn").refresh(),t.execute(Hx("0x51"),{forceDefaultExecution:!0}));const x=o[Hx("0x73")]((t=>"$graveyard"!=t[Hx("0x5d")][Hx("0x7e")]));x[Hx("0x45")]>0&&r.setSelection(x);for(const t of o)t[Hx("0x60")]()}))}function c(t,e){return e[Hx("0x11")]((e=>t[Hx("0x6a")]((t=>t[Hx("0x5b")][Hx("0x0")](e[Hx("0x57")])||e.end.isEqual(t[Hx("0x57")])))))}function l(t,e){return t[Hx("0x6a")]((t=>e[Hx("0x6a")]((e=>t.end[Hx("0x48")](e[Hx("0x57")])))))}t[Hx("0x72")][Hx("0x7")].on(Hx("0x23"),((t,e,n)=>{if(!n.options[Hx("0x75")])return;const r=e[Hx("0x3")];if(!r)return;const o=n[Hx("0x74")][Hx("0x54")](r);function i(t){return Array[Hx("0x34")](t)?t:[t]}o&&Hx("0x42")===r[Hx("0x5")]&&(0,x.setHighlightHandling)(o,n[Hx("0xc")],((t,e,n)=>n[Hx("0x6d")](i(e[Hx("0x68")]),t)),((t,e,n)=>n[Hx("0x7b")](i(e[Hx("0x68")]),t)))}),{priority:Hx("0x1a")}),r[Hx("0x33")][Hx("0x31")]((t=>{if(Hx("0x52")!=t[Hx("0x4d")]&&Hx("0x53")!=t[Hx("0x4d")])return;const e=t[Hx("0x86")]();if(null!=e&&e.is("element",Hx("0xa"))){if(Hx("0x52")==t[Hx("0x4d")]){const e=t[Hx("0x5a")]()[Hx("0x73")]((t=>t.is(Hx("0x1d"))))[Hx("0x12")]((t=>t[Hx("0x72")]));if(e[Hx("0x45")])return{type:Hx("0x52"),content:Jr(n,Hx("0x3f"),Jr(n,Hx("0xb"),'"'+e.join(" ")+'"'))}}if(Hx("0x53")==t.type){const e=t[Hx("0x5a")]()[Hx("0x73")]((t=>t.is("$textProxy")))[Hx("0x12")]((t=>t.data));if(e.length)return{type:"deletion",content:Jr(n,Hx("0x83"),Jr(n,Hx("0xb"),'"'+e[Hx("0x30")](" ")+'"'))}}}})),r[Hx("0x33")][Hx("0x31")]((t=>{if(Hx("0x24")==t[Hx("0x49")]){const e=t[Hx("0x5a")]()[Hx("0x73")]((t=>t.is(Hx("0x1d"))))[Hx("0x12")]((t=>t.data)),r=this[Hx("0x40")](t),o=r.maxRow-r[Hx("0x1e")]+1;if("insertion"==t[Hx("0x4d")])return e[Hx("0x45")]?{type:Hx("0x52"),content:Jr(n,"*Insert:* %0",Jr(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[o,'"'+e.join(" ")+'"']))}:{type:Hx("0x52"),content:Jr(n,"*Insert:* %0",Jr(n,Hx("0xd"),o))};if(Hx("0x53")==t.type)return e[Hx("0x45")]?{type:Hx("0x53"),content:Jr(n,Hx("0x83"),Jr(n,Hx("0x7d"),[o,'"'+e[Hx("0x30")](" ")+'"']))}:{type:"deletion",content:Jr(n,Hx("0x83"),Jr(n,Hx("0xd"),o))}}if(Hx("0x5f")==t[Hx("0x49")]){const e=t[Hx("0x5a")]()[Hx("0x73")]((t=>t.is(Hx("0x1d"))))[Hx("0x12")]((t=>t.data)),r=this._getSuggestionCoords(t),o=r[Hx("0x43")]-r.minColumn+1;if(Hx("0x52")==t[Hx("0x4d")])return e[Hx("0x45")]?{type:Hx("0x52"),content:Jr(n,Hx("0x3f"),Jr(n,Hx("0x6b"),[o,'"'+e[Hx("0x30")](" ")+'"']))}:{type:Hx("0x52"),content:Jr(n,Hx("0x3f"),Jr(n,"ELEMENT_TABLE_COLUMN",o))};if("deletion"==t[Hx("0x4d")])return e[Hx("0x45")]?{type:"deletion",content:Jr(n,Hx("0x83"),Jr(n,Hx("0x6b"),[o,'"'+e.join(" ")+'"']))}:{type:Hx("0x53"),content:Jr(n,"*Remove:* %0",Jr(n,Hx("0x55"),o))}}})),r._suggestionFactory.registerCustomCallback(Hx("0x52"),Hx("0x24"),"discard",i),r[Hx("0x65")][Hx("0x2b")](Hx("0x53"),"tableRow",Hx("0x2f"),i),r[Hx("0x65")].registerCustomCallback(Hx("0x52"),Hx("0x5f"),"discard",a),r[Hx("0x65")][Hx("0x2b")](Hx("0x53"),Hx("0x5f"),Hx("0x2f"),a),r[Hx("0x65")][Hx("0x2b")](Hx("0x52"),Hx("0x5f"),Hx("0x30"),c),r._suggestionFactory.registerCustomCallback("deletion",Hx("0x5f"),Hx("0x30"),c),r._suggestionFactory[Hx("0x2b")](Hx("0x52"),Hx("0x24"),"join",l),r[Hx("0x65")][Hx("0x2b")](Hx("0x53"),Hx("0x24"),Hx("0x30"),l)}[Hx("0x5c")](){const t=this[Hx("0x25")],e=t[Hx("0x82")].document[Hx("0x8")];return(n,r)=>{t[Hx("0x82")][Hx("0x4")]((o=>{const{commandName:i,commandParams:x}=r;let a=n[0][Hx("0x5b")][Hx("0x29")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Hx("0x57")][Hx("0x7f")]);const c=o[Hx("0x35")](a);if(Hx("0x16")==c.root[Hx("0x7e")])return;const l=Array.from(e.getRanges())[Hx("0x12")]((t=>s.LiveRange.fromRange(t)));o.setSelection(c),t[Hx("0x22")][Hx("0x38")](i)[Hx("0x6e")](),x[Hx("0x56")]({forceDefaultExecution:!0}),t.execute(i,...x);const u=l[Hx("0x73")]((t=>Hx("0x16")!=t[Hx("0x5d")][Hx("0x7e")]));u[Hx("0x45")]>0&&o.setSelection(u);for(const t of l)t[Hx("0x60")]()}))}}[Hx("0x47")](t){const e=this[Hx("0x25")].plugins.get("TableUtils");let n=Number[Hx("0x78")],r=Number[Hx("0x6c")],o=Number.MAX_SAFE_INTEGER,i=Number[Hx("0x6c")];for(const s of t){if("$graveyard"==s[Hx("0x5d")].rootName)continue;const{row:t,column:x}=e[Hx("0x1f")](s),a=s[Hx("0x44")](Hx("0x3b"))?s[Hx("0x58")](Hx("0x3b"))-1:0,c=s[Hx("0x44")](Hx("0x7c"))?s.getAttribute("colspan")-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}}_setupColumnsRowsFixing(){const t=this[Hx("0x25")],e=t.plugins[Hx("0x38")](Hx("0x2c")),n=t[Hx("0x70")][Hx("0x38")]("TableUtils");t[Hx("0x82")][Hx("0x76")].on(Hx("0x2e"),(()=>{const n=Array.from(t[Hx("0x82")][Hx("0x76")][Hx("0x66")][Hx("0x4c")]());for(const{name:t,data:r}of n){const{group:n,id:o,subType:i}=e[Hx("0x41")](t);if("suggestion"!=n)continue;if(null!=r.oldRange)continue;const s=e[Hx("0x4e")](o);this[Hx("0x26")][Hx("0x17")](i)&&this[Hx("0x13")][Hx("0x62")](s)}}),{priority:Hx("0x37")});const r=(t,e)=>{let r=!1;const o=e.createRangeOn(t),i=t[Hx("0x19")](Hx("0xa")),s=n[Hx("0x1f")](t);for(const e of this._tableSuggestions){const n=e[Hx("0x49")],x=n.startsWith(Hx("0x20")),a=n[Hx("0x4f")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+"span",u=Hx("0x32")+a,d=Hx("0x3a")+a;if(!e.isInContent)continue;if(i!=e[Hx("0x5e")]()[Hx("0x57")][Hx("0x19")]("table"))continue;if(e[Hx("0x46")](o))continue;const g=t[Hx("0x44")](l)?t.getAttribute(l)-1:0,f=this[Hx("0x40")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x15")](o),r=!0)}return r};t[Hx("0x82")][Hx("0x76")].registerPostFixer((e=>{let n=!1;for(const o of t[Hx("0x82")][Hx("0x76")][Hx("0x66")].getChanges())if(Hx("0x1b")==o[Hx("0x4d")])if(Hx("0x24")==o.name)for(const t of o[Hx("0x27")][Hx("0x7f")].getChildren())n=n||r(t,e);else Hx("0x42")==o.name&&(n=n||r(o.position.nodeAfter,e));return n}))}[Hx("0x40")](t){return this[Hx("0x47")](t[Hx("0x39")]().map((t=>t[Hx("0x57")][Hx("0x7f")])))}}function Wx(t){return Array.from(new Set(t)[Hx("0x3d")]())}const Kx=["add","stop","low","getSuggestions","accept","getFirstPosition","getCellLocation","isEnabled","refresh","return","model","type","isInContent","selection","afterInit","mergeTableCellDown","get","execute","insertion","map","_tablePostFixingSubtypes","TableUtils","subType","rootName","detach","formatInline","markMultiRangeBlockFormat","$graveyard","highest","createRangeOn","format","tableCell","length","markBlockFormat","getSelectionAffectedTableCells","set:isEnabled","setSelection","_areMergableCells","from","mergeTableCellRight","getAncestors","registerDescriptionCallback","_areSelectedCellsMergable","TrackChangesEditing","value","commands","find","author","direction","cell","plugins","findAncestor","splitTableCellVertically","trackChanges","mergeTableCellLeft","*Split cell:* vertically","editor","change","push","formatBlock","table","getRanges","requires","element","mergeTableCellUp","mergeTableCells","registerCustomCallback","_descriptionFactory","document","containsRange","_acceptFormatSuggestionCallbackFactory","size","enableCommand","commandName","*Merge cells*","createTableWalker","splitTableCellHorizontally","_suggestionFactory","fromRange","TableEditing"];var qx,Xx;qx=Kx,Xx=174,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("0x30")](){return[zx]}[$x("0x0")](){const t=this[$x("0x2a")],e=t[$x("0x4c")][$x("0x36")][$x("0x4f")],n=t.locale;if(!t[$x("0x24")].has($x("0x41")))return;const r=t[$x("0x24")][$x("0x2")]($x("0x1d")),o=t[$x("0x24")][$x("0x2")]($x("0x7")),i=t[$x("0x24")][$x("0x2")](zx);i[$x("0x6")][$x("0x2c")]($x("0x33")),r[$x("0x3a")]($x("0x33"),(()=>{const e=o.getSelectionAffectedTableCells(t.model[$x("0x36")].selection);t.model.change((()=>{r[$x("0xc")](e,{commandName:$x("0x33"),commandParams:[]},[],"mergeTableCells")}))})),t.commands.get($x("0x33")).on($x("0x3"),((e,n)=>{t.commands.get($x("0x27")).value&&(n[$x("0x12")]>0&&n[n[$x("0x12")]-1]&&n[n[$x("0x12")]-1].forceDefaultExecution||r._isForcedDefaultExecutionBlock||this[$x("0x1c")]()||e[$x("0x43")]())}),{priority:$x("0xe")});for(const e of[$x("0x32"),$x("0x19"),"mergeTableCellDown","mergeTableCellLeft"]){const n=t[$x("0x1f")].get(e);r[$x("0x3a")](e,(()=>{const e=t.model.document.selection.getFirstPosition()[$x("0x1a")]()[$x("0x20")]((t=>t.is($x("0x31"),$x("0x11")))),o=n[$x("0x1e")];t[$x("0x4c")].change((()=>{r[$x("0xc")]([e,o],{commandName:$x("0x33"),commandParams:[]},[],$x("0x33"))}))}))}for(const e of["splitTableCellVertically",$x("0x3e")]){const n=t[$x("0x1f")][$x("0x2")](e);r[$x("0x3a")](e,(()=>{const i=o[$x("0x14")](t[$x("0x4c")].document[$x("0x4f")])[0],s=i[$x("0x25")]($x("0x2e")),{column:x,row:a}=o[$x("0x48")](i);let c=[];if("horizontally"==n[$x("0x22")]){const t=o[$x("0x3d")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t).map((t=>t[$x("0x23")]))}else{const t=o.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array[$x("0x18")](t)[$x("0x5")]((t=>t[$x("0x23")]))}t[$x("0x4c")][$x("0x2b")]((t=>{r[$x("0x13")](t[$x("0xf")](i),{commandName:e,commandParams:[]},c,e)}))}))}r[$x("0x35")][$x("0x1b")]((t=>{if($x("0x2d")!=t[$x("0x4d")]&&$x("0xb")!=t[$x("0x4d")])return;const{data:e}=t;return e&&$x("0x33")==e[$x("0x3b")]?{type:"format",content:Jr(n,$x("0x3c"))}:void 0})),r._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[$x("0x4d")]&&$x("0xb")!=t[$x("0x4d")])return;const{data:e}=t;return e?$x("0x26")==e.commandName?{type:"format",content:Jr(n,$x("0x29"))}:$x("0x3e")==e[$x("0x3b")]?{type:$x("0x10"),content:Jr(n,"*Split cell:* horizontally")}:void 0:void 0}));const x=i[$x("0x38")]();for(const t of[$x("0x32"),$x("0x19"),$x("0x1"),$x("0x28")])r[$x("0x3f")][$x("0x34")]($x("0x2d"),t,"accept",x);for(const t of["splitTableCellVertically",$x("0x3e")])r[$x("0x3f")][$x("0x34")]("formatBlock",t,$x("0x46"),x);r[$x("0x3f")][$x("0x34")]($x("0x2d"),$x("0x33"),$x("0x46"),(n=>{t[$x("0x4c")][$x("0x2b")]((r=>{const o=Array[$x("0x18")](e[$x("0x2f")]())[$x("0x5")]((t=>s.LiveRange[$x("0x40")](t)));r[$x("0x16")](n),t[$x("0x1f")].get($x("0x33"))[$x("0x4a")](),t[$x("0x3")]("mergeTableCells",{forceDefaultExecution:!0});const i=o.filter((t=>$x("0xd")!=t.root[$x("0x9")]));i[$x("0x12")]>0&&r[$x("0x16")](i);for(const t of o)t[$x("0xa")]()}))}));for(const e of[$x("0x32"),$x("0x1"),"mergeTableCellLeft",$x("0x19")]){const n=t[$x("0x1f")][$x("0x2")](e);n.on($x("0x15"),((e,r,o)=>{if(o){const r=t[$x("0x4c")][$x("0x36")][$x("0x4f")][$x("0x47")]()[$x("0x1a")]()[$x("0x20")]((t=>t.is($x("0x31"),$x("0x11"))));this._areMergableCells(n[$x("0x1e")],r)||(e[$x("0x4b")]=!1,e[$x("0x43")]())}}),{priority:$x("0x44")})}}[$x("0x1c")](){const t=this.editor[$x("0x1f")].get($x("0x33")),e=this[$x("0x2a")][$x("0x24")][$x("0x2")]("TableUtils");if(!t[$x("0x49")])return!1;const n=e.getSelectionAffectedTableCells(this[$x("0x2a")][$x("0x4c")].document[$x("0x4f")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x17")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this.editor[$x("0x24")][$x("0x2")]($x("0x1d")),r=this[$x("0x2a")].model[$x("0xf")](t),o=this.editor[$x("0x4c")][$x("0xf")](e),i=new Set,s=new Set;for(const t of n[$x("0x45")]())if(($x("0x4")==t[$x("0x4d")]||"deletion"==t.type||$x("0x33")==t[$x("0x8")])&&t[$x("0x4e")])for(const e of t.getRanges())e[$x("0x37")](r,!0)&&i[$x("0x42")](t[$x("0x4d")]+":"+t[$x("0x21")].id),e.containsRange(o,!0)&&s[$x("0x42")](t[$x("0x4d")]+":"+t[$x("0x21")].id);if(i[$x("0x39")]!=s[$x("0x39")])return!1;for(const t of i)if(!s.has(t))return!1;return!0}}const Yx=["writer","registerCustomCallback","ck-suggestion-marker--active","registerDescriptionCallback","FORMAT_REGULAR_COLUMN","toViewElement","createTableWalker","removeMarker:suggestion","editor","getCellLocation","ck-suggestion-marker-","forceValue","setAttribute","accept","markerRange","get","consume","_descriptionFactory","*Format:* %0","name","markerName","commandName","type","headingRows","parent","nodeAfter","unbindElementFromMarkerName","_enableDefaultAttributesIntegration","afterInit","headingColumns","data","plugins","registerAttributeLabel","addMarker:suggestion","FORMAT_REGULAR_ROW","_suggestionFactory","cell","removeClass","downcastDispatcher","setTableRowHeader","addClass","options","FORMAT_HEADER_COLUMN","bindElementToMarker","mapper","getSuggestion","TableEditing","consumable","start","FORMAT_HEADER_ROW","TrackChangesEditing","editing","_splitMarkerName","markerNameToElements","TableUtils","_handleLegacySuggestions","includes","highest","requires","locale","setTableColumnHeader","formatBlock"];var Jx,Qx;Jx=Yx,Qx=379,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("0x33")](){return[zx]}[ta("0x15")](){const t=this[ta("0x1")];if(!t[ta("0x18")].has(ta("0x27")))return;const e=t[ta("0x34")],n=t[ta("0x18")][ta("0x8")]("TrackChangesEditing");n[ta("0x14")](ta("0x20"),[],[ta("0x10")]),n[ta("0x14")](ta("0x35"),[],[ta("0x16")]),n[ta("0xa")][ta("0x19")](ta("0x10"),Jr(e,ta("0x2a"))),n[ta("0xa")][ta("0x19")](ta("0x16"),Jr(e,ta("0x23"))),this._handleLegacySuggestions()}[ta("0x30")](){const t=this[ta("0x1")].plugins[ta("0x8")]("TrackChangesEditing"),e=this[ta("0x1")][ta("0x18")][ta("0x8")](ta("0x2f")),n=this[ta("0x1")].plugins.get(zx)._acceptFormatSuggestionCallbackFactory();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(o,i,s)=>{const{type:x,id:a}=t[ta("0x2d")](i[ta("0xd")]),c=t[ta("0x26")](a),l=c[ta("0x17")];if(ta("0x36")!=c[ta("0xf")]||!l||"setTableColumnHeader"!=l[ta("0xe")])return;if(i.item)return void o.stop();if(!s[ta("0x28")][ta("0x9")](i[ta("0x7")],o[ta("0xc")]))return;const u=i[ta("0x7")][ta("0x29")][ta("0x12")],d=i[ta("0x7")].end.nodeBefore,g=u[ta("0x11")][ta("0x11")],{column:f}=e[ta("0x2")](u),{column:m}=e.getCellLocation(d);for(let o=f;o<=m;o++){const c=e[ta("0x3d")](g,{column:o,includeAllSlots:!1});for(const e of c){const o=e[ta("0x1d")],c=s[ta("0x25")][ta("0x3c")](o);s[ta("0x37")][ta("0x21")](ta("0x3")+x,c),r&&s[ta("0x37")][ta("0x5")]("data-suggestion",a,c),s[ta("0x25")][ta("0x24")](c,i[ta("0xd")]),n&&(t.activeMarkers[ta("0x31")](i.markerName)?s.writer[ta("0x21")](ta("0x39"),c):s[ta("0x37")][ta("0x1e")](ta("0x39"),c))}}}}t[ta("0x1c")][ta("0x38")](ta("0x36"),ta("0x20"),"accept",n),t[ta("0x1c")].registerCustomCallback(ta("0x36"),"setTableColumnHeader",ta("0x6"),n),this.editor[ta("0x2c")][ta("0x1f")].on(ta("0x1a"),r(),{priority:ta("0x32")}),this[ta("0x1")][ta("0x17")][ta("0x1f")].on(ta("0x1a"),((t,e,n)=>{n[ta("0x22")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this.editor[ta("0x2c")].downcastDispatcher.on(ta("0x0"),((e,n,r)=>{const{type:o,id:i}=t[ta("0x2d")](n[ta("0xd")]),s=t.getSuggestion(i),x=s[ta("0x17")];if(ta("0x36")!=s[ta("0xf")]||!x||ta("0x35")!=x[ta("0xe")])return;const a=r[ta("0x25")][ta("0x2e")](n[ta("0xd")]);if(a)for(const t of a)r[ta("0x37")].removeClass(ta("0x3")+o,t),r[ta("0x37")][ta("0x1e")](ta("0x39"),t),r.writer.removeAttribute("data-suggestion",t),r[ta("0x25")][ta("0x13")](t,n[ta("0xd")])}),{priority:"highest"}),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ta("0x1")],e=t[ta("0x34")];function n(t){return{type:"format",content:Jr(e,ta("0xb"),t)}}t[ta("0x18")][ta("0x8")](ta("0x2b"))[ta("0xa")][ta("0x3a")]((t=>{if(ta("0x36")!=t[ta("0xf")])return;const{data:r}=t;if(r){if(ta("0x20")==r[ta("0xe")]){const t=r.commandParams[0][ta("0x4")];return n(Jr(e,ta(t?"0x2a":"0x1b")))}if(ta("0x35")==r[ta("0xe")]){const t=r.commandParams[0][ta("0x4")];return n(Jr(e,ta(t?"0x23":"0x3b")))}}}))}}const na=["forceDefaultExecution","cells","deletionRanges","get","isEmpty","editingDowncast","markMultiRangeInsertion","insert","tableCell","some","insertion","elementToElement","suggestionLoaded","markerToHighlight","columnInsertionIndexes","markerName","filter","suggestion","activeMarkers","dataDowncast","getAttributes","attributes","push","getColumnIndexes","columns","createRangeIn","getSuggestion","from","registerCustomCallback","_createdBatches","keys","for","batch","last","first","removeMarkers","remove","tableCellSuggestion","next","markMultiRangeDeletion","conversion","tablePaste","type","high","Users","start","setAttributes","paragraph","discard","isInContent","commands","markers","TrackChangesEditing","insertColumns","registerPostFixer","find","deletion","position","value","column","length","table","end","fill","getChild","model","nextSibling","getSuggestionCallback","includes","_suggestionFactory","rowInsertionIndexes","register","_isForcedDefaultExecutionBlock","element","tablePasteRow","set","redo","getChangedMarkers","schema","tableCellVerticalAlignment","updateMarker","tableCellHorizontalAlignment","showSuggestionHighlights","wrap","entries","return","document","tablePasteCell","TableClipboard","documentSelection","getMarkers","oldRange","change","nodeAfter","selection","stop","low","tableCellBorderColor","getAllAdjacentSuggestions","_replaceTableSlotCell","root","getContainedElement","containsRange","getSuggestions","map","view","$graveyard","registerDescriptionCallback","previous","getChanges","afterInit","previousSibling","plugins","join","removeRows","options","ck-suggestion-marker--active","tableCellPadding","suggestion-td","getRows","createTableWalker","content","rows","markMultiRangeBlockFormat","listenTo","newRange","getChildren","editing","removeColumns","requires","_getCoordsForCells","createRangeOn","TableUtils","suggestionUnloaded","reduce","tablePasteChainId","getRange","every","cell","markerAttributes","setAttribute","add","has","getRanges","author","differ","*Replace table cells*","columnInsertionRanges","fromEntries","getSelectionAffectedTableCells","getTableIfOnlyTableInContent","getColumns","insertRows","insertContent","rowInsertionRanges","findAncestor","suggestion:formatBlock:tablePasteCell","endRow","isEqual","locale","formatBlock","endColumn","accept","createElement","move","_tablePostFixingSubtypes","name","subType","startsWith","tablePasteColumn","editor"];var ra,oa;ra=na,oa=136,function(t){for(;--t;)ra.push(ra.shift())}(++oa);const ia=function(t,e){return na[t-=0]},sa=["tableCellBorderWidth",ia("0x84"),"tableCellBorderStyle",ia("0x74"),ia("0x72"),"tableCellBackgroundColor",ia("0x98")],xa=Object[ia("0xc")](sa[ia("0x8b")]((t=>[t,null])));class aa extends t.Plugin{static get[ia("0xa4")](){return[zx]}[ia("0x91")](){const t=this[ia("0x22")];if(!t.plugins[ia("0x6")]("TableClipboard"))return;const n=t[ia("0x93")][ia("0x26")](ia("0x57")),r=t.plugins[ia("0x26")](ia("0xa7")),o=t[ia("0x93")].get(zx),i=t[ia("0x93")][ia("0x26")]("TableClipboard");o[ia("0x1d")][ia("0x39")](ia("0x6d"),ia("0x21")),t.model[ia("0x71")][ia("0x6a")](ia("0x48"),{allowIn:ia("0x2b"),allowContentOf:ia("0x2b"),isLimit:!0}),t[ia("0x4b")][ia("0x2e")]({model:ia("0x48"),view:"suggestion-td"});let s=null;t[ia("0x64")].on(ia("0x11"),((o,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[ia("0x23")]||n[ia("0x6b")]||this[ia("0x22")][ia("0x55")][ia("0x26")]("trackChanges")[ia("0x5d")]&&function(t,e,n,r,o){if(e&&!e.is(ia("0x7c")))return!1;const i=o[ia("0xe")](t,n);if(!i||!la(i,void 0,r))return!1;const s=r[ia("0xd")](n.document[ia("0x81")]);if(!s[ia("0x5f")])return!1;const x=s[0].findAncestor("table"),a=r.getRowIndexes(s),c=r[ia("0x3a")](s),l={startRow:a[ia("0x45")],endRow:a[ia("0x44")],startColumn:c[ia("0x45")],endColumn:c[ia("0x44")]};return 1==s[ia("0x5f")]&&(l[ia("0x15")]+=r[ia("0x9a")](i)-1,l[ia("0x19")]+=r[ia("0xf")](i)-1),la(x,l,r)}(a,c,t.model,r,i)&&(o[ia("0x82")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ia("0x64")][ia("0x7f")]((()=>{t[ia("0x64")][ia("0x11")](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.length&&n[ia("0x29")](o,ia("0x6d"),{tablePasteChainId:r}),i[ia("0x5f")]&&n.markMultiRangeInsertion(i,ia("0x21"),{tablePasteChainId:r}),a[ia("0x5f")]&&n.markMultiRangeInsertion(a,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0}),c[ia("0x5f")]&&n[ia("0x4a")](c,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0});const u=n[ia("0x9e")](l[ia("0x8b")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:r});if(u){const e=u[ia("0x7d")](),n=[];for(const{element:r,attributes:o}of l){if(!o)continue;const i=t[ia("0x64")][ia("0xa6")](r),s=e[ia("0x5a")]((t=>t.getRange()[ia("0x16")](i)));s&&n[ia("0x39")]([s[ia("0x1e")],o])}n[ia("0x5f")]&&u[ia("0x4")](ia("0x3"),Object.fromEntries(n))}s=null})))}),{priority:e.priorities[ia("0x4e")]+10}),t[ia("0x93")][ia("0x26")](ia("0x7b")).on(ia("0x86"),((t,e)=>{const[n,r,,o]=e;if(!s)return;t.stop();const i=n[ia("0x2")],x=r,a=ca(i),c=ca(x);t[ia("0x78")]=i;let l=null,u=null;if(c||a)if(a&&!c){o[ia("0x47")](i[ia("0x63")](0));for(const t of Array[ia("0x3e")](x[ia("0xa1")]()))o[ia("0x2a")](t,i,ia("0x61"));const t=s.rowInsertionIndexes.includes(n.row),e=s[ia("0x31")][ia("0x67")](n[ia("0x5e")]);t||e||(l=o[ia("0x3c")](i))}else c&&!a&&(u=o.createRangeIn(i));else{const t=o.createElement("tableCellSuggestion"),e=o[ia("0x1b")](ia("0x48"));o[ia("0x76")](o[ia("0x3c")](i),e),o.insert(t,i,0);for(const e of Array[ia("0x3e")](x[ia("0xa1")]()))o[ia("0x2a")](e,t,"end");l=o[ia("0xa6")](t),u=o[ia("0xa6")](e)}const d=Array[ia("0x3e")](x[ia("0x37")]()).filter((([t])=>sa[ia("0x67")](t)));s[ia("0x24")][ia("0x39")]({element:i,attributes:d[ia("0x5f")]?Object.fromEntries(d):null}),l&&s.insertionRanges[ia("0x39")](l),u&&s[ia("0x25")].push(u)}),{priority:"high"}),r.on(ia("0x58"),((e,n)=>{const[o,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x3b")]||1;s[ia("0x31")]=new Array(a).fill(x)[ia("0x8b")](((t,e)=>t+e));for(const{cell:e}of r.createTableWalker(o,{startColumn:x,endColumn:x+a-1}))s[ia("0xb")][ia("0x39")](t[ia("0x64")].createRangeOn(e))}),{priority:ia("0x83")}),r.on(ia("0x10"),((e,n)=>{const[o,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x9d")]||1;s[ia("0x69")]=new Array(a)[ia("0x62")](x)[ia("0x8b")](((t,e)=>t+e));for(const{cell:e}of r[ia("0x9b")](o,{startRow:x,endRow:x+a-1}))s[ia("0x12")].push(t[ia("0x64")][ia("0xa6")](e))}),{priority:"low"}),n._descriptionFactory[ia("0x8e")]((e=>{if(e[ia("0x1f")]&&e[ia("0x1f")][ia("0x20")](ia("0x4c")))return e[ia("0x8f")]?{}:{type:ia("0x2d"),content:Jr(t[ia("0x17")],ia("0xa"))}}));const x=()=>!1;for(const t of[ia("0x4c"),ia("0x21"),ia("0x6d"),ia("0x7a")])n._suggestionFactory.registerCustomCallback("insertion",t,ia("0x94"),x),n[ia("0x68")][ia("0x3f")](ia("0x5b"),t,ia("0x94"),x),n[ia("0x68")][ia("0x3f")]("formatBlock",t,ia("0x94"),x);n[ia("0x68")][ia("0x3f")](ia("0x18"),ia("0x7a"),ia("0x53"),x),n._suggestionFactory[ia("0x3f")](ia("0x18"),ia("0x7a"),"accept",((e,n,r)=>{const o=e[ia("0x8b")]((t=>t[ia("0x88")]()))[ia("0x33")]((t=>t)),i=new Map(o.map((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ia("0x24")])e&&i[ia("0x6e")](t,e);else if(r&&r.markerAttributes)for(const[e,n]of Object[ia("0x77")](r.markerAttributes)){const r=t[ia("0x64")][ia("0x56")].get(e),o=r?r[ia("0x0")]().getContainedElement():null;o&&i[ia("0x6e")](o,n)}t.model.change((t=>{for(const[e,n]of i)t[ia("0x51")]({...xa,...n},e)}))}));const a=(e,r)=>{n[ia("0x68")][ia("0x3f")](e,ia("0x4c"),r,((o,i,s)=>{t[ia("0x64")][ia("0x7f")]((t=>{const x=[];for(const t of o){const e=t[ia("0x50")][ia("0x80")];e.is("element",ia("0x48"))&&x[ia("0x39")](e)}n[ia("0x68")][ia("0x66")](e,null,r)(o,i,s);for(const e of x)ia("0x8d")!=e[ia("0x87")].rootName&&t.unwrap(e)}))}))};a(ia("0x2d"),ia("0x1a")),a(ia("0x2d"),ia("0x53")),a(ia("0x5b"),"accept"),a(ia("0x5b"),ia("0x53")),n[ia("0x68")].registerCustomCallback(ia("0x2d"),ia("0x6d"),ia("0x53"),(t=>{const e=t[ia("0x8b")]((t=>t[ia("0x88")]())),n=e[0][ia("0x13")](ia("0x60")),{minRow:i,maxRow:s}=o[ia("0xa5")](e);r[ia("0x95")](n,{at:i,rows:s-i+1})})),n[ia("0x68")][ia("0x3f")](ia("0x2d"),ia("0x21"),ia("0x53"),(t=>{const e=t[ia("0x8b")]((t=>t[ia("0x88")]())),n=e[0].findAncestor(ia("0x60")),{minColumn:i,maxColumn:s}=o[ia("0xa5")](e);r[ia("0xa3")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0x1f")]||!e.subType.startsWith("tablePaste"))return;const r=e[ia("0x38")].tablePasteChainId,o=n[ia("0x8a")]()[ia("0x33")]((t=>t[ia("0x54")]&&t[ia("0x38")]&&t[ia("0x38")][ia("0xaa")]==r));o.length&&e[ia("0x85")]().length!=o[ia("0x5f")]&&o[ia("0xa9")](((t,e)=>(t[ia("0x49")]=e,e[ia("0x8f")]=t,e)))};function l(t,e=!0){const{id:r}=n._splitMarkerName(t[ia("0x32")]),o=["ck-suggestion-marker","ck-suggestion-marker-insertion"],i=n[ia("0x35")][ia("0x67")](t[ia("0x32")]);return i&&o[ia("0x39")](ia("0x97")),{classes:o,attributes:{"data-suggestion":r},priority:i&&e?3010:3e3}}n.on(ia("0x2f"),c,{priority:ia("0x4e")}),n.on(ia("0xa8"),c,{priority:ia("0x4e")}),t.model[ia("0x79")][ia("0x59")]((()=>{let e=!1;const r=Array[ia("0x3e")](t[ia("0x64")][ia("0x79")].differ[ia("0x70")]());for(const{name:o,data:i}of r){const{group:r,type:s,id:x}=n._splitMarkerName(o);if(ia("0x34")!=r||ia("0x5b")!=s||i[ia("0x7e")])continue;if(!n.hasSuggestion(x))continue;const a=n[ia("0x3d")](x)[ia("0x7")](),c=t[ia("0x93")][ia("0x26")](ia("0x4f")).me;for(const t of n[ia("0x8a")]())if(t[ia("0x54")]&&t[ia("0x8")]==c&&ia("0x18")==t[ia("0x4d")]&&ia("0x7a")==t[ia("0x1f")]&&t[ia("0x7")]()[ia("0x1")]((t=>a[ia("0x2c")]((e=>e[ia("0x89")](t,!0))))))for(const n of t[ia("0x85")]())n[ia("0x54")]&&(n[ia("0x53")](),e=!0)}return e})),t[ia("0x64")][ia("0x79")].registerPostFixer((e=>{const r=t[ia("0x55")][ia("0x26")](ia("0x6f"));if(!r||!r[ia("0x40")][ia("0x6")](e[ia("0x43")]))return!1;let o=!1;const i=t[ia("0x93")][ia("0x26")](ia("0x4f")).me,s=t.model.document[ia("0x9")][ia("0x90")](),x=Array[ia("0x3e")](t[ia("0x64")][ia("0x79")][ia("0x9")][ia("0x70")]()).filter((({name:t,data:e})=>{const{group:r,subType:o,authorId:s}=n._splitMarkerName(t);return ia("0x34")==r&&ia("0x4c")==o&&s==i.id&&!e.oldRange}));for(const t of s){if(ia("0x2a")!=t.type||ia("0x48")!=t[ia("0x1e")]||1!=t[ia("0x5f")])continue;const n=e.createRange(t[ia("0x5c")],t[ia("0x5c")].getShiftedBy(1));if(!x[ia("0x5a")]((({data:t})=>t[ia("0xa0")][ia("0x16")](n))))for(const{name:t,data:r}of x)if(n.containsRange(r[ia("0xa0")])){e[ia("0x73")](t,{range:n}),o=!0;break}}return o})),t[ia("0x64")][ia("0x79")][ia("0x59")]((e=>{let r=!1;const o=t.plugins[ia("0x26")](ia("0x4f")).me,i=n[ia("0x8a")]()[ia("0x33")]((t=>t[ia("0x54")]&&t.author==o)),s=new Set,x=new Set;for(const t of i)if("tablePaste"==t[ia("0x1f")])for(const e of t[ia("0x7d")]()){const n=e[ia("0x0")]().getContainedElement();if(n)if(n.is(ia("0x6c"),ia("0x48"))&&ca(n)){t.removeMarker(e[ia("0x1e")]),s.add(n),r=!0;const o=n[ia("0x65")],i=n[ia("0x92")],a=o&&o.is(ia("0x6c"),ia("0x48")),c=i&&i.is(ia("0x6c"),ia("0x48"));a&&!s[ia("0x6")](o)&&x[ia("0x5")](o),c&&!s.has(i)&&x[ia("0x5")](i)}else n.is("element",ia("0x52"))&&n[ia("0x27")]&&(t.removeMarker(e[ia("0x1e")]),r=!0)}else if(ia("0x7a")==t[ia("0x1f")]){if(!t[ia("0x38")]||!t[ia("0x38")][ia("0xaa")])continue;const e=t[ia("0x38")][ia("0x3")];if(e&&Object[ia("0x41")](e).length)continue;const n=t[ia("0x38")][ia("0xaa")];let o=!0,s=!0;for(const e of i)if(e.subType&&e[ia("0x1f")][ia("0x20")](ia("0x4c"))){if(!e.attributes[ia("0xaa")]){s=!1;break}if(e.id!=t.id&&e.attributes.tablePasteChainId==n){o=!1;break}}s&&o&&(t[ia("0x46")](),r=!0)}for(const t of s)e[ia("0x47")](t);for(const t of x)e.unwrap(t);return r})),t[ia("0x4b")].for(ia("0x28"))[ia("0x30")]({model:ia("0x14"),view:(t,e)=>l(t),converterPriority:"high"}),t[ia("0x4b")][ia("0x42")](ia("0x36"))[ia("0x30")]({model:ia("0x14"),view:(t,e)=>e[ia("0x96")][ia("0x75")]?l(t,!1):null,converterPriority:ia("0x4e")});const u=t[ia("0xa2")][ia("0x8c")];this[ia("0x9f")](u.document,"clipboardOutput",((t,e)=>{const n=[];for(const t of u[ia("0x3c")](e[ia("0x9c")]).getItems())t.is(ia("0x6c"),ia("0x99"))&&n.push(t);u[ia("0x7f")]((t=>{for(const e of n)t[ia("0x1c")](t[ia("0x3c")](e),t.createPositionBefore(e)),t.remove(e)}))}))}}function ca(t){if(t[ia("0x27")])return!0;const e=t[ia("0x63")](0);return e.is(ia("0x6c"),ia("0x52"))&&e[ia("0x27")]}function la(t,e={},n){for(const{isAnchor:r,cellHeight:o,cellWidth:i}of n[ia("0x9b")](t,{includeAllSlots:!0,...e}))if(!r||1!=o||1!=i)return!1;return!0}const ua=["editor","data","table","get","afterInit","bind","getColumnGroupElement","subType","resizeTableWidth","registerDescriptionCallback","*Format:* resize table","getSelectedElement","has","handleSuggestionDescription","_suggestionFactory","markBlockFormat","registerCustomCallback","selection","change","enableCommand","getTableColumnsWidths","TableColumnResizeEditing","document","discard","formatGroupId","tableWidth","getContainedElement","formatBlock","formatInline","type","handleResizeTableWidthCommand","getSuggestionCallback","commandParams","accept","resizeTable","TrackChangesEditing","columnWidths","getSuggestions","plugins","Users"];var da,ga;da=ua,ga=303,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x15")](){if(!this.editor[fa("0xf")][fa("0x1d")](fa("0x26")))return;const t=this.editor[fa("0xf")][fa("0x14")]("TrackChangesEditing");t[fa("0x24")](fa("0x19"),this[fa("0x7")].bind(this)),t[fa("0x1f")].registerCustomCallback(fa("0x4"),fa("0xb"),"accept",t[fa("0x1f")][fa("0x8")](fa("0x4"),null,fa("0x0"))),t._suggestionFactory[fa("0x21")](fa("0x4"),fa("0xb"),"discard",t[fa("0x1f")][fa("0x8")](fa("0x4"),null,fa("0xa"))),t._descriptionFactory[fa("0x1a")](this[fa("0x1e")][fa("0x16")](this))}[fa("0x7")](t,e){const n=this[fa("0x11")][fa("0xf")][fa("0x14")](fa("0xc")),r=this.editor[fa("0xf")][fa("0x14")]("TableColumnResizeEditing"),o=e[fa("0x13")]||this[fa("0x11")].model[fa("0x27")][fa("0x22")][fa("0x1c")]();this[fa("0x11")].model[fa("0x23")]((()=>{const i=r[fa("0x17")](o);let s=i?r[fa("0x25")](i):null,x=o.getAttribute("tableWidth")||null;const a=e[fa("0x2")]||x,c=e[fa("0xd")]||s,l=this.editor[fa("0xf")][fa("0x14")](fa("0x10")).me;for(const t of n[fa("0xe")]()){const e=t[fa("0x3")]();if("resizeTable"===t[fa("0x18")]&&e===o){t.author!==l&&t.discard();const e=t[fa("0x12")][fa("0x9")];x=e[0].tableWidth,s=e[0][fa("0xd")];break}}t({table:o,tableWidth:a,columnWidths:c}),n[fa("0x20")](o,{commandName:fa("0x19"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0xb")},[],fa("0xb"))}))}[fa("0x1e")](t){if(fa("0x4")!=t[fa("0x6")]&&fa("0x5")!=t.type)return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0x1")]){const t=fa("0x1b");return{type:"format",content:Jr(this[fa("0x11")].locale,t)}}}}const ha=["enableCommand","has","editor","afterInit","plugins","Template"];var pa,ba;pa=ha,ba=376,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x5")](){const t=this[Ea("0x4")];t[Ea("0x0")][Ea("0x3")](Ea("0x1"))&&t.plugins.get("TrackChangesEditing")[Ea("0x2")]("insertTemplate")}}const Ta=["insertTableOfContents","TrackChangesEditing","get","enableCommand","plugins","tableOfContents","afterInit","editor","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","locale"];var ya,Ca;ya=Ta,Ca=227,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0xa")](){const t=this[Aa("0x0")];if(!t.commands[Aa("0x6")](Aa("0x4")))return;t[Aa("0x8")][Aa("0x6")](Aa("0x5"))[Aa("0x7")]("insertTableOfContents");const e=t[Aa("0x8")][Aa("0x6")]("TrackChangesEditing"),n=t[Aa("0x3")];e._descriptionFactory[Aa("0x1")](Aa("0x9"),(t=>Jr(n,Aa("0x2"),t)))}}const Ia=["getChangedMarkers","updateMarker","getNearestSelectionRange","differ","locale","title-content","document","has","ELEMENT_TITLE","_splitMarkerName","TrackChangesEditing","isEqual","_descriptionFactory","plugins","createRange","start","isTouching","registerPostFixer","nodeBefore","isCollapsed","newRange","end","forward","schema","get"];var Ra,Sa;Ra=Ia,Sa=448,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.editor;if(!t.plugins[va("0x9")]("Title"))return;const e=t[va("0xf")][va("0x1")](va("0xc"));e[va("0xe")].registerElementLabel(va("0x7"),(()=>Jr(t[va("0x6")],va("0xa")))),t.model[va("0x8")][va("0x13")]((n=>{let r=!1;const o=Array.from(t.model[va("0x8")][va("0x5")][va("0x2")]());for(const{name:i,data:s}of o){const{group:o}=e[va("0xb")](i);if("suggestion"!==o||!s.newRange)continue;const x=s[va("0x16")],a=x[va("0x17")][va("0x14")];if(!a||!a.is("element",va("0x7")))continue;if(!x.start[va("0x12")](x.end))continue;const c=t.model[va("0x0")][va("0x4")](x.end,va("0x18"));if(c&&c[va("0x15")]){const t=n[va("0x10")](x[va("0x11")],c[va("0x11")]);t[va("0xd")](x)||(n[va("0x3")](i,{range:t}),r=!0)}r||(n.removeMarker(i),r=!0)}return r}))}}const La=["enableCommand","plugins","UndoEditing","afterInit","TrackChangesEditing","get","editor","has"];var Ma,wa;Ma=La,wa=167,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x4")](){const t=this[Oa("0x7")],e=t.plugins[Oa("0x6")](Oa("0x5"));t[Oa("0x2")][Oa("0x0")](Oa("0x3"))&&(e[Oa("0x1")]("undo"),e[Oa("0x1")]("redo"))}}const Da=["TableCaptionEditing","editor","toggleTableCaption","afterInit","plugins","has","TrackChangesEditing","requires","get","enableCommand"];var Ba,Pa;Ba=Da,Pa=119,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("0x8")](){return[zx]}[Ua("0x4")](){const t=this[Ua("0x2")];t[Ua("0x5")][Ua("0x6")](Ua("0x1"))&&t[Ua("0x5")][Ua("0x9")](Ua("0x7"))[Ua("0x0")](Ua("0x3"))}}const Ga=["formatBlock","enableCommand","_handlePropertyChange","findAncestor","*Format:* change table cell properties","tableBackgroundColor","tableAlignment","tableBorderStyle","_suggestionFactory","join","discard","enqueueChange","get","selection","table","markBlockFormat","removeAttribute","getSelectionAffectedTableCells","handleDiscardAction","tableCellBorderWidth","getSuggestionCallback","model","tableCellPadding","TableCellPropertiesEditing","tableCellBorderStyle","_getSuggestion","plugins","tableCellProperties","format","afterInit","tableBorderWidth","editor","tableWidth","tableCellVerticalAlignment","batch","data","has","TablePropertiesEditing","TableUtils","accept","tableProperties","TrackChangesEditing","tableCellHeight","subType","setAttribute","TrackChangesTableProperties","*Format:* change table properties","pluginName","nodeAfter","commandParams","handleSuggestionDescription","locale","getAttribute","getFirstPosition","change","tableCellHorizontalAlignment","tableCellWidth","registerCustomCallback","registerDescriptionCallback","document"];var Va,Ha;Va=Ga,Ha=187,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x21")]=["tableBorderColor",za("0x0"),za("0x17"),za("0x3b"),za("0x19"),"tableHeight",za("0x3a")],this[za("0x14")]=["tableCellBorderColor",za("0x11"),za("0xc"),za("0xf"),za("0x31"),za("0x23"),"tableCellBackgroundColor",za("0x30"),za("0x1a")]}static get[za("0x28")](){return za("0x26")}[za("0x16")](){const t=this[za("0x18")][za("0x13")][za("0x5")](za("0x22"));if(this[za("0x18")][za("0x13")][za("0x1d")](za("0x1e"))){for(const e of this[za("0x21")])t[za("0x36")](e,((t,n)=>{const r=this[za("0x18")][za("0xe")].document[za("0x6")][za("0x2e")]()[za("0x38")](za("0x7"));this[za("0x37")](e,[r],this.tableProperties,za("0x21"),t,n)}));t[za("0x1")][za("0x32")](za("0x35"),za("0x21"),za("0x20"),t[za("0x1")][za("0xd")](za("0x35"),null,za("0x3"))),t[za("0x1")][za("0x32")](za("0x35"),za("0x21"),"discard",((t,e)=>this[za("0xb")](this[za("0x21")],t,e))),t[za("0x1")][za("0x32")](za("0x35"),"tableProperties","join",(()=>!1))}if(this[za("0x18")][za("0x13")][za("0x1d")](za("0x10"))){for(const e of this[za("0x14")])t[za("0x36")](e,((t,n)=>{const r=this.editor[za("0x13")].get(za("0x1f"))[za("0xa")](this.editor[za("0xe")][za("0x34")][za("0x6")]);this[za("0x37")](e,r,this[za("0x14")],"tableCellProperties",t,n)}));t._suggestionFactory[za("0x32")](za("0x35"),za("0x14"),za("0x20"),t[za("0x1")][za("0xd")](za("0x35"),null,"discard")),t[za("0x1")][za("0x32")](za("0x35"),za("0x14"),"discard",((t,e)=>this.handleDiscardAction(this[za("0x14")],t,e))),t[za("0x1")][za("0x32")](za("0x35"),"tableCellProperties",za("0x2"),(()=>!1))}t._descriptionFactory[za("0x33")]((t=>this[za("0x2b")](t)))}_handlePropertyChange(t,e,n,r,o,i){const s=this[za("0x18")][za("0x13")][za("0x5")](za("0x22"));this[za("0x18")][za("0xe")][za("0x4")](i[za("0x1b")],(()=>{for(const t of e)if(this[za("0x12")](t,r))o(i);else{const e={};for(const r of n){const n=t[za("0x2d")](r);void 0!==n&&(e[r]=n)}o(i),s[za("0x8")](t,{commandParams:[e]},[],r)}}))}[za("0xb")](t,e,n){const r=e[0].start[za("0x29")],o=n[za("0x2a")][0];this[za("0x18")][za("0xe")][za("0x2f")]((e=>{for(const n of t)void 0!==o[n]?e[za("0x25")](n,o[n],r):e[za("0x9")](n,r)}))}[za("0x2b")](t){if(t[za("0x1c")])switch(t[za("0x24")]){case"tableProperties":return{type:"format",content:Jr(this.editor[za("0x2c")],za("0x27"))};case za("0x14"):return{type:za("0x15"),content:Jr(this[za("0x18")][za("0x2c")],za("0x39"))}}}[za("0x12")](t,e){const n=this[za("0x18")][za("0x13")].get(za("0x22"));for(const r of n.getSuggestions({skipNotAttached:!0})){const n=r.getContainedElement();if(r.subType===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=["mapper","removeMarker:suggestion:attribute","formatInline","elementStart","getCommentThread","isUndo","find","insertContent","author","_handleNewSuggestionMarker","getOperations","getSuggestions","deletion:","low","isBefore","value","isRemovable","FORMATTING","parent","set","markerToHighlight","item","_model","_registerInlineAttribute","newValue","for","add","adapter","rejected","_adapter","batch","suggestion","_defaultCallbacks","delete","clear","differ","stopListening","addMarker","ariaLiveAnnouncer","getCustomProperty","change","moveTargetPosition","_getAttributeKeyFromSubType","markInsertion","suggestionUnloaded","acceptSelectedSuggestions","hasSuggestion","markBlockFormat","elementEnd","isSelectable","editor","getFirstMarker","insertion:","dataDowncast","removeMarker","PendingActions","createPositionAt","skipNestingCheck","_addSuggestionMarker","acceptSuggestion","group","isOwn","conversion","define","toUpperCase","enableReadOnlyMode","_isBlockAttribute","getChanges","_suggestionState","addSuggestionData","oldRange","_addThreadToSuggestion","marker-count","plugins","_processAttributeChanges","hasComments","activeMarkers","trackChanges","pluginName","authoredAt","markerName","open","_processAttributeSuggestions","newRange","refresh","formatGroupId","removed","update:suggestion","ck-suggestion-marker--active","originalSuggestionId","commandName","formatBlock","rootName","TrackChangesEditing","fromRange","updateSuggestion","suggestionChanged","concat","getWalker","attribute:discard","getSuggestion","subType","_registerDefaultCallbacks","trackChangesCommand","_joinWithAdjacentSuggestions","removeAttribute","markAttributeChange","ck-suggestion-marker","return","isIntersectingWithRange","name","containsRange","dataReady","lowest","addMarker:suggestion:formatBlock","getShiftedBy","insertion:accept","discard","isBlock","attribute:accept","attributeOldValue","isCollapsed","meta","widget","createPositionAfter","containsItem","$marker","_enableDefaultAttributesIntegration","data","listenTo","_getSuggestionData","some","attribute:","markMultiRangeInsertion","values","track-changes-adapter-already-set","oldValue","_getExternalAuthor","_commentsRepository","push","tablePasteChainId","groupId","setAttribute","insertion:chain","_breakSuggestionMarker","_findSuggestions","_checkSuggestionCorrectness","consume","addMarker:suggestion","_reduceExistingSuggestions","start","_editor","addSuggestion","clone","isAtStart","_splitMarkerName","catch","_trackFormatChanges","high","_descriptionFactory","formatInline:discard","changeAttribute","isAtEnd","createRange","ck-suggestion-marker-formatInline","isMultiRange","track-changes-enable-command-twice","forceDefaultExecution","includes","fire","track-changes-suggestion-data-mismatch","toJSON","@external","default","getUser","range","formatBlock:chain","multipleBlocks","chain","keys","announce","init","deletion:accept","map","$graveyard","fromCharCode","removeClass","_refreshAttributeSuggestionsChain","nodeAfter","getChangedMarkers","resolve","_blockAttributeKeys","unshift","createSelection","addRange","isInContent","createElement","formatInline:","editing","getAncestors","insert","ready","has","_recordAttributeSuggestionsFromVersion","addMarkerName","discardSuggestion","document","type","createdAt","containsRangeInObject","getItems","attribute:join","howMany","_suggestions","substring","addClass","buildSuggestion","splice","never","_onDiscard","markDeletion","isLimit","discardAllSuggestions","forward","sort","stop","_enabledCommands","trackChanges.mergeNestedSuggestions","accepted","after","acceptAllSuggestions","multi","history","getAttribute","_customCallbacks","_joinSuggestions","editingDowncast","formatBlock:discard","rename","_setSuggestionRange","_reduceSuggestionAttributeRange","deletion:join","toViewElement","_SUGGESTION_ANNOUNCEMENT","attributeNewValue","formatInline:join","get","updateMarker","isIntersecting","_inlineAttributeKeys","getAllAdjacentSuggestions","schema","LEAVE","detach","_rangeIsInLocalUserInsertion","track-changes-suggestion-not-found","position","locale","startsWith","collaboration.channelId","size","_setSuggestionData","dataToMarker","ck-suggestion-marker-formatBlock","every","config","_saved","_mergeNestedSuggestions","pop","head","backward","getNearestSelectionRange","getIntersection","setTo","removeMarkers","split","model","enqueueChange","suggestion:","getDifference","addUser","$text","bindElementToMarker","deletion:chain","setSelection","removeMarker:suggestion:formatBlock","attribute","upcast","length","assign","PENDING_ACTION_SUGGESTION","addHighlight","isLocal","_isForcedDefaultExecutionBlock","registerCustomCallback","oldName","getMultiRangeId","getRanges","_updateSuggestionData","createPositionBefore","highest","isAfter","deleteContent","creator","rethrowUnexpectedError","isInsideObject","then","insertion:join","commands","registerPostFixer","getRange","markers","substr","hasCommentThread","isObject","unbind","remove","getLastMatchingPosition","end","formatInline:chain","attributes","_refreshSuggestionsChain","containsPosition","writer","_isDataLoaded","markMultiRangeDeletion","formatBlock:","createRangeIn","_cutOutSuggestionMarker","notReady","getFirstRange","filter","change:activeMarkers","containerElement","always","data-suggestion","_getAuthorFromId","key","isEqual","_removeSuggestion","options","addComment","insertion","nodeBefore","CommentsRepository","deletion","reconvertMarker","deletion:discard","next","_recordAttributeChanges","isDocumentOperation","join","Users","_initAriaMarkerChangeAnnouncements","unbindElementFromMarkerName","removeComment","applyOperation","comments","newName","accept","discardSelectedSuggestions","getMarkers","$textProxy","showSuggestionHighlights","_registerBlockAttribute","selection","suggestionLoaded","formatBlock:accept","$elementName","element","authorName","previous","commentThread","ENTER","markerReady","_createSuggestion","from","_getMarkerAnnouncementText","root","enableCommand","execute","isNextTo","getSuggestionCallback","version","addAttribute","_suggestionFactory"];var dc,gc;dc=uc,gc=129,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0xef");class hc extends t.Plugin{static get requires(){return[fc("0xd7"),i.Users,t.PendingActions,ao,fo,_o,ko,Lo,Do,Vo,ti,ii,li,hi,Ti,Ri,Mi,Pi,Hi,Xi,Qi,os,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,Sx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0x14f")](){return fc("0x15e")}constructor(t){function e(t){return t[fc("0x36")]((t=>String[fc("0x38")](t)))[fc("0xde")]("")}super(t),this[fc("0x4a")]=null,this[fc("0x114")](fc("0x14d"),[]),this.on(fc("0xcb"),((e,n,r,o)=>{this[fc("0x117")][fc("0x129")]((()=>{for(const e of[...o,...r])this[fc("0x117")].markers[fc("0x49")](e)&&t[fc("0x45")][fc("0xd9")](e)}))})),this[fc("0x1e")]=new ro(this[fc("0x133")][fc("0x93")].schema,this[fc("0x133")][fc("0x80")]),this._adapter=null,this[fc("0x100")]=new pc(this.editor),this[fc("0x54")]=new Map,this._commentsRepository=t.plugins.get(fc("0xd7")),this[fc("0x61")]=new Set,this._model=this.editor[fc("0x93")],this[fc("0x145")]=new WeakMap,this[fc("0xa4")]=!1,this._blockAttributeKeys=new Set([fc("0xef")]),this[fc("0x78")]=new Set,t[fc("0x88")][fc("0x140")]("trackChanges.trackFormatChanges",fc("0x2c")),this[fc("0x1c")]=t[fc("0x88")][fc("0x75")]("trackChanges.trackFormatChanges"),t[fc("0x88")].define(fc("0x62"),!0),this[fc("0x8a")]=t[fc("0x88")].get(fc("0x62")),this[fc("0x168")]=new d(t,this[fc("0x61")]),this[fc("0xe0")](),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,53,48])}[fc("0x34")](){const t=this[fc("0x133")],n=(t,e)=>{if("attribute"!=t)return"ck-suggestion-marker-"+t;const n=e[fc("0x92")]("|")[0];return this._isBlockAttribute(n)?"ck-suggestion-marker-formatBlock":fc("0x23")};t[fc("0x13f")].for(fc("0x6b"))[fc("0x115")]({model:fc("0x120"),view:t=>{const{id:e,type:r,subType:o}=this[fc("0x1a")](t[fc("0x151")]),i=[fc("0x16c"),n(r,o)];let s=3e3;return this.activeMarkers[fc("0x27")](t[fc("0x151")])&&(i[fc("0xa")](fc("0x159")),s=3010),fc("0xd8")==r&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x13f")].for(fc("0x136"))[fc("0x11b")]((e=>{e.on(fc("0x13"),((e,n,r)=>{if(!r[fc("0xd3")][fc("0xea")])return;const o=n[fc("0x116")];if(!o)return;const i=r[fc("0x101")][fc("0x71")](o);t[fc("0x93")].schema[fc("0xb9")](o)&&i&&!i[fc("0x128")](fc("0x17c"))&&i.is(fc("0xcc"))&&(0,x.toWidget)(i,r.writer)}),{priority:fc("0x1d")})})),t[fc("0x13f")].for(fc("0x136"))[fc("0x115")]({model:"suggestion",view:(t,e)=>{if(!e.options[fc("0xea")])return null;const{type:r,subType:o}=this[fc("0x1a")](t[fc("0x151")]);return{classes:[fc("0x16c"),n(r,o)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,o,i)=>{if(!o[fc("0x116")])return;const{id:s}=this[fc("0x1a")](o.markerName);if(n){const t=this._suggestions[fc("0x75")](s),e=this[fc("0x12b")](t);if(!this._isBlockAttribute(e))return}if(o[fc("0x116")].is("selection"))return void i.consumable[fc("0x12")](o[fc("0x116")],r[fc("0x16f")]);const x=i[fc("0x101")][fc("0x71")](o[fc("0x116")]);if(o[fc("0x116")].is(fc("0xf0"))&&t[fc("0x93")][fc("0x7a")][fc("0x177")](o.item)&&!x[fc("0x128")](fc("0xa2"))){i[fc("0xc2")][fc("0x56")]([fc("0x16c"),fc("0x86")],x),i[fc("0xc2")].setAttribute(fc("0xce"),s,x),i[fc("0x101")][fc("0x99")](x,o[fc("0x151")]),e&&(this[fc("0x14d")][fc("0x27")](o.markerName)?i[fc("0xc2")].addClass(fc("0x159"),x):i[fc("0xc2")][fc("0x39")](fc("0x159"),x));for(const e of t[fc("0x93")][fc("0xc6")](o[fc("0x116")])[fc("0x51")]())i.consumable[fc("0x12")](e,r[fc("0x16f")]);i.consumable[fc("0x12")](o.item,r[fc("0x16f")])}};t[fc("0x13f")][fc("0x11a")](fc("0x136"))[fc("0x11b")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,n)=>{n[fc("0xd3")][fc("0xea")]&&r({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0xab")})})),t[fc("0x13f")][fc("0x11a")](fc("0x136"))[fc("0x11b")]((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n.options[fc("0xea")]&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t[fc("0x13f")][fc("0x11a")](fc("0x136")).markerToData({model:fc("0x120"),view:(t,e)=>e[fc("0xd3")][fc("0xea")]?null:{group:fc("0x120"),name:t[fc("0xb7")](11)}}),t[fc("0x13f")].for(fc("0x9e")).elementToElement({view:{name:fc("0x120"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x95")+t.getAttribute("suggestion-type")+":"+t[fc("0x68")]("id");return t[fc("0x68")]("marker-count")&&(n+=":"+t.getAttribute(fc("0x149"))),e[fc("0x43")](fc("0x17f"),{"data-name":n})}}),t[fc("0x13f")].for(fc("0x9e"))[fc("0x85")]({view:fc("0x120")}),t[fc("0x13f")].for(fc("0x6b"))[fc("0x11b")]((t=>{t.on(fc("0x173"),r(),{priority:fc("0x1d")})})),t[fc("0x13f")][fc("0x11a")]("editingDowncast")[fc("0x11b")]((t=>{t.on("addMarker:suggestion:attribute",r({isAttributeSuggestion:!0}),{priority:fc("0x1d")})})),t[fc("0x13f")][fc("0x11a")](fc("0x6b"))[fc("0x11b")]((t=>{t.on(fc("0x9c"),((t,e,n)=>{const r=n[fc("0x101")].markerNameToElements(e[fc("0x151")]);if(r)for(const t of r)t.getCustomProperty(fc("0xa2"))||(n[fc("0xc2")][fc("0x39")]([fc("0x16c"),fc("0x86"),fc("0x159")],t),n[fc("0xc2")][fc("0x16a")](fc("0xce"),t),n[fc("0x101")].unbindElementFromMarkerName(t,e[fc("0x151")]))}),{priority:fc("0x1d")})})),t[fc("0x13f")][fc("0x11a")]("editingDowncast")[fc("0x11b")]((t=>{t.on(fc("0x102"),((t,e,n)=>{const r=n[fc("0x101")].markerNameToElements(e[fc("0x151")]);if(!r)return;const{id:o}=this[fc("0x1a")](e[fc("0x151")]),i=this[fc("0x54")][fc("0x75")](o),s=this._getAttributeKeyFromSubType(i);if(this[fc("0x143")](s))for(const t of r)t.getCustomProperty("addHighlight")||(n.writer[fc("0x39")](["ck-suggestion-marker",fc("0x86"),fc("0x159")],t),n[fc("0xc2")][fc("0x16a")](fc("0xce"),t),n.mapper[fc("0xe1")](t,e.markerName))}),{priority:fc("0x1d")})})),t.model.document[fc("0xb4")]((e=>{let n=!1;const r=Array[fc("0xf7")](t[fc("0x93")][fc("0x4d")].differ[fc("0x3c")]()),o=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this._splitMarkerName(x);if(fc("0x120")!==r)continue;const d=this[fc("0x54")][fc("0x75")](u);if(null!=a[fc("0x154")]){"formatInline"==c&&(n=n||_c(a.newRange,x,e,t[fc("0x93")].schema));const r=fc("0x9d")==c&&this[fc("0x143")](l[fc("0x92")]("|")[0]);if(a[fc("0x154")].isCollapsed||fc("0x37")==a.newRange[fc("0xf9")].rootName||fc("0x15c")==c&&!yc(a.newRange)||r&&!yc(a.newRange)||fc("0xd8")==c&&(Ec(s=a[fc("0x154")])||(i=s).start[fc("0x113")]==i[fc("0xbd")].nodeBefore&&i[fc("0x15")][fc("0x21")]))e[fc("0x137")](x),n=!0;else{if(!d||!d[fc("0x42")])continue;o[fc("0x11b")](d)}}}var i,s;return o[fc("0x83")]>0&&(n=!!this[fc("0x169")](o)||n),n})),t[fc("0x93")][fc("0x4d")].registerPostFixer((e=>{let n=!1;for(const r of t[fc("0x93")][fc("0x4d")][fc("0x124")][fc("0x144")]())if("insert"==r[fc("0x4e")])for(const r of this[fc("0x54")][fc("0x5")]()){if(r.isMultiRange||!r[fc("0x42")])continue;const o=fc("0x15c")==r[fc("0x4e")],i=this[fc("0x12b")](r),s=i&&this[fc("0x143")](i);if(!o&&!s)continue;const x=r[fc("0xc9")]();if(x.start[fc("0x113")]!=x[fc("0xbd")][fc("0x113")]&&!x[fc("0xbd")][fc("0x21")]){const o=t.model[fc("0x139")](x[fc("0x15")][fc("0x3b")],fc("0xbd")),i=t[fc("0x93")][fc("0x22")](x[fc("0x15")],o);e[fc("0x76")](r[fc("0x134")](),{range:i}),n=!0}}return n})),t[fc("0x93")].document[fc("0xb4")]((t=>this._processAttributeChanges(t))),t[fc("0x93")].document[fc("0xb4")]((t=>!t[fc("0x11f")][fc("0xa3")]&&this._processAttributeSuggestions(t))),t[fc("0x93")][fc("0xb6")].on(fc("0x158"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0x1a")](e[fc("0x16f")]),n=this._suggestions[fc("0x75")](t);n&&n.addMarkerName(e[fc("0x16f")])}})),t[fc("0x93")][fc("0x4d")].on("change:data",(()=>{const e=Array[fc("0xf7")](t.model[fc("0x4d")][fc("0x124")].getChangedMarkers()).filter((t=>"suggestion"===this[fc("0x1a")](t[fc("0x16f")])[fc("0x13d")]));if(0===e[fc("0x9f")])return;e[fc("0x5f")](((t,e)=>{const n=t[fc("0x181")].oldRange,r=e[fc("0x181")][fc("0x147")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n[fc("0x15")][fc("0x10f")](r[fc("0x15")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:o}of e){const{id:e}=this[fc("0x1a")](t);if(null===o[fc("0x147")]){const e=this[fc("0x10a")](t);r[fc("0x11b")](e)}else{const t=this[fc("0x54")][fc("0x75")](e);null!==o[fc("0x154")]||t[fc("0x42")]?(n.add(t[fc("0x8c")]),r.add(t)):this[fc("0xd2")](t)}}r.size>0&&this._refreshSuggestionsChain(r);for(const t of n)this[fc("0x28")](fc("0x161"),t)})),t.model.on(fc("0xe3"),((e,n)=>{const r=n[0];if(!this[fc("0x54")][fc("0x83")])return;if(!r[fc("0xdd")])return;if(r[fc("0x11f")][fc("0x106")]||!r[fc("0x11f")][fc("0xa3")])return;let o,i;switch(r[fc("0x4e")]){case fc("0x47"):o=t[fc("0x93")][fc("0x139")](r.position),i=o[fc("0x174")](r[fc("0x53")]);break;case fc("0x92"):o=t[fc("0x93")][fc("0x139")](r.splitPosition),i=t.model.createPositionAt(r[fc("0x12a")]);break;case"move":o=t[fc("0x93")][fc("0x139")](r.targetPosition),i=o[fc("0x174")](r.howMany);break;default:return}const s=t[fc("0x93")][fc("0x22")](o,i);t[fc("0x93")][fc("0x129")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0x10")](s)){if(t.isMultiRange)continue;if(fc("0x103")==t[fc("0x4e")])continue;const n=this[fc("0x12b")](t);if(n&&this[fc("0x143")](n)&&fc("0x92")!=r[fc("0x4e")])continue;const x=t[fc("0x181")]&&t[fc("0x181")][fc("0x30")];(fc("0x15c")!=t[fc("0x4e")]||fc("0x92")==r[fc("0x4e")]&&!x)&&(e[fc("0x50")]||"insertion"==t[fc("0x4e")]&&e.isOwn||t[fc("0xc9")]()[fc("0x170")](s)&&this[fc("0xf")](t,o,i))}}))}),{priority:fc("0x172")}),t[fc("0x93")].on("deleteContent",((e,n)=>{const r=n[0],o=n[1];if(o&&o[fc("0x26")])return;if(this[fc("0xa4")])return;if(!this.trackChangesCommand.value)return;if(r[fc("0x17a")])return;const i=t[fc("0x93")].schema,{start:s,end:x}=r[fc("0xc9")](),a=s[fc("0x3b")]&&i.isLimit(s[fc("0x3b")])?null:i[fc("0x8e")](s,fc("0x5e")),c=x[fc("0xd6")]&&i.isLimit(x.nodeBefore)?null:i[fc("0x8e")](x,fc("0x8d")),l=t.model[fc("0x22")](a?a[fc("0x15")]:s,c?c[fc("0xbd")]:x);t[fc("0x93")][fc("0x129")]((e=>{this[fc("0x5b")](l);const n=t[fc("0x93")][fc("0x7a")].getNearestSelectionRange(l[fc("0x15")]);r.is("documentSelection")?e.setSelection(n):r[fc("0x90")](n)})),e[fc("0x60")]()}),{priority:e.priorities.normal+10}),t[fc("0x93")].on(fc("0x108"),((e,n)=>{const r=n[n.length-1];r&&r[fc("0x26")]||this[fc("0xa4")]||this.trackChangesCommand.value&&(t[fc("0x93")][fc("0x129")]((()=>{let r=t[fc("0x93")][fc("0x108")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[fc("0x16d")]=r[fc("0x18")]();const o=r[fc("0xbd")][fc("0xd6")],i=t[fc("0x93")][fc("0x7a")];o&&i[fc("0x177")](o)&&!i[fc("0xb9")](o)&&(r=t[fc("0x93")][fc("0x22")](r[fc("0x15")],t[fc("0x93")][fc("0x139")](o,"end"))),this[fc("0x12c")](r)})),e[fc("0x60")]())}),{priority:fc("0x1d")}),this[fc("0x133")][fc("0xb3")].add(fc("0x14e"),this[fc("0x168")]),this.enableCommand("trackChanges");const o=new p(t,this[fc("0x54")]);t[fc("0xb3")][fc("0x11b")](fc("0x13c"),o),this[fc("0xfa")](fc("0x13c"));const i=new y(t,this[fc("0x54")]);t.commands.add(fc("0x4c"),i),this[fc("0xfa")](fc("0x4c")),t[fc("0xb3")].add("acceptAllSuggestions",new F(t,o,this[fc("0x54")])),this[fc("0xfa")](fc("0x65")),t[fc("0xb3")][fc("0x11b")](fc("0x5d"),new F(t,i,this[fc("0x54")])),this[fc("0xfa")]("discardAllSuggestions"),t[fc("0xb3")][fc("0x11b")]("acceptSelectedSuggestions",new j(t,o,this._suggestions)),this[fc("0xfa")](fc("0x12e")),t[fc("0xb3")].add(fc("0xe7"),new j(t,i,this._suggestions)),this[fc("0xfa")](fc("0xe7"));const s=t[fc("0x14a")].get("CommentsRepository");this[fc("0x0")](s,fc("0xd4"),((t,{threadId:e})=>{const n=this._suggestions[fc("0x75")](e);n&&n[fc("0xf3")]&&1===n[fc("0xf3")].length&&this[fc("0xa9")](e,{hasComments:!0})}),{priority:"low"}),this.listenTo(s,fc("0xe2"),((t,{threadId:e})=>{const n=this[fc("0x54")][fc("0x75")](e);n&&n[fc("0xf3")]&&!n.commentThread[fc("0x9f")]&&this[fc("0xa9")](e,{hasComments:!1})}),{priority:fc("0x10e")})}set[fc("0x11c")](t){if(this._adapter)throw new e.CKEditorError(fc("0x6"),this);this[fc("0x11e")]=t}get[fc("0x11c")](){return this[fc("0x11e")]}[fc("0x10c")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0x54")][fc("0x5")]())t&&!e[fc("0x42")]||n.push(e);return e?n[fc("0x36")]((t=>t[fc("0x2a")]())):n}[fc("0x165")](t){const n=this[fc("0x54")][fc("0x75")](t);if(!n)throw new e.CKEditorError(fc("0x7e"),this);return n}[fc("0x12f")](t){return this[fc("0x54")][fc("0x49")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:r}=t,[o,i]=t[fc("0x4e")][fc("0x92")](":"),s=this[fc("0x54")][fc("0x75")](n)||this[fc("0xf6")](o,i,n,e,r);if(this[fc("0x148")](s),this[fc("0x11")](s,o,i||null,e),s.createdAt=t[fc("0x4f")],s._isDataLoaded=!0,r&&r[fc("0x2b")]){const t=r["@external"],e=this[fc("0x8")](t[fc("0xf1")]);s[fc("0x150")]=t[fc("0x4f")],s[fc("0x109")]=e,s.isExternal=!0}else s[fc("0x150")]=t[fc("0x4f")];switch(t.data&&(s[fc("0x181")]=t[fc("0x181")]),t[fc("0xbf")]&&(s[fc("0xbf")]=t.attributes),this[fc("0x11e")]&&this[fc("0x11e")].addSuggestion||(s[fc("0x89")]=!0),this[fc("0x145")].get(s)){case"notReady":this[fc("0x145")][fc("0x114")](s,fc("0x171"));break;case fc("0xf5"):s.isInContent?(this[fc("0xc0")](new Set([s])),this[fc("0x169")](new Set([s])),this[fc("0x145")][fc("0x114")](s,fc("0x48")),this.fire(fc("0xed"),s)):this._suggestionState.set(s,fc("0x157"))}return s}[fc("0x13c")](t){this[fc("0x26")]((()=>{this[fc("0x133")][fc("0x93")][fc("0x129")]((()=>{for(const e of t[fc("0x79")]())e[fc("0xe6")]()}))}))}[fc("0x4c")](t){this[fc("0x26")]((()=>{this.editor.model[fc("0x129")]((()=>{for(const e of t[fc("0x79")]())e[fc("0x176")]()}))}))}[fc("0xfa")](t,n){const r=this.editor[fc("0xb3")][fc("0x75")](t);if(!r)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this[fc("0x61")][fc("0x49")](r))throw new e.CKEditorError(fc("0x25"),this,{commandName:t});this[fc("0x61")][fc("0x11b")](r),n&&r.on(fc("0xfb"),((t,e)=>{this[fc("0x168")][fc("0x110")]&&(this[fc("0xa4")]||(e.length>0&&e[e[fc("0x9f")]-1]&&e[e.length-1][fc("0x26")]?e[fc("0x8b")]():(t[fc("0x16d")]=n(((...t)=>r.execute(...t,{forceDefaultExecution:!0})),...e),t.stop())))}),{priority:fc("0x1d")})}[fc("0x26")](t){let n,r;const o=this[fc("0xa4")];this[fc("0xa4")]=!0;try{n=t()}catch(t){r=t}return o||(this[fc("0xa4")]=!1),r&&e.CKEditorError[fc("0xaf")](r,this),n}markInsertion(t,n=null,r={}){if(t[fc("0x17a")])return null;const o=this[fc("0x133")][fc("0x14a")].get("Users").me;for(const{suggestion:e,meta:o}of this[fc("0x10")](t,fc("0xd5")))if(o[fc("0x13e")]){if(!o[fc("0xfc")]){if(o[fc("0x50")]){if(!this._mergeNestedSuggestions||!Ic(e,r))continue;return e}if(Ic(e,r))return e;this[fc("0xf")](e,t[fc("0x15")],t[fc("0xbd")]);break}if(n==e.subType&&Ic(e,r)){const n=e[fc("0xc9")]();return n[fc("0x15")].isEqual(t[fc("0xbd")])?this[fc("0x6e")](e,this[fc("0x117")][fc("0x22")](t.start,n[fc("0xbd")])):this[fc("0x6e")](e,this[fc("0x117")][fc("0x22")](n[fc("0x15")],t[fc("0xbd")])),e}}const i=(0,e.uid)(),s=o.id,x=n?fc("0x135")+n:fc("0xd5"),a=this[fc("0x84")]({id:i,type:x,createdAt:new Date,authorId:s,attributes:r});return this[fc("0x13b")](x,i,s,t),a}[fc("0x4")](t,n=fc("0x66"),r={}){const o=this[fc("0x133")][fc("0x14a")].get("Users").me,i=this[fc("0x100")][fc("0xfd")](fc("0xd5"),n,fc("0xde"));for(const e of this[fc("0x10c")]())if(e.author.id==o.id&&fc("0xd5")==e[fc("0x4e")]&&e[fc("0x166")]==n&&Ic(e,r)&&(i(e[fc("0xa8")](),t)||i(t,e[fc("0xa8")]()))){for(const n of t)e[fc("0x41")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x10")](t,"insertion")){if(!n.isOwn)continue;if(!this[fc("0x8a")]&&n[fc("0x50")])continue;if(!Ic(e,r))continue;let o=!0;for(const n of e[fc("0xa8")]())for(const e of t)if(!n[fc("0x170")](e)){o=!1;break}if(o)return e}const s=(0,e.uid)(),x=o.id,a=fc("0x135")+n,c=this[fc("0x84")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[fc("0x13b")](a,s,x,e,Yr.getMultiRangeId());return c}markInlineFormat(t,n,r=null,o={}){if(r=r||Tc(n),t.isCollapsed)return null;if("never"===this[fc("0x1c")]){const e=this._suggestionFactory[fc("0xfd")](fc("0x103"),r,"accept");return this.forceDefaultExecution((()=>e([t],n,o))),null}const i=this.editor[fc("0x14a")][fc("0x75")](fc("0xdf")).me,s=[];if(fc("0xcd")!==this[fc("0x1c")])for(const{suggestion:e,meta:n}of this[fc("0x10")](t,"insertion"))n[fc("0x13e")]&&!n[fc("0xb0")]&&s[fc("0xa")](...e[fc("0xa8")]());const x=function(t,e){const n=[];for(const r of e){const e=t[fc("0x8f")](r);e&&n[fc("0xa")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x9f")];){const r=n[e].getDifference(t);n[fc("0x58")](e,1,...r),e+=r[fc("0x9f")]}}return n}(t,s);x[fc("0x9f")]&&this[fc("0x117")][fc("0x129")]((()=>{for(const t of x){const e=this._suggestionFactory[fc("0xfd")](fc("0x103"),r,"accept");this[fc("0x26")]((()=>e([t],n,o)))}}));for(const t of a){let s=null,x=t.start,a=t.end;for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x103"))){if(!n[fc("0x13e")])continue;if(e.subType!=r)continue;if(!Ic(e,o))continue;const i=e[fc("0xc9")]();if(i[fc("0x170")](t,!0))return null;x=x[fc("0x10f")](i[fc("0x15")])?x:i[fc("0x15")],a=a[fc("0xac")](i[fc("0xbd")])?a:i[fc("0xbd")],s?i.start[fc("0x10f")](s[fc("0xc9")]().start)?(s.removeMarkers(),s=e):e[fc("0x91")]():s=e}const c=this[fc("0x117")][fc("0x22")](x,a);if(s)this[fc("0x6e")](s,c);else{const t=(0,e.uid)(),s=i.id;this[fc("0x84")]({id:t,type:fc("0x44")+r,data:n,createdAt:new Date,authorId:s,attributes:o}),this[fc("0x13b")](fc("0x44")+r,t,s,c)}}return null}[fc("0x130")](t,n,r=[],o=null,i={}){n[fc("0x156")]||(n.formatGroupId=n.commandName),n[fc("0x30")]=t.is("range"),o=o||Tc(n);const s=r[fc("0x36")]((t=>Cc(t,this[fc("0x117")]))),x=t.is("range")?t:Cc(t,this._model);if("never"===this._trackFormatChanges){const t=this[fc("0x100")][fc("0xfd")](fc("0x15c"),o,fc("0xe6"));return this[fc("0x26")]((()=>t([x],n,i))),null}s.push(x);let a=!0;for(const t of s)if(!this[fc("0x7d")](t)){a=!1;break}if(a&&fc("0xcd")!==this._trackFormatChanges){const t=this._suggestionFactory[fc("0xfd")](fc("0x15c"),o,fc("0xe6"));return this[fc("0x26")]((()=>t([x],n,i))),null}let c=null,l=x[fc("0x15")],u=x.end;for(const{suggestion:t,meta:e}of this[fc("0x10")](x,fc("0x15c"))){if(!e[fc("0x13e")])continue;if(e[fc("0xfc")]||e.containsRangeInObject||e[fc("0xb0")])continue;if(t[fc("0x181")][fc("0x156")]!=n[fc("0x156")])continue;if(!Ic(t,i))continue;const r=t[fc("0xc9")]();if(t[fc("0x166")]==o){if(r.containsRange(x,!0))return null;l=l.isBefore(r[fc("0x15")])?l:r.start,u=u[fc("0xac")](r[fc("0xbd")])?u:r[fc("0xbd")],c?r[fc("0x15")][fc("0x10f")](c.getFirstRange()[fc("0x15")])?(c.removeMarkers(),c=t):t[fc("0x91")]():c=t}else{const e=x[fc("0x8f")](r);this[fc("0xc7")](t,e)}}const d=this.editor.plugins[fc("0x75")](fc("0xdf")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x6e")](c,this[fc("0x117")].createRange(l,u)),c;{const t=this[fc("0x84")]({id:g,type:fc("0xc5")+o,data:n,createdAt:new Date,authorId:f,attributes:i});return this[fc("0x13b")](fc("0xc5")+o,g,f,this[fc("0x117")][fc("0x22")](l,u)),t}}markMultiRangeBlockFormat(t,n,r=[],o=null,i={}){n[fc("0x156")]||(n[fc("0x156")]=n[fc("0x15b")]);const s=t[0];n[fc("0x30")]=s.is("range"),o=o||Tc(n);const x=r[fc("0x36")]((t=>Cc(t,this._model))),a=s.is("range")?t:t[fc("0x36")]((t=>Cc(t,this[fc("0x117")])));if(fc("0x59")===this[fc("0x1c")]){const t=this[fc("0x100")][fc("0xfd")](fc("0x15c"),o,fc("0xe6"));return this[fc("0x26")]((()=>t(a,n,i))),null}x[fc("0xa")](...a);let c=!0;for(const t of x)if(!this[fc("0x7d")](t)){c=!1;break}if(c&&fc("0xcd")!==this[fc("0x1c")]){const t=this[fc("0x100")][fc("0xfd")]("formatBlock",o,fc("0xe6"));return this[fc("0x26")]((()=>t(a,n,i))),null}const l=this[fc("0x133")].plugins.get(fc("0xdf")).me;for(const t of this.getSuggestions()){if(t[fc("0x109")].id!=l.id)continue;if("formatBlock"!=t[fc("0x4e")]||t[fc("0x181")][fc("0x156")]!=n[fc("0x156")])continue;if(!Ic(t,i))continue;const e=t[fc("0x166")]==o;for(let n=0;n<a.length;n++){const r=a[n];for(const o of t[fc("0xe8")]()){const i=o[fc("0xb5")]();if(r[fc("0xd1")](i)){e?(a[fc("0x58")](n,1),n--):t.removeMarker(o.name);break}}}}if(0==a[fc("0x9f")])return null;const u=this[fc("0x100")][fc("0xfd")]("formatBlock",o,fc("0xde"));for(const t of this[fc("0x10c")]())if(t[fc("0x109")].id==l.id&&fc("0x15c")==t[fc("0x4e")]&&t[fc("0x181")][fc("0x156")]==n[fc("0x156")]&&t.subType==o&&Ic(t,i)&&(u(t[fc("0xa8")](),a)||u(a,t[fc("0xa8")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0xc5")+o,m=this[fc("0x84")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[fc("0x13b")](f,d,g,t,Yr[fc("0xa7")]());return m}markDeletion(t,n=null,r={}){if(t.isCollapsed)return null;const o=this.editor[fc("0x14a")][fc("0x75")](fc("0xdf")).me,i=new s.LiveRange(t[fc("0x15")],t[fc("0xbd")]);for(const{suggestion:t,meta:e}of this[fc("0x10")](i,fc("0xd5")))if(e[fc("0x13e")]&&!e[fc("0xfc")])if(t[fc("0x24")]){const e=t.getRanges()[fc("0xca")]((t=>"$graveyard"!=t[fc("0xf9")][fc("0x15d")]));if(e[fc("0x87")]((t=>i[fc("0x170")](t,!0)))&&t[fc("0x176")](),e[fc("0x2")]((t=>t.containsRange(i,!0)))){const t=this._suggestionFactory[fc("0xfd")](fc("0xd8"),n,fc("0xe6"));return this[fc("0x26")]((()=>t([i],null,r))),null}}else{const e=i.getIntersection(t.getFirstRange());null!==e&&t[fc("0x5a")]([e],null,r)}if(i[fc("0x7c")](),i[fc("0x17a")]||fc("0x37")==i[fc("0xf9")][fc("0x15d")])return null;let x=null,a=i.start,c=i[fc("0xbd")];const l=this._findSuggestions(i,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[fc("0x117")][fc("0x22")](a,c);if(e[fc("0x13e")]&&(this._mergeNestedSuggestions||!e[fc("0x50")]&&!e[fc("0xb0")]))if(t[fc("0x24")]){if(!Ic(t,r))continue;let e=!0;for(const r of t[fc("0xa8")]()){if(r.containsRange(n,!0))return t;n[fc("0x170")](r)||(e=!1)}e&&t[fc("0x176")]()}else{const e=t[fc("0xc9")]();if(e[fc("0x170")](n,!0))return t;if(!Ic(t,r)){n[fc("0x170")](e)?t.removeMarkers():e[fc("0xc1")](a)?a=e[fc("0xbd")]:e[fc("0xc1")](c)&&(c=e[fc("0x15")]);continue}a=a[fc("0x10f")](e.start)?a:e[fc("0x15")],c=c[fc("0xac")](e[fc("0xbd")])?c:e[fc("0xbd")],r=Object[fc("0xa0")]({},t.attributes),x?e[fc("0x15")].isBefore(x[fc("0xc9")]().start)?(x.removeMarkers(),x=t):t[fc("0x91")]():x=t}}if(x)return this[fc("0x6e")](x,this[fc("0x117")][fc("0x22")](a,c)),x;{const t=(0,e.uid)(),i=this._model[fc("0x22")](a,c),s=o.id,x=n?"deletion:"+n:fc("0xd8"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[fc("0x13b")](x,t,s,i),l}}[fc("0xc4")](t,n=fc("0x66"),r={}){const o=this.editor[fc("0x14a")][fc("0x75")](fc("0xdf")).me,i=t[fc("0x36")]((t=>new s.LiveRange(t.start,t[fc("0xbd")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x10")](i,fc("0xd5")))e.isOwn&&!e[fc("0xfc")]&&x[fc("0x11b")](t);for(const e of x)if(e[fc("0x24")]){const o=e.getRanges();if((!e[fc("0xbf")]||!e[fc("0xbf")][fc("0x13a")])&&o[fc("0x87")]((t=>i[fc("0x2")]((e=>e[fc("0x170")](t,!0)))))&&e[fc("0x176")](),i[fc("0x87")]((t=>o.some((e=>e.containsRange(t,!0)))))){const e=this[fc("0x100")][fc("0xfd")](fc("0xd8"),n,fc("0xe6"));return this[fc("0x26")]((()=>e(t,null,r))),null}}else{const t=e[fc("0xc9")]();if(i.some((e=>e[fc("0x170")](t,!0)))&&e[fc("0x176")](),i[fc("0x87")]((e=>t[fc("0x170")](e,!0)))){const t=this[fc("0x100")].getSuggestionCallback(fc("0xd8"),n,fc("0xe6"));return this[fc("0x26")]((()=>t(i,null,r))),null}}const a=this[fc("0x100")].getSuggestionCallback("deletion",n,"join");let c=null;for(const t of this.getSuggestions())if(t[fc("0x109")].id==o.id&&t[fc("0x42")]&&fc("0xd8")==t.type&&t[fc("0x166")]==n&&Ic(t,r)&&(a(t.getRanges(),i)||a(i,t.getRanges())))if(c){if(t.commentThread&&t[fc("0xf3")].length)continue;for(const e of t[fc("0xa8")]())c[fc("0x16e")](e)||c[fc("0x41")](e);t[fc("0x91")]()}else{c=t;for(const e of i)t[fc("0x16e")](e)||t[fc("0x41")](e)}if(c)return c;x[fc("0x123")]();for(const{suggestion:t,meta:e}of this[fc("0x10")](i,fc("0xd8")))e[fc("0x13e")]&&(this[fc("0x8a")]||!e[fc("0x50")]&&!e.isInsideObject)&&Ic(t,r)&&x.add(t);for(const t of x){const e=t.getRanges();if((!r||!r.skipNestingCheck)&&i[fc("0x87")]((t=>e[fc("0x2")]((e=>e[fc("0x170")](t,!0))))))return t;(!t.attributes||!t.attributes[fc("0x13a")])&&e[fc("0x87")]((t=>i.some((e=>e[fc("0x170")](t,!0)))))&&t[fc("0x176")]()}const l=(0,e.uid)(),u=o.id,d=fc("0x10d")+n,g=this[fc("0x84")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of i)t.detach(),t[fc("0x17a")]||"$graveyard"==t[fc("0xf9")][fc("0x15d")]||this[fc("0x13b")](d,l,u,t,Yr[fc("0xa7")]());return g}[fc("0x16b")](t,n,r,o,i){if(t[fc("0x17a")])return[];if(fc("0x59")===this[fc("0x1c")])return[];const s=this[fc("0x133")][fc("0x14a")][fc("0x75")](fc("0xdf")).me.id,x=Array[fc("0xf7")](this[fc("0x54")].values())[fc("0xca")]((e=>fc("0x9d")==e[fc("0x4e")]&&e[fc("0x181")].key==n&&e[fc("0x16e")](t)));if(fc("0x2c")===this._trackFormatChanges){const e=this[fc("0x10")](t,fc("0xd5")).filter((({meta:t})=>t[fc("0x13e")]&&!t[fc("0xb0")]&&!t.isNextTo))[fc("0x36")]((({suggestion:t})=>t));x[fc("0x3f")](...e)}const a=new Map([[t,r]]);for(const t of x){const e=fc("0x9d")==t[fc("0x4e")]?t.data[fc("0x7")]:void 0,n=t[fc("0xc9")](),i=Array[fc("0xf7")](a[fc("0x32")]()).find((t=>t[fc("0x77")](n)));i&&(a[fc("0x122")](i),i[fc("0x96")](n).forEach((t=>{a[fc("0x114")](t,r)})),fc("0xd5")!=t[fc("0x4e")]&&e!=o&&a[fc("0x114")](i[fc("0x8f")](n),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:o};n[fc("0x9f")]>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("0x3")+(n+"|")+Tc({newValue:o}))[fc("0x55")](0,60),u=this[fc("0x84")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[fc("0xa")](u),this[fc("0x13b")](l,x,s,t)}return c}[fc("0xeb")](t){this._blockAttributeKeys[fc("0x11b")](t)}[fc("0x118")](t){this[fc("0x78")].add(t)}[fc("0x180")](t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this[fc("0xdc")]((()=>{t(...e)}))}));for(const t of e)this[fc("0x118")](t);for(const t of n)this[fc("0xeb")](t)}[fc("0x6e")](t,e){const n=t.getFirstMarker();this[fc("0x117")][fc("0x129")]((t=>{t[fc("0x76")](n,{range:e})}))}[fc("0x148")](t){const e=t.id,n=this[fc("0x133")][fc("0x88")].get("collaboration.channelId");this[fc("0x9")][fc("0xb8")](e)||this[fc("0x9")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this[fc("0x9")][fc("0x105")](e);r[fc("0xba")](fc("0x111")),r.isRemovable=!1,t.commentThread=r}_checkSuggestionCorrectness(t,n,r,o){if(t[fc("0x4e")]!=n||t.subType!=r||t[fc("0xae")].id!=o)throw this[fc("0x133")][fc("0x142")](fc("0x29")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[fc("0xc7")](t,n){const r=t[fc("0xc9")]();if(n[fc("0xd1")](r))t[fc("0x91")]();else if(r.containsRange(n)){const o=this[fc("0x117")].createPositionAt(n[fc("0x15")][fc("0xd6")],"end");this[fc("0x6e")](t,this._model.createRange(r[fc("0x15")],o));const i=(0,e.uid)(),s=t.creator.id,x=t[fc("0x4e")]+":"+t[fc("0x166")];this[fc("0x84")]({id:i,type:x,createdAt:new Date,authorId:s,data:t[fc("0x181")],attributes:t[fc("0xbf")]});const a=this._model[fc("0x139")](n.end[fc("0x113")],fc("0x64")),c=this._model.createRange(a,r.end);this[fc("0x13b")](x,i,s,c)}else if(r.containsPosition(n.start)){const e=this[fc("0x117")][fc("0x139")](n[fc("0x15")].nodeBefore,fc("0xbd"));this._setSuggestionRange(t,this[fc("0x117")][fc("0x22")](r[fc("0x15")],e))}else{const e=this[fc("0x117")].createPositionAt(n.end[fc("0x113")],fc("0x64"));this[fc("0x6e")](t,this._model.createRange(e,r[fc("0xbd")]))}}[fc("0x7d")](t){for(const{suggestion:e,meta:n}of this[fc("0x10")](t,fc("0xd5"))){if(!n[fc("0x13e")])continue;const r=e[fc("0xa8")]();for(const e of r)if(!t[fc("0x96")](e)[fc("0x9f")])return!0}return!1}[fc("0xcf")](t){const n=this[fc("0x133")].plugins[fc("0x75")]("Users")[fc("0x2d")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[fc("0x8")](t){const e=this.editor[fc("0x14a")][fc("0x75")]("Users"),n=(0,i.hashObject)("external:"+t);return e.getUser(n)||e[fc("0x97")]({id:n,name:t})}[fc("0xf6")](t,e,n,r,o){const i=this[fc("0xcf")](r),s=this[fc("0x100")][fc("0x57")](t,e,n,i,o,(t=>this[fc("0xa9")](n,{attributes:t})));return this[fc("0x0")](s,"accept",(()=>{this._updateSuggestionData(n,{state:fc("0x63")})}),{priority:"high"}),this[fc("0x0")](s,fc("0x176"),(()=>{this[fc("0xa9")](n,{state:fc("0x11d")})}),{priority:fc("0x1d")}),this._suggestions.set(n,s),this._suggestionState.set(s,fc("0xc8")),s}_splitMarkerName(t){const e=t[fc("0x92")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[fc("0x9f")]<5?e[2]:e[3],authorId:e[fc("0x9f")]<5?e[3]:e[4],markerCount:6==e[fc("0x9f")]?e[5]:null}}[fc("0xf")](t,n,r){const o=t[fc("0xc9")](),i=o[fc("0x15")],s=o[fc("0xbd")];this[fc("0x6e")](t,this[fc("0x117")][fc("0x22")](i,n));const x=(0,e.uid)(),a=t.creator.id,c=t[fc("0x4e")]+(t.subType?":"+t.subType:"");this[fc("0x84")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0xbf")],data:t[fc("0x181")]});const l=this._getAttributeKeyFromSubType(t);(fc("0x15c")==t[fc("0x4e")]||l&&this[fc("0x143")](l))&&(r=this._model[fc("0xaa")](r[fc("0x113")])),this[fc("0x13b")](c,x,a,this[fc("0x117")][fc("0x22")](r,s))}[fc("0x10")](t,e=null){const n=[],r=this[fc("0x133")][fc("0x14a")][fc("0x75")](fc("0xdf")).me;Array.isArray(t)||(t=[t]);for(const o of this[fc("0x10c")]()){if(!o[fc("0x42")])continue;if(e&&o.type!=e)continue;let i=!1;for(const e of o[fc("0xa8")]()){for(const s of t){const t=s[fc("0x15")][fc("0xd1")](e[fc("0xbd")])||s.end[fc("0xd1")](e[fc("0x15")]);if(t||s[fc("0x8f")](e)){const x=s[fc("0x170")](e)&&bc(this[fc("0x117")][fc("0x7a")],e.start,s),a=e.containsRange(s)&&bc(this[fc("0x117")][fc("0x7a")],s[fc("0x15")],e);n[fc("0xa")]({suggestion:o,meta:{isOwn:r==o[fc("0x109")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0x13b")](t,e,n,r,o){this[fc("0x117")][fc("0x129")]((i=>{let s=fc("0x95")+t+":"+e+":"+n;o&&(s=s+":"+o),i[fc("0x126")](s,{range:r,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t.previous,n=t[fc("0xdb")];t[fc("0xf2")]=null,t.next=null,null!=e&&(e.next=n),null!=n&&(n[fc("0xf2")]=e),"ready"==this[fc("0x145")][fc("0x75")](t)&&(this._suggestionState.set(t,fc("0x157")),this[fc("0x28")](fc("0x12d"),t,e,n))}[fc("0x84")](t){const n=t.id,r=this[fc("0x146")](t);if(this[fc("0x11e")]&&this[fc("0x11e")][fc("0x17")]){const o=this[fc("0x133")][fc("0x14a")][fc("0x75")](fc("0x138")),i=r[fc("0x14c")],s=r.subType?r[fc("0x4e")]+":"+r[fc("0x166")]:r[fc("0x4e")],x=this[fc("0x133")].locale,a=o[fc("0x11b")](Jr(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:s,hasComments:i,data:t[fc("0x181")]||null,originalSuggestionId:t[fc("0x15a")]||null,attributes:r[fc("0xbf")]};this[fc("0x11e")][fc("0x17")](c)[fc("0xb1")]((t=>{r._saved=!0,o[fc("0xbb")](a),t&&t[fc("0x4f")]&&(this[fc("0x54")][fc("0x75")](n)[fc("0x4f")]=t[fc("0x4f")])}))[fc("0x1b")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[fc("0x133")].model[fc("0x94")]({isUndoable:!1},(()=>{r[fc("0x176")]()})),r[fc("0x125")](),this[fc("0x54")][fc("0x122")](r.id),this[fc("0x145")][fc("0x122")](r),t}))}return r}[fc("0x143")](t){return this[fc("0x3e")][fc("0x49")](t)}[fc("0x12b")](t){return fc("0x9d")==t[fc("0x4e")]&&t[fc("0x166")][fc("0x92")]("|")[0]}[fc("0xa9")](t,e){const n=this[fc("0x133")][fc("0x14a")][fc("0x75")](fc("0x138")),r=this[fc("0x165")](t);if(this[fc("0x11e")]&&this[fc("0x11e")][fc("0x160")])if(r._saved){const r=n.add(Jr(this.editor.locale,fc("0xa1")));this._adapter[fc("0x160")](t,e).then((()=>{n.remove(r)}))}else r.on("change:_saved",(()=>{this._updateSuggestionData(t,e)}))}[fc("0x1")](t){if(!this[fc("0x11e")]||!this[fc("0x11e")][fc("0x165")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[fc("0x11e")][fc("0x165")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:r,authorId:o}=this[fc("0x1a")](t),i=this._suggestions.get(e)||this[fc("0xf6")](n,r,e,o,{});switch(this._checkSuggestionCorrectness(i,n,r,o),this[fc("0x145")].get(i)){case fc("0xc8"):this[fc("0x1")](e)[fc("0xb1")]((t=>{let n=Promise[fc("0x3d")]();t[fc("0x14c")]&&(n=this[fc("0x9")].fetchCommentThread({channelId:this.editor[fc("0x88")].get(fc("0x82")),threadId:e})),n[fc("0xb1")]((()=>{this[fc("0x146")](t)[fc("0x89")]=!0}))})),this[fc("0x145")][fc("0x114")](i,fc("0xf5"));break;case"removed":this[fc("0xa9")](e,{state:fc("0x152")});case fc("0x171"):this[fc("0x145")][fc("0x114")](i,fc("0x48")),this[fc("0x28")](fc("0xed"),i);break;case fc("0x48"):this[fc("0x28")](fc("0x161"),i)}return i[fc("0x4b")](t),i}[fc("0xc0")](t){const e=Array.from(t),n=e[fc("0xca")]((t=>fc("0x9d")==t.type));this[fc("0x3a")](n);const r=e.filter((t=>!t[fc("0x24")]&&fc("0x9d")!=t[fc("0x4e")])),o=this[fc("0x10c")]({skipNotAttached:!0}).filter((t=>!t[fc("0x24")]&&fc("0x9d")!=t[fc("0x4e")])),i=o[fc("0xca")]((e=>!t.has(e))),s=new Map(o[fc("0x36")]((t=>[t,this[fc("0x100")][fc("0xfd")](t[fc("0x4e")],t[fc("0x166")],fc("0x31"))]))),x=new Map(o[fc("0x36")]((t=>[t,t[fc("0xc9")]()]))),a=new Set,c=new Set;for(let t=0;t<r.length;t++)u(r[t],r,t+1);for(let t=0;t<r[fc("0x9f")];t++)u(r[t],i,0);const l=new Set;for(let t=0;t<r.length;t++){const e=r[t];!c[fc("0x49")](e)&&e.previous&&(l[fc("0x11b")](e[fc("0xf2")]),e[fc("0xf2")].next===e&&(e[fc("0xf2")][fc("0xdb")]=null),e.previous=null),!a[fc("0x49")](e)&&e.next&&(l[fc("0x11b")](e[fc("0xdb")]),e.next[fc("0xf2")]===e&&(e.next[fc("0xf2")]=null),e.next=null)}function u(t,e,n){for(let r=n;r<e[fc("0x9f")];r++){const n=d(t,e[r]);n&&(n[0][fc("0xdb")]=n[1],n[1][fc("0xf2")]=n[0],a[fc("0x11b")](n[0]),c[fc("0x11b")](n[1]))}}function d(t,e){if(t[fc("0x109")].id!==e.author.id)return null;const n=s[fc("0x75")](t)(t,e,x[fc("0x75")](t),x[fc("0x75")](e));return n&&s[fc("0x75")](e)(t,e,x.get(t),x[fc("0x75")](e))?n[1][fc("0xf3")]&&n[1][fc("0xf3")][fc("0x9f")]?null:n:null}l[fc("0x83")]&&this[fc("0xc0")](l)}_refreshAttributeSuggestionsChain(t){if(0==t[fc("0x9f")])return;const e=this.getSuggestions({skipNotAttached:!0})[fc("0xca")]((t=>fc("0x9d")==t[fc("0x4e")]&&t._isDataLoaded)),n=[],r=new Map;for(const t of e){const e=(0,i.hashObject)(t.attributes);r[fc("0x49")](e)||(r[fc("0x114")](e,n[fc("0x9f")]),n[fc("0xa")]([]));const o=r[fc("0x75")](e);n[o][fc("0xa")](t)}!function(){n[fc("0x5f")](((t,e)=>{const n=t[0][fc("0x4f")],r=e[0].createdAt;return n==r?t[0][fc("0xbf")].groupId<e[0][fc("0xbf")].groupId?-1:1:n<r?-1:1}));for(const t of n)t.sort(((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x9f")];t++){if(0==n[t][fc("0x9f")])continue;const e=[];for(let r=t+1;r<n[fc("0x9f")];r++)0!=n[r][fc("0x9f")]&&o(n[t],n[r])&&e[fc("0xa")](r);for(const r of e)n[t]=n[t][fc("0x162")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e].next=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x9f")];e++)t[e][fc("0xf2")]=t[e-1]||null;function o(t,e){if(t[0][fc("0x109")]!==e[0][fc("0x109")])return!1;if(n=t[0],r=e[0],(n.hasComments||r[fc("0x14c")])&&(n.hasComments&&r[fc("0x14c")]||!(n[fc("0x14c")]&&r[fc("0x4f")]<n[fc("0xf3")][fc("0xe4")][fc("0x75")](0).createdAt||r[fc("0x14c")]&&n[fc("0x4f")]<r.commentThread.comments[fc("0x75")](0)[fc("0x4f")])))return!1;var n,r;const o=lc(t[0][fc("0xbf")],fc("0xc")),i=lc(e[0][fc("0xbf")],fc("0xc"));return!!jr(o,i)&&(!!t.every((t=>e[fc("0x2")]((e=>t[fc("0xc9")]().isEqual(e[fc("0xc9")]())))))&&e[fc("0x87")]((e=>t[fc("0x2")]((t=>e[fc("0xc9")]()[fc("0xd1")](t[fc("0xc9")]()))))))}}[fc("0x169")](t){const e=Array[fc("0xf7")](t),n=this[fc("0x10c")]({skipNotAttached:!0}),r=n[fc("0xca")]((e=>!t[fc("0x49")](e))),o=new Map(e[fc("0x36")]((t=>[t,this[fc("0x100")][fc("0xfd")](t[fc("0x4e")],t[fc("0x166")],fc("0xde"))]))),i=new Map(n.map((t=>[t,t.getRanges()])));for(let t=0;t<e[fc("0x9f")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x9f")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n.length;s++){const r=n[s];if(r[fc("0x4e")]!==e[fc("0x4e")]||r.author.id!==e.author.id||r[fc("0x166")]!==e[fc("0x166")])continue;if(!kc(e,r))continue;if("attribute"==e[fc("0x4e")]&&e[fc("0x181")][fc("0x7")]!=r[fc("0x181")][fc("0x7")])continue;if("attribute"==e.type&&t[fc("0x143")](e[fc("0x181")][fc("0xd0")]))continue;const x=o[fc("0x75")](e),a=i[fc("0x75")](e),c=i[fc("0x75")](r),l=e[fc("0xf3")]&&e[fc("0xf3")][fc("0x9f")],u=r[fc("0xf3")]&&r[fc("0xf3")].length;if(!l&&x(c,a))return t[fc("0x6a")](r,e),i.delete(e),!0;if(!u&&x(a,c))return t[fc("0x6a")](e,r),i[fc("0x122")](r),!0}return!1}}_joinSuggestions(t,e){if(t.isMultiRange)for(const n of e.getRanges())t[fc("0x41")](n);else{const n=e.getFirstRange()[fc("0xbd")];this[fc("0x6e")](t,this._model[fc("0x22")](t[fc("0xc9")]().start,n))}e[fc("0x91")]()}[fc("0xf8")](t,e){const n=t[fc("0x81")]("format")||t[fc("0x81")](fc("0x9d"))?fc("0x112"):t[fc("0x141")]();return Jr(this[fc("0x133")][fc("0x80")],e+"_"+n+fc("0x72"))}[fc("0xe0")](){const t=this[fc("0x133")];(0,i.surroundingMarkersDetector)(this[fc("0x117")],(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[fc("0x1a")](t[fc("0x16f")]);if(fc("0x120")===e){r.push(this[fc("0xf8")](n,fc("0x7b")));break}}for(const t of n){const{group:e,type:n}=this._splitMarkerName(t.name);if(fc("0x120")===e){r[fc("0xa")](this._getMarkerAnnouncementText(n,fc("0xf4")));break}}r.length&&t.ui[fc("0x127")][fc("0x33")](fc("0x14e"),r[fc("0xde")](" "))}))}[fc("0x14b")](t){if(null!==this._recordAttributeSuggestionsFromVersion)return!1;const e=this[fc("0x133")],n=e[fc("0x93")].document.differ[fc("0x144")]();if(0==n.length)return!1;const r=[],o=n.filter((t=>fc("0x9d")==t[fc("0x4e")])),i=n[fc("0xca")]((t=>fc("0x47")==t[fc("0x4e")]&&fc("0x98")!=t.name)),s=n[fc("0xca")]((t=>fc("0xbb")==t[fc("0x4e")]&&fc("0x98")!=t[fc("0x16f")]));for(const t of o)r[fc("0xa")]({key:t.attributeKey,newValue:t[fc("0x73")],oldValue:t[fc("0x179")],range:(x=t[fc("0x2e")],null==x[fc("0xbd")][fc("0xd6")]&&x[fc("0xbd")][fc("0x113")]==x[fc("0x15")].nodeAfter?Cc(x[fc("0x15")][fc("0x3b")],e[fc("0x93")]):x)});var x;for(const t of i){const n=s[fc("0x107")]((e=>e[fc("0x7f")][fc("0xd1")](t.position)));n&&r[fc("0xa")]({key:fc("0xef"),newValue:t[fc("0x16f")],oldValue:n[fc("0x16f")],range:e[fc("0x93")].createRangeOn(t[fc("0x7f")].nodeAfter)})}return 0!=r[fc("0x9f")]&&this[fc("0x14")](t,r)}[fc("0x153")](t){let e=!1;const n=this[fc("0x133")][fc("0x93")][fc("0x4d")][fc("0x124")].getChangedMarkers()[fc("0xca")]((t=>t[fc("0x181")][fc("0x154")]&&t[fc("0x16f")][fc("0x81")]("suggestion:attribute:")));for(const r of n){const{subType:n,id:o}=this._splitMarkerName(r.name),i=n[fc("0x92")]("|")[0];for(const n of this.getSuggestions({skipNotAttached:!0}))n.id!=o&&"attribute"==n.type&&n.data&&n[fc("0x181")].key==i&&n[fc("0xc9")]()[fc("0x77")](r[fc("0x181")].newRange)&&(this[fc("0x6f")](n,r[fc("0x181")][fc("0x154")],t),e=!0)}return e}_recordAttributeChanges(t){if(null!==this[fc("0x4a")])return void t();const n=this[fc("0x133")];this._recordAttributeSuggestionsFromVersion=n[fc("0x93")][fc("0x4d")][fc("0xfe")],t();const r=new Map;for(const t of n[fc("0x93")].document[fc("0x67")][fc("0x10b")](this[fc("0x4a")]))if([fc("0x6d"),fc("0xff"),fc("0x16a"),fc("0x20")][fc("0x27")](t[fc("0x4e")])){const e=t.batch,n=r.get(e)||[];n[fc("0xa")](t),r[fc("0x114")](e,n)}this[fc("0x4a")]=null;for(const[t,o]of r){const r=(0,e.uid)();n[fc("0x93")][fc("0x94")](t,(t=>{const e=[];for(const t of o){let o,i,s,x;if(fc("0x6d")==t[fc("0x4e")]){const e=t;o=Cc(e[fc("0x7f")][fc("0x3b")],n[fc("0x93")]),i=fc("0xef"),s=e[fc("0xe5")],x=e[fc("0xa6")]}else{const e=t,r=this._isBlockAttribute(e[fc("0xd0")]),a=this[fc("0x78")][fc("0x49")](e.key);if(!r&&!a)continue;o=r?Cc(e.range[fc("0x15")][fc("0x3b")],n[fc("0x93")]):e[fc("0x2e")],i=e[fc("0xd0")],s=fc("0x16a")==t[fc("0x4e")]?void 0:e[fc("0x119")],x=e[fc("0x7")]}this[fc("0x16b")](o,i,x,s,{groupId:r}),e[fc("0xa")]({range:o,key:i,newValue:s,oldValue:x})}this._reduceExistingSuggestions(t,e)}))}}[fc("0x14")](t,e){if(0==e[fc("0x9f")])return!1;let n=!1;for(const r of e){const e=this[fc("0x10")](r[fc("0x2e")],fc("0x9d"))[fc("0xca")]((t=>!t[fc("0x17b")].isNextTo))[fc("0x36")]((t=>t[fc("0x120")])),o=(0,i.hashObject)({newValue:r[fc("0x119")]});e.filter((t=>{const[e,n]=t[fc("0x166")][fc("0x92")]("|");return e==r[fc("0xd0")]&&n!=o})).forEach((e=>{this._reduceSuggestionAttributeRange(e,r[fc("0x2e")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const r=t[fc("0xc9")]()[fc("0x96")](e);0!==r[fc("0x9f")]?1!==r[fc("0x9f")]?this[fc("0xf")](t,e[fc("0x15")],e[fc("0xbd")]):this[fc("0x6e")](t,r[0]):n[fc("0x137")](t[fc("0x134")]())}}class pc{constructor(t){this._editor=t,this[fc("0x117")]=t[fc("0x93")],this._customCallbacks=new Map,this[fc("0x121")]=new Map,this._registerDefaultCallbacks()}buildSuggestion(t,e,n,r,o,i){return new Yr(this[fc("0x117")],{type:t,subType:e,id:n,author:r,creator:r,attributes:o,onAttributesChange:i,onAccept:(...n)=>this.getSuggestionCallback(t,e,fc("0xe6"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,fc("0x176"))(...n)})}[fc("0xa5")](t,e,n,r){const o=t+":"+e+":"+n;this._customCallbacks[fc("0x114")](o,r)}[fc("0xfd")](t,e,n){const r=t+":"+e+":"+n;return this[fc("0x69")].get(r)||this[fc("0x121")].get(t+":"+n)}[fc("0x167")](){const t=()=>!1,e=t=>{t[fc("0x5f")](((t,e)=>t.start[fc("0x10f")](e[fc("0x15")])?1:-1)),this[fc("0x117")][fc("0x129")]((e=>{for(const n of t){let t;t=n[fc("0xbd")][fc("0x21")]&&n.end[fc("0x113")]==n[fc("0x15")][fc("0x3b")]?e[fc("0x40")](n[fc("0x15")][fc("0x3b")],"on"):e[fc("0x40")](n),this[fc("0x117")][fc("0xad")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0x117")][fc("0x129")]((n=>{const{commandName:r,commandParams:o=[]}=e,i=t[fc("0x36")]((t=>(Ec(t)&&(t=this[fc("0x117")][fc("0x22")](t[fc("0xbd")])),t)))[fc("0xca")]((t=>fc("0x37")!==t[fc("0xf9")][fc("0x15d")]));if(i[fc("0x9f")]<1)return;const x=Array[fc("0xf7")](this[fc("0x117")][fc("0x4d")][fc("0xec")][fc("0xa8")]())[fc("0x36")]((t=>s.LiveRange[fc("0x15f")](t)));n[fc("0x9b")](i);for(const t of this[fc("0x16")].commands[fc("0xb3")]())t[fc("0x155")]();o.push({forceDefaultExecution:!0}),this[fc("0x16")][fc("0xfb")](r,...o);const a=x[fc("0xca")]((t=>fc("0x37")!=t[fc("0xf9")][fc("0x15d")]));a[fc("0x9f")]>0&&n.setSelection(a);for(const t of x)t.detach()}))},r=(t,e)=>1==t[fc("0x9f")]&&1==e[fc("0x9f")]&&t[0][fc("0xbd")][fc("0xd1")](e[0][fc("0x15")]),o=(t,e,n,r)=>Ac(t,e,n,r,this[fc("0x117")])?[t,e]:Ac(e,t,r,n,this[fc("0x117")])?[e,t]:null;this[fc("0x121")].set(fc("0x175"),t),this._defaultCallbacks.set("insertion:discard",e),this[fc("0x121")][fc("0x114")](fc("0xb2"),r),this[fc("0x121")][fc("0x114")](fc("0xe"),o),this[fc("0x121")][fc("0x114")](fc("0x35"),e),this._defaultCallbacks[fc("0x114")](fc("0xda"),t),this[fc("0x121")].set(fc("0x70"),r),this[fc("0x121")][fc("0x114")](fc("0x9a"),o),this[fc("0x121")].set("formatInline:accept",n),this._defaultCallbacks[fc("0x114")](fc("0x1f"),t),this[fc("0x121")][fc("0x114")](fc("0x74"),r),this._defaultCallbacks[fc("0x114")](fc("0xbe"),t),this._defaultCallbacks.set(fc("0xee"),n),this[fc("0x121")][fc("0x114")](fc("0x6c"),t),this[fc("0x121")][fc("0x114")]("formatBlock:join",r),this[fc("0x121")][fc("0x114")](fc("0x2f"),t),this._defaultCallbacks[fc("0x114")](fc("0x178"),t),this[fc("0x121")][fc("0x114")](fc("0x164"),((t,e)=>{if(!e)return;const n=this._editor[fc("0x14a")][fc("0x75")](hc);this[fc("0x117")][fc("0x129")]((r=>{if(fc("0xef")==e.key)for(const n of t){const t=n[fc("0x15")].nodeAfter,o=e[fc("0x7")];r[fc("0x6d")](t,o)}else if(n[fc("0x143")](e[fc("0xd0")]))for(const n of t)void 0!==e[fc("0x7")]?r[fc("0xd")](e[fc("0xd0")],e[fc("0x7")],n[fc("0x15")][fc("0x3b")]):r.removeAttribute(e[fc("0xd0")],n.start[fc("0x3b")]);else for(const n of t)e.oldValue?r.setAttribute(e[fc("0xd0")],e.oldValue,n):r.removeAttribute(e[fc("0xd0")],n)}))})),this._defaultCallbacks[fc("0x114")](fc("0x52"),r)}}function bc(t,e,n){for(const r of e[fc("0x113")][fc("0x46")]({includeSelf:!0,parentFirst:!0})){if(r[fc("0xf9")]==r)return!1;if(!n[fc("0x17e")](r))return!1;if(t[fc("0xb9")](r)||t[fc("0x5c")](r))return!0}return!1}function Ec(t){return t.end[fc("0x113")]==t[fc("0x15")][fc("0x3b")]&&t[fc("0xbd")][fc("0x19")]}function _c(t,e,n,r){const o=t=>!t.item.is(fc("0xe9"))&&!r[fc("0xb9")](t[fc("0x116")]),i=t[fc("0x15")][fc("0xbc")](o),s=t[fc("0xbd")].getLastMatchingPosition(o,{direction:fc("0x8d")});return!(t[fc("0x15")][fc("0xd1")](i)&&t[fc("0xbd")][fc("0xd1")](s)||(i.isBefore(s)?n[fc("0x76")](e,{range:n[fc("0x22")](i,s)}):n[fc("0x137")](e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t[fc("0x15")][fc("0x3b")];return e&&e.is("element")}function Cc(t,e){const n=e[fc("0x7a")][fc("0xb9")](t)||e[fc("0x7a")][fc("0x132")](t);return e.createRange(e[fc("0x139")](t,"before"),n?e[fc("0x17d")](t):e[fc("0x139")](t,fc("0xbd")))}function Ac(t,e,n,r,o){if(!kc(t,e))return!1;if(n[fc("0xbd")].isEqual(r[fc("0x15")]))return!0;if(t[fc("0x4e")]!=e.type)return!1;if(!n.end.isTouching(r[fc("0x15")]))return!1;const i=o[fc("0x22")](n[fc("0xbd")],r[fc("0x15")])[fc("0x163")]();for(const t of i)if([fc("0x104"),fc("0x131")][fc("0x27")](t[fc("0x4e")])&&o[fc("0x7a")][fc("0x5c")](t[fc("0x116")]))return!1;return!0}function kc(t,e){return!(!t[fc("0xc3")]||!e[fc("0xc3")])&&jr(t[fc("0xbf")],e[fc("0xbf")])}function Ic(t,e){const n=Rc(t.attributes),r=Rc(e);if(!t[fc("0xc3")])return!1;for(const t of Object.keys(r))if(!jr(n[t],r[t]))return!1;return!0}function Rc(t){const e=Object[fc("0xa0")]({},t);return delete e[fc("0x13a")],delete e[fc("0xb")],e}const Sc=["remove","bind","commentThreadController","add","commands","acceptSuggestion","canEditAt","_pendingAction","view","model","destroy","_setPendingAction","canDiscard","listenTo","getRanges","get","execute","isEnabled","_editor","_discardCommand","discardSuggestion","unbind","plugins","locale","_acceptCommand","stopListening","canAccept","_removePendingAction","isDirty","PendingActions"];var vc,Nc;vc=Sc,Nc=150,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("0x8")]=n,this[Lc("0x2")]=r,this[Lc("0x12")]=t,this._acceptCommand=t[Lc("0x4")].get("acceptSuggestion"),this._discardCommand=t[Lc("0x4")][Lc("0xf")](Lc("0x14")),this.view[Lc("0x1")](Lc("0x11")).to(this[Lc("0x18")],this[Lc("0x13")],((t,e)=>t||e)),this.view[Lc("0x1")](Lc("0x1a")).to(this[Lc("0x18")],Lc("0x11"),(t=>t&&this[Lc("0x12")].model[Lc("0x6")](e.getRanges()))),this[Lc("0x8")][Lc("0x1")](Lc("0xc")).to(this._discardCommand,"isEnabled",(t=>t&&this._editor[Lc("0x9")][Lc("0x6")](e[Lc("0xe")]()))),this._pendingAction=null,n.isDirty&&this[Lc("0xb")](),this[Lc("0xd")](n,"acceptSuggestion",(()=>this[Lc("0x5")]())),this.listenTo(n,Lc("0x14"),(()=>this[Lc("0x14")]())),this[Lc("0xd")](n,"change:isDirty",(()=>{n[Lc("0x1c")]?this[Lc("0xb")]():this._removePendingAction()}))}acceptSuggestion(){this._acceptCommand[Lc("0x10")](this.model.id)}[Lc("0x14")](){this._discardCommand[Lc("0x10")](this[Lc("0x9")].id)}[Lc("0xa")](){this[Lc("0x8")][Lc("0x15")](Lc("0x11")),this[Lc("0x8")][Lc("0x15")](Lc("0x1a")),this[Lc("0x8")].unbind(Lc("0xc")),this[Lc("0x19")](),this[Lc("0x2")][Lc("0xa")](),this._pendingAction&&this[Lc("0x1b")]()}_setPendingAction(){const t=Jr(this[Lc("0x12")][Lc("0x17")],"PENDING_ACTION_SUGGESTION");this[Lc("0x7")]=this._editor[Lc("0x16")][Lc("0xf")](Lc("0x1d"))[Lc("0x3")](t)}[Lc("0x1b")](){null!==this._pendingAction&&this[Lc("0x12")][Lc("0x16")][Lc("0xf")](Lc("0x1d"))[Lc("0x0")](this[Lc("0x7")]),this[Lc("0x7")]=null}}const wc=["authoredAt","value","disabledSubmit","_createCommentThreadInputView","commentsListView","bind","canAccept","assign","addComment","setData","_createCommentViews","_config","fire","focus","delegate","set","_localUser","locale","_model","commentThreadInputView","isReadOnly","updateComment","editor","removeComment","destroy","isEnabled","CommentView","commentInputView","commentThread","disableComments","submit","length","isActive","isDirty","descriptionParts"];var Oc,Fc;Oc=wc,Fc=258,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("0x1a")]=null,this.commentThreadInputView=null,this[Dc("0x2")](Dc("0x13"),!1),this.set("authoredAt",e.authoredAt),this[Dc("0x1b")](Dc("0x16")).to(e),this.set(Dc("0x15"),[]),this[Dc("0x2")](Dc("0x14"),!1),this.set(Dc("0xc"),!1),this[Dc("0x2")](Dc("0x1c"),!1),this.set("canDiscard",!1),this[Dc("0x5")]=e,this._localUser=n,this[Dc("0x21")]=r,r[Dc("0x10")]?this.set("length",1):this._createCommentViews()}[Dc("0x0")](){this.element[Dc("0x0")]()}[Dc("0xb")](){this.commentsListView&&this[Dc("0x1a")][Dc("0xb")](),this.commentThreadInputView&&this.commentThreadInputView[Dc("0xb")](),super[Dc("0xb")]()}[Dc("0x20")](){const{CommentsListView:t}=this[Dc("0x21")];this[Dc("0x1a")]=new t(this[Dc("0x4")],this._model[Dc("0xf")],Object[Dc("0x1d")]({CommentView:this._config[Dc("0xd")]},this[Dc("0x21")])),this[Dc("0x1a")][Dc("0x1")](Dc("0xa")).to(this),this.commentsListView[Dc("0x1")](Dc("0x8")).to(this),this[Dc("0x1a")][Dc("0x1b")]("isActive").to(this),this[Dc("0x2")]("length",this[Dc("0x1a")][Dc("0x12")]+1),this.bind("length").to(this[Dc("0x1a")],"length",(t=>t+1)),this[Dc("0x6")]=this[Dc("0x19")](),this.on(Dc("0xa"),(()=>this[Dc("0x0")]())),this[Dc("0x1b")](Dc("0x14")).to(this[Dc("0x1a")],"hasDirtyComment",this.commentThreadInputView[Dc("0xe")],"value",((t,e)=>t||!!e))}[Dc("0x19")](){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[Dc("0x3")],this[Dc("0x21")].editorConfig),n=e[Dc("0xe")];return e[Dc("0x1b")]("showInput").to(this,"isActive",this._model[Dc("0xf")],Dc("0x7"),n,Dc("0x17"),((t,e,n)=>!!n||t&&!e)),n.on(Dc("0x11"),((t,e)=>{this[Dc("0x22")](Dc("0x1e"),e),n[Dc("0x9")][Dc("0x1f")]("")})),n.on("cancel",(()=>this[Dc("0x0")]())),n.bind(Dc("0x18")).to(this[Dc("0x5")].commentThread,Dc("0x7")),e}}const Pc=["ck-annotation__info-name","join","ck-annotation__info-time","authoredAt","source","_config",'<span class="ck-suggestion-color" style="background-color: ',"check","ck-suggestion__info","span","commentThreadInputView","ck-annotation__user","attributes","bind","<p>","fire","ck-suggestion--disabled-comments",'" title="',"EXTERNAL_IMPORT_WORD_SUGGESTION","name","canDiscard","delegate","discardButton","locale","EXTERNAL_IMPORT_WORD_AVATAR","Discard suggestion","ck-comment__external","editorDestroyed","getUserViewNotificationText","ck-suggestion__info-name","render","value","ck-suggestion__main","innerText","descriptionParts","disableComments","creator","extendTemplate","type","isEnabled","createElement","set","time","split","push",'"></span>',"commentsListView","acceptSuggestion","importWord","div","userView","discardSuggestion","color","description","</span>","ck-suggestion__user","bindTemplate","querySelector","ck-comment__info-time","EXTERNAL_AVATAR","isExternal","Accept suggestion","children","editorReady","ck-annotation__actions","execute","_descriptionElement","ck-annotation__content-wrapper","ck-annotation","getTemplate","ck-suggestion-","acceptButton","author","map","commentThread","change:description","EXTERNAL_SUGGESTION","content","innerHTML","element","_model","_createButton","title"];var Uc,jc;Uc=Pc,jc=302,function(t){for(;--t;)Uc.push(Uc.shift())}(++jc);const Gc=function(t,e){return Pc[t-=0]};class Vc extends Bc{constructor(e,n,r,o){super(e,n,r,o),this[Gc("0x47")](Gc("0x44"),""),this[Gc("0x2b")](Gc("0x44")).to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this[Gc("0x2b")](Gc("0x0")).to(this,Gc("0x40"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+=Gc("0x2c")+Hc(e[Gc("0x18")],e[Gc("0x52")])+"</p>";return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Gc("0xd")]=null,this[Gc("0x12")]=this[Gc("0x1c")](Jr(e,Gc("0x8")),t.icons[Gc("0x25")],"ck-suggestion--accept",Gc("0x4d"),"sw"),this.acceptButton[Gc("0x2b")]("isEnabled").to(this,"canAccept"),this[Gc("0x34")]=this[Gc("0x1c")](Jr(e,Gc("0x37")),t.icons.cancel,"ck-suggestion--discard",Gc("0x51"),"sw"),this.discardButton.bind(Gc("0x45")).to(this,Gc("0x32")),this.userView=new i.UserView(e,this[Gc("0x1b")].author,this[Gc("0x3a")]()),this[Gc("0x50")][Gc("0x43")]({attributes:{class:[Gc("0x2"),Gc("0x29")]}}),this.setTemplate(this[Gc("0x10")]())}[Gc("0x10")](){const t=this[Gc("0x3")],e=[{tag:Gc("0x4f"),attributes:{class:[Gc("0x26"),"ck-annotation__info"]},children:[{tag:Gc("0x27"),children:[{text:this[Gc("0x50")][Gc("0x31")]}],attributes:{class:[Gc("0x3b"),Gc("0x1e")]}},{tag:Gc("0x48"),attributes:{datetime:t.to(Gc("0x21")),class:[Gc("0x5"),Gc("0x20")]},children:[{text:t.to(Gc("0x21"),(t=>this[Gc("0x23")].formatDateTime(t)))}]}]},{tag:Gc("0x4f"),attributes:{class:["ck-suggestion__actions",Gc("0xb")]},children:[this.acceptButton,this.discardButton]},{tag:Gc("0x4f"),attributes:{class:[Gc("0xe")]}}];this._model[Gc("0x7")]&&e[Gc("0x4a")]({tag:Gc("0x4f"),attributes:{class:[Gc("0x38")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:Gc("0x4f"),attributes:{class:["ck-suggestion-wrapper",t.if("isActive","ck-suggestion-wrapper--active"),t.to("type",(t=>Gc("0x11")+t)),this[Gc("0x23")][Gc("0x41")]&&Gc("0x2e")],"data-suggestion-id":this[Gc("0x1b")].id,"data-thread-id":this[Gc("0x1b")][Gc("0x15")].id,"data-author-id":this[Gc("0x1b")][Gc("0x13")].id,tabindex:-1},children:[{tag:Gc("0x4f"),attributes:{class:["ck-suggestion",Gc("0xf")]},children:[this[Gc("0x50")],{tag:Gc("0x4f"),attributes:{class:[Gc("0x3e"),"ck-annotation__main"]},children:e}]}]};return this[Gc("0x4c")]&&this.commentThreadInputView&&(n[Gc("0x9")].push(this[Gc("0x4c")],this.commentThreadInputView),this.commentsListView[Gc("0x33")](Gc("0xa")).to(this),this.commentsListView[Gc("0x33")](Gc("0x39")).to(this),this[Gc("0x28")][Gc("0x33")](Gc("0xa")).to(this),this[Gc("0x28")][Gc("0x33")](Gc("0x39")).to(this)),n}[Gc("0x3c")](){super[Gc("0x3c")](),this[Gc("0xd")]=this[Gc("0x1a")][Gc("0x4")](".ck-annotation__content-wrapper"),this._descriptionElement[Gc("0x19")]=this[Gc("0x0")],this.on(Gc("0x16"),((t,e,n)=>{this[Gc("0xd")][Gc("0x19")]=n}))}[Gc("0x1c")](t,e,n,r,i){const s=new o.ButtonView(this[Gc("0x35")]);return s[Gc("0x47")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Gc("0x43")]({attributes:{class:n}}),s.on(Gc("0xc"),(()=>{this[Gc("0x2d")](r,this[Gc("0x1b")].id)})),s}getExternalSuggestionNote(){return Gc("0x4e")===this[Gc("0x1b")][Gc("0x2a")]["@external"][Gc("0x22")]?Jr(this[Gc("0x35")],Gc("0x30")):Jr(this[Gc("0x35")],Gc("0x17"))}[Gc("0x3a")](){return this[Gc("0x1b")][Gc("0x7")]?Gc("0x4e")===this[Gc("0x1b")][Gc("0x2a")]["@external"][Gc("0x22")]?Jr(this[Gc("0x35")],Gc("0x36"),this._model[Gc("0x42")].name):Jr(this[Gc("0x35")],Gc("0x6"),this._model[Gc("0x42")][Gc("0x31")]):null}}function Hc(t,e){let n="";return n+=t[Gc("0x49")]("*")[Gc("0x14")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+zc(t)+Gc("0x1"):zc(t)))[Gc("0x1f")](""),e&&(n+=Gc("0x24")+e[Gc("0x3d")]+Gc("0x2f")+e[Gc("0x1d")]+Gc("0x4b")),n}function zc(t){const e=document[Gc("0x46")](Gc("0x27"));return e[Gc("0x3f")]=t,e.innerHTML}const Wc=["view","delete","add","comments.maxCommentsWhenCollapsed","getMarkers","refreshSelectedViews","innerView","commands","getDescriptions","acceptButton","actionView","separator","Discard all suggestions","getByInnerView","arrowView","values","TrackChangesEditing","_suggestionToController","comments.editorConfig","getMarkerNames","discardButton","isEnabled","discardAllSuggestions","get","EditorAnnotations","config","push","toMany","Annotations","some","TrackChangesUI","CommentsRepository","mainView","lowest","execute","createAnnotationView","reduce","acceptSelectedSuggestions","pluginName","clear","change:previous","isDirty","button","type","from","value","_descriptionFactory","Accept all selected suggestions","init","addComment","suggestionChanged","comments.maxCommentCharsWhenCollapsed","isOn","keys","getJoined","trackChanges","SuggestionThreadView","plugins","getFirstRange","getSuggestion","filter","addSourceCollector","commandName","buttonView","has","_bindAnnotationToEditors","_handleControllerBuffer","unbind","_destroyController","comments.maxThreadTotalWeight","model","requires","listenTo","bind","_disableComments","suggestionLoaded","isMultiRange","length","activeAnnotations","componentFactory","acceptAllSuggestions","registerAnnotation","Accept all suggestions","_handleSuggestionControllerDelayed","_initializeController","_updateController","locale","commentThread","getAllAdjacentSuggestions","define","_annotationViews","suggestionUnloaded","focus","editor","_viewToController","suggestion-","_unbindEditors","createAnnotation","editing","discardSelectedSuggestions","map","isInContent","trackChanges.SuggestionThreadView","descriptionParts","set","size","CommentsUI","destroy","_createUIButton","head","createCommentThreadController","hasSuggestion","previous"];var Kc,qc;Kc=Wc,qc=206,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[Xc("0x5b")](){return[hc,i.Users,Xc("0x33"),Xc("0x30"),Xc("0x2c")]}static get[Xc("0x3a")](){return Xc("0x32")}constructor(t){super(t),this[Xc("0x25")]=new Map,this[Xc("0x1")]=new Map,this[Xc("0x6e")]=new Map,this[Xc("0x56")]=new Map;const e=this[Xc("0x0")].config;e.define(Xc("0x9"),Vc),e[Xc("0x6d")]("trackChanges.disableComments",!1),this._disableComments=e[Xc("0x2b")]("trackChanges.disableComments")}_handleSuggestionControllerDelayed(t,e){0===this._handleControllerBuffer[Xc("0xc")]&&setTimeout((()=>{for(const[t,e]of this[Xc("0x56")]){const n=this[Xc("0x25")][Xc("0x54")](t);n||e?n&&e&&this[Xc("0x58")](t):this[Xc("0x68")](t)}this.editor[Xc("0x4d")].get(Xc("0x2c"))[Xc("0x19")](),this._refreshActiveMarkers(),this._handleControllerBuffer[Xc("0x3b")]()}),10),this[Xc("0x56")][Xc("0xb")](t,e)}[Xc("0x44")](){const t=this[Xc("0x0")],e=t[Xc("0x4d")].get(Xc("0x24")),n=t[Xc("0x4d")][Xc("0x2b")]("Annotations"),r=t[Xc("0x4d")][Xc("0x2b")]("EditorAnnotations"),o=t[Xc("0x4d")][Xc("0x2b")](Xc("0x33"));t.ui[Xc("0x63")][Xc("0x16")](Xc("0x4b"),(t=>this._createUIButton(t))),r[Xc("0x51")]((()=>{const t=[];for(const[e,n]of Array.from(this[Xc("0x25")])){const r=e[Xc("0x6c")](),o=[];for(const t of r){if(!t.isInContent)continue;if(t[Xc("0x60")]){o[Xc("0x2e")](...t.getRanges());continue}const e=t[Xc("0x4e")]();if(o[Xc("0x61")]>0){const t=o[0][Xc("0x4a")](e);if(t){o[0]=t;continue}}o.push(e)}t[Xc("0x2e")]([n[Xc("0x14")],o])}return t})),this[Xc("0x5c")](e,Xc("0x5f"),((t,e)=>{this[Xc("0x5c")](e,Xc("0x3c"),((t,n,r,o)=>{e[Xc("0x8")]&&(null==r?(this._updateController(o.head),this[Xc("0x67")](e,!1)):(this[Xc("0x69")](r[Xc("0x10")]),null==o&&this[Xc("0x67")](e,!0)))})),null!==e[Xc("0x13")]?this[Xc("0x69")](e[Xc("0x10")]):this[Xc("0x67")](e,!1)})),this.listenTo(e,Xc("0x6f"),((t,e,n)=>{this.stopListening(e,Xc("0x3c")),this._handleControllerBuffer[Xc("0x15")](e),this[Xc("0x25")][Xc("0x54")](e)&&this[Xc("0x58")](e),n&&this[Xc("0x69")](n.head)})),this[Xc("0x5c")](e,Xc("0x46"),((t,e)=>{this[Xc("0x69")](e)})),this.listenTo(n,"change:activeAnnotations",(()=>{this._refreshActiveMarkers()})),this[Xc("0x5c")](o,Xc("0x45"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e[Xc("0x12")](n))return;const o=e[Xc("0x4f")](n);this._suggestionToController.get(o)[Xc("0x14")].focus()}),{priority:Xc("0x35")})}_refreshActiveMarkers(){const t=this[Xc("0x0")][Xc("0x4d")][Xc("0x2b")]("Annotations"),e=this[Xc("0x0")][Xc("0x4d")][Xc("0x2b")](Xc("0x24")),n=Array[Xc("0x40")](t[Xc("0x62")],(t=>t[Xc("0x1a")]))[Xc("0x50")]((t=>this[Xc("0x1")].has(t))),r=[];for(const t of n){const e=this._viewToController[Xc("0x2b")](t)[Xc("0x5a")][Xc("0x6c")]();r[Xc("0x2e")](...e[Xc("0x38")](((t,e)=>[...t,...e[Xc("0x27")]()]),[]))}e.activeMarkers=r}[Xc("0xf")](t){const n=(0,o.createDropdown)(t,o.SplitButtonView),r=this[Xc("0x0")].commands[Xc("0x2b")](Xc("0x4b")),i=Jr(t,"Track changes");n[Xc("0x53")].set({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("0x53")][Xc("0x5d")](Xc("0x48")).to(r,"value"),n.buttonView.on("execute",(()=>{r.execute(),this[Xc("0x0")][Xc("0x5")][Xc("0x14")][Xc("0x70")]()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:i,commandName:Xc("0x4b")}},{type:Xc("0x1f")},{type:Xc("0x3e"),model:{withText:!0,label:Jr(t,Xc("0x66")),commandName:Xc("0x64")}},{type:Xc("0x3e"),model:{withText:!0,label:Jr(t,Xc("0x43")),commandName:Xc("0x39")}},{type:Xc("0x3e"),model:{withText:!0,label:Jr(t,Xc("0x20")),commandName:Xc("0x2a")}},{type:"button",model:{withText:!0,label:Jr(t,"Discard all selected suggestions"),commandName:Xc("0x6")}}];for(const t of x){let e={type:"separator"};if(t[Xc("0x5a")]){const n=new o.Model(t.model),r=this[Xc("0x0")][Xc("0x1b")][Xc("0x2b")](n[Xc("0x52")]);n[Xc("0x5d")](Xc("0x48"),Xc("0x29")).to(r,Xc("0x41"),Xc("0x29")),e={type:t.type,model:n}}s[Xc("0x16")](e)}(0,o.addListToDropdown)(n,s);const a=x.filter((t=>null!=t.model))[Xc("0x7")]((t=>this[Xc("0x0")][Xc("0x1b")][Xc("0x2b")](t[Xc("0x5a")][Xc("0x52")]))),c=n.buttonView;return c[Xc("0x1e")][Xc("0x57")](Xc("0x29")),c.arrowView[Xc("0x57")](Xc("0x29")),c[Xc("0x1e")][Xc("0x5d")](Xc("0x29")).to(r,"isEnabled"),c[Xc("0x22")][Xc("0x5d")]("isEnabled")[Xc("0x2f")](a,"isEnabled",((...t)=>t[Xc("0x31")]((t=>t)))),n.on(Xc("0x36"),(t=>{this[Xc("0x0")].execute(t.source[Xc("0x52")]),this.editor[Xc("0x5")][Xc("0x14")][Xc("0x70")]()})),n}_initializeController(t){const e=this.editor,n=e[Xc("0x2d")],r=e[Xc("0x4d")].get("Annotations"),o=e[Xc("0x4d")][Xc("0x2b")](Xc("0x33")),s=e.plugins[Xc("0x2b")](Xc("0x2c")),x=e[Xc("0x4d")][Xc("0x2b")](i.Users).me,a=n[Xc("0x2b")](Xc("0x4b"))[Xc("0x4c")],{CommentsListView:c,CommentThreadInputView:l}=e[Xc("0x4d")][Xc("0x2b")](Xc("0xd"));let u,d;this[Xc("0x6e")].has(t.id)?(d=this._annotationViews.get(t.id),u=d[Xc("0x34")]):(u=new a(e[Xc("0x6a")],t,x,{disableComments:this[Xc("0x5e")],editorConfig:n[Xc("0x2b")](Xc("0x26")),maxCommentsWhenCollapsed:n.get(Xc("0x17")),maxThreadTotalWeight:n.get(Xc("0x59")),maxCommentCharsWhenCollapsed:n.get(Xc("0x47")),formatDateTime:(0,i.getDateTimeFormatter)(n.get(Xc("0x6a"))),CommentView:n[Xc("0x2b")]("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),u[Xc("0x1d")].on(Xc("0x36"),(()=>{e.editing[Xc("0x14")].focus()})),u[Xc("0x28")].on(Xc("0x36"),(()=>{e[Xc("0x5")].view[Xc("0x70")]()})),d=r[Xc("0x37")](this[Xc("0x0")][Xc("0x6a")],u),d[Xc("0x5d")](Xc("0x3d")).to(u,Xc("0x3d")),d[Xc("0x5d")]("length").to(u),d[Xc("0x5d")](Xc("0x3f")).to(u,Xc("0x3f"),(t=>Xc("0x2")+t)),this[Xc("0x6e")][Xc("0xb")](t.id,d));const g=o[Xc("0x11")](t[Xc("0x6b")],u),f=new Mc(e,t,u,g),m=t.getAllAdjacentSuggestions()[Xc("0x50")]((t=>t[Xc("0x8")]));u.descriptionParts=e[Xc("0x4d")][Xc("0x2b")](Xc("0x24"))[Xc("0x42")][Xc("0x1c")](m),this._suggestionToController[Xc("0xb")](t,f),this[Xc("0x1")][Xc("0xb")](u,f);const h=r[Xc("0x4")]({view:d,target:()=>{const n=[],r=t[Xc("0x6c")]()[Xc("0x50")]((t=>t[Xc("0x8")]));for(const t of r)n[Xc("0x2e")](...t[Xc("0x18")]());return(0,i.getAllMarkersDomElementsSorted)(e[Xc("0x5")],n)},type:()=>Xc("0x2")+f[Xc("0x14")].type});o[Xc("0x55")](u,h),r[Xc("0x16")](h),s[Xc("0x65")](h)}_destroyController(t){const e=this[Xc("0x0")][Xc("0x4d")][Xc("0x2b")](Xc("0x33")),n=this[Xc("0x0")][Xc("0x4d")][Xc("0x2b")]("Annotations"),r=this[Xc("0x25")].get(t),o=r.view,i=n[Xc("0x21")](o);e[Xc("0x3")](o),i&&n.remove(i),this[Xc("0x25")][Xc("0x15")](t),this[Xc("0x1")][Xc("0x15")](o),r[Xc("0xe")]()}[Xc("0x69")](t){if(!t.isInContent||!this._suggestionToController.has(t))return;const e=this.editor[Xc("0x4d")][Xc("0x2b")](Xc("0x24")),n=this[Xc("0x25")][Xc("0x2b")](t),r=t[Xc("0x6c")]();n[Xc("0x14")][Xc("0xa")]=e[Xc("0x42")].getDescriptions(r)}[Xc("0xe")](){for(const t of this[Xc("0x25")][Xc("0x49")]())this._destroyController(t);for(const t of this[Xc("0x6e")][Xc("0x23")]())t.mainView[Xc("0xe")]();super[Xc("0xe")]()}}var Zc,Yc,Jc=["TrackChanges","editor","adapter","getSuggestion","addSuggestionData","plugins","addSuggestion","requires","get","Comments","getSuggestions","pluginName"];Zc=Jc,Yc=442,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[Qc("0x9")](){return[hc,$c,Qc("0xb")]}static get[Qc("0x1")](){return Qc("0x2")}set[Qc("0x4")](t){this.editor[Qc("0x7")].get(hc)[Qc("0x4")]=t}get[Qc("0x4")](){return this[Qc("0x3")][Qc("0x7")][Qc("0xa")](hc).adapter}[Qc("0x8")](t){return this[Qc("0x3")][Qc("0x7")][Qc("0xa")](hc)[Qc("0x6")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Qc("0x3")][Qc("0x7")][Qc("0xa")](hc)[Qc("0x0")]({skipNotAttached:t,toJSON:e})}[Qc("0x5")](t){return this[Qc("0x3")][Qc("0x7")][Qc("0xa")](hc).getSuggestion(t)}}const el=["addUser","editor","trackChangesData","track-changes-data-invalid-editor-creator","TrackChangesData","TrackChangesEditing","init","appendChild","function","define","Pagination","model","document","name","trackChangesData.editorCreator","getRootsAttributes","TrackChangesDataGetter","_adapter","createElement","discardAllSuggestions","getFullData","plugins","pluginName","result","getRootNames","map","constructor","config","requires","rootsAttributes","getDataWithAcceptedSuggestions","CommentsRepository","getUser","editorCreator","create","useAnonymousUser","reduce","addSuggestionData","push","getSuggestions","data","set","get","users","end","div"];var nl,rl;nl=el,rl=456,function(t){for(;--t;)nl.push(nl.shift())}(++rl);const ol=function(t,e){return el[t-=0]},il=[ol("0xe")];class sl extends t.Plugin{static get[ol("0x20")](){return[hc]}static get[ol("0x1a")](){return ol("0x8")}[ol("0xa")](){const t=this.editor;if(t.config[ol("0xd")](ol("0x12"),(e=>{const n=t[ol("0xf")][ol("0x10")][ol("0x1c")]().reduce(((t,e)=>(t[e]="",t)),{});return t[ol("0x1e")][ol("0x26")](n,e)})),ol("0xc")!=typeof t[ol("0x1f")][ol("0x0")](ol("0x6"))[ol("0x25")])throw new e.CKEditorError(ol("0x7"))}[ol("0x22")](t){return cl(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return cl(this.editor,!1,t)}}class xl extends t.Plugin{static get[ol("0x1a")](){return ol("0x14")}constructor(t){super(t),this[ol("0x1b")]=ol("0x2")}[ol("0xa")](){this[ol("0x5")][ol("0x19")].get(ol("0x23"))[ol("0x15")]={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("0x5")].plugins[ol("0x0")](ol("0x9"))[ol("0x15")]=null}}function al(t){return void 0!==t[ol("0x13")]}async function cl(t,e,n){const r=(0,i.sanitizeEditorConfig)(t,il);r[ol("0x19")][ol("0x2a")](hc,xl),r[ol("0x21")]=al(t)?t.getRootsAttributes():void 0;const o=document.createDocumentFragment(),s=t.config[ol("0x0")](ol("0x6"))[ol("0x25")],x=await s(r,(()=>function(t){const e=document[ol("0x16")](ol("0x3"));return t[ol("0xb")](e),e}(o)));!function(t,e){const n=t[ol("0xf")][ol("0x10")][ol("0x1c")]()[ol("0x28")](((e,n)=>(e[n]=t.data[ol("0x0")]({rootName:n}),e)),{}),r=t.plugins[ol("0x0")]("Users")[ol("0x1")][ol("0x1d")]((t=>({id:t.id,name:t[ol("0x11")]}))),o=t.plugins[ol("0x0")](ol("0x9"))[ol("0x2b")]({skipNotAttached:!0,toJSON:!0}),i=e.plugins[ol("0x0")]("Users"),s=e.plugins[ol("0x0")]("TrackChangesEditing");for(const t of r)i[ol("0x24")](t.id)||i[ol("0x4")](t);i.me||i[ol("0x27")]();for(const t of o)s[ol("0x29")](t);e[ol("0x2c")][ol("0x2d")](n)}(t,x),x.execute(e?"acceptAllSuggestions":ol("0x17"));const a=al(x)?x[ol("0x18")](n):x[ol("0x2c")].get(n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();