@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230718.0 → 0.0.0-nightly-20230720.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +4 -4
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["value","refresh","commands","TrackChangesCommand","editor","isEnabled","clearForceDisabled","_enabledCommands","_enableCommands","forceDisabled","_isEnabledBasedOnSelection","has","_disableUnsupportedCommands"];var c,l;c=a,l=254,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[d("0x6")]=!1,this.refresh(),this[d("0x3")]=!1}[d("0x7")](){this[d("0xb")]=!0}execute(){this[d("0x6")]=!this[d("0x6")],this[d("0x6")]?this[d("0x5")]():this[d("0x1")]()}_disableUnsupportedCommands(){for(const t of this[d("0xa")].commands[d("0x8")]())t.affectsData&&!this[d("0x0")][d("0x4")](t)&&t[d("0x2")](d("0x9"))}[d("0x1")](){for(const t of this[d("0xa")][d("0x8")][d("0x8")]())t.affectsData&&!this._enabledCommands[d("0x4")](t)&&t[d("0xc")](d("0x9"))}}const g=["get","execute","refresh","editor","acceptSuggestion","plugins","canEditAt","track-changes-accept-suggestion-not-found","_isEnabledBasedOnSelection","_suggestions"];var m,f;m=g,f=414,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x5")]=e,this[h("0x8")](),this[h("0x4")]=!1}[h("0x8")](){this.isEnabled=!0}[h("0x7")](t){const n=this[h("0x5")][h("0x6")](t);if(!n)throw new e.CKEditorError(h("0x3"),this);const o=n.getRanges();this[h("0x9")].model[h("0x2")](o)&&this.editor[h("0x1")][h("0x6")]("TrackChangesEditing")[h("0x0")](n)}}const b=["editor","getRanges","discardSuggestion","_isEnabledBasedOnSelection","refresh","_suggestions","isEnabled","get","TrackChangesEditing","track-changes-discard-suggestion-not-found"];var E,_;E=b,_=330,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x5")]=e,this.refresh(),this[T("0x3")]=!1}[T("0x4")](){this[T("0x6")]=!0}execute(t){const n=this[T("0x5")][T("0x7")](t);if(!n)throw new e.CKEditorError(T("0x9"),this);const o=n[T("0x1")]();this[T("0x0")].model.canEditAt(o)&&this[T("0x0")].plugins.get(T("0x8"))[T("0x2")](n)}}const y=["from","isMultiRange","map","type","next","add","push","getMarkers","isInContent","execute","color","isArray","isObject","createPositionBefore","change","getRange","isCollapsed","createPositionAfter","deletion","isTouching","content","start","join","length"," [color ","createRange","replace","end","splice","createPositionAt"];var k,A;k=y,A=164,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t.sort(((t,e)=>v("0x4")==t[v("0x13")]&&"deletion"!=e.type?-1:v("0x4")!=t[v("0x13")]&&v("0x4")==e[v("0x13")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e.schema;for(;o<t[v("0x9")];){const i=t[o],x=t[o+1];n||(n=e[v("0x1d")](i)),I(e,i,x)||(s[v("0x16")](e[v("0xb")](n,r[v("0x1c")](i)?e.createPositionAfter(i):e[v("0xf")](i,v("0xd")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x3")](e),s=t[v("0x1d")](n);return o[v("0x5")](s)}function L(t,e,n){for(;n[v("0x9")];){const o=n[v("0xe")](0,100);t[v("0x0")]((()=>{for(const t of o)t[v("0x18")]&&e[v("0x19")](t.id)}))}}const N=["canEditAt","isEnabled","values","execute","_isEnabledBasedOnSelection","_command","refresh","from","_suggestions","model","getRanges","editor"];var M,w;M=N,w=319,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xa")]=e,this[O("0x1")]=n,this[O("0xb")](),this[O("0x9")]=!1}refresh(){const t=Array[O("0x0")](this._suggestions.values()).some((t=>t.isInContent));this[O("0x6")]=this._command[O("0x6")]&&t}[O("0x8")](){const t=R(Array[O("0x0")](this[O("0x1")][O("0x7")]()));for(const e of t){const t=e[O("0x3")]();if(!this[O("0x4")][O("0x2")][O("0x5")](t))return}L(this[O("0x4")].model,this[O("0xa")],t)}}const P=["_command","_isEnabledBasedOnSelection","document","editor","canEditAt","size","from","execute","model","_selectedSuggestions","refresh","_suggestions","isEnabled","getRanges"];var D,B;D=P,B=423,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0xb")]=e,this[j("0x8")]=n,this[j("0x6")]=new Set,this.refresh(),this[j("0xc")]=!1}[j("0x7")](){const t=this[j("0x0")][j("0x5")][j("0xd")].selection,e=Array[j("0x3")](this[j("0x8")].values());this[j("0x6")]=function(t,e){const n=Array[v("0x10")](t.getRanges()),o=new Set;for(const s of e)if(s[v("0x18")])for(const e of n)for(const n of s[v("0x17")]()){const r=n[v("0x1")]();(e.isIntersecting(r)||t[v("0x2")]&&!s[v("0x11")]&&s[v("0x14")]&&r[v("0xd")][v("0x5")](e[v("0x7")]))&&o[v("0x15")](s)}return o}(t,e),this[j("0x9")]=this._command[j("0x9")]&&!!this[j("0x6")][j("0x2")]}[j("0x4")](){const t=R(Array.from(this[j("0x6")]));for(const e of t){const t=e[j("0xa")]();if(!this.editor[j("0x5")][j("0x1")](t))return}L(this[j("0x0")][j("0x5")],this[j("0xb")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const X=function(t){return z(this.__data__,t)>-1};const q=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=X,$.prototype.set=q;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const Xt=function(t){return Wt(this,t).has(t)};const qt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=Xt,$t.prototype.set=qt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var Xe="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=Xe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=qe&&qe.exports===Xe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const Xn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var qn=Se&&Se.isSet;const $n=qn?ke(qn):Xn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const Xo=function(t,e){return null==t||Ko(t,e)},qo=["discard","isExternal","onAttributesChange","addMarkerName","_markerNames","commentThread","map","_onAccept","getMarkers","_saved","accept","set","getRanges","getContainedElement","delete","addRange","_onDiscard","next","_onAttributesChange","creator","clear","getRange","addMarker","removeMarkers","filter","onAccept","size","markers","getFirstMarker","add","attributes","getMultiRangeId","removeMarker","head","nodeBefore","@external","createdAt","get","subType","_model","authoredAt","change","push","getMarkerNames","isIntersecting","onDiscard","isInContent","hasComments","type","reduce","length","setAttribute","data","getItems","author","decorate","previous","toJSON","from","getFirstRange"];var $o,Jo;$o=qo,Jo=330,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return qo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x12")]=e.type,this[Qo("0x8")]=e[Qo("0x8")]||null,this[Qo("0x18")]=e.author,this[Qo("0x31")]=e[Qo("0x31")]||e[Qo("0x18")],this[Qo("0x1f")]=Boolean(e.attributes&&e[Qo("0x0")][Qo("0x5")]),this[Qo("0x16")]=null,this._model=t,this[Qo("0x25")]=e[Qo("0x37")],this[Qo("0x2e")]=e[Qo("0xf")],this[Qo("0x30")]=e[Qo("0x20")],this[Qo("0x22")]=new Set,this.createdAt=null,this[Qo("0x29")](Qo("0xa"),null),this.set(Qo("0x0"),e[Qo("0x0")]||{}),this.set("previous",null),this[Qo("0x29")](Qo("0x2f"),null),this[Qo("0x29")](Qo("0x23"),null),this[Qo("0x29")](Qo("0x27"),!1),this[Qo("0x19")](Qo("0x28")),this.decorate(Qo("0x1e"))}get[Qo("0x3")](){let t=this;for(;t[Qo("0x1a")];)t=t[Qo("0x1a")];return t}get[Qo("0x11")](){return!!this.commentThread&&this.commentThread[Qo("0x14")]>0}get isMultiRange(){return 0!=this[Qo("0x22")][Qo("0x38")]&&6==Array[Qo("0x1c")](this._markerNames)[0].split(":")[Qo("0x14")]}get[Qo("0x10")](){return null!==this.getFirstMarker()}[Qo("0x21")](t){this[Qo("0x22")][Qo("0x3b")](t)}[Qo("0xd")](){return Array[Qo("0x1c")](this[Qo("0x22")])}getMarkers(){return this.getMarkerNames()[Qo("0x24")]((t=>this[Qo("0x9")][Qo("0x39")][Qo("0x7")](t)))[Qo("0x36")]((t=>t))}[Qo("0x3a")](){return this.getMarkers()[0]||null}removeMarkers(){this._model[Qo("0xb")]((t=>{for(const e of this[Qo("0x26")]())t[Qo("0x2")](e)})),this[Qo("0x22")][Qo("0x32")]()}[Qo("0x2")](t){this[Qo("0x9")].change((e=>{e.removeMarker(t)})),this._markerNames[Qo("0x2c")](t)}[Qo("0x2d")](t){const e="suggestion:"+this[Qo("0x12")]+":"+this[Qo("0x8")]+":"+this.id+":"+this[Qo("0x31")].id+":"+Zo[Qo("0x1")]();this[Qo("0x21")](e),this[Qo("0x9")].change((n=>{n[Qo("0x34")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x2a")]())if(e[Qo("0xe")](t))return!0;return!1}[Qo("0x2a")](){return this[Qo("0x26")]()[Qo("0x24")]((t=>t[Qo("0x33")]()))}[Qo("0x17")](){return this[Qo("0x2a")]()[Qo("0x13")](((t,e)=>[...t,...e[Qo("0x17")]()]),[])}[Qo("0x1d")](){var t;return(null===(t=this[Qo("0x3a")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x2b")](){const t=this[Qo("0x2a")]();if(1!=t[Qo("0x14")])return null;const e=t[0],n=e.start.nodeAfter,o=e.end[Qo("0x4")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x28")](){this[Qo("0x25")](this.getRanges(),this.data,this[Qo("0x0")]),this[Qo("0x35")]()}[Qo("0x1e")](){this._onDiscard(this[Qo("0x2a")](),this.data,this[Qo("0x0")]),this.removeMarkers()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x3")];for(;e;)t[Qo("0xc")](e),e=e[Qo("0x2f")];return t}[Qo("0x15")](t,e){const n=eo(this[Qo("0x0")]);_o(n,t,e),Go(n,this[Qo("0x0")])||(this[Qo("0x0")]=n,this[Qo("0x30")](n))}removeAttribute(t){const e=eo(this[Qo("0x0")]);Xo(e,t),Go(e,this.attributes)||(this[Qo("0x0")]=e,this[Qo("0x30")](this[Qo("0x0")]))}[Qo("0x1b")](){return{id:this.id,type:this[Qo("0x8")]?this[Qo("0x12")]+":"+this.subType:this[Qo("0x12")],authorId:this[Qo("0x31")].id,createdAt:this[Qo("0x6")],hasComments:this[Qo("0x11")],data:this[Qo("0x16")],attributes:this[Qo("0x0")]}}static[Qo("0x1")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["*Insert:* %0","$textProxy","isEmpty","normal","end","set","item","data","getWalker","length","matchingCallback","element","deletion","add","push","previousSibling","addEmptyContainer","label","insertion","text","getDescriptions","elementEnd","_customCallbacks","removeObject","name","registerElementLabel","nextSibling","*Remove:* %0","Object","ELEMENT_SPACE","_locale","registerDescriptionCallback","quantity","elementStart","type","Container","_resolveDescriptionItems","EmptyContainer","pop","addObject","*Split:* %0","_schema","_itemLabels","getItemLabel","addContainer","getFirstRange","_itemLabelsCallbacks","isObject","$1 $2","replace","_addDescriptionItems","remove","indexOf","removeEmptyContainer","match"];var es,ns;es=ts,ns=247,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x32")]=[],this[os("0xf")]=new Map,this[os("0x13")]=[],this[os("0xe")]=t,this[os("0x3")]=e}[os("0x30")](t){const e=[];for(let n=0;n<t[os("0x25")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0x32")]){const n=t(o);if(n){os("0x7")in n&&e[os("0x2a")](n),s=!0;break}}if(!s){this[os("0x17")](e,o);const s=t[n+1];if(s&&!o[os("0x12")]()[os("0x20")].isEqual(s[os("0x12")]().start)){const t=e[e[os("0x25")]-1],n=os("0x2e")==o[os("0x7")]?os("0x29"):os("0x18");t&&os("0x2f")==t.type&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x4")](t){this[os("0x32")].push(t)}[os("0x35")](t,n,o=e.priorities[os("0x1f")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[os("0x13")],{matchingCallback:t,label:n,priority:o}):this[os("0xf")][os("0x21")](t,n)}[os("0x10")](t,e=1){let n;for(const e of this[os("0x13")])if(e[os("0x26")](t)){n=e[os("0x2d")];break}return n||(n=this[os("0xf")].get(t[os("0x34")])),n?n(e):1!==e?e+" "+t[os("0x34")]+"s":""+t[os("0x34")]}[os("0x17")](t,e){const n=e.getFirstRange()[os("0x24")](),o=os("0x2e")==e[os("0x7")]?"add":os("0x18");for(const e of n){const s=e[os("0x22")],r=t[t.length-1];if(s.is(os("0x1d")))r&&r.type.indexOf(os("0x8"))>-1&&t.pop(),r&&os("0x2f")==r[os("0x7")]?r[o]+=s.data:t[os("0x2a")]({type:os("0x2f"),add:"add"==o?s[os("0x23")]:"",remove:os("0x18")==o?s[os("0x23")]:""});else if(this._schema.isObject(s)){const i=s;if(r&&r.type[os("0x19")](os("0x8"))>-1&&t[os("0xb")](),os("0x31")==e[os("0x7")])continue;r&&r[os("0x7")]==o+os("0x1")&&r[os("0x27")][os("0x34")]==i[os("0x34")]?r[os("0x5")]++:t[os("0x2a")]({type:o+os("0x1"),element:i,quantity:1}),n.skip((t=>!("elementEnd"==t[os("0x7")]&&t[os("0x22")]==s)))}else if(this._schema.checkChild(s,"$text")||s.is(os("0x27"),"softBreak")){const n=s;if(os("0x29")==o&&os("0x6")==e[os("0x7")]||"remove"==o&&os("0x31")==e[os("0x7")])continue;if(r&&-1==r[os("0x7")][os("0x19")](os("0x8"))){"text"==r[os("0x7")]&&(r[o]+="\n");continue}let i;if(i=os("0x29")==o?n.nextSibling&&!this[os("0xe")][os("0x14")](n.nextSibling)?n[os("0x36")]:null:n.previousSibling&&!this._schema[os("0x14")](n[os("0x2b")])?n[os("0x2b")]:null,n[os("0x1e")]||i&&i[os("0x1e")]){const e=i&&i.isEmpty?i:n;r&&r[os("0x7")]==o+os("0xa")&&r[os("0x27")].name==e[os("0x34")]?r[os("0x5")]++:t[os("0x2a")]({type:o+os("0xa"),element:e,quantity:1})}else t[os("0x2a")]({type:o+os("0x8"),element:n})}}}[os("0x9")](t){const e=this._locale,n=[];for(const o of t){switch(o.type){case os("0x2f"):if(o[os("0x29")]=o[os("0x29")][os("0x16")](/(\S)\u000A+(\S)/g,os("0x15"))[os("0x16")](/\u000A/g,""),o.remove=o[os("0x18")][os("0x16")](/(\S)\u000A+(\S)/g,os("0x15"))[os("0x16")](/\u000A/g,""),""!=o[os("0x29")]&&""!=o[os("0x18")]){n.push({type:os("0x16"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x18")]+'"','"'+o[os("0x29")]+'"'])});continue}if(null!=o[os("0x29")][os("0x1b")](/^ +$/)){n[os("0x2a")]({type:os("0x2e"),content:Yo(e,os("0x1c"),Yo(e,os("0x2"),o[os("0x29")][os("0x25")]))});continue}if(null!=o[os("0x18")].match(/^ +$/)){n[os("0x2a")]({type:os("0x28"),content:Yo(e,os("0x0"),Yo(e,os("0x2"),o[os("0x18")][os("0x25")]))});continue}if(""!=o[os("0x29")]){n[os("0x2a")]({type:os("0x2e"),content:Yo(e,os("0x1c"),'"'+o.add+'"')});continue}n[os("0x2a")]({type:"deletion",content:Yo(e,"*Remove:* %0",'"'+o[os("0x18")]+'"')});continue;case os("0x2c"):case os("0xc"):n.push({type:os("0x2e"),content:Yo(e,os("0x1c"),this[os("0x10")](o[os("0x27")],o.quantity))});continue;case os("0x1a"):case os("0x33"):n[os("0x2a")]({type:os("0x28"),content:Yo(e,os("0x0"),this.getItemLabel(o.element,o[os("0x5")]))});continue;case os("0x11"):n.push({type:os("0x2e"),content:Yo(e,os("0xd"),this[os("0x10")](o[os("0x27")],o[os("0x5")]))});continue;case"removeContainer":n[os("0x2a")]({type:"deletion",content:Yo(e,"*Merge:* %0",this.getItemLabel(o[os("0x27")],o[os("0x5")]))});continue}n[os("0x2a")](o)}return n}}const rs=["document","alignment","FORMAT_ALIGN_TO_LEFT","format","getAttribute","change","AlignmentEditing","filter","*Format:* %0","editor","ltr","commandParams","TrackChangesEditing","getSelectedBlocks","FORMAT_JUSTIFY_TEXT","from","markBlockFormat","FORMAT_ALIGN_TO_RIGHT","commandName","right","registerDescriptionCallback","value","_descriptionFactory","afterInit","contentLanguageDirection","locale","has","left","get","model","center","plugins"];var is,xs;is=rs,xs=324,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x13")](){const t=this[as("0x5")],e=t[as("0x15")];if(!t[as("0x1b")][as("0x16")](as("0x2")))return;const n=t[as("0x1b")][as("0x18")](as("0x8"));n.enableCommand(as("0x1d"),((e,o={})=>{let s=o[as("0x11")];o[as("0x11")]||(s=as("0x6")===t[as("0x15")][as("0x14")]?as("0x17"):as("0xf"));const r=Array[as("0xb")](this[as("0x5")][as("0x19")][as("0x1c")].selection[as("0x9")]())[as("0x3")]((t=>function(t,e,n){const o=t[as("0x0")](as("0x1d"))||null;return e.checkAttribute(t,as("0x1d"))&&n!=o}(t,this[as("0x5")][as("0x19")].schema,s)));t[as("0x19")][as("0x1")]((()=>{for(const t of r)n[as("0xc")](t,{commandName:as("0x1d"),commandParams:[{value:s}]})}))})),n[as("0x12")][as("0x10")]((t=>{const{data:n}=t;if(n&&as("0x1d")==n[as("0xe")]){const t=n[as("0x7")][0][as("0x11")];return{type:as("0x1f"),content:Yo(e,as("0x4"),function(t){switch(t){case"left":return Yo(e,as("0x1e"));case as("0xf"):return Yo(e,as("0xd"));case as("0x1a"):return Yo(e,"FORMAT_ALIGN_TO_CENTER");case"justify":return Yo(e,as("0xa"))}}(t))}}}))}}const ls=["model","includes","item","previousPosition","getWalker","mapper","addClass","consumable","nextSibling","getItems","markerRange","elementEnd","ck-suggestion-marker-","listIndent","get","listItem","isBlock","toViewPosition","markerName","getAttribute","createRangeOn","bindElementToMarker","isLimit","schema","insert","type","parent","push","getCustomProperty","start","element","isContent","plugins","name","writer"];var ds,us;ds=ls,us=240,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0xe")]())s.hasAttribute(t)&&o[gs("0x20")](n[gs("0x19")](s));return o}function fs(t){const e=[];if(t.is(gs("0x0"),gs("0x14"))){let n=t[gs("0xd")];for(;n&&n.is(gs("0x0"),gs("0x14"))&&n[gs("0x18")](gs("0x12"))>0;)e[gs("0x20")](n),n=n[gs("0xd")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x2")][gs("0x13")]("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0xc")].test(r[gs("0xf")],s[gs("0x3")]))return;const x=r.markerRange[gs("0x9")](),a=r[gs("0xf")][gs("0x22")],c=t[gs("0x5")][gs("0x1c")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x7")];u=u||c[gs("0x1")](e);const n=i[gs("0xa")].toViewElement(e);if(n&&n[gs("0x21")]("addHighlight"))return;gs("0x10")==t[gs("0x1e")]&&c[gs("0x15")](e)&&!c[gs("0x1b")](e)&&(e[gs("0xd")]||a.isAtEnd?l&&l[gs("0x1f")]==e||(l=e,m(t[gs("0x8")]),g=!0):d=d||t.previousPosition)}function m(t){const s=i.writer.createUIElement("span",{class:gs("0x11")+e}),x=i[gs("0xa")][gs("0x16")](t);n&&o.activeMarkers[gs("0x6")](r.markerName)&&i[gs("0x4")][gs("0xb")]("ck-suggestion-marker--active",s),i[gs("0x4")][gs("0x1d")](x,s),i[gs("0xa")][gs("0x1a")](s,r[gs("0x17")])}u||g||!d||m(d)}}const ps=["commandParams","forceValue","getRanges","has","get","bold","superscript","FORMAT_STRIKETHROUGH","locale","document","isCollapsed","FORMAT_SUBSCRIPT","format","_descriptionFactory","underline","SuperscriptEditing","selection","UnderlineEditing","StrikethroughEditing","BoldEditing","ItalicEditing","toLowerCase","FORMAT_SUPERSCRIPT","italic","CodeEditing","commands","markInlineFormat","plugins","TrackChangesEditing","enableCommand","strikethrough","editor","*Remove format:* %0","registerDescriptionCallback"];var bs,Es;bs=ps,Es=449,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0xc"),_s("0xd"),_s("0xa"),_s("0x11"),_s("0xb"),"SubscriptEditing",_s("0x8")];class Cs extends t.Plugin{afterInit(){const t=this[_s("0x18")],e=t.model,n=t[_s("0x14")][_s("0x1f")](_s("0x15")),o=t[_s("0x1")];for(const o of Ts){if(!t[_s("0x14")][_s("0x1e")](o))continue;const s=o.slice(0,-7)[_s("0xe")](),r=t[_s("0x12")].get(s);n[_s("0x16")](s,((t,o={})=>{const i=e[_s("0x2")][_s("0x9")];if(i[_s("0x3")])return void t(o);const x=void 0!==o[_s("0x1c")]?o[_s("0x1c")]:!r.value;e.change((()=>{const t=Array.from(i[_s("0x1d")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x13")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x6")][_s("0x1a")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[_s("0x1b")][0][_s("0x1c")]?{type:_s("0x5"),content:Yo(o,"*Format:* %0",e)}:{type:_s("0x5"),content:Yo(o,_s("0x19"),e)}}))}s(_s("0x20"),Yo(o,"FORMAT_BOLD")),s(_s("0x10"),Yo(o,"FORMAT_ITALIC")),s(_s("0x7"),Yo(o,"FORMAT_UNDERLINE")),s("code",Yo(o,"FORMAT_CODE")),s(_s("0x17"),Yo(o,_s("0x0"))),s("subscript",Yo(o,_s("0x4"))),s(_s("0x21"),Yo(o,_s("0xf")))}}const ys=["editor","value","ELEMENT_BLOCK_QUOTE","from","change","schema","locale","*Remove format:* %0","afterInit","forceValue","checkChild","document","parent","commands","model","filter","format","has","commandName","plugins","$root","name","BlockQuoteEditing","*Format:* %0","getSelectedBlocks","selection","blockQuote","get","commandParams"];var ks,As;ks=ys,As=337,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x13")](){const t=this[vs("0xb")],e=t[vs("0x11")];if(!t[vs("0x1")][vs("0x1c")](vs("0x4")))return;const n=t[vs("0x1")][vs("0x9")]("TrackChangesEditing"),o=this.editor[vs("0x18")][vs("0x9")](vs("0x8"));n.enableCommand("blockQuote",((e,s={})=>{const r=this[vs("0xb")][vs("0x19")][vs("0x16")][vs("0x7")],i=s&&void 0!==s.forceValue?s.forceValue:!o[vs("0xc")];let x=[];if(i){const e=Array[vs("0xe")](r.getSelectedBlocks())[vs("0x1a")]((t=>Ss(t)||function(t,e){const n=e.checkChild(t.parent,vs("0x8")),o=e[vs("0x15")]([vs("0x2"),vs("0x8")],t);return n&&o}(t,this[vs("0xb")][vs("0x19")][vs("0x10")])));x=S(e,t[vs("0x19")])}else{const e=Array.from(r[vs("0x6")]()).filter((t=>Ss(t)));x=S(e,t[vs("0x19")])}t.model[vs("0xf")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x8")==n[vs("0x0")]){const t=Yo(e,vs("0xd"));return n[vs("0xa")][0][vs("0x14")]?{type:vs("0x1b"),content:Yo(e,vs("0x5"),t)}:{type:vs("0x1b"),content:Yo(e,vs("0x12"),t)}}}))}}function Ss(t){return vs("0x8")==t[vs("0x17")][vs("0x3")]}const Is=["enableCommand","TrackChangesEditing","ckbox","plugins"];var Ls,Ns;Ls=Is,Ns=262,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this.editor;t.commands.get(Ms("0x0"))&&t[Ms("0x1")].get(Ms("0x3"))[Ms("0x2")](Ms("0x0"))}}const Os=["markBlockFormat","registerElementLabel","format","label","_descriptionFactory","isLimit","ELEMENT_CODE_BLOCK","change","enableCommand","forceValue","from","editor","CodeBlock","value","find","plugins","commands","get","schema","locale","*Remove format:* %0","rootElement","document","codeBlock","name","model","outdentCodeBlock","getSelectedBlocks","formatBlock","language","selection","config","commandParams"];var Fs,Ps;Fs=Os,Ps=486,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this[Ds("0x14")];if(!t[Ds("0x18")].has(Ds("0x15")))return;const e=t[Ds("0x18")][Ds("0x1a")]("TrackChangesEditing"),n=t[Ds("0x1c")],o=t[Ds("0x7")][Ds("0x1a")]("codeBlock").languages,s=t[Ds("0x19")][Ds("0x1a")](Ds("0x20"));e[Ds("0x11")]("indentCodeBlock"),e[Ds("0x11")](Ds("0x2")),e[Ds("0x11")](Ds("0x20"),((n,r={})=>{const i=t[Ds("0x1")],x=t[Ds("0x1")][Ds("0x1f")][Ds("0x6")],a=r&&void 0!==r[Ds("0x12")]?r[Ds("0x12")]:!s[Ds("0x16")];let c;r[Ds("0x5")]||(r.language=o[0][Ds("0x5")]),c=a?Array[Ds("0x13")](x[Ds("0x3")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0x1b")],!e.is(Ds("0x1e"))&&!n[Ds("0xe")](e)&&n.checkChild(e.parent,Ds("0x20")));var e,n})):Array.from(x.getSelectedBlocks()).filter((t=>js(t)));const l=S(c,i);i[Ds("0x10")]((()=>{for(const t of l)e[Ds("0x9")](t,{commandName:Ds("0x20"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Ds("0xd")][Ds("0xa")]("codeBlock",(t=>Yo(n,Ds("0xf"),t))),e[Ds("0xd")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x4")==s&&r&&Ds("0x20")==r.commandName){const t=r[Ds("0x8")][0].language,s=e(o[Ds("0x17")]((e=>e.language===t))[Ds("0xc")]);return r[Ds("0x8")][0][Ds("0x12")]?{type:"format",content:Yo(n,"*Format:* %0",Yo(n,Ds("0xf"),1)+" ("+s+")")}:{type:Ds("0xb"),content:Yo(n,Ds("0x1d"),Yo(n,Ds("0xf"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x0")]}const Us=["CommentsEditing","editor","enableCommand","afterInit","addCommentThread","get","TrackChangesEditing","plugins","has"];var Gs,Hs;Gs=Us,Hs=385,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x5")](){const t=this[zs("0x3")];t[zs("0x0")][zs("0x1")](zs("0x2"))&&t[zs("0x0")][zs("0x7")](zs("0x8"))[zs("0x4")](zs("0x6"))}}var Vs=n(181);const Ks=["start","unbindElementFromMarkerName","downcastDispatcher","model","setSelection","$graveyard","get","selection","removeMarker:suggestion:deletion","enqueueChange","data","createSelection","deleteForward","buffer","high","createRange","enableCommand","uiElement","showSuggestionHighlights","remove","modifySelection","options","writer","mapper","batch","commands","forward","delete","requires","root","init","editor","merge","end","markerName","TrackChangesEditing","isCollapsed","detach","addMarker:suggestion:deletion","markerNameToElements","editing","document","lock"];var Xs,qs;Xs=Ks,qs=154,function(t){for(;--t;)Xs.push(Xs.shift())}(++qs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x3")](){return[Vs.Delete]}[$s("0x5")](){const t=this[$s("0x6")],e=t.plugins[$s("0x18")]($s("0xa"));e[$s("0x22")]($s("0x2"));const n=t[$s("0x0")][$s("0x18")]($s("0x1e"));e[$s("0x22")]($s("0x1e"),((e,o={})=>{const s=t[$s("0x15")][$s("0x1d")](t[$s("0x15")][$s("0x10")][$s("0x19")]);s[$s("0xb")]&&t[$s("0x15")][$s("0x26")](s,{direction:$s("0x1"),unit:o.unit});const r=s.getFirstRange(),x=i.LiveRange.fromRange(r);let a;e(o),a=$s("0x17")==x[$s("0x4")].rootName?t[$s("0x15")][$s("0x21")](r[$s("0x12")]):t[$s("0x15")][$s("0x21")](x.start,x[$s("0x8")]),x[$s("0xc")](),t[$s("0x15")][$s("0x1b")](n[$s("0x1f")][$s("0x2a")],(t=>{n[$s("0x1f")][$s("0x11")](),t[$s("0x16")](t[$s("0x21")](a[$s("0x8")])),n[$s("0x1f")].unlock()}))})),t[$s("0xf")][$s("0x14")].on("addMarker:suggestion:deletion",hs(t,$s("0x7")),{priority:$s("0x20")}),t[$s("0x1c")][$s("0x14")].on($s("0xd"),((e,n,o)=>{o[$s("0x27")][$s("0x24")]&&hs(t,$s("0x7"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:$s("0x20")}),t[$s("0xf")][$s("0x14")].on($s("0x1a"),((t,e,n)=>{const o=n[$s("0x29")][$s("0xe")](e[$s("0x9")]);if(o)for(const t of o)t.is($s("0x23"))&&(n[$s("0x29")][$s("0x13")](t,e[$s("0x9")]),n[$s("0x28")][$s("0x25")](t))}),{priority:$s("0x20")})}}const Qs=["getRanges","from","document","findIndex","markBlockFormat","listIndent","expandListBlocksToCompleteList","nextSibling","*Merge:* %0","formatBlock","commands","get","selection","accept","listType","TrackChangesEditing","multipleBlocks","ELEMENT_LIST_ITEM","next","listItemId","parent","documentList","after","length","_descriptionFactory","enableCommand","format","getSelectedBlocks","*Change to:* %0","numberedList","push","previousSibling","slice","getAttribute","indentList","nodeAfter","model","plugins","DocumentListUtils","detach","start","before","isObject","forceValue","change","fromRange","locale","*Format:* insert into %0","*Format:* remove from %0","outdentList","getFirstRange","containsItem","toUpperCase","bulletedList","commandName","splitListItemBefore","createPositionAt","commandParams","registerCustomCallback","add","deletion","editor","schema","value","createRange","isFirstBlockOfListItem","ELEMENT_NUMBERED_LIST","afterInit","mergeListItemBackward","DocumentListEditing","ELEMENT_","registerElementLabel"];var Zs,Ys;Zs=Qs,Ys=266,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x11")](){const t=this[tr("0xb")];if(!t[tr("0x3b")].has(tr("0x13")))return;const e=t[tr("0x44")],n=t[tr("0x3b")][tr("0x21")](tr("0x25")),o=t[tr("0x3b")].get(tr("0x3c"));function s(e){return()=>{const s=t.commands.get(e);let r=Array[tr("0x17")](t.model[tr("0x18")][tr("0x22")][tr("0x31")]());if(a(e)){r=o[tr("0x1c")](r);const t=[];for(const e of r)o[tr("0xf")](e)&&t[tr("0x34")](e);r=t}t[tr("0x3a")].change((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!s[tr("0xd")]}],formatGroupId:tr("0x24")},[],tr("0x2b"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[tr("0x19")]((t=>!t.hasAttribute(tr("0x29"))));return n>-1&&(e=e[tr("0x36")](0,n)),e}(t[tr("0x3a")][tr("0x18")][tr("0x22")][tr("0x31")]()),s=o[o[tr("0x2d")]-1],r=t[tr("0x3a")].schema.isObject(s)?tr("0x2c"):"end",i=t[tr("0x3a")][tr("0xe")](t.model.createPositionAt(o[0],tr("0x3f")),t[tr("0x3a")][tr("0x6")](s,r));t[tr("0x3a")][tr("0x42")]((()=>{n[tr("0x1a")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x24")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t.getAttribute(tr("0x1b"))>n.getAttribute(tr("0x1b"));)e[tr("0x9")](t),t=t[tr("0x1d")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x3a")][tr("0x18")].selection[tr("0x31")]()[tr("0x28")]()[tr("0xd")],s=t[tr("0x3a")][tr("0x6")](o,tr("0x3f")),r=t.model[tr("0x6")](o,0),i=t[tr("0x3a")][tr("0xe")](s,r);t[tr("0x3a")][tr("0x42")]((()=>{n[tr("0x1a")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x24")})}))}}function a(e){const n=t.commands.get(tr("0x3"))[tr("0xd")],o=t[tr("0x20")][tr("0x21")](tr("0x33"))[tr("0xd")];return tr("0x33")===e?n:o}n.enableCommand(tr("0x33"),s(tr("0x33"))),n[tr("0x2f")](tr("0x3"),s("bulletedList")),n[tr("0x2f")](tr("0x38"),r("indentList")),n[tr("0x2f")](tr("0x47"),r(tr("0x47"))),n[tr("0x2f")]("splitListItemAfter",x("splitListItemAfter")),n[tr("0x2f")](tr("0x5"),x("splitListItemBefore")),n[tr("0x2e")][tr("0x15")]((function(e){const n=!t[tr("0x3a")][tr("0xc")][tr("0x40")](e),o=e[tr("0x35")],s=e.nextSibling,r=e[tr("0x37")](tr("0x29")),i=!o||o.getAttribute(tr("0x29"))!==r,x=!s||s[tr("0x37")](tr("0x29"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x27"),t))),n[tr("0x2e")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x4")]){case tr("0x3"):r=n[tr("0x7")][0][tr("0x41")],i=a(n[tr("0x4")]),o=tr(r?"0x45":"0x46"),i&&(o="*Change to:* %0"),s={type:tr("0x30"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0x33"):r=n[tr("0x7")][0][tr("0x41")],i=a(n[tr("0x4")]),o=tr(r?"0x45":"0x46"),i&&(o=tr("0x32")),s={type:tr("0x30"),content:Yo(e,o,Yo(e,tr("0x10")))};break;case tr("0x38"):o="*Indent:* %0",s={type:tr("0x30"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))};break;case tr("0x47"):o=function(t){const e=t.getFirstRange();let n=e[tr("0x3e")][tr("0x39")];for(;n&&e[tr("0x1")](n);){if(n[tr("0x37")](tr("0x1b"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x46"),Yo(e,function(t){const e=t[tr("0x0")]()[tr("0x3e")][tr("0x39")];return tr("0x14")+e[tr("0x37")]("listType")[tr("0x2")]()+"_LIST"}(t))):Yo(e,"*Outdent:* %0",Yo(e,tr("0x27"))),s={type:tr("0x30"),content:o};break;case tr("0x12"):case"mergeListItemForward":!1===n[tr("0x26")]&&(o=tr("0x1e"),s={type:tr("0xa"),content:Yo(e,o,Yo(e,tr("0x27")))})}return s})),n._suggestionFactory[tr("0x8")](tr("0x1f"),tr("0x2b"),tr("0x23"),(function(e,n){const o=[];for(let n of e)n[tr("0x3e")][tr("0x39")]===n.end[tr("0x2a")]&&(n=t[tr("0x3a")][tr("0xe")](t[tr("0x3a")][tr("0x6")](n[tr("0x3e")][tr("0x39")],0))),o[tr("0x34")](n);t[tr("0x3a")][tr("0x42")]((e=>{const s=t[tr("0x3a")].document[tr("0x22")],r=Array[tr("0x17")](s[tr("0x16")]()).map((t=>i.LiveRange[tr("0x43")](t)));e.setSelection(o),t[tr("0x20")][tr("0x21")](n[tr("0x4")]).refresh(),n[tr("0x7")][tr("0x34")]({forceDefaultExecution:!0}),t.execute(n[tr("0x4")],...n.commandParams),e.setSelection(r);for(const t of r)t[tr("0x3d")]()}))}))}}var nr=n(331);const or=["createRange","removeMarker:suggestion:insertion","detach","getFirstPosition","end","showSuggestionHighlights","remove","mapper","writer","selection","hasClass","document","enableCommand","downcastDispatcher","afterExecute","ck-suggestion-marker-split","change","commands","fire","getFirstRange","markerNameToElements","addMarker:suggestion:insertion","editing","model","plugins","markerName","unbindElementFromMarkerName","high","markInsertion","nextSibling","parent","setSelection","requires","editor","options","split","get","createPositionAt"];var sr,rr;sr=or,rr=237,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x17")](){return[nr.Enter]}init(){const t=this[ir("0x18")],e=t[ir("0xf")].get("TrackChangesEditing"),n=t[ir("0x8")][ir("0x1b")]("enter");e[ir("0x3")]("enter",(()=>{t.model[ir("0x7")]((o=>{const s=t[ir("0xe")][ir("0x2")][ir("0x0")],r=s[ir("0x20")](),x=i.LiveRange.fromRange(s[ir("0xa")]());if(n.enterBlock(o)){const n=t[ir("0xe")][ir("0x1c")](r[ir("0x15")][ir("0x14")],0),s=o.createRange(r,n);e[ir("0x13")](s)}else o[ir("0x16")](o[ir("0x1d")](x[ir("0x21")]));x[ir("0x1f")](),n[ir("0x9")](ir("0x5"),{writer:o})}))})),t[ir("0xd")].downcastDispatcher.on(ir("0xc"),hs(t,ir("0x1a")),{priority:"high"}),t[ir("0xd")][ir("0x4")].on(ir("0x1e"),((t,e,n)=>{const o=n[ir("0x24")][ir("0xb")](e[ir("0x10")]);if(o)for(const t of o)t[ir("0x1")](ir("0x6"))&&(n.mapper[ir("0x11")](t,e[ir("0x10")]),n[ir("0x25")][ir("0x23")](t))}),{priority:ir("0x12")}),t.data[ir("0x4")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ir("0x19")][ir("0x22")]&&hs(t,ir("0x1a"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:ir("0x12")})}}const ar=["replaceAll","end","suggestion:deletion","editor","afterInit","_isInDeletionRange","getMarkersGroup","filter","start","getRange","model","plugins","FindAndReplaceUtils","replace","TrackChangesEditing","item","getIntersection","bind","enableCommand","handleFindCommand","findNext","createPositionAt","get","markers","has"];var cr,lr;cr=ar,lr=403,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x1")](){if(!this.editor.plugins[dr("0x15")]("FindAndReplaceEditing"))return;const t=this.editor[dr("0x8")][dr("0x13")](dr("0xb"));t.enableCommand("find",this.handleFindCommand[dr("0xe")](this)),t[dr("0xf")](dr("0x11")),t[dr("0xf")]("findPrevious"),t[dr("0xf")](dr("0xa")),t[dr("0xf")](dr("0x16"))}[dr("0x10")](t,e,n={}){const o=this[dr("0x0")][dr("0x8")][dr("0x13")](dr("0x9"));void 0!==n&&t((t=>("string"==typeof e?o.findByTextCallback(e,n):e)(t)[dr("0x4")]((e=>!1===this._isInDeletionRange(e,t[dr("0xc")])))),n)}[dr("0x2")](t,e){const n=this.editor.model.createRange(this.editor[dr("0x7")][dr("0x12")](e,t[dr("0x5")]),this[dr("0x0")].model[dr("0x12")](e,t[dr("0x17")]));for(const t of this[dr("0x0")][dr("0x7")][dr("0x14")][dr("0x3")](dr("0x18")))if(null!==n[dr("0xd")](t[dr("0x6")]()))return!0;return!1}}const gr=["_descriptionFactory","fontBackgroundColor.colors","FontSizeEditing","plugins","*Reset font color*","_enableCommand","FontFamilyEditing","toLowerCase","markInlineFormat","afterInit","getRanges","change","document","FontBackgroundColorEditing","value","fontSize.options","locale","registerDescriptionCallback","commandName","get","commandParams","*Set font size:* %0","trim","selection","fontFamily","*Set font color:* %0","fontSize","fontBackgroundColor","enableCommand","*Set font family:* %0","FontColorEditing","isCollapsed","format","TrackChangesEditing","*Reset font size*","*Reset font background color*","*Reset font family*","label","config","find","fontColor.colors","has","editor","model","fontColor","FontSize"];var mr,fr;mr=gr,fr=270,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x8"),commandName:hr("0x20")},{pluginName:hr("0xc"),commandName:hr("0x1e")},{pluginName:hr("0x24"),commandName:hr("0x4")},{pluginName:hr("0x13"),commandName:hr("0x21")}];class br extends t.Plugin{[hr("0xf")](){const t=this[hr("0x2")][hr("0x16")];for(const{pluginName:t,commandName:e}of pr)this.editor[hr("0x9")][hr("0x1")](t)&&this[hr("0xb")](e);this[hr("0x2")].plugins[hr("0x19")]("TrackChangesEditing")[hr("0x6")][hr("0x17")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[hr("0x18")]){const e=o[hr("0x1a")][0][hr("0x14")];if(e){const o=n(this[hr("0x2")][hr("0x9")][hr("0x19")](hr("0x5")).normalizeSizeOptions(this[hr("0x2")].config[hr("0x19")](hr("0x15")))[hr("0x2d")]((t=>t[hr("0x3")]==e)).title)[hr("0xd")]();return{type:"format",content:Yo(t,hr("0x1b"),o)}}return{type:hr("0x26"),content:Yo(t,hr("0x28"))}}if("fontFamily"==o[hr("0x18")]){const e=o[hr("0x1a")][0][hr("0x14")];return e?{type:hr("0x26"),content:Yo(t,hr("0x23"),e)}:{type:hr("0x26"),content:Yo(t,hr("0x2a"))}}if("fontColor"==o[hr("0x18")]){const e=o[hr("0x1a")][0][hr("0x14")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x2")][hr("0x2c")][hr("0x19")](hr("0x0"))).find((t=>t[hr("0x3")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0xd")]()),{type:hr("0x26"),content:Yo(t,hr("0x1f"),i).trim(),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0xa"))}}if(hr("0x21")==o[hr("0x18")]){const e=o[hr("0x1a")][0][hr("0x14")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x2")][hr("0x2c")].get(hr("0x7")))[hr("0x2d")]((t=>t.model==e));let r=e,i="";return o&&(r=o[hr("0x2b")],i=n(r)[hr("0xd")]()),{type:"format",content:Yo(t,"*Set font background color:* %0",i)[hr("0x1c")](),color:{value:e,title:i||r}}}return{type:hr("0x26"),content:Yo(t,hr("0x29"))}}}}))}[hr("0xb")](t){const e=this[hr("0x2")];e[hr("0x9")][hr("0x19")](hr("0x27"))[hr("0x22")](t,((n,o={})=>{const s=e.model[hr("0x12")][hr("0x1d")],r=o.value;s[hr("0x25")]?n(o):e[hr("0x3")][hr("0x11")]((()=>{const n=Array.from(s[hr("0x10")]());for(const o of n){const n=r?[o]:ms(t,o,e.model);for(const o of n)e[hr("0x9")][hr("0x19")](hr("0x27"))[hr("0xe")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["plugins","createSelection","fontBackgroundColor","toLowerCase","*Set format to:* %0","length","word","boolean","commandParams","enableCommand","getAttributeProperties","get","isCollapsed","schema","title","push","getLastPosition","config","getAttributes","getSelectedBlocks","locale","charAt","forward","find","pasteFormat","_descriptionFactory","getRanges","normalizeSizeOptions","split","getItems","commands","registerDescriptionCallback","markInlineFormat","afterInit","join","entries","backward","editor","selection","commandName","from","copyFormat","isFormatting","slice","change","format","model","*Remove all formatting*","fontSize.options","fontSize","fontColor","TrackChangesEditing"];var _r,Tr;_r=Er,Tr=155,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x22")](){const t=this[Cr("0x26")],n=t[Cr("0x2f")],o=n.document[Cr("0x27")],s=t[Cr("0x1")].get(Cr("0x0")),r=t.locale,i=t[Cr("0x1f")].get(Cr("0x2a")),x=t.commands.get(Cr("0x19"));i&&x&&(s.enableCommand("pasteFormat",((t,r={})=>{const i=r;n[Cr("0x2d")]((()=>{const t=Array[Cr("0x29")](o[Cr("0x1b")]()),r=o[Cr("0xd")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x13")]()){const t=e[Cr("0xb")](n);t&&t[Cr("0x2b")]&&(yield n)}}(t,n));for(const e of t[Cr("0x1b")]())for(const t of e[Cr("0x1e")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Cr("0x14")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0xe")]))||0!==Object.keys(i)[Cr("0x6")])for(const t of r)s[Cr("0x21")](t,{commandName:Cr("0x19"),commandParams:[i]})}))})),s[Cr("0x1a")][Cr("0x20")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n[Cr("0x28")]){const e=[],o=n[Cr("0x9")][0];for(const[n,s]of Object[Cr("0x24")](o))e[Cr("0x10")](Ar(t,n,s));return e[Cr("0x6")]?{type:"format",content:Yo(r,Cr("0x5"),e.join(", "))}:{type:Cr("0x2e"),content:Yo(r,Cr("0x30"))}}})),t[Cr("0x1")][Cr("0xc")](Cr("0x0"))[Cr("0xa")](Cr("0x2a")))}}function kr(t,e){const n=t[Cr("0x2")](e);t.modifySelection(n,{unit:"word",direction:Cr("0x25")});const o=n.getFirstPosition();t.modifySelection(n,{unit:Cr("0x7"),direction:Cr("0x17")});const s=n[Cr("0x11")]();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x15")].t,r=e[Cr("0x1d")](/(?=[A-Z])/)[Cr("0x23")](" "),i=o(r[Cr("0x16")](0).toUpperCase()+r[Cr("0x2c")](1)).toLowerCase();if(Cr("0x8")==typeof n)return i;if(Cr("0x33")===e||Cr("0x3")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x12")].get("fontColor.colors"))[Cr("0x18")]((t=>t.model==n));return i+" ("+(e?o(e.label)[Cr("0x4")]():n)+")"}if(Cr("0x32")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x1")].get("FontSize")[Cr("0x1c")](t.config.get(Cr("0x31")))[Cr("0x18")]((t=>t[Cr("0x2f")]==n));return i+" ("+(e?o(e[Cr("0xf")])[Cr("0x4")]():n)+")"}return i+" ("+n+")"}const vr=["formatBlock","getSelectedBlocks","change","blockName","plugins","enableCommand","*Change to:* %0","registerElementLabel","value","from","editor","selection","document","registerDescriptionCallback","checkChild","paragraph","get","locale","heading","has","heading.options","commandName","ELEMENT_HEADING","afterInit","TrackChangesEditing","schema","_descriptionFactory","format","name","filter","isObject","model"];var Rr,Sr;Rr=vr,Sr=432,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x7")](){const t=this[Ir("0x1a")],e=t[Ir("0x1")],n=t.config[Ir("0x0")](Ir("0x4"));if(!t[Ir("0x14")][Ir("0x3")]("HeadingEditing"))return;const o=t[Ir("0x14")][Ir("0x0")](Ir("0x8"));o[Ir("0x15")]("heading",((e,n)=>{const s=n[Ir("0x18")],r=Array[Ir("0x19")](this[Ir("0x1a")][Ir("0xf")][Ir("0x1c")][Ir("0x1b")][Ir("0x11")]())[Ir("0xd")]((t=>{return e=t,n=s,(o=this[Ir("0x1a")][Ir("0xf")][Ir("0x9")])[Ir("0x1e")](e.parent,n)&&!o[Ir("0xe")](e)&&e[Ir("0xc")]!=n;var e,n,o}));t[Ir("0xf")][Ir("0x12")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0x2"),commandParams:[n],formatGroupId:Ir("0x13")},fs(t))}))}));for(const t of n)Ir("0x1f")!=t[Ir("0xf")]&&o._descriptionFactory[Ir("0x17")](t.model,(e=>{const n=Nr(t[Ir("0xf")]);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,Ir("0x6"),[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ir("0xa")][Ir("0x1d")]((t=>{const{type:o,data:i}=t;if(Ir("0x10")==o&&i&&Ir("0x2")==i[Ir("0x5")]){const t=i.commandParams[0].value,o=Nr(t);if(null!==o)return{type:Ir("0xb"),content:Yo(e,Ir("0x16"),s(1,o))};const x=n.find((e=>e[Ir("0xf")]===t)).title;return{type:"format",content:Yo(e,Ir("0x16"),r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Mr=["title","commandName","change","backward","selection","getLastMatchingPosition","plugins","getAttribute","locale","getFirstPosition","editor","highlight.options","find","format","_descriptionFactory","toLowerCase","registerDescriptionCallback","document","value","color","get","commandParams","item","model","FORMAT_HIGHLIGHT","markInlineFormat","hasAttribute","formatInline","afterInit","*Remove highlight*","TrackChangesEditing","highlight"];var wr,Or;wr=Mr,Or=466,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0xa")](){const t=this[Fr("0x18")];if(!t[Fr("0x14")].has("HighlightEditing"))return;const e=t[Fr("0x14")][Fr("0x2")](Fr("0xc"));e.enableCommand(Fr("0xd"),((n,o={})=>{const s=t[Fr("0x5")][Fr("0x1f")][Fr("0x12")],r=s[Fr("0x15")](Fr("0xd"));let i=o[Fr("0x0")],x=[];if(s.isCollapsed){const e=s[Fr("0x17")]();if(!s[Fr("0x8")](Fr("0xd")))return void n(o);{const n=t=>t[Fr("0x4")][Fr("0x15")](Fr("0xd"))===r,o=e[Fr("0x13")](n,{direction:Fr("0x11")}),s=e[Fr("0x13")](n);x=[t[Fr("0x5")].createRange(o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x.push(e):x.push(...ms("highlight",e,t[Fr("0x5")]));t[Fr("0x5")][Fr("0x10")]((()=>{for(const t of x)e[Fr("0x7")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x16")];e[Fr("0x1c")][Fr("0x1e")]((e=>{const{type:o,data:s}=e;if(Fr("0x9")==o&&s&&Fr("0xd")==s[Fr("0xf")]){const e=n.t,o=s[Fr("0x3")][0][Fr("0x0")];if(o){const s=t.config[Fr("0x2")](Fr("0x19"))[Fr("0x1a")]((t=>t[Fr("0x5")]==o)),r=e(s.title)[Fr("0x1d")]();return{type:Fr("0x1b"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s[Fr("0x1")],title:s[Fr("0xe")]}}}return{type:Fr("0x1b"),content:Yo(n,Fr("0xb"),Yo(n,Fr("0x6")))}}}))}}const Dr=["afterInit","for","addClass","dataDowncast","div","editor","TrackChangesEditing","plugins","locale","has","horizontalLine","ck-horizontal-line","createContainerElement","showSuggestionHighlights","elementToStructure"];var Br,jr;Br=Dr,jr=176,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x4")](){const t=this[Ur("0x9")];if(!t[Ur("0xb")][Ur("0xd")]("HorizontalLineEditing"))return;t.plugins.get(Ur("0xa")).enableCommand(Ur("0xe"));const e=t[Ur("0xb")].get(Ur("0xa")),n=t[Ur("0xc")];e._descriptionFactory.registerElementLabel(Ur("0xe"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t.conversion[Ur("0x5")](Ur("0x7"))[Ur("0x3")]({model:Ur("0xe"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x2")])return null;const o=e[Ur("0x1")](Ur("0x8")),s=e.createEmptyElement("hr");return e[Ur("0x6")](Ur("0x0"),o),e.insert(e.createPositionAt(o,0),s),o},converterPriority:"high"})}}const Hr=["getSelectedElement","registerDescriptionCallback","selection","htmlEmbed","commandName","enableCommand","cancel","rawHtml","_descriptionFactory","getAttribute","format","model","element","value","get","registerElementLabel","HtmlEmbed","afterInit","document","locale","markBlockFormat","rawHtmlApi","plugins","view","ELEMENT_HTML_EMBED","getCustomProperty","TrackChangesEditing","change"];var zr,Wr;zr=Hr,Wr=327,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x1a")](){const t=this.editor;if(!t[Vr("0x3")].has(Vr("0x19")))return;const e=t.plugins[Vr("0x17")](Vr("0x7")),n=t[Vr("0x0")],o=t.editing[Vr("0x4")][Vr("0x1b")][Vr("0xb")];e[Vr("0x11")][Vr("0x18")](Vr("0x10"),(t=>Yo(n,Vr("0x5"),t))),t[Vr("0x3")].get(Vr("0x7"))[Vr("0xe")]("htmlEmbed",((n,s)=>{const r=t[Vr("0x14")],i=r[Vr("0x1b")].selection;r[Vr("0x8")]((()=>{const t=function(t){const e=t[Vr("0x9")]();return e&&e.is(Vr("0x15"),Vr("0x10"))?t[Vr("0x9")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x12")](Vr("0x16"))||"";void 0!==s&&s!==r&&(e[Vr("0x1")](t,{commandName:Vr("0xc"),commandParams:[s]}),o.getSelectedElement()[Vr("0x6")](Vr("0x2"))[Vr("0xf")]())}))})),e[Vr("0x11")][Vr("0xa")]((t=>{const{data:e}=t;if(e&&Vr("0xc")==e[Vr("0xd")]){const t=Yo(n,Vr("0x5"));return{type:Vr("0x13"),content:Yo(n,"*Change %0 content*",t)}}}))}}const Xr=["length","fromPosition","isOwn","commands","document","uploadImage","commandReversedParams","change","caption","getAttribute","getSuggestions","getClosestSelectedImageElement","FORMAT_SIDE_IMAGE","alt","discard","registerDescriptionCallback","previous","nodeBefore","resizeImage","detach","convertBlockImageToInline","editor","forEach","get","isEqual","*Set image text alternative:* %0","getContainedElement","createRange","_suggestionFactory","getCaptionFromImageModelElement","convertInlineImageToBlock","removeObject","shouldConvertImageType","start","width","imageStylePostApply","isInContent","isInlineImage","getSuggestionCallback","has","find","ImageCaptionUtils","isBlockImage","toggleImageCaption","ImageTextAlternativeEditing","model","imageStyle","imageBlock","toLowerCase","registerElementLabel","forceDefaultExecution","hasAttribute","afterInit","enableCommand","markInsertion","*Format:* %0","differ","imageTypeBlock","chain","imageStylePreApply","addObject","type","locale","ImageEditing","element","subType","plugins","newValue","filter","author","name","insertion","next","ImageResize","formatInline","commandName","markDeletion","registerCustomCallback","schema","getFirstRange","end","isBefore","_descriptionFactory","commandParams","ImageStyleEditing","getNearestSelectionRange","value","imageTypeInline","title","discardSuggestion","Block image to inline image","ImageBlockEditing","getSuggestion","join","head","selection","imageCaption","isCollapsed","createRangeOn","imageTextAlternative","formatBlock","imageInline","refresh","markBlockFormat","ImageUtils","accept","newRange","insertImage","format","hasSuggestion","ImageInlineEditing","*Set image width:* %0","findIndex"];var qr,$r;qr=Xr,$r=322,function(t){for(;--t;)qr.push(qr.shift())}(++$r);const Jr=function(t,e){return Xr[t-=0]};class Qr extends t.Plugin{[Jr("0x45")](){const t=this[Jr("0x26")];if(!t[Jr("0x53")][Jr("0x38")](Jr("0x50")))return;const n=t[Jr("0x53")][Jr("0x28")]("TrackChangesEditing"),o=t.plugins[Jr("0x28")](Jr("0x8")),s={},r=t[Jr("0x4f")];if(n[Jr("0x46")](Jr("0xb")),n[Jr("0x63")][Jr("0x42")](Jr("0x40"),(t=>Yo(r,"ELEMENT_IMAGE",t))),n[Jr("0x63")][Jr("0x42")](Jr("0x5"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x63")].registerElementLabel(Jr("0x19"),(()=>Yo(r,"ELEMENT_CAPTION"))),t[Jr("0x53")].has("ImageUploadEditing")&&n[Jr("0x46")](Jr("0x16")),t.plugins[Jr("0x38")](Jr("0x6c"))&&t[Jr("0x53")][Jr("0x38")](Jr("0xe"))&&(n[Jr("0x46")]("imageTypeInline",((e,s)=>{const r=o[Jr("0x1c")](t.model[Jr("0x15")][Jr("0x70")]);t[Jr("0x3e")][Jr("0x18")]((()=>{n[Jr("0x7")](r,{commandName:Jr("0x68"),commandParams:[s]},[],Jr("0x25"))}))})),n[Jr("0x46")](Jr("0x4a"),((e,s)=>{t[Jr("0x3e")][Jr("0x18")]((r=>{let x=o.getClosestSelectedImageElement(t[Jr("0x3e")][Jr("0x15")].selection),a=r[Jr("0x2")](x);const c=i.LivePosition[Jr("0x12")](a[Jr("0x32")],"toPrevious"),l=i.LivePosition[Jr("0x12")](a[Jr("0x61")],"toNext");n[Jr("0x43")]((()=>e(s))),x=o[Jr("0x1c")](t[Jr("0x3e")][Jr("0x15")][Jr("0x70")]),a=r.createRangeOn(x);const d=r[Jr("0x2c")](c,l);c[Jr("0x24")](),l[Jr("0x24")](),n[Jr("0x7")](x,{commandName:Jr("0x68"),commandParams:[]},[],Jr("0x2f")),d.start.isBefore(a[Jr("0x32")])&&n.markInsertion(r[Jr("0x2c")](d[Jr("0x32")],a[Jr("0x32")]),Jr("0x2f")),a[Jr("0x61")][Jr("0x62")](d[Jr("0x61")])&&n.markInsertion(r[Jr("0x2c")](a[Jr("0x61")],d[Jr("0x61")]),Jr("0x2f"))}))})),n[Jr("0x2d")][Jr("0x5e")](Jr("0x4"),Jr("0x2f"),Jr("0x6e"),(()=>{})),n[Jr("0x2d")][Jr("0x5e")](Jr("0x4"),"convertInlineImageToBlock","accept",(()=>{})),n[Jr("0x2d")].registerCustomCallback(Jr("0x4"),Jr("0x2f"),Jr("0x1f"),n[Jr("0x2d")][Jr("0x37")](Jr("0x4"),"",Jr("0x9"))),n[Jr("0x2d")].registerCustomCallback(Jr("0x58"),Jr("0x2f"),Jr("0x6e"),(()=>{})),n[Jr("0x2d")][Jr("0x5e")](Jr("0x58"),Jr("0x2f"),Jr("0x1f"),(([e])=>{const o=n._suggestionFactory.getSuggestionCallback(Jr("0x58"),"","discard");let s=e[Jr("0x32")],r=e[Jr("0x61")];const i=t.model.schema[Jr("0x66")](s,"backward"),x=t.model[Jr("0x5f")][Jr("0x66")](r,"forward");i[Jr("0x1")]&&(s=i[Jr("0x32")]),x[Jr("0x1")]&&(r=x[Jr("0x61")]),o([t[Jr("0x3e")][Jr("0x2c")](s,r)])})),n[Jr("0x2d")].registerCustomCallback(Jr("0x4"),"convertInlineImageToBlock",Jr("0x4b"),c),n[Jr("0x2d")].registerCustomCallback(Jr("0x58"),Jr("0x2f"),"chain",c)),t[Jr("0x53")][Jr("0x38")]("ImageCaptionEditing")&&(n[Jr("0x46")](Jr("0x3c"),((e,s)=>{const r=t.plugins.get(Jr("0x3a"));let i=o[Jr("0x1c")](t[Jr("0x3e")][Jr("0x15")].selection),x=r[Jr("0x2e")](i);t[Jr("0x3e")][Jr("0x18")]((()=>{if(x)return void n[Jr("0x5d")](t.model.createRangeOn(x));const a=o.isBlockImage(i);e(s),i=o[Jr("0x1c")](t[Jr("0x3e")][Jr("0x15")][Jr("0x70")]),x=r[Jr("0x2e")](i),n[Jr("0x47")](t[Jr("0x3e")].createRangeOn(x),a?null:Jr("0x0"))}))})),n[Jr("0x2d")][Jr("0x5e")](Jr("0x58"),Jr("0x0"),Jr("0x4b"),c)),t[Jr("0x53")][Jr("0x38")](Jr("0x65"))){n.enableCommand(Jr("0x3f"),((s,r)=>{const i=t[Jr("0x53")].get("Users").me,x=t.commands[Jr("0x28")]("imageStyle");let a=o.getClosestSelectedImageElement(t[Jr("0x3e")].document[Jr("0x70")]),c=t.model[Jr("0x2")](a),l=x.value;if(l==r[Jr("0x67")])return;const d={commandName:Jr("0x3f"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x3e")].change((()=>{if(n[Jr("0x1b")]()[Jr("0x55")]((t=>t[Jr("0x35")]&&i==t[Jr("0x56")]&&(Jr("0x4")==t[Jr("0x4e")]||Jr("0x5b")==t.type)&&(Jr("0x4c")==t[Jr("0x52")]||Jr("0x34")==t[Jr("0x52")])&&t.getFirstRange()[Jr("0x29")](c)))[Jr("0x27")]((t=>n[Jr("0x6a")](t[Jr("0x6f")]))),a=o[Jr("0x1c")](t[Jr("0x3e")].document[Jr("0x70")]),c=t[Jr("0x3e")][Jr("0x2")](a),x[Jr("0x6")](),t.commands[Jr("0x28")]("imageTypeInline")[Jr("0x6")](),t[Jr("0x14")][Jr("0x28")](Jr("0x4a"))[Jr("0x6")](),l=x[Jr("0x67")],l!=r[Jr("0x67")])return o[Jr("0x36")](a)&&x[Jr("0x31")](r[Jr("0x67")],a)?(s(r),a=o[Jr("0x1c")](t[Jr("0x3e")].document[Jr("0x70")]),void n[Jr("0x7")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x3b")](a)?n[Jr("0x7")](a,d,[],"imageStylePostApply"):n.markInlineFormat(c,d,"imageStylePostApply"))}))}));for(const e of t.plugins[Jr("0x28")](Jr("0x65")).normalizedStyles)s[e[Jr("0x57")]]=e[Jr("0x69")][Jr("0x41")]();n[Jr("0x2d")].registerCustomCallback("formatBlock",Jr("0x4c"),"join",(()=>{})),n[Jr("0x2d")][Jr("0x5e")](Jr("0x4"),Jr("0x34"),Jr("0x6e"),(()=>{})),n[Jr("0x2d")].registerCustomCallback(Jr("0x5b"),Jr("0x34"),Jr("0x6e"),(()=>{})),n[Jr("0x2d")][Jr("0x5e")](Jr("0x4"),"imageStylePreApply",Jr("0x9"),(()=>{})),n[Jr("0x2d")].registerCustomCallback(Jr("0x4"),Jr("0x4c"),Jr("0x1f"),((t,e)=>{n._suggestionFactory.getSuggestionCallback("formatBlock","",Jr("0x9"))(t,{commandName:e[Jr("0x5c")],commandParams:e[Jr("0x17")]})})),n[Jr("0x2d")][Jr("0x5e")](Jr("0x4"),Jr("0x4c"),Jr("0x4b"),c)}const x=[{type:Jr("0x4"),subType:"imageStylePreApply"},{type:Jr("0x58"),subType:Jr("0x0")},{type:Jr("0x4"),subType:Jr("0x2f")},{type:"insertion",subType:Jr("0x2f")}];function a(t,e){const s=x[Jr("0x10")]((({type:e,subType:n})=>t[Jr("0x4e")]==e&&t[Jr("0x52")]==n)),r=x[Jr("0x10")]((({type:t,subType:n})=>e[Jr("0x4e")]==t&&e[Jr("0x52")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e[Jr("0x60")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,Jr("0x58")).filter((({suggestion:t,meta:e})=>e[Jr("0x13")]&&Jr("0x2f")==t[Jr("0x52")]));if(t.length>1&&a[Jr("0x61")][Jr("0x29")](i[Jr("0x32")]))return!0;if(1==t[Jr("0x11")]&&(i[Jr("0x32")][Jr("0x29")](a.end)||i.end[Jr("0x29")](a[Jr("0x32")])))return!0}if(3==s&&3==r&&i[Jr("0x32")][Jr("0x62")](a.start)){const t=i[Jr("0x61")].nodeAfter,e=a.start[Jr("0x22")];return o[Jr("0x3b")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x3e")][Jr("0x15")].registerPostFixer((()=>{let e=!1;const s=Array.from(t[Jr("0x3e")][Jr("0x15")][Jr("0x49")].getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if("suggestion"==s&&n[Jr("0xd")](a)){if(Jr("0x4")==i&&(Jr("0x4c")==x||Jr("0x34")==x)){const t=n[Jr("0x6d")](a);if(r.newRange){const s=t.getFirstRange().getContainedElement();if(o[Jr("0x3b")](s))continue;n[Jr("0x6a")](t),e=!0}}if(Jr("0x58")==i&&Jr("0x0")==x&&!r[Jr("0xa")]){const t=n[Jr("0x6d")](a);t[Jr("0x59")]&&t.next[Jr("0x35")]&&(n.discardSuggestion(t[Jr("0x59")]),e=!0)}}}return e})),t.plugins[Jr("0x38")](Jr("0x5a"))&&n[Jr("0x46")](Jr("0x23"),((e,s)=>{const r=o[Jr("0x1c")](t[Jr("0x3e")].document[Jr("0x70")]);r.getAttribute(Jr("0x33"))!=s[Jr("0x33")]&&t[Jr("0x3e")][Jr("0x18")]((()=>{n[Jr("0x7")](r,{commandName:Jr("0x23"),commandParams:[s]})}))})),t[Jr("0x53")][Jr("0x38")](Jr("0x3d"))&&n.enableCommand(Jr("0x3"),((e,s)=>{const r=o[Jr("0x1c")](t[Jr("0x3e")].document.selection);(r[Jr("0x44")](Jr("0x1e"))?r[Jr("0x1a")](Jr("0x1e")):"")!=s[Jr("0x54")]&&t[Jr("0x3e")][Jr("0x18")]((()=>{n[Jr("0x7")](r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n._descriptionFactory[Jr("0x20")]((t=>{if(x[Jr("0x39")]((({type:e,subType:n})=>t.type==e&&t[Jr("0x52")]==n)))return t[Jr("0x21")]?{}:void 0})),n[Jr("0x63")][Jr("0x20")]((t=>{if("insertion"==t[Jr("0x4e")]||"deletion"==t[Jr("0x4e")]){const e=t[Jr("0x2b")]();if(e&&e.is(Jr("0x51"),Jr("0x19")))return{type:Jr("0x58")==t[Jr("0x4e")]?Jr("0x4d"):Jr("0x30"),element:e,quantity:1}}})),n[Jr("0x63")].registerDescriptionCallback((t=>Jr("0x4")==t.type&&"convertInlineImageToBlock"==t[Jr("0x52")]?{type:Jr("0xc"),content:"Inline image to block image"}:Jr("0x4")==t.type&&Jr("0x25")==t[Jr("0x52")]?{type:Jr("0xc"),content:Jr("0x6b")}:void 0)),n[Jr("0x63")][Jr("0x20")]((t=>{const{data:e}=t;if(e){if(Jr("0x3f")==e[Jr("0x5c")]){const t=e[Jr("0x64")][0].value;return n="side"===t?Yo(r,Jr("0x1d")):s[t]||t,{type:"format",content:Yo(r,Jr("0x48"),n)}}if("imageTextAlternative"==e[Jr("0x5c")]){const t=e[Jr("0x64")][0][Jr("0x54")];return t?{type:Jr("0xc"),content:Yo(r,Jr("0x2a"),'"'+t+'"')}:{type:Jr("0xc"),content:Yo(r,"*Remove image text alternative*")}}if("resizeImage"==e[Jr("0x5c")]){const t=e[Jr("0x64")][0][Jr("0x33")];return t?{type:Jr("0xc"),content:Yo(r,Jr("0xf"),t)}:{type:Jr("0xc"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["registerCustomCallback","_suggestionFactory","Users","discard","model","has","getSelectedElement","getSuggestionCallback","markBlockFormat","document","commandParams","getContainedElement","plugins","get","registerDescriptionCallback","ImageEditing","source","change","handleReplaceImageCommand","formatBlock","TrackChangesEditing","selection","handleSuggestionDescription","afterInit","_descriptionFactory","subType","editor","accept","src","commandName","replaceImageSource"];var Yr,ti;Yr=Zr,ti=424,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x2")](){if(!this.editor[ei("0x16")][ei("0xf")](ei("0x19")))return;const t=this[ei("0x5")][ei("0x16")][ei("0x17")](ei("0x1e"));t.enableCommand("replaceImageSource",((t,e)=>this[ei("0x1c")](t,e))),t[ei("0xb")][ei("0xa")]("formatBlock",ei("0x9"),ei("0x6"),t[ei("0xb")][ei("0x11")](ei("0x1d"),null,ei("0xd"))),t[ei("0xb")][ei("0xa")]("formatBlock","replaceImageSource",ei("0xd"),t._suggestionFactory.getSuggestionCallback(ei("0x1d"),null,"accept")),t[ei("0x3")][ei("0x18")]((t=>this[ei("0x1")](t)))}[ei("0x1c")](t,e){const n=this.editor[ei("0x16")][ei("0x17")]("TrackChangesEditing"),o=this[ei("0x5")][ei("0xe")][ei("0x13")][ei("0x0")][ei("0x10")]();this[ei("0x5")][ei("0xe")][ei("0x1b")]((()=>{let s=o.getAttribute(ei("0x7"));const r=this[ei("0x5")].plugins[ei("0x17")](ei("0xc")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t[ei("0x15")]();if("replaceImageSource"===t[ei("0x4")]&&e===o){t.author!==r&&t[ei("0xd")](),s=t.data[ei("0x14")][0][ei("0x1a")];break}}t(e),n[ei("0x12")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0x9"))}))}[ei("0x1")](t){const{data:e}=t;if(e&&ei("0x9")===e[ei("0x8")]){const t="*Format:* replace image URL";return{type:"format",content:Yo(this[ei("0x5")].locale,t)}}}}const oi=["dataInsert","_trackChangesExecuted","bind","enableCommand","importWord","lowest","forEach","_setSuggestionData","collaboration_features","TrackChangesEditing","afterInit","get","execute","high","plugins","_trackChangesValueDuringImport","track_changes","editor","commands","listenTo"];var si,ri;si=oi,ri=299,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x10")]=!1,this[ii("0x2")]=!1}[ii("0xb")](){const t=this.editor,e=t[ii("0x13")][ii("0xc")](ii("0x5")),n=t[ii("0x13")][ii("0xc")]("trackChanges");e&&(e.on(ii("0xd"),((t,[,e])=>{this[ii("0x10")]=n.value,e[ii("0x9")][ii("0x11")]=!this[ii("0x10")]}),{priority:ii("0xe")}),this[ii("0x0")](e,ii("0x1"),this._handleImportedData[ii("0x3")](this)),this[ii("0x0")](e,ii("0x1"),(()=>{this._trackChangesExecuted&&(n[ii("0xd")](),this[ii("0x2")]=!1)}),{priority:ii("0x6")}),t[ii("0xf")][ii("0xc")]("TrackChangesEditing")[ii("0x4")](ii("0x5")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this.editor[ii("0x13")][ii("0xc")]("trackChanges"),s=o.value;this[ii("0x10")]!==s&&(o[ii("0xd")](),this[ii("0x2")]=!0),n&&n[ii("0x7")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x12")][ii("0xf")][ii("0xc")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x5")}}};this[ii("0x12")][ii("0xf")][ii("0xc")](ii("0xa"))[ii("0x8")](s)}))}}const ai=["document","blockIndent","outdentBlock","schema","from","commandName","format","getSelectedBlocks","registerDescriptionCallback","indent","outdent","get","indentBlock","has","getItemLabel","checkAttribute","getItems","model","plugins","enableCommand","editor","_descriptionFactory","IndentBlock","markBlockFormat","IndentEditing","change"];var ci,li;ci=ai,li=374,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{afterInit(){const t=this[di("0xa")],e=t[di("0x8")][di("0x1")]("TrackChangesEditing");t[di("0x8")][di("0x3")](di("0xe"))&&(e.enableCommand(di("0x19")),e[di("0x9")](di("0x0")));const n=t.locale;if(t[di("0x8")][di("0x3")](di("0xc"))){for(const n of["indentBlock",di("0x12")])e.enableCommand(n,(()=>{const o=Array[di("0x14")](this[di("0xa")].model[di("0x10")].selection[di("0x17")]()).filter((t=>this[di("0xa")][di("0x7")][di("0x13")][di("0x5")](t,di("0x11"))));t[di("0x7")][di("0xf")]((()=>{for(const t of o)e[di("0xd")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x2")})}))}));e[di("0xb")][di("0x18")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[di("0x15")]&&di("0x12")!=o[di("0x15")])return;const s=t[di("0x6")]()[0],r=e._descriptionFactory[di("0x4")](s);return di("0x2")==o[di("0x15")]?{type:"format",content:Yo(n,"*Indent:* %0",r)}:di("0x12")==o[di("0x15")]?{type:di("0x16"),content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["editor","plugins","requires","get","input","TrackChangesEditing","enableCommand","init"];gi=fi,mi=302,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x4")](){return[Vs.Input]}[hi("0x1")](){this[hi("0x2")][hi("0x3")][hi("0x5")](hi("0x7"))[hi("0x0")](hi("0x6"))}}const bi=["getFirstPosition","get","getRanges","editor","unlink","*Set link:* %0","selection","document","format","plugins","hasAttribute","enableCommand","commandName","link","afterInit","has","model","markInlineFormat","_descriptionFactory","from","TrackChangesEditing","registerDescriptionCallback","linkHref","isCollapsed","*Remove link*"];var Ei,_i;Ei=bi,_i=213,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x1")](){const t=this[Ti("0xf")];if(!t.plugins[Ti("0x2")]("LinkEditing"))return;const e=t[Ti("0x15")][Ti("0xd")](Ti("0x7"));e[Ti("0x17")](Ti("0x0"),((n,o)=>{const s=t[Ti("0x3")][Ti("0x13")][Ti("0x12")];let r=[];if(s.isCollapsed){if(!s[Ti("0x16")](Ti("0x9")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xc")](),Ti("0x9"),s.getAttribute("linkHref"),t.model);r=[e]}}else r=Array[Ti("0x6")](s[Ti("0xe")]());t[Ti("0x3")].change((()=>{for(const t of r)e[Ti("0x4")](t,{commandName:Ti("0x0"),commandParams:[o]})}))})),e.enableCommand(Ti("0x10"),(()=>{const n=this[Ti("0xf")].model,o=n[Ti("0x13")][Ti("0x12")];n.change((()=>{let n=[];n=o[Ti("0xa")]?[(0,Vs.findAttributeRange)(o[Ti("0xc")](),"linkHref",o.getAttribute(Ti("0x9")),t[Ti("0x3")])]:ms("linkHref",o.getFirstRange(),t[Ti("0x3")]);for(const t of n)e[Ti("0x4")](t,{commandName:Ti("0x10"),commandParams:[]})}))})),e[Ti("0x5")][Ti("0x8")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x0")==n[Ti("0x18")]){const t=n.commandParams[0];return{type:"format",content:Yo(o,Ti("0x11"),'"'+t+'"')}}return Ti("0x10")==n[Ti("0x18")]?{type:Ti("0x14"),content:Yo(o,Ti("0xb"))}:void 0}}))}}const yi=["editor","indentList","model","push","execute","afterInit","getSelectedBlocks","ELEMENT_LIST_ITEM","filter","_selectedElements","registerElementLabel","todoListChecked","TodoListEditing","length","commandParams","value","commandName","enableCommand","blockName","plugins","isObject","before","listItem","checkTodoList","*Indent:* %0","from","change","format","getAttribute","nextSibling","numberedList","previousSibling","todoList","element","ELEMENT_NUMBERED_LIST","name","selection","forceValue","outdentList","add","end","todo","parent","bulletedList","markBlockFormat","commands","checkChild","locale","findIndex","*Outdent:* %0","createPositionAt","slice","document","ListEditing","numbered","has","listIndent","paragraph","_descriptionFactory","get"];var ki,Ai;ki=yi,Ai=209,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x24")](){const t=this[vi("0x1f")],e=t[vi("0x12")];if(!t[vi("0x32")][vi("0x1a")](vi("0x18")))return;const n=t[vi("0x32")][vi("0x1e")]("TrackChangesEditing"),o=t[vi("0x32")][vi("0x1a")](vi("0x2b"));function s(e){return()=>{const o=t[vi("0x21")][vi("0x17")][vi("0x7")],s=t[vi("0x10")][vi("0x1e")](e);if(s[vi("0x2e")])return void t[vi("0x23")](vi("0x1c"),{});const r=e[vi("0x16")](0,-4),i=function(t,e,n){let o=Array[vi("0x38")](t).filter((t=>{return e=t,(o=n)[vi("0x11")](e[vi("0xd")],vi("0x35"))&&!o[vi("0x33")](e);var e,o}));o=o[vi("0x27")]((t=>!t.is(vi("0x4"),vi("0x35"))||t[vi("0x3b")]("listType")!=e));const s=new Set;for(const t of o)t.is(vi("0x4"),vi("0x35"))?s[vi("0xa")](Si(t)):s.add(t);return Array[vi("0x38")](s)}(o[vi("0x25")](),r,t[vi("0x21")].schema);t.model.change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0x2e")]}],formatGroupId:vi("0x31")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x38")](t);const n=e[vi("0x13")]((t=>vi("0x35")!=t[vi("0x6")]));return n>-1&&(e=e[vi("0x16")](0,n)),e}(t[vi("0x21")][vi("0x17")][vi("0x7")][vi("0x25")]()),s=t.model.createRange(t.model[vi("0x15")](o[0],vi("0x34")),t[vi("0x21")].createPositionAt(o[o[vi("0x2c")]-1],vi("0xb")));t[vi("0x21")].change((()=>{n[vi("0xf")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x1b")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x0")];for(;t&&t.getAttribute(vi("0x1b"))>n[vi("0x3b")]("listIndent");)e.add(t),t=t.nextSibling}return Array[vi("0x38")](e)}(o))}))}}n[vi("0x30")]("numberedList",s(vi("0x1"))),n[vi("0x30")](vi("0xe"),s(vi("0xe"))),o&&n[vi("0x30")](vi("0x3"),s("todoList")),n[vi("0x30")]("indentList",r("indentList")),n[vi("0x30")](vi("0x9"),r(vi("0x9"))),o&&n[vi("0x30")](vi("0x36"),(()=>{const e=t[vi("0x10")][vi("0x1e")]("checkTodoList"),o=Array[vi("0x38")](e[vi("0x28")]);o[vi("0x27")]((t=>t[vi("0x3b")](vi("0x2a"))!=e[vi("0x2e")])),t[vi("0x21")][vi("0x39")]((()=>{for(const t of o)n[vi("0xf")](t,{commandName:vi("0x36"),commandParams:[{forceValue:!e[vi("0x2e")]}]})}))})),n[vi("0x1d")][vi("0x29")](vi("0x35"),(t=>Yo(e,vi("0x26"),t))),n[vi("0x1d")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0x1")==n[vi("0x2f")]||vi("0xe")==n[vi("0x2f")]||vi("0x3")==n[vi("0x2f")])switch(n.commandName.replace("List","")){case"bulleted":return o(Yo(e,"ELEMENT_BULLETED_LIST"));case vi("0x19"):return o(Yo(e,vi("0x5")));case vi("0xc"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if(vi("0x20")==n.commandName)return{type:vi("0x3a"),content:Yo(e,vi("0x37"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x9")==n[vi("0x2f")])return{type:vi("0x3a"),content:Yo(e,vi("0x14"),Yo(e,vi("0x26")))};if(vi("0x36")==n[vi("0x2f")])return n[vi("0x2d")][0][vi("0x8")]?{type:"format",content:Yo(e,"*Check item*")}:{type:vi("0x3a"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:vi("0x3a"),content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t[vi("0x3b")](vi("0x1b"));if(0==e)return t;let n=t;for(;t[vi("0x2")]&&t[vi("0x2")].is("element",vi("0x35"));){const o=t.previousSibling[vi("0x3b")]("listIndent");if(o==e)n=t[vi("0x2")];else if(o<e)break;t=t[vi("0x2")]}return n}function Ii(t){const e=[];if(t.is(vi("0x4"),vi("0x35"))&&t.getAttribute("listIndent")>0){let n=t.nextSibling;for(;n&&vi("0x35")==n.name&&n.getAttribute(vi("0x1b"))==t.getAttribute(vi("0x1b"));)e[vi("0x22")](n),n=n[vi("0x0")]}return e}const Li=["_getSuggestionBlocks","from","createPositionAt","replace","document","type","reversed","*Change to:* %0","forward","config","_LIST_","list.properties","flat","listStyle","styles","backward","createRange","ListPropertiesEditing","ListUtils","_getTranslationKeyForListStyle","commandParams","before","handleListReversedCommand","toUpperCase","plugins","change","registerDescriptionCallback","TrackChangesEditing","editor","handleDescriptions","map","getLastPosition","listReversed","length","listStart","listItem","_getSuggestionBlocksForListStyle","locale","getSelectedBlocks","numbered","handleListStyleCommand","getListTypeFromListStyleType","push","listType","ELEMENT_","startIndex","filter","markMultiRangeBlockFormat","enableCommand","getAttribute","get","getSiblingNodes","element","selection","getFirstPosition","model","afterInit","parent","format","*Format:* set start index to %0","has","*Format:* set order to regular"];var Ni,Mi;Ni=Li,Mi=379,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x31")](){if(!this[wi("0x15")][wi("0x11")][wi("0x35")](wi("0xa")))return;const t=this.editor[wi("0x2")].get(wi("0x4")),e=this[wi("0x15")].plugins[wi("0x2b")](wi("0x14"));t[wi("0x7")]&&e[wi("0x29")](wi("0x6"),this[wi("0x21")].bind(this)),t.reversed&&e[wi("0x29")](wi("0x19"),this[wi("0xf")].bind(this)),t[wi("0x26")]&&e[wi("0x29")](wi("0x1b"),this.handleListStartCommand.bind(this)),e._descriptionFactory[wi("0x13")](this[wi("0x16")].bind(this))}[wi("0x21")](t,e={}){const n=this[wi("0x15")].plugins[wi("0x2b")](wi("0x14")),o=this._getSuggestionBlocksForListStyle();this[wi("0x15")].model[wi("0x12")]((()=>{n[wi("0x28")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x3c")]}],formatGroupId:wi("0x6")})}))}handleListReversedCommand(t,e={}){const n=this[wi("0x15")][wi("0x11")][wi("0x2b")](wi("0x14")),o=this[wi("0x37")]((t=>t.is("element","listItem")&&wi("0x20")===t[wi("0x2a")](wi("0x24"))));if(o.length<1)return;const s=o.map((t=>this[wi("0x15")][wi("0x30")].createRange(this[wi("0x15")][wi("0x30")][wi("0x39")](t,wi("0xe")),this[wi("0x15")].model[wi("0x39")](t,0))));this[wi("0x15")].model.change((()=>{n[wi("0x28")](s,{commandName:"listReversed",commandParams:[{reversed:e[wi("0x3d")]}],formatGroupId:wi("0x19")})}))}handleListStartCommand(t,e={}){const n=this[wi("0x15")][wi("0x11")][wi("0x2b")](wi("0x14")),o=this[wi("0x37")]((t=>t.is(wi("0x2d"),wi("0x1c"))&&wi("0x20")===t[wi("0x2a")](wi("0x24"))));if(o[wi("0x1a")]<1)return;const s=o[wi("0x17")]((t=>this.editor[wi("0x30")][wi("0x9")](this[wi("0x15")][wi("0x30")][wi("0x39")](t,wi("0xe")),this.editor[wi("0x30")][wi("0x39")](t,0))));this[wi("0x15")][wi("0x30")][wi("0x12")]((()=>{n[wi("0x28")](s,{commandName:wi("0x1b"),commandParams:[{startIndex:e[wi("0x26")]}],formatGroupId:"listStart"})}))}handleDescriptions(t){const e=this[wi("0x15")][wi("0x1e")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wi("0x6"):o=wi("0x0"),s={type:wi("0x33"),content:Yo(e,o,Yo(e,this[wi("0xc")](n.commandParams[0].type)))};break;case wi("0x19"):o=n.commandParams[0].reversed?"*Format:* set order to reversed":wi("0x36"),s={type:wi("0x33"),content:Yo(e,o)};break;case wi("0x1b"):o=wi("0x34"),s={type:"format",content:Yo(e,o,n[wi("0xd")][0][wi("0x26")])}}return s}[wi("0x1d")](){var t,e,n,o;const s=this[wi("0x15")].plugins[wi("0x2b")](wi("0xb"));let r=Array[wi("0x38")](this[wi("0x15")][wi("0x30")][wi("0x3b")][wi("0x2e")][wi("0x1f")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x2d"),wi("0x1c")))&&r.unshift(...s[wi("0x2c")](this[wi("0x15")].model.document[wi("0x2e")].getFirstPosition(),"backward")),(null===(e=r[r[wi("0x1a")]-1])||void 0===e?void 0:e.is("element",wi("0x1c")))&&r[wi("0x23")](...s[wi("0x2c")](this[wi("0x15")][wi("0x30")].document[wi("0x2e")][wi("0x18")](),wi("0x1"))),r=[...new Set(r)],(null===(o=null===(n=this.editor.model[wi("0x3b")][wi("0x2e")][wi("0x2f")]())||void 0===n?void 0:n[wi("0x32")])||void 0===o?void 0:o.is(wi("0x2d"),"listItem"))&&(r=r[wi("0x27")]((t=>t.is(wi("0x2d"),"listItem")))),r}[wi("0x37")](t){const e=this[wi("0x15")].plugins.get(wi("0xb"));let n=Array[wi("0x38")](this.editor.model.document[wi("0x2e")][wi("0x1f")]()).filter(t)[wi("0x17")]((t=>{const n=this[wi("0x15")].model[wi("0x39")](t,0);return[...e[wi("0x2c")](n,wi("0x8")),...e[wi("0x2c")](n,"forward")]}))[wi("0x5")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return wi("0x25")+this[wi("0x15")].plugins[wi("0x2b")](wi("0xb"))[wi("0x22")](t)[wi("0x10")]()+wi("0x3")+t[wi("0x10")]()[wi("0x3a")](/-/g,"_")}}const Fi=["elementToElement","div","for","media","high","downcastDispatcher","attribute:url:media","TrackChangesEditing","mediaEmbed","locale","options","enableCommand","_descriptionFactory","MediaEmbedEditing","get","ELEMENT_MEDIA","plugins","registerElementLabel","createEmptyElement","editor"];var Pi,Di;Pi=Fi,Di=412,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this[Bi("0x7")];if(!t[Bi("0x4")].has(Bi("0x1")))return;const e=t[Bi("0x4")][Bi("0x2")](Bi("0xf")),n=t[Bi("0x11")];e[Bi("0x13")](Bi("0x10")),e[Bi("0x0")][Bi("0x5")](Bi("0xb"),(t=>Yo(n,Bi("0x3"),t))),t.conversion[Bi("0xa")]("dataDowncast")[Bi("0x8")]({model:Bi("0xb"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Bi("0x6")](Bi("0x9"))},converterPriority:"high"}),t.data[Bi("0xd")].on(Bi("0xe"),((t,e,n)=>{n[Bi("0x12")].showSuggestionHighlights&&t.stop()}),{priority:Bi("0xc")})}}const Ui=["has","MentionEditing","plugins","afterInit","TrackChangesEditing","get"];var Gi,Hi;Gi=Ui,Hi=203,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x4")](){const t=this.editor;t[zi("0x3")][zi("0x1")](zi("0x2"))&&t[zi("0x3")][zi("0x0")](zi("0x5")).enableCommand("mention")}}const Vi=["registerElementLabel","has","PageBreakEditing","pageBreak","TrackChangesEditing","_descriptionFactory","get","locale","enableCommand","ELEMENT_PAGE_BREAK","plugins"];var Ki,Xi;Ki=Vi,Xi=248,function(t){for(;--t;)Ki.push(Ki.shift())}(++Xi);const qi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[qi("0x6")](qi("0x7")))return;t[qi("0x4")][qi("0x0")](qi("0x9"))[qi("0x2")]("pageBreak");const e=t[qi("0x4")][qi("0x0")]("TrackChangesEditing"),n=t[qi("0x1")];e[qi("0xa")][qi("0x5")](qi("0x8"),(t=>Yo(n,qi("0x3"),t)))}}const Ji=["toViewPosition","ELEMENT_PARAGRAPH","nodeAfter","enableCommand","bindElementToMarker","$text","schema","highest","registerDescriptionCallback","name","markBlockFormat","consume","locale","commandName","from","plugins","markerRange","parent","isTouching","change","isLimit","data","showSuggestionHighlights","addMarker:suggestion:insertion","isObject","paragraph","get","*Change to:* %0","span","model","getItemLabel","*Insert:* %0","insert","afterInit","isBlock","editor","selection","markerName","writer","options","includes","format","_descriptionFactory","editing","has","ck-suggestion-marker--active","mapper","type","document","insertParagraph","insertion","TrackChangesEditing","blockName","addClass","checkChild","downcastDispatcher","getSelectedBlocks","registerElementLabel"];var Qi,Zi;Qi=Ji,Zi=269,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x36")](){const t=this[Yi("0x38")];if(!t.plugins[Yi("0x7")]("Paragraph"))return;const e=t[Yi("0x21")],n=t[Yi("0x24")].get(Yi("0xe"));n._descriptionFactory[Yi("0x14")]("paragraph",(t=>Yo(e,Yi("0x16"),t))),n[Yi("0x18")]("paragraph",((e,o={})=>{const s=t[Yi("0x32")][Yi("0xb")],r=o[Yi("0x39")]||s[Yi("0x39")],i=Array[Yi("0x23")](r[Yi("0x13")]()).filter((t=>{return e=t,(n=this[Yi("0x38")].model[Yi("0x1b")])[Yi("0x11")](e[Yi("0x26")],"paragraph")&&!n[Yi("0x2d")](e)&&Yi("0x2e")!=e[Yi("0x1e")];var e,n}));t[Yi("0x32")][Yi("0x28")]((()=>{for(const t of i)n[Yi("0x1f")](t,{commandName:Yi("0x2e"),commandParams:[],formatGroupId:Yi("0xf")},fs(t))}))})),n[Yi("0x5")][Yi("0x1d")]((t=>{const{data:n}=t;if(n&&Yi("0x2e")==n[Yi("0x22")])return{type:Yi("0x4"),content:Yo(e,Yi("0x30"),Yo(e,Yi("0x16")))}})),n.enableCommand(Yi("0xc")),t[Yi("0x6")].downcastDispatcher.on(Yi("0x2c"),ex(t),{priority:Yi("0x1c")}),t[Yi("0x2a")][Yi("0x12")].on(Yi("0x2c"),((e,n,o)=>{o[Yi("0x2")][Yi("0x2b")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x1c")});const o=n[Yi("0x5")];o[Yi("0x1d")]((n=>{if(Yi("0xd")!==n[Yi("0xa")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x27")](r)||!s[Yi("0x17")])return;const i=t[Yi("0x32")][Yi("0x1b")],x=s[Yi("0x17")];return i[Yi("0x37")](x)&&!i[Yi("0x29")](x)&&i.checkChild(x,Yi("0x1a"))?{type:Yi("0xd"),content:Yo(e,Yi("0x34"),o[Yi("0x33")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Yi("0x2f")](Yi("0xe")),i=o[Yi("0x25")].start,x=o.markerRange.end,a=t[Yi("0x32")].schema;if(!i[Yi("0x27")](x)||!i[Yi("0x17")])return;const c=i[Yi("0x17")];if(a[Yi("0x37")](c)&&!a[Yi("0x29")](c)&&a.checkChild(c,"$text")){if(!s.consumable[Yi("0x20")](o[Yi("0x25")],n[Yi("0x1e")]))return;const t=s[Yi("0x1")].createUIElement(Yi("0x31"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0x9")][Yi("0x15")](x);e&&r.activeMarkers[Yi("0x3")](o[Yi("0x0")])&&s[Yi("0x1")][Yi("0x10")](Yi("0x8"),t),s.writer[Yi("0x35")](i,t),s[Yi("0x9")][Yi("0x19")](t,o[Yi("0x0")])}}}const nx=["_descriptionFactory","has","removeFormat","document","change","TrackChangesEditing","locale","getAttributes","format","getRanges","model","createRangeOn","editor","afterInit","getItems","isFormatting","commandName","markInlineFormat","from","getAttributeProperties","isCollapsed","plugins","*Remove all formatting*","schema","RemoveFormatEditing","selection"];var ox,sx;ox=nx,sx=258,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0xf")](){const t=this[rx("0xe")];if(!t[rx("0x17")][rx("0x3")](rx("0x0")))return;const e=t[rx("0x17")].get(rx("0x7"));e.enableCommand(rx("0x4"),(n=>{const o=t[rx("0xc")][rx("0x5")][rx("0x1")];o[rx("0x16")]?n():t[rx("0xc")][rx("0x6")]((()=>{const n=Array[rx("0x14")](o[rx("0xb")]());for(const o of n)for(const n of o[rx("0x10")]())xx(n,t.model[rx("0x19")])&&e[rx("0x13")](t.model[rx("0xd")](n),{commandName:rx("0x4"),commandParams:[]})}))})),e[rx("0x2")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0x4")==n[rx("0x12")])return{type:rx("0xa"),content:Yo(t[rx("0x8")],rx("0x18"))}}))}}function xx(t,e){for(const[n]of t[rx("0x9")]()){const t=e[rx("0x15")](n);if(t&&t[rx("0x11")])return!0}return!1}const ax=["RestrictedEditingModeEditing","acceptSuggestion","acceptSelectedSuggestions","discardAllSuggestions","enableCommand","goToPreviousRestrictedEditingException","TrackChangesEditing","plugins","discardSuggestion","get","acceptAllSuggestions","editor"];var cx,lx;cx=ax,lx=190,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{afterInit(){const t=this[dx("0x1")];if(!t[dx("0x9")].has(dx("0x2")))return;const e=t[dx("0x9")][dx("0xb")](dx("0x8"));e.enableCommand(dx("0x7")),e[dx("0x6")]("goToNextRestrictedEditingException");const n=t[dx("0x9")][dx("0xb")]("RestrictedEditingModeEditing");n[dx("0x6")]("trackChanges"),n[dx("0x6")](dx("0x3")),n.enableCommand(dx("0xa")),n[dx("0x6")](dx("0x0")),n[dx("0x6")](dx("0x5")),n[dx("0x6")](dx("0x4")),n.enableCommand("discardSelectedSuggestions")}}const gx=["addMarker:suggestion:insertion","toViewPosition","TrackChangesEditing","shiftEnter","ELEMENT_LINE_BREAK","merge","registerElementLabel","editing","enableCommand","softBreak","high","span","plugins","init","downcastDispatcher","split","addMarker:suggestion:deletion","markerName","model","options","createPositionBefore","mapper","data","_descriptionFactory","element","showSuggestionHighlights","get","writer","createUIElement","addClass","includes","bindElementToMarker","insert","consumable","name","requires","markerRange","activeMarkers","getItems"];var mx,fx;mx=gx,fx=463,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x1")](){return[nr.ShiftEnter]}[hx("0x12")](){const t=this.editor,e=t[hx("0x11")].get(hx("0x7"));e[hx("0xd")](hx("0x8")),t[hx("0xc")][hx("0x13")].on(hx("0x5"),bx(t),{priority:hx("0xf")}),t[hx("0xc")][hx("0x13")].on(hx("0x15"),bx(t),{priority:hx("0xf")}),t[hx("0x1b")].downcastDispatcher.on("addMarker:suggestion",((e,n,o)=>{o[hx("0x18")][hx("0x1e")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x1c")][hx("0xb")](hx("0xe"),(e=>Yo(t.locale,hx("0x9"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[hx("0x1f")]("TrackChangesEditing");if(!s[hx("0x26")].test(o[hx("0x2")],n[hx("0x0")]))return;const i=t[hx("0x17")];for(const t of o[hx("0x2")][hx("0x4")]()){if(!t.is(hx("0x1d"),hx("0xe")))continue;const n="deletion"==o[hx("0x16")][hx("0x14")](":")[1]?hx("0xa"):hx("0x14"),x=s[hx("0x20")][hx("0x21")](hx("0x10"),{class:"ck-suggestion-marker-"+n}),a=s[hx("0x1a")][hx("0x6")](i[hx("0x19")](t));e&&r[hx("0x3")][hx("0x23")](o.markerName)&&s.writer[hx("0x22")]("ck-suggestion-marker--active",x),s[hx("0x20")][hx("0x25")](a,x),s.mapper[hx("0x24")](x,o[hx("0x16")])}}}const Ex=["format","plugins","afterInit","document","StandardEditingModeEditing","restrictedEditingException","commandParams","registerDescriptionCallback","markInlineFormat","editor","has","locale","get","isCollapsed","selection","getRanges","FORMAT_RESTRICTED_DISABLED","commands","forceValue","enableCommand","TrackChangesEditing","commandName"];var _x,Tx;_x=Ex,Tx=318,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0xe")](){const t=this[Cx("0x15")],e=t.model,n=t[Cx("0x1")];if(!t[Cx("0xd")][Cx("0x0")](Cx("0x10")))return;const o=t[Cx("0xd")][Cx("0x2")](Cx("0xa")),s=Cx("0x11"),r=t[Cx("0x7")][Cx("0x2")](s);o[Cx("0x9")](s,((t,n={})=>{const i=e[Cx("0xf")][Cx("0x4")];if(i[Cx("0x3")])return void t(n);const x=void 0!==n[Cx("0x8")]?n[Cx("0x8")]:!r.value;e.change((()=>{const t=Array.from(i[Cx("0x5")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x14")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Cx("0x13")]((t=>{const{data:e}=t;if(e&&e[Cx("0xb")]==s)return e[Cx("0x12")][0][Cx("0x8")]?{type:Cx("0xc"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Cx("0xc"),content:Yo(n,Cx("0x6"))}}))}}const kx=["styleName","commands","push","commandName","element","modelElements","Style","_descriptionFactory","getRanges","normalizeConfig","inline","toLowerCase","document","createRangeOn","isCollapsed","markInlineFormat","add","classes","*Remove format:* %0","name","isBlock","getAncestors","config","StyleUtils","getDefinitionsForView","get","plugins","markBlockFormat","selection","DataSchema","registerDescriptionCallback","TrackChangesEditing","editor","getAttribute","change","style","_getStyleDefinition","model","includes","has","every","afterInit","format","getSelectedBlocks","commandParams","_getRangesWithClasses"];var Ax,vx;Ax=kx,vx=183,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x2a")](){const t=this[Rx("0x21")];if(!t[Rx("0x1b")][Rx("0x28")](Rx("0x7")))return;const e=t[Rx("0x2")][Rx("0x1a")](Rx("0x24")),n=t[Rx("0x1b")][Rx("0x1a")](Rx("0x20")),o=t.locale,s=t.plugins[Rx("0x1a")](Rx("0x1e")),r=t[Rx("0x1b")].get(Rx("0x18"))[Rx("0xa")](s,t[Rx("0x17")].get("style.definitions"));n.enableCommand(Rx("0x24"),((o,{styleName:i})=>{const x=t[Rx("0x26")][Rx("0xd")][Rx("0x1d")],a=this[Rx("0x25")](i,r);if(!a)return;if(!e.enabledStyles.includes(i))return;if(x[Rx("0xf")]&&!a[Rx("0x15")])return void o({styleName:i});const c=!e.value[Rx("0x27")](a[Rx("0x14")]);if(a[Rx("0x15")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x16")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x27")](o[Rx("0x14")])){n[Rx("0x11")](o);break}}return n}(x[Rx("0x2c")](),a[Rx("0x6")]);t[Rx("0x26")][Rx("0x23")]((()=>{for(const t of e)n[Rx("0x1c")](t,{commandName:Rx("0x24"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array.from(x[Rx("0x9")]());if(!c){const n=Array.from(s[Rx("0x19")](a[Rx("0x5")],!1))[0][Rx("0x26")],o=[];for(const s of e){const e=this[Rx("0x0")](t[Rx("0x26")],s,a.classes,n);o[Rx("0x3")](...e)}e=o}t.model[Rx("0x23")]((()=>{for(const t of e)n[Rx("0x10")](t,{commandName:Rx("0x24"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x8")][Rx("0x1f")]((t=>{const{data:e}=t;if(e&&Rx("0x24")===e[Rx("0x4")])return e[Rx("0x2d")][0].forceValue?{type:Rx("0x2b"),content:Yo(o,"*Format:* %0",e[Rx("0x2d")][0].styleName[Rx("0xc")]())}:{type:Rx("0x2b"),content:Yo(o,Rx("0x13"),e[Rx("0x2d")][0][Rx("0x1")][Rx("0xc")]())}}))}_getStyleDefinition(t,e){let n=e.block.find((e=>e[Rx("0x14")]===t));return n||(n=e[Rx("0xb")].find((e=>e[Rx("0x14")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e.getItems()){const e=r[Rx("0x22")](o);e&&n[Rx("0x29")]((t=>e[Rx("0x12")].includes(t)))&&s[Rx("0x3")](t[Rx("0xe")](r))}return s}}const Ix=["insertTableRowAbove","insertTableRowBelow","removeTableRow","MAX_SAFE_INTEGER","removeClass","_getCoordsForCells","push","min","first","end","commands","execute","$graveyard","ELEMENT_TABLE_ROW","maxRow","getCellLocation","span","registerCustomCallback","insertTableColumnRight","element","length","ELEMENT_TABLE_COLUMN","mapper","createRangeIn","ELEMENT_TABLE","data","differ","minColumn","subType","rowspan","minRow","insertTable","ELEMENT_TABLE_WITH_TEXT","tableRow","_tablePostFixingSubtypes","above","max","has","accept","registerDescriptionCallback","toLowerCase","getColumnIndexes","options","classes","left","includes","createPositionAt","markMultiRangeDeletion","getRanges","writer","order","from","last","item","editor","removeTableColumn","substr","getChanges","plugins","cell","detach","values","startsWith","isEqual","isInContent","isTouching","discard","isIntersectingWithRange","tablePaste","ELEMENT_TABLE_COLUMN_WITH_TEXT","filter","TrackChangesEditing","createRangeOn","$textProxy","downcastDispatcher","MIN_SAFE_INTEGER","addRange","deletion","insert","maxColumn","locale","type","every","addMarker:suggestion","root","model","some","forceValue","document","*Remove:* %0","findAncestor","tableCell","nodeAfter","suggestion","getSelectionAffectedTableCells","hasAttribute","table","_tableSuggestions","_suggestionFactory","showSuggestionHighlights","refresh","change","setSelection","start","selection","join","createTableWalker","_setupColumnsRowsFixing","TableUtils","selectTableRow","enqueueChange","_getSuggestionCoords","insertion","_descriptionFactory","position","registerElementLabel","get","afterInit","colspan","isArray","fromRange","rootName","name","change:data","tableColumn","getRowIndexes","getAttribute","*Insert:* %0","map","getItems","enableCommand"];var Lx,Nx;Lx=Ix,Nx=227,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Mx("0x44"),"tableColumn"],this._tableSuggestions=new Set}[Mx("0x15")](){const t=this.editor,e=t.model.document.selection;if(!t[Mx("0x5d")][Mx("0x48")]("TableEditing"))return;const n=t[Mx("0x73")],o=t[Mx("0x5d")][Mx("0x14")](Mx("0x6a")),s=t[Mx("0x5d")][Mx("0x14")]("TableUtils");o[Mx("0x11")][Mx("0x13")](Mx("0x0"),(t=>Yo(n,Mx("0x3b"),t))),this[Mx("0xb")](),o.enableCommand(Mx("0x42")),o[Mx("0x22")](Mx("0xd")),o.enableCommand("selectTableColumn");for(const n of[Mx("0x23"),Mx("0x24")]){const r=t[Mx("0x2d")][Mx("0x14")](n);o[Mx("0x22")](n,(n=>{t[Mx("0x78")][Mx("0x5")]((t=>{n();const i=Mx("0x46")===r[Mx("0x55")],x=s[Mx("0x81")](e),a=s[Mx("0x1d")](x),c=i?a[Mx("0x2b")]-1:a[Mx("0x57")]+1,l=x[0][Mx("0x7d")]("table"),d=s[Mx("0xa")](l,{startRow:c,endRow:c}),u=Array[Mx("0x56")](d)[Mx("0x20")]((e=>t.createRangeOn(e.cell)));o.markMultiRangeInsertion(u,Mx("0x44"))}))}))}for(const n of["insertTableColumnLeft",Mx("0x35")]){const r=t[Mx("0x2d")][Mx("0x14")](n);o.enableCommand(n,(n=>{t.model[Mx("0x5")]((t=>{n();const i=Mx("0x4f")===r[Mx("0x55")],x=s[Mx("0x81")](e),a=s[Mx("0x4c")](x),c=i?a[Mx("0x2b")]-1:a[Mx("0x57")]+1,l=x[0][Mx("0x7d")](Mx("0x0")),d=s[Mx("0xa")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x56")](d).map((e=>t[Mx("0x6b")](e[Mx("0x5e")])));o.markMultiRangeInsertion(u,Mx("0x1c"))}))}))}for(const n of[Mx("0x25"),Mx("0x5a")]){const r=n[Mx("0x5b")](11),i=r[Mx("0x4b")](),x=i[Mx("0x5b")](0,3)+Mx("0x33"),a="table"+r,c=Mx("0x2a")+r,l=Mx("0x47")+r;o.enableCommand(n,(()=>{t[Mx("0x78")][Mx("0x5")]((t=>{const r=s[Mx("0x81")](e),d=r[0][Mx("0x7d")](Mx("0x0"));let u;if(Mx("0x25")==n){const t=s[Mx("0x1d")](r);u={startRow:t.first,endRow:t[Mx("0x57")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t[Mx("0x2b")],endColumn:t[Mx("0x57")],includeAllSlots:!0}}const g=s[Mx("0xa")](d,u),m=Array.from(g).map((({cell:t})=>t)),f=Ox(m.filter((t=>t[Mx("0x82")](x)))),h=Ox(m[Mx("0x69")]((t=>!t[Mx("0x82")](x))))[Mx("0x20")]((e=>t.createRangeOn(e))),p=o[Mx("0x52")](h,a);if(p&&("tableRow"==p[Mx("0x3f")]||"tableColumn"==p[Mx("0x3f")])){const e=this[Mx("0xf")](p);for(const n of f){const o=t[Mx("0x6b")](n),r=s[Mx("0x32")](n),a=n[Mx("0x1e")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x6f")](o)}}}))}))}function r(n){const o=Array[Mx("0x56")](e[Mx("0x53")]())[Mx("0x20")]((t=>i.LiveRange[Mx("0x18")](t)));t[Mx("0x78")].change((e=>{const s=e.batch;n=n[Mx("0x69")]((t=>Mx("0x2f")!=t[Mx("0x77")].rootName)),e[Mx("0x6")](n),t[Mx("0x2d")][Mx("0x14")]("removeTableRow").refresh(),t[Mx("0x2e")](Mx("0x25"),{forceDefaultExecution:!0}),t[Mx("0x78")][Mx("0xe")]((()=>{t.model.enqueueChange(s,(t=>{const e=o.filter((t=>Mx("0x2f")!=t.root.rootName));e[Mx("0x37")]>0&&t.setSelection(e);for(const t of o)t[Mx("0x5f")]()}))}))}))}function a(n){t.model[Mx("0x5")]((o=>{const s=Array[Mx("0x56")](e.getRanges())[Mx("0x20")]((t=>i.LiveRange[Mx("0x18")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Mx("0x29")](e);for(const e of r)Mx("0x2f")!=e.root[Mx("0x19")]&&(o[Mx("0x6")](o[Mx("0x51")](e,0)),t[Mx("0x2d")][Mx("0x14")]("removeTableColumn")[Mx("0x4")](),t[Mx("0x2e")]("removeTableColumn",{forceDefaultExecution:!0}));const x=s.filter((t=>Mx("0x2f")!=t[Mx("0x77")].rootName));x[Mx("0x37")]>0&&o[Mx("0x6")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Mx("0x75")]((e=>t[Mx("0x79")]((t=>t.end[Mx("0x62")](e[Mx("0x7")])||e[Mx("0x2c")][Mx("0x62")](t[Mx("0x7")])))))}function l(t,e){return t.some((t=>e[Mx("0x79")]((e=>t[Mx("0x2c")][Mx("0x64")](e.start)))))}t.data[Mx("0x6d")].on(Mx("0x76"),((t,e,n)=>{if(!n[Mx("0x4d")][Mx("0x3")])return;const o=e[Mx("0x58")];if(!o)return;const s=n[Mx("0x39")].toViewElement(o);function r(t){return Array[Mx("0x17")](t)?t:[t]}s&&"tableCell"===o.name&&(0,x.setHighlightHandling)(s,n[Mx("0x54")],((t,e,n)=>n.addClass(r(e.classes),t)),((t,e,n)=>n[Mx("0x27")](r(e[Mx("0x4e")]),t)))}),{priority:"highest"}),o[Mx("0x11")].registerDescriptionCallback((t=>{if(Mx("0x10")!=t[Mx("0x74")]&&Mx("0x70")!=t[Mx("0x74")])return;const e=t.getContainedElement();if(null!=e&&e.is(Mx("0x36"),"table")){if(Mx("0x10")==t.type){const e=t[Mx("0x21")]().filter((t=>t.is(Mx("0x6c"))))[Mx("0x20")]((t=>t[Mx("0x3c")]));if(e[Mx("0x37")])return{type:Mx("0x10"),content:Yo(n,Mx("0x1f"),Yo(n,Mx("0x43"),'"'+e[Mx("0x9")](" ")+'"'))}}if(Mx("0x70")==t[Mx("0x74")]){const e=t.getItems()[Mx("0x69")]((t=>t.is("$textProxy")))[Mx("0x20")]((t=>t.data));if(e[Mx("0x37")])return{type:Mx("0x70"),content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x43"),'"'+e[Mx("0x9")](" ")+'"'))}}}})),o._descriptionFactory[Mx("0x4a")]((t=>{if(Mx("0x44")==t[Mx("0x3f")]){const e=t[Mx("0x21")]()[Mx("0x69")]((t=>t.is(Mx("0x6c"))))[Mx("0x20")]((t=>t[Mx("0x3c")])),o=this[Mx("0xf")](t),s=o[Mx("0x31")]-o[Mx("0x41")]+1;if(Mx("0x10")==t[Mx("0x74")])return e[Mx("0x37")]?{type:Mx("0x10"),content:Yo(n,Mx("0x1f"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x9")](" ")+'"']))}:{type:"insertion",content:Yo(n,Mx("0x1f"),Yo(n,Mx("0x30"),s))};if("deletion"==t[Mx("0x74")])return e[Mx("0x37")]?{type:Mx("0x70"),content:Yo(n,Mx("0x7c"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x7c"),Yo(n,Mx("0x30"),s))}}if(Mx("0x1c")==t[Mx("0x3f")]){const e=t[Mx("0x21")]()[Mx("0x69")]((t=>t.is(Mx("0x6c"))))[Mx("0x20")]((t=>t[Mx("0x3c")])),o=this[Mx("0xf")](t),s=o[Mx("0x72")]-o[Mx("0x3e")]+1;if(Mx("0x10")==t.type)return e[Mx("0x37")]?{type:Mx("0x10"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x9")](" ")+'"']))}:{type:Mx("0x10"),content:Yo(n,Mx("0x1f"),Yo(n,Mx("0x38"),s))};if(Mx("0x70")==t[Mx("0x74")])return e[Mx("0x37")]?{type:"deletion",content:Yo(n,Mx("0x7c"),Yo(n,Mx("0x68"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x70"),content:Yo(n,Mx("0x7c"),Yo(n,Mx("0x38"),s))}}})),o[Mx("0x2")][Mx("0x34")](Mx("0x10"),Mx("0x44"),Mx("0x65"),r),o._suggestionFactory[Mx("0x34")](Mx("0x70"),Mx("0x44"),Mx("0x49"),r),o[Mx("0x2")][Mx("0x34")](Mx("0x10"),Mx("0x1c"),Mx("0x65"),a),o[Mx("0x2")][Mx("0x34")]("deletion","tableColumn",Mx("0x49"),a),o[Mx("0x2")].registerCustomCallback(Mx("0x10"),Mx("0x1c"),"join",c),o[Mx("0x2")][Mx("0x34")](Mx("0x70"),Mx("0x1c"),Mx("0x9"),c),o[Mx("0x2")][Mx("0x34")](Mx("0x10"),Mx("0x44"),Mx("0x9"),l),o._suggestionFactory.registerCustomCallback("deletion",Mx("0x44"),Mx("0x9"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Mx("0x59")],e=t[Mx("0x78")].document[Mx("0x8")];return(n,o)=>{t[Mx("0x78")][Mx("0x5")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x2c")].nodeBefore;x&&x[0]&&!1===x[0][Mx("0x7a")]&&(a=n[0].start[Mx("0x7f")]);const c=s[Mx("0x3a")](a);if(Mx("0x2f")==c[Mx("0x77")].rootName)return;const l=Array[Mx("0x56")](e[Mx("0x53")]())[Mx("0x20")]((t=>i.LiveRange[Mx("0x18")](t)));s[Mx("0x6")](c),t[Mx("0x2d")][Mx("0x14")](r).refresh(),x[Mx("0x29")]({forceDefaultExecution:!0}),t[Mx("0x2e")](r,...x);const d=l[Mx("0x69")]((t=>Mx("0x2f")!=t.root[Mx("0x19")]));d[Mx("0x37")]>0&&s[Mx("0x6")](d);for(const t of l)t[Mx("0x5f")]()}))}}[Mx("0x28")](t){const e=this[Mx("0x59")][Mx("0x5d")][Mx("0x14")]("TableUtils");let n=Number[Mx("0x26")],o=Number[Mx("0x6e")],s=Number.MAX_SAFE_INTEGER,r=Number[Mx("0x6e")];for(const i of t){if(Mx("0x2f")==i[Mx("0x77")][Mx("0x19")])continue;const{row:t,column:x}=e[Mx("0x32")](i),a=i[Mx("0x82")](Mx("0x40"))?i[Mx("0x1e")](Mx("0x40"))-1:0,c=i[Mx("0x82")]("colspan")?i[Mx("0x1e")](Mx("0x16"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this.editor,e=t[Mx("0x5d")][Mx("0x14")](Mx("0x6a")),n=t.plugins.get(Mx("0xc"));t[Mx("0x78")][Mx("0x7b")].on(Mx("0x1b"),(()=>{const n=Array[Mx("0x56")](t[Mx("0x78")][Mx("0x7b")].differ.getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if(Mx("0x80")!=n)continue;if(null!=o.oldRange)continue;const i=e.getSuggestion(s);this[Mx("0x45")][Mx("0x50")](r)&&this._tableSuggestions.add(i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Mx("0x6b")](t),r=t.findAncestor(Mx("0x0")),i=n[Mx("0x32")](t);for(const e of this[Mx("0x1")]){const n=e[Mx("0x3f")],x=n[Mx("0x61")](Mx("0x67")),a=n[Mx("0x5b")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+Mx("0x33"),d=Mx("0x2a")+a,u=Mx("0x47")+a;if(!e[Mx("0x63")])continue;if(r!=e.getFirstRange()[Mx("0x7")][Mx("0x7d")](Mx("0x0")))continue;if(e[Mx("0x66")](s))continue;const g=t.hasAttribute(l)?t[Mx("0x1e")](l)-1:0,m=this[Mx("0xf")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x6f")](s),o=!0)}return o};t[Mx("0x78")].document.registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x78")][Mx("0x7b")][Mx("0x3d")][Mx("0x5c")]())if(Mx("0x71")==s[Mx("0x74")])if("tableRow"==s[Mx("0x1a")])for(const t of s.position[Mx("0x7f")].getChildren())n=n||o(t,e);else Mx("0x7e")==s[Mx("0x1a")]&&(n=n||o(s[Mx("0x12")][Mx("0x7f")],e));return n}))}[Mx("0xf")](t){return this[Mx("0x28")](t[Mx("0x53")]()[Mx("0x20")]((t=>t[Mx("0x7")].nodeAfter)))}}function Ox(t){return Array[Mx("0x56")](new Set(t)[Mx("0x60")]())}const Fx=["value","mergeTableCellUp","requires","_areMergableCells","deletion","_suggestionFactory","setSelection","get","detach","markMultiRangeBlockFormat","locale","subType","element","has","format","_tablePostFixingSubtypes","author","registerCustomCallback","length","formatBlock","registerDescriptionCallback","fromRange","getSuggestions","rootName","change","getCellLocation","createTableWalker","getFirstPosition","type","mergeTableCellLeft","map","stop","trackChanges","selection","createRangeOn","horizontally","commands","getSelectionAffectedTableCells","enableCommand","_areSelectedCellsMergable","return","_descriptionFactory","filter","commandName","plugins","splitTableCellHorizontally","execute","getAncestors","mergeTableCellRight","size","model","TableEditing","*Merge cells*","forceDefaultExecution","low","getRanges","$graveyard","refresh","containsRange","splitTableCellVertically","find","document","*Split cell:* horizontally","mergeTableCellDown","mergeTableCells","findAncestor","insertion","accept","editor","tableCell","TableUtils","cell","push","TrackChangesEditing","afterInit"];var Px,Dx;Px=Fx,Dx=293,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x9")](){return[wx]}[Bx("0x6")](){const t=this[Bx("0x0")],e=t[Bx("0x39")][Bx("0x44")][Bx("0x28")],n=t[Bx("0x11")];if(!t.plugins[Bx("0x14")](Bx("0x3a")))return;const o=t[Bx("0x33")].get(Bx("0x5")),s=t[Bx("0x33")][Bx("0xe")](Bx("0x2")),r=t[Bx("0x33")].get(wx);r[Bx("0x16")][Bx("0x4")](Bx("0x47")),o[Bx("0x2d")](Bx("0x47"),(()=>{const e=s[Bx("0x2c")](t[Bx("0x39")][Bx("0x44")][Bx("0x28")]);t[Bx("0x39")][Bx("0x1f")]((()=>{o[Bx("0x10")](e,{commandName:Bx("0x47"),commandParams:[]},[],Bx("0x47"))}))})),t[Bx("0x2b")].get(Bx("0x47")).on("execute",((e,n)=>{t[Bx("0x2b")].get(Bx("0x27"))[Bx("0x7")]&&(n[Bx("0x19")]>0&&n[n.length-1]&&n[n[Bx("0x19")]-1][Bx("0x3c")]||o._isForcedDefaultExecutionBlock||this[Bx("0x2e")]()||e[Bx("0x26")]())}),{priority:"highest"});for(const e of[Bx("0x8"),Bx("0x37"),Bx("0x46"),Bx("0x24")]){const n=t[Bx("0x2b")][Bx("0xe")](e);o[Bx("0x2d")](e,(()=>{const e=t[Bx("0x39")][Bx("0x44")][Bx("0x28")][Bx("0x22")]()[Bx("0x36")]()[Bx("0x43")]((t=>t.is(Bx("0x13"),Bx("0x1")))),s=n[Bx("0x7")];t[Bx("0x39")][Bx("0x1f")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:Bx("0x47"),commandParams:[]},[],Bx("0x47"))}))}))}for(const e of[Bx("0x42"),"splitTableCellHorizontally"]){const n=t[Bx("0x2b")][Bx("0xe")](e);o.enableCommand(e,(()=>{const r=s.getSelectionAffectedTableCells(t[Bx("0x39")].document.selection)[0],i=r[Bx("0x48")]("table"),{column:x,row:a}=s[Bx("0x20")](r);let c=[];if(Bx("0x2a")==n.direction){const t=s[Bx("0x21")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x25")]((t=>t.cell))}else{const t=s[Bx("0x21")](i,{column:x,includeAllSlots:!0});c=Array.from(t)[Bx("0x25")]((t=>t[Bx("0x3")]))}t.model.change((t=>{o.markBlockFormat(t[Bx("0x29")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x30")][Bx("0x1b")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e.commandName?{type:Bx("0x15"),content:Yo(n,Bx("0x3b"))}:void 0})),o[Bx("0x30")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x42")==e[Bx("0x32")]?{type:Bx("0x15"),content:Yo(n,"*Split cell:* vertically")}:"splitTableCellHorizontally"==e[Bx("0x32")]?{type:"format",content:Yo(n,Bx("0x45"))}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of["mergeTableCellUp","mergeTableCellRight",Bx("0x46"),Bx("0x24")])o[Bx("0xc")][Bx("0x18")](Bx("0x1a"),t,Bx("0x4a"),x);for(const t of[Bx("0x42"),Bx("0x34")])o[Bx("0xc")].registerCustomCallback(Bx("0x1a"),t,Bx("0x4a"),x);o[Bx("0xc")][Bx("0x18")](Bx("0x1a"),"mergeTableCells","accept",(n=>{t[Bx("0x39")].change((o=>{const s=Array.from(e.getRanges()).map((t=>i.LiveRange[Bx("0x1c")](t)));o[Bx("0xd")](n),t[Bx("0x2b")].get(Bx("0x47"))[Bx("0x40")](),t[Bx("0x35")](Bx("0x47"),{forceDefaultExecution:!0});const r=s[Bx("0x31")]((t=>Bx("0x3f")!=t.root[Bx("0x1e")]));r[Bx("0x19")]>0&&o[Bx("0xd")](r);for(const t of s)t[Bx("0xf")]()}))}));for(const e of[Bx("0x8"),Bx("0x46"),Bx("0x24"),Bx("0x37")]){const n=t[Bx("0x2b")][Bx("0xe")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t[Bx("0x39")][Bx("0x44")].selection[Bx("0x22")]()[Bx("0x36")]().find((t=>t.is(Bx("0x13"),"tableCell")));this[Bx("0xa")](n[Bx("0x7")],o)||(e[Bx("0x2f")]=!1,e[Bx("0x26")]())}}),{priority:Bx("0x3d")})}}_areSelectedCellsMergable(){const t=this[Bx("0x0")][Bx("0x2b")].get("mergeTableCells"),e=this.editor[Bx("0x33")][Bx("0xe")](Bx("0x2"));if(!t.isEnabled)return!1;const n=e.getSelectionAffectedTableCells(this[Bx("0x0")].model[Bx("0x44")][Bx("0x28")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0xa")](t,e))return!1;return!0}[Bx("0xa")](t,e){const n=this[Bx("0x0")].plugins[Bx("0xe")](Bx("0x5")),o=this[Bx("0x0")][Bx("0x39")].createRangeOn(t),s=this[Bx("0x0")][Bx("0x39")][Bx("0x29")](e),r=new Set,i=new Set;for(const t of n[Bx("0x1d")]())if((Bx("0x49")==t[Bx("0x23")]||Bx("0xb")==t[Bx("0x23")]||Bx("0x47")==t[Bx("0x12")])&&t.isInContent)for(const e of t[Bx("0x3e")]())e[Bx("0x41")](o,!0)&&r.add(t[Bx("0x23")]+":"+t[Bx("0x17")].id),e.containsRange(s,!0)&&i.add(t[Bx("0x23")]+":"+t[Bx("0x17")].id);if(r[Bx("0x38")]!=i[Bx("0x38")])return!1;for(const t of r)if(!i[Bx("0x14")](t))return!1;return!0}}const Ux=["afterInit","commands","get","toViewElement","index","value","addMarker:suggestion","editing","ck-suggestion-marker--active","accept","getAttribute","nodeBefore","model","_acceptFormatSuggestionCallbackFactory","writer","getRowIndexes","editor","first","highest","formatBlock","data","getSelectionAffectedTableCells","createTableWalker","setTableRowHeader","selection","bindElementToMarker","change","getCellLocation","commandName","createPositionBefore","_descriptionFactory","findAncestor","headingColumns","markBlockFormat","getSuggestion","FORMAT_REGULAR_ROW","enableCommand","data-suggestion","options","getColumnIndexes","markerNameToElements","removeAttribute","downcastDispatcher","FORMAT_REGULAR_COLUMN","childCount","setAttribute","isBefore","_suggestionFactory","has","FORMAT_HEADER_ROW","start","registerCustomCallback","includes","removeMarker:suggestion","requires","getChild","unbindElementFromMarkerName","TableEditing","TableUtils","stop","markerRange","plugins","addClass","removeClass","createRange","TrackChangesEditing","format","ck-suggestion-marker-","markerName","mapper","consumable","locale","parent","end","table","_splitMarkerName","setTableColumnHeader","createPositionAfter","from","forceValue","cell"];var Gx,Hx;Gx=Ux,Hx=326,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x34")](){return[wx]}[zx("0x4f")](){const t=this[zx("0xe")];if(!t[zx("0x3b")][zx("0x2e")](zx("0x37")))return;const e=t[zx("0x45")],n=t[zx("0x3b")].get(zx("0x3f")),o=t[zx("0x3b")].get(zx("0x38")),s=t[zx("0x3b")].get(wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x49")](r[zx("0x42")]),c=n[zx("0x20")](a);if(!c.data||zx("0x4a")!=c[zx("0x12")][zx("0x1a")])return;if(r.item)return void s[zx("0x39")]();if(!i[zx("0x44")].consume(r.markerRange,s.name))return;const l=r[zx("0x3a")][zx("0x30")].nodeAfter,d=r.markerRange[zx("0x47")][zx("0x9")],u=l[zx("0x46")].parent,{column:g}=o[zx("0x19")](l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o[zx("0x14")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x4e")],c=i[zx("0x43")][zx("0x1")](s);i[zx("0xc")][zx("0x3c")](zx("0x41")+x,c),e&&i[zx("0xc")][zx("0x2b")](zx("0x23"),a,c),i.mapper[zx("0x17")](c,r[zx("0x42")]),t&&(n.activeMarkers[zx("0x32")](r[zx("0x42")])?i[zx("0xc")][zx("0x3c")]("ck-suggestion-marker--active",c):i[zx("0xc")][zx("0x3d")](zx("0x6"),c))}}}}n[zx("0x22")]("setTableRowHeader",((e,s)=>{const r=o[zx("0x13")](t[zx("0xa")].document[zx("0x16")]),i=o[zx("0xd")](r),x=r[0].findAncestor(zx("0x48")),a=x[zx("0x8")]("headingRows")||0,c=s&&null!==s[zx("0x4d")]?s[zx("0x4d")]:!t[zx("0x50")][zx("0x0")](zx("0x15"))[zx("0x3")],l=c?i.last:i.first,d=x[zx("0x35")](l);let u;if(c){const e=x[zx("0x35")](a);if(d[zx("0x2")]<e[zx("0x2")])return;u=t.model[zx("0x3e")](t[zx("0xa")][zx("0x1b")](e.getChild(0)),t[zx("0xa")][zx("0x4b")](d.getChild(d[zx("0x2a")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t[zx("0xa")].createRange(t.model[zx("0x1b")](d[zx("0x35")](0)),t[zx("0xa")][zx("0x4b")](e[zx("0x35")](e[zx("0x2a")]-1)))}t[zx("0xa")][zx("0x18")]((()=>{n.markBlockFormat(u,{commandName:zx("0x15"),commandParams:[{forceValue:c}]},[],zx("0x15"))}))})),n[zx("0x22")](zx("0x4a"),((e,o)=>{const s=t[zx("0x3b")][zx("0x0")](zx("0x38")),r=s[zx("0x13")](t.model.document[zx("0x16")]),i=s[zx("0x25")](r),x=r[0][zx("0x1d")]("table"),a=x.getAttribute(zx("0x1e"))||0,c=o&&null!==o[zx("0x4d")]?o.forceValue:!t.commands[zx("0x0")](zx("0x4a"))[zx("0x3")];let l;const d=x.getChild(0),u=c?i.last:i[zx("0xf")],g=s[zx("0x14")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x4c")](g)[0][zx("0x4e")];if(c){const e=d[zx("0x35")](a);if(m[zx("0x2c")](e))return;l=t[zx("0xa")][zx("0x3e")](t.model.createPositionBefore(e),t[zx("0xa")][zx("0x4b")](m))}else{const e=d[zx("0x35")](a-1);if(!e)return;l=t[zx("0xa")].createRange(t[zx("0xa")][zx("0x1b")](m),t[zx("0xa")][zx("0x4b")](e))}t.model.change((()=>{n[zx("0x1f")](l,{commandName:zx("0x4a"),commandParams:[{forceValue:c}]},[],zx("0x4a"))}))})),t[zx("0x5")][zx("0x28")].on(zx("0x4"),r(),{priority:zx("0x10")}),t[zx("0x12")][zx("0x28")].on("addMarker:suggestion",((t,e,n)=>{n[zx("0x24")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x10")}),t[zx("0x5")][zx("0x28")].on(zx("0x33"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x49")](e[zx("0x42")]),i=n[zx("0x20")](r);if(!i[zx("0x12")]||"setTableColumnHeader"!=i[zx("0x12")][zx("0x1a")])return;const x=o[zx("0x43")][zx("0x26")](e[zx("0x42")]);if(x)for(const t of x)o[zx("0xc")][zx("0x3d")](zx("0x41")+s,t),o[zx("0xc")].removeClass(zx("0x6"),t),o.writer[zx("0x27")](zx("0x23"),t),o[zx("0x43")][zx("0x36")](t,e[zx("0x42")])}),{priority:zx("0x10")}),n[zx("0x1c")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x15")==n.commandName){const t=n.commandParams[0][zx("0x4d")];return o(Yo(e,zx(t?"0x2f":"0x21")))}if(zx("0x4a")==n[zx("0x1a")]){const t=n.commandParams[0][zx("0x4d")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":zx("0x29")))}}function o(t){return{type:zx("0x40"),content:Yo(e,"*Format:* %0",t)}}}));const i=s[zx("0xb")]();n[zx("0x2d")].registerCustomCallback(zx("0x11"),zx("0x15"),zx("0x7"),i),n[zx("0x2d")][zx("0x31")](zx("0x11"),"setTableColumnHeader",zx("0x7"),i)}}const Vx=["previous","getChangedMarkers","getRange","tableCellSuggestion","suggestion","map","view","join","for","rowInsertionIndexes","getAllAdjacentSuggestions","cell","createTableWalker","get","getAttributes","start","markerToHighlight","push","tableCellBorderStyle","tableCellBorderWidth","registerPostFixer","options","markMultiRangeInsertion","paragraph","TableClipboard","getTableIfOnlyTableInContent","elementToElement","oldRange","tableCell","some","remove","suggestionUnloaded","move","locale","commands","suggestion-td","listenTo","discard","subType","nextSibling","insertion","createRangeOn","removeColumns","_replaceTableSlotCell","tableCellBackgroundColor","position","registerDescriptionCallback","dataDowncast","model","name","newRange","table","find","tableCellHorizontalAlignment","createElement","return","endRow","accept","conversion","removeMarker","element","rows","_descriptionFactory","activeMarkers","stop","getSuggestionCallback","forceDefaultExecution","markMultiRangeBlockFormat","tablePasteRow","next","last","author","formatBlock","getRows","createRange","tablePasteChainId","_isForcedDefaultExecutionBlock","markMultiRangeDeletion","content","tablePaste","tablePasteColumn","ck-suggestion-marker-insertion","hasSuggestion","_createdBatches","getRanges","nodeAfter","previousSibling","markerName","first","wrap","_getCoordsForCells","add","batch","createPositionBefore","selection","getChild","getChildren","deletion","register","filter","set","Users","editing","findAncestor","markers","editor","insertContent","end","change","TableUtils","unwrap","registerCustomCallback","suggestion:formatBlock:tablePasteCell","markerAttributes","createRangeIn","length","tablePasteCell","getContainedElement","schema","reduce","includes","_suggestionFactory","startsWith","ck-suggestion-marker--active","afterInit","_tablePostFixingSubtypes","setAttributes","differ","containsRange","isEmpty","column","insert","insertionRanges","every","suggestionLoaded","trackChanges","removeMarkers","endColumn","insertColumns","type","redo","requires","$graveyard","low","updateMarker","isInContent","document","_splitMarkerName","getChanges","from","entries","attributes","has","getSuggestion","ck-suggestion-marker","setAttribute","columnInsertionIndexes","plugins","TrackChangesEditing","insertRows","keys","isEqual","getSuggestions","row","getColumns","cells","high"];var Kx,Xx;Kx=Vx,Xx=171,function(t){for(;--t;)Kx.push(Kx.shift())}(++Xx);const qx=function(t,e){return Vx[t-=0]},$x=[qx("0xf"),"tableCellBorderColor",qx("0xe"),qx("0x31"),"tableCellVerticalAlignment",qx("0x28"),"tableCellPadding"],Jx=Object.fromEntries($x.map((t=>[t,null])));class Qx extends t.Plugin{static get[qx("0x89")](){return[wx]}[qx("0x78")](){const t=this[qx("0x65")];if(!t[qx("0x99")].has(qx("0x14")))return;const n=t[qx("0x99")].get(qx("0x9a")),o=t.plugins[qx("0x9")](qx("0x69")),s=t[qx("0x99")][qx("0x9")](wx),r=t[qx("0x99")][qx("0x9")](qx("0x14"));s[qx("0x79")].push(qx("0x40"),qx("0x4c")),t[qx("0x2c")][qx("0x72")][qx("0x5e")](qx("0xa6"),{allowIn:"tableCell",allowContentOf:qx("0x18"),isLimit:!0}),t.conversion[qx("0x16")]({model:qx("0xa6"),view:qx("0x1f")});let i=null;t[qx("0x2c")].on(qx("0x66"),((s,x)=>{const[a,c]=x,l=x[x[qx("0x6f")]-1];l&&l[qx("0x3e")]||n[qx("0x48")]||this.editor[qx("0x1e")][qx("0x9")](qx("0x83")).value&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[qx("0x15")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[qx("0x8e")][qx("0x5a")]);if(!i[qx("0x6f")])return!1;const x=i[0][qx("0x63")](qx("0x2f")),a=o.getRowIndexes(i),c=o.getColumnIndexes(i),l={startRow:a[qx("0x54")],endRow:a.last,startColumn:c[qx("0x54")],endColumn:c[qx("0x42")]};return 1==i[qx("0x6f")]&&(l[qx("0x34")]+=o[qx("0x45")](r)-1,l[qx("0x85")]+=o[qx("0xa0")](r)-1),Yx(x,l,o)}(a,c,t[qx("0x2c")],o,r)&&(s[qx("0x3c")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[qx("0x2c")].change((()=>{t[qx("0x2c")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[qx("0x12")](s,qx("0x40"),{tablePasteChainId:o}),r.length&&n[qx("0x12")](r,qx("0x4c"),{tablePasteChainId:o}),a[qx("0x6f")]&&n[qx("0x12")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[qx("0x6f")]&&n[qx("0x49")](c,qx("0x4b"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[qx("0x3f")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],qx("0x70"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[qx("0x2c")][qx("0x25")](o),i=e[qx("0x30")]((t=>t[qx("0xa5")]()[qx("0x9d")](r)));i&&n[qx("0xd")]([i[qx("0x2d")],s])}n[qx("0x6f")]&&d[qx("0x97")](qx("0x6d"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[qx("0xa2")]+10}),t[qx("0x99")][qx("0x9")](qx("0x14")).on(qx("0x27"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[qx("0x3c")]();const r=n[qx("0x7")],x=o,a=Zx(r),c=Zx(x);t[qx("0x33")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[qx("0x1a")](r[qx("0x5b")](0));for(const t of Array[qx("0x91")](x[qx("0x5c")]()))s[qx("0x7f")](t,r,qx("0x67"));const t=i[qx("0x5")][qx("0x74")](n[qx("0x9f")]),e=i[qx("0x98")][qx("0x74")](n[qx("0x7e")]);t||e||(l=s[qx("0x6e")](r))}else c&&!a&&(d=s[qx("0x6e")](r));else{const t=s[qx("0x32")](qx("0xa6")),e=s[qx("0x32")]("tableCellSuggestion");s[qx("0x55")](s[qx("0x6e")](r),e),s[qx("0x7f")](t,r,0);for(const e of Array[qx("0x91")](x[qx("0x5c")]()))s[qx("0x7f")](e,t,qx("0x67"));l=s[qx("0x25")](t),d=s[qx("0x25")](e)}const u=Array.from(x[qx("0xa")]())[qx("0x5f")]((([t])=>$x.includes(t)));i[qx("0xa1")][qx("0xd")]({element:r,attributes:u[qx("0x6f")]?Object.fromEntries(u):null}),l&&i[qx("0x80")][qx("0xd")](l),d&&i.deletionRanges.push(d)}),{priority:qx("0xa2")}),o.on(qx("0x86"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i.columnInsertionIndexes=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o[qx("0x8")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges[qx("0xd")](t[qx("0x2c")][qx("0x25")](e))}),{priority:"low"}),o.on(qx("0x9b"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[qx("0x39")]||1;i.rowInsertionIndexes=new Array(a).fill(x)[qx("0x1")](((t,e)=>t+e));for(const{cell:e}of o[qx("0x8")](s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges.push(t[qx("0x2c")].createRangeOn(e))}),{priority:qx("0x8b")}),n[qx("0x3a")][qx("0x2a")]((e=>{if(e[qx("0x22")]&&e[qx("0x22")][qx("0x76")](qx("0x4b")))return e[qx("0xa3")]?{}:{type:qx("0x24"),content:Yo(t[qx("0x1d")],"*Replace table cells*")}}));const x=()=>{};for(const t of[qx("0x4b"),qx("0x4c"),qx("0x40"),"tablePasteCell"])n[qx("0x75")][qx("0x6b")](qx("0x24"),t,qx("0x3"),x),n._suggestionFactory.registerCustomCallback(qx("0x5d"),t,qx("0x3"),x);n._suggestionFactory[qx("0x6b")](qx("0x44"),qx("0x70"),"discard",x),n[qx("0x75")][qx("0x6b")](qx("0x44"),qx("0x70"),qx("0x35"),((e,n,o)=>{const s=e[qx("0x1")]((t=>t[qx("0x71")]()))[qx("0x5f")]((t=>t)),r=new Map(s[qx("0x1")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[qx("0xa1")])e&&r[qx("0x60")](t,e);else if(o&&o[qx("0x6d")])for(const[e,n]of Object[qx("0x92")](o[qx("0x6d")])){const o=t[qx("0x2c")][qx("0x64")][qx("0x9")](e),s=o?o[qx("0xa5")]().getContainedElement():null;s&&r[qx("0x60")](s,n)}t[qx("0x2c")][qx("0x68")]((t=>{for(const[e,n]of r)t[qx("0x7a")]({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[qx("0x6b")](e,"tablePaste",o,((s,r,i)=>{t[qx("0x2c")][qx("0x68")]((t=>{const x=[];for(const t of s){const e=t[qx("0xb")][qx("0x51")];e.is(qx("0x38"),qx("0xa6"))&&x[qx("0xd")](e)}n._suggestionFactory[qx("0x3d")](e,null,o)(s,r,i);for(const e of x)qx("0x8a")!=e.root.rootName&&t[qx("0x6a")](e)}))}))};a(qx("0x24"),qx("0x35")),a(qx("0x24"),qx("0x21")),a(qx("0x5d"),qx("0x35")),a(qx("0x5d"),qx("0x21")),n[qx("0x75")].registerCustomCallback("insertion",qx("0x40"),qx("0x21"),(t=>{const e=t[qx("0x1")]((t=>t[qx("0x71")]())),n=e[0][qx("0x63")](qx("0x2f")),{minRow:r,maxRow:i}=s[qx("0x56")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n._suggestionFactory[qx("0x6b")](qx("0x24"),qx("0x4c"),qx("0x21"),(t=>{const e=t[qx("0x1")]((t=>t.getContainedElement())),n=e[0][qx("0x63")](qx("0x2f")),{minColumn:r,maxColumn:i}=s[qx("0x56")](e);o[qx("0x26")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[qx("0x22")]||!e[qx("0x22")].startsWith(qx("0x4b")))return;const o=e[qx("0x93")].tablePasteChainId,s=n[qx("0x9e")]()[qx("0x5f")]((t=>t.isInContent&&t[qx("0x93")]&&t[qx("0x93")][qx("0x47")]==o));s[qx("0x6f")]&&e[qx("0x6")]().length!=s[qx("0x6f")]&&s[qx("0x73")](((t,e)=>(t[qx("0x41")]=e,e[qx("0xa3")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[qx("0x53")]),s=[qx("0x96"),qx("0x4d")],r=n[qx("0x3b")][qx("0x74")](t.markerName);return r&&s[qx("0xd")](qx("0x77")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(qx("0x82"),c,{priority:qx("0xa2")}),n.on(qx("0x1b"),c,{priority:qx("0xa2")}),t[qx("0x2c")][qx("0x8e")].registerPostFixer((()=>{let e=!1;const o=Array.from(t[qx("0x2c")][qx("0x8e")].differ[qx("0xa4")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[qx("0x8f")](s);if(qx("0x0")!=o||"deletion"!=i||r[qx("0x17")])continue;if(!n[qx("0x4e")](x))continue;const a=n[qx("0x95")](x)[qx("0x50")](),c=t[qx("0x99")][qx("0x9")](qx("0x61")).me;for(const t of n[qx("0x9e")]())if(t[qx("0x8d")]&&t[qx("0x43")]==c&&qx("0x44")==t[qx("0x87")]&&qx("0x70")==t[qx("0x22")]&&t[qx("0x50")]()[qx("0x81")]((t=>a[qx("0x19")]((e=>e[qx("0x7c")](t,!0))))))for(const n of t[qx("0x6")]())n[qx("0x8d")]&&(n.discard(),e=!0)}return e})),t[qx("0x2c")][qx("0x8e")][qx("0x10")]((e=>{const o=t[qx("0x1e")][qx("0x9")](qx("0x88"));if(!o||!o[qx("0x4f")][qx("0x94")](e[qx("0x58")]))return!1;let s=!1;const r=t.plugins[qx("0x9")](qx("0x61")).me,i=t[qx("0x2c")].document[qx("0x7b")][qx("0x90")](),x=Array[qx("0x91")](t[qx("0x2c")].document[qx("0x7b")][qx("0xa4")]())[qx("0x5f")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[qx("0x8f")](t);return qx("0x0")==o&&qx("0x4b")==s&&i==r.id&&!e.oldRange}));for(const t of i){if(qx("0x7f")!=t[qx("0x87")]||qx("0xa6")!=t[qx("0x2d")]||1!=t[qx("0x6f")])continue;const n=e[qx("0x46")](t[qx("0x29")],t[qx("0x29")].getShiftedBy(1));if(!x[qx("0x30")]((({data:t})=>t[qx("0x2e")][qx("0x9d")](n))))for(const{name:t,data:o}of x)if(n[qx("0x7c")](o.newRange)){e[qx("0x8c")](t,{range:n}),s=!0;break}}return s})),t[qx("0x2c")][qx("0x8e")][qx("0x10")]((e=>{let o=!1;const s=t[qx("0x99")].get(qx("0x61")).me,r=n[qx("0x9e")]()[qx("0x5f")]((t=>t[qx("0x8d")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(qx("0x4b")==t[qx("0x22")])for(const e of t.getMarkers()){const n=e[qx("0xa5")]().getContainedElement();if(n)if(n.is(qx("0x38"),qx("0xa6"))&&Zx(n)){t[qx("0x37")](e[qx("0x2d")]),i[qx("0x57")](n),o=!0;const s=n[qx("0x23")],r=n[qx("0x52")],a=s&&s.is(qx("0x38"),qx("0xa6")),c=r&&r.is(qx("0x38"),qx("0xa6"));a&&!i.has(s)&&x[qx("0x57")](s),c&&!i[qx("0x94")](r)&&x[qx("0x57")](r)}else n.is("element",qx("0x13"))&&n[qx("0x7d")]&&(t[qx("0x37")](e[qx("0x2d")]),o=!0)}else if("tablePasteCell"==t[qx("0x22")]){if(!t[qx("0x93")]||!t[qx("0x93")][qx("0x47")])continue;const e=t[qx("0x93")].markerAttributes;if(e&&Object[qx("0x9c")](e)[qx("0x6f")])continue;const n=t[qx("0x93")][qx("0x47")];let s=!0,i=!0;for(const e of r)if(e[qx("0x22")]&&e[qx("0x22")][qx("0x76")](qx("0x4b"))){if(!e[qx("0x93")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[qx("0x93")][qx("0x47")]==n){s=!1;break}}i&&s&&(t[qx("0x84")](),o=!0)}for(const t of i)e[qx("0x1a")](t);for(const t of x)e[qx("0x6a")](t);return o})),t[qx("0x36")][qx("0x4")]("editingDowncast").markerToHighlight({model:qx("0x6c"),view:(t,e)=>l(t),converterPriority:"high"}),t[qx("0x36")][qx("0x4")](qx("0x2b"))[qx("0xc")]({model:qx("0x6c"),view:(t,e)=>e[qx("0x11")].showSuggestionHighlights?l(t,!1):null,converterPriority:qx("0xa2")});const d=t[qx("0x62")][qx("0x2")];this[qx("0x20")](d[qx("0x8e")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d.createRangeIn(e[qx("0x4a")]).getItems())t.is("element",qx("0x1f"))&&n[qx("0xd")](t);d[qx("0x68")]((t=>{for(const e of n)t[qx("0x1c")](t[qx("0x6e")](e),t[qx("0x59")](e)),t[qx("0x1a")](e)}))}))}}function Zx(t){if(t[qx("0x7d")])return!0;const e=t[qx("0x5b")](0);return e.is(qx("0x38"),qx("0x13"))&&e.isEmpty}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[qx("0x8")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["_suggestionFactory","getSuggestionCallback","table","getSelectedElement","data","getSuggestions","formatBlock","author","handleResizeTableWidthCommand","change","commandParams","getAttribute","getColumnGroupElement","resizeTable","get","bind","resizeTableWidth","formatGroupId","Users","format","enableCommand","plugins","model","editor","tableWidth","getContainedElement","*Format:* resize table","discard","_descriptionFactory","afterInit","resizeColumnWidths","columnWidths","subType","accept","TableColumnResizeEditing","TrackChangesEditing","registerDescriptionCallback"];var ea,na;ea=ta,na=257,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x1f")](){if(!this.editor.plugins.has(oa("0x24")))return;const t=this[oa("0x19")][oa("0x17")].get("TrackChangesEditing");t[oa("0x16")](oa("0x12"),this.handleResizeTableWidthCommand[oa("0x11")](this)),t[oa("0x16")](oa("0x20"),this[oa("0xa")][oa("0x11")](this)),t[oa("0x2")].registerCustomCallback(oa("0x8"),oa("0xf"),oa("0x23"),t[oa("0x2")].getSuggestionCallback(oa("0x8"),null,oa("0x1d"))),t[oa("0x2")].registerCustomCallback(oa("0x8"),oa("0xf"),oa("0x1d"),t._suggestionFactory[oa("0x3")](oa("0x8"),null,oa("0x23"))),t[oa("0x1e")][oa("0x1")](this.handleSuggestionDescription[oa("0x11")](this))}[oa("0xa")](t,e){const n=this[oa("0x19")].plugins[oa("0x10")](oa("0x0")),o=this.editor[oa("0x17")][oa("0x10")](oa("0x24")),s=e[oa("0x4")]||this[oa("0x19")].model.document.selection[oa("0x5")]();this[oa("0x19")][oa("0x18")][oa("0xb")]((()=>{const r=o[oa("0xe")](s);let i=r?o.getTableColumnsWidths(r):null,x=s[oa("0xd")](oa("0x1a"))||null;const a=e.tableWidth||x,c=e.columnWidths||i,l=this[oa("0x19")][oa("0x17")][oa("0x10")](oa("0x14")).me;for(const t of n[oa("0x7")]()){const e=t[oa("0x1b")]();if(oa("0xf")===t[oa("0x22")]&&e===s){t[oa("0x9")]!==l&&t[oa("0x1d")]();const e=t[oa("0x6")][oa("0xc")];x=e[0][oa("0x1a")],i=e[0][oa("0x21")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:oa("0x12"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0xf")},[],"resizeTable")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x13")]){const t=oa("0x1c");return{type:oa("0x15"),content:Yo(this[oa("0x19")].locale,t)}}}}const ra=["enableCommand","get","afterInit","editor","Template","TrackChangesEditing","has","plugins"];var ia,xa;ia=ra,xa=204,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x6")](){const t=this[aa("0x7")];t.plugins[aa("0x2")](aa("0x0"))&&t[aa("0x3")][aa("0x5")](aa("0x1"))[aa("0x4")]("insertTemplate")}}const la=["get","TrackChangesEditing","editor","commands","enableCommand","tableOfContents","afterInit","locale","insertTableOfContents","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","plugins","_descriptionFactory"];var da,ua;da=la,ua=205,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x9")](){const t=this[ga("0x5")];if(!t[ga("0x6")][ga("0x3")](ga("0xb")))return;t[ga("0x1")][ga("0x3")](ga("0x4"))[ga("0x7")](ga("0xb"));const e=t[ga("0x1")].get(ga("0x4")),n=t[ga("0xa")];e[ga("0x2")][ga("0xc")](ga("0x8"),(t=>Yo(n,ga("0x0"),t)))}}const fa=["editor","newRange","isEqual","model","locale","nodeBefore","from","_descriptionFactory","schema","Title","plugins","title-content","isTouching","registerPostFixer","TrackChangesEditing","end","removeMarker","start","element","getChangedMarkers","suggestion","has","ELEMENT_TITLE","getNearestSelectionRange","document","_splitMarkerName","registerElementLabel"];var ha,pa;ha=fa,pa=459,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[ba("0x0")];if(!t[ba("0xa")][ba("0x15")](ba("0x9")))return;const e=t[ba("0xa")].get(ba("0xe"));e[ba("0x7")][ba("0x1a")](ba("0xb"),(()=>Yo(t[ba("0x4")],ba("0x16")))),t[ba("0x3")][ba("0x18")][ba("0xd")]((n=>{let o=!1;const s=Array[ba("0x6")](t[ba("0x3")][ba("0x18")].differ[ba("0x13")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x19")](r);if(ba("0x14")!==s||!i[ba("0x1")])continue;const x=i[ba("0x1")],a=x[ba("0xf")][ba("0x5")];if(!a||!a.is(ba("0x12"),ba("0xb")))continue;if(!x[ba("0x11")][ba("0xc")](x[ba("0xf")]))continue;const c=t[ba("0x3")][ba("0x8")][ba("0x17")](x[ba("0xf")],"forward");if(c&&c.isCollapsed){const t=n.createRange(x[ba("0x11")],c[ba("0x11")]);t[ba("0x2")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[ba("0x10")](r),o=!0)}return o}))}}const _a=["editor","afterInit","undo","plugins","has","TrackChangesEditing","enableCommand","redo","get"];var Ta,Ca;Ta=_a,Ca=442,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x0")](){const t=this[ya("0x8")],e=t[ya("0x2")][ya("0x7")](ya("0x4"));t[ya("0x2")][ya("0x3")]("UndoEditing")&&(e[ya("0x5")](ya("0x1")),e[ya("0x5")](ya("0x6")))}}const Aa=["plugins","enableCommand","get","requires","has","TrackChangesEditing","TableCaptionEditing"];var va,Ra;va=Aa,Ra=161,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x3")](){return[wx]}afterInit(){const t=this.editor;t[Sa("0x0")][Sa("0x4")](Sa("0x6"))&&t.plugins[Sa("0x2")](Sa("0x5"))[Sa("0x1")]("toggleTableCaption")}}const La=["getListTypeFromListStyleType","listStart","document","registerDescriptionCallback","locale","numbered","DocumentListUtils","enableCommand","handleListStartCommand","_getTranslationKeyForListStyle","from","DocumentListPropertiesUtils","markMultiRangeBlockFormat","_getSuggestionBlocksForListStyle","*Format:* set order to regular","plugins","listStyle","_descriptionFactory","afterInit","length","expandListBlocksToCompleteList","handleListStyleCommand","*Format:* set start index to %0","handleDescriptions","TrackChangesEditing","listType","_getSuggestionBlocks","*Change to:* %0","DocumentListPropertiesEditing","model","handleListReversedCommand","styles","change","get","listReversed","getSelectedBlocks","bind","getAttribute","startIndex","has","editor","type","format","toUpperCase","push","_LIST_","ELEMENT_","isListItemBlock","selection","filter","commandParams","reversed"];var Na,Ma;Na=La,Ma=149,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x19")](){if(!this[wa("0x2f")][wa("0x16")][wa("0x2e")](wa("0x23")))return;const t=this[wa("0x2f")].config[wa("0x28")]("list.properties"),e=this.editor[wa("0x16")].get(wa("0x1f"));t[wa("0x26")]&&e[wa("0xe")](wa("0x17"),this[wa("0x1c")][wa("0x2b")](this)),t[wa("0x6")]&&e.enableCommand(wa("0x29"),this.handleListReversedCommand.bind(this)),t[wa("0x2d")]&&e[wa("0xe")](wa("0x8"),this[wa("0xf")].bind(this)),e[wa("0x18")][wa("0xa")](this.handleDescriptions[wa("0x2b")](this))}handleListStyleCommand(t,e={}){const n=this[wa("0x2f")][wa("0x16")][wa("0x28")](wa("0x1f")),o=this[wa("0x14")]();this[wa("0x2f")].model.change((()=>{n[wa("0x13")](o,{commandName:"listStyle",commandParams:[{type:e[wa("0x30")]}],formatGroupId:wa("0x17")})}))}[wa("0x25")](t,e={}){const n=this[wa("0x2f")][wa("0x16")].get(wa("0x1f")),o=this[wa("0x2f")][wa("0x16")][wa("0x28")](wa("0xd")),s=this[wa("0x21")]((t=>o[wa("0x2")](t)&&"numbered"===t[wa("0x2c")](wa("0x20"))));null!==s&&this[wa("0x2f")][wa("0x24")].change((()=>{n[wa("0x13")](s,{commandName:wa("0x29"),commandParams:[{reversed:e.reversed}],formatGroupId:wa("0x29")})}))}handleListStartCommand(t,e={}){const n=this[wa("0x2f")][wa("0x16")][wa("0x28")]("TrackChangesEditing"),o=this.editor.plugins[wa("0x28")](wa("0xd")),s=this[wa("0x21")]((t=>o[wa("0x2")](t)&&wa("0xc")===t[wa("0x2c")](wa("0x20"))));null!==s&&this.editor[wa("0x24")][wa("0x27")]((()=>{n[wa("0x13")](s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wa("0x1e")](t){const e=this[wa("0x2f")][wa("0xb")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wa("0x17"):o=wa("0x22"),s={type:"format",content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0].type)))};break;case wa("0x29"):o=n[wa("0x5")][0].reversed?"*Format:* set order to reversed":wa("0x15"),s={type:wa("0x31"),content:Yo(e,o)};break;case wa("0x8"):o=wa("0x1d"),s={type:wa("0x31"),content:Yo(e,o,n[wa("0x5")][0][wa("0x2d")])}}return s}[wa("0x14")](){const t=this.editor[wa("0x16")][wa("0x28")](wa("0xd"));let e=Array[wa("0x11")](this.editor[wa("0x24")][wa("0x9")][wa("0x3")][wa("0x2a")]());return e[wa("0x33")](...t[wa("0x1b")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[wa("0x2f")][wa("0x16")].get(wa("0xd"));let n=Array.from(this.editor[wa("0x24")][wa("0x9")].selection[wa("0x2a")]())[wa("0x4")](t);if(!n[wa("0x1a")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[wa("0x33")](t);return o}[wa("0x10")](t){return wa("0x1")+this[wa("0x2f")].plugins[wa("0x28")](wa("0x12"))[wa("0x7")](t).toUpperCase()+wa("0x0")+t[wa("0x32")]().replace(/-/g,"_")}}const Fa=["registerCustomCallback","tableBackgroundColor","plugins","_descriptionFactory","pluginName","table","_suggestionFactory","tableProperties","tableCellPadding","discard","tableCellProperties","handleDiscardAction","tableBorderStyle","join","getContainedElement","batch","tableCellBackgroundColor","_handlePropertyChange","TrackChangesTableProperties","model","accept","setAttribute","tableCellHeight","tableBorderWidth","TableCellPropertiesEditing","locale","tableCellWidth","selection","editor","tableBorderColor","handleSuggestionDescription","enableCommand","tableCellHorizontalAlignment","TableUtils","TrackChangesEditing","_getSuggestion","tableCellBorderStyle","getAttribute","formatBlock","tableAlignment","document","tableCellVerticalAlignment","start","getFirstPosition","get","format","tableCellBorderColor","change","*Format:* change table cell properties","removeAttribute","*Format:* change table properties","data","subType","afterInit","getSuggestionCallback"];var Pa,Da;Pa=Fa,Da=185,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x2a")]=[Ba("0x9"),Ba("0x2f"),Ba("0x3"),Ba("0x13"),"tableWidth","tableHeight",Ba("0x24")],this.tableCellProperties=[Ba("0x1a"),Ba("0x10"),"tableCellBorderWidth",Ba("0x2b"),Ba("0x6"),Ba("0x2"),Ba("0x33"),Ba("0xc"),Ba("0x15")]}static get[Ba("0x27")](){return Ba("0x35")}[Ba("0x21")](){const t=this[Ba("0x8")][Ba("0x25")][Ba("0x18")](Ba("0xe"));if(this[Ba("0x8")].plugins.has("TablePropertiesEditing")){for(const e of this.tableProperties)t.enableCommand(e,((t,n)=>{const o=this.editor[Ba("0x36")].document[Ba("0x7")][Ba("0x17")]().findAncestor(Ba("0x28"));this[Ba("0x34")](e,[o],this[Ba("0x2a")],Ba("0x2a"),t,n)}));t[Ba("0x29")][Ba("0x23")](Ba("0x12"),"tableProperties",Ba("0x0"),t[Ba("0x29")][Ba("0x22")]("formatBlock",null,"discard")),t[Ba("0x29")].registerCustomCallback(Ba("0x12"),Ba("0x2a"),"discard",((t,e)=>this[Ba("0x2e")](this[Ba("0x2a")],t,e))),t._suggestionFactory.registerCustomCallback("formatBlock",Ba("0x2a"),"join",(()=>!1))}if(this[Ba("0x8")][Ba("0x25")].has(Ba("0x4"))){for(const e of this[Ba("0x2d")])t[Ba("0xb")](e,((t,n)=>{const o=this[Ba("0x8")][Ba("0x25")][Ba("0x18")](Ba("0xd")).getSelectionAffectedTableCells(this[Ba("0x8")][Ba("0x36")][Ba("0x14")].selection);this[Ba("0x34")](e,o,this[Ba("0x2d")],Ba("0x2d"),t,n)}));t[Ba("0x29")][Ba("0x23")](Ba("0x12"),Ba("0x2d"),Ba("0x0"),t[Ba("0x29")].getSuggestionCallback(Ba("0x12"),null,Ba("0x2c"))),t[Ba("0x29")][Ba("0x23")](Ba("0x12"),Ba("0x2d"),"discard",((t,e)=>this[Ba("0x2e")](this.tableCellProperties,t,e))),t[Ba("0x29")][Ba("0x23")](Ba("0x12"),Ba("0x2d"),Ba("0x30"),(()=>!1))}t[Ba("0x26")].registerDescriptionCallback((t=>this[Ba("0xa")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this.editor[Ba("0x25")][Ba("0x18")](Ba("0xe"));this[Ba("0x8")].model.enqueueChange(r[Ba("0x32")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x11")](o);void 0!==n&&(e[o]=n)}s(r),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][Ba("0x16")].nodeAfter,s=n.commandParams[0];this[Ba("0x8")][Ba("0x36")][Ba("0x1b")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x1")](n,s[n],o):e[Ba("0x1d")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x1f")])switch(t[Ba("0x20")]){case Ba("0x2a"):return{type:Ba("0x19"),content:Yo(this[Ba("0x8")][Ba("0x5")],Ba("0x1e"))};case Ba("0x2d"):return{type:"format",content:Yo(this[Ba("0x8")].locale,Ba("0x1c"))}}}[Ba("0xf")](t,e){const n=this[Ba("0x8")].plugins[Ba("0x18")](Ba("0xe"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ba("0x31")]();if(o.subType===e&&n===t)return o}return null}}const Ua=["_joinSuggestions","_checkSuggestionCorrectness","model","addMarker","isInContent","getFirstRange","enqueueChange","deletion:discard","$marker","value","schema","commentThread","every","_getSuggestionData","newRange","conversion","@external","formatBlock:discard","addComment","trackChanges.trackFormatChanges","rethrowUnexpectedError","getLastMatchingPosition","length","_suggestionFactory","lowest","_isForcedDefaultExecutionBlock","discardSuggestion","toJSON","chain","fromRange","sort","markInlineFormat","acceptAllSuggestions","getCustomProperty","track-changes-suggestion-not-found","unbind","isCollapsed","_cutOutSuggestionMarker","for","collaboration.channelId","deletion:","root","resolve","getShiftedBy","default","values","getIntersection","suggestion-type","isBlock","normal","_getExternalAuthor","fromCharCode","delete","_handleNewSuggestionMarker","hasSuggestion","markMultiRangeInsertion","getSuggestionCallback","low","Users","commandName","parent","consumable","splice","formatBlock","deletion","unbindElementFromMarkerName","fire","markerToHighlight","accept","isOwn","suggestion","trackChanges.mergeNestedSuggestions","addSuggestionData","registerPostFixer","_customCallbacks","markerToData","removeMarkers","_setSuggestionData","insertion","has","getChanges","removeMarker:suggestion:formatBlock","getSuggestion","removeAttribute","acceptSuggestion","execute","getAllAdjacentSuggestions","formatBlock:","getChangedMarkers","add","insertContent","after","isIntersectingWithRange","PendingActions","howMany","PENDING_ACTION_SUGGESTION","formatInline:","_descriptionFactory","getNearestSelectionRange","isSelectable","bindElementToMarker","locale","$graveyard","getAttribute","deleteContent","_defaultCallbacks","setSelection","containsRange","reconvertMarker","_editor","high","isExternal","formatInline:chain","_commentsRepository","elementToElement","forceDefaultExecution","head","elementStart","containsRangeInObject","_getAuthorFromId","insert","addRange","_splitMarkerName","splitPosition","documentSelection","dataToMarker","removeComment","createSelection","element","formatBlock:join","_onDiscard","formatInline","change","editor","removeClass","plugins","start","name","previous","targetPosition","join","updateMarker","writer","deletion:accept","isLimit","getUser","group","document","getWalker","registerCustomCallback","track-changes-adapter-already-set","addSuggestion","suggestionChanged","differ","ck-suggestion-marker-formatBlock","author","multipleBlocks","ck-suggestion-marker-","markers","data","_registerDefaultCallbacks","options","formatInline:join","data-suggestion","dataDowncast","init","insertion:discard","always","acceptSelectedSuggestions","rejected","deletion:chain","insertion:join","addClass","_addThreadToSuggestion","map","mapper","createPositionAfter","item","markerName","_rangeIsInLocalUserInsertion","skipNestingCheck","selection","batch","hasComments","isRemovable","nodeBefore","addMarker:suggestion:formatBlock","isNextTo","editing","open","from","define","trackChangesCommand","_removeSuggestion","ck-suggestion-marker","createRange","enableReadOnlyMode","getSuggestions","createdAt","activeMarkers","ready","addCommentThread","getRanges","isTouching","createRangeIn","enableCommand","_addSuggestionMarker","rootName","CommentsRepository","_saved","isLocal","$textProxy","isAtEnd","track-changes-adapter-missing-getsuggestion","removeMarker","addMarkerName","detach","_updateSuggestionData","dataReady","consume","set","getMultiRangeId","createPositionAt","multi","isObject","backward","change:_saved","attributes","buildSuggestion","size","getRange","TrackChangesEditing","ck-suggestion-marker--active","clone","isEqual","filter","discardSelectedSuggestions","formatInline:discard","containsPosition","listenTo","external:","remove","widget","split","track-changes-suggestion-data-mismatch","config","trackChanges","showSuggestionHighlights","creator","formatGroupId","createElement","discardAllSuggestions","addHighlight","type","isAtStart","containsItem","toViewElement","_model","discard","applyOperation","get","_suggestionState","markDeletion","isUndo","authoredAt","addMarker:suggestion","suggestionLoaded","update:suggestion","refresh","isAfter","markerReady","hasCommentThread","move","moveTargetPosition","commands","push","_enabledCommands","requires","next","_suggestions","editingDowncast","_trackFormatChanges","isMultiRange","_joinWithAdjacentSuggestions","authorName","_findSuggestions","end","nodeAfter","never","isBefore","_adapter","stop","suggestion:","getFirstMarker","_mergeNestedSuggestions","setTo","isInsideObject","markerNameToElements","includes","substr","_setSuggestionRange","updateSuggestion","position","getItems","subType","notReady","then","createPositionBefore","markBlockFormat","accepted","range","marker-count","some","track-changes-user-not-found","upcast","oldRange","fetchCommentThread","_breakSuggestionMarker","_createSuggestion","change:activeMarkers"];var Ga,Ha;Ga=Ua,Ha=414,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0xb7")](){return[za("0x72"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get pluginName(){return za("0x89")}constructor(t){function e(t){return t.map((t=>String[za("0x115")](t))).join("")}super(t),this[za("0x7e")](za("0x69"),[]),this.on(za("0xe1"),((e,n,o,s)=>{this[za("0xa3")][za("0x26")]((()=>{for(const e of[...s,...o])this[za("0xa3")][za("0x40")][za("0x131")](e)&&t[za("0x5e")][za("0xe")](e)}))})),this[za("0x3")]=new ss(this.editor[za("0xe4")][za("0xec")],this[za("0x27")][za("0x7")]),this._adapter=null,this[za("0xf9")]=new Va(this.editor),this._suggestions=new Map,this._commentsRepository=t[za("0x29")][za("0xa6")](za("0x72")),this[za("0xb6")]=new Set,this[za("0xa3")]=this[za("0x27")][za("0xe4")],this[za("0xa7")]=new WeakMap,this[za("0xfb")]=!1,t[za("0x97")][za("0x61")](za("0xf5"),za("0x10e")),this[za("0xbb")]=t.config[za("0xa6")](za("0xf5")),t[za("0x97")][za("0x61")](za("0x129"),!0),this[za("0xc8")]=t[za("0x97")][za("0xa6")](za("0x129")),this[za("0x62")]=new u(t,this[za("0xb6")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,52,51,54])}[za("0x47")](){const t=this.editor;t.conversion[za("0x108")](za("0xba"))[za("0x125")]({model:za("0x128"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[za("0x54")]),o=[za("0x64"),za("0x3f")+n];let s=3e3;return this.activeMarkers.includes(t[za("0x54")])&&(o[za("0xb5")](za("0x8a")),s=3010),za("0x122")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[za("0x108")]("dataDowncast")[za("0x13b")]((e=>{e.on(za("0xab"),((e,n,o)=>{if(!o[za("0x43")][za("0x99")])return;const s=n[za("0x53")];if(!s)return;const r=o[za("0x51")][za("0xa2")](s);t[za("0xe4")][za("0xec")].isObject(s)&&r&&!r[za("0x103")](za("0x94"))&&r.is("containerElement")&&(0,x.toWidget)(r,o[za("0x30")])}),{priority:"high"})})),t[za("0xf1")].for("dataDowncast")[za("0x125")]({model:za("0x128"),view:(t,e)=>{if(!e.options[za("0x99")])return null;const{type:n}=this[za("0x1c")](t[za("0x54")]);return{classes:[za("0x64"),za("0x3f")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x53")])return;if(o[za("0x53")].is(za("0x57")))return void s[za("0x11f")][za("0x7d")](o.item,n[za("0x2b")]);const r=s[za("0x51")][za("0xa2")](o[za("0x53")]);if(!o[za("0x53")].is(za("0x22"))||!t[za("0xe4")][za("0xec")][za("0x112")](o[za("0x53")])||r[za("0x103")](za("0x9e")))return;const{id:i}=this[za("0x1c")](o.markerName);s[za("0x30")].addClass([za("0x64"),"ck-suggestion-marker-formatBlock"],r),s[za("0x30")].setAttribute(za("0x45"),i,r),s[za("0x51")][za("0x6")](r,o[za("0x54")]),e&&(this.activeMarkers[za("0xcc")](o.markerName)?s[za("0x30")][za("0x4e")](za("0x8a"),r):s[za("0x30")].removeClass(za("0x8a"),r));for(const e of t[za("0xe4")][za("0x6e")](o[za("0x53")])[za("0xd1")]())s[za("0x11f")][za("0x7d")](e,n[za("0x2b")]);s.consumable[za("0x7d")](o.item,n[za("0x2b")])};t.conversion.for(za("0x46"))[za("0x13b")]((t=>{t.on(za("0x5c"),((t,e,o)=>{o.options[za("0x99")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[za("0xf1")][za("0x108")]("dataDowncast")[za("0x12d")]({model:za("0x128"),view:(t,e)=>e[za("0x43")][za("0x99")]?null:{group:za("0x128"),name:t[za("0xcd")](11)}}),t[za("0xf1")][za("0x108")](za("0xdc"))[za("0x14")]({view:{name:za("0x128"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0xc6")+t.getAttribute(za("0x111"))+":"+t[za("0x9")]("id");return t.getAttribute(za("0xd9"))&&(n+=":"+t[za("0x9")](za("0xd9"))),e[za("0x9c")](za("0xea"),{"data-name":n})}}),t[za("0xf1")][za("0x108")]("upcast")[za("0x1f")]({view:za("0x128")}),t[za("0xf1")][za("0x108")](za("0xba"))[za("0x13b")]((t=>{t.on(za("0x5c"),n(),{priority:za("0x10")})})),t[za("0xf1")][za("0x108")](za("0xba")).add((t=>{t.on(za("0x133"),((t,e,n)=>{const o=n[za("0x51")][za("0xcb")](e[za("0x54")]);if(o)for(const t of o)t[za("0x103")](za("0x9e"))||(n[za("0x30")][za("0x28")]([za("0x64"),za("0x3c"),za("0x8a")],t),n[za("0x30")][za("0x135")](za("0x45"),t),n.mapper[za("0x123")](t,e[za("0x54")]))}),{priority:za("0x10")})})),t[za("0xe4")][za("0x35")][za("0x12b")]((e=>{let n=!1;const o=Array[za("0x60")](t[za("0xe4")][za("0x35")][za("0x3b")].getChangedMarkers()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x1c")](x);if(za("0x128")!==o)continue;const d=this._suggestions.get(l);if(null!=a.newRange)if(za("0x25")==c&&(n=n||qa(a[za("0xf0")],x,e,t[za("0xe4")].schema)),a.newRange[za("0x106")]||za("0x8")==a.newRange[za("0x10b")][za("0x71")]||za("0x121")==c&&!Ja(a.newRange)||za("0x122")==c&&(Xa(i=a[za("0xf0")])||(r=i)[za("0x2a")].parent==r[za("0xc0")][za("0x5b")]&&r[za("0x2a")].isAtEnd))e[za("0x78")](x),n=!0;else{if(!d||!d[za("0xe6")])continue;s.add(d)}}var r,i;return s.size>0&&(n=!!this[za("0xbd")](s)||n),n})),t[za("0xe4")].document.registerPostFixer((e=>{let n=!1;for(const o of t[za("0xe4")][za("0x35")].differ[za("0x132")]()){if("insert"!=o[za("0x9f")])continue;const s=o[za("0xd0")][za("0x10d")](o[za("0xf8")]);if(s[za("0x76")])for(const r of this[za("0xb9")].values()){if(r[za("0xbc")]||!r[za("0xe6")])continue;if("formatBlock"!=r[za("0x9f")])continue;const i=r[za("0xe7")]();if(i[za("0x2a")][za("0x11e")]!=i[za("0xc0")][za("0x11e")]&&i[za("0xc0")][za("0x8c")](o[za("0xd0")])){const o=t.model[za("0x65")](i[za("0x2a")],s);e.updateMarker(r[za("0xc7")](),{range:o}),n=!0}}}return n})),t.model.markers.on(za("0xad"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0x2b")]),n=this[za("0xb9")].get(t);n&&n[za("0x79")](e.name)}})),t[za("0xe4")][za("0x35")].on("change:data",(()=>{const e=Array[za("0x60")](t[za("0xe4")][za("0x35")][za("0x3b")][za("0x13a")]())[za("0x8d")]((t=>"suggestion"===this[za("0x1c")](t[za("0x2b")])[za("0x34")]));if(0===e[za("0xf8")])return;e[za("0x100")](((t,e)=>{const n=t[za("0x41")][za("0xdd")],o=e[za("0x41")][za("0xdd")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[za("0xc3")](o[za("0x2a")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x1c")](t);if(null===s[za("0xdd")]){const e=this[za("0x117")](t);o[za("0x13b")](e)}else{const t=this._suggestions[za("0xa6")](e);null!==s.newRange||t[za("0xe6")]?(n[za("0x13b")](t[za("0x16")]),o.add(t)):this._removeSuggestion(t)}}o[za("0x87")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x124")](za("0x3a"),t)})),t[za("0xe4")].on(za("0xa5"),((e,n)=>{const o=n[0];if(!this[za("0xb9")][za("0x87")])return;if(!o.isDocumentOperation)return;if(o[za("0x58")][za("0xa9")]||!o[za("0x58")][za("0x74")])return;let s,r;switch(o.type){case za("0x1a"):s=t[za("0xe4")][za("0x80")](o.position),r=s.getShiftedBy(o[za("0x0")]);break;case za("0x95"):s=t[za("0xe4")][za("0x80")](o[za("0x1d")]),r=t[za("0xe4")][za("0x80")](o[za("0xb3")]);break;case za("0xb2"):s=t[za("0xe4")][za("0x80")](o[za("0x2d")]),r=s[za("0x10d")](o[za("0x0")]);break;default:return}const i=t.model[za("0x65")](s,r);t[za("0xe4")][za("0x26")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[za("0xbc")])continue;if(za("0x25")==t[za("0x9f")])continue;const n=t[za("0x41")]&&t[za("0x41")][za("0x3e")];(za("0x121")!=t[za("0x9f")]||za("0x95")==o.type&&!n)&&(e[za("0x18")]||"insertion"==t[za("0x9f")]&&e[za("0x127")]||t.getFirstRange()[za("0xd")](i)&&this[za("0xdf")](t,s,r))}}))}),{priority:za("0xfa")}),t[za("0xe4")].on(za("0xa"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x15")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this.trackChangesCommand[za("0xeb")])return;if(o[za("0x106")])return;const r=t[za("0xe4")][za("0xec")],{start:i,end:x}=o.getFirstRange(),a=i.nodeAfter&&r.isLimit(i.nodeAfter)?null:r[za("0x4")](i,"forward"),c=x.nodeBefore&&r[za("0x32")](x[za("0x5b")])?null:r.getNearestSelectionRange(x,za("0x83")),l=t[za("0xe4")].createRange(a?a[za("0x2a")]:i,c?c[za("0xc0")]:x);t[za("0xe4")][za("0x26")]((e=>{this[za("0xa8")](l);const n=t.model[za("0xec")][za("0x4")](l[za("0x2a")]);o.is(za("0x1e"))?e[za("0xc")](n):o[za("0xc9")](n)})),e[za("0xc5")]()}),{priority:e.priorities[za("0x113")]+10}),t.model.on(za("0x13c"),((e,n)=>{const o=n[n[za("0xf8")]-1];o&&o[za("0x15")]||this[za("0xfb")]||this[za("0x62")][za("0xeb")]&&(t[za("0xe4")][za("0x26")]((()=>{let o=t[za("0xe4")][za("0x13c")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[za("0x8b")]();const s=o[za("0xc0")][za("0x5b")],r=t[za("0xe4")][za("0xec")];s&&r.isBlock(s)&&!r.isObject(s)&&(o=t[za("0xe4")][za("0x65")](o[za("0x2a")],t.model[za("0x80")](s,za("0xc0")))),this.markInsertion(o)})),e[za("0xc5")]())}),{priority:za("0x10")}),this[za("0x27")].commands[za("0x13b")](za("0x98"),this[za("0x62")]),this[za("0x6f")]("trackChanges");const o=new p(t,this[za("0xb9")]);t.commands[za("0x13b")](za("0x136"),o),this.enableCommand("acceptSuggestion");const s=new C(t,this[za("0xb9")]);t[za("0xb4")][za("0x13b")]("discardSuggestion",s),this[za("0x6f")](za("0xfc")),t.commands[za("0x13b")](za("0x102"),new F(t,o,this[za("0xb9")])),this.enableCommand(za("0x102")),t[za("0xb4")][za("0x13b")](za("0x9d"),new F(t,s,this[za("0xb9")])),this[za("0x6f")](za("0x9d")),t[za("0xb4")][za("0x13b")]("acceptSelectedSuggestions",new U(t,o,this[za("0xb9")])),this[za("0x6f")](za("0x4a")),t[za("0xb4")][za("0x13b")](za("0x8e"),new U(t,s,this[za("0xb9")])),this[za("0x6f")]("discardSelectedSuggestions");const r=t[za("0x29")][za("0xa6")](za("0x72"));this.listenTo(r,za("0xf4"),((t,{threadId:e})=>{const n=this[za("0xb9")][za("0xa6")](e);n&&n[za("0xed")]&&1===n[za("0xed")][za("0xf8")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this[za("0x91")](r,za("0x20"),((t,{threadId:e})=>{const n=this[za("0xb9")][za("0xa6")](e);n&&n[za("0xed")]&&!n.commentThread.length&&this[za("0x7b")](e,{hasComments:!1})}),{priority:za("0x11b")})}set adapter(t){if(this[za("0xc4")])throw new e.CKEditorError(za("0x38"),this);this[za("0xc4")]=t}get adapter(){return this[za("0xc4")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0xb9")][za("0x10f")]())t&&!e.isInContent||n.push(e);return e?n[za("0x50")]((t=>t[za("0xfd")]())):n}[za("0x134")](t){const n=this[za("0xb9")][za("0xa6")](t);if(!n)throw new e.CKEditorError(za("0x104"),this);return n}[za("0x118")](t){return this[za("0xb9")][za("0x131")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x9f")][za("0x95")](":"),i=this[za("0xb9")][za("0xa6")](n)||this[za("0xe0")](s,r,n,e,o);if(this[za("0x4f")](i),this[za("0xe3")](i,s,r||null,e),i[za("0x68")]=t[za("0x68")],o&&o[za("0xf2")]){const t=o[za("0xf2")],e=this[za("0x114")](t[za("0xbe")]);i.authoredAt=t[za("0x68")],i[za("0x3d")]=e,i[za("0x11")]=!0}else i[za("0xaa")]=t.createdAt;switch(t.data&&(i[za("0x41")]=t.data),t[za("0x85")]&&(i.attributes=t[za("0x85")]),this[za("0xc4")]&&this[za("0xc4")][za("0x39")]||(i[za("0x73")]=!0),this[za("0xa7")][za("0xa6")](i)){case za("0xd3"):this._suggestionState[za("0x7e")](i,"dataReady");break;case za("0xb0"):i[za("0xe6")]?(this[za("0xa7")].set(i,za("0x6a")),this[za("0x124")](za("0xac"),i)):this[za("0xa7")][za("0x7e")](i,"removed")}return i}[za("0x136")](t){this[za("0x15")]((()=>{this.editor.model[za("0x26")]((()=>{for(const e of t[za("0x138")]())e[za("0x126")]()}))}))}[za("0xfc")](t){this[za("0x15")]((()=>{this[za("0x27")][za("0xe4")][za("0x26")]((()=>{for(const e of t[za("0x138")]())e[za("0xa4")]()}))}))}enableCommand(t,n){const o=this[za("0x27")][za("0xb4")][za("0xa6")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0xb6")][za("0x13b")](o),n&&o.on(za("0x137"),((t,e)=>{this.trackChangesCommand.value&&(this[za("0xfb")]||e.length>0&&e[e[za("0xf8")]-1]&&e[e[za("0xf8")]-1].forceDefaultExecution||(n(((...t)=>o[za("0x137")](...t,{forceDefaultExecution:!0})),...e),t[za("0xc5")]()))}),{priority:za("0x10")})}[za("0x15")](t){let n,o;const s=this[za("0xfb")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[za("0xf6")](o,this),n}markInsertion(t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0x27")].plugins.get(za("0x11c")).me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,"insertion"))if(o.isOwn){if(!o[za("0x5d")]){if(!this[za("0xc8")]&&o.containsRangeInObject)continue;return e}if(n==e[za("0xd2")]){const n=e[za("0xe7")]();return n[za("0x2a")][za("0x8c")](t[za("0xc0")])?this._setSuggestionRange(e,this[za("0xa3")][za("0x65")](t.start,n[za("0xc0")])):this[za("0xce")](e,this._model[za("0x65")](n.start,t[za("0xc0")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:za("0x130"),a=this[za("0x12f")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x70")](x,r,i,t),a}[za("0x119")](t,n=za("0x81"),o={}){const s=this[za("0x27")][za("0x29")][za("0xa6")]("Users").me,r=this[za("0xf9")].getSuggestionCallback(za("0x130"),n,za("0x2e"));for(const e of this[za("0x67")]())if(e[za("0x3d")].id==s.id&&za("0x130")==e[za("0x9f")]&&e[za("0xd2")]==n&&(r(e[za("0x6c")](),t)||r(t,e[za("0x6c")]()))){for(const n of t)e[za("0x1b")](n);return e}if(this[za("0xc8")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0xbf")](e,"insertion")){if(!o[za("0x127")])continue;let e=!0;for(const o of n[za("0x6c")]())for(const n of t)if(!o[za("0xd")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a="insertion:"+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo[za("0x7f")]());return c}[za("0x101")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x106")])return null;if(za("0xc2")===this[za("0xbb")]){const e=this[za("0xf9")][za("0x11a")]("formatInline",o,za("0x126"));return this[za("0x15")]((()=>e([t],n,s))),null}const r=this[za("0x27")][za("0x29")][za("0xa6")](za("0x11c")).me,i=[];if(za("0x49")!==this[za("0xbb")])for(const{suggestion:e,meta:n}of this[za("0xbf")](t,za("0x130")))n[za("0x127")]&&!n.isInsideObject&&i.push(...e[za("0x6c")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xf8")];){const o=n[e].getDifference(t);n[za("0x120")](e,1,...o),e+=o[za("0xf8")]}}return n}(t,i);x[za("0xf8")]&&this[za("0xa3")][za("0x26")]((()=>{for(const t of x){const e=this[za("0xf9")][za("0x11a")](za("0x25"),o,za("0x126"));this[za("0x15")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x2a")],a=t[za("0xc0")];for(const{suggestion:e,meta:n}of this[za("0xbf")](t,za("0x25"))){if(!n[za("0x127")])continue;if(e.subType!=o)continue;const s=e[za("0xe7")]();if(s[za("0xd")](t,!0))return null;x=x.isBefore(s[za("0x2a")])?x:s[za("0x2a")],a=a[za("0xaf")](s.end)?a:s[za("0xc0")],i?s[za("0x2a")].isBefore(i[za("0xe7")]()[za("0x2a")])?(i[za("0x12e")](),i=e):e[za("0x12e")]():i=e}const c=this[za("0xa3")][za("0x65")](x,a);if(i)this[za("0xce")](i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:za("0x2")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x70")](za("0x2")+o,t,i,c)}}return null}[za("0xd6")](t,n,o=[],s=null,r={}){n[za("0x9b")]||(n[za("0x9b")]=n.commandName),n[za("0x3e")]=t.is(za("0xd8")),s=s||$a(n);const i=o[za("0x50")]((t=>Qa(t,this[za("0xa3")]))),x=t.is(za("0xd8"))?t:Qa(t,this[za("0xa3")]);if(za("0xc2")===this._trackFormatChanges){const t=this[za("0xf9")][za("0x11a")](za("0x121"),s,za("0x126"));return this[za("0x15")]((()=>t([x],n,r))),null}i[za("0xb5")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0x49")!==this[za("0xbb")]){const t=this[za("0xf9")][za("0x11a")](za("0x121"),s,za("0x126"));return this[za("0x15")]((()=>t([x],n,r))),null}let c=null,l=x[za("0x2a")],d=x.end;for(const{suggestion:t,meta:e}of this[za("0xbf")](x,za("0x121"))){if(!e.isOwn||e[za("0x5d")]||e[za("0x18")]||e[za("0xca")])continue;if(t[za("0x41")][za("0x9b")]!=n[za("0x9b")])continue;const o=t[za("0xe7")]();if(t[za("0xd2")]==s){if(o[za("0xd")](x,!0))return null;l=l[za("0xc3")](o[za("0x2a")])?l:o[za("0x2a")],d=d.isAfter(o[za("0xc0")])?d:o[za("0xc0")],c?o[za("0x2a")][za("0xc3")](c[za("0xe7")]()[za("0x2a")])?(c.removeMarkers(),c=t):t.removeMarkers():c=t}else{const e=x[za("0x110")](o);this[za("0x107")](t,e)}}const u=this[za("0x27")][za("0x29")].get(za("0x11c")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0xce")](c,this[za("0xa3")].createRange(l,d)),c;{const t=this[za("0x12f")]({id:g,type:za("0x139")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x70")](za("0x139")+s,g,m,this[za("0xa3")].createRange(l,d)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[za("0x9b")]||(n[za("0x9b")]=n[za("0x11d")]);const i=t[0];n[za("0x3e")]=i.is(za("0xd8")),s=s||$a(n);const x=o.map((t=>Qa(t,this[za("0xa3")]))),a=i.is(za("0xd8"))?t:t[za("0x50")]((t=>Qa(t,this._model)));if(za("0xc2")===this[za("0xbb")]){const t=this._suggestionFactory[za("0x11a")]("formatBlock",s,za("0x126"));return this[za("0x15")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[za("0x55")](t)){c=!1;break}if(c&&za("0x49")!==this[za("0xbb")]){const t=this._suggestionFactory[za("0x11a")](za("0x121"),s,za("0x126"));return this[za("0x15")]((()=>t(a,n,r))),null}const l=this.editor[za("0x29")][za("0xa6")](za("0x11c")).me;for(const t of this[za("0x67")]()){if(t[za("0x3d")].id!=l.id)continue;if(za("0x121")!=t[za("0x9f")]||t[za("0x41")].formatGroupId!=n[za("0x9b")])continue;const e=t[za("0xd2")]==s;for(let n=0;n<a[za("0xf8")];n++){const o=a[n];for(const s of t.getMarkers()){const r=s[za("0x88")]();if(o[za("0x8c")](r)){e?(a[za("0x120")](n,1),n--):t[za("0x78")](s[za("0x2b")]);break}}}}if(0==a[za("0xf8")])return null;const d=this[za("0xf9")].getSuggestionCallback("formatBlock",s,za("0x2e"));for(const t of this[za("0x67")]())if(t[za("0x3d")].id==l.id&&za("0x121")==t[za("0x9f")]&&t[za("0x41")][za("0x9b")]==n[za("0x9b")]&&t[za("0xd2")]==s&&(d(t[za("0x6c")](),a)||d(a,t.getRanges()))){for(const e of a)t[za("0x1b")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x139")+s,f=this[za("0x12f")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(m,u,g,t,Zo[za("0x7f")]());return f}[za("0xa8")](t,n=null,o={}){if(t[za("0x106")])return null;const s=this.editor[za("0x29")][za("0xa6")](za("0x11c")).me,r=new i.LiveRange(t[za("0x2a")],t[za("0xc0")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0x130")))if(e[za("0x127")]&&!e.isNextTo)if(t[za("0xbc")]){const e=t.getRanges()[za("0x8d")]((t=>za("0x8")!=t[za("0x10b")][za("0x71")]));if(e[za("0xee")]((t=>r[za("0xd")](t,!0)))&&t[za("0xa4")](),e[za("0xda")]((t=>t.containsRange(r,!0)))){const t=this[za("0xf9")][za("0x11a")](za("0x122"),n,"accept");return this[za("0x15")]((()=>t([r],null,o))),null}}else{const e=r[za("0x110")](t[za("0xe7")]());null!==e&&t[za("0x24")]([e],null,o)}if(r[za("0x7a")](),r[za("0x106")]||za("0x8")==r[za("0x10b")][za("0x71")])return null;let x=null,a=r[za("0x2a")],c=r.end;for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0x122")))if(e[za("0x127")])if(t[za("0xbc")]&&this[za("0xc8")]){let e=!0;for(const n of t.getRanges()){if(n[za("0xd")](r,!0))return t;r[za("0xd")](n)||(e=!1)}e&&t[za("0xa4")]()}else{const n=t[za("0xe7")]();if(n[za("0xd")](r,!0)){if(!this[za("0xc8")]&&e.containsRangeInObject)continue;return t}a=a[za("0xc3")](n[za("0x2a")])?a:n[za("0x2a")],c=c[za("0xaf")](n[za("0xc0")])?c:n[za("0xc0")],x?n[za("0x2a")].isBefore(x.getFirstRange()[za("0x2a")])?(x[za("0x12e")](),x=t):t[za("0x12e")]():x=t}if(x)return this[za("0xce")](x,this[za("0xa3")][za("0x65")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0xa3")].createRange(a,c),i=s.id,x=n?za("0x10a")+n:za("0x122"),l=this[za("0x12f")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x70")](x,t,i,r),l}}markMultiRangeDeletion(t,n=za("0x81"),o={}){const s=this[za("0x27")][za("0x29")][za("0xa6")](za("0x11c")).me,r=t[za("0x50")]((t=>new i.LiveRange(t[za("0x2a")],t.end))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xbf")](t,za("0x130")))n[za("0x127")]&&!n[za("0x5d")]&&x.add(e);for(const e of x)if(e.isMultiRange){const s=e.getRanges();if((!e[za("0x85")]||!e[za("0x85")].skipNestingCheck)&&s.every((t=>r[za("0xda")]((e=>e[za("0xd")](t,!0)))))&&e.discard(),r[za("0xee")]((t=>s[za("0xda")]((e=>e[za("0xd")](t,!0)))))){const e=this[za("0xf9")][za("0x11a")]("deletion",n,za("0x126"));return this[za("0x15")]((()=>e(t,null,o))),null}}else{const t=e[za("0xe7")]();if(r.some((e=>e[za("0xd")](t,!0)))&&e[za("0xa4")](),r.every((e=>t.containsRange(e,!0)))){const t=this[za("0xf9")][za("0x11a")](za("0x122"),n,"accept");return this[za("0x15")]((()=>t(r,null,o))),null}}const a=this[za("0xf9")][za("0x11a")](za("0x122"),n,za("0x2e"));let c=null;for(const t of this[za("0x67")]())if(t[za("0x3d")].id==s.id&&t[za("0xe6")]&&za("0x122")==t.type&&t[za("0xd2")]==n&&(a(t[za("0x6c")](),r)||a(r,t[za("0x6c")]())))if(c){if(t[za("0xed")]&&t[za("0xed")][za("0xf8")])continue;for(const e of t[za("0x6c")]())c[za("0x13e")](e)||c[za("0x1b")](e);t[za("0x12e")]()}else{c=t;for(const e of r)t[za("0x13e")](e)||t.addRange(e)}if(c)return c;x.clear();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x122")))n[za("0x127")]&&x[za("0x13b")](e);for(const t of x){const e=t[za("0x6c")]();if((!o||!o.skipNestingCheck)&&r[za("0xee")]((t=>e[za("0xda")]((e=>e[za("0xd")](t,!0))))))return t;(!t[za("0x85")]||!t[za("0x85")][za("0x56")])&&e.every((t=>r[za("0xda")]((e=>e[za("0xd")](t,!0)))))&&t[za("0xa4")]()}const l=(0,e.uid)(),d=s.id,u=za("0x10a")+n,g=this[za("0x12f")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x7a")](),t[za("0x106")]||za("0x8")==t[za("0x10b")][za("0x71")]||this[za("0x70")](u,l,d,t,Zo[za("0x7f")]());return g}_setSuggestionRange(t,e){const n=t[za("0xc7")]();this[za("0xa3")].change((t=>{t[za("0x2f")](n,{range:e})}))}[za("0x4f")](t){const e=t.id,n=this[za("0x27")].config.get(za("0x109"));this[za("0x13")][za("0xb1")](e)||this[za("0x13")][za("0x6b")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x13")].getCommentThread(e);o[za("0x105")]("isRemovable"),o[za("0x5a")]=!1,t[za("0xed")]=o}[za("0xe3")](t,n,o,s){if(t.type!=n||t[za("0xd2")]!=o||t[za("0x9a")].id!=s)throw this.editor[za("0x66")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(za("0x96"),this)}_cutOutSuggestionMarker(t,n){const o=t[za("0xe7")]();if(n[za("0x8c")](o))t[za("0x12e")]();else if(o[za("0xd")](n)){const s=this[za("0xa3")].createPositionAt(n[za("0x2a")][za("0x5b")],za("0xc0"));this[za("0xce")](t,this._model[za("0x65")](o[za("0x2a")],s));const r=(0,e.uid)(),i=t[za("0x9a")].id,x=t[za("0x9f")]+":"+t[za("0xd2")];this[za("0x12f")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[za("0x85")]});const a=this._model.createPositionAt(n[za("0xc0")][za("0x11e")],za("0x13d")),c=this[za("0xa3")][za("0x65")](a,o[za("0xc0")]);this._addSuggestionMarker(x,r,i,c)}else if(o[za("0x90")](n[za("0x2a")])){const e=this._model[za("0x80")](n[za("0x2a")].nodeBefore,za("0xc0"));this[za("0xce")](t,this._model.createRange(o.start,e))}else{const e=this._model[za("0x80")](n[za("0xc0")][za("0x11e")],za("0x13d"));this[za("0xce")](t,this[za("0xa3")].createRange(e,o.end))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x130"))){if(!n[za("0x127")])continue;const o=e[za("0x6c")]();for(const e of o)if(!t.getDifference(e).length)return!0}return!1}[za("0x19")](t){const n=this[za("0x27")].plugins[za("0xa6")]("Users")[za("0x33")](t);if(!n)throw new e.CKEditorError(za("0xdb"),this);return n}[za("0x114")](t){const e=this[za("0x27")][za("0x29")][za("0xa6")](za("0x11c")),n=(0,r.hashObject)(za("0x92")+t);return e[za("0x33")](n)||e.addUser({id:n,name:t})}[za("0xe0")](t,e,n,o,s){const r=this[za("0x19")](o),i=this[za("0xf9")].buildSuggestion(t,e,n,r,s,(t=>this[za("0x7b")](n,{attributes:t})));return this[za("0x91")](i,za("0x126"),(()=>{this[za("0x7b")](n,{state:za("0xd7")})}),{priority:"high"}),this[za("0x91")](i,za("0xa4"),(()=>{this[za("0x7b")](n,{state:za("0x4b")})}),{priority:za("0x10")}),this._suggestions.set(n,i),this[za("0xa7")][za("0x7e")](i,"notReady"),i}[za("0x1c")](t){const e=t[za("0x95")](":");return{group:e[0],type:e[1],subType:e[za("0xf8")]>=5?e[2]:null,id:e[za("0xf8")]<5?e[2]:e[3],authorId:e[za("0xf8")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[za("0xdf")](t,n,o){const s=t[za("0xe7")](),r=s[za("0x2a")],i=s[za("0xc0")];this[za("0xce")](t,this[za("0xa3")][za("0x65")](r,n));const x=(0,e.uid)(),a=t[za("0x9a")].id,c=t[za("0x9f")]+(t[za("0xd2")]?":"+t[za("0xd2")]:"");this[za("0x12f")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x85")],data:t[za("0x41")]}),za("0x121")==t[za("0x9f")]&&(o=this[za("0xa3")][za("0xd5")](o[za("0x11e")])),this[za("0x70")](c,x,a,this[za("0xa3")][za("0x65")](o,i))}[za("0xbf")](t,e=null){const n=[],o=this[za("0xa3")].schema,s=this[za("0x27")].plugins.get(za("0x11c")).me;for(const r of this[za("0x67")]())if(r[za("0xe6")]&&(!e||r.type==e))for(const e of r[za("0x6c")]()){const i=t[za("0x2a")][za("0x8c")](e[za("0xc0")])||t[za("0xc0")][za("0x8c")](e[za("0x2a")]);if(i||t[za("0x110")](e)){const x=t[za("0xd")](e)&&Ka(o,e[za("0x2a")],t),a=e[za("0xd")](t)&&Ka(o,t[za("0x2a")],e);n[za("0xb5")]({suggestion:r,meta:{isOwn:s==r[za("0x3d")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x70")](t,e,n,o,s){this._model[za("0x26")]((r=>{let i=za("0xc6")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xe5")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x63")](t){const e=t[za("0x2c")],n=t[za("0xb8")];t[za("0x2c")]=null,null!=e&&(e.next=null),t[za("0xb8")]=null,null!=n&&(n.previous=null),za("0x6a")==this[za("0xa7")].get(t)&&(this._suggestionState[za("0x7e")](t,"removed"),this[za("0x124")]("suggestionUnloaded",t,e,n))}[za("0x12f")](t){const n=t.id,o=this[za("0x12a")](t);if(this._adapter&&this[za("0xc4")][za("0x39")]){const s=this[za("0x27")][za("0x29")].get(za("0x13f")),r=o[za("0x59")],i=o[za("0xd2")]?o.type+":"+o[za("0xd2")]:o[za("0x9f")],x=this[za("0x27")][za("0x7")],a=s[za("0x13b")](Yo(x,za("0x1"))),c={id:n,type:i,hasComments:r,data:t[za("0x41")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o.attributes};this[za("0xc4")].addSuggestion(c).then((t=>{o._saved=!0,s[za("0x93")](a),t&&t[za("0x68")]&&(this[za("0xb9")][za("0xa6")](n)[za("0x68")]=t[za("0x68")])})).catch((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this.editor[za("0xe4")][za("0xe8")]({isUndoable:!1},(()=>{o[za("0xa4")]()})),o.stopListening(),this[za("0xb9")][za("0x116")](o.id),this[za("0xa7")][za("0x116")](o),t}))}return o}[za("0x7b")](t,e){const n=this[za("0x27")].plugins.get(za("0x13f")),o=this[za("0x134")](t);if(this[za("0xc4")]&&this[za("0xc4")][za("0xcf")])if(o[za("0x73")]){const o=n[za("0x13b")](Yo(this[za("0x27")][za("0x7")],za("0x1")));this[za("0xc4")][za("0xcf")](t,e).then((()=>{n[za("0x93")](o)}))}else o.on(za("0x84"),(()=>{this[za("0x7b")](t,e)}))}[za("0xef")](t){if(!this[za("0xc4")]||!this[za("0xc4")].getSuggestion)throw new e.CKEditorError(za("0x77"),this);return this._adapter[za("0x134")](t)}[za("0x117")](t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[za("0xb9")].get(e)||this[za("0xe0")](n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this[za("0xa7")][za("0xa6")](r)){case za("0xd3"):this[za("0xef")](e)[za("0xd4")]((t=>{let n=Promise[za("0x10c")]();t[za("0x59")]&&(n=this[za("0x13")][za("0xde")]({channelId:this[za("0x27")][za("0x97")][za("0xa6")]("collaboration.channelId"),threadId:e})),n[za("0xd4")]((()=>{this[za("0x12a")](t)[za("0x73")]=!0}))})),this[za("0xa7")][za("0x7e")](r,za("0xb0"));break;case"removed":this._updateSuggestionData(e,{state:za("0x5f")});case za("0x7c"):this._suggestionState[za("0x7e")](r,za("0x6a")),this[za("0x124")](za("0xac"),r);break;case za("0x6a"):this[za("0x124")]("suggestionChanged",r)}return r[za("0x79")](t),r}_refreshSuggestionsChain(t){const e=Array.from(t)[za("0x8d")]((t=>!t.isMultiRange)),n=this[za("0x67")]({skipNotAttached:!0}).filter((t=>!t[za("0xbc")])),o=n[za("0x8d")]((e=>!t.has(e))),s=new Map(n[za("0x50")]((t=>[t,this[za("0xf9")][za("0x11a")](t.type,t[za("0xd2")],za("0xfe"))]))),r=new Map(n[za("0x50")]((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xf8")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0xf8")];t++)a(e[t],o,0);for(let t=0;t<e[za("0xf8")];t++){const n=e[t];!x[za("0x131")](n)&&n[za("0x2c")]&&(n.previous[za("0xb8")]===n&&(n[za("0x2c")][za("0xb8")]=null),n[za("0x2c")]=null),!i[za("0x131")](n)&&n[za("0xb8")]&&(n[za("0xb8")].previous===n&&(n[za("0xb8")][za("0x2c")]=null),n[za("0xb8")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xf8")];o++){const n=c(t,e[o]);n&&(n[0][za("0xb8")]=n[1],n[1].previous=n[0],i[za("0x13b")](n[0]),x[za("0x13b")](n[1]))}}function c(t,e){if(t[za("0x3d")].id!==e.author.id)return null;const n=s.get(t)(t,e,r.get(t),r[za("0xa6")](e));return n&&s[za("0xa6")](e)(t,e,r[za("0xa6")](t),r[za("0xa6")](e))?n[1][za("0xed")]&&n[1][za("0xed")][za("0xf8")]?null:n:null}}[za("0xbd")](t){const e=Array[za("0x60")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0x8d")]((e=>!t.has(e))),s=new Map(e[za("0x50")]((t=>[t,this[za("0xf9")].getSuggestionCallback(t[za("0x9f")],t[za("0xd2")],za("0x2e"))]))),r=new Map(n[za("0x50")]((t=>[t,t[za("0x6c")]()])));for(let t=0;t<e[za("0xf8")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0xf8")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0xf8")];i++){const o=n[i];if(o.type!==e[za("0x9f")]||o[za("0x3d")].id!==e[za("0x3d")].id||o[za("0xd2")]!==e[za("0xd2")])continue;const x=s[za("0xa6")](e),a=r[za("0xa6")](e),c=r[za("0xa6")](o),l=e[za("0xed")]&&e[za("0xed")].length,d=o[za("0xed")]&&o[za("0xed")][za("0xf8")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[za("0x116")](e),!0;if(!d&&x(a,c))return t[za("0xe2")](e,o),r[za("0x116")](o),!0}return!1}}_joinSuggestions(t,e){if(t.isMultiRange)for(const n of e.getRanges())t[za("0x1b")](n);else{const n=e[za("0xe7")]()[za("0xc0")];this[za("0xce")](t,this[za("0xa3")][za("0x65")](t[za("0xe7")]()[za("0x2a")],n))}e[za("0x12e")]()}}class Va{constructor(t){this[za("0xf")]=t,this[za("0xa3")]=t[za("0xe4")],this[za("0x12c")]=new Map,this[za("0xb")]=new Map,this[za("0x42")]()}[za("0x86")](t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,za("0x126"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,za("0xa4"))(...n)})}[za("0x37")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x12c")][za("0x7e")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[za("0x12c")][za("0xa6")](o)||this[za("0xb")][za("0xa6")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[za("0x100")](((t,e)=>t.start[za("0xc3")](e[za("0x2a")])?1:-1)),this[za("0xa3")][za("0x26")]((e=>{for(const n of t){let t;t=n[za("0xc0")][za("0x76")]&&n[za("0xc0")].parent==n[za("0x2a")][za("0xc1")]?e[za("0x21")](n.start.nodeAfter,"on"):e[za("0x21")](n),this._model[za("0xa")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0xa3")][za("0x26")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x50")]((t=>(Xa(t)&&(t=this[za("0xa3")][za("0x65")](t[za("0xc0")])),t)))[za("0x8d")]((t=>za("0x8")!==t[za("0x10b")].rootName));if(r[za("0xf8")]<1)return;const x=Array[za("0x60")](this[za("0xa3")][za("0x35")][za("0x57")].getRanges()).map((t=>i.LiveRange[za("0xff")](t)));n[za("0xc")](r);for(const t of this._editor[za("0xb4")][za("0xb4")]())t[za("0xae")]();s.push({forceDefaultExecution:!0}),this[za("0xf")][za("0x137")](o,...s);const a=x[za("0x8d")]((t=>"$graveyard"!=t[za("0x10b")][za("0x71")]));a[za("0xf8")]>0&&n.setSelection(a);for(const t of x)t[za("0x7a")]()}))},o=(t,e)=>1==t.length&&1==e[za("0xf8")]&&t[0].end[za("0x8c")](e[0][za("0x2a")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0xa3")])?[t,e]:Za(e,t,o,n,this[za("0xa3")])?[e,t]:null;this._defaultCallbacks.set("insertion:accept",t),this[za("0xb")][za("0x7e")](za("0x48"),e),this[za("0xb")].set(za("0x4d"),o),this[za("0xb")][za("0x7e")]("insertion:chain",s),this[za("0xb")][za("0x7e")](za("0x31"),e),this[za("0xb")][za("0x7e")](za("0xe9"),t),this[za("0xb")][za("0x7e")]("deletion:join",o),this[za("0xb")][za("0x7e")](za("0x4c"),s),this[za("0xb")][za("0x7e")]("formatInline:accept",n),this[za("0xb")].set(za("0x8f"),t),this._defaultCallbacks.set(za("0x44"),o),this[za("0xb")][za("0x7e")](za("0x12"),t),this._defaultCallbacks[za("0x7e")]("formatBlock:accept",n),this[za("0xb")][za("0x7e")](za("0xf3"),t),this[za("0xb")][za("0x7e")](za("0x23"),o),this._defaultCallbacks[za("0x7e")]("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e[za("0x11e")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0x10b")]==o)return!1;if(!n[za("0xa1")](o))return!1;if(t[za("0x82")](o)||t[za("0x32")](o))return!0}return!1}function Xa(t){return t[za("0xc0")][za("0x11e")]==t[za("0x2a")].nodeAfter&&t[za("0xc0")][za("0xa0")]}function qa(t,e,n,o){const s=t=>!t[za("0x53")].is(za("0x75"))&&!o[za("0x82")](t.item),r=t[za("0x2a")][za("0xf7")](s),i=t[za("0xc0")][za("0xf7")](s,{direction:za("0x83")});return!(t[za("0x2a")].isEqual(r)&&t[za("0xc0")][za("0x8c")](i)||(r[za("0xc3")](i)?n[za("0x2f")](e,{range:n[za("0x65")](r,i)}):n[za("0x78")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x2a")][za("0xc1")];return e&&e.is("element")}function Qa(t,e){const n=e[za("0xec")].isObject(t)||e[za("0xec")][za("0x5")](t);return e[za("0x65")](e[za("0x80")](t,"before"),n?e[za("0x52")](t):e.createPositionAt(t,"end"))}function Za(t,e,n,o,s){if(n[za("0xc0")][za("0x8c")](o.start))return!0;if(t.type!=e[za("0x9f")])return!1;if(!n[za("0xc0")][za("0x6d")](o.start))return!1;const r=s.createRange(n[za("0xc0")],o[za("0x2a")])[za("0x36")]();for(const t of r)if([za("0x17"),"elementEnd"][za("0xcc")](t[za("0x9f")])&&s[za("0xec")][za("0x32")](t.item))return!1;return!0}const Ya=["plugins","acceptSuggestion","_discardCommand","change:isDirty","isEnabled","_setPendingAction","_pendingAction","remove","locale","execute","canEditAt","commands","model","bind","getRanges","commentThreadController","unbind","add","isDirty","listenTo","_removePendingAction","discardSuggestion","_editor","view","destroy","get","canDiscard","canAccept","PENDING_ACTION_SUGGESTION","PendingActions","_acceptCommand"];var tc,ec;tc=Ya,ec=334,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x13")]=e,this[nc("0x1e")]=n,this[nc("0x16")]=o,this[nc("0x1d")]=t,this[nc("0x6")]=t[nc("0x12")][nc("0x1")](nc("0x8")),this[nc("0x9")]=t.commands[nc("0x1")](nc("0x1c")),this.view[nc("0x14")](nc("0xb")).to(this[nc("0x6")],this[nc("0x9")],((t,e)=>t||e)),this[nc("0x1e")][nc("0x14")](nc("0x3")).to(this[nc("0x6")],nc("0xb"),(t=>t&&this[nc("0x1d")].model[nc("0x11")](e[nc("0x15")]()))),this.view[nc("0x14")](nc("0x2")).to(this[nc("0x9")],nc("0xb"),(t=>t&&this[nc("0x1d")][nc("0x13")][nc("0x11")](e[nc("0x15")]()))),this[nc("0xd")]=null,n[nc("0x19")]&&this._setPendingAction(),this[nc("0x1a")](n,nc("0x8"),(()=>this.acceptSuggestion())),this.listenTo(n,"discardSuggestion",(()=>this[nc("0x1c")]())),this.listenTo(n,nc("0xa"),(()=>{n[nc("0x19")]?this[nc("0xc")]():this[nc("0x1b")]()}))}[nc("0x8")](){this[nc("0x6")][nc("0x10")](this.model.id)}[nc("0x1c")](){this[nc("0x9")][nc("0x10")](this[nc("0x13")].id)}[nc("0x0")](){this[nc("0x1e")][nc("0x17")](nc("0xb")),this[nc("0x1e")][nc("0x17")](nc("0x3")),this[nc("0x1e")].unbind(nc("0x2")),this.stopListening(),this[nc("0x16")][nc("0x0")](),this._pendingAction&&this[nc("0x1b")]()}[nc("0xc")](){const t=Yo(this[nc("0x1d")][nc("0xf")],nc("0x4"));this._pendingAction=this[nc("0x1d")][nc("0x7")][nc("0x1")](nc("0x5"))[nc("0x18")](t)}[nc("0x1b")](){null!==this._pendingAction&&this[nc("0x1d")][nc("0x7")][nc("0x1")]("PendingActions")[nc("0xe")](this[nc("0xd")]),this[nc("0xd")]=null}}const sc=["isEnabled","cancel","editor","authoredAt","commentsListView","bind","_config","commentInputView","updateComment","_model","CommentView","_localUser","isReadOnly","_createCommentViews","set","commentThreadInputView","editorConfig","locale","descriptionParts","commentThread","canAccept","fire","destroy","disabledSubmit","value","delegate","_createCommentThreadInputView","canDiscard","isActive","submit","assign","setData","addComment","hasDirtyComment","element","length","focus","isDirty","removeComment"];var rc,ic;rc=sc,ic=137,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x17")]=null,this[xc("0x22")]=null,this.set(xc("0x8"),!1),this[xc("0x21")]("authoredAt",e.authoredAt),this[xc("0x18")](xc("0x16")).to(e),this[xc("0x21")](xc("0x25"),[]),this[xc("0x21")](xc("0x11"),!1),this[xc("0x21")](xc("0x13"),!1),this[xc("0x21")](xc("0x0"),!1),this[xc("0x21")](xc("0x7"),!1),this._model=e,this[xc("0x1e")]=n,this._config=o,o.disableComments?this[xc("0x21")](xc("0xf"),1):this[xc("0x20")]()}focus(){this[xc("0xe")][xc("0x10")]()}destroy(){this[xc("0x17")]&&this.commentsListView[xc("0x2")](),this[xc("0x22")]&&this.commentThreadInputView[xc("0x2")](),super.destroy()}[xc("0x20")](){const{CommentsListView:t}=this[xc("0x19")];this.commentsListView=new t(this[xc("0x24")],this._model[xc("0x26")],Object[xc("0xa")]({CommentView:this[xc("0x19")][xc("0x1d")]},this[xc("0x19")])),this.commentsListView[xc("0x5")]("removeComment").to(this),this.commentsListView[xc("0x5")](xc("0x1b")).to(this),this[xc("0x17")].bind("isActive").to(this),this[xc("0x21")](xc("0xf"),this[xc("0x17")][xc("0xf")]+1),this[xc("0x18")](xc("0xf")).to(this[xc("0x17")],xc("0xf"),(t=>t+1)),this[xc("0x22")]=this[xc("0x6")](),this.on(xc("0x12"),(()=>this[xc("0x10")]())),this[xc("0x18")](xc("0x11")).to(this[xc("0x17")],xc("0xd"),this[xc("0x22")].commentInputView,xc("0x4"),((t,e)=>t||!!e))}[xc("0x6")](){const{CommentThreadInputView:t}=this._config,e=new t(this[xc("0x24")],this[xc("0x1e")],this[xc("0x19")][xc("0x23")]),n=e[xc("0x1a")];return e.bind("showInput").to(this,xc("0x8"),this._model.commentThread,xc("0x1f"),n,xc("0x4"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x9"),((t,e)=>{this[xc("0x1")](xc("0xc"),e),n[xc("0x15")][xc("0xb")]("")})),n.on(xc("0x14"),(()=>this.focus())),n[xc("0x18")](xc("0x3")).to(this[xc("0x1c")].commentThread,xc("0x1f")),e}}const cc=["ck-suggestion__info-name","bind","@external","discardSuggestion","EXTERNAL_AVATAR","ck-annotation","ck-annotation__content-wrapper","getExternalSuggestionNote","_createButton",'"></span>',"change:description","execute","ck-suggestion__actions","push","title","_descriptionElement","ck-suggestion__user","_config","ck-annotation__user","canAccept","ck-annotation__info-name","commentsListView",'<span class="ck-suggestion-color" style="background-color: ',"<p>","ck-suggestion__main","disableComments",".ck-annotation__content-wrapper","creator","acceptButton","source","author","name","bindTemplate","Discard suggestion","formatDateTime","Accept suggestion","isExternal","isEnabled","ck-suggestion-wrapper","div","descriptionParts","span","getTemplate","isActive","render","querySelector","createElement","importWord","color","locale",'" title="',"discardButton","userView","ck-annotation__info-time","innerHTML","EXTERNAL_IMPORT_WORD_SUGGESTION","EXTERNAL_SUGGESTION","ck-suggestion--discard","content","ck-suggestion-","extendTemplate","ck-annotation__main","ck-comment__external","set","ck-suggestion--disabled-comments","description","ck-suggestion","authoredAt","type","setTemplate","attributes","commentThreadInputView","map","acceptSuggestion","cancel","_model","getUserViewNotificationText","ck-suggestion__info","join","value","</span>","EXTERNAL_IMPORT_WORD_AVATAR","</p>","ck-comment__info-time","innerText","ck-annotation__info","commentThread"];var lc,dc;lc=cc,dc=206,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this.set("type",""),this[uc("0x38")](uc("0x24")).to(this,uc("0x8"),(t=>t&&t[0]?t[0][uc("0x24")]:"")),this[uc("0x38")](uc("0x21")).to(this,"descriptionParts",this,uc("0xb"),((t,e)=>{let n="";for(const e of t)n+=uc("0x4e")+mc(e[uc("0x1a")],e[uc("0x10")])+uc("0x32");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[uc("0x53")]=this[uc("0x3f")](Yo(e,uc("0x3")),t.icons.check,"ck-suggestion--accept",uc("0x29"),"sw"),this[uc("0x53")][uc("0x38")](uc("0x5")).to(this,uc("0x4a")),this[uc("0x13")]=this[uc("0x3f")](Yo(e,uc("0x1")),t.icons[uc("0x2a")],uc("0x19"),uc("0x3a"),"sw"),this[uc("0x13")][uc("0x38")](uc("0x5")).to(this,"canDiscard"),this[uc("0x14")]=new r.UserView(e,this._model[uc("0x55")],this[uc("0x2c")]()),this[uc("0x14")][uc("0x1c")]({attributes:{class:[uc("0x47"),uc("0x49")]}}),this[uc("0x25")](this[uc("0xa")]())}getTemplate(){const t=this[uc("0x0")],e=[{tag:uc("0x7"),attributes:{class:[uc("0x2d"),uc("0x35")]},children:[{tag:uc("0x9"),children:[{text:this.userView.name}],attributes:{class:[uc("0x37"),uc("0x4b")]}},{tag:"time",attributes:{datetime:t.to(uc("0x23")),class:[uc("0x33"),uc("0x15")]},children:[{text:t.to("authoredAt",(t=>this[uc("0x48")][uc("0x2")](t)))}]}]},{tag:uc("0x7"),attributes:{class:[uc("0x43"),"ck-annotation__actions"]},children:[this[uc("0x53")],this[uc("0x13")]]},{tag:uc("0x7"),attributes:{class:[uc("0x3d")]}}];this._model.isExternal&&e[uc("0x44")]({tag:"div",attributes:{class:[uc("0x1e")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:"div",attributes:{class:[uc("0x6"),t.if(uc("0xb"),"ck-suggestion-wrapper--active"),t.to("type",(t=>uc("0x1b")+t)),this[uc("0x48")][uc("0x50")]&&uc("0x20")],"data-suggestion-id":this[uc("0x2b")].id,"data-thread-id":this[uc("0x2b")][uc("0x36")].id,"data-author-id":this[uc("0x2b")][uc("0x55")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[uc("0x22"),uc("0x3c")]},children:[this.userView,{tag:uc("0x7"),attributes:{class:[uc("0x4f"),uc("0x1d")]},children:e}]}]};return this.commentsListView&&this[uc("0x27")]&&n.children[uc("0x44")](this[uc("0x4c")],this[uc("0x27")]),n}[uc("0xc")](){super.render(),this._descriptionElement=this.element[uc("0xd")](uc("0x51")),this[uc("0x46")][uc("0x16")]=this[uc("0x21")],this.on(uc("0x41"),((t,e,n)=>{this[uc("0x46")][uc("0x16")]=n}))}[uc("0x3f")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x11")]);return i[uc("0x1f")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i.extendTemplate({attributes:{class:n}}),i.on(uc("0x42"),(()=>{this.fire(o,this[uc("0x2b")].id)})),i}[uc("0x3e")](){return uc("0xf")===this[uc("0x2b")][uc("0x26")]["@external"][uc("0x54")]?Yo(this.locale,uc("0x17")):Yo(this[uc("0x11")],uc("0x18"))}[uc("0x2c")](){return this[uc("0x2b")][uc("0x4")]?uc("0xf")===this._model[uc("0x26")][uc("0x39")][uc("0x54")]?Yo(this[uc("0x11")],uc("0x31"),this[uc("0x2b")][uc("0x52")][uc("0x56")]):Yo(this[uc("0x11")],uc("0x3b"),this[uc("0x2b")][uc("0x52")].name):null}}function mc(t,e){let n="";return n+=t.split("*")[uc("0x28")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+fc(t)+uc("0x30"):fc(t)))[uc("0x2e")](""),e&&(n+=uc("0x4d")+e[uc("0x2f")]+uc("0x12")+e[uc("0x45")]+uc("0x40")),n}function fc(t){const e=document[uc("0xe")](uc("0x9"));return e[uc("0x34")]=t,e[uc("0x16")]}const hc=["_updateController","focus","separator","Annotations","stopListening","length","isEnabled","getRanges","registerAnnotation","arrowView","button","_disableComments","acceptSelectedSuggestions","get","suggestionChanged","refreshSelectedViews","config","lowest","acceptAllSuggestions","addSourceCollector","some","value","addComment","trackChanges","_initializeController","hasSuggestion","createAnnotationView","type","TrackChangesUI","getMarkerNames","Accept all selected suggestions","bind","suggestion-","push","isOn","isInContent","keys","discardButton","_viewToController","createAnnotation","values","filter","editor","_suggestionToController","createCommentThreadController","set","getMarkers","execute","actionView","model","discardAllSuggestions","toMany","getSuggestion","getFirstRange","reduce","commands","comments.maxCommentsWhenCollapsed","locale","getAllAdjacentSuggestions","_handleControllerBuffer","has","getJoined","clear","_handleSuggestionControllerDelayed","head","destroy","define","size","pluginName","trackChanges.disableComments","delete","commandName","from","map","_createUIButton","comments","editing","discardSelectedSuggestions","plugins","add","buttonView","commentThread","descriptionParts","suggestionLoaded","_destroyController","_annotationViews","_refreshActiveMarkers","componentFactory","view","init","EditorAnnotations","listenTo","innerView","CommentsRepository","change:previous","isDirty","comments.editorConfig","comments.maxCommentCharsWhenCollapsed","TrackChangesEditing"];var pc,bc;pc=hc,bc=128,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get requires(){return[Wa,r.Users,Ec("0x40"),"Annotations","EditorAnnotations"]}static get[Ec("0x27")](){return Ec("0x62")}constructor(t){super(t),this._suggestionToController=new Map,this[Ec("0x9")]=new Map,this[Ec("0x38")]=new Map,this[Ec("0x1e")]=new Map;const e=this.editor[Ec("0x56")];e[Ec("0x25")]("trackChanges.SuggestionThreadView",gc),e.define(Ec("0x28"),!1),this._disableComments=e[Ec("0x53")](Ec("0x28"))}[Ec("0x22")](t,e){0===this[Ec("0x1e")][Ec("0x26")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Ec("0xe")][Ec("0x1f")](t);n||e?n&&e&&this[Ec("0x37")](t):this._initializeController(t)}this[Ec("0xd")][Ec("0x31")][Ec("0x53")](Ec("0x3d"))[Ec("0x55")](),this[Ec("0x39")](),this._handleControllerBuffer[Ec("0x21")]()}),10),this[Ec("0x1e")][Ec("0x10")](t,e)}[Ec("0x3c")](){const t=this[Ec("0xd")],e=t[Ec("0x31")][Ec("0x53")](Ec("0x45")),n=t.plugins.get("Annotations"),o=t.plugins.get(Ec("0x3d")),s=t[Ec("0x31")][Ec("0x53")]("CommentsRepository");t.ui[Ec("0x3a")][Ec("0x32")](Ec("0x5d"),(t=>this[Ec("0x2d")](t))),o[Ec("0x59")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x2b")](this[Ec("0xe")])){const o=e[Ec("0x1d")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t.isMultiRange){s[Ec("0x4")](...t[Ec("0x4d")]());continue}const e=t[Ec("0x18")]();if(s[Ec("0x4b")]>0){const t=s[0][Ec("0x20")](e);if(t){s[0]=t;continue}}s[Ec("0x4")](e)}t[Ec("0x4")]([n[Ec("0x3b")],s])}return t})),this[Ec("0x3e")](e,Ec("0x36"),((t,e)=>{this[Ec("0x3e")](e,Ec("0x41"),((t,n,o,s)=>{e[Ec("0x6")]&&(null==o?(this[Ec("0x46")](s[Ec("0x23")]),this[Ec("0x22")](e,!1)):(this[Ec("0x46")](o[Ec("0x23")]),this[Ec("0x22")](e,!0)))})),null===e.previous?this[Ec("0x22")](e,!1):this._updateController(e[Ec("0x23")])})),this[Ec("0x3e")](e,"suggestionUnloaded",((t,e,n)=>{this[Ec("0x4a")](e,Ec("0x41")),this[Ec("0x1e")][Ec("0x29")](e);const o=n?n[Ec("0x23")]:e,s=this[Ec("0xe")][Ec("0x53")](o);null!==n&&this._updateController(o),null===n&&s&&this._destroyController(e)})),this[Ec("0x3e")](e,Ec("0x54"),((t,e)=>{this[Ec("0x46")](e)})),this[Ec("0x3e")](n,"change:activeAnnotations",(()=>{this[Ec("0x39")]()})),this[Ec("0x3e")](s,Ec("0x5c"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x5f")](n))return;const s=e[Ec("0x17")](n);this[Ec("0xe")][Ec("0x53")](s)[Ec("0x3b")][Ec("0x47")]()}),{priority:Ec("0x57")})}_refreshActiveMarkers(){const t=this[Ec("0xd")][Ec("0x31")].get(Ec("0x49")),e=this[Ec("0xd")][Ec("0x31")][Ec("0x53")](Ec("0x45")),n=Array[Ec("0x2b")](t.activeAnnotations,(t=>t[Ec("0x3f")]))[Ec("0xc")]((t=>this[Ec("0x9")].has(t))),o=[];for(const t of n){const e=this[Ec("0x9")][Ec("0x53")](t)[Ec("0x14")][Ec("0x1d")]();o[Ec("0x4")](...e[Ec("0x19")](((t,e)=>[...t,...e[Ec("0x0")]()]),[]))}e.activeMarkers=o}[Ec("0x2d")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Ec("0x1a")][Ec("0x53")](Ec("0x5d")),r=Yo(t,"Track changes");n[Ec("0x33")][Ec("0x10")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x33")][Ec("0x2")](Ec("0x5")).to(o,Ec("0x5b")),n[Ec("0x33")].on(Ec("0x12"),(()=>{o[Ec("0x12")](),this.editor[Ec("0x2f")][Ec("0x3b")][Ec("0x47")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x5d")}},{type:Ec("0x48")},{type:Ec("0x50"),model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Ec("0x58")}},{type:Ec("0x50"),model:{withText:!0,label:Yo(t,Ec("0x1")),commandName:Ec("0x52")}},{type:Ec("0x50"),model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:Ec("0x15")}},{type:Ec("0x50"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:Ec("0x30")}}];for(const t of x){let e={type:Ec("0x48")};if(t[Ec("0x14")]){const n=new s.Model(t[Ec("0x14")]),o=this[Ec("0xd")][Ec("0x1a")][Ec("0x53")](n[Ec("0x2a")]);n[Ec("0x2")](Ec("0x5"),Ec("0x4c")).to(o,"value","isEnabled"),e={type:t[Ec("0x61")],model:n}}i[Ec("0x32")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0xc")]((t=>null!=t[Ec("0x14")]))[Ec("0x2c")]((t=>this[Ec("0xd")].commands[Ec("0x53")](t[Ec("0x14")][Ec("0x2a")]))),c=n[Ec("0x33")];return c[Ec("0x13")].unbind(Ec("0x4c")),c[Ec("0x4f")].unbind(Ec("0x4c")),c.actionView[Ec("0x2")]("isEnabled").to(o,"isEnabled"),c[Ec("0x4f")][Ec("0x2")](Ec("0x4c"))[Ec("0x16")](a,Ec("0x4c"),((...t)=>t[Ec("0x5a")]((t=>t)))),n.on(Ec("0x12"),(t=>{this.editor[Ec("0x12")](t.source.commandName),this[Ec("0xd")][Ec("0x2f")][Ec("0x3b")].focus()})),n}[Ec("0x5e")](t){const e=this[Ec("0xd")],n=e[Ec("0x56")],o=e.plugins[Ec("0x53")](Ec("0x49")),s=e[Ec("0x31")][Ec("0x53")](Ec("0x40")),i=e[Ec("0x31")][Ec("0x53")](Ec("0x3d")),x=e[Ec("0x31")][Ec("0x53")](r.Users).me,a=n[Ec("0x53")](Ec("0x5d")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x31")][Ec("0x53")]("CommentsUI");let d,u;this._annotationViews.has(t.id)?(u=this._annotationViews[Ec("0x53")](t.id),d=u.mainView):(d=new a(e[Ec("0x1c")],t,x,{disableComments:this[Ec("0x51")],editorConfig:n[Ec("0x53")](Ec("0x43")),maxCommentsWhenCollapsed:n.get(Ec("0x1b")),maxThreadTotalWeight:n.get("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Ec("0x53")](Ec("0x44")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x53")](Ec("0x1c"))),CommentView:n[Ec("0x53")](Ec("0x2e")).CommentView,CommentsListView:c,CommentThreadInputView:l}),d.acceptButton.on("execute",(()=>{e[Ec("0x2f")][Ec("0x3b")][Ec("0x47")]()})),d[Ec("0x8")].on(Ec("0x12"),(()=>{e[Ec("0x2f")][Ec("0x3b")][Ec("0x47")]()})),u=o[Ec("0x60")](this[Ec("0xd")].locale,d),u[Ec("0x2")](Ec("0x42")).to(d,"isDirty"),u.bind(Ec("0x4b")).to(d),u[Ec("0x2")](Ec("0x61")).to(d,Ec("0x61"),(t=>Ec("0x3")+t)),this[Ec("0x38")].set(t.id,u));const g=s[Ec("0xf")](t[Ec("0x34")],d),m=new oc(e,t,d,g),f=t[Ec("0x1d")]()[Ec("0xc")]((t=>t[Ec("0x6")]));d[Ec("0x35")]=e.plugins.get("TrackChangesEditing")._descriptionFactory.getDescriptions(f),this[Ec("0xe")][Ec("0x10")](t,m),this._viewToController[Ec("0x10")](d,m);const h=o[Ec("0xa")]({view:u,target:()=>{const n=[],o=t.getAllAdjacentSuggestions().filter((t=>t[Ec("0x6")]));for(const t of o)n[Ec("0x4")](...t[Ec("0x11")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x2f")],n)},type:()=>Ec("0x3")+m[Ec("0x3b")].type});o[Ec("0x32")](h),i[Ec("0x4e")](h)}[Ec("0x37")](t){const e=this[Ec("0xd")][Ec("0x31")].get("Annotations"),n=this[Ec("0xe")][Ec("0x53")](t),o=n[Ec("0x3b")],s=e.getByInnerView(o);s&&e.remove(s),this[Ec("0xe")].delete(t),this._viewToController.delete(o),n.destroy()}[Ec("0x46")](t){if(!t[Ec("0x6")]||!this[Ec("0xe")][Ec("0x1f")](t))return;const e=this[Ec("0xd")][Ec("0x31")][Ec("0x53")](Ec("0x45")),n=this[Ec("0xe")][Ec("0x53")](t),o=t[Ec("0x1d")]();n[Ec("0x3b")][Ec("0x35")]=e._descriptionFactory.getDescriptions(o)}[Ec("0x24")](){for(const t of this[Ec("0xe")][Ec("0x7")]())this[Ec("0x37")](t);for(const t of this[Ec("0x38")][Ec("0xb")]())t.mainView.destroy();super[Ec("0x24")]()}}var Tc,Cc,yc=["getSuggestions","plugins","get","addSuggestionData","TrackChanges","requires","Comments","pluginName","editor","adapter","addSuggestion"];Tc=yc,Cc=388,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x2")](){return[Wa,_c,kc("0x3")]}static get[kc("0x4")](){return kc("0x1")}set[kc("0x6")](t){this.editor[kc("0x9")][kc("0xa")](Wa)[kc("0x6")]=t}get[kc("0x6")](){return this.editor[kc("0x9")].get(Wa).adapter}[kc("0x7")](t){return this[kc("0x5")].plugins.get(Wa)[kc("0x0")](t)}[kc("0x8")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor.plugins[kc("0xa")](Wa)[kc("0x8")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[kc("0x5")][kc("0x9")][kc("0xa")](Wa).getSuggestion(t)}}const vc=["config","end","TrackChangesDataGetter","trackChangesData","rootsAttributes","users","getRootNames","getFullData","plugins","getRootsAttributes","result","map","discardAllSuggestions","div","create","execute","getUser","appendChild","data","constructor","addSuggestionData","track-changes-data-invalid-editor-creator","set","get","destroy","TrackChangesData","function","Pagination","getDataWithAcceptedSuggestions","createElement","acceptAllSuggestions","editorCreator","getSuggestions","editor","TrackChangesEditing","push","init","Users","_adapter","model","CommentsRepository","createDocumentFragment","requires","pluginName"];var Rc,Sc;Rc=vc,Sc=290,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x1")];class Nc extends t.Plugin{static get[Ic("0x10")](){return[Wa]}static get[Ic("0x11")](){return Ic("0x2b")}[Ic("0xa")](){const t=this[Ic("0x7")];if(t[Ic("0x12")].define("trackChangesData.editorCreator",(e=>{const n=t[Ic("0xd")].document[Ic("0x18")]().reduce(((t,e)=>(t[e]="",t)),{});return t[Ic("0x25")][Ic("0x20")](n,e)})),Ic("0x0")!=typeof t[Ic("0x12")][Ic("0x29")]("trackChangesData")[Ic("0x5")])throw new e.CKEditorError(Ic("0x27"))}[Ic("0x2")](t){return Oc(this[Ic("0x7")],!0,t)}getDataWithDiscardedSuggestions(t){return Oc(this[Ic("0x7")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0x11")](){return Ic("0x14")}constructor(t){super(t),this[Ic("0x1c")]=Ic("0x13")}[Ic("0xa")](){this[Ic("0x7")][Ic("0x1a")].get(Ic("0xe"))._adapter={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.plugins[Ic("0x29")](Ic("0x8"))[Ic("0xc")]=null}}function wc(t){return void 0!==t[Ic("0x1b")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o.plugins[Ic("0x9")](Wa,Mc),o[Ic("0x16")]=wc(t)?t[Ic("0x1b")]():void 0;const s=document[Ic("0xf")](),i=t[Ic("0x12")][Ic("0x29")](Ic("0x15"))[Ic("0x5")],x=await i(o,(()=>function(t){const e=document[Ic("0x3")](Ic("0x1f"));return t[Ic("0x23")](e),e}(s)));!function(t,e){const n=t[Ic("0xd")].document[Ic("0x18")]().reduce(((e,n)=>(e[n]=t[Ic("0x24")][Ic("0x29")]({rootName:n}),e)),{}),o=t.plugins[Ic("0x29")](Ic("0xb"))[Ic("0x17")][Ic("0x1d")]((t=>({id:t.id,name:t.name}))),s=t.plugins[Ic("0x29")](Ic("0x8"))[Ic("0x6")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x1a")][Ic("0x29")](Ic("0xb")),i=e[Ic("0x1a")][Ic("0x29")](Ic("0x8"));for(const t of o)r[Ic("0x22")](t.id)||r.addUser(t);r.me||r.useAnonymousUser();for(const t of s)i[Ic("0x26")](t);e[Ic("0x24")][Ic("0x28")](n)}(t,x),x[Ic("0x21")](Ic(e?"0x4":"0x1e"));const a=wc(x)?x[Ic("0x19")](n):x[Ic("0x24")][Ic("0x29")](n);return await x[Ic("0x2a")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Va});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["has","editor","value","isEnabled","commands","_isEnabledBasedOnSelection","execute","TrackChangesCommand","_enableCommands","_enabledCommands","refresh","forceDisabled","_disableUnsupportedCommands","affectsData","clearForceDisabled"];var c,l;c=a,l=160,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0xe")]=e,this[d("0x7")]=!1,this[d("0x0")](),this[d("0xa")]=!1}[d("0x0")](){this[d("0x8")]=!0}[d("0xb")](){this[d("0x7")]=!this[d("0x7")],this[d("0x7")]?this[d("0x2")]():this[d("0xd")]()}[d("0x2")](){for(const t of this[d("0x6")][d("0x9")].commands())t.affectsData&&!this[d("0xe")][d("0x5")](t)&&t[d("0x1")](d("0xc"))}[d("0xd")](){for(const t of this.editor[d("0x9")][d("0x9")]())t[d("0x3")]&&!this._enabledCommands[d("0x5")](t)&&t[d("0x4")]("TrackChangesCommand")}}const g=["model","track-changes-accept-suggestion-not-found","get","_isEnabledBasedOnSelection","canEditAt","getRanges","editor","execute","_suggestions","refresh","TrackChangesEditing","isEnabled"];var m,f;m=g,f=469,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x7")]=e,this[h("0x8")](),this[h("0x2")]=!1}[h("0x8")](){this[h("0xa")]=!0}[h("0x6")](t){const n=this[h("0x7")][h("0x1")](t);if(!n)throw new e.CKEditorError(h("0x0"),this);const o=n[h("0x4")]();this[h("0x5")][h("0xb")][h("0x3")](o)&&this[h("0x5")].plugins[h("0x1")](h("0x9")).acceptSuggestion(n)}}const p=["execute","isEnabled","TrackChangesEditing","refresh","get","model","discardSuggestion","editor","_suggestions","_isEnabledBasedOnSelection","canEditAt","track-changes-discard-suggestion-not-found"];var E,_;E=p,_=287,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x4")](),this[T("0xa")]=!1}[T("0x4")](){this[T("0x2")]=!0}[T("0x1")](t){const n=this[T("0x9")][T("0x5")](t);if(!n)throw new e.CKEditorError(T("0x0"),this);const o=n.getRanges();this[T("0x8")][T("0x6")][T("0xb")](o)&&this.editor.plugins[T("0x5")](T("0x3"))[T("0x7")](n)}}const y=["change","push","content"," [color ","start","color","from","schema","isInContent","getRanges","isCollapsed","length","end","isObject","sort","isTouching","createPositionBefore","value","type","execute","deletion","createPositionAfter","isMultiRange","next","map","splice","createPositionAt"];var k,A;k=y,A=240,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x11")](((t,e)=>v("0x17")==t[v("0x15")]&&v("0x17")!=e.type?-1:v("0x17")!=t.type&&v("0x17")==e[v("0x15")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0xa")];for(;o<t[v("0xe")];){const i=t[o],x=t[o+1];n||(n=e[v("0x13")](i)),I(e,i,x)||(s[v("0x4")](e.createRange(n,r[v("0x10")](i)?e[v("0x18")](i):e[v("0x2")](i,v("0xf")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t[v("0x13")](n);return o[v("0x12")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x1")](0,100);t[v("0x3")]((()=>{for(const t of o)t[v("0xb")]&&e[v("0x16")](t.id)}))}}const N=["_suggestions","_isEnabledBasedOnSelection","isEnabled","from","some","values","execute","getRanges","refresh","model","_command","editor"];var M,w;M=N,w=467,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x1")]=n,this[O("0x9")](),this[O("0x2")]=!1}[O("0x9")](){const t=Array[O("0x4")](this[O("0x1")].values())[O("0x5")]((t=>t.isInContent));this[O("0x3")]=this._command[O("0x3")]&&t}[O("0x7")](){const t=R(Array[O("0x4")](this[O("0x1")][O("0x6")]()));for(const e of t){const t=e[O("0x8")]();if(!this.editor[O("0xa")].canEditAt(t))return}L(this[O("0x0")][O("0xa")],this[O("0xb")],t)}}const P=["document","isEnabled","_selectedSuggestions","execute","refresh","_command","from","canEditAt","editor","selection","_suggestions"];var D,B;D=P,B=356,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x1")]=e,this._suggestions=n,this[j("0x9")]=new Set,this[j("0x0")](),this._isEnabledBasedOnSelection=!1}[j("0x0")](){const t=this.editor.model[j("0x7")][j("0x5")],e=Array.from(this[j("0x6")].values());this._selectedSuggestions=function(t,e){const n=Array[v("0x9")](t[v("0xc")]()),o=new Set;for(const s of e)if(s[v("0xb")])for(const e of n)for(const n of s.getMarkers()){const r=n.getRange();(e.isIntersecting(r)||t[v("0xd")]&&!s[v("0x19")]&&s[v("0x1a")]&&r[v("0xf")][v("0x12")](e[v("0x7")]))&&o.add(s)}return o}(t,e),this[j("0x8")]=this[j("0x1")][j("0x8")]&&!!this[j("0x9")].size}[j("0xa")](){const t=R(Array[j("0x2")](this[j("0x9")]));for(const e of t){const t=e.getRanges();if(!this.editor.model[j("0x3")](t))return}L(this[j("0x4")].model,this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var V=Array.prototype.splice;const W=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():V.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const $=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}X.prototype.clear=G,X.prototype.delete=W,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const J=X;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Vt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Vt(this,t).get(t)};const qt=function(t){return Vt(this,t).has(t)};const $t=function(t,e){var n=Vt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function Xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Xt.prototype.clear=Ht,Xt.prototype.delete=Wt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Jt=Xt;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===fe?ot.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&pe(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const Ve=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const We=function(t){return je(t)?Me(t,!0):Ve(t)};const Ke=function(t,e){return t&&re(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?ot.Buffer:void 0,Je=Xe?Xe.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,We,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=bn||mn&&Rn(mn.resolve())!=pn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return bn;case kn:return pn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Vn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?ke(Wn):Vn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var $n=Se&&Se.isSet;const Xn=$n?ke($n):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(pe(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),Xn(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?We:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const bo=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const po=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=bo(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=po(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var b=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===b?f===h||s(f,h,n,o,r):b)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&pe(t)){if(!pe(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=bo(e,t)).length;null!=t&&n<o;)t=t[po(e[n++])];return n&&n==o?t:void 0};const Vo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t:zo(t,Vo(e,0,-1))};const Ko=function(t,e){return e=bo(e,t),null==(t=Wo(t,e))||delete t[po(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},$o=["onDiscard","getMarkerNames","toJSON","data","_markerNames","commentThread","markers","attributes","_model","delete","getRanges","setAttribute","removeMarkers","removeMarker","reduce","hasComments","accept","onAccept","get","authoredAt","isInContent","subType","getRange","@external","_onAttributesChange","getItems","addMarkerName","isExternal","split","add","substr","map","getContainedElement","onAttributesChange","getFirstMarker","previous","isIntersecting","createdAt","getMarkers","creator","next","head","filter","start","_onDiscard","length","author","addRange","size","decorate","getMultiRangeId","end","change","suggestion:","addMarker","type","discard","_saved","removeAttribute","getAllAdjacentSuggestions","set","from","nodeBefore"];var Xo,Jo;Xo=$o,Jo=190,function(t){for(;--t;)Xo.push(Xo.shift())}(++Jo);const Qo=function(t,e){return $o[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x36")]=e.type,this[Qo("0x14")]=e[Qo("0x14")]||null,this[Qo("0x2d")]=e[Qo("0x2d")],this[Qo("0x26")]=e[Qo("0x26")]||e[Qo("0x2d")],this[Qo("0x1a")]=Boolean(e[Qo("0x6")]&&e[Qo("0x6")][Qo("0x16")]),this[Qo("0x2")]=null,this[Qo("0x7")]=t,this._onAccept=e[Qo("0x10")],this[Qo("0x2b")]=e[Qo("0x3e")],this._onAttributesChange=e[Qo("0x20")],this._markerNames=new Set,this.createdAt=null,this[Qo("0x3b")](Qo("0x12"),null),this[Qo("0x3b")](Qo("0x6"),e[Qo("0x6")]||{}),this[Qo("0x3b")](Qo("0x22"),null),this.set("next",null),this[Qo("0x3b")](Qo("0x4"),null),this[Qo("0x3b")](Qo("0x38"),!1),this[Qo("0x30")]("accept"),this[Qo("0x30")]("discard")}get[Qo("0x28")](){let t=this;for(;t.previous;)t=t[Qo("0x22")];return t}get[Qo("0xe")](){return!!this[Qo("0x4")]&&this[Qo("0x4")][Qo("0x2c")]>0}get isMultiRange(){return 0!=this._markerNames[Qo("0x2f")]&&6==Array[Qo("0x3c")](this[Qo("0x3")])[0][Qo("0x1b")](":")[Qo("0x2c")]}get[Qo("0x13")](){return null!==this[Qo("0x21")]()}addMarkerName(t){this[Qo("0x3")][Qo("0x1c")](t)}getMarkerNames(){return Array[Qo("0x3c")](this._markerNames)}getMarkers(){return this[Qo("0x0")]().map((t=>this._model[Qo("0x5")][Qo("0x11")](t)))[Qo("0x29")]((t=>t))}[Qo("0x21")](){return this[Qo("0x25")]()[0]||null}[Qo("0xb")](){this[Qo("0x7")][Qo("0x33")]((t=>{for(const e of this[Qo("0x25")]())t.removeMarker(e)})),this._markerNames.clear()}[Qo("0xc")](t){this[Qo("0x7")][Qo("0x33")]((e=>{e.removeMarker(t)})),this._markerNames[Qo("0x8")](t)}[Qo("0x2e")](t){const e=Qo("0x34")+this[Qo("0x36")]+":"+this[Qo("0x14")]+":"+this.id+":"+this[Qo("0x26")].id+":"+Zo.getMultiRangeId();this[Qo("0x19")](e),this._model[Qo("0x33")]((n=>{n[Qo("0x35")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x9")]())if(e[Qo("0x23")](t))return!0;return!1}[Qo("0x9")](){return this[Qo("0x25")]()[Qo("0x1e")]((t=>t[Qo("0x15")]()))}[Qo("0x18")](){return this[Qo("0x9")]()[Qo("0xd")](((t,e)=>[...t,...e[Qo("0x18")]()]),[])}getFirstRange(){var t;return(null===(t=this[Qo("0x21")]())||void 0===t?void 0:t[Qo("0x15")]())||null}[Qo("0x1f")](){const t=this[Qo("0x9")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0x2a")].nodeAfter,o=e[Qo("0x32")][Qo("0x3d")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0xf")](){this._onAccept(this[Qo("0x9")](),this[Qo("0x2")],this.attributes),this[Qo("0xb")]()}[Qo("0x37")](){this[Qo("0x2b")](this[Qo("0x9")](),this[Qo("0x2")],this[Qo("0x6")]),this[Qo("0xb")]()}[Qo("0x3a")](){const t=[];let e=this.head;for(;e;)t.push(e),e=e[Qo("0x27")];return t}[Qo("0xa")](t,e){const n=eo(this[Qo("0x6")]);_o(n,t,e),Go(n,this[Qo("0x6")])||(this[Qo("0x6")]=n,this._onAttributesChange(n))}[Qo("0x39")](t){const e=eo(this[Qo("0x6")]);qo(e,t),Go(e,this[Qo("0x6")])||(this[Qo("0x6")]=e,this[Qo("0x17")](this.attributes))}[Qo("0x1")](){return{id:this.id,type:this.subType?this[Qo("0x36")]+":"+this[Qo("0x14")]:this[Qo("0x36")],authorId:this[Qo("0x26")].id,createdAt:this[Qo("0x24")],hasComments:this[Qo("0xe")],data:this.data,attributes:this[Qo("0x6")]}}static[Qo("0x31")](){return(0,e.uid)()[Qo("0x1d")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["insertion","_resolveDescriptionItems","REPLACE_TEXT","elementEnd","isEqual","add","*Remove:* %0","_addDescriptionItems","Object","data","quantity","replace","normal","getFirstRange","pop","_itemLabelsCallbacks","indexOf","type","EmptyContainer","label","start","nextSibling","removeObject","item","ELEMENT_SPACE","end","getItemLabel","_itemLabels","*Insert:* %0","_schema","text","set","element","length","addEmptyContainer","push","checkChild","*Split:* %0","addContainer","match","name","remove","removeContainer","*Merge:* %0","matchingCallback","Container","isObject","registerDescriptionCallback","removeEmptyContainer","registerElementLabel","isEmpty","_customCallbacks","deletion","getWalker","previousSibling","$text"];var es,ns;es=ts,ns=187,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x20")]=[],this[os("0x8")]=new Map,this._itemLabelsCallbacks=[],this._schema=t,this._locale=e}getDescriptions(t){const e=[];for(let n=0;n<t[os("0xe")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x36")in n&&e[os("0x10")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x32")]()[os("0x6")][os("0x29")](s.getFirstRange()[os("0x1")])){const t=e[e[os("0xe")]-1],n=os("0x25")==o[os("0x36")]?os("0x2a"):"remove";t&&"text"==t[os("0x36")]&&(t[n]+="\n")}}}return this[os("0x26")](e)}[os("0x1c")](t){this._customCallbacks[os("0x10")](t)}[os("0x1e")](t,n,o=e.priorities[os("0x31")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[os("0x34")],{matchingCallback:t,label:n,priority:o}):this[os("0x8")][os("0xc")](t,n)}[os("0x7")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x19")](t)){n=e[os("0x0")];break}return n||(n=this[os("0x8")].get(t[os("0x15")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x15")]}[os("0x2c")](t,e){const n=e.getFirstRange()[os("0x22")](),o="insertion"==e[os("0x36")]?"add":os("0x16");for(const e of n){const s=e.item,r=t[t[os("0xe")]-1];if(s.is("$textProxy"))r&&r.type[os("0x35")](os("0x1a"))>-1&&t.pop(),r&&os("0xb")==r[os("0x36")]?r[o]+=s[os("0x2e")]:t[os("0x10")]({type:os("0xb"),add:os("0x2a")==o?s[os("0x2e")]:"",remove:os("0x16")==o?s.data:""});else if(this._schema[os("0x1b")](s)){const i=s;if(r&&r.type[os("0x35")](os("0x1a"))>-1&&t[os("0x33")](),os("0x28")==e[os("0x36")])continue;r&&r[os("0x36")]==o+"Object"&&r.element.name==i[os("0x15")]?r[os("0x2f")]++:t[os("0x10")]({type:o+os("0x2d"),element:i,quantity:1}),n.skip((t=>!(os("0x28")==t.type&&t[os("0x4")]==s)))}else if(this[os("0xa")][os("0x11")](s,os("0x24"))||s.is(os("0xd"),"softBreak")){const n=s;if("add"==o&&"elementStart"==e[os("0x36")]||os("0x16")==o&&os("0x28")==e.type)continue;if(r&&-1==r.type.indexOf("Container")){os("0xb")==r[os("0x36")]&&(r[o]+="\n");continue}let i;if(i=os("0x2a")==o?n[os("0x2")]&&!this[os("0xa")][os("0x1b")](n[os("0x2")])?n.nextSibling:null:n[os("0x23")]&&!this[os("0xa")][os("0x1b")](n[os("0x23")])?n.previousSibling:null,n.isEmpty||i&&i[os("0x1f")]){const e=i&&i[os("0x1f")]?i:n;r&&r[os("0x36")]==o+os("0x37")&&r.element.name==e[os("0x15")]?r[os("0x2f")]++:t.push({type:o+os("0x37"),element:e,quantity:1})}else t.push({type:o+os("0x1a"),element:n})}}}[os("0x26")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x36")]){case os("0xb"):if(o.add=o[os("0x2a")][os("0x30")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x30")](/\u000A/g,""),o[os("0x16")]=o[os("0x16")][os("0x30")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x30")](/\u000A/g,""),""!=o.add&&""!=o[os("0x16")]){n.push({type:os("0x30"),content:Yo(e,os("0x27"),['"'+o[os("0x16")]+'"','"'+o[os("0x2a")]+'"'])});continue}if(null!=o.add[os("0x14")](/^ +$/)){n[os("0x10")]({type:"insertion",content:Yo(e,"*Insert:* %0",Yo(e,os("0x5"),o[os("0x2a")].length))});continue}if(null!=o[os("0x16")][os("0x14")](/^ +$/)){n.push({type:"deletion",content:Yo(e,os("0x2b"),Yo(e,os("0x5"),o.remove.length))});continue}if(""!=o[os("0x2a")]){n[os("0x10")]({type:os("0x25"),content:Yo(e,os("0x9"),'"'+o[os("0x2a")]+'"')});continue}n[os("0x10")]({type:"deletion",content:Yo(e,os("0x2b"),'"'+o[os("0x16")]+'"')});continue;case os("0xf"):case"addObject":n[os("0x10")]({type:os("0x25"),content:Yo(e,os("0x9"),this[os("0x7")](o[os("0xd")],o[os("0x2f")]))});continue;case os("0x1d"):case os("0x3"):n[os("0x10")]({type:os("0x21"),content:Yo(e,os("0x2b"),this[os("0x7")](o[os("0xd")],o[os("0x2f")]))});continue;case os("0x13"):n.push({type:os("0x25"),content:Yo(e,os("0x12"),this.getItemLabel(o.element,o[os("0x2f")]))});continue;case os("0x17"):n[os("0x10")]({type:os("0x21"),content:Yo(e,os("0x18"),this[os("0x7")](o.element,o[os("0x2f")]))});continue}n[os("0x10")](o)}return n}}const rs=["justify","markBlockFormat","left","FORMAT_JUSTIFY_TEXT","getAttribute","commandParams","checkAttribute","from","plugins","TrackChangesEditing","model","value","afterInit","registerDescriptionCallback","selection","alignment","change","contentLanguageDirection","FORMAT_ALIGN_TO_CENTER","locale","schema","right","format","commandName","get","*Format:* %0","FORMAT_ALIGN_TO_RIGHT"];var is,xs;is=rs,xs=380,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0xa")](){const t=this.editor,e=t[as("0x11")];if(!t.plugins.has("AlignmentEditing"))return;const n=t[as("0x6")][as("0x16")](as("0x7"));n.enableCommand(as("0xd"),((e,o={})=>{let s=o[as("0x9")];o[as("0x9")]||(s="ltr"===t.locale[as("0xf")]?as("0x0"):"right");const r=Array[as("0x5")](this.editor[as("0x8")].document[as("0xc")].getSelectedBlocks()).filter((t=>function(t,e,n){const o=t[as("0x2")](as("0xd"))||null;return e[as("0x4")](t,"alignment")&&n!=o}(t,this.editor[as("0x8")][as("0x12")],s)));t.model[as("0xe")]((()=>{for(const t of r)n[as("0x1a")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n._descriptionFactory[as("0xb")]((t=>{const{data:n}=t;if(n&&as("0xd")==n[as("0x15")]){const t=n[as("0x3")][0].value;return{type:as("0x14"),content:Yo(e,as("0x17"),function(t){switch(t){case as("0x0"):return Yo(e,"FORMAT_ALIGN_TO_LEFT");case as("0x13"):return Yo(e,as("0x18"));case"center":return Yo(e,as("0x10"));case as("0x19"):return Yo(e,as("0x1"))}}(t))}}}))}}const ls=["mapper","getAttribute","markerName","span","listItem","getItems","isBlock","insert","start","previousPosition","addClass","get","elementEnd","nextSibling","plugins","toViewPosition","listIndent","ck-suggestion-marker--active","item","getCustomProperty","push","hasAttribute","element","activeMarkers","createRangeOn","writer","name","bindElementToMarker","createUIElement","ck-suggestion-marker-","toViewElement","markerRange","getWalker","test","type","parent"];var ds,us;ds=ls,us=226,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x1f")]())s[gs("0xb")](t)&&o.push(n[gs("0xe")](s));return o}function fs(t){const e=[];if(t.is(gs("0xc"),gs("0x1e"))){let n=t.nextSibling;for(;n&&n.is(gs("0xc"),gs("0x1e"))&&n[gs("0x1b")](gs("0x6"))>0;)e[gs("0xa")](n),n=n[gs("0x3")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x4")][gs("0x1")]("TrackChangesEditing");return(s,r,i)=>{if(!i.consumable[gs("0x17")](r[gs("0x15")],s[gs("0x10")]))return;const x=r[gs("0x15")][gs("0x16")](),a=r.markerRange[gs("0x22")],c=t.model.schema;let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x8")];u=u||c.isContent(e);const n=i[gs("0x1a")][gs("0x14")](e);if(n&&n[gs("0x9")]("addHighlight"))return;gs("0x2")==t[gs("0x18")]&&c[gs("0x20")](e)&&!c.isLimit(e)&&(e[gs("0x3")]||a.isAtEnd?l&&l[gs("0x19")]==e||(l=e,m(t[gs("0x23")]),g=!0):d=d||t.previousPosition)}function m(t){const s=i[gs("0xf")][gs("0x12")](gs("0x1d"),{class:gs("0x13")+e}),x=i[gs("0x1a")][gs("0x5")](t);n&&o[gs("0xd")].includes(r[gs("0x1c")])&&i.writer[gs("0x0")](gs("0x7"),s),i[gs("0xf")][gs("0x21")](x,s),i.mapper[gs("0x11")](s,r.markerName)}u||g||!d||m(d)}}const bs=["StrikethroughEditing","afterInit","FORMAT_SUBSCRIPT","FORMAT_STRIKETHROUGH","FORMAT_ITALIC","forceValue","markInlineFormat","isCollapsed","slice","plugins","FORMAT_SUPERSCRIPT","BoldEditing","code","SuperscriptEditing","editor","has","model","subscript","registerDescriptionCallback","locale","ItalicEditing","toLowerCase","SubscriptEditing","commandName","strikethrough","italic","enableCommand","*Remove format:* %0","get","getRanges","format","FORMAT_CODE","bold","CodeEditing","value","document","change","*Format:* %0","FORMAT_UNDERLINE"];var ps,Es;ps=bs,Es=163,function(t){for(;--t;)ps.push(ps.shift())}(++Es);const _s=function(t,e){return bs[t-=0]},Ts=[_s("0x4"),_s("0xd"),"UnderlineEditing",_s("0x1a"),_s("0x20"),_s("0xf"),_s("0x6")];class Cs extends t.Plugin{[_s("0x21")](){const t=this[_s("0x7")],e=t[_s("0x9")],n=t[_s("0x2")][_s("0x15")]("TrackChangesEditing"),o=t[_s("0xc")];for(const o of Ts){if(!t[_s("0x2")][_s("0x8")](o))continue;const s=o[_s("0x1")](0,-7)[_s("0xe")](),r=t.commands[_s("0x15")](s);n[_s("0x13")](s,((t,o={})=>{const i=e[_s("0x1c")].selection;if(i[_s("0x0")])return void t(o);const x=void 0!==o[_s("0x25")]?o[_s("0x25")]:!r[_s("0x1b")];e[_s("0x1d")]((()=>{const t=Array.from(i[_s("0x16")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x26")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0xb")]((n=>{const{data:s}=n;if(s&&s[_s("0x10")]===t)return s.commandParams[0][_s("0x25")]?{type:_s("0x17"),content:Yo(o,_s("0x1e"),e)}:{type:_s("0x17"),content:Yo(o,_s("0x14"),e)}}))}s(_s("0x19"),Yo(o,"FORMAT_BOLD")),s(_s("0x12"),Yo(o,_s("0x24"))),s("underline",Yo(o,_s("0x1f"))),s(_s("0x5"),Yo(o,_s("0x18"))),s(_s("0x11"),Yo(o,_s("0x23"))),s(_s("0xa"),Yo(o,_s("0x22"))),s("superscript",Yo(o,_s("0x3")))}}const ys=["name","commands","editor","plugins","TrackChangesEditing","ELEMENT_BLOCK_QUOTE","schema","selection","filter","enableCommand","BlockQuoteEditing","commandParams","from","checkChild","model","afterInit","parent","format","$root","blockQuote","get","getSelectedBlocks","*Remove format:* %0","commandName","locale","forceValue","has","value","change","markBlockFormat","*Format:* %0","document","_descriptionFactory"];var ks,As;ks=ys,As=361,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x11")](){const t=this[vs("0x4")],e=t[vs("0x1a")];if(!t[vs("0x5")][vs("0x1c")](vs("0xc")))return;const n=t[vs("0x5")][vs("0x16")](vs("0x6")),o=this.editor[vs("0x3")][vs("0x16")](vs("0x15"));n[vs("0xb")](vs("0x15"),((e,s={})=>{const r=this.editor.model[vs("0x0")][vs("0x9")],i=s&&void 0!==s[vs("0x1b")]?s.forceValue:!o[vs("0x1d")];let x=[];if(i){const e=Array[vs("0xe")](r.getSelectedBlocks())[vs("0xa")]((t=>Ss(t)||function(t,e){const n=e[vs("0xf")](t[vs("0x12")],vs("0x15")),o=e.checkChild([vs("0x14"),"blockQuote"],t);return n&&o}(t,this[vs("0x4")][vs("0x10")][vs("0x8")])));x=S(e,t[vs("0x10")])}else{const e=Array[vs("0xe")](r[vs("0x17")]()).filter((t=>Ss(t)));x=S(e,t[vs("0x10")])}t[vs("0x10")][vs("0x1e")]((()=>{for(const t of x)n[vs("0x1f")](t,{commandName:vs("0x15"),commandParams:[{forceValue:i}]})}))})),n[vs("0x1")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x15")==n[vs("0x19")]){const t=Yo(e,vs("0x7"));return n[vs("0xd")][0][vs("0x1b")]?{type:vs("0x13"),content:Yo(e,vs("0x20"),t)}:{type:vs("0x13"),content:Yo(e,vs("0x18"),t)}}}))}}function Ss(t){return"blockQuote"==t[vs("0x12")][vs("0x2")]}const Is=["commands","afterInit","editor","TrackChangesEditing","ckbox","get"];var Ls,Ns;Ls=Is,Ns=498,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x1")](){const t=this[Ms("0x2")];t[Ms("0x0")][Ms("0x5")](Ms("0x4"))&&t.plugins[Ms("0x5")](Ms("0x3")).enableCommand(Ms("0x4"))}}const Os=["commands","plugins","_descriptionFactory","getSelectedBlocks","schema","registerDescriptionCallback","rootElement","from","TrackChangesEditing","outdentCodeBlock","language","codeBlock","name","format","editor","locale","get","model","parent","afterInit","document","value","filter","*Format:* %0","forceValue","ELEMENT_CODE_BLOCK","registerElementLabel","commandParams","enableCommand","*Remove format:* %0","selection","formatBlock","markBlockFormat","find"];var Fs,Ps;Fs=Os,Ps=164,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x19")](){const t=this[Ds("0x14")];if(!t[Ds("0x7")].has("CodeBlock"))return;const e=t[Ds("0x7")][Ds("0x16")](Ds("0xe")),n=t[Ds("0x15")],o=t.config[Ds("0x16")](Ds("0x11")).languages,s=t[Ds("0x6")][Ds("0x16")]("codeBlock");e[Ds("0x0")]("indentCodeBlock"),e.enableCommand(Ds("0xf")),e[Ds("0x0")](Ds("0x11"),((n,r={})=>{const i=t.model,x=t[Ds("0x17")][Ds("0x1a")][Ds("0x2")],a=r&&void 0!==r[Ds("0x1e")]?r[Ds("0x1e")]:!s[Ds("0x1b")];let c;r[Ds("0x10")]||(r[Ds("0x10")]=o[0][Ds("0x10")]),c=a?Array.from(x[Ds("0x9")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0xa")],!e.is(Ds("0xc"))&&!n.isLimit(e)&&n.checkChild(e[Ds("0x18")],Ds("0x11")));var e,n})):Array[Ds("0xd")](x[Ds("0x9")]())[Ds("0x1c")]((t=>js(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Ds("0x4")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Ds("0x8")][Ds("0x20")](Ds("0x11"),(t=>Yo(n,Ds("0x1f"),t))),e[Ds("0x8")][Ds("0xb")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x3")==s&&r&&"codeBlock"==r.commandName){const t=r.commandParams[0][Ds("0x10")],s=e(o[Ds("0x5")]((e=>e.language===t)).label);return r[Ds("0x21")][0][Ds("0x1e")]?{type:Ds("0x13"),content:Yo(n,Ds("0x1d"),Yo(n,Ds("0x1f"),1)+" ("+s+")")}:{type:Ds("0x13"),content:Yo(n,Ds("0x1"),Yo(n,Ds("0x1f"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x12")]}const Us=["CommentsEditing","get","has","TrackChangesEditing","enableCommand","plugins","afterInit","addCommentThread"];var Gs,Hs;Gs=Us,Hs=409,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Vs extends t.Plugin{[zs("0x5")](){const t=this.editor;t[zs("0x4")][zs("0x1")](zs("0x7"))&&t[zs("0x4")][zs("0x0")](zs("0x2"))[zs("0x3")](zs("0x6"))}}var Ws=n(181);const Ks=["rootName","addMarker:suggestion:deletion","$graveyard","selection","createSelection","downcastDispatcher","markerNameToElements","showSuggestionHighlights","createRange","merge","buffer","uiElement","data","lock","setSelection","getFirstRange","remove","enableCommand","delete","enqueueChange","deleteForward","mapper","init","removeMarker:suggestion:deletion","modifySelection","markerName","high","editing","commands","end","get","unit","unlock","requires","writer","model","start"];var qs,$s;qs=Ks,$s=371,function(t){for(;--t;)qs.push(qs.shift())}(++$s);const Xs=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[Xs("0x20")](){return[Ws.Delete]}[Xs("0x15")](){const t=this.editor,e=t.plugins[Xs("0x1d")]("TrackChangesEditing");e[Xs("0x10")](Xs("0x11"));const n=t[Xs("0x1b")][Xs("0x1d")](Xs("0x13"));e[Xs("0x10")](Xs("0x13"),((e,o={})=>{const s=t[Xs("0x22")][Xs("0x3")](t[Xs("0x22")].document[Xs("0x2")]);s.isCollapsed&&t[Xs("0x22")][Xs("0x17")](s,{direction:"forward",unit:o[Xs("0x1e")]});const r=s[Xs("0xe")](),x=i.LiveRange.fromRange(r);let a;e(o),a=Xs("0x1")==x.root[Xs("0x24")]?t[Xs("0x22")][Xs("0x7")](r[Xs("0x23")]):t[Xs("0x22")][Xs("0x7")](x[Xs("0x23")],x.end),x.detach(),t[Xs("0x22")][Xs("0x12")](n[Xs("0x9")].batch,(t=>{n[Xs("0x9")][Xs("0xc")](),t[Xs("0xd")](t.createRange(a[Xs("0x1c")])),n[Xs("0x9")][Xs("0x1f")]()}))})),t[Xs("0x1a")][Xs("0x4")].on(Xs("0x0"),hs(t,Xs("0x8")),{priority:Xs("0x19")}),t[Xs("0xb")][Xs("0x4")].on("addMarker:suggestion:deletion",((e,n,o)=>{o.options[Xs("0x6")]&&hs(t,Xs("0x8"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:Xs("0x19")}),t.editing[Xs("0x4")].on(Xs("0x16"),((t,e,n)=>{const o=n[Xs("0x14")][Xs("0x5")](e.markerName);if(o)for(const t of o)t.is(Xs("0xa"))&&(n[Xs("0x14")].unbindElementFromMarkerName(t,e[Xs("0x18")]),n[Xs("0x21")][Xs("0xf")](t))}),{priority:"high"})}}const Qs=["_suggestionFactory","slice","indentList","format","_LIST","expandListBlocksToCompleteList","commandName","outdentList","map","mergeListItemBackward","document","listItemId","listIndent","enableCommand","*Change to:* %0","multipleBlocks","splitListItemBefore","schema","containsItem","DocumentListEditing","end","editor","afterInit","commands","_descriptionFactory","getRanges","after","value","DocumentListUtils","ELEMENT_LIST_ITEM","commandParams","get","next","nodeAfter","isFirstBlockOfListItem","markBlockFormat","change","hasAttribute","locale","*Indent:* %0","ELEMENT_","*Format:* insert into %0","parent","*Merge:* %0","formatBlock","createPositionAt","detach","start","listType","numberedList","createRange","registerCustomCallback","documentList","has","bulletedList","from","splitListItemAfter","getFirstRange","fromRange","model","*Outdent:* %0","getAttribute","*Format:* remove from %0","getSelectedBlocks","execute","selection","registerElementLabel","setSelection","refresh","isObject","nextSibling","before","previousSibling","push","markMultiRangeBlockFormat","plugins","registerDescriptionCallback"];var Zs,Ys;Zs=Qs,Ys=245,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x8")](){const t=this[tr("0x7")];if(!t[tr("0x3d")][tr("0x27")](tr("0x5")))return;const e=t[tr("0x18")],n=t[tr("0x3d")][tr("0x11")]("TrackChangesEditing"),o=t.plugins[tr("0x11")](tr("0xe"));function s(e){return()=>{const s=t.commands.get(e);let r=Array[tr("0x29")](t[tr("0x2d")][tr("0x49")].selection[tr("0x31")]());if(a(e)){r=o[tr("0x44")](r);const t=[];for(const e of r)o[tr("0x14")](e)&&t[tr("0x3b")](e);r=t}t[tr("0x2d")].change((()=>{n[tr("0x3c")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0xd")]}],formatGroupId:tr("0x22")},[],tr("0x26"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x29")](t);const n=e.findIndex((t=>!t[tr("0x17")](tr("0x4a"))));return n>-1&&(e=e[tr("0x40")](0,n)),e}(t.model[tr("0x49")][tr("0x33")][tr("0x31")]()),s=o[o.length-1],r=t[tr("0x2d")][tr("0x3")][tr("0x37")](s)?tr("0xc"):tr("0x6"),i=t[tr("0x2d")].createRange(t[tr("0x2d")][tr("0x1f")](o[0],tr("0x39")),t.model[tr("0x1f")](s,r));t[tr("0x2d")][tr("0x16")]((()=>{n[tr("0x15")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[tr("0x2f")]("listIndent")>n[tr("0x2f")](tr("0x4b"));)e.add(t),t=t.nextSibling}return Array[tr("0x29")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x2d")][tr("0x49")].selection[tr("0x31")]()[tr("0x12")]().value,s=t[tr("0x2d")][tr("0x1f")](o,"before"),r=t[tr("0x2d")][tr("0x1f")](o,0),i=t[tr("0x2d")][tr("0x24")](s,r);t[tr("0x2d")][tr("0x16")]((()=>{n[tr("0x15")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x22")})}))}}function a(e){const n=t[tr("0x9")][tr("0x11")](tr("0x28")).value,o=t[tr("0x9")][tr("0x11")]("numberedList")[tr("0xd")];return tr("0x23")===e?n:o}n[tr("0x4c")](tr("0x23"),s(tr("0x23"))),n[tr("0x4c")](tr("0x28"),s(tr("0x28"))),n[tr("0x4c")](tr("0x41"),r(tr("0x41"))),n[tr("0x4c")](tr("0x46"),r(tr("0x46"))),n.enableCommand(tr("0x2a"),x(tr("0x2a"))),n[tr("0x4c")](tr("0x2"),x(tr("0x2"))),n[tr("0xa")][tr("0x34")]((function(e){const n=!t.model[tr("0x3")][tr("0x37")](e),o=e[tr("0x3a")],s=e[tr("0x38")],r=e[tr("0x2f")](tr("0x4a")),i=!o||o[tr("0x2f")](tr("0x4a"))!==r,x=!s||s.getAttribute("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[tr("0x3e")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x45")]){case tr("0x28"):r=n[tr("0x10")][0].forceValue,i=a(n.commandName),o=tr(r?"0x1b":"0x30"),i&&(o=tr("0x0")),s={type:tr("0x42"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0x23"):r=n[tr("0x10")][0].forceValue,i=a(n[tr("0x45")]),o=r?"*Format:* insert into %0":tr("0x30"),i&&(o=tr("0x0")),s={type:tr("0x42"),content:Yo(e,o,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case tr("0x41"):o=tr("0x19"),s={type:tr("0x42"),content:Yo(e,o,Yo(e,tr("0xf")))};break;case tr("0x46"):o=function(t){const e=t[tr("0x2b")]();let n=e.start[tr("0x13")];for(;n&&e[tr("0x4")](n);){if(n[tr("0x2f")](tr("0x4b"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x30"),Yo(e,function(t){const e=t.getFirstRange()[tr("0x21")].nodeAfter;return tr("0x1a")+e.getAttribute("listType").toUpperCase()+tr("0x43")}(t))):Yo(e,tr("0x2e"),Yo(e,"ELEMENT_LIST_ITEM")),s={type:"format",content:o};break;case tr("0x48"):case"mergeListItemForward":!1===n[tr("0x1")]&&(o=tr("0x1d"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0xf")))})}return s})),n[tr("0x3f")][tr("0x25")](tr("0x1e"),"documentList","accept",(function(e,n){const o=[];for(let n of e)n.start.nodeAfter===n.end[tr("0x1c")]&&(n=t[tr("0x2d")][tr("0x24")](t[tr("0x2d")].createPositionAt(n.start[tr("0x13")],0))),o[tr("0x3b")](n);t[tr("0x2d")].change((e=>{const s=t[tr("0x2d")][tr("0x49")].selection,r=Array[tr("0x29")](s[tr("0xb")]())[tr("0x47")]((t=>i.LiveRange[tr("0x2c")](t)));e[tr("0x35")](o),t.commands.get(n[tr("0x45")])[tr("0x36")](),n.commandParams[tr("0x3b")]({forceDefaultExecution:!0}),t[tr("0x32")](n[tr("0x45")],...n[tr("0x10")]),e.setSelection(r);for(const t of r)t[tr("0x20")]()}))}))}}var nr=n(331);const or=["markInsertion","fromRange","nextSibling","removeMarker:suggestion:insertion","plugins","bind","setSelection","end","model","data","high","mapper","writer","get","markerNameToElements","getFirstRange","TrackChangesEditing","unbindElementFromMarkerName","document","showSuggestionHighlights","remove","afterExecute","enableCommand","hasClass","init","downcastDispatcher","editing","enter","editor","createRange","selection","fire","parent","enterBlock","addMarker:suggestion:insertion","requires","split","markerName","options","createPositionAt","ck-suggestion-marker-split"];var sr,rr;sr=or,rr=433,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0xc")](){return[nr.Enter]}[ir("0x1")](){const t=this[ir("0x5")],e=t[ir("0x16")][ir("0x1f")](ir("0x22")),n=t.commands[ir("0x1f")]("enter");e[ir("0x28")](ir("0x4"),(()=>{t[ir("0x1a")].change((o=>{const s=t[ir("0x1a")][ir("0x24")][ir("0x7")],r=s.getFirstPosition(),x=i.LiveRange[ir("0x13")](s[ir("0x21")]());if(n[ir("0xa")](o)){const n=t[ir("0x1a")][ir("0x10")](r[ir("0x9")][ir("0x14")],0),s=o[ir("0x6")](r,n);e[ir("0x12")](s)}else o[ir("0x18")](o[ir("0x6")](x[ir("0x19")]));x.detach(),n[ir("0x8")](ir("0x27"),{writer:o})}))})),t.editing.downcastDispatcher.on(ir("0xb"),hs(t,ir("0xd")),{priority:"high"}),t[ir("0x3")][ir("0x2")].on(ir("0x15"),((t,e,n)=>{const o=n[ir("0x1d")][ir("0x20")](e[ir("0xe")]);if(o)for(const t of o)t[ir("0x0")](ir("0x11"))&&(n[ir("0x1d")][ir("0x23")](t,e[ir("0xe")]),n[ir("0x1e")][ir("0x26")](t))}),{priority:"high"}),t[ir("0x1b")][ir("0x2")].on(ir("0xb"),((e,n,o)=>{o[ir("0xf")][ir("0x25")]&&hs(t,"split",{showActiveMarker:!1})[ir("0x17")](this)(e,n,o)}),{priority:ir("0x1c")})}}const ar=["string","model","_isInDeletionRange","bind","filter","suggestion:deletion","TrackChangesEditing","FindAndReplaceUtils","has","createPositionAt","findPrevious","handleFindCommand","FindAndReplaceEditing","enableCommand","editor","findByTextCallback","replace","getRange","item","find","replaceAll","end","plugins","start","get"];var cr,lr;cr=ar,lr=337,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{afterInit(){if(!this[dr("0x2")][dr("0xa")][dr("0x15")](dr("0x0")))return;const t=this[dr("0x2")][dr("0xa")][dr("0xc")](dr("0x13"));t[dr("0x1")](dr("0x7"),this[dr("0x18")][dr("0x10")](this)),t[dr("0x1")]("findNext"),t[dr("0x1")](dr("0x17")),t.enableCommand(dr("0x4")),t[dr("0x1")](dr("0x8"))}[dr("0x18")](t,e,n={}){const o=this[dr("0x2")][dr("0xa")].get(dr("0x14"));void 0!==n&&t((t=>(dr("0xd")==typeof e?o[dr("0x3")](e,n):e)(t)[dr("0x11")]((e=>!1===this[dr("0xf")](e,t[dr("0x6")])))),n)}[dr("0xf")](t,e){const n=this[dr("0x2")][dr("0xe")].createRange(this.editor[dr("0xe")][dr("0x16")](e,t[dr("0xb")]),this[dr("0x2")][dr("0xe")][dr("0x16")](e,t[dr("0x9")]));for(const t of this[dr("0x2")][dr("0xe")].markers.getMarkersGroup(dr("0x12")))if(null!==n.getIntersection(t[dr("0x5")]()))return!0;return!1}}const gr=["plugins","editor","trim","FontColorEditing","get","find","config","*Set font color:* %0","commandName","normalizeSizeOptions","fontBackgroundColor","TrackChangesEditing","label","*Reset font color*","fontColor.colors","model","markInlineFormat","toLowerCase","format","*Set font family:* %0","selection","value","fontFamily","_enableCommand","*Reset font size*","*Set font background color:* %0","afterInit","enableCommand","change","_descriptionFactory","getRanges","*Set font size:* %0","fontSize.options","commandParams","fontColor","fontSize","FontBackgroundColorEditing","FontFamilyEditing","*Reset font family*","from","title","*Reset font background color*"];var mr,fr;mr=gr,fr=173,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},br=[{pluginName:"FontSizeEditing",commandName:"fontSize"},{pluginName:hr("0x20"),commandName:hr("0x11")},{pluginName:hr("0x28"),commandName:hr("0x1d")},{pluginName:hr("0x1f"),commandName:hr("0x5")}];class pr extends t.Plugin{[hr("0x15")](){const t=this[hr("0x26")].locale;for(const{pluginName:t,commandName:e}of br)this[hr("0x26")][hr("0x25")].has(t)&&this[hr("0x12")](e);this[hr("0x26")][hr("0x25")].get(hr("0x6"))[hr("0x18")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x1e")==o.commandName){const e=o[hr("0x1c")][0][hr("0x10")];if(e){const o=n(this[hr("0x26")][hr("0x25")][hr("0x29")]("FontSize")[hr("0x4")](this[hr("0x26")].config[hr("0x29")](hr("0x1b")))[hr("0x0")]((t=>t[hr("0xa")]==e))[hr("0x23")])[hr("0xc")]();return{type:hr("0xd"),content:Yo(t,hr("0x1a"),o)}}return{type:"format",content:Yo(t,hr("0x13"))}}if(hr("0x11")==o[hr("0x3")]){const e=o[hr("0x1c")][0][hr("0x10")];return e?{type:hr("0xd"),content:Yo(t,hr("0xe"),e)}:{type:hr("0xd"),content:Yo(t,hr("0x21"))}}if(hr("0x1d")==o.commandName){const e=o[hr("0x1c")][0][hr("0x10")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x26")][hr("0x1")][hr("0x29")](hr("0x9")))[hr("0x0")]((t=>t[hr("0xa")]==e));let r=e,i="";return o&&(r=o[hr("0x7")],i=n(r)[hr("0xc")]()),{type:"format",content:Yo(t,hr("0x2"),i)[hr("0x27")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x8"))}}if(hr("0x5")==o[hr("0x3")]){const e=o[hr("0x1c")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x26")][hr("0x1")][hr("0x29")]("fontBackgroundColor.colors"))[hr("0x0")]((t=>t[hr("0xa")]==e));let r=e,i="";return o&&(r=o[hr("0x7")],i=n(r)[hr("0xc")]()),{type:hr("0xd"),content:Yo(t,hr("0x14"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0xd"),content:Yo(t,hr("0x24"))}}}}))}[hr("0x12")](t){const e=this[hr("0x26")];e[hr("0x25")].get(hr("0x6"))[hr("0x16")](t,((n,o={})=>{const s=e[hr("0xa")].document[hr("0xf")],r=o.value;s.isCollapsed?n(o):e.model[hr("0x17")]((()=>{const n=Array[hr("0x22")](s[hr("0x19")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0xa")]);for(const o of n)e[hr("0x25")][hr("0x29")]("TrackChangesEditing")[hr("0xb")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["TrackChangesEditing","FontSize","commandParams","normalizeSizeOptions","commands","getItems","isFormatting","pasteFormat","toLowerCase","getLastPosition","model","fontSize.options","getFirstPosition","length","markInlineFormat","getRanges","*Remove all formatting*","title","entries","_descriptionFactory","copyFormat","backward","schema","find","fontBackgroundColor","document","getSelectedBlocks","registerDescriptionCallback","word","locale","isCollapsed","format","enableCommand","get","toUpperCase","selection","editor","config","fontColor.colors","fontColor","createSelection","push","from","slice","afterInit","commandName","join","*Set format to:* %0","plugins"];var _r,Tr;_r=Er,Tr=133,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x9")](){const t=this[Cr("0x1")],n=t.model,o=n[Cr("0x27")][Cr("0x0")],s=t.plugins.get(Cr("0xe")),r=t[Cr("0x2b")],i=t[Cr("0x12")].get(Cr("0x22")),x=t[Cr("0x12")][Cr("0x2f")](Cr("0x15"));i&&x&&(s[Cr("0x2e")]("pasteFormat",((t,r={})=>{const i=r;n.change((()=>{const t=Array[Cr("0x7")](o[Cr("0x1d")]()),r=o[Cr("0x2c")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t.getAttributes()){const t=e.getAttributeProperties(n);t&&t[Cr("0x14")]&&(yield n)}}(t,n));for(const e of t[Cr("0x1d")]())for(const t of e[Cr("0x13")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Cr("0x28")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x24")]))||0!==Object.keys(i)[Cr("0x1b")])for(const t of r)s[Cr("0x1c")](t,{commandName:Cr("0x15"),commandParams:[i]})}))})),s[Cr("0x21")][Cr("0x29")]((e=>{const{data:n}=e;if(n&&Cr("0x15")===n[Cr("0xa")]){const e=[],o=n[Cr("0x10")][0];for(const[n,s]of Object[Cr("0x20")](o))e[Cr("0x6")](Ar(t,n,s));return e[Cr("0x1b")]?{type:Cr("0x2d"),content:Yo(r,Cr("0xc"),e[Cr("0xb")](", "))}:{type:Cr("0x2d"),content:Yo(r,Cr("0x1e"))}}})),t[Cr("0xd")][Cr("0x2f")](Cr("0xe"))[Cr("0x2e")](Cr("0x22")))}}function kr(t,e){const n=t[Cr("0x5")](e);t.modifySelection(n,{unit:"word",direction:Cr("0x23")});const o=n[Cr("0x1a")]();t.modifySelection(n,{unit:Cr("0x2a"),direction:"forward"});const s=n[Cr("0x17")]();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x2b")].t,r=e.split(/(?=[A-Z])/).join(" "),i=o(r.charAt(0)[Cr("0x30")]()+r[Cr("0x8")](1))[Cr("0x16")]();if("boolean"==typeof n)return i;if(Cr("0x4")===e||Cr("0x26")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0x2f")](Cr("0x3")))[Cr("0x25")]((t=>t.model==n));return i+" ("+(e?o(e.label).toLowerCase():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0xd")][Cr("0x2f")](Cr("0xf"))[Cr("0x11")](t[Cr("0x2")][Cr("0x2f")](Cr("0x19")))[Cr("0x25")]((t=>t[Cr("0x18")]==n));return i+" ("+(e?o(e[Cr("0x1f")]).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["change","TrackChangesEditing","parent","heading","ELEMENT_HEADING_CUSTOM","model","from","get","plugins","title","match","isObject","afterInit","value","document","HeadingEditing","editor","locale","getSelectedBlocks","registerElementLabel","name","schema","enableCommand","selection","_descriptionFactory","format","ELEMENT_HEADING","registerDescriptionCallback","heading.options"];var Rr,Sr;Rr=vr,Sr=381,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x8")](){const t=this[Ir("0xc")],e=t[Ir("0xd")],n=t.config.get(Ir("0x18"));if(!t[Ir("0x4")].has(Ir("0xb")))return;const o=t.plugins[Ir("0x3")](Ir("0x1a"));o[Ir("0x12")]("heading",((e,n)=>{const s=n[Ir("0x9")],r=Array[Ir("0x2")](this[Ir("0xc")][Ir("0x1")][Ir("0xa")][Ir("0x13")][Ir("0xe")]()).filter((t=>{return e=t,n=s,(o=this[Ir("0xc")][Ir("0x1")][Ir("0x11")]).checkChild(e[Ir("0x1b")],n)&&!o[Ir("0x7")](e)&&e[Ir("0x10")]!=n;var e,n,o}));t[Ir("0x1")][Ir("0x19")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0x1c"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0x1")]&&o[Ir("0x14")][Ir("0xf")](t[Ir("0x1")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0x5")])}));function s(t,n){return Yo(e,Ir("0x16"),[t,n])}function r(t,n){return Yo(e,Ir("0x0"),[t,n])}o[Ir("0x14")][Ir("0x17")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&"heading"==i.commandName){const t=i.commandParams[0][Ir("0x9")],o=Nr(t);if(null!==o)return{type:Ir("0x15"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n.find((e=>e.model===t)).title;return{type:Ir("0x15"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x6")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["model","push","isCollapsed","afterInit","locale","highlight","getRanges","item","_descriptionFactory","*Remove highlight*","format","formatInline","registerDescriptionCallback","commandName","value","plugins","getAttribute","document","toLowerCase","getLastMatchingPosition","change","editor","find","title","FORMAT_HIGHLIGHT","highlight.options","get","TrackChangesEditing","backward"];var wr,Or;wr=Mr,Or=299,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x17")](){const t=this[Fr("0xc")];if(!t[Fr("0x6")].has("HighlightEditing"))return;const e=t.plugins[Fr("0x11")](Fr("0x12"));e.enableCommand(Fr("0x19"),((n,o={})=>{const s=t[Fr("0x14")][Fr("0x8")].selection,r=s[Fr("0x7")](Fr("0x19"));let i=o[Fr("0x5")],x=[];if(s[Fr("0x16")]){const e=s.getFirstPosition();if(!s.hasAttribute(Fr("0x19")))return void n(o);{const n=t=>t[Fr("0x1b")][Fr("0x7")](Fr("0x19"))===r,o=e[Fr("0xa")](n,{direction:Fr("0x13")}),s=e.getLastMatchingPosition(n);x=[t.model.createRange(o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x1a")]())i?x[Fr("0x15")](e):x[Fr("0x15")](...ms("highlight",e,t[Fr("0x14")]));t[Fr("0x14")][Fr("0xb")]((()=>{for(const t of x)e.markInlineFormat(t,{commandName:Fr("0x19"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x18")];e[Fr("0x1c")][Fr("0x3")]((e=>{const{type:o,data:s}=e;if(Fr("0x2")==o&&s&&Fr("0x19")==s[Fr("0x4")]){const e=n.t,o=s.commandParams[0][Fr("0x5")];if(o){const s=t.config[Fr("0x11")](Fr("0x10"))[Fr("0xd")]((t=>t[Fr("0x14")]==o)),r=e(s[Fr("0xe")])[Fr("0x9")]();return{type:Fr("0x1"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s.color,title:s[Fr("0xe")]}}}return{type:Fr("0x1"),content:Yo(n,Fr("0x0"),Yo(n,Fr("0xf")))}}}))}}const Dr=["registerElementLabel","has","plugins","div","ck-horizontal-line","editor","TrackChangesEditing","locale","insert","get","high","createContainerElement","createEmptyElement","afterInit","dataDowncast","addClass","elementToStructure","conversion","horizontalLine","enableCommand"];var Br,jr;Br=Dr,jr=332,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x1")](){const t=this[Ur("0xd")];if(!t[Ur("0xa")][Ur("0x9")]("HorizontalLineEditing"))return;t.plugins[Ur("0x11")](Ur("0xe"))[Ur("0x7")]("horizontalLine");const e=t.plugins.get("TrackChangesEditing"),n=t[Ur("0xf")];e._descriptionFactory[Ur("0x8")](Ur("0x6"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Ur("0x5")].for(Ur("0x2"))[Ur("0x4")]({model:Ur("0x6"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x13")](Ur("0xb")),s=e[Ur("0x0")]("hr");return e[Ur("0x3")](Ur("0xc"),o),e[Ur("0x10")](e.createPositionAt(o,0),s),o},converterPriority:Ur("0x12")})}}const Hr=["get","editor","selection","afterInit","getCustomProperty","commandName","HtmlEmbed","rawHtmlApi","registerDescriptionCallback","plugins","rawHtml","enableCommand","TrackChangesEditing","editing","registerElementLabel","getSelectedElement","view","model","change","cancel","has","markBlockFormat","document","_descriptionFactory","*Change %0 content*","htmlEmbed"];var zr,Vr;zr=Hr,Vr=142,function(t){for(;--t;)zr.push(zr.shift())}(++Vr);const Wr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Wr("0x11")](){const t=this[Wr("0xf")];if(!t[Wr("0x17")][Wr("0x8")](Wr("0x14")))return;const e=t[Wr("0x17")][Wr("0xe")](Wr("0x0")),n=t.locale,o=t[Wr("0x1")][Wr("0x4")][Wr("0xa")][Wr("0x10")];e[Wr("0xb")][Wr("0x2")](Wr("0x18"),(t=>Yo(n,"ELEMENT_HTML_EMBED",t))),t[Wr("0x17")][Wr("0xe")](Wr("0x0"))[Wr("0x19")](Wr("0xd"),((n,s)=>{const r=t[Wr("0x5")],i=r.document.selection;r[Wr("0x6")]((()=>{const t=function(t){const e=t[Wr("0x3")]();return e&&e.is("element",Wr("0x18"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t.getAttribute("value")||"";void 0!==s&&s!==r&&(e[Wr("0x9")](t,{commandName:Wr("0xd"),commandParams:[s]}),o[Wr("0x3")]()[Wr("0x12")](Wr("0x15"))[Wr("0x7")]())}))})),e._descriptionFactory[Wr("0x16")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Wr("0x13")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:"format",content:Yo(n,Wr("0xc"),t)}}}))}}const qr=["toPrevious","markInsertion","ELEMENT_CAPTION","formatInline","insertImage","commands","toLowerCase","format","ImageTextAlternativeEditing","author","_splitMarkerName","detach","removeObject","convertInlineImageToBlock","formatBlock","Block image to inline image","*Remove image text alternative*","newRange","getCaptionFromImageModelElement","normalizedStyles","alt","nodeBefore","imageStylePostApply","isBlockImage","ImageStyleEditing","resizeImage","next","model","*Format:* %0","createRange","newValue","registerPostFixer","nodeAfter","ELEMENT_INLINE_IMAGE","ELEMENT_IMAGE","title","join","type","_findSuggestions","imageCaption","previous","imageInline","*Reset image width*","imageTextAlternative","imageTypeBlock","discardSuggestion","fromPosition","markInlineFormat","*Set image width:* %0","getClosestSelectedImageElement","refresh","uploadImage","imageTypeInline","end","getFirstRange","subType","registerCustomCallback","*Set image text alternative:* %0","getContainedElement","commandReversedParams","chain","plugins","backward","ImageUtils","hasSuggestion","getSuggestion","addObject","isEqual","discard","from","ImageUploadEditing","imageStyle","deletion","ImageEditing","markDeletion","getSuggestions","width","isInContent","start","editor","forward","name","differ","FORMAT_SIDE_IMAGE","ImageInlineEditing","getAttribute","ImageResize","document","_suggestionFactory","getNearestSelectionRange","has","caption","isBefore","imageStylePreApply","get","value","filter","_descriptionFactory","isInlineImage","registerElementLabel","find","enableCommand","markBlockFormat","length","createRangeOn","commandName","insertion","isIntersecting","ImageBlockEditing","commandParams","suggestion","accept","getSuggestionCallback","ImageCaptionUtils","isCollapsed","registerDescriptionCallback","selection","schema","change","locale"];var $r,Xr;$r=qr,Xr=385,function(t){for(;--t;)$r.push($r.shift())}(++Xr);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x36")];if(!t[Jr("0x24")].has(Jr("0x30")))return;const n=t[Jr("0x24")][Jr("0x45")]("TrackChangesEditing"),o=t.plugins.get(Jr("0x26")),s={},r=t[Jr("0x5e")];if(n[Jr("0x4c")](Jr("0x63")),n[Jr("0x48")][Jr("0x4a")]("imageBlock",(t=>Yo(r,Jr("0x9"),t))),n[Jr("0x48")][Jr("0x4a")](Jr("0x10"),(t=>Yo(r,Jr("0x8"),t))),n[Jr("0x48")][Jr("0x4a")]("caption",(()=>Yo(r,Jr("0x61")))),t[Jr("0x24")][Jr("0x41")](Jr("0x2d"))&&n.enableCommand(Jr("0x1a")),t[Jr("0x24")].has(Jr("0x53"))&&t[Jr("0x24")][Jr("0x41")](Jr("0x3b"))&&(n[Jr("0x4c")](Jr("0x1b"),((e,s)=>{const r=o[Jr("0x18")](t.model[Jr("0x3e")][Jr("0x5b")]);t[Jr("0x2")][Jr("0x5d")]((()=>{n[Jr("0x4d")](r,{commandName:Jr("0x1b"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Jr("0x4c")]("imageTypeBlock",((e,s)=>{t[Jr("0x2")][Jr("0x5d")]((r=>{let x=o.getClosestSelectedImageElement(t.model.document[Jr("0x5b")]),a=r[Jr("0x4f")](x);const c=i.LivePosition[Jr("0x15")](a[Jr("0x35")],Jr("0x5f")),l=i.LivePosition[Jr("0x15")](a.end,"toNext");n.forceDefaultExecution((()=>e(s))),x=o[Jr("0x18")](t.model[Jr("0x3e")][Jr("0x5b")]),a=r[Jr("0x4f")](x);const d=r[Jr("0x4")](c,l);c[Jr("0x6a")](),l[Jr("0x6a")](),n[Jr("0x4d")](x,{commandName:"imageTypeInline",commandParams:[]},[],Jr("0x6c")),d[Jr("0x35")][Jr("0x43")](a.start)&&n[Jr("0x60")](r[Jr("0x4")](d[Jr("0x35")],a[Jr("0x35")]),Jr("0x6c")),a.end[Jr("0x43")](d[Jr("0x1c")])&&n[Jr("0x60")](r[Jr("0x4")](a[Jr("0x1c")],d[Jr("0x1c")]),Jr("0x6c"))}))})),n[Jr("0x3f")][Jr("0x1f")](Jr("0x6d"),Jr("0x6c"),"join",(()=>{})),n[Jr("0x3f")][Jr("0x1f")](Jr("0x6d"),Jr("0x6c"),Jr("0x56"),(()=>{})),n[Jr("0x3f")][Jr("0x1f")]("formatBlock",Jr("0x6c"),Jr("0x2b"),n[Jr("0x3f")][Jr("0x57")](Jr("0x6d"),"",Jr("0x56"))),n._suggestionFactory.registerCustomCallback(Jr("0x51"),Jr("0x6c"),Jr("0xb"),(()=>{})),n[Jr("0x3f")][Jr("0x1f")]("insertion","convertInlineImageToBlock","discard",(([e])=>{const o=n[Jr("0x3f")][Jr("0x57")](Jr("0x51"),"","discard");let s=e.start,r=e.end;const i=t[Jr("0x2")][Jr("0x5c")][Jr("0x40")](s,Jr("0x25")),x=t[Jr("0x2")].schema[Jr("0x40")](r,Jr("0x37"));i[Jr("0x59")]&&(s=i[Jr("0x35")]),x.isCollapsed&&(r=x.end),o([t[Jr("0x2")][Jr("0x4")](s,r)])})),n[Jr("0x3f")][Jr("0x1f")](Jr("0x6d"),Jr("0x6c"),Jr("0x23"),c),n[Jr("0x3f")][Jr("0x1f")]("insertion","convertInlineImageToBlock","chain",c)),t[Jr("0x24")].has("ImageCaptionEditing")&&(n[Jr("0x4c")]("toggleImageCaption",((e,s)=>{const r=t.plugins[Jr("0x45")](Jr("0x58"));let i=o.getClosestSelectedImageElement(t.model.document[Jr("0x5b")]),x=r.getCaptionFromImageModelElement(i);t[Jr("0x2")][Jr("0x5d")]((()=>{if(x)return void n[Jr("0x31")](t[Jr("0x2")][Jr("0x4f")](x));const a=o[Jr("0x76")](i);e(s),i=o[Jr("0x18")](t[Jr("0x2")][Jr("0x3e")][Jr("0x5b")]),x=r[Jr("0x71")](i),n[Jr("0x60")](t.model.createRangeOn(x),a?null:Jr("0xe"))}))})),n[Jr("0x3f")][Jr("0x1f")](Jr("0x51"),Jr("0xe"),Jr("0x23"),c)),t[Jr("0x24")][Jr("0x41")](Jr("0x77"))){n[Jr("0x4c")]("imageStyle",((s,r)=>{const i=t.plugins[Jr("0x45")]("Users").me,x=t[Jr("0x64")].get(Jr("0x2e"));let a=o.getClosestSelectedImageElement(t.model[Jr("0x3e")][Jr("0x5b")]),c=t[Jr("0x2")][Jr("0x4f")](a),l=x.value;if(l==r[Jr("0x46")])return;const d={commandName:Jr("0x2e"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x2")].change((()=>{if(n[Jr("0x32")]()[Jr("0x47")]((t=>t.isInContent&&i==t[Jr("0x68")]&&("formatBlock"==t.type||Jr("0x62")==t.type)&&(Jr("0x44")==t[Jr("0x1e")]||Jr("0x75")==t[Jr("0x1e")])&&t.getFirstRange().isEqual(c))).forEach((t=>n[Jr("0x14")](t.head))),a=o.getClosestSelectedImageElement(t.model[Jr("0x3e")][Jr("0x5b")]),c=t[Jr("0x2")].createRangeOn(a),x.refresh(),t.commands.get("imageTypeInline")[Jr("0x19")](),t[Jr("0x64")][Jr("0x45")](Jr("0x13"))[Jr("0x19")](),l=x[Jr("0x46")],l!=r[Jr("0x46")])return o[Jr("0x49")](a)&&x.shouldConvertImageType(r[Jr("0x46")],a)?(s(r),a=o[Jr("0x18")](t[Jr("0x2")].document[Jr("0x5b")]),void n[Jr("0x4d")](a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x44"))):void(o[Jr("0x76")](a)?n.markBlockFormat(a,d,[],Jr("0x75")):n[Jr("0x16")](c,d,Jr("0x75")))}))}));for(const e of t[Jr("0x24")][Jr("0x45")](Jr("0x77"))[Jr("0x72")])s[e[Jr("0x38")]]=e[Jr("0xa")][Jr("0x65")]();n[Jr("0x3f")].registerCustomCallback(Jr("0x6d"),Jr("0x44"),"join",(()=>{})),n[Jr("0x3f")].registerCustomCallback(Jr("0x6d"),"imageStylePostApply",Jr("0xb"),(()=>{})),n[Jr("0x3f")][Jr("0x1f")](Jr("0x62"),"imageStylePostApply",Jr("0xb"),(()=>{})),n._suggestionFactory[Jr("0x1f")](Jr("0x6d"),Jr("0x44"),"accept",(()=>{})),n[Jr("0x3f")].registerCustomCallback("formatBlock",Jr("0x44"),"discard",((t,e)=>{n[Jr("0x3f")].getSuggestionCallback(Jr("0x6d"),"",Jr("0x56"))(t,{commandName:e[Jr("0x50")],commandParams:e[Jr("0x22")]})})),n[Jr("0x3f")][Jr("0x1f")](Jr("0x6d"),"imageStylePreApply",Jr("0x23"),c)}const x=[{type:Jr("0x6d"),subType:Jr("0x44")},{type:Jr("0x51"),subType:Jr("0xe")},{type:Jr("0x6d"),subType:Jr("0x6c")},{type:Jr("0x51"),subType:Jr("0x6c")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[Jr("0xc")]==e&&t[Jr("0x1e")]==n)),r=x.findIndex((({type:t,subType:n})=>e[Jr("0xc")]==t&&e[Jr("0x1e")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x1d")](),a=e[Jr("0x1d")]();if((0==s||1==s)&&2==r&&i[Jr("0x52")](a))return!0;if(2==s&&3==r){const t=n[Jr("0xd")](i,"insertion")[Jr("0x47")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[Jr("0x1e")]));if(t[Jr("0x4e")]>1&&a[Jr("0x1c")][Jr("0x2a")](i[Jr("0x35")]))return!0;if(1==t[Jr("0x4e")]&&(i.start[Jr("0x2a")](a.end)||i.end[Jr("0x2a")](a[Jr("0x35")])))return!0}if(3==s&&3==r&&i.start[Jr("0x43")](a[Jr("0x35")])){const t=i.end[Jr("0x7")],e=a[Jr("0x35")][Jr("0x74")];return o[Jr("0x76")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x2")][Jr("0x3e")][Jr("0x6")]((()=>{let e=!1;const s=Array[Jr("0x2c")](t[Jr("0x2")][Jr("0x3e")][Jr("0x39")].getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x69")](t);if(Jr("0x55")==s&&n[Jr("0x27")](a)){if(Jr("0x6d")==i&&(Jr("0x44")==x||Jr("0x75")==x)){const t=n[Jr("0x28")](a);if(r.newRange){const s=t[Jr("0x1d")]().getContainedElement();if(o[Jr("0x76")](s))continue;n[Jr("0x14")](t),e=!0}}if(Jr("0x51")==i&&"imageCaption"==x&&!r[Jr("0x70")]){const t=n[Jr("0x28")](a);t.next&&t[Jr("0x1")][Jr("0x34")]&&(n[Jr("0x14")](t[Jr("0x1")]),e=!0)}}}return e})),t[Jr("0x24")][Jr("0x41")](Jr("0x3d"))&&n[Jr("0x4c")](Jr("0x0"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x2")][Jr("0x3e")][Jr("0x5b")]);r[Jr("0x3c")](Jr("0x33"))!=s[Jr("0x33")]&&t[Jr("0x2")][Jr("0x5d")]((()=>{n[Jr("0x4d")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t[Jr("0x24")][Jr("0x41")](Jr("0x67"))&&n[Jr("0x4c")]("imageTextAlternative",((e,s)=>{const r=o[Jr("0x18")](t[Jr("0x2")].document[Jr("0x5b")]);(r.hasAttribute("alt")?r[Jr("0x3c")](Jr("0x73")):"")!=s[Jr("0x5")]&&t[Jr("0x2")][Jr("0x5d")]((()=>{n[Jr("0x4d")](r,{commandName:Jr("0x12"),commandParams:[s]})}))})),n[Jr("0x48")][Jr("0x5a")]((t=>{if(x[Jr("0x4b")]((({type:e,subType:n})=>t[Jr("0xc")]==e&&t[Jr("0x1e")]==n)))return t[Jr("0xf")]?{}:void 0})),n[Jr("0x48")][Jr("0x5a")]((t=>{if(Jr("0x51")==t.type||Jr("0x2f")==t[Jr("0xc")]){const e=t[Jr("0x21")]();if(e&&e.is("element",Jr("0x42")))return{type:Jr("0x51")==t.type?Jr("0x29"):Jr("0x6b"),element:e,quantity:1}}})),n._descriptionFactory[Jr("0x5a")]((t=>Jr("0x6d")==t[Jr("0xc")]&&Jr("0x6c")==t[Jr("0x1e")]?{type:"format",content:"Inline image to block image"}:Jr("0x6d")==t[Jr("0xc")]&&"convertBlockImageToInline"==t[Jr("0x1e")]?{type:Jr("0x66"),content:Jr("0x6e")}:void 0)),n[Jr("0x48")][Jr("0x5a")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e.commandName){const t=e[Jr("0x54")][0].value;return n="side"===t?Yo(r,Jr("0x3a")):s[t]||t,{type:Jr("0x66"),content:Yo(r,Jr("0x3"),n)}}if(Jr("0x12")==e[Jr("0x50")]){const t=e[Jr("0x54")][0][Jr("0x5")];return t?{type:Jr("0x66"),content:Yo(r,Jr("0x20"),'"'+t+'"')}:{type:Jr("0x66"),content:Yo(r,Jr("0x6f"))}}if(Jr("0x0")==e[Jr("0x50")]){const t=e[Jr("0x54")][0][Jr("0x33")];return t?{type:Jr("0x66"),content:Yo(r,Jr("0x17"),t)}:{type:Jr("0x66"),content:Yo(r,Jr("0x11"))}}}var n}))}}const Zr=["afterInit","_descriptionFactory","plugins","get","getSelectedElement","*Format:* replace image URL","getContainedElement","formatBlock","commandName","document","TrackChangesEditing","enableCommand","locale","getSuggestionCallback","discard","handleReplaceImageCommand","editor","src","getSuggestions","Users","data","selection","source","commandParams","handleSuggestionDescription","ImageEditing","has","model","replaceImageSource","accept","_suggestionFactory","getAttribute","author","registerDescriptionCallback","registerCustomCallback"];var Yr,ti;Yr=Zr,ti=424,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1f")](){if(!this[ei("0xc")].plugins[ei("0x16")](ei("0x15")))return;const t=this[ei("0xc")][ei("0x21")][ei("0x22")]("TrackChangesEditing");t[ei("0x7")](ei("0x18"),((t,e)=>this.handleReplaceImageCommand(t,e))),t._suggestionFactory[ei("0x1e")](ei("0x3"),"replaceImageSource",ei("0x19"),t._suggestionFactory[ei("0x9")]("formatBlock",null,ei("0xa"))),t[ei("0x1a")][ei("0x1e")]("formatBlock",ei("0x18"),ei("0xa"),t[ei("0x1a")][ei("0x9")](ei("0x3"),null,ei("0x19"))),t[ei("0x20")][ei("0x1d")]((t=>this[ei("0x14")](t)))}[ei("0xb")](t,e){const n=this.editor[ei("0x21")][ei("0x22")](ei("0x6")),o=this.editor[ei("0x17")][ei("0x5")][ei("0x11")][ei("0x0")]();this[ei("0xc")][ei("0x17")].change((()=>{let s=o[ei("0x1b")](ei("0xd"));const r=this[ei("0xc")].plugins[ei("0x22")](ei("0xf")).me;for(const t of n[ei("0xe")]({skipNotAttached:!0})){const e=t[ei("0x2")]();if(ei("0x18")===t.subType&&e===o){t[ei("0x1c")]!==r&&t[ei("0xa")](),s=t[ei("0x10")][ei("0x13")][0][ei("0x12")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x18"),commandParams:[{source:s}]},[],ei("0x18"))}))}[ei("0x14")](t){const{data:e}=t;if(e&&ei("0x18")===e[ei("0x4")]){const t=ei("0x1");return{type:"format",content:Yo(this[ei("0xc")][ei("0x8")],t)}}}}const oi=["_handleImportedData","bind","_setSuggestionData","importWord","collaboration_features","dataInsert","editor","value","lowest","_trackChangesValueDuringImport","forEach","plugins","execute","commands","get","_trackChangesExecuted","enableCommand","TrackChangesEditing","trackChanges","high","afterInit","listenTo"];var si,ri;si=oi,ri=446,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x3")]=!1,this[ii("0x9")]=!1}[ii("0xe")](){const t=this[ii("0x0")],e=t[ii("0x7")][ii("0x8")](ii("0x13")),n=t[ii("0x7")][ii("0x8")](ii("0xc"));e&&(e.on(ii("0x6"),((t,[,e])=>{this[ii("0x3")]=n[ii("0x1")],e[ii("0x14")].track_changes=!this[ii("0x3")]}),{priority:ii("0xd")}),this[ii("0xf")](e,"dataInsert",this[ii("0x10")][ii("0x11")](this)),this[ii("0xf")](e,ii("0x15"),(()=>{this[ii("0x9")]&&(n.execute(),this._trackChangesExecuted=!1)}),{priority:ii("0x2")}),t[ii("0x5")][ii("0x8")](ii("0xb"))[ii("0xa")](ii("0x13")))}[ii("0x10")](t,e){const{suggestions:n}=e,o=this[ii("0x0")][ii("0x7")].get(ii("0xc")),s=o[ii("0x1")];this[ii("0x3")]!==s&&(o[ii("0x6")](),this._trackChangesExecuted=!0),n&&n[ii("0x4")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ii("0x5")][ii("0x8")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[ii("0x0")][ii("0x5")].get(ii("0xb"))[ii("0x12")](s)}))}}const ai=["from","commandName","plugins","markBlockFormat","TrackChangesEditing","enableCommand","afterInit","document","outdentBlock","format","*Indent:* %0","selection","IndentBlock","change","schema","getItemLabel","indent","get","editor","indentBlock","getSelectedBlocks","outdent","IndentEditing","model","checkAttribute","has"];var ci,li;ci=ai,li=145,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x11")](){const t=this[di("0x3")],e=t[di("0xd")][di("0x2")](di("0xf"));t[di("0xd")][di("0xa")](di("0x7"))&&(e[di("0x10")](di("0x1")),e[di("0x10")](di("0x6")));const n=t.locale;if(t[di("0xd")][di("0xa")](di("0x17"))){for(const n of["indentBlock",di("0x13")])e[di("0x10")](n,(()=>{const o=Array[di("0xb")](this.editor[di("0x8")][di("0x12")][di("0x16")][di("0x5")]()).filter((t=>this[di("0x3")][di("0x8")][di("0x19")][di("0x9")](t,"blockIndent")));t.model[di("0x18")]((()=>{for(const t of o)e[di("0xe")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x4")})}))}));e._descriptionFactory.registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if(di("0x4")!=o[di("0xc")]&&di("0x13")!=o.commandName)return;const s=t.getItems()[0],r=e._descriptionFactory[di("0x0")](s);return di("0x4")==o[di("0xc")]?{type:di("0x14"),content:Yo(n,di("0x15"),r)}:di("0x13")==o[di("0xc")]?{type:"format",content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["get","init","editor","plugins","TrackChangesEditing"];gi=fi,mi=439,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class bi extends t.Plugin{static get requires(){return[Ws.Input]}[hi("0x2")](){this[hi("0x3")][hi("0x4")][hi("0x1")](hi("0x0")).enableCommand("input")}}const pi=["getFirstPosition","document","change","_descriptionFactory","plugins","has","getAttribute","linkHref","commandParams","LinkEditing","format","from","link","locale","TrackChangesEditing","commandName","unlink","enableCommand","isCollapsed","model","afterInit","markInlineFormat","getRanges","registerDescriptionCallback","hasAttribute","get"];var Ei,_i;Ei=pi,_i=368,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return pi[t-=0]};class Ci extends t.Plugin{[Ti("0x10")](){const t=this.editor;if(!t[Ti("0x0")][Ti("0x1")](Ti("0x5")))return;const e=t.plugins[Ti("0x15")](Ti("0xa"));e[Ti("0xd")]("link",((n,o)=>{const s=t.model[Ti("0x17")].selection;let r=[];if(s[Ti("0xe")]){if(!s[Ti("0x14")](Ti("0x3")))return void n(o);{const e=(0,Ws.findAttributeRange)(s[Ti("0x16")](),Ti("0x3"),s[Ti("0x2")](Ti("0x3")),t.model);r=[e]}}else r=Array[Ti("0x7")](s[Ti("0x12")]());t[Ti("0xf")][Ti("0x18")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:Ti("0x8"),commandParams:[o]})}))})),e[Ti("0xd")](Ti("0xc"),(()=>{const n=this.editor[Ti("0xf")],o=n[Ti("0x17")].selection;n[Ti("0x18")]((()=>{let n=[];n=o[Ti("0xe")]?[(0,Ws.findAttributeRange)(o[Ti("0x16")](),Ti("0x3"),o.getAttribute(Ti("0x3")),t[Ti("0xf")])]:ms(Ti("0x3"),o.getFirstRange(),t[Ti("0xf")]);for(const t of n)e[Ti("0x11")](t,{commandName:"unlink",commandParams:[]})}))})),e[Ti("0x19")][Ti("0x13")]((e=>{const{data:n}=e,o=t[Ti("0x9")];if(n){if(Ti("0x8")==n[Ti("0xb")]){const t=n[Ti("0x4")][0];return{type:Ti("0x6"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0xc")==n[Ti("0xb")]?{type:Ti("0x6"),content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["getSelectedBlocks","checkChild","outdentList","getAttribute","afterInit","ELEMENT_LIST_ITEM","commands","_descriptionFactory","*Uncheck item*","value","filter","numbered","name","plugins","locale","from","checkTodoList","push","get","editor","nextSibling","todoList","execute","ListEditing","change","slice","model","ELEMENT_TODO_LIST","findIndex","enableCommand","createPositionAt","numberedList","blockName","_selectedElements","paragraph","selection","previousSibling","isObject","bulletedList","replace","length","markBlockFormat","document","listIndent","element","*Indent:* %0","add","todo","registerDescriptionCallback","forceValue","TrackChangesEditing","registerElementLabel","parent","todoListChecked","ELEMENT_BULLETED_LIST","indentList","listItem","TodoListEditing","has","format","schema","commandName","*Check item*","*Change to:* %0"];var ki,Ai;ki=yi,Ai=138,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x3a")](){const t=this[vi("0x9")],e=t[vi("0x4")];if(!t.plugins[vi("0x30")](vi("0xd")))return;const n=t[vi("0x3")].get(vi("0x28")),o=t[vi("0x3")].has(vi("0x2f"));function s(e){return()=>{const o=t.model[vi("0x20")][vi("0x19")],s=t[vi("0x3c")][vi("0x8")](e);if(s[vi("0x3f")])return void t[vi("0xc")](vi("0x18"),{});const r=e[vi("0xf")](0,-4),i=function(t,e,n){let o=Array[vi("0x5")](t)[vi("0x0")]((t=>{return e=t,(o=n)[vi("0x37")](e[vi("0x2a")],vi("0x2e"))&&!o[vi("0x1b")](e);var e,o}));o=o[vi("0x0")]((t=>!t.is(vi("0x22"),vi("0x2e"))||t.getAttribute("listType")!=e));const s=new Set;for(const t of o)t.is(vi("0x22"),vi("0x2e"))?s[vi("0x24")](Si(t)):s[vi("0x24")](t);return Array[vi("0x5")](s)}(o[vi("0x36")](),r,t[vi("0x10")][vi("0x32")]);t.model[vi("0xe")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0x3f")]}],formatGroupId:vi("0x16")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x5")](t);const n=e[vi("0x12")]((t=>vi("0x2e")!=t.name));return n>-1&&(e=e[vi("0xf")](0,n)),e}(t.model[vi("0x20")][vi("0x19")].getSelectedBlocks()),s=t[vi("0x10")].createRange(t[vi("0x10")][vi("0x14")](o[0],"before"),t.model[vi("0x14")](o[o[vi("0x1e")]-1],"end"));t[vi("0x10")][vi("0xe")]((()=>{n[vi("0x1f")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x21")},function(t){const e=new Set;for(const n of t){let t=n[vi("0xa")];for(;t&&t[vi("0x39")]("listIndent")>n[vi("0x39")](vi("0x21"));)e[vi("0x24")](t),t=t.nextSibling}return Array[vi("0x5")](e)}(o))}))}}n[vi("0x13")]("numberedList",s(vi("0x15"))),n[vi("0x13")]("bulletedList",s(vi("0x1c"))),o&&n[vi("0x13")](vi("0xb"),s(vi("0xb"))),n[vi("0x13")]("indentList",r("indentList")),n[vi("0x13")](vi("0x38"),r("outdentList")),o&&n[vi("0x13")]("checkTodoList",(()=>{const e=t[vi("0x3c")].get("checkTodoList"),o=Array.from(e[vi("0x17")]);o[vi("0x0")]((t=>t[vi("0x39")](vi("0x2b"))!=e[vi("0x3f")])),t[vi("0x10")][vi("0xe")]((()=>{for(const t of o)n[vi("0x1f")](t,{commandName:vi("0x6"),commandParams:[{forceValue:!e[vi("0x3f")]}]})}))})),n[vi("0x3d")][vi("0x29")](vi("0x2e"),(t=>Yo(e,vi("0x3b"),t))),n[vi("0x3d")][vi("0x26")]((t=>{const{data:n}=t;if(n){if(vi("0x15")==n[vi("0x33")]||"bulletedList"==n[vi("0x33")]||vi("0xb")==n[vi("0x33")])switch(n.commandName[vi("0x1d")]("List","")){case"bulleted":return o(Yo(e,vi("0x2c")));case vi("0x1"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case vi("0x25"):return o(Yo(e,vi("0x11")))}if(vi("0x2d")==n[vi("0x33")])return{type:vi("0x31"),content:Yo(e,vi("0x23"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x38")==n[vi("0x33")])return{type:vi("0x31"),content:Yo(e,"*Outdent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x6")==n[vi("0x33")])return n.commandParams[0][vi("0x27")]?{type:vi("0x31"),content:Yo(e,vi("0x34"))}:{type:"format",content:Yo(e,vi("0x3e"))}}function o(t){return{type:vi("0x31"),content:Yo(e,vi("0x35"),t)}}}))}}function Si(t){const e=t[vi("0x39")]("listIndent");if(0==e)return t;let n=t;for(;t[vi("0x1a")]&&t.previousSibling.is("element","listItem");){const o=t[vi("0x1a")][vi("0x39")](vi("0x21"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x1a")]}return n}function Ii(t){const e=[];if(t.is(vi("0x22"),vi("0x2e"))&&t[vi("0x39")](vi("0x21"))>0){let n=t[vi("0xa")];for(;n&&vi("0x2e")==n[vi("0x2")]&&n[vi("0x39")](vi("0x21"))==t.getAttribute(vi("0x21"));)e[vi("0x7")](n),n=n[vi("0xa")]}return e}const Li=["listReversed","forward","handleListStyleCommand","commandParams","filter","createPositionAt","getSiblingNodes","TrackChangesEditing","styles","getLastPosition","_LIST_","backward","markMultiRangeBlockFormat","registerDescriptionCallback","change","_getSuggestionBlocks","list.properties","format","model","length","numbered","config","selection","listStyle","listStart","enableCommand","_descriptionFactory","parent","getListTypeFromListStyleType","flat","element","toUpperCase","createRange","plugins","_getSuggestionBlocksForListStyle","handleListReversedCommand","afterInit","ListUtils","*Format:* set order to reversed","listType","listItem","handleDescriptions","bind","ListPropertiesEditing","map","unshift","editor","reversed","type","document","get","*Format:* set start index to %0","startIndex","before","getAttribute","getSelectedBlocks","from"];var Ni,Mi;Ni=Li,Mi=460,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x20")](){if(!this.editor[wi("0x1d")].has(wi("0x27")))return;const t=this[wi("0x2a")][wi("0x11")][wi("0x2e")](wi("0xc")),e=this.editor[wi("0x1d")][wi("0x2e")](wi("0x3"));t[wi("0x4")]&&e.enableCommand("listStyle",this[wi("0x37")].bind(this)),t[wi("0x2b")]&&e.enableCommand(wi("0x35"),this.handleListReversedCommand.bind(this)),t[wi("0x30")]&&e[wi("0x15")](wi("0x14"),this.handleListStartCommand[wi("0x26")](this)),e[wi("0x16")][wi("0x9")](this[wi("0x25")].bind(this))}[wi("0x37")](t,e={}){const n=this[wi("0x2a")][wi("0x1d")][wi("0x2e")](wi("0x3")),o=this[wi("0x1e")]();this[wi("0x2a")][wi("0xe")].change((()=>{n[wi("0x8")](o,{commandName:wi("0x13"),commandParams:[{type:e.type}],formatGroupId:"listStyle"})}))}[wi("0x1f")](t,e={}){const n=this.editor.plugins[wi("0x2e")]("TrackChangesEditing"),o=this[wi("0xb")]((t=>t.is(wi("0x1a"),wi("0x24"))&&wi("0x10")===t.getAttribute(wi("0x23"))));if(o.length<1)return;const s=o[wi("0x28")]((t=>this[wi("0x2a")][wi("0xe")][wi("0x1c")](this[wi("0x2a")].model[wi("0x1")](t,wi("0x31")),this.editor[wi("0xe")][wi("0x1")](t,0))));this[wi("0x2a")].model.change((()=>{n[wi("0x8")](s,{commandName:wi("0x35"),commandParams:[{reversed:e.reversed}],formatGroupId:wi("0x35")})}))}handleListStartCommand(t,e={}){const n=this[wi("0x2a")][wi("0x1d")][wi("0x2e")](wi("0x3")),o=this[wi("0xb")]((t=>t.is("element","listItem")&&wi("0x10")===t[wi("0x32")](wi("0x23"))));if(o[wi("0xf")]<1)return;const s=o[wi("0x28")]((t=>this[wi("0x2a")][wi("0xe")][wi("0x1c")](this.editor.model[wi("0x1")](t,wi("0x31")),this[wi("0x2a")][wi("0xe")][wi("0x1")](t,0))));this[wi("0x2a")][wi("0xe")][wi("0xa")]((()=>{n[wi("0x8")](s,{commandName:wi("0x14"),commandParams:[{startIndex:e[wi("0x30")]}],formatGroupId:wi("0x14")})}))}[wi("0x25")](t){const e=this[wi("0x2a")].locale,{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wi("0x13"):o="*Change to:* %0",s={type:wi("0xd"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[wi("0x38")][0][wi("0x2c")])))};break;case wi("0x35"):o=n[wi("0x38")][0].reversed?wi("0x22"):"*Format:* set order to regular",s={type:wi("0xd"),content:Yo(e,o)};break;case wi("0x14"):o=wi("0x2f"),s={type:"format",content:Yo(e,o,n[wi("0x38")][0][wi("0x30")])}}return s}[wi("0x1e")](){var t,e,n,o;const s=this[wi("0x2a")].plugins[wi("0x2e")]("ListUtils");let r=Array.from(this[wi("0x2a")].model[wi("0x2d")][wi("0x12")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is("element",wi("0x24")))&&r[wi("0x29")](...s[wi("0x2")](this[wi("0x2a")][wi("0xe")][wi("0x2d")][wi("0x12")].getFirstPosition(),"backward")),(null===(e=r[r[wi("0xf")]-1])||void 0===e?void 0:e.is("element",wi("0x24")))&&r.push(...s.getSiblingNodes(this.editor[wi("0xe")][wi("0x2d")].selection[wi("0x5")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this.editor.model[wi("0x2d")].selection.getFirstPosition())||void 0===n?void 0:n[wi("0x17")])||void 0===o?void 0:o.is(wi("0x1a"),wi("0x24")))&&(r=r.filter((t=>t.is(wi("0x1a"),"listItem")))),r}[wi("0xb")](t){const e=this[wi("0x2a")].plugins[wi("0x2e")](wi("0x21"));let n=Array[wi("0x34")](this[wi("0x2a")][wi("0xe")].document.selection[wi("0x33")]())[wi("0x0")](t).map((t=>{const n=this[wi("0x2a")][wi("0xe")][wi("0x1")](t,0);return[...e[wi("0x2")](n,wi("0x7")),...e[wi("0x2")](n,wi("0x36"))]}))[wi("0x19")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[wi("0x2a")][wi("0x1d")][wi("0x2e")](wi("0x21"))[wi("0x18")](t)[wi("0x1b")]()+wi("0x6")+t[wi("0x1b")]().replace(/-/g,"_")}}const Fi=["_descriptionFactory","afterInit","MediaEmbedEditing","registerElementLabel","high","stop","plugins","conversion","media","createEmptyElement","options","ELEMENT_MEDIA","showSuggestionHighlights","mediaEmbed"];var Pi,Di;Pi=Fi,Di=402,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x5")](){const t=this.editor;if(!t[Bi("0xa")].has(Bi("0x6")))return;const e=t[Bi("0xa")].get("TrackChangesEditing"),n=t.locale;e.enableCommand(Bi("0x3")),e[Bi("0x4")][Bi("0x7")](Bi("0xc"),(t=>Yo(n,Bi("0x1"),t))),t[Bi("0xb")].for("dataDowncast").elementToElement({model:"media",view:(t,{writer:e,options:n})=>{if(n[Bi("0x2")])return e[Bi("0xd")]("div")},converterPriority:Bi("0x8")}),t.data.downcastDispatcher.on("attribute:url:media",((t,e,n)=>{n[Bi("0x0")][Bi("0x2")]&&t[Bi("0x9")]()}),{priority:Bi("0x8")})}}const Ui=["has","editor","enableCommand","plugins","afterInit","get","mention","MentionEditing"];var Gi,Hi;Gi=Ui,Hi=189,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Vi extends t.Plugin{[zi("0x7")](){const t=this[zi("0x4")];t.plugins[zi("0x3")](zi("0x2"))&&t[zi("0x6")][zi("0x0")]("TrackChangesEditing")[zi("0x5")](zi("0x1"))}}const Wi=["get","editor","_descriptionFactory","plugins","afterInit","enableCommand","has","PageBreakEditing","locale","registerElementLabel","ELEMENT_PAGE_BREAK","pageBreak","TrackChangesEditing"];var Ki,qi;Ki=Wi,qi=474,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const $i=function(t,e){return Wi[t-=0]};class Xi extends t.Plugin{[$i("0xb")](){const t=this[$i("0x8")];if(!t[$i("0xa")][$i("0x0")]($i("0x1")))return;t.plugins.get($i("0x6"))[$i("0xc")]($i("0x5"));const e=t.plugins[$i("0x7")]("TrackChangesEditing"),n=t[$i("0x2")];e[$i("0x9")][$i("0x3")]("pageBreak",(t=>Yo(n,$i("0x4"),t)))}}const Ji=["*Insert:* %0","markBlockFormat","insertion","consumable","checkChild","registerDescriptionCallback","editor","consume","TrackChangesEditing","paragraph","plugins","end","document","$text","markerRange","downcastDispatcher","getFirstRange","from","insert","addClass","Paragraph","selection","change","nodeAfter","enableCommand","editing","highest","isTouching","commandName","isBlock","parent","markerName","options","writer","insertParagraph","data","getSelectedBlocks","format","start","schema","mapper","model","filter","addMarker:suggestion:insertion","blockName","name","afterInit","get","_descriptionFactory","ELEMENT_PARAGRAPH","bindElementToMarker","isLimit","locale"];var Qi,Zi;Qi=Ji,Zi=126,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x1a")](){const t=this[Yi("0x27")];if(!t[Yi("0x2b")].has(Yi("0x0")))return;const e=t[Yi("0x20")],n=t.plugins.get("TrackChangesEditing");n._descriptionFactory.registerElementLabel("paragraph",(t=>Yo(e,Yi("0x1d"),t))),n.enableCommand(Yi("0x2a"),((e,o={})=>{const s=t[Yi("0x15")][Yi("0x2d")],r=o[Yi("0x1")]||s[Yi("0x1")],i=Array[Yi("0x32")](r[Yi("0x10")]())[Yi("0x16")]((t=>{return e=t,(n=this[Yi("0x27")].model.schema)[Yi("0x25")](e[Yi("0xa")],"paragraph")&&!n.isObject(e)&&Yi("0x2a")!=e[Yi("0x19")];var e,n}));t[Yi("0x15")][Yi("0x2")]((()=>{for(const t of i)n[Yi("0x22")](t,{commandName:Yi("0x2a"),commandParams:[],formatGroupId:Yi("0x18")},fs(t))}))})),n[Yi("0x1c")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Yi("0x2a")==n[Yi("0x8")])return{type:Yi("0x11"),content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x1d")))}})),n[Yi("0x4")](Yi("0xe")),t[Yi("0x5")].downcastDispatcher.on("addMarker:suggestion:insertion",ex(t),{priority:Yi("0x6")}),t[Yi("0xf")][Yi("0x30")].on(Yi("0x17"),((e,n,o)=>{o[Yi("0xc")].showSuggestionHighlights&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x6")});const o=n[Yi("0x1c")];o[Yi("0x26")]((n=>{if("insertion"!==n.type)return;const{start:s,end:r}=n[Yi("0x31")]();if(!s.isTouching(r)||!s.nodeAfter)return;const i=t[Yi("0x15")][Yi("0x13")],x=s.nodeAfter;return i[Yi("0x9")](x)&&!i.isLimit(x)&&i[Yi("0x25")](x,Yi("0x2e"))?{type:Yi("0x23"),content:Yo(e,Yi("0x21"),o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x2b")][Yi("0x1b")](Yi("0x29")),i=o[Yi("0x2f")][Yi("0x12")],x=o[Yi("0x2f")][Yi("0x2c")],a=t.model[Yi("0x13")];if(!i[Yi("0x7")](x)||!i[Yi("0x3")])return;const c=i[Yi("0x3")];if(a[Yi("0x9")](c)&&!a[Yi("0x1f")](c)&&a.checkChild(c,Yi("0x2e"))){if(!s[Yi("0x24")][Yi("0x28")](o[Yi("0x2f")],n[Yi("0x19")]))return;const t=s[Yi("0xd")].createUIElement("span",{class:"ck-suggestion-marker-split"}),i=s[Yi("0x14")].toViewPosition(x);e&&r.activeMarkers.includes(o.markerName)&&s[Yi("0xd")][Yi("0x34")]("ck-suggestion-marker--active",t),s[Yi("0xd")][Yi("0x33")](i,t),s[Yi("0x14")][Yi("0x1e")](t,o[Yi("0xb")])}}}const nx=["removeFormat","isCollapsed","afterInit","getAttributes","editor","format","*Remove all formatting*","createRangeOn","selection","document","getAttributeProperties","schema","locale","getItems","isFormatting","model","enableCommand","_descriptionFactory","change","has","plugins","TrackChangesEditing","markInlineFormat","getRanges"];var ox,sx;ox=nx,sx=433,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x1")](){const t=this[rx("0x3")];if(!t.plugins[rx("0x12")]("RemoveFormatEditing"))return;const e=t[rx("0x13")].get(rx("0x14"));e[rx("0xf")]("removeFormat",(n=>{const o=t[rx("0xe")][rx("0x8")][rx("0x7")];o[rx("0x0")]?n():t[rx("0xe")][rx("0x11")]((()=>{const n=Array.from(o[rx("0x16")]());for(const o of n)for(const n of o[rx("0xc")]())xx(n,t[rx("0xe")][rx("0xa")])&&e[rx("0x15")](t[rx("0xe")][rx("0x6")](n),{commandName:rx("0x17"),commandParams:[]})}))})),e[rx("0x10")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0x17")==n.commandName)return{type:rx("0x4"),content:Yo(t[rx("0xb")],rx("0x5"))}}))}}function xx(t,e){for(const[n]of t[rx("0x2")]()){const t=e[rx("0x9")](n);if(t&&t[rx("0xd")])return!0}return!1}const ax=["get","goToNextRestrictedEditingException","acceptSelectedSuggestions","acceptSuggestion","has","discardSuggestion","goToPreviousRestrictedEditingException","RestrictedEditingModeEditing","trackChanges","editor","enableCommand","plugins","afterInit","discardAllSuggestions"];var cx,lx;cx=ax,lx=272,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x6")](){const t=this[dx("0x3")];if(!t.plugins[dx("0xc")](dx("0x1")))return;const e=t[dx("0x5")][dx("0x8")]("TrackChangesEditing");e[dx("0x4")](dx("0x0")),e[dx("0x4")](dx("0x9"));const n=t[dx("0x5")][dx("0x8")]("RestrictedEditingModeEditing");n[dx("0x4")](dx("0x2")),n[dx("0x4")](dx("0xb")),n[dx("0x4")](dx("0xd")),n.enableCommand("acceptAllSuggestions"),n[dx("0x4")](dx("0x7")),n.enableCommand(dx("0xa")),n[dx("0x4")]("discardSelectedSuggestions")}}const gx=["get","ELEMENT_LINE_BREAK","registerElementLabel","init","bindElementToMarker","editor","toViewPosition","TrackChangesEditing","downcastDispatcher","markerName","showSuggestionHighlights","span","ck-suggestion-marker-","high","writer","markerRange","shiftEnter","test","addMarker:suggestion","getItems","plugins","name","mapper","merge","includes","model","consumable","addClass","requires","element","createPositionBefore","deletion","insert","addMarker:suggestion:deletion","activeMarkers","locale","enableCommand","editing","softBreak","addMarker:suggestion:insertion"];var mx,fx;mx=gx,fx=167,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class bx extends t.Plugin{static get[hx("0x15")](){return[nr.ShiftEnter]}[hx("0x24")](){const t=this[hx("0x26")],e=t.plugins.get(hx("0x0"));e[hx("0x1d")](hx("0x9")),t[hx("0x1e")].downcastDispatcher.on(hx("0x20"),px(t),{priority:hx("0x6")}),t[hx("0x1e")].downcastDispatcher.on(hx("0x1a"),px(t),{priority:hx("0x6")}),t.data[hx("0x1")].on(hx("0xb"),((e,n,o)=>{o.options[hx("0x3")]&&px(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[hx("0x23")](hx("0x1f"),(e=>Yo(t[hx("0x1c")],hx("0x22"),e)))}}function px(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0xd")][hx("0x21")](hx("0x0"));if(!s[hx("0x13")][hx("0xa")](o[hx("0x8")],n[hx("0xe")]))return;const i=t[hx("0x12")];for(const t of o[hx("0x8")][hx("0xc")]()){if(!t.is(hx("0x16"),hx("0x1f")))continue;const n=hx("0x18")==o[hx("0x2")].split(":")[1]?hx("0x10"):"split",x=s.writer.createUIElement(hx("0x4"),{class:hx("0x5")+n}),a=s[hx("0xf")][hx("0x27")](i[hx("0x17")](t));e&&r[hx("0x1b")][hx("0x11")](o[hx("0x2")])&&s[hx("0x7")][hx("0x14")]("ck-suggestion-marker--active",x),s[hx("0x7")][hx("0x19")](a,x),s.mapper[hx("0x25")](x,o[hx("0x2")])}}}const Ex=["registerDescriptionCallback","forceValue","markInlineFormat","value","commandName","restrictedEditingException","commands","StandardEditingModeEditing","getRanges","get","document","from","has","locale","isCollapsed","selection","FORMAT_RESTRICTED_ENABLED","change","plugins","model","enableCommand","TrackChangesEditing"];var _x,Tx;_x=Ex,Tx=202,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{afterInit(){const t=this.editor,e=t[Cx("0xf")],n=t[Cx("0x9")];if(!t.plugins[Cx("0x8")](Cx("0x3")))return;const o=t[Cx("0xe")].get(Cx("0x11")),s=Cx("0x1"),r=t[Cx("0x2")][Cx("0x5")](s);o[Cx("0x10")](s,((t,n={})=>{const i=e[Cx("0x6")][Cx("0xb")];if(i[Cx("0xa")])return void t(n);const x=void 0!==n[Cx("0x13")]?n[Cx("0x13")]:!r[Cx("0x15")];e[Cx("0xd")]((()=>{const t=Array[Cx("0x7")](i[Cx("0x4")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x14")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Cx("0x12")]((t=>{const{data:e}=t;if(e&&e[Cx("0x0")]==s)return e.commandParams[0][Cx("0x13")]?{type:"format",content:Yo(n,Cx("0xc"))}:{type:"format",content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const kx=["change","_getStyleDefinition","commandParams","forceValue","commandName","find","editor","getRanges","toLowerCase","element","getAttribute","isCollapsed","block","afterInit","TrackChangesEditing","Style","add","plugins","markInlineFormat","inline","registerDescriptionCallback","every","format","createRangeOn","style:","config","getDefinitionsForView","value","isBlock","get","enabledStyles","normalizeConfig","*Remove format:* %0","getAncestors","includes","style.definitions","from","getItems","selection","DataSchema","_getRangesWithClasses","push","model","classes","StyleUtils","style","*Format:* %0","markBlockFormat","name","styleName"];var Ax,vx;Ax=kx,vx=462,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x1")](){const t=this[Rx("0x2c")];if(!t[Rx("0x5")].has(Rx("0x3")))return;const e=t.commands[Rx("0x11")]("style"),n=t[Rx("0x5")].get(Rx("0x2")),o=t.locale,s=t[Rx("0x5")][Rx("0x11")](Rx("0x1b")),r=t[Rx("0x5")][Rx("0x11")](Rx("0x20"))[Rx("0x13")](s,t[Rx("0xd")].get(Rx("0x17")));n.enableCommand(Rx("0x21"),((o,{styleName:i})=>{const x=t[Rx("0x1e")].document[Rx("0x1a")],a=this[Rx("0x27")](i,r);if(!a)return;if(!e[Rx("0x12")][Rx("0x16")](i))return;if(x[Rx("0x31")]&&!a[Rx("0x10")])return void o({styleName:i});const c=!e[Rx("0xf")][Rx("0x16")](a.name);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x15")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o.name)){n[Rx("0x4")](o);break}}return n}(x.getSelectedBlocks(),a.modelElements);t[Rx("0x1e")][Rx("0x26")]((()=>{for(const t of e)n[Rx("0x23")](t,{commandName:Rx("0x21"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0xc")+i})}))}else{let e=Array.from(x[Rx("0x2d")]());if(!c){const n=Array[Rx("0x18")](s[Rx("0xe")](a[Rx("0x2f")],!1))[0][Rx("0x1e")],o=[];for(const s of e){const e=this[Rx("0x1c")](t[Rx("0x1e")],s,a[Rx("0x1f")],n);o[Rx("0x1d")](...e)}e=o}t.model[Rx("0x26")]((()=>{for(const t of e)n[Rx("0x6")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[Rx("0x8")]((t=>{const{data:e}=t;if(e&&Rx("0x21")===e[Rx("0x2a")])return e[Rx("0x28")][0][Rx("0x29")]?{type:Rx("0xa"),content:Yo(o,Rx("0x22"),e[Rx("0x28")][0][Rx("0x25")].toLowerCase())}:{type:"format",content:Yo(o,Rx("0x14"),e[Rx("0x28")][0][Rx("0x25")][Rx("0x2e")]())}}))}[Rx("0x27")](t,e){let n=e[Rx("0x0")].find((e=>e[Rx("0x24")]===t));return n||(n=e[Rx("0x7")][Rx("0x2b")]((e=>e[Rx("0x24")]===t))),n}[Rx("0x1c")](t,e,n,o){const s=[];for(const r of e[Rx("0x19")]()){const e=r[Rx("0x30")](o);e&&n[Rx("0x9")]((t=>e[Rx("0x1f")][Rx("0x16")](t)))&&s.push(t[Rx("0xb")](r))}return s}}const Ix=["options","type","TrackChangesEditing","markMultiRangeDeletion","document","oldRange","insertTableColumnLeft","join","discard","cell","addClass","classes","_getSuggestionCoords","table","has","tableRow","nodeAfter","first","name","_descriptionFactory","detach","maxColumn","removeClass","every","TableUtils","map","above","min","some","plugins","locale","fromRange","includes","add","model","afterInit","length","addMarker:suggestion","*Insert:* %0","insertTableColumnRight","tableCell","startsWith","suggestion","getRanges","_tablePostFixingSubtypes","$textProxy","toLowerCase","getChanges","ELEMENT_TABLE_COLUMN","ELEMENT_TABLE_ROW_WITH_TEXT","last","max","enableCommand","tablePaste","_suggestionFactory","_getCoordsForCells","getSelectionAffectedTableCells","push","showSuggestionHighlights","isTouching","hasAttribute","*Remove:* %0","change","_acceptFormatSuggestionCallbackFactory","colspan","from","values","removeTableRow","markMultiRangeInsertion","filter","ELEMENT_TABLE_WITH_TEXT","start","selectTableColumn","setSelection","deletion","MIN_SAFE_INTEGER","isArray","span","rootName","addRange","forceValue","end","editor","get","_setupColumnsRowsFixing","position","selectTableRow","insertTable","order","item","getColumnIndexes","isInContent","tableColumn","highest","$graveyard","_tableSuggestions","element","createTableWalker","_splitMarkerName","data","refresh","maxRow","ELEMENT_TABLE","removeTableColumn","createRangeIn","insertion","registerCustomCallback","getItems","getSuggestion","low","getCellLocation","substr","ELEMENT_TABLE_ROW","enqueueChange","differ","findAncestor","registerElementLabel","root","registerDescriptionCallback","accept","selection","createRangeOn","mapper","getFirstRange","ELEMENT_TABLE_COLUMN_WITH_TEXT","getAttribute","left","commands","subType","change:data","getContainedElement","execute","writer","minColumn"];var Lx,Nx;Lx=Ix,Nx=396,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x32")]=["tableRow",Mx("0x62")],this._tableSuggestions=new Set}[Mx("0x29")](){const t=this[Mx("0x58")],e=t[Mx("0x28")].document.selection;if(!t[Mx("0x23")][Mx("0x14")]("TableEditing"))return;const n=t[Mx("0x24")],o=t[Mx("0x23")][Mx("0x59")](Mx("0x8")),s=t[Mx("0x23")][Mx("0x59")](Mx("0x1e"));o._descriptionFactory[Mx("0x7a")]("table",(t=>Yo(n,Mx("0x6c"),t))),this[Mx("0x5a")](),o[Mx("0x3a")](Mx("0x5d")),o[Mx("0x3a")](Mx("0x5c")),o[Mx("0x3a")](Mx("0x4e"));for(const n of["insertTableRowAbove","insertTableRowBelow"]){const r=t[Mx("0x85")][Mx("0x59")](n);o[Mx("0x3a")](n,(n=>{t[Mx("0x28")][Mx("0x44")]((t=>{n();const i=Mx("0x20")===r[Mx("0x5e")],x=s.getSelectionAffectedTableCells(e),a=s.getRowIndexes(x),c=i?a[Mx("0x17")]-1:a[Mx("0x38")]+1,l=x[0][Mx("0x79")](Mx("0x13")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array.from(d).map((e=>t.createRangeOn(e[Mx("0xf")])));o[Mx("0x4a")](u,"tableRow")}))}))}for(const n of[Mx("0xc"),Mx("0x2d")]){const r=t.commands[Mx("0x59")](n);o.enableCommand(n,(n=>{t[Mx("0x28")].change((t=>{n();const i=Mx("0x84")===r[Mx("0x5e")],x=s[Mx("0x3e")](e),a=s[Mx("0x60")](x),c=i?a.first-1:a[Mx("0x38")]+1,l=x[0][Mx("0x79")]("table"),d=s[Mx("0x67")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x47")](d)[Mx("0x1f")]((e=>t[Mx("0x7f")](e[Mx("0xf")])));o.markMultiRangeInsertion(u,"tableColumn")}))}))}for(const n of[Mx("0x49"),Mx("0x6d")]){const r=n[Mx("0x75")](11),i=r.toLowerCase(),x=i[Mx("0x75")](0,3)+Mx("0x53"),a=Mx("0x13")+r,c=Mx("0x21")+r,l=Mx("0x39")+r;o.enableCommand(n,(()=>{t[Mx("0x28")][Mx("0x44")]((t=>{const r=s[Mx("0x3e")](e),d=r[0][Mx("0x79")]("table");let u;if(Mx("0x49")==n){const t=s.getRowIndexes(r);u={startRow:t[Mx("0x17")],endRow:t[Mx("0x38")],includeAllSlots:!0}}else{const t=s[Mx("0x60")](r);u={startColumn:t[Mx("0x17")],endColumn:t.last,includeAllSlots:!0}}const g=s[Mx("0x67")](d,u),m=Array[Mx("0x47")](g)[Mx("0x1f")]((({cell:t})=>t)),f=Ox(m[Mx("0x4b")]((t=>t[Mx("0x42")](x)))),h=Ox(m[Mx("0x4b")]((t=>!t[Mx("0x42")](x))))[Mx("0x1f")]((e=>t[Mx("0x7f")](e))),b=o[Mx("0x9")](h,a);if(b&&(Mx("0x15")==b[Mx("0x0")]||Mx("0x62")==b[Mx("0x0")])){const e=this[Mx("0x12")](b);for(const n of f){const o=t.createRangeOn(n),r=s.getCellLocation(n),a=n[Mx("0x83")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&b[Mx("0x55")](o)}}}))}))}function r(n){const o=Array.from(e[Mx("0x31")]())[Mx("0x1f")]((t=>i.LiveRange[Mx("0x25")](t)));t[Mx("0x28")][Mx("0x44")]((e=>{const s=e.batch;n=n[Mx("0x4b")]((t=>Mx("0x64")!=t[Mx("0x7b")][Mx("0x54")])),e.setSelection(n),t[Mx("0x85")][Mx("0x59")](Mx("0x49"))[Mx("0x6a")](),t.execute(Mx("0x49"),{forceDefaultExecution:!0}),t[Mx("0x28")][Mx("0x77")]((()=>{t[Mx("0x28")][Mx("0x77")](s,(t=>{const e=o[Mx("0x4b")]((t=>"$graveyard"!=t.root[Mx("0x54")]));e[Mx("0x2a")]>0&&t[Mx("0x4f")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Mx("0x28")][Mx("0x44")]((o=>{const s=Array[Mx("0x47")](e.getRanges()).map((t=>i.LiveRange[Mx("0x25")](t))),r=[];for(const t of n)for(const e of t[Mx("0x71")]({shallow:!0}))r.push(e);for(const e of r)Mx("0x64")!=e.root[Mx("0x54")]&&(o[Mx("0x4f")](o.createPositionAt(e,0)),t[Mx("0x85")][Mx("0x59")]("removeTableColumn")[Mx("0x6a")](),t[Mx("0x3")](Mx("0x6d"),{forceDefaultExecution:!0}));const x=s.filter((t=>Mx("0x64")!=t[Mx("0x7b")][Mx("0x54")]));x.length>0&&o.setSelection(x);for(const t of s)t[Mx("0x1a")]()}))}function c(t,e){return e[Mx("0x1d")]((e=>t[Mx("0x22")]((t=>t.end.isEqual(e.start)||e[Mx("0x57")].isEqual(t[Mx("0x4d")])))))}function l(t,e){return t[Mx("0x22")]((t=>e[Mx("0x22")]((e=>t[Mx("0x57")][Mx("0x41")](e[Mx("0x4d")])))))}t[Mx("0x69")].downcastDispatcher.on(Mx("0x2b"),((t,e,n)=>{if(!n[Mx("0x6")][Mx("0x40")])return;const o=e[Mx("0x5f")];if(!o)return;const s=n[Mx("0x80")].toViewElement(o);function r(t){return Array[Mx("0x52")](t)?t:[t]}s&&Mx("0x2e")===o.name&&(0,x.setHighlightHandling)(s,n[Mx("0x4")],((t,e,n)=>n[Mx("0x10")](r(e.classes),t)),((t,e,n)=>n[Mx("0x1c")](r(e[Mx("0x11")]),t)))}),{priority:Mx("0x63")}),o._descriptionFactory.registerDescriptionCallback((t=>{if(Mx("0x6f")!=t.type&&Mx("0x50")!=t[Mx("0x7")])return;const e=t[Mx("0x2")]();if(null!=e&&e.is(Mx("0x66"),Mx("0x13"))){if(Mx("0x6f")==t.type){const e=t[Mx("0x71")]()[Mx("0x4b")]((t=>t.is(Mx("0x33"))))[Mx("0x1f")]((t=>t[Mx("0x69")]));if(e[Mx("0x2a")])return{type:"insertion",content:Yo(n,Mx("0x2c"),Yo(n,Mx("0x4c"),'"'+e[Mx("0xd")](" ")+'"'))}}if(Mx("0x50")==t[Mx("0x7")]){const e=t[Mx("0x71")]()[Mx("0x4b")]((t=>t.is(Mx("0x33"))))[Mx("0x1f")]((t=>t[Mx("0x69")]));if(e[Mx("0x2a")])return{type:Mx("0x50"),content:Yo(n,Mx("0x43"),Yo(n,Mx("0x4c"),'"'+e[Mx("0xd")](" ")+'"'))}}}})),o[Mx("0x19")][Mx("0x7c")]((t=>{if(Mx("0x15")==t[Mx("0x0")]){const e=t[Mx("0x71")]().filter((t=>t.is(Mx("0x33"))))[Mx("0x1f")]((t=>t[Mx("0x69")])),o=this[Mx("0x12")](t),s=o[Mx("0x6b")]-o.minRow+1;if(Mx("0x6f")==t[Mx("0x7")])return e[Mx("0x2a")]?{type:Mx("0x6f"),content:Yo(n,Mx("0x2c"),Yo(n,Mx("0x37"),[s,'"'+e[Mx("0xd")](" ")+'"']))}:{type:Mx("0x6f"),content:Yo(n,Mx("0x2c"),Yo(n,Mx("0x76"),s))};if(Mx("0x50")==t[Mx("0x7")])return e.length?{type:Mx("0x50"),content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x37"),[s,'"'+e[Mx("0xd")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x43"),Yo(n,Mx("0x76"),s))}}if(Mx("0x62")==t[Mx("0x0")]){const e=t[Mx("0x71")]()[Mx("0x4b")]((t=>t.is(Mx("0x33"))))[Mx("0x1f")]((t=>t.data)),o=this[Mx("0x12")](t),s=o[Mx("0x1b")]-o[Mx("0x5")]+1;if(Mx("0x6f")==t[Mx("0x7")])return e[Mx("0x2a")]?{type:Mx("0x6f"),content:Yo(n,Mx("0x2c"),Yo(n,Mx("0x82"),[s,'"'+e[Mx("0xd")](" ")+'"']))}:{type:Mx("0x6f"),content:Yo(n,Mx("0x2c"),Yo(n,Mx("0x36"),s))};if(Mx("0x50")==t[Mx("0x7")])return e[Mx("0x2a")]?{type:Mx("0x50"),content:Yo(n,Mx("0x43"),Yo(n,Mx("0x82"),[s,'"'+e[Mx("0xd")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x43"),Yo(n,Mx("0x36"),s))}}})),o[Mx("0x3c")][Mx("0x70")](Mx("0x6f"),"tableRow",Mx("0xe"),r),o[Mx("0x3c")][Mx("0x70")](Mx("0x50"),Mx("0x15"),"accept",r),o[Mx("0x3c")][Mx("0x70")]("insertion","tableColumn","discard",a),o[Mx("0x3c")][Mx("0x70")]("deletion",Mx("0x62"),Mx("0x7d"),a),o[Mx("0x3c")][Mx("0x70")](Mx("0x6f"),"tableColumn",Mx("0xd"),c),o[Mx("0x3c")][Mx("0x70")](Mx("0x50"),Mx("0x62"),"join",c),o[Mx("0x3c")].registerCustomCallback(Mx("0x6f"),"tableRow",Mx("0xd"),l),o[Mx("0x3c")][Mx("0x70")]("deletion",Mx("0x15"),Mx("0xd"),l)}[Mx("0x45")](){const t=this[Mx("0x58")],e=t[Mx("0x28")][Mx("0xa")][Mx("0x7e")];return(n,o)=>{t[Mx("0x28")][Mx("0x44")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x57")].nodeBefore;x&&x[0]&&!1===x[0][Mx("0x56")]&&(a=n[0][Mx("0x4d")][Mx("0x16")]);const c=s[Mx("0x6e")](a);if(Mx("0x64")==c.root.rootName)return;const l=Array[Mx("0x47")](e[Mx("0x31")]())[Mx("0x1f")]((t=>i.LiveRange[Mx("0x25")](t)));s.setSelection(c),t[Mx("0x85")][Mx("0x59")](r)[Mx("0x6a")](),x[Mx("0x3f")]({forceDefaultExecution:!0}),t[Mx("0x3")](r,...x);const d=l[Mx("0x4b")]((t=>"$graveyard"!=t.root[Mx("0x54")]));d[Mx("0x2a")]>0&&s[Mx("0x4f")](d);for(const t of l)t[Mx("0x1a")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x58")][Mx("0x23")][Mx("0x59")](Mx("0x1e"));let n=Number.MAX_SAFE_INTEGER,o=Number[Mx("0x51")],s=Number.MAX_SAFE_INTEGER,r=Number[Mx("0x51")];for(const i of t){if("$graveyard"==i[Mx("0x7b")][Mx("0x54")])continue;const{row:t,column:x}=e[Mx("0x74")](i),a=i[Mx("0x42")]("rowspan")?i[Mx("0x83")]("rowspan")-1:0,c=i[Mx("0x42")](Mx("0x46"))?i.getAttribute(Mx("0x46"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this.editor,e=t.plugins.get(Mx("0x8")),n=t.plugins[Mx("0x59")](Mx("0x1e"));t.model[Mx("0xa")].on(Mx("0x1"),(()=>{const n=Array[Mx("0x47")](t[Mx("0x28")][Mx("0xa")][Mx("0x78")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x68")](t);if(Mx("0x30")!=n)continue;if(null!=o[Mx("0xb")])continue;const i=e[Mx("0x72")](s);this[Mx("0x32")][Mx("0x26")](r)&&this[Mx("0x65")][Mx("0x27")](i)}}),{priority:Mx("0x73")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Mx("0x79")](Mx("0x13")),i=n[Mx("0x74")](t);for(const e of this[Mx("0x65")]){const n=e.subType,x=n[Mx("0x2f")](Mx("0x3b")),a=n[Mx("0x75")](x?10:5),c=a[Mx("0x34")](),l=c[Mx("0x75")](0,3)+Mx("0x53"),d=Mx("0x21")+a,u=Mx("0x39")+a;if(!e[Mx("0x61")])continue;if(r!=e[Mx("0x81")]()[Mx("0x4d")][Mx("0x79")](Mx("0x13")))continue;if(e.isIntersectingWithRange(s))continue;const g=t.hasAttribute(l)?t[Mx("0x83")](l)-1:0,m=this[Mx("0x12")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t[Mx("0x28")][Mx("0xa")].registerPostFixer((e=>{let n=!1;for(const s of t.model.document[Mx("0x78")][Mx("0x35")]())if("insert"==s.type)if(Mx("0x15")==s[Mx("0x18")])for(const t of s[Mx("0x5b")][Mx("0x16")].getChildren())n=n||o(t,e);else Mx("0x2e")==s[Mx("0x18")]&&(n=n||o(s[Mx("0x5b")][Mx("0x16")],e));return n}))}[Mx("0x12")](t){return this[Mx("0x3d")](t[Mx("0x31")]().map((t=>t[Mx("0x4d")][Mx("0x16")])))}}function Ox(t){return Array[Mx("0x47")](new Set(t)[Mx("0x48")]())}const Fx=["isInContent","has","cell","mergeTableCellLeft","mergeTableCellDown","mergeTableCellRight","_descriptionFactory","tableCell","isEnabled","push","findAncestor","getSelectionAffectedTableCells","accept","formatBlock","markBlockFormat","add","horizontally","length","setSelection","editor","author","get","type","document","_suggestionFactory","*Split cell:* horizontally","filter","createTableWalker","rootName","*Merge cells*","createRangeOn","detach","subType","markMultiRangeBlockFormat","getRanges","set:isEnabled","TableEditing","model","getFirstPosition","registerCustomCallback","mergeTableCellUp","plugins","getCellLocation","insertion","TableUtils","enableCommand","containsRange","getSuggestions","forceDefaultExecution","locale","change","return","format","selection","map","_tablePostFixingSubtypes","TrackChangesEditing","commandName","_isForcedDefaultExecutionBlock","commands","splitTableCellVertically","mergeTableCells","find","trackChanges","*Split cell:* vertically","splitTableCellHorizontally","value","_areMergableCells","element","fromRange","deletion","registerDescriptionCallback","direction","from","stop","table","refresh","size","requires","getAncestors"];var Px,Dx;Px=Fx,Dx=186,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x34")](){return[wx]}afterInit(){const t=this[Bx("0x49")],e=t[Bx("0xb")][Bx("0x4d")][Bx("0x1b")],n=t[Bx("0x17")];if(!t[Bx("0xf")][Bx("0x37")](Bx("0xa")))return;const o=t[Bx("0xf")][Bx("0x4b")]("TrackChangesEditing"),s=t[Bx("0xf")].get("TableUtils"),r=t[Bx("0xf")][Bx("0x4b")](wx);r[Bx("0x1d")][Bx("0x3f")](Bx("0x23")),o.enableCommand("mergeTableCells",(()=>{const e=s[Bx("0x41")](t[Bx("0xb")][Bx("0x4d")][Bx("0x1b")]);t[Bx("0xb")][Bx("0x18")]((()=>{o[Bx("0x7")](e,{commandName:Bx("0x23"),commandParams:[]},[],"mergeTableCells")}))})),t[Bx("0x21")][Bx("0x4b")](Bx("0x23")).on("execute",((e,n)=>{t[Bx("0x21")][Bx("0x4b")](Bx("0x25")).value&&(n[Bx("0x47")]>0&&n[n[Bx("0x47")]-1]&&n[n.length-1][Bx("0x16")]||o[Bx("0x20")]||this._areSelectedCellsMergable()||e.stop())}),{priority:"highest"});for(const e of[Bx("0xe"),Bx("0x3b"),"mergeTableCellDown",Bx("0x39")]){const n=t[Bx("0x21")][Bx("0x4b")](e);o[Bx("0x13")](e,(()=>{const e=t[Bx("0xb")][Bx("0x4d")][Bx("0x1b")][Bx("0xc")]()[Bx("0x35")]()[Bx("0x24")]((t=>t.is("element","tableCell"))),s=n[Bx("0x28")];t[Bx("0xb")][Bx("0x18")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:Bx("0x23"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Bx("0x22"),Bx("0x27")]){const n=t[Bx("0x21")][Bx("0x4b")](e);o.enableCommand(e,(()=>{const r=s.getSelectionAffectedTableCells(t[Bx("0xb")][Bx("0x4d")][Bx("0x1b")])[0],i=r[Bx("0x40")](Bx("0x31")),{column:x,row:a}=s[Bx("0x10")](r);let c=[];if(Bx("0x46")==n[Bx("0x2e")]){const t=s[Bx("0x1")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x1c")]((t=>t[Bx("0x38")]))}else{const t=s[Bx("0x1")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x2f")](t)[Bx("0x1c")]((t=>t[Bx("0x38")]))}t[Bx("0xb")].change((t=>{o[Bx("0x44")](t[Bx("0x4")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3c")][Bx("0x2d")]((t=>{const{data:e}=t;if(e)return Bx("0x23")==e[Bx("0x1f")]?{type:"format",content:Yo(n,Bx("0x3"))}:void 0})),o[Bx("0x3c")][Bx("0x2d")]((t=>{const{data:e}=t;if(e)return Bx("0x22")==e[Bx("0x1f")]?{type:"format",content:Yo(n,Bx("0x26"))}:Bx("0x27")==e.commandName?{type:Bx("0x1a"),content:Yo(n,Bx("0x4f"))}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of[Bx("0xe"),Bx("0x3b"),Bx("0x3a"),"mergeTableCellLeft"])o[Bx("0x4e")][Bx("0xd")](Bx("0x43"),t,Bx("0x42"),x);for(const t of[Bx("0x22"),"splitTableCellHorizontally"])o[Bx("0x4e")][Bx("0xd")]("formatBlock",t,Bx("0x42"),x);o[Bx("0x4e")][Bx("0xd")](Bx("0x43"),"mergeTableCells",Bx("0x42"),(n=>{t[Bx("0xb")][Bx("0x18")]((o=>{const s=Array[Bx("0x2f")](e[Bx("0x8")]())[Bx("0x1c")]((t=>i.LiveRange[Bx("0x2b")](t)));o[Bx("0x48")](n),t[Bx("0x21")][Bx("0x4b")](Bx("0x23"))[Bx("0x32")](),t.execute(Bx("0x23"),{forceDefaultExecution:!0});const r=s[Bx("0x0")]((t=>"$graveyard"!=t.root[Bx("0x2")]));r.length>0&&o[Bx("0x48")](r);for(const t of s)t[Bx("0x5")]()}))}));for(const e of["mergeTableCellUp","mergeTableCellDown",Bx("0x39"),Bx("0x3b")]){const n=t[Bx("0x21")].get(e);n.on(Bx("0x9"),((e,o,s)=>{if(s){const o=t[Bx("0xb")][Bx("0x4d")][Bx("0x1b")][Bx("0xc")]()[Bx("0x35")]()[Bx("0x24")]((t=>t.is(Bx("0x2a"),Bx("0x3d"))));this[Bx("0x29")](n.value,o)||(e[Bx("0x19")]=!1,e[Bx("0x30")]())}}),{priority:"low"})}}_areSelectedCellsMergable(){const t=this.editor.commands.get(Bx("0x23")),e=this[Bx("0x49")][Bx("0xf")][Bx("0x4b")](Bx("0x12"));if(!t[Bx("0x3e")])return!1;const n=e[Bx("0x41")](this.editor[Bx("0xb")][Bx("0x4d")][Bx("0x1b")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x29")](t,e))return!1;return!0}[Bx("0x29")](t,e){const n=this[Bx("0x49")].plugins[Bx("0x4b")](Bx("0x1e")),o=this[Bx("0x49")][Bx("0xb")][Bx("0x4")](t),s=this[Bx("0x49")][Bx("0xb")][Bx("0x4")](e),r=new Set,i=new Set;for(const t of n[Bx("0x15")]())if((Bx("0x11")==t[Bx("0x4c")]||Bx("0x2c")==t.type||Bx("0x23")==t[Bx("0x6")])&&t[Bx("0x36")])for(const e of t.getRanges())e[Bx("0x14")](o,!0)&&r[Bx("0x45")](t.type+":"+t[Bx("0x4a")].id),e[Bx("0x14")](s,!0)&&i[Bx("0x45")](t[Bx("0x4c")]+":"+t.author.id);if(r[Bx("0x33")]!=i[Bx("0x33")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ux=["index","nodeAfter","getColumnIndexes","data-suggestion","_suggestionFactory","registerDescriptionCallback","removeMarker:suggestion","first","locale","consumable","writer","end","formatBlock","getChild","findAncestor","headingRows","setTableRowHeader","removeAttribute","options","_descriptionFactory","plugins","setTableColumnHeader","editing","ck-suggestion-marker--active","includes","getSuggestion","getAttribute","childCount","commandName","selection","_splitMarkerName","removeClass","markerName","value","headingColumns","addMarker:suggestion","TableUtils","commandParams","showSuggestionHighlights","createPositionAfter","getCellLocation","TableEditing","ck-suggestion-marker-","*Format:* %0","format","setAttribute","highest","markBlockFormat","data","markerRange","markerNameToElements","afterInit","createRange","createPositionBefore","FORMAT_HEADER_ROW","model","parent","has","mapper","commands","registerCustomCallback","change","unbindElementFromMarkerName","_acceptFormatSuggestionCallbackFactory","document","table","addClass","downcastDispatcher","accept","getRowIndexes","enableCommand","FORMAT_HEADER_COLUMN","start","get","forceValue","createTableWalker","cell","FORMAT_REGULAR_ROW","getSelectionAffectedTableCells"];var Gx,Hx;Gx=Ux,Hx=277,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Vx extends t.Plugin{static get requires(){return[wx]}[zx("0xb")](){const t=this.editor;if(!t[zx("0x3b")][zx("0x11")](zx("0x1")))return;const e=t[zx("0x2f")],n=t[zx("0x3b")][zx("0x21")]("TrackChangesEditing"),o=t[zx("0x3b")][zx("0x21")]("TableUtils"),s=t[zx("0x3b")][zx("0x21")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x45")](r[zx("0x47")]),c=n[zx("0x40")](a);if(!c[zx("0x8")]||zx("0x3c")!=c[zx("0x8")][zx("0x43")])return;if(r.item)return void s.stop();if(!i[zx("0x30")].consume(r[zx("0x9")],s.name))return;const l=r.markerRange[zx("0x20")][zx("0x28")],d=r[zx("0x9")][zx("0x32")].nodeBefore,u=l.parent[zx("0x10")],{column:g}=o[zx("0x0")](l),{column:m}=o[zx("0x0")](d);for(let s=g;s<=m;s++){const c=o[zx("0x23")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[zx("0x12")].toViewElement(s);i.writer[zx("0x1a")]("ck-suggestion-marker-"+x,c),e&&i.writer[zx("0x5")](zx("0x2a"),a,c),i[zx("0x12")].bindElementToMarker(c,r[zx("0x47")]),t&&(n.activeMarkers[zx("0x3f")](r[zx("0x47")])?i[zx("0x31")].addClass(zx("0x3e"),c):i[zx("0x31")][zx("0x46")](zx("0x3e"),c))}}}}n[zx("0x1e")](zx("0x37"),((e,s)=>{const r=o[zx("0x26")](t[zx("0xf")].document[zx("0x44")]),i=o[zx("0x1d")](r),x=r[0].findAncestor(zx("0x19")),a=x[zx("0x41")](zx("0x36"))||0,c=s&&null!==s[zx("0x22")]?s.forceValue:!t[zx("0x13")][zx("0x21")]("setTableRowHeader").value,l=c?i.last:i[zx("0x2e")],d=x.getChild(l);let u;if(c){const e=x.getChild(a);if(d.index<e[zx("0x27")])return;u=t[zx("0xf")][zx("0xc")](t[zx("0xf")][zx("0xd")](e.getChild(0)),t[zx("0xf")][zx("0x4e")](d[zx("0x34")](d[zx("0x42")]-1)))}else{const e=x[zx("0x34")](a-1);if(!e)return;u=t[zx("0xf")].createRange(t.model[zx("0xd")](d[zx("0x34")](0)),t[zx("0xf")].createPositionAfter(e[zx("0x34")](e[zx("0x42")]-1)))}t.model[zx("0x15")]((()=>{n.markBlockFormat(u,{commandName:zx("0x37"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[zx("0x1e")](zx("0x3c"),((e,o)=>{const s=t[zx("0x3b")][zx("0x21")](zx("0x4b")),r=s.getSelectionAffectedTableCells(t.model[zx("0x18")][zx("0x44")]),i=s[zx("0x29")](r),x=r[0][zx("0x35")](zx("0x19")),a=x[zx("0x41")](zx("0x49"))||0,c=o&&null!==o.forceValue?o[zx("0x22")]:!t[zx("0x13")][zx("0x21")](zx("0x3c"))[zx("0x48")];let l;const d=x[zx("0x34")](0),u=c?i.last:i[zx("0x2e")],g=s[zx("0x23")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][zx("0x24")];if(c){const e=d[zx("0x34")](a);if(m.isBefore(e))return;l=t[zx("0xf")][zx("0xc")](t[zx("0xf")][zx("0xd")](e),t.model.createPositionAfter(m))}else{const e=d.getChild(a-1);if(!e)return;l=t[zx("0xf")].createRange(t[zx("0xf")][zx("0xd")](m),t.model[zx("0x4e")](e))}t.model[zx("0x15")]((()=>{n[zx("0x7")](l,{commandName:zx("0x3c"),commandParams:[{forceValue:c}]},[],zx("0x3c"))}))})),t[zx("0x3d")][zx("0x1b")].on("addMarker:suggestion",r(),{priority:zx("0x6")}),t[zx("0x8")][zx("0x1b")].on(zx("0x4a"),((t,e,n)=>{n[zx("0x39")][zx("0x4d")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x6")}),t.editing[zx("0x1b")].on(zx("0x2d"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x47")]),i=n[zx("0x40")](r);if(!i[zx("0x8")]||zx("0x3c")!=i[zx("0x8")][zx("0x43")])return;const x=o[zx("0x12")][zx("0xa")](e[zx("0x47")]);if(x)for(const t of x)o[zx("0x31")][zx("0x46")](zx("0x2")+s,t),o.writer.removeClass("ck-suggestion-marker--active",t),o[zx("0x31")][zx("0x38")](zx("0x2a"),t),o[zx("0x12")][zx("0x16")](t,e.markerName)}),{priority:zx("0x6")}),n[zx("0x3a")][zx("0x2c")]((t=>{const{data:n}=t;if(n){if(zx("0x37")==n[zx("0x43")]){const t=n[zx("0x4c")][0][zx("0x22")];return o(Yo(e,zx(t?"0xe":"0x25")))}if("setTableColumnHeader"==n[zx("0x43")]){const t=n[zx("0x4c")][0].forceValue;return o(Yo(e,t?zx("0x1f"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:zx("0x4"),content:Yo(e,zx("0x3"),t)}}}));const i=s[zx("0x17")]();n[zx("0x2b")].registerCustomCallback(zx("0x33"),zx("0x37"),zx("0x1c"),i),n[zx("0x2b")][zx("0x14")](zx("0x33"),zx("0x3c"),zx("0x1c"),i)}}const Wx=["getRows","tableCellBorderWidth","removeRows","conversion","high","cells","getRowIndexes","plugins","editor","markMultiRangeInsertion","getContainedElement","insert","insertColumns","document","first","suggestion","deletionRanges","registerCustomCallback","showSuggestionHighlights","markerName","setAttributes","tableCellSuggestion","tablePasteCell","locale","columnInsertionIndexes","_suggestionFactory","rowInsertionIndexes","getSelectionAffectedTableCells","markerToHighlight","redo","change","length","createTableWalker","rootName","position","set","view","registerDescriptionCallback","keys","tablePasteRow","getChanges","find","findAncestor","TrackChangesEditing","element","tablePaste","setAttribute","root","_descriptionFactory","tableCellBorderStyle","content","value","startsWith","markMultiRangeDeletion","has","row","type","getSuggestions","tableCellPadding","isEmpty","createRangeIn","for","suggestionUnloaded","trackChanges","containsRange","columns","isEqual","tableCellHorizontalAlignment","suggestionLoaded","unwrap","model","getAllAdjacentSuggestions","column","includes","getTableIfOnlyTableInContent","_tablePostFixingSubtypes","end","*Replace table cells*","markers","removeColumns","from","entries","requires","nodeAfter","commands","fromEntries","getSuggestionCallback","createElement","getSuggestion","paragraph","wrap","push","tableCell","accept","editing","getChangedMarkers","suggestion:formatBlock:tablePasteCell","discard","_replaceTableSlotCell","tableCellVerticalAlignment","filter","oldRange","ck-suggestion-marker--active","start","insertContent","getShiftedBy","removeMarker","getItems","tablePasteChainId","endColumn","table","TableClipboard","cell","add","previousSibling","get","differ","nextSibling","formatBlock","remove","getColumns","createRangeOn","getAttributes","join","dataDowncast","tableCellBackgroundColor","forceDefaultExecution","getRange","attributes","insertion","ck-suggestion-marker-insertion","documentSelection","Users","map","insertRows","suggestion-td","markerAttributes","move","removeMarkers","stop","rows","clipboardOutput","getMarkers","newRange","getChildren","elementToElement","ck-suggestion-marker","insertionRanges","activeMarkers","return","subType","last","listenTo","name","reduce","author","fill","registerPostFixer","deletion","low","selection","getChild","isInContent","options"];var Kx,qx;Kx=Wx,qx=204,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const $x=function(t,e){return Wx[t-=0]},Xx=[$x("0x7d"),"tableCellBorderColor",$x("0x9"),$x("0x1b"),$x("0x3b"),$x("0x55"),$x("0x12")],Jx=Object[$x("0x2d")](Xx[$x("0x5d")]((t=>[t,null])));class Qx extends t.Plugin{static get[$x("0x2a")](){return[wx]}afterInit(){const t=this[$x("0x84")];if(!t[$x("0x83")][$x("0xe")]($x("0x47")))return;const n=t[$x("0x83")][$x("0x4b")]($x("0x3")),o=t.plugins[$x("0x4b")]("TableUtils"),s=t.plugins[$x("0x4b")](wx),r=t[$x("0x83")][$x("0x4b")]("TableClipboard");s[$x("0x23")][$x("0x33")]($x("0xa3"),"tablePasteColumn"),t.model.schema.register("tableCellSuggestion",{allowIn:$x("0x34"),allowContentOf:$x("0x34"),isLimit:!0}),t[$x("0x7f")][$x("0x69")]({model:$x("0x91"),view:$x("0x5f")});let i=null;t[$x("0x1e")].on($x("0x40"),((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[$x("0x56")]||n._isForcedDefaultExecutionBlock||this[$x("0x84")][$x("0x2c")].get($x("0x17"))[$x("0xb")]&&function(t,e,n,o,s){if(e&&!e.is($x("0x5b")))return!1;const r=s[$x("0x22")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[$x("0x97")](n[$x("0x89")][$x("0x78")]);if(!i[$x("0x9b")])return!1;const x=i[0][$x("0x2")]($x("0x46")),a=o[$x("0x82")](i),c=o.getColumnIndexes(i),l={startRow:a[$x("0x8a")],endRow:a[$x("0x6f")],startColumn:c[$x("0x8a")],endColumn:c.last};return 1==i[$x("0x9b")]&&(l.endRow+=o[$x("0x7c")](r)-1,l[$x("0x45")]+=o[$x("0x50")](r)-1),Yx(x,l,o)}(a,c,t[$x("0x1e")],o,r)&&(s[$x("0x63")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[$x("0x1e")][$x("0x9a")]((()=>{t[$x("0x1e")][$x("0x40")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[$x("0x85")](s,$x("0xa3"),{tablePasteChainId:o}),r.length&&n.markMultiRangeInsertion(r,"tablePasteColumn",{tablePasteChainId:o}),a.length&&n[$x("0x85")](a,$x("0x5"),{tablePasteChainId:o,skipNestingCheck:!0}),c[$x("0x9b")]&&n[$x("0xd")](c,$x("0x5"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l[$x("0x5d")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],$x("0x92"),{tablePasteChainId:o});if(d){const e=d[$x("0x66")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[$x("0x1e")].createRangeOn(o),i=e[$x("0x1")]((t=>t[$x("0x57")]()[$x("0x1a")](r)));i&&n[$x("0x33")]([i[$x("0x71")],s])}n[$x("0x9b")]&&d[$x("0x6")]($x("0x60"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[$x("0x80")]+10}),t[$x("0x83")][$x("0x4b")]("TableClipboard").on($x("0x3a"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[$x("0x63")]();const r=n[$x("0x48")],x=o,a=Zx(r),c=Zx(x);t[$x("0x6d")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[$x("0x79")](0));for(const t of Array[$x("0x28")](x[$x("0x68")]()))s[$x("0x87")](t,r,$x("0x24"));const t=i.rowInsertionIndexes[$x("0x21")](n[$x("0xf")]),e=i[$x("0x94")][$x("0x21")](n[$x("0x20")]);t||e||(l=s[$x("0x14")](r))}else c&&!a&&(d=s[$x("0x14")](r));else{const t=s[$x("0x2f")]($x("0x91")),e=s[$x("0x2f")]($x("0x91"));s[$x("0x32")](s[$x("0x14")](r),e),s[$x("0x87")](t,r,0);for(const e of Array.from(x.getChildren()))s[$x("0x87")](e,t,"end");l=s[$x("0x51")](t),d=s.createRangeOn(e)}const u=Array.from(x[$x("0x52")]())[$x("0x3c")]((([t])=>Xx[$x("0x21")](t)));i[$x("0x81")][$x("0x33")]({element:r,attributes:u[$x("0x9b")]?Object[$x("0x2d")](u):null}),l&&i[$x("0x6b")][$x("0x33")](l),d&&i[$x("0x8c")][$x("0x33")](d)}),{priority:"high"}),o.on($x("0x88"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[$x("0x19")]||1;i[$x("0x94")]=new Array(a).fill(x)[$x("0x5d")](((t,e)=>t+e));for(const{cell:e}of o[$x("0x9c")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t[$x("0x1e")][$x("0x51")](e))}),{priority:$x("0x77")}),o.on($x("0x5e"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[$x("0x64")]||1;i[$x("0x96")]=new Array(a)[$x("0x74")](x).map(((t,e)=>t+e));for(const{cell:e}of o[$x("0x9c")](s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[$x("0x33")](t[$x("0x1e")][$x("0x51")](e))}),{priority:$x("0x77")}),n[$x("0x8")][$x("0xa1")]((e=>{if(e[$x("0x6e")]&&e[$x("0x6e")][$x("0xc")]($x("0x5")))return e.previous?{}:{type:$x("0x59"),content:Yo(t[$x("0x93")],$x("0x25"))}}));const x=()=>{};for(const t of["tablePaste","tablePasteColumn",$x("0xa3"),$x("0x92")])n[$x("0x95")][$x("0x8d")]($x("0x59"),t,$x("0x53"),x),n[$x("0x95")].registerCustomCallback($x("0x76"),t,$x("0x53"),x);n[$x("0x95")][$x("0x8d")]("formatBlock",$x("0x92"),"discard",x),n[$x("0x95")][$x("0x8d")]($x("0x4e"),"tablePasteCell",$x("0x35"),((e,n,o)=>{const s=e[$x("0x5d")]((t=>t.getContainedElement())).filter((t=>t)),r=new Map(s[$x("0x5d")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[$x("0x81")])e&&r[$x("0x9f")](t,e);else if(o&&o[$x("0x60")])for(const[e,n]of Object[$x("0x29")](o.markerAttributes)){const o=t[$x("0x1e")][$x("0x26")][$x("0x4b")](e),s=o?o[$x("0x57")]().getContainedElement():null;s&&r[$x("0x9f")](s,n)}t[$x("0x1e")][$x("0x9a")]((t=>{for(const[e,n]of r)t[$x("0x90")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[$x("0x95")][$x("0x8d")](e,$x("0x5"),o,((s,r,i)=>{t[$x("0x1e")].change((t=>{const x=[];for(const t of s){const e=t[$x("0x3f")][$x("0x2b")];e.is("element",$x("0x91"))&&x[$x("0x33")](e)}n[$x("0x95")][$x("0x2e")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[$x("0x7")][$x("0x9d")]&&t.unwrap(e)}))}))};a($x("0x59"),"accept"),a($x("0x59"),$x("0x39")),a($x("0x76"),"accept"),a($x("0x76"),$x("0x39")),n[$x("0x95")][$x("0x8d")]("insertion",$x("0xa3"),$x("0x39"),(t=>{const e=t[$x("0x5d")]((t=>t[$x("0x86")]())),n=e[0].findAncestor($x("0x46")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[$x("0x7e")](n,{at:r,rows:i-r+1})})),n[$x("0x95")][$x("0x8d")]($x("0x59"),"tablePasteColumn","discard",(t=>{const e=t.map((t=>t[$x("0x86")]())),n=e[0][$x("0x2")]("table"),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[$x("0x27")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e[$x("0x6e")][$x("0xc")]("tablePaste"))return;const o=e[$x("0x58")][$x("0x44")],s=n[$x("0x11")]().filter((t=>t.isInContent&&t[$x("0x58")]&&t[$x("0x58")][$x("0x44")]==o));s[$x("0x9b")]&&e[$x("0x1f")]()[$x("0x9b")]!=s[$x("0x9b")]&&s[$x("0x72")](((t,e)=>(t.next=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[$x("0x8f")]),s=[$x("0x6a"),$x("0x5a")],r=n[$x("0x6c")][$x("0x21")](t.markerName);return r&&s[$x("0x33")]($x("0x3e")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on($x("0x1c"),c,{priority:"high"}),n.on($x("0x16"),c,{priority:$x("0x80")}),t.model.document[$x("0x75")]((()=>{let e=!1;const o=Array[$x("0x28")](t[$x("0x1e")].document[$x("0x4c")][$x("0x37")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if($x("0x8b")!=o||"deletion"!=i||r[$x("0x3d")])continue;if(!n.hasSuggestion(x))continue;const a=n[$x("0x30")](x).getRanges(),c=t.plugins[$x("0x4b")]($x("0x5c")).me;for(const t of n[$x("0x11")]())if(t[$x("0x7a")]&&t[$x("0x73")]==c&&$x("0x4e")==t[$x("0x10")]&&"tablePasteCell"==t[$x("0x6e")]&&t.getRanges().every((t=>a.some((e=>e[$x("0x18")](t,!0))))))for(const n of t[$x("0x1f")]())n[$x("0x7a")]&&(n.discard(),e=!0)}return e})),t.model.document[$x("0x75")]((e=>{const o=t[$x("0x2c")][$x("0x4b")]($x("0x99"));if(!o||!o._createdBatches[$x("0xe")](e.batch))return!1;let s=!1;const r=t[$x("0x83")][$x("0x4b")]($x("0x5c")).me,i=t[$x("0x1e")][$x("0x89")][$x("0x4c")][$x("0x0")](),x=Array[$x("0x28")](t[$x("0x1e")][$x("0x89")].differ.getChangedMarkers())[$x("0x3c")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return $x("0x8b")==o&&$x("0x5")==s&&i==r.id&&!e.oldRange}));for(const t of i){if($x("0x87")!=t[$x("0x10")]||"tableCellSuggestion"!=t[$x("0x71")]||1!=t.length)continue;const n=e.createRange(t[$x("0x9e")],t[$x("0x9e")][$x("0x41")](1));if(!x[$x("0x1")]((({data:t})=>t[$x("0x67")].isEqual(n))))for(const{name:t,data:o}of x)if(n[$x("0x18")](o[$x("0x67")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[$x("0x1e")][$x("0x89")][$x("0x75")]((e=>{let o=!1;const s=t[$x("0x83")][$x("0x4b")]($x("0x5c")).me,r=n[$x("0x11")]()[$x("0x3c")]((t=>t.isInContent&&t[$x("0x73")]==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[$x("0x6e")])for(const e of t.getMarkers()){const n=e[$x("0x57")]()[$x("0x86")]();if(n)if(n.is("element",$x("0x91"))&&Zx(n)){t[$x("0x42")](e[$x("0x71")]),i.add(n),o=!0;const s=n[$x("0x4d")],r=n[$x("0x4a")],a=s&&s.is($x("0x4"),$x("0x91")),c=r&&r.is($x("0x4"),$x("0x91"));a&&!i[$x("0xe")](s)&&x[$x("0x49")](s),c&&!i[$x("0xe")](r)&&x[$x("0x49")](r)}else n.is($x("0x4"),$x("0x31"))&&n[$x("0x13")]&&(t[$x("0x42")](e.name),o=!0)}else if("tablePasteCell"==t.subType){if(!t[$x("0x58")]||!t[$x("0x58")][$x("0x44")])continue;const e=t[$x("0x58")][$x("0x60")];if(e&&Object[$x("0xa2")](e)[$x("0x9b")])continue;const n=t.attributes[$x("0x44")];let s=!0,i=!0;for(const e of r)if(e[$x("0x6e")]&&e[$x("0x6e")][$x("0xc")]($x("0x5"))){if(!e[$x("0x58")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[$x("0x58")][$x("0x44")]==n){s=!1;break}}i&&s&&(t[$x("0x62")](),o=!0)}for(const t of i)e[$x("0x4f")](t);for(const t of x)e[$x("0x1d")](t);return o})),t[$x("0x7f")].for("editingDowncast")[$x("0x98")]({model:$x("0x38"),view:(t,e)=>l(t),converterPriority:$x("0x80")}),t[$x("0x7f")][$x("0x15")]($x("0x54"))[$x("0x98")]({model:$x("0x38"),view:(t,e)=>e[$x("0x7b")][$x("0x8e")]?l(t,!1):null,converterPriority:$x("0x80")});const d=t[$x("0x36")][$x("0xa0")];this[$x("0x70")](d[$x("0x89")],$x("0x65"),((t,e)=>{const n=[];for(const t of d[$x("0x14")](e[$x("0xa")])[$x("0x43")]())t.is($x("0x4"),$x("0x5f"))&&n.push(t);d.change((t=>{for(const e of n)t[$x("0x61")](t[$x("0x14")](e),t.createPositionBefore(e)),t[$x("0x4f")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t.getChild(0);return e.is($x("0x4"),"paragraph")&&e[$x("0x13")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[$x("0x9c")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["TableColumnResizeEditing","_suggestionFactory","accept","bind","data","handleSuggestionDescription","resizeTable","enableCommand","commandParams","get","editor","table","formatGroupId","has","markBlockFormat","handleResizeTableWidthCommand","registerCustomCallback","getTableColumnsWidths","_descriptionFactory","plugins","selection","model","discard","getContainedElement","document","registerDescriptionCallback","Users","resizeTableWidth","formatBlock","format","afterInit","change","getSelectedElement","resizeColumnWidths","getSuggestions","getColumnGroupElement","TrackChangesEditing","tableWidth","getSuggestionCallback","*Format:* resize table","author","subType","columnWidths"];var ea,na;ea=ta,na=473,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x1e")](){if(!this.editor[oa("0x13")][oa("0xd")](oa("0x0")))return;const t=this[oa("0xa")][oa("0x13")].get(oa("0x24"));t[oa("0x7")]("resizeTableWidth",this[oa("0xf")][oa("0x3")](this)),t.enableCommand(oa("0x21"),this[oa("0xf")][oa("0x3")](this)),t[oa("0x1")].registerCustomCallback(oa("0x1c"),oa("0x6"),"accept",t._suggestionFactory[oa("0x26")](oa("0x1c"),null,oa("0x16"))),t[oa("0x1")][oa("0x10")]("formatBlock","resizeTable",oa("0x16"),t[oa("0x1")][oa("0x26")](oa("0x1c"),null,oa("0x2"))),t[oa("0x12")][oa("0x19")](this[oa("0x5")][oa("0x3")](this))}handleResizeTableWidthCommand(t,e){const n=this.editor[oa("0x13")].get("TrackChangesEditing"),o=this[oa("0xa")][oa("0x13")][oa("0x9")]("TableColumnResizeEditing"),s=e[oa("0xb")]||this.editor[oa("0x15")][oa("0x18")][oa("0x14")][oa("0x20")]();this.editor[oa("0x15")][oa("0x1f")]((()=>{const r=o[oa("0x23")](s);let i=r?o[oa("0x11")](r):null,x=s.getAttribute(oa("0x25"))||null;const a=e.tableWidth||x,c=e[oa("0x2a")]||i,l=this[oa("0xa")].plugins[oa("0x9")](oa("0x1a")).me;for(const t of n[oa("0x22")]()){const e=t[oa("0x17")]();if("resizeTable"===t[oa("0x29")]&&e===s){t[oa("0x28")]!==l&&t[oa("0x16")]();const e=t[oa("0x4")][oa("0x8")];x=e[0][oa("0x25")],i=e[0][oa("0x2a")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0xe")](s,{commandName:oa("0x1b"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x6")},[],oa("0x6"))}))}[oa("0x5")](t){const{data:e}=t;if(e&&oa("0x6")===e[oa("0xc")]){const t=oa("0x27");return{type:oa("0x1d"),content:Yo(this[oa("0xa")].locale,t)}}}}const ra=["has","plugins","afterInit","insertTemplate","Template","editor","enableCommand"];var ia,xa;ia=ra,xa=410,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x5")](){const t=this[aa("0x1")];t.plugins[aa("0x3")](aa("0x0"))&&t[aa("0x4")].get("TrackChangesEditing")[aa("0x2")](aa("0x6"))}}const la=["insertTableOfContents","tableOfContents","get","plugins","enableCommand","commands","ELEMENT_TABLE_OF_CONTENTS","TrackChangesEditing","registerElementLabel","locale","afterInit"];var da,ua;da=la,ua=304,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x3")](){const t=this.editor;if(!t[ga("0x9")][ga("0x6")](ga("0x4")))return;t[ga("0x7")][ga("0x6")](ga("0x0"))[ga("0x8")]("insertTableOfContents");const e=t.plugins[ga("0x6")]("TrackChangesEditing"),n=t[ga("0x2")];e._descriptionFactory[ga("0x1")](ga("0x5"),(t=>Yo(n,ga("0xa"),t)))}}const fa=["isTouching","schema","element","model","ELEMENT_TITLE","locale","Title","differ","_descriptionFactory","get","TrackChangesEditing","isCollapsed","from","start","registerPostFixer","afterInit","has","plugins","end","createRange","nodeBefore","title-content","getNearestSelectionRange","editor","document","forward","_splitMarkerName","removeMarker","suggestion"];var ha,ba;ha=fa,ba=351,function(t){for(;--t;)ha.push(ha.shift())}(++ba);const pa=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[pa("0xc")](){const t=this[pa("0x14")];if(!t[pa("0xe")][pa("0xd")](pa("0x3")))return;const e=t.plugins[pa("0x6")](pa("0x7"));e[pa("0x5")].registerElementLabel(pa("0x12"),(()=>Yo(t[pa("0x2")],pa("0x1")))),t.model[pa("0x15")][pa("0xb")]((n=>{let o=!1;const s=Array[pa("0x9")](t.model[pa("0x15")][pa("0x4")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e[pa("0x17")](r);if(pa("0x19")!==s||!i.newRange)continue;const x=i.newRange,a=x.end[pa("0x11")];if(!a||!a.is(pa("0x1c"),"title-content"))continue;if(!x.start[pa("0x1a")](x[pa("0xf")]))continue;const c=t[pa("0x0")][pa("0x1b")][pa("0x13")](x[pa("0xf")],pa("0x16"));if(c&&c[pa("0x8")]){const t=n[pa("0x10")](x[pa("0xa")],c.start);t.isEqual(x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[pa("0x18")](r),o=!0)}return o}))}}const _a=["get","enableCommand","plugins","afterInit","has","TrackChangesEditing"];var Ta,Ca;Ta=_a,Ca=425,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x4")](){const t=this.editor,e=t[ya("0x3")][ya("0x1")](ya("0x0"));t[ya("0x3")][ya("0x5")]("UndoEditing")&&(e[ya("0x2")]("undo"),e[ya("0x2")]("redo"))}}const Aa=["requires","afterInit","editor","plugins","has","get","toggleTableCaption","enableCommand"];var va,Ra;va=Aa,Ra=277,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x3")](){return[wx]}[Sa("0x4")](){const t=this[Sa("0x5")];t[Sa("0x6")][Sa("0x7")]("TableCaptionEditing")&&t[Sa("0x6")][Sa("0x0")]("TrackChangesEditing")[Sa("0x2")](Sa("0x1"))}}const La=["*Format:* set start index to %0","_getSuggestionBlocksForListStyle","ELEMENT_","*Format:* set order to reversed","TrackChangesEditing","commandName","handleListStyleCommand","numbered","bind","document","locale","registerDescriptionCallback","DocumentListUtils","markMultiRangeBlockFormat","_getSuggestionBlocks","*Format:* set order to regular","reversed","startIndex","toUpperCase","listStart","listStyle","expandListBlocksToCompleteList","plugins","selection","list.properties","push","isFirstBlockOfListItem","config","length","type","listReversed","getListTypeFromListStyleType","getAttribute","from","_getTranslationKeyForListStyle","format","handleDescriptions","editor","enableCommand","isListItemBlock","change","model","_LIST_","listType","filter","get","*Change to:* %0","handleListReversedCommand","_descriptionFactory","handleListStartCommand"];var Na,Ma;Na=La,Ma=226,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this[wa("0xb")].plugins.has("DocumentListPropertiesEditing"))return;const t=this[wa("0xb")][wa("0x1")].get(wa("0x30")),e=this[wa("0xb")][wa("0x2e")][wa("0x13")](wa("0x1c"));t.styles&&e[wa("0xc")](wa("0x2c"),this.handleListStyleCommand[wa("0x20")](this)),t[wa("0x28")]&&e.enableCommand(wa("0x4"),this[wa("0x15")][wa("0x20")](this)),t[wa("0x29")]&&e[wa("0xc")]("listStart",this[wa("0x17")][wa("0x20")](this)),e[wa("0x16")][wa("0x23")](this[wa("0xa")].bind(this))}[wa("0x1e")](t,e={}){const n=this[wa("0xb")].plugins.get(wa("0x1c")),o=this._getSuggestionBlocksForListStyle();this[wa("0xb")].model[wa("0xe")]((()=>{n[wa("0x25")](o,{commandName:wa("0x2c"),commandParams:[{type:e[wa("0x3")]}],formatGroupId:wa("0x2c")})}))}[wa("0x15")](t,e={}){const n=this.editor[wa("0x2e")][wa("0x13")](wa("0x1c")),o=this.editor[wa("0x2e")][wa("0x13")]("DocumentListUtils"),s=this[wa("0x26")]((t=>o[wa("0xd")](t)&&wa("0x1f")===t[wa("0x6")](wa("0x11"))));null!==s&&this[wa("0xb")][wa("0xf")].change((()=>{n[wa("0x25")](s,{commandName:wa("0x4"),commandParams:[{reversed:e[wa("0x28")]}],formatGroupId:wa("0x4")})}))}[wa("0x17")](t,e={}){const n=this[wa("0xb")].plugins[wa("0x13")](wa("0x1c")),o=this[wa("0xb")][wa("0x2e")][wa("0x13")](wa("0x24")),s=this[wa("0x26")]((t=>o[wa("0xd")](t)&&wa("0x1f")===t[wa("0x6")](wa("0x11"))));null!==s&&this[wa("0xb")][wa("0xf")][wa("0xe")]((()=>{n[wa("0x25")](s,{commandName:wa("0x2b"),commandParams:[{startIndex:e[wa("0x29")]}],formatGroupId:wa("0x2b")})}))}handleDescriptions(t){const e=this.editor[wa("0x22")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x1d")]){case wa("0x2c"):o=wa("0x14"),s={type:wa("0x9"),content:Yo(e,o,Yo(e,this[wa("0x8")](n.commandParams[0][wa("0x3")])))};break;case wa("0x4"):o=n.commandParams[0][wa("0x28")]?wa("0x1b"):wa("0x27"),s={type:"format",content:Yo(e,o)};break;case wa("0x2b"):o=wa("0x18"),s={type:wa("0x9"),content:Yo(e,o,n.commandParams[0][wa("0x29")])}}return s}[wa("0x19")](){const t=this[wa("0xb")][wa("0x2e")].get(wa("0x24"));let e=Array[wa("0x7")](this[wa("0xb")].model[wa("0x21")].selection.getSelectedBlocks());return e[wa("0x31")](...t[wa("0x2d")](e)),e=[...new Set(e)],e}[wa("0x26")](t){const e=this[wa("0xb")][wa("0x2e")][wa("0x13")](wa("0x24"));let n=Array[wa("0x7")](this[wa("0xb")][wa("0xf")][wa("0x21")][wa("0x2f")].getSelectedBlocks())[wa("0x12")](t);if(!n[wa("0x2")])return null;n=e[wa("0x2d")](n);const o=[];for(const t of n)e[wa("0x0")](t)&&o[wa("0x31")](t);return o}[wa("0x8")](t){return wa("0x1a")+this[wa("0xb")][wa("0x2e")][wa("0x13")]("DocumentListPropertiesUtils")[wa("0x5")](t).toUpperCase()+wa("0x10")+t[wa("0x2a")]().replace(/-/g,"_")}}const Fa=["*Format:* change table properties","has","enableCommand","tableCellVerticalAlignment","TrackChangesEditing","enqueueChange","locale","table","data","removeAttribute","getSelectionAffectedTableCells","tableBorderColor","selection","get","pluginName","afterInit","tableWidth","_suggestionFactory","tableBorderWidth","document","findAncestor","handleDiscardAction","registerCustomCallback","tableCellWidth","tableCellPadding","subType","tableHeight","tableBackgroundColor","tableBorderStyle","tableCellProperties","tableCellBorderStyle","discard","markBlockFormat","_getSuggestion","tableCellBorderColor","TableUtils","getSuggestionCallback","plugins","tableAlignment","model","accept","format","tableCellHeight","TableCellPropertiesEditing","getFirstPosition","tableCellBorderWidth","editor","formatBlock","join","getSuggestions","tableProperties","handleSuggestionDescription","_handlePropertyChange","nodeAfter","tableCellHorizontalAlignment","batch"];var Pa,Da;Pa=Fa,Da=173,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x2d")]=[Ba("0x6"),Ba("0x17"),Ba("0xd"),Ba("0x21"),Ba("0xb"),Ba("0x15"),Ba("0x16")],this.tableCellProperties=[Ba("0x1d"),Ba("0x19"),Ba("0x28"),Ba("0x13"),Ba("0x12"),Ba("0x25"),"tableCellBackgroundColor",Ba("0x31"),Ba("0x36")]}static get[Ba("0x9")](){return"TrackChangesTableProperties"}[Ba("0xa")](){const t=this[Ba("0x29")][Ba("0x20")][Ba("0x8")](Ba("0x37"));if(this.editor.plugins[Ba("0x34")]("TablePropertiesEditing")){for(const e of this[Ba("0x2d")])t[Ba("0x35")](e,((t,n)=>{const o=this.editor.model[Ba("0xe")][Ba("0x7")][Ba("0x27")]()[Ba("0xf")](Ba("0x2"));this[Ba("0x2f")](e,[o],this.tableProperties,Ba("0x2d"),t,n)}));t[Ba("0xc")][Ba("0x11")](Ba("0x2a"),Ba("0x2d"),"accept",t[Ba("0xc")][Ba("0x1f")]("formatBlock",null,"discard")),t[Ba("0xc")][Ba("0x11")](Ba("0x2a"),Ba("0x2d"),Ba("0x1a"),((t,e)=>this.handleDiscardAction(this[Ba("0x2d")],t,e))),t._suggestionFactory[Ba("0x11")](Ba("0x2a"),"tableProperties",Ba("0x2b"),(()=>!1))}if(this.editor[Ba("0x20")].has(Ba("0x26"))){for(const e of this[Ba("0x18")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x29")][Ba("0x20")][Ba("0x8")](Ba("0x1e"))[Ba("0x5")](this[Ba("0x29")].model[Ba("0xe")].selection);this[Ba("0x2f")](e,o,this.tableCellProperties,Ba("0x18"),t,n)}));t[Ba("0xc")].registerCustomCallback(Ba("0x2a"),Ba("0x18"),Ba("0x23"),t[Ba("0xc")][Ba("0x1f")](Ba("0x2a"),null,Ba("0x1a"))),t[Ba("0xc")][Ba("0x11")](Ba("0x2a"),Ba("0x18"),Ba("0x1a"),((t,e)=>this[Ba("0x10")](this[Ba("0x18")],t,e))),t[Ba("0xc")][Ba("0x11")]("formatBlock",Ba("0x18"),Ba("0x2b"),(()=>!1))}t._descriptionFactory.registerDescriptionCallback((t=>this[Ba("0x2e")](t)))}[Ba("0x2f")](t,e,n,o,s,r){const i=this.editor[Ba("0x20")][Ba("0x8")](Ba("0x37"));this[Ba("0x29")][Ba("0x22")][Ba("0x0")](r[Ba("0x32")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x1b")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start[Ba("0x30")],s=n.commandParams[0];this[Ba("0x29")][Ba("0x22")].change((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Ba("0x4")](n,o)}))}[Ba("0x2e")](t){if(t[Ba("0x3")])switch(t[Ba("0x14")]){case"tableProperties":return{type:Ba("0x24"),content:Yo(this[Ba("0x29")][Ba("0x1")],Ba("0x33"))};case Ba("0x18"):return{type:Ba("0x24"),content:Yo(this[Ba("0x29")][Ba("0x1")],"*Format:* change table cell properties")}}}[Ba("0x1c")](t,e){const n=this[Ba("0x29")][Ba("0x20")][Ba("0x8")](Ba("0x37"));for(const o of n[Ba("0x2c")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0x14")]===e&&n===t)return o}return null}}const Ua=["execute","editor","_rangeIsInLocalUserInsertion","markerNameToElements","buildSuggestion","suggestion:","clone","addSuggestionData","acceptSuggestion","formatBlock:accept","change","markers","getItems","_cutOutSuggestionMarker","_createSuggestion","never","formatInline","insertion:accept","containsRangeInObject","markInlineFormat","$graveyard","_model","clear","formatInline:join","registerCustomCallback","removeMarker","delete","isAtStart","attributes","_addSuggestionMarker","Users","high","lowest","@external","targetPosition","deletion:discard","hasComments","substr","rejected","$marker","change:data","toJSON","nodeAfter","createPositionAt","model","trackChanges.mergeNestedSuggestions","setAttribute","commentThread","markerToHighlight","_refreshSuggestionsChain","isLocal","getAttribute","_editor","pluginName","insertion:","getRange","change:activeMarkers","setSelection","data-suggestion","markerName","schema","_addThreadToSuggestion","_suggestionFactory","addSuggestion","removeComment","external:","getShiftedBy","getIntersection","_splitMarkerName","define","track-changes-adapter-already-set","discardAllSuggestions","PENDING_ACTION_SUGGESTION","error-saving-suggestion-data-suggestion-discarded","_adapter","isAfter","isNextTo","isEqual","marker-count","getNearestSelectionRange","document","rethrowUnexpectedError","then","CommentsRepository","_suggestionState","next","consumable","isAtEnd","trackChanges","_breakSuggestionMarker","markInsertion","set","editing","createRangeIn","addMarkerName","deletion","subType","ck-suggestion-marker","isExternal","_suggestions","oldRange","suggestionLoaded","deletion:join","dataDowncast","root","_getSuggestionData","plugins","position","removeMarkers","highest","filter","_findSuggestions","differ","documentSelection","default","batch","end","track-changes-adapter-missing-getsuggestion","change:_saved","formatBlock:discard","join","updateSuggestion","isIntersectingWithRange","getAllAdjacentSuggestions","removed","stopListening","hasCommentThread","trackChangesCommand","acceptAllSuggestions","sort","$textProxy","_checkSuggestionCorrectness","_trackFormatChanges","track-changes-suggestion-not-found","suggestion","removeMarker:suggestion:formatBlock","discard","addMarker:suggestion:formatBlock","insertion:discard","_customCallbacks","head","init","updateMarker","suggestionUnloaded","_setSuggestionData","createdAt","consume","normal","has","containsItem","return","resolve","getWalker","ck-suggestion-marker-","suggestion-type","size","catch","originalSuggestionId","isUndo","addMarker","after","getSuggestionCallback","trackChanges.trackFormatChanges","isMultiRange","track-changes-user-not-found","getChangedMarkers","collaboration.channelId","_registerDefaultCallbacks","activeMarkers","add","createPositionAfter","fetchCommentThread","_setSuggestionRange","discardSuggestion","_joinSuggestions","addClass","mapper","data","editingDowncast","addMarker:suggestion","locale","formatInline:discard","_isForcedDefaultExecutionBlock","_removeSuggestion","markMultiRangeInsertion","skipNestingCheck","elementEnd","setTo","authorName","showSuggestionHighlights","from","track-changes-suggestion-data-mismatch","splitPosition","forward","registerPostFixer","_handleNewSuggestionMarker","multipleBlocks","refresh","for","formatGroupId","previous","options","accept","isObject","discardSelectedSuggestions","backward","fire","_commentsRepository","getRanges","formatBlock:join","addHighlight","low","addUser","listenTo","reconvertMarker","getMultiRangeId","elementStart","formatBlock","markerToData","_saved","_joinWithAdjacentSuggestions","every","deleteContent","requires","isCollapsed","value","isRemovable","track-changes-command-not-found","get","parent","containsRange","length","push","_updateSuggestionData","formatBlock:","isInContent","isLimit","getCommentThread","map","containerElement","newRange","_mergeNestedSuggestions","formatInline:chain","markDeletion","multi","TrackChangesEditing","getFirstRange","type","getUser","howMany","some","item","isOwn","widget","toViewElement","creator","getSuggestions","applyOperation","conversion","config","insertion","enqueueChange","getSuggestion","nodeBefore","split","isBefore","_getAuthorFromId","dataReady","_enabledCommands","formatInline:","isBlock","removeAttribute","acceptSelectedSuggestions","ck-suggestion-marker-formatBlock","adapter","ready","isInsideObject","remove","getLastMatchingPosition","suggestionChanged","ck-suggestion-marker--active","unbindElementFromMarkerName","fromCharCode","detach","getAncestors","getChanges","deletion:","start","writer","splice","includes","formatBlock:chain","hasSuggestion","getDifference","name","upcast","addRange","notReady","stop","range","_getExternalAuthor","bindElementToMarker","element","accepted","author","unbind","isTouching","createSelection","_defaultCallbacks","insertContent","forceDefaultExecution","commands","_descriptionFactory","group","values","always","moveTargetPosition","insert","getCustomProperty","_onDiscard","move","deletion:accept","PendingActions","selection","rootName","fromRange","enableCommand","createRange"];var Ga,Ha;Ga=Ua,Ha=369,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Va extends t.Plugin{static get[za("0xb6")](){return[za("0x2a"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Vs,Js,er,Oa,xr,ur,pr,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,bi,Ci,Ri,Oi,ji,Vi,Xi,tx,ix,ux,bx,yx,Sx,wx,jx,Vx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0xc")](){return za("0xcc")}constructor(t){function e(t){return t[za("0xc5")]((t=>String[za("0xf1")](t)))[za("0x4f")]("")}super(t),this[za("0x32")]("activeMarkers",[]),this.on(za("0xf"),((e,n,o,s)=>{this[za("0x134")][za("0x129")]((()=>{for(const e of[...s,...o])this[za("0x134")][za("0x12a")][za("0x6b")](e)&&t[za("0x33")][za("0xad")](e)}))})),this[za("0x10f")]=new ss(this.editor[za("0x3")].schema,this.editor[za("0x8b")]),this[za("0x21")]=null,this[za("0x15")]=new Wa(this.editor),this[za("0x3a")]=new Map,this[za("0xa6")]=t[za("0x41")].get(za("0x2a")),this._enabledCommands=new Set,this[za("0x134")]=this[za("0x120")][za("0x3")],this[za("0x2b")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[za("0xda")][za("0x1c")](za("0x79"),za("0x49")),this[za("0x5b")]=t[za("0xda")][za("0xbb")](za("0x79")),t.config.define(za("0x4"),!0),this[za("0xc8")]=t[za("0xda")][za("0xbb")]("trackChanges.mergeNestedSuggestions"),this[za("0x56")]=new u(t,this[za("0xe3")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,52,52,48])}[za("0x64")](){const t=this[za("0x120")];t[za("0xd9")][za("0x9d")](za("0x89"))[za("0x7")]({model:za("0x5d"),view:t=>{const{id:e,type:n}=this[za("0x1b")](t[za("0x12")]),o=[za("0x38"),za("0x70")+n];let s=3e3;return this[za("0x7f")][za("0xf9")](t[za("0x12")])&&(o[za("0xbf")](za("0xef")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xd9")][za("0x9d")]("dataDowncast")[za("0x80")]((e=>{e.on(za("0x8a"),((e,n,o)=>{if(!o.options.showSuggestionHighlights)return;const s=n[za("0xd2")];if(!s)return;const r=o[za("0x87")][za("0xd5")](s);t[za("0x3")][za("0x13")][za("0xa2")](s)&&r&&!r.getCustomProperty(za("0xd4"))&&r.is(za("0xc6"))&&(0,x.toWidget)(r,o[za("0xf7")])}),{priority:"high"})})),t.conversion[za("0x9d")](za("0x3e"))[za("0x7")]({model:za("0x5d"),view:(t,e)=>{if(!e[za("0xa0")][za("0x94")])return null;const{type:n}=this._splitMarkerName(t[za("0x12")]);return{classes:["ck-suggestion-marker",za("0x70")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0xd2")])return;if(o.item.is(za("0x11a")))return void s[za("0x2d")][za("0x69")](o.item,n[za("0xfd")]);const r=s.mapper[za("0xd5")](o[za("0xd2")]);if(!o[za("0xd2")].is(za("0x105"))||!t.model[za("0x13")].isBlock(o[za("0xd2")])||r[za("0x115")]("addHighlight"))return;const{id:i}=this[za("0x1b")](o[za("0x12")]);s[za("0xf7")][za("0x86")](["ck-suggestion-marker",za("0xe8")],r),s[za("0xf7")][za("0x5")](za("0x11"),i,r),s[za("0x87")][za("0x104")](r,o[za("0x12")]),e&&(this[za("0x7f")][za("0xf9")](o[za("0x12")])?s[za("0xf7")][za("0x86")](za("0xef"),r):s.writer.removeClass(za("0xef"),r));for(const e of t[za("0x3")][za("0x34")](o.item)[za("0x12b")]())s[za("0x2d")][za("0x69")](e,n.name);s.consumable[za("0x69")](o[za("0xd2")],n.name)};t[za("0xd9")][za("0x9d")](za("0x3e")).add((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[za("0xa0")][za("0x94")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x44")})})),t.conversion[za("0x9d")](za("0x3e"))[za("0xb1")]({model:za("0x5d"),view:(t,e)=>e[za("0xa0")][za("0x94")]?null:{group:za("0x5d"),name:t[za("0x144")](11)}}),t.conversion.for(za("0xfe")).elementToElement({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x124")+t[za("0xa")](za("0x71"))+":"+t[za("0xa")]("id");return t[za("0xa")](za("0x25"))&&(n+=":"+t[za("0xa")]("marker-count")),e.createElement(za("0x146"),{"data-name":n})}}),t[za("0xd9")].for("upcast").dataToMarker({view:za("0x5d")}),t[za("0xd9")][za("0x9d")](za("0x89"))[za("0x80")]((t=>{t.on(za("0x60"),n(),{priority:za("0x13e")})})),t[za("0xd9")][za("0x9d")](za("0x89"))[za("0x80")]((t=>{t.on(za("0x5e"),((t,e,n)=>{const o=n.mapper[za("0x122")](e[za("0x12")]);if(o)for(const t of o)t[za("0x115")](za("0xa9"))||(n[za("0xf7")].removeClass([za("0x38"),za("0xe8"),za("0xef")],t),n[za("0xf7")][za("0xe6")](za("0x11"),t),n.mapper[za("0xf0")](t,e[za("0x12")]))}),{priority:za("0x13e")})})),t[za("0x3")][za("0x27")][za("0x99")]((e=>{let n=!1;const o=Array.from(t[za("0x3")][za("0x27")].differ[za("0x7c")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x1b")](x);if("suggestion"!==o)continue;const d=this[za("0x3a")][za("0xbb")](l);if(null!=a[za("0xc7")])if(za("0x12f")==c&&(n=n||$a(a[za("0xc7")],x,e,t[za("0x3")][za("0x13")])),a[za("0xc7")][za("0xb7")]||za("0x133")==a[za("0xc7")][za("0x3f")][za("0x11b")]||"formatBlock"==c&&!Ja(a.newRange)||za("0x36")==c&&(qa(i=a[za("0xc7")])||(r=i)[za("0xf6")][za("0xbc")]==r.end.nodeBefore&&r[za("0xf6")][za("0x2e")]))e[za("0x138")](x),n=!0;else{if(!d||!d[za("0xc2")])continue;s[za("0x80")](d)}}var r,i;return s[za("0x72")]>0&&(n=!!this[za("0xb3")](s)||n),n})),t[za("0x3")][za("0x27")][za("0x99")]((e=>{let n=!1;for(const o of t[za("0x3")].document[za("0x47")][za("0xf4")]()){if(za("0x114")!=o[za("0xce")])continue;const s=o.position[za("0x19")](o.length);if(s.isAtEnd)for(const r of this[za("0x3a")][za("0x111")]()){if(r.isMultiRange||!r[za("0xc2")])continue;if(za("0xb0")!=r[za("0xce")])continue;const i=r[za("0xcd")]();if(i.start[za("0xbc")]!=i[za("0x4b")][za("0xbc")]&&i[za("0x4b")][za("0x24")](o[za("0x42")])){const o=t.model.createRange(i[za("0xf6")],s);e[za("0x65")](r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[za("0x3")][za("0x12a")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0xfd")]),n=this[za("0x3a")][za("0xbb")](t);n&&n[za("0x35")](e[za("0xfd")])}})),t.model[za("0x27")].on(za("0x147"),(()=>{const e=Array.from(t[za("0x3")][za("0x27")][za("0x47")][za("0x7c")]())[za("0x45")]((t=>za("0x5d")===this[za("0x1b")](t.name)[za("0x110")]));if(0===e[za("0xbe")])return;e[za("0x58")](((t,e)=>{const n=t[za("0x88")].oldRange,o=e[za("0x88")][za("0x3b")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start.isBefore(o[za("0xf6")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x1b")](t);if(null===s[za("0x3b")]){const e=this[za("0x9a")](t);o[za("0x80")](e)}else{const t=this[za("0x3a")][za("0xbb")](e);null!==s[za("0xc7")]||t.isInContent?(n[za("0x80")](t[za("0x63")]),o[za("0x80")](t)):this._removeSuggestion(t)}}o[za("0x72")]>0&&this[za("0x8")](o);for(const t of n)this.fire(za("0xee"),t)})),t[za("0x3")].on(za("0xd8"),((e,n)=>{const o=n[0];if(!this[za("0x3a")].size)return;if(!o.isDocumentOperation)return;if(o[za("0x4a")][za("0x75")]||!o[za("0x4a")][za("0x9")])return;let s,r;switch(o[za("0xce")]){case za("0x114"):s=t[za("0x3")].createPositionAt(o.position),r=s[za("0x19")](o.howMany);break;case za("0xdf"):s=t[za("0x3")][za("0x2")](o[za("0x97")]),r=t.model.createPositionAt(o[za("0x113")]);break;case za("0x117"):s=t[za("0x3")][za("0x2")](o[za("0x141")]),r=s.getShiftedBy(o[za("0xd0")]);break;default:return}const i=t.model[za("0x11e")](s,r);t[za("0x3")].change((()=>{for(const{suggestion:t,meta:e}of this[za("0x46")](i)){if(t[za("0x7a")])continue;if(za("0x12f")==t[za("0xce")])continue;const n=t[za("0x88")]&&t.data[za("0x9b")];("formatBlock"!=t[za("0xce")]||za("0xdf")==o.type&&!n)&&(e.containsRangeInObject||"insertion"==t.type&&e[za("0xd3")]||t[za("0xcd")]()[za("0xbd")](i)&&this[za("0x30")](t,s,r))}}))}),{priority:za("0x13f")}),t.model.on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[za("0x8d")])return;if(!this[za("0x56")].value)return;if(o[za("0xb7")])return;const r=t[za("0x3")].schema,{start:i,end:x}=o[za("0xcd")](),a=i.nodeAfter&&r[za("0xc3")](i.nodeAfter)?null:r[za("0x26")](i,za("0x98")),c=x[za("0xde")]&&r[za("0xc3")](x[za("0xde")])?null:r.getNearestSelectionRange(x,za("0xa4")),l=t.model[za("0x11e")](a?a[za("0xf6")]:i,c?c[za("0x4b")]:x);t[za("0x3")].change((e=>{this[za("0xca")](l);const n=t[za("0x3")].schema.getNearestSelectionRange(l[za("0xf6")]);o.is(za("0x48"))?e[za("0x10")](n):o[za("0x92")](n)})),e[za("0x101")]()}),{priority:e.priorities[za("0x6a")]+10}),t[za("0x3")].on(za("0x10c"),((e,n)=>{const o=n[n.length-1];o&&o[za("0x10d")]||this._isForcedDefaultExecutionBlock||this[za("0x56")][za("0xb8")]&&(t[za("0x3")][za("0x129")]((()=>{let o=t[za("0x3")][za("0x10c")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x6d")]=o[za("0x125")]();const s=o[za("0x4b")][za("0xde")],r=t[za("0x3")][za("0x13")];s&&r[za("0xe5")](s)&&!r[za("0xa2")](s)&&(o=t[za("0x3")][za("0x11e")](o[za("0xf6")],t.model.createPositionAt(s,"end"))),this[za("0x31")](o)})),e[za("0x101")]())}),{priority:za("0x13e")}),this[za("0x120")][za("0x10e")].add(za("0x2f"),this.trackChangesCommand),this[za("0x11d")]("trackChanges");const o=new b(t,this[za("0x3a")]);t[za("0x10e")][za("0x80")](za("0x127"),o),this[za("0x11d")](za("0x127"));const s=new C(t,this[za("0x3a")]);t[za("0x10e")].add(za("0x84"),s),this[za("0x11d")](za("0x84")),t.commands[za("0x80")](za("0x57"),new F(t,o,this[za("0x3a")])),this.enableCommand(za("0x57")),t[za("0x10e")][za("0x80")](za("0x1e"),new F(t,s,this._suggestions)),this[za("0x11d")]("discardAllSuggestions"),t[za("0x10e")][za("0x80")](za("0xe7"),new U(t,o,this[za("0x3a")])),this[za("0x11d")](za("0xe7")),t[za("0x10e")].add(za("0xa3"),new U(t,s,this[za("0x3a")])),this[za("0x11d")]("discardSelectedSuggestions");const r=t[za("0x41")][za("0xbb")]("CommentsRepository");this[za("0xac")](r,"addComment",((t,{threadId:e})=>{const n=this[za("0x3a")][za("0xbb")](e);n&&n[za("0x6")]&&1===n[za("0x6")][za("0xbe")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this[za("0xac")](r,za("0x17"),((t,{threadId:e})=>{const n=this[za("0x3a")][za("0xbb")](e);n&&n.commentThread&&!n[za("0x6")][za("0xbe")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:za("0xaa")})}set[za("0xe9")](t){if(this[za("0x21")])throw new e.CKEditorError(za("0x1d"),this);this[za("0x21")]=t}get[za("0xe9")](){return this[za("0x21")]}[za("0xd7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x3a")][za("0x111")]())t&&!e[za("0xc2")]||n[za("0xbf")](e);return e?n[za("0xc5")]((t=>t[za("0x0")]())):n}[za("0xdd")](t){const n=this[za("0x3a")].get(t);if(!n)throw new e.CKEditorError(za("0x5c"),this);return n}[za("0xfb")](t){return this[za("0x3a")][za("0x6b")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0xce")][za("0xdf")](":"),i=this[za("0x3a")][za("0xbb")](n)||this[za("0x12d")](s,r,n,e,o);if(this._addThreadToSuggestion(i),this._checkSuggestionCorrectness(i,s,r||null,e),i[za("0x68")]=t[za("0x68")],o&&o[za("0x140")]){const t=o[za("0x140")],e=this._getExternalAuthor(t[za("0x93")]);i.authoredAt=t[za("0x68")],i[za("0x107")]=e,i[za("0x39")]=!0}else i.authoredAt=t.createdAt;switch(t.data&&(i.data=t[za("0x88")]),t[za("0x13b")]&&(i[za("0x13b")]=t.attributes),this[za("0x21")]&&this[za("0x21")].addSuggestion||(i[za("0xb2")]=!0),this[za("0x2b")][za("0xbb")](i)){case"notReady":this[za("0x2b")][za("0x32")](i,za("0xe2"));break;case"markerReady":i[za("0xc2")]?(this._suggestionState[za("0x32")](i,za("0xea")),this[za("0xa5")](za("0x3c"),i)):this[za("0x2b")][za("0x32")](i,za("0x53"))}return i}acceptSuggestion(t){this[za("0x10d")]((()=>{this[za("0x120")].model.change((()=>{for(const e of t[za("0x52")]())e[za("0xa1")]()}))}))}[za("0x84")](t){this[za("0x10d")]((()=>{this[za("0x120")][za("0x3")][za("0x129")]((()=>{for(const e of t[za("0x52")]())e[za("0x5f")]()}))}))}[za("0x11d")](t,n){const o=this[za("0x120")][za("0x10e")][za("0xbb")](t);if(!o)throw new e.CKEditorError(za("0xba"),this,{commandName:t});this[za("0xe3")][za("0x80")](o),n&&o.on("execute",((t,e)=>{this[za("0x56")][za("0xb8")]&&(this[za("0x8d")]||e[za("0xbe")]>0&&e[e[za("0xbe")]-1]&&e[e.length-1][za("0x10d")]||(n(((...t)=>o[za("0x11f")](...t,{forceDefaultExecution:!0})),...e),t[za("0x101")]()))}),{priority:za("0x13e")})}forceDefaultExecution(t){let n,o;const s=this[za("0x8d")];this[za("0x8d")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x8d")]=!1),o&&e.CKEditorError[za("0x28")](o,this),n}[za("0x31")](t,n=null,o={}){if(t[za("0xb7")])return null;const s=this[za("0x120")][za("0x41")].get(za("0x13d")).me;for(const{suggestion:e,meta:o}of this[za("0x46")](t,"insertion"))if(o.isOwn){if(!o[za("0x23")]){if(!this._mergeNestedSuggestions&&o[za("0x131")])continue;return e}if(n==e[za("0x37")]){const n=e.getFirstRange();return n[za("0xf6")].isEqual(t[za("0x4b")])?this[za("0x83")](e,this[za("0x134")].createRange(t[za("0xf6")],n[za("0x4b")])):this[za("0x83")](e,this._model[za("0x11e")](n[za("0xf6")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0xd")+n:za("0xdb"),a=this[za("0x67")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x13c")](x,r,i,t),a}[za("0x8f")](t,n=za("0xcb"),o={}){const s=this[za("0x120")][za("0x41")][za("0xbb")](za("0x13d")).me,r=this[za("0x15")][za("0x78")](za("0xdb"),n,za("0x4f"));for(const e of this[za("0xd7")]())if(e[za("0x107")].id==s.id&&za("0xdb")==e.type&&e.subType==n&&(r(e[za("0xa7")](),t)||r(t,e[za("0xa7")]()))){for(const n of t)e.addRange(n);return e}if(this[za("0xc8")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x46")](e,"insertion")){if(!o.isOwn)continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[za("0xbd")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xd")+n,c=this[za("0x67")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x13c")](a,i,x,e,Zo[za("0xae")]());return c}[za("0x132")](t,n,o=null,s={}){if(o=o||Xa(n),t[za("0xb7")])return null;if(za("0x12e")===this[za("0x5b")]){const e=this[za("0x15")][za("0x78")](za("0x12f"),o,"accept");return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[za("0x120")][za("0x41")][za("0xbb")](za("0x13d")).me,i=[];if(za("0x112")!==this[za("0x5b")])for(const{suggestion:e,meta:n}of this[za("0x46")](t,za("0xdb")))n[za("0xd3")]&&!n.isInsideObject&&i[za("0xbf")](...e[za("0xa7")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xbe")];){const o=n[e][za("0xfc")](t);n[za("0xf8")](e,1,...o),e+=o[za("0xbe")]}}return n}(t,i);x[za("0xbe")]&&this[za("0x134")][za("0x129")]((()=>{for(const t of x){const e=this[za("0x15")].getSuggestionCallback(za("0x12f"),o,"accept");this[za("0x10d")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0xf6")],a=t[za("0x4b")];for(const{suggestion:e,meta:n}of this[za("0x46")](t,za("0x12f"))){if(!n.isOwn)continue;if(e.subType!=o)continue;const s=e[za("0xcd")]();if(s[za("0xbd")](t,!0))return null;x=x.isBefore(s.start)?x:s[za("0xf6")],a=a[za("0x22")](s[za("0x4b")])?a:s.end,i?s[za("0xf6")][za("0xe0")](i[za("0xcd")]()[za("0xf6")])?(i[za("0x43")](),i=e):e[za("0x43")]():i=e}const c=this._model[za("0x11e")](x,a);if(i)this[za("0x83")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x67")]({id:t,type:za("0xe4")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker("formatInline:"+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0x9e")]||(n[za("0x9e")]=n.commandName),n[za("0x9b")]=t.is(za("0x102")),s=s||Xa(n);const i=o[za("0xc5")]((t=>Qa(t,this[za("0x134")]))),x=t.is(za("0x102"))?t:Qa(t,this[za("0x134")]);if("never"===this[za("0x5b")]){const t=this[za("0x15")][za("0x78")]("formatBlock",s,"accept");return this[za("0x10d")]((()=>t([x],n,r))),null}i[za("0xbf")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&"always"!==this[za("0x5b")]){const t=this[za("0x15")][za("0x78")]("formatBlock",s,za("0xa1"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0xf6")],d=x[za("0x4b")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,za("0xb0"))){if(!e[za("0xd3")]||e[za("0x23")]||e[za("0x131")]||e[za("0xeb")])continue;if(t[za("0x88")][za("0x9e")]!=n[za("0x9e")])continue;const o=t[za("0xcd")]();if(t[za("0x37")]==s){if(o[za("0xbd")](x,!0))return null;l=l[za("0xe0")](o[za("0xf6")])?l:o.start,d=d.isAfter(o[za("0x4b")])?d:o[za("0x4b")],c?o[za("0xf6")][za("0xe0")](c[za("0xcd")]()[za("0xf6")])?(c.removeMarkers(),c=t):t[za("0x43")]():c=t}else{const e=x[za("0x1a")](o);this._cutOutSuggestionMarker(t,e)}}const u=this[za("0x120")][za("0x41")][za("0xbb")](za("0x13d")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x83")](c,this[za("0x134")][za("0x11e")](l,d)),c;{const t=this[za("0x67")]({id:g,type:za("0xc1")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x13c")]("formatBlock:"+s,g,m,this[za("0x134")][za("0x11e")](l,d)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[za("0x9e")]||(n.formatGroupId=n.commandName);const i=t[0];n[za("0x9b")]=i.is(za("0x102")),s=s||Xa(n);const x=o[za("0xc5")]((t=>Qa(t,this[za("0x134")]))),a=i.is(za("0x102"))?t:t[za("0xc5")]((t=>Qa(t,this[za("0x134")])));if(za("0x12e")===this._trackFormatChanges){const t=this[za("0x15")].getSuggestionCallback("formatBlock",s,"accept");return this[za("0x10d")]((()=>t(a,n,r))),null}x[za("0xbf")](...a);let c=!0;for(const t of x)if(!this[za("0x121")](t)){c=!1;break}if(c&&za("0x112")!==this[za("0x5b")]){const t=this[za("0x15")].getSuggestionCallback(za("0xb0"),s,za("0xa1"));return this[za("0x10d")]((()=>t(a,n,r))),null}const l=this.editor[za("0x41")][za("0xbb")](za("0x13d")).me;for(const t of this[za("0xd7")]()){if(t.author.id!=l.id)continue;if(za("0xb0")!=t[za("0xce")]||t.data[za("0x9e")]!=n[za("0x9e")])continue;const e=t.subType==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t.getMarkers()){const r=s[za("0xe")]();if(o.isEqual(r)){e?(a.splice(n,1),n--):t[za("0x138")](s[za("0xfd")]);break}}}}if(0==a[za("0xbe")])return null;const d=this._suggestionFactory[za("0x78")](za("0xb0"),s,"join");for(const t of this[za("0xd7")]())if(t[za("0x107")].id==l.id&&za("0xb0")==t[za("0xce")]&&t.data[za("0x9e")]==n[za("0x9e")]&&t.subType==s&&(d(t.getRanges(),a)||d(a,t[za("0xa7")]()))){for(const e of a)t[za("0xff")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0xc1")+s,f=this[za("0x67")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x13c")](m,u,g,t,Zo[za("0xae")]());return f}[za("0xca")](t,n=null,o={}){if(t[za("0xb7")])return null;const s=this.editor[za("0x41")][za("0xbb")](za("0x13d")).me,r=new i.LiveRange(t[za("0xf6")],t[za("0x4b")]);for(const{suggestion:t,meta:e}of this[za("0x46")](r,za("0xdb")))if(e[za("0xd3")]&&!e[za("0x23")])if(t[za("0x7a")]){const e=t[za("0xa7")]()[za("0x45")]((t=>"$graveyard"!=t.root.rootName));if(e[za("0xb4")]((t=>r[za("0xbd")](t,!0)))&&t[za("0x5f")](),e[za("0xd1")]((t=>t[za("0xbd")](r,!0)))){const t=this[za("0x15")][za("0x78")]("deletion",n,za("0xa1"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[za("0xcd")]());null!==e&&t[za("0x116")]([e],null,o)}if(r[za("0xf2")](),r[za("0xb7")]||"$graveyard"==r[za("0x3f")][za("0x11b")])return null;let x=null,a=r[za("0xf6")],c=r[za("0x4b")];for(const{suggestion:t,meta:e}of this[za("0x46")](r,"deletion"))if(e[za("0xd3")])if(t[za("0x7a")]&&this[za("0xc8")]){let e=!0;for(const n of t[za("0xa7")]()){if(n[za("0xbd")](r,!0))return t;r.containsRange(n)||(e=!1)}e&&t[za("0x5f")]()}else{const n=t.getFirstRange();if(n[za("0xbd")](r,!0)){if(!this._mergeNestedSuggestions&&e.containsRangeInObject)continue;return t}a=a[za("0xe0")](n[za("0xf6")])?a:n.start,c=c[za("0x22")](n[za("0x4b")])?c:n[za("0x4b")],x?n[za("0xf6")].isBefore(x[za("0xcd")]().start)?(x[za("0x43")](),x=t):t[za("0x43")]():x=t}if(x)return this[za("0x83")](x,this[za("0x134")][za("0x11e")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x134")][za("0x11e")](a,c),i=s.id,x=n?za("0xf5")+n:za("0x36"),l=this[za("0x67")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x13c")](x,t,i,r),l}}markMultiRangeDeletion(t,n="multi",o={}){const s=this[za("0x120")][za("0x41")][za("0xbb")]("Users").me,r=t[za("0xc5")]((t=>new i.LiveRange(t.start,t.end))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x46")](t,za("0xdb")))n.isOwn&&!n[za("0x23")]&&x[za("0x80")](e);for(const e of x)if(e.isMultiRange){const s=e.getRanges();if((!e[za("0x13b")]||!e.attributes[za("0x90")])&&s[za("0xb4")]((t=>r[za("0xd1")]((e=>e[za("0xbd")](t,!0)))))&&e[za("0x5f")](),r[za("0xb4")]((t=>s[za("0xd1")]((e=>e.containsRange(t,!0)))))){const e=this[za("0x15")][za("0x78")]("deletion",n,za("0xa1"));return this[za("0x10d")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r.some((e=>e[za("0xbd")](t,!0)))&&e.discard(),r[za("0xb4")]((e=>t[za("0xbd")](e,!0)))){const t=this[za("0x15")][za("0x78")](za("0x36"),n,za("0xa1"));return this[za("0x10d")]((()=>t(r,null,o))),null}}const a=this[za("0x15")][za("0x78")](za("0x36"),n,za("0x4f"));let c=null;for(const t of this.getSuggestions())if(t[za("0x107")].id==s.id&&t[za("0xc2")]&&za("0x36")==t[za("0xce")]&&t[za("0x37")]==n&&(a(t[za("0xa7")](),r)||a(r,t[za("0xa7")]())))if(c){if(t[za("0x6")]&&t[za("0x6")][za("0xbe")])continue;for(const e of t[za("0xa7")]())c[za("0x51")](e)||c[za("0xff")](e);t[za("0x43")]()}else{c=t;for(const e of r)t[za("0x51")](e)||t.addRange(e)}if(c)return c;x[za("0x135")]();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"deletion"))n.isOwn&&x[za("0x80")](e);for(const t of x){const e=t.getRanges();if((!o||!o[za("0x90")])&&r[za("0xb4")]((t=>e[za("0xd1")]((e=>e[za("0xbd")](t,!0))))))return t;(!t[za("0x13b")]||!t[za("0x13b")][za("0x90")])&&e[za("0xb4")]((t=>r[za("0xd1")]((e=>e[za("0xbd")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this[za("0x67")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0xf2")](),t.isCollapsed||"$graveyard"==t[za("0x3f")][za("0x11b")]||this[za("0x13c")](u,l,d,t,Zo[za("0xae")]());return g}_setSuggestionRange(t,e){const n=t.getFirstMarker();this[za("0x134")].change((t=>{t[za("0x65")](n,{range:e})}))}[za("0x14")](t){const e=t.id,n=this.editor[za("0xda")].get(za("0x7d"));this[za("0xa6")][za("0x55")](e)||this[za("0xa6")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0xa6")][za("0xc4")](e);o[za("0x108")]("isRemovable"),o[za("0xb9")]=!1,t[za("0x6")]=o}_checkSuggestionCorrectness(t,n,o,s){if(t[za("0xce")]!=n||t[za("0x37")]!=o||t[za("0xd6")].id!=s)throw this.editor.enableReadOnlyMode(za("0x96")),new e.CKEditorError(za("0x96"),this)}[za("0x12c")](t,n){const o=t[za("0xcd")]();if(n[za("0x24")](o))t.removeMarkers();else if(o.containsRange(n)){const s=this._model[za("0x2")](n[za("0xf6")][za("0xde")],za("0x4b"));this[za("0x83")](t,this._model.createRange(o[za("0xf6")],s));const r=(0,e.uid)(),i=t[za("0xd6")].id,x=t[za("0xce")]+":"+t.subType;this[za("0x67")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x88")],attributes:t[za("0x13b")]});const a=this._model[za("0x2")](n[za("0x4b")].parent,za("0x77")),c=this[za("0x134")][za("0x11e")](a,o[za("0x4b")]);this[za("0x13c")](x,r,i,c)}else if(o.containsPosition(n[za("0xf6")])){const e=this[za("0x134")].createPositionAt(n[za("0xf6")].nodeBefore,za("0x4b"));this[za("0x83")](t,this[za("0x134")][za("0x11e")](o[za("0xf6")],e))}else{const e=this._model[za("0x2")](n[za("0x4b")].parent,za("0x77"));this[za("0x83")](t,this._model[za("0x11e")](e,o[za("0x4b")]))}}[za("0x121")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0xdb"))){if(!n[za("0xd3")])continue;const o=e[za("0xa7")]();for(const e of o)if(!t[za("0xfc")](e)[za("0xbe")])return!0}return!1}[za("0xe1")](t){const n=this[za("0x120")][za("0x41")][za("0xbb")]("Users")[za("0xcf")](t);if(!n)throw new e.CKEditorError(za("0x7b"),this);return n}[za("0x103")](t){const e=this[za("0x120")][za("0x41")][za("0xbb")](za("0x13d")),n=(0,r.hashObject)(za("0x18")+t);return e.getUser(n)||e[za("0xab")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[za("0xe1")](o),i=this[za("0x15")][za("0x123")](t,e,n,r,s,(t=>this[za("0xc0")](n,{attributes:t})));return this[za("0xac")](i,za("0xa1"),(()=>{this._updateSuggestionData(n,{state:za("0x106")})}),{priority:za("0x13e")}),this[za("0xac")](i,za("0x5f"),(()=>{this[za("0xc0")](n,{state:za("0x145")})}),{priority:za("0x13e")}),this[za("0x3a")][za("0x32")](n,i),this._suggestionState.set(i,"notReady"),i}[za("0x1b")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[za("0xbe")]<5?e[2]:e[3],authorId:e[za("0xbe")]<5?e[3]:e[4],markerCount:6==e[za("0xbe")]?e[5]:null}}[za("0x30")](t,n,o){const s=t.getFirstRange(),r=s[za("0xf6")],i=s.end;this[za("0x83")](t,this[za("0x134")].createRange(r,n));const x=(0,e.uid)(),a=t[za("0xd6")].id,c=t[za("0xce")]+(t[za("0x37")]?":"+t[za("0x37")]:"");this[za("0x67")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t.data}),za("0xb0")==t.type&&(o=this[za("0x134")].createPositionBefore(o[za("0xbc")])),this[za("0x13c")](c,x,a,this[za("0x134")].createRange(o,i))}[za("0x46")](t,e=null){const n=[],o=this[za("0x134")][za("0x13")],s=this[za("0x120")][za("0x41")][za("0xbb")](za("0x13d")).me;for(const r of this[za("0xd7")]())if(r[za("0xc2")]&&(!e||r[za("0xce")]==e))for(const e of r[za("0xa7")]()){const i=t[za("0xf6")].isEqual(e[za("0x4b")])||t[za("0x4b")][za("0x24")](e.start);if(i||t[za("0x1a")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0xf6")],t),a=e[za("0xbd")](t)&&Ka(o,t[za("0xf6")],e);n.push({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x13c")](t,e,n,o,s){this[za("0x134")].change((r=>{let i=za("0x124")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x76")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x8e")](t){const e=t[za("0x9f")],n=t[za("0x2c")];t[za("0x9f")]=null,null!=e&&(e[za("0x2c")]=null),t[za("0x2c")]=null,null!=n&&(n[za("0x9f")]=null),"ready"==this[za("0x2b")][za("0xbb")](t)&&(this[za("0x2b")][za("0x32")](t,za("0x53")),this[za("0xa5")](za("0x66"),t,e,n))}[za("0x67")](t){const n=t.id,o=this[za("0x126")](t);if(this[za("0x21")]&&this[za("0x21")].addSuggestion){const s=this[za("0x120")][za("0x41")][za("0xbb")]("PendingActions"),r=o.hasComments,i=o[za("0x37")]?o.type+":"+o.subType:o[za("0xce")],x=this[za("0x120")][za("0x8b")],a=s[za("0x80")](Yo(x,za("0x1f"))),c={id:n,type:i,hasComments:r,data:t[za("0x88")]||null,originalSuggestionId:t[za("0x74")]||null,attributes:o.attributes};this[za("0x21")][za("0x16")](c).then((t=>{o[za("0xb2")]=!0,s[za("0xec")](a),t&&t[za("0x68")]&&(this[za("0x3a")][za("0xbb")](n)[za("0x68")]=t[za("0x68")])}))[za("0x73")]((t=>{throw(0,e.logWarning)(za("0x20")),this.editor[za("0x3")][za("0xdc")]({isUndoable:!1},(()=>{o[za("0x5f")]()})),o[za("0x54")](),this._suggestions[za("0x139")](o.id),this[za("0x2b")][za("0x139")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[za("0x120")][za("0x41")].get(za("0x119")),o=this[za("0xdd")](t);if(this._adapter&&this[za("0x21")][za("0x50")])if(o[za("0xb2")]){const o=n[za("0x80")](Yo(this.editor.locale,za("0x1f")));this._adapter[za("0x50")](t,e).then((()=>{n[za("0xec")](o)}))}else o.on(za("0x4d"),(()=>{this._updateSuggestionData(t,e)}))}[za("0x40")](t){if(!this[za("0x21")]||!this[za("0x21")][za("0xdd")])throw new e.CKEditorError(za("0x4c"),this);return this[za("0x21")].getSuggestion(t)}[za("0x9a")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x1b")](t),r=this[za("0x3a")][za("0xbb")](e)||this[za("0x12d")](n,o,e,s,{});switch(this[za("0x5a")](r,n,o,s),this[za("0x2b")][za("0xbb")](r)){case za("0x100"):this[za("0x40")](e)[za("0x29")]((t=>{let n=Promise[za("0x6e")]();t[za("0x143")]&&(n=this[za("0xa6")][za("0x82")]({channelId:this[za("0x120")][za("0xda")].get(za("0x7d")),threadId:e})),n.then((()=>{this[za("0x126")](t)._saved=!0}))})),this[za("0x2b")][za("0x32")](r,"markerReady");break;case za("0x53"):this[za("0xc0")](e,{state:"open"});case"dataReady":this[za("0x2b")].set(r,za("0xea")),this.fire(za("0x3c"),r);break;case"ready":this[za("0xa5")](za("0xee"),r)}return r[za("0x35")](t),r}[za("0x8")](t){const e=Array[za("0x95")](t)[za("0x45")]((t=>!t.isMultiRange)),n=this[za("0xd7")]({skipNotAttached:!0})[za("0x45")]((t=>!t.isMultiRange)),o=n[za("0x45")]((e=>!t[za("0x6b")](e))),s=new Map(n[za("0xc5")]((t=>[t,this[za("0x15")][za("0x78")](t[za("0xce")],t[za("0x37")],"chain")]))),r=new Map(n.map((t=>[t,t[za("0xcd")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xbe")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0xbe")];t++)a(e[t],o,0);for(let t=0;t<e[za("0xbe")];t++){const n=e[t];!x.has(n)&&n[za("0x9f")]&&(n[za("0x9f")].next===n&&(n[za("0x9f")][za("0x2c")]=null),n[za("0x9f")]=null),!i[za("0x6b")](n)&&n[za("0x2c")]&&(n[za("0x2c")].previous===n&&(n.next[za("0x9f")]=null),n[za("0x2c")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xbe")];o++){const n=c(t,e[o]);n&&(n[0][za("0x2c")]=n[1],n[1].previous=n[0],i[za("0x80")](n[0]),x[za("0x80")](n[1]))}}function c(t,e){if(t[za("0x107")].id!==e[za("0x107")].id)return null;const n=s[za("0xbb")](t)(t,e,r[za("0xbb")](t),r[za("0xbb")](e));return n&&s[za("0xbb")](e)(t,e,r[za("0xbb")](t),r.get(e))?n[1][za("0x6")]&&n[1][za("0x6")].length?null:n:null}}[za("0xb3")](t){const e=Array.from(t),n=this[za("0xd7")]({skipNotAttached:!0}),o=n[za("0x45")]((e=>!t[za("0x6b")](e))),s=new Map(e[za("0xc5")]((t=>[t,this[za("0x15")][za("0x78")](t[za("0xce")],t[za("0x37")],"join")]))),r=new Map(n[za("0xc5")]((t=>[t,t[za("0xa7")]()])));for(let t=0;t<e[za("0xbe")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0xbe")];i++){const o=n[i];if(o.type!==e[za("0xce")]||o[za("0x107")].id!==e[za("0x107")].id||o[za("0x37")]!==e[za("0x37")])continue;const x=s[za("0xbb")](e),a=r[za("0xbb")](e),c=r[za("0xbb")](o),l=e[za("0x6")]&&e[za("0x6")][za("0xbe")],d=o[za("0x6")]&&o[za("0x6")][za("0xbe")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[za("0x139")](e),!0;if(!d&&x(a,c))return t[za("0x85")](e,o),r[za("0x139")](o),!0}return!1}}_joinSuggestions(t,e){if(t.isMultiRange)for(const n of e[za("0xa7")]())t.addRange(n);else{const n=e.getFirstRange()[za("0x4b")];this[za("0x83")](t,this[za("0x134")][za("0x11e")](t[za("0xcd")]()[za("0xf6")],n))}e[za("0x43")]()}}class Wa{constructor(t){this._editor=t,this[za("0x134")]=t[za("0x3")],this[za("0x62")]=new Map,this[za("0x10b")]=new Map,this[za("0x7e")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[za("0x134")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x78")](t,e,za("0xa1"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,"discard")(...n)})}[za("0x137")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x62")][za("0x32")](s,o)}[za("0x78")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[za("0xbb")](o)||this._defaultCallbacks[za("0xbb")](t+":"+n)}[za("0x7e")](){const t=()=>{},e=t=>{t.sort(((t,e)=>t[za("0xf6")][za("0xe0")](e[za("0xf6")])?1:-1)),this[za("0x134")][za("0x129")]((e=>{for(const n of t){let t;t=n[za("0x4b")].isAtEnd&&n[za("0x4b")].parent==n[za("0xf6")].nodeAfter?e[za("0x10a")](n[za("0xf6")].nodeAfter,"on"):e.createSelection(n),this[za("0x134")][za("0xb5")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x134")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0xc5")]((t=>(qa(t)&&(t=this[za("0x134")].createRange(t.end)),t)))[za("0x45")]((t=>"$graveyard"!==t[za("0x3f")][za("0x11b")]));if(r[za("0xbe")]<1)return;const x=Array[za("0x95")](this[za("0x134")].document[za("0x11a")].getRanges())[za("0xc5")]((t=>i.LiveRange[za("0x11c")](t)));n[za("0x10")](r);for(const t of this[za("0xb")].commands.commands())t[za("0x9c")]();s.push({forceDefaultExecution:!0}),this[za("0xb")].execute(o,...s);const a=x.filter((t=>za("0x133")!=t[za("0x3f")][za("0x11b")]));a.length>0&&n[za("0x10")](a);for(const t of x)t[za("0xf2")]()}))},o=(t,e)=>1==t[za("0xbe")]&&1==e[za("0xbe")]&&t[0][za("0x4b")][za("0x24")](e[0].start),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x134")])?[t,e]:Za(e,t,o,n,this[za("0x134")])?[e,t]:null;this[za("0x10b")][za("0x32")](za("0x130"),t),this._defaultCallbacks.set(za("0x61"),e),this[za("0x10b")].set("insertion:join",o),this[za("0x10b")][za("0x32")]("insertion:chain",s),this[za("0x10b")].set(za("0x118"),e),this[za("0x10b")][za("0x32")](za("0x142"),t),this._defaultCallbacks[za("0x32")](za("0x3d"),o),this[za("0x10b")][za("0x32")]("deletion:chain",s),this[za("0x10b")].set("formatInline:accept",n),this[za("0x10b")][za("0x32")](za("0x8c"),t),this[za("0x10b")][za("0x32")](za("0x136"),o),this._defaultCallbacks[za("0x32")](za("0xc9"),t),this._defaultCallbacks[za("0x32")](za("0x128"),n),this._defaultCallbacks[za("0x32")](za("0x4e"),t),this[za("0x10b")].set(za("0xa8"),o),this._defaultCallbacks[za("0x32")](za("0xfa"),t)}}function Ka(t,e,n){for(const o of e[za("0xbc")][za("0xf3")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x3f")]==o)return!1;if(!n[za("0x6c")](o))return!1;if(t[za("0xa2")](o)||t.isLimit(o))return!0}return!1}function qa(t){return t[za("0x4b")][za("0xbc")]==t[za("0xf6")][za("0x1")]&&t.end[za("0x13a")]}function $a(t,e,n,o){const s=t=>!t[za("0xd2")].is(za("0x59"))&&!o.isObject(t[za("0xd2")]),r=t.start.getLastMatchingPosition(s),i=t[za("0x4b")][za("0xed")](s,{direction:za("0xa4")});return!(t.start[za("0x24")](r)&&t[za("0x4b")][za("0x24")](i)||(r[za("0xe0")](i)?n[za("0x65")](e,{range:n.createRange(r,i)}):n[za("0x138")](e),0))}function Xa(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xf6")][za("0x1")];return e&&e.is("element")}function Qa(t,e){const n=e[za("0x13")][za("0xa2")](t)||e[za("0x13")].isSelectable(t);return e[za("0x11e")](e[za("0x2")](t,"before"),n?e[za("0x81")](t):e.createPositionAt(t,za("0x4b")))}function Za(t,e,n,o,s){if(n.end[za("0x24")](o[za("0xf6")]))return!0;if(t[za("0xce")]!=e.type)return!1;if(!n.end[za("0x109")](o[za("0xf6")]))return!1;const r=s[za("0x11e")](n[za("0x4b")],o[za("0xf6")])[za("0x6f")]();for(const t of r)if([za("0xaf"),za("0x91")][za("0xf9")](t.type)&&s.schema[za("0xc3")](t[za("0xd2")]))return!1;return!0}const Ya=["model","commands","PendingActions","bind","_removePendingAction","change:isDirty","_editor","_setPendingAction","remove","destroy","listenTo","_pendingAction","canDiscard","getRanges","isEnabled","PENDING_ACTION_SUGGESTION","discardSuggestion","execute","commentThreadController","unbind","_acceptCommand","get","add","acceptSuggestion","_discardCommand","stopListening","plugins","view","canAccept","canEditAt"];var tc,ec;tc=Ya,ec=255,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0xf")]=e,this[nc("0xc")]=n,this[nc("0x3")]=o,this[nc("0x15")]=t,this[nc("0x5")]=t[nc("0x10")][nc("0x6")](nc("0x8")),this[nc("0x9")]=t[nc("0x10")].get(nc("0x1")),this[nc("0xc")][nc("0x12")]("isEnabled").to(this[nc("0x5")],this._discardCommand,((t,e)=>t||e)),this.view[nc("0x12")]("canAccept").to(this[nc("0x5")],nc("0x1d"),(t=>t&&this[nc("0x15")][nc("0xf")][nc("0xe")](e[nc("0x1c")]()))),this.view[nc("0x12")](nc("0x1b")).to(this[nc("0x9")],nc("0x1d"),(t=>t&&this._editor[nc("0xf")][nc("0xe")](e[nc("0x1c")]()))),this[nc("0x1a")]=null,n.isDirty&&this[nc("0x16")](),this[nc("0x19")](n,nc("0x8"),(()=>this[nc("0x8")]())),this.listenTo(n,nc("0x1"),(()=>this.discardSuggestion())),this[nc("0x19")](n,nc("0x14"),(()=>{n.isDirty?this[nc("0x16")]():this[nc("0x13")]()}))}[nc("0x8")](){this._acceptCommand[nc("0x2")](this[nc("0xf")].id)}[nc("0x1")](){this[nc("0x9")][nc("0x2")](this[nc("0xf")].id)}destroy(){this[nc("0xc")].unbind(nc("0x1d")),this[nc("0xc")][nc("0x4")](nc("0xd")),this[nc("0xc")][nc("0x4")](nc("0x1b")),this[nc("0xa")](),this[nc("0x3")][nc("0x18")](),this[nc("0x1a")]&&this[nc("0x13")]()}_setPendingAction(){const t=Yo(this[nc("0x15")].locale,nc("0x0"));this[nc("0x1a")]=this._editor[nc("0xb")].get(nc("0x11"))[nc("0x7")](t)}[nc("0x13")](){null!==this[nc("0x1a")]&&this[nc("0x15")][nc("0xb")][nc("0x6")]("PendingActions")[nc("0x17")](this[nc("0x1a")]),this[nc("0x1a")]=null}}const sc=["_localUser","value","_createCommentViews","editor","addComment","commentInputView","canAccept","isDirty","commentThreadInputView","submit","length","canDiscard","isReadOnly","_model","authoredAt","isEnabled","delegate","isActive","CommentView","commentsListView","disabledSubmit","set","locale","removeComment","element","editorConfig","descriptionParts","commentThread","focus","destroy","bind","_config","updateComment"];var rc,ic;rc=sc,ic=164,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x14")]=null,this.commentThreadInputView=null,this[xc("0x16")](xc("0x12"),!1),this[xc("0x16")](xc("0xf"),e[xc("0xf")]),this[xc("0x1f")]("authoredAt").to(e),this.set(xc("0x1b"),[]),this[xc("0x16")](xc("0x8"),!1),this[xc("0x16")](xc("0x10"),!1),this.set(xc("0x7"),!1),this[xc("0x16")](xc("0xc"),!1),this[xc("0xe")]=e,this[xc("0x1")]=n,this[xc("0x20")]=o,o.disableComments?this.set("length",1):this[xc("0x3")]()}[xc("0x1d")](){this[xc("0x19")].focus()}[xc("0x1e")](){this.commentsListView&&this[xc("0x14")][xc("0x1e")](),this[xc("0x9")]&&this[xc("0x9")][xc("0x1e")](),super.destroy()}[xc("0x3")](){const{CommentsListView:t}=this._config;this[xc("0x14")]=new t(this[xc("0x17")],this[xc("0xe")].commentThread,Object.assign({CommentView:this[xc("0x20")][xc("0x13")]},this._config)),this[xc("0x14")][xc("0x11")](xc("0x18")).to(this),this[xc("0x14")].delegate(xc("0x0")).to(this),this.commentsListView[xc("0x1f")](xc("0x12")).to(this),this[xc("0x16")](xc("0xb"),this[xc("0x14")].length+1),this.bind("length").to(this.commentsListView,xc("0xb"),(t=>t+1)),this[xc("0x9")]=this._createCommentThreadInputView(),this.on(xc("0x18"),(()=>this.focus())),this[xc("0x1f")](xc("0x8")).to(this[xc("0x14")],"hasDirtyComment",this.commentThreadInputView.commentInputView,xc("0x2"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[xc("0x20")],e=new t(this[xc("0x17")],this[xc("0x1")],this[xc("0x20")][xc("0x1a")]),n=e[xc("0x6")];return e[xc("0x1f")]("showInput").to(this,"isActive",this._model[xc("0x1c")],xc("0xd"),n,xc("0x2"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0xa"),((t,e)=>{this.fire(xc("0x5"),e),n[xc("0x4")].setData("")})),n.on("cancel",(()=>this.focus())),n[xc("0x1f")](xc("0x15")).to(this[xc("0xe")][xc("0x1c")],xc("0xd")),e}}const cc=["authoredAt","ck-suggestion-","discardSuggestion","children","acceptButton","render","ck-suggestion__main","fire","isExternal","importWord","set",".ck-annotation__content-wrapper","EXTERNAL_IMPORT_WORD_SUGGESTION","color","bindTemplate","source","locale","ck-suggestion-wrapper","ck-suggestion__info","@external","createElement","commentThreadInputView","EXTERNAL_SUGGESTION","isEnabled","span","description","EXTERNAL_AVATAR","userView","type","</span>","descriptionParts",'<span class="ck-suggestion-type">',"ck-comment__info-time","push","creator","EXTERNAL_IMPORT_WORD_AVATAR","bind","ck-suggestion--discard","check","getExternalSuggestionNote","ck-suggestion__user",'" title="',"ck-annotation__content-wrapper","name","cancel","discardButton","ck-suggestion--disabled-comments","commentThread","time","isActive","_model","Discard suggestion","querySelector","title","ck-annotation__info","getUserViewNotificationText","ck-suggestion__info-name","canDiscard","ck-suggestion__actions",'"></span>',"div","_descriptionElement","commentsListView","change:description","ck-annotation","ck-annotation__info-time","ck-annotation__user","ck-suggestion","extendTemplate","attributes","innerHTML","_createButton","</p>","getTemplate","Accept suggestion","canAccept",'<span class="ck-suggestion-color" style="background-color: ',"author","formatDateTime","_config"];var lc,dc;lc=cc,dc=315,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this.set(uc("0x21"),""),this.bind(uc("0x21")).to(this,uc("0x23"),(t=>t&&t[0]?t[0][uc("0x21")]:"")),this.bind(uc("0x1e")).to(this,uc("0x23"),this,uc("0x36"),((t,e)=>{let n="";for(const e of t)n+="<p>"+mc(e.content,e[uc("0x12")])+uc("0x4d");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x42")]=null,this[uc("0x9")]=this[uc("0x4c")](Yo(e,uc("0x4f")),t.icons[uc("0x2b")],"ck-suggestion--accept","acceptSuggestion","sw"),this[uc("0x9")][uc("0x29")]("isEnabled").to(this,uc("0x0")),this[uc("0x32")]=this[uc("0x4c")](Yo(e,uc("0x38")),t.icons[uc("0x31")],uc("0x2a"),uc("0x7"),"sw"),this[uc("0x32")][uc("0x29")](uc("0x1c")).to(this,uc("0x3e")),this[uc("0x20")]=new r.UserView(e,this[uc("0x37")][uc("0x2")],this[uc("0x3c")]()),this.userView[uc("0x49")]({attributes:{class:[uc("0x2d"),uc("0x47")]}}),this.setTemplate(this[uc("0x4e")]())}[uc("0x4e")](){const t=this[uc("0x13")],e=[{tag:uc("0x41"),attributes:{class:[uc("0x17"),uc("0x3b")]},children:[{tag:uc("0x1d"),children:[{text:this.userView[uc("0x30")]}],attributes:{class:[uc("0x3d"),"ck-annotation__info-name"]}},{tag:uc("0x35"),attributes:{datetime:t.to(uc("0x5")),class:[uc("0x25"),uc("0x46")]},children:[{text:t.to(uc("0x5"),(t=>this[uc("0x4")][uc("0x3")](t)))}]}]},{tag:uc("0x41"),attributes:{class:[uc("0x3f"),"ck-annotation__actions"]},children:[this[uc("0x9")],this[uc("0x32")]]},{tag:uc("0x41"),attributes:{class:[uc("0x2f")]}}];this[uc("0x37")][uc("0xd")]&&e.push({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this[uc("0x2c")]()}]});const n={tag:uc("0x41"),attributes:{class:[uc("0x16"),t.if(uc("0x36"),"ck-suggestion-wrapper--active"),t.to(uc("0x21"),(t=>uc("0x6")+t)),this[uc("0x4")].disableComments&&uc("0x33")],"data-suggestion-id":this[uc("0x37")].id,"data-thread-id":this[uc("0x37")][uc("0x34")].id,"data-author-id":this[uc("0x37")][uc("0x2")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[uc("0x48"),uc("0x45")]},children:[this[uc("0x20")],{tag:uc("0x41"),attributes:{class:[uc("0xb"),"ck-annotation__main"]},children:e}]}]};return this[uc("0x43")]&&this.commentThreadInputView&&n[uc("0x8")][uc("0x26")](this[uc("0x43")],this[uc("0x1a")]),n}[uc("0xa")](){super[uc("0xa")](),this[uc("0x42")]=this.element[uc("0x39")](uc("0x10")),this._descriptionElement[uc("0x4b")]=this[uc("0x1e")],this.on(uc("0x44"),((t,e,n)=>{this[uc("0x42")][uc("0x4b")]=n}))}[uc("0x4c")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x15")]);return i[uc("0xf")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x49")]({attributes:{class:n}}),i.on("execute",(()=>{this[uc("0xc")](o,this[uc("0x37")].id)})),i}[uc("0x2c")](){return uc("0xe")===this[uc("0x37")][uc("0x4a")]["@external"].source?Yo(this.locale,uc("0x11")):Yo(this[uc("0x15")],uc("0x1b"))}getUserViewNotificationText(){return this[uc("0x37")][uc("0xd")]?uc("0xe")===this._model[uc("0x4a")][uc("0x18")][uc("0x14")]?Yo(this[uc("0x15")],uc("0x28"),this._model.creator[uc("0x30")]):Yo(this[uc("0x15")],uc("0x1f"),this._model[uc("0x27")].name):null}}function mc(t,e){let n="";return n+=t.split("*").map(((t,e)=>e%2!=0?uc("0x24")+fc(t)+uc("0x22"):fc(t))).join(""),e&&(n+=uc("0x1")+e.value+uc("0x2e")+e[uc("0x3a")]+uc("0x40")),n}function fc(t){const e=document[uc("0x19")](uc("0x1d"));return e.innerText=t,e[uc("0x4b")]}const hc=["toMany","some","activeAnnotations","comments.maxCommentCharsWhenCollapsed","set","innerView","isOn","actionView","execute","previous","destroy","addSourceCollector","Discard all selected suggestions","init","type","listenTo","_destroyController","bind","focus","mainView","acceptSelectedSuggestions","getMarkers","isDirty","_suggestionToController","isEnabled","getDescriptions","createCommentThreadController","from","_viewToController","arrowView","lowest","value","suggestion-","EditorAnnotations","editor","unbind","editing","getSuggestion","remove","buttonView","change:previous","_initializeController","commands","getFirstRange","keys","Track changes","requires","_disableComments","CommentsRepository","hasSuggestion","CommentView","getAllAdjacentSuggestions","acceptButton","config","Accept all selected suggestions","createAnnotationView","getRanges","descriptionParts","reduce","isMultiRange","_updateController","registerAnnotation","switchbutton","_handleControllerBuffer","comments.maxCommentsWhenCollapsed","_annotationViews","trackChanges","getJoined","TrackChangesUI","comments.editorConfig","button","createAnnotation","Annotations","Discard all suggestions","locale","_createUIButton","model","trackChanges.disableComments","isInContent","has","view","values","discardButton","activeMarkers","TrackChangesEditing","refreshSelectedViews","suggestionUnloaded","separator","delete","add","suggestionChanged","filter","commandName","CommentsUI","_descriptionFactory","stopListening","getMarkerNames","clear","push","commentThread","_handleSuggestionControllerDelayed","get","head","comments.maxThreadTotalWeight","size","_refreshActiveMarkers","change:activeAnnotations","define","plugins","SuggestionThreadView","length"];var bc,pc;bc=hc,pc=449,function(t){for(;--t;)bc.push(bc.shift())}(++pc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x29")](){return[Va,r.Users,Ec("0x2b"),Ec("0x43"),Ec("0x1c")]}static get pluginName(){return Ec("0x3f")}constructor(t){super(t),this[Ec("0x12")]=new Map,this[Ec("0x17")]=new Map,this[Ec("0x3c")]=new Map,this._handleControllerBuffer=new Map;const e=this[Ec("0x1d")][Ec("0x30")];e[Ec("0x66")]("trackChanges.SuggestionThreadView",gc),e[Ec("0x66")]("trackChanges.disableComments",!1),this[Ec("0x2a")]=e[Ec("0x60")](Ec("0x48"))}[Ec("0x5f")](t,e){0===this[Ec("0x3a")][Ec("0x63")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x3a")]){const n=this[Ec("0x12")].has(t);n||e?n&&e&&this._destroyController(t):this._initializeController(t)}this[Ec("0x1d")][Ec("0x67")].get(Ec("0x1c"))[Ec("0x50")](),this[Ec("0x64")](),this[Ec("0x3a")][Ec("0x5c")]()}),10),this[Ec("0x3a")].set(t,e)}[Ec("0x8")](){const t=this.editor,e=t[Ec("0x67")][Ec("0x60")](Ec("0x4f")),n=t[Ec("0x67")][Ec("0x60")](Ec("0x43")),o=t[Ec("0x67")][Ec("0x60")](Ec("0x1c")),s=t[Ec("0x67")][Ec("0x60")]("CommentsRepository");t.ui.componentFactory.add("trackChanges",(t=>this[Ec("0x46")](t))),o[Ec("0x6")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x16")](this[Ec("0x12")])){const o=e[Ec("0x2e")](),s=[];for(const t of o){if(!t[Ec("0x49")])continue;if(t[Ec("0x36")]){s[Ec("0x5d")](...t[Ec("0x33")]());continue}const e=t[Ec("0x26")]();if(s[Ec("0x69")]>0){const t=s[0][Ec("0x3e")](e);if(t){s[0]=t;continue}}s[Ec("0x5d")](e)}t[Ec("0x5d")]([n[Ec("0x4b")],s])}return t})),this.listenTo(e,"suggestionLoaded",((t,e)=>{this.listenTo(e,"change:previous",((t,n,o,s)=>{e.isInContent&&(null==o?(this[Ec("0x37")](s[Ec("0x61")]),this[Ec("0x5f")](e,!1)):(this[Ec("0x37")](o[Ec("0x61")]),this[Ec("0x5f")](e,!0)))})),null===e[Ec("0x4")]?this[Ec("0x5f")](e,!1):this[Ec("0x37")](e[Ec("0x61")])})),this.listenTo(e,Ec("0x51"),((t,e,n)=>{this[Ec("0x5a")](e,Ec("0x23")),this._handleControllerBuffer[Ec("0x53")](e);const o=n?n[Ec("0x61")]:e,s=this[Ec("0x12")][Ec("0x60")](o);null!==n&&this[Ec("0x37")](o),null===n&&s&&this._destroyController(e)})),this[Ec("0xa")](e,Ec("0x55"),((t,e)=>{this[Ec("0x37")](e)})),this.listenTo(n,Ec("0x65"),(()=>{this._refreshActiveMarkers()})),this.listenTo(s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x2c")](n))return;const s=e[Ec("0x20")](n);this[Ec("0x12")][Ec("0x60")](s)[Ec("0x4b")][Ec("0xd")]()}),{priority:Ec("0x19")})}[Ec("0x64")](){const t=this[Ec("0x1d")].plugins.get(Ec("0x43")),e=this.editor[Ec("0x67")].get(Ec("0x4f")),n=Array.from(t[Ec("0x6c")],(t=>t[Ec("0x0")])).filter((t=>this[Ec("0x17")][Ec("0x4a")](t))),o=[];for(const t of n){const e=this._viewToController[Ec("0x60")](t)[Ec("0x47")][Ec("0x2e")]();o[Ec("0x5d")](...e[Ec("0x35")](((t,e)=>[...t,...e[Ec("0x5b")]()]),[]))}e[Ec("0x4e")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x1d")][Ec("0x25")][Ec("0x60")](Ec("0x3d")),r=Yo(t,Ec("0x28"));n[Ec("0x22")][Ec("0x6e")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x22")][Ec("0xc")](Ec("0x1")).to(o,Ec("0x1a")),n[Ec("0x22")].on(Ec("0x3"),(()=>{o[Ec("0x3")](),this.editor.editing[Ec("0x4b")][Ec("0xd")]()}));const i=new e.Collection,x=[{type:Ec("0x39"),model:{withText:!0,label:r,commandName:Ec("0x3d")}},{type:"separator"},{type:Ec("0x41"),model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:"acceptAllSuggestions"}},{type:Ec("0x41"),model:{withText:!0,label:Yo(t,Ec("0x31")),commandName:Ec("0xf")}},{type:Ec("0x41"),model:{withText:!0,label:Yo(t,Ec("0x44")),commandName:"discardAllSuggestions"}},{type:Ec("0x41"),model:{withText:!0,label:Yo(t,Ec("0x7")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:Ec("0x52")};if(t.model){const n=new s.Model(t[Ec("0x47")]),o=this[Ec("0x1d")][Ec("0x25")][Ec("0x60")](n[Ec("0x57")]);n.bind(Ec("0x1"),Ec("0x13")).to(o,Ec("0x1a"),Ec("0x13")),e={type:t[Ec("0x9")],model:n}}i[Ec("0x54")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x56")]((t=>null!=t[Ec("0x47")])).map((t=>this[Ec("0x1d")][Ec("0x25")].get(t[Ec("0x47")][Ec("0x57")]))),c=n.buttonView;return c[Ec("0x2")][Ec("0x1e")](Ec("0x13")),c.arrowView[Ec("0x1e")]("isEnabled"),c.actionView[Ec("0xc")](Ec("0x13")).to(o,Ec("0x13")),c[Ec("0x18")][Ec("0xc")](Ec("0x13"))[Ec("0x6a")](a,Ec("0x13"),((...t)=>t[Ec("0x6b")]((t=>t)))),n.on(Ec("0x3"),(t=>{this[Ec("0x1d")][Ec("0x3")](t.source[Ec("0x57")]),this[Ec("0x1d")][Ec("0x1f")][Ec("0x4b")].focus()})),n}[Ec("0x24")](t){const e=this[Ec("0x1d")],n=e.config,o=e[Ec("0x67")][Ec("0x60")](Ec("0x43")),s=e.plugins[Ec("0x60")](Ec("0x2b")),i=e[Ec("0x67")][Ec("0x60")](Ec("0x1c")),x=e[Ec("0x67")][Ec("0x60")](r.Users).me,a=n[Ec("0x60")]("trackChanges")[Ec("0x68")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x67")][Ec("0x60")](Ec("0x58"));let d,u;this[Ec("0x3c")][Ec("0x4a")](t.id)?(u=this[Ec("0x3c")].get(t.id),d=u[Ec("0xe")]):(d=new a(e[Ec("0x45")],t,x,{disableComments:this[Ec("0x2a")],editorConfig:n.get(Ec("0x40")),maxCommentsWhenCollapsed:n.get(Ec("0x3b")),maxThreadTotalWeight:n[Ec("0x60")](Ec("0x62")),maxCommentCharsWhenCollapsed:n[Ec("0x60")](Ec("0x6d")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x60")](Ec("0x45"))),CommentView:n[Ec("0x60")]("comments")[Ec("0x2d")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x2f")].on(Ec("0x3"),(()=>{e[Ec("0x1f")].view.focus()})),d[Ec("0x4d")].on(Ec("0x3"),(()=>{e[Ec("0x1f")].view[Ec("0xd")]()})),u=o[Ec("0x32")](this[Ec("0x1d")].locale,d),u[Ec("0xc")](Ec("0x11")).to(d,Ec("0x11")),u[Ec("0xc")](Ec("0x69")).to(d),u[Ec("0xc")](Ec("0x9")).to(d,Ec("0x9"),(t=>Ec("0x1b")+t)),this[Ec("0x3c")][Ec("0x6e")](t.id,u));const g=s[Ec("0x15")](t[Ec("0x5e")],d),m=new oc(e,t,d,g),f=t[Ec("0x2e")]()[Ec("0x56")]((t=>t[Ec("0x49")]));d[Ec("0x34")]=e[Ec("0x67")].get(Ec("0x4f"))._descriptionFactory.getDescriptions(f),this._suggestionToController[Ec("0x6e")](t,m),this[Ec("0x17")].set(d,m);const h=o[Ec("0x42")]({view:u,target:()=>{const n=[],o=t[Ec("0x2e")]()[Ec("0x56")]((t=>t[Ec("0x49")]));for(const t of o)n.push(...t[Ec("0x10")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x1f")],n)},type:()=>Ec("0x1b")+m.view[Ec("0x9")]});o[Ec("0x54")](h),i[Ec("0x38")](h)}[Ec("0xb")](t){const e=this[Ec("0x1d")].plugins[Ec("0x60")]("Annotations"),n=this[Ec("0x12")][Ec("0x60")](t),o=n[Ec("0x4b")],s=e.getByInnerView(o);s&&e[Ec("0x21")](s),this[Ec("0x12")][Ec("0x53")](t),this[Ec("0x17")][Ec("0x53")](o),n.destroy()}[Ec("0x37")](t){if(!t[Ec("0x49")]||!this._suggestionToController[Ec("0x4a")](t))return;const e=this.editor[Ec("0x67")][Ec("0x60")](Ec("0x4f")),n=this[Ec("0x12")][Ec("0x60")](t),o=t[Ec("0x2e")]();n[Ec("0x4b")][Ec("0x34")]=e[Ec("0x59")][Ec("0x14")](o)}[Ec("0x5")](){for(const t of this[Ec("0x12")][Ec("0x27")]())this[Ec("0xb")](t);for(const t of this[Ec("0x3c")][Ec("0x4c")]())t[Ec("0xe")].destroy();super[Ec("0x5")]()}}var Tc,Cc,yc=["addSuggestionData","getSuggestion","plugins","adapter","get","editor","getSuggestions","TrackChanges"];Tc=yc,Cc=125,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get requires(){return[Va,_c,"Comments"]}static get pluginName(){return kc("0x2")}set adapter(t){this.editor.plugins[kc("0x7")](Va).adapter=t}get[kc("0x6")](){return this.editor[kc("0x5")][kc("0x7")](Va)[kc("0x6")]}addSuggestion(t){return this[kc("0x0")][kc("0x5")][kc("0x7")](Va)[kc("0x3")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x0")][kc("0x5")][kc("0x7")](Va)[kc("0x1")]({skipNotAttached:t,toJSON:e})}[kc("0x4")](t){return this.editor[kc("0x5")][kc("0x7")](Va)[kc("0x4")](t)}}const vc=["getDataWithAcceptedSuggestions","create","getDataWithDiscardedSuggestions","pluginName","getUser","Pagination","editor","users","getSuggestions","requires","map","function","reduce","trackChangesData.editorCreator","end","constructor","get","discardAllSuggestions","rootsAttributes","init","trackChangesData","execute","TrackChangesDataGetter","define","config","track-changes-data-invalid-editor-creator","destroy","Users","data","TrackChangesData","name","createElement","getRootsAttributes","document","TrackChangesEditing","editorCreator","CommentsRepository","addSuggestionData","getRootNames","plugins","set","result","addUser","appendChild","_adapter"];var Rc,Sc;Rc=vc,Sc=475,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x19")];class Nc extends t.Plugin{static get[Ic("0x1d")](){return[Va]}static get[Ic("0x17")](){return Ic("0x4")}init(){const t=this[Ic("0x1a")];if(t.config[Ic("0x2b")](Ic("0x21"),(e=>{const n=t.model.document.getRootNames().reduce(((t,e)=>(t[e]="",t)),{});return t[Ic("0x23")][Ic("0x15")](n,e)})),Ic("0x1f")!=typeof t[Ic("0x2c")].get("trackChangesData").editorCreator)throw new e.CKEditorError(Ic("0x0"))}[Ic("0x14")](t){return Oc(this.editor,!0,t)}[Ic("0x16")](t){return Oc(this.editor,!1,t)}}class Mc extends t.Plugin{static get[Ic("0x17")](){return Ic("0x2a")}constructor(t){super(t),this[Ic("0x10")]=Ic("0x22")}[Ic("0x27")](){this[Ic("0x1a")][Ic("0xe")][Ic("0x24")](Ic("0xb"))[Ic("0x13")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Ic("0x1a")].plugins[Ic("0x24")]("TrackChangesEditing")[Ic("0x13")]=null}}function wc(t){return void 0!==t[Ic("0x7")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0xe")].push(Va,Mc),o[Ic("0x26")]=wc(t)?t[Ic("0x7")]():void 0;const s=document.createDocumentFragment(),i=t[Ic("0x2c")][Ic("0x24")](Ic("0x28"))[Ic("0xa")],x=await i(o,(()=>function(t){const e=document[Ic("0x6")]("div");return t[Ic("0x12")](e),e}(s)));!function(t,e){const n=t.model[Ic("0x8")][Ic("0xd")]()[Ic("0x20")](((e,n)=>(e[n]=t[Ic("0x3")].get({rootName:n}),e)),{}),o=t[Ic("0xe")].get(Ic("0x2"))[Ic("0x1b")][Ic("0x1e")]((t=>({id:t.id,name:t[Ic("0x5")]}))),s=t[Ic("0xe")][Ic("0x24")](Ic("0x9"))[Ic("0x1c")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0xe")][Ic("0x24")](Ic("0x2")),i=e.plugins[Ic("0x24")](Ic("0x9"));for(const t of o)r[Ic("0x18")](t.id)||r[Ic("0x11")](t);r.me||r.useAnonymousUser();for(const t of s)i[Ic("0xc")](t);e[Ic("0x3")][Ic("0xf")](n)}(t,x),x[Ic("0x29")](e?"acceptAllSuggestions":Ic("0x25"));const a=wc(x)?x.getFullData(n):x[Ic("0x3")][Ic("0x24")](n);return await x[Ic("0x1")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();