@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230710.0 → 0.0.0-nightly-20230711.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.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +12 -0
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.d.ts +2 -2
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/build/track-changes.js
CHANGED
|
@@ -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:()=>Mc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["commands","TrackChangesCommand","has","execute","_enableCommands","isEnabled","forceDisabled","clearForceDisabled","_isEnabledBasedOnSelection","_disableUnsupportedCommands","editor","refresh","_enabledCommands","value"];var c,l;c=a,l=434,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0xd")]=!1,this[u("0xb")](),this[u("0x8")]=!1}[u("0xb")](){this[u("0x5")]=!0}[u("0x3")](){this[u("0xd")]=!this[u("0xd")],this[u("0xd")]?this[u("0x9")]():this[u("0x4")]()}_disableUnsupportedCommands(){for(const t of this.editor.commands.commands())t.affectsData&&!this._enabledCommands[u("0x2")](t)&&t[u("0x6")](u("0x1"))}[u("0x4")](){for(const t of this[u("0xa")][u("0x0")][u("0x0")]())t.affectsData&&!this[u("0xc")][u("0x2")](t)&&t[u("0x7")](u("0x1"))}}const g=["get","_suggestions","plugins","isEnabled","TrackChangesEditing","track-changes-accept-suggestion-not-found","refresh","execute","editor","canEditAt","model"];var m,f;m=g,f=250,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("0x4")]=e,this[h("0x9")](),this._isEnabledBasedOnSelection=!1}refresh(){this[h("0x6")]=!0}[h("0xa")](t){const n=this[h("0x4")][h("0x3")](t);if(!n)throw new e.CKEditorError(h("0x8"),this);const o=n.getRanges();this.editor[h("0x2")][h("0x1")](o)&&this[h("0x0")][h("0x5")][h("0x3")](h("0x7")).acceptSuggestion(n)}}const b=["get","refresh","canEditAt","isEnabled","track-changes-discard-suggestion-not-found","_suggestions","model","plugins","execute","getRanges","editor","TrackChangesEditing"];var E,_;E=b,_=428,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("0x9")]=e,this[T("0x5")](),this._isEnabledBasedOnSelection=!1}refresh(){this[T("0x7")]=!0}[T("0x0")](t){const n=this._suggestions[T("0x4")](t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n[T("0x1")]();this[T("0x2")][T("0xa")][T("0x6")](o)&&this[T("0x2")][T("0xb")][T("0x4")](T("0x3")).discardSuggestion(n)}}const y=["isMultiRange","next","deletion","createPositionAfter","isObject","content","end","map","push","replace","createPositionBefore","value","getMarkers","isInContent","getRange","type","splice","createPositionAt","isIntersecting","color"," [color ","sort","schema","isTouching","isCollapsed","createRange","join"];var k,A;k=y,A=464,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x10")](((t,e)=>"deletion"==t.type&&v("0x18")!=e[v("0xa")]?-1:v("0x18")!=t[v("0xa")]&&v("0x18")==e[v("0xa")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x11")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x5")](i)),I(e,i,x)||(s[v("0x3")](e[v("0x14")](n,r[v("0x1a")](i)?e[v("0x19")](i):e[v("0xc")](i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t[v("0x5")](n);return o[v("0x12")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0xb")](0,100);t.change((()=>{for(const t of o)t[v("0x8")]&&e.execute(t.id)}))}}const N=["isEnabled","from","values","editor","_command","_suggestions","refresh","isInContent","model"];var M,w;M=N,w=183,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x1")]=e,this._suggestions=n,this[O("0x3")](),this._isEnabledBasedOnSelection=!1}[O("0x3")](){const t=Array.from(this[O("0x2")].values()).some((t=>t[O("0x4")]));this[O("0x6")]=this[O("0x1")][O("0x6")]&&t}execute(){const t=R(Array[O("0x7")](this[O("0x2")][O("0x8")]()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x5")].canEditAt(t))return}L(this[O("0x0")][O("0x5")],this[O("0x1")],t)}}const P=["_command","_selectedSuggestions","model","canEditAt","_isEnabledBasedOnSelection","from","editor","document","isEnabled","_suggestions","size","refresh","values","getRanges","selection"];var D,B;D=P,B=135,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("0x9")]=n,this[j("0x1")]=new Set,this[j("0xb")](),this[j("0x4")]=!1}[j("0xb")](){const t=this[j("0x6")][j("0x2")][j("0x7")][j("0xe")],e=Array[j("0x5")](this[j("0x9")][j("0xc")]());this[j("0x1")]=function(t,e){const n=Array.from(t.getRanges()),o=new Set;for(const s of e)if(s[v("0x8")])for(const e of n)for(const n of s[v("0x7")]()){const r=n[v("0x9")]();(e[v("0xd")](r)||t[v("0x13")]&&!s[v("0x16")]&&s[v("0x17")]&&r[v("0x1")][v("0x12")](e.start))&&o.add(s)}return o}(t,e),this[j("0x8")]=this[j("0x0")][j("0x8")]&&!!this[j("0x1")][j("0xa")]}execute(){const t=R(Array[j("0x5")](this[j("0x1")]));for(const e of t){const t=e[j("0xd")]();if(!this[j("0x6")][j("0x2")][j("0x3")](t))return}L(this[j("0x6")][j("0x2")],this[j("0x0")],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 ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const 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,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var 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 un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const 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 u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==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[d])return r?e:{};x=Un(e,d,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=u?void 0:(l?c?dn:un: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 u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!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)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};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=un(t),a=x.length;if(a!=un(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 u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var 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,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!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=u&&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!!d&&(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=["nodeBefore","decorate","_markerNames","removeAttribute","addMarkerName","accept","getMultiRangeId","next","@external","previous","getItems","getMarkerNames","_saved","getFirstRange","removeMarker","attributes","subType","data","get","type","change","isIntersectingWithRange","isExternal","getMarkers","map","head","size","substr","delete","filter","length","set","addRange","_model","onAccept","toJSON","onAttributesChange","_onDiscard","reduce","_onAccept","hasComments","start","isInContent","from","_onAttributesChange","getRanges","getRange","add","createdAt","markers","removeMarkers","getContainedElement","commentThread","discard","getFirstMarker","setAttribute","creator","author","isIntersecting"];var $o,Jo;$o=Xo,Jo=416,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[Qo("0x10")]=e[Qo("0x10")],this[Qo("0xd")]=e[Qo("0xd")]||null,this[Qo("0x36")]=e[Qo("0x36")],this.creator=e[Qo("0x35")]||e[Qo("0x36")],this[Qo("0x13")]=Boolean(e[Qo("0xc")]&&e[Qo("0xc")][Qo("0x5")]),this[Qo("0xe")]=null,this[Qo("0x1e")]=t,this._onAccept=e[Qo("0x1f")],this[Qo("0x22")]=e.onDiscard,this[Qo("0x29")]=e[Qo("0x21")],this[Qo("0x3a")]=new Set,this.createdAt=null,this[Qo("0x1c")]("authoredAt",null),this[Qo("0x1c")](Qo("0xc"),e.attributes||{}),this[Qo("0x1c")](Qo("0x6"),null),this[Qo("0x1c")]("next",null),this.set("commentThread",null),this[Qo("0x1c")](Qo("0x9"),!1),this[Qo("0x39")](Qo("0x2")),this.decorate(Qo("0x32"))}get[Qo("0x16")](){let t=this;for(;t.previous;)t=t[Qo("0x6")];return t}get[Qo("0x25")](){return!!this[Qo("0x31")]&&this[Qo("0x31")].length>0}get isMultiRange(){return 0!=this[Qo("0x3a")][Qo("0x17")]&&6==Array[Qo("0x28")](this[Qo("0x3a")])[0].split(":").length}get[Qo("0x27")](){return null!==this[Qo("0x33")]()}[Qo("0x1")](t){this._markerNames[Qo("0x2c")](t)}[Qo("0x8")](){return Array.from(this._markerNames)}[Qo("0x14")](){return this[Qo("0x8")]()[Qo("0x15")]((t=>this._model[Qo("0x2e")][Qo("0xf")](t)))[Qo("0x1a")]((t=>t))}[Qo("0x33")](){return this.getMarkers()[0]||null}removeMarkers(){this[Qo("0x1e")][Qo("0x11")]((t=>{for(const e of this.getMarkers())t[Qo("0xb")](e)})),this[Qo("0x3a")].clear()}[Qo("0xb")](t){this._model[Qo("0x11")]((e=>{e[Qo("0xb")](t)})),this[Qo("0x3a")][Qo("0x19")](t)}[Qo("0x1d")](t){const e="suggestion:"+this[Qo("0x10")]+":"+this[Qo("0xd")]+":"+this.id+":"+this[Qo("0x35")].id+":"+Zo[Qo("0x3")]();this[Qo("0x1")](e),this[Qo("0x1e")].change((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x12")](t){for(const e of this[Qo("0x2a")]())if(e[Qo("0x37")](t))return!0;return!1}[Qo("0x2a")](){return this[Qo("0x14")]().map((t=>t[Qo("0x2b")]()))}getItems(){return this[Qo("0x2a")]()[Qo("0x23")](((t,e)=>[...t,...e[Qo("0x7")]()]),[])}[Qo("0xa")](){var t;return(null===(t=this[Qo("0x33")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x30")](){const t=this[Qo("0x2a")]();if(1!=t[Qo("0x1b")])return null;const e=t[0],n=e[Qo("0x26")].nodeAfter,o=e.end[Qo("0x38")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2")](){this[Qo("0x24")](this[Qo("0x2a")](),this.data,this[Qo("0xc")]),this[Qo("0x2f")]()}[Qo("0x32")](){this[Qo("0x22")](this.getRanges(),this[Qo("0xe")],this.attributes),this[Qo("0x2f")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x16")];for(;e;)t.push(e),e=e[Qo("0x4")];return t}[Qo("0x34")](t,e){const n=eo(this[Qo("0xc")]);_o(n,t,e),Go(n,this[Qo("0xc")])||(this[Qo("0xc")]=n,this[Qo("0x29")](n))}[Qo("0x0")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0xc")])||(this[Qo("0xc")]=e,this[Qo("0x29")](this.attributes))}[Qo("0x20")](){return{id:this.id,type:this[Qo("0xd")]?this.type+":"+this.subType:this[Qo("0x10")],authorId:this.creator.id,createdAt:this[Qo("0x2d")],hasComments:this.hasComments,data:this[Qo("0xe")],attributes:this[Qo("0xc")]}}static[Qo("0x3")](){return(0,e.uid)()[Qo("0x18")](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=["skip","get","*Merge:* %0","$text","*Remove:* %0","isInContent","$textProxy","item","previousSibling","replace","_locale","name","elementEnd","deletion","Container","type","indexOf","_addDescriptionItems","isObject","checkChild","ELEMENT_SPACE","Object","text","normal","_resolveDescriptionItems","data","*Insert:* %0","nextSibling","match","remove","length","_customCallbacks","removeContainer","insertion","getFirstRange","function","_schema","EmptyContainer","pop","_itemLabelsCallbacks","isEmpty","start","$1 $2","_itemLabels","getDescriptions","registerDescriptionCallback","add","removeObject","push","getItemLabel","*Split:* %0","quantity","element"];var es,ns;es=ts,ns=177,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("0xd")]=[],this[os("0x19")]=new Map,this[os("0x15")]=[],this[os("0x12")]=t,this[os("0x2d")]=e}[os("0x1a")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x28")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x32")in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x10")]().end.isEqual(s[os("0x10")]()[os("0x17")])){const t=e[e[os("0xc")]-1],n=os("0xf")==o.type?os("0x1c"):os("0xb");t&&os("0x4")==t[os("0x32")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x1b")](t){this[os("0xd")][os("0x1e")](t)}registerElementLabel(t,n,o=e.priorities[os("0x5")]){os("0x11")==typeof t?(0,e.insertToPriorityArray)(this[os("0x15")],{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}[os("0x1f")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e.label;break}return n||(n=this[os("0x19")][os("0x24")](t[os("0x2e")])),n?n(e):1!==e?e+" "+t[os("0x2e")]+"s":""+t[os("0x2e")]}[os("0x34")](t,e){const n=e.getFirstRange().getWalker(),o="insertion"==e[os("0x32")]?os("0x1c"):"remove";for(const e of n){const s=e[os("0x2a")],r=t[t[os("0xc")]-1];if(s.is(os("0x29")))r&&r[os("0x32")][os("0x33")](os("0x31"))>-1&&t[os("0x14")](),r&&os("0x4")==r.type?r[o]+=s[os("0x7")]:t[os("0x1e")]({type:os("0x4"),add:os("0x1c")==o?s[os("0x7")]:"",remove:os("0xb")==o?s.data:""});else if(this[os("0x12")][os("0x0")](s)){const i=s;if(r&&r[os("0x32")][os("0x33")](os("0x31"))>-1&&t[os("0x14")](),os("0x2f")==e[os("0x32")])continue;r&&r.type==o+os("0x3")&&r[os("0x22")][os("0x2e")]==i.name?r.quantity++:t.push({type:o+os("0x3"),element:i,quantity:1}),n[os("0x23")]((t=>!("elementEnd"==t[os("0x32")]&&t[os("0x2a")]==s)))}else if(this[os("0x12")][os("0x1")](s,os("0x26"))||s.is(os("0x22"),"softBreak")){const n=s;if("add"==o&&"elementStart"==e[os("0x32")]||"remove"==o&&os("0x2f")==e[os("0x32")])continue;if(r&&-1==r.type[os("0x33")](os("0x31"))){os("0x4")==r[os("0x32")]&&(r[o]+="\n");continue}let i;if(i=os("0x1c")==o?n[os("0x9")]&&!this[os("0x12")].isObject(n.nextSibling)?n[os("0x9")]:null:n[os("0x2b")]&&!this[os("0x12")][os("0x0")](n[os("0x2b")])?n[os("0x2b")]:null,n.isEmpty||i&&i[os("0x16")]){const e=i&&i[os("0x16")]?i:n;r&&r[os("0x32")]==o+os("0x13")&&r[os("0x22")][os("0x2e")]==e.name?r.quantity++:t[os("0x1e")]({type:o+os("0x13"),element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[os("0x6")](t){const e=this[os("0x2d")],n=[];for(const o of t){switch(o[os("0x32")]){case"text":if(o.add=o[os("0x1c")][os("0x2c")](/(\S)\u000A+(\S)/g,os("0x18"))[os("0x2c")](/\u000A/g,""),o[os("0xb")]=o[os("0xb")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[os("0x2c")](/\u000A/g,""),""!=o[os("0x1c")]&&""!=o[os("0xb")]){n.push({type:os("0x2c"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0xb")]+'"','"'+o[os("0x1c")]+'"'])});continue}if(null!=o[os("0x1c")][os("0xa")](/^ +$/)){n[os("0x1e")]({type:os("0xf"),content:Yo(e,os("0x8"),Yo(e,"ELEMENT_SPACE",o.add.length))});continue}if(null!=o[os("0xb")][os("0xa")](/^ +$/)){n.push({type:os("0x30"),content:Yo(e,os("0x27"),Yo(e,os("0x2"),o[os("0xb")].length))});continue}if(""!=o[os("0x1c")]){n.push({type:"insertion",content:Yo(e,os("0x8"),'"'+o.add+'"')});continue}n[os("0x1e")]({type:"deletion",content:Yo(e,os("0x27"),'"'+o[os("0xb")]+'"')});continue;case"addEmptyContainer":case"addObject":n[os("0x1e")]({type:"insertion",content:Yo(e,os("0x8"),this.getItemLabel(o.element,o[os("0x21")]))});continue;case"removeEmptyContainer":case os("0x1d"):n[os("0x1e")]({type:os("0x30"),content:Yo(e,os("0x27"),this.getItemLabel(o.element,o[os("0x21")]))});continue;case"addContainer":n[os("0x1e")]({type:os("0xf"),content:Yo(e,os("0x20"),this[os("0x1f")](o[os("0x22")],o[os("0x21")]))});continue;case os("0xe"):n.push({type:os("0x30"),content:Yo(e,os("0x25"),this[os("0x1f")](o.element,o.quantity))});continue}n.push(o)}return n}}const rs=["commandName","has","get","value","locale","enableCommand","TrackChangesEditing","filter","center","_descriptionFactory","*Format:* %0","contentLanguageDirection","document","getAttribute","alignment","selection","model","FORMAT_ALIGN_TO_RIGHT","commandParams","FORMAT_ALIGN_TO_LEFT","AlignmentEditing","from","change","plugins","right","afterInit","left","markBlockFormat","getSelectedBlocks","FORMAT_ALIGN_TO_CENTER","justify","editor","format","FORMAT_JUSTIFY_TEXT"];var is,xs;is=rs,xs=479,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x16")](){const t=this[as("0x1c")],e=t[as("0x1")];if(!t[as("0x14")][as("0x20")](as("0x11")))return;const n=t.plugins[as("0x21")](as("0x3"));n[as("0x2")]("alignment",((e,o={})=>{let s=o.value;o.value||(s="ltr"===t[as("0x1")][as("0x8")]?"left":as("0x15"));const r=Array[as("0x12")](this.editor[as("0xd")][as("0x9")][as("0xc")][as("0x19")]())[as("0x4")]((t=>function(t,e,n){const o=t[as("0xa")](as("0xb"))||null;return e.checkAttribute(t,as("0xb"))&&n!=o}(t,this[as("0x1c")][as("0xd")].schema,s)));t[as("0xd")][as("0x13")]((()=>{for(const t of r)n[as("0x18")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[as("0x6")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0xb")==n[as("0x1f")]){const t=n[as("0xf")][0][as("0x0")];return{type:as("0x1d"),content:Yo(e,as("0x7"),function(t){switch(t){case as("0x17"):return Yo(e,as("0x10"));case as("0x15"):return Yo(e,as("0xe"));case as("0x5"):return Yo(e,as("0x1a"));case as("0x1b"):return Yo(e,as("0x1e"))}}(t))}}}))}}const ls=["getAttribute","includes","consumable","hasAttribute","isLimit","createRangeOn","addHighlight","name","getItems","insert","nextSibling","mapper","test","parent","bindElementToMarker","get","plugins","ck-suggestion-marker--active","activeMarkers","markerRange","ck-suggestion-marker-","listItem","previousPosition","addClass","markerName","writer","schema","push","getWalker","element","elementEnd","toViewPosition","isBlock","model","toViewElement","TrackChangesEditing","start","getCustomProperty"];var us,ds;us=ls,ds=365,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x17")]())s[gs("0x12")](t)&&o[gs("0x4")](n[gs("0x14")](s));return o}function fs(t){const e=[];if(t.is("element","listItem")){let n=t[gs("0x19")];for(;n&&n.is(gs("0x6"),gs("0x24"))&&n[gs("0xf")]("listIndent")>0;)e.push(n),n=n[gs("0x19")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x1f")][gs("0x1e")](gs("0xc"));return(s,r,i)=>{if(!i[gs("0x11")][gs("0x1b")](r.markerRange,s[gs("0x16")]))return;const x=r[gs("0x22")][gs("0x5")](),a=r[gs("0x22")][gs("0xd")],c=t[gs("0xa")][gs("0x3")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c.isContent(e);const n=i[gs("0x1a")][gs("0xb")](e);if(n&&n[gs("0xe")](gs("0x15")))return;gs("0x7")==t.type&&c[gs("0x9")](e)&&!c[gs("0x13")](e)&&(e[gs("0x19")]||a.isAtEnd?l&&l[gs("0x1c")]==e||(l=e,m(t[gs("0x25")]),g=!0):u=u||t.previousPosition)}function m(t){const s=i[gs("0x2")].createUIElement("span",{class:gs("0x23")+e}),x=i[gs("0x1a")][gs("0x8")](t);n&&o[gs("0x21")][gs("0x10")](r[gs("0x1")])&&i[gs("0x2")][gs("0x0")](gs("0x20"),s),i[gs("0x2")][gs("0x18")](x,s),i[gs("0x1a")][gs("0x1d")](s,r.markerName)}d||g||!u||m(u)}}const ps=["forceValue","*Remove format:* %0","getRanges","afterInit","commands","plugins","SuperscriptEditing","from","StrikethroughEditing","FORMAT_STRIKETHROUGH","change","selection","get","model","ItalicEditing","document","subscript","underline","value","format","FORMAT_UNDERLINE","enableCommand","SubscriptEditing","slice","editor","commandParams","UnderlineEditing","code","strikethrough","*Format:* %0","superscript","registerDescriptionCallback","BoldEditing","FORMAT_CODE","italic","TrackChangesEditing","CodeEditing","locale"];var bs,Es;bs=ps,Es=137,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x9"),_s("0x1d"),_s("0x3"),_s("0xd"),_s("0x17"),_s("0x25"),_s("0x15")];class Cs extends t.Plugin{[_s("0x12")](){const t=this[_s("0x1")],e=t[_s("0x1c")],n=t[_s("0x14")][_s("0x1b")](_s("0xc")),o=t[_s("0xe")];for(const o of Ts){if(!t[_s("0x14")].has(o))continue;const s=o[_s("0x0")](0,-7).toLowerCase(),r=t[_s("0x13")][_s("0x1b")](s);n[_s("0x24")](s,((t,o={})=>{const i=e[_s("0x1e")][_s("0x1a")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0xf")]?o.forceValue:!r[_s("0x21")];e[_s("0x19")]((()=>{const t=Array[_s("0x16")](i[_s("0x11")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0x8")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[_s("0x2")][0].forceValue?{type:"format",content:Yo(o,_s("0x6"),e)}:{type:_s("0x22"),content:Yo(o,_s("0x10"),e)}}))}s("bold",Yo(o,"FORMAT_BOLD")),s(_s("0xb"),Yo(o,"FORMAT_ITALIC")),s(_s("0x20"),Yo(o,_s("0x23"))),s(_s("0x4"),Yo(o,_s("0xa"))),s(_s("0x5"),Yo(o,_s("0x18"))),s(_s("0x1f"),Yo(o,"FORMAT_SUBSCRIPT")),s(_s("0x7"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["*Remove format:* %0","filter","schema","commandName","has","TrackChangesEditing","model","$root","locale","enableCommand","checkChild","document","blockQuote","selection","get","name","getSelectedBlocks","editor","*Format:* %0","forceValue","markBlockFormat","afterInit","plugins","ELEMENT_BLOCK_QUOTE","format","_descriptionFactory","parent","BlockQuoteEditing"];var ks,As;ks=ys,As=267,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("0x2")],e=t[vs("0x15")];if(!t[vs("0x7")][vs("0x11")](vs("0xc")))return;const n=t[vs("0x7")][vs("0x1b")](vs("0x12")),o=this[vs("0x2")].commands.get("blockQuote");n[vs("0x16")](vs("0x19"),((e,s={})=>{const r=this[vs("0x2")][vs("0x13")][vs("0x18")][vs("0x1a")],i=s&&void 0!==s.forceValue?s[vs("0x4")]:!o.value;let x=[];if(i){const e=Array.from(r[vs("0x1")]()).filter((t=>Ss(t)||function(t,e){const n=e[vs("0x17")](t[vs("0xb")],"blockQuote"),o=e[vs("0x17")]([vs("0x14"),vs("0x19")],t);return n&&o}(t,this[vs("0x2")][vs("0x13")][vs("0xf")])));x=S(e,t[vs("0x13")])}else{const e=Array.from(r[vs("0x1")]())[vs("0xe")]((t=>Ss(t)));x=S(e,t[vs("0x13")])}t.model.change((()=>{for(const t of x)n[vs("0x5")](t,{commandName:vs("0x19"),commandParams:[{forceValue:i}]})}))})),n[vs("0xa")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x19")==n[vs("0x10")]){const t=Yo(e,vs("0x8"));return n.commandParams[0][vs("0x4")]?{type:vs("0x9"),content:Yo(e,vs("0x3"),t)}:{type:"format",content:Yo(e,vs("0xd"),t)}}}))}}function Ss(t){return vs("0x19")==t[vs("0xb")][vs("0x0")]}const Is=["editor","ckbox","get","enableCommand","afterInit","plugins","TrackChangesEditing"];var Ls,Ns;Ls=Is,Ns=130,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x0")](){const t=this[Ms("0x3")];t.commands.get(Ms("0x4"))&&t[Ms("0x1")][Ms("0x5")](Ms("0x2"))[Ms("0x6")](Ms("0x4"))}}const Os=["blockName","commandParams","commandName","isLimit","filter","markBlockFormat","plugins","document","enableCommand","name","checkChild","format","ELEMENT_CODE_BLOCK","find","locale","registerDescriptionCallback","afterInit","parent","_descriptionFactory","outdentCodeBlock","*Remove format:* %0","languages","has","*Format:* %0","from","forceValue","registerElementLabel","rootElement","get","selection","language","getSelectedBlocks","label","config","indentCodeBlock","codeBlock","change","model"];var Fs,Ps;Fs=Os,Ps=224,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x14")](){const t=this.editor;if(!t.plugins[Ds("0x1a")]("CodeBlock"))return;const e=t[Ds("0xa")][Ds("0x20")]("TrackChangesEditing"),n=t[Ds("0x12")],o=t[Ds("0x25")][Ds("0x20")](Ds("0x1"))[Ds("0x19")],s=t.commands[Ds("0x20")](Ds("0x1"));e[Ds("0xc")](Ds("0x0")),e.enableCommand(Ds("0x17")),e.enableCommand(Ds("0x1"),((n,r={})=>{const i=t.model,x=t[Ds("0x3")][Ds("0xb")][Ds("0x21")],a=r&&void 0!==r[Ds("0x1d")]?r[Ds("0x1d")]:!s.value;let c;r[Ds("0x22")]||(r[Ds("0x22")]=o[0][Ds("0x22")]),c=a?Array[Ds("0x1c")](x[Ds("0x23")]())[Ds("0x8")]((t=>{return js(t)||(e=t,n=i.schema,!e.is(Ds("0x1f"))&&!n[Ds("0x7")](e)&&n[Ds("0xe")](e[Ds("0x15")],Ds("0x1")));var e,n})):Array.from(x[Ds("0x23")]())[Ds("0x8")]((t=>js(t)));const l=S(c,i);i[Ds("0x2")]((()=>{for(const t of l)e[Ds("0x9")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x4")})}))})),e[Ds("0x16")][Ds("0x1e")](Ds("0x1"),(t=>Yo(n,Ds("0x10"),t))),e[Ds("0x16")][Ds("0x13")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&Ds("0x1")==r[Ds("0x6")]){const t=r[Ds("0x5")][0][Ds("0x22")],s=e(o[Ds("0x11")]((e=>e[Ds("0x22")]===t))[Ds("0x24")]);return r[Ds("0x5")][0][Ds("0x1d")]?{type:Ds("0xf"),content:Yo(n,Ds("0x1b"),Yo(n,Ds("0x10"),1)+" ("+s+")")}:{type:Ds("0xf"),content:Yo(n,Ds("0x18"),Yo(n,Ds("0x10"),1))}}}))}}function js(t){return Ds("0x1")==t[Ds("0xd")]}const Us=["addCommentThread","editor","CommentsEditing","get","enableCommand","plugins","afterInit"];var Gs,Hs;Gs=Us,Hs=243,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x1")](){const t=this[zs("0x3")];t.plugins.has(zs("0x4"))&&t[zs("0x0")][zs("0x5")]("TrackChangesEditing")[zs("0x6")](zs("0x2"))}}var Vs=n(181);const Ks=["enqueueChange","buffer","high","writer","getFirstRange","start","model","init","createSelection","TrackChangesEditing","markerNameToElements","detach","$graveyard","addMarker:suggestion:deletion","isCollapsed","editor","fromRange","enableCommand","unlock","unit","mapper","setSelection","deleteForward","end","commands","merge","selection","remove","editing","downcastDispatcher","bind","batch","createRange","markerName","get","uiElement","data","root","requires","delete"];var qs,Xs;qs=Ks,Xs=237,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[$s("0x1")](){return[Vs.Delete]}[$s("0xa")](){const t=this[$s("0x12")],e=t.plugins[$s("0x25")]($s("0xc"));e[$s("0x14")]($s("0x2"));const n=t[$s("0x1b")][$s("0x25")]($s("0x19"));e[$s("0x14")]($s("0x19"),((e,o={})=>{const s=t.model[$s("0xb")](t[$s("0x9")].document[$s("0x1d")]);s[$s("0x11")]&&t[$s("0x9")].modifySelection(s,{direction:"forward",unit:o[$s("0x16")]});const r=s[$s("0x7")](),x=i.LiveRange[$s("0x13")](r);let a;e(o),a=$s("0xf")==x[$s("0x0")].rootName?t.model[$s("0x23")](r[$s("0x8")]):t.model[$s("0x23")](x[$s("0x8")],x[$s("0x1a")]),x[$s("0xe")](),t[$s("0x9")][$s("0x3")](n[$s("0x4")][$s("0x22")],(t=>{n.buffer.lock(),t[$s("0x18")](t.createRange(a[$s("0x1a")])),n[$s("0x4")][$s("0x15")]()}))})),t[$s("0x1f")][$s("0x20")].on($s("0x10"),hs(t,$s("0x1c")),{priority:"high"}),t[$s("0x27")][$s("0x20")].on($s("0x10"),((e,n,o)=>{o.options.showSuggestionHighlights&&hs(t,$s("0x1c"),{showActiveMarker:!1})[$s("0x21")](this)(e,n,o)}),{priority:$s("0x5")}),t.editing.downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n.mapper[$s("0xd")](e.markerName);if(o)for(const t of o)t.is($s("0x26"))&&(n[$s("0x17")].unbindElementFromMarkerName(t,e[$s("0x24")]),n[$s("0x6")][$s("0x1e")](t))}),{priority:$s("0x5")})}}const Qs=["isFirstBlockOfListItem","model","detach","ELEMENT_NUMBERED_LIST","setSelection","plugins","TrackChangesEditing","DocumentListUtils","fromRange","createPositionAt","document","slice","createRange","getFirstRange","*Change to:* %0","format","previousSibling","bulletedList","*Merge:* %0","toUpperCase","selection","enableCommand","registerCustomCallback","length","listIndent","push","_LIST","ELEMENT_LIST_ITEM","add","from","schema","markMultiRangeBlockFormat","accept","get","mergeListItemForward","_descriptionFactory","splitListItemBefore","change","getRanges","listItemId","registerElementLabel","*Outdent:* %0","multipleBlocks","getAttribute","commands","DocumentListEditing","refresh","containsItem","has","getSelectedBlocks","commandName","*Format:* remove from %0","listType","forceValue","execute","markBlockFormat","formatBlock","editor","afterInit","parent","indentList","value","start","next","after","end","documentList","before","outdentList","locale","nextSibling","splitListItemAfter","isObject","*Format:* insert into %0","*Indent:* %0","hasAttribute","deletion","commandParams","numberedList","nodeAfter"];var Zs,Ys;Zs=Qs,Ys=150,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x44")](){const t=this[tr("0x43")];if(!t[tr("0xf")][tr("0x3a")](tr("0x37")))return;const e=t[tr("0x4f")],n=t[tr("0xf")].get(tr("0x10")),o=t[tr("0xf")].get(tr("0x11"));function s(e){return()=>{const s=t[tr("0x36")][tr("0x2b")](e);let r=Array[tr("0x27")](t.model[tr("0x14")].selection[tr("0x3b")]());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o[tr("0xa")](e)&&t[tr("0x23")](e);r=t}t[tr("0xb")].change((()=>{n[tr("0x29")](r,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:tr("0x3e")},[],tr("0x4c"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x27")](t);const n=e.findIndex((t=>!t[tr("0x5")](tr("0x31"))));return n>-1&&(e=e[tr("0x15")](0,n)),e}(t.model[tr("0x14")][tr("0x1e")][tr("0x3b")]()),s=o[o[tr("0x21")]-1],r=t.model[tr("0x28")][tr("0x2")](s)?tr("0x4a"):"end",i=t[tr("0xb")][tr("0x16")](t[tr("0xb")][tr("0x13")](o[0],tr("0x4d")),t[tr("0xb")].createPositionAt(s,r));t.model[tr("0x2f")]((()=>{n[tr("0x41")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x0")];for(;t&&t[tr("0x35")](tr("0x22"))>n.getAttribute(tr("0x22"));)e[tr("0x26")](t),t=t[tr("0x0")]}return Array[tr("0x27")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0xb")][tr("0x14")].selection.getSelectedBlocks()[tr("0x49")]()[tr("0x47")],s=t[tr("0xb")][tr("0x13")](o,tr("0x4d")),r=t[tr("0xb")][tr("0x13")](o,0),i=t[tr("0xb")][tr("0x16")](s,r);t.model[tr("0x2f")]((()=>{n[tr("0x41")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x3e")})}))}}function a(e){const n=t[tr("0x36")][tr("0x2b")](tr("0x1b"))[tr("0x47")],o=t[tr("0x36")][tr("0x2b")]("numberedList")[tr("0x47")];return tr("0x8")===e?n:o}n[tr("0x1f")]("numberedList",s(tr("0x8"))),n[tr("0x1f")](tr("0x1b"),s(tr("0x1b"))),n[tr("0x1f")](tr("0x46"),r(tr("0x46"))),n[tr("0x1f")](tr("0x4e"),r("outdentList")),n[tr("0x1f")](tr("0x1"),x(tr("0x1"))),n[tr("0x1f")](tr("0x2e"),x(tr("0x2e"))),n[tr("0x2d")][tr("0x32")]((function(e){const n=!t[tr("0xb")][tr("0x28")][tr("0x2")](e),o=e[tr("0x1a")],s=e[tr("0x0")],r=e[tr("0x35")](tr("0x31")),i=!o||o[tr("0x35")](tr("0x31"))!==r,x=!s||s.getAttribute("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x25"),t))),n[tr("0x2d")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x3c")]){case tr("0x1b"):r=n[tr("0x7")][0][tr("0x3f")],i=a(n.commandName),o=tr(r?"0x3":"0x3d"),i&&(o=tr("0x18")),s={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0x8"):r=n[tr("0x7")][0].forceValue,i=a(n[tr("0x3c")]),o=r?tr("0x3"):"*Format:* remove from %0",i&&(o="*Change to:* %0"),s={type:"format",content:Yo(e,o,Yo(e,tr("0xd")))};break;case tr("0x46"):o=tr("0x4"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x25")))};break;case tr("0x4e"):o=function(t){const e=t[tr("0x17")]();let n=e[tr("0x48")][tr("0x9")];for(;n&&e[tr("0x39")](n);){if(n.getAttribute(tr("0x22"))>0)return!1;n=n[tr("0x0")]}return!0}(t)?Yo(e,tr("0x3d"),Yo(e,"ELEMENT_"+t[tr("0x17")]()[tr("0x48")].nodeAfter[tr("0x35")](tr("0x3e"))[tr("0x1d")]()+tr("0x24"))):Yo(e,tr("0x33"),Yo(e,tr("0x25"))),s={type:tr("0x19"),content:o};break;case"mergeListItemBackward":case tr("0x2c"):!1===n[tr("0x34")]&&(o=tr("0x1c"),s={type:tr("0x6"),content:Yo(e,o,Yo(e,tr("0x25")))})}return s})),n._suggestionFactory[tr("0x20")](tr("0x42"),tr("0x4c"),tr("0x2a"),(function(e,n){const o=[];for(let n of e)n[tr("0x48")][tr("0x9")]===n[tr("0x4b")][tr("0x45")]&&(n=t[tr("0xb")][tr("0x16")](t[tr("0xb")][tr("0x13")](n.start[tr("0x9")],0))),o[tr("0x23")](n);t[tr("0xb")][tr("0x2f")]((e=>{const s=t.model[tr("0x14")][tr("0x1e")],r=Array[tr("0x27")](s[tr("0x30")]()).map((t=>i.LiveRange[tr("0x12")](t)));e[tr("0xe")](o),t.commands[tr("0x2b")](n[tr("0x3c")])[tr("0x38")](),n.commandParams[tr("0x23")]({forceDefaultExecution:!0}),t[tr("0x40")](n.commandName,...n[tr("0x7")]),e.setSelection(r);for(const t of r)t[tr("0xc")]()}))}))}}var nr=n(331);const or=["createRange","split","commands","showSuggestionHighlights","downcastDispatcher","remove","change","data","nextSibling","ck-suggestion-marker-split","mapper","fromRange","end","model","requires","addMarker:suggestion:insertion","bind","high","markerNameToElements","editing","fire","options","writer","editor","detach","init","getFirstRange","markInsertion","removeMarker:suggestion:insertion","setSelection","createPositionAt","enter","markerName","unbindElementFromMarkerName","parent"];var sr,rr;sr=or,rr=386,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("0xd")](){return[nr.Enter]}[ir("0x18")](){const t=this[ir("0x16")],e=t.plugins.get("TrackChangesEditing"),n=t[ir("0x1")].get(ir("0x1e"));e.enableCommand(ir("0x1e"),(()=>{t[ir("0xc")][ir("0x5")]((o=>{const s=t[ir("0xc")].document.selection,r=s.getFirstPosition(),x=i.LiveRange[ir("0xa")](s[ir("0x19")]());if(n.enterBlock(o)){const n=t[ir("0xc")][ir("0x1d")](r[ir("0x21")][ir("0x7")],0),s=o[ir("0x22")](r,n);e[ir("0x1a")](s)}else o[ir("0x1c")](o[ir("0x22")](x[ir("0xb")]));x[ir("0x17")](),n[ir("0x13")]("afterExecute",{writer:o})}))})),t.editing[ir("0x3")].on(ir("0xe"),hs(t,"split"),{priority:ir("0x10")}),t[ir("0x12")][ir("0x3")].on(ir("0x1b"),((t,e,n)=>{const o=n[ir("0x9")][ir("0x11")](e.markerName);if(o)for(const t of o)t.hasClass(ir("0x8"))&&(n[ir("0x9")][ir("0x20")](t,e[ir("0x1f")]),n[ir("0x15")][ir("0x4")](t))}),{priority:ir("0x10")}),t[ir("0x6")][ir("0x3")].on(ir("0xe"),((e,n,o)=>{o[ir("0x14")][ir("0x2")]&&hs(t,ir("0x0"),{showActiveMarker:!1})[ir("0xf")](this)(e,n,o)}),{priority:ir("0x10")})}}const ar=["markers","get","has","replaceAll","createPositionAt","filter","enableCommand","findByTextCallback","_isInDeletionRange","FindAndReplaceEditing","getMarkersGroup","model","suggestion:deletion","plugins","bind","handleFindCommand","createRange","findPrevious","start","string","TrackChangesEditing","editor","find"];var cr,lr;cr=ar,lr=398,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{afterInit(){if(!this[ur("0xe")][ur("0x6")][ur("0x12")](ur("0x2")))return;const t=this[ur("0xe")][ur("0x6")][ur("0x11")](ur("0xd"));t[ur("0x16")](ur("0xf"),this.handleFindCommand[ur("0x7")](this)),t[ur("0x16")]("findNext"),t[ur("0x16")](ur("0xa")),t[ur("0x16")]("replace"),t[ur("0x16")](ur("0x13"))}[ur("0x8")](t,e,n={}){const o=this.editor[ur("0x6")][ur("0x11")]("FindAndReplaceUtils");void 0!==n&&t((t=>(ur("0xc")==typeof e?o[ur("0x0")](e,n):e)(t)[ur("0x15")]((e=>!1===this[ur("0x1")](e,t.item)))),n)}_isInDeletionRange(t,e){const n=this[ur("0xe")][ur("0x4")][ur("0x9")](this.editor.model[ur("0x14")](e,t[ur("0xb")]),this[ur("0xe")][ur("0x4")][ur("0x14")](e,t.end));for(const t of this[ur("0xe")].model[ur("0x10")][ur("0x3")](ur("0x5")))if(null!==n.getIntersection(t.getRange()))return!0;return!1}}const gr=["fontBackgroundColor","value","registerDescriptionCallback","FontFamilyEditing","_descriptionFactory","selection","change","toLowerCase","find","fontFamily","*Set font color:* %0","normalizeSizeOptions","commandName","fontSize.options","FontSizeEditing","format","*Set font size:* %0","locale","get","commandParams","editor","getRanges","config","*Reset font background color*","TrackChangesEditing","label","*Reset font color*","FontBackgroundColorEditing","from","afterInit","*Reset font size*","*Reset font family*","_enableCommand","trim","*Set font background color:* %0","plugins","fontColor","enableCommand","has","fontSize","model"];var mr,fr;mr=gr,fr=395,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1d"),commandName:hr("0xd")},{pluginName:hr("0x12"),commandName:hr("0x18")},{pluginName:"FontColorEditing",commandName:hr("0xa")},{pluginName:hr("0x1"),commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x3")](){const t=this[hr("0x23")][hr("0x20")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x23")][hr("0x9")][hr("0xc")](t)&&this[hr("0x6")](e);this[hr("0x23")].plugins.get(hr("0x27"))[hr("0x13")][hr("0x11")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0xd")==o[hr("0x1b")]){const e=o[hr("0x22")][0][hr("0x10")];if(e){const o=n(this[hr("0x23")].plugins[hr("0x21")]("FontSize")[hr("0x1a")](this[hr("0x23")][hr("0x25")][hr("0x21")](hr("0x1c")))[hr("0x17")]((t=>t[hr("0xe")]==e)).title)[hr("0x16")]();return{type:hr("0x1e"),content:Yo(t,hr("0x1f"),o)}}return{type:hr("0x1e"),content:Yo(t,hr("0x4"))}}if(hr("0x18")==o[hr("0x1b")]){const e=o[hr("0x22")][0][hr("0x10")];return e?{type:"format",content:Yo(t,"*Set font family:* %0",e)}:{type:hr("0x1e"),content:Yo(t,hr("0x5"))}}if(hr("0xa")==o[hr("0x1b")]){const e=o[hr("0x22")][0][hr("0x10")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x25")][hr("0x21")]("fontColor.colors"))[hr("0x17")]((t=>t[hr("0xe")]==e));let r=e,i="";return o&&(r=o[hr("0x28")],i=n(r)[hr("0x16")]()),{type:hr("0x1e"),content:Yo(t,hr("0x19"),i)[hr("0x7")](),color:{value:e,title:i||r}}}return{type:hr("0x1e"),content:Yo(t,hr("0x0"))}}if(hr("0xf")==o[hr("0x1b")]){const e=o[hr("0x22")][0][hr("0x10")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x25")][hr("0x21")]("fontBackgroundColor.colors"))[hr("0x17")]((t=>t[hr("0xe")]==e));let r=e,i="";return o&&(r=o[hr("0x28")],i=n(r)[hr("0x16")]()),{type:hr("0x1e"),content:Yo(t,hr("0x8"),i)[hr("0x7")](),color:{value:e,title:i||r}}}return{type:hr("0x1e"),content:Yo(t,hr("0x26"))}}}}))}[hr("0x6")](t){const e=this[hr("0x23")];e.plugins.get(hr("0x27"))[hr("0xb")](t,((n,o={})=>{const s=e.model.document[hr("0x14")],r=o[hr("0x10")];s.isCollapsed?n(o):e.model[hr("0x15")]((()=>{const n=Array[hr("0x2")](s[hr("0x24")]());for(const o of n){const n=r?[o]:ms(t,o,e.model);for(const o of n)e.plugins[hr("0x21")](hr("0x27")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["TrackChangesEditing","selection","fontSize","length","markInlineFormat","format","locale","registerDescriptionCallback","slice","entries","*Remove all formatting*","createRange","copyFormat","fontSize.options","toLowerCase","boolean","fontColor","getRanges","document","find","FontSize","_descriptionFactory","word","model","pasteFormat","from","isFormatting","join","split","isCollapsed","title","getAttributes","plugins","editor","change","commands","isBlock","commandName","get","getFirstPosition","push","*Set format to:* %0","getLastPosition","enableCommand","fontBackgroundColor","getAttributeProperties","backward","getSelectedBlocks","getItems","afterInit","charAt","keys","modifySelection","commandParams","label","schema"];var _r,Tr;_r=Er,Tr=416,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x19")](){const t=this[Cr("0x9")],n=t.model,o=n[Cr("0x32")][Cr("0x21")],s=t[Cr("0x8")][Cr("0xe")]("TrackChangesEditing"),r=t[Cr("0x26")],i=t.commands[Cr("0xe")]("copyFormat"),x=t[Cr("0xb")][Cr("0xe")](Cr("0x0"));i&&x&&(s.enableCommand(Cr("0x0"),((t,r={})=>{const i=r;n[Cr("0xa")]((()=>{const t=Array[Cr("0x1")](o[Cr("0x31")]()),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("0x7")]()){const t=e[Cr("0x15")](n);t&&t[Cr("0x2")]&&(yield n)}}(t,n));for(const e of t[Cr("0x31")]())for(const t of e[Cr("0x18")]())!n[Cr("0xc")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x17")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x1f")]))||0!==Object[Cr("0x1b")](i)[Cr("0x23")])for(const t of r)s[Cr("0x24")](t,{commandName:Cr("0x0"),commandParams:[i]})}))})),s[Cr("0x35")][Cr("0x27")]((e=>{const{data:n}=e;if(n&&Cr("0x0")===n[Cr("0xd")]){const e=[],o=n[Cr("0x1d")][0];for(const[n,s]of Object[Cr("0x29")](o))e[Cr("0x10")](Ar(t,n,s));return e[Cr("0x23")]?{type:Cr("0x25"),content:Yo(r,Cr("0x11"),e[Cr("0x3")](", "))}:{type:Cr("0x25"),content:Yo(r,Cr("0x2a"))}}})),t[Cr("0x8")].get(Cr("0x20"))[Cr("0x13")](Cr("0x2c")))}}function kr(t,e){const n=t.createSelection(e);t[Cr("0x1c")](n,{unit:Cr("0x36"),direction:Cr("0x16")});const o=n[Cr("0xf")]();t[Cr("0x1c")](n,{unit:Cr("0x36"),direction:"forward"});const s=n[Cr("0x12")]();return t[Cr("0x2b")](o,s)}function Ar(t,e,n){const o=t[Cr("0x26")].t,r=e[Cr("0x4")](/(?=[A-Z])/)[Cr("0x3")](" "),i=o(r[Cr("0x1a")](0).toUpperCase()+r[Cr("0x28")](1))[Cr("0x2e")]();if(Cr("0x2f")==typeof n)return i;if(Cr("0x30")===e||Cr("0x14")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0xe")]("fontColor.colors")).find((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x1e")])[Cr("0x2e")]():n)+")"}if(Cr("0x22")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0xe")](Cr("0x34")).normalizeSizeOptions(t.config[Cr("0xe")](Cr("0x2d")))[Cr("0x33")]((t=>t[Cr("0x37")]==n));return i+" ("+(e?o(e[Cr("0x6")])[Cr("0x2e")]():n)+")"}return i+" ("+n+")"}const vr=["find","registerElementLabel","config","filter","enableCommand","_descriptionFactory","has","ELEMENT_HEADING_CUSTOM","title","commandParams","registerDescriptionCallback","afterInit","change","name","HeadingEditing","heading","editor","document","*Change to:* %0","model","value","checkChild","get","formatBlock","format","heading.options","ELEMENT_HEADING","markBlockFormat","commandName","plugins","TrackChangesEditing"];var Rr,Sr;Rr=vr,Sr=221,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x7")](){const t=this[Ir("0xc")],e=t.locale,n=t[Ir("0x1d")][Ir("0x12")](Ir("0x15"));if(!t[Ir("0x19")][Ir("0x2")](Ir("0xa")))return;const o=t[Ir("0x19")][Ir("0x12")](Ir("0x1a"));o[Ir("0x0")](Ir("0xb"),((e,n)=>{const s=n.value,r=Array.from(this.editor[Ir("0xf")][Ir("0xd")].selection.getSelectedBlocks())[Ir("0x1e")]((t=>{return e=t,n=s,(o=this[Ir("0xc")][Ir("0xf")].schema)[Ir("0x11")](e.parent,n)&&!o.isObject(e)&&e[Ir("0x9")]!=n;var e,n,o}));t.model[Ir("0x8")]((()=>{for(const t of r)o[Ir("0x17")](t,{commandName:Ir("0xb"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0xf")]&&o._descriptionFactory[Ir("0x1c")](t[Ir("0xf")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0x4")])}));function s(t,n){return Yo(e,Ir("0x16"),[t,n])}function r(t,n){return Yo(e,Ir("0x3"),[t,n])}o[Ir("0x1")][Ir("0x6")]((t=>{const{type:o,data:i}=t;if(Ir("0x13")==o&&i&&"heading"==i[Ir("0x18")]){const t=i[Ir("0x5")][0][Ir("0x10")],o=Nr(t);if(null!==o)return{type:"format",content:Yo(e,Ir("0xe"),s(1,o))};const x=n[Ir("0x1b")]((e=>e[Ir("0xf")]===t))[Ir("0x4")];return{type:Ir("0x14"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Mr=["getAttribute","isCollapsed","formatInline","has","editor","document","afterInit","getRanges","markInlineFormat","title","getFirstPosition","model","createRange","item","config","find","get","commandParams","registerDescriptionCallback","toLowerCase","*Remove highlight*","push","getLastMatchingPosition","format","change","_descriptionFactory","TrackChangesEditing","*Set highlight:* %0","selection","value","highlight.options","locale","highlight","HighlightEditing","color","plugins","commandName"];var wr,Or;wr=Mr,Or=200,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x1c")](){const t=this[Fr("0x1a")];if(!t[Fr("0x14")][Fr("0x19")](Fr("0x12")))return;const e=t.plugins.get(Fr("0xb"));e.enableCommand(Fr("0x11"),((n,o={})=>{const s=t[Fr("0x21")][Fr("0x1b")][Fr("0xd")],r=s[Fr("0x16")](Fr("0x11"));let i=o.value,x=[];if(s[Fr("0x17")]){const e=s[Fr("0x20")]();if(!s.hasAttribute("highlight"))return void n(o);{const n=t=>t[Fr("0x23")].getAttribute("highlight")===r,o=e[Fr("0x7")](n,{direction:"backward"}),s=e[Fr("0x7")](n);x=[t[Fr("0x21")][Fr("0x22")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x1d")]())i?x.push(e):x[Fr("0x6")](...ms(Fr("0x11"),e,t.model));t[Fr("0x21")][Fr("0x9")]((()=>{for(const t of x)e[Fr("0x1e")](t,{commandName:Fr("0x11"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x10")];e[Fr("0xa")][Fr("0x3")]((e=>{const{type:o,data:s}=e;if(Fr("0x18")==o&&s&&Fr("0x11")==s[Fr("0x15")]){const e=n.t,o=s[Fr("0x2")][0][Fr("0xe")];if(o){const s=t[Fr("0x24")][Fr("0x1")](Fr("0xf"))[Fr("0x0")]((t=>t.model==o)),r=e(s[Fr("0x1f")])[Fr("0x4")]();return{type:Fr("0x8"),content:Yo(n,Fr("0xc"),r),color:{value:s[Fr("0x13")],title:s.title}}}return{type:"format",content:Yo(n,Fr("0x5"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["createContainerElement","plugins","has","editor","locale","get","elementToStructure","div","enableCommand","high","createPositionAt","ck-horizontal-line","ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","_descriptionFactory","dataDowncast","HorizontalLineEditing","insert","horizontalLine","for","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{afterInit(){const t=this[Ur("0x8")];if(!t[Ur("0x6")][Ur("0x7")](Ur("0x0")))return;t[Ur("0x6")][Ur("0xa")]("TrackChangesEditing")[Ur("0xd")]("horizontalLine");const e=t[Ur("0x6")].get(Ur("0x12")),n=t[Ur("0x9")];e[Ur("0x13")].registerElementLabel("horizontalLine",(t=>Yo(n,Ur("0x11"),t))),t.conversion[Ur("0x3")](Ur("0x14"))[Ur("0xb")]({model:Ur("0x2"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x5")](Ur("0xc")),s=e.createEmptyElement("hr");return e[Ur("0x4")](Ur("0x10"),o),e[Ur("0x1")](e[Ur("0xf")](o,0),s),o},converterPriority:Ur("0xe")})}}const Hr=["cancel","get","change","document","rawHtmlApi","rawHtml","registerDescriptionCallback","TrackChangesEditing","afterInit","getAttribute","*Change %0 content*","view","element","ELEMENT_HTML_EMBED","value","plugins","enableCommand","htmlEmbed","registerElementLabel","has","locale","getCustomProperty","getSelectedElement","markBlockFormat","editing","model","selection","_descriptionFactory"];var zr,Wr;zr=Hr,Wr=468,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x10")](){const t=this.editor;if(!t[Vr("0x17")][Vr("0x1b")]("HtmlEmbed"))return;const e=t[Vr("0x17")][Vr("0x9")](Vr("0xf")),n=t[Vr("0x0")],o=t[Vr("0x4")][Vr("0x13")][Vr("0xb")][Vr("0x6")];e._descriptionFactory[Vr("0x1a")]("rawHtml",(t=>Yo(n,Vr("0x15"),t))),t[Vr("0x17")][Vr("0x9")](Vr("0xf"))[Vr("0x18")](Vr("0x19"),((n,s)=>{const r=t[Vr("0x5")],i=r[Vr("0xb")][Vr("0x6")];r[Vr("0xa")]((()=>{const t=function(t){const e=t[Vr("0x2")]();return e&&e.is(Vr("0x14"),Vr("0xd"))?t[Vr("0x2")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x11")](Vr("0x16"))||"";void 0!==s&&s!==r&&(e[Vr("0x3")](t,{commandName:"htmlEmbed",commandParams:[s]}),o.getSelectedElement()[Vr("0x1")](Vr("0xc"))[Vr("0x8")]())}))})),e[Vr("0x7")][Vr("0xe")]((t=>{const{data:e}=t;if(e&&Vr("0x19")==e.commandName){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:"format",content:Yo(n,Vr("0x12"),t)}}}))}}const qr=["head","ImageResize","has","addObject","findIndex","newValue","caption","deletion","ImageInlineEditing","isCollapsed","createRange","isInlineImage","registerPostFixer","markBlockFormat","markDeletion","toNext","change","discardSuggestion","from","shouldConvertImageType","chain","width","previous","type","ELEMENT_INLINE_IMAGE","selection","_descriptionFactory","commandParams","end","ELEMENT_CAPTION","hasSuggestion","getCaptionFromImageModelElement","isInContent","imageStyle","isIntersecting","resizeImage","imageStylePostApply","find","commandName","filter","format","ImageUtils","model","_suggestionFactory","newRange","normalizedStyles","alt","hasAttribute","element","markInlineFormat","document","imageStylePreApply","imageTypeInline","isEqual","enableCommand","createRangeOn","uploadImage","title","suggestion","getChangedMarkers","accept","imageCaption","_splitMarkerName","differ","start","formatInline","fromPosition","convertBlockImageToInline","getNearestSelectionRange","ImageBlockEditing","getAttribute","*Format:* %0","commands","locale","getClosestSelectedImageElement","forward","backward","plugins","isBlockImage","insertImage","detach","getContainedElement","discard","*Set image text alternative:* %0","subType","registerCustomCallback","ImageEditing","registerElementLabel","nodeAfter","side","toggleImageCaption","toLowerCase","schema","get","formatBlock","registerDescriptionCallback","forceDefaultExecution","*Remove image text alternative*","length","isBefore","ImageTextAlternativeEditing","Inline image to block image","*Set image width:* %0","markInsertion","imageTypeBlock","ELEMENT_IMAGE","getSuggestionCallback","getSuggestions","Users","insertion","getSuggestion","refresh","next","value","join","*Reset image width*","toPrevious","imageTextAlternative","TrackChangesEditing","convertInlineImageToBlock","afterInit","editor","getFirstRange","Block image to inline image","ImageStyleEditing"];var Xr,$r;Xr=qr,$r=409,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x56")](){const t=this[Jr("0x57")];if(!t[Jr("0x2b")][Jr("0x5d")](Jr("0x34")))return;const n=t[Jr("0x2b")][Jr("0x3b")](Jr("0x54")),o=t[Jr("0x2b")][Jr("0x3b")](Jr("0x7")),s={},r=t[Jr("0x27")];if(n[Jr("0x14")](Jr("0x2d")),n[Jr("0x75")][Jr("0x35")]("imageBlock",(t=>Yo(r,Jr("0x47"),t))),n[Jr("0x75")][Jr("0x35")]("imageInline",(t=>Yo(r,Jr("0x73"),t))),n[Jr("0x75")][Jr("0x35")]("caption",(()=>Yo(r,Jr("0x78")))),t[Jr("0x2b")][Jr("0x5d")]("ImageUploadEditing")&&n.enableCommand(Jr("0x16")),t.plugins[Jr("0x5d")](Jr("0x23"))&&t[Jr("0x2b")][Jr("0x5d")](Jr("0x63"))&&(n[Jr("0x14")](Jr("0x12"),((e,s)=>{const r=o[Jr("0x28")](t[Jr("0x8")][Jr("0x10")][Jr("0x74")]);t.model[Jr("0x6b")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x12"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Jr("0x14")](Jr("0x46"),((e,s)=>{t.model[Jr("0x6b")]((r=>{let x=o[Jr("0x28")](t.model[Jr("0x10")][Jr("0x74")]),a=r[Jr("0x15")](x);const c=i.LivePosition[Jr("0x20")](a[Jr("0x1e")],Jr("0x52")),l=i.LivePosition.fromPosition(a[Jr("0x77")],Jr("0x6a"));n[Jr("0x3e")]((()=>e(s))),x=o[Jr("0x28")](t.model[Jr("0x10")][Jr("0x74")]),a=r.createRangeOn(x);const u=r[Jr("0x65")](c,l);c[Jr("0x2e")](),l.detach(),n.markBlockFormat(x,{commandName:Jr("0x12"),commandParams:[]},[],Jr("0x55")),u[Jr("0x1e")][Jr("0x41")](a.start)&&n[Jr("0x45")](r[Jr("0x65")](u.start,a.start),Jr("0x55")),a.end[Jr("0x41")](u.end)&&n.markInsertion(r[Jr("0x65")](a[Jr("0x77")],u[Jr("0x77")]),Jr("0x55"))}))})),n[Jr("0x9")][Jr("0x33")](Jr("0x3c"),Jr("0x55"),Jr("0x50"),(()=>{})),n[Jr("0x9")][Jr("0x33")]("formatBlock","convertInlineImageToBlock","accept",(()=>{})),n[Jr("0x9")][Jr("0x33")](Jr("0x3c"),"convertInlineImageToBlock",Jr("0x30"),n[Jr("0x9")][Jr("0x48")](Jr("0x3c"),"","accept")),n[Jr("0x9")][Jr("0x33")]("insertion","convertInlineImageToBlock","join",(()=>{})),n[Jr("0x9")][Jr("0x33")](Jr("0x4b"),Jr("0x55"),Jr("0x30"),(([e])=>{const o=n[Jr("0x9")][Jr("0x48")](Jr("0x4b"),"",Jr("0x30"));let s=e[Jr("0x1e")],r=e[Jr("0x77")];const i=t[Jr("0x8")][Jr("0x3a")][Jr("0x22")](s,Jr("0x2a")),x=t[Jr("0x8")][Jr("0x3a")].getNearestSelectionRange(r,Jr("0x29"));i[Jr("0x64")]&&(s=i.start),x[Jr("0x64")]&&(r=x[Jr("0x77")]),o([t[Jr("0x8")][Jr("0x65")](s,r)])})),n[Jr("0x9")][Jr("0x33")]("formatBlock",Jr("0x55"),"chain",c),n[Jr("0x9")].registerCustomCallback(Jr("0x4b"),Jr("0x55"),"chain",c)),t[Jr("0x2b")][Jr("0x5d")]("ImageCaptionEditing")&&(n.enableCommand(Jr("0x38"),((e,s)=>{const r=t[Jr("0x2b")].get("ImageCaptionUtils");let i=o[Jr("0x28")](t.model.document[Jr("0x74")]),x=r[Jr("0x7a")](i);t[Jr("0x8")].change((()=>{if(x)return void n[Jr("0x69")](t[Jr("0x8")][Jr("0x15")](x));const a=o[Jr("0x2c")](i);e(s),i=o[Jr("0x28")](t.model[Jr("0x10")][Jr("0x74")]),x=r[Jr("0x7a")](i),n[Jr("0x45")](t[Jr("0x8")][Jr("0x15")](x),a?null:Jr("0x1b"))}))})),n[Jr("0x9")][Jr("0x33")](Jr("0x4b"),Jr("0x1b"),Jr("0x6f"),c)),t[Jr("0x2b")][Jr("0x5d")](Jr("0x5a"))){n[Jr("0x14")](Jr("0x7c"),((s,r)=>{const i=t[Jr("0x2b")][Jr("0x3b")](Jr("0x4a")).me,x=t[Jr("0x26")][Jr("0x3b")](Jr("0x7c"));let a=o[Jr("0x28")](t[Jr("0x8")][Jr("0x10")].selection),c=t[Jr("0x8")][Jr("0x15")](a),l=x[Jr("0x4f")];if(l==r[Jr("0x4f")])return;const u={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x8")][Jr("0x6b")]((()=>{if(n[Jr("0x49")]()[Jr("0x5")]((t=>t.isInContent&&i==t.author&&(Jr("0x3c")==t[Jr("0x72")]||Jr("0x1f")==t[Jr("0x72")])&&(Jr("0x11")==t[Jr("0x32")]||Jr("0x2")==t[Jr("0x32")])&&t.getFirstRange()[Jr("0x13")](c))).forEach((t=>n[Jr("0x6c")](t[Jr("0x5b")]))),a=o[Jr("0x28")](t[Jr("0x8")][Jr("0x10")].selection),c=t[Jr("0x8")][Jr("0x15")](a),x[Jr("0x4d")](),t[Jr("0x26")][Jr("0x3b")](Jr("0x12")).refresh(),t[Jr("0x26")][Jr("0x3b")](Jr("0x46"))[Jr("0x4d")](),l=x[Jr("0x4f")],l!=r.value)return o[Jr("0x66")](a)&&x[Jr("0x6e")](r.value,a)?(s(r),a=o[Jr("0x28")](t.model.document[Jr("0x74")]),void n[Jr("0x68")](a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x11"))):void(o[Jr("0x2c")](a)?n[Jr("0x68")](a,u,[],"imageStylePostApply"):n[Jr("0xf")](c,u,Jr("0x2")))}))}));for(const e of t[Jr("0x2b")][Jr("0x3b")](Jr("0x5a"))[Jr("0xb")])s[e.name]=e[Jr("0x17")][Jr("0x39")]();n._suggestionFactory[Jr("0x33")](Jr("0x3c"),Jr("0x11"),"join",(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x3c"),"imageStylePostApply",Jr("0x50"),(()=>{})),n._suggestionFactory[Jr("0x33")](Jr("0x1f"),Jr("0x2"),"join",(()=>{})),n[Jr("0x9")].registerCustomCallback("formatBlock",Jr("0x11"),Jr("0x1a"),(()=>{})),n._suggestionFactory[Jr("0x33")](Jr("0x3c"),Jr("0x11"),"discard",((t,e)=>{n[Jr("0x9")][Jr("0x48")](Jr("0x3c"),"",Jr("0x1a"))(t,{commandName:e[Jr("0x4")],commandParams:e.commandReversedParams})})),n[Jr("0x9")][Jr("0x33")](Jr("0x3c"),Jr("0x11"),Jr("0x6f"),c)}const x=[{type:"formatBlock",subType:"imageStylePreApply"},{type:Jr("0x4b"),subType:Jr("0x1b")},{type:"formatBlock",subType:Jr("0x55")},{type:"insertion",subType:Jr("0x55")}];function a(t,e){const s=x[Jr("0x5f")]((({type:e,subType:n})=>t[Jr("0x72")]==e&&t[Jr("0x32")]==n)),r=x[Jr("0x5f")]((({type:t,subType:n})=>e[Jr("0x72")]==t&&e[Jr("0x32")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x58")](),a=e[Jr("0x58")]();if((0==s||1==s)&&2==r&&i[Jr("0x0")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,Jr("0x4b"))[Jr("0x5")]((({suggestion:t,meta:e})=>e.isOwn&&Jr("0x55")==t[Jr("0x32")]));if(t[Jr("0x40")]>1&&a[Jr("0x77")][Jr("0x13")](i[Jr("0x1e")]))return!0;if(1==t[Jr("0x40")]&&(i[Jr("0x1e")][Jr("0x13")](a.end)||i[Jr("0x77")][Jr("0x13")](a[Jr("0x1e")])))return!0}if(3==s&&3==r&&i[Jr("0x1e")][Jr("0x41")](a.start)){const t=i.end[Jr("0x36")],e=a[Jr("0x1e")].nodeBefore;return o[Jr("0x2c")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x8")][Jr("0x10")][Jr("0x67")]((()=>{let e=!1;const s=Array[Jr("0x6d")](t.model.document[Jr("0x1d")][Jr("0x19")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x1c")](t);if(Jr("0x18")==s&&n[Jr("0x79")](a)){if(Jr("0x3c")==i&&(Jr("0x11")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(r[Jr("0xa")]){const s=t[Jr("0x58")]()[Jr("0x2f")]();if(o[Jr("0x2c")](s))continue;n.discardSuggestion(t),e=!0}}if(Jr("0x4b")==i&&Jr("0x1b")==x&&!r[Jr("0xa")]){const t=n[Jr("0x4c")](a);t[Jr("0x4e")]&&t[Jr("0x4e")][Jr("0x7b")]&&(n[Jr("0x6c")](t[Jr("0x4e")]),e=!0)}}}return e})),t[Jr("0x2b")][Jr("0x5d")](Jr("0x5c"))&&n[Jr("0x14")]("resizeImage",((e,s)=>{const r=o[Jr("0x28")](t.model[Jr("0x10")].selection);r[Jr("0x24")](Jr("0x70"))!=s[Jr("0x70")]&&t[Jr("0x8")][Jr("0x6b")]((()=>{n[Jr("0x68")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t[Jr("0x2b")][Jr("0x5d")](Jr("0x42"))&&n.enableCommand("imageTextAlternative",((e,s)=>{const r=o[Jr("0x28")](t[Jr("0x8")][Jr("0x10")][Jr("0x74")]);(r[Jr("0xd")](Jr("0xc"))?r.getAttribute("alt"):"")!=s.newValue&&t.model[Jr("0x6b")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x53"),commandParams:[s]})}))})),n[Jr("0x75")].registerDescriptionCallback((t=>{if(x[Jr("0x3")]((({type:e,subType:n})=>t[Jr("0x72")]==e&&t[Jr("0x32")]==n)))return t[Jr("0x71")]?{}:void 0})),n[Jr("0x75")][Jr("0x3d")]((t=>{if(Jr("0x4b")==t[Jr("0x72")]||Jr("0x62")==t[Jr("0x72")]){const e=t[Jr("0x2f")]();if(e&&e.is(Jr("0xe"),Jr("0x61")))return{type:Jr("0x4b")==t[Jr("0x72")]?Jr("0x5e"):"removeObject",element:e,quantity:1}}})),n[Jr("0x75")].registerDescriptionCallback((t=>Jr("0x3c")==t.type&&Jr("0x55")==t.subType?{type:"format",content:Jr("0x43")}:"formatBlock"==t.type&&Jr("0x21")==t[Jr("0x32")]?{type:Jr("0x6"),content:Jr("0x59")}:void 0)),n[Jr("0x75")][Jr("0x3d")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e.commandName){const t=e.commandParams[0][Jr("0x4f")];return n=Jr("0x37")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x6"),content:Yo(r,Jr("0x25"),n)}}if(Jr("0x53")==e[Jr("0x4")]){const t=e[Jr("0x76")][0][Jr("0x60")];return t?{type:Jr("0x6"),content:Yo(r,Jr("0x31"),'"'+t+'"')}:{type:Jr("0x6"),content:Yo(r,Jr("0x3f"))}}if(Jr("0x1")==e.commandName){const t=e[Jr("0x76")][0].width;return t?{type:Jr("0x6"),content:Yo(r,Jr("0x44"),t)}:{type:Jr("0x6"),content:Yo(r,Jr("0x51"))}}}var n}))}}const Zr=["change","format","registerDescriptionCallback","TrackChangesEditing","getSuggestionCallback","handleSuggestionDescription","author","discard","editor","get","data","accept","plugins","_suggestionFactory","_descriptionFactory","handleReplaceImageCommand","registerCustomCallback","afterInit","source","src","getSuggestions","has","Users","commandParams","replaceImageSource","selection","commandName","getSelectedElement","locale","*Format:* replace image URL"];var Yr,ti;Yr=Zr,ti=384,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x17")](){if(!this.editor[ei("0x12")][ei("0x1b")]("ImageEditing"))return;const t=this.editor[ei("0x12")].get(ei("0x9"));t.enableCommand(ei("0x0"),((t,e)=>this[ei("0x15")](t,e))),t[ei("0x13")][ei("0x16")]("formatBlock",ei("0x0"),"accept",t._suggestionFactory[ei("0xa")]("formatBlock",null,ei("0xd"))),t[ei("0x13")][ei("0x16")]("formatBlock",ei("0x0"),"discard",t[ei("0x13")][ei("0xa")]("formatBlock",null,ei("0x11"))),t[ei("0x14")][ei("0x8")]((t=>this[ei("0xb")](t)))}[ei("0x15")](t,e){const n=this[ei("0xe")][ei("0x12")].get(ei("0x9")),o=this[ei("0xe")].model.document[ei("0x1")][ei("0x3")]();this.editor.model[ei("0x6")]((()=>{let s=o.getAttribute(ei("0x19"));const r=this[ei("0xe")][ei("0x12")][ei("0xf")](ei("0x1c")).me;for(const t of n[ei("0x1a")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x0")===t.subType&&e===o){t[ei("0xc")]!==r&&t[ei("0xd")](),s=t[ei("0x10")][ei("0x1d")][0][ei("0x18")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x0"),commandParams:[{source:s}]},[],ei("0x0"))}))}[ei("0xb")](t){const{data:e}=t;if(e&&ei("0x0")===e[ei("0x2")]){const t=ei("0x5");return{type:ei("0x7"),content:Yo(this[ei("0xe")][ei("0x4")],t)}}}}const oi=["_trackChangesValueDuringImport","lowest","TrackChangesEditing","high","Users","_setSuggestionData","execute","bind","enableCommand","_handleImportedData","trackChanges","commands","track_changes","importWord","listenTo","_trackChangesExecuted","value","dataInsert","get","plugins"];var si,ri;si=oi,ri=424,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._trackChangesValueDuringImport=!1,this[ii("0xb")]=!1}afterInit(){const t=this.editor,e=t[ii("0x7")][ii("0xe")]("importWord"),n=t[ii("0x7")][ii("0xe")]("trackChanges");e&&(e.on(ii("0x2"),((t,[,e])=>{this[ii("0x10")]=n[ii("0xc")],e.collaboration_features[ii("0x8")]=!this[ii("0x10")]}),{priority:ii("0x13")}),this.listenTo(e,ii("0xd"),this._handleImportedData[ii("0x3")](this)),this[ii("0xa")](e,ii("0xd"),(()=>{this._trackChangesExecuted&&(n.execute(),this[ii("0xb")]=!1)}),{priority:ii("0x11")}),t.plugins[ii("0xe")](ii("0x12"))[ii("0x4")](ii("0x9")))}[ii("0x5")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x7")][ii("0xe")](ii("0x6")),s=o[ii("0xc")];this[ii("0x10")]!==s&&(o[ii("0x2")](),this[ii("0xb")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ii("0xf")][ii("0xe")](ii("0x0")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x9")}}};this.editor[ii("0xf")].get("TrackChangesEditing")[ii("0x1")](s)}))}}const ai=["enableCommand","TrackChangesEditing","commandName","getItemLabel","format","model","registerDescriptionCallback","change","_descriptionFactory","*Indent:* %0","get","from","filter","blockIndent","markBlockFormat","editor","getSelectedBlocks","checkAttribute","indentBlock","*Outdent:* %0","plugins","has","locale","afterInit","schema","outdentBlock"];var ci,li;ci=ai,li=263,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x14")](){const t=this.editor,e=t.plugins[ui("0x7")](ui("0x18"));t[ui("0x11")][ui("0x12")]("IndentEditing")&&(e.enableCommand("indent"),e[ui("0x17")]("outdent"));const n=t[ui("0x13")];if(t[ui("0x11")].has("IndentBlock")){for(const n of[ui("0xf"),ui("0x16")])e.enableCommand(n,(()=>{const o=Array[ui("0x8")](this.editor[ui("0x2")].document.selection[ui("0xd")]())[ui("0x9")]((t=>this[ui("0xc")].model[ui("0x15")][ui("0xe")](t,ui("0xa"))));t[ui("0x2")][ui("0x4")]((()=>{for(const t of o)e[ui("0xb")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0xf")})}))}));e[ui("0x5")][ui("0x3")]((t=>{const{data:o}=t;if(!o)return;if(ui("0xf")!=o.commandName&&"outdentBlock"!=o[ui("0x19")])return;const s=t.getItems()[0],r=e[ui("0x5")][ui("0x0")](s);return ui("0xf")==o[ui("0x19")]?{type:ui("0x1"),content:Yo(n,ui("0x6"),r)}:"outdentBlock"==o[ui("0x19")]?{type:ui("0x1"),content:Yo(n,ui("0x10"),r)}:void 0}))}}}var gi,mi,fi=["requires","input","init","enableCommand","get","plugins","TrackChangesEditing","editor"];gi=fi,mi=468,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x4")](){return[Vs.Input]}[hi("0x6")](){this[hi("0x3")][hi("0x1")][hi("0x0")](hi("0x2"))[hi("0x7")](hi("0x5"))}}const bi=["getAttribute","TrackChangesEditing","link","get","_descriptionFactory","isCollapsed","change","markInlineFormat","*Set link:* %0","registerDescriptionCallback","*Remove link*","format","editor","getFirstPosition","document","unlink","plugins","from","model","selection","enableCommand","getFirstRange","commandName","hasAttribute","linkHref","LinkEditing"];var Ei,_i;Ei=bi,_i=336,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this.editor;if(!t[Ti("0x12")].has(Ti("0x1")))return;const e=t[Ti("0x12")][Ti("0x5")](Ti("0x3"));e[Ti("0x16")](Ti("0x4"),((n,o)=>{const s=t[Ti("0x14")][Ti("0x10")][Ti("0x15")];let r=[];if(s[Ti("0x7")]){if(!s[Ti("0x19")](Ti("0x0")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xf")](),Ti("0x0"),s[Ti("0x2")]("linkHref"),t.model);r=[e]}}else r=Array[Ti("0x13")](s.getRanges());t.model[Ti("0x8")]((()=>{for(const t of r)e[Ti("0x9")](t,{commandName:"link",commandParams:[o]})}))})),e[Ti("0x16")](Ti("0x11"),(()=>{const n=this[Ti("0xe")][Ti("0x14")],o=n[Ti("0x10")][Ti("0x15")];n[Ti("0x8")]((()=>{let n=[];n=o[Ti("0x7")]?[(0,Vs.findAttributeRange)(o[Ti("0xf")](),Ti("0x0"),o[Ti("0x2")]("linkHref"),t[Ti("0x14")])]:ms("linkHref",o[Ti("0x17")](),t[Ti("0x14")]);for(const t of n)e[Ti("0x9")](t,{commandName:Ti("0x11"),commandParams:[]})}))})),e[Ti("0x6")][Ti("0xb")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x4")==n[Ti("0x18")]){const t=n.commandParams[0];return{type:Ti("0xd"),content:Yo(o,Ti("0xa"),'"'+t+'"')}}return Ti("0x11")==n[Ti("0x18")]?{type:"format",content:Yo(o,Ti("0xc"))}:void 0}}))}}const yi=["ELEMENT_TODO_LIST","enableCommand","execute","name","plugins","_selectedElements","bulleted","end","replace","todo","bulletedList","isObject","getSelectedBlocks","createRange","document","createPositionAt","registerElementLabel","_descriptionFactory","editor","add","length","*Indent:* %0","findIndex","ELEMENT_NUMBERED_LIST","element","change","paragraph","ELEMENT_LIST_ITEM","selection","commands","nextSibling","outdentList","before","format","previousSibling","getAttribute","ListEditing","listType","push","TodoListEditing","*Uncheck item*","filter","commandName","checkTodoList","slice","*Check item*","listItem","afterInit","blockName","get","listIndent","List","numberedList","model","commandParams","has","forceValue","from","todoListChecked","todoList","*Outdent:* %0","value","schema","locale"];var ki,Ai;ki=yi,Ai=406,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x19")](){const t=this[vi("0x3c")],e=t[vi("0x29")];if(!t[vi("0x2e")].has(vi("0xe")))return;const n=t[vi("0x2e")][vi("0x1b")]("TrackChangesEditing"),o=t[vi("0x2e")][vi("0x21")](vi("0x11"));function s(e){return()=>{const o=t[vi("0x1f")].document[vi("0x6")],s=t[vi("0x7")][vi("0x1b")](e);if(s[vi("0x27")])return void t[vi("0x2c")](vi("0x4"),{});const r=e[vi("0x16")](0,-4),i=function(t,e,n){let o=Array.from(t)[vi("0x13")]((t=>{return e=t,(o=n).checkChild(e.parent,vi("0x18"))&&!o[vi("0x35")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x2"),vi("0x18"))||t[vi("0xd")](vi("0xf"))!=e));const s=new Set;for(const t of o)t.is(vi("0x2"),vi("0x18"))?s.add(Si(t)):s[vi("0x3d")](t);return Array[vi("0x23")](s)}(o.getSelectedBlocks(),r,t.model[vi("0x28")]);t[vi("0x1f")][vi("0x3")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0x27")]}],formatGroupId:vi("0x1a")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x23")](t);const n=e[vi("0x0")]((t=>vi("0x18")!=t[vi("0x2d")]));return n>-1&&(e=e[vi("0x16")](0,n)),e}(t[vi("0x1f")][vi("0x38")][vi("0x6")][vi("0x36")]()),s=t[vi("0x1f")][vi("0x37")](t[vi("0x1f")].createPositionAt(o[0],vi("0xa")),t[vi("0x1f")][vi("0x39")](o[o[vi("0x3e")]-1],vi("0x31")));t[vi("0x1f")][vi("0x3")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[vi("0x8")];for(;t&&t[vi("0xd")](vi("0x1c"))>n[vi("0xd")](vi("0x1c"));)e.add(t),t=t[vi("0x8")]}return Array[vi("0x23")](e)}(o))}))}}n[vi("0x2b")](vi("0x1e"),s(vi("0x1e"))),n[vi("0x2b")](vi("0x34"),s("bulletedList")),o&&n[vi("0x2b")](vi("0x25"),s(vi("0x25"))),n.enableCommand("indentList",r("indentList")),n[vi("0x2b")](vi("0x9"),r(vi("0x9"))),o&&n[vi("0x2b")](vi("0x15"),(()=>{const e=t[vi("0x7")][vi("0x1b")](vi("0x15")),o=Array[vi("0x23")](e[vi("0x2f")]);o.filter((t=>t[vi("0xd")](vi("0x24"))!=e[vi("0x27")])),t[vi("0x1f")][vi("0x3")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[vi("0x27")]}]})}))})),n[vi("0x3b")][vi("0x3a")](vi("0x18"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x3b")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0x1e")==n[vi("0x14")]||vi("0x34")==n[vi("0x14")]||vi("0x25")==n.commandName)switch(n[vi("0x14")][vi("0x32")](vi("0x1d"),"")){case vi("0x30"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,vi("0x1")));case vi("0x33"):return o(Yo(e,vi("0x2a")))}if("indentList"==n[vi("0x14")])return{type:vi("0xb"),content:Yo(e,vi("0x3f"),Yo(e,vi("0x5")))};if(vi("0x9")==n[vi("0x14")])return{type:"format",content:Yo(e,vi("0x26"),Yo(e,vi("0x5")))};if(vi("0x15")==n.commandName)return n[vi("0x20")][0][vi("0x22")]?{type:vi("0xb"),content:Yo(e,vi("0x17"))}:{type:vi("0xb"),content:Yo(e,vi("0x12"))}}function o(t){return{type:"format",content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x1c"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0xc")].is(vi("0x2"),vi("0x18"));){const o=t[vi("0xc")].getAttribute("listIndent");if(o==e)n=t[vi("0xc")];else if(o<e)break;t=t[vi("0xc")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2"),"listItem")&&t[vi("0xd")]("listIndent")>0){let n=t.nextSibling;for(;n&&vi("0x18")==n[vi("0x2d")]&&n.getAttribute(vi("0x1c"))==t.getAttribute(vi("0x1c"));)e[vi("0x10")](n),n=n[vi("0x8")]}return e}const Li=["listReversed","list.properties","model","unshift","commandName","handleListStartCommand","filter","startIndex","listStyle","ListPropertiesEditing","afterInit","type","plugins","registerDescriptionCallback","ListUtils","push","*Change to:* %0","TrackChangesEditing","handleListStyleCommand","getAttribute","change","editor","_getSuggestionBlocks","config","map","length","markMultiRangeBlockFormat","get","commandParams","listStart","getFirstPosition","*Format:* set order to regular","selection","getSelectedBlocks","replace","createPositionAt","enableCommand","forward","listItem","_getSuggestionBlocksForListStyle","numbered","element","bind","has","getLastPosition","_descriptionFactory","toUpperCase","getSiblingNodes","document","styles","reversed","from","before","handleDescriptions","_getTranslationKeyForListStyle","createRange","listType","parent","format","backward","handleListReversedCommand","ELEMENT_"];var Ni,Mi;Ni=Li,Mi=298,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x16")](){if(!this[wi("0x21")][wi("0x18")][wi("0x37")](wi("0x15")))return;const t=this[wi("0x21")][wi("0x23")][wi("0x27")](wi("0xd")),e=this[wi("0x21")][wi("0x18")].get("TrackChangesEditing");t[wi("0x3d")]&&e[wi("0x30")](wi("0x14"),this[wi("0x1e")][wi("0x36")](this)),t[wi("0x0")]&&e[wi("0x30")](wi("0xc"),this[wi("0xa")][wi("0x36")](this)),t[wi("0x13")]&&e[wi("0x30")](wi("0x29"),this.handleListStartCommand[wi("0x36")](this)),e[wi("0x39")][wi("0x19")](this[wi("0x3")][wi("0x36")](this))}[wi("0x1e")](t,e={}){const n=this[wi("0x21")][wi("0x18")][wi("0x27")](wi("0x1d")),o=this._getSuggestionBlocksForListStyle();this[wi("0x21")][wi("0xe")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:wi("0x14"),commandParams:[{type:e[wi("0x17")]}],formatGroupId:wi("0x14")})}))}handleListReversedCommand(t,e={}){const n=this[wi("0x21")].plugins.get("TrackChangesEditing"),o=this[wi("0x22")]((t=>t.is(wi("0x35"),wi("0x32"))&&"numbered"===t[wi("0x1f")]("listType")));if(o[wi("0x25")]<1)return;const s=o[wi("0x24")]((t=>this[wi("0x21")][wi("0xe")][wi("0x5")](this[wi("0x21")][wi("0xe")][wi("0x2f")](t,wi("0x2")),this[wi("0x21")][wi("0xe")][wi("0x2f")](t,0))));this[wi("0x21")][wi("0xe")][wi("0x20")]((()=>{n[wi("0x26")](s,{commandName:wi("0xc"),commandParams:[{reversed:e[wi("0x0")]}],formatGroupId:wi("0xc")})}))}[wi("0x11")](t,e={}){const n=this.editor.plugins.get(wi("0x1d")),o=this[wi("0x22")]((t=>t.is(wi("0x35"),wi("0x32"))&&wi("0x34")===t[wi("0x1f")](wi("0x6"))));if(o[wi("0x25")]<1)return;const s=o[wi("0x24")]((t=>this[wi("0x21")][wi("0xe")].createRange(this[wi("0x21")].model[wi("0x2f")](t,"before"),this[wi("0x21")][wi("0xe")][wi("0x2f")](t,0))));this.editor[wi("0xe")][wi("0x20")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x29"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wi("0x3")](t){const e=this[wi("0x21")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x10")]){case"listStyle":o=wi("0x1c"),s={type:wi("0x8"),content:Yo(e,o,Yo(e,this[wi("0x4")](n.commandParams[0][wi("0x17")])))};break;case wi("0xc"):o=n[wi("0x28")][0][wi("0x0")]?"*Format:* set order to reversed":wi("0x2b"),s={type:wi("0x8"),content:Yo(e,o)};break;case wi("0x29"):o="*Format:* set start index to %0",s={type:wi("0x8"),content:Yo(e,o,n[wi("0x28")][0][wi("0x13")])}}return s}[wi("0x33")](){var t,e,n,o;const s=this.editor.plugins[wi("0x27")]("ListUtils");let r=Array[wi("0x1")](this.editor.model[wi("0x3c")][wi("0x2c")][wi("0x2d")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element","listItem"))&&r[wi("0xf")](...s[wi("0x3b")](this.editor[wi("0xe")][wi("0x3c")][wi("0x2c")].getFirstPosition(),"backward")),(null===(e=r[r[wi("0x25")]-1])||void 0===e?void 0:e.is(wi("0x35"),wi("0x32")))&&r[wi("0x1b")](...s[wi("0x3b")](this[wi("0x21")][wi("0xe")][wi("0x3c")][wi("0x2c")][wi("0x38")](),wi("0x31"))),r=[...new Set(r)],(null===(o=null===(n=this.editor.model[wi("0x3c")].selection[wi("0x2a")]())||void 0===n?void 0:n[wi("0x7")])||void 0===o?void 0:o.is(wi("0x35"),wi("0x32")))&&(r=r[wi("0x12")]((t=>t.is(wi("0x35"),wi("0x32"))))),r}[wi("0x22")](t){const e=this[wi("0x21")][wi("0x18")].get(wi("0x1a"));let n=Array.from(this[wi("0x21")][wi("0xe")][wi("0x3c")][wi("0x2c")][wi("0x2d")]()).filter(t)[wi("0x24")]((t=>{const n=this[wi("0x21")].model[wi("0x2f")](t,0);return[...e[wi("0x3b")](n,wi("0x9")),...e[wi("0x3b")](n,wi("0x31"))]})).flat();return n=[...new Set(n)],n}[wi("0x4")](t){return wi("0xb")+this[wi("0x21")][wi("0x18")].get(wi("0x1a")).getListTypeFromListStyleType(t).toUpperCase()+"_LIST_"+t[wi("0x3a")]()[wi("0x2e")](/-/g,"_")}}const Fi=["afterInit","data","enableCommand","elementToElement","plugins","stop","div","get","downcastDispatcher","showSuggestionHighlights","options","_descriptionFactory","attribute:url:media","conversion","ELEMENT_MEDIA","mediaEmbed","TrackChangesEditing","media","MediaEmbedEditing","has","dataDowncast","high"];var Pi,Di;Pi=Fi,Di=382,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xe")](){const t=this.editor;if(!t[Bi("0x12")][Bi("0xb")](Bi("0xa")))return;const e=t[Bi("0x12")][Bi("0x15")](Bi("0x8")),n=t.locale;e[Bi("0x10")](Bi("0x7")),e[Bi("0x3")].registerElementLabel(Bi("0x9"),(t=>Yo(n,Bi("0x6"),t))),t[Bi("0x5")].for(Bi("0xc"))[Bi("0x11")]({model:Bi("0x9"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x1")])return e.createEmptyElement(Bi("0x14"))},converterPriority:Bi("0xd")}),t[Bi("0xf")][Bi("0x0")].on(Bi("0x4"),((t,e,n)=>{n[Bi("0x2")][Bi("0x1")]&&t[Bi("0x13")]()}),{priority:Bi("0xd")})}}const Ui=["get","MentionEditing","afterInit","enableCommand","plugins","TrackChangesEditing","has","mention"];var Gi,Hi;Gi=Ui,Hi=388,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x6")](){const t=this.editor;t[zi("0x0")][zi("0x2")](zi("0x5"))&&t.plugins[zi("0x4")](zi("0x1"))[zi("0x7")](zi("0x3"))}}const Vi=["afterInit","has","registerElementLabel","_descriptionFactory","plugins","TrackChangesEditing","locale","ELEMENT_PAGE_BREAK","PageBreakEditing","editor"];var Ki,qi;Ki=Vi,qi=208,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x2")](){const t=this[Xi("0x1")];if(!t.plugins[Xi("0x3")](Xi("0x0")))return;t.plugins.get(Xi("0x7")).enableCommand("pageBreak");const e=t[Xi("0x6")].get(Xi("0x7")),n=t[Xi("0x8")];e[Xi("0x5")][Xi("0x4")]("pageBreak",(t=>Yo(n,Xi("0x9"),t)))}}const Ji=["insert","toViewPosition","ELEMENT_PARAGRAPH","*Change to:* %0","downcastDispatcher","activeMarkers","type","selection","Paragraph","paragraph","span","markerRange","highest","isObject","name","getItemLabel","$text","isTouching","afterInit","createUIElement","getFirstRange","locale","checkChild","schema","isBlock","insertParagraph","editor","markerName","*Insert:* %0","change","mapper","ck-suggestion-marker--active","model","has","start","ck-suggestion-marker-split","getSelectedBlocks","showSuggestionHighlights","blockName","addClass","writer","format","plugins","insertion","end","isLimit","editing","consumable","parent","bindElementToMarker","registerElementLabel","data","addMarker:suggestion:insertion","registerDescriptionCallback","nodeAfter","get","enableCommand","TrackChangesEditing"];var Qi,Zi;Qi=Ji,Zi=415,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x9")](){const t=this.editor;if(!t.plugins[Yi("0x18")](Yi("0x39")))return;const e=t[Yi("0xc")],n=t.plugins[Yi("0x2e")](Yi("0x30"));n._descriptionFactory[Yi("0x29")](Yi("0x0"),(t=>Yo(e,Yi("0x33"),t))),n[Yi("0x2f")](Yi("0x0"),((e,o={})=>{const s=t[Yi("0x17")].document,r=o[Yi("0x38")]||s[Yi("0x38")],i=Array.from(r[Yi("0x1b")]()).filter((t=>{return e=t,(n=this[Yi("0x11")][Yi("0x17")][Yi("0xe")]).checkChild(e[Yi("0x27")],Yi("0x0"))&&!n[Yi("0x4")](e)&&"paragraph"!=e[Yi("0x5")];var e,n}));t[Yi("0x17")][Yi("0x14")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x0"),commandParams:[],formatGroupId:Yi("0x1d")},fs(t))}))})),n._descriptionFactory[Yi("0x2c")]((t=>{const{data:n}=t;if(n&&Yi("0x0")==n.commandName)return{type:Yi("0x20"),content:Yo(e,Yi("0x34"),Yo(e,Yi("0x33")))}})),n[Yi("0x2f")](Yi("0x10")),t[Yi("0x25")][Yi("0x35")].on(Yi("0x2b"),ex(t),{priority:Yi("0x3")}),t[Yi("0x2a")][Yi("0x35")].on(Yi("0x2b"),((e,n,o)=>{o.options[Yi("0x1c")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x3")});const o=n._descriptionFactory;o[Yi("0x2c")]((n=>{if(Yi("0x22")!==n[Yi("0x37")])return;const{start:s,end:r}=n[Yi("0xb")]();if(!s[Yi("0x8")](r)||!s[Yi("0x2d")])return;const i=t[Yi("0x17")][Yi("0xe")],x=s.nodeAfter;return i.isBlock(x)&&!i[Yi("0x24")](x)&&i[Yi("0xd")](x,Yi("0x7"))?{type:Yi("0x22"),content:Yo(e,Yi("0x13"),o[Yi("0x6")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x21")][Yi("0x2e")](Yi("0x30")),i=o[Yi("0x2")][Yi("0x19")],x=o[Yi("0x2")][Yi("0x23")],a=t[Yi("0x17")][Yi("0xe")];if(!i.isTouching(x)||!i[Yi("0x2d")])return;const c=i.nodeAfter;if(a[Yi("0xf")](c)&&!a[Yi("0x24")](c)&&a.checkChild(c,Yi("0x7"))){if(!s[Yi("0x26")].consume(o.markerRange,n[Yi("0x5")]))return;const t=s[Yi("0x1f")][Yi("0xa")](Yi("0x1"),{class:Yi("0x1a")}),i=s.mapper[Yi("0x32")](x);e&&r[Yi("0x36")].includes(o[Yi("0x12")])&&s[Yi("0x1f")][Yi("0x1e")](Yi("0x16"),t),s[Yi("0x1f")][Yi("0x31")](i,t),s[Yi("0x15")][Yi("0x28")](t,o[Yi("0x12")])}}}const nx=["isFormatting","plugins","from","RemoveFormatEditing","get","getAttributes","afterInit","removeFormat","isCollapsed","*Remove all formatting*","document","_descriptionFactory","getItems","model","getAttributeProperties","commandName","has","getRanges","createRangeOn","editor","selection","change"];var ox,sx;ox=nx,sx=372,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x8")](){const t=this[rx("0x15")];if(!t.plugins[rx("0x12")](rx("0x5")))return;const e=t[rx("0x3")][rx("0x6")]("TrackChangesEditing");e.enableCommand("removeFormat",(n=>{const o=t.model[rx("0xc")][rx("0x0")];o[rx("0xa")]?n():t.model[rx("0x1")]((()=>{const n=Array[rx("0x4")](o[rx("0x13")]());for(const o of n)for(const n of o[rx("0xe")]())xx(n,t[rx("0xf")].schema)&&e.markInlineFormat(t[rx("0xf")][rx("0x14")](n),{commandName:rx("0x9"),commandParams:[]})}))})),e[rx("0xd")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0x9")==n[rx("0x11")])return{type:"format",content:Yo(t.locale,rx("0xb"))}}))}}function xx(t,e){for(const[n]of t[rx("0x7")]()){const t=e[rx("0x10")](n);if(t&&t[rx("0x2")])return!0}return!1}const ax=["TrackChangesEditing","enableCommand","RestrictedEditingModeEditing","afterInit","trackChanges","acceptSuggestion","acceptSelectedSuggestions","editor","get","goToNextRestrictedEditingException","discardSuggestion","has","plugins","discardSelectedSuggestions"];var cx,lx;cx=ax,lx=176,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x9")](){const t=this[ux("0xd")];if(!t[ux("0x4")][ux("0x3")](ux("0x8")))return;const e=t[ux("0x4")][ux("0x0")](ux("0x6"));e.enableCommand("goToPreviousRestrictedEditingException"),e[ux("0x7")](ux("0x1"));const n=t[ux("0x4")].get(ux("0x8"));n[ux("0x7")](ux("0xa")),n.enableCommand(ux("0xb")),n[ux("0x7")](ux("0x2")),n[ux("0x7")]("acceptAllSuggestions"),n[ux("0x7")]("discardAllSuggestions"),n.enableCommand(ux("0xc")),n[ux("0x7")](ux("0x5"))}}const gx=["plugins","addMarker:suggestion:deletion","addClass","addMarker:suggestion:insertion","ck-suggestion-marker--active","markerRange","showSuggestionHighlights","consumable","TrackChangesEditing","options","editing","enableCommand","ELEMENT_LINE_BREAK","writer","model","span","split","getItems","createUIElement","addMarker:suggestion","high","insert","merge","downcastDispatcher","requires","get","shiftEnter","activeMarkers","mapper","softBreak","ck-suggestion-marker-","init","registerElementLabel","test","markerName","name","element"];var mx,fx;mx=gx,fx=315,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("0x5")](){return[nr.ShiftEnter]}[hx("0xc")](){const t=this.editor,e=t[hx("0x12")][hx("0x6")](hx("0x1a"));e[hx("0x1d")](hx("0x7")),t[hx("0x1c")][hx("0x4")].on(hx("0x15"),bx(t),{priority:hx("0x1")}),t.editing[hx("0x4")].on(hx("0x13"),bx(t),{priority:hx("0x1")}),t.data.downcastDispatcher.on(hx("0x0"),((e,n,o)=>{o[hx("0x1b")][hx("0x18")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[hx("0xd")]("softBreak",(e=>Yo(t.locale,hx("0x1e"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x12")][hx("0x6")](hx("0x1a"));if(!s[hx("0x19")][hx("0xe")](o[hx("0x17")],n[hx("0x10")]))return;const i=t[hx("0x20")];for(const t of o[hx("0x17")][hx("0x23")]()){if(!t.is(hx("0x11"),hx("0xa")))continue;const n="deletion"==o[hx("0xf")][hx("0x22")](":")[1]?hx("0x3"):hx("0x22"),x=s[hx("0x1f")][hx("0x24")](hx("0x21"),{class:hx("0xb")+n}),a=s[hx("0x9")].toViewPosition(i.createPositionBefore(t));e&&r[hx("0x8")].includes(o[hx("0xf")])&&s[hx("0x1f")][hx("0x14")](hx("0x16"),x),s[hx("0x1f")][hx("0x2")](a,x),s[hx("0x9")].bindElementToMarker(x,o.markerName)}}}const Ex=["restrictedEditingException","getRanges","isCollapsed","forceValue","plugins","locale","_descriptionFactory","afterInit","get","FORMAT_RESTRICTED_DISABLED","markInlineFormat","commandParams","selection","FORMAT_RESTRICTED_ENABLED","change","editor","value","enableCommand","from","commandName","format"];var _x,Tx;_x=Ex,Tx=367,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x12")](){const t=this[Cx("0x5")],e=t.model,n=t[Cx("0x10")];if(!t[Cx("0xf")].has("StandardEditingModeEditing"))return;const o=t[Cx("0xf")][Cx("0x13")]("TrackChangesEditing"),s=Cx("0xb"),r=t.commands[Cx("0x13")](s);o[Cx("0x7")](s,((t,n={})=>{const i=e.document[Cx("0x2")];if(i[Cx("0xd")])return void t(n);const x=void 0!==n[Cx("0xe")]?n.forceValue:!r[Cx("0x6")];e[Cx("0x4")]((()=>{const t=Array[Cx("0x8")](i[Cx("0xc")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x0")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x11")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Cx("0x9")]==s)return e[Cx("0x1")][0][Cx("0xe")]?{type:Cx("0xa"),content:Yo(n,Cx("0x3"))}:{type:Cx("0xa"),content:Yo(n,Cx("0x14"))}}))}}const kx=["every","_getRangesWithClasses","config","registerDescriptionCallback","getAncestors","block","locale","has","_descriptionFactory","push","format","StyleUtils","styleName","plugins","editor","document","selection","commandName","style","modelElements","commandParams","add","DataSchema","model","from","createRangeOn","toLowerCase","name","style:","forceValue","get","change","getSelectedBlocks","isBlock","Style","*Remove format:* %0","getItems","commands","find","element","style.definitions","_getStyleDefinition","afterInit","value","includes","classes","enableCommand"];var Ax,vx;Ax=kx,vx=471,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x29")](){const t=this[Rx("0xd")];if(!t[Rx("0xc")][Rx("0x6")](Rx("0x21")))return;const e=t[Rx("0x24")].get("style"),n=t.plugins[Rx("0x1d")]("TrackChangesEditing"),o=t[Rx("0x5")],s=t[Rx("0xc")].get(Rx("0x15")),r=t[Rx("0xc")][Rx("0x1d")](Rx("0xa")).normalizeConfig(s,t[Rx("0x1")][Rx("0x1d")](Rx("0x27")));n[Rx("0x2d")](Rx("0x11"),((o,{styleName:i})=>{const x=t.model[Rx("0xe")][Rx("0xf")],a=this._getStyleDefinition(i,r);if(!a)return;if(!e.enabledStyles[Rx("0x2b")](i))return;if(x.isCollapsed&&!a[Rx("0x20")])return void o({styleName:i});const c=!e[Rx("0x2a")][Rx("0x2b")](a[Rx("0x1a")]);if(a[Rx("0x20")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x3")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x2b")](o[Rx("0x1a")])){n[Rx("0x14")](o);break}}return n}(x[Rx("0x1f")](),a[Rx("0x12")]);t[Rx("0x16")][Rx("0x1e")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x1b")+i})}))}else{let e=Array[Rx("0x17")](x.getRanges());if(!c){const n=Array.from(s.getDefinitionsForView(a[Rx("0x26")],!1))[0][Rx("0x16")],o=[];for(const s of e){const e=this[Rx("0x0")](t[Rx("0x16")],s,a.classes,n);o[Rx("0x8")](...e)}e=o}t[Rx("0x16")][Rx("0x1e")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x7")][Rx("0x2")]((t=>{const{data:e}=t;if(e&&Rx("0x11")===e[Rx("0x10")])return e[Rx("0x13")][0][Rx("0x1c")]?{type:Rx("0x9"),content:Yo(o,"*Format:* %0",e.commandParams[0][Rx("0xb")][Rx("0x19")]())}:{type:Rx("0x9"),content:Yo(o,Rx("0x22"),e[Rx("0x13")][0].styleName[Rx("0x19")]())}}))}[Rx("0x28")](t,e){let n=e[Rx("0x4")][Rx("0x25")]((e=>e[Rx("0x1a")]===t));return n||(n=e.inline.find((e=>e.name===t))),n}[Rx("0x0")](t,e,n,o){const s=[];for(const r of e[Rx("0x23")]()){const e=r.getAttribute(o);e&&n[Rx("0x2e")]((t=>e[Rx("0x2c")][Rx("0x2b")](t)))&&s.push(t[Rx("0x18")](r))}return s}}const Ix=["item","toLowerCase","removeTableColumn","order","every","minRow","markMultiRangeInsertion","insertTableColumnLeft","ELEMENT_TABLE","createTableWalker","setSelection","toViewElement","map","markMultiRangeDeletion","registerCustomCallback","element","locale","discard","refresh","some","ELEMENT_TABLE_COLUMN","MIN_SAFE_INTEGER","insertion","getSuggestion","low","getColumnIndexes","getFirstRange","type","isIntersectingWithRange","highest","filter","oldRange","subType","editor","nodeAfter","ELEMENT_TABLE_COLUMN_WITH_TEXT","change","fromRange","tableColumn","addRange","left","span","afterInit","_getCoordsForCells","change:data","findAncestor","getCellLocation","ELEMENT_TABLE_ROW","isInContent","enqueueChange","_suggestionFactory","_getSuggestionCoords","classes","document","plugins","deletion","cell","insertTableRowBelow","from","substr","first","getChangedMarkers","ELEMENT_TABLE_WITH_TEXT","_tablePostFixingSubtypes","$textProxy","TableUtils","mapper","commands","values","_splitMarkerName","*Insert:* %0","isEqual","_setupColumnsRowsFixing","selectTableColumn","writer","tableCell","_descriptionFactory","accept","insertTableRowAbove","*Remove:* %0","min","getItems","length","detach","removeClass","batch","add","_tableSuggestions","registerDescriptionCallback","TrackChangesEditing","downcastDispatcher","enableCommand","name","getAttribute","registerPostFixer","get","$graveyard","start","nodeBefore","getRanges","minColumn","above","createPositionAt","getRowIndexes","max","rowspan","_acceptFormatSuggestionCallbackFactory","last","join","createRangeOn","insert","execute","hasAttribute","getSelectionAffectedTableCells","includes","push","colspan","position","removeTableRow","showSuggestionHighlights","isTouching","ELEMENT_TABLE_ROW_WITH_TEXT","data","model","tableRow","table","MAX_SAFE_INTEGER","root","rootName","end"];var Lx,Nx;Lx=Ix,Nx=319,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=["tableRow",Mx("0x6d")],this[Mx("0x1c")]=new Set}[Mx("0x71")](){const t=this[Mx("0x68")],e=t[Mx("0x40")][Mx("0x7c")].selection;if(!t[Mx("0x7d")].has("TableEditing"))return;const n=t[Mx("0x57")],o=t.plugins[Mx("0x24")](Mx("0x1e")),s=t.plugins[Mx("0x24")](Mx("0x6"));o[Mx("0x11")].registerElementLabel("table",(t=>Yo(n,Mx("0x4f"),t))),this[Mx("0xd")](),o[Mx("0x20")]("insertTable"),o.enableCommand("selectTableRow"),o[Mx("0x20")](Mx("0xe"));for(const n of[Mx("0x13"),Mx("0x80")]){const r=t[Mx("0x8")].get(n);o[Mx("0x20")](n,(n=>{t[Mx("0x40")][Mx("0x6b")]((t=>{n();const i=Mx("0x2a")===r[Mx("0x4a")],x=s.getSelectionAffectedTableCells(e),a=s[Mx("0x2c")](x),c=i?a[Mx("0x1")]-1:a.last+1,l=x[0][Mx("0x74")](Mx("0x42")),u=s[Mx("0x50")](l,{startRow:c,endRow:c}),d=Array[Mx("0x81")](u)[Mx("0x53")]((e=>t.createRangeOn(e[Mx("0x7f")])));o[Mx("0x4d")](d,Mx("0x41"))}))}))}for(const n of[Mx("0x4e"),"insertTableColumnRight"]){const r=t[Mx("0x8")][Mx("0x24")](n);o[Mx("0x20")](n,(n=>{t.model[Mx("0x6b")]((t=>{n();const i=Mx("0x6f")===r[Mx("0x4a")],x=s[Mx("0x36")](e),a=s.getColumnIndexes(x),c=i?a.first-1:a[Mx("0x30")]+1,l=x[0].findAncestor("table"),u=s[Mx("0x50")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Mx("0x53")]((e=>t[Mx("0x32")](e[Mx("0x7f")])));o[Mx("0x4d")](d,Mx("0x6d"))}))}))}for(const n of[Mx("0x3b"),Mx("0x49")]){const r=n[Mx("0x0")](11),i=r[Mx("0x48")](),x=i[Mx("0x0")](0,3)+Mx("0x70"),a=Mx("0x42")+r,c=Mx("0x15")+r,l=Mx("0x2d")+r;o[Mx("0x20")](n,(()=>{t[Mx("0x40")][Mx("0x6b")]((t=>{const r=s[Mx("0x36")](e),u=r[0][Mx("0x74")](Mx("0x42"));let d;if(Mx("0x3b")==n){const t=s[Mx("0x2c")](r);d={startRow:t[Mx("0x1")],endRow:t[Mx("0x30")],includeAllSlots:!0}}else{const t=s[Mx("0x60")](r);d={startColumn:t.first,endColumn:t[Mx("0x30")],includeAllSlots:!0}}const g=s[Mx("0x50")](u,d),m=Array[Mx("0x81")](g)[Mx("0x53")]((({cell:t})=>t)),f=Ox(m[Mx("0x65")]((t=>t[Mx("0x35")](x)))),h=Ox(m[Mx("0x65")]((t=>!t[Mx("0x35")](x)))).map((e=>t[Mx("0x32")](e))),p=o[Mx("0x54")](h,a);if(p&&(Mx("0x41")==p[Mx("0x67")]||Mx("0x6d")==p.subType)){const e=this[Mx("0x7a")](p);for(const n of f){const o=t[Mx("0x32")](n),r=s[Mx("0x75")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Mx("0x6e")](o)}}}))}))}function r(n){const o=Array[Mx("0x81")](e[Mx("0x28")]())[Mx("0x53")]((t=>i.LiveRange.fromRange(t)));t[Mx("0x40")][Mx("0x6b")]((e=>{const s=e[Mx("0x1a")];n=n[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")].rootName)),e[Mx("0x51")](n),t[Mx("0x8")][Mx("0x24")](Mx("0x3b"))[Mx("0x59")](),t.execute(Mx("0x3b"),{forceDefaultExecution:!0}),t[Mx("0x40")][Mx("0x78")]((()=>{t.model[Mx("0x78")](s,(t=>{const e=o[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")][Mx("0x45")]));e.length>0&&t[Mx("0x51")](e);for(const t of o)t[Mx("0x18")]()}))}))}))}function a(n){t.model[Mx("0x6b")]((o=>{const s=Array[Mx("0x81")](e[Mx("0x28")]())[Mx("0x53")]((t=>i.LiveRange[Mx("0x6c")](t))),r=[];for(const t of n)for(const e of t[Mx("0x16")]({shallow:!0}))r.push(e);for(const e of r)Mx("0x25")!=e[Mx("0x44")][Mx("0x45")]&&(o[Mx("0x51")](o[Mx("0x2b")](e,0)),t.commands[Mx("0x24")](Mx("0x49"))[Mx("0x59")](),t[Mx("0x34")](Mx("0x49"),{forceDefaultExecution:!0}));const x=s[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")][Mx("0x45")]));x[Mx("0x17")]>0&&o.setSelection(x);for(const t of s)t[Mx("0x18")]()}))}function c(t,e){return e[Mx("0x4b")]((e=>t[Mx("0x5a")]((t=>t[Mx("0x46")][Mx("0xc")](e[Mx("0x26")])||e.end[Mx("0xc")](t[Mx("0x26")])))))}function l(t,e){return t[Mx("0x5a")]((t=>e.some((e=>t[Mx("0x46")][Mx("0x3d")](e[Mx("0x26")])))))}t[Mx("0x3f")][Mx("0x1f")].on("addMarker:suggestion",((t,e,n)=>{if(!n.options[Mx("0x3c")])return;const o=e[Mx("0x47")];if(!o)return;const s=n[Mx("0x7")][Mx("0x52")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Mx("0x10")===o[Mx("0x21")]&&(0,x.setHighlightHandling)(s,n[Mx("0xf")],((t,e,n)=>n.addClass(r(e[Mx("0x7b")]),t)),((t,e,n)=>n[Mx("0x19")](r(e[Mx("0x7b")]),t)))}),{priority:Mx("0x64")}),o[Mx("0x11")][Mx("0x1d")]((t=>{if("insertion"!=t[Mx("0x62")]&&Mx("0x7e")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(Mx("0x56"),"table")){if(Mx("0x5d")==t[Mx("0x62")]){const e=t[Mx("0x16")]()[Mx("0x65")]((t=>t.is(Mx("0x5"))))[Mx("0x53")]((t=>t.data));if(e[Mx("0x17")])return{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x3"),'"'+e.join(" ")+'"'))}}if(Mx("0x7e")==t[Mx("0x62")]){const e=t[Mx("0x16")]()[Mx("0x65")]((t=>t.is(Mx("0x5"))))[Mx("0x53")]((t=>t[Mx("0x3f")]));if(e[Mx("0x17")])return{type:"deletion",content:Yo(n,Mx("0x14"),Yo(n,Mx("0x3"),'"'+e.join(" ")+'"'))}}}})),o[Mx("0x11")].registerDescriptionCallback((t=>{if(Mx("0x41")==t[Mx("0x67")]){const e=t.getItems().filter((t=>t.is("$textProxy"))).map((t=>t[Mx("0x3f")])),o=this[Mx("0x7a")](t),s=o.maxRow-o[Mx("0x4c")]+1;if("insertion"==t[Mx("0x62")])return e.length?{type:"insertion",content:Yo(n,Mx("0xb"),Yo(n,Mx("0x3e"),[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x76"),s))};if(Mx("0x7e")==t[Mx("0x62")])return e[Mx("0x17")]?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x3e"),[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x7e"),content:Yo(n,Mx("0x14"),Yo(n,Mx("0x76"),s))}}if("tableColumn"==t[Mx("0x67")]){const e=t[Mx("0x16")]()[Mx("0x65")]((t=>t.is(Mx("0x5"))))[Mx("0x53")]((t=>t.data)),o=this[Mx("0x7a")](t),s=o.maxColumn-o[Mx("0x29")]+1;if(Mx("0x5d")==t[Mx("0x62")])return e[Mx("0x17")]?{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x6a"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x5d"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x5b"),s))};if(Mx("0x7e")==t[Mx("0x62")])return e[Mx("0x17")]?{type:Mx("0x7e"),content:Yo(n,Mx("0x14"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x7e"),content:Yo(n,Mx("0x14"),Yo(n,Mx("0x5b"),s))}}})),o[Mx("0x79")][Mx("0x55")](Mx("0x5d"),Mx("0x41"),Mx("0x58"),r),o._suggestionFactory.registerCustomCallback(Mx("0x7e"),Mx("0x41"),Mx("0x12"),r),o[Mx("0x79")][Mx("0x55")]("insertion","tableColumn",Mx("0x58"),a),o[Mx("0x79")][Mx("0x55")](Mx("0x7e"),"tableColumn","accept",a),o[Mx("0x79")][Mx("0x55")](Mx("0x5d"),"tableColumn",Mx("0x31"),c),o[Mx("0x79")].registerCustomCallback(Mx("0x7e"),"tableColumn",Mx("0x31"),c),o._suggestionFactory[Mx("0x55")]("insertion",Mx("0x41"),Mx("0x31"),l),o[Mx("0x79")][Mx("0x55")](Mx("0x7e"),Mx("0x41"),Mx("0x31"),l)}[Mx("0x2f")](){const t=this[Mx("0x68")],e=t.model[Mx("0x7c")].selection;return(n,o)=>{t[Mx("0x40")][Mx("0x6b")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Mx("0x27")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start.nodeAfter);const c=s.createRangeIn(a);if(Mx("0x25")==c.root[Mx("0x45")])return;const l=Array[Mx("0x81")](e[Mx("0x28")]()).map((t=>i.LiveRange.fromRange(t)));s[Mx("0x51")](c),t[Mx("0x8")][Mx("0x24")](r)[Mx("0x59")](),x[Mx("0x38")]({forceDefaultExecution:!0}),t.execute(r,...x);const u=l[Mx("0x65")]((t=>Mx("0x25")!=t[Mx("0x44")][Mx("0x45")]));u[Mx("0x17")]>0&&s[Mx("0x51")](u);for(const t of l)t[Mx("0x18")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x68")][Mx("0x7d")][Mx("0x24")](Mx("0x6"));let n=Number[Mx("0x43")],o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x43")],r=Number[Mx("0x5c")];for(const i of t){if(Mx("0x25")==i[Mx("0x44")].rootName)continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x35")](Mx("0x2e"))?i.getAttribute(Mx("0x2e"))-1:0,c=i[Mx("0x35")](Mx("0x39"))?i[Mx("0x22")](Mx("0x39"))-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[Mx("0x68")],e=t.plugins[Mx("0x24")](Mx("0x1e")),n=t[Mx("0x7d")].get(Mx("0x6"));t[Mx("0x40")][Mx("0x7c")].on(Mx("0x73"),(()=>{const n=Array[Mx("0x81")](t[Mx("0x40")][Mx("0x7c")].differ[Mx("0x2")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0xa")](t);if("suggestion"!=n)continue;if(null!=o[Mx("0x66")])continue;const i=e[Mx("0x5e")](s);this[Mx("0x4")][Mx("0x37")](r)&&this[Mx("0x1c")][Mx("0x1b")](i)}}),{priority:Mx("0x5f")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x32")](t),r=t[Mx("0x74")]("table"),i=n[Mx("0x75")](t);for(const e of this[Mx("0x1c")]){const n=e[Mx("0x67")],x=n.startsWith("tablePaste"),a=n[Mx("0x0")](x?10:5),c=a.toLowerCase(),l=c[Mx("0x0")](0,3)+Mx("0x70"),u="min"+a,d=Mx("0x2d")+a;if(!e[Mx("0x77")])continue;if(r!=e[Mx("0x61")]()[Mx("0x26")][Mx("0x74")](Mx("0x42")))continue;if(e[Mx("0x63")](s))continue;const g=t.hasAttribute(l)?t.getAttribute(l)-1:0,m=this[Mx("0x7a")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x6e")](s),o=!0)}return o};t[Mx("0x40")][Mx("0x7c")][Mx("0x23")]((e=>{let n=!1;for(const s of t[Mx("0x40")].document.differ.getChanges())if(Mx("0x33")==s[Mx("0x62")])if("tableRow"==s[Mx("0x21")])for(const t of s[Mx("0x3a")].nodeAfter.getChildren())n=n||o(t,e);else Mx("0x10")==s[Mx("0x21")]&&(n=n||o(s.position[Mx("0x69")],e));return n}))}[Mx("0x7a")](t){return this[Mx("0x72")](t[Mx("0x28")]()[Mx("0x53")]((t=>t.start[Mx("0x69")])))}}function Ox(t){return Array[Mx("0x81")](new Set(t)[Mx("0x9")]())}const Fx=["highest","tableCell","execute","enableCommand","fromRange","cell","registerDescriptionCallback","getSelectionAffectedTableCells","horizontally","commands","TableUtils","mergeTableCellUp","find","TrackChangesEditing","getRanges","mergeTableCellLeft","setSelection","trackChanges","size","createTableWalker","stop","from","isEnabled","requires","locale","registerCustomCallback","markBlockFormat","markMultiRangeBlockFormat","_areMergableCells","editor","*Merge cells*","element","return","containsRange","author","map","add","_areSelectedCellsMergable","selection","low","getFirstPosition","change","push","filter","findAncestor","*Split cell:* vertically","rootName","createRangeOn","accept","_acceptFormatSuggestionCallbackFactory","has","length","direction","mergeTableCellDown","splitTableCellHorizontally","plugins","get","root","model","afterInit","getAncestors","formatBlock","type","detach","value","format","commandName","_suggestionFactory","_tablePostFixingSubtypes","subType","document","set:isEnabled","refresh","mergeTableCells","mergeTableCellRight","isInContent","insertion","table","splitTableCellVertically"];var Px,Dx;Px=Fx,Dx=424,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("0x49")](){return[wx]}[Bx("0x1e")](){const t=this[Bx("0x0")],e=t[Bx("0x1d")][Bx("0x29")].selection,n=t[Bx("0x4a")];if(!t[Bx("0x1a")][Bx("0x15")]("TableEditing"))return;const o=t[Bx("0x1a")][Bx("0x1b")](Bx("0x3f")),s=t[Bx("0x1a")].get(Bx("0x3c")),r=t[Bx("0x1a")][Bx("0x1b")](wx);r[Bx("0x27")][Bx("0xd")](Bx("0x2c")),o.enableCommand("mergeTableCells",(()=>{const e=s[Bx("0x39")](t[Bx("0x1d")][Bx("0x29")][Bx("0x9")]);t.model[Bx("0xc")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:Bx("0x2c"),commandParams:[]},[],Bx("0x2c"))}))})),t[Bx("0x3b")][Bx("0x1b")]("mergeTableCells").on(Bx("0x34"),((e,n)=>{t.commands[Bx("0x1b")](Bx("0x43")).value&&(n.length>0&&n[n[Bx("0x16")]-1]&&n[n.length-1].forceDefaultExecution||o._isForcedDefaultExecutionBlock||this[Bx("0x8")]()||e[Bx("0x46")]())}),{priority:Bx("0x32")});for(const e of[Bx("0x3d"),Bx("0x2d"),Bx("0x18"),Bx("0x41")]){const n=t.commands[Bx("0x1b")](e);o[Bx("0x35")](e,(()=>{const e=t[Bx("0x1d")][Bx("0x29")][Bx("0x9")][Bx("0xb")]().getAncestors().find((t=>t.is(Bx("0x2"),Bx("0x33")))),s=n[Bx("0x23")];t[Bx("0x1d")][Bx("0xc")]((()=>{o[Bx("0x4d")]([e,s],{commandName:Bx("0x2c"),commandParams:[]},[],Bx("0x2c"))}))}))}for(const e of["splitTableCellVertically",Bx("0x19")]){const n=t[Bx("0x3b")][Bx("0x1b")](e);o.enableCommand(e,(()=>{const r=s.getSelectionAffectedTableCells(t[Bx("0x1d")][Bx("0x29")].selection)[0],i=r[Bx("0xf")](Bx("0x30")),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Bx("0x3a")==n[Bx("0x17")]){const t=s[Bx("0x45")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x6")]((t=>t[Bx("0x37")]))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0x47")](t)[Bx("0x6")]((t=>t[Bx("0x37")]))}t[Bx("0x1d")][Bx("0xc")]((t=>{o[Bx("0x4c")](t[Bx("0x12")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Bx("0x38")]((t=>{const{data:e}=t;if(e)return Bx("0x2c")==e[Bx("0x25")]?{type:Bx("0x24"),content:Yo(n,Bx("0x1"))}:void 0})),o._descriptionFactory[Bx("0x38")]((t=>{const{data:e}=t;if(e)return Bx("0x31")==e[Bx("0x25")]?{type:"format",content:Yo(n,Bx("0x10"))}:Bx("0x19")==e[Bx("0x25")]?{type:Bx("0x24"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x14")]();for(const t of[Bx("0x3d"),Bx("0x2d"),"mergeTableCellDown","mergeTableCellLeft"])o[Bx("0x26")][Bx("0x4b")](Bx("0x20"),t,Bx("0x13"),x);for(const t of[Bx("0x31"),"splitTableCellHorizontally"])o[Bx("0x26")][Bx("0x4b")](Bx("0x20"),t,Bx("0x13"),x);o._suggestionFactory[Bx("0x4b")](Bx("0x20"),Bx("0x2c"),Bx("0x13"),(n=>{t[Bx("0x1d")][Bx("0xc")]((o=>{const s=Array.from(e[Bx("0x40")]()).map((t=>i.LiveRange[Bx("0x36")](t)));o.setSelection(n),t.commands[Bx("0x1b")](Bx("0x2c"))[Bx("0x2b")](),t[Bx("0x34")](Bx("0x2c"),{forceDefaultExecution:!0});const r=s[Bx("0xe")]((t=>"$graveyard"!=t[Bx("0x1c")][Bx("0x11")]));r[Bx("0x16")]>0&&o[Bx("0x42")](r);for(const t of s)t[Bx("0x22")]()}))}));for(const e of[Bx("0x3d"),Bx("0x18"),Bx("0x41"),Bx("0x2d")]){const n=t.commands[Bx("0x1b")](e);n.on(Bx("0x2a"),((e,o,s)=>{if(s){const o=t[Bx("0x1d")][Bx("0x29")][Bx("0x9")][Bx("0xb")]()[Bx("0x1f")]()[Bx("0x3e")]((t=>t.is("element",Bx("0x33"))));this._areMergableCells(n[Bx("0x23")],o)||(e[Bx("0x3")]=!1,e[Bx("0x46")]())}}),{priority:Bx("0xa")})}}[Bx("0x8")](){const t=this[Bx("0x0")][Bx("0x3b")][Bx("0x1b")](Bx("0x2c")),e=this[Bx("0x0")][Bx("0x1a")][Bx("0x1b")](Bx("0x3c"));if(!t[Bx("0x48")])return!1;const n=e[Bx("0x39")](this.editor.model[Bx("0x29")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x4e")](t,e))return!1;return!0}[Bx("0x4e")](t,e){const n=this[Bx("0x0")][Bx("0x1a")].get("TrackChangesEditing"),o=this[Bx("0x0")][Bx("0x1d")][Bx("0x12")](t),s=this[Bx("0x0")].model[Bx("0x12")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if((Bx("0x2f")==t[Bx("0x21")]||"deletion"==t[Bx("0x21")]||"mergeTableCells"==t[Bx("0x28")])&&t[Bx("0x2e")])for(const e of t[Bx("0x40")]())e[Bx("0x4")](o,!0)&&r[Bx("0x7")](t[Bx("0x21")]+":"+t[Bx("0x5")].id),e[Bx("0x4")](s,!0)&&i.add(t.type+":"+t[Bx("0x5")].id);if(r[Bx("0x44")]!=i[Bx("0x44")])return!1;for(const t of r)if(!i[Bx("0x15")](t))return!1;return!0}}const Ux=["nodeBefore","FORMAT_HEADER_ROW","table","_suggestionFactory","createRange","model","stop","FORMAT_REGULAR_ROW","highest","getColumnIndexes","_descriptionFactory","index","document","createPositionBefore","removeClass","markerNameToElements","enableCommand","setAttribute","activeMarkers","_splitMarkerName","setTableRowHeader","registerCustomCallback","data-suggestion","TableUtils","removeMarker:suggestion","getRowIndexes","getAttribute","name","findAncestor","from","parent","markerRange","getChild","editing","formatBlock","ck-suggestion-marker--active","item","cell","TrackChangesEditing","isBefore","headingRows","showSuggestionHighlights","plugins","nodeAfter","data","forceValue","consumable","createPositionAfter","downcastDispatcher","removeAttribute","markBlockFormat","markerName","commands","headingColumns","consume","locale","mapper","setTableColumnHeader","ck-suggestion-marker-","selection","get","editor","commandName","change","afterInit","childCount","end","first","getSuggestion","getCellLocation","addMarker:suggestion","FORMAT_HEADER_COLUMN","getSelectionAffectedTableCells","commandParams","TableEditing","createTableWalker","last","writer","requires","start","value","accept","addClass","*Format:* %0","bindElementToMarker","has"];var Gx,Hx;Gx=Ux,Hx=399,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("0x17")](){return[wx]}[zx("0x9")](){const t=this[zx("0x6")];if(!t.plugins[zx("0x1e")](zx("0x13")))return;const e=t[zx("0x0")],n=t[zx("0x49")].get(zx("0x45")),o=t[zx("0x49")][zx("0x5")]("TableUtils"),s=t[zx("0x49")].get(wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x32")](r[zx("0x52")]),c=n[zx("0xd")](a);if(!c.data||zx("0x2")!=c[zx("0x4b")][zx("0x7")])return;if(r[zx("0x43")])return void s[zx("0x25")]();if(!i[zx("0x4d")][zx("0x55")](r[zx("0x3e")],s[zx("0x3a")]))return;const l=r[zx("0x3e")][zx("0x18")][zx("0x4a")],u=r[zx("0x3e")][zx("0xb")][zx("0x1f")],d=l.parent[zx("0x3d")],{column:g}=o[zx("0xe")](l),{column:m}=o[zx("0xe")](u);for(let s=g;s<=m;s++){const c=o[zx("0x14")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x44")],c=i[zx("0x1")].toViewElement(s);i[zx("0x16")][zx("0x1b")](zx("0x3")+x,c),e&&i[zx("0x16")][zx("0x30")](zx("0x35"),a,c),i[zx("0x1")][zx("0x1d")](c,r[zx("0x52")]),t&&(n[zx("0x31")].includes(r[zx("0x52")])?i[zx("0x16")][zx("0x1b")]("ck-suggestion-marker--active",c):i.writer[zx("0x2d")](zx("0x42"),c))}}}}n.enableCommand(zx("0x33"),((e,s)=>{const r=o[zx("0x11")](t[zx("0x24")][zx("0x2b")][zx("0x4")]),i=o[zx("0x38")](r),x=r[0][zx("0x3b")](zx("0x21")),a=x[zx("0x39")](zx("0x47"))||0,c=s&&null!==s.forceValue?s[zx("0x4c")]:!t[zx("0x53")].get(zx("0x33")).value,l=c?i[zx("0x15")]:i.first,u=x.getChild(l);let d;if(c){const e=x[zx("0x3f")](a);if(u[zx("0x2a")]<e.index)return;d=t.model[zx("0x23")](t[zx("0x24")][zx("0x2c")](e[zx("0x3f")](0)),t[zx("0x24")].createPositionAfter(u[zx("0x3f")](u[zx("0xa")]-1)))}else{const e=x[zx("0x3f")](a-1);if(!e)return;d=t[zx("0x24")][zx("0x23")](t[zx("0x24")][zx("0x2c")](u[zx("0x3f")](0)),t[zx("0x24")][zx("0x4e")](e[zx("0x3f")](e[zx("0xa")]-1)))}t.model[zx("0x8")]((()=>{n[zx("0x51")](d,{commandName:zx("0x33"),commandParams:[{forceValue:c}]},[],zx("0x33"))}))})),n[zx("0x2f")](zx("0x2"),((e,o)=>{const s=t.plugins[zx("0x5")](zx("0x36")),r=s[zx("0x11")](t[zx("0x24")].document[zx("0x4")]),i=s[zx("0x28")](r),x=r[0][zx("0x3b")](zx("0x21")),a=x[zx("0x39")](zx("0x54"))||0,c=o&&null!==o[zx("0x4c")]?o[zx("0x4c")]:!t[zx("0x53")][zx("0x5")](zx("0x2"))[zx("0x19")];let l;const u=x[zx("0x3f")](0),d=c?i[zx("0x15")]:i[zx("0xc")],g=s[zx("0x14")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x3c")](g)[0][zx("0x44")];if(c){const e=u[zx("0x3f")](a);if(m[zx("0x46")](e))return;l=t[zx("0x24")][zx("0x23")](t.model[zx("0x2c")](e),t[zx("0x24")].createPositionAfter(m))}else{const e=u[zx("0x3f")](a-1);if(!e)return;l=t[zx("0x24")][zx("0x23")](t[zx("0x24")][zx("0x2c")](m),t[zx("0x24")].createPositionAfter(e))}t[zx("0x24")][zx("0x8")]((()=>{n.markBlockFormat(l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],zx("0x2"))}))})),t[zx("0x40")][zx("0x4f")].on(zx("0xf"),r(),{priority:"highest"}),t.data[zx("0x4f")].on("addMarker:suggestion",((t,e,n)=>{n.options[zx("0x48")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x27")}),t[zx("0x40")][zx("0x4f")].on(zx("0x37"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x32")](e.markerName),i=n.getSuggestion(r);if(!i[zx("0x4b")]||zx("0x2")!=i.data[zx("0x7")])return;const x=o[zx("0x1")][zx("0x2e")](e.markerName);if(x)for(const t of x)o.writer[zx("0x2d")](zx("0x3")+s,t),o[zx("0x16")].removeClass(zx("0x42"),t),o[zx("0x16")][zx("0x50")](zx("0x35"),t),o.mapper.unbindElementFromMarkerName(t,e.markerName)}),{priority:"highest"}),n[zx("0x29")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x33")==n[zx("0x7")]){const t=n[zx("0x12")][0].forceValue;return o(Yo(e,zx(t?"0x20":"0x26")))}if(zx("0x2")==n[zx("0x7")]){const t=n.commandParams[0].forceValue;return o(Yo(e,t?zx("0x10"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:"format",content:Yo(e,zx("0x1c"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[zx("0x22")][zx("0x34")](zx("0x41"),"setTableRowHeader",zx("0x1a"),i),n[zx("0x22")][zx("0x34")](zx("0x41"),"setTableColumnHeader",zx("0x1a"),i)}}const Vx=["ck-suggestion-marker--active","_suggestionFactory","clipboardOutput","ck-suggestion-marker-insertion","author","removeColumns","push","tableCellHorizontalAlignment","schema","tableCellBackgroundColor","registerPostFixer","registerDescriptionCallback","hasSuggestion","deletionRanges","tableCellPadding","insertion","tableCellBorderWidth","tablePasteChainId","getContainedElement","table","_descriptionFactory","fill","newRange","_isForcedDefaultExecutionBlock","filter","_splitMarkerName","wrap","suggestion:formatBlock:tablePasteCell","stop","start","dataDowncast","markMultiRangeDeletion","tableCellBorderStyle","suggestionUnloaded","cell","TableClipboard","from","previousSibling","createTableWalker","columns","registerCustomCallback","getSuggestions","deletion","for","commands","paragraph","getAttributes","selection","getSelectionAffectedTableCells","afterInit","getRange","Users","fromEntries","suggestion-td","has","content","join","column","row","keys","reduce","rows","documentSelection","get","getChanges","tableCell","insert","set","getSuggestion","rowInsertionIndexes","map","next","markMultiRangeBlockFormat","activeMarkers","getAllAdjacentSuggestions","_replaceTableSlotCell","cells","end","_getCoordsForCells","showSuggestionHighlights","document","length","*Replace table cells*","createElement","listenTo","updateMarker","rowInsertionRanges","markerName","markerToHighlight","name","register","startsWith","createPositionBefore","accept","tablePasteRow","getColumns","remove","move","editingDowncast","last","isEmpty","getMarkers","getColumnIndexes","ck-suggestion-marker","tableCellSuggestion","some","conversion","getChildren","getRanges","type","markMultiRangeInsertion","insertRows","formatBlock","createRange","findAncestor","value","removeRows","differ","markers","plugins","columnInsertionIndexes","nextSibling","discard","getShiftedBy","requires","removeMarker","batch","element","getItems","model","insertionRanges","getChild","TrackChangesEditing","includes","attributes","isInContent","tablePaste","redo","entries","oldRange","getSuggestionCallback","_tablePostFixingSubtypes","isEqual","nodeAfter","insertContent","getRowIndexes","high","createRangeOn","markerAttributes","add","getChangedMarkers","editor","return","forceDefaultExecution","insertColumns","view","_createdBatches","options","position","tablePasteColumn","root","change","previous","createRangeIn","suggestionLoaded","subType","tablePasteCell"];var Kx,qx;Kx=Vx,qx=476,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x29"),"tableCellBorderColor",Xx("0x39"),Xx("0x20"),"tableCellVerticalAlignment",Xx("0x22"),Xx("0x27")],Jx=Object[Xx("0x4d")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x95")](){return[wx]}[Xx("0x4a")](){const t=this[Xx("0x9")];if(!t[Xx("0x90")][Xx("0x4f")](Xx("0x3c")))return;const n=t[Xx("0x90")][Xx("0x58")](Xx("0x9d")),o=t[Xx("0x90")].get("TableUtils"),s=t[Xx("0x90")][Xx("0x58")](wx),r=t[Xx("0x90")][Xx("0x58")]("TableClipboard");s[Xx("0xa6")][Xx("0x1f")](Xx("0x77"),Xx("0x11")),t[Xx("0x9a")][Xx("0x21")][Xx("0x73")](Xx("0x81"),{allowIn:Xx("0x5a"),allowContentOf:Xx("0x5a"),isLimit:!0}),t[Xx("0x83")].elementToElement({model:Xx("0x81"),view:Xx("0x4e")});let i=null;t[Xx("0x9a")].on(Xx("0x2"),((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Xx("0xb")]||n[Xx("0x30")]||this.editor[Xx("0x45")].get("trackChanges")[Xx("0x8c")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x57")))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x49")](n[Xx("0x69")][Xx("0x48")]);if(!i[Xx("0x6a")])return!1;const x=i[0][Xx("0x8b")](Xx("0x2c")),a=o[Xx("0x3")](i),c=o[Xx("0x7f")](i),l={startRow:a.first,endRow:a[Xx("0x7c")],startColumn:c.first,endColumn:c[Xx("0x7c")]};return 1==i[Xx("0x6a")]&&(l.endRow+=o.getRows(r)-1,l.endColumn+=o[Xx("0x78")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x9a")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x9a")].change((()=>{t[Xx("0x9a")][Xx("0x2")](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[Xx("0x87")](s,"tablePasteRow",{tablePasteChainId:o}),r[Xx("0x6a")]&&n.markMultiRangeInsertion(r,Xx("0x11"),{tablePasteChainId:o}),a[Xx("0x6a")]&&n[Xx("0x87")](a,Xx("0xa1"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x38")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xx("0x61")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u[Xx("0x7e")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Xx("0x5")](o),i=e.find((t=>t[Xx("0x4b")]().isEqual(r)));i&&n.push([i[Xx("0x72")],s])}n.length&&u.setAttribute("markerAttributes",Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x4")]+10}),t[Xx("0x90")][Xx("0x58")](Xx("0x3c")).on(Xx("0x64"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x35")]();const r=n[Xx("0x3b")],x=o,a=Zx(r),c=Zx(x);t[Xx("0xa")]=r;let l=null,u=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x9c")](0));for(const t of Array[Xx("0x3d")](x[Xx("0x84")]()))s[Xx("0x5b")](t,r,Xx("0x66"));const t=i[Xx("0x5e")][Xx("0x9e")](n[Xx("0x53")]),e=i.columnInsertionIndexes[Xx("0x9e")](n[Xx("0x52")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(u=s.createRangeIn(r));else{const t=s[Xx("0x6c")](Xx("0x81")),e=s[Xx("0x6c")]("tableCellSuggestion");s[Xx("0x33")](s[Xx("0x15")](r),e),s[Xx("0x5b")](t,r,0);for(const e of Array.from(x[Xx("0x84")]()))s[Xx("0x5b")](e,t,Xx("0x66"));l=s[Xx("0x5")](t),u=s[Xx("0x5")](e)}const d=Array[Xx("0x3d")](x[Xx("0x47")]())[Xx("0x31")]((([t])=>$x[Xx("0x9e")](t)));i[Xx("0x65")][Xx("0x1f")]({element:r,attributes:d.length?Object.fromEntries(d):null}),l&&i[Xx("0x9b")][Xx("0x1f")](l),u&&i[Xx("0x26")][Xx("0x1f")](u)}),{priority:Xx("0x4")}),o.on(Xx("0xc"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x40")]||1;i[Xx("0x91")]=new Array(a)[Xx("0x2e")](x)[Xx("0x5f")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x3f")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t[Xx("0x9a")][Xx("0x5")](e))}),{priority:"low"}),o.on(Xx("0x88"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x56")]||1;i[Xx("0x5e")]=new Array(a)[Xx("0x2e")](x)[Xx("0x5f")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x3f")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x6f")].push(t[Xx("0x9a")][Xx("0x5")](e))}),{priority:"low"}),n[Xx("0x2d")][Xx("0x24")]((e=>{if(e[Xx("0x17")]&&e.subType[Xx("0x74")](Xx("0xa1")))return e[Xx("0x14")]?{}:{type:"insertion",content:Yo(t.locale,Xx("0x6b"))}}));const x=()=>{};for(const t of[Xx("0xa1"),Xx("0x11"),Xx("0x77"),"tablePasteCell"])n[Xx("0x1a")][Xx("0x41")](Xx("0x28"),t,Xx("0x51"),x),n[Xx("0x1a")].registerCustomCallback(Xx("0x43"),t,"join",x);n[Xx("0x1a")][Xx("0x41")](Xx("0x89"),Xx("0x18"),Xx("0x93"),x),n[Xx("0x1a")][Xx("0x41")](Xx("0x89"),Xx("0x18"),"accept",((e,n,o)=>{const s=e[Xx("0x5f")]((t=>t[Xx("0x2b")]()))[Xx("0x31")]((t=>t)),r=new Map(s[Xx("0x5f")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x65")])e&&r[Xx("0x5c")](t,e);else if(o&&o[Xx("0x6")])for(const[e,n]of Object[Xx("0xa3")](o[Xx("0x6")])){const o=t[Xx("0x9a")][Xx("0x8f")][Xx("0x58")](e),s=o?o.getRange().getContainedElement():null;s&&r[Xx("0x5c")](s,n)}t[Xx("0x9a")][Xx("0x13")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Xx("0x41")](e,Xx("0xa1"),o,((s,r,i)=>{t[Xx("0x9a")][Xx("0x13")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x36")][Xx("0x1")];e.is(Xx("0x98"),Xx("0x81"))&&x.push(e)}n[Xx("0x1a")][Xx("0xa5")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[Xx("0x12")].rootName&&t.unwrap(e)}))}))};a("insertion","accept"),a(Xx("0x28"),Xx("0x93")),a(Xx("0x43"),Xx("0x76")),a(Xx("0x43"),Xx("0x93")),n[Xx("0x1a")][Xx("0x41")]("insertion",Xx("0x77"),Xx("0x93"),(t=>{const e=t[Xx("0x5f")]((t=>t[Xx("0x2b")]())),n=e[0][Xx("0x8b")](Xx("0x2c")),{minRow:r,maxRow:i}=s[Xx("0x67")](e);o[Xx("0x8d")](n,{at:r,rows:i-r+1})})),n[Xx("0x1a")][Xx("0x41")](Xx("0x28"),Xx("0x11"),Xx("0x93"),(t=>{const e=t[Xx("0x5f")]((t=>t[Xx("0x2b")]())),n=e[0].findAncestor("table"),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[Xx("0x1e")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x17")]||!e[Xx("0x17")].startsWith(Xx("0xa1")))return;const o=e[Xx("0x9f")][Xx("0x2a")],s=n[Xx("0x42")]()[Xx("0x31")]((t=>t[Xx("0xa0")]&&t[Xx("0x9f")]&&t.attributes.tablePasteChainId==o));s[Xx("0x6a")]&&e[Xx("0x63")]().length!=s.length&&s[Xx("0x55")](((t,e)=>(t[Xx("0x60")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x32")](t[Xx("0x70")]),s=[Xx("0x80"),Xx("0x1c")],r=n[Xx("0x62")][Xx("0x9e")](t.markerName);return r&&s[Xx("0x1f")](Xx("0x19")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x16"),c,{priority:Xx("0x4")}),n.on(Xx("0x3a"),c,{priority:Xx("0x4")}),t.model[Xx("0x69")][Xx("0x23")]((()=>{let e=!1;const o=Array[Xx("0x3d")](t.model[Xx("0x69")][Xx("0x8e")][Xx("0x8")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x32")](s);if("suggestion"!=o||Xx("0x43")!=i||r[Xx("0xa4")])continue;if(!n[Xx("0x25")](x))continue;const a=n[Xx("0x5d")](x).getRanges(),c=t[Xx("0x90")].get(Xx("0x4c")).me;for(const t of n.getSuggestions())if(t[Xx("0xa0")]&&t[Xx("0x1d")]==c&&Xx("0x89")==t.type&&"tablePasteCell"==t.subType&&t[Xx("0x85")]().every((t=>a[Xx("0x82")]((e=>e.containsRange(t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Xx("0xa0")]&&(n[Xx("0x93")](),e=!0)}return e})),t.model[Xx("0x69")][Xx("0x23")]((e=>{const o=t[Xx("0x45")][Xx("0x58")](Xx("0xa2"));if(!o||!o[Xx("0xe")][Xx("0x4f")](e[Xx("0x97")]))return!1;let s=!1;const r=t[Xx("0x90")].get(Xx("0x4c")).me,i=t[Xx("0x9a")][Xx("0x69")][Xx("0x8e")][Xx("0x59")](),x=Array.from(t[Xx("0x9a")][Xx("0x69")][Xx("0x8e")].getChangedMarkers()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x32")](t);return"suggestion"==o&&Xx("0xa1")==s&&i==r.id&&!e[Xx("0xa4")]}));for(const t of i){if(Xx("0x5b")!=t[Xx("0x86")]||Xx("0x81")!=t.name||1!=t[Xx("0x6a")])continue;const n=e[Xx("0x8a")](t[Xx("0x10")],t[Xx("0x10")][Xx("0x94")](1));if(!x.find((({data:t})=>t[Xx("0x2f")][Xx("0x0")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Xx("0x2f")])){e[Xx("0x6e")](t,{range:n}),s=!0;break}}return s})),t[Xx("0x9a")][Xx("0x69")][Xx("0x23")]((e=>{let o=!1;const s=t.plugins[Xx("0x58")](Xx("0x4c")).me,r=n[Xx("0x42")]()[Xx("0x31")]((t=>t[Xx("0xa0")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[Xx("0x17")])for(const e of t.getMarkers()){const n=e[Xx("0x4b")]()[Xx("0x2b")]();if(n)if(n.is(Xx("0x98"),"tableCellSuggestion")&&Zx(n)){t[Xx("0x96")](e[Xx("0x72")]),i.add(n),o=!0;const s=n[Xx("0x92")],r=n[Xx("0x3e")],a=s&&s.is(Xx("0x98"),Xx("0x81")),c=r&&r.is(Xx("0x98"),Xx("0x81"));a&&!i[Xx("0x4f")](s)&&x[Xx("0x7")](s),c&&!i[Xx("0x4f")](r)&&x[Xx("0x7")](r)}else n.is(Xx("0x98"),"paragraph")&&n[Xx("0x7d")]&&(t[Xx("0x96")](e.name),o=!0)}else if("tablePasteCell"==t[Xx("0x17")]){if(!t[Xx("0x9f")]||!t[Xx("0x9f")][Xx("0x2a")])continue;const e=t[Xx("0x9f")][Xx("0x6")];if(e&&Object[Xx("0x54")](e)[Xx("0x6a")])continue;const n=t.attributes[Xx("0x2a")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x17")]&&e.subType[Xx("0x74")]("tablePaste")){if(!e[Xx("0x9f")][Xx("0x2a")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x9f")][Xx("0x2a")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x79")](t);for(const t of x)e.unwrap(t);return o})),t.conversion[Xx("0x44")](Xx("0x7b")).markerToHighlight({model:Xx("0x34"),view:(t,e)=>l(t),converterPriority:Xx("0x4")}),t[Xx("0x83")].for(Xx("0x37"))[Xx("0x71")]({model:Xx("0x34"),view:(t,e)=>e[Xx("0xf")][Xx("0x68")]?l(t,!1):null,converterPriority:Xx("0x4")});const u=t.editing[Xx("0xd")];this[Xx("0x6d")](u.document,Xx("0x1b"),((t,e)=>{const n=[];for(const t of u[Xx("0x15")](e[Xx("0x50")])[Xx("0x99")]())t.is(Xx("0x98"),"suggestion-td")&&n[Xx("0x1f")](t);u.change((t=>{for(const e of n)t[Xx("0x7a")](t[Xx("0x15")](e),t[Xx("0x75")](e)),t[Xx("0x79")](e)}))}))}}function Zx(t){if(t[Xx("0x7d")])return!0;const e=t[Xx("0x9c")](0);return e.is(Xx("0x98"),Xx("0x46"))&&e[Xx("0x7d")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x3f")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["_descriptionFactory","formatGroupId","document","tableWidth","subType","resizeColumnWidths","*Format:* resize table","bind","commandParams","author","table","editor","enableCommand","resizeTable","registerDescriptionCallback","TrackChangesEditing","model","discard","plugins","accept","handleResizeTableWidthCommand","getTableColumnsWidths","getColumnGroupElement","selection","get","locale","resizeTableWidth","_suggestionFactory","has","data","registerCustomCallback","handleSuggestionDescription","getSuggestionCallback","getAttribute","columnWidths","format","formatBlock","markBlockFormat"];var ea,na;ea=ta,na=281,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("0x22")][oa("0x3")][oa("0xd")]("TableColumnResizeEditing"))return;const t=this[oa("0x22")][oa("0x3")][oa("0x9")](oa("0x0"));t[oa("0x23")]("resizeTableWidth",this[oa("0x5")][oa("0x1e")](this)),t[oa("0x23")](oa("0x1c"),this[oa("0x5")].bind(this)),t[oa("0xc")][oa("0xf")](oa("0x15"),oa("0x24"),oa("0x4"),t[oa("0xc")][oa("0x11")]("formatBlock",null,oa("0x2"))),t._suggestionFactory.registerCustomCallback("formatBlock",oa("0x24"),oa("0x2"),t[oa("0xc")][oa("0x11")](oa("0x15"),null,oa("0x4"))),t[oa("0x17")][oa("0x25")](this[oa("0x10")][oa("0x1e")](this))}[oa("0x5")](t,e){const n=this[oa("0x22")].plugins[oa("0x9")](oa("0x0")),o=this[oa("0x22")][oa("0x3")][oa("0x9")]("TableColumnResizeEditing"),s=e[oa("0x21")]||this[oa("0x22")][oa("0x1")][oa("0x19")][oa("0x8")].getSelectedElement();this.editor[oa("0x1")].change((()=>{const r=o[oa("0x7")](s);let i=r?o[oa("0x6")](r):null,x=s[oa("0x12")](oa("0x1a"))||null;const a=e.tableWidth||x,c=e[oa("0x13")]||i,l=this[oa("0x22")][oa("0x3")][oa("0x9")]("Users").me;for(const t of n.getSuggestions()){const e=t.getContainedElement();if(oa("0x24")===t[oa("0x1b")]&&e===s){t[oa("0x20")]!==l&&t[oa("0x2")]();const e=t[oa("0xe")][oa("0x1f")];x=e[0][oa("0x1a")],i=e[0][oa("0x13")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x16")](s,{commandName:oa("0xb"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x24")},[],oa("0x24"))}))}[oa("0x10")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x18")]){const t=oa("0x1d");return{type:oa("0x14"),content:Yo(this.editor[oa("0xa")],t)}}}}const ra=["Template","get","plugins","insertTemplate","afterInit","TrackChangesEditing"];var ia,xa;ia=ra,xa=114,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x4")](){const t=this.editor;t[aa("0x2")].has(aa("0x0"))&&t[aa("0x2")][aa("0x1")](aa("0x5")).enableCommand(aa("0x3"))}}const la=["TrackChangesEditing","afterInit","commands","get","tableOfContents","plugins","ELEMENT_TABLE_OF_CONTENTS","_descriptionFactory","insertTableOfContents","locale"];var ua,da;ua=la,da=493,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x8")](){const t=this.editor;if(!t[ga("0x9")][ga("0x0")](ga("0x5")))return;t[ga("0x2")].get("TrackChangesEditing").enableCommand("insertTableOfContents");const e=t[ga("0x2")][ga("0x0")](ga("0x7")),n=t[ga("0x6")];e[ga("0x4")].registerElementLabel(ga("0x1"),(t=>Yo(n,ga("0x3"),t)))}}const fa=["title-content","getNearestSelectionRange","start","model","updateMarker","document","registerPostFixer","Title","has","differ","get","afterInit","_splitMarkerName","getChangedMarkers","locale","schema","editor","createRange","element","suggestion","isCollapsed","forward","ELEMENT_TITLE","end","newRange"];var ha,pa;ha=fa,pa=236,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x0")](){const t=this[ba("0x5")];if(!t.plugins[ba("0x16")](ba("0x15")))return;const e=t.plugins[ba("0x18")]("TrackChangesEditing");e._descriptionFactory.registerElementLabel(ba("0xe"),(()=>Yo(t[ba("0x3")],ba("0xb")))),t[ba("0x11")][ba("0x13")][ba("0x14")]((n=>{let o=!1;const s=Array.from(t[ba("0x11")][ba("0x13")][ba("0x17")][ba("0x2")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x1")](r);if(ba("0x8")!==s||!i[ba("0xd")])continue;const x=i[ba("0xd")],a=x[ba("0xc")].nodeBefore;if(!a||!a.is(ba("0x7"),ba("0xe")))continue;if(!x[ba("0x10")].isTouching(x[ba("0xc")]))continue;const c=t[ba("0x11")][ba("0x4")][ba("0xf")](x.end,ba("0xa"));if(c&&c[ba("0x9")]){const t=n[ba("0x6")](x[ba("0x10")],c[ba("0x10")]);t.isEqual(x)||(n[ba("0x12")](r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["editor","has","redo","plugins","TrackChangesEditing","undo","get","enableCommand"];var Ta,Ca;Ta=_a,Ca=145,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("0x7")],e=t[ya("0x2")][ya("0x5")](ya("0x3"));t[ya("0x2")][ya("0x0")]("UndoEditing")&&(e[ya("0x6")](ya("0x4")),e[ya("0x6")](ya("0x1")))}}const Aa=["editor","get","toggleTableCaption","TrackChangesEditing","TableCaptionEditing","requires","plugins","enableCommand"];var va,Ra;va=Aa,Ra=458,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x3")](){return[wx]}afterInit(){const t=this[Sa("0x6")];t[Sa("0x4")].has(Sa("0x2"))&&t[Sa("0x4")][Sa("0x7")](Sa("0x1"))[Sa("0x5")](Sa("0x0"))}}const La=["config","DocumentListUtils","listStart","TrackChangesEditing","styles","handleListReversedCommand","_getSuggestionBlocks","isFirstBlockOfListItem","getSelectedBlocks","has","model","filter","_descriptionFactory","listStyle","*Format:* set start index to %0","get","handleListStartCommand","afterInit","*Format:* set order to regular","handleDescriptions","push","list.properties","handleListStyleCommand","selection","ELEMENT_","getListTypeFromListStyleType","from","reversed","document","markMultiRangeBlockFormat","startIndex","getAttribute","listReversed","enableCommand","_LIST_","registerDescriptionCallback","commandName","listType","format","editor","*Format:* set order to reversed","DocumentListPropertiesEditing","_getSuggestionBlocksForListStyle","isListItemBlock","expandListBlocksToCompleteList","numbered","commandParams","locale","toUpperCase","type","change","bind","plugins","DocumentListPropertiesUtils","replace","length","_getTranslationKeyForListStyle"];var Na,Ma;Na=La,Ma=257,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x2d")](){if(!this[wa("0xa")][wa("0x17")][wa("0x25")](wa("0xc")))return;const t=this[wa("0xa")][wa("0x1c")][wa("0x2b")](wa("0x31")),e=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f"));t[wa("0x20")]&&e.enableCommand(wa("0x29"),this.handleListStyleCommand[wa("0x16")](this)),t[wa("0x37")]&&e.enableCommand(wa("0x3"),this[wa("0x21")][wa("0x16")](this)),t[wa("0x1")]&&e[wa("0x4")](wa("0x1e"),this.handleListStartCommand[wa("0x16")](this)),e[wa("0x28")][wa("0x6")](this.handleDescriptions[wa("0x16")](this))}[wa("0x32")](t,e={}){const n=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f")),o=this._getSuggestionBlocksForListStyle();this[wa("0xa")][wa("0x26")][wa("0x15")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:wa("0x29"),commandParams:[{type:e[wa("0x14")]}],formatGroupId:wa("0x29")})}))}[wa("0x21")](t,e={}){const n=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f")),o=this[wa("0xa")].plugins[wa("0x2b")](wa("0x1d")),s=this[wa("0x22")]((t=>o[wa("0xe")](t)&&wa("0x10")===t[wa("0x2")](wa("0x8"))));null!==s&&this[wa("0xa")][wa("0x26")].change((()=>{n[wa("0x0")](s,{commandName:wa("0x3"),commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}[wa("0x2c")](t,e={}){const n=this[wa("0xa")][wa("0x17")][wa("0x2b")](wa("0x1f")),o=this[wa("0xa")].plugins[wa("0x2b")](wa("0x1d")),s=this._getSuggestionBlocks((t=>o[wa("0xe")](t)&&wa("0x10")===t[wa("0x2")](wa("0x8"))));null!==s&&this[wa("0xa")][wa("0x26")].change((()=>{n[wa("0x0")](s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wa("0x2f")](t){const e=this[wa("0xa")][wa("0x12")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x7")]){case wa("0x29"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0][wa("0x14")])))};break;case wa("0x3"):o=n.commandParams[0].reversed?wa("0xb"):wa("0x2e"),s={type:wa("0x9"),content:Yo(e,o)};break;case"listStart":o=wa("0x2a"),s={type:wa("0x9"),content:Yo(e,o,n[wa("0x11")][0][wa("0x1")])}}return s}[wa("0xd")](){const t=this.editor[wa("0x17")][wa("0x2b")](wa("0x1d"));let e=Array[wa("0x36")](this[wa("0xa")][wa("0x26")][wa("0x38")][wa("0x33")].getSelectedBlocks());return e[wa("0x30")](...t[wa("0xf")](e)),e=[...new Set(e)],e}[wa("0x22")](t){const e=this.editor[wa("0x17")].get(wa("0x1d"));let n=Array.from(this[wa("0xa")][wa("0x26")][wa("0x38")][wa("0x33")][wa("0x24")]())[wa("0x27")](t);if(!n[wa("0x1a")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[wa("0x23")](t)&&o[wa("0x30")](t);return o}[wa("0x1b")](t){return wa("0x34")+this[wa("0xa")].plugins[wa("0x2b")](wa("0x18"))[wa("0x35")](t)[wa("0x13")]()+wa("0x5")+t[wa("0x13")]()[wa("0x19")](/-/g,"_")}}const Fa=["TableCellPropertiesEditing","plugins","enableCommand","getSuggestions","afterInit","tableCellVerticalAlignment","tableHeight","_descriptionFactory","handleDiscardAction","get","pluginName","getSuggestionCallback","tableBorderWidth","tableCellBorderWidth","registerCustomCallback","findAncestor","_getSuggestion","change","tableCellHeight","*Format:* change table cell properties","model","tableCellHorizontalAlignment","data","markBlockFormat","tableProperties","tableCellWidth","format","subType","discard","accept","TrackChangesEditing","getAttribute","editor","tableCellPadding","handleSuggestionDescription","tableCellProperties","_handlePropertyChange","_suggestionFactory","locale","formatBlock","document","selection","tableBorderStyle","table","join","*Format:* change table properties","getFirstPosition","getSelectionAffectedTableCells","TablePropertiesEditing","has","nodeAfter","TrackChangesTableProperties","tableWidth","batch","tableCellBorderColor"];var Pa,Da;Pa=Fa,Da=218,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("0x1a")]=["tableBorderColor",Ba("0x2c"),Ba("0xe"),"tableAlignment",Ba("0x36"),Ba("0x8"),"tableBackgroundColor"],this[Ba("0x25")]=[Ba("0x1"),"tableCellBorderStyle",Ba("0xf"),Ba("0x23"),Ba("0x1b"),Ba("0x14"),"tableCellBackgroundColor",Ba("0x17"),Ba("0x7")]}static get[Ba("0xc")](){return Ba("0x35")}[Ba("0x6")](){const t=this[Ba("0x22")][Ba("0x3")][Ba("0xb")]("TrackChangesEditing");if(this.editor[Ba("0x3")].has(Ba("0x32"))){for(const e of this[Ba("0x1a")])t[Ba("0x4")](e,((t,n)=>{const o=this.editor[Ba("0x16")][Ba("0x2a")][Ba("0x2b")][Ba("0x30")]()[Ba("0x11")](Ba("0x2d"));this[Ba("0x26")](e,[o],this[Ba("0x1a")],Ba("0x1a"),t,n)}));t[Ba("0x27")].registerCustomCallback(Ba("0x29"),Ba("0x1a"),Ba("0x1f"),t._suggestionFactory[Ba("0xd")](Ba("0x29"),null,Ba("0x1e"))),t[Ba("0x27")][Ba("0x10")]("formatBlock",Ba("0x1a"),Ba("0x1e"),((t,e)=>this[Ba("0xa")](this.tableProperties,t,e))),t[Ba("0x27")][Ba("0x10")](Ba("0x29"),"tableProperties",Ba("0x2e"),(()=>!1))}if(this[Ba("0x22")][Ba("0x3")][Ba("0x33")](Ba("0x2"))){for(const e of this[Ba("0x25")])t[Ba("0x4")](e,((t,n)=>{const o=this[Ba("0x22")][Ba("0x3")][Ba("0xb")]("TableUtils")[Ba("0x31")](this[Ba("0x22")][Ba("0x16")][Ba("0x2a")][Ba("0x2b")]);this[Ba("0x26")](e,o,this[Ba("0x25")],Ba("0x25"),t,n)}));t[Ba("0x27")][Ba("0x10")](Ba("0x29"),Ba("0x25"),Ba("0x1f"),t[Ba("0x27")][Ba("0xd")](Ba("0x29"),null,"discard")),t[Ba("0x27")][Ba("0x10")](Ba("0x29"),Ba("0x25"),Ba("0x1e"),((t,e)=>this[Ba("0xa")](this[Ba("0x25")],t,e))),t[Ba("0x27")][Ba("0x10")](Ba("0x29"),"tableCellProperties",Ba("0x2e"),(()=>!1))}t[Ba("0x9")].registerDescriptionCallback((t=>this[Ba("0x24")](t)))}[Ba("0x26")](t,e,n,o,s,r){const i=this[Ba("0x22")].plugins[Ba("0xb")](Ba("0x20"));this[Ba("0x22")][Ba("0x16")].enqueueChange(r[Ba("0x0")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x21")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x19")](t,{commandParams:[e]},[],o)}}))}[Ba("0xa")](t,e,n){const o=e[0].start[Ba("0x34")],s=n.commandParams[0];this[Ba("0x22")][Ba("0x16")][Ba("0x13")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x18")])switch(t[Ba("0x1d")]){case Ba("0x1a"):return{type:Ba("0x1c"),content:Yo(this[Ba("0x22")][Ba("0x28")],Ba("0x2f"))};case Ba("0x25"):return{type:"format",content:Yo(this.editor[Ba("0x28")],Ba("0x15"))}}}[Ba("0x12")](t,e){const n=this[Ba("0x22")].plugins.get(Ba("0x20"));for(const o of n[Ba("0x5")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Ua=["execute","for","getFirstMarker","_enabledCommands","end","getChanges","filter","removed","suggestion","_saved","_findSuggestions","nodeAfter","_createSuggestion","notReady","$marker","isBefore","formatInline:discard","deletion:","document","createdAt","addMarker","removeComment","data-suggestion","trackChanges.mergeNestedSuggestions","isAtStart","push","item","_splitMarkerName","insertion","createPositionAt","createElement","before","marker-count","targetPosition","registerPostFixer","updateSuggestion","acceptSelectedSuggestions","_removeSuggestion","insertContent","formatInline:join","normal","deletion:chain","size","move","external:","_rangeIsInLocalUserInsertion","ck-suggestion-marker","isNextTo","markers","markerToHighlight","isAtEnd","_setSuggestionData","PendingActions","_updateSuggestionData","getAllAdjacentSuggestions","containsRangeInObject","_suggestionState","insertion:discard","clone","getRange","markInsertion","enableReadOnlyMode","updateMarker","remove","getAttribute","deletion:accept","CommentsRepository","toViewElement","track-changes-suggestion-data-mismatch","addMarkerName","addComment","isObject","formatInline:accept","multipleBlocks","fetchCommentThread","deleteContent","value","insertion:","accept","author","adapter","getChangedMarkers","previous","_commentsRepository","markMultiRangeDeletion","track-changes-suggestion-not-found","getSuggestions","includes","removeMarkers","init","multi","discardSuggestion","stop","formatInline:chain","getMarkers","skipNestingCheck","sort","change:data","addMarker:suggestion:formatBlock","discard","insertion:accept","always","then","isBlock","trackChanges","start","change:activeMarkers","batch","consumable","$textProxy","ck-suggestion-marker-","default","data","enqueueChange","unbindElementFromMarkerName","addSuggestion","nodeBefore","some","name","markerReady","dataReady","_addSuggestionMarker","parent","conversion","join","mapper","_adapter","forceDefaultExecution","addSuggestionData","addHighlight","highest","isRemovable","formatBlock","add","unbind","track-changes-user-not-found","getCustomProperty","isIntersectingWithRange","range","@external","markDeletion","track-changes-command-not-found","formatBlock:","removeClass","elementToElement","config","isOwn","has","attributes","setAttribute","_defaultCallbacks","writer","getLastMatchingPosition","formatInline:","activeMarkers","_breakSuggestionMarker","trackChanges.trackFormatChanges","element","backward","_getExternalAuthor","rethrowUnexpectedError","update:suggestion","stopListening","isMultiRange","isDocumentOperation","listenTo","newRange","options","resolve","hasComments","fire","getNearestSelectionRange","buildSuggestion","commandName","track-changes-adapter-missing-getsuggestion","bindElementToMarker","subType","getUser","_mergeNestedSuggestions","schema","markMultiRangeInsertion","oldRange","_descriptionFactory","_onDiscard","removeMarker","isInContent","_setSuggestionRange","acceptAllSuggestions","markerName","isSelectable","getItems","get","ck-suggestion-marker-formatBlock","plugins","addRange","acceptSuggestion","formatGroupId","registerCustomCallback","type","clear","getSuggestion","pluginName","markBlockFormat","moveTargetPosition","reconvertMarker","formatInline","containsPosition","markerNameToElements","fromRange","change","consume","position","_isForcedDefaultExecutionBlock","dataDowncast","trackChangesCommand","PENDING_ACTION_SUGGESTION","enableCommand","upcast","change:_saved","low","never","originalSuggestionId","track-changes-adapter-already-set","elementStart","error-saving-suggestion-data-suggestion-discarded","ready","showSuggestionHighlights","TrackChangesEditing","_refreshSuggestionsChain","discardAllSuggestions","containsRange","suggestion:","addCommentThread","Users","_trackFormatChanges","getMultiRangeId","return","isExternal","_customCallbacks","getRanges","dataToMarker","map","catch","isInsideObject","addClass","from","model","chain","splitPosition","insertion:chain","getIntersection","commands","substr","rejected","fromCharCode","creator","insert","setSelection","differ","addMarker:suggestion","_suggestions","getSuggestionCallback","suggestionLoaded","getFirstRange","_suggestionFactory","elementEnd","editor","markerToData","_registerDefaultCallbacks","toJSON","authorName","authoredAt","isLocal","commentThread","howMany","addUser","formatBlock:discard","editingDowncast","insertion:join","detach","collaboration.channelId","isTouching","$graveyard","isUndo","_checkSuggestionCorrectness","high","getDifference","createPositionAfter","isLimit","selection","next","_joinWithAdjacentSuggestions","markMultiRangeBlockFormat","length","_cutOutSuggestionMarker","getShiftedBy","hasSuggestion","isEqual","split","_model","open","delete","root","deletion","_getAuthorFromId","locale","createSelection","_editor","ck-suggestion-marker--active","every","_addThreadToSuggestion","group","formatBlock:join","accepted","rootName","isCollapsed","after","createRange","_joinSuggestions","splice","set","isAfter"];var Ga,Ha;Ga=Ua,Ha=165,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("0xdf"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x24")](){return za("0x3e")}constructor(t){function e(t){return t.map((t=>String[za("0x59")](t))).join("")}super(t),this[za("0x9b")](za("0x137"),[]),this.on(za("0x107"),((e,n,o,s)=>{this[za("0x86")][za("0x2c")]((()=>{for(const e of[...s,...o])this._model.markers[za("0x130")](e)&&t.editing[za("0x27")](e)}))})),this[za("0x11")]=new ss(this[za("0x65")][za("0x51")][za("0xe")],this[za("0x65")][za("0x8c")]),this._adapter=null,this._suggestionFactory=new Va(this[za("0x65")]),this[za("0x5f")]=new Map,this._commentsRepository=t[za("0x1c")][za("0x1a")](za("0xdf")),this[za("0xa0")]=new Set,this[za("0x86")]=this[za("0x65")].model,this[za("0xd5")]=new WeakMap,this[za("0x2f")]=!1,t[za("0x12e")].define("trackChanges.trackFormatChanges",za("0x10c")),this._trackFormatChanges=t.config[za("0x1a")](za("0x139")),t[za("0x12e")].define(za("0xb4"),!0),this[za("0xd")]=t[za("0x12e")][za("0x1a")](za("0xb4")),this[za("0x31")]=new d(t,this[za("0xa0")]),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,50,48])}[za("0xf6")](){const t=this[za("0x65")];t[za("0x118")][za("0x9e")]("editingDowncast").markerToHighlight({model:za("0xa5"),view:t=>{const{id:e,type:n}=this[za("0xb8")](t[za("0x17")]),o=[za("0xcb"),za("0x10b")+n];let s=3e3;return this[za("0x137")][za("0xf4")](t[za("0x17")])&&(o.push(za("0x8f")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x118")][za("0x9e")](za("0x30")).add((e=>{e.on(za("0x5e"),((e,n,o)=>{if(!o[za("0x2")][za("0x3d")])return;const s=n[za("0xb7")];if(!s)return;const r=o[za("0x11a")][za("0xe0")](s);t[za("0x51")][za("0xe")][za("0xe4")](s)&&r&&!r[za("0x125")]("widget")&&r.is("containerElement")&&(0,x.toWidget)(r,o[za("0x134")])}),{priority:za("0x78")})})),t.conversion[za("0x9e")](za("0x30"))[za("0xce")]({model:"suggestion",view:(t,e)=>{if(!e.options[za("0x3d")])return null;const{type:n}=this._splitMarkerName(t[za("0x17")]);return{classes:[za("0xcb"),za("0x10b")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0xb7")])return;if(o[za("0xb7")].is(za("0x7c")))return void s[za("0x109")][za("0x2d")](o[za("0xb7")],n[za("0x113")]);const r=s.mapper[za("0xe0")](o[za("0xb7")]);if(!o.item.is(za("0x13a"))||!t[za("0x51")][za("0xe")][za("0x104")](o[za("0xb7")])||r[za("0x125")]("addHighlight"))return;const{id:i}=this._splitMarkerName(o[za("0x17")]);s[za("0x134")][za("0x4f")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock"],r),s[za("0x134")][za("0x132")](za("0xb3"),i,r),s[za("0x11a")][za("0xa")](r,o.markerName),e&&(this[za("0x137")].includes(o.markerName)?s.writer[za("0x4f")](za("0x8f"),r):s[za("0x134")][za("0x12c")](za("0x8f"),r));for(const e of t[za("0x51")].createRangeIn(o.item)[za("0x19")]())s[za("0x109")].consume(e,n[za("0x113")]);s.consumable[za("0x2d")](o[za("0xb7")],n[za("0x113")])};t[za("0x118")][za("0x9e")]("dataDowncast")[za("0x122")]((t=>{t.on(za("0xff"),((t,e,o)=>{o.options[za("0x3d")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x11f")})})),t[za("0x118")][za("0x9e")](za("0x30"))[za("0x66")]({model:za("0xa5"),view:(t,e)=>e.options[za("0x3d")]?null:{group:"suggestion",name:t[za("0x57")](11)}}),t[za("0x118")].for("upcast")[za("0x12d")]({view:{name:za("0xa5"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x42")+t[za("0xdd")]("suggestion-type")+":"+t[za("0xdd")]("id");return t[za("0xdd")](za("0xbd"))&&(n+=":"+t[za("0xdd")]("marker-count")),e[za("0xbb")](za("0xab"),{"data-name":n})}}),t[za("0x118")][za("0x9e")](za("0x34"))[za("0x4b")]({view:za("0xa5")}),t.conversion[za("0x9e")](za("0x70"))[za("0x122")]((t=>{t.on(za("0xff"),n(),{priority:"high"})})),t[za("0x118")][za("0x9e")](za("0x70")).add((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[za("0x11a")][za("0x2a")](e[za("0x17")]);if(o)for(const t of o)t.getCustomProperty(za("0x11e"))||(n[za("0x134")][za("0x12c")]([za("0xcb"),za("0x1b"),za("0x8f")],t),n[za("0x134")].removeAttribute(za("0xb3"),t),n[za("0x11a")][za("0x10f")](t,e[za("0x17")]))}),{priority:za("0x78")})})),t[za("0x51")][za("0xaf")][za("0xbf")]((e=>{let n=!1;const o=Array[za("0x50")](t[za("0x51")][za("0xaf")][za("0x5d")][za("0xee")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0xb8")](x);if(za("0xa5")!==o)continue;const u=this._suggestions.get(l);if(null!=a[za("0x1")])if(za("0x28")==c&&(n=n||Xa(a[za("0x1")],x,e,t[za("0x51")][za("0xe")])),a[za("0x1")].isCollapsed||za("0x75")==a[za("0x1")][za("0x89")][za("0x95")]||za("0x121")==c&&!Ja(a.newRange)||"deletion"==c&&(qa(i=a[za("0x1")])||(r=i).start[za("0x117")]==r[za("0xa1")][za("0x111")]&&r.start.isAtEnd))e[za("0x13")](x),n=!0;else{if(!u||!u[za("0x14")])continue;s.add(u)}}var r,i;return s[za("0xc7")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[za("0x51")][za("0xaf")][za("0xbf")]((e=>{let n=!1;for(const o of t[za("0x51")][za("0xaf")][za("0x5d")][za("0xa2")]()){if(za("0x5b")!=o[za("0x21")])continue;const s=o[za("0x2e")].getShiftedBy(o.length);if(s[za("0xcf")])for(const r of this[za("0x5f")].values()){if(r[za("0x140")]||!r[za("0x14")])continue;if("formatBlock"!=r[za("0x21")])continue;const i=r[za("0x62")]();if(i.start.parent!=i[za("0xa1")].parent&&i.end[za("0x84")](o[za("0x2e")])){const o=t[za("0x51")].createRange(i[za("0x106")],s);e[za("0xdb")](r[za("0x9f")](),{range:o}),n=!0}}}return n})),t[za("0x51")][za("0xcd")].on(za("0x13e"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0x113")]),n=this[za("0x5f")][za("0x1a")](t);n&&n.addMarkerName(e[za("0x113")])}})),t[za("0x51")][za("0xaf")].on(za("0xfe"),(()=>{const e=Array.from(t[za("0x51")][za("0xaf")][za("0x5d")][za("0xee")]())[za("0xa3")]((t=>za("0xa5")===this[za("0xb8")](t[za("0x113")])[za("0x92")]));if(0===e[za("0x80")])return;e[za("0xfd")](((t,e)=>{const n=t.data[za("0x10")],o=e[za("0x10d")][za("0x10")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start.isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xb8")](t);if(null===s[za("0x10")]){const e=this._handleNewSuggestionMarker(t);o[za("0x122")](e)}else{const t=this[za("0x5f")].get(e);null!==s[za("0x1")]||t[za("0x14")]?(n[za("0x122")](t.head),o.add(t)):this[za("0xc2")](t)}}o[za("0xc7")]>0&&this[za("0x3f")](o);for(const t of n)this.fire("suggestionChanged",t)})),t[za("0x51")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0x5f")][za("0xc7")])return;if(!o[za("0x141")])return;if(o[za("0x108")][za("0x76")]||!o.batch[za("0x6b")])return;let s,r;switch(o[za("0x21")]){case"insert":s=t[za("0x51")][za("0xba")](o[za("0x2e")]),r=s[za("0x82")](o[za("0x6d")]);break;case za("0x85"):s=t[za("0x51")][za("0xba")](o[za("0x53")]),r=t[za("0x51")][za("0xba")](o[za("0x26")]);break;case za("0xc8"):s=t[za("0x51")].createPositionAt(o[za("0xbe")]),r=s.getShiftedBy(o[za("0x6d")]);break;default:return}const i=t[za("0x51")][za("0x98")](s,r);t[za("0x51")][za("0x2c")]((()=>{for(const{suggestion:t,meta:e}of this[za("0xa7")](i)){if(t.isMultiRange)continue;if(za("0x28")==t[za("0x21")])continue;const n=t.data&&t[za("0x10d")][za("0xe6")];(za("0x121")!=t[za("0x21")]||za("0x85")==o[za("0x21")]&&!n)&&(e.containsRangeInObject||"insertion"==t[za("0x21")]&&e[za("0x12f")]||t[za("0x62")]()[za("0x41")](i)&&this[za("0x138")](t,s,r))}}))}),{priority:"lowest"}),t[za("0x51")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x11c")])return;if(this[za("0x2f")])return;if(!this[za("0x31")][za("0xe9")])return;if(o.isCollapsed)return;const r=t[za("0x51")][za("0xe")],{start:i,end:x}=o.getFirstRange(),a=i[za("0xa8")]&&r[za("0x7b")](i.nodeAfter)?null:r[za("0x6")](i,"forward"),c=x[za("0x111")]&&r[za("0x7b")](x.nodeBefore)?null:r[za("0x6")](x,za("0x13b")),l=t[za("0x51")][za("0x98")](a?a[za("0x106")]:i,c?c[za("0xa1")]:x);t[za("0x51")].change((e=>{this[za("0x129")](l);const n=t[za("0x51")][za("0xe")].getNearestSelectionRange(l[za("0x106")]);o.is("documentSelection")?e[za("0x5c")](n):o.setTo(n)})),e[za("0xf9")]()}),{priority:e.priorities[za("0xc5")]+10}),t[za("0x51")].on("insertContent",((e,n)=>{const o=n[n.length-1];o&&o.forceDefaultExecution||this._isForcedDefaultExecutionBlock||this.trackChangesCommand[za("0xe9")]&&(t[za("0x51")][za("0x2c")]((()=>{let o=t[za("0x51")][za("0xc3")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x47")]=o[za("0xd7")]();const s=o[za("0xa1")][za("0x111")],r=t[za("0x51")][za("0xe")];s&&r.isBlock(s)&&!r[za("0xe4")](s)&&(o=t.model.createRange(o.start,t[za("0x51")][za("0xba")](s,za("0xa1")))),this[za("0xd9")](o)})),e.stop())}),{priority:za("0x78")}),this.editor[za("0x56")].add(za("0x105"),this[za("0x31")]),this[za("0x33")](za("0x105"));const o=new p(t,this[za("0x5f")]);t[za("0x56")][za("0x122")](za("0x1e"),o),this[za("0x33")](za("0x1e"));const s=new C(t,this._suggestions);t[za("0x56")][za("0x122")](za("0xf8"),s),this.enableCommand(za("0xf8")),t[za("0x56")].add("acceptAllSuggestions",new F(t,o,this[za("0x5f")])),this[za("0x33")](za("0x16")),t[za("0x56")].add(za("0x40"),new F(t,s,this[za("0x5f")])),this[za("0x33")](za("0x40")),t[za("0x56")].add(za("0xc1"),new U(t,o,this[za("0x5f")])),this[za("0x33")](za("0xc1")),t[za("0x56")][za("0x122")]("discardSelectedSuggestions",new U(t,s,this._suggestions)),this[za("0x33")]("discardSelectedSuggestions");const r=t[za("0x1c")].get("CommentsRepository");this[za("0x0")](r,za("0xe3"),((t,{threadId:e})=>{const n=this[za("0x5f")][za("0x1a")](e);n&&n[za("0x6c")]&&1===n[za("0x6c")][za("0x80")]&&this[za("0xd2")](e,{hasComments:!0})}),{priority:"low"}),this[za("0x0")](r,za("0xb2"),((t,{threadId:e})=>{const n=this[za("0x5f")][za("0x1a")](e);n&&n[za("0x6c")]&&!n[za("0x6c")][za("0x80")]&&this[za("0xd2")](e,{hasComments:!1})}),{priority:za("0x36")})}set[za("0xed")](t){if(this[za("0x11b")])throw new e.CKEditorError(za("0x39"),this);this._adapter=t}get[za("0xed")](){return this._adapter}[za("0xf3")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions.values())t&&!e.isInContent||n[za("0xb6")](e);return e?n[za("0x4c")]((t=>t[za("0x68")]())):n}getSuggestion(t){const n=this[za("0x5f")][za("0x1a")](t);if(!n)throw new e.CKEditorError(za("0xf2"),this);return n}[za("0x83")](t){return this[za("0x5f")][za("0x130")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x21")].split(":"),i=this._suggestions.get(n)||this._createSuggestion(s,r,n,e,o);if(this._addThreadToSuggestion(i),this[za("0x77")](i,s,r||null,e),i[za("0xb0")]=t[za("0xb0")],o&&o[za("0x128")]){const t=o[za("0x128")],e=this[za("0x13c")](t[za("0x69")]);i[za("0x6a")]=t[za("0xb0")],i[za("0xec")]=e,i[za("0x48")]=!0}else i[za("0x6a")]=t[za("0xb0")];switch(t[za("0x10d")]&&(i[za("0x10d")]=t[za("0x10d")]),t[za("0x131")]&&(i[za("0x131")]=t[za("0x131")]),this[za("0x11b")]&&this[za("0x11b")][za("0x110")]||(i[za("0xa6")]=!0),this[za("0xd5")][za("0x1a")](i)){case"notReady":this[za("0xd5")][za("0x9b")](i,za("0x115"));break;case za("0x114"):i.isInContent?(this[za("0xd5")].set(i,za("0x3c")),this[za("0x5")]("suggestionLoaded",i)):this[za("0xd5")][za("0x9b")](i,za("0xa4"))}return i}[za("0x1e")](t){this.forceDefaultExecution((()=>{this[za("0x65")][za("0x51")][za("0x2c")]((()=>{for(const e of t[za("0xd3")]())e[za("0xeb")]()}))}))}discardSuggestion(t){this[za("0x11c")]((()=>{this[za("0x65")].model.change((()=>{for(const e of t[za("0xd3")]())e[za("0x100")]()}))}))}[za("0x33")](t,n){const o=this[za("0x65")].commands[za("0x1a")](t);if(!o)throw new e.CKEditorError(za("0x12a"),this,{commandName:t});this[za("0xa0")][za("0x122")](o),n&&o.on(za("0x9d"),((t,e)=>{this.trackChangesCommand[za("0xe9")]&&(this[za("0x2f")]||e[za("0x80")]>0&&e[e[za("0x80")]-1]&&e[e[za("0x80")]-1][za("0x11c")]||(n(((...t)=>o[za("0x9d")](...t,{forceDefaultExecution:!0})),...e),t[za("0xf9")]()))}),{priority:za("0x78")})}[za("0x11c")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[za("0x2f")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x2f")]=!1),o&&e.CKEditorError[za("0x13d")](o,this),n}[za("0xd9")](t,n=null,o={}){if(t[za("0x96")])return null;const s=this[za("0x65")].plugins.get("Users").me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,za("0xb9")))if(o[za("0x12f")]){if(!o[za("0xcc")]){if(!this[za("0xd")]&&o.containsRangeInObject)continue;return e}if(n==e[za("0xb")]){const n=e.getFirstRange();return n.start.isEqual(t[za("0xa1")])?this[za("0x15")](e,this._model[za("0x98")](t[za("0x106")],n[za("0xa1")])):this[za("0x15")](e,this._model[za("0x98")](n.start,t[za("0xa1")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:za("0xb9"),a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x116")](x,r,i,t),a}[za("0xf")](t,n=za("0xf7"),o={}){const s=this[za("0x65")][za("0x1c")][za("0x1a")](za("0x44")).me,r=this[za("0x63")][za("0x60")]("insertion",n,za("0x119"));for(const e of this.getSuggestions())if(e[za("0xec")].id==s.id&&za("0xb9")==e[za("0x21")]&&e[za("0xb")]==n&&(r(e[za("0x4a")](),t)||r(t,e.getRanges()))){for(const n of t)e[za("0x1d")](n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this[za("0xa7")](e,za("0xb9"))){if(!o.isOwn)continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[za("0x41")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xea")+n,c=this[za("0xd0")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo.getMultiRangeId());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[za("0x96")])return null;if(za("0x37")===this[za("0x45")]){const e=this._suggestionFactory[za("0x60")](za("0x28"),o,za("0xeb"));return this[za("0x11c")]((()=>e([t],n,s))),null}const r=this[za("0x65")].plugins[za("0x1a")](za("0x44")).me,i=[];if("always"!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[za("0xa7")](t,za("0xb9")))n[za("0x12f")]&&!n[za("0x4e")]&&i[za("0xb6")](...e.getRanges());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("0x80")];){const o=n[e][za("0x79")](t);n[za("0x9a")](e,1,...o),e+=o[za("0x80")]}}return n}(t,i);x[za("0x80")]&&this[za("0x86")][za("0x2c")]((()=>{for(const t of x){const e=this[za("0x63")][za("0x60")]("formatInline",o,za("0xeb"));this[za("0x11c")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x106")],a=t[za("0xa1")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x28"))){if(!n[za("0x12f")])continue;if(e[za("0xb")]!=o)continue;const s=e[za("0x62")]();if(s[za("0x41")](t,!0))return null;x=x[za("0xac")](s[za("0x106")])?x:s[za("0x106")],a=a[za("0x9c")](s[za("0xa1")])?a:s[za("0xa1")],i?s[za("0x106")][za("0xac")](i[za("0x62")]()[za("0x106")])?(i[za("0xf5")](),i=e):e[za("0xf5")]():i=e}const c=this._model.createRange(x,a);if(i)this[za("0x15")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xd0")]({id:t,type:za("0x136")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x116")](za("0x136")+o,t,i,c)}}return null}[za("0x25")](t,n,o=[],s=null,r={}){n[za("0x1f")]||(n.formatGroupId=n[za("0x8")]),n[za("0xe6")]=t.is(za("0x127")),s=s||$a(n);const i=o[za("0x4c")]((t=>Qa(t,this._model))),x=t.is(za("0x127"))?t:Qa(t,this[za("0x86")]);if("never"===this[za("0x45")]){const t=this[za("0x63")][za("0x60")](za("0x121"),s,za("0xeb"));return this[za("0x11c")]((()=>t([x],n,r))),null}i[za("0xb6")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0x102")!==this[za("0x45")]){const t=this._suggestionFactory[za("0x60")]("formatBlock",s,za("0xeb"));return this[za("0x11c")]((()=>t([x],n,r))),null}let c=null,l=x.start,u=x[za("0xa1")];for(const{suggestion:t,meta:e}of this[za("0xa7")](x,za("0x121"))){if(!e.isOwn||e.isNextTo||e[za("0xd4")]||e[za("0x4e")])continue;if(t[za("0x10d")][za("0x1f")]!=n[za("0x1f")])continue;const o=t[za("0x62")]();if(t[za("0xb")]==s){if(o.containsRange(x,!0))return null;l=l[za("0xac")](o[za("0x106")])?l:o.start,u=u.isAfter(o[za("0xa1")])?u:o[za("0xa1")],c?o.start[za("0xac")](c[za("0x62")]()[za("0x106")])?(c.removeMarkers(),c=t):t[za("0xf5")]():c=t}else{const e=x[za("0x55")](o);this[za("0x81")](t,e)}}const d=this[za("0x65")][za("0x1c")][za("0x1a")](za("0x44")).me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0x15")](c,this[za("0x86")].createRange(l,u)),c;{const t=this[za("0xd0")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker("formatBlock:"+s,g,m,this[za("0x86")][za("0x98")](l,u)),t}}[za("0x7f")](t,n,o=[],s=null,r={}){n[za("0x1f")]||(n.formatGroupId=n.commandName);const i=t[0];n.multipleBlocks=i.is("range"),s=s||$a(n);const x=o[za("0x4c")]((t=>Qa(t,this[za("0x86")]))),a=i.is(za("0x127"))?t:t[za("0x4c")]((t=>Qa(t,this._model)));if(za("0x37")===this[za("0x45")]){const t=this[za("0x63")][za("0x60")](za("0x121"),s,za("0xeb"));return this[za("0x11c")]((()=>t(a,n,r))),null}x[za("0xb6")](...a);let c=!0;for(const t of x)if(!this[za("0xca")](t)){c=!1;break}if(c&&za("0x102")!==this[za("0x45")]){const t=this._suggestionFactory[za("0x60")](za("0x121"),s,za("0xeb"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this.editor[za("0x1c")][za("0x1a")](za("0x44")).me;for(const t of this[za("0xf3")]()){if(t[za("0xec")].id!=l.id)continue;if(za("0x121")!=t[za("0x21")]||t[za("0x10d")][za("0x1f")]!=n.formatGroupId)continue;const e=t.subType==s;for(let n=0;n<a[za("0x80")];n++){const o=a[n];for(const s of t[za("0xfb")]()){const r=s[za("0xd8")]();if(o[za("0x84")](r)){e?(a[za("0x9a")](n,1),n--):t.removeMarker(s[za("0x113")]);break}}}}if(0==a.length)return null;const u=this._suggestionFactory[za("0x60")](za("0x121"),s,za("0x119"));for(const t of this[za("0xf3")]())if(t.author.id==l.id&&"formatBlock"==t[za("0x21")]&&t[za("0x10d")].formatGroupId==n[za("0x1f")]&&t[za("0xb")]==s&&(u(t[za("0x4a")](),a)||u(a,t[za("0x4a")]()))){for(const e of a)t[za("0x1d")](e);return t}const d=(0,e.uid)(),g=l.id,m=za("0x12b")+s,f=this[za("0xd0")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x116")](m,d,g,t,Zo[za("0x46")]());return f}[za("0x129")](t,n=null,o={}){if(t[za("0x96")])return null;const s=this[za("0x65")].plugins.get(za("0x44")).me,r=new i.LiveRange(t[za("0x106")],t.end);for(const{suggestion:t,meta:e}of this[za("0xa7")](r,za("0xb9")))if(e.isOwn&&!e[za("0xcc")])if(t[za("0x140")]){const e=t[za("0x4a")]()[za("0xa3")]((t=>za("0x75")!=t[za("0x89")][za("0x95")]));if(e[za("0x90")]((t=>r[za("0x41")](t,!0)))&&t.discard(),e[za("0x112")]((t=>t[za("0x41")](r,!0)))){const t=this._suggestionFactory[za("0x60")]("deletion",n,za("0xeb"));return this[za("0x11c")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[za("0x62")]());null!==e&&t[za("0x12")]([e],null,o)}if(r.detach(),r.isCollapsed||za("0x75")==r[za("0x89")].rootName)return null;let x=null,a=r.start,c=r[za("0xa1")];for(const{suggestion:t,meta:e}of this[za("0xa7")](r,za("0x8a")))if(e.isOwn)if(t[za("0x140")]&&this[za("0xd")]){let e=!0;for(const n of t[za("0x4a")]()){if(n[za("0x41")](r,!0))return t;r[za("0x41")](n)||(e=!1)}e&&t[za("0x100")]()}else{const n=t[za("0x62")]();if(n.containsRange(r,!0)){if(!this._mergeNestedSuggestions&&e[za("0xd4")])continue;return t}a=a[za("0xac")](n[za("0x106")])?a:n[za("0x106")],c=c[za("0x9c")](n[za("0xa1")])?c:n[za("0xa1")],x?n[za("0x106")].isBefore(x[za("0x62")]()[za("0x106")])?(x[za("0xf5")](),x=t):t[za("0xf5")]():x=t}if(x)return this._setSuggestionRange(x,this[za("0x86")][za("0x98")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x86")][za("0x98")](a,c),i=s.id,x=n?za("0xae")+n:za("0x8a"),l=this[za("0xd0")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}[za("0xf1")](t,n=za("0xf7"),o={}){const s=this[za("0x65")][za("0x1c")].get(za("0x44")).me,r=t[za("0x4c")]((t=>new i.LiveRange(t[za("0x106")],t.end))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xa7")](t,za("0xb9")))n[za("0x12f")]&&!n.isNextTo&&x.add(e);for(const e of x)if(e[za("0x140")]){const s=e[za("0x4a")]();if((!e[za("0x131")]||!e[za("0x131")][za("0xfc")])&&s[za("0x90")]((t=>r[za("0x112")]((e=>e[za("0x41")](t,!0)))))&&e[za("0x100")](),r[za("0x90")]((t=>s[za("0x112")]((e=>e[za("0x41")](t,!0)))))){const e=this[za("0x63")][za("0x60")](za("0x8a"),n,za("0xeb"));return this[za("0x11c")]((()=>e(t,null,o))),null}}else{const t=e[za("0x62")]();if(r.some((e=>e.containsRange(t,!0)))&&e.discard(),r.every((e=>t[za("0x41")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback(za("0x8a"),n,"accept");return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[za("0x63")][za("0x60")](za("0x8a"),n,za("0x119"));let c=null;for(const t of this[za("0xf3")]())if(t[za("0xec")].id==s.id&&t[za("0x14")]&&"deletion"==t[za("0x21")]&&t[za("0xb")]==n&&(a(t[za("0x4a")](),r)||a(r,t[za("0x4a")]())))if(c){if(t[za("0x6c")]&&t[za("0x6c")].length)continue;for(const e of t[za("0x4a")]())c.isIntersectingWithRange(e)||c[za("0x1d")](e);t[za("0xf5")]()}else{c=t;for(const e of r)t[za("0x126")](e)||t.addRange(e)}if(c)return c;x[za("0x22")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xa7")](t,za("0x8a")))n.isOwn&&x[za("0x122")](e);for(const t of x){const e=t[za("0x4a")]();if((!o||!o[za("0xfc")])&&r[za("0x90")]((t=>e[za("0x112")]((e=>e[za("0x41")](t,!0))))))return t;(!t.attributes||!t[za("0x131")][za("0xfc")])&&e[za("0x90")]((t=>r[za("0x112")]((e=>e[za("0x41")](t,!0)))))&&t[za("0x100")]()}const l=(0,e.uid)(),u=s.id,d=za("0xae")+n,g=this[za("0xd0")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t.detach(),t[za("0x96")]||za("0x75")==t[za("0x89")].rootName||this[za("0x116")](d,l,u,t,Zo[za("0x46")]());return g}_setSuggestionRange(t,e){const n=t[za("0x9f")]();this[za("0x86")][za("0x2c")]((t=>{t[za("0xdb")](n,{range:e})}))}[za("0x91")](t){const e=t.id,n=this[za("0x65")].config[za("0x1a")](za("0x73"));this._commentsRepository.hasCommentThread(e)||this[za("0xf0")][za("0x43")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0xf0")].getCommentThread(e);o[za("0x123")](za("0x120")),o[za("0x120")]=!1,t[za("0x6c")]=o}[za("0x77")](t,n,o,s){if(t[za("0x21")]!=n||t[za("0xb")]!=o||t[za("0x5a")].id!=s)throw this[za("0x65")][za("0xda")](za("0xe1")),new e.CKEditorError(za("0xe1"),this)}[za("0x81")](t,n){const o=t.getFirstRange();if(n[za("0x84")](o))t[za("0xf5")]();else if(o[za("0x41")](n)){const s=this[za("0x86")][za("0xba")](n[za("0x106")][za("0x111")],za("0xa1"));this[za("0x15")](t,this[za("0x86")].createRange(o[za("0x106")],s));const r=(0,e.uid)(),i=t[za("0x5a")].id,x=t[za("0x21")]+":"+t[za("0xb")];this[za("0xd0")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[za("0x131")]});const a=this[za("0x86")].createPositionAt(n.end.parent,"after"),c=this[za("0x86")][za("0x98")](a,o[za("0xa1")]);this._addSuggestionMarker(x,r,i,c)}else if(o[za("0x29")](n[za("0x106")])){const e=this[za("0x86")][za("0xba")](n[za("0x106")].nodeBefore,za("0xa1"));this[za("0x15")](t,this[za("0x86")][za("0x98")](o.start,e))}else{const e=this[za("0x86")].createPositionAt(n[za("0xa1")][za("0x117")],za("0x97"));this[za("0x15")](t,this[za("0x86")][za("0x98")](e,o[za("0xa1")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[za("0xa7")](t,"insertion")){if(!n.isOwn)continue;const o=e[za("0x4a")]();for(const e of o)if(!t[za("0x79")](e).length)return!0}return!1}[za("0x8b")](t){const n=this[za("0x65")].plugins[za("0x1a")](za("0x44"))[za("0xc")](t);if(!n)throw new e.CKEditorError(za("0x124"),this);return n}[za("0x13c")](t){const e=this[za("0x65")].plugins[za("0x1a")](za("0x44")),n=(0,r.hashObject)(za("0xc9")+t);return e[za("0xc")](n)||e[za("0x6e")]({id:n,name:t})}[za("0xa9")](t,e,n,o,s){const r=this[za("0x8b")](o),i=this[za("0x63")][za("0x7")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(i,"accept",(()=>{this[za("0xd2")](n,{state:za("0x94")})}),{priority:za("0x78")}),this[za("0x0")](i,"discard",(()=>{this[za("0xd2")](n,{state:za("0x58")})}),{priority:za("0x78")}),this._suggestions.set(n,i),this[za("0xd5")][za("0x9b")](i,za("0xaa")),i}[za("0xb8")](t){const e=t[za("0x85")](":");return{group:e[0],type:e[1],subType:e[za("0x80")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[za("0x80")]?e[5]:null}}[za("0x138")](t,n,o){const s=t[za("0x62")](),r=s[za("0x106")],i=s[za("0xa1")];this[za("0x15")](t,this[za("0x86")][za("0x98")](r,n));const x=(0,e.uid)(),a=t[za("0x5a")].id,c=t[za("0x21")]+(t[za("0xb")]?":"+t.subType:"");this[za("0xd0")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x131")],data:t[za("0x10d")]}),"formatBlock"==t[za("0x21")]&&(o=this._model.createPositionBefore(o[za("0x117")])),this[za("0x116")](c,x,a,this[za("0x86")].createRange(o,i))}[za("0xa7")](t,e=null){const n=[],o=this[za("0x86")][za("0xe")],s=this[za("0x65")].plugins.get(za("0x44")).me;for(const r of this[za("0xf3")]())if(r[za("0x14")]&&(!e||r.type==e))for(const e of r[za("0x4a")]()){const i=t.start[za("0x84")](e[za("0xa1")])||t[za("0xa1")][za("0x84")](e[za("0x106")]);if(i||t[za("0x55")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0x106")],t),a=e[za("0x41")](t)&&Ka(o,t[za("0x106")],e);n[za("0xb6")]({suggestion:r,meta:{isOwn:s==r[za("0xec")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x116")](t,e,n,o,s){this[za("0x86")][za("0x2c")]((r=>{let i=za("0x42")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xb1")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[za("0xef")],n=t[za("0x7d")];t.previous=null,null!=e&&(e[za("0x7d")]=null),t[za("0x7d")]=null,null!=n&&(n[za("0xef")]=null),za("0x3c")==this[za("0xd5")][za("0x1a")](t)&&(this._suggestionState[za("0x9b")](t,"removed"),this[za("0x5")]("suggestionUnloaded",t,e,n))}[za("0xd0")](t){const n=t.id,o=this.addSuggestionData(t);if(this._adapter&&this[za("0x11b")].addSuggestion){const s=this[za("0x65")][za("0x1c")][za("0x1a")](za("0xd1")),r=o[za("0x4")],i=o[za("0xb")]?o.type+":"+o[za("0xb")]:o[za("0x21")],x=this[za("0x65")][za("0x8c")],a=s[za("0x122")](Yo(x,za("0x32"))),c={id:n,type:i,hasComments:r,data:t[za("0x10d")]||null,originalSuggestionId:t[za("0x38")]||null,attributes:o[za("0x131")]};this[za("0x11b")][za("0x110")](c)[za("0x103")]((t=>{o[za("0xa6")]=!0,s[za("0xdc")](a),t&&t[za("0xb0")]&&(this[za("0x5f")][za("0x1a")](n)[za("0xb0")]=t[za("0xb0")])}))[za("0x4d")]((t=>{throw(0,e.logWarning)(za("0x3b")),this[za("0x65")][za("0x51")][za("0x10e")]({isUndoable:!1},(()=>{o[za("0x100")]()})),o[za("0x13f")](),this[za("0x5f")][za("0x88")](o.id),this[za("0xd5")][za("0x88")](o),t}))}return o}[za("0xd2")](t,e){const n=this.editor.plugins[za("0x1a")](za("0xd1")),o=this[za("0x23")](t);if(this[za("0x11b")]&&this._adapter[za("0xc0")])if(o._saved){const o=n[za("0x122")](Yo(this[za("0x65")][za("0x8c")],za("0x32")));this[za("0x11b")][za("0xc0")](t,e)[za("0x103")]((()=>{n.remove(o)}))}else o.on(za("0x35"),(()=>{this[za("0xd2")](t,e)}))}_getSuggestionData(t){if(!this[za("0x11b")]||!this[za("0x11b")][za("0x23")])throw new e.CKEditorError(za("0x9"),this);return this[za("0x11b")][za("0x23")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xb8")](t),r=this._suggestions.get(e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0x77")](r,n,o,s),this[za("0xd5")].get(r)){case za("0xaa"):this._getSuggestionData(e).then((t=>{let n=Promise[za("0x3")]();t.hasComments&&(n=this._commentsRepository[za("0xe7")]({channelId:this[za("0x65")][za("0x12e")][za("0x1a")](za("0x73")),threadId:e})),n[za("0x103")]((()=>{this[za("0x11d")](t)._saved=!0}))})),this[za("0xd5")][za("0x9b")](r,"markerReady");break;case za("0xa4"):this[za("0xd2")](e,{state:za("0x87")});case za("0x115"):this._suggestionState[za("0x9b")](r,za("0x3c")),this[za("0x5")](za("0x61"),r);break;case"ready":this[za("0x5")]("suggestionChanged",r)}return r[za("0xe2")](t),r}[za("0x3f")](t){const e=Array[za("0x50")](t)[za("0xa3")]((t=>!t.isMultiRange)),n=this[za("0xf3")]({skipNotAttached:!0})[za("0xa3")]((t=>!t[za("0x140")])),o=n[za("0xa3")]((e=>!t[za("0x130")](e))),s=new Map(n[za("0x4c")]((t=>[t,this[za("0x63")].getSuggestionCallback(t[za("0x21")],t[za("0xb")],za("0x52"))]))),r=new Map(n[za("0x4c")]((t=>[t,t[za("0x62")]()]))),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("0x80")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x80")];t++){const n=e[t];!x[za("0x130")](n)&&n[za("0xef")]&&(n[za("0xef")][za("0x7d")]===n&&(n[za("0xef")][za("0x7d")]=null),n[za("0xef")]=null),!i[za("0x130")](n)&&n[za("0x7d")]&&(n[za("0x7d")].previous===n&&(n[za("0x7d")][za("0xef")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0x7d")]=n[1],n[1][za("0xef")]=n[0],i[za("0x122")](n[0]),x[za("0x122")](n[1]))}}function c(t,e){if(t.author.id!==e[za("0xec")].id)return null;const n=s.get(t)(t,e,r[za("0x1a")](t),r[za("0x1a")](e));return n&&s[za("0x1a")](e)(t,e,r[za("0x1a")](t),r.get(e))?n[1].commentThread&&n[1].commentThread[za("0x80")]?null:n:null}}[za("0x7e")](t){const e=Array[za("0x50")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0xa3")]((e=>!t.has(e))),s=new Map(e[za("0x4c")]((t=>[t,this[za("0x63")].getSuggestionCallback(t[za("0x21")],t[za("0xb")],za("0x119"))]))),r=new Map(n[za("0x4c")]((t=>[t,t.getRanges()])));for(let t=0;t<e[za("0x80")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x80")];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("0x80")];i++){const o=n[i];if(o[za("0x21")]!==e[za("0x21")]||o[za("0xec")].id!==e[za("0xec")].id||o.subType!==e[za("0xb")])continue;const x=s.get(e),a=r[za("0x1a")](e),c=r[za("0x1a")](o),l=e[za("0x6c")]&&e[za("0x6c")].length,u=o[za("0x6c")]&&o[za("0x6c")][za("0x80")];if(!l&&x(c,a))return t[za("0x99")](o,e),r[za("0x88")](e),!0;if(!u&&x(a,c))return t[za("0x99")](e,o),r[za("0x88")](o),!0}return!1}}_joinSuggestions(t,e){if(t[za("0x140")])for(const n of e[za("0x4a")]())t[za("0x1d")](n);else{const n=e[za("0x62")]()[za("0xa1")];this[za("0x15")](t,this[za("0x86")][za("0x98")](t.getFirstRange()[za("0x106")],n))}e.removeMarkers()}}class Va{constructor(t){this[za("0x8e")]=t,this[za("0x86")]=t[za("0x51")],this[za("0x49")]=new Map,this[za("0x133")]=new Map,this[za("0x67")]()}[za("0x7")](t,e,n,o,s,r){return new Zo(this[za("0x86")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x60")](t,e,za("0xeb"))(...n),onDiscard:(...n)=>this[za("0x60")](t,e,"discard")(...n)})}[za("0x20")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x49")][za("0x9b")](s,o)}[za("0x60")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x49")][za("0x1a")](o)||this[za("0x133")][za("0x1a")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[za("0xfd")](((t,e)=>t[za("0x106")][za("0xac")](e.start)?1:-1)),this._model.change((e=>{for(const n of t){let t;t=n[za("0xa1")][za("0xcf")]&&n[za("0xa1")][za("0x117")]==n[za("0x106")][za("0xa8")]?e[za("0x8d")](n.start[za("0xa8")],"on"):e[za("0x8d")](n),this[za("0x86")][za("0xe8")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0x2c")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x4c")]((t=>(qa(t)&&(t=this[za("0x86")][za("0x98")](t[za("0xa1")])),t))).filter((t=>za("0x75")!==t.root.rootName));if(r[za("0x80")]<1)return;const x=Array[za("0x50")](this[za("0x86")][za("0xaf")][za("0x7c")][za("0x4a")]())[za("0x4c")]((t=>i.LiveRange[za("0x2b")](t)));n[za("0x5c")](r);for(const t of this._editor.commands[za("0x56")]())t.refresh();s[za("0xb6")]({forceDefaultExecution:!0}),this[za("0x8e")].execute(o,...s);const a=x[za("0xa3")]((t=>za("0x75")!=t[za("0x89")][za("0x95")]));a[za("0x80")]>0&&n.setSelection(a);for(const t of x)t[za("0x72")]()}))},o=(t,e)=>1==t[za("0x80")]&&1==e[za("0x80")]&&t[0].end.isEqual(e[0][za("0x106")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x86")])?[t,e]:Za(e,t,o,n,this[za("0x86")])?[e,t]:null;this._defaultCallbacks.set(za("0x101"),t),this[za("0x133")][za("0x9b")](za("0xd6"),e),this[za("0x133")].set(za("0x71"),o),this[za("0x133")][za("0x9b")](za("0x54"),s),this._defaultCallbacks.set(za("0xde"),e),this[za("0x133")][za("0x9b")]("deletion:discard",t),this[za("0x133")][za("0x9b")]("deletion:join",o),this[za("0x133")][za("0x9b")](za("0xc6"),s),this[za("0x133")].set(za("0xe5"),n),this[za("0x133")].set(za("0xad"),t),this[za("0x133")][za("0x9b")](za("0xc4"),o),this._defaultCallbacks.set(za("0xfa"),t),this[za("0x133")][za("0x9b")]("formatBlock:accept",n),this[za("0x133")][za("0x9b")](za("0x6f"),t),this[za("0x133")][za("0x9b")](za("0x93"),o),this[za("0x133")].set("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e[za("0x117")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0x89")]==o)return!1;if(!n.containsItem(o))return!1;if(t.isObject(o)||t[za("0x7b")](o))return!0}return!1}function qa(t){return t[za("0xa1")][za("0x117")]==t[za("0x106")][za("0xa8")]&&t[za("0xa1")][za("0xb5")]}function Xa(t,e,n,o){const s=t=>!t[za("0xb7")].is(za("0x10a"))&&!o[za("0xe4")](t.item),r=t[za("0x106")][za("0x135")](s),i=t[za("0xa1")][za("0x135")](s,{direction:za("0x13b")});return!(t.start[za("0x84")](r)&&t[za("0xa1")][za("0x84")](i)||(r.isBefore(i)?n[za("0xdb")](e,{range:n.createRange(r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x106")][za("0xa8")];return e&&e.is(za("0x13a"))}function Qa(t,e){const n=e.schema[za("0xe4")](t)||e[za("0xe")][za("0x18")](t);return e[za("0x98")](e[za("0xba")](t,za("0xbc")),n?e[za("0x7a")](t):e[za("0xba")](t,"end"))}function Za(t,e,n,o,s){if(n[za("0xa1")][za("0x84")](o[za("0x106")]))return!0;if(t[za("0x21")]!=e[za("0x21")])return!1;if(!n[za("0xa1")][za("0x74")](o[za("0x106")]))return!1;const r=s[za("0x98")](n[za("0xa1")],o[za("0x106")]).getWalker();for(const t of r)if([za("0x3a"),za("0x64")].includes(t[za("0x21")])&&s[za("0xe")].isLimit(t[za("0xb7")]))return!1;return!0}const Ya=["_editor","canEditAt","canDiscard","add","_acceptCommand","commands","destroy","isEnabled","discardSuggestion","execute","_setPendingAction","_pendingAction","stopListening","change:isDirty","_removePendingAction","get","view","commentThreadController","unbind","getRanges","bind","acceptSuggestion","model","remove","canAccept","_discardCommand","PendingActions","plugins","listenTo"];var tc,ec;tc=Ya,ec=448,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("0x9")]=e,this[nc("0x3")]=n,this[nc("0x4")]=o,this[nc("0x10")]=t,this[nc("0x14")]=t[nc("0x15")][nc("0x2")](nc("0x8")),this[nc("0xc")]=t.commands[nc("0x2")](nc("0x18")),this[nc("0x3")].bind(nc("0x17")).to(this[nc("0x14")],this[nc("0xc")],((t,e)=>t||e)),this[nc("0x3")][nc("0x7")](nc("0xb")).to(this._acceptCommand,nc("0x17"),(t=>t&&this[nc("0x10")][nc("0x9")].canEditAt(e[nc("0x6")]()))),this[nc("0x3")][nc("0x7")]("canDiscard").to(this[nc("0xc")],nc("0x17"),(t=>t&&this._editor[nc("0x9")][nc("0x11")](e[nc("0x6")]()))),this[nc("0x1b")]=null,n.isDirty&&this[nc("0x1a")](),this[nc("0xf")](n,nc("0x8"),(()=>this[nc("0x8")]())),this[nc("0xf")](n,nc("0x18"),(()=>this[nc("0x18")]())),this.listenTo(n,nc("0x0"),(()=>{n.isDirty?this[nc("0x1a")]():this[nc("0x1")]()}))}acceptSuggestion(){this._acceptCommand.execute(this.model.id)}discardSuggestion(){this[nc("0xc")][nc("0x19")](this[nc("0x9")].id)}[nc("0x16")](){this.view[nc("0x5")](nc("0x17")),this[nc("0x3")][nc("0x5")](nc("0xb")),this[nc("0x3")].unbind(nc("0x12")),this[nc("0x1c")](),this[nc("0x4")][nc("0x16")](),this[nc("0x1b")]&&this[nc("0x1")]()}_setPendingAction(){const t=Yo(this[nc("0x10")].locale,"PENDING_ACTION_SUGGESTION");this._pendingAction=this[nc("0x10")].plugins[nc("0x2")](nc("0xd"))[nc("0x13")](t)}_removePendingAction(){null!==this[nc("0x1b")]&&this._editor[nc("0xe")][nc("0x2")](nc("0xd"))[nc("0xa")](this._pendingAction),this[nc("0x1b")]=null}}const sc=["setData","isActive","addComment","bind","commentThread","editorConfig","length","isReadOnly","commentThreadInputView","commentsListView","destroy","_model","focus","_createCommentViews","_createCommentThreadInputView","isEnabled","element","locale","disableComments","cancel","delegate","commentInputView","hasDirtyComment","value","canAccept","editor","authoredAt","set","_config","removeComment"];var rc,ic;rc=sc,ic=484,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("0x5")]=null,this[xc("0x4")]=null,this[xc("0x17")]("isActive",!1),this[xc("0x17")](xc("0x16"),e.authoredAt),this[xc("0x1d")](xc("0x16")).to(e),this.set("descriptionParts",[]),this[xc("0x17")]("isDirty",!1),this[xc("0x17")](xc("0xb"),!1),this[xc("0x17")](xc("0x14"),!1),this.set("canDiscard",!1),this[xc("0x7")]=e,this._localUser=n,this[xc("0x18")]=o,o[xc("0xe")]?this[xc("0x17")]("length",1):this._createCommentViews()}[xc("0x8")](){this[xc("0xc")][xc("0x8")]()}[xc("0x6")](){this.commentsListView&&this[xc("0x5")][xc("0x6")](),this[xc("0x4")]&&this[xc("0x4")].destroy(),super[xc("0x6")]()}[xc("0x9")](){const{CommentsListView:t}=this[xc("0x18")];this[xc("0x5")]=new t(this[xc("0xd")],this[xc("0x7")].commentThread,Object.assign({CommentView:this[xc("0x18")].CommentView},this._config)),this[xc("0x5")][xc("0x10")](xc("0x19")).to(this),this[xc("0x5")][xc("0x10")]("updateComment").to(this),this.commentsListView.bind(xc("0x1b")).to(this),this[xc("0x17")](xc("0x2"),this[xc("0x5")].length+1),this[xc("0x1d")](xc("0x2")).to(this.commentsListView,xc("0x2"),(t=>t+1)),this[xc("0x4")]=this[xc("0xa")](),this.on(xc("0x19"),(()=>this[xc("0x8")]())),this[xc("0x1d")]("isDirty").to(this[xc("0x5")],xc("0x12"),this[xc("0x4")][xc("0x11")],xc("0x13"),((t,e)=>t||!!e))}[xc("0xa")](){const{CommentThreadInputView:t}=this[xc("0x18")],e=new t(this[xc("0xd")],this._localUser,this[xc("0x18")][xc("0x1")]),n=e[xc("0x11")];return e[xc("0x1d")]("showInput").to(this,xc("0x1b"),this[xc("0x7")].commentThread,"isReadOnly",n,xc("0x13"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this.fire(xc("0x1c"),e),n[xc("0x15")][xc("0x1a")]("")})),n.on(xc("0xf"),(()=>this[xc("0x8")]())),n.bind("disabledSubmit").to(this[xc("0x7")][xc("0x0")],xc("0x3")),e}}const cc=["creator",".ck-annotation__content-wrapper","_model","canAccept","ck-annotation__info","span","commentsListView","EXTERNAL_IMPORT_WORD_SUGGESTION","name","render","locale","ck-suggestion-","descriptionParts","acceptButton","innerHTML","</p>","push","color","getTemplate","ck-suggestion--accept","formatDateTime","_descriptionElement","@external","value","description","Accept suggestion","join","getUserViewNotificationText","author","canDiscard","children","commentThreadInputView","ck-comment__external","discardSuggestion","ck-annotation__info-time","source","ck-annotation__info-name","ck-suggestion__main","_createButton","ck-suggestion__info","<p>","change:description","_config","acceptSuggestion","isActive","content","isExternal","ck-annotation__actions","isEnabled","authoredAt","setTemplate","userView","attributes","disableComments","EXTERNAL_IMPORT_WORD_AVATAR","set","EXTERNAL_AVATAR","bind","getExternalSuggestionNote","fire","commentThread","type","ck-annotation__user","ck-suggestion__user","Discard suggestion","div","discardButton","time","split","innerText",'<span class="ck-suggestion-color" style="background-color: ',"extendTemplate","importWord","ck-annotation","ck-suggestion--disabled-comments","cancel",'<span class="ck-suggestion-type">',"title","EXTERNAL_SUGGESTION","ck-annotation__main","createElement","ck-suggestion__info-name","map","ck-suggestion"];var lc,uc;lc=cc,uc=199,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[dc("0x18")](dc("0x1e"),""),this[dc("0x1a")](dc("0x1e")).to(this,dc("0x41"),(t=>t&&t[0]?t[0].type:"")),this.bind(dc("0x4d")).to(this,dc("0x41"),this,dc("0xd"),((t,e)=>{let n="";for(const e of t)n+=dc("0x9")+mc(e[dc("0xe")],e[dc("0x46")])+dc("0x44");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0x4a")]=null,this.acceptButton=this[dc("0x7")](Yo(e,dc("0x4e")),t.icons.check,dc("0x48"),dc("0xc"),"sw"),this[dc("0x42")][dc("0x1a")](dc("0x11")).to(this,dc("0x38")),this.discardButton=this._createButton(Yo(e,dc("0x21")),t.icons[dc("0x2c")],"ck-suggestion--discard",dc("0x2"),"sw"),this[dc("0x23")][dc("0x1a")](dc("0x11")).to(this,dc("0x52")),this[dc("0x14")]=new r.UserView(e,this[dc("0x37")][dc("0x51")],this[dc("0x50")]()),this[dc("0x14")].extendTemplate({attributes:{class:[dc("0x20"),dc("0x1f")]}}),this[dc("0x13")](this[dc("0x47")]())}[dc("0x47")](){const t=this.bindTemplate,e=[{tag:dc("0x22"),attributes:{class:[dc("0x8"),dc("0x39")]},children:[{tag:dc("0x3a"),children:[{text:this[dc("0x14")][dc("0x3d")]}],attributes:{class:[dc("0x32"),dc("0x5")]}},{tag:dc("0x24"),attributes:{datetime:t.to(dc("0x12")),class:["ck-comment__info-time",dc("0x3")]},children:[{text:t.to(dc("0x12"),(t=>this[dc("0xb")][dc("0x49")](t)))}]}]},{tag:dc("0x22"),attributes:{class:["ck-suggestion__actions",dc("0x10")]},children:[this.acceptButton,this.discardButton]},{tag:dc("0x22"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[dc("0x37")][dc("0xf")]&&e[dc("0x45")]({tag:dc("0x22"),attributes:{class:[dc("0x1")]},children:[{text:this[dc("0x1b")]()}]});const n={tag:dc("0x22"),attributes:{class:["ck-suggestion-wrapper",t.if(dc("0xd"),"ck-suggestion-wrapper--active"),t.to(dc("0x1e"),(t=>dc("0x40")+t)),this[dc("0xb")][dc("0x16")]&&dc("0x2b")],"data-suggestion-id":this._model.id,"data-thread-id":this[dc("0x37")][dc("0x1d")].id,"data-author-id":this[dc("0x37")].author.id,tabindex:-1},children:[{tag:dc("0x22"),attributes:{class:[dc("0x34"),dc("0x2a")]},children:[this[dc("0x14")],{tag:dc("0x22"),attributes:{class:[dc("0x6"),dc("0x30")]},children:e}]}]};return this.commentsListView&&this[dc("0x0")]&&n[dc("0x53")][dc("0x45")](this[dc("0x3b")],this[dc("0x0")]),n}[dc("0x3e")](){super[dc("0x3e")](),this[dc("0x4a")]=this.element.querySelector(dc("0x36")),this._descriptionElement[dc("0x43")]=this.description,this.on(dc("0xa"),((t,e,n)=>{this._descriptionElement[dc("0x43")]=n}))}[dc("0x7")](t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[dc("0x18")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x28")]({attributes:{class:n}}),i.on("execute",(()=>{this[dc("0x1c")](o,this[dc("0x37")].id)})),i}[dc("0x1b")](){return dc("0x29")===this._model[dc("0x15")][dc("0x4b")].source?Yo(this[dc("0x3f")],dc("0x3c")):Yo(this.locale,dc("0x2f"))}[dc("0x50")](){return this[dc("0x37")][dc("0xf")]?dc("0x29")===this[dc("0x37")][dc("0x15")][dc("0x4b")][dc("0x4")]?Yo(this[dc("0x3f")],dc("0x17"),this._model.creator.name):Yo(this[dc("0x3f")],dc("0x19"),this[dc("0x37")][dc("0x35")].name):null}}function mc(t,e){let n="";return n+=t[dc("0x25")]("*")[dc("0x33")](((t,e)=>e%2!=0?dc("0x2d")+fc(t)+"</span>":fc(t)))[dc("0x4f")](""),e&&(n+=dc("0x27")+e[dc("0x4c")]+'" title="'+e[dc("0x2e")]+'"></span>'),n}function fc(t){const e=document[dc("0x31")]("span");return e[dc("0x26")]=t,e[dc("0x43")]}const hc=["commandName","model","trackChanges","EditorAnnotations","isDirty","buttonView","_initializeController","comments.editorConfig","size","remove","CommentsUI","getRanges","CommentsRepository","source","comments","head","isEnabled","has","unbind","push","from","_descriptionFactory","toMany","_annotationViews","focus","TrackChangesUI","suggestion-","pluginName","config","some","isInContent","stopListening","createAnnotation","isOn","requires","type","suggestionChanged","destroy","descriptionParts","Annotations","init","_destroyController","acceptButton","commands","TrackChangesEditing","map","_disableComments","view","getMarkers","bind","comments.maxCommentCharsWhenCollapsed","getByInnerView","change:previous","button","_updateController","acceptSelectedSuggestions","innerView","previous","execute","activeMarkers","CommentView","Accept all suggestions","_createUIButton","switchbutton","filter","refreshSelectedViews","createCommentThreadController","_handleSuggestionControllerDelayed","isMultiRange","componentFactory","_viewToController","actionView","Discard all suggestions","activeAnnotations","_handleControllerBuffer","discardButton","define","locale","set","getAllAdjacentSuggestions","delete","editing","get","length","editor","Track changes","getJoined","acceptAllSuggestions","_suggestionToController","value","comments.maxCommentsWhenCollapsed","trackChanges.disableComments","change:activeAnnotations","mainView","add","separator","keys","discardSelectedSuggestions","clear","lowest","suggestionLoaded","addSourceCollector","getDescriptions","listenTo","plugins","discardAllSuggestions","suggestionUnloaded","createAnnotationView"];var pc,bc;pc=hc,bc=368,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("0x62")](){return[Wa,r.Users,Ec("0x4c"),Ec("0x67"),Ec("0x43")]}static get[Ec("0x5b")](){return Ec("0x59")}constructor(t){super(t),this[Ec("0x2c")]=new Map,this._viewToController=new Map,this[Ec("0x57")]=new Map,this[Ec("0x1e")]=new Map;const e=this[Ec("0x28")].config;e[Ec("0x20")]("trackChanges.SuggestionThreadView",gc),e[Ec("0x20")](Ec("0x2f"),!1),this[Ec("0x2")]=e[Ec("0x26")]("trackChanges.disableComments")}[Ec("0x17")](t,e){0===this[Ec("0x1e")][Ec("0x48")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x1e")]){const n=this[Ec("0x2c")].has(t);n||e?n&&e&&this._destroyController(t):this._initializeController(t)}this.editor[Ec("0x3c")].get(Ec("0x43"))[Ec("0x15")](),this._refreshActiveMarkers(),this[Ec("0x1e")][Ec("0x36")]()}),10),this[Ec("0x1e")][Ec("0x22")](t,e)}[Ec("0x68")](){const t=this[Ec("0x28")],e=t[Ec("0x3c")][Ec("0x26")]("TrackChangesEditing"),n=t[Ec("0x3c")][Ec("0x26")]("Annotations"),o=t[Ec("0x3c")][Ec("0x26")](Ec("0x43")),s=t[Ec("0x3c")][Ec("0x26")]("CommentsRepository");t.ui[Ec("0x19")].add(Ec("0x42"),(t=>this[Ec("0x12")](t))),o[Ec("0x39")]((()=>{const t=[];for(const[e,n]of Array.from(this._suggestionToController)){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x18")]){s.push(...t[Ec("0x4b")]());continue}const e=t.getFirstRange();if(s[Ec("0x27")]>0){const t=s[0][Ec("0x2a")](e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x53")]([n[Ec("0x3")],s])}return t})),this[Ec("0x3b")](e,Ec("0x38"),((t,e)=>{this[Ec("0x3b")](e,"change:previous",((t,n,o,s)=>{e.isInContent&&(null==o?(this[Ec("0xa")](s[Ec("0x4f")]),this[Ec("0x17")](e,!1)):(this[Ec("0xa")](o.head),this[Ec("0x17")](e,!0)))})),null===e[Ec("0xd")]?this[Ec("0x17")](e,!1):this._updateController(e[Ec("0x4f")])})),this[Ec("0x3b")](e,Ec("0x3e"),((t,e,n)=>{this[Ec("0x5f")](e,Ec("0x8")),this._handleControllerBuffer[Ec("0x24")](e);const o=n?n[Ec("0x4f")]:e,s=this[Ec("0x2c")][Ec("0x26")](o);null!==n&&this[Ec("0xa")](o),null===n&&s&&this[Ec("0x69")](e)})),this[Ec("0x3b")](e,Ec("0x64"),((t,e)=>{this[Ec("0xa")](e)})),this[Ec("0x3b")](n,Ec("0x30"),(()=>{this._refreshActiveMarkers()})),this[Ec("0x3b")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e.getSuggestion(n);this[Ec("0x2c")][Ec("0x26")](s)[Ec("0x3")].focus()}),{priority:Ec("0x37")})}_refreshActiveMarkers(){const t=this.editor[Ec("0x3c")][Ec("0x26")](Ec("0x67")),e=this[Ec("0x28")][Ec("0x3c")][Ec("0x26")](Ec("0x0")),n=Array[Ec("0x54")](t[Ec("0x1d")],(t=>t[Ec("0xc")])).filter((t=>this[Ec("0x1a")][Ec("0x51")](t))),o=[];for(const t of n){const e=this[Ec("0x1a")].get(t)[Ec("0x41")][Ec("0x23")]();o[Ec("0x53")](...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Ec("0xf")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x28")].commands[Ec("0x26")](Ec("0x42")),r=Yo(t,Ec("0x29"));n[Ec("0x45")][Ec("0x22")]({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("0x45")][Ec("0x5")](Ec("0x61")).to(o,Ec("0x2d")),n[Ec("0x45")].on(Ec("0xe"),(()=>{o[Ec("0xe")](),this.editor[Ec("0x25")].view[Ec("0x58")]()}));const i=new e.Collection,x=[{type:Ec("0x13"),model:{withText:!0,label:r,commandName:Ec("0x42")}},{type:"separator"},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,Ec("0x11")),commandName:Ec("0x2b")}},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Ec("0xb")}},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,Ec("0x1c")),commandName:Ec("0x3d")}},{type:Ec("0x9"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:Ec("0x35")}}];for(const t of x){let e={type:Ec("0x33")};if(t[Ec("0x41")]){const n=new s.Model(t[Ec("0x41")]),o=this[Ec("0x28")].commands[Ec("0x26")](n[Ec("0x40")]);n[Ec("0x5")](Ec("0x61"),"isEnabled").to(o,Ec("0x2d"),Ec("0x50")),e={type:t[Ec("0x63")],model:n}}i[Ec("0x32")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x14")]((t=>null!=t[Ec("0x41")]))[Ec("0x1")]((t=>this[Ec("0x28")][Ec("0x6b")][Ec("0x26")](t[Ec("0x41")].commandName))),c=n[Ec("0x45")];return c[Ec("0x1b")][Ec("0x52")](Ec("0x50")),c.arrowView.unbind(Ec("0x50")),c[Ec("0x1b")][Ec("0x5")]("isEnabled").to(o,Ec("0x50")),c.arrowView.bind(Ec("0x50"))[Ec("0x56")](a,Ec("0x50"),((...t)=>t[Ec("0x5d")]((t=>t)))),n.on(Ec("0xe"),(t=>{this.editor.execute(t[Ec("0x4d")][Ec("0x40")]),this[Ec("0x28")].editing.view[Ec("0x58")]()})),n}[Ec("0x46")](t){const e=this[Ec("0x28")],n=e[Ec("0x5c")],o=e[Ec("0x3c")][Ec("0x26")](Ec("0x67")),s=e[Ec("0x3c")][Ec("0x26")](Ec("0x4c")),i=e.plugins[Ec("0x26")](Ec("0x43")),x=e.plugins[Ec("0x26")](r.Users).me,a=n[Ec("0x26")](Ec("0x42")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x3c")].get(Ec("0x4a"));let u,d;this[Ec("0x57")].has(t.id)?(d=this[Ec("0x57")][Ec("0x26")](t.id),u=d[Ec("0x31")]):(u=new a(e[Ec("0x21")],t,x,{disableComments:this[Ec("0x2")],editorConfig:n[Ec("0x26")](Ec("0x47")),maxCommentsWhenCollapsed:n[Ec("0x26")](Ec("0x2e")),maxThreadTotalWeight:n[Ec("0x26")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Ec("0x26")](Ec("0x6")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x26")](Ec("0x21"))),CommentView:n[Ec("0x26")](Ec("0x4e"))[Ec("0x10")],CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x6a")].on(Ec("0xe"),(()=>{e[Ec("0x25")][Ec("0x3")][Ec("0x58")]()})),u[Ec("0x1f")].on(Ec("0xe"),(()=>{e[Ec("0x25")][Ec("0x3")][Ec("0x58")]()})),d=o[Ec("0x3f")](this[Ec("0x28")][Ec("0x21")],u),d[Ec("0x5")]("isDirty").to(u,Ec("0x44")),d[Ec("0x5")]("length").to(u),d[Ec("0x5")](Ec("0x63")).to(u,Ec("0x63"),(t=>Ec("0x5a")+t)),this[Ec("0x57")][Ec("0x22")](t.id,d));const g=s[Ec("0x16")](t.commentThread,u),m=new oc(e,t,u,g),f=t.getAllAdjacentSuggestions()[Ec("0x14")]((t=>t[Ec("0x5e")]));u[Ec("0x66")]=e.plugins[Ec("0x26")](Ec("0x0"))[Ec("0x55")][Ec("0x3a")](f),this[Ec("0x2c")][Ec("0x22")](t,m),this[Ec("0x1a")][Ec("0x22")](u,m);const h=o[Ec("0x60")]({view:d,target:()=>{const n=[],o=t[Ec("0x23")]()[Ec("0x14")]((t=>t[Ec("0x5e")]));for(const t of o)n[Ec("0x53")](...t[Ec("0x4")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x25")],n)},type:()=>Ec("0x5a")+m.view.type});o[Ec("0x32")](h),i.registerAnnotation(h)}[Ec("0x69")](t){const e=this[Ec("0x28")][Ec("0x3c")][Ec("0x26")](Ec("0x67")),n=this._suggestionToController[Ec("0x26")](t),o=n.view,s=e[Ec("0x7")](o);s&&e[Ec("0x49")](s),this[Ec("0x2c")][Ec("0x24")](t),this._viewToController[Ec("0x24")](o),n[Ec("0x65")]()}[Ec("0xa")](t){if(!t[Ec("0x5e")]||!this._suggestionToController[Ec("0x51")](t))return;const e=this[Ec("0x28")][Ec("0x3c")][Ec("0x26")](Ec("0x0")),n=this[Ec("0x2c")][Ec("0x26")](t),o=t[Ec("0x23")]();n[Ec("0x3")][Ec("0x66")]=e._descriptionFactory[Ec("0x3a")](o)}[Ec("0x65")](){for(const t of this[Ec("0x2c")][Ec("0x34")]())this._destroyController(t);for(const t of this._annotationViews.values())t[Ec("0x31")][Ec("0x65")]();super[Ec("0x65")]()}}var Tc,Cc,yc=["addSuggestion","pluginName","Comments","addSuggestionData","adapter","editor","get","plugins"];Tc=yc,Cc=500,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,kc("0x6")]}static get[kc("0x5")](){return"TrackChanges"}set[kc("0x0")](t){this.editor[kc("0x3")].get(Wa).adapter=t}get[kc("0x0")](){return this[kc("0x1")][kc("0x3")][kc("0x2")](Wa).adapter}[kc("0x4")](t){return this[kc("0x1")][kc("0x3")][kc("0x2")](Wa)[kc("0x7")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x1")].plugins[kc("0x2")](Wa).getSuggestions({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[kc("0x1")][kc("0x3")][kc("0x2")](Wa).getSuggestion(t)}}const vc=["WebSocketGateway","getSuggestions","builtinPlugins","context","result","execute","requires","model","toolbar","includes","DocumentOutline","track-changes-data-invalid-editor-creator","WordCount","editorCreator","_context","addUser","config","has","filter","init","appendChild","div","TrackChangesEditing","Autosave","extraPlugins","string","plugins","end","pluginName","constructor","CommentsRepository","find","every","Pagination","map","get","destroy","from","acceptAllSuggestions","trackChangesData.editorCreator","editor","create","names","set","trackChangesData","data","users","RevisionTracker","addSuggestionData","tokenUrl","concat","push","initialData","getDataWithDiscardedSuggestions","discardAllSuggestions","getRootNames","useAnonymousUser","getUser","cloudServices","TrackChangesDataGetter"];var Rc,Sc;Rc=vc,Sc=361,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x33"),Ic("0x2"),Ic("0x7")],Nc=[Ic("0x3b"),Ic("0x2e"),Ic("0x16"),Ic("0xb"),Ic("0x20"),Ic("0x9")];class Mc extends t.Plugin{static get requires(){return[Wa]}static get[Ic("0x1b")](){return"TrackChangesData"}[Ic("0x12")](){const t=this[Ic("0x27")];if(t[Ic("0xf")].define(Ic("0x26"),(e=>t[Ic("0x1c")][Ic("0x28")]("",e))),"function"!=typeof t[Ic("0xf")][Ic("0x22")](Ic("0x2b")).editorCreator)throw new e.CKEditorError(Ic("0xa"))}getDataWithAcceptedSuggestions(t){return Oc(this[Ic("0x27")],!0,t)}[Ic("0x34")](t){return Oc(this.editor,!1,t)}}class wc extends t.Plugin{static get[Ic("0x1b")](){return Ic("0x3a")}constructor(t){super(t),this[Ic("0x3")]=Ic("0x1a")}[Ic("0x12")](){this.editor[Ic("0x19")][Ic("0x22")](Ic("0x1d"))._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[Ic("0x27")][Ic("0x19")][Ic("0x22")](Ic("0x15"))._adapter=null}}async function Oc(t,e,n){const o=function(t){const e={};for(const n of t[Ic("0xf")][Ic("0x29")]())Lc.includes(n)||(e[n]=t[Ic("0xf")][Ic("0x22")](n));e[Ic("0x39")]&&e[Ic("0x39")].tokenUrl&&delete e[Ic("0x39")][Ic("0x30")];const n=t[Ic("0x1c")][Ic("0x1")]||[],o=e.extraPlugins||[];delete e[Ic("0x17")];const s=t[Ic("0xd")][Ic("0xf")].get(Ic("0x19"))||[],r=n[Ic("0x31")](e[Ic("0x19")]).concat(o)[Ic("0x31")](s)[Ic("0x21")]((t=>Ic("0x18")==typeof t?n[Ic("0x1e")]((e=>e[Ic("0x1b")]==t)):t)),i=Array[Ic("0x24")](new Set(r)),x=new Map;return e[Ic("0x19")]=i[Ic("0x11")]((t=>Fc(t,x))),e[Ic("0x19")].push(Wa),e[Ic("0x19")][Ic("0x32")](wc),e}(t),s=document.createDocumentFragment(),r=t.config[Ic("0x22")]("trackChangesData")[Ic("0xc")],i=await r(o,(()=>function(t){const e=document.createElement(Ic("0x14"));return t[Ic("0x13")](e),e}(s)));!function(t,e){const n=t[Ic("0x6")].document[Ic("0x36")]().reduce(((e,n)=>(e[n]=t[Ic("0x2c")][Ic("0x22")]({rootName:n}),e)),{}),o=t.plugins.get("Users")[Ic("0x2d")][Ic("0x21")]((t=>({id:t.id,name:t.name}))),s=t[Ic("0x19")][Ic("0x22")]("TrackChangesEditing")[Ic("0x0")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x19")][Ic("0x22")]("Users"),i=e[Ic("0x19")][Ic("0x22")](Ic("0x15"));for(const t of o)r[Ic("0x38")](t.id)||r[Ic("0xe")](t);r.me||r[Ic("0x37")]();for(const t of s)i[Ic("0x2f")](t);e[Ic("0x2c")][Ic("0x2a")](n)}(t,i),i[Ic("0x4")](Ic(e?"0x25":"0x35"));const x=i.data[Ic("0x22")](n);return await i[Ic("0x23")](),x}function Fc(t,e){const n="function"==typeof t?t[Ic("0x1b")]||t.name:t;if(e[Ic("0x10")](n))return e[Ic("0x22")](n);if(e[Ic("0x2a")](n,!0),n&&Nc[Ic("0x8")](n))return e[Ic("0x2a")](n,!1),!1;if(!t[Ic("0x5")])return e[Ic("0x2a")](n,!0),!0;const o=t.requires[Ic("0x1f")]((t=>Fc(t,e)));return e[Ic("0x2a")](n,o),o}})(),(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:()=>xc,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wx});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),a=n(995);const x=["value","execute","clearForceDisabled","commands","TrackChangesCommand","affectsData","_isEnabledBasedOnSelection","_enableCommands","_disableUnsupportedCommands","editor","_enabledCommands","refresh","forceDisabled","has"];var c,l;c=x,l=146,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return x[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0x4")]=e,this[d("0x8")]=!1,this.refresh(),this[d("0x0")]=!1}[d("0x5")](){this.isEnabled=!0}[d("0x9")](){this.value=!this.value,this[d("0x8")]?this[d("0x2")]():this[d("0x1")]()}[d("0x2")](){for(const t of this[d("0x3")][d("0xb")].commands())t[d("0xd")]&&!this._enabledCommands[d("0x7")](t)&&t[d("0x6")](d("0xc"))}_enableCommands(){for(const t of this[d("0x3")].commands.commands())t[d("0xd")]&&!this[d("0x4")][d("0x7")](t)&&t[d("0xa")](d("0xc"))}}const g=["acceptSuggestion","_suggestions","execute","_isEnabledBasedOnSelection","get","isEnabled","refresh","editor","model","track-changes-accept-suggestion-not-found"];var m,f;m=g,f=252,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("0x9")]=e,this[h("0x4")](),this[h("0x1")]=!1}[h("0x4")](){this[h("0x3")]=!0}[h("0x0")](t){const n=this[h("0x9")][h("0x2")](t);if(!n)throw new e.CKEditorError(h("0x7"),this);const o=n.getRanges();this[h("0x5")][h("0x6")].canEditAt(o)&&this[h("0x5")].plugins[h("0x2")]("TrackChangesEditing")[h("0x8")](n)}}const b=["plugins","editor","discardSuggestion","refresh","_suggestions","getRanges","_isEnabledBasedOnSelection","execute","track-changes-discard-suggestion-not-found","isEnabled","get","TrackChangesEditing"];var E,_;E=b,_=169,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("0x2")](),this[T("0x5")]=!1}[T("0x2")](){this[T("0x8")]=!0}[T("0x6")](t){const n=this._suggestions[T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x7"),this);const o=n[T("0x4")]();this[T("0x0")].model.canEditAt(o)&&this[T("0x0")][T("0xb")].get(T("0xa"))[T("0x1")](n)}}const y=["isTouching","color","isArray","isCollapsed","sort","length","change","end","isInContent","from","getRanges","deletion","createRange","isObject","execute","getRange","push","isIntersecting","createPositionBefore","createPositionAt","next","type","start","content","add","schema","isMultiRange","createPositionAfter"];var k,A;k=y,A=113,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x3")](((t,e)=>v("0xa")==t[v("0x14")]&&v("0xa")!=e.type?-1:v("0xa")!=t[v("0x14")]&&v("0xa")==e[v("0x14")]?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x18")];for(;o<t[v("0x4")];){const i=t[o],a=t[o+1];n||(n=e[v("0x11")](i)),S(e,i,a)||(s[v("0xf")](e[v("0xb")](n,r[v("0xc")](i)?e[v("0x1a")](i):e[v("0x12")](i,v("0x6")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t.createPositionBefore(n);return o[v("0x1b")](s)}function L(t,e,n){for(;n[v("0x4")];){const o=n.splice(0,100);t[v("0x5")]((()=>{for(const t of o)t[v("0x7")]&&e[v("0xd")](t.id)}))}}const N=["isInContent","canEditAt","model","isEnabled","some","_isEnabledBasedOnSelection","_suggestions","from","_command","refresh","getRanges","editor","values"];var M,w;M=N,w=352,function(t){for(;--t;)M.push(M.shift())}(++w);const F=function(t,e){return N[t-=0]};class O extends t.Command{constructor(t,e,n){super(t),this._command=e,this[F("0x5")]=n,this[F("0x8")](),this[F("0x4")]=!1}[F("0x8")](){const t=Array.from(this._suggestions[F("0xb")]())[F("0x3")]((t=>t[F("0xc")]));this.isEnabled=this[F("0x7")][F("0x2")]&&t}execute(){const t=R(Array[F("0x6")](this[F("0x5")].values()));for(const e of t){const t=e[F("0x9")]();if(!this[F("0xa")][F("0x1")][F("0x0")](t))return}L(this[F("0xa")].model,this[F("0x7")],t)}}const P=["from","isEnabled","values","getRanges","selection","editor","_selectedSuggestions","document","model","refresh","size","_command","canEditAt"];var D,B;D=P,B=364,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0xb")]=e,this._suggestions=n,this._selectedSuggestions=new Set,this[j("0x9")](),this._isEnabledBasedOnSelection=!1}[j("0x9")](){const t=this[j("0x5")][j("0x8")][j("0x7")][j("0x4")],e=Array[j("0x0")](this._suggestions[j("0x2")]());this[j("0x6")]=function(t,e){const n=Array[v("0x8")](t[v("0x9")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s.getMarkers()){const r=n[v("0xe")]();(e[v("0x10")](r)||t[v("0x2")]&&!s[v("0x19")]&&s[v("0x13")]&&r[v("0x6")][v("0x1b")](e[v("0x15")]))&&o[v("0x17")](s)}return o}(t,e),this[j("0x1")]=this[j("0xb")][j("0x1")]&&!!this[j("0x6")][j("0xa")]}execute(){const t=R(Array.from(this[j("0x6")]));for(const e of t){const t=e[j("0x3")]();if(!this.editor.model[j("0xc")](t))return}L(this[j("0x5")].model,this[j("0xb")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const 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,at=rt.toString,xt=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,xt),n=t[xt];try{t[xt]=void 0;var o=!0}catch(t){}var s=at.call(t);return o&&(e?t[xt]=n:delete t[xt]),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 It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(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 Ft=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ot=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 Ot.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=Ft,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 a=e[r],x=o?o(n[a],t[a],a,n,t):void 0;void 0===x&&(x=t[a]),s?ne(n,a,x):se(n,a,x)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const ae=function(t){return null!=t&&"object"==typeof t};const xe=function(t){return ae(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=xe(function(){return arguments}())?xe:function(t){return ae(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 ae(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 Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,a=i?ie(t.length,String):[],x=a.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,x))||a.push(c);return a};var we=Object.prototype;const Fe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Oe=function(t,e){return function(n){return t(e(n))}};const Pe=Oe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Fe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Fe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var 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 an=Oe(Object.getPrototypeOf,Object);const xn=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=an(t);return e}:tn;const cn=function(t,e){return re(t,xn(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,xn)};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 In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const 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 Fn=/\w*$/;const On=function(t){var e=new t.constructor(t.source,Fn.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 On(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||Fe(t)?{}:Hn(an(t))};const Wn=function(t){return ae(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return ae(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.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 a,x=1&n,c=2&n,l=4&n;if(o&&(a=r?o(e,s,r,i):o(e)),void 0!==a)return a;if(!mt(e))return e;var d=ge(e);if(d){if(a=Ln(e),!x)return Ze(e,a)}else{var u=In(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,x);if(u==Zn||u==Jn||g&&!r){if(a=c||g?{}:zn(e),!x)return c?cn(e,Ke(a,e)):sn(e,Ge(a,e))}else{if(!Yn[u])return r?e:{};a=Un(e,u,x)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,a),$n(e)?e.forEach((function(s){a.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){a.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(a,r,t(s,n,o,r,e,i))})),a};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||ae(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 ao=io;var xo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=ao(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(xo,(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,a=t;null!=a&&++s<r;){var x=bo(e[s]),c=n;if("__proto__"===x||"constructor"===x||"prototype"===x)return t;if(s!=i){var l=a[x];void 0===(c=o?o(l,x,a):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(a,x,c),a=a[x]}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,a=t.length,x=e.length;if(a!=x&&!(i&&x>a))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<a;){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 Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var 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 a=Io;case"[object Set]":var x=1&o;if(a||(a=So),t.size!=e.size&&!x)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(a(t),a(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 Fo=function(t,e,n,o,s,r){var i=1&n,a=dn(t),x=a.length;if(x!=dn(e).length&&!i)return!1;for(var c=x;c--;){var l=a[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<x;){var f=t[l=a[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 Oo="[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),a=ge(e),x=i?Po:In(t),c=a?Po:In(e),l=(x=x==Oo?Do:x)==Do,d=(c=c==Oo?Do:c)==Do,u=x==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,x,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),Fo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!ae(e)&&!ae(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=["commentThread","removeMarkers","decorate","head","isIntersecting","setAttribute","toJSON","creator","getRange","_onAttributesChange","length","onDiscard","getFirstRange","previous","from","data","getRanges","filter","get","type","isExternal","removeMarker","getItems","addMarker","author","accept","attributes","authoredAt","size","discard","_onAccept","getMarkerNames","subType","addRange","_markerNames","end","split","getMarkers","getMultiRangeId","getContainedElement","set","nodeAfter","onAccept","map","_onDiscard","addMarkerName","hasComments","suggestion:","getFirstMarker","isInContent","delete","createdAt","change","add","_model","isIntersectingWithRange","next","nodeBefore","push"];var $o,Jo;$o=Xo,Jo=268,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[Qo("0x2e")]=e[Qo("0x2e")],this[Qo("0x0")]=e.subType||null,this[Qo("0x33")]=e.author,this[Qo("0x22")]=e[Qo("0x22")]||e[Qo("0x33")],this[Qo("0x2f")]=Boolean(e.attributes&&e[Qo("0x35")]["@external"]),this[Qo("0x2a")]=null,this[Qo("0x16")]=t,this._onAccept=e[Qo("0xa")],this[Qo("0xc")]=e[Qo("0x26")],this._onAttributesChange=e.onAttributesChange,this[Qo("0x2")]=new Set,this[Qo("0x13")]=null,this.set(Qo("0x36"),null),this.set("attributes",e[Qo("0x35")]||{}),this[Qo("0x8")]("previous",null),this[Qo("0x8")](Qo("0x18"),null),this[Qo("0x8")](Qo("0x1b"),null),this[Qo("0x8")]("_saved",!1),this[Qo("0x1d")](Qo("0x34")),this[Qo("0x1d")](Qo("0x38"))}get head(){let t=this;for(;t[Qo("0x28")];)t=t[Qo("0x28")];return t}get hasComments(){return!!this[Qo("0x1b")]&&this[Qo("0x1b")][Qo("0x25")]>0}get isMultiRange(){return 0!=this[Qo("0x2")][Qo("0x37")]&&6==Array[Qo("0x29")](this[Qo("0x2")])[0][Qo("0x4")](":")[Qo("0x25")]}get[Qo("0x11")](){return null!==this.getFirstMarker()}[Qo("0xd")](t){this._markerNames[Qo("0x15")](t)}[Qo("0x3a")](){return Array.from(this[Qo("0x2")])}getMarkers(){return this[Qo("0x3a")]()[Qo("0xb")]((t=>this[Qo("0x16")].markers[Qo("0x2d")](t)))[Qo("0x2c")]((t=>t))}getFirstMarker(){return this.getMarkers()[0]||null}[Qo("0x1c")](){this._model.change((t=>{for(const e of this[Qo("0x5")]())t[Qo("0x30")](e)})),this[Qo("0x2")].clear()}[Qo("0x30")](t){this[Qo("0x16")].change((e=>{e[Qo("0x30")](t)})),this[Qo("0x2")][Qo("0x12")](t)}[Qo("0x1")](t){const e=Qo("0xf")+this[Qo("0x2e")]+":"+this.subType+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0x6")]();this.addMarkerName(e),this[Qo("0x16")][Qo("0x14")]((n=>{n[Qo("0x32")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x17")](t){for(const e of this[Qo("0x2b")]())if(e[Qo("0x1f")](t))return!0;return!1}[Qo("0x2b")](){return this[Qo("0x5")]().map((t=>t[Qo("0x23")]()))}[Qo("0x31")](){return this[Qo("0x2b")]().reduce(((t,e)=>[...t,...e[Qo("0x31")]()]),[])}[Qo("0x27")](){var t;return(null===(t=this[Qo("0x10")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x7")](){const t=this[Qo("0x2b")]();if(1!=t[Qo("0x25")])return null;const e=t[0],n=e.start[Qo("0x9")],o=e[Qo("0x3")][Qo("0x19")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x34")](){this[Qo("0x39")](this.getRanges(),this[Qo("0x2a")],this[Qo("0x35")]),this[Qo("0x1c")]()}discard(){this[Qo("0xc")](this[Qo("0x2b")](),this[Qo("0x2a")],this[Qo("0x35")]),this[Qo("0x1c")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x1e")];for(;e;)t[Qo("0x1a")](e),e=e[Qo("0x18")];return t}[Qo("0x20")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Qo("0x35")])||(this.attributes=n,this[Qo("0x24")](n))}removeAttribute(t){const e=eo(this[Qo("0x35")]);qo(e,t),Go(e,this[Qo("0x35")])||(this[Qo("0x35")]=e,this._onAttributesChange(this[Qo("0x35")]))}[Qo("0x21")](){return{id:this.id,type:this[Qo("0x0")]?this[Qo("0x2e")]+":"+this[Qo("0x0")]:this[Qo("0x2e")],authorId:this[Qo("0x22")].id,createdAt:this[Qo("0x13")],hasComments:this[Qo("0xe")],data:this[Qo("0x2a")],attributes:this[Qo("0x35")]}}static[Qo("0x6")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["$textProxy","addObject","EmptyContainer","name","type","*Merge:* %0","replace","$1 $2","getDescriptions","text","element","elementStart","*Split:* %0","pop","get","deletion","function","set","_addDescriptionItems","previousSibling","length","getFirstRange","Container","_locale","indexOf","remove","nextSibling","add","isEmpty","ELEMENT_SPACE","insertion","registerElementLabel","data","addEmptyContainer","registerDescriptionCallback","removeEmptyContainer","removeObject","checkChild","skip","quantity","normal","getWalker","_customCallbacks","$text","push","_itemLabels","Object","item","REPLACE_TEXT","softBreak","elementEnd","removeContainer","*Insert:* %0","_itemLabelsCallbacks","matchingCallback","_schema","getItemLabel","_resolveDescriptionItems","match","isObject","*Remove:* %0"];var es,ns;es=ts,ns=307,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("0x28")]=[],this[os("0x2b")]=new Map,this[os("0x33")]=[],this[os("0x35")]=t,this[os("0x15")]=e}[os("0x6")](t){const e=[];for(let n=0;n<t[os("0x12")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0x28")]){const n=t(o);if(n){os("0x2")in n&&e[os("0x2a")](n),s=!0;break}}if(!s){this[os("0x10")](e,o);const s=t[n+1];if(s&&!o.getFirstRange().end.isEqual(s[os("0x13")]().start)){const t=e[e[os("0x12")]-1],n=os("0x1c")==o[os("0x2")]?os("0x19"):"remove";t&&"text"==t[os("0x2")]&&(t[n]+="\n")}}}return this[os("0x37")](e)}[os("0x20")](t){this[os("0x28")][os("0x2a")](t)}[os("0x1d")](t,n,o=e.priorities[os("0x26")]){os("0xe")==typeof t?(0,e.insertToPriorityArray)(this[os("0x33")],{matchingCallback:t,label:n,priority:o}):this[os("0x2b")][os("0xf")](t,n)}[os("0x36")](t,e=1){let n;for(const e of this[os("0x33")])if(e[os("0x34")](t)){n=e.label;break}return n||(n=this[os("0x2b")][os("0xc")](t[os("0x1")])),n?n(e):1!==e?e+" "+t[os("0x1")]+"s":""+t[os("0x1")]}[os("0x10")](t,e){const n=e[os("0x13")]()[os("0x27")](),o=os("0x1c")==e.type?"add":os("0x17");for(const e of n){const s=e[os("0x2d")],r=t[t.length-1];if(s.is(os("0x3b")))r&&r[os("0x2")].indexOf(os("0x14"))>-1&&t[os("0xb")](),r&&os("0x7")==r[os("0x2")]?r[o]+=s[os("0x1e")]:t[os("0x2a")]({type:os("0x7"),add:"add"==o?s[os("0x1e")]:"",remove:os("0x17")==o?s[os("0x1e")]:""});else if(this._schema[os("0x39")](s)){const i=s;if(r&&r.type[os("0x16")](os("0x14"))>-1&&t.pop(),os("0x30")==e[os("0x2")])continue;r&&r[os("0x2")]==o+os("0x2c")&&r[os("0x8")][os("0x1")]==i[os("0x1")]?r[os("0x25")]++:t[os("0x2a")]({type:o+"Object",element:i,quantity:1}),n[os("0x24")]((t=>!(os("0x30")==t[os("0x2")]&&t[os("0x2d")]==s)))}else if(this[os("0x35")][os("0x23")](s,os("0x29"))||s.is(os("0x8"),os("0x2f"))){const n=s;if(os("0x19")==o&&os("0x9")==e[os("0x2")]||os("0x17")==o&&os("0x30")==e[os("0x2")])continue;if(r&&-1==r.type[os("0x16")]("Container")){os("0x7")==r[os("0x2")]&&(r[o]+="\n");continue}let i;if(i=os("0x19")==o?n[os("0x18")]&&!this[os("0x35")].isObject(n.nextSibling)?n.nextSibling:null:n[os("0x11")]&&!this[os("0x35")][os("0x39")](n.previousSibling)?n[os("0x11")]:null,n[os("0x1a")]||i&&i.isEmpty){const e=i&&i[os("0x1a")]?i:n;r&&r[os("0x2")]==o+os("0x0")&&r[os("0x8")].name==e[os("0x1")]?r[os("0x25")]++:t[os("0x2a")]({type:o+"EmptyContainer",element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}_resolveDescriptionItems(t){const e=this[os("0x15")],n=[];for(const o of t){switch(o.type){case os("0x7"):if(o[os("0x19")]=o.add[os("0x4")](/(\S)\u000A+(\S)/g,os("0x5"))[os("0x4")](/\u000A/g,""),o[os("0x17")]=o.remove.replace(/(\S)\u000A+(\S)/g,os("0x5"))[os("0x4")](/\u000A/g,""),""!=o[os("0x19")]&&""!=o[os("0x17")]){n[os("0x2a")]({type:os("0x4"),content:Yo(e,os("0x2e"),['"'+o[os("0x17")]+'"','"'+o.add+'"'])});continue}if(null!=o.add[os("0x38")](/^ +$/)){n[os("0x2a")]({type:os("0x1c"),content:Yo(e,os("0x32"),Yo(e,os("0x1b"),o.add[os("0x12")]))});continue}if(null!=o[os("0x17")][os("0x38")](/^ +$/)){n[os("0x2a")]({type:os("0xd"),content:Yo(e,"*Remove:* %0",Yo(e,os("0x1b"),o[os("0x17")].length))});continue}if(""!=o[os("0x19")]){n[os("0x2a")]({type:os("0x1c"),content:Yo(e,os("0x32"),'"'+o.add+'"')});continue}n[os("0x2a")]({type:"deletion",content:Yo(e,os("0x3a"),'"'+o[os("0x17")]+'"')});continue;case os("0x1f"):case os("0x3c"):n[os("0x2a")]({type:os("0x1c"),content:Yo(e,"*Insert:* %0",this[os("0x36")](o.element,o.quantity))});continue;case os("0x21"):case os("0x22"):n[os("0x2a")]({type:os("0xd"),content:Yo(e,"*Remove:* %0",this.getItemLabel(o[os("0x8")],o[os("0x25")]))});continue;case"addContainer":n[os("0x2a")]({type:os("0x1c"),content:Yo(e,os("0xa"),this[os("0x36")](o[os("0x8")],o[os("0x25")]))});continue;case os("0x31"):n[os("0x2a")]({type:os("0xd"),content:Yo(e,os("0x3"),this.getItemLabel(o.element,o[os("0x25")]))});continue}n[os("0x2a")](o)}return n}}const rs=["*Format:* %0","FORMAT_ALIGN_TO_RIGHT","AlignmentEditing","right","getAttribute","FORMAT_ALIGN_TO_LEFT","filter","model","alignment","locale","checkAttribute","format","from","has","FORMAT_ALIGN_TO_CENTER","contentLanguageDirection","plugins","value","markBlockFormat","registerDescriptionCallback","change","afterInit","editor","selection","left","ltr","justify","commandName","center","_descriptionFactory"];var is,as;is=rs,as=250,function(t){for(;--t;)is.push(is.shift())}(++as);const xs=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[xs("0xb")](){const t=this.editor,e=t[xs("0x1d")];if(!t[xs("0x6")][xs("0x3")](xs("0x16")))return;const n=t[xs("0x6")].get("TrackChangesEditing");n.enableCommand(xs("0x1c"),((e,o={})=>{let s=o[xs("0x7")];o[xs("0x7")]||(s=xs("0xf")===t[xs("0x1d")][xs("0x5")]?xs("0xe"):xs("0x17"));const r=Array[xs("0x2")](this[xs("0xc")][xs("0x1b")].document[xs("0xd")].getSelectedBlocks())[xs("0x1a")]((t=>function(t,e,n){const o=t[xs("0x18")]("alignment")||null;return e[xs("0x0")](t,"alignment")&&n!=o}(t,this.editor[xs("0x1b")].schema,s)));t[xs("0x1b")][xs("0xa")]((()=>{for(const t of r)n[xs("0x8")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[xs("0x13")][xs("0x9")]((t=>{const{data:n}=t;if(n&&xs("0x1c")==n[xs("0x11")]){const t=n.commandParams[0].value;return{type:xs("0x1"),content:Yo(e,xs("0x14"),function(t){switch(t){case xs("0xe"):return Yo(e,xs("0x19"));case"right":return Yo(e,xs("0x15"));case xs("0x12"):return Yo(e,xs("0x4"));case xs("0x10"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["toViewPosition","model","start","markerName","name","nextSibling","previousPosition","test","element","type","toViewElement","getCustomProperty","isAtEnd","getAttribute","getItems","markerRange","parent","activeMarkers","push","plugins","elementEnd","insert","listIndent","writer","ck-suggestion-marker-","mapper","addHighlight","hasAttribute","getWalker","isLimit","isBlock","includes","ck-suggestion-marker--active","isContent","createUIElement","consumable","TrackChangesEditing"];var ds,us;ds=ls,us=351,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("0x21")]())s[gs("0x9")](t)&&o[gs("0x0")](n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0x1b"),"listItem")){let n=t[gs("0x18")];for(;n&&n.is("element","listItem")&&n[gs("0x20")](gs("0x4"))>0;)e[gs("0x0")](n),n=n[gs("0x18")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x1")].get(gs("0x12"));return(s,r,i)=>{if(!i[gs("0x11")][gs("0x1a")](r[gs("0x22")],s[gs("0x17")]))return;const a=r.markerRange[gs("0xa")](),x=r[gs("0x22")][gs("0x15")],c=t[gs("0x14")].schema;let l=null,d=null,u=!1,g=!1;for(const t of a){const e=t.item;u=u||c[gs("0xf")](e);const n=i[gs("0x7")][gs("0x1d")](e);if(n&&n[gs("0x1e")](gs("0x8")))return;gs("0x2")==t[gs("0x1c")]&&c[gs("0xc")](e)&&!c[gs("0xb")](e)&&(e[gs("0x18")]||x[gs("0x1f")]?l&&l[gs("0x23")]==e||(l=e,m(t[gs("0x19")]),g=!0):d=d||t[gs("0x19")])}function m(t){const s=i[gs("0x5")][gs("0x10")]("span",{class:gs("0x6")+e}),a=i.mapper[gs("0x13")](t);n&&o[gs("0x24")][gs("0xd")](r[gs("0x16")])&&i[gs("0x5")].addClass(gs("0xe"),s),i.writer[gs("0x3")](a,s),i[gs("0x7")].bindElementToMarker(s,r[gs("0x16")])}u||g||!d||m(d)}}const ps=["format","selection","value","FORMAT_SUPERSCRIPT","forceValue","markInlineFormat","get","SuperscriptEditing","slice","FORMAT_CODE","isCollapsed","document","ItalicEditing","commands","enableCommand","FORMAT_STRIKETHROUGH","bold","editor","getRanges","subscript","commandParams","SubscriptEditing","commandName","registerDescriptionCallback","plugins","FORMAT_BOLD","code","BoldEditing","*Remove format:* %0","CodeEditing","afterInit","FORMAT_SUBSCRIPT","FORMAT_UNDERLINE","*Format:* %0","locale","_descriptionFactory","underline"];var bs,Es;bs=ps,Es=226,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x17"),_s("0x8"),"UnderlineEditing",_s("0x19"),"StrikethroughEditing",_s("0x11"),_s("0x3")];class Cs extends t.Plugin{[_s("0x1a")](){const t=this[_s("0xd")],e=t.model,n=t[_s("0x14")][_s("0x2")]("TrackChangesEditing"),o=t[_s("0x1e")];for(const o of Ts){if(!t.plugins.has(o))continue;const s=o[_s("0x4")](0,-7).toLowerCase(),r=t[_s("0x9")][_s("0x2")](s);n[_s("0xa")](s,((t,o={})=>{const i=e[_s("0x7")][_s("0x22")];if(i[_s("0x6")])return void t(o);const a=void 0!==o[_s("0x0")]?o.forceValue:!r[_s("0x23")];e.change((()=>{const t=Array.from(i[_s("0xe")]());for(const o of t){const t=a?[o]:ms(s,o,e);for(const e of t)n[_s("0x1")](e,{commandName:s,commandParams:[{forceValue:a}]})}}))}))}function s(t,e){n[_s("0x1f")][_s("0x13")]((n=>{const{data:s}=n;if(s&&s[_s("0x12")]===t)return s[_s("0x10")][0][_s("0x0")]?{type:_s("0x21"),content:Yo(o,_s("0x1d"),e)}:{type:_s("0x21"),content:Yo(o,_s("0x18"),e)}}))}s(_s("0xc"),Yo(o,_s("0x15"))),s("italic",Yo(o,"FORMAT_ITALIC")),s(_s("0x20"),Yo(o,_s("0x1c"))),s(_s("0x16"),Yo(o,_s("0x5"))),s("strikethrough",Yo(o,_s("0xb"))),s(_s("0xf"),Yo(o,_s("0x1b"))),s("superscript",Yo(o,_s("0x24")))}}const ys=["parent","checkChild","locale","name","ELEMENT_BLOCK_QUOTE","change","model","forceValue","get","plugins","commands","value","has","getSelectedBlocks","_descriptionFactory","blockQuote","afterInit","BlockQuoteEditing","$root","filter","TrackChangesEditing","schema","editor","*Format:* %0","format","document","markBlockFormat","*Remove format:* %0","from","selection"];var ks,As;ks=ys,As=246,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0xa")](){const t=this[vs("0x10")],e=t[vs("0x1a")];if(!t[vs("0x3")][vs("0x6")](vs("0xb")))return;const n=t[vs("0x3")][vs("0x2")](vs("0xe")),o=this[vs("0x10")][vs("0x4")][vs("0x2")]("blockQuote");n.enableCommand(vs("0x9"),((e,s={})=>{const r=this.editor.model[vs("0x13")][vs("0x17")],i=s&&void 0!==s[vs("0x1")]?s[vs("0x1")]:!o[vs("0x5")];let a=[];if(i){const e=Array[vs("0x16")](r[vs("0x7")]())[vs("0xd")]((t=>Is(t)||function(t,e){const n=e.checkChild(t[vs("0x18")],vs("0x9")),o=e[vs("0x19")]([vs("0xc"),vs("0x9")],t);return n&&o}(t,this.editor[vs("0x0")][vs("0xf")])));a=I(e,t[vs("0x0")])}else{const e=Array[vs("0x16")](r[vs("0x7")]())[vs("0xd")]((t=>Is(t)));a=I(e,t[vs("0x0")])}t[vs("0x0")][vs("0x1d")]((()=>{for(const t of a)n[vs("0x14")](t,{commandName:vs("0x9"),commandParams:[{forceValue:i}]})}))})),n[vs("0x8")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x9")==n.commandName){const t=Yo(e,vs("0x1c"));return n.commandParams[0][vs("0x1")]?{type:vs("0x12"),content:Yo(e,vs("0x11"),t)}:{type:vs("0x12"),content:Yo(e,vs("0x15"),t)}}}))}}function Is(t){return vs("0x9")==t[vs("0x18")][vs("0x1b")]}const Ss=["ckbox","plugins","commands","afterInit","get","editor"];var Ls,Ns;Ls=Ss,Ns=102,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ms("0x3")](){const t=this[Ms("0x5")];t[Ms("0x2")][Ms("0x4")]("ckbox")&&t[Ms("0x1")][Ms("0x4")]("TrackChangesEditing").enableCommand(Ms("0x0"))}}const Fs=["registerElementLabel","editor","*Format:* %0","language","filter","plugins","document","parent","format","rootElement","afterInit","commandParams","schema","ELEMENT_CODE_BLOCK","registerDescriptionCallback","value","checkChild","config","label","isLimit","commandName","enableCommand","getSelectedBlocks","name","codeBlock","model","indentCodeBlock","change","blockName","TrackChangesEditing","_descriptionFactory","has","get","find","from","commands","outdentCodeBlock","selection","forceValue","*Remove format:* %0"];var Os,Ps;Os=Fs,Ps=152,function(t){for(;--t;)Os.push(Os.shift())}(++Ps);const Ds=function(t,e){return Fs[t-=0]};class Bs extends t.Plugin{[Ds("0x12")](){const t=this[Ds("0x9")];if(!t[Ds("0xd")][Ds("0x27")]("CodeBlock"))return;const e=t.plugins[Ds("0x0")](Ds("0x25")),n=t.locale,o=t[Ds("0x19")][Ds("0x0")](Ds("0x20")).languages,s=t[Ds("0x3")].get(Ds("0x20"));e[Ds("0x1d")](Ds("0x22")),e[Ds("0x1d")](Ds("0x4")),e[Ds("0x1d")](Ds("0x20"),((n,r={})=>{const i=t.model,a=t[Ds("0x21")][Ds("0xe")][Ds("0x5")],x=r&&void 0!==r[Ds("0x6")]?r[Ds("0x6")]:!s[Ds("0x17")];let c;r[Ds("0xb")]||(r[Ds("0xb")]=o[0][Ds("0xb")]),c=x?Array[Ds("0x2")](a[Ds("0x1e")]())[Ds("0xc")]((t=>{return js(t)||(e=t,n=i[Ds("0x14")],!e.is(Ds("0x11"))&&!n[Ds("0x1b")](e)&&n[Ds("0x18")](e[Ds("0xf")],Ds("0x20")));var e,n})):Array[Ds("0x2")](a[Ds("0x1e")]()).filter((t=>js(t)));const l=I(c,i);i[Ds("0x23")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ds("0x20"),commandParams:[{...r,forceValue:x}],formatGroupId:Ds("0x24")})}))})),e[Ds("0x26")][Ds("0x8")](Ds("0x20"),(t=>Yo(n,Ds("0x15"),t))),e[Ds("0x26")][Ds("0x16")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&Ds("0x20")==r[Ds("0x1c")]){const t=r[Ds("0x13")][0].language,s=e(o[Ds("0x1")]((e=>e.language===t))[Ds("0x1a")]);return r.commandParams[0][Ds("0x6")]?{type:Ds("0x10"),content:Yo(n,Ds("0xa"),Yo(n,Ds("0x15"),1)+" ("+s+")")}:{type:Ds("0x10"),content:Yo(n,Ds("0x7"),Yo(n,Ds("0x15"),1))}}}))}}function js(t){return Ds("0x20")==t[Ds("0x1f")]}const Us=["plugins","CommentsEditing","editor","addCommentThread","enableCommand","TrackChangesEditing"];var Gs,Hs;Gs=Us,Hs=150,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{afterInit(){const t=this[zs("0x2")];t.plugins.has(zs("0x1"))&&t[zs("0x0")].get(zs("0x5"))[zs("0x4")](zs("0x3"))}}var Vs=n(181);const Ks=["addMarker:suggestion:deletion","enableCommand","unit","merge","mapper","detach","remove","modifySelection","options","plugins","editing","setSelection","$graveyard","document","downcastDispatcher","lock","TrackChangesEditing","batch","start","data","end","editor","get","commands","getFirstRange","root","model","writer","buffer","deleteForward","createSelection","selection","init","requires","fromRange","high","createRange"];var qs,Xs;qs=Ks,Xs=151,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[$s("0x1e")](){return[Vs.Delete]}[$s("0x1d")](){const t=this[$s("0x12")],e=t[$s("0x6")].get($s("0xd"));e.enableCommand("delete");const n=t[$s("0x14")][$s("0x13")]($s("0x1a"));e[$s("0x23")]("deleteForward",((e,o={})=>{const s=t[$s("0x17")][$s("0x1b")](t[$s("0x17")][$s("0xa")][$s("0x1c")]);s.isCollapsed&&t[$s("0x17")][$s("0x4")](s,{direction:"forward",unit:o[$s("0x24")]});const r=s[$s("0x15")](),a=i.LiveRange[$s("0x1f")](r);let x;e(o),x=$s("0x9")==a[$s("0x16")].rootName?t[$s("0x17")].createRange(r[$s("0xf")]):t[$s("0x17")].createRange(a[$s("0xf")],a[$s("0x11")]),a[$s("0x2")](),t[$s("0x17")].enqueueChange(n[$s("0x19")][$s("0xe")],(t=>{n[$s("0x19")][$s("0xc")](),t[$s("0x8")](t[$s("0x21")](x[$s("0x11")])),n[$s("0x19")].unlock()}))})),t.editing[$s("0xb")].on($s("0x22"),hs(t,$s("0x0")),{priority:$s("0x20")}),t[$s("0x10")][$s("0xb")].on($s("0x22"),((e,n,o)=>{o[$s("0x5")].showSuggestionHighlights&&hs(t,$s("0x0"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:$s("0x20")}),t[$s("0x7")].downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[$s("0x1")].markerNameToElements(e.markerName);if(o)for(const t of o)t.is("uiElement")&&(n[$s("0x1")].unbindElementFromMarkerName(t,e.markerName),n[$s("0x18")][$s("0x3")](t))}),{priority:$s("0x20")})}}const Qs=["end","enableCommand","get","getRanges","before","deletion","hasAttribute","getSelectedBlocks","listIndent","listType","indentList","formatBlock","format","refresh","has","commands","registerCustomCallback","createRange","change","add","toUpperCase","ELEMENT_NUMBERED_LIST","splitListItemBefore","detach","mergeListItemBackward","setSelection","*Indent:* %0","*Change to:* %0","push","bulletedList","_descriptionFactory","slice","document","*Outdent:* %0","start","getAttribute","documentList","markMultiRangeBlockFormat","ELEMENT_","afterInit","listItemId","nextSibling","commandName","from","getFirstRange","findIndex","locale","registerDescriptionCallback","TrackChangesEditing","value","*Format:* insert into %0","parent","outdentList","execute","registerElementLabel","editor","nodeAfter","ELEMENT_LIST_ITEM","isObject","after","length","splitListItemAfter","multipleBlocks","DocumentListEditing","schema","_LIST","mergeListItemForward","*Merge:* %0","_suggestionFactory","createPositionAt","commandParams","numberedList","*Format:* remove from %0","accept","fromRange","isFirstBlockOfListItem","selection","plugins","model","forceValue"];var Zs,Ys;Zs=Qs,Ys=312,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x2f")](){const t=this[tr("0x3f")];if(!t[tr("0x5")][tr("0x16")](tr("0x47")))return;const e=t[tr("0x36")],n=t[tr("0x5")][tr("0xa")](tr("0x38")),o=t[tr("0x5")][tr("0xa")]("DocumentListUtils");function s(e){return()=>{const s=t[tr("0x17")].get(e);let r=Array.from(t.model[tr("0x28")][tr("0x4")][tr("0xf")]());if(x(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o[tr("0x3")](e)&&t[tr("0x24")](e);r=t}t[tr("0x6")][tr("0x1a")]((()=>{n[tr("0x2d")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x39")]}],formatGroupId:"listType"},[],tr("0x2c"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[tr("0x35")]((t=>!t[tr("0xe")]("listItemId")));return n>-1&&(e=e[tr("0x27")](0,n)),e}(t.model[tr("0x28")][tr("0x4")].getSelectedBlocks()),s=o[o[tr("0x44")]-1],r=t[tr("0x6")].schema.isObject(s)?tr("0x43"):tr("0x8"),i=t.model[tr("0x19")](t[tr("0x6")].createPositionAt(o[0],"before"),t[tr("0x6")][tr("0x4d")](s,r));t[tr("0x6")][tr("0x1a")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x11")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x31")];for(;t&&t[tr("0x2b")](tr("0x10"))>n[tr("0x2b")]("listIndent");)e[tr("0x1b")](t),t=t.nextSibling}return Array[tr("0x33")](e)}(o))}))}}function a(e){return()=>{const o=t[tr("0x6")][tr("0x28")].selection[tr("0xf")]().next()[tr("0x39")],s=t[tr("0x6")][tr("0x4d")](o,tr("0xc")),r=t[tr("0x6")][tr("0x4d")](o,0),i=t[tr("0x6")][tr("0x19")](s,r);t[tr("0x6")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x11")})}))}}function x(e){const n=t[tr("0x17")][tr("0xa")](tr("0x25"))[tr("0x39")],o=t[tr("0x17")][tr("0xa")](tr("0x4f"))[tr("0x39")];return tr("0x4f")===e?n:o}n[tr("0x9")](tr("0x4f"),s("numberedList")),n.enableCommand("bulletedList",s(tr("0x25"))),n[tr("0x9")](tr("0x12"),r(tr("0x12"))),n[tr("0x9")](tr("0x3c"),r("outdentList")),n[tr("0x9")]("splitListItemAfter",a(tr("0x45"))),n[tr("0x9")](tr("0x1e"),a(tr("0x1e"))),n._descriptionFactory[tr("0x3e")]((function(e){const n=!t.model[tr("0x48")][tr("0x42")](e),o=e.previousSibling,s=e[tr("0x31")],r=e[tr("0x2b")]("listItemId"),i=!o||o.getAttribute(tr("0x30"))!==r,a=!s||s[tr("0x2b")](tr("0x30"))!==r;return n&&Boolean(r)&&i&&a}),(t=>Yo(e,tr("0x41"),t))),n[tr("0x26")][tr("0x37")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x32")]){case tr("0x25"):r=n[tr("0x4e")][0][tr("0x7")],i=x(n.commandName),o=r?"*Format:* insert into %0":tr("0x0"),i&&(o=tr("0x23")),s={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case"numberedList":r=n.commandParams[0][tr("0x7")],i=x(n[tr("0x32")]),o=r?tr("0x3a"):"*Format:* remove from %0",i&&(o="*Change to:* %0"),s={type:tr("0x14"),content:Yo(e,o,Yo(e,tr("0x1d")))};break;case tr("0x12"):o=tr("0x22"),s={type:tr("0x14"),content:Yo(e,o,Yo(e,tr("0x41")))};break;case"outdentList":o=function(t){const e=t[tr("0x34")]();let n=e[tr("0x2a")][tr("0x40")];for(;n&&e.containsItem(n);){if(n[tr("0x2b")](tr("0x10"))>0)return!1;n=n[tr("0x31")]}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t.getFirstRange().start[tr("0x40")];return tr("0x2e")+e.getAttribute(tr("0x11"))[tr("0x1c")]()+tr("0x49")}(t))):Yo(e,tr("0x29"),Yo(e,tr("0x41"))),s={type:"format",content:o};break;case tr("0x20"):case tr("0x4a"):!1===n[tr("0x46")]&&(o=tr("0x4b"),s={type:tr("0xd"),content:Yo(e,o,Yo(e,tr("0x41")))})}return s})),n[tr("0x4c")][tr("0x18")](tr("0x13"),tr("0x2c"),tr("0x1"),(function(e,n){const o=[];for(let n of e)n[tr("0x2a")][tr("0x40")]===n[tr("0x8")][tr("0x3b")]&&(n=t[tr("0x6")][tr("0x19")](t[tr("0x6")][tr("0x4d")](n[tr("0x2a")].nodeAfter,0))),o[tr("0x24")](n);t[tr("0x6")][tr("0x1a")]((e=>{const s=t[tr("0x6")][tr("0x28")][tr("0x4")],r=Array.from(s[tr("0xb")]()).map((t=>i.LiveRange[tr("0x2")](t)));e.setSelection(o),t[tr("0x17")][tr("0xa")](n[tr("0x32")])[tr("0x15")](),n[tr("0x4e")][tr("0x24")]({forceDefaultExecution:!0}),t[tr("0x3d")](n[tr("0x32")],...n.commandParams),e[tr("0x21")](r);for(const t of r)t[tr("0x1f")]()}))}))}}var nr=n(331);const or=["markerName","nextSibling","enter","showSuggestionHighlights","detach","get","parent","createPositionAt","requires","removeMarker:suggestion:insertion","editing","getFirstPosition","remove","change","addMarker:suggestion:insertion","split","editor","enterBlock","createRange","downcastDispatcher","fromRange","model","mapper","init","high","plugins","fire","end","getFirstRange","writer","bind","hasClass","document","data"];var sr,rr;sr=or,rr=209,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class ar extends t.Plugin{static get[ir("0x3")](){return[nr.Enter]}[ir("0x12")](){const t=this[ir("0xb")],e=t[ir("0x14")][ir("0x0")]("TrackChangesEditing"),n=t.commands[ir("0x0")](ir("0x1f"));e.enableCommand("enter",(()=>{t.model[ir("0x8")]((o=>{const s=t.model[ir("0x1b")].selection,r=s[ir("0x6")](),a=i.LiveRange[ir("0xf")](s[ir("0x17")]());if(n[ir("0xc")](o)){const n=t[ir("0x10")][ir("0x2")](r[ir("0x1")][ir("0x1e")],0),s=o[ir("0xd")](r,n);e.markInsertion(s)}else o.setSelection(o.createRange(a[ir("0x16")]));a[ir("0x21")](),n[ir("0x15")]("afterExecute",{writer:o})}))})),t.editing.downcastDispatcher.on(ir("0x9"),hs(t,ir("0xa")),{priority:ir("0x13")}),t[ir("0x5")][ir("0xe")].on(ir("0x4"),((t,e,n)=>{const o=n[ir("0x11")].markerNameToElements(e[ir("0x1d")]);if(o)for(const t of o)t[ir("0x1a")]("ck-suggestion-marker-split")&&(n[ir("0x11")].unbindElementFromMarkerName(t,e[ir("0x1d")]),n[ir("0x18")][ir("0x7")](t))}),{priority:ir("0x13")}),t[ir("0x1c")][ir("0xe")].on(ir("0x9"),((e,n,o)=>{o.options[ir("0x20")]&&hs(t,ir("0xa"),{showActiveMarker:!1})[ir("0x19")](this)(e,n,o)}),{priority:ir("0x13")})}}const xr=["markers","getIntersection","find","TrackChangesEditing","item","replace","createPositionAt","end","bind","suggestion:deletion","string","afterInit","_isInDeletionRange","findPrevious","start","get","plugins","findByTextCallback","model","getMarkersGroup","FindAndReplaceUtils","createRange","editor","findNext","enableCommand","handleFindCommand"];var cr,lr;cr=xr,lr=270,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return xr[t-=0]};class ur extends t.Plugin{[dr("0x1")](){if(!this.editor[dr("0x6")].has("FindAndReplaceEditing"))return;const t=this[dr("0xc")].plugins.get(dr("0x13"));t[dr("0xe")](dr("0x12"),this.handleFindCommand[dr("0x18")](this)),t[dr("0xe")](dr("0xd")),t.enableCommand(dr("0x3")),t[dr("0xe")](dr("0x15")),t[dr("0xe")]("replaceAll")}[dr("0xf")](t,e,n={}){const o=this[dr("0xc")][dr("0x6")][dr("0x5")](dr("0xa"));void 0!==n&&t((t=>(dr("0x0")==typeof e?o[dr("0x7")](e,n):e)(t).filter((e=>!1===this._isInDeletionRange(e,t[dr("0x14")])))),n)}[dr("0x2")](t,e){const n=this[dr("0xc")][dr("0x8")][dr("0xb")](this.editor[dr("0x8")][dr("0x16")](e,t[dr("0x4")]),this[dr("0xc")][dr("0x8")].createPositionAt(e,t[dr("0x17")]));for(const t of this[dr("0xc")][dr("0x8")][dr("0x10")][dr("0x9")](dr("0x19")))if(null!==n[dr("0x11")](t.getRange()))return!0;return!1}}const gr=["document","FontFamilyEditing","*Set font family:* %0","fontFamily","from","_enableCommand","selection","*Set font size:* %0","commandParams","label","FontColorEditing","TrackChangesEditing","plugins","change","title","get","FontSize","locale","fontBackgroundColor.colors","normalizeSizeOptions","FontBackgroundColorEditing","*Reset font family*","fontSize.options","trim","fontBackgroundColor","fontColor","afterInit","format","config","*Set font background color:* %0","registerDescriptionCallback","editor","value","find","toLowerCase","commandName","_descriptionFactory","model","fontSize","*Reset font size*","has","getRanges"];var mr,fr;mr=gr,fr=309,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("0x1c"),commandName:hr("0x1e")},{pluginName:hr("0x25"),commandName:hr("0xa")},{pluginName:hr("0x5"),commandName:hr("0x9")}];class br extends t.Plugin{[hr("0xb")](){const t=this[hr("0x10")][hr("0x2")];for(const{pluginName:t,commandName:e}of pr)this.editor[hr("0x27")][hr("0x19")](t)&&this[hr("0x20")](e);this.editor[hr("0x27")][hr("0x0")]("TrackChangesEditing")[hr("0x15")][hr("0xf")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x17")==o[hr("0x14")]){const e=o.commandParams[0].value;if(e){const o=n(this[hr("0x10")][hr("0x27")][hr("0x0")](hr("0x1"))[hr("0x4")](this[hr("0x10")][hr("0xd")].get(hr("0x7")))[hr("0x12")]((t=>t[hr("0x16")]==e))[hr("0x29")])[hr("0x13")]();return{type:hr("0xc"),content:Yo(t,hr("0x22"),o)}}return{type:hr("0xc"),content:Yo(t,hr("0x18"))}}if(hr("0x1e")==o.commandName){const e=o.commandParams[0].value;return e?{type:hr("0xc"),content:Yo(t,hr("0x1d"),e)}:{type:"format",content:Yo(t,hr("0x6"))}}if(hr("0xa")==o[hr("0x14")]){const e=o.commandParams[0][hr("0x11")];if(e){const o=(0,s.normalizeColorOptions)(this.editor.config[hr("0x0")]("fontColor.colors"))[hr("0x12")]((t=>t[hr("0x16")]==e));let r=e,i="";return o&&(r=o.label,i=n(r).toLowerCase()),{type:hr("0xc"),content:Yo(t,"*Set font color:* %0",i)[hr("0x8")](),color:{value:e,title:i||r}}}return{type:hr("0xc"),content:Yo(t,"*Reset font color*")}}if(hr("0x9")==o.commandName){const e=o[hr("0x23")][0][hr("0x11")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x10")].config[hr("0x0")](hr("0x3")))[hr("0x12")]((t=>t[hr("0x16")]==e));let r=e,i="";return o&&(r=o[hr("0x24")],i=n(r)[hr("0x13")]()),{type:hr("0xc"),content:Yo(t,hr("0xe"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0xc"),content:Yo(t,"*Reset font background color*")}}}}))}[hr("0x20")](t){const e=this.editor;e[hr("0x27")][hr("0x0")]("TrackChangesEditing").enableCommand(t,((n,o={})=>{const s=e.model[hr("0x1b")][hr("0x21")],r=o.value;s.isCollapsed?n(o):e[hr("0x16")][hr("0x28")]((()=>{const n=Array[hr("0x1f")](s[hr("0x1a")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x16")]);for(const o of n)e[hr("0x27")][hr("0x0")](hr("0x26")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["isFormatting","getLastPosition","*Set format to:* %0","markInlineFormat","boolean","join","charAt","length","TrackChangesEditing","createSelection","createRange","editor","enableCommand","FontSize","fontSize","find","change","getItems","forward","label","toUpperCase","slice","keys","fontSize.options","schema","get","modifySelection","split","fontBackgroundColor","fontColor","toLowerCase","pasteFormat","commandName","getRanges","normalizeSizeOptions","from","document","locale","_descriptionFactory","plugins","config","model","*Remove all formatting*","push","getFirstPosition","word","registerDescriptionCallback","getAttributeProperties","title","commandParams","selection","isCollapsed","afterInit","copyFormat"];var _r,Tr;_r=Er,Tr=470,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0xe")](){const t=this[Cr("0x1b")],n=t[Cr("0x3")],o=n[Cr("0x34")][Cr("0xc")],s=t.plugins[Cr("0x29")](Cr("0x18")),r=t[Cr("0x35")],i=t.commands[Cr("0x29")](Cr("0xf")),a=t.commands[Cr("0x29")](Cr("0x2f"));i&&a&&(s[Cr("0x1c")](Cr("0x2f"),((t,r={})=>{const i=r;n[Cr("0x20")]((()=>{const t=Array[Cr("0x33")](o[Cr("0x31")]()),r=o[Cr("0xd")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t.getAttributes()){const t=e[Cr("0x9")](n);t&&t[Cr("0x10")]&&(yield n)}}(t,n));for(const e of t[Cr("0x31")]())for(const t of e[Cr("0x21")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x28")]))||0!==Object[Cr("0x26")](i)[Cr("0x17")])for(const t of r)s[Cr("0x13")](t,{commandName:Cr("0x2f"),commandParams:[i]})}))})),s[Cr("0x0")][Cr("0x8")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n[Cr("0x30")]){const e=[],o=n[Cr("0xb")][0];for(const[n,s]of Object.entries(o))e[Cr("0x5")](Ar(t,n,s));return e[Cr("0x17")]?{type:"format",content:Yo(r,Cr("0x12"),e.join(", "))}:{type:"format",content:Yo(r,Cr("0x4"))}}})),t[Cr("0x1")].get(Cr("0x18"))[Cr("0x1c")](Cr("0xf")))}}function kr(t,e){const n=t[Cr("0x19")](e);t[Cr("0x2a")](n,{unit:Cr("0x7"),direction:"backward"});const o=n[Cr("0x6")]();t[Cr("0x2a")](n,{unit:Cr("0x7"),direction:Cr("0x22")});const s=n[Cr("0x11")]();return t[Cr("0x1a")](o,s)}function Ar(t,e,n){const o=t[Cr("0x35")].t,r=e[Cr("0x2b")](/(?=[A-Z])/)[Cr("0x15")](" "),i=o(r[Cr("0x16")](0)[Cr("0x24")]()+r[Cr("0x25")](1))[Cr("0x2e")]();if(Cr("0x14")==typeof n)return i;if(Cr("0x2d")===e||Cr("0x2c")===e){const e=(0,s.normalizeColorOptions)(t.config.get("fontColor.colors"))[Cr("0x1f")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x23")]).toLowerCase():n)+")"}if(Cr("0x1e")===e&&isNaN(parseFloat(n))){const e=t.plugins.get(Cr("0x1d"))[Cr("0x32")](t[Cr("0x2")].get(Cr("0x27")))[Cr("0x1f")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0xa")])[Cr("0x2e")]():n)+")"}return i+" ("+n+")"}const vr=["*Change to:* %0","registerDescriptionCallback","from","HeadingEditing","format","commandParams","find","parent","config","value","getSelectedBlocks","ELEMENT_HEADING_CUSTOM","checkChild","model","match","TrackChangesEditing","locale","heading","change","get","formatBlock","schema","ELEMENT_HEADING","heading.options","editor","plugins","selection","title","document","_descriptionFactory","commandName","afterInit","blockName"];var Rr,Ir;Rr=vr,Ir=467,function(t){for(;--t;)Rr.push(Rr.shift())}(++Ir);const Sr=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Sr("0x1a")](){const t=this[Sr("0x13")],e=t[Sr("0xb")],n=t[Sr("0x3")][Sr("0xe")](Sr("0x12"));if(!t[Sr("0x14")].has(Sr("0x1f")))return;const o=t[Sr("0x14")][Sr("0xe")](Sr("0xa"));o.enableCommand("heading",((e,n)=>{const s=n[Sr("0x4")],r=Array[Sr("0x1e")](this[Sr("0x13")][Sr("0x8")][Sr("0x17")][Sr("0x15")][Sr("0x5")]()).filter((t=>{return e=t,n=s,(o=this[Sr("0x13")].model[Sr("0x10")])[Sr("0x7")](e[Sr("0x2")],n)&&!o.isObject(e)&&e.name!=n;var e,n,o}));t[Sr("0x8")][Sr("0xd")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Sr("0xc"),commandParams:[n],formatGroupId:Sr("0x1b")},fs(t))}))}));for(const t of n)"paragraph"!=t.model&&o[Sr("0x18")].registerElementLabel(t[Sr("0x8")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Sr("0x16")])}));function s(t,n){return Yo(e,Sr("0x11"),[t,n])}function r(t,n){return Yo(e,Sr("0x6"),[t,n])}o[Sr("0x18")][Sr("0x1d")]((t=>{const{type:o,data:i}=t;if(Sr("0xf")==o&&i&&Sr("0xc")==i[Sr("0x19")]){const t=i[Sr("0x0")][0][Sr("0x4")],o=Nr(t);if(null!==o)return{type:Sr("0x20"),content:Yo(e,Sr("0x1c"),s(1,o))};const a=n[Sr("0x1")]((e=>e[Sr("0x8")]===t)).title;return{type:"format",content:Yo(e,"*Change to:* %0",r(1,a))}}}))}}function Nr(t){const e=t[Sr("0x9")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["hasAttribute","commandParams","highlight","toLowerCase","enableCommand","HighlightEditing","color","push","selection","change","getAttribute","item","title","commandName","getLastMatchingPosition","locale","get","createRange","model","TrackChangesEditing","plugins","format","registerDescriptionCallback","value","document","FORMAT_HIGHLIGHT","*Set highlight:* %0","find","isCollapsed","*Remove highlight*","backward"];var wr,Fr;wr=Mr,Fr=499,function(t){for(;--t;)wr.push(wr.shift())}(++Fr);const Or=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{afterInit(){const t=this.editor;if(!t[Or("0x11")].has(Or("0x2")))return;const e=t[Or("0x11")][Or("0xd")](Or("0x10"));e[Or("0x1")](Or("0x1e"),((n,o={})=>{const s=t[Or("0xf")][Or("0x15")][Or("0x5")],r=s[Or("0x7")]("highlight");let i=o[Or("0x14")],a=[];if(s[Or("0x19")]){const e=s.getFirstPosition();if(!s[Or("0x1c")](Or("0x1e")))return void n(o);{const n=t=>t[Or("0x8")][Or("0x7")](Or("0x1e"))===r,o=e[Or("0xb")](n,{direction:Or("0x1b")}),s=e[Or("0xb")](n);a=[t.model[Or("0xe")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?a.push(e):a[Or("0x4")](...ms(Or("0x1e"),e,t[Or("0xf")]));t[Or("0xf")][Or("0x6")]((()=>{for(const t of a)e.markInlineFormat(t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Or("0xc")];e._descriptionFactory[Or("0x13")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Or("0x1e")==s[Or("0xa")]){const e=n.t,o=s[Or("0x1d")][0][Or("0x14")];if(o){const s=t.config[Or("0xd")]("highlight.options")[Or("0x18")]((t=>t.model==o)),r=e(s[Or("0x9")])[Or("0x0")]();return{type:"format",content:Yo(n,Or("0x17"),r),color:{value:s[Or("0x3")],title:s[Or("0x9")]}}}return{type:Or("0x12"),content:Yo(n,Or("0x1a"),Yo(n,Or("0x16")))}}}))}}const Dr=["ELEMENT_HORIZONTAL_LINE","registerElementLabel","editor","plugins","div","elementToStructure","createEmptyElement","conversion","horizontalLine","createPositionAt","dataDowncast","HorizontalLineEditing","get","for","TrackChangesEditing","high","insert","showSuggestionHighlights","enableCommand","ck-horizontal-line"];var Br,jr;Br=Dr,jr=126,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{afterInit(){const t=this[Ur("0x10")];if(!t[Ur("0x11")].has(Ur("0x5")))return;t.plugins[Ur("0x6")](Ur("0x8"))[Ur("0xc")](Ur("0x2"));const e=t.plugins[Ur("0x6")](Ur("0x8")),n=t.locale;e._descriptionFactory[Ur("0xf")](Ur("0x2"),(t=>Yo(n,Ur("0xe"),t))),t[Ur("0x1")][Ur("0x7")](Ur("0x4"))[Ur("0x13")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0xb")])return null;const o=e.createContainerElement(Ur("0x12")),s=e[Ur("0x0")]("hr");return e.addClass(Ur("0xd"),o),e[Ur("0xa")](e[Ur("0x3")](o,0),s),o},converterPriority:Ur("0x9")})}}const Hr=["htmlEmbed","afterInit","getAttribute","TrackChangesEditing","format","model","rawHtmlApi","has","plugins","HtmlEmbed","document","getSelectedElement","cancel","*Change %0 content*","rawHtml","_descriptionFactory","selection","locale","change","get","commandName","ELEMENT_HTML_EMBED"];var zr,Wr;zr=Hr,Wr=221,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x0")](){const t=this.editor;if(!t[Vr("0x7")][Vr("0x6")](Vr("0x8")))return;const e=t[Vr("0x7")][Vr("0x12")](Vr("0x2")),n=t[Vr("0x10")],o=t.editing.view.document.selection;e[Vr("0xe")].registerElementLabel(Vr("0xd"),(t=>Yo(n,"ELEMENT_HTML_EMBED",t))),t[Vr("0x7")][Vr("0x12")](Vr("0x2")).enableCommand("htmlEmbed",((n,s)=>{const r=t[Vr("0x4")],i=r[Vr("0x9")][Vr("0xf")];r[Vr("0x11")]((()=>{const t=function(t){const e=t[Vr("0xa")]();return e&&e.is("element","rawHtml")?t[Vr("0xa")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x1")]("value")||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x15"),commandParams:[s]}),o[Vr("0xa")]().getCustomProperty(Vr("0x5"))[Vr("0xb")]())}))})),e._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Vr("0x15")==e[Vr("0x13")]){const t=Yo(n,Vr("0x14"));return{type:Vr("0x3"),content:Yo(n,Vr("0xc"),t)}}}))}}const qr=["FORMAT_SIDE_IMAGE","fromPosition","insertImage","registerDescriptionCallback","createRangeOn","isOwn","getContainedElement","ELEMENT_CAPTION","ELEMENT_INLINE_IMAGE","removeObject","hasAttribute","registerElementLabel","title","getNearestSelectionRange","getSuggestion","newValue","TrackChangesEditing","toNext","uploadImage","width","hasSuggestion","find","start","getClosestSelectedImageElement","_suggestionFactory","next","discardSuggestion","imageCaption","imageStyle","_findSuggestions","caption","getAttribute","subType","length","registerPostFixer","_descriptionFactory","alt","markDeletion","isInlineImage","ImageStyleEditing","imageTypeInline","newRange","registerCustomCallback","getSuggestionCallback","imageTypeBlock","refresh","commands","isInContent","join","ImageInlineEditing","*Set image text alternative:* %0","change","isBefore","get","imageInline","imageStylePreApply","isEqual","suggestion","ImageCaptionEditing","head","formatInline","from","discard","editor","backward","isIntersecting","imageStylePostApply","markInsertion","_splitMarkerName","format","markBlockFormat","markInlineFormat","addObject","plugins","value","detach","ImageTextAlternativeEditing","has","commandParams","end","name","getFirstRange","isCollapsed","previous","convertInlineImageToBlock","accept","afterInit","schema","findIndex","getChangedMarkers","resizeImage","createRange","filter","ImageResize","forceDefaultExecution","imageTextAlternative","document","ImageEditing","normalizedStyles","side","Block image to inline image","type","enableCommand","isBlockImage","forEach","imageBlock","convertBlockImageToInline","getSuggestions","chain","insertion","Inline image to block image","*Remove image text alternative*","formatBlock","getCaptionFromImageModelElement","commandName","differ","selection","*Format:* %0","model","*Set image width:* %0"];var Xr,$r;Xr=qr,$r=102,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x68")](){const t=this[Jr("0x51")];if(!t[Jr("0x5b")][Jr("0x5f")](Jr("0x73")))return;const n=t[Jr("0x5b")][Jr("0x47")](Jr("0x22")),o=t[Jr("0x5b")][Jr("0x47")]("ImageUtils"),s={},r=t.locale;if(n[Jr("0x0")](Jr("0x14")),n[Jr("0x35")][Jr("0x1d")](Jr("0x3"),(t=>Yo(r,"ELEMENT_IMAGE",t))),n._descriptionFactory[Jr("0x1d")](Jr("0x48"),(t=>Yo(r,Jr("0x1a"),t))),n[Jr("0x35")][Jr("0x1d")](Jr("0x30"),(()=>Yo(r,Jr("0x19")))),t[Jr("0x5b")][Jr("0x5f")]("ImageUploadEditing")&&n.enableCommand(Jr("0x24")),t[Jr("0x5b")].has("ImageBlockEditing")&&t[Jr("0x5b")][Jr("0x5f")](Jr("0x43"))&&(n[Jr("0x0")](Jr("0x3a"),((e,s)=>{const r=o[Jr("0x29")](t.model.document.selection);t[Jr("0x10")][Jr("0x45")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x3a"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Jr("0x0")](Jr("0x3e"),((e,s)=>{t[Jr("0x10")][Jr("0x45")]((r=>{let a=o.getClosestSelectedImageElement(t.model[Jr("0x72")][Jr("0xe")]),x=r[Jr("0x16")](a);const c=i.LivePosition.fromPosition(x[Jr("0x28")],"toPrevious"),l=i.LivePosition[Jr("0x13")](x[Jr("0x61")],Jr("0x23"));n[Jr("0x70")]((()=>e(s))),a=o[Jr("0x29")](t[Jr("0x10")][Jr("0x72")][Jr("0xe")]),x=r[Jr("0x16")](a);const d=r[Jr("0x6d")](c,l);c.detach(),l[Jr("0x5d")](),n[Jr("0x58")](a,{commandName:Jr("0x3a"),commandParams:[]},[],"convertInlineImageToBlock"),d[Jr("0x28")][Jr("0x46")](x[Jr("0x28")])&&n[Jr("0x55")](r[Jr("0x6d")](d[Jr("0x28")],x.start),Jr("0x66")),x[Jr("0x61")].isBefore(d[Jr("0x61")])&&n[Jr("0x55")](r[Jr("0x6d")](x[Jr("0x61")],d[Jr("0x61")]),Jr("0x66"))}))})),n[Jr("0x2a")][Jr("0x3c")]("formatBlock",Jr("0x66"),Jr("0x42"),(()=>{})),n[Jr("0x2a")][Jr("0x3c")]("formatBlock",Jr("0x66"),Jr("0x67"),(()=>{})),n[Jr("0x2a")][Jr("0x3c")](Jr("0xa"),Jr("0x66"),Jr("0x50"),n[Jr("0x2a")][Jr("0x3d")](Jr("0xa"),"","accept")),n[Jr("0x2a")][Jr("0x3c")](Jr("0x7"),"convertInlineImageToBlock",Jr("0x42"),(()=>{})),n._suggestionFactory[Jr("0x3c")]("insertion",Jr("0x66"),Jr("0x50"),(([e])=>{const o=n._suggestionFactory[Jr("0x3d")](Jr("0x7"),"",Jr("0x50"));let s=e.start,r=e.end;const i=t[Jr("0x10")][Jr("0x69")][Jr("0x1f")](s,Jr("0x52")),a=t[Jr("0x10")][Jr("0x69")][Jr("0x1f")](r,"forward");i[Jr("0x64")]&&(s=i.start),a.isCollapsed&&(r=a[Jr("0x61")]),o([t[Jr("0x10")][Jr("0x6d")](s,r)])})),n._suggestionFactory[Jr("0x3c")]("formatBlock",Jr("0x66"),Jr("0x6"),c),n._suggestionFactory[Jr("0x3c")](Jr("0x7"),Jr("0x66"),"chain",c)),t[Jr("0x5b")][Jr("0x5f")](Jr("0x4c"))&&(n[Jr("0x0")]("toggleImageCaption",((e,s)=>{const r=t.plugins.get("ImageCaptionUtils");let i=o[Jr("0x29")](t[Jr("0x10")][Jr("0x72")][Jr("0xe")]),a=r.getCaptionFromImageModelElement(i);t.model[Jr("0x45")]((()=>{if(a)return void n[Jr("0x37")](t.model.createRangeOn(a));const x=o[Jr("0x1")](i);e(s),i=o[Jr("0x29")](t[Jr("0x10")][Jr("0x72")][Jr("0xe")]),a=r[Jr("0xb")](i),n[Jr("0x55")](t.model[Jr("0x16")](a),x?null:Jr("0x2d"))}))})),n._suggestionFactory.registerCustomCallback(Jr("0x7"),Jr("0x2d"),Jr("0x6"),c)),t[Jr("0x5b")].has("ImageStyleEditing")){n[Jr("0x0")](Jr("0x2e"),((s,r)=>{const i=t[Jr("0x5b")][Jr("0x47")]("Users").me,a=t.commands[Jr("0x47")](Jr("0x2e"));let x=o[Jr("0x29")](t[Jr("0x10")][Jr("0x72")].selection),c=t.model[Jr("0x16")](x),l=a[Jr("0x5c")];if(l==r.value)return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x10")][Jr("0x45")]((()=>{if(n[Jr("0x5")]().filter((t=>t[Jr("0x41")]&&i==t.author&&(Jr("0xa")==t[Jr("0x77")]||Jr("0x4e")==t.type)&&("imageStylePreApply"==t[Jr("0x32")]||"imageStylePostApply"==t.subType)&&t[Jr("0x63")]()[Jr("0x4a")](c)))[Jr("0x2")]((t=>n[Jr("0x2c")](t[Jr("0x4d")]))),x=o[Jr("0x29")](t[Jr("0x10")].document[Jr("0xe")]),c=t[Jr("0x10")][Jr("0x16")](x),a[Jr("0x3f")](),t[Jr("0x40")][Jr("0x47")](Jr("0x3a"))[Jr("0x3f")](),t.commands[Jr("0x47")](Jr("0x3e"))[Jr("0x3f")](),l=a.value,l!=r.value)return o[Jr("0x38")](x)&&a.shouldConvertImageType(r.value,x)?(s(r),x=o.getClosestSelectedImageElement(t[Jr("0x10")][Jr("0x72")].selection),void n.markBlockFormat(x,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x49"))):void(o[Jr("0x1")](x)?n[Jr("0x58")](x,d,[],Jr("0x54")):n[Jr("0x59")](c,d,Jr("0x54")))}))}));for(const e of t[Jr("0x5b")][Jr("0x47")](Jr("0x39"))[Jr("0x74")])s[e[Jr("0x62")]]=e[Jr("0x1e")].toLowerCase();n[Jr("0x2a")].registerCustomCallback(Jr("0xa"),Jr("0x49"),Jr("0x42"),(()=>{})),n[Jr("0x2a")].registerCustomCallback("formatBlock",Jr("0x54"),Jr("0x42"),(()=>{})),n._suggestionFactory[Jr("0x3c")](Jr("0x4e"),Jr("0x54"),Jr("0x42"),(()=>{})),n[Jr("0x2a")].registerCustomCallback("formatBlock",Jr("0x49"),Jr("0x67"),(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0xa"),Jr("0x49"),"discard",((t,e)=>{n._suggestionFactory[Jr("0x3d")](Jr("0xa"),"",Jr("0x67"))(t,{commandName:e[Jr("0xc")],commandParams:e.commandReversedParams})})),n[Jr("0x2a")][Jr("0x3c")](Jr("0xa"),Jr("0x49"),Jr("0x6"),c)}const a=[{type:Jr("0xa"),subType:Jr("0x49")},{type:Jr("0x7"),subType:Jr("0x2d")},{type:"formatBlock",subType:Jr("0x66")},{type:"insertion",subType:Jr("0x66")}];function x(t,e){const s=a[Jr("0x6a")]((({type:e,subType:n})=>t[Jr("0x77")]==e&&t[Jr("0x32")]==n)),r=a[Jr("0x6a")]((({type:t,subType:n})=>e.type==t&&e[Jr("0x32")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x63")](),x=e.getFirstRange();if((0==s||1==s)&&2==r&&i[Jr("0x53")](x))return!0;if(2==s&&3==r){const t=n[Jr("0x2f")](i,Jr("0x7"))[Jr("0x6e")]((({suggestion:t,meta:e})=>e[Jr("0x17")]&&Jr("0x66")==t[Jr("0x32")]));if(t[Jr("0x33")]>1&&x[Jr("0x61")][Jr("0x4a")](i.start))return!0;if(1==t.length&&(i.start[Jr("0x4a")](x[Jr("0x61")])||i[Jr("0x61")][Jr("0x4a")](x[Jr("0x28")])))return!0}if(3==s&&3==r&&i[Jr("0x28")][Jr("0x46")](x[Jr("0x28")])){const t=i[Jr("0x61")].nodeAfter,e=x.start.nodeBefore;return o[Jr("0x1")](t)&&t===e}return!1}function c(t,e){return x(t,e)?[t,e]:x(e,t)?[e,t]:null}t[Jr("0x10")][Jr("0x72")][Jr("0x34")]((()=>{let e=!1;const s=Array[Jr("0x4f")](t[Jr("0x10")][Jr("0x72")][Jr("0xd")][Jr("0x6b")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:a,id:x}=n[Jr("0x56")](t);if(Jr("0x4b")==s&&n[Jr("0x26")](x)){if(Jr("0xa")==i&&(Jr("0x49")==a||"imageStylePostApply"==a)){const t=n[Jr("0x20")](x);if(r[Jr("0x3b")]){const s=t.getFirstRange()[Jr("0x18")]();if(o[Jr("0x1")](s))continue;n[Jr("0x2c")](t),e=!0}}if(Jr("0x7")==i&&Jr("0x2d")==a&&!r[Jr("0x3b")]){const t=n[Jr("0x20")](x);t[Jr("0x2b")]&&t[Jr("0x2b")][Jr("0x41")]&&(n.discardSuggestion(t[Jr("0x2b")]),e=!0)}}}return e})),t[Jr("0x5b")].has(Jr("0x6f"))&&n[Jr("0x0")]("resizeImage",((e,s)=>{const r=o[Jr("0x29")](t[Jr("0x10")][Jr("0x72")][Jr("0xe")]);r.getAttribute(Jr("0x25"))!=s[Jr("0x25")]&&t[Jr("0x10")][Jr("0x45")]((()=>{n[Jr("0x58")](r,{commandName:Jr("0x6c"),commandParams:[s]})}))})),t[Jr("0x5b")].has(Jr("0x5e"))&&n[Jr("0x0")](Jr("0x71"),((e,s)=>{const r=o.getClosestSelectedImageElement(t.model[Jr("0x72")].selection);(r[Jr("0x1c")](Jr("0x36"))?r[Jr("0x31")](Jr("0x36")):"")!=s[Jr("0x21")]&&t[Jr("0x10")][Jr("0x45")]((()=>{n[Jr("0x58")](r,{commandName:Jr("0x71"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x15")]((t=>{if(a[Jr("0x27")]((({type:e,subType:n})=>t[Jr("0x77")]==e&&t.subType==n)))return t[Jr("0x65")]?{}:void 0})),n[Jr("0x35")].registerDescriptionCallback((t=>{if(Jr("0x7")==t.type||"deletion"==t.type){const e=t[Jr("0x18")]();if(e&&e.is("element",Jr("0x30")))return{type:"insertion"==t[Jr("0x77")]?Jr("0x5a"):Jr("0x1b"),element:e,quantity:1}}})),n._descriptionFactory.registerDescriptionCallback((t=>Jr("0xa")==t[Jr("0x77")]&&Jr("0x66")==t[Jr("0x32")]?{type:Jr("0x57"),content:Jr("0x8")}:Jr("0xa")==t[Jr("0x77")]&&Jr("0x4")==t.subType?{type:Jr("0x57"),content:Jr("0x76")}:void 0)),n._descriptionFactory[Jr("0x15")]((t=>{const{data:e}=t;if(e){if(Jr("0x2e")==e.commandName){const t=e[Jr("0x60")][0].value;return n=Jr("0x75")===t?Yo(r,Jr("0x12")):s[t]||t,{type:Jr("0x57"),content:Yo(r,Jr("0xf"),n)}}if(Jr("0x71")==e[Jr("0xc")]){const t=e[Jr("0x60")][0][Jr("0x21")];return t?{type:Jr("0x57"),content:Yo(r,Jr("0x44"),'"'+t+'"')}:{type:Jr("0x57"),content:Yo(r,Jr("0x9"))}}if(Jr("0x6c")==e[Jr("0xc")]){const t=e[Jr("0x60")][0].width;return t?{type:Jr("0x57"),content:Yo(r,Jr("0x11"),t)}:{type:"format",content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["author","has","source","getContainedElement","model","*Format:* replace image URL","subType","commandParams","_descriptionFactory","getSelectedElement","get","data","format","discard","getAttribute","src","getSuggestions","handleReplaceImageCommand","TrackChangesEditing","formatBlock","replaceImageSource","ImageEditing","selection","getSuggestionCallback","registerCustomCallback","_suggestionFactory","afterInit","accept","handleSuggestionDescription","plugins","registerDescriptionCallback","Users","editor"];var Yr,ti;Yr=Zr,ti=444,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0xb")](){if(!this[ei("0x11")][ei("0xe")][ei("0x13")](ei("0x6")))return;const t=this.editor[ei("0xe")][ei("0x1c")]("TrackChangesEditing");t.enableCommand(ei("0x5"),((t,e)=>this[ei("0x2")](t,e))),t[ei("0xa")][ei("0x9")]("formatBlock",ei("0x5"),ei("0xc"),t[ei("0xa")][ei("0x8")]("formatBlock",null,ei("0x1f"))),t[ei("0xa")][ei("0x9")](ei("0x4"),"replaceImageSource",ei("0x1f"),t[ei("0xa")][ei("0x8")](ei("0x4"),null,ei("0xc"))),t[ei("0x1a")][ei("0xf")]((t=>this[ei("0xd")](t)))}handleReplaceImageCommand(t,e){const n=this[ei("0x11")].plugins.get(ei("0x3")),o=this[ei("0x11")][ei("0x16")].document[ei("0x7")][ei("0x1b")]();this.editor[ei("0x16")].change((()=>{let s=o[ei("0x20")](ei("0x0"));const r=this[ei("0x11")][ei("0xe")].get(ei("0x10")).me;for(const t of n[ei("0x1")]({skipNotAttached:!0})){const e=t[ei("0x15")]();if(ei("0x5")===t[ei("0x18")]&&e===o){t[ei("0x12")]!==r&&t[ei("0x1f")](),s=t[ei("0x1d")][ei("0x19")][0][ei("0x14")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x5"),commandParams:[{source:s}]},[],"replaceImageSource")}))}[ei("0xd")](t){const{data:e}=t;if(e&&ei("0x5")===e.commandName){const t=ei("0x17");return{type:ei("0x1e"),content:Yo(this[ei("0x11")].locale,t)}}}}const oi=["execute","importWord","TrackChangesEditing","get","track_changes","_trackChangesValueDuringImport","editor","trackChanges","afterInit","lowest","bind","Users","commands","plugins","_setSuggestionData","dataInsert","forEach","value","_handleImportedData","_trackChangesExecuted","listenTo","high"];var si,ri;si=oi,ri=351,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class ai extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ii("0x14")]=!1}[ii("0x9")](){const t=this.editor,e=t[ii("0xd")][ii("0x4")](ii("0x2")),n=t[ii("0xd")].get(ii("0x8"));e&&(e.on(ii("0x1"),((t,[,e])=>{this[ii("0x6")]=n[ii("0x12")],e.collaboration_features[ii("0x5")]=!this[ii("0x6")]}),{priority:ii("0x0")}),this[ii("0x15")](e,ii("0x10"),this[ii("0x13")][ii("0xb")](this)),this.listenTo(e,ii("0x10"),(()=>{this[ii("0x14")]&&(n[ii("0x1")](),this[ii("0x14")]=!1)}),{priority:ii("0xa")}),t[ii("0xe")][ii("0x4")]("TrackChangesEditing").enableCommand(ii("0x2")))}[ii("0x13")](t,e){const{suggestions:n}=e,o=this[ii("0x7")].commands[ii("0x4")](ii("0x8")),s=o.value;this._trackChangesValueDuringImport!==s&&(o[ii("0x1")](),this[ii("0x14")]=!0),n&&n[ii("0x11")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x7")][ii("0xe")][ii("0x4")](ii("0xc")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x2")}}};this.editor[ii("0xe")].get(ii("0x3"))[ii("0xf")](s)}))}}const xi=["getItemLabel","schema","markBlockFormat","editor","indentBlock","enableCommand","outdentBlock","IndentBlock","document","filter","has","from","*Indent:* %0","checkAttribute","selection","_descriptionFactory","change","getSelectedBlocks","outdent","registerDescriptionCallback","indent","plugins","format","model","commandName"];var ci,li;ci=xi,li=167,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return xi[t-=0]};class ui extends t.Plugin{afterInit(){const t=this[di("0xb")],e=t[di("0x4")].get("TrackChangesEditing");t[di("0x4")].has("IndentEditing")&&(e[di("0xd")](di("0x3")),e[di("0xd")](di("0x1")));const n=t.locale;if(t.plugins[di("0x12")](di("0xf"))){for(const n of[di("0xc"),di("0xe")])e.enableCommand(n,(()=>{const o=Array[di("0x13")](this[di("0xb")][di("0x6")][di("0x10")][di("0x16")][di("0x0")]())[di("0x11")]((t=>this.editor[di("0x6")][di("0x9")][di("0x15")](t,"blockIndent")));t[di("0x6")][di("0x18")]((()=>{for(const t of o)e[di("0xa")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0xc")})}))}));e[di("0x17")][di("0x2")]((t=>{const{data:o}=t;if(!o)return;if(di("0xc")!=o.commandName&&di("0xe")!=o[di("0x7")])return;const s=t.getItems()[0],r=e[di("0x17")][di("0x8")](s);return di("0xc")==o[di("0x7")]?{type:"format",content:Yo(n,di("0x14"),r)}:"outdentBlock"==o[di("0x7")]?{type:di("0x5"),content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["input","plugins","get","editor"];gi=fi,mi=498,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]}init(){this[hi("0x1")][hi("0x3")][hi("0x0")]("TrackChangesEditing").enableCommand(hi("0x2"))}}const bi=["getFirstRange","isCollapsed","markInlineFormat","registerDescriptionCallback","commandName","editor","enableCommand","model","selection","link","has","change","format","plugins","LinkEditing","_descriptionFactory","linkHref","from","afterInit","*Set link:* %0","getAttribute","unlink","hasAttribute","locale","*Remove link*","TrackChangesEditing","getRanges","document","getFirstPosition"];var Ei,_i;Ei=bi,_i=220,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x1")](){const t=this[Ti("0x11")];if(!t.plugins[Ti("0x16")](Ti("0x1a")))return;const e=t[Ti("0x19")].get(Ti("0x8"));e[Ti("0x12")](Ti("0x15"),((n,o)=>{const s=t[Ti("0x13")][Ti("0xa")][Ti("0x14")];let r=[];if(s[Ti("0xd")]){if(!s[Ti("0x5")](Ti("0x1c")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xb")](),Ti("0x1c"),s.getAttribute("linkHref"),t[Ti("0x13")]);r=[e]}}else r=Array[Ti("0x0")](s[Ti("0x9")]());t[Ti("0x13")][Ti("0x17")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:"link",commandParams:[o]})}))})),e[Ti("0x12")](Ti("0x4"),(()=>{const n=this[Ti("0x11")][Ti("0x13")],o=n.document.selection;n[Ti("0x17")]((()=>{let n=[];n=o[Ti("0xd")]?[(0,Vs.findAttributeRange)(o[Ti("0xb")](),"linkHref",o[Ti("0x3")](Ti("0x1c")),t.model)]:ms(Ti("0x1c"),o[Ti("0xc")](),t[Ti("0x13")]);for(const t of n)e[Ti("0xe")](t,{commandName:Ti("0x4"),commandParams:[]})}))})),e[Ti("0x1b")][Ti("0xf")]((e=>{const{data:n}=e,o=t[Ti("0x6")];if(n){if(Ti("0x15")==n[Ti("0x10")]){const t=n.commandParams[0];return{type:Ti("0x18"),content:Yo(o,Ti("0x2"),'"'+t+'"')}}return Ti("0x4")==n.commandName?{type:Ti("0x18"),content:Yo(o,Ti("0x7"))}:void 0}}))}}const yi=["nextSibling","ELEMENT_BULLETED_LIST","document","end","bulleted","afterInit","todoListChecked","listIndent","selection","previousSibling","change","element","createPositionAt","commandName","listType","get","parent","listItem","model","ELEMENT_LIST_ITEM","TodoListEditing","bulletedList","getSelectedBlocks","List","commandParams","TrackChangesEditing","markBlockFormat","ELEMENT_NUMBERED_LIST","has","format","numberedList","from","filter","value","todoList","*Outdent:* %0","commands","paragraph","enableCommand","plugins","findIndex","schema","ELEMENT_TODO_LIST","*Change to:* %0","_selectedElements","isObject","registerDescriptionCallback","_descriptionFactory","indentList","blockName","replace","add","outdentList","*Uncheck item*","execute","getAttribute","editor","before","checkTodoList","name"];var ki,Ai;ki=yi,Ai=285,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x14")](){const t=this[vi("0xb")],e=t.locale;if(!t[vi("0x36")][vi("0x2b")]("ListEditing"))return;const n=t[vi("0x36")].get(vi("0x28")),o=t.plugins.has(vi("0x23"));function s(e){return()=>{const o=t.model[vi("0x11")].selection,s=t.commands[vi("0x1e")](e);if(s[vi("0x30")])return void t[vi("0x9")](vi("0x34"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n).checkChild(e[vi("0x1f")],vi("0x20"))&&!o[vi("0x0")](e);var e,o}));o=o[vi("0x2f")]((t=>!t.is(vi("0x1a"),vi("0x20"))||t.getAttribute(vi("0x1d"))!=e));const s=new Set;for(const t of o)t.is(vi("0x1a"),vi("0x20"))?s[vi("0x6")](Ii(t)):s[vi("0x6")](t);return Array[vi("0x2e")](s)}(o[vi("0x25")](),r,t.model[vi("0x38")]);t.model[vi("0x19")]((()=>{for(const t of i)n[vi("0x29")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x30")]}],formatGroupId:vi("0x4")},Si(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x37")]((t=>"listItem"!=t[vi("0xe")]));return n>-1&&(e=e.slice(0,n)),e}(t[vi("0x21")][vi("0x11")][vi("0x17")].getSelectedBlocks()),s=t[vi("0x21")].createRange(t.model[vi("0x1b")](o[0],vi("0xc")),t[vi("0x21")][vi("0x1b")](o[o.length-1],vi("0x12")));t[vi("0x21")][vi("0x19")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:vi("0x16")},function(t){const e=new Set;for(const n of t){let t=n[vi("0xf")];for(;t&&t[vi("0xa")](vi("0x16"))>n.getAttribute(vi("0x16"));)e.add(t),t=t[vi("0xf")]}return Array[vi("0x2e")](e)}(o))}))}}n.enableCommand(vi("0x2d"),s(vi("0x2d"))),n[vi("0x35")](vi("0x24"),s(vi("0x24"))),o&&n[vi("0x35")]("todoList",s(vi("0x31"))),n[vi("0x35")](vi("0x3"),r(vi("0x3"))),n[vi("0x35")](vi("0x7"),r(vi("0x7"))),o&&n[vi("0x35")]("checkTodoList",(()=>{const e=t[vi("0x33")][vi("0x1e")](vi("0xd")),o=Array[vi("0x2e")](e[vi("0x3b")]);o[vi("0x2f")]((t=>t[vi("0xa")](vi("0x15"))!=e[vi("0x30")])),t[vi("0x21")][vi("0x19")]((()=>{for(const t of o)n[vi("0x29")](t,{commandName:vi("0xd"),commandParams:[{forceValue:!e[vi("0x30")]}]})}))})),n[vi("0x2")].registerElementLabel(vi("0x20"),(t=>Yo(e,vi("0x22"),t))),n[vi("0x2")][vi("0x1")]((t=>{const{data:n}=t;if(n){if(vi("0x2d")==n.commandName||vi("0x24")==n[vi("0x1c")]||"todoList"==n[vi("0x1c")])switch(n[vi("0x1c")][vi("0x5")](vi("0x26"),"")){case vi("0x13"):return o(Yo(e,vi("0x10")));case"numbered":return o(Yo(e,vi("0x2a")));case"todo":return o(Yo(e,vi("0x39")))}if(vi("0x3")==n.commandName)return{type:vi("0x2c"),content:Yo(e,"*Indent:* %0",Yo(e,vi("0x22")))};if(vi("0x7")==n.commandName)return{type:vi("0x2c"),content:Yo(e,vi("0x32"),Yo(e,vi("0x22")))};if(vi("0xd")==n.commandName)return n[vi("0x27")][0].forceValue?{type:vi("0x2c"),content:Yo(e,"*Check item*")}:{type:"format",content:Yo(e,vi("0x8"))}}function o(t){return{type:vi("0x2c"),content:Yo(e,vi("0x3a"),t)}}}))}}function Ii(t){const e=t[vi("0xa")](vi("0x16"));if(0==e)return t;let n=t;for(;t[vi("0x18")]&&t[vi("0x18")].is(vi("0x1a"),vi("0x20"));){const o=t.previousSibling.getAttribute("listIndent");if(o==e)n=t[vi("0x18")];else if(o<e)break;t=t[vi("0x18")]}return n}function Si(t){const e=[];if(t.is(vi("0x1a"),"listItem")&&t[vi("0xa")](vi("0x16"))>0){let n=t[vi("0xf")];for(;n&&vi("0x20")==n[vi("0xe")]&&n[vi("0xa")](vi("0x16"))==t[vi("0xa")](vi("0x16"));)e.push(n),n=n.nextSibling}return e}const Li=["numbered","listStyle","toUpperCase","commandName","createPositionAt","handleListStyleCommand","_getSuggestionBlocksForListStyle","styles","document","model","_descriptionFactory","listType","getLastPosition","handleDescriptions","_getTranslationKeyForListStyle","getSiblingNodes","change","filter","_LIST_","getAttribute","ListPropertiesEditing","plugins","reversed","locale","config","from","bind","_getSuggestionBlocks","format","TrackChangesEditing","replace","get","commandParams","length","registerDescriptionCallback","listReversed","*Format:* set start index to %0","getSelectedBlocks","*Format:* set order to regular","getFirstPosition","map","has","unshift","listStart","element","markMultiRangeBlockFormat","getListTypeFromListStyleType","*Change to:* %0","afterInit","backward","forward","*Format:* set order to reversed","editor","ELEMENT_","ListUtils","flat","selection","createRange","enableCommand","handleListReversedCommand","type","startIndex","list.properties","listItem","handleListStartCommand"];var Ni,Mi;Ni=Li,Mi=335,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[wi("0x26")](){if(!this[wi("0x2a")].plugins[wi("0x1f")](wi("0xa")))return;const t=this[wi("0x2a")][wi("0xe")][wi("0x15")](wi("0x34")),e=this[wi("0x2a")].plugins[wi("0x15")](wi("0x13"));t[wi("0x3e")]&&e[wi("0x30")](wi("0x38"),this.handleListStyleCommand[wi("0x10")](this)),t.reversed&&e[wi("0x30")](wi("0x19"),this.handleListReversedCommand.bind(this)),t[wi("0x33")]&&e.enableCommand(wi("0x21"),this[wi("0x36")][wi("0x10")](this)),e[wi("0x0")][wi("0x18")](this[wi("0x3")][wi("0x10")](this))}[wi("0x3c")](t,e={}){const n=this[wi("0x2a")][wi("0xb")][wi("0x15")](wi("0x13")),o=this[wi("0x3d")]();this.editor[wi("0x40")][wi("0x6")]((()=>{n[wi("0x23")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x32")]}],formatGroupId:wi("0x38")})}))}[wi("0x31")](t,e={}){const n=this.editor[wi("0xb")][wi("0x15")](wi("0x13")),o=this[wi("0x11")]((t=>t.is(wi("0x22"),wi("0x35"))&&wi("0x37")===t[wi("0x9")](wi("0x1"))));if(o.length<1)return;const s=o[wi("0x1e")]((t=>this[wi("0x2a")][wi("0x40")][wi("0x2f")](this[wi("0x2a")].model[wi("0x3b")](t,"before"),this[wi("0x2a")][wi("0x40")].createPositionAt(t,0))));this[wi("0x2a")][wi("0x40")][wi("0x6")]((()=>{n[wi("0x23")](s,{commandName:wi("0x19"),commandParams:[{reversed:e[wi("0xc")]}],formatGroupId:"listReversed"})}))}[wi("0x36")](t,e={}){const n=this[wi("0x2a")][wi("0xb")][wi("0x15")](wi("0x13")),o=this[wi("0x11")]((t=>t.is(wi("0x22"),wi("0x35"))&&wi("0x37")===t[wi("0x9")](wi("0x1"))));if(o.length<1)return;const s=o[wi("0x1e")]((t=>this.editor.model[wi("0x2f")](this[wi("0x2a")][wi("0x40")][wi("0x3b")](t,"before"),this.editor[wi("0x40")].createPositionAt(t,0))));this.editor[wi("0x40")][wi("0x6")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x21"),commandParams:[{startIndex:e[wi("0x33")]}],formatGroupId:wi("0x21")})}))}[wi("0x3")](t){const e=this.editor[wi("0xd")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x3a")]){case"listStyle":o=wi("0x25"),s={type:wi("0x12"),content:Yo(e,o,Yo(e,this[wi("0x4")](n[wi("0x16")][0].type)))};break;case wi("0x19"):o=n[wi("0x16")][0][wi("0xc")]?wi("0x29"):wi("0x1c"),s={type:"format",content:Yo(e,o)};break;case wi("0x21"):o=wi("0x1a"),s={type:"format",content:Yo(e,o,n[wi("0x16")][0][wi("0x33")])}}return s}[wi("0x3d")](){var t,e,n,o;const s=this[wi("0x2a")][wi("0xb")][wi("0x15")](wi("0x2c"));let r=Array[wi("0xf")](this[wi("0x2a")].model[wi("0x3f")][wi("0x2e")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x22"),wi("0x35")))&&r[wi("0x20")](...s[wi("0x5")](this[wi("0x2a")].model[wi("0x3f")][wi("0x2e")][wi("0x1d")](),wi("0x27"))),(null===(e=r[r[wi("0x17")]-1])||void 0===e?void 0:e.is(wi("0x22"),wi("0x35")))&&r.push(...s.getSiblingNodes(this[wi("0x2a")][wi("0x40")].document[wi("0x2e")][wi("0x2")](),wi("0x28"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x2a")].model[wi("0x3f")][wi("0x2e")][wi("0x1d")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(wi("0x22"),"listItem"))&&(r=r[wi("0x7")]((t=>t.is("element",wi("0x35"))))),r}_getSuggestionBlocks(t){const e=this[wi("0x2a")].plugins[wi("0x15")](wi("0x2c"));let n=Array.from(this[wi("0x2a")][wi("0x40")][wi("0x3f")].selection[wi("0x1b")]())[wi("0x7")](t)[wi("0x1e")]((t=>{const n=this.editor[wi("0x40")][wi("0x3b")](t,0);return[...e.getSiblingNodes(n,wi("0x27")),...e[wi("0x5")](n,wi("0x28"))]}))[wi("0x2d")]();return n=[...new Set(n)],n}[wi("0x4")](t){return wi("0x2b")+this[wi("0x2a")].plugins[wi("0x15")](wi("0x2c"))[wi("0x24")](t)[wi("0x39")]()+wi("0x8")+t[wi("0x39")]()[wi("0x14")](/-/g,"_")}}const Oi=["for","get","ELEMENT_MEDIA","showSuggestionHighlights","div","high","elementToElement","conversion","data","locale","has","media","enableCommand","dataDowncast","plugins","_descriptionFactory","MediaEmbedEditing","stop","editor","afterInit","downcastDispatcher"];var Pi,Di;Pi=Oi,Di=372,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Oi[t-=0]};class ji extends t.Plugin{[Bi("0x4")](){const t=this[Bi("0x3")];if(!t[Bi("0x14")][Bi("0x10")](Bi("0x1")))return;const e=t[Bi("0x14")][Bi("0x7")]("TrackChangesEditing"),n=t[Bi("0xf")];e[Bi("0x12")]("mediaEmbed"),e[Bi("0x0")].registerElementLabel(Bi("0x11"),(t=>Yo(n,Bi("0x8"),t))),t[Bi("0xd")][Bi("0x6")](Bi("0x13"))[Bi("0xc")]({model:Bi("0x11"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x9")])return e.createEmptyElement(Bi("0xa"))},converterPriority:"high"}),t[Bi("0xe")][Bi("0x5")].on("attribute:url:media",((t,e,n)=>{n.options[Bi("0x9")]&&t[Bi("0x2")]()}),{priority:Bi("0xb")})}}const Ui=["has","editor","afterInit","get","enableCommand","TrackChangesEditing","mention","plugins"];var Gi,Hi;Gi=Ui,Hi=487,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x3")](){const t=this[zi("0x2")];t[zi("0x0")][zi("0x1")]("MentionEditing")&&t[zi("0x0")][zi("0x4")](zi("0x6"))[zi("0x5")](zi("0x7"))}}const Vi=["registerElementLabel","PageBreakEditing","locale","TrackChangesEditing","_descriptionFactory","pageBreak","ELEMENT_PAGE_BREAK","has","enableCommand","editor","plugins"];var Ki,qi;Ki=Vi,qi=328,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x0")];if(!t[Xi("0x1")][Xi("0x9")](Xi("0x3")))return;t[Xi("0x1")].get("TrackChangesEditing")[Xi("0xa")](Xi("0x7"));const e=t[Xi("0x1")].get(Xi("0x5")),n=t[Xi("0x4")];e[Xi("0x6")][Xi("0x2")]("pageBreak",(t=>Yo(n,Xi("0x8"),t)))}}const Ji=["consume","parent","_descriptionFactory","isObject","showSuggestionHighlights","$text","insert","isLimit","Paragraph","locale","getFirstRange","blockName","markerRange","addMarker:suggestion:insertion","filter","schema","editor","mapper","ck-suggestion-marker-split","paragraph","markBlockFormat","ELEMENT_PARAGRAPH","addClass","document","highest","checkChild","afterInit","type","activeMarkers","isTouching","insertion","enableCommand","from","name","model","downcastDispatcher","writer","toViewPosition","isBlock","getItemLabel","registerDescriptionCallback","markerName","*Change to:* %0","includes","nodeAfter","plugins","TrackChangesEditing","end","get","registerElementLabel","commandName","ck-suggestion-marker--active","selection","*Insert:* %0"];var Qi,Zi;Qi=Ji,Zi=198,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class ta extends t.Plugin{[Yi("0x2c")](){const t=this[Yi("0x22")];if(!t[Yi("0x9")].has(Yi("0x1a")))return;const e=t[Yi("0x1b")],n=t[Yi("0x9")][Yi("0xc")]("TrackChangesEditing");n[Yi("0x14")][Yi("0xd")](Yi("0x25"),(t=>Yo(e,Yi("0x27"),t))),n[Yi("0x31")](Yi("0x25"),((e,o={})=>{const s=t[Yi("0x34")][Yi("0x29")],r=o[Yi("0x10")]||s[Yi("0x10")],i=Array[Yi("0x32")](r.getSelectedBlocks())[Yi("0x20")]((t=>{return e=t,(n=this.editor.model[Yi("0x21")])[Yi("0x2b")](e[Yi("0x13")],Yi("0x25"))&&!n[Yi("0x15")](e)&&Yi("0x25")!=e[Yi("0x33")];var e,n}));t[Yi("0x34")].change((()=>{for(const t of i)n[Yi("0x26")](t,{commandName:"paragraph",commandParams:[],formatGroupId:Yi("0x1d")},fs(t))}))})),n[Yi("0x14")][Yi("0x4")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Yi("0xe")])return{type:"format",content:Yo(e,Yi("0x6"),Yo(e,Yi("0x27")))}})),n[Yi("0x31")]("insertParagraph"),t.editing[Yi("0x35")].on(Yi("0x1f"),ea(t),{priority:Yi("0x2a")}),t.data[Yi("0x35")].on(Yi("0x1f"),((e,n,o)=>{o.options[Yi("0x16")]&&ea(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x14")];o[Yi("0x4")]((n=>{if("insertion"!==n[Yi("0x2d")])return;const{start:s,end:r}=n[Yi("0x1c")]();if(!s[Yi("0x2f")](r)||!s[Yi("0x8")])return;const i=t[Yi("0x34")][Yi("0x21")],a=s[Yi("0x8")];return i.isBlock(a)&&!i[Yi("0x19")](a)&&i[Yi("0x2b")](a,Yi("0x17"))?{type:Yi("0x30"),content:Yo(e,Yi("0x11"),o[Yi("0x3")](a,1))}:void 0}))}}function ea(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x9")][Yi("0xc")](Yi("0xa")),i=o.markerRange.start,a=o[Yi("0x1e")][Yi("0xb")],x=t[Yi("0x34")].schema;if(!i.isTouching(a)||!i[Yi("0x8")])return;const c=i[Yi("0x8")];if(x[Yi("0x2")](c)&&!x[Yi("0x19")](c)&&x[Yi("0x2b")](c,"$text")){if(!s.consumable[Yi("0x12")](o[Yi("0x1e")],n[Yi("0x33")]))return;const t=s[Yi("0x0")].createUIElement("span",{class:Yi("0x24")}),i=s[Yi("0x23")][Yi("0x1")](a);e&&r[Yi("0x2e")][Yi("0x7")](o.markerName)&&s[Yi("0x0")][Yi("0x28")](Yi("0xf"),t),s[Yi("0x0")][Yi("0x18")](i,t),s[Yi("0x23")].bindElementToMarker(t,o[Yi("0x5")])}}}const na=["locale","getAttributeProperties","selection","from","removeFormat","*Remove all formatting*","change","document","schema","editor","commandName","isFormatting","markInlineFormat","getAttributes","getItems","format","TrackChangesEditing","plugins","model","enableCommand"];var oa,sa;oa=na,sa=489,function(t){for(;--t;)oa.push(oa.shift())}(++sa);const ra=function(t,e){return na[t-=0]};class ia extends t.Plugin{afterInit(){const t=this[ra("0x0")];if(!t[ra("0x8")].has("RemoveFormatEditing"))return;const e=t[ra("0x8")].get(ra("0x7"));e[ra("0xa")](ra("0xf"),(n=>{const o=t.model[ra("0x12")][ra("0xd")];o.isCollapsed?n():t[ra("0x9")][ra("0x11")]((()=>{const n=Array[ra("0xe")](o.getRanges());for(const o of n)for(const n of o[ra("0x5")]())aa(n,t[ra("0x9")][ra("0x13")])&&e[ra("0x3")](t.model.createRangeOn(n),{commandName:ra("0xf"),commandParams:[]})}))})),e._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e;if(n&&ra("0xf")==n[ra("0x1")])return{type:ra("0x6"),content:Yo(t[ra("0xb")],ra("0x10"))}}))}}function aa(t,e){for(const[n]of t[ra("0x4")]()){const t=e[ra("0xc")](n);if(t&&t[ra("0x2")])return!0}return!1}const xa=["goToNextRestrictedEditingException","discardSuggestion","trackChanges","afterInit","plugins","acceptSelectedSuggestions","acceptAllSuggestions","discardSelectedSuggestions","RestrictedEditingModeEditing","editor","discardAllSuggestions","get","enableCommand","TrackChangesEditing","acceptSuggestion","goToPreviousRestrictedEditingException"];var ca,la;ca=xa,la=462,function(t){for(;--t;)ca.push(ca.shift())}(++la);const da=function(t,e){return xa[t-=0]};class ua extends t.Plugin{[da("0x5")](){const t=this[da("0xb")];if(!t[da("0x6")].has(da("0xa")))return;const e=t[da("0x6")][da("0xd")](da("0xf"));e.enableCommand(da("0x1")),e[da("0xe")](da("0x2"));const n=t[da("0x6")][da("0xd")](da("0xa"));n.enableCommand(da("0x4")),n[da("0xe")](da("0x0")),n[da("0xe")](da("0x3")),n[da("0xe")](da("0x8")),n[da("0xe")](da("0xc")),n.enableCommand(da("0x7")),n[da("0xe")](da("0x9"))}}const ga=["test","markerName","editor","requires","get","downcastDispatcher","createUIElement","toViewPosition","insert","ck-suggestion-marker-","registerElementLabel","addMarker:suggestion:insertion","merge","ck-suggestion-marker--active","_descriptionFactory","data","options","ELEMENT_LINE_BREAK","shiftEnter","model","TrackChangesEditing","element","markerRange","showSuggestionHighlights","addMarker:suggestion","editing","high","plugins","mapper","writer","deletion","activeMarkers","createPositionBefore","addMarker:suggestion:deletion","span","split"];var ma,fa;ma=ga,fa=280,function(t){for(;--t;)ma.push(ma.shift())}(++fa);const ha=function(t,e){return ga[t-=0]};class pa extends t.Plugin{static get[ha("0xb")](){return[nr.ShiftEnter]}init(){const t=this[ha("0xa")],e=t[ha("0x23")][ha("0xc")](ha("0x1c"));e.enableCommand(ha("0x1a")),t[ha("0x21")][ha("0xd")].on(ha("0x13"),ba(t),{priority:ha("0x22")}),t[ha("0x21")].downcastDispatcher.on(ha("0x5"),ba(t),{priority:"high"}),t[ha("0x17")][ha("0xd")].on(ha("0x20"),((e,n,o)=>{o[ha("0x18")][ha("0x1f")]&&ba(t,{showActiveMarker:!1})(e,n,o)})),e[ha("0x16")][ha("0x12")]("softBreak",(e=>Yo(t.locale,ha("0x19"),e)))}}function ba(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[ha("0x23")][ha("0xc")](ha("0x1c"));if(!s.consumable[ha("0x8")](o[ha("0x1e")],n.name))return;const i=t[ha("0x1b")];for(const t of o[ha("0x1e")].getItems()){if(!t.is(ha("0x1d"),"softBreak"))continue;const n=ha("0x2")==o.markerName.split(":")[1]?ha("0x14"):ha("0x7"),a=s.writer[ha("0xe")](ha("0x6"),{class:ha("0x11")+n}),x=s[ha("0x0")][ha("0xf")](i[ha("0x4")](t));e&&r[ha("0x3")].includes(o[ha("0x9")])&&s[ha("0x1")].addClass(ha("0x15"),a),s.writer[ha("0x10")](x,a),s[ha("0x0")].bindElementToMarker(a,o[ha("0x9")])}}}const Ea=["model","markInlineFormat","editor","getRanges","TrackChangesEditing","change","isCollapsed","_descriptionFactory","StandardEditingModeEditing","from","value","afterInit","enableCommand","plugins","selection","FORMAT_RESTRICTED_DISABLED","has","commandName","registerDescriptionCallback","commandParams","document","forceValue"];var _a,Ta;_a=Ea,Ta=202,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const Ca=function(t,e){return Ea[t-=0]};class ya extends t.Plugin{[Ca("0x7")](){const t=this[Ca("0x14")],e=t[Ca("0x12")],n=t.locale;if(!t[Ca("0x9")][Ca("0xc")](Ca("0x4")))return;const o=t[Ca("0x9")].get(Ca("0x0")),s="restrictedEditingException",r=t.commands.get(s);o[Ca("0x8")](s,((t,n={})=>{const i=e[Ca("0x10")][Ca("0xa")];if(i[Ca("0x2")])return void t(n);const a=void 0!==n[Ca("0x11")]?n.forceValue:!r[Ca("0x6")];e[Ca("0x1")]((()=>{const t=Array[Ca("0x5")](i[Ca("0x15")]());for(const n of t){const t=a?[n]:ms(s,n,e);for(const e of t)o[Ca("0x13")](e,{commandName:s,commandParams:[{forceValue:a}]})}}))})),o[Ca("0x3")][Ca("0xe")]((t=>{const{data:e}=t;if(e&&e[Ca("0xd")]==s)return e[Ca("0xf")][0][Ca("0x11")]?{type:"format",content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:"format",content:Yo(n,Ca("0xb"))}}))}}const ka=["commandName","get","style:","enableCommand","enabledStyles","document","push","format","classes","modelElements","getAttribute","every","element","normalizeConfig","commandParams","afterInit","style","commands","getDefinitionsForView","isBlock","isCollapsed","registerDescriptionCallback","selection","_getStyleDefinition","getItems","block","*Format:* %0","value","includes","markInlineFormat","styleName","StyleUtils","inline","toLowerCase","*Remove format:* %0","name","markBlockFormat","plugins","model","getSelectedBlocks","change","from","getRanges","Style","DataSchema","_getRangesWithClasses","config"];var Aa,va;Aa=ka,va=140,function(t){for(;--t;)Aa.push(Aa.shift())}(++va);const Ra=function(t,e){return ka[t-=0]};class Ia extends t.Plugin{[Ra("0x10")](){const t=this.editor;if(!t[Ra("0x26")].has(Ra("0x2c")))return;const e=t[Ra("0x12")][Ra("0x2")](Ra("0x11")),n=t.plugins[Ra("0x2")]("TrackChangesEditing"),o=t.locale,s=t.plugins[Ra("0x2")](Ra("0x2d")),r=t[Ra("0x26")][Ra("0x2")](Ra("0x20"))[Ra("0xe")](s,t[Ra("0x0")][Ra("0x2")]("style.definitions"));n[Ra("0x4")](Ra("0x11"),((o,{styleName:i})=>{const a=t[Ra("0x27")][Ra("0x6")][Ra("0x17")],x=this[Ra("0x18")](i,r);if(!x)return;if(!e[Ra("0x5")][Ra("0x1d")](i))return;if(a[Ra("0x15")]&&!x[Ra("0x14")])return void o({styleName:i});const c=!e[Ra("0x1c")][Ra("0x1d")](x[Ra("0x24")]);if(x[Ra("0x14")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Ra("0x1d")](o[Ra("0x24")])){n.add(o);break}}return n}(a[Ra("0x28")](),x[Ra("0xa")]);t[Ra("0x27")][Ra("0x29")]((()=>{for(const t of e)n[Ra("0x25")](t,{commandName:Ra("0x11"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Ra("0x3")+i})}))}else{let e=Array[Ra("0x2a")](a[Ra("0x2b")]());if(!c){const n=Array[Ra("0x2a")](s[Ra("0x13")](x[Ra("0xd")],!1))[0][Ra("0x27")],o=[];for(const s of e){const e=this[Ra("0x2e")](t[Ra("0x27")],s,x[Ra("0x9")],n);o[Ra("0x7")](...e)}e=o}t[Ra("0x27")][Ra("0x29")]((()=>{for(const t of e)n[Ra("0x1e")](t,{commandName:Ra("0x11"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[Ra("0x16")]((t=>{const{data:e}=t;if(e&&Ra("0x11")===e[Ra("0x1")])return e.commandParams[0].forceValue?{type:Ra("0x8"),content:Yo(o,Ra("0x1b"),e[Ra("0xf")][0][Ra("0x1f")][Ra("0x22")]())}:{type:Ra("0x8"),content:Yo(o,Ra("0x23"),e.commandParams[0][Ra("0x1f")][Ra("0x22")]())}}))}[Ra("0x18")](t,e){let n=e[Ra("0x1a")].find((e=>e[Ra("0x24")]===t));return n||(n=e[Ra("0x21")].find((e=>e[Ra("0x24")]===t))),n}[Ra("0x2e")](t,e,n,o){const s=[];for(const r of e[Ra("0x19")]()){const e=r[Ra("0xb")](o);e&&n[Ra("0xc")]((t=>e[Ra("0x9")][Ra("0x1d")](t)))&&s[Ra("0x7")](t.createRangeOn(r))}return s}}const Sa=["root","refresh","from","$graveyard","getChangedMarkers","*Insert:* %0","insertTableRowAbove","map","ELEMENT_TABLE_ROW_WITH_TEXT","getAttribute","substr","subType","get","ELEMENT_TABLE_WITH_TEXT","first","ELEMENT_TABLE_COLUMN_WITH_TEXT","hasAttribute","tablePaste","above","order","getFirstRange","document","plugins","rowspan","has","type","createRangeIn","*Remove:* %0","length","downcastDispatcher","getRowIndexes","selection","writer","$textProxy","every","tableColumn","span","enableCommand","insertTable","getChanges","TableUtils","min","push","tableRow","getSuggestion","isEqual","discard","isIntersectingWithRange","start","_suggestionFactory","item","findAncestor","editor","options","selectTableRow","detach","ELEMENT_TABLE_COLUMN","toLowerCase","accept","getRanges","minRow","TrackChangesEditing","batch","table","_descriptionFactory","removeTableRow","ELEMENT_TABLE","removeTableColumn","insertTableRowBelow","includes","change","filter","commands","getItems","enqueueChange","oldRange","element","getSelectionAffectedTableCells","setSelection","ELEMENT_TABLE_ROW","end","differ","_tableSuggestions","getChildren","execute","last","fromRange","rootName","_splitMarkerName","forceValue","locale","nodeBefore","max","registerPostFixer","_setupColumnsRowsFixing","join","createRangeOn","deletion","registerCustomCallback","suggestion","insert","model","removeClass","createPositionAt","data","selectTableColumn","add","_getCoordsForCells","addClass","_tablePostFixingSubtypes","insertion","markMultiRangeDeletion","isTouching","colspan","insertTableColumnLeft","some","getColumnIndexes","toViewElement","insertTableColumnRight","getCellLocation","_getSuggestionCoords","showSuggestionHighlights","nodeAfter","afterInit","minColumn","position","MIN_SAFE_INTEGER","createTableWalker","markMultiRangeInsertion","registerElementLabel","classes","isInContent","name"];var La,Na;La=Sa,Na=252,function(t){for(;--t;)La.push(La.shift())}(++Na);const Ma=function(t,e){return Sa[t-=0]};class wa extends t.Plugin{constructor(t){super(t),this[Ma("0x7b")]=[Ma("0x39"),"tableColumn"],this._tableSuggestions=new Set}[Ma("0x4")](){const t=this[Ma("0x42")],e=t[Ma("0x73")][Ma("0x23")][Ma("0x2d")];if(!t[Ma("0x24")][Ma("0x26")]("TableEditing"))return;const n=t[Ma("0x68")],o=t[Ma("0x24")][Ma("0x1a")](Ma("0x4b")),s=t.plugins[Ma("0x1a")]("TableUtils");o._descriptionFactory[Ma("0xa")]("table",(t=>Yo(n,Ma("0x50"),t))),this[Ma("0x6c")](),o[Ma("0x33")](Ma("0x34")),o[Ma("0x33")](Ma("0x44")),o[Ma("0x33")](Ma("0x77"));for(const n of[Ma("0x14"),Ma("0x52")]){const r=t.commands[Ma("0x1a")](n);o[Ma("0x33")](n,(n=>{t.model[Ma("0x54")]((t=>{n();const i=Ma("0x20")===r.order,a=s.getSelectionAffectedTableCells(e),x=s[Ma("0x2c")](a),c=i?x[Ma("0x1c")]-1:x[Ma("0x63")]+1,l=a[0][Ma("0x41")]("table"),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array.from(d)[Ma("0x15")]((e=>t.createRangeOn(e.cell)));o[Ma("0x9")](u,"tableRow")}))}))}for(const n of[Ma("0x80"),Ma("0x84")]){const r=t[Ma("0x56")][Ma("0x1a")](n);o[Ma("0x33")](n,(n=>{t.model[Ma("0x54")]((t=>{n();const i="left"===r[Ma("0x21")],a=s[Ma("0x5b")](e),x=s[Ma("0x82")](a),c=i?x[Ma("0x1c")]-1:x[Ma("0x63")]+1,l=a[0][Ma("0x41")](Ma("0x4d")),d=s[Ma("0x8")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Ma("0x10")](d).map((e=>t.createRangeOn(e.cell)));o[Ma("0x9")](u,"tableColumn")}))}))}for(const n of[Ma("0x4f"),Ma("0x51")]){const r=n[Ma("0x18")](11),i=r[Ma("0x47")](),a=i[Ma("0x18")](0,3)+Ma("0x32"),x=Ma("0x4d")+r,c=Ma("0x37")+r,l=Ma("0x6a")+r;o[Ma("0x33")](n,(()=>{t[Ma("0x73")].change((t=>{const r=s[Ma("0x5b")](e),d=r[0].findAncestor("table");let u;if(Ma("0x4f")==n){const t=s[Ma("0x2c")](r);u={startRow:t[Ma("0x1c")],endRow:t[Ma("0x63")],includeAllSlots:!0}}else{const t=s[Ma("0x82")](r);u={startColumn:t.first,endColumn:t[Ma("0x63")],includeAllSlots:!0}}const g=s[Ma("0x8")](d,u),m=Array.from(g)[Ma("0x15")]((({cell:t})=>t)),f=Fa(m[Ma("0x55")]((t=>t[Ma("0x1e")](a)))),h=Fa(m[Ma("0x55")]((t=>!t[Ma("0x1e")](a))))[Ma("0x15")]((e=>t.createRangeOn(e))),p=o[Ma("0x7d")](h,x);if(p&&(Ma("0x39")==p[Ma("0x19")]||Ma("0x31")==p.subType)){const e=this[Ma("0x1")](p);for(const n of f){const o=t[Ma("0x6e")](n),r=s[Ma("0x0")](n),x=n[Ma("0x17")](a)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+x<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array[Ma("0x10")](e[Ma("0x49")]())[Ma("0x15")]((t=>i.LiveRange[Ma("0x64")](t)));t.model[Ma("0x54")]((e=>{const s=e[Ma("0x4c")];n=n[Ma("0x55")]((t=>Ma("0x11")!=t.root[Ma("0x65")])),e[Ma("0x5c")](n),t[Ma("0x56")][Ma("0x1a")](Ma("0x4f"))[Ma("0xf")](),t[Ma("0x62")](Ma("0x4f"),{forceDefaultExecution:!0}),t[Ma("0x73")][Ma("0x58")]((()=>{t[Ma("0x73")][Ma("0x58")](s,(t=>{const e=o.filter((t=>Ma("0x11")!=t[Ma("0xe")][Ma("0x65")]));e.length>0&&t[Ma("0x5c")](e);for(const t of o)t[Ma("0x45")]()}))}))}))}function x(n){t[Ma("0x73")].change((o=>{const s=Array[Ma("0x10")](e.getRanges())[Ma("0x15")]((t=>i.LiveRange[Ma("0x64")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Ma("0x38")](e);for(const e of r)Ma("0x11")!=e[Ma("0xe")].rootName&&(o[Ma("0x5c")](o[Ma("0x75")](e,0)),t[Ma("0x56")][Ma("0x1a")](Ma("0x51"))[Ma("0xf")](),t.execute(Ma("0x51"),{forceDefaultExecution:!0}));const a=s[Ma("0x55")]((t=>Ma("0x11")!=t[Ma("0xe")][Ma("0x65")]));a[Ma("0x2a")]>0&&o.setSelection(a);for(const t of s)t[Ma("0x45")]()}))}function c(t,e){return e[Ma("0x30")]((e=>t[Ma("0x81")]((t=>t[Ma("0x5e")].isEqual(e[Ma("0x3e")])||e[Ma("0x5e")][Ma("0x3b")](t.start)))))}function l(t,e){return t[Ma("0x81")]((t=>e[Ma("0x81")]((e=>t.end[Ma("0x7e")](e[Ma("0x3e")])))))}t[Ma("0x76")][Ma("0x2b")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Ma("0x43")][Ma("0x2")])return;const o=e[Ma("0x40")];if(!o)return;const s=n.mapper[Ma("0x83")](o);function r(t){return Array.isArray(t)?t:[t]}s&&"tableCell"===o.name&&(0,a.setHighlightHandling)(s,n[Ma("0x2e")],((t,e,n)=>n[Ma("0x7a")](r(e[Ma("0xb")]),t)),((t,e,n)=>n[Ma("0x74")](r(e[Ma("0xb")]),t)))}),{priority:"highest"}),o[Ma("0x4e")].registerDescriptionCallback((t=>{if(Ma("0x7c")!=t[Ma("0x27")]&&Ma("0x6f")!=t[Ma("0x27")])return;const e=t.getContainedElement();if(null!=e&&e.is(Ma("0x5a"),Ma("0x4d"))){if("insertion"==t[Ma("0x27")]){const e=t[Ma("0x57")]()[Ma("0x55")]((t=>t.is("$textProxy")))[Ma("0x15")]((t=>t[Ma("0x76")]));if(e.length)return{type:Ma("0x7c"),content:Yo(n,"*Insert:* %0",Yo(n,Ma("0x1b"),'"'+e[Ma("0x6d")](" ")+'"'))}}if(Ma("0x6f")==t[Ma("0x27")]){const e=t[Ma("0x57")]()[Ma("0x55")]((t=>t.is(Ma("0x2f")))).map((t=>t[Ma("0x76")]));if(e[Ma("0x2a")])return{type:Ma("0x6f"),content:Yo(n,"*Remove:* %0",Yo(n,Ma("0x1b"),'"'+e[Ma("0x6d")](" ")+'"'))}}}})),o[Ma("0x4e")].registerDescriptionCallback((t=>{if("tableRow"==t[Ma("0x19")]){const e=t[Ma("0x57")]()[Ma("0x55")]((t=>t.is("$textProxy")))[Ma("0x15")]((t=>t[Ma("0x76")])),o=this[Ma("0x1")](t),s=o.maxRow-o[Ma("0x4a")]+1;if(Ma("0x7c")==t.type)return e[Ma("0x2a")]?{type:Ma("0x7c"),content:Yo(n,Ma("0x13"),Yo(n,Ma("0x16"),[s,'"'+e.join(" ")+'"']))}:{type:Ma("0x7c"),content:Yo(n,"*Insert:* %0",Yo(n,Ma("0x5d"),s))};if(Ma("0x6f")==t[Ma("0x27")])return e[Ma("0x2a")]?{type:Ma("0x6f"),content:Yo(n,Ma("0x29"),Yo(n,Ma("0x16"),[s,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Yo(n,Ma("0x29"),Yo(n,Ma("0x5d"),s))}}if(Ma("0x31")==t.subType){const e=t[Ma("0x57")]()[Ma("0x55")]((t=>t.is(Ma("0x2f"))))[Ma("0x15")]((t=>t[Ma("0x76")])),o=this[Ma("0x1")](t),s=o.maxColumn-o[Ma("0x5")]+1;if(Ma("0x7c")==t[Ma("0x27")])return e.length?{type:Ma("0x7c"),content:Yo(n,"*Insert:* %0",Yo(n,Ma("0x1d"),[s,'"'+e[Ma("0x6d")](" ")+'"']))}:{type:Ma("0x7c"),content:Yo(n,"*Insert:* %0",Yo(n,Ma("0x46"),s))};if(Ma("0x6f")==t[Ma("0x27")])return e[Ma("0x2a")]?{type:Ma("0x6f"),content:Yo(n,"*Remove:* %0",Yo(n,Ma("0x1d"),[s,'"'+e.join(" ")+'"']))}:{type:Ma("0x6f"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o[Ma("0x3f")][Ma("0x70")](Ma("0x7c"),Ma("0x39"),Ma("0x3c"),r),o[Ma("0x3f")][Ma("0x70")]("deletion",Ma("0x39"),Ma("0x48"),r),o._suggestionFactory[Ma("0x70")](Ma("0x7c"),"tableColumn","discard",x),o[Ma("0x3f")][Ma("0x70")]("deletion",Ma("0x31"),Ma("0x48"),x),o[Ma("0x3f")][Ma("0x70")](Ma("0x7c"),Ma("0x31"),"join",c),o[Ma("0x3f")][Ma("0x70")](Ma("0x6f"),Ma("0x31"),Ma("0x6d"),c),o[Ma("0x3f")][Ma("0x70")]("insertion","tableRow","join",l),o[Ma("0x3f")][Ma("0x70")](Ma("0x6f"),"tableRow","join",l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Ma("0x42")],e=t.model[Ma("0x23")][Ma("0x2d")];return(n,o)=>{t[Ma("0x73")][Ma("0x54")]((s=>{const{commandName:r,commandParams:a}=o;let x=n[0][Ma("0x5e")][Ma("0x69")];a&&a[0]&&!1===a[0][Ma("0x67")]&&(x=n[0][Ma("0x3e")][Ma("0x3")]);const c=s[Ma("0x28")](x);if(Ma("0x11")==c[Ma("0xe")].rootName)return;const l=Array[Ma("0x10")](e[Ma("0x49")]())[Ma("0x15")]((t=>i.LiveRange[Ma("0x64")](t)));s[Ma("0x5c")](c),t.commands[Ma("0x1a")](r)[Ma("0xf")](),a[Ma("0x38")]({forceDefaultExecution:!0}),t[Ma("0x62")](r,...a);const d=l[Ma("0x55")]((t=>Ma("0x11")!=t[Ma("0xe")][Ma("0x65")]));d.length>0&&s[Ma("0x5c")](d);for(const t of l)t[Ma("0x45")]()}))}}[Ma("0x79")](t){const e=this[Ma("0x42")][Ma("0x24")].get(Ma("0x36"));let n=Number.MAX_SAFE_INTEGER,o=Number[Ma("0x7")],s=Number.MAX_SAFE_INTEGER,r=Number[Ma("0x7")];for(const i of t){if(Ma("0x11")==i.root[Ma("0x65")])continue;const{row:t,column:a}=e[Ma("0x0")](i),x=i[Ma("0x1e")](Ma("0x25"))?i[Ma("0x17")]("rowspan")-1:0,c=i.hasAttribute(Ma("0x7f"))?i[Ma("0x17")]("colspan")-1:0;n=t<n?t:n,o=t+x>o?t+x:o,s=a<s?a:s,r=a+c>r?a+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Ma("0x6c")](){const t=this.editor,e=t[Ma("0x24")].get(Ma("0x4b")),n=t[Ma("0x24")].get(Ma("0x36"));t[Ma("0x73")][Ma("0x23")].on("change:data",(()=>{const n=Array[Ma("0x10")](t[Ma("0x73")][Ma("0x23")].differ[Ma("0x12")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Ma("0x66")](t);if(Ma("0x71")!=n)continue;if(null!=o[Ma("0x59")])continue;const i=e[Ma("0x3a")](s);this[Ma("0x7b")][Ma("0x53")](r)&&this._tableSuggestions[Ma("0x78")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Ma("0x6e")](t),r=t[Ma("0x41")](Ma("0x4d")),i=n[Ma("0x0")](t);for(const e of this[Ma("0x60")]){const n=e[Ma("0x19")],a=n.startsWith(Ma("0x1f")),x=n[Ma("0x18")](a?10:5),c=x[Ma("0x47")](),l=c.substr(0,3)+"span",d=Ma("0x37")+x,u=Ma("0x6a")+x;if(!e[Ma("0xc")])continue;if(r!=e[Ma("0x22")]()[Ma("0x3e")][Ma("0x41")]("table"))continue;if(e[Ma("0x3d")](s))continue;const g=t[Ma("0x1e")](l)?t[Ma("0x17")](l)-1:0,m=this[Ma("0x1")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t[Ma("0x73")][Ma("0x23")][Ma("0x6b")]((e=>{let n=!1;for(const s of t[Ma("0x73")].document[Ma("0x5f")][Ma("0x35")]())if(Ma("0x72")==s.type)if(Ma("0x39")==s[Ma("0xd")])for(const t of s[Ma("0x6")].nodeAfter[Ma("0x61")]())n=n||o(t,e);else"tableCell"==s[Ma("0xd")]&&(n=n||o(s.position[Ma("0x3")],e));return n}))}[Ma("0x1")](t){return this[Ma("0x79")](t[Ma("0x49")]()[Ma("0x15")]((t=>t[Ma("0x3e")][Ma("0x3")])))}}function Fa(t){return Array[Ma("0x10")](new Set(t).values())}const Oa=["element","direction","mergeTableCellUp","from","low","getRanges","isEnabled","change","_suggestionFactory","mergeTableCells","commands","find","subType","forceDefaultExecution","set:isEnabled","setSelection","*Split cell:* vertically","author","getCellLocation","mergeTableCellDown","format","fromRange","size","table","getFirstPosition","findAncestor","has","requires","refresh","tableCell","containsRange","*Split cell:* horizontally","_isForcedDefaultExecutionBlock","value","getSelectionAffectedTableCells","formatBlock","TableUtils","_areMergableCells","map","selection","rootName","execute","TrackChangesEditing","mergeTableCellRight","trackChanges","_acceptFormatSuggestionCallbackFactory","createRangeOn","_descriptionFactory","highest","length","registerDescriptionCallback","accept","*Merge cells*","filter","get","detach","registerCustomCallback","editor","document","createTableWalker","commandName","splitTableCellVertically","horizontally","cell","model","getSuggestions","_tablePostFixingSubtypes","getAncestors","add","TableEditing","root","return","plugins","locale","enableCommand","$graveyard","stop","mergeTableCellLeft","markMultiRangeBlockFormat"];var Pa,Da;Pa=Oa,Da=294,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Oa[t-=0]};class ja extends t.Plugin{static get[Ba("0x31")](){return[wa]}afterInit(){const t=this[Ba("0x0")],e=t[Ba("0x7")][Ba("0x1")][Ba("0x3d")],n=t[Ba("0x10")];if(!t[Ba("0xf")][Ba("0x30")](Ba("0xc")))return;const o=t[Ba("0xf")][Ba("0x4c")](Ba("0x40")),s=t[Ba("0xf")][Ba("0x4c")](Ba("0x3a")),r=t[Ba("0xf")].get(wa);r[Ba("0x9")].push(Ba("0x1f")),o[Ba("0x11")](Ba("0x1f"),(()=>{const e=s[Ba("0x38")](t[Ba("0x7")].document.selection);t[Ba("0x7")].change((()=>{o.markMultiRangeBlockFormat(e,{commandName:"mergeTableCells",commandParams:[]},[],Ba("0x1f"))}))})),t[Ba("0x20")][Ba("0x4c")](Ba("0x1f")).on(Ba("0x3f"),((e,n)=>{t.commands.get(Ba("0x42"))[Ba("0x37")]&&(n[Ba("0x47")]>0&&n[n[Ba("0x47")]-1]&&n[n[Ba("0x47")]-1][Ba("0x23")]||o[Ba("0x36")]||this._areSelectedCellsMergable()||e[Ba("0x13")]())}),{priority:Ba("0x46")});for(const e of[Ba("0x18"),Ba("0x41"),Ba("0x29"),Ba("0x14")]){const n=t[Ba("0x20")][Ba("0x4c")](e);o[Ba("0x11")](e,(()=>{const e=t.model[Ba("0x1")][Ba("0x3d")].getFirstPosition()[Ba("0xa")]()[Ba("0x21")]((t=>t.is(Ba("0x16"),Ba("0x33")))),s=n.value;t[Ba("0x7")][Ba("0x1d")]((()=>{o[Ba("0x15")]([e,s],{commandName:Ba("0x1f"),commandParams:[]},[],Ba("0x1f"))}))}))}for(const e of[Ba("0x4"),"splitTableCellHorizontally"]){const n=t.commands[Ba("0x4c")](e);o[Ba("0x11")](e,(()=>{const r=s.getSelectionAffectedTableCells(t[Ba("0x7")][Ba("0x1")][Ba("0x3d")])[0],i=r[Ba("0x2f")](Ba("0x2d")),{column:a,row:x}=s[Ba("0x28")](r);let c=[];if(Ba("0x5")==n[Ba("0x17")]){const t=s[Ba("0x2")](i,{startRow:x,endRow:x,includeAllSlots:!0});c=Array[Ba("0x19")](t).map((t=>t[Ba("0x6")]))}else{const t=s[Ba("0x2")](i,{column:a,includeAllSlots:!0});c=Array[Ba("0x19")](t)[Ba("0x3c")]((t=>t[Ba("0x6")]))}t[Ba("0x7")][Ba("0x1d")]((t=>{o.markBlockFormat(t[Ba("0x44")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Ba("0x45")][Ba("0x48")]((t=>{const{data:e}=t;if(e)return Ba("0x1f")==e[Ba("0x3")]?{type:Ba("0x2a"),content:Yo(n,Ba("0x4a"))}:void 0})),o._descriptionFactory[Ba("0x48")]((t=>{const{data:e}=t;if(e)return Ba("0x4")==e[Ba("0x3")]?{type:Ba("0x2a"),content:Yo(n,Ba("0x26"))}:"splitTableCellHorizontally"==e[Ba("0x3")]?{type:Ba("0x2a"),content:Yo(n,Ba("0x35"))}:void 0}));const a=r[Ba("0x43")]();for(const t of[Ba("0x18"),Ba("0x41"),Ba("0x29"),Ba("0x14")])o[Ba("0x1e")][Ba("0x4e")](Ba("0x39"),t,Ba("0x49"),a);for(const t of[Ba("0x4"),"splitTableCellHorizontally"])o[Ba("0x1e")][Ba("0x4e")](Ba("0x39"),t,Ba("0x49"),a);o._suggestionFactory[Ba("0x4e")](Ba("0x39"),"mergeTableCells",Ba("0x49"),(n=>{t[Ba("0x7")][Ba("0x1d")]((o=>{const s=Array.from(e[Ba("0x1b")]()).map((t=>i.LiveRange[Ba("0x2b")](t)));o[Ba("0x25")](n),t[Ba("0x20")][Ba("0x4c")](Ba("0x1f"))[Ba("0x32")](),t.execute(Ba("0x1f"),{forceDefaultExecution:!0});const r=s[Ba("0x4b")]((t=>Ba("0x12")!=t[Ba("0xd")][Ba("0x3e")]));r[Ba("0x47")]>0&&o[Ba("0x25")](r);for(const t of s)t[Ba("0x4d")]()}))}));for(const e of[Ba("0x18"),Ba("0x29"),Ba("0x14"),Ba("0x41")]){const n=t[Ba("0x20")][Ba("0x4c")](e);n.on(Ba("0x24"),((e,o,s)=>{if(s){const o=t[Ba("0x7")][Ba("0x1")][Ba("0x3d")][Ba("0x2e")]()[Ba("0xa")]()[Ba("0x21")]((t=>t.is(Ba("0x16"),Ba("0x33"))));this[Ba("0x3b")](n.value,o)||(e[Ba("0xe")]=!1,e[Ba("0x13")]())}}),{priority:Ba("0x1a")})}}_areSelectedCellsMergable(){const t=this[Ba("0x0")][Ba("0x20")].get("mergeTableCells"),e=this[Ba("0x0")][Ba("0xf")].get("TableUtils");if(!t[Ba("0x1c")])return!1;const n=e[Ba("0x38")](this[Ba("0x0")][Ba("0x7")][Ba("0x1")][Ba("0x3d")]);for(const t of n)for(const e of n)if(t!=e&&!this[Ba("0x3b")](t,e))return!1;return!0}[Ba("0x3b")](t,e){const n=this[Ba("0x0")][Ba("0xf")][Ba("0x4c")](Ba("0x40")),o=this[Ba("0x0")][Ba("0x7")][Ba("0x44")](t),s=this[Ba("0x0")][Ba("0x7")][Ba("0x44")](e),r=new Set,i=new Set;for(const t of n[Ba("0x8")]())if(("insertion"==t.type||"deletion"==t.type||Ba("0x1f")==t[Ba("0x22")])&&t.isInContent)for(const e of t[Ba("0x1b")]())e[Ba("0x34")](o,!0)&&r[Ba("0xb")](t.type+":"+t[Ba("0x27")].id),e[Ba("0x34")](s,!0)&&i[Ba("0xb")](t.type+":"+t[Ba("0x27")].id);if(r[Ba("0x2c")]!=i[Ba("0x2c")])return!1;for(const t of r)if(!i[Ba("0x30")](t))return!1;return!0}}const Ua=["activeMarkers","headingColumns","first","requires","createPositionAfter","ck-suggestion-marker--active","unbindElementFromMarkerName","format","consumable","registerCustomCallback","locale","mapper","ck-suggestion-marker-","createRange","editing","last","enableCommand","table","commandName","getRowIndexes","setAttribute","getSuggestion","addMarker:suggestion","nodeAfter","_acceptFormatSuggestionCallbackFactory","removeMarker:suggestion","getCellLocation","model","start","getAttribute","TableUtils","registerDescriptionCallback","selection","getSelectionAffectedTableCells","consume","document","downcastDispatcher","value","name","removeClass","change","setTableColumnHeader","TrackChangesEditing","index","addClass","markerName","data-suggestion","commands","forceValue","nodeBefore","cell","_suggestionFactory","markBlockFormat","setTableRowHeader","formatBlock","findAncestor","options","accept","showSuggestionHighlights","highest","writer","markerRange","createTableWalker","*Format:* %0","_descriptionFactory","isBefore","plugins","get","markerNameToElements","createPositionBefore","commandParams","getChild","data","childCount"];var Ga,Ha;Ga=Ua,Ha=384,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x3f")](){return[wa]}afterInit(){const t=this.editor;if(!t[za("0x34")].has("TableEditing"))return;const e=t[za("0x46")],n=t[za("0x34")][za("0x35")](za("0x1c")),o=t[za("0x34")][za("0x35")](za("0x10")),s=t[za("0x34")][za("0x35")](wa);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:a,id:x}=n._splitMarkerName(r[za("0x1f")]),c=n[za("0x7")](x);if(!c[za("0x3a")]||"setTableColumnHeader"!=c[za("0x3a")].commandName)return;if(r.item)return void s.stop();if(!i[za("0x44")][za("0x14")](r[za("0x2f")],s[za("0x18")]))return;const l=r[za("0x2f")][za("0xe")][za("0x9")],d=r[za("0x2f")].end[za("0x23")],u=l.parent.parent,{column:g}=o[za("0xc")](l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o[za("0x30")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[za("0x24")],c=i[za("0x47")].toViewElement(s);i[za("0x2e")][za("0x1e")](za("0x48")+a,c),e&&i.writer[za("0x6")]("data-suggestion",x,c),i[za("0x47")].bindElementToMarker(c,r[za("0x1f")]),t&&(n[za("0x3c")].includes(r[za("0x1f")])?i[za("0x2e")][za("0x1e")](za("0x41"),c):i[za("0x2e")].removeClass(za("0x41"),c))}}}}n[za("0x2")]("setTableRowHeader",((e,s)=>{const r=o[za("0x13")](t[za("0xd")][za("0x15")].selection),i=o[za("0x5")](r),a=r[0].findAncestor(za("0x3")),x=a.getAttribute("headingRows")||0,c=s&&null!==s[za("0x22")]?s[za("0x22")]:!t[za("0x21")].get("setTableRowHeader").value,l=c?i[za("0x1")]:i[za("0x3e")],d=a[za("0x39")](l);let u;if(c){const e=a[za("0x39")](x);if(d[za("0x1d")]<e.index)return;u=t.model[za("0x49")](t[za("0xd")][za("0x37")](e.getChild(0)),t[za("0xd")][za("0x40")](d.getChild(d[za("0x3b")]-1)))}else{const e=a[za("0x39")](x-1);if(!e)return;u=t[za("0xd")].createRange(t[za("0xd")][za("0x37")](d[za("0x39")](0)),t[za("0xd")][za("0x40")](e[za("0x39")](e[za("0x3b")]-1)))}t[za("0xd")][za("0x1a")]((()=>{n[za("0x26")](u,{commandName:za("0x27"),commandParams:[{forceValue:c}]},[],za("0x27"))}))})),n[za("0x2")](za("0x1b"),((e,o)=>{const s=t[za("0x34")].get(za("0x10")),r=s.getSelectionAffectedTableCells(t[za("0xd")][za("0x15")][za("0x12")]),i=s.getColumnIndexes(r),a=r[0][za("0x29")]("table"),x=a[za("0xf")](za("0x3d"))||0,c=o&&null!==o[za("0x22")]?o.forceValue:!t[za("0x21")].get(za("0x1b"))[za("0x17")];let l;const d=a[za("0x39")](0),u=c?i[za("0x1")]:i[za("0x3e")],g=s[za("0x30")](a,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][za("0x24")];if(c){const e=d[za("0x39")](x);if(m[za("0x33")](e))return;l=t[za("0xd")][za("0x49")](t[za("0xd")][za("0x37")](e),t[za("0xd")][za("0x40")](m))}else{const e=d[za("0x39")](x-1);if(!e)return;l=t[za("0xd")][za("0x49")](t.model[za("0x37")](m),t[za("0xd")].createPositionAfter(e))}t[za("0xd")][za("0x1a")]((()=>{n.markBlockFormat(l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],za("0x1b"))}))})),t[za("0x0")].downcastDispatcher.on(za("0x8"),r(),{priority:za("0x2d")}),t[za("0x3a")][za("0x16")].on(za("0x8"),((t,e,n)=>{n[za("0x2a")][za("0x2c")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:za("0x2d")}),t.editing.downcastDispatcher.on(za("0xb"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[za("0x1f")]),i=n[za("0x7")](r);if(!i.data||"setTableColumnHeader"!=i[za("0x3a")][za("0x4")])return;const a=o[za("0x47")][za("0x36")](e[za("0x1f")]);if(a)for(const t of a)o[za("0x2e")][za("0x19")](za("0x48")+s,t),o.writer[za("0x19")](za("0x41"),t),o[za("0x2e")].removeAttribute(za("0x20"),t),o[za("0x47")][za("0x42")](t,e[za("0x1f")])}),{priority:"highest"}),n[za("0x32")][za("0x11")]((t=>{const{data:n}=t;if(n){if(za("0x27")==n.commandName){const t=n[za("0x38")][0][za("0x22")];return o(Yo(e,t?"FORMAT_HEADER_ROW":"FORMAT_REGULAR_ROW"))}if(za("0x1b")==n[za("0x4")]){const t=n[za("0x38")][0][za("0x22")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:za("0x43"),content:Yo(e,za("0x31"),t)}}}));const i=s[za("0xa")]();n[za("0x25")][za("0x45")](za("0x28"),za("0x27"),za("0x2b"),i),n[za("0x25")][za("0x45")](za("0x28"),za("0x1b"),za("0x2b"),i)}}const Va=["getSuggestionCallback","type","tablePasteRow","selection","root","from","setAttribute","options","reduce","elementToElement","_getCoordsForCells","paragraph","deletion","differ","getSelectionAffectedTableCells","fill","nodeAfter","move","conversion","_suggestionFactory","_tablePostFixingSubtypes","length","low","for","return","getTableIfOnlyTableInContent","nextSibling","clipboardOutput","element","setAttributes","redo","first","dataDowncast","requires","editor","createElement","tableCellVerticalAlignment","map","removeMarker","findAncestor","entries","locale","getRange","getAllAdjacentSuggestions","suggestion:formatBlock:tablePasteCell","getRows","registerDescriptionCallback","get","formatBlock","name","model","_replaceTableSlotCell","Users","showSuggestionHighlights","_splitMarkerName","end","last","subType","content","tablePasteColumn","$graveyard","getContainedElement","_isForcedDefaultExecutionBlock","tablePaste","join","add","TableClipboard","tableCellBorderStyle","removeMarkers","getChild","start","insertColumns","tableCell","unwrap","fromEntries","TableUtils","isInContent","change","markMultiRangeDeletion","tableCellHorizontalAlignment","set","document","getSuggestions","table","_descriptionFactory","documentSelection","insertion","tableCellBorderColor","listenTo","stop","createRangeIn","isEqual","ck-suggestion-marker-insertion","commands","getMarkers","isEmpty","suggestion","registerPostFixer","keys","tableCellSuggestion","has","columnInsertionIndexes","previous","includes","getRowIndexes","createRangeOn","registerCustomCallback","activeMarkers","cells","accept","tablePasteChainId","insertContent","getChangedMarkers","rootName","rowInsertionRanges","previousSibling","find","schema","oldRange","value","remove","markerToHighlight","position","cell","rowInsertionIndexes","removeRows","markerName","register","ck-suggestion-marker","suggestionUnloaded","column","createPositionBefore","wrap","markMultiRangeInsertion","insert","discard","tablePasteCell","removeColumns","newRange","tableCellBackgroundColor","attributes","editing","getShiftedBy","getRanges","suggestion-td","high","TrackChangesEditing","_createdBatches","afterInit","plugins","updateMarker","markMultiRangeBlockFormat","createTableWalker","push","trackChanges","insertRows","filter","row","getChildren","markerAttributes","startsWith"];var Ka,qa;Ka=Va,qa=272,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]},$a=["tableCellBorderWidth",Xa("0x89"),Xa("0x75"),Xa("0x81"),Xa("0x56"),Xa("0x1c"),"tableCellPadding"],Ja=Object.fromEntries($a[Xa("0x57")]((t=>[t,null])));class Qa extends t.Plugin{static get[Xa("0x53")](){return[wa]}[Xa("0x25")](){const t=this[Xa("0x54")];if(!t[Xa("0x26")][Xa("0x96")](Xa("0x74")))return;const n=t.plugins[Xa("0x61")](Xa("0x23")),o=t[Xa("0x26")][Xa("0x61")](Xa("0x7d")),s=t[Xa("0x26")][Xa("0x61")](wa),r=t[Xa("0x26")].get(Xa("0x74"));s[Xa("0x46")][Xa("0x2a")](Xa("0x34"),Xa("0x6d")),t[Xa("0x64")][Xa("0x6")][Xa("0x10")](Xa("0x95"),{allowIn:"tableCell",allowContentOf:Xa("0x7a"),isLimit:!0}),t.conversion[Xa("0x3b")]({model:"tableCellSuggestion",view:Xa("0x21")});let i=null;t[Xa("0x64")].on(Xa("0x0"),((s,a)=>{const[x,c]=a,l=a[a[Xa("0x47")]-1];l&&l.forceDefaultExecution||n[Xa("0x70")]||this.editor[Xa("0x8f")][Xa("0x61")](Xa("0x2b"))[Xa("0x8")]&&function(t,e,n,o,s){if(e&&!e.is(Xa("0x87")))return!1;const r=s[Xa("0x4b")](t,n);if(!r||!Ya(r,void 0,o))return!1;const i=o[Xa("0x40")](n.document[Xa("0x35")]);if(!i[Xa("0x47")])return!1;const a=i[0][Xa("0x59")]("table"),x=o[Xa("0x9a")](i),c=o.getColumnIndexes(i),l={startRow:x.first,endRow:x[Xa("0x6a")],startColumn:c[Xa("0x51")],endColumn:c[Xa("0x6a")]};return 1==i.length&&(l.endRow+=o[Xa("0x5f")](r)-1,l.endColumn+=o.getColumns(r)-1),Ya(a,l,o)}(x,c,t[Xa("0x64")],o,r)&&(s[Xa("0x8b")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xa("0x64")][Xa("0x7f")]((()=>{t[Xa("0x64")][Xa("0x0")](a[0],a[1],a[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:x,deletionRanges:c,cells:l}=i;s[Xa("0x47")]&&n[Xa("0x16")](s,Xa("0x34"),{tablePasteChainId:o}),r[Xa("0x47")]&&n.markMultiRangeInsertion(r,"tablePasteColumn",{tablePasteChainId:o}),x[Xa("0x47")]&&n[Xa("0x16")](x,Xa("0x71"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xa("0x47")]&&n[Xa("0x80")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xa("0x28")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xa("0x19"),{tablePasteChainId:o});if(d){const e=d[Xa("0x90")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Xa("0x9b")](o),i=e.find((t=>t[Xa("0x5c")]().isEqual(r)));i&&n[Xa("0x2a")]([i[Xa("0x63")],s])}n.length&&d[Xa("0x38")](Xa("0x30"),Object[Xa("0x7c")](n))}i=null})))}),{priority:e.priorities[Xa("0x22")]+10}),t[Xa("0x26")][Xa("0x61")](Xa("0x74")).on(Xa("0x65"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Xa("0xc")],a=o,x=Za(r),c=Za(a);t[Xa("0x4a")]=r;let l=null,d=null;if(c||x)if(x&&!c){s[Xa("0x9")](r[Xa("0x77")](0));for(const t of Array.from(a[Xa("0x2f")]()))s[Xa("0x17")](t,r,Xa("0x69"));const t=i[Xa("0xd")].includes(n[Xa("0x2e")]),e=i[Xa("0x97")][Xa("0x99")](n[Xa("0x13")]);t||e||(l=s[Xa("0x8c")](r))}else c&&!x&&(d=s[Xa("0x8c")](r));else{const t=s.createElement(Xa("0x95")),e=s[Xa("0x55")](Xa("0x95"));s[Xa("0x15")](s[Xa("0x8c")](r),e),s.insert(t,r,0);for(const e of Array[Xa("0x37")](a[Xa("0x2f")]()))s.insert(e,t,Xa("0x69"));l=s[Xa("0x9b")](t),d=s[Xa("0x9b")](e)}const u=Array[Xa("0x37")](a.getAttributes())[Xa("0x2d")]((([t])=>$a[Xa("0x99")](t)));i[Xa("0x9e")].push({element:r,attributes:u[Xa("0x47")]?Object[Xa("0x7c")](u):null}),l&&i.insertionRanges[Xa("0x2a")](l),d&&i.deletionRanges[Xa("0x2a")](d)}),{priority:Xa("0x22")}),o.on(Xa("0x79"),((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r.columns||1;i.columnInsertionIndexes=new Array(x)[Xa("0x41")](a)[Xa("0x57")](((t,e)=>t+e));for(const{cell:e}of o[Xa("0x29")](s,{startColumn:a,endColumn:a+x-1}))i.columnInsertionRanges.push(t[Xa("0x64")][Xa("0x9b")](e))}),{priority:Xa("0x48")}),o.on(Xa("0x2c"),((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r.rows||1;i.rowInsertionIndexes=new Array(x)[Xa("0x41")](a)[Xa("0x57")](((t,e)=>t+e));for(const{cell:e}of o[Xa("0x29")](s,{startRow:a,endRow:a+x-1}))i[Xa("0x3")].push(t[Xa("0x64")][Xa("0x9b")](e))}),{priority:Xa("0x48")}),n[Xa("0x86")][Xa("0x60")]((e=>{if(e.subType&&e[Xa("0x6b")][Xa("0x31")](Xa("0x71")))return e[Xa("0x98")]?{}:{type:Xa("0x88"),content:Yo(t[Xa("0x5b")],"*Replace table cells*")}}));const a=()=>{};for(const t of[Xa("0x71"),Xa("0x6d"),"tablePasteRow",Xa("0x19")])n[Xa("0x45")][Xa("0x9c")](Xa("0x88"),t,Xa("0x72"),a),n[Xa("0x45")][Xa("0x9c")](Xa("0x3e"),t,Xa("0x72"),a);n._suggestionFactory[Xa("0x9c")](Xa("0x62"),Xa("0x19"),Xa("0x18"),a),n[Xa("0x45")][Xa("0x9c")](Xa("0x62"),Xa("0x19"),"accept",((e,n,o)=>{const s=e[Xa("0x57")]((t=>t.getContainedElement()))[Xa("0x2d")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xa("0x9e")])e&&r.set(t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Xa("0x5a")](o.markerAttributes)){const o=t[Xa("0x64")].markers[Xa("0x61")](e),s=o?o.getRange()[Xa("0x6f")]():null;s&&r[Xa("0x82")](s,n)}t[Xa("0x64")].change((t=>{for(const[e,n]of r)t[Xa("0x4f")]({...Ja,...n},e)}))}));const x=(e,o)=>{n[Xa("0x45")].registerCustomCallback(e,Xa("0x71"),o,((s,r,i)=>{t[Xa("0x64")].change((t=>{const a=[];for(const t of s){const e=t[Xa("0x78")][Xa("0x42")];e.is(Xa("0x4e"),Xa("0x95"))&&a[Xa("0x2a")](e)}n[Xa("0x45")][Xa("0x32")](e,null,o)(s,r,i);for(const e of a)Xa("0x6e")!=e[Xa("0x36")][Xa("0x2")]&&t[Xa("0x7b")](e)}))}))};x(Xa("0x88"),Xa("0x9f")),x(Xa("0x88"),Xa("0x18")),x(Xa("0x3e"),Xa("0x9f")),x(Xa("0x3e"),Xa("0x18")),n._suggestionFactory[Xa("0x9c")](Xa("0x88"),Xa("0x34"),Xa("0x18"),(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][Xa("0x59")](Xa("0x85")),{minRow:r,maxRow:i}=s[Xa("0x3c")](e);o[Xa("0xe")](n,{at:r,rows:i-r+1})})),n[Xa("0x45")].registerCustomCallback(Xa("0x88"),Xa("0x6d"),"discard",(t=>{const e=t[Xa("0x57")]((t=>t[Xa("0x6f")]())),n=e[0][Xa("0x59")](Xa("0x85")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[Xa("0x1a")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xa("0x6b")]||!e[Xa("0x6b")][Xa("0x31")](Xa("0x71")))return;const o=e[Xa("0x1d")].tablePasteChainId,s=n.getSuggestions().filter((t=>t[Xa("0x7e")]&&t.attributes&&t.attributes.tablePasteChainId==o));s[Xa("0x47")]&&e.getAllAdjacentSuggestions().length!=s.length&&s[Xa("0x3a")](((t,e)=>(t.next=e,e[Xa("0x98")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xa("0x68")](t.markerName),s=[Xa("0x11"),Xa("0x8e")],r=n[Xa("0x9d")][Xa("0x99")](t[Xa("0xf")]);return r&&s[Xa("0x2a")]("ck-suggestion-marker--active"),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Xa("0x22")}),n.on(Xa("0x12"),c,{priority:Xa("0x22")}),t[Xa("0x64")][Xa("0x83")].registerPostFixer((()=>{let e=!1;const o=Array[Xa("0x37")](t.model.document[Xa("0x3f")][Xa("0x1")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:a}=n._splitMarkerName(s);if(Xa("0x92")!=o||Xa("0x3e")!=i||r[Xa("0x7")])continue;if(!n.hasSuggestion(a))continue;const x=n.getSuggestion(a)[Xa("0x20")](),c=t[Xa("0x26")][Xa("0x61")]("Users").me;for(const t of n.getSuggestions())if(t[Xa("0x7e")]&&t.author==c&&Xa("0x62")==t[Xa("0x33")]&&"tablePasteCell"==t[Xa("0x6b")]&&t[Xa("0x20")]().every((t=>x.some((e=>e.containsRange(t,!0))))))for(const n of t[Xa("0x5d")]())n.isInContent&&(n[Xa("0x18")](),e=!0)}return e})),t[Xa("0x64")][Xa("0x83")][Xa("0x93")]((e=>{const o=t[Xa("0x8f")][Xa("0x61")](Xa("0x50"));if(!o||!o[Xa("0x24")][Xa("0x96")](e.batch))return!1;let s=!1;const r=t[Xa("0x26")][Xa("0x61")]("Users").me,i=t[Xa("0x64")].document[Xa("0x3f")].getChanges(),a=Array.from(t[Xa("0x64")].document[Xa("0x3f")].getChangedMarkers())[Xa("0x2d")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return Xa("0x92")==o&&Xa("0x71")==s&&i==r.id&&!e.oldRange}));for(const t of i){if(Xa("0x17")!=t[Xa("0x33")]||"tableCellSuggestion"!=t[Xa("0x63")]||1!=t.length)continue;const n=e.createRange(t[Xa("0xb")],t[Xa("0xb")][Xa("0x1f")](1));if(!a[Xa("0x5")]((({data:t})=>t[Xa("0x1b")][Xa("0x8d")](n))))for(const{name:t,data:o}of a)if(n.containsRange(o[Xa("0x1b")])){e[Xa("0x27")](t,{range:n}),s=!0;break}}return s})),t[Xa("0x64")][Xa("0x83")][Xa("0x93")]((e=>{let o=!1;const s=t.plugins[Xa("0x61")](Xa("0x66")).me,r=n[Xa("0x84")]()[Xa("0x2d")]((t=>t[Xa("0x7e")]&&t.author==s)),i=new Set,a=new Set;for(const t of r)if(Xa("0x71")==t[Xa("0x6b")])for(const e of t[Xa("0x90")]()){const n=e[Xa("0x5c")]()[Xa("0x6f")]();if(n)if(n.is(Xa("0x4e"),Xa("0x95"))&&Za(n)){t[Xa("0x58")](e[Xa("0x63")]),i[Xa("0x73")](n),o=!0;const s=n[Xa("0x4c")],r=n[Xa("0x4")],x=s&&s.is("element",Xa("0x95")),c=r&&r.is(Xa("0x4e"),Xa("0x95"));x&&!i[Xa("0x96")](s)&&a[Xa("0x73")](s),c&&!i[Xa("0x96")](r)&&a[Xa("0x73")](r)}else n.is("element",Xa("0x3d"))&&n.isEmpty&&(t[Xa("0x58")](e.name),o=!0)}else if("tablePasteCell"==t[Xa("0x6b")]){if(!t.attributes||!t[Xa("0x1d")][Xa("0xa0")])continue;const e=t[Xa("0x1d")][Xa("0x30")];if(e&&Object[Xa("0x94")](e)[Xa("0x47")])continue;const n=t[Xa("0x1d")].tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e.subType&&e[Xa("0x6b")].startsWith(Xa("0x71"))){if(!e[Xa("0x1d")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e.attributes.tablePasteChainId==n){s=!1;break}}i&&s&&(t[Xa("0x76")](),o=!0)}for(const t of i)e[Xa("0x9")](t);for(const t of a)e[Xa("0x7b")](t);return o})),t[Xa("0x44")][Xa("0x49")]("editingDowncast")[Xa("0xa")]({model:Xa("0x5e"),view:(t,e)=>l(t),converterPriority:Xa("0x22")}),t.conversion[Xa("0x49")](Xa("0x52"))[Xa("0xa")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[Xa("0x39")][Xa("0x67")]?l(t,!1):null,converterPriority:Xa("0x22")});const d=t[Xa("0x1e")].view;this[Xa("0x8a")](d[Xa("0x83")],Xa("0x4d"),((t,e)=>{const n=[];for(const t of d[Xa("0x8c")](e[Xa("0x6c")]).getItems())t.is(Xa("0x4e"),Xa("0x21"))&&n[Xa("0x2a")](t);d[Xa("0x7f")]((t=>{for(const e of n)t[Xa("0x43")](t.createRangeIn(e),t[Xa("0x14")](e)),t[Xa("0x9")](e)}))}))}}function Za(t){if(t[Xa("0x91")])return!0;const e=t.getChild(0);return e.is("element",Xa("0x3d"))&&e.isEmpty}function Ya(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const tx=["model","resizeTableWidth","format","tableWidth","getSuggestions","selection","plugins","locale","formatBlock","handleResizeTableWidthCommand","getTableColumnsWidths","get","_suggestionFactory","_descriptionFactory","accept","formatGroupId","getAttribute","columnWidths","markBlockFormat","table","getColumnGroupElement","discard","resizeTable","subType","data","change","getSuggestionCallback","editor","resizeColumnWidths","enableCommand","afterInit","handleSuggestionDescription","registerCustomCallback","TrackChangesEditing","has","bind","document","TableColumnResizeEditing"];var ex,nx;ex=tx,nx=128,function(t){for(;--t;)ex.push(ex.shift())}(++nx);const ox=function(t,e){return tx[t-=0]};class sx extends t.Plugin{[ox("0x10")](){if(!this[ox("0xd")].plugins[ox("0x14")]("TableColumnResizeEditing"))return;const t=this[ox("0xd")][ox("0x1e")][ox("0x23")](ox("0x13"));t[ox("0xf")](ox("0x19"),this[ox("0x21")][ox("0x15")](this)),t[ox("0xf")](ox("0xe"),this[ox("0x21")].bind(this)),t[ox("0x24")][ox("0x12")](ox("0x20"),ox("0x8"),ox("0x0"),t[ox("0x24")].getSuggestionCallback(ox("0x20"),null,ox("0x7"))),t[ox("0x24")].registerCustomCallback(ox("0x20"),"resizeTable","discard",t[ox("0x24")][ox("0xc")](ox("0x20"),null,ox("0x0"))),t[ox("0x25")].registerDescriptionCallback(this.handleSuggestionDescription[ox("0x15")](this))}[ox("0x21")](t,e){const n=this[ox("0xd")][ox("0x1e")][ox("0x23")](ox("0x13")),o=this[ox("0xd")].plugins[ox("0x23")](ox("0x17")),s=e[ox("0x5")]||this[ox("0xd")][ox("0x18")][ox("0x16")][ox("0x1d")].getSelectedElement();this[ox("0xd")][ox("0x18")][ox("0xb")]((()=>{const r=o[ox("0x6")](s);let i=r?o[ox("0x22")](r):null,a=s[ox("0x2")](ox("0x1b"))||null;const x=e[ox("0x1b")]||a,c=e[ox("0x3")]||i,l=this.editor[ox("0x1e")].get("Users").me;for(const t of n[ox("0x1c")]()){const e=t.getContainedElement();if(ox("0x8")===t[ox("0x9")]&&e===s){t.author!==l&&t.discard();const e=t[ox("0xa")].commandParams;a=e[0][ox("0x1b")],i=e[0].columnWidths;break}}t({table:s,tableWidth:x,columnWidths:c}),n[ox("0x4")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:a,columnWidths:i}],formatGroupId:ox("0x8")},[],ox("0x8"))}))}[ox("0x11")](t){const{data:e}=t;if(e&&"resizeTable"===e[ox("0x1")]){const t="*Format:* resize table";return{type:ox("0x1a"),content:Yo(this[ox("0xd")][ox("0x1f")],t)}}}}const rx=["afterInit","enableCommand","get","Template","plugins","has","editor"];var ix,ax;ix=rx,ax=149,function(t){for(;--t;)ix.push(ix.shift())}(++ax);const xx=function(t,e){return rx[t-=0]};class cx extends t.Plugin{[xx("0x5")](){const t=this[xx("0x4")];t[xx("0x2")][xx("0x3")](xx("0x1"))&&t[xx("0x2")][xx("0x0")]("TrackChangesEditing")[xx("0x6")]("insertTemplate")}}const lx=["_descriptionFactory","plugins","tableOfContents","ELEMENT_TABLE_OF_CONTENTS","get","editor","TrackChangesEditing","commands","registerElementLabel","locale","insertTableOfContents"];var dx,ux;dx=lx,ux=429,function(t){for(;--t;)dx.push(dx.shift())}(++ux);const gx=function(t,e){return lx[t-=0]};class mx extends t.Plugin{afterInit(){const t=this[gx("0x5")];if(!t[gx("0x7")][gx("0x4")](gx("0xa")))return;t[gx("0x1")][gx("0x4")](gx("0x6")).enableCommand(gx("0xa"));const e=t[gx("0x1")][gx("0x4")](gx("0x6")),n=t[gx("0x9")];e[gx("0x0")][gx("0x8")](gx("0x2"),(t=>Yo(n,gx("0x3"),t)))}}const fx=["suggestion","forward","plugins","title-content","document","from","getNearestSelectionRange","newRange","end","registerPostFixer","get","start","ELEMENT_TITLE","updateMarker","nodeBefore","registerElementLabel","isCollapsed","schema","differ","editor","Title","removeMarker","model","isEqual","createRange","locale","element"];var hx,px;hx=fx,px=459,function(t){for(;--t;)hx.push(hx.shift())}(++px);const bx=function(t,e){return fx[t-=0]};class Ex extends t.Plugin{afterInit(){const t=this[bx("0x13")];if(!t[bx("0x2")].has(bx("0x14")))return;const e=t[bx("0x2")][bx("0xa")]("TrackChangesEditing");e._descriptionFactory[bx("0xf")](bx("0x3"),(()=>Yo(t[bx("0x19")],bx("0xc")))),t.model[bx("0x4")][bx("0x9")]((n=>{let o=!1;const s=Array[bx("0x5")](t[bx("0x16")][bx("0x4")][bx("0x12")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(bx("0x0")!==s||!i[bx("0x7")])continue;const a=i[bx("0x7")],x=a[bx("0x8")][bx("0xe")];if(!x||!x.is(bx("0x1a"),bx("0x3")))continue;if(!a[bx("0xb")].isTouching(a[bx("0x8")]))continue;const c=t[bx("0x16")][bx("0x11")][bx("0x6")](a[bx("0x8")],bx("0x1"));if(c&&c[bx("0x10")]){const t=n[bx("0x18")](a.start,c.start);t[bx("0x17")](a)||(n[bx("0xd")](r,{range:t}),o=!0)}o||(n[bx("0x15")](r),o=!0)}return o}))}}const _x=["plugins","editor","enableCommand","TrackChangesEditing","redo","UndoEditing","afterInit"];var Tx,Cx;Tx=_x,Cx=453,function(t){for(;--t;)Tx.push(Tx.shift())}(++Cx);const yx=function(t,e){return _x[t-=0]};class kx extends t.Plugin{[yx("0x1")](){const t=this[yx("0x3")],e=t.plugins.get(yx("0x5"));t[yx("0x2")].has(yx("0x0"))&&(e[yx("0x4")]("undo"),e[yx("0x4")](yx("0x6")))}}const Ax=["enableCommand","toggleTableCaption","TableCaptionEditing","afterInit","plugins","TrackChangesEditing","get","editor","has"];var vx,Rx;vx=Ax,Rx=309,function(t){for(;--t;)vx.push(vx.shift())}(++Rx);const Ix=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{static get requires(){return[wa]}[Ix("0x0")](){const t=this[Ix("0x4")];t[Ix("0x1")][Ix("0x5")](Ix("0x8"))&&t.plugins[Ix("0x3")](Ix("0x2"))[Ix("0x6")](Ix("0x7"))}}const Lx=["reversed","numbered","list.properties","bind","startIndex","type","selection","change","from","handleDescriptions","DocumentListPropertiesEditing","format","model","editor","expandListBlocksToCompleteList","config","has","replace","enableCommand","registerDescriptionCallback","TrackChangesEditing","handleListReversedCommand","handleListStyleCommand","_getSuggestionBlocks","push","styles","toUpperCase","*Format:* set start index to %0","get","isListItemBlock","*Format:* set order to reversed","locale","isFirstBlockOfListItem","DocumentListPropertiesUtils","_descriptionFactory","length","markMultiRangeBlockFormat","getAttribute","listStyle","handleListStartCommand","DocumentListUtils","commandParams","getListTypeFromListStyleType","commandName","getSelectedBlocks","document","ELEMENT_","plugins","afterInit","_getSuggestionBlocksForListStyle","_getTranslationKeyForListStyle","*Change to:* %0","listType","listReversed","filter","listStart"];var Nx,Mx;Nx=Lx,Mx=497,function(t){for(;--t;)Nx.push(Nx.shift())}(++Mx);const wx=function(t,e){return Lx[t-=0]};class Fx extends t.Plugin{[wx("0x37")](){if(!this.editor[wx("0x36")][wx("0x17")](wx("0x11")))return;const t=this[wx("0x14")][wx("0x16")][wx("0x23")](wx("0x9")),e=this[wx("0x14")][wx("0x36")][wx("0x23")](wx("0x1b"));t[wx("0x20")]&&e[wx("0x19")](wx("0x2d"),this[wx("0x1d")].bind(this)),t[wx("0x7")]&&e[wx("0x19")]("listReversed",this[wx("0x1c")][wx("0xa")](this)),t.startIndex&&e.enableCommand(wx("0x6"),this[wx("0x2e")][wx("0xa")](this)),e[wx("0x29")][wx("0x1a")](this[wx("0x10")][wx("0xa")](this))}[wx("0x1d")](t,e={}){const n=this[wx("0x14")][wx("0x36")][wx("0x23")](wx("0x1b")),o=this[wx("0x0")]();this[wx("0x14")][wx("0x13")][wx("0xe")]((()=>{n[wx("0x2b")](o,{commandName:wx("0x2d"),commandParams:[{type:e.type}],formatGroupId:"listStyle"})}))}[wx("0x1c")](t,e={}){const n=this[wx("0x14")][wx("0x36")][wx("0x23")]("TrackChangesEditing"),o=this[wx("0x14")][wx("0x36")].get("DocumentListUtils"),s=this[wx("0x1e")]((t=>o[wx("0x24")](t)&&wx("0x8")===t[wx("0x2c")](wx("0x3"))));null!==s&&this[wx("0x14")].model[wx("0xe")]((()=>{n[wx("0x2b")](s,{commandName:wx("0x4"),commandParams:[{reversed:e[wx("0x7")]}],formatGroupId:wx("0x4")})}))}[wx("0x2e")](t,e={}){const n=this.editor[wx("0x36")][wx("0x23")](wx("0x1b")),o=this[wx("0x14")][wx("0x36")][wx("0x23")](wx("0x2f")),s=this[wx("0x1e")]((t=>o.isListItemBlock(t)&&wx("0x8")===t[wx("0x2c")](wx("0x3"))));null!==s&&this.editor[wx("0x13")][wx("0xe")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wx("0x6"),commandParams:[{startIndex:e[wx("0xb")]}],formatGroupId:"listStart"})}))}handleDescriptions(t){const e=this[wx("0x14")][wx("0x26")],{data:n}=t;if(!n)return;let o,s;switch(n[wx("0x32")]){case"listStyle":o=wx("0x2"),s={type:wx("0x12"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0][wx("0xc")])))};break;case wx("0x4"):o=n.commandParams[0][wx("0x7")]?wx("0x25"):"*Format:* set order to regular",s={type:wx("0x12"),content:Yo(e,o)};break;case wx("0x6"):o=wx("0x22"),s={type:wx("0x12"),content:Yo(e,o,n[wx("0x30")][0][wx("0xb")])}}return s}[wx("0x0")](){const t=this[wx("0x14")][wx("0x36")][wx("0x23")](wx("0x2f"));let e=Array[wx("0xf")](this[wx("0x14")][wx("0x13")][wx("0x34")][wx("0xd")].getSelectedBlocks());return e[wx("0x1f")](...t[wx("0x15")](e)),e=[...new Set(e)],e}[wx("0x1e")](t){const e=this[wx("0x14")][wx("0x36")][wx("0x23")](wx("0x2f"));let n=Array.from(this.editor[wx("0x13")][wx("0x34")][wx("0xd")][wx("0x33")]())[wx("0x5")](t);if(!n[wx("0x2a")])return null;n=e[wx("0x15")](n);const o=[];for(const t of n)e[wx("0x27")](t)&&o[wx("0x1f")](t);return o}[wx("0x1")](t){return wx("0x35")+this[wx("0x14")][wx("0x36")].get(wx("0x28"))[wx("0x31")](t)[wx("0x21")]()+"_LIST_"+t[wx("0x21")]()[wx("0x18")](/-/g,"_")}}const Ox=["plugins","*Format:* change table cell properties","locale","tableAlignment","tableBorderWidth","batch","tableCellBorderColor","_suggestionFactory","accept","*Format:* change table properties","getSuggestions","tableHeight","commandParams","handleSuggestionDescription","nodeAfter","TrackChangesEditing","change","has","discard","tableCellHeight","_handlePropertyChange","model","getSelectionAffectedTableCells","get","enableCommand","removeAttribute","formatBlock","pluginName","tableProperties","handleDiscardAction","findAncestor","editor","afterInit","getFirstPosition","TableUtils","table","tableCellHorizontalAlignment","_descriptionFactory","getContainedElement","start","selection","getSuggestionCallback","subType","tableWidth","document","tableCellProperties","markBlockFormat","TablePropertiesEditing","tableBorderStyle","TableCellPropertiesEditing","_getSuggestion","registerCustomCallback","tableCellWidth","join","format","tableCellBorderStyle","tableBorderColor"];var Px,Dx;Px=Ox,Dx=469,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Ox[t-=0]};class jx extends t.Plugin{constructor(t){super(t),this.tableProperties=[Bx("0x2b"),Bx("0x23"),Bx("0x30"),Bx("0x2f"),Bx("0x1e"),Bx("0x37"),"tableBackgroundColor"],this[Bx("0x20")]=[Bx("0x32"),Bx("0x2a"),"tableCellBorderWidth","tableCellPadding",Bx("0x27"),Bx("0x6"),"tableCellBackgroundColor",Bx("0x17"),"tableCellVerticalAlignment"]}static get[Bx("0xe")](){return"TrackChangesTableProperties"}[Bx("0x13")](){const t=this.editor.plugins.get("TrackChangesEditing");if(this[Bx("0x12")].plugins[Bx("0x4")](Bx("0x22"))){for(const e of this[Bx("0xf")])t.enableCommand(e,((t,n)=>{const o=this[Bx("0x12")].model[Bx("0x1f")].selection[Bx("0x14")]()[Bx("0x11")](Bx("0x16"));this[Bx("0x7")](e,[o],this[Bx("0xf")],Bx("0xf"),t,n)}));t._suggestionFactory[Bx("0x26")](Bx("0xd"),Bx("0xf"),Bx("0x34"),t[Bx("0x33")].getSuggestionCallback(Bx("0xd"),null,Bx("0x5"))),t[Bx("0x33")].registerCustomCallback(Bx("0xd"),Bx("0xf"),"discard",((t,e)=>this[Bx("0x10")](this.tableProperties,t,e))),t[Bx("0x33")][Bx("0x26")](Bx("0xd"),Bx("0xf"),"join",(()=>!1))}if(this[Bx("0x12")][Bx("0x2c")][Bx("0x4")](Bx("0x24"))){for(const e of this.tableCellProperties)t[Bx("0xb")](e,((t,n)=>{const o=this[Bx("0x12")][Bx("0x2c")].get(Bx("0x15"))[Bx("0x9")](this[Bx("0x12")][Bx("0x8")][Bx("0x1f")][Bx("0x1b")]);this._handlePropertyChange(e,o,this.tableCellProperties,Bx("0x20"),t,n)}));t[Bx("0x33")].registerCustomCallback("formatBlock",Bx("0x20"),Bx("0x34"),t._suggestionFactory[Bx("0x1c")](Bx("0xd"),null,Bx("0x5"))),t[Bx("0x33")][Bx("0x26")](Bx("0xd"),Bx("0x20"),Bx("0x5"),((t,e)=>this[Bx("0x10")](this[Bx("0x20")],t,e))),t[Bx("0x33")][Bx("0x26")](Bx("0xd"),Bx("0x20"),Bx("0x28"),(()=>!1))}t[Bx("0x18")].registerDescriptionCallback((t=>this[Bx("0x0")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[Bx("0x12")][Bx("0x2c")].get("TrackChangesEditing");this[Bx("0x12")][Bx("0x8")].enqueueChange(r[Bx("0x31")],(()=>{for(const t of e)if(this[Bx("0x25")](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[Bx("0x21")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][Bx("0x1a")][Bx("0x1")],s=n[Bx("0x38")][0];this[Bx("0x12")][Bx("0x8")][Bx("0x3")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Bx("0xc")](n,o)}))}handleSuggestionDescription(t){if(t.data)switch(t[Bx("0x1d")]){case Bx("0xf"):return{type:Bx("0x29"),content:Yo(this.editor[Bx("0x2e")],Bx("0x35"))};case Bx("0x20"):return{type:Bx("0x29"),content:Yo(this[Bx("0x12")][Bx("0x2e")],Bx("0x2d"))}}}[Bx("0x25")](t,e){const n=this[Bx("0x12")][Bx("0x2c")][Bx("0xa")](Bx("0x2"));for(const o of n[Bx("0x36")]({skipNotAttached:!0})){const n=o[Bx("0x19")]();if(o.subType===e&&n===t)return o}return null}}const Ux=["dataDowncast","getSuggestion","buildSuggestion","adapter","showSuggestionHighlights","removeMarker","editor","markerReady","selection","range","nodeBefore","removed","removeMarkers","attributes","accept","markers","suggestionUnloaded","catch","track-changes-suggestion-data-mismatch","elementToElement","insertion:discard","isBefore","length","formatBlock:join","acceptAllSuggestions","getItems","rethrowUnexpectedError","elementEnd","enableReadOnlyMode","trackChangesCommand","after","change:activeMarkers","head","change:_saved","split","_addThreadToSuggestion","locale","_setSuggestionRange","formatInline:","fetchCommentThread","addSuggestion","writer","trackChanges.trackFormatChanges","addMarker","discard","_updateSuggestionData","for","getShiftedBy","trackChanges.mergeNestedSuggestions","_getSuggestionData","chain","PENDING_ACTION_SUGGESTION","ck-suggestion-marker-","isEqual","deletion:chain","getAncestors","_addSuggestionMarker","external:","addMarkerName","containerElement","markBlockFormat","elementStart","originalSuggestionId","suggestion-type","marker-count","discardAllSuggestions","detach","getWalker","markInsertion","acceptSuggestion","rootName","isRemovable","every","ready","suggestion:","subType","_isForcedDefaultExecutionBlock","substr","type","resolve","rejected","isObject","document","size","clone","move","track-changes-user-not-found","markerName","getDifference","deleteContent","track-changes-adapter-missing-getsuggestion","formatGroupId","dataToMarker","getSuggestions","containsItem","addMarker:suggestion:formatBlock","differ","_editor","createdAt","listenTo","_checkSuggestionCorrectness","_suggestions","update:suggestion","pluginName","requires","stop","addUser","getFirstMarker","unbind","item","getLastMatchingPosition","targetPosition","formatBlock","data","formatBlock:chain","_suggestionFactory","containsRangeInObject","markMultiRangeBlockFormat","markDeletion","deletion","getCommentThread","insertContent","sort","widget","low","_adapter","_trackFormatChanges","discardSelectedSuggestions","isLocal","getSuggestionCallback","isCollapsed","insertion:","markInlineFormat","_descriptionFactory","insertion","formatInline:discard","getRange","newRange","addClass","open","default","get","_splitMarkerName","registerPostFixer","_rangeIsInLocalUserInsertion","schema","nodeAfter","define","upcast","stopListening","insertion:accept","dataReady","authoredAt","clear","name","Users","applyOperation","authorName","getChangedMarkers","createSelection","_removeSuggestion","_suggestionState","execute","markerNameToElements","always","markerToHighlight","plugins","_breakSuggestionMarker","author","change:data","model","insert","_joinWithAdjacentSuggestions","splitPosition","addSuggestionData","addMarker:suggestion","isExternal","value","getFirstRange","removeComment","forceDefaultExecution","formatBlock:accept","createRange","@external","PendingActions","multipleBlocks","parent","getAllAdjacentSuggestions","ck-suggestion-marker-formatBlock","getUser","formatBlock:discard","fire","_enabledCommands","from","_handleNewSuggestionMarker","formatBlock:","position","setSelection","_saved","_setSuggestionData","discardSuggestion","push","deletion:","markMultiRangeInsertion","hasComments","consumable","multi","element","isInContent","skipNestingCheck","hasCommentThread","map","group","$graveyard","remove","getCustomProperty","_joinSuggestions","$textProxy","batch","deletion:join","updateSuggestion","end","_getAuthorFromId","lowest","addComment","filter","isUndo","commands","containsPosition","values","bindElementToMarker","getAttribute","removeAttribute","_commentsRepository","editingDowncast","isAfter","createPositionAt","isOwn","TrackChangesEditing","addHighlight","init","_createSuggestion","next","consume","commandName","oldRange","addRange","isIntersectingWithRange","enableCommand","backward","deletion:accept","reconvertMarker","high","_mergeNestedSuggestions","isAtEnd","activeMarkers","delete","isBlock","isMultiRange","data-suggestion","createRangeIn","_refreshSuggestionsChain","formatInline:join","ck-suggestion-marker--active","options","fromRange","CommentsRepository","formatInline:chain","collaboration.channelId","has","start","mapper","conversion","change","_model","commentThread","never","set","error-saving-suggestion-data-suggestion-discarded","some","containsRange","_getExternalAuthor","updateMarker","isNextTo","removeClass","markMultiRangeDeletion","_customCallbacks","isAtStart","getNearestSelectionRange","getIntersection","getRanges","isInsideObject","getMultiRangeId","return","join","_findSuggestions","formatInline","insertion:chain","add","isLimit","suggestionChanged","splice","_defaultCallbacks","creator","then","notReady","previous","setAttribute","root","suggestion","ck-suggestion-marker","config","markerToData"];var Gx,Hx;Gx=Ux,Hx=457,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("0x111")](){return[zx("0x7a"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Fx,ar,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,ai,ui,pi,Ci,Ri,Fi,ji,Wi,$i,ta,ia,ua,pa,ya,Ia,wa,ja,Wa,Sx,Qa,sx,mx,jx,cx,Ex,kx]}static get[zx("0x110")](){return zx("0x5e")}constructor(t){function e(t){return t[zx("0x43")]((t=>String.fromCharCode(t)))[zx("0x96")]("")}super(t),this[zx("0x85")](zx("0x6f"),[]),this.on(zx("0xc8"),((e,n,o,s)=>{this[zx("0x82")][zx("0x81")]((()=>{for(const e of[...s,...o])this[zx("0x82")][zx("0xb8")].has(e)&&t.editing[zx("0x6b")](e)}))})),this[zx("0x12e")]=new ss(this[zx("0xaf")].model[zx("0x1")],this[zx("0xaf")][zx("0xcd")]),this[zx("0x126")]=null,this[zx("0x11c")]=new Vx(this.editor),this[zx("0x10e")]=new Map,this._commentsRepository=t[zx("0x16")][zx("0x136")](zx("0x7a")),this[zx("0x30")]=new Set,this._model=this[zx("0xaf")][zx("0x1a")],this[zx("0x11")]=new WeakMap,this[zx("0xf5")]=!1,t[zx("0xa7")][zx("0x3")](zx("0xd3"),zx("0x135")),this[zx("0x127")]=t[zx("0xa7")][zx("0x136")]("trackChanges.trackFormatChanges"),t[zx("0xa7")][zx("0x3")](zx("0xd9"),!0),this[zx("0x6d")]=t[zx("0xa7")][zx("0x136")](zx("0xd9")),this[zx("0xc6")]=new u(t,this._enabledCommands),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,50,50])}[zx("0x60")](){const t=this.editor;t[zx("0x80")][zx("0xd7")]("editingDowncast")[zx("0x15")]({model:zx("0xa5"),view:t=>{const{id:e,type:n}=this[zx("0x137")](t.markerName),o=[zx("0xa6"),zx("0xdd")+n];let s=3e3;return this[zx("0x6f")].includes(t[zx("0x100")])&&(o[zx("0x39")]("ck-suggestion-marker--active"),s=3010),zx("0x120")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[zx("0xd7")](zx("0xa9"))[zx("0x9a")]((e=>{e.on(zx("0x1f"),((e,n,o)=>{if(!o[zx("0x78")][zx("0xad")])return;const s=n[zx("0x116")];if(!s)return;const r=o[zx("0x7f")].toViewElement(s);t.model.schema.isObject(s)&&r&&!r[zx("0x47")](zx("0x124"))&&r.is(zx("0xe4"))&&(0,a.toWidget)(r,o[zx("0xd2")])}),{priority:zx("0x6c")})})),t[zx("0x80")].for("dataDowncast").markerToHighlight({model:zx("0xa5"),view:(t,e)=>{if(!e[zx("0x78")][zx("0xad")])return null;const{type:n}=this._splitMarkerName(t[zx("0x100")]);return{classes:[zx("0xa6"),zx("0xdd")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[zx("0x116")].is(zx("0xb1")))return void s.consumable[zx("0x63")](o.item,n.name);const r=s[zx("0x7f")].toViewElement(o[zx("0x116")]);if(!o[zx("0x116")].is(zx("0x3f"))||!t[zx("0x1a")][zx("0x1")].isBlock(o.item)||r.getCustomProperty("addHighlight"))return;const{id:i}=this._splitMarkerName(o[zx("0x100")]);s[zx("0xd2")][zx("0x133")]([zx("0xa6"),zx("0x2c")],r),s.writer[zx("0xa3")](zx("0x73"),i,r),s[zx("0x7f")][zx("0x56")](r,o[zx("0x100")]),e&&(this.activeMarkers.includes(o[zx("0x100")])?s[zx("0xd2")][zx("0x133")](zx("0x77"),r):s[zx("0xd2")][zx("0x8c")]("ck-suggestion-marker--active",r));for(const e of t[zx("0x1a")][zx("0x74")](o[zx("0x116")])[zx("0xc2")]())s[zx("0x3d")][zx("0x63")](e,n.name);s.consumable.consume(o[zx("0x116")],n.name)};t[zx("0x80")][zx("0xd7")](zx("0xa9"))[zx("0x9a")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[zx("0x78")][zx("0xad")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[zx("0x80")][zx("0xd7")]("dataDowncast")[zx("0xa8")]({model:zx("0xa5"),view:(t,e)=>e[zx("0x78")][zx("0xad")]?null:{group:zx("0xa5"),name:t[zx("0xf6")](11)}}),t[zx("0x80")][zx("0xd7")](zx("0x4"))[zx("0xbc")]({view:{name:zx("0xa5"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=zx("0xf3")+t.getAttribute(zx("0xe8"))+":"+t[zx("0x57")]("id");return t[zx("0x57")](zx("0xe9"))&&(n+=":"+t[zx("0x57")](zx("0xe9"))),e.createElement("$marker",{"data-name":n})}}),t.conversion.for(zx("0x4"))[zx("0x105")]({view:"suggestion"}),t[zx("0x80")][zx("0xd7")](zx("0x5a"))[zx("0x9a")]((t=>{t.on(zx("0x108"),n(),{priority:"high"})})),t[zx("0x80")][zx("0xd7")]("editingDowncast").add((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[zx("0x7f")][zx("0x13")](e[zx("0x100")]);if(o)for(const t of o)t[zx("0x47")](zx("0x5f"))||(n[zx("0xd2")][zx("0x8c")]([zx("0xa6"),zx("0x2c"),zx("0x77")],t),n.writer[zx("0x58")](zx("0x73"),t),n[zx("0x7f")].unbindElementFromMarkerName(t,e.markerName))}),{priority:zx("0x6c")})})),t[zx("0x1a")][zx("0xfb")].registerPostFixer((e=>{let n=!1;const o=Array[zx("0x31")](t[zx("0x1a")].document[zx("0x109")][zx("0xe")]()),s=new Set;for(const{name:a,data:x}of o){const{group:o,type:c,id:l}=this._splitMarkerName(a);if(zx("0xa5")!==o)continue;const d=this._suggestions[zx("0x136")](l);if(null!=x[zx("0x132")])if("formatInline"==c&&(n=n||Xx(x[zx("0x132")],a,e,t.model[zx("0x1")])),x.newRange[zx("0x12b")]||zx("0x45")==x[zx("0x132")][zx("0xa4")][zx("0xef")]||"formatBlock"==c&&!Jx(x[zx("0x132")])||zx("0x120")==c&&(qx(i=x[zx("0x132")])||(r=i)[zx("0x7e")][zx("0x2a")]==r[zx("0x4d")][zx("0xb3")]&&r[zx("0x7e")][zx("0x6e")]))e[zx("0xae")](a),n=!0;else{if(!d||!d[zx("0x40")])continue;s.add(d)}}var r,i;return s[zx("0xfc")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[zx("0x1a")][zx("0xfb")][zx("0x138")]((e=>{let n=!1;for(const o of t[zx("0x1a")].document.differ.getChanges()){if(zx("0x1b")!=o[zx("0xf7")])continue;const s=o.position[zx("0xd8")](o[zx("0xbf")]);if(s[zx("0x6e")])for(const r of this[zx("0x10e")].values()){if(r[zx("0x72")]||!r[zx("0x40")])continue;if(zx("0x119")!=r[zx("0xf7")])continue;const i=r[zx("0x22")]();if(i[zx("0x7e")][zx("0x2a")]!=i.end.parent&&i[zx("0x4d")][zx("0xde")](o.position)){const o=t.model[zx("0x26")](i[zx("0x7e")],s);e.updateMarker(r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[zx("0x1a")][zx("0xb8")].on(zx("0x10f"),((t,e,n)=>{if(null==n){const{id:t}=this[zx("0x137")](e[zx("0xa")]),n=this[zx("0x10e")][zx("0x136")](t);n&&n.addMarkerName(e[zx("0xa")])}})),t[zx("0x1a")].document.on(zx("0x19"),(()=>{const e=Array[zx("0x31")](t[zx("0x1a")][zx("0xfb")][zx("0x109")][zx("0xe")]()).filter((t=>"suggestion"===this._splitMarkerName(t[zx("0xa")])[zx("0x44")]));if(0===e.length)return;e[zx("0x123")](((t,e)=>{const n=t[zx("0x11a")].oldRange,o=e[zx("0x11a")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[zx("0x7e")][zx("0xbe")](o[zx("0x7e")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[zx("0x137")](t);if(null===s[zx("0x65")]){const e=this[zx("0x32")](t);o[zx("0x9a")](e)}else{const t=this._suggestions[zx("0x136")](e);null!==s[zx("0x132")]||t[zx("0x40")]?(n[zx("0x9a")](t[zx("0xc9")]),o.add(t)):this[zx("0x10")](t)}}o.size>0&&this[zx("0x75")](o);for(const t of n)this.fire(zx("0x9c"),t)})),t[zx("0x1a")].on(zx("0xc"),((e,n)=>{const o=n[0];if(!this[zx("0x10e")][zx("0xfc")])return;if(!o.isDocumentOperation)return;if(o[zx("0x4a")][zx("0x52")]||!o[zx("0x4a")][zx("0x129")])return;let s,r;switch(o[zx("0xf7")]){case zx("0x1b"):s=t.model[zx("0x5c")](o[zx("0x34")]),r=s[zx("0xd8")](o.howMany);break;case zx("0xcb"):s=t[zx("0x1a")][zx("0x5c")](o[zx("0x1d")]),r=t[zx("0x1a")][zx("0x5c")](o.moveTargetPosition);break;case zx("0xfe"):s=t[zx("0x1a")].createPositionAt(o[zx("0x118")]),r=s[zx("0xd8")](o.howMany);break;default:return}const i=t[zx("0x1a")][zx("0x26")](s,r);t[zx("0x1a")].change((()=>{for(const{suggestion:t,meta:e}of this[zx("0x97")](i)){if(t.isMultiRange)continue;if(zx("0x98")==t[zx("0xf7")])continue;const n=t[zx("0x11a")]&&t[zx("0x11a")].multipleBlocks;(zx("0x119")!=t[zx("0xf7")]||"split"==o[zx("0xf7")]&&!n)&&(e[zx("0x11d")]||zx("0x12f")==t[zx("0xf7")]&&e[zx("0x5d")]||t[zx("0x22")]()[zx("0x88")](i)&&this[zx("0x17")](t,s,r))}}))}),{priority:zx("0x4f")}),t[zx("0x1a")].on(zx("0x102"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[zx("0x24")])return;if(this[zx("0xf5")])return;if(!this.trackChangesCommand[zx("0x21")])return;if(o[zx("0x12b")])return;const r=t[zx("0x1a")][zx("0x1")],{start:i,end:a}=o.getFirstRange(),x=i[zx("0x2")]&&r[zx("0x9b")](i[zx("0x2")])?null:r.getNearestSelectionRange(i,"forward"),c=a[zx("0xb3")]&&r[zx("0x9b")](a.nodeBefore)?null:r.getNearestSelectionRange(a,zx("0x69")),l=t[zx("0x1a")][zx("0x26")](x?x.start:i,c?c[zx("0x4d")]:a);t[zx("0x1a")][zx("0x81")]((e=>{this[zx("0x11f")](l);const n=t.model.schema[zx("0x90")](l.start);o.is("documentSelection")?e[zx("0x35")](n):o.setTo(n)})),e.stop()}),{priority:e.priorities.normal+10}),t[zx("0x1a")].on("insertContent",((e,n)=>{const o=n[n[zx("0xbf")]-1];o&&o.forceDefaultExecution||this[zx("0xf5")]||this.trackChangesCommand.value&&(t[zx("0x1a")].change((()=>{let o=t.model[zx("0x122")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[zx("0x95")]=o[zx("0xfd")]();const s=o[zx("0x4d")][zx("0xb3")],r=t[zx("0x1a")][zx("0x1")];s&&r[zx("0x71")](s)&&!r[zx("0xfa")](s)&&(o=t[zx("0x1a")][zx("0x26")](o[zx("0x7e")],t[zx("0x1a")][zx("0x5c")](s,zx("0x4d")))),this[zx("0xed")](o)})),e[zx("0x112")]())}),{priority:zx("0x6c")}),this[zx("0xaf")][zx("0x53")].add("trackChanges",this[zx("0xc6")]),this.enableCommand("trackChanges");const o=new p(t,this[zx("0x10e")]);t[zx("0x53")][zx("0x9a")](zx("0xee"),o),this[zx("0x68")](zx("0xee"));const s=new C(t,this[zx("0x10e")]);t[zx("0x53")].add(zx("0x38"),s),this[zx("0x68")](zx("0x38")),t.commands[zx("0x9a")](zx("0xc1"),new O(t,o,this[zx("0x10e")])),this.enableCommand(zx("0xc1")),t[zx("0x53")][zx("0x9a")]("discardAllSuggestions",new O(t,s,this[zx("0x10e")])),this[zx("0x68")](zx("0xea")),t[zx("0x53")][zx("0x9a")]("acceptSelectedSuggestions",new U(t,o,this[zx("0x10e")])),this[zx("0x68")]("acceptSelectedSuggestions"),t[zx("0x53")][zx("0x9a")](zx("0x128"),new U(t,s,this[zx("0x10e")])),this[zx("0x68")](zx("0x128"));const r=t[zx("0x16")][zx("0x136")]("CommentsRepository");this[zx("0x10c")](r,zx("0x50"),((t,{threadId:e})=>{const n=this[zx("0x10e")].get(e);n&&n[zx("0x83")]&&1===n[zx("0x83")][zx("0xbf")]&&this[zx("0xd6")](e,{hasComments:!0})}),{priority:"low"}),this[zx("0x10c")](r,zx("0x23"),((t,{threadId:e})=>{const n=this[zx("0x10e")][zx("0x136")](e);n&&n[zx("0x83")]&&!n[zx("0x83")][zx("0xbf")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:zx("0x125")})}set[zx("0xac")](t){if(this[zx("0x126")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this._adapter=t}get[zx("0xac")](){return this[zx("0x126")]}[zx("0x106")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[zx("0x10e")][zx("0x55")]())t&&!e.isInContent||n[zx("0x39")](e);return e?n[zx("0x43")]((t=>t.toJSON())):n}[zx("0xaa")](t){const n=this[zx("0x10e")][zx("0x136")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}hasSuggestion(t){return this[zx("0x10e")][zx("0x7d")](t)}[zx("0x1e")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[zx("0xf7")][zx("0xcb")](":"),i=this[zx("0x10e")][zx("0x136")](n)||this._createSuggestion(s,r,n,e,o);if(this[zx("0xcc")](i),this[zx("0x10d")](i,s,r||null,e),i.createdAt=t[zx("0x10b")],o&&o[zx("0x27")]){const t=o[zx("0x27")],e=this[zx("0x89")](t[zx("0xd")]);i[zx("0x8")]=t.createdAt,i[zx("0x18")]=e,i[zx("0x20")]=!0}else i[zx("0x8")]=t[zx("0x10b")];switch(t[zx("0x11a")]&&(i[zx("0x11a")]=t.data),t[zx("0xb6")]&&(i[zx("0xb6")]=t[zx("0xb6")]),this[zx("0x126")]&&this[zx("0x126")][zx("0xd1")]||(i[zx("0x36")]=!0),this[zx("0x11")][zx("0x136")](i)){case zx("0xa1"):this[zx("0x11")][zx("0x85")](i,zx("0x7"));break;case zx("0xb0"):i.isInContent?(this[zx("0x11")][zx("0x85")](i,zx("0xf2")),this[zx("0x2f")]("suggestionLoaded",i)):this._suggestionState[zx("0x85")](i,"removed")}return i}acceptSuggestion(t){this[zx("0x24")]((()=>{this.editor[zx("0x1a")].change((()=>{for(const e of t.getAllAdjacentSuggestions())e.accept()}))}))}discardSuggestion(t){this[zx("0x24")]((()=>{this[zx("0xaf")].model[zx("0x81")]((()=>{for(const e of t[zx("0x2b")]())e[zx("0xd5")]()}))}))}[zx("0x68")](t,n){const o=this[zx("0xaf")].commands[zx("0x136")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[zx("0x30")][zx("0x9a")](o),n&&o.on(zx("0x12"),((t,e)=>{this[zx("0xc6")][zx("0x21")]&&(this._isForcedDefaultExecutionBlock||e[zx("0xbf")]>0&&e[e[zx("0xbf")]-1]&&e[e[zx("0xbf")]-1][zx("0x24")]||(n(((...t)=>o[zx("0x12")](...t,{forceDefaultExecution:!0})),...e),t[zx("0x112")]()))}),{priority:zx("0x6c")})}forceDefaultExecution(t){let n,o;const s=this._isForcedDefaultExecutionBlock;this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this[zx("0xf5")]=!1),o&&e.CKEditorError[zx("0xc3")](o,this),n}[zx("0xed")](t,n=null,o={}){if(t[zx("0x12b")])return null;const s=this[zx("0xaf")][zx("0x16")][zx("0x136")](zx("0xb")).me;for(const{suggestion:e,meta:o}of this[zx("0x97")](t,"insertion"))if(o[zx("0x5d")]){if(!o.isNextTo){if(!this[zx("0x6d")]&&o.containsRangeInObject)continue;return e}if(n==e[zx("0xf4")]){const n=e[zx("0x22")]();return n[zx("0x7e")][zx("0xde")](t[zx("0x4d")])?this[zx("0xce")](e,this[zx("0x82")][zx("0x26")](t[zx("0x7e")],n[zx("0x4d")])):this[zx("0xce")](e,this[zx("0x82")].createRange(n[zx("0x7e")],t[zx("0x4d")])),e}}const r=(0,e.uid)(),i=s.id,a=n?zx("0x12c")+n:"insertion",x=this._setSuggestionData({id:r,type:a,createdAt:new Date,authorId:i,attributes:o});return this[zx("0xe1")](a,r,i,t),x}[zx("0x3b")](t,n=zx("0x3e"),o={}){const s=this.editor[zx("0x16")].get(zx("0xb")).me,r=this[zx("0x11c")][zx("0x12a")](zx("0x12f"),n,zx("0x96"));for(const e of this[zx("0x106")]())if(e[zx("0x18")].id==s.id&&zx("0x12f")==e[zx("0xf7")]&&e.subType==n&&(r(e[zx("0x92")](),t)||r(t,e[zx("0x92")]()))){for(const n of t)e.addRange(n);return e}if(this[zx("0x6d")])for(const e of t)for(const{suggestion:n,meta:o}of this[zx("0x97")](e,"insertion")){if(!o.isOwn)continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),a=s.id,x=zx("0x12c")+n,c=this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:a,attributes:o});for(const e of t)this[zx("0xe1")](x,i,a,e,Zo.getMultiRangeId());return c}[zx("0x12d")](t,n,o=null,s={}){if(o=o||$x(n),t.isCollapsed)return null;if(zx("0x84")===this[zx("0x127")]){const e=this[zx("0x11c")][zx("0x12a")](zx("0x98"),o,zx("0xb7"));return this[zx("0x24")]((()=>e([t],n,s))),null}const r=this[zx("0xaf")][zx("0x16")].get(zx("0xb")).me,i=[];if(zx("0x14")!==this[zx("0x127")])for(const{suggestion:e,meta:n}of this[zx("0x97")](t,"insertion"))n[zx("0x5d")]&&!n[zx("0x93")]&&i[zx("0x39")](...e[zx("0x92")]());const a=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n.push(e)}return n}(t,i),x=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[zx("0xbf")];){const o=n[e][zx("0x101")](t);n[zx("0x9d")](e,1,...o),e+=o[zx("0xbf")]}}return n}(t,i);a[zx("0xbf")]&&this._model.change((()=>{for(const t of a){const e=this[zx("0x11c")][zx("0x12a")](zx("0x98"),o,zx("0xb7"));this[zx("0x24")]((()=>e([t],n,s)))}}));for(const t of x){let i=null,a=t[zx("0x7e")],x=t.end;for(const{suggestion:e,meta:n}of this[zx("0x97")](t,zx("0x98"))){if(!n[zx("0x5d")])continue;if(e[zx("0xf4")]!=o)continue;const s=e[zx("0x22")]();if(s.containsRange(t,!0))return null;a=a[zx("0xbe")](s[zx("0x7e")])?a:s[zx("0x7e")],x=x[zx("0x5b")](s[zx("0x4d")])?x:s.end,i?s[zx("0x7e")].isBefore(i[zx("0x22")]()[zx("0x7e")])?(i[zx("0xb5")](),i=e):e[zx("0xb5")]():i=e}const c=this._model.createRange(a,x);if(i)this[zx("0xce")](i,c);else{const t=(0,e.uid)(),i=r.id;this[zx("0x37")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[zx("0xe1")](zx("0xcf")+o,t,i,c)}}return null}[zx("0xe5")](t,n,o=[],s=null,r={}){n[zx("0x104")]||(n[zx("0x104")]=n[zx("0x64")]),n.multipleBlocks=t.is(zx("0xb2")),s=s||$x(n);const i=o[zx("0x43")]((t=>Qx(t,this[zx("0x82")]))),a=t.is(zx("0xb2"))?t:Qx(t,this[zx("0x82")]);if("never"===this[zx("0x127")]){const t=this[zx("0x11c")][zx("0x12a")]("formatBlock",s,zx("0xb7"));return this.forceDefaultExecution((()=>t([a],n,r))),null}i.push(a);let x=!0;for(const t of i)if(!this[zx("0x0")](t)){x=!1;break}if(x&&zx("0x14")!==this[zx("0x127")]){const t=this._suggestionFactory[zx("0x12a")](zx("0x119"),s,zx("0xb7"));return this[zx("0x24")]((()=>t([a],n,r))),null}let c=null,l=a[zx("0x7e")],d=a[zx("0x4d")];for(const{suggestion:t,meta:e}of this._findSuggestions(a,zx("0x119"))){if(!e[zx("0x5d")]||e[zx("0x8b")]||e[zx("0x11d")]||e[zx("0x93")])continue;if(t[zx("0x11a")][zx("0x104")]!=n[zx("0x104")])continue;const o=t.getFirstRange();if(t.subType==s){if(o[zx("0x88")](a,!0))return null;l=l[zx("0xbe")](o.start)?l:o[zx("0x7e")],d=d[zx("0x5b")](o[zx("0x4d")])?d:o[zx("0x4d")],c?o.start[zx("0xbe")](c.getFirstRange().start)?(c.removeMarkers(),c=t):t[zx("0xb5")]():c=t}else{const e=a.getIntersection(o);this._cutOutSuggestionMarker(t,e)}}const u=this[zx("0xaf")][zx("0x16")][zx("0x136")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this[zx("0xce")](c,this[zx("0x82")][zx("0x26")](l,d)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[zx("0xe1")](zx("0x33")+s,g,m,this[zx("0x82")][zx("0x26")](l,d)),t}}[zx("0x11e")](t,n,o=[],s=null,r={}){n[zx("0x104")]||(n.formatGroupId=n[zx("0x64")]);const i=t[0];n[zx("0x29")]=i.is(zx("0xb2")),s=s||$x(n);const a=o[zx("0x43")]((t=>Qx(t,this._model))),x=i.is(zx("0xb2"))?t:t[zx("0x43")]((t=>Qx(t,this[zx("0x82")])));if(zx("0x84")===this[zx("0x127")]){const t=this[zx("0x11c")][zx("0x12a")]("formatBlock",s,zx("0xb7"));return this[zx("0x24")]((()=>t(x,n,r))),null}a[zx("0x39")](...x);let c=!0;for(const t of a)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&zx("0x14")!==this[zx("0x127")]){const t=this[zx("0x11c")][zx("0x12a")](zx("0x119"),s,"accept");return this[zx("0x24")]((()=>t(x,n,r))),null}const l=this[zx("0xaf")][zx("0x16")][zx("0x136")](zx("0xb")).me;for(const t of this[zx("0x106")]()){if(t[zx("0x18")].id!=l.id)continue;if(zx("0x119")!=t.type||t.data[zx("0x104")]!=n[zx("0x104")])continue;const e=t[zx("0xf4")]==s;for(let n=0;n<x.length;n++){const o=x[n];for(const s of t.getMarkers()){const r=s[zx("0x131")]();if(o[zx("0xde")](r)){e?(x[zx("0x9d")](n,1),n--):t.removeMarker(s[zx("0xa")]);break}}}}if(0==x[zx("0xbf")])return null;const d=this[zx("0x11c")][zx("0x12a")]("formatBlock",s,"join");for(const t of this.getSuggestions())if(t[zx("0x18")].id==l.id&&zx("0x119")==t.type&&t[zx("0x11a")][zx("0x104")]==n[zx("0x104")]&&t[zx("0xf4")]==s&&(d(t[zx("0x92")](),x)||d(x,t[zx("0x92")]()))){for(const e of x)t[zx("0x66")](e);return t}const u=(0,e.uid)(),g=l.id,m="formatBlock:"+s,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of x)this[zx("0xe1")](m,u,g,t,Zo[zx("0x94")]());return f}markDeletion(t,n=null,o={}){if(t[zx("0x12b")])return null;const s=this[zx("0xaf")][zx("0x16")][zx("0x136")](zx("0xb")).me,r=new i.LiveRange(t.start,t.end);for(const{suggestion:t,meta:e}of this[zx("0x97")](r,zx("0x12f")))if(e[zx("0x5d")]&&!e[zx("0x8b")])if(t.isMultiRange){const e=t[zx("0x92")]()[zx("0x51")]((t=>zx("0x45")!=t[zx("0xa4")].rootName));if(e[zx("0xf1")]((t=>r[zx("0x88")](t,!0)))&&t[zx("0xd5")](),e[zx("0x87")]((t=>t[zx("0x88")](r,!0)))){const t=this._suggestionFactory[zx("0x12a")]("deletion",n,zx("0xb7"));return this[zx("0x24")]((()=>t([r],null,o))),null}}else{const e=r[zx("0x91")](t[zx("0x22")]());null!==e&&t._onDiscard([e],null,o)}if(r[zx("0xeb")](),r[zx("0x12b")]||zx("0x45")==r[zx("0xa4")][zx("0xef")])return null;let a=null,x=r[zx("0x7e")],c=r.end;for(const{suggestion:t,meta:e}of this[zx("0x97")](r,"deletion"))if(e[zx("0x5d")])if(t[zx("0x72")]&&this[zx("0x6d")]){let e=!0;for(const n of t.getRanges()){if(n[zx("0x88")](r,!0))return t;r[zx("0x88")](n)||(e=!1)}e&&t.discard()}else{const n=t[zx("0x22")]();if(n.containsRange(r,!0)){if(!this[zx("0x6d")]&&e.containsRangeInObject)continue;return t}x=x[zx("0xbe")](n[zx("0x7e")])?x:n[zx("0x7e")],c=c[zx("0x5b")](n[zx("0x4d")])?c:n.end,a?n.start[zx("0xbe")](a.getFirstRange()[zx("0x7e")])?(a[zx("0xb5")](),a=t):t[zx("0xb5")]():a=t}if(a)return this._setSuggestionRange(a,this[zx("0x82")][zx("0x26")](x,c)),a;{const t=(0,e.uid)(),r=this._model.createRange(x,c),i=s.id,a=n?zx("0x3a")+n:zx("0x120"),l=this[zx("0x37")]({id:t,type:a,createdAt:new Date,authorId:i,attributes:o});return this[zx("0xe1")](a,t,i,r),l}}[zx("0x8d")](t,n=zx("0x3e"),o={}){const s=this.editor.plugins[zx("0x136")](zx("0xb")).me,r=t.map((t=>new i.LiveRange(t.start,t.end))),a=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[zx("0x97")](t,zx("0x12f")))n[zx("0x5d")]&&!n.isNextTo&&a.add(e);for(const e of a)if(e[zx("0x72")]){const s=e[zx("0x92")]();if((!e.attributes||!e.attributes[zx("0x41")])&&s[zx("0xf1")]((t=>r.some((e=>e[zx("0x88")](t,!0)))))&&e.discard(),r[zx("0xf1")]((t=>s[zx("0x87")]((e=>e[zx("0x88")](t,!0)))))){const e=this[zx("0x11c")][zx("0x12a")](zx("0x120"),n,zx("0xb7"));return this[zx("0x24")]((()=>e(t,null,o))),null}}else{const t=e[zx("0x22")]();if(r[zx("0x87")]((e=>e[zx("0x88")](t,!0)))&&e[zx("0xd5")](),r[zx("0xf1")]((e=>t[zx("0x88")](e,!0)))){const t=this[zx("0x11c")][zx("0x12a")]("deletion",n,zx("0xb7"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const x=this[zx("0x11c")][zx("0x12a")](zx("0x120"),n,"join");let c=null;for(const t of this[zx("0x106")]())if(t[zx("0x18")].id==s.id&&t[zx("0x40")]&&"deletion"==t[zx("0xf7")]&&t[zx("0xf4")]==n&&(x(t[zx("0x92")](),r)||x(r,t[zx("0x92")]())))if(c){if(t[zx("0x83")]&&t.commentThread[zx("0xbf")])continue;for(const e of t[zx("0x92")]())c[zx("0x67")](e)||c.addRange(e);t[zx("0xb5")]()}else{c=t;for(const e of r)t[zx("0x67")](e)||t[zx("0x66")](e)}if(c)return c;a[zx("0x9")]();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,zx("0x120")))n[zx("0x5d")]&&a.add(e);for(const t of a){const e=t[zx("0x92")]();if((!o||!o[zx("0x41")])&&r[zx("0xf1")]((t=>e.some((e=>e[zx("0x88")](t,!0))))))return t;(!t[zx("0xb6")]||!t.attributes[zx("0x41")])&&e[zx("0xf1")]((t=>r[zx("0x87")]((e=>e[zx("0x88")](t,!0)))))&&t[zx("0xd5")]()}const l=(0,e.uid)(),d=s.id,u=zx("0x3a")+n,g=this[zx("0x37")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[zx("0xeb")](),t.isCollapsed||"$graveyard"==t.root[zx("0xef")]||this[zx("0xe1")](u,l,d,t,Zo.getMultiRangeId());return g}_setSuggestionRange(t,e){const n=t[zx("0x114")]();this[zx("0x82")][zx("0x81")]((t=>{t[zx("0x8a")](n,{range:e})}))}[zx("0xcc")](t){const e=t.id,n=this[zx("0xaf")].config.get(zx("0x7c"));this[zx("0x59")][zx("0x42")](e)||this[zx("0x59")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[zx("0x121")](e);o[zx("0x115")](zx("0xf0")),o[zx("0xf0")]=!1,t[zx("0x83")]=o}[zx("0x10d")](t,n,o,s){if(t.type!=n||t[zx("0xf4")]!=o||t[zx("0x9f")].id!=s)throw this.editor[zx("0xc5")](zx("0xbb")),new e.CKEditorError(zx("0xbb"),this)}_cutOutSuggestionMarker(t,n){const o=t[zx("0x22")]();if(n[zx("0xde")](o))t.removeMarkers();else if(o[zx("0x88")](n)){const s=this[zx("0x82")][zx("0x5c")](n[zx("0x7e")][zx("0xb3")],"end");this._setSuggestionRange(t,this[zx("0x82")][zx("0x26")](o[zx("0x7e")],s));const r=(0,e.uid)(),i=t[zx("0x9f")].id,a=t.type+":"+t[zx("0xf4")];this[zx("0x37")]({id:r,type:a,createdAt:new Date,authorId:i,data:t.data,attributes:t[zx("0xb6")]});const x=this._model[zx("0x5c")](n[zx("0x4d")][zx("0x2a")],zx("0xc7")),c=this[zx("0x82")][zx("0x26")](x,o[zx("0x4d")]);this[zx("0xe1")](a,r,i,c)}else if(o[zx("0x54")](n[zx("0x7e")])){const e=this._model[zx("0x5c")](n[zx("0x7e")][zx("0xb3")],zx("0x4d"));this[zx("0xce")](t,this[zx("0x82")][zx("0x26")](o[zx("0x7e")],e))}else{const e=this[zx("0x82")][zx("0x5c")](n[zx("0x4d")][zx("0x2a")],zx("0xc7"));this[zx("0xce")](t,this[zx("0x82")][zx("0x26")](e,o[zx("0x4d")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[zx("0x97")](t,"insertion")){if(!n[zx("0x5d")])continue;const o=e.getRanges();for(const e of o)if(!t.getDifference(e)[zx("0xbf")])return!0}return!1}_getAuthorFromId(t){const n=this[zx("0xaf")].plugins[zx("0x136")]("Users")[zx("0x2d")](t);if(!n)throw new e.CKEditorError(zx("0xff"),this);return n}[zx("0x89")](t){const e=this[zx("0xaf")][zx("0x16")].get(zx("0xb")),n=(0,r.hashObject)(zx("0xe2")+t);return e.getUser(n)||e[zx("0x113")]({id:n,name:t})}[zx("0x61")](t,e,n,o,s){const r=this[zx("0x4e")](o),i=this[zx("0x11c")][zx("0xab")](t,e,n,r,s,(t=>this[zx("0xd6")](n,{attributes:t})));return this[zx("0x10c")](i,zx("0xb7"),(()=>{this[zx("0xd6")](n,{state:"accepted"})}),{priority:"high"}),this[zx("0x10c")](i,zx("0xd5"),(()=>{this[zx("0xd6")](n,{state:zx("0xf9")})}),{priority:zx("0x6c")}),this[zx("0x10e")][zx("0x85")](n,i),this[zx("0x11")][zx("0x85")](i,zx("0xa1")),i}[zx("0x137")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[zx("0xbf")]>=5?e[2]:null,id:e[zx("0xbf")]<5?e[2]:e[3],authorId:e[zx("0xbf")]<5?e[3]:e[4],markerCount:6==e[zx("0xbf")]?e[5]:null}}[zx("0x17")](t,n,o){const s=t[zx("0x22")](),r=s[zx("0x7e")],i=s[zx("0x4d")];this._setSuggestionRange(t,this[zx("0x82")][zx("0x26")](r,n));const a=(0,e.uid)(),x=t[zx("0x9f")].id,c=t[zx("0xf7")]+(t[zx("0xf4")]?":"+t[zx("0xf4")]:"");this[zx("0x37")]({id:a,type:c,createdAt:new Date,authorId:x,originalSuggestionId:t.id,attributes:t[zx("0xb6")],data:t.data}),zx("0x119")==t[zx("0xf7")]&&(o=this._model.createPositionBefore(o[zx("0x2a")])),this[zx("0xe1")](c,a,x,this[zx("0x82")][zx("0x26")](o,i))}_findSuggestions(t,e=null){const n=[],o=this[zx("0x82")].schema,s=this[zx("0xaf")][zx("0x16")][zx("0x136")](zx("0xb")).me;for(const r of this.getSuggestions())if(r[zx("0x40")]&&(!e||r[zx("0xf7")]==e))for(const e of r[zx("0x92")]()){const i=t[zx("0x7e")][zx("0xde")](e[zx("0x4d")])||t.end[zx("0xde")](e[zx("0x7e")]);if(i||t[zx("0x91")](e)){const a=t.containsRange(e)&&Kx(o,e[zx("0x7e")],t),x=e[zx("0x88")](t)&&Kx(o,t.start,e);n[zx("0x39")]({suggestion:r,meta:{isOwn:s==r[zx("0x18")],isNextTo:i,isInsideObject:a,containsRangeInObject:x}});break}}return n}[zx("0xe1")](t,e,n,o,s){this[zx("0x82")].change((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r[zx("0xd4")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[zx("0x10")](t){const e=t[zx("0xa2")],n=t[zx("0x62")];t[zx("0xa2")]=null,null!=e&&(e[zx("0x62")]=null),t.next=null,null!=n&&(n[zx("0xa2")]=null),"ready"==this[zx("0x11")].get(t)&&(this[zx("0x11")][zx("0x85")](t,zx("0xb4")),this[zx("0x2f")](zx("0xb9"),t,e,n))}[zx("0x37")](t){const n=t.id,o=this[zx("0x1e")](t);if(this[zx("0x126")]&&this[zx("0x126")][zx("0xd1")]){const s=this[zx("0xaf")][zx("0x16")][zx("0x136")](zx("0x28")),r=o[zx("0x3c")],i=o.subType?o[zx("0xf7")]+":"+o[zx("0xf4")]:o[zx("0xf7")],a=this[zx("0xaf")][zx("0xcd")],x=s[zx("0x9a")](Yo(a,zx("0xdc"))),c={id:n,type:i,hasComments:r,data:t[zx("0x11a")]||null,originalSuggestionId:t[zx("0xe7")]||null,attributes:o.attributes};this._adapter.addSuggestion(c).then((t=>{o._saved=!0,s.remove(x),t&&t[zx("0x10b")]&&(this[zx("0x10e")].get(n)[zx("0x10b")]=t[zx("0x10b")])}))[zx("0xba")]((t=>{throw(0,e.logWarning)(zx("0x86")),this.editor.model.enqueueChange({isUndoable:!1},(()=>{o[zx("0xd5")]()})),o[zx("0x5")](),this[zx("0x10e")][zx("0x70")](o.id),this[zx("0x11")][zx("0x70")](o),t}))}return o}[zx("0xd6")](t,e){const n=this[zx("0xaf")][zx("0x16")][zx("0x136")](zx("0x28")),o=this.getSuggestion(t);if(this[zx("0x126")]&&this[zx("0x126")][zx("0x4c")])if(o[zx("0x36")]){const o=n[zx("0x9a")](Yo(this[zx("0xaf")][zx("0xcd")],zx("0xdc")));this._adapter[zx("0x4c")](t,e)[zx("0xa0")]((()=>{n[zx("0x46")](o)}))}else o.on(zx("0xca"),(()=>{this[zx("0xd6")](t,e)}))}[zx("0xda")](t){if(!this[zx("0x126")]||!this[zx("0x126")][zx("0xaa")])throw new e.CKEditorError(zx("0x103"),this);return this[zx("0x126")].getSuggestion(t)}[zx("0x32")](t){const{id:e,type:n,subType:o,authorId:s}=this[zx("0x137")](t),r=this[zx("0x10e")].get(e)||this[zx("0x61")](n,o,e,s,{});switch(this[zx("0x10d")](r,n,o,s),this._suggestionState[zx("0x136")](r)){case zx("0xa1"):this[zx("0xda")](e)[zx("0xa0")]((t=>{let n=Promise[zx("0xf8")]();t[zx("0x3c")]&&(n=this._commentsRepository[zx("0xd0")]({channelId:this[zx("0xaf")][zx("0xa7")][zx("0x136")](zx("0x7c")),threadId:e})),n[zx("0xa0")]((()=>{this.addSuggestionData(t)[zx("0x36")]=!0}))})),this[zx("0x11")][zx("0x85")](r,"markerReady");break;case zx("0xb4"):this[zx("0xd6")](e,{state:zx("0x134")});case"dataReady":this[zx("0x11")][zx("0x85")](r,zx("0xf2")),this[zx("0x2f")]("suggestionLoaded",r);break;case"ready":this[zx("0x2f")](zx("0x9c"),r)}return r[zx("0xe3")](t),r}[zx("0x75")](t){const e=Array[zx("0x31")](t)[zx("0x51")]((t=>!t[zx("0x72")])),n=this.getSuggestions({skipNotAttached:!0})[zx("0x51")]((t=>!t[zx("0x72")])),o=n[zx("0x51")]((e=>!t.has(e))),s=new Map(n[zx("0x43")]((t=>[t,this._suggestionFactory[zx("0x12a")](t[zx("0xf7")],t.subType,zx("0xdb"))]))),r=new Map(n[zx("0x43")]((t=>[t,t[zx("0x22")]()]))),i=new Set,a=new Set;for(let t=0;t<e[zx("0xbf")];t++)x(e[t],e,t+1);for(let t=0;t<e[zx("0xbf")];t++)x(e[t],o,0);for(let t=0;t<e[zx("0xbf")];t++){const n=e[t];!a.has(n)&&n[zx("0xa2")]&&(n[zx("0xa2")].next===n&&(n[zx("0xa2")].next=null),n[zx("0xa2")]=null),!i[zx("0x7d")](n)&&n[zx("0x62")]&&(n[zx("0x62")].previous===n&&(n.next.previous=null),n.next=null)}function x(t,e,n){for(let o=n;o<e[zx("0xbf")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][zx("0xa2")]=n[0],i.add(n[0]),a[zx("0x9a")](n[1]))}}function c(t,e){if(t[zx("0x18")].id!==e[zx("0x18")].id)return null;const n=s[zx("0x136")](t)(t,e,r[zx("0x136")](t),r[zx("0x136")](e));return n&&s[zx("0x136")](e)(t,e,r[zx("0x136")](t),r.get(e))?n[1][zx("0x83")]&&n[1].commentThread[zx("0xbf")]?null:n:null}}[zx("0x1c")](t){const e=Array.from(t),n=this[zx("0x106")]({skipNotAttached:!0}),o=n.filter((e=>!t[zx("0x7d")](e))),s=new Map(e[zx("0x43")]((t=>[t,this[zx("0x11c")][zx("0x12a")](t.type,t[zx("0xf4")],zx("0x96"))]))),r=new Map(n.map((t=>[t,t.getRanges()])));for(let t=0;t<e[zx("0xbf")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[zx("0xbf")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[zx("0xbf")];i++){const o=n[i];if(o[zx("0xf7")]!==e[zx("0xf7")]||o[zx("0x18")].id!==e[zx("0x18")].id||o[zx("0xf4")]!==e[zx("0xf4")])continue;const a=s[zx("0x136")](e),x=r[zx("0x136")](e),c=r.get(o),l=e[zx("0x83")]&&e[zx("0x83")].length,d=o.commentThread&&o[zx("0x83")][zx("0xbf")];if(!l&&a(c,x))return t[zx("0x48")](o,e),r[zx("0x70")](e),!0;if(!d&&a(x,c))return t[zx("0x48")](e,o),r[zx("0x70")](o),!0}return!1}}[zx("0x48")](t,e){if(t[zx("0x72")])for(const n of e.getRanges())t.addRange(n);else{const n=e.getFirstRange()[zx("0x4d")];this._setSuggestionRange(t,this._model.createRange(t.getFirstRange()[zx("0x7e")],n))}e.removeMarkers()}}class Vx{constructor(t){this[zx("0x10a")]=t,this[zx("0x82")]=t[zx("0x1a")],this[zx("0x8e")]=new Map,this[zx("0x9e")]=new Map,this._registerDefaultCallbacks()}[zx("0xab")](t,e,n,o,s,r){return new Zo(this[zx("0x82")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,zx("0xb7"))(...n),onDiscard:(...n)=>this[zx("0x12a")](t,e,zx("0xd5"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[zx("0x8e")][zx("0x85")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[zx("0x8e")][zx("0x136")](o)||this[zx("0x9e")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t.sort(((t,e)=>t[zx("0x7e")][zx("0xbe")](e[zx("0x7e")])?1:-1)),this._model[zx("0x81")]((e=>{for(const n of t){let t;t=n[zx("0x4d")][zx("0x6e")]&&n.end[zx("0x2a")]==n[zx("0x7e")][zx("0x2")]?e[zx("0xf")](n[zx("0x7e")][zx("0x2")],"on"):e[zx("0xf")](n),this[zx("0x82")][zx("0x102")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[zx("0x82")][zx("0x81")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(qx(t)&&(t=this[zx("0x82")][zx("0x26")](t[zx("0x4d")])),t)))[zx("0x51")]((t=>zx("0x45")!==t[zx("0xa4")][zx("0xef")]));if(r[zx("0xbf")]<1)return;const a=Array[zx("0x31")](this[zx("0x82")][zx("0xfb")].selection.getRanges())[zx("0x43")]((t=>i.LiveRange[zx("0x79")](t)));n[zx("0x35")](r);for(const t of this._editor.commands.commands())t.refresh();s.push({forceDefaultExecution:!0}),this[zx("0x10a")][zx("0x12")](o,...s);const x=a[zx("0x51")]((t=>zx("0x45")!=t[zx("0xa4")][zx("0xef")]));x[zx("0xbf")]>0&&n[zx("0x35")](x);for(const t of a)t.detach()}))},o=(t,e)=>1==t.length&&1==e.length&&t[0][zx("0x4d")][zx("0xde")](e[0][zx("0x7e")]),s=(t,e,n,o)=>Zx(t,e,n,o,this[zx("0x82")])?[t,e]:Zx(e,t,o,n,this._model)?[e,t]:null;this[zx("0x9e")].set(zx("0x6"),t),this._defaultCallbacks[zx("0x85")](zx("0xbd"),e),this[zx("0x9e")][zx("0x85")]("insertion:join",o),this._defaultCallbacks[zx("0x85")](zx("0x99"),s),this[zx("0x9e")][zx("0x85")](zx("0x6a"),e),this[zx("0x9e")][zx("0x85")]("deletion:discard",t),this[zx("0x9e")][zx("0x85")](zx("0x4b"),o),this._defaultCallbacks[zx("0x85")](zx("0xdf"),s),this._defaultCallbacks[zx("0x85")]("formatInline:accept",n),this[zx("0x9e")][zx("0x85")](zx("0x130"),t),this[zx("0x9e")][zx("0x85")](zx("0x76"),o),this[zx("0x9e")][zx("0x85")](zx("0x7b"),t),this._defaultCallbacks.set(zx("0x25"),n),this._defaultCallbacks[zx("0x85")](zx("0x2e"),t),this[zx("0x9e")][zx("0x85")](zx("0xc0"),o),this[zx("0x9e")][zx("0x85")](zx("0x11b"),t)}}function Kx(t,e,n){for(const o of e[zx("0x2a")][zx("0xe0")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[zx("0x107")](o))return!1;if(t[zx("0xfa")](o)||t[zx("0x9b")](o))return!0}return!1}function qx(t){return t[zx("0x4d")][zx("0x2a")]==t[zx("0x7e")][zx("0x2")]&&t[zx("0x4d")][zx("0x8f")]}function Xx(t,e,n,o){const s=t=>!t[zx("0x116")].is(zx("0x49"))&&!o[zx("0xfa")](t[zx("0x116")]),r=t.start[zx("0x117")](s),i=t[zx("0x4d")][zx("0x117")](s,{direction:zx("0x69")});return!(t[zx("0x7e")][zx("0xde")](r)&&t.end.isEqual(i)||(r[zx("0xbe")](i)?n[zx("0x8a")](e,{range:n[zx("0x26")](r,i)}):n[zx("0xae")](e),0))}function $x(t){return(0,r.hashObject)(t)}function Jx(t){const e=t[zx("0x7e")][zx("0x2")];return e&&e.is(zx("0x3f"))}function Qx(t,e){const n=e[zx("0x1")][zx("0xfa")](t)||e.schema.isSelectable(t);return e[zx("0x26")](e[zx("0x5c")](t,"before"),n?e.createPositionAfter(t):e[zx("0x5c")](t,zx("0x4d")))}function Zx(t,e,n,o,s){if(n[zx("0x4d")].isEqual(o.start))return!0;if(t[zx("0xf7")]!=e[zx("0xf7")])return!1;if(!n[zx("0x4d")].isTouching(o.start))return!1;const r=s[zx("0x26")](n[zx("0x4d")],o[zx("0x7e")])[zx("0xec")]();for(const t of r)if([zx("0xe6"),zx("0xc4")].includes(t[zx("0xf7")])&&s.schema[zx("0x9b")](t[zx("0x116")]))return!1;return!0}const Yx=["change:isDirty","model","_editor","canAccept","getRanges","listenTo","execute","add","PENDING_ACTION_SUGGESTION","commentThreadController","view","_discardCommand","_pendingAction","_setPendingAction","destroy","remove","get","_acceptCommand","canDiscard","bind","plugins","isEnabled","PendingActions","acceptSuggestion","stopListening","_removePendingAction","unbind","discardSuggestion","canEditAt","isDirty","locale"];var tc,ec;tc=Yx,ec=230,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Yx[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x13")]=e,this[nc("0x1c")]=n,this[nc("0x1b")]=o,this[nc("0x14")]=t,this._acceptCommand=t.commands[nc("0x3")](nc("0xa")),this[nc("0x1d")]=t.commands.get(nc("0xe")),this[nc("0x1c")].bind("isEnabled").to(this[nc("0x4")],this[nc("0x1d")],((t,e)=>t||e)),this[nc("0x1c")][nc("0x6")]("canAccept").to(this[nc("0x4")],nc("0x8"),(t=>t&&this[nc("0x14")][nc("0x13")][nc("0xf")](e[nc("0x16")]()))),this.view.bind(nc("0x5")).to(this._discardCommand,"isEnabled",(t=>t&&this._editor.model.canEditAt(e[nc("0x16")]()))),this[nc("0x1e")]=null,n[nc("0x10")]&&this[nc("0x0")](),this.listenTo(n,nc("0xa"),(()=>this[nc("0xa")]())),this[nc("0x17")](n,"discardSuggestion",(()=>this[nc("0xe")]())),this.listenTo(n,nc("0x12"),(()=>{n[nc("0x10")]?this[nc("0x0")]():this._removePendingAction()}))}acceptSuggestion(){this._acceptCommand[nc("0x18")](this[nc("0x13")].id)}[nc("0xe")](){this[nc("0x1d")].execute(this[nc("0x13")].id)}[nc("0x1")](){this[nc("0x1c")].unbind(nc("0x8")),this[nc("0x1c")][nc("0xd")](nc("0x15")),this.view.unbind(nc("0x5")),this[nc("0xb")](),this.commentThreadController[nc("0x1")](),this[nc("0x1e")]&&this[nc("0xc")]()}[nc("0x0")](){const t=Yo(this._editor[nc("0x11")],nc("0x1a"));this._pendingAction=this[nc("0x14")][nc("0x7")][nc("0x3")](nc("0x9"))[nc("0x19")](t)}[nc("0xc")](){null!==this[nc("0x1e")]&&this[nc("0x14")][nc("0x7")][nc("0x3")]("PendingActions")[nc("0x2")](this._pendingAction),this[nc("0x1e")]=null}}const sc=["isActive","addComment","element","editor","focus","bind","authoredAt","showInput","_config","removeComment","assign","commentThread","disabledSubmit","_createCommentThreadInputView","commentInputView","_createCommentViews","isDirty","CommentView","updateComment","locale","commentThreadInputView","descriptionParts","_model","isEnabled","commentsListView","cancel","canAccept","_localUser","destroy","hasDirtyComment","set","fire","canDiscard","length","isReadOnly","value","delegate","editorConfig"];var rc,ic;rc=sc,ic=117,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const ac=function(t,e){return sc[t-=0]};class xc extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this.commentThreadInputView=null,this[ac("0x1b")](ac("0x23"),!1),this.set("authoredAt",e[ac("0x3")]),this[ac("0x2")](ac("0x3")).to(e),this[ac("0x1b")](ac("0x12"),[]),this[ac("0x1b")](ac("0xd"),!1),this[ac("0x1b")](ac("0x14"),!1),this[ac("0x1b")](ac("0x17"),!1),this[ac("0x1b")](ac("0x1d"),!1),this[ac("0x13")]=e,this[ac("0x18")]=n,this[ac("0x5")]=o,o.disableComments?this[ac("0x1b")](ac("0x1e"),1):this[ac("0xc")]()}[ac("0x1")](){this[ac("0x25")].focus()}[ac("0x19")](){this[ac("0x15")]&&this[ac("0x15")].destroy(),this.commentThreadInputView&&this[ac("0x11")][ac("0x19")](),super[ac("0x19")]()}[ac("0xc")](){const{CommentsListView:t}=this._config;this[ac("0x15")]=new t(this.locale,this[ac("0x13")][ac("0x8")],Object[ac("0x7")]({CommentView:this._config[ac("0xe")]},this[ac("0x5")])),this[ac("0x15")][ac("0x21")](ac("0x6")).to(this),this[ac("0x15")][ac("0x21")](ac("0xf")).to(this),this[ac("0x15")].bind(ac("0x23")).to(this),this.set(ac("0x1e"),this[ac("0x15")][ac("0x1e")]+1),this[ac("0x2")](ac("0x1e")).to(this[ac("0x15")],ac("0x1e"),(t=>t+1)),this[ac("0x11")]=this[ac("0xa")](),this.on("removeComment",(()=>this[ac("0x1")]())),this[ac("0x2")](ac("0xd")).to(this[ac("0x15")],ac("0x1a"),this.commentThreadInputView[ac("0xb")],ac("0x20"),((t,e)=>t||!!e))}[ac("0xa")](){const{CommentThreadInputView:t}=this._config,e=new t(this[ac("0x10")],this._localUser,this._config[ac("0x22")]),n=e[ac("0xb")];return e[ac("0x2")](ac("0x4")).to(this,"isActive",this[ac("0x13")][ac("0x8")],ac("0x1f"),n,ac("0x20"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[ac("0x1c")](ac("0x24"),e),n[ac("0x0")].setData("")})),n.on(ac("0x16"),(()=>this[ac("0x1")]())),n[ac("0x2")](ac("0x9")).to(this[ac("0x13")][ac("0x8")],ac("0x1f")),e}}const cc=["color","innerHTML","EXTERNAL_SUGGESTION","cancel","commentThreadInputView","commentThread","acceptButton","commentsListView",'<span class="ck-suggestion-type">','"></span>',"ck-annotation__main","map","ck-comment__info-time","description","_createButton","acceptSuggestion","_model","createElement","EXTERNAL_IMPORT_WORD_AVATAR",".ck-annotation__content-wrapper","getUserViewNotificationText","render","authoredAt","creator","getExternalSuggestionNote","formatDateTime","userView","ck-suggestion__info","Accept suggestion","</span>","div","attributes","ck-suggestion__main","ck-suggestion__user","children","split","change:description","join","getTemplate","discardSuggestion","push","extendTemplate",'" title="',"_config","@external","ck-suggestion","<p>","querySelector","ck-suggestion--accept","ck-suggestion--disabled-comments","title","innerText","bind","set","ck-suggestion-wrapper",'<span class="ck-suggestion-color" style="background-color: ',"execute","source","ck-annotation__info","discardButton","_descriptionElement","value","ck-comment__external","ck-suggestion-wrapper--active","name","author","element","ck-annotation__info-time","ck-suggestion-","span","locale","type","EXTERNAL_AVATAR","</p>","isEnabled","descriptionParts","ck-annotation__content-wrapper","content","ck-suggestion__info-name","ck-annotation__user","canAccept","canDiscard","isActive","importWord"];var lc,dc;lc=cc,dc=181,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends xc{constructor(e,n,o,s){super(e,n,o,s),this[uc("0x28")](uc("0x3a"),""),this[uc("0x27")](uc("0x3a")).to(this,uc("0x3e"),(t=>t&&t[0]?t[0].type:"")),this[uc("0x27")](uc("0x0")).to(this,uc("0x3e"),this,uc("0x45"),((t,e)=>{let n="";for(const e of t)n+=uc("0x21")+mc(e[uc("0x40")],e[uc("0x47")])+uc("0x3c");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[uc("0x4d")]=this[uc("0x1")](Yo(e,uc("0xf")),t.icons.check,uc("0x23"),uc("0x2"),"sw"),this[uc("0x4d")].bind(uc("0x3d")).to(this,uc("0x43")),this.discardButton=this._createButton(Yo(e,"Discard suggestion"),t.icons[uc("0x4a")],"ck-suggestion--discard",uc("0x1a"),"sw"),this[uc("0x2e")][uc("0x27")](uc("0x3d")).to(this,uc("0x44")),this[uc("0xd")]=new r.UserView(e,this[uc("0x3")][uc("0x34")],this[uc("0x7")]()),this.userView[uc("0x1c")]({attributes:{class:[uc("0x14"),uc("0x42")]}}),this.setTemplate(this[uc("0x19")]())}[uc("0x19")](){const t=this.bindTemplate,e=[{tag:uc("0x11"),attributes:{class:[uc("0xe"),uc("0x2d")]},children:[{tag:uc("0x38"),children:[{text:this[uc("0xd")].name}],attributes:{class:[uc("0x41"),"ck-annotation__info-name"]}},{tag:"time",attributes:{datetime:t.to(uc("0x9")),class:[uc("0x53"),uc("0x36")]},children:[{text:t.to(uc("0x9"),(t=>this._config[uc("0xc")](t)))}]}]},{tag:"div",attributes:{class:["ck-suggestion__actions","ck-annotation__actions"]},children:[this[uc("0x4d")],this.discardButton]},{tag:uc("0x11"),attributes:{class:[uc("0x3f")]}}];this[uc("0x3")].isExternal&&e.push({tag:uc("0x11"),attributes:{class:[uc("0x31")]},children:[{text:this[uc("0xb")]()}]});const n={tag:uc("0x11"),attributes:{class:[uc("0x29"),t.if(uc("0x45"),uc("0x32")),t.to(uc("0x3a"),(t=>uc("0x37")+t)),this[uc("0x1e")].disableComments&&uc("0x24")],"data-suggestion-id":this[uc("0x3")].id,"data-thread-id":this[uc("0x3")][uc("0x4c")].id,"data-author-id":this._model[uc("0x34")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[uc("0x20"),"ck-annotation"]},children:[this.userView,{tag:uc("0x11"),attributes:{class:[uc("0x13"),uc("0x51")]},children:e}]}]};return this[uc("0x4e")]&&this[uc("0x4b")]&&n[uc("0x15")][uc("0x1b")](this[uc("0x4e")],this.commentThreadInputView),n}[uc("0x8")](){super.render(),this[uc("0x2f")]=this[uc("0x35")][uc("0x22")](uc("0x6")),this[uc("0x2f")][uc("0x48")]=this.description,this.on(uc("0x17"),((t,e,n)=>{this[uc("0x2f")][uc("0x48")]=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[uc("0x39")]);return i[uc("0x28")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x1c")]({attributes:{class:n}}),i.on(uc("0x2b"),(()=>{this.fire(o,this._model.id)})),i}[uc("0xb")](){return uc("0x46")===this._model[uc("0x12")]["@external"][uc("0x2c")]?Yo(this[uc("0x39")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[uc("0x39")],uc("0x49"))}[uc("0x7")](){return this[uc("0x3")].isExternal?uc("0x46")===this[uc("0x3")].attributes[uc("0x1f")].source?Yo(this[uc("0x39")],uc("0x5"),this[uc("0x3")][uc("0xa")][uc("0x33")]):Yo(this[uc("0x39")],uc("0x3b"),this[uc("0x3")][uc("0xa")][uc("0x33")]):null}}function mc(t,e){let n="";return n+=t[uc("0x16")]("*")[uc("0x52")](((t,e)=>e%2!=0?uc("0x4f")+fc(t)+uc("0x10"):fc(t)))[uc("0x18")](""),e&&(n+=uc("0x2a")+e[uc("0x30")]+uc("0x1d")+e[uc("0x25")]+uc("0x50")),n}function fc(t){const e=document[uc("0x4")](uc("0x38"));return e[uc("0x26")]=t,e[uc("0x48")]}const hc=["addSourceCollector","_createUIButton","isMultiRange","bind","refreshSelectedViews","clear","discardSelectedSuggestions","trackChanges.SuggestionThreadView","listenTo","set","commands","activeAnnotations","TrackChangesUI","keys","CommentView","acceptSelectedSuggestions","change:activeAnnotations","push","comments","getSuggestion","comments.maxCommentsWhenCollapsed","from","length","comments.maxThreadTotalWeight","_initializeController","commentThread","suggestionChanged","getFirstRange","remove","CommentsRepository","_destroyController","add","unbind","locale","plugins","_disableComments","descriptionParts","EditorAnnotations","suggestionLoaded","toMany","activeMarkers","destroy","_handleControllerBuffer","isDirty","Discard all suggestions","_handleSuggestionControllerDelayed","isEnabled","isOn","has","editing","createAnnotation","componentFactory","getDescriptions","button","getMarkerNames","_refreshActiveMarkers","comments.maxCommentCharsWhenCollapsed","commandName","requires","define","createCommentThreadController","actionView","get","TrackChangesEditing","view","_suggestionToController","trackChanges.disableComments","model","acceptAllSuggestions","head","Discard all selected suggestions","filter","isInContent","discardButton","acceptButton","trackChanges","mainView","change:previous","getAllAdjacentSuggestions","pluginName","_descriptionFactory","CommentsUI","focus","size","suggestionUnloaded","reduce","execute","type","init","getRanges","buttonView","switchbutton","addComment","suggestion-","_viewToController","_annotationViews","_updateController","comments.editorConfig","delete","registerAnnotation","getJoined","config","editor","Annotations","Track changes","getMarkers","arrowView","discardAllSuggestions","innerView","createAnnotationView"];var pc,bc;pc=hc,bc=167,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("0x1")](){return[Wx,r.Users,Ec("0x52"),Ec("0x2e"),Ec("0x5a")]}static get[Ec("0x16")](){return Ec("0x41")}constructor(t){super(t),this[Ec("0x8")]=new Map,this[Ec("0x25")]=new Map,this[Ec("0x26")]=new Map,this[Ec("0x5f")]=new Map;const e=this[Ec("0x2d")][Ec("0x2c")];e[Ec("0x2")](Ec("0x3c"),gc),e[Ec("0x2")](Ec("0x9"),!1),this[Ec("0x58")]=e[Ec("0x5")](Ec("0x9"))}[Ec("0x62")](t,e){0===this._handleControllerBuffer[Ec("0x1a")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x5f")]){const n=this._suggestionToController[Ec("0x65")](t);n||e?n&&e&&this._destroyController(t):this[Ec("0x4d")](t)}this[Ec("0x2d")].plugins[Ec("0x5")](Ec("0x5a"))[Ec("0x39")](),this[Ec("0x6c")](),this[Ec("0x5f")][Ec("0x3a")]()}),10),this[Ec("0x5f")][Ec("0x3e")](t,e)}[Ec("0x1f")](){const t=this[Ec("0x2d")],e=t[Ec("0x57")][Ec("0x5")](Ec("0x6")),n=t[Ec("0x57")][Ec("0x5")]("Annotations"),o=t.plugins[Ec("0x5")](Ec("0x5a")),s=t[Ec("0x57")][Ec("0x5")](Ec("0x52"));t.ui[Ec("0x68")][Ec("0x54")](Ec("0x12"),(t=>this[Ec("0x36")](t))),o[Ec("0x35")]((()=>{const t=[];for(const[e,n]of Array.from(this[Ec("0x8")])){const o=e[Ec("0x15")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x37")]){s.push(...t[Ec("0x20")]());continue}const e=t[Ec("0x50")]();if(s[Ec("0x4b")]>0){const t=s[0][Ec("0x2b")](e);if(t){s[0]=t;continue}}s[Ec("0x46")](e)}t[Ec("0x46")]([n[Ec("0x7")],s])}return t})),this[Ec("0x3d")](e,Ec("0x5b"),((t,e)=>{this[Ec("0x3d")](e,Ec("0x14"),((t,n,o,s)=>{e[Ec("0xf")]&&(null==o?(this[Ec("0x27")](s[Ec("0xc")]),this._handleSuggestionControllerDelayed(e,!1)):(this[Ec("0x27")](o.head),this[Ec("0x62")](e,!0)))})),null===e.previous?this._handleSuggestionControllerDelayed(e,!1):this[Ec("0x27")](e[Ec("0xc")])})),this[Ec("0x3d")](e,Ec("0x1b"),((t,e,n)=>{this.stopListening(e,Ec("0x14")),this[Ec("0x5f")].delete(e);const o=n?n[Ec("0xc")]:e,s=this._suggestionToController[Ec("0x5")](o);null!==n&&this[Ec("0x27")](o),null===n&&s&&this._destroyController(e)})),this[Ec("0x3d")](e,Ec("0x4f"),((t,e)=>{this._updateController(e)})),this.listenTo(n,Ec("0x45"),(()=>{this._refreshActiveMarkers()})),this.listenTo(s,Ec("0x23"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Ec("0x48")](n);this._suggestionToController[Ec("0x5")](s).view[Ec("0x19")]()}),{priority:"lowest"})}[Ec("0x6c")](){const t=this[Ec("0x2d")][Ec("0x57")][Ec("0x5")](Ec("0x2e")),e=this.editor.plugins.get(Ec("0x6")),n=Array[Ec("0x4a")](t[Ec("0x40")],(t=>t[Ec("0x33")]))[Ec("0xe")]((t=>this[Ec("0x25")][Ec("0x65")](t))),o=[];for(const t of n){const e=this[Ec("0x25")][Ec("0x5")](t)[Ec("0xa")].getAllAdjacentSuggestions();o[Ec("0x46")](...e[Ec("0x1c")](((t,e)=>[...t,...e[Ec("0x6b")]()]),[]))}e[Ec("0x5d")]=o}[Ec("0x36")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x2d")].commands[Ec("0x5")](Ec("0x12")),r=Yo(t,Ec("0x2f"));n[Ec("0x21")][Ec("0x3e")]({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("0x38")](Ec("0x64")).to(o,"value"),n[Ec("0x21")].on("execute",(()=>{o[Ec("0x1d")](),this.editor[Ec("0x66")][Ec("0x7")].focus()}));const i=new e.Collection,a=[{type:Ec("0x22"),model:{withText:!0,label:r,commandName:Ec("0x12")}},{type:"separator"},{type:Ec("0x6a"),model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Ec("0xb")}},{type:Ec("0x6a"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Ec("0x44")}},{type:Ec("0x6a"),model:{withText:!0,label:Yo(t,Ec("0x61")),commandName:Ec("0x32")}},{type:Ec("0x6a"),model:{withText:!0,label:Yo(t,Ec("0xd")),commandName:Ec("0x3b")}}];for(const t of a){let e={type:"separator"};if(t[Ec("0xa")]){const n=new s.Model(t[Ec("0xa")]),o=this[Ec("0x2d")][Ec("0x3f")][Ec("0x5")](n[Ec("0x0")]);n[Ec("0x38")](Ec("0x64"),"isEnabled").to(o,"value",Ec("0x63")),e={type:t.type,model:n}}i[Ec("0x54")](e)}(0,s.addListToDropdown)(n,i);const x=a[Ec("0xe")]((t=>null!=t[Ec("0xa")])).map((t=>this[Ec("0x2d")].commands[Ec("0x5")](t[Ec("0xa")][Ec("0x0")]))),c=n[Ec("0x21")];return c[Ec("0x4")][Ec("0x55")](Ec("0x63")),c.arrowView.unbind("isEnabled"),c.actionView[Ec("0x38")](Ec("0x63")).to(o,"isEnabled"),c[Ec("0x31")][Ec("0x38")]("isEnabled")[Ec("0x5c")](x,Ec("0x63"),((...t)=>t.some((t=>t)))),n.on(Ec("0x1d"),(t=>{this[Ec("0x2d")][Ec("0x1d")](t.source[Ec("0x0")]),this[Ec("0x2d")][Ec("0x66")].view[Ec("0x19")]()})),n}_initializeController(t){const e=this[Ec("0x2d")],n=e.config,o=e.plugins[Ec("0x5")](Ec("0x2e")),s=e[Ec("0x57")].get("CommentsRepository"),i=e[Ec("0x57")][Ec("0x5")](Ec("0x5a")),a=e.plugins[Ec("0x5")](r.Users).me,x=n.get("trackChanges").SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e.plugins.get(Ec("0x18"));let d,u;this[Ec("0x26")][Ec("0x65")](t.id)?(u=this[Ec("0x26")][Ec("0x5")](t.id),d=u.mainView):(d=new x(e[Ec("0x56")],t,a,{disableComments:this[Ec("0x58")],editorConfig:n[Ec("0x5")](Ec("0x28")),maxCommentsWhenCollapsed:n[Ec("0x5")](Ec("0x49")),maxThreadTotalWeight:n[Ec("0x5")](Ec("0x4c")),maxCommentCharsWhenCollapsed:n[Ec("0x5")](Ec("0x6d")),formatDateTime:(0,r.getDateTimeFormatter)(n.get(Ec("0x56"))),CommentView:n.get(Ec("0x47"))[Ec("0x43")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x11")].on(Ec("0x1d"),(()=>{e[Ec("0x66")].view[Ec("0x19")]()})),d[Ec("0x10")].on(Ec("0x1d"),(()=>{e[Ec("0x66")][Ec("0x7")][Ec("0x19")]()})),u=o[Ec("0x34")](this[Ec("0x2d")][Ec("0x56")],d),u.bind("isDirty").to(d,Ec("0x60")),u[Ec("0x38")](Ec("0x4b")).to(d),u[Ec("0x38")]("type").to(d,Ec("0x1e"),(t=>Ec("0x24")+t)),this[Ec("0x26")][Ec("0x3e")](t.id,u));const g=s[Ec("0x3")](t[Ec("0x4e")],d),m=new oc(e,t,d,g),f=t[Ec("0x15")]()[Ec("0xe")]((t=>t[Ec("0xf")]));d[Ec("0x59")]=e.plugins[Ec("0x5")](Ec("0x6"))[Ec("0x17")][Ec("0x69")](f),this[Ec("0x8")][Ec("0x3e")](t,m),this._viewToController[Ec("0x3e")](d,m);const h=o[Ec("0x67")]({view:u,target:()=>{const n=[],o=t[Ec("0x15")]()[Ec("0xe")]((t=>t[Ec("0xf")]));for(const t of o)n.push(...t[Ec("0x30")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x66")],n)},type:()=>Ec("0x24")+m.view[Ec("0x1e")]});o.add(h),i[Ec("0x2a")](h)}_destroyController(t){const e=this[Ec("0x2d")][Ec("0x57")].get(Ec("0x2e")),n=this[Ec("0x8")].get(t),o=n.view,s=e.getByInnerView(o);s&&e[Ec("0x51")](s),this[Ec("0x8")][Ec("0x29")](t),this[Ec("0x25")].delete(o),n[Ec("0x5e")]()}[Ec("0x27")](t){if(!t[Ec("0xf")]||!this[Ec("0x8")][Ec("0x65")](t))return;const e=this.editor.plugins.get(Ec("0x6")),n=this[Ec("0x8")][Ec("0x5")](t),o=t.getAllAdjacentSuggestions();n[Ec("0x7")].descriptionParts=e[Ec("0x17")][Ec("0x69")](o)}[Ec("0x5e")](){for(const t of this[Ec("0x8")][Ec("0x42")]())this[Ec("0x53")](t);for(const t of this[Ec("0x26")].values())t[Ec("0x13")][Ec("0x5e")]();super[Ec("0x5e")]()}}var Tc,Cc,yc=["plugins","pluginName","getSuggestion","addSuggestion","editor","requires","getSuggestions","adapter","get"];Tc=yc,Cc=413,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x6")](){return[Wx,_c,"Comments"]}static get[kc("0x2")](){return"TrackChanges"}set[kc("0x8")](t){this[kc("0x5")][kc("0x1")][kc("0x0")](Wx)[kc("0x8")]=t}get[kc("0x8")](){return this[kc("0x5")][kc("0x1")].get(Wx)[kc("0x8")]}[kc("0x4")](t){return this[kc("0x5")][kc("0x1")][kc("0x0")](Wx).addSuggestionData(t)}[kc("0x7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x5")][kc("0x1")][kc("0x0")](Wx)[kc("0x7")]({skipNotAttached:t,toJSON:e})}[kc("0x3")](t){return this[kc("0x5")][kc("0x1")].get(Wx)[kc("0x3")](t)}}const vc=["div","_adapter","discardAllSuggestions","pluginName","editorCreator","model","trackChangesData.editorCreator","end","config","CommentsRepository","getSuggestions","acceptAllSuggestions","useAnonymousUser","TrackChangesDataGetter","getFullData","push","createDocumentFragment","Users","name","get","plugins","createElement","addUser","rootsAttributes","create","function","getRootsAttributes","document","editor","appendChild","destroy","getDataWithDiscardedSuggestions","getRootNames","users","trackChangesData","getDataWithAcceptedSuggestions","set","init","getUser","execute","data","reduce","track-changes-data-invalid-editor-creator","TrackChangesEditing"];var Rc,Ic;Rc=vc,Ic=168,function(t){for(;--t;)Rc.push(Rc.shift())}(++Ic);const Sc=function(t,e){return vc[t-=0]},Lc=["Pagination"];class Nc extends t.Plugin{static get requires(){return[Wx]}static get[Sc("0xb")](){return"TrackChangesData"}[Sc("0x1")](){const t=this.editor;if(t[Sc("0x10")].define(Sc("0xe"),(e=>{const n=t[Sc("0xd")][Sc("0x23")][Sc("0x28")]().reduce(((t,e)=>(t[e]="",t)),{});return t.constructor[Sc("0x20")](n,e)})),Sc("0x21")!=typeof t[Sc("0x10")][Sc("0x1b")](Sc("0x2a"))[Sc("0xc")])throw new e.CKEditorError(Sc("0x6"))}[Sc("0x2b")](t){return Fc(this.editor,!0,t)}[Sc("0x27")](t){return Fc(this.editor,!1,t)}}class Mc extends t.Plugin{static get[Sc("0xb")](){return Sc("0x15")}constructor(t){super(t),this.result=Sc("0xf")}[Sc("0x1")](){this[Sc("0x24")][Sc("0x1c")][Sc("0x1b")](Sc("0x11"))[Sc("0x9")]={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[Sc("0x1c")][Sc("0x1b")](Sc("0x7"))[Sc("0x9")]=null}}function wc(t){return void 0!==t[Sc("0x22")]}async function Fc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Sc("0x1c")][Sc("0x17")](Wx,Mc),o[Sc("0x1f")]=wc(t)?t.getRootsAttributes():void 0;const s=document[Sc("0x18")](),i=t.config[Sc("0x1b")](Sc("0x2a")).editorCreator,a=await i(o,(()=>function(t){const e=document[Sc("0x1d")](Sc("0x8"));return t[Sc("0x25")](e),e}(s)));!function(t,e){const n=t.model.document[Sc("0x28")]()[Sc("0x5")](((e,n)=>(e[n]=t.data[Sc("0x1b")]({rootName:n}),e)),{}),o=t[Sc("0x1c")][Sc("0x1b")]("Users")[Sc("0x29")].map((t=>({id:t.id,name:t[Sc("0x1a")]}))),s=t.plugins[Sc("0x1b")](Sc("0x7"))[Sc("0x12")]({skipNotAttached:!0,toJSON:!0}),r=e[Sc("0x1c")][Sc("0x1b")](Sc("0x19")),i=e[Sc("0x1c")][Sc("0x1b")](Sc("0x7"));for(const t of o)r[Sc("0x2")](t.id)||r[Sc("0x1e")](t);r.me||r[Sc("0x14")]();for(const t of s)i.addSuggestionData(t);e[Sc("0x4")][Sc("0x0")](n)}(t,a),a[Sc("0x3")](Sc(e?"0x13":"0xa"));const x=wc(a)?a[Sc("0x16")](n):a[Sc("0x4")][Sc("0x1b")](n);return await a[Sc("0x26")](),x}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|