@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240205.0 → 0.0.0-nightly-20240206.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 (67) 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/casechange.js +1 -1
  13. package/src/integrations/ckbox.js +1 -1
  14. package/src/integrations/codeblock.js +1 -1
  15. package/src/integrations/comments.js +1 -1
  16. package/src/integrations/deletecommand.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/imagestyle.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/legacylist.js +1 -1
  32. package/src/integrations/legacylistproperties.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.js +1 -1
  43. package/src/integrations/standardeditingmode.js +1 -1
  44. package/src/integrations/style.js +1 -1
  45. package/src/integrations/table.js +1 -1
  46. package/src/integrations/tablecaption.js +1 -1
  47. package/src/integrations/tableclipboard.js +1 -1
  48. package/src/integrations/tablecolumnresize.js +1 -1
  49. package/src/integrations/tableheadings.js +1 -1
  50. package/src/integrations/tablemergesplit.js +1 -1
  51. package/src/integrations/tableofcontents.js +1 -1
  52. package/src/integrations/tableproperties.js +1 -1
  53. package/src/integrations/template.js +1 -1
  54. package/src/integrations/title.js +1 -1
  55. package/src/integrations/undo.js +1 -1
  56. package/src/integrations/utils.js +1 -1
  57. package/src/suggestion.js +1 -1
  58. package/src/suggestiondescriptionfactory.js +1 -1
  59. package/src/trackchanges.js +1 -1
  60. package/src/trackchangesdata.js +1 -1
  61. package/src/trackchangesediting.js +1 -1
  62. package/src/trackchangesui.js +1 -1
  63. package/src/ui/suggestioncontroller.js +1 -1
  64. package/src/ui/view/basesuggestionthreadview.js +1 -1
  65. package/src/ui/view/suggestionthreadview.js +1 -1
  66. package/src/utils/common-translations.js +1 -1
  67. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={588:(t,e,n)=>{t.exports=n(104)("./src/collaboration-core.js")},968:(t,e,n)=>{t.exports=n(672)("./src/core.js")},684:(t,e,n)=>{t.exports=n(672)("./src/engine.js")},976:(t,e,n)=>{t.exports=n(672)("./src/enter.js")},500:(t,e,n)=>{t.exports=n(672)("./src/typing.js")},348:(t,e,n)=>{t.exports=n(672)("./src/ui.js")},316:(t,e,n)=>{t.exports=n(672)("./src/utils.js")},396:(t,e,n)=>{t.exports=n(672)("./src/widget.js")},104:t=>{"use strict";t.exports=CKEditor5.collaborationDll},672:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.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:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(968),e=n(316),i=n(348),o=n(588),s=n(684),x=n(396);const a=["refresh","execute","_isEnabledBasedOnSelection","has","editor","commands","value","affectsData","forceDisabled","clearForceDisabled","isEnabled","_disableUnsupportedCommands","_enabledCommands","_enableCommands"];var c,l;c=a,l=428,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("0x4")]=e,this[u("0xc")]=!1,this[u("0x6")](),this[u("0x8")]=!1}[u("0x6")](){this[u("0x2")]=!0}[u("0x7")](){this[u("0xc")]=!this[u("0xc")],this.value?this._disableUnsupportedCommands():this._enableCommands()}[u("0x3")](){for(const t of this.editor.commands.commands())t[u("0xd")]&&!this[u("0x4")][u("0x9")](t)&&t[u("0x0")]("TrackChangesCommand")}[u("0x5")](){for(const t of this[u("0xa")][u("0xb")].commands())t.affectsData&&!this[u("0x4")][u("0x9")](t)&&t[u("0x1")]("TrackChangesCommand")}}const g=["_suggestions","getRanges","execute","canEditAt","refresh","acceptSuggestion","get","_isEnabledBasedOnSelection","isEnabled","editor","plugins","TrackChangesEditing"];var f,h;f=g,h=195,function(t){for(;--t;)f.push(f.shift())}(++h);const m=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[m("0x9")]=e,this[m("0x1")](),this[m("0x4")]=!1}[m("0x1")](){this[m("0x5")]=!0}[m("0xb")](t){const n=this[m("0x9")][m("0x3")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const r=n[m("0xa")]();this[m("0x6")].model[m("0x0")](r)&&this[m("0x6")][m("0x7")][m("0x3")](m("0x8"))[m("0x2")](n)}}const b=["track-changes-discard-suggestion-not-found","TrackChangesEditing","editor","get","_isEnabledBasedOnSelection","_suggestions","canEditAt","getRanges","discardSuggestion","model","refresh"];var E,_;E=b,_=225,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("0x0")]=e,this[T("0x5")](),this[T("0xa")]=!1}[T("0x5")](){this.isEnabled=!0}execute(t){const n=this[T("0x0")][T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const r=n[T("0x2")]();this[T("0x8")][T("0x4")][T("0x1")](r)&&this.editor.plugins[T("0x9")](T("0x7"))[T("0x3")](n)}}const C=["isCollapsed","length","isObject","isIntersecting","sort"," [color ","add","isArray","start","isTouching","value","map","getRanges","deletion","color","push","isMultiRange","createPositionAt","createPositionBefore","end","splice","type","isInContent","schema","join","from"];var A,k;A=C,k=456,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x10")](((t,e)=>I("0x19")==t.type&&I("0x19")!=e[I("0x7")]?-1:I("0x19")!=t[I("0x7")]&&I("0x19")==e[I("0x7")]?1:0))}function S(t,e){let n,r=0;const i=[],o=e[I("0x9")];for(;r<t[I("0xd")];){const s=t[r],x=t[r+1];n||(n=e[I("0x4")](s)),v(e,s,x)||(i[I("0x1")](e.createRange(n,o[I("0xe")](s)?e.createPositionAfter(s):e[I("0x3")](s,I("0x5")))),n=null),r++}return i}function v(t,e,n){if(!n)return!1;const r=t.createPositionAfter(e),i=t[I("0x4")](n);return r[I("0x15")](i)}function N(t,e,n){for(;n.length;){const r=n[I("0x6")](0,100);t.change((()=>{for(const t of r)t.isInContent&&e.execute(t.id)}))}}const L=["from","model","_suggestions","values","refresh","_command","getRanges","some","editor","execute","_isEnabledBasedOnSelection"];var M,w;M=L,w=272,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x8")]=e,this._suggestions=n,this[O("0x7")](),this[O("0x2")]=!1}[O("0x7")](){const t=Array[O("0x3")](this[O("0x5")][O("0x6")]())[O("0xa")]((t=>t.isInContent));this.isEnabled=this[O("0x8")].isEnabled&&t}[O("0x1")](){const t=R(Array[O("0x3")](this[O("0x5")][O("0x6")]()));for(const e of t){const t=e[O("0x9")]();if(!this[O("0x0")][O("0x4")].canEditAt(t))return}N(this[O("0x0")][O("0x4")],this[O("0x8")],t)}}const D=["_selectedSuggestions","document","_suggestions","_command","values","size","selection","model","from","getRanges","isEnabled","canEditAt","execute","editor","refresh","_isEnabledBasedOnSelection"];var P,B;P=D,B=334,function(t){for(;--t;)P.push(P.shift())}(++B);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x5")]=e,this._suggestions=n,this[U("0x2")]=new Set,this[U("0x0")](),this[U("0x1")]=!1}[U("0x0")](){const t=this.editor[U("0x9")][U("0x3")][U("0x8")],e=Array[U("0xa")](this[U("0x4")][U("0x6")]());this[U("0x2")]=function(t,e){const n=Array[I("0xb")](t[I("0x18")]()),r=new Set;for(const i of e)if(i[I("0x8")])for(const e of n)for(const n of i[I("0x18")]())(e[I("0xf")](n)||t[I("0xc")]&&!i[I("0x2")]&&i.next&&n[I("0x5")].isTouching(e[I("0x14")]))&&r[I("0x12")](i);return r}(t,e),this[U("0xc")]=this[U("0x5")][U("0xc")]&&!!this._selectedSuggestions[U("0x7")]}[U("0xe")](){const t=R(Array[U("0xa")](this[U("0x2")]));for(const e of t){const t=e[U("0xb")]();if(!this[U("0xf")][U("0x9")][U("0xd")](t))return}N(this.editor[U("0x9")],this[U("0x5")],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 it=rt.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.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 r=!0}catch(t){}var i=xt.call(t);return r&&(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 ht=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 mt=rt["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(mt&&mt.keys&&mt.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))&&(ht(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 Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.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=Bt,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 ie=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 oe=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=r?r(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,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 he="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,pe=me&&me.exports===he?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),i=!n&&!r&&be(t),o=!n&&!r&&!i&&Ne(t),s=n||r||i||o,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)||o&&("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 Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&oe(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&&oe(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,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};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 oe(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)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,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return oe(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 hn=Nt(rt,"Set");const mn=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(hn),In=Tt(mn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||hn&&Rn(new hn)!=En||mn&&Rn(new mn)!=_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=it?it.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.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 Bn(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,i,o,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=o?r(e,i,o,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&&!o){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Qn[d])return o?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,r,i,e,s))})):Kn(e)&&e.forEach((function(i,o){x.set(o,t(i,n,r,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(i,o){h&&(i=e[o=i]),ie(x,o,t(i,n,r,o,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)\]/,ir=/^\w*$/;const or=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(ir.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,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,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,i){e.push(r?i.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var dr=it?it.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 hr=function(t){return null==t?"":fr(t)};const mr=function(t,e){return ge(t)?t:or(t,e)?[t]:lr(hr(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 i=-1,o=(e=mr(e,t)).length,s=o-1,x=t;null!=x&&++i<o;){var a=pr(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(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,i,o){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(r)var m=s?r(h,f,u,e,t,o):r(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||i(f,t,n,r,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!i(f,h,n,r,o)){d=!1;break}}return o.delete(t),o.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=it?it.prototype:void 0,Nr=vr?vr.valueOf:void 0;const Lr=function(t,e,n,r,i,o,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||!o(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,i,o,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,i,o){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=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(r)var p=s?r(m,h,l,e,t,o):r(h,m,l,t,e,o);if(!(void 0===p?h===m||i(h,m,n,r,o):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 o.delete(t),o.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Pr=Object.prototype.hasOwnProperty;const Br=function(t,e,n,r,i,o){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 o||(o=new Qt),s||Ne(t)?Ir(t,e,n,r,i,o):Lr(t,e,a,n,r,i,o);if(!(1&n)){var g=l&&Pr.call(t,"__wrapped__"),f=u&&Pr.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Qt),i(h,m,n,r,o)}}return!!d&&(o||(o=new Qt),wr(t,e,n,r,i,o))};const Ur=function t(e,n,r,i,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Br(e,n,r,i,t,o))};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=mr(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,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 o=Array(i);++r<i;)o[r]=t[r+e];return o};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=mr(e,t),null==(t=zr(t,e))||delete t[pr(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["substr","creator","set","getMarkers","isIntersectingWithRange","nodeAfter","_onAccept","_model","commentThread","discard","getAllAdjacentSuggestions","length","next","onAccept","hasComments","clear","reduce","getMultiRangeId","data","@external","from","delete","_isDataLoaded","push","_markerNames","onAttributesChange","attributes","accept","getRange","isIntersecting","getFirstMarker","getMarkerNames","removeMarkers","subType","authoredAt","author","suggestion:","type","nodeBefore","getRanges","createdAt","split","previous","_onDiscard","decorate","isInContent","start","addRange","isExternal","getItems","end","markers","toJSON","setAttribute","addMarkerName","getFirstRange","filter","addMarker","change","_onAttributesChange","getContainedElement"];var Xr,$r;Xr=qr,$r=342,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Yr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x2e")]=!1,this.id=e.id,this[Zr("0x0")]=e[Zr("0x0")],this.subType=e[Zr("0x39")]||null,this.author=e[Zr("0x3b")],this[Zr("0x19")]=e.creator||e[Zr("0x3b")],this[Zr("0xb")]=Boolean(e[Zr("0x32")]&&e[Zr("0x32")][Zr("0x2b")]),this[Zr("0x2a")]=null,this[Zr("0x1f")]=t,this[Zr("0x1e")]=e[Zr("0x25")],this._onDiscard=e.onDiscard,this[Zr("0x16")]=e[Zr("0x31")],this[Zr("0x30")]=new Set,this[Zr("0x3")]=null,this[Zr("0x1a")](Zr("0x3a"),null),this[Zr("0x1a")](Zr("0x32"),e[Zr("0x32")]||{}),this[Zr("0x1a")](Zr("0x5"),null),this[Zr("0x1a")](Zr("0x24"),null),this[Zr("0x1a")](Zr("0x20"),null),this[Zr("0x1a")]("_saved",!1),this[Zr("0x7")](Zr("0x33")),this.decorate(Zr("0x21"))}get head(){let t=this;for(;t[Zr("0x5")];)t=t[Zr("0x5")];return t}get[Zr("0x26")](){return!!this[Zr("0x20")]&&this[Zr("0x20")].length>0}get isMultiRange(){return 0!=this[Zr("0x30")].size&&6==Array[Zr("0x2c")](this[Zr("0x30")])[0][Zr("0x4")](":")[Zr("0x23")]}get[Zr("0x8")](){return null!==this[Zr("0x36")]()}[Zr("0x11")](t){this[Zr("0x30")].add(t)}[Zr("0x37")](){return Array[Zr("0x2c")](this[Zr("0x30")])}[Zr("0x1b")](){return this[Zr("0x37")]().map((t=>this[Zr("0x1f")][Zr("0xe")].get(t)))[Zr("0x13")]((t=>t))}[Zr("0x36")](){return this[Zr("0x1b")]()[0]||null}[Zr("0x38")](){this[Zr("0x1f")][Zr("0x15")]((t=>{for(const e of this[Zr("0x1b")]())t.removeMarker(e)})),this[Zr("0x30")][Zr("0x27")]()}removeMarker(t){this[Zr("0x1f")].change((e=>{e.removeMarker(t)})),this[Zr("0x30")][Zr("0x2d")](t)}[Zr("0xa")](t){const e=Zr("0x3c")+this[Zr("0x0")]+":"+this[Zr("0x39")]+":"+this.id+":"+this.creator.id+":"+Yr[Zr("0x29")]();this[Zr("0x11")](e),this[Zr("0x1f")][Zr("0x15")]((n=>{n[Zr("0x14")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x1c")](t){for(const e of this[Zr("0x2")]())if(e[Zr("0x35")](t))return!0;return!1}[Zr("0x2")](){return this[Zr("0x1b")]().map((t=>t.getRange()))}[Zr("0xc")](){return this[Zr("0x2")]()[Zr("0x28")](((t,e)=>[...t,...e[Zr("0xc")]()]),[])}[Zr("0x12")](){var t;return(null===(t=this[Zr("0x36")]())||void 0===t?void 0:t[Zr("0x34")]())||null}[Zr("0x17")](){const t=this[Zr("0x2")]();if(1!=t.length)return null;const e=t[0],n=e[Zr("0x9")][Zr("0x1d")],r=e[Zr("0xd")][Zr("0x1")];return n instanceof s.Element?n!=r?null:n:null}[Zr("0x33")](){this._onAccept(this[Zr("0x2")](),this[Zr("0x2a")],this.attributes),this[Zr("0x38")]()}[Zr("0x21")](){this[Zr("0x6")](this.getRanges(),this[Zr("0x2a")],this[Zr("0x32")]),this.removeMarkers()}[Zr("0x22")](){const t=[];let e=this.head;for(;e;)t[Zr("0x2f")](e),e=e[Zr("0x24")];return t}[Zr("0x10")](t,e){const n=er(this[Zr("0x32")]);Er(n,t,e),jr(n,this[Zr("0x32")])||(this.attributes=n,this[Zr("0x16")](n))}removeAttribute(t){const e=er(this[Zr("0x32")]);Kr(e,t),jr(e,this.attributes)||(this[Zr("0x32")]=e,this._onAttributesChange(this[Zr("0x32")]))}[Zr("0xf")](){return{id:this.id,type:this[Zr("0x39")]?this[Zr("0x0")]+":"+this[Zr("0x39")]:this[Zr("0x0")],authorId:this[Zr("0x19")].id,createdAt:this[Zr("0x3")],hasComments:this[Zr("0x26")],data:this[Zr("0x2a")],attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)()[Zr("0x18")](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=["REPLACE_TEXT","deletion","attribute","_handleCustomCallbackDescription","isEmpty","add","remove","$text","pop","elementStart","_handleInsertRemoveSuggestionDescription","nextSibling","join","*Split:* %0","getItemLabel","subType","start","isEqual","getFirstRange","data","_attributeLabels","has","removeContainer","_locale","skip","type","_handleAttributeSuggestionDescription","Object","addObject","$1 $2","push","EmptyContainer","previousSibling","format","nodeAfter","ELEMENT_SPACE","_schema","replace","end","addContainer","addEmptyContainer","newValue","$textProxy","text","_itemLabels","_customCallbacks","_handleRenameSuggestionDescription","quantity","getWalker","normal","*Insert:* %0","map","insertion","indexOf","_resolveDescriptionItems","key","elementEnd","item","Container","length","addFormat","match","*Remove:* %0","get","matchingCallback","removeFormat","isInContent","checkChild","_addDescriptionItems","name","registerDescriptionCallback","removeEmptyContainer","_itemLabelsCallbacks","isObject","element","softBreak"];var ti,ei;ti=Qr,ei=269,function(t){for(;--t;)ti.push(ti.shift())}(++ei);const ni=function(t,e){return Qr[t-=0]};class ri{constructor(t,e){this[ni("0x4")]=[],this[ni("0x3")]=new Map,this[ni("0x1f")]=[],this[ni("0x37")]=new Map,this[ni("0x47")]=t,this[ni("0x3a")]=e}getDescriptions(t){const e=[],n=new Set,r=new Set;for(let i=0;i<t[ni("0x12")];i++){const o=t[i];if(!o[ni("0x19")])continue;const s=this[ni("0x26")](o);if(s){if(null!=o[ni("0x32")]){if(n[ni("0x38")](o[ni("0x32")]))continue;n[ni("0x28")](o[ni("0x32")])}e[ni("0x41")](s)}else if(ni("0x25")!=o.type)ni("0xb")!=o[ni("0x3c")]&&ni("0x24")!=o[ni("0x3c")]||this[ni("0x2d")](e,o,t[i+1]);else{const t=o.data[ni("0xe")];if(r[ni("0x38")](t))continue;r[ni("0x28")](o.data[ni("0xe")]),t==Cc?this[ni("0x5")](e,o):this[ni("0x3d")](e,o)}}return this[ni("0xd")](e)}[ni("0x1d")](t){this[ni("0x4")][ni("0x41")](t)}registerElementLabel(t,n,r=e.priorities[ni("0x8")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[ni("0x1f")],{matchingCallback:t,label:n,priority:r}):this[ni("0x3")].set(t,n)}registerAttributeLabel(t,e){this[ni("0x37")].set(t,e)}[ni("0x31")](t,e=1){let n;for(const e of this[ni("0x1f")])if(e[ni("0x17")](t)){n=e.label;break}return n||(n=this._itemLabels[ni("0x16")](t[ni("0x1c")])),n?n(e):1!==e?e+" "+t[ni("0x1c")]+"s":""+t.name}[ni("0x1b")](t,e){const n=e[ni("0x35")]()[ni("0x7")](),r="insertion"==e[ni("0x3c")]?"add":ni("0x29");for(const e of n){const i=e[ni("0x10")],o=t[t[ni("0x12")]-1];if(i.is(ni("0x1")))o&&o.type[ni("0xc")](ni("0x11"))>-1&&t[ni("0x2b")](),o&&ni("0x2")==o[ni("0x3c")]?o[r]+=i[ni("0x36")]:t[ni("0x41")]({type:ni("0x2"),add:ni("0x28")==r?i.data:"",remove:"remove"==r?i[ni("0x36")]:""});else if(this[ni("0x47")][ni("0x20")](i)){const s=i;if(o&&o[ni("0x3c")].indexOf(ni("0x11"))>-1&&t[ni("0x2b")](),ni("0xf")==e[ni("0x3c")])continue;o&&o[ni("0x3c")]==r+ni("0x3e")&&o.element[ni("0x1c")]==s.name?o.quantity++:t.push({type:r+ni("0x3e"),element:s,quantity:1}),n[ni("0x3b")]((t=>!("elementEnd"==t[ni("0x3c")]&&t[ni("0x10")]==i)))}else if(this[ni("0x47")][ni("0x1a")](i,ni("0x2a"))||i.is(ni("0x21"),ni("0x22"))){const n=i;if("add"==r&&ni("0x2c")==e[ni("0x3c")]||ni("0x29")==r&&"elementEnd"==e[ni("0x3c")])continue;if(o&&-1==o[ni("0x3c")][ni("0xc")](ni("0x11"))){ni("0x2")==o.type&&(o[r]+="\n");continue}let s;if(s="add"==r?n[ni("0x2e")]&&!this[ni("0x47")][ni("0x20")](n[ni("0x2e")])?n.nextSibling:null:n[ni("0x43")]&&!this[ni("0x47")][ni("0x20")](n[ni("0x43")])?n.previousSibling:null,n[ni("0x27")]||s&&s[ni("0x27")]){const e=s&&s.isEmpty?s:n;o&&o[ni("0x3c")]==r+ni("0x42")&&o[ni("0x21")][ni("0x1c")]==e[ni("0x1c")]?o[ni("0x6")]++:t[ni("0x41")]({type:r+ni("0x42"),element:e,quantity:1})}else t[ni("0x41")]({type:r+ni("0x11"),element:n})}}}_resolveDescriptionItems(t){const e=this._locale,n=[],r=[],i=[];for(const o of t)switch(o[ni("0x3c")]){case"text":if(o[ni("0x28")]=o.add[ni("0x48")](/(\S)\u000A+(\S)/g,ni("0x40"))[ni("0x48")](/\u000A/g,""),o.remove=o[ni("0x29")].replace(/(\S)\u000A+(\S)/g,ni("0x40"))[ni("0x48")](/\u000A/g,""),""!=o[ni("0x28")]&&""!=o[ni("0x29")]){n[ni("0x41")]({type:ni("0x48"),content:Jr(e,ni("0x23"),['"'+o[ni("0x29")]+'"','"'+o.add+'"'])});continue}if(null!=o[ni("0x28")][ni("0x14")](/^ +$/)){n.push({type:ni("0xb"),content:Jr(e,ni("0x9"),Jr(e,ni("0x46"),o[ni("0x28")][ni("0x12")]))});continue}if(null!=o[ni("0x29")][ni("0x14")](/^ +$/)){n[ni("0x41")]({type:"deletion",content:Jr(e,"*Remove:* %0",Jr(e,"ELEMENT_SPACE",o.remove[ni("0x12")]))});continue}if(""!=o.add){n[ni("0x41")]({type:"insertion",content:Jr(e,"*Insert:* %0",'"'+o[ni("0x28")]+'"')});continue}n[ni("0x41")]({type:"deletion",content:Jr(e,ni("0x15"),'"'+o[ni("0x29")]+'"')});continue;case ni("0x4b"):case ni("0x3f"):n[ni("0x41")]({type:ni("0xb"),content:Jr(e,ni("0x9"),this[ni("0x31")](o[ni("0x21")],o[ni("0x6")]))});continue;case ni("0x1e"):case"removeObject":n[ni("0x41")]({type:ni("0x24"),content:Jr(e,"*Remove:* %0",this[ni("0x31")](o[ni("0x21")],o[ni("0x6")]))});continue;case ni("0x4a"):n.push({type:ni("0xb"),content:Jr(e,ni("0x30"),this[ni("0x31")](o[ni("0x21")],o[ni("0x6")]))});continue;case ni("0x39"):n[ni("0x41")]({type:"deletion",content:Jr(e,"*Merge:* %0",this[ni("0x31")](o[ni("0x21")],o[ni("0x6")]))});continue;case ni("0x13"):r[ni("0x41")](o[ni("0xe")]);continue;case ni("0x18"):i.push(o[ni("0xe")]);continue;default:n.push(o)}if(r[ni("0x12")]){const t=r.map((t=>this[ni("0x37")][ni("0x38")](t)?this._attributeLabels[ni("0x16")](t):t))[ni("0x2f")](", ");n[ni("0x41")]({type:ni("0x44"),content:Jr(this._locale,"*Set format:* %0",t)})}if(i.length){const t=i[ni("0xa")]((t=>this[ni("0x37")][ni("0x38")](t)?this[ni("0x37")].get(t):t))[ni("0x2f")](", ");n[ni("0x41")]({type:ni("0x44"),content:Jr(this._locale,"*Remove format:* %0",t)})}return n}[ni("0x26")](t){for(const e of this[ni("0x4")]){const n=e(t);if(n&&ni("0x3c")in n)return n}}[ni("0x3d")](t,e){const n=e[ni("0x36")],r=void 0===n[ni("0x0")]?"removeFormat":ni("0x13");t[ni("0x41")]({type:r,key:n.key})}_handleRenameSuggestionDescription(t,e){t[ni("0x41")]({type:ni("0x44"),content:Jr(this._locale,"*Change to:* %0",this[ni("0x31")](e[ni("0x35")]()[ni("0x33")][ni("0x45")],1))})}[ni("0x2d")](t,e,n){if(this[ni("0x1b")](t,e),n&&n[ni("0x35")]()&&!e[ni("0x35")]()[ni("0x49")][ni("0x34")](n.getFirstRange()[ni("0x33")])){const n=t[t[ni("0x12")]-1],r="insertion"==e.type?ni("0x28"):ni("0x29");n&&ni("0x2")==n[ni("0x3c")]&&(n[r]+="\n")}}}const ii=["commands","showAIAssistant","TrackChangesEditing","afterInit","get","editor","plugins"];var oi,si;oi=ii,si=382,function(t){for(;--t;)oi.push(oi.shift())}(++si);const xi=function(t,e){return ii[t-=0]};class ai extends t.Plugin{[xi("0x6")](){const t=this[xi("0x1")],e=t[xi("0x2")].get(xi("0x5"));t[xi("0x3")][xi("0x0")]("showAIAssistant")&&e.enableCommand(xi("0x4"))}}const ci=["FORMAT_JUSTIFY_TEXT","plugins","type","format","_descriptionFactory","commandName","TrackChangesEditing","FORMAT_ALIGN_TO_LEFT","right","AlignmentEditing","editor","locale","center","afterInit","_enableDefaultAttributesIntegration","FORMAT_ALIGN_TO_RIGHT","alignment","FORMAT_ALIGN_TO_CENTER","commandParams","get","has","justify","_registerLegacyDescription","FORMAT_ALIGNMENT","*Format:* %0"];var li,ui;li=ci,ui=207,function(t){for(;--t;)li.push(li.shift())}(++ui);const di=function(t,e){return ci[t-=0]};class gi extends t.Plugin{[di("0x6")](){const t=this[di("0x3")],e=t[di("0x4")];if(!t[di("0x13")][di("0xd")](di("0x2")))return;const n=t[di("0x13")][di("0xc")]("TrackChangesEditing");n[di("0x7")](di("0x9"),[],[di("0x9")]),n[di("0x16")].registerAttributeLabel("alignment",Jr(e,di("0x10"))),this[di("0xf")]()}[di("0xf")](){const t=this[di("0x3")],e=t[di("0x4")];t[di("0x13")][di("0xc")](di("0x18"))._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[di("0x14")])return;const{data:n}=t;if(n&&di("0x9")==n[di("0x17")]){const t=n[di("0xb")][0].value;return{type:di("0x15"),content:Jr(e,di("0x11"),function(t){switch(t){case"left":return Jr(e,di("0x0"));case di("0x1"):return Jr(e,di("0x8"));case di("0x5"):return Jr(e,di("0xa"));case di("0xe"):return Jr(e,di("0x12"))}}(t))}}}))}}const fi=["toLowerCase","FORMAT_","bold","has","FORMAT_ITALIC","code","*Remove format:* %0","commandName","FORMAT_SUBSCRIPT","forceValue","SubscriptEditing","slice","_descriptionFactory","UnderlineEditing","type","ItalicEditing","subscript","strikethrough","CodeEditing","registerAttributeLabel","superscript","get","toUpperCase","plugins","BoldEditing","_enableDefaultAttributesIntegration","TrackChangesEditing","FORMAT_UNDERLINE","_registerLegacyDescription","editor","underline","italic","locale","commandParams"];var hi,mi;hi=fi,mi=142,function(t){for(;--t;)hi.push(hi.shift())}(++mi);const pi=function(t,e){return fi[t-=0]},bi=[pi("0x12"),pi("0x9"),pi("0x7"),pi("0xc"),"StrikethroughEditing",pi("0x4"),"SuperscriptEditing"];class Ei extends t.Plugin{afterInit(){const t=this[pi("0x17")],e=t[pi("0x11")][pi("0xf")]("TrackChangesEditing"),n=t[pi("0x1a")];for(const r of bi){if(!t[pi("0x11")][pi("0x1f")](r))continue;const i=r[pi("0x5")](0,-7)[pi("0x1c")](),o=pi("0x1d")+i[pi("0x10")]();e[pi("0x13")](i,[i]),e[pi("0x6")][pi("0xd")](i,Jr(n,o))}this[pi("0x16")]()}[pi("0x16")](){const t=this[pi("0x17")],e=t[pi("0x1a")],n=t.plugins[pi("0xf")](pi("0x14"));function r(t,r){n[pi("0x6")].registerDescriptionCallback((n=>{if("formatInline"!=n[pi("0x8")])return;const{data:i}=n;return i&&i[pi("0x1")]===t?i[pi("0x1b")][0][pi("0x3")]?{type:"format",content:Jr(e,"*Format:* %0",r)}:{type:"format",content:Jr(e,pi("0x0"),r)}:void 0}))}r(pi("0x1e"),Jr(e,"FORMAT_BOLD")),r(pi("0x19"),Jr(e,pi("0x20"))),r(pi("0x18"),Jr(e,pi("0x15"))),r(pi("0x21"),Jr(e,"FORMAT_CODE")),r(pi("0xb"),Jr(e,"FORMAT_STRIKETHROUGH")),r(pi("0xa"),Jr(e,pi("0x2"))),r(pi("0xe"),Jr(e,"FORMAT_SUPERSCRIPT"))}}const _i=["filter","schema","ELEMENT_BLOCK_QUOTE","afterInit","*Set format:* %0","_descriptionFactory","model","format","checkChild","parent","selection","locale","forceValue","value","has","$root","get","enableCommand","plugins","markBlockFormat","BlockQuoteEditing","editor","from","document","blockQuote","*Remove format:* %0","commands","change","name","registerDescriptionCallback","commandParams","TrackChangesEditing"];var Ti,yi;Ti=_i,yi=467,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{[Ci("0x10")](){const t=this[Ci("0x2")],e=t[Ci("0x18")];if(!t[Ci("0x1f")][Ci("0x1b")](Ci("0x1")))return;const n=t[Ci("0x1f")].get(Ci("0xc")),r=this[Ci("0x2")][Ci("0x7")][Ci("0x1d")](Ci("0x5"));n[Ci("0x1e")](Ci("0x5"),((e,i={})=>{const o=this[Ci("0x2")].model[Ci("0x4")][Ci("0x17")],s=i&&void 0!==i[Ci("0x19")]?i[Ci("0x19")]:!r[Ci("0x1a")];let x=[];if(s){const e=Array[Ci("0x3")](o.getSelectedBlocks()).filter((t=>ki(t)||function(t,e){const n=e[Ci("0x15")](t.parent,"blockQuote"),r=e[Ci("0x15")]([Ci("0x1c"),Ci("0x5")],t);return n&&r}(t,this[Ci("0x2")].model[Ci("0xe")])));x=S(e,t[Ci("0x13")])}else{const e=Array[Ci("0x3")](o.getSelectedBlocks())[Ci("0xd")]((t=>ki(t)));x=S(e,t.model)}t[Ci("0x13")][Ci("0x8")]((()=>{for(const t of x)n[Ci("0x0")](t,{commandName:"blockQuote",commandParams:[{forceValue:s}]})}))})),n[Ci("0x12")][Ci("0xa")]((t=>{const{data:n}=t;if(n&&Ci("0x5")==n.commandName){const t=Jr(e,Ci("0xf"));return n[Ci("0xb")][0][Ci("0x19")]?{type:Ci("0x14"),content:Jr(e,Ci("0x11"),t)}:{type:Ci("0x14"),content:Jr(e,Ci("0x6"),t)}}}))}}function ki(t){return Ci("0x5")==t[Ci("0x16")][Ci("0x9")]}const Ii=["plugins","changeCaseTitle","has","editor","TrackChangesEditing","get","enableCommand","changeCaseUpper","afterInit","CaseChange"];var Ri,Si;Ri=Ii,Si=217,function(t){for(;--t;)Ri.push(Ri.shift())}(++Si);const vi=function(t,e){return Ii[t-=0]};class Ni extends t.Plugin{[vi("0x1")](){const t=this[vi("0x6")];t[vi("0x3")][vi("0x5")](vi("0x2"))&&(t[vi("0x3")].get(vi("0x7")).enableCommand(vi("0x0")),t[vi("0x3")][vi("0x8")]("TrackChangesEditing")[vi("0x9")]("changeCaseLower"),t[vi("0x3")][vi("0x8")](vi("0x7"))[vi("0x9")](vi("0x4")))}}const Li=["get","afterInit","plugins","ckbox","editor","enableCommand","TrackChangesEditing"];var Mi,wi;Mi=Li,wi=453,function(t){for(;--t;)Mi.push(Mi.shift())}(++wi);const Oi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[Oi("0x3")](){const t=this[Oi("0x6")];t.commands[Oi("0x2")](Oi("0x5"))&&t[Oi("0x4")][Oi("0x2")](Oi("0x1"))[Oi("0x0")](Oi("0x5"))}}const Di=["filter","editor","commandName","*Set format:* %0","label","document","blockName","schema","formatBlock","commands","isLimit","enableCommand","indentCodeBlock","codeBlock","value","languages","from","_descriptionFactory","get","model","language","checkChild","find","config","change","CodeBlock","ELEMENT_CODE_BLOCK","plugins","afterInit","registerDescriptionCallback","rootElement","selection","commandParams","forceValue","format","markBlockFormat","registerElementLabel","parent"];var Pi,Bi;Pi=Di,Bi=281,function(t){for(;--t;)Pi.push(Pi.shift())}(++Bi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{[Ui("0xd")](){const t=this[Ui("0x18")];if(!t[Ui("0xc")].has(Ui("0xa")))return;const e=t[Ui("0xc")].get("TrackChangesEditing"),n=t.locale,r=t[Ui("0x8")][Ui("0x3")]("codeBlock")[Ui("0x0")],i=t[Ui("0x20")][Ui("0x3")](Ui("0x24"));e[Ui("0x22")](Ui("0x23")),e[Ui("0x22")]("outdentCodeBlock"),e[Ui("0x22")](Ui("0x24"),((n,o={})=>{const s=t.model,x=t[Ui("0x4")][Ui("0x1c")][Ui("0x10")],a=o&&void 0!==o.forceValue?o[Ui("0x12")]:!i[Ui("0x25")];let c;o[Ui("0x5")]||(o[Ui("0x5")]=r[0][Ui("0x5")]),c=a?Array.from(x.getSelectedBlocks())[Ui("0x17")]((t=>{return Gi(t)||(e=t,n=s[Ui("0x1e")],!e.is(Ui("0xf"))&&!n[Ui("0x21")](e)&&n[Ui("0x6")](e[Ui("0x16")],Ui("0x24")));var e,n})):Array[Ui("0x1")](x.getSelectedBlocks())[Ui("0x17")]((t=>Gi(t)));const l=S(c,s);s[Ui("0x9")]((()=>{for(const t of l)e[Ui("0x14")](t,{commandName:Ui("0x24"),commandParams:[{...o,forceValue:a}],formatGroupId:Ui("0x1d")})}))})),e[Ui("0x2")][Ui("0x15")](Ui("0x24"),(t=>Jr(n,Ui("0xb"),t))),e._descriptionFactory[Ui("0xe")]((t=>{if(Ui("0x1f")!=t.type)return;const e=n.t,{data:i}=t;if(!i||Ui("0x24")!=i[Ui("0x19")])return;const o=i[Ui("0x11")][0][Ui("0x5")],s=e(r[Ui("0x7")]((t=>t.language===o))[Ui("0x1b")]).toLowerCase();return i[Ui("0x11")][0][Ui("0x12")]?{type:Ui("0x13"),content:Jr(n,Ui("0x1a"),Jr(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ui("0x13"),content:Jr(n,"*Remove format:* %0",Jr(n,Ui("0xb"),1))}}))}}function Gi(t){return Ui("0x24")==t.name}const Vi=["plugins","editor","TrackChangesEditing","enableCommand","addCommentThread","CommentsEditing","get"];var Hi,zi;Hi=Vi,zi=224,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{afterInit(){const t=this[Wi("0x1")];t[Wi("0x0")].has(Wi("0x5"))&&t.plugins[Wi("0x6")](Wi("0x2"))[Wi("0x3")](Wi("0x4"))}}var qi=n(500);const Xi=["listItem","schema","push","getItems","get","getAttribute","isLimit","mapper","model","bindElementToMarker","elementEnd","markerRange","getWalker","nextSibling","getCustomProperty","isContent","includes","markerName","TrackChangesEditing","type","span","insert","start","previousPosition","parent","isBlock","toViewElement","addHighlight","listIndent","plugins","item","writer","addClass","createRangeOn","ck-suggestion-marker--active"];var $i,Zi;$i=Xi,Zi=456,function(t){for(;--t;)$i.push($i.shift())}(++Zi);const Yi=function(t,e){return Xi[t-=0]};function Ji(t,e,n){const r=[];for(const i of e[Yi("0x2")]())i.hasAttribute(t)&&r[Yi("0x1")](n[Yi("0x20")](i));return r}function Qi(t,e,{showActiveMarker:n=!0}={}){const r=t[Yi("0x1c")][Yi("0x3")](Yi("0x11"));return(i,o,s)=>{if(!s.consumable.test(o[Yi("0xa")],i.name))return;const x=o[Yi("0xa")][Yi("0xb")](),a=o[Yi("0xa")][Yi("0x15")],c=t[Yi("0x7")][Yi("0x0")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Yi("0x1d")];d=d||c[Yi("0xe")](e);const n=s.mapper[Yi("0x19")](e);if(n&&n[Yi("0xd")](Yi("0x1a")))return;Yi("0x9")==t[Yi("0x12")]&&c[Yi("0x18")](e)&&!c[Yi("0x5")](e)&&(e[Yi("0xc")]||a.isAtEnd?l&&l[Yi("0x17")]==e||(l=e,f(t[Yi("0x16")]),g=!0):u=u||t[Yi("0x16")])}function f(t){const i=s.writer.createUIElement(Yi("0x13"),{class:"ck-suggestion-marker-"+e}),x=s[Yi("0x6")].toViewPosition(t);n&&r.activeMarkers[Yi("0xf")](o[Yi("0x10")])&&s[Yi("0x1e")][Yi("0x1f")](Yi("0x21"),i),s[Yi("0x1e")][Yi("0x14")](x,i),s.mapper[Yi("0x8")](i,o[Yi("0x10")])}d||g||!u||f(u)}}const to=["requires","unit","lock","root","markerName","start","uiElement","rootName","mapper","markerNameToElements","selection","merge","TrackChangesEditing","detach","batch","commands","removeMarker:suggestion:deletion","options","end","document","buffer","editing","modifySelection","addMarker:suggestion:deletion","writer","downcastDispatcher","editor","high","unlock","remove","$graveyard","setSelection","deleteForward","fromRange","enqueueChange","data","delete","enableCommand","bind","model","createRange","getFirstRange","get"];var eo,no;eo=to,no=101,function(t){for(;--t;)eo.push(eo.shift())}(++no);const ro=function(t,e){return to[t-=0]};class io extends t.Plugin{static get[ro("0x1c")](){return[qi.Delete]}init(){const t=this[ro("0xb")],e=t.plugins.get(ro("0x28"));e[ro("0x16")](ro("0x15"));const n=t[ro("0x0")][ro("0x1b")](ro("0x11"));e.enableCommand(ro("0x11"),((e,r={})=>{const i=t[ro("0x18")].createSelection(t[ro("0x18")][ro("0x4")][ro("0x26")]);i.isCollapsed&&t[ro("0x18")][ro("0x7")](i,{direction:"forward",unit:r[ro("0x1d")]});const o=i[ro("0x1a")](),x=s.LiveRange[ro("0x12")](o);let a;e(r),a=ro("0xf")==x[ro("0x1f")][ro("0x23")]?t.model[ro("0x19")](o[ro("0x21")]):t[ro("0x18")][ro("0x19")](x[ro("0x21")],x[ro("0x3")]),x[ro("0x29")](),t.model[ro("0x13")](n[ro("0x5")][ro("0x2a")],(t=>{n[ro("0x5")][ro("0x1e")](),t[ro("0x10")](t[ro("0x19")](a.end)),n[ro("0x5")][ro("0xd")]()}))})),t[ro("0x6")][ro("0xa")].on(ro("0x8"),Qi(t,ro("0x27")),{priority:ro("0xc")}),t[ro("0x14")][ro("0xa")].on(ro("0x8"),((e,n,r)=>{r[ro("0x2")].showSuggestionHighlights&&Qi(t,"merge",{showActiveMarker:!1})[ro("0x17")](this)(e,n,r)}),{priority:ro("0xc")}),t[ro("0x6")].downcastDispatcher.on(ro("0x1"),((t,e,n)=>{const r=n[ro("0x24")][ro("0x25")](e[ro("0x20")]);if(r)for(const t of r)t.is(ro("0x22"))&&(n[ro("0x24")].unbindElementFromMarkerName(t,e[ro("0x20")]),n[ro("0x9")][ro("0xe")](t))}),{priority:ro("0xc")})}}const oo=["detach","documentList","meta","groupId","_registerLegacyDescription","getFirstMarker","FORMAT_INDENT","outdentList","getFirstRange","*Merge:* %0","editor","listType","default","indentList","getAttribute","length","_descriptionFactory","nodeAfter","ELEMENT_BULLETED_LIST","batch","_suggestionFactory","change","oldValue","listStart","ELEMENT_TODO_LIST","getSuggestions","registerDescriptionCallback","data","numbered","setAttribute","document","*Format:* remove from %0","removeMarker","mergeListItemBackward","*Outdent:* %0","start","head","schema","registerElementLabel","includes","ELEMENT_LIST_ITEM","type","listIndent","isNextTo","commandParams","ELEMENT_NUMBERED_LIST","registerAttributeLabel","mergeListItemForward","model","previousSibling","map","TrackChangesEditing","*Merge:* list item","*Format:* insert into %0","attributes","plugins","listReversed","_getAttributeKey","multipleBlocks","isLocal","refresh","value","createPositionAt","key","next","newValue","_findSuggestions","parent","format","listStyle","_enableDefaultAttributesIntegration","formatBlock","registerPostFixer","TodoListEditing","getRanges","*Set format:* %0","find","listItemIdFixer","registerCustomCallback","noTrackChangesFixer","todo","todoList","every","range","ListEditing","end","todoListChecked","fromRange","toUpperCase","listItemId","filter","*Remove format:* %0","bulleted","commandName","numberedList","list.multiBlock","has","splitListItemAfter","splitListItemBefore","*Indent:* %0","get","isObject","commands","differ","getChanges","createRange","forceValue","deletion","config","selection","isUndo","setSelection","locale","attribute","bulletedList","*Split:* list item","suggestion","assureChains"];var so,xo;so=oo,xo=212,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{afterInit(){const t=this[ao("0x22")];if(!t[ao("0x4f")][ao("0x2")](ao("0x6c")))return;const e=t[ao("0x12")],n=t.plugins[ao("0x6")](ao("0x4b")),r=t[ao("0x4f")][ao("0x2")](ao("0x61")),i=!!t[ao("0xe")][ao("0x6")](ao("0x1"));function o(t){return{type:ao("0x5c"),content:""+Jr(e,ao("0x63"),t)}}function s(t){return{type:ao("0x5c"),content:""+Jr(e,ao("0x73"),t)}}n[ao("0x5e")](ao("0x0"),[],[ao("0x71"),ao("0x23"),ao("0x42")]),n[ao("0x5e")](ao("0x14")),n[ao("0x5e")]("indentList"),n._enableDefaultAttributesIntegration(ao("0x1f")),n[ao("0x5e")](ao("0x3")),n[ao("0x5e")](ao("0x4")),i&&(n[ao("0x5e")](ao("0x39")),n[ao("0x5e")](ao("0x47"))),r&&(n[ao("0x5e")](ao("0x69")),n._enableDefaultAttributesIntegration("checkTodoList",[],[ao("0x6e")]),n[ao("0x28")][ao("0x32")]((t=>{const{data:n}=t;if(n&&"todoListChecked"==n[ao("0x57")])return{type:ao("0x5c"),content:n[ao("0x59")]?Jr(e,"*Check item*"):Jr(e,"*Uncheck item*")}})),this[ao("0x22")][ao("0x48")].document.registerPostFixer((t=>{if(t[ao("0x2b")][ao("0x10")])return!1;let e=!1;const r=n[ao("0x31")]({skipNotAttached:!0})[ao("0x72")]((t=>ao("0x6e")===n[ao("0x51")](t)));for(const i of r)ao("0x68")!=i.getFirstRange()[ao("0x3b")][ao("0x29")][ao("0x26")](ao("0x23"))&&(n._findSuggestions(i[ao("0x20")](),ao("0x13"))[ao("0x64")]((t=>ao("0x23")===n._getAttributeKey(t[ao("0x16")])))||(t.removeMarker(i.getFirstMarker()),e=!0));return e}))),n[ao("0x28")][ao("0x46")]("listIndent",Jr(e,ao("0x1e")));const x={type:"format",content:""};n[ao("0x28")][ao("0x32")]((t=>{const{data:n}=t;if(!n||ao("0x23")!=n[ao("0x57")])return;let r=t[ao("0x3c")];for(;r;){if(r[ao("0x33")]&&(ao("0x5d")==r[ao("0x33")][ao("0x57")]&&(r[ao("0x33")][ao("0x59")]&&ao("0x24")!=r[ao("0x33")].newValue||ao("0x24")!=r[ao("0x33")][ao("0x2e")]&&!n.newValue)||!i&&r[ao("0x33")][ao("0x57")]==Cc))return x;r=r[ao("0x58")]}if(null==n.newValue)switch(n[ao("0x2e")]){case ao("0x74"):return s(Jr(e,ao("0x2a")));case ao("0x34"):return s(Jr(e,ao("0x45")));case ao("0x68"):return s(Jr(e,ao("0x30")))}switch(n.newValue){case ao("0x74"):return o(Jr(e,"ELEMENT_BULLETED_LIST"));case ao("0x34"):return o(Jr(e,ao("0x45")));case ao("0x68"):return o(Jr(e,"ELEMENT_TODO_LIST"))}})),n[ao("0x28")][ao("0x32")]((t=>{const{data:e}=t;if(e&&"listIndent"==e.key)return null==e[ao("0x59")]||null==e[ao("0x2e")]&&0==e[ao("0x59")]?x:void 0})),n._descriptionFactory[ao("0x32")]((t=>{if(ao("0x13")!=t.type)return;const{data:n}=t;if(!n||ao("0x71")!=n[ao("0x57")])return;const r=lo(t);return r?"newValue"==r?{type:ao("0x5c"),content:Jr(e,ao("0x4c"))}:ao("0x2e")==r?{type:ao("0x5c"),content:Jr(e,ao("0x15"))}:x:x})),t.model.document[ao("0x60")]((t=>this[ao("0x65")](t))),t[ao("0x48")][ao("0x36")].registerPostFixer((t=>this[ao("0x67")](t))),t.model[ao("0x36")][ao("0x60")]((t=>this[ao("0x17")](t))),this._supportLegacySuggestions()}[ao("0x65")](t){if(t[ao("0x2b")][ao("0x10")]||!t.batch.isLocal)return!1;let e=!1;const n=this.editor[ao("0x4f")][ao("0x6")](ao("0x4b"))[ao("0x31")]({skipNotAttached:!0}).filter((t=>t[ao("0x33")]&&"listItemId"==t.data[ao("0x57")])).filter((t=>t.data[ao("0x59")]&&t.data.oldValue));for(const r of n)lo(r)||(t[ao("0x38")](r.getFirstMarker()),e=!0);return e}noTrackChangesFixer(t){if(t[ao("0x2b")][ao("0x10")]||!t.batch[ao("0x53")])return!1;const e=this[ao("0x22")][ao("0x4f")][ao("0x6")](ao("0x4b"));if(e.trackChangesCommand[ao("0x55")])return!1;let n=!1;const r=["listType","listStyle",ao("0x71"),ao("0x42"),"listStart",ao("0x50"),"todoListCheck"],i=this[ao("0x22")].model.document[ao("0x9")][ao("0xa")]()[ao("0x72")]((t=>"attribute"==t.type))[ao("0x72")]((t=>r[ao("0x3f")](t.attributeKey)));if(0==i[ao("0x27")])return n;for(const o of i){const i=e[ao("0x5a")](o[ao("0x6b")],ao("0x13"))[ao("0x72")]((t=>!t[ao("0x1a")][ao("0x43")]))[ao("0x4a")]((t=>t[ao("0x16")]))[ao("0x72")]((t=>{const n=e[ao("0x51")](t);return r[ao("0x3f")](n)}));if(i[ao("0x27")]){for(const e of i)t[ao("0x38")](e[ao("0x1d")]());n=!0}}return n}[ao("0x17")](t){if(t[ao("0x2b")][ao("0x10")]||!t[ao("0x2b")][ao("0x53")])return!1;const e=this[ao("0x22")][ao("0x4f")][ao("0x6")](ao("0x4b"));let n=!1;const r=[ao("0x23"),ao("0x5d"),"listItemId","listIndent",ao("0x2f"),ao("0x50"),"todoListCheck"];for(const t of e[ao("0x31")]({skipNotAttached:!0})){const i=e[ao("0x5a")](t[ao("0x20")](),ao("0x13"))[ao("0x4a")]((t=>t.suggestion))[ao("0x72")]((t=>t.data&&r[ao("0x3f")](t[ao("0x33")][ao("0x57")])));if(!i[ao("0x27")])continue;const s=i[0][ao("0x3c")][ao("0x4e")][ao("0x1b")];if(!i[ao("0x6a")]((t=>t[ao("0x4e")][ao("0x1b")]===s)))for(const t of i)o(t,s)&&(n=!0)}return n;function i(t,n){for(const r of e[ao("0x31")]({skipNotAttached:!0}).filter((e=>ao("0x13")==e[ao("0x41")]&&e.attributes.groupId==t)))r[ao("0x35")](ao("0x1b"),n)}function o(t,e){let n=t[ao("0x3c")],r=!1;for(;n;)n[ao("0x4e")][ao("0x1b")]!=e&&(i(n.attributes[ao("0x1b")],e),n.setAttribute(ao("0x1b"),e),r=!0),n=n[ao("0x58")];return r}}_supportLegacySuggestions(){const t=this.editor,e=t[ao("0x12")],n=t[ao("0x4f")].get(ao("0x4b"));this[ao("0x1c")](),n[ao("0x2c")][ao("0x66")](ao("0x5f"),ao("0x19"),"accept",(function(e,n){const r=[];for(let n of e)n[ao("0x3b")][ao("0x29")]===n[ao("0x6d")][ao("0x5b")]&&(n=t[ao("0x48")][ao("0xb")](t[ao("0x48")][ao("0x56")](n.start[ao("0x29")],0))),r.push(n);t[ao("0x48")][ao("0x2d")]((e=>{const i=t.model[ao("0x36")][ao("0xf")],o=Array.from(i[ao("0x62")]()).map((t=>s.LiveRange[ao("0x6f")](t)));e[ao("0x11")](r),t[ao("0x8")][ao("0x6")](n[ao("0x75")])[ao("0x54")](),n[ao("0x44")].push({forceDefaultExecution:!0}),t.execute(n[ao("0x75")],...n[ao("0x44")]),e[ao("0x11")](o);for(const t of o)t[ao("0x18")]()}))})),n[ao("0x28")][ao("0x3e")]((function(e){const n=!t[ao("0x48")][ao("0x3d")][ao("0x7")](e),r=e[ao("0x49")],i=e.nextSibling,o=e[ao("0x26")](ao("0x71")),s=!r||r[ao("0x26")]("listItemId")!==o,x=!i||i[ao("0x26")](ao("0x71"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Jr(e,"ELEMENT_LIST_ITEM",t)))}[ao("0x1c")](){const t=this[ao("0x22")],e=t[ao("0x12")];function n(e){const n=t.commands.get(ao("0x14")).value,r=t[ao("0x8")][ao("0x6")](ao("0x0")).value;return ao("0x0")===e?n:r}t[ao("0x4f")][ao("0x6")](ao("0x4b"))[ao("0x28")][ao("0x32")]((function(r){if(ao("0x5f")!=r[ao("0x41")])return;const{data:i}=r;if(!i)return;let o,s,x,a;switch(i.commandName){case"bulletedList":x=i[ao("0x44")][0][ao("0xc")],a=n(i[ao("0x75")]),o=ao(x?"0x4d":"0x37"),!a&&t[ao("0xe")].get("list.multiBlock")||(o="*Change to:* %0"),s={type:ao("0x5c"),content:Jr(e,o,Jr(e,ao("0x2a")))};break;case ao("0x0"):x=i.commandParams[0][ao("0xc")],a=n(i.commandName),o=x?ao("0x4d"):"*Format:* remove from %0",!a&&t[ao("0xe")][ao("0x6")]("list.multiBlock")||(o="*Change to:* %0"),s={type:ao("0x5c"),content:Jr(e,o,Jr(e,"ELEMENT_NUMBERED_LIST"))};break;case ao("0x25"):o=ao("0x5"),s={type:ao("0x5c"),content:Jr(e,o,Jr(e,ao("0x40")))};break;case ao("0x1f"):o=function(t){const e=t[ao("0x20")]();let n=e[ao("0x3b")][ao("0x29")];for(;n&&e.containsItem(n);){if(n.getAttribute(ao("0x42"))>0)return!1;n=n.nextSibling}return!0}(r)?Jr(e,ao("0x37"),Jr(e,"ELEMENT_"+r[ao("0x20")]()[ao("0x3b")].nodeAfter.getAttribute(ao("0x23"))[ao("0x70")]()+"_LIST")):Jr(e,ao("0x3a"),Jr(e,"ELEMENT_LIST_ITEM")),s={type:ao("0x5c"),content:o};break;case ao("0x39"):case ao("0x47"):!1===i[ao("0x52")]&&(o=ao("0x21"),s={type:ao("0xd"),content:Jr(e,o,Jr(e,ao("0x40")))})}return s}))}}function lo(t){let e=t.getFirstRange()[ao("0x3b")][ao("0x29")][ao("0x49")];for(;e;){const n=e[ao("0x26")](ao("0x71"));if(!n)return!1;if(n==t[ao("0x33")][ao("0x59")])return"newValue";if(n==t[ao("0x33")][ao("0x2e")])return ao("0x2e");e=e[ao("0x49")]}return!1}const uo=["listType","format","ListPropertiesEditing","_LIST_DEFAULT","registerAttributeLabel","get","_registerLegacyDescription","FORMAT_LIST_REVERSED","registerDescriptionCallback","getSuggestions","find","replace","includes","_getTranslationKeyForListStyle","oldValue","suggestion","disc","editor","newValue","key","document","*Remove format:* %0","*Format:* set order to regular","batch","has","config","upper-latin","plugins","upper-roman","reversed","_findSuggestions","afterInit","locale","formatBlock","listReversed","ELEMENT_","square","decimal-leading-zero","_enableDefaultAttributesIntegration","_LIST_","default","FORMAT_LIST_START","nodeAfter","type","listStyle","model","head","lower-latin","start","handleDescriptions","removeMarker","attribute","listStart","getFirstMarker","*Format:* set start index to %0","startIndex","_descriptionFactory","getFirstRange","getAttribute","toUpperCase","*Set format:* %0","commandParams","bulleted","_getAttributeKey","TrackChangesEditing","filter","data"];var go,fo;go=uo,fo=437,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x3f")](){if(!this[ho("0x31")].plugins[ho("0x38")](ho("0x22")))return;const t=this[ho("0x31")][ho("0x39")][ho("0x25")]("list.properties"),e=this[ho("0x31")][ho("0x3b")][ho("0x25")](ho("0x1d"));t.styles&&e[ho("0x3")](ho("0x9"),[],[ho("0x9")]),t[ho("0x3d")]&&e[ho("0x3")](ho("0x42"),[],[ho("0x42")]),t[ho("0x14")]&&e[ho("0x3")](ho("0x11"),[],[ho("0x11")]);const n={type:"format",content:""};e[ho("0x15")].registerDescriptionCallback(this.handleDescriptions.bind(this));const r=this[ho("0x31")].locale;e[ho("0x15")][ho("0x24")](ho("0x42"),Jr(r,ho("0x27"))),e[ho("0x15")][ho("0x28")]((t=>{const{data:e}=t;if(e&&"listReversed"==e.key)return null==e.newValue||0==e[ho("0x32")]&&null==e[ho("0x2e")]?n:void 0})),e._descriptionFactory[ho("0x24")](ho("0x11"),Jr(r,ho("0x6"))),e[ho("0x15")][ho("0x28")]((t=>{const{data:e}=t;if(e&&"listStart"==e.key)return null==e[ho("0x32")]||1==e[ho("0x32")]&&null==e[ho("0x2e")]?n:void 0})),this[ho("0x31")][ho("0xa")][ho("0x34")].registerPostFixer((t=>{if(t[ho("0x37")].isUndo)return!1;let n=!1;const r=e[ho("0x29")]({skipNotAttached:!0})[ho("0x1e")]((t=>{const n=e[ho("0x1c")](t);return"listStart"==n||"listReversed"==n}));for(const i of r)"numbered"!=i.getFirstRange().start[ho("0x7")][ho("0x17")](ho("0x20"))&&(e[ho("0x3e")](i.getFirstRange(),ho("0x10"))[ho("0x2a")]((t=>"listType"==e._getAttributeKey(t[ho("0x2f")])))||(t[ho("0xf")](i[ho("0x12")]()),n=!0));return n})),this._registerLegacyDescription()}[ho("0xe")](t){const e=this[ho("0x31")][ho("0x40")],{data:n}=t,r={type:ho("0x21"),content:""};if(!n||ho("0x9")!=n.key)return;if(!n[ho("0x2e")])return"default"==n[ho("0x32")]?r:{type:"format",content:""+Jr(e,"*Set format:* %0",Jr(e,this[ho("0x2d")](n[ho("0x32")])))};if(!n[ho("0x32")]){if(ho("0x5")==n[ho("0x2e")])return r;let i=t[ho("0xb")];for(;i;){if(i[ho("0x1f")]&&ho("0x20")==i.data[ho("0x33")]&&i[ho("0x1f")][ho("0x32")])return r;i=i.next}return{type:ho("0x21"),content:""+Jr(e,ho("0x35"),Jr(e,this[ho("0x2d")](n[ho("0x2e")])))}}if(ho("0x5")!=n.newValue)return{type:ho("0x21"),content:""+Jr(e,ho("0x19"),Jr(e,this[ho("0x2d")](n[ho("0x32")])))};let i=t[ho("0xb")];for(;i;){if(i[ho("0x1f")]&&"listType"==i[ho("0x1f")].key&&i[ho("0x1f")][ho("0x32")]&&i[ho("0x1f")][ho("0x2e")])return r;i=i.next}const o=t[ho("0x16")]()[ho("0xd")].nodeAfter[ho("0x17")](ho("0x20"));return{type:ho("0x21"),content:Jr(e,ho("0x19"),Jr(e,"ELEMENT_"+o[ho("0x18")]()+ho("0x23")))}}[ho("0x26")](){const t=this[ho("0x31")],e=t[ho("0x40")];t.plugins.get(ho("0x1d"))[ho("0x15")][ho("0x28")]((t=>{if(ho("0x41")!=t[ho("0x8")])return;const{data:n}=t;if(!n)return;let r,i;switch(n.commandName){case ho("0x9"):r="*Change to:* %0",i={type:ho("0x21"),content:Jr(e,r,Jr(e,this._getTranslationKeyForListStyle(n.commandParams[0][ho("0x8")])))};break;case ho("0x42"):r=n.commandParams[0][ho("0x3d")]?"*Format:* set order to reversed":ho("0x36"),i={type:"format",content:Jr(e,r)};break;case"listStart":r=ho("0x13"),i={type:ho("0x21"),content:Jr(e,r,n[ho("0x1a")][0][ho("0x14")])}}return i}))}[ho("0x2d")](t){return ho("0x0")+(e=t,po[ho("0x2c")](e)?ho("0x1b"):bo[ho("0x2c")](e)?"numbered":null)[ho("0x18")]()+ho("0x4")+t[ho("0x18")]()[ho("0x2b")](/-/g,"_");var e}}const po=[ho("0x30"),"circle",ho("0x1")],bo=["decimal",ho("0x2"),"lower-roman",ho("0x3c"),ho("0xc"),ho("0x3a")];var Eo=n(976);const _o=["nextSibling","document","enter","hasClass","afterExecute","commands","init","markerName","writer","markInsertion","showSuggestionHighlights","plugins","model","markerNameToElements","get","editor","enterBlock","addMarker:suggestion:insertion","data","split","mapper","fire","options","fromRange","createRange","createPositionAt","TrackChangesEditing","unbindElementFromMarkerName","high","remove","downcastDispatcher","enableCommand","getFirstRange","end","editing","selection","detach","change","getFirstPosition"];var To,yo;To=_o,yo=367,function(t){for(;--t;)To.push(To.shift())}(++yo);const Co=function(t,e){return _o[t-=0]};class Ao extends t.Plugin{static get requires(){return[Eo.Enter]}[Co("0x1d")](){const t=this[Co("0x26")],e=t[Co("0x22")].get(Co("0xa")),n=t[Co("0x1c")][Co("0x25")](Co("0x19"));e[Co("0xf")](Co("0x19"),(()=>{t[Co("0x23")][Co("0x15")]((r=>{const i=t[Co("0x23")][Co("0x18")][Co("0x13")],o=i[Co("0x16")](),x=s.LiveRange[Co("0x7")](i[Co("0x10")]());if(n[Co("0x0")](r)){const n=t[Co("0x23")][Co("0x9")](o.parent[Co("0x17")],0),i=r[Co("0x8")](o,n);e[Co("0x20")](i)}else r.setSelection(r.createRange(x[Co("0x11")]));x[Co("0x14")](),n[Co("0x5")](Co("0x1b"),{writer:r})}))})),t[Co("0x12")][Co("0xe")].on(Co("0x1"),Qi(t,Co("0x3")),{priority:Co("0xc")}),t[Co("0x12")][Co("0xe")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const r=n[Co("0x4")][Co("0x24")](e[Co("0x1e")]);if(r)for(const t of r)t[Co("0x1a")]("ck-suggestion-marker-split")&&(n[Co("0x4")][Co("0xb")](t,e[Co("0x1e")]),n[Co("0x1f")][Co("0xd")](t))}),{priority:Co("0xc")}),t[Co("0x2")][Co("0xe")].on(Co("0x1"),((e,n,r)=>{r[Co("0x6")][Co("0x21")]&&Qi(t,Co("0x3"),{showActiveMarker:!1}).bind(this)(e,n,r)}),{priority:Co("0xc")})}}const ko=["TrackChangesEditing","plugins","model","string","createRange","has","createPositionAt","findByTextCallback","get","find","handleFindCommand","filter","end","replace","enableCommand","item","editor","findPrevious","_isInDeletionRange","bind"];var Io,Ro;Io=ko,Ro=418,function(t){for(;--t;)Io.push(Io.shift())}(++Ro);const So=function(t,e){return ko[t-=0]};class vo extends t.Plugin{afterInit(){if(!this[So("0x12")][So("0x3")][So("0x7")]("FindAndReplaceEditing"))return;const t=this.editor[So("0x3")][So("0xa")](So("0x2"));t[So("0x10")](So("0xb"),this.handleFindCommand[So("0x1")](this)),t[So("0x10")]("findNext"),t.enableCommand(So("0x13")),t[So("0x10")](So("0xf")),t[So("0x10")]("replaceAll")}[So("0xc")](t,e,n={}){const r=this[So("0x12")][So("0x3")][So("0xa")]("FindAndReplaceUtils");return t((t=>(So("0x5")==typeof e?r[So("0x9")](e,n):e)(t)[So("0xd")]((e=>!1===this[So("0x0")](e,t[So("0x11")])))),n)}_isInDeletionRange(t,e){const n=this[So("0x12")][So("0x4")][So("0x6")](this[So("0x12")][So("0x4")][So("0x8")](e,t.start),this[So("0x12")][So("0x4")][So("0x8")](e,t[So("0xe")]));for(const t of this[So("0x12")][So("0x4")].markers.getMarkersGroup("suggestion:deletion"))if(null!==n.getIntersection(t.getRange()))return!0;return!1}}const No=["toLowerCase","normalizeSizeOptions","FORMAT_FONT_FAMILY","FORMAT_FONT_COLOR","FontSize","*Reset font size*","fontColor.colors","*Set font family:* %0","*Reset font background color*","_enableDefaultAttributesIntegration","_registerLegacyDescription","formatInline","has","fontBackgroundColor","_descriptionFactory","*Set font color:* %0","*Reset font color*","registerAttributeLabel","fontBackgroundColor.colors","*Reset font family*","FontFamilyEditing","locale","*Set font size:* %0","fontFamily","editor","registerDescriptionCallback","commandName","commandParams","fontColor","fontSize.options","trim","value","FontBackgroundColorEditing","format","config","FontSizeEditing","label","fontSize","find","plugins","get","title","*Set font background color:* %0","afterInit","type","TrackChangesEditing","model","FORMAT_FONT_BACKGROUND"];var Lo,Mo;Lo=No,Mo=288,function(t){for(;--t;)Lo.push(Lo.shift())}(++Mo);const wo=function(t,e){return No[t-=0]},Oo=[{pluginName:wo("0x23"),commandName:wo("0x25")},{pluginName:wo("0x14"),commandName:wo("0x17")},{pluginName:"FontColorEditing",commandName:wo("0x1c")},{pluginName:wo("0x20"),commandName:wo("0xd")}];class Fo extends t.Plugin{[wo("0x2b")](){const t=this[wo("0x18")][wo("0x15")],e=this[wo("0x18")].plugins.get(wo("0x2d"));for(const{pluginName:t,commandName:n}of Oo)this[wo("0x18")][wo("0x27")][wo("0xc")](t)&&e[wo("0x9")](n,[n]);t.t,e[wo("0xe")][wo("0x11")](wo("0x25"),Jr(t,"FORMAT_FONT_SIZE")),e[wo("0xe")][wo("0x11")](wo("0x17"),Jr(t,wo("0x2"))),e[wo("0xe")][wo("0x11")]("fontColor",Jr(t,wo("0x3"))),e._descriptionFactory[wo("0x11")](wo("0xd"),Jr(t,wo("0x2f"))),this[wo("0xa")]()}[wo("0xa")](){const t=this[wo("0x18")],e=t[wo("0x15")];t.plugins[wo("0x28")](wo("0x2d"))[wo("0xe")][wo("0x19")]((t=>{const n=e.t;if(wo("0xb")!=t[wo("0x2c")])return;const{data:r}=t;if(null!=r){if(wo("0x25")==r[wo("0x1a")]){const t=r[wo("0x1b")][0].value;if(t){const r=n(this.editor[wo("0x27")][wo("0x28")](wo("0x4"))[wo("0x1")](this[wo("0x18")].config[wo("0x28")](wo("0x1d")))[wo("0x26")]((e=>e[wo("0x2e")]==t))[wo("0x29")])[wo("0x0")]();return{type:wo("0x21"),content:Jr(e,wo("0x16"),r)}}return{type:wo("0x21"),content:Jr(e,wo("0x5"))}}if("fontFamily"==r[wo("0x1a")]){const t=r[wo("0x1b")][0][wo("0x1f")];return t?{type:wo("0x21"),content:Jr(e,wo("0x7"),t)}:{type:wo("0x21"),content:Jr(e,wo("0x13"))}}if("fontColor"==r[wo("0x1a")]){const t=r.commandParams[0][wo("0x1f")];if(t){const r=(0,i.normalizeColorOptions)(this.editor.config[wo("0x28")](wo("0x6"))).find((e=>e[wo("0x2e")]==t));let o=t,s="";return r&&(o=r[wo("0x24")],s=n(o)[wo("0x0")]()),{type:"format",content:Jr(e,wo("0xf"),s)[wo("0x1e")](),color:{value:t,title:s||o}}}return{type:wo("0x21"),content:Jr(e,wo("0x10"))}}if("fontBackgroundColor"==r[wo("0x1a")]){const t=r[wo("0x1b")][0].value;if(t){const r=(0,i.normalizeColorOptions)(this.editor[wo("0x22")].get(wo("0x12")))[wo("0x26")]((e=>e[wo("0x2e")]==t));let o=t,s="";return r&&(o=r[wo("0x24")],s=n(o).toLowerCase()),{type:wo("0x21"),content:Jr(e,wo("0x2a"),s)[wo("0x1e")](),color:{value:t,title:s||o}}}return{type:wo("0x21"),content:Jr(e,wo("0x8"))}}}}))}}const Do=["charAt","toLowerCase","_registerLegacyDescription","label","normalizeSizeOptions","boolean","pasteFormat","slice","find","type","afterInit","fontColor","_descriptionFactory","commandName","commandParams","*Set format to:* %0","formatInline","get","FontSize","join","locale","length","push","fontColor.colors","toUpperCase","registerDescriptionCallback","fontSize","copyFormat","plugins","enableCommand","title","model","split","editor","TrackChangesEditing","config","format","commands","*Remove all formatting*"];var Po,Bo;Po=Do,Bo=488,function(t){for(;--t;)Po.push(Po.shift())}(++Bo);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{[Uo("0x1d")](){const t=this[Uo("0xd")],e=t[Uo("0x8")][Uo("0x24")](Uo("0xe")),n=t.commands[Uo("0x24")](Uo("0x7")),r=t[Uo("0x11")][Uo("0x24")](Uo("0x19"));n&&r&&(e._enableDefaultAttributesIntegration(Uo("0x19")),e[Uo("0x9")]("copyFormat"),this[Uo("0x15")]())}[Uo("0x15")](){const t=this[Uo("0xd")],e=t[Uo("0x0")];t.plugins[Uo("0x24")]("TrackChangesEditing")[Uo("0x1f")][Uo("0x5")]((n=>{if("formatBlock"!=n[Uo("0x1c")]&&Uo("0x23")!=n[Uo("0x1c")])return;const{data:r}=n;if(r&&"pasteFormat"===r[Uo("0x20")]){const n=[],i=r[Uo("0x21")][0];for(const[e,r]of Object.entries(i))n[Uo("0x2")](Go(t,e,r));return n[Uo("0x1")]?{type:Uo("0x10"),content:Jr(e,Uo("0x22"),n.join(", "))}:{type:Uo("0x10"),content:Jr(e,Uo("0x12"))}}}))}}function Go(t,e,n){const r=t.locale.t,o=e[Uo("0xc")](/(?=[A-Z])/)[Uo("0x26")](" "),s=r(o[Uo("0x13")](0)[Uo("0x4")]()+o[Uo("0x1a")](1)).toLowerCase();if(Uo("0x18")==typeof n)return s;if(Uo("0x1e")===e||"fontBackgroundColor"===e){const e=(0,i.normalizeColorOptions)(t[Uo("0xf")][Uo("0x24")](Uo("0x3")))[Uo("0x1b")]((t=>t[Uo("0xb")]==n));return s+" ("+(e?r(e[Uo("0x16")])[Uo("0x14")]():n)+")"}if(Uo("0x6")===e&&isNaN(parseFloat(n))){const e=t[Uo("0x8")][Uo("0x24")](Uo("0x25"))[Uo("0x17")](t.config[Uo("0x24")]("fontSize.options"))[Uo("0x1b")]((t=>t.model==n));return s+" ("+(e?r(e[Uo("0xa")])[Uo("0x14")]():n)+")"}return s+" ("+n+")"}const Vo=["ELEMENT_HEADING_CUSTOM","heading.options","ELEMENT_HEADING","heading","plugins","model","format","title","view","TrackChangesEditing","*Change to:* %0","registerElementLabel","_enableDefaultAttributesIntegration","get","has","value","name","HeadingEditing","config","match","_descriptionFactory","commandName","_registerLegacyDescription","_headingOptions","afterInit","paragraph","_getHeadingLevel","locale","editor","find","type"];var Ho,zo;Ho=Vo,zo=103,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{[Wo("0xe")](){const t=this[Wo("0x12")];if(!t[Wo("0x19")][Wo("0x4")](Wo("0x7")))return;this[Wo("0xd")]=t[Wo("0x8")][Wo("0x3")](Wo("0x16"));const e=t[Wo("0x11")],n=t[Wo("0x19")][Wo("0x3")](Wo("0x1e"));n[Wo("0x2")](Wo("0x18"));for(const t of this[Wo("0xd")])Wo("0xf")!=t[Wo("0x1a")]&&n._descriptionFactory[Wo("0x1")](t[Wo("0x1a")],(n=>{const r=this[Wo("0x10")](t[Wo("0x1a")]);return null!==r?(s=n,x=r,Jr(e,Wo("0x17"),[s,x])):(i=n,o=t[Wo("0x1c")],Jr(e,"ELEMENT_HEADING_CUSTOM",[i,o]));var i,o,s,x}));this[Wo("0xc")]()}[Wo("0xc")](){const t=this[Wo("0x12")],e=t[Wo("0x11")];t.plugins.get(Wo("0x1e"))[Wo("0xa")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Wo("0x14")])return;const{data:n}=t;if(n&&Wo("0x18")==n[Wo("0xb")]){const t=n.commandParams[0][Wo("0x5")],s=this._getHeadingLevel(t);if(null!==s)return{type:Wo("0x1b"),content:Jr(e,Wo("0x0"),(1,o=s,Jr(e,"ELEMENT_HEADING",[1,o])))};const x=this._headingOptions[Wo("0x13")]((e=>e[Wo("0x1a")]===t)).title;return{type:Wo("0x1b"),content:Jr(e,Wo("0x0"),(r=1,i=x,Jr(e,Wo("0x15"),[r,i])))}}var r,i,o}))}_getHeadingLevel(t){var e,n;const r=t[Wo("0x9")](/^heading(\d+)/);if(r)return r[1];const i=null===(e=this[Wo("0xd")])||void 0===e?void 0:e[Wo("0x13")]((e=>e[Wo("0x1a")]==t));if(i&&i[Wo("0x1d")]){const t=i[Wo("0x1d")],e=(null!==(n=t[Wo("0x6")])&&void 0!==n?n:t)[Wo("0x9")](/^h(\d+)/);if(e)return e[1]}return null}}const qo=["color","registerDescriptionCallback","editor","HighlightEditing","toLowerCase","format","_registerLegacyDescription","highlight","commandName","plugins","*Set highlight:* %0","registerAttributeLabel","get","type","highlight.options","title","config","has","FORMAT_HIGHLIGHT","model","_descriptionFactory","value","TrackChangesEditing","formatInline","commandParams","afterInit"];var Xo,$o;Xo=qo,$o=411,function(t){for(;--t;)Xo.push(Xo.shift())}(++$o);const Zo=function(t,e){return qo[t-=0]};class Yo extends t.Plugin{[Zo("0x4")](){const t=this[Zo("0x7")];if(!t[Zo("0xe")][Zo("0x16")](Zo("0x8")))return;const e=t[Zo("0xe")][Zo("0x11")](Zo("0x1")),n=t.locale;e._enableDefaultAttributesIntegration(Zo("0xc"),[Zo("0xc")]),e._descriptionFactory[Zo("0x10")](Zo("0xc"),Jr(n,Zo("0x17"))),this[Zo("0xb")]()}[Zo("0xb")](){const t=this[Zo("0x7")],e=t.locale;t[Zo("0xe")].get("TrackChangesEditing")[Zo("0x19")][Zo("0x6")]((n=>{if(Zo("0x2")!=n[Zo("0x12")])return;const{data:r}=n;if(r&&Zo("0xc")==r[Zo("0xd")]){const n=e.t,i=r[Zo("0x3")][0][Zo("0x0")];if(i){const r=t[Zo("0x15")].get(Zo("0x13")).find((t=>t[Zo("0x18")]==i)),o=n(r[Zo("0x14")])[Zo("0x9")]();return{type:Zo("0xa"),content:Jr(e,Zo("0xf"),o),color:{value:r[Zo("0x5")],title:r[Zo("0x14")]}}}return{type:"format",content:Jr(e,"*Remove highlight*",Jr(e,Zo("0x17")))}}}))}}const Jo=["editor","high","enableCommand","createPositionAt","plugins","horizontalLine","registerElementLabel","afterInit","for","_descriptionFactory","elementToStructure","get","TrackChangesEditing","has","ck-horizontal-line","dataDowncast","createContainerElement"];var Qo,ts;Qo=Jo,ts=403,function(t){for(;--t;)Qo.push(Qo.shift())}(++ts);const es=function(t,e){return Jo[t-=0]};class ns extends t.Plugin{[es("0xc")](){const t=this[es("0x5")];if(!t.plugins[es("0x1")]("HorizontalLineEditing"))return;t.plugins[es("0x10")](es("0x0"))[es("0x7")](es("0xa"));const e=t[es("0x9")].get(es("0x0")),n=t.locale;e[es("0xe")][es("0xb")](es("0xa"),(t=>Jr(n,"ELEMENT_HORIZONTAL_LINE",t))),t.conversion[es("0xd")](es("0x3"))[es("0xf")]({model:es("0xa"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const r=e[es("0x4")]("div"),i=e.createEmptyElement("hr");return e.addClass(es("0x2"),r),e.insert(e[es("0x8")](r,0),i),r},converterPriority:es("0x6")})}}const rs=["afterInit","_descriptionFactory","editor","*Change %0 content*","_registerLegacyDescription","TrackChangesEditing","getFirstRange","ELEMENT_HTML_EMBED","plugins","registerDescriptionCallback","rawHtml","htmlEmbed","element","locale","nodeAfter","attribute","formatBlock","registerElementLabel","HtmlEmbed","key","value","format","has","type"];var is,os;is=rs,os=384,function(t){for(;--t;)is.push(is.shift())}(++os);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{[ss("0x0")](){const t=this[ss("0x2")];if(!t.plugins[ss("0x16")](ss("0x12")))return;const e=t[ss("0x8")].get("TrackChangesEditing"),n=t[ss("0xd")];e[ss("0x1")][ss("0x11")](ss("0xa"),(t=>Jr(n,ss("0x7"),t))),e._enableDefaultAttributesIntegration(ss("0xb"),[],["value"]),e._descriptionFactory[ss("0x9")]((t=>{if(ss("0xf")!=t[ss("0x17")])return;const{data:e}=t;if(e&&ss("0x14")==e[ss("0x13")]&&t[ss("0x6")]().start[ss("0xe")].is(ss("0xc"),"rawHtml")){const t=Jr(n,ss("0x7"));return{type:ss("0x15"),content:Jr(n,ss("0x3"),t)}}})),this[ss("0x4")]()}[ss("0x4")](){const t=this[ss("0x2")],e=t[ss("0xd")];t[ss("0x8")].get(ss("0x5"))[ss("0x1")][ss("0x9")]((t=>{if(ss("0x10")!=t[ss("0x17")])return;const{data:n}=t;if(n&&ss("0xb")==n.commandName){const t=Jr(e,"ELEMENT_HTML_EMBED");return{type:ss("0x15"),content:Jr(e,"*Change %0 content*",t)}}}))}}const as=["caption","ImageTextAlternativeEditing","get","chain","imageInline","ImageUploadEditing","document","markBlockFormat","uploadImage","getFirstRange","nodeBefore","join","type","forceDefaultExecution","backward","attribute","*Remove image text alternative*","accept","ELEMENT_CAPTION","registerAttributeLabel","enableCommand","nodeAfter","has","ImageBlockEditing","registerDescriptionCallback","newValue","subType","commandName","editor","alt","insertion","plugins","isCollapsed","end","commandParams","getSuggestionCallback","toggleImageCaption","imageStylePreApply","imageCaption","imageTextAlternative","findIndex","width","isBefore","markDeletion","formatBlock","convertBlockImageToInline","imageTypeInline","format","TrackChangesEditing","getNearestSelectionRange","start","_enableDefaultAttributesIntegration","ELEMENT_INLINE_IMAGE","find","resizeImage","*Reset image width*","convertInlineImageToBlock","isIntersecting","filter","_registerLegacyDescription","isBlockImage","imageBlock","selection","ImageCaptionEditing","*Set image width:* %0","discard","change","fromPosition","_suggestionFactory","locale","isEqual","toNext","ELEMENT_IMAGE","removeObject","registerElementLabel","createRangeOn","previous","afterInit","resizedWidth","createRange","deletion","element","length","registerCustomCallback","*Set image text alternative:* %0","model","Block image to inline image","getClosestSelectedImageElement","ImageEditing","imageTypeBlock","ImageUtils","_descriptionFactory","markInsertion"];var cs,ls;cs=as,ls=181,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{[us("0x52")](){const t=this.editor;if(!t[us("0x24")][us("0x1b")](us("0x0")))return;const e=t[us("0x24")][us("0x7")](us("0x35")),n=t.plugins.get(us("0x2")),r=t.locale;e[us("0x19")]("insertImage"),e[us("0x3")][us("0x4f")](us("0x42"),(t=>Jr(r,us("0x4d"),t))),e[us("0x3")].registerElementLabel(us("0x9"),(t=>Jr(r,us("0x39"),t))),e[us("0x3")][us("0x4f")](us("0x5"),(()=>Jr(r,us("0x17")))),t.plugins.has(us("0xa"))&&e[us("0x19")](us("0xd")),t.plugins[us("0x1b")](us("0x1c"))&&t[us("0x24")].has("ImageInlineEditing")&&(e[us("0x19")]("imageTypeInline",((r,i)=>{const o=n.getClosestSelectedImageElement(t[us("0x5a")].document[us("0x43")]);t[us("0x5a")][us("0x47")]((()=>{e[us("0xc")](o,{commandName:us("0x33"),commandParams:[i]},[],us("0x32"))}))})),e[us("0x19")](us("0x1"),((r,i)=>{t[us("0x5a")][us("0x47")]((o=>{let x=n[us("0x5c")](t[us("0x5a")][us("0xb")].selection),a=o[us("0x50")](x);const c=s.LivePosition[us("0x48")](a.start,"toPrevious"),l=s.LivePosition.fromPosition(a.end,us("0x4c"));e[us("0x12")]((()=>r(i))),x=n[us("0x5c")](t[us("0x5a")][us("0xb")].selection),a=o.createRangeOn(x);const u=o[us("0x54")](c,l);c.detach(),l.detach(),e[us("0xc")](x,{commandName:us("0x33"),commandParams:[i]},[],"convertInlineImageToBlock"),u.start.isBefore(a[us("0x37")])&&e.markInsertion(o[us("0x54")](u[us("0x37")],a[us("0x37")]),us("0x3d")),a[us("0x26")].isBefore(u[us("0x26")])&&e[us("0x4")](o[us("0x54")](a.end,u[us("0x26")]),us("0x3d"))}))})),e[us("0x49")][us("0x58")]("formatBlock",us("0x3d"),us("0x10"),(()=>!1)),e._suggestionFactory[us("0x58")]("formatBlock",us("0x3d"),"accept",(()=>!1)),e[us("0x49")][us("0x58")]("formatBlock",us("0x3d"),us("0x46"),e[us("0x49")][us("0x28")]("formatBlock","",us("0x16"))),e[us("0x49")][us("0x58")](us("0x23"),us("0x3d"),us("0x10"),(()=>!1)),e[us("0x49")][us("0x58")](us("0x23"),us("0x3d"),"discard",(([n])=>{const r=e._suggestionFactory[us("0x28")](us("0x23"),"",us("0x46"));let i=n.start,o=n[us("0x26")];const s=t[us("0x5a")].schema[us("0x36")](i,us("0x13")),x=t[us("0x5a")].schema[us("0x36")](o,"forward");s[us("0x25")]&&(i=s[us("0x37")]),x.isCollapsed&&(o=x[us("0x26")]),r([t.model[us("0x54")](i,o)])})),e[us("0x49")][us("0x58")]("formatBlock","convertInlineImageToBlock",us("0x8"),x),e[us("0x49")][us("0x58")](us("0x23"),us("0x3d"),us("0x8"),x)),t[us("0x24")].has(us("0x44"))&&(e[us("0x19")](us("0x29"),((r,i)=>{const o=t[us("0x24")][us("0x7")]("ImageCaptionUtils");let s=n[us("0x5c")](t[us("0x5a")].document[us("0x43")]),x=o.getCaptionFromImageModelElement(s);t.model[us("0x47")]((()=>{if(x)return void e[us("0x30")](t[us("0x5a")][us("0x50")](x));const a=n[us("0x41")](s);r(i),s=n[us("0x5c")](t.model[us("0xb")][us("0x43")]),x=o.getCaptionFromImageModelElement(s),e[us("0x4")](t.model.createRangeOn(x),a?null:us("0x2b"))}))})),e[us("0x49")][us("0x58")](us("0x23"),"imageCaption","chain",x));const i=[{type:us("0x31"),subType:us("0x2a")},{type:"insertion",subType:us("0x2b")},{type:us("0x31"),subType:us("0x3d")},{type:us("0x23"),subType:us("0x3d")}];function o(t,r){const o=i.findIndex((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=i[us("0x2d")]((({type:t,subType:e})=>r[us("0x11")]==t&&r[us("0x1f")]==e));if(o<0||s<0)return!1;const x=t.getFirstRange(),a=r[us("0xe")]();if((0==o||1==o)&&2==s&&x[us("0x3e")](a))return!0;if(2==o&&3==s){const t=e._findSuggestions(x,us("0x23"))[us("0x3f")]((({suggestion:t,meta:e})=>e.isOwn&&us("0x3d")==t[us("0x1f")]));if(t[us("0x57")]>1&&a.end.isEqual(x[us("0x37")]))return!0;if(1==t[us("0x57")]&&(x[us("0x37")][us("0x4b")](a[us("0x26")])||x[us("0x26")][us("0x4b")](a.start)))return!0}if(3==o&&3==s&&x[us("0x37")][us("0x2f")](a[us("0x37")])){const t=x.end[us("0x1a")],e=a[us("0x37")][us("0xf")];return n[us("0x41")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x24")][us("0x1b")]("ImageResize")&&(e._enableDefaultAttributesIntegration(us("0x3b"),[],[us("0x53")]),e[us("0x3")][us("0x18")](us("0x53"),Jr(r,"FORMAT_IMAGE_SIZE"))),t[us("0x24")][us("0x1b")](us("0x6"))&&e[us("0x38")](us("0x2c"),[],[us("0x22")]),e[us("0x3")][us("0x1d")]((t=>{if(i[us("0x3a")]((({type:e,subType:n})=>t.type==e&&t.subType==n)))return t[us("0x51")]?{}:void 0})),e[us("0x3")][us("0x1d")]((t=>{if(us("0x23")==t[us("0x11")]||us("0x55")==t.type){const e=t.getContainedElement();if(e&&e.is(us("0x56"),us("0x5")))return{type:us("0x23")==t.type?"addObject":us("0x4e"),element:e,quantity:1}}})),e[us("0x3")].registerDescriptionCallback((t=>"formatBlock"==t[us("0x11")]&&us("0x3d")==t[us("0x1f")]?{type:us("0x34"),content:"Inline image to block image"}:us("0x31")==t[us("0x11")]&&"convertBlockImageToInline"==t.subType?{type:us("0x34"),content:us("0x5b")}:void 0)),e[us("0x3")].registerDescriptionCallback((t=>{if(us("0x14")!=t[us("0x11")])return;const{data:e}=t;if(!e||us("0x22")!=e.key)return;const n=e.newValue;return n?{type:"format",content:Jr(r,"*Set image text alternative:* %0",'"'+n+'"')}:{type:us("0x34"),content:Jr(r,us("0x15"))}})),this[us("0x40")]()}[us("0x40")](){const t=this[us("0x21")],e=t[us("0x4a")];t[us("0x24")][us("0x7")](us("0x35"))[us("0x3")][us("0x1d")]((t=>{if("formatBlock"!=t[us("0x11")]&&"formatInline"!=t[us("0x11")])return;const{data:n}=t;if(n){if("imageTextAlternative"==n[us("0x20")]){const t=n[us("0x27")][0][us("0x1e")];return t?{type:us("0x34"),content:Jr(e,us("0x59"),'"'+t+'"')}:{type:"format",content:Jr(e,us("0x15"))}}if(us("0x3b")==n.commandName){const t=n.commandParams[0][us("0x2e")];return t?{type:"format",content:Jr(e,us("0x45"),t)}:{type:"format",content:Jr(e,us("0x3c"))}}}}))}}const gs=["getSuggestionCallback","afterInit","has","discard","type","formatBlock","formatInline","ImageEditing","*Replace image URL*","_registerLegacyDescription","accept","registerDescriptionCallback","src","replaceImageSource","plugins","oldValue","key","editor","TrackChangesEditing","_descriptionFactory","_suggestionFactory","_enableDefaultAttributesIntegration","_handleLegacySuggestions","*Format:* replace image URL","locale","get","format","registerCustomCallback"];var fs,hs;fs=gs,hs=277,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{[ms("0x4")](){if(!this[ms("0x14")][ms("0x11")][ms("0x5")](ms("0xa")))return;const t=this[ms("0x14")][ms("0x1b")],e=this.editor[ms("0x11")][ms("0x0")](ms("0x15"));e[ms("0x18")](ms("0x10"),[],[ms("0xf")]),e[ms("0x16")][ms("0xe")]((e=>{if("attribute"!=e[ms("0x7")])return;const{data:n}=e;return n&&ms("0xf")==n[ms("0x13")]?n.newValue&&n[ms("0x12")]?{type:"format",content:Jr(t,ms("0xb"))}:{type:ms("0x1"),content:""}:void 0})),this[ms("0x19")]()}_handleLegacySuggestions(){const t=this[ms("0x14")][ms("0x11")].get(ms("0x15"));t[ms("0x17")][ms("0x2")](ms("0x8"),ms("0x10"),ms("0xd"),t._suggestionFactory.getSuggestionCallback(ms("0x8"),null,ms("0x6"))),t._suggestionFactory[ms("0x2")](ms("0x8"),"replaceImageSource","discard",t[ms("0x17")][ms("0x3")]("formatBlock",null,ms("0xd"))),this._registerLegacyDescription()}[ms("0xc")](){const t=this[ms("0x14")],e=t[ms("0x1b")];t[ms("0x11")][ms("0x0")](ms("0x15"))[ms("0x16")][ms("0xe")]((t=>{if(ms("0x8")!=t[ms("0x7")]&&ms("0x9")!=t[ms("0x7")])return;const{data:n}=t;return n&&ms("0x10")==n.commandName?{type:ms("0x1"),content:Jr(e,ms("0x1a"))}:void 0}))}}const bs=["commands","imageTypeBlock","suggestion","registerPostFixer","imageStyle","imageStylePostApply","afterInit","name","refresh","imageTypeInline","get","join","plugins","getContainedElement","findIndex","isBlockImage","model","convertInlineImageToBlock","length","getFirstRange","isOwn","registerDescriptionCallback","author","isInlineImage","value","newRange","FORMAT_SIDE_IMAGE","document","getClosestSelectedImageElement","isInContent","filter","nodeBefore","next","TrackChangesEditing","formatInline","markBlockFormat","_descriptionFactory","registerCustomCallback","_registerLegacyDescription","commandReversedParams","getSuggestions","editor","discard","commandName","isBefore","title","chain","imageStylePreApply","selection","discardSuggestion","getSuggestionCallback","getSuggestion","imageCaption","change","commandParams","accept","locale","setImageNaturalSizeAttributes","formatBlock","side","_suggestionFactory","shouldConvertImageType","nodeAfter","enableCommand","markInlineFormat","type","ImageUtils","start","_findSuggestions","differ","subType","*Format:* %0","isEqual","isIntersecting","insertion","end","ImageStyleEditing"];var Es,_s;Es=bs,_s=487,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{[Ts("0x3a")](){const t=this[Ts("0x10")];if(!t.plugins.has(Ts("0x33")))return;const n=t[Ts("0x40")][Ts("0x3e")](Ts("0x8")),r=t[Ts("0x40")].get(Ts("0x29")),i={};n[Ts("0x26")](Ts("0x38"),((i,o)=>{const s=t.plugins[Ts("0x3e")]("Users").me,x=t.commands[Ts("0x3e")](Ts("0x38"));let a=r[Ts("0x3")](t[Ts("0x44")][Ts("0x2")][Ts("0x17")]),c=t[Ts("0x44")].createRangeOn(a),l=x[Ts("0x4c")];if(l==o[Ts("0x4c")])return;const u={commandName:Ts("0x38"),commandParams:[o],formatGroupId:(0,e.uid)()};t[Ts("0x44")][Ts("0x1c")]((()=>{if(n[Ts("0xf")]()[Ts("0x5")]((t=>t[Ts("0x4")]&&s==t[Ts("0x4a")]&&(Ts("0x21")==t[Ts("0x28")]||"formatInline"==t[Ts("0x28")])&&("imageStylePreApply"==t[Ts("0x2d")]||Ts("0x39")==t[Ts("0x2d")])&&t[Ts("0x47")]()[Ts("0x2f")](c))).forEach((t=>n.discardSuggestion(t.head))),a=r[Ts("0x3")](t[Ts("0x44")].document.selection),c=t[Ts("0x44")].createRangeOn(a),x[Ts("0x3c")](),t[Ts("0x34")][Ts("0x3e")](Ts("0x3d")).refresh(),t.commands[Ts("0x3e")](Ts("0x35"))[Ts("0x3c")](),l=x[Ts("0x4c")],l!=o.value)return r[Ts("0x4b")](a)&&x[Ts("0x24")](o[Ts("0x4c")],a)?(i({...o,setImageSizes:!1}),a=r[Ts("0x3")](t[Ts("0x44")].document.selection),void n[Ts("0xa")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(r[Ts("0x43")](a)?n[Ts("0xa")](a,u,[],Ts("0x39")):n[Ts("0x27")](c,u,Ts("0x39")))}))}));for(const e of t[Ts("0x40")][Ts("0x3e")](Ts("0x33")).normalizedStyles)i[e[Ts("0x3b")]]=e[Ts("0x14")].toLowerCase();n._suggestionFactory.registerCustomCallback(Ts("0x21"),Ts("0x16"),"join",(()=>!1)),n[Ts("0x23")].registerCustomCallback("formatBlock","imageStylePostApply",Ts("0x3f"),(()=>!1)),n[Ts("0x23")][Ts("0xc")]("formatInline","imageStylePostApply",Ts("0x3f"),(()=>!1)),n[Ts("0x23")][Ts("0xc")]("formatBlock","imageStylePreApply",Ts("0x1e"),(([t])=>{r[Ts("0x20")](t[Ts("0x41")]())})),n[Ts("0x23")][Ts("0xc")](Ts("0x21"),Ts("0x16"),Ts("0x11"),((t,e)=>{n._suggestionFactory[Ts("0x19")](Ts("0x21"),"",Ts("0x1e"))(t,{commandName:e[Ts("0x12")],commandParams:e[Ts("0xe")]})})),n._suggestionFactory[Ts("0xc")]("formatBlock","imageStylePreApply",Ts("0x15"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0x21"),subType:Ts("0x16")},{type:"insertion",subType:"imageCaption"},{type:"formatBlock",subType:Ts("0x45")},{type:Ts("0x31"),subType:Ts("0x45")}];function s(t,e){const i=o[Ts("0x42")]((({type:e,subType:n})=>t[Ts("0x28")]==e&&t[Ts("0x2d")]==n)),s=o.findIndex((({type:t,subType:n})=>e[Ts("0x28")]==t&&e.subType==n));if(i<0||s<0)return!1;const x=t.getFirstRange(),a=e[Ts("0x47")]();if((0==i||1==i)&&2==s&&x[Ts("0x30")](a))return!0;if(2==i&&3==s){const t=n[Ts("0x2b")](x,"insertion").filter((({suggestion:t,meta:e})=>e[Ts("0x48")]&&Ts("0x45")==t[Ts("0x2d")]));if(t[Ts("0x46")]>1&&a.end.isEqual(x[Ts("0x2a")]))return!0;if(1==t.length&&(x[Ts("0x2a")][Ts("0x2f")](a[Ts("0x32")])||x[Ts("0x32")][Ts("0x2f")](a.start)))return!0}if(3==i&&3==s&&x.start[Ts("0x13")](a[Ts("0x2a")])){const t=x[Ts("0x32")][Ts("0x25")],e=a[Ts("0x2a")][Ts("0x6")];return r.isBlockImage(t)&&t===e}return!1}t[Ts("0x44")][Ts("0x2")][Ts("0x37")]((()=>{let e=!1;const i=Array.from(t[Ts("0x44")][Ts("0x2")][Ts("0x2c")].getChangedMarkers());for(const{name:t,data:o}of i){const{group:i,type:s,subType:x,id:a}=n._splitMarkerName(t);if(Ts("0x36")==i&&n.hasSuggestion(a)){if("formatBlock"==s&&(Ts("0x16")==x||"imageStylePostApply"==x)){const t=n[Ts("0x1a")](a);if(o[Ts("0x0")]){const i=t[Ts("0x47")]()[Ts("0x41")]();if(r.isBlockImage(i))continue;n[Ts("0x18")](t),e=!0}}if(Ts("0x31")==s&&Ts("0x1b")==x&&!o[Ts("0x0")]){const t=n[Ts("0x1a")](a);t.next&&t[Ts("0x7")].isInContent&&(n[Ts("0x18")](t.next),e=!0)}}}return e})),this[Ts("0xd")](i)}[Ts("0xd")](t){const e=this[Ts("0x10")],n=e[Ts("0x1f")];e[Ts("0x40")].get(Ts("0x8"))[Ts("0xb")][Ts("0x49")]((e=>{if("formatBlock"!=e[Ts("0x28")]&&Ts("0x9")!=e[Ts("0x28")])return;const{data:r}=e;if(!r||Ts("0x38")!=r[Ts("0x12")])return;const i=r[Ts("0x1d")][0][Ts("0x4c")];return o=Ts("0x22")===i?Jr(n,Ts("0x1")):t[i]||i,{type:"format",content:Jr(n,Ts("0x2e"),o)};var o}))}}const Cs=["value","track_changes","lowest","plugins","listenTo","Users","get","dataInsert","execute","commands","_trackChangesExecuted","_trackChangesValueDuringImport","trackChanges","enableCommand","importWord","afterInit","TrackChangesEditing","collaboration_features","editor","_handleImportedData","high"];var As,ks;As=Cs,ks=415,function(t){for(;--t;)As.push(As.shift())}(++ks);const Is=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{constructor(t){super(t),this[Is("0x10")]=!1,this._trackChangesExecuted=!1}[Is("0x14")](){const t=this[Is("0x2")],e=t[Is("0xe")].get(Is("0x13")),n=t[Is("0xe")][Is("0xb")](Is("0x11"));e&&(e.on("execute",((t,[,e])=>{this[Is("0x10")]=n[Is("0x5")],e[Is("0x1")][Is("0x6")]=!this[Is("0x10")]}),{priority:Is("0x4")}),this[Is("0x9")](e,"dataInsert",this._handleImportedData.bind(this)),this[Is("0x9")](e,Is("0xc"),(()=>{this[Is("0xf")]&&(n[Is("0xd")](),this[Is("0xf")]=!1)}),{priority:Is("0x7")}),t.plugins[Is("0xb")](Is("0x0"))[Is("0x12")](Is("0x13")))}[Is("0x3")](t,e){const{suggestions:n}=e,r=this[Is("0x2")].commands[Is("0xb")](Is("0x11")),i=r[Is("0x5")];this[Is("0x10")]!==i&&(r[Is("0xd")](),this[Is("0xf")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:r})=>{const i={id:t,type:e,authorId:this[Is("0x2")][Is("0x8")].get(Is("0xa")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:"importWord"}}};this[Is("0x2")][Is("0x8")].get(Is("0x0"))._setSuggestionData(i)}))}}const Ss=["formatBlock","_registerBlockAttribute","editor","plugins","indent","registerDescriptionCallback","_enableDefaultAttributesIntegration","getItemLabel","outdent","_descriptionFactory","outdentBlock","indentBlock","locale","commandName","type","getItems","FORMAT_INDENT","get","has","TrackChangesEditing","format","IndentEditing","IndentBlock","*Indent:* %0","enableCommand","registerAttributeLabel","*Outdent:* %0","_registerLegacyDescription","blockIndent"];var vs,Ns;vs=Ss,Ns=463,function(t){for(;--t;)vs.push(vs.shift())}(++Ns);const Ls=function(t,e){return Ss[t-=0]};class Ms extends t.Plugin{afterInit(){const t=this[Ls("0x3")],e=t[Ls("0x4")][Ls("0x12")]("TrackChangesEditing");if(t.plugins[Ls("0x13")](Ls("0x16"))&&(e[Ls("0x19")](Ls("0x5")),e.enableCommand(Ls("0x9"))),t[Ls("0x4")][Ls("0x13")](Ls("0x17")))for(const t of[Ls("0xc"),"outdentBlock"])e[Ls("0x7")](t);const n=t.locale;e[Ls("0x2")]("blockIndent"),e[Ls("0xa")][Ls("0x1a")](Ls("0x0"),Jr(n,Ls("0x11"))),this[Ls("0x1c")]()}_registerLegacyDescription(){const t=this.editor,e=t[Ls("0xd")],n=t.plugins.get(Ls("0x14"));n[Ls("0xa")][Ls("0x6")]((t=>{if(Ls("0x1")!=t[Ls("0xf")])return;const{data:r}=t;if(!r)return;if(Ls("0xc")!=r[Ls("0xe")]&&Ls("0xb")!=r[Ls("0xe")])return;const i=t[Ls("0x10")]()[0],o=n._descriptionFactory[Ls("0x8")](i);return Ls("0xc")==r[Ls("0xe")]?{type:Ls("0x15"),content:Jr(e,Ls("0x18"),o)}:Ls("0xb")==r[Ls("0xe")]?{type:Ls("0x15"),content:Jr(e,Ls("0x1b"),o)}:void 0}))}}var ws,Os,Fs=["init","editor","plugins","input","enableCommand","get"];ws=Fs,Os=407,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Ps extends t.Plugin{static get requires(){return[qi.Input]}[Ds("0x1")](){this[Ds("0x2")][Ds("0x3")][Ds("0x0")]("TrackChangesEditing")[Ds("0x5")](Ds("0x4"))}}const Bs=["type","commandName","_registerLegacyDescription","_enableDefaultAttributesIntegration","*Set link:* %0","TrackChangesEditing","commandParams","newValue","plugins","map","afterInit","format","link","label","commands","has","linkHref","get","key","unlink","LinkEditing","*Remove link*","registerAttributeLabel","_descriptionFactory","link (","attribute","locale"];var Us,js;Us=Bs,js=108,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Bs[t-=0]};class Vs extends t.Plugin{[Gs("0xa")](){const t=this.editor;if(!t[Gs("0x8")][Gs("0xf")](Gs("0x14")))return;const e=t.plugins[Gs("0x11")](Gs("0x5")),n=t[Gs("0xe")].get(Gs("0xc"));e[Gs("0x3")]("link",[Gs("0x10"),...n.manualDecorators[Gs("0x9")]((t=>t.id))]),e[Gs("0x3")](Gs("0x13"));for(const t of n.manualDecorators)e[Gs("0x17")][Gs("0x16")](t.id,Gs("0x18")+t[Gs("0xd")].toLowerCase()+")");e[Gs("0x17")].registerDescriptionCallback((e=>{if(Gs("0x19")!=e[Gs("0x0")])return;const{data:n}=e;if(!n||"linkHref"!=n[Gs("0x12")])return;const r=n[Gs("0x7")],i=t[Gs("0x1a")];return{type:Gs("0xb"),content:null==r?Jr(i,Gs("0x15")):Jr(i,Gs("0x4"),'"'+r+'"')}})),this[Gs("0x2")]()}_registerLegacyDescription(){const t=this.editor,e=t.locale;t.plugins[Gs("0x11")](Gs("0x5"))._descriptionFactory.registerDescriptionCallback((t=>{if("formatInline"!=t.type)return;const{data:n}=t;if(n){if(Gs("0xc")==n[Gs("0x1")]){const t=n[Gs("0x6")][0];return{type:Gs("0xb"),content:Jr(e,Gs("0x4"),'"'+t+'"')}}return"unlink"==n.commandName?{type:Gs("0xb"),content:Jr(e,"*Remove link*")}:void 0}}))}}const Hs=["type","afterInit","registerElementLabel","createPositionAt","model","bulletedList","filter","editor","replace","listIndent","change","markBlockFormat","bulleted","format","todoListChecked","List","parent","get","listItem","numberedList","commandParams","ELEMENT_LIST_ITEM","push","commandName","value","document","createRange","enableCommand","_descriptionFactory","selection","*Check item*","LegacyTodoListEditing","ELEMENT_NUMBERED_LIST","ELEMENT_TODO_LIST","execute","checkTodoList","formatInline","registerDescriptionCallback","numbered","plugins","forceValue","*Change to:* %0","_selectedElements","has","indentList","ELEMENT_BULLETED_LIST","nextSibling","length","getAttribute","getSelectedBlocks","outdentList","element","todoList","isObject","name","formatBlock","checkChild","todo","paragraph","TrackChangesEditing","*Indent:* %0","from","blockName","add","LegacyListEditing","*Uncheck item*","before","findIndex","locale","previousSibling","slice"];var zs,Ws;zs=Hs,Ws=143,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{[Ks("0x0")](){const t=this[Ks("0x6")],e=t[Ks("0x43")];if(!t[Ks("0x26")].has(Ks("0x3f")))return;const n=t[Ks("0x26")].get(Ks("0x3a")),r=t.plugins[Ks("0x2a")](Ks("0x1e"));function i(e){return()=>{const r=t[Ks("0x3")][Ks("0x18")][Ks("0x1c")],i=t.commands.get(e);if(i[Ks("0x17")])return void t[Ks("0x21")](Ks("0x39"),{});const o=e.slice(0,-4),s=function(t,e,n){let r=Array[Ks("0x3c")](t)[Ks("0x5")]((t=>{return e=t,(r=n)[Ks("0x37")](e[Ks("0xf")],Ks("0x11"))&&!r[Ks("0x34")](e);var e,r}));r=r[Ks("0x5")]((t=>!t.is(Ks("0x32"),Ks("0x11"))||t[Ks("0x2f")]("listType")!=e));const i=new Set;for(const t of r)t.is(Ks("0x32"),Ks("0x11"))?i.add(Xs(t)):i[Ks("0x3e")](t);return Array[Ks("0x3c")](i)}(r[Ks("0x30")](),o,t[Ks("0x3")].schema);t[Ks("0x3")][Ks("0x9")]((()=>{for(const t of s)n[Ks("0xa")](t,{commandName:e,commandParams:[{forceValue:!i.value}],formatGroupId:Ks("0x3d")},$s(t))}))}}function o(e){return()=>{const r=function(t){let e=Array[Ks("0x3c")](t);const n=e[Ks("0x42")]((t=>"listItem"!=t[Ks("0x35")]));return n>-1&&(e=e[Ks("0x45")](0,n)),e}(t[Ks("0x3")][Ks("0x18")][Ks("0x1c")].getSelectedBlocks()),i=t.model[Ks("0x19")](t.model[Ks("0x2")](r[0],Ks("0x41")),t[Ks("0x3")][Ks("0x2")](r[r[Ks("0x2e")]-1],"end"));t[Ks("0x3")][Ks("0x9")]((()=>{n[Ks("0xa")](i,{commandName:e,commandParams:[],formatGroupId:Ks("0x8")},function(t){const e=new Set;for(const n of t){let t=n[Ks("0x2d")];for(;t&&t[Ks("0x2f")](Ks("0x8"))>n.getAttribute("listIndent");)e[Ks("0x3e")](t),t=t.nextSibling}return Array.from(e)}(r))}))}}n.enableCommand(Ks("0x12"),i("numberedList")),n[Ks("0x1a")](Ks("0x4"),i(Ks("0x4"))),r&&n[Ks("0x1a")](Ks("0x33"),i("todoList")),n[Ks("0x1a")]("indentList",o(Ks("0x2b"))),n[Ks("0x1a")](Ks("0x31"),o("outdentList")),r&&n[Ks("0x1a")]("checkTodoList",(()=>{const e=t.commands[Ks("0x10")](Ks("0x22")),r=Array[Ks("0x3c")](e[Ks("0x29")]);r[Ks("0x5")]((t=>t[Ks("0x2f")](Ks("0xd"))!=e[Ks("0x17")])),t.model[Ks("0x9")]((()=>{for(const t of r)n[Ks("0xa")](t,{commandName:Ks("0x22"),commandParams:[{forceValue:!e[Ks("0x17")]}]})}))})),n[Ks("0x1b")][Ks("0x1")](Ks("0x11"),(t=>Jr(e,Ks("0x14"),t))),n[Ks("0x1b")][Ks("0x24")]((t=>{if(Ks("0x36")!=t[Ks("0x46")]&&Ks("0x23")!=t[Ks("0x46")])return;const{data:n}=t;if(n){if(Ks("0x12")==n[Ks("0x16")]||Ks("0x4")==n[Ks("0x16")]||Ks("0x33")==n[Ks("0x16")])switch(n[Ks("0x16")][Ks("0x7")](Ks("0xe"),"")){case Ks("0xb"):return r(Jr(e,Ks("0x2c")));case Ks("0x25"):return r(Jr(e,Ks("0x1f")));case Ks("0x38"):return r(Jr(e,Ks("0x20")))}if(Ks("0x2b")==n.commandName)return{type:Ks("0xc"),content:Jr(e,Ks("0x3b"),Jr(e,Ks("0x14")))};if(Ks("0x31")==n[Ks("0x16")])return{type:Ks("0xc"),content:Jr(e,"*Outdent:* %0",Jr(e,Ks("0x14")))};if(Ks("0x22")==n[Ks("0x16")])return n[Ks("0x13")][0][Ks("0x27")]?{type:"format",content:Jr(e,Ks("0x1d"))}:{type:Ks("0xc"),content:Jr(e,Ks("0x40"))}}function r(t){return{type:"format",content:Jr(e,Ks("0x28"),t)}}}))}}function Xs(t){const e=t[Ks("0x2f")](Ks("0x8"));if(0==e)return t;let n=t;for(;t[Ks("0x44")]&&t[Ks("0x44")].is(Ks("0x32"),Ks("0x11"));){const r=t[Ks("0x44")][Ks("0x2f")]("listIndent");if(r==e)n=t[Ks("0x44")];else if(r<e)break;t=t.previousSibling}return n}function $s(t){const e=[];if(t.is(Ks("0x32"),Ks("0x11"))&&t.getAttribute(Ks("0x8"))>0){let n=t[Ks("0x2d")];for(;n&&"listItem"==n[Ks("0x35")]&&n[Ks("0x2f")](Ks("0x8"))==t[Ks("0x2f")]("listIndent");)e[Ks("0x15")](n),n=n[Ks("0x2d")]}return e}const Zs=["LegacyListUtils","forward","*Format:* set start index to %0","unshift","_LIST_","parent","handleDescriptions","formatInline","numbered","afterInit","getSelectedBlocks","getLastPosition","length","createRange","handleListStyleCommand","locale","listStart","push","map","registerDescriptionCallback","handleListStartCommand","handleListReversedCommand","element","editor","format","selection","_getSuggestionBlocks","getFirstPosition","*Change to:* %0","model","before","getSiblingNodes","list.properties","toUpperCase","styles","commandName","createPositionAt","filter","markMultiRangeBlockFormat","plugins","get","type","has","listStyle","change","listType","_descriptionFactory","reversed","*Format:* set order to reversed","replace","listItem","document","listReversed","bind","backward","_getTranslationKeyForListStyle","enableCommand","_getSuggestionBlocksForListStyle","ELEMENT_","*Format:* set order to regular","startIndex","commandParams","getListTypeFromListStyleType"];var Ys,Js;Ys=Zs,Js=401,function(t){for(;--t;)Ys.push(Ys.shift())}(++Js);const Qs=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{[Qs("0x31")](){if(!this[Qs("0x0")][Qs("0x10")][Qs("0x13")]("LegacyListPropertiesEditing"))return;const t=this[Qs("0x0")].config[Qs("0x11")](Qs("0x9")),e=this.editor[Qs("0x10")].get("TrackChangesEditing");t[Qs("0xb")]&&e[Qs("0x21")](Qs("0x14"),this[Qs("0x36")].bind(this)),t[Qs("0x18")]&&e[Qs("0x21")](Qs("0x1d"),this[Qs("0x3d")][Qs("0x1e")](this)),t[Qs("0x25")]&&e[Qs("0x21")](Qs("0x38"),this.handleListStartCommand[Qs("0x1e")](this)),e[Qs("0x17")][Qs("0x3b")](this[Qs("0x2e")][Qs("0x1e")](this))}[Qs("0x36")](t,e={}){const n=this[Qs("0x0")].plugins[Qs("0x11")]("TrackChangesEditing"),r=this[Qs("0x22")]();this[Qs("0x0")].model[Qs("0x15")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Qs("0x14"),commandParams:[{type:e[Qs("0x12")]}],formatGroupId:Qs("0x14")})}))}[Qs("0x3d")](t,e={}){const n=this.editor[Qs("0x10")][Qs("0x11")]("TrackChangesEditing"),r=this[Qs("0x3")]((t=>t.is(Qs("0x3e"),Qs("0x1b"))&&"numbered"===t.getAttribute(Qs("0x16"))));if(r[Qs("0x34")]<1)return;const i=r[Qs("0x3a")]((t=>this[Qs("0x0")][Qs("0x6")][Qs("0x35")](this[Qs("0x0")].model[Qs("0xd")](t,Qs("0x7")),this[Qs("0x0")][Qs("0x6")].createPositionAt(t,0))));this.editor[Qs("0x6")][Qs("0x15")]((()=>{n[Qs("0xf")](i,{commandName:"listReversed",commandParams:[{reversed:e[Qs("0x18")]}],formatGroupId:"listReversed"})}))}[Qs("0x3c")](t,e={}){const n=this[Qs("0x0")][Qs("0x10")].get("TrackChangesEditing"),r=this[Qs("0x3")]((t=>t.is(Qs("0x3e"),Qs("0x1b"))&&Qs("0x30")===t.getAttribute(Qs("0x16"))));if(r.length<1)return;const i=r[Qs("0x3a")]((t=>this.editor.model[Qs("0x35")](this[Qs("0x0")][Qs("0x6")][Qs("0xd")](t,Qs("0x7")),this[Qs("0x0")][Qs("0x6")].createPositionAt(t,0))));this[Qs("0x0")][Qs("0x6")][Qs("0x15")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:Qs("0x38"),commandParams:[{startIndex:e[Qs("0x25")]}],formatGroupId:Qs("0x38")})}))}[Qs("0x2e")](t){if("formatBlock"!=t[Qs("0x12")]&&Qs("0x2f")!=t[Qs("0x12")])return;const e=this[Qs("0x0")][Qs("0x37")],{data:n}=t;if(!n)return;let r,i;switch(n[Qs("0xc")]){case Qs("0x14"):r=Qs("0x5"),i={type:Qs("0x1"),content:Jr(e,r,Jr(e,this[Qs("0x20")](n[Qs("0x26")][0].type)))};break;case Qs("0x1d"):r=n[Qs("0x26")][0][Qs("0x18")]?Qs("0x19"):Qs("0x24"),i={type:Qs("0x1"),content:Jr(e,r)};break;case"listStart":r=Qs("0x2a"),i={type:"format",content:Jr(e,r,n.commandParams[0][Qs("0x25")])}}return i}[Qs("0x22")](){var t,e,n,r;const i=this[Qs("0x0")][Qs("0x10")][Qs("0x11")](Qs("0x28"));let o=Array.from(this[Qs("0x0")][Qs("0x6")][Qs("0x1c")][Qs("0x2")][Qs("0x32")]());return(null===(t=o[0])||void 0===t?void 0:t.is(Qs("0x3e"),Qs("0x1b")))&&o[Qs("0x2b")](...i[Qs("0x8")](this[Qs("0x0")].model[Qs("0x1c")].selection[Qs("0x4")](),"backward")),(null===(e=o[o[Qs("0x34")]-1])||void 0===e?void 0:e.is("element",Qs("0x1b")))&&o[Qs("0x39")](...i[Qs("0x8")](this[Qs("0x0")][Qs("0x6")].document.selection[Qs("0x33")](),"forward")),o=[...new Set(o)],(null===(r=null===(n=this[Qs("0x0")][Qs("0x6")][Qs("0x1c")][Qs("0x2")][Qs("0x4")]())||void 0===n?void 0:n[Qs("0x2d")])||void 0===r?void 0:r.is(Qs("0x3e"),"listItem"))&&(o=o[Qs("0xe")]((t=>t.is("element",Qs("0x1b"))))),o}[Qs("0x3")](t){const e=this[Qs("0x0")][Qs("0x10")][Qs("0x11")](Qs("0x28"));let n=Array.from(this.editor[Qs("0x6")][Qs("0x1c")][Qs("0x2")][Qs("0x32")]())[Qs("0xe")](t)[Qs("0x3a")]((t=>{const n=this.editor[Qs("0x6")][Qs("0xd")](t,0);return[...e.getSiblingNodes(n,Qs("0x1f")),...e[Qs("0x8")](n,Qs("0x29"))]})).flat();return n=[...new Set(n)],n}[Qs("0x20")](t){return Qs("0x23")+this[Qs("0x0")].plugins[Qs("0x11")](Qs("0x28"))[Qs("0x27")](t)[Qs("0xa")]()+Qs("0x2c")+t.toUpperCase()[Qs("0x1a")](/-/g,"_")}}const ex=["high","editor","registerElementLabel","options","media","afterInit","TrackChangesEditing","attribute:url:media","_descriptionFactory","enableCommand","ELEMENT_MEDIA","data","locale","plugins","createEmptyElement","for","has","showSuggestionHighlights","div"];var nx,rx;nx=ex,rx=379,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ix=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[ix("0x6")](){const t=this[ix("0x2")];if(!t[ix("0xe")][ix("0x11")]("MediaEmbedEditing"))return;const e=t[ix("0xe")].get(ix("0x7")),n=t[ix("0xd")];e[ix("0xa")]("mediaEmbed"),e[ix("0x9")][ix("0x3")](ix("0x5"),(t=>Jr(n,ix("0xb"),t))),t.conversion[ix("0x10")]("dataDowncast").elementToElement({model:ix("0x5"),view:(t,{writer:e,options:n})=>{if(n[ix("0x12")])return e[ix("0xf")](ix("0x0"))},converterPriority:ix("0x1")}),t[ix("0xc")].downcastDispatcher.on(ix("0x8"),((t,e,n)=>{n[ix("0x4")][ix("0x12")]&&t.stop()}),{priority:"high"})}}const sx=["MentionEditing","has","TrackChangesEditing","plugins","get","mention"];var xx,ax;xx=sx,ax=379,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{afterInit(){const t=this.editor;t[cx("0x2")][cx("0x0")](cx("0x5"))&&t[cx("0x2")][cx("0x3")](cx("0x1")).enableCommand(cx("0x4"))}}const ux=["plugins","ELEMENT_PAGE_BREAK","editor","enableCommand","has","pageBreak","_descriptionFactory","locale","afterInit","registerElementLabel","get","TrackChangesEditing","PageBreakEditing"];var dx,gx;dx=ux,gx=335,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{[fx("0xb")](){const t=this[fx("0x5")];if(!t.plugins[fx("0x7")](fx("0x2")))return;t[fx("0x3")].get(fx("0x1"))[fx("0x6")](fx("0x8"));const e=t[fx("0x3")][fx("0x0")](fx("0x1")),n=t[fx("0xa")];e[fx("0x9")][fx("0xc")](fx("0x8"),(t=>Jr(n,fx("0x4"),t)))}}const mx=["activeMarkers","editor","checkChild","getFirstRange","*Insert:* %0","model","addMarker:suggestion:insertion","consumable","options","nodeAfter","isLimit","paragraph","$text","markerName","Paragraph","enableCommand","highest","insert","afterInit","getItemLabel","span","TrackChangesEditing","format","schema","isTouching","type","*Change to:* %0","bindElementToMarker","get","markerRange","_enableDefaultAttributesIntegration","_registerLegacyDescription","addClass","_descriptionFactory","insertion","includes","ck-suggestion-marker--active","registerDescriptionCallback","isBlock","writer","has","ck-suggestion-marker-split","end","name","showSuggestionHighlights","toViewPosition","editing","downcastDispatcher","plugins","start","formatBlock","locale","registerElementLabel"];var px,bx;px=mx,bx=101,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x17")](){const t=this[Ex("0x6")];if(!t[Ex("0x0")][Ex("0x2d")](Ex("0x13")))return;const e=t[Ex("0x3")],n=t[Ex("0x0")].get(Ex("0x1a"));n[Ex("0x26")][Ex("0x4")](Ex("0x10"),(t=>Jr(e,"ELEMENT_PARAGRAPH",t))),n[Ex("0x23")](Ex("0x10")),n[Ex("0x14")]("insertParagraph"),t[Ex("0x33")][Ex("0x34")].on(Ex("0xb"),Tx(t),{priority:Ex("0x15")}),t.data[Ex("0x34")].on("addMarker:suggestion:insertion",((e,n,r)=>{r[Ex("0xd")][Ex("0x31")]&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:Ex("0x15")});const r=n[Ex("0x26")];r[Ex("0x2a")]((n=>{if(Ex("0x27")!==n.type)return;const{start:i,end:o}=n[Ex("0x8")]();if(!i.isTouching(o)||!i[Ex("0xe")])return;const s=t[Ex("0xa")].schema,x=i.nodeAfter;return s[Ex("0x2b")](x)&&!s[Ex("0xf")](x)&&s[Ex("0x7")](x,Ex("0x11"))?{type:Ex("0x27"),content:Jr(e,Ex("0x9"),r[Ex("0x18")](x,1))}:void 0})),this[Ex("0x24")]()}[Ex("0x24")](){const t=this.editor,e=t[Ex("0x3")];t[Ex("0x0")][Ex("0x21")](Ex("0x1a"))[Ex("0x26")][Ex("0x2a")]((t=>{if(Ex("0x2")!=t[Ex("0x1e")])return;const{data:n}=t;return n&&Ex("0x10")==n.commandName?{type:Ex("0x1b"),content:Jr(e,Ex("0x1f"),Jr(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t.plugins[Ex("0x21")](Ex("0x1a")),s=r[Ex("0x22")][Ex("0x1")],x=r[Ex("0x22")][Ex("0x2f")],a=t[Ex("0xa")][Ex("0x1c")];if(!s[Ex("0x1d")](x)||!s[Ex("0xe")])return;const c=s[Ex("0xe")];if(a[Ex("0x2b")](c)&&!a.isLimit(c)&&a[Ex("0x7")](c,Ex("0x11"))){if(!i[Ex("0xc")].consume(r[Ex("0x22")],n[Ex("0x30")]))return;const t=i[Ex("0x2c")].createUIElement(Ex("0x19"),{class:Ex("0x2e")}),s=i.mapper[Ex("0x32")](x);e&&o[Ex("0x5")][Ex("0x28")](r.markerName)&&i.writer[Ex("0x25")](Ex("0x29"),t),i[Ex("0x2c")][Ex("0x16")](s,t),i.mapper[Ex("0x20")](t,r[Ex("0x12")])}}}const yx=["_registerLegacyDescription","registerDescriptionCallback","type","*Remove all formatting*","_enableDefaultAttributesIntegration","commandName","TrackChangesEditing","get","removeFormat","formatInline","afterInit","editor","has","plugins","locale"];var Cx,Ax;Cx=yx,Ax=190,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{[kx("0x0")](){const t=this.editor;t[kx("0x3")][kx("0x2")]("RemoveFormatEditing")&&(t.plugins[kx("0xc")](kx("0xb"))[kx("0x9")](kx("0xd")),this[kx("0x5")]())}[kx("0x5")](){const t=this[kx("0x1")];t[kx("0x3")].get(kx("0xb"))._descriptionFactory[kx("0x6")]((e=>{if("formatBlock"!=e[kx("0x7")]&&kx("0xe")!=e.type)return;const{data:n}=e;return n&&"removeFormat"==n[kx("0xa")]?{type:"format",content:Jr(t[kx("0x4")],kx("0x8"))}:void 0}))}}const Rx=["enableCommand","RestrictedEditingModeEditing","goToNextRestrictedEditingException","has","TrackChangesEditing","acceptAllSuggestions","afterInit","plugins","get","goToPreviousRestrictedEditingException","acceptSuggestion","discardSuggestion"];var Sx,vx;Sx=Rx,vx=173,function(t){for(;--t;)Sx.push(Sx.shift())}(++vx);const Nx=function(t,e){return Rx[t-=0]};class Lx extends t.Plugin{[Nx("0x1")](){const t=this.editor;if(!t.plugins[Nx("0xa")](Nx("0x8")))return;const e=t.plugins[Nx("0x3")](Nx("0xb"));e.enableCommand(Nx("0x4")),e[Nx("0x7")](Nx("0x9"));const n=t[Nx("0x2")][Nx("0x3")](Nx("0x8"));n[Nx("0x7")]("trackChanges"),n[Nx("0x7")](Nx("0x5")),n[Nx("0x7")](Nx("0x6")),n[Nx("0x7")](Nx("0x0")),n[Nx("0x7")]("discardAllSuggestions"),n[Nx("0x7")]("acceptSelectedSuggestions"),n[Nx("0x7")]("discardSelectedSuggestions")}}const Mx=["ELEMENT_LINE_BREAK","markerRange","showSuggestionHighlights","addMarker:suggestion:deletion","shiftEnter","_descriptionFactory","writer","split","plugins","addMarker:suggestion:insertion","activeMarkers","element","model","editing","deletion","test","locale","toViewPosition","createPositionBefore","enableCommand","get","downcastDispatcher","registerElementLabel","span","softBreak","TrackChangesEditing","high","createUIElement","ck-suggestion-marker--active","bindElementToMarker","mapper","init","editor","insert","name","markerName","includes","ck-suggestion-marker-","addMarker:suggestion","merge"];var wx,Ox;wx=Mx,Ox=440,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get requires(){return[Eo.ShiftEnter]}[Fx("0x1f")](){const t=this[Fx("0x20")],e=t.plugins[Fx("0x14")](Fx("0x19"));e[Fx("0x13")](Fx("0x4")),t.editing[Fx("0x15")].on(Fx("0x9"),Px(t),{priority:Fx("0x1a")}),t[Fx("0xd")][Fx("0x15")].on(Fx("0x3"),Px(t),{priority:Fx("0x1a")}),t.data[Fx("0x15")].on(Fx("0x26"),((e,n,r)=>{r.options[Fx("0x2")]&&Px(t,{showActiveMarker:!1})(e,n,r)})),e[Fx("0x5")][Fx("0x16")](Fx("0x18"),(e=>Jr(t[Fx("0x10")],Fx("0x0"),e)))}}function Px(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Fx("0x8")][Fx("0x14")]("TrackChangesEditing");if(!i.consumable[Fx("0xf")](r[Fx("0x1")],n[Fx("0x22")]))return;const s=t[Fx("0xc")];for(const t of r.markerRange.getItems()){if(!t.is(Fx("0xb"),Fx("0x18")))continue;const n=Fx("0xe")==r[Fx("0x23")][Fx("0x7")](":")[1]?Fx("0x27"):Fx("0x7"),x=i[Fx("0x6")][Fx("0x1b")](Fx("0x17"),{class:Fx("0x25")+n}),a=i[Fx("0x1e")][Fx("0x11")](s[Fx("0x12")](t));e&&o[Fx("0xa")][Fx("0x24")](r[Fx("0x23")])&&i[Fx("0x6")].addClass(Fx("0x1c"),x),i[Fx("0x6")][Fx("0x21")](a,x),i[Fx("0x1e")][Fx("0x1d")](x,r[Fx("0x23")])}}}const Bx=["model","commandName","formatInline","FORMAT_RESTRICTED_ENABLED","getRanges","isCollapsed","selection","enableCommand","_descriptionFactory","get","restrictedEditingException","locale","TrackChangesEditing","type","format","registerDescriptionCallback","has","afterInit","StandardEditingModeEditing","from","FORMAT_RESTRICTED_DISABLED","commands","plugins","formatBlock","document","forceValue","change","editor"];var Ux,jx;Ux=Bx,jx=236,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Bx[t-=0]};class Vx extends t.Plugin{[Gx("0x5")](){const t=this[Gx("0xf")],e=t[Gx("0x10")],n=t[Gx("0x1b")];if(!t[Gx("0xa")][Gx("0x4")](Gx("0x6")))return;const r=t[Gx("0xa")][Gx("0x19")](Gx("0x0")),i=Gx("0x1a"),o=t[Gx("0x9")].get(i);r[Gx("0x17")](i,((t,n={})=>{const s=e[Gx("0xc")][Gx("0x16")];if(s[Gx("0x15")])return void t(n);const x=void 0!==n[Gx("0xd")]?n[Gx("0xd")]:!o.value;e[Gx("0xe")]((()=>{const t=Array[Gx("0x7")](s[Gx("0x14")]());for(const n of t){const t=x?[n]:Ji(i,n,e);for(const e of t)r.markInlineFormat(e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),r[Gx("0x18")][Gx("0x3")]((t=>{if(Gx("0xb")!=t[Gx("0x1")]&&Gx("0x12")!=t.type)return;const{data:e}=t;return e&&e[Gx("0x11")]==i?e.commandParams[0][Gx("0xd")]?{type:Gx("0x2"),content:Jr(n,Gx("0x13"))}:{type:"format",content:Jr(n,Gx("0x8"))}:void 0}))}}const Hx=["formatBlock","getGhsAttributeNameForElement","block","style","registerAttributeLabel","TrackChangesEditing","ghsAttributes","has","element","plugins","locale","GeneralHtmlSupport","config","type","_enableDefaultAttributesIntegration","add","definitions","_registerBlockAttribute","_registerInlineAttribute","toLowerCase","registerDescriptionCallback","DataSchema","_descriptionFactory","editor","forceValue","commandParams","format","get","formatInline","Style","StyleUtils","FORMAT_STYLE","*Remove format:* %0","afterInit","styleName"];var zx,Wx;zx=Hx,Wx=415,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0x3")](){const t=this[Kx("0x1c")];if(!t.plugins[Kx("0xc")](Kx("0x22"))||!t.plugins.has("DataSchema"))return;const e=t.plugins[Kx("0x20")](Kx("0xa")),n=t.locale,r=t[Kx("0x11")][Kx("0x20")](Kx("0x8")),i=t.plugins[Kx("0x20")](Kx("0x10")),o=t.plugins.get(Kx("0x0")).normalizeConfig(t[Kx("0xe")].get(Kx("0x1a")),r[Kx("0x15")]);e[Kx("0x13")]("style");const s=new Set;for(const t of o[Kx("0x7")]){const e=i[Kx("0x6")](t[Kx("0xd")]);s[Kx("0x14")](e)}const x=new Set;for(const t of o.inline){const e=i[Kx("0x6")](t[Kx("0xd")]);x[Kx("0x14")](e);for(const e of t[Kx("0xb")])x.add(e)}for(const t of s)e[Kx("0x16")](t),e[Kx("0x1b")][Kx("0x9")](t,Jr(n,"FORMAT_STYLE"));for(const t of x)e[Kx("0x17")](t),e._descriptionFactory[Kx("0x9")](t,Jr(n,Kx("0x1")));this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[Kx("0x1c")],e=t[Kx("0xf")];t[Kx("0xe")].get(Kx("0xa"))._descriptionFactory[Kx("0x19")]((t=>{if(Kx("0x5")!=t[Kx("0x12")]&&Kx("0x21")!=t[Kx("0x12")])return;const{data:n}=t;return n&&Kx("0x8")===n.commandName?n[Kx("0x1e")][0][Kx("0x1d")]?{type:Kx("0x1f"),content:Jr(e,"*Set format:* %0",n[Kx("0x1e")][0][Kx("0x4")][Kx("0x18")]())}:{type:Kx("0x1f"),content:Jr(e,Kx("0x2"),n[Kx("0x1e")][0][Kx("0x4")][Kx("0x18")]())}:void 0}))}}const Xx=["selection","execute","nodeAfter","accept","position","createRangeIn","_splitMarkerName","type","every","insertTableColumnLeft","writer","add","selectTableColumn","last","from","get","TableUtils","registerCustomCallback","TrackChangesEditing","left","MAX_SAFE_INTEGER","locale","isIntersectingWithRange","nodeBefore","ELEMENT_TABLE_WITH_TEXT","removeTableColumn","createPositionAt","getSelectionAffectedTableCells","removeClass","element","getCellLocation","name","ELEMENT_TABLE_ROW","enableCommand","has","root","tableRow","length","getRanges","ELEMENT_TABLE_ROW_WITH_TEXT","*Remove:* %0","mapper","options","startsWith","refresh","insert","substr","createRangeOn","MIN_SAFE_INTEGER","highest","getAttribute","includes","data","addClass","isEqual","tablePaste","tableCell","commands","filter","classes","createTableWalker","removeTableRow","maxColumn","start","markMultiRangeDeletion","getChildren","getItems","findAncestor","colspan","ELEMENT_TABLE_COLUMN_WITH_TEXT","registerDescriptionCallback","insertTableColumnRight","registerElementLabel","insertion","getContainedElement","min","*Insert:* %0","deletion","getRowIndexes","_getSuggestionCoords","plugins","_getCoordsForCells","enqueueChange","max","$textProxy","oldRange","insertTable","editor","markMultiRangeInsertion","join","table","some","_descriptionFactory","ELEMENT_TABLE_COLUMN","differ","span","detach","maxRow","selectTableRow","_tableSuggestions","order","discard","end","isInContent","rootName","registerPostFixer","document","_suggestionFactory","isTouching","subType","push","$graveyard","toLowerCase","cell","fromRange","first","above","low","setSelection","model","insertTableRowAbove","insertTableRowBelow","change:data","map","hasAttribute","getFirstRange","change","getChanges","addRange","_setupColumnsRowsFixing","minRow","rowspan","tableColumn","addMarker:suggestion","_acceptFormatSuggestionCallbackFactory"];var $x,Zx;$x=Xx,Zx=279,function(t){for(;--t;)$x.push($x.shift())}(++Zx);const Yx=function(t,e){return Xx[t-=0]};class Jx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Yx("0x1b"),Yx("0x7b")],this._tableSuggestions=new Set}afterInit(){const t=this.editor,e=t[Yx("0x6e")][Yx("0x61")][Yx("0x7e")];if(!t.plugins[Yx("0x19")]("TableEditing"))return;const n=t[Yx("0xc")],r=t[Yx("0x47")].get("TrackChangesEditing"),i=t.plugins.get(Yx("0x7"));r[Yx("0x53")][Yx("0x3f")](Yx("0x51"),(t=>Jr(n,"ELEMENT_TABLE",t))),this[Yx("0x78")](),r.enableCommand(Yx("0x4d")),r[Yx("0x18")](Yx("0x59")),r[Yx("0x18")](Yx("0x3"));for(const n of[Yx("0x6f"),Yx("0x70")]){const o=t[Yx("0x30")][Yx("0x6")](n);r[Yx("0x18")](n,(n=>{t.model[Yx("0x75")]((t=>{n();const s=Yx("0x6b")===o.order,x=i[Yx("0x12")](e),a=i[Yx("0x45")](x),c=s?a[Yx("0x6a")]-1:a[Yx("0x4")]+1,l=x[0][Yx("0x3a")](Yx("0x51")),u=i[Yx("0x33")](l,{startRow:c,endRow:c}),d=Array.from(u).map((e=>t[Yx("0x26")](e[Yx("0x68")])));r[Yx("0x4f")](d,Yx("0x1b"))}))}))}for(const n of[Yx("0x0"),Yx("0x3e")]){const o=t[Yx("0x30")].get(n);r[Yx("0x18")](n,(n=>{t[Yx("0x6e")][Yx("0x75")]((t=>{n();const s=Yx("0xa")===o[Yx("0x5b")],x=i[Yx("0x12")](e),a=i.getColumnIndexes(x),c=s?a[Yx("0x6a")]-1:a.last+1,l=x[0][Yx("0x3a")](Yx("0x51")),u=i[Yx("0x33")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Yx("0x5")](u)[Yx("0x72")]((e=>t.createRangeOn(e[Yx("0x68")])));r.markMultiRangeInsertion(d,Yx("0x7b"))}))}))}for(const n of[Yx("0x34"),"removeTableColumn"]){const o=n[Yx("0x25")](11),s=o.toLowerCase(),x=s[Yx("0x25")](0,3)+Yx("0x56"),a=Yx("0x51")+o,c=Yx("0x42")+o,l=Yx("0x4a")+o;r[Yx("0x18")](n,(()=>{t[Yx("0x6e")][Yx("0x75")]((t=>{const o=i[Yx("0x12")](e),u=o[0][Yx("0x3a")](Yx("0x51"));let d;if(Yx("0x34")==n){const t=i[Yx("0x45")](o);d={startRow:t.first,endRow:t[Yx("0x4")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(o);d={startColumn:t[Yx("0x6a")],endColumn:t.last,includeAllSlots:!0}}const g=i[Yx("0x33")](u,d),f=Array[Yx("0x5")](g)[Yx("0x72")]((({cell:t})=>t)),h=Qx(f[Yx("0x31")]((t=>t[Yx("0x73")](x)))),m=Qx(f.filter((t=>!t[Yx("0x73")](x))))[Yx("0x72")]((e=>t[Yx("0x26")](e))),p=r[Yx("0x37")](m,a);if(p&&(Yx("0x1b")==p[Yx("0x64")]||"tableColumn"==p[Yx("0x64")])){const e=this[Yx("0x46")](p);for(const n of h){const r=t[Yx("0x26")](n),o=i[Yx("0x15")](n),a=n[Yx("0x29")](x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p[Yx("0x77")](r)}}}))}))}function o(n){const r=Array[Yx("0x5")](e[Yx("0x1d")]()).map((t=>s.LiveRange.fromRange(t)));t.model.change((e=>{const i=e.batch;n=n.filter((t=>Yx("0x66")!=t.root[Yx("0x5f")])),e[Yx("0x6d")](n),t[Yx("0x30")][Yx("0x6")](Yx("0x34"))[Yx("0x23")](),t.execute(Yx("0x34"),{forceDefaultExecution:!0}),t[Yx("0x6e")][Yx("0x49")]((()=>{t[Yx("0x6e")][Yx("0x49")](i,(t=>{const e=r[Yx("0x31")]((t=>Yx("0x66")!=t[Yx("0x1a")][Yx("0x5f")]));e[Yx("0x1c")]>0&&t.setSelection(e);for(const t of r)t.detach()}))}))}))}function a(n){t[Yx("0x6e")][Yx("0x75")]((r=>{const i=Array.from(e[Yx("0x1d")]()).map((t=>s.LiveRange[Yx("0x69")](t))),o=[];for(const t of n)for(const e of t[Yx("0x39")]({shallow:!0}))o[Yx("0x65")](e);for(const e of o)Yx("0x66")!=e[Yx("0x1a")][Yx("0x5f")]&&(r[Yx("0x6d")](r[Yx("0x11")](e,0)),t[Yx("0x30")][Yx("0x6")]("removeTableColumn").refresh(),t[Yx("0x7f")](Yx("0x10"),{forceDefaultExecution:!0}));const x=i[Yx("0x31")]((t=>Yx("0x66")!=t[Yx("0x1a")].rootName));x[Yx("0x1c")]>0&&r.setSelection(x);for(const t of i)t.detach()}))}function c(t,e){return e[Yx("0x86")]((e=>t[Yx("0x52")]((t=>t.end[Yx("0x2d")](e[Yx("0x36")])||e.end[Yx("0x2d")](t[Yx("0x36")])))))}function l(t,e){return t[Yx("0x52")]((t=>e[Yx("0x52")]((e=>t[Yx("0x5d")][Yx("0x63")](e[Yx("0x36")])))))}t[Yx("0x2b")].downcastDispatcher.on(Yx("0x7c"),((t,e,n)=>{if(!n[Yx("0x21")].showSuggestionHighlights)return;const r=e.item;if(!r)return;const i=n[Yx("0x20")].toViewElement(r);function o(t){return Array.isArray(t)?t:[t]}i&&Yx("0x2f")===r[Yx("0x16")]&&(0,x.setHighlightHandling)(i,n[Yx("0x1")],((t,e,n)=>n[Yx("0x2c")](o(e[Yx("0x32")]),t)),((t,e,n)=>n[Yx("0x13")](o(e[Yx("0x32")]),t)))}),{priority:Yx("0x28")}),r[Yx("0x53")][Yx("0x3d")]((t=>{if(Yx("0x40")!=t.type&&"deletion"!=t[Yx("0x85")])return;const e=t[Yx("0x41")]();if(null!=e&&e.is(Yx("0x14"),Yx("0x51"))){if(Yx("0x40")==t[Yx("0x85")]){const e=t[Yx("0x39")]()[Yx("0x31")]((t=>t.is(Yx("0x4b"))))[Yx("0x72")]((t=>t[Yx("0x2b")]));if(e[Yx("0x1c")])return{type:"insertion",content:Jr(n,"*Insert:* %0",Jr(n,Yx("0xf"),'"'+e[Yx("0x50")](" ")+'"'))}}if(Yx("0x44")==t[Yx("0x85")]){const e=t[Yx("0x39")]()[Yx("0x31")]((t=>t.is("$textProxy")))[Yx("0x72")]((t=>t[Yx("0x2b")]));if(e[Yx("0x1c")])return{type:Yx("0x44"),content:Jr(n,Yx("0x1f"),Jr(n,Yx("0xf"),'"'+e.join(" ")+'"'))}}}})),r[Yx("0x53")][Yx("0x3d")]((t=>{if(Yx("0x1b")==t[Yx("0x64")]){const e=t.getItems()[Yx("0x31")]((t=>t.is("$textProxy")))[Yx("0x72")]((t=>t.data)),r=this[Yx("0x46")](t),i=r[Yx("0x58")]-r[Yx("0x79")]+1;if(Yx("0x40")==t[Yx("0x85")])return e.length?{type:"insertion",content:Jr(n,Yx("0x43"),Jr(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[i,'"'+e[Yx("0x50")](" ")+'"']))}:{type:Yx("0x40"),content:Jr(n,Yx("0x43"),Jr(n,Yx("0x17"),i))};if("deletion"==t[Yx("0x85")])return e[Yx("0x1c")]?{type:Yx("0x44"),content:Jr(n,Yx("0x1f"),Jr(n,Yx("0x1e"),[i,'"'+e.join(" ")+'"']))}:{type:Yx("0x44"),content:Jr(n,Yx("0x1f"),Jr(n,"ELEMENT_TABLE_ROW",i))}}if(Yx("0x7b")==t[Yx("0x64")]){const e=t[Yx("0x39")]().filter((t=>t.is(Yx("0x4b")))).map((t=>t[Yx("0x2b")])),r=this[Yx("0x46")](t),i=r[Yx("0x35")]-r.minColumn+1;if(Yx("0x40")==t[Yx("0x85")])return e[Yx("0x1c")]?{type:"insertion",content:Jr(n,"*Insert:* %0",Jr(n,Yx("0x3c"),[i,'"'+e[Yx("0x50")](" ")+'"']))}:{type:Yx("0x40"),content:Jr(n,Yx("0x43"),Jr(n,Yx("0x54"),i))};if(Yx("0x44")==t.type)return e.length?{type:Yx("0x44"),content:Jr(n,Yx("0x1f"),Jr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Yx("0x50")](" ")+'"']))}:{type:Yx("0x44"),content:Jr(n,"*Remove:* %0",Jr(n,Yx("0x54"),i))}}})),r[Yx("0x62")].registerCustomCallback("insertion",Yx("0x1b"),Yx("0x5c"),o),r[Yx("0x62")][Yx("0x8")]("deletion","tableRow",Yx("0x81"),o),r[Yx("0x62")].registerCustomCallback("insertion","tableColumn",Yx("0x5c"),a),r._suggestionFactory[Yx("0x8")](Yx("0x44"),"tableColumn","accept",a),r[Yx("0x62")].registerCustomCallback(Yx("0x40"),Yx("0x7b"),"join",c),r[Yx("0x62")].registerCustomCallback(Yx("0x44"),Yx("0x7b"),Yx("0x50"),c),r[Yx("0x62")].registerCustomCallback(Yx("0x40"),"tableRow","join",l),r[Yx("0x62")][Yx("0x8")](Yx("0x44"),"tableRow",Yx("0x50"),l)}[Yx("0x7d")](){const t=this[Yx("0x4e")],e=t.model.document[Yx("0x7e")];return(n,r)=>{t[Yx("0x6e")][Yx("0x75")]((i=>{const{commandName:o,commandParams:x}=r;let a=n[0][Yx("0x5d")][Yx("0xe")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start.nodeAfter);const c=i[Yx("0x83")](a);if(Yx("0x66")==c[Yx("0x1a")][Yx("0x5f")])return;const l=Array[Yx("0x5")](e.getRanges())[Yx("0x72")]((t=>s.LiveRange[Yx("0x69")](t)));i[Yx("0x6d")](c),t.commands.get(o)[Yx("0x23")](),x[Yx("0x65")]({forceDefaultExecution:!0}),t[Yx("0x7f")](o,...x);const u=l.filter((t=>Yx("0x66")!=t[Yx("0x1a")][Yx("0x5f")]));u[Yx("0x1c")]>0&&i[Yx("0x6d")](u);for(const t of l)t[Yx("0x57")]()}))}}_getCoordsForCells(t){const e=this.editor[Yx("0x47")][Yx("0x6")](Yx("0x7"));let n=Number[Yx("0xb")],r=Number[Yx("0x27")],i=Number[Yx("0xb")],o=Number[Yx("0x27")];for(const s of t){if(Yx("0x66")==s[Yx("0x1a")][Yx("0x5f")])continue;const{row:t,column:x}=e[Yx("0x15")](s),a=s[Yx("0x73")](Yx("0x7a"))?s[Yx("0x29")](Yx("0x7a"))-1:0,c=s[Yx("0x73")](Yx("0x3b"))?s[Yx("0x29")](Yx("0x3b"))-1:0;n=t<n?t:n,r=t+a>r?t+a:r,i=x<i?x:i,o=x+c>o?x+c:o}return{minRow:n,maxRow:r,minColumn:i,maxColumn:o}}[Yx("0x78")](){const t=this[Yx("0x4e")],e=t.plugins.get(Yx("0x9")),n=t[Yx("0x47")][Yx("0x6")]("TableUtils");t[Yx("0x6e")][Yx("0x61")].on(Yx("0x71"),(()=>{const n=Array[Yx("0x5")](t[Yx("0x6e")][Yx("0x61")][Yx("0x55")].getChangedMarkers());for(const{name:t,data:r}of n){const{group:n,id:i,subType:o}=e[Yx("0x84")](t);if("suggestion"!=n)continue;if(null!=r[Yx("0x4c")])continue;const s=e.getSuggestion(i);this._tablePostFixingSubtypes[Yx("0x2a")](o)&&this[Yx("0x5a")][Yx("0x2")](s)}}),{priority:Yx("0x6c")});const r=(t,e)=>{let r=!1;const i=e.createRangeOn(t),o=t[Yx("0x3a")]("table"),s=n[Yx("0x15")](t);for(const e of this[Yx("0x5a")]){const n=e[Yx("0x64")],x=n[Yx("0x22")](Yx("0x2e")),a=n[Yx("0x25")](x?10:5),c=a[Yx("0x67")](),l=c[Yx("0x25")](0,3)+"span",u="min"+a,d=Yx("0x4a")+a;if(!e[Yx("0x5e")])continue;if(o!=e[Yx("0x74")]()[Yx("0x36")][Yx("0x3a")]("table"))continue;if(e[Yx("0xd")](i))continue;const g=t.hasAttribute(l)?t[Yx("0x29")](l)-1:0,f=this[Yx("0x46")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e.addRange(i),r=!0)}return r};t.model.document[Yx("0x60")]((e=>{let n=!1;for(const i of t.model[Yx("0x61")].differ[Yx("0x76")]())if(Yx("0x24")==i[Yx("0x85")])if(Yx("0x1b")==i[Yx("0x16")])for(const t of i[Yx("0x82")][Yx("0x80")][Yx("0x38")]())n=n||r(t,e);else Yx("0x2f")==i[Yx("0x16")]&&(n=n||r(i.position[Yx("0x80")],e));return n}))}[Yx("0x46")](t){return this[Yx("0x48")](t[Yx("0x1d")]().map((t=>t[Yx("0x36")][Yx("0x80")])))}}function Qx(t){return Array.from(new Set(t).values())}const ta=["add","registerCustomCallback","enableCommand","element","detach","splitTableCellHorizontally","cell","getAncestors","_descriptionFactory","markMultiRangeBlockFormat","$graveyard","markBlockFormat","change","execute","trackChanges","deletion","tableCell","rootName","TableUtils","locale","stop","low","_areSelectedCellsMergable","set:isEnabled","mergeTableCellRight","get","isEnabled","length","_areMergableCells","formatInline","_acceptFormatSuggestionCallbackFactory","highest","*Split cell:* horizontally","selection","mergeTableCellUp","find","type","_tablePostFixingSubtypes","filter","createTableWalker","TableEditing","_suggestionFactory","getSelectionAffectedTableCells","registerDescriptionCallback","document","plugins","accept","table","forceDefaultExecution","commands","return","push","mergeTableCells","mergeTableCellLeft","_isForcedDefaultExecutionBlock","*Merge cells*","refresh","from","formatBlock","createRangeOn","afterInit","model","containsRange","*Split cell:* vertically","editor","getRanges","has","size","getSuggestions","mergeTableCellDown","value","horizontally","map","direction","getFirstPosition","splitTableCellVertically","root","TrackChangesEditing","format","commandName"];var ea,na;ea=ta,na=154,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ra=function(t,e){return ta[t-=0]};class ia extends t.Plugin{static get requires(){return[Jx]}[ra("0x42")](){const t=this[ra("0x46")],e=t[ra("0x43")][ra("0x32")].selection,n=t[ra("0x19")];if(!t[ra("0x33")][ra("0x48")](ra("0x2e")))return;const r=t[ra("0x33")][ra("0x1f")](ra("0x3")),i=t[ra("0x33")][ra("0x1f")](ra("0x18")),o=t[ra("0x33")].get(Jx);o[ra("0x2b")][ra("0x39")](ra("0x3a")),r[ra("0x8")](ra("0x3a"),(()=>{const e=i.getSelectionAffectedTableCells(t[ra("0x43")][ra("0x32")][ra("0x27")]);t[ra("0x43")][ra("0x12")]((()=>{r[ra("0xf")](e,{commandName:ra("0x3a"),commandParams:[]},[],ra("0x3a"))}))})),t[ra("0x37")][ra("0x1f")](ra("0x3a")).on(ra("0x13"),((e,n)=>{t[ra("0x37")][ra("0x1f")](ra("0x14"))[ra("0x4c")]&&(n[ra("0x21")]>0&&n[n[ra("0x21")]-1]&&n[n.length-1][ra("0x36")]||r[ra("0x3c")]||this[ra("0x1c")]()||e[ra("0x1a")]())}),{priority:ra("0x25")});for(const e of[ra("0x28"),ra("0x1e"),ra("0x4b"),ra("0x3b")]){const n=t[ra("0x37")].get(e);r[ra("0x8")](e,(()=>{const e=t[ra("0x43")][ra("0x32")].selection[ra("0x0")]()[ra("0xd")]()[ra("0x29")]((t=>t.is("element",ra("0x16")))),i=n.value;t[ra("0x43")].change((()=>{r[ra("0xf")]([e,i],{commandName:ra("0x3a"),commandParams:[]},[],ra("0x3a"))}))}))}for(const e of[ra("0x1"),"splitTableCellHorizontally"]){const n=t.commands[ra("0x1f")](e);r[ra("0x8")](e,(()=>{const o=i.getSelectionAffectedTableCells(t[ra("0x43")][ra("0x32")][ra("0x27")])[0],s=o.findAncestor(ra("0x35")),{column:x,row:a}=i.getCellLocation(o);let c=[];if(ra("0x4d")==n[ra("0x4f")]){const t=i[ra("0x2d")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ra("0x3f")](t)[ra("0x4e")]((t=>t.cell))}else{const t=i[ra("0x2d")](s,{column:x,includeAllSlots:!0});c=Array[ra("0x3f")](t)[ra("0x4e")]((t=>t[ra("0xc")]))}t.model[ra("0x12")]((t=>{r[ra("0x11")](t[ra("0x41")](o),{commandName:e,commandParams:[]},c,e)}))}))}r[ra("0xe")].registerDescriptionCallback((t=>{if("formatBlock"!=t[ra("0x2a")]&&ra("0x23")!=t[ra("0x2a")])return;const{data:e}=t;return e&&"mergeTableCells"==e[ra("0x5")]?{type:ra("0x4"),content:Jr(n,ra("0x3d"))}:void 0})),r[ra("0xe")][ra("0x31")]((t=>{if(ra("0x40")!=t.type&&"formatInline"!=t.type)return;const{data:e}=t;return e?ra("0x1")==e[ra("0x5")]?{type:"format",content:Jr(n,ra("0x45"))}:ra("0xb")==e[ra("0x5")]?{type:ra("0x4"),content:Jr(n,ra("0x26"))}:void 0:void 0}));const x=o[ra("0x24")]();for(const t of[ra("0x28"),"mergeTableCellRight",ra("0x4b"),ra("0x3b")])r[ra("0x2f")][ra("0x7")]("formatBlock",t,ra("0x34"),x);for(const t of["splitTableCellVertically",ra("0xb")])r._suggestionFactory[ra("0x7")](ra("0x40"),t,ra("0x34"),x);r._suggestionFactory[ra("0x7")]("formatBlock",ra("0x3a"),ra("0x34"),(n=>{t[ra("0x43")].change((r=>{const i=Array[ra("0x3f")](e[ra("0x47")]())[ra("0x4e")]((t=>s.LiveRange.fromRange(t)));r.setSelection(n),t[ra("0x37")][ra("0x1f")](ra("0x3a"))[ra("0x3e")](),t[ra("0x13")]("mergeTableCells",{forceDefaultExecution:!0});const o=i[ra("0x2c")]((t=>ra("0x10")!=t[ra("0x2")][ra("0x17")]));o.length>0&&r.setSelection(o);for(const t of i)t[ra("0xa")]()}))}));for(const e of[ra("0x28"),ra("0x4b"),ra("0x3b"),ra("0x1e")]){const n=t[ra("0x37")][ra("0x1f")](e);n.on(ra("0x1d"),((e,r,i)=>{if(i){const r=t.model[ra("0x32")][ra("0x27")].getFirstPosition()[ra("0xd")]()[ra("0x29")]((t=>t.is(ra("0x9"),ra("0x16"))));this._areMergableCells(n[ra("0x4c")],r)||(e[ra("0x38")]=!1,e[ra("0x1a")]())}}),{priority:ra("0x1b")})}}_areSelectedCellsMergable(){const t=this[ra("0x46")].commands[ra("0x1f")](ra("0x3a")),e=this[ra("0x46")][ra("0x33")][ra("0x1f")](ra("0x18"));if(!t[ra("0x20")])return!1;const n=e[ra("0x30")](this[ra("0x46")][ra("0x43")][ra("0x32")][ra("0x27")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[ra("0x22")](t,e){const n=this[ra("0x46")].plugins.get(ra("0x3")),r=this[ra("0x46")][ra("0x43")][ra("0x41")](t),i=this[ra("0x46")][ra("0x43")][ra("0x41")](e),o=new Set,s=new Set;for(const t of n[ra("0x4a")]())if(("insertion"==t[ra("0x2a")]||ra("0x15")==t[ra("0x2a")]||ra("0x3a")==t.subType)&&t.isInContent)for(const e of t[ra("0x47")]())e[ra("0x44")](r,!0)&&o[ra("0x6")](t.type+":"+t.author.id),e[ra("0x44")](i,!0)&&s[ra("0x6")](t[ra("0x2a")]+":"+t.author.id);if(o[ra("0x49")]!=s.size)return!1;for(const t of o)if(!s.has(t))return!1;return!0}}const oa=["end","data","mapper","ck-suggestion-marker-","toViewElement","parent","FORMAT_HEADER_COLUMN","editing","has","consumable","locale","editor","accept","get","FORMAT_REGULAR_ROW","addMarker:suggestion","createTableWalker","nodeBefore","downcastDispatcher","headingRows","registerCustomCallback","markerName","showSuggestionHighlights","item","setAttribute","formatBlock","headingColumns","requires","_suggestionFactory","addClass","markerNameToElements","commandName","data-suggestion","activeMarkers","_registerLegacyDescription","FORMAT_REGULAR_COLUMN","highest","removeMarker:suggestion","_handleLegacySuggestions","unbindElementFromMarkerName","commandParams","afterInit","registerDescriptionCallback","removeAttribute","ck-suggestion-marker--active","_enableDefaultAttributesIntegration","_splitMarkerName","_descriptionFactory","*Format:* %0","forceValue","getCellLocation","bindElementToMarker","start","TableEditing","setTableRowHeader","TrackChangesEditing","setTableColumnHeader","markerRange","removeClass","stop","writer","name","options","plugins","consume","registerAttributeLabel"];var sa,xa;sa=oa,xa=366,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return oa[t-=0]};class ca extends t.Plugin{static get[aa("0x39")](){return[Jx]}[aa("0x5")](){const t=this.editor;if(!t[aa("0x1b")][aa("0x26")](aa("0x11")))return;const e=t[aa("0x28")],n=t.plugins[aa("0x2b")](aa("0x13"));n[aa("0x9")](aa("0x12"),[],[aa("0x31")]),n._enableDefaultAttributesIntegration(aa("0x14"),[],[aa("0x38")]),n[aa("0xb")][aa("0x1d")]("headingRows",Jr(e,"FORMAT_HEADER_ROW")),n[aa("0xb")][aa("0x1d")](aa("0x38"),Jr(e,aa("0x24"))),this[aa("0x2")]()}_handleLegacySuggestions(){const t=this[aa("0x29")].plugins[aa("0x2b")](aa("0x13")),e=this[aa("0x29")].plugins[aa("0x2b")]("TableUtils"),n=this[aa("0x29")][aa("0x1b")][aa("0x2b")](Jx)._acceptFormatSuggestionCallbackFactory();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(i,o,s)=>{const{type:x,id:a}=t[aa("0xa")](o.markerName),c=t.getSuggestion(a),l=c.data;if(aa("0x37")!=c.type||!l||aa("0x14")!=l[aa("0x3d")])return;if(o[aa("0x35")])return void i[aa("0x17")]();if(!s[aa("0x27")][aa("0x1c")](o[aa("0x15")],i[aa("0x19")]))return;const u=o[aa("0x15")][aa("0x10")].nodeAfter,d=o[aa("0x15")][aa("0x1e")][aa("0x2f")],g=u[aa("0x23")][aa("0x23")],{column:f}=e[aa("0xe")](u),{column:h}=e[aa("0xe")](d);for(let i=f;i<=h;i++){const c=e[aa("0x2e")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e.cell,c=s.mapper[aa("0x22")](i);s[aa("0x18")].addClass(aa("0x21")+x,c),r&&s[aa("0x18")][aa("0x36")](aa("0x3e"),a,c),s.mapper[aa("0xf")](c,o[aa("0x33")]),n&&(t[aa("0x3f")].includes(o[aa("0x33")])?s[aa("0x18")][aa("0x3b")]("ck-suggestion-marker--active",c):s[aa("0x18")][aa("0x16")](aa("0x8"),c))}}}}t[aa("0x3a")][aa("0x32")](aa("0x37"),aa("0x12"),aa("0x2a"),n),t[aa("0x3a")][aa("0x32")](aa("0x37"),aa("0x14"),aa("0x2a"),n),this[aa("0x29")][aa("0x25")].downcastDispatcher.on(aa("0x2d"),r(),{priority:aa("0x0")}),this[aa("0x29")].data[aa("0x30")].on(aa("0x2d"),((t,e,n)=>{n[aa("0x1a")][aa("0x34")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0x0")}),this[aa("0x29")][aa("0x25")][aa("0x30")].on(aa("0x1"),((e,n,r)=>{const{type:i,id:o}=t._splitMarkerName(n[aa("0x33")]),s=t.getSuggestion(o),x=s[aa("0x1f")];if(aa("0x37")!=s.type||!x||aa("0x14")!=x[aa("0x3d")])return;const a=r[aa("0x20")][aa("0x3c")](n[aa("0x33")]);if(a)for(const t of a)r[aa("0x18")].removeClass(aa("0x21")+i,t),r[aa("0x18")].removeClass(aa("0x8"),t),r.writer[aa("0x7")](aa("0x3e"),t),r[aa("0x20")][aa("0x3")](t,n[aa("0x33")])}),{priority:aa("0x0")}),this[aa("0x40")]()}_registerLegacyDescription(){const t=this[aa("0x29")],e=t[aa("0x28")];function n(t){return{type:"format",content:Jr(e,aa("0xc"),t)}}t[aa("0x1b")][aa("0x2b")](aa("0x13"))._descriptionFactory[aa("0x6")]((t=>{if(aa("0x37")!=t.type)return;const{data:r}=t;if(r){if(aa("0x12")==r[aa("0x3d")]){const t=r[aa("0x4")][0][aa("0xd")];return n(Jr(e,t?"FORMAT_HEADER_ROW":aa("0x2c")))}if("setTableColumnHeader"==r[aa("0x3d")]){const t=r[aa("0x4")][0][aa("0xd")];return n(Jr(e,t?"FORMAT_HEADER_COLUMN":aa("0x41")))}}}))}}const la=["TableClipboard","for","getSuggestionCallback","isEmpty","tablePasteRow","get","getChangedMarkers","_createdBatches","differ","suggestion","table","endColumn","TrackChangesEditing","getShiftedBy","startsWith","schema","createPositionBefore","markMultiRangeBlockFormat","fill","containsRange","isInContent","registerDescriptionCallback","forceDefaultExecution","join","has","tableCellPadding","deletion","getRange","createTableWalker","findAncestor","columnInsertionIndexes","attributes","tableCellHorizontalAlignment","insertion","afterInit","editing","low","trackChanges","options","columnInsertionRanges","type","length","rowInsertionRanges","removeMarkers","ck-suggestion-marker","selection","getContainedElement","getChanges","end","createRangeIn","next","content","_splitMarkerName","getItems","author","getMarkers","registerCustomCallback","column","suggestion-td","tablePaste","insertContent","getRanges","return","getChild","*Replace table cells*","tablePasteCell","tableCellBackgroundColor","filter","subType","first","map","keys","getAllAdjacentSuggestions","_descriptionFactory","start","insertionRanges","showSuggestionHighlights","setAttributes","accept","_replaceTableSlotCell","oldRange","register","every","reduce","createRangeOn","insertRows","cell","ck-suggestion-marker--active","_isForcedDefaultExecutionBlock","markMultiRangeInsertion","element","fromEntries","includes","remove","batch","getChildren","setAttribute","getColumns","view","hasSuggestion","add","tablePasteChainId","name","push","getTableIfOnlyTableInContent","position","Users","root","nextSibling","rowInsertionIndexes","documentSelection","getColumnIndexes","change","tableCellBorderColor","from","suggestionLoaded","commands","set","markerName","entries","tableCellSuggestion","stop","getRowIndexes","activeMarkers","previous","createElement","paragraph","isEqual","redo","previousSibling","formatBlock","_suggestionFactory","markerAttributes","rows","requires","unwrap","tablePasteColumn","markerToHighlight","move","clipboardOutput","discard","value","$graveyard","elementToElement","removeMarker","document","suggestion:formatBlock:tablePasteCell","cells","model","conversion","tableCell","insert","nodeAfter","markers","high","tableCellBorderWidth","removeRows","getSuggestions","last","registerPostFixer","editor","newRange","plugins"];var ua,da;ua=la,da=195,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x7b"),ga("0x51"),"tableCellBorderStyle",ga("0x0"),"tableCellVerticalAlignment",ga("0x22"),ga("0x9c")],ha=Object.fromEntries(fa[ga("0x26")]((t=>[t,null])));class ma extends t.Plugin{static get[ga("0x66")](){return[Jx]}[ga("0x2")](){const t=this[ga("0x80")];if(!t.plugins.has(ga("0x83")))return;const n=t.plugins.get(ga("0x8f")),r=t.plugins[ga("0x88")]("TableUtils"),i=t[ga("0x82")][ga("0x88")](Jx),o=t[ga("0x82")][ga("0x88")](ga("0x83"));i._tablePostFixingSubtypes.push("tablePasteRow","tablePasteColumn"),t[ga("0x74")][ga("0x92")][ga("0x31")]("tableCellSuggestion",{allowIn:ga("0x76"),allowContentOf:ga("0x76"),isLimit:!0}),t[ga("0x75")][ga("0x6f")]({model:ga("0x58"),view:"suggestion-td"});let s=null;t.model.on("insertContent",((i,x)=>{const[a,c]=x,l=x[x[ga("0x9")]-1];l&&l[ga("0x99")]||n[ga("0x38")]||this[ga("0x80")][ga("0x54")][ga("0x88")](ga("0x5"))[ga("0x6d")]&&function(t,e,n,r,i){if(e&&!e.is(ga("0x4e")))return!1;const o=i[ga("0x48")](t,n);if(!o||!ba(o,void 0,r))return!1;const s=r.getSelectionAffectedTableCells(n[ga("0x71")][ga("0xd")]);if(!s.length)return!1;const x=s[0][ga("0xa0")](ga("0x8d")),a=r[ga("0x5a")](s),c=r[ga("0x4f")](s),l={startRow:a[ga("0x25")],endRow:a[ga("0x7e")],startColumn:c[ga("0x25")],endColumn:c[ga("0x7e")]};return 1==s.length&&(l.endRow+=r.getRows(o)-1,l[ga("0x8e")]+=r[ga("0x41")](o)-1),ba(x,l,r)}(a,c,t[ga("0x74")],r,o)&&(i.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x74")].change((()=>{t[ga("0x74")][ga("0x1c")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ga("0x9")]&&n[ga("0x39")](i,ga("0x87"),{tablePasteChainId:r}),o[ga("0x9")]&&n[ga("0x39")](o,ga("0x68"),{tablePasteChainId:r}),a[ga("0x9")]&&n[ga("0x39")](a,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0x9")]&&n.markMultiRangeDeletion(c,ga("0x1b"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n[ga("0x94")](l[ga("0x26")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0x21"),{tablePasteChainId:r});if(u){const e=u.getMarkers(),n=[];for(const{element:r,attributes:i}of l){if(!i)continue;const o=t[ga("0x74")][ga("0x34")](r),s=e.find((t=>t.getRange().isEqual(o)));s&&n.push([s[ga("0x46")],i])}n[ga("0x9")]&&u[ga("0x40")]("markerAttributes",Object[ga("0x3b")](n))}s=null})))}),{priority:e.priorities.high+10}),t[ga("0x82")][ga("0x88")](ga("0x83")).on(ga("0x2f"),((t,e)=>{const[n,r,,i]=e;if(!s)return;t[ga("0x59")]();const o=n[ga("0x36")],x=r,a=pa(o),c=pa(x);t[ga("0x1e")]=o;let l=null,u=null;if(c||a)if(a&&!c){i[ga("0x3d")](o[ga("0x1f")](0));for(const t of Array[ga("0x52")](x.getChildren()))i[ga("0x77")](t,o,ga("0x10"));const t=s[ga("0x4d")][ga("0x3c")](n.row),e=s[ga("0xa1")].includes(n[ga("0x19")]);t||e||(l=i[ga("0x11")](o))}else c&&!a&&(u=i[ga("0x11")](o));else{const t=i.createElement(ga("0x58")),e=i[ga("0x5d")](ga("0x58"));i.wrap(i[ga("0x11")](o),e),i[ga("0x77")](t,o,0);for(const e of Array[ga("0x52")](x[ga("0x3f")]()))i[ga("0x77")](e,t,ga("0x10"));l=i.createRangeOn(t),u=i[ga("0x34")](e)}const d=Array[ga("0x52")](x.getAttributes())[ga("0x23")]((([t])=>fa.includes(t)));s[ga("0x73")][ga("0x47")]({element:o,attributes:d[ga("0x9")]?Object[ga("0x3b")](d):null}),l&&s[ga("0x2b")][ga("0x47")](l),u&&s.deletionRanges[ga("0x47")](u)}),{priority:ga("0x7a")}),r.on("insertColumns",((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o.columns||1;s[ga("0xa1")]=new Array(a).fill(x)[ga("0x26")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x9f")](i,{startColumn:x,endColumn:x+a-1}))s[ga("0x7")][ga("0x47")](t[ga("0x74")][ga("0x34")](e))}),{priority:ga("0x4")}),r.on(ga("0x35"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0x65")]||1;s[ga("0x4d")]=new Array(a)[ga("0x95")](x)[ga("0x26")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x9f")](i,{startRow:x,endRow:x+a-1}))s[ga("0xa")][ga("0x47")](t[ga("0x74")].createRangeOn(e))}),{priority:ga("0x4")}),n[ga("0x29")][ga("0x98")]((e=>{if(e[ga("0x24")]&&e[ga("0x24")][ga("0x91")](ga("0x1b")))return e[ga("0x5c")]?{}:{type:ga("0x1"),content:Jr(t.locale,ga("0x20"))}}));const x=()=>!1;for(const t of[ga("0x1b"),ga("0x68"),ga("0x87"),ga("0x21")])n[ga("0x63")][ga("0x18")](ga("0x1"),t,ga("0x9a"),x),n[ga("0x63")][ga("0x18")](ga("0x9d"),t,ga("0x9a"),x),n[ga("0x63")][ga("0x18")](ga("0x62"),t,ga("0x9a"),x);n._suggestionFactory[ga("0x18")](ga("0x62"),ga("0x21"),ga("0x6c"),x),n._suggestionFactory[ga("0x18")](ga("0x62"),ga("0x21"),ga("0x2e"),((e,n,r)=>{const i=e[ga("0x26")]((t=>t.getContainedElement()))[ga("0x23")]((t=>t)),o=new Map(i[ga("0x26")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ga("0x73")])e&&o[ga("0x55")](t,e);else if(r&&r[ga("0x64")])for(const[e,n]of Object[ga("0x57")](r[ga("0x64")])){const r=t[ga("0x74")][ga("0x79")][ga("0x88")](e),i=r?r.getRange()[ga("0xe")]():null;i&&o[ga("0x55")](i,n)}t.model[ga("0x50")]((t=>{for(const[e,n]of o)t[ga("0x2d")]({...ha,...n},e)}))}));const a=(e,r)=>{n[ga("0x63")][ga("0x18")](e,ga("0x1b"),r,((i,o,s)=>{t[ga("0x74")][ga("0x50")]((t=>{const x=[];for(const t of i){const e=t[ga("0x2a")][ga("0x78")];e.is("element",ga("0x58"))&&x[ga("0x47")](e)}n[ga("0x63")][ga("0x85")](e,null,r)(i,o,s);for(const e of x)ga("0x6e")!=e[ga("0x4b")].rootName&&t[ga("0x67")](e)}))}))};a(ga("0x1"),"accept"),a("insertion",ga("0x6c")),a(ga("0x9d"),ga("0x2e")),a(ga("0x9d"),ga("0x6c")),n[ga("0x63")][ga("0x18")]("insertion",ga("0x87"),ga("0x6c"),(t=>{const e=t[ga("0x26")]((t=>t[ga("0xe")]())),n=e[0].findAncestor(ga("0x8d")),{minRow:o,maxRow:s}=i._getCoordsForCells(e);r[ga("0x7c")](n,{at:o,rows:s-o+1})})),n[ga("0x63")].registerCustomCallback(ga("0x1"),ga("0x68"),ga("0x6c"),(t=>{const e=t[ga("0x26")]((t=>t.getContainedElement())),n=e[0][ga("0xa0")](ga("0x8d")),{minColumn:o,maxColumn:s}=i._getCoordsForCells(e);r.removeColumns(n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[ga("0x24")]||!e.subType[ga("0x91")](ga("0x1b")))return;const r=e[ga("0xa2")][ga("0x45")],i=n[ga("0x7d")]()[ga("0x23")]((t=>t[ga("0x97")]&&t[ga("0xa2")]&&t.attributes[ga("0x45")]==r));i[ga("0x9")]&&e.getAllAdjacentSuggestions()[ga("0x9")]!=i[ga("0x9")]&&i[ga("0x33")](((t,e)=>(t[ga("0x12")]=e,e[ga("0x5c")]=t,e)))};function l(t,e=!0){const{id:r}=n[ga("0x14")](t.markerName),i=[ga("0xc"),"ck-suggestion-marker-insertion"],o=n[ga("0x5b")][ga("0x3c")](t[ga("0x56")]);return o&&i[ga("0x47")](ga("0x37")),{classes:i,attributes:{"data-suggestion":r},priority:o&&e?3010:3e3}}n.on(ga("0x53"),c,{priority:ga("0x7a")}),n.on("suggestionUnloaded",c,{priority:ga("0x7a")}),t[ga("0x74")].document[ga("0x7f")]((()=>{let e=!1;const r=Array[ga("0x52")](t[ga("0x74")].document[ga("0x8b")][ga("0x89")]());for(const{name:i,data:o}of r){const{group:r,type:s,id:x}=n._splitMarkerName(i);if(ga("0x8c")!=r||"deletion"!=s||o.oldRange)continue;if(!n[ga("0x43")](x))continue;const a=n.getSuggestion(x)[ga("0x1d")](),c=t.plugins[ga("0x88")](ga("0x4a")).me;for(const t of n[ga("0x7d")]())if(t[ga("0x97")]&&t[ga("0x16")]==c&&ga("0x62")==t[ga("0x8")]&&ga("0x21")==t[ga("0x24")]&&t[ga("0x1d")]()[ga("0x32")]((t=>a.some((e=>e[ga("0x96")](t,!0))))))for(const n of t[ga("0x28")]())n[ga("0x97")]&&(n[ga("0x6c")](),e=!0)}return e})),t.model[ga("0x71")][ga("0x7f")]((e=>{const r=t.commands[ga("0x88")](ga("0x60"));if(!r||!r[ga("0x8a")][ga("0x9b")](e[ga("0x3e")]))return!1;let i=!1;const o=t[ga("0x82")][ga("0x88")](ga("0x4a")).me,s=t.model[ga("0x71")].differ[ga("0xf")](),x=Array[ga("0x52")](t[ga("0x74")][ga("0x71")][ga("0x8b")][ga("0x89")]())[ga("0x23")]((({name:t,data:e})=>{const{group:r,subType:i,authorId:s}=n[ga("0x14")](t);return ga("0x8c")==r&&ga("0x1b")==i&&s==o.id&&!e[ga("0x30")]}));for(const t of s){if(ga("0x77")!=t[ga("0x8")]||ga("0x58")!=t[ga("0x46")]||1!=t.length)continue;const n=e.createRange(t.position,t[ga("0x49")][ga("0x90")](1));if(!x.find((({data:t})=>t[ga("0x81")][ga("0x5f")](n))))for(const{name:t,data:r}of x)if(n[ga("0x96")](r[ga("0x81")])){e.updateMarker(t,{range:n}),i=!0;break}}return i})),t[ga("0x74")][ga("0x71")][ga("0x7f")]((e=>{let r=!1;const i=t.plugins[ga("0x88")](ga("0x4a")).me,o=n[ga("0x7d")]()[ga("0x23")]((t=>t.isInContent&&t[ga("0x16")]==i)),s=new Set,x=new Set;for(const t of o)if("tablePaste"==t[ga("0x24")])for(const e of t[ga("0x17")]()){const n=e[ga("0x9e")]()[ga("0xe")]();if(n)if(n.is(ga("0x3a"),ga("0x58"))&&pa(n)){t[ga("0x70")](e[ga("0x46")]),s[ga("0x44")](n),r=!0;const i=n[ga("0x4c")],o=n[ga("0x61")],a=i&&i.is(ga("0x3a"),ga("0x58")),c=o&&o.is(ga("0x3a"),ga("0x58"));a&&!s.has(i)&&x.add(i),c&&!s[ga("0x9b")](o)&&x[ga("0x44")](o)}else n.is(ga("0x3a"),ga("0x5e"))&&n[ga("0x86")]&&(t[ga("0x70")](e[ga("0x46")]),r=!0)}else if(ga("0x21")==t[ga("0x24")]){if(!t[ga("0xa2")]||!t[ga("0xa2")].tablePasteChainId)continue;const e=t.attributes.markerAttributes;if(e&&Object[ga("0x27")](e)[ga("0x9")])continue;const n=t[ga("0xa2")].tablePasteChainId;let i=!0,s=!0;for(const e of o)if(e[ga("0x24")]&&e.subType.startsWith(ga("0x1b"))){if(!e[ga("0xa2")][ga("0x45")]){s=!1;break}if(e.id!=t.id&&e[ga("0xa2")][ga("0x45")]==n){i=!1;break}}s&&i&&(t[ga("0xb")](),r=!0)}for(const t of s)e[ga("0x3d")](t);for(const t of x)e[ga("0x67")](t);return r})),t[ga("0x75")][ga("0x84")]("editingDowncast").markerToHighlight({model:ga("0x72"),view:(t,e)=>l(t),converterPriority:"high"}),t[ga("0x75")].for("dataDowncast")[ga("0x69")]({model:ga("0x72"),view:(t,e)=>e[ga("0x6")][ga("0x2c")]?l(t,!1):null,converterPriority:"high"});const u=t[ga("0x3")][ga("0x42")];this.listenTo(u[ga("0x71")],ga("0x6b"),((t,e)=>{const n=[];for(const t of u[ga("0x11")](e[ga("0x13")])[ga("0x15")]())t.is(ga("0x3a"),ga("0x1a"))&&n[ga("0x47")](t);u[ga("0x50")]((t=>{for(const e of n)t[ga("0x6a")](t[ga("0x11")](e),t[ga("0x93")](e)),t[ga("0x3d")](e)}))}))}}function pa(t){if(t[ga("0x86")])return!0;const e=t[ga("0x1f")](0);return e.is(ga("0x3a"),ga("0x5e"))&&e[ga("0x86")]}function ba(t,e={},n){for(const{isAnchor:r,cellHeight:i,cellWidth:o}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!r||1!=i||1!=o)return!1;return!0}const Ea=["bind","TableColumnResizeEditing","get","change","selection","TrackChangesEditing","table","commandParams","columnWidths","formatGroupId","markBlockFormat","getSelectedElement","plugins","subType","Users","type","format","handleResizeTableWidthCommand","formatBlock","data","locale","_descriptionFactory","getAttribute","model","_suggestionFactory","document","*Format:* resize table","editor","tableWidth","registerCustomCallback","getSuggestions","getSuggestionCallback","resizeTable","handleSuggestionDescription","discard"];var _a,Ta;_a=Ea,Ta=289,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{afterInit(){if(!this[ya("0x12")].plugins.has("TableColumnResizeEditing"))return;const t=this[ya("0x12")][ya("0x3")].get(ya("0x1f"));t.enableCommand("resizeTableWidth",this[ya("0x8")][ya("0x1a")](this)),t[ya("0xf")].registerCustomCallback(ya("0x9"),"resizeTable","accept",t[ya("0xf")][ya("0x16")](ya("0x9"),null,ya("0x19"))),t._suggestionFactory[ya("0x14")](ya("0x9"),ya("0x17"),ya("0x19"),t[ya("0xf")][ya("0x16")](ya("0x9"),null,"accept")),t[ya("0xc")].registerDescriptionCallback(this[ya("0x18")][ya("0x1a")](this))}handleResizeTableWidthCommand(t,e){const n=this[ya("0x12")][ya("0x3")][ya("0x1c")]("TrackChangesEditing"),r=this[ya("0x12")][ya("0x3")].get(ya("0x1b")),i=e[ya("0x20")]||this[ya("0x12")][ya("0xe")][ya("0x10")][ya("0x1e")][ya("0x2")]();this[ya("0x12")].model[ya("0x1d")]((()=>{const o=r.getColumnGroupElement(i);let s=o?r.getTableColumnsWidths(o):null,x=i[ya("0xd")]("tableWidth")||null;const a=e[ya("0x13")]||x,c=e.columnWidths||s,l=this.editor.plugins.get(ya("0x5")).me;for(const t of n[ya("0x15")]()){const e=t.getContainedElement();if("resizeTable"===t[ya("0x4")]&&e===i){t.author!==l&&t.discard();const e=t[ya("0xa")][ya("0x21")];x=e[0][ya("0x13")],s=e[0][ya("0x22")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[ya("0x1")](i,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0x17")},[],ya("0x17"))}))}[ya("0x18")](t){if(ya("0x9")!=t.type&&"formatInline"!=t[ya("0x6")])return;const{data:e}=t;if(e&&ya("0x17")===e[ya("0x0")]){const t=ya("0x11");return{type:ya("0x7"),content:Jr(this[ya("0x12")][ya("0xb")],t)}}}}const Aa=["TrackChangesEditing","Template","insertTemplate","has","plugins","editor","get","afterInit"];var ka,Ia;ka=Aa,Ia=184,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Ra=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{[Ra("0x7")](){const t=this[Ra("0x5")];t.plugins[Ra("0x3")](Ra("0x1"))&&t[Ra("0x4")][Ra("0x6")](Ra("0x0")).enableCommand(Ra("0x2"))}}const va=["locale","editor","_descriptionFactory","plugins","ELEMENT_TABLE_OF_CONTENTS","tableOfContents","TrackChangesEditing","enableCommand","insertTableOfContents","get","afterInit","commands"];var Na,La;Na=va,La=140,function(t){for(;--t;)Na.push(Na.shift())}(++La);const Ma=function(t,e){return va[t-=0]};class wa extends t.Plugin{[Ma("0x2")](){const t=this[Ma("0x5")];if(!t[Ma("0x3")][Ma("0x1")]("insertTableOfContents"))return;t[Ma("0x7")][Ma("0x1")](Ma("0xa"))[Ma("0xb")](Ma("0x0"));const e=t[Ma("0x7")][Ma("0x1")](Ma("0xa")),n=t[Ma("0x4")];e[Ma("0x6")].registerElementLabel(Ma("0x9"),(t=>Jr(n,Ma("0x8"),t)))}}const Oa=["_splitMarkerName","differ","TrackChangesEditing","registerElementLabel","newRange","document","start","updateMarker","plugins","createRange","model","afterInit","forward","title-content","isEqual","end","editor","isTouching","registerPostFixer","removeMarker","element","ELEMENT_TITLE","isCollapsed","get","has","Title"];var Fa,Da;Fa=Oa,Da=131,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Pa=function(t,e){return Oa[t-=0]};class Ba extends t.Plugin{[Pa("0xa")](){const t=this[Pa("0xf")];if(!t[Pa("0x7")][Pa("0x17")](Pa("0x18")))return;const e=t.plugins[Pa("0x16")](Pa("0x1"));e._descriptionFactory[Pa("0x2")](Pa("0xc"),(()=>Jr(t.locale,Pa("0x14")))),t.model[Pa("0x4")][Pa("0x11")]((n=>{let r=!1;const i=Array.from(t[Pa("0x9")][Pa("0x4")][Pa("0x0")].getChangedMarkers());for(const{name:o,data:s}of i){const{group:i}=e[Pa("0x19")](o);if("suggestion"!==i||!s[Pa("0x3")])continue;const x=s.newRange,a=x[Pa("0xe")].nodeBefore;if(!a||!a.is(Pa("0x13"),Pa("0xc")))continue;if(!x[Pa("0x5")][Pa("0x10")](x[Pa("0xe")]))continue;const c=t[Pa("0x9")].schema.getNearestSelectionRange(x[Pa("0xe")],Pa("0xb"));if(c&&c[Pa("0x15")]){const t=n[Pa("0x8")](x[Pa("0x5")],c[Pa("0x5")]);t[Pa("0xd")](x)||(n[Pa("0x6")](o,{range:t}),r=!0)}r||(n[Pa("0x12")](o),r=!0)}return r}))}}const Ua=["redo","enableCommand","UndoEditing","has","undo","get","TrackChangesEditing","plugins"];var ja,Ga;ja=Ua,Ga=322,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{afterInit(){const t=this.editor,e=t[Va("0x5")][Va("0x3")](Va("0x4"));t.plugins[Va("0x1")](Va("0x0"))&&(e[Va("0x7")](Va("0x2")),e[Va("0x7")](Va("0x6")))}}const za=["toggleTableCaption","enableCommand","plugins","afterInit","has","editor","get"];var Wa,Ka;Wa=za,Ka=270,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class Xa extends t.Plugin{static get requires(){return[Jx]}[qa("0x6")](){const t=this[qa("0x1")];t[qa("0x5")][qa("0x0")]("TableCaptionEditing")&&t.plugins[qa("0x2")]("TrackChangesEditing")[qa("0x4")](qa("0x3"))}}const $a=["tableWidth","tableCellBorderColor","subType","has","_getSuggestion","format","document","handleSuggestionDescription","formatBlock","pluginName","tableCellBorderWidth","tableCellWidth","batch","tableCellBorderStyle","accept","selection","plugins","tableHeight","tableBorderColor","TableUtils","TableCellPropertiesEditing","data","tableCellBackgroundColor","enableCommand","TrackChangesEditing","findAncestor","locale","get","tableBorderStyle","tableBorderWidth","model","commandParams","table","discard","join","handleDiscardAction","tableCellProperties","getSelectionAffectedTableCells","TablePropertiesEditing","registerDescriptionCallback","*Format:* change table properties","tableCellHeight","change","getSuggestions","getSuggestionCallback","tableProperties","setAttribute","getFirstPosition","tableCellPadding","_descriptionFactory","tableCellVerticalAlignment","tableCellHorizontalAlignment","editor","_handlePropertyChange","registerCustomCallback","_suggestionFactory","removeAttribute","afterInit","nodeAfter"];var Za,Ya;Za=$a,Ya=232,function(t){for(;--t;)Za.push(Za.shift())}(++Ya);const Ja=function(t,e){return $a[t-=0]};class Qa extends t.Plugin{constructor(t){super(t),this[Ja("0x31")]=[Ja("0x16"),Ja("0x20"),Ja("0x21"),"tableAlignment",Ja("0x4"),Ja("0x15"),"tableBackgroundColor"],this[Ja("0x28")]=[Ja("0x5"),Ja("0x11"),Ja("0xe"),Ja("0x34"),Ja("0xf"),Ja("0x2d"),Ja("0x1a"),Ja("0x37"),Ja("0x36")]}static get[Ja("0xd")](){return"TrackChangesTableProperties"}[Ja("0x2")](){const t=this[Ja("0x38")][Ja("0x14")].get("TrackChangesEditing");if(this[Ja("0x38")].plugins[Ja("0x7")](Ja("0x2a"))){for(const e of this[Ja("0x31")])t[Ja("0x1b")](e,((t,n)=>{const r=this.editor.model.document[Ja("0x13")][Ja("0x33")]()[Ja("0x1d")](Ja("0x24"));this._handlePropertyChange(e,[r],this[Ja("0x31")],Ja("0x31"),t,n)}));t[Ja("0x0")][Ja("0x3a")](Ja("0xc"),Ja("0x31"),Ja("0x12"),t._suggestionFactory[Ja("0x30")](Ja("0xc"),null,Ja("0x25"))),t[Ja("0x0")][Ja("0x3a")]("formatBlock",Ja("0x31"),"discard",((t,e)=>this[Ja("0x27")](this[Ja("0x31")],t,e))),t._suggestionFactory.registerCustomCallback(Ja("0xc"),Ja("0x31"),Ja("0x26"),(()=>!1))}if(this[Ja("0x38")].plugins[Ja("0x7")](Ja("0x18"))){for(const e of this.tableCellProperties)t[Ja("0x1b")](e,((t,n)=>{const r=this[Ja("0x38")].plugins[Ja("0x1f")](Ja("0x17"))[Ja("0x29")](this[Ja("0x38")][Ja("0x22")][Ja("0xa")][Ja("0x13")]);this[Ja("0x39")](e,r,this[Ja("0x28")],Ja("0x28"),t,n)}));t[Ja("0x0")][Ja("0x3a")](Ja("0xc"),"tableCellProperties",Ja("0x12"),t[Ja("0x0")].getSuggestionCallback(Ja("0xc"),null,"discard")),t[Ja("0x0")][Ja("0x3a")](Ja("0xc"),Ja("0x28"),Ja("0x25"),((t,e)=>this[Ja("0x27")](this[Ja("0x28")],t,e))),t[Ja("0x0")][Ja("0x3a")]("formatBlock",Ja("0x28"),Ja("0x26"),(()=>!1))}t[Ja("0x35")][Ja("0x2b")]((t=>this[Ja("0xb")](t)))}_handlePropertyChange(t,e,n,r,i,o){const s=this[Ja("0x38")][Ja("0x14")][Ja("0x1f")](Ja("0x1c"));this[Ja("0x38")][Ja("0x22")].enqueueChange(o[Ja("0x10")],(()=>{for(const t of e)if(this._getSuggestion(t,r))i(o);else{const e={};for(const r of n){const n=t.getAttribute(r);void 0!==n&&(e[r]=n)}i(o),s.markBlockFormat(t,{commandParams:[e]},[],r)}}))}handleDiscardAction(t,e,n){const r=e[0].start[Ja("0x3")],i=n[Ja("0x23")][0];this[Ja("0x38")][Ja("0x22")][Ja("0x2e")]((e=>{for(const n of t)void 0!==i[n]?e[Ja("0x32")](n,i[n],r):e[Ja("0x1")](n,r)}))}[Ja("0xb")](t){if(t[Ja("0x19")])switch(t.subType){case Ja("0x31"):return{type:Ja("0x9"),content:Jr(this.editor[Ja("0x1e")],Ja("0x2c"))};case"tableCellProperties":return{type:"format",content:Jr(this[Ja("0x38")].locale,"*Format:* change table cell properties")}}}[Ja("0x8")](t,e){const n=this.editor.plugins[Ja("0x1f")](Ja("0x1c"));for(const r of n[Ja("0x2f")]({skipNotAttached:!0})){const n=r.getContainedElement();if(r[Ja("0x6")]===e&&n===t)return r}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,rc=ec.hasOwnProperty,ic=nc.call(Object);const oc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=rc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==ic};const sc=function(t){return oc(t)?void 0:t};var xc=it?it.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,r,i,o){var s=-1,x=e.length;for(r||(r=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,i,o):sn(o,a):i||(o[o.length]=a)}return o};const lc=function(t){return(null==t?0:t.length)?cc(t,1):[]};const uc=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 dc=Math.max;const gc=function(t,e,n){return e=dc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=dc(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=r[i];return x[e]=n(s),uc(t,this,x)}};const fc=function(t){return function(){return t}};const hc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:fc(e),writable:!0})}:function(t){return t};var mc=Date.now;const pc=function(t){var e=0,n=0;return function(){var r=mc(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hc);const bc=function(t){return pc(gc(t,void 0,lc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=mr(e,t),r||(r=e.length>1),e})),oe(t,dn(t),n),r&&(n=tr(n,7,sc));for(var i=e.length;i--;)Wr(n,e[i]);return n})),Ec=["setAttribute","_updateSuggestionData","lowest","_joinSuggestions","insertion:","data-suggestion","suggestionChanged","attribute","createPositionAt","_afterChanges","notReady","ck-suggestion-marker-formatInline","$graveyard","after","markers","suggestionLoaded","never","isInContent","_setSuggestionRange","getShiftedBy","attributes","_getAttributeKey","some","addMarker:suggestion:formatBlock","track-changes-adapter-missing-getsuggestion","$elementName","markInlineFormat","acceptSelectedSuggestions","newValue","_trackFormatChanges","showSuggestionHighlights","creator","formatBlock:discard","dataReady","addCommentThread","isArray","selection","clone","attribute:join","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.","splitPosition","subType","ck-suggestion-marker--active","removeMarkers","data","formatInline","addMarker","oldRange","TrackChangesEditing","split","markerNameToElements","dataToMarker","_defaultCallbacks","conversion","_registerBlockAttribute","_splitMarkerName","attributeOldValue","concat","createRange","_initAriaMarkerChangeAnnouncements","bindElementToMarker","formatInline:","discardAllSuggestions","createPositionBefore","deletion","isMultiRange","resolve","addComment","clear","document","pop","track-changes-enable-command-twice","_reduceExistingSuggestions","author","removeMarker:suggestion:formatBlock","isObject","writer","isIntersecting","_recordAttributeSuggestions","enableCommand","_blockAttributeKeys","removeMarker","suggestion:attribute:","reconvertMarker","range","markMultiRangeInsertion","groupId","_suggestions","_commentsRepository","_isBlockAttribute","element","_addSuggestionMarker","elementEnd","root","FORMATTING","collaboration.channelId","change:_saved","external:","sort","attributeKey","formatBlock:accept","define","oldValue","removed","_getAuthorFromId","return","getContainedElement","filter","addSuggestionData","group","isExternal","high","catch","removeMarker:suggestion:attribute","_suggestionFactory","getRange","removeClass","suggestion","hasSuggestion","track-changes-suggestion-not-found","plugins","values","from","formatBlock:join","name","listenTo","before","markDeletion","createdAt","change","ck-suggestion-marker-","addUser","deleteContent","start","change:data","isDocumentOperation","hasComments","_reduceSuggestionAttributeRange","_cutOutSuggestionMarker","trackChanges.mergeNestedSuggestions","getNearestSelectionRange","documentSelection","_SUGGESTION_ANNOUNCEMENT","$marker","_processAttributeSuggestions","ck-suggestion-marker","upcast","buildSuggestion","locale","isAtStart","_descriptionFactory","_onDiscard","_checkSuggestionCorrectness","editingDowncast","rejected","_model","isTouching","_getMarkerAnnouncementText","add","deletion:chain","_adapter","deletion:join","formatInline:discard","howMany","getChangedMarkers","_recordAttributeChanges","formatInline:chain","deletion:discard","keys","isInsideObject","formatBlock:","containsPosition","containsItem","getAllAdjacentSuggestions","skipNestingCheck","announce","trackChanges.trackFormatChanges","setSelection","low","authoredAt","dataDowncast","ck-suggestion-marker-formatBlock","length","_getExternalAuthor","rootName","execute","getMultiRangeId","getAttribute","getFirstRange","remove","multi","updateMarker","stopListening","discardSelectedSuggestions","isBlock","unbindElementFromMarkerName","_registerInlineAttribute","discardSuggestion","$textProxy","containsRange","options","_handleNewSuggestionMarker","isLimit","join","createPositionAfter","key","addHighlight","targetPosition","getLastMatchingPosition","updateSuggestion","type","PENDING_ACTION_SUGGESTION","insertion:chain","markerToData","Users","model","multipleBlocks","LEAVE","init","markMultiRangeDeletion","getSuggestionCallback","move","_enabledCommands","config","_processAttributeChanges","addSuggestion","tablePasteChainId","toJSON","isBefore","track-changes-adapter-already-set","find","suggestionUnloaded","isLocal","_editor","getDifference","every","attribute:accept","adapter","forEach","addRange","differ","next","insertContent","_removeSuggestion","acceptSuggestion","discard","meta","_isForcedDefaultExecutionBlock","markAttributeChange","ready","CommentsRepository","isAfter","open","markInsertion","for","detach","activeMarkers","startsWith","_inlineAttributeKeys","then","_joinWithAdjacentSuggestions","deletion:accept","schema","removeAttribute","includes","ENTER","insertion:accept","enqueueChange","newRange","size","parent","addMarker:suggestion:attribute","get","_addThreadToSuggestion","isIntersectingWithRange","isCollapsed","trackChangesCommand","_breakSuggestionMarker","markMultiRangeBlockFormat","isRemovable","widget","isOwn","getCommentThread","fire","formatBlock:chain","unshift","accepted","accept","addClass","toUpperCase","getFirstMarker","getCustomProperty","$text","isUndo","toViewElement","highest","isAtEnd","consume","format","formatBlock","_rangeIsInLocalUserInsertion","_getSuggestionData","commands","setTo","nodeAfter","editor","backward","_mergeNestedSuggestions","getIntersection","containerElement","push","insertion","createSelection","attributeNewValue","getUser","_registerDefaultCallbacks","insert","formatGroupId","_isDataLoaded","has","track-changes-command-not-found","getSuggestion","markerToHighlight","delete","commandName","getChanges","mapper","registerPostFixer","chain","position","isSelectable","addMarker:suggestion","always","originalSuggestionId","track-changes-user-not-found","track-changes-suggestion-data-mismatch","deletion:","getRanges","normal","set","isEqual","batch","error-saving-suggestion-data-suggestion-discarded","fromRange","markBlockFormat","trackChanges","substring","_createSuggestion","_refreshAttributeSuggestionsChain","attribute:","pluginName","consumable","nodeBefore","_customCallbacks","_findSuggestions","requires","_setSuggestionData","fromCharCode","_refreshSuggestionsChain","value","substr","acceptAllSuggestions","_element","stop","markerReady","createRangeIn","_saved","getMarkers","ariaLiveAnnouncer","map","elementStart","forceDefaultExecution","_isRegisteredAttribute","_suggestionState","markerName","update:suggestion","containsRangeInObject","moveTargetPosition","@external","isNextTo","end","previous","suggestion:","getSuggestions","item","PendingActions","commentThread","splice"];var _c,Tc;_c=Ec,Tc=125,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc="$elementName";class Ac extends t.Plugin{static get[yc("0xe6")](){return[yc("0x7d"),o.Users,t.PendingActions,ai,gi,Ei,Ai,Fi,Ni,ji,Ki,io,Ao,vo,Fo,jo,Ko,Yo,ns,xs,ds,ys,ps,Rs,Ms,Ps,qs,tx,Vs,co,mo,ox,lx,hx,_x,Ix,Lx,Dx,Vx,qx,Jx,ia,ca,Xa,ma,Ca,wa,Qa,Sa,Ba,Ha]}static get[yc("0xe1")](){return yc("0x137")}constructor(t){function e(t){return t[yc("0xf4")]((t=>String[yc("0xe8")](t)))[yc("0x4e")]("")}super(t),this[yc("0x155")]=!1,this[yc("0xd6")](yc("0x83"),[]),this.on("change:activeMarkers",((e,n,r,i)=>{this._model[yc("0x4")]((()=>{for(const e of[...i,...r])this[yc("0x1e")][yc("0x115")].has(e)&&t.editing[yc("0x15a")](e)}))})),this[yc("0x19")]=new ri(this[yc("0xb4")][yc("0x5a")][yc("0x89")],this[yc("0xb4")][yc("0x17")]),this[yc("0x23")]=null,this[yc("0x179")]=new kc(this.editor),this[yc("0x15e")]=new Map,this._commentsRepository=t[yc("0x17f")][yc("0x93")](yc("0x7d")),this[yc("0x61")]=new Set,this[yc("0x1e")]=this[yc("0xb4")][yc("0x5a")],this[yc("0xf8")]=new WeakMap,this[yc("0x7a")]=!1,this[yc("0x157")]=new Set([yc("0x120")]),this[yc("0x85")]=new Set,t.config.define(yc("0x33"),"default"),this[yc("0x124")]=t.config[yc("0x93")]("trackChanges.trackFormatChanges"),t[yc("0x62")][yc("0x16c")](yc("0xe"),!0),this[yc("0xb6")]=t[yc("0x62")][yc("0x93")](yc("0xe")),this[yc("0x97")]=new d(t,this._enabledCommands),this[yc("0x142")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,52,49,48])}[yc("0x5d")](){const t=this[yc("0xb4")],n=(t,e)=>{if(yc("0x10e")!=t)return yc("0x5")+t;const n=e[yc("0x138")]("|")[0];return this[yc("0x160")](n)?yc("0x38"):yc("0x112")};t.conversion[yc("0x81")](yc("0x1c"))[yc("0xc5")]({model:yc("0x17c"),view:t=>{const{id:e,type:r,subType:i}=this[yc("0x13e")](t.markerName),o=[yc("0x14"),n(r,i)];let s=3e3;return this[yc("0x83")][yc("0x8b")](t[yc("0xf9")])&&(o[yc("0xb9")](yc("0x131")),s=3010),yc("0x147")==r&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[yc("0x81")](yc("0x37"))[yc("0x21")]((e=>{e.on(yc("0xce"),((e,n,r)=>{if(!r.options[yc("0x125")])return;const i=n[yc("0x103")];if(!i)return;const o=r[yc("0xc9")][yc("0xa9")](i);t[yc("0x5a")][yc("0x89")][yc("0x152")](i)&&o&&!o[yc("0xa6")](yc("0x9b"))&&o.is(yc("0xb8"))&&(0,x.toWidget)(o,r.writer)}),{priority:yc("0x176")})})),t.conversion[yc("0x81")]("dataDowncast")[yc("0xc5")]({model:yc("0x17c"),view:(t,e)=>{if(!e[yc("0x4b")].showSuggestionHighlights)return null;const{type:r,subType:i}=this[yc("0x13e")](t[yc("0xf9")]);return{classes:[yc("0x14"),n(r,i)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,i,o)=>{if(!i[yc("0x103")])return;const{id:s}=this[yc("0x13e")](i[yc("0xf9")]);if(n){const t=this._suggestions[yc("0x93")](s),e=this._getAttributeKey(t);if(!this[yc("0x160")](e))return}if(i.item.is(yc("0x12b")))return void o[yc("0xe2")][yc("0xac")](i[yc("0x103")],r[yc("0x183")]);const x=o[yc("0xc9")][yc("0xa9")](i[yc("0x103")]);if(i[yc("0x103")].is(yc("0x161"))&&t.model[yc("0x89")].isBlock(i[yc("0x103")])&&!x.getCustomProperty(yc("0x51"))){o[yc("0x153")].addClass([yc("0x14"),yc("0x38")],x),o[yc("0x153")][yc("0x107")](yc("0x10c"),s,x),o.mapper[yc("0x143")](x,i[yc("0xf9")]),e&&(this[yc("0x83")][yc("0x8b")](i[yc("0xf9")])?o.writer[yc("0xa3")]("ck-suggestion-marker--active",x):o[yc("0x153")][yc("0x17b")](yc("0x131"),x));for(const e of t[yc("0x5a")][yc("0xf0")](i[yc("0x103")]).getItems())o[yc("0xe2")][yc("0xac")](e,r[yc("0x183")]);o.consumable[yc("0xac")](i[yc("0x103")],r[yc("0x183")])}};t[yc("0x13c")][yc("0x81")]("dataDowncast")[yc("0x21")]((t=>{t.on(yc("0x11e"),((t,e,n)=>{n[yc("0x4b")].showSuggestionHighlights&&r({showActiveMarkers:!1})(t,e,n)}),{priority:yc("0xaa")})})),t.conversion[yc("0x81")](yc("0x37"))[yc("0x21")]((t=>{t.on(yc("0x92"),((t,e,n)=>{n[yc("0x4b")][yc("0x125")]&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:yc("0xaa")})})),t.conversion[yc("0x81")](yc("0x37"))[yc("0x58")]({model:yc("0x17c"),view:(t,e)=>e[yc("0x4b")][yc("0x125")]?null:{group:yc("0x17c"),name:t[yc("0xeb")](11)}}),t[yc("0x13c")].for("upcast").elementToElement({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x101")+t.getAttribute("suggestion-type")+":"+t.getAttribute("id");return t[yc("0x3e")]("marker-count")&&(n+=":"+t.getAttribute("marker-count")),e.createElement(yc("0x12"),{"data-name":n})}}),t[yc("0x13c")][yc("0x81")](yc("0x15"))[yc("0x13a")]({view:yc("0x17c")}),t[yc("0x13c")][yc("0x81")](yc("0x1c"))[yc("0x21")]((t=>{t.on("addMarker:suggestion:formatBlock",r(),{priority:yc("0x176")})})),t.conversion.for(yc("0x1c"))[yc("0x21")]((t=>{t.on(yc("0x92"),r({isAttributeSuggestion:!0}),{priority:yc("0x176")})})),t[yc("0x13c")].for(yc("0x1c"))[yc("0x21")]((t=>{t.on(yc("0x151"),((t,e,n)=>{const r=n.mapper[yc("0x139")](e[yc("0xf9")]);if(r)for(const t of r)t.getCustomProperty("addHighlight")||(n[yc("0x153")][yc("0x17b")]([yc("0x14"),yc("0x38"),"ck-suggestion-marker--active"],t),n.writer[yc("0x8a")](yc("0x10c"),t),n[yc("0xc9")][yc("0x46")](t,e.markerName))}),{priority:yc("0x176")})})),t[yc("0x13c")].for(yc("0x1c")).add((t=>{t.on(yc("0x178"),((t,e,n)=>{const r=n[yc("0xc9")].markerNameToElements(e[yc("0xf9")]);if(!r)return;const{id:i}=this[yc("0x13e")](e[yc("0xf9")]),o=this[yc("0x15e")].get(i),s=this[yc("0x11c")](o);if(this[yc("0x160")](s))for(const t of r)t[yc("0xa6")](yc("0x51"))||(n[yc("0x153")][yc("0x17b")]([yc("0x14"),yc("0x38"),"ck-suggestion-marker--active"],t),n[yc("0x153")][yc("0x8a")]("data-suggestion",t),n[yc("0xc9")][yc("0x46")](t,e.markerName))}),{priority:yc("0x176")})})),t[yc("0x5a")][yc("0x14c")][yc("0xca")]((e=>{let n=!1;const r=Array.from(t[yc("0x5a")].document.differ[yc("0x27")]()),i=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this._splitMarkerName(x);if(yc("0x17c")!==r)continue;const d=this._suggestions[yc("0x93")](u);if(null!=a[yc("0x8f")]){yc("0x134")==c&&(n=n||Sc(a[yc("0x8f")],x,e,t.model[yc("0x89")]));const r="attribute"==c&&this[yc("0x160")](l[yc("0x138")]("|")[0]);if(a[yc("0x8f")][yc("0x96")]||yc("0x113")==a.newRange.root.rootName||yc("0xae")==c&&!Nc(a[yc("0x8f")])||r&&!Nc(a.newRange)||"deletion"==c&&(Rc(s=a[yc("0x8f")])||(o=s)[yc("0x8")].parent==o[yc("0xff")][yc("0xe3")]&&o[yc("0x8")].isAtEnd))e[yc("0x158")](x),n=!0;else{if(!d||!d[yc("0x118")])continue;i[yc("0x21")](d)}}}var o,s;return i[yc("0x90")]>0&&(n=!!this[yc("0x87")](i)||n),n})),t[yc("0x5a")][yc("0x14c")][yc("0xca")]((e=>{let n=!1;for(const r of t[yc("0x5a")][yc("0x14c")][yc("0x73")].getChanges())if("insert"==r[yc("0x55")])for(const r of this[yc("0x15e")][yc("0x180")]()){if(r.isMultiRange||!r.isInContent)continue;const i=yc("0xae")==r[yc("0x55")],o=this[yc("0x11c")](r),s=o&&this[yc("0x160")](o);if(!i&&!s)continue;const x=r[yc("0x3f")]();if(x[yc("0x8")].parent!=x[yc("0xff")][yc("0x91")]&&!x[yc("0xff")][yc("0xab")]){const i=t[yc("0x5a")][yc("0x10f")](x[yc("0x8")][yc("0xb3")],yc("0xff")),o=t.model[yc("0x141")](x[yc("0x8")],i);e[yc("0x42")](r[yc("0xa5")](),{range:o}),n=!0}}return n})),t[yc("0x5a")][yc("0x14c")][yc("0xca")]((t=>this[yc("0x63")](t))),t[yc("0x5a")].document[yc("0xca")]((t=>!t[yc("0xd8")].isLocal&&this[yc("0x13")](t))),t[yc("0x5a")].on(yc("0x110"),(()=>{this[yc("0x155")]=!1})),t[yc("0x5a")][yc("0x14c")].on(yc("0x9"),((n,r)=>{if(!r.isLocal||r.isUndo)return;if(!this[yc("0x155")])return;const i=t.model[yc("0x14c")][yc("0x73")][yc("0xc8")]();if(0==i[yc("0x39")])return;const o=[],s=i.filter((t=>yc("0x10e")==t.type)),x=i.filter((t=>yc("0xbf")==t[yc("0x55")]&&yc("0xa7")!=t[yc("0x183")])),a=i[yc("0x172")]((t=>yc("0x40")==t.type&&yc("0xa7")!=t[yc("0x183")]));for(const e of s)this[yc("0xf7")](e[yc("0x16a")])&&o[yc("0xb9")]({key:e[yc("0x16a")],newValue:e[yc("0xbc")],oldValue:e[yc("0x13f")],range:Lc(e.range,t.model)});for(const e of x){const n=a[yc("0x69")]((t=>t._element===e[yc("0xed")]));if(n){const r=Mc(e.position[yc("0xb3")],t[yc("0x5a")]);n[yc("0x183")]!==e.name&&o[yc("0xb9")]({key:"$elementName",newValue:e[yc("0x183")],oldValue:n.name,range:r});for(const[t,i]of n[yc("0x11b")]){if(!this._isRegisteredAttribute(t))continue;const n=e[yc("0x11b")][yc("0x93")](t);i!==n&&o[yc("0xb9")]({key:t,newValue:n,oldValue:i,range:r})}for(const[t,i]of e.attributes)this._isRegisteredAttribute(t)&&(n[yc("0x11b")][yc("0xc2")](t)||o[yc("0xb9")]({key:t,newValue:i,oldValue:null,range:r}))}}0!=o[yc("0x39")]&&t[yc("0x5a")][yc("0x8e")](r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:i}of o)this[yc("0x7b")](t,e,r,i,{groupId:n});this._reduceExistingSuggestions(t,o)}))}),{priority:yc("0x109")}),t[yc("0x5a")][yc("0x115")].on(yc("0xfa"),((t,e,n)=>{if(null==n){const{id:t}=this[yc("0x13e")](e[yc("0x183")]),n=this[yc("0x15e")][yc("0x93")](t);n&&n.addMarkerName(e[yc("0x183")])}})),t[yc("0x5a")][yc("0x14c")].on(yc("0x9"),(()=>{const e=Array[yc("0x181")](t[yc("0x5a")][yc("0x14c")].differ[yc("0x27")]())[yc("0x172")]((t=>yc("0x17c")===this[yc("0x13e")](t.name)[yc("0x174")]));if(0===e[yc("0x39")])return;e[yc("0x169")](((t,e)=>{const n=t[yc("0x133")][yc("0x136")],r=e.data[yc("0x136")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n[yc("0x8")][yc("0x67")](r[yc("0x8")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:i}of e){const{id:e}=this[yc("0x13e")](t);if(null===i[yc("0x136")]){const e=this._handleNewSuggestionMarker(t);r[yc("0x21")](e)}else{const t=this[yc("0x15e")][yc("0x93")](e);null!==i[yc("0x8f")]||t[yc("0x118")]?(n[yc("0x21")](t.head),r[yc("0x21")](t)):this[yc("0x76")](t)}}r[yc("0x90")]>0&&this[yc("0xe9")](r);for(const t of n)this[yc("0x9e")]("suggestionChanged",t)})),t[yc("0x5a")].on("applyOperation",((e,n)=>{const r=n[0];if(!this[yc("0x15e")][yc("0x90")])return;if(!r[yc("0xa")])return;if(r[yc("0xd8")][yc("0xa8")]||!r[yc("0xd8")][yc("0x6b")])return;let i,o;switch(r[yc("0x55")]){case yc("0xbf"):i=t[yc("0x5a")][yc("0x10f")](r[yc("0xcc")]),o=i[yc("0x11a")](r[yc("0x26")]);break;case yc("0x138"):i=t[yc("0x5a")].createPositionAt(r[yc("0x12f")]),o=t.model[yc("0x10f")](r[yc("0xfc")]);break;case yc("0x60"):i=t[yc("0x5a")][yc("0x10f")](r[yc("0x52")]),o=i[yc("0x11a")](r[yc("0x26")]);break;default:return}const s=t[yc("0x5a")].createRange(i,o);t[yc("0x5a")][yc("0x4")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(s)){if(t[yc("0x148")])continue;if("formatInline"==t[yc("0x55")])continue;const n=this[yc("0x11c")](t);if(n&&this[yc("0x160")](n)&&yc("0x138")!=r[yc("0x55")])continue;const x=t[yc("0x133")]&&t[yc("0x133")][yc("0x5b")];(yc("0xae")!=t[yc("0x55")]||yc("0x138")==r[yc("0x55")]&&!x)&&(e[yc("0xfb")]||yc("0xba")==t[yc("0x55")]&&e[yc("0x9c")]||t[yc("0x3f")]()[yc("0x4a")](s)&&this[yc("0x98")](t,i,o))}}))}),{priority:yc("0x109")}),t[yc("0x5a")].on(yc("0x7"),((e,n)=>{const r=n[0],i=n[1];if(i&&i[yc("0xf6")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this.trackChangesCommand[yc("0xea")])return;if(r.isCollapsed)return;const o=t.model.schema,{start:s,end:x}=r.getFirstRange(),a=s[yc("0xb3")]&&o.isLimit(s[yc("0xb3")])?null:o[yc("0xf")](s,"forward"),c=x[yc("0xe3")]&&o[yc("0x4d")](x[yc("0xe3")])?null:o.getNearestSelectionRange(x,yc("0xb5")),l=t.model[yc("0x141")](a?a[yc("0x8")]:s,c?c[yc("0xff")]:x);t.model[yc("0x4")]((e=>{this[yc("0x2")](l);const n=t[yc("0x5a")][yc("0x89")][yc("0xf")](l.start);r.is(yc("0x10"))?e.setSelection(n):r[yc("0xb2")](n)})),e.stop()}),{priority:e.priorities[yc("0xd5")]+10}),t[yc("0x5a")].on("insertContent",((e,n)=>{const r=n[n.length-1];r&&r[yc("0xf6")]||this._isForcedDefaultExecutionBlock||this[yc("0x97")][yc("0xea")]&&(t.model.change((()=>{let r=t[yc("0x5a")][yc("0x75")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[yc("0x170")]=r[yc("0x12c")]();const i=r[yc("0xff")][yc("0xe3")],o=t[yc("0x5a")][yc("0x89")];i&&o[yc("0x45")](i)&&!o[yc("0x152")](i)&&(r=t.model[yc("0x141")](r.start,t.model[yc("0x10f")](i,yc("0xff")))),this[yc("0x80")](r)})),e[yc("0xee")]())}),{priority:yc("0x176")}),this[yc("0xb4")].commands[yc("0x21")](yc("0xdc"),this[yc("0x97")]),this[yc("0x156")](yc("0xdc"));const i=new p(t,this._suggestions);t[yc("0xb1")][yc("0x21")]("acceptSuggestion",i),this[yc("0x156")](yc("0x77"));const o=new y(t,this._suggestions);t[yc("0xb1")].add("discardSuggestion",o),this.enableCommand(yc("0x48")),t[yc("0xb1")].add(yc("0xec"),new F(t,i,this[yc("0x15e")])),this[yc("0x156")](yc("0xec")),t[yc("0xb1")][yc("0x21")](yc("0x145"),new F(t,o,this._suggestions)),this[yc("0x156")](yc("0x145")),t[yc("0xb1")][yc("0x21")](yc("0x122"),new j(t,i,this[yc("0x15e")])),this[yc("0x156")](yc("0x122")),t[yc("0xb1")][yc("0x21")](yc("0x44"),new j(t,o,this[yc("0x15e")])),this[yc("0x156")](yc("0x44"));const s=t[yc("0x17f")][yc("0x93")](yc("0x7d"));this[yc("0x0")](s,yc("0x14a"),((t,{threadId:e})=>{const n=this._suggestions[yc("0x93")](e);n&&n[yc("0x105")]&&1===n[yc("0x105")].length&&this[yc("0x108")](e,{hasComments:!0})}),{priority:yc("0x35")}),this[yc("0x0")](s,"removeComment",((t,{threadId:e})=>{const n=this[yc("0x15e")].get(e);n&&n[yc("0x105")]&&!n.commentThread[yc("0x39")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:yc("0x35")})}set[yc("0x70")](t){if(this[yc("0x23")])throw new e.CKEditorError(yc("0x68"),this);this[yc("0x23")]=t}get adapter(){return this._adapter}[yc("0x102")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[yc("0x15e")].values())t&&!e.isInContent||n[yc("0xb9")](e);return e?n[yc("0xf4")]((t=>t[yc("0x66")]())):n}getSuggestion(t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(yc("0x17e"),this);return n}[yc("0x17d")](t){return this[yc("0x15e")][yc("0xc2")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:r}=t,[i,o]=t.type[yc("0x138")](":"),s=this._suggestions[yc("0x93")](n)||this._createSuggestion(i,o,n,e,r);if(this[yc("0x94")](s),this[yc("0x1b")](s,i,o||null,e),s[yc("0x3")]=t[yc("0x3")],s._isDataLoaded=!0,r&&r[yc("0xfd")]){const t=r[yc("0xfd")],e=this._getExternalAuthor(t.authorName);s[yc("0x36")]=t[yc("0x3")],s[yc("0x150")]=e,s[yc("0x175")]=!0}else s.authoredAt=t[yc("0x3")];switch(t.data&&(s[yc("0x133")]=t[yc("0x133")]),t[yc("0x11b")]&&(s.attributes=t[yc("0x11b")]),this[yc("0x23")]&&this._adapter[yc("0x64")]||(s[yc("0xf1")]=!0),this[yc("0xf8")][yc("0x93")](s)){case yc("0x111"):this[yc("0xf8")].set(s,yc("0x128"));break;case"markerReady":s.isInContent?(this[yc("0x87")](new Set([s])),this[yc("0xe9")](new Set([s])),this._suggestionState[yc("0xd6")](s,yc("0x7c")),this[yc("0x9e")]("suggestionLoaded",s)):this[yc("0xf8")].set(s,"removed")}return s}[yc("0x77")](t){this[yc("0xf6")]((()=>{this[yc("0xb4")].model[yc("0x4")]((()=>{for(const e of t.getAllAdjacentSuggestions())e.accept()}))}))}[yc("0x48")](t){this[yc("0xf6")]((()=>{this[yc("0xb4")][yc("0x5a")][yc("0x4")]((()=>{for(const e of t[yc("0x30")]())e[yc("0x78")]()}))}))}enableCommand(t,n){const r=this[yc("0xb4")][yc("0xb1")][yc("0x93")](t);if(!r)throw new e.CKEditorError(yc("0xc3"),this,{commandName:t});if(this[yc("0x61")][yc("0xc2")](r))throw new e.CKEditorError(yc("0x14e"),this,{commandName:t});this[yc("0x61")][yc("0x21")](r),n&&r.on(yc("0x3c"),((t,e)=>{this[yc("0x97")].value&&(this[yc("0x7a")]||(e[yc("0x39")]>0&&e[e.length-1]&&e[e[yc("0x39")]-1][yc("0xf6")]?e[yc("0x14d")]():(t[yc("0x170")]=n(((...t)=>r.execute(...t,{forceDefaultExecution:!0})),...e),t.stop())))}),{priority:yc("0x176")})}[yc("0xf6")](t){let n,r;const i=this[yc("0x7a")];this[yc("0x7a")]=!0;try{n=t()}catch(t){r=t}return i||(this[yc("0x7a")]=!1),r&&e.CKEditorError.rethrowUnexpectedError(r,this),n}markInsertion(t,n=null,r={}){if(t[yc("0x96")])return null;const i=this.editor[yc("0x17f")][yc("0x93")](yc("0x59")).me;for(const{suggestion:e,meta:i}of this._findSuggestions(t,"insertion"))if(i.isOwn){if(!i[yc("0xfe")]){if(i[yc("0xfb")]){if(!this[yc("0xb6")]||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this._breakSuggestionMarker(e,t[yc("0x8")],t.end);break}if(n==e.subType&&Fc(e,r)){const n=e[yc("0x3f")]();return n[yc("0x8")].isEqual(t[yc("0xff")])?this[yc("0x119")](e,this[yc("0x1e")][yc("0x141")](t[yc("0x8")],n[yc("0xff")])):this[yc("0x119")](e,this._model[yc("0x141")](n[yc("0x8")],t[yc("0xff")])),e}}const o=(0,e.uid)(),s=i.id,x=n?yc("0x10b")+n:"insertion",a=this[yc("0xe7")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0x162")](x,o,s,t),a}[yc("0x15c")](t,n=yc("0x41"),r={}){const i=this[yc("0xb4")].plugins[yc("0x93")](yc("0x59")).me,o=this[yc("0x179")][yc("0x5f")](yc("0xba"),n,"join");for(const e of this[yc("0x102")]())if(e[yc("0x150")].id==i.id&&"insertion"==e[yc("0x55")]&&e[yc("0x130")]==n&&Fc(e,r)&&(o(e.getRanges(),t)||o(t,e[yc("0xd4")]()))){for(const n of t)e[yc("0x72")](n);return e}for(const{suggestion:e,meta:n}of this[yc("0xe5")](t,yc("0xba"))){if(!n.isOwn)continue;if(!this[yc("0xb6")]&&n[yc("0xfb")])continue;if(!Fc(e,r))continue;let i=!0;for(const n of e[yc("0xd4")]())for(const e of t)if(!n[yc("0x4a")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=yc("0x10b")+n,c=this[yc("0xe7")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[yc("0x162")](a,s,x,e,Yr.getMultiRangeId());return c}[yc("0x121")](t,n,r=null,i={}){if(r=r||vc(n),t[yc("0x96")])return null;if("never"===this._trackFormatChanges){const e=this[yc("0x179")][yc("0x5f")](yc("0x134"),r,yc("0xa2"));return this[yc("0xf6")]((()=>e([t],n,i))),null}const o=this[yc("0xb4")].plugins[yc("0x93")]("Users").me,s=[];if(yc("0xcf")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[yc("0xe5")](t,yc("0xba")))n.isOwn&&!n[yc("0x2c")]&&s[yc("0xb9")](...e[yc("0xd4")]());const x=function(t,e){const n=[];for(const r of e){const e=t[yc("0xb7")](r);e&&n[yc("0xb9")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[yc("0x39")];){const r=n[e].getDifference(t);n.splice(e,1,...r),e+=r[yc("0x39")]}}return n}(t,s);x[yc("0x39")]&&this._model.change((()=>{for(const t of x){const e=this[yc("0x179")][yc("0x5f")](yc("0x134"),r,"accept");this[yc("0xf6")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[yc("0x8")],a=t[yc("0xff")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0x134"))){if(!n[yc("0x9c")])continue;if(e[yc("0x130")]!=r)continue;if(!Fc(e,i))continue;const o=e.getFirstRange();if(o.containsRange(t,!0))return null;x=x[yc("0x67")](o[yc("0x8")])?x:o.start,a=a[yc("0x7e")](o[yc("0xff")])?a:o[yc("0xff")],s?o[yc("0x8")][yc("0x67")](s.getFirstRange()[yc("0x8")])?(s[yc("0x132")](),s=e):e.removeMarkers():s=e}const c=this[yc("0x1e")][yc("0x141")](x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=o.id;this[yc("0xe7")]({id:t,type:yc("0x144")+r,data:n,createdAt:new Date,authorId:s,attributes:i}),this._addSuggestionMarker(yc("0x144")+r,t,s,c)}}return null}[yc("0xdb")](t,n,r=[],i=null,o={}){n[yc("0xc0")]||(n[yc("0xc0")]=n[yc("0xc7")]),n[yc("0x5b")]=t.is(yc("0x15b")),i=i||vc(n);const s=r.map((t=>Mc(t,this._model))),x=t.is(yc("0x15b"))?t:Mc(t,this[yc("0x1e")]);if(yc("0x117")===this._trackFormatChanges){const t=this._suggestionFactory[yc("0x5f")](yc("0xae"),i,yc("0xa2"));return this[yc("0xf6")]((()=>t([x],n,o))),null}s[yc("0xb9")](x);let a=!0;for(const t of s)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&yc("0xcf")!==this[yc("0x124")]){const t=this[yc("0x179")][yc("0x5f")](yc("0xae"),i,yc("0xa2"));return this[yc("0xf6")]((()=>t([x],n,o))),null}let c=null,l=x.start,u=x[yc("0xff")];for(const{suggestion:t,meta:e}of this[yc("0xe5")](x,"formatBlock")){if(!e[yc("0x9c")])continue;if(e[yc("0xfe")]||e.containsRangeInObject||e[yc("0x2c")])continue;if(t[yc("0x133")][yc("0xc0")]!=n[yc("0xc0")])continue;if(!Fc(t,o))continue;const r=t[yc("0x3f")]();if(t[yc("0x130")]==i){if(r[yc("0x4a")](x,!0))return null;l=l[yc("0x67")](r[yc("0x8")])?l:r.start,u=u.isAfter(r[yc("0xff")])?u:r[yc("0xff")],c?r[yc("0x8")].isBefore(c[yc("0x3f")]()[yc("0x8")])?(c[yc("0x132")](),c=t):t[yc("0x132")]():c=t}else{const e=x.getIntersection(r);this[yc("0xd")](t,e)}}const d=this[yc("0xb4")][yc("0x17f")][yc("0x93")](yc("0x59")).me,g=(0,e.uid)(),f=d.id;if(c)return this._setSuggestionRange(c,this[yc("0x1e")][yc("0x141")](l,u)),c;{const t=this[yc("0xe7")]({id:g,type:yc("0x2d")+i,data:n,createdAt:new Date,authorId:f,attributes:o});return this[yc("0x162")](yc("0x2d")+i,g,f,this[yc("0x1e")][yc("0x141")](l,u)),t}}[yc("0x99")](t,n,r=[],i=null,o={}){n[yc("0xc0")]||(n.formatGroupId=n.commandName);const s=t[0];n.multipleBlocks=s.is(yc("0x15b")),i=i||vc(n);const x=r[yc("0xf4")]((t=>Mc(t,this[yc("0x1e")]))),a=s.is(yc("0x15b"))?t:t[yc("0xf4")]((t=>Mc(t,this[yc("0x1e")])));if(yc("0x117")===this[yc("0x124")]){const t=this[yc("0x179")][yc("0x5f")](yc("0xae"),i,yc("0xa2"));return this[yc("0xf6")]((()=>t(a,n,o))),null}x.push(...a);let c=!0;for(const t of x)if(!this[yc("0xaf")](t)){c=!1;break}if(c&&yc("0xcf")!==this[yc("0x124")]){const t=this[yc("0x179")][yc("0x5f")](yc("0xae"),i,yc("0xa2"));return this[yc("0xf6")]((()=>t(a,n,o))),null}const l=this[yc("0xb4")][yc("0x17f")].get(yc("0x59")).me;for(const t of this[yc("0x102")]()){if(t.author.id!=l.id)continue;if(yc("0xae")!=t[yc("0x55")]||t[yc("0x133")].formatGroupId!=n.formatGroupId)continue;if(!Fc(t,o))continue;const e=t.subType==i;for(let n=0;n<a[yc("0x39")];n++){const r=a[n];for(const i of t[yc("0xf2")]()){const o=i[yc("0x17a")]();if(r.isEqual(o)){e?(a[yc("0x106")](n,1),n--):t.removeMarker(i[yc("0x183")]);break}}}}if(0==a[yc("0x39")])return null;const u=this._suggestionFactory.getSuggestionCallback(yc("0xae"),i,"join");for(const t of this.getSuggestions())if(t[yc("0x150")].id==l.id&&yc("0xae")==t[yc("0x55")]&&t[yc("0x133")][yc("0xc0")]==n[yc("0xc0")]&&t.subType==i&&Fc(t,o)&&(u(t[yc("0xd4")](),a)||u(a,t[yc("0xd4")]()))){for(const e of a)t[yc("0x72")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0x2d")+i,h=this[yc("0xe7")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this._addSuggestionMarker(f,d,g,t,Yr[yc("0x3d")]());return h}[yc("0x2")](t,n=null,r={}){if(t[yc("0x96")])return null;const i=this[yc("0xb4")][yc("0x17f")].get(yc("0x59")).me,o=new s.LiveRange(t[yc("0x8")],t[yc("0xff")]);for(const{suggestion:t,meta:e}of this[yc("0xe5")](o,yc("0xba")))if(e[yc("0x9c")]&&!e.isNextTo)if(t[yc("0x148")]){const e=t[yc("0xd4")]()[yc("0x172")]((t=>"$graveyard"!=t[yc("0x164")][yc("0x3b")]));if(e[yc("0x6e")]((t=>o.containsRange(t,!0)))&&t[yc("0x78")](),e[yc("0x11d")]((t=>t[yc("0x4a")](o,!0)))){const t=this[yc("0x179")].getSuggestionCallback("deletion",n,yc("0xa2"));return this[yc("0xf6")]((()=>t([o],null,r))),null}}else{const e=o[yc("0xb7")](t[yc("0x3f")]());null!==e&&t[yc("0x1a")]([e],null,r)}if(o.detach(),o[yc("0x96")]||"$graveyard"==o[yc("0x164")][yc("0x3b")])return null;let x=null,a=o[yc("0x8")],c=o[yc("0xff")];const l=this[yc("0xe5")](o,yc("0x147"));for(const{suggestion:t,meta:e}of l){const n=this[yc("0x1e")].createRange(a,c);if(e.isOwn&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e.isInsideObject))if(t[yc("0x148")]){if(!Fc(t,r))continue;let e=!0;for(const r of t[yc("0xd4")]()){if(r[yc("0x4a")](n,!0))return t;n[yc("0x4a")](r)||(e=!1)}e&&t[yc("0x78")]()}else{const e=t[yc("0x3f")]();if(e[yc("0x4a")](n,!0))return t;if(!Fc(t,r)){n[yc("0x4a")](e)?t.removeMarkers():e[yc("0x2e")](a)?a=e[yc("0xff")]:e[yc("0x2e")](c)&&(c=e[yc("0x8")]);continue}a=a[yc("0x67")](e[yc("0x8")])?a:e.start,c=c[yc("0x7e")](e[yc("0xff")])?c:e[yc("0xff")],r=Object.assign({},t[yc("0x11b")]),x?e[yc("0x8")][yc("0x67")](x.getFirstRange()[yc("0x8")])?(x[yc("0x132")](),x=t):t[yc("0x132")]():x=t}}if(x)return this[yc("0x119")](x,this[yc("0x1e")][yc("0x141")](a,c)),x;{const t=(0,e.uid)(),o=this[yc("0x1e")].createRange(a,c),s=i.id,x=n?yc("0xd3")+n:yc("0x147"),l=this[yc("0xe7")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0x162")](x,t,s,o),l}}[yc("0x5e")](t,n="multi",r={}){const i=this.editor.plugins.get(yc("0x59")).me,o=t[yc("0xf4")]((t=>new s.LiveRange(t.start,t[yc("0xff")]))),x=new Set;for(const{suggestion:t,meta:e}of this[yc("0xe5")](o,yc("0xba")))e[yc("0x9c")]&&!e[yc("0xfe")]&&x[yc("0x21")](t);for(const e of x)if(e[yc("0x148")]){const i=e.getRanges();if((!e.attributes||!e[yc("0x11b")][yc("0x31")])&&i[yc("0x6e")]((t=>o[yc("0x11d")]((e=>e[yc("0x4a")](t,!0)))))&&e.discard(),o[yc("0x6e")]((t=>i.some((e=>e.containsRange(t,!0)))))){const e=this[yc("0x179")][yc("0x5f")]("deletion",n,yc("0xa2"));return this[yc("0xf6")]((()=>e(t,null,r))),null}}else{const t=e[yc("0x3f")]();if(o[yc("0x11d")]((e=>e[yc("0x4a")](t,!0)))&&e[yc("0x78")](),o[yc("0x6e")]((e=>t[yc("0x4a")](e,!0)))){const t=this[yc("0x179")][yc("0x5f")](yc("0x147"),n,"accept");return this.forceDefaultExecution((()=>t(o,null,r))),null}}const a=this[yc("0x179")][yc("0x5f")](yc("0x147"),n,yc("0x4e"));let c=null;for(const t of this[yc("0x102")]())if(t[yc("0x150")].id==i.id&&t[yc("0x118")]&&yc("0x147")==t[yc("0x55")]&&t[yc("0x130")]==n&&Fc(t,r)&&(a(t[yc("0xd4")](),o)||a(o,t[yc("0xd4")]())))if(c){if(t[yc("0x105")]&&t[yc("0x105")][yc("0x39")])continue;for(const e of t.getRanges())c[yc("0x95")](e)||c[yc("0x72")](e);t.removeMarkers()}else{c=t;for(const e of o)t[yc("0x95")](e)||t[yc("0x72")](e)}if(c)return c;x[yc("0x14b")]();for(const{suggestion:t,meta:e}of this[yc("0xe5")](o,yc("0x147")))e.isOwn&&(this[yc("0xb6")]||!e[yc("0xfb")]&&!e[yc("0x2c")])&&Fc(t,r)&&x.add(t);for(const t of x){const e=t[yc("0xd4")]();if((!r||!r[yc("0x31")])&&o[yc("0x6e")]((t=>e[yc("0x11d")]((e=>e[yc("0x4a")](t,!0))))))return t;(!t[yc("0x11b")]||!t[yc("0x11b")][yc("0x31")])&&e[yc("0x6e")]((t=>o[yc("0x11d")]((e=>e[yc("0x4a")](t,!0)))))&&t[yc("0x78")]()}const l=(0,e.uid)(),u=i.id,d=yc("0xd3")+n,g=this[yc("0xe7")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of o)t.detach(),t[yc("0x96")]||"$graveyard"==t[yc("0x164")].rootName||this[yc("0x162")](d,l,u,t,Yr[yc("0x3d")]());return g}[yc("0x7b")](t,n,r,i,o){if(t[yc("0x96")])return[];if(yc("0x117")===this._trackFormatChanges)return[];const s=this[yc("0xb4")][yc("0x17f")][yc("0x93")](yc("0x59")).me.id,x=Array[yc("0x181")](this[yc("0x15e")][yc("0x180")]())[yc("0x172")]((e=>"attribute"==e[yc("0x55")]&&e[yc("0x133")][yc("0x50")]==n&&e[yc("0x95")](t)));if("default"===this[yc("0x124")]){const e=this[yc("0xe5")](t,"insertion")[yc("0x172")]((({meta:t})=>t[yc("0x9c")]&&!t[yc("0x2c")]&&!t[yc("0xfe")]))[yc("0xf4")]((({suggestion:t})=>t));x[yc("0xa0")](...e)}const a=new Map([[t,r]]);for(const t of x){const e=yc("0x10e")==t.type?t[yc("0x133")].oldValue:void 0,o=t.getFirstRange(),s=Array.from(a[yc("0x2b")]()).find((t=>t[yc("0x154")](o)));if(!s)continue;const x=s[yc("0x6d")](o);this._isBlockAttribute(n)&&"insertion"==t[yc("0x55")]&&0!=x[yc("0x39")]||(a[yc("0xc6")](s),x.forEach((t=>{a[yc("0xd6")](t,r)})),yc("0xba")!=t[yc("0x55")]&&e!=i&&a[yc("0xd6")](s[yc("0xb7")](o),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:i};n.length>37&&console.warn(yc("0x12e"),{key:n});const l=(yc("0xe0")+(n+"|")+vc({newValue:i}))[yc("0xdd")](0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[yc("0xb9")](u),this._addSuggestionMarker(l,x,s,t)}return c}[yc("0x13d")](t){this[yc("0x157")][yc("0x21")](t)}[yc("0x47")](t){this[yc("0x85")][yc("0x21")](t)}_enableDefaultAttributesIntegration(t,e=[],n=[]){this[yc("0x156")](t,((t,...e)=>{this[yc("0x28")]((()=>{t(...e)}))}));for(const t of e)this._registerInlineAttribute(t);for(const t of n)this[yc("0x13d")](t)}_getAttributeKey(t){return"attribute"==t[yc("0x55")]?t[yc("0x130")][yc("0x138")]("|")[0]:null}_setSuggestionRange(t,e){const n=t[yc("0xa5")]();this._model[yc("0x4")]((t=>{t.updateMarker(n,{range:e})}))}[yc("0x94")](t){const e=t.id,n=this[yc("0xb4")].config.get(yc("0x166"));this[yc("0x15f")].hasCommentThread(e)||this[yc("0x15f")][yc("0x129")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this[yc("0x15f")][yc("0x9d")](e);r.unbind("isRemovable"),r[yc("0x9a")]=!1,t[yc("0x105")]=r}_checkSuggestionCorrectness(t,n,r,i){if(t.type!=n||t[yc("0x130")]!=r||t[yc("0x126")].id!=i)throw this[yc("0xb4")].enableReadOnlyMode(yc("0xd2")),new e.CKEditorError(yc("0xd2"),this)}[yc("0xd")](t,n){const r=t[yc("0x3f")]();if(n.isEqual(r))t.removeMarkers();else if(r[yc("0x4a")](n)){const i=this._model[yc("0x10f")](n[yc("0x8")][yc("0xe3")],yc("0xff"));this._setSuggestionRange(t,this[yc("0x1e")][yc("0x141")](r[yc("0x8")],i));const o=(0,e.uid)(),s=t.creator.id,x=t[yc("0x55")]+":"+t[yc("0x130")];this[yc("0xe7")]({id:o,type:x,createdAt:new Date,authorId:s,data:t[yc("0x133")],attributes:t[yc("0x11b")]});const a=this[yc("0x1e")][yc("0x10f")](n[yc("0xff")].parent,yc("0x114")),c=this._model[yc("0x141")](a,r[yc("0xff")]);this[yc("0x162")](x,o,s,c)}else if(r.containsPosition(n.start)){const e=this[yc("0x1e")][yc("0x10f")](n[yc("0x8")][yc("0xe3")],yc("0xff"));this[yc("0x119")](t,this[yc("0x1e")][yc("0x141")](r[yc("0x8")],e))}else{const e=this[yc("0x1e")][yc("0x10f")](n[yc("0xff")][yc("0x91")],"after");this[yc("0x119")](t,this[yc("0x1e")][yc("0x141")](e,r.end))}}[yc("0xaf")](t){for(const{suggestion:e,meta:n}of this[yc("0xe5")](t,yc("0xba"))){if(!n[yc("0x9c")])continue;const r=e.getRanges();for(const e of r)if(!t[yc("0x6d")](e).length)return!0}return!1}[yc("0x16f")](t){const n=this[yc("0xb4")].plugins[yc("0x93")](yc("0x59"))[yc("0xbd")](t);if(!n)throw new e.CKEditorError(yc("0xd1"),this);return n}[yc("0x3a")](t){const e=this[yc("0xb4")].plugins[yc("0x93")](yc("0x59")),n=(0,o.hashObject)(yc("0x168")+t);return e[yc("0xbd")](n)||e[yc("0x6")]({id:n,name:t})}[yc("0xde")](t,e,n,r,i){const o=this[yc("0x16f")](r),s=this[yc("0x179")][yc("0x16")](t,e,n,o,i,(t=>{this[yc("0x108")](n,{attributes:t});const e=this[yc("0xc4")](n);this[yc("0x87")](new Set([e])),this[yc("0xe9")](new Set([e]))}));return this[yc("0x0")](s,yc("0xa2"),(()=>{this._updateSuggestionData(n,{state:yc("0xa1")})}),{priority:yc("0x176")}),this[yc("0x0")](s,yc("0x78"),(()=>{this[yc("0x108")](n,{state:yc("0x1d")})}),{priority:yc("0x176")}),this[yc("0x15e")][yc("0xd6")](n,s),this[yc("0xf8")].set(s,"notReady"),s}[yc("0x13e")](t){const e=t[yc("0x138")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[yc("0x39")]<5?e[3]:e[4],markerCount:6==e[yc("0x39")]?e[5]:null}}[yc("0x98")](t,n,r){const i=t[yc("0x3f")](),o=i[yc("0x8")],s=i.end;this[yc("0x119")](t,this[yc("0x1e")].createRange(o,n));const x=(0,e.uid)(),a=t.creator.id,c=t.type+(t[yc("0x130")]?":"+t[yc("0x130")]:"");this[yc("0xe7")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[yc("0x11b")],data:t.data});const l=this[yc("0x11c")](t);(yc("0xae")==t[yc("0x55")]||l&&this[yc("0x160")](l))&&(r=this[yc("0x1e")][yc("0x146")](r[yc("0x91")])),this[yc("0x162")](c,x,a,this[yc("0x1e")][yc("0x141")](r,s))}[yc("0xe5")](t,e=null){const n=[],r=this[yc("0xb4")][yc("0x17f")][yc("0x93")](yc("0x59")).me;Array[yc("0x12a")](t)||(t=[t]);for(const i of this.getSuggestions()){if(!i[yc("0x118")])continue;if(e&&i[yc("0x55")]!=e)continue;let o=!1;for(const e of i[yc("0xd4")]()){for(const s of t){const t=s.start[yc("0xd7")](e.end)||s[yc("0xff")][yc("0xd7")](e.start);if(t||s.getIntersection(e)){const x=s[yc("0x4a")](e)&&Ic(this._model[yc("0x89")],e[yc("0x8")],s),a=e.containsRange(s)&&Ic(this[yc("0x1e")][yc("0x89")],s[yc("0x8")],e);n[yc("0xb9")]({suggestion:i,meta:{isOwn:r==i[yc("0x150")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0x162")](t,e,n,r,i){this[yc("0x1e")].change((o=>{let s=yc("0x101")+t+":"+e+":"+n;i&&(s=s+":"+i),o[yc("0x135")](s,{range:r,usingOperation:!0,affectsData:!0})}))}[yc("0x76")](t){const e=t[yc("0x100")],n=t.next;t[yc("0x100")]=null,t[yc("0x74")]=null,null!=e&&e.next==t&&(e.next=n),null!=n&&n[yc("0x100")]==t&&(n.previous=e),yc("0x7c")==this[yc("0xf8")][yc("0x93")](t)&&(this[yc("0xf8")][yc("0xd6")](t,yc("0x16e")),this[yc("0x9e")](yc("0x6a"),t,e,n))}[yc("0xe7")](t){const n=t.id,r=this[yc("0x173")](t);if(this[yc("0x23")]&&this[yc("0x23")][yc("0x64")]){const i=this[yc("0xb4")][yc("0x17f")].get(yc("0x104")),o=r[yc("0xb")],s=r[yc("0x130")]?r.type+":"+r[yc("0x130")]:r[yc("0x55")],x=this[yc("0xb4")][yc("0x17")],a=i[yc("0x21")](Jr(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:s,hasComments:o,data:t[yc("0x133")]||null,originalSuggestionId:t[yc("0xd0")]||null,attributes:r[yc("0x11b")]};this[yc("0x23")][yc("0x64")](c).then((t=>{r[yc("0xf1")]=!0,i[yc("0x40")](a),t&&t.createdAt&&(this[yc("0x15e")][yc("0x93")](n).createdAt=t[yc("0x3")])}))[yc("0x177")]((t=>{throw(0,e.logWarning)(yc("0xd9")),this.editor[yc("0x5a")][yc("0x8e")]({isUndoable:!1},(()=>{r.discard()})),r[yc("0x43")](),this._suggestions[yc("0xc6")](r.id),this[yc("0xf8")].delete(r),t}))}return r}_isBlockAttribute(t){return this[yc("0x157")][yc("0xc2")](t)}[yc("0x108")](t,e){const n=this[yc("0xb4")][yc("0x17f")][yc("0x93")]("PendingActions"),r=this[yc("0xc4")](t);if(this[yc("0x23")]&&this[yc("0x23")].updateSuggestion)if(r[yc("0xf1")]){const r=n[yc("0x21")](Jr(this[yc("0xb4")].locale,yc("0x56")));this[yc("0x23")][yc("0x54")](t,e)[yc("0x86")]((()=>{n[yc("0x40")](r)}))}else r.on(yc("0x167"),(()=>{this[yc("0x108")](t,e)}))}[yc("0xb0")](t){if(!this[yc("0x23")]||!this[yc("0x23")].getSuggestion)throw new e.CKEditorError(yc("0x11f"),this);return this[yc("0x23")][yc("0xc4")](t)}[yc("0x4c")](t){const{id:e,type:n,subType:r,authorId:i}=this[yc("0x13e")](t),o=this[yc("0x15e")][yc("0x93")](e)||this[yc("0xde")](n,r,e,i,{});switch(this._checkSuggestionCorrectness(o,n,r,i),this._suggestionState[yc("0x93")](o)){case yc("0x111"):this._getSuggestionData(e)[yc("0x86")]((t=>{let n=Promise[yc("0x149")]();t[yc("0xb")]&&(n=this[yc("0x15f")].fetchCommentThread({channelId:this[yc("0xb4")].config.get("collaboration.channelId"),threadId:e})),n[yc("0x86")]((()=>{this[yc("0x173")](t)[yc("0xf1")]=!0}))})),this[yc("0xf8")][yc("0xd6")](o,yc("0xef"));break;case yc("0x16e"):this[yc("0x108")](e,{state:yc("0x7f")});case yc("0x128"):this[yc("0xf8")][yc("0xd6")](o,yc("0x7c")),this[yc("0x9e")](yc("0x116"),o);break;case yc("0x7c"):this[yc("0x9e")](yc("0x10d"),o)}return o.addMarkerName(t),o}[yc("0xe9")](t){const e=Array[yc("0x181")](t),n=e[yc("0x172")]((t=>yc("0x10e")==t[yc("0x55")]));this._refreshAttributeSuggestionsChain(n);const r=e[yc("0x172")]((t=>!t[yc("0x148")]&&yc("0x10e")!=t[yc("0x55")])),i=this[yc("0x102")]({skipNotAttached:!0})[yc("0x172")]((t=>!t[yc("0x148")]&&"attribute"!=t[yc("0x55")])),o=i[yc("0x172")]((e=>!t.has(e))),s=new Map(i[yc("0xf4")]((t=>[t,this._suggestionFactory.getSuggestionCallback(t.type,t.subType,yc("0xcb"))]))),x=new Map(i[yc("0xf4")]((t=>[t,t[yc("0x3f")]()]))),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[yc("0x39")];t++)u(r[t],o,0);const l=new Set;for(let t=0;t<r[yc("0x39")];t++){const e=r[t];!c.has(e)&&e[yc("0x100")]&&(l[yc("0x21")](e[yc("0x100")]),e[yc("0x100")][yc("0x74")]===e&&(e[yc("0x100")].next=null),e[yc("0x100")]=null),!a[yc("0xc2")](e)&&e[yc("0x74")]&&(l[yc("0x21")](e.next),e[yc("0x74")].previous===e&&(e[yc("0x74")].previous=null),e[yc("0x74")]=null)}function u(t,e,n){for(let r=n;r<e[yc("0x39")];r++){const n=d(t,e[r]);n&&(n[0].next=n[1],n[1][yc("0x100")]=n[0],a.add(n[0]),c[yc("0x21")](n[1]))}}function d(t,e){if(t[yc("0x150")].id!==e[yc("0x150")].id)return null;const n=s[yc("0x93")](t)(t,e,x[yc("0x93")](t),x.get(e));return n&&s.get(e)(t,e,x[yc("0x93")](t),x[yc("0x93")](e))?n[1][yc("0x105")]&&n[1][yc("0x105")].length?null:n:null}l[yc("0x90")]&&this._refreshSuggestionsChain(l)}[yc("0xdf")](t){if(0==t[yc("0x39")])return;const e=this.getSuggestions({skipNotAttached:!0}).filter((t=>yc("0x10e")==t[yc("0x55")]&&t[yc("0xc1")])),n=[],r=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0x11b")]);r[yc("0xc2")](e)||(r[yc("0xd6")](e,n.length),n.push([]));const i=r.get(e);n[i][yc("0xb9")](t)}!function(){n[yc("0x169")](((t,e)=>{const n=t[0].createdAt,r=e[0][yc("0x3")];return n==r?t[0].attributes[yc("0x15d")]<e[0].attributes[yc("0x15d")]?-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.length;t++){if(0==n[t][yc("0x39")])continue;const e=[];for(let r=t+1;r<n.length;r++)0!=n[r][yc("0x39")]&&i(n[t],n[r])&&e[yc("0xb9")](r);for(const r of e)n[t]=n[t][yc("0x140")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t[yc("0x39")];e++)t[e][yc("0x74")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[yc("0x39")];e++)t[e][yc("0x100")]=t[e-1]||null;function i(t,e){if(t[0][yc("0x11b")].groupId!==e[0][yc("0x11b")].groupId&&t[0].author!==e[0][yc("0x150")])return!1;if(n=t[0],r=e[0],(n[yc("0xb")]||r.hasComments)&&(n.hasComments&&r[yc("0xb")]||!(n[yc("0xb")]&&r[yc("0x3")]<n[yc("0x105")].comments.get(0)[yc("0x3")]||r.hasComments&&n[yc("0x3")]<r[yc("0x105")].comments[yc("0x93")](0).createdAt)))return!1;var n,r;const i=bc(t[0].attributes,"groupId"),o=bc(e[0][yc("0x11b")],yc("0x15d"));return!!jr(i,o)&&(!!t[yc("0x6e")]((t=>e[yc("0x11d")]((e=>t[yc("0x3f")]()[yc("0xd7")](e.getFirstRange())))))&&e.every((e=>t[yc("0x11d")]((t=>e[yc("0x3f")]()[yc("0xd7")](t[yc("0x3f")]()))))))}}[yc("0x87")](t){const e=Array[yc("0x181")](t),n=this[yc("0x102")]({skipNotAttached:!0}),r=n[yc("0x172")]((e=>!t[yc("0xc2")](e))),i=new Map(e[yc("0xf4")]((t=>[t,this[yc("0x179")][yc("0x5f")](t[yc("0x55")],t[yc("0x130")],yc("0x4e"))]))),o=new Map(n[yc("0xf4")]((t=>[t,t[yc("0xd4")]()])));for(let t=0;t<e[yc("0x39")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0x39")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[yc("0x39")];s++){const r=n[s];if(r[yc("0x55")]!==e.type||r[yc("0x150")].id!==e[yc("0x150")].id||r[yc("0x130")]!==e.subType)continue;if(!Oc(e,r,[yc("0x15d")]))continue;if(yc("0x10e")==e.type&&e.data[yc("0x16d")]!=r.data[yc("0x16d")])continue;if("attribute"==e[yc("0x55")]&&t[yc("0x160")](e[yc("0x133")].key))continue;if("formatBlock"==e[yc("0x55")]){const n=t[yc("0xb4")].model,r=e[yc("0x171")]();if(r&&(n.schema[yc("0x152")](r)||n[yc("0x89")].isLimit(r)))continue}const x=i.get(e),a=o[yc("0x93")](e),c=o[yc("0x93")](r),l=e.commentThread&&e[yc("0x105")].length,u=r[yc("0x105")]&&r.commentThread.length;if(!l&&x(c,a))return t._joinSuggestions(r,e),o[yc("0xc6")](e),!0;if(!u&&x(a,c))return t[yc("0x10a")](e,r),o[yc("0xc6")](r),!0}return!1}}_joinSuggestions(t,e){if(t[yc("0x148")])for(const n of e[yc("0xd4")]())t.addRange(n);else{const n=e[yc("0x3f")]().end;this._setSuggestionRange(t,this[yc("0x1e")][yc("0x141")](t[yc("0x3f")]().start,n))}e[yc("0x132")]()}[yc("0x20")](t,e){const n=t[yc("0x84")](yc("0xad"))||t[yc("0x84")](yc("0x10e"))?yc("0x165"):t[yc("0xa4")]();return Jr(this.editor[yc("0x17")],e+"_"+n+yc("0x11"))}[yc("0x142")](){const t=this[yc("0xb4")];(0,o.surroundingMarkersDetector)(this[yc("0x1e")],(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[yc("0x13e")](t[yc("0x183")]);if(yc("0x17c")===e){r[yc("0xb9")](this._getMarkerAnnouncementText(n,yc("0x5c")));break}}for(const t of n){const{group:e,type:n}=this[yc("0x13e")](t[yc("0x183")]);if(yc("0x17c")===e){r[yc("0xb9")](this[yc("0x20")](n,yc("0x8c")));break}}r[yc("0x39")]&&t.ui[yc("0xf3")][yc("0x32")](yc("0xdc"),r[yc("0x4e")](" "))}))}[yc("0x63")](t){if(this[yc("0x155")])return!1;const e=this.editor,n=e[yc("0x5a")].document[yc("0x73")][yc("0xc8")]();if(0==n.length)return!1;const r=[],i=n[yc("0x172")]((t=>"attribute"==t[yc("0x55")])),o=n[yc("0x172")]((t=>yc("0xbf")==t[yc("0x55")]&&yc("0xa7")!=t.name)),s=n[yc("0x172")]((t=>yc("0x40")==t.type&&yc("0xa7")!=t[yc("0x183")]));for(const t of i)r[yc("0xb9")]({key:t.attributeKey,newValue:t.attributeNewValue,oldValue:t.attributeOldValue,range:Lc(t[yc("0x15b")],e[yc("0x5a")])});for(const t of o){const n=s[yc("0x69")]((e=>e[yc("0xcc")][yc("0xd7")](t[yc("0xcc")])));n&&r[yc("0xb9")]({key:yc("0x120"),newValue:t[yc("0x183")],oldValue:n[yc("0x183")],range:e[yc("0x5a")].createRangeOn(t[yc("0xcc")][yc("0xb3")])})}return 0!=r[yc("0x39")]&&this[yc("0x14f")](t,r)}[yc("0x13")](t){let e=!1;const n=this.editor[yc("0x5a")][yc("0x14c")][yc("0x73")].getChangedMarkers().filter((t=>t.data[yc("0x8f")]&&t.name[yc("0x84")](yc("0x159"))));for(const r of n){const{subType:n,id:i}=this[yc("0x13e")](r.name),o=n[yc("0x138")]("|")[0];for(const n of this[yc("0x102")]({skipNotAttached:!0}))n.id!=i&&yc("0x10e")==n[yc("0x55")]&&n[yc("0x133")]&&n.data.key==o&&n.getFirstRange()[yc("0x154")](r[yc("0x133")][yc("0x8f")])&&(this[yc("0xc")](n,r[yc("0x133")][yc("0x8f")],t),e=!0)}return e}_recordAttributeChanges(t){this[yc("0xb4")],this[yc("0x155")]=!0,t()}_isRegisteredAttribute(t){const e=this[yc("0x160")](t),n=this[yc("0x85")][yc("0xc2")](t);return e||n}[yc("0x14f")](t,e){if(0==e[yc("0x39")])return!1;let n=!1;for(const r of e){const e=this[yc("0xe5")](r.range,yc("0x10e"))[yc("0x172")]((t=>!t[yc("0x79")][yc("0xfe")]))[yc("0xf4")]((t=>t[yc("0x17c")])),i=(0,o.hashObject)({newValue:r[yc("0x123")]});e[yc("0x172")]((t=>{const[e,n]=t[yc("0x130")][yc("0x138")]("|");return e==r[yc("0x50")]&&n!=i}))[yc("0x71")]((e=>{this[yc("0xc")](e,r[yc("0x15b")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const r=t[yc("0x3f")]()[yc("0x6d")](e);0!==r.length?1!==r[yc("0x39")]?this._breakSuggestionMarker(t,e[yc("0x8")],e[yc("0xff")]):this[yc("0x119")](t,r[0]):n[yc("0x158")](t.getFirstMarker())}}class kc{constructor(t){this[yc("0x6c")]=t,this[yc("0x1e")]=t[yc("0x5a")],this[yc("0xe4")]=new Map,this._defaultCallbacks=new Map,this[yc("0xbe")]()}[yc("0x16")](t,e,n,r,i,o){return new Yr(this[yc("0x1e")],{type:t,subType:e,id:n,author:r,creator:r,attributes:i,onAttributesChange:o,onAccept:(...n)=>this.getSuggestionCallback(t,e,yc("0xa2"))(...n),onDiscard:(...n)=>this[yc("0x5f")](t,e,yc("0x78"))(...n)})}registerCustomCallback(t,e,n,r){const i=t+":"+e+":"+n;this[yc("0xe4")][yc("0xd6")](i,r)}[yc("0x5f")](t,e,n){const r=t+":"+e+":"+n;return this._customCallbacks[yc("0x93")](r)||this[yc("0x13b")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[yc("0x169")](((t,e)=>t.start[yc("0x67")](e.start)?1:-1)),this[yc("0x1e")][yc("0x4")]((e=>{for(const n of t){let t;t=n.end[yc("0xab")]&&n.end.parent==n[yc("0x8")][yc("0xb3")]?e[yc("0xbb")](n.start.nodeAfter,"on"):e[yc("0xbb")](n),this[yc("0x1e")][yc("0x7")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[yc("0x4")]((n=>{const{commandName:r,commandParams:i=[]}=e,o=t[yc("0xf4")]((t=>(Rc(t)&&(t=this[yc("0x1e")][yc("0x141")](t[yc("0xff")])),t)))[yc("0x172")]((t=>yc("0x113")!==t[yc("0x164")].rootName));if(o[yc("0x39")]<1)return;const x=Array[yc("0x181")](this[yc("0x1e")][yc("0x14c")][yc("0x12b")][yc("0xd4")]())[yc("0xf4")]((t=>s.LiveRange[yc("0xda")](t)));n.setSelection(o);for(const t of this[yc("0x6c")][yc("0xb1")][yc("0xb1")]())t.refresh();i.push({forceDefaultExecution:!0}),this[yc("0x6c")].execute(r,...i);const a=x[yc("0x172")]((t=>yc("0x113")!=t[yc("0x164")].rootName));a[yc("0x39")]>0&&n[yc("0x34")](a);for(const t of x)t[yc("0x82")]()}))},r=(t,e)=>1==t[yc("0x39")]&&1==e[yc("0x39")]&&t[0].end[yc("0xd7")](e[0][yc("0x8")]),i=(t,e,n,r)=>wc(t,e,n,r,this[yc("0x1e")])?[t,e]:wc(e,t,r,n,this._model)?[e,t]:null;this[yc("0x13b")][yc("0xd6")](yc("0x8d"),t),this[yc("0x13b")].set("insertion:discard",e),this[yc("0x13b")][yc("0xd6")]("insertion:join",r),this[yc("0x13b")][yc("0xd6")](yc("0x57"),i),this[yc("0x13b")][yc("0xd6")](yc("0x88"),e),this[yc("0x13b")][yc("0xd6")](yc("0x2a"),t),this[yc("0x13b")].set(yc("0x24"),r),this[yc("0x13b")][yc("0xd6")](yc("0x22"),i),this._defaultCallbacks[yc("0xd6")]("formatInline:accept",n),this[yc("0x13b")][yc("0xd6")](yc("0x25"),t),this[yc("0x13b")][yc("0xd6")]("formatInline:join",r),this[yc("0x13b")][yc("0xd6")](yc("0x29"),t),this[yc("0x13b")][yc("0xd6")](yc("0x16b"),n),this[yc("0x13b")][yc("0xd6")](yc("0x127"),t),this[yc("0x13b")][yc("0xd6")](yc("0x182"),r),this[yc("0x13b")][yc("0xd6")](yc("0x9f"),t),this[yc("0x13b")].set(yc("0x6f"),t),this._defaultCallbacks.set("attribute:discard",((t,e)=>{if(!e)return;const n=this[yc("0x6c")][yc("0x17f")].get(Ac);this[yc("0x1e")][yc("0x4")]((r=>{if(yc("0x120")==e[yc("0x50")])for(const n of t){const t=n[yc("0x8")][yc("0xb3")],i=e[yc("0x16d")];r.rename(t,i)}else if(n[yc("0x160")](e[yc("0x50")]))for(const n of t)void 0!==e[yc("0x16d")]?r[yc("0x107")](e.key,e[yc("0x16d")],n[yc("0x8")][yc("0xb3")]):r.removeAttribute(e[yc("0x50")],n[yc("0x8")][yc("0xb3")]);else for(const n of t)e[yc("0x16d")]?r.setAttribute(e[yc("0x50")],e[yc("0x16d")],n):r.removeAttribute(e[yc("0x50")],n)}))})),this[yc("0x13b")].set(yc("0x12d"),r)}}function Ic(t,e,n){for(const r of e[yc("0x91")].getAncestors({includeSelf:!0,parentFirst:!0})){if(r[yc("0x164")]==r)return!1;if(!n[yc("0x2f")](r))return!1;if(t[yc("0x152")](r)||t[yc("0x4d")](r))return!0}return!1}function Rc(t){return t.end[yc("0x91")]==t[yc("0x8")].nodeAfter&&t[yc("0xff")][yc("0x18")]}function Sc(t,e,n,r){const i=t=>!t[yc("0x103")].is(yc("0x49"))&&!r.isObject(t[yc("0x103")]),o=t[yc("0x8")].getLastMatchingPosition(i),s=t[yc("0xff")][yc("0x53")](i,{direction:yc("0xb5")});return!(t[yc("0x8")][yc("0xd7")](o)&&t[yc("0xff")].isEqual(s)||(o[yc("0x67")](s)?n[yc("0x42")](e,{range:n[yc("0x141")](o,s)}):n[yc("0x158")](e),0))}function vc(t){return(0,o.hashObject)(t)}function Nc(t){const e=t[yc("0x8")].nodeAfter;return e&&e.is(yc("0x161"))}function Lc(t,e){return null==t[yc("0xff")][yc("0xe3")]&&t[yc("0xff")][yc("0x91")]==t[yc("0x8")][yc("0xb3")]?Mc(t.start[yc("0xb3")],e):t}function Mc(t,e){const n=e[yc("0x89")][yc("0x152")](t)||e[yc("0x89")][yc("0xcd")](t);return e[yc("0x141")](e.createPositionAt(t,yc("0x1")),n?e[yc("0x4f")](t):e[yc("0x10f")](t,"end"))}function wc(t,e,n,r,i){if(!Oc(t,e))return!1;if(n[yc("0xff")][yc("0xd7")](r[yc("0x8")]))return!0;if(t[yc("0x55")]!=e[yc("0x55")])return!1;if(!n.end[yc("0x1f")](r[yc("0x8")]))return!1;const o=i[yc("0x141")](n[yc("0xff")],r[yc("0x8")]).getWalker();for(const t of o)if([yc("0xf5"),yc("0x163")].includes(t.type)&&i.schema[yc("0x4d")](t[yc("0x103")]))return!1;return!0}function Oc(t,e,n=[]){return!(!t._isDataLoaded||!e._isDataLoaded)&&jr(bc(t.attributes,n),bc(e[yc("0x11b")],n))}function Fc(t,e){const n=Dc(t[yc("0x11b")]),r=Dc(e);if(!t[yc("0xc1")])return!1;for(const t of Object.keys(r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object.assign({},t);return delete e.skipNestingCheck,delete e[yc("0x65")],e}const Pc=["stopListening","canEditAt","add","isEnabled","_pendingAction","get","execute","_setPendingAction","commands","isDirty","unbind","getRanges","canAccept","_removePendingAction","_editor","_discardCommand","locale","_acceptCommand","PendingActions","canDiscard","acceptSuggestion","discardSuggestion","view","commentThreadController","listenTo","model","bind","remove"];var Bc,Uc;Bc=Pc,Uc=404,function(t){for(;--t;)Bc.push(Bc.shift())}(++Uc);const jc=function(t,e){return Pc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[jc("0xd")]=e,this[jc("0xa")]=n,this[jc("0xb")]=r,this._editor=t,this[jc("0x5")]=t.commands[jc("0x15")](jc("0x8")),this[jc("0x3")]=t[jc("0x18")].get("discardSuggestion"),this[jc("0xa")][jc("0xe")](jc("0x13")).to(this[jc("0x5")],this[jc("0x3")],((t,e)=>t||e)),this.view[jc("0xe")](jc("0x0")).to(this._acceptCommand,jc("0x13"),(t=>t&&this[jc("0x2")][jc("0xd")][jc("0x11")](e[jc("0x1b")]()))),this[jc("0xa")][jc("0xe")]("canDiscard").to(this[jc("0x3")],jc("0x13"),(t=>t&&this[jc("0x2")].model[jc("0x11")](e[jc("0x1b")]()))),this[jc("0x14")]=null,n[jc("0x19")]&&this[jc("0x17")](),this[jc("0xc")](n,"acceptSuggestion",(()=>this[jc("0x8")]())),this[jc("0xc")](n,jc("0x9"),(()=>this[jc("0x9")]())),this[jc("0xc")](n,"change:isDirty",(()=>{n[jc("0x19")]?this[jc("0x17")]():this._removePendingAction()}))}acceptSuggestion(){this[jc("0x5")][jc("0x16")](this[jc("0xd")].id)}[jc("0x9")](){this[jc("0x3")][jc("0x16")](this[jc("0xd")].id)}destroy(){this[jc("0xa")][jc("0x1a")](jc("0x13")),this[jc("0xa")][jc("0x1a")](jc("0x0")),this[jc("0xa")][jc("0x1a")](jc("0x7")),this[jc("0x10")](),this[jc("0xb")].destroy(),this[jc("0x14")]&&this[jc("0x1")]()}[jc("0x17")](){const t=Jr(this._editor[jc("0x4")],"PENDING_ACTION_SUGGESTION");this[jc("0x14")]=this._editor.plugins[jc("0x15")](jc("0x6"))[jc("0x12")](t)}[jc("0x1")](){null!==this._pendingAction&&this._editor.plugins[jc("0x15")](jc("0x6"))[jc("0xf")](this[jc("0x14")]),this._pendingAction=null}}const Vc=["_createCommentViews","isReadOnly","_localUser","cancel","commentsListView","setData","assign","_config","canAccept","_model","commentInputView","focus","hasDirtyComment","element","set","locale","fire","delegate","removeComment","CommentView","destroy","isEnabled","showInput","isActive","bind","descriptionParts","length","authoredAt","commentThread","commentThreadInputView","disableComments","editorConfig","isDirty","disabledSubmit","addComment","_createCommentThreadInputView","submit","editor"];var Hc,zc;Hc=Vc,zc=127,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends i.View{constructor(t,e,n,r){super(t),this[Wc("0x1d")]=null,this[Wc("0x10")]=null,this[Wc("0x1")](Wc("0xa"),!1),this[Wc("0x1")]("authoredAt",e.authoredAt),this.bind(Wc("0xe")).to(e),this[Wc("0x1")](Wc("0xc"),[]),this.set(Wc("0x13"),!1),this[Wc("0x1")](Wc("0x8"),!1),this.set(Wc("0x21"),!1),this.set("canDiscard",!1),this[Wc("0x22")]=e,this[Wc("0x1b")]=n,this._config=r,r[Wc("0x11")]?this[Wc("0x1")](Wc("0xd"),1):this[Wc("0x19")]()}[Wc("0x24")](){this[Wc("0x0")][Wc("0x24")]()}[Wc("0x7")](){this.commentsListView&&this[Wc("0x1d")][Wc("0x7")](),this[Wc("0x10")]&&this[Wc("0x10")][Wc("0x7")](),super[Wc("0x7")]()}[Wc("0x19")](){const{CommentsListView:t}=this._config;this[Wc("0x1d")]=new t(this[Wc("0x2")],this._model[Wc("0xf")],Object[Wc("0x1f")]({CommentView:this[Wc("0x20")][Wc("0x6")]},this[Wc("0x20")])),this.commentsListView[Wc("0x4")](Wc("0x5")).to(this),this[Wc("0x1d")].delegate("updateComment").to(this),this[Wc("0x1d")][Wc("0xb")](Wc("0xa")).to(this),this.set(Wc("0xd"),this[Wc("0x1d")][Wc("0xd")]+1),this.bind(Wc("0xd")).to(this[Wc("0x1d")],Wc("0xd"),(t=>t+1)),this.commentThreadInputView=this[Wc("0x16")](),this.on(Wc("0x5"),(()=>this[Wc("0x24")]())),this[Wc("0xb")]("isDirty").to(this.commentsListView,Wc("0x25"),this[Wc("0x10")].commentInputView,"value",((t,e)=>t||!!e))}[Wc("0x16")](){const{CommentThreadInputView:t}=this[Wc("0x20")],e=new t(this[Wc("0x2")],this[Wc("0x1b")],this[Wc("0x20")][Wc("0x12")]),n=e[Wc("0x23")];return e[Wc("0xb")](Wc("0x9")).to(this,"isActive",this[Wc("0x22")][Wc("0xf")],Wc("0x1a"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(Wc("0x17"),((t,e)=>{this[Wc("0x3")](Wc("0x15"),e),n[Wc("0x18")][Wc("0x1e")]("")})),n.on(Wc("0x1c"),(()=>this[Wc("0x24")]())),n[Wc("0xb")](Wc("0x14")).to(this[Wc("0x22")][Wc("0xf")],Wc("0x1a")),e}}const qc=["content","userView","</span>","acceptSuggestion","setTemplate","div","isEnabled","ck-annotation__main","push","ck-annotation__info-time","canDiscard",'<span class="ck-suggestion-type">',"commentsListView","<p>","ck-suggestion-wrapper","_model","check","ck-comment__info-time","isExternal","bind","ck-suggestion__info","extendTemplate","formatDateTime","creator","ck-annotation__content-wrapper","value","EXTERNAL_IMPORT_WORD_AVATAR","@external","ck-suggestion--discard","ck-comment__external","delegate","locale","span","_createButton","map","editorDestroyed","ck-annotation","discardButton","source",'"></span>',"editorReady","cancel","render","color","EXTERNAL_SUGGESTION","authoredAt","discardSuggestion","</p>","canAccept","commentThreadInputView","innerHTML","ck-annotation__user",".ck-annotation__content-wrapper","isActive","element","_descriptionElement","descriptionParts","ck-suggestion-wrapper--active","set","getExternalSuggestionNote","time","author","children","getUserViewNotificationText","name","ck-suggestion-","importWord","ck-suggestion__main","acceptButton","ck-annotation__info-name","description","type","_config","disableComments","ck-suggestion__user","Discard suggestion","ck-suggestion--disabled-comments","ck-annotation__actions","split","ck-suggestion__info-name","attributes","querySelector","Accept suggestion"];var Xc,$c;Xc=qc,$c=323,function(t){for(;--t;)Xc.push(Xc.shift())}(++$c);const Zc=function(t,e){return qc[t-=0]};class Yc extends Kc{constructor(e,n,r,i){super(e,n,r,i),this[Zc("0x43")](Zc("0x50"),""),this.bind(Zc("0x50")).to(this,Zc("0x41"),(t=>t&&t[0]?t[0].type:"")),this.bind("description").to(this,Zc("0x41"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+=Zc("0x16")+Jc(e[Zc("0x9")],e[Zc("0x34")])+Zc("0x38");return e?n:(0,o.trimHtml)(n,{limit:140})})),this[Zc("0x40")]=null,this[Zc("0x4d")]=this[Zc("0x2a")](Jr(e,Zc("0x8")),t.icons[Zc("0x19")],"ck-suggestion--accept",Zc("0xc"),"sw"),this[Zc("0x4d")][Zc("0x1c")](Zc("0xf")).to(this,Zc("0x39")),this[Zc("0x2e")]=this[Zc("0x2a")](Jr(e,Zc("0x1")),t.icons[Zc("0x32")],Zc("0x25"),Zc("0x37"),"sw"),this[Zc("0x2e")][Zc("0x1c")]("isEnabled").to(this,Zc("0x13")),this[Zc("0xa")]=new o.UserView(e,this[Zc("0x18")][Zc("0x46")],this[Zc("0x48")]()),this[Zc("0xa")][Zc("0x1e")]({attributes:{class:[Zc("0x0"),Zc("0x3c")]}}),this[Zc("0xd")](this.getTemplate())}getTemplate(){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:[Zc("0x1d"),"ck-annotation__info"]},children:[{tag:"span",children:[{text:this[Zc("0xa")][Zc("0x49")]}],attributes:{class:[Zc("0x5"),Zc("0x4e")]}},{tag:Zc("0x45"),attributes:{datetime:t.to(Zc("0x36")),class:[Zc("0x1a"),Zc("0x12")]},children:[{text:t.to("authoredAt",(t=>this[Zc("0x51")][Zc("0x1f")](t)))}]}]},{tag:Zc("0xe"),attributes:{class:["ck-suggestion__actions",Zc("0x3")]},children:[this[Zc("0x4d")],this[Zc("0x2e")]]},{tag:Zc("0xe"),attributes:{class:[Zc("0x21")]}}];this[Zc("0x18")].isExternal&&e.push({tag:Zc("0xe"),attributes:{class:[Zc("0x26")]},children:[{text:this[Zc("0x44")]()}]});const n={tag:Zc("0xe"),attributes:{class:[Zc("0x17"),t.if(Zc("0x3e"),Zc("0x42")),t.to("type",(t=>Zc("0x4a")+t)),this[Zc("0x51")][Zc("0x52")]&&Zc("0x2")],"data-suggestion-id":this[Zc("0x18")].id,"data-thread-id":this[Zc("0x18")].commentThread.id,"data-author-id":this[Zc("0x18")][Zc("0x46")].id,tabindex:-1},children:[{tag:Zc("0xe"),attributes:{class:["ck-suggestion",Zc("0x2d")]},children:[this[Zc("0xa")],{tag:Zc("0xe"),attributes:{class:[Zc("0x4c"),Zc("0x10")]},children:e}]}]};return this[Zc("0x15")]&&this[Zc("0x3a")]&&(n[Zc("0x47")][Zc("0x11")](this[Zc("0x15")],this[Zc("0x3a")]),this[Zc("0x15")][Zc("0x27")](Zc("0x31")).to(this),this[Zc("0x15")][Zc("0x27")](Zc("0x2c")).to(this),this[Zc("0x3a")][Zc("0x27")](Zc("0x31")).to(this),this.commentThreadInputView[Zc("0x27")]("editorDestroyed").to(this)),n}[Zc("0x33")](){super.render(),this[Zc("0x40")]=this[Zc("0x3f")][Zc("0x7")](Zc("0x3d")),this[Zc("0x40")][Zc("0x3b")]=this[Zc("0x4f")],this.on("change:description",((t,e,n)=>{this[Zc("0x40")][Zc("0x3b")]=n}))}[Zc("0x2a")](t,e,n,r,o){const s=new i.ButtonView(this.locale);return s.set({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Zc("0x1e")]({attributes:{class:n}}),s.on("execute",(()=>{this.fire(r,this[Zc("0x18")].id)})),s}[Zc("0x44")](){return"importWord"===this[Zc("0x18")][Zc("0x6")][Zc("0x24")].source?Jr(this[Zc("0x28")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Jr(this[Zc("0x28")],Zc("0x35"))}[Zc("0x48")](){return this[Zc("0x18")][Zc("0x1b")]?Zc("0x4b")===this[Zc("0x18")].attributes[Zc("0x24")][Zc("0x2f")]?Jr(this[Zc("0x28")],Zc("0x23"),this[Zc("0x18")].creator[Zc("0x49")]):Jr(this[Zc("0x28")],"EXTERNAL_AVATAR",this[Zc("0x18")][Zc("0x20")].name):null}}function Jc(t,e){let n="";return n+=t[Zc("0x4")]("*")[Zc("0x2b")](((t,e)=>e%2!=0?Zc("0x14")+Qc(t)+Zc("0xb"):Qc(t))).join(""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[Zc("0x22")]+'" title="'+e.title+Zc("0x30")),n}function Qc(t){const e=document.createElement(Zc("0x29"));return e.innerText=t,e.innerHTML}const tl=["isInContent","comments","init","getRanges","_viewToController","lowest","config","getMarkerNames","add","_bindAnnotationToEditors","bind","editing","getAllAdjacentSuggestions","type","_destroyController","_disableComments","Track changes","_suggestionToController","TrackChangesEditing","activeAnnotations","suggestionLoaded","focus","trackChanges.SuggestionThreadView","length","commands","reduce","_descriptionFactory","clear","discardButton","head","comments.maxCommentCharsWhenCollapsed","trackChanges.disableComments","registerAnnotation","acceptSelectedSuggestions","remove","model","mainView","commandName","Discard all suggestions","createAnnotation","addSourceCollector","switchbutton","push","activeMarkers","_annotationViews","filter","change:activeAnnotations","isDirty","suggestionUnloaded","unbind","getByInnerView","_unbindEditors","requires","_updateController","createAnnotationView","Annotations","suggestion-","plugins","locale","from","previous","pluginName","button","map","_handleControllerBuffer","SuggestionThreadView","refreshSelectedViews","_createUIButton","value","CommentView","arrowView","actionView","innerView","_initializeController","keys","buttonView","size","CommentsUI","getSuggestion","componentFactory","getFirstRange","_handleSuggestionControllerDelayed","comments.editorConfig","some","getDescriptions","delete","acceptAllSuggestions","view","listenTo","has","values","_refreshActiveMarkers","define","get","EditorAnnotations","addComment","isOn","set","CommentsRepository","destroy","execute","comments.maxCommentsWhenCollapsed","change:previous","trackChanges","isMultiRange","acceptButton","isEnabled","discardAllSuggestions","comments.maxThreadTotalWeight","stopListening","toMany","getJoined","editor"];var el,nl;el=tl,nl=470,function(t){for(;--t;)el.push(el.shift())}(++nl);const rl=function(t,e){return tl[t-=0]};class il extends t.Plugin{static get[rl("0x22")](){return[Ac,o.Users,rl("0x50"),"Annotations","EditorAnnotations"]}static get[rl("0x2b")](){return"TrackChangesUI"}constructor(t){super(t),this[rl("0x70")]=new Map,this[rl("0x63")]=new Map,this[rl("0x1a")]=new Map,this[rl("0x2e")]=new Map;const e=this[rl("0x5e")][rl("0x65")];e[rl("0x4a")](rl("0x4"),Yc),e[rl("0x4a")](rl("0xd"),!1),this[rl("0x6e")]=e[rl("0x4b")](rl("0xd"))}[rl("0x3f")](t,e){0===this[rl("0x2e")][rl("0x3a")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this._suggestionToController[rl("0x47")](t);n||e?n&&e&&this._destroyController(t):this[rl("0x37")](t)}this[rl("0x2e")][rl("0x9")](),this[rl("0x5e")][rl("0x27")][rl("0x4b")](rl("0x4c"))[rl("0x30")](),this._refreshActiveMarkers()}),10),this[rl("0x2e")].set(t,e)}[rl("0x61")](){const t=this.editor,e=t.plugins[rl("0x4b")]("TrackChangesEditing"),n=t.plugins[rl("0x4b")](rl("0x25")),r=t[rl("0x27")][rl("0x4b")](rl("0x4c")),i=t.plugins[rl("0x4b")](rl("0x50"));t.ui[rl("0x3d")][rl("0x67")](rl("0x55"),(t=>this._createUIButton(t))),r[rl("0x16")]((()=>{const t=[];for(const[e,n]of Array[rl("0x29")](this._suggestionToController)){const r=e[rl("0x6b")](),i=[];for(const t of r){if(!t.isInContent)continue;if(t[rl("0x56")]){i[rl("0x18")](...t[rl("0x62")]());continue}const e=t[rl("0x3e")]();if(i[rl("0x5")]>0){const t=i[0][rl("0x5d")](e);if(t){i[0]=t;continue}}i[rl("0x18")](e)}t[rl("0x18")]([n[rl("0x45")],i])}return t})),this[rl("0x46")](e,rl("0x2"),((t,e)=>{this[rl("0x46")](e,rl("0x54"),((t,n,r,i)=>{e[rl("0x5f")]&&(null==r?(this[rl("0x23")](i[rl("0xb")]),this[rl("0x3f")](e,!1)):(this._updateController(r.head),null==i&&this[rl("0x3f")](e,!0)))})),null!==e[rl("0x2a")]?this._updateController(e[rl("0xb")]):this[rl("0x3f")](e,!1)})),this[rl("0x46")](e,rl("0x1e"),((t,e,n)=>{this[rl("0x5b")](e,"change:previous"),this._handleControllerBuffer[rl("0x43")](e),this[rl("0x70")][rl("0x47")](e)&&this[rl("0x6d")](e),n&&this[rl("0x23")](n[rl("0xb")])})),this[rl("0x46")](e,"suggestionChanged",((t,e)=>{this._updateController(e)})),this[rl("0x46")](n,rl("0x1c"),(()=>{this._refreshActiveMarkers()})),this.listenTo(i,rl("0x4d"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e.hasSuggestion(n))return;const i=e[rl("0x3c")](n);this[rl("0x70")][rl("0x4b")](i)[rl("0x45")][rl("0x3")]()}),{priority:rl("0x64")})}[rl("0x49")](){const t=this[rl("0x5e")][rl("0x27")].get(rl("0x25")),e=this[rl("0x5e")][rl("0x27")].get(rl("0x0")),n=Array[rl("0x29")](t[rl("0x1")],(t=>t[rl("0x36")]))[rl("0x1b")]((t=>this[rl("0x63")].has(t))),r=[];for(const t of n){const e=this._viewToController[rl("0x4b")](t)[rl("0x11")][rl("0x6b")]();r[rl("0x18")](...e[rl("0x7")](((t,e)=>[...t,...e[rl("0x66")]()]),[]))}e[rl("0x19")]=r}[rl("0x31")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),r=this.editor.commands[rl("0x4b")]("trackChanges"),o=Jr(t,rl("0x6f"));n[rl("0x39")][rl("0x4f")]({tooltip:o,label:o,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-2024, 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.buttonView[rl("0x69")]("isOn").to(r,rl("0x32")),n.buttonView.on(rl("0x52"),(()=>{r[rl("0x52")](),this.editor[rl("0x6a")][rl("0x45")].focus()}));const s=new e.Collection,x=[{type:rl("0x17"),model:{withText:!0,label:o,commandName:"trackChanges"}},{type:"separator"},{type:rl("0x2c"),model:{withText:!0,label:Jr(t,"Accept all suggestions"),commandName:rl("0x44")}},{type:"button",model:{withText:!0,label:Jr(t,"Accept all selected suggestions"),commandName:rl("0xf")}},{type:rl("0x2c"),model:{withText:!0,label:Jr(t,rl("0x14")),commandName:rl("0x59")}},{type:rl("0x2c"),model:{withText:!0,label:Jr(t,"Discard all selected suggestions"),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:"separator"};if(t[rl("0x11")]){const n=new i.ViewModel(t[rl("0x11")]),r=this[rl("0x5e")][rl("0x6")][rl("0x4b")](n[rl("0x13")]);n.bind(rl("0x4e"),"isEnabled").to(r,"value",rl("0x58")),e={type:t.type,model:n}}s[rl("0x67")](e)}(0,i.addListToDropdown)(n,s);const a=x[rl("0x1b")]((t=>null!=t[rl("0x11")]))[rl("0x2d")]((t=>this[rl("0x5e")][rl("0x6")][rl("0x4b")](t[rl("0x11")][rl("0x13")]))),c=n[rl("0x39")];return c[rl("0x35")].unbind(rl("0x58")),c.arrowView[rl("0x1f")](rl("0x58")),c[rl("0x35")][rl("0x69")](rl("0x58")).to(r,"isEnabled"),c[rl("0x34")][rl("0x69")](rl("0x58"))[rl("0x5c")](a,rl("0x58"),((...t)=>t[rl("0x41")]((t=>t)))),n.on(rl("0x52"),(t=>{this.editor[rl("0x52")](t.source[rl("0x13")]),this[rl("0x5e")][rl("0x6a")][rl("0x45")].focus()})),n}[rl("0x37")](t){const e=this.editor,n=e[rl("0x65")],r=e.plugins[rl("0x4b")](rl("0x25")),i=e[rl("0x27")][rl("0x4b")]("CommentsRepository"),s=e.plugins[rl("0x4b")]("EditorAnnotations"),x=e[rl("0x27")].get(o.Users).me,a=n.get(rl("0x55"))[rl("0x2f")],{CommentsListView:c,CommentThreadInputView:l}=e[rl("0x27")].get(rl("0x3b"));let u,d;this[rl("0x1a")][rl("0x47")](t.id)?(d=this[rl("0x1a")][rl("0x4b")](t.id),u=d[rl("0x12")]):(u=new a(e[rl("0x28")],t,x,{disableComments:this[rl("0x6e")],editorConfig:n[rl("0x4b")](rl("0x40")),maxCommentsWhenCollapsed:n[rl("0x4b")](rl("0x53")),maxThreadTotalWeight:n[rl("0x4b")](rl("0x5a")),maxCommentCharsWhenCollapsed:n[rl("0x4b")](rl("0xc")),formatDateTime:(0,o.getDateTimeFormatter)(n[rl("0x4b")](rl("0x28"))),CommentView:n[rl("0x4b")](rl("0x60"))[rl("0x33")],CommentsListView:c,CommentThreadInputView:l}),u[rl("0x57")].on(rl("0x52"),(()=>{e[rl("0x6a")][rl("0x45")][rl("0x3")]()})),u[rl("0xa")].on(rl("0x52"),(()=>{e.editing.view[rl("0x3")]()})),d=r[rl("0x24")](this[rl("0x5e")][rl("0x28")],u),d[rl("0x69")](rl("0x1d")).to(u,rl("0x1d")),d[rl("0x69")](rl("0x5")).to(u),d[rl("0x69")](rl("0x6c")).to(u,rl("0x6c"),(t=>rl("0x26")+t)),this[rl("0x1a")].set(t.id,d));const g=i.createCommentThreadController(t.commentThread,u),f=new Gc(e,t,u,g),h=t[rl("0x6b")]()[rl("0x1b")]((t=>t[rl("0x5f")]));u.descriptionParts=e.plugins[rl("0x4b")](rl("0x0"))[rl("0x8")][rl("0x42")](h),this[rl("0x70")][rl("0x4f")](t,f),this._viewToController.set(u,f);const m=r[rl("0x15")]({view:d,target:()=>{const n=[],r=t[rl("0x6b")]()[rl("0x1b")]((t=>t.isInContent));for(const t of r)n[rl("0x18")](...t.getMarkers());return(0,o.getAllMarkersDomElementsSorted)(e[rl("0x6a")],n)},type:()=>rl("0x26")+f[rl("0x45")].type});i[rl("0x68")](u,m),r.add(m),s[rl("0xe")](m)}[rl("0x6d")](t){const e=this[rl("0x5e")].plugins[rl("0x4b")](rl("0x50")),n=this[rl("0x5e")].plugins[rl("0x4b")](rl("0x25")),r=this[rl("0x70")][rl("0x4b")](t),i=r[rl("0x45")],o=n[rl("0x20")](i);e[rl("0x21")](i),o&&n[rl("0x10")](o),this[rl("0x70")][rl("0x43")](t),this[rl("0x63")][rl("0x43")](i),r[rl("0x51")]()}_updateController(t){if(!t[rl("0x5f")]||!this[rl("0x70")].has(t))return;const e=this[rl("0x5e")][rl("0x27")][rl("0x4b")](rl("0x0")),n=this._suggestionToController[rl("0x4b")](t),r=t[rl("0x6b")]();n[rl("0x45")].descriptionParts=e[rl("0x8")].getDescriptions(r)}[rl("0x51")](){for(const t of this._suggestionToController[rl("0x38")]())this[rl("0x6d")](t);for(const t of this._annotationViews[rl("0x48")]())t.mainView.destroy();super.destroy()}}var ol,sl,xl=["addSuggestion","Comments","getSuggestion","plugins","TrackChanges","editor","adapter","get"];ol=xl,sl=122,function(t){for(;--t;)ol.push(ol.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get requires(){return[Ac,il,al("0x7")]}static get pluginName(){return al("0x2")}set[al("0x4")](t){this.editor.plugins.get(Ac)[al("0x4")]=t}get[al("0x4")](){return this[al("0x3")][al("0x1")][al("0x5")](Ac)[al("0x4")]}[al("0x6")](t){return this[al("0x3")][al("0x1")].get(Ac).addSuggestionData(t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x3")][al("0x1")].get(Ac).getSuggestions({skipNotAttached:t,toJSON:e})}[al("0x0")](t){return this[al("0x3")][al("0x1")][al("0x5")](Ac).getSuggestion(t)}}const ll=["TrackChangesDataGetter","useAnonymousUser","acceptAllSuggestions","define","set","createDocumentFragment","getRootsAttributes","get","result","getSuggestions","trackChangesData","getRootNames","TrackChangesEditing","discardAllSuggestions","TrackChangesData","editor","reduce","addSuggestionData","appendChild","editorCreator","trackChangesData.editorCreator","init","Users","getDataWithAcceptedSuggestions","addUser","users","data","map","Pagination","getUser","plugins","document","end","requires","getDataWithDiscardedSuggestions","_adapter","model","getFullData","create","config","CommentsRepository","name","pluginName"];var ul,dl;ul=ll,dl=243,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=[gl("0x0")];class hl extends t.Plugin{static get[gl("0x5")](){return[Ac]}static get[gl("0xe")](){return gl("0x1d")}[gl("0x24")](){const t=this[gl("0x1e")];if(t[gl("0xb")][gl("0x12")](gl("0x23"),(e=>{const n=t[gl("0x8")][gl("0x3")].getRootNames().reduce(((t,e)=>(t[e]="",t)),{});return t.constructor[gl("0xa")](n,e)})),"function"!=typeof t[gl("0xb")][gl("0x16")](gl("0x19"))[gl("0x22")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[gl("0x26")](t){return bl(this[gl("0x1e")],!0,t)}[gl("0x6")](t){return bl(this[gl("0x1e")],!1,t)}}class ml extends t.Plugin{static get[gl("0xe")](){return gl("0xf")}constructor(t){super(t),this[gl("0x17")]=gl("0x4")}[gl("0x24")](){this[gl("0x1e")][gl("0x2")][gl("0x16")](gl("0xc"))[gl("0x7")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[gl("0x2")][gl("0x16")](gl("0x1b"))[gl("0x7")]=null}}function pl(t){return void 0!==t[gl("0x15")]}async function bl(t,e,n){const r=(0,o.sanitizeEditorConfig)(t,fl);r[gl("0x2")].push(Ac,ml),r.rootsAttributes=pl(t)?t.getRootsAttributes():void 0;const i=document[gl("0x14")](),s=t[gl("0xb")][gl("0x16")](gl("0x19"))[gl("0x22")],x=await s(r,(()=>function(t){const e=document.createElement("div");return t[gl("0x21")](e),e}(i)));!function(t,e){const n=t[gl("0x8")][gl("0x3")][gl("0x1a")]()[gl("0x1f")](((e,n)=>(e[n]=t[gl("0x29")][gl("0x16")]({rootName:n}),e)),{}),r=t[gl("0x2")][gl("0x16")](gl("0x25"))[gl("0x28")][gl("0x2a")]((t=>({id:t.id,name:t[gl("0xd")]}))),i=t[gl("0x2")][gl("0x16")](gl("0x1b"))[gl("0x18")]({skipNotAttached:!0,toJSON:!0}),o=e.plugins[gl("0x16")]("Users"),s=e[gl("0x2")][gl("0x16")]("TrackChangesEditing");for(const t of r)o[gl("0x1")](t.id)||o[gl("0x27")](t);o.me||o[gl("0x10")]();for(const t of i)s[gl("0x20")](t);e.data[gl("0x13")](n)}(t,x),x.execute(gl(e?"0x11":"0x1c"));const a=pl(x)?x[gl("0x9")](n):x[gl("0x29")][gl("0x16")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();
5
+ */(()=>{var t={588:(t,e,n)=>{t.exports=n(104)("./src/collaboration-core.js")},968:(t,e,n)=>{t.exports=n(672)("./src/core.js")},684:(t,e,n)=>{t.exports=n(672)("./src/engine.js")},976:(t,e,n)=>{t.exports=n(672)("./src/enter.js")},500:(t,e,n)=>{t.exports=n(672)("./src/typing.js")},348:(t,e,n)=>{t.exports=n(672)("./src/ui.js")},316:(t,e,n)=>{t.exports=n(672)("./src/utils.js")},396:(t,e,n)=>{t.exports=n(672)("./src/widget.js")},104:t=>{"use strict";t.exports=CKEditor5.collaborationDll},672:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.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:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(968),e=n(316),i=n(348),o=n(588),s=n(684),x=n(396);const a=["_enableCommands","isEnabled","refresh","value","TrackChangesCommand","clearForceDisabled","_enabledCommands","commands","has","forceDisabled","_disableUnsupportedCommands","affectsData","execute","editor","_isEnabledBasedOnSelection"];var c,l;c=a,l=196,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("0x5")]=e,this.value=!1,this[u("0x1")](),this[u("0xd")]=!1}[u("0x1")](){this[u("0x0")]=!0}[u("0xb")](){this[u("0x2")]=!this[u("0x2")],this[u("0x2")]?this[u("0x9")]():this[u("0xe")]()}[u("0x9")](){for(const t of this[u("0xc")][u("0x6")][u("0x6")]())t[u("0xa")]&&!this[u("0x5")].has(t)&&t[u("0x8")](u("0x3"))}_enableCommands(){for(const t of this.editor[u("0x6")].commands())t.affectsData&&!this._enabledCommands[u("0x7")](t)&&t[u("0x4")](u("0x3"))}}const g=["getRanges","track-changes-accept-suggestion-not-found","get","plugins","editor","model","canEditAt","_isEnabledBasedOnSelection","TrackChangesEditing","acceptSuggestion","refresh","_suggestions","execute"];var f,h;f=g,h=350,function(t){for(;--t;)f.push(f.shift())}(++h);const m=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[m("0xc")]=e,this[m("0xb")](),this[m("0x8")]=!1}refresh(){this.isEnabled=!0}[m("0x0")](t){const n=this[m("0xc")][m("0x3")](t);if(!n)throw new e.CKEditorError(m("0x2"),this);const r=n[m("0x1")]();this[m("0x5")][m("0x6")][m("0x7")](r)&&this[m("0x5")][m("0x4")][m("0x3")](m("0x9"))[m("0xa")](n)}}const b=["plugins","editor","model","discardSuggestion","refresh","_suggestions","get","execute","_isEnabledBasedOnSelection","canEditAt","TrackChangesEditing"];var E,_;E=b,_=291,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("0xa")](),this[T("0x3")]=!1}[T("0xa")](){this.isEnabled=!0}[T("0x2")](t){const n=this[T("0x0")][T("0x1")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const r=n.getRanges();this.editor[T("0x8")][T("0x4")](r)&&this[T("0x7")][T("0x6")].get(T("0x5"))[T("0x9")](n)}}const C=["isMultiRange","type","from","add","deletion","sort","color","end","createPositionBefore","push","isIntersecting","length","splice","execute","getRanges","createPositionAt","createPositionAfter","createRange","join","content","isTouching","schema","change","isArray","isInContent","value"];var A,k;A=C,k=464,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x9")](((t,e)=>I("0x8")==t[I("0x5")]&&I("0x8")!=e[I("0x5")]?-1:I("0x8")!=t[I("0x5")]&&"deletion"==e.type?1:0))}function S(t,e){let n,r=0;const i=[],o=e[I("0x19")];for(;r<t[I("0xf")];){const s=t[r],x=t[r+1];n||(n=e[I("0xc")](s)),v(e,s,x)||(i[I("0xd")](e[I("0x15")](n,o.isObject(s)?e[I("0x14")](s):e[I("0x13")](s,I("0xb")))),n=null),r++}return i}function v(t,e,n){if(!n)return!1;const r=t[I("0x14")](e),i=t.createPositionBefore(n);return r[I("0x18")](i)}function N(t,e,n){for(;n[I("0xf")];){const r=n[I("0x10")](0,100);t[I("0x0")]((()=>{for(const t of r)t[I("0x2")]&&e[I("0x11")](t.id)}))}}const L=["some","_isEnabledBasedOnSelection","isEnabled","canEditAt","values","_command","refresh","_suggestions","editor"];var M,w;M=L,w=311,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("0x0")]=e,this._suggestions=n,this[O("0x1")](),this[O("0x5")]=!1}[O("0x1")](){const t=Array.from(this[O("0x2")][O("0x8")]())[O("0x4")]((t=>t.isInContent));this[O("0x6")]=this[O("0x0")].isEnabled&&t}execute(){const t=R(Array.from(this[O("0x2")][O("0x8")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x3")].model[O("0x7")](t))return}N(this[O("0x3")].model,this[O("0x0")],t)}}const D=["refresh","_command","editor","_suggestions","selection","_selectedSuggestions","from","_isEnabledBasedOnSelection","values","isEnabled","canEditAt","model","getRanges"];var B,P;B=D,P=461,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[U("0x8")]=e,this[U("0xa")]=n,this[U("0xc")]=new Set,this[U("0x7")](),this[U("0x1")]=!1}[U("0x7")](){const t=this[U("0x9")].model.document[U("0xb")],e=Array[U("0x0")](this[U("0xa")][U("0x2")]());this[U("0xc")]=function(t,e){const n=Array[I("0x6")](t[I("0x12")]()),r=new Set;for(const i of e)if(i[I("0x2")])for(const e of n)for(const n of i[I("0x12")]())(e[I("0xe")](n)||t.isCollapsed&&!i[I("0x4")]&&i.next&&n[I("0xb")][I("0x18")](e.start))&&r[I("0x7")](i);return r}(t,e),this[U("0x3")]=this[U("0x8")].isEnabled&&!!this[U("0xc")].size}execute(){const t=R(Array[U("0x0")](this._selectedSuggestions));for(const e of t){const t=e[U("0x6")]();if(!this[U("0x9")].model[U("0x4")](t))return}N(this.editor[U("0x5")],this[U("0x8")],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 $=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 X(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])}}X.prototype.clear=G,X.prototype.delete=W,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const Z=X;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 it=rt.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.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 r=!0}catch(t){}var i=xt.call(t);return r&&(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 ht=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 mt=rt["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(mt&&mt.keys&&mt.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))&&(ht(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 $t=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 Xt(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])}}Xt.prototype.clear=Vt,Xt.prototype.delete=Wt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Zt=Xt;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 ie=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 oe=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=r?r(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,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 he="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,pe=me&&me.exports===he?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),i=!n&&!r&&be(t),o=!n&&!r&&!i&&Ne(t),s=n||r||i||o,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)||o&&("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)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&oe(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&&oe(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?rt.Buffer:void 0,Ze=Xe?Xe.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,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};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 oe(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)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,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return oe(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 hn=Nt(rt,"Set");const mn=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(hn),In=Tt(mn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||hn&&Rn(new hn)!=En||mn&&Rn(new mn)!=_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=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 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 $n=Se&&Se.isSet;const Xn=$n?Ae($n):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,i,o,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=o?r(e,i,o,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&&!o){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Qn[d])return o?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),Xn(e)?e.forEach((function(i){x.add(t(i,n,r,i,e,s))})):Kn(e)&&e.forEach((function(i,o){x.set(o,t(i,n,r,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(i,o){h&&(i=e[o=i]),ie(x,o,t(i,n,r,o,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)\]/,ir=/^\w*$/;const or=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(ir.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,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,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,i){e.push(r?i.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var dr=it?it.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 hr=function(t){return null==t?"":fr(t)};const mr=function(t,e){return ge(t)?t:or(t,e)?[t]:lr(hr(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 i=-1,o=(e=mr(e,t)).length,s=o-1,x=t;null!=x&&++i<o;){var a=pr(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(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,i,o){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(r)var m=s?r(h,f,u,e,t,o):r(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||i(f,t,n,r,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!i(f,h,n,r,o)){d=!1;break}}return o.delete(t),o.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=it?it.prototype:void 0,Nr=vr?vr.valueOf:void 0;const Lr=function(t,e,n,r,i,o,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||!o(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,i,o,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,i,o){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=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(r)var p=s?r(m,h,l,e,t,o):r(h,m,l,t,e,o);if(!(void 0===p?h===m||i(h,m,n,r,o):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 o.delete(t),o.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Br=Object.prototype.hasOwnProperty;const Pr=function(t,e,n,r,i,o){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 o||(o=new Qt),s||Ne(t)?Ir(t,e,n,r,i,o):Lr(t,e,a,n,r,i,o);if(!(1&n)){var g=l&&Br.call(t,"__wrapped__"),f=u&&Br.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Qt),i(h,m,n,r,o)}}return!!d&&(o||(o=new Qt),wr(t,e,n,r,i,o))};const Ur=function t(e,n,r,i,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pr(e,n,r,i,t,o))};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=mr(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,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 o=Array(i);++r<i;)o[r]=t[r+e];return o};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=mr(e,t),null==(t=zr(t,e))||delete t[pr(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["attributes","getFirstMarker","add","length","type","previous","_isDataLoaded","from","getMarkerNames","nodeAfter","isMultiRange","change","_onAccept","_saved","delete","addRange","reduce","set","discard","toJSON","accept","getMultiRangeId","data","author","removeAttribute","getFirstRange","markers","createdAt","_markerNames","suggestion:","commentThread","removeMarker","@external","split","subType","onAttributesChange","_onDiscard","map","end","isInContent","removeMarkers","getMarkers","isIntersectingWithRange","nodeBefore","substr","next","getRanges","start","decorate","creator","_onAttributesChange","head","addMarker","authoredAt","get","getAllAdjacentSuggestions","hasComments","_model","isExternal"];var $r,Xr;$r=qr,Xr=186,function(t){for(;--t;)$r.push($r.shift())}(++Xr);const Zr=function(t,e){return qr[t-=0]};class Yr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x38")]=!1,this.id=e.id,this[Zr("0x36")]=e.type,this[Zr("0x19")]=e.subType||null,this[Zr("0xe")]=e[Zr("0xe")],this.creator=e.creator||e[Zr("0xe")],this[Zr("0x31")]=Boolean(e[Zr("0x32")]&&e[Zr("0x32")][Zr("0x17")]),this.data=null,this._model=t,this[Zr("0x3")]=e.onAccept,this._onDiscard=e.onDiscard,this._onAttributesChange=e[Zr("0x1a")],this[Zr("0x13")]=new Set,this[Zr("0x12")]=null,this[Zr("0x8")](Zr("0x2c"),null),this[Zr("0x8")](Zr("0x32"),e[Zr("0x32")]||{}),this[Zr("0x8")](Zr("0x37"),null),this.set("next",null),this[Zr("0x8")]("commentThread",null),this[Zr("0x8")](Zr("0x4"),!1),this[Zr("0x27")](Zr("0xb")),this[Zr("0x27")]("discard")}get[Zr("0x2a")](){let t=this;for(;t[Zr("0x37")];)t=t[Zr("0x37")];return t}get[Zr("0x2f")](){return!!this[Zr("0x15")]&&this.commentThread[Zr("0x35")]>0}get[Zr("0x1")](){return 0!=this[Zr("0x13")].size&&6==Array[Zr("0x39")](this[Zr("0x13")])[0][Zr("0x18")](":")[Zr("0x35")]}get[Zr("0x1e")](){return null!==this.getFirstMarker()}addMarkerName(t){this[Zr("0x13")][Zr("0x34")](t)}[Zr("0x3a")](){return Array[Zr("0x39")](this[Zr("0x13")])}getMarkers(){return this[Zr("0x3a")]()[Zr("0x1c")]((t=>this._model[Zr("0x11")][Zr("0x2d")](t))).filter((t=>t))}getFirstMarker(){return this[Zr("0x20")]()[0]||null}[Zr("0x1f")](){this[Zr("0x30")][Zr("0x2")]((t=>{for(const e of this[Zr("0x20")]())t[Zr("0x16")](e)})),this[Zr("0x13")].clear()}[Zr("0x16")](t){this[Zr("0x30")].change((e=>{e[Zr("0x16")](t)})),this[Zr("0x13")][Zr("0x5")](t)}[Zr("0x6")](t){const e=Zr("0x14")+this[Zr("0x36")]+":"+this[Zr("0x19")]+":"+this.id+":"+this[Zr("0x28")].id+":"+Yr[Zr("0xc")]();this.addMarkerName(e),this[Zr("0x30")][Zr("0x2")]((n=>{n[Zr("0x2b")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x21")](t){for(const e of this.getRanges())if(e.isIntersecting(t))return!0;return!1}[Zr("0x25")](){return this.getMarkers()[Zr("0x1c")]((t=>t.getRange()))}getItems(){return this[Zr("0x25")]()[Zr("0x7")](((t,e)=>[...t,...e.getItems()]),[])}[Zr("0x10")](){var t;return(null===(t=this[Zr("0x33")]())||void 0===t?void 0:t.getRange())||null}getContainedElement(){const t=this[Zr("0x25")]();if(1!=t[Zr("0x35")])return null;const e=t[0],n=e[Zr("0x26")][Zr("0x0")],r=e[Zr("0x1d")][Zr("0x22")];return n instanceof s.Element?n!=r?null:n:null}accept(){this[Zr("0x3")](this.getRanges(),this[Zr("0xd")],this[Zr("0x32")]),this[Zr("0x1f")]()}[Zr("0x9")](){this[Zr("0x1b")](this[Zr("0x25")](),this[Zr("0xd")],this[Zr("0x32")]),this.removeMarkers()}[Zr("0x2e")](){const t=[];let e=this[Zr("0x2a")];for(;e;)t.push(e),e=e[Zr("0x24")];return t}setAttribute(t,e){const n=er(this.attributes);Er(n,t,e),jr(n,this[Zr("0x32")])||(this[Zr("0x32")]=n,this[Zr("0x29")](n))}[Zr("0xf")](t){const e=er(this[Zr("0x32")]);Kr(e,t),jr(e,this[Zr("0x32")])||(this[Zr("0x32")]=e,this[Zr("0x29")](this.attributes))}[Zr("0xa")](){return{id:this.id,type:this[Zr("0x19")]?this.type+":"+this[Zr("0x19")]:this.type,authorId:this[Zr("0x28")].id,createdAt:this[Zr("0x12")],hasComments:this[Zr("0x2f")],data:this[Zr("0xd")],attributes:this.attributes}}static[Zr("0xc")](){return(0,e.uid)()[Zr("0x23")](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=["name","*Merge:* %0","*Set format:* %0","nextSibling","_itemLabels","remove","quantity","nodeAfter","previousSibling","format","registerDescriptionCallback","_customCallbacks","_handleCustomCallbackDescription","normal","join","match","addFormat","getDescriptions","text","push","pop","length","insertion","getFirstRange","EmptyContainer","indexOf","*Change to:* %0","attribute","removeFormat","isObject","replace","*Remove:* %0","_locale","getWalker","add","checkChild","deletion","_handleInsertRemoveSuggestionDescription","skip","_schema","key","*Remove format:* %0","start","element","matchingCallback","map","item","data","getItemLabel","registerElementLabel","$text","elementEnd","isEqual","set","subType","_itemLabelsCallbacks","elementStart","removeObject","function","Object","newValue","type","_handleAttributeSuggestionDescription","$1 $2","$textProxy","isInContent","*Insert:* %0","ELEMENT_SPACE","end","has","_attributeLabels","REPLACE_TEXT","Container","isEmpty","get","_handleRenameSuggestionDescription"];var ti,ei;ti=Qr,ei=162,function(t){for(;--t;)ti.push(ti.shift())}(++ei);const ni=function(t,e){return Qr[t-=0]};class ri{constructor(t,e){this[ni("0x1")]=[],this._itemLabels=new Map,this._itemLabelsCallbacks=[],this[ni("0x3c")]=new Map,this[ni("0x1d")]=t,this[ni("0x16")]=e}[ni("0x7")](t){const e=[],n=new Set,r=new Set;for(let i=0;i<t[ni("0xb")];i++){const o=t[i];if(!o[ni("0x37")])continue;const s=this[ni("0x2")](o);if(s){if(null!=o.subType){if(n[ni("0x3b")](o[ni("0x2c")]))continue;n[ni("0x18")](o.subType)}e[ni("0x9")](s)}else if(ni("0x11")!=o[ni("0x33")])ni("0xc")!=o[ni("0x33")]&&ni("0x1a")!=o[ni("0x33")]||this._handleInsertRemoveSuggestionDescription(e,o,t[i+1]);else{const t=o[ni("0x25")][ni("0x1e")];if(r[ni("0x3b")](t))continue;r[ni("0x18")](o[ni("0x25")][ni("0x1e")]),t==Cc?this[ni("0x41")](e,o):this[ni("0x34")](e,o)}}return this._resolveDescriptionItems(e)}[ni("0x0")](t){this[ni("0x1")].push(t)}[ni("0x27")](t,n,r=e.priorities[ni("0x3")]){ni("0x30")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:r}):this[ni("0x46")][ni("0x2b")](t,n)}registerAttributeLabel(t,e){this[ni("0x3c")][ni("0x2b")](t,e)}getItemLabel(t,e=1){let n;for(const e of this[ni("0x2d")])if(e[ni("0x22")](t)){n=e.label;break}return n||(n=this[ni("0x46")].get(t.name)),n?n(e):1!==e?e+" "+t[ni("0x42")]+"s":""+t[ni("0x42")]}_addDescriptionItems(t,e){const n=e.getFirstRange()[ni("0x17")](),r=ni("0xc")==e[ni("0x33")]?ni("0x18"):"remove";for(const e of n){const i=e[ni("0x24")],o=t[t[ni("0xb")]-1];if(i.is(ni("0x36")))o&&o.type[ni("0xf")](ni("0x3e"))>-1&&t[ni("0xa")](),o&&ni("0x8")==o[ni("0x33")]?o[r]+=i[ni("0x25")]:t[ni("0x9")]({type:"text",add:ni("0x18")==r?i[ni("0x25")]:"",remove:ni("0x47")==r?i.data:""});else if(this._schema[ni("0x13")](i)){const s=i;if(o&&o[ni("0x33")].indexOf(ni("0x3e"))>-1&&t[ni("0xa")](),ni("0x29")==e[ni("0x33")])continue;o&&o[ni("0x33")]==r+ni("0x31")&&o[ni("0x21")][ni("0x42")]==s[ni("0x42")]?o[ni("0x48")]++:t[ni("0x9")]({type:r+ni("0x31"),element:s,quantity:1}),n[ni("0x1c")]((t=>!(ni("0x29")==t[ni("0x33")]&&t[ni("0x24")]==i)))}else if(this[ni("0x1d")][ni("0x19")](i,ni("0x28"))||i.is("element","softBreak")){const n=i;if("add"==r&&ni("0x2e")==e.type||"remove"==r&&ni("0x29")==e[ni("0x33")])continue;if(o&&-1==o[ni("0x33")][ni("0xf")](ni("0x3e"))){ni("0x8")==o[ni("0x33")]&&(o[r]+="\n");continue}let s;if(s=ni("0x18")==r?n[ni("0x45")]&&!this[ni("0x1d")].isObject(n[ni("0x45")])?n[ni("0x45")]:null:n[ni("0x4a")]&&!this[ni("0x1d")].isObject(n[ni("0x4a")])?n[ni("0x4a")]:null,n[ni("0x3f")]||s&&s[ni("0x3f")]){const e=s&&s[ni("0x3f")]?s:n;o&&o[ni("0x33")]==r+ni("0xe")&&o[ni("0x21")][ni("0x42")]==e[ni("0x42")]?o[ni("0x48")]++:t[ni("0x9")]({type:r+ni("0xe"),element:e,quantity:1})}else t.push({type:r+ni("0x3e"),element:n})}}}_resolveDescriptionItems(t){const e=this[ni("0x16")],n=[],r=[],i=[];for(const o of t)switch(o[ni("0x33")]){case ni("0x8"):if(o[ni("0x18")]=o[ni("0x18")][ni("0x14")](/(\S)\u000A+(\S)/g,ni("0x35"))[ni("0x14")](/\u000A/g,""),o[ni("0x47")]=o.remove[ni("0x14")](/(\S)\u000A+(\S)/g,"$1 $2")[ni("0x14")](/\u000A/g,""),""!=o.add&&""!=o[ni("0x47")]){n[ni("0x9")]({type:"replace",content:Jr(e,ni("0x3d"),['"'+o[ni("0x47")]+'"','"'+o.add+'"'])});continue}if(null!=o[ni("0x18")][ni("0x5")](/^ +$/)){n.push({type:ni("0xc"),content:Jr(e,ni("0x38"),Jr(e,ni("0x39"),o[ni("0x18")][ni("0xb")]))});continue}if(null!=o[ni("0x47")][ni("0x5")](/^ +$/)){n[ni("0x9")]({type:ni("0x1a"),content:Jr(e,ni("0x15"),Jr(e,ni("0x39"),o[ni("0x47")][ni("0xb")]))});continue}if(""!=o.add){n[ni("0x9")]({type:ni("0xc"),content:Jr(e,ni("0x38"),'"'+o[ni("0x18")]+'"')});continue}n.push({type:ni("0x1a"),content:Jr(e,ni("0x15"),'"'+o.remove+'"')});continue;case"addEmptyContainer":case"addObject":n[ni("0x9")]({type:ni("0xc"),content:Jr(e,ni("0x38"),this[ni("0x26")](o[ni("0x21")],o[ni("0x48")]))});continue;case"removeEmptyContainer":case ni("0x2f"):n.push({type:ni("0x1a"),content:Jr(e,ni("0x15"),this[ni("0x26")](o[ni("0x21")],o.quantity))});continue;case"addContainer":n[ni("0x9")]({type:ni("0xc"),content:Jr(e,"*Split:* %0",this[ni("0x26")](o[ni("0x21")],o[ni("0x48")]))});continue;case"removeContainer":n[ni("0x9")]({type:ni("0x1a"),content:Jr(e,ni("0x43"),this[ni("0x26")](o[ni("0x21")],o[ni("0x48")]))});continue;case ni("0x6"):r.push(o[ni("0x1e")]);continue;case ni("0x12"):i.push(o.key);continue;default:n[ni("0x9")](o)}if(r.length){const t=r[ni("0x23")]((t=>this._attributeLabels.has(t)?this[ni("0x3c")][ni("0x40")](t):t)).join(", ");n[ni("0x9")]({type:ni("0x4b"),content:Jr(this[ni("0x16")],ni("0x44"),t)})}if(i.length){const t=i[ni("0x23")]((t=>this[ni("0x3c")][ni("0x3b")](t)?this._attributeLabels[ni("0x40")](t):t))[ni("0x4")](", ");n[ni("0x9")]({type:ni("0x4b"),content:Jr(this._locale,ni("0x1f"),t)})}return n}_handleCustomCallbackDescription(t){for(const e of this[ni("0x1")]){const n=e(t);if(n&&"type"in n)return n}}[ni("0x34")](t,e){const n=e[ni("0x25")],r=void 0===n[ni("0x32")]?ni("0x12"):ni("0x6");t[ni("0x9")]({type:r,key:n[ni("0x1e")]})}[ni("0x41")](t,e){t[ni("0x9")]({type:"format",content:Jr(this[ni("0x16")],ni("0x10"),this[ni("0x26")](e[ni("0xd")]()[ni("0x20")][ni("0x49")],1))})}[ni("0x1b")](t,e,n){if(this._addDescriptionItems(t,e),n&&n[ni("0xd")]()&&!e[ni("0xd")]()[ni("0x3a")][ni("0x2a")](n[ni("0xd")]().start)){const n=t[t[ni("0xb")]-1],r=ni("0xc")==e.type?"add":ni("0x47");n&&"text"==n[ni("0x33")]&&(n[r]+="\n")}}}const ii=["plugins","editor","afterInit","commands","showAIAssistant","enableCommand","get"];var oi,si;oi=ii,si=374,function(t){for(;--t;)oi.push(oi.shift())}(++si);const xi=function(t,e){return ii[t-=0]};class ai extends t.Plugin{[xi("0x6")](){const t=this[xi("0x5")],e=t[xi("0x4")][xi("0x3")]("TrackChangesEditing");t[xi("0x0")].get(xi("0x1"))&&e[xi("0x2")](xi("0x1"))}}const ci=["get","format","FORMAT_JUSTIFY_TEXT","registerAttributeLabel","alignment","FORMAT_ALIGN_TO_CENTER","left","center","editor","plugins","_enableDefaultAttributesIntegration","afterInit","registerDescriptionCallback","locale","_descriptionFactory","formatBlock","FORMAT_ALIGN_TO_LEFT","commandName","right","_registerLegacyDescription","has","commandParams","TrackChangesEditing","*Format:* %0","FORMAT_ALIGN_TO_RIGHT"];var li,ui;li=ci,ui=229,function(t){for(;--t;)li.push(li.shift())}(++ui);const di=function(t,e){return ci[t-=0]};class gi extends t.Plugin{[di("0x7")](){const t=this[di("0x4")],e=t.locale;if(!t[di("0x5")][di("0x10")]("AlignmentEditing"))return;const n=t[di("0x5")][di("0x15")](di("0x12"));n[di("0x6")]("alignment",[],[di("0x0")]),n[di("0xa")][di("0x18")](di("0x0"),Jr(e,"FORMAT_ALIGNMENT")),this[di("0xf")]()}[di("0xf")](){const t=this[di("0x4")],e=t[di("0x9")];t[di("0x5")][di("0x15")]("TrackChangesEditing")[di("0xa")][di("0x8")]((t=>{if(di("0xb")!=t.type)return;const{data:n}=t;if(n&&di("0x0")==n[di("0xd")]){const t=n[di("0x11")][0].value;return{type:di("0x16"),content:Jr(e,di("0x13"),function(t){switch(t){case di("0x2"):return Jr(e,di("0xc"));case di("0xe"):return Jr(e,di("0x14"));case di("0x3"):return Jr(e,di("0x1"));case"justify":return Jr(e,di("0x17"))}}(t))}}}))}}const fi=["_registerLegacyDescription","SubscriptEditing","TrackChangesEditing","formatInline","UnderlineEditing","type","get","slice","*Remove format:* %0","ItalicEditing","FORMAT_CODE","FORMAT_","FORMAT_SUPERSCRIPT","forceValue","FORMAT_UNDERLINE","toLowerCase","italic","_descriptionFactory","*Format:* %0","commandName","FORMAT_STRIKETHROUGH","editor","superscript","CodeEditing","plugins","has","commandParams","code","registerDescriptionCallback","locale","underline","format","afterInit","bold"];var hi,mi;hi=fi,mi=122,function(t){for(;--t;)hi.push(hi.shift())}(++mi);const pi=function(t,e){return fi[t-=0]},bi=["BoldEditing",pi("0x17"),pi("0x12"),pi("0x3"),"StrikethroughEditing",pi("0xf"),"SuperscriptEditing"];class Ei extends t.Plugin{[pi("0xc")](){const t=this[pi("0x1")],e=t[pi("0x4")].get(pi("0x10")),n=t[pi("0x9")];for(const r of bi){if(!t[pi("0x4")][pi("0x5")](r))continue;const i=r[pi("0x15")](0,-7)[pi("0x1d")](),o=pi("0x19")+i.toUpperCase();e._enableDefaultAttributesIntegration(i,[i]),e[pi("0x1f")].registerAttributeLabel(i,Jr(n,o))}this._registerLegacyDescription()}[pi("0xe")](){const t=this[pi("0x1")],e=t[pi("0x9")],n=t[pi("0x4")][pi("0x14")]("TrackChangesEditing");function r(t,r){n[pi("0x1f")][pi("0x8")]((n=>{if(pi("0x11")!=n[pi("0x13")])return;const{data:i}=n;return i&&i[pi("0x21")]===t?i[pi("0x6")][0][pi("0x1b")]?{type:pi("0xb"),content:Jr(e,pi("0x20"),r)}:{type:pi("0xb"),content:Jr(e,pi("0x16"),r)}:void 0}))}r(pi("0xd"),Jr(e,"FORMAT_BOLD")),r(pi("0x1e"),Jr(e,"FORMAT_ITALIC")),r(pi("0xa"),Jr(e,pi("0x1c"))),r(pi("0x7"),Jr(e,pi("0x18"))),r("strikethrough",Jr(e,pi("0x0"))),r("subscript",Jr(e,"FORMAT_SUBSCRIPT")),r(pi("0x2"),Jr(e,pi("0x1a")))}}const _i=["markBlockFormat","checkChild","from","afterInit","format","name","ELEMENT_BLOCK_QUOTE","commandParams","get","$root","*Set format:* %0","model","parent","commandName","filter","has","registerDescriptionCallback","blockQuote","value","forceValue","plugins","editor","BlockQuoteEditing","change","locale","_descriptionFactory","TrackChangesEditing"];var Ti,yi;Ti=_i,yi=119,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{[Ci("0x13")](){const t=this[Ci("0xa")],e=t[Ci("0xd")];if(!t[Ci("0x9")][Ci("0x4")](Ci("0xb")))return;const n=t.plugins[Ci("0x18")](Ci("0xf")),r=this[Ci("0xa")].commands[Ci("0x18")](Ci("0x6"));n.enableCommand("blockQuote",((e,i={})=>{const o=this[Ci("0xa")][Ci("0x0")].document.selection,s=i&&void 0!==i.forceValue?i[Ci("0x8")]:!r[Ci("0x7")];let x=[];if(s){const e=Array[Ci("0x12")](o.getSelectedBlocks())[Ci("0x3")]((t=>ki(t)||function(t,e){const n=e[Ci("0x11")](t[Ci("0x1")],Ci("0x6")),r=e[Ci("0x11")]([Ci("0x19"),"blockQuote"],t);return n&&r}(t,this[Ci("0xa")][Ci("0x0")].schema)));x=S(e,t[Ci("0x0")])}else{const e=Array[Ci("0x12")](o.getSelectedBlocks())[Ci("0x3")]((t=>ki(t)));x=S(e,t[Ci("0x0")])}t[Ci("0x0")][Ci("0xc")]((()=>{for(const t of x)n[Ci("0x10")](t,{commandName:Ci("0x6"),commandParams:[{forceValue:s}]})}))})),n[Ci("0xe")][Ci("0x5")]((t=>{const{data:n}=t;if(n&&Ci("0x6")==n[Ci("0x2")]){const t=Jr(e,Ci("0x16"));return n[Ci("0x17")][0][Ci("0x8")]?{type:Ci("0x14"),content:Jr(e,Ci("0x1a"),t)}:{type:Ci("0x14"),content:Jr(e,"*Remove format:* %0",t)}}}))}}function ki(t){return Ci("0x6")==t[Ci("0x1")][Ci("0x15")]}const Ii=["get","changeCaseLower","changeCaseUpper","TrackChangesEditing","has","editor","plugins","enableCommand","afterInit"];var Ri,Si;Ri=Ii,Si=219,function(t){for(;--t;)Ri.push(Ri.shift())}(++Si);const vi=function(t,e){return Ii[t-=0]};class Ni extends t.Plugin{[vi("0x5")](){const t=this[vi("0x2")];t[vi("0x3")][vi("0x1")]("CaseChange")&&(t.plugins[vi("0x6")](vi("0x0")).enableCommand(vi("0x8")),t.plugins[vi("0x6")](vi("0x0"))[vi("0x4")](vi("0x7")),t[vi("0x3")][vi("0x6")]("TrackChangesEditing")[vi("0x4")]("changeCaseTitle"))}}const Li=["plugins","editor","afterInit","commands","get"];var Mi,wi;Mi=Li,wi=121,function(t){for(;--t;)Mi.push(Mi.shift())}(++wi);const Oi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[Oi("0x1")](){const t=this[Oi("0x0")];t[Oi("0x2")][Oi("0x3")]("ckbox")&&t[Oi("0x4")][Oi("0x3")]("TrackChangesEditing").enableCommand("ckbox")}}const Di=["parent","find","has","afterInit","format","model","rootElement","commandParams","selection","change","locale","commandName","forceValue","CodeBlock","value","name","*Remove format:* %0","languages","markBlockFormat","getSelectedBlocks","plugins","enableCommand","schema","checkChild","from","isLimit","toLowerCase","registerElementLabel","blockName","language","type","codeBlock","commands","indentCodeBlock","ELEMENT_CODE_BLOCK","*Set format:* %0","label","filter"];var Bi,Pi;Bi=Di,Pi=345,function(t){for(;--t;)Bi.push(Bi.shift())}(++Pi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{[Ui("0x0")](){const t=this.editor;if(!t[Ui("0x11")][Ui("0x25")](Ui("0xa")))return;const e=t[Ui("0x11")].get("TrackChangesEditing"),n=t[Ui("0x7")],r=t.config.get(Ui("0x1c"))[Ui("0xe")],i=t[Ui("0x1d")].get("codeBlock");e.enableCommand(Ui("0x1e")),e.enableCommand("outdentCodeBlock"),e[Ui("0x12")]("codeBlock",((n,o={})=>{const s=t[Ui("0x2")],x=t[Ui("0x2")].document[Ui("0x5")],a=o&&void 0!==o.forceValue?o[Ui("0x9")]:!i[Ui("0xb")];let c;o[Ui("0x1a")]||(o[Ui("0x1a")]=r[0][Ui("0x1a")]),c=a?Array[Ui("0x15")](x[Ui("0x10")]())[Ui("0x22")]((t=>{return Gi(t)||(e=t,n=s[Ui("0x13")],!e.is(Ui("0x3"))&&!n[Ui("0x16")](e)&&n[Ui("0x14")](e[Ui("0x23")],"codeBlock"));var e,n})):Array[Ui("0x15")](x[Ui("0x10")]())[Ui("0x22")]((t=>Gi(t)));const l=S(c,s);s[Ui("0x6")]((()=>{for(const t of l)e[Ui("0xf")](t,{commandName:Ui("0x1c"),commandParams:[{...o,forceValue:a}],formatGroupId:Ui("0x19")})}))})),e._descriptionFactory[Ui("0x18")](Ui("0x1c"),(t=>Jr(n,Ui("0x1f"),t))),e._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[Ui("0x1b")])return;const e=n.t,{data:i}=t;if(!i||Ui("0x1c")!=i[Ui("0x8")])return;const o=i[Ui("0x4")][0][Ui("0x1a")],s=e(r[Ui("0x24")]((t=>t.language===o))[Ui("0x21")])[Ui("0x17")]();return i[Ui("0x4")][0][Ui("0x9")]?{type:Ui("0x1"),content:Jr(n,Ui("0x20"),Jr(n,Ui("0x1f"),1)+" ("+s+")")}:{type:Ui("0x1"),content:Jr(n,Ui("0xd"),Jr(n,Ui("0x1f"),1))}}))}}function Gi(t){return Ui("0x1c")==t[Ui("0xc")]}const Vi=["editor","TrackChangesEditing","CommentsEditing","afterInit","get","addCommentThread","plugins","has"];var Hi,zi;Hi=Vi,zi=478,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{[Wi("0x5")](){const t=this[Wi("0x2")];t[Wi("0x0")][Wi("0x1")](Wi("0x4"))&&t[Wi("0x0")][Wi("0x6")](Wi("0x3")).enableCommand(Wi("0x7"))}}var qi=n(500);const $i=["elementEnd","previousPosition","item","nextSibling","listItem","element","getItems","model","addHighlight","activeMarkers","name","TrackChangesEditing","push","get","hasAttribute","isAtEnd","createRangeOn","createUIElement","isLimit","test","mapper","markerName","isContent","writer","includes","insert","schema","consumable","toViewElement","bindElementToMarker","markerRange","plugins","listIndent"];var Xi,Zi;Xi=$i,Zi=160,function(t){for(;--t;)Xi.push(Xi.shift())}(++Zi);const Yi=function(t,e){return $i[t-=0]};function Ji(t,e,n){const r=[];for(const i of e[Yi("0xb")]())i[Yi("0x13")](t)&&r[Yi("0x11")](n[Yi("0x15")](i));return r}function Qi(t,e,{showActiveMarker:n=!0}={}){const r=t[Yi("0x3")][Yi("0x12")](Yi("0x10"));return(i,o,s)=>{if(!s[Yi("0x20")][Yi("0x18")](o[Yi("0x2")],i[Yi("0xf")]))return;const x=o[Yi("0x2")].getWalker(),a=o.markerRange.start,c=t[Yi("0xc")][Yi("0x1f")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Yi("0x7")];d=d||c[Yi("0x1b")](e);const n=s[Yi("0x19")][Yi("0x0")](e);if(n&&n.getCustomProperty(Yi("0xd")))return;Yi("0x5")==t.type&&c.isBlock(e)&&!c[Yi("0x17")](e)&&(e.nextSibling||a[Yi("0x14")]?l&&l.parent==e||(l=e,f(t[Yi("0x6")]),g=!0):u=u||t[Yi("0x6")])}function f(t){const i=s[Yi("0x1c")][Yi("0x16")]("span",{class:"ck-suggestion-marker-"+e}),x=s[Yi("0x19")].toViewPosition(t);n&&r[Yi("0xe")][Yi("0x1d")](o[Yi("0x1a")])&&s[Yi("0x1c")].addClass("ck-suggestion-marker--active",i),s[Yi("0x1c")][Yi("0x1e")](x,i),s[Yi("0x19")][Yi("0x1")](i,o[Yi("0x1a")])}d||g||!u||f(u)}}const to=["buffer","downcastDispatcher","forward","addMarker:suggestion:deletion","bind","get","options","enqueueChange","modifySelection","editor","editing","delete","unbindElementFromMarkerName","merge","mapper","enableCommand","getFirstRange","deleteForward","high","writer","$graveyard","remove","commands","markerName","root","lock","detach","model","batch","requires","unit","fromRange","showSuggestionHighlights","data","createSelection","createRange","isCollapsed","markerNameToElements","start","rootName","setSelection"];var eo,no;eo=to,no=487,function(t){for(;--t;)eo.push(eo.shift())}(++no);const ro=function(t,e){return to[t-=0]};class io extends t.Plugin{static get[ro("0x22")](){return[qi.Delete]}init(){const t=this[ro("0xe")],e=t.plugins.get("TrackChangesEditing");e[ro("0x14")](ro("0x10"));const n=t[ro("0x1b")][ro("0xa")](ro("0x16"));e[ro("0x14")](ro("0x16"),((e,r={})=>{const i=t[ro("0x20")][ro("0x27")](t[ro("0x20")].document.selection);i[ro("0x0")]&&t.model[ro("0xd")](i,{direction:ro("0x7"),unit:r[ro("0x23")]});const o=i[ro("0x15")](),x=s.LiveRange[ro("0x24")](o);let a;e(r),a=ro("0x19")==x[ro("0x1d")][ro("0x3")]?t[ro("0x20")][ro("0x28")](o[ro("0x2")]):t.model[ro("0x28")](x[ro("0x2")],x.end),x[ro("0x1f")](),t[ro("0x20")][ro("0xc")](n[ro("0x5")][ro("0x21")],(t=>{n[ro("0x5")][ro("0x1e")](),t[ro("0x4")](t[ro("0x28")](a.end)),n[ro("0x5")].unlock()}))})),t[ro("0xf")][ro("0x6")].on(ro("0x8"),Qi(t,ro("0x12")),{priority:ro("0x17")}),t[ro("0x26")].downcastDispatcher.on(ro("0x8"),((e,n,r)=>{r[ro("0xb")][ro("0x25")]&&Qi(t,ro("0x12"),{showActiveMarker:!1})[ro("0x9")](this)(e,n,r)}),{priority:"high"}),t[ro("0xf")][ro("0x6")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const r=n[ro("0x13")][ro("0x1")](e.markerName);if(r)for(const t of r)t.is("uiElement")&&(n[ro("0x13")][ro("0x11")](t,e[ro("0x1c")]),n[ro("0x18")][ro("0x1a")](t))}),{priority:ro("0x17")})}}const oo=["range","ELEMENT_NUMBERED_LIST","registerElementLabel","checkTodoList","key","nextSibling","attribute","numbered","*Indent:* %0","from","splitListItemAfter","getAttribute","includes","*Change to:* %0","default","value","start","_suggestionFactory","batch","_enableDefaultAttributesIntegration","getChanges","*Format:* insert into %0","meta","ELEMENT_LIST_ITEM","next","isUndo","nodeAfter","todo","selection","documentList","getSuggestions","data","commandName","forceValue","removeMarker","_descriptionFactory","commandParams","isObject","listStyle","map","has","ELEMENT_BULLETED_LIST","outdentList","bulletedList","locale","type","config","*Format:* remove from %0","_supportLegacySuggestions","listItemIdFixer","_findSuggestions","registerCustomCallback","*Outdent:* %0","registerPostFixer","attributeKey","splitListItemBefore","find","document","_getAttributeKey","get","multipleBlocks","commands","length","isLocal","accept","filter","*Merge:* list item","differ","execute","format","getFirstRange","listItemId","createRange","*Set format:* %0","setSelection","listStart","mergeListItemForward","noTrackChangesFixer","attributes","registerDescriptionCallback","getFirstMarker","*Check item*","push","registerAttributeLabel","list.multiBlock","mergeListItemBackward","getRanges","_registerLegacyDescription","parent","afterInit","plugins","bulleted","model","TodoListEditing","suggestion","FORMAT_INDENT","numberedList","todoList","ELEMENT_","editor","oldValue","todoListCheck","groupId","previousSibling","listIndent","schema","ELEMENT_TODO_LIST","setAttribute","newValue","listType","*Split:* list item","todoListChecked","assureChains","head","indentList","createPositionAt","TrackChangesEditing"];var so,xo;so=oo,xo=433,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{[ao("0x7")](){const t=this[ao("0x11")];if(!t.plugins[ao("0x4b")]("ListEditing"))return;const e=t[ao("0x4f")],n=t[ao("0x8")].get(ao("0x22")),r=t[ao("0x8")][ao("0x4b")](ao("0xb")),i=!!t[ao("0x51")][ao("0x5e")](ao("0x2"));function o(t){return{type:ao("0x68"),content:""+Jr(e,ao("0x6c"),t)}}function s(t){return{type:ao("0x68"),content:""+Jr(e,"*Remove format:* %0",t)}}n[ao("0x36")](ao("0xe"),[],["listItemId",ao("0x1b"),ao("0x16")]),n[ao("0x36")](ao("0x4e")),n._enableDefaultAttributesIntegration(ao("0x20")),n[ao("0x36")](ao("0x4d")),n[ao("0x36")](ao("0x2d")),n._enableDefaultAttributesIntegration(ao("0x5a")),i&&(n[ao("0x36")](ao("0x3")),n[ao("0x36")](ao("0x6f"))),r&&(n[ao("0x36")](ao("0xf")),n[ao("0x36")](ao("0x26"),[],["todoListChecked"]),n[ao("0x46")][ao("0x72")]((t=>{const{data:n}=t;if(n&&ao("0x1d")==n[ao("0x27")])return{type:ao("0x68"),content:n[ao("0x1a")]?Jr(e,ao("0x74")):Jr(e,"*Uncheck item*")}})),this[ao("0x11")][ao("0xa")][ao("0x5c")].registerPostFixer((t=>{if(t[ao("0x35")][ao("0x3c")])return!1;let e=!1;const r=n[ao("0x41")]({skipNotAttached:!0})[ao("0x64")]((t=>"todoListChecked"===n._getAttributeKey(t)));for(const i of r)ao("0x3e")!=i.getFirstRange()[ao("0x33")][ao("0x3d")][ao("0x2e")]("listType")&&(n[ao("0x55")](i[ao("0x69")](),"attribute")[ao("0x5b")]((t=>ao("0x1b")===n[ao("0x5d")](t[ao("0xc")])))||(t.removeMarker(i[ao("0x73")]()),e=!0));return e}))),n[ao("0x46")][ao("0x1")](ao("0x16"),Jr(e,ao("0xd")));const x={type:ao("0x68"),content:""};n[ao("0x46")].registerDescriptionCallback((t=>{const{data:n}=t;if(!n||"listType"!=n.key)return;let r=t[ao("0x1f")];for(;r;){if(r[ao("0x42")]&&("listStyle"==r.data[ao("0x27")]&&(r[ao("0x42")][ao("0x1a")]&&ao("0x31")!=r.data[ao("0x1a")]||ao("0x31")!=r[ao("0x42")].oldValue&&!n.newValue)||!i&&r[ao("0x42")][ao("0x27")]==Cc))return x;r=r[ao("0x3b")]}if(null==n[ao("0x1a")])switch(n[ao("0x12")]){case ao("0x9"):return s(Jr(e,ao("0x4c")));case"numbered":return s(Jr(e,ao("0x24")));case ao("0x3e"):return s(Jr(e,ao("0x18")))}switch(n.newValue){case ao("0x9"):return o(Jr(e,ao("0x4c")));case ao("0x2a"):return o(Jr(e,ao("0x24")));case ao("0x3e"):return o(Jr(e,"ELEMENT_TODO_LIST"))}})),n[ao("0x46")][ao("0x72")]((t=>{const{data:e}=t;if(e&&ao("0x16")==e[ao("0x27")])return null==e[ao("0x1a")]||null==e.oldValue&&0==e[ao("0x1a")]?x:void 0})),n[ao("0x46")][ao("0x72")]((t=>{if(ao("0x29")!=t[ao("0x50")])return;const{data:n}=t;if(!n||ao("0x6a")!=n[ao("0x27")])return;const r=lo(t);return r?ao("0x1a")==r?{type:ao("0x68"),content:Jr(e,ao("0x65"))}:ao("0x12")==r?{type:ao("0x68"),content:Jr(e,ao("0x1c"))}:x:x})),t[ao("0xa")][ao("0x5c")].registerPostFixer((t=>this[ao("0x54")](t))),t.model[ao("0x5c")][ao("0x58")]((t=>this[ao("0x70")](t))),t[ao("0xa")][ao("0x5c")][ao("0x58")]((t=>this[ao("0x1e")](t))),this[ao("0x53")]()}listItemIdFixer(t){if(t[ao("0x35")].isUndo||!t[ao("0x35")][ao("0x62")])return!1;let e=!1;const n=this[ao("0x11")].plugins[ao("0x5e")](ao("0x22"))[ao("0x41")]({skipNotAttached:!0}).filter((t=>t.data&&"listItemId"==t.data[ao("0x27")])).filter((t=>t[ao("0x42")][ao("0x1a")]&&t[ao("0x42")][ao("0x12")]));for(const r of n)lo(r)||(t.removeMarker(r[ao("0x73")]()),e=!0);return e}[ao("0x70")](t){if(t[ao("0x35")][ao("0x3c")]||!t[ao("0x35")][ao("0x62")])return!1;const e=this[ao("0x11")][ao("0x8")][ao("0x5e")](ao("0x22"));if(e.trackChangesCommand[ao("0x32")])return!1;let n=!1;const r=[ao("0x1b"),ao("0x49"),ao("0x6a"),ao("0x16"),ao("0x6e"),"listReversed",ao("0x13")],i=this[ao("0x11")][ao("0xa")][ao("0x5c")][ao("0x66")][ao("0x37")]().filter((t=>"attribute"==t[ao("0x50")]))[ao("0x64")]((t=>r[ao("0x2f")](t[ao("0x59")])));if(0==i[ao("0x61")])return n;for(const o of i){const i=e._findSuggestions(o[ao("0x23")],"attribute")[ao("0x64")]((t=>!t[ao("0x39")].isNextTo))[ao("0x4a")]((t=>t[ao("0xc")]))[ao("0x64")]((t=>{const n=e[ao("0x5d")](t);return r[ao("0x2f")](n)}));if(i.length){for(const e of i)t[ao("0x45")](e[ao("0x73")]());n=!0}}return n}[ao("0x1e")](t){if(t[ao("0x35")][ao("0x3c")]||!t.batch.isLocal)return!1;const e=this[ao("0x11")][ao("0x8")][ao("0x5e")](ao("0x22"));let n=!1;const r=["listType",ao("0x49"),ao("0x6a"),ao("0x16"),"listStart","listReversed",ao("0x13")];for(const t of e.getSuggestions({skipNotAttached:!0})){const i=e[ao("0x55")](t.getFirstRange(),ao("0x29")).map((t=>t[ao("0xc")]))[ao("0x64")]((t=>t[ao("0x42")]&&r[ao("0x2f")](t[ao("0x42")][ao("0x27")])));if(!i[ao("0x61")])continue;const s=i[0][ao("0x1f")].attributes[ao("0x14")];if(!i.every((t=>t[ao("0x71")][ao("0x14")]===s)))for(const t of i)o(t,s)&&(n=!0)}return n;function i(t,n){for(const r of e[ao("0x41")]({skipNotAttached:!0}).filter((e=>ao("0x29")==e[ao("0x50")]&&e.attributes[ao("0x14")]==t)))r.setAttribute("groupId",n)}function o(t,e){let n=t.head,r=!1;for(;n;)n[ao("0x71")][ao("0x14")]!=e&&(i(n[ao("0x71")][ao("0x14")],e),n[ao("0x19")]("groupId",e),r=!0),n=n[ao("0x3b")];return r}}[ao("0x53")](){const t=this[ao("0x11")],e=t[ao("0x4f")],n=t[ao("0x8")][ao("0x5e")](ao("0x22"));this[ao("0x5")](),n[ao("0x34")][ao("0x56")]("formatBlock",ao("0x40"),ao("0x63"),(function(e,n){const r=[];for(let n of e)n[ao("0x33")][ao("0x3d")]===n.end[ao("0x6")]&&(n=t[ao("0xa")][ao("0x6b")](t[ao("0xa")][ao("0x21")](n.start.nodeAfter,0))),r[ao("0x0")](n);t[ao("0xa")].change((e=>{const i=t.model[ao("0x5c")][ao("0x3f")],o=Array[ao("0x2c")](i[ao("0x4")]())[ao("0x4a")]((t=>s.LiveRange.fromRange(t)));e[ao("0x6d")](r),t.commands[ao("0x5e")](n[ao("0x43")]).refresh(),n[ao("0x47")].push({forceDefaultExecution:!0}),t[ao("0x67")](n[ao("0x43")],...n[ao("0x47")]),e[ao("0x6d")](o);for(const t of o)t.detach()}))})),n._descriptionFactory[ao("0x25")]((function(e){const n=!t[ao("0xa")][ao("0x17")][ao("0x48")](e),r=e[ao("0x15")],i=e[ao("0x28")],o=e[ao("0x2e")]("listItemId"),s=!r||r[ao("0x2e")](ao("0x6a"))!==o,x=!i||i[ao("0x2e")](ao("0x6a"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Jr(e,ao("0x3a"),t)))}_registerLegacyDescription(){const t=this[ao("0x11")],e=t[ao("0x4f")];function n(e){const n=t[ao("0x60")].get(ao("0x4e"))[ao("0x32")],r=t[ao("0x60")][ao("0x5e")](ao("0xe"))[ao("0x32")];return"numberedList"===e?n:r}t.plugins[ao("0x5e")](ao("0x22"))[ao("0x46")][ao("0x72")]((function(r){if("formatBlock"!=r[ao("0x50")])return;const{data:i}=r;if(!i)return;let o,s,x,a;switch(i[ao("0x43")]){case"bulletedList":x=i.commandParams[0][ao("0x44")],a=n(i[ao("0x43")]),o=ao(x?"0x38":"0x52"),!a&&t[ao("0x51")].get(ao("0x2"))||(o=ao("0x30")),s={type:ao("0x68"),content:Jr(e,o,Jr(e,ao("0x4c")))};break;case ao("0xe"):x=i[ao("0x47")][0][ao("0x44")],a=n(i[ao("0x43")]),o=x?"*Format:* insert into %0":ao("0x52"),!a&&t[ao("0x51")][ao("0x5e")](ao("0x2"))||(o=ao("0x30")),s={type:ao("0x68"),content:Jr(e,o,Jr(e,ao("0x24")))};break;case ao("0x20"):o=ao("0x2b"),s={type:ao("0x68"),content:Jr(e,o,Jr(e,"ELEMENT_LIST_ITEM"))};break;case"outdentList":o=function(t){const e=t[ao("0x69")]();let n=e[ao("0x33")][ao("0x3d")];for(;n&&e.containsItem(n);){if(n[ao("0x2e")](ao("0x16"))>0)return!1;n=n.nextSibling}return!0}(r)?Jr(e,ao("0x52"),Jr(e,(c=r,ao("0x10")+c[ao("0x69")]()[ao("0x33")][ao("0x3d")][ao("0x2e")]("listType").toUpperCase()+"_LIST"))):Jr(e,ao("0x57"),Jr(e,"ELEMENT_LIST_ITEM")),s={type:ao("0x68"),content:o};break;case ao("0x3"):case"mergeListItemForward":!1===i[ao("0x5f")]&&(o="*Merge:* %0",s={type:"deletion",content:Jr(e,o,Jr(e,"ELEMENT_LIST_ITEM"))})}var c;return s}))}}function lo(t){let e=t.getFirstRange().start[ao("0x3d")].previousSibling;for(;e;){const n=e[ao("0x2e")](ao("0x6a"));if(!n)return!1;if(n==t[ao("0x42")][ao("0x1a")])return ao("0x1a");if(n==t[ao("0x42")][ao("0x12")])return"oldValue";e=e.previousSibling}return!1}const uo=["registerDescriptionCallback","suggestion","editor","type","disc","styles","*Format:* set order to regular","getAttribute","formatBlock","plugins","listType","ListPropertiesEditing","_getTranslationKeyForListStyle","*Format:* set order to reversed","batch","attribute","newValue","key","default","bind","listStart","*Change to:* %0","handleDescriptions","head","get","_enableDefaultAttributesIntegration","format","includes","startIndex","toUpperCase","getFirstMarker","data","getFirstRange","*Set format:* %0","listStyle","model","_LIST_DEFAULT","FORMAT_LIST_REVERSED","isUndo","FORMAT_LIST_START","_registerLegacyDescription","_LIST_","upper-roman","*Remove format:* %0","ELEMENT_","listReversed","lower-roman","nodeAfter","_descriptionFactory","oldValue","reversed","next","afterInit","numbered","upper-latin","config","registerAttributeLabel","TrackChangesEditing","start","registerPostFixer","bulleted","commandParams","locale"];var go,fo;go=uo,fo=300,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x4")](){if(!this[ho("0x11")][ho("0x18")].has(ho("0x1a")))return;const t=this.editor[ho("0x7")][ho("0x27")]("list.properties"),e=this[ho("0x11")].plugins[ho("0x27")](ho("0x9"));t[ho("0x14")]&&e[ho("0x28")]("listStyle",[],[ho("0x31")]),t[ho("0x2")]&&e[ho("0x28")](ho("0x3c"),[],[ho("0x3c")]),t[ho("0x2b")]&&e[ho("0x28")](ho("0x23"),[],["listStart"]);const n={type:ho("0x29"),content:""};e._descriptionFactory[ho("0xf")](this[ho("0x25")][ho("0x22")](this));const r=this.editor[ho("0xe")];e[ho("0x0")][ho("0x8")]("listReversed",Jr(r,ho("0x34"))),e[ho("0x0")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"listReversed"==e[ho("0x20")])return null==e.newValue||0==e[ho("0x1f")]&&null==e[ho("0x1")]?n:void 0})),e[ho("0x0")][ho("0x8")]("listStart",Jr(r,ho("0x36"))),e._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&ho("0x23")==e[ho("0x20")])return null==e[ho("0x1f")]||1==e[ho("0x1f")]&&null==e[ho("0x1")]?n:void 0})),this.editor[ho("0x32")].document[ho("0xb")]((t=>{if(t[ho("0x1d")][ho("0x35")])return!1;let n=!1;const r=e.getSuggestions({skipNotAttached:!0}).filter((t=>{const n=e._getAttributeKey(t);return ho("0x23")==n||"listReversed"==n}));for(const i of r)"numbered"!=i[ho("0x2f")]()[ho("0xa")][ho("0x3e")][ho("0x16")](ho("0x19"))&&(e._findSuggestions(i[ho("0x2f")](),ho("0x1e")).find((t=>ho("0x19")==e._getAttributeKey(t[ho("0x10")])))||(t.removeMarker(i[ho("0x2d")]()),n=!0));return n})),this._registerLegacyDescription()}handleDescriptions(t){const e=this[ho("0x11")][ho("0xe")],{data:n}=t,r={type:ho("0x29"),content:""};if(!n||ho("0x31")!=n[ho("0x20")])return;if(!n[ho("0x1")])return ho("0x21")==n[ho("0x1f")]?r:{type:ho("0x29"),content:""+Jr(e,ho("0x30"),Jr(e,this._getTranslationKeyForListStyle(n.newValue)))};if(!n[ho("0x1f")]){if(ho("0x21")==n[ho("0x1")])return r;let i=t[ho("0x26")];for(;i;){if(i[ho("0x2e")]&&"listType"==i[ho("0x2e")][ho("0x20")]&&i.data.newValue)return r;i=i[ho("0x3")]}return{type:ho("0x29"),content:""+Jr(e,ho("0x3a"),Jr(e,this._getTranslationKeyForListStyle(n[ho("0x1")])))}}if(ho("0x21")!=n[ho("0x1f")])return{type:ho("0x29"),content:""+Jr(e,ho("0x30"),Jr(e,this[ho("0x1b")](n[ho("0x1f")])))};let i=t.head;for(;i;){if(i[ho("0x2e")]&&ho("0x19")==i[ho("0x2e")][ho("0x20")]&&i[ho("0x2e")][ho("0x1f")]&&i.data[ho("0x1")])return r;i=i[ho("0x3")]}const o=t[ho("0x2f")]()[ho("0xa")].nodeAfter[ho("0x16")](ho("0x19"));return{type:ho("0x29"),content:Jr(e,"*Set format:* %0",Jr(e,ho("0x3b")+o.toUpperCase()+ho("0x33")))}}[ho("0x37")](){const t=this[ho("0x11")],e=t[ho("0xe")];t.plugins[ho("0x27")](ho("0x9"))[ho("0x0")].registerDescriptionCallback((t=>{if(ho("0x17")!=t[ho("0x12")])return;const{data:n}=t;if(!n)return;let r,i;switch(n.commandName){case ho("0x31"):r=ho("0x24"),i={type:"format",content:Jr(e,r,Jr(e,this._getTranslationKeyForListStyle(n[ho("0xd")][0][ho("0x12")])))};break;case"listReversed":r=n[ho("0xd")][0][ho("0x2")]?ho("0x1c"):ho("0x15"),i={type:"format",content:Jr(e,r)};break;case ho("0x23"):r="*Format:* set start index to %0",i={type:ho("0x29"),content:Jr(e,r,n[ho("0xd")][0][ho("0x2b")])}}return i}))}[ho("0x1b")](t){return ho("0x3b")+(e=t,po[ho("0x2a")](e)?ho("0xc"):bo[ho("0x2a")](e)?ho("0x5"):null)[ho("0x2c")]()+ho("0x38")+t.toUpperCase().replace(/-/g,"_");var e}}const po=[ho("0x13"),"circle","square"],bo=["decimal","decimal-leading-zero",ho("0x3d"),ho("0x39"),"lower-latin",ho("0x6")];var Eo=n(976);const _o=["markerName","data","split","selection","init","editing","editor","addMarker:suggestion:insertion","getFirstRange","commands","writer","setSelection","createRange","high","remove","enterBlock","markerNameToElements","document","getFirstPosition","fire","createPositionAt","options","get","mapper","nextSibling","afterExecute","parent","unbindElementFromMarkerName","enter","fromRange","model","enableCommand","end"];var To,yo;To=_o,yo=453,function(t){for(;--t;)To.push(To.shift())}(++yo);const Co=function(t,e){return _o[t-=0]};class Ao extends t.Plugin{static get requires(){return[Eo.Enter]}[Co("0xd")](){const t=this[Co("0xf")],e=t.plugins[Co("0x1f")]("TrackChangesEditing"),n=t[Co("0x12")][Co("0x1f")](Co("0x4"));e[Co("0x7")](Co("0x4"),(()=>{t[Co("0x6")].change((r=>{const i=t[Co("0x6")][Co("0x1a")][Co("0xc")],o=i[Co("0x1b")](),x=s.LiveRange[Co("0x5")](i[Co("0x11")]());if(n[Co("0x18")](r)){const n=t[Co("0x6")][Co("0x1d")](o[Co("0x2")][Co("0x0")],0),i=r[Co("0x15")](o,n);e.markInsertion(i)}else r[Co("0x14")](r[Co("0x15")](x[Co("0x8")]));x.detach(),n[Co("0x1c")](Co("0x1"),{writer:r})}))})),t[Co("0xe")].downcastDispatcher.on(Co("0x10"),Qi(t,Co("0xb")),{priority:Co("0x16")}),t[Co("0xe")].downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const r=n[Co("0x20")][Co("0x19")](e[Co("0x9")]);if(r)for(const t of r)t.hasClass("ck-suggestion-marker-split")&&(n[Co("0x20")][Co("0x3")](t,e.markerName),n[Co("0x13")][Co("0x17")](t))}),{priority:"high"}),t[Co("0xa")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,r)=>{r[Co("0x1e")].showSuggestionHighlights&&Qi(t,Co("0xb"),{showActiveMarker:!1}).bind(this)(e,n,r)}),{priority:"high"})}}const ko=["findNext","string","findByTextCallback","FindAndReplaceEditing","get","editor","getRange","handleFindCommand","_isInDeletionRange","has","TrackChangesEditing","model","FindAndReplaceUtils","getIntersection","plugins","createPositionAt","suggestion:deletion","bind","start","item","createRange","replace","replaceAll","enableCommand","markers"];var Io,Ro;Io=ko,Ro=498,function(t){for(;--t;)Io.push(Io.shift())}(++Ro);const So=function(t,e){return ko[t-=0]};class vo extends t.Plugin{afterInit(){if(!this[So("0x7")].plugins[So("0xb")](So("0x5")))return;const t=this[So("0x7")][So("0x10")][So("0x6")](So("0xc"));t[So("0x0")]("find",this[So("0x9")][So("0x13")](this)),t[So("0x0")](So("0x2")),t.enableCommand("findPrevious"),t[So("0x0")](So("0x17")),t[So("0x0")](So("0x18"))}handleFindCommand(t,e,n={}){const r=this[So("0x7")].plugins[So("0x6")](So("0xe"));return t((t=>(So("0x3")==typeof e?r[So("0x4")](e,n):e)(t).filter((e=>!1===this[So("0xa")](e,t[So("0x15")])))),n)}[So("0xa")](t,e){const n=this.editor[So("0xd")][So("0x16")](this[So("0x7")][So("0xd")][So("0x11")](e,t[So("0x14")]),this.editor.model[So("0x11")](e,t.end));for(const t of this[So("0x7")].model[So("0x1")].getMarkersGroup(So("0x12")))if(null!==n[So("0xf")](t[So("0x8")]()))return!0;return!1}}const No=["FORMAT_FONT_BACKGROUND","fontBackgroundColor.colors","get","*Set font size:* %0","format","trim","_descriptionFactory","*Set font color:* %0","plugins","FontFamilyEditing","label","*Reset font color*","registerAttributeLabel","model","*Reset font family*","TrackChangesEditing","FontBackgroundColorEditing","config","commandParams","FORMAT_FONT_COLOR","fontSize","_registerLegacyDescription","fontSize.options","fontColor","_enableDefaultAttributesIntegration","fontColor.colors","FORMAT_FONT_SIZE","type","has","FontColorEditing","formatInline","*Reset font background color*","FontSizeEditing","commandName","normalizeSizeOptions","fontBackgroundColor","fontFamily","*Set font background color:* %0","find","value","editor"];var Lo,Mo;Lo=No,Mo=421,function(t){for(;--t;)Lo.push(Lo.shift())}(++Mo);const wo=function(t,e){return No[t-=0]},Oo=[{pluginName:wo("0x15"),commandName:wo("0x9")},{pluginName:wo("0x27"),commandName:wo("0x19")},{pluginName:wo("0x12"),commandName:wo("0xc")},{pluginName:wo("0x5"),commandName:wo("0x18")}];class Fo extends t.Plugin{afterInit(){const t=this.editor.locale,e=this[wo("0x1d")][wo("0x26")][wo("0x20")]("TrackChangesEditing");for(const{pluginName:t,commandName:n}of Oo)this.editor[wo("0x26")][wo("0x11")](t)&&e[wo("0xd")](n,[n]);t.t,e._descriptionFactory.registerAttributeLabel(wo("0x9"),Jr(t,wo("0xf"))),e._descriptionFactory[wo("0x1")](wo("0x19"),Jr(t,"FORMAT_FONT_FAMILY")),e._descriptionFactory[wo("0x1")](wo("0xc"),Jr(t,wo("0x8"))),e[wo("0x24")][wo("0x1")](wo("0x18"),Jr(t,wo("0x1e"))),this[wo("0xa")]()}[wo("0xa")](){const t=this.editor,e=t.locale;t[wo("0x26")][wo("0x20")](wo("0x4"))[wo("0x24")].registerDescriptionCallback((t=>{const n=e.t;if(wo("0x13")!=t[wo("0x10")])return;const{data:r}=t;if(null!=r){if("fontSize"==r[wo("0x16")]){const t=r[wo("0x7")][0][wo("0x1c")];if(t){const r=n(this[wo("0x1d")][wo("0x26")][wo("0x20")]("FontSize")[wo("0x17")](this[wo("0x1d")][wo("0x6")][wo("0x20")](wo("0xb"))).find((e=>e[wo("0x2")]==t)).title).toLowerCase();return{type:wo("0x22"),content:Jr(e,wo("0x21"),r)}}return{type:wo("0x22"),content:Jr(e,"*Reset font size*")}}if("fontFamily"==r[wo("0x16")]){const t=r.commandParams[0][wo("0x1c")];return t?{type:"format",content:Jr(e,"*Set font family:* %0",t)}:{type:"format",content:Jr(e,wo("0x3"))}}if("fontColor"==r[wo("0x16")]){const t=r.commandParams[0][wo("0x1c")];if(t){const r=(0,i.normalizeColorOptions)(this.editor[wo("0x6")][wo("0x20")](wo("0xe")))[wo("0x1b")]((e=>e[wo("0x2")]==t));let o=t,s="";return r&&(o=r[wo("0x28")],s=n(o).toLowerCase()),{type:wo("0x22"),content:Jr(e,wo("0x25"),s)[wo("0x23")](),color:{value:t,title:s||o}}}return{type:wo("0x22"),content:Jr(e,wo("0x0"))}}if(wo("0x18")==r[wo("0x16")]){const t=r[wo("0x7")][0].value;if(t){const r=(0,i.normalizeColorOptions)(this.editor.config[wo("0x20")](wo("0x1f")))[wo("0x1b")]((e=>e[wo("0x2")]==t));let o=t,s="";return r&&(o=r[wo("0x28")],s=n(o).toLowerCase()),{type:wo("0x22"),content:Jr(e,wo("0x1a"),s)[wo("0x23")](),color:{value:t,title:s||o}}}return{type:wo("0x22"),content:Jr(e,wo("0x14"))}}}}))}}const Do=["commandName","normalizeSizeOptions","toUpperCase","copyFormat","split","afterInit","pasteFormat","plugins","fontColor.colors","fontBackgroundColor","find","slice","fontSize.options","get","fontSize","enableCommand","FontSize","config","type","locale","*Remove all formatting*","_registerLegacyDescription","registerDescriptionCallback","commands","_descriptionFactory","model","boolean","editor","toLowerCase","TrackChangesEditing","format","*Set format to:* %0","join","entries","formatBlock"];var Bo,Po;Bo=Do,Po=465,function(t){for(;--t;)Bo.push(Bo.shift())}(++Po);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{[Uo("0x1e")](){const t=this[Uo("0x11")],e=t.plugins[Uo("0x3")](Uo("0x13")),n=t[Uo("0xd")][Uo("0x3")](Uo("0x1c")),r=t.commands.get(Uo("0x1f"));n&&r&&(e._enableDefaultAttributesIntegration(Uo("0x1f")),e[Uo("0x5")](Uo("0x1c")),this[Uo("0xb")]())}[Uo("0xb")](){const t=this.editor,e=t.locale;t[Uo("0x20")][Uo("0x3")]("TrackChangesEditing")[Uo("0xe")][Uo("0xc")]((n=>{if(Uo("0x18")!=n[Uo("0x8")]&&"formatInline"!=n.type)return;const{data:r}=n;if(r&&Uo("0x1f")===r[Uo("0x19")]){const n=[],i=r.commandParams[0];for(const[e,r]of Object[Uo("0x17")](i))n.push(Go(t,e,r));return n.length?{type:Uo("0x14"),content:Jr(e,Uo("0x15"),n[Uo("0x16")](", "))}:{type:Uo("0x14"),content:Jr(e,Uo("0xa"))}}}))}}function Go(t,e,n){const r=t[Uo("0x9")].t,o=e[Uo("0x1d")](/(?=[A-Z])/)[Uo("0x16")](" "),s=r(o.charAt(0)[Uo("0x1b")]()+o[Uo("0x1")](1))[Uo("0x12")]();if(Uo("0x10")==typeof n)return s;if("fontColor"===e||Uo("0x22")===e){const e=(0,i.normalizeColorOptions)(t[Uo("0x7")][Uo("0x3")](Uo("0x21"))).find((t=>t[Uo("0xf")]==n));return s+" ("+(e?r(e.label)[Uo("0x12")]():n)+")"}if(Uo("0x4")===e&&isNaN(parseFloat(n))){const e=t.plugins[Uo("0x3")](Uo("0x6"))[Uo("0x1a")](t[Uo("0x7")][Uo("0x3")](Uo("0x2")))[Uo("0x0")]((t=>t.model==n));return s+" ("+(e?r(e.title)[Uo("0x12")]():n)+")"}return s+" ("+n+")"}const Vo=["TrackChangesEditing","heading","afterInit","ELEMENT_HEADING_CUSTOM","view","plugins","editor","_headingOptions","locale","registerElementLabel","ELEMENT_HEADING","match","formatBlock","_descriptionFactory","commandName","value","get","commandParams","type","_enableDefaultAttributesIntegration","title","_getHeadingLevel","name","paragraph","model","*Change to:* %0","format","registerDescriptionCallback","has","_registerLegacyDescription","config"];var Ho,zo;Ho=Vo,zo=259,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{[Wo("0x16")](){const t=this[Wo("0x1a")];if(!t[Wo("0x19")][Wo("0x11")]("HeadingEditing"))return;this[Wo("0x1b")]=t[Wo("0x13")][Wo("0x5")]("heading.options");const e=t[Wo("0x1c")],n=t[Wo("0x19")][Wo("0x5")](Wo("0x14"));n[Wo("0x8")]("heading");for(const t of this[Wo("0x1b")])Wo("0xc")!=t[Wo("0xd")]&&n._descriptionFactory[Wo("0x1d")](t.model,(n=>{const r=this[Wo("0xa")](t[Wo("0xd")]);return null!==r?(s=n,x=r,Jr(e,Wo("0x1e"),[s,x])):(i=n,o=t.title,Jr(e,Wo("0x17"),[i,o]));var i,o,s,x}));this[Wo("0x12")]()}[Wo("0x12")](){const t=this[Wo("0x1a")],e=t.locale;t[Wo("0x19")][Wo("0x5")](Wo("0x14"))[Wo("0x2")][Wo("0x10")]((t=>{if(Wo("0x1")!=t[Wo("0x7")])return;const{data:n}=t;if(n&&Wo("0x15")==n[Wo("0x3")]){const t=n[Wo("0x6")][0][Wo("0x4")],s=this[Wo("0xa")](t);if(null!==s)return{type:Wo("0xf"),content:Jr(e,Wo("0xe"),(1,o=s,Jr(e,Wo("0x1e"),[1,o])))};const x=this[Wo("0x1b")].find((e=>e[Wo("0xd")]===t))[Wo("0x9")];return{type:Wo("0xf"),content:Jr(e,Wo("0xe"),(r=1,i=x,Jr(e,Wo("0x17"),[r,i])))}}var r,i,o}))}[Wo("0xa")](t){var e,n;const r=t[Wo("0x0")](/^heading(\d+)/);if(r)return r[1];const i=null===(e=this[Wo("0x1b")])||void 0===e?void 0:e.find((e=>e[Wo("0xd")]==t));if(i&&i[Wo("0x18")]){const t=i[Wo("0x18")],e=(null!==(n=t[Wo("0xb")])&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const qo=["_registerLegacyDescription","locale","FORMAT_HIGHLIGHT","type","_enableDefaultAttributesIntegration","config","highlight","commandName","editor","highlight.options","plugins","*Set highlight:* %0","*Remove highlight*","value","format","has","registerDescriptionCallback","get","_descriptionFactory","color","registerAttributeLabel","HighlightEditing","model","find","TrackChangesEditing"];var $o,Xo;$o=qo,Xo=426,function(t){for(;--t;)$o.push($o.shift())}(++Xo);const Zo=function(t,e){return qo[t-=0]};class Yo extends t.Plugin{afterInit(){const t=this[Zo("0x7")];if(!t[Zo("0x9")][Zo("0xe")](Zo("0x14")))return;const e=t.plugins[Zo("0x10")]("TrackChangesEditing"),n=t[Zo("0x0")];e[Zo("0x3")](Zo("0x5"),[Zo("0x5")]),e[Zo("0x11")][Zo("0x13")]("highlight",Jr(n,Zo("0x1"))),this[Zo("0x18")]()}[Zo("0x18")](){const t=this.editor,e=t[Zo("0x0")];t.plugins[Zo("0x10")](Zo("0x17"))[Zo("0x11")][Zo("0xf")]((n=>{if("formatInline"!=n[Zo("0x2")])return;const{data:r}=n;if(r&&Zo("0x5")==r[Zo("0x6")]){const n=e.t,i=r.commandParams[0][Zo("0xc")];if(i){const r=t[Zo("0x4")].get(Zo("0x8"))[Zo("0x16")]((t=>t[Zo("0x15")]==i)),o=n(r.title).toLowerCase();return{type:Zo("0xd"),content:Jr(e,Zo("0xa"),o),color:{value:r[Zo("0x12")],title:r.title}}}return{type:"format",content:Jr(e,Zo("0xb"),Jr(e,Zo("0x1")))}}}))}}const Jo=["high","_descriptionFactory","insert","div","registerElementLabel","ELEMENT_HORIZONTAL_LINE","createPositionAt","ck-horizontal-line","has","TrackChangesEditing","get","editor","horizontalLine","showSuggestionHighlights","elementToStructure","plugins","afterInit","addClass","locale","createContainerElement","createEmptyElement"];var Qo,ts;Qo=Jo,ts=126,function(t){for(;--t;)Qo.push(Qo.shift())}(++ts);const es=function(t,e){return Jo[t-=0]};class ns extends t.Plugin{[es("0x10")](){const t=this[es("0xb")];if(!t[es("0xf")][es("0x8")]("HorizontalLineEditing"))return;t[es("0xf")][es("0xa")](es("0x9")).enableCommand("horizontalLine");const e=t[es("0xf")][es("0xa")](es("0x9")),n=t[es("0x12")];e[es("0x1")][es("0x4")]("horizontalLine",(t=>Jr(n,es("0x5"),t))),t.conversion.for("dataDowncast")[es("0xe")]({model:es("0xc"),view:(t,{writer:e,options:n})=>{if(!n[es("0xd")])return null;const r=e[es("0x13")](es("0x3")),i=e[es("0x14")]("hr");return e[es("0x11")](es("0x7"),r),e[es("0x2")](e[es("0x6")](r,0),i),r},converterPriority:es("0x0")})}}const rs=["rawHtml","_descriptionFactory","locale","_enableDefaultAttributesIntegration","attribute","getFirstRange","*Change %0 content*","type","TrackChangesEditing","format","HtmlEmbed","nodeAfter","afterInit","htmlEmbed","registerElementLabel","_registerLegacyDescription","key","value","formatBlock","plugins","has","ELEMENT_HTML_EMBED","registerDescriptionCallback","editor","get","commandName"];var is,os;is=rs,os=413,function(t){for(;--t;)is.push(is.shift())}(++os);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{[ss("0xf")](){const t=this[ss("0x0")];if(!t.plugins[ss("0x17")](ss("0xd")))return;const e=t[ss("0x16")].get(ss("0xb")),n=t[ss("0x5")];e[ss("0x4")][ss("0x11")](ss("0x3"),(t=>Jr(n,ss("0x18"),t))),e[ss("0x6")](ss("0x10"),[],[ss("0x14")]),e._descriptionFactory[ss("0x19")]((t=>{if(ss("0x7")!=t[ss("0xa")])return;const{data:e}=t;if(e&&ss("0x14")==e[ss("0x13")]&&t[ss("0x8")]().start[ss("0xe")].is("element",ss("0x3"))){const t=Jr(n,ss("0x18"));return{type:ss("0xc"),content:Jr(n,ss("0x9"),t)}}})),this[ss("0x12")]()}[ss("0x12")](){const t=this[ss("0x0")],e=t[ss("0x5")];t[ss("0x16")][ss("0x1")](ss("0xb"))[ss("0x4")][ss("0x19")]((t=>{if(ss("0x15")!=t[ss("0xa")])return;const{data:n}=t;if(n&&ss("0x10")==n[ss("0x2")]){const t=Jr(e,ss("0x18"));return{type:ss("0xc"),content:Jr(e,ss("0x9"),t)}}}))}}const as=["document","backward","_registerLegacyDescription","selection","markDeletion","resizedWidth","nodeAfter","removeObject","_suggestionFactory","enableCommand","schema","key","find","ImageUploadEditing","markBlockFormat","accept","element","registerCustomCallback","fromPosition","uploadImage","isCollapsed","convertBlockImageToInline","registerDescriptionCallback","nodeBefore","Block image to inline image","previous","ELEMENT_INLINE_IMAGE","type","registerElementLabel","ELEMENT_IMAGE","toNext","*Remove image text alternative*","commandParams","getClosestSelectedImageElement","forceDefaultExecution","isOwn","getNearestSelectionRange","TrackChangesEditing","formatInline","isBefore","subType","editor","isEqual","plugins","isIntersecting","getFirstRange","*Set image text alternative:* %0","newValue","end","*Set image width:* %0","FORMAT_IMAGE_SIZE","insertImage","markInsertion","detach","locale","resizeImage","start","imageTextAlternative","width","formatBlock","discard","ImageBlockEditing","commandName","imageTypeInline","insertion","length","change","isBlockImage","imageCaption","registerAttributeLabel","imageTypeBlock","has","ImageResize","get","forward","chain","getSuggestionCallback","toggleImageCaption","join","Inline image to block image","convertInlineImageToBlock","ImageEditing","ImageUtils","getCaptionFromImageModelElement","ImageTextAlternativeEditing","_descriptionFactory","createRange","_enableDefaultAttributesIntegration","ImageCaptionUtils","format","findIndex","caption","model","imageStylePreApply"];var cs,ls;cs=as,ls=411,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{afterInit(){const t=this[us("0x6")];if(!t[us("0x8")][us("0x24")](us("0x2e")))return;const e=t[us("0x8")][us("0x26")]("TrackChangesEditing"),n=t.plugins.get(us("0x2f")),r=t[us("0x13")];e[us("0x44")](us("0x10")),e[us("0x32")].registerElementLabel("imageBlock",(t=>Jr(r,us("0x58"),t))),e._descriptionFactory[us("0x57")]("imageInline",(t=>Jr(r,us("0x55"),t))),e[us("0x32")][us("0x57")](us("0x38"),(()=>Jr(r,"ELEMENT_CAPTION"))),t[us("0x8")][us("0x24")](us("0x48"))&&e[us("0x44")](us("0x4e")),t[us("0x8")][us("0x24")](us("0x1a"))&&t[us("0x8")].has("ImageInlineEditing")&&(e[us("0x44")]("imageTypeInline",((r,i)=>{const o=n[us("0x5c")](t.model[us("0x3b")][us("0x3e")]);t.model.change((()=>{e.markBlockFormat(o,{commandName:us("0x1c"),commandParams:[i]},[],us("0x50"))}))})),e[us("0x44")](us("0x23"),((r,i)=>{t[us("0x39")].change((o=>{let x=n[us("0x5c")](t[us("0x39")][us("0x3b")][us("0x3e")]),a=o.createRangeOn(x);const c=s.LivePosition[us("0x4d")](a.start,"toPrevious"),l=s.LivePosition[us("0x4d")](a[us("0xd")],us("0x59"));e[us("0x5d")]((()=>r(i))),x=n[us("0x5c")](t.model[us("0x3b")][us("0x3e")]),a=o.createRangeOn(x);const u=o[us("0x33")](c,l);c[us("0x12")](),l.detach(),e[us("0x49")](x,{commandName:us("0x1c"),commandParams:[i]},[],"convertInlineImageToBlock"),u[us("0x15")][us("0x4")](a[us("0x15")])&&e[us("0x11")](o.createRange(u[us("0x15")],a[us("0x15")]),us("0x2d")),a[us("0xd")][us("0x4")](u.end)&&e.markInsertion(o[us("0x33")](a[us("0xd")],u[us("0xd")]),us("0x2d"))}))})),e[us("0x43")][us("0x4c")]("formatBlock","convertInlineImageToBlock",us("0x2b"),(()=>!1)),e[us("0x43")][us("0x4c")]("formatBlock",us("0x2d"),us("0x4a"),(()=>!1)),e[us("0x43")][us("0x4c")](us("0x18"),us("0x2d"),us("0x19"),e[us("0x43")][us("0x29")](us("0x18"),"","accept")),e._suggestionFactory[us("0x4c")](us("0x1d"),us("0x2d"),us("0x2b"),(()=>!1)),e[us("0x43")][us("0x4c")]("insertion","convertInlineImageToBlock",us("0x19"),(([n])=>{const r=e[us("0x43")][us("0x29")]("insertion","",us("0x19"));let i=n[us("0x15")],o=n[us("0xd")];const s=t.model[us("0x45")][us("0x1")](i,us("0x3c")),x=t[us("0x39")][us("0x45")][us("0x1")](o,us("0x27"));s.isCollapsed&&(i=s.start),x[us("0x4f")]&&(o=x[us("0xd")]),r([t[us("0x39")][us("0x33")](i,o)])})),e._suggestionFactory[us("0x4c")](us("0x18"),us("0x2d"),us("0x28"),x),e[us("0x43")][us("0x4c")](us("0x1d"),us("0x2d"),us("0x28"),x)),t.plugins[us("0x24")]("ImageCaptionEditing")&&(e[us("0x44")](us("0x2a"),((r,i)=>{const o=t.plugins[us("0x26")](us("0x35"));let s=n[us("0x5c")](t[us("0x39")][us("0x3b")][us("0x3e")]),x=o[us("0x30")](s);t[us("0x39")][us("0x1f")]((()=>{if(x)return void e[us("0x3f")](t.model.createRangeOn(x));const a=n[us("0x20")](s);r(i),s=n[us("0x5c")](t[us("0x39")][us("0x3b")][us("0x3e")]),x=o[us("0x30")](s),e.markInsertion(t[us("0x39")].createRangeOn(x),a?null:us("0x21"))}))})),e[us("0x43")].registerCustomCallback(us("0x1d"),us("0x21"),us("0x28"),x));const i=[{type:"formatBlock",subType:us("0x3a")},{type:us("0x1d"),subType:us("0x21")},{type:us("0x18"),subType:us("0x2d")},{type:us("0x1d"),subType:"convertInlineImageToBlock"}];function o(t,r){const o=i[us("0x37")]((({type:e,subType:n})=>t[us("0x56")]==e&&t[us("0x5")]==n)),s=i.findIndex((({type:t,subType:e})=>r[us("0x56")]==t&&r[us("0x5")]==e));if(o<0||s<0)return!1;const x=t[us("0xa")](),a=r[us("0xa")]();if((0==o||1==o)&&2==s&&x[us("0x9")](a))return!0;if(2==o&&3==s){const t=e._findSuggestions(x,us("0x1d")).filter((({suggestion:t,meta:e})=>e[us("0x0")]&&"convertInlineImageToBlock"==t[us("0x5")]));if(t.length>1&&a[us("0xd")].isEqual(x[us("0x15")]))return!0;if(1==t[us("0x1e")]&&(x[us("0x15")][us("0x7")](a[us("0xd")])||x[us("0xd")][us("0x7")](a.start)))return!0}if(3==o&&3==s&&x[us("0x15")][us("0x4")](a[us("0x15")])){const t=x[us("0xd")][us("0x41")],e=a[us("0x15")][us("0x52")];return n[us("0x20")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x8")][us("0x24")](us("0x25"))&&(e._enableDefaultAttributesIntegration(us("0x14"),[],[us("0x40")]),e._descriptionFactory[us("0x22")](us("0x40"),Jr(r,us("0xf")))),t[us("0x8")][us("0x24")](us("0x31"))&&e[us("0x34")](us("0x16"),[],["alt"]),e[us("0x32")][us("0x51")]((t=>{if(i[us("0x47")]((({type:e,subType:n})=>t.type==e&&t[us("0x5")]==n)))return t[us("0x54")]?{}:void 0})),e[us("0x32")][us("0x51")]((t=>{if(us("0x1d")==t.type||"deletion"==t[us("0x56")]){const e=t.getContainedElement();if(e&&e.is(us("0x4b"),"caption"))return{type:us("0x1d")==t[us("0x56")]?"addObject":us("0x42"),element:e,quantity:1}}})),e[us("0x32")][us("0x51")]((t=>us("0x18")==t[us("0x56")]&&"convertInlineImageToBlock"==t.subType?{type:us("0x36"),content:us("0x2c")}:us("0x18")==t.type&&us("0x50")==t.subType?{type:us("0x36"),content:us("0x53")}:void 0)),e[us("0x32")].registerDescriptionCallback((t=>{if("attribute"!=t.type)return;const{data:e}=t;if(!e||"alt"!=e[us("0x46")])return;const n=e[us("0xc")];return n?{type:us("0x36"),content:Jr(r,"*Set image text alternative:* %0",'"'+n+'"')}:{type:us("0x36"),content:Jr(r,us("0x5a"))}})),this._registerLegacyDescription()}[us("0x3d")](){const t=this[us("0x6")],e=t.locale;t[us("0x8")][us("0x26")](us("0x2"))._descriptionFactory[us("0x51")]((t=>{if(us("0x18")!=t[us("0x56")]&&us("0x3")!=t[us("0x56")])return;const{data:n}=t;if(n){if(us("0x16")==n[us("0x1b")]){const t=n[us("0x5b")][0][us("0xc")];return t?{type:us("0x36"),content:Jr(e,us("0xb"),'"'+t+'"')}:{type:us("0x36"),content:Jr(e,us("0x5a"))}}if(us("0x14")==n[us("0x1b")]){const t=n[us("0x5b")][0][us("0x17")];return t?{type:us("0x36"),content:Jr(e,us("0xe"),t)}:{type:us("0x36"),content:Jr(e,"*Reset image width*")}}}}))}}const gs=["formatBlock","newValue","_registerLegacyDescription","replaceImageSource","get","_handleLegacySuggestions","commandName","_enableDefaultAttributesIntegration","type","TrackChangesEditing","oldValue","registerDescriptionCallback","attribute","editor","*Replace image URL*","_suggestionFactory","format","formatInline","has","src","discard","locale","key","registerCustomCallback","plugins","ImageEditing","accept","getSuggestionCallback","_descriptionFactory"];var fs,hs;fs=gs,hs=333,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{afterInit(){if(!this[ms("0x1c")][ms("0xa")][ms("0x4")](ms("0xb")))return;const t=this.editor[ms("0x7")],e=this.editor[ms("0xa")][ms("0x13")](ms("0x18"));e[ms("0x16")]("replaceImageSource",[],[ms("0x5")]),e[ms("0xe")][ms("0x1a")]((e=>{if(ms("0x1b")!=e[ms("0x17")])return;const{data:n}=e;return n&&ms("0x5")==n[ms("0x8")]?n[ms("0x10")]&&n[ms("0x19")]?{type:ms("0x2"),content:Jr(t,ms("0x0"))}:{type:ms("0x2"),content:""}:void 0})),this[ms("0x14")]()}[ms("0x14")](){const t=this[ms("0x1c")].plugins[ms("0x13")](ms("0x18"));t._suggestionFactory[ms("0x9")](ms("0xf"),ms("0x12"),ms("0xc"),t[ms("0x1")][ms("0xd")](ms("0xf"),null,"discard")),t[ms("0x1")][ms("0x9")](ms("0xf"),ms("0x12"),ms("0x6"),t[ms("0x1")][ms("0xd")](ms("0xf"),null,ms("0xc"))),this[ms("0x11")]()}[ms("0x11")](){const t=this[ms("0x1c")],e=t.locale;t[ms("0xa")].get(ms("0x18"))._descriptionFactory[ms("0x1a")]((t=>{if(ms("0xf")!=t[ms("0x17")]&&ms("0x3")!=t.type)return;const{data:n}=t;return n&&ms("0x12")==n[ms("0x15")]?{type:ms("0x2"),content:Jr(e,"*Format:* replace image URL")}:void 0}))}}const bs=["toLowerCase","side","markBlockFormat","plugins","insertion","getSuggestion","newRange","end","registerDescriptionCallback","getClosestSelectedImageElement","isInContent","suggestion","selection","value","commandName","isEqual","afterInit","commands","format","isBlockImage","imageTypeInline","document","getContainedElement","locale","title","start","get","length","chain","*Format:* %0","imageStylePreApply","enableCommand","subType","accept","findIndex","formatBlock","has","change","head","FORMAT_SIDE_IMAGE","discard","formatInline","createRangeOn","nodeBefore","join","imageStylePostApply","_suggestionFactory","filter","differ","type","editor","setImageNaturalSizeAttributes","_registerLegacyDescription","_descriptionFactory","imageTypeBlock","next","commandParams","_splitMarkerName","imageStyle","getFirstRange","getSuggestionCallback","hasSuggestion","model","refresh","commandReversedParams","registerCustomCallback","discardSuggestion","convertInlineImageToBlock","_findSuggestions","isBefore","Users","isInlineImage","markInlineFormat","imageCaption"];var Es,_s;Es=bs,_s=141,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{[Ts("0x17")](){const t=this[Ts("0x39")];if(!t[Ts("0xa")][Ts("0x2b")]("ImageStyleEditing"))return;const n=t[Ts("0xa")][Ts("0x21")]("TrackChangesEditing"),r=t[Ts("0xa")][Ts("0x21")]("ImageUtils"),i={};n[Ts("0x26")](Ts("0x41"),((i,o)=>{const s=t[Ts("0xa")][Ts("0x21")](Ts("0x3")).me,x=t[Ts("0x18")][Ts("0x21")](Ts("0x41"));let a=r[Ts("0x10")](t[Ts("0x45")].document[Ts("0x13")]),c=t[Ts("0x45")][Ts("0x31")](a),l=x[Ts("0x14")];if(l==o[Ts("0x14")])return;const u={commandName:"imageStyle",commandParams:[o],formatGroupId:(0,e.uid)()};t[Ts("0x45")][Ts("0x2c")]((()=>{if(n.getSuggestions()[Ts("0x36")]((t=>t[Ts("0x11")]&&s==t.author&&(Ts("0x2a")==t.type||Ts("0x30")==t.type)&&(Ts("0x25")==t[Ts("0x27")]||"imageStylePostApply"==t[Ts("0x27")])&&t[Ts("0x42")]()[Ts("0x16")](c))).forEach((t=>n[Ts("0x49")](t[Ts("0x2d")]))),a=r[Ts("0x10")](t[Ts("0x45")].document[Ts("0x13")]),c=t[Ts("0x45")].createRangeOn(a),x[Ts("0x46")](),t[Ts("0x18")][Ts("0x21")](Ts("0x1b"))[Ts("0x46")](),t[Ts("0x18")][Ts("0x21")](Ts("0x3d"))[Ts("0x46")](),l=x[Ts("0x14")],l!=o.value)return r[Ts("0x4")](a)&&x.shouldConvertImageType(o[Ts("0x14")],a)?(i({...o,setImageSizes:!1}),a=r[Ts("0x10")](t[Ts("0x45")].document[Ts("0x13")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],Ts("0x25"))):void(r.isBlockImage(a)?n[Ts("0x9")](a,u,[],Ts("0x34")):n[Ts("0x5")](c,u,Ts("0x34")))}))}));for(const e of t.plugins.get("ImageStyleEditing").normalizedStyles)i[e.name]=e[Ts("0x1f")][Ts("0x7")]();n[Ts("0x35")][Ts("0x48")](Ts("0x2a"),"imageStylePreApply","join",(()=>!1)),n[Ts("0x35")][Ts("0x48")]("formatBlock",Ts("0x34"),Ts("0x33"),(()=>!1)),n[Ts("0x35")].registerCustomCallback(Ts("0x30"),"imageStylePostApply",Ts("0x33"),(()=>!1)),n[Ts("0x35")][Ts("0x48")]("formatBlock",Ts("0x25"),Ts("0x28"),(([t])=>{r[Ts("0x3a")](t[Ts("0x1d")]())})),n._suggestionFactory.registerCustomCallback("formatBlock",Ts("0x25"),Ts("0x2f"),((t,e)=>{n[Ts("0x35")][Ts("0x43")]("formatBlock","",Ts("0x28"))(t,{commandName:e[Ts("0x15")],commandParams:e[Ts("0x47")]})})),n[Ts("0x35")][Ts("0x48")](Ts("0x2a"),"imageStylePreApply",Ts("0x23"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0x2a"),subType:Ts("0x25")},{type:Ts("0xb"),subType:"imageCaption"},{type:Ts("0x2a"),subType:Ts("0x0")},{type:Ts("0xb"),subType:Ts("0x0")}];function s(t,e){const i=o[Ts("0x29")]((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=o[Ts("0x29")]((({type:t,subType:n})=>e.type==t&&e[Ts("0x27")]==n));if(i<0||s<0)return!1;const x=t[Ts("0x42")](),a=e[Ts("0x42")]();if((0==i||1==i)&&2==s&&x.isIntersecting(a))return!0;if(2==i&&3==s){const t=n[Ts("0x1")](x,Ts("0xb"))[Ts("0x36")]((({suggestion:t,meta:e})=>e.isOwn&&Ts("0x0")==t.subType));if(t[Ts("0x22")]>1&&a[Ts("0xe")].isEqual(x.start))return!0;if(1==t[Ts("0x22")]&&(x[Ts("0x20")][Ts("0x16")](a.end)||x[Ts("0xe")][Ts("0x16")](a.start)))return!0}if(3==i&&3==s&&x[Ts("0x20")][Ts("0x2")](a[Ts("0x20")])){const t=x[Ts("0xe")].nodeAfter,e=a[Ts("0x20")][Ts("0x32")];return r[Ts("0x1a")](t)&&t===e}return!1}t[Ts("0x45")][Ts("0x1c")].registerPostFixer((()=>{let e=!1;const i=Array.from(t[Ts("0x45")][Ts("0x1c")][Ts("0x37")].getChangedMarkers());for(const{name:t,data:o}of i){const{group:i,type:s,subType:x,id:a}=n[Ts("0x40")](t);if(Ts("0x12")==i&&n[Ts("0x44")](a)){if(Ts("0x2a")==s&&(Ts("0x25")==x||"imageStylePostApply"==x)){const t=n[Ts("0xc")](a);if(o[Ts("0xd")]){const i=t[Ts("0x42")]()[Ts("0x1d")]();if(r[Ts("0x1a")](i))continue;n[Ts("0x49")](t),e=!0}}if(Ts("0xb")==s&&Ts("0x6")==x&&!o.newRange){const t=n[Ts("0xc")](a);t[Ts("0x3e")]&&t.next[Ts("0x11")]&&(n[Ts("0x49")](t[Ts("0x3e")]),e=!0)}}}return e})),this[Ts("0x3b")](i)}[Ts("0x3b")](t){const e=this[Ts("0x39")],n=e[Ts("0x1e")];e[Ts("0xa")][Ts("0x21")]("TrackChangesEditing")[Ts("0x3c")][Ts("0xf")]((e=>{if(Ts("0x2a")!=e[Ts("0x38")]&&Ts("0x30")!=e[Ts("0x38")])return;const{data:r}=e;if(!r||"imageStyle"!=r[Ts("0x15")])return;const i=r[Ts("0x3f")][0][Ts("0x14")];return o=Ts("0x8")===i?Jr(n,Ts("0x2e")):t[i]||i,{type:Ts("0x19"),content:Jr(n,Ts("0x24"),o)};var o}))}}const Cs=["editor","get","enableCommand","trackChanges","bind","value","lowest","high","forEach","_trackChangesExecuted","execute","importWord","_handleImportedData","track_changes","_setSuggestionData","afterInit","commands","Users","_trackChangesValueDuringImport","plugins","TrackChangesEditing","listenTo"];var As,ks;As=Cs,ks=403,function(t){for(;--t;)As.push(As.shift())}(++ks);const Is=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{constructor(t){super(t),this[Is("0xb")]=!1,this._trackChangesExecuted=!1}[Is("0x8")](){const t=this[Is("0xf")],e=t[Is("0x9")][Is("0x10")](Is("0x4")),n=t[Is("0x9")].get(Is("0x12"));e&&(e.on(Is("0x3"),((t,[,e])=>{this._trackChangesValueDuringImport=n[Is("0x14")],e.collaboration_features[Is("0x6")]=!this[Is("0xb")]}),{priority:Is("0x0")}),this[Is("0xe")](e,"dataInsert",this[Is("0x5")][Is("0x13")](this)),this[Is("0xe")](e,"dataInsert",(()=>{this[Is("0x2")]&&(n[Is("0x3")](),this[Is("0x2")]=!1)}),{priority:Is("0x15")}),t[Is("0xc")].get(Is("0xd"))[Is("0x11")](Is("0x4")))}[Is("0x5")](t,e){const{suggestions:n}=e,r=this[Is("0xf")][Is("0x9")][Is("0x10")](Is("0x12")),i=r.value;this[Is("0xb")]!==i&&(r[Is("0x3")](),this[Is("0x2")]=!0),n&&n[Is("0x1")]((({id:t,type:e,author:n,created_at:r})=>{const i={id:t,type:e,authorId:this[Is("0xf")][Is("0xc")][Is("0x10")](Is("0xa")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:"importWord"}}};this[Is("0xf")][Is("0xc")].get(Is("0xd"))[Is("0x7")](i)}))}}const Ss=["formatBlock","_enableDefaultAttributesIntegration","*Indent:* %0","afterInit","_registerLegacyDescription","registerDescriptionCallback","getItems","outdent","IndentBlock","enableCommand","locale","commandName","_registerBlockAttribute","*Outdent:* %0","TrackChangesEditing","indentBlock","getItemLabel","_descriptionFactory","blockIndent","editor","has","outdentBlock","plugins","type","get"];var vs,Ns;vs=Ss,Ns=316,function(t){for(;--t;)vs.push(vs.shift())}(++Ns);const Ls=function(t,e){return Ss[t-=0]};class Ms extends t.Plugin{[Ls("0xc")](){const t=this[Ls("0x3")],e=t[Ls("0x6")][Ls("0x8")](Ls("0x17"));if(t[Ls("0x6")].has("IndentEditing")&&(e[Ls("0x12")]("indent"),e[Ls("0x12")](Ls("0x10"))),t[Ls("0x6")][Ls("0x4")](Ls("0x11")))for(const t of[Ls("0x18"),Ls("0x5")])e[Ls("0xa")](t);const n=t.locale;e[Ls("0x15")](Ls("0x2")),e[Ls("0x1")].registerAttributeLabel(Ls("0x2"),Jr(n,"FORMAT_INDENT")),this._registerLegacyDescription()}[Ls("0xd")](){const t=this[Ls("0x3")],e=t[Ls("0x13")],n=t.plugins[Ls("0x8")](Ls("0x17"));n[Ls("0x1")][Ls("0xe")]((t=>{if(Ls("0x9")!=t[Ls("0x7")])return;const{data:r}=t;if(!r)return;if(Ls("0x18")!=r[Ls("0x14")]&&"outdentBlock"!=r[Ls("0x14")])return;const i=t[Ls("0xf")]()[0],o=n[Ls("0x1")][Ls("0x0")](i);return"indentBlock"==r[Ls("0x14")]?{type:"format",content:Jr(e,Ls("0xb"),o)}:Ls("0x5")==r[Ls("0x14")]?{type:"format",content:Jr(e,Ls("0x16"),o)}:void 0}))}}var ws,Os,Fs=["editor","requires","plugins","enableCommand","TrackChangesEditing","get","init"];ws=Fs,Os=446,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Bs extends t.Plugin{static get[Ds("0x3")](){return[qi.Input]}[Ds("0x1")](){this[Ds("0x2")][Ds("0x4")][Ds("0x0")](Ds("0x6"))[Ds("0x5")]("input")}}const Ps=["type","newValue","_registerLegacyDescription","*Remove link*","manualDecorators","link (","link","locale","_enableDefaultAttributesIntegration","TrackChangesEditing","registerDescriptionCallback","*Set link:* %0","attribute","format","get","toLowerCase","has","map","editor","label","afterInit","key","formatInline","commandName","plugins","_descriptionFactory","commandParams"];var Us,js;Us=Ps,js=233,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Ps[t-=0]};class Vs extends t.Plugin{[Gs("0x3")](){const t=this[Gs("0x1")];if(!t.plugins[Gs("0x1a")]("LinkEditing"))return;const e=t[Gs("0x7")].get(Gs("0x13")),n=t.commands.get("link");e[Gs("0x12")](Gs("0x10"),["linkHref",...n.manualDecorators[Gs("0x0")]((t=>t.id))]),e._enableDefaultAttributesIntegration("unlink");for(const t of n[Gs("0xe")])e[Gs("0x8")].registerAttributeLabel(t.id,Gs("0xf")+t[Gs("0x2")][Gs("0x19")]()+")");e._descriptionFactory[Gs("0x14")]((e=>{if(Gs("0x16")!=e[Gs("0xa")])return;const{data:n}=e;if(!n||"linkHref"!=n[Gs("0x4")])return;const r=n[Gs("0xb")],i=t[Gs("0x11")];return{type:Gs("0x17"),content:null==r?Jr(i,"*Remove link*"):Jr(i,Gs("0x15"),'"'+r+'"')}})),this[Gs("0xc")]()}[Gs("0xc")](){const t=this[Gs("0x1")],e=t.locale;t.plugins[Gs("0x18")]("TrackChangesEditing")[Gs("0x8")].registerDescriptionCallback((t=>{if(Gs("0x5")!=t[Gs("0xa")])return;const{data:n}=t;if(n){if(Gs("0x10")==n.commandName){const t=n[Gs("0x9")][0];return{type:Gs("0x17"),content:Jr(e,"*Set link:* %0",'"'+t+'"')}}return"unlink"==n[Gs("0x6")]?{type:Gs("0x17"),content:Jr(e,Gs("0xd"))}:void 0}}))}}const Hs=["commandName","has","todoList","bulleted","*Check item*","List","slice","editor","length","before","bulletedList","locale","element","formatInline","LegacyListEditing","registerElementLabel","numberedList","commands","_selectedElements","filter","ELEMENT_TODO_LIST","_descriptionFactory","indentList","LegacyTodoListEditing","isObject","change","plugins","ELEMENT_LIST_ITEM","todoListChecked","previousSibling","*Uncheck item*","listType","parent","afterInit","forceValue","outdentList","markBlockFormat","format","add","getSelectedBlocks","type","nextSibling","findIndex","selection","ELEMENT_NUMBERED_LIST","getAttribute","schema","end","enableCommand","document","todo","execute","numbered","model","from","push","*Change to:* %0","*Indent:* %0","value","checkTodoList","commandParams","get","createRange","ELEMENT_BULLETED_LIST","listItem","TrackChangesEditing","listIndent"];var zs,Ws;zs=Hs,Ws=246,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{[Ks("0x37")](){const t=this[Ks("0x1d")],e=t[Ks("0x21")];if(!t[Ks("0x30")].has(Ks("0x24")))return;const n=t[Ks("0x30")].get(Ks("0x14")),r=t[Ks("0x30")][Ks("0x17")](Ks("0x2d"));function i(e){return()=>{const r=t[Ks("0x8")][Ks("0x4")][Ks("0x41")],i=t[Ks("0x27")][Ks("0x10")](e);if(i[Ks("0xd")])return void t[Ks("0x6")]("paragraph",{});const o=e[Ks("0x1c")](0,-4),s=function(t,e,n){let r=Array[Ks("0x9")](t)[Ks("0x29")]((t=>{return e=t,(r=n).checkChild(e[Ks("0x36")],Ks("0x13"))&&!r[Ks("0x2e")](e);var e,r}));r=r[Ks("0x29")]((t=>!t.is(Ks("0x22"),Ks("0x13"))||t[Ks("0x0")](Ks("0x35"))!=e));const i=new Set;for(const t of r)t.is(Ks("0x22"),Ks("0x13"))?i[Ks("0x3c")]($s(t)):i[Ks("0x3c")](t);return Array[Ks("0x9")](i)}(r[Ks("0x3d")](),o,t[Ks("0x8")][Ks("0x1")]);t[Ks("0x8")][Ks("0x2f")]((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!i[Ks("0xd")]}],formatGroupId:"blockName"},Xs(t))}))}}function o(e){return()=>{const r=function(t){let e=Array[Ks("0x9")](t);const n=e[Ks("0x40")]((t=>"listItem"!=t.name));return n>-1&&(e=e[Ks("0x1c")](0,n)),e}(t[Ks("0x8")][Ks("0x4")].selection[Ks("0x3d")]()),i=t[Ks("0x8")][Ks("0x11")](t[Ks("0x8")].createPositionAt(r[0],Ks("0x1f")),t[Ks("0x8")].createPositionAt(r[r[Ks("0x1e")]-1],Ks("0x2")));t[Ks("0x8")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:Ks("0x15")},function(t){const e=new Set;for(const n of t){let t=n[Ks("0x3f")];for(;t&&t[Ks("0x0")](Ks("0x15"))>n.getAttribute("listIndent");)e[Ks("0x3c")](t),t=t[Ks("0x3f")]}return Array[Ks("0x9")](e)}(r))}))}}n[Ks("0x3")](Ks("0x26"),i("numberedList")),n[Ks("0x3")](Ks("0x20"),i(Ks("0x20"))),r&&n[Ks("0x3")]("todoList",i(Ks("0x18"))),n[Ks("0x3")](Ks("0x2c"),o(Ks("0x2c"))),n.enableCommand(Ks("0x39"),o(Ks("0x39"))),r&&n[Ks("0x3")](Ks("0xe"),(()=>{const e=t[Ks("0x27")][Ks("0x10")]("checkTodoList"),r=Array[Ks("0x9")](e[Ks("0x28")]);r[Ks("0x29")]((t=>t[Ks("0x0")](Ks("0x32"))!=e[Ks("0xd")])),t[Ks("0x8")][Ks("0x2f")]((()=>{for(const t of r)n[Ks("0x3a")](t,{commandName:Ks("0xe"),commandParams:[{forceValue:!e[Ks("0xd")]}]})}))})),n[Ks("0x2b")][Ks("0x25")](Ks("0x13"),(t=>Jr(e,"ELEMENT_LIST_ITEM",t))),n[Ks("0x2b")].registerDescriptionCallback((t=>{if("formatBlock"!=t.type&&Ks("0x23")!=t[Ks("0x3e")])return;const{data:n}=t;if(n){if(Ks("0x26")==n[Ks("0x16")]||"bulletedList"==n[Ks("0x16")]||Ks("0x18")==n.commandName)switch(n[Ks("0x16")].replace(Ks("0x1b"),"")){case Ks("0x19"):return r(Jr(e,Ks("0x12")));case Ks("0x7"):return r(Jr(e,Ks("0x42")));case Ks("0x5"):return r(Jr(e,Ks("0x2a")))}if(Ks("0x2c")==n[Ks("0x16")])return{type:Ks("0x3b"),content:Jr(e,Ks("0xc"),Jr(e,Ks("0x31")))};if(Ks("0x39")==n[Ks("0x16")])return{type:Ks("0x3b"),content:Jr(e,"*Outdent:* %0",Jr(e,Ks("0x31")))};if(Ks("0xe")==n[Ks("0x16")])return n[Ks("0xf")][0][Ks("0x38")]?{type:Ks("0x3b"),content:Jr(e,Ks("0x1a"))}:{type:Ks("0x3b"),content:Jr(e,Ks("0x34"))}}function r(t){return{type:"format",content:Jr(e,Ks("0xb"),t)}}}))}}function $s(t){const e=t.getAttribute(Ks("0x15"));if(0==e)return t;let n=t;for(;t[Ks("0x33")]&&t[Ks("0x33")].is(Ks("0x22"),"listItem");){const r=t[Ks("0x33")][Ks("0x0")]("listIndent");if(r==e)n=t[Ks("0x33")];else if(r<e)break;t=t[Ks("0x33")]}return n}function Xs(t){const e=[];if(t.is("element","listItem")&&t.getAttribute(Ks("0x15"))>0){let n=t[Ks("0x3f")];for(;n&&Ks("0x13")==n.name&&n[Ks("0x0")](Ks("0x15"))==t[Ks("0x0")](Ks("0x15"));)e[Ks("0xa")](n),n=n[Ks("0x3f")]}return e}const Zs=["listReversed","model","filter","before","length","flat","handleListStartCommand","LegacyListUtils","editor","*Change to:* %0","markMultiRangeBlockFormat","listItem","getAttribute","commandParams","listType","type","selection","commandName","_LIST_","has","getLastPosition","_getSuggestionBlocks","plugins","from","TrackChangesEditing","enableCommand","handleListStyleCommand","handleListReversedCommand","forward","bind","reversed","listStyle","toUpperCase","backward","numbered","getListTypeFromListStyleType","getSelectedBlocks","list.properties","document","*Format:* set start index to %0","createRange","styles","*Format:* set order to regular","formatBlock","element","_getTranslationKeyForListStyle","format","startIndex","createPositionAt","listStart","push","replace","ELEMENT_","getSiblingNodes","map","LegacyListPropertiesEditing","handleDescriptions","_getSuggestionBlocksForListStyle","get","getFirstPosition","change","*Format:* set order to reversed","afterInit","config"];var Ys,Js;Ys=Zs,Js=180,function(t){for(;--t;)Ys.push(Ys.shift())}(++Js);const Qs=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{[Qs("0xa")](){if(!this[Qs("0x14")][Qs("0x22")][Qs("0x1f")](Qs("0x3")))return;const t=this[Qs("0x14")][Qs("0xb")][Qs("0x6")](Qs("0x31")),e=this.editor[Qs("0x22")].get(Qs("0x24"));t[Qs("0x35")]&&e[Qs("0x25")](Qs("0x2b"),this[Qs("0x26")].bind(this)),t.reversed&&e[Qs("0x25")](Qs("0xc"),this[Qs("0x27")][Qs("0x29")](this)),t[Qs("0x3b")]&&e[Qs("0x25")](Qs("0x3d"),this[Qs("0x12")].bind(this)),e._descriptionFactory.registerDescriptionCallback(this[Qs("0x4")][Qs("0x29")](this))}[Qs("0x26")](t,e={}){const n=this[Qs("0x14")].plugins[Qs("0x6")]("TrackChangesEditing"),r=this[Qs("0x5")]();this[Qs("0x14")][Qs("0xd")][Qs("0x8")]((()=>{n[Qs("0x16")](r,{commandName:Qs("0x2b"),commandParams:[{type:e[Qs("0x1b")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e={}){const n=this[Qs("0x14")][Qs("0x22")][Qs("0x6")](Qs("0x24")),r=this._getSuggestionBlocks((t=>t.is("element",Qs("0x17"))&&Qs("0x2e")===t[Qs("0x18")]("listType")));if(r[Qs("0x10")]<1)return;const i=r[Qs("0x2")]((t=>this.editor[Qs("0xd")].createRange(this[Qs("0x14")][Qs("0xd")][Qs("0x3c")](t,Qs("0xf")),this[Qs("0x14")][Qs("0xd")].createPositionAt(t,0))));this[Qs("0x14")][Qs("0xd")].change((()=>{n.markMultiRangeBlockFormat(i,{commandName:Qs("0xc"),commandParams:[{reversed:e[Qs("0x2a")]}],formatGroupId:Qs("0xc")})}))}[Qs("0x12")](t,e={}){const n=this[Qs("0x14")][Qs("0x22")].get("TrackChangesEditing"),r=this._getSuggestionBlocks((t=>t.is("element",Qs("0x17"))&&Qs("0x2e")===t[Qs("0x18")](Qs("0x1a"))));if(r.length<1)return;const i=r[Qs("0x2")]((t=>this[Qs("0x14")].model[Qs("0x34")](this[Qs("0x14")][Qs("0xd")].createPositionAt(t,Qs("0xf")),this[Qs("0x14")].model[Qs("0x3c")](t,0))));this.editor.model.change((()=>{n.markMultiRangeBlockFormat(i,{commandName:"listStart",commandParams:[{startIndex:e[Qs("0x3b")]}],formatGroupId:Qs("0x3d")})}))}[Qs("0x4")](t){if(Qs("0x37")!=t[Qs("0x1b")]&&"formatInline"!=t[Qs("0x1b")])return;const e=this.editor.locale,{data:n}=t;if(!n)return;let r,i;switch(n[Qs("0x1d")]){case"listStyle":r=Qs("0x15"),i={type:Qs("0x3a"),content:Jr(e,r,Jr(e,this[Qs("0x39")](n.commandParams[0][Qs("0x1b")])))};break;case"listReversed":r=n.commandParams[0].reversed?Qs("0x9"):Qs("0x36"),i={type:Qs("0x3a"),content:Jr(e,r)};break;case Qs("0x3d"):r=Qs("0x33"),i={type:"format",content:Jr(e,r,n[Qs("0x19")][0][Qs("0x3b")])}}return i}[Qs("0x5")](){var t,e,n,r;const i=this.editor[Qs("0x22")].get("LegacyListUtils");let o=Array.from(this.editor[Qs("0xd")][Qs("0x32")][Qs("0x1c")][Qs("0x30")]());return(null===(t=o[0])||void 0===t?void 0:t.is(Qs("0x38"),Qs("0x17")))&&o.unshift(...i[Qs("0x1")](this[Qs("0x14")][Qs("0xd")][Qs("0x32")].selection.getFirstPosition(),"backward")),(null===(e=o[o.length-1])||void 0===e?void 0:e.is("element","listItem"))&&o[Qs("0x3e")](...i[Qs("0x1")](this[Qs("0x14")][Qs("0xd")].document[Qs("0x1c")][Qs("0x20")](),Qs("0x28"))),o=[...new Set(o)],(null===(r=null===(n=this[Qs("0x14")].model[Qs("0x32")][Qs("0x1c")][Qs("0x7")]())||void 0===n?void 0:n.parent)||void 0===r?void 0:r.is(Qs("0x38"),Qs("0x17")))&&(o=o[Qs("0xe")]((t=>t.is(Qs("0x38"),Qs("0x17"))))),o}[Qs("0x21")](t){const e=this[Qs("0x14")][Qs("0x22")][Qs("0x6")](Qs("0x13"));let n=Array[Qs("0x23")](this[Qs("0x14")][Qs("0xd")][Qs("0x32")][Qs("0x1c")][Qs("0x30")]())[Qs("0xe")](t)[Qs("0x2")]((t=>{const n=this[Qs("0x14")][Qs("0xd")][Qs("0x3c")](t,0);return[...e.getSiblingNodes(n,Qs("0x2d")),...e.getSiblingNodes(n,"forward")]}))[Qs("0x11")]();return n=[...new Set(n)],n}[Qs("0x39")](t){return Qs("0x0")+this.editor[Qs("0x22")][Qs("0x6")](Qs("0x13"))[Qs("0x2f")](t).toUpperCase()+Qs("0x1e")+t[Qs("0x2c")]()[Qs("0x3f")](/-/g,"_")}}const ex=["elementToElement","has","editor","get","attribute:url:media","downcastDispatcher","createEmptyElement","conversion","showSuggestionHighlights","high","stop","div","afterInit","enableCommand","plugins","options","_descriptionFactory","locale","media","data","TrackChangesEditing","mediaEmbed"];var nx,rx;nx=ex,rx=298,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ix=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[ix("0x0")](){const t=this[ix("0xc")];if(!t[ix("0x2")][ix("0xb")]("MediaEmbedEditing"))return;const e=t.plugins[ix("0xd")](ix("0x8")),n=t[ix("0x5")];e[ix("0x1")](ix("0x9")),e[ix("0x4")].registerElementLabel(ix("0x6"),(t=>Jr(n,"ELEMENT_MEDIA",t))),t[ix("0x11")].for("dataDowncast")[ix("0xa")]({model:"media",view:(t,{writer:e,options:n})=>{if(n[ix("0x12")])return e[ix("0x10")](ix("0x15"))},converterPriority:ix("0x13")}),t[ix("0x7")][ix("0xf")].on(ix("0xe"),((t,e,n)=>{n[ix("0x3")].showSuggestionHighlights&&t[ix("0x14")]()}),{priority:"high"})}}const sx=["plugins","MentionEditing","mention","get","enableCommand","editor"];var xx,ax;xx=sx,ax=242,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{afterInit(){const t=this[cx("0x3")];t[cx("0x4")].has(cx("0x5"))&&t[cx("0x4")][cx("0x1")]("TrackChangesEditing")[cx("0x2")](cx("0x0"))}}const ux=["get","enableCommand","has","locale","ELEMENT_PAGE_BREAK","plugins","pageBreak","editor","PageBreakEditing","_descriptionFactory","afterInit"];var dx,gx;dx=ux,gx=210,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{[fx("0x9")](){const t=this[fx("0x6")];if(!t[fx("0x4")][fx("0x1")](fx("0x7")))return;t.plugins[fx("0xa")]("TrackChangesEditing")[fx("0x0")](fx("0x5"));const e=t.plugins[fx("0xa")]("TrackChangesEditing"),n=t[fx("0x2")];e[fx("0x8")].registerElementLabel(fx("0x5"),(t=>Jr(n,fx("0x3"),t)))}}const mx=["ELEMENT_PARAGRAPH","nodeAfter","format","model","activeMarkers","isLimit","isTouching","checkChild","registerDescriptionCallback","insert","plugins","getFirstRange","consume","_enableDefaultAttributesIntegration","options","insertion","markerName","_registerLegacyDescription","ck-suggestion-marker--active","span","toViewPosition","_descriptionFactory","editor","type","showSuggestionHighlights","commandName","get","TrackChangesEditing","getItemLabel","createUIElement","mapper","ck-suggestion-marker-split","writer","markerRange","locale","name","data","$text","downcastDispatcher","isBlock","end","*Change to:* %0","afterInit","consumable","paragraph","addMarker:suggestion:insertion"];var px,bx;px=mx,bx=273,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x2d")](){const t=this[Ex("0x19")];if(!t[Ex("0xd")].has("Paragraph"))return;const e=t[Ex("0x25")],n=t[Ex("0xd")].get(Ex("0x1e"));n._descriptionFactory.registerElementLabel(Ex("0x1"),(t=>Jr(e,Ex("0x3"),t))),n[Ex("0x10")]("paragraph"),n.enableCommand("insertParagraph"),t.editing[Ex("0x29")].on(Ex("0x2"),Tx(t),{priority:"highest"}),t[Ex("0x27")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,r)=>{r[Ex("0x11")][Ex("0x1b")]&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:"highest"});const r=n[Ex("0x18")];r.registerDescriptionCallback((n=>{if(Ex("0x12")!==n[Ex("0x1a")])return;const{start:i,end:o}=n[Ex("0xe")]();if(!i[Ex("0x9")](o)||!i.nodeAfter)return;const s=t[Ex("0x6")].schema,x=i[Ex("0x4")];return s[Ex("0x2a")](x)&&!s[Ex("0x8")](x)&&s[Ex("0xa")](x,Ex("0x28"))?{type:Ex("0x12"),content:Jr(e,"*Insert:* %0",r[Ex("0x1f")](x,1))}:void 0})),this._registerLegacyDescription()}[Ex("0x14")](){const t=this.editor,e=t[Ex("0x25")];t[Ex("0xd")][Ex("0x1d")](Ex("0x1e"))[Ex("0x18")][Ex("0xb")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;return n&&Ex("0x1")==n[Ex("0x1c")]?{type:Ex("0x5"),content:Jr(e,Ex("0x2c"),Jr(e,Ex("0x3")))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t.plugins[Ex("0x1d")](Ex("0x1e")),s=r[Ex("0x24")].start,x=r.markerRange[Ex("0x2b")],a=t.model.schema;if(!s[Ex("0x9")](x)||!s[Ex("0x4")])return;const c=s[Ex("0x4")];if(a[Ex("0x2a")](c)&&!a[Ex("0x8")](c)&&a[Ex("0xa")](c,Ex("0x28"))){if(!i[Ex("0x0")][Ex("0xf")](r[Ex("0x24")],n[Ex("0x26")]))return;const t=i[Ex("0x23")][Ex("0x20")](Ex("0x16"),{class:Ex("0x22")}),s=i[Ex("0x21")][Ex("0x17")](x);e&&o[Ex("0x7")].includes(r[Ex("0x13")])&&i[Ex("0x23")].addClass(Ex("0x15"),t),i[Ex("0x23")][Ex("0xc")](s,t),i.mapper.bindElementToMarker(t,r[Ex("0x13")])}}}const yx=["has","_enableDefaultAttributesIntegration","TrackChangesEditing","removeFormat","commandName","formatInline","locale","registerDescriptionCallback","type","format","afterInit","_registerLegacyDescription","plugins","editor","get"];var Cx,Ax;Cx=yx,Ax=189,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{[kx("0x1")](){const t=this.editor;t.plugins[kx("0x6")]("RemoveFormatEditing")&&(t[kx("0x3")].get(kx("0x8"))[kx("0x7")](kx("0x9")),this[kx("0x2")]())}[kx("0x2")](){const t=this[kx("0x4")];t[kx("0x3")][kx("0x5")](kx("0x8"))._descriptionFactory[kx("0xd")]((e=>{if("formatBlock"!=e[kx("0xe")]&&kx("0xb")!=e[kx("0xe")])return;const{data:n}=e;return n&&kx("0x9")==n[kx("0xa")]?{type:kx("0x0"),content:Jr(t[kx("0xc")],"*Remove all formatting*")}:void 0}))}}const Rx=["discardAllSuggestions","acceptAllSuggestions","afterInit","has","TrackChangesEditing","enableCommand","acceptSuggestion","RestrictedEditingModeEditing","goToNextRestrictedEditingException","discardSelectedSuggestions","acceptSelectedSuggestions","plugins","get","trackChanges"];var Sx,vx;Sx=Rx,vx=498,function(t){for(;--t;)Sx.push(Sx.shift())}(++vx);const Nx=function(t,e){return Rx[t-=0]};class Lx extends t.Plugin{[Nx("0x8")](){const t=this.editor;if(!t[Nx("0x3")][Nx("0x9")]("RestrictedEditingModeEditing"))return;const e=t[Nx("0x3")][Nx("0x4")](Nx("0xa"));e.enableCommand("goToPreviousRestrictedEditingException"),e[Nx("0xb")](Nx("0x0"));const n=t[Nx("0x3")].get(Nx("0xd"));n[Nx("0xb")](Nx("0x5")),n[Nx("0xb")](Nx("0xc")),n[Nx("0xb")]("discardSuggestion"),n.enableCommand(Nx("0x7")),n[Nx("0xb")](Nx("0x6")),n.enableCommand(Nx("0x2")),n[Nx("0xb")](Nx("0x1"))}}const Mx=["createPositionBefore","mapper","addMarker:suggestion:deletion","includes","ELEMENT_LINE_BREAK","model","split","plugins","downcastDispatcher","locale","get","consumable","softBreak","element","test","writer","options","enableCommand","deletion","addClass","editor","activeMarkers","toViewPosition","shiftEnter","requires","TrackChangesEditing","ck-suggestion-marker--active","merge","addMarker:suggestion","name","markerRange","showSuggestionHighlights","ck-suggestion-marker-","addMarker:suggestion:insertion","high","getItems","createUIElement","editing","markerName"];var wx,Ox;wx=Mx,Ox=299,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get[Fx("0x25")](){return[Eo.ShiftEnter]}init(){const t=this[Fx("0x21")],e=t[Fx("0x14")][Fx("0x17")](Fx("0x26"));e[Fx("0x1e")](Fx("0x24")),t[Fx("0xb")][Fx("0x15")].on(Fx("0x7"),Bx(t),{priority:Fx("0x8")}),t[Fx("0xb")].downcastDispatcher.on(Fx("0xf"),Bx(t),{priority:"high"}),t.data[Fx("0x15")].on(Fx("0x2"),((e,n,r)=>{r[Fx("0x1d")][Fx("0x5")]&&Bx(t,{showActiveMarker:!1})(e,n,r)})),e._descriptionFactory.registerElementLabel(Fx("0x19"),(e=>Jr(t[Fx("0x16")],Fx("0x11"),e)))}}function Bx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Fx("0x14")].get(Fx("0x26"));if(!i[Fx("0x18")][Fx("0x1b")](r[Fx("0x4")],n[Fx("0x3")]))return;const s=t[Fx("0x12")];for(const t of r[Fx("0x4")][Fx("0x9")]()){if(!t.is(Fx("0x1a"),Fx("0x19")))continue;const n=Fx("0x1f")==r.markerName[Fx("0x13")](":")[1]?Fx("0x1"):Fx("0x13"),x=i.writer[Fx("0xa")]("span",{class:Fx("0x6")+n}),a=i[Fx("0xe")][Fx("0x23")](s[Fx("0xd")](t));e&&o[Fx("0x22")][Fx("0x10")](r[Fx("0xc")])&&i[Fx("0x1c")][Fx("0x20")](Fx("0x0"),x),i[Fx("0x1c")].insert(a,x),i[Fx("0xe")].bindElementToMarker(x,r[Fx("0xc")])}}}const Px=["selection","forceValue","document","afterInit","formatBlock","has","formatInline","locale","model","enableCommand","get","StandardEditingModeEditing","_descriptionFactory","FORMAT_RESTRICTED_ENABLED","plugins","registerDescriptionCallback","commandName","change","format","restrictedEditingException","isCollapsed","commandParams","from","value","editor","type"];var Ux,jx;Ux=Px,jx=408,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Px[t-=0]};class Vx extends t.Plugin{[Gx("0xb")](){const t=this[Gx("0x6")],e=t[Gx("0x10")],n=t[Gx("0xf")];if(!t[Gx("0x16")][Gx("0xd")](Gx("0x13")))return;const r=t[Gx("0x16")][Gx("0x12")]("TrackChangesEditing"),i=Gx("0x1"),o=t.commands[Gx("0x12")](i);r[Gx("0x11")](i,((t,n={})=>{const s=e[Gx("0xa")][Gx("0x8")];if(s[Gx("0x2")])return void t(n);const x=void 0!==n[Gx("0x9")]?n[Gx("0x9")]:!o[Gx("0x5")];e[Gx("0x19")]((()=>{const t=Array[Gx("0x4")](s.getRanges());for(const n of t){const t=x?[n]:Ji(i,n,e);for(const e of t)r.markInlineFormat(e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),r[Gx("0x14")][Gx("0x17")]((t=>{if(Gx("0xc")!=t[Gx("0x7")]&&Gx("0xe")!=t[Gx("0x7")])return;const{data:e}=t;return e&&e[Gx("0x18")]==i?e[Gx("0x3")][0].forceValue?{type:Gx("0x0"),content:Jr(n,Gx("0x15"))}:{type:Gx("0x0"),content:Jr(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Hx=["styleName","registerAttributeLabel","formatInline","StyleUtils","DataSchema","FORMAT_STYLE","type","config","element","_registerInlineAttribute","has","GeneralHtmlSupport","formatBlock","normalizeConfig","get","editor","block","TrackChangesEditing","style","Style","*Set format:* %0","locale","commandParams","getGhsAttributeNameForElement","_registerLegacyDescription","_enableDefaultAttributesIntegration","afterInit","format","commandName","add","inline","_registerBlockAttribute","toLowerCase","plugins","forceValue","_descriptionFactory","ghsAttributes","*Remove format:* %0"];var zx,Wx;zx=Hx,Wx=134,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0x6")](){const t=this[Kx("0x21")];if(!t.plugins[Kx("0x1c")](Kx("0x25"))||!t[Kx("0xd")][Kx("0x1c")](Kx("0x16")))return;const e=t[Kx("0xd")].get(Kx("0x23")),n=t[Kx("0x1")],r=t[Kx("0x19")][Kx("0x20")](Kx("0x24")),i=t[Kx("0xd")][Kx("0x20")](Kx("0x1d")),o=t[Kx("0xd")].get(Kx("0x15"))[Kx("0x1f")](t[Kx("0xd")][Kx("0x20")]("DataSchema"),r.definitions);e[Kx("0x5")]("style");const s=new Set;for(const t of o[Kx("0x22")]){const e=i[Kx("0x3")](t[Kx("0x1a")]);s[Kx("0x9")](e)}const x=new Set;for(const t of o[Kx("0xa")]){const e=i.getGhsAttributeNameForElement(t[Kx("0x1a")]);x.add(e);for(const e of t[Kx("0x10")])x[Kx("0x9")](e)}for(const t of s)e[Kx("0xb")](t),e[Kx("0xf")].registerAttributeLabel(t,Jr(n,Kx("0x17")));for(const t of x)e[Kx("0x1b")](t),e._descriptionFactory[Kx("0x13")](t,Jr(n,Kx("0x17")));this[Kx("0x4")]()}[Kx("0x4")](){const t=this.editor,e=t[Kx("0x1")];t[Kx("0xd")].get(Kx("0x23"))[Kx("0xf")].registerDescriptionCallback((t=>{if(Kx("0x1e")!=t[Kx("0x18")]&&Kx("0x14")!=t[Kx("0x18")])return;const{data:n}=t;return n&&Kx("0x24")===n[Kx("0x8")]?n[Kx("0x2")][0][Kx("0xe")]?{type:Kx("0x7"),content:Jr(e,Kx("0x0"),n[Kx("0x2")][0][Kx("0x12")][Kx("0xc")]())}:{type:Kx("0x7"),content:Jr(e,Kx("0x11"),n.commandParams[0][Kx("0x12")][Kx("0xc")]())}:void 0}))}}const $x=["accept","locale","change","ELEMENT_TABLE_COLUMN_WITH_TEXT","insertTableColumnLeft","_suggestionFactory","rowspan","type","startsWith","root","tableColumn","first","position","min","start","getColumnIndexes","removeTableColumn","afterInit","get","ELEMENT_TABLE_COLUMN","selectTableRow","addRange","refresh","length","writer","ELEMENT_TABLE","isArray","deletion","max","insertTableRowBelow","getSelectionAffectedTableCells","insertTable","table","above","from","findAncestor","createRangeOn","left","plugins","*Remove:* %0","nodeAfter","setSelection","getSuggestion","includes","registerElementLabel","commands","add","MIN_SAFE_INTEGER","change:data","oldRange","name","forceValue","showSuggestionHighlights","TableEditing","filter","getChangedMarkers","enqueueChange","values","differ","rootName","enableCommand","getRanges","detach","_getCoordsForCells","_tablePostFixingSubtypes","editor","$textProxy","ELEMENT_TABLE_ROW","options","execute","maxColumn","_descriptionFactory","registerCustomCallback","registerPostFixer","nodeBefore","tablePaste","classes","$graveyard","minColumn","push","removeClass","ELEMENT_TABLE_WITH_TEXT","createRangeIn","data","_acceptFormatSuggestionCallbackFactory","maxRow","_setupColumnsRowsFixing","fromRange","last","model","*Insert:* %0","TableUtils","colspan","highest","low","insertion","isIntersectingWithRange","getAttribute","markMultiRangeInsertion","getCellLocation","element","substr","order","removeTableRow","insertTableColumnRight","MAX_SAFE_INTEGER","suggestion","tableRow","discard","cell","document","map","tableCell","end","_tableSuggestions","has","join","createTableWalker","getRowIndexes","_getSuggestionCoords","hasAttribute","toLowerCase","isInContent","every","markMultiRangeDeletion","selection","ELEMENT_TABLE_ROW_WITH_TEXT","isEqual","subType","getItems","some","registerDescriptionCallback"];var Xx,Zx;Xx=$x,Zx=155,function(t){for(;--t;)Xx.push(Xx.shift())}(++Zx);const Yx=function(t,e){return $x[t-=0]};class Jx extends t.Plugin{constructor(t){super(t),this[Yx("0x29")]=["tableRow",Yx("0x77")],this[Yx("0x5b")]=new Set}[Yx("0x7e")](){const t=this.editor,e=t[Yx("0x42")].document[Yx("0x66")];if(!t[Yx("0xf")][Yx("0x5c")](Yx("0x1e")))return;const n=t[Yx("0x6e")],r=t.plugins[Yx("0x7f")]("TrackChangesEditing"),i=t[Yx("0xf")][Yx("0x7f")]("TableUtils");r[Yx("0x30")][Yx("0x15")](Yx("0x9"),(t=>Jr(n,Yx("0x2"),t))),this._setupColumnsRowsFixing(),r[Yx("0x25")](Yx("0x8")),r[Yx("0x25")](Yx("0x81")),r[Yx("0x25")]("selectTableColumn");for(const n of["insertTableRowAbove",Yx("0x6")]){const o=t.commands[Yx("0x7f")](n);r[Yx("0x25")](n,(n=>{t[Yx("0x42")][Yx("0x6f")]((t=>{n();const s=Yx("0xa")===o.order,x=i.getSelectionAffectedTableCells(e),a=i[Yx("0x5f")](x),c=s?a[Yx("0x78")]-1:a.last+1,l=x[0][Yx("0xc")](Yx("0x9")),u=i[Yx("0x5e")](l,{startRow:c,endRow:c}),d=Array[Yx("0xb")](u)[Yx("0x58")]((e=>t.createRangeOn(e[Yx("0x56")])));r.markMultiRangeInsertion(d,Yx("0x54"))}))}))}for(const n of[Yx("0x71"),Yx("0x51")]){const o=t[Yx("0x16")].get(n);r.enableCommand(n,(n=>{t[Yx("0x42")][Yx("0x6f")]((t=>{n();const s=Yx("0xe")===o[Yx("0x4f")],x=i[Yx("0x7")](e),a=i[Yx("0x7c")](x),c=s?a[Yx("0x78")]-1:a[Yx("0x41")]+1,l=x[0][Yx("0xc")](Yx("0x9")),u=i[Yx("0x5e")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Yx("0xb")](u)[Yx("0x58")]((e=>t.createRangeOn(e[Yx("0x56")])));r[Yx("0x4b")](d,Yx("0x77"))}))}))}for(const n of[Yx("0x50"),Yx("0x7d")]){const o=n[Yx("0x4e")](11),s=o[Yx("0x62")](),x=s.substr(0,3)+"span",a=Yx("0x9")+o,c=Yx("0x7a")+o,l=Yx("0x5")+o;r[Yx("0x25")](n,(()=>{t[Yx("0x42")][Yx("0x6f")]((t=>{const o=i[Yx("0x7")](e),u=o[0].findAncestor(Yx("0x9"));let d;if("removeTableRow"==n){const t=i.getRowIndexes(o);d={startRow:t.first,endRow:t[Yx("0x41")],includeAllSlots:!0}}else{const t=i[Yx("0x7c")](o);d={startColumn:t[Yx("0x78")],endColumn:t.last,includeAllSlots:!0}}const g=i[Yx("0x5e")](u,d),f=Array[Yx("0xb")](g)[Yx("0x58")]((({cell:t})=>t)),h=Qx(f[Yx("0x1f")]((t=>t[Yx("0x61")](x)))),m=Qx(f[Yx("0x1f")]((t=>!t.hasAttribute(x))))[Yx("0x58")]((e=>t[Yx("0xd")](e))),p=r[Yx("0x65")](m,a);if(p&&(Yx("0x54")==p.subType||Yx("0x77")==p.subType)){const e=this[Yx("0x60")](p);for(const n of h){const r=t[Yx("0xd")](n),o=i[Yx("0x4c")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p[Yx("0x82")](r)}}}))}))}function o(n){const r=Array[Yx("0xb")](e[Yx("0x26")]()).map((t=>s.LiveRange.fromRange(t)));t[Yx("0x42")].change((e=>{const i=e.batch;n=n[Yx("0x1f")]((t=>Yx("0x36")!=t[Yx("0x76")].rootName)),e[Yx("0x12")](n),t[Yx("0x16")][Yx("0x7f")](Yx("0x50"))[Yx("0x83")](),t[Yx("0x2e")](Yx("0x50"),{forceDefaultExecution:!0}),t[Yx("0x42")][Yx("0x21")]((()=>{t.model[Yx("0x21")](i,(t=>{const e=r.filter((t=>Yx("0x36")!=t.root[Yx("0x24")]));e.length>0&&t[Yx("0x12")](e);for(const t of r)t.detach()}))}))}))}function a(n){t[Yx("0x42")][Yx("0x6f")]((r=>{const i=Array[Yx("0xb")](e[Yx("0x26")]())[Yx("0x58")]((t=>s.LiveRange[Yx("0x40")](t))),o=[];for(const t of n)for(const e of t[Yx("0x6a")]({shallow:!0}))o.push(e);for(const e of o)Yx("0x36")!=e.root[Yx("0x24")]&&(r[Yx("0x12")](r.createPositionAt(e,0)),t[Yx("0x16")][Yx("0x7f")](Yx("0x7d"))[Yx("0x83")](),t[Yx("0x2e")](Yx("0x7d"),{forceDefaultExecution:!0}));const x=i.filter((t=>"$graveyard"!=t.root[Yx("0x24")]));x[Yx("0x0")]>0&&r[Yx("0x12")](x);for(const t of i)t[Yx("0x27")]()}))}function c(t,e){return e[Yx("0x64")]((e=>t.some((t=>t[Yx("0x5a")][Yx("0x68")](e[Yx("0x7b")])||e[Yx("0x5a")][Yx("0x68")](t[Yx("0x7b")])))))}function l(t,e){return t[Yx("0x6b")]((t=>e.some((e=>t.end.isTouching(e[Yx("0x7b")])))))}t[Yx("0x3c")].downcastDispatcher.on("addMarker:suggestion",((t,e,n)=>{if(!n[Yx("0x2d")][Yx("0x1d")])return;const r=e.item;if(!r)return;const i=n.mapper.toViewElement(r);function o(t){return Array[Yx("0x3")](t)?t:[t]}i&&Yx("0x59")===r[Yx("0x1b")]&&(0,x.setHighlightHandling)(i,n[Yx("0x1")],((t,e,n)=>n.addClass(o(e[Yx("0x35")]),t)),((t,e,n)=>n[Yx("0x39")](o(e[Yx("0x35")]),t)))}),{priority:Yx("0x46")}),r._descriptionFactory[Yx("0x6c")]((t=>{if(Yx("0x48")!=t[Yx("0x74")]&&"deletion"!=t[Yx("0x74")])return;const e=t.getContainedElement();if(null!=e&&e.is(Yx("0x4d"),Yx("0x9"))){if(Yx("0x48")==t[Yx("0x74")]){const e=t.getItems().filter((t=>t.is("$textProxy")))[Yx("0x58")]((t=>t[Yx("0x3c")]));if(e[Yx("0x0")])return{type:Yx("0x48"),content:Jr(n,Yx("0x43"),Jr(n,Yx("0x3a"),'"'+e.join(" ")+'"'))}}if("deletion"==t[Yx("0x74")]){const e=t.getItems()[Yx("0x1f")]((t=>t.is("$textProxy")))[Yx("0x58")]((t=>t[Yx("0x3c")]));if(e[Yx("0x0")])return{type:Yx("0x4"),content:Jr(n,"*Remove:* %0",Jr(n,Yx("0x3a"),'"'+e[Yx("0x5d")](" ")+'"'))}}}})),r._descriptionFactory[Yx("0x6c")]((t=>{if(Yx("0x54")==t[Yx("0x69")]){const e=t[Yx("0x6a")]()[Yx("0x1f")]((t=>t.is(Yx("0x2b"))))[Yx("0x58")]((t=>t.data)),r=this._getSuggestionCoords(t),i=r[Yx("0x3e")]-r.minRow+1;if("insertion"==t[Yx("0x74")])return e[Yx("0x0")]?{type:Yx("0x48"),content:Jr(n,Yx("0x43"),Jr(n,Yx("0x67"),[i,'"'+e[Yx("0x5d")](" ")+'"']))}:{type:Yx("0x48"),content:Jr(n,"*Insert:* %0",Jr(n,Yx("0x2c"),i))};if(Yx("0x4")==t.type)return e[Yx("0x0")]?{type:Yx("0x4"),content:Jr(n,Yx("0x10"),Jr(n,Yx("0x67"),[i,'"'+e.join(" ")+'"']))}:{type:Yx("0x4"),content:Jr(n,Yx("0x10"),Jr(n,"ELEMENT_TABLE_ROW",i))}}if(Yx("0x77")==t.subType){const e=t[Yx("0x6a")]().filter((t=>t.is(Yx("0x2b"))))[Yx("0x58")]((t=>t[Yx("0x3c")])),r=this[Yx("0x60")](t),i=r[Yx("0x2f")]-r[Yx("0x37")]+1;if(Yx("0x48")==t[Yx("0x74")])return e[Yx("0x0")]?{type:Yx("0x48"),content:Jr(n,Yx("0x43"),Jr(n,Yx("0x70"),[i,'"'+e[Yx("0x5d")](" ")+'"']))}:{type:Yx("0x48"),content:Jr(n,Yx("0x43"),Jr(n,Yx("0x80"),i))};if("deletion"==t.type)return e[Yx("0x0")]?{type:"deletion",content:Jr(n,"*Remove:* %0",Jr(n,Yx("0x70"),[i,'"'+e.join(" ")+'"']))}:{type:Yx("0x4"),content:Jr(n,Yx("0x10"),Jr(n,"ELEMENT_TABLE_COLUMN",i))}}})),r._suggestionFactory[Yx("0x31")](Yx("0x48"),Yx("0x54"),Yx("0x55"),o),r[Yx("0x72")][Yx("0x31")]("deletion","tableRow",Yx("0x6d"),o),r[Yx("0x72")][Yx("0x31")]("insertion","tableColumn","discard",a),r[Yx("0x72")][Yx("0x31")]("deletion","tableColumn",Yx("0x6d"),a),r[Yx("0x72")][Yx("0x31")]("insertion",Yx("0x77"),Yx("0x5d"),c),r._suggestionFactory[Yx("0x31")](Yx("0x4"),Yx("0x77"),Yx("0x5d"),c),r[Yx("0x72")].registerCustomCallback(Yx("0x48"),Yx("0x54"),Yx("0x5d"),l),r[Yx("0x72")][Yx("0x31")](Yx("0x4"),Yx("0x54"),Yx("0x5d"),l)}[Yx("0x3d")](){const t=this[Yx("0x2a")],e=t[Yx("0x42")].document[Yx("0x66")];return(n,r)=>{t[Yx("0x42")].change((i=>{const{commandName:o,commandParams:x}=r;let a=n[0][Yx("0x5a")][Yx("0x33")];x&&x[0]&&!1===x[0][Yx("0x1c")]&&(a=n[0][Yx("0x7b")][Yx("0x11")]);const c=i[Yx("0x3b")](a);if(Yx("0x36")==c[Yx("0x76")][Yx("0x24")])return;const l=Array[Yx("0xb")](e.getRanges()).map((t=>s.LiveRange[Yx("0x40")](t)));i[Yx("0x12")](c),t.commands[Yx("0x7f")](o).refresh(),x[Yx("0x38")]({forceDefaultExecution:!0}),t[Yx("0x2e")](o,...x);const u=l[Yx("0x1f")]((t=>"$graveyard"!=t[Yx("0x76")][Yx("0x24")]));u.length>0&&i.setSelection(u);for(const t of l)t[Yx("0x27")]()}))}}[Yx("0x28")](t){const e=this[Yx("0x2a")][Yx("0xf")][Yx("0x7f")](Yx("0x44"));let n=Number[Yx("0x52")],r=Number[Yx("0x18")],i=Number[Yx("0x52")],o=Number[Yx("0x18")];for(const s of t){if(Yx("0x36")==s[Yx("0x76")][Yx("0x24")])continue;const{row:t,column:x}=e[Yx("0x4c")](s),a=s[Yx("0x61")](Yx("0x73"))?s.getAttribute(Yx("0x73"))-1:0,c=s[Yx("0x61")]("colspan")?s.getAttribute(Yx("0x45"))-1:0;n=t<n?t:n,r=t+a>r?t+a:r,i=x<i?x:i,o=x+c>o?x+c:o}return{minRow:n,maxRow:r,minColumn:i,maxColumn:o}}[Yx("0x3f")](){const t=this.editor,e=t[Yx("0xf")][Yx("0x7f")]("TrackChangesEditing"),n=t[Yx("0xf")][Yx("0x7f")](Yx("0x44"));t.model[Yx("0x57")].on(Yx("0x19"),(()=>{const n=Array[Yx("0xb")](t.model[Yx("0x57")][Yx("0x23")][Yx("0x20")]());for(const{name:t,data:r}of n){const{group:n,id:i,subType:o}=e._splitMarkerName(t);if(Yx("0x53")!=n)continue;if(null!=r[Yx("0x1a")])continue;const s=e[Yx("0x13")](i);this[Yx("0x29")][Yx("0x14")](o)&&this[Yx("0x5b")][Yx("0x17")](s)}}),{priority:Yx("0x47")});const r=(t,e)=>{let r=!1;const i=e[Yx("0xd")](t),o=t[Yx("0xc")](Yx("0x9")),s=n[Yx("0x4c")](t);for(const e of this[Yx("0x5b")]){const n=e.subType,x=n[Yx("0x75")](Yx("0x34")),a=n[Yx("0x4e")](x?10:5),c=a[Yx("0x62")](),l=c.substr(0,3)+"span",u=Yx("0x7a")+a,d=Yx("0x5")+a;if(!e[Yx("0x63")])continue;if(o!=e.getFirstRange()[Yx("0x7b")][Yx("0xc")](Yx("0x9")))continue;if(e[Yx("0x49")](i))continue;const g=t.hasAttribute(l)?t[Yx("0x4a")](l)-1:0,f=this._getSuggestionCoords(e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e[Yx("0x82")](i),r=!0)}return r};t[Yx("0x42")][Yx("0x57")][Yx("0x32")]((e=>{let n=!1;for(const i of t[Yx("0x42")][Yx("0x57")][Yx("0x23")].getChanges())if("insert"==i.type)if(Yx("0x54")==i[Yx("0x1b")])for(const t of i[Yx("0x79")].nodeAfter.getChildren())n=n||r(t,e);else Yx("0x59")==i.name&&(n=n||r(i[Yx("0x79")][Yx("0x11")],e));return n}))}[Yx("0x60")](t){return this[Yx("0x28")](t[Yx("0x26")]().map((t=>t[Yx("0x7b")][Yx("0x11")])))}}function Qx(t){return Array[Yx("0xb")](new Set(t)[Yx("0x22")]())}const ta=["find","formatInline","mergeTableCellRight","_isForcedDefaultExecutionBlock","setSelection","isEnabled","getAncestors","locale","getCellLocation","push","stop","execute","containsRange","direction","TableUtils","commands","TableEditing","type","accept","_areSelectedCellsMergable","mergeTableCells","getSelectionAffectedTableCells","forceDefaultExecution","createTableWalker","_areMergableCells","insertion","element","from","enableCommand","author","mergeTableCellUp","selection","createRangeOn","afterInit","isInContent","plugins","registerDescriptionCallback","highest","size","$graveyard","_suggestionFactory","cell","format","add","has","_tablePostFixingSubtypes","low","map","*Split cell:* horizontally","requires","return","formatBlock","_acceptFormatSuggestionCallbackFactory","value","model","deletion","document","mergeTableCellDown","*Split cell:* vertically","splitTableCellHorizontally","*Merge cells*","trackChanges","get","getFirstPosition","commandName","mergeTableCellLeft","change","editor","registerCustomCallback","splitTableCellVertically","markMultiRangeBlockFormat","markBlockFormat","length","table","_descriptionFactory"];var ea,na;ea=ta,na=500,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ra=function(t,e){return ta[t-=0]};class ia extends t.Plugin{static get[ra("0x4a")](){return[Jx]}[ra("0x3a")](){const t=this.editor,e=t[ra("0x4")][ra("0x6")][ra("0x38")],n=t[ra("0x20")];if(!t.plugins.has(ra("0x29")))return;const r=t[ra("0x3c")][ra("0xc")]("TrackChangesEditing"),i=t.plugins[ra("0xc")](ra("0x27")),o=t[ra("0x3c")][ra("0xc")](Jx);o[ra("0x46")][ra("0x22")](ra("0x2d")),r[ra("0x35")](ra("0x2d"),(()=>{const e=i[ra("0x2e")](t[ra("0x4")][ra("0x6")][ra("0x38")]);t.model.change((()=>{r[ra("0x14")](e,{commandName:ra("0x2d"),commandParams:[]},[],ra("0x2d"))}))})),t[ra("0x28")][ra("0xc")](ra("0x2d")).on(ra("0x24"),((e,n)=>{t[ra("0x28")][ra("0xc")](ra("0xb"))[ra("0x3")]&&(n[ra("0x16")]>0&&n[n[ra("0x16")]-1]&&n[n[ra("0x16")]-1][ra("0x2f")]||r[ra("0x1c")]||this[ra("0x2c")]()||e.stop())}),{priority:ra("0x3e")});for(const e of[ra("0x37"),ra("0x1b"),ra("0x7"),"mergeTableCellLeft"]){const n=t[ra("0x28")][ra("0xc")](e);r[ra("0x35")](e,(()=>{const e=t.model[ra("0x6")][ra("0x38")][ra("0xd")]()[ra("0x1f")]()[ra("0x19")]((t=>t.is(ra("0x33"),"tableCell"))),i=n[ra("0x3")];t[ra("0x4")][ra("0x10")]((()=>{r[ra("0x14")]([e,i],{commandName:"mergeTableCells",commandParams:[]},[],ra("0x2d"))}))}))}for(const e of[ra("0x13"),ra("0x9")]){const n=t[ra("0x28")][ra("0xc")](e);r[ra("0x35")](e,(()=>{const o=i[ra("0x2e")](t[ra("0x4")][ra("0x6")][ra("0x38")])[0],s=o.findAncestor(ra("0x17")),{column:x,row:a}=i[ra("0x21")](o);let c=[];if("horizontally"==n[ra("0x26")]){const t=i[ra("0x30")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ra("0x34")](t)[ra("0x48")]((t=>t[ra("0x42")]))}else{const t=i[ra("0x30")](s,{column:x,includeAllSlots:!0});c=Array[ra("0x34")](t).map((t=>t[ra("0x42")]))}t[ra("0x4")][ra("0x10")]((t=>{r[ra("0x15")](t[ra("0x39")](o),{commandName:e,commandParams:[]},c,e)}))}))}r[ra("0x18")][ra("0x3d")]((t=>{if("formatBlock"!=t[ra("0x2a")]&&ra("0x1a")!=t[ra("0x2a")])return;const{data:e}=t;return e&&ra("0x2d")==e[ra("0xe")]?{type:ra("0x43"),content:Jr(n,ra("0xa"))}:void 0})),r[ra("0x18")][ra("0x3d")]((t=>{if(ra("0x1")!=t[ra("0x2a")]&&ra("0x1a")!=t[ra("0x2a")])return;const{data:e}=t;return e?ra("0x13")==e[ra("0xe")]?{type:ra("0x43"),content:Jr(n,ra("0x8"))}:ra("0x9")==e.commandName?{type:ra("0x43"),content:Jr(n,ra("0x49"))}:void 0:void 0}));const x=o[ra("0x2")]();for(const t of[ra("0x37"),ra("0x1b"),"mergeTableCellDown",ra("0xf")])r[ra("0x41")][ra("0x12")](ra("0x1"),t,ra("0x2b"),x);for(const t of[ra("0x13"),"splitTableCellHorizontally"])r._suggestionFactory[ra("0x12")](ra("0x1"),t,ra("0x2b"),x);r[ra("0x41")][ra("0x12")](ra("0x1"),ra("0x2d"),ra("0x2b"),(n=>{t[ra("0x4")].change((r=>{const i=Array.from(e.getRanges()).map((t=>s.LiveRange.fromRange(t)));r[ra("0x1d")](n),t[ra("0x28")].get(ra("0x2d")).refresh(),t.execute(ra("0x2d"),{forceDefaultExecution:!0});const o=i.filter((t=>ra("0x40")!=t.root.rootName));o[ra("0x16")]>0&&r[ra("0x1d")](o);for(const t of i)t.detach()}))}));for(const e of["mergeTableCellUp","mergeTableCellDown",ra("0xf"),"mergeTableCellRight"]){const n=t[ra("0x28")][ra("0xc")](e);n.on("set:isEnabled",((e,r,i)=>{if(i){const r=t.model[ra("0x6")].selection[ra("0xd")]().getAncestors()[ra("0x19")]((t=>t.is(ra("0x33"),"tableCell")));this._areMergableCells(n[ra("0x3")],r)||(e[ra("0x0")]=!1,e[ra("0x23")]())}}),{priority:ra("0x47")})}}_areSelectedCellsMergable(){const t=this[ra("0x11")].commands[ra("0xc")](ra("0x2d")),e=this[ra("0x11")][ra("0x3c")][ra("0xc")](ra("0x27"));if(!t[ra("0x1e")])return!1;const n=e[ra("0x2e")](this[ra("0x11")].model[ra("0x6")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[ra("0x31")](t,e))return!1;return!0}[ra("0x31")](t,e){const n=this[ra("0x11")][ra("0x3c")][ra("0xc")]("TrackChangesEditing"),r=this.editor[ra("0x4")][ra("0x39")](t),i=this.editor[ra("0x4")].createRangeOn(e),o=new Set,s=new Set;for(const t of n.getSuggestions())if((ra("0x32")==t[ra("0x2a")]||ra("0x5")==t[ra("0x2a")]||ra("0x2d")==t.subType)&&t[ra("0x3b")])for(const e of t.getRanges())e[ra("0x25")](r,!0)&&o[ra("0x44")](t[ra("0x2a")]+":"+t[ra("0x36")].id),e[ra("0x25")](i,!0)&&s[ra("0x44")](t.type+":"+t[ra("0x36")].id);if(o.size!=s[ra("0x3f")])return!1;for(const t of o)if(!s[ra("0x45")](t))return!1;return!0}}const oa=["data-suggestion","setAttribute","nodeBefore","requires","forceValue","editing","ck-suggestion-marker--active","*Format:* %0","end","includes","setTableRowHeader","_splitMarkerName","locale","TrackChangesEditing","bindElementToMarker","data","addMarker:suggestion","FORMAT_HEADER_COLUMN","removeClass","TableUtils","_handleLegacySuggestions","getCellLocation","ck-suggestion-marker-","TableEditing","addClass","writer","_registerLegacyDescription","markerRange","commandParams","consume","consumable","showSuggestionHighlights","markerName","_enableDefaultAttributesIntegration","removeMarker:suggestion","markerNameToElements","parent","FORMAT_REGULAR_ROW","formatBlock","FORMAT_HEADER_ROW","get","name","_acceptFormatSuggestionCallbackFactory","registerAttributeLabel","_descriptionFactory","format","setTableColumnHeader","FORMAT_REGULAR_COLUMN","plugins","getSuggestion","type","headingColumns","highest","downcastDispatcher","afterInit","unbindElementFromMarkerName","editor","headingRows","start","registerDescriptionCallback","commandName","_suggestionFactory","mapper","nodeAfter","registerCustomCallback","removeAttribute","accept"];var sa,xa;sa=oa,xa=458,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return oa[t-=0]};class ca extends t.Plugin{static get[aa("0xe")](){return[Jx]}[aa("0x41")](){const t=this[aa("0x0")];if(!t.plugins.has(aa("0x22")))return;const e=t.locale,n=t[aa("0x3b")][aa("0x33")]("TrackChangesEditing");n[aa("0x2c")](aa("0x15"),[],[aa("0x1")]),n[aa("0x2c")]("setTableColumnHeader",[],[aa("0x3e")]),n._descriptionFactory[aa("0x36")](aa("0x1"),Jr(e,aa("0x32"))),n[aa("0x37")][aa("0x36")](aa("0x3e"),Jr(e,aa("0x1c"))),this[aa("0x1f")]()}[aa("0x1f")](){const t=this[aa("0x0")][aa("0x3b")].get(aa("0x18")),e=this[aa("0x0")][aa("0x3b")][aa("0x33")](aa("0x1e")),n=this[aa("0x0")].plugins[aa("0x33")](Jx)[aa("0x35")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(i,o,s)=>{const{type:x,id:a}=t[aa("0x16")](o[aa("0x2b")]),c=t[aa("0x3c")](a),l=c[aa("0x1a")];if("formatBlock"!=c[aa("0x3d")]||!l||aa("0x39")!=l.commandName)return;if(o.item)return void i.stop();if(!s[aa("0x29")][aa("0x28")](o[aa("0x26")],i[aa("0x34")]))return;const u=o.markerRange[aa("0x2")][aa("0x7")],d=o[aa("0x26")][aa("0x13")][aa("0xd")],g=u.parent[aa("0x2f")],{column:f}=e[aa("0x20")](u),{column:h}=e[aa("0x20")](d);for(let i=f;i<=h;i++){const c=e.createTableWalker(g,{column:i,includeAllSlots:!1});for(const e of c){const i=e.cell,c=s[aa("0x6")].toViewElement(i);s[aa("0x24")][aa("0x23")]("ck-suggestion-marker-"+x,c),r&&s[aa("0x24")][aa("0xc")](aa("0xb"),a,c),s[aa("0x6")][aa("0x19")](c,o.markerName),n&&(t.activeMarkers[aa("0x14")](o[aa("0x2b")])?s[aa("0x24")][aa("0x23")](aa("0x11"),c):s[aa("0x24")][aa("0x1d")](aa("0x11"),c))}}}}t[aa("0x5")][aa("0x8")]("formatBlock",aa("0x15"),aa("0xa"),n),t[aa("0x5")][aa("0x8")]("formatBlock","setTableColumnHeader",aa("0xa"),n),this.editor[aa("0x10")][aa("0x40")].on(aa("0x1b"),r(),{priority:"highest"}),this[aa("0x0")][aa("0x1a")][aa("0x40")].on(aa("0x1b"),((t,e,n)=>{n.options[aa("0x2a")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0x3f")}),this[aa("0x0")][aa("0x10")][aa("0x40")].on(aa("0x2d"),((e,n,r)=>{const{type:i,id:o}=t[aa("0x16")](n[aa("0x2b")]),s=t.getSuggestion(o),x=s[aa("0x1a")];if("formatBlock"!=s[aa("0x3d")]||!x||aa("0x39")!=x[aa("0x4")])return;const a=r[aa("0x6")][aa("0x2e")](n[aa("0x2b")]);if(a)for(const t of a)r[aa("0x24")][aa("0x1d")](aa("0x21")+i,t),r[aa("0x24")][aa("0x1d")](aa("0x11"),t),r.writer[aa("0x9")](aa("0xb"),t),r[aa("0x6")][aa("0x42")](t,n.markerName)}),{priority:aa("0x3f")}),this[aa("0x25")]()}[aa("0x25")](){const t=this.editor,e=t[aa("0x17")];function n(t){return{type:aa("0x38"),content:Jr(e,aa("0x12"),t)}}t.plugins[aa("0x33")](aa("0x18"))[aa("0x37")][aa("0x3")]((t=>{if(aa("0x31")!=t[aa("0x3d")])return;const{data:r}=t;if(r){if(aa("0x15")==r[aa("0x4")]){const t=r.commandParams[0][aa("0xf")];return n(Jr(e,aa(t?"0x32":"0x30")))}if(aa("0x39")==r.commandName){const t=r[aa("0x27")][0][aa("0xf")];return n(Jr(e,aa(t?"0x1c":"0x3a")))}}}))}}const la=["clipboardOutput","push","insertRows","editingDowncast","containsRange","afterInit","cells","getSuggestionCallback","every","insertContent","unwrap","start","tablePasteChainId","row","ck-suggestion-marker","nextSibling","registerCustomCallback","suggestion-td","wrap","value","TableClipboard","has","findAncestor","set","markMultiRangeInsertion","getSuggestion","get","plugins","tableCell","getRanges","previousSibling","add","attributes","markerAttributes","getAttributes","map","requires","removeMarker","registerPostFixer","commands","_splitMarkerName","batch","tablePaste","createRange","createRangeOn","elementToElement","suggestionLoaded","isEmpty","formatBlock","getSuggestions","next","length","endRow","register","insert","markerToHighlight","element","filter","getColumnIndexes","columnInsertionRanges","high","isInContent","differ","tablePasteCell","rootName","startsWith","getColumns","join","name","Users","_getCoordsForCells","insertion","_isForcedDefaultExecutionBlock","insertColumns","find","entries","suggestion:formatBlock:tablePasteCell","ck-suggestion-marker--active","removeColumns","getChild","suggestionUnloaded","some","low","showSuggestionHighlights","column","paragraph","model","last","getTableIfOnlyTableInContent","TrackChangesEditing","tableCellHorizontalAlignment","position","remove","options","subType","conversion","isEqual","move","registerDescriptionCallback","tablePasteRow","accept","editor","markers","getItems","deletion","columnInsertionIndexes","keys","from","rows","end","createPositionBefore","tableCellPadding","fill","updateMarker","trackChanges","getRange","ck-suggestion-marker-insertion","tableCellSuggestion","getChildren","createTableWalker","documentSelection","locale","rowInsertionIndexes","tableCellBackgroundColor","tablePasteColumn","previous","stop","table","getAllAdjacentSuggestions","oldRange","getChanges","endColumn","forceDefaultExecution","change","schema","suggestion","type","rowInsertionRanges","editing","author","tableCellBorderWidth","document","tableCellVerticalAlignment","return","newRange","discard","TableUtils","getMarkers","_suggestionFactory","getContainedElement","createElement","fromEntries","for","first","selection","includes","markerName","createRangeIn"];var ua,da;ua=la,da=298,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x0"),"tableCellBorderColor","tableCellBorderStyle",ga("0x6c"),ga("0x2"),ga("0x8d"),ga("0x81")],ha=Object.fromEntries(fa[ga("0x35")]((t=>[t,null])));class ma extends t.Plugin{static get[ga("0x36")](){return[Jx]}[ga("0x17")](){const t=this[ga("0x77")];if(!t[ga("0x2d")][ga("0x27")](ga("0x26")))return;const n=t.plugins[ga("0x2c")](ga("0x6b")),r=t[ga("0x2d")][ga("0x2c")](ga("0x6")),i=t[ga("0x2d")][ga("0x2c")](Jx),o=t[ga("0x2d")][ga("0x2c")]("TableClipboard");i._tablePostFixingSubtypes[ga("0x13")](ga("0x75"),ga("0x8e")),t[ga("0x68")][ga("0x98")][ga("0x47")](ga("0x87"),{allowIn:ga("0x2e"),allowContentOf:"tableCell",isLimit:!0}),t[ga("0x71")][ga("0x3f")]({model:ga("0x87"),view:ga("0x23")});let s=null;t[ga("0x68")].on("insertContent",((i,x)=>{const[a,c]=x,l=x[x[ga("0x45")]-1];l&&l[ga("0x96")]||n[ga("0x5a")]||this[ga("0x77")][ga("0x39")].get(ga("0x84"))[ga("0x25")]&&function(t,e,n,r,i){if(e&&!e.is(ga("0x8a")))return!1;const o=i[ga("0x6a")](t,n);if(!o||!ba(o,void 0,r))return!1;const s=r.getSelectionAffectedTableCells(n[ga("0x1")][ga("0xe")]);if(!s[ga("0x45")])return!1;const x=s[0].findAncestor(ga("0x91")),a=r.getRowIndexes(s),c=r[ga("0x4c")](s),l={startRow:a[ga("0xd")],endRow:a[ga("0x69")],startColumn:c[ga("0xd")],endColumn:c[ga("0x69")]};return 1==s[ga("0x45")]&&(l[ga("0x46")]+=r.getRows(o)-1,l[ga("0x95")]+=r[ga("0x54")](o)-1),ba(x,l,r)}(a,c,t[ga("0x68")],r,o)&&(i[ga("0x90")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x68")][ga("0x97")]((()=>{t[ga("0x68")][ga("0x1b")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ga("0x45")]&&n[ga("0x2a")](i,ga("0x75"),{tablePasteChainId:r}),o.length&&n[ga("0x2a")](o,ga("0x8e"),{tablePasteChainId:r}),a[ga("0x45")]&&n[ga("0x2a")](a,ga("0x3c"),{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0x45")]&&n.markMultiRangeDeletion(c,ga("0x3c"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[ga("0x35")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0x51"),{tablePasteChainId:r});if(u){const e=u[ga("0x7")](),n=[];for(const{element:r,attributes:i}of l){if(!i)continue;const o=t[ga("0x68")][ga("0x3e")](r),s=e[ga("0x5c")]((t=>t.getRange()[ga("0x72")](o)));s&&n[ga("0x13")]([s.name,i])}n[ga("0x45")]&&u.setAttribute(ga("0x33"),Object[ga("0xb")](n))}s=null})))}),{priority:e.priorities[ga("0x4e")]+10}),t.plugins[ga("0x2c")](ga("0x26")).on("_replaceTableSlotCell",((t,e)=>{const[n,r,,i]=e;if(!s)return;t[ga("0x90")]();const o=n.cell,x=r,a=pa(o),c=pa(x);t[ga("0x3")]=o;let l=null,u=null;if(c||a)if(a&&!c){i[ga("0x6e")](o[ga("0x61")](0));for(const t of Array[ga("0x7d")](x[ga("0x88")]()))i[ga("0x48")](t,o,ga("0x7f"));const t=s.rowInsertionIndexes[ga("0xf")](n[ga("0x1f")]),e=s[ga("0x7b")][ga("0xf")](n[ga("0x66")]);t||e||(l=i.createRangeIn(o))}else c&&!a&&(u=i[ga("0x11")](o));else{const t=i.createElement(ga("0x87")),e=i[ga("0xa")](ga("0x87"));i[ga("0x24")](i[ga("0x11")](o),e),i[ga("0x48")](t,o,0);for(const e of Array.from(x[ga("0x88")]()))i[ga("0x48")](e,t,ga("0x7f"));l=i[ga("0x3e")](t),u=i.createRangeOn(e)}const d=Array.from(x[ga("0x34")]()).filter((([t])=>fa.includes(t)));s[ga("0x18")].push({element:o,attributes:d[ga("0x45")]?Object[ga("0xb")](d):null}),l&&s.insertionRanges[ga("0x13")](l),u&&s.deletionRanges[ga("0x13")](u)}),{priority:ga("0x4e")}),r.on(ga("0x5b"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o.columns||1;s[ga("0x7b")]=new Array(a)[ga("0x82")](x)[ga("0x35")](((t,e)=>t+e));for(const{cell:e}of r.createTableWalker(i,{startColumn:x,endColumn:x+a-1}))s[ga("0x4d")][ga("0x13")](t[ga("0x68")][ga("0x3e")](e))}),{priority:ga("0x64")}),r.on(ga("0x14"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0x7e")]||1;s[ga("0x8c")]=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of r[ga("0x89")](i,{startRow:x,endRow:x+a-1}))s[ga("0x9b")].push(t[ga("0x68")].createRangeOn(e))}),{priority:"low"}),n._descriptionFactory[ga("0x74")]((e=>{if(e[ga("0x70")]&&e.subType[ga("0x53")](ga("0x3c")))return e[ga("0x8f")]?{}:{type:ga("0x59"),content:Jr(t[ga("0x8b")],"*Replace table cells*")}}));const x=()=>!1;for(const t of["tablePaste","tablePasteColumn","tablePasteRow",ga("0x51")])n[ga("0x8")].registerCustomCallback("insertion",t,ga("0x55"),x),n[ga("0x8")].registerCustomCallback(ga("0x7a"),t,ga("0x55"),x),n._suggestionFactory[ga("0x22")]("formatBlock",t,ga("0x55"),x);n[ga("0x8")].registerCustomCallback(ga("0x42"),"tablePasteCell","discard",x),n[ga("0x8")][ga("0x22")]("formatBlock",ga("0x51"),ga("0x76"),((e,n,r)=>{const i=e[ga("0x35")]((t=>t.getContainedElement()))[ga("0x4b")]((t=>t)),o=new Map(i[ga("0x35")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ga("0x18")])e&&o[ga("0x29")](t,e);else if(r&&r[ga("0x33")])for(const[e,n]of Object[ga("0x5d")](r[ga("0x33")])){const r=t[ga("0x68")][ga("0x78")][ga("0x2c")](e),i=r?r[ga("0x85")]()[ga("0x9")]():null;i&&o[ga("0x29")](i,n)}t[ga("0x68")][ga("0x97")]((t=>{for(const[e,n]of o)t.setAttributes({...ha,...n},e)}))}));const a=(e,r)=>{n[ga("0x8")][ga("0x22")](e,"tablePaste",r,((i,o,s)=>{t[ga("0x68")][ga("0x97")]((t=>{const x=[];for(const t of i){const e=t[ga("0x1d")].nodeAfter;e.is(ga("0x4a"),ga("0x87"))&&x.push(e)}n[ga("0x8")][ga("0x19")](e,null,r)(i,o,s);for(const e of x)"$graveyard"!=e.root[ga("0x52")]&&t[ga("0x1c")](e)}))}))};a(ga("0x59"),ga("0x76")),a(ga("0x59"),"discard"),a(ga("0x7a"),ga("0x76")),a(ga("0x7a"),ga("0x5")),n._suggestionFactory[ga("0x22")](ga("0x59"),ga("0x75"),ga("0x5"),(t=>{const e=t[ga("0x35")]((t=>t[ga("0x9")]())),n=e[0].findAncestor(ga("0x91")),{minRow:o,maxRow:s}=i[ga("0x58")](e);r.removeRows(n,{at:o,rows:s-o+1})})),n[ga("0x8")][ga("0x22")](ga("0x59"),"tablePasteColumn","discard",(t=>{const e=t[ga("0x35")]((t=>t[ga("0x9")]())),n=e[0][ga("0x28")](ga("0x91")),{minColumn:o,maxColumn:s}=i[ga("0x58")](e);r[ga("0x60")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e.subType||!e.subType[ga("0x53")](ga("0x3c")))return;const r=e[ga("0x32")][ga("0x1e")],i=n[ga("0x43")]()[ga("0x4b")]((t=>t[ga("0x4f")]&&t[ga("0x32")]&&t[ga("0x32")].tablePasteChainId==r));i[ga("0x45")]&&e[ga("0x92")]()[ga("0x45")]!=i[ga("0x45")]&&i.reduce(((t,e)=>(t[ga("0x44")]=e,e[ga("0x8f")]=t,e)))};function l(t,e=!0){const{id:r}=n[ga("0x3a")](t[ga("0x10")]),i=[ga("0x20"),ga("0x86")],o=n.activeMarkers[ga("0xf")](t[ga("0x10")]);return o&&i[ga("0x13")](ga("0x5f")),{classes:i,attributes:{"data-suggestion":r},priority:o&&e?3010:3e3}}n.on(ga("0x40"),c,{priority:"high"}),n.on(ga("0x62"),c,{priority:ga("0x4e")}),t[ga("0x68")][ga("0x1")][ga("0x38")]((()=>{let e=!1;const r=Array[ga("0x7d")](t[ga("0x68")][ga("0x1")][ga("0x50")].getChangedMarkers());for(const{name:i,data:o}of r){const{group:r,type:s,id:x}=n[ga("0x3a")](i);if(ga("0x99")!=r||ga("0x7a")!=s||o[ga("0x93")])continue;if(!n.hasSuggestion(x))continue;const a=n[ga("0x2b")](x)[ga("0x2f")](),c=t.plugins[ga("0x2c")]("Users").me;for(const t of n[ga("0x43")]())if(t[ga("0x4f")]&&t[ga("0x9d")]==c&&ga("0x42")==t[ga("0x9a")]&&ga("0x51")==t[ga("0x70")]&&t[ga("0x2f")]()[ga("0x1a")]((t=>a[ga("0x63")]((e=>e[ga("0x16")](t,!0))))))for(const n of t[ga("0x92")]())n[ga("0x4f")]&&(n[ga("0x5")](),e=!0)}return e})),t[ga("0x68")][ga("0x1")][ga("0x38")]((e=>{const r=t[ga("0x39")][ga("0x2c")]("redo");if(!r||!r._createdBatches[ga("0x27")](e[ga("0x3b")]))return!1;let i=!1;const o=t[ga("0x2d")].get(ga("0x57")).me,s=t[ga("0x68")][ga("0x1")][ga("0x50")][ga("0x94")](),x=Array.from(t[ga("0x68")][ga("0x1")][ga("0x50")].getChangedMarkers())[ga("0x4b")]((({name:t,data:e})=>{const{group:r,subType:i,authorId:s}=n[ga("0x3a")](t);return"suggestion"==r&&ga("0x3c")==i&&s==o.id&&!e[ga("0x93")]}));for(const t of s){if("insert"!=t.type||ga("0x87")!=t.name||1!=t.length)continue;const n=e[ga("0x3d")](t[ga("0x6d")],t[ga("0x6d")].getShiftedBy(1));if(!x[ga("0x5c")]((({data:t})=>t.newRange.isEqual(n))))for(const{name:t,data:r}of x)if(n[ga("0x16")](r[ga("0x4")])){e[ga("0x83")](t,{range:n}),i=!0;break}}return i})),t[ga("0x68")][ga("0x1")][ga("0x38")]((e=>{let r=!1;const i=t[ga("0x2d")].get(ga("0x57")).me,o=n[ga("0x43")]()[ga("0x4b")]((t=>t[ga("0x4f")]&&t.author==i)),s=new Set,x=new Set;for(const t of o)if(ga("0x3c")==t.subType)for(const e of t.getMarkers()){const n=e[ga("0x85")]()[ga("0x9")]();if(n)if(n.is(ga("0x4a"),"tableCellSuggestion")&&pa(n)){t[ga("0x37")](e[ga("0x56")]),s[ga("0x31")](n),r=!0;const i=n[ga("0x21")],o=n[ga("0x30")],a=i&&i.is(ga("0x4a"),ga("0x87")),c=o&&o.is("element",ga("0x87"));a&&!s[ga("0x27")](i)&&x[ga("0x31")](i),c&&!s[ga("0x27")](o)&&x.add(o)}else n.is(ga("0x4a"),ga("0x67"))&&n[ga("0x41")]&&(t.removeMarker(e[ga("0x56")]),r=!0)}else if("tablePasteCell"==t[ga("0x70")]){if(!t[ga("0x32")]||!t[ga("0x32")].tablePasteChainId)continue;const e=t[ga("0x32")][ga("0x33")];if(e&&Object[ga("0x7c")](e)[ga("0x45")])continue;const n=t[ga("0x32")][ga("0x1e")];let i=!0,s=!0;for(const e of o)if(e[ga("0x70")]&&e[ga("0x70")][ga("0x53")](ga("0x3c"))){if(!e[ga("0x32")][ga("0x1e")]){s=!1;break}if(e.id!=t.id&&e.attributes[ga("0x1e")]==n){i=!1;break}}s&&i&&(t.removeMarkers(),r=!0)}for(const t of s)e[ga("0x6e")](t);for(const t of x)e[ga("0x1c")](t);return r})),t[ga("0x71")][ga("0xc")](ga("0x15"))[ga("0x49")]({model:ga("0x5e"),view:(t,e)=>l(t),converterPriority:ga("0x4e")}),t[ga("0x71")].for("dataDowncast").markerToHighlight({model:ga("0x5e"),view:(t,e)=>e[ga("0x6f")][ga("0x65")]?l(t,!1):null,converterPriority:"high"});const u=t[ga("0x9c")].view;this.listenTo(u[ga("0x1")],ga("0x12"),((t,e)=>{const n=[];for(const t of u.createRangeIn(e.content)[ga("0x79")]())t.is(ga("0x4a"),ga("0x23"))&&n[ga("0x13")](t);u[ga("0x97")]((t=>{for(const e of n)t[ga("0x73")](t.createRangeIn(e),t[ga("0x80")](e)),t[ga("0x6e")](e)}))}))}}function pa(t){if(t.isEmpty)return!0;const e=t[ga("0x61")](0);return e.is("element",ga("0x67"))&&e[ga("0x41")]}function ba(t,e={},n){for(const{isAnchor:r,cellHeight:i,cellWidth:o}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!r||1!=i||1!=o)return!1;return!0}const Ea=["subType","locale","formatGroupId","getSuggestions","resizeTable","commandParams","editor","_suggestionFactory","document","change","format","get","model","type","formatBlock","handleSuggestionDescription","accept","getContainedElement","TableColumnResizeEditing","plugins","TrackChangesEditing","discard","getSelectedElement","columnWidths","tableWidth","Users","getSuggestionCallback","bind","registerDescriptionCallback","handleResizeTableWidthCommand","formatInline","selection","*Format:* resize table","table","registerCustomCallback","resizeTableWidth","afterInit"];var _a,Ta;_a=Ea,Ta=382,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{[ya("0x18")](){if(!this[ya("0x1f")][ya("0x7")].has(ya("0x6")))return;const t=this[ya("0x1f")][ya("0x7")][ya("0x24")](ya("0x8"));t.enableCommand(ya("0x17"),this[ya("0x11")][ya("0xf")](this)),t[ya("0x20")][ya("0x16")](ya("0x2"),ya("0x1d"),ya("0x4"),t[ya("0x20")].getSuggestionCallback(ya("0x2"),null,ya("0x9"))),t[ya("0x20")][ya("0x16")]("formatBlock",ya("0x1d"),ya("0x9"),t[ya("0x20")][ya("0xe")](ya("0x2"),null,ya("0x4"))),t._descriptionFactory[ya("0x10")](this[ya("0x3")][ya("0xf")](this))}[ya("0x11")](t,e){const n=this[ya("0x1f")][ya("0x7")][ya("0x24")](ya("0x8")),r=this.editor.plugins.get(ya("0x6")),i=e[ya("0x15")]||this[ya("0x1f")][ya("0x0")][ya("0x21")][ya("0x13")][ya("0xa")]();this[ya("0x1f")][ya("0x0")][ya("0x22")]((()=>{const o=r.getColumnGroupElement(i);let s=o?r.getTableColumnsWidths(o):null,x=i.getAttribute(ya("0xc"))||null;const a=e.tableWidth||x,c=e.columnWidths||s,l=this.editor.plugins.get(ya("0xd")).me;for(const t of n[ya("0x1c")]()){const e=t[ya("0x5")]();if(ya("0x1d")===t[ya("0x19")]&&e===i){t.author!==l&&t[ya("0x9")]();const e=t.data[ya("0x1e")];x=e[0].tableWidth,s=e[0][ya("0xb")];break}}t({table:i,tableWidth:a,columnWidths:c}),n.markBlockFormat(i,{commandName:ya("0x17"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0x1d")},[],ya("0x1d"))}))}[ya("0x3")](t){if(ya("0x2")!=t[ya("0x1")]&&ya("0x12")!=t[ya("0x1")])return;const{data:e}=t;if(e&&ya("0x1d")===e[ya("0x1b")]){const t=ya("0x14");return{type:ya("0x23"),content:Jr(this.editor[ya("0x1a")],t)}}}}const Aa=["afterInit","plugins","TrackChangesEditing","insertTemplate","has","get","editor","Template"];var ka,Ia;ka=Aa,Ia=320,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Ra=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{[Ra("0x0")](){const t=this[Ra("0x6")];t[Ra("0x1")][Ra("0x4")](Ra("0x7"))&&t[Ra("0x1")][Ra("0x5")](Ra("0x2")).enableCommand(Ra("0x3"))}}const va=["locale","tableOfContents","registerElementLabel","editor","get","_descriptionFactory","TrackChangesEditing","insertTableOfContents","enableCommand","plugins","commands","afterInit"];var Na,La;Na=va,La=170,function(t){for(;--t;)Na.push(Na.shift())}(++La);const Ma=function(t,e){return va[t-=0]};class wa extends t.Plugin{[Ma("0x9")](){const t=this[Ma("0x1")];if(!t[Ma("0x8")][Ma("0x2")]("insertTableOfContents"))return;t.plugins[Ma("0x2")](Ma("0x4"))[Ma("0x6")](Ma("0x5"));const e=t[Ma("0x7")][Ma("0x2")]("TrackChangesEditing"),n=t[Ma("0xa")];e[Ma("0x3")][Ma("0x0")](Ma("0xb"),(t=>Jr(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const Oa=["from","isCollapsed","suggestion","document","updateMarker","_splitMarkerName","end","newRange","title-content","isEqual","getNearestSelectionRange","Title","plugins","afterInit","get","forward","ELEMENT_TITLE","locale","start","element","getChangedMarkers","TrackChangesEditing","registerPostFixer","createRange","model","nodeBefore","has"];var Fa,Da;Fa=Oa,Da=298,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Ba=function(t,e){return Oa[t-=0]};class Pa extends t.Plugin{[Ba("0xc")](){const t=this.editor;if(!t.plugins[Ba("0x19")](Ba("0xa")))return;const e=t[Ba("0xb")][Ba("0xd")](Ba("0x14"));e._descriptionFactory.registerElementLabel("title-content",(()=>Jr(t[Ba("0x10")],Ba("0xf")))),t[Ba("0x17")][Ba("0x2")][Ba("0x15")]((n=>{let r=!1;const i=Array[Ba("0x1a")](t[Ba("0x17")][Ba("0x2")].differ[Ba("0x13")]());for(const{name:o,data:s}of i){const{group:i}=e[Ba("0x4")](o);if(Ba("0x1")!==i||!s.newRange)continue;const x=s[Ba("0x6")],a=x[Ba("0x5")][Ba("0x18")];if(!a||!a.is(Ba("0x12"),Ba("0x7")))continue;if(!x[Ba("0x11")].isTouching(x[Ba("0x5")]))continue;const c=t[Ba("0x17")].schema[Ba("0x9")](x[Ba("0x5")],Ba("0xe"));if(c&&c[Ba("0x0")]){const t=n[Ba("0x16")](x[Ba("0x11")],c[Ba("0x11")]);t[Ba("0x8")](x)||(n[Ba("0x3")](o,{range:t}),r=!0)}r||(n.removeMarker(o),r=!0)}return r}))}}const Ua=["get","plugins","editor","has","afterInit","enableCommand","redo","TrackChangesEditing"];var ja,Ga;ja=Ua,Ga=317,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{[Va("0x7")](){const t=this[Va("0x5")],e=t[Va("0x4")][Va("0x3")](Va("0x2"));t[Va("0x4")][Va("0x6")]("UndoEditing")&&(e[Va("0x0")]("undo"),e[Va("0x0")](Va("0x1")))}}const za=["TableCaptionEditing","plugins","toggleTableCaption","afterInit","has","get","requires"];var Wa,Ka;Wa=za,Ka=161,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class $a extends t.Plugin{static get[qa("0x6")](){return[Jx]}[qa("0x3")](){const t=this.editor;t[qa("0x1")][qa("0x4")](qa("0x0"))&&t[qa("0x1")][qa("0x5")]("TrackChangesEditing").enableCommand(qa("0x2"))}}const Xa=["setAttribute","_suggestionFactory","pluginName","enqueueChange","TablePropertiesEditing","get","subType","has","findAncestor","tableBorderColor","model","getAttribute","tableBackgroundColor","batch","tableCellPadding","tableCellProperties","tableCellWidth","handleDiscardAction","plugins","formatBlock","tableBorderStyle","commandParams","locale","TrackChangesTableProperties","registerDescriptionCallback","getSelectionAffectedTableCells","accept","tableCellHorizontalAlignment","markBlockFormat","handleSuggestionDescription","format","selection","tableCellBackgroundColor","document","getSuggestionCallback","tableHeight","change","tableCellBorderWidth","_descriptionFactory","editor","TableUtils","getContainedElement","TrackChangesEditing","*Format:* change table properties","registerCustomCallback","removeAttribute","enableCommand","afterInit","getFirstPosition","tableWidth","tableAlignment","join","discard","_getSuggestion","_handlePropertyChange","tableProperties","tableCellBorderColor","*Format:* change table cell properties","data"];var Za,Ya;Za=Xa,Ya=354,function(t){for(;--t;)Za.push(Za.shift())}(++Ya);const Ja=function(t,e){return Xa[t-=0]};class Qa extends t.Plugin{constructor(t){super(t),this[Ja("0x37")]=[Ja("0x9"),Ja("0x14"),"tableBorderWidth",Ja("0x32"),Ja("0x31"),Ja("0x23"),Ja("0xc")],this[Ja("0xf")]=[Ja("0x38"),"tableCellBorderStyle",Ja("0x25"),Ja("0xe"),Ja("0x10"),"tableCellHeight",Ja("0x20"),Ja("0x1b"),"tableCellVerticalAlignment"]}static get[Ja("0x2")](){return Ja("0x17")}[Ja("0x2f")](){const t=this[Ja("0x27")][Ja("0x12")][Ja("0x5")](Ja("0x2a"));if(this[Ja("0x27")][Ja("0x12")].has(Ja("0x4"))){for(const e of this.tableProperties)t[Ja("0x2e")](e,((t,n)=>{const r=this[Ja("0x27")].model[Ja("0x21")][Ja("0x1f")][Ja("0x30")]()[Ja("0x8")]("table");this[Ja("0x36")](e,[r],this[Ja("0x37")],"tableProperties",t,n)}));t[Ja("0x1")][Ja("0x2c")](Ja("0x13"),Ja("0x37"),Ja("0x1a"),t[Ja("0x1")][Ja("0x22")]("formatBlock",null,Ja("0x34"))),t[Ja("0x1")][Ja("0x2c")]("formatBlock","tableProperties",Ja("0x34"),((t,e)=>this[Ja("0x11")](this.tableProperties,t,e))),t[Ja("0x1")][Ja("0x2c")](Ja("0x13"),Ja("0x37"),"join",(()=>!1))}if(this[Ja("0x27")][Ja("0x12")][Ja("0x7")]("TableCellPropertiesEditing")){for(const e of this.tableCellProperties)t.enableCommand(e,((t,n)=>{const r=this[Ja("0x27")].plugins[Ja("0x5")](Ja("0x28"))[Ja("0x19")](this[Ja("0x27")].model[Ja("0x21")][Ja("0x1f")]);this[Ja("0x36")](e,r,this[Ja("0xf")],"tableCellProperties",t,n)}));t[Ja("0x1")][Ja("0x2c")](Ja("0x13"),Ja("0xf"),"accept",t[Ja("0x1")][Ja("0x22")](Ja("0x13"),null,Ja("0x34"))),t[Ja("0x1")].registerCustomCallback(Ja("0x13"),Ja("0xf"),Ja("0x34"),((t,e)=>this[Ja("0x11")](this[Ja("0xf")],t,e))),t[Ja("0x1")].registerCustomCallback(Ja("0x13"),Ja("0xf"),Ja("0x33"),(()=>!1))}t[Ja("0x26")][Ja("0x18")]((t=>this[Ja("0x1d")](t)))}_handlePropertyChange(t,e,n,r,i,o){const s=this[Ja("0x27")].plugins[Ja("0x5")](Ja("0x2a"));this[Ja("0x27")][Ja("0xa")][Ja("0x3")](o[Ja("0xd")],(()=>{for(const t of e)if(this[Ja("0x35")](t,r))i(o);else{const e={};for(const r of n){const n=t[Ja("0xb")](r);void 0!==n&&(e[r]=n)}i(o),s[Ja("0x1c")](t,{commandParams:[e]},[],r)}}))}[Ja("0x11")](t,e,n){const r=e[0].start.nodeAfter,i=n[Ja("0x15")][0];this[Ja("0x27")][Ja("0xa")][Ja("0x24")]((e=>{for(const n of t)void 0!==i[n]?e[Ja("0x0")](n,i[n],r):e[Ja("0x2d")](n,r)}))}[Ja("0x1d")](t){if(t[Ja("0x3a")])switch(t[Ja("0x6")]){case Ja("0x37"):return{type:Ja("0x1e"),content:Jr(this[Ja("0x27")][Ja("0x16")],Ja("0x2b"))};case"tableCellProperties":return{type:"format",content:Jr(this[Ja("0x27")].locale,Ja("0x39"))}}}[Ja("0x35")](t,e){const n=this[Ja("0x27")][Ja("0x12")][Ja("0x5")](Ja("0x2a"));for(const r of n.getSuggestions({skipNotAttached:!0})){const n=r[Ja("0x29")]();if(r[Ja("0x6")]===e&&n===t)return r}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,rc=ec.hasOwnProperty,ic=nc.call(Object);const oc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=rc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==ic};const sc=function(t){return oc(t)?void 0:t};var xc=it?it.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,r,i,o){var s=-1,x=e.length;for(r||(r=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,i,o):sn(o,a):i||(o[o.length]=a)}return o};const lc=function(t){return(null==t?0:t.length)?cc(t,1):[]};const uc=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 dc=Math.max;const gc=function(t,e,n){return e=dc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=dc(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=r[i];return x[e]=n(s),uc(t,this,x)}};const fc=function(t){return function(){return t}};const hc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:fc(e),writable:!0})}:function(t){return t};var mc=Date.now;const pc=function(t){var e=0,n=0;return function(){var r=mc(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hc);const bc=function(t){return pc(gc(t,void 0,lc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=mr(e,t),r||(r=e.length>1),e})),oe(t,dn(t),n),r&&(n=tr(n,7,sc));for(var i=e.length;i--;)Wr(n,e[i]);return n})),Ec=["suggestionUnloaded","_adapter","isObject","trackChanges.mergeNestedSuggestions","includes","delete","formatInline:join","element","getDifference","isLimit","split","_removeSuggestion","announce","item","$text","writer","filter","_editor","clone","getAncestors","updateSuggestion","activeMarkers","documentSelection","insertion:discard","oldValue","discardSelectedSuggestions","track-changes-adapter-missing-getsuggestion","error-saving-suggestion-data-suggestion-discarded","createdAt","_isBlockAttribute","commandName","getSuggestions","removeMarker:suggestion:formatBlock","isBefore","removed","isLocal","_reduceSuggestionAttributeRange","insert","attribute","length","rootName","discardAllSuggestions","_joinWithAdjacentSuggestions","next","enableReadOnlyMode","splice","pluginName","isInContent","removeMarker","_registerInlineAttribute","_refreshSuggestionsChain","addMarker:suggestion","markerReady","data-suggestion","keys","deletion:discard","_getExternalAuthor","trackChanges.trackFormatChanges","add","widget","isArray","end","markerNameToElements","_refreshAttributeSuggestionsChain","TrackChangesEditing","change:data","elementToElement","_customCallbacks","_checkSuggestionCorrectness","getWalker","oldRange","_getAttributeKey","plugins","ck-suggestion-marker-","isCollapsed","_suggestionState","sort","group","@external","suggestion-type","createElement","stop","rethrowUnexpectedError","attribute:join","enableCommand","after","ck-suggestion-marker--active","_model","always","getFirstRange","_createSuggestion","containsItem","Users","value","formatInline","multipleBlocks","meta","isIntersectingWithRange","getFirstMarker","_reduceExistingSuggestions","removeMarkers","targetPosition","trackChanges","getNearestSelectionRange","track-changes-enable-command-twice","trackChangesCommand","isMultiRange","hasSuggestion","values","markMultiRangeInsertion","nodeAfter","markerName","_SUGGESTION_ANNOUNCEMENT","notReady","insertion","_updateSuggestionData","position","commentThread","addRange","consumable","formatInline:accept","concat","_suggestionFactory","removeComment","createRange","getItems","isExternal","isInsideObject","formatBlock:chain","getShiftedBy","getChanges","execute","move","acceptSelectedSuggestions","_mergeNestedSuggestions","change","deletion:","subType","howMany","_getAuthorFromId","_handleNewSuggestionMarker","detach","formatInline:discard","type","_addThreadToSuggestion","getLastMatchingPosition","containsRangeInObject","_recordAttributeSuggestions","update:suggestion","_trackFormatChanges","insertion:","substr","consume","fire","conversion","removeMarker:suggestion:attribute","forceDefaultExecution","createSelection","setSelection","attributes","size","dataDowncast","suggestion:","insertion:accept","enqueueChange","getAttribute","accepted","adapter","getUser","originalSuggestionId","attribute:","$marker","_enabledCommands","formatGroupId","head","previous","addMarkerName","markAttributeChange","createPositionAt","containsPosition","getAllAdjacentSuggestions","editor","FORMATTING","key","_onDiscard","name","applyOperation","before","_saved","_isForcedDefaultExecutionBlock","getCommentThread","formatInline:","registerPostFixer","_getMarkerAnnouncementText","isNextTo","attributeNewValue","highest","isTouching","addClass","_isRegisteredAttribute","track-changes-command-not-found","_processAttributeChanges","addMarker:suggestion:formatBlock","pop","markerToHighlight","bindElementToMarker","$elementName","_processAttributeSuggestions","isSelectable","formatBlock:","refresh","_findSuggestions","removeClass","toViewElement","_addSuggestionMarker","define","track-changes-suggestion-data-mismatch","acceptAllSuggestions","stopListening","PENDING_ACTION_SUGGESTION","batch","locale","find","suggestion","differ","markInsertion","ready","for","range","isAfter","deletion","groupId","_breakSuggestionMarker","elementStart","map","newRange","authoredAt","high","suggestionChanged","createPositionBefore","editing","normal","options","creator","_commentsRepository","setAttribute","insertion:join","warn","isAtEnd","hasCommentThread","requires","assign","formatInline:chain","elementEnd","schema","format","set","_registerDefaultCallbacks","toUpperCase","_cutOutSuggestionMarker","splitPosition","_getSuggestionData","isIntersecting","_inlineAttributeKeys","formatBlock:discard","attributeKey","ck-suggestion-marker-formatBlock","listenTo","collaboration.channelId","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.","ck-suggestion-marker-formatInline","default","addSuggestion","isRemovable","init","containerElement","addCommentThread","suggestionLoaded","_blockAttributeKeys","createPositionAfter","from","then","PendingActions","selection","isOwn","_setSuggestionData","markMultiRangeBlockFormat","track-changes-user-not-found","updateMarker","createRangeOn","_splitMarkerName","_defaultCallbacks","unbindElementFromMarkerName","markDeletion","suggestion:attribute:","buildSuggestion","removeAttribute","isUndo","startsWith","deleteContent","getMarkers","addMarker","editingDowncast","insertion:chain","fromCharCode","ariaLiveAnnouncer","addSuggestionData","fromRange","model","getMultiRangeId","insertContent","formatBlock:join","forward","parent","change:_saved","start","getChangedMarkers","document","chain","commands","substring","hasComments","never","upcast","nodeBefore","_suggestions","markBlockFormat","accept","_setSuggestionRange","deletion:chain","CommentsRepository","marker-count","getCustomProperty","discardSuggestion","multi","comments","addHighlight","has","_initAriaMarkerChangeAnnouncements","config","isBlock","getRanges","some","data","formatBlock","toJSON","_recordAttributeChanges","discard","containsRange","_descriptionFactory","track-changes-adapter-already-set","_afterChanges","_rangeIsInLocalUserInsertion","dataToMarker","getSuggestion","unbind","newValue","lowest","acceptSuggestion","low","_registerBlockAttribute","getIntersection","push","author","createRangeIn","isEqual","skipNestingCheck","attributeOldValue","root","_isDataLoaded","every","mapper","forEach","ck-suggestion-marker","markers","_joinSuggestions","getSuggestionCallback","get","$graveyard","markInlineFormat","dataReady","showSuggestionHighlights","join","fetchCommentThread"];var _c,Tc;_c=Ec,Tc=452,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc=yc("0x8a");class Ac extends t.Plugin{static get[yc("0xb6")](){return[yc("0x106"),o.Users,t.PendingActions,ai,gi,Ei,Ai,Fi,Ni,ji,Ki,io,Ao,vo,Fo,jo,Ko,Yo,ns,xs,ds,ys,ps,Rs,Ms,Bs,qs,tx,Vs,co,mo,ox,lx,hx,_x,Ix,Lx,Dx,Vx,qx,Jx,ia,ca,$a,ma,Ca,wa,Qa,Sa,Pa,Ha]}static get[yc("0x16a")](){return yc("0x17c")}constructor(t){function e(t){return t[yc("0xa6")]((t=>String[yc("0xec")](t)))[yc("0x13a")]("")}super(t),this._recordAttributeSuggestions=!1,this[yc("0xbc")](yc("0x151"),[]),this.on("change:activeMarkers",((e,n,r,i)=>{this[yc("0x13")].change((()=>{for(const e of[...i,...r])this[yc("0x13")][yc("0x132")][yc("0x10d")](e)&&t[yc("0xac")].reconvertMarker(e)}))})),this[yc("0x119")]=new ri(this[yc("0x71")][yc("0xf0")][yc("0xba")],this[yc("0x71")][yc("0x99")]),this[yc("0x13d")]=null,this[yc("0x36")]=new kc(this[yc("0x71")]),this[yc("0x101")]=new Map,this._commentsRepository=t[yc("0x4")][yc("0x135")](yc("0x106")),this[yc("0x68")]=new Set,this[yc("0x13")]=this[yc("0x71")][yc("0xf0")],this._suggestionState=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this[yc("0xd2")]=new Set([yc("0x8a")]),this._inlineAttributeKeys=new Set,t[yc("0x10f")].define(yc("0x175"),yc("0xcb")),this[yc("0x51")]=t[yc("0x10f")][yc("0x135")](yc("0x175")),t.config[yc("0x93")](yc("0x13f"),!0),this[yc("0x42")]=t[yc("0x10f")].get("trackChanges.mergeNestedSuggestions"),this[yc("0x25")]=new d(t,this[yc("0x68")]),this[yc("0x10e")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,52,49,50])}[yc("0xce")](){const t=this[yc("0x71")],n=(t,e)=>{if(yc("0x162")!=t)return yc("0x5")+t;const n=e[yc("0x146")]("|")[0];return this[yc("0x159")](n)?yc("0xc6"):yc("0xca")};t.conversion.for("editingDowncast")[yc("0x88")]({model:yc("0x9b"),view:t=>{const{id:e,type:r,subType:i}=this[yc("0xde")](t.markerName),o=[yc("0x131"),n(r,i)];let s=3e3;return this[yc("0x151")].includes(t[yc("0x2b")])&&(o[yc("0x126")](yc("0x12")),s=3010),"deletion"==r&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[yc("0x56")][yc("0x9f")](yc("0x5d"))[yc("0x176")]((e=>{e.on(yc("0x16f"),((e,n,r)=>{if(!r.options[yc("0x139")])return;const i=n[yc("0x149")];if(!i)return;const o=r[yc("0x12f")].toViewElement(i);t.model[yc("0xba")].isObject(i)&&o&&!o[yc("0x108")](yc("0x177"))&&o.is(yc("0xcf"))&&(0,x.toWidget)(o,r[yc("0x14b")])}),{priority:"high"})})),t.conversion[yc("0x9f")]("dataDowncast")[yc("0x88")]({model:yc("0x9b"),view:(t,e)=>{if(!e.options[yc("0x139")])return null;const{type:r,subType:i}=this[yc("0xde")](t.markerName);return{classes:["ck-suggestion-marker",n(r,i)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,i,o)=>{if(!i[yc("0x149")])return;const{id:s}=this[yc("0xde")](i[yc("0x2b")]);if(n){const t=this._suggestions[yc("0x135")](s),e=this[yc("0x3")](t);if(!this[yc("0x159")](e))return}if(i[yc("0x149")].is(yc("0xd7")))return void o[yc("0x33")][yc("0x54")](i.item,r[yc("0x75")]);const x=o[yc("0x12f")][yc("0x91")](i[yc("0x149")]);if(i[yc("0x149")].is(yc("0x143"))&&t[yc("0xf0")].schema.isBlock(i[yc("0x149")])&&!x.getCustomProperty(yc("0x10c"))){o[yc("0x14b")].addClass([yc("0x131"),yc("0xc6")],x),o.writer.setAttribute(yc("0x171"),s,x),o[yc("0x12f")][yc("0x89")](x,i[yc("0x2b")]),e&&(this[yc("0x151")].includes(i[yc("0x2b")])?o[yc("0x14b")][yc("0x82")](yc("0x12"),x):o[yc("0x14b")].removeClass(yc("0x12"),x));for(const e of t[yc("0xf0")][yc("0x128")](i[yc("0x149")])[yc("0x39")]())o[yc("0x33")].consume(e,r[yc("0x75")]);o[yc("0x33")][yc("0x54")](i.item,r.name)}};t[yc("0x56")][yc("0x9f")](yc("0x5d"))[yc("0x176")]((t=>{t.on(yc("0x86"),((t,e,n)=>{n[yc("0xae")].showSuggestionHighlights&&r({showActiveMarkers:!1})(t,e,n)}),{priority:yc("0x80")})})),t[yc("0x56")][yc("0x9f")]("dataDowncast")[yc("0x176")]((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n.options.showSuggestionHighlights&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t[yc("0x56")][yc("0x9f")]("dataDowncast").markerToData({model:yc("0x9b"),view:(t,e)=>e[yc("0xae")].showSuggestionHighlights?null:{group:yc("0x9b"),name:t[yc("0x53")](11)}}),t[yc("0x56")][yc("0x9f")](yc("0xff"))[yc("0x17e")]({view:{name:yc("0x9b"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x5e")+t[yc("0x61")](yc("0xb"))+":"+t.getAttribute("id");return t.getAttribute(yc("0x107"))&&(n+=":"+t[yc("0x61")](yc("0x107"))),e[yc("0xc")](yc("0x67"),{"data-name":n})}}),t[yc("0x56")][yc("0x9f")]("upcast")[yc("0x11d")]({view:yc("0x9b")}),t[yc("0x56")][yc("0x9f")](yc("0xea"))[yc("0x176")]((t=>{t.on(yc("0x86"),r(),{priority:yc("0xa9")})})),t[yc("0x56")][yc("0x9f")](yc("0xea")).add((t=>{t.on("addMarker:suggestion:attribute",r({isAttributeSuggestion:!0}),{priority:yc("0xa9")})})),t[yc("0x56")][yc("0x9f")]("editingDowncast")[yc("0x176")]((t=>{t.on(yc("0x15c"),((t,e,n)=>{const r=n[yc("0x12f")].markerNameToElements(e.markerName);if(r)for(const t of r)t[yc("0x108")](yc("0x10c"))||(n.writer[yc("0x90")]([yc("0x131"),yc("0xc6"),yc("0x12")],t),n[yc("0x14b")][yc("0xe4")](yc("0x171"),t),n[yc("0x12f")][yc("0xe0")](t,e[yc("0x2b")]))}),{priority:yc("0xa9")})})),t.conversion[yc("0x9f")](yc("0xea")).add((t=>{t.on(yc("0x57"),((t,e,n)=>{const r=n[yc("0x12f")][yc("0x17a")](e.markerName);if(!r)return;const{id:i}=this._splitMarkerName(e[yc("0x2b")]),o=this[yc("0x101")].get(i),s=this._getAttributeKey(o);if(this[yc("0x159")](s))for(const t of r)t.getCustomProperty(yc("0x10c"))||(n[yc("0x14b")][yc("0x90")]([yc("0x131"),yc("0xc6"),yc("0x12")],t),n[yc("0x14b")][yc("0xe4")](yc("0x171"),t),n[yc("0x12f")][yc("0xe0")](t,e[yc("0x2b")]))}),{priority:"high"})})),t.model[yc("0xf9")].registerPostFixer((e=>{let n=!1;const r=Array[yc("0xd4")](t[yc("0xf0")][yc("0xf9")][yc("0x9c")][yc("0xf8")]()),i=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this[yc("0xde")](x);if(yc("0x9b")!==r)continue;const d=this[yc("0x101")][yc("0x135")](u);if(null!=a.newRange){yc("0x1a")==c&&(n=n||Sc(a.newRange,x,e,t[yc("0xf0")].schema));const r="attribute"==c&&this._isBlockAttribute(l[yc("0x146")]("|")[0]);if(a[yc("0xa7")][yc("0x6")]||yc("0x136")==a.newRange[yc("0x12c")][yc("0x164")]||yc("0x114")==c&&!Nc(a[yc("0xa7")])||r&&!Nc(a.newRange)||"deletion"==c&&(Rc(s=a.newRange)||(o=s)[yc("0xf7")][yc("0xf5")]==o.end[yc("0x100")]&&o.start[yc("0xb4")]))e[yc("0x16c")](x),n=!0;else{if(!d||!d[yc("0x16b")])continue;i[yc("0x176")](d)}}}var o,s;return i[yc("0x5c")]>0&&(n=!!this._joinWithAdjacentSuggestions(i)||n),n})),t.model.document[yc("0x7c")]((e=>{let n=!1;for(const r of t[yc("0xf0")].document[yc("0x9c")][yc("0x3e")]())if(yc("0x161")==r[yc("0x4b")])for(const r of this[yc("0x101")][yc("0x28")]()){if(r[yc("0x26")]||!r[yc("0x16b")])continue;const i=yc("0x114")==r[yc("0x4b")],o=this[yc("0x3")](r),s=o&&this._isBlockAttribute(o);if(!i&&!s)continue;const x=r[yc("0x15")]();if(x[yc("0xf7")][yc("0xf5")]!=x[yc("0x179")].parent&&!x[yc("0x179")][yc("0xb4")]){const i=t[yc("0xf0")].createPositionAt(x[yc("0xf7")][yc("0x2a")],"end"),o=t.model[yc("0x38")](x[yc("0xf7")],i);e.updateMarker(r[yc("0x1e")](),{range:o}),n=!0}}return n})),t[yc("0xf0")].document[yc("0x7c")]((t=>this[yc("0x85")](t))),t[yc("0xf0")][yc("0xf9")][yc("0x7c")]((t=>!t[yc("0x98")][yc("0x15f")]&&this[yc("0x8b")](t))),t[yc("0xf0")].on(yc("0x11b"),(()=>{this[yc("0x4f")]=!1})),t.model[yc("0xf9")].on("change:data",((n,r)=>{if(!r[yc("0x15f")]||r[yc("0xe5")])return;if(!this[yc("0x4f")])return;const i=t[yc("0xf0")][yc("0xf9")][yc("0x9c")][yc("0x3e")]();if(0==i[yc("0x163")])return;const o=[],s=i.filter((t=>yc("0x162")==t[yc("0x4b")])),x=i.filter((t=>yc("0x161")==t[yc("0x4b")]&&yc("0x14a")!=t[yc("0x75")])),a=i[yc("0x14c")]((t=>"remove"==t[yc("0x4b")]&&yc("0x14a")!=t.name));for(const e of s)this[yc("0x83")](e.attributeKey)&&o[yc("0x126")]({key:e[yc("0xc5")],newValue:e[yc("0x7f")],oldValue:e[yc("0x12b")],range:Lc(e[yc("0xa0")],t[yc("0xf0")])});for(const e of x){const n=a[yc("0x9a")]((t=>t._element===e._element));if(n){const r=Mc(e[yc("0x30")][yc("0x2a")],t[yc("0xf0")]);n.name!==e[yc("0x75")]&&o.push({key:yc("0x8a"),newValue:e.name,oldValue:n[yc("0x75")],range:r});for(const[t,i]of n[yc("0x5b")]){if(!this[yc("0x83")](t))continue;const n=e[yc("0x5b")][yc("0x135")](t);i!==n&&o[yc("0x126")]({key:t,newValue:n,oldValue:i,range:r})}for(const[t,i]of e[yc("0x5b")])this[yc("0x83")](t)&&(n.attributes.has(t)||o[yc("0x126")]({key:t,newValue:i,oldValue:null,range:r}))}}0!=o.length&&t[yc("0xf0")][yc("0x60")](r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:i}of o)this.markAttributeChange(t,e,r,i,{groupId:n});this[yc("0x1f")](t,o)}))}),{priority:yc("0x121")}),t[yc("0xf0")][yc("0x132")].on(yc("0x50"),((t,e,n)=>{if(null==n){const{id:t}=this[yc("0xde")](e[yc("0x75")]),n=this[yc("0x101")][yc("0x135")](t);n&&n[yc("0x6c")](e[yc("0x75")])}})),t[yc("0xf0")][yc("0xf9")].on(yc("0x17d"),(()=>{const e=Array[yc("0xd4")](t[yc("0xf0")][yc("0xf9")][yc("0x9c")][yc("0xf8")]()).filter((t=>yc("0x9b")===this[yc("0xde")](t[yc("0x75")])[yc("0x9")]));if(0===e[yc("0x163")])return;e[yc("0x8")](((t,e)=>{const n=t[yc("0x113")][yc("0x2")],r=e.data[yc("0x2")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n.start.isBefore(r[yc("0xf7")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:i}of e){const{id:e}=this[yc("0xde")](t);if(null===i[yc("0x2")]){const e=this._handleNewSuggestionMarker(t);r[yc("0x176")](e)}else{const t=this[yc("0x101")][yc("0x135")](e);null!==i.newRange||t[yc("0x16b")]?(n[yc("0x176")](t[yc("0x6a")]),r[yc("0x176")](t)):this[yc("0x147")](t)}}r[yc("0x5c")]>0&&this[yc("0x16e")](r);for(const t of n)this.fire(yc("0xaa"),t)})),t[yc("0xf0")].on(yc("0x76"),((e,n)=>{const r=n[0];if(!this[yc("0x101")][yc("0x5c")])return;if(!r.isDocumentOperation)return;if(r.batch.isUndo||!r.batch[yc("0x15f")])return;let i,o;switch(r.type){case"insert":i=t[yc("0xf0")][yc("0x6e")](r[yc("0x30")]),o=i.getShiftedBy(r[yc("0x46")]);break;case yc("0x146"):i=t[yc("0xf0")][yc("0x6e")](r[yc("0xc0")]),o=t[yc("0xf0")][yc("0x6e")](r.moveTargetPosition);break;case yc("0x40"):i=t[yc("0xf0")][yc("0x6e")](r[yc("0x21")]),o=i[yc("0x3d")](r.howMany);break;default:return}const s=t.model[yc("0x38")](i,o);t[yc("0xf0")][yc("0x43")]((()=>{for(const{suggestion:t,meta:e}of this[yc("0x8f")](s)){if(t[yc("0x26")])continue;if(yc("0x1a")==t.type)continue;const n=this[yc("0x3")](t);if(n&&this[yc("0x159")](n)&&"split"!=r[yc("0x4b")])continue;const x=t[yc("0x113")]&&t[yc("0x113")][yc("0x1b")];(yc("0x114")!=t[yc("0x4b")]||yc("0x146")==r[yc("0x4b")]&&!x)&&(e[yc("0x4e")]||yc("0x2e")==t[yc("0x4b")]&&e[yc("0xd8")]||t.getFirstRange()[yc("0x118")](s)&&this._breakSuggestionMarker(t,i,o))}}))}),{priority:yc("0x121")}),t[yc("0xf0")].on("deleteContent",((e,n)=>{const r=n[0],i=n[1];if(i&&i.forceDefaultExecution)return;if(this[yc("0x79")])return;if(!this[yc("0x25")][yc("0x19")])return;if(r[yc("0x6")])return;const o=t.model.schema,{start:s,end:x}=r[yc("0x15")](),a=s[yc("0x2a")]&&o.isLimit(s[yc("0x2a")])?null:o[yc("0x23")](s,yc("0xf4")),c=x.nodeBefore&&o[yc("0x145")](x[yc("0x100")])?null:o[yc("0x23")](x,"backward"),l=t.model[yc("0x38")](a?a[yc("0xf7")]:s,c?c[yc("0x179")]:x);t[yc("0xf0")].change((e=>{this[yc("0xe1")](l);const n=t[yc("0xf0")][yc("0xba")].getNearestSelectionRange(l[yc("0xf7")]);r.is(yc("0x152"))?e.setSelection(n):r.setTo(n)})),e[yc("0xd")]()}),{priority:e.priorities[yc("0xad")]+10}),t[yc("0xf0")].on(yc("0xf2"),((e,n)=>{const r=n[n[yc("0x163")]-1];r&&r[yc("0x58")]||this[yc("0x79")]||this[yc("0x25")].value&&(t[yc("0xf0")][yc("0x43")]((()=>{let r=t[yc("0xf0")][yc("0xf2")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e.return=r[yc("0x14e")]();const i=r[yc("0x179")].nodeBefore,o=t.model[yc("0xba")];i&&o[yc("0x110")](i)&&!o[yc("0x13e")](i)&&(r=t[yc("0xf0")].createRange(r[yc("0xf7")],t[yc("0xf0")][yc("0x6e")](i,yc("0x179")))),this[yc("0x9d")](r)})),e[yc("0xd")]())}),{priority:yc("0xa9")}),this[yc("0x71")][yc("0xfb")][yc("0x176")]("trackChanges",this[yc("0x25")]),this[yc("0x10")](yc("0x22"));const i=new p(t,this._suggestions);t[yc("0xfb")][yc("0x176")]("acceptSuggestion",i),this[yc("0x10")](yc("0x122"));const o=new y(t,this[yc("0x101")]);t[yc("0xfb")][yc("0x176")]("discardSuggestion",o),this[yc("0x10")](yc("0x109")),t[yc("0xfb")].add(yc("0x95"),new F(t,i,this[yc("0x101")])),this[yc("0x10")](yc("0x95")),t.commands[yc("0x176")](yc("0x165"),new F(t,o,this[yc("0x101")])),this.enableCommand(yc("0x165")),t[yc("0xfb")].add("acceptSelectedSuggestions",new j(t,i,this[yc("0x101")])),this[yc("0x10")](yc("0x41")),t[yc("0xfb")][yc("0x176")](yc("0x155"),new j(t,o,this[yc("0x101")])),this[yc("0x10")]("discardSelectedSuggestions");const s=t.plugins.get(yc("0x106"));this[yc("0xc7")](s,"addComment",((t,{threadId:e})=>{const n=this[yc("0x101")].get(e);n&&n[yc("0x31")]&&1===n.commentThread[yc("0x163")]&&this[yc("0x2f")](e,{hasComments:!0})}),{priority:"low"}),this.listenTo(s,yc("0x37"),((t,{threadId:e})=>{const n=this[yc("0x101")][yc("0x135")](e);n&&n[yc("0x31")]&&!n[yc("0x31")][yc("0x163")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:yc("0x123")})}set[yc("0x63")](t){if(this[yc("0x13d")])throw new e.CKEditorError(yc("0x11a"),this);this[yc("0x13d")]=t}get[yc("0x63")](){return this[yc("0x13d")]}[yc("0x15b")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions.values())t&&!e[yc("0x16b")]||n[yc("0x126")](e);return e?n[yc("0xa6")]((t=>t[yc("0x115")]())):n}[yc("0x11e")](t){const n=this[yc("0x101")][yc("0x135")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[yc("0x27")](t){return this[yc("0x101")].has(t)}[yc("0xee")](t){const{authorId:e,id:n,attributes:r}=t,[i,o]=t[yc("0x4b")][yc("0x146")](":"),s=this[yc("0x101")].get(n)||this[yc("0x16")](i,o,n,e,r);if(this[yc("0x4c")](s),this._checkSuggestionCorrectness(s,i,o||null,e),s[yc("0x158")]=t[yc("0x158")],s._isDataLoaded=!0,r&&r[yc("0xa")]){const t=r[yc("0xa")],e=this[yc("0x174")](t.authorName);s[yc("0xa8")]=t[yc("0x158")],s[yc("0x127")]=e,s[yc("0x3a")]=!0}else s.authoredAt=t[yc("0x158")];switch(t.data&&(s[yc("0x113")]=t.data),t[yc("0x5b")]&&(s.attributes=t[yc("0x5b")]),this[yc("0x13d")]&&this[yc("0x13d")][yc("0xcc")]||(s[yc("0x78")]=!0),this[yc("0x7")][yc("0x135")](s)){case yc("0x2d"):this[yc("0x7")][yc("0xbc")](s,"dataReady");break;case yc("0x170"):s.isInContent?(this._joinWithAdjacentSuggestions(new Set([s])),this[yc("0x16e")](new Set([s])),this[yc("0x7")][yc("0xbc")](s,yc("0x9e")),this[yc("0x55")](yc("0xd1"),s)):this[yc("0x7")][yc("0xbc")](s,"removed")}return s}[yc("0x122")](t){this.forceDefaultExecution((()=>{this.editor.model[yc("0x43")]((()=>{for(const e of t[yc("0x70")]())e[yc("0x103")]()}))}))}[yc("0x109")](t){this[yc("0x58")]((()=>{this[yc("0x71")][yc("0xf0")][yc("0x43")]((()=>{for(const e of t[yc("0x70")]())e[yc("0x117")]()}))}))}[yc("0x10")](t,n){const r=this[yc("0x71")][yc("0xfb")][yc("0x135")](t);if(!r)throw new e.CKEditorError(yc("0x84"),this,{commandName:t});if(this._enabledCommands[yc("0x10d")](r))throw new e.CKEditorError(yc("0x24"),this,{commandName:t});this[yc("0x68")][yc("0x176")](r),n&&r.on(yc("0x3f"),((t,e)=>{this[yc("0x25")][yc("0x19")]&&(this._isForcedDefaultExecutionBlock||(e[yc("0x163")]>0&&e[e[yc("0x163")]-1]&&e[e[yc("0x163")]-1][yc("0x58")]?e[yc("0x87")]():(t.return=n(((...t)=>r[yc("0x3f")](...t,{forceDefaultExecution:!0})),...e),t.stop())))}),{priority:"high"})}[yc("0x58")](t){let n,r;const i=this[yc("0x79")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){r=t}return i||(this[yc("0x79")]=!1),r&&e.CKEditorError[yc("0xe")](r,this),n}[yc("0x9d")](t,n=null,r={}){if(t.isCollapsed)return null;const i=this[yc("0x71")][yc("0x4")][yc("0x135")](yc("0x18")).me;for(const{suggestion:e,meta:i}of this[yc("0x8f")](t,"insertion"))if(i[yc("0xd8")]){if(!i[yc("0x7e")]){if(i[yc("0x4e")]){if(!this[yc("0x42")]||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this[yc("0xa4")](e,t.start,t[yc("0x179")]);break}if(n==e[yc("0x45")]&&Fc(e,r)){const n=e.getFirstRange();return n.start[yc("0x129")](t.end)?this._setSuggestionRange(e,this[yc("0x13")].createRange(t[yc("0xf7")],n[yc("0x179")])):this._setSuggestionRange(e,this[yc("0x13")][yc("0x38")](n[yc("0xf7")],t.end)),e}}const o=(0,e.uid)(),s=i.id,x=n?yc("0x52")+n:yc("0x2e"),a=this[yc("0xd9")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0x92")](x,o,s,t),a}[yc("0x29")](t,n=yc("0x10a"),r={}){const i=this.editor[yc("0x4")][yc("0x135")](yc("0x18")).me,o=this._suggestionFactory[yc("0x134")](yc("0x2e"),n,yc("0x13a"));for(const e of this[yc("0x15b")]())if(e.author.id==i.id&&yc("0x2e")==e[yc("0x4b")]&&e[yc("0x45")]==n&&Fc(e,r)&&(o(e.getRanges(),t)||o(t,e[yc("0x111")]()))){for(const n of t)e[yc("0x32")](n);return e}for(const{suggestion:e,meta:n}of this[yc("0x8f")](t,yc("0x2e"))){if(!n.isOwn)continue;if(!this._mergeNestedSuggestions&&n.containsRangeInObject)continue;if(!Fc(e,r))continue;let i=!0;for(const n of e[yc("0x111")]())for(const e of t)if(!n[yc("0x118")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=yc("0x52")+n,c=this[yc("0xd9")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[yc("0x92")](a,s,x,e,Yr[yc("0xf1")]());return c}[yc("0x137")](t,n,r=null,i={}){if(r=r||vc(n),t.isCollapsed)return null;if(yc("0xfe")===this[yc("0x51")]){const e=this[yc("0x36")][yc("0x134")]("formatInline",r,yc("0x103"));return this.forceDefaultExecution((()=>e([t],n,i))),null}const o=this[yc("0x71")][yc("0x4")][yc("0x135")]("Users").me,s=[];if(yc("0x14")!==this[yc("0x51")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion"))n[yc("0xd8")]&&!n[yc("0x3b")]&&s.push(...e[yc("0x111")]());const x=function(t,e){const n=[];for(const r of e){const e=t[yc("0x125")](r);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[yc("0x163")];){const r=n[e][yc("0x144")](t);n[yc("0x169")](e,1,...r),e+=r.length}}return n}(t,s);x.length&&this._model[yc("0x43")]((()=>{for(const t of x){const e=this._suggestionFactory[yc("0x134")]("formatInline",r,"accept");this[yc("0x58")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[yc("0xf7")],a=t.end;for(const{suggestion:e,meta:n}of this[yc("0x8f")](t,yc("0x1a"))){if(!n[yc("0xd8")])continue;if(e[yc("0x45")]!=r)continue;if(!Fc(e,i))continue;const o=e[yc("0x15")]();if(o[yc("0x118")](t,!0))return null;x=x[yc("0x15d")](o[yc("0xf7")])?x:o[yc("0xf7")],a=a[yc("0xa1")](o.end)?a:o[yc("0x179")],s?o[yc("0xf7")][yc("0x15d")](s[yc("0x15")]().start)?(s.removeMarkers(),s=e):e[yc("0x20")]():s=e}const c=this[yc("0x13")][yc("0x38")](x,a);if(s)this[yc("0x104")](s,c);else{const t=(0,e.uid)(),s=o.id;this._setSuggestionData({id:t,type:yc("0x7b")+r,data:n,createdAt:new Date,authorId:s,attributes:i}),this[yc("0x92")](yc("0x7b")+r,t,s,c)}}return null}[yc("0x102")](t,n,r=[],i=null,o={}){n[yc("0x69")]||(n[yc("0x69")]=n[yc("0x15a")]),n[yc("0x1b")]=t.is(yc("0xa0")),i=i||vc(n);const s=r[yc("0xa6")]((t=>Mc(t,this[yc("0x13")]))),x=t.is(yc("0xa0"))?t:Mc(t,this[yc("0x13")]);if(yc("0xfe")===this._trackFormatChanges){const t=this[yc("0x36")][yc("0x134")](yc("0x114"),i,yc("0x103"));return this[yc("0x58")]((()=>t([x],n,o))),null}s.push(x);let a=!0;for(const t of s)if(!this[yc("0x11c")](t)){a=!1;break}if(a&&yc("0x14")!==this._trackFormatChanges){const t=this[yc("0x36")].getSuggestionCallback(yc("0x114"),i,"accept");return this[yc("0x58")]((()=>t([x],n,o))),null}let c=null,l=x.start,u=x[yc("0x179")];for(const{suggestion:t,meta:e}of this[yc("0x8f")](x,yc("0x114"))){if(!e[yc("0xd8")])continue;if(e[yc("0x7e")]||e[yc("0x4e")]||e[yc("0x3b")])continue;if(t[yc("0x113")].formatGroupId!=n[yc("0x69")])continue;if(!Fc(t,o))continue;const r=t[yc("0x15")]();if(t.subType==i){if(r.containsRange(x,!0))return null;l=l[yc("0x15d")](r.start)?l:r[yc("0xf7")],u=u[yc("0xa1")](r[yc("0x179")])?u:r[yc("0x179")],c?r[yc("0xf7")].isBefore(c[yc("0x15")]()[yc("0xf7")])?(c[yc("0x20")](),c=t):t[yc("0x20")]():c=t}else{const e=x[yc("0x125")](r);this[yc("0xbf")](t,e)}}const d=this[yc("0x71")][yc("0x4")].get(yc("0x18")).me,g=(0,e.uid)(),f=d.id;if(c)return this[yc("0x104")](c,this[yc("0x13")][yc("0x38")](l,u)),c;{const t=this[yc("0xd9")]({id:g,type:yc("0x8d")+i,data:n,createdAt:new Date,authorId:f,attributes:o});return this[yc("0x92")](yc("0x8d")+i,g,f,this._model.createRange(l,u)),t}}[yc("0xda")](t,n,r=[],i=null,o={}){n[yc("0x69")]||(n[yc("0x69")]=n[yc("0x15a")]);const s=t[0];n[yc("0x1b")]=s.is(yc("0xa0")),i=i||vc(n);const x=r.map((t=>Mc(t,this[yc("0x13")]))),a=s.is(yc("0xa0"))?t:t[yc("0xa6")]((t=>Mc(t,this[yc("0x13")])));if("never"===this._trackFormatChanges){const t=this._suggestionFactory[yc("0x134")]("formatBlock",i,yc("0x103"));return this[yc("0x58")]((()=>t(a,n,o))),null}x[yc("0x126")](...a);let c=!0;for(const t of x)if(!this[yc("0x11c")](t)){c=!1;break}if(c&&yc("0x14")!==this[yc("0x51")]){const t=this[yc("0x36")][yc("0x134")]("formatBlock",i,yc("0x103"));return this[yc("0x58")]((()=>t(a,n,o))),null}const l=this[yc("0x71")][yc("0x4")][yc("0x135")](yc("0x18")).me;for(const t of this[yc("0x15b")]()){if(t[yc("0x127")].id!=l.id)continue;if(yc("0x114")!=t[yc("0x4b")]||t.data[yc("0x69")]!=n[yc("0x69")])continue;if(!Fc(t,o))continue;const e=t.subType==i;for(let n=0;n<a[yc("0x163")];n++){const r=a[n];for(const i of t[yc("0xe8")]()){const o=i.getRange();if(r[yc("0x129")](o)){e?(a[yc("0x169")](n,1),n--):t.removeMarker(i[yc("0x75")]);break}}}}if(0==a[yc("0x163")])return null;const u=this[yc("0x36")][yc("0x134")](yc("0x114"),i,yc("0x13a"));for(const t of this.getSuggestions())if(t.author.id==l.id&&"formatBlock"==t[yc("0x4b")]&&t[yc("0x113")][yc("0x69")]==n.formatGroupId&&t[yc("0x45")]==i&&Fc(t,o)&&(u(t[yc("0x111")](),a)||u(a,t[yc("0x111")]()))){for(const e of a)t[yc("0x32")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0x8d")+i,h=this[yc("0xd9")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this._addSuggestionMarker(f,d,g,t,Yr[yc("0xf1")]());return h}[yc("0xe1")](t,n=null,r={}){if(t[yc("0x6")])return null;const i=this.editor[yc("0x4")][yc("0x135")]("Users").me,o=new s.LiveRange(t[yc("0xf7")],t[yc("0x179")]);for(const{suggestion:t,meta:e}of this._findSuggestions(o,yc("0x2e")))if(e[yc("0xd8")]&&!e[yc("0x7e")])if(t[yc("0x26")]){const e=t[yc("0x111")]().filter((t=>yc("0x136")!=t[yc("0x12c")][yc("0x164")]));if(e[yc("0x12e")]((t=>o[yc("0x118")](t,!0)))&&t[yc("0x117")](),e[yc("0x112")]((t=>t[yc("0x118")](o,!0)))){const t=this._suggestionFactory[yc("0x134")]("deletion",n,yc("0x103"));return this[yc("0x58")]((()=>t([o],null,r))),null}}else{const e=o[yc("0x125")](t[yc("0x15")]());null!==e&&t[yc("0x74")]([e],null,r)}if(o[yc("0x49")](),o[yc("0x6")]||yc("0x136")==o.root[yc("0x164")])return null;let x=null,a=o[yc("0xf7")],c=o[yc("0x179")];const l=this[yc("0x8f")](o,yc("0xa2"));for(const{suggestion:t,meta:e}of l){const n=this[yc("0x13")][yc("0x38")](a,c);if(e[yc("0xd8")]&&(this[yc("0x42")]||!e.containsRangeInObject&&!e[yc("0x3b")]))if(t[yc("0x26")]){if(!Fc(t,r))continue;let e=!0;for(const r of t[yc("0x111")]()){if(r.containsRange(n,!0))return t;n[yc("0x118")](r)||(e=!1)}e&&t.discard()}else{const e=t.getFirstRange();if(e.containsRange(n,!0))return t;if(!Fc(t,r)){n[yc("0x118")](e)?t[yc("0x20")]():e[yc("0x6f")](a)?a=e[yc("0x179")]:e[yc("0x6f")](c)&&(c=e[yc("0xf7")]);continue}a=a.isBefore(e[yc("0xf7")])?a:e[yc("0xf7")],c=c.isAfter(e[yc("0x179")])?c:e.end,r=Object[yc("0xb7")]({},t.attributes),x?e.start[yc("0x15d")](x[yc("0x15")]()[yc("0xf7")])?(x[yc("0x20")](),x=t):t[yc("0x20")]():x=t}}if(x)return this._setSuggestionRange(x,this[yc("0x13")][yc("0x38")](a,c)),x;{const t=(0,e.uid)(),o=this._model[yc("0x38")](a,c),s=i.id,x=n?yc("0x44")+n:yc("0xa2"),l=this[yc("0xd9")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0x92")](x,t,s,o),l}}markMultiRangeDeletion(t,n=yc("0x10a"),r={}){const i=this[yc("0x71")].plugins.get(yc("0x18")).me,o=t[yc("0xa6")]((t=>new s.LiveRange(t[yc("0xf7")],t[yc("0x179")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(o,yc("0x2e")))e[yc("0xd8")]&&!e.isNextTo&&x.add(t);for(const e of x)if(e[yc("0x26")]){const i=e.getRanges();if((!e[yc("0x5b")]||!e[yc("0x5b")][yc("0x12a")])&&i.every((t=>o[yc("0x112")]((e=>e.containsRange(t,!0)))))&&e[yc("0x117")](),o[yc("0x12e")]((t=>i[yc("0x112")]((e=>e.containsRange(t,!0)))))){const e=this._suggestionFactory[yc("0x134")]("deletion",n,"accept");return this[yc("0x58")]((()=>e(t,null,r))),null}}else{const t=e[yc("0x15")]();if(o[yc("0x112")]((e=>e[yc("0x118")](t,!0)))&&e[yc("0x117")](),o[yc("0x12e")]((e=>t[yc("0x118")](e,!0)))){const t=this[yc("0x36")][yc("0x134")](yc("0xa2"),n,yc("0x103"));return this[yc("0x58")]((()=>t(o,null,r))),null}}const a=this[yc("0x36")][yc("0x134")](yc("0xa2"),n,yc("0x13a"));let c=null;for(const t of this.getSuggestions())if(t.author.id==i.id&&t[yc("0x16b")]&&yc("0xa2")==t[yc("0x4b")]&&t[yc("0x45")]==n&&Fc(t,r)&&(a(t[yc("0x111")](),o)||a(o,t.getRanges())))if(c){if(t.commentThread&&t.commentThread[yc("0x163")])continue;for(const e of t[yc("0x111")]())c.isIntersectingWithRange(e)||c.addRange(e);t[yc("0x20")]()}else{c=t;for(const e of o)t[yc("0x1d")](e)||t[yc("0x32")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[yc("0x8f")](o,"deletion"))e[yc("0xd8")]&&(this[yc("0x42")]||!e[yc("0x4e")]&&!e[yc("0x3b")])&&Fc(t,r)&&x.add(t);for(const t of x){const e=t[yc("0x111")]();if((!r||!r.skipNestingCheck)&&o[yc("0x12e")]((t=>e.some((e=>e.containsRange(t,!0))))))return t;(!t[yc("0x5b")]||!t[yc("0x5b")][yc("0x12a")])&&e[yc("0x12e")]((t=>o[yc("0x112")]((e=>e[yc("0x118")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=i.id,d="deletion:"+n,g=this[yc("0xd9")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of o)t[yc("0x49")](),t[yc("0x6")]||yc("0x136")==t[yc("0x12c")][yc("0x164")]||this._addSuggestionMarker(d,l,u,t,Yr[yc("0xf1")]());return g}[yc("0x6d")](t,n,r,i,o){if(t[yc("0x6")])return[];if("never"===this[yc("0x51")])return[];const s=this[yc("0x71")][yc("0x4")].get(yc("0x18")).me.id,x=Array.from(this[yc("0x101")][yc("0x28")]())[yc("0x14c")]((e=>"attribute"==e[yc("0x4b")]&&e[yc("0x113")][yc("0x73")]==n&&e[yc("0x1d")](t)));if(yc("0xcb")===this[yc("0x51")]){const e=this[yc("0x8f")](t,yc("0x2e")).filter((({meta:t})=>t[yc("0xd8")]&&!t[yc("0x3b")]&&!t.isNextTo))[yc("0xa6")]((({suggestion:t})=>t));x.unshift(...e)}const a=new Map([[t,r]]);for(const t of x){const e=yc("0x162")==t.type?t[yc("0x113")][yc("0x154")]:void 0,o=t[yc("0x15")](),s=Array[yc("0xd4")](a[yc("0x172")]())[yc("0x9a")]((t=>t[yc("0xc2")](o)));if(!s)continue;const x=s.getDifference(o);this._isBlockAttribute(n)&&yc("0x2e")==t.type&&0!=x.length||(a[yc("0x141")](s),x.forEach((t=>{a.set(t,r)})),yc("0x2e")!=t.type&&e!=i&&a[yc("0xbc")](s[yc("0x125")](o),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:i};n.length>37&&console[yc("0xb3")](yc("0xc9"),{key:n});const l=(yc("0x66")+(n+"|")+vc({newValue:i}))[yc("0xfc")](0,60),u=this[yc("0xd9")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[yc("0x126")](u),this[yc("0x92")](l,x,s,t)}return c}[yc("0x124")](t){this[yc("0xd2")].add(t)}[yc("0x16d")](t){this[yc("0xc3")][yc("0x176")](t)}_enableDefaultAttributesIntegration(t,e=[],n=[]){this[yc("0x10")](t,((t,...e)=>{this[yc("0x116")]((()=>{t(...e)}))}));for(const t of e)this._registerInlineAttribute(t);for(const t of n)this[yc("0x124")](t)}[yc("0x3")](t){return"attribute"==t[yc("0x4b")]?t.subType[yc("0x146")]("|")[0]:null}[yc("0x104")](t,e){const n=t[yc("0x1e")]();this[yc("0x13")][yc("0x43")]((t=>{t[yc("0xdc")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[yc("0x71")].config[yc("0x135")](yc("0xc8"));this[yc("0xb0")][yc("0xb5")](e)||this[yc("0xb0")][yc("0xd0")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this[yc("0xb0")][yc("0x7a")](e);r[yc("0x11f")](yc("0xcd")),r[yc("0xcd")]=!1,t[yc("0x31")]=r}[yc("0x0")](t,n,r,i){if(t.type!=n||t[yc("0x45")]!=r||t[yc("0xaf")].id!=i)throw this.editor[yc("0x168")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(yc("0x94"),this)}[yc("0xbf")](t,n){const r=t.getFirstRange();if(n[yc("0x129")](r))t[yc("0x20")]();else if(r[yc("0x118")](n)){const i=this[yc("0x13")].createPositionAt(n.start.nodeBefore,yc("0x179"));this[yc("0x104")](t,this[yc("0x13")][yc("0x38")](r[yc("0xf7")],i));const o=(0,e.uid)(),s=t[yc("0xaf")].id,x=t.type+":"+t[yc("0x45")];this[yc("0xd9")]({id:o,type:x,createdAt:new Date,authorId:s,data:t[yc("0x113")],attributes:t[yc("0x5b")]});const a=this[yc("0x13")][yc("0x6e")](n[yc("0x179")][yc("0xf5")],yc("0x11")),c=this._model[yc("0x38")](a,r[yc("0x179")]);this[yc("0x92")](x,o,s,c)}else if(r[yc("0x6f")](n[yc("0xf7")])){const e=this._model[yc("0x6e")](n[yc("0xf7")][yc("0x100")],"end");this[yc("0x104")](t,this[yc("0x13")][yc("0x38")](r[yc("0xf7")],e))}else{const e=this[yc("0x13")][yc("0x6e")](n[yc("0x179")].parent,yc("0x11"));this[yc("0x104")](t,this[yc("0x13")][yc("0x38")](e,r[yc("0x179")]))}}[yc("0x11c")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0x2e"))){if(!n[yc("0xd8")])continue;const r=e[yc("0x111")]();for(const e of r)if(!t.getDifference(e).length)return!0}return!1}[yc("0x47")](t){const n=this[yc("0x71")][yc("0x4")][yc("0x135")]("Users")[yc("0x64")](t);if(!n)throw new e.CKEditorError(yc("0xdb"),this);return n}_getExternalAuthor(t){const e=this[yc("0x71")][yc("0x4")].get(yc("0x18")),n=(0,o.hashObject)("external:"+t);return e.getUser(n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,r,i){const o=this[yc("0x47")](r),s=this[yc("0x36")][yc("0xe3")](t,e,n,o,i,(t=>{this[yc("0x2f")](n,{attributes:t});const e=this.getSuggestion(n);this[yc("0x166")](new Set([e])),this[yc("0x16e")](new Set([e]))}));return this[yc("0xc7")](s,yc("0x103"),(()=>{this[yc("0x2f")](n,{state:yc("0x62")})}),{priority:yc("0xa9")}),this.listenTo(s,yc("0x117"),(()=>{this._updateSuggestionData(n,{state:"rejected"})}),{priority:yc("0xa9")}),this[yc("0x101")][yc("0xbc")](n,s),this[yc("0x7")].set(s,yc("0x2d")),s}[yc("0xde")](t){const e=t[yc("0x146")](":");return{group:e[0],type:e[1],subType:e[yc("0x163")]>=5?e[2]:null,id:e[yc("0x163")]<5?e[2]:e[3],authorId:e[yc("0x163")]<5?e[3]:e[4],markerCount:6==e[yc("0x163")]?e[5]:null}}[yc("0xa4")](t,n,r){const i=t[yc("0x15")](),o=i[yc("0xf7")],s=i[yc("0x179")];this[yc("0x104")](t,this[yc("0x13")][yc("0x38")](o,n));const x=(0,e.uid)(),a=t[yc("0xaf")].id,c=t[yc("0x4b")]+(t[yc("0x45")]?":"+t[yc("0x45")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[yc("0x5b")],data:t[yc("0x113")]});const l=this[yc("0x3")](t);("formatBlock"==t[yc("0x4b")]||l&&this._isBlockAttribute(l))&&(r=this[yc("0x13")][yc("0xab")](r[yc("0xf5")])),this[yc("0x92")](c,x,a,this._model.createRange(r,s))}_findSuggestions(t,e=null){const n=[],r=this[yc("0x71")][yc("0x4")][yc("0x135")](yc("0x18")).me;Array[yc("0x178")](t)||(t=[t]);for(const i of this[yc("0x15b")]()){if(!i[yc("0x16b")])continue;if(e&&i.type!=e)continue;let o=!1;for(const e of i[yc("0x111")]()){for(const s of t){const t=s.start[yc("0x129")](e[yc("0x179")])||s[yc("0x179")][yc("0x129")](e[yc("0xf7")]);if(t||s[yc("0x125")](e)){const x=s[yc("0x118")](e)&&Ic(this._model.schema,e.start,s),a=e[yc("0x118")](s)&&Ic(this[yc("0x13")][yc("0xba")],s[yc("0xf7")],e);n[yc("0x126")]({suggestion:i,meta:{isOwn:r==i.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0x92")](t,e,n,r,i){this[yc("0x13")][yc("0x43")]((o=>{let s=yc("0x5e")+t+":"+e+":"+n;i&&(s=s+":"+i),o[yc("0xe9")](s,{range:r,usingOperation:!0,affectsData:!0})}))}[yc("0x147")](t){const e=t.previous,n=t[yc("0x167")];t.previous=null,t[yc("0x167")]=null,null!=e&&e[yc("0x167")]==t&&(e[yc("0x167")]=n),null!=n&&n[yc("0x6b")]==t&&(n.previous=e),yc("0x9e")==this[yc("0x7")][yc("0x135")](t)&&(this[yc("0x7")][yc("0xbc")](t,yc("0x15e")),this[yc("0x55")](yc("0x13c"),t,e,n))}_setSuggestionData(t){const n=t.id,r=this[yc("0xee")](t);if(this._adapter&&this[yc("0x13d")][yc("0xcc")]){const i=this[yc("0x71")][yc("0x4")][yc("0x135")](yc("0xd6")),o=r[yc("0xfd")],s=r[yc("0x45")]?r[yc("0x4b")]+":"+r[yc("0x45")]:r[yc("0x4b")],x=this[yc("0x71")][yc("0x99")],a=i.add(Jr(x,yc("0x97"))),c={id:n,type:s,hasComments:o,data:t[yc("0x113")]||null,originalSuggestionId:t[yc("0x65")]||null,attributes:r[yc("0x5b")]};this._adapter[yc("0xcc")](c)[yc("0xd5")]((t=>{r._saved=!0,i.remove(a),t&&t[yc("0x158")]&&(this[yc("0x101")].get(n)[yc("0x158")]=t[yc("0x158")])})).catch((t=>{throw(0,e.logWarning)(yc("0x157")),this[yc("0x71")][yc("0xf0")][yc("0x60")]({isUndoable:!1},(()=>{r[yc("0x117")]()})),r[yc("0x96")](),this[yc("0x101")][yc("0x141")](r.id),this[yc("0x7")][yc("0x141")](r),t}))}return r}_isBlockAttribute(t){return this[yc("0xd2")][yc("0x10d")](t)}[yc("0x2f")](t,e){const n=this[yc("0x71")].plugins[yc("0x135")](yc("0xd6")),r=this[yc("0x11e")](t);if(this[yc("0x13d")]&&this[yc("0x13d")].updateSuggestion)if(r[yc("0x78")]){const r=n[yc("0x176")](Jr(this[yc("0x71")][yc("0x99")],yc("0x97")));this[yc("0x13d")][yc("0x150")](t,e).then((()=>{n.remove(r)}))}else r.on(yc("0xf6"),(()=>{this[yc("0x2f")](t,e)}))}[yc("0xc1")](t){if(!this[yc("0x13d")]||!this._adapter[yc("0x11e")])throw new e.CKEditorError(yc("0x156"),this);return this._adapter[yc("0x11e")](t)}[yc("0x48")](t){const{id:e,type:n,subType:r,authorId:i}=this._splitMarkerName(t),o=this[yc("0x101")][yc("0x135")](e)||this._createSuggestion(n,r,e,i,{});switch(this[yc("0x0")](o,n,r,i),this[yc("0x7")][yc("0x135")](o)){case yc("0x2d"):this[yc("0xc1")](e)[yc("0xd5")]((t=>{let n=Promise.resolve();t[yc("0xfd")]&&(n=this[yc("0xb0")][yc("0x13b")]({channelId:this.editor[yc("0x10f")][yc("0x135")](yc("0xc8")),threadId:e})),n[yc("0xd5")]((()=>{this[yc("0xee")](t)._saved=!0}))})),this[yc("0x7")][yc("0xbc")](o,yc("0x170"));break;case"removed":this[yc("0x2f")](e,{state:"open"});case yc("0x138"):this[yc("0x7")][yc("0xbc")](o,"ready"),this.fire(yc("0xd1"),o);break;case"ready":this[yc("0x55")](yc("0xaa"),o)}return o[yc("0x6c")](t),o}[yc("0x16e")](t){const e=Array[yc("0xd4")](t),n=e[yc("0x14c")]((t=>yc("0x162")==t[yc("0x4b")]));this[yc("0x17b")](n);const r=e.filter((t=>!t[yc("0x26")]&&yc("0x162")!=t[yc("0x4b")])),i=this[yc("0x15b")]({skipNotAttached:!0}).filter((t=>!t[yc("0x26")]&&yc("0x162")!=t[yc("0x4b")])),o=i[yc("0x14c")]((e=>!t[yc("0x10d")](e))),s=new Map(i.map((t=>[t,this._suggestionFactory[yc("0x134")](t[yc("0x4b")],t[yc("0x45")],yc("0xfa"))]))),x=new Map(i[yc("0xa6")]((t=>[t,t[yc("0x15")]()]))),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.length;t++)u(r[t],o,0);const l=new Set;for(let t=0;t<r[yc("0x163")];t++){const e=r[t];!c[yc("0x10d")](e)&&e.previous&&(l[yc("0x176")](e[yc("0x6b")]),e.previous[yc("0x167")]===e&&(e[yc("0x6b")][yc("0x167")]=null),e[yc("0x6b")]=null),!a[yc("0x10d")](e)&&e[yc("0x167")]&&(l[yc("0x176")](e[yc("0x167")]),e[yc("0x167")][yc("0x6b")]===e&&(e[yc("0x167")][yc("0x6b")]=null),e[yc("0x167")]=null)}function u(t,e,n){for(let r=n;r<e[yc("0x163")];r++){const n=d(t,e[r]);n&&(n[0][yc("0x167")]=n[1],n[1].previous=n[0],a.add(n[0]),c[yc("0x176")](n[1]))}}function d(t,e){if(t.author.id!==e[yc("0x127")].id)return null;const n=s[yc("0x135")](t)(t,e,x.get(t),x[yc("0x135")](e));return n&&s[yc("0x135")](e)(t,e,x[yc("0x135")](t),x[yc("0x135")](e))?n[1].commentThread&&n[1][yc("0x31")][yc("0x163")]?null:n:null}l.size&&this._refreshSuggestionsChain(l)}_refreshAttributeSuggestionsChain(t){if(0==t.length)return;const e=this[yc("0x15b")]({skipNotAttached:!0})[yc("0x14c")]((t=>yc("0x162")==t[yc("0x4b")]&&t[yc("0x12d")])),n=[],r=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0x5b")]);r[yc("0x10d")](e)||(r[yc("0xbc")](e,n[yc("0x163")]),n[yc("0x126")]([]));const i=r[yc("0x135")](e);n[i][yc("0x126")](t)}!function(){n.sort(((t,e)=>{const n=t[0][yc("0x158")],r=e[0].createdAt;return n==r?t[0][yc("0x5b")][yc("0xa3")]<e[0][yc("0x5b")].groupId?-1:1:n<r?-1:1}));for(const t of n)t[yc("0x8")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[yc("0x163")];t++){if(0==n[t][yc("0x163")])continue;const e=[];for(let r=t+1;r<n[yc("0x163")];r++)0!=n[r][yc("0x163")]&&i(n[t],n[r])&&e[yc("0x126")](r);for(const r of e)n[t]=n[t][yc("0x35")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t[yc("0x163")];e++)t[e][yc("0x167")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[yc("0x163")];e++)t[e].previous=t[e-1]||null;function i(t,e){if(t[0].attributes.groupId!==e[0][yc("0x5b")][yc("0xa3")]&&t[0][yc("0x127")]!==e[0][yc("0x127")])return!1;if(n=t[0],r=e[0],(n[yc("0xfd")]||r[yc("0xfd")])&&(n[yc("0xfd")]&&r[yc("0xfd")]||!(n.hasComments&&r[yc("0x158")]<n[yc("0x31")][yc("0x10b")][yc("0x135")](0)[yc("0x158")]||r[yc("0xfd")]&&n[yc("0x158")]<r[yc("0x31")].comments[yc("0x135")](0)[yc("0x158")])))return!1;var n,r;const i=bc(t[0].attributes,yc("0xa3")),o=bc(e[0][yc("0x5b")],yc("0xa3"));return!!jr(i,o)&&(!!t[yc("0x12e")]((t=>e[yc("0x112")]((e=>t[yc("0x15")]()[yc("0x129")](e.getFirstRange())))))&&e[yc("0x12e")]((e=>t.some((t=>e[yc("0x15")]()[yc("0x129")](t[yc("0x15")]()))))))}}[yc("0x166")](t){const e=Array.from(t),n=this[yc("0x15b")]({skipNotAttached:!0}),r=n.filter((e=>!t.has(e))),i=new Map(e[yc("0xa6")]((t=>[t,this._suggestionFactory[yc("0x134")](t.type,t[yc("0x45")],yc("0x13a"))]))),o=new Map(n[yc("0xa6")]((t=>[t,t[yc("0x111")]()])));for(let t=0;t<e[yc("0x163")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0x163")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[yc("0x163")];s++){const r=n[s];if(r[yc("0x4b")]!==e[yc("0x4b")]||r[yc("0x127")].id!==e[yc("0x127")].id||r[yc("0x45")]!==e[yc("0x45")])continue;if(!Oc(e,r,[yc("0xa3")]))continue;if(yc("0x162")==e[yc("0x4b")]&&e[yc("0x113")].oldValue!=r.data[yc("0x154")])continue;if(yc("0x162")==e[yc("0x4b")]&&t[yc("0x159")](e[yc("0x113")][yc("0x73")]))continue;if(yc("0x114")==e[yc("0x4b")]){const n=t[yc("0x71")][yc("0xf0")],r=e.getContainedElement();if(r&&(n[yc("0xba")][yc("0x13e")](r)||n[yc("0xba")][yc("0x145")](r)))continue}const x=i.get(e),a=o[yc("0x135")](e),c=o[yc("0x135")](r),l=e.commentThread&&e[yc("0x31")][yc("0x163")],u=r.commentThread&&r[yc("0x31")][yc("0x163")];if(!l&&x(c,a))return t[yc("0x133")](r,e),o[yc("0x141")](e),!0;if(!u&&x(a,c))return t[yc("0x133")](e,r),o.delete(r),!0}return!1}}[yc("0x133")](t,e){if(t[yc("0x26")])for(const n of e[yc("0x111")]())t.addRange(n);else{const n=e[yc("0x15")]()[yc("0x179")];this[yc("0x104")](t,this._model[yc("0x38")](t[yc("0x15")]()[yc("0xf7")],n))}e[yc("0x20")]()}_getMarkerAnnouncementText(t,e){const n=t[yc("0xe6")](yc("0xbb"))||t[yc("0xe6")](yc("0x162"))?yc("0x72"):t[yc("0xbe")]();return Jr(this[yc("0x71")].locale,e+"_"+n+yc("0x2c"))}[yc("0x10e")](){const t=this[yc("0x71")];(0,o.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[yc("0xde")](t[yc("0x75")]);if(yc("0x9b")===e){r[yc("0x126")](this[yc("0x7d")](n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this[yc("0xde")](t.name);if("suggestion"===e){r[yc("0x126")](this._getMarkerAnnouncementText(n,"ENTER"));break}}r.length&&t.ui[yc("0xed")][yc("0x148")]("trackChanges",r[yc("0x13a")](" "))}))}[yc("0x85")](t){if(this[yc("0x4f")])return!1;const e=this[yc("0x71")],n=e[yc("0xf0")][yc("0xf9")][yc("0x9c")].getChanges();if(0==n[yc("0x163")])return!1;const r=[],i=n.filter((t=>yc("0x162")==t[yc("0x4b")])),o=n[yc("0x14c")]((t=>yc("0x161")==t[yc("0x4b")]&&yc("0x14a")!=t[yc("0x75")])),s=n.filter((t=>"remove"==t.type&&"$text"!=t[yc("0x75")]));for(const t of i)r[yc("0x126")]({key:t[yc("0xc5")],newValue:t[yc("0x7f")],oldValue:t[yc("0x12b")],range:Lc(t[yc("0xa0")],e[yc("0xf0")])});for(const t of o){const n=s[yc("0x9a")]((e=>e[yc("0x30")].isEqual(t[yc("0x30")])));n&&r.push({key:yc("0x8a"),newValue:t[yc("0x75")],oldValue:n.name,range:e[yc("0xf0")][yc("0xdd")](t[yc("0x30")][yc("0x2a")])})}return 0!=r[yc("0x163")]&&this[yc("0x1f")](t,r)}_processAttributeSuggestions(t){let e=!1;const n=this.editor[yc("0xf0")][yc("0xf9")][yc("0x9c")][yc("0xf8")]()[yc("0x14c")]((t=>t[yc("0x113")][yc("0xa7")]&&t[yc("0x75")].startsWith(yc("0xe2"))));for(const r of n){const{subType:n,id:i}=this[yc("0xde")](r[yc("0x75")]),o=n[yc("0x146")]("|")[0];for(const n of this[yc("0x15b")]({skipNotAttached:!0}))n.id!=i&&yc("0x162")==n[yc("0x4b")]&&n.data&&n[yc("0x113")][yc("0x73")]==o&&n[yc("0x15")]().isIntersecting(r[yc("0x113")][yc("0xa7")])&&(this[yc("0x160")](n,r[yc("0x113")][yc("0xa7")],t),e=!0)}return e}_recordAttributeChanges(t){this[yc("0x71")],this[yc("0x4f")]=!0,t()}_isRegisteredAttribute(t){const e=this[yc("0x159")](t),n=this[yc("0xc3")][yc("0x10d")](t);return e||n}[yc("0x1f")](t,e){if(0==e[yc("0x163")])return!1;let n=!1;for(const r of e){const e=this[yc("0x8f")](r[yc("0xa0")],yc("0x162"))[yc("0x14c")]((t=>!t[yc("0x1c")][yc("0x7e")]))[yc("0xa6")]((t=>t.suggestion)),i=(0,o.hashObject)({newValue:r[yc("0x120")]});e[yc("0x14c")]((t=>{const[e,n]=t[yc("0x45")].split("|");return e==r[yc("0x73")]&&n!=i}))[yc("0x130")]((e=>{this[yc("0x160")](e,r[yc("0xa0")],t),n=!0}))}return n}[yc("0x160")](t,e,n){const r=t[yc("0x15")]()[yc("0x144")](e);0!==r[yc("0x163")]?1!==r.length?this[yc("0xa4")](t,e[yc("0xf7")],e.end):this[yc("0x104")](t,r[0]):n[yc("0x16c")](t[yc("0x1e")]())}}class kc{constructor(t){this[yc("0x14d")]=t,this._model=t[yc("0xf0")],this[yc("0x17f")]=new Map,this._defaultCallbacks=new Map,this[yc("0xbd")]()}[yc("0xe3")](t,e,n,r,i,o){return new Yr(this[yc("0x13")],{type:t,subType:e,id:n,author:r,creator:r,attributes:i,onAttributesChange:o,onAccept:(...n)=>this[yc("0x134")](t,e,yc("0x103"))(...n),onDiscard:(...n)=>this[yc("0x134")](t,e,yc("0x117"))(...n)})}registerCustomCallback(t,e,n,r){const i=t+":"+e+":"+n;this[yc("0x17f")][yc("0xbc")](i,r)}[yc("0x134")](t,e,n){const r=t+":"+e+":"+n;return this[yc("0x17f")][yc("0x135")](r)||this[yc("0xdf")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t.sort(((t,e)=>t[yc("0xf7")].isBefore(e[yc("0xf7")])?1:-1)),this[yc("0x13")].change((e=>{for(const n of t){let t;t=n.end[yc("0xb4")]&&n.end[yc("0xf5")]==n[yc("0xf7")].nodeAfter?e[yc("0x59")](n[yc("0xf7")][yc("0x2a")],"on"):e[yc("0x59")](n),this[yc("0x13")][yc("0xe7")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model.change((n=>{const{commandName:r,commandParams:i=[]}=e,o=t[yc("0xa6")]((t=>(Rc(t)&&(t=this[yc("0x13")][yc("0x38")](t[yc("0x179")])),t)))[yc("0x14c")]((t=>yc("0x136")!==t[yc("0x12c")].rootName));if(o.length<1)return;const x=Array[yc("0xd4")](this[yc("0x13")][yc("0xf9")][yc("0xd7")][yc("0x111")]())[yc("0xa6")]((t=>s.LiveRange[yc("0xef")](t)));n[yc("0x5a")](o);for(const t of this[yc("0x14d")][yc("0xfb")][yc("0xfb")]())t[yc("0x8e")]();i[yc("0x126")]({forceDefaultExecution:!0}),this._editor[yc("0x3f")](r,...i);const a=x[yc("0x14c")]((t=>"$graveyard"!=t[yc("0x12c")].rootName));a[yc("0x163")]>0&&n[yc("0x5a")](a);for(const t of x)t.detach()}))},r=(t,e)=>1==t[yc("0x163")]&&1==e[yc("0x163")]&&t[0][yc("0x179")][yc("0x129")](e[0][yc("0xf7")]),i=(t,e,n,r)=>wc(t,e,n,r,this._model)?[t,e]:wc(e,t,r,n,this._model)?[e,t]:null;this[yc("0xdf")].set(yc("0x5f"),t),this._defaultCallbacks.set(yc("0x153"),e),this._defaultCallbacks[yc("0xbc")](yc("0xb2"),r),this[yc("0xdf")][yc("0xbc")](yc("0xeb"),i),this[yc("0xdf")][yc("0xbc")]("deletion:accept",e),this[yc("0xdf")][yc("0xbc")](yc("0x173"),t),this[yc("0xdf")].set("deletion:join",r),this[yc("0xdf")].set(yc("0x105"),i),this[yc("0xdf")].set(yc("0x34"),n),this[yc("0xdf")][yc("0xbc")](yc("0x4a"),t),this[yc("0xdf")].set(yc("0x142"),r),this[yc("0xdf")][yc("0xbc")](yc("0xb8"),t),this[yc("0xdf")].set("formatBlock:accept",n),this[yc("0xdf")][yc("0xbc")](yc("0xc4"),t),this[yc("0xdf")][yc("0xbc")](yc("0xf3"),r),this[yc("0xdf")].set(yc("0x3c"),t),this[yc("0xdf")].set("attribute:accept",t),this[yc("0xdf")][yc("0xbc")]("attribute:discard",((t,e)=>{if(!e)return;const n=this[yc("0x14d")].plugins[yc("0x135")](Ac);this[yc("0x13")][yc("0x43")]((r=>{if(yc("0x8a")==e[yc("0x73")])for(const n of t){const t=n.start[yc("0x2a")],i=e.oldValue;r.rename(t,i)}else if(n[yc("0x159")](e[yc("0x73")]))for(const n of t)void 0!==e[yc("0x154")]?r[yc("0xb1")](e[yc("0x73")],e[yc("0x154")],n.start[yc("0x2a")]):r[yc("0xe4")](e[yc("0x73")],n[yc("0xf7")][yc("0x2a")]);else for(const n of t)e.oldValue?r.setAttribute(e.key,e.oldValue,n):r[yc("0xe4")](e[yc("0x73")],n)}))})),this[yc("0xdf")].set(yc("0xf"),r)}}function Ic(t,e,n){for(const r of e.parent[yc("0x14f")]({includeSelf:!0,parentFirst:!0})){if(r[yc("0x12c")]==r)return!1;if(!n[yc("0x17")](r))return!1;if(t.isObject(r)||t[yc("0x145")](r))return!0}return!1}function Rc(t){return t.end[yc("0xf5")]==t[yc("0xf7")][yc("0x2a")]&&t[yc("0x179")].isAtStart}function Sc(t,e,n,r){const i=t=>!t[yc("0x149")].is("$textProxy")&&!r[yc("0x13e")](t[yc("0x149")]),o=t[yc("0xf7")][yc("0x4d")](i),s=t[yc("0x179")][yc("0x4d")](i,{direction:"backward"});return!(t[yc("0xf7")][yc("0x129")](o)&&t.end[yc("0x129")](s)||(o[yc("0x15d")](s)?n[yc("0xdc")](e,{range:n[yc("0x38")](o,s)}):n.removeMarker(e),0))}function vc(t){return(0,o.hashObject)(t)}function Nc(t){const e=t.start[yc("0x2a")];return e&&e.is(yc("0x143"))}function Lc(t,e){return null==t[yc("0x179")].nodeBefore&&t[yc("0x179")][yc("0xf5")]==t[yc("0xf7")][yc("0x2a")]?Mc(t.start[yc("0x2a")],e):t}function Mc(t,e){const n=e.schema.isObject(t)||e[yc("0xba")][yc("0x8c")](t);return e.createRange(e[yc("0x6e")](t,yc("0x77")),n?e[yc("0xd3")](t):e[yc("0x6e")](t,yc("0x179")))}function wc(t,e,n,r,i){if(!Oc(t,e))return!1;if(n[yc("0x179")][yc("0x129")](r[yc("0xf7")]))return!0;if(t[yc("0x4b")]!=e[yc("0x4b")])return!1;if(!n[yc("0x179")][yc("0x81")](r[yc("0xf7")]))return!1;const o=i[yc("0x38")](n[yc("0x179")],r[yc("0xf7")])[yc("0x1")]();for(const t of o)if([yc("0xa5"),yc("0xb9")][yc("0x140")](t[yc("0x4b")])&&i.schema[yc("0x145")](t[yc("0x149")]))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0x12d")]||!e[yc("0x12d")])&&jr(bc(t.attributes,n),bc(e[yc("0x5b")],n))}function Fc(t,e){const n=Dc(t[yc("0x5b")]),r=Dc(e);if(!t._isDataLoaded)return!1;for(const t of Object[yc("0x172")](r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object[yc("0xb7")]({},t);return delete e.skipNestingCheck,delete e.tablePasteChainId,e}const Bc=["isEnabled","plugins","acceptSuggestion","locale","commands","discardSuggestion","execute","_pendingAction","listenTo","_editor","PendingActions","getRanges","PENDING_ACTION_SUGGESTION","_acceptCommand","canEditAt","_discardCommand","destroy","add","unbind","model","remove","stopListening","canDiscard","_removePendingAction","change:isDirty","commentThreadController","isDirty","bind","canAccept","_setPendingAction","get","view"];var Pc,Uc;Pc=Bc,Uc=286,function(t){for(;--t;)Pc.push(Pc.shift())}(++Uc);const jc=function(t,e){return Bc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[jc("0x15")]=e,this[jc("0x1")]=n,this[jc("0x1b")]=r,this[jc("0xb")]=t,this[jc("0xf")]=t.commands[jc("0x0")](jc("0x4")),this._discardCommand=t[jc("0x6")][jc("0x0")](jc("0x7")),this.view[jc("0x1d")]("isEnabled").to(this[jc("0xf")],this[jc("0x11")],((t,e)=>t||e)),this.view[jc("0x1d")](jc("0x1e")).to(this._acceptCommand,jc("0x2"),(t=>t&&this[jc("0xb")].model[jc("0x10")](e[jc("0xd")]()))),this[jc("0x1")][jc("0x1d")](jc("0x18")).to(this[jc("0x11")],jc("0x2"),(t=>t&&this[jc("0xb")][jc("0x15")][jc("0x10")](e[jc("0xd")]()))),this[jc("0x9")]=null,n[jc("0x1c")]&&this[jc("0x1f")](),this[jc("0xa")](n,jc("0x4"),(()=>this.acceptSuggestion())),this[jc("0xa")](n,"discardSuggestion",(()=>this[jc("0x7")]())),this.listenTo(n,jc("0x1a"),(()=>{n.isDirty?this[jc("0x1f")]():this._removePendingAction()}))}acceptSuggestion(){this[jc("0xf")][jc("0x8")](this[jc("0x15")].id)}[jc("0x7")](){this[jc("0x11")].execute(this[jc("0x15")].id)}[jc("0x12")](){this[jc("0x1")][jc("0x14")](jc("0x2")),this[jc("0x1")][jc("0x14")](jc("0x1e")),this[jc("0x1")][jc("0x14")]("canDiscard"),this[jc("0x17")](),this[jc("0x1b")][jc("0x12")](),this[jc("0x9")]&&this._removePendingAction()}[jc("0x1f")](){const t=Jr(this[jc("0xb")][jc("0x5")],jc("0xe"));this._pendingAction=this[jc("0xb")].plugins[jc("0x0")]("PendingActions")[jc("0x13")](t)}[jc("0x19")](){null!==this[jc("0x9")]&&this[jc("0xb")][jc("0x3")][jc("0x0")](jc("0xc"))[jc("0x16")](this._pendingAction),this._pendingAction=null}}const Vc=["length","setData","editor","commentsListView","commentThreadInputView","_localUser","element","set","canAccept","editorConfig","addComment","focus","isEnabled","isDirty","authoredAt","updateComment","descriptionParts","removeComment","locale","assign","hasDirtyComment","value","bind","commentInputView","destroy","isActive","delegate","_config","_createCommentViews","_createCommentThreadInputView","fire","_model"];var Hc,zc;Hc=Vc,zc=225,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends i.View{constructor(t,e,n,r){super(t),this[Wc("0x2")]=null,this.commentThreadInputView=null,this.set(Wc("0x18"),!1),this.set(Wc("0xd"),e[Wc("0xd")]),this.bind("authoredAt").to(e),this.set(Wc("0xf"),[]),this.set(Wc("0xc"),!1),this[Wc("0x6")](Wc("0xb"),!1),this[Wc("0x6")](Wc("0x7"),!1),this.set("canDiscard",!1),this[Wc("0x1e")]=e,this[Wc("0x4")]=n,this[Wc("0x1a")]=r,r.disableComments?this[Wc("0x6")](Wc("0x1f"),1):this[Wc("0x1b")]()}[Wc("0xa")](){this[Wc("0x5")][Wc("0xa")]()}[Wc("0x17")](){this.commentsListView&&this[Wc("0x2")][Wc("0x17")](),this.commentThreadInputView&&this.commentThreadInputView[Wc("0x17")](),super.destroy()}[Wc("0x1b")](){const{CommentsListView:t}=this[Wc("0x1a")];this.commentsListView=new t(this[Wc("0x11")],this[Wc("0x1e")].commentThread,Object[Wc("0x12")]({CommentView:this._config.CommentView},this[Wc("0x1a")])),this[Wc("0x2")][Wc("0x19")](Wc("0x10")).to(this),this[Wc("0x2")][Wc("0x19")](Wc("0xe")).to(this),this[Wc("0x2")][Wc("0x15")](Wc("0x18")).to(this),this[Wc("0x6")](Wc("0x1f"),this[Wc("0x2")][Wc("0x1f")]+1),this[Wc("0x15")]("length").to(this.commentsListView,"length",(t=>t+1)),this[Wc("0x3")]=this[Wc("0x1c")](),this.on(Wc("0x10"),(()=>this[Wc("0xa")]())),this[Wc("0x15")](Wc("0xc")).to(this[Wc("0x2")],Wc("0x13"),this[Wc("0x3")][Wc("0x16")],"value",((t,e)=>t||!!e))}[Wc("0x1c")](){const{CommentThreadInputView:t}=this[Wc("0x1a")],e=new t(this[Wc("0x11")],this[Wc("0x4")],this[Wc("0x1a")][Wc("0x8")]),n=e[Wc("0x16")];return e[Wc("0x15")]("showInput").to(this,"isActive",this[Wc("0x1e")].commentThread,"isReadOnly",n,Wc("0x14"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Wc("0x1d")](Wc("0x9"),e),n[Wc("0x1")][Wc("0x0")]("")})),n.on("cancel",(()=>this[Wc("0xa")]())),n[Wc("0x15")]("disabledSubmit").to(this[Wc("0x1e")].commentThread,"isReadOnly"),e}}const qc=["change:description","fire",'<span class="ck-suggestion-type">',"span","map","getExternalSuggestionNote","ck-suggestion","descriptionParts","_model","acceptButton","type","ck-annotation__main","</p>","ck-comment__external","userView","ck-suggestion-","Discard suggestion","time","ck-annotation__info-name","delegate","EXTERNAL_IMPORT_WORD_AVATAR","@external","ck-annotation","source","ck-suggestion-wrapper--active","ck-annotation__actions","attributes","commentThreadInputView","ck-suggestion__info","getUserViewNotificationText","Accept suggestion","canAccept","authoredAt","ck-annotation__info-time","ck-suggestion--disabled-comments","editorReady","render","innerText","push",'"></span>',"_config","commentsListView","createElement","div","ck-annotation__user","extendTemplate","isExternal","locale","EXTERNAL_AVATAR","name","importWord","isEnabled","setTemplate","<p>","check",'<span class="ck-suggestion-color" style="background-color: ',"discardButton","isActive","_descriptionElement","disableComments","execute","ck-suggestion__info-name","_createButton","author","cancel","</span>","ck-suggestion--accept",".ck-annotation__content-wrapper","creator","formatDateTime","EXTERNAL_SUGGESTION","bindTemplate","discardSuggestion","bind","innerHTML","getTemplate",'" title="',"ck-suggestion-wrapper","description","commentThread","set","children"];var $c,Xc;$c=qc,Xc=245,function(t){for(;--t;)$c.push($c.shift())}(++Xc);const Zc=function(t,e){return qc[t-=0]};class Yc extends Kc{constructor(e,n,r,i){super(e,n,r,i),this[Zc("0x51")](Zc("0xb"),""),this[Zc("0x4a")](Zc("0xb")).to(this,Zc("0x8"),(t=>t&&t[0]?t[0].type:"")),this[Zc("0x4a")](Zc("0x4f")).to(this,Zc("0x8"),this,Zc("0x3a"),((t,e)=>{let n="";for(const e of t)n+=Zc("0x36")+Jc(e.content,e.color)+Zc("0xd");return e?n:(0,o.trimHtml)(n,{limit:140})})),this[Zc("0x3b")]=null,this[Zc("0xa")]=this[Zc("0x3f")](Jr(e,Zc("0x1f")),t.icons[Zc("0x37")],Zc("0x43"),"acceptSuggestion","sw"),this[Zc("0xa")][Zc("0x4a")](Zc("0x34")).to(this,Zc("0x20")),this[Zc("0x39")]=this[Zc("0x3f")](Jr(e,Zc("0x11")),t.icons[Zc("0x41")],"ck-suggestion--discard",Zc("0x49"),"sw"),this[Zc("0x39")][Zc("0x4a")](Zc("0x34")).to(this,"canDiscard"),this.userView=new o.UserView(e,this._model[Zc("0x40")],this.getUserViewNotificationText()),this[Zc("0xf")][Zc("0x2e")]({attributes:{class:["ck-suggestion__user",Zc("0x2d")]}}),this[Zc("0x35")](this[Zc("0x4c")]())}[Zc("0x4c")](){const t=this[Zc("0x48")],e=[{tag:"div",attributes:{class:[Zc("0x1d"),"ck-annotation__info"]},children:[{tag:Zc("0x4"),children:[{text:this[Zc("0xf")][Zc("0x32")]}],attributes:{class:[Zc("0x3e"),Zc("0x13")]}},{tag:Zc("0x12"),attributes:{datetime:t.to(Zc("0x21")),class:["ck-comment__info-time",Zc("0x22")]},children:[{text:t.to(Zc("0x21"),(t=>this[Zc("0x29")][Zc("0x46")](t)))}]}]},{tag:"div",attributes:{class:["ck-suggestion__actions",Zc("0x1a")]},children:[this[Zc("0xa")],this[Zc("0x39")]]},{tag:Zc("0x2c"),attributes:{class:["ck-annotation__content-wrapper"]}}];this._model[Zc("0x2f")]&&e[Zc("0x27")]({tag:Zc("0x2c"),attributes:{class:[Zc("0xe")]},children:[{text:this[Zc("0x6")]()}]});const n={tag:Zc("0x2c"),attributes:{class:[Zc("0x4e"),t.if("isActive",Zc("0x19")),t.to(Zc("0xb"),(t=>Zc("0x10")+t)),this[Zc("0x29")][Zc("0x3c")]&&Zc("0x23")],"data-suggestion-id":this[Zc("0x9")].id,"data-thread-id":this._model[Zc("0x50")].id,"data-author-id":this[Zc("0x9")].author.id,tabindex:-1},children:[{tag:Zc("0x2c"),attributes:{class:[Zc("0x7"),Zc("0x17")]},children:[this[Zc("0xf")],{tag:Zc("0x2c"),attributes:{class:["ck-suggestion__main",Zc("0xc")]},children:e}]}]};return this[Zc("0x2a")]&&this[Zc("0x1c")]&&(n[Zc("0x0")].push(this[Zc("0x2a")],this[Zc("0x1c")]),this.commentsListView.delegate(Zc("0x24")).to(this),this.commentsListView[Zc("0x14")]("editorDestroyed").to(this),this[Zc("0x1c")].delegate(Zc("0x24")).to(this),this[Zc("0x1c")][Zc("0x14")]("editorDestroyed").to(this)),n}[Zc("0x25")](){super[Zc("0x25")](),this[Zc("0x3b")]=this.element.querySelector(Zc("0x44")),this[Zc("0x3b")][Zc("0x4b")]=this[Zc("0x4f")],this.on(Zc("0x1"),((t,e,n)=>{this[Zc("0x3b")].innerHTML=n}))}[Zc("0x3f")](t,e,n,r,o){const s=new i.ButtonView(this.locale);return s[Zc("0x51")]({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Zc("0x2e")]({attributes:{class:n}}),s.on(Zc("0x3d"),(()=>{this[Zc("0x2")](r,this[Zc("0x9")].id)})),s}[Zc("0x6")](){return Zc("0x33")===this[Zc("0x9")].attributes[Zc("0x16")][Zc("0x18")]?Jr(this[Zc("0x30")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Jr(this[Zc("0x30")],Zc("0x47"))}[Zc("0x1e")](){return this._model[Zc("0x2f")]?Zc("0x33")===this._model[Zc("0x1b")][Zc("0x16")].source?Jr(this[Zc("0x30")],Zc("0x15"),this[Zc("0x9")][Zc("0x45")][Zc("0x32")]):Jr(this[Zc("0x30")],Zc("0x31"),this._model[Zc("0x45")][Zc("0x32")]):null}}function Jc(t,e){let n="";return n+=t.split("*")[Zc("0x5")](((t,e)=>e%2!=0?Zc("0x3")+Qc(t)+Zc("0x42"):Qc(t))).join(""),e&&(n+=Zc("0x38")+e.value+Zc("0x4d")+e.title+Zc("0x28")),n}function Qc(t){const e=document[Zc("0x2b")]("span");return e[Zc("0x26")]=t,e[Zc("0x4b")]}const tl=["from","change:previous","toMany","listenTo","isInContent","Annotations","acceptButton","Accept all suggestions","stopListening","focus","comments.maxCommentCharsWhenCollapsed","_handleControllerBuffer","_suggestionToController","size","commandName","comments.editorConfig","view","actionView","addComment","filter","hasSuggestion","unbind","createAnnotation","comments","commands","_createUIButton","editing","suggestionChanged","Discard all suggestions","bind","define","pluginName","getFirstRange","separator","model","value","discardButton","_destroyController","_annotationViews","getAllAdjacentSuggestions","has","CommentsRepository","head","length","isOn","_viewToController","switchbutton","change:activeAnnotations","getDescriptions","descriptionParts","getMarkerNames","suggestionUnloaded","map","requires","some","Discard all selected suggestions","button","suggestion-","clear","get","suggestionLoaded","type","isEnabled","SuggestionThreadView","getMarkers","add","destroy","_updateController","isMultiRange","arrowView","_refreshActiveMarkers","commentThread","_initializeController","Track changes","_handleSuggestionControllerDelayed","discardSelectedSuggestions","values","CommentView","keys","trackChanges.disableComments","createCommentThreadController","buttonView","Accept all selected suggestions","innerView","CommentsUI","trackChanges.SuggestionThreadView","getSuggestion","locale","createAnnotationView","TrackChangesEditing","mainView","config","_descriptionFactory","comments.maxCommentsWhenCollapsed","_disableComments","plugins","editor","delete","push","EditorAnnotations","refreshSelectedViews","trackChanges","set","getRanges","execute","acceptSelectedSuggestions"];var el,nl;el=tl,nl=380,function(t){for(;--t;)el.push(el.shift())}(++nl);const rl=function(t,e){return tl[t-=0]};class il extends t.Plugin{static get[rl("0x61")](){return[Ac,o.Users,rl("0x55"),rl("0x31"),rl("0x25")]}static get[rl("0x4b")](){return"TrackChangesUI"}constructor(t){super(t),this[rl("0x38")]=new Map,this._viewToController=new Map,this[rl("0x52")]=new Map,this[rl("0x37")]=new Map;const e=this[rl("0x22")][rl("0x1d")];e[rl("0x4a")](rl("0x17"),Yc),e.define(rl("0x11"),!1),this[rl("0x20")]=e[rl("0x67")](rl("0x11"))}[rl("0xc")](t,e){0===this[rl("0x37")][rl("0x39")]&&setTimeout((()=>{for(const[t,e]of this[rl("0x37")]){const n=this[rl("0x38")][rl("0x54")](t);n||e?n&&e&&this[rl("0x51")](t):this._initializeController(t)}this._handleControllerBuffer[rl("0x66")](),this[rl("0x22")][rl("0x21")].get(rl("0x25"))[rl("0x26")](),this[rl("0x8")]()}),10),this[rl("0x37")].set(t,e)}init(){const t=this[rl("0x22")],e=t[rl("0x21")].get("TrackChangesEditing"),n=t[rl("0x21")][rl("0x67")](rl("0x31")),r=t[rl("0x21")][rl("0x67")](rl("0x25")),i=t[rl("0x21")].get(rl("0x55"));t.ui.componentFactory[rl("0x3")]("trackChanges",(t=>this._createUIButton(t))),r.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[rl("0x2c")](this[rl("0x38")])){const r=e[rl("0x53")](),i=[];for(const t of r){if(!t[rl("0x30")])continue;if(t[rl("0x6")]){i[rl("0x24")](...t[rl("0x29")]());continue}const e=t[rl("0x4c")]();if(i[rl("0x57")]>0){const t=i[0].getJoined(e);if(t){i[0]=t;continue}}i[rl("0x24")](e)}t[rl("0x24")]([n[rl("0x3c")],i])}return t})),this[rl("0x2f")](e,rl("0x68"),((t,e)=>{this[rl("0x2f")](e,"change:previous",((t,n,r,i)=>{e.isInContent&&(null==r?(this._updateController(i.head),this[rl("0xc")](e,!1)):(this._updateController(r[rl("0x56")]),null==i&&this[rl("0xc")](e,!0)))})),null!==e.previous?this[rl("0x5")](e[rl("0x56")]):this[rl("0xc")](e,!1)})),this[rl("0x2f")](e,rl("0x5f"),((t,e,n)=>{this[rl("0x34")](e,rl("0x2d")),this[rl("0x37")][rl("0x23")](e),this[rl("0x38")][rl("0x54")](e)&&this[rl("0x51")](e),n&&this[rl("0x5")](n[rl("0x56")])})),this[rl("0x2f")](e,rl("0x47"),((t,e)=>{this._updateController(e)})),this[rl("0x2f")](n,rl("0x5b"),(()=>{this[rl("0x8")]()})),this.listenTo(i,rl("0x3e"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e[rl("0x40")](n))return;const i=e[rl("0x18")](n);this[rl("0x38")][rl("0x67")](i)[rl("0x3c")][rl("0x35")]()}),{priority:"lowest"})}[rl("0x8")](){const t=this[rl("0x22")][rl("0x21")][rl("0x67")](rl("0x31")),e=this.editor.plugins[rl("0x67")](rl("0x1b")),n=Array[rl("0x2c")](t.activeAnnotations,(t=>t[rl("0x15")])).filter((t=>this._viewToController[rl("0x54")](t))),r=[];for(const t of n){const e=this[rl("0x59")][rl("0x67")](t).model[rl("0x53")]();r[rl("0x24")](...e.reduce(((t,e)=>[...t,...e[rl("0x5e")]()]),[]))}e.activeMarkers=r}[rl("0x45")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),r=this[rl("0x22")][rl("0x44")][rl("0x67")](rl("0x27")),o=Jr(t,rl("0xb"));n.buttonView[rl("0x28")]({tooltip:o,label:o,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-2024, 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[rl("0x13")].bind(rl("0x58")).to(r,rl("0x4f")),n.buttonView.on("execute",(()=>{r[rl("0x2a")](),this.editor.editing[rl("0x3c")].focus()}));const s=new e.Collection,x=[{type:rl("0x5a"),model:{withText:!0,label:o,commandName:rl("0x27")}},{type:"separator"},{type:rl("0x64"),model:{withText:!0,label:Jr(t,rl("0x33")),commandName:"acceptAllSuggestions"}},{type:rl("0x64"),model:{withText:!0,label:Jr(t,rl("0x14")),commandName:rl("0x2b")}},{type:rl("0x64"),model:{withText:!0,label:Jr(t,rl("0x48")),commandName:"discardAllSuggestions"}},{type:rl("0x64"),model:{withText:!0,label:Jr(t,rl("0x63")),commandName:rl("0xd")}}];for(const t of x){let e={type:rl("0x4d")};if(t[rl("0x4e")]){const n=new i.ViewModel(t.model),r=this.editor[rl("0x44")].get(n[rl("0x3a")]);n[rl("0x49")](rl("0x58"),"isEnabled").to(r,rl("0x4f"),rl("0x0")),e={type:t.type,model:n}}s[rl("0x3")](e)}(0,i.addListToDropdown)(n,s);const a=x[rl("0x3f")]((t=>null!=t.model))[rl("0x60")]((t=>this.editor[rl("0x44")][rl("0x67")](t[rl("0x4e")][rl("0x3a")]))),c=n.buttonView;return c.actionView[rl("0x41")](rl("0x0")),c[rl("0x7")].unbind(rl("0x0")),c[rl("0x3d")][rl("0x49")](rl("0x0")).to(r,rl("0x0")),c[rl("0x7")][rl("0x49")]("isEnabled")[rl("0x2e")](a,rl("0x0"),((...t)=>t[rl("0x62")]((t=>t)))),n.on(rl("0x2a"),(t=>{this[rl("0x22")][rl("0x2a")](t.source[rl("0x3a")]),this[rl("0x22")][rl("0x46")][rl("0x3c")].focus()})),n}[rl("0xa")](t){const e=this[rl("0x22")],n=e[rl("0x1d")],r=e[rl("0x21")][rl("0x67")]("Annotations"),i=e[rl("0x21")][rl("0x67")](rl("0x55")),s=e.plugins[rl("0x67")]("EditorAnnotations"),x=e.plugins[rl("0x67")](o.Users).me,a=n[rl("0x67")](rl("0x27"))[rl("0x1")],{CommentsListView:c,CommentThreadInputView:l}=e[rl("0x21")][rl("0x67")](rl("0x16"));let u,d;this._annotationViews[rl("0x54")](t.id)?(d=this[rl("0x52")].get(t.id),u=d[rl("0x1c")]):(u=new a(e[rl("0x19")],t,x,{disableComments:this[rl("0x20")],editorConfig:n.get(rl("0x3b")),maxCommentsWhenCollapsed:n[rl("0x67")](rl("0x1f")),maxThreadTotalWeight:n[rl("0x67")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[rl("0x67")](rl("0x36")),formatDateTime:(0,o.getDateTimeFormatter)(n.get(rl("0x19"))),CommentView:n[rl("0x67")](rl("0x43"))[rl("0xf")],CommentsListView:c,CommentThreadInputView:l}),u[rl("0x32")].on("execute",(()=>{e.editing[rl("0x3c")][rl("0x35")]()})),u[rl("0x50")].on(rl("0x2a"),(()=>{e.editing[rl("0x3c")][rl("0x35")]()})),d=r[rl("0x1a")](this.editor.locale,u),d.bind("isDirty").to(u,"isDirty"),d[rl("0x49")](rl("0x57")).to(u),d.bind(rl("0x69")).to(u,rl("0x69"),(t=>rl("0x65")+t)),this[rl("0x52")].set(t.id,d));const g=i[rl("0x12")](t[rl("0x9")],u),f=new Gc(e,t,u,g),h=t[rl("0x53")]().filter((t=>t.isInContent));u[rl("0x5d")]=e[rl("0x21")][rl("0x67")](rl("0x1b"))[rl("0x1e")][rl("0x5c")](h),this[rl("0x38")].set(t,f),this._viewToController[rl("0x28")](u,f);const m=r[rl("0x42")]({view:d,target:()=>{const n=[],r=t.getAllAdjacentSuggestions()[rl("0x3f")]((t=>t[rl("0x30")]));for(const t of r)n[rl("0x24")](...t[rl("0x2")]());return(0,o.getAllMarkersDomElementsSorted)(e[rl("0x46")],n)},type:()=>rl("0x65")+f.view[rl("0x69")]});i._bindAnnotationToEditors(u,m),r[rl("0x3")](m),s.registerAnnotation(m)}_destroyController(t){const e=this[rl("0x22")][rl("0x21")][rl("0x67")](rl("0x55")),n=this[rl("0x22")][rl("0x21")].get("Annotations"),r=this._suggestionToController[rl("0x67")](t),i=r[rl("0x3c")],o=n.getByInnerView(i);e._unbindEditors(i),o&&n.remove(o),this[rl("0x38")][rl("0x23")](t),this[rl("0x59")][rl("0x23")](i),r[rl("0x4")]()}[rl("0x5")](t){if(!t[rl("0x30")]||!this[rl("0x38")][rl("0x54")](t))return;const e=this[rl("0x22")][rl("0x21")].get(rl("0x1b")),n=this._suggestionToController[rl("0x67")](t),r=t.getAllAdjacentSuggestions();n[rl("0x3c")][rl("0x5d")]=e._descriptionFactory[rl("0x5c")](r)}[rl("0x4")](){for(const t of this._suggestionToController[rl("0x10")]())this[rl("0x51")](t);for(const t of this._annotationViews[rl("0xe")]())t[rl("0x1c")][rl("0x4")]();super[rl("0x4")]()}}var ol,sl,xl=["editor","pluginName","getSuggestion","addSuggestionData","plugins","getSuggestions","get","adapter","Comments"];ol=xl,sl=181,function(t){for(;--t;)ol.push(ol.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get requires(){return[Ac,il,al("0x7")]}static get[al("0x0")](){return"TrackChanges"}set adapter(t){this[al("0x8")][al("0x3")].get(Ac).adapter=t}get[al("0x6")](){return this[al("0x8")][al("0x3")][al("0x5")](Ac)[al("0x6")]}addSuggestion(t){return this.editor[al("0x3")][al("0x5")](Ac)[al("0x2")](t)}[al("0x4")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x8")][al("0x3")][al("0x5")](Ac)[al("0x4")]({skipNotAttached:t,toJSON:e})}[al("0x1")](t){return this[al("0x8")][al("0x3")][al("0x5")](Ac)[al("0x1")](t)}}const ll=["addUser","result","plugins","requires","div","model","get","config","function","Users","discardAllSuggestions","end","set","document","define","trackChangesData","editor","constructor","TrackChangesDataGetter","getDataWithAcceptedSuggestions","getRootNames","data","execute","getRootsAttributes","push","TrackChangesData","CommentsRepository","trackChangesData.editorCreator","create","Pagination","addSuggestionData","reduce","_adapter","createDocumentFragment","useAnonymousUser","appendChild","TrackChangesEditing","map","getUser","users","init","rootsAttributes","pluginName","editorCreator","name","getDataWithDiscardedSuggestions"];var ul,dl;ul=ll,dl=103,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=[gl("0x12")];class hl extends t.Plugin{static get[gl("0x26")](){return[Ac]}static get[gl("0x1f")](){return gl("0xe")}[gl("0x1d")](){const t=this.editor;if(t[gl("0x2a")][gl("0x3")](gl("0x10"),(e=>{const n=t[gl("0x28")].document[gl("0x9")]()[gl("0x14")](((t,e)=>(t[e]="",t)),{});return t[gl("0x6")][gl("0x11")](n,e)})),gl("0x2b")!=typeof t[gl("0x2a")][gl("0x29")](gl("0x4")).editorCreator)throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[gl("0x8")](t){return bl(this.editor,!0,t)}[gl("0x22")](t){return bl(this[gl("0x5")],!1,t)}}class ml extends t.Plugin{static get[gl("0x1f")](){return gl("0x7")}constructor(t){super(t),this[gl("0x24")]=gl("0x0")}init(){this[gl("0x5")][gl("0x25")][gl("0x29")](gl("0xf"))[gl("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[gl("0x5")].plugins.get("TrackChangesEditing")[gl("0x15")]=null}}function pl(t){return void 0!==t[gl("0xc")]}async function bl(t,e,n){const r=(0,o.sanitizeEditorConfig)(t,fl);r[gl("0x25")][gl("0xd")](Ac,ml),r[gl("0x1e")]=pl(t)?t[gl("0xc")]():void 0;const i=document[gl("0x16")](),s=t.config[gl("0x29")](gl("0x4"))[gl("0x20")],x=await s(r,(()=>function(t){const e=document.createElement(gl("0x27"));return t[gl("0x18")](e),e}(i)));!function(t,e){const n=t[gl("0x28")][gl("0x2")][gl("0x9")]()[gl("0x14")](((e,n)=>(e[n]=t[gl("0xa")].get({rootName:n}),e)),{}),r=t.plugins[gl("0x29")](gl("0x2c"))[gl("0x1c")][gl("0x1a")]((t=>({id:t.id,name:t[gl("0x21")]}))),i=t.plugins.get(gl("0x19")).getSuggestions({skipNotAttached:!0,toJSON:!0}),o=e[gl("0x25")][gl("0x29")](gl("0x2c")),s=e.plugins.get(gl("0x19"));for(const t of r)o[gl("0x1b")](t.id)||o[gl("0x23")](t);o.me||o[gl("0x17")]();for(const t of i)s[gl("0x13")](t);e[gl("0xa")][gl("0x1")](n)}(t,x),x[gl("0xb")](e?"acceptAllSuggestions":gl("0x2d"));const a=pl(x)?x.getFullData(n):x[gl("0xa")].get(n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();