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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>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})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["editor","TrackChangesCommand","commands","_enableCommands","affectsData","_enabledCommands","refresh","_disableUnsupportedCommands","has","value","isEnabled","forceDisabled"];var c,l;c=a,l=453,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("0x8")]=e,this.value=!1,this[d("0x9")](),this._isEnabledBasedOnSelection=!1}[d("0x9")](){this[d("0x1")]=!0}execute(){this[d("0x0")]=!this.value,this.value?this._disableUnsupportedCommands():this._enableCommands()}[d("0xa")](){for(const t of this[d("0x3")].commands[d("0x5")]())t[d("0x7")]&&!this[d("0x8")][d("0xb")](t)&&t[d("0x2")](d("0x4"))}[d("0x6")](){for(const t of this[d("0x3")][d("0x5")][d("0x5")]())t.affectsData&&!this._enabledCommands[d("0xb")](t)&&t.clearForceDisabled(d("0x4"))}}const g=["canEditAt","getRanges","editor","model","acceptSuggestion","_suggestions","get","_isEnabledBasedOnSelection","execute","refresh"];var m,f;m=g,f=154,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("0x1")]=e,this.refresh(),this[h("0x3")]=!1}[h("0x5")](){this.isEnabled=!0}[h("0x4")](t){const n=this[h("0x1")][h("0x2")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x7")]();this.editor[h("0x9")][h("0x6")](o)&&this[h("0x8")].plugins[h("0x2")]("TrackChangesEditing")[h("0x0")](n)}}const b=["editor","getRanges","refresh","get","model","_suggestions","isEnabled","canEditAt","TrackChangesEditing","execute","discardSuggestion"];var E,_;E=b,_=387,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("0x3")]=e,this[T("0x0")](),this._isEnabledBasedOnSelection=!1}[T("0x0")](){this[T("0x4")]=!0}[T("0x7")](t){const n=this[T("0x3")][T("0x1")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0xa")]();this[T("0x9")][T("0x2")][T("0x5")](o)&&this[T("0x9")].plugins[T("0x1")](T("0x6"))[T("0x8")](n)}}const y=["createPositionAt","deletion","color","start","type","add"," [color ","isInContent","join","createPositionAfter","isCollapsed","replace","value","isMultiRange","execute","isArray","end","change","isTouching","createPositionBefore","content","next","isObject","getMarkers","length","schema","map","isIntersecting","createRange","getRange","sort"];var k,A;k=y,A=242,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x5")](((t,e)=>v("0x7")==t[v("0xa")]&&v("0x7")!=e.type?-1:v("0x7")!=t[v("0xa")]&&v("0x7")==e[v("0xa")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x0")];for(;o<t[v("0x1e")];){const i=t[o],x=t[o+1];n||(n=e[v("0x19")](i)),I(e,i,x)||(s.push(e[v("0x3")](n,r[v("0x1c")](i)?e.createPositionAfter(i):e[v("0x6")](i,v("0x16")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xf")](e),s=t[v("0x19")](n);return o[v("0x18")](s)}function L(t,e,n){for(;n[v("0x1e")];){const o=n.splice(0,100);t[v("0x17")]((()=>{for(const t of o)t[v("0xd")]&&e[v("0x14")](t.id)}))}}const N=["isInContent","values","getRanges","canEditAt","refresh","_suggestions","isEnabled","_isEnabledBasedOnSelection","_command","model","from","editor","execute","some"];var w,M;w=N,M=419,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x9")]=e,this[O("0x6")]=n,this[O("0x5")](),this[O("0x8")]=!1}refresh(){const t=Array[O("0xb")](this[O("0x6")][O("0x2")]())[O("0x0")]((t=>t[O("0x1")]));this[O("0x7")]=this[O("0x9")][O("0x7")]&&t}[O("0xd")](){const t=R(Array[O("0xb")](this._suggestions[O("0x2")]()));for(const e of t){const t=e[O("0x3")]();if(!this[O("0xc")][O("0xa")][O("0x4")](t))return}L(this[O("0xc")][O("0xa")],this[O("0x9")],t)}}const P=["size","execute","values","refresh","from","editor","_command","_suggestions","_selectedSuggestions","_isEnabledBasedOnSelection","isEnabled","canEditAt","model","selection"];var D,B;D=P,B=482,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("0x0")]=e,this[j("0x1")]=n,this._selectedSuggestions=new Set,this[j("0xb")](),this[j("0x3")]=!1}refresh(){const t=this[j("0xd")][j("0x6")].document[j("0x7")],e=Array[j("0xc")](this[j("0x1")][j("0xa")]());this[j("0x2")]=function(t,e){const n=Array.from(t.getRanges()),o=new Set;for(const s of e)if(s[v("0xd")])for(const e of n)for(const n of s[v("0x1d")]()){const r=n[v("0x4")]();(e[v("0x2")](r)||t[v("0x10")]&&!s[v("0x13")]&&s[v("0x1b")]&&r[v("0x16")][v("0x18")](e[v("0x9")]))&&o[v("0xb")](s)}return o}(t,e),this[j("0x4")]=this._command[j("0x4")]&&!!this._selectedSuggestions[j("0x8")]}[j("0x9")](){const t=R(Array[j("0xc")](this[j("0x2")]));for(const e of t){const t=e.getRanges();if(!this[j("0xd")].model[j("0x5")](t))return}L(this.editor[j("0x6")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const 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 wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(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(wt){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 wt?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]=wt&&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=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,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 we=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 Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};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)?we(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)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const 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 wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(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?wn(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 wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var 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 wo=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 Mo=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:Mo.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):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["isInContent","from","end","split","author","substr","clear","onAccept","set","start","size","suggestion:","_onAttributesChange","reduce","_onDiscard","commentThread","createdAt","accept","decorate","next","getMarkerNames","discard","getMarkers","creator","isExternal","@external","getRanges","_onAccept","delete","attributes","_saved","onAttributesChange","length","change","_markerNames","filter","type","push","onDiscard","toJSON","setAttribute","addRange","removeMarker","getMultiRangeId","removeMarkers","head","getFirstRange","data","getFirstMarker","addMarkerName","_model","previous","subType","addMarker","hasComments","getRange","map"];var $o,Jo;$o=Xo,Jo=320,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this.type=e[Qo("0x1")],this[Qo("0x11")]=e[Qo("0x11")]||null,this.author=e[Qo("0x1a")],this[Qo("0x2d")]=e[Qo("0x2d")]||e[Qo("0x1a")],this[Qo("0x2e")]=Boolean(e[Qo("0x33")]&&e[Qo("0x33")][Qo("0x2f")]),this[Qo("0xc")]=null,this[Qo("0xf")]=t,this[Qo("0x31")]=e[Qo("0x1d")],this[Qo("0x24")]=e[Qo("0x3")],this[Qo("0x22")]=e[Qo("0x35")],this[Qo("0x38")]=new Set,this[Qo("0x26")]=null,this.set("authoredAt",null),this[Qo("0x1e")](Qo("0x33"),e[Qo("0x33")]||{}),this[Qo("0x1e")](Qo("0x10"),null),this[Qo("0x1e")](Qo("0x29"),null),this[Qo("0x1e")](Qo("0x25"),null),this[Qo("0x1e")](Qo("0x34"),!1),this.decorate(Qo("0x27")),this[Qo("0x28")](Qo("0x2b"))}get[Qo("0xa")](){let t=this;for(;t[Qo("0x10")];)t=t.previous;return t}get[Qo("0x13")](){return!!this[Qo("0x25")]&&this[Qo("0x25")].length>0}get isMultiRange(){return 0!=this._markerNames[Qo("0x20")]&&6==Array[Qo("0x17")](this[Qo("0x38")])[0][Qo("0x19")](":")[Qo("0x36")]}get[Qo("0x16")](){return null!==this.getFirstMarker()}[Qo("0xe")](t){this[Qo("0x38")].add(t)}[Qo("0x2a")](){return Array[Qo("0x17")](this[Qo("0x38")])}[Qo("0x2c")](){return this[Qo("0x2a")]()[Qo("0x15")]((t=>this[Qo("0xf")].markers.get(t)))[Qo("0x0")]((t=>t))}getFirstMarker(){return this[Qo("0x2c")]()[0]||null}removeMarkers(){this[Qo("0xf")].change((t=>{for(const e of this[Qo("0x2c")]())t[Qo("0x7")](e)})),this[Qo("0x38")][Qo("0x1c")]()}[Qo("0x7")](t){this[Qo("0xf")][Qo("0x37")]((e=>{e[Qo("0x7")](t)})),this[Qo("0x38")][Qo("0x32")](t)}[Qo("0x6")](t){const e=Qo("0x21")+this[Qo("0x1")]+":"+this[Qo("0x11")]+":"+this.id+":"+this.creator.id+":"+Zo.getMultiRangeId();this[Qo("0xe")](e),this[Qo("0xf")][Qo("0x37")]((n=>{n[Qo("0x12")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this.getRanges())if(e.isIntersecting(t))return!0;return!1}[Qo("0x30")](){return this[Qo("0x2c")]()[Qo("0x15")]((t=>t.getRange()))}getItems(){return this[Qo("0x30")]()[Qo("0x23")](((t,e)=>[...t,...e.getItems()]),[])}[Qo("0xb")](){var t;return(null===(t=this[Qo("0xd")]())||void 0===t?void 0:t[Qo("0x14")]())||null}getContainedElement(){const t=this[Qo("0x30")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0x1f")].nodeAfter,o=e[Qo("0x18")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Qo("0x27")](){this[Qo("0x31")](this[Qo("0x30")](),this[Qo("0xc")],this.attributes),this[Qo("0x9")]()}[Qo("0x2b")](){this._onDiscard(this[Qo("0x30")](),this[Qo("0xc")],this.attributes),this[Qo("0x9")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0xa")];for(;e;)t[Qo("0x2")](e),e=e.next;return t}[Qo("0x5")](t,e){const n=eo(this[Qo("0x33")]);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x33")]=n,this._onAttributesChange(n))}removeAttribute(t){const e=eo(this[Qo("0x33")]);qo(e,t),Go(e,this.attributes)||(this[Qo("0x33")]=e,this[Qo("0x22")](this[Qo("0x33")]))}[Qo("0x4")](){return{id:this.id,type:this[Qo("0x11")]?this[Qo("0x1")]+":"+this[Qo("0x11")]:this[Qo("0x1")],authorId:this.creator.id,createdAt:this.createdAt,hasComments:this[Qo("0x13")],data:this.data,attributes:this[Qo("0x33")]}}static[Qo("0x8")](){return(0,e.uid)()[Qo("0x1b")](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=["previousSibling","pop","item","removeContainer","removeObject","getWalker","_customCallbacks","ELEMENT_SPACE","removeEmptyContainer","*Split:* %0","EmptyContainer","$textProxy","remove","_locale","addEmptyContainer","match","deletion","insertion","addObject","*Merge:* %0","text","elementEnd","$1 $2","getFirstRange","get","set","Object","getDescriptions","type","add","matchingCallback","name","function","*Remove:* %0","checkChild","quantity","_itemLabels","isObject","_addDescriptionItems","isEqual","Container","skip","data","_itemLabelsCallbacks","_resolveDescriptionItems","replace","$text","label","start","indexOf","nextSibling","push","REPLACE_TEXT","_schema","length","element","getItemLabel","elementStart","*Insert:* %0","isEmpty","addContainer"];var es,ns;es=ts,ns=418,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("0xf")]=[],this[os("0x2d")]=new Map,this[os("0x34")]=[],this[os("0x1")]=t,this[os("0x16")]=e}[os("0x24")](t){const e=[];for(let n=0;n<t[os("0x2")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0xf")]){const n=t(o);if(n){os("0x25")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x2f")](e,o);const s=t[n+1];if(s&&!o[os("0x20")]().end[os("0x30")](s.getFirstRange()[os("0x39")])){const t=e[e[os("0x2")]-1],n=os("0x1a")==o[os("0x25")]?os("0x26"):os("0x15");t&&"text"==t[os("0x25")]&&(t[n]+="\n")}}}return this[os("0x35")](e)}registerDescriptionCallback(t){this[os("0xf")].push(t)}registerElementLabel(t,n,o=e.priorities.normal){os("0x29")==typeof t?(0,e.insertToPriorityArray)(this[os("0x34")],{matchingCallback:t,label:n,priority:o}):this[os("0x2d")][os("0x22")](t,n)}[os("0x4")](t,e=1){let n;for(const e of this[os("0x34")])if(e[os("0x27")](t)){n=e[os("0x38")];break}return n||(n=this._itemLabels[os("0x21")](t[os("0x28")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x28")]}[os("0x2f")](t,e){const n=e[os("0x20")]()[os("0xe")](),o=os("0x1a")==e[os("0x25")]?"add":os("0x15");for(const e of n){const s=e[os("0xb")],r=t[t[os("0x2")]-1];if(s.is(os("0x14")))r&&r[os("0x25")].indexOf("Container")>-1&&t[os("0xa")](),r&&os("0x1d")==r.type?r[o]+=s[os("0x33")]:t[os("0x3c")]({type:"text",add:os("0x26")==o?s[os("0x33")]:"",remove:os("0x15")==o?s[os("0x33")]:""});else if(this[os("0x1")][os("0x2e")](s)){const i=s;if(r&&r[os("0x25")].indexOf(os("0x31"))>-1&&t[os("0xa")](),os("0x1e")==e[os("0x25")])continue;r&&r[os("0x25")]==o+os("0x23")&&r.element.name==i[os("0x28")]?r.quantity++:t[os("0x3c")]({type:o+os("0x23"),element:i,quantity:1}),n[os("0x32")]((t=>!(os("0x1e")==t.type&&t[os("0xb")]==s)))}else if(this[os("0x1")][os("0x2b")](s,os("0x37"))||s.is(os("0x3"),"softBreak")){const n=s;if(os("0x26")==o&&os("0x5")==e[os("0x25")]||os("0x15")==o&&os("0x1e")==e.type)continue;if(r&&-1==r.type[os("0x3a")](os("0x31"))){os("0x1d")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x26")==o?n[os("0x3b")]&&!this[os("0x1")][os("0x2e")](n.nextSibling)?n[os("0x3b")]:null:n[os("0x9")]&&!this[os("0x1")][os("0x2e")](n[os("0x9")])?n[os("0x9")]:null,n[os("0x7")]||i&&i[os("0x7")]){const e=i&&i.isEmpty?i:n;r&&r[os("0x25")]==o+os("0x13")&&r[os("0x3")][os("0x28")]==e[os("0x28")]?r[os("0x2c")]++:t[os("0x3c")]({type:o+os("0x13"),element:e,quantity:1})}else t.push({type:o+os("0x31"),element:n})}}}[os("0x35")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x25")]){case os("0x1d"):if(o[os("0x26")]=o[os("0x26")][os("0x36")](/(\S)\u000A+(\S)/g,os("0x1f")).replace(/\u000A/g,""),o[os("0x15")]=o.remove[os("0x36")](/(\S)\u000A+(\S)/g,os("0x1f"))[os("0x36")](/\u000A/g,""),""!=o[os("0x26")]&&""!=o[os("0x15")]){n[os("0x3c")]({type:os("0x36"),content:Yo(e,os("0x0"),['"'+o.remove+'"','"'+o[os("0x26")]+'"'])});continue}if(null!=o[os("0x26")][os("0x18")](/^ +$/)){n[os("0x3c")]({type:"insertion",content:Yo(e,os("0x6"),Yo(e,os("0x10"),o[os("0x26")][os("0x2")]))});continue}if(null!=o[os("0x15")][os("0x18")](/^ +$/)){n[os("0x3c")]({type:os("0x19"),content:Yo(e,os("0x2a"),Yo(e,os("0x10"),o[os("0x15")].length))});continue}if(""!=o.add){n[os("0x3c")]({type:"insertion",content:Yo(e,os("0x6"),'"'+o[os("0x26")]+'"')});continue}n.push({type:os("0x19"),content:Yo(e,os("0x2a"),'"'+o[os("0x15")]+'"')});continue;case os("0x17"):case os("0x1b"):n[os("0x3c")]({type:os("0x1a"),content:Yo(e,os("0x6"),this[os("0x4")](o.element,o[os("0x2c")]))});continue;case os("0x11"):case os("0xd"):n.push({type:os("0x19"),content:Yo(e,os("0x2a"),this[os("0x4")](o.element,o[os("0x2c")]))});continue;case os("0x8"):n.push({type:os("0x1a"),content:Yo(e,os("0x12"),this.getItemLabel(o[os("0x3")],o[os("0x2c")]))});continue;case os("0xc"):n[os("0x3c")]({type:os("0x19"),content:Yo(e,os("0x1c"),this[os("0x4")](o.element,o[os("0x2c")]))});continue}n[os("0x3c")](o)}return n}}const rs=["AlignmentEditing","FORMAT_JUSTIFY_TEXT","afterInit","value","editor","model","TrackChangesEditing","right","checkAttribute","locale","schema","getSelectedBlocks","center","plugins","_descriptionFactory","contentLanguageDirection","commandParams","change","justify","FORMAT_ALIGN_TO_CENTER","format","commandName","enableCommand","FORMAT_ALIGN_TO_RIGHT","alignment","markBlockFormat","FORMAT_ALIGN_TO_LEFT","left","document","registerDescriptionCallback","has","ltr","from","selection"];var is,xs;is=rs,xs=373,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x3")](){const t=this[as("0x5")],e=t[as("0xa")];if(!t[as("0xe")][as("0x1f")](as("0x1")))return;const n=t[as("0xe")].get(as("0x7"));n[as("0x17")](as("0x19"),((e,o={})=>{let s=o.value;o[as("0x4")]||(s=as("0x20")===t[as("0xa")][as("0x10")]?as("0x1c"):as("0x8"));const r=Array[as("0x21")](this[as("0x5")][as("0x6")][as("0x1d")][as("0x0")][as("0xc")]()).filter((t=>function(t,e,n){const o=t.getAttribute(as("0x19"))||null;return e[as("0x9")](t,as("0x19"))&&n!=o}(t,this.editor[as("0x6")][as("0xb")],s)));t[as("0x6")][as("0x12")]((()=>{for(const t of r)n[as("0x1a")](t,{commandName:as("0x19"),commandParams:[{value:s}]})}))})),n[as("0xf")][as("0x1e")]((t=>{const{data:n}=t;if(n&&as("0x19")==n[as("0x16")]){const t=n[as("0x11")][0].value;return{type:as("0x15"),content:Yo(e,"*Format:* %0",function(t){switch(t){case as("0x1c"):return Yo(e,as("0x1b"));case as("0x8"):return Yo(e,as("0x18"));case as("0xd"):return Yo(e,as("0x14"));case as("0x13"):return Yo(e,as("0x2"))}}(t))}}}))}}const ls=["TrackChangesEditing","isContent","ck-suggestion-marker-","toViewElement","createRangeOn","type","ck-suggestion-marker--active","model","test","nextSibling","activeMarkers","writer","item","isBlock","getAttribute","isAtEnd","mapper","includes","consumable","element","start","markerRange","previousPosition","listItem","getItems","name","listIndent","span","parent","toViewPosition","getCustomProperty","bindElementToMarker","addClass","markerName","schema","insert","createUIElement"];var ds,us;ds=ls,us=279,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("0x4")]())s.hasAttribute(t)&&o.push(n[gs("0x15")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0x3"))){let n=t[gs("0x1a")];for(;n&&n.is(gs("0x24"),gs("0x3"))&&n[gs("0x1f")](gs("0x6"))>0;)e.push(n),n=n[gs("0x1a")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins.get(gs("0x11"));return(s,r,i)=>{if(!i[gs("0x23")][gs("0x19")](r[gs("0x1")],s[gs("0x5")]))return;const x=r[gs("0x1")].getWalker(),a=r.markerRange[gs("0x0")],c=t[gs("0x18")][gs("0xe")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x1d")];u=u||c[gs("0x12")](e);const n=i[gs("0x21")][gs("0x14")](e);if(n&&n[gs("0xa")]("addHighlight"))return;"elementEnd"==t[gs("0x16")]&&c[gs("0x1e")](e)&&!c.isLimit(e)&&(e.nextSibling||a[gs("0x20")]?l&&l[gs("0x8")]==e||(l=e,m(t.previousPosition),g=!0):d=d||t[gs("0x2")])}function m(t){const s=i[gs("0x1c")][gs("0x10")](gs("0x7"),{class:gs("0x13")+e}),x=i.mapper[gs("0x9")](t);n&&o[gs("0x1b")][gs("0x22")](r[gs("0xd")])&&i[gs("0x1c")][gs("0xc")](gs("0x17"),s),i.writer[gs("0xf")](x,s),i[gs("0x21")][gs("0xb")](s,r[gs("0xd")])}u||g||!d||m(d)}}const ps=["afterInit","model","FORMAT_UNDERLINE","StrikethroughEditing","FORMAT_BOLD","get","code","FORMAT_SUPERSCRIPT","UnderlineEditing","FORMAT_CODE","SuperscriptEditing","format","markInlineFormat","subscript","editor","TrackChangesEditing","bold","slice","forceValue","isCollapsed","*Remove format:* %0","plugins","getRanges","value","FORMAT_ITALIC","FORMAT_SUBSCRIPT","strikethrough","from","change","toLowerCase","locale","underline","SubscriptEditing","commands","FORMAT_STRIKETHROUGH","superscript","_descriptionFactory","ItalicEditing","has","registerDescriptionCallback","document"];var bs,Es;bs=ps,Es=209,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=["BoldEditing",_s("0x21"),_s("0x4"),"CodeEditing",_s("0x28"),_s("0x1c"),_s("0x6")];class Cs extends t.Plugin{[_s("0x25")](){const t=this[_s("0xa")],e=t[_s("0x26")],n=t[_s("0x11")][_s("0x1")](_s("0xb")),o=t[_s("0x1a")];for(const o of Ts){if(!t[_s("0x11")][_s("0x22")](o))continue;const s=o[_s("0xd")](0,-7)[_s("0x19")](),r=t[_s("0x1d")][_s("0x1")](s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0x24")].selection;if(i[_s("0xf")])return void t(o);const x=void 0!==o.forceValue?o[_s("0xe")]:!r[_s("0x13")];e[_s("0x18")]((()=>{const t=Array[_s("0x17")](i[_s("0x12")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x8")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x20")][_s("0x23")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s.commandParams[0][_s("0xe")]?{type:_s("0x7"),content:Yo(o,"*Format:* %0",e)}:{type:_s("0x7"),content:Yo(o,_s("0x10"),e)}}))}s(_s("0xc"),Yo(o,_s("0x0"))),s("italic",Yo(o,_s("0x14"))),s(_s("0x1b"),Yo(o,_s("0x27"))),s(_s("0x2"),Yo(o,_s("0x5"))),s(_s("0x16"),Yo(o,_s("0x1e"))),s(_s("0x9"),Yo(o,_s("0x15"))),s(_s("0x1f"),Yo(o,_s("0x3")))}}const ys=["afterInit","*Format:* %0","blockQuote","plugins","_descriptionFactory","forceValue","from","name","has","parent","checkChild","enableCommand","document","schema","TrackChangesEditing","*Remove format:* %0","ELEMENT_BLOCK_QUOTE","locale","value","selection","getSelectedBlocks","model","commands","get","editor","markBlockFormat","filter","commandParams","format"];var ks,As;ks=ys,As=110,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x6")](){const t=this[vs("0x1")],e=t[vs("0x17")];if(!t[vs("0x9")][vs("0xe")]("BlockQuoteEditing"))return;const n=t.plugins[vs("0x0")](vs("0x14")),o=this.editor[vs("0x1c")].get(vs("0x8"));n[vs("0x11")](vs("0x8"),((e,s={})=>{const r=this[vs("0x1")][vs("0x1b")][vs("0x12")][vs("0x19")],i=s&&void 0!==s[vs("0xb")]?s[vs("0xb")]:!o[vs("0x18")];let x=[];if(i){const e=Array[vs("0xc")](r[vs("0x1a")]())[vs("0x3")]((t=>Ss(t)||function(t,e){const n=e[vs("0x10")](t[vs("0xf")],vs("0x8")),o=e.checkChild(["$root",vs("0x8")],t);return n&&o}(t,this[vs("0x1")][vs("0x1b")][vs("0x13")])));x=S(e,t[vs("0x1b")])}else{const e=Array[vs("0xc")](r[vs("0x1a")]())[vs("0x3")]((t=>Ss(t)));x=S(e,t[vs("0x1b")])}t[vs("0x1b")].change((()=>{for(const t of x)n[vs("0x2")](t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[vs("0xa")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x8")==n.commandName){const t=Yo(e,vs("0x16"));return n[vs("0x4")][0][vs("0xb")]?{type:vs("0x5"),content:Yo(e,vs("0x7"),t)}:{type:vs("0x5"),content:Yo(e,vs("0x15"),t)}}}))}}function Ss(t){return"blockQuote"==t[vs("0xf")][vs("0xd")]}const Is=["get","afterInit","editor","ckbox","TrackChangesEditing","plugins","commands"];var Ls,Ns;Ls=Is,Ns=350,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{[ws("0x1")](){const t=this[ws("0x2")];t[ws("0x6")][ws("0x0")](ws("0x3"))&&t[ws("0x5")][ws("0x0")](ws("0x4")).enableCommand(ws("0x3"))}}const Os=["get","language","selection","blockName","config","editor","parent","CodeBlock","registerDescriptionCallback","filter","registerElementLabel","enableCommand","TrackChangesEditing","name","model","getSelectedBlocks","ELEMENT_CODE_BLOCK","checkChild","afterInit","from","change","outdentCodeBlock","indentCodeBlock","*Remove format:* %0","markBlockFormat","languages","commandParams","codeBlock","_descriptionFactory","forceValue","find","format","plugins"];var Fs,Ps;Fs=Os,Ps=131,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x13")](){const t=this[Ds("0x6")];if(!t[Ds("0x0")].has(Ds("0x8")))return;const e=t[Ds("0x0")].get(Ds("0xd")),n=t.locale,o=t[Ds("0x5")][Ds("0x1")]("codeBlock")[Ds("0x1a")],s=t.commands.get(Ds("0x1c"));e[Ds("0xc")](Ds("0x17")),e[Ds("0xc")](Ds("0x16")),e[Ds("0xc")]("codeBlock",((n,r={})=>{const i=t.model,x=t[Ds("0xf")].document[Ds("0x3")],a=r&&void 0!==r[Ds("0x1e")]?r.forceValue:!s.value;let c;r[Ds("0x2")]||(r.language=o[0][Ds("0x2")]),c=a?Array[Ds("0x14")](x[Ds("0x10")]()).filter((t=>{return js(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n.isLimit(e)&&n[Ds("0x12")](e[Ds("0x7")],"codeBlock"));var e,n})):Array[Ds("0x14")](x[Ds("0x10")]())[Ds("0xa")]((t=>js(t)));const l=S(c,i);i[Ds("0x15")]((()=>{for(const t of l)e[Ds("0x19")](t,{commandName:Ds("0x1c"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x4")})}))})),e[Ds("0x1d")][Ds("0xb")]("codeBlock",(t=>Yo(n,Ds("0x11"),t))),e[Ds("0x1d")][Ds("0x9")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&"codeBlock"==r.commandName){const t=r[Ds("0x1b")][0][Ds("0x2")],s=e(o[Ds("0x1f")]((e=>e[Ds("0x2")]===t)).label);return r[Ds("0x1b")][0][Ds("0x1e")]?{type:Ds("0x20"),content:Yo(n,"*Format:* %0",Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ds("0x20"),content:Yo(n,Ds("0x18"),Yo(n,Ds("0x11"),1))}}}))}}function js(t){return Ds("0x1c")==t[Ds("0xe")]}const Us=["afterInit","TrackChangesEditing","addCommentThread","has","CommentsEditing","enableCommand","plugins"];var Gs,Hs;Gs=Us,Hs=449,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x6")](){const t=this.editor;t[zs("0x5")][zs("0x2")](zs("0x3"))&&t.plugins.get(zs("0x0"))[zs("0x4")](zs("0x1"))}}var Vs=n(181);const Ks=["options","createSelection","writer","batch","setSelection","downcastDispatcher","bind","deleteForward","createRange","markerName","selection","model","addMarker:suggestion:deletion","remove","markerNameToElements","TrackChangesEditing","isCollapsed","merge","mapper","uiElement","unbindElementFromMarkerName","fromRange","showSuggestionHighlights","enableCommand","init","rootName","editing","buffer","modifySelection","lock","get","start","removeMarker:suggestion:deletion","unit","high","end","unlock","detach","plugins","getFirstRange","commands","$graveyard","forward"];var qs,Xs;qs=Ks,Xs=359,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get requires(){return[Vs.Delete]}[$s("0x9")](){const t=this.editor,e=t[$s("0x17")][$s("0xf")]($s("0x0"));e[$s("0x8")]("delete");const n=t[$s("0x19")].get("deleteForward");e.enableCommand($s("0x23"),((e,o={})=>{const s=t[$s("0x27")][$s("0x1d")](t[$s("0x27")].document[$s("0x26")]);s[$s("0x1")]&&t[$s("0x27")][$s("0xd")](s,{direction:$s("0x1b"),unit:o[$s("0x12")]});const r=s[$s("0x18")](),x=i.LiveRange[$s("0x6")](r);let a;e(o),a=$s("0x1a")==x.root[$s("0xa")]?t[$s("0x27")][$s("0x24")](r[$s("0x10")]):t[$s("0x27")][$s("0x24")](x[$s("0x10")],x[$s("0x14")]),x[$s("0x16")](),t[$s("0x27")].enqueueChange(n[$s("0xc")][$s("0x1f")],(t=>{n[$s("0xc")][$s("0xe")](),t[$s("0x20")](t[$s("0x24")](a[$s("0x14")])),n[$s("0xc")][$s("0x15")]()}))})),t[$s("0xb")][$s("0x21")].on($s("0x28"),hs(t,$s("0x2")),{priority:$s("0x13")}),t.data.downcastDispatcher.on($s("0x28"),((e,n,o)=>{o[$s("0x1c")][$s("0x7")]&&hs(t,$s("0x2"),{showActiveMarker:!1})[$s("0x22")](this)(e,n,o)}),{priority:$s("0x13")}),t[$s("0xb")][$s("0x21")].on($s("0x11"),((t,e,n)=>{const o=n[$s("0x3")][$s("0x2a")](e[$s("0x25")]);if(o)for(const t of o)t.is($s("0x4"))&&(n[$s("0x3")][$s("0x5")](t,e.markerName),n[$s("0x1e")][$s("0x29")](t))}),{priority:$s("0x13")})}}const Qs=["map","hasAttribute","containsItem","commandName","markMultiRangeBlockFormat","execute","schema","*Outdent:* %0","plugins","previousSibling","registerCustomCallback","*Merge:* %0","indentList","splitListItemBefore","end","isFirstBlockOfListItem","add","isObject","DocumentListUtils","registerElementLabel","getSelectedBlocks","createRange","enableCommand","ELEMENT_NUMBERED_LIST","document","numberedList","before","documentList","createPositionAt","nextSibling","*Format:* remove from %0","multipleBlocks","refresh","*Indent:* %0","value","registerDescriptionCallback","has","model","format","parent","expandListBlocksToCompleteList","slice","change","_suggestionFactory","listItemId","fromRange","toUpperCase","listType","from","nodeAfter","length","bulletedList","TrackChangesEditing","formatBlock","commands","_descriptionFactory","afterInit","setSelection","start","forceValue","_LIST","mergeListItemForward","push","commandParams","getAttribute","editor","get","ELEMENT_BULLETED_LIST","getFirstRange","ELEMENT_","markBlockFormat","listIndent","selection","outdentList","*Format:* insert into %0","ELEMENT_LIST_ITEM","splitListItemAfter","*Change to:* %0"];var Zs,Ys;Zs=Qs,Ys=397,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x31")](){const t=this[tr("0x3a")];if(!t.plugins[tr("0x1d")]("DocumentListEditing"))return;const e=t.locale,n=t.plugins[tr("0x3b")](tr("0x2d")),o=t[tr("0x1")][tr("0x3b")](tr("0xb"));function s(e){return()=>{const s=t[tr("0x2f")][tr("0x3b")](e);let r=Array[tr("0x29")](t[tr("0x1e")][tr("0x11")][tr("0x41")].getSelectedBlocks());if(a(e)){r=o[tr("0x21")](r);const t=[];for(const e of r)o[tr("0x8")](e)&&t[tr("0x37")](e);r=t}t.model[tr("0x23")]((()=>{n[tr("0x4b")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x1b")]}],formatGroupId:tr("0x28")},[],tr("0x14"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x29")](t);const n=e.findIndex((t=>!t[tr("0x48")](tr("0x25"))));return n>-1&&(e=e[tr("0x22")](0,n)),e}(t[tr("0x1e")].document[tr("0x41")][tr("0xd")]()),s=o[o[tr("0x2b")]-1],r=t[tr("0x1e")][tr("0x4d")][tr("0xa")](s)?"after":tr("0x7"),i=t[tr("0x1e")][tr("0xe")](t.model[tr("0x15")](o[0],tr("0x13")),t[tr("0x1e")][tr("0x15")](s,r));t.model[tr("0x23")]((()=>{n[tr("0x3f")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x28")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[tr("0x39")](tr("0x40"))>n.getAttribute(tr("0x40"));)e[tr("0x9")](t),t=t.nextSibling}return Array[tr("0x29")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x1e")][tr("0x11")].selection[tr("0xd")]().next()[tr("0x1b")],s=t[tr("0x1e")][tr("0x15")](o,tr("0x13")),r=t[tr("0x1e")].createPositionAt(o,0),i=t[tr("0x1e")][tr("0xe")](s,r);t[tr("0x1e")][tr("0x23")]((()=>{n[tr("0x3f")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[tr("0x2f")][tr("0x3b")](tr("0x2c"))[tr("0x1b")],o=t[tr("0x2f")].get(tr("0x12"))[tr("0x1b")];return"numberedList"===e?n:o}n[tr("0xf")](tr("0x12"),s(tr("0x12"))),n[tr("0xf")](tr("0x2c"),s(tr("0x2c"))),n[tr("0xf")]("indentList",r(tr("0x5"))),n[tr("0xf")](tr("0x42"),r(tr("0x42"))),n.enableCommand(tr("0x45"),x(tr("0x45"))),n[tr("0xf")](tr("0x6"),x(tr("0x6"))),n._descriptionFactory[tr("0xc")]((function(e){const n=!t.model[tr("0x4d")][tr("0xa")](e),o=e[tr("0x2")],s=e[tr("0x16")],r=e.getAttribute("listItemId"),i=!o||o[tr("0x39")](tr("0x25"))!==r,x=!s||s.getAttribute(tr("0x25"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x44"),t))),n[tr("0x30")][tr("0x1c")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n.commandName){case"bulletedList":r=n.commandParams[0].forceValue,i=a(n[tr("0x4a")]),o=tr(r?"0x43":"0x17"),i&&(o=tr("0x46")),s={type:tr("0x1f"),content:Yo(e,o,Yo(e,tr("0x3c")))};break;case tr("0x12"):r=n[tr("0x38")][0][tr("0x34")],i=a(n[tr("0x4a")]),o=tr(r?"0x43":"0x17"),i&&(o=tr("0x46")),s={type:tr("0x1f"),content:Yo(e,o,Yo(e,tr("0x10")))};break;case tr("0x5"):o=tr("0x1a"),s={type:tr("0x1f"),content:Yo(e,o,Yo(e,tr("0x44")))};break;case tr("0x42"):o=function(t){const e=t.getFirstRange();let n=e.start.nodeAfter;for(;n&&e[tr("0x49")](n);){if(n.getAttribute("listIndent")>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0x3d")]()[tr("0x33")][tr("0x2a")];return tr("0x3e")+e[tr("0x39")](tr("0x28"))[tr("0x27")]()+tr("0x35")}(t))):Yo(e,tr("0x0"),Yo(e,tr("0x44"))),s={type:tr("0x1f"),content:o};break;case"mergeListItemBackward":case tr("0x36"):!1===n[tr("0x18")]&&(o=tr("0x4"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x44")))})}return s})),n[tr("0x24")][tr("0x3")](tr("0x2e"),tr("0x14"),"accept",(function(e,n){const o=[];for(let n of e)n.start.nodeAfter===n.end[tr("0x20")]&&(n=t[tr("0x1e")][tr("0xe")](t[tr("0x1e")][tr("0x15")](n[tr("0x33")].nodeAfter,0))),o[tr("0x37")](n);t[tr("0x1e")][tr("0x23")]((e=>{const s=t.model[tr("0x11")][tr("0x41")],r=Array[tr("0x29")](s.getRanges())[tr("0x47")]((t=>i.LiveRange[tr("0x26")](t)));e[tr("0x32")](o),t.commands[tr("0x3b")](n[tr("0x4a")])[tr("0x19")](),n[tr("0x38")][tr("0x37")]({forceDefaultExecution:!0}),t[tr("0x4c")](n[tr("0x4a")],...n[tr("0x38")]),e.setSelection(r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["detach","createRange","selection","data","editing","change","nextSibling","enter","afterExecute","removeMarker:suggestion:insertion","options","hasClass","showSuggestionHighlights","model","mapper","setSelection","bind","markerNameToElements","addMarker:suggestion:insertion","downcastDispatcher","parent","TrackChangesEditing","fire","fromRange","editor","init","getFirstPosition","high","get","plugins","end","enterBlock","createPositionAt","markerName","commands","ck-suggestion-marker-split"];var sr,rr;sr=or,rr=456,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get requires(){return[nr.Enter]}[ir("0x1")](){const t=this[ir("0x0")],e=t[ir("0x5")][ir("0x4")](ir("0x21")),n=t[ir("0xa")][ir("0x4")]("enter");e.enableCommand(ir("0x13"),(()=>{t[ir("0x19")][ir("0x11")]((o=>{const s=t.model.document[ir("0xe")],r=s[ir("0x2")](),x=i.LiveRange[ir("0x23")](s.getFirstRange());if(n[ir("0x7")](o)){const n=t.model[ir("0x8")](r[ir("0x20")][ir("0x12")],0),s=o.createRange(r,n);e.markInsertion(s)}else o[ir("0x1b")](o[ir("0xd")](x[ir("0x6")]));x[ir("0xc")](),n[ir("0x22")](ir("0x14"),{writer:o})}))})),t[ir("0x10")][ir("0x1f")].on(ir("0x1e"),hs(t,"split"),{priority:"high"}),t[ir("0x10")][ir("0x1f")].on(ir("0x15"),((t,e,n)=>{const o=n[ir("0x1a")][ir("0x1d")](e[ir("0x9")]);if(o)for(const t of o)t[ir("0x17")](ir("0xb"))&&(n[ir("0x1a")].unbindElementFromMarkerName(t,e[ir("0x9")]),n.writer.remove(t))}),{priority:ir("0x3")}),t[ir("0xf")][ir("0x1f")].on(ir("0x1e"),((e,n,o)=>{o[ir("0x16")][ir("0x18")]&&hs(t,"split",{showActiveMarker:!1})[ir("0x1c")](this)(e,n,o)}),{priority:"high"})}}const ar=["find","editor","_isInDeletionRange","handleFindCommand","suggestion:deletion","findNext","TrackChangesEditing","string","end","afterInit","createPositionAt","enableCommand","getIntersection","plugins","replaceAll","findByTextCallback","has","get","getRange","getMarkersGroup","filter","model","start","replace","findPrevious","FindAndReplaceUtils"];var cr,lr;cr=ar,lr=310,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0xb")](){if(!this[dr("0x3")][dr("0xf")][dr("0x12")]("FindAndReplaceEditing"))return;const t=this[dr("0x3")][dr("0xf")][dr("0x13")](dr("0x8"));t.enableCommand(dr("0x2"),this.handleFindCommand.bind(this)),t.enableCommand(dr("0x7")),t[dr("0xd")](dr("0x0")),t.enableCommand(dr("0x19")),t[dr("0xd")](dr("0x10"))}[dr("0x5")](t,e,n={}){const o=this[dr("0x3")][dr("0xf")][dr("0x13")](dr("0x1"));void 0!==n&&t((t=>(dr("0x9")==typeof e?o[dr("0x11")](e,n):e)(t)[dr("0x16")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[dr("0x4")](t,e){const n=this.editor[dr("0x17")].createRange(this[dr("0x3")][dr("0x17")][dr("0xc")](e,t[dr("0x18")]),this[dr("0x3")][dr("0x17")].createPositionAt(e,t[dr("0xa")]));for(const t of this.editor.model.markers[dr("0x15")](dr("0x6")))if(null!==n[dr("0xe")](t[dr("0x14")]()))return!0;return!1}}const gr=["isCollapsed","afterInit","fontColor","find","*Reset font size*","*Reset font color*","FontFamilyEditing","get","fontBackgroundColor","trim","getRanges","config","registerDescriptionCallback","commandName","editor","from","format","*Set font background color:* %0","locale","*Reset font background color*","fontFamily","*Set font color:* %0","model","document","label","fontBackgroundColor.colors","*Set font family:* %0","fontSize","fontColor.colors","selection","FontBackgroundColorEditing","value","plugins","fontSize.options","change","has","commandParams","normalizeSizeOptions","TrackChangesEditing","_enableCommand","toLowerCase","*Reset font family*"];var mr,fr;mr=gr,fr=260,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:"FontSizeEditing",commandName:"fontSize"},{pluginName:hr("0x28"),commandName:hr("0xc")},{pluginName:"FontColorEditing",commandName:hr("0x24")},{pluginName:hr("0x16"),commandName:hr("0x0")}];class br extends t.Plugin{[hr("0x23")](){const t=this[hr("0x6")][hr("0xa")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x6")][hr("0x18")][hr("0x1b")](t)&&this[hr("0x1f")](e);this.editor[hr("0x18")][hr("0x29")](hr("0x1e"))._descriptionFactory[hr("0x4")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x13")==o[hr("0x5")]){const e=o.commandParams[0][hr("0x17")];if(e){const o=n(this[hr("0x6")][hr("0x18")][hr("0x29")]("FontSize")[hr("0x1d")](this[hr("0x6")][hr("0x3")].get(hr("0x19")))[hr("0x25")]((t=>t[hr("0xe")]==e)).title)[hr("0x20")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x8"),content:Yo(t,hr("0x26"))}}if("fontFamily"==o.commandName){const e=o[hr("0x1c")][0][hr("0x17")];return e?{type:hr("0x8"),content:Yo(t,hr("0x12"),e)}:{type:hr("0x8"),content:Yo(t,hr("0x21"))}}if(hr("0x24")==o.commandName){const e=o.commandParams[0][hr("0x17")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x6")][hr("0x3")].get(hr("0x14")))[hr("0x25")]((t=>t[hr("0xe")]==e));let r=e,i="";return o&&(r=o[hr("0x10")],i=n(r)[hr("0x20")]()),{type:"format",content:Yo(t,hr("0xd"),i)[hr("0x1")](),color:{value:e,title:i||r}}}return{type:hr("0x8"),content:Yo(t,hr("0x27"))}}if(hr("0x0")==o.commandName){const e=o[hr("0x1c")][0][hr("0x17")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x6")][hr("0x3")][hr("0x29")](hr("0x11")))[hr("0x25")]((t=>t[hr("0xe")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x20")]()),{type:hr("0x8"),content:Yo(t,hr("0x9"),i)[hr("0x1")](),color:{value:e,title:i||r}}}return{type:hr("0x8"),content:Yo(t,hr("0xb"))}}}}))}[hr("0x1f")](t){const e=this[hr("0x6")];e[hr("0x18")].get(hr("0x1e")).enableCommand(t,((n,o={})=>{const s=e.model[hr("0xf")][hr("0x15")],r=o.value;s[hr("0x22")]?n(o):e[hr("0xe")][hr("0x1a")]((()=>{const n=Array[hr("0x7")](s[hr("0x2")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0xe")]);for(const o of n)e[hr("0x18")].get(hr("0x1e")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["join","fontBackgroundColor","label","modifySelection","commandName","fontColor.colors","getAttributes","title","boolean","commandParams","backward","createSelection","push","config","createRange","slice","fontSize.options","toLowerCase","getSelectedBlocks","*Set format to:* %0","locale","editor","length","document","isCollapsed","TrackChangesEditing","enableCommand","copyFormat","toUpperCase","markInlineFormat","forward","get","from","model","change","afterInit","registerDescriptionCallback","pasteFormat","*Remove all formatting*","plugins","getFirstPosition","_descriptionFactory","getRanges","commands","FontSize","format","schema","isBlock","entries","word","fontColor","getLastPosition","getAttributeProperties","charAt","isFormatting","getItems","split"];var _r,Tr;_r=Er,Tr=361,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x10")](){const t=this[Cr("0x2")],n=t[Cr("0xe")],o=n[Cr("0x4")].selection,s=t[Cr("0x14")][Cr("0xc")](Cr("0x6")),r=t[Cr("0x1")],i=t[Cr("0x18")][Cr("0xc")]("copyFormat"),x=t[Cr("0x18")][Cr("0xc")](Cr("0x12"));i&&x&&(s[Cr("0x7")](Cr("0x12"),((t,r={})=>{const i=r;n[Cr("0xf")]((()=>{const t=Array[Cr("0xd")](o[Cr("0x17")]()),r=o[Cr("0x5")]?[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("0x2c")]()){const t=e[Cr("0x21")](n);t&&t[Cr("0x23")]&&(yield n)}}(t,n));for(const e of t.getRanges())for(const t of e[Cr("0x24")]())!n[Cr("0x1c")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x38")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x1b")]))||0!==Object.keys(i).length)for(const t of r)s[Cr("0xa")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Cr("0x16")][Cr("0x11")]((e=>{const{data:n}=e;if(n&&Cr("0x12")===n[Cr("0x2a")]){const e=[],o=n[Cr("0x2f")][0];for(const[n,s]of Object[Cr("0x1d")](o))e[Cr("0x32")](Ar(t,n,s));return e[Cr("0x3")]?{type:Cr("0x1a"),content:Yo(r,Cr("0x0"),e.join(", "))}:{type:Cr("0x1a"),content:Yo(r,Cr("0x13"))}}})),t.plugins.get("TrackChangesEditing").enableCommand(Cr("0x8")))}}function kr(t,e){const n=t[Cr("0x31")](e);t[Cr("0x29")](n,{unit:Cr("0x1e"),direction:Cr("0x30")});const o=n[Cr("0x15")]();t[Cr("0x29")](n,{unit:Cr("0x1e"),direction:Cr("0xb")});const s=n[Cr("0x20")]();return t[Cr("0x34")](o,s)}function Ar(t,e,n){const o=t[Cr("0x1")].t,r=e[Cr("0x25")](/(?=[A-Z])/)[Cr("0x26")](" "),i=o(r[Cr("0x22")](0)[Cr("0x9")]()+r[Cr("0x35")](1))[Cr("0x37")]();if(Cr("0x2e")==typeof n)return i;if(Cr("0x1f")===e||Cr("0x27")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x33")][Cr("0xc")](Cr("0x2b"))).find((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x28")])[Cr("0x37")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x14")][Cr("0xc")](Cr("0x19")).normalizeSizeOptions(t[Cr("0x33")].get(Cr("0x36"))).find((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x2d")]).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["registerElementLabel","title","value","editor","markBlockFormat","formatBlock","heading","change","registerDescriptionCallback","locale","has","heading.options","schema","config","plugins","afterInit","*Change to:* %0","TrackChangesEditing","find","getSelectedBlocks","name","model","HeadingEditing","_descriptionFactory","ELEMENT_HEADING","format","filter","get","blockName","from","commandParams","paragraph","isObject","commandName"];var Rr,Sr;Rr=vr,Sr=135,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x10")](){const t=this[Ir("0x4")],e=t[Ir("0xa")],n=t[Ir("0xe")][Ir("0x1c")](Ir("0xc"));if(!t[Ir("0xf")][Ir("0xb")](Ir("0x17")))return;const o=t.plugins[Ir("0x1c")](Ir("0x12"));o.enableCommand(Ir("0x7"),((e,n)=>{const s=n.value,r=Array[Ir("0x1e")](this.editor[Ir("0x16")].document.selection[Ir("0x14")]())[Ir("0x1b")]((t=>{return e=t,n=s,(o=this[Ir("0x4")].model[Ir("0xd")]).checkChild(e.parent,n)&&!o[Ir("0x21")](e)&&e[Ir("0x15")]!=n;var e,n,o}));t.model[Ir("0x8")]((()=>{for(const t of r)o[Ir("0x5")](t,{commandName:Ir("0x7"),commandParams:[n],formatGroupId:Ir("0x1d")},fs(t))}))}));for(const t of n)Ir("0x20")!=t[Ir("0x16")]&&o._descriptionFactory[Ir("0x1")](t[Ir("0x16")],(e=>{const n=Nr(t[Ir("0x16")]);return null!==n?s(e,n):r(e,t[Ir("0x2")])}));function s(t,n){return Yo(e,Ir("0x19"),[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ir("0x18")][Ir("0x9")]((t=>{const{type:o,data:i}=t;if(Ir("0x6")==o&&i&&"heading"==i[Ir("0x0")]){const t=i[Ir("0x1f")][0][Ir("0x3")],o=Nr(t);if(null!==o)return{type:Ir("0x1a"),content:Yo(e,Ir("0x11"),s(1,o))};const x=n[Ir("0x13")]((e=>e[Ir("0x16")]===t))[Ir("0x2")];return{type:Ir("0x1a"),content:Yo(e,Ir("0x11"),r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const wr=["toLowerCase","item","highlight.options","has","config","commandName","afterInit","createRange","color","push","title","registerDescriptionCallback","value","_descriptionFactory","FORMAT_HIGHLIGHT","getRanges","change","highlight","formatInline","TrackChangesEditing","HighlightEditing","plugins","isCollapsed","getFirstPosition","markInlineFormat","enableCommand","commandParams","get","document","editor","model","format","getLastMatchingPosition","backward"];var Mr,Or;Mr=wr,Or=375,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{[Fr("0x5")](){const t=this[Fr("0x1c")];if(!t[Fr("0x14")][Fr("0x2")](Fr("0x13")))return;const e=t[Fr("0x14")][Fr("0x1a")](Fr("0x12"));e[Fr("0x18")](Fr("0x10"),((n,o={})=>{const s=t.model[Fr("0x1b")].selection,r=s.getAttribute("highlight");let i=o[Fr("0xb")],x=[];if(s[Fr("0x15")]){const e=s[Fr("0x16")]();if(!s.hasAttribute(Fr("0x10")))return void n(o);{const n=t=>t[Fr("0x0")].getAttribute(Fr("0x10"))===r,o=e[Fr("0x1f")](n,{direction:Fr("0x20")}),s=e[Fr("0x1f")](n);x=[t[Fr("0x1d")][Fr("0x6")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0xe")]())i?x[Fr("0x8")](e):x.push(...ms(Fr("0x10"),e,t[Fr("0x1d")]));t.model[Fr("0xf")]((()=>{for(const t of x)e[Fr("0x17")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t.locale;e[Fr("0xc")][Fr("0xa")]((e=>{const{type:o,data:s}=e;if(Fr("0x11")==o&&s&&Fr("0x10")==s[Fr("0x4")]){const e=n.t,o=s[Fr("0x19")][0].value;if(o){const s=t[Fr("0x3")][Fr("0x1a")](Fr("0x1")).find((t=>t[Fr("0x1d")]==o)),r=e(s.title)[Fr("0x21")]();return{type:Fr("0x1e"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s[Fr("0x7")],title:s[Fr("0x9")]}}}return{type:Fr("0x1e"),content:Yo(n,"*Remove highlight*",Yo(n,Fr("0xd")))}}}))}}const Dr=["ck-horizontal-line","insert","afterInit","for","get","HorizontalLineEditing","editor","registerElementLabel","ELEMENT_HORIZONTAL_LINE","conversion","has","plugins","createContainerElement","createPositionAt","horizontalLine","locale","createEmptyElement","high","dataDowncast","elementToStructure","addClass"];var Br,jr;Br=Dr,jr=478,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x7")](){const t=this[Ur("0xb")];if(!t[Ur("0x10")][Ur("0xf")](Ur("0xa")))return;t[Ur("0x10")][Ur("0x9")]("TrackChangesEditing").enableCommand("horizontalLine");const e=t[Ur("0x10")].get("TrackChangesEditing"),n=t[Ur("0x14")];e._descriptionFactory[Ur("0xc")]("horizontalLine",(t=>Yo(n,Ur("0xd"),t))),t[Ur("0xe")][Ur("0x8")](Ur("0x2"))[Ur("0x3")]({model:Ur("0x13"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x11")]("div"),s=e[Ur("0x0")]("hr");return e[Ur("0x4")](Ur("0x5"),o),e[Ur("0x6")](e[Ur("0x12")](o,0),s),o},converterPriority:Ur("0x1")})}}const Hr=["rawHtml","afterInit","document","getCustomProperty","cancel","registerElementLabel","plugins","has","get","htmlEmbed","registerDescriptionCallback","TrackChangesEditing","locale","view","rawHtmlApi","getSelectedElement","enableCommand","editing","value","selection","model","ELEMENT_HTML_EMBED","HtmlEmbed","_descriptionFactory","change","*Change %0 content*"];var zr,Wr;zr=Hr,Wr=291,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x16")](){const t=this.editor;if(!t[Vr("0x1")][Vr("0x2")](Vr("0x11")))return;const e=t.plugins[Vr("0x3")](Vr("0x6")),n=t[Vr("0x7")],o=t[Vr("0xc")][Vr("0x8")][Vr("0x17")][Vr("0xe")];e[Vr("0x12")][Vr("0x0")](Vr("0x15"),(t=>Yo(n,Vr("0x10"),t))),t[Vr("0x1")][Vr("0x3")](Vr("0x6"))[Vr("0xb")]("htmlEmbed",((n,s)=>{const r=t[Vr("0xf")],i=r[Vr("0x17")][Vr("0xe")];r[Vr("0x13")]((()=>{const t=function(t){const e=t[Vr("0xa")]();return e&&e.is("element",Vr("0x15"))?t[Vr("0xa")]():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0xd"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x4"),commandParams:[s]}),o[Vr("0xa")]()[Vr("0x18")](Vr("0x9"))[Vr("0x19")]())}))})),e[Vr("0x12")][Vr("0x5")]((t=>{const{data:e}=t;if(e&&Vr("0x4")==e.commandName){const t=Yo(n,Vr("0x10"));return{type:"format",content:Yo(n,Vr("0x14"),t)}}}))}}const qr=["Inline image to block image","afterInit","ImageResize","chain","imageStylePostApply","imageCaption","markInsertion","caption","_descriptionFactory","toggleImageCaption","uploadImage","getCaptionFromImageModelElement","isInlineImage","ImageUtils","toNext","nodeAfter","end","FORMAT_SIDE_IMAGE","change","schema","imageTypeInline","*Remove image text alternative*","registerPostFixer","subType","imageInline","getFirstRange","next","formatBlock","ELEMENT_INLINE_IMAGE","getNearestSelectionRange","ImageStyleEditing","backward","hasSuggestion","fromPosition","markBlockFormat","document","element","formatInline","getChangedMarkers","head","ImageCaptionEditing","commandParams","enableCommand","imageTypeBlock","forceDefaultExecution","registerElementLabel","refresh","join","format","getSuggestions","alt","insertion","value","ELEMENT_CAPTION","isBefore","toPrevious","type","getClosestSelectedImageElement","differ","imageStylePreApply","getSuggestion","findIndex","ImageTextAlternativeEditing","previous","*Set image width:* %0","isOwn","imageBlock","selection","getAttribute","getSuggestionCallback","hasAttribute","nodeBefore","normalizedStyles","isCollapsed","insertImage","accept","model","ELEMENT_IMAGE","*Set image text alternative:* %0","markDeletion","_suggestionFactory","author","Block image to inline image","name","suggestion","resizeImage","ImageEditing","isBlockImage","isInContent","createRange","locale","commandReversedParams","has","registerDescriptionCallback","side","plugins","commands","*Reset image width*","_findSuggestions","convertInlineImageToBlock","newValue","createRangeOn","removeObject","editor","get","registerCustomCallback","discard","forEach","getContainedElement","commandName","title","ImageCaptionUtils","newRange","width","discardSuggestion","imageTextAlternative","isEqual","markInlineFormat","find","addObject","ImageBlockEditing","start","from","imageStyle","toLowerCase"];var Xr,$r;Xr=qr,$r=476,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x19")](){const t=this[Jr("0x2")];if(!t[Jr("0x77")][Jr("0x74")](Jr("0x6e")))return;const n=t[Jr("0x77")][Jr("0x3")]("TrackChangesEditing"),o=t.plugins.get(Jr("0x25")),s={},r=t[Jr("0x72")];if(n[Jr("0x42")](Jr("0x62")),n[Jr("0x20")][Jr("0x45")](Jr("0x5a"),(t=>Yo(r,Jr("0x65"),t))),n[Jr("0x20")][Jr("0x45")](Jr("0x30"),(t=>Yo(r,Jr("0x34"),t))),n[Jr("0x20")][Jr("0x45")](Jr("0x1f"),(()=>Yo(r,Jr("0x4d")))),t[Jr("0x77")][Jr("0x74")]("ImageUploadEditing")&&n[Jr("0x42")](Jr("0x22")),t[Jr("0x77")][Jr("0x74")](Jr("0x13"))&&t[Jr("0x77")].has("ImageInlineEditing")&&(n[Jr("0x42")](Jr("0x2c"),((e,s)=>{const r=o[Jr("0x51")](t[Jr("0x64")].document[Jr("0x5b")]);t[Jr("0x64")][Jr("0x2a")]((()=>{n[Jr("0x3a")](r,{commandName:Jr("0x2c"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Jr("0x42")](Jr("0x43"),((e,s)=>{t[Jr("0x64")][Jr("0x2a")]((r=>{let x=o[Jr("0x51")](t[Jr("0x64")].document[Jr("0x5b")]),a=r[Jr("0x0")](x);const c=i.LivePosition[Jr("0x39")](a.start,Jr("0x4f")),l=i.LivePosition[Jr("0x39")](a[Jr("0x28")],Jr("0x26"));n[Jr("0x44")]((()=>e(s))),x=o[Jr("0x51")](t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),a=r[Jr("0x0")](x);const d=r[Jr("0x71")](c,l);c.detach(),l.detach(),n[Jr("0x3a")](x,{commandName:Jr("0x2c"),commandParams:[]},[],Jr("0x7b")),d.start[Jr("0x4e")](a.start)&&n[Jr("0x1e")](r.createRange(d[Jr("0x14")],a[Jr("0x14")]),Jr("0x7b")),a[Jr("0x28")][Jr("0x4e")](d[Jr("0x28")])&&n[Jr("0x1e")](r[Jr("0x71")](a[Jr("0x28")],d[Jr("0x28")]),Jr("0x7b"))}))})),n[Jr("0x68")][Jr("0x4")]("formatBlock",Jr("0x7b"),Jr("0x47"),(()=>{})),n[Jr("0x68")][Jr("0x4")](Jr("0x33"),Jr("0x7b"),"accept",(()=>{})),n._suggestionFactory[Jr("0x4")](Jr("0x33"),Jr("0x7b"),Jr("0x5"),n[Jr("0x68")].getSuggestionCallback(Jr("0x33"),"",Jr("0x63"))),n._suggestionFactory[Jr("0x4")]("insertion","convertInlineImageToBlock",Jr("0x47"),(()=>{})),n[Jr("0x68")].registerCustomCallback(Jr("0x4b"),Jr("0x7b"),Jr("0x5"),(([e])=>{const o=n[Jr("0x68")][Jr("0x5d")](Jr("0x4b"),"",Jr("0x5"));let s=e[Jr("0x14")],r=e[Jr("0x28")];const i=t.model[Jr("0x2b")][Jr("0x35")](s,Jr("0x37")),x=t[Jr("0x64")][Jr("0x2b")][Jr("0x35")](r,"forward");i.isCollapsed&&(s=i[Jr("0x14")]),x[Jr("0x61")]&&(r=x.end),o([t.model.createRange(s,r)])})),n[Jr("0x68")][Jr("0x4")](Jr("0x33"),Jr("0x7b"),Jr("0x1b"),c),n._suggestionFactory[Jr("0x4")](Jr("0x4b"),Jr("0x7b"),Jr("0x1b"),c)),t.plugins[Jr("0x74")](Jr("0x40"))&&(n[Jr("0x42")](Jr("0x21"),((e,s)=>{const r=t[Jr("0x77")][Jr("0x3")](Jr("0xa"));let i=o[Jr("0x51")](t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),x=r.getCaptionFromImageModelElement(i);t[Jr("0x64")][Jr("0x2a")]((()=>{if(x)return void n[Jr("0x67")](t[Jr("0x64")][Jr("0x0")](x));const a=o[Jr("0x6f")](i);e(s),i=o.getClosestSelectedImageElement(t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),x=r[Jr("0x23")](i),n.markInsertion(t.model[Jr("0x0")](x),a?null:Jr("0x1d"))}))})),n[Jr("0x68")][Jr("0x4")]("insertion","imageCaption",Jr("0x1b"),c)),t[Jr("0x77")][Jr("0x74")]("ImageStyleEditing")){n.enableCommand("imageStyle",((s,r)=>{const i=t.plugins[Jr("0x3")]("Users").me,x=t[Jr("0x78")].get("imageStyle");let a=o[Jr("0x51")](t[Jr("0x64")].document[Jr("0x5b")]),c=t[Jr("0x64")][Jr("0x0")](a),l=x[Jr("0x4c")];if(l==r[Jr("0x4c")])return;const d={commandName:Jr("0x16"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x64")][Jr("0x2a")]((()=>{if(n[Jr("0x49")]().filter((t=>t[Jr("0x70")]&&i==t[Jr("0x69")]&&("formatBlock"==t[Jr("0x50")]||Jr("0x3d")==t[Jr("0x50")])&&(Jr("0x53")==t[Jr("0x2f")]||Jr("0x1c")==t.subType)&&t[Jr("0x31")]()[Jr("0xf")](c)))[Jr("0x6")]((t=>n[Jr("0xd")](t[Jr("0x3f")]))),a=o.getClosestSelectedImageElement(t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),c=t[Jr("0x64")][Jr("0x0")](a),x[Jr("0x46")](),t[Jr("0x78")][Jr("0x3")](Jr("0x2c"))[Jr("0x46")](),t.commands.get(Jr("0x43"))[Jr("0x46")](),l=x.value,l!=r[Jr("0x4c")])return o[Jr("0x24")](a)&&x.shouldConvertImageType(r[Jr("0x4c")],a)?(s(r),a=o[Jr("0x51")](t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),void n[Jr("0x3a")](a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x53"))):void(o.isBlockImage(a)?n[Jr("0x3a")](a,d,[],Jr("0x1c")):n[Jr("0x10")](c,d,"imageStylePostApply"))}))}));for(const e of t[Jr("0x77")][Jr("0x3")](Jr("0x36"))[Jr("0x60")])s[e[Jr("0x6b")]]=e[Jr("0x9")][Jr("0x17")]();n._suggestionFactory[Jr("0x4")]("formatBlock",Jr("0x53"),"join",(()=>{})),n[Jr("0x68")][Jr("0x4")](Jr("0x33"),Jr("0x1c"),Jr("0x47"),(()=>{})),n[Jr("0x68")][Jr("0x4")](Jr("0x3d"),Jr("0x1c"),Jr("0x47"),(()=>{})),n[Jr("0x68")][Jr("0x4")](Jr("0x33"),"imageStylePreApply",Jr("0x63"),(()=>{})),n._suggestionFactory.registerCustomCallback("formatBlock",Jr("0x53"),Jr("0x5"),((t,e)=>{n[Jr("0x68")].getSuggestionCallback(Jr("0x33"),"",Jr("0x63"))(t,{commandName:e[Jr("0x8")],commandParams:e[Jr("0x73")]})})),n[Jr("0x68")].registerCustomCallback("formatBlock","imageStylePreApply",Jr("0x1b"),c)}const x=[{type:Jr("0x33"),subType:"imageStylePreApply"},{type:"insertion",subType:Jr("0x1d")},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:Jr("0x4b"),subType:Jr("0x7b")}];function a(t,e){const s=x[Jr("0x55")]((({type:e,subType:n})=>t[Jr("0x50")]==e&&t[Jr("0x2f")]==n)),r=x[Jr("0x55")]((({type:t,subType:n})=>e[Jr("0x50")]==t&&e[Jr("0x2f")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x31")](),a=e[Jr("0x31")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x7a")](i,"insertion").filter((({suggestion:t,meta:e})=>e[Jr("0x59")]&&Jr("0x7b")==t[Jr("0x2f")]));if(t.length>1&&a[Jr("0x28")][Jr("0xf")](i[Jr("0x14")]))return!0;if(1==t.length&&(i[Jr("0x14")].isEqual(a[Jr("0x28")])||i[Jr("0x28")].isEqual(a[Jr("0x14")])))return!0}if(3==s&&3==r&&i[Jr("0x14")][Jr("0x4e")](a[Jr("0x14")])){const t=i[Jr("0x28")][Jr("0x27")],e=a[Jr("0x14")][Jr("0x5f")];return o[Jr("0x6f")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x64")][Jr("0x3b")][Jr("0x2e")]((()=>{let e=!1;const s=Array[Jr("0x15")](t[Jr("0x64")][Jr("0x3b")][Jr("0x52")][Jr("0x3e")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if(Jr("0x6c")==s&&n[Jr("0x38")](a)){if(Jr("0x33")==i&&("imageStylePreApply"==x||"imageStylePostApply"==x)){const t=n[Jr("0x54")](a);if(r[Jr("0xb")]){const s=t[Jr("0x31")]()[Jr("0x7")]();if(o[Jr("0x6f")](s))continue;n[Jr("0xd")](t),e=!0}}if(Jr("0x4b")==i&&"imageCaption"==x&&!r[Jr("0xb")]){const t=n[Jr("0x54")](a);t.next&&t[Jr("0x32")][Jr("0x70")]&&(n.discardSuggestion(t[Jr("0x32")]),e=!0)}}}return e})),t[Jr("0x77")][Jr("0x74")](Jr("0x1a"))&&n.enableCommand(Jr("0x6d"),((e,s)=>{const r=o[Jr("0x51")](t.model[Jr("0x3b")][Jr("0x5b")]);r[Jr("0x5c")](Jr("0xc"))!=s[Jr("0xc")]&&t[Jr("0x64")][Jr("0x2a")]((()=>{n.markBlockFormat(r,{commandName:"resizeImage",commandParams:[s]})}))})),t.plugins.has(Jr("0x56"))&&n[Jr("0x42")](Jr("0xe"),((e,s)=>{const r=o[Jr("0x51")](t.model[Jr("0x3b")][Jr("0x5b")]);(r[Jr("0x5e")](Jr("0x4a"))?r[Jr("0x5c")](Jr("0x4a")):"")!=s[Jr("0x7c")]&&t[Jr("0x64")][Jr("0x2a")]((()=>{n.markBlockFormat(r,{commandName:Jr("0xe"),commandParams:[s]})}))})),n[Jr("0x20")][Jr("0x75")]((t=>{if(x[Jr("0x11")]((({type:e,subType:n})=>t[Jr("0x50")]==e&&t[Jr("0x2f")]==n)))return t[Jr("0x57")]?{}:void 0})),n[Jr("0x20")][Jr("0x75")]((t=>{if("insertion"==t.type||"deletion"==t[Jr("0x50")]){const e=t[Jr("0x7")]();if(e&&e.is(Jr("0x3c"),Jr("0x1f")))return{type:Jr("0x4b")==t[Jr("0x50")]?Jr("0x12"):Jr("0x1"),element:e,quantity:1}}})),n[Jr("0x20")].registerDescriptionCallback((t=>Jr("0x33")==t[Jr("0x50")]&&"convertInlineImageToBlock"==t[Jr("0x2f")]?{type:Jr("0x48"),content:Jr("0x18")}:Jr("0x33")==t.type&&"convertBlockImageToInline"==t[Jr("0x2f")]?{type:Jr("0x48"),content:Jr("0x6a")}:void 0)),n[Jr("0x20")][Jr("0x75")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e[Jr("0x8")]){const t=e[Jr("0x41")][0][Jr("0x4c")];return n=Jr("0x76")===t?Yo(r,Jr("0x29")):s[t]||t,{type:"format",content:Yo(r,"*Format:* %0",n)}}if("imageTextAlternative"==e.commandName){const t=e[Jr("0x41")][0][Jr("0x7c")];return t?{type:"format",content:Yo(r,Jr("0x66"),'"'+t+'"')}:{type:Jr("0x48"),content:Yo(r,Jr("0x2d"))}}if("resizeImage"==e.commandName){const t=e[Jr("0x41")][0][Jr("0xc")];return t?{type:Jr("0x48"),content:Yo(r,Jr("0x58"),t)}:{type:Jr("0x48"),content:Yo(r,Jr("0x79"))}}}var n}))}}const Zr=["getSelectedElement","format","enableCommand","getSuggestions","replaceImageSource","discard","plugins","subType","handleSuggestionDescription","source","selection","markBlockFormat","commandParams","TrackChangesEditing","author","model","get","src","locale","data","getAttribute","registerDescriptionCallback","*Format:* replace image URL","afterInit","document","editor","ImageEditing","handleReplaceImageCommand","formatBlock","commandName","accept","registerCustomCallback","Users","_descriptionFactory","_suggestionFactory","has","getSuggestionCallback"];var Yr,ti;Yr=Zr,ti=216,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1d")](){if(!this[ei("0x1f")][ei("0xc")][ei("0x4")](ei("0x20")))return;const t=this[ei("0x1f")][ei("0xc")].get(ei("0x13"));t[ei("0x8")](ei("0xa"),((t,e)=>this[ei("0x21")](t,e))),t[ei("0x3")][ei("0x0")](ei("0x22"),ei("0xa"),ei("0x24"),t[ei("0x3")][ei("0x5")](ei("0x22"),null,ei("0xb"))),t[ei("0x3")][ei("0x0")](ei("0x22"),"replaceImageSource",ei("0xb"),t._suggestionFactory[ei("0x5")](ei("0x22"),null,ei("0x24"))),t[ei("0x2")][ei("0x1b")]((t=>this[ei("0xe")](t)))}[ei("0x21")](t,e){const n=this[ei("0x1f")][ei("0xc")][ei("0x16")](ei("0x13")),o=this[ei("0x1f")][ei("0x15")][ei("0x1e")][ei("0x10")][ei("0x6")]();this[ei("0x1f")].model.change((()=>{let s=o[ei("0x1a")](ei("0x17"));const r=this[ei("0x1f")][ei("0xc")][ei("0x16")](ei("0x1")).me;for(const t of n[ei("0x9")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0xa")===t[ei("0xd")]&&e===o){t[ei("0x14")]!==r&&t[ei("0xb")](),s=t[ei("0x19")][ei("0x12")][0][ei("0xf")];break}}t(e),n[ei("0x11")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0xa"))}))}[ei("0xe")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x23")]){const t=ei("0x1c");return{type:ei("0x7"),content:Yo(this.editor[ei("0x18")],t)}}}}const oi=["afterInit","editor","Users","_trackChangesExecuted","bind","trackChanges","collaboration_features","_trackChangesValueDuringImport","forEach","value","track_changes","importWord","commands","listenTo","high","plugins","_setSuggestionData","_handleImportedData","dataInsert","get","execute"];var si,ri;si=oi,ri=340,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("0x14")]=!1}[ii("0x11")](){const t=this[ii("0x12")],e=t[ii("0x8")][ii("0xf")]("importWord"),n=t[ii("0x8")].get("trackChanges");e&&(e.on("execute",((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0x5")],e[ii("0x2")][ii("0x6")]=!this[ii("0x3")]}),{priority:ii("0xa")}),this.listenTo(e,ii("0xe"),this[ii("0xd")][ii("0x0")](this)),this[ii("0x9")](e,ii("0xe"),(()=>{this._trackChangesExecuted&&(n[ii("0x10")](),this[ii("0x14")]=!1)}),{priority:"lowest"}),t[ii("0xb")][ii("0xf")]("TrackChangesEditing").enableCommand(ii("0x7")))}[ii("0xd")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x8")][ii("0xf")](ii("0x1")),s=o.value;this[ii("0x3")]!==s&&(o.execute(),this[ii("0x14")]=!0),n&&n[ii("0x4")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x12")][ii("0xb")][ii("0xf")](ii("0x13")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x7")}}};this[ii("0x12")][ii("0xb")].get("TrackChangesEditing")[ii("0xc")](s)}))}}const ai=["*Indent:* %0","model","filter","selection","editor","document","has","commandName","indentBlock","plugins","enableCommand","from","get","change","getItems","*Outdent:* %0","outdent","markBlockFormat","getItemLabel","indent","format","getSelectedBlocks","blockIndent","afterInit","outdentBlock","locale","registerDescriptionCallback","TrackChangesEditing","IndentEditing"];var ci,li;ci=ai,li=272,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0xc")](){const t=this[di("0x16")],e=t[di("0x1b")][di("0x1")](di("0x10"));t.plugins[di("0x18")](di("0x11"))&&(e[di("0x1c")](di("0x8")),e.enableCommand(di("0x5")));const n=t[di("0xe")];if(t[di("0x1b")].has("IndentBlock")){for(const n of[di("0x1a"),di("0xd")])e[di("0x1c")](n,(()=>{const o=Array[di("0x0")](this[di("0x16")][di("0x13")][di("0x17")][di("0x15")][di("0xa")]())[di("0x14")]((t=>this.editor[di("0x13")].schema.checkAttribute(t,di("0xb"))));t[di("0x13")][di("0x2")]((()=>{for(const t of o)e[di("0x6")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x1a")})}))}));e._descriptionFactory[di("0xf")]((t=>{const{data:o}=t;if(!o)return;if(di("0x1a")!=o[di("0x19")]&&di("0xd")!=o.commandName)return;const s=t[di("0x3")]()[0],r=e._descriptionFactory[di("0x7")](s);return di("0x1a")==o[di("0x19")]?{type:di("0x9"),content:Yo(n,di("0x12"),r)}:di("0xd")==o[di("0x19")]?{type:di("0x9"),content:Yo(n,di("0x4"),r)}:void 0}))}}}var gi,mi,fi=["init","TrackChangesEditing","editor","enableCommand"];gi=fi,mi=395,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 requires(){return[Vs.Input]}[hi("0x1")](){this[hi("0x3")].plugins.get(hi("0x2"))[hi("0x0")]("input")}}const bi=["format","selection","_descriptionFactory","commandParams","editor","isCollapsed","getFirstRange","document","LinkEditing","enableCommand","getAttribute","linkHref","unlink","markInlineFormat","from","get","plugins","getRanges","TrackChangesEditing","getFirstPosition","link","commandName","afterInit","*Set link:* %0","model","change"];var Ei,_i;Ei=bi,_i=448,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x10")](){const t=this[Ti("0x18")];if(!t[Ti("0xa")].has(Ti("0x2")))return;const e=t[Ti("0xa")][Ti("0x9")](Ti("0xc"));e[Ti("0x3")](Ti("0xe"),((n,o)=>{const s=t.model[Ti("0x1")][Ti("0x15")];let r=[];if(s[Ti("0x19")]){if(!s.hasAttribute(Ti("0x5")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x5"),s[Ti("0x4")](Ti("0x5")),t[Ti("0x12")]);r=[e]}}else r=Array[Ti("0x8")](s[Ti("0xb")]());t.model[Ti("0x13")]((()=>{for(const t of r)e[Ti("0x7")](t,{commandName:"link",commandParams:[o]})}))})),e[Ti("0x3")](Ti("0x6"),(()=>{const n=this[Ti("0x18")][Ti("0x12")],o=n[Ti("0x1")][Ti("0x15")];n[Ti("0x13")]((()=>{let n=[];n=o[Ti("0x19")]?[(0,Vs.findAttributeRange)(o[Ti("0xd")](),"linkHref",o[Ti("0x4")](Ti("0x5")),t[Ti("0x12")])]:ms(Ti("0x5"),o[Ti("0x0")](),t[Ti("0x12")]);for(const t of n)e[Ti("0x7")](t,{commandName:Ti("0x6"),commandParams:[]})}))})),e[Ti("0x16")].registerDescriptionCallback((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0xe")==n.commandName){const t=n[Ti("0x17")][0];return{type:"format",content:Yo(o,Ti("0x11"),'"'+t+'"')}}return Ti("0x6")==n[Ti("0xf")]?{type:Ti("0x14"),content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["ELEMENT_LIST_ITEM","nextSibling","TrackChangesEditing","getSelectedBlocks","document","*Indent:* %0","commandParams","getAttribute","todoListChecked","change","format","TodoListEditing","ELEMENT_BULLETED_LIST","isObject","before","slice","value","ELEMENT_TODO_LIST","length","listType","commandName","name","listIndent","plugins","_descriptionFactory","selection","_selectedElements","checkTodoList","registerDescriptionCallback","findIndex","filter","locale","add","from","createRange","bulletedList","List","forceValue","has","numbered","get","ListEditing","previousSibling","commands","model","element","todo","indentList","execute","listItem","paragraph","enableCommand","schema","editor","outdentList","numberedList","markBlockFormat","todoList","registerElementLabel","afterInit"];var ki,Ai;ki=yi,Ai=179,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x0")](){const t=this[vi("0x36")],e=t[vi("0x20")];if(!t[vi("0x18")][vi("0x27")](vi("0x2a")))return;const n=t[vi("0x18")].get(vi("0x3")),o=t[vi("0x18")][vi("0x27")](vi("0xc"));function s(e){return()=>{const o=t[vi("0x2d")][vi("0x5")][vi("0x1a")],s=t[vi("0x2c")].get(e);if(s[vi("0x11")])return void t[vi("0x31")](vi("0x33"),{});const r=e[vi("0x10")](0,-4),i=function(t,e,n){let o=Array[vi("0x22")](t)[vi("0x1f")]((t=>{return e=t,(o=n).checkChild(e.parent,vi("0x32"))&&!o[vi("0xe")](e);var e,o}));o=o[vi("0x1f")]((t=>!t.is(vi("0x2e"),vi("0x32"))||t[vi("0x8")](vi("0x14"))!=e));const s=new Set;for(const t of o)t.is(vi("0x2e"),vi("0x32"))?s.add(Si(t)):s[vi("0x21")](t);return Array[vi("0x22")](s)}(o[vi("0x4")](),r,t[vi("0x2d")][vi("0x35")]);t[vi("0x2d")][vi("0xa")]((()=>{for(const t of i)n[vi("0x39")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x11")]}],formatGroupId:"blockName"},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x1e")]((t=>vi("0x32")!=t[vi("0x16")]));return n>-1&&(e=e[vi("0x10")](0,n)),e}(t[vi("0x2d")].document[vi("0x1a")][vi("0x4")]()),s=t[vi("0x2d")][vi("0x23")](t[vi("0x2d")].createPositionAt(o[0],vi("0xf")),t[vi("0x2d")].createPositionAt(o[o[vi("0x13")]-1],"end"));t.model[vi("0xa")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:vi("0x17")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x2")];for(;t&&t[vi("0x8")](vi("0x17"))>n[vi("0x8")](vi("0x17"));)e.add(t),t=t[vi("0x2")]}return Array[vi("0x22")](e)}(o))}))}}n[vi("0x34")](vi("0x38"),s("numberedList")),n[vi("0x34")](vi("0x24"),s(vi("0x24"))),o&&n[vi("0x34")](vi("0x3a"),s(vi("0x3a"))),n[vi("0x34")](vi("0x30"),r("indentList")),n[vi("0x34")](vi("0x37"),r(vi("0x37"))),o&&n[vi("0x34")]("checkTodoList",(()=>{const e=t[vi("0x2c")][vi("0x29")]("checkTodoList"),o=Array[vi("0x22")](e[vi("0x1b")]);o[vi("0x1f")]((t=>t[vi("0x8")](vi("0x9"))!=e[vi("0x11")])),t.model.change((()=>{for(const t of o)n[vi("0x39")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[vi("0x11")]}]})}))})),n[vi("0x19")][vi("0x3b")](vi("0x32"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x19")][vi("0x1d")]((t=>{const{data:n}=t;if(n){if(vi("0x38")==n[vi("0x15")]||vi("0x24")==n[vi("0x15")]||vi("0x3a")==n[vi("0x15")])switch(n[vi("0x15")].replace(vi("0x25"),"")){case"bulleted":return o(Yo(e,vi("0xd")));case vi("0x28"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case vi("0x2f"):return o(Yo(e,vi("0x12")))}if(vi("0x30")==n.commandName)return{type:vi("0xb"),content:Yo(e,vi("0x6"),Yo(e,vi("0x1")))};if(vi("0x37")==n[vi("0x15")])return{type:vi("0xb"),content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x1")))};if(vi("0x1c")==n[vi("0x15")])return n[vi("0x7")][0][vi("0x26")]?{type:vi("0xb"),content:Yo(e,"*Check item*")}:{type:vi("0xb"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:"format",content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x17"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x2b")].is("element",vi("0x32"));){const o=t[vi("0x2b")][vi("0x8")](vi("0x17"));if(o==e)n=t[vi("0x2b")];else if(o<e)break;t=t[vi("0x2b")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2e"),vi("0x32"))&&t[vi("0x8")]("listIndent")>0){let n=t.nextSibling;for(;n&&vi("0x32")==n.name&&n[vi("0x8")](vi("0x17"))==t[vi("0x8")](vi("0x17"));)e.push(n),n=n[vi("0x2")]}return e}const Li=["ELEMENT_","listItem","markMultiRangeBlockFormat","startIndex","getAttribute","ListUtils","_LIST_","createRange","*Format:* set order to reversed","document","config","type","bind","TrackChangesEditing","listStyle","element","listReversed","_getTranslationKeyForListStyle","flat","listType","listStart","*Format:* set order to regular","plugins","commandParams","parent","handleListReversedCommand","locale","has","commandName","before","length","change","_descriptionFactory","handleDescriptions","createPositionAt","backward","model","_getSuggestionBlocksForListStyle","replace","*Change to:* %0","selection","reversed","handleListStyleCommand","getSelectedBlocks","editor","numbered","get","_getSuggestionBlocks","getListTypeFromListStyleType","forward","getSiblingNodes","format","afterInit","handleListStartCommand","getFirstPosition","filter","enableCommand"];var Ni,wi;Ni=Li,wi=222,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0x1")](){if(!this[Mi("0x32")].plugins[Mi("0x21")]("ListPropertiesEditing"))return;const t=this[Mi("0x32")][Mi("0x10")][Mi("0x34")]("list.properties"),e=this.editor.plugins.get(Mi("0x13"));t.styles&&e.enableCommand(Mi("0x14"),this[Mi("0x30")][Mi("0x12")](this)),t[Mi("0x2f")]&&e[Mi("0x5")](Mi("0x16"),this[Mi("0x1f")][Mi("0x12")](this)),t.startIndex&&e[Mi("0x5")](Mi("0x1a"),this[Mi("0x2")][Mi("0x12")](this)),e[Mi("0x26")].registerDescriptionCallback(this[Mi("0x27")][Mi("0x12")](this))}[Mi("0x30")](t,e={}){const n=this.editor.plugins[Mi("0x34")](Mi("0x13")),o=this[Mi("0x2b")]();this[Mi("0x32")][Mi("0x2a")][Mi("0x25")]((()=>{n[Mi("0x8")](o,{commandName:Mi("0x14"),commandParams:[{type:e[Mi("0x11")]}],formatGroupId:Mi("0x14")})}))}[Mi("0x1f")](t,e={}){const n=this[Mi("0x32")].plugins[Mi("0x34")](Mi("0x13")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x15"),Mi("0x7"))&&"numbered"===t.getAttribute(Mi("0x19"))));if(o.length<1)return;const s=o.map((t=>this.editor[Mi("0x2a")][Mi("0xd")](this[Mi("0x32")].model[Mi("0x28")](t,Mi("0x23")),this.editor[Mi("0x2a")].createPositionAt(t,0))));this[Mi("0x32")][Mi("0x2a")][Mi("0x25")]((()=>{n[Mi("0x8")](s,{commandName:Mi("0x16"),commandParams:[{reversed:e[Mi("0x2f")]}],formatGroupId:Mi("0x16")})}))}[Mi("0x2")](t,e={}){const n=this[Mi("0x32")][Mi("0x1c")][Mi("0x34")](Mi("0x13")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x15"),Mi("0x7"))&&Mi("0x33")===t[Mi("0xa")](Mi("0x19"))));if(o.length<1)return;const s=o.map((t=>this[Mi("0x32")][Mi("0x2a")][Mi("0xd")](this[Mi("0x32")][Mi("0x2a")][Mi("0x28")](t,"before"),this[Mi("0x32")][Mi("0x2a")][Mi("0x28")](t,0))));this.editor[Mi("0x2a")][Mi("0x25")]((()=>{n[Mi("0x8")](s,{commandName:Mi("0x1a"),commandParams:[{startIndex:e[Mi("0x9")]}],formatGroupId:Mi("0x1a")})}))}[Mi("0x27")](t){const e=this[Mi("0x32")][Mi("0x20")],{data:n}=t;if(!n)return;let o,s;switch(n[Mi("0x22")]){case Mi("0x14"):o=Mi("0x2d"),s={type:"format",content:Yo(e,o,Yo(e,this[Mi("0x17")](n[Mi("0x1d")][0][Mi("0x11")])))};break;case Mi("0x16"):o=n[Mi("0x1d")][0].reversed?Mi("0xe"):Mi("0x1b"),s={type:Mi("0x0"),content:Yo(e,o)};break;case"listStart":o="*Format:* set start index to %0",s={type:Mi("0x0"),content:Yo(e,o,n[Mi("0x1d")][0][Mi("0x9")])}}return s}[Mi("0x2b")](){var t,e,n,o;const s=this[Mi("0x32")][Mi("0x1c")][Mi("0x34")](Mi("0xb"));let r=Array.from(this[Mi("0x32")].model.document.selection[Mi("0x31")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Mi("0x15"),Mi("0x7")))&&r.unshift(...s[Mi("0x38")](this.editor.model[Mi("0xf")][Mi("0x2e")][Mi("0x3")](),"backward")),(null===(e=r[r[Mi("0x24")]-1])||void 0===e?void 0:e.is(Mi("0x15"),Mi("0x7")))&&r.push(...s[Mi("0x38")](this.editor[Mi("0x2a")][Mi("0xf")][Mi("0x2e")].getLastPosition(),Mi("0x37"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0x32")][Mi("0x2a")][Mi("0xf")][Mi("0x2e")].getFirstPosition())||void 0===n?void 0:n[Mi("0x1e")])||void 0===o?void 0:o.is(Mi("0x15"),Mi("0x7")))&&(r=r[Mi("0x4")]((t=>t.is("element",Mi("0x7"))))),r}[Mi("0x35")](t){const e=this[Mi("0x32")][Mi("0x1c")][Mi("0x34")]("ListUtils");let n=Array.from(this.editor.model.document[Mi("0x2e")][Mi("0x31")]())[Mi("0x4")](t).map((t=>{const n=this[Mi("0x32")][Mi("0x2a")][Mi("0x28")](t,0);return[...e[Mi("0x38")](n,Mi("0x29")),...e.getSiblingNodes(n,Mi("0x37"))]}))[Mi("0x18")]();return n=[...new Set(n)],n}[Mi("0x17")](t){return Mi("0x6")+this.editor[Mi("0x1c")][Mi("0x34")](Mi("0xb"))[Mi("0x36")](t).toUpperCase()+Mi("0xc")+t.toUpperCase()[Mi("0x2c")](/-/g,"_")}}const Fi=["createEmptyElement","attribute:url:media","ELEMENT_MEDIA","enableCommand","plugins","data","TrackChangesEditing","media","options","for","conversion","high","afterInit","downcastDispatcher","editor","locale","dataDowncast","elementToElement","showSuggestionHighlights","stop","div","has","mediaEmbed","_descriptionFactory","get"];var Pi,Di;Pi=Fi,Di=288,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x18")](){const t=this[Bi("0x1")];if(!t[Bi("0x10")][Bi("0x8")]("MediaEmbedEditing"))return;const e=t[Bi("0x10")][Bi("0xb")](Bi("0x12")),n=t[Bi("0x2")];e[Bi("0xf")](Bi("0x9")),e[Bi("0xa")].registerElementLabel(Bi("0x13"),(t=>Yo(n,Bi("0xe"),t))),t[Bi("0x16")][Bi("0x15")](Bi("0x3"))[Bi("0x4")]({model:Bi("0x13"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x5")])return e[Bi("0xc")](Bi("0x7"))},converterPriority:"high"}),t[Bi("0x11")][Bi("0x0")].on(Bi("0xd"),((t,e,n)=>{n[Bi("0x14")][Bi("0x5")]&&t[Bi("0x6")]()}),{priority:Bi("0x17")})}}const Ui=["editor","MentionEditing","plugins","get","enableCommand","TrackChangesEditing","has"];var Gi,Hi;Gi=Ui,Hi=319,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this[zi("0x3")];t[zi("0x5")][zi("0x2")](zi("0x4"))&&t[zi("0x5")][zi("0x6")](zi("0x1"))[zi("0x0")]("mention")}}const Vi=["pageBreak","afterInit","get","enableCommand","editor","TrackChangesEditing","plugins","registerElementLabel","ELEMENT_PAGE_BREAK","locale"];var Ki,qi;Ki=Vi,qi=477,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x4")](){const t=this[Xi("0x7")];if(!t.plugins.has("PageBreakEditing"))return;t[Xi("0x9")][Xi("0x5")]("TrackChangesEditing")[Xi("0x6")](Xi("0x3"));const e=t[Xi("0x9")][Xi("0x5")](Xi("0x8")),n=t[Xi("0x2")];e._descriptionFactory[Xi("0x0")]("pageBreak",(t=>Yo(n,Xi("0x1"),t)))}}const Ji=["end","has","isLimit","insertParagraph","includes","TrackChangesEditing","editor","enableCommand","addClass","activeMarkers","selection","blockName","consumable","markerName","mapper","options","highest","document","ELEMENT_PARAGRAPH","name","locale","registerDescriptionCallback","filter","paragraph","downcastDispatcher","Paragraph","$text","insert","markBlockFormat","writer","registerElementLabel","getSelectedBlocks","addMarker:suggestion:insertion","editing","markerRange","toViewPosition","insertion","get","bindElementToMarker","model","ck-suggestion-marker--active","nodeAfter","commandName","getFirstRange","isBlock","from","checkChild","isObject","span","isTouching","plugins","createUIElement","change","schema","parent","_descriptionFactory","data","showSuggestionHighlights"];var Qi,Zi;Qi=Ji,Zi=308,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{afterInit(){const t=this[Yi("0x2e")];if(!t.plugins[Yi("0x29")](Yi("0x7")))return;const e=t[Yi("0x2")],n=t[Yi("0x20")][Yi("0x13")](Yi("0x2d"));n[Yi("0x25")][Yi("0xc")]("paragraph",(t=>Yo(e,Yi("0x0"),t))),n.enableCommand(Yi("0x5"),((e,o={})=>{const s=t[Yi("0x15")][Yi("0x39")],r=o[Yi("0x32")]||s[Yi("0x32")],i=Array[Yi("0x1b")](r[Yi("0xd")]())[Yi("0x4")]((t=>{return e=t,(n=this[Yi("0x2e")][Yi("0x15")][Yi("0x23")])[Yi("0x1c")](e[Yi("0x24")],Yi("0x5"))&&!n[Yi("0x1d")](e)&&Yi("0x5")!=e[Yi("0x1")];var e,n}));t[Yi("0x15")][Yi("0x22")]((()=>{for(const t of i)n[Yi("0xa")](t,{commandName:Yi("0x5"),commandParams:[],formatGroupId:Yi("0x33")},fs(t))}))})),n._descriptionFactory[Yi("0x3")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Yi("0x18")])return{type:"format",content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x0")))}})),n[Yi("0x2f")](Yi("0x2b")),t[Yi("0xf")].downcastDispatcher.on(Yi("0xe"),ex(t),{priority:Yi("0x38")}),t[Yi("0x26")][Yi("0x6")].on(Yi("0xe"),((e,n,o)=>{o[Yi("0x37")][Yi("0x27")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n._descriptionFactory;o[Yi("0x3")]((n=>{if(Yi("0x12")!==n.type)return;const{start:s,end:r}=n[Yi("0x19")]();if(!s[Yi("0x1f")](r)||!s[Yi("0x17")])return;const i=t[Yi("0x15")][Yi("0x23")],x=s.nodeAfter;return i[Yi("0x1a")](x)&&!i[Yi("0x2a")](x)&&i[Yi("0x1c")](x,Yi("0x8"))?{type:Yi("0x12"),content:Yo(e,"*Insert:* %0",o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x20")][Yi("0x13")](Yi("0x2d")),i=o[Yi("0x10")].start,x=o.markerRange[Yi("0x28")],a=t[Yi("0x15")].schema;if(!i[Yi("0x1f")](x)||!i[Yi("0x17")])return;const c=i[Yi("0x17")];if(a[Yi("0x1a")](c)&&!a[Yi("0x2a")](c)&&a.checkChild(c,"$text")){if(!s[Yi("0x34")].consume(o.markerRange,n.name))return;const t=s.writer[Yi("0x21")](Yi("0x1e"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0x36")][Yi("0x11")](x);e&&r[Yi("0x31")][Yi("0x2c")](o[Yi("0x35")])&&s[Yi("0xb")][Yi("0x30")](Yi("0x16"),t),s[Yi("0xb")][Yi("0x9")](i,t),s[Yi("0x36")][Yi("0x14")](t,o[Yi("0x35")])}}}const nx=["from","commandName","getRanges","locale","isFormatting","enableCommand","_descriptionFactory","change","isCollapsed","get","TrackChangesEditing","getAttributes","getAttributeProperties","editor","plugins","registerDescriptionCallback","format","markInlineFormat","schema","model","getItems","RemoveFormatEditing","*Remove all formatting*","removeFormat","selection","has"];var ox,sx;ox=nx,sx=114,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{afterInit(){const t=this[rx("0x3")];if(!t[rx("0x4")][rx("0xf")](rx("0xb")))return;const e=t[rx("0x4")][rx("0x19")](rx("0x0"));e[rx("0x15")](rx("0xd"),(n=>{const o=t[rx("0x9")].document[rx("0xe")];o[rx("0x18")]?n():t[rx("0x9")][rx("0x17")]((()=>{const n=Array[rx("0x10")](o[rx("0x12")]());for(const o of n)for(const n of o[rx("0xa")]())xx(n,t.model[rx("0x8")])&&e[rx("0x7")](t[rx("0x9")].createRangeOn(n),{commandName:rx("0xd"),commandParams:[]})}))})),e[rx("0x16")][rx("0x5")]((e=>{const{data:n}=e;if(n&&rx("0xd")==n[rx("0x11")])return{type:rx("0x6"),content:Yo(t[rx("0x13")],rx("0xc"))}}))}}function xx(t,e){for(const[n]of t[rx("0x1")]()){const t=e[rx("0x2")](n);if(t&&t[rx("0x14")])return!0}return!1}const ax=["afterInit","enableCommand","plugins","discardAllSuggestions","discardSelectedSuggestions","get","TrackChangesEditing","has","RestrictedEditingModeEditing","acceptAllSuggestions","trackChanges"];var cx,lx;cx=ax,lx=114,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x7")](){const t=this.editor;if(!t[dx("0x9")][dx("0x3")](dx("0x4")))return;const e=t[dx("0x9")][dx("0x1")](dx("0x2"));e[dx("0x8")]("goToPreviousRestrictedEditingException"),e[dx("0x8")]("goToNextRestrictedEditingException");const n=t.plugins[dx("0x1")](dx("0x4"));n[dx("0x8")](dx("0x6")),n.enableCommand("acceptSuggestion"),n[dx("0x8")]("discardSuggestion"),n.enableCommand(dx("0x5")),n.enableCommand(dx("0xa")),n[dx("0x8")]("acceptSelectedSuggestions"),n[dx("0x8")](dx("0x0"))}}const gx=["addMarker:suggestion:insertion","span","high","showSuggestionHighlights","editor","getItems","data","merge","mapper","enableCommand","_descriptionFactory","includes","createPositionBefore","model","locale","addClass","activeMarkers","options","toViewPosition","downcastDispatcher","split","TrackChangesEditing","deletion","addMarker:suggestion","consumable","writer","markerRange","markerName","element","softBreak","ck-suggestion-marker-","createUIElement","test","ck-suggestion-marker--active","insert","plugins","editing","get","requires","registerElementLabel","init","addMarker:suggestion:deletion","bindElementToMarker"];var mx,fx;mx=gx,fx=148,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("0x13")](){return[nr.ShiftEnter]}[hx("0x15")](){const t=this[hx("0x1c")],e=t[hx("0x10")][hx("0x12")](hx("0x2"));e[hx("0x21")]("shiftEnter"),t[hx("0x11")][hx("0x0")].on(hx("0x18"),bx(t),{priority:"high"}),t[hx("0x11")][hx("0x0")].on(hx("0x16"),bx(t),{priority:hx("0x1a")}),t[hx("0x1e")][hx("0x0")].on(hx("0x4"),((e,n,o)=>{o[hx("0x29")][hx("0x1b")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x22")][hx("0x14")](hx("0xa"),(e=>Yo(t[hx("0x26")],"ELEMENT_LINE_BREAK",e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[hx("0x12")](hx("0x2"));if(!s[hx("0x5")][hx("0xd")](o[hx("0x7")],n.name))return;const i=t[hx("0x25")];for(const t of o.markerRange[hx("0x1d")]()){if(!t.is(hx("0x9"),"softBreak"))continue;const n=hx("0x3")==o[hx("0x8")][hx("0x1")](":")[1]?hx("0x1f"):hx("0x1"),x=s[hx("0x6")][hx("0xc")](hx("0x19"),{class:hx("0xb")+n}),a=s.mapper[hx("0x2a")](i[hx("0x24")](t));e&&r[hx("0x28")][hx("0x23")](o[hx("0x8")])&&s[hx("0x6")][hx("0x27")](hx("0xe"),x),s[hx("0x6")][hx("0xf")](a,x),s[hx("0x20")][hx("0x17")](x,o[hx("0x8")])}}}const Ex=["getRanges","markInlineFormat","FORMAT_RESTRICTED_DISABLED","registerDescriptionCallback","plugins","model","change","from","commandName","FORMAT_RESTRICTED_ENABLED","selection","format","forceValue","StandardEditingModeEditing","enableCommand","editor","commandParams","isCollapsed","has","locale","value","afterInit","get","document"];var _x,Tx;_x=Ex,Tx=360,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x15")](){const t=this[Cx("0xf")],e=t[Cx("0x5")],n=t[Cx("0x13")];if(!t[Cx("0x4")][Cx("0x12")](Cx("0xd")))return;const o=t.plugins[Cx("0x16")]("TrackChangesEditing"),s="restrictedEditingException",r=t.commands[Cx("0x16")](s);o[Cx("0xe")](s,((t,n={})=>{const i=e[Cx("0x17")][Cx("0xa")];if(i[Cx("0x11")])return void t(n);const x=void 0!==n[Cx("0xc")]?n[Cx("0xc")]:!r[Cx("0x14")];e[Cx("0x6")]((()=>{const t=Array[Cx("0x7")](i[Cx("0x0")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x1")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Cx("0x3")]((t=>{const{data:e}=t;if(e&&e[Cx("0x8")]==s)return e[Cx("0x10")][0][Cx("0xc")]?{type:"format",content:Yo(n,Cx("0x9"))}:{type:Cx("0xb"),content:Yo(n,Cx("0x2"))}}))}}const kx=["markInlineFormat","markBlockFormat","has","element","get","getItems","change","enabledStyles","_getRangesWithClasses","includes","from","format","*Format:* %0","classes","value","name","model","Style","block","commandName","_getStyleDefinition","toLowerCase","forceValue","plugins","document","registerDescriptionCallback","commandParams","enableCommand","getAncestors","normalizeConfig","styleName","editor","commands","style","isBlock","DataSchema","push","modelElements","isCollapsed","getDefinitionsForView","createRangeOn","every"];var Ax,vx;Ax=kx,vx=373,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this[Rx("0x24")];if(!t.plugins[Rx("0x7")](Rx("0x16")))return;const e=t[Rx("0x25")].get(Rx("0x26")),n=t[Rx("0x1c")][Rx("0x9")]("TrackChangesEditing"),o=t.locale,s=t[Rx("0x1c")][Rx("0x9")](Rx("0x28")),r=t[Rx("0x1c")].get("StyleUtils")[Rx("0x22")](s,t.config[Rx("0x9")]("style.definitions"));n[Rx("0x20")](Rx("0x26"),((o,{styleName:i})=>{const x=t[Rx("0x15")][Rx("0x1d")].selection,a=this[Rx("0x19")](i,r);if(!a)return;if(!e[Rx("0xc")][Rx("0xe")](i))return;if(x[Rx("0x1")]&&!a[Rx("0x27")])return void o({styleName:i});const c=!e[Rx("0x13")][Rx("0xe")](a[Rx("0x14")]);if(a[Rx("0x27")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x21")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0xe")](o.name)){n.add(o);break}}return n}(x.getSelectedBlocks(),a[Rx("0x0")]);t[Rx("0x15")].change((()=>{for(const t of e)n[Rx("0x6")](t,{commandName:Rx("0x26"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Rx("0xf")](x.getRanges());if(!c){const n=Array[Rx("0xf")](s[Rx("0x2")](a[Rx("0x8")],!1))[0][Rx("0x15")],o=[];for(const s of e){const e=this[Rx("0xd")](t.model,s,a[Rx("0x12")],n);o[Rx("0x29")](...e)}e=o}t[Rx("0x15")][Rx("0xb")]((()=>{for(const t of e)n[Rx("0x5")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[Rx("0x1e")]((t=>{const{data:e}=t;if(e&&Rx("0x26")===e[Rx("0x18")])return e[Rx("0x1f")][0][Rx("0x1b")]?{type:Rx("0x10"),content:Yo(o,Rx("0x11"),e[Rx("0x1f")][0][Rx("0x23")][Rx("0x1a")]())}:{type:Rx("0x10"),content:Yo(o,"*Remove format:* %0",e[Rx("0x1f")][0][Rx("0x23")].toLowerCase())}}))}[Rx("0x19")](t,e){let n=e[Rx("0x17")].find((e=>e[Rx("0x14")]===t));return n||(n=e.inline.find((e=>e[Rx("0x14")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0xa")]()){const e=r.getAttribute(o);e&&n[Rx("0x4")]((t=>e[Rx("0x12")].includes(t)))&&s[Rx("0x29")](t[Rx("0x3")](r))}return s}}const Ix=["tableColumn","commands","refresh","registerDescriptionCallback","enqueueChange","options","substr","model","start","isEqual","isTouching","registerElementLabel","getChildren","maxColumn","cell","hasAttribute","above","detach","_getCoordsForCells","ELEMENT_TABLE_ROW_WITH_TEXT","change:data","getContainedElement","*Remove:* %0","ELEMENT_TABLE","span","element","createRangeOn","ELEMENT_TABLE_WITH_TEXT","mapper","getCellLocation","insertion","some","first","rowspan","selectTableColumn","forceValue","getRowIndexes","_suggestionFactory","data","oldRange","name","suggestion","fromRange","every","length","addMarker:suggestion","registerCustomCallback","root","_tableSuggestions","*Insert:* %0","insert","type","getItems","values","TableEditing","tablePaste","rootName","from","nodeAfter","writer","accept","getChangedMarkers","_tablePostFixingSubtypes","getRanges","order","insertTableRowBelow","removeTableColumn","tableCell","markMultiRangeInsertion","discard","setSelection","removeClass","ELEMENT_TABLE_ROW","max","ELEMENT_TABLE_COLUMN","push","item","differ","highest","subType","TableUtils","minRow","change","getAttribute","editor","execute","$graveyard","getSelectionAffectedTableCells","end","low","$textProxy","get","selection","ELEMENT_TABLE_COLUMN_WITH_TEXT","insertTableColumnRight","MAX_SAFE_INTEGER","join","removeTableRow","filter","getFirstRange","tableRow","createTableWalker","document","_getSuggestionCoords","TrackChangesEditing","_descriptionFactory","map","getColumnIndexes","locale","plugins","_acceptFormatSuggestionCallbackFactory","last","deletion","includes","registerPostFixer","enableCommand","position","toLowerCase","findAncestor","min","createRangeIn","maxRow","insertTableRowAbove","MIN_SAFE_INTEGER","colspan","table","nodeBefore","markMultiRangeDeletion","addRange","insertTableColumnLeft","isInContent","minColumn"];var Lx,Nx;Lx=Ix,Nx=478,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this[wx("0x70")]=[wx("0x12"),wx("0x32")],this[wx("0x62")]=new Set}afterInit(){const t=this[wx("0x2")],e=t.model[wx("0x14")][wx("0xa")];if(!t.plugins.has(wx("0x68")))return;const n=t[wx("0x1a")],o=t[wx("0x1b")][wx("0x9")](wx("0x16")),s=t[wx("0x1b")][wx("0x9")](wx("0x82"));o[wx("0x17")][wx("0x3d")](wx("0x2b"),(t=>Yo(n,wx("0x49"),t))),this._setupColumnsRowsFixing(),o[wx("0x21")]("insertTable"),o.enableCommand("selectTableRow"),o[wx("0x21")](wx("0x54"));for(const n of[wx("0x28"),wx("0x73")]){const r=t[wx("0x33")][wx("0x9")](n);o.enableCommand(n,(n=>{t.model[wx("0x0")]((t=>{n();const i=wx("0x42")===r[wx("0x72")],x=s[wx("0x5")](e),a=s[wx("0x56")](x),c=i?a.first-1:a.last+1,l=x[0][wx("0x24")](wx("0x2b")),d=s[wx("0x13")](l,{startRow:c,endRow:c}),u=Array[wx("0x6b")](d)[wx("0x18")]((e=>t[wx("0x4c")](e[wx("0x40")])));o[wx("0x76")](u,"tableRow")}))}))}for(const n of[wx("0x2f"),wx("0xc")]){const r=t.commands[wx("0x9")](n);o[wx("0x21")](n,(n=>{t[wx("0x39")].change((t=>{n();const i="left"===r.order,x=s[wx("0x5")](e),a=s[wx("0x19")](x),c=i?a[wx("0x52")]-1:a[wx("0x1d")]+1,l=x[0][wx("0x24")](wx("0x2b")),d=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[wx("0x6b")](d).map((e=>t[wx("0x4c")](e[wx("0x40")])));o[wx("0x76")](u,wx("0x32"))}))}))}for(const n of[wx("0xf"),wx("0x74")]){const r=n[wx("0x38")](11),i=r[wx("0x23")](),x=i[wx("0x38")](0,3)+wx("0x4a"),a="table"+r,c=wx("0x25")+r,l=wx("0x7b")+r;o[wx("0x21")](n,(()=>{t[wx("0x39")][wx("0x0")]((t=>{const r=s[wx("0x5")](e),d=r[0].findAncestor("table");let u;if(wx("0xf")==n){const t=s.getRowIndexes(r);u={startRow:t[wx("0x52")],endRow:t[wx("0x1d")],includeAllSlots:!0}}else{const t=s[wx("0x19")](r);u={startColumn:t.first,endColumn:t[wx("0x1d")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[wx("0x6b")](g)[wx("0x18")]((({cell:t})=>t)),f=Ox(m.filter((t=>t[wx("0x41")](x)))),h=Ox(m[wx("0x10")]((t=>!t[wx("0x41")](x))))[wx("0x18")]((e=>t.createRangeOn(e))),p=o[wx("0x2d")](h,a);if(p&&(wx("0x12")==p[wx("0x81")]||wx("0x32")==p[wx("0x81")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s.getCellLocation(n),a=n[wx("0x1")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array.from(e[wx("0x71")]())[wx("0x18")]((t=>i.LiveRange[wx("0x5c")](t)));t.model[wx("0x0")]((e=>{const s=e.batch;n=n.filter((t=>wx("0x4")!=t[wx("0x61")][wx("0x6a")])),e[wx("0x78")](n),t[wx("0x33")][wx("0x9")]("removeTableRow")[wx("0x34")](),t[wx("0x3")](wx("0xf"),{forceDefaultExecution:!0}),t.model[wx("0x36")]((()=>{t[wx("0x39")][wx("0x36")](s,(t=>{const e=o[wx("0x10")]((t=>wx("0x4")!=t[wx("0x61")][wx("0x6a")]));e.length>0&&t.setSelection(e);for(const t of o)t.detach()}))}))}))}function a(n){t[wx("0x39")][wx("0x0")]((o=>{const s=Array[wx("0x6b")](e[wx("0x71")]()).map((t=>i.LiveRange[wx("0x5c")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[wx("0x7d")](e);for(const e of r)wx("0x4")!=e[wx("0x61")][wx("0x6a")]&&(o[wx("0x78")](o.createPositionAt(e,0)),t.commands[wx("0x9")](wx("0x74"))[wx("0x34")](),t[wx("0x3")](wx("0x74"),{forceDefaultExecution:!0}));const x=s[wx("0x10")]((t=>wx("0x4")!=t[wx("0x61")][wx("0x6a")]));x[wx("0x5e")]>0&&o[wx("0x78")](x);for(const t of s)t[wx("0x43")]()}))}function c(t,e){return e[wx("0x5d")]((e=>t[wx("0x51")]((t=>t[wx("0x6")].isEqual(e[wx("0x3a")])||e[wx("0x6")][wx("0x3b")](t[wx("0x3a")])))))}function l(t,e){return t[wx("0x51")]((t=>e.some((e=>t[wx("0x6")][wx("0x3c")](e[wx("0x3a")])))))}t[wx("0x58")].downcastDispatcher.on(wx("0x5f"),((t,e,n)=>{if(!n[wx("0x37")].showSuggestionHighlights)return;const o=e[wx("0x7e")];if(!o)return;const s=n[wx("0x4e")].toViewElement(o);function r(t){return Array.isArray(t)?t:[t]}s&&wx("0x75")===o[wx("0x5a")]&&(0,x.setHighlightHandling)(s,n[wx("0x6d")],((t,e,n)=>n.addClass(r(e.classes),t)),((t,e,n)=>n[wx("0x79")](r(e.classes),t)))}),{priority:wx("0x80")}),o._descriptionFactory.registerDescriptionCallback((t=>{if(wx("0x50")!=t.type&&"deletion"!=t[wx("0x65")])return;const e=t[wx("0x47")]();if(null!=e&&e.is(wx("0x4b"),wx("0x2b"))){if(wx("0x50")==t[wx("0x65")]){const e=t[wx("0x66")]()[wx("0x10")]((t=>t.is(wx("0x8")))).map((t=>t[wx("0x58")]));if(e[wx("0x5e")])return{type:wx("0x50"),content:Yo(n,"*Insert:* %0",Yo(n,wx("0x4d"),'"'+e.join(" ")+'"'))}}if(wx("0x1e")==t[wx("0x65")]){const e=t[wx("0x66")]()[wx("0x10")]((t=>t.is(wx("0x8")))).map((t=>t[wx("0x58")]));if(e.length)return{type:"deletion",content:Yo(n,wx("0x48"),Yo(n,wx("0x4d"),'"'+e.join(" ")+'"'))}}}})),o._descriptionFactory[wx("0x35")]((t=>{if(wx("0x12")==t[wx("0x81")]){const e=t.getItems()[wx("0x10")]((t=>t.is("$textProxy")))[wx("0x18")]((t=>t[wx("0x58")])),o=this[wx("0x15")](t),s=o[wx("0x27")]-o[wx("0x83")]+1;if(wx("0x50")==t.type)return e[wx("0x5e")]?{type:"insertion",content:Yo(n,wx("0x63"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:wx("0x50"),content:Yo(n,wx("0x63"),Yo(n,wx("0x7a"),s))};if(wx("0x1e")==t[wx("0x65")])return e[wx("0x5e")]?{type:wx("0x1e"),content:Yo(n,"*Remove:* %0",Yo(n,wx("0x45"),[s,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Yo(n,wx("0x48"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(wx("0x32")==t.subType){const e=t[wx("0x66")]()[wx("0x10")]((t=>t.is(wx("0x8"))))[wx("0x18")]((t=>t[wx("0x58")])),o=this[wx("0x15")](t),s=o[wx("0x3f")]-o[wx("0x31")]+1;if(wx("0x50")==t[wx("0x65")])return e[wx("0x5e")]?{type:wx("0x50"),content:Yo(n,wx("0x63"),Yo(n,wx("0xb"),[s,'"'+e[wx("0xe")](" ")+'"']))}:{type:wx("0x50"),content:Yo(n,wx("0x63"),Yo(n,wx("0x7c"),s))};if("deletion"==t[wx("0x65")])return e[wx("0x5e")]?{type:wx("0x1e"),content:Yo(n,wx("0x48"),Yo(n,wx("0xb"),[s,'"'+e[wx("0xe")](" ")+'"']))}:{type:"deletion",content:Yo(n,wx("0x48"),Yo(n,wx("0x7c"),s))}}})),o[wx("0x57")][wx("0x60")]("insertion",wx("0x12"),"discard",r),o[wx("0x57")].registerCustomCallback(wx("0x1e"),"tableRow","accept",r),o._suggestionFactory[wx("0x60")](wx("0x50"),wx("0x32"),wx("0x77"),a),o[wx("0x57")].registerCustomCallback(wx("0x1e"),wx("0x32"),wx("0x6e"),a),o[wx("0x57")][wx("0x60")](wx("0x50"),"tableColumn","join",c),o[wx("0x57")][wx("0x60")](wx("0x1e"),wx("0x32"),wx("0xe"),c),o[wx("0x57")].registerCustomCallback(wx("0x50"),wx("0x12"),wx("0xe"),l),o[wx("0x57")].registerCustomCallback(wx("0x1e"),wx("0x12"),wx("0xe"),l)}[wx("0x1c")](){const t=this.editor,e=t[wx("0x39")].document[wx("0xa")];return(n,o)=>{t[wx("0x39")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][wx("0x6")][wx("0x2c")];x&&x[0]&&!1===x[0][wx("0x55")]&&(a=n[0][wx("0x3a")][wx("0x6c")]);const c=s[wx("0x26")](a);if("$graveyard"==c[wx("0x61")].rootName)return;const l=Array[wx("0x6b")](e[wx("0x71")]())[wx("0x18")]((t=>i.LiveRange[wx("0x5c")](t)));s[wx("0x78")](c),t[wx("0x33")][wx("0x9")](r).refresh(),x[wx("0x7d")]({forceDefaultExecution:!0}),t[wx("0x3")](r,...x);const d=l[wx("0x10")]((t=>wx("0x4")!=t.root[wx("0x6a")]));d[wx("0x5e")]>0&&s[wx("0x78")](d);for(const t of l)t[wx("0x43")]()}))}}[wx("0x44")](t){const e=this.editor[wx("0x1b")][wx("0x9")](wx("0x82"));let n=Number[wx("0xd")],o=Number.MIN_SAFE_INTEGER,s=Number[wx("0xd")],r=Number[wx("0x29")];for(const i of t){if("$graveyard"==i[wx("0x61")][wx("0x6a")])continue;const{row:t,column:x}=e[wx("0x4f")](i),a=i[wx("0x41")](wx("0x53"))?i[wx("0x1")]("rowspan")-1:0,c=i[wx("0x41")](wx("0x2a"))?i.getAttribute(wx("0x2a"))-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[wx("0x2")],e=t[wx("0x1b")][wx("0x9")](wx("0x16")),n=t[wx("0x1b")][wx("0x9")](wx("0x82"));t[wx("0x39")].document.on(wx("0x46"),(()=>{const n=Array[wx("0x6b")](t[wx("0x39")][wx("0x14")][wx("0x7f")][wx("0x6f")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if(wx("0x5b")!=n)continue;if(null!=o[wx("0x59")])continue;const i=e.getSuggestion(s);this._tablePostFixingSubtypes[wx("0x1f")](r)&&this[wx("0x62")].add(i)}}),{priority:wx("0x7")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[wx("0x24")](wx("0x2b")),i=n[wx("0x4f")](t);for(const e of this[wx("0x62")]){const n=e[wx("0x81")],x=n.startsWith(wx("0x69")),a=n[wx("0x38")](x?10:5),c=a[wx("0x23")](),l=c.substr(0,3)+wx("0x4a"),d="min"+a,u=wx("0x7b")+a;if(!e[wx("0x30")])continue;if(r!=e[wx("0x11")]()[wx("0x3a")][wx("0x24")](wx("0x2b")))continue;if(e.isIntersectingWithRange(s))continue;const g=t[wx("0x41")](l)?t[wx("0x1")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[wx("0x2e")](s),o=!0)}return o};t[wx("0x39")].document[wx("0x20")]((e=>{let n=!1;for(const s of t[wx("0x39")].document.differ.getChanges())if(wx("0x64")==s[wx("0x65")])if("tableRow"==s[wx("0x5a")])for(const t of s[wx("0x22")].nodeAfter[wx("0x3e")]())n=n||o(t,e);else wx("0x75")==s[wx("0x5a")]&&(n=n||o(s.position[wx("0x6c")],e));return n}))}[wx("0x15")](t){return this._getCoordsForCells(t.getRanges()[wx("0x18")]((t=>t[wx("0x3a")].nodeAfter)))}}function Ox(t){return Array.from(new Set(t)[wx("0x67")]())}const Fx=["mergeTableCellRight","splitTableCellVertically","createTableWalker","has","_suggestionFactory","element","find","splitTableCellHorizontally","plugins","size","containsRange","tableCell","low","document","subType","execute","getRanges","value","_isForcedDefaultExecutionBlock","author","deletion","refresh","getFirstPosition","push","model","markMultiRangeBlockFormat","forceDefaultExecution","TableUtils","_areMergableCells","registerDescriptionCallback","setSelection","*Merge cells*","selection","from","locale","afterInit","set:isEnabled","*Split cell:* horizontally","*Split cell:* vertically","mergeTableCells","length","get","mergeTableCellUp","createRangeOn","add","mergeTableCellLeft","change","TrackChangesEditing","table","_descriptionFactory","accept","direction","_areSelectedCellsMergable","format","getCellLocation","markBlockFormat","mergeTableCellDown","getAncestors","commands","rootName","stop","map","type","trackChanges","highest","enableCommand","registerCustomCallback","TableEditing","editor","requires","$graveyard","commandName","getSelectionAffectedTableCells","_acceptFormatSuggestionCallbackFactory","formatBlock","cell","horizontally","detach"];var Px,Dx;Px=Fx,Dx=477,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("0x3c")](){return[Mx]}[Bx("0x1a")](){const t=this[Bx("0x3b")],e=t[Bx("0xf")][Bx("0x4")].selection,n=t[Bx("0x19")];if(!t.plugins[Bx("0x48")](Bx("0x3a")))return;const o=t[Bx("0x4d")][Bx("0x20")]("TrackChangesEditing"),s=t[Bx("0x4d")][Bx("0x20")](Bx("0x12")),r=t[Bx("0x4d")][Bx("0x20")](Mx);r._tablePostFixingSubtypes[Bx("0xe")](Bx("0x1e")),o[Bx("0x38")](Bx("0x1e"),(()=>{const e=s[Bx("0x3f")](t[Bx("0xf")][Bx("0x4")][Bx("0x17")]);t[Bx("0xf")][Bx("0x25")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:Bx("0x1e"),commandParams:[]},[],Bx("0x1e"))}))})),t[Bx("0x31")].get(Bx("0x1e")).on("execute",((e,n)=>{t.commands[Bx("0x20")](Bx("0x36"))[Bx("0x8")]&&(n[Bx("0x1f")]>0&&n[n[Bx("0x1f")]-1]&&n[n[Bx("0x1f")]-1][Bx("0x11")]||o[Bx("0x9")]||this[Bx("0x2b")]()||e[Bx("0x33")]())}),{priority:Bx("0x37")});for(const e of["mergeTableCellUp","mergeTableCellRight",Bx("0x2f"),Bx("0x24")]){const n=t.commands[Bx("0x20")](e);o.enableCommand(e,(()=>{const e=t[Bx("0xf")][Bx("0x4")][Bx("0x17")][Bx("0xd")]()[Bx("0x30")]()[Bx("0x4b")]((t=>t.is("element",Bx("0x2")))),s=n.value;t.model[Bx("0x25")]((()=>{o[Bx("0x10")]([e,s],{commandName:Bx("0x1e"),commandParams:[]},[],Bx("0x1e"))}))}))}for(const e of[Bx("0x46"),Bx("0x4c")]){const n=t[Bx("0x31")][Bx("0x20")](e);o[Bx("0x38")](e,(()=>{const r=s[Bx("0x3f")](t[Bx("0xf")][Bx("0x4")].selection)[0],i=r.findAncestor(Bx("0x27")),{column:x,row:a}=s[Bx("0x2d")](r);let c=[];if(Bx("0x43")==n[Bx("0x2a")]){const t=s[Bx("0x47")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x18")](t)[Bx("0x34")]((t=>t.cell))}else{const t=s[Bx("0x47")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x18")](t).map((t=>t[Bx("0x42")]))}t.model[Bx("0x25")]((t=>{o[Bx("0x2e")](t[Bx("0x22")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x28")][Bx("0x14")]((t=>{const{data:e}=t;if(e)return Bx("0x1e")==e[Bx("0x3e")]?{type:Bx("0x2c"),content:Yo(n,Bx("0x16"))}:void 0})),o[Bx("0x28")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x46")==e[Bx("0x3e")]?{type:Bx("0x2c"),content:Yo(n,Bx("0x1d"))}:"splitTableCellHorizontally"==e.commandName?{type:"format",content:Yo(n,Bx("0x1c"))}:void 0}));const x=r[Bx("0x40")]();for(const t of["mergeTableCellUp",Bx("0x45"),Bx("0x2f"),Bx("0x24")])o[Bx("0x49")][Bx("0x39")]("formatBlock",t,"accept",x);for(const t of["splitTableCellVertically",Bx("0x4c")])o[Bx("0x49")][Bx("0x39")](Bx("0x41"),t,"accept",x);o[Bx("0x49")][Bx("0x39")](Bx("0x41"),Bx("0x1e"),Bx("0x29"),(n=>{t[Bx("0xf")][Bx("0x25")]((o=>{const s=Array[Bx("0x18")](e[Bx("0x7")]())[Bx("0x34")]((t=>i.LiveRange.fromRange(t)));o[Bx("0x15")](n),t[Bx("0x31")][Bx("0x20")](Bx("0x1e"))[Bx("0xc")](),t[Bx("0x6")]("mergeTableCells",{forceDefaultExecution:!0});const r=s.filter((t=>Bx("0x3d")!=t.root[Bx("0x32")]));r.length>0&&o[Bx("0x15")](r);for(const t of s)t[Bx("0x44")]()}))}));for(const e of[Bx("0x21"),Bx("0x2f"),Bx("0x24"),Bx("0x45")]){const n=t[Bx("0x31")][Bx("0x20")](e);n.on(Bx("0x1b"),((e,o,s)=>{if(s){const o=t[Bx("0xf")][Bx("0x4")][Bx("0x17")][Bx("0xd")]()[Bx("0x30")]()[Bx("0x4b")]((t=>t.is(Bx("0x4a"),"tableCell")));this[Bx("0x13")](n.value,o)||(e.return=!1,e[Bx("0x33")]())}}),{priority:Bx("0x3")})}}[Bx("0x2b")](){const t=this[Bx("0x3b")][Bx("0x31")][Bx("0x20")]("mergeTableCells"),e=this[Bx("0x3b")][Bx("0x4d")].get(Bx("0x12"));if(!t.isEnabled)return!1;const n=e[Bx("0x3f")](this[Bx("0x3b")].model.document[Bx("0x17")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Bx("0x13")](t,e){const n=this[Bx("0x3b")][Bx("0x4d")].get(Bx("0x26")),o=this[Bx("0x3b")][Bx("0xf")][Bx("0x22")](t),s=this[Bx("0x3b")].model[Bx("0x22")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if(("insertion"==t[Bx("0x35")]||Bx("0xb")==t[Bx("0x35")]||Bx("0x1e")==t[Bx("0x5")])&&t.isInContent)for(const e of t[Bx("0x7")]())e[Bx("0x1")](o,!0)&&r[Bx("0x23")](t[Bx("0x35")]+":"+t[Bx("0xa")].id),e[Bx("0x1")](s,!0)&&i[Bx("0x23")](t[Bx("0x35")]+":"+t.author.id);if(r[Bx("0x0")]!=i[Bx("0x0")])return!1;for(const t of r)if(!i[Bx("0x48")](t))return!1;return!0}}const Ux=["toViewElement","format","isBefore","headingColumns","model","options","TableUtils","table","headingRows","createPositionAfter","showSuggestionHighlights","consume","change","index","setTableColumnHeader","getChild","activeMarkers","markBlockFormat","registerDescriptionCallback","accept","nodeAfter","removeClass","unbindElementFromMarkerName","getSuggestion","registerCustomCallback","document","selection","has","data-suggestion","commands","consumable","forceValue","stop","enableCommand","FORMAT_REGULAR_ROW","_descriptionFactory","childCount","ck-suggestion-marker-","commandParams","from","markerRange","parent","addMarker:suggestion","TrackChangesEditing","getRowIndexes","item","writer","FORMAT_HEADER_COLUMN","removeMarker:suggestion","ck-suggestion-marker--active","_splitMarkerName","_suggestionFactory","mapper","afterInit","commandName","setTableRowHeader","downcastDispatcher","value","highest","markerName","bindElementToMarker","*Format:* %0","nodeBefore","requires","getSelectionAffectedTableCells","locale","createPositionBefore","editor","createTableWalker","FORMAT_HEADER_ROW","getAttribute","data","findAncestor","name","addClass","plugins","first","_acceptFormatSuggestionCallbackFactory","cell","editing","createRange","formatBlock","getColumnIndexes","get","getCellLocation","last"];var Gx,Hx;Gx=Ux,Hx=173,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("0x3e")](){return[Mx]}[zx("0x34")](){const t=this[zx("0x42")];if(!t[zx("0x4a")][zx("0x1a")]("TableEditing"))return;const e=t[zx("0x40")],n=t.plugins[zx("0x52")](zx("0x2a")),o=t[zx("0x4a")].get(zx("0x5")),s=t[zx("0x4a")][zx("0x52")](Mx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x31")](r[zx("0x3a")]),c=n[zx("0x16")](a);if(!c.data||zx("0xd")!=c[zx("0x46")][zx("0x35")])return;if(r[zx("0x2c")])return void s[zx("0x1f")]();if(!i[zx("0x1d")][zx("0xa")](r[zx("0x27")],s[zx("0x48")]))return;const l=r.markerRange.start[zx("0x13")],d=r[zx("0x27")].end[zx("0x3d")],u=l[zx("0x28")].parent,{column:g}=o.getCellLocation(l),{column:m}=o[zx("0x53")](d);for(let s=g;s<=m;s++){const c=o[zx("0x43")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x4d")],c=i.mapper[zx("0x55")](s);i[zx("0x2d")][zx("0x49")]("ck-suggestion-marker-"+x,c),e&&i[zx("0x2d")].setAttribute(zx("0x1b"),a,c),i[zx("0x33")][zx("0x3b")](c,r[zx("0x3a")]),t&&(n[zx("0xf")].includes(r[zx("0x3a")])?i.writer[zx("0x49")](zx("0x30"),c):i[zx("0x2d")].removeClass(zx("0x30"),c))}}}}n[zx("0x20")](zx("0x36"),((e,s)=>{const r=o[zx("0x3f")](t[zx("0x3")][zx("0x18")].selection),i=o[zx("0x2b")](r),x=r[0][zx("0x47")](zx("0x6")),a=x[zx("0x45")](zx("0x7"))||0,c=s&&null!==s[zx("0x1e")]?s[zx("0x1e")]:!t[zx("0x1c")].get(zx("0x36"))[zx("0x38")],l=c?i[zx("0x54")]:i[zx("0x4b")],d=x.getChild(l);let u;if(c){const e=x[zx("0xe")](a);if(d[zx("0xc")]<e.index)return;u=t[zx("0x3")][zx("0x4f")](t[zx("0x3")][zx("0x41")](e[zx("0xe")](0)),t[zx("0x3")][zx("0x8")](d.getChild(d[zx("0x23")]-1)))}else{const e=x[zx("0xe")](a-1);if(!e)return;u=t[zx("0x3")][zx("0x4f")](t.model[zx("0x41")](d[zx("0xe")](0)),t[zx("0x3")].createPositionAfter(e[zx("0xe")](e[zx("0x23")]-1)))}t[zx("0x3")][zx("0xb")]((()=>{n[zx("0x10")](u,{commandName:zx("0x36"),commandParams:[{forceValue:c}]},[],zx("0x36"))}))})),n[zx("0x20")](zx("0xd"),((e,o)=>{const s=t[zx("0x4a")].get(zx("0x5")),r=s[zx("0x3f")](t.model.document[zx("0x19")]),i=s[zx("0x51")](r),x=r[0][zx("0x47")]("table"),a=x[zx("0x45")](zx("0x2"))||0,c=o&&null!==o[zx("0x1e")]?o[zx("0x1e")]:!t[zx("0x1c")][zx("0x52")]("setTableColumnHeader")[zx("0x38")];let l;const d=x[zx("0xe")](0),u=c?i[zx("0x54")]:i[zx("0x4b")],g=s[zx("0x43")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x26")](g)[0][zx("0x4d")];if(c){const e=d.getChild(a);if(m[zx("0x1")](e))return;l=t[zx("0x3")][zx("0x4f")](t[zx("0x3")][zx("0x41")](e),t.model[zx("0x8")](m))}else{const e=d[zx("0xe")](a-1);if(!e)return;l=t[zx("0x3")].createRange(t[zx("0x3")][zx("0x41")](m),t[zx("0x3")][zx("0x8")](e))}t[zx("0x3")][zx("0xb")]((()=>{n.markBlockFormat(l,{commandName:zx("0xd"),commandParams:[{forceValue:c}]},[],zx("0xd"))}))})),t.editing[zx("0x37")].on(zx("0x29"),r(),{priority:"highest"}),t[zx("0x46")][zx("0x37")].on(zx("0x29"),((t,e,n)=>{n[zx("0x4")][zx("0x9")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t[zx("0x4e")][zx("0x37")].on(zx("0x2f"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x31")](e[zx("0x3a")]),i=n[zx("0x16")](r);if(!i[zx("0x46")]||zx("0xd")!=i[zx("0x46")][zx("0x35")])return;const x=o[zx("0x33")].markerNameToElements(e[zx("0x3a")]);if(x)for(const t of x)o[zx("0x2d")][zx("0x14")](zx("0x24")+s,t),o[zx("0x2d")].removeClass(zx("0x30"),t),o[zx("0x2d")].removeAttribute(zx("0x1b"),t),o[zx("0x33")][zx("0x15")](t,e.markerName)}),{priority:zx("0x39")}),n[zx("0x22")][zx("0x11")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n.commandName){const t=n[zx("0x25")][0][zx("0x1e")];return o(Yo(e,zx(t?"0x44":"0x21")))}if(zx("0xd")==n[zx("0x35")]){const t=n[zx("0x25")][0].forceValue;return o(Yo(e,t?zx("0x2e"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:zx("0x0"),content:Yo(e,zx("0x3c"),t)}}}));const i=s[zx("0x4c")]();n[zx("0x32")][zx("0x17")](zx("0x50"),zx("0x36"),"accept",i),n[zx("0x32")][zx("0x17")](zx("0x50"),zx("0xd"),zx("0x12"),i)}}const Vx=["columns","from","insertionRanges","createRangeIn","afterInit","getMarkers","removeMarker","element","column","getChangedMarkers","markerAttributes","locale","keys","markMultiRangeDeletion","model","suggestion-td","getItems","getAllAdjacentSuggestions","getRows","tableCellSuggestion","tablePasteRow","Users","dataDowncast","ck-suggestion-marker","conversion","markMultiRangeBlockFormat","tablePaste","removeMarkers","getSelectionAffectedTableCells","findAncestor","subType","forceDefaultExecution","options","register","find","cell","tableCellBorderWidth","getRange","markMultiRangeInsertion","paragraph","tableCellVerticalAlignment","nodeAfter","isEqual","markerName","for","last","getAttributes","isEmpty","createTableWalker","getShiftedBy","batch","elementToElement","map","createElement","cells","getChanges","insertColumns","markerToHighlight","author","$graveyard","differ","table","redo","_descriptionFactory","deletionRanges","trackChanges","stop","suggestion","editing","getSuggestions","oldRange","value","previousSibling","tablePasteColumn","TableClipboard","end","name","commands","includes","add","discard","join","remove","filter","rows","_tablePostFixingSubtypes","fill","root","plugins","low","getChild","showSuggestionHighlights","setAttribute","isInContent","markers","get","_suggestionFactory","move","rowInsertionRanges","_getCoordsForCells","length","push","removeRows","accept","view","TableUtils","getRowIndexes","insertion","start","wrap","document","newRange","startsWith","formatBlock","listenTo","ck-suggestion-marker-insertion","tableCellBackgroundColor","tableCell","fromEntries","tablePasteChainId","tableCellBorderStyle","rowInsertionIndexes","insertRows","unwrap","ck-suggestion-marker--active","containsRange","selection","attributes","registerPostFixer","change","type","deletion","createRange","suggestionUnloaded","insert","registerCustomCallback","getColumns","getSuggestion","tableCellPadding","suggestion:formatBlock:tablePasteCell","_splitMarkerName","columnInsertionRanges","getColumnIndexes","tablePasteCell","getTableIfOnlyTableInContent","first","endColumn","clipboardOutput","columnInsertionIndexes","set","getContainedElement","insertContent","rootName","*Replace table cells*","high","createRangeOn","has","getChildren"];var Kx,qx;Kx=Vx,qx=248,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x68"),"tableCellBorderColor",Xx("0x1e"),"tableCellHorizontalAlignment",Xx("0x6c"),Xx("0x1a"),Xx("0x30")],Jx=Object[Xx("0x1c")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[Mx]}[Xx("0x48")](){const t=this.editor;if(!t[Xx("0x9c")][Xx("0x42")](Xx("0x8e")))return;const n=t[Xx("0x9c")].get("TrackChangesEditing"),o=t.plugins[Xx("0x5")](Xx("0xf")),s=t[Xx("0x9c")][Xx("0x5")](Mx),r=t[Xx("0x9c")][Xx("0x5")](Xx("0x8e"));s[Xx("0x99")].push("tablePasteRow",Xx("0x8d")),t[Xx("0x52")].schema[Xx("0x65")](Xx("0x57"),{allowIn:Xx("0x1b"),allowContentOf:Xx("0x1b"),isLimit:!0}),t.conversion[Xx("0x77")]({model:Xx("0x57"),view:Xx("0x53")});let i=null;t[Xx("0x52")].on(Xx("0x3d"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0xa")]-1];l&&l[Xx("0x63")]||n._isForcedDefaultExecutionBlock||this.editor.commands[Xx("0x5")](Xx("0x85"))[Xx("0x8b")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Xx("0x36")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x60")](n.document[Xx("0x24")]);if(!i.length)return!1;const x=i[0][Xx("0x61")]("table"),a=o[Xx("0x10")](i),c=o[Xx("0x34")](i),l={startRow:a[Xx("0x37")],endRow:a[Xx("0x71")],startColumn:c[Xx("0x37")],endColumn:c[Xx("0x71")]};return 1==i[Xx("0xa")]&&(l.endRow+=o[Xx("0x56")](r)-1,l[Xx("0x38")]+=o[Xx("0x2e")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x52")],o,r)&&(s[Xx("0x86")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x52")][Xx("0x27")]((()=>{t[Xx("0x52")][Xx("0x3d")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0xa")]&&n[Xx("0x6a")](s,Xx("0x58"),{tablePasteChainId:o}),r[Xx("0xa")]&&n[Xx("0x6a")](r,Xx("0x8d"),{tablePasteChainId:o}),a[Xx("0xa")]&&n[Xx("0x6a")](a,Xx("0x5e"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0xa")]&&n[Xx("0x51")](c,Xx("0x5e"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x5d")](l[Xx("0x78")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x35"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x52")][Xx("0x41")](o),i=e[Xx("0x66")]((t=>t[Xx("0x69")]()[Xx("0x6e")](r)));i&&n[Xx("0xb")]([i[Xx("0x90")],s])}n[Xx("0xa")]&&d[Xx("0x2")]("markerAttributes",Object[Xx("0x1c")](n))}i=null})))}),{priority:e.priorities[Xx("0x40")]+10}),t[Xx("0x9c")][Xx("0x5")](Xx("0x8e")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x86")]();const r=n[Xx("0x67")],x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x0")](0));for(const t of Array.from(x[Xx("0x43")]()))s[Xx("0x2c")](t,r,Xx("0x8f"));const t=i[Xx("0x1f")][Xx("0x92")](n.row),e=i.columnInsertionIndexes[Xx("0x92")](n[Xx("0x4c")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s[Xx("0x47")](r));else{const t=s[Xx("0x79")]("tableCellSuggestion"),e=s.createElement(Xx("0x57"));s[Xx("0x13")](s[Xx("0x47")](r),e),s[Xx("0x2c")](t,r,0);for(const e of Array.from(x.getChildren()))s.insert(e,t,"end");l=s[Xx("0x41")](t),d=s[Xx("0x41")](e)}const u=Array[Xx("0x45")](x[Xx("0x72")]())[Xx("0x97")]((([t])=>$x[Xx("0x92")](t)));i[Xx("0x7a")][Xx("0xb")]({element:r,attributes:u[Xx("0xa")]?Object[Xx("0x1c")](u):null}),l&&i[Xx("0x46")][Xx("0xb")](l),d&&i[Xx("0x84")].push(d)}),{priority:Xx("0x40")}),o.on(Xx("0x7c"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x44")]||1;i[Xx("0x3a")]=new Array(a).fill(x)[Xx("0x78")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x74")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x33")][Xx("0xb")](t[Xx("0x52")].createRangeOn(e))}),{priority:"low"}),o.on(Xx("0x20"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x98")]||1;i[Xx("0x1f")]=new Array(a)[Xx("0x9a")](x)[Xx("0x78")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x74")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x8")][Xx("0xb")](t[Xx("0x52")][Xx("0x41")](e))}),{priority:Xx("0x9d")}),n[Xx("0x83")].registerDescriptionCallback((e=>{if(e.subType&&e[Xx("0x62")][Xx("0x16")](Xx("0x5e")))return e.previous?{}:{type:Xx("0x11"),content:Yo(t[Xx("0x4f")],Xx("0x3f"))}}));const x=()=>{};for(const t of[Xx("0x5e"),"tablePasteColumn",Xx("0x58"),Xx("0x35")])n._suggestionFactory.registerCustomCallback(Xx("0x11"),t,Xx("0x95"),x),n[Xx("0x6")][Xx("0x2d")](Xx("0x29"),t,Xx("0x95"),x);n[Xx("0x6")][Xx("0x2d")](Xx("0x17"),Xx("0x35"),"discard",x),n[Xx("0x6")][Xx("0x2d")](Xx("0x17"),Xx("0x35"),Xx("0xd"),((e,n,o)=>{const s=e[Xx("0x78")]((t=>t[Xx("0x3c")]()))[Xx("0x97")]((t=>t)),r=new Map(s[Xx("0x78")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x7a")])e&&r[Xx("0x3b")](t,e);else if(o&&o[Xx("0x4e")])for(const[e,n]of Object.entries(o[Xx("0x4e")])){const o=t[Xx("0x52")][Xx("0x4")][Xx("0x5")](e),s=o?o[Xx("0x69")]()[Xx("0x3c")]():null;s&&r[Xx("0x3b")](s,n)}t[Xx("0x52")].change((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x6")].registerCustomCallback(e,Xx("0x5e"),o,((s,r,i)=>{t[Xx("0x52")][Xx("0x27")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x12")][Xx("0x6d")];e.is(Xx("0x4b"),Xx("0x57"))&&x.push(e)}n[Xx("0x6")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x7f")!=e[Xx("0x9b")][Xx("0x3e")]&&t[Xx("0x21")](e)}))}))};a(Xx("0x11"),Xx("0xd")),a(Xx("0x11"),Xx("0x94")),a(Xx("0x29"),Xx("0xd")),a(Xx("0x29"),Xx("0x94")),n[Xx("0x6")][Xx("0x2d")]("insertion",Xx("0x58"),Xx("0x94"),(t=>{const e=t[Xx("0x78")]((t=>t[Xx("0x3c")]())),n=e[0][Xx("0x61")](Xx("0x81")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0xc")](n,{at:r,rows:i-r+1})})),n[Xx("0x6")][Xx("0x2d")](Xx("0x11"),Xx("0x8d"),Xx("0x94"),(t=>{const e=t[Xx("0x78")]((t=>t[Xx("0x3c")]())),n=e[0][Xx("0x61")](Xx("0x81")),{minColumn:r,maxColumn:i}=s[Xx("0x9")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x62")]||!e.subType.startsWith(Xx("0x5e")))return;const o=e[Xx("0x25")].tablePasteChainId,s=n[Xx("0x89")]()[Xx("0x97")]((t=>t.isInContent&&t[Xx("0x25")]&&t[Xx("0x25")][Xx("0x1d")]==o));s.length&&e[Xx("0x55")]()[Xx("0xa")]!=s.length&&s.reduce(((t,e)=>(t.next=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Xx("0x6f")]),s=[Xx("0x5b"),Xx("0x19")],r=n.activeMarkers[Xx("0x92")](t.markerName);return r&&s.push(Xx("0x22")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:"high"}),n.on(Xx("0x2b"),c,{priority:"high"}),t.model[Xx("0x14")].registerPostFixer((()=>{let e=!1;const o=Array.from(t[Xx("0x52")][Xx("0x14")][Xx("0x80")][Xx("0x4d")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x32")](s);if(Xx("0x87")!=o||"deletion"!=i||r[Xx("0x8a")])continue;if(!n.hasSuggestion(x))continue;const a=n[Xx("0x2f")](x).getRanges(),c=t[Xx("0x9c")][Xx("0x5")](Xx("0x59")).me;for(const t of n[Xx("0x89")]())if(t[Xx("0x3")]&&t[Xx("0x7e")]==c&&Xx("0x17")==t[Xx("0x28")]&&Xx("0x35")==t[Xx("0x62")]&&t.getRanges().every((t=>a.some((e=>e[Xx("0x23")](t,!0))))))for(const n of t[Xx("0x55")]())n[Xx("0x3")]&&(n.discard(),e=!0)}return e})),t[Xx("0x52")].document[Xx("0x26")]((e=>{const o=t[Xx("0x91")][Xx("0x5")](Xx("0x82"));if(!o||!o._createdBatches.has(e[Xx("0x76")]))return!1;let s=!1;const r=t[Xx("0x9c")].get("Users").me,i=t[Xx("0x52")][Xx("0x14")][Xx("0x80")][Xx("0x7b")](),x=Array[Xx("0x45")](t[Xx("0x52")][Xx("0x14")].differ[Xx("0x4d")]())[Xx("0x97")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x32")](t);return Xx("0x87")==o&&Xx("0x5e")==s&&i==r.id&&!e.oldRange}));for(const t of i){if(Xx("0x2c")!=t[Xx("0x28")]||Xx("0x57")!=t[Xx("0x90")]||1!=t.length)continue;const n=e[Xx("0x2a")](t.position,t.position[Xx("0x75")](1));if(!x[Xx("0x66")]((({data:t})=>t[Xx("0x15")][Xx("0x6e")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Xx("0x52")].document[Xx("0x26")]((e=>{let o=!1;const s=t[Xx("0x9c")].get(Xx("0x59")).me,r=n[Xx("0x89")]()[Xx("0x97")]((t=>t[Xx("0x3")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x5e")==t[Xx("0x62")])for(const e of t[Xx("0x49")]()){const n=e[Xx("0x69")]()[Xx("0x3c")]();if(n)if(n.is(Xx("0x4b"),Xx("0x57"))&&Zx(n)){t[Xx("0x4a")](e[Xx("0x90")]),i[Xx("0x93")](n),o=!0;const s=n.nextSibling,r=n[Xx("0x8c")],a=s&&s.is(Xx("0x4b"),Xx("0x57")),c=r&&r.is("element","tableCellSuggestion");a&&!i[Xx("0x42")](s)&&x.add(s),c&&!i[Xx("0x42")](r)&&x[Xx("0x93")](r)}else n.is(Xx("0x4b"),Xx("0x6b"))&&n[Xx("0x73")]&&(t.removeMarker(e[Xx("0x90")]),o=!0)}else if("tablePasteCell"==t[Xx("0x62")]){if(!t.attributes||!t[Xx("0x25")][Xx("0x1d")])continue;const e=t.attributes[Xx("0x4e")];if(e&&Object[Xx("0x50")](e)[Xx("0xa")])continue;const n=t[Xx("0x25")][Xx("0x1d")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x62")]&&e.subType.startsWith(Xx("0x5e"))){if(!e[Xx("0x25")][Xx("0x1d")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x25")][Xx("0x1d")]==n){s=!1;break}}i&&s&&(t[Xx("0x5f")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x21")](t);return o})),t[Xx("0x5c")][Xx("0x70")]("editingDowncast")[Xx("0x7d")]({model:Xx("0x31"),view:(t,e)=>l(t),converterPriority:Xx("0x40")}),t[Xx("0x5c")].for(Xx("0x5a"))[Xx("0x7d")]({model:Xx("0x31"),view:(t,e)=>e[Xx("0x64")][Xx("0x1")]?l(t,!1):null,converterPriority:Xx("0x40")});const d=t[Xx("0x88")][Xx("0xe")];this[Xx("0x18")](d[Xx("0x14")],Xx("0x39"),((t,e)=>{const n=[];for(const t of d[Xx("0x47")](e.content)[Xx("0x54")]())t.is(Xx("0x4b"),Xx("0x53"))&&n[Xx("0xb")](t);d[Xx("0x27")]((t=>{for(const e of n)t[Xx("0x7")](t.createRangeIn(e),t.createPositionBefore(e)),t[Xx("0x96")](e)}))}))}}function Zx(t){if(t[Xx("0x73")])return!0;const e=t[Xx("0x0")](0);return e.is(Xx("0x4b"),"paragraph")&&e.isEmpty}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x74")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["formatBlock","registerDescriptionCallback","has","handleSuggestionDescription","get","columnWidths","table","resizeColumnWidths","TrackChangesEditing","data","getSelectedElement","getTableColumnsWidths","_suggestionFactory","bind","accept","subType","commandParams","getColumnGroupElement","getAttribute","discard","locale","_descriptionFactory","plugins","document","enableCommand","resizeTable","editor","model","handleResizeTableWidthCommand","resizeTableWidth","tableWidth","selection","Users","TableColumnResizeEditing","getSuggestions","*Format:* resize table","registerCustomCallback"];var ea,na;ea=ta,na=156,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this[oa("0x12")][oa("0xe")][oa("0x1f")](oa("0x19")))return;const t=this[oa("0x12")].plugins[oa("0x21")](oa("0x0"));t[oa("0x10")](oa("0x15"),this[oa("0x14")][oa("0x5")](this)),t[oa("0x10")](oa("0x24"),this[oa("0x14")][oa("0x5")](this)),t._suggestionFactory[oa("0x1c")](oa("0x1d"),oa("0x11"),"accept",t[oa("0x4")].getSuggestionCallback(oa("0x1d"),null,"discard")),t[oa("0x4")][oa("0x1c")](oa("0x1d"),oa("0x11"),"discard",t[oa("0x4")].getSuggestionCallback(oa("0x1d"),null,oa("0x6"))),t[oa("0xd")][oa("0x1e")](this.handleSuggestionDescription[oa("0x5")](this))}[oa("0x14")](t,e){const n=this[oa("0x12")][oa("0xe")].get(oa("0x0")),o=this[oa("0x12")][oa("0xe")].get(oa("0x19")),s=e[oa("0x23")]||this.editor[oa("0x13")][oa("0xf")][oa("0x17")][oa("0x2")]();this.editor[oa("0x13")].change((()=>{const r=o[oa("0x9")](s);let i=r?o[oa("0x3")](r):null,x=s[oa("0xa")](oa("0x16"))||null;const a=e[oa("0x16")]||x,c=e[oa("0x22")]||i,l=this[oa("0x12")][oa("0xe")][oa("0x21")](oa("0x18")).me;for(const t of n[oa("0x1a")]()){const e=t.getContainedElement();if(oa("0x11")===t[oa("0x7")]&&e===s){t.author!==l&&t[oa("0xb")]();const e=t[oa("0x1")][oa("0x8")];x=e[0][oa("0x16")],i=e[0][oa("0x22")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:oa("0x15"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x11")},[],oa("0x11"))}))}[oa("0x20")](t){const{data:e}=t;if(e&&"resizeTable"===e.formatGroupId){const t=oa("0x1b");return{type:"format",content:Yo(this.editor[oa("0xc")],t)}}}}const ra=["TrackChangesEditing","has","Template"];var ia,xa;ia=ra,xa=315,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this.editor;t.plugins[aa("0x1")](aa("0x2"))&&t.plugins.get(aa("0x0")).enableCommand("insertTemplate")}}const la=["plugins","get","insertTableOfContents","enableCommand","TrackChangesEditing","_descriptionFactory","tableOfContents","commands","afterInit","editor","registerElementLabel"];var da,ua;da=la,ua=185,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0xa")](){const t=this[ga("0x0")];if(!t[ga("0x9")].get(ga("0x4")))return;t[ga("0x2")][ga("0x3")]("TrackChangesEditing")[ga("0x5")](ga("0x4"));const e=t[ga("0x2")].get(ga("0x6")),n=t.locale;e[ga("0x7")][ga("0x1")](ga("0x8"),(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const fa=["schema","differ","element","end","from","TrackChangesEditing","removeMarker","model","_descriptionFactory","editor","ELEMENT_TITLE","suggestion","start","forward","afterInit","locale","get","Title","nodeBefore","isTouching","getChangedMarkers","newRange","getNearestSelectionRange","isEqual","plugins","document","updateMarker","title-content"];var ha,pa;ha=fa,pa=206,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x4")](){const t=this[ba("0x1b")];if(!t.plugins.has(ba("0x7")))return;const e=t[ba("0xe")][ba("0x6")](ba("0x17"));e[ba("0x1a")].registerElementLabel(ba("0x11"),(()=>Yo(t[ba("0x5")],ba("0x0")))),t.model[ba("0xf")].registerPostFixer((n=>{let o=!1;const s=Array[ba("0x16")](t[ba("0x19")][ba("0xf")][ba("0x13")][ba("0xa")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x1")!==s||!i[ba("0xb")])continue;const x=i[ba("0xb")],a=x.end[ba("0x8")];if(!a||!a.is(ba("0x14"),"title-content"))continue;if(!x[ba("0x2")][ba("0x9")](x[ba("0x15")]))continue;const c=t[ba("0x19")][ba("0x12")][ba("0xc")](x[ba("0x15")],ba("0x3"));if(c&&c.isCollapsed){const t=n.createRange(x[ba("0x2")],c[ba("0x2")]);t[ba("0xd")](x)||(n[ba("0x10")](r,{range:t}),o=!0)}o||(n[ba("0x18")](r),o=!0)}return o}))}}const _a=["redo","TrackChangesEditing","undo","get","enableCommand","plugins","editor","has","UndoEditing"];var Ta,Ca;Ta=_a,Ca=330,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x0")],e=t.plugins[ya("0x6")](ya("0x4"));t[ya("0x8")][ya("0x1")](ya("0x2"))&&(e[ya("0x7")](ya("0x5")),e[ya("0x7")](ya("0x3")))}}const Aa=["TableCaptionEditing","plugins","has","toggleTableCaption","enableCommand","afterInit","get","requires","editor"];var va,Ra;va=Aa,Ra=107,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("0x8")](){return[Mx]}[Sa("0x6")](){const t=this[Sa("0x0")];t[Sa("0x2")][Sa("0x3")](Sa("0x1"))&&t[Sa("0x2")][Sa("0x7")]("TrackChangesEditing")[Sa("0x5")](Sa("0x4"))}}const La=["isFirstBlockOfListItem","config","handleDescriptions","toUpperCase","*Change to:* %0","editor","styles","listStart","DocumentListUtils","DocumentListPropertiesEditing","model","list.properties","get","format","_LIST_","ELEMENT_","markMultiRangeBlockFormat","length","has","_getSuggestionBlocks","startIndex","DocumentListPropertiesUtils","bind","_getTranslationKeyForListStyle","push","plugins","_descriptionFactory","filter","TrackChangesEditing","getSelectedBlocks","replace","_getSuggestionBlocksForListStyle","listType","numbered","handleListReversedCommand","enableCommand","locale","from","afterInit","getAttribute","reversed","handleListStartCommand","registerDescriptionCallback","selection","isListItemBlock","getListTypeFromListStyleType","expandListBlocksToCompleteList","change","listReversed","*Format:* set order to reversed","*Format:* set start index to %0","listStyle","handleListStyleCommand","commandParams","type"];var Na,wa;Na=La,wa=339,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[Ma("0x1d")](){if(!this[Ma("0x33")][Ma("0x10")][Ma("0x9")](Ma("0x0")))return;const t=this.editor[Ma("0x2f")][Ma("0x3")](Ma("0x2")),e=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x13"));t[Ma("0x34")]&&e.enableCommand(Ma("0x2a"),this[Ma("0x2b")].bind(this)),t[Ma("0x1f")]&&e[Ma("0x1a")](Ma("0x27"),this[Ma("0x19")].bind(this)),t[Ma("0xb")]&&e.enableCommand(Ma("0x35"),this[Ma("0x20")][Ma("0xd")](this)),e[Ma("0x11")][Ma("0x21")](this[Ma("0x30")][Ma("0xd")](this))}[Ma("0x2b")](t,e={}){const n=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x13")),o=this[Ma("0x16")]();this.editor[Ma("0x1")][Ma("0x26")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ma("0x2a"),commandParams:[{type:e[Ma("0x2d")]}],formatGroupId:Ma("0x2a")})}))}[Ma("0x19")](t,e={}){const n=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x13")),o=this.editor[Ma("0x10")][Ma("0x3")]("DocumentListUtils"),s=this._getSuggestionBlocks((t=>o[Ma("0x23")](t)&&Ma("0x18")===t[Ma("0x1e")](Ma("0x17"))));null!==s&&this.editor[Ma("0x1")][Ma("0x26")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ma("0x27"),commandParams:[{reversed:e[Ma("0x1f")]}],formatGroupId:Ma("0x27")})}))}[Ma("0x20")](t,e={}){const n=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x13")),o=this[Ma("0x33")][Ma("0x10")][Ma("0x3")]("DocumentListUtils"),s=this[Ma("0xa")]((t=>o[Ma("0x23")](t)&&Ma("0x18")===t.getAttribute(Ma("0x17"))));null!==s&&this[Ma("0x33")][Ma("0x1")][Ma("0x26")]((()=>{n[Ma("0x7")](s,{commandName:"listStart",commandParams:[{startIndex:e[Ma("0xb")]}],formatGroupId:Ma("0x35")})}))}[Ma("0x30")](t){const e=this[Ma("0x33")][Ma("0x1b")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case Ma("0x2a"):o=Ma("0x32"),s={type:Ma("0x4"),content:Yo(e,o,Yo(e,this[Ma("0xe")](n[Ma("0x2c")][0][Ma("0x2d")])))};break;case"listReversed":o=n[Ma("0x2c")][0][Ma("0x1f")]?Ma("0x28"):"*Format:* set order to regular",s={type:Ma("0x4"),content:Yo(e,o)};break;case Ma("0x35"):o=Ma("0x29"),s={type:Ma("0x4"),content:Yo(e,o,n[Ma("0x2c")][0][Ma("0xb")])}}return s}[Ma("0x16")](){const t=this[Ma("0x33")].plugins[Ma("0x3")](Ma("0x36"));let e=Array[Ma("0x1c")](this[Ma("0x33")][Ma("0x1")].document[Ma("0x22")][Ma("0x14")]());return e[Ma("0xf")](...t[Ma("0x25")](e)),e=[...new Set(e)],e}[Ma("0xa")](t){const e=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x36"));let n=Array[Ma("0x1c")](this[Ma("0x33")].model.document.selection[Ma("0x14")]())[Ma("0x12")](t);if(!n[Ma("0x8")])return null;n=e[Ma("0x25")](n);const o=[];for(const t of n)e[Ma("0x2e")](t)&&o[Ma("0xf")](t);return o}[Ma("0xe")](t){return Ma("0x6")+this[Ma("0x33")].plugins[Ma("0x3")](Ma("0xc"))[Ma("0x24")](t)[Ma("0x31")]()+Ma("0x5")+t[Ma("0x31")]()[Ma("0x15")](/-/g,"_")}}const Fa=["TableCellPropertiesEditing","getAttribute","table","getSelectionAffectedTableCells","markBlockFormat","accept","has","tableBorderWidth","tableCellBorderWidth","afterInit","commandParams","getSuggestions","*Format:* change table cell properties","selection","*Format:* change table properties","enqueueChange","_descriptionFactory","model","_handlePropertyChange","pluginName","tableCellWidth","locale","_suggestionFactory","formatBlock","TableUtils","tableCellPadding","_getSuggestion","registerCustomCallback","format","tableProperties","document","removeAttribute","tableHeight","data","tableCellBorderColor","get","tableCellProperties","handleDiscardAction","nodeAfter","editor","registerDescriptionCallback","getFirstPosition","tableBorderColor","enableCommand","TrackChangesEditing","tableBorderStyle","handleSuggestionDescription","tableCellBorderStyle","plugins","batch","discard","change","tableBackgroundColor","join","setAttribute","getContainedElement"];var Pa,Da;Pa=Fa,Da=284,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("0x19")]=[Ba("0x26"),Ba("0x29"),Ba("0x3"),"tableAlignment","tableWidth",Ba("0x1c"),Ba("0x30")],this.tableCellProperties=[Ba("0x1e"),Ba("0x2b"),Ba("0x4"),Ba("0x15"),Ba("0x10"),"tableCellHeight","tableCellBackgroundColor","tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get[Ba("0xf")](){return"TrackChangesTableProperties"}[Ba("0x5")](){const t=this[Ba("0x23")][Ba("0x2c")][Ba("0x1f")](Ba("0x28"));if(this.editor[Ba("0x2c")][Ba("0x2")]("TablePropertiesEditing")){for(const e of this[Ba("0x19")])t[Ba("0x27")](e,((t,n)=>{const o=this[Ba("0x23")][Ba("0xd")][Ba("0x1a")][Ba("0x9")][Ba("0x25")]().findAncestor(Ba("0x36"));this[Ba("0xe")](e,[o],this[Ba("0x19")],Ba("0x19"),t,n)}));t[Ba("0x12")][Ba("0x17")](Ba("0x13"),Ba("0x19"),Ba("0x1"),t[Ba("0x12")].getSuggestionCallback(Ba("0x13"),null,Ba("0x2e"))),t[Ba("0x12")][Ba("0x17")]("formatBlock",Ba("0x19"),Ba("0x2e"),((t,e)=>this.handleDiscardAction(this[Ba("0x19")],t,e))),t[Ba("0x12")].registerCustomCallback(Ba("0x13"),Ba("0x19"),Ba("0x31"),(()=>!1))}if(this.editor[Ba("0x2c")].has(Ba("0x34"))){for(const e of this[Ba("0x20")])t[Ba("0x27")](e,((t,n)=>{const o=this.editor[Ba("0x2c")][Ba("0x1f")](Ba("0x14"))[Ba("0x37")](this[Ba("0x23")][Ba("0xd")][Ba("0x1a")][Ba("0x9")]);this[Ba("0xe")](e,o,this[Ba("0x20")],Ba("0x20"),t,n)}));t[Ba("0x12")].registerCustomCallback(Ba("0x13"),Ba("0x20"),"accept",t[Ba("0x12")].getSuggestionCallback(Ba("0x13"),null,Ba("0x2e"))),t[Ba("0x12")][Ba("0x17")](Ba("0x13"),"tableCellProperties",Ba("0x2e"),((t,e)=>this[Ba("0x21")](this.tableCellProperties,t,e))),t[Ba("0x12")].registerCustomCallback(Ba("0x13"),"tableCellProperties","join",(()=>!1))}t[Ba("0xc")][Ba("0x24")]((t=>this[Ba("0x2a")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this.editor.plugins[Ba("0x1f")](Ba("0x28"));this[Ba("0x23")][Ba("0xd")][Ba("0xb")](r[Ba("0x2d")],(()=>{for(const t of e)if(this[Ba("0x16")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x35")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x0")](t,{commandParams:[e]},[],o)}}))}[Ba("0x21")](t,e,n){const o=e[0].start[Ba("0x22")],s=n[Ba("0x6")][0];this[Ba("0x23")][Ba("0xd")][Ba("0x2f")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x32")](n,s[n],o):e[Ba("0x1b")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x1d")])switch(t.subType){case Ba("0x19"):return{type:Ba("0x18"),content:Yo(this[Ba("0x23")][Ba("0x11")],Ba("0xa"))};case Ba("0x20"):return{type:Ba("0x18"),content:Yo(this.editor[Ba("0x11")],Ba("0x8"))}}}_getSuggestion(t,e){const n=this[Ba("0x23")][Ba("0x2c")][Ba("0x1f")]("TrackChangesEditing");for(const o of n[Ba("0x7")]({skipNotAttached:!0})){const n=o[Ba("0x33")]();if(o.subType===e&&n===t)return o}return null}}const Ua=["markerNameToElements","lowest","sort","activeMarkers","getAttribute","trackChanges","isBefore","buildSuggestion","group","removed","isMultiRange","addClass","elementToElement","forceDefaultExecution","acceptSelectedSuggestions","Users","position","dataDowncast","formatInline:accept","marker-count","commentThread","unbind","creator","move","discard","getMarkers","_joinWithAdjacentSuggestions","howMany","registerPostFixer","removeMarker","get","track-changes-command-not-found","schema","getItems","isLimit","_suggestionState","reconvertMarker","documentSelection","push","_addThreadToSuggestion","_createSuggestion","_getExternalAuthor","markDeletion","_editor","toViewElement","next","document","getDifference","splice","addComment","hasComments","insertion:discard","_addSuggestionMarker","addSuggestionData","_model","model","setSelection","from","mapper","data-suggestion","accept","differ","forward","formatInline:discard","fromRange","multi","set","formatBlock:join","_refreshSuggestionsChain","ck-suggestion-marker--active","catch","enableReadOnlyMode","high","elementEnd","_onDiscard","data","previous","_enabledCommands","includes","rootName","execute","ck-suggestion-marker-formatBlock","editor","nodeAfter","_findSuggestions","range","addRange","notReady","getRanges","acceptAllSuggestions","conversion","never","insertContent","getCommentThread","attributes","isAfter","getMultiRangeId","_adapter","addMarkerName","setTo","update:suggestion","author","getUser","insertion:join","oldRange","deletion:discard","_descriptionFactory","suggestionLoaded","targetPosition","init","nodeBefore","removeAttribute","start","suggestion","change:_saved","_defaultCallbacks","deleteContent","getRange","getFirstRange","for","editing","markerName","getChanges","isExternal","formatBlock:discard","_trackFormatChanges","suggestion:","multipleBlocks","parent","markInsertion","updateMarker","values","then","_saved","formatBlock","originalSuggestionId","delete","isTouching","_commentsRepository","createSelection","deletion:accept","name","filter","addMarker:suggestion","markMultiRangeBlockFormat","getChangedMarkers","track-changes-suggestion-not-found","add","isInContent","moveTargetPosition","markerReady","chain","deletion","isAtStart","writer","fromCharCode","createPositionAt","getCustomProperty","remove","splitPosition","collaboration.channelId","_checkSuggestionCorrectness","fetchCommentThread","createdAt","_suggestionFactory","change:activeMarkers","isIntersectingWithRange","insertion","markerToHighlight","ck-suggestion-marker","track-changes-adapter-missing-getsuggestion","always","isEqual","getSuggestionCallback","deletion:chain","trackChanges.mergeNestedSuggestions","normal","detach","addMarker","widget","subType","removeMarker:suggestion:formatBlock","containerElement","authoredAt","getNearestSelectionRange","low","acceptSuggestion","end","insert","isBlock","discardSelectedSuggestions","formatInline","_updateSuggestionData","default","markMultiRangeInsertion","addHighlight","getWalker","every","addMarker:suggestion:formatBlock","addUser","config","locale","after","markInlineFormat","applyOperation","markBlockFormat","deletion:","$graveyard","track-changes-suggestion-data-mismatch","getLastMatchingPosition","createRange","elementStart","before","addCommentThread","markers","_cutOutSuggestionMarker","error-saving-suggestion-data-suggestion-discarded","highest","type","clone","trackChanges.trackFormatChanges","containsRangeInObject","$textProxy","options","createPositionBefore","some","has","trackChangesCommand","$marker","clear","commandName","adapter","_getSuggestionData","split","removeComment","formatInline:chain","element","_joinSuggestions","enableCommand","removeMarkers","size","containsItem","isSelectable","unbindElementFromMarkerName","_customCallbacks","isOwn","item","showSuggestionHighlights","getFirstMarker","formatInline:join","getAllAdjacentSuggestions","getShiftedBy","change:data","rejected","consume","isCollapsed","markMultiRangeDeletion","_getAuthorFromId","addSuggestion","formatInline:","getSuggestion","setAttribute","_handleNewSuggestionMarker","isUndo","value","createRangeIn","refresh","map","dataReady","_isForcedDefaultExecutionBlock","join","_mergeNestedSuggestions","editingDowncast","getSuggestions","commands","length","plugins","change","isAtEnd","CommentsRepository","removeClass","@external","suggestionUnloaded","_setSuggestionData","formatBlock:","PENDING_ACTION_SUGGESTION","isObject","containsRange","formatGroupId","_splitMarkerName","_breakSuggestionMarker","listenTo","ready","isInsideObject","consumable","track-changes-adapter-already-set","root","_setSuggestionRange","_suggestions","define","_registerDefaultCallbacks","pluginName","isRemovable","fire","discardSuggestion","newRange","skipNestingCheck","_rangeIsInLocalUserInsertion","stop","insertion:","getIntersection","hasSuggestion"];var Ga,Ha;Ga=Ua,Ha=233,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 requires(){return[za("0x2e"),r.Users,t.PendingActions,cs,Cs,Rs,Ms,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,Mx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x44")](){return"TrackChangesEditing"}constructor(t){function e(t){return t.map((t=>String[za("0xea")](t))).join("")}super(t),this.set(za("0x52"),[]),this.on(za("0xf4"),((e,n,o,s)=>{this[za("0x85")][za("0x2c")]((()=>{for(const e of[...s,...o])this[za("0x85")][za("0x125")][za("0x131")](e)&&t[za("0xc7")][za("0x73")](e)}))})),this[za("0xb9")]=new ss(this[za("0xa1")][za("0x86")].schema,this.editor[za("0x118")]),this[za("0xb0")]=null,this[za("0xf3")]=new Va(this.editor),this[za("0x41")]=new Map,this._commentsRepository=t[za("0x2b")][za("0x6d")]("CommentsRepository"),this._enabledCommands=new Set,this[za("0x85")]=this[za("0xa1")][za("0x86")],this[za("0x72")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[za("0x117")][za("0x42")]("trackChanges.trackFormatChanges",za("0x110")),this[za("0xcc")]=t[za("0x117")].get(za("0x12b")),t[za("0x117")][za("0x42")](za("0xfe"),!0),this[za("0x26")]=t[za("0x117")][za("0x6d")]("trackChanges.mergeNestedSuggestions"),this.trackChangesCommand=new u(t,this[za("0x9c")]),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,52])}[za("0xbc")](){const t=this.editor;t[za("0xa9")][za("0xc6")]("editingDowncast")[za("0xf7")]({model:"suggestion",view:t=>{const{id:e,type:n}=this[za("0x38")](t[za("0xc8")]),o=["ck-suggestion-marker","ck-suggestion-marker-"+n];let s=3e3;return this[za("0x52")].includes(t[za("0xc8")])&&(o[za("0x75")](za("0x94")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xa9")][za("0xc6")](za("0x60"))[za("0xe2")]((e=>{e.on(za("0xde"),((e,n,o)=>{if(!o[za("0x12e")].showSuggestionHighlights)return;const s=n.item;if(!s)return;const r=o[za("0x89")][za("0x7b")](s);t.model[za("0x6f")][za("0x35")](s)&&r&&!r[za("0xec")](za("0x102"))&&r.is(za("0x105"))&&(0,x.toWidget)(r,o[za("0xe9")])}),{priority:"high"})})),t[za("0xa9")][za("0xc6")]("dataDowncast").markerToHighlight({model:za("0xc0"),view:(t,e)=>{if(!e[za("0x12e")][za("0xe")])return null;const{type:n}=this[za("0x38")](t[za("0xc8")]);return{classes:["ck-suggestion-marker","ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0xd")])return;if(o[za("0xd")].is("selection"))return void s[za("0x3d")][za("0x15")](o[za("0xd")],n.name);const r=s[za("0x89")].toViewElement(o[za("0xd")]);if(!o[za("0xd")].is(za("0x3"))||!t[za("0x86")][za("0x6f")][za("0x10c")](o.item)||r[za("0xec")](za("0x112")))return;const{id:i}=this[za("0x38")](o[za("0xc8")]);s[za("0xe9")][za("0x5a")]([za("0xf8"),za("0xa0")],r),s[za("0xe9")][za("0x1c")]("data-suggestion",i,r),s[za("0x89")].bindElementToMarker(r,o.markerName),e&&(this[za("0x52")][za("0x9d")](o[za("0xc8")])?s[za("0xe9")][za("0x5a")](za("0x94"),r):s[za("0xe9")][za("0x2f")]("ck-suggestion-marker--active",r));for(const e of t[za("0x86")][za("0x20")](o[za("0xd")])[za("0x70")]())s[za("0x3d")][za("0x15")](e,n.name);s[za("0x3d")][za("0x15")](o[za("0xd")],n[za("0xdc")])};t[za("0xa9")][za("0xc6")](za("0x60")).add((t=>{t.on(za("0x115"),((t,e,o)=>{o[za("0x12e")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x128")})})),t[za("0xa9")].for("dataDowncast").markerToData({model:za("0xc0"),view:(t,e)=>e[za("0x12e")][za("0xe")]?null:{group:za("0xc0"),name:t.substr(11)}}),t[za("0xa9")][za("0xc6")]("upcast")[za("0x5b")]({view:{name:za("0xc0"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0xcd")+t.getAttribute("suggestion-type")+":"+t[za("0x53")]("id");return t[za("0x53")](za("0x62"))&&(n+=":"+t[za("0x53")](za("0x62"))),e.createElement(za("0x133"),{"data-name":n})}}),t[za("0xa9")].for("upcast").dataToMarker({view:za("0xc0")}),t[za("0xa9")][za("0xc6")](za("0x27"))[za("0xe2")]((t=>{t.on(za("0x115"),n(),{priority:za("0x97")})})),t[za("0xa9")][za("0xc6")]("editingDowncast")[za("0xe2")]((t=>{t.on(za("0x104"),((t,e,n)=>{const o=n[za("0x89")][za("0x4f")](e[za("0xc8")]);if(o)for(const t of o)t.getCustomProperty("addHighlight")||(n[za("0xe9")][za("0x2f")]([za("0xf8"),za("0xa0"),"ck-suggestion-marker--active"],t),n[za("0xe9")][za("0xbe")](za("0x8a"),t),n[za("0x89")][za("0xa")](t,e[za("0xc8")]))}),{priority:za("0x97")})})),t.model[za("0x7d")][za("0x6b")]((e=>{let n=!1;const o=Array.from(t.model[za("0x7d")][za("0x8c")][za("0xe0")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x38")](x);if(za("0xc0")!==o)continue;const d=this[za("0x41")][za("0x6d")](l);if(null!=a.newRange)if(za("0x10e")==c&&(n=n||Xa(a[za("0x48")],x,e,t[za("0x86")][za("0x6f")])),a[za("0x48")][za("0x16")]||za("0x11e")==a[za("0x48")][za("0x3f")][za("0x9e")]||za("0xd5")==c&&!Ja(a.newRange)||"deletion"==c&&(qa(i=a[za("0x48")])||(r=i).start.parent==r[za("0x10a")][za("0xbd")]&&r.start.isAtEnd))e[za("0x6c")](x),n=!0;else{if(!d||!d.isInContent)continue;s[za("0xe2")](d)}}var r,i;return s.size>0&&(n=!!this[za("0x69")](s)||n),n})),t[za("0x86")][za("0x7d")][za("0x6b")]((e=>{let n=!1;for(const o of t[za("0x86")][za("0x7d")][za("0x8c")][za("0xc9")]()){if(za("0x10b")!=o.type)continue;const s=o[za("0x5f")][za("0x12")](o[za("0x2a")]);if(s[za("0x2d")])for(const r of this._suggestions.values()){if(r[za("0x59")]||!r[za("0xe3")])continue;if("formatBlock"!=r[za("0x129")])continue;const i=r.getFirstRange();if(i.start[za("0xcf")]!=i[za("0x10a")].parent&&i[za("0x10a")].isEqual(o.position)){const o=t[za("0x86")].createRange(i[za("0xbf")],s);e[za("0xd1")](r[za("0xf")](),{range:o}),n=!0}}}return n})),t[za("0x86")][za("0x125")].on(za("0xb3"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x38")](e[za("0xdc")]),n=this[za("0x41")][za("0x6d")](t);n&&n[za("0xb1")](e.name)}})),t[za("0x86")][za("0x7d")].on(za("0x13"),(()=>{const e=Array[za("0x88")](t[za("0x86")][za("0x7d")][za("0x8c")][za("0xe0")]())[za("0xdd")]((t=>za("0xc0")===this[za("0x38")](t[za("0xdc")])[za("0x57")]));if(0===e[za("0x2a")])return;e[za("0x51")](((t,e)=>{const n=t[za("0x9a")].oldRange,o=e[za("0x9a")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xbf")][za("0x55")](o[za("0xbf")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x38")](t);if(null===s[za("0xb7")]){const e=this[za("0x1d")](t);o[za("0xe2")](e)}else{const t=this[za("0x41")][za("0x6d")](e);null!==s[za("0x48")]||t[za("0xe3")]?(n[za("0xe2")](t.head),o.add(t)):this._removeSuggestion(t)}}o[za("0x7")]>0&&this[za("0x93")](o);for(const t of n)this[za("0x46")]("suggestionChanged",t)})),t[za("0x86")].on(za("0x11b"),((e,n)=>{const o=n[0];if(!this[za("0x41")][za("0x7")])return;if(!o.isDocumentOperation)return;if(o.batch[za("0x1e")]||!o.batch.isLocal)return;let s,r;switch(o[za("0x129")]){case za("0x10b"):s=t.model[za("0xeb")](o[za("0x5f")]),r=s.getShiftedBy(o[za("0x6a")]);break;case"split":s=t.model[za("0xeb")](o[za("0xee")]),r=t[za("0x86")][za("0xeb")](o[za("0xe4")]);break;case za("0x66"):s=t.model[za("0xeb")](o[za("0xbb")]),r=s.getShiftedBy(o[za("0x6a")]);break;default:return}const i=t[za("0x86")].createRange(s,r);t[za("0x86")][za("0x2c")]((()=>{for(const{suggestion:t,meta:e}of this[za("0xa3")](i)){if(t[za("0x59")])continue;if(za("0x10e")==t[za("0x129")])continue;const n=t.data&&t[za("0x9a")][za("0xce")];(za("0xd5")!=t[za("0x129")]||"split"==o[za("0x129")]&&!n)&&(e[za("0x12c")]||za("0xf6")==t[za("0x129")]&&e[za("0xc")]||t[za("0xc5")]()[za("0x36")](i)&&this[za("0x39")](t,s,r))}}))}),{priority:za("0x50")}),t.model.on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this._isForcedDefaultExecutionBlock)return;if(!this[za("0x132")][za("0x1f")])return;if(o[za("0x16")])return;const r=t[za("0x86")][za("0x6f")],{start:i,end:x}=o[za("0xc5")](),a=i[za("0xa2")]&&r[za("0x71")](i[za("0xa2")])?null:r[za("0x107")](i,za("0x8d")),c=x[za("0xbd")]&&r[za("0x71")](x[za("0xbd")])?null:r.getNearestSelectionRange(x,"backward"),l=t[za("0x86")][za("0x121")](a?a.start:i,c?c[za("0x10a")]:x);t[za("0x86")].change((e=>{this[za("0x79")](l);const n=t[za("0x86")].schema[za("0x107")](l[za("0xbf")]);o.is(za("0x74"))?e.setSelection(n):o[za("0xb2")](n)})),e.stop()}),{priority:e.priorities[za("0xff")]+10}),t[za("0x86")].on(za("0xab"),((e,n)=>{const o=n[n[za("0x2a")]-1];o&&o.forceDefaultExecution||this[za("0x24")]||this.trackChangesCommand.value&&(t.model[za("0x2c")]((()=>{let o=t.model[za("0xab")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[za("0x12a")]();const s=o[za("0x10a")][za("0xbd")],r=t[za("0x86")].schema;s&&r[za("0x10c")](s)&&!r[za("0x35")](s)&&(o=t[za("0x86")].createRange(o.start,t[za("0x86")].createPositionAt(s,"end"))),this[za("0xd0")](o)})),e[za("0x4b")]())}),{priority:za("0x97")}),this.editor[za("0x29")].add(za("0x54"),this[za("0x132")]),this.enableCommand(za("0x54"));const o=new p(t,this[za("0x41")]);t[za("0x29")][za("0xe2")](za("0x109"),o),this[za("0x5")]("acceptSuggestion");const s=new C(t,this._suggestions);t[za("0x29")].add("discardSuggestion",s),this[za("0x5")](za("0x47")),t[za("0x29")][za("0xe2")](za("0xa8"),new F(t,o,this[za("0x41")])),this[za("0x5")](za("0xa8")),t[za("0x29")][za("0xe2")]("discardAllSuggestions",new F(t,s,this[za("0x41")])),this[za("0x5")]("discardAllSuggestions"),t[za("0x29")][za("0xe2")]("acceptSelectedSuggestions",new U(t,o,this[za("0x41")])),this.enableCommand(za("0x5d")),t[za("0x29")][za("0xe2")](za("0x10d"),new U(t,s,this[za("0x41")])),this[za("0x5")](za("0x10d"));const r=t[za("0x2b")].get(za("0x2e"));this.listenTo(r,za("0x80"),((t,{threadId:e})=>{const n=this[za("0x41")][za("0x6d")](e);n&&n[za("0x63")]&&1===n[za("0x63")][za("0x2a")]&&this[za("0x10f")](e,{hasComments:!0})}),{priority:za("0x108")}),this[za("0x3a")](r,za("0x1"),((t,{threadId:e})=>{const n=this._suggestions[za("0x6d")](e);n&&n[za("0x63")]&&!n[za("0x63")][za("0x2a")]&&this[za("0x10f")](e,{hasComments:!1})}),{priority:za("0x108")})}set adapter(t){if(this[za("0xb0")])throw new e.CKEditorError(za("0x3e"),this);this[za("0xb0")]=t}get[za("0x136")](){return this[za("0xb0")]}[za("0x28")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0xd2")]())t&&!e.isInContent||n[za("0x75")](e);return e?n[za("0x22")]((t=>t.toJSON())):n}getSuggestion(t){const n=this[za("0x41")].get(t);if(!n)throw new e.CKEditorError(za("0xe1"),this);return n}[za("0x4e")](t){return this[za("0x41")][za("0x131")](t)}[za("0x84")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x129")].split(":"),i=this._suggestions[za("0x6d")](n)||this[za("0x77")](s,r,n,e,o);if(this[za("0x76")](i),this[za("0xf0")](i,s,r||null,e),i.createdAt=t[za("0xf2")],o&&o["@external"]){const t=o[za("0x30")],e=this[za("0x78")](t.authorName);i.authoredAt=t[za("0xf2")],i[za("0xb4")]=e,i[za("0xca")]=!0}else i[za("0x106")]=t[za("0xf2")];switch(t[za("0x9a")]&&(i[za("0x9a")]=t[za("0x9a")]),t[za("0xad")]&&(i[za("0xad")]=t[za("0xad")]),this[za("0xb0")]&&this[za("0xb0")][za("0x19")]||(i[za("0xd4")]=!0),this[za("0x72")][za("0x6d")](i)){case za("0xa6"):this[za("0x72")][za("0x91")](i,"dataReady");break;case za("0xe5"):i[za("0xe3")]?(this._suggestionState[za("0x91")](i,za("0x3b")),this[za("0x46")](za("0xba"),i)):this._suggestionState[za("0x91")](i,za("0x58"))}return i}acceptSuggestion(t){this.forceDefaultExecution((()=>{this[za("0xa1")][za("0x86")][za("0x2c")]((()=>{for(const e of t[za("0x11")]())e.accept()}))}))}[za("0x47")](t){this.forceDefaultExecution((()=>{this[za("0xa1")].model[za("0x2c")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0x67")]()}))}))}[za("0x5")](t,n){const o=this[za("0xa1")][za("0x29")][za("0x6d")](t);if(!o)throw new e.CKEditorError(za("0x6e"),this,{commandName:t});this[za("0x9c")].add(o),n&&o.on(za("0x9f"),((t,e)=>{this.trackChangesCommand.value&&(this[za("0x24")]||e[za("0x2a")]>0&&e[e[za("0x2a")]-1]&&e[e[za("0x2a")]-1].forceDefaultExecution||(n(((...t)=>o[za("0x9f")](...t,{forceDefaultExecution:!0})),...e),t[za("0x4b")]()))}),{priority:"high"})}[za("0x5c")](t){let n,o;const s=this[za("0x24")];this[za("0x24")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[za("0xd0")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0xa1")][za("0x2b")][za("0x6d")](za("0x5e")).me;for(const{suggestion:e,meta:o}of this[za("0xa3")](t,"insertion"))if(o.isOwn){if(!o.isNextTo){if(!this[za("0x26")]&&o[za("0x12c")])continue;return e}if(n==e.subType){const n=e[za("0xc5")]();return n[za("0xbf")][za("0xfb")](t[za("0x10a")])?this[za("0x40")](e,this[za("0x85")][za("0x121")](t[za("0xbf")],n[za("0x10a")])):this._setSuggestionRange(e,this[za("0x85")].createRange(n[za("0xbf")],t[za("0x10a")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x4c")+n:za("0xf6"),a=this[za("0x32")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x83")](x,r,i,t),a}[za("0x111")](t,n=za("0x90"),o={}){const s=this[za("0xa1")][za("0x2b")][za("0x6d")](za("0x5e")).me,r=this[za("0xf3")][za("0xfc")]("insertion",n,za("0x25"));for(const e of this[za("0x28")]())if(e[za("0xb4")].id==s.id&&za("0xf6")==e[za("0x129")]&&e.subType==n&&(r(e[za("0xa7")](),t)||r(t,e[za("0xa7")]()))){for(const n of t)e[za("0xa5")](n);return e}if(this[za("0x26")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0xa3")](e,za("0xf6"))){if(!o[za("0xc")])continue;let e=!0;for(const o of n[za("0xa7")]())for(const n of t)if(!o[za("0x36")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x4c")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x83")](a,i,x,e,Zo[za("0xaf")]());return c}[za("0x11a")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x16")])return null;if("never"===this[za("0xcc")]){const e=this[za("0xf3")][za("0xfc")]("formatInline",o,za("0x8b"));return this[za("0x5c")]((()=>e([t],n,s))),null}const r=this[za("0xa1")][za("0x2b")][za("0x6d")](za("0x5e")).me,i=[];if(za("0xfa")!==this[za("0xcc")])for(const{suggestion:e,meta:n}of this[za("0xa3")](t,za("0xf6")))n.isOwn&&!n[za("0x3c")]&&i.push(...e[za("0xa7")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x4d")](o);e&&n[za("0x75")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x2a")];){const o=n[e][za("0x7e")](t);n[za("0x7f")](e,1,...o),e+=o[za("0x2a")]}}return n}(t,i);x[za("0x2a")]&&this[za("0x85")].change((()=>{for(const t of x){const e=this[za("0xf3")][za("0xfc")](za("0x10e"),o,za("0x8b"));this[za("0x5c")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0xbf")],a=t[za("0x10a")];for(const{suggestion:e,meta:n}of this[za("0xa3")](t,za("0x10e"))){if(!n[za("0xc")])continue;if(e[za("0x103")]!=o)continue;const s=e.getFirstRange();if(s[za("0x36")](t,!0))return null;x=x[za("0x55")](s.start)?x:s.start,a=a[za("0xae")](s[za("0x10a")])?a:s[za("0x10a")],i?s.start.isBefore(i[za("0xc5")]()[za("0xbf")])?(i[za("0x6")](),i=e):e[za("0x6")]():i=e}const c=this._model[za("0x121")](x,a);if(i)this[za("0x40")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x32")]({id:t,type:za("0x1a")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x83")](za("0x1a")+o,t,i,c)}}return null}[za("0x11c")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[za("0x37")]=n[za("0x135")]),n[za("0xce")]=t.is(za("0xa4")),s=s||$a(n);const i=o[za("0x22")]((t=>Qa(t,this[za("0x85")]))),x=t.is(za("0xa4"))?t:Qa(t,this[za("0x85")]);if(za("0xaa")===this[za("0xcc")]){const t=this[za("0xf3")].getSuggestionCallback(za("0xd5"),s,za("0x8b"));return this[za("0x5c")]((()=>t([x],n,r))),null}i[za("0x75")](x);let a=!0;for(const t of i)if(!this[za("0x4a")](t)){a=!1;break}if(a&&za("0xfa")!==this[za("0xcc")]){const t=this[za("0xf3")].getSuggestionCallback(za("0xd5"),s,za("0x8b"));return this[za("0x5c")]((()=>t([x],n,r))),null}let c=null,l=x[za("0xbf")],d=x[za("0x10a")];for(const{suggestion:t,meta:e}of this[za("0xa3")](x,"formatBlock")){if(!e[za("0xc")]||e.isNextTo||e.containsRangeInObject||e.isInsideObject)continue;if(t.data[za("0x37")]!=n[za("0x37")])continue;const o=t[za("0xc5")]();if(t[za("0x103")]==s){if(o[za("0x36")](x,!0))return null;l=l[za("0x55")](o[za("0xbf")])?l:o[za("0xbf")],d=d[za("0xae")](o.end)?d:o[za("0x10a")],c?o[za("0xbf")][za("0x55")](c[za("0xc5")]().start)?(c[za("0x6")](),c=t):t.removeMarkers():c=t}else{const e=x[za("0x4d")](o);this[za("0x126")](t,e)}}const u=this[za("0xa1")][za("0x2b")].get(za("0x5e")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x40")](c,this[za("0x85")][za("0x121")](l,d)),c;{const t=this[za("0x32")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x83")]("formatBlock:"+s,g,m,this[za("0x85")].createRange(l,d)),t}}[za("0xdf")](t,n,o=[],s=null,r={}){n[za("0x37")]||(n[za("0x37")]=n[za("0x135")]);const i=t[0];n[za("0xce")]=i.is(za("0xa4")),s=s||$a(n);const x=o[za("0x22")]((t=>Qa(t,this[za("0x85")]))),a=i.is("range")?t:t[za("0x22")]((t=>Qa(t,this[za("0x85")])));if(za("0xaa")===this._trackFormatChanges){const t=this._suggestionFactory[za("0xfc")]("formatBlock",s,za("0x8b"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[za("0x4a")](t)){c=!1;break}if(c&&za("0xfa")!==this[za("0xcc")]){const t=this._suggestionFactory[za("0xfc")]("formatBlock",s,za("0x8b"));return this[za("0x5c")]((()=>t(a,n,r))),null}const l=this[za("0xa1")].plugins[za("0x6d")](za("0x5e")).me;for(const t of this[za("0x28")]()){if(t[za("0xb4")].id!=l.id)continue;if(za("0xd5")!=t[za("0x129")]||t[za("0x9a")].formatGroupId!=n[za("0x37")])continue;const e=t[za("0x103")]==s;for(let n=0;n<a[za("0x2a")];n++){const o=a[n];for(const s of t[za("0x68")]()){const r=s[za("0xc4")]();if(o[za("0xfb")](r)){e?(a[za("0x7f")](n,1),n--):t[za("0x6c")](s[za("0xdc")]);break}}}}if(0==a.length)return null;const d=this[za("0xf3")][za("0xfc")]("formatBlock",s,"join");for(const t of this.getSuggestions())if(t.author.id==l.id&&za("0xd5")==t[za("0x129")]&&t[za("0x9a")][za("0x37")]==n.formatGroupId&&t[za("0x103")]==s&&(d(t[za("0xa7")](),a)||d(a,t[za("0xa7")]()))){for(const e of a)t.addRange(e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x33")+s,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x83")](m,u,g,t,Zo.getMultiRangeId());return f}markDeletion(t,n=null,o={}){if(t[za("0x16")])return null;const s=this[za("0xa1")].plugins[za("0x6d")]("Users").me,r=new i.LiveRange(t[za("0xbf")],t[za("0x10a")]);for(const{suggestion:t,meta:e}of this[za("0xa3")](r,za("0xf6")))if(e[za("0xc")]&&!e.isNextTo)if(t[za("0x59")]){const e=t[za("0xa7")]().filter((t=>"$graveyard"!=t.root[za("0x9e")]));if(e[za("0x114")]((t=>r[za("0x36")](t,!0)))&&t[za("0x67")](),e[za("0x130")]((t=>t.containsRange(r,!0)))){const t=this[za("0xf3")][za("0xfc")](za("0xe7"),n,za("0x8b"));return this[za("0x5c")]((()=>t([r],null,o))),null}}else{const e=r[za("0x4d")](t[za("0xc5")]());null!==e&&t[za("0x99")]([e],null,o)}if(r[za("0x100")](),r[za("0x16")]||"$graveyard"==r[za("0x3f")][za("0x9e")])return null;let x=null,a=r.start,c=r[za("0x10a")];for(const{suggestion:t,meta:e}of this[za("0xa3")](r,"deletion"))if(e[za("0xc")])if(t[za("0x59")]&&this[za("0x26")]){let e=!0;for(const n of t.getRanges()){if(n[za("0x36")](r,!0))return t;r.containsRange(n)||(e=!1)}e&&t.discard()}else{const n=t[za("0xc5")]();if(n.containsRange(r,!0)){if(!this._mergeNestedSuggestions&&e[za("0x12c")])continue;return t}a=a[za("0x55")](n[za("0xbf")])?a:n[za("0xbf")],c=c[za("0xae")](n.end)?c:n.end,x?n[za("0xbf")].isBefore(x[za("0xc5")]()[za("0xbf")])?(x.removeMarkers(),x=t):t[za("0x6")]():x=t}if(x)return this[za("0x40")](x,this[za("0x85")][za("0x121")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x85")].createRange(a,c),i=s.id,x=n?za("0x11d")+n:za("0xe7"),l=this[za("0x32")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}[za("0x17")](t,n=za("0x90"),o={}){const s=this[za("0xa1")][za("0x2b")][za("0x6d")]("Users").me,r=t.map((t=>new i.LiveRange(t.start,t[za("0x10a")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xa3")](t,za("0xf6")))n[za("0xc")]&&!n.isNextTo&&x.add(e);for(const e of x)if(e[za("0x59")]){const s=e[za("0xa7")]();if((!e.attributes||!e[za("0xad")].skipNestingCheck)&&s[za("0x114")]((t=>r[za("0x130")]((e=>e[za("0x36")](t,!0)))))&&e.discard(),r.every((t=>s[za("0x130")]((e=>e[za("0x36")](t,!0)))))){const e=this[za("0xf3")][za("0xfc")]("deletion",n,za("0x8b"));return this[za("0x5c")]((()=>e(t,null,o))),null}}else{const t=e[za("0xc5")]();if(r[za("0x130")]((e=>e[za("0x36")](t,!0)))&&e[za("0x67")](),r[za("0x114")]((e=>t[za("0x36")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback(za("0xe7"),n,za("0x8b"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[za("0xf3")][za("0xfc")](za("0xe7"),n,"join");let c=null;for(const t of this[za("0x28")]())if(t[za("0xb4")].id==s.id&&t.isInContent&&"deletion"==t[za("0x129")]&&t[za("0x103")]==n&&(a(t.getRanges(),r)||a(r,t[za("0xa7")]())))if(c){if(t[za("0x63")]&&t[za("0x63")][za("0x2a")])continue;for(const e of t[za("0xa7")]())c[za("0xf5")](e)||c[za("0xa5")](e);t.removeMarkers()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[za("0xa5")](e)}if(c)return c;x[za("0x134")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xa3")](t,za("0xe7")))n[za("0xc")]&&x[za("0xe2")](e);for(const t of x){const e=t[za("0xa7")]();if((!o||!o[za("0x49")])&&r[za("0x114")]((t=>e.some((e=>e.containsRange(t,!0))))))return t;(!t[za("0xad")]||!t.attributes[za("0x49")])&&e[za("0x114")]((t=>r[za("0x130")]((e=>e[za("0x36")](t,!0)))))&&t[za("0x67")]()}const l=(0,e.uid)(),d=s.id,u=za("0x11d")+n,g=this[za("0x32")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t.detach(),t.isCollapsed||"$graveyard"==t[za("0x3f")][za("0x9e")]||this[za("0x83")](u,l,d,t,Zo[za("0xaf")]());return g}[za("0x40")](t,e){const n=t[za("0xf")]();this[za("0x85")][za("0x2c")]((t=>{t[za("0xd1")](n,{range:e})}))}[za("0x76")](t){const e=t.id,n=this[za("0xa1")].config[za("0x6d")](za("0xef"));this[za("0xd9")].hasCommentThread(e)||this[za("0xd9")][za("0x124")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[za("0xac")](e);o[za("0x64")](za("0x45")),o[za("0x45")]=!1,t[za("0x63")]=o}[za("0xf0")](t,n,o,s){if(t[za("0x129")]!=n||t[za("0x103")]!=o||t[za("0x65")].id!=s)throw this[za("0xa1")][za("0x96")](za("0x11f")),new e.CKEditorError(za("0x11f"),this)}[za("0x126")](t,n){const o=t[za("0xc5")]();if(n[za("0xfb")](o))t[za("0x6")]();else if(o.containsRange(n)){const s=this[za("0x85")][za("0xeb")](n[za("0xbf")][za("0xbd")],za("0x10a"));this[za("0x40")](t,this._model[za("0x121")](o[za("0xbf")],s));const r=(0,e.uid)(),i=t[za("0x65")].id,x=t[za("0x129")]+":"+t[za("0x103")];this[za("0x32")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x9a")],attributes:t.attributes});const a=this[za("0x85")][za("0xeb")](n.end[za("0xcf")],za("0x119")),c=this[za("0x85")][za("0x121")](a,o.end);this[za("0x83")](x,r,i,c)}else if(o.containsPosition(n.start)){const e=this._model[za("0xeb")](n.start[za("0xbd")],"end");this[za("0x40")](t,this[za("0x85")].createRange(o[za("0xbf")],e))}else{const e=this[za("0x85")][za("0xeb")](n[za("0x10a")][za("0xcf")],za("0x119"));this[za("0x40")](t,this[za("0x85")][za("0x121")](e,o[za("0x10a")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[za("0xa3")](t,za("0xf6"))){if(!n[za("0xc")])continue;const o=e.getRanges();for(const e of o)if(!t.getDifference(e)[za("0x2a")])return!0}return!1}[za("0x18")](t){const n=this.editor[za("0x2b")].get("Users")[za("0xb5")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[za("0x78")](t){const e=this[za("0xa1")][za("0x2b")][za("0x6d")]("Users"),n=(0,r.hashObject)("external:"+t);return e[za("0xb5")](n)||e[za("0x116")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this._getAuthorFromId(o),i=this[za("0xf3")][za("0x56")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this[za("0x3a")](i,za("0x8b"),(()=>{this._updateSuggestionData(n,{state:"accepted"})}),{priority:"high"}),this[za("0x3a")](i,za("0x67"),(()=>{this[za("0x10f")](n,{state:za("0x14")})}),{priority:za("0x97")}),this[za("0x41")][za("0x91")](n,i),this._suggestionState.set(i,za("0xa6")),i}[za("0x38")](t){const e=t[za("0x0")](":");return{group:e[0],type:e[1],subType:e[za("0x2a")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[za("0x2a")]<5?e[3]:e[4],markerCount:6==e[za("0x2a")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t[za("0xc5")](),r=s.start,i=s[za("0x10a")];this[za("0x40")](t,this._model.createRange(r,n));const x=(0,e.uid)(),a=t[za("0x65")].id,c=t[za("0x129")]+(t[za("0x103")]?":"+t[za("0x103")]:"");this[za("0x32")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0xad")],data:t[za("0x9a")]}),"formatBlock"==t.type&&(o=this[za("0x85")][za("0x12f")](o.parent)),this._addSuggestionMarker(c,x,a,this[za("0x85")].createRange(o,i))}[za("0xa3")](t,e=null){const n=[],o=this[za("0x85")][za("0x6f")],s=this[za("0xa1")][za("0x2b")][za("0x6d")](za("0x5e")).me;for(const r of this.getSuggestions())if(r.isInContent&&(!e||r[za("0x129")]==e))for(const e of r[za("0xa7")]()){const i=t.start[za("0xfb")](e[za("0x10a")])||t[za("0x10a")][za("0xfb")](e[za("0xbf")]);if(i||t[za("0x4d")](e)){const x=t[za("0x36")](e)&&Ka(o,e[za("0xbf")],t),a=e[za("0x36")](t)&&Ka(o,t[za("0xbf")],e);n[za("0x75")]({suggestion:r,meta:{isOwn:s==r[za("0xb4")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x83")](t,e,n,o,s){this._model[za("0x2c")]((r=>{let i=za("0xcd")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x101")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t.previous,n=t.next;t[za("0x9b")]=null,null!=e&&(e.next=null),t.next=null,null!=n&&(n[za("0x9b")]=null),"ready"==this[za("0x72")][za("0x6d")](t)&&(this[za("0x72")][za("0x91")](t,za("0x58")),this[za("0x46")](za("0x31"),t,e,n))}[za("0x32")](t){const n=t.id,o=this[za("0x84")](t);if(this._adapter&&this[za("0xb0")][za("0x19")]){const s=this[za("0xa1")][za("0x2b")][za("0x6d")]("PendingActions"),r=o.hasComments,i=o[za("0x103")]?o.type+":"+o[za("0x103")]:o[za("0x129")],x=this[za("0xa1")].locale,a=s[za("0xe2")](Yo(x,za("0x34"))),c={id:n,type:i,hasComments:r,data:t[za("0x9a")]||null,originalSuggestionId:t[za("0xd6")]||null,attributes:o[za("0xad")]};this[za("0xb0")][za("0x19")](c)[za("0xd3")]((t=>{o[za("0xd4")]=!0,s[za("0xed")](a),t&&t[za("0xf2")]&&(this[za("0x41")][za("0x6d")](n)[za("0xf2")]=t[za("0xf2")])}))[za("0x95")]((t=>{throw(0,e.logWarning)(za("0x127")),this[za("0xa1")][za("0x86")].enqueueChange({isUndoable:!1},(()=>{o[za("0x67")]()})),o.stopListening(),this[za("0x41")].delete(o.id),this[za("0x72")].delete(o),t}))}return o}[za("0x10f")](t,e){const n=this[za("0xa1")][za("0x2b")][za("0x6d")]("PendingActions"),o=this[za("0x1b")](t);if(this[za("0xb0")]&&this[za("0xb0")].updateSuggestion)if(o[za("0xd4")]){const o=n.add(Yo(this[za("0xa1")][za("0x118")],za("0x34")));this._adapter.updateSuggestion(t,e)[za("0xd3")]((()=>{n.remove(o)}))}else o.on(za("0xc1"),(()=>{this[za("0x10f")](t,e)}))}[za("0x137")](t){if(!this[za("0xb0")]||!this._adapter[za("0x1b")])throw new e.CKEditorError(za("0xf9"),this);return this[za("0xb0")].getSuggestion(t)}[za("0x1d")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x38")](t),r=this[za("0x41")][za("0x6d")](e)||this[za("0x77")](n,o,e,s,{});switch(this[za("0xf0")](r,n,o,s),this._suggestionState.get(r)){case za("0xa6"):this[za("0x137")](e)[za("0xd3")]((t=>{let n=Promise.resolve();t[za("0x81")]&&(n=this[za("0xd9")][za("0xf1")]({channelId:this[za("0xa1")][za("0x117")].get("collaboration.channelId"),threadId:e})),n[za("0xd3")]((()=>{this.addSuggestionData(t)[za("0xd4")]=!0}))})),this._suggestionState[za("0x91")](r,za("0xe5"));break;case"removed":this[za("0x10f")](e,{state:"open"});case za("0x23"):this[za("0x72")].set(r,za("0x3b")),this[za("0x46")](za("0xba"),r);break;case za("0x3b"):this[za("0x46")]("suggestionChanged",r)}return r[za("0xb1")](t),r}[za("0x93")](t){const e=Array[za("0x88")](t)[za("0xdd")]((t=>!t.isMultiRange)),n=this[za("0x28")]({skipNotAttached:!0})[za("0xdd")]((t=>!t[za("0x59")])),o=n[za("0xdd")]((e=>!t[za("0x131")](e))),s=new Map(n[za("0x22")]((t=>[t,this[za("0xf3")][za("0xfc")](t[za("0x129")],t[za("0x103")],za("0xe6"))]))),r=new Map(n[za("0x22")]((t=>[t,t[za("0xc5")]()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x2a")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x2a")];t++){const n=e[t];!x[za("0x131")](n)&&n.previous&&(n.previous[za("0x7c")]===n&&(n.previous[za("0x7c")]=null),n[za("0x9b")]=null),!i[za("0x131")](n)&&n[za("0x7c")]&&(n[za("0x7c")][za("0x9b")]===n&&(n[za("0x7c")].previous=null),n.next=null)}function a(t,e,n){for(let o=n;o<e[za("0x2a")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][za("0x9b")]=n[0],i[za("0xe2")](n[0]),x[za("0xe2")](n[1]))}}function c(t,e){if(t[za("0xb4")].id!==e.author.id)return null;const n=s[za("0x6d")](t)(t,e,r[za("0x6d")](t),r[za("0x6d")](e));return n&&s[za("0x6d")](e)(t,e,r.get(t),r.get(e))?n[1][za("0x63")]&&n[1][za("0x63")][za("0x2a")]?null:n:null}}[za("0x69")](t){const e=Array[za("0x88")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0xdd")]((e=>!t.has(e))),s=new Map(e[za("0x22")]((t=>[t,this[za("0xf3")].getSuggestionCallback(t[za("0x129")],t.subType,za("0x25"))]))),r=new Map(n.map((t=>[t,t[za("0xa7")]()])));for(let t=0;t<e[za("0x2a")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x2a")];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("0x2a")];i++){const o=n[i];if(o.type!==e[za("0x129")]||o.author.id!==e[za("0xb4")].id||o[za("0x103")]!==e[za("0x103")])continue;const x=s[za("0x6d")](e),a=r[za("0x6d")](e),c=r[za("0x6d")](o),l=e[za("0x63")]&&e[za("0x63")][za("0x2a")],d=o[za("0x63")]&&o[za("0x63")][za("0x2a")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[za("0xd7")](e),!0;if(!d&&x(a,c))return t[za("0x4")](e,o),r.delete(o),!0}return!1}}[za("0x4")](t,e){if(t[za("0x59")])for(const n of e[za("0xa7")]())t[za("0xa5")](n);else{const n=e[za("0xc5")]()[za("0x10a")];this[za("0x40")](t,this._model.createRange(t.getFirstRange()[za("0xbf")],n))}e[za("0x6")]()}}class Va{constructor(t){this[za("0x7a")]=t,this[za("0x85")]=t[za("0x86")],this[za("0xb")]=new Map,this[za("0xc2")]=new Map,this[za("0x43")]()}[za("0x56")](t,e,n,o,s,r){return new Zo(this[za("0x85")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,za("0x8b"))(...n),onDiscard:(...n)=>this[za("0xfc")](t,e,"discard")(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[za("0xb")].set(s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[za("0xb")].get(o)||this._defaultCallbacks[za("0x6d")](t+":"+n)}[za("0x43")](){const t=()=>{},e=t=>{t[za("0x51")](((t,e)=>t.start[za("0x55")](e[za("0xbf")])?1:-1)),this[za("0x85")][za("0x2c")]((e=>{for(const n of t){let t;t=n[za("0x10a")][za("0x2d")]&&n[za("0x10a")][za("0xcf")]==n[za("0xbf")].nodeAfter?e[za("0xda")](n.start[za("0xa2")],"on"):e[za("0xda")](n),this[za("0x85")][za("0xc3")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x85")][za("0x2c")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x22")]((t=>(qa(t)&&(t=this[za("0x85")].createRange(t[za("0x10a")])),t)))[za("0xdd")]((t=>za("0x11e")!==t[za("0x3f")][za("0x9e")]));if(r[za("0x2a")]<1)return;const x=Array[za("0x88")](this._model[za("0x7d")].selection[za("0xa7")]()).map((t=>i.LiveRange[za("0x8f")](t)));n[za("0x87")](r);for(const t of this[za("0x7a")][za("0x29")].commands())t[za("0x21")]();s[za("0x75")]({forceDefaultExecution:!0}),this[za("0x7a")][za("0x9f")](o,...s);const a=x[za("0xdd")]((t=>za("0x11e")!=t.root[za("0x9e")]));a[za("0x2a")]>0&&n.setSelection(a);for(const t of x)t[za("0x100")]()}))},o=(t,e)=>1==t[za("0x2a")]&&1==e[za("0x2a")]&&t[0][za("0x10a")][za("0xfb")](e[0][za("0xbf")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x85")])?[t,e]:Za(e,t,o,n,this[za("0x85")])?[e,t]:null;this[za("0xc2")][za("0x91")]("insertion:accept",t),this[za("0xc2")][za("0x91")](za("0x82"),e),this._defaultCallbacks[za("0x91")](za("0xb6"),o),this._defaultCallbacks[za("0x91")]("insertion:chain",s),this[za("0xc2")].set(za("0xdb"),e),this._defaultCallbacks[za("0x91")](za("0xb8"),t),this[za("0xc2")][za("0x91")]("deletion:join",o),this[za("0xc2")][za("0x91")](za("0xfd"),s),this._defaultCallbacks.set(za("0x61"),n),this[za("0xc2")][za("0x91")](za("0x8e"),t),this[za("0xc2")][za("0x91")](za("0x10"),o),this._defaultCallbacks.set(za("0x2"),t),this[za("0xc2")][za("0x91")]("formatBlock:accept",n),this._defaultCallbacks.set(za("0xcb"),t),this._defaultCallbacks[za("0x91")](za("0x92"),o),this[za("0xc2")][za("0x91")]("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e[za("0xcf")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0x3f")]==o)return!1;if(!n[za("0x8")](o))return!1;if(t[za("0x35")](o)||t[za("0x71")](o))return!0}return!1}function qa(t){return t[za("0x10a")][za("0xcf")]==t.start[za("0xa2")]&&t.end[za("0xe8")]}function Xa(t,e,n,o){const s=t=>!t[za("0xd")].is(za("0x12d"))&&!o[za("0x35")](t[za("0xd")]),r=t[za("0xbf")][za("0x120")](s),i=t[za("0x10a")][za("0x120")](s,{direction:"backward"});return!(t[za("0xbf")].isEqual(r)&&t[za("0x10a")][za("0xfb")](i)||(r[za("0x55")](i)?n[za("0xd1")](e,{range:n[za("0x121")](r,i)}):n[za("0x6c")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xbf")].nodeAfter;return e&&e.is(za("0x3"))}function Qa(t,e){const n=e[za("0x6f")].isObject(t)||e[za("0x6f")][za("0x9")](t);return e[za("0x121")](e[za("0xeb")](t,za("0x123")),n?e.createPositionAfter(t):e[za("0xeb")](t,za("0x10a")))}function Za(t,e,n,o,s){if(n.end[za("0xfb")](o[za("0xbf")]))return!0;if(t.type!=e[za("0x129")])return!1;if(!n.end[za("0xd8")](o[za("0xbf")]))return!1;const r=s[za("0x121")](n[za("0x10a")],o[za("0xbf")])[za("0x113")]();for(const t of r)if([za("0x122"),za("0x98")][za("0x9d")](t[za("0x129")])&&s.schema[za("0x71")](t[za("0xd")]))return!1;return!0}const Ya=["get","commands","locale","_pendingAction","commentThreadController","_editor","change:isDirty","canEditAt","isDirty","destroy","model","plugins","_discardCommand","execute","_removePendingAction","stopListening","listenTo","canAccept","add","bind","discardSuggestion","getRanges","isEnabled","canDiscard","unbind","_setPendingAction","acceptSuggestion","_acceptCommand","PENDING_ACTION_SUGGESTION","PendingActions","view"];var tc,ec;tc=Ya,ec=197,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("0x1e")]=e,this[nc("0x13")]=n,this[nc("0x18")]=o,this[nc("0x19")]=t,this[nc("0x10")]=t.commands.get("acceptSuggestion"),this._discardCommand=t[nc("0x15")].get("discardSuggestion"),this[nc("0x13")][nc("0x8")](nc("0xb")).to(this[nc("0x10")],this[nc("0x1")],((t,e)=>t||e)),this[nc("0x13")][nc("0x8")]("canAccept").to(this[nc("0x10")],"isEnabled",(t=>t&&this[nc("0x19")][nc("0x1e")][nc("0x1b")](e.getRanges()))),this[nc("0x13")][nc("0x8")](nc("0xc")).to(this._discardCommand,nc("0xb"),(t=>t&&this[nc("0x19")][nc("0x1e")][nc("0x1b")](e[nc("0xa")]()))),this._pendingAction=null,n.isDirty&&this[nc("0xe")](),this[nc("0x5")](n,nc("0xf"),(()=>this[nc("0xf")]())),this[nc("0x5")](n,"discardSuggestion",(()=>this.discardSuggestion())),this.listenTo(n,nc("0x1a"),(()=>{n[nc("0x1c")]?this._setPendingAction():this[nc("0x3")]()}))}[nc("0xf")](){this[nc("0x10")][nc("0x2")](this[nc("0x1e")].id)}[nc("0x9")](){this[nc("0x1")][nc("0x2")](this[nc("0x1e")].id)}[nc("0x1d")](){this[nc("0x13")][nc("0xd")](nc("0xb")),this.view[nc("0xd")](nc("0x6")),this[nc("0x13")].unbind(nc("0xc")),this[nc("0x4")](),this[nc("0x18")][nc("0x1d")](),this[nc("0x17")]&&this._removePendingAction()}[nc("0xe")](){const t=Yo(this[nc("0x19")][nc("0x16")],nc("0x11"));this[nc("0x17")]=this[nc("0x19")][nc("0x0")].get(nc("0x12"))[nc("0x7")](t)}[nc("0x3")](){null!==this[nc("0x17")]&&this[nc("0x19")][nc("0x0")][nc("0x14")]("PendingActions").remove(this[nc("0x17")]),this[nc("0x17")]=null}}const sc=["commentThreadInputView","setData","submit","locale","editorConfig","canAccept","_createCommentThreadInputView","CommentView","isEnabled","bind","element","hasDirtyComment","_model","_createCommentViews","length","authoredAt","disableComments","commentInputView","updateComment","delegate","_config","commentsListView","_localUser","value","cancel","set","destroy","assign","isDirty","editor","commentThread","isReadOnly","focus","removeComment","isActive","descriptionParts","disabledSubmit"];var rc,ic;rc=sc,ic=297,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[xc("0x24")]=null,this[xc("0x18")](xc("0x21"),!1),this[xc("0x18")]("authoredAt",e.authoredAt),this[xc("0x8")](xc("0xe")).to(e),this[xc("0x18")](xc("0x22"),[]),this[xc("0x18")](xc("0x1b"),!1),this.set(xc("0x7"),!1),this[xc("0x18")](xc("0x4"),!1),this[xc("0x18")]("canDiscard",!1),this[xc("0xb")]=e,this[xc("0x15")]=n,this[xc("0x13")]=o,o[xc("0xf")]?this[xc("0x18")]("length",1):this[xc("0xc")]()}focus(){this[xc("0x9")].focus()}[xc("0x19")](){this[xc("0x14")]&&this.commentsListView[xc("0x19")](),this[xc("0x24")]&&this[xc("0x24")][xc("0x19")](),super[xc("0x19")]()}[xc("0xc")](){const{CommentsListView:t}=this[xc("0x13")];this[xc("0x14")]=new t(this[xc("0x2")],this[xc("0xb")].commentThread,Object[xc("0x1a")]({CommentView:this._config[xc("0x6")]},this[xc("0x13")])),this[xc("0x14")][xc("0x12")]("removeComment").to(this),this[xc("0x14")][xc("0x12")](xc("0x11")).to(this),this[xc("0x14")][xc("0x8")](xc("0x21")).to(this),this[xc("0x18")](xc("0xd"),this[xc("0x14")][xc("0xd")]+1),this.bind(xc("0xd")).to(this[xc("0x14")],xc("0xd"),(t=>t+1)),this[xc("0x24")]=this[xc("0x5")](),this.on(xc("0x20"),(()=>this[xc("0x1f")]())),this.bind(xc("0x1b")).to(this.commentsListView,xc("0xa"),this[xc("0x24")][xc("0x10")],xc("0x16"),((t,e)=>t||!!e))}[xc("0x5")](){const{CommentThreadInputView:t}=this[xc("0x13")],e=new t(this[xc("0x2")],this[xc("0x15")],this[xc("0x13")][xc("0x3")]),n=e[xc("0x10")];return e[xc("0x8")]("showInput").to(this,xc("0x21"),this[xc("0xb")][xc("0x1d")],"isReadOnly",n,xc("0x16"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x1"),((t,e)=>{this.fire("addComment",e),n[xc("0x1c")][xc("0x0")]("")})),n.on(xc("0x17"),(()=>this[xc("0x1f")]())),n[xc("0x8")](xc("0x23")).to(this._model.commentThread,xc("0x1e")),e}}const cc=["ck-suggestion-wrapper","ck-suggestion-","ck-comment__info-time","<p>","@external","ck-suggestion","commentsListView","discardSuggestion","ck-annotation__info","value","type","set","querySelector","canDiscard","author","isExternal","ck-annotation__main","map","authoredAt","push","children","join","source","</p>","commentThread","locale","ck-annotation__info-time","bindTemplate","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion__user","getExternalSuggestionNote","innerHTML","discardButton","attributes","ck-suggestion--disabled-comments","disableComments","_descriptionElement","ck-annotation__user","createElement","_model","EXTERNAL_AVATAR","userView","ck-annotation__info-name","getUserViewNotificationText","importWord",".ck-annotation__content-wrapper",'<span class="ck-suggestion-type">',"_createButton","ck-suggestion__main","color",'" title="',"check","split","extendTemplate","formatDateTime","bind","title","getTemplate","EXTERNAL_IMPORT_WORD_AVATAR","ck-annotation__actions","EXTERNAL_SUGGESTION","Accept suggestion","render","fire","ck-suggestion-wrapper--active","ck-suggestion__info-name","commentThreadInputView","div",'<span class="ck-suggestion-color" style="background-color: ',"_config","description","descriptionParts","ck-suggestion__info","ck-suggestion__actions","acceptSuggestion","isEnabled","isActive","span","acceptButton","change:description"];var lc,dc;lc=cc,dc=343,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("0x43"),""),this[uc("0x20")](uc("0x43")).to(this,uc("0x30"),(t=>t&&t[0]?t[0][uc("0x43")]:"")),this.bind("description").to(this,uc("0x30"),this,uc("0x35"),((t,e)=>{let n="";for(const e of t)n+=uc("0x3c")+mc(e.content,e[uc("0x1a")])+uc("0x0");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0xd")]=null,this[uc("0x37")]=this[uc("0x18")](Yo(e,uc("0x26")),t.icons[uc("0x1c")],"ck-suggestion--accept",uc("0x33"),"sw"),this[uc("0x37")][uc("0x20")](uc("0x34")).to(this,"canAccept"),this[uc("0x9")]=this[uc("0x18")](Yo(e,"Discard suggestion"),t.icons.cancel,"ck-suggestion--discard",uc("0x40"),"sw"),this[uc("0x9")][uc("0x20")]("isEnabled").to(this,uc("0x46")),this[uc("0x12")]=new r.UserView(e,this[uc("0x10")][uc("0x47")],this[uc("0x14")]()),this.userView[uc("0x1e")]({attributes:{class:[uc("0x6"),uc("0xe")]}}),this.setTemplate(this[uc("0x22")]())}[uc("0x22")](){const t=this[uc("0x4")],e=[{tag:"div",attributes:{class:[uc("0x31"),uc("0x41")]},children:[{tag:"span",children:[{text:this[uc("0x12")].name}],attributes:{class:[uc("0x2a"),uc("0x13")]}},{tag:"time",attributes:{datetime:t.to(uc("0x4b")),class:[uc("0x3b"),uc("0x3")]},children:[{text:t.to(uc("0x4b"),(t=>this[uc("0x2e")][uc("0x1f")](t)))}]}]},{tag:uc("0x2c"),attributes:{class:[uc("0x32"),uc("0x24")]},children:[this[uc("0x37")],this.discardButton]},{tag:uc("0x2c"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[uc("0x10")][uc("0x48")]&&e[uc("0x4c")]({tag:uc("0x2c"),attributes:{class:["ck-comment__external"]},children:[{text:this[uc("0x7")]()}]});const n={tag:uc("0x2c"),attributes:{class:[uc("0x39"),t.if(uc("0x35"),uc("0x29")),t.to(uc("0x43"),(t=>uc("0x3a")+t)),this[uc("0x2e")][uc("0xc")]&&uc("0xb")],"data-suggestion-id":this[uc("0x10")].id,"data-thread-id":this._model[uc("0x1")].id,"data-author-id":this._model.author.id,tabindex:-1},children:[{tag:uc("0x2c"),attributes:{class:[uc("0x3e"),"ck-annotation"]},children:[this[uc("0x12")],{tag:uc("0x2c"),attributes:{class:[uc("0x19"),uc("0x49")]},children:e}]}]};return this.commentsListView&&this[uc("0x2b")]&&n[uc("0x4d")].push(this[uc("0x3f")],this[uc("0x2b")]),n}[uc("0x27")](){super.render(),this[uc("0xd")]=this.element[uc("0x45")](uc("0x16")),this[uc("0xd")][uc("0x8")]=this[uc("0x2f")],this.on(uc("0x38"),((t,e,n)=>{this[uc("0xd")][uc("0x8")]=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[uc("0x2")]);return i[uc("0x44")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x1e")]({attributes:{class:n}}),i.on("execute",(()=>{this[uc("0x28")](o,this[uc("0x10")].id)})),i}[uc("0x7")](){return uc("0x15")===this._model[uc("0xa")][uc("0x3d")][uc("0x4f")]?Yo(this[uc("0x2")],uc("0x5")):Yo(this[uc("0x2")],uc("0x25"))}[uc("0x14")](){return this[uc("0x10")][uc("0x48")]?uc("0x15")===this._model[uc("0xa")][uc("0x3d")][uc("0x4f")]?Yo(this[uc("0x2")],uc("0x23"),this[uc("0x10")].creator.name):Yo(this[uc("0x2")],uc("0x11"),this._model.creator.name):null}}function mc(t,e){let n="";return n+=t[uc("0x1d")]("*")[uc("0x4a")](((t,e)=>e%2!=0?uc("0x17")+fc(t)+"</span>":fc(t)))[uc("0x4e")](""),e&&(n+=uc("0x2d")+e[uc("0x42")]+uc("0x1b")+e[uc("0x21")]+'"></span>'),n}function fc(t){const e=document[uc("0xf")](uc("0x36"));return e.innerText=t,e.innerHTML}const hc=["_handleControllerBuffer","get","addComment","keys","CommentsRepository","TrackChangesEditing","acceptButton","Accept all suggestions","getMarkers","trackChanges.SuggestionThreadView","separator","_disableComments","requires","_destroyController","destroy","size","previous","createAnnotationView","getFirstRange","_suggestionToController","add","innerView","refreshSelectedViews","_initializeController","suggestionLoaded","init","descriptionParts","SuggestionThreadView","acceptAllSuggestions","filter","delete","focus","clear","_viewToController","_handleSuggestionControllerDelayed","push","editor","_descriptionFactory","lowest","commentThread","buttonView","addSourceCollector","discardButton","registerAnnotation","plugins","_createUIButton","execute","some","trackChanges","locale","view","change:activeAnnotations","isInContent","arrowView","isMultiRange","model","getDescriptions","Track changes","from","head","change:previous","getByInnerView","button","actionView","_refreshActiveMarkers","length","_annotationViews","createCommentThreadController","mainView","acceptSelectedSuggestions","comments.editorConfig","getAllAdjacentSuggestions","has","comments.maxCommentsWhenCollapsed","getSuggestion","Annotations","getMarkerNames","EditorAnnotations","Discard all selected suggestions","suggestionUnloaded","comments.maxCommentCharsWhenCollapsed","isOn","define","set","trackChanges.disableComments","remove","value","TrackChangesUI","values","listenTo","commands","isEnabled","suggestionChanged","activeMarkers","comments.maxThreadTotalWeight","config","editing","suggestion-","unbind","discardSelectedSuggestions","bind","getJoined","map","reduce","_updateController","commandName"];var pc,bc;pc=hc,bc=113,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x5")](){return[Wa,r.Users,Ec("0x67"),Ec("0x44"),"EditorAnnotations"]}static get pluginName(){return Ec("0x50")}constructor(t){super(t),this[Ec("0xc")]=new Map,this[Ec("0x1a")]=new Map,this._annotationViews=new Map,this[Ec("0x63")]=new Map;const e=this[Ec("0x1d")][Ec("0x58")];e[Ec("0x4b")](Ec("0x2"),gc),e[Ec("0x4b")](Ec("0x4d"),!1),this[Ec("0x4")]=e[Ec("0x64")]("trackChanges.disableComments")}[Ec("0x1b")](t,e){0===this._handleControllerBuffer[Ec("0x8")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x63")]){const n=this[Ec("0xc")].has(t);n||e?n&&e&&this[Ec("0x6")](t):this[Ec("0x10")](t)}this[Ec("0x1d")][Ec("0x25")][Ec("0x64")](Ec("0x46"))[Ec("0xf")](),this[Ec("0x39")](),this[Ec("0x63")][Ec("0x19")]()}),10),this[Ec("0x63")][Ec("0x4c")](t,e)}[Ec("0x12")](){const t=this[Ec("0x1d")],e=t[Ec("0x25")][Ec("0x64")](Ec("0x68")),n=t[Ec("0x25")][Ec("0x64")](Ec("0x44")),o=t[Ec("0x25")].get(Ec("0x46")),s=t[Ec("0x25")][Ec("0x64")](Ec("0x67"));t.ui.componentFactory.add("trackChanges",(t=>this[Ec("0x26")](t))),o[Ec("0x22")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x33")](this[Ec("0xc")])){const o=e[Ec("0x40")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x2f")]){s[Ec("0x1c")](...t.getRanges());continue}const e=t[Ec("0xb")]();if(s[Ec("0x3a")]>0){const t=s[0][Ec("0x5e")](e);if(t){s[0]=t;continue}}s[Ec("0x1c")](e)}t.push([n.view,s])}return t})),this[Ec("0x52")](e,Ec("0x11"),((t,e)=>{this.listenTo(e,Ec("0x35"),((t,n,o,s)=>{e[Ec("0x2d")]&&(null==o?(this[Ec("0x61")](s.head),this[Ec("0x1b")](e,!1)):(this[Ec("0x61")](o[Ec("0x34")]),this[Ec("0x1b")](e,!0)))})),null===e[Ec("0x9")]?this[Ec("0x1b")](e,!1):this[Ec("0x61")](e[Ec("0x34")])})),this[Ec("0x52")](e,Ec("0x48"),((t,e,n)=>{this.stopListening(e,Ec("0x35")),this[Ec("0x63")][Ec("0x17")](e);const o=n?n[Ec("0x34")]:e,s=this[Ec("0xc")].get(o);null!==n&&this[Ec("0x61")](o),null===n&&s&&this[Ec("0x6")](e)})),this[Ec("0x52")](e,Ec("0x55"),((t,e)=>{this._updateController(e)})),this[Ec("0x52")](n,Ec("0x2c"),(()=>{this[Ec("0x39")]()})),this[Ec("0x52")](s,Ec("0x65"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Ec("0x43")](n);this[Ec("0xc")][Ec("0x64")](s).view.focus()}),{priority:Ec("0x1f")})}[Ec("0x39")](){const t=this[Ec("0x1d")][Ec("0x25")].get(Ec("0x44")),e=this.editor[Ec("0x25")].get(Ec("0x68")),n=Array[Ec("0x33")](t.activeAnnotations,(t=>t[Ec("0xe")]))[Ec("0x16")]((t=>this._viewToController[Ec("0x41")](t))),o=[];for(const t of n){const e=this[Ec("0x1a")].get(t)[Ec("0x30")].getAllAdjacentSuggestions();o[Ec("0x1c")](...e[Ec("0x60")](((t,e)=>[...t,...e[Ec("0x45")]()]),[]))}e[Ec("0x56")]=o}[Ec("0x26")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x1d")][Ec("0x53")][Ec("0x64")]("trackChanges"),r=Yo(t,Ec("0x32"));n[Ec("0x21")].set({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("0x21")][Ec("0x5d")](Ec("0x4a")).to(o,"value"),n[Ec("0x21")].on("execute",(()=>{o[Ec("0x27")](),this[Ec("0x1d")][Ec("0x59")].view[Ec("0x18")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x29")}},{type:Ec("0x3")},{type:Ec("0x37"),model:{withText:!0,label:Yo(t,Ec("0x0")),commandName:Ec("0x15")}},{type:"button",model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Ec("0x3e")}},{type:Ec("0x37"),model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:"discardAllSuggestions"}},{type:Ec("0x37"),model:{withText:!0,label:Yo(t,Ec("0x47")),commandName:Ec("0x5c")}}];for(const t of x){let e={type:Ec("0x3")};if(t.model){const n=new s.Model(t[Ec("0x30")]),o=this[Ec("0x1d")].commands[Ec("0x64")](n[Ec("0x62")]);n.bind("isOn",Ec("0x54")).to(o,Ec("0x4f"),Ec("0x54")),e={type:t.type,model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x16")]((t=>null!=t[Ec("0x30")]))[Ec("0x5f")]((t=>this[Ec("0x1d")].commands[Ec("0x64")](t[Ec("0x30")][Ec("0x62")]))),c=n[Ec("0x21")];return c[Ec("0x38")][Ec("0x5b")]("isEnabled"),c[Ec("0x2e")][Ec("0x5b")](Ec("0x54")),c.actionView[Ec("0x5d")](Ec("0x54")).to(o,Ec("0x54")),c[Ec("0x2e")].bind("isEnabled").toMany(a,Ec("0x54"),((...t)=>t[Ec("0x28")]((t=>t)))),n.on(Ec("0x27"),(t=>{this[Ec("0x1d")][Ec("0x27")](t.source[Ec("0x62")]),this[Ec("0x1d")][Ec("0x59")][Ec("0x2b")][Ec("0x18")]()})),n}[Ec("0x10")](t){const e=this[Ec("0x1d")],n=e[Ec("0x58")],o=e[Ec("0x25")][Ec("0x64")](Ec("0x44")),s=e.plugins[Ec("0x64")](Ec("0x67")),i=e[Ec("0x25")][Ec("0x64")](Ec("0x46")),x=e[Ec("0x25")][Ec("0x64")](r.Users).me,a=n[Ec("0x64")](Ec("0x29"))[Ec("0x14")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x25")].get("CommentsUI");let d,u;this[Ec("0x3b")][Ec("0x41")](t.id)?(u=this._annotationViews[Ec("0x64")](t.id),d=u[Ec("0x3d")]):(d=new a(e[Ec("0x2a")],t,x,{disableComments:this[Ec("0x4")],editorConfig:n[Ec("0x64")](Ec("0x3f")),maxCommentsWhenCollapsed:n[Ec("0x64")](Ec("0x42")),maxThreadTotalWeight:n[Ec("0x64")](Ec("0x57")),maxCommentCharsWhenCollapsed:n[Ec("0x64")](Ec("0x49")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x64")](Ec("0x2a"))),CommentView:n[Ec("0x64")]("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x69")].on(Ec("0x27"),(()=>{e.editing[Ec("0x2b")][Ec("0x18")]()})),d[Ec("0x23")].on(Ec("0x27"),(()=>{e.editing[Ec("0x2b")][Ec("0x18")]()})),u=o[Ec("0xa")](this.editor[Ec("0x2a")],d),u[Ec("0x5d")]("isDirty").to(d,"isDirty"),u[Ec("0x5d")](Ec("0x3a")).to(d),u[Ec("0x5d")]("type").to(d,"type",(t=>Ec("0x5a")+t)),this[Ec("0x3b")][Ec("0x4c")](t.id,u));const g=s[Ec("0x3c")](t[Ec("0x20")],d),m=new oc(e,t,d,g),f=t.getAllAdjacentSuggestions()[Ec("0x16")]((t=>t.isInContent));d[Ec("0x13")]=e[Ec("0x25")].get("TrackChangesEditing")[Ec("0x1e")][Ec("0x31")](f),this._suggestionToController[Ec("0x4c")](t,m),this._viewToController.set(d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Ec("0x40")]()[Ec("0x16")]((t=>t.isInContent));for(const t of o)n[Ec("0x1c")](...t[Ec("0x1")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>"suggestion-"+m[Ec("0x2b")].type});o[Ec("0xd")](h),i[Ec("0x24")](h)}_destroyController(t){const e=this[Ec("0x1d")][Ec("0x25")].get(Ec("0x44")),n=this[Ec("0xc")][Ec("0x64")](t),o=n[Ec("0x2b")],s=e[Ec("0x36")](o);s&&e[Ec("0x4e")](s),this[Ec("0xc")][Ec("0x17")](t),this[Ec("0x1a")].delete(o),n.destroy()}[Ec("0x61")](t){if(!t[Ec("0x2d")]||!this[Ec("0xc")][Ec("0x41")](t))return;const e=this[Ec("0x1d")][Ec("0x25")][Ec("0x64")](Ec("0x68")),n=this[Ec("0xc")].get(t),o=t.getAllAdjacentSuggestions();n.view.descriptionParts=e[Ec("0x1e")][Ec("0x31")](o)}[Ec("0x7")](){for(const t of this[Ec("0xc")][Ec("0x66")]())this[Ec("0x6")](t);for(const t of this[Ec("0x3b")][Ec("0x51")]())t[Ec("0x3d")][Ec("0x7")]();super.destroy()}}var Tc,Cc,yc=["addSuggestion","editor","TrackChanges","get","addSuggestionData","getSuggestion","getSuggestions","adapter","pluginName","plugins"];Tc=yc,Cc=227,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get requires(){return[Wa,_c,"Comments"]}static get[kc("0x1")](){return kc("0x5")}set[kc("0x0")](t){this[kc("0x4")][kc("0x2")][kc("0x6")](Wa)[kc("0x0")]=t}get[kc("0x0")](){return this[kc("0x4")][kc("0x2")][kc("0x6")](Wa)[kc("0x0")]}[kc("0x3")](t){return this[kc("0x4")][kc("0x2")][kc("0x6")](Wa)[kc("0x7")](t)}[kc("0x9")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x4")][kc("0x2")][kc("0x6")](Wa).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x8")](t){return this[kc("0x4")][kc("0x2")][kc("0x6")](Wa).getSuggestion(t)}}const vc=["editorCreator","TrackChangesDataGetter","end","function","discardAllSuggestions","plugins","pluginName","TrackChangesEditing","trackChangesData.editorCreator","data","TrackChangesData","getDataWithDiscardedSuggestions","getRootsAttributes","push","config","document","editor","rootsAttributes","reduce","div","_adapter","addSuggestionData","trackChangesData","init","model","getUser","set","getFullData","map","constructor","define","result","createElement","track-changes-data-invalid-editor-creator","createDocumentFragment","get","getRootNames","requires","name","addUser","Users"];var Rc,Sc;Rc=vc,Sc=323,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=["Pagination"];class Nc extends t.Plugin{static get[Ic("0x1")](){return[Wa]}static get[Ic("0xb")](){return Ic("0xf")}[Ic("0x1c")](){const t=this.editor;if(t[Ic("0x13")][Ic("0x23")](Ic("0xd"),(e=>{const n=t[Ic("0x1d")][Ic("0x14")][Ic("0x0")]().reduce(((t,e)=>(t[e]="",t)),{});return t[Ic("0x22")].create(n,e)})),Ic("0x8")!=typeof t[Ic("0x13")][Ic("0x28")]("trackChangesData")[Ic("0x5")])throw new e.CKEditorError(Ic("0x26"))}getDataWithAcceptedSuggestions(t){return Oc(this[Ic("0x15")],!0,t)}[Ic("0x10")](t){return Oc(this[Ic("0x15")],!1,t)}}class wc extends t.Plugin{static get[Ic("0xb")](){return Ic("0x6")}constructor(t){super(t),this[Ic("0x24")]=Ic("0x7")}[Ic("0x1c")](){this[Ic("0x15")].plugins.get("CommentsRepository")._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[Ic("0xa")][Ic("0x28")](Ic("0xc"))[Ic("0x19")]=null}}function Mc(t){return void 0!==t.getRootsAttributes}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0xa")][Ic("0x12")](Wa,wc),o[Ic("0x16")]=Mc(t)?t[Ic("0x11")]():void 0;const s=document[Ic("0x27")](),i=t[Ic("0x13")][Ic("0x28")](Ic("0x1b"))[Ic("0x5")],x=await i(o,(()=>function(t){const e=document[Ic("0x25")](Ic("0x18"));return t.appendChild(e),e}(s)));!function(t,e){const n=t.model[Ic("0x14")].getRootNames()[Ic("0x17")](((e,n)=>(e[n]=t[Ic("0xe")][Ic("0x28")]({rootName:n}),e)),{}),o=t.plugins.get("Users").users[Ic("0x21")]((t=>({id:t.id,name:t[Ic("0x2")]}))),s=t[Ic("0xa")][Ic("0x28")](Ic("0xc")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0xa")].get(Ic("0x4")),i=e[Ic("0xa")][Ic("0x28")](Ic("0xc"));for(const t of o)r[Ic("0x1e")](t.id)||r[Ic("0x3")](t);r.me||r.useAnonymousUser();for(const t of s)i[Ic("0x1a")](t);e[Ic("0xe")][Ic("0x1f")](n)}(t,x),x.execute(e?"acceptAllSuggestions":Ic("0x9"));const a=Mc(x)?x[Ic("0x20")](n):x.data.get(n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();