@ckeditor/ckeditor5-track-changes 0.0.0-nightly-next-20250220.0 → 0.0.0-nightly-next-20250221.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/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x175ae3,Plugin as _0x2a6979,PendingActions as _0x291c54}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x540f03,ObservableMixin as _0x1e4e69,uid as _0x1db959,priorities as _0x41be5b,insertToPriorityArray as _0x3524db,logWarning as _0x84f347,getEnvKeystrokeText as _0x308c45,FocusTracker as _0x39ddbb,KeystrokeHandler as _0x131ec5,Collection as _0x45e36e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xdad8c7,IconCancel as _0x102c08,IconTrackChanges as _0x1d487a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x383da2,View as _0x55250e,ViewCollection as _0x5f3895,FocusCycler as _0x4ab582,ViewModel as _0x591cb7,createDropdown as _0x38cd8b,SplitButtonView as _0x4b3684,addListToDropdown as _0x3b66df,MenuBarMenuView as _0x1ca301,MenuBarMenuListView as _0x35b624,ListSeparatorView as _0x1b5647,MenuBarMenuListItemView as _0x1f56e0,MenuBarMenuListItemButtonView as _0x5b093d,BodyCollection as _0x20f6d4,Dialog as _0x5c38f4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5d31d4,hashObject as _0x158dfb,surroundingMarkersDetector as _0x4b0064,FOCUS_ANNOTATION_KEYSTROKE as _0x502126,AriaDescriptionView as _0x352ca8,setupThreadKeyboardNavigation as _0x175faf,trimHtml as ti,UserView as _0x17b572,LateFocusButtonView as _0x43be42,getDateTimeFormatter as _0x1c5959,getAllMarkersDomElementsSorted as _0x4cca89,sanitizeEditorConfig as _0x4d994b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x377f87,LiveRange as _0x444cae,LivePosition as _0x144ce7,DowncastWriter as _0x22985f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x524137,toWidget as _0x4a09b3}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x41311b,set as _0x4870b1,isEqual as _0x400f5b,unset as _0x2101ce,omit as Vt}from'es-toolkit/compat';import{Delete as _0x57a4be,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1955c0,ShiftEnter as _0x4d2f64}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x175ae3{['_enabledCommands'];constructor(_0x4d321f,_0x159c69){super(_0x4d321f),this['_enabledCommands']=_0x159c69,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x497fee of this['editor']['commands']['commands']())_0x497fee['affectsData']&&!this['_enabledCommands']['has'](_0x497fee)&&_0x497fee['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x8759e8 of this['editor']['commands']['commands']())_0x8759e8['affectsData']&&!this['_enabledCommands']['has'](_0x8759e8)&&_0x8759e8['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x175ae3{['_suggestions'];constructor(_0x2fe3c8,_0x119b28){super(_0x2fe3c8),this['_suggestions']=_0x119b28,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2607cb){const _0x565633=this['_suggestions']['get'](_0x2607cb);if(!_0x565633)throw new _0x540f03('track-changes-accept-suggestion-not-found',this);const _0x4667e4=_0x565633['getRanges']();this['editor']['model']['canEditAt'](_0x4667e4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x565633);}}class R extends _0x175ae3{['_suggestions'];constructor(_0x505a3b,_0x1e8dc2){super(_0x505a3b),this['_suggestions']=_0x1e8dc2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x6ed3aa){const _0x1706bf=this['_suggestions']['get'](_0x6ed3aa);if(!_0x1706bf)throw new _0x540f03('track-changes-discard-suggestion-not-found',this);const _0x6138eb=_0x1706bf['getRanges']();this['editor']['model']['canEditAt'](_0x6138eb)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1706bf);}}function ls(_0x1bf397,_0x21c279){let _0x564ecf='';return _0x564ecf+=_0x1bf397['split']('*')['map']((_0xfe348b,_0xb0cbbc)=>_0xb0cbbc%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xfe348b)+'</span>':nn(_0xfe348b))['join'](''),_0x21c279&&(_0x564ecf+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x21c279['value']+'\x22\x20title=\x22'+_0x21c279['title']+'\x22></span>'),_0x564ecf;}function nn(_0x12de8d){const _0x20b782=document['createElement']('span');return _0x20b782['innerText']=_0x12de8d,_0x20b782['innerHTML'];}function ts(_0x201188){return _0x201188['sort']((_0x5ed04f,_0x4e4f0c)=>'deletion'==_0x5ed04f['type']&&'deletion'!=_0x4e4f0c['type']?-0x1:'deletion'!=_0x5ed04f['type']&&'deletion'==_0x4e4f0c['type']?0x1:0x0);}function Zt(_0x282762,_0xc434e){let _0x56e0a6,_0x494b3d=0x0;const _0x47d6f6=[],_0x150db8=_0xc434e['schema'];for(;_0x494b3d<_0x282762['length'];){const _0x47b777=_0x282762[_0x494b3d],_0x14755f=_0x282762[_0x494b3d+0x1];_0x56e0a6||(_0x56e0a6=_0xc434e['createPositionBefore'](_0x47b777)),on(_0xc434e,_0x47b777,_0x14755f)||(_0x47d6f6['push'](_0xc434e['createRange'](_0x56e0a6,_0x150db8['isObject'](_0x47b777)?_0xc434e['createPositionAfter'](_0x47b777):_0xc434e['createPositionAt'](_0x47b777,'end'))),_0x56e0a6=null),_0x494b3d++;}return _0x47d6f6;}function on(_0xd6e1e3,_0x2afd17,_0x24fa56){if(!_0x24fa56)return!0x1;const _0x5bad12=_0xd6e1e3['createPositionAfter'](_0x2afd17),_0x976d0f=_0xd6e1e3['createPositionBefore'](_0x24fa56);return _0x5bad12['isTouching'](_0x976d0f);}function rs(_0x5a5725,_0x4b3e03,_0x3ca360){for(;_0x3ca360['length'];){const _0x513c41=_0x3ca360['splice'](0x0,0x64);_0x5a5725['change'](()=>{for(const _0x1c4244 of _0x513c41)_0x1c4244['isInContent']&&_0x4b3e03['execute'](_0x1c4244['id']);});}}class x extends _0x175ae3{['_command'];['_suggestions'];constructor(_0xd357fc,_0xb7359e,_0x24634a){super(_0xd357fc),this['_command']=_0xb7359e,this['_suggestions']=_0x24634a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3738ed=Array['from'](this['_suggestions']['values']())['some'](_0x5dd17f=>_0x5dd17f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3738ed;}['execute'](){const _0x23f981=ts(Array['from'](this['_suggestions']['values']()));for(const _0x5bb5b1 of _0x23f981){const _0x4fd843=_0x5bb5b1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4fd843))return;}rs(this['editor']['model'],this['_command'],_0x23f981);}}class E extends _0x175ae3{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x23f00b,_0x8642b2,_0x119f99){super(_0x23f00b),this['_command']=_0x8642b2,this['_suggestions']=_0x119f99,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x40ef21=this['editor']['model']['document']['selection'],_0x53fef4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x250058,_0x388787){const _0x1a24c9=Array['from'](_0x250058['getRanges']()),_0x24fe6e=new Set();for(const _0x3fd4c4 of _0x388787)if(_0x3fd4c4['isInContent']){for(const _0x969c18 of _0x1a24c9)for(const _0x58464f of _0x3fd4c4['getRanges']())(_0x969c18['isIntersecting'](_0x58464f)||_0x250058['isCollapsed']&&!_0x3fd4c4['isMultiRange']&&_0x3fd4c4['next']&&_0x58464f['end']['isTouching'](_0x969c18['start']))&&_0x24fe6e['add'](_0x3fd4c4);}return _0x24fe6e;}(_0x40ef21,_0x53fef4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4a8545=ts(Array['from'](this['_selectedSuggestions']));for(const _0x14048c of _0x4a8545){const _0x731e47=_0x14048c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x731e47))return;}rs(this['editor']['model'],this['_command'],_0x4a8545);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x1e4e69(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x505949,_0x534408){super(),this['id']=_0x534408['id'],this['type']=_0x534408['type'],this['subType']=_0x534408['subType']||null,this['author']=_0x534408['author'],this['creator']=_0x534408['creator']||_0x534408['author'],this['isExternal']=Boolean(_0x534408['attributes']&&_0x534408['attributes']['@external']),this['data']=null,this['_model']=_0x505949,this['_onAccept']=_0x534408['onAccept'],this['_onDiscard']=_0x534408['onDiscard'],this['_onAttributesChange']=_0x534408['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x534408['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x323b4c=this;for(;_0x323b4c['previous'];)_0x323b4c=_0x323b4c['previous'];return _0x323b4c;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x592e9e){this['_markerNames']['add'](_0x592e9e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1131a6=>this['_model']['markers']['get'](_0x1131a6))['filter'](_0xf13f71=>_0xf13f71);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2db76d=>{for(const _0x28c517 of this['getMarkers']())_0x2db76d['removeMarker'](_0x28c517);}),this['_markerNames']['clear']();}['removeMarker'](_0x8f1a4b){this['_model']['change'](_0x852738=>{_0x852738['removeMarker'](_0x8f1a4b);}),this['_markerNames']['delete'](_0x8f1a4b);}['addRange'](_0x4d9c03){const _0x141161='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x141161),this['_model']['change'](_0x2a0bfb=>{_0x2a0bfb['addMarker'](_0x141161,{'range':_0x4d9c03,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3ef813){for(const _0x2314e5 of this['getRanges']())if(_0x2314e5['isIntersecting'](_0x3ef813))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x36e719=>_0x36e719['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2bf762,_0x2c1443)=>[..._0x2bf762,..._0x2c1443['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1a0aae=this['getRanges']();if(0x1!=_0x1a0aae['length'])return null;const _0x1faca2=_0x1a0aae[0x0],_0x50f567=_0x1faca2['start']['nodeAfter'],_0x160d73=_0x1faca2['end']['nodeBefore'];return _0x50f567 instanceof _0x377f87?_0x50f567!=_0x160d73?null:_0x50f567:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x52a264=[];let _0x1c5e72=this['head'];for(;_0x1c5e72;)_0x52a264['push'](_0x1c5e72),_0x1c5e72=_0x1c5e72['next'];return _0x52a264;}['setAttribute'](_0x388e5a,_0x329c45){const _0x264d44=_0x41311b(this['attributes']);_0x4870b1(_0x264d44,_0x388e5a,_0x329c45),_0x400f5b(_0x264d44,this['attributes'])||(this['attributes']=_0x264d44,this['_onAttributesChange'](_0x264d44));}['removeAttribute'](_0x516fb3){const _0x346656=_0x41311b(this['attributes']);_0x2101ce(_0x346656,_0x516fb3),_0x400f5b(_0x346656,this['attributes'])||(this['attributes']=_0x346656,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x1db959()['substr'](0x1,0x5);}}function c(_0xf7a03e,_0x3fa4b0,_0x2f50d4){const _0x4b55f1=_0xf7a03e['t'],t=_0xf7a03e['t'];switch(_0x3fa4b0){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x2f50d4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2f50d4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2f50d4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2f50d4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2f50d4);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x2f50d4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2f50d4);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2f50d4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2f50d4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2f50d4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2f50d4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2f50d4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2f50d4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2f50d4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2f50d4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2f50d4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2f50d4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2f50d4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2f50d4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2f50d4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2f50d4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2f50d4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2f50d4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2f50d4);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x2f50d4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2f50d4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2f50d4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2f50d4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2f50d4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2f50d4);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x2f50d4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2f50d4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2f50d4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2f50d4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2f50d4);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x2f50d4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2f50d4);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x2f50d4);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2f50d4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2f50d4);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x2f50d4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2f50d4);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x2f50d4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2f50d4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2f50d4);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x2f50d4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2f50d4);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x4b55f1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2f50d4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4b55f1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2f50d4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2f50d4);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x2f50d4);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x2f50d4);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x2f50d4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3fa4b0;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1821a0,_0x31dbe2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1821a0,this['_locale']=_0x31dbe2;}['getDescriptions'](_0x44d9a6){const _0x2af36b=[],_0x5ee68f=new Set(),_0x1fb3b1=new Set();for(let _0x284efb=0x0;_0x284efb<_0x44d9a6['length'];_0x284efb++){const _0x1c606d=_0x44d9a6[_0x284efb];if(!_0x1c606d['isInContent'])continue;const _0x1b204c=this['_handleCustomCallbackDescription'](_0x1c606d);if(_0x1b204c){if(null!=_0x1c606d['subType']){if(_0x5ee68f['has'](_0x1c606d['subType']))continue;_0x5ee68f['add'](_0x1c606d['subType']);}_0x2af36b['push'](_0x1b204c);}else{if('attribute'!=_0x1c606d['type'])'insertion'!=_0x1c606d['type']&&'deletion'!=_0x1c606d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2af36b,_0x1c606d,_0x44d9a6[_0x284efb+0x1]);else{const _0x499a7e=_0x1c606d['data']['key'];if(_0x1fb3b1['has'](_0x499a7e))continue;_0x1fb3b1['add'](_0x1c606d['data']['key']),_0x499a7e==u?this['_handleRenameSuggestionDescription'](_0x2af36b,_0x1c606d):this['_handleAttributeSuggestionDescription'](_0x2af36b,_0x1c606d);}}}return this['_resolveDescriptionItems'](_0x2af36b);}['registerDescriptionCallback'](_0x5dff6d){this['_customCallbacks']['push'](_0x5dff6d);}['registerElementLabel'](_0x33bc7c,_0xafa341,_0x852174=_0x41be5b['normal']){'function'==typeof _0x33bc7c?_0x3524db(this['_itemLabelsCallbacks'],{'matchingCallback':_0x33bc7c,'label':_0xafa341,'priority':_0x852174}):this['_itemLabels']['set'](_0x33bc7c,_0xafa341);}['registerAttributeLabel'](_0x47bacc,_0x640bc6){this['_attributeLabels']['set'](_0x47bacc,_0x640bc6);}['getItemLabel'](_0x263ef9,_0x4fcefa=0x1){let _0x25cc25;for(const _0x4435f8 of this['_itemLabelsCallbacks'])if(_0x4435f8['matchingCallback'](_0x263ef9)){_0x25cc25=_0x4435f8['label'];break;}return _0x25cc25||(_0x25cc25=this['_itemLabels']['get'](_0x263ef9['name'])),_0x25cc25?_0x25cc25(_0x4fcefa):0x1!==_0x4fcefa?_0x4fcefa+'\x20'+_0x263ef9['name']+'s':''+_0x263ef9['name'];}['_addDescriptionItems'](_0x3a2390,_0x38a6a2){const _0x52d3f9=_0x38a6a2['getFirstRange']()['getWalker'](),_0x5c6fe5='insertion'==_0x38a6a2['type']?'add':'remove';for(const _0x5e39c1 of _0x52d3f9){const _0x1d74f9=_0x5e39c1['item'],_0x518ff5=_0x3a2390[_0x3a2390['length']-0x1];if(_0x1d74f9['is']('$textProxy'))_0x518ff5&&_0x518ff5['type']['indexOf']('Container')>-0x1&&_0x3a2390['pop'](),_0x518ff5&&'text'==_0x518ff5['type']?_0x518ff5[_0x5c6fe5]+=_0x1d74f9['data']:_0x3a2390['push']({'type':'text','add':'add'==_0x5c6fe5?_0x1d74f9['data']:'','remove':'remove'==_0x5c6fe5?_0x1d74f9['data']:''});else{if(this['_schema']['isObject'](_0x1d74f9)){const _0x80b299=_0x1d74f9;if(_0x518ff5&&_0x518ff5['type']['indexOf']('Container')>-0x1&&_0x3a2390['pop'](),'elementEnd'==_0x5e39c1['type'])continue;_0x518ff5&&_0x518ff5['type']==_0x5c6fe5+'Object'&&_0x518ff5['element']['name']==_0x80b299['name']?_0x518ff5['quantity']++:_0x3a2390['push']({'type':_0x5c6fe5+'Object','element':_0x80b299,'quantity':0x1}),_0x52d3f9['skip'](_0x508a2b=>!('elementEnd'==_0x508a2b['type']&&_0x508a2b['item']==_0x1d74f9));}else{if(this['_schema']['checkChild'](_0x1d74f9,'$text')||_0x1d74f9['is']('element','softBreak')){const _0x541b19=_0x1d74f9;if('add'==_0x5c6fe5&&'elementStart'==_0x5e39c1['type']||'remove'==_0x5c6fe5&&'elementEnd'==_0x5e39c1['type'])continue;if(_0x518ff5&&-0x1==_0x518ff5['type']['indexOf']('Container')){'text'==_0x518ff5['type']&&(_0x518ff5[_0x5c6fe5]+='\x0a');continue;}let _0x49ab54;if(_0x49ab54='add'==_0x5c6fe5?_0x541b19['nextSibling']&&!this['_schema']['isObject'](_0x541b19['nextSibling'])?_0x541b19['nextSibling']:null:_0x541b19['previousSibling']&&!this['_schema']['isObject'](_0x541b19['previousSibling'])?_0x541b19['previousSibling']:null,_0x541b19['isEmpty']||_0x49ab54&&_0x49ab54['isEmpty']){const _0x9d3f3a=_0x49ab54&&_0x49ab54['isEmpty']?_0x49ab54:_0x541b19;_0x518ff5&&_0x518ff5['type']==_0x5c6fe5+'EmptyContainer'&&_0x518ff5['element']['name']==_0x9d3f3a['name']?_0x518ff5['quantity']++:_0x3a2390['push']({'type':_0x5c6fe5+'EmptyContainer','element':_0x9d3f3a,'quantity':0x1});}else _0x3a2390['push']({'type':_0x5c6fe5+'Container','element':_0x541b19});}}}}}['_resolveDescriptionItems'](_0x419d6c){const _0x4a8f7e=this['_locale'],_0x1c4618=[],_0x1720c4=[],_0x34c46a=[];for(const _0x49fa31 of _0x419d6c)switch(_0x49fa31['type']){case'text':if(_0x49fa31['add']=_0x49fa31['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x49fa31['remove']=_0x49fa31['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x49fa31['add']&&''!=_0x49fa31['remove']){_0x1c4618['push']({'type':'replace','content':c(_0x4a8f7e,'REPLACE_TEXT',['\x22'+_0x49fa31['remove']+'\x22','\x22'+_0x49fa31['add']+'\x22'])});continue;}if(null!=_0x49fa31['add']['match'](/^ +$/)){_0x1c4618['push']({'type':'insertion','content':c(_0x4a8f7e,'*Insert:*\x20%0',c(_0x4a8f7e,'ELEMENT_SPACE',_0x49fa31['add']['length']))});continue;}if(null!=_0x49fa31['remove']['match'](/^ +$/)){_0x1c4618['push']({'type':'deletion','content':c(_0x4a8f7e,'*Remove:*\x20%0',c(_0x4a8f7e,'ELEMENT_SPACE',_0x49fa31['remove']['length']))});continue;}if(''!=_0x49fa31['add']){_0x1c4618['push']({'type':'insertion','content':c(_0x4a8f7e,'*Insert:*\x20%0','\x22'+_0x49fa31['add']+'\x22')});continue;}_0x1c4618['push']({'type':'deletion','content':c(_0x4a8f7e,'*Remove:*\x20%0','\x22'+_0x49fa31['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1c4618['push']({'type':'insertion','content':c(_0x4a8f7e,'*Insert:*\x20%0',this['getItemLabel'](_0x49fa31['element'],_0x49fa31['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1c4618['push']({'type':'deletion','content':c(_0x4a8f7e,'*Remove:*\x20%0',this['getItemLabel'](_0x49fa31['element'],_0x49fa31['quantity']))});continue;case'addContainer':_0x1c4618['push']({'type':'insertion','content':c(_0x4a8f7e,'*Split:*\x20%0',this['getItemLabel'](_0x49fa31['element'],_0x49fa31['quantity']))});continue;case'removeContainer':_0x1c4618['push']({'type':'deletion','content':c(_0x4a8f7e,'*Merge:*\x20%0',this['getItemLabel'](_0x49fa31['element'],_0x49fa31['quantity']))});continue;case'addFormat':_0x1720c4['push'](_0x49fa31['key']);continue;case'removeFormat':_0x34c46a['push'](_0x49fa31['key']);continue;default:_0x1c4618['push'](_0x49fa31);}if(_0x1720c4['length']){const _0x9e9a8=_0x1720c4['map'](_0xb6d99=>this['_attributeLabels']['has'](_0xb6d99)?this['_attributeLabels']['get'](_0xb6d99):_0xb6d99)['join'](',\x20');_0x1c4618['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x9e9a8)});}if(_0x34c46a['length']){const _0x2f931d=_0x34c46a['map'](_0x2441c2=>this['_attributeLabels']['has'](_0x2441c2)?this['_attributeLabels']['get'](_0x2441c2):_0x2441c2)['join'](',\x20');_0x1c4618['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x2f931d)});}return _0x1c4618;}['_handleCustomCallbackDescription'](_0xdf7fbb){for(const _0x5235c5 of this['_customCallbacks']){const _0x261136=_0x5235c5(_0xdf7fbb);if(_0x261136&&'type'in _0x261136)return _0x261136;}}['_handleAttributeSuggestionDescription'](_0x425235,_0x59bc40){const _0x3e9c45=_0x59bc40['data'],_0x275ba2=void 0x0===_0x3e9c45['newValue']?'removeFormat':'addFormat';_0x425235['push']({'type':_0x275ba2,'key':_0x3e9c45['key']});}['_handleRenameSuggestionDescription'](_0x37a2c8,_0x2515d1){_0x37a2c8['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2515d1['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2bd999,_0x3768d4,_0x5723a8){if(this['_addDescriptionItems'](_0x2bd999,_0x3768d4),_0x5723a8&&_0x5723a8['getFirstRange']()&&!_0x3768d4['getFirstRange']()['end']['isEqual'](_0x5723a8['getFirstRange']()['start'])){const _0x3dcdb4=_0x2bd999[_0x2bd999['length']-0x1],_0x3e0fea='insertion'==_0x3768d4['type']?'add':'remove';_0x3dcdb4&&'text'==_0x3dcdb4['type']&&(_0x3dcdb4[_0x3e0fea]+='\x0a');}}}class U extends _0x2a6979{['afterInit'](){const _0x404498=this['editor'],_0x2cb0af=_0x404498['plugins']['get']('TrackChangesEditing');_0x404498['commands']['get']('showAIAssistant')&&_0x2cb0af['enableCommand']('showAIAssistant');}}class V extends _0x2a6979{['afterInit'](){const _0x1b9ab6=this['editor'],_0x1d243f=_0x1b9ab6['locale'];if(!_0x1b9ab6['plugins']['has']('AlignmentEditing'))return;const _0x108f19=_0x1b9ab6['plugins']['get']('TrackChangesEditing');_0x108f19['enableDefaultAttributesIntegration']('alignment'),_0x108f19['registerBlockAttribute']('alignment'),_0x108f19['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x1d243f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x311fe9=this['editor'],_0x4d40c3=_0x311fe9['locale'];_0x311fe9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15d4ca=>{if('formatBlock'!=_0x15d4ca['type'])return;const {data:_0x4413e9}=_0x15d4ca;if(_0x4413e9&&'alignment'==_0x4413e9['commandName']){const _0x3b60b3=_0x4413e9['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x4d40c3,'*Format:*\x20%0',function(_0x1c23d7){switch(_0x1c23d7){case'left':return c(_0x4d40c3,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x4d40c3,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x4d40c3,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x4d40c3,'FORMAT_JUSTIFY_TEXT');}}(_0x3b60b3))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x2a6979{['afterInit'](){const _0x17eaa0=this['editor'],_0x3a6f7c=_0x17eaa0['plugins']['get']('TrackChangesEditing'),_0xcba18a=_0x17eaa0['locale'];for(const _0x1cd956 of Yt){if(!_0x17eaa0['plugins']['has'](_0x1cd956))continue;const _0x98a7ff=_0x1cd956['slice'](0x0,-0x7)['toLowerCase'](),_0x3e72cd='FORMAT_'+_0x98a7ff['toUpperCase']();_0x3a6f7c['enableDefaultAttributesIntegration'](_0x98a7ff),_0x3a6f7c['registerInlineAttribute'](_0x98a7ff),_0x3a6f7c['descriptionFactory']['registerAttributeLabel'](_0x98a7ff,c(_0xcba18a,_0x3e72cd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58025b=this['editor'],_0x3e70a3=_0x58025b['locale'],_0x1c54de=_0x58025b['plugins']['get']('TrackChangesEditing');function _0x405494(_0x15f6b6,_0x4cc55e){_0x1c54de['descriptionFactory']['registerDescriptionCallback'](_0x7135ea=>{if('formatInline'!=_0x7135ea['type'])return;const {data:_0x2fa568}=_0x7135ea;return _0x2fa568&&_0x2fa568['commandName']===_0x15f6b6?_0x2fa568['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3e70a3,'*Format:*\x20%0',_0x4cc55e)}:{'type':'format','content':c(_0x3e70a3,'*Remove\x20format:*\x20%0',_0x4cc55e)}:void 0x0;});}_0x405494('bold',c(_0x3e70a3,'FORMAT_BOLD')),_0x405494('italic',c(_0x3e70a3,'FORMAT_ITALIC')),_0x405494('underline',c(_0x3e70a3,'FORMAT_UNDERLINE')),_0x405494('code',c(_0x3e70a3,'FORMAT_CODE')),_0x405494('strikethrough',c(_0x3e70a3,'FORMAT_STRIKETHROUGH')),_0x405494('subscript',c(_0x3e70a3,'FORMAT_SUBSCRIPT')),_0x405494('superscript',c(_0x3e70a3,'FORMAT_SUPERSCRIPT'));}}class G extends _0x2a6979{['afterInit'](){const _0xcbb4a5=this['editor'],_0x452920=_0xcbb4a5['locale'];if(!_0xcbb4a5['plugins']['has']('BlockQuoteEditing'))return;const _0x10f4b2=_0xcbb4a5['plugins']['get']('TrackChangesEditing'),_0x39e4cc=this['editor']['commands']['get']('blockQuote');_0x10f4b2['enableCommand']('blockQuote',(_0x4695d7,_0x149245={})=>{const _0x4d5100=this['editor']['model']['document']['selection'],_0x36d85e=_0x149245&&void 0x0!==_0x149245['forceValue']?_0x149245['forceValue']:!_0x39e4cc['value'];let _0x389e9a=[];if(_0x36d85e){const _0x2b2d40=Array['from'](_0x4d5100['getSelectedBlocks']())['filter'](_0x5145d7=>to(_0x5145d7)||function(_0x27cf22,_0x1287c9){const _0x458548=_0x1287c9['checkChild'](_0x27cf22['parent'],'blockQuote'),_0x53efc6=_0x1287c9['checkChild'](['$root','blockQuote'],_0x27cf22);return _0x458548&&_0x53efc6;}(_0x5145d7,this['editor']['model']['schema']));_0x389e9a=Zt(_0x2b2d40,_0xcbb4a5['model']);}else{const _0x176120=Array['from'](_0x4d5100['getSelectedBlocks']())['filter'](_0x1d437e=>to(_0x1d437e));_0x389e9a=Zt(_0x176120,_0xcbb4a5['model']);}_0xcbb4a5['model']['change'](()=>{for(const _0x4baee9 of _0x389e9a)_0x10f4b2['markBlockFormat'](_0x4baee9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x36d85e}]});});}),_0x10f4b2['descriptionFactory']['registerDescriptionCallback'](_0xd46827=>{const {data:_0xca12b4}=_0xd46827;if(_0xca12b4&&'blockQuote'==_0xca12b4['commandName']){const _0x12869e=c(_0x452920,'ELEMENT_BLOCK_QUOTE');return _0xca12b4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x452920,'*Set\x20format:*\x20%0',_0x12869e)}:{'type':'format','content':c(_0x452920,'*Remove\x20format:*\x20%0',_0x12869e)};}});}}function to(_0x471ad2){return'blockQuote'==_0x471ad2['parent']['name'];}class L extends _0x2a6979{['afterInit'](){const _0x4f06dd=this['editor'],_0x28612c=_0x4f06dd['locale'],_0x52a5e3=_0x4f06dd['plugins']['get']('TrackChangesEditing');_0x4f06dd['plugins']['has']('BookmarkEditing')&&(_0x52a5e3['enableCommand']('insertBookmark'),_0x52a5e3['enableDefaultAttributesIntegration']('updateBookmark'),_0x52a5e3['registerBlockAttribute']('bookmarkId'),_0x52a5e3['descriptionFactory']['registerDescriptionCallback'](_0x3208bd=>{if('insertion'!=_0x3208bd['type']&&'deletion'!=_0x3208bd['type']&&'attribute'!=_0x3208bd['type'])return;const _0x316e24=_0x3208bd['getContainedElement']();if(null==_0x316e24)return;if(!_0x316e24['is']('element','bookmark'))return;const _0x57d9b1=_0x316e24['getAttribute']('bookmarkId');if('insertion'==_0x3208bd['type'])return{'type':'insertion','content':c(_0x28612c,'*Insert:*\x20%0','\x22'+_0x57d9b1+'\x22\x20'+c(_0x28612c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3208bd['type'])return{'type':'deletion','content':c(_0x28612c,'*Remove:*\x20%0','\x22'+_0x57d9b1+'\x22\x20'+c(_0x28612c,'ELEMENT_BOOKMARK'))};const {data:_0x1984a9}=_0x3208bd;if(!_0x1984a9||'bookmarkId'!=_0x1984a9['key'])return;return{'type':'format','content':c(_0x28612c,'*Set\x20bookmark:*\x20%0','\x22'+_0x1984a9['newValue']+'\x22')};}));}}class J extends _0x2a6979{['afterInit'](){const _0x4f9dd0=this['editor'];_0x4f9dd0['plugins']['has']('CaseChange')&&(_0x4f9dd0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4f9dd0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4f9dd0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x2a6979{['afterInit'](){const _0x592042=this['editor'];_0x592042['commands']['get']('ckbox')&&_0x592042['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x2a6979{['afterInit'](){const _0x747428=this['editor'];if(!_0x747428['plugins']['has']('CodeBlock'))return;const _0x20d095=_0x747428['plugins']['get']('TrackChangesEditing'),_0x5210df=_0x747428['locale'],_0x3ace38=_0x747428['config']['get']('codeBlock')['languages'],_0xff13bb=_0x747428['commands']['get']('codeBlock');_0x20d095['enableCommand']('indentCodeBlock'),_0x20d095['enableCommand']('outdentCodeBlock'),_0x20d095['enableCommand']('codeBlock',(_0x2d9ae3,_0x5037b5={})=>{const _0x3215bd=_0x747428['model'],_0x527b4c=_0x747428['model']['document']['selection'],_0x3d46ea=_0x5037b5&&void 0x0!==_0x5037b5['forceValue']?_0x5037b5['forceValue']:!_0xff13bb['value'];let _0x243497;_0x5037b5['language']||(_0x5037b5['language']=_0x3ace38[0x0]['language']),_0x243497=_0x3d46ea?Array['from'](_0x527b4c['getSelectedBlocks']())['filter'](_0x3c3a67=>oo(_0x3c3a67)||function(_0x4985eb,_0x3f360d){if(_0x4985eb['is']('rootElement')||_0x3f360d['isLimit'](_0x4985eb))return!0x1;return _0x3f360d['checkChild'](_0x4985eb['parent'],'codeBlock');}(_0x3c3a67,_0x3215bd['schema'])):Array['from'](_0x527b4c['getSelectedBlocks']())['filter'](_0x55a280=>oo(_0x55a280));const _0x699b95=Zt(_0x243497,_0x3215bd);_0x3215bd['change'](()=>{for(const _0x38a269 of _0x699b95)_0x20d095['markBlockFormat'](_0x38a269,{'commandName':'codeBlock','commandParams':[{..._0x5037b5,'forceValue':_0x3d46ea}],'formatGroupId':'blockName'});});}),(_0x20d095['descriptionFactory']['registerElementLabel']('codeBlock',_0x334517=>c(_0x5210df,'ELEMENT_CODE_BLOCK',_0x334517)),_0x20d095['descriptionFactory']['registerDescriptionCallback'](_0x3939be=>{if('formatBlock'!=_0x3939be['type'])return;const _0x310888=_0x5210df['t'],{data:_0x4fa408}=_0x3939be;if(!_0x4fa408||'codeBlock'!=_0x4fa408['commandName'])return;const _0x279626=_0x4fa408['commandParams'][0x0]['language'],_0x331c22=_0x310888(_0x3ace38['find'](_0x470e39=>_0x470e39['language']===_0x279626)['label'])['toLowerCase']();return _0x4fa408['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5210df,'*Set\x20format:*\x20%0',c(_0x5210df,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x331c22+')')}:{'type':'format','content':c(_0x5210df,'*Remove\x20format:*\x20%0',c(_0x5210df,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x41451b){return'codeBlock'==_0x41451b['name'];}class q extends _0x2a6979{['afterInit'](){const _0x37fd76=this['editor'];if(!_0x37fd76['plugins']['has']('CommentsEditing'))return;_0x37fd76['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x24d014,_0x2ed503,_0x484b12){const _0x2adbe6=[];for(const _0x2e8fbb of _0x2ed503['getItems']())_0x2e8fbb['hasAttribute'](_0x24d014)&&_0x2adbe6['push'](_0x484b12['createRangeOn'](_0x2e8fbb));return _0x2adbe6;}function De(_0x29894d,_0x4e0e41,{showActiveMarker:_0x809b74=!0x0}={}){const _0x4827c0=_0x29894d['plugins']['get']('TrackChangesEditing');return(_0x312bab,_0x15c303,_0x4ee356)=>{if(!_0x4ee356['consumable']['test'](_0x15c303['markerRange'],_0x312bab['name']))return;const _0x31e519=_0x15c303['markerRange']['getWalker'](),_0x57761c=_0x15c303['markerRange']['start'],_0x3ced06=_0x29894d['model']['schema'];let _0x111efd=null,_0x5038f7=null,_0x44ca06=!0x1,_0x46030c=!0x1;for(const _0x4e29ad of _0x31e519){const _0x5215b6=_0x4e29ad['item'];_0x44ca06=_0x44ca06||_0x3ced06['isContent'](_0x5215b6);const _0x2abb10=_0x4ee356['mapper']['toViewElement'](_0x5215b6);if(_0x2abb10&&_0x2abb10['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e29ad['type']&&(_0x3ced06['isBlock'](_0x5215b6)&&!_0x3ced06['isLimit'](_0x5215b6)&&(_0x5215b6['nextSibling']||_0x57761c['isAtEnd']?_0x111efd&&_0x111efd['parent']==_0x5215b6||(_0x111efd=_0x5215b6,_0x3cec4f(_0x4e29ad['previousPosition']),_0x46030c=!0x0):_0x5038f7=_0x5038f7||_0x4e29ad['previousPosition']));}function _0x3cec4f(_0x7cf0b2){const {authorId:_0x4e7f58}=_0x4827c0['_splitMarkerName'](_0x15c303['markerName']),_0x3d4250=_0x4ee356['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e0e41,'data-author-id':_0x4e7f58}),_0x1f18cb=_0x4ee356['mapper']['toViewPosition'](_0x7cf0b2);_0x809b74&&_0x4827c0['activeMarkers']['includes'](_0x15c303['markerName'])&&_0x4ee356['writer']['addClass']('ck-suggestion-marker--active',_0x3d4250),_0x4ee356['writer']['insert'](_0x1f18cb,_0x3d4250),_0x4ee356['mapper']['bindElementToMarker'](_0x3d4250,_0x15c303['markerName']);}_0x44ca06||_0x46030c||!_0x5038f7||_0x3cec4f(_0x5038f7);};}class z extends _0x2a6979{static get['requires'](){return[_0x57a4be];}['init'](){const _0x9614e1=this['editor'],_0x24275b=_0x9614e1['plugins']['get']('TrackChangesEditing');_0x24275b['enableCommand']('delete');const _0x2a97e9=_0x9614e1['commands']['get']('deleteForward');_0x24275b['enableCommand']('deleteForward',(_0x4b30c7,_0x14ccd4={})=>{const _0x5ab3c0=_0x9614e1['model']['createSelection'](_0x9614e1['model']['document']['selection']);_0x5ab3c0['isCollapsed']&&_0x9614e1['model']['modifySelection'](_0x5ab3c0,{'direction':'forward','unit':_0x14ccd4['unit']});const _0x33a8cf=_0x5ab3c0['getFirstRange'](),_0x168d09=_0x444cae['fromRange'](_0x33a8cf);let _0xf83703;_0x4b30c7(_0x14ccd4),_0xf83703='$graveyard'==_0x168d09['root']['rootName']?_0x9614e1['model']['createRange'](_0x33a8cf['start']):_0x9614e1['model']['createRange'](_0x168d09['start'],_0x168d09['end']),_0x168d09['detach'](),_0x9614e1['model']['enqueueChange'](_0x2a97e9['buffer']['batch'],_0x5a4844=>{_0x2a97e9['buffer']['lock'](),_0x5a4844['setSelection'](_0x5a4844['createRange'](_0xf83703['end'])),_0x2a97e9['buffer']['unlock']();});}),_0x9614e1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x9614e1,'merge'),{'priority':'high'}),_0x9614e1['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x46f109,_0x52bd99,_0x1ce223)=>{_0x1ce223['options']['showSuggestionHighlights']&&De(_0x9614e1,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x46f109,_0x52bd99,_0x1ce223);},{'priority':'high'}),_0x9614e1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x30f5e3,_0x163d66,_0x471fa9)=>{const _0x54a73b=_0x471fa9['mapper']['markerNameToElements'](_0x163d66['markerName']);if(_0x54a73b){for(const _0x281d96 of _0x54a73b)_0x281d96['is']('uiElement')&&(_0x471fa9['mapper']['unbindElementFromMarkerName'](_0x281d96,_0x163d66['markerName']),_0x471fa9['writer']['remove'](_0x281d96));}},{'priority':'high'});}}class W extends _0x2a6979{['afterInit'](){const _0x362b46=this['editor'];if(!_0x362b46['plugins']['has']('ListEditing'))return;const _0xbe71f0=_0x362b46['locale'],_0x175dd1=_0x362b46['plugins']['get']('TrackChangesEditing'),_0x52977a=_0x362b46['plugins']['has']('TodoListEditing'),_0x2b5ef6=!!_0x362b46['config']['get']('list.multiBlock');function _0x2444ea(_0x2de10a){return{'type':'format','content':''+c(_0xbe71f0,'*Set\x20format:*\x20%0',_0x2de10a)};}function _0x2ff7ae(_0x5d9a0b){return{'type':'format','content':''+c(_0xbe71f0,'*Remove\x20format:*\x20%0',_0x5d9a0b)};}_0x175dd1['enableDefaultAttributesIntegration']('numberedList'),_0x175dd1['enableDefaultAttributesIntegration']('bulletedList'),_0x175dd1['enableDefaultAttributesIntegration']('customNumberedList'),_0x175dd1['enableDefaultAttributesIntegration']('customBulletedList'),_0x175dd1['enableDefaultAttributesIntegration']('indentList'),_0x175dd1['enableDefaultAttributesIntegration']('outdentList'),_0x175dd1['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x175dd1['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x175dd1['registerBlockAttribute']('listItemId'),_0x175dd1['registerBlockAttribute']('listType'),_0x175dd1['registerBlockAttribute']('listIndent'),_0x2b5ef6&&(_0x175dd1['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x175dd1['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x52977a&&(_0x175dd1['enableDefaultAttributesIntegration']('todoList'),_0x175dd1['enableDefaultAttributesIntegration']('checkTodoList'),_0x175dd1['registerBlockAttribute']('todoListChecked'),_0x175dd1['descriptionFactory']['registerDescriptionCallback'](_0x244e07=>{const {data:_0x32780a}=_0x244e07;if(_0x32780a&&'todoListChecked'==_0x32780a['key'])return{'type':'format','content':_0x32780a['newValue']?c(_0xbe71f0,'*Check\x20item*'):c(_0xbe71f0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3fb41e=>{if(_0x3fb41e['batch']['isUndo'])return!0x1;let _0x2e9399=!0x1;const _0x33192b=_0x175dd1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x208d62=>'todoListChecked'===_0x175dd1['_getAttributeKey'](_0x208d62));for(const _0x2274df of _0x33192b){'todo'!=_0x2274df['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x175dd1['_findSuggestions'](_0x2274df['getFirstRange'](),'attribute')['find'](_0x3ce6cb=>'listType'===_0x175dd1['_getAttributeKey'](_0x3ce6cb['suggestion']))||(_0x3fb41e['removeMarker'](_0x2274df['getFirstMarker']()),_0x2e9399=!0x0));}return _0x2e9399;})),_0x175dd1['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0xbe71f0,'FORMAT_INDENT'));const _0x50c931={'type':'format','content':''};_0x175dd1['descriptionFactory']['registerDescriptionCallback'](_0x4372b5=>{const {data:_0x537f02}=_0x4372b5;if(!_0x537f02||'listType'!=_0x537f02['key'])return;let _0x16408c=_0x4372b5['head'];for(;_0x16408c;){if(_0x16408c['data']&&(('listStyle'==_0x16408c['data']['key']||'listMarkerStyle'==_0x16408c['data']['key'])&&(_0x16408c['data']['newValue']&&'default'!=_0x16408c['data']['newValue']||'default'!=_0x16408c['data']['oldValue']&&!_0x537f02['newValue'])||!_0x2b5ef6&&_0x16408c['data']['key']==u))return _0x50c931;_0x16408c=_0x16408c['next'];}if(null==_0x537f02['newValue'])switch(_0x537f02['oldValue']){case'bulleted':return _0x2ff7ae(c(_0xbe71f0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ff7ae(c(_0xbe71f0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ff7ae(c(_0xbe71f0,'ELEMENT_TODO_LIST'));}switch(_0x537f02['newValue']){case'bulleted':return _0x2444ea(c(_0xbe71f0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2444ea(c(_0xbe71f0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2444ea(c(_0xbe71f0,'ELEMENT_TODO_LIST'));}}),_0x175dd1['descriptionFactory']['registerDescriptionCallback'](_0x121f01=>{const {data:_0x2008e8}=_0x121f01;if(_0x2008e8&&'listIndent'==_0x2008e8['key'])return null==_0x2008e8['newValue']||null==_0x2008e8['oldValue']&&0x0==_0x2008e8['newValue']?_0x50c931:void 0x0;}),_0x175dd1['descriptionFactory']['registerDescriptionCallback'](_0x208ba7=>{if('attribute'!=_0x208ba7['type'])return;const {data:_0x4ea4a2}=_0x208ba7;if(!_0x4ea4a2||'listItemId'!=_0x4ea4a2['key'])return;const _0x1f90a1=Te(_0x208ba7);return'newValue'==_0x1f90a1?{'type':'format','content':c(_0xbe71f0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1f90a1?{'type':'format','content':c(_0xbe71f0,'*Split:*\x20list\x20item')}:_0x50c931;}),_0x362b46['model']['document']['registerPostFixer'](_0x31caf0=>this['listItemIdFixer'](_0x31caf0)),_0x362b46['model']['document']['registerPostFixer'](_0x47a220=>this['noTrackChangesFixer'](_0x47a220)),_0x362b46['model']['document']['on']('change:data',(_0x1ab065,_0x3e1279)=>{if(_0x3e1279['isUndo']||!_0x3e1279['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x7cae3){if(_0x7cae3['batch']['isUndo']||!_0x7cae3['batch']['isLocal'])return!0x1;let _0x3f9fe2=!0x1;const _0x1b32c5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c6f5a=>_0x3c6f5a['data']&&'listItemId'==_0x3c6f5a['data']['key'])['filter'](_0x4ea976=>_0x4ea976['data']['newValue']&&_0x4ea976['data']['oldValue']);for(const _0x268c31 of _0x1b32c5)Te(_0x268c31)||(_0x7cae3['removeMarker'](_0x268c31['getFirstMarker']()),_0x3f9fe2=!0x0);return _0x3f9fe2;}['noTrackChangesFixer'](_0x4d2f72){if(_0x4d2f72['batch']['isUndo']||!_0x4d2f72['batch']['isLocal'])return!0x1;const _0x2a2ffa=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2a2ffa['trackChangesCommand']['value'])return!0x1;let _0x3fe126=!0x1;const _0x511155=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x144e8b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x53fd09=>'attribute'==_0x53fd09['type'])['filter'](_0x4ac063=>_0x511155['includes'](_0x4ac063['attributeKey']));if(0x0==_0x144e8b['length'])return _0x3fe126;for(const _0x1c525d of _0x144e8b){const _0x417f35=_0x2a2ffa['_findSuggestions'](_0x1c525d['range'],'attribute')['filter'](_0x5f54f7=>!_0x5f54f7['meta']['isNextTo'])['map'](_0x7947ac=>_0x7947ac['suggestion'])['filter'](_0x10bfef=>{const _0x495738=_0x2a2ffa['_getAttributeKey'](_0x10bfef);return _0x511155['includes'](_0x495738);});if(_0x417f35['length']){for(const _0x5b49c9 of _0x417f35)_0x4d2f72['removeMarker'](_0x5b49c9['getFirstMarker']());_0x3fe126=!0x0;}}return _0x3fe126;}['assureChains'](){const _0x2f11fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bb49b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x448a9a;const _0x45acb7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x570428=>{if(_0x570428['data']['oldRange']||!_0x570428['data']['newRange'])return null;if(!_0x570428['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xdaf151}=_0x2f11fd['_splitMarkerName'](_0x570428['name']);if(!_0x2f11fd['hasSuggestion'](_0xdaf151))return null;const _0x4d27b0=_0x2f11fd['getSuggestion'](_0xdaf151);return _0x2bb49b['includes'](_0x4d27b0['data']['key']);})['map'](_0x5b4c16=>{const {id:_0x507c6b}=_0x2f11fd['_splitMarkerName'](_0x5b4c16['name']),_0x1cc485=_0x2f11fd['getSuggestion'](_0x507c6b);return _0x448a9a=_0x1cc485['attributes']['groupId'],_0x1cc485['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x45acb7['size'])return;const _0xc356d8=_0x2f11fd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x63a10f=>'attribute'==_0x63a10f['type']&&_0x63a10f['data']&&_0x2bb49b['includes'](_0x63a10f['data']['key'])&&_0x63a10f['attributes']['groupId']!=_0x448a9a)['map'](_0x40f95f=>({'listItem':_0x40f95f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x40f95f['attributes']['groupId']})),_0x140014=new Set();for(const {groupId:_0x5979af,listItem:_0x3520a4}of _0xc356d8)_0x45acb7['has'](_0x3520a4)&&_0x140014['add'](_0x5979af);for(const _0x112ed2 of _0x2f11fd['getSuggestions']())_0x140014['has'](_0x112ed2['attributes']['groupId'])&&_0x112ed2['setAttribute']('groupId',_0x448a9a);}['_supportLegacySuggestions'](){const _0x43e5f4=this['editor'],_0x67e2b3=_0x43e5f4['locale'],_0x2af6a0=_0x43e5f4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2af6a0['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xfedcb4,_0xbea762){const _0x2adceb=[];for(let _0x1988c7 of _0xfedcb4)_0x1988c7['start']['nodeAfter']===_0x1988c7['end']['parent']&&(_0x1988c7=_0x43e5f4['model']['createRange'](_0x43e5f4['model']['createPositionAt'](_0x1988c7['start']['nodeAfter'],0x0))),_0x2adceb['push'](_0x1988c7);_0x43e5f4['model']['change'](_0x56ecc7=>{const _0x187fb5=_0x43e5f4['model']['document']['selection'],_0x2dd113=Array['from'](_0x187fb5['getRanges']())['map'](_0x4fcd2a=>_0x444cae['fromRange'](_0x4fcd2a));_0x56ecc7['setSelection'](_0x2adceb),_0x43e5f4['commands']['get'](_0xbea762['commandName'])['refresh'](),_0xbea762['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x43e5f4['execute'](_0xbea762['commandName'],..._0xbea762['commandParams']),_0x56ecc7['setSelection'](_0x2dd113);for(const _0xae50ee of _0x2dd113)_0xae50ee['detach']();});}),_0x2af6a0['descriptionFactory']['registerElementLabel'](function(_0x93614c){const _0x4e0085=!_0x43e5f4['model']['schema']['isObject'](_0x93614c),_0x55469c=_0x93614c['previousSibling'],_0x1d7b8d=_0x93614c['nextSibling'],_0x516812=_0x93614c['getAttribute']('listItemId'),_0xe49d0e=!_0x55469c||_0x55469c['getAttribute']('listItemId')!==_0x516812,_0x35e1b9=!_0x1d7b8d||_0x1d7b8d['getAttribute']('listItemId')!==_0x516812;return _0x4e0085&&Boolean(_0x516812)&&_0xe49d0e&&_0x35e1b9;},_0x4b31f8=>c(_0x67e2b3,'ELEMENT_LIST_ITEM',_0x4b31f8));}['_registerLegacyDescription'](){const _0x1dc99b=this['editor'],_0xb1b353=_0x1dc99b['locale'];function _0x4ce9dd(_0x4ef0d2){const _0x782276=_0x1dc99b['commands']['get']('bulletedList')['value'],_0x3126f5=_0x1dc99b['commands']['get']('numberedList')['value'];return'numberedList'===_0x4ef0d2?_0x782276:_0x3126f5;}_0x1dc99b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x41fb8f){if('formatBlock'!=_0x41fb8f['type'])return;const {data:_0x11b5c3}=_0x41fb8f;if(!_0x11b5c3)return;let _0x16f3f0,_0x1f7ca3,_0x4c77cc,_0x2592c4;switch(_0x11b5c3['commandName']){case'bulletedList':_0x4c77cc=_0x11b5c3['commandParams'][0x0]['forceValue'],_0x2592c4=_0x4ce9dd(_0x11b5c3['commandName']),_0x16f3f0=_0x4c77cc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2592c4&&_0x1dc99b['config']['get']('list.multiBlock')||(_0x16f3f0='*Change\x20to:*\x20%0'),_0x1f7ca3={'type':'format','content':c(_0xb1b353,_0x16f3f0,c(_0xb1b353,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4c77cc=_0x11b5c3['commandParams'][0x0]['forceValue'],_0x2592c4=_0x4ce9dd(_0x11b5c3['commandName']),_0x16f3f0=_0x4c77cc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2592c4&&_0x1dc99b['config']['get']('list.multiBlock')||(_0x16f3f0='*Change\x20to:*\x20%0'),_0x1f7ca3={'type':'format','content':c(_0xb1b353,_0x16f3f0,c(_0xb1b353,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x16f3f0='*Indent:*\x20%0',_0x1f7ca3={'type':'format','content':c(_0xb1b353,_0x16f3f0,c(_0xb1b353,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x16f3f0=function(_0x3da097){const _0x56fcb4=_0x3da097['getFirstRange']();let _0x1045a8=_0x56fcb4['start']['nodeAfter'];for(;_0x1045a8&&_0x56fcb4['containsItem'](_0x1045a8);){if(_0x1045a8['getAttribute']('listIndent')>0x0)return!0x1;_0x1045a8=_0x1045a8['nextSibling'];}return!0x0;}(_0x41fb8f)?c(_0xb1b353,'*Format:*\x20remove\x20from\x20%0',c(_0xb1b353,function(_0x1c1ef6){return'ELEMENT_'+_0x1c1ef6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x41fb8f))):c(_0xb1b353,'*Outdent:*\x20%0',c(_0xb1b353,'ELEMENT_LIST_ITEM')),_0x1f7ca3={'type':'format','content':_0x16f3f0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x11b5c3['multipleBlocks']&&(_0x16f3f0='*Merge:*\x20%0',_0x1f7ca3={'type':'deletion','content':c(_0xb1b353,_0x16f3f0,c(_0xb1b353,'ELEMENT_LIST_ITEM'))});}return _0x1f7ca3;});}}function Te(_0x3240a1){let _0x4c7276=_0x3240a1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4c7276;){const _0x55e3c5=_0x4c7276['getAttribute']('listItemId');if(!_0x55e3c5)return!0x1;if(_0x55e3c5==_0x3240a1['data']['newValue'])return'newValue';if(_0x55e3c5==_0x3240a1['data']['oldValue'])return'oldValue';_0x4c7276=_0x4c7276['previousSibling'];}return!0x1;}class Se extends _0x2a6979{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3e4011=this['editor']['config']['get']('list.properties'),_0x403686=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e4011['styles']&&(_0x403686['enableDefaultAttributesIntegration']('listStyle'),_0x403686['registerBlockAttribute']('listStyle')),_0x3e4011['reversed']&&(_0x403686['enableDefaultAttributesIntegration']('listReversed'),_0x403686['registerBlockAttribute']('listReversed')),_0x3e4011['startIndex']&&(_0x403686['enableDefaultAttributesIntegration']('listStart'),_0x403686['registerBlockAttribute']('listStart'));const _0xadfd6b={'type':'format','content':''};_0x403686['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4f8e40=this['editor']['locale'];_0x403686['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4f8e40,'FORMAT_LIST_REVERSED')),_0x403686['descriptionFactory']['registerDescriptionCallback'](_0x593056=>{const {data:_0x451d9a}=_0x593056;if(_0x451d9a&&'listReversed'==_0x451d9a['key'])return null==_0x451d9a['newValue']||0x0==_0x451d9a['newValue']&&null==_0x451d9a['oldValue']?_0xadfd6b:void 0x0;}),_0x403686['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4f8e40,'FORMAT_LIST_START')),_0x403686['descriptionFactory']['registerDescriptionCallback'](_0x401a98=>{const {data:_0x36e630}=_0x401a98;if(_0x36e630&&'listStart'==_0x36e630['key'])return null==_0x36e630['newValue']||0x1==_0x36e630['newValue']&&null==_0x36e630['oldValue']?_0xadfd6b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x6dce93=>{if(_0x6dce93['batch']['isUndo'])return!0x1;let _0x591c7e=!0x1;const _0x53394d=_0x403686['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d666a=>{const _0x5814eb=_0x403686['_getAttributeKey'](_0x3d666a);return'listStart'==_0x5814eb||'listReversed'==_0x5814eb;});for(const _0x4f1010 of _0x53394d){const _0x19fbbf=_0x4f1010['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x19fbbf||'customNumbered'==_0x19fbbf)continue;_0x403686['_findSuggestions'](_0x4f1010['getFirstRange'](),'attribute')['find'](_0x379ad7=>'listType'==_0x403686['_getAttributeKey'](_0x379ad7['suggestion']))||(_0x6dce93['removeMarker'](_0x4f1010['getFirstMarker']()),_0x591c7e=!0x0);}return _0x591c7e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1b06fb){const _0x3cdbb4=this['editor']['locale'],{data:_0x12ceb6}=_0x1b06fb,_0x4ecf25={'type':'format','content':''};if(!_0x12ceb6||'listStyle'!=_0x12ceb6['key'])return;if(!_0x12ceb6['oldValue'])return'default'==_0x12ceb6['newValue']?_0x4ecf25:{'type':'format','content':''+c(_0x3cdbb4,'*Set\x20format:*\x20%0',c(_0x3cdbb4,this['_getTranslationKeyForListStyle'](_0x12ceb6['newValue'])))};if(!_0x12ceb6['newValue']){if('default'==_0x12ceb6['oldValue'])return _0x4ecf25;let _0x756a31=_0x1b06fb['head'];for(;_0x756a31;){if(_0x756a31['data']&&'listType'==_0x756a31['data']['key']&&_0x756a31['data']['newValue'])return _0x4ecf25;_0x756a31=_0x756a31['next'];}return{'type':'format','content':''+c(_0x3cdbb4,'*Remove\x20format:*\x20%0',c(_0x3cdbb4,this['_getTranslationKeyForListStyle'](_0x12ceb6['oldValue'])))};}if('default'!=_0x12ceb6['newValue'])return{'type':'format','content':''+c(_0x3cdbb4,'*Set\x20format:*\x20%0',c(_0x3cdbb4,this['_getTranslationKeyForListStyle'](_0x12ceb6['newValue'])))};let _0x559437=_0x1b06fb['head'];for(;_0x559437;){if(_0x559437['data']&&'listType'==_0x559437['data']['key']&&_0x559437['data']['newValue']&&_0x559437['data']['oldValue'])return _0x4ecf25;_0x559437=_0x559437['next'];}return{'type':'format','content':c(_0x3cdbb4,'*Set\x20format:*\x20%0',c(_0x3cdbb4,'ELEMENT_'+_0x1b06fb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2c3797=this['editor'],_0x24d35e=_0x2c3797['locale'];_0x2c3797['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2751ed=>{if('formatBlock'!=_0x2751ed['type'])return;const {data:_0x3e6b7f}=_0x2751ed;if(!_0x3e6b7f)return;let _0x2701a3,_0x4e261f;switch(_0x3e6b7f['commandName']){case'listStyle':_0x2701a3='*Change\x20to:*\x20%0',_0x4e261f={'type':'format','content':c(_0x24d35e,_0x2701a3,c(_0x24d35e,this['_getTranslationKeyForListStyle'](_0x3e6b7f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2701a3=_0x3e6b7f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4e261f={'type':'format','content':c(_0x24d35e,_0x2701a3)};break;case'listStart':_0x2701a3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e261f={'type':'format','content':c(_0x24d35e,_0x2701a3,_0x3e6b7f['commandParams'][0x0]['startIndex'])};}return _0x4e261f;});}['_getTranslationKeyForListStyle'](_0x1c015f){return'ELEMENT_'+function(_0x582b91){if(_e['includes'](_0x582b91))return'bulleted';if(Re['includes'](_0x582b91))return'numbered';return null;}(_0x1c015f)['toUpperCase']()+'_LIST_'+_0x1c015f['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2a6979{['afterInit'](){const _0x55df8d=this['editor'];_0x55df8d['commands']['get']('emoji')&&_0x55df8d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x2a6979{static get['requires'](){return[_0x1955c0];}['init'](){const _0xe5aafc=this['editor'],_0x5de2e7=_0xe5aafc['plugins']['get']('TrackChangesEditing'),_0x363bd8=_0xe5aafc['commands']['get']('enter');_0x5de2e7['enableCommand']('enter',()=>{_0xe5aafc['model']['change'](_0x23535d=>{const _0x47679e=_0xe5aafc['model']['document']['selection'],_0xb19f8e=_0x47679e['getFirstPosition'](),_0xb6fa9b=_0x444cae['fromRange'](_0x47679e['getFirstRange']());if(_0x363bd8['enterBlock'](_0x23535d)){const _0x29f8eb=_0xe5aafc['model']['createPositionAt'](_0xb19f8e['parent']['nextSibling'],0x0),_0x38d279=_0x23535d['createRange'](_0xb19f8e,_0x29f8eb);_0x5de2e7['markInsertion'](_0x38d279);}else _0x23535d['setSelection'](_0x23535d['createRange'](_0xb6fa9b['end']));_0xb6fa9b['detach'](),_0x363bd8['fire']('afterExecute',{'writer':_0x23535d});});}),_0xe5aafc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xe5aafc,'split'),{'priority':'high'}),_0xe5aafc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x56c534,_0x51634a,_0x5d9723)=>{const _0x10195f=_0x5d9723['mapper']['markerNameToElements'](_0x51634a['markerName']);if(_0x10195f){for(const _0x5b5f09 of _0x10195f)_0x5b5f09['hasClass']('ck-suggestion-marker-split')&&(_0x5d9723['mapper']['unbindElementFromMarkerName'](_0x5b5f09,_0x51634a['markerName']),_0x5d9723['writer']['remove'](_0x5b5f09));}},{'priority':'high'}),_0xe5aafc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xef35ef,_0x53e558,_0x1192cf)=>{_0x1192cf['options']['showSuggestionHighlights']&&De(_0xe5aafc,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xef35ef,_0x53e558,_0x1192cf);},{'priority':'high'});}}class Z extends _0x2a6979{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xabceff=this['editor']['plugins']['get']('TrackChangesEditing');_0xabceff['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xabceff['enableCommand']('findNext'),_0xabceff['enableCommand']('findPrevious'),_0xabceff['enableCommand']('replace'),_0xabceff['enableCommand']('replaceAll');}['handleFindCommand'](_0x34e6db,_0x17668b,_0x49dd98={}){const _0x3b28d8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x34e6db(_0x3e55f0=>{let _0x54fae0=('string'==typeof _0x17668b?_0x3b28d8['findByTextCallback'](_0x17668b,_0x49dd98):_0x17668b)(_0x3e55f0);Array['isArray'](_0x54fae0)&&(_0x54fae0={'results':_0x54fae0,'searchText':'string'==typeof _0x17668b?_0x17668b:''});const _0xaae6f1=_0x54fae0['results']['filter'](_0x100896=>!0x1===this['_isInDeletionRange'](_0x100896,_0x3e55f0['item']));return{..._0x54fae0,'results':_0xaae6f1};},_0x49dd98);}['_isInDeletionRange'](_0x4e5413,_0x25d28a){const _0xb7c77c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25d28a,_0x4e5413['start']),this['editor']['model']['createPositionAt'](_0x25d28a,_0x4e5413['end']));for(const _0x56ca4a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xb7c77c['getIntersection'](_0x56ca4a['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x2a6979{['afterInit'](){const _0x190289=this['editor']['locale'],_0x46c288=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x420710,commandName:_0xb0610}of eo)this['editor']['plugins']['has'](_0x420710)&&(_0x46c288['enableDefaultAttributesIntegration'](_0xb0610),_0x46c288['registerInlineAttribute'](_0xb0610));_0x46c288['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x190289,'FORMAT_FONT_SIZE')),_0x46c288['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x190289,'FORMAT_FONT_FAMILY')),_0x46c288['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x190289,'FORMAT_FONT_COLOR')),_0x46c288['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x190289,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e7dbc=this['editor'],_0x342882=_0x5e7dbc['locale'];_0x5e7dbc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa0c7dd=>{const _0x49cd9f=_0x342882['t'];if('formatInline'!=_0xa0c7dd['type'])return;const {data:_0x2790c7}=_0xa0c7dd;if(null!=_0x2790c7){if('fontSize'==_0x2790c7['commandName']){const _0x5ed46f=_0x2790c7['commandParams'][0x0]['value'];if(_0x5ed46f){const _0x3bb5f5=_0x49cd9f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5ecd07=>_0x5ecd07['model']==_0x5ed46f)['title'])['toLowerCase']();return{'type':'format','content':c(_0x342882,'*Set\x20font\x20size:*\x20%0',_0x3bb5f5)};}return{'type':'format','content':c(_0x342882,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2790c7['commandName']){const _0x170b8f=_0x2790c7['commandParams'][0x0]['value'];return _0x170b8f?{'type':'format','content':c(_0x342882,'*Set\x20font\x20family:*\x20%0',_0x170b8f)}:{'type':'format','content':c(_0x342882,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2790c7['commandName']){const _0x30f890=_0x2790c7['commandParams'][0x0]['value'];if(_0x30f890){const _0x4a11cb=_0x383da2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c5e31=>_0x5c5e31['model']==_0x30f890);let _0x48f122=_0x30f890,_0x17d9c7='';return _0x4a11cb&&(_0x48f122=_0x4a11cb['label'],_0x17d9c7=_0x49cd9f(_0x48f122)['toLowerCase']()),{'type':'format','content':c(_0x342882,'*Set\x20font\x20color:*\x20%0',_0x17d9c7)['trim'](),'color':{'value':_0x30f890,'title':_0x17d9c7||_0x48f122}};}return{'type':'format','content':c(_0x342882,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2790c7['commandName']){const _0x21c17a=_0x2790c7['commandParams'][0x0]['value'];if(_0x21c17a){const _0x8026be=_0x383da2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3c608b=>_0x3c608b['model']==_0x21c17a);let _0x501734=_0x21c17a,_0x49bf05='';return _0x8026be&&(_0x501734=_0x8026be['label'],_0x49bf05=_0x49cd9f(_0x501734)['toLowerCase']()),{'type':'format','content':c(_0x342882,'*Set\x20font\x20background\x20color:*\x20%0',_0x49bf05)['trim'](),'color':{'value':_0x21c17a,'title':_0x49bf05||_0x501734}};}return{'type':'format','content':c(_0x342882,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x2a6979{['afterInit'](){const _0x470d87=this['editor'],_0x4a0dc3=_0x470d87['plugins']['get']('TrackChangesEditing'),_0x2df87b=_0x470d87['commands']['get']('copyFormat'),_0x31e989=_0x470d87['commands']['get']('pasteFormat');_0x2df87b&&_0x31e989&&(_0x4a0dc3['enableDefaultAttributesIntegration']('pasteFormat'),_0x4a0dc3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x17c1f9=this['editor'],_0x35df40=_0x17c1f9['locale'];_0x17c1f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cbd7f=>{if('formatBlock'!=_0x1cbd7f['type']&&'formatInline'!=_0x1cbd7f['type'])return;const {data:_0x32f417}=_0x1cbd7f;if(_0x32f417&&'pasteFormat'===_0x32f417['commandName']){const _0x15ee48=[],_0x412f84=_0x32f417['commandParams'][0x0];for(const [_0x1b6959,_0x2390d4]of Object['entries'](_0x412f84))_0x15ee48['push'](ro(_0x17c1f9,_0x1b6959,_0x2390d4));return _0x15ee48['length']?{'type':'format','content':c(_0x35df40,'*Set\x20format\x20to:*\x20%0',_0x15ee48['join'](',\x20'))}:{'type':'format','content':c(_0x35df40,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x48b9c5,_0xce74f,_0x4ae431){const _0x22d32f=_0x48b9c5['locale']['t'],_0xe99a34=_0xce74f['split'](/(?=[A-Z])/)['join']('\x20'),_0x2d310d=_0x22d32f(_0xe99a34['charAt'](0x0)['toUpperCase']()+_0xe99a34['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4ae431)return _0x2d310d;if('fontColor'===_0xce74f||'fontBackgroundColor'===_0xce74f){const _0x316a2c=_0x383da2(_0x48b9c5['config']['get']('fontColor.colors'))['find'](_0x1388d4=>_0x1388d4['model']==_0x4ae431);return _0x2d310d+'\x20('+(_0x316a2c?_0x22d32f(_0x316a2c['label'])['toLowerCase']():_0x4ae431)+')';}if('fontSize'===_0xce74f&&isNaN(parseFloat(_0x4ae431))){const _0xbfa793=_0x48b9c5['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x48b9c5['config']['get']('fontSize.options'))['find'](_0x128a79=>_0x128a79['model']==_0x4ae431);return _0x2d310d+'\x20('+(_0xbfa793?_0x22d32f(_0xbfa793['title'])['toLowerCase']():_0x4ae431)+')';}return _0x2d310d+'\x20('+_0x4ae431+')';}class nt extends _0x2a6979{['_headingOptions'];['afterInit'](){const _0x3cd0fc=this['editor'];if(!_0x3cd0fc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3cd0fc['config']['get']('heading.options');const _0x168d20=_0x3cd0fc['locale'],_0x352386=_0x3cd0fc['plugins']['get']('TrackChangesEditing');_0x352386['enableDefaultAttributesIntegration']('heading');for(const _0x47ecee of this['_headingOptions'])'paragraph'!=_0x47ecee['model']&&_0x352386['descriptionFactory']['registerElementLabel'](_0x47ecee['model'],_0x4bbcc1=>{const _0xbb7b98=this['_getHeadingLevel'](_0x47ecee['model']);return null!==_0xbb7b98?_0x145a04(_0x4bbcc1,_0xbb7b98):_0x1b57f4(_0x4bbcc1,_0x47ecee['title']);});function _0x145a04(_0x29a888,_0x2425bf){return c(_0x168d20,'ELEMENT_HEADING',[_0x29a888,_0x2425bf]);}function _0x1b57f4(_0x2d80ff,_0xc3d1ad){return c(_0x168d20,'ELEMENT_HEADING_CUSTOM',[_0x2d80ff,_0xc3d1ad]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29fc1b=this['editor'],_0x1dd378=_0x29fc1b['locale'];function _0x5b22f4(_0x49019c,_0x48fc64){return c(_0x1dd378,'ELEMENT_HEADING_CUSTOM',[_0x49019c,_0x48fc64]);}_0x29fc1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ba737=>{if('formatBlock'!=_0x4ba737['type'])return;const {data:_0x66adcb}=_0x4ba737;if(_0x66adcb&&'heading'==_0x66adcb['commandName']){const _0x4fd09d=_0x66adcb['commandParams'][0x0]['value'],_0x2d0406=this['_getHeadingLevel'](_0x4fd09d);if(null!==_0x2d0406)return{'type':'format','content':c(_0x1dd378,'*Change\x20to:*\x20%0',(_0x4863db=0x1,_0x5ce9cd=_0x2d0406,c(_0x1dd378,'ELEMENT_HEADING',[_0x4863db,_0x5ce9cd])))};const _0x1546eb=this['_headingOptions']['find'](_0x35cb7a=>_0x35cb7a['model']===_0x4fd09d)['title'];return{'type':'format','content':c(_0x1dd378,'*Change\x20to:*\x20%0',_0x5b22f4(0x1,_0x1546eb))};}var _0x4863db,_0x5ce9cd;});}['_getHeadingLevel'](_0x43451c){const _0x29fa0f=_0x43451c['match'](/^heading(\d+)/);if(_0x29fa0f)return _0x29fa0f[0x1];const _0x218e24=this['_headingOptions']?.['find'](_0x3f34a1=>_0x3f34a1['model']==_0x43451c);if(_0x218e24&&_0x218e24['view']){const _0x371e60=_0x218e24['view'],_0x173d9a=(_0x371e60['name']??_0x371e60)['match'](/^h(\d+)/);if(_0x173d9a)return _0x173d9a[0x1];}return null;}}class it extends _0x2a6979{['afterInit'](){const _0x37ac1e=this['editor'];if(!_0x37ac1e['plugins']['has']('HighlightEditing'))return;const _0x2f33e4=_0x37ac1e['plugins']['get']('TrackChangesEditing'),_0x2542b2=_0x37ac1e['locale'];_0x2f33e4['enableDefaultAttributesIntegration']('highlight'),_0x2f33e4['registerInlineAttribute']('highlight'),_0x2f33e4['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2542b2,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bd972=this['editor'],_0x2b0715=_0x4bd972['locale'];_0x4bd972['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59e29a=>{if('formatInline'!=_0x59e29a['type'])return;const {data:_0x2db563}=_0x59e29a;if(_0x2db563&&'highlight'==_0x2db563['commandName']){const _0x58b07e=_0x2b0715['t'],_0x293ebc=_0x2db563['commandParams'][0x0]['value'];if(_0x293ebc){const _0x417a56=_0x4bd972['config']['get']('highlight.options')['find'](_0x20a2f6=>_0x20a2f6['model']==_0x293ebc),_0x360781=_0x58b07e(_0x417a56['title'])['toLowerCase']();return{'type':'format','content':c(_0x2b0715,'*Set\x20highlight:*\x20%0',_0x360781),'color':{'value':_0x417a56['color'],'title':_0x417a56['title']}};}return{'type':'format','content':c(_0x2b0715,'*Remove\x20highlight*',c(_0x2b0715,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2a6979{['afterInit'](){const _0x58c6a3=this['editor'];if(!_0x58c6a3['plugins']['has']('HorizontalLineEditing'))return;_0x58c6a3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5bdb0f=_0x58c6a3['plugins']['get']('TrackChangesEditing'),_0x113215=_0x58c6a3['locale'];_0x5bdb0f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x41315e=>c(_0x113215,'ELEMENT_HORIZONTAL_LINE',_0x41315e)),_0x58c6a3['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x765893,{writer:_0x476bc8,options:_0x1f1a17})=>{if(!_0x1f1a17['showSuggestionHighlights'])return null;const _0x209588=_0x476bc8['createContainerElement']('div'),_0xb81f70=_0x476bc8['createEmptyElement']('hr');return _0x476bc8['addClass']('ck-horizontal-line',_0x209588),_0x476bc8['insert'](_0x476bc8['createPositionAt'](_0x209588,0x0),_0xb81f70),_0x209588;},'converterPriority':'high'});}}class ot extends _0x2a6979{['afterInit'](){const _0x1946b1=this['editor'];if(!_0x1946b1['plugins']['has']('HtmlEmbed'))return;const _0xde8268=_0x1946b1['plugins']['get']('TrackChangesEditing'),_0x1ed128=_0x1946b1['locale'];_0xde8268['descriptionFactory']['registerElementLabel']('rawHtml',_0x246de3=>c(_0x1ed128,'ELEMENT_HTML_EMBED',_0x246de3)),_0xde8268['enableDefaultAttributesIntegration']('htmlEmbed'),_0xde8268['registerBlockAttribute']('value'),_0xde8268['descriptionFactory']['registerDescriptionCallback'](_0x53772d=>{if('attribute'!=_0x53772d['type'])return;const {data:_0x1193d4}=_0x53772d;if(_0x1193d4&&'value'==_0x1193d4['key']&&_0x53772d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5c72ea=c(_0x1ed128,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1ed128,'*Change\x20%0\x20content*',_0x5c72ea)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54239e=this['editor'],_0x4fbee8=_0x54239e['locale'];_0x54239e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43f0fc=>{if('formatBlock'!=_0x43f0fc['type'])return;const {data:_0x4fef1c}=_0x43f0fc;if(_0x4fef1c&&'htmlEmbed'==_0x4fef1c['commandName']){const _0x2a8eeb=c(_0x4fbee8,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4fbee8,'*Change\x20%0\x20content*',_0x2a8eeb)};}});}}class rt extends _0x2a6979{['afterInit'](){const _0x260134=this['editor'];if(!_0x260134['plugins']['has']('ImageEditing'))return;const _0xac2adf=_0x260134['plugins']['get']('TrackChangesEditing'),_0x1696a0=_0x260134['plugins']['get']('ImageUtils'),_0x29679d=_0x260134['locale'];_0xac2adf['enableCommand']('insertImage'),_0xac2adf['descriptionFactory']['registerElementLabel']('imageBlock',_0x2093d4=>c(_0x29679d,'ELEMENT_IMAGE',_0x2093d4)),_0xac2adf['descriptionFactory']['registerElementLabel']('imageInline',_0x409321=>c(_0x29679d,'ELEMENT_INLINE_IMAGE',_0x409321)),_0xac2adf['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x29679d,'ELEMENT_CAPTION')),_0x260134['plugins']['has']('ImageUploadEditing')&&_0xac2adf['enableCommand']('uploadImage'),_0x260134['plugins']['has']('ImageBlockEditing')&&_0x260134['plugins']['has']('ImageInlineEditing')&&(_0xac2adf['enableCommand']('imageTypeInline',(_0x1c9e63,_0x239b3d)=>{const _0x3f19eb=_0x1696a0['getClosestSelectedImageElement'](_0x260134['model']['document']['selection']);_0x260134['model']['change'](()=>{_0xac2adf['markBlockFormat'](_0x3f19eb,{'commandName':'imageTypeInline','commandParams':[_0x239b3d]},[],'convertBlockImageToInline');});}),_0xac2adf['enableCommand']('imageTypeBlock',(_0x3f8a9a,_0x40b5a7)=>{_0x260134['model']['change'](_0x162967=>{let _0x3047a9=_0x1696a0['getClosestSelectedImageElement'](_0x260134['model']['document']['selection']),_0x3d69c4=_0x162967['createRangeOn'](_0x3047a9);const _0xb1d522=_0x144ce7['fromPosition'](_0x3d69c4['start'],'toPrevious'),_0x341875=_0x144ce7['fromPosition'](_0x3d69c4['end'],'toNext');_0xac2adf['forceDefaultExecution'](()=>_0x3f8a9a(_0x40b5a7)),_0x3047a9=_0x1696a0['getClosestSelectedImageElement'](_0x260134['model']['document']['selection']),_0x3d69c4=_0x162967['createRangeOn'](_0x3047a9);const _0x17ed1e=_0x162967['createRange'](_0xb1d522,_0x341875);_0xb1d522['detach'](),_0x341875['detach'](),_0xac2adf['markBlockFormat'](_0x3047a9,{'commandName':'imageTypeInline','commandParams':[_0x40b5a7]},[],'convertInlineImageToBlock'),_0x17ed1e['start']['isBefore'](_0x3d69c4['start'])&&_0xac2adf['markInsertion'](_0x162967['createRange'](_0x17ed1e['start'],_0x3d69c4['start']),'convertInlineImageToBlock'),_0x3d69c4['end']['isBefore'](_0x17ed1e['end'])&&_0xac2adf['markInsertion'](_0x162967['createRange'](_0x3d69c4['end'],_0x17ed1e['end']),'convertInlineImageToBlock');});}),_0xac2adf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xac2adf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xac2adf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xac2adf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xac2adf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xac2adf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5331cd])=>{const _0x505b6e=_0xac2adf['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2831cc=_0x5331cd['start'],_0x5c00e0=_0x5331cd['end'];const _0x12d470=_0x260134['model']['schema']['getNearestSelectionRange'](_0x2831cc,'backward'),_0x38ff07=_0x260134['model']['schema']['getNearestSelectionRange'](_0x5c00e0,'forward');_0x12d470['isCollapsed']&&(_0x2831cc=_0x12d470['start']),_0x38ff07['isCollapsed']&&(_0x5c00e0=_0x38ff07['end']),_0x505b6e([_0x260134['model']['createRange'](_0x2831cc,_0x5c00e0)]);}),_0xac2adf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x52b45d),_0xac2adf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x52b45d)),_0x260134['plugins']['has']('ImageCaptionEditing')&&(_0xac2adf['enableCommand']('toggleImageCaption',(_0x1b2c7d,_0x367609)=>{const _0x29949c=_0x260134['plugins']['get']('ImageCaptionUtils');let _0x5242c5=_0x1696a0['getClosestSelectedImageElement'](_0x260134['model']['document']['selection']),_0x3bd971=_0x29949c['getCaptionFromImageModelElement'](_0x5242c5);_0x260134['model']['change'](()=>{if(_0x3bd971)return void _0xac2adf['markDeletion'](_0x260134['model']['createRangeOn'](_0x3bd971));const _0x1263ea=_0x1696a0['isBlockImage'](_0x5242c5);_0x1b2c7d(_0x367609),_0x5242c5=_0x1696a0['getClosestSelectedImageElement'](_0x260134['model']['document']['selection']),_0x3bd971=_0x29949c['getCaptionFromImageModelElement'](_0x5242c5),_0xac2adf['markInsertion'](_0x260134['model']['createRangeOn'](_0x3bd971),_0x1263ea?null:'imageCaption');});}),_0xac2adf['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x52b45d));const _0xd4452d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x370ce7(_0x259aa7,_0x2a0d1a){const _0xa71a0=_0xd4452d['findIndex'](({type:_0x46d7ec,subType:_0x4e3a0c})=>_0x259aa7['type']==_0x46d7ec&&_0x259aa7['subType']==_0x4e3a0c),_0x5e73c5=_0xd4452d['findIndex'](({type:_0x9a3ef5,subType:_0x1ca18b})=>_0x2a0d1a['type']==_0x9a3ef5&&_0x2a0d1a['subType']==_0x1ca18b);if(_0xa71a0<0x0||_0x5e73c5<0x0)return!0x1;const _0x45fe9a=_0x259aa7['getFirstRange'](),_0x221fed=_0x2a0d1a['getFirstRange']();if((0x0==_0xa71a0||0x1==_0xa71a0)&&0x2==_0x5e73c5&&_0x45fe9a['isIntersecting'](_0x221fed))return!0x0;if(0x2==_0xa71a0&&0x3==_0x5e73c5){const _0x461512=_0xac2adf['_findSuggestions'](_0x45fe9a,'insertion')['filter'](({suggestion:_0x37fe5d,meta:_0xc91ac8})=>_0xc91ac8['isOwn']&&'convertInlineImageToBlock'==_0x37fe5d['subType']);if(_0x461512['length']>0x1&&_0x221fed['end']['isEqual'](_0x45fe9a['start']))return!0x0;if(0x1==_0x461512['length']&&(_0x45fe9a['start']['isEqual'](_0x221fed['end'])||_0x45fe9a['end']['isEqual'](_0x221fed['start'])))return!0x0;}if(0x3==_0xa71a0&&0x3==_0x5e73c5&&_0x45fe9a['start']['isBefore'](_0x221fed['start'])){const _0x11da7d=_0x45fe9a['end']['nodeAfter'],_0x134de9=_0x221fed['start']['nodeBefore'];return _0x1696a0['isBlockImage'](_0x11da7d)&&_0x11da7d===_0x134de9;}return!0x1;}function _0x52b45d(_0x427f7f,_0x494821){return _0x370ce7(_0x427f7f,_0x494821)?[_0x427f7f,_0x494821]:_0x370ce7(_0x494821,_0x427f7f)?[_0x494821,_0x427f7f]:null;}_0x260134['plugins']['has']('ImageResize')&&(_0xac2adf['enableDefaultAttributesIntegration']('resizeImage'),_0xac2adf['registerBlockAttribute']('resizedWidth'),_0xac2adf['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x29679d,'FORMAT_IMAGE_SIZE'))),_0x260134['plugins']['has']('ImageTextAlternativeEditing')&&(_0xac2adf['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xac2adf['registerBlockAttribute']('alt')),_0x260134['plugins']['has']('PictureEditing')&&(_0xac2adf['registerBlockAttribute']('sources'),_0xac2adf['descriptionFactory']['registerDescriptionCallback'](_0x20b0d2=>{if('attribute'!=_0x20b0d2['type'])return;const {data:_0x3df4c7}=_0x20b0d2;return _0x3df4c7&&'sources'==_0x3df4c7['key']?{'type':'format','content':''}:void 0x0;})),_0x260134['plugins']['has']('ImageSizeAttributes')&&(_0xac2adf['registerBlockAttribute']('width'),_0xac2adf['registerBlockAttribute']('height'),_0xac2adf['descriptionFactory']['registerDescriptionCallback'](_0x1ef8e9=>{if('attribute'!=_0x1ef8e9['type'])return;const {data:_0x257a3f}=_0x1ef8e9;return!_0x257a3f||'width'!=_0x257a3f['key']&&'height'!=_0x257a3f['key']?void 0x0:{'type':'format','content':''};})),_0xac2adf['descriptionFactory']['registerDescriptionCallback'](_0x562037=>{if(!!_0xd4452d['find'](({type:_0x3ab70c,subType:_0xc3dfff})=>_0x562037['type']==_0x3ab70c&&_0x562037['subType']==_0xc3dfff))return _0x562037['previous']?{}:void 0x0;}),_0xac2adf['descriptionFactory']['registerDescriptionCallback'](_0x1ac9bf=>{if('insertion'==_0x1ac9bf['type']||'deletion'==_0x1ac9bf['type']){const _0x511e85=_0x1ac9bf['getContainedElement']();if(_0x511e85&&_0x511e85['is']('element','caption'))return{'type':'insertion'==_0x1ac9bf['type']?'addObject':'removeObject','element':_0x511e85,'quantity':0x1};}}),_0xac2adf['descriptionFactory']['registerDescriptionCallback'](_0xfc45e7=>'formatBlock'==_0xfc45e7['type']&&'convertInlineImageToBlock'==_0xfc45e7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xfc45e7['type']&&'convertBlockImageToInline'==_0xfc45e7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xac2adf['descriptionFactory']['registerDescriptionCallback'](_0x361956=>{if('attribute'!=_0x361956['type'])return;const {data:_0x3da440}=_0x361956;if(!_0x3da440||'alt'!=_0x3da440['key'])return;const _0x583cf5=_0x3da440['newValue'];return _0x583cf5?{'type':'format','content':c(_0x29679d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x583cf5+'\x22')}:{'type':'format','content':c(_0x29679d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f26bd=this['editor'],_0x1d797f=_0x4f26bd['locale'];_0x4f26bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dee02=>{if('formatBlock'!=_0x2dee02['type']&&'formatInline'!=_0x2dee02['type'])return;const {data:_0xaf54e5}=_0x2dee02;if(_0xaf54e5){if('imageTextAlternative'==_0xaf54e5['commandName']){const _0x98655f=_0xaf54e5['commandParams'][0x0]['newValue'];return _0x98655f?{'type':'format','content':c(_0x1d797f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x98655f+'\x22')}:{'type':'format','content':c(_0x1d797f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xaf54e5['commandName']){const _0x2e433d=_0xaf54e5['commandParams'][0x0]['width'];return _0x2e433d?{'type':'format','content':c(_0x1d797f,'*Set\x20image\x20width:*\x20%0',_0x2e433d)}:{'type':'format','content':c(_0x1d797f,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2a6979{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3db3f0=this['editor']['locale'],_0x2652a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x2652a2['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2652a2['registerBlockAttribute']('src'),_0x2652a2['descriptionFactory']['registerDescriptionCallback'](_0x48a267=>{if('attribute'!=_0x48a267['type'])return;const {data:_0x4c8848}=_0x48a267;return _0x4c8848&&'src'==_0x4c8848['key']?_0x4c8848['newValue']&&_0x4c8848['oldValue']?{'type':'format','content':c(_0x3db3f0,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x37a87b=this['editor']['plugins']['get']('TrackChangesEditing');_0x37a87b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x37a87b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37a87b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x37a87b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7a9e65=this['editor'],_0x113100=_0x7a9e65['locale'];_0x7a9e65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x349a6f=>{if('formatBlock'!=_0x349a6f['type']&&'formatInline'!=_0x349a6f['type'])return;const {data:_0x3e3b72}=_0x349a6f;if(!_0x3e3b72||'replaceImageSource'!=_0x3e3b72['commandName'])return;return{'type':'format','content':c(_0x113100,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2a6979{['afterInit'](){const _0x10c68d=this['editor'];if(!_0x10c68d['plugins']['has']('ImageStyleEditing'))return;const _0x5ccb43=_0x10c68d['plugins']['get']('TrackChangesEditing'),_0x6202d5=_0x10c68d['plugins']['get']('ImageUtils'),_0x326b21={};_0x5ccb43['enableCommand']('imageStyle',(_0x2726c8,_0x517d76)=>{const _0x11e7c9=_0x10c68d['plugins']['get']('Users')['me'],_0xb582b3=_0x10c68d['commands']['get']('imageStyle');let _0x366bc8=_0x6202d5['getClosestSelectedImageElement'](_0x10c68d['model']['document']['selection']),_0x324242=_0x10c68d['model']['createRangeOn'](_0x366bc8),_0x1710f1=_0xb582b3['value'];if(_0x1710f1==_0x517d76['value'])return;const _0x536aec={'commandName':'imageStyle','commandParams':[_0x517d76],'formatGroupId':_0x1db959()};_0x10c68d['model']['change'](()=>{if(_0x5ccb43['getSuggestions']()['filter'](_0x45e486=>_0x45e486['isInContent']&&_0x11e7c9==_0x45e486['author']&&('formatBlock'==_0x45e486['type']||'formatInline'==_0x45e486['type'])&&('imageStylePreApply'==_0x45e486['subType']||'imageStylePostApply'==_0x45e486['subType'])&&_0x45e486['getFirstRange']()['isEqual'](_0x324242))['forEach'](_0x5a2c8a=>_0x5ccb43['discardSuggestion'](_0x5a2c8a['head'])),_0x366bc8=_0x6202d5['getClosestSelectedImageElement'](_0x10c68d['model']['document']['selection']),_0x324242=_0x10c68d['model']['createRangeOn'](_0x366bc8),_0xb582b3['refresh'](),_0x10c68d['commands']['get']('imageTypeInline')['refresh'](),_0x10c68d['commands']['get']('imageTypeBlock')['refresh'](),_0x1710f1=_0xb582b3['value'],_0x1710f1!=_0x517d76['value'])return _0x6202d5['isInlineImage'](_0x366bc8)&&_0xb582b3['shouldConvertImageType'](_0x517d76['value'],_0x366bc8)?(_0x2726c8({..._0x517d76,'setImageSizes':!0x1}),_0x366bc8=_0x6202d5['getClosestSelectedImageElement'](_0x10c68d['model']['document']['selection']),void _0x5ccb43['markBlockFormat'](_0x366bc8,{..._0x536aec,'commandReversedParams':[{'value':_0x1710f1||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x6202d5['isBlockImage'](_0x366bc8)?_0x5ccb43['markBlockFormat'](_0x366bc8,_0x536aec,[],'imageStylePostApply'):_0x5ccb43['markInlineFormat'](_0x324242,_0x536aec,'imageStylePostApply'));});});for(const _0x4aaab0 of _0x10c68d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x326b21[_0x4aaab0['name']]=_0x4aaab0['title']['toLowerCase']();_0x5ccb43['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5ccb43['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5ccb43['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5ccb43['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x140be4])=>{_0x6202d5['setImageNaturalSizeAttributes'](_0x140be4['getContainedElement']());}),_0x5ccb43['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x311abd,_0x242054)=>{_0x5ccb43['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x311abd,{'commandName':_0x242054['commandName'],'commandParams':_0x242054['commandReversedParams']});}),_0x5ccb43['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x512eb7,_0x4fae91){if(_0x14f64c(_0x512eb7,_0x4fae91))return[_0x512eb7,_0x4fae91];if(_0x14f64c(_0x4fae91,_0x512eb7))return[_0x4fae91,_0x512eb7];return null;});const _0x405a50=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x14f64c(_0x150759,_0x379a16){const _0x4d4df8=_0x405a50['findIndex'](({type:_0x19cc7f,subType:_0x59ec9c})=>_0x150759['type']==_0x19cc7f&&_0x150759['subType']==_0x59ec9c),_0x2fe87a=_0x405a50['findIndex'](({type:_0x28b8c0,subType:_0x566d17})=>_0x379a16['type']==_0x28b8c0&&_0x379a16['subType']==_0x566d17);if(_0x4d4df8<0x0||_0x2fe87a<0x0)return!0x1;const _0x3f7544=_0x150759['getFirstRange'](),_0x19a409=_0x379a16['getFirstRange']();if((0x0==_0x4d4df8||0x1==_0x4d4df8)&&0x2==_0x2fe87a&&_0x3f7544['isIntersecting'](_0x19a409))return!0x0;if(0x2==_0x4d4df8&&0x3==_0x2fe87a){const _0x2e5293=_0x5ccb43['_findSuggestions'](_0x3f7544,'insertion')['filter'](({suggestion:_0x41f732,meta:_0x3231b6})=>_0x3231b6['isOwn']&&'convertInlineImageToBlock'==_0x41f732['subType']);if(_0x2e5293['length']>0x1&&_0x19a409['end']['isEqual'](_0x3f7544['start']))return!0x0;if(0x1==_0x2e5293['length']&&(_0x3f7544['start']['isEqual'](_0x19a409['end'])||_0x3f7544['end']['isEqual'](_0x19a409['start'])))return!0x0;}if(0x3==_0x4d4df8&&0x3==_0x2fe87a&&_0x3f7544['start']['isBefore'](_0x19a409['start'])){const _0x272c3e=_0x3f7544['end']['nodeAfter'],_0xb5d051=_0x19a409['start']['nodeBefore'];return _0x6202d5['isBlockImage'](_0x272c3e)&&_0x272c3e===_0xb5d051;}return!0x1;}_0x10c68d['model']['document']['registerPostFixer'](()=>{let _0x1e3242=!0x1;const _0x598053=Array['from'](_0x10c68d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e90d8,data:_0x33daa9}of _0x598053){const {group:_0x137d8e,type:_0x31dd4f,subType:_0x510cfb,id:_0xd6c6fe}=_0x5ccb43['_splitMarkerName'](_0x3e90d8);if('suggestion'==_0x137d8e&&_0x5ccb43['hasSuggestion'](_0xd6c6fe)){if('formatBlock'==_0x31dd4f&&('imageStylePreApply'==_0x510cfb||'imageStylePostApply'==_0x510cfb)){const _0x40c922=_0x5ccb43['getSuggestion'](_0xd6c6fe);if(_0x33daa9['newRange']){const _0x560a1f=_0x40c922['getFirstRange']()['getContainedElement']();if(_0x6202d5['isBlockImage'](_0x560a1f))continue;_0x5ccb43['discardSuggestion'](_0x40c922),_0x1e3242=!0x0;}}if('insertion'==_0x31dd4f&&'imageCaption'==_0x510cfb&&!_0x33daa9['newRange']){const _0x501423=_0x5ccb43['getSuggestion'](_0xd6c6fe);_0x501423['next']&&_0x501423['next']['isInContent']&&(_0x5ccb43['discardSuggestion'](_0x501423['next']),_0x1e3242=!0x0);}}}return _0x1e3242;}),this['_registerLegacyDescription'](_0x326b21);}['_registerLegacyDescription'](_0x39b8ab){const _0x386d3c=this['editor'],_0x9e4161=_0x386d3c['locale'];_0x386d3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b37df=>{if('formatBlock'!=_0x2b37df['type']&&'formatInline'!=_0x2b37df['type'])return;const {data:_0x552692}=_0x2b37df;if(!_0x552692||'imageStyle'!=_0x552692['commandName'])return;const _0x3009fd=_0x552692['commandParams'][0x0]['value'];return _0x152290('side'===_0x3009fd?c(_0x9e4161,'FORMAT_SIDE_IMAGE'):_0x39b8ab[_0x3009fd]||_0x3009fd);function _0x152290(_0x3efad2){return{'type':'format','content':c(_0x9e4161,'*Format:*\x20%0',_0x3efad2)};}});}}class ut extends _0x2a6979{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1f7cbe){super(_0x1f7cbe),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5b196d=this['editor'],_0x3930d4=_0x5b196d['commands']['get']('importWord'),_0x279819=_0x5b196d['commands']['get']('trackChanges');_0x3930d4&&(_0x3930d4['on']('execute',(_0x2aab7c,[,_0x9af683])=>{this['_trackChangesValueDuringImport']=_0x279819['value'],_0x9af683['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3930d4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3930d4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x279819['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5b196d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x193785,_0x1c6fb6){const {suggestions:_0x596a20}=_0x1c6fb6,_0x363f0a=this['editor']['commands']['get']('trackChanges'),_0x3c2814=_0x363f0a['value'];this['_trackChangesValueDuringImport']!==_0x3c2814&&(_0x363f0a['execute'](),this['_trackChangesExecuted']=!0x0),_0x596a20&&_0x596a20['forEach'](({id:_0x5f4ef8,type:_0x4f37db,author:_0x180699,created_at:_0x5abd1f})=>{const _0x1ab99d={'id':_0x5f4ef8,'type':_0x4f37db,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x180699,'createdAt':_0x5abd1f?new Date(_0x5abd1f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1ab99d);});}}class ft extends _0x2a6979{['afterInit'](){const _0x455cf2=this['editor'],_0x332f2f=_0x455cf2['plugins']['get']('TrackChangesEditing');if(_0x455cf2['plugins']['has']('IndentEditing')&&(_0x332f2f['enableCommand']('indent'),_0x332f2f['enableCommand']('outdent')),_0x455cf2['plugins']['has']('IndentBlock')){for(const _0x43b122 of['indentBlock','outdentBlock'])_0x332f2f['enableDefaultAttributesIntegration'](_0x43b122);}const _0x1641f0=_0x455cf2['locale'];_0x332f2f['registerBlockAttribute']('blockIndent'),_0x332f2f['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x1641f0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b6ef4=this['editor'],_0x30a436=_0x3b6ef4['locale'],_0x522409=_0x3b6ef4['plugins']['get']('TrackChangesEditing');_0x522409['descriptionFactory']['registerDescriptionCallback'](_0x4ff9f3=>{if('formatBlock'!=_0x4ff9f3['type'])return;const {data:_0x2528eb}=_0x4ff9f3;if(!_0x2528eb)return;if('indentBlock'!=_0x2528eb['commandName']&&'outdentBlock'!=_0x2528eb['commandName'])return;const _0x152eec=_0x4ff9f3['getItems']()[0x0],_0x2ba775=_0x522409['descriptionFactory']['getItemLabel'](_0x152eec);return'indentBlock'==_0x2528eb['commandName']?{'type':'format','content':c(_0x30a436,'*Indent:*\x20%0',_0x2ba775)}:'outdentBlock'==_0x2528eb['commandName']?{'type':'format','content':c(_0x30a436,'*Outdent:*\x20%0',_0x2ba775)}:void 0x0;});}}class ht extends _0x2a6979{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2a6979{['afterInit'](){const _0x546dbd=this['editor'];if(!_0x546dbd['plugins']['has']('LinkEditing'))return;const _0x462003=_0x546dbd['plugins']['get']('TrackChangesEditing'),_0x20eb7b=_0x546dbd['commands']['get']('link');_0x462003['enableDefaultAttributesIntegration']('link'),_0x462003['enableDefaultAttributesIntegration']('unlink'),_0x462003['registerInlineAttribute']('linkHref');for(const _0x159432 of _0x20eb7b['manualDecorators'])_0x462003['registerInlineAttribute'](_0x159432['id']),_0x462003['descriptionFactory']['registerAttributeLabel'](_0x159432['id'],'link\x20('+_0x159432['label']['toLowerCase']()+')');_0x462003['descriptionFactory']['registerDescriptionCallback'](_0x4af115=>{if('attribute'!=_0x4af115['type'])return;const {data:_0x1f445f}=_0x4af115;if(!_0x1f445f||'linkHref'!=_0x1f445f['key'])return;const _0x25e681=_0x1f445f['newValue'],_0x53ddf8=_0x546dbd['locale'];return{'type':'format','content':null==_0x25e681?c(_0x53ddf8,'*Remove\x20link*'):c(_0x53ddf8,'*Set\x20link:*\x20%0','\x22'+_0x25e681+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cb655=this['editor'],_0x11d853=_0x4cb655['locale'];_0x4cb655['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a335e=>{if('formatInline'!=_0x4a335e['type'])return;const {data:_0x44a157}=_0x4a335e;if(_0x44a157){if('link'==_0x44a157['commandName']){const _0x325a14=_0x44a157['commandParams'][0x0];return{'type':'format','content':c(_0x11d853,'*Set\x20link:*\x20%0','\x22'+_0x325a14+'\x22')};}return'unlink'==_0x44a157['commandName']?{'type':'format','content':c(_0x11d853,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2a6979{['afterInit'](){const _0x47d50f=this['editor'],_0x462e18=_0x47d50f['locale'];if(!_0x47d50f['plugins']['has']('LegacyListEditing'))return;const _0x32d6b6=_0x47d50f['plugins']['get']('TrackChangesEditing'),_0x491dd0=_0x47d50f['plugins']['has']('LegacyTodoListEditing');function _0x4a6870(_0x4a0b96){return()=>{const _0x3455e2=_0x47d50f['model']['document']['selection'],_0x487aac=_0x47d50f['commands']['get'](_0x4a0b96);if(_0x487aac['value'])return void _0x47d50f['execute']('paragraph',{});const _0x25416c=_0x4a0b96['slice'](0x0,-0x4),_0x14c017=function(_0x25f1e5,_0x1ec256,_0x2d88db){let _0x19abab=Array['from'](_0x25f1e5)['filter'](_0xd5f008=>function(_0x5e7907,_0xe8b86f){return _0xe8b86f['checkChild'](_0x5e7907['parent'],'listItem')&&!_0xe8b86f['isObject'](_0x5e7907);}(_0xd5f008,_0x2d88db));_0x19abab=_0x19abab['filter'](_0x40569e=>!_0x40569e['is']('element','listItem')||_0x40569e['getAttribute']('listType')!=_0x1ec256);const _0xb13d0e=new Set();for(const _0x15d18a of _0x19abab)_0x15d18a['is']('element','listItem')?_0xb13d0e['add'](Le(_0x15d18a)):_0xb13d0e['add'](_0x15d18a);return Array['from'](_0xb13d0e);}(_0x3455e2['getSelectedBlocks'](),_0x25416c,_0x47d50f['model']['schema']);_0x47d50f['model']['change'](()=>{for(const _0x167b8f of _0x14c017)_0x32d6b6['markBlockFormat'](_0x167b8f,{'commandName':_0x4a0b96,'commandParams':[{'forceValue':!_0x487aac['value']}],'formatGroupId':'blockName'},Ee(_0x167b8f));});};}function _0x387820(_0x508c74){return()=>{const _0x278e2e=function(_0x3b21a3){let _0x46a41d=Array['from'](_0x3b21a3);const _0x1161c9=_0x46a41d['findIndex'](_0x549ac1=>'listItem'!=_0x549ac1['name']);return _0x1161c9>-0x1&&(_0x46a41d=_0x46a41d['slice'](0x0,_0x1161c9)),_0x46a41d;}(_0x47d50f['model']['document']['selection']['getSelectedBlocks']()),_0x5aa57c=_0x47d50f['model']['createRange'](_0x47d50f['model']['createPositionAt'](_0x278e2e[0x0],'before'),_0x47d50f['model']['createPositionAt'](_0x278e2e[_0x278e2e['length']-0x1],'end'));_0x47d50f['model']['change'](()=>{_0x32d6b6['markBlockFormat'](_0x5aa57c,{'commandName':_0x508c74,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5cb11b){const _0xc62316=new Set();for(const _0x31c1b8 of _0x5cb11b){let _0x3cc097=_0x31c1b8['nextSibling'];for(;_0x3cc097&&_0x3cc097['getAttribute']('listIndent')>_0x31c1b8['getAttribute']('listIndent');)_0xc62316['add'](_0x3cc097),_0x3cc097=_0x3cc097['nextSibling'];}return Array['from'](_0xc62316);}(_0x278e2e));});};}_0x32d6b6['enableCommand']('numberedList',_0x4a6870('numberedList')),_0x32d6b6['enableCommand']('bulletedList',_0x4a6870('bulletedList')),_0x491dd0&&_0x32d6b6['enableCommand']('todoList',_0x4a6870('todoList')),_0x32d6b6['enableCommand']('indentList',_0x387820('indentList')),_0x32d6b6['enableCommand']('outdentList',_0x387820('outdentList')),_0x491dd0&&_0x32d6b6['enableCommand']('checkTodoList',()=>{const _0x545797=_0x47d50f['commands']['get']('checkTodoList'),_0x3600ea=Array['from'](_0x545797['_selectedElements']);_0x3600ea['filter'](_0xd2b60c=>_0xd2b60c['getAttribute']('todoListChecked')!=_0x545797['value']),_0x47d50f['model']['change'](()=>{for(const _0xcaa5d6 of _0x3600ea)_0x32d6b6['markBlockFormat'](_0xcaa5d6,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x545797['value']}]});});}),_0x32d6b6['descriptionFactory']['registerElementLabel']('listItem',_0x555966=>c(_0x462e18,'ELEMENT_LIST_ITEM',_0x555966)),_0x32d6b6['descriptionFactory']['registerDescriptionCallback'](_0x8c4739=>{if('formatBlock'!=_0x8c4739['type']&&'formatInline'!=_0x8c4739['type'])return;const {data:_0x5e8d44}=_0x8c4739;if(_0x5e8d44){if('numberedList'==_0x5e8d44['commandName']||'bulletedList'==_0x5e8d44['commandName']||'todoList'==_0x5e8d44['commandName'])switch(_0x5e8d44['commandName']['replace']('List','')){case'bulleted':return _0x4530e6(c(_0x462e18,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4530e6(c(_0x462e18,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4530e6(c(_0x462e18,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5e8d44['commandName'])return{'type':'format','content':c(_0x462e18,'*Indent:*\x20%0',c(_0x462e18,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5e8d44['commandName'])return{'type':'format','content':c(_0x462e18,'*Outdent:*\x20%0',c(_0x462e18,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5e8d44['commandName'])return _0x5e8d44['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x462e18,'*Check\x20item*')}:{'type':'format','content':c(_0x462e18,'*Uncheck\x20item*')};}function _0x4530e6(_0x2acaaf){return{'type':'format','content':c(_0x462e18,'*Change\x20to:*\x20%0',_0x2acaaf)};}});}}function Le(_0x142267){const _0x208267=_0x142267['getAttribute']('listIndent');if(0x0==_0x208267)return _0x142267;let _0x5b957a=_0x142267;for(;_0x142267['previousSibling']&&_0x142267['previousSibling']['is']('element','listItem');){const _0x1417ff=_0x142267['previousSibling']['getAttribute']('listIndent');if(_0x1417ff==_0x208267)_0x5b957a=_0x142267['previousSibling'];else{if(_0x1417ff<_0x208267)break;}_0x142267=_0x142267['previousSibling'];}return _0x5b957a;}function Ee(_0x4d0db0){const _0x5d0b8e=[];if(_0x4d0db0['is']('element','listItem')&&_0x4d0db0['getAttribute']('listIndent')>0x0){let _0x403348=_0x4d0db0['nextSibling'];for(;_0x403348&&'listItem'==_0x403348['name']&&_0x403348['getAttribute']('listIndent')==_0x4d0db0['getAttribute']('listIndent');)_0x5d0b8e['push'](_0x403348),_0x403348=_0x403348['nextSibling'];}return _0x5d0b8e;}class Q extends _0x2a6979{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5953dd=this['editor']['config']['get']('list.properties'),_0x3d955a=this['editor']['plugins']['get']('TrackChangesEditing');_0x5953dd['styles']&&_0x3d955a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5953dd['reversed']&&_0x3d955a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5953dd['startIndex']&&_0x3d955a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3d955a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x537b2a,_0x48fc39={}){const _0x1a2d23=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ebf8d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1a2d23['markMultiRangeBlockFormat'](_0x3ebf8d,{'commandName':'listStyle','commandParams':[{'type':_0x48fc39['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5ede87,_0x1ab112={}){const _0x2642bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34d57e=this['_getSuggestionBlocks'](_0x4c6250=>_0x4c6250['is']('element','listItem')&&'numbered'===_0x4c6250['getAttribute']('listType'));if(_0x34d57e['length']<0x1)return;const _0x372ab9=_0x34d57e['map'](_0x34e7c5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34e7c5,'before'),this['editor']['model']['createPositionAt'](_0x34e7c5,0x0)));this['editor']['model']['change'](()=>{_0x2642bc['markMultiRangeBlockFormat'](_0x372ab9,{'commandName':'listReversed','commandParams':[{'reversed':_0x1ab112['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x19c951,_0x1bae75={}){const _0x49c666=this['editor']['plugins']['get']('TrackChangesEditing'),_0x183107=this['_getSuggestionBlocks'](_0x3931d1=>_0x3931d1['is']('element','listItem')&&'numbered'===_0x3931d1['getAttribute']('listType'));if(_0x183107['length']<0x1)return;const _0x262b6e=_0x183107['map'](_0x29e69a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29e69a,'before'),this['editor']['model']['createPositionAt'](_0x29e69a,0x0)));this['editor']['model']['change'](()=>{_0x49c666['markMultiRangeBlockFormat'](_0x262b6e,{'commandName':'listStart','commandParams':[{'startIndex':_0x1bae75['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x24d627){if('formatBlock'!=_0x24d627['type']&&'formatInline'!=_0x24d627['type'])return;const _0x5c53ad=this['editor']['locale'],{data:_0x1bcdd3}=_0x24d627;if(!_0x1bcdd3)return;let _0x1738bb,_0x27fb25;switch(_0x1bcdd3['commandName']){case'listStyle':_0x1738bb='*Change\x20to:*\x20%0',_0x27fb25={'type':'format','content':c(_0x5c53ad,_0x1738bb,c(_0x5c53ad,this['_getTranslationKeyForListStyle'](_0x1bcdd3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1738bb=_0x1bcdd3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x27fb25={'type':'format','content':c(_0x5c53ad,_0x1738bb)};break;case'listStart':_0x1738bb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x27fb25={'type':'format','content':c(_0x5c53ad,_0x1738bb,_0x1bcdd3['commandParams'][0x0]['startIndex'])};}return _0x27fb25;}['_getSuggestionBlocksForListStyle'](){const _0x3bad38=this['editor']['plugins']['get']('LegacyListUtils');let _0x18c531=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x18c531[0x0]?.['is']('element','listItem')&&_0x18c531['unshift'](..._0x3bad38['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x18c531[_0x18c531['length']-0x1]?.['is']('element','listItem')&&_0x18c531['push'](..._0x3bad38['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x18c531=[...new Set(_0x18c531)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x18c531=_0x18c531['filter'](_0x4ba250=>_0x4ba250['is']('element','listItem'))),_0x18c531;}['_getSuggestionBlocks'](_0x1089fb){const _0x1a784b=this['editor']['plugins']['get']('LegacyListUtils');let _0x4d1c4d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1089fb)['map'](_0x1ef2b2=>{const _0x26dc63=this['editor']['model']['createPositionAt'](_0x1ef2b2,0x0);return[..._0x1a784b['getSiblingNodes'](_0x26dc63,'backward'),..._0x1a784b['getSiblingNodes'](_0x26dc63,'forward')];})['flat']();return _0x4d1c4d=[...new Set(_0x4d1c4d)],_0x4d1c4d;}['_getTranslationKeyForListStyle'](_0x18f836){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x18f836)||'default')['toUpperCase']()+'_LIST_'+_0x18f836['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2a6979{['afterInit'](){const _0x467488=this['editor'];if(!_0x467488['plugins']['has']('MediaEmbedEditing'))return;const _0x517d41=_0x467488['plugins']['get']('TrackChangesEditing'),_0x7bdcc7=_0x467488['locale'];_0x517d41['enableCommand']('mediaEmbed'),_0x517d41['descriptionFactory']['registerElementLabel']('media',_0x5cf45a=>c(_0x7bdcc7,'ELEMENT_MEDIA',_0x5cf45a)),_0x467488['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x382cbf,{writer:_0x45edb1,options:_0x5cec52})=>{if(_0x5cec52['showSuggestionHighlights'])return _0x45edb1['createEmptyElement']('div');},'converterPriority':'high'}),_0x467488['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4856f7,_0x39ff60,_0x242d66)=>{_0x242d66['options']['showSuggestionHighlights']&&_0x4856f7['stop']();},{'priority':'high'});}}class pt extends _0x2a6979{['afterInit'](){const _0x252e07=this['editor'];_0x252e07['plugins']['has']('MentionEditing')&&_0x252e07['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2a6979{['afterInit'](){const _0x4e308b=this['editor'];if(!_0x4e308b['plugins']['has']('MergeFieldsEditing'))return;const _0x47e9e6=_0x4e308b['plugins']['get']('TrackChangesEditing'),_0x522e1e=_0x4e308b['locale'];_0x47e9e6['enableCommand']('insertMergeField'),_0x47e9e6['enableCommand']('insertMergeFieldBlock'),_0x47e9e6['enableCommand']('insertMergeFieldImage'),_0x47e9e6['descriptionFactory']['registerElementLabel']('mergeField',_0x256da9=>c(_0x522e1e,'ELEMENT_MERGE_FIELD',_0x256da9)),_0x47e9e6['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3d5bde=>c(_0x522e1e,'ELEMENT_MERGE_FIELD',_0x3d5bde)),_0x47e9e6['descriptionFactory']['registerDescriptionCallback'](_0x47a34e=>{if('insertion'!=_0x47a34e['type']&&'deletion'!=_0x47a34e['type'])return;const _0x5e835b=_0x47a34e['getContainedElement']();if(null==_0x5e835b)return;const _0x12c861=_0x4e308b['plugins']['get']('MergeFieldsEditing');let _0x5bdbb4;switch(_0x12c861['getMergeFieldType'](_0x5e835b)){case null:return;case'image':{const _0x68b1a3=_0x12c861['unwrapAffixes'](_0x5e835b['getAttribute']('src'));_0x5bdbb4=_0x12c861['getLabel'](_0x68b1a3)||_0x68b1a3;break;}default:{const _0x5a961c=_0x5e835b['getAttribute']('id');_0x5bdbb4=_0x12c861['getLabel'](_0x5a961c)||_0x5a961c;break;}}return'insertion'==_0x47a34e['type']?{'type':'insertion','content':c(_0x522e1e,'*Insert:*\x20%0','\x22'+_0x5bdbb4+'\x22\x20'+c(_0x522e1e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x522e1e,'*Remove:*\x20%0','\x22'+_0x5bdbb4+'\x22\x20'+c(_0x522e1e,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2a6979{['afterInit'](){const _0x4ce4b5=this['editor'],_0x50d098=_0x4ce4b5['plugins']['get']('TrackChangesEditing');_0x4ce4b5['plugins']['has']('MultiLevelList')&&(_0x50d098['enableDefaultAttributesIntegration']('multiLevelList'),_0x50d098['registerBlockAttribute']('listMarkerStyle'),_0x50d098['descriptionFactory']['registerDescriptionCallback'](_0x251929=>this['handleDescriptions'](_0x251929)));}['handleDescriptions'](_0x3f28ab){const _0x39950f=this['editor']['locale'],{data:_0x52299a}=_0x3f28ab,_0x5b7c57={'type':'format','content':''};if(_0x52299a&&'listMarkerStyle'==_0x52299a['key']){if(!_0x52299a['oldValue'])return{'type':'format','content':c(_0x39950f,'*Set\x20format:*\x20%0',c(_0x39950f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x52299a['newValue']+')'};if(!_0x52299a['newValue']){let _0x33cb1f=_0x3f28ab['head'];for(;_0x33cb1f;){if(_0x33cb1f['data']&&'listType'==_0x33cb1f['data']['key']&&_0x33cb1f['data']['newValue'])return _0x5b7c57;_0x33cb1f=_0x33cb1f['next'];}return{'type':'format','content':c(_0x39950f,'*Remove\x20format:*\x20%0',c(_0x39950f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x52299a['oldValue']+')'};}}}}class bt extends _0x2a6979{['afterInit'](){const _0x2ec7ac=this['editor'];if(!_0x2ec7ac['plugins']['has']('PageBreakEditing'))return;_0x2ec7ac['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1e0c78=_0x2ec7ac['plugins']['get']('TrackChangesEditing'),_0x2c82e8=_0x2ec7ac['locale'];_0x1e0c78['descriptionFactory']['registerElementLabel']('pageBreak',_0xac0908=>c(_0x2c82e8,'ELEMENT_PAGE_BREAK',_0xac0908));}}class yt extends _0x2a6979{['afterInit'](){const _0x145b0b=this['editor'];if(!_0x145b0b['plugins']['has']('Paragraph'))return;const _0x6f8b0a=_0x145b0b['locale'],_0x4e0f5c=_0x145b0b['plugins']['get']('TrackChangesEditing');_0x4e0f5c['descriptionFactory']['registerElementLabel']('paragraph',_0x1d396c=>c(_0x6f8b0a,'ELEMENT_PARAGRAPH',_0x1d396c)),_0x4e0f5c['enableDefaultAttributesIntegration']('paragraph'),_0x4e0f5c['enableCommand']('insertParagraph'),_0x145b0b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x145b0b),{'priority':'highest'}),_0x145b0b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e4f58,_0x15c8f5,_0x116447)=>{_0x116447['options']['showSuggestionHighlights']&&nr(_0x145b0b,{'showActiveMarker':!0x1})(_0x2e4f58,_0x15c8f5,_0x116447);},{'priority':'highest'});const _0x154c41=_0x4e0f5c['descriptionFactory'];_0x154c41['registerDescriptionCallback'](_0x2a0981=>{if('insertion'!==_0x2a0981['type'])return;const {start:_0x249746,end:_0x29daf7}=_0x2a0981['getFirstRange']();if(!_0x249746['isTouching'](_0x29daf7)||!_0x249746['nodeAfter'])return;const _0x4cd7b6=_0x145b0b['model']['schema'],_0x129a0a=_0x249746['nodeAfter'];return _0x4cd7b6['isBlock'](_0x129a0a)&&!_0x4cd7b6['isLimit'](_0x129a0a)&&_0x4cd7b6['checkChild'](_0x129a0a,'$text')?{'type':'insertion','content':c(_0x6f8b0a,'*Insert:*\x20%0',_0x154c41['getItemLabel'](_0x129a0a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7fb40d=this['editor'],_0x2f1cc0=_0x7fb40d['locale'];_0x7fb40d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58dbaf=>{if('formatBlock'!=_0x58dbaf['type'])return;const {data:_0x2a8e11}=_0x58dbaf;return _0x2a8e11&&'paragraph'==_0x2a8e11['commandName']?{'type':'format','content':c(_0x2f1cc0,'*Change\x20to:*\x20%0',c(_0x2f1cc0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x545f1e,{showActiveMarker:_0x9eec87=!0x0}={}){return(_0x2b27a7,_0x4d5ccd,_0x2e0efa)=>{const _0x5b1312=_0x545f1e['plugins']['get']('TrackChangesEditing'),_0x1a9c74=_0x4d5ccd['markerRange']['start'],_0x485744=_0x4d5ccd['markerRange']['end'],_0x159aad=_0x545f1e['model']['schema'];if(!_0x1a9c74['isTouching'](_0x485744)||!_0x1a9c74['nodeAfter'])return;const _0x3d13c0=_0x1a9c74['nodeAfter'];if(_0x159aad['isBlock'](_0x3d13c0)&&!_0x159aad['isLimit'](_0x3d13c0)&&_0x159aad['checkChild'](_0x3d13c0,'$text')){if(!_0x2e0efa['consumable']['consume'](_0x4d5ccd['markerRange'],_0x2b27a7['name']))return;const {authorId:_0x11174}=_0x5b1312['_splitMarkerName'](_0x4d5ccd['markerName']),_0x274d5c=_0x2e0efa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x11174}),_0x53c181=_0x2e0efa['mapper']['toViewPosition'](_0x485744);_0x9eec87&&_0x5b1312['activeMarkers']['includes'](_0x4d5ccd['markerName'])&&_0x2e0efa['writer']['addClass']('ck-suggestion-marker--active',_0x274d5c),_0x2e0efa['writer']['insert'](_0x53c181,_0x274d5c),_0x2e0efa['mapper']['bindElementToMarker'](_0x274d5c,_0x4d5ccd['markerName']);}};}class jt extends _0x2a6979{['afterInit'](){const _0xc0d4f1=this['editor'];_0xc0d4f1['commands']['get']('replaceSource')&&_0xc0d4f1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2a6979{['afterInit'](){const _0x5aab47=this['editor'];if(!_0x5aab47['plugins']['has']('RemoveFormatEditing'))return;_0x5aab47['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2285cd=this['editor'];_0x2285cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x191adb=>{if('formatBlock'!=_0x191adb['type']&&'formatInline'!=_0x191adb['type'])return;const {data:_0x3ea80d}=_0x191adb;return _0x3ea80d&&'removeFormat'==_0x3ea80d['commandName']?{'type':'format','content':c(_0x2285cd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x2a6979{['afterInit'](){const _0x41008f=this['editor'];if(!_0x41008f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xe6941a=_0x41008f['plugins']['get']('TrackChangesEditing');_0xe6941a['enableCommand']('goToPreviousRestrictedEditingException'),_0xe6941a['enableCommand']('goToNextRestrictedEditingException');const _0x4dd9f8=_0x41008f['plugins']['get']('RestrictedEditingModeEditing');_0x4dd9f8['enableCommand']('trackChanges'),_0x4dd9f8['enableCommand']('acceptSuggestion'),_0x4dd9f8['enableCommand']('discardSuggestion'),_0x4dd9f8['enableCommand']('acceptAllSuggestions'),_0x4dd9f8['enableCommand']('discardAllSuggestions'),_0x4dd9f8['enableCommand']('acceptSelectedSuggestions'),_0x4dd9f8['enableCommand']('discardSelectedSuggestions');}}class It extends _0x2a6979{static get['requires'](){return[_0x4d2f64];}['init'](){const _0x2e23f3=this['editor'],_0x8859ce=_0x2e23f3['plugins']['get']('TrackChangesEditing');_0x8859ce['enableCommand']('shiftEnter'),_0x2e23f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2e23f3),{'priority':'high'}),_0x2e23f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2e23f3),{'priority':'high'}),_0x2e23f3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x81842d,_0x561919,_0xb0edef)=>{_0xb0edef['options']['showSuggestionHighlights']&&je(_0x2e23f3,{'showActiveMarker':!0x1})(_0x81842d,_0x561919,_0xb0edef);}),_0x8859ce['descriptionFactory']['registerElementLabel']('softBreak',_0x22a18c=>c(_0x2e23f3['locale'],'ELEMENT_LINE_BREAK',_0x22a18c));}}function je(_0x4090ec,{showActiveMarker:_0x5685fa=!0x0}={}){return(_0x1ba196,_0x585fc0,_0x40f682)=>{const _0x213eaf=_0x4090ec['plugins']['get']('TrackChangesEditing');if(!_0x40f682['consumable']['test'](_0x585fc0['markerRange'],_0x1ba196['name']))return;const _0x3a3c0b=_0x4090ec['model'];for(const _0x4e53c4 of _0x585fc0['markerRange']['getItems']()){if(!_0x4e53c4['is']('element','softBreak'))continue;const _0x487984='deletion'==_0x585fc0['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5c23ef}=_0x213eaf['_splitMarkerName'](_0x585fc0['markerName']),_0x24b10a=_0x40f682['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x487984,'data-author-id':_0x5c23ef}),_0x1f7b3e=_0x40f682['mapper']['toViewPosition'](_0x3a3c0b['createPositionBefore'](_0x4e53c4));_0x5685fa&&_0x213eaf['activeMarkers']['includes'](_0x585fc0['markerName'])&&_0x40f682['writer']['addClass']('ck-suggestion-marker--active',_0x24b10a),_0x40f682['writer']['insert'](_0x1f7b3e,_0x24b10a),_0x40f682['mapper']['bindElementToMarker'](_0x24b10a,_0x585fc0['markerName']);}};}class _t extends _0x2a6979{['afterInit'](){const _0x4496df=this['editor'],_0x57c70b=_0x4496df['model'],_0x321a8c=_0x4496df['locale'];if(!_0x4496df['plugins']['has']('StandardEditingModeEditing'))return;const _0x42c631=_0x4496df['plugins']['get']('TrackChangesEditing'),_0x410311='restrictedEditingException',_0x2492e6=_0x4496df['commands']['get'](_0x410311);_0x42c631['enableCommand'](_0x410311,(_0x52120b,_0x30bdca={})=>{const _0x45fb22=_0x57c70b['document']['selection'];if(_0x45fb22['isCollapsed'])return void _0x52120b(_0x30bdca);const _0x119eee=void 0x0!==_0x30bdca['forceValue']?_0x30bdca['forceValue']:!_0x2492e6['value'];_0x57c70b['change'](()=>{const _0x579e76=Array['from'](_0x45fb22['getRanges']());for(const _0x13c58c of _0x579e76){const _0x5e38d0=_0x119eee?[_0x13c58c]:io(_0x410311,_0x13c58c,_0x57c70b);for(const _0x5745cb of _0x5e38d0)_0x42c631['markInlineFormat'](_0x5745cb,{'commandName':_0x410311,'commandParams':[{'forceValue':_0x119eee}]});}});}),_0x42c631['descriptionFactory']['registerDescriptionCallback'](_0x3d69b1=>{if('formatBlock'!=_0x3d69b1['type']&&'formatInline'!=_0x3d69b1['type'])return;const {data:_0x103003}=_0x3d69b1;return _0x103003&&_0x103003['commandName']==_0x410311?_0x103003['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x321a8c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x321a8c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x2a6979{['afterInit'](){const _0x28f2af=this['editor'];if(!_0x28f2af['plugins']['has']('Style')||!_0x28f2af['plugins']['has']('DataSchema'))return;const _0x38fce6=_0x28f2af['plugins']['get']('TrackChangesEditing'),_0x143604=_0x28f2af['locale'],_0x5480d3=_0x28f2af['config']['get']('style')||{},_0x2a3e6d=_0x28f2af['plugins']['get']('GeneralHtmlSupport'),_0x3f5361=_0x28f2af['plugins']['get']('StyleUtils')['normalizeConfig'](_0x28f2af['plugins']['get']('DataSchema'),_0x5480d3['definitions']);_0x38fce6['enableDefaultAttributesIntegration']('style');const _0x33d256=new Set();for(const _0x3f93d8 of _0x3f5361['block']){const _0xdde555=_0x2a3e6d['getGhsAttributeNameForElement'](_0x3f93d8['element']);_0x33d256['add'](_0xdde555);}const _0x58bbe7=new Set();for(const _0x239853 of _0x3f5361['inline']){const _0x1b12c4=_0x2a3e6d['getGhsAttributeNameForElement'](_0x239853['element']);_0x58bbe7['add'](_0x1b12c4);for(const _0xef846 of _0x239853['ghsAttributes'])_0x58bbe7['add'](_0xef846);}for(const _0x542d0a of _0x33d256)_0x38fce6['registerBlockAttribute'](_0x542d0a),_0x38fce6['descriptionFactory']['registerAttributeLabel'](_0x542d0a,c(_0x143604,'FORMAT_STYLE'));for(const _0x2b6fe3 of _0x58bbe7)_0x38fce6['registerInlineAttribute'](_0x2b6fe3),_0x38fce6['descriptionFactory']['registerAttributeLabel'](_0x2b6fe3,c(_0x143604,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x584cad=this['editor'],_0x105329=_0x584cad['locale'];_0x584cad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x501f13=>{if('formatBlock'!=_0x501f13['type']&&'formatInline'!=_0x501f13['type'])return;const {data:_0x2083b3}=_0x501f13;return _0x2083b3&&'style'===_0x2083b3['commandName']?_0x2083b3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x105329,'*Set\x20format:*\x20%0',_0x2083b3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x105329,'*Remove\x20format:*\x20%0',_0x2083b3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x2a6979{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x192c4b){super(_0x192c4b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2294f3=this['editor'],_0x425f36=_0x2294f3['model']['document']['selection'];if(!_0x2294f3['plugins']['has']('TableEditing'))return;const _0x54d05c=_0x2294f3['locale'],_0x53c62e=_0x2294f3['plugins']['get']('TrackChangesEditing'),_0x48c5f9=_0x2294f3['plugins']['get']('TableUtils');_0x53c62e['descriptionFactory']['registerElementLabel']('table',_0x1d12c9=>c(_0x54d05c,'ELEMENT_TABLE',_0x1d12c9)),this['_setupColumnsRowsFixing'](),_0x53c62e['enableCommand']('insertTable'),_0x53c62e['enableCommand']('selectTableRow'),_0x53c62e['enableCommand']('selectTableColumn');for(const _0x2db71f of['insertTableRowAbove','insertTableRowBelow']){const _0xb505e7=_0x2294f3['commands']['get'](_0x2db71f);_0x53c62e['enableCommand'](_0x2db71f,_0x2a0a9a=>{_0x2294f3['model']['change'](_0x258251=>{_0x2a0a9a();const _0x24add3='above'===_0xb505e7['order'],_0x186241=_0x48c5f9['getSelectionAffectedTableCells'](_0x425f36),_0x5a864e=_0x48c5f9['getRowIndexes'](_0x186241),_0x2e6f2a=_0x24add3?_0x5a864e['first']-0x1:_0x5a864e['last']+0x1,_0x331828=_0x186241[0x0]['findAncestor']('table'),_0x28caea=_0x48c5f9['createTableWalker'](_0x331828,{'startRow':_0x2e6f2a,'endRow':_0x2e6f2a}),_0x2821c5=Array['from'](_0x28caea)['map'](_0x2bfd21=>_0x258251['createRangeOn'](_0x2bfd21['cell']));_0x53c62e['markMultiRangeInsertion'](_0x2821c5,'tableRow');});});}for(const _0x2dca7f of['insertTableColumnLeft','insertTableColumnRight']){const _0x5ae4b8=_0x2294f3['commands']['get'](_0x2dca7f);_0x53c62e['enableCommand'](_0x2dca7f,_0x4d94fd=>{_0x2294f3['model']['change'](_0x3b61ca=>{_0x4d94fd();const _0x466463='left'===_0x5ae4b8['order'],_0x5eb024=_0x48c5f9['getSelectionAffectedTableCells'](_0x425f36),_0x33f33a=_0x48c5f9['getColumnIndexes'](_0x5eb024),_0xc57340=_0x466463?_0x33f33a['first']-0x1:_0x33f33a['last']+0x1,_0x55fcf8=_0x5eb024[0x0]['findAncestor']('table'),_0x4ec591=_0x48c5f9['createTableWalker'](_0x55fcf8,{'startRow':0x0,'column':_0xc57340,'includeAllSlots':!0x1}),_0x295893=Array['from'](_0x4ec591)['map'](_0x4a1c7e=>_0x3b61ca['createRangeOn'](_0x4a1c7e['cell']));_0x53c62e['markMultiRangeInsertion'](_0x295893,'tableColumn');});});}for(const _0x6811a6 of['removeTableRow','removeTableColumn']){const _0x2b4314=_0x6811a6['substr'](0xb),_0x34ff61=_0x2b4314['toLowerCase'](),_0x33083e=_0x34ff61['substr'](0x0,0x3)+'span',_0x1199d2='table'+_0x2b4314,_0x51ae9c='min'+_0x2b4314,_0x366ea7='max'+_0x2b4314;_0x53c62e['enableCommand'](_0x6811a6,()=>{_0x2294f3['model']['change'](_0x184fa9=>{const _0x20a47d=_0x48c5f9['getSelectionAffectedTableCells'](_0x425f36),_0x482606=_0x20a47d[0x0]['findAncestor']('table');let _0x5035f2;if('removeTableRow'==_0x6811a6){const _0x4bcaa0=_0x48c5f9['getRowIndexes'](_0x20a47d);_0x5035f2={'startRow':_0x4bcaa0['first'],'endRow':_0x4bcaa0['last'],'includeAllSlots':!0x0};}else{const _0x5c6a6e=_0x48c5f9['getColumnIndexes'](_0x20a47d);_0x5035f2={'startColumn':_0x5c6a6e['first'],'endColumn':_0x5c6a6e['last'],'includeAllSlots':!0x0};}const _0x2ca41a=_0x48c5f9['createTableWalker'](_0x482606,_0x5035f2),_0x3209da=Array['from'](_0x2ca41a)['map'](({cell:_0x50cde6})=>_0x50cde6),_0x42d82c=Ne(_0x3209da['filter'](_0x10f43b=>_0x10f43b['hasAttribute'](_0x33083e))),_0x54e330=Ne(_0x3209da['filter'](_0x5179b1=>!_0x5179b1['hasAttribute'](_0x33083e)))['map'](_0x5d9e3e=>_0x184fa9['createRangeOn'](_0x5d9e3e)),_0x27eb32=_0x53c62e['markMultiRangeDeletion'](_0x54e330,_0x1199d2);if(_0x27eb32&&('tableRow'==_0x27eb32['subType']||'tableColumn'==_0x27eb32['subType'])){const _0x5e9f12=this['_getSuggestionCoords'](_0x27eb32);for(const _0xc04d57 of _0x42d82c){const _0x331771=_0x184fa9['createRangeOn'](_0xc04d57),_0x1c1117=_0x48c5f9['getCellLocation'](_0xc04d57),_0x1c06b0=_0xc04d57['getAttribute'](_0x33083e)-0x1,_0x186075=_0x5e9f12[_0x51ae9c],_0x5e1126=_0x5e9f12[_0x366ea7];_0x186075<=_0x1c1117[_0x34ff61]&&_0x1c1117[_0x34ff61]+_0x1c06b0<=_0x5e1126&&_0x27eb32['addRange'](_0x331771);}}});});}function _0xf8b127(_0x1d9f4d){const _0x5b6187=Array['from'](_0x425f36['getRanges']())['map'](_0x109516=>_0x444cae['fromRange'](_0x109516));_0x2294f3['model']['change'](_0x115fe3=>{const _0x55067a=_0x115fe3['batch'];_0x1d9f4d=_0x1d9f4d['filter'](_0x23ecf4=>'$graveyard'!=_0x23ecf4['root']['rootName']),_0x115fe3['setSelection'](_0x1d9f4d),_0x2294f3['commands']['get']('removeTableRow')['refresh'](),_0x2294f3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2294f3['model']['enqueueChange'](()=>{_0x2294f3['model']['enqueueChange'](_0x55067a,_0x1c8964=>{const _0x24f0e3=_0x5b6187['filter'](_0x3c3028=>'$graveyard'!=_0x3c3028['root']['rootName']);_0x24f0e3['length']>0x0&&_0x1c8964['setSelection'](_0x24f0e3);for(const _0x27095d of _0x5b6187)_0x27095d['detach']();});});});}function _0x399598(_0x304854){_0x2294f3['model']['change'](_0x1ce5cd=>{const _0x5de69d=Array['from'](_0x425f36['getRanges']())['map'](_0x444c8a=>_0x444cae['fromRange'](_0x444c8a)),_0x1837e3=[];for(const _0xb86d20 of _0x304854)for(const _0x4c0309 of _0xb86d20['getItems']({'shallow':!0x0}))_0x1837e3['push'](_0x4c0309);for(const _0x2edb5d of _0x1837e3)'$graveyard'!=_0x2edb5d['root']['rootName']&&(_0x1ce5cd['setSelection'](_0x1ce5cd['createPositionAt'](_0x2edb5d,0x0)),_0x2294f3['commands']['get']('removeTableColumn')['refresh'](),_0x2294f3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x413f83=_0x5de69d['filter'](_0x452b33=>'$graveyard'!=_0x452b33['root']['rootName']);_0x413f83['length']>0x0&&_0x1ce5cd['setSelection'](_0x413f83);for(const _0x1e11e7 of _0x5de69d)_0x1e11e7['detach']();});}function _0x1afcf3(_0x20889c,_0x2737e6){return _0x2737e6['every'](_0x30d329=>_0x20889c['some'](_0x15e6f5=>_0x15e6f5['end']['isEqual'](_0x30d329['start'])||_0x30d329['end']['isEqual'](_0x15e6f5['start'])));}function _0x4ad042(_0x11b0b4,_0x2c589a){return!_0x11b0b4['some'](_0x2487a5=>_0x2c589a['some'](_0x6887d=>_0x2487a5['isIntersecting'](_0x6887d)))&&_0x11b0b4['some'](_0x2e7eef=>_0x2c589a['some'](_0xda05f=>_0x2e7eef['end']['isTouching'](_0xda05f['start'])));}_0x2294f3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x525e4b,_0x1f1203,_0x28d302)=>{if(!_0x28d302['options']['showSuggestionHighlights'])return;const _0x4140cd=_0x1f1203['item'];if(!_0x4140cd)return;const _0x473f42=_0x28d302['mapper']['toViewElement'](_0x4140cd);function _0xcb3970(_0x14ff56){return Array['isArray'](_0x14ff56)?_0x14ff56:[_0x14ff56];}_0x473f42&&'tableCell'===_0x4140cd['name']&&_0x524137(_0x473f42,_0x28d302['writer'],(_0x1aca17,_0x2ea954,_0x3c00fc)=>_0x3c00fc['addClass'](_0xcb3970(_0x2ea954['classes']),_0x1aca17),(_0x29910a,_0x2c6d11,_0x159207)=>_0x159207['removeClass'](_0xcb3970(_0x2c6d11['classes']),_0x29910a));},{'priority':'highest'}),_0x53c62e['descriptionFactory']['registerDescriptionCallback'](_0x1c4754=>{if('insertion'!=_0x1c4754['type']&&'deletion'!=_0x1c4754['type'])return;const _0x2ee6ee=_0x1c4754['getContainedElement']();if(null!=_0x2ee6ee&&_0x2ee6ee['is']('element','table')){if('insertion'==_0x1c4754['type']){const _0x4d13dc=_0x1c4754['getItems']()['filter'](_0x4b9884=>_0x4b9884['is']('$textProxy'))['map'](_0x2058f2=>_0x2058f2['data']);if(_0x4d13dc['length'])return{'type':'insertion','content':c(_0x54d05c,'*Insert:*\x20%0',c(_0x54d05c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d13dc['join']('\x20')+'\x22'))};}if('deletion'==_0x1c4754['type']){const _0x540f32=_0x1c4754['getItems']()['filter'](_0x5321db=>_0x5321db['is']('$textProxy'))['map'](_0x1f7cc1=>_0x1f7cc1['data']);if(_0x540f32['length'])return{'type':'deletion','content':c(_0x54d05c,'*Remove:*\x20%0',c(_0x54d05c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x540f32['join']('\x20')+'\x22'))};}}}),_0x53c62e['descriptionFactory']['registerDescriptionCallback'](_0x53eee1=>{if('tableRow'==_0x53eee1['subType']){const _0x2257aa=_0x53eee1['getItems']()['filter'](_0x1f0ef9=>_0x1f0ef9['is']('$textProxy'))['map'](_0x3e7d56=>_0x3e7d56['data']),_0xe83441=this['_getSuggestionCoords'](_0x53eee1),_0x50c486=_0xe83441['maxRow']-_0xe83441['minRow']+0x1;if('insertion'==_0x53eee1['type'])return _0x2257aa['length']?{'type':'insertion','content':c(_0x54d05c,'*Insert:*\x20%0',c(_0x54d05c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x50c486,'\x22'+_0x2257aa['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x54d05c,'*Insert:*\x20%0',c(_0x54d05c,'ELEMENT_TABLE_ROW',_0x50c486))};if('deletion'==_0x53eee1['type'])return _0x2257aa['length']?{'type':'deletion','content':c(_0x54d05c,'*Remove:*\x20%0',c(_0x54d05c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x50c486,'\x22'+_0x2257aa['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x54d05c,'*Remove:*\x20%0',c(_0x54d05c,'ELEMENT_TABLE_ROW',_0x50c486))};}if('tableColumn'==_0x53eee1['subType']){const _0x1506b1=_0x53eee1['getItems']()['filter'](_0xb86fca=>_0xb86fca['is']('$textProxy'))['map'](_0x3697c8=>_0x3697c8['data']),_0x116b5c=this['_getSuggestionCoords'](_0x53eee1),_0x4bb503=_0x116b5c['maxColumn']-_0x116b5c['minColumn']+0x1;if('insertion'==_0x53eee1['type'])return _0x1506b1['length']?{'type':'insertion','content':c(_0x54d05c,'*Insert:*\x20%0',c(_0x54d05c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4bb503,'\x22'+_0x1506b1['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x54d05c,'*Insert:*\x20%0',c(_0x54d05c,'ELEMENT_TABLE_COLUMN',_0x4bb503))};if('deletion'==_0x53eee1['type'])return _0x1506b1['length']?{'type':'deletion','content':c(_0x54d05c,'*Remove:*\x20%0',c(_0x54d05c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4bb503,'\x22'+_0x1506b1['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x54d05c,'*Remove:*\x20%0',c(_0x54d05c,'ELEMENT_TABLE_COLUMN',_0x4bb503))};}}),_0x53c62e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xf8b127),_0x53c62e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xf8b127),_0x53c62e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x399598),_0x53c62e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x399598),_0x53c62e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1afcf3),_0x53c62e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1afcf3),_0x53c62e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4ad042),_0x53c62e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4ad042);}['_acceptFormatSuggestionCallbackFactory'](){const _0x12876b=this['editor'],_0x89abdf=_0x12876b['model']['document']['selection'];return(_0x339fe2,_0x1189fb)=>{_0x12876b['model']['change'](_0x12dbb1=>{const {commandName:_0x2ab8ba,commandParams:_0x414e74}=_0x1189fb;let _0x30eae5=_0x339fe2[0x0]['end']['nodeBefore'];_0x414e74&&_0x414e74[0x0]&&!0x1===_0x414e74[0x0]['forceValue']&&(_0x30eae5=_0x339fe2[0x0]['start']['nodeAfter']);const _0x21f2ea=_0x12dbb1['createRangeIn'](_0x30eae5);if('$graveyard'==_0x21f2ea['root']['rootName'])return;const _0x10c4fc=Array['from'](_0x89abdf['getRanges']())['map'](_0x1f4029=>_0x444cae['fromRange'](_0x1f4029));_0x12dbb1['setSelection'](_0x21f2ea),_0x12876b['commands']['get'](_0x2ab8ba)['refresh'](),_0x414e74['push']({'forceDefaultExecution':!0x0}),_0x12876b['execute'](_0x2ab8ba,..._0x414e74);const _0x53f7b4=_0x10c4fc['filter'](_0x1952ba=>'$graveyard'!=_0x1952ba['root']['rootName']);_0x53f7b4['length']>0x0&&_0x12dbb1['setSelection'](_0x53f7b4);for(const _0x32ba25 of _0x10c4fc)_0x32ba25['detach']();});};}['_getCoordsForCells'](_0x396b27){const _0x4fa2ae=this['editor']['plugins']['get']('TableUtils');let _0x31b2cc=Number['MAX_SAFE_INTEGER'],_0x15ba4a=Number['MIN_SAFE_INTEGER'],_0x10977e=Number['MAX_SAFE_INTEGER'],_0x434e6d=Number['MIN_SAFE_INTEGER'];for(const _0x2d050c of _0x396b27){if('$graveyard'==_0x2d050c['root']['rootName'])continue;const {row:_0x543fbb,column:_0x4f952b}=_0x4fa2ae['getCellLocation'](_0x2d050c),_0x4a0a68=_0x2d050c['hasAttribute']('rowspan')?_0x2d050c['getAttribute']('rowspan')-0x1:0x0,_0x307aca=_0x2d050c['hasAttribute']('colspan')?_0x2d050c['getAttribute']('colspan')-0x1:0x0;_0x31b2cc=_0x543fbb<_0x31b2cc?_0x543fbb:_0x31b2cc,_0x15ba4a=_0x543fbb+_0x4a0a68>_0x15ba4a?_0x543fbb+_0x4a0a68:_0x15ba4a,_0x10977e=_0x4f952b<_0x10977e?_0x4f952b:_0x10977e,_0x434e6d=_0x4f952b+_0x307aca>_0x434e6d?_0x4f952b+_0x307aca:_0x434e6d;}return{'minRow':_0x31b2cc,'maxRow':_0x15ba4a,'minColumn':_0x10977e,'maxColumn':_0x434e6d};}['_setupColumnsRowsFixing'](){const _0x59fd6=this['editor'],_0x410087=_0x59fd6['plugins']['get']('TrackChangesEditing'),_0x296aaf=_0x59fd6['plugins']['get']('TableUtils');_0x59fd6['model']['document']['on']('change:data',()=>{const _0x189aab=Array['from'](_0x59fd6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb74ccf,data:_0x4be008}of _0x189aab){const {group:_0x587608,id:_0x3a1a26,subType:_0x1497e0}=_0x410087['_splitMarkerName'](_0xb74ccf);if('suggestion'!=_0x587608)continue;if(null!=_0x4be008['oldRange'])continue;const _0xc114a4=_0x410087['getSuggestion'](_0x3a1a26);this['_tablePostFixingSubtypes']['includes'](_0x1497e0)&&this['_tableSuggestions']['add'](_0xc114a4);}},{'priority':'low'});const _0x59083e=(_0x199a6e,_0x1ee3fb)=>{let _0x4f46ae=!0x1;const _0x62da2=_0x1ee3fb['createRangeOn'](_0x199a6e),_0x100060=_0x199a6e['findAncestor']('table'),_0x7d0a07=_0x296aaf['getCellLocation'](_0x199a6e);for(const _0x20b509 of this['_tableSuggestions']){const _0x554ba8=_0x20b509['subType'],_0x156d13=_0x554ba8['startsWith']('tablePaste'),_0x4adecf=_0x554ba8['substr'](_0x156d13?0xa:0x5),_0x4301df=_0x4adecf['toLowerCase'](),_0x4ca354=_0x4301df['substr'](0x0,0x3)+'span',_0x1e18b4='min'+_0x4adecf,_0x196f4b='max'+_0x4adecf;if(!_0x20b509['isInContent'])continue;if(_0x100060!=_0x20b509['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x20b509['isIntersectingWithRange'](_0x62da2))continue;const _0x1c5e3c=_0x199a6e['hasAttribute'](_0x4ca354)?_0x199a6e['getAttribute'](_0x4ca354)-0x1:0x0,_0x3b1de8=this['_getSuggestionCoords'](_0x20b509),_0x559bf2=_0x3b1de8[_0x1e18b4],_0x5373ff=_0x3b1de8[_0x196f4b];_0x559bf2<=_0x7d0a07[_0x4301df]&&_0x7d0a07[_0x4301df]+_0x1c5e3c<=_0x5373ff&&(_0x20b509['addRange'](_0x62da2),_0x4f46ae=!0x0);}return _0x4f46ae;};_0x59fd6['model']['document']['registerPostFixer'](_0x2a0f5c=>{let _0x3272a9=!0x1;for(const _0xf48675 of _0x59fd6['model']['document']['differ']['getChanges']())if('insert'==_0xf48675['type']){if('tableRow'==_0xf48675['name']){for(const _0x2c8806 of _0xf48675['position']['nodeAfter']['getChildren']())_0x3272a9=_0x3272a9||_0x59083e(_0x2c8806,_0x2a0f5c);}else'tableCell'==_0xf48675['name']&&(_0x3272a9=_0x3272a9||_0x59083e(_0xf48675['position']['nodeAfter'],_0x2a0f5c));}return _0x3272a9;});}['_getSuggestionCoords'](_0x7382c7){return this['_getCoordsForCells'](_0x7382c7['getRanges']()['map'](_0x402237=>_0x402237['start']['nodeAfter']));}}function Ne(_0x2150dd){return Array['from'](new Set(_0x2150dd)['values']());}class Nt extends _0x2a6979{static get['requires'](){return[Ct];}['afterInit'](){const _0x133a77=this['editor'],_0x3946ce=_0x133a77['model']['document']['selection'],_0x5dc983=_0x133a77['locale'];if(!_0x133a77['plugins']['has']('TableEditing'))return;const _0x107874=_0x133a77['plugins']['get']('TrackChangesEditing'),_0x9b1dee=_0x133a77['plugins']['get']('TableUtils'),_0x47f1e5=_0x133a77['plugins']['get'](Ct);_0x47f1e5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x107874['enableCommand']('mergeTableCells',()=>{const _0x45241c=_0x9b1dee['getSelectionAffectedTableCells'](_0x133a77['model']['document']['selection']);_0x133a77['model']['change'](()=>{_0x107874['markMultiRangeBlockFormat'](_0x45241c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x133a77['commands']['get']('mergeTableCells')['on']('execute',(_0x22a38f,_0x4b63e2)=>{_0x133a77['commands']['get']('trackChanges')['value']&&(_0x4b63e2['length']>0x0&&_0x4b63e2[_0x4b63e2['length']-0x1]&&_0x4b63e2[_0x4b63e2['length']-0x1]['forceDefaultExecution']||_0x107874['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x22a38f['stop']());},{'priority':'highest'});for(const _0x1a964e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4170da=_0x133a77['commands']['get'](_0x1a964e);_0x107874['enableCommand'](_0x1a964e,()=>{const _0x2316f6=_0x133a77['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3cafca=>_0x3cafca['is']('element','tableCell')),_0x4ad091=_0x4170da['value'];_0x133a77['model']['change'](()=>{_0x107874['markMultiRangeBlockFormat']([_0x2316f6,_0x4ad091],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x46ac5f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2f17c6=_0x133a77['commands']['get'](_0x46ac5f);_0x107874['enableCommand'](_0x46ac5f,()=>{const _0x260aa8=_0x9b1dee['getSelectionAffectedTableCells'](_0x133a77['model']['document']['selection'])[0x0],_0x6a65fc=_0x260aa8['findAncestor']('table'),{column:_0x21376c,row:_0x5caa1c}=_0x9b1dee['getCellLocation'](_0x260aa8);let _0x408924=[];if('horizontally'==_0x2f17c6['direction']){const _0x3bb228=_0x9b1dee['createTableWalker'](_0x6a65fc,{'startRow':_0x5caa1c,'endRow':_0x5caa1c,'includeAllSlots':!0x0});_0x408924=Array['from'](_0x3bb228)['map'](_0x575653=>_0x575653['cell']);}else{const _0x3d6aeb=_0x9b1dee['createTableWalker'](_0x6a65fc,{'column':_0x21376c,'includeAllSlots':!0x0});_0x408924=Array['from'](_0x3d6aeb)['map'](_0x54e7fa=>_0x54e7fa['cell']);}_0x133a77['model']['change'](_0x7fe7a2=>{_0x107874['markBlockFormat'](_0x7fe7a2['createRangeOn'](_0x260aa8),{'commandName':_0x46ac5f,'commandParams':[]},_0x408924,_0x46ac5f);});});}_0x107874['descriptionFactory']['registerDescriptionCallback'](_0x4090f3=>{if('formatBlock'!=_0x4090f3['type']&&'formatInline'!=_0x4090f3['type'])return;const {data:_0x493701}=_0x4090f3;return _0x493701&&'mergeTableCells'==_0x493701['commandName']?{'type':'format','content':c(_0x5dc983,'*Merge\x20cells*')}:void 0x0;}),_0x107874['descriptionFactory']['registerDescriptionCallback'](_0x201825=>{if('formatBlock'!=_0x201825['type']&&'formatInline'!=_0x201825['type'])return;const {data:_0x756286}=_0x201825;return _0x756286?'splitTableCellVertically'==_0x756286['commandName']?{'type':'format','content':c(_0x5dc983,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x756286['commandName']?{'type':'format','content':c(_0x5dc983,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5b3821=_0x47f1e5['_acceptFormatSuggestionCallbackFactory']();for(const _0x2f38a4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x107874['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2f38a4,'accept',_0x5b3821);for(const _0x53db37 of['splitTableCellVertically','splitTableCellHorizontally'])_0x107874['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53db37,'accept',_0x5b3821);_0x107874['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4fb04f=>{_0x133a77['model']['change'](_0x424707=>{const _0x33a017=Array['from'](_0x3946ce['getRanges']())['map'](_0x358987=>_0x444cae['fromRange'](_0x358987));_0x424707['setSelection'](_0x4fb04f),_0x133a77['commands']['get']('mergeTableCells')['refresh'](),_0x133a77['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x14187f=_0x33a017['filter'](_0x40224d=>'$graveyard'!=_0x40224d['root']['rootName']);_0x14187f['length']>0x0&&_0x424707['setSelection'](_0x14187f);for(const _0x33dd96 of _0x33a017)_0x33dd96['detach']();});});for(const _0x2430fa of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1997fe=_0x133a77['commands']['get'](_0x2430fa);_0x1997fe['on']('set:isEnabled',(_0xf908dd,_0x4811c0,_0x21b24a)=>{if(_0x21b24a){const _0x5201e1=_0x133a77['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x144a6e=>_0x144a6e['is']('element','tableCell'));this['_areMergableCells'](_0x1997fe['value'],_0x5201e1)||(_0xf908dd['return']=!0x1,_0xf908dd['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x70c009=this['editor']['commands']['get']('mergeTableCells'),_0x2b1ca1=this['editor']['plugins']['get']('TableUtils');if(!_0x70c009['isEnabled'])return!0x1;const _0xda0757=_0x2b1ca1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2e4059 of _0xda0757)for(const _0x49ae43 of _0xda0757)if(_0x2e4059!=_0x49ae43&&!this['_areMergableCells'](_0x2e4059,_0x49ae43))return!0x1;return!0x0;}['_areMergableCells'](_0x178a3d,_0x50c458){const _0x2ace32=this['editor']['plugins']['get']('TrackChangesEditing'),_0x75f680=this['editor']['model']['createRangeOn'](_0x178a3d),_0x4cacbb=this['editor']['model']['createRangeOn'](_0x50c458),_0x15dfb4=new Set(),_0xb272a=new Set();for(const _0x101f2c of _0x2ace32['getSuggestions']())if(('insertion'==_0x101f2c['type']||'deletion'==_0x101f2c['type']||'mergeTableCells'==_0x101f2c['subType'])&&_0x101f2c['isInContent']){for(const _0x272cc9 of _0x101f2c['getRanges']())_0x272cc9['containsRange'](_0x75f680,!0x0)&&_0x15dfb4['add'](_0x101f2c['type']+':'+_0x101f2c['author']['id']),_0x272cc9['containsRange'](_0x4cacbb,!0x0)&&_0xb272a['add'](_0x101f2c['type']+':'+_0x101f2c['author']['id']);}if(_0x15dfb4['size']!=_0xb272a['size'])return!0x1;for(const _0x4bf959 of _0x15dfb4)if(!_0xb272a['has'](_0x4bf959))return!0x1;return!0x0;}}class Dt extends _0x2a6979{static get['requires'](){return[Ct];}['afterInit'](){const _0x4d3f9f=this['editor'];if(!_0x4d3f9f['plugins']['has']('TableEditing'))return;const _0x28bbde=_0x4d3f9f['locale'],_0x95820=_0x4d3f9f['plugins']['get']('TrackChangesEditing');_0x95820['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x95820['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x95820['registerBlockAttribute']('headingRows'),_0x95820['registerBlockAttribute']('headingColumns'),_0x95820['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x28bbde,'FORMAT_HEADER_ROW')),_0x95820['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x28bbde,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x135df8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b651b=this['editor']['plugins']['get']('TableUtils'),_0x1f7fb9=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x428a24({showActiveMarker:_0x190a60=!0x0,setDataAttribute:_0x3d06cf=!0x0}={}){return(_0x4ed2ec,_0x240de6,_0x1b4af4)=>{const {type:_0x300a2e,id:_0x4f37fb}=_0x135df8['_splitMarkerName'](_0x240de6['markerName']),_0x5dbcf7=_0x135df8['getSuggestion'](_0x4f37fb),_0xe9be60=_0x5dbcf7['data'];if('formatBlock'!=_0x5dbcf7['type']||!_0xe9be60||'setTableColumnHeader'!=_0xe9be60['commandName'])return;if(_0x240de6['item'])return void _0x4ed2ec['stop']();if(!_0x1b4af4['consumable']['consume'](_0x240de6['markerRange'],_0x4ed2ec['name']))return;const _0x2c6324=_0x240de6['markerRange']['start']['nodeAfter'],_0x3a3bab=_0x240de6['markerRange']['end']['nodeBefore'],_0xbec537=_0x2c6324['parent']['parent'],{column:_0x241579}=_0x3b651b['getCellLocation'](_0x2c6324),{column:_0x4bc7c5}=_0x3b651b['getCellLocation'](_0x3a3bab);for(let _0x316654=_0x241579;_0x316654<=_0x4bc7c5;_0x316654++){const _0x3a63a5=_0x3b651b['createTableWalker'](_0xbec537,{'column':_0x316654,'includeAllSlots':!0x1});for(const _0x13d9f0 of _0x3a63a5){const _0x457c8e=_0x13d9f0['cell'],_0x30aceb=_0x1b4af4['mapper']['toViewElement'](_0x457c8e);_0x1b4af4['writer']['addClass']('ck-suggestion-marker-'+_0x300a2e,_0x30aceb),_0x3d06cf&&_0x1b4af4['writer']['setAttribute']('data-suggestion',_0x4f37fb,_0x30aceb),_0x1b4af4['mapper']['bindElementToMarker'](_0x30aceb,_0x240de6['markerName']),_0x190a60&&(_0x135df8['activeMarkers']['includes'](_0x240de6['markerName'])?_0x1b4af4['writer']['addClass']('ck-suggestion-marker--active',_0x30aceb):_0x1b4af4['writer']['removeClass']('ck-suggestion-marker--active',_0x30aceb));}}};}_0x135df8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1f7fb9),_0x135df8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1f7fb9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x428a24(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x134603,_0x58b588,_0x20fdf5)=>{_0x20fdf5['options']['showSuggestionHighlights']&&_0x428a24({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x134603,_0x58b588,_0x20fdf5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x12e2ff,_0x1cc18b,_0x2c5ae6)=>{const {type:_0xa12d37,id:_0x16638a}=_0x135df8['_splitMarkerName'](_0x1cc18b['markerName']),_0x389414=_0x135df8['getSuggestion'](_0x16638a),_0x1a1736=_0x389414['data'];if('formatBlock'!=_0x389414['type']||!_0x1a1736||'setTableColumnHeader'!=_0x1a1736['commandName'])return;const _0x5357a6=_0x2c5ae6['mapper']['markerNameToElements'](_0x1cc18b['markerName']);if(_0x5357a6){for(const _0x16469c of _0x5357a6)_0x2c5ae6['writer']['removeClass']('ck-suggestion-marker-'+_0xa12d37,_0x16469c),_0x2c5ae6['writer']['removeClass']('ck-suggestion-marker--active',_0x16469c),_0x2c5ae6['writer']['removeAttribute']('data-suggestion',_0x16469c),_0x2c5ae6['mapper']['unbindElementFromMarkerName'](_0x16469c,_0x1cc18b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1311d4=this['editor'],_0x12a847=_0x1311d4['locale'];function _0x6b8275(_0x352f7a){return{'type':'format','content':c(_0x12a847,'*Format:*\x20%0',_0x352f7a)};}_0x1311d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb8bb38=>{if('formatBlock'!=_0xb8bb38['type'])return;const {data:_0x19fc62}=_0xb8bb38;if(_0x19fc62){if('setTableRowHeader'==_0x19fc62['commandName']){const _0x5bbf66=_0x19fc62['commandParams'][0x0]['forceValue'];return _0x6b8275(c(_0x12a847,_0x5bbf66?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x19fc62['commandName']){const _0x16c837=_0x19fc62['commandParams'][0x0]['forceValue'];return _0x6b8275(c(_0x12a847,_0x16c837?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x30a918=>[_0x30a918,null]));class Mt extends _0x2a6979{static get['requires'](){return[Ct];}['afterInit'](){const _0x2cb7b9=this['editor'];if(!_0x2cb7b9['plugins']['has']('TableClipboard'))return;const _0x4f398d=_0x2cb7b9['plugins']['get']('TrackChangesEditing'),_0xb9dc52=_0x2cb7b9['plugins']['get']('TableUtils'),_0x2108a7=_0x2cb7b9['plugins']['get'](Ct),_0x1a833d=_0x2cb7b9['plugins']['get']('TableClipboard');_0x2108a7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2cb7b9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2cb7b9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x16128f=null;_0x2cb7b9['model']['on']('insertContent',(_0x2c5f1d,_0x2a59f9)=>{const [_0x2266e5,_0x3a3117]=_0x2a59f9,_0x4ee89e=_0x2a59f9[_0x2a59f9['length']-0x1];_0x4ee89e&&_0x4ee89e['forceDefaultExecution']||_0x4f398d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3d2e04,_0x5c9b80,_0x32f807,_0x5dc50a,_0x47dd59){if(_0x5c9b80&&!_0x5c9b80['is']('documentSelection'))return!0x1;const _0x4cde7b=_0x47dd59['getTableIfOnlyTableInContent'](_0x3d2e04,_0x32f807);if(!_0x4cde7b||!Ue(_0x4cde7b,void 0x0,_0x5dc50a))return!0x1;const _0xb18601=_0x5dc50a['getSelectionAffectedTableCells'](_0x32f807['document']['selection']);if(!_0xb18601['length'])return!0x1;const _0x5af81b=_0xb18601[0x0]['findAncestor']('table'),_0x51437b=_0x5dc50a['getRowIndexes'](_0xb18601),_0x801ee1=_0x5dc50a['getColumnIndexes'](_0xb18601),_0x182bb0={'startRow':_0x51437b['first'],'endRow':_0x51437b['last'],'startColumn':_0x801ee1['first'],'endColumn':_0x801ee1['last']};return 0x1==_0xb18601['length']&&(_0x182bb0['endRow']+=_0x5dc50a['getRows'](_0x4cde7b)-0x1,_0x182bb0['endColumn']+=_0x5dc50a['getColumns'](_0x4cde7b)-0x1),Ue(_0x5af81b,_0x182bb0,_0x5dc50a);}(_0x2266e5,_0x3a3117,_0x2cb7b9['model'],_0xb9dc52,_0x1a833d)&&(_0x2c5f1d['stop'](),_0x16128f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2cb7b9['model']['change'](()=>{_0x2cb7b9['model']['insertContent'](_0x2a59f9[0x0],_0x2a59f9[0x1],_0x2a59f9[0x2],{'forceDefaultExecution':!0x0});const _0x43b393=_0x1db959(),{rowInsertionRanges:_0x57bc30,columnInsertionRanges:_0x4ce083,insertionRanges:_0x6058c4,deletionRanges:_0x2c9f1b,cells:_0x4f5048}=_0x16128f;_0x57bc30['length']&&_0x4f398d['markMultiRangeInsertion'](_0x57bc30,'tablePasteRow',{'tablePasteChainId':_0x43b393}),_0x4ce083['length']&&_0x4f398d['markMultiRangeInsertion'](_0x4ce083,'tablePasteColumn',{'tablePasteChainId':_0x43b393}),_0x6058c4['length']&&(_0x4f398d['markMultiRangeInsertion'](_0x6058c4,'tablePaste',{'tablePasteChainId':_0x43b393,'skipNestingCheck':!0x0}),_0x6058c4['forEach'](_0x57b1ff=>_0x57b1ff['detach']?.())),_0x2c9f1b['length']&&(_0x4f398d['markMultiRangeDeletion'](_0x2c9f1b,'tablePaste',{'tablePasteChainId':_0x43b393,'skipNestingCheck':!0x0}),_0x2c9f1b['forEach'](_0x467e3a=>_0x467e3a['detach']?.()));const _0x12b8a7=_0x4f398d['markMultiRangeBlockFormat'](_0x4f5048['map'](({element:_0x3e731d})=>_0x3e731d),{'formatGroupId':_0x1db959()},[],'tablePasteCell',{'tablePasteChainId':_0x43b393});if(_0x12b8a7){const _0x219807=_0x12b8a7['getMarkers'](),_0x4bc321=[];for(const {element:_0x31161d,attributes:_0x3a28f8}of _0x4f5048){if(!_0x3a28f8)continue;const _0x5e1243=_0x2cb7b9['model']['createRangeOn'](_0x31161d),_0x5bcf8a=_0x219807['find'](_0x463ad4=>_0x463ad4['getRange']()['isEqual'](_0x5e1243));_0x5bcf8a&&_0x4bc321['push']([_0x5bcf8a['name'],_0x3a28f8]);}_0x4bc321['length']&&_0x12b8a7['setAttribute']('markerAttributes',Object['fromEntries'](_0x4bc321));}_0x16128f=null;}));},{'priority':_0x41be5b['high']+0xa}),_0x2cb7b9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x96f4,_0x5ea500)=>{const [_0x470015,_0x4f56e8,,_0x58b98d]=_0x5ea500;if(!_0x16128f)return;_0x96f4['stop']();const _0x2860b4=_0x470015['cell'],_0x380d0a=_0x4f56e8,_0x18c42b=Oe(_0x2860b4),_0x12b13d=Oe(_0x380d0a);_0x96f4['return']=_0x2860b4;let _0x322d9b=null,_0x116ea9=null;if(_0x12b13d||_0x18c42b){if(_0x18c42b&&!_0x12b13d){_0x58b98d['remove'](_0x2860b4['getChild'](0x0));for(const _0xa0197f of Array['from'](_0x380d0a['getChildren']()))_0x58b98d['insert'](_0xa0197f,_0x2860b4,'end');const _0x1f6bd2=_0x16128f['rowInsertionIndexes']['includes'](_0x470015['row']),_0x27b4e5=_0x16128f['columnInsertionIndexes']['includes'](_0x470015['column']);_0x1f6bd2||_0x27b4e5||(_0x322d9b=_0x444cae['fromRange'](_0x58b98d['createRangeIn'](_0x2860b4)));}else _0x12b13d&&!_0x18c42b&&(_0x116ea9=_0x58b98d['createRangeIn'](_0x2860b4));}else{const _0x3bef9a=_0x58b98d['createElement']('tableCellSuggestion'),_0x482da2=_0x58b98d['createElement']('tableCellSuggestion');_0x58b98d['wrap'](_0x58b98d['createRangeIn'](_0x2860b4),_0x482da2),_0x58b98d['insert'](_0x3bef9a,_0x2860b4,0x0);for(const _0x1b7e2e of Array['from'](_0x380d0a['getChildren']()))_0x58b98d['insert'](_0x1b7e2e,_0x3bef9a,'end');_0x322d9b=_0x444cae['fromRange'](_0x58b98d['createRangeOn'](_0x3bef9a)),_0x116ea9=_0x444cae['fromRange'](_0x58b98d['createRangeOn'](_0x482da2));}const _0x57db95=Array['from'](_0x380d0a['getAttributes']())['filter'](([_0x2af9f5])=>Be['includes'](_0x2af9f5));_0x16128f['cells']['push']({'element':_0x2860b4,'attributes':_0x57db95['length']?Object['fromEntries'](_0x57db95):null}),_0x322d9b&&_0x16128f['insertionRanges']['push'](_0x322d9b),_0x116ea9&&_0x16128f['deletionRanges']['push'](_0x116ea9);},{'priority':'high'}),_0xb9dc52['on']('insertColumns',(_0x219972,_0x9b9435)=>{const [_0x2afc3c,_0x483d9b={}]=_0x9b9435;if(!_0x16128f)return;const _0x77de10=_0x483d9b['at']||0x0,_0x21fd13=_0x483d9b['columns']||0x1;_0x16128f['columnInsertionIndexes']=new Array(_0x21fd13)['fill'](_0x77de10)['map']((_0x2ed494,_0x39d32f)=>_0x2ed494+_0x39d32f);for(const {cell:_0x4ccdd1}of _0xb9dc52['createTableWalker'](_0x2afc3c,{'startColumn':_0x77de10,'endColumn':_0x77de10+_0x21fd13-0x1}))_0x16128f['columnInsertionRanges']['push'](_0x2cb7b9['model']['createRangeOn'](_0x4ccdd1));},{'priority':'low'}),_0xb9dc52['on']('insertRows',(_0x575fd0,_0x586554)=>{const [_0x59d62b,_0x52b915={}]=_0x586554;if(!_0x16128f)return;const _0x31bac3=_0x52b915['at']||0x0,_0x5db404=_0x52b915['rows']||0x1;_0x16128f['rowInsertionIndexes']=new Array(_0x5db404)['fill'](_0x31bac3)['map']((_0x5991c4,_0x29dadc)=>_0x5991c4+_0x29dadc);for(const {cell:_0xed19e8}of _0xb9dc52['createTableWalker'](_0x59d62b,{'startRow':_0x31bac3,'endRow':_0x31bac3+_0x5db404-0x1}))_0x16128f['rowInsertionRanges']['push'](_0x2cb7b9['model']['createRangeOn'](_0xed19e8));},{'priority':'low'}),_0x4f398d['descriptionFactory']['registerDescriptionCallback'](_0x361f28=>{if(_0x361f28['subType']&&_0x361f28['subType']['startsWith']('tablePaste'))return _0x361f28['previous']?{}:{'type':'insertion','content':c(_0x2cb7b9['locale'],'*Replace\x20table\x20cells*')};});const _0x282ee9=()=>!0x1;for(const _0xdd0678 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4f398d['_suggestionFactory']['registerCustomCallback']('insertion',_0xdd0678,'join',_0x282ee9),_0x4f398d['_suggestionFactory']['registerCustomCallback']('deletion',_0xdd0678,'join',_0x282ee9),_0x4f398d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdd0678,'join',_0x282ee9);_0x4f398d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x282ee9),_0x4f398d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x422e57,_0x320a40,_0x20d6d2)=>{const _0x2689d4=_0x422e57['map'](_0x2520c8=>_0x2520c8['getContainedElement']())['filter'](_0x3c8506=>_0x3c8506),_0x1c64a5=new Map(_0x2689d4['map'](_0x12191f=>[_0x12191f,null]));if(_0x16128f){for(const {element:_0x58ebb0,attributes:_0xb3a15b}of _0x16128f['cells'])_0xb3a15b&&_0x1c64a5['set'](_0x58ebb0,_0xb3a15b);}else{if(_0x20d6d2&&_0x20d6d2['markerAttributes'])for(const [_0x138ecf,_0x5c1297]of Object['entries'](_0x20d6d2['markerAttributes'])){const _0x14429f=_0x2cb7b9['model']['markers']['get'](_0x138ecf),_0x5bb6a0=_0x14429f?_0x14429f['getRange']()['getContainedElement']():null;_0x5bb6a0&&_0x1c64a5['set'](_0x5bb6a0,_0x5c1297);}}_0x2cb7b9['model']['change'](_0x4b36bc=>{for(const [_0x1a05b2,_0x1f2f83]of _0x1c64a5)_0x4b36bc['setAttributes']({...xe,..._0x1f2f83},_0x1a05b2);});});const _0x319146=(_0x4a1e36,_0xdc232)=>{_0x4f398d['_suggestionFactory']['registerCustomCallback'](_0x4a1e36,'tablePaste',_0xdc232,(_0x111c28,_0x3eb030,_0x2b47f9)=>{_0x2cb7b9['model']['change'](_0x2b692e=>{const _0x1ebf07=[];for(const _0x2fcb13 of _0x111c28){const _0x3d3f15=_0x2fcb13['start']['nodeAfter'];_0x3d3f15['is']('element','tableCellSuggestion')&&_0x1ebf07['push'](_0x3d3f15);}_0x4f398d['_suggestionFactory']['getSuggestionCallback'](_0x4a1e36,null,_0xdc232)(_0x111c28,_0x3eb030,_0x2b47f9);for(const _0x297c24 of _0x1ebf07)'$graveyard'!=_0x297c24['root']['rootName']&&_0x2b692e['unwrap'](_0x297c24);});});};_0x319146('insertion','accept'),_0x319146('insertion','discard'),_0x319146('deletion','accept'),_0x319146('deletion','discard'),_0x4f398d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x49e5d1=>{const _0xc729cd=_0x49e5d1['map'](_0x1b97aa=>_0x1b97aa['getContainedElement']()),_0x511a39=_0xc729cd[0x0]['findAncestor']('table'),{minRow:_0x141e45,maxRow:_0xb2354e}=_0x2108a7['_getCoordsForCells'](_0xc729cd);_0xb9dc52['removeRows'](_0x511a39,{'at':_0x141e45,'rows':_0xb2354e-_0x141e45+0x1});}),_0x4f398d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x25cd9c=>{const _0xeaf288=_0x25cd9c['map'](_0x16c080=>_0x16c080['getContainedElement']()),_0x26a095=_0xeaf288[0x0]['findAncestor']('table'),{minColumn:_0x4231fd,maxColumn:_0x4f335d}=_0x2108a7['_getCoordsForCells'](_0xeaf288);_0xb9dc52['removeColumns'](_0x26a095,{'at':_0x4231fd,'columns':_0x4f335d-_0x4231fd+0x1});});const _0x2882b8=(_0x1f92ea,_0x3ae57f)=>{if(!_0x3ae57f['subType']||!_0x3ae57f['subType']['startsWith']('tablePaste'))return;const _0x37e939=_0x3ae57f['attributes']['tablePasteChainId'],_0x2912db=_0x4f398d['getSuggestions']()['filter'](_0x5e7db6=>_0x5e7db6['isInContent']&&_0x5e7db6['attributes']&&_0x5e7db6['attributes']['tablePasteChainId']==_0x37e939);_0x2912db['length']&&_0x3ae57f['getAllAdjacentSuggestions']()['length']!=_0x2912db['length']&&_0x2912db['reduce']((_0xc30c7e,_0x308212)=>(_0xc30c7e['next']=_0x308212,_0x308212['previous']=_0xc30c7e,_0x308212));};function _0x1cedbf(_0x138ce4,_0xc6af59=!0x0){const {id:_0x72d70f,authorId:_0x495469}=_0x4f398d['_splitMarkerName'](_0x138ce4['markerName']),_0x49e24a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1ce34b=_0x4f398d['activeMarkers']['includes'](_0x138ce4['markerName']);return _0x1ce34b&&_0x49e24a['push']('ck-suggestion-marker--active'),{'classes':_0x49e24a,'attributes':{'data-suggestion':_0x72d70f,'data-author-id':_0x495469},'priority':_0x1ce34b&&_0xc6af59?0xbc2:0xbb8};}_0x4f398d['on']('suggestionLoaded',_0x2882b8,{'priority':'high'}),_0x4f398d['on']('suggestionUnloaded',_0x2882b8,{'priority':'high'}),_0x2cb7b9['model']['document']['registerPostFixer'](()=>{let _0xa21216=!0x1;const _0x2ccfd7=Array['from'](_0x2cb7b9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x17c232,data:_0x365b87}of _0x2ccfd7){const {group:_0x79f1d1,type:_0x318b71,id:_0x210411}=_0x4f398d['_splitMarkerName'](_0x17c232);if('suggestion'!=_0x79f1d1||'deletion'!=_0x318b71||_0x365b87['oldRange'])continue;if(!_0x4f398d['hasSuggestion'](_0x210411))continue;const _0x34b656=_0x4f398d['getSuggestion'](_0x210411)['getRanges'](),_0x1d2630=_0x2cb7b9['plugins']['get']('Users')['me'];for(const _0x3a47cf of _0x4f398d['getSuggestions']()){if(!_0x3a47cf['isInContent']||_0x3a47cf['author']!=_0x1d2630)continue;if('formatBlock'!=_0x3a47cf['type']||'tablePasteCell'!=_0x3a47cf['subType'])continue;if(_0x3a47cf['getRanges']()['every'](_0x14fd92=>_0x34b656['some'](_0x4c7835=>_0x4c7835['containsRange'](_0x14fd92,!0x0)))){for(const _0x22fcb3 of _0x3a47cf['getAllAdjacentSuggestions']())_0x22fcb3['isInContent']&&(_0x22fcb3['discard'](),_0xa21216=!0x0);}}}return _0xa21216;}),_0x2cb7b9['model']['document']['registerPostFixer'](_0x4a4edd=>{const _0x589b10=_0x2cb7b9['commands']['get']('redo');if(!_0x589b10||!_0x589b10['_createdBatches']['has'](_0x4a4edd['batch']))return!0x1;let _0x644f48=!0x1;const _0x128c20=_0x2cb7b9['plugins']['get']('Users')['me'],_0x3b3eaf=_0x2cb7b9['model']['document']['differ']['getChanges'](),_0xc09746=Array['from'](_0x2cb7b9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x175e6e,data:_0x174934})=>{const {group:_0x439140,subType:_0x567ec3,authorId:_0x384493}=_0x4f398d['_splitMarkerName'](_0x175e6e);return'suggestion'==_0x439140&&'tablePaste'==_0x567ec3&&_0x384493==_0x128c20['id']&&!_0x174934['oldRange'];});for(const _0x583855 of _0x3b3eaf){if('insert'!=_0x583855['type']||'tableCellSuggestion'!=_0x583855['name']||0x1!=_0x583855['length'])continue;const _0x4f40b8=_0x4a4edd['createRange'](_0x583855['position'],_0x583855['position']['getShiftedBy'](0x1));if(!_0xc09746['find'](({data:_0x5d8048})=>_0x5d8048['newRange']['isEqual'](_0x4f40b8))){for(const {name:_0x1bf7fd,data:_0x4390c7}of _0xc09746)if(_0x4f40b8['containsRange'](_0x4390c7['newRange'])){_0x4a4edd['updateMarker'](_0x1bf7fd,{'range':_0x4f40b8}),_0x644f48=!0x0;break;}}}return _0x644f48;}),_0x2cb7b9['model']['document']['registerPostFixer'](_0xf946a1=>{let _0x31a8d0=!0x1;const _0x540100=_0x2cb7b9['plugins']['get']('Users')['me'],_0x1ed17b=_0x4f398d['getSuggestions']()['filter'](_0x68f357=>_0x68f357['isInContent']&&_0x68f357['author']==_0x540100),_0x65a964=new Set(),_0x6fac29=new Set();for(const _0x3a42de of _0x1ed17b)if('tablePaste'==_0x3a42de['subType'])for(const _0x10f12c of _0x3a42de['getMarkers']()){const _0x19990b=_0x10f12c['getRange']()['getContainedElement']();if(_0x19990b){if(_0x19990b['is']('element','tableCellSuggestion')&&Oe(_0x19990b)){_0x3a42de['removeMarker'](_0x10f12c['name']),_0x65a964['add'](_0x19990b),_0x31a8d0=!0x0;const _0x538586=_0x19990b['nextSibling'],_0x139a23=_0x19990b['previousSibling'],_0x4c5842=_0x538586&&_0x538586['is']('element','tableCellSuggestion'),_0x1a8d96=_0x139a23&&_0x139a23['is']('element','tableCellSuggestion');_0x4c5842&&!_0x65a964['has'](_0x538586)&&_0x6fac29['add'](_0x538586),_0x1a8d96&&!_0x65a964['has'](_0x139a23)&&_0x6fac29['add'](_0x139a23);}else _0x19990b['is']('element','paragraph')&&_0x19990b['isEmpty']&&(_0x3a42de['removeMarker'](_0x10f12c['name']),_0x31a8d0=!0x0);}}else{if('tablePasteCell'==_0x3a42de['subType']){if(!_0x3a42de['attributes']||!_0x3a42de['attributes']['tablePasteChainId'])continue;const _0x39417b=_0x3a42de['attributes']['markerAttributes'];if(_0x39417b&&Object['keys'](_0x39417b)['length'])continue;const _0x4083b7=_0x3a42de['attributes']['tablePasteChainId'];let _0x1e7497=!0x0,_0x3f5653=!0x0;for(const _0x183717 of _0x1ed17b)if(_0x183717['subType']&&_0x183717['subType']['startsWith']('tablePaste')){if(!_0x183717['attributes']['tablePasteChainId']){_0x3f5653=!0x1;break;}if(_0x183717['id']!=_0x3a42de['id']&&_0x183717['attributes']['tablePasteChainId']==_0x4083b7){_0x1e7497=!0x1;break;}}_0x3f5653&&_0x1e7497&&(_0x3a42de['removeMarkers'](),_0x31a8d0=!0x0);}}for(const _0x5575dc of _0x65a964)_0xf946a1['remove'](_0x5575dc);for(const _0x1a6bfa of _0x6fac29)_0xf946a1['unwrap'](_0x1a6bfa);return _0x31a8d0;}),_0x2cb7b9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x564115=>_0x1cedbf(_0x564115),'converterPriority':'high'}),_0x2cb7b9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x856183,_0x6d9caf)=>_0x6d9caf['options']['showSuggestionHighlights']?_0x1cedbf(_0x856183,!0x1):null,'converterPriority':'high'});const _0x1bdfdc=_0x2cb7b9['editing']['view'];this['listenTo'](_0x1bdfdc['document'],'clipboardOutput',(_0x59c792,_0x2a7745)=>{const _0x45b75d=[];for(const _0x21d047 of _0x1bdfdc['createRangeIn'](_0x2a7745['content'])['getItems']())_0x21d047['is']('element','suggestion-td')&&_0x45b75d['push'](_0x21d047);_0x1bdfdc['change'](_0xe49eff=>{for(const _0x43690b of _0x45b75d)_0xe49eff['move'](_0xe49eff['createRangeIn'](_0x43690b),_0xe49eff['createPositionBefore'](_0x43690b)),_0xe49eff['remove'](_0x43690b);});});}}function Oe(_0x45c053){if(_0x45c053['isEmpty'])return!0x0;const _0x42e763=_0x45c053['getChild'](0x0);return _0x42e763['is']('element','paragraph')&&_0x42e763['isEmpty'];}function Ue(_0x4494a0,_0x51c668={},_0x339a33){for(const {isAnchor:_0x31cae2,cellHeight:_0x2b7ab5,cellWidth:_0x2179f5}of _0x339a33['createTableWalker'](_0x4494a0,{'includeAllSlots':!0x0,..._0x51c668}))if(!_0x31cae2||0x1!=_0x2b7ab5||0x1!=_0x2179f5)return!0x1;return!0x0;}class $t extends _0x2a6979{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1e1fd4=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e1fd4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1e1fd4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1e1fd4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1e1fd4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1e1fd4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1e1fd4['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x244cdc,_0x2b7c34){const _0x9b50a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4715cb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x34c856=_0x2b7c34['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x17c677=_0x4715cb['getColumnGroupElement'](_0x34c856);let _0x151397=_0x17c677?_0x4715cb['getTableColumnsWidths'](_0x17c677):null,_0x451851=_0x34c856['getAttribute']('tableWidth')||null;const _0x1265a2=_0x2b7c34['tableWidth']||_0x451851,_0x340d16=_0x2b7c34['columnWidths']||_0x151397,_0x96584d=this['editor']['plugins']['get']('Users')['me'];for(const _0x106c54 of _0x9b50a5['getSuggestions']()){const _0x999f07=_0x106c54['getContainedElement']();if('resizeTable'===_0x106c54['subType']&&_0x999f07===_0x34c856){_0x106c54['author']!==_0x96584d&&_0x106c54['discard']();const _0x3a5d74=_0x106c54['data']['commandParams'];_0x451851=_0x3a5d74[0x0]['tableWidth'],_0x151397=_0x3a5d74[0x0]['columnWidths'];break;}}_0x244cdc({'table':_0x34c856,'tableWidth':_0x1265a2,'columnWidths':_0x340d16}),_0x9b50a5['markBlockFormat'](_0x34c856,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x451851,'columnWidths':_0x151397}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2c2c99){if('formatBlock'!=_0x2c2c99['type']&&'formatInline'!=_0x2c2c99['type'])return;const {data:_0x1fbd96}=_0x2c2c99;if(_0x1fbd96&&'resizeTable'===_0x1fbd96['formatGroupId']){const _0x575a86='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x575a86)};}}}class Bt extends _0x2a6979{['afterInit'](){const _0x35db81=this['editor'];_0x35db81['plugins']['has']('Template')&&_0x35db81['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x2a6979{['afterInit'](){const _0x1bd7cb=this['editor'];if(!_0x1bd7cb['commands']['get']('insertTableOfContents'))return;_0x1bd7cb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5eda59=_0x1bd7cb['plugins']['get']('TrackChangesEditing'),_0x4aa2e9=_0x1bd7cb['locale'];_0x5eda59['descriptionFactory']['registerElementLabel']('tableOfContents',_0x10866d=>c(_0x4aa2e9,'ELEMENT_TABLE_OF_CONTENTS',_0x10866d));}}class Rt extends _0x2a6979{['afterInit'](){const _0x4e55a7=this['editor'];if(!_0x4e55a7['plugins']['has']('Title'))return;const _0x51ebbf=_0x4e55a7['plugins']['get']('TrackChangesEditing');_0x51ebbf['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x4e55a7['locale'],'ELEMENT_TITLE')),_0x4e55a7['model']['document']['registerPostFixer'](_0x671c6c=>{let _0x3fb0cf=!0x1;const _0x8059fe=Array['from'](_0x4e55a7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47dab3,data:_0x1f68e2}of _0x8059fe){const {group:_0x443ed8}=_0x51ebbf['_splitMarkerName'](_0x47dab3);if('suggestion'!==_0x443ed8||!_0x1f68e2['newRange'])continue;const _0x32ae60=_0x1f68e2['newRange'],_0x56d8cf=_0x32ae60['end']['nodeBefore'];if(!_0x56d8cf||!_0x56d8cf['is']('element','title-content'))continue;if(!_0x32ae60['start']['isTouching'](_0x32ae60['end']))continue;const _0x3c3757=_0x4e55a7['model']['schema']['getNearestSelectionRange'](_0x32ae60['end'],'forward');if(_0x3c3757&&_0x3c3757['isCollapsed']){const _0x4ff63d=_0x671c6c['createRange'](_0x32ae60['start'],_0x3c3757['start']);_0x4ff63d['isEqual'](_0x32ae60)||(_0x671c6c['updateMarker'](_0x47dab3,{'range':_0x4ff63d}),_0x3fb0cf=!0x0);}_0x3fb0cf||(_0x671c6c['removeMarker'](_0x47dab3),_0x3fb0cf=!0x0);}return _0x3fb0cf;});}}class xt extends _0x2a6979{['afterInit'](){const _0x187fc2=this['editor'],_0x255600=_0x187fc2['plugins']['get']('TrackChangesEditing');_0x187fc2['plugins']['has']('Uploadcare')&&(_0x255600['enableCommand']('uploadcare'),_0x187fc2['plugins']['has']('UploadcareImageEdit')&&(_0x255600['enableCommand']('uploadcareImageEdit'),_0x255600['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x255600['registerBlockAttribute']('uploadcareImageId'),_0x255600['descriptionFactory']['registerDescriptionCallback'](_0x274d6f=>{if('attribute'!=_0x274d6f['type'])return;const {data:_0x35b103}=_0x274d6f;return _0x35b103&&'uploadcareImageId'==_0x35b103['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x2a6979{['afterInit'](){const _0xb780ba=this['editor'],_0x5e0cf8=_0xb780ba['plugins']['get']('TrackChangesEditing');_0xb780ba['plugins']['has']('UndoEditing')&&(_0x5e0cf8['enableCommand']('undo'),_0x5e0cf8['enableCommand']('redo'));}}class Et extends _0x2a6979{static get['requires'](){return[Ct];}['afterInit'](){const _0x38e8fa=this['editor'];if(!_0x38e8fa['plugins']['has']('TableCaptionEditing'))return;_0x38e8fa['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x2a6979{['tableProperties'];['tableCellProperties'];constructor(_0x535272){super(_0x535272),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4caefa=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4fe15a of this['tableProperties'])_0x4caefa['enableCommand'](_0x4fe15a,(_0xf18ee6,_0x1a2140)=>{const _0x41f6dc=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4fe15a,[_0x41f6dc],this['tableProperties'],'tableProperties',_0xf18ee6,_0x1a2140);});_0x4caefa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4caefa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4caefa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x38a60e,_0x3fd1f6)=>this['handleDiscardAction'](this['tableProperties'],_0x38a60e,_0x3fd1f6)),_0x4caefa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3d4f01 of this['tableCellProperties'])_0x4caefa['enableCommand'](_0x3d4f01,(_0x12e9f1,_0x90b542)=>{const _0x5c1a33=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3d4f01,_0x5c1a33,this['tableCellProperties'],'tableCellProperties',_0x12e9f1,_0x90b542);});_0x4caefa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4caefa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4caefa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1bfd74,_0x4daa0d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1bfd74,_0x4daa0d)),_0x4caefa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4caefa['descriptionFactory']['registerDescriptionCallback'](_0x588186=>this['handleSuggestionDescription'](_0x588186));}['_handlePropertyChange'](_0x412457,_0x18b677,_0x4dfa9a,_0x36efdb,_0x569657,_0x1f5ad3){const _0x6db6e1=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1f5ad3['batch'],()=>{for(const _0xa254b0 of _0x18b677){if(this['_getSuggestion'](_0xa254b0,_0x36efdb))_0x569657(_0x1f5ad3);else{const _0x59d332={};for(const _0x5ad961 of _0x4dfa9a){const _0x379397=_0xa254b0['getAttribute'](_0x5ad961);void 0x0!==_0x379397&&(_0x59d332[_0x5ad961]=_0x379397);}_0x569657(_0x1f5ad3),_0x6db6e1['markBlockFormat'](_0xa254b0,{'commandParams':[_0x59d332]},[],_0x36efdb);}}});}['handleDiscardAction'](_0x1c9481,_0x313408,_0xa2b247){const _0x3a9070=_0x313408[0x0]['start']['nodeAfter'],_0x2a181e=_0xa2b247['commandParams'][0x0];this['editor']['model']['change'](_0x33ed0a=>{for(const _0x4a0dd1 of _0x1c9481)void 0x0!==_0x2a181e[_0x4a0dd1]?_0x33ed0a['setAttribute'](_0x4a0dd1,_0x2a181e[_0x4a0dd1],_0x3a9070):_0x33ed0a['removeAttribute'](_0x4a0dd1,_0x3a9070);});}['handleSuggestionDescription'](_0x78bf85){if(_0x78bf85['data'])switch(_0x78bf85['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5979d3,_0x3c13e1){const _0x182f5b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3bd357 of _0x182f5b['getSuggestions']({'skipNotAttached':!0x0})){const _0x1c36ba=_0x3bd357['getContainedElement']();if(_0x3bd357['subType']===_0x3c13e1&&_0x1c36ba===_0x5979d3)return _0x3bd357;}return null;}}const u='$elementName';class p extends _0x2a6979{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5d31d4,_0x291c54,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48ec45){super(_0x48ec45),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2ad8d3,_0x5465d5,_0x188f3d,_0x4da92f)=>{this['_model']['change'](()=>{for(const _0x59827c of[..._0x4da92f,..._0x188f3d])this['_model']['markers']['has'](_0x59827c)&&_0x48ec45['editing']['reconvertMarker'](_0x59827c);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x48ec45['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x48ec45['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x48ec45['config']['get']('trackChanges.trackFormatChanges'),_0x48ec45['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x48ec45['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x48ec45,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xf5787e=this['editor'],_0x137c1b=(_0x370a60,_0x5801b1)=>{if('attribute'!=_0x370a60)return'ck-suggestion-marker-'+_0x370a60;const _0x54fc1e=_0x5801b1['split']('|')[0x0];return this['_isBlockAttribute'](_0x54fc1e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xf5787e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x546314=>{const {id:_0x394463,authorId:_0xb025e9,type:_0x41d1fc,subType:_0x17809c}=this['_splitMarkerName'](_0x546314['markerName']),_0x5c32b6=['ck-suggestion-marker',_0x137c1b(_0x41d1fc,_0x17809c)];let _0x12f57b=0xbb8;return this['activeMarkers']['includes'](_0x546314['markerName'])&&(_0x5c32b6['push']('ck-suggestion-marker--active'),_0x12f57b=0xbc2),'deletion'==_0x41d1fc&&(_0x12f57b+=0x5),{'classes':_0x5c32b6,'attributes':{'data-suggestion':_0x394463,'data-author-id':_0xb025e9},'priority':_0x12f57b};}}),_0xf5787e['conversion']['for']('dataDowncast')['add'](_0x319318=>{_0x319318['on']('addMarker:suggestion',(_0x653eb5,_0x89af0c,_0x2f2585)=>{if(!_0x2f2585['options']['showSuggestionHighlights'])return;const _0x2cac4=_0x89af0c['item'];if(!_0x2cac4)return;const _0x11b7f7=_0x2f2585['mapper']['toViewElement'](_0x2cac4);_0xf5787e['model']['schema']['isObject'](_0x2cac4)&&_0x11b7f7&&!_0x11b7f7['getCustomProperty']('widget')&&_0x11b7f7['is']('containerElement')&&_0x4a09b3(_0x11b7f7,_0x2f2585['writer']);},{'priority':'high'});}),_0xf5787e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2cc048,_0x246ac9)=>{if(!_0x246ac9['options']['showSuggestionHighlights'])return null;const {type:_0xe3eb1d,subType:_0x10abde}=this['_splitMarkerName'](_0x2cc048['markerName']);return{'classes':['ck-suggestion-marker',_0x137c1b(_0xe3eb1d,_0x10abde)],'priority':0xbb8};}});const _0x265279=({showActiveMarkers:_0x3490b1=!0x0,isAttributeSuggestion:_0x25680c=!0x1}={})=>(_0x2213e9,_0x51d7c7,_0x285616)=>{if(!_0x51d7c7['item'])return;const {id:_0x3a1728,authorId:_0x41874a}=this['_splitMarkerName'](_0x51d7c7['markerName']);if(_0x25680c){const _0x293e66=this['_suggestions']['get'](_0x3a1728),_0x424f90=this['_getAttributeKey'](_0x293e66);if(!this['_isBlockAttribute'](_0x424f90))return;}if(_0x51d7c7['item']['is']('selection'))return void _0x285616['consumable']['consume'](_0x51d7c7['item'],_0x2213e9['name']);const _0x249264=_0x285616['mapper']['toViewElement'](_0x51d7c7['item']);if(_0x51d7c7['item']['is']('element')&&_0xf5787e['model']['schema']['isBlock'](_0x51d7c7['item'])&&!_0x249264['getCustomProperty']('addHighlight')){_0x285616['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x249264),_0x285616['writer']['setAttribute']('data-suggestion',_0x3a1728,_0x249264),_0x285616['writer']['setAttribute']('data-author-id',_0x41874a,_0x249264),_0x285616['mapper']['bindElementToMarker'](_0x249264,_0x51d7c7['markerName']),_0x3490b1&&(this['activeMarkers']['includes'](_0x51d7c7['markerName'])?_0x285616['writer']['addClass']('ck-suggestion-marker--active',_0x249264):_0x285616['writer']['removeClass']('ck-suggestion-marker--active',_0x249264));for(const _0x4b9bcb of _0xf5787e['model']['createRangeIn'](_0x51d7c7['item'])['getItems']())_0x285616['consumable']['consume'](_0x4b9bcb,_0x2213e9['name']);_0x285616['consumable']['consume'](_0x51d7c7['item'],_0x2213e9['name']);}};_0xf5787e['conversion']['for']('dataDowncast')['add'](_0x36295a=>{_0x36295a['on']('addMarker:suggestion:formatBlock',(_0x539b6c,_0x40b704,_0x2614bd)=>{_0x2614bd['options']['showSuggestionHighlights']&&_0x265279({'showActiveMarkers':!0x1})(_0x539b6c,_0x40b704,_0x2614bd);},{'priority':'highest'});}),_0xf5787e['conversion']['for']('dataDowncast')['add'](_0x4d55d7=>{_0x4d55d7['on']('addMarker:suggestion:attribute',(_0x43bcf4,_0x5443b8,_0x221af1)=>{_0x221af1['options']['showSuggestionHighlights']&&_0x265279({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x43bcf4,_0x5443b8,_0x221af1);},{'priority':'highest'});}),_0xf5787e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x329c60,_0x4623b0)=>_0x4623b0['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x329c60['substr'](0xb)}}),_0xf5787e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a2a9d,{writer:_0x74f4bf})=>{let _0x1f05f0='suggestion:'+_0x4a2a9d['getAttribute']('suggestion-type')+':'+_0x4a2a9d['getAttribute']('id');return _0x4a2a9d['getAttribute']('marker-count')&&(_0x1f05f0+=':'+_0x4a2a9d['getAttribute']('marker-count')),_0x74f4bf['createElement']('$marker',{'data-name':_0x1f05f0});}}),_0xf5787e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xf5787e['conversion']['for']('editingDowncast')['add'](_0x559f0f=>{_0x559f0f['on']('addMarker:suggestion:formatBlock',_0x265279(),{'priority':'high'});}),_0xf5787e['conversion']['for']('editingDowncast')['add'](_0x109a66=>{_0x109a66['on']('addMarker:suggestion:attribute',_0x265279({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xf5787e['conversion']['for']('editingDowncast')['add'](_0x4a4e52=>{_0x4a4e52['on']('removeMarker:suggestion:formatBlock',(_0x27b9e8,_0xe81d30,_0x30a2d8)=>{const _0xd6d894=_0x30a2d8['mapper']['markerNameToElements'](_0xe81d30['markerName']);if(_0xd6d894){for(const _0x21d1a1 of _0xd6d894)_0x21d1a1['getCustomProperty']('addHighlight')||(_0x30a2d8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x21d1a1),_0x30a2d8['writer']['removeAttribute']('data-suggestion',_0x21d1a1),_0x30a2d8['writer']['removeAttribute']('data-author-id',_0x21d1a1),_0x30a2d8['mapper']['unbindElementFromMarkerName'](_0x21d1a1,_0xe81d30['markerName']));}},{'priority':'high'});}),_0xf5787e['conversion']['for']('editingDowncast')['add'](_0x3a0fc3=>{_0x3a0fc3['on']('removeMarker:suggestion:attribute',(_0x583642,_0x56b1c1,_0x249977)=>{const _0x521709=_0x249977['mapper']['markerNameToElements'](_0x56b1c1['markerName']);if(!_0x521709)return;const {id:_0x5d2052}=this['_splitMarkerName'](_0x56b1c1['markerName']),_0x1ddee4=this['_suggestions']['get'](_0x5d2052),_0x575997=this['_getAttributeKey'](_0x1ddee4);if(this['_isBlockAttribute'](_0x575997)){for(const _0x1a71ea of _0x521709)_0x1a71ea['getCustomProperty']('addHighlight')||(_0x249977['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a71ea),_0x249977['writer']['removeAttribute']('data-suggestion',_0x1a71ea),_0x249977['writer']['removeAttribute']('data-author-id',_0x1a71ea),_0x249977['mapper']['unbindElementFromMarkerName'](_0x1a71ea,_0x56b1c1['markerName']));}},{'priority':'high'});}),_0xf5787e['model']['document']['registerPostFixer'](_0x302a55=>{let _0x579bb9=!0x1;const _0x3ad586=Array['from'](_0xf5787e['model']['document']['differ']['getChangedMarkers']()),_0x31eacf=new Set();for(const {name:_0x4456b2,data:_0xefb013}of _0x3ad586){const {group:_0xf60726,type:_0x30b929,subType:_0x51939a,id:_0x14fae1}=this['_splitMarkerName'](_0x4456b2);if('suggestion'!==_0xf60726)continue;const _0x59f024=this['_suggestions']['get'](_0x14fae1);if(null!=_0xefb013['newRange']){'formatInline'==_0x30b929&&(_0x579bb9=_0x579bb9||Lt(_0xefb013['newRange'],_0x4456b2,_0x302a55,_0xf5787e['model']['schema']));const _0x3aed3d='attribute'==_0x30b929&&this['_isBlockAttribute'](_0x51939a['split']('|')[0x0]);if(_0xefb013['newRange']['isCollapsed']||'$graveyard'==_0xefb013['newRange']['root']['rootName']||'formatBlock'==_0x30b929&&!Kt(_0xefb013['newRange'])||_0x3aed3d&&!Kt(_0xefb013['newRange'])||'deletion'==_0x30b929&&!(!Gt(_0x25a5c6=_0xefb013['newRange'])&&!function(_0x3890c0){return _0x3890c0['start']['parent']==_0x3890c0['end']['nodeBefore']&&_0x3890c0['start']['isAtEnd'];}(_0x25a5c6)))_0x302a55['removeMarker'](_0x4456b2),_0x579bb9=!0x0;else{if(!_0x59f024||!_0x59f024['isInContent'])continue;if(_0xefb013['newRange']&&_0xefb013['oldRange']&&_0xefb013['newRange']['isEqual'](_0xefb013['oldRange']))continue;_0x31eacf['add'](_0x59f024);}}}var _0x25a5c6;return _0x31eacf['size']>0x0&&(_0x579bb9=!!this['_joinWithAdjacentSuggestions'](_0x31eacf)||_0x579bb9),_0x579bb9;}),_0xf5787e['model']['document']['registerPostFixer'](_0x5c3446=>{let _0x3fa655=!0x1;for(const _0x5320af of _0xf5787e['model']['document']['differ']['getChanges']())if('insert'==_0x5320af['type'])for(const _0x370b67 of this['_suggestions']['values']()){if(_0x370b67['isMultiRange']||!_0x370b67['isInContent'])continue;const _0x20c0f2='formatBlock'==_0x370b67['type'],_0x152c58=this['_getAttributeKey'](_0x370b67),_0x2c9dc6=_0x152c58&&this['_isBlockAttribute'](_0x152c58);if(!_0x20c0f2&&!_0x2c9dc6)continue;const _0x330dc7=_0x370b67['getFirstRange']();if(_0x330dc7['start']['parent']!=_0x330dc7['end']['parent']&&!_0x330dc7['end']['isAtEnd']){const _0x9b007f=_0xf5787e['model']['createPositionAt'](_0x330dc7['start']['nodeAfter'],'end'),_0x432730=_0xf5787e['model']['createRange'](_0x330dc7['start'],_0x9b007f);_0x5c3446['updateMarker'](_0x370b67['getFirstMarker'](),{'range':_0x432730}),_0x3fa655=!0x0;}}return _0x3fa655;}),_0xf5787e['model']['document']['registerPostFixer'](_0x3763ee=>this['_processAttributeChanges'](_0x3763ee)),_0xf5787e['model']['document']['registerPostFixer'](_0x53d246=>!_0x53d246['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x53d246)),_0xf5787e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xf5787e['model']['document']['on']('change:data',(_0x568fbf,_0x715326)=>{if(!_0x715326['isLocal']||_0x715326['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5b3e24=_0xf5787e['model']['document']['differ']['getChanges']();if(0x0==_0x5b3e24['length'])return;const _0x20ca50=[],_0x5ab511=_0x5b3e24['filter'](_0x4afcd3=>'attribute'==_0x4afcd3['type']),_0x2148d9=_0x5b3e24['filter'](_0x211edd=>'insert'==_0x211edd['type']&&'$text'!=_0x211edd['name']);for(const _0x57f809 of _0x5ab511)this['_isRegisteredAttribute'](_0x57f809['attributeKey'])&&_0x20ca50['push']({'key':_0x57f809['attributeKey'],'newValue':_0x57f809['attributeNewValue'],'oldValue':_0x57f809['attributeOldValue'],'range':Ht(_0x57f809['range'],_0xf5787e['model'])});for(const _0x920732 of _0x2148d9){if('rename'!=_0x920732['action']&&'refresh'!=_0x920732['action'])continue;const _0x511660=qt(_0x920732['position']['nodeAfter'],_0xf5787e['model']),_0x5749ec=_0x920732['before'];'rename'==_0x920732['action']&&_0x20ca50['push']({'key':u,'newValue':_0x920732['name'],'oldValue':_0x5749ec['name'],'range':_0x511660});for(const [_0x3d7d64,_0x11ec51]of _0x5749ec['attributes']){if(!this['_isRegisteredAttribute'](_0x3d7d64))continue;const _0x12eae7=_0x920732['attributes']['get'](_0x3d7d64);_0x11ec51!==_0x12eae7&&_0x20ca50['push']({'key':_0x3d7d64,'newValue':_0x12eae7,'oldValue':_0x11ec51,'range':_0x511660});}for(const [_0x4c394e,_0x3cc280]of _0x920732['attributes'])this['_isRegisteredAttribute'](_0x4c394e)&&(_0x5749ec['attributes']['has'](_0x4c394e)||_0x20ca50['push']({'key':_0x4c394e,'newValue':_0x3cc280,'oldValue':null,'range':_0x511660}));}0x0!=_0x20ca50['length']&&_0xf5787e['model']['enqueueChange'](_0x715326,_0x25855f=>{const _0x2c9e59=_0x1db959();for(const {range:_0x53afd8,key:_0xd38908,oldValue:_0x2aff5d,newValue:_0x24e320}of _0x20ca50)this['markAttributeChange'](_0x53afd8,_0xd38908,_0x2aff5d,_0x24e320,{'groupId':_0x2c9e59});this['_reduceExistingSuggestions'](_0x25855f,_0x20ca50);});},{'priority':'lowest'}),_0xf5787e['model']['markers']['on']('update:suggestion',(_0x2b0f73,_0x453f95,_0xb05c67)=>{if(null==_0xb05c67){const {id:_0x671b69}=this['_splitMarkerName'](_0x453f95['name']),_0x160884=this['_suggestions']['get'](_0x671b69);_0x160884&&_0x160884['addMarkerName'](_0x453f95['name']);}}),_0xf5787e['model']['document']['on']('change:data',()=>{const _0x509aea=Array['from'](_0xf5787e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1953c8=>'suggestion'===this['_splitMarkerName'](_0x1953c8['name'])['group']);if(0x0===_0x509aea['length'])return;_0x509aea['sort']((_0xcfd65f,_0x36003e)=>{const _0x5ab832=_0xcfd65f['data']['oldRange'],_0xc655e7=_0x36003e['data']['oldRange'];return null===_0x5ab832&&null===_0xc655e7?0x0:null===_0x5ab832&&null!==_0xc655e7?-0x1:null!==_0x5ab832&&null===_0xc655e7?0x1:_0x5ab832['start']['isBefore'](_0xc655e7['start'])?-0x1:0x1;});const _0x4d7133=new Set(),_0xc8c8ca=new Set();for(const {name:_0x3f7171,data:_0x2e1dc5}of _0x509aea){const {id:_0x35d3d2}=this['_splitMarkerName'](_0x3f7171);if(null===_0x2e1dc5['oldRange']){const _0x35459d=this['_handleNewSuggestionMarker'](_0x3f7171);_0xc8c8ca['add'](_0x35459d);}else{const _0x39b1a6=this['_suggestions']['get'](_0x35d3d2);null!==_0x2e1dc5['newRange']||_0x39b1a6['isInContent']?(_0x4d7133['add'](_0x39b1a6['head']),_0xc8c8ca['add'](_0x39b1a6)):this['_removeSuggestion'](_0x39b1a6);}}_0xc8c8ca['size']>0x0&&this['_refreshSuggestionsChain'](_0xc8c8ca);for(const _0x414ee3 of _0x4d7133)this['fire']('suggestionChanged',_0x414ee3);}),_0xf5787e['model']['on']('applyOperation',(_0x15d500,_0x4ecbfd)=>{const _0x3f79d3=_0x4ecbfd[0x0];if(!this['_suggestions']['size'])return;if(!_0x3f79d3['isDocumentOperation'])return;if(_0x3f79d3['batch']['isUndo']||!_0x3f79d3['batch']['isLocal'])return;let _0x622f47,_0xb9c7d7;switch(_0x3f79d3['type']){case'insert':_0x622f47=_0xf5787e['model']['createPositionAt'](_0x3f79d3['position']),_0xb9c7d7=_0x622f47['getShiftedBy'](_0x3f79d3['howMany']);break;case'split':_0x622f47=_0xf5787e['model']['createPositionAt'](_0x3f79d3['splitPosition']),_0xb9c7d7=_0xf5787e['model']['createPositionAt'](_0x3f79d3['moveTargetPosition']);break;case'move':_0x622f47=_0xf5787e['model']['createPositionAt'](_0x3f79d3['targetPosition']),_0xb9c7d7=_0x622f47['getShiftedBy'](_0x3f79d3['howMany']);break;default:return;}const _0x4ee018=_0xf5787e['model']['createRange'](_0x622f47,_0xb9c7d7);_0xf5787e['model']['change'](()=>{for(const {suggestion:_0x4e2b5f,meta:_0x4b1e62}of this['_findSuggestions'](_0x4ee018)){if(_0x4e2b5f['isMultiRange'])continue;if('formatInline'==_0x4e2b5f['type'])continue;const _0x448185=this['_getAttributeKey'](_0x4e2b5f);if(_0x448185&&this['_isBlockAttribute'](_0x448185)&&'split'!=_0x3f79d3['type'])continue;const _0x3ec587=_0x4e2b5f['data']&&_0x4e2b5f['data']['multipleBlocks'];('formatBlock'!=_0x4e2b5f['type']||'split'==_0x3f79d3['type']&&!_0x3ec587)&&(_0x4b1e62['containsRangeInObject']||'insertion'==_0x4e2b5f['type']&&_0x4b1e62['isOwn']||_0x4e2b5f['getFirstRange']()['containsRange'](_0x4ee018)&&this['_breakSuggestionMarker'](_0x4e2b5f,_0x622f47,_0xb9c7d7));}});},{'priority':'lowest'}),_0xf5787e['model']['on']('deleteContent',(_0x2ce49c,_0x1fc124)=>{const _0x3cacd6=_0x1fc124[0x0],_0x33527b=_0x1fc124[0x1];if(_0x33527b&&_0x33527b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3cacd6['isCollapsed'])return;const _0x2b8a84=_0xf5787e['model']['schema'],{start:_0x298b89,end:_0x2f1a16}=_0x3cacd6['getFirstRange'](),_0x2caa00=_0x298b89['nodeAfter']&&_0x2b8a84['isLimit'](_0x298b89['nodeAfter'])?null:_0x2b8a84['getNearestSelectionRange'](_0x298b89,'forward'),_0x1c25bf=_0x2f1a16['nodeBefore']&&_0x2b8a84['isLimit'](_0x2f1a16['nodeBefore'])?null:_0x2b8a84['getNearestSelectionRange'](_0x2f1a16,'backward'),_0x1ad798=_0xf5787e['model']['createRange'](_0x2caa00?_0x2caa00['start']:_0x298b89,_0x1c25bf?_0x1c25bf['end']:_0x2f1a16);_0xf5787e['model']['change'](_0x56a361=>{this['markDeletion'](_0x1ad798);const _0x5ef549=_0xf5787e['model']['schema']['getNearestSelectionRange'](_0x1ad798['start']);_0x3cacd6['is']('documentSelection')?_0x56a361['setSelection'](_0x5ef549):_0x3cacd6['setTo'](_0x5ef549);}),_0x2ce49c['stop']();},{'priority':_0x41be5b['normal']+0xa}),_0xf5787e['model']['on']('insertContent',(_0x54a24b,_0x1c812c)=>{const _0x352904=_0x1c812c[_0x1c812c['length']-0x1];_0x352904&&_0x352904['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xf5787e['model']['change'](()=>{let _0xa7b4e5=_0xf5787e['model']['insertContent'](_0x1c812c[0x0],_0x1c812c[0x1],_0x1c812c[0x2],{'forceDefaultExecution':!0x0});if(!_0xa7b4e5)return;_0x54a24b['return']=_0xa7b4e5['clone']();const _0x19853b=_0xa7b4e5['end']['nodeBefore'],_0x2f9881=_0xf5787e['model']['schema'];_0x19853b&&_0x2f9881['isBlock'](_0x19853b)&&!_0x2f9881['isObject'](_0x19853b)&&(_0xa7b4e5=_0xf5787e['model']['createRange'](_0xa7b4e5['start'],_0xf5787e['model']['createPositionAt'](_0x19853b,'end'))),this['markInsertion'](_0xa7b4e5);}),_0x54a24b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4495a0=new O(_0xf5787e,this['_suggestions']);_0xf5787e['commands']['add']('acceptSuggestion',_0x4495a0),this['enableCommand']('acceptSuggestion');const _0x1177e7=new R(_0xf5787e,this['_suggestions']);_0xf5787e['commands']['add']('discardSuggestion',_0x1177e7),this['enableCommand']('discardSuggestion'),_0xf5787e['commands']['add']('acceptAllSuggestions',new x(_0xf5787e,_0x4495a0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xf5787e['commands']['add']('discardAllSuggestions',new x(_0xf5787e,_0x1177e7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xf5787e['commands']['add']('acceptSelectedSuggestions',new E(_0xf5787e,_0x4495a0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xf5787e['commands']['add']('discardSelectedSuggestions',new E(_0xf5787e,_0x1177e7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2a998d=_0xf5787e['plugins']['get']('CommentsRepository');this['listenTo'](_0x2a998d,'addComment',(_0x22af19,{threadId:_0x4a13e8})=>{const _0x43732d=this['_suggestions']['get'](_0x4a13e8);_0x43732d&&_0x43732d['commentThread']&&0x1===_0x43732d['commentThread']['length']&&this['_updateSuggestionData'](_0x4a13e8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2a998d,'removeComment',(_0x5c2b39,{threadId:_0x401f7d})=>{const _0x18706b=this['_suggestions']['get'](_0x401f7d);_0x18706b&&_0x18706b['commentThread']&&!_0x18706b['commentThread']['length']&&this['_updateSuggestionData'](_0x401f7d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x56ea1c){const _0x38f1c7=_0x35d4dd([0x44,0x69,0x37,0x55,0x74,0x5a,0x6a,0x42,0x33,0x4e,0x4d,0x58,0x35,0x4c,0x30,0x6b,0x39,0x65,0x6d,0x6f,0x66,0x56,0x59,0x36,0x47,0x75,0x31,0x46,0x61,0x62,0x72,0x77,0x7a,0x70,0x67,0x64,0x50,0x71,0x73,0x54,0x45,0x57,0x38,0x49,0x51,0x79,0x4b,0x48,0x63,0x34,0x32,0x78,0x68,0x53,0x76,0x6c,0x6e,0x41,0x4a,0x4f,0x43,0x52]),_0xc553de=0x6e89a241,_0x487303=0x6e8ec249^_0xc553de,_0x58df6c=window[_0x35d4dd([0x44,0x61,0x74,0x65])][_0x35d4dd([0x6e,0x6f,0x77])](),_0x178ff4=_0x56ea1c[_0x35d4dd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e2915=new window[(_0x35d4dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbb8193=>{_0x178ff4[_0x35d4dd([0x6f,0x6e,0x63,0x65])](_0x35d4dd([0x72,0x65,0x61,0x64,0x79]),_0xbb8193);}),_0x1fd71b={[_0x35d4dd([0x6b,0x74,0x79])]:_0x35d4dd([0x45,0x43]),[_0x35d4dd([0x75,0x73,0x65])]:_0x35d4dd([0x73,0x69,0x67]),[_0x35d4dd([0x63,0x72,0x76])]:_0x35d4dd([0x50,0x2d,0x32,0x35,0x36]),[_0x35d4dd([0x78])]:_0x35d4dd([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x35d4dd([0x79])]:_0x35d4dd([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x35d4dd([0x61,0x6c,0x67])]:_0x35d4dd([0x45,0x53,0x32,0x35,0x36])},_0xdacda1=_0x178ff4[_0x35d4dd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x35d4dd([0x67,0x65,0x74])](_0x35d4dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4948cc(){let _0x212549,_0x14be03=null,_0x1a6420=null;try{if(_0xdacda1==_0x35d4dd([0x47,0x50,0x4c]))return _0x35d4dd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x212549=_0x219c45(),!_0x212549)return _0x35d4dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x212549[_0x35d4dd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a6420=_0xb5eb19(_0x212549[_0x35d4dd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x212549[_0x35d4dd([0x6a,0x74,0x69])])),await _0x5e5b60()?_0x2f08b7()?_0x4aeaf4()?_0x35d4dd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x157fcf()?(_0x212549[_0x35d4dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35d4dd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14be03=_0x2941a9(_0x35d4dd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x212549[_0x35d4dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35d4dd([0x74,0x72,0x69,0x61,0x6c])&&(_0x14be03=_0x2941a9(_0x35d4dd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x233c19()):_0x35d4dd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x35d4dd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x35d4dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x181f79){return _0x35d4dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4aeaf4(){const _0x38f51c=[_0x35d4dd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x35d4dd([0x74,0x72,0x69,0x61,0x6c])][_0x35d4dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x212549[_0x35d4dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58df6c/0x3e8:0xe10*_0x487303;return _0x212549[_0x35d4dd([0x65,0x78,0x70])]<_0x38f51c;}function _0x2f08b7(){const _0x3a209e=_0x212549[_0x35d4dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3a209e)return!0x1;if(_0x3a209e[_0x35d4dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d4dd([0x2a])))return!0x0;if(_0x3a209e[_0x35d4dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d4dd([0x54,0x43])))return!0x0;if(_0x3a209e[_0x35d4dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d4dd([0x52,0x54,0x43]))){if(_0x31c51a())return!0x0;if(_0x32ab15()||_0x2ff949())return!0x0;}return!0x1;}function _0x157fcf(){const _0x2fcdf5=_0x212549[_0x35d4dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fcdf5||0x0==_0x2fcdf5[_0x35d4dd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f525c}=new URL(window[_0x35d4dd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2fcdf5[_0x35d4dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f525c))return!0x0;const _0x44ddf6=_0x4f525c[_0x35d4dd([0x73,0x70,0x6c,0x69,0x74])](_0x35d4dd([0x2e]));return _0x2fcdf5[_0x35d4dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x104de8=>_0x104de8[_0x35d4dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d4dd([0x2a])))[_0x35d4dd([0x6d,0x61,0x70])](_0x54dd7b=>_0x54dd7b[_0x35d4dd([0x73,0x70,0x6c,0x69,0x74])](_0x35d4dd([0x2e])))[_0x35d4dd([0x73,0x6f,0x6d,0x65])](_0x284d46=>_0x44ddf6[_0x35d4dd([0x65,0x76,0x65,0x72,0x79])]((_0x2ce2c5,_0x15eaf3)=>_0x284d46[_0x15eaf3]===_0x2ce2c5||_0x284d46[_0x15eaf3]===_0x35d4dd([0x2a])));}function _0x233c19(){return _0x14be03&&_0x1a6420?new window[(_0x35d4dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe398f4,_0x109a99)=>{_0x14be03[_0x35d4dd([0x74,0x68,0x65,0x6e])](_0xe398f4,_0x109a99),_0x1a6420[_0x35d4dd([0x74,0x68,0x65,0x6e])](_0x2debd6=>{_0x2debd6!=_0x35d4dd([0x56,0x61,0x6c,0x69,0x64])&&_0xe398f4(_0x2debd6);},_0x109a99);}):_0x14be03||_0x1a6420||_0x35d4dd([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb5eb19(_0x43dfc9,_0x5e220b){return new window[(_0x35d4dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41c9d7=>{if(_0x10c02b())return _0x41c9d7(_0x35d4dd([0x56,0x61,0x6c,0x69,0x64]));_0x49541f(),_0x178ff4[_0x35d4dd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x35d4dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x134320=!0x1;const _0xb07180=_0x1db959();function _0x3581be(_0x33bbf1){return!!_0x33bbf1&&(typeof _0x33bbf1===_0x35d4dd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x33bbf1===_0x35d4dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x33bbf1[_0x35d4dd([0x74,0x68,0x65,0x6e])]===_0x35d4dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x33bbf1[_0x35d4dd([0x63,0x61,0x74,0x63,0x68])]===_0x35d4dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc7477(_0x1be7d7){_0x3dfe8d(_0x1be7d7)[_0x35d4dd([0x74,0x68,0x65,0x6e])](_0x59afd2=>{if(!_0x59afd2||_0x59afd2[_0x35d4dd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x35d4dd([0x6f,0x6b]))return _0x35d4dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x8d31be(_0x75e76(_0xb07180+_0x5e220b))!=_0x59afd2[_0x35d4dd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x35d4dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x35d4dd([0x56,0x61,0x6c,0x69,0x64]);})[_0x35d4dd([0x74,0x68,0x65,0x6e])](_0x182089=>(_0x581ae6(),_0x182089),()=>{const _0x57abfe=_0x3a7b97();return null==_0x57abfe?(_0x581ae6(),_0x35d4dd([0x56,0x61,0x6c,0x69,0x64])):_0x35d4dd(_0x58df6c-_0x57abfe>(0x4a852641^_0xc553de)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x35d4dd([0x74,0x68,0x65,0x6e])](_0x41c9d7)[_0x35d4dd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41c9d7(_0x35d4dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e3b62=0x6ebf4cc1^_0xc553de;function _0x581ae6(){const _0x1d9c9a=_0x35d4dd([0x6c,0x6c,0x63,0x74,0x2d])+_0x8d31be(_0x75e76(_0x43dfc9)),_0x3a4bcf=_0x58a6ce(_0x8d31be(window[_0x35d4dd([0x4d,0x61,0x74,0x68])][_0x35d4dd([0x63,0x65,0x69,0x6c])](_0x58df6c/_0x1e3b62)));window[_0x35d4dd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35d4dd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d9c9a,_0x3a4bcf);}function _0x3a7b97(){const _0xa5f4ed=_0x35d4dd([0x6c,0x6c,0x63,0x74,0x2d])+_0x8d31be(_0x75e76(_0x43dfc9)),_0x49b027=window[_0x35d4dd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35d4dd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa5f4ed);return _0x49b027?window[_0x35d4dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58a6ce(_0x49b027),0x10)*_0x1e3b62:null;}function _0x3dfe8d(_0x57ca11){return new window[(_0x35d4dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37df37,_0x10807d)=>{_0x57ca11[_0x35d4dd([0x74,0x68,0x65,0x6e])](_0x37df37,_0x10807d),window[_0x35d4dd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10807d,0x6e887681^_0xc553de);});}}_0x178ff4[_0x35d4dd([0x6f,0x6e])](_0x35d4dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x207dad,_0x59b42d)=>{if(_0x59b42d[0x0]!=_0x43dfc9)return _0x41c9d7(_0x35d4dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x59b42d[0x1]={..._0x59b42d[0x1],[_0x35d4dd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb07180};},{[_0x35d4dd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35d4dd([0x68,0x69,0x67,0x68])}),_0x178ff4[_0x35d4dd([0x6f,0x6e])](_0x35d4dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4af2f3=>{_0x3581be(_0x4af2f3[_0x35d4dd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x134320=!0x0,_0xc7477(_0x4af2f3[_0x35d4dd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x35d4dd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35d4dd([0x6c,0x6f,0x77])}),_0x5e2915[_0x35d4dd([0x74,0x68,0x65,0x6e])](()=>{_0x134320||_0x41c9d7(_0x35d4dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10c02b(){return _0x178ff4[_0x35d4dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35d4dd([0x76,0x69,0x65,0x77])][_0x35d4dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x35d4dd([0x61,0x75,0x74,0x6f]);}function _0x49541f(){_0x178ff4[_0x35d4dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35d4dd([0x76,0x69,0x65,0x77])][_0x35d4dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35d4dd([0x61,0x75,0x74,0x6f]);}}function _0x2941a9(_0x532167){const _0x5e67fa=[new window[(_0x35d4dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc3745=>setTimeout(_0xc3745,0x6e809c8d^_0xc553de)),_0x5e2915[_0x35d4dd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x35d4dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x87ff3e=>{let _0x34e770=0x0;_0x178ff4[_0x35d4dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x35d4dd([0x6f,0x6e])](_0x35d4dd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x285811,_0x4664e2)=>{_0x4664e2[0x0][_0x35d4dd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34e770++,_0x34e770==(0x6e89a3b9^_0xc553de)&&(_0x87ff3e(),_0x285811[_0x35d4dd([0x6f,0x66,0x66])]());});}))];return window[_0x35d4dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35d4dd([0x72,0x61,0x63,0x65])](_0x5e67fa)[_0x35d4dd([0x74,0x68,0x65,0x6e])](()=>_0x532167);}async function _0x5379fd(){await _0x5e2915,_0x178ff4[_0x35d4dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x35d4dd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x196f3b,_0x178ff4[_0x35d4dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x35d4dd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x196f3b,_0x178ff4[_0x35d4dd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x35d4dd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31c51a(){return _0x2b15ac(_0x35d4dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xb91358(_0x35d4dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x35d4dd([0x73,0x74,0x61,0x74,0x65])]==_0x35d4dd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x32ab15(){return _0x2b15ac(_0x35d4dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x2ff949(){return _0x2b15ac(_0x35d4dd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x465905(_0x5292f0){const _0x440bc1=_0x4fbea4();_0x178ff4[_0x440bc1]=_0x35d4dd([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5292f0,_0x5292f0!=_0x35d4dd([0x56,0x61,0x6c,0x69,0x64])&&_0x5379fd();}function _0x4fbea4(){const _0x5b2db9=window[_0x35d4dd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x35d4dd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x35d4dd([0x6e,0x6f,0x77])]())[_0x35d4dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x35d4dd([0x2e]),'');let _0x149a92=_0x35d4dd([0x44]);for(let _0x1eb8ee=0x0;_0x1eb8ee<_0x5b2db9[_0x35d4dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1eb8ee+=0x2){let _0x401d60=window[_0x35d4dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b2db9[_0x35d4dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1eb8ee,_0x1eb8ee+0x2));_0x401d60>=_0x38f1c7[_0x35d4dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x401d60-=_0x38f1c7[_0x35d4dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x149a92+=_0x38f1c7[_0x401d60];}return _0x149a92;}function _0x219c45(){const _0x5a2bd9=_0xdacda1[_0x35d4dd([0x73,0x70,0x6c,0x69,0x74])](_0x35d4dd([0x2e]));if(0x3!=_0x5a2bd9[_0x35d4dd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1188ca(_0x5a2bd9[0x1]);function _0x1188ca(_0x19447f){const _0x2f25bb=_0x565d29(_0x19447f);return _0x2f25bb&&_0x2752f4()?_0x2f25bb:null;function _0x2752f4(){const _0x15255f=_0x2f25bb[_0x35d4dd([0x6a,0x74,0x69])],_0x243af1=window[_0x35d4dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15255f[_0x35d4dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15255f[_0x35d4dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa1bf90={..._0x2f25bb,[_0x35d4dd([0x6a,0x74,0x69])]:_0x15255f[_0x35d4dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15255f[_0x35d4dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa1bf90[_0x35d4dd([0x76,0x63])],_0x75e76(_0xa1bf90)==_0x243af1;}}}async function _0x5e5b60(){let _0x1ae979=!0x0;try{const _0x86317f=_0xdacda1[_0x35d4dd([0x73,0x70,0x6c,0x69,0x74])](_0x35d4dd([0x2e])),[_0x5a43ef,_0x58daf1,_0x5db2d8]=_0x86317f;return _0xbf5ea3(_0x5a43ef),await _0x2768d7(_0x5a43ef,_0x58daf1,_0x5db2d8),_0x1ae979;}catch(_0x2b86d6){return!0x1;}function _0xbf5ea3(_0x1b836a){const _0x5171a7=_0x565d29(_0x1b836a);_0x5171a7&&_0x5171a7[_0x35d4dd([0x61,0x6c,0x67])]==_0x35d4dd([0x45,0x53,0x32,0x35,0x36])||(_0x1ae979=!0x1);}async function _0x2768d7(_0x48aa36,_0x2f46ef,_0x167df2){const _0x8e5581=window[_0x35d4dd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x35d4dd([0x66,0x72,0x6f,0x6d])](_0x44f27b(_0x167df2),_0x383502=>_0x383502[_0x35d4dd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3bf6d7=new window[(_0x35d4dd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x35d4dd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48aa36+_0x35d4dd([0x2e])+_0x2f46ef),_0x7b2fc7=window[_0x35d4dd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x35d4dd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7b2fc7)return;const _0x451f66=await _0x7b2fc7[_0x35d4dd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x35d4dd([0x6a,0x77,0x6b]),_0x1fd71b,{[_0x35d4dd([0x6e,0x61,0x6d,0x65])]:_0x35d4dd([0x45,0x43,0x44,0x53,0x41]),[_0x35d4dd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x35d4dd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x35d4dd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7b2fc7[_0x35d4dd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x35d4dd([0x6e,0x61,0x6d,0x65])]:_0x35d4dd([0x45,0x43,0x44,0x53,0x41]),[_0x35d4dd([0x68,0x61,0x73,0x68])]:{[_0x35d4dd([0x6e,0x61,0x6d,0x65])]:_0x35d4dd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x451f66,_0x8e5581,_0x3bf6d7)||(_0x1ae979=!0x1);}}function _0x565d29(_0x36a00d){return _0x36a00d[_0x35d4dd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x35d4dd([0x65,0x79]))?JSON[_0x35d4dd([0x70,0x61,0x72,0x73,0x65])](_0x44f27b(_0x36a00d)):null;}function _0x44f27b(_0x5ef063){return window[_0x35d4dd([0x61,0x74,0x6f,0x62])](_0x5ef063[_0x35d4dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x35d4dd([0x2b]))[_0x35d4dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x35d4dd([0x2f])));}function _0x75e76(_0x5d0b0c){let _0x1e94b7=0x1505;function _0x38b158(_0x4ea0d5){for(let _0xb3c77b=0x0;_0xb3c77b<_0x4ea0d5[_0x35d4dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb3c77b++){const _0x219926=_0x4ea0d5[_0x35d4dd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xb3c77b);_0x1e94b7=(_0x1e94b7<<0x5)+_0x1e94b7+_0x219926,_0x1e94b7&=_0x1e94b7;}}function _0x944da4(_0x124de7){Array[_0x35d4dd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x124de7)?_0x124de7[_0x35d4dd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x944da4):_0x124de7&&typeof _0x124de7==_0x35d4dd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x35d4dd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x124de7)[_0x35d4dd([0x73,0x6f,0x72,0x74])]()[_0x35d4dd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x390093,_0x2be6df])=>{_0x38b158(_0x390093),_0x944da4(_0x2be6df);}):_0x38b158(window[_0x35d4dd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x124de7));}return _0x944da4(_0x5d0b0c),_0x1e94b7>>>0x0;}function _0x8d31be(_0x3ce4e4){return _0x3ce4e4[_0x35d4dd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x35d4dd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x35d4dd([0x30]));}function _0x58a6ce(_0x29d7aa){return _0x29d7aa[_0x35d4dd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x35d4dd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x35d4dd([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b15ac(_0x51fcf0){return _0x178ff4[_0x35d4dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x35d4dd([0x68,0x61,0x73])](_0x51fcf0);}function _0xb91358(_0xa28e04){return _0x178ff4[_0x35d4dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x35d4dd([0x67,0x65,0x74])](_0xa28e04);}function _0x196f3b(){}function _0x35d4dd(_0x185ac1){return _0x185ac1['map'](_0x50c9c9=>String['fromCharCode'](_0x50c9c9))['join']('');}_0x465905(await _0x4948cc());}(this);}set['adapter'](_0x1d725c){if(this['_adapter'])throw new _0x540f03('track-changes-adapter-already-set',this);this['_adapter']=_0x1d725c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x11a443=!0x1,toJSON:_0x14dd8e=!0x1}={}){const _0x130e36=[];for(const _0xa25853 of this['_suggestions']['values']())_0x11a443&&!_0xa25853['isInContent']||_0x130e36['push'](_0xa25853);return _0x14dd8e?_0x130e36['map'](_0x32d881=>_0x32d881['toJSON']()):_0x130e36;}['getSuggestion'](_0x81da2f){const _0x313eba=this['_suggestions']['get'](_0x81da2f);if(!_0x313eba)throw new _0x540f03('track-changes-suggestion-not-found',this);return _0x313eba;}['hasSuggestion'](_0x2608cd){return this['_suggestions']['has'](_0x2608cd);}['addSuggestionData'](_0xbe7b23){const {authorId:_0x4fe4e9,id:_0x273583,attributes:_0x59ad48}=_0xbe7b23,[_0x52f9b4,_0x2800d2]=_0xbe7b23['type']['split'](':'),_0x310c1b=this['_suggestions']['get'](_0x273583)||this['_createSuggestion'](_0x52f9b4,_0x2800d2,_0x273583,_0x4fe4e9,_0x59ad48);if(this['_addThreadToSuggestion'](_0x310c1b),this['_checkSuggestionCorrectness'](_0x310c1b,_0x52f9b4,_0x2800d2||null,_0x4fe4e9),_0x310c1b['createdAt']=_0xbe7b23['createdAt'],_0x310c1b['_isDataLoaded']=!0x0,_0x59ad48&&_0x59ad48['@external']){const _0x10324d=_0x59ad48['@external'],_0x30ca53=this['_getExternalAuthor'](_0x10324d['authorName']);_0x310c1b['authoredAt']=_0x10324d['createdAt'],_0x310c1b['author']=_0x30ca53,_0x310c1b['isExternal']=!0x0;}else _0x310c1b['authoredAt']=_0xbe7b23['createdAt'];switch(_0xbe7b23['data']&&(_0x310c1b['data']=_0xbe7b23['data']),_0xbe7b23['attributes']&&(_0x310c1b['attributes']=_0xbe7b23['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x310c1b['_saved']=!0x0),this['_suggestionState']['get'](_0x310c1b)){case'notReady':this['_suggestionState']['set'](_0x310c1b,'dataReady');break;case'markerReady':_0x310c1b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x310c1b])),this['_refreshSuggestionsChain'](new Set([_0x310c1b])),this['_suggestionState']['set'](_0x310c1b,'ready'),this['fire']('suggestionLoaded',_0x310c1b)):this['_suggestionState']['set'](_0x310c1b,'removed');}return _0x310c1b;}['acceptSuggestion'](_0x18a26e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x568495 of _0x18a26e['getAllAdjacentSuggestions']())_0x568495['accept']();});});}['discardSuggestion'](_0x4f368e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5df07a of _0x4f368e['getAllAdjacentSuggestions']())_0x5df07a['discard']();});});}['enableCommand'](_0x2cd2c4,_0xf1d4f4){const _0x613b05=this['editor']['commands']['get'](_0x2cd2c4);if(!_0x613b05)throw new _0x540f03('track-changes-command-not-found',this,{'commandName':_0x2cd2c4});if(this['_enabledCommands']['has'](_0x613b05))throw new _0x540f03('track-changes-enable-command-twice',this,{'commandName':_0x2cd2c4});this['_enabledCommands']['add'](_0x613b05),_0xf1d4f4&&_0x613b05['on']('execute',(_0x17fee5,_0x33b92c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x33b92c['length']>0x0&&_0x33b92c[_0x33b92c['length']-0x1]&&_0x33b92c[_0x33b92c['length']-0x1]['forceDefaultExecution']?_0x33b92c['pop']():(_0x17fee5['return']=_0xf1d4f4((..._0x338c8a)=>_0x613b05['execute'](..._0x338c8a,{'forceDefaultExecution':!0x0}),..._0x33b92c),_0x17fee5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5e87d0){let _0x3e1fbe,_0x54e402;const _0x4b0fec=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3e1fbe=_0x5e87d0();}catch(_0x5e814d){_0x54e402=_0x5e814d;}return _0x4b0fec||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x54e402&&_0x540f03['rethrowUnexpectedError'](_0x54e402,this),_0x3e1fbe;}['markInsertion'](_0x1f0f54,_0x4e92fd=null,_0x306271={}){if(_0x1f0f54['isCollapsed'])return null;const _0x38a4ee=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2aba96,meta:_0x4d56e1}of this['_findSuggestions'](_0x1f0f54,'insertion'))if(_0x4d56e1['isOwn']){if(!_0x4d56e1['isNextTo']){if(_0x4d56e1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x2aba96,_0x306271))continue;return _0x2aba96;}if(Qt(_0x2aba96,_0x306271))return _0x2aba96;this['_breakSuggestionMarker'](_0x2aba96,_0x1f0f54['start'],_0x1f0f54['end']);break;}if(_0x4e92fd==_0x2aba96['subType']&&Qt(_0x2aba96,_0x306271)){const _0x5d860c=_0x2aba96['getFirstRange']();return _0x5d860c['start']['isEqual'](_0x1f0f54['end'])?this['_setSuggestionRange'](_0x2aba96,this['_model']['createRange'](_0x1f0f54['start'],_0x5d860c['end'])):this['_setSuggestionRange'](_0x2aba96,this['_model']['createRange'](_0x5d860c['start'],_0x1f0f54['end'])),_0x2aba96;}}const _0x2019e3=_0x1db959(),_0x2db43a=_0x38a4ee['id'],_0x3fc3ae=_0x4e92fd?'insertion:'+_0x4e92fd:'insertion',_0x5bad65=this['_setSuggestionData']({'id':_0x2019e3,'type':_0x3fc3ae,'createdAt':new Date(),'authorId':_0x2db43a,'attributes':_0x306271});return this['_addSuggestionMarker'](_0x3fc3ae,_0x2019e3,_0x2db43a,_0x1f0f54),_0x5bad65;}['markMultiRangeInsertion'](_0x45d568,_0x523a17='multi',_0x453376={}){const _0x2889f9=this['editor']['plugins']['get']('Users')['me'],_0x4d4971=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x523a17,'join');for(const _0x3860f7 of this['getSuggestions']())if(_0x3860f7['author']['id']==_0x2889f9['id']&&'insertion'==_0x3860f7['type']&&_0x3860f7['subType']==_0x523a17&&Qt(_0x3860f7,_0x453376)&&(_0x4d4971(_0x3860f7['getRanges'](),_0x45d568)||_0x4d4971(_0x45d568,_0x3860f7['getRanges']()))){for(const _0x19aa6e of _0x45d568)_0x3860f7['addRange'](_0x19aa6e);return _0x3860f7;}for(const {suggestion:_0x1f70a5,meta:_0x2200fd}of this['_findSuggestions'](_0x45d568,'insertion')){if(!_0x2200fd['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2200fd['containsRangeInObject'])continue;if(!Qt(_0x1f70a5,_0x453376))continue;let _0x4a0450=!0x0;for(const _0x5b5ca3 of _0x1f70a5['getRanges']())for(const _0x300eb3 of _0x45d568)if(!_0x5b5ca3['containsRange'](_0x300eb3)){_0x4a0450=!0x1;break;}if(_0x4a0450)return _0x1f70a5;}const _0x29e874=_0x1db959(),_0x1a21e3=_0x2889f9['id'],_0x2ec91a='insertion:'+_0x523a17,_0x4cb0ae=this['_setSuggestionData']({'id':_0x29e874,'type':_0x2ec91a,'createdAt':new Date(),'authorId':_0x1a21e3,'attributes':_0x453376});for(const _0x4b1eac of _0x45d568)this['_addSuggestionMarker'](_0x2ec91a,_0x29e874,_0x1a21e3,_0x4b1eac,o['getMultiRangeId']());return _0x4cb0ae;}['markInlineFormat'](_0x56db96,_0x879f70,_0x532e62=null,_0xc10865={}){if(_0x532e62=_0x532e62||Jt(_0x879f70),_0x56db96['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x30329f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x532e62,'accept');return this['forceDefaultExecution'](()=>_0x30329f([_0x56db96],_0x879f70,_0xc10865)),null;}const _0x5e24c9=this['editor']['plugins']['get']('Users')['me'],_0x51d053=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4b739d,meta:_0x1d59aa}of this['_findSuggestions'](_0x56db96,'insertion'))_0x1d59aa['isOwn']&&!_0x1d59aa['isInsideObject']&&_0x51d053['push'](..._0x4b739d['getRanges']());}const _0x56a9e1=function(_0x4f5c17,_0x54e2d5){const _0x448548=[];for(const _0x5d2571 of _0x54e2d5){const _0x1c9a1a=_0x4f5c17['getIntersection'](_0x5d2571);_0x1c9a1a&&_0x448548['push'](_0x1c9a1a);}return _0x448548;}(_0x56db96,_0x51d053),_0x2ee07d=function(_0x37179f,_0x400f05){const _0x54f4a3=[_0x37179f];for(const _0x1a40cd of _0x400f05){let _0x34c20d=0x0;for(;_0x34c20d<_0x54f4a3['length'];){const _0xe40d4b=_0x54f4a3[_0x34c20d]['getDifference'](_0x1a40cd);_0x54f4a3['splice'](_0x34c20d,0x1,..._0xe40d4b),_0x34c20d+=_0xe40d4b['length'];}}return _0x54f4a3;}(_0x56db96,_0x51d053);_0x56a9e1['length']&&this['_model']['change'](()=>{for(const _0x2c524d of _0x56a9e1){const _0x11cfa2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x532e62,'accept');this['forceDefaultExecution'](()=>_0x11cfa2([_0x2c524d],_0x879f70,_0xc10865));}});for(const _0x53de0e of _0x2ee07d){let _0x489d47=null,_0x575bcf=_0x53de0e['start'],_0x446b62=_0x53de0e['end'];for(const {suggestion:_0x268a9f,meta:_0x52b6db}of this['_findSuggestions'](_0x53de0e,'formatInline')){if(!_0x52b6db['isOwn'])continue;if(_0x268a9f['subType']!=_0x532e62)continue;if(!Qt(_0x268a9f,_0xc10865))continue;const _0x48016b=_0x268a9f['getFirstRange']();if(_0x48016b['containsRange'](_0x53de0e,!0x0))return null;_0x575bcf=_0x575bcf['isBefore'](_0x48016b['start'])?_0x575bcf:_0x48016b['start'],_0x446b62=_0x446b62['isAfter'](_0x48016b['end'])?_0x446b62:_0x48016b['end'],_0x489d47?_0x48016b['start']['isBefore'](_0x489d47['getFirstRange']()['start'])?(_0x489d47['removeMarkers'](),_0x489d47=_0x268a9f):_0x268a9f['removeMarkers']():_0x489d47=_0x268a9f;}const _0x5b3283=this['_model']['createRange'](_0x575bcf,_0x446b62);if(_0x489d47)this['_setSuggestionRange'](_0x489d47,_0x5b3283);else{const _0x45f7ca=_0x1db959(),_0x45c342=_0x5e24c9['id'];this['_setSuggestionData']({'id':_0x45f7ca,'type':'formatInline:'+_0x532e62,'data':_0x879f70,'createdAt':new Date(),'authorId':_0x45c342,'attributes':_0xc10865}),this['_addSuggestionMarker']('formatInline:'+_0x532e62,_0x45f7ca,_0x45c342,_0x5b3283);}}return null;}['markBlockFormat'](_0x4d389e,_0x3fc225,_0x266082=[],_0x517e48=null,_0x3bd55f={}){_0x3fc225['formatGroupId']||(_0x3fc225['formatGroupId']=_0x3fc225['commandName']),_0x3fc225['multipleBlocks']=_0x4d389e['is']('range'),_0x517e48=_0x517e48||Jt(_0x3fc225);const _0xfb7951=_0x266082['map'](_0x463bb5=>qt(_0x463bb5,this['_model'])),_0x50006c=_0x4d389e['is']('range')?_0x4d389e:qt(_0x4d389e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x22fe71=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x517e48,'accept');return this['forceDefaultExecution'](()=>_0x22fe71([_0x50006c],_0x3fc225,_0x3bd55f)),null;}_0xfb7951['push'](_0x50006c);let _0x948738=!0x0;for(const _0x42a900 of _0xfb7951)if(!this['_rangeIsInLocalUserInsertion'](_0x42a900)){_0x948738=!0x1;break;}if(_0x948738&&'always'!==this['_trackFormatChanges']){const _0x366f5f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x517e48,'accept');return this['forceDefaultExecution'](()=>_0x366f5f([_0x50006c],_0x3fc225,_0x3bd55f)),null;}let _0x39dd54=null,_0x2a7728=_0x50006c['start'],_0x3a97c0=_0x50006c['end'];for(const {suggestion:_0x37da10,meta:_0xabae5d}of this['_findSuggestions'](_0x50006c,'formatBlock')){if(!_0xabae5d['isOwn'])continue;if(_0xabae5d['isNextTo']||_0xabae5d['containsRangeInObject']||_0xabae5d['isInsideObject'])continue;if(_0x37da10['data']['formatGroupId']!=_0x3fc225['formatGroupId'])continue;if(!Qt(_0x37da10,_0x3bd55f))continue;const _0x35aa56=_0x37da10['getFirstRange']();if(_0x37da10['subType']==_0x517e48){if(_0x35aa56['containsRange'](_0x50006c,!0x0))return null;_0x2a7728=_0x2a7728['isBefore'](_0x35aa56['start'])?_0x2a7728:_0x35aa56['start'],_0x3a97c0=_0x3a97c0['isAfter'](_0x35aa56['end'])?_0x3a97c0:_0x35aa56['end'],_0x39dd54?_0x35aa56['start']['isBefore'](_0x39dd54['getFirstRange']()['start'])?(_0x39dd54['removeMarkers'](),_0x39dd54=_0x37da10):_0x37da10['removeMarkers']():_0x39dd54=_0x37da10;}else{const _0x4b85fa=_0x50006c['getIntersection'](_0x35aa56);this['_cutOutSuggestionMarker'](_0x37da10,_0x4b85fa);}}const _0x4fbda1=this['editor']['plugins']['get']('Users')['me'],_0x306cad=_0x1db959(),_0x12f8ec=_0x4fbda1['id'];if(_0x39dd54)return this['_setSuggestionRange'](_0x39dd54,this['_model']['createRange'](_0x2a7728,_0x3a97c0)),_0x39dd54;{const _0x30d296=this['_setSuggestionData']({'id':_0x306cad,'type':'formatBlock:'+_0x517e48,'data':_0x3fc225,'createdAt':new Date(),'authorId':_0x12f8ec,'attributes':_0x3bd55f});return this['_addSuggestionMarker']('formatBlock:'+_0x517e48,_0x306cad,_0x12f8ec,this['_model']['createRange'](_0x2a7728,_0x3a97c0)),_0x30d296;}}['markMultiRangeBlockFormat'](_0x5b89f4,_0x30b68d,_0x17871c=[],_0x16006d=null,_0x857424={}){_0x30b68d['formatGroupId']||(_0x30b68d['formatGroupId']=_0x30b68d['commandName']);const _0x553965=_0x5b89f4[0x0];_0x30b68d['multipleBlocks']=_0x553965['is']('range'),_0x16006d=_0x16006d||Jt(_0x30b68d);const _0x35059b=_0x17871c['map'](_0x29f4d6=>qt(_0x29f4d6,this['_model'])),_0x5a99db=_0x553965['is']('range')?_0x5b89f4:_0x5b89f4['map'](_0x6bb79a=>qt(_0x6bb79a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5d1627=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16006d,'accept');return this['forceDefaultExecution'](()=>_0x5d1627(_0x5a99db,_0x30b68d,_0x857424)),null;}_0x35059b['push'](..._0x5a99db);let _0x6f100d=!0x0;for(const _0x1641ce of _0x35059b)if(!this['_rangeIsInLocalUserInsertion'](_0x1641ce)){_0x6f100d=!0x1;break;}if(_0x6f100d&&'always'!==this['_trackFormatChanges']){const _0x5965dd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16006d,'accept');return this['forceDefaultExecution'](()=>_0x5965dd(_0x5a99db,_0x30b68d,_0x857424)),null;}const _0x4c03bd=this['editor']['plugins']['get']('Users')['me'];for(const _0x2127e9 of this['getSuggestions']()){if(_0x2127e9['author']['id']!=_0x4c03bd['id'])continue;if('formatBlock'!=_0x2127e9['type']||_0x2127e9['data']['formatGroupId']!=_0x30b68d['formatGroupId'])continue;if(!Qt(_0x2127e9,_0x857424))continue;const _0x3b6ba3=_0x2127e9['subType']==_0x16006d;for(let _0x5572a0=0x0;_0x5572a0<_0x5a99db['length'];_0x5572a0++){const _0x336818=_0x5a99db[_0x5572a0];for(const _0x5913c2 of _0x2127e9['getMarkers']()){const _0x134b23=_0x5913c2['getRange']();if(_0x336818['isEqual'](_0x134b23)){_0x3b6ba3?(_0x5a99db['splice'](_0x5572a0,0x1),_0x5572a0--):_0x2127e9['removeMarker'](_0x5913c2['name']);break;}}}}if(0x0==_0x5a99db['length'])return null;const _0x3d00a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16006d,'join');for(const _0x219bd1 of this['getSuggestions']())if(_0x219bd1['author']['id']==_0x4c03bd['id']&&'formatBlock'==_0x219bd1['type']&&_0x219bd1['data']['formatGroupId']==_0x30b68d['formatGroupId']&&_0x219bd1['subType']==_0x16006d&&Qt(_0x219bd1,_0x857424)&&(_0x3d00a7(_0x219bd1['getRanges'](),_0x5a99db)||_0x3d00a7(_0x5a99db,_0x219bd1['getRanges']()))){for(const _0x302f09 of _0x5a99db)_0x219bd1['addRange'](_0x302f09);return _0x219bd1;}const _0x155f44=_0x1db959(),_0x426472=_0x4c03bd['id'],_0x3a022e='formatBlock:'+_0x16006d,_0x24294e=this['_setSuggestionData']({'id':_0x155f44,'type':_0x3a022e,'data':_0x30b68d,'createdAt':new Date(),'authorId':_0x426472,'attributes':_0x857424});for(const _0x4f7697 of _0x5a99db)this['_addSuggestionMarker'](_0x3a022e,_0x155f44,_0x426472,_0x4f7697,o['getMultiRangeId']());return _0x24294e;}['markDeletion'](_0x1c0ca8,_0x3f19c2=null,_0x190b7f={}){if(_0x1c0ca8['isCollapsed'])return null;const _0xfe0aa6=this['editor']['plugins']['get']('Users')['me'],_0x105dcf=new _0x444cae(_0x1c0ca8['start'],_0x1c0ca8['end']);for(const {suggestion:_0x56aaf2,meta:_0x2ead7c}of this['_findSuggestions'](_0x105dcf,'insertion'))if(_0x2ead7c['isOwn']&&!_0x2ead7c['isNextTo']){if(_0x56aaf2['isMultiRange']){const _0x1d4d02=_0x56aaf2['getRanges']()['filter'](_0x4dbbd6=>'$graveyard'!=_0x4dbbd6['root']['rootName']);_0x1d4d02['every'](_0x31314e=>_0x105dcf['containsRange'](_0x31314e,!0x0))&&_0x56aaf2['discard']();if(_0x1d4d02['some'](_0x5b6927=>_0x5b6927['containsRange'](_0x105dcf,!0x0))){const _0x2454f2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f19c2,'accept');return this['forceDefaultExecution'](()=>_0x2454f2([_0x105dcf],null,_0x190b7f)),null;}}else{const _0x5d9e33=_0x105dcf['getIntersection'](_0x56aaf2['getFirstRange']());null!==_0x5d9e33&&_0x56aaf2['_onDiscard']([_0x5d9e33],null,_0x190b7f);}}if(_0x105dcf['detach'](),_0x105dcf['isCollapsed']||'$graveyard'==_0x105dcf['root']['rootName'])return null;let _0x8ea771=null,_0xfd584c=_0x105dcf['start'],_0x1ebced=_0x105dcf['end'];const _0x432383=this['_findSuggestions'](_0x105dcf,'deletion');for(const {suggestion:_0x44dda2,meta:_0x161ded}of _0x432383){const _0x5a4e72=this['_model']['createRange'](_0xfd584c,_0x1ebced);if(_0x161ded['isOwn']&&(this['_mergeNestedSuggestions']||!_0x161ded['containsRangeInObject']&&!_0x161ded['isInsideObject'])){if(_0x44dda2['isMultiRange']){if(!Qt(_0x44dda2,_0x190b7f))continue;let _0x240f04=!0x0;for(const _0x46f6a2 of _0x44dda2['getRanges']()){if(_0x46f6a2['containsRange'](_0x5a4e72,!0x0))return _0x44dda2;_0x5a4e72['containsRange'](_0x46f6a2)||(_0x240f04=!0x1);}_0x240f04&&_0x44dda2['discard']();}else{const _0x385622=_0x44dda2['getFirstRange']();if(_0x385622['containsRange'](_0x5a4e72,!0x0))return _0x44dda2;if(!Qt(_0x44dda2,_0x190b7f)){_0x5a4e72['containsRange'](_0x385622)?_0x44dda2['removeMarkers']():_0x385622['containsPosition'](_0xfd584c)?_0xfd584c=_0x385622['end']:_0x385622['containsPosition'](_0x1ebced)&&(_0x1ebced=_0x385622['start']);continue;}_0xfd584c=_0xfd584c['isBefore'](_0x385622['start'])?_0xfd584c:_0x385622['start'],_0x1ebced=_0x1ebced['isAfter'](_0x385622['end'])?_0x1ebced:_0x385622['end'],_0x190b7f=Object['assign']({},_0x44dda2['attributes']),_0x8ea771?_0x385622['start']['isBefore'](_0x8ea771['getFirstRange']()['start'])?(_0x8ea771['removeMarkers'](),_0x8ea771=_0x44dda2):_0x44dda2['removeMarkers']():_0x8ea771=_0x44dda2;}}}if(_0x8ea771)return this['_setSuggestionRange'](_0x8ea771,this['_model']['createRange'](_0xfd584c,_0x1ebced)),_0x8ea771;{const _0x54ae17=_0x1db959(),_0x482c47=this['_model']['createRange'](_0xfd584c,_0x1ebced),_0x281e48=_0xfe0aa6['id'],_0x1bec14=_0x3f19c2?'deletion:'+_0x3f19c2:'deletion',_0x308108=this['_setSuggestionData']({'id':_0x54ae17,'type':_0x1bec14,'createdAt':new Date(),'authorId':_0x281e48,'attributes':_0x190b7f});return this['_addSuggestionMarker'](_0x1bec14,_0x54ae17,_0x281e48,_0x482c47),_0x308108;}}['markMultiRangeDeletion'](_0x43d760,_0x40bf38='multi',_0x1e588d={}){const _0x4e90f0=this['editor']['plugins']['get']('Users')['me'],_0x5d07b7=_0x43d760['map'](_0x28ceae=>new _0x444cae(_0x28ceae['start'],_0x28ceae['end'])),_0x38cec4=new Set();for(const {suggestion:_0x166147,meta:_0x55d80e}of this['_findSuggestions'](_0x5d07b7,'insertion'))_0x55d80e['isOwn']&&!_0x55d80e['isNextTo']&&_0x38cec4['add'](_0x166147);for(const _0x426a68 of _0x38cec4)if(_0x426a68['isMultiRange']){const _0x46da26=_0x426a68['getRanges']();(!_0x426a68['attributes']||!_0x426a68['attributes']['skipNestingCheck'])&&(_0x46da26['every'](_0x54ade3=>_0x5d07b7['some'](_0x2b1de1=>_0x2b1de1['containsRange'](_0x54ade3,!0x0)))&&_0x426a68['discard']());if(_0x5d07b7['every'](_0xcb92be=>_0x46da26['some'](_0x3898b0=>_0x3898b0['containsRange'](_0xcb92be,!0x0)))){const _0x363719=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40bf38,'accept');return this['forceDefaultExecution'](()=>_0x363719(_0x43d760,null,_0x1e588d)),null;}}else{const _0x32fa64=_0x426a68['getFirstRange']();_0x5d07b7['some'](_0x136bc4=>_0x136bc4['containsRange'](_0x32fa64,!0x0))&&_0x426a68['discard']();if(_0x5d07b7['every'](_0x13c8cd=>_0x32fa64['containsRange'](_0x13c8cd,!0x0))){const _0x283eee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40bf38,'accept');return this['forceDefaultExecution'](()=>_0x283eee(_0x5d07b7,null,_0x1e588d)),null;}}const _0x1c000b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40bf38,'join');let _0x24d6bd=null;for(const _0x6c4cdc of this['getSuggestions']())if(_0x6c4cdc['author']['id']==_0x4e90f0['id']&&_0x6c4cdc['isInContent']&&'deletion'==_0x6c4cdc['type']&&_0x6c4cdc['subType']==_0x40bf38&&Qt(_0x6c4cdc,_0x1e588d)&&(_0x1c000b(_0x6c4cdc['getRanges'](),_0x5d07b7)||_0x1c000b(_0x5d07b7,_0x6c4cdc['getRanges']()))){if(_0x24d6bd){if(_0x6c4cdc['commentThread']&&_0x6c4cdc['commentThread']['length'])continue;for(const _0x23ba9a of _0x6c4cdc['getRanges']())_0x24d6bd['isIntersectingWithRange'](_0x23ba9a)||_0x24d6bd['addRange'](_0x23ba9a);_0x6c4cdc['removeMarkers']();}else{_0x24d6bd=_0x6c4cdc;for(const _0x5ada62 of _0x5d07b7)_0x6c4cdc['isIntersectingWithRange'](_0x5ada62)||_0x6c4cdc['addRange'](_0x5ada62);}}if(_0x24d6bd)return _0x24d6bd;_0x38cec4['clear']();for(const {suggestion:_0x264432,meta:_0x4be276}of this['_findSuggestions'](_0x5d07b7,'deletion'))_0x4be276['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4be276['containsRangeInObject']&&!_0x4be276['isInsideObject'])&&Qt(_0x264432,_0x1e588d)&&_0x38cec4['add'](_0x264432);for(const _0x53dc93 of _0x38cec4){const _0x1f40aa=_0x53dc93['getRanges']();if(!_0x1e588d||!_0x1e588d['skipNestingCheck']){if(_0x5d07b7['every'](_0x374656=>_0x1f40aa['some'](_0x7e3882=>_0x7e3882['containsRange'](_0x374656,!0x0))))return _0x53dc93;}(!_0x53dc93['attributes']||!_0x53dc93['attributes']['skipNestingCheck'])&&(_0x1f40aa['every'](_0x2257fc=>_0x5d07b7['some'](_0x17cce2=>_0x17cce2['containsRange'](_0x2257fc,!0x0)))&&_0x53dc93['discard']());}const _0x2d6cfd=_0x1db959(),_0x2f4505=_0x4e90f0['id'],_0x4ba6e8='deletion:'+_0x40bf38,_0x3b7a0b=this['_setSuggestionData']({'id':_0x2d6cfd,'type':_0x4ba6e8,'createdAt':new Date(),'authorId':_0x2f4505,'attributes':_0x1e588d});for(const _0x5838fe of _0x5d07b7)_0x5838fe['detach'](),_0x5838fe['isCollapsed']||'$graveyard'==_0x5838fe['root']['rootName']||this['_addSuggestionMarker'](_0x4ba6e8,_0x2d6cfd,_0x2f4505,_0x5838fe,o['getMultiRangeId']());return _0x3b7a0b;}['markAttributeChange'](_0x25614c,_0x16ad99,_0xcbe373,_0x3a04e3,_0xcba0c0){if(_0x25614c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5f1beb=this['editor']['plugins']['get']('Users')['me']['id'],_0x28f86d=Array['from'](this['_suggestions']['values']())['filter'](_0x2f4284=>'attribute'==_0x2f4284['type']&&_0x2f4284['data']['key']==_0x16ad99&&_0x2f4284['isIntersectingWithRange'](_0x25614c));if('default'===this['_trackFormatChanges']){const _0x289de7=this['_findSuggestions'](_0x25614c,'insertion')['filter'](({meta:_0x4d8628})=>_0x4d8628['isOwn']&&!_0x4d8628['isInsideObject']&&!_0x4d8628['isNextTo'])['map'](({suggestion:_0x191e28})=>_0x191e28);_0x28f86d['unshift'](..._0x289de7);}const _0x41577b=new Map([[_0x25614c,_0xcbe373]]);for(const _0x45c630 of _0x28f86d){const _0xd6d0b6='attribute'==_0x45c630['type']?_0x45c630['data']['oldValue']:void 0x0,_0x10702b=_0x45c630['getFirstRange'](),_0x2c7699=Array['from'](_0x41577b['keys']())['find'](_0x3cd3aa=>_0x3cd3aa['isIntersecting'](_0x10702b));if(!_0x2c7699)continue;const _0x1a4ec9=_0x2c7699['getDifference'](_0x10702b);this['_isBlockAttribute'](_0x16ad99)&&'insertion'==_0x45c630['type']&&0x0!=_0x1a4ec9['length']||(_0x41577b['delete'](_0x2c7699),_0x1a4ec9['forEach'](_0x60b0d=>{_0x41577b['set'](_0x60b0d,_0xcbe373);}),'insertion'!=_0x45c630['type']&&_0xd6d0b6!=_0x3a04e3&&_0x41577b['set'](_0x2c7699['getIntersection'](_0x10702b),_0xd6d0b6));}const _0x15996d=[];for(const [_0x4fb2db,_0x15c01f]of _0x41577b){const _0xb6da0d=_0x1db959(),_0x1b8d94={'key':_0x16ad99,'oldValue':_0x15c01f,'newValue':_0x3a04e3};_0x16ad99['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x16ad99});const _0x534f61=('attribute:'+(_0x16ad99+'|'+Jt({'newValue':_0x3a04e3})))['substring'](0x0,0x3c),_0x4d506c=this['_setSuggestionData']({'id':_0xb6da0d,'type':_0x534f61,'data':_0x1b8d94,'createdAt':new Date(),'authorId':_0x5f1beb,'attributes':_0xcba0c0});_0x15996d['push'](_0x4d506c),this['_addSuggestionMarker'](_0x534f61,_0xb6da0d,_0x5f1beb,_0x4fb2db);}return _0x15996d;}['enableDefaultAttributesIntegration'](_0x5b43ba){this['enableCommand'](_0x5b43ba,(_0x51b0f6,..._0x4eb524)=>{this['_recordAttributeChanges'](()=>{_0x51b0f6(..._0x4eb524);});});}['registerBlockAttribute'](_0x1776b5){this['_blockAttributeKeys']['add'](_0x1776b5);}['registerInlineAttribute'](_0xb90b4b){this['_inlineAttributeKeys']['add'](_0xb90b4b);}['_getAttributeKey'](_0x288a17){return'attribute'==_0x288a17['type']?_0x288a17['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x56a597,_0x25fd69){const _0x2526c7=_0x56a597['getFirstMarker']();this['_model']['change'](_0x3cbf56=>{_0x3cbf56['updateMarker'](_0x2526c7,{'range':_0x25fd69});});}['_addThreadToSuggestion'](_0x12fa3e){const _0x357ae3=_0x12fa3e['id'],_0x10a21e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x357ae3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x10a21e,'threadId':_0x357ae3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4eae29=this['_commentsRepository']['getCommentThread'](_0x357ae3);_0x4eae29['unbind']('isRemovable'),_0x4eae29['isRemovable']=!0x1,_0x12fa3e['commentThread']=_0x4eae29;}['_checkSuggestionCorrectness'](_0xbb4a4a,_0x599e78,_0x4d8e8e,_0x16e65a){if(_0xbb4a4a['type']!=_0x599e78||_0xbb4a4a['subType']!=_0x4d8e8e||_0xbb4a4a['creator']['id']!=_0x16e65a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x540f03('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x387e41,_0x4b6044){const _0x3eafb7=_0x387e41['getFirstRange']();if(_0x4b6044['isEqual'](_0x3eafb7))_0x387e41['removeMarkers']();else{if(_0x3eafb7['containsRange'](_0x4b6044)){const _0x3abee8=this['_model']['createPositionAt'](_0x4b6044['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x387e41,this['_model']['createRange'](_0x3eafb7['start'],_0x3abee8));const _0x2ad26a=_0x1db959(),_0x3e5e42=_0x387e41['creator']['id'],_0x573686=_0x387e41['type']+':'+_0x387e41['subType'];this['_setSuggestionData']({'id':_0x2ad26a,'type':_0x573686,'createdAt':new Date(),'authorId':_0x3e5e42,'data':_0x387e41['data'],'attributes':_0x387e41['attributes']});const _0x768747=this['_model']['createPositionAt'](_0x4b6044['end']['parent'],'after'),_0x32c385=this['_model']['createRange'](_0x768747,_0x3eafb7['end']);this['_addSuggestionMarker'](_0x573686,_0x2ad26a,_0x3e5e42,_0x32c385);}else{if(_0x3eafb7['containsPosition'](_0x4b6044['start'])){const _0x4b709b=this['_model']['createPositionAt'](_0x4b6044['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x387e41,this['_model']['createRange'](_0x3eafb7['start'],_0x4b709b));}else{const _0xc866d=this['_model']['createPositionAt'](_0x4b6044['end']['parent'],'after');this['_setSuggestionRange'](_0x387e41,this['_model']['createRange'](_0xc866d,_0x3eafb7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3d1db0){for(const {suggestion:_0x5c5055,meta:_0x30b078}of this['_findSuggestions'](_0x3d1db0,'insertion')){if(!_0x30b078['isOwn'])continue;const _0x4c428f=_0x5c5055['getRanges']();for(const _0x3e1d58 of _0x4c428f)if(!_0x3d1db0['getDifference'](_0x3e1d58)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x7bf389){const _0x3c8e67=this['editor']['plugins']['get']('Users')['getUser'](_0x7bf389);if(!_0x3c8e67)throw new _0x540f03('track-changes-user-not-found',this);return _0x3c8e67;}['_getExternalAuthor'](_0x101666){const _0x484109=this['editor']['plugins']['get']('Users'),_0x38bf87=_0x158dfb('external:'+_0x101666),_0x2e6135=_0x484109['getUser'](_0x38bf87);return _0x2e6135||_0x484109['addUser']({'id':_0x38bf87,'name':_0x101666});}['_createSuggestion'](_0x1995a2,_0x4d705d,_0x2f5044,_0x591e4d,_0x20c055){const _0x48fda6=this['_getAuthorFromId'](_0x591e4d),_0x24ab98=this['_suggestionFactory']['buildSuggestion'](_0x1995a2,_0x4d705d,_0x2f5044,_0x48fda6,_0x20c055,_0x35b061=>{this['_updateSuggestionData'](_0x2f5044,{'attributes':_0x35b061});const _0x593118=this['getSuggestion'](_0x2f5044);this['_joinWithAdjacentSuggestions'](new Set([_0x593118])),this['_refreshSuggestionsChain'](new Set([_0x593118]));});return this['listenTo'](_0x24ab98,'accept',()=>{this['_updateSuggestionData'](_0x2f5044,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x24ab98,'discard',()=>{this['_updateSuggestionData'](_0x2f5044,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f5044,_0x24ab98),this['_suggestionState']['set'](_0x24ab98,'notReady'),_0x24ab98;}['_splitMarkerName'](_0x32078b){const _0x2206e2=_0x32078b['split'](':');return{'group':_0x2206e2[0x0],'type':_0x2206e2[0x1],'subType':_0x2206e2['length']>=0x5?_0x2206e2[0x2]:null,'id':_0x2206e2['length']<0x5?_0x2206e2[0x2]:_0x2206e2[0x3],'authorId':_0x2206e2['length']<0x5?_0x2206e2[0x3]:_0x2206e2[0x4],'markerCount':0x6==_0x2206e2['length']?_0x2206e2[0x5]:null};}['_breakSuggestionMarker'](_0x353e60,_0x17922d,_0x3c04cb){const _0x186404=_0x353e60['getFirstRange'](),_0x25776e=_0x186404['start'],_0x444f73=_0x186404['end'];this['_setSuggestionRange'](_0x353e60,this['_model']['createRange'](_0x25776e,_0x17922d));const _0x1f6d5f=_0x1db959(),_0x1a6bd4=_0x353e60['creator']['id'],_0x11bb3f=_0x353e60['type']+(_0x353e60['subType']?':'+_0x353e60['subType']:'');this['_setSuggestionData']({'id':_0x1f6d5f,'type':_0x11bb3f,'createdAt':new Date(),'authorId':_0x1a6bd4,'originalSuggestionId':_0x353e60['id'],'attributes':_0x353e60['attributes'],'data':_0x353e60['data']});const _0xbfd0d1=this['_getAttributeKey'](_0x353e60);('formatBlock'==_0x353e60['type']||_0xbfd0d1&&this['_isBlockAttribute'](_0xbfd0d1))&&(_0x3c04cb=this['_model']['createPositionBefore'](_0x3c04cb['parent'])),this['_addSuggestionMarker'](_0x11bb3f,_0x1f6d5f,_0x1a6bd4,this['_model']['createRange'](_0x3c04cb,_0x444f73));}['_findSuggestions'](_0x14496f,_0x5dd9de=null){const _0x3b2a6f=[],_0x50f6e7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x14496f)||(_0x14496f=[_0x14496f]);for(const _0x17cc38 of this['getSuggestions']()){if(!_0x17cc38['isInContent'])continue;if(_0x5dd9de&&_0x17cc38['type']!=_0x5dd9de)continue;let _0x3d574b=!0x1;for(const _0x1943e8 of _0x17cc38['getRanges']()){for(const _0x3687d1 of _0x14496f){const _0x254e0a=_0x3687d1['start']['isEqual'](_0x1943e8['end'])||_0x3687d1['end']['isEqual'](_0x1943e8['start']);if(_0x254e0a||_0x3687d1['getIntersection'](_0x1943e8)){const _0x343987=_0x3687d1['containsRange'](_0x1943e8)&&Pt(this['_model']['schema'],_0x1943e8['start'],_0x3687d1),_0x48fb7e=_0x1943e8['containsRange'](_0x3687d1)&&Pt(this['_model']['schema'],_0x3687d1['start'],_0x1943e8);_0x3b2a6f['push']({'suggestion':_0x17cc38,'meta':{'isOwn':_0x50f6e7==_0x17cc38['author'],'isNextTo':_0x254e0a,'isInsideObject':_0x343987,'containsRangeInObject':_0x48fb7e}}),_0x3d574b=!0x0;break;}}if(_0x3d574b)break;}}return _0x3b2a6f;}['_addSuggestionMarker'](_0x4db2be,_0x525882,_0x523a11,_0x45ef6a,_0x214578){this['_model']['change'](_0x1aca76=>{let _0x3bf1c4='suggestion:'+_0x4db2be+':'+_0x525882+':'+_0x523a11;_0x214578&&(_0x3bf1c4=_0x3bf1c4+':'+_0x214578),_0x1aca76['addMarker'](_0x3bf1c4,{'range':_0x45ef6a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x328c82){const _0x5a93c2=_0x328c82['previous'],_0x23fcc4=_0x328c82['next'];_0x328c82['previous']=null,_0x328c82['next']=null,null!=_0x5a93c2&&_0x5a93c2['next']==_0x328c82&&(_0x5a93c2['next']=_0x23fcc4),null!=_0x23fcc4&&_0x23fcc4['previous']==_0x328c82&&(_0x23fcc4['previous']=_0x5a93c2),'ready'==this['_suggestionState']['get'](_0x328c82)&&(this['_suggestionState']['set'](_0x328c82,'removed'),this['fire']('suggestionUnloaded',_0x328c82,_0x5a93c2,_0x23fcc4));}['_setSuggestionData'](_0x3ad03c){const _0x42a1e0=_0x3ad03c['id'],_0x412504=this['addSuggestionData'](_0x3ad03c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56df72=this['editor']['plugins']['get']('PendingActions'),_0x2ef101=_0x412504['hasComments'],_0x132071=_0x412504['subType']?_0x412504['type']+':'+_0x412504['subType']:_0x412504['type'],_0x3256de=this['editor']['locale'],_0x20d64e=_0x56df72['add'](c(_0x3256de,'PENDING_ACTION_SUGGESTION')),_0x3b20b0={'id':_0x42a1e0,'type':_0x132071,'hasComments':_0x2ef101,'data':_0x3ad03c['data']||null,'originalSuggestionId':_0x3ad03c['originalSuggestionId']||null,'attributes':_0x412504['attributes']};this['_adapter']['addSuggestion'](_0x3b20b0)['then'](_0xffa92c=>{_0x412504['_saved']=!0x0,_0x56df72['remove'](_0x20d64e),_0xffa92c&&_0xffa92c['createdAt']&&(this['_suggestions']['get'](_0x42a1e0)['createdAt']=_0xffa92c['createdAt']);})['catch'](_0x2e19ba=>{throw _0x84f347('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x412504['discard']();}),_0x412504['stopListening'](),this['_suggestions']['delete'](_0x412504['id']),this['_suggestionState']['delete'](_0x412504),_0x2e19ba;});}return _0x412504;}['_isBlockAttribute'](_0x349695){return this['_blockAttributeKeys']['has'](_0x349695);}['_updateSuggestionData'](_0x5db219,_0x43093c){const _0xb260e9=this['editor']['plugins']['get']('PendingActions'),_0x168527=this['getSuggestion'](_0x5db219);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x168527['_saved']){const _0x2e85f1=_0xb260e9['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5db219,_0x43093c)['then'](()=>{_0xb260e9['remove'](_0x2e85f1);});}else _0x168527['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5db219,_0x43093c);});}}['_getSuggestionData'](_0x18ee39){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x540f03('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x18ee39);}['_handleNewSuggestionMarker'](_0x30af3e){const {id:_0x4ffc04,type:_0x56c949,subType:_0x195f27,authorId:_0x303522}=this['_splitMarkerName'](_0x30af3e),_0x5c7f7e=this['_suggestions']['get'](_0x4ffc04)||this['_createSuggestion'](_0x56c949,_0x195f27,_0x4ffc04,_0x303522,{});switch(this['_checkSuggestionCorrectness'](_0x5c7f7e,_0x56c949,_0x195f27,_0x303522),this['_suggestionState']['get'](_0x5c7f7e)){case'notReady':this['_getSuggestionData'](_0x4ffc04)['then'](_0x463bc7=>{let _0x6b3cc7=Promise['resolve']();_0x463bc7['hasComments']&&(_0x6b3cc7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4ffc04})),_0x6b3cc7['then'](()=>{this['addSuggestionData'](_0x463bc7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5c7f7e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4ffc04,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5c7f7e,'ready'),this['fire']('suggestionLoaded',_0x5c7f7e);break;case'ready':this['fire']('suggestionChanged',_0x5c7f7e);}return _0x5c7f7e['addMarkerName'](_0x30af3e),_0x5c7f7e;}['_refreshSuggestionsChain'](_0xfc7999){const _0x3a6729=Array['from'](_0xfc7999),_0x48d749=_0x3a6729['filter'](_0x1ed144=>'attribute'==_0x1ed144['type']);this['_refreshAttributeSuggestionsChain'](_0x48d749);const _0x138f42=_0x3a6729['filter'](_0x4ad1a3=>!_0x4ad1a3['isMultiRange']&&'attribute'!=_0x4ad1a3['type']),_0x2d61da=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x222411=>!_0x222411['isMultiRange']&&'attribute'!=_0x222411['type']),_0x38d7fd=_0x2d61da['filter'](_0x272738=>!_0xfc7999['has'](_0x272738)),_0x51514c=new Map(_0x2d61da['map'](_0x2193a9=>[_0x2193a9,this['_suggestionFactory']['getSuggestionCallback'](_0x2193a9['type'],_0x2193a9['subType'],'chain')])),_0x1353e6=new Map(_0x2d61da['map'](_0x2eaf73=>[_0x2eaf73,_0x2eaf73['getFirstRange']()])),_0x1ce213=new Set(),_0xacbf5e=new Set();for(let _0x361075=0x0;_0x361075<_0x138f42['length'];_0x361075++)_0x16319d(_0x138f42[_0x361075],_0x138f42,_0x361075+0x1);for(let _0x299f55=0x0;_0x299f55<_0x138f42['length'];_0x299f55++)_0x16319d(_0x138f42[_0x299f55],_0x38d7fd,0x0);const _0x7c62c4=new Set();for(let _0x38282e=0x0;_0x38282e<_0x138f42['length'];_0x38282e++){const _0x3da050=_0x138f42[_0x38282e];!_0xacbf5e['has'](_0x3da050)&&_0x3da050['previous']&&(_0x7c62c4['add'](_0x3da050['previous']),_0x3da050['previous']['next']===_0x3da050&&(_0x3da050['previous']['next']=null),_0x3da050['previous']=null),!_0x1ce213['has'](_0x3da050)&&_0x3da050['next']&&(_0x7c62c4['add'](_0x3da050['next']),_0x3da050['next']['previous']===_0x3da050&&(_0x3da050['next']['previous']=null),_0x3da050['next']=null);}function _0x16319d(_0x3b6b11,_0x1521d4,_0x4a9846){for(let _0x17be78=_0x4a9846;_0x17be78<_0x1521d4['length'];_0x17be78++){const _0x2fd2b1=_0x5427a7(_0x3b6b11,_0x1521d4[_0x17be78]);_0x2fd2b1&&(_0x2fd2b1[0x0]['next']=_0x2fd2b1[0x1],_0x2fd2b1[0x1]['previous']=_0x2fd2b1[0x0],_0x1ce213['add'](_0x2fd2b1[0x0]),_0xacbf5e['add'](_0x2fd2b1[0x1]));}}function _0x5427a7(_0x12949e,_0x464096){if(_0x12949e['author']['id']!==_0x464096['author']['id'])return null;const _0x3eaa14=_0x51514c['get'](_0x12949e)(_0x12949e,_0x464096,_0x1353e6['get'](_0x12949e),_0x1353e6['get'](_0x464096));if(!_0x3eaa14)return null;return _0x51514c['get'](_0x464096)(_0x12949e,_0x464096,_0x1353e6['get'](_0x12949e),_0x1353e6['get'](_0x464096))?_0x3eaa14[0x1]['commentThread']&&_0x3eaa14[0x1]['commentThread']['length']?null:_0x3eaa14:null;}_0x7c62c4['size']&&this['_refreshSuggestionsChain'](_0x7c62c4);}['_refreshAttributeSuggestionsChain'](_0x3c696e){if(0x0==_0x3c696e['length'])return;const _0x290603=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1464f0=>'attribute'==_0x1464f0['type']&&_0x1464f0['_isDataLoaded']),_0x36b3ea=[],_0x40d3ab=new Map();for(const _0x126005 of _0x290603){const _0x3b91f9=_0x158dfb(_0x126005['attributes']);_0x40d3ab['has'](_0x3b91f9)||(_0x40d3ab['set'](_0x3b91f9,_0x36b3ea['length']),_0x36b3ea['push']([]));const _0x5b8373=_0x40d3ab['get'](_0x3b91f9);_0x36b3ea[_0x5b8373]['push'](_0x126005);}!(function(){_0x36b3ea['sort']((_0x130a5c,_0x1ff7a9)=>{const _0x1fc7ea=_0x130a5c[0x0]['createdAt'],_0x27703d=_0x1ff7a9[0x0]['createdAt'];return _0x1fc7ea==_0x27703d?_0x130a5c[0x0]['attributes']['groupId']<_0x1ff7a9[0x0]['attributes']['groupId']?-0x1:0x1:_0x1fc7ea<_0x27703d?-0x1:0x1;});for(const _0x418ac3 of _0x36b3ea)_0x418ac3['sort']((_0x14fa59,_0xef0bd6)=>_0x14fa59['id']<_0xef0bd6['id']?-0x1:0x1);}());for(let _0x5bbea2=0x0;_0x5bbea2<_0x36b3ea['length'];_0x5bbea2++){if(0x0==_0x36b3ea[_0x5bbea2]['length'])continue;const _0xead0ac=[];for(let _0x502f07=_0x5bbea2+0x1;_0x502f07<_0x36b3ea['length'];_0x502f07++)0x0!=_0x36b3ea[_0x502f07]['length']&&_0xac8514(_0x36b3ea[_0x5bbea2],_0x36b3ea[_0x502f07])&&_0xead0ac['push'](_0x502f07);for(const _0x3f28e7 of _0xead0ac)_0x36b3ea[_0x5bbea2]=_0x36b3ea[_0x5bbea2]['concat'](_0x36b3ea[_0x3f28e7]),_0x36b3ea[_0x3f28e7]=[];}for(const _0x23bfc1 of _0x36b3ea)for(let _0x3db473=0x0;_0x3db473<_0x23bfc1['length'];_0x3db473++){const _0x184f2d=_0x23bfc1[_0x3db473+0x1]||null;_0x23bfc1[_0x3db473]['next']!==_0x184f2d&&(_0x23bfc1[_0x3db473]['next']=_0x184f2d);}for(const _0x2a080f of _0x36b3ea)for(let _0xbab8a5=0x0;_0xbab8a5<_0x2a080f['length'];_0xbab8a5++){const _0x2e1a0c=_0x2a080f[_0xbab8a5-0x1]||null;_0x2a080f[_0xbab8a5]['previous']!==_0x2e1a0c&&(_0x2a080f[_0xbab8a5]['previous']=_0x2e1a0c);}function _0xac8514(_0x482d18,_0xa274e0){if(_0x482d18[0x0]['attributes']['groupId']!==_0xa274e0[0x0]['attributes']['groupId']&&_0x482d18[0x0]['author']!==_0xa274e0[0x0]['author'])return!0x1;if(!function(_0x2d3249,_0x917b1){if(!_0x2d3249['hasComments']&&!_0x917b1['hasComments'])return!0x0;if(_0x2d3249['hasComments']&&_0x917b1['hasComments'])return!0x1;if(_0x2d3249['hasComments']&&_0x917b1['createdAt']<_0x2d3249['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x917b1['hasComments']&&_0x2d3249['createdAt']<_0x917b1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x482d18[0x0],_0xa274e0[0x0]))return!0x1;const _0x4a8f5a=Vt(_0x482d18[0x0]['attributes'],'groupId'),_0xa4dc04=Vt(_0xa274e0[0x0]['attributes'],'groupId');if(!_0x400f5b(_0x4a8f5a,_0xa4dc04))return!0x1;return!!_0x482d18['every'](_0x4e11=>_0xa274e0['some'](_0x5c550c=>_0x4e11['getFirstRange']()['isEqual'](_0x5c550c['getFirstRange']())))&&_0xa274e0['every'](_0xee219b=>_0x482d18['some'](_0x40a736=>_0xee219b['getFirstRange']()['isEqual'](_0x40a736['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2f26e8){const _0x5589d8=Array['from'](_0x2f26e8),_0x2830ce=this['getSuggestions']({'skipNotAttached':!0x0}),_0x533743=_0x2830ce['filter'](_0x2c3861=>!_0x2f26e8['has'](_0x2c3861)),_0x2a257d=new Map(_0x5589d8['map'](_0x32b122=>[_0x32b122,this['_suggestionFactory']['getSuggestionCallback'](_0x32b122['type'],_0x32b122['subType'],'join')])),_0x9118c1=new Map(_0x2830ce['map'](_0x67da57=>[_0x67da57,_0x67da57['getRanges']()]));for(let _0x515227=0x0;_0x515227<_0x5589d8['length'];_0x515227++){if(_0x516cf3(this,_0x5589d8[_0x515227],_0x5589d8,_0x515227+0x1))return!0x0;}for(let _0x581ec6=0x0;_0x581ec6<_0x5589d8['length'];_0x581ec6++){if(_0x516cf3(this,_0x5589d8[_0x581ec6],_0x533743,0x0))return!0x0;}return!0x1;function _0x516cf3(_0x13515c,_0x4fb523,_0x39e74d,_0x408634){for(let _0x5cef9e=_0x408634;_0x5cef9e<_0x39e74d['length'];_0x5cef9e++){const _0x4d12ad=_0x39e74d[_0x5cef9e];if(_0x4d12ad['type']!==_0x4fb523['type']||_0x4d12ad['author']['id']!==_0x4fb523['author']['id']||_0x4d12ad['subType']!==_0x4fb523['subType'])continue;if(!Wt(_0x4fb523,_0x4d12ad))continue;if('attribute'==_0x4fb523['type']&&_0x4fb523['data']['oldValue']!=_0x4d12ad['data']['oldValue'])continue;if('attribute'==_0x4fb523['type']&&_0x13515c['_isBlockAttribute'](_0x4fb523['data']['key']))continue;if('formatBlock'==_0x4fb523['type']){const _0xc070cf=_0x13515c['editor']['model'],_0x4c47cc=_0x4fb523['getContainedElement']();if(_0x4c47cc&&(_0xc070cf['schema']['isObject'](_0x4c47cc)||_0xc070cf['schema']['isLimit'](_0x4c47cc)))continue;}const _0xafaa5=_0x2a257d['get'](_0x4fb523),_0x125af8=_0x9118c1['get'](_0x4fb523),_0x22741=_0x9118c1['get'](_0x4d12ad),_0x2f54d4=_0x4fb523['commentThread']&&_0x4fb523['commentThread']['length'],_0x550712=_0x4d12ad['commentThread']&&_0x4d12ad['commentThread']['length'];if(!_0x2f54d4&&_0xafaa5(_0x22741,_0x125af8))return _0x13515c['_joinSuggestions'](_0x4d12ad,_0x4fb523),_0x9118c1['delete'](_0x4fb523),!0x0;if(!_0x550712&&_0xafaa5(_0x125af8,_0x22741))return _0x13515c['_joinSuggestions'](_0x4fb523,_0x4d12ad),_0x9118c1['delete'](_0x4d12ad),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5ad6a8,_0x324659){if(_0x5ad6a8['isMultiRange']){for(const _0x525f35 of _0x324659['getRanges']())_0x5ad6a8['addRange'](_0x525f35);}else{const _0x59edd0=_0x324659['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5ad6a8,this['_model']['createRange'](_0x5ad6a8['getFirstRange']()['start'],_0x59edd0));}_0x324659['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2e7461,_0x8a542a,_0x49f616){const _0x531e9c=_0x2e7461['startsWith']('format')||_0x2e7461['startsWith']('attribute')?'FORMATTING':_0x2e7461['toUpperCase']();return c(this['editor']['locale'],_0x8a542a+'_'+_0x531e9c+'_SUGGESTION_ANNOUNCEMENT',_0x49f616);}['_initAriaMarkerChangeAnnouncements'](){const _0x56fba1=this['editor'];if(!_0x56fba1['ui'])return;const {ariaLiveAnnouncer:_0x2b3fb1}=_0x56fba1['ui'];_0x4b0064(this['_model'],({left:_0x2690b7,entered:_0xfa60e4})=>{for(const _0x52284d of _0x2690b7){const {group:_0x3d3a6d,type:_0xe162a0}=this['_splitMarkerName'](_0x52284d['name']);if('suggestion'===_0x3d3a6d){_0x2b3fb1['announce'](this['_getMarkerAnnouncementText'](_0xe162a0,'LEAVE'));break;}}for(const _0xdebf94 of _0xfa60e4){const {group:_0x5ed804,type:_0x3ec2ee}=this['_splitMarkerName'](_0xdebf94['name']);if('suggestion'===_0x5ed804){_0x2b3fb1['announce'](this['_getMarkerAnnouncementText'](_0x3ec2ee,'ENTER',_0x308c45(_0x502126)));break;}}});}['_processAttributeChanges'](_0x221be7){if(this['_recordAttributeSuggestions'])return!0x1;const _0x11dc00=this['editor'],_0x5b5b7f=_0x11dc00['model']['document']['differ']['getChanges']();if(0x0==_0x5b5b7f['length'])return!0x1;const _0x112aa0=[],_0x234c84=_0x5b5b7f['filter'](_0xde5f7c=>'attribute'==_0xde5f7c['type']),_0x3254f9=_0x5b5b7f['filter'](_0x4de707=>'insert'==_0x4de707['type']&&'$text'!=_0x4de707['name']),_0x508e5a=_0x5b5b7f['filter'](_0x301ba3=>'remove'==_0x301ba3['type']&&'$text'!=_0x301ba3['name']);for(const _0x2f4ec of _0x234c84)_0x112aa0['push']({'key':_0x2f4ec['attributeKey'],'newValue':_0x2f4ec['attributeNewValue'],'oldValue':_0x2f4ec['attributeOldValue'],'range':Ht(_0x2f4ec['range'],_0x11dc00['model'])});for(const _0x363702 of _0x3254f9){const _0x2f2750=_0x508e5a['find'](_0x998fdf=>_0x998fdf['position']['isEqual'](_0x363702['position']));_0x2f2750&&_0x112aa0['push']({'key':u,'newValue':_0x363702['name'],'oldValue':_0x2f2750['name'],'range':_0x11dc00['model']['createRangeOn'](_0x363702['position']['nodeAfter'])});}return 0x0!=_0x112aa0['length']&&this['_reduceExistingSuggestions'](_0x221be7,_0x112aa0);}['_processAttributeSuggestions'](_0x5bae1a){let _0x508614=!0x1;const _0x4eb697=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x30d9a6=>_0x30d9a6['data']['newRange']&&_0x30d9a6['name']['startsWith']('suggestion:attribute:'));for(const _0x58bc1c of _0x4eb697){const {subType:_0x340c46,id:_0x2c0e23}=this['_splitMarkerName'](_0x58bc1c['name']),_0x461185=_0x340c46['split']('|')[0x0];for(const _0x161b6a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x161b6a['id']!=_0x2c0e23&&'attribute'==_0x161b6a['type']&&_0x161b6a['data']&&_0x161b6a['data']['key']==_0x461185&&_0x161b6a['getFirstRange']()['isIntersecting'](_0x58bc1c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x161b6a,_0x58bc1c['data']['newRange'],_0x5bae1a),_0x508614=!0x0);}return _0x508614;}['_recordAttributeChanges'](_0x2f5b29){this['_recordAttributeSuggestions']=!0x0,_0x2f5b29();}['_isRegisteredAttribute'](_0x513c1a){const _0x135586=this['_isBlockAttribute'](_0x513c1a),_0x38ed45=this['_inlineAttributeKeys']['has'](_0x513c1a);return _0x135586||_0x38ed45;}['_reduceExistingSuggestions'](_0x5083d1,_0x5aad04){if(0x0==_0x5aad04['length'])return!0x1;let _0x1bbf12=!0x1;for(const _0x2560f2 of _0x5aad04){const _0x2d3cec=this['_findSuggestions'](_0x2560f2['range'],'attribute')['filter'](_0x2c4586=>!_0x2c4586['meta']['isNextTo'])['map'](_0x5277d6=>_0x5277d6['suggestion']),_0x157b57=_0x158dfb({'newValue':_0x2560f2['newValue']});_0x2d3cec['filter'](_0x1705e0=>{const [_0x5ea489,_0x5bd82c]=_0x1705e0['subType']['split']('|');return _0x5ea489==_0x2560f2['key']&&_0x5bd82c!=_0x157b57;})['forEach'](_0x4856a0=>{this['_reduceSuggestionAttributeRange'](_0x4856a0,_0x2560f2['range'],_0x5083d1),_0x1bbf12=!0x0;});}return _0x1bbf12;}['_reduceSuggestionAttributeRange'](_0x366348,_0x2ddc5d,_0x549b20){const _0x13fd5e=_0x366348['getFirstRange']()['getDifference'](_0x2ddc5d);0x0!==_0x13fd5e['length']?0x1!==_0x13fd5e['length']?this['_breakSuggestionMarker'](_0x366348,_0x2ddc5d['start'],_0x2ddc5d['end']):this['_setSuggestionRange'](_0x366348,_0x13fd5e[0x0]):_0x549b20['removeMarker'](_0x366348['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1e23a7){this['_editor']=_0x1e23a7,this['_model']=_0x1e23a7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3864b8,_0x455aa6,_0x49e335,_0x3bdc82,_0x1afc5b,_0x489390){return new o(this['_model'],{'type':_0x3864b8,'subType':_0x455aa6,'id':_0x49e335,'author':_0x3bdc82,'creator':_0x3bdc82,'attributes':_0x1afc5b,'onAttributesChange':_0x489390,'onAccept':(..._0x2783d4)=>this['getSuggestionCallback'](_0x3864b8,_0x455aa6,'accept')(..._0x2783d4),'onDiscard':(..._0x535b6f)=>this['getSuggestionCallback'](_0x3864b8,_0x455aa6,'discard')(..._0x535b6f)});}['registerCustomCallback'](_0x118e9a,_0x30f5f8,_0x9c0a17,_0x503bc){const _0x5abad4=_0x118e9a+':'+_0x30f5f8+':'+_0x9c0a17;this['_customCallbacks']['set'](_0x5abad4,_0x503bc);}['getSuggestionCallback'](_0x16184b,_0x88afa3,_0xd33a2e){const _0x41c770=_0x16184b+':'+_0x88afa3+':'+_0xd33a2e;return this['_customCallbacks']['get'](_0x41c770)||this['_defaultCallbacks']['get'](_0x16184b+':'+_0xd33a2e);}['_registerDefaultCallbacks'](){const _0x665a0c=()=>!0x1,_0x52225a=_0x48059d=>{_0x48059d['sort']((_0x16a149,_0x310594)=>_0x16a149['start']['isBefore'](_0x310594['start'])?0x1:-0x1),this['_model']['change'](_0x4cb664=>{for(const _0x3b3393 of _0x48059d){let _0x39efe9;_0x39efe9=_0x3b3393['end']['isAtEnd']&&_0x3b3393['end']['parent']==_0x3b3393['start']['nodeAfter']?_0x4cb664['createSelection'](_0x3b3393['start']['nodeAfter'],'on'):_0x4cb664['createSelection'](_0x3b3393),this['_model']['deleteContent'](_0x39efe9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x474055=(_0x243b0a,_0x3cd468)=>{_0x3cd468&&this['_model']['change'](_0x18c990=>{const {commandName:_0x4eb83c,commandParams:_0x383eeb=[]}=_0x3cd468,_0xb31ad3=_0x243b0a['map'](_0x46c62e=>(Gt(_0x46c62e)&&(_0x46c62e=this['_model']['createRange'](_0x46c62e['end'])),_0x46c62e))['filter'](_0x32db08=>'$graveyard'!==_0x32db08['root']['rootName']);if(_0xb31ad3['length']<0x1)return;const _0x1372dc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x19c678=>_0x444cae['fromRange'](_0x19c678));_0x18c990['setSelection'](_0xb31ad3);for(const _0x582aa1 of this['_editor']['commands']['commands']())_0x582aa1['refresh']();_0x383eeb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4eb83c,..._0x383eeb);const _0x42c378=_0x1372dc['filter'](_0x589137=>'$graveyard'!=_0x589137['root']['rootName']);_0x42c378['length']>0x0&&_0x18c990['setSelection'](_0x42c378);for(const _0x456a26 of _0x1372dc)_0x456a26['detach']();});},_0x4f94ae=(_0x4fcf4c,_0x852bd3)=>0x1==_0x4fcf4c['length']&&0x1==_0x852bd3['length']&&_0x4fcf4c[0x0]['end']['isEqual'](_0x852bd3[0x0]['start']),_0x2070eb=(_0x20e366,_0x199cf8,_0x4045df,_0x940d2f)=>zt(_0x20e366,_0x199cf8,_0x4045df,_0x940d2f)?[_0x20e366,_0x199cf8]:zt(_0x199cf8,_0x20e366,_0x940d2f,_0x4045df)?[_0x199cf8,_0x20e366]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x665a0c),this['_defaultCallbacks']['set']('insertion:discard',_0x52225a),this['_defaultCallbacks']['set']('insertion:join',_0x4f94ae),this['_defaultCallbacks']['set']('insertion:chain',_0x2070eb),this['_defaultCallbacks']['set']('deletion:accept',_0x52225a),this['_defaultCallbacks']['set']('deletion:discard',_0x665a0c),this['_defaultCallbacks']['set']('deletion:join',_0x4f94ae),this['_defaultCallbacks']['set']('deletion:chain',_0x2070eb),this['_defaultCallbacks']['set']('formatInline:accept',_0x474055),this['_defaultCallbacks']['set']('formatInline:discard',_0x665a0c),this['_defaultCallbacks']['set']('formatInline:join',_0x4f94ae),this['_defaultCallbacks']['set']('formatInline:chain',_0x665a0c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x474055),this['_defaultCallbacks']['set']('formatBlock:discard',_0x665a0c),this['_defaultCallbacks']['set']('formatBlock:join',_0x4f94ae),this['_defaultCallbacks']['set']('formatBlock:chain',_0x665a0c),this['_defaultCallbacks']['set']('attribute:accept',_0x665a0c),this['_defaultCallbacks']['set']('attribute:discard',(_0xc16680,_0x2ed4e6)=>{if(!_0x2ed4e6)return;const _0x4fb804=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x303c69=>{if(_0x2ed4e6['key']==u)for(const _0x51606c of _0xc16680){const _0x248c7e=_0x51606c['start']['nodeAfter'],_0x44fbf3=_0x2ed4e6['oldValue'];_0x303c69['rename'](_0x248c7e,_0x44fbf3);}else{if(_0x4fb804['_isBlockAttribute'](_0x2ed4e6['key'])){for(const _0xa81ce3 of _0xc16680)void 0x0!==_0x2ed4e6['oldValue']?_0x303c69['setAttribute'](_0x2ed4e6['key'],_0x2ed4e6['oldValue'],_0xa81ce3['start']['nodeAfter']):_0x303c69['removeAttribute'](_0x2ed4e6['key'],_0xa81ce3['start']['nodeAfter']);}else{for(const _0x2f07d5 of _0xc16680)_0x2ed4e6['oldValue']?_0x303c69['setAttribute'](_0x2ed4e6['key'],_0x2ed4e6['oldValue'],_0x2f07d5):_0x303c69['removeAttribute'](_0x2ed4e6['key'],_0x2f07d5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4f94ae);}}function Pt(_0x4600cf,_0x396ebf,_0x369d6c){for(const _0x5b1a00 of _0x396ebf['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b1a00['root']==_0x5b1a00)return!0x1;if(!_0x369d6c['containsItem'](_0x5b1a00))return!0x1;if(_0x4600cf['isObject'](_0x5b1a00)||_0x4600cf['isLimit'](_0x5b1a00))return!0x0;}return!0x1;}function Gt(_0x18fab7){return _0x18fab7['end']['parent']==_0x18fab7['start']['nodeAfter']&&_0x18fab7['end']['isAtStart'];}function Lt(_0x591e0c,_0x3fe8d4,_0x587856,_0x12102a){const _0x1f1253=_0x551452=>!_0x551452['item']['is']('$textProxy')&&!_0x12102a['isObject'](_0x551452['item']),_0x22c7b2=_0x591e0c['start']['getLastMatchingPosition'](_0x1f1253),_0x12e6b1=_0x591e0c['end']['getLastMatchingPosition'](_0x1f1253,{'direction':'backward'});return(!_0x591e0c['start']['isEqual'](_0x22c7b2)||!_0x591e0c['end']['isEqual'](_0x12e6b1))&&(_0x22c7b2['isBefore'](_0x12e6b1)?_0x587856['updateMarker'](_0x3fe8d4,{'range':_0x587856['createRange'](_0x22c7b2,_0x12e6b1)}):_0x587856['removeMarker'](_0x3fe8d4),!0x0);}function Jt(_0x10b059){return _0x158dfb(_0x10b059);}function Kt(_0x3b4610){const _0x9d158c=_0x3b4610['start']['nodeAfter'];return _0x9d158c&&_0x9d158c['is']('element');}function Ht(_0x411c33,_0x268cb7){return null==_0x411c33['end']['nodeBefore']&&_0x411c33['end']['parent']==_0x411c33['start']['nodeAfter']?qt(_0x411c33['start']['nodeAfter'],_0x268cb7):_0x411c33;}function qt(_0x3dd4e4,_0x57de42){const _0x4892c0=_0x57de42['schema']['isObject'](_0x3dd4e4)||_0x57de42['schema']['isSelectable'](_0x3dd4e4);return _0x57de42['createRange'](_0x57de42['createPositionAt'](_0x3dd4e4,'before'),_0x4892c0?_0x57de42['createPositionAfter'](_0x3dd4e4):_0x57de42['createPositionAt'](_0x3dd4e4,'end'));}function zt(_0x2edb29,_0x4998f8,_0x2a9a83,_0x1466b3){return!!Wt(_0x2edb29,_0x4998f8)&&_0x2a9a83['end']['isEqual'](_0x1466b3['start']);}function Wt(_0x5c085e,_0x17c625){if(!_0x5c085e['_isDataLoaded']||!_0x17c625['_isDataLoaded'])return!0x1;const _0x4ce8e4=new Set(Object['keys'](_0x5c085e['attributes'])),_0x5bdd03=new Set(Object['keys'](_0x17c625['attributes']));if(_0x4ce8e4['delete']('groupId'),_0x5bdd03['delete']('groupId'),0x0==_0x4ce8e4['size']&&0x0==_0x5bdd03['size'])return!0x0;if(_0x4ce8e4['size']!=_0x5bdd03['size'])return!0x1;const _0x28525d={..._0x5c085e['attributes']},_0x2be1ad={..._0x17c625['attributes']};return delete _0x28525d['groupId'],delete _0x2be1ad['groupId'],JSON['stringify'](_0x28525d)==JSON['stringify'](_0x2be1ad);}function Qt(_0x4f464c,_0x39d95b){const _0x3438e0=Xt(_0x4f464c['attributes']),_0x3c251f=Xt(_0x39d95b);if(!_0x4f464c['_isDataLoaded'])return!0x1;for(const _0xf34080 of Object['keys'](_0x3c251f))if(!_0x400f5b(_0x3438e0[_0xf34080],_0x3c251f[_0xf34080]))return!0x1;return!0x0;}function Xt(_0x11accd){const _0x112e62=Object['assign']({},_0x11accd);return delete _0x112e62['skipNestingCheck'],delete _0x112e62['tablePasteChainId'],_0x112e62;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x1e4e69(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2ee8ca,_0x498cb0,_0x30b4d3,_0x33d059){super(),this['model']=_0x498cb0,this['view']=_0x30b4d3,this['commentThreadController']=_0x33d059,this['_editor']=_0x2ee8ca,this['_acceptCommand']=_0x2ee8ca['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2ee8ca['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x12ff54,_0xd83a66)=>_0x12ff54||_0xd83a66),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4e18a2=>_0x4e18a2&&this['_editor']['model']['canEditAt'](_0x498cb0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x59b3cc=>_0x59b3cc&&this['_editor']['model']['canEditAt'](_0x498cb0['getRanges']())),this['_pendingAction']=null,_0x30b4d3['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x30b4d3,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x30b4d3,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x30b4d3,'change:isDirty',()=>{_0x30b4d3['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x208b10=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x208b10);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x55250e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x58329a,_0x3d6fe1,_0x49dd96,_0x26afab){super(_0x58329a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x352ca8(_0x58329a,c(_0x58329a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3d6fe1['authoredAt']),this['bind']('authoredAt')['to'](_0x3d6fe1),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x3d6fe1,'authoredAt',this,'descriptionParts',(_0xef7c1f,_0x501915,_0x2145f3)=>{const _0x317456=_0x2145f3['map'](_0x3a1d7c=>ls(_0x3a1d7c['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xef7c1f-0x1,_0x3d6fe1['author']['name'],_0x501915?_0x26afab['formatDateTime'](_0x501915):'',new DOMParser()['parseFromString'](_0x317456,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5f3895(),this['focusTracker']=new _0x39ddbb(),this['keystrokes']=new _0x131ec5(),this['focusCycler']=new _0x4ab582({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x31e9c3=>_0x31e9c3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3d6fe1,this['_localUser']=_0x49dd96,this['_config']=_0x26afab,_0x26afab['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x175faf(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x389814}=this['_config'];this['commentsListView']=new _0x389814(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x28d11c=>_0x28d11c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x35c079,_0x318a3e)=>_0x35c079||!!_0x318a3e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3f29fa}=this['_config'],_0x29a61f=new _0x3f29fa(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5afe7e=_0x29a61f['commentInputView'];return _0x29a61f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5afe7e,'value',(_0x22ee82,_0x11d04f,_0x5476dc)=>!!_0x5476dc||_0x22ee82&&!_0x11d04f),_0x5afe7e['on']('submit',(_0x5dcc4e,_0x193dc5)=>{this['fire']('addComment',_0x193dc5),_0x5afe7e['editor']['setData']('');}),_0x5afe7e['on']('cancel',()=>this['focus']()),_0x5afe7e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x29a61f;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x49ff36,_0x17b0a1,_0x159372,_0x3d597b){super(_0x49ff36,_0x17b0a1,_0x159372,_0x3d597b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x321b83=>_0x321b83&&_0x321b83[0x0]?_0x321b83[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x33eb16,_0x412a3d)=>{let _0x3a0b4b='';for(const _0x236fac of _0x33eb16)_0x3a0b4b+='<p>'+ls(_0x236fac['content'],_0x236fac['color'])+'</p>';return _0x412a3d?_0x3a0b4b:ti(_0x3a0b4b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3d597b['SuggestionView'](_0x49ff36,_0x17b0a1,{'formatDateTime':_0x3d597b['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1c8db5=this['bindTemplate'],_0x519f0e=[this['suggestionView']];return this['commentsListView']&&_0x519f0e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x519f0e['push'](this['commentThreadInputView']),_0x519f0e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1c8db5['if']('isActive','ck-suggestion-wrapper--active'),_0x1c8db5['to']('type',_0x4e1c8e=>'ck-suggestion-'+_0x4e1c8e),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1c8db5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x519f0e};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x55250e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x146193,_0x47b473,_0x5d371c){super(_0x146193),this['_model']=_0x47b473,this['_config']=_0x5d371c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x47b473),this['acceptButton']=this['_createButton'](c(_0x146193,'Accept\x20suggestion'),_0xdad8c7,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x146193,'Discard\x20suggestion'),_0x102c08,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x17b572(_0x146193,_0x47b473['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5f3895([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x39ddbb(),this['keystrokes']=new _0x131ec5(),this['focusCycler']=new _0x4ab582({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x42a055=>_0x42a055['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x11885d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x11885d['innerHTML']=this['description'],this['on']('change:description',(_0x1669d8,_0x2a6470,_0x4de597)=>{_0x11885d['innerHTML']=_0x4de597;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1b7a6f=this['bindTemplate'],_0x3845fa=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x1b7a6f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1b7a6f['to']('authoredAt',_0x5bce8c=>this['_config']['formatDateTime'](_0x5bce8c))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x3845fa['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x3845fa}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x521609,_0x30e9d6,_0x26f24b,_0xb6dc82,_0x23c18d){const _0x5e097a=new _0x43be42(this['locale']);return _0x5e097a['set']({'label':_0x521609,'icon':_0x30e9d6,'tooltip':!0x0,'tooltipPosition':_0x23c18d}),_0x5e097a['extendTemplate']({'attributes':{'class':_0x26f24b}}),_0x5e097a['on']('execute',()=>{this['fire'](_0xb6dc82,this['_model']['id']);}),_0x5e097a;}['_setupKeyboardNavigation'](){const _0x10137f=this['element'];this['keystrokes']['listenTo'](_0x10137f);for(const _0x19c3ca of this['focusables'])this['focusTracker']['add'](_0x19c3ca['element']),this['keystrokes']['listenTo'](_0x19c3ca['element']);this['keystrokes']['set']('enter',(_0x506e83,_0x34534b)=>{_0x10137f===_0x506e83['target']&&(this['focusCycler']['focusFirst'](),_0x34534b());}),this['keystrokes']['set']('esc',(_0x55a547,_0x25d94c)=>{_0x10137f!==_0x55a547['target']&&(this['focus'](),_0x25d94c());});}}class d extends _0x2a6979{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5d31d4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35e7a5){super(_0x35e7a5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x98ac05=this['editor']['config'];_0x98ac05['define']('trackChanges.SuggestionThreadView',fe),_0x98ac05['define']('trackChanges.SuggestionView',we),_0x98ac05['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x98ac05['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x11e914,_0x12971f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1a72fc,_0x5ace4a]of this['_handleControllerBuffer']){const _0x20c73d=this['_suggestionToController']['has'](_0x1a72fc);_0x20c73d||_0x5ace4a?_0x20c73d&&_0x5ace4a&&this['_destroyController'](_0x1a72fc):this['_initializeController'](_0x1a72fc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x11e914,_0x12971f);}['init'](){const _0x22ae82=this['editor'],_0x5e718a=_0x22ae82['plugins']['get']('TrackChangesEditing'),_0x1a4134=_0x22ae82['plugins']['get']('Annotations'),_0x4a00a6=_0x22ae82['plugins']['get']('EditorAnnotations'),_0xfad6a5=_0x22ae82['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4a00a6['addSourceCollector'](()=>{const _0x266ca4=[];for(const [_0xaa0bce,_0xc479a5]of Array['from'](this['_suggestionToController'])){const _0x201de7=_0xaa0bce['getAllAdjacentSuggestions'](),_0x49bcfa=[];for(const _0x2b097f of _0x201de7){if(!_0x2b097f['isInContent'])continue;if(_0x2b097f['isMultiRange']){_0x49bcfa['push'](..._0x2b097f['getRanges']());continue;}const _0x2f730e=_0x2b097f['getFirstRange']();if(_0x49bcfa['length']>0x0){const _0x590f52=_0x49bcfa[0x0]['getJoined'](_0x2f730e);if(_0x590f52){_0x49bcfa[0x0]=_0x590f52;continue;}}_0x49bcfa['push'](_0x2f730e);}_0x266ca4['push']([_0xc479a5['view'],_0x49bcfa]);}return _0x266ca4;}),this['listenTo'](_0x5e718a,'suggestionLoaded',(_0x591693,_0x31411d)=>{this['listenTo'](_0x31411d,'change:previous',(_0x15b8fa,_0xc1d574,_0x1d655e,_0x37d1d8)=>{_0x31411d['isInContent']&&(null==_0x1d655e?(this['_updateController'](_0x37d1d8['head']),this['_handleSuggestionControllerDelayed'](_0x31411d,!0x1)):(this['_updateController'](_0x1d655e['head']),null==_0x37d1d8&&this['_handleSuggestionControllerDelayed'](_0x31411d,!0x0)));}),null!==_0x31411d['previous']?this['_updateController'](_0x31411d['head']):this['_handleSuggestionControllerDelayed'](_0x31411d,!0x1);}),this['listenTo'](_0x5e718a,'suggestionUnloaded',(_0x561358,_0x579aa1,_0x58f7d4)=>{this['stopListening'](_0x579aa1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x579aa1),this['_suggestionToController']['has'](_0x579aa1)&&this['_destroyController'](_0x579aa1),_0x58f7d4&&this['_updateController'](_0x58f7d4['head']);}),this['listenTo'](_0x5e718a,'suggestionChanged',(_0x1bfa68,_0x3eaa03)=>{this['_updateController'](_0x3eaa03);}),this['listenTo'](_0x1a4134,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xfad6a5,'addComment',(_0x25e8ae,{threadId:_0x404002,isFromAdapter:_0x52e998})=>{if(_0x52e998||!_0x5e718a['hasSuggestion'](_0x404002))return;const _0x2bd35f=_0x5e718a['getSuggestion'](_0x404002);this['_suggestionToController']['get'](_0x2bd35f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4681b3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34bcc3;for(const _0x5426ec in _0x4681b3){const _0x50bdb3=_0x5426ec,_0x38cebf=_0x4681b3[_0x50bdb3];if('trackChangesLicenseKeyValid'==_0x38cebf||'trackChangesLicenseKeyInvalid'==_0x38cebf||'trackChangesLicenseKeyExpired'==_0x38cebf||'trackChangesLicenseKeyDomainLimit'==_0x38cebf||'trackChangesLicenseKeyNotAllowed'==_0x38cebf||'trackChangesLicenseKeyEvaluationLimit'==_0x38cebf||'trackChangesLicenseKeyTrialLimit'==_0x38cebf||'trackChangesLicenseKeyUsageLimit'==_0x38cebf){delete _0x4681b3[_0x50bdb3],_0x34bcc3=_0x38cebf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x34bcc3&&_0x4681b3['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x34bcc3&&_0x4681b3['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x34bcc3&&_0x4681b3['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x34bcc3&&_0x4681b3['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x34bcc3&&_0x4681b3['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x34bcc3&&_0x4681b3['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x34bcc3&&_0x4681b3['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xbf1e73=this['editor']['plugins']['get']('Annotations'),_0x350977=this['editor']['plugins']['get']('TrackChangesEditing'),_0x115a1c=Array['from'](_0xbf1e73['activeAnnotations'],_0x25af5e=>_0x25af5e['innerView'])['filter'](_0x1d118e=>this['_viewToController']['has'](_0x1d118e)),_0x5602e0=[];for(const _0x11341b of _0x115a1c){const _0x5b6029=this['_viewToController']['get'](_0x11341b)['model']['getAllAdjacentSuggestions']();_0x5602e0['push'](..._0x5b6029['reduce']((_0x5144c5,_0x43ab3c)=>[..._0x5144c5,..._0x43ab3c['getMarkerNames']()],[]));}_0x350977['activeMarkers']=_0x5602e0;}['_addUIComponentsToFactory'](){const _0x5e1e7e=this['editor'],_0x556ae6=_0x5e1e7e['locale'],_0x51d7d9=c(_0x556ae6,'Track\x20changes'),_0x4eef74=new _0x45e36e([{'type':'switchbutton','model':new _0x591cb7({'withText':!0x0,'isToggleable':!0x0,'label':_0x51d7d9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x591cb7({'withText':!0x0,'label':c(_0x556ae6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x591cb7({'withText':!0x0,'label':c(_0x556ae6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x591cb7({'withText':!0x0,'label':c(_0x556ae6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x591cb7({'withText':!0x0,'label':c(_0x556ae6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5e1e7e['plugins']['has']('TrackChangesPreview')&&_0x4eef74['addMany']([{'type':'separator'},{'type':'button','model':new _0x591cb7({'withText':!0x0,'label':c(_0x556ae6,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3c3ddb of _0x4eef74)if(ke(_0x3c3ddb)){const _0x59a041=_0x5e1e7e['commands']['get'](_0x3c3ddb['model']['commandName']);_0x3c3ddb['model']['bind']('isOn','isEnabled')['to'](_0x59a041,'value','isEnabled');}_0x5e1e7e['ui']['componentFactory']['add']('trackChanges',_0x9fa5e2=>this['_createToolbarButton'](_0x9fa5e2,_0x4eef74,_0x51d7d9)),_0x5e1e7e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x587010=>this['_createMenuBarMenu'](_0x587010,_0x4eef74,_0x51d7d9));}['_createToolbarButton'](_0x3e2397,_0x4ecffd,_0xb4ff24){const _0x11985e=_0x38cd8b(_0x3e2397,_0x4b3684),_0x5f22f7=this['editor']['commands']['get']('trackChanges');_0x11985e['buttonView']['set']({'tooltip':_0xb4ff24,'label':_0xb4ff24,'icon':_0x1d487a}),_0x11985e['buttonView']['bind']('isOn')['to'](_0x5f22f7,'value'),_0x11985e['buttonView']['on']('execute',()=>{_0x5f22f7['execute'](),this['editor']['editing']['view']['focus']();}),_0x3b66df(_0x11985e,_0x4ecffd,{'role':'menu'});const _0x5489f7=[];for(const _0x47b7a4 of _0x4ecffd)ke(_0x47b7a4)&&_0x5489f7['push'](this['editor']['commands']['get'](_0x47b7a4['model']['commandName']));const _0x587487=_0x11985e['buttonView'];return _0x587487['actionView']['unbind']('isEnabled'),_0x587487['arrowView']['unbind']('isEnabled'),_0x587487['actionView']['bind']('isEnabled')['to'](_0x5f22f7,'isEnabled'),_0x587487['arrowView']['bind']('isEnabled')['toMany'](_0x5489f7,'isEnabled',(..._0x118035)=>_0x118035['some'](_0x222230=>_0x222230)),_0x11985e['on']('execute',_0x74fdf2=>{this['editor']['execute'](_0x74fdf2['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x11985e;}['_createMenuBarMenu'](_0x258685,_0x30c69b,_0x66eef3){const _0x3d45d4=new _0x1ca301(_0x258685),_0x54b770=this['editor']['commands']['get']('trackChanges');_0x3d45d4['buttonView']['set']({'label':_0x66eef3,'icon':_0x1d487a});const _0x5699a2=new _0x35b624(_0x258685);for(const _0x4e947d of _0x30c69b){if('separator'==_0x4e947d['type']){_0x5699a2['items']['add'](new _0x1b5647(_0x258685));continue;}const _0xd4ac84=new _0x1f56e0(_0x258685,_0x3d45d4),_0x45ba40=new _0x5b093d(_0x258685),_0x560361=_0x4e947d['model'];_0x45ba40['bind'](...Object['keys'](_0x560361))['to'](_0x560361),_0x45ba40['delegate']('execute')['to'](_0x3d45d4),_0x45ba40['on']('execute',()=>{this['editor']['execute'](_0x560361['commandName']),this['editor']['editing']['view']['focus']();}),_0xd4ac84['children']['add'](_0x45ba40),_0x5699a2['items']['add'](_0xd4ac84);}return _0x3d45d4['bind']('isEnabled')['to'](_0x54b770,'isEnabled'),_0x3d45d4['panelView']['children']['add'](_0x5699a2),_0x3d45d4;}['_initializeController'](_0x325c86){const _0x2b8598=this['editor'],_0x3aefb6=_0x2b8598['config'],_0x4a25a4=_0x2b8598['plugins']['get']('Annotations'),_0x899b8=_0x2b8598['plugins']['get']('CommentsRepository'),_0x4af865=_0x2b8598['plugins']['get']('EditorAnnotations'),_0x5bc18c=_0x2b8598['plugins']['get'](_0x5d31d4)['me'],_0x2ee2a6=_0x3aefb6['get']('trackChanges')['SuggestionThreadView'],_0x3dec77=_0x3aefb6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3ed440,CommentThreadInputView:_0x56140c}=_0x2b8598['plugins']['get']('CommentsUI');let _0x1dec6d,_0x375a22,_0x26f4fd;this['_annotationViews']['has'](_0x325c86['id'])?(_0x375a22=this['_annotationViews']['get'](_0x325c86['id']),_0x1dec6d=_0x375a22['mainView']):(_0x1dec6d=new _0x2ee2a6(_0x2b8598['locale'],_0x325c86,_0x5bc18c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3aefb6['get']('comments.editorConfig'),'licenseKey':_0x3aefb6['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3aefb6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3aefb6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3aefb6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1c5959(_0x3aefb6['get']('locale')),'CommentView':_0x3aefb6['get']('comments')['CommentView'],'CommentsListView':_0x3ed440,'CommentThreadInputView':_0x56140c,'SuggestionView':_0x3dec77}),_0x1dec6d['suggestionView']['acceptButton']['on']('execute',()=>{_0x2b8598['editing']['view']['focus']();}),_0x1dec6d['suggestionView']['discardButton']['on']('execute',()=>{_0x2b8598['editing']['view']['focus']();}),_0x375a22=_0x4a25a4['createAnnotationView'](this['editor']['locale'],_0x1dec6d),_0x375a22['bind']('isDirty')['to'](_0x1dec6d,'isDirty'),_0x375a22['bind']('length')['to'](_0x1dec6d),_0x375a22['bind']('type')['to'](_0x1dec6d,'type',_0x4f1717=>'suggestion-'+_0x4f1717),_0x1dec6d['on']('escape',()=>{_0x26f4fd['fire']('escape');}),this['_annotationViews']['set'](_0x325c86['id'],_0x375a22));const _0x3385da=_0x899b8['createCommentThreadController'](_0x325c86['commentThread'],_0x1dec6d),_0x37a755=new pe(_0x2b8598,_0x325c86,_0x1dec6d,_0x3385da),_0x5d44c2=_0x325c86['getAllAdjacentSuggestions']()['filter'](_0x3edbe5=>_0x3edbe5['isInContent']);_0x1dec6d['descriptionParts']=_0x2b8598['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5d44c2),this['_suggestionToController']['set'](_0x325c86,_0x37a755),this['_viewToController']['set'](_0x1dec6d,_0x37a755),_0x26f4fd=_0x4a25a4['createAnnotation']({'view':_0x375a22,'target':()=>{const _0x478fac=[],_0x251b21=_0x325c86['getAllAdjacentSuggestions']()['filter'](_0x12ea5e=>_0x12ea5e['isInContent']);for(const _0x5eb736 of _0x251b21)_0x478fac['push'](..._0x5eb736['getMarkers']());return _0x4cca89(_0x2b8598['editing'],_0x478fac);},'type':()=>'suggestion-'+_0x37a755['view']['type']}),_0x899b8['_bindAnnotationToEditors'](_0x1dec6d,_0x26f4fd),_0x4a25a4['add'](_0x26f4fd),_0x4af865['registerAnnotation'](_0x26f4fd);}['_destroyController'](_0x50bac4){const _0x4812e2=this['editor']['plugins']['get']('CommentsRepository'),_0x53099b=this['editor']['plugins']['get']('Annotations'),_0x4a2c7d=this['_suggestionToController']['get'](_0x50bac4),_0x91a085=_0x4a2c7d['view'],_0x529217=_0x53099b['getByInnerView'](_0x91a085);_0x4812e2['_unbindEditors'](_0x91a085),_0x529217&&_0x53099b['remove'](_0x529217),this['_suggestionToController']['delete'](_0x50bac4),this['_viewToController']['delete'](_0x91a085),_0x4a2c7d['destroy']();}['_updateController'](_0xf4db7f){if(!_0xf4db7f['isInContent']||!this['_suggestionToController']['has'](_0xf4db7f))return;const _0x3372fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40a55f=this['_suggestionToController']['get'](_0xf4db7f),_0x5b9d37=_0xf4db7f['getAllAdjacentSuggestions']();_0x40a55f['view']['descriptionParts']=_0x3372fe['descriptionFactory']['getDescriptions'](_0x5b9d37);}['destroy'](){for(const _0x37b6ca of this['_suggestionToController']['keys']())this['_destroyController'](_0x37b6ca);for(const _0x15a357 of this['_annotationViews']['values']())_0x15a357['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4bcf6d){return'model'in _0x4bcf6d;}class k extends _0x2a6979{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x24a66b){this['editor']['plugins']['get'](p)['adapter']=_0x24a66b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x57cb90){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x57cb90);}['getSuggestions']({skipNotAttached:_0x2ac1cc=!0x1,toJSON:_0x17bf42=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2ac1cc,'toJSON':_0x17bf42});}['getSuggestion'](_0x11f4b4){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x11f4b4);}}const w=['Pagination'];class T extends _0x2a6979{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5acac7=this['editor'];if(_0x5acac7['config']['define']('trackChangesData.editorCreator',_0x5019f8=>{const _0x2b144f=_0x5acac7['model']['document']['getRootNames']()['reduce']((_0x287f1c,_0x50d97d)=>(_0x287f1c[_0x50d97d]='',_0x287f1c),{});return _0x5acac7['constructor']['create'](_0x2b144f,_0x5019f8);}),'function'!=typeof _0x5acac7['config']['get']('trackChangesData')['editorCreator'])throw new _0x540f03('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2afebd){return N(this['editor'],!0x0,_0x2afebd);}['getDataWithDiscardedSuggestions'](_0x76b27a){return N(this['editor'],!0x1,_0x76b27a);}}class D extends _0x2a6979{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x254a5d){function _0x1d7366(_0x1a2edb){return _0x1a2edb['map'](_0x13f498=>String['fromCharCode'](_0x13f498))['join']('');}super(_0x254a5d),this['result']='end',_0x254a5d[_0x1d7366([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d7366([0x76,0x69,0x65,0x77])][_0x1d7366([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d7366([0x61,0x75,0x74,0x6f]),_0x254a5d[_0x1d7366([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1d7366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d7366([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1d7366([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1d7366([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x1f663a){return void 0x0!==_0x1f663a['getRootsAttributes'];}async function N(_0x1afd61,_0x1c44bf,_0x11f3b2){const _0x53291c=_0x4d994b(_0x1afd61,w);_0x53291c['plugins']['push'](p,D),_0x53291c['rootsAttributes']=Fe(_0x1afd61)?_0x1afd61['getRootsAttributes']():void 0x0;const _0x2413c0=document['createDocumentFragment'](),_0x43fa52=_0x1afd61['config']['get']('trackChangesData')['editorCreator'],_0x13dcd6=await _0x43fa52(_0x53291c,()=>function(_0x4abcdd){const _0x45b47e=document['createElement']('div');return _0x4abcdd['appendChild'](_0x45b47e),_0x45b47e;}(_0x2413c0));!function(_0x58cc2e,_0x500fd1){const _0x5acca9=_0x58cc2e['model']['document']['getRootNames']()['reduce']((_0x5a8850,_0x1d2480)=>(_0x5a8850[_0x1d2480]=_0x58cc2e['data']['get']({'rootName':_0x1d2480}),_0x5a8850),{}),_0x108093=_0x58cc2e['plugins']['get']('Users')['users']['map'](_0x3eed96=>({'id':_0x3eed96['id'],'name':_0x3eed96['name']})),_0x372801=_0x58cc2e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x50ac53=_0x58cc2e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x352605=_0x500fd1['plugins']['get']('Users'),_0x55f28c=_0x500fd1['plugins']['get']('TrackChangesEditing'),_0x49a8fa=_0x500fd1['plugins']['get']('CommentsRepository');for(const _0x12f406 of _0x49a8fa['getCommentThreads']())_0x12f406['remove']();for(const _0x2a52e6 of _0x108093)_0x352605['getUser'](_0x2a52e6['id'])||_0x352605['addUser'](_0x2a52e6);_0x352605['me']||_0x352605['useAnonymousUser']();for(const _0x456d92 of _0x50ac53)_0x49a8fa['addCommentThread'](_0x456d92);for(const _0x18c632 of _0x372801)_0x55f28c['addSuggestionData'](_0x18c632);_0x500fd1['data']['set'](_0x5acca9);}(_0x1afd61,_0x13dcd6),_0x13dcd6['execute'](_0x1c44bf?'acceptAllSuggestions':'discardAllSuggestions');const _0x156cc5=Fe(_0x13dcd6)?_0x13dcd6['getFullData'](_0x11f3b2):_0x13dcd6['data']['get'](_0x11f3b2);return await _0x13dcd6['destroy'](),_0x156cc5;}class Me extends _0x55250e{['options'];constructor(_0xc57d74,_0x4cad94){super(_0xc57d74),this['options']=_0x4cad94,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x45c381,_0x112905){if(!this['element'])return;const _0x5d3748=[];for(const [_0x322675,_0x356304]of _0x45c381){const _0x10a1b9=document['createElement']('div');_0x10a1b9['setAttribute']('data-ck-root-name',_0x322675),_0x10a1b9['className']=_0x356304['classes']+'\x20ck-track-changes-preview__root-container',_0x10a1b9['innerHTML']=_0x356304['content'],_0x5d3748['push'](_0x10a1b9);}_0x112905(this['element'],_0x5d3748),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x175ae3{constructor(_0x1486c6){super(_0x1486c6),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3be2ac=this['editor'],_0x2315f3=_0x3be2ac['locale'],_0x4ef112=_0x3be2ac['plugins']['get']('Dialog');let _0x1ccd23;const _0x57df16=function(_0x214f88){const _0x49c711={};if('editables'in _0x214f88['ui']['view']){for(const [_0x478fb8,_0x236130]of Object['entries'](_0x214f88['ui']['view']['editables']))_0x49c711[_0x478fb8]=_0x236130['element'];}else _0x49c711[_0x214f88['model']['document']['getRootNames']()[0x0]]=_0x214f88['ui']['view']['editable']['element'];return _0x49c711;}(_0x3be2ac),_0x55a567=function(_0x525045){let _0x2c1680=0x0;for(const _0x304923 of Object['values'](_0x525045))_0x2c1680=Math['max'](_0x2c1680,_0x304923['getBoundingClientRect']()['width']);let _0xd0967=0x0;for(const _0x11d729 of Object['values'](_0x525045))_0xd0967+=_0x11d729['getBoundingClientRect']()['height'];const _0xa4a6d3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x274304=Math['min'](_0xd0967,_0xa4a6d3);return{'width':_0x2c1680,'height':_0x274304};}(_0x57df16);_0x4ef112['show']({'id':'finalContentPreview','title':c(_0x2315f3,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2315f3,{'dialogRects':_0x55a567}),'onHide':()=>{_0x1ccd23['detachFromDom']();},'onShow':()=>{_0x3be2ac['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x390289=>{const _0x1f016d=this['_standarizeRootsData'](_0x390289,_0x3be2ac,_0x57df16);_0x4ef112['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1f016d,_0x3be2ac['config']['get']('trackChanges.preview.renderFunction'));}),_0x1ccd23=new _0x20f6d4(_0x2315f3,[_0x4ef112['view']]),_0x1ccd23['attachToDom'](),_0x1ccd23['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3be2ac['once']('destroy',()=>{_0x1ccd23['detachFromDom']();});const _0x1c1f1c=_0x4ef112['view']['headerView']['class'];_0x4ef112['view']['headerView']['class']=_0x1c1f1c?_0x1c1f1c+'\x20ck-reset_all':'ck-reset_all',_0x4ef112['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4ef112['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x16c911=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5b8936=_0x16c911['previewMode'],_0x2f0778={};if('$labels'===_0x5b8936){for(const _0x23c4fa of _0x16c911['getMergeFieldsIds']())_0x2f0778[_0x23c4fa]=_0x16c911['getLabel'](_0x23c4fa)||_0x23c4fa;}else{const _0x271192='$defaultValues'===_0x5b8936?_0x16c911['getDefaultValues']():_0x16c911['getDataSetValues'](_0x5b8936,!0x0);for(const _0x402dee of Object['entries'](_0x271192)){const [_0x101ccc,_0x265dbf]=_0x402dee;_0x2f0778[_0x101ccc]=null!==_0x265dbf?_0x265dbf:_0x16c911['getLabel'](_0x101ccc)||_0x101ccc;}}return{'mergeFieldsData':_0x2f0778};}['_standarizeRootsData'](_0x25ab68,_0x317e14,_0xb53d09){let _0x568e38;if('string'==typeof _0x25ab68){const _0x5da326=_0x317e14['model']['document']['getRootNames']()[0x0];_0x568e38={[_0x5da326]:_0x25ab68};}else _0x568e38=_0x25ab68;const _0xb6ea33=this['_fixMediaEmbeds'](_0x568e38,_0x317e14),_0x3181a4=function(_0x137d33,_0x225efa){for(const [_0x2d4210,_0x2e5c4f]of _0x137d33)_0x2e5c4f['classes']=_0x225efa[_0x2d4210]['classList']['value']['replace']('ck-focused','');return _0x137d33;}(this['_sortRoots'](_0x317e14)['reduce']((_0x3fac95,_0x6ce532)=>(_0x3fac95['push']([_0x6ce532,{'content':_0xb6ea33[_0x6ce532],'classes':''}]),_0x3fac95),[]),_0xb53d09);return _0x3181a4;}['_fixMediaEmbeds'](_0x37dead,_0xd970c8){if(!_0xd970c8['plugins']['has']('MediaEmbedEditing'))return _0x37dead;const _0x4e6638=_0xd970c8['plugins']['get']('MediaEmbedEditing');for(const [_0x520370,_0x177620]of Object['entries'](_0x37dead)){const _0x1e523a=document['createElement']('div');_0x1e523a['innerHTML']=_0x177620,(_0x1e523a['querySelectorAll']('figure.media')['forEach'](_0x281feb=>{const _0x16ff55=_0x281feb['querySelector']('oembed');if(_0x16ff55){const _0x20fc76=_0x16ff55['getAttribute']('url');if(_0x20fc76){const _0x591e8f=_0x4e6638['registry']['getMediaViewElement'](new _0x22985f(_0xd970c8['editing']['view']['document']),_0x20fc76,{'elementName':'','renderForEditingView':!0x0}),_0x12b482=document['createElement']('div');_0x12b482['classList']['add']('ck-media__wrapper'),_0x591e8f['render'](_0x12b482,_0xd970c8['editing']['view']['domConverter']),_0x16ff55['replaceWith'](_0x12b482);}}}),_0x37dead[_0x520370]=_0x1e523a['innerHTML']);}return _0x37dead;}['_sortRoots'](_0x29d430){if(!function(_0x1fc557){return void 0x0!==_0x1fc557['getRootsAttributes'];}(_0x29d430))return _0x29d430['model']['document']['getRootNames']();const _0x93d13e=[],_0x22d7c3=new Map();for(const _0x18210a of _0x29d430['model']['document']['getRootNames']()){const _0x42cd0a=_0x29d430['editing']['view']['getDomRoot'](_0x18210a)['getClientRects']()['item'](0x0);_0x93d13e['push'](_0x18210a),_0x22d7c3['set'](_0x18210a,_0x42cd0a);}return _0x93d13e['sort']((_0x1b48b2,_0x4a666e)=>{const _0x70ffd=_0x22d7c3['get'](_0x1b48b2),_0x135ff5=_0x22d7c3['get'](_0x4a666e);return _0x70ffd['y']-_0x135ff5['y']||_0x70ffd['x']-_0x135ff5['x'];}),_0x93d13e;}}class te extends _0x2a6979{static get['requires'](){return[T,_0x5c38f4];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x122fc8){super(_0x122fc8),_0x122fc8['commands']['add']('previewFinalContent',new re(this['editor'])),_0x122fc8['config']['define']('trackChanges.preview.renderFunction',(_0x43c950,_0x299f3f)=>{for(const _0x5c6600 of _0x299f3f)_0x43c950['appendChild'](_0x5c6600);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x32beec,Plugin as _0x45133c,PendingActions as _0x5af59d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5dd626,ObservableMixin as _0x4c8e05,uid as _0x2612d4,priorities as _0x1691ee,insertToPriorityArray as _0x177b99,logWarning as _0x40fadc,getEnvKeystrokeText as _0x18891d,FocusTracker as _0x14ac43,KeystrokeHandler as _0x4e433a,Collection as _0x5ea54c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2b91d8,IconCancel as _0x4dce2c,IconTrackChanges as _0x15158e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x31d9e1,View as _0x4a6fb7,ViewCollection as _0x279781,FocusCycler as _0x15a3e8,ViewModel as _0x1d26cd,createDropdown as _0xfda68c,SplitButtonView as _0x309917,addListToDropdown as _0x2bb6dd,MenuBarMenuView as _0x2af4e2,MenuBarMenuListView as _0x14bb6a,ListSeparatorView as _0x2fbf22,MenuBarMenuListItemView as _0x397023,MenuBarMenuListItemButtonView as _0x9e6c9d,BodyCollection as _0x1a89ef,Dialog as _0x24c472}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1b4cac,hashObject as _0x45cfb7,surroundingMarkersDetector as _0xec9857,FOCUS_ANNOTATION_KEYSTROKE as _0x4f5b16,AriaDescriptionView as _0x2deb1f,setupThreadKeyboardNavigation as _0x32509a,trimHtml as ti,UserView as _0x3456bc,LateFocusButtonView as _0x4b87e5,getDateTimeFormatter as _0x59c366,getAllMarkersDomElementsSorted as _0x462d3c,sanitizeEditorConfig as _0x2e21b6}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3acc55,LiveRange as _0x51fe0f,LivePosition as _0x495371,DowncastWriter as _0x1a1864}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5451a9,toWidget as _0x1048bb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x40d4c8,set as _0x30a960,isEqual as _0x21c99e,unset as _0x1a1a69,omit as Vt}from'es-toolkit/compat';import{Delete as _0x354e30,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3c3269,ShiftEnter as _0xe8ac85}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x32beec{['_enabledCommands'];constructor(_0x4a7ad7,_0x1bb163){super(_0x4a7ad7),this['_enabledCommands']=_0x1bb163,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x270582 of this['editor']['commands']['commands']())_0x270582['affectsData']&&!this['_enabledCommands']['has'](_0x270582)&&_0x270582['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4f3c07 of this['editor']['commands']['commands']())_0x4f3c07['affectsData']&&!this['_enabledCommands']['has'](_0x4f3c07)&&_0x4f3c07['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x32beec{['_suggestions'];constructor(_0x30aaef,_0x22003f){super(_0x30aaef),this['_suggestions']=_0x22003f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x37dad6){const _0x5c671b=this['_suggestions']['get'](_0x37dad6);if(!_0x5c671b)throw new _0x5dd626('track-changes-accept-suggestion-not-found',this);const _0x3be949=_0x5c671b['getRanges']();this['editor']['model']['canEditAt'](_0x3be949)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5c671b);}}class R extends _0x32beec{['_suggestions'];constructor(_0x34d154,_0xac88e2){super(_0x34d154),this['_suggestions']=_0xac88e2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5dea04){const _0x1b7b01=this['_suggestions']['get'](_0x5dea04);if(!_0x1b7b01)throw new _0x5dd626('track-changes-discard-suggestion-not-found',this);const _0x46be34=_0x1b7b01['getRanges']();this['editor']['model']['canEditAt'](_0x46be34)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1b7b01);}}function ls(_0x593b65,_0x1f4373){let _0x3d9ed5='';return _0x3d9ed5+=_0x593b65['split']('*')['map']((_0x55d5f0,_0x1c92f6)=>_0x1c92f6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x55d5f0)+'</span>':nn(_0x55d5f0))['join'](''),_0x1f4373&&(_0x3d9ed5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1f4373['value']+'\x22\x20title=\x22'+_0x1f4373['title']+'\x22></span>'),_0x3d9ed5;}function nn(_0x184677){const _0x9c5899=document['createElement']('span');return _0x9c5899['innerText']=_0x184677,_0x9c5899['innerHTML'];}function ts(_0x3c3cd9){return _0x3c3cd9['sort']((_0x3eed53,_0x184c22)=>'deletion'==_0x3eed53['type']&&'deletion'!=_0x184c22['type']?-0x1:'deletion'!=_0x3eed53['type']&&'deletion'==_0x184c22['type']?0x1:0x0);}function Zt(_0x5e080d,_0x4fd962){let _0x36ea57,_0x3168c9=0x0;const _0x5bd421=[],_0x2e27d9=_0x4fd962['schema'];for(;_0x3168c9<_0x5e080d['length'];){const _0x573a6b=_0x5e080d[_0x3168c9],_0x5490ff=_0x5e080d[_0x3168c9+0x1];_0x36ea57||(_0x36ea57=_0x4fd962['createPositionBefore'](_0x573a6b)),on(_0x4fd962,_0x573a6b,_0x5490ff)||(_0x5bd421['push'](_0x4fd962['createRange'](_0x36ea57,_0x2e27d9['isObject'](_0x573a6b)?_0x4fd962['createPositionAfter'](_0x573a6b):_0x4fd962['createPositionAt'](_0x573a6b,'end'))),_0x36ea57=null),_0x3168c9++;}return _0x5bd421;}function on(_0x366c63,_0x303c25,_0x461f9b){if(!_0x461f9b)return!0x1;const _0x253609=_0x366c63['createPositionAfter'](_0x303c25),_0x290f9f=_0x366c63['createPositionBefore'](_0x461f9b);return _0x253609['isTouching'](_0x290f9f);}function rs(_0x390719,_0x2ac2d6,_0x391472){for(;_0x391472['length'];){const _0x363d57=_0x391472['splice'](0x0,0x64);_0x390719['change'](()=>{for(const _0x7d877e of _0x363d57)_0x7d877e['isInContent']&&_0x2ac2d6['execute'](_0x7d877e['id']);});}}class x extends _0x32beec{['_command'];['_suggestions'];constructor(_0x55dd04,_0x15724c,_0x3cd791){super(_0x55dd04),this['_command']=_0x15724c,this['_suggestions']=_0x3cd791,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x468b2a=Array['from'](this['_suggestions']['values']())['some'](_0x593c0a=>_0x593c0a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x468b2a;}['execute'](){const _0x37f2a3=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2e744f of _0x37f2a3){const _0x1d13c2=_0x2e744f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1d13c2))return;}rs(this['editor']['model'],this['_command'],_0x37f2a3);}}class E extends _0x32beec{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x392600,_0x19c072,_0x235ab7){super(_0x392600),this['_command']=_0x19c072,this['_suggestions']=_0x235ab7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x250be1=this['editor']['model']['document']['selection'],_0xf1954d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x37fcf8,_0x11511a){const _0x2e78f1=Array['from'](_0x37fcf8['getRanges']()),_0xe4f21f=new Set();for(const _0x4d0298 of _0x11511a)if(_0x4d0298['isInContent']){for(const _0x36936c of _0x2e78f1)for(const _0x156787 of _0x4d0298['getRanges']())(_0x36936c['isIntersecting'](_0x156787)||_0x37fcf8['isCollapsed']&&!_0x4d0298['isMultiRange']&&_0x4d0298['next']&&_0x156787['end']['isTouching'](_0x36936c['start']))&&_0xe4f21f['add'](_0x4d0298);}return _0xe4f21f;}(_0x250be1,_0xf1954d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xa8bcc0=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1958e2 of _0xa8bcc0){const _0x5cfa35=_0x1958e2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5cfa35))return;}rs(this['editor']['model'],this['_command'],_0xa8bcc0);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x4c8e05(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x35f3d1,_0xe09f65){super(),this['id']=_0xe09f65['id'],this['type']=_0xe09f65['type'],this['subType']=_0xe09f65['subType']||null,this['author']=_0xe09f65['author'],this['creator']=_0xe09f65['creator']||_0xe09f65['author'],this['isExternal']=Boolean(_0xe09f65['attributes']&&_0xe09f65['attributes']['@external']),this['data']=null,this['_model']=_0x35f3d1,this['_onAccept']=_0xe09f65['onAccept'],this['_onDiscard']=_0xe09f65['onDiscard'],this['_onAttributesChange']=_0xe09f65['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xe09f65['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0xea6e83=this;for(;_0xea6e83['previous'];)_0xea6e83=_0xea6e83['previous'];return _0xea6e83;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x3fd9d8){this['_markerNames']['add'](_0x3fd9d8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2e5efc=>this['_model']['markers']['get'](_0x2e5efc))['filter'](_0x3cd2bf=>_0x3cd2bf);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x35af59=>{for(const _0x20c096 of this['getMarkers']())_0x35af59['removeMarker'](_0x20c096);}),this['_markerNames']['clear']();}['removeMarker'](_0x21f4f9){this['_model']['change'](_0x15a54b=>{_0x15a54b['removeMarker'](_0x21f4f9);}),this['_markerNames']['delete'](_0x21f4f9);}['addRange'](_0x4bb5cf){const _0x199bf6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x199bf6),this['_model']['change'](_0x279aaa=>{_0x279aaa['addMarker'](_0x199bf6,{'range':_0x4bb5cf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x533343){for(const _0x3e4290 of this['getRanges']())if(_0x3e4290['isIntersecting'](_0x533343))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5ba00e=>_0x5ba00e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x153fa3,_0x5d13ff)=>[..._0x153fa3,..._0x5d13ff['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x22af61=this['getRanges']();if(0x1!=_0x22af61['length'])return null;const _0x34b7ef=_0x22af61[0x0],_0x175494=_0x34b7ef['start']['nodeAfter'],_0x2fad31=_0x34b7ef['end']['nodeBefore'];return _0x175494 instanceof _0x3acc55?_0x175494!=_0x2fad31?null:_0x175494:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x20d937=[];let _0x43fced=this['head'];for(;_0x43fced;)_0x20d937['push'](_0x43fced),_0x43fced=_0x43fced['next'];return _0x20d937;}['setAttribute'](_0x394385,_0x26508b){const _0x3c5447=_0x40d4c8(this['attributes']);_0x30a960(_0x3c5447,_0x394385,_0x26508b),_0x21c99e(_0x3c5447,this['attributes'])||(this['attributes']=_0x3c5447,this['_onAttributesChange'](_0x3c5447));}['removeAttribute'](_0x340def){const _0xa94194=_0x40d4c8(this['attributes']);_0x1a1a69(_0xa94194,_0x340def),_0x21c99e(_0xa94194,this['attributes'])||(this['attributes']=_0xa94194,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x2612d4()['substr'](0x1,0x5);}}function c(_0x9b4410,_0x396dc8,_0x33733e){const _0x4ba844=_0x9b4410['t'],t=_0x9b4410['t'];switch(_0x396dc8){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x33733e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x33733e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x33733e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x33733e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x33733e);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x33733e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x33733e);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x33733e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x33733e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x33733e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x33733e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x33733e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x33733e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x33733e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x33733e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x33733e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x33733e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x33733e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x33733e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x33733e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x33733e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x33733e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x33733e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x33733e);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x33733e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x33733e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x33733e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x33733e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x33733e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x33733e);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x33733e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x33733e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x33733e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x33733e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x33733e);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x33733e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x33733e);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x33733e);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x33733e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x33733e);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x33733e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x33733e);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x33733e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x33733e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x33733e);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x33733e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x33733e);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x4ba844({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x33733e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ba844({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x33733e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x33733e);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x33733e);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x33733e);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x33733e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x396dc8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3137cb,_0x432fea){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3137cb,this['_locale']=_0x432fea;}['getDescriptions'](_0x286496){const _0x837681=[],_0xa49438=new Set(),_0x536c88=new Set();for(let _0x3c070f=0x0;_0x3c070f<_0x286496['length'];_0x3c070f++){const _0x80a1c2=_0x286496[_0x3c070f];if(!_0x80a1c2['isInContent'])continue;const _0x19e44d=this['_handleCustomCallbackDescription'](_0x80a1c2);if(_0x19e44d){if(null!=_0x80a1c2['subType']){if(_0xa49438['has'](_0x80a1c2['subType']))continue;_0xa49438['add'](_0x80a1c2['subType']);}_0x837681['push'](_0x19e44d);}else{if('attribute'!=_0x80a1c2['type'])'insertion'!=_0x80a1c2['type']&&'deletion'!=_0x80a1c2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x837681,_0x80a1c2,_0x286496[_0x3c070f+0x1]);else{const _0x51a76e=_0x80a1c2['data']['key'];if(_0x536c88['has'](_0x51a76e))continue;_0x536c88['add'](_0x80a1c2['data']['key']),_0x51a76e==u?this['_handleRenameSuggestionDescription'](_0x837681,_0x80a1c2):this['_handleAttributeSuggestionDescription'](_0x837681,_0x80a1c2);}}}return this['_resolveDescriptionItems'](_0x837681);}['registerDescriptionCallback'](_0x69e9fd){this['_customCallbacks']['push'](_0x69e9fd);}['registerElementLabel'](_0x5c5483,_0x366b05,_0x4d8b8b=_0x1691ee['normal']){'function'==typeof _0x5c5483?_0x177b99(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5c5483,'label':_0x366b05,'priority':_0x4d8b8b}):this['_itemLabels']['set'](_0x5c5483,_0x366b05);}['registerAttributeLabel'](_0x106889,_0x15d3b7){this['_attributeLabels']['set'](_0x106889,_0x15d3b7);}['getItemLabel'](_0x55b0b9,_0x560277=0x1){let _0x4c6f4b;for(const _0x4ab86b of this['_itemLabelsCallbacks'])if(_0x4ab86b['matchingCallback'](_0x55b0b9)){_0x4c6f4b=_0x4ab86b['label'];break;}return _0x4c6f4b||(_0x4c6f4b=this['_itemLabels']['get'](_0x55b0b9['name'])),_0x4c6f4b?_0x4c6f4b(_0x560277):0x1!==_0x560277?_0x560277+'\x20'+_0x55b0b9['name']+'s':''+_0x55b0b9['name'];}['_addDescriptionItems'](_0x2f948a,_0x4cfec8){const _0x435d62=_0x4cfec8['getFirstRange']()['getWalker'](),_0x4938c1='insertion'==_0x4cfec8['type']?'add':'remove';for(const _0x552dfa of _0x435d62){const _0x2916f6=_0x552dfa['item'],_0x25b72c=_0x2f948a[_0x2f948a['length']-0x1];if(_0x2916f6['is']('$textProxy'))_0x25b72c&&_0x25b72c['type']['indexOf']('Container')>-0x1&&_0x2f948a['pop'](),_0x25b72c&&'text'==_0x25b72c['type']?_0x25b72c[_0x4938c1]+=_0x2916f6['data']:_0x2f948a['push']({'type':'text','add':'add'==_0x4938c1?_0x2916f6['data']:'','remove':'remove'==_0x4938c1?_0x2916f6['data']:''});else{if(this['_schema']['isObject'](_0x2916f6)){const _0x4ff005=_0x2916f6;if(_0x25b72c&&_0x25b72c['type']['indexOf']('Container')>-0x1&&_0x2f948a['pop'](),'elementEnd'==_0x552dfa['type'])continue;_0x25b72c&&_0x25b72c['type']==_0x4938c1+'Object'&&_0x25b72c['element']['name']==_0x4ff005['name']?_0x25b72c['quantity']++:_0x2f948a['push']({'type':_0x4938c1+'Object','element':_0x4ff005,'quantity':0x1}),_0x435d62['skip'](_0x53f29b=>!('elementEnd'==_0x53f29b['type']&&_0x53f29b['item']==_0x2916f6));}else{if(this['_schema']['checkChild'](_0x2916f6,'$text')||_0x2916f6['is']('element','softBreak')){const _0x47a67a=_0x2916f6;if('add'==_0x4938c1&&'elementStart'==_0x552dfa['type']||'remove'==_0x4938c1&&'elementEnd'==_0x552dfa['type'])continue;if(_0x25b72c&&-0x1==_0x25b72c['type']['indexOf']('Container')){'text'==_0x25b72c['type']&&(_0x25b72c[_0x4938c1]+='\x0a');continue;}let _0x2d5c7d;if(_0x2d5c7d='add'==_0x4938c1?_0x47a67a['nextSibling']&&!this['_schema']['isObject'](_0x47a67a['nextSibling'])?_0x47a67a['nextSibling']:null:_0x47a67a['previousSibling']&&!this['_schema']['isObject'](_0x47a67a['previousSibling'])?_0x47a67a['previousSibling']:null,_0x47a67a['isEmpty']||_0x2d5c7d&&_0x2d5c7d['isEmpty']){const _0x42f14d=_0x2d5c7d&&_0x2d5c7d['isEmpty']?_0x2d5c7d:_0x47a67a;_0x25b72c&&_0x25b72c['type']==_0x4938c1+'EmptyContainer'&&_0x25b72c['element']['name']==_0x42f14d['name']?_0x25b72c['quantity']++:_0x2f948a['push']({'type':_0x4938c1+'EmptyContainer','element':_0x42f14d,'quantity':0x1});}else _0x2f948a['push']({'type':_0x4938c1+'Container','element':_0x47a67a});}}}}}['_resolveDescriptionItems'](_0x40b47e){const _0x5d0da7=this['_locale'],_0x19c19b=[],_0x5f52bb=[],_0x7e99e1=[];for(const _0x48c7a7 of _0x40b47e)switch(_0x48c7a7['type']){case'text':if(_0x48c7a7['add']=_0x48c7a7['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x48c7a7['remove']=_0x48c7a7['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x48c7a7['add']&&''!=_0x48c7a7['remove']){_0x19c19b['push']({'type':'replace','content':c(_0x5d0da7,'REPLACE_TEXT',['\x22'+_0x48c7a7['remove']+'\x22','\x22'+_0x48c7a7['add']+'\x22'])});continue;}if(null!=_0x48c7a7['add']['match'](/^ +$/)){_0x19c19b['push']({'type':'insertion','content':c(_0x5d0da7,'*Insert:*\x20%0',c(_0x5d0da7,'ELEMENT_SPACE',_0x48c7a7['add']['length']))});continue;}if(null!=_0x48c7a7['remove']['match'](/^ +$/)){_0x19c19b['push']({'type':'deletion','content':c(_0x5d0da7,'*Remove:*\x20%0',c(_0x5d0da7,'ELEMENT_SPACE',_0x48c7a7['remove']['length']))});continue;}if(''!=_0x48c7a7['add']){_0x19c19b['push']({'type':'insertion','content':c(_0x5d0da7,'*Insert:*\x20%0','\x22'+_0x48c7a7['add']+'\x22')});continue;}_0x19c19b['push']({'type':'deletion','content':c(_0x5d0da7,'*Remove:*\x20%0','\x22'+_0x48c7a7['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x19c19b['push']({'type':'insertion','content':c(_0x5d0da7,'*Insert:*\x20%0',this['getItemLabel'](_0x48c7a7['element'],_0x48c7a7['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x19c19b['push']({'type':'deletion','content':c(_0x5d0da7,'*Remove:*\x20%0',this['getItemLabel'](_0x48c7a7['element'],_0x48c7a7['quantity']))});continue;case'addContainer':_0x19c19b['push']({'type':'insertion','content':c(_0x5d0da7,'*Split:*\x20%0',this['getItemLabel'](_0x48c7a7['element'],_0x48c7a7['quantity']))});continue;case'removeContainer':_0x19c19b['push']({'type':'deletion','content':c(_0x5d0da7,'*Merge:*\x20%0',this['getItemLabel'](_0x48c7a7['element'],_0x48c7a7['quantity']))});continue;case'addFormat':_0x5f52bb['push'](_0x48c7a7['key']);continue;case'removeFormat':_0x7e99e1['push'](_0x48c7a7['key']);continue;default:_0x19c19b['push'](_0x48c7a7);}if(_0x5f52bb['length']){const _0x416b29=_0x5f52bb['map'](_0x2c8563=>this['_attributeLabels']['has'](_0x2c8563)?this['_attributeLabels']['get'](_0x2c8563):_0x2c8563)['join'](',\x20');_0x19c19b['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x416b29)});}if(_0x7e99e1['length']){const _0x930051=_0x7e99e1['map'](_0x4272c6=>this['_attributeLabels']['has'](_0x4272c6)?this['_attributeLabels']['get'](_0x4272c6):_0x4272c6)['join'](',\x20');_0x19c19b['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x930051)});}return _0x19c19b;}['_handleCustomCallbackDescription'](_0x538e28){for(const _0x4cd647 of this['_customCallbacks']){const _0x23aca6=_0x4cd647(_0x538e28);if(_0x23aca6&&'type'in _0x23aca6)return _0x23aca6;}}['_handleAttributeSuggestionDescription'](_0x43ca9a,_0x479aab){const _0x27c6b9=_0x479aab['data'],_0x4c0339=void 0x0===_0x27c6b9['newValue']?'removeFormat':'addFormat';_0x43ca9a['push']({'type':_0x4c0339,'key':_0x27c6b9['key']});}['_handleRenameSuggestionDescription'](_0x311922,_0x40b4ee){_0x311922['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x40b4ee['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xa55a1,_0x1b89d0,_0x36de5e){if(this['_addDescriptionItems'](_0xa55a1,_0x1b89d0),_0x36de5e&&_0x36de5e['getFirstRange']()&&!_0x1b89d0['getFirstRange']()['end']['isEqual'](_0x36de5e['getFirstRange']()['start'])){const _0x140c93=_0xa55a1[_0xa55a1['length']-0x1],_0x1fe002='insertion'==_0x1b89d0['type']?'add':'remove';_0x140c93&&'text'==_0x140c93['type']&&(_0x140c93[_0x1fe002]+='\x0a');}}}class U extends _0x45133c{['afterInit'](){const _0x1b9a7c=this['editor'],_0x4201dd=_0x1b9a7c['plugins']['get']('TrackChangesEditing');_0x1b9a7c['commands']['get']('showAIAssistant')&&_0x4201dd['enableCommand']('showAIAssistant');}}class V extends _0x45133c{['afterInit'](){const _0x1d84a4=this['editor'],_0x5ded3a=_0x1d84a4['locale'];if(!_0x1d84a4['plugins']['has']('AlignmentEditing'))return;const _0x2f6615=_0x1d84a4['plugins']['get']('TrackChangesEditing');_0x2f6615['enableDefaultAttributesIntegration']('alignment'),_0x2f6615['registerBlockAttribute']('alignment'),_0x2f6615['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x5ded3a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xef3064=this['editor'],_0x124dd0=_0xef3064['locale'];_0xef3064['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13c853=>{if('formatBlock'!=_0x13c853['type'])return;const {data:_0x1d809a}=_0x13c853;if(_0x1d809a&&'alignment'==_0x1d809a['commandName']){const _0x18b4d6=_0x1d809a['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x124dd0,'*Format:*\x20%0',function(_0x5cee04){switch(_0x5cee04){case'left':return c(_0x124dd0,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x124dd0,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x124dd0,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x124dd0,'FORMAT_JUSTIFY_TEXT');}}(_0x18b4d6))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x45133c{['afterInit'](){const _0x2ea693=this['editor'],_0x45a953=_0x2ea693['plugins']['get']('TrackChangesEditing'),_0x21cd18=_0x2ea693['locale'];for(const _0x302dfa of Yt){if(!_0x2ea693['plugins']['has'](_0x302dfa))continue;const _0x1694f6=_0x302dfa['slice'](0x0,-0x7)['toLowerCase'](),_0x5d3021='FORMAT_'+_0x1694f6['toUpperCase']();_0x45a953['enableDefaultAttributesIntegration'](_0x1694f6),_0x45a953['registerInlineAttribute'](_0x1694f6),_0x45a953['descriptionFactory']['registerAttributeLabel'](_0x1694f6,c(_0x21cd18,_0x5d3021));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bb47e=this['editor'],_0x5a1556=_0x4bb47e['locale'],_0x3dcb1d=_0x4bb47e['plugins']['get']('TrackChangesEditing');function _0x10f2da(_0x236dab,_0x1635cd){_0x3dcb1d['descriptionFactory']['registerDescriptionCallback'](_0x7b9e97=>{if('formatInline'!=_0x7b9e97['type'])return;const {data:_0x4c2ff4}=_0x7b9e97;return _0x4c2ff4&&_0x4c2ff4['commandName']===_0x236dab?_0x4c2ff4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5a1556,'*Format:*\x20%0',_0x1635cd)}:{'type':'format','content':c(_0x5a1556,'*Remove\x20format:*\x20%0',_0x1635cd)}:void 0x0;});}_0x10f2da('bold',c(_0x5a1556,'FORMAT_BOLD')),_0x10f2da('italic',c(_0x5a1556,'FORMAT_ITALIC')),_0x10f2da('underline',c(_0x5a1556,'FORMAT_UNDERLINE')),_0x10f2da('code',c(_0x5a1556,'FORMAT_CODE')),_0x10f2da('strikethrough',c(_0x5a1556,'FORMAT_STRIKETHROUGH')),_0x10f2da('subscript',c(_0x5a1556,'FORMAT_SUBSCRIPT')),_0x10f2da('superscript',c(_0x5a1556,'FORMAT_SUPERSCRIPT'));}}class G extends _0x45133c{['afterInit'](){const _0x22dbb1=this['editor'],_0x23f853=_0x22dbb1['locale'];if(!_0x22dbb1['plugins']['has']('BlockQuoteEditing'))return;const _0x4ebe34=_0x22dbb1['plugins']['get']('TrackChangesEditing'),_0x1a261c=this['editor']['commands']['get']('blockQuote');_0x4ebe34['enableCommand']('blockQuote',(_0x3ff6d1,_0x16f44d={})=>{const _0xb9e603=this['editor']['model']['document']['selection'],_0x47a695=_0x16f44d&&void 0x0!==_0x16f44d['forceValue']?_0x16f44d['forceValue']:!_0x1a261c['value'];let _0x10495a=[];if(_0x47a695){const _0x2b3e2f=Array['from'](_0xb9e603['getSelectedBlocks']())['filter'](_0x195fc1=>to(_0x195fc1)||function(_0x257d15,_0x1ac752){const _0x502627=_0x1ac752['checkChild'](_0x257d15['parent'],'blockQuote'),_0x5a3c93=_0x1ac752['checkChild'](['$root','blockQuote'],_0x257d15);return _0x502627&&_0x5a3c93;}(_0x195fc1,this['editor']['model']['schema']));_0x10495a=Zt(_0x2b3e2f,_0x22dbb1['model']);}else{const _0x172a78=Array['from'](_0xb9e603['getSelectedBlocks']())['filter'](_0xca1903=>to(_0xca1903));_0x10495a=Zt(_0x172a78,_0x22dbb1['model']);}_0x22dbb1['model']['change'](()=>{for(const _0xca9dd2 of _0x10495a)_0x4ebe34['markBlockFormat'](_0xca9dd2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x47a695}]});});}),_0x4ebe34['descriptionFactory']['registerDescriptionCallback'](_0x228c10=>{const {data:_0x22faad}=_0x228c10;if(_0x22faad&&'blockQuote'==_0x22faad['commandName']){const _0x1479b9=c(_0x23f853,'ELEMENT_BLOCK_QUOTE');return _0x22faad['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x23f853,'*Set\x20format:*\x20%0',_0x1479b9)}:{'type':'format','content':c(_0x23f853,'*Remove\x20format:*\x20%0',_0x1479b9)};}});}}function to(_0x5b2ca3){return'blockQuote'==_0x5b2ca3['parent']['name'];}class L extends _0x45133c{['afterInit'](){const _0x39db80=this['editor'],_0x530a76=_0x39db80['locale'],_0x50abdb=_0x39db80['plugins']['get']('TrackChangesEditing');_0x39db80['plugins']['has']('BookmarkEditing')&&(_0x50abdb['enableCommand']('insertBookmark'),_0x50abdb['enableDefaultAttributesIntegration']('updateBookmark'),_0x50abdb['registerBlockAttribute']('bookmarkId'),_0x50abdb['descriptionFactory']['registerDescriptionCallback'](_0x4cfa13=>{if('insertion'!=_0x4cfa13['type']&&'deletion'!=_0x4cfa13['type']&&'attribute'!=_0x4cfa13['type'])return;const _0x14d146=_0x4cfa13['getContainedElement']();if(null==_0x14d146)return;if(!_0x14d146['is']('element','bookmark'))return;const _0x2112ab=_0x14d146['getAttribute']('bookmarkId');if('insertion'==_0x4cfa13['type'])return{'type':'insertion','content':c(_0x530a76,'*Insert:*\x20%0','\x22'+_0x2112ab+'\x22\x20'+c(_0x530a76,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4cfa13['type'])return{'type':'deletion','content':c(_0x530a76,'*Remove:*\x20%0','\x22'+_0x2112ab+'\x22\x20'+c(_0x530a76,'ELEMENT_BOOKMARK'))};const {data:_0x43df38}=_0x4cfa13;if(!_0x43df38||'bookmarkId'!=_0x43df38['key'])return;return{'type':'format','content':c(_0x530a76,'*Set\x20bookmark:*\x20%0','\x22'+_0x43df38['newValue']+'\x22')};}));}}class J extends _0x45133c{['afterInit'](){const _0xbe3ea1=this['editor'];_0xbe3ea1['plugins']['has']('CaseChange')&&(_0xbe3ea1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xbe3ea1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xbe3ea1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x45133c{['afterInit'](){const _0x264808=this['editor'];_0x264808['commands']['get']('ckbox')&&_0x264808['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x45133c{['afterInit'](){const _0x31f64a=this['editor'];if(!_0x31f64a['plugins']['has']('CodeBlock'))return;const _0x1386f9=_0x31f64a['plugins']['get']('TrackChangesEditing'),_0xa6e45e=_0x31f64a['locale'],_0x4e4cf5=_0x31f64a['config']['get']('codeBlock')['languages'],_0x314329=_0x31f64a['commands']['get']('codeBlock');_0x1386f9['enableCommand']('indentCodeBlock'),_0x1386f9['enableCommand']('outdentCodeBlock'),_0x1386f9['enableCommand']('codeBlock',(_0xf2a47c,_0x2bfc57={})=>{const _0x317cf8=_0x31f64a['model'],_0x74ed19=_0x31f64a['model']['document']['selection'],_0xc8059f=_0x2bfc57&&void 0x0!==_0x2bfc57['forceValue']?_0x2bfc57['forceValue']:!_0x314329['value'];let _0x358c1d;_0x2bfc57['language']||(_0x2bfc57['language']=_0x4e4cf5[0x0]['language']),_0x358c1d=_0xc8059f?Array['from'](_0x74ed19['getSelectedBlocks']())['filter'](_0x24c39b=>oo(_0x24c39b)||function(_0x4f768d,_0x2cd03f){if(_0x4f768d['is']('rootElement')||_0x2cd03f['isLimit'](_0x4f768d))return!0x1;return _0x2cd03f['checkChild'](_0x4f768d['parent'],'codeBlock');}(_0x24c39b,_0x317cf8['schema'])):Array['from'](_0x74ed19['getSelectedBlocks']())['filter'](_0xfdde0f=>oo(_0xfdde0f));const _0x22c46a=Zt(_0x358c1d,_0x317cf8);_0x317cf8['change'](()=>{for(const _0x4b2c0e of _0x22c46a)_0x1386f9['markBlockFormat'](_0x4b2c0e,{'commandName':'codeBlock','commandParams':[{..._0x2bfc57,'forceValue':_0xc8059f}],'formatGroupId':'blockName'});});}),(_0x1386f9['descriptionFactory']['registerElementLabel']('codeBlock',_0x187240=>c(_0xa6e45e,'ELEMENT_CODE_BLOCK',_0x187240)),_0x1386f9['descriptionFactory']['registerDescriptionCallback'](_0x546350=>{if('formatBlock'!=_0x546350['type'])return;const _0x21cf39=_0xa6e45e['t'],{data:_0x3d7a4c}=_0x546350;if(!_0x3d7a4c||'codeBlock'!=_0x3d7a4c['commandName'])return;const _0x4f4b25=_0x3d7a4c['commandParams'][0x0]['language'],_0x99a26f=_0x21cf39(_0x4e4cf5['find'](_0x285768=>_0x285768['language']===_0x4f4b25)['label'])['toLowerCase']();return _0x3d7a4c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xa6e45e,'*Set\x20format:*\x20%0',c(_0xa6e45e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x99a26f+')')}:{'type':'format','content':c(_0xa6e45e,'*Remove\x20format:*\x20%0',c(_0xa6e45e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x139cdf){return'codeBlock'==_0x139cdf['name'];}class q extends _0x45133c{['afterInit'](){const _0x3bc8c9=this['editor'];if(!_0x3bc8c9['plugins']['has']('CommentsEditing'))return;_0x3bc8c9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1dfcb1,_0x252191,_0x4af75c){const _0x369d50=[];for(const _0x71ccc4 of _0x252191['getItems']())_0x71ccc4['hasAttribute'](_0x1dfcb1)&&_0x369d50['push'](_0x4af75c['createRangeOn'](_0x71ccc4));return _0x369d50;}function De(_0x522a8a,_0x28434e,{showActiveMarker:_0x5600a8=!0x0}={}){const _0x3c3dc8=_0x522a8a['plugins']['get']('TrackChangesEditing');return(_0x489449,_0x4be8fb,_0x181c5c)=>{if(!_0x181c5c['consumable']['test'](_0x4be8fb['markerRange'],_0x489449['name']))return;const _0x20eb71=_0x4be8fb['markerRange']['getWalker'](),_0x5bf45b=_0x4be8fb['markerRange']['start'],_0x5c0dab=_0x522a8a['model']['schema'];let _0x4079f8=null,_0x1d772b=null,_0x368014=!0x1,_0x5d15e4=!0x1;for(const _0x2551b7 of _0x20eb71){const _0x25ffb5=_0x2551b7['item'];_0x368014=_0x368014||_0x5c0dab['isContent'](_0x25ffb5);const _0x2a2225=_0x181c5c['mapper']['toViewElement'](_0x25ffb5);if(_0x2a2225&&_0x2a2225['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2551b7['type']&&(_0x5c0dab['isBlock'](_0x25ffb5)&&!_0x5c0dab['isLimit'](_0x25ffb5)&&(_0x25ffb5['nextSibling']||_0x5bf45b['isAtEnd']?_0x4079f8&&_0x4079f8['parent']==_0x25ffb5||(_0x4079f8=_0x25ffb5,_0x4e0faa(_0x2551b7['previousPosition']),_0x5d15e4=!0x0):_0x1d772b=_0x1d772b||_0x2551b7['previousPosition']));}function _0x4e0faa(_0x29b7dd){const {authorId:_0x4f8c6c}=_0x3c3dc8['_splitMarkerName'](_0x4be8fb['markerName']),_0x365d54=_0x181c5c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x28434e,'data-author-id':_0x4f8c6c}),_0x5d2a0d=_0x181c5c['mapper']['toViewPosition'](_0x29b7dd);_0x5600a8&&_0x3c3dc8['activeMarkers']['includes'](_0x4be8fb['markerName'])&&_0x181c5c['writer']['addClass']('ck-suggestion-marker--active',_0x365d54),_0x181c5c['writer']['insert'](_0x5d2a0d,_0x365d54),_0x181c5c['mapper']['bindElementToMarker'](_0x365d54,_0x4be8fb['markerName']);}_0x368014||_0x5d15e4||!_0x1d772b||_0x4e0faa(_0x1d772b);};}class z extends _0x45133c{static get['requires'](){return[_0x354e30];}['init'](){const _0x3d530d=this['editor'],_0x5a2fb2=_0x3d530d['plugins']['get']('TrackChangesEditing');_0x5a2fb2['enableCommand']('delete');const _0x2e67c3=_0x3d530d['commands']['get']('deleteForward');_0x5a2fb2['enableCommand']('deleteForward',(_0x35a75b,_0x650a79={})=>{const _0x3cae19=_0x3d530d['model']['createSelection'](_0x3d530d['model']['document']['selection']);_0x3cae19['isCollapsed']&&_0x3d530d['model']['modifySelection'](_0x3cae19,{'direction':'forward','unit':_0x650a79['unit']});const _0x2e8b5c=_0x3cae19['getFirstRange'](),_0x3dd8e0=_0x51fe0f['fromRange'](_0x2e8b5c);let _0x495e1d;_0x35a75b(_0x650a79),_0x495e1d='$graveyard'==_0x3dd8e0['root']['rootName']?_0x3d530d['model']['createRange'](_0x2e8b5c['start']):_0x3d530d['model']['createRange'](_0x3dd8e0['start'],_0x3dd8e0['end']),_0x3dd8e0['detach'](),_0x3d530d['model']['enqueueChange'](_0x2e67c3['buffer']['batch'],_0x21934f=>{_0x2e67c3['buffer']['lock'](),_0x21934f['setSelection'](_0x21934f['createRange'](_0x495e1d['end'])),_0x2e67c3['buffer']['unlock']();});}),_0x3d530d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3d530d,'merge'),{'priority':'high'}),_0x3d530d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4b11d8,_0x281af5,_0x38d487)=>{_0x38d487['options']['showSuggestionHighlights']&&De(_0x3d530d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4b11d8,_0x281af5,_0x38d487);},{'priority':'high'}),_0x3d530d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4831fc,_0x533188,_0x122ebd)=>{const _0x5e1a9f=_0x122ebd['mapper']['markerNameToElements'](_0x533188['markerName']);if(_0x5e1a9f){for(const _0x598b66 of _0x5e1a9f)_0x598b66['is']('uiElement')&&(_0x122ebd['mapper']['unbindElementFromMarkerName'](_0x598b66,_0x533188['markerName']),_0x122ebd['writer']['remove'](_0x598b66));}},{'priority':'high'});}}class W extends _0x45133c{['afterInit'](){const _0x294b6a=this['editor'];if(!_0x294b6a['plugins']['has']('ListEditing'))return;const _0xace367=_0x294b6a['locale'],_0x294244=_0x294b6a['plugins']['get']('TrackChangesEditing'),_0x1cf031=_0x294b6a['plugins']['has']('TodoListEditing'),_0x4c1512=!!_0x294b6a['config']['get']('list.multiBlock');function _0x137587(_0x585747){return{'type':'format','content':''+c(_0xace367,'*Set\x20format:*\x20%0',_0x585747)};}function _0x4b05b2(_0x46c153){return{'type':'format','content':''+c(_0xace367,'*Remove\x20format:*\x20%0',_0x46c153)};}_0x294244['enableDefaultAttributesIntegration']('numberedList'),_0x294244['enableDefaultAttributesIntegration']('bulletedList'),_0x294244['enableDefaultAttributesIntegration']('customNumberedList'),_0x294244['enableDefaultAttributesIntegration']('customBulletedList'),_0x294244['enableDefaultAttributesIntegration']('indentList'),_0x294244['enableDefaultAttributesIntegration']('outdentList'),_0x294244['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x294244['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x294244['registerBlockAttribute']('listItemId'),_0x294244['registerBlockAttribute']('listType'),_0x294244['registerBlockAttribute']('listIndent'),_0x4c1512&&(_0x294244['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x294244['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1cf031&&(_0x294244['enableDefaultAttributesIntegration']('todoList'),_0x294244['enableDefaultAttributesIntegration']('checkTodoList'),_0x294244['registerBlockAttribute']('todoListChecked'),_0x294244['descriptionFactory']['registerDescriptionCallback'](_0x50b164=>{const {data:_0x2d6aca}=_0x50b164;if(_0x2d6aca&&'todoListChecked'==_0x2d6aca['key'])return{'type':'format','content':_0x2d6aca['newValue']?c(_0xace367,'*Check\x20item*'):c(_0xace367,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4968bf=>{if(_0x4968bf['batch']['isUndo'])return!0x1;let _0x439da2=!0x1;const _0x4ea898=_0x294244['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x533877=>'todoListChecked'===_0x294244['_getAttributeKey'](_0x533877));for(const _0x4190f7 of _0x4ea898){'todo'!=_0x4190f7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x294244['_findSuggestions'](_0x4190f7['getFirstRange'](),'attribute')['find'](_0x37cdd0=>'listType'===_0x294244['_getAttributeKey'](_0x37cdd0['suggestion']))||(_0x4968bf['removeMarker'](_0x4190f7['getFirstMarker']()),_0x439da2=!0x0));}return _0x439da2;})),_0x294244['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0xace367,'FORMAT_INDENT'));const _0x29845b={'type':'format','content':''};_0x294244['descriptionFactory']['registerDescriptionCallback'](_0xa49217=>{const {data:_0x4b6f13}=_0xa49217;if(!_0x4b6f13||'listType'!=_0x4b6f13['key'])return;let _0x2e3f16=_0xa49217['head'];for(;_0x2e3f16;){if(_0x2e3f16['data']&&(('listStyle'==_0x2e3f16['data']['key']||'listMarkerStyle'==_0x2e3f16['data']['key'])&&(_0x2e3f16['data']['newValue']&&'default'!=_0x2e3f16['data']['newValue']||'default'!=_0x2e3f16['data']['oldValue']&&!_0x4b6f13['newValue'])||!_0x4c1512&&_0x2e3f16['data']['key']==u))return _0x29845b;_0x2e3f16=_0x2e3f16['next'];}if(null==_0x4b6f13['newValue'])switch(_0x4b6f13['oldValue']){case'bulleted':return _0x4b05b2(c(_0xace367,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b05b2(c(_0xace367,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b05b2(c(_0xace367,'ELEMENT_TODO_LIST'));}switch(_0x4b6f13['newValue']){case'bulleted':return _0x137587(c(_0xace367,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x137587(c(_0xace367,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x137587(c(_0xace367,'ELEMENT_TODO_LIST'));}}),_0x294244['descriptionFactory']['registerDescriptionCallback'](_0x5744af=>{const {data:_0x59b978}=_0x5744af;if(_0x59b978&&'listIndent'==_0x59b978['key'])return null==_0x59b978['newValue']||null==_0x59b978['oldValue']&&0x0==_0x59b978['newValue']?_0x29845b:void 0x0;}),_0x294244['descriptionFactory']['registerDescriptionCallback'](_0x1d7568=>{if('attribute'!=_0x1d7568['type'])return;const {data:_0x1f70d2}=_0x1d7568;if(!_0x1f70d2||'listItemId'!=_0x1f70d2['key'])return;const _0x2ba051=Te(_0x1d7568);return'newValue'==_0x2ba051?{'type':'format','content':c(_0xace367,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2ba051?{'type':'format','content':c(_0xace367,'*Split:*\x20list\x20item')}:_0x29845b;}),_0x294b6a['model']['document']['registerPostFixer'](_0x224009=>this['listItemIdFixer'](_0x224009)),_0x294b6a['model']['document']['registerPostFixer'](_0x180dc5=>this['noTrackChangesFixer'](_0x180dc5)),_0x294b6a['model']['document']['on']('change:data',(_0x269b79,_0x2d6802)=>{if(_0x2d6802['isUndo']||!_0x2d6802['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x13e2eb){if(_0x13e2eb['batch']['isUndo']||!_0x13e2eb['batch']['isLocal'])return!0x1;let _0x2021db=!0x1;const _0x1a3c82=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53a0ba=>_0x53a0ba['data']&&'listItemId'==_0x53a0ba['data']['key'])['filter'](_0x7a21a5=>_0x7a21a5['data']['newValue']&&_0x7a21a5['data']['oldValue']);for(const _0x212748 of _0x1a3c82)Te(_0x212748)||(_0x13e2eb['removeMarker'](_0x212748['getFirstMarker']()),_0x2021db=!0x0);return _0x2021db;}['noTrackChangesFixer'](_0x2d8477){if(_0x2d8477['batch']['isUndo']||!_0x2d8477['batch']['isLocal'])return!0x1;const _0x257807=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x257807['trackChangesCommand']['value'])return!0x1;let _0x184ae1=!0x1;const _0x2c17c8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xed3b63=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x118566=>'attribute'==_0x118566['type'])['filter'](_0x9786fa=>_0x2c17c8['includes'](_0x9786fa['attributeKey']));if(0x0==_0xed3b63['length'])return _0x184ae1;for(const _0x227eb9 of _0xed3b63){const _0x1fd506=_0x257807['_findSuggestions'](_0x227eb9['range'],'attribute')['filter'](_0x2e86dc=>!_0x2e86dc['meta']['isNextTo'])['map'](_0x5eddcd=>_0x5eddcd['suggestion'])['filter'](_0x12a00e=>{const _0x360d04=_0x257807['_getAttributeKey'](_0x12a00e);return _0x2c17c8['includes'](_0x360d04);});if(_0x1fd506['length']){for(const _0x4c2af8 of _0x1fd506)_0x2d8477['removeMarker'](_0x4c2af8['getFirstMarker']());_0x184ae1=!0x0;}}return _0x184ae1;}['assureChains'](){const _0x2524f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e025a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x67bbb5;const _0x3c1b13=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3b6b28=>{if(_0x3b6b28['data']['oldRange']||!_0x3b6b28['data']['newRange'])return null;if(!_0x3b6b28['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5ec9da}=_0x2524f8['_splitMarkerName'](_0x3b6b28['name']);if(!_0x2524f8['hasSuggestion'](_0x5ec9da))return null;const _0x281e89=_0x2524f8['getSuggestion'](_0x5ec9da);return _0x2e025a['includes'](_0x281e89['data']['key']);})['map'](_0x1fe4ca=>{const {id:_0x3ec4cc}=_0x2524f8['_splitMarkerName'](_0x1fe4ca['name']),_0x587a63=_0x2524f8['getSuggestion'](_0x3ec4cc);return _0x67bbb5=_0x587a63['attributes']['groupId'],_0x587a63['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3c1b13['size'])return;const _0x2eb3b0=_0x2524f8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24e540=>'attribute'==_0x24e540['type']&&_0x24e540['data']&&_0x2e025a['includes'](_0x24e540['data']['key'])&&_0x24e540['attributes']['groupId']!=_0x67bbb5)['map'](_0x157459=>({'listItem':_0x157459['getFirstRange']()['start']['nodeAfter'],'groupId':_0x157459['attributes']['groupId']})),_0xc99fc8=new Set();for(const {groupId:_0x1d0c48,listItem:_0x107630}of _0x2eb3b0)_0x3c1b13['has'](_0x107630)&&_0xc99fc8['add'](_0x1d0c48);for(const _0x4d01ee of _0x2524f8['getSuggestions']())_0xc99fc8['has'](_0x4d01ee['attributes']['groupId'])&&_0x4d01ee['setAttribute']('groupId',_0x67bbb5);}['_supportLegacySuggestions'](){const _0x4eb1c9=this['editor'],_0x32890a=_0x4eb1c9['locale'],_0x16c111=_0x4eb1c9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x16c111['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1dd8da,_0x5367d2){const _0x457053=[];for(let _0x1997e8 of _0x1dd8da)_0x1997e8['start']['nodeAfter']===_0x1997e8['end']['parent']&&(_0x1997e8=_0x4eb1c9['model']['createRange'](_0x4eb1c9['model']['createPositionAt'](_0x1997e8['start']['nodeAfter'],0x0))),_0x457053['push'](_0x1997e8);_0x4eb1c9['model']['change'](_0x47a2fc=>{const _0x43be47=_0x4eb1c9['model']['document']['selection'],_0xcc3316=Array['from'](_0x43be47['getRanges']())['map'](_0x2260a0=>_0x51fe0f['fromRange'](_0x2260a0));_0x47a2fc['setSelection'](_0x457053),_0x4eb1c9['commands']['get'](_0x5367d2['commandName'])['refresh'](),_0x5367d2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4eb1c9['execute'](_0x5367d2['commandName'],..._0x5367d2['commandParams']),_0x47a2fc['setSelection'](_0xcc3316);for(const _0x5827b6 of _0xcc3316)_0x5827b6['detach']();});}),_0x16c111['descriptionFactory']['registerElementLabel'](function(_0x2b586c){const _0x5421ae=!_0x4eb1c9['model']['schema']['isObject'](_0x2b586c),_0x1f7047=_0x2b586c['previousSibling'],_0x3d9435=_0x2b586c['nextSibling'],_0x44e0ff=_0x2b586c['getAttribute']('listItemId'),_0x17a536=!_0x1f7047||_0x1f7047['getAttribute']('listItemId')!==_0x44e0ff,_0x57f9e2=!_0x3d9435||_0x3d9435['getAttribute']('listItemId')!==_0x44e0ff;return _0x5421ae&&Boolean(_0x44e0ff)&&_0x17a536&&_0x57f9e2;},_0x4fe66e=>c(_0x32890a,'ELEMENT_LIST_ITEM',_0x4fe66e));}['_registerLegacyDescription'](){const _0x26579c=this['editor'],_0x2c3a0=_0x26579c['locale'];function _0x5a1e09(_0x1e89b7){const _0x456093=_0x26579c['commands']['get']('bulletedList')['value'],_0x15415b=_0x26579c['commands']['get']('numberedList')['value'];return'numberedList'===_0x1e89b7?_0x456093:_0x15415b;}_0x26579c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3dff4b){if('formatBlock'!=_0x3dff4b['type'])return;const {data:_0x4653e8}=_0x3dff4b;if(!_0x4653e8)return;let _0x3e17c5,_0x257fcc,_0x3d0638,_0x5950bd;switch(_0x4653e8['commandName']){case'bulletedList':_0x3d0638=_0x4653e8['commandParams'][0x0]['forceValue'],_0x5950bd=_0x5a1e09(_0x4653e8['commandName']),_0x3e17c5=_0x3d0638?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5950bd&&_0x26579c['config']['get']('list.multiBlock')||(_0x3e17c5='*Change\x20to:*\x20%0'),_0x257fcc={'type':'format','content':c(_0x2c3a0,_0x3e17c5,c(_0x2c3a0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3d0638=_0x4653e8['commandParams'][0x0]['forceValue'],_0x5950bd=_0x5a1e09(_0x4653e8['commandName']),_0x3e17c5=_0x3d0638?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5950bd&&_0x26579c['config']['get']('list.multiBlock')||(_0x3e17c5='*Change\x20to:*\x20%0'),_0x257fcc={'type':'format','content':c(_0x2c3a0,_0x3e17c5,c(_0x2c3a0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3e17c5='*Indent:*\x20%0',_0x257fcc={'type':'format','content':c(_0x2c3a0,_0x3e17c5,c(_0x2c3a0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3e17c5=function(_0x2dd6f7){const _0x77c6d7=_0x2dd6f7['getFirstRange']();let _0x4f04f9=_0x77c6d7['start']['nodeAfter'];for(;_0x4f04f9&&_0x77c6d7['containsItem'](_0x4f04f9);){if(_0x4f04f9['getAttribute']('listIndent')>0x0)return!0x1;_0x4f04f9=_0x4f04f9['nextSibling'];}return!0x0;}(_0x3dff4b)?c(_0x2c3a0,'*Format:*\x20remove\x20from\x20%0',c(_0x2c3a0,function(_0x340972){return'ELEMENT_'+_0x340972['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3dff4b))):c(_0x2c3a0,'*Outdent:*\x20%0',c(_0x2c3a0,'ELEMENT_LIST_ITEM')),_0x257fcc={'type':'format','content':_0x3e17c5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4653e8['multipleBlocks']&&(_0x3e17c5='*Merge:*\x20%0',_0x257fcc={'type':'deletion','content':c(_0x2c3a0,_0x3e17c5,c(_0x2c3a0,'ELEMENT_LIST_ITEM'))});}return _0x257fcc;});}}function Te(_0x4af827){let _0x40eb8f=_0x4af827['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x40eb8f;){const _0x806670=_0x40eb8f['getAttribute']('listItemId');if(!_0x806670)return!0x1;if(_0x806670==_0x4af827['data']['newValue'])return'newValue';if(_0x806670==_0x4af827['data']['oldValue'])return'oldValue';_0x40eb8f=_0x40eb8f['previousSibling'];}return!0x1;}class Se extends _0x45133c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x302f30=this['editor']['config']['get']('list.properties'),_0x3c9433=this['editor']['plugins']['get']('TrackChangesEditing');_0x302f30['styles']&&(_0x3c9433['enableDefaultAttributesIntegration']('listStyle'),_0x3c9433['registerBlockAttribute']('listStyle')),_0x302f30['reversed']&&(_0x3c9433['enableDefaultAttributesIntegration']('listReversed'),_0x3c9433['registerBlockAttribute']('listReversed')),_0x302f30['startIndex']&&(_0x3c9433['enableDefaultAttributesIntegration']('listStart'),_0x3c9433['registerBlockAttribute']('listStart'));const _0xa6826={'type':'format','content':''};_0x3c9433['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3f7ed0=this['editor']['locale'];_0x3c9433['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3f7ed0,'FORMAT_LIST_REVERSED')),_0x3c9433['descriptionFactory']['registerDescriptionCallback'](_0x58eb73=>{const {data:_0x2e3d54}=_0x58eb73;if(_0x2e3d54&&'listReversed'==_0x2e3d54['key'])return null==_0x2e3d54['newValue']||0x0==_0x2e3d54['newValue']&&null==_0x2e3d54['oldValue']?_0xa6826:void 0x0;}),_0x3c9433['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3f7ed0,'FORMAT_LIST_START')),_0x3c9433['descriptionFactory']['registerDescriptionCallback'](_0xfb74b2=>{const {data:_0x228c33}=_0xfb74b2;if(_0x228c33&&'listStart'==_0x228c33['key'])return null==_0x228c33['newValue']||0x1==_0x228c33['newValue']&&null==_0x228c33['oldValue']?_0xa6826:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xcfd221=>{if(_0xcfd221['batch']['isUndo'])return!0x1;let _0x26c2bf=!0x1;const _0x1818e8=_0x3c9433['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cc607=>{const _0x1c5153=_0x3c9433['_getAttributeKey'](_0x1cc607);return'listStart'==_0x1c5153||'listReversed'==_0x1c5153;});for(const _0x5cb7aa of _0x1818e8){const _0x566c9a=_0x5cb7aa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x566c9a||'customNumbered'==_0x566c9a)continue;_0x3c9433['_findSuggestions'](_0x5cb7aa['getFirstRange'](),'attribute')['find'](_0x252239=>'listType'==_0x3c9433['_getAttributeKey'](_0x252239['suggestion']))||(_0xcfd221['removeMarker'](_0x5cb7aa['getFirstMarker']()),_0x26c2bf=!0x0);}return _0x26c2bf;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x158119){const _0x3924df=this['editor']['locale'],{data:_0x48c4c9}=_0x158119,_0x58604d={'type':'format','content':''};if(!_0x48c4c9||'listStyle'!=_0x48c4c9['key'])return;if(!_0x48c4c9['oldValue'])return'default'==_0x48c4c9['newValue']?_0x58604d:{'type':'format','content':''+c(_0x3924df,'*Set\x20format:*\x20%0',c(_0x3924df,this['_getTranslationKeyForListStyle'](_0x48c4c9['newValue'])))};if(!_0x48c4c9['newValue']){if('default'==_0x48c4c9['oldValue'])return _0x58604d;let _0x2f3940=_0x158119['head'];for(;_0x2f3940;){if(_0x2f3940['data']&&'listType'==_0x2f3940['data']['key']&&_0x2f3940['data']['newValue'])return _0x58604d;_0x2f3940=_0x2f3940['next'];}return{'type':'format','content':''+c(_0x3924df,'*Remove\x20format:*\x20%0',c(_0x3924df,this['_getTranslationKeyForListStyle'](_0x48c4c9['oldValue'])))};}if('default'!=_0x48c4c9['newValue'])return{'type':'format','content':''+c(_0x3924df,'*Set\x20format:*\x20%0',c(_0x3924df,this['_getTranslationKeyForListStyle'](_0x48c4c9['newValue'])))};let _0x5388eb=_0x158119['head'];for(;_0x5388eb;){if(_0x5388eb['data']&&'listType'==_0x5388eb['data']['key']&&_0x5388eb['data']['newValue']&&_0x5388eb['data']['oldValue'])return _0x58604d;_0x5388eb=_0x5388eb['next'];}return{'type':'format','content':c(_0x3924df,'*Set\x20format:*\x20%0',c(_0x3924df,'ELEMENT_'+_0x158119['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1ff645=this['editor'],_0x16ea1d=_0x1ff645['locale'];_0x1ff645['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1405ff=>{if('formatBlock'!=_0x1405ff['type'])return;const {data:_0x5d12fe}=_0x1405ff;if(!_0x5d12fe)return;let _0x5153d6,_0x415c5c;switch(_0x5d12fe['commandName']){case'listStyle':_0x5153d6='*Change\x20to:*\x20%0',_0x415c5c={'type':'format','content':c(_0x16ea1d,_0x5153d6,c(_0x16ea1d,this['_getTranslationKeyForListStyle'](_0x5d12fe['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5153d6=_0x5d12fe['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x415c5c={'type':'format','content':c(_0x16ea1d,_0x5153d6)};break;case'listStart':_0x5153d6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x415c5c={'type':'format','content':c(_0x16ea1d,_0x5153d6,_0x5d12fe['commandParams'][0x0]['startIndex'])};}return _0x415c5c;});}['_getTranslationKeyForListStyle'](_0x2642c9){return'ELEMENT_'+function(_0x41a5d1){if(_e['includes'](_0x41a5d1))return'bulleted';if(Re['includes'](_0x41a5d1))return'numbered';return null;}(_0x2642c9)['toUpperCase']()+'_LIST_'+_0x2642c9['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x45133c{['afterInit'](){const _0x52cb64=this['editor'];_0x52cb64['commands']['get']('emoji')&&_0x52cb64['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x45133c{static get['requires'](){return[_0x3c3269];}['init'](){const _0x3e9a54=this['editor'],_0x4e6518=_0x3e9a54['plugins']['get']('TrackChangesEditing'),_0x149cf6=_0x3e9a54['commands']['get']('enter');_0x4e6518['enableCommand']('enter',()=>{_0x3e9a54['model']['change'](_0x180669=>{const _0x4dc8d3=_0x3e9a54['model']['document']['selection'],_0x1539a1=_0x4dc8d3['getFirstPosition'](),_0x2a3227=_0x51fe0f['fromRange'](_0x4dc8d3['getFirstRange']());if(_0x149cf6['enterBlock'](_0x180669)){const _0x1bebb1=_0x3e9a54['model']['createPositionAt'](_0x1539a1['parent']['nextSibling'],0x0),_0x9517d5=_0x180669['createRange'](_0x1539a1,_0x1bebb1);_0x4e6518['markInsertion'](_0x9517d5);}else _0x180669['setSelection'](_0x180669['createRange'](_0x2a3227['end']));_0x2a3227['detach'](),_0x149cf6['fire']('afterExecute',{'writer':_0x180669});});}),_0x3e9a54['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3e9a54,'split'),{'priority':'high'}),_0x3e9a54['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2577de,_0x4701d5,_0x557950)=>{const _0x469c3c=_0x557950['mapper']['markerNameToElements'](_0x4701d5['markerName']);if(_0x469c3c){for(const _0x10b7a2 of _0x469c3c)_0x10b7a2['hasClass']('ck-suggestion-marker-split')&&(_0x557950['mapper']['unbindElementFromMarkerName'](_0x10b7a2,_0x4701d5['markerName']),_0x557950['writer']['remove'](_0x10b7a2));}},{'priority':'high'}),_0x3e9a54['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1f1c14,_0x14b5ed,_0xf32b97)=>{_0xf32b97['options']['showSuggestionHighlights']&&De(_0x3e9a54,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1f1c14,_0x14b5ed,_0xf32b97);},{'priority':'high'});}}class Z extends _0x45133c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x492065=this['editor']['plugins']['get']('TrackChangesEditing');_0x492065['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x492065['enableCommand']('findNext'),_0x492065['enableCommand']('findPrevious'),_0x492065['enableCommand']('replace'),_0x492065['enableCommand']('replaceAll');}['handleFindCommand'](_0x27406b,_0xc21db8,_0x59be6b={}){const _0x3c1c73=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x27406b(_0x59e051=>{let _0x2c39c5=('string'==typeof _0xc21db8?_0x3c1c73['findByTextCallback'](_0xc21db8,_0x59be6b):_0xc21db8)(_0x59e051);Array['isArray'](_0x2c39c5)&&(_0x2c39c5={'results':_0x2c39c5,'searchText':'string'==typeof _0xc21db8?_0xc21db8:''});const _0x2780b8=_0x2c39c5['results']['filter'](_0x2a9c23=>!0x1===this['_isInDeletionRange'](_0x2a9c23,_0x59e051['item']));return{..._0x2c39c5,'results':_0x2780b8};},_0x59be6b);}['_isInDeletionRange'](_0x579613,_0xa70af1){const _0x4e3287=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa70af1,_0x579613['start']),this['editor']['model']['createPositionAt'](_0xa70af1,_0x579613['end']));for(const _0x4d8506 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4e3287['getIntersection'](_0x4d8506['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x45133c{['afterInit'](){const _0x49313f=this['editor']['locale'],_0x5f529e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5da31a,commandName:_0x12f6fa}of eo)this['editor']['plugins']['has'](_0x5da31a)&&(_0x5f529e['enableDefaultAttributesIntegration'](_0x12f6fa),_0x5f529e['registerInlineAttribute'](_0x12f6fa));_0x5f529e['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x49313f,'FORMAT_FONT_SIZE')),_0x5f529e['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x49313f,'FORMAT_FONT_FAMILY')),_0x5f529e['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x49313f,'FORMAT_FONT_COLOR')),_0x5f529e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x49313f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5327c5=this['editor'],_0x566d31=_0x5327c5['locale'];_0x5327c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x322e0d=>{const _0x53599a=_0x566d31['t'];if('formatInline'!=_0x322e0d['type'])return;const {data:_0x2dcbe4}=_0x322e0d;if(null!=_0x2dcbe4){if('fontSize'==_0x2dcbe4['commandName']){const _0x210bde=_0x2dcbe4['commandParams'][0x0]['value'];if(_0x210bde){const _0x1f38c0=_0x53599a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x29a010=>_0x29a010['model']==_0x210bde)['title'])['toLowerCase']();return{'type':'format','content':c(_0x566d31,'*Set\x20font\x20size:*\x20%0',_0x1f38c0)};}return{'type':'format','content':c(_0x566d31,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2dcbe4['commandName']){const _0x8e8a8f=_0x2dcbe4['commandParams'][0x0]['value'];return _0x8e8a8f?{'type':'format','content':c(_0x566d31,'*Set\x20font\x20family:*\x20%0',_0x8e8a8f)}:{'type':'format','content':c(_0x566d31,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2dcbe4['commandName']){const _0x5ad250=_0x2dcbe4['commandParams'][0x0]['value'];if(_0x5ad250){const _0x333985=_0x31d9e1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4a0843=>_0x4a0843['model']==_0x5ad250);let _0x282535=_0x5ad250,_0x2e3d30='';return _0x333985&&(_0x282535=_0x333985['label'],_0x2e3d30=_0x53599a(_0x282535)['toLowerCase']()),{'type':'format','content':c(_0x566d31,'*Set\x20font\x20color:*\x20%0',_0x2e3d30)['trim'](),'color':{'value':_0x5ad250,'title':_0x2e3d30||_0x282535}};}return{'type':'format','content':c(_0x566d31,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2dcbe4['commandName']){const _0x3ba771=_0x2dcbe4['commandParams'][0x0]['value'];if(_0x3ba771){const _0x139447=_0x31d9e1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3df0b7=>_0x3df0b7['model']==_0x3ba771);let _0x228a2a=_0x3ba771,_0x377d57='';return _0x139447&&(_0x228a2a=_0x139447['label'],_0x377d57=_0x53599a(_0x228a2a)['toLowerCase']()),{'type':'format','content':c(_0x566d31,'*Set\x20font\x20background\x20color:*\x20%0',_0x377d57)['trim'](),'color':{'value':_0x3ba771,'title':_0x377d57||_0x228a2a}};}return{'type':'format','content':c(_0x566d31,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x45133c{['afterInit'](){const _0x3a03e0=this['editor'],_0x16ed1d=_0x3a03e0['plugins']['get']('TrackChangesEditing'),_0x195e41=_0x3a03e0['commands']['get']('copyFormat'),_0x4d310d=_0x3a03e0['commands']['get']('pasteFormat');_0x195e41&&_0x4d310d&&(_0x16ed1d['enableDefaultAttributesIntegration']('pasteFormat'),_0x16ed1d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x38d037=this['editor'],_0x1104ca=_0x38d037['locale'];_0x38d037['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e5986=>{if('formatBlock'!=_0x4e5986['type']&&'formatInline'!=_0x4e5986['type'])return;const {data:_0x15b63d}=_0x4e5986;if(_0x15b63d&&'pasteFormat'===_0x15b63d['commandName']){const _0x3dfa9c=[],_0x31b82f=_0x15b63d['commandParams'][0x0];for(const [_0x39d14c,_0x50e7b0]of Object['entries'](_0x31b82f))_0x3dfa9c['push'](ro(_0x38d037,_0x39d14c,_0x50e7b0));return _0x3dfa9c['length']?{'type':'format','content':c(_0x1104ca,'*Set\x20format\x20to:*\x20%0',_0x3dfa9c['join'](',\x20'))}:{'type':'format','content':c(_0x1104ca,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xce286d,_0x5b654a,_0x4a9c81){const _0x2377a2=_0xce286d['locale']['t'],_0x494fff=_0x5b654a['split'](/(?=[A-Z])/)['join']('\x20'),_0x455e2c=_0x2377a2(_0x494fff['charAt'](0x0)['toUpperCase']()+_0x494fff['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4a9c81)return _0x455e2c;if('fontColor'===_0x5b654a||'fontBackgroundColor'===_0x5b654a){const _0x426175=_0x31d9e1(_0xce286d['config']['get']('fontColor.colors'))['find'](_0xe41ea0=>_0xe41ea0['model']==_0x4a9c81);return _0x455e2c+'\x20('+(_0x426175?_0x2377a2(_0x426175['label'])['toLowerCase']():_0x4a9c81)+')';}if('fontSize'===_0x5b654a&&isNaN(parseFloat(_0x4a9c81))){const _0x30a6a2=_0xce286d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xce286d['config']['get']('fontSize.options'))['find'](_0xb19806=>_0xb19806['model']==_0x4a9c81);return _0x455e2c+'\x20('+(_0x30a6a2?_0x2377a2(_0x30a6a2['title'])['toLowerCase']():_0x4a9c81)+')';}return _0x455e2c+'\x20('+_0x4a9c81+')';}class nt extends _0x45133c{['_headingOptions'];['afterInit'](){const _0xa83c84=this['editor'];if(!_0xa83c84['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xa83c84['config']['get']('heading.options');const _0xc24735=_0xa83c84['locale'],_0x315192=_0xa83c84['plugins']['get']('TrackChangesEditing');_0x315192['enableDefaultAttributesIntegration']('heading');for(const _0x4fad77 of this['_headingOptions'])'paragraph'!=_0x4fad77['model']&&_0x315192['descriptionFactory']['registerElementLabel'](_0x4fad77['model'],_0x258d00=>{const _0x2761a8=this['_getHeadingLevel'](_0x4fad77['model']);return null!==_0x2761a8?_0x34ad12(_0x258d00,_0x2761a8):_0x2533cb(_0x258d00,_0x4fad77['title']);});function _0x34ad12(_0x45f9dc,_0x5acca8){return c(_0xc24735,'ELEMENT_HEADING',[_0x45f9dc,_0x5acca8]);}function _0x2533cb(_0xa40d4f,_0x1bd919){return c(_0xc24735,'ELEMENT_HEADING_CUSTOM',[_0xa40d4f,_0x1bd919]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa1afd8=this['editor'],_0x54061c=_0xa1afd8['locale'];function _0x8ea0b9(_0x2fda07,_0x4f0ce5){return c(_0x54061c,'ELEMENT_HEADING_CUSTOM',[_0x2fda07,_0x4f0ce5]);}_0xa1afd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd5a47f=>{if('formatBlock'!=_0xd5a47f['type'])return;const {data:_0x4a4f7f}=_0xd5a47f;if(_0x4a4f7f&&'heading'==_0x4a4f7f['commandName']){const _0x284c9f=_0x4a4f7f['commandParams'][0x0]['value'],_0x287cee=this['_getHeadingLevel'](_0x284c9f);if(null!==_0x287cee)return{'type':'format','content':c(_0x54061c,'*Change\x20to:*\x20%0',(_0x2a4e1d=0x1,_0x3e17a1=_0x287cee,c(_0x54061c,'ELEMENT_HEADING',[_0x2a4e1d,_0x3e17a1])))};const _0x494af9=this['_headingOptions']['find'](_0x523b00=>_0x523b00['model']===_0x284c9f)['title'];return{'type':'format','content':c(_0x54061c,'*Change\x20to:*\x20%0',_0x8ea0b9(0x1,_0x494af9))};}var _0x2a4e1d,_0x3e17a1;});}['_getHeadingLevel'](_0x3320e9){const _0x270802=_0x3320e9['match'](/^heading(\d+)/);if(_0x270802)return _0x270802[0x1];const _0x2b426d=this['_headingOptions']?.['find'](_0x2ade3b=>_0x2ade3b['model']==_0x3320e9);if(_0x2b426d&&_0x2b426d['view']){const _0x5b1a9a=_0x2b426d['view'],_0x323d25=(_0x5b1a9a['name']??_0x5b1a9a)['match'](/^h(\d+)/);if(_0x323d25)return _0x323d25[0x1];}return null;}}class it extends _0x45133c{['afterInit'](){const _0x575129=this['editor'];if(!_0x575129['plugins']['has']('HighlightEditing'))return;const _0x56e009=_0x575129['plugins']['get']('TrackChangesEditing'),_0x9ecdee=_0x575129['locale'];_0x56e009['enableDefaultAttributesIntegration']('highlight'),_0x56e009['registerInlineAttribute']('highlight'),_0x56e009['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x9ecdee,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50f7b8=this['editor'],_0xa98b09=_0x50f7b8['locale'];_0x50f7b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a5a13=>{if('formatInline'!=_0x1a5a13['type'])return;const {data:_0x4b0c67}=_0x1a5a13;if(_0x4b0c67&&'highlight'==_0x4b0c67['commandName']){const _0xdd0a35=_0xa98b09['t'],_0x7e03cd=_0x4b0c67['commandParams'][0x0]['value'];if(_0x7e03cd){const _0x375b56=_0x50f7b8['config']['get']('highlight.options')['find'](_0x268389=>_0x268389['model']==_0x7e03cd),_0x367acf=_0xdd0a35(_0x375b56['title'])['toLowerCase']();return{'type':'format','content':c(_0xa98b09,'*Set\x20highlight:*\x20%0',_0x367acf),'color':{'value':_0x375b56['color'],'title':_0x375b56['title']}};}return{'type':'format','content':c(_0xa98b09,'*Remove\x20highlight*',c(_0xa98b09,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x45133c{['afterInit'](){const _0x1cbd03=this['editor'];if(!_0x1cbd03['plugins']['has']('HorizontalLineEditing'))return;_0x1cbd03['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xfe3ce9=_0x1cbd03['plugins']['get']('TrackChangesEditing'),_0x34c34c=_0x1cbd03['locale'];_0xfe3ce9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x8d961e=>c(_0x34c34c,'ELEMENT_HORIZONTAL_LINE',_0x8d961e)),_0x1cbd03['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2c2e8f,{writer:_0x58217b,options:_0x2cb479})=>{if(!_0x2cb479['showSuggestionHighlights'])return null;const _0x1b024f=_0x58217b['createContainerElement']('div'),_0x4296a2=_0x58217b['createEmptyElement']('hr');return _0x58217b['addClass']('ck-horizontal-line',_0x1b024f),_0x58217b['insert'](_0x58217b['createPositionAt'](_0x1b024f,0x0),_0x4296a2),_0x1b024f;},'converterPriority':'high'});}}class ot extends _0x45133c{['afterInit'](){const _0x96849d=this['editor'];if(!_0x96849d['plugins']['has']('HtmlEmbed'))return;const _0x4d4ad2=_0x96849d['plugins']['get']('TrackChangesEditing'),_0x5958f2=_0x96849d['locale'];_0x4d4ad2['descriptionFactory']['registerElementLabel']('rawHtml',_0x4d7485=>c(_0x5958f2,'ELEMENT_HTML_EMBED',_0x4d7485)),_0x4d4ad2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4d4ad2['registerBlockAttribute']('value'),_0x4d4ad2['descriptionFactory']['registerDescriptionCallback'](_0x2c4914=>{if('attribute'!=_0x2c4914['type'])return;const {data:_0x363dea}=_0x2c4914;if(_0x363dea&&'value'==_0x363dea['key']&&_0x2c4914['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x139779=c(_0x5958f2,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5958f2,'*Change\x20%0\x20content*',_0x139779)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2163c5=this['editor'],_0x5ce378=_0x2163c5['locale'];_0x2163c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c49c2=>{if('formatBlock'!=_0x2c49c2['type'])return;const {data:_0x1c7503}=_0x2c49c2;if(_0x1c7503&&'htmlEmbed'==_0x1c7503['commandName']){const _0x872ded=c(_0x5ce378,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5ce378,'*Change\x20%0\x20content*',_0x872ded)};}});}}class rt extends _0x45133c{['afterInit'](){const _0x1482fb=this['editor'];if(!_0x1482fb['plugins']['has']('ImageEditing'))return;const _0x3f1dd9=_0x1482fb['plugins']['get']('TrackChangesEditing'),_0xecd24b=_0x1482fb['plugins']['get']('ImageUtils'),_0x2f3156=_0x1482fb['locale'];_0x3f1dd9['enableCommand']('insertImage'),_0x3f1dd9['descriptionFactory']['registerElementLabel']('imageBlock',_0x42e7f0=>c(_0x2f3156,'ELEMENT_IMAGE',_0x42e7f0)),_0x3f1dd9['descriptionFactory']['registerElementLabel']('imageInline',_0x358b9f=>c(_0x2f3156,'ELEMENT_INLINE_IMAGE',_0x358b9f)),_0x3f1dd9['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x2f3156,'ELEMENT_CAPTION')),_0x1482fb['plugins']['has']('ImageUploadEditing')&&_0x3f1dd9['enableCommand']('uploadImage'),_0x1482fb['plugins']['has']('ImageBlockEditing')&&_0x1482fb['plugins']['has']('ImageInlineEditing')&&(_0x3f1dd9['enableCommand']('imageTypeInline',(_0x375589,_0x1a79b9)=>{const _0x507600=_0xecd24b['getClosestSelectedImageElement'](_0x1482fb['model']['document']['selection']);_0x1482fb['model']['change'](()=>{_0x3f1dd9['markBlockFormat'](_0x507600,{'commandName':'imageTypeInline','commandParams':[_0x1a79b9]},[],'convertBlockImageToInline');});}),_0x3f1dd9['enableCommand']('imageTypeBlock',(_0x17ba4b,_0x4d347d)=>{_0x1482fb['model']['change'](_0x37da35=>{let _0x8412f5=_0xecd24b['getClosestSelectedImageElement'](_0x1482fb['model']['document']['selection']),_0x4051dd=_0x37da35['createRangeOn'](_0x8412f5);const _0x15cfd7=_0x495371['fromPosition'](_0x4051dd['start'],'toPrevious'),_0x491da2=_0x495371['fromPosition'](_0x4051dd['end'],'toNext');_0x3f1dd9['forceDefaultExecution'](()=>_0x17ba4b(_0x4d347d)),_0x8412f5=_0xecd24b['getClosestSelectedImageElement'](_0x1482fb['model']['document']['selection']),_0x4051dd=_0x37da35['createRangeOn'](_0x8412f5);const _0x10870b=_0x37da35['createRange'](_0x15cfd7,_0x491da2);_0x15cfd7['detach'](),_0x491da2['detach'](),_0x3f1dd9['markBlockFormat'](_0x8412f5,{'commandName':'imageTypeInline','commandParams':[_0x4d347d]},[],'convertInlineImageToBlock'),_0x10870b['start']['isBefore'](_0x4051dd['start'])&&_0x3f1dd9['markInsertion'](_0x37da35['createRange'](_0x10870b['start'],_0x4051dd['start']),'convertInlineImageToBlock'),_0x4051dd['end']['isBefore'](_0x10870b['end'])&&_0x3f1dd9['markInsertion'](_0x37da35['createRange'](_0x4051dd['end'],_0x10870b['end']),'convertInlineImageToBlock');});}),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3f1dd9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x309b65])=>{const _0xda54c8=_0x3f1dd9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x29ecdd=_0x309b65['start'],_0x105ab1=_0x309b65['end'];const _0x4f41db=_0x1482fb['model']['schema']['getNearestSelectionRange'](_0x29ecdd,'backward'),_0x539929=_0x1482fb['model']['schema']['getNearestSelectionRange'](_0x105ab1,'forward');_0x4f41db['isCollapsed']&&(_0x29ecdd=_0x4f41db['start']),_0x539929['isCollapsed']&&(_0x105ab1=_0x539929['end']),_0xda54c8([_0x1482fb['model']['createRange'](_0x29ecdd,_0x105ab1)]);}),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x17ec28),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x17ec28)),_0x1482fb['plugins']['has']('ImageCaptionEditing')&&(_0x3f1dd9['enableCommand']('toggleImageCaption',(_0x14a6b1,_0x514318)=>{const _0x4cae4f=_0x1482fb['plugins']['get']('ImageCaptionUtils');let _0x415f6b=_0xecd24b['getClosestSelectedImageElement'](_0x1482fb['model']['document']['selection']),_0x1b1c36=_0x4cae4f['getCaptionFromImageModelElement'](_0x415f6b);_0x1482fb['model']['change'](()=>{if(_0x1b1c36)return void _0x3f1dd9['markDeletion'](_0x1482fb['model']['createRangeOn'](_0x1b1c36));const _0x5c336d=_0xecd24b['isBlockImage'](_0x415f6b);_0x14a6b1(_0x514318),_0x415f6b=_0xecd24b['getClosestSelectedImageElement'](_0x1482fb['model']['document']['selection']),_0x1b1c36=_0x4cae4f['getCaptionFromImageModelElement'](_0x415f6b),_0x3f1dd9['markInsertion'](_0x1482fb['model']['createRangeOn'](_0x1b1c36),_0x5c336d?null:'imageCaption');});}),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x17ec28));const _0x24332b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5051db(_0x598e81,_0x123017){const _0x3d5051=_0x24332b['findIndex'](({type:_0xda26a3,subType:_0x42c64c})=>_0x598e81['type']==_0xda26a3&&_0x598e81['subType']==_0x42c64c),_0x373fc7=_0x24332b['findIndex'](({type:_0x36dc29,subType:_0x41388f})=>_0x123017['type']==_0x36dc29&&_0x123017['subType']==_0x41388f);if(_0x3d5051<0x0||_0x373fc7<0x0)return!0x1;const _0x365955=_0x598e81['getFirstRange'](),_0x5b435c=_0x123017['getFirstRange']();if((0x0==_0x3d5051||0x1==_0x3d5051)&&0x2==_0x373fc7&&_0x365955['isIntersecting'](_0x5b435c))return!0x0;if(0x2==_0x3d5051&&0x3==_0x373fc7){const _0x493cc3=_0x3f1dd9['_findSuggestions'](_0x365955,'insertion')['filter'](({suggestion:_0x1d4f55,meta:_0x55d3d1})=>_0x55d3d1['isOwn']&&'convertInlineImageToBlock'==_0x1d4f55['subType']);if(_0x493cc3['length']>0x1&&_0x5b435c['end']['isEqual'](_0x365955['start']))return!0x0;if(0x1==_0x493cc3['length']&&(_0x365955['start']['isEqual'](_0x5b435c['end'])||_0x365955['end']['isEqual'](_0x5b435c['start'])))return!0x0;}if(0x3==_0x3d5051&&0x3==_0x373fc7&&_0x365955['start']['isBefore'](_0x5b435c['start'])){const _0x166a87=_0x365955['end']['nodeAfter'],_0x25a6b5=_0x5b435c['start']['nodeBefore'];return _0xecd24b['isBlockImage'](_0x166a87)&&_0x166a87===_0x25a6b5;}return!0x1;}function _0x17ec28(_0x41f6ba,_0x2ef638){return _0x5051db(_0x41f6ba,_0x2ef638)?[_0x41f6ba,_0x2ef638]:_0x5051db(_0x2ef638,_0x41f6ba)?[_0x2ef638,_0x41f6ba]:null;}_0x1482fb['plugins']['has']('ImageResize')&&(_0x3f1dd9['enableDefaultAttributesIntegration']('resizeImage'),_0x3f1dd9['registerBlockAttribute']('resizedWidth'),_0x3f1dd9['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x2f3156,'FORMAT_IMAGE_SIZE'))),_0x1482fb['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3f1dd9['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3f1dd9['registerBlockAttribute']('alt')),_0x1482fb['plugins']['has']('PictureEditing')&&(_0x3f1dd9['registerBlockAttribute']('sources'),_0x3f1dd9['descriptionFactory']['registerDescriptionCallback'](_0xc69b38=>{if('attribute'!=_0xc69b38['type'])return;const {data:_0x282cee}=_0xc69b38;return _0x282cee&&'sources'==_0x282cee['key']?{'type':'format','content':''}:void 0x0;})),_0x1482fb['plugins']['has']('ImageSizeAttributes')&&(_0x3f1dd9['registerBlockAttribute']('width'),_0x3f1dd9['registerBlockAttribute']('height'),_0x3f1dd9['descriptionFactory']['registerDescriptionCallback'](_0x363ae2=>{if('attribute'!=_0x363ae2['type'])return;const {data:_0x4e6ad1}=_0x363ae2;return!_0x4e6ad1||'width'!=_0x4e6ad1['key']&&'height'!=_0x4e6ad1['key']?void 0x0:{'type':'format','content':''};})),_0x3f1dd9['descriptionFactory']['registerDescriptionCallback'](_0x3e8771=>{if(!!_0x24332b['find'](({type:_0x42265c,subType:_0x3af232})=>_0x3e8771['type']==_0x42265c&&_0x3e8771['subType']==_0x3af232))return _0x3e8771['previous']?{}:void 0x0;}),_0x3f1dd9['descriptionFactory']['registerDescriptionCallback'](_0x157dd3=>{if('insertion'==_0x157dd3['type']||'deletion'==_0x157dd3['type']){const _0x2297cc=_0x157dd3['getContainedElement']();if(_0x2297cc&&_0x2297cc['is']('element','caption'))return{'type':'insertion'==_0x157dd3['type']?'addObject':'removeObject','element':_0x2297cc,'quantity':0x1};}}),_0x3f1dd9['descriptionFactory']['registerDescriptionCallback'](_0x6fa957=>'formatBlock'==_0x6fa957['type']&&'convertInlineImageToBlock'==_0x6fa957['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x6fa957['type']&&'convertBlockImageToInline'==_0x6fa957['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3f1dd9['descriptionFactory']['registerDescriptionCallback'](_0x570fd1=>{if('attribute'!=_0x570fd1['type'])return;const {data:_0x51eb67}=_0x570fd1;if(!_0x51eb67||'alt'!=_0x51eb67['key'])return;const _0x4fa374=_0x51eb67['newValue'];return _0x4fa374?{'type':'format','content':c(_0x2f3156,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4fa374+'\x22')}:{'type':'format','content':c(_0x2f3156,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30822d=this['editor'],_0x3cef8f=_0x30822d['locale'];_0x30822d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x91f342=>{if('formatBlock'!=_0x91f342['type']&&'formatInline'!=_0x91f342['type'])return;const {data:_0x1e85d0}=_0x91f342;if(_0x1e85d0){if('imageTextAlternative'==_0x1e85d0['commandName']){const _0x2e88e8=_0x1e85d0['commandParams'][0x0]['newValue'];return _0x2e88e8?{'type':'format','content':c(_0x3cef8f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e88e8+'\x22')}:{'type':'format','content':c(_0x3cef8f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1e85d0['commandName']){const _0x12f349=_0x1e85d0['commandParams'][0x0]['width'];return _0x12f349?{'type':'format','content':c(_0x3cef8f,'*Set\x20image\x20width:*\x20%0',_0x12f349)}:{'type':'format','content':c(_0x3cef8f,'*Reset\x20image\x20width*')};}}});}}class at extends _0x45133c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5b74d5=this['editor']['locale'],_0x525603=this['editor']['plugins']['get']('TrackChangesEditing');_0x525603['enableDefaultAttributesIntegration']('replaceImageSource'),_0x525603['registerBlockAttribute']('src'),_0x525603['descriptionFactory']['registerDescriptionCallback'](_0xfe2381=>{if('attribute'!=_0xfe2381['type'])return;const {data:_0x119355}=_0xfe2381;return _0x119355&&'src'==_0x119355['key']?_0x119355['newValue']&&_0x119355['oldValue']?{'type':'format','content':c(_0x5b74d5,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x591a88=this['editor']['plugins']['get']('TrackChangesEditing');_0x591a88['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x591a88['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x591a88['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x591a88['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a0461=this['editor'],_0x233fbf=_0x2a0461['locale'];_0x2a0461['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a77e3=>{if('formatBlock'!=_0x2a77e3['type']&&'formatInline'!=_0x2a77e3['type'])return;const {data:_0x582d18}=_0x2a77e3;if(!_0x582d18||'replaceImageSource'!=_0x582d18['commandName'])return;return{'type':'format','content':c(_0x233fbf,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x45133c{['afterInit'](){const _0x58fcf2=this['editor'];if(!_0x58fcf2['plugins']['has']('ImageStyleEditing'))return;const _0x239e2c=_0x58fcf2['plugins']['get']('TrackChangesEditing'),_0x54fa83=_0x58fcf2['plugins']['get']('ImageUtils'),_0x24794b={};_0x239e2c['enableCommand']('imageStyle',(_0xba5168,_0x25d349)=>{const _0x1537fe=_0x58fcf2['plugins']['get']('Users')['me'],_0x362db4=_0x58fcf2['commands']['get']('imageStyle');let _0x437179=_0x54fa83['getClosestSelectedImageElement'](_0x58fcf2['model']['document']['selection']),_0x5cf767=_0x58fcf2['model']['createRangeOn'](_0x437179),_0x246c93=_0x362db4['value'];if(_0x246c93==_0x25d349['value'])return;const _0x1dc939={'commandName':'imageStyle','commandParams':[_0x25d349],'formatGroupId':_0x2612d4()};_0x58fcf2['model']['change'](()=>{if(_0x239e2c['getSuggestions']()['filter'](_0x61e571=>_0x61e571['isInContent']&&_0x1537fe==_0x61e571['author']&&('formatBlock'==_0x61e571['type']||'formatInline'==_0x61e571['type'])&&('imageStylePreApply'==_0x61e571['subType']||'imageStylePostApply'==_0x61e571['subType'])&&_0x61e571['getFirstRange']()['isEqual'](_0x5cf767))['forEach'](_0x4e4c6f=>_0x239e2c['discardSuggestion'](_0x4e4c6f['head'])),_0x437179=_0x54fa83['getClosestSelectedImageElement'](_0x58fcf2['model']['document']['selection']),_0x5cf767=_0x58fcf2['model']['createRangeOn'](_0x437179),_0x362db4['refresh'](),_0x58fcf2['commands']['get']('imageTypeInline')['refresh'](),_0x58fcf2['commands']['get']('imageTypeBlock')['refresh'](),_0x246c93=_0x362db4['value'],_0x246c93!=_0x25d349['value'])return _0x54fa83['isInlineImage'](_0x437179)&&_0x362db4['shouldConvertImageType'](_0x25d349['value'],_0x437179)?(_0xba5168({..._0x25d349,'setImageSizes':!0x1}),_0x437179=_0x54fa83['getClosestSelectedImageElement'](_0x58fcf2['model']['document']['selection']),void _0x239e2c['markBlockFormat'](_0x437179,{..._0x1dc939,'commandReversedParams':[{'value':_0x246c93||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x54fa83['isBlockImage'](_0x437179)?_0x239e2c['markBlockFormat'](_0x437179,_0x1dc939,[],'imageStylePostApply'):_0x239e2c['markInlineFormat'](_0x5cf767,_0x1dc939,'imageStylePostApply'));});});for(const _0x1c839d of _0x58fcf2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x24794b[_0x1c839d['name']]=_0x1c839d['title']['toLowerCase']();_0x239e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x239e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x239e2c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x239e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xc7bd5e])=>{_0x54fa83['setImageNaturalSizeAttributes'](_0xc7bd5e['getContainedElement']());}),_0x239e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x572fcf,_0x2cd54b)=>{_0x239e2c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x572fcf,{'commandName':_0x2cd54b['commandName'],'commandParams':_0x2cd54b['commandReversedParams']});}),_0x239e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x563d78,_0x929f9){if(_0x2a7ee0(_0x563d78,_0x929f9))return[_0x563d78,_0x929f9];if(_0x2a7ee0(_0x929f9,_0x563d78))return[_0x929f9,_0x563d78];return null;});const _0x44648a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2a7ee0(_0x26b93f,_0x2a823b){const _0x387348=_0x44648a['findIndex'](({type:_0x109c01,subType:_0x1ab71d})=>_0x26b93f['type']==_0x109c01&&_0x26b93f['subType']==_0x1ab71d),_0x54dfb3=_0x44648a['findIndex'](({type:_0x2eaa6f,subType:_0x55964c})=>_0x2a823b['type']==_0x2eaa6f&&_0x2a823b['subType']==_0x55964c);if(_0x387348<0x0||_0x54dfb3<0x0)return!0x1;const _0x56d751=_0x26b93f['getFirstRange'](),_0x2f479f=_0x2a823b['getFirstRange']();if((0x0==_0x387348||0x1==_0x387348)&&0x2==_0x54dfb3&&_0x56d751['isIntersecting'](_0x2f479f))return!0x0;if(0x2==_0x387348&&0x3==_0x54dfb3){const _0x4ba8b4=_0x239e2c['_findSuggestions'](_0x56d751,'insertion')['filter'](({suggestion:_0x3e1aa1,meta:_0x48f824})=>_0x48f824['isOwn']&&'convertInlineImageToBlock'==_0x3e1aa1['subType']);if(_0x4ba8b4['length']>0x1&&_0x2f479f['end']['isEqual'](_0x56d751['start']))return!0x0;if(0x1==_0x4ba8b4['length']&&(_0x56d751['start']['isEqual'](_0x2f479f['end'])||_0x56d751['end']['isEqual'](_0x2f479f['start'])))return!0x0;}if(0x3==_0x387348&&0x3==_0x54dfb3&&_0x56d751['start']['isBefore'](_0x2f479f['start'])){const _0x480a11=_0x56d751['end']['nodeAfter'],_0x3b9310=_0x2f479f['start']['nodeBefore'];return _0x54fa83['isBlockImage'](_0x480a11)&&_0x480a11===_0x3b9310;}return!0x1;}_0x58fcf2['model']['document']['registerPostFixer'](()=>{let _0x246193=!0x1;const _0x55185a=Array['from'](_0x58fcf2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e3468,data:_0x15fcd2}of _0x55185a){const {group:_0x471849,type:_0x12d987,subType:_0x3a0e71,id:_0x45b505}=_0x239e2c['_splitMarkerName'](_0x4e3468);if('suggestion'==_0x471849&&_0x239e2c['hasSuggestion'](_0x45b505)){if('formatBlock'==_0x12d987&&('imageStylePreApply'==_0x3a0e71||'imageStylePostApply'==_0x3a0e71)){const _0x22c4ef=_0x239e2c['getSuggestion'](_0x45b505);if(_0x15fcd2['newRange']){const _0x40edd4=_0x22c4ef['getFirstRange']()['getContainedElement']();if(_0x54fa83['isBlockImage'](_0x40edd4))continue;_0x239e2c['discardSuggestion'](_0x22c4ef),_0x246193=!0x0;}}if('insertion'==_0x12d987&&'imageCaption'==_0x3a0e71&&!_0x15fcd2['newRange']){const _0xad3cdf=_0x239e2c['getSuggestion'](_0x45b505);_0xad3cdf['next']&&_0xad3cdf['next']['isInContent']&&(_0x239e2c['discardSuggestion'](_0xad3cdf['next']),_0x246193=!0x0);}}}return _0x246193;}),this['_registerLegacyDescription'](_0x24794b);}['_registerLegacyDescription'](_0x420cc3){const _0x3049f6=this['editor'],_0x4221dc=_0x3049f6['locale'];_0x3049f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x429757=>{if('formatBlock'!=_0x429757['type']&&'formatInline'!=_0x429757['type'])return;const {data:_0x102fc4}=_0x429757;if(!_0x102fc4||'imageStyle'!=_0x102fc4['commandName'])return;const _0x41eb1f=_0x102fc4['commandParams'][0x0]['value'];return _0x597c7b('side'===_0x41eb1f?c(_0x4221dc,'FORMAT_SIDE_IMAGE'):_0x420cc3[_0x41eb1f]||_0x41eb1f);function _0x597c7b(_0x311909){return{'type':'format','content':c(_0x4221dc,'*Format:*\x20%0',_0x311909)};}});}}class ut extends _0x45133c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1e9458){super(_0x1e9458),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4e7431=this['editor'],_0x432399=_0x4e7431['commands']['get']('importWord'),_0xdfc769=_0x4e7431['commands']['get']('trackChanges');_0x432399&&(_0x432399['on']('execute',(_0x1627f5,[,_0x13cb6a])=>{this['_trackChangesValueDuringImport']=_0xdfc769['value'],_0x13cb6a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x432399,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x432399,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xdfc769['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4e7431['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1ea7d6,_0xaa5a70){const {suggestions:_0x2be117}=_0xaa5a70,_0x43288c=this['editor']['commands']['get']('trackChanges'),_0x7ab712=_0x43288c['value'];this['_trackChangesValueDuringImport']!==_0x7ab712&&(_0x43288c['execute'](),this['_trackChangesExecuted']=!0x0),_0x2be117&&_0x2be117['forEach'](({id:_0x1a5ced,type:_0xbb0a9,author:_0x166db1,created_at:_0xd389d5})=>{const _0xba6e46={'id':_0x1a5ced,'type':_0xbb0a9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x166db1,'createdAt':_0xd389d5?new Date(_0xd389d5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xba6e46);});}}class ft extends _0x45133c{['afterInit'](){const _0x45725d=this['editor'],_0x312e18=_0x45725d['plugins']['get']('TrackChangesEditing');if(_0x45725d['plugins']['has']('IndentEditing')&&(_0x312e18['enableCommand']('indent'),_0x312e18['enableCommand']('outdent')),_0x45725d['plugins']['has']('IndentBlock')){for(const _0x16e993 of['indentBlock','outdentBlock'])_0x312e18['enableDefaultAttributesIntegration'](_0x16e993);}const _0x82dd4c=_0x45725d['locale'];_0x312e18['registerBlockAttribute']('blockIndent'),_0x312e18['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x82dd4c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x278cd1=this['editor'],_0x5abc52=_0x278cd1['locale'],_0x28ff07=_0x278cd1['plugins']['get']('TrackChangesEditing');_0x28ff07['descriptionFactory']['registerDescriptionCallback'](_0x520739=>{if('formatBlock'!=_0x520739['type'])return;const {data:_0x60307b}=_0x520739;if(!_0x60307b)return;if('indentBlock'!=_0x60307b['commandName']&&'outdentBlock'!=_0x60307b['commandName'])return;const _0x48699d=_0x520739['getItems']()[0x0],_0x1d87b2=_0x28ff07['descriptionFactory']['getItemLabel'](_0x48699d);return'indentBlock'==_0x60307b['commandName']?{'type':'format','content':c(_0x5abc52,'*Indent:*\x20%0',_0x1d87b2)}:'outdentBlock'==_0x60307b['commandName']?{'type':'format','content':c(_0x5abc52,'*Outdent:*\x20%0',_0x1d87b2)}:void 0x0;});}}class ht extends _0x45133c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x45133c{['afterInit'](){const _0x296228=this['editor'];if(!_0x296228['plugins']['has']('LinkEditing'))return;const _0x4b5cd5=_0x296228['plugins']['get']('TrackChangesEditing'),_0x20c5fb=_0x296228['commands']['get']('link');_0x4b5cd5['enableDefaultAttributesIntegration']('link'),_0x4b5cd5['enableDefaultAttributesIntegration']('unlink'),_0x4b5cd5['registerInlineAttribute']('linkHref');for(const _0x4b755e of _0x20c5fb['manualDecorators'])_0x4b5cd5['registerInlineAttribute'](_0x4b755e['id']),_0x4b5cd5['descriptionFactory']['registerAttributeLabel'](_0x4b755e['id'],'link\x20('+_0x4b755e['label']['toLowerCase']()+')');_0x4b5cd5['descriptionFactory']['registerDescriptionCallback'](_0x4344ae=>{if('attribute'!=_0x4344ae['type'])return;const {data:_0x3e6f5f}=_0x4344ae;if(!_0x3e6f5f||'linkHref'!=_0x3e6f5f['key'])return;const _0x4d9cf9=_0x3e6f5f['newValue'],_0xc6fbc4=_0x296228['locale'];return{'type':'format','content':null==_0x4d9cf9?c(_0xc6fbc4,'*Remove\x20link*'):c(_0xc6fbc4,'*Set\x20link:*\x20%0','\x22'+_0x4d9cf9+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d6025=this['editor'],_0x2de82b=_0x2d6025['locale'];_0x2d6025['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3630c8=>{if('formatInline'!=_0x3630c8['type'])return;const {data:_0x5fed68}=_0x3630c8;if(_0x5fed68){if('link'==_0x5fed68['commandName']){const _0x3ca4ec=_0x5fed68['commandParams'][0x0];return{'type':'format','content':c(_0x2de82b,'*Set\x20link:*\x20%0','\x22'+_0x3ca4ec+'\x22')};}return'unlink'==_0x5fed68['commandName']?{'type':'format','content':c(_0x2de82b,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x45133c{['afterInit'](){const _0x5899ce=this['editor'],_0x5041f9=_0x5899ce['locale'];if(!_0x5899ce['plugins']['has']('LegacyListEditing'))return;const _0x56d1d9=_0x5899ce['plugins']['get']('TrackChangesEditing'),_0x293028=_0x5899ce['plugins']['has']('LegacyTodoListEditing');function _0x47f985(_0x1aa546){return()=>{const _0xc22b7d=_0x5899ce['model']['document']['selection'],_0x472e37=_0x5899ce['commands']['get'](_0x1aa546);if(_0x472e37['value'])return void _0x5899ce['execute']('paragraph',{});const _0x347c93=_0x1aa546['slice'](0x0,-0x4),_0x4f520a=function(_0x1d6e02,_0xcc7a7f,_0x4e1421){let _0x4d4c9a=Array['from'](_0x1d6e02)['filter'](_0xb813b5=>function(_0x1f2ccb,_0x5f3b51){return _0x5f3b51['checkChild'](_0x1f2ccb['parent'],'listItem')&&!_0x5f3b51['isObject'](_0x1f2ccb);}(_0xb813b5,_0x4e1421));_0x4d4c9a=_0x4d4c9a['filter'](_0x2c0d2a=>!_0x2c0d2a['is']('element','listItem')||_0x2c0d2a['getAttribute']('listType')!=_0xcc7a7f);const _0x1630bc=new Set();for(const _0x518fbd of _0x4d4c9a)_0x518fbd['is']('element','listItem')?_0x1630bc['add'](Le(_0x518fbd)):_0x1630bc['add'](_0x518fbd);return Array['from'](_0x1630bc);}(_0xc22b7d['getSelectedBlocks'](),_0x347c93,_0x5899ce['model']['schema']);_0x5899ce['model']['change'](()=>{for(const _0x2e0a86 of _0x4f520a)_0x56d1d9['markBlockFormat'](_0x2e0a86,{'commandName':_0x1aa546,'commandParams':[{'forceValue':!_0x472e37['value']}],'formatGroupId':'blockName'},Ee(_0x2e0a86));});};}function _0x42012d(_0x1a2120){return()=>{const _0x4893b8=function(_0x51c780){let _0x4740bb=Array['from'](_0x51c780);const _0x571151=_0x4740bb['findIndex'](_0x11245e=>'listItem'!=_0x11245e['name']);return _0x571151>-0x1&&(_0x4740bb=_0x4740bb['slice'](0x0,_0x571151)),_0x4740bb;}(_0x5899ce['model']['document']['selection']['getSelectedBlocks']()),_0x4d7346=_0x5899ce['model']['createRange'](_0x5899ce['model']['createPositionAt'](_0x4893b8[0x0],'before'),_0x5899ce['model']['createPositionAt'](_0x4893b8[_0x4893b8['length']-0x1],'end'));_0x5899ce['model']['change'](()=>{_0x56d1d9['markBlockFormat'](_0x4d7346,{'commandName':_0x1a2120,'commandParams':[],'formatGroupId':'listIndent'},function(_0x23352b){const _0xc235fc=new Set();for(const _0x3196bb of _0x23352b){let _0x5be1b7=_0x3196bb['nextSibling'];for(;_0x5be1b7&&_0x5be1b7['getAttribute']('listIndent')>_0x3196bb['getAttribute']('listIndent');)_0xc235fc['add'](_0x5be1b7),_0x5be1b7=_0x5be1b7['nextSibling'];}return Array['from'](_0xc235fc);}(_0x4893b8));});};}_0x56d1d9['enableCommand']('numberedList',_0x47f985('numberedList')),_0x56d1d9['enableCommand']('bulletedList',_0x47f985('bulletedList')),_0x293028&&_0x56d1d9['enableCommand']('todoList',_0x47f985('todoList')),_0x56d1d9['enableCommand']('indentList',_0x42012d('indentList')),_0x56d1d9['enableCommand']('outdentList',_0x42012d('outdentList')),_0x293028&&_0x56d1d9['enableCommand']('checkTodoList',()=>{const _0x4e6ad6=_0x5899ce['commands']['get']('checkTodoList'),_0xabcce=Array['from'](_0x4e6ad6['_selectedElements']);_0xabcce['filter'](_0x390816=>_0x390816['getAttribute']('todoListChecked')!=_0x4e6ad6['value']),_0x5899ce['model']['change'](()=>{for(const _0x5636d4 of _0xabcce)_0x56d1d9['markBlockFormat'](_0x5636d4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4e6ad6['value']}]});});}),_0x56d1d9['descriptionFactory']['registerElementLabel']('listItem',_0x202e6d=>c(_0x5041f9,'ELEMENT_LIST_ITEM',_0x202e6d)),_0x56d1d9['descriptionFactory']['registerDescriptionCallback'](_0x4fb6e2=>{if('formatBlock'!=_0x4fb6e2['type']&&'formatInline'!=_0x4fb6e2['type'])return;const {data:_0x68351a}=_0x4fb6e2;if(_0x68351a){if('numberedList'==_0x68351a['commandName']||'bulletedList'==_0x68351a['commandName']||'todoList'==_0x68351a['commandName'])switch(_0x68351a['commandName']['replace']('List','')){case'bulleted':return _0x5c3d8e(c(_0x5041f9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c3d8e(c(_0x5041f9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c3d8e(c(_0x5041f9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x68351a['commandName'])return{'type':'format','content':c(_0x5041f9,'*Indent:*\x20%0',c(_0x5041f9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x68351a['commandName'])return{'type':'format','content':c(_0x5041f9,'*Outdent:*\x20%0',c(_0x5041f9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x68351a['commandName'])return _0x68351a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5041f9,'*Check\x20item*')}:{'type':'format','content':c(_0x5041f9,'*Uncheck\x20item*')};}function _0x5c3d8e(_0x5a3f52){return{'type':'format','content':c(_0x5041f9,'*Change\x20to:*\x20%0',_0x5a3f52)};}});}}function Le(_0x4201c5){const _0x111b80=_0x4201c5['getAttribute']('listIndent');if(0x0==_0x111b80)return _0x4201c5;let _0x375406=_0x4201c5;for(;_0x4201c5['previousSibling']&&_0x4201c5['previousSibling']['is']('element','listItem');){const _0x52587e=_0x4201c5['previousSibling']['getAttribute']('listIndent');if(_0x52587e==_0x111b80)_0x375406=_0x4201c5['previousSibling'];else{if(_0x52587e<_0x111b80)break;}_0x4201c5=_0x4201c5['previousSibling'];}return _0x375406;}function Ee(_0x28b07e){const _0x5541f7=[];if(_0x28b07e['is']('element','listItem')&&_0x28b07e['getAttribute']('listIndent')>0x0){let _0x56cdb5=_0x28b07e['nextSibling'];for(;_0x56cdb5&&'listItem'==_0x56cdb5['name']&&_0x56cdb5['getAttribute']('listIndent')==_0x28b07e['getAttribute']('listIndent');)_0x5541f7['push'](_0x56cdb5),_0x56cdb5=_0x56cdb5['nextSibling'];}return _0x5541f7;}class Q extends _0x45133c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5aa5aa=this['editor']['config']['get']('list.properties'),_0x2914bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5aa5aa['styles']&&_0x2914bd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5aa5aa['reversed']&&_0x2914bd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5aa5aa['startIndex']&&_0x2914bd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2914bd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1ab1ec,_0x86ff17={}){const _0x556691=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42b1c6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x556691['markMultiRangeBlockFormat'](_0x42b1c6,{'commandName':'listStyle','commandParams':[{'type':_0x86ff17['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x23baa3,_0x3f53d9={}){const _0x5e70c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45bc6e=this['_getSuggestionBlocks'](_0x31688d=>_0x31688d['is']('element','listItem')&&'numbered'===_0x31688d['getAttribute']('listType'));if(_0x45bc6e['length']<0x1)return;const _0xd93936=_0x45bc6e['map'](_0x4bff54=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4bff54,'before'),this['editor']['model']['createPositionAt'](_0x4bff54,0x0)));this['editor']['model']['change'](()=>{_0x5e70c3['markMultiRangeBlockFormat'](_0xd93936,{'commandName':'listReversed','commandParams':[{'reversed':_0x3f53d9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xd31559,_0x2c6d02={}){const _0x4ae69c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20ee1c=this['_getSuggestionBlocks'](_0x4b4164=>_0x4b4164['is']('element','listItem')&&'numbered'===_0x4b4164['getAttribute']('listType'));if(_0x20ee1c['length']<0x1)return;const _0x12e8b8=_0x20ee1c['map'](_0x4dbc31=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4dbc31,'before'),this['editor']['model']['createPositionAt'](_0x4dbc31,0x0)));this['editor']['model']['change'](()=>{_0x4ae69c['markMultiRangeBlockFormat'](_0x12e8b8,{'commandName':'listStart','commandParams':[{'startIndex':_0x2c6d02['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x84ce3c){if('formatBlock'!=_0x84ce3c['type']&&'formatInline'!=_0x84ce3c['type'])return;const _0x4710b9=this['editor']['locale'],{data:_0x3de98f}=_0x84ce3c;if(!_0x3de98f)return;let _0x11eff5,_0x45906d;switch(_0x3de98f['commandName']){case'listStyle':_0x11eff5='*Change\x20to:*\x20%0',_0x45906d={'type':'format','content':c(_0x4710b9,_0x11eff5,c(_0x4710b9,this['_getTranslationKeyForListStyle'](_0x3de98f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x11eff5=_0x3de98f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45906d={'type':'format','content':c(_0x4710b9,_0x11eff5)};break;case'listStart':_0x11eff5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45906d={'type':'format','content':c(_0x4710b9,_0x11eff5,_0x3de98f['commandParams'][0x0]['startIndex'])};}return _0x45906d;}['_getSuggestionBlocksForListStyle'](){const _0x54e577=this['editor']['plugins']['get']('LegacyListUtils');let _0x32a7b9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x32a7b9[0x0]?.['is']('element','listItem')&&_0x32a7b9['unshift'](..._0x54e577['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x32a7b9[_0x32a7b9['length']-0x1]?.['is']('element','listItem')&&_0x32a7b9['push'](..._0x54e577['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x32a7b9=[...new Set(_0x32a7b9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x32a7b9=_0x32a7b9['filter'](_0x479bda=>_0x479bda['is']('element','listItem'))),_0x32a7b9;}['_getSuggestionBlocks'](_0xc4a80c){const _0x54c6ba=this['editor']['plugins']['get']('LegacyListUtils');let _0x38d6d8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xc4a80c)['map'](_0x57cd0b=>{const _0x42778f=this['editor']['model']['createPositionAt'](_0x57cd0b,0x0);return[..._0x54c6ba['getSiblingNodes'](_0x42778f,'backward'),..._0x54c6ba['getSiblingNodes'](_0x42778f,'forward')];})['flat']();return _0x38d6d8=[...new Set(_0x38d6d8)],_0x38d6d8;}['_getTranslationKeyForListStyle'](_0xb91bc6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xb91bc6)||'default')['toUpperCase']()+'_LIST_'+_0xb91bc6['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x45133c{['afterInit'](){const _0x49162d=this['editor'];if(!_0x49162d['plugins']['has']('MediaEmbedEditing'))return;const _0x5275df=_0x49162d['plugins']['get']('TrackChangesEditing'),_0x4554d1=_0x49162d['locale'];_0x5275df['enableCommand']('mediaEmbed'),_0x5275df['descriptionFactory']['registerElementLabel']('media',_0x223698=>c(_0x4554d1,'ELEMENT_MEDIA',_0x223698)),_0x49162d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1364db,{writer:_0x380ca6,options:_0x346b04})=>{if(_0x346b04['showSuggestionHighlights'])return _0x380ca6['createEmptyElement']('div');},'converterPriority':'high'}),_0x49162d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x228294,_0x4f3a91,_0x21a3b2)=>{_0x21a3b2['options']['showSuggestionHighlights']&&_0x228294['stop']();},{'priority':'high'});}}class pt extends _0x45133c{['afterInit'](){const _0x43615f=this['editor'];_0x43615f['plugins']['has']('MentionEditing')&&_0x43615f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x45133c{['afterInit'](){const _0x4d9a72=this['editor'];if(!_0x4d9a72['plugins']['has']('MergeFieldsEditing'))return;const _0x198dc7=_0x4d9a72['plugins']['get']('TrackChangesEditing'),_0x4e0dbc=_0x4d9a72['locale'];_0x198dc7['enableCommand']('insertMergeField'),_0x198dc7['enableCommand']('insertMergeFieldBlock'),_0x198dc7['enableCommand']('insertMergeFieldImage'),_0x198dc7['descriptionFactory']['registerElementLabel']('mergeField',_0x162631=>c(_0x4e0dbc,'ELEMENT_MERGE_FIELD',_0x162631)),_0x198dc7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x207739=>c(_0x4e0dbc,'ELEMENT_MERGE_FIELD',_0x207739)),_0x198dc7['descriptionFactory']['registerDescriptionCallback'](_0x410fb9=>{if('insertion'!=_0x410fb9['type']&&'deletion'!=_0x410fb9['type'])return;const _0x1012fd=_0x410fb9['getContainedElement']();if(null==_0x1012fd)return;const _0x4419aa=_0x4d9a72['plugins']['get']('MergeFieldsEditing');let _0x39ca8e;switch(_0x4419aa['getMergeFieldType'](_0x1012fd)){case null:return;case'image':{const _0x55a9fe=_0x4419aa['unwrapAffixes'](_0x1012fd['getAttribute']('src'));_0x39ca8e=_0x4419aa['getLabel'](_0x55a9fe)||_0x55a9fe;break;}default:{const _0x1fd2e1=_0x1012fd['getAttribute']('id');_0x39ca8e=_0x4419aa['getLabel'](_0x1fd2e1)||_0x1fd2e1;break;}}return'insertion'==_0x410fb9['type']?{'type':'insertion','content':c(_0x4e0dbc,'*Insert:*\x20%0','\x22'+_0x39ca8e+'\x22\x20'+c(_0x4e0dbc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x4e0dbc,'*Remove:*\x20%0','\x22'+_0x39ca8e+'\x22\x20'+c(_0x4e0dbc,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x45133c{['afterInit'](){const _0x5a4788=this['editor'],_0x566883=_0x5a4788['plugins']['get']('TrackChangesEditing');_0x5a4788['plugins']['has']('MultiLevelList')&&(_0x566883['enableDefaultAttributesIntegration']('multiLevelList'),_0x566883['registerBlockAttribute']('listMarkerStyle'),_0x566883['descriptionFactory']['registerDescriptionCallback'](_0x1db498=>this['handleDescriptions'](_0x1db498)));}['handleDescriptions'](_0x4c7efb){const _0x5723c1=this['editor']['locale'],{data:_0x2eecf6}=_0x4c7efb,_0x47579f={'type':'format','content':''};if(_0x2eecf6&&'listMarkerStyle'==_0x2eecf6['key']){if(!_0x2eecf6['oldValue'])return{'type':'format','content':c(_0x5723c1,'*Set\x20format:*\x20%0',c(_0x5723c1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2eecf6['newValue']+')'};if(!_0x2eecf6['newValue']){let _0x507f98=_0x4c7efb['head'];for(;_0x507f98;){if(_0x507f98['data']&&'listType'==_0x507f98['data']['key']&&_0x507f98['data']['newValue'])return _0x47579f;_0x507f98=_0x507f98['next'];}return{'type':'format','content':c(_0x5723c1,'*Remove\x20format:*\x20%0',c(_0x5723c1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2eecf6['oldValue']+')'};}}}}class bt extends _0x45133c{['afterInit'](){const _0x3099be=this['editor'];if(!_0x3099be['plugins']['has']('PageBreakEditing'))return;_0x3099be['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x221397=_0x3099be['plugins']['get']('TrackChangesEditing'),_0x38ddbd=_0x3099be['locale'];_0x221397['descriptionFactory']['registerElementLabel']('pageBreak',_0x32e186=>c(_0x38ddbd,'ELEMENT_PAGE_BREAK',_0x32e186));}}class yt extends _0x45133c{['afterInit'](){const _0x3697da=this['editor'];if(!_0x3697da['plugins']['has']('Paragraph'))return;const _0x1415a1=_0x3697da['locale'],_0x511b6c=_0x3697da['plugins']['get']('TrackChangesEditing');_0x511b6c['descriptionFactory']['registerElementLabel']('paragraph',_0x25839c=>c(_0x1415a1,'ELEMENT_PARAGRAPH',_0x25839c)),_0x511b6c['enableDefaultAttributesIntegration']('paragraph'),_0x511b6c['enableCommand']('insertParagraph'),_0x3697da['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3697da),{'priority':'highest'}),_0x3697da['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x38b3ad,_0x398f95,_0x341641)=>{_0x341641['options']['showSuggestionHighlights']&&nr(_0x3697da,{'showActiveMarker':!0x1})(_0x38b3ad,_0x398f95,_0x341641);},{'priority':'highest'});const _0x2e1c98=_0x511b6c['descriptionFactory'];_0x2e1c98['registerDescriptionCallback'](_0x30f3ef=>{if('insertion'!==_0x30f3ef['type'])return;const {start:_0x39b84f,end:_0x7e9086}=_0x30f3ef['getFirstRange']();if(!_0x39b84f['isTouching'](_0x7e9086)||!_0x39b84f['nodeAfter'])return;const _0x3b3215=_0x3697da['model']['schema'],_0x391ed9=_0x39b84f['nodeAfter'];return _0x3b3215['isBlock'](_0x391ed9)&&!_0x3b3215['isLimit'](_0x391ed9)&&_0x3b3215['checkChild'](_0x391ed9,'$text')?{'type':'insertion','content':c(_0x1415a1,'*Insert:*\x20%0',_0x2e1c98['getItemLabel'](_0x391ed9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d5dbd=this['editor'],_0x260052=_0x2d5dbd['locale'];_0x2d5dbd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x340fbb=>{if('formatBlock'!=_0x340fbb['type'])return;const {data:_0x3956b8}=_0x340fbb;return _0x3956b8&&'paragraph'==_0x3956b8['commandName']?{'type':'format','content':c(_0x260052,'*Change\x20to:*\x20%0',c(_0x260052,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x980477,{showActiveMarker:_0x44de5e=!0x0}={}){return(_0xeaf0f7,_0x993cf5,_0x3ac37c)=>{const _0x1dfa58=_0x980477['plugins']['get']('TrackChangesEditing'),_0x4b6c0d=_0x993cf5['markerRange']['start'],_0x42452e=_0x993cf5['markerRange']['end'],_0xb338ff=_0x980477['model']['schema'];if(!_0x4b6c0d['isTouching'](_0x42452e)||!_0x4b6c0d['nodeAfter'])return;const _0x3317e0=_0x4b6c0d['nodeAfter'];if(_0xb338ff['isBlock'](_0x3317e0)&&!_0xb338ff['isLimit'](_0x3317e0)&&_0xb338ff['checkChild'](_0x3317e0,'$text')){if(!_0x3ac37c['consumable']['consume'](_0x993cf5['markerRange'],_0xeaf0f7['name']))return;const {authorId:_0x2902ce}=_0x1dfa58['_splitMarkerName'](_0x993cf5['markerName']),_0x27ae9b=_0x3ac37c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2902ce}),_0x1b6d6d=_0x3ac37c['mapper']['toViewPosition'](_0x42452e);_0x44de5e&&_0x1dfa58['activeMarkers']['includes'](_0x993cf5['markerName'])&&_0x3ac37c['writer']['addClass']('ck-suggestion-marker--active',_0x27ae9b),_0x3ac37c['writer']['insert'](_0x1b6d6d,_0x27ae9b),_0x3ac37c['mapper']['bindElementToMarker'](_0x27ae9b,_0x993cf5['markerName']);}};}class jt extends _0x45133c{['afterInit'](){const _0x3337ef=this['editor'];_0x3337ef['commands']['get']('replaceSource')&&_0x3337ef['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x45133c{['afterInit'](){const _0x5830a0=this['editor'];if(!_0x5830a0['plugins']['has']('RemoveFormatEditing'))return;_0x5830a0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2488cc=this['editor'];_0x2488cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x151693=>{if('formatBlock'!=_0x151693['type']&&'formatInline'!=_0x151693['type'])return;const {data:_0x2980b0}=_0x151693;return _0x2980b0&&'removeFormat'==_0x2980b0['commandName']?{'type':'format','content':c(_0x2488cc['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x45133c{['afterInit'](){const _0x46c4a4=this['editor'];if(!_0x46c4a4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x45a718=_0x46c4a4['plugins']['get']('TrackChangesEditing');_0x45a718['enableCommand']('goToPreviousRestrictedEditingException'),_0x45a718['enableCommand']('goToNextRestrictedEditingException');const _0x21b06f=_0x46c4a4['plugins']['get']('RestrictedEditingModeEditing');_0x21b06f['enableCommand']('trackChanges'),_0x21b06f['enableCommand']('acceptSuggestion'),_0x21b06f['enableCommand']('discardSuggestion'),_0x21b06f['enableCommand']('acceptAllSuggestions'),_0x21b06f['enableCommand']('discardAllSuggestions'),_0x21b06f['enableCommand']('acceptSelectedSuggestions'),_0x21b06f['enableCommand']('discardSelectedSuggestions');}}class It extends _0x45133c{static get['requires'](){return[_0xe8ac85];}['init'](){const _0x7d2c71=this['editor'],_0x402c0a=_0x7d2c71['plugins']['get']('TrackChangesEditing');_0x402c0a['enableCommand']('shiftEnter'),_0x7d2c71['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x7d2c71),{'priority':'high'}),_0x7d2c71['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x7d2c71),{'priority':'high'}),_0x7d2c71['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x443a23,_0xd9a6bf,_0x5077df)=>{_0x5077df['options']['showSuggestionHighlights']&&je(_0x7d2c71,{'showActiveMarker':!0x1})(_0x443a23,_0xd9a6bf,_0x5077df);}),_0x402c0a['descriptionFactory']['registerElementLabel']('softBreak',_0x25bc97=>c(_0x7d2c71['locale'],'ELEMENT_LINE_BREAK',_0x25bc97));}}function je(_0x2e3090,{showActiveMarker:_0x9e5650=!0x0}={}){return(_0x21b3ce,_0x3db30a,_0x3253eb)=>{const _0x2de162=_0x2e3090['plugins']['get']('TrackChangesEditing');if(!_0x3253eb['consumable']['test'](_0x3db30a['markerRange'],_0x21b3ce['name']))return;const _0x14e00d=_0x2e3090['model'];for(const _0x5a457b of _0x3db30a['markerRange']['getItems']()){if(!_0x5a457b['is']('element','softBreak'))continue;const _0x4a7966='deletion'==_0x3db30a['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5a6c32}=_0x2de162['_splitMarkerName'](_0x3db30a['markerName']),_0x1b30ff=_0x3253eb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a7966,'data-author-id':_0x5a6c32}),_0x337ca6=_0x3253eb['mapper']['toViewPosition'](_0x14e00d['createPositionBefore'](_0x5a457b));_0x9e5650&&_0x2de162['activeMarkers']['includes'](_0x3db30a['markerName'])&&_0x3253eb['writer']['addClass']('ck-suggestion-marker--active',_0x1b30ff),_0x3253eb['writer']['insert'](_0x337ca6,_0x1b30ff),_0x3253eb['mapper']['bindElementToMarker'](_0x1b30ff,_0x3db30a['markerName']);}};}class _t extends _0x45133c{['afterInit'](){const _0x3f74af=this['editor'],_0x8257f3=_0x3f74af['model'],_0x777ac6=_0x3f74af['locale'];if(!_0x3f74af['plugins']['has']('StandardEditingModeEditing'))return;const _0xbc6e1d=_0x3f74af['plugins']['get']('TrackChangesEditing'),_0x1353d3='restrictedEditingException',_0x10471d=_0x3f74af['commands']['get'](_0x1353d3);_0xbc6e1d['enableCommand'](_0x1353d3,(_0x5267b3,_0x4eb8ca={})=>{const _0x4cdf11=_0x8257f3['document']['selection'];if(_0x4cdf11['isCollapsed'])return void _0x5267b3(_0x4eb8ca);const _0x4ec73f=void 0x0!==_0x4eb8ca['forceValue']?_0x4eb8ca['forceValue']:!_0x10471d['value'];_0x8257f3['change'](()=>{const _0x3e28e7=Array['from'](_0x4cdf11['getRanges']());for(const _0x3cf126 of _0x3e28e7){const _0x148113=_0x4ec73f?[_0x3cf126]:io(_0x1353d3,_0x3cf126,_0x8257f3);for(const _0x2f410e of _0x148113)_0xbc6e1d['markInlineFormat'](_0x2f410e,{'commandName':_0x1353d3,'commandParams':[{'forceValue':_0x4ec73f}]});}});}),_0xbc6e1d['descriptionFactory']['registerDescriptionCallback'](_0x3d4dfb=>{if('formatBlock'!=_0x3d4dfb['type']&&'formatInline'!=_0x3d4dfb['type'])return;const {data:_0xcf009c}=_0x3d4dfb;return _0xcf009c&&_0xcf009c['commandName']==_0x1353d3?_0xcf009c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x777ac6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x777ac6,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x45133c{['afterInit'](){const _0x3bbce5=this['editor'];if(!_0x3bbce5['plugins']['has']('Style')||!_0x3bbce5['plugins']['has']('DataSchema'))return;const _0x5e0a16=_0x3bbce5['plugins']['get']('TrackChangesEditing'),_0x16483f=_0x3bbce5['locale'],_0x512871=_0x3bbce5['config']['get']('style')||{},_0xba86d=_0x3bbce5['plugins']['get']('GeneralHtmlSupport'),_0xb2b643=_0x3bbce5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3bbce5['plugins']['get']('DataSchema'),_0x512871['definitions']);_0x5e0a16['enableDefaultAttributesIntegration']('style');const _0x21f231=new Set();for(const _0x5e9c6f of _0xb2b643['block']){const _0x5c55ca=_0xba86d['getGhsAttributeNameForElement'](_0x5e9c6f['element']);_0x21f231['add'](_0x5c55ca);}const _0x30acfe=new Set();for(const _0x13a900 of _0xb2b643['inline']){const _0x2baee5=_0xba86d['getGhsAttributeNameForElement'](_0x13a900['element']);_0x30acfe['add'](_0x2baee5);for(const _0x361592 of _0x13a900['ghsAttributes'])_0x30acfe['add'](_0x361592);}for(const _0x53cf8f of _0x21f231)_0x5e0a16['registerBlockAttribute'](_0x53cf8f),_0x5e0a16['descriptionFactory']['registerAttributeLabel'](_0x53cf8f,c(_0x16483f,'FORMAT_STYLE'));for(const _0x428904 of _0x30acfe)_0x5e0a16['registerInlineAttribute'](_0x428904),_0x5e0a16['descriptionFactory']['registerAttributeLabel'](_0x428904,c(_0x16483f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x107313=this['editor'],_0x280f9f=_0x107313['locale'];_0x107313['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15ab21=>{if('formatBlock'!=_0x15ab21['type']&&'formatInline'!=_0x15ab21['type'])return;const {data:_0xe6261c}=_0x15ab21;return _0xe6261c&&'style'===_0xe6261c['commandName']?_0xe6261c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x280f9f,'*Set\x20format:*\x20%0',_0xe6261c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x280f9f,'*Remove\x20format:*\x20%0',_0xe6261c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x45133c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xccef7b){super(_0xccef7b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2f1ba8=this['editor'],_0x20b8cc=_0x2f1ba8['model']['document']['selection'];if(!_0x2f1ba8['plugins']['has']('TableEditing'))return;const _0x850bb8=_0x2f1ba8['locale'],_0x235ccc=_0x2f1ba8['plugins']['get']('TrackChangesEditing'),_0x5a692e=_0x2f1ba8['plugins']['get']('TableUtils');_0x235ccc['descriptionFactory']['registerElementLabel']('table',_0x4de74f=>c(_0x850bb8,'ELEMENT_TABLE',_0x4de74f)),this['_setupColumnsRowsFixing'](),_0x235ccc['enableCommand']('insertTable'),_0x235ccc['enableCommand']('selectTableRow'),_0x235ccc['enableCommand']('selectTableColumn');for(const _0xd5f2c0 of['insertTableRowAbove','insertTableRowBelow']){const _0x55551f=_0x2f1ba8['commands']['get'](_0xd5f2c0);_0x235ccc['enableCommand'](_0xd5f2c0,_0xcac60d=>{_0x2f1ba8['model']['change'](_0x528f56=>{_0xcac60d();const _0x348b97='above'===_0x55551f['order'],_0x1dbb0f=_0x5a692e['getSelectionAffectedTableCells'](_0x20b8cc),_0xa6df30=_0x5a692e['getRowIndexes'](_0x1dbb0f),_0x2197e0=_0x348b97?_0xa6df30['first']-0x1:_0xa6df30['last']+0x1,_0x56ddc1=_0x1dbb0f[0x0]['findAncestor']('table'),_0x35bc35=_0x5a692e['createTableWalker'](_0x56ddc1,{'startRow':_0x2197e0,'endRow':_0x2197e0}),_0x493598=Array['from'](_0x35bc35)['map'](_0x3debc2=>_0x528f56['createRangeOn'](_0x3debc2['cell']));_0x235ccc['markMultiRangeInsertion'](_0x493598,'tableRow');});});}for(const _0x438c35 of['insertTableColumnLeft','insertTableColumnRight']){const _0x199861=_0x2f1ba8['commands']['get'](_0x438c35);_0x235ccc['enableCommand'](_0x438c35,_0x7697c5=>{_0x2f1ba8['model']['change'](_0x46fdff=>{_0x7697c5();const _0x444024='left'===_0x199861['order'],_0x120884=_0x5a692e['getSelectionAffectedTableCells'](_0x20b8cc),_0x3905de=_0x5a692e['getColumnIndexes'](_0x120884),_0x4d7bb1=_0x444024?_0x3905de['first']-0x1:_0x3905de['last']+0x1,_0x5db983=_0x120884[0x0]['findAncestor']('table'),_0x468e7e=_0x5a692e['createTableWalker'](_0x5db983,{'startRow':0x0,'column':_0x4d7bb1,'includeAllSlots':!0x1}),_0x24f7df=Array['from'](_0x468e7e)['map'](_0x3a5601=>_0x46fdff['createRangeOn'](_0x3a5601['cell']));_0x235ccc['markMultiRangeInsertion'](_0x24f7df,'tableColumn');});});}for(const _0x36fe09 of['removeTableRow','removeTableColumn']){const _0x5ae46f=_0x36fe09['substr'](0xb),_0x1fb7ae=_0x5ae46f['toLowerCase'](),_0xd1ee6c=_0x1fb7ae['substr'](0x0,0x3)+'span',_0x420420='table'+_0x5ae46f,_0x362eba='min'+_0x5ae46f,_0x5647b8='max'+_0x5ae46f;_0x235ccc['enableCommand'](_0x36fe09,()=>{_0x2f1ba8['model']['change'](_0x212514=>{const _0x675f23=_0x5a692e['getSelectionAffectedTableCells'](_0x20b8cc),_0x30fae6=_0x675f23[0x0]['findAncestor']('table');let _0xcfba57;if('removeTableRow'==_0x36fe09){const _0x925197=_0x5a692e['getRowIndexes'](_0x675f23);_0xcfba57={'startRow':_0x925197['first'],'endRow':_0x925197['last'],'includeAllSlots':!0x0};}else{const _0x3a6a98=_0x5a692e['getColumnIndexes'](_0x675f23);_0xcfba57={'startColumn':_0x3a6a98['first'],'endColumn':_0x3a6a98['last'],'includeAllSlots':!0x0};}const _0x513cf5=_0x5a692e['createTableWalker'](_0x30fae6,_0xcfba57),_0x398595=Array['from'](_0x513cf5)['map'](({cell:_0x31c0b1})=>_0x31c0b1),_0x37ce4c=Ne(_0x398595['filter'](_0x11aabe=>_0x11aabe['hasAttribute'](_0xd1ee6c))),_0x267b91=Ne(_0x398595['filter'](_0x2fbc02=>!_0x2fbc02['hasAttribute'](_0xd1ee6c)))['map'](_0x540d95=>_0x212514['createRangeOn'](_0x540d95)),_0x2ee8f1=_0x235ccc['markMultiRangeDeletion'](_0x267b91,_0x420420);if(_0x2ee8f1&&('tableRow'==_0x2ee8f1['subType']||'tableColumn'==_0x2ee8f1['subType'])){const _0x15048a=this['_getSuggestionCoords'](_0x2ee8f1);for(const _0x3ed1f9 of _0x37ce4c){const _0xeb5e9e=_0x212514['createRangeOn'](_0x3ed1f9),_0xed29cb=_0x5a692e['getCellLocation'](_0x3ed1f9),_0x3f0d59=_0x3ed1f9['getAttribute'](_0xd1ee6c)-0x1,_0x4e654a=_0x15048a[_0x362eba],_0x13ee5b=_0x15048a[_0x5647b8];_0x4e654a<=_0xed29cb[_0x1fb7ae]&&_0xed29cb[_0x1fb7ae]+_0x3f0d59<=_0x13ee5b&&_0x2ee8f1['addRange'](_0xeb5e9e);}}});});}function _0x1fbefd(_0x195966){const _0x1900af=Array['from'](_0x20b8cc['getRanges']())['map'](_0x184895=>_0x51fe0f['fromRange'](_0x184895));_0x2f1ba8['model']['change'](_0x372a2d=>{const _0x2c5736=_0x372a2d['batch'];_0x195966=_0x195966['filter'](_0x1539d3=>'$graveyard'!=_0x1539d3['root']['rootName']),_0x372a2d['setSelection'](_0x195966),_0x2f1ba8['commands']['get']('removeTableRow')['refresh'](),_0x2f1ba8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2f1ba8['model']['enqueueChange'](()=>{_0x2f1ba8['model']['enqueueChange'](_0x2c5736,_0x3ba967=>{const _0x481239=_0x1900af['filter'](_0x31a363=>'$graveyard'!=_0x31a363['root']['rootName']);_0x481239['length']>0x0&&_0x3ba967['setSelection'](_0x481239);for(const _0x29a544 of _0x1900af)_0x29a544['detach']();});});});}function _0x290d22(_0x1b7dc4){_0x2f1ba8['model']['change'](_0x275223=>{const _0x3a56c5=Array['from'](_0x20b8cc['getRanges']())['map'](_0x2bef62=>_0x51fe0f['fromRange'](_0x2bef62)),_0x14f9bd=[];for(const _0x1bc395 of _0x1b7dc4)for(const _0x2457b8 of _0x1bc395['getItems']({'shallow':!0x0}))_0x14f9bd['push'](_0x2457b8);for(const _0x452007 of _0x14f9bd)'$graveyard'!=_0x452007['root']['rootName']&&(_0x275223['setSelection'](_0x275223['createPositionAt'](_0x452007,0x0)),_0x2f1ba8['commands']['get']('removeTableColumn')['refresh'](),_0x2f1ba8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xa7dd10=_0x3a56c5['filter'](_0xf11b86=>'$graveyard'!=_0xf11b86['root']['rootName']);_0xa7dd10['length']>0x0&&_0x275223['setSelection'](_0xa7dd10);for(const _0x35a435 of _0x3a56c5)_0x35a435['detach']();});}function _0x3b81cf(_0x46cf82,_0x32f38d){return _0x32f38d['every'](_0x578d32=>_0x46cf82['some'](_0x24298b=>_0x24298b['end']['isEqual'](_0x578d32['start'])||_0x578d32['end']['isEqual'](_0x24298b['start'])));}function _0x14b947(_0x2a9bb8,_0x5c478a){return!_0x2a9bb8['some'](_0x13ca07=>_0x5c478a['some'](_0x216782=>_0x13ca07['isIntersecting'](_0x216782)))&&_0x2a9bb8['some'](_0x4ba57b=>_0x5c478a['some'](_0x54ea84=>_0x4ba57b['end']['isTouching'](_0x54ea84['start'])));}_0x2f1ba8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x103f1c,_0x27ca4b,_0x3064e8)=>{if(!_0x3064e8['options']['showSuggestionHighlights'])return;const _0x5e75f8=_0x27ca4b['item'];if(!_0x5e75f8)return;const _0x529a8a=_0x3064e8['mapper']['toViewElement'](_0x5e75f8);function _0xcdc426(_0x4202b3){return Array['isArray'](_0x4202b3)?_0x4202b3:[_0x4202b3];}_0x529a8a&&'tableCell'===_0x5e75f8['name']&&_0x5451a9(_0x529a8a,_0x3064e8['writer'],(_0xfc96f0,_0x2910d1,_0x585a5e)=>_0x585a5e['addClass'](_0xcdc426(_0x2910d1['classes']),_0xfc96f0),(_0x22db06,_0x12994a,_0x4c3af4)=>_0x4c3af4['removeClass'](_0xcdc426(_0x12994a['classes']),_0x22db06));},{'priority':'highest'}),_0x235ccc['descriptionFactory']['registerDescriptionCallback'](_0x21748f=>{if('insertion'!=_0x21748f['type']&&'deletion'!=_0x21748f['type'])return;const _0x43dbe1=_0x21748f['getContainedElement']();if(null!=_0x43dbe1&&_0x43dbe1['is']('element','table')){if('insertion'==_0x21748f['type']){const _0x37e89=_0x21748f['getItems']()['filter'](_0x1853f1=>_0x1853f1['is']('$textProxy'))['map'](_0x27b092=>_0x27b092['data']);if(_0x37e89['length'])return{'type':'insertion','content':c(_0x850bb8,'*Insert:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37e89['join']('\x20')+'\x22'))};}if('deletion'==_0x21748f['type']){const _0x1dda95=_0x21748f['getItems']()['filter'](_0x14ec3c=>_0x14ec3c['is']('$textProxy'))['map'](_0x123745=>_0x123745['data']);if(_0x1dda95['length'])return{'type':'deletion','content':c(_0x850bb8,'*Remove:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1dda95['join']('\x20')+'\x22'))};}}}),_0x235ccc['descriptionFactory']['registerDescriptionCallback'](_0x411c57=>{if('tableRow'==_0x411c57['subType']){const _0x12ca83=_0x411c57['getItems']()['filter'](_0x1ad0be=>_0x1ad0be['is']('$textProxy'))['map'](_0x8c5e5f=>_0x8c5e5f['data']),_0x6f874b=this['_getSuggestionCoords'](_0x411c57),_0x1d092e=_0x6f874b['maxRow']-_0x6f874b['minRow']+0x1;if('insertion'==_0x411c57['type'])return _0x12ca83['length']?{'type':'insertion','content':c(_0x850bb8,'*Insert:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d092e,'\x22'+_0x12ca83['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x850bb8,'*Insert:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_ROW',_0x1d092e))};if('deletion'==_0x411c57['type'])return _0x12ca83['length']?{'type':'deletion','content':c(_0x850bb8,'*Remove:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d092e,'\x22'+_0x12ca83['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x850bb8,'*Remove:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_ROW',_0x1d092e))};}if('tableColumn'==_0x411c57['subType']){const _0xcd0b74=_0x411c57['getItems']()['filter'](_0x3b549f=>_0x3b549f['is']('$textProxy'))['map'](_0x4e5c07=>_0x4e5c07['data']),_0xca356a=this['_getSuggestionCoords'](_0x411c57),_0x5be7dc=_0xca356a['maxColumn']-_0xca356a['minColumn']+0x1;if('insertion'==_0x411c57['type'])return _0xcd0b74['length']?{'type':'insertion','content':c(_0x850bb8,'*Insert:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5be7dc,'\x22'+_0xcd0b74['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x850bb8,'*Insert:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_COLUMN',_0x5be7dc))};if('deletion'==_0x411c57['type'])return _0xcd0b74['length']?{'type':'deletion','content':c(_0x850bb8,'*Remove:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5be7dc,'\x22'+_0xcd0b74['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x850bb8,'*Remove:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_COLUMN',_0x5be7dc))};}}),_0x235ccc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1fbefd),_0x235ccc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1fbefd),_0x235ccc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x290d22),_0x235ccc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x290d22),_0x235ccc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3b81cf),_0x235ccc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3b81cf),_0x235ccc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x14b947),_0x235ccc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x14b947);}['_acceptFormatSuggestionCallbackFactory'](){const _0x41425f=this['editor'],_0x211332=_0x41425f['model']['document']['selection'];return(_0x3fb1cf,_0x3f2046)=>{_0x41425f['model']['change'](_0x1cbae3=>{const {commandName:_0x297135,commandParams:_0x366809}=_0x3f2046;let _0x3e96dd=_0x3fb1cf[0x0]['end']['nodeBefore'];_0x366809&&_0x366809[0x0]&&!0x1===_0x366809[0x0]['forceValue']&&(_0x3e96dd=_0x3fb1cf[0x0]['start']['nodeAfter']);const _0x183a0f=_0x1cbae3['createRangeIn'](_0x3e96dd);if('$graveyard'==_0x183a0f['root']['rootName'])return;const _0x2f7953=Array['from'](_0x211332['getRanges']())['map'](_0x55807c=>_0x51fe0f['fromRange'](_0x55807c));_0x1cbae3['setSelection'](_0x183a0f),_0x41425f['commands']['get'](_0x297135)['refresh'](),_0x366809['push']({'forceDefaultExecution':!0x0}),_0x41425f['execute'](_0x297135,..._0x366809);const _0x20dff7=_0x2f7953['filter'](_0x47d1a9=>'$graveyard'!=_0x47d1a9['root']['rootName']);_0x20dff7['length']>0x0&&_0x1cbae3['setSelection'](_0x20dff7);for(const _0x32c175 of _0x2f7953)_0x32c175['detach']();});};}['_getCoordsForCells'](_0x1d8654){const _0x428949=this['editor']['plugins']['get']('TableUtils');let _0x2e8fd2=Number['MAX_SAFE_INTEGER'],_0x5aebbc=Number['MIN_SAFE_INTEGER'],_0x46980e=Number['MAX_SAFE_INTEGER'],_0x4081f2=Number['MIN_SAFE_INTEGER'];for(const _0xceb3d6 of _0x1d8654){if('$graveyard'==_0xceb3d6['root']['rootName'])continue;const {row:_0x367504,column:_0x44d095}=_0x428949['getCellLocation'](_0xceb3d6),_0x3f6757=_0xceb3d6['hasAttribute']('rowspan')?_0xceb3d6['getAttribute']('rowspan')-0x1:0x0,_0x460eda=_0xceb3d6['hasAttribute']('colspan')?_0xceb3d6['getAttribute']('colspan')-0x1:0x0;_0x2e8fd2=_0x367504<_0x2e8fd2?_0x367504:_0x2e8fd2,_0x5aebbc=_0x367504+_0x3f6757>_0x5aebbc?_0x367504+_0x3f6757:_0x5aebbc,_0x46980e=_0x44d095<_0x46980e?_0x44d095:_0x46980e,_0x4081f2=_0x44d095+_0x460eda>_0x4081f2?_0x44d095+_0x460eda:_0x4081f2;}return{'minRow':_0x2e8fd2,'maxRow':_0x5aebbc,'minColumn':_0x46980e,'maxColumn':_0x4081f2};}['_setupColumnsRowsFixing'](){const _0x37c6cb=this['editor'],_0x172fed=_0x37c6cb['plugins']['get']('TrackChangesEditing'),_0x4d3269=_0x37c6cb['plugins']['get']('TableUtils');_0x37c6cb['model']['document']['on']('change:data',()=>{const _0x28474d=Array['from'](_0x37c6cb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f2f9e,data:_0x7c65f3}of _0x28474d){const {group:_0x1c9c8f,id:_0x28bcef,subType:_0x561ed9}=_0x172fed['_splitMarkerName'](_0x2f2f9e);if('suggestion'!=_0x1c9c8f)continue;if(null!=_0x7c65f3['oldRange'])continue;const _0x4642e=_0x172fed['getSuggestion'](_0x28bcef);this['_tablePostFixingSubtypes']['includes'](_0x561ed9)&&this['_tableSuggestions']['add'](_0x4642e);}},{'priority':'low'});const _0x21a2a5=(_0x53b0ed,_0x49d244)=>{let _0x29a598=!0x1;const _0x55f813=_0x49d244['createRangeOn'](_0x53b0ed),_0x38fbc2=_0x53b0ed['findAncestor']('table'),_0x13f4dc=_0x4d3269['getCellLocation'](_0x53b0ed);for(const _0x2d296a of this['_tableSuggestions']){const _0x7a9d52=_0x2d296a['subType'],_0x554bcb=_0x7a9d52['startsWith']('tablePaste'),_0x157fc0=_0x7a9d52['substr'](_0x554bcb?0xa:0x5),_0x24bda3=_0x157fc0['toLowerCase'](),_0x36ee39=_0x24bda3['substr'](0x0,0x3)+'span',_0x46a7b6='min'+_0x157fc0,_0x3e70be='max'+_0x157fc0;if(!_0x2d296a['isInContent'])continue;if(_0x38fbc2!=_0x2d296a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2d296a['isIntersectingWithRange'](_0x55f813))continue;const _0x120776=_0x53b0ed['hasAttribute'](_0x36ee39)?_0x53b0ed['getAttribute'](_0x36ee39)-0x1:0x0,_0x341ee5=this['_getSuggestionCoords'](_0x2d296a),_0x4b4e62=_0x341ee5[_0x46a7b6],_0x27becc=_0x341ee5[_0x3e70be];_0x4b4e62<=_0x13f4dc[_0x24bda3]&&_0x13f4dc[_0x24bda3]+_0x120776<=_0x27becc&&(_0x2d296a['addRange'](_0x55f813),_0x29a598=!0x0);}return _0x29a598;};_0x37c6cb['model']['document']['registerPostFixer'](_0x3a664f=>{let _0x386585=!0x1;for(const _0x2ef260 of _0x37c6cb['model']['document']['differ']['getChanges']())if('insert'==_0x2ef260['type']){if('tableRow'==_0x2ef260['name']){for(const _0x30101c of _0x2ef260['position']['nodeAfter']['getChildren']())_0x386585=_0x386585||_0x21a2a5(_0x30101c,_0x3a664f);}else'tableCell'==_0x2ef260['name']&&(_0x386585=_0x386585||_0x21a2a5(_0x2ef260['position']['nodeAfter'],_0x3a664f));}return _0x386585;});}['_getSuggestionCoords'](_0x43c851){return this['_getCoordsForCells'](_0x43c851['getRanges']()['map'](_0x2e22bb=>_0x2e22bb['start']['nodeAfter']));}}function Ne(_0x265df0){return Array['from'](new Set(_0x265df0)['values']());}class Nt extends _0x45133c{static get['requires'](){return[Ct];}['afterInit'](){const _0x460e62=this['editor'],_0x34336a=_0x460e62['model']['document']['selection'],_0x3cc8ec=_0x460e62['locale'];if(!_0x460e62['plugins']['has']('TableEditing'))return;const _0x29b36e=_0x460e62['plugins']['get']('TrackChangesEditing'),_0x189b0a=_0x460e62['plugins']['get']('TableUtils'),_0x2fcf06=_0x460e62['plugins']['get'](Ct);_0x2fcf06['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x29b36e['enableCommand']('mergeTableCells',()=>{const _0x5a7e37=_0x189b0a['getSelectionAffectedTableCells'](_0x460e62['model']['document']['selection']);_0x460e62['model']['change'](()=>{_0x29b36e['markMultiRangeBlockFormat'](_0x5a7e37,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x460e62['commands']['get']('mergeTableCells')['on']('execute',(_0x37f549,_0x3698e2)=>{_0x460e62['commands']['get']('trackChanges')['value']&&(_0x3698e2['length']>0x0&&_0x3698e2[_0x3698e2['length']-0x1]&&_0x3698e2[_0x3698e2['length']-0x1]['forceDefaultExecution']||_0x29b36e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x37f549['stop']());},{'priority':'highest'});for(const _0x581556 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x45f086=_0x460e62['commands']['get'](_0x581556);_0x29b36e['enableCommand'](_0x581556,()=>{const _0x1b7fd5=_0x460e62['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x448827=>_0x448827['is']('element','tableCell')),_0x35698f=_0x45f086['value'];_0x460e62['model']['change'](()=>{_0x29b36e['markMultiRangeBlockFormat']([_0x1b7fd5,_0x35698f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xa4a980 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x46cf6d=_0x460e62['commands']['get'](_0xa4a980);_0x29b36e['enableCommand'](_0xa4a980,()=>{const _0x18d319=_0x189b0a['getSelectionAffectedTableCells'](_0x460e62['model']['document']['selection'])[0x0],_0x496401=_0x18d319['findAncestor']('table'),{column:_0x20076a,row:_0x53dce0}=_0x189b0a['getCellLocation'](_0x18d319);let _0x2c4ab6=[];if('horizontally'==_0x46cf6d['direction']){const _0x4170ea=_0x189b0a['createTableWalker'](_0x496401,{'startRow':_0x53dce0,'endRow':_0x53dce0,'includeAllSlots':!0x0});_0x2c4ab6=Array['from'](_0x4170ea)['map'](_0x142e63=>_0x142e63['cell']);}else{const _0x955690=_0x189b0a['createTableWalker'](_0x496401,{'column':_0x20076a,'includeAllSlots':!0x0});_0x2c4ab6=Array['from'](_0x955690)['map'](_0x3890b7=>_0x3890b7['cell']);}_0x460e62['model']['change'](_0x3ea88e=>{_0x29b36e['markBlockFormat'](_0x3ea88e['createRangeOn'](_0x18d319),{'commandName':_0xa4a980,'commandParams':[]},_0x2c4ab6,_0xa4a980);});});}_0x29b36e['descriptionFactory']['registerDescriptionCallback'](_0x404794=>{if('formatBlock'!=_0x404794['type']&&'formatInline'!=_0x404794['type'])return;const {data:_0x37115d}=_0x404794;return _0x37115d&&'mergeTableCells'==_0x37115d['commandName']?{'type':'format','content':c(_0x3cc8ec,'*Merge\x20cells*')}:void 0x0;}),_0x29b36e['descriptionFactory']['registerDescriptionCallback'](_0x886581=>{if('formatBlock'!=_0x886581['type']&&'formatInline'!=_0x886581['type'])return;const {data:_0x45a1ad}=_0x886581;return _0x45a1ad?'splitTableCellVertically'==_0x45a1ad['commandName']?{'type':'format','content':c(_0x3cc8ec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x45a1ad['commandName']?{'type':'format','content':c(_0x3cc8ec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x46cbea=_0x2fcf06['_acceptFormatSuggestionCallbackFactory']();for(const _0x4a0404 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x29b36e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a0404,'accept',_0x46cbea);for(const _0x3c3732 of['splitTableCellVertically','splitTableCellHorizontally'])_0x29b36e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c3732,'accept',_0x46cbea);_0x29b36e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x17491a=>{_0x460e62['model']['change'](_0x2ee743=>{const _0x47eff7=Array['from'](_0x34336a['getRanges']())['map'](_0x22b647=>_0x51fe0f['fromRange'](_0x22b647));_0x2ee743['setSelection'](_0x17491a),_0x460e62['commands']['get']('mergeTableCells')['refresh'](),_0x460e62['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2fff9e=_0x47eff7['filter'](_0x5b7abe=>'$graveyard'!=_0x5b7abe['root']['rootName']);_0x2fff9e['length']>0x0&&_0x2ee743['setSelection'](_0x2fff9e);for(const _0x129dae of _0x47eff7)_0x129dae['detach']();});});for(const _0xcd30fd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x36bc5c=_0x460e62['commands']['get'](_0xcd30fd);_0x36bc5c['on']('set:isEnabled',(_0x564588,_0x331ec2,_0x4423e1)=>{if(_0x4423e1){const _0x52c521=_0x460e62['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1029a2=>_0x1029a2['is']('element','tableCell'));this['_areMergableCells'](_0x36bc5c['value'],_0x52c521)||(_0x564588['return']=!0x1,_0x564588['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x16bc80=this['editor']['commands']['get']('mergeTableCells'),_0x39153d=this['editor']['plugins']['get']('TableUtils');if(!_0x16bc80['isEnabled'])return!0x1;const _0x14708b=_0x39153d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x19019d of _0x14708b)for(const _0x229881 of _0x14708b)if(_0x19019d!=_0x229881&&!this['_areMergableCells'](_0x19019d,_0x229881))return!0x1;return!0x0;}['_areMergableCells'](_0xe3c13c,_0x1cd99e){const _0x7c3ef0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25a1fc=this['editor']['model']['createRangeOn'](_0xe3c13c),_0x3c10fd=this['editor']['model']['createRangeOn'](_0x1cd99e),_0x109a83=new Set(),_0x4fa5c9=new Set();for(const _0x1e2777 of _0x7c3ef0['getSuggestions']())if(('insertion'==_0x1e2777['type']||'deletion'==_0x1e2777['type']||'mergeTableCells'==_0x1e2777['subType'])&&_0x1e2777['isInContent']){for(const _0x4f656a of _0x1e2777['getRanges']())_0x4f656a['containsRange'](_0x25a1fc,!0x0)&&_0x109a83['add'](_0x1e2777['type']+':'+_0x1e2777['author']['id']),_0x4f656a['containsRange'](_0x3c10fd,!0x0)&&_0x4fa5c9['add'](_0x1e2777['type']+':'+_0x1e2777['author']['id']);}if(_0x109a83['size']!=_0x4fa5c9['size'])return!0x1;for(const _0x1a9a78 of _0x109a83)if(!_0x4fa5c9['has'](_0x1a9a78))return!0x1;return!0x0;}}class Dt extends _0x45133c{static get['requires'](){return[Ct];}['afterInit'](){const _0x211b9b=this['editor'];if(!_0x211b9b['plugins']['has']('TableEditing'))return;const _0x369aa6=_0x211b9b['locale'],_0x5c5fa1=_0x211b9b['plugins']['get']('TrackChangesEditing');_0x5c5fa1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5c5fa1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5c5fa1['registerBlockAttribute']('headingRows'),_0x5c5fa1['registerBlockAttribute']('headingColumns'),_0x5c5fa1['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x369aa6,'FORMAT_HEADER_ROW')),_0x5c5fa1['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x369aa6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xbaca43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x143003=this['editor']['plugins']['get']('TableUtils'),_0x293df2=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x4f0fb5({showActiveMarker:_0x11453c=!0x0,setDataAttribute:_0x30cd4b=!0x0}={}){return(_0x23b03a,_0x3e7cba,_0x57373e)=>{const {type:_0x501dd0,id:_0xf85978}=_0xbaca43['_splitMarkerName'](_0x3e7cba['markerName']),_0x3b1b58=_0xbaca43['getSuggestion'](_0xf85978),_0x187820=_0x3b1b58['data'];if('formatBlock'!=_0x3b1b58['type']||!_0x187820||'setTableColumnHeader'!=_0x187820['commandName'])return;if(_0x3e7cba['item'])return void _0x23b03a['stop']();if(!_0x57373e['consumable']['consume'](_0x3e7cba['markerRange'],_0x23b03a['name']))return;const _0x4c1dfc=_0x3e7cba['markerRange']['start']['nodeAfter'],_0x3e4b67=_0x3e7cba['markerRange']['end']['nodeBefore'],_0x27e88c=_0x4c1dfc['parent']['parent'],{column:_0x50ef94}=_0x143003['getCellLocation'](_0x4c1dfc),{column:_0x107320}=_0x143003['getCellLocation'](_0x3e4b67);for(let _0x1d78f2=_0x50ef94;_0x1d78f2<=_0x107320;_0x1d78f2++){const _0xd02f2a=_0x143003['createTableWalker'](_0x27e88c,{'column':_0x1d78f2,'includeAllSlots':!0x1});for(const _0x1d90d7 of _0xd02f2a){const _0x1a350e=_0x1d90d7['cell'],_0x50482c=_0x57373e['mapper']['toViewElement'](_0x1a350e);_0x57373e['writer']['addClass']('ck-suggestion-marker-'+_0x501dd0,_0x50482c),_0x30cd4b&&_0x57373e['writer']['setAttribute']('data-suggestion',_0xf85978,_0x50482c),_0x57373e['mapper']['bindElementToMarker'](_0x50482c,_0x3e7cba['markerName']),_0x11453c&&(_0xbaca43['activeMarkers']['includes'](_0x3e7cba['markerName'])?_0x57373e['writer']['addClass']('ck-suggestion-marker--active',_0x50482c):_0x57373e['writer']['removeClass']('ck-suggestion-marker--active',_0x50482c));}}};}_0xbaca43['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x293df2),_0xbaca43['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x293df2),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4f0fb5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1dba2b,_0x42b369,_0x984036)=>{_0x984036['options']['showSuggestionHighlights']&&_0x4f0fb5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1dba2b,_0x42b369,_0x984036);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x21ddc6,_0x5a2bfb,_0x204fdb)=>{const {type:_0x3b0c71,id:_0x23f704}=_0xbaca43['_splitMarkerName'](_0x5a2bfb['markerName']),_0x231e9c=_0xbaca43['getSuggestion'](_0x23f704),_0x269152=_0x231e9c['data'];if('formatBlock'!=_0x231e9c['type']||!_0x269152||'setTableColumnHeader'!=_0x269152['commandName'])return;const _0xe20d3b=_0x204fdb['mapper']['markerNameToElements'](_0x5a2bfb['markerName']);if(_0xe20d3b){for(const _0x1b6e67 of _0xe20d3b)_0x204fdb['writer']['removeClass']('ck-suggestion-marker-'+_0x3b0c71,_0x1b6e67),_0x204fdb['writer']['removeClass']('ck-suggestion-marker--active',_0x1b6e67),_0x204fdb['writer']['removeAttribute']('data-suggestion',_0x1b6e67),_0x204fdb['mapper']['unbindElementFromMarkerName'](_0x1b6e67,_0x5a2bfb['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e959f=this['editor'],_0xa153a2=_0x3e959f['locale'];function _0x5e747b(_0x4ee1bd){return{'type':'format','content':c(_0xa153a2,'*Format:*\x20%0',_0x4ee1bd)};}_0x3e959f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e386e=>{if('formatBlock'!=_0x5e386e['type'])return;const {data:_0x4af367}=_0x5e386e;if(_0x4af367){if('setTableRowHeader'==_0x4af367['commandName']){const _0x3cd2ad=_0x4af367['commandParams'][0x0]['forceValue'];return _0x5e747b(c(_0xa153a2,_0x3cd2ad?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4af367['commandName']){const _0x4930e2=_0x4af367['commandParams'][0x0]['forceValue'];return _0x5e747b(c(_0xa153a2,_0x4930e2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x363043=>[_0x363043,null]));class Mt extends _0x45133c{static get['requires'](){return[Ct];}['afterInit'](){const _0x4910da=this['editor'];if(!_0x4910da['plugins']['has']('TableClipboard'))return;const _0xdcff0=_0x4910da['plugins']['get']('TrackChangesEditing'),_0x3ac0f3=_0x4910da['plugins']['get']('TableUtils'),_0x3240c3=_0x4910da['plugins']['get'](Ct),_0x5df846=_0x4910da['plugins']['get']('TableClipboard');_0x3240c3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4910da['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4910da['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x50a6fb=null;_0x4910da['model']['on']('insertContent',(_0xdb6a08,_0x38945c)=>{const [_0xf968a4,_0x4c5456]=_0x38945c,_0x4b2c38=_0x38945c[_0x38945c['length']-0x1];_0x4b2c38&&_0x4b2c38['forceDefaultExecution']||_0xdcff0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1f2441,_0x1a0b01,_0x49914e,_0x5e0d60,_0x75dd9f){if(_0x1a0b01&&!_0x1a0b01['is']('documentSelection'))return!0x1;const _0x4c3853=_0x75dd9f['getTableIfOnlyTableInContent'](_0x1f2441,_0x49914e);if(!_0x4c3853||!Ue(_0x4c3853,void 0x0,_0x5e0d60))return!0x1;const _0x1f2415=_0x5e0d60['getSelectionAffectedTableCells'](_0x49914e['document']['selection']);if(!_0x1f2415['length'])return!0x1;const _0x47c4b2=_0x1f2415[0x0]['findAncestor']('table'),_0x3493a8=_0x5e0d60['getRowIndexes'](_0x1f2415),_0x4139ed=_0x5e0d60['getColumnIndexes'](_0x1f2415),_0x2232c8={'startRow':_0x3493a8['first'],'endRow':_0x3493a8['last'],'startColumn':_0x4139ed['first'],'endColumn':_0x4139ed['last']};return 0x1==_0x1f2415['length']&&(_0x2232c8['endRow']+=_0x5e0d60['getRows'](_0x4c3853)-0x1,_0x2232c8['endColumn']+=_0x5e0d60['getColumns'](_0x4c3853)-0x1),Ue(_0x47c4b2,_0x2232c8,_0x5e0d60);}(_0xf968a4,_0x4c5456,_0x4910da['model'],_0x3ac0f3,_0x5df846)&&(_0xdb6a08['stop'](),_0x50a6fb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4910da['model']['change'](()=>{_0x4910da['model']['insertContent'](_0x38945c[0x0],_0x38945c[0x1],_0x38945c[0x2],{'forceDefaultExecution':!0x0});const _0x3a6fbd=_0x2612d4(),{rowInsertionRanges:_0x6edc27,columnInsertionRanges:_0x278303,insertionRanges:_0x180968,deletionRanges:_0x27e265,cells:_0x2bdb47}=_0x50a6fb;_0x6edc27['length']&&_0xdcff0['markMultiRangeInsertion'](_0x6edc27,'tablePasteRow',{'tablePasteChainId':_0x3a6fbd}),_0x278303['length']&&_0xdcff0['markMultiRangeInsertion'](_0x278303,'tablePasteColumn',{'tablePasteChainId':_0x3a6fbd}),_0x180968['length']&&(_0xdcff0['markMultiRangeInsertion'](_0x180968,'tablePaste',{'tablePasteChainId':_0x3a6fbd,'skipNestingCheck':!0x0}),_0x180968['forEach'](_0x3c2e6a=>_0x3c2e6a['detach']?.())),_0x27e265['length']&&(_0xdcff0['markMultiRangeDeletion'](_0x27e265,'tablePaste',{'tablePasteChainId':_0x3a6fbd,'skipNestingCheck':!0x0}),_0x27e265['forEach'](_0x17a198=>_0x17a198['detach']?.()));const _0x2ae2c0=_0xdcff0['markMultiRangeBlockFormat'](_0x2bdb47['map'](({element:_0x3d266b})=>_0x3d266b),{'formatGroupId':_0x2612d4()},[],'tablePasteCell',{'tablePasteChainId':_0x3a6fbd});if(_0x2ae2c0){const _0x408218=_0x2ae2c0['getMarkers'](),_0x37630c=[];for(const {element:_0x56d112,attributes:_0x236a25}of _0x2bdb47){if(!_0x236a25)continue;const _0x108905=_0x4910da['model']['createRangeOn'](_0x56d112),_0x277c88=_0x408218['find'](_0x470f15=>_0x470f15['getRange']()['isEqual'](_0x108905));_0x277c88&&_0x37630c['push']([_0x277c88['name'],_0x236a25]);}_0x37630c['length']&&_0x2ae2c0['setAttribute']('markerAttributes',Object['fromEntries'](_0x37630c));}_0x50a6fb=null;}));},{'priority':_0x1691ee['high']+0xa}),_0x4910da['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1c1aba,_0x244273)=>{const [_0x476414,_0x1ad5de,,_0x32bba2]=_0x244273;if(!_0x50a6fb)return;_0x1c1aba['stop']();const _0x3cd742=_0x476414['cell'],_0x43db75=_0x1ad5de,_0x7a64d1=Oe(_0x3cd742),_0x19ebe0=Oe(_0x43db75);_0x1c1aba['return']=_0x3cd742;let _0x47ee8b=null,_0x33568e=null;if(_0x19ebe0||_0x7a64d1){if(_0x7a64d1&&!_0x19ebe0){_0x32bba2['remove'](_0x3cd742['getChild'](0x0));for(const _0x54f94c of Array['from'](_0x43db75['getChildren']()))_0x32bba2['insert'](_0x54f94c,_0x3cd742,'end');const _0x15662e=_0x50a6fb['rowInsertionIndexes']['includes'](_0x476414['row']),_0x28b5da=_0x50a6fb['columnInsertionIndexes']['includes'](_0x476414['column']);_0x15662e||_0x28b5da||(_0x47ee8b=_0x51fe0f['fromRange'](_0x32bba2['createRangeIn'](_0x3cd742)));}else _0x19ebe0&&!_0x7a64d1&&(_0x33568e=_0x32bba2['createRangeIn'](_0x3cd742));}else{const _0x1b4b6f=_0x32bba2['createElement']('tableCellSuggestion'),_0x52c18a=_0x32bba2['createElement']('tableCellSuggestion');_0x32bba2['wrap'](_0x32bba2['createRangeIn'](_0x3cd742),_0x52c18a),_0x32bba2['insert'](_0x1b4b6f,_0x3cd742,0x0);for(const _0x411906 of Array['from'](_0x43db75['getChildren']()))_0x32bba2['insert'](_0x411906,_0x1b4b6f,'end');_0x47ee8b=_0x51fe0f['fromRange'](_0x32bba2['createRangeOn'](_0x1b4b6f)),_0x33568e=_0x51fe0f['fromRange'](_0x32bba2['createRangeOn'](_0x52c18a));}const _0x1de103=Array['from'](_0x43db75['getAttributes']())['filter'](([_0x54191a])=>Be['includes'](_0x54191a));_0x50a6fb['cells']['push']({'element':_0x3cd742,'attributes':_0x1de103['length']?Object['fromEntries'](_0x1de103):null}),_0x47ee8b&&_0x50a6fb['insertionRanges']['push'](_0x47ee8b),_0x33568e&&_0x50a6fb['deletionRanges']['push'](_0x33568e);},{'priority':'high'}),_0x3ac0f3['on']('insertColumns',(_0x1f5a75,_0x3e0aa8)=>{const [_0x562cde,_0x379f7c={}]=_0x3e0aa8;if(!_0x50a6fb)return;const _0x51b962=_0x379f7c['at']||0x0,_0x4874f9=_0x379f7c['columns']||0x1;_0x50a6fb['columnInsertionIndexes']=new Array(_0x4874f9)['fill'](_0x51b962)['map']((_0xe7f06b,_0x37480c)=>_0xe7f06b+_0x37480c);for(const {cell:_0x4d340a}of _0x3ac0f3['createTableWalker'](_0x562cde,{'startColumn':_0x51b962,'endColumn':_0x51b962+_0x4874f9-0x1}))_0x50a6fb['columnInsertionRanges']['push'](_0x4910da['model']['createRangeOn'](_0x4d340a));},{'priority':'low'}),_0x3ac0f3['on']('insertRows',(_0x43b8f1,_0x4113e5)=>{const [_0x2349ba,_0x2a1f18={}]=_0x4113e5;if(!_0x50a6fb)return;const _0xa8888d=_0x2a1f18['at']||0x0,_0xf8ca21=_0x2a1f18['rows']||0x1;_0x50a6fb['rowInsertionIndexes']=new Array(_0xf8ca21)['fill'](_0xa8888d)['map']((_0x24bba6,_0x1145a8)=>_0x24bba6+_0x1145a8);for(const {cell:_0x138840}of _0x3ac0f3['createTableWalker'](_0x2349ba,{'startRow':_0xa8888d,'endRow':_0xa8888d+_0xf8ca21-0x1}))_0x50a6fb['rowInsertionRanges']['push'](_0x4910da['model']['createRangeOn'](_0x138840));},{'priority':'low'}),_0xdcff0['descriptionFactory']['registerDescriptionCallback'](_0x2b2619=>{if(_0x2b2619['subType']&&_0x2b2619['subType']['startsWith']('tablePaste'))return _0x2b2619['previous']?{}:{'type':'insertion','content':c(_0x4910da['locale'],'*Replace\x20table\x20cells*')};});const _0x52615b=()=>!0x1;for(const _0x22d6f3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xdcff0['_suggestionFactory']['registerCustomCallback']('insertion',_0x22d6f3,'join',_0x52615b),_0xdcff0['_suggestionFactory']['registerCustomCallback']('deletion',_0x22d6f3,'join',_0x52615b),_0xdcff0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x22d6f3,'join',_0x52615b);_0xdcff0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x52615b),_0xdcff0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x525d88,_0x319e09,_0x1ebd42)=>{const _0x2f90d9=_0x525d88['map'](_0x30979f=>_0x30979f['getContainedElement']())['filter'](_0x3867ba=>_0x3867ba),_0x1709c8=new Map(_0x2f90d9['map'](_0x1fefb8=>[_0x1fefb8,null]));if(_0x50a6fb){for(const {element:_0x471b94,attributes:_0x5ba59d}of _0x50a6fb['cells'])_0x5ba59d&&_0x1709c8['set'](_0x471b94,_0x5ba59d);}else{if(_0x1ebd42&&_0x1ebd42['markerAttributes'])for(const [_0x475176,_0x3a37eb]of Object['entries'](_0x1ebd42['markerAttributes'])){const _0x21e57d=_0x4910da['model']['markers']['get'](_0x475176),_0xf27276=_0x21e57d?_0x21e57d['getRange']()['getContainedElement']():null;_0xf27276&&_0x1709c8['set'](_0xf27276,_0x3a37eb);}}_0x4910da['model']['change'](_0x40432a=>{for(const [_0x44c79e,_0x4545ea]of _0x1709c8)_0x40432a['setAttributes']({...xe,..._0x4545ea},_0x44c79e);});});const _0x226a6a=(_0xd0bb84,_0x53c7d)=>{_0xdcff0['_suggestionFactory']['registerCustomCallback'](_0xd0bb84,'tablePaste',_0x53c7d,(_0x58d16d,_0x199d57,_0x48418b)=>{_0x4910da['model']['change'](_0xabbce2=>{const _0x4f384f=[];for(const _0x2ca914 of _0x58d16d){const _0x2492d4=_0x2ca914['start']['nodeAfter'];_0x2492d4['is']('element','tableCellSuggestion')&&_0x4f384f['push'](_0x2492d4);}_0xdcff0['_suggestionFactory']['getSuggestionCallback'](_0xd0bb84,null,_0x53c7d)(_0x58d16d,_0x199d57,_0x48418b);for(const _0x3f22e7 of _0x4f384f)'$graveyard'!=_0x3f22e7['root']['rootName']&&_0xabbce2['unwrap'](_0x3f22e7);});});};_0x226a6a('insertion','accept'),_0x226a6a('insertion','discard'),_0x226a6a('deletion','accept'),_0x226a6a('deletion','discard'),_0xdcff0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x232046=>{const _0x1f44f5=_0x232046['map'](_0x50969b=>_0x50969b['getContainedElement']()),_0x43ad13=_0x1f44f5[0x0]['findAncestor']('table'),{minRow:_0x1097f8,maxRow:_0x576a9e}=_0x3240c3['_getCoordsForCells'](_0x1f44f5);_0x3ac0f3['removeRows'](_0x43ad13,{'at':_0x1097f8,'rows':_0x576a9e-_0x1097f8+0x1});}),_0xdcff0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1f6391=>{const _0xc83e8e=_0x1f6391['map'](_0x201787=>_0x201787['getContainedElement']()),_0x57a992=_0xc83e8e[0x0]['findAncestor']('table'),{minColumn:_0x2adfab,maxColumn:_0x50a62d}=_0x3240c3['_getCoordsForCells'](_0xc83e8e);_0x3ac0f3['removeColumns'](_0x57a992,{'at':_0x2adfab,'columns':_0x50a62d-_0x2adfab+0x1});});const _0x5c448a=(_0x43e7bf,_0x2b8f0b)=>{if(!_0x2b8f0b['subType']||!_0x2b8f0b['subType']['startsWith']('tablePaste'))return;const _0x15ac3b=_0x2b8f0b['attributes']['tablePasteChainId'],_0x34a14b=_0xdcff0['getSuggestions']()['filter'](_0x577099=>_0x577099['isInContent']&&_0x577099['attributes']&&_0x577099['attributes']['tablePasteChainId']==_0x15ac3b);_0x34a14b['length']&&_0x2b8f0b['getAllAdjacentSuggestions']()['length']!=_0x34a14b['length']&&_0x34a14b['reduce']((_0x399bdf,_0x4a10cb)=>(_0x399bdf['next']=_0x4a10cb,_0x4a10cb['previous']=_0x399bdf,_0x4a10cb));};function _0xd33794(_0x2e3b37,_0x5274b5=!0x0){const {id:_0x1ed97a,authorId:_0x52048b}=_0xdcff0['_splitMarkerName'](_0x2e3b37['markerName']),_0x4881cc=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d1329=_0xdcff0['activeMarkers']['includes'](_0x2e3b37['markerName']);return _0x1d1329&&_0x4881cc['push']('ck-suggestion-marker--active'),{'classes':_0x4881cc,'attributes':{'data-suggestion':_0x1ed97a,'data-author-id':_0x52048b},'priority':_0x1d1329&&_0x5274b5?0xbc2:0xbb8};}_0xdcff0['on']('suggestionLoaded',_0x5c448a,{'priority':'high'}),_0xdcff0['on']('suggestionUnloaded',_0x5c448a,{'priority':'high'}),_0x4910da['model']['document']['registerPostFixer'](()=>{let _0x1195f7=!0x1;const _0xa9dd11=Array['from'](_0x4910da['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x373c67,data:_0x4591cd}of _0xa9dd11){const {group:_0x431276,type:_0x4b77bb,id:_0x199e23}=_0xdcff0['_splitMarkerName'](_0x373c67);if('suggestion'!=_0x431276||'deletion'!=_0x4b77bb||_0x4591cd['oldRange'])continue;if(!_0xdcff0['hasSuggestion'](_0x199e23))continue;const _0x27c911=_0xdcff0['getSuggestion'](_0x199e23)['getRanges'](),_0x5374de=_0x4910da['plugins']['get']('Users')['me'];for(const _0x314ef1 of _0xdcff0['getSuggestions']()){if(!_0x314ef1['isInContent']||_0x314ef1['author']!=_0x5374de)continue;if('formatBlock'!=_0x314ef1['type']||'tablePasteCell'!=_0x314ef1['subType'])continue;if(_0x314ef1['getRanges']()['every'](_0x30073b=>_0x27c911['some'](_0x1ed778=>_0x1ed778['containsRange'](_0x30073b,!0x0)))){for(const _0x5b5772 of _0x314ef1['getAllAdjacentSuggestions']())_0x5b5772['isInContent']&&(_0x5b5772['discard'](),_0x1195f7=!0x0);}}}return _0x1195f7;}),_0x4910da['model']['document']['registerPostFixer'](_0x2b6230=>{const _0x50fb9d=_0x4910da['commands']['get']('redo');if(!_0x50fb9d||!_0x50fb9d['_createdBatches']['has'](_0x2b6230['batch']))return!0x1;let _0x317142=!0x1;const _0x13b706=_0x4910da['plugins']['get']('Users')['me'],_0x1e2130=_0x4910da['model']['document']['differ']['getChanges'](),_0x4c702e=Array['from'](_0x4910da['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d33cc,data:_0x2646d9})=>{const {group:_0x3f9bec,subType:_0x1f6bda,authorId:_0x5b6a6a}=_0xdcff0['_splitMarkerName'](_0x3d33cc);return'suggestion'==_0x3f9bec&&'tablePaste'==_0x1f6bda&&_0x5b6a6a==_0x13b706['id']&&!_0x2646d9['oldRange'];});for(const _0xae4c10 of _0x1e2130){if('insert'!=_0xae4c10['type']||'tableCellSuggestion'!=_0xae4c10['name']||0x1!=_0xae4c10['length'])continue;const _0x49b999=_0x2b6230['createRange'](_0xae4c10['position'],_0xae4c10['position']['getShiftedBy'](0x1));if(!_0x4c702e['find'](({data:_0x2a47e1})=>_0x2a47e1['newRange']['isEqual'](_0x49b999))){for(const {name:_0x2bb999,data:_0x4730cc}of _0x4c702e)if(_0x49b999['containsRange'](_0x4730cc['newRange'])){_0x2b6230['updateMarker'](_0x2bb999,{'range':_0x49b999}),_0x317142=!0x0;break;}}}return _0x317142;}),_0x4910da['model']['document']['registerPostFixer'](_0x36f128=>{let _0x4b54f0=!0x1;const _0xf03bf4=_0x4910da['plugins']['get']('Users')['me'],_0x1b587e=_0xdcff0['getSuggestions']()['filter'](_0x3d0265=>_0x3d0265['isInContent']&&_0x3d0265['author']==_0xf03bf4),_0x291bb5=new Set(),_0xe062e=new Set();for(const _0x3c641b of _0x1b587e)if('tablePaste'==_0x3c641b['subType'])for(const _0x1146a6 of _0x3c641b['getMarkers']()){const _0x3e35ce=_0x1146a6['getRange']()['getContainedElement']();if(_0x3e35ce){if(_0x3e35ce['is']('element','tableCellSuggestion')&&Oe(_0x3e35ce)){_0x3c641b['removeMarker'](_0x1146a6['name']),_0x291bb5['add'](_0x3e35ce),_0x4b54f0=!0x0;const _0x3baca2=_0x3e35ce['nextSibling'],_0x381410=_0x3e35ce['previousSibling'],_0x1a6112=_0x3baca2&&_0x3baca2['is']('element','tableCellSuggestion'),_0x181ac9=_0x381410&&_0x381410['is']('element','tableCellSuggestion');_0x1a6112&&!_0x291bb5['has'](_0x3baca2)&&_0xe062e['add'](_0x3baca2),_0x181ac9&&!_0x291bb5['has'](_0x381410)&&_0xe062e['add'](_0x381410);}else _0x3e35ce['is']('element','paragraph')&&_0x3e35ce['isEmpty']&&(_0x3c641b['removeMarker'](_0x1146a6['name']),_0x4b54f0=!0x0);}}else{if('tablePasteCell'==_0x3c641b['subType']){if(!_0x3c641b['attributes']||!_0x3c641b['attributes']['tablePasteChainId'])continue;const _0x9e5d0=_0x3c641b['attributes']['markerAttributes'];if(_0x9e5d0&&Object['keys'](_0x9e5d0)['length'])continue;const _0x35cfcf=_0x3c641b['attributes']['tablePasteChainId'];let _0x32c2b8=!0x0,_0x32787f=!0x0;for(const _0x2980a3 of _0x1b587e)if(_0x2980a3['subType']&&_0x2980a3['subType']['startsWith']('tablePaste')){if(!_0x2980a3['attributes']['tablePasteChainId']){_0x32787f=!0x1;break;}if(_0x2980a3['id']!=_0x3c641b['id']&&_0x2980a3['attributes']['tablePasteChainId']==_0x35cfcf){_0x32c2b8=!0x1;break;}}_0x32787f&&_0x32c2b8&&(_0x3c641b['removeMarkers'](),_0x4b54f0=!0x0);}}for(const _0xc3a3fc of _0x291bb5)_0x36f128['remove'](_0xc3a3fc);for(const _0x3e87c7 of _0xe062e)_0x36f128['unwrap'](_0x3e87c7);return _0x4b54f0;}),_0x4910da['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5cf41e=>_0xd33794(_0x5cf41e),'converterPriority':'high'}),_0x4910da['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1a596b,_0x4ad9e5)=>_0x4ad9e5['options']['showSuggestionHighlights']?_0xd33794(_0x1a596b,!0x1):null,'converterPriority':'high'});const _0x903794=_0x4910da['editing']['view'];this['listenTo'](_0x903794['document'],'clipboardOutput',(_0x805f1d,_0x4874e0)=>{const _0x4b2e4c=[];for(const _0x4ed219 of _0x903794['createRangeIn'](_0x4874e0['content'])['getItems']())_0x4ed219['is']('element','suggestion-td')&&_0x4b2e4c['push'](_0x4ed219);_0x903794['change'](_0x3ee2dd=>{for(const _0x4fcf94 of _0x4b2e4c)_0x3ee2dd['move'](_0x3ee2dd['createRangeIn'](_0x4fcf94),_0x3ee2dd['createPositionBefore'](_0x4fcf94)),_0x3ee2dd['remove'](_0x4fcf94);});});}}function Oe(_0x76a305){if(_0x76a305['isEmpty'])return!0x0;const _0x3b9c12=_0x76a305['getChild'](0x0);return _0x3b9c12['is']('element','paragraph')&&_0x3b9c12['isEmpty'];}function Ue(_0x45db46,_0x2f3726={},_0x4e7b0c){for(const {isAnchor:_0x4c058f,cellHeight:_0x169a77,cellWidth:_0x5218cd}of _0x4e7b0c['createTableWalker'](_0x45db46,{'includeAllSlots':!0x0,..._0x2f3726}))if(!_0x4c058f||0x1!=_0x169a77||0x1!=_0x5218cd)return!0x1;return!0x0;}class $t extends _0x45133c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x29d047=this['editor']['plugins']['get']('TrackChangesEditing');_0x29d047['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x29d047['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x29d047['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29d047['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x29d047['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x29d047['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3b2291,_0x5d568e){const _0xaa2ade=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14aaf7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5a86be=_0x5d568e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2476d1=_0x14aaf7['getColumnGroupElement'](_0x5a86be);let _0x1232d0=_0x2476d1?_0x14aaf7['getTableColumnsWidths'](_0x2476d1):null,_0x15c4af=_0x5a86be['getAttribute']('tableWidth')||null;const _0x385b6e=_0x5d568e['tableWidth']||_0x15c4af,_0x290063=_0x5d568e['columnWidths']||_0x1232d0,_0x373c0e=this['editor']['plugins']['get']('Users')['me'];for(const _0x2172f7 of _0xaa2ade['getSuggestions']()){const _0xa86af0=_0x2172f7['getContainedElement']();if('resizeTable'===_0x2172f7['subType']&&_0xa86af0===_0x5a86be){_0x2172f7['author']!==_0x373c0e&&_0x2172f7['discard']();const _0x28ab57=_0x2172f7['data']['commandParams'];_0x15c4af=_0x28ab57[0x0]['tableWidth'],_0x1232d0=_0x28ab57[0x0]['columnWidths'];break;}}_0x3b2291({'table':_0x5a86be,'tableWidth':_0x385b6e,'columnWidths':_0x290063}),_0xaa2ade['markBlockFormat'](_0x5a86be,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x15c4af,'columnWidths':_0x1232d0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x58d562){if('formatBlock'!=_0x58d562['type']&&'formatInline'!=_0x58d562['type'])return;const {data:_0x323c1a}=_0x58d562;if(_0x323c1a&&'resizeTable'===_0x323c1a['formatGroupId']){const _0x460895='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x460895)};}}}class Bt extends _0x45133c{['afterInit'](){const _0x3937b1=this['editor'];_0x3937b1['plugins']['has']('Template')&&_0x3937b1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x45133c{['afterInit'](){const _0x2ca0c8=this['editor'];if(!_0x2ca0c8['commands']['get']('insertTableOfContents'))return;_0x2ca0c8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5f0546=_0x2ca0c8['plugins']['get']('TrackChangesEditing'),_0x23594f=_0x2ca0c8['locale'];_0x5f0546['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3ddffd=>c(_0x23594f,'ELEMENT_TABLE_OF_CONTENTS',_0x3ddffd));}}class Rt extends _0x45133c{['afterInit'](){const _0x377021=this['editor'];if(!_0x377021['plugins']['has']('Title'))return;const _0x1da311=_0x377021['plugins']['get']('TrackChangesEditing');_0x1da311['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x377021['locale'],'ELEMENT_TITLE')),_0x377021['model']['document']['registerPostFixer'](_0x320b87=>{let _0x1d2952=!0x1;const _0x1f1c88=Array['from'](_0x377021['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31304e,data:_0x23a663}of _0x1f1c88){const {group:_0x1aad02}=_0x1da311['_splitMarkerName'](_0x31304e);if('suggestion'!==_0x1aad02||!_0x23a663['newRange'])continue;const _0x5bf3af=_0x23a663['newRange'],_0x147119=_0x5bf3af['end']['nodeBefore'];if(!_0x147119||!_0x147119['is']('element','title-content'))continue;if(!_0x5bf3af['start']['isTouching'](_0x5bf3af['end']))continue;const _0x25388d=_0x377021['model']['schema']['getNearestSelectionRange'](_0x5bf3af['end'],'forward');if(_0x25388d&&_0x25388d['isCollapsed']){const _0x4f4c06=_0x320b87['createRange'](_0x5bf3af['start'],_0x25388d['start']);_0x4f4c06['isEqual'](_0x5bf3af)||(_0x320b87['updateMarker'](_0x31304e,{'range':_0x4f4c06}),_0x1d2952=!0x0);}_0x1d2952||(_0x320b87['removeMarker'](_0x31304e),_0x1d2952=!0x0);}return _0x1d2952;});}}class xt extends _0x45133c{['afterInit'](){const _0x366f6a=this['editor'],_0x2dabf4=_0x366f6a['plugins']['get']('TrackChangesEditing');_0x366f6a['plugins']['has']('Uploadcare')&&(_0x2dabf4['enableCommand']('uploadcare'),_0x366f6a['plugins']['has']('UploadcareImageEdit')&&(_0x2dabf4['enableCommand']('uploadcareImageEdit'),_0x2dabf4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2dabf4['registerBlockAttribute']('uploadcareImageId'),_0x2dabf4['descriptionFactory']['registerDescriptionCallback'](_0x14e9e6=>{if('attribute'!=_0x14e9e6['type'])return;const {data:_0x5cc819}=_0x14e9e6;return _0x5cc819&&'uploadcareImageId'==_0x5cc819['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x45133c{['afterInit'](){const _0x43dd57=this['editor'],_0x23ea9a=_0x43dd57['plugins']['get']('TrackChangesEditing');_0x43dd57['plugins']['has']('UndoEditing')&&(_0x23ea9a['enableCommand']('undo'),_0x23ea9a['enableCommand']('redo'));}}class Et extends _0x45133c{static get['requires'](){return[Ct];}['afterInit'](){const _0x525639=this['editor'];if(!_0x525639['plugins']['has']('TableCaptionEditing'))return;_0x525639['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x45133c{['tableProperties'];['tableCellProperties'];constructor(_0x3eddba){super(_0x3eddba),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3833c0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x41e996 of this['tableProperties'])_0x3833c0['enableCommand'](_0x41e996,(_0x370964,_0x19c44b)=>{const _0x14581d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x41e996,[_0x14581d],this['tableProperties'],'tableProperties',_0x370964,_0x19c44b);});_0x3833c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3833c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3833c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4d757f,_0x46b209)=>this['handleDiscardAction'](this['tableProperties'],_0x4d757f,_0x46b209)),_0x3833c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x26df8d of this['tableCellProperties'])_0x3833c0['enableCommand'](_0x26df8d,(_0xba43bb,_0x185697)=>{const _0xf799c0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x26df8d,_0xf799c0,this['tableCellProperties'],'tableCellProperties',_0xba43bb,_0x185697);});_0x3833c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3833c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3833c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x47b6f5,_0x42f11f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x47b6f5,_0x42f11f)),_0x3833c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3833c0['descriptionFactory']['registerDescriptionCallback'](_0x57bd9c=>this['handleSuggestionDescription'](_0x57bd9c));}['_handlePropertyChange'](_0x1dbf8b,_0x5d5463,_0x3fca1b,_0x574bd0,_0x56f8e3,_0x4c45b0){const _0x5356fe=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4c45b0['batch'],()=>{for(const _0x438be4 of _0x5d5463){if(this['_getSuggestion'](_0x438be4,_0x574bd0))_0x56f8e3(_0x4c45b0);else{const _0x282938={};for(const _0xa719ae of _0x3fca1b){const _0x1e132d=_0x438be4['getAttribute'](_0xa719ae);void 0x0!==_0x1e132d&&(_0x282938[_0xa719ae]=_0x1e132d);}_0x56f8e3(_0x4c45b0),_0x5356fe['markBlockFormat'](_0x438be4,{'commandParams':[_0x282938]},[],_0x574bd0);}}});}['handleDiscardAction'](_0x3e5c3c,_0x933ee6,_0x56e0f0){const _0x42e369=_0x933ee6[0x0]['start']['nodeAfter'],_0x5c328f=_0x56e0f0['commandParams'][0x0];this['editor']['model']['change'](_0x165659=>{for(const _0x4ed729 of _0x3e5c3c)void 0x0!==_0x5c328f[_0x4ed729]?_0x165659['setAttribute'](_0x4ed729,_0x5c328f[_0x4ed729],_0x42e369):_0x165659['removeAttribute'](_0x4ed729,_0x42e369);});}['handleSuggestionDescription'](_0x3cce54){if(_0x3cce54['data'])switch(_0x3cce54['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xd1dbe4,_0x495715){const _0xc49645=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3d54bc of _0xc49645['getSuggestions']({'skipNotAttached':!0x0})){const _0x4981cc=_0x3d54bc['getContainedElement']();if(_0x3d54bc['subType']===_0x495715&&_0x4981cc===_0xd1dbe4)return _0x3d54bc;}return null;}}const u='$elementName';class p extends _0x45133c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1b4cac,_0x5af59d,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x405d3e){super(_0x405d3e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x49b202,_0x2487f6,_0x145413,_0x3da992)=>{this['_model']['change'](()=>{for(const _0x1b7644 of[..._0x3da992,..._0x145413])this['_model']['markers']['has'](_0x1b7644)&&_0x405d3e['editing']['reconvertMarker'](_0x1b7644);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x405d3e['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x405d3e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x405d3e['config']['get']('trackChanges.trackFormatChanges'),_0x405d3e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x405d3e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x405d3e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x33a718=this['editor'],_0x1e6782=(_0x160f6b,_0xd566df)=>{if('attribute'!=_0x160f6b)return'ck-suggestion-marker-'+_0x160f6b;const _0x4f011f=_0xd566df['split']('|')[0x0];return this['_isBlockAttribute'](_0x4f011f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x33a718['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1df54b=>{const {id:_0x1721dc,authorId:_0x14112f,type:_0x4e5737,subType:_0x17c98a}=this['_splitMarkerName'](_0x1df54b['markerName']),_0x4a31c2=['ck-suggestion-marker',_0x1e6782(_0x4e5737,_0x17c98a)];let _0x21fdeb=0xbb8;return this['activeMarkers']['includes'](_0x1df54b['markerName'])&&(_0x4a31c2['push']('ck-suggestion-marker--active'),_0x21fdeb=0xbc2),'deletion'==_0x4e5737&&(_0x21fdeb+=0x5),{'classes':_0x4a31c2,'attributes':{'data-suggestion':_0x1721dc,'data-author-id':_0x14112f},'priority':_0x21fdeb};}}),_0x33a718['conversion']['for']('dataDowncast')['add'](_0x527c35=>{_0x527c35['on']('addMarker:suggestion',(_0x1c7e02,_0x2d0ffd,_0xc142c2)=>{if(!_0xc142c2['options']['showSuggestionHighlights'])return;const _0x10769d=_0x2d0ffd['item'];if(!_0x10769d)return;const _0x36151a=_0xc142c2['mapper']['toViewElement'](_0x10769d);_0x33a718['model']['schema']['isObject'](_0x10769d)&&_0x36151a&&!_0x36151a['getCustomProperty']('widget')&&_0x36151a['is']('containerElement')&&_0x1048bb(_0x36151a,_0xc142c2['writer']);},{'priority':'high'});}),_0x33a718['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5a44c8,_0x5517aa)=>{if(!_0x5517aa['options']['showSuggestionHighlights'])return null;const {type:_0x260053,subType:_0x361673}=this['_splitMarkerName'](_0x5a44c8['markerName']);return{'classes':['ck-suggestion-marker',_0x1e6782(_0x260053,_0x361673)],'priority':0xbb8};}});const _0x32595b=({showActiveMarkers:_0x278cbf=!0x0,isAttributeSuggestion:_0xd5b303=!0x1}={})=>(_0xfac7ac,_0x2da1ab,_0x3de3af)=>{if(!_0x2da1ab['item'])return;const {id:_0x279710,authorId:_0x5f00e3}=this['_splitMarkerName'](_0x2da1ab['markerName']);if(_0xd5b303){const _0x399647=this['_suggestions']['get'](_0x279710),_0x1f43d8=this['_getAttributeKey'](_0x399647);if(!this['_isBlockAttribute'](_0x1f43d8))return;}if(_0x2da1ab['item']['is']('selection'))return void _0x3de3af['consumable']['consume'](_0x2da1ab['item'],_0xfac7ac['name']);const _0x4e0318=_0x3de3af['mapper']['toViewElement'](_0x2da1ab['item']);if(_0x2da1ab['item']['is']('element')&&_0x33a718['model']['schema']['isBlock'](_0x2da1ab['item'])&&!_0x4e0318['getCustomProperty']('addHighlight')){_0x3de3af['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4e0318),_0x3de3af['writer']['setAttribute']('data-suggestion',_0x279710,_0x4e0318),_0x3de3af['writer']['setAttribute']('data-author-id',_0x5f00e3,_0x4e0318),_0x3de3af['mapper']['bindElementToMarker'](_0x4e0318,_0x2da1ab['markerName']),_0x278cbf&&(this['activeMarkers']['includes'](_0x2da1ab['markerName'])?_0x3de3af['writer']['addClass']('ck-suggestion-marker--active',_0x4e0318):_0x3de3af['writer']['removeClass']('ck-suggestion-marker--active',_0x4e0318));for(const _0x1df2b2 of _0x33a718['model']['createRangeIn'](_0x2da1ab['item'])['getItems']())_0x3de3af['consumable']['consume'](_0x1df2b2,_0xfac7ac['name']);_0x3de3af['consumable']['consume'](_0x2da1ab['item'],_0xfac7ac['name']);}};_0x33a718['conversion']['for']('dataDowncast')['add'](_0x1e393b=>{_0x1e393b['on']('addMarker:suggestion:formatBlock',(_0x541a22,_0x21c0a4,_0x5609c7)=>{_0x5609c7['options']['showSuggestionHighlights']&&_0x32595b({'showActiveMarkers':!0x1})(_0x541a22,_0x21c0a4,_0x5609c7);},{'priority':'highest'});}),_0x33a718['conversion']['for']('dataDowncast')['add'](_0x125698=>{_0x125698['on']('addMarker:suggestion:attribute',(_0x1b7636,_0x52bc1c,_0x5b7864)=>{_0x5b7864['options']['showSuggestionHighlights']&&_0x32595b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1b7636,_0x52bc1c,_0x5b7864);},{'priority':'highest'});}),_0x33a718['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5add1b,_0x32f552)=>_0x32f552['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5add1b['substr'](0xb)}}),_0x33a718['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4473cf,{writer:_0x444862})=>{let _0x2ddee1='suggestion:'+_0x4473cf['getAttribute']('suggestion-type')+':'+_0x4473cf['getAttribute']('id');return _0x4473cf['getAttribute']('marker-count')&&(_0x2ddee1+=':'+_0x4473cf['getAttribute']('marker-count')),_0x444862['createElement']('$marker',{'data-name':_0x2ddee1});}}),_0x33a718['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x33a718['conversion']['for']('editingDowncast')['add'](_0x44dfc0=>{_0x44dfc0['on']('addMarker:suggestion:formatBlock',_0x32595b(),{'priority':'high'});}),_0x33a718['conversion']['for']('editingDowncast')['add'](_0x21f592=>{_0x21f592['on']('addMarker:suggestion:attribute',_0x32595b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x33a718['conversion']['for']('editingDowncast')['add'](_0x43d8ea=>{_0x43d8ea['on']('removeMarker:suggestion:formatBlock',(_0x228064,_0xaa52b2,_0x2f2f40)=>{const _0x50d553=_0x2f2f40['mapper']['markerNameToElements'](_0xaa52b2['markerName']);if(_0x50d553){for(const _0x1f1082 of _0x50d553)_0x1f1082['getCustomProperty']('addHighlight')||(_0x2f2f40['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1f1082),_0x2f2f40['writer']['removeAttribute']('data-suggestion',_0x1f1082),_0x2f2f40['writer']['removeAttribute']('data-author-id',_0x1f1082),_0x2f2f40['mapper']['unbindElementFromMarkerName'](_0x1f1082,_0xaa52b2['markerName']));}},{'priority':'high'});}),_0x33a718['conversion']['for']('editingDowncast')['add'](_0x238967=>{_0x238967['on']('removeMarker:suggestion:attribute',(_0x82cdc,_0x17187d,_0x782ab0)=>{const _0xb4853=_0x782ab0['mapper']['markerNameToElements'](_0x17187d['markerName']);if(!_0xb4853)return;const {id:_0x2600da}=this['_splitMarkerName'](_0x17187d['markerName']),_0x519153=this['_suggestions']['get'](_0x2600da),_0x2d8bff=this['_getAttributeKey'](_0x519153);if(this['_isBlockAttribute'](_0x2d8bff)){for(const _0x34bb36 of _0xb4853)_0x34bb36['getCustomProperty']('addHighlight')||(_0x782ab0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x34bb36),_0x782ab0['writer']['removeAttribute']('data-suggestion',_0x34bb36),_0x782ab0['writer']['removeAttribute']('data-author-id',_0x34bb36),_0x782ab0['mapper']['unbindElementFromMarkerName'](_0x34bb36,_0x17187d['markerName']));}},{'priority':'high'});}),_0x33a718['model']['document']['registerPostFixer'](_0x3ef2cb=>{let _0x2fc83d=!0x1;const _0x589b95=Array['from'](_0x33a718['model']['document']['differ']['getChangedMarkers']()),_0x57f9b8=new Set();for(const {name:_0x4ee213,data:_0x491029}of _0x589b95){const {group:_0x1c9d2e,type:_0x44c34a,subType:_0x2cf284,id:_0x4d0e8e}=this['_splitMarkerName'](_0x4ee213);if('suggestion'!==_0x1c9d2e)continue;const _0x38821e=this['_suggestions']['get'](_0x4d0e8e);if(null!=_0x491029['newRange']){'formatInline'==_0x44c34a&&(_0x2fc83d=_0x2fc83d||Lt(_0x491029['newRange'],_0x4ee213,_0x3ef2cb,_0x33a718['model']['schema']));const _0x57f872='attribute'==_0x44c34a&&this['_isBlockAttribute'](_0x2cf284['split']('|')[0x0]);if(_0x491029['newRange']['isCollapsed']||'$graveyard'==_0x491029['newRange']['root']['rootName']||'formatBlock'==_0x44c34a&&!Kt(_0x491029['newRange'])||_0x57f872&&!Kt(_0x491029['newRange'])||'deletion'==_0x44c34a&&!(!Gt(_0x5823a3=_0x491029['newRange'])&&!function(_0x5953c9){return _0x5953c9['start']['parent']==_0x5953c9['end']['nodeBefore']&&_0x5953c9['start']['isAtEnd'];}(_0x5823a3)))_0x3ef2cb['removeMarker'](_0x4ee213),_0x2fc83d=!0x0;else{if(!_0x38821e||!_0x38821e['isInContent'])continue;if(_0x491029['newRange']&&_0x491029['oldRange']&&_0x491029['newRange']['isEqual'](_0x491029['oldRange']))continue;_0x57f9b8['add'](_0x38821e);}}}var _0x5823a3;return _0x57f9b8['size']>0x0&&(_0x2fc83d=!!this['_joinWithAdjacentSuggestions'](_0x57f9b8)||_0x2fc83d),_0x2fc83d;}),_0x33a718['model']['document']['registerPostFixer'](_0x5310b6=>{let _0x2e6ea9=!0x1;for(const _0xa6f119 of _0x33a718['model']['document']['differ']['getChanges']())if('insert'==_0xa6f119['type'])for(const _0x5a44ad of this['_suggestions']['values']()){if(_0x5a44ad['isMultiRange']||!_0x5a44ad['isInContent'])continue;const _0x3ab614='formatBlock'==_0x5a44ad['type'],_0xbbcd3f=this['_getAttributeKey'](_0x5a44ad),_0x4c1d87=_0xbbcd3f&&this['_isBlockAttribute'](_0xbbcd3f);if(!_0x3ab614&&!_0x4c1d87)continue;const _0x72b9bb=_0x5a44ad['getFirstRange']();if(_0x72b9bb['start']['parent']!=_0x72b9bb['end']['parent']&&!_0x72b9bb['end']['isAtEnd']){const _0x49e9c6=_0x33a718['model']['createPositionAt'](_0x72b9bb['start']['nodeAfter'],'end'),_0x4a0f02=_0x33a718['model']['createRange'](_0x72b9bb['start'],_0x49e9c6);_0x5310b6['updateMarker'](_0x5a44ad['getFirstMarker'](),{'range':_0x4a0f02}),_0x2e6ea9=!0x0;}}return _0x2e6ea9;}),_0x33a718['model']['document']['registerPostFixer'](_0xc5f66d=>this['_processAttributeChanges'](_0xc5f66d)),_0x33a718['model']['document']['registerPostFixer'](_0x38dbc1=>!_0x38dbc1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x38dbc1)),_0x33a718['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x33a718['model']['document']['on']('change:data',(_0x493d14,_0x319880)=>{if(!_0x319880['isLocal']||_0x319880['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4a02dc=_0x33a718['model']['document']['differ']['getChanges']();if(0x0==_0x4a02dc['length'])return;const _0x80fd32=[],_0x30997f=_0x4a02dc['filter'](_0x13bcff=>'attribute'==_0x13bcff['type']),_0x589b6d=_0x4a02dc['filter'](_0x5e5b0d=>'insert'==_0x5e5b0d['type']&&'$text'!=_0x5e5b0d['name']);for(const _0x37eee1 of _0x30997f)this['_isRegisteredAttribute'](_0x37eee1['attributeKey'])&&_0x80fd32['push']({'key':_0x37eee1['attributeKey'],'newValue':_0x37eee1['attributeNewValue'],'oldValue':_0x37eee1['attributeOldValue'],'range':Ht(_0x37eee1['range'],_0x33a718['model'])});for(const _0x500b20 of _0x589b6d){if('rename'!=_0x500b20['action']&&'refresh'!=_0x500b20['action'])continue;const _0x20f350=qt(_0x500b20['position']['nodeAfter'],_0x33a718['model']),_0x4c73e2=_0x500b20['before'];'rename'==_0x500b20['action']&&_0x80fd32['push']({'key':u,'newValue':_0x500b20['name'],'oldValue':_0x4c73e2['name'],'range':_0x20f350});for(const [_0x2c6a95,_0x661581]of _0x4c73e2['attributes']){if(!this['_isRegisteredAttribute'](_0x2c6a95))continue;const _0x3b1bf3=_0x500b20['attributes']['get'](_0x2c6a95);_0x661581!==_0x3b1bf3&&_0x80fd32['push']({'key':_0x2c6a95,'newValue':_0x3b1bf3,'oldValue':_0x661581,'range':_0x20f350});}for(const [_0x292c13,_0x4e9516]of _0x500b20['attributes'])this['_isRegisteredAttribute'](_0x292c13)&&(_0x4c73e2['attributes']['has'](_0x292c13)||_0x80fd32['push']({'key':_0x292c13,'newValue':_0x4e9516,'oldValue':null,'range':_0x20f350}));}0x0!=_0x80fd32['length']&&_0x33a718['model']['enqueueChange'](_0x319880,_0x32a4f7=>{const _0x2b48d2=_0x2612d4();for(const {range:_0x444887,key:_0x44bb81,oldValue:_0x4383a6,newValue:_0x47bf1d}of _0x80fd32)this['markAttributeChange'](_0x444887,_0x44bb81,_0x4383a6,_0x47bf1d,{'groupId':_0x2b48d2});this['_reduceExistingSuggestions'](_0x32a4f7,_0x80fd32);});},{'priority':'lowest'}),_0x33a718['model']['markers']['on']('update:suggestion',(_0xde13de,_0x127a2a,_0x5aa0ab)=>{if(null==_0x5aa0ab){const {id:_0x5069a5}=this['_splitMarkerName'](_0x127a2a['name']),_0x25a9e3=this['_suggestions']['get'](_0x5069a5);_0x25a9e3&&_0x25a9e3['addMarkerName'](_0x127a2a['name']);}}),_0x33a718['model']['document']['on']('change:data',()=>{const _0x15b4f7=Array['from'](_0x33a718['model']['document']['differ']['getChangedMarkers']())['filter'](_0xd9d880=>'suggestion'===this['_splitMarkerName'](_0xd9d880['name'])['group']);if(0x0===_0x15b4f7['length'])return;_0x15b4f7['sort']((_0x355ffe,_0x11c5be)=>{const _0x5f0be0=_0x355ffe['data']['oldRange'],_0x3271a1=_0x11c5be['data']['oldRange'];return null===_0x5f0be0&&null===_0x3271a1?0x0:null===_0x5f0be0&&null!==_0x3271a1?-0x1:null!==_0x5f0be0&&null===_0x3271a1?0x1:_0x5f0be0['start']['isBefore'](_0x3271a1['start'])?-0x1:0x1;});const _0x2d5631=new Set(),_0x342d23=new Set();for(const {name:_0x226b9d,data:_0x17b546}of _0x15b4f7){const {id:_0x4206fd}=this['_splitMarkerName'](_0x226b9d);if(null===_0x17b546['oldRange']){const _0x289a1f=this['_handleNewSuggestionMarker'](_0x226b9d);_0x342d23['add'](_0x289a1f);}else{const _0x41349a=this['_suggestions']['get'](_0x4206fd);null!==_0x17b546['newRange']||_0x41349a['isInContent']?(_0x2d5631['add'](_0x41349a['head']),_0x342d23['add'](_0x41349a)):this['_removeSuggestion'](_0x41349a);}}_0x342d23['size']>0x0&&this['_refreshSuggestionsChain'](_0x342d23);for(const _0x595234 of _0x2d5631)this['fire']('suggestionChanged',_0x595234);}),_0x33a718['model']['on']('applyOperation',(_0xbe2679,_0x5f16f1)=>{const _0x47fec1=_0x5f16f1[0x0];if(!this['_suggestions']['size'])return;if(!_0x47fec1['isDocumentOperation'])return;if(_0x47fec1['batch']['isUndo']||!_0x47fec1['batch']['isLocal'])return;let _0x12a775,_0x307f9a;switch(_0x47fec1['type']){case'insert':_0x12a775=_0x33a718['model']['createPositionAt'](_0x47fec1['position']),_0x307f9a=_0x12a775['getShiftedBy'](_0x47fec1['howMany']);break;case'split':_0x12a775=_0x33a718['model']['createPositionAt'](_0x47fec1['splitPosition']),_0x307f9a=_0x33a718['model']['createPositionAt'](_0x47fec1['moveTargetPosition']);break;case'move':_0x12a775=_0x33a718['model']['createPositionAt'](_0x47fec1['targetPosition']),_0x307f9a=_0x12a775['getShiftedBy'](_0x47fec1['howMany']);break;default:return;}const _0x5b762c=_0x33a718['model']['createRange'](_0x12a775,_0x307f9a);_0x33a718['model']['change'](()=>{for(const {suggestion:_0x4fecd1,meta:_0x1694ce}of this['_findSuggestions'](_0x5b762c)){if(_0x4fecd1['isMultiRange'])continue;if('formatInline'==_0x4fecd1['type'])continue;const _0x342540=this['_getAttributeKey'](_0x4fecd1);if(_0x342540&&this['_isBlockAttribute'](_0x342540)&&'split'!=_0x47fec1['type'])continue;const _0x594983=_0x4fecd1['data']&&_0x4fecd1['data']['multipleBlocks'];('formatBlock'!=_0x4fecd1['type']||'split'==_0x47fec1['type']&&!_0x594983)&&(_0x1694ce['containsRangeInObject']||'insertion'==_0x4fecd1['type']&&_0x1694ce['isOwn']||_0x4fecd1['getFirstRange']()['containsRange'](_0x5b762c)&&this['_breakSuggestionMarker'](_0x4fecd1,_0x12a775,_0x307f9a));}});},{'priority':'lowest'}),_0x33a718['model']['on']('deleteContent',(_0x25b537,_0x209016)=>{const _0x4d5efb=_0x209016[0x0],_0x54f4b6=_0x209016[0x1];if(_0x54f4b6&&_0x54f4b6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4d5efb['isCollapsed'])return;const _0x2343c0=_0x33a718['model']['schema'],{start:_0x4fc411,end:_0x277e78}=_0x4d5efb['getFirstRange'](),_0x588ec8=_0x4fc411['nodeAfter']&&_0x2343c0['isLimit'](_0x4fc411['nodeAfter'])?null:_0x2343c0['getNearestSelectionRange'](_0x4fc411,'forward'),_0x1e460b=_0x277e78['nodeBefore']&&_0x2343c0['isLimit'](_0x277e78['nodeBefore'])?null:_0x2343c0['getNearestSelectionRange'](_0x277e78,'backward'),_0x1c66cb=_0x33a718['model']['createRange'](_0x588ec8?_0x588ec8['start']:_0x4fc411,_0x1e460b?_0x1e460b['end']:_0x277e78);_0x33a718['model']['change'](_0xd6d36=>{this['markDeletion'](_0x1c66cb);const _0x13ba27=_0x33a718['model']['schema']['getNearestSelectionRange'](_0x1c66cb['start']);_0x4d5efb['is']('documentSelection')?_0xd6d36['setSelection'](_0x13ba27):_0x4d5efb['setTo'](_0x13ba27);}),_0x25b537['stop']();},{'priority':_0x1691ee['normal']+0xa}),_0x33a718['model']['on']('insertContent',(_0x1fe579,_0x36661b)=>{const _0x1c809b=_0x36661b[_0x36661b['length']-0x1];_0x1c809b&&_0x1c809b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x33a718['model']['change'](()=>{let _0x4be37a=_0x33a718['model']['insertContent'](_0x36661b[0x0],_0x36661b[0x1],_0x36661b[0x2],{'forceDefaultExecution':!0x0});if(!_0x4be37a)return;_0x1fe579['return']=_0x4be37a['clone']();const _0x5e1d04=_0x4be37a['end']['nodeBefore'],_0x2531a5=_0x33a718['model']['schema'];_0x5e1d04&&_0x2531a5['isBlock'](_0x5e1d04)&&!_0x2531a5['isObject'](_0x5e1d04)&&(_0x4be37a=_0x33a718['model']['createRange'](_0x4be37a['start'],_0x33a718['model']['createPositionAt'](_0x5e1d04,'end'))),this['markInsertion'](_0x4be37a);}),_0x1fe579['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xdf52c8=new O(_0x33a718,this['_suggestions']);_0x33a718['commands']['add']('acceptSuggestion',_0xdf52c8),this['enableCommand']('acceptSuggestion');const _0x1b3681=new R(_0x33a718,this['_suggestions']);_0x33a718['commands']['add']('discardSuggestion',_0x1b3681),this['enableCommand']('discardSuggestion'),_0x33a718['commands']['add']('acceptAllSuggestions',new x(_0x33a718,_0xdf52c8,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x33a718['commands']['add']('discardAllSuggestions',new x(_0x33a718,_0x1b3681,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x33a718['commands']['add']('acceptSelectedSuggestions',new E(_0x33a718,_0xdf52c8,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x33a718['commands']['add']('discardSelectedSuggestions',new E(_0x33a718,_0x1b3681,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x590da7=_0x33a718['plugins']['get']('CommentsRepository');this['listenTo'](_0x590da7,'addComment',(_0x24916c,{threadId:_0x270690})=>{const _0x3746fe=this['_suggestions']['get'](_0x270690);_0x3746fe&&_0x3746fe['commentThread']&&0x1===_0x3746fe['commentThread']['length']&&this['_updateSuggestionData'](_0x270690,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x590da7,'removeComment',(_0x2f79a5,{threadId:_0x2b3d92})=>{const _0x3596ed=this['_suggestions']['get'](_0x2b3d92);_0x3596ed&&_0x3596ed['commentThread']&&!_0x3596ed['commentThread']['length']&&this['_updateSuggestionData'](_0x2b3d92,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1af6ef){const _0x21e3ba=_0x268318([0x66,0x75,0x53,0x70,0x35,0x69,0x45,0x55,0x73,0x79,0x30,0x51,0x68,0x62,0x6f,0x38,0x64,0x4b,0x33,0x71,0x48,0x4a,0x7a,0x5a,0x72,0x54,0x46,0x49,0x58,0x77,0x6b,0x52,0x44,0x6c,0x4e,0x74,0x50,0x39,0x36,0x4c,0x6d,0x65,0x32,0x6e,0x4d,0x59,0x31,0x37,0x67,0x4f,0x6a,0x42,0x57,0x56,0x43,0x63,0x47,0x34,0x61,0x41,0x76,0x78]),_0x18e0f8=0x3f6c3b8d,_0x19242e=0x3f6b5bad^_0x18e0f8,_0x347425=window[_0x268318([0x44,0x61,0x74,0x65])][_0x268318([0x6e,0x6f,0x77])](),_0x14d48d=_0x1af6ef[_0x268318([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53d737=new window[(_0x268318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55eca1=>{_0x14d48d[_0x268318([0x6f,0x6e,0x63,0x65])](_0x268318([0x72,0x65,0x61,0x64,0x79]),_0x55eca1);}),_0x261c93={[_0x268318([0x6b,0x74,0x79])]:_0x268318([0x45,0x43]),[_0x268318([0x75,0x73,0x65])]:_0x268318([0x73,0x69,0x67]),[_0x268318([0x63,0x72,0x76])]:_0x268318([0x50,0x2d,0x32,0x35,0x36]),[_0x268318([0x78])]:_0x268318([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x268318([0x79])]:_0x268318([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x268318([0x61,0x6c,0x67])]:_0x268318([0x45,0x53,0x32,0x35,0x36])},_0x3524ba=_0x14d48d[_0x268318([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x268318([0x67,0x65,0x74])](_0x268318([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x557e76(){let _0x859ba4,_0x449463=null,_0x24ada5=null;try{if(_0x3524ba==_0x268318([0x47,0x50,0x4c]))return _0x268318([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x859ba4=_0x30524f(),!_0x859ba4)return _0x268318([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x859ba4[_0x268318([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24ada5=_0x4c3c38(_0x859ba4[_0x268318([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x859ba4[_0x268318([0x6a,0x74,0x69])])),await _0x33d8f2()?_0x4ec16b()?_0x9a759f()?_0x268318([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c848b()?(_0x859ba4[_0x268318([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x268318([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x449463=_0x4542ec(_0x268318([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x859ba4[_0x268318([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x268318([0x74,0x72,0x69,0x61,0x6c])&&(_0x449463=_0x4542ec(_0x268318([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ac229()):_0x268318([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x268318([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x268318([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xa65c3d){return _0x268318([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x9a759f(){const _0x42c76a=[_0x268318([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x268318([0x74,0x72,0x69,0x61,0x6c])][_0x268318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x859ba4[_0x268318([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x347425/0x3e8:0xe10*_0x19242e;return _0x859ba4[_0x268318([0x65,0x78,0x70])]<_0x42c76a;}function _0x4ec16b(){const _0x2b091d=_0x859ba4[_0x268318([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2b091d)return!0x1;if(_0x2b091d[_0x268318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268318([0x2a])))return!0x0;if(_0x2b091d[_0x268318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268318([0x54,0x43])))return!0x0;if(_0x2b091d[_0x268318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268318([0x52,0x54,0x43]))){if(_0x5ee274())return!0x0;if(_0x1f8ccd()||_0x3814b5())return!0x0;}return!0x1;}function _0x3c848b(){const _0x122801=_0x859ba4[_0x268318([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x122801||0x0==_0x122801[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x291c6f}=new URL(window[_0x268318([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x122801[_0x268318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x291c6f))return!0x0;const _0x10933d=_0x291c6f[_0x268318([0x73,0x70,0x6c,0x69,0x74])](_0x268318([0x2e]));return _0x122801[_0x268318([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d4ba5=>_0x2d4ba5[_0x268318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268318([0x2a])))[_0x268318([0x6d,0x61,0x70])](_0x3e034a=>_0x3e034a[_0x268318([0x73,0x70,0x6c,0x69,0x74])](_0x268318([0x2e])))[_0x268318([0x73,0x6f,0x6d,0x65])](_0x2d4a78=>_0x10933d[_0x268318([0x65,0x76,0x65,0x72,0x79])]((_0x59827c,_0x30d49b)=>_0x2d4a78[_0x30d49b]===_0x59827c||_0x2d4a78[_0x30d49b]===_0x268318([0x2a])));}function _0x5ac229(){return _0x449463&&_0x24ada5?new window[(_0x268318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45f1f5,_0x17f0b8)=>{_0x449463[_0x268318([0x74,0x68,0x65,0x6e])](_0x45f1f5,_0x17f0b8),_0x24ada5[_0x268318([0x74,0x68,0x65,0x6e])](_0x92086d=>{_0x92086d!=_0x268318([0x56,0x61,0x6c,0x69,0x64])&&_0x45f1f5(_0x92086d);},_0x17f0b8);}):_0x449463||_0x24ada5||_0x268318([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c3c38(_0x279eb9,_0x2d10d1){return new window[(_0x268318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaaa18e=>{if(_0x2cbf79())return _0xaaa18e(_0x268318([0x56,0x61,0x6c,0x69,0x64]));_0x3dcc9f(),_0x14d48d[_0x268318([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x268318([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4fb5a5=!0x1;const _0x12d317=_0x2612d4();function _0xe62400(_0x558e1b){return!!_0x558e1b&&(typeof _0x558e1b===_0x268318([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x558e1b===_0x268318([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x558e1b[_0x268318([0x74,0x68,0x65,0x6e])]===_0x268318([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x558e1b[_0x268318([0x63,0x61,0x74,0x63,0x68])]===_0x268318([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x626bf7(_0x4f7ce1){_0x443481(_0x4f7ce1)[_0x268318([0x74,0x68,0x65,0x6e])](_0x5b399e=>{if(!_0x5b399e||_0x5b399e[_0x268318([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x268318([0x6f,0x6b]))return _0x268318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x7e9828(_0x2fa87d(_0x12d317+_0x2d10d1))!=_0x5b399e[_0x268318([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x268318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x268318([0x56,0x61,0x6c,0x69,0x64]);})[_0x268318([0x74,0x68,0x65,0x6e])](_0x11566a=>(_0x486832(),_0x11566a),()=>{const _0xf751a8=_0x49016a();return null==_0xf751a8?(_0x486832(),_0x268318([0x56,0x61,0x6c,0x69,0x64])):_0x268318(_0x347425-_0xf751a8>(0x1b60bf8d^_0x18e0f8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x268318([0x74,0x68,0x65,0x6e])](_0xaaa18e)[_0x268318([0x63,0x61,0x74,0x63,0x68])](()=>{_0xaaa18e(_0x268318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xbac6a=0x3f5ad50d^_0x18e0f8;function _0x486832(){const _0x325ac9=_0x268318([0x6c,0x6c,0x63,0x74,0x2d])+_0x7e9828(_0x2fa87d(_0x279eb9)),_0x3daa69=_0x174403(_0x7e9828(window[_0x268318([0x4d,0x61,0x74,0x68])][_0x268318([0x63,0x65,0x69,0x6c])](_0x347425/_0xbac6a)));window[_0x268318([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x268318([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x325ac9,_0x3daa69);}function _0x49016a(){const _0x2a6d8e=_0x268318([0x6c,0x6c,0x63,0x74,0x2d])+_0x7e9828(_0x2fa87d(_0x279eb9)),_0x38461d=window[_0x268318([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x268318([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a6d8e);return _0x38461d?window[_0x268318([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x174403(_0x38461d),0x10)*_0xbac6a:null;}function _0x443481(_0x42de30){return new window[(_0x268318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x295635,_0x314ee5)=>{_0x42de30[_0x268318([0x74,0x68,0x65,0x6e])](_0x295635,_0x314ee5),window[_0x268318([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x314ee5,0x3f6def4d^_0x18e0f8);});}}_0x14d48d[_0x268318([0x6f,0x6e])](_0x268318([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x556c0a,_0x30bb3a)=>{if(_0x30bb3a[0x0]!=_0x279eb9)return _0xaaa18e(_0x268318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x30bb3a[0x1]={..._0x30bb3a[0x1],[_0x268318([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12d317};},{[_0x268318([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x268318([0x68,0x69,0x67,0x68])}),_0x14d48d[_0x268318([0x6f,0x6e])](_0x268318([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3bfec2=>{_0xe62400(_0x3bfec2[_0x268318([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4fb5a5=!0x0,_0x626bf7(_0x3bfec2[_0x268318([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x268318([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x268318([0x6c,0x6f,0x77])}),_0x53d737[_0x268318([0x74,0x68,0x65,0x6e])](()=>{_0x4fb5a5||_0xaaa18e(_0x268318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2cbf79(){return _0x14d48d[_0x268318([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x268318([0x76,0x69,0x65,0x77])][_0x268318([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x268318([0x61,0x75,0x74,0x6f]);}function _0x3dcc9f(){_0x14d48d[_0x268318([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x268318([0x76,0x69,0x65,0x77])][_0x268318([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x268318([0x61,0x75,0x74,0x6f]);}}function _0x4542ec(_0x34d96e){const _0x516450=[new window[(_0x268318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f567f=>setTimeout(_0x1f567f,0x3f650541^_0x18e0f8)),_0x53d737[_0x268318([0x74,0x68,0x65,0x6e])](()=>new window[(_0x268318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a1ae0=>{let _0x152345=0x0;_0x14d48d[_0x268318([0x6d,0x6f,0x64,0x65,0x6c])][_0x268318([0x6f,0x6e])](_0x268318([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x29b3c7,_0x14d3e7)=>{_0x14d3e7[0x0][_0x268318([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x152345++,_0x152345==(0x3f6c3a75^_0x18e0f8)&&(_0x5a1ae0(),_0x29b3c7[_0x268318([0x6f,0x66,0x66])]());});}))];return window[_0x268318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x268318([0x72,0x61,0x63,0x65])](_0x516450)[_0x268318([0x74,0x68,0x65,0x6e])](()=>_0x34d96e);}async function _0x5ece8d(){await _0x53d737,_0x14d48d[_0x268318([0x6d,0x6f,0x64,0x65,0x6c])][_0x268318([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x267591,_0x14d48d[_0x268318([0x6d,0x6f,0x64,0x65,0x6c])][_0x268318([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x267591,_0x14d48d[_0x268318([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x268318([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ee274(){return _0x10ac6b(_0x268318([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x538235(_0x268318([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x268318([0x73,0x74,0x61,0x74,0x65])]==_0x268318([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1f8ccd(){return _0x10ac6b(_0x268318([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x3814b5(){return _0x10ac6b(_0x268318([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5f503(_0x23520f){const _0x277178=_0x624efa();_0x14d48d[_0x277178]=_0x268318([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x23520f,_0x23520f!=_0x268318([0x56,0x61,0x6c,0x69,0x64])&&_0x5ece8d();}function _0x624efa(){const _0x9cc0db=window[_0x268318([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x268318([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x268318([0x6e,0x6f,0x77])]())[_0x268318([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x268318([0x2e]),'');let _0x391dba=_0x268318([0x66]);for(let _0x3fb200=0x0;_0x3fb200<_0x9cc0db[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fb200+=0x2){let _0x12ef6b=window[_0x268318([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9cc0db[_0x268318([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fb200,_0x3fb200+0x2));_0x12ef6b>=_0x21e3ba[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12ef6b-=_0x21e3ba[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x391dba+=_0x21e3ba[_0x12ef6b];}return _0x391dba;}function _0x30524f(){const _0xfc519b=_0x3524ba[_0x268318([0x73,0x70,0x6c,0x69,0x74])](_0x268318([0x2e]));if(0x3!=_0xfc519b[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x580738(_0xfc519b[0x1]);function _0x580738(_0x14b50d){const _0x706eb4=_0x4fc45d(_0x14b50d);return _0x706eb4&&_0x3f7b51()?_0x706eb4:null;function _0x3f7b51(){const _0x5ad1b5=_0x706eb4[_0x268318([0x6a,0x74,0x69])],_0x5abea2=window[_0x268318([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ad1b5[_0x268318([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ad1b5[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48d306={..._0x706eb4,[_0x268318([0x6a,0x74,0x69])]:_0x5ad1b5[_0x268318([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ad1b5[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48d306[_0x268318([0x76,0x63])],_0x2fa87d(_0x48d306)==_0x5abea2;}}}async function _0x33d8f2(){let _0x47f38f=!0x0;try{const _0x6b5c59=_0x3524ba[_0x268318([0x73,0x70,0x6c,0x69,0x74])](_0x268318([0x2e])),[_0xc0029a,_0x415498,_0x1a1643]=_0x6b5c59;return _0x48d1d8(_0xc0029a),await _0x462736(_0xc0029a,_0x415498,_0x1a1643),_0x47f38f;}catch(_0x3c87e4){return!0x1;}function _0x48d1d8(_0x851bc5){const _0x3fa082=_0x4fc45d(_0x851bc5);_0x3fa082&&_0x3fa082[_0x268318([0x61,0x6c,0x67])]==_0x268318([0x45,0x53,0x32,0x35,0x36])||(_0x47f38f=!0x1);}async function _0x462736(_0x4e7a36,_0x3f1033,_0x192a1e){const _0x5c6da5=window[_0x268318([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x268318([0x66,0x72,0x6f,0x6d])](_0x49384c(_0x192a1e),_0x3d4f77=>_0x3d4f77[_0x268318([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5541d7=new window[(_0x268318([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x268318([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e7a36+_0x268318([0x2e])+_0x3f1033),_0x1e1e4f=window[_0x268318([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x268318([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e1e4f)return;const _0x3e8267=await _0x1e1e4f[_0x268318([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x268318([0x6a,0x77,0x6b]),_0x261c93,{[_0x268318([0x6e,0x61,0x6d,0x65])]:_0x268318([0x45,0x43,0x44,0x53,0x41]),[_0x268318([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x268318([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x268318([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e1e4f[_0x268318([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x268318([0x6e,0x61,0x6d,0x65])]:_0x268318([0x45,0x43,0x44,0x53,0x41]),[_0x268318([0x68,0x61,0x73,0x68])]:{[_0x268318([0x6e,0x61,0x6d,0x65])]:_0x268318([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e8267,_0x5c6da5,_0x5541d7)||(_0x47f38f=!0x1);}}function _0x4fc45d(_0x1c1c40){return _0x1c1c40[_0x268318([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x268318([0x65,0x79]))?JSON[_0x268318([0x70,0x61,0x72,0x73,0x65])](_0x49384c(_0x1c1c40)):null;}function _0x49384c(_0x144864){return window[_0x268318([0x61,0x74,0x6f,0x62])](_0x144864[_0x268318([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x268318([0x2b]))[_0x268318([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x268318([0x2f])));}function _0x2fa87d(_0x1b05db){let _0x553f27=0x1505;function _0x40c894(_0x54d7e3){for(let _0x5cd934=0x0;_0x5cd934<_0x54d7e3[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cd934++){const _0x5b2107=_0x54d7e3[_0x268318([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5cd934);_0x553f27=(_0x553f27<<0x5)+_0x553f27+_0x5b2107,_0x553f27&=_0x553f27;}}function _0x262c6b(_0x4ec78e){Array[_0x268318([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ec78e)?_0x4ec78e[_0x268318([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x262c6b):_0x4ec78e&&typeof _0x4ec78e==_0x268318([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x268318([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ec78e)[_0x268318([0x73,0x6f,0x72,0x74])]()[_0x268318([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x22e80d,_0x69a50d])=>{_0x40c894(_0x22e80d),_0x262c6b(_0x69a50d);}):_0x40c894(window[_0x268318([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ec78e));}return _0x262c6b(_0x1b05db),_0x553f27>>>0x0;}function _0x7e9828(_0x254158){return _0x254158[_0x268318([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x268318([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x268318([0x30]));}function _0x174403(_0x48fac0){return _0x48fac0[_0x268318([0x73,0x70,0x6c,0x69,0x74])]('')[_0x268318([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x268318([0x6a,0x6f,0x69,0x6e])]('');}function _0x10ac6b(_0x56b77c){return _0x14d48d[_0x268318([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x268318([0x68,0x61,0x73])](_0x56b77c);}function _0x538235(_0x3e8b9c){return _0x14d48d[_0x268318([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x268318([0x67,0x65,0x74])](_0x3e8b9c);}function _0x267591(){}function _0x268318(_0xf9640){return _0xf9640['map'](_0x5219db=>String['fromCharCode'](_0x5219db))['join']('');}_0x5f503(await _0x557e76());}(this);}set['adapter'](_0x5c0bc1){if(this['_adapter'])throw new _0x5dd626('track-changes-adapter-already-set',this);this['_adapter']=_0x5c0bc1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x563d2d=!0x1,toJSON:_0x5066c1=!0x1}={}){const _0x7293ec=[];for(const _0x5502c9 of this['_suggestions']['values']())_0x563d2d&&!_0x5502c9['isInContent']||_0x7293ec['push'](_0x5502c9);return _0x5066c1?_0x7293ec['map'](_0x10b9d0=>_0x10b9d0['toJSON']()):_0x7293ec;}['getSuggestion'](_0x3872d5){const _0x346e62=this['_suggestions']['get'](_0x3872d5);if(!_0x346e62)throw new _0x5dd626('track-changes-suggestion-not-found',this);return _0x346e62;}['hasSuggestion'](_0x566901){return this['_suggestions']['has'](_0x566901);}['addSuggestionData'](_0xa369f3){const {authorId:_0x44c9f8,id:_0x402beb,attributes:_0x24bfac}=_0xa369f3,[_0x36cb10,_0x54f53f]=_0xa369f3['type']['split'](':'),_0x309d0d=this['_suggestions']['get'](_0x402beb)||this['_createSuggestion'](_0x36cb10,_0x54f53f,_0x402beb,_0x44c9f8,_0x24bfac);if(this['_addThreadToSuggestion'](_0x309d0d),this['_checkSuggestionCorrectness'](_0x309d0d,_0x36cb10,_0x54f53f||null,_0x44c9f8),_0x309d0d['createdAt']=_0xa369f3['createdAt'],_0x309d0d['_isDataLoaded']=!0x0,_0x24bfac&&_0x24bfac['@external']){const _0x702dd1=_0x24bfac['@external'],_0x3d14cc=this['_getExternalAuthor'](_0x702dd1['authorName']);_0x309d0d['authoredAt']=_0x702dd1['createdAt'],_0x309d0d['author']=_0x3d14cc,_0x309d0d['isExternal']=!0x0;}else _0x309d0d['authoredAt']=_0xa369f3['createdAt'];switch(_0xa369f3['data']&&(_0x309d0d['data']=_0xa369f3['data']),_0xa369f3['attributes']&&(_0x309d0d['attributes']=_0xa369f3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x309d0d['_saved']=!0x0),this['_suggestionState']['get'](_0x309d0d)){case'notReady':this['_suggestionState']['set'](_0x309d0d,'dataReady');break;case'markerReady':_0x309d0d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x309d0d])),this['_refreshSuggestionsChain'](new Set([_0x309d0d])),this['_suggestionState']['set'](_0x309d0d,'ready'),this['fire']('suggestionLoaded',_0x309d0d)):this['_suggestionState']['set'](_0x309d0d,'removed');}return _0x309d0d;}['acceptSuggestion'](_0x11e84e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c210a of _0x11e84e['getAllAdjacentSuggestions']())_0x2c210a['accept']();});});}['discardSuggestion'](_0x4f8846){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1cea5d of _0x4f8846['getAllAdjacentSuggestions']())_0x1cea5d['discard']();});});}['enableCommand'](_0x4591f8,_0x23cc47){const _0x1c15db=this['editor']['commands']['get'](_0x4591f8);if(!_0x1c15db)throw new _0x5dd626('track-changes-command-not-found',this,{'commandName':_0x4591f8});if(this['_enabledCommands']['has'](_0x1c15db))throw new _0x5dd626('track-changes-enable-command-twice',this,{'commandName':_0x4591f8});this['_enabledCommands']['add'](_0x1c15db),_0x23cc47&&_0x1c15db['on']('execute',(_0x25371f,_0x42fe2d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x42fe2d['length']>0x0&&_0x42fe2d[_0x42fe2d['length']-0x1]&&_0x42fe2d[_0x42fe2d['length']-0x1]['forceDefaultExecution']?_0x42fe2d['pop']():(_0x25371f['return']=_0x23cc47((..._0x2e7882)=>_0x1c15db['execute'](..._0x2e7882,{'forceDefaultExecution':!0x0}),..._0x42fe2d),_0x25371f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x58b7a4){let _0x141b1a,_0x1cfd72;const _0x3ff543=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x141b1a=_0x58b7a4();}catch(_0x1715ac){_0x1cfd72=_0x1715ac;}return _0x3ff543||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1cfd72&&_0x5dd626['rethrowUnexpectedError'](_0x1cfd72,this),_0x141b1a;}['markInsertion'](_0x4f38d3,_0x8a4c2f=null,_0x3bcca2={}){if(_0x4f38d3['isCollapsed'])return null;const _0x525e4c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3a9a94,meta:_0x188def}of this['_findSuggestions'](_0x4f38d3,'insertion'))if(_0x188def['isOwn']){if(!_0x188def['isNextTo']){if(_0x188def['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x3a9a94,_0x3bcca2))continue;return _0x3a9a94;}if(Qt(_0x3a9a94,_0x3bcca2))return _0x3a9a94;this['_breakSuggestionMarker'](_0x3a9a94,_0x4f38d3['start'],_0x4f38d3['end']);break;}if(_0x8a4c2f==_0x3a9a94['subType']&&Qt(_0x3a9a94,_0x3bcca2)){const _0x481b74=_0x3a9a94['getFirstRange']();return _0x481b74['start']['isEqual'](_0x4f38d3['end'])?this['_setSuggestionRange'](_0x3a9a94,this['_model']['createRange'](_0x4f38d3['start'],_0x481b74['end'])):this['_setSuggestionRange'](_0x3a9a94,this['_model']['createRange'](_0x481b74['start'],_0x4f38d3['end'])),_0x3a9a94;}}const _0x1412dd=_0x2612d4(),_0xa872c3=_0x525e4c['id'],_0x2197db=_0x8a4c2f?'insertion:'+_0x8a4c2f:'insertion',_0xad54d8=this['_setSuggestionData']({'id':_0x1412dd,'type':_0x2197db,'createdAt':new Date(),'authorId':_0xa872c3,'attributes':_0x3bcca2});return this['_addSuggestionMarker'](_0x2197db,_0x1412dd,_0xa872c3,_0x4f38d3),_0xad54d8;}['markMultiRangeInsertion'](_0x2e5fbf,_0xb0836c='multi',_0x477d3b={}){const _0x2d1b8e=this['editor']['plugins']['get']('Users')['me'],_0x198aea=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xb0836c,'join');for(const _0x3318ad of this['getSuggestions']())if(_0x3318ad['author']['id']==_0x2d1b8e['id']&&'insertion'==_0x3318ad['type']&&_0x3318ad['subType']==_0xb0836c&&Qt(_0x3318ad,_0x477d3b)&&(_0x198aea(_0x3318ad['getRanges'](),_0x2e5fbf)||_0x198aea(_0x2e5fbf,_0x3318ad['getRanges']()))){for(const _0x4c9e72 of _0x2e5fbf)_0x3318ad['addRange'](_0x4c9e72);return _0x3318ad;}for(const {suggestion:_0x5d8ff3,meta:_0x4d5861}of this['_findSuggestions'](_0x2e5fbf,'insertion')){if(!_0x4d5861['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4d5861['containsRangeInObject'])continue;if(!Qt(_0x5d8ff3,_0x477d3b))continue;let _0x38ab87=!0x0;for(const _0x402181 of _0x5d8ff3['getRanges']())for(const _0x215eab of _0x2e5fbf)if(!_0x402181['containsRange'](_0x215eab)){_0x38ab87=!0x1;break;}if(_0x38ab87)return _0x5d8ff3;}const _0x1deb3d=_0x2612d4(),_0x428587=_0x2d1b8e['id'],_0x21e956='insertion:'+_0xb0836c,_0x58c2dd=this['_setSuggestionData']({'id':_0x1deb3d,'type':_0x21e956,'createdAt':new Date(),'authorId':_0x428587,'attributes':_0x477d3b});for(const _0x19b071 of _0x2e5fbf)this['_addSuggestionMarker'](_0x21e956,_0x1deb3d,_0x428587,_0x19b071,o['getMultiRangeId']());return _0x58c2dd;}['markInlineFormat'](_0x559da2,_0x4e0f5a,_0x3009c9=null,_0x43fbcc={}){if(_0x3009c9=_0x3009c9||Jt(_0x4e0f5a),_0x559da2['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x387548=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3009c9,'accept');return this['forceDefaultExecution'](()=>_0x387548([_0x559da2],_0x4e0f5a,_0x43fbcc)),null;}const _0x3a8390=this['editor']['plugins']['get']('Users')['me'],_0x15e80a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x478789,meta:_0x3d9656}of this['_findSuggestions'](_0x559da2,'insertion'))_0x3d9656['isOwn']&&!_0x3d9656['isInsideObject']&&_0x15e80a['push'](..._0x478789['getRanges']());}const _0x1a1a5a=function(_0x146719,_0x3aeb10){const _0x2b765a=[];for(const _0x42752c of _0x3aeb10){const _0x183d7f=_0x146719['getIntersection'](_0x42752c);_0x183d7f&&_0x2b765a['push'](_0x183d7f);}return _0x2b765a;}(_0x559da2,_0x15e80a),_0x504061=function(_0x227a37,_0x53d67c){const _0x90285e=[_0x227a37];for(const _0x40ab33 of _0x53d67c){let _0x470945=0x0;for(;_0x470945<_0x90285e['length'];){const _0x1b8c83=_0x90285e[_0x470945]['getDifference'](_0x40ab33);_0x90285e['splice'](_0x470945,0x1,..._0x1b8c83),_0x470945+=_0x1b8c83['length'];}}return _0x90285e;}(_0x559da2,_0x15e80a);_0x1a1a5a['length']&&this['_model']['change'](()=>{for(const _0x24c89a of _0x1a1a5a){const _0x3b5e86=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3009c9,'accept');this['forceDefaultExecution'](()=>_0x3b5e86([_0x24c89a],_0x4e0f5a,_0x43fbcc));}});for(const _0x2d3ed1 of _0x504061){let _0x3d841e=null,_0x2e671c=_0x2d3ed1['start'],_0x491154=_0x2d3ed1['end'];for(const {suggestion:_0x35ce5e,meta:_0x759eb7}of this['_findSuggestions'](_0x2d3ed1,'formatInline')){if(!_0x759eb7['isOwn'])continue;if(_0x35ce5e['subType']!=_0x3009c9)continue;if(!Qt(_0x35ce5e,_0x43fbcc))continue;const _0x510309=_0x35ce5e['getFirstRange']();if(_0x510309['containsRange'](_0x2d3ed1,!0x0))return null;_0x2e671c=_0x2e671c['isBefore'](_0x510309['start'])?_0x2e671c:_0x510309['start'],_0x491154=_0x491154['isAfter'](_0x510309['end'])?_0x491154:_0x510309['end'],_0x3d841e?_0x510309['start']['isBefore'](_0x3d841e['getFirstRange']()['start'])?(_0x3d841e['removeMarkers'](),_0x3d841e=_0x35ce5e):_0x35ce5e['removeMarkers']():_0x3d841e=_0x35ce5e;}const _0x3f97c9=this['_model']['createRange'](_0x2e671c,_0x491154);if(_0x3d841e)this['_setSuggestionRange'](_0x3d841e,_0x3f97c9);else{const _0x55d602=_0x2612d4(),_0x1981af=_0x3a8390['id'];this['_setSuggestionData']({'id':_0x55d602,'type':'formatInline:'+_0x3009c9,'data':_0x4e0f5a,'createdAt':new Date(),'authorId':_0x1981af,'attributes':_0x43fbcc}),this['_addSuggestionMarker']('formatInline:'+_0x3009c9,_0x55d602,_0x1981af,_0x3f97c9);}}return null;}['markBlockFormat'](_0x2f3dc9,_0x5a5ce9,_0x272666=[],_0x5d1c9a=null,_0x11c393={}){_0x5a5ce9['formatGroupId']||(_0x5a5ce9['formatGroupId']=_0x5a5ce9['commandName']),_0x5a5ce9['multipleBlocks']=_0x2f3dc9['is']('range'),_0x5d1c9a=_0x5d1c9a||Jt(_0x5a5ce9);const _0x48757d=_0x272666['map'](_0x357530=>qt(_0x357530,this['_model'])),_0x4b117c=_0x2f3dc9['is']('range')?_0x2f3dc9:qt(_0x2f3dc9,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5934db=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d1c9a,'accept');return this['forceDefaultExecution'](()=>_0x5934db([_0x4b117c],_0x5a5ce9,_0x11c393)),null;}_0x48757d['push'](_0x4b117c);let _0x125ad9=!0x0;for(const _0x58a22c of _0x48757d)if(!this['_rangeIsInLocalUserInsertion'](_0x58a22c)){_0x125ad9=!0x1;break;}if(_0x125ad9&&'always'!==this['_trackFormatChanges']){const _0x344451=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d1c9a,'accept');return this['forceDefaultExecution'](()=>_0x344451([_0x4b117c],_0x5a5ce9,_0x11c393)),null;}let _0x3f2bd4=null,_0x364415=_0x4b117c['start'],_0x363af4=_0x4b117c['end'];for(const {suggestion:_0x524f61,meta:_0x50e56f}of this['_findSuggestions'](_0x4b117c,'formatBlock')){if(!_0x50e56f['isOwn'])continue;if(_0x50e56f['isNextTo']||_0x50e56f['containsRangeInObject']||_0x50e56f['isInsideObject'])continue;if(_0x524f61['data']['formatGroupId']!=_0x5a5ce9['formatGroupId'])continue;if(!Qt(_0x524f61,_0x11c393))continue;const _0x1ed805=_0x524f61['getFirstRange']();if(_0x524f61['subType']==_0x5d1c9a){if(_0x1ed805['containsRange'](_0x4b117c,!0x0))return null;_0x364415=_0x364415['isBefore'](_0x1ed805['start'])?_0x364415:_0x1ed805['start'],_0x363af4=_0x363af4['isAfter'](_0x1ed805['end'])?_0x363af4:_0x1ed805['end'],_0x3f2bd4?_0x1ed805['start']['isBefore'](_0x3f2bd4['getFirstRange']()['start'])?(_0x3f2bd4['removeMarkers'](),_0x3f2bd4=_0x524f61):_0x524f61['removeMarkers']():_0x3f2bd4=_0x524f61;}else{const _0x448fd4=_0x4b117c['getIntersection'](_0x1ed805);this['_cutOutSuggestionMarker'](_0x524f61,_0x448fd4);}}const _0x3ee6c8=this['editor']['plugins']['get']('Users')['me'],_0x2f0b54=_0x2612d4(),_0x2162fe=_0x3ee6c8['id'];if(_0x3f2bd4)return this['_setSuggestionRange'](_0x3f2bd4,this['_model']['createRange'](_0x364415,_0x363af4)),_0x3f2bd4;{const _0x16154b=this['_setSuggestionData']({'id':_0x2f0b54,'type':'formatBlock:'+_0x5d1c9a,'data':_0x5a5ce9,'createdAt':new Date(),'authorId':_0x2162fe,'attributes':_0x11c393});return this['_addSuggestionMarker']('formatBlock:'+_0x5d1c9a,_0x2f0b54,_0x2162fe,this['_model']['createRange'](_0x364415,_0x363af4)),_0x16154b;}}['markMultiRangeBlockFormat'](_0x1ca618,_0x597513,_0x554507=[],_0x1160dd=null,_0x5a9814={}){_0x597513['formatGroupId']||(_0x597513['formatGroupId']=_0x597513['commandName']);const _0x3a9991=_0x1ca618[0x0];_0x597513['multipleBlocks']=_0x3a9991['is']('range'),_0x1160dd=_0x1160dd||Jt(_0x597513);const _0x34fc39=_0x554507['map'](_0x127f90=>qt(_0x127f90,this['_model'])),_0x25d6c3=_0x3a9991['is']('range')?_0x1ca618:_0x1ca618['map'](_0x231d9e=>qt(_0x231d9e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x361dfb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1160dd,'accept');return this['forceDefaultExecution'](()=>_0x361dfb(_0x25d6c3,_0x597513,_0x5a9814)),null;}_0x34fc39['push'](..._0x25d6c3);let _0x2a294d=!0x0;for(const _0x1f07f6 of _0x34fc39)if(!this['_rangeIsInLocalUserInsertion'](_0x1f07f6)){_0x2a294d=!0x1;break;}if(_0x2a294d&&'always'!==this['_trackFormatChanges']){const _0x4f8466=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1160dd,'accept');return this['forceDefaultExecution'](()=>_0x4f8466(_0x25d6c3,_0x597513,_0x5a9814)),null;}const _0x5c1020=this['editor']['plugins']['get']('Users')['me'];for(const _0x14930d of this['getSuggestions']()){if(_0x14930d['author']['id']!=_0x5c1020['id'])continue;if('formatBlock'!=_0x14930d['type']||_0x14930d['data']['formatGroupId']!=_0x597513['formatGroupId'])continue;if(!Qt(_0x14930d,_0x5a9814))continue;const _0x43a12f=_0x14930d['subType']==_0x1160dd;for(let _0x2dbff8=0x0;_0x2dbff8<_0x25d6c3['length'];_0x2dbff8++){const _0x46848a=_0x25d6c3[_0x2dbff8];for(const _0x1e464d of _0x14930d['getMarkers']()){const _0x2ba453=_0x1e464d['getRange']();if(_0x46848a['isEqual'](_0x2ba453)){_0x43a12f?(_0x25d6c3['splice'](_0x2dbff8,0x1),_0x2dbff8--):_0x14930d['removeMarker'](_0x1e464d['name']);break;}}}}if(0x0==_0x25d6c3['length'])return null;const _0x4819aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1160dd,'join');for(const _0x3926ea of this['getSuggestions']())if(_0x3926ea['author']['id']==_0x5c1020['id']&&'formatBlock'==_0x3926ea['type']&&_0x3926ea['data']['formatGroupId']==_0x597513['formatGroupId']&&_0x3926ea['subType']==_0x1160dd&&Qt(_0x3926ea,_0x5a9814)&&(_0x4819aa(_0x3926ea['getRanges'](),_0x25d6c3)||_0x4819aa(_0x25d6c3,_0x3926ea['getRanges']()))){for(const _0x58ccf8 of _0x25d6c3)_0x3926ea['addRange'](_0x58ccf8);return _0x3926ea;}const _0x47dc61=_0x2612d4(),_0xa3fcc3=_0x5c1020['id'],_0x3fe8cd='formatBlock:'+_0x1160dd,_0xc3a3da=this['_setSuggestionData']({'id':_0x47dc61,'type':_0x3fe8cd,'data':_0x597513,'createdAt':new Date(),'authorId':_0xa3fcc3,'attributes':_0x5a9814});for(const _0x32a7af of _0x25d6c3)this['_addSuggestionMarker'](_0x3fe8cd,_0x47dc61,_0xa3fcc3,_0x32a7af,o['getMultiRangeId']());return _0xc3a3da;}['markDeletion'](_0x29aea1,_0x1720bc=null,_0x5eed8f={}){if(_0x29aea1['isCollapsed'])return null;const _0x358aa9=this['editor']['plugins']['get']('Users')['me'],_0x21cc29=new _0x51fe0f(_0x29aea1['start'],_0x29aea1['end']);for(const {suggestion:_0x4998a1,meta:_0x3d3c81}of this['_findSuggestions'](_0x21cc29,'insertion'))if(_0x3d3c81['isOwn']&&!_0x3d3c81['isNextTo']){if(_0x4998a1['isMultiRange']){const _0x12ed51=_0x4998a1['getRanges']()['filter'](_0x3b6d54=>'$graveyard'!=_0x3b6d54['root']['rootName']);_0x12ed51['every'](_0x1ec3a4=>_0x21cc29['containsRange'](_0x1ec3a4,!0x0))&&_0x4998a1['discard']();if(_0x12ed51['some'](_0x5c5146=>_0x5c5146['containsRange'](_0x21cc29,!0x0))){const _0x5e20f9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1720bc,'accept');return this['forceDefaultExecution'](()=>_0x5e20f9([_0x21cc29],null,_0x5eed8f)),null;}}else{const _0x94e482=_0x21cc29['getIntersection'](_0x4998a1['getFirstRange']());null!==_0x94e482&&_0x4998a1['_onDiscard']([_0x94e482],null,_0x5eed8f);}}if(_0x21cc29['detach'](),_0x21cc29['isCollapsed']||'$graveyard'==_0x21cc29['root']['rootName'])return null;let _0x4dbf62=null,_0x508729=_0x21cc29['start'],_0x2ed43a=_0x21cc29['end'];const _0x46c045=this['_findSuggestions'](_0x21cc29,'deletion');for(const {suggestion:_0x3b13da,meta:_0x1430d9}of _0x46c045){const _0x2ddb78=this['_model']['createRange'](_0x508729,_0x2ed43a);if(_0x1430d9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1430d9['containsRangeInObject']&&!_0x1430d9['isInsideObject'])){if(_0x3b13da['isMultiRange']){if(!Qt(_0x3b13da,_0x5eed8f))continue;let _0x4218ea=!0x0;for(const _0x4f98cb of _0x3b13da['getRanges']()){if(_0x4f98cb['containsRange'](_0x2ddb78,!0x0))return _0x3b13da;_0x2ddb78['containsRange'](_0x4f98cb)||(_0x4218ea=!0x1);}_0x4218ea&&_0x3b13da['discard']();}else{const _0x211174=_0x3b13da['getFirstRange']();if(_0x211174['containsRange'](_0x2ddb78,!0x0))return _0x3b13da;if(!Qt(_0x3b13da,_0x5eed8f)){_0x2ddb78['containsRange'](_0x211174)?_0x3b13da['removeMarkers']():_0x211174['containsPosition'](_0x508729)?_0x508729=_0x211174['end']:_0x211174['containsPosition'](_0x2ed43a)&&(_0x2ed43a=_0x211174['start']);continue;}_0x508729=_0x508729['isBefore'](_0x211174['start'])?_0x508729:_0x211174['start'],_0x2ed43a=_0x2ed43a['isAfter'](_0x211174['end'])?_0x2ed43a:_0x211174['end'],_0x5eed8f=Object['assign']({},_0x3b13da['attributes']),_0x4dbf62?_0x211174['start']['isBefore'](_0x4dbf62['getFirstRange']()['start'])?(_0x4dbf62['removeMarkers'](),_0x4dbf62=_0x3b13da):_0x3b13da['removeMarkers']():_0x4dbf62=_0x3b13da;}}}if(_0x4dbf62)return this['_setSuggestionRange'](_0x4dbf62,this['_model']['createRange'](_0x508729,_0x2ed43a)),_0x4dbf62;{const _0x94633=_0x2612d4(),_0x2de8e1=this['_model']['createRange'](_0x508729,_0x2ed43a),_0xe360fe=_0x358aa9['id'],_0x1f6828=_0x1720bc?'deletion:'+_0x1720bc:'deletion',_0x72923b=this['_setSuggestionData']({'id':_0x94633,'type':_0x1f6828,'createdAt':new Date(),'authorId':_0xe360fe,'attributes':_0x5eed8f});return this['_addSuggestionMarker'](_0x1f6828,_0x94633,_0xe360fe,_0x2de8e1),_0x72923b;}}['markMultiRangeDeletion'](_0x376eb1,_0x2d773b='multi',_0x820f79={}){const _0x40a111=this['editor']['plugins']['get']('Users')['me'],_0x4d0347=_0x376eb1['map'](_0x50f166=>new _0x51fe0f(_0x50f166['start'],_0x50f166['end'])),_0x4e3904=new Set();for(const {suggestion:_0x32783c,meta:_0x3d9c68}of this['_findSuggestions'](_0x4d0347,'insertion'))_0x3d9c68['isOwn']&&!_0x3d9c68['isNextTo']&&_0x4e3904['add'](_0x32783c);for(const _0x2aaa56 of _0x4e3904)if(_0x2aaa56['isMultiRange']){const _0x1cc5d2=_0x2aaa56['getRanges']();(!_0x2aaa56['attributes']||!_0x2aaa56['attributes']['skipNestingCheck'])&&(_0x1cc5d2['every'](_0x392302=>_0x4d0347['some'](_0x58a023=>_0x58a023['containsRange'](_0x392302,!0x0)))&&_0x2aaa56['discard']());if(_0x4d0347['every'](_0xcef7cd=>_0x1cc5d2['some'](_0xdb605b=>_0xdb605b['containsRange'](_0xcef7cd,!0x0)))){const _0x365063=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d773b,'accept');return this['forceDefaultExecution'](()=>_0x365063(_0x376eb1,null,_0x820f79)),null;}}else{const _0x2f9d6b=_0x2aaa56['getFirstRange']();_0x4d0347['some'](_0x2275f8=>_0x2275f8['containsRange'](_0x2f9d6b,!0x0))&&_0x2aaa56['discard']();if(_0x4d0347['every'](_0x2a689f=>_0x2f9d6b['containsRange'](_0x2a689f,!0x0))){const _0x4bcc3c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d773b,'accept');return this['forceDefaultExecution'](()=>_0x4bcc3c(_0x4d0347,null,_0x820f79)),null;}}const _0x4e979a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d773b,'join');let _0x13adae=null;for(const _0x2bc40b of this['getSuggestions']())if(_0x2bc40b['author']['id']==_0x40a111['id']&&_0x2bc40b['isInContent']&&'deletion'==_0x2bc40b['type']&&_0x2bc40b['subType']==_0x2d773b&&Qt(_0x2bc40b,_0x820f79)&&(_0x4e979a(_0x2bc40b['getRanges'](),_0x4d0347)||_0x4e979a(_0x4d0347,_0x2bc40b['getRanges']()))){if(_0x13adae){if(_0x2bc40b['commentThread']&&_0x2bc40b['commentThread']['length'])continue;for(const _0x1b4f2e of _0x2bc40b['getRanges']())_0x13adae['isIntersectingWithRange'](_0x1b4f2e)||_0x13adae['addRange'](_0x1b4f2e);_0x2bc40b['removeMarkers']();}else{_0x13adae=_0x2bc40b;for(const _0x3d0361 of _0x4d0347)_0x2bc40b['isIntersectingWithRange'](_0x3d0361)||_0x2bc40b['addRange'](_0x3d0361);}}if(_0x13adae)return _0x13adae;_0x4e3904['clear']();for(const {suggestion:_0x10e6e5,meta:_0x25e4ac}of this['_findSuggestions'](_0x4d0347,'deletion'))_0x25e4ac['isOwn']&&(this['_mergeNestedSuggestions']||!_0x25e4ac['containsRangeInObject']&&!_0x25e4ac['isInsideObject'])&&Qt(_0x10e6e5,_0x820f79)&&_0x4e3904['add'](_0x10e6e5);for(const _0x26653b of _0x4e3904){const _0x54fb46=_0x26653b['getRanges']();if(!_0x820f79||!_0x820f79['skipNestingCheck']){if(_0x4d0347['every'](_0x5c1637=>_0x54fb46['some'](_0x3c8a32=>_0x3c8a32['containsRange'](_0x5c1637,!0x0))))return _0x26653b;}(!_0x26653b['attributes']||!_0x26653b['attributes']['skipNestingCheck'])&&(_0x54fb46['every'](_0x290bb1=>_0x4d0347['some'](_0x26ffee=>_0x26ffee['containsRange'](_0x290bb1,!0x0)))&&_0x26653b['discard']());}const _0x21229e=_0x2612d4(),_0x2304ed=_0x40a111['id'],_0x41c776='deletion:'+_0x2d773b,_0x1898d9=this['_setSuggestionData']({'id':_0x21229e,'type':_0x41c776,'createdAt':new Date(),'authorId':_0x2304ed,'attributes':_0x820f79});for(const _0x320de0 of _0x4d0347)_0x320de0['detach'](),_0x320de0['isCollapsed']||'$graveyard'==_0x320de0['root']['rootName']||this['_addSuggestionMarker'](_0x41c776,_0x21229e,_0x2304ed,_0x320de0,o['getMultiRangeId']());return _0x1898d9;}['markAttributeChange'](_0x45ab07,_0x5039c8,_0x11d86a,_0x16a1b2,_0x1a4292){if(_0x45ab07['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2cb18e=this['editor']['plugins']['get']('Users')['me']['id'],_0x5cd813=Array['from'](this['_suggestions']['values']())['filter'](_0x7dfcb9=>'attribute'==_0x7dfcb9['type']&&_0x7dfcb9['data']['key']==_0x5039c8&&_0x7dfcb9['isIntersectingWithRange'](_0x45ab07));if('default'===this['_trackFormatChanges']){const _0x5cdf3d=this['_findSuggestions'](_0x45ab07,'insertion')['filter'](({meta:_0x330c0f})=>_0x330c0f['isOwn']&&!_0x330c0f['isInsideObject']&&!_0x330c0f['isNextTo'])['map'](({suggestion:_0x12f981})=>_0x12f981);_0x5cd813['unshift'](..._0x5cdf3d);}const _0x5d468d=new Map([[_0x45ab07,_0x11d86a]]);for(const _0x5351cb of _0x5cd813){const _0x24faa4='attribute'==_0x5351cb['type']?_0x5351cb['data']['oldValue']:void 0x0,_0x3264de=_0x5351cb['getFirstRange'](),_0x64b413=Array['from'](_0x5d468d['keys']())['find'](_0x178a36=>_0x178a36['isIntersecting'](_0x3264de));if(!_0x64b413)continue;const _0x2a26a8=_0x64b413['getDifference'](_0x3264de);this['_isBlockAttribute'](_0x5039c8)&&'insertion'==_0x5351cb['type']&&0x0!=_0x2a26a8['length']||(_0x5d468d['delete'](_0x64b413),_0x2a26a8['forEach'](_0x551fb4=>{_0x5d468d['set'](_0x551fb4,_0x11d86a);}),'insertion'!=_0x5351cb['type']&&_0x24faa4!=_0x16a1b2&&_0x5d468d['set'](_0x64b413['getIntersection'](_0x3264de),_0x24faa4));}const _0x371b0c=[];for(const [_0x554850,_0x46cb84]of _0x5d468d){const _0x258dfa=_0x2612d4(),_0x42d66c={'key':_0x5039c8,'oldValue':_0x46cb84,'newValue':_0x16a1b2};_0x5039c8['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x5039c8});const _0x236658=('attribute:'+(_0x5039c8+'|'+Jt({'newValue':_0x16a1b2})))['substring'](0x0,0x3c),_0x114578=this['_setSuggestionData']({'id':_0x258dfa,'type':_0x236658,'data':_0x42d66c,'createdAt':new Date(),'authorId':_0x2cb18e,'attributes':_0x1a4292});_0x371b0c['push'](_0x114578),this['_addSuggestionMarker'](_0x236658,_0x258dfa,_0x2cb18e,_0x554850);}return _0x371b0c;}['enableDefaultAttributesIntegration'](_0x2940c4){this['enableCommand'](_0x2940c4,(_0x33db57,..._0x35a32c)=>{this['_recordAttributeChanges'](()=>{_0x33db57(..._0x35a32c);});});}['registerBlockAttribute'](_0x47925c){this['_blockAttributeKeys']['add'](_0x47925c);}['registerInlineAttribute'](_0x1eaf72){this['_inlineAttributeKeys']['add'](_0x1eaf72);}['_getAttributeKey'](_0x2d391e){return'attribute'==_0x2d391e['type']?_0x2d391e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x144320,_0x3875de){const _0x110255=_0x144320['getFirstMarker']();this['_model']['change'](_0x3c0b86=>{_0x3c0b86['updateMarker'](_0x110255,{'range':_0x3875de});});}['_addThreadToSuggestion'](_0x2766f0){const _0x27a7f0=_0x2766f0['id'],_0x16bf49=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x27a7f0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x16bf49,'threadId':_0x27a7f0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3032de=this['_commentsRepository']['getCommentThread'](_0x27a7f0);_0x3032de['unbind']('isRemovable'),_0x3032de['isRemovable']=!0x1,_0x2766f0['commentThread']=_0x3032de;}['_checkSuggestionCorrectness'](_0x4bafcf,_0x42f45e,_0x3481c1,_0x48d85d){if(_0x4bafcf['type']!=_0x42f45e||_0x4bafcf['subType']!=_0x3481c1||_0x4bafcf['creator']['id']!=_0x48d85d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5dd626('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1c3520,_0x25a374){const _0x59d7cd=_0x1c3520['getFirstRange']();if(_0x25a374['isEqual'](_0x59d7cd))_0x1c3520['removeMarkers']();else{if(_0x59d7cd['containsRange'](_0x25a374)){const _0x5ef2ba=this['_model']['createPositionAt'](_0x25a374['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c3520,this['_model']['createRange'](_0x59d7cd['start'],_0x5ef2ba));const _0x213e0f=_0x2612d4(),_0x44457c=_0x1c3520['creator']['id'],_0x1d4efc=_0x1c3520['type']+':'+_0x1c3520['subType'];this['_setSuggestionData']({'id':_0x213e0f,'type':_0x1d4efc,'createdAt':new Date(),'authorId':_0x44457c,'data':_0x1c3520['data'],'attributes':_0x1c3520['attributes']});const _0x4d6535=this['_model']['createPositionAt'](_0x25a374['end']['parent'],'after'),_0x21bc18=this['_model']['createRange'](_0x4d6535,_0x59d7cd['end']);this['_addSuggestionMarker'](_0x1d4efc,_0x213e0f,_0x44457c,_0x21bc18);}else{if(_0x59d7cd['containsPosition'](_0x25a374['start'])){const _0x111e60=this['_model']['createPositionAt'](_0x25a374['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c3520,this['_model']['createRange'](_0x59d7cd['start'],_0x111e60));}else{const _0x16a3b8=this['_model']['createPositionAt'](_0x25a374['end']['parent'],'after');this['_setSuggestionRange'](_0x1c3520,this['_model']['createRange'](_0x16a3b8,_0x59d7cd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x22f78a){for(const {suggestion:_0x51f901,meta:_0x33c72e}of this['_findSuggestions'](_0x22f78a,'insertion')){if(!_0x33c72e['isOwn'])continue;const _0x5f0d09=_0x51f901['getRanges']();for(const _0x6918b6 of _0x5f0d09)if(!_0x22f78a['getDifference'](_0x6918b6)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1b0cd6){const _0x5c7128=this['editor']['plugins']['get']('Users')['getUser'](_0x1b0cd6);if(!_0x5c7128)throw new _0x5dd626('track-changes-user-not-found',this);return _0x5c7128;}['_getExternalAuthor'](_0x333ac7){const _0x4c85c5=this['editor']['plugins']['get']('Users'),_0x4e297b=_0x45cfb7('external:'+_0x333ac7),_0x133238=_0x4c85c5['getUser'](_0x4e297b);return _0x133238||_0x4c85c5['addUser']({'id':_0x4e297b,'name':_0x333ac7});}['_createSuggestion'](_0x4872be,_0x3b4bf3,_0x58512d,_0x5975da,_0x225b43){const _0x39dbc6=this['_getAuthorFromId'](_0x5975da),_0x2c0b89=this['_suggestionFactory']['buildSuggestion'](_0x4872be,_0x3b4bf3,_0x58512d,_0x39dbc6,_0x225b43,_0x3bfcf3=>{this['_updateSuggestionData'](_0x58512d,{'attributes':_0x3bfcf3});const _0x20dcaa=this['getSuggestion'](_0x58512d);this['_joinWithAdjacentSuggestions'](new Set([_0x20dcaa])),this['_refreshSuggestionsChain'](new Set([_0x20dcaa]));});return this['listenTo'](_0x2c0b89,'accept',()=>{this['_updateSuggestionData'](_0x58512d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2c0b89,'discard',()=>{this['_updateSuggestionData'](_0x58512d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x58512d,_0x2c0b89),this['_suggestionState']['set'](_0x2c0b89,'notReady'),_0x2c0b89;}['_splitMarkerName'](_0x3bfa14){const _0x57403f=_0x3bfa14['split'](':');return{'group':_0x57403f[0x0],'type':_0x57403f[0x1],'subType':_0x57403f['length']>=0x5?_0x57403f[0x2]:null,'id':_0x57403f['length']<0x5?_0x57403f[0x2]:_0x57403f[0x3],'authorId':_0x57403f['length']<0x5?_0x57403f[0x3]:_0x57403f[0x4],'markerCount':0x6==_0x57403f['length']?_0x57403f[0x5]:null};}['_breakSuggestionMarker'](_0x339667,_0x40e02d,_0x4cf265){const _0x1759dd=_0x339667['getFirstRange'](),_0x556287=_0x1759dd['start'],_0xd5f897=_0x1759dd['end'];this['_setSuggestionRange'](_0x339667,this['_model']['createRange'](_0x556287,_0x40e02d));const _0x1efe7d=_0x2612d4(),_0x472d2f=_0x339667['creator']['id'],_0x36a279=_0x339667['type']+(_0x339667['subType']?':'+_0x339667['subType']:'');this['_setSuggestionData']({'id':_0x1efe7d,'type':_0x36a279,'createdAt':new Date(),'authorId':_0x472d2f,'originalSuggestionId':_0x339667['id'],'attributes':_0x339667['attributes'],'data':_0x339667['data']});const _0x1ca41d=this['_getAttributeKey'](_0x339667);('formatBlock'==_0x339667['type']||_0x1ca41d&&this['_isBlockAttribute'](_0x1ca41d))&&(_0x4cf265=this['_model']['createPositionBefore'](_0x4cf265['parent'])),this['_addSuggestionMarker'](_0x36a279,_0x1efe7d,_0x472d2f,this['_model']['createRange'](_0x4cf265,_0xd5f897));}['_findSuggestions'](_0x4fbce0,_0x43713e=null){const _0x53dc52=[],_0x26afb4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4fbce0)||(_0x4fbce0=[_0x4fbce0]);for(const _0x419d7a of this['getSuggestions']()){if(!_0x419d7a['isInContent'])continue;if(_0x43713e&&_0x419d7a['type']!=_0x43713e)continue;let _0x3325de=!0x1;for(const _0x192546 of _0x419d7a['getRanges']()){for(const _0x22abeb of _0x4fbce0){const _0x544f3a=_0x22abeb['start']['isEqual'](_0x192546['end'])||_0x22abeb['end']['isEqual'](_0x192546['start']);if(_0x544f3a||_0x22abeb['getIntersection'](_0x192546)){const _0xa87147=_0x22abeb['containsRange'](_0x192546)&&Pt(this['_model']['schema'],_0x192546['start'],_0x22abeb),_0x1b37cb=_0x192546['containsRange'](_0x22abeb)&&Pt(this['_model']['schema'],_0x22abeb['start'],_0x192546);_0x53dc52['push']({'suggestion':_0x419d7a,'meta':{'isOwn':_0x26afb4==_0x419d7a['author'],'isNextTo':_0x544f3a,'isInsideObject':_0xa87147,'containsRangeInObject':_0x1b37cb}}),_0x3325de=!0x0;break;}}if(_0x3325de)break;}}return _0x53dc52;}['_addSuggestionMarker'](_0x3191ec,_0x1c136d,_0x1cb120,_0x375e03,_0x43ea87){this['_model']['change'](_0x45f083=>{let _0x5cf739='suggestion:'+_0x3191ec+':'+_0x1c136d+':'+_0x1cb120;_0x43ea87&&(_0x5cf739=_0x5cf739+':'+_0x43ea87),_0x45f083['addMarker'](_0x5cf739,{'range':_0x375e03,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x447521){const _0x6af201=_0x447521['previous'],_0x9a2b6=_0x447521['next'];_0x447521['previous']=null,_0x447521['next']=null,null!=_0x6af201&&_0x6af201['next']==_0x447521&&(_0x6af201['next']=_0x9a2b6),null!=_0x9a2b6&&_0x9a2b6['previous']==_0x447521&&(_0x9a2b6['previous']=_0x6af201),'ready'==this['_suggestionState']['get'](_0x447521)&&(this['_suggestionState']['set'](_0x447521,'removed'),this['fire']('suggestionUnloaded',_0x447521,_0x6af201,_0x9a2b6));}['_setSuggestionData'](_0x10c78e){const _0x5b7089=_0x10c78e['id'],_0x10b58f=this['addSuggestionData'](_0x10c78e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x31afa2=this['editor']['plugins']['get']('PendingActions'),_0x5100ba=_0x10b58f['hasComments'],_0x53d13b=_0x10b58f['subType']?_0x10b58f['type']+':'+_0x10b58f['subType']:_0x10b58f['type'],_0x28cd27=this['editor']['locale'],_0x17f2ac=_0x31afa2['add'](c(_0x28cd27,'PENDING_ACTION_SUGGESTION')),_0x41040f={'id':_0x5b7089,'type':_0x53d13b,'hasComments':_0x5100ba,'data':_0x10c78e['data']||null,'originalSuggestionId':_0x10c78e['originalSuggestionId']||null,'attributes':_0x10b58f['attributes']};this['_adapter']['addSuggestion'](_0x41040f)['then'](_0x363639=>{_0x10b58f['_saved']=!0x0,_0x31afa2['remove'](_0x17f2ac),_0x363639&&_0x363639['createdAt']&&(this['_suggestions']['get'](_0x5b7089)['createdAt']=_0x363639['createdAt']);})['catch'](_0x2e7d19=>{throw _0x40fadc('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x10b58f['discard']();}),_0x10b58f['stopListening'](),this['_suggestions']['delete'](_0x10b58f['id']),this['_suggestionState']['delete'](_0x10b58f),_0x2e7d19;});}return _0x10b58f;}['_isBlockAttribute'](_0x3a0a51){return this['_blockAttributeKeys']['has'](_0x3a0a51);}['_updateSuggestionData'](_0x1f6d88,_0x8dc458){const _0x5bc208=this['editor']['plugins']['get']('PendingActions'),_0x3ae3d4=this['getSuggestion'](_0x1f6d88);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3ae3d4['_saved']){const _0x5800e5=_0x5bc208['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1f6d88,_0x8dc458)['then'](()=>{_0x5bc208['remove'](_0x5800e5);});}else _0x3ae3d4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1f6d88,_0x8dc458);});}}['_getSuggestionData'](_0x316da1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5dd626('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x316da1);}['_handleNewSuggestionMarker'](_0x1abe53){const {id:_0x10750c,type:_0x50dc93,subType:_0xb549dd,authorId:_0x32a043}=this['_splitMarkerName'](_0x1abe53),_0x463bcb=this['_suggestions']['get'](_0x10750c)||this['_createSuggestion'](_0x50dc93,_0xb549dd,_0x10750c,_0x32a043,{});switch(this['_checkSuggestionCorrectness'](_0x463bcb,_0x50dc93,_0xb549dd,_0x32a043),this['_suggestionState']['get'](_0x463bcb)){case'notReady':this['_getSuggestionData'](_0x10750c)['then'](_0x36c251=>{let _0x4beb51=Promise['resolve']();_0x36c251['hasComments']&&(_0x4beb51=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x10750c})),_0x4beb51['then'](()=>{this['addSuggestionData'](_0x36c251)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x463bcb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x10750c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x463bcb,'ready'),this['fire']('suggestionLoaded',_0x463bcb);break;case'ready':this['fire']('suggestionChanged',_0x463bcb);}return _0x463bcb['addMarkerName'](_0x1abe53),_0x463bcb;}['_refreshSuggestionsChain'](_0x3fc2e9){const _0x375609=Array['from'](_0x3fc2e9),_0x2c531b=_0x375609['filter'](_0x13e371=>'attribute'==_0x13e371['type']);this['_refreshAttributeSuggestionsChain'](_0x2c531b);const _0x4bb1fb=_0x375609['filter'](_0x36224e=>!_0x36224e['isMultiRange']&&'attribute'!=_0x36224e['type']),_0x2793f5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45004a=>!_0x45004a['isMultiRange']&&'attribute'!=_0x45004a['type']),_0x3a42c2=_0x2793f5['filter'](_0xc1458d=>!_0x3fc2e9['has'](_0xc1458d)),_0x3a0201=new Map(_0x2793f5['map'](_0x389053=>[_0x389053,this['_suggestionFactory']['getSuggestionCallback'](_0x389053['type'],_0x389053['subType'],'chain')])),_0x18a130=new Map(_0x2793f5['map'](_0x1703d6=>[_0x1703d6,_0x1703d6['getFirstRange']()])),_0x5e17b8=new Set(),_0x2af666=new Set();for(let _0x5a1ce2=0x0;_0x5a1ce2<_0x4bb1fb['length'];_0x5a1ce2++)_0x47fbfb(_0x4bb1fb[_0x5a1ce2],_0x4bb1fb,_0x5a1ce2+0x1);for(let _0x2e0d0d=0x0;_0x2e0d0d<_0x4bb1fb['length'];_0x2e0d0d++)_0x47fbfb(_0x4bb1fb[_0x2e0d0d],_0x3a42c2,0x0);const _0x52f7d5=new Set();for(let _0xadf113=0x0;_0xadf113<_0x4bb1fb['length'];_0xadf113++){const _0x2016ba=_0x4bb1fb[_0xadf113];!_0x2af666['has'](_0x2016ba)&&_0x2016ba['previous']&&(_0x52f7d5['add'](_0x2016ba['previous']),_0x2016ba['previous']['next']===_0x2016ba&&(_0x2016ba['previous']['next']=null),_0x2016ba['previous']=null),!_0x5e17b8['has'](_0x2016ba)&&_0x2016ba['next']&&(_0x52f7d5['add'](_0x2016ba['next']),_0x2016ba['next']['previous']===_0x2016ba&&(_0x2016ba['next']['previous']=null),_0x2016ba['next']=null);}function _0x47fbfb(_0x2b4fec,_0x254612,_0x5e2283){for(let _0x43357e=_0x5e2283;_0x43357e<_0x254612['length'];_0x43357e++){const _0x509b02=_0x15b1f5(_0x2b4fec,_0x254612[_0x43357e]);_0x509b02&&(_0x509b02[0x0]['next']=_0x509b02[0x1],_0x509b02[0x1]['previous']=_0x509b02[0x0],_0x5e17b8['add'](_0x509b02[0x0]),_0x2af666['add'](_0x509b02[0x1]));}}function _0x15b1f5(_0x4e4025,_0x5eaf53){if(_0x4e4025['author']['id']!==_0x5eaf53['author']['id'])return null;const _0x4aeb25=_0x3a0201['get'](_0x4e4025)(_0x4e4025,_0x5eaf53,_0x18a130['get'](_0x4e4025),_0x18a130['get'](_0x5eaf53));if(!_0x4aeb25)return null;return _0x3a0201['get'](_0x5eaf53)(_0x4e4025,_0x5eaf53,_0x18a130['get'](_0x4e4025),_0x18a130['get'](_0x5eaf53))?_0x4aeb25[0x1]['commentThread']&&_0x4aeb25[0x1]['commentThread']['length']?null:_0x4aeb25:null;}_0x52f7d5['size']&&this['_refreshSuggestionsChain'](_0x52f7d5);}['_refreshAttributeSuggestionsChain'](_0x4442df){if(0x0==_0x4442df['length'])return;const _0x53aa40=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x326550=>'attribute'==_0x326550['type']&&_0x326550['_isDataLoaded']),_0x39f847=[],_0x523991=new Map();for(const _0x1b27d3 of _0x53aa40){const _0x77ed5b=_0x45cfb7(_0x1b27d3['attributes']);_0x523991['has'](_0x77ed5b)||(_0x523991['set'](_0x77ed5b,_0x39f847['length']),_0x39f847['push']([]));const _0x40249b=_0x523991['get'](_0x77ed5b);_0x39f847[_0x40249b]['push'](_0x1b27d3);}!(function(){_0x39f847['sort']((_0x142cdb,_0x140ea0)=>{const _0x5159ec=_0x142cdb[0x0]['createdAt'],_0x23f814=_0x140ea0[0x0]['createdAt'];return _0x5159ec==_0x23f814?_0x142cdb[0x0]['attributes']['groupId']<_0x140ea0[0x0]['attributes']['groupId']?-0x1:0x1:_0x5159ec<_0x23f814?-0x1:0x1;});for(const _0x46d20d of _0x39f847)_0x46d20d['sort']((_0x569c38,_0x2a8a16)=>_0x569c38['id']<_0x2a8a16['id']?-0x1:0x1);}());for(let _0x565fd0=0x0;_0x565fd0<_0x39f847['length'];_0x565fd0++){if(0x0==_0x39f847[_0x565fd0]['length'])continue;const _0xcaf691=[];for(let _0x41e070=_0x565fd0+0x1;_0x41e070<_0x39f847['length'];_0x41e070++)0x0!=_0x39f847[_0x41e070]['length']&&_0xb9db89(_0x39f847[_0x565fd0],_0x39f847[_0x41e070])&&_0xcaf691['push'](_0x41e070);for(const _0x555c99 of _0xcaf691)_0x39f847[_0x565fd0]=_0x39f847[_0x565fd0]['concat'](_0x39f847[_0x555c99]),_0x39f847[_0x555c99]=[];}for(const _0x1391fc of _0x39f847)for(let _0x54cacb=0x0;_0x54cacb<_0x1391fc['length'];_0x54cacb++){const _0x48d63b=_0x1391fc[_0x54cacb+0x1]||null;_0x1391fc[_0x54cacb]['next']!==_0x48d63b&&(_0x1391fc[_0x54cacb]['next']=_0x48d63b);}for(const _0x4a782d of _0x39f847)for(let _0x16f28d=0x0;_0x16f28d<_0x4a782d['length'];_0x16f28d++){const _0x1b188a=_0x4a782d[_0x16f28d-0x1]||null;_0x4a782d[_0x16f28d]['previous']!==_0x1b188a&&(_0x4a782d[_0x16f28d]['previous']=_0x1b188a);}function _0xb9db89(_0x3b8296,_0x44682d){if(_0x3b8296[0x0]['attributes']['groupId']!==_0x44682d[0x0]['attributes']['groupId']&&_0x3b8296[0x0]['author']!==_0x44682d[0x0]['author'])return!0x1;if(!function(_0x2d63af,_0x5fec27){if(!_0x2d63af['hasComments']&&!_0x5fec27['hasComments'])return!0x0;if(_0x2d63af['hasComments']&&_0x5fec27['hasComments'])return!0x1;if(_0x2d63af['hasComments']&&_0x5fec27['createdAt']<_0x2d63af['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5fec27['hasComments']&&_0x2d63af['createdAt']<_0x5fec27['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3b8296[0x0],_0x44682d[0x0]))return!0x1;const _0x28f38f=Vt(_0x3b8296[0x0]['attributes'],'groupId'),_0x333daf=Vt(_0x44682d[0x0]['attributes'],'groupId');if(!_0x21c99e(_0x28f38f,_0x333daf))return!0x1;return!!_0x3b8296['every'](_0x68f05=>_0x44682d['some'](_0x226249=>_0x68f05['getFirstRange']()['isEqual'](_0x226249['getFirstRange']())))&&_0x44682d['every'](_0xca3677=>_0x3b8296['some'](_0x2e8185=>_0xca3677['getFirstRange']()['isEqual'](_0x2e8185['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4d33c0){const _0x50b5c4=Array['from'](_0x4d33c0),_0xbea701=this['getSuggestions']({'skipNotAttached':!0x0}),_0x17b7e8=_0xbea701['filter'](_0x5bc6db=>!_0x4d33c0['has'](_0x5bc6db)),_0x58c656=new Map(_0x50b5c4['map'](_0x2a200d=>[_0x2a200d,this['_suggestionFactory']['getSuggestionCallback'](_0x2a200d['type'],_0x2a200d['subType'],'join')])),_0x435e9a=new Map(_0xbea701['map'](_0x5b9fa2=>[_0x5b9fa2,_0x5b9fa2['getRanges']()]));for(let _0x57b005=0x0;_0x57b005<_0x50b5c4['length'];_0x57b005++){if(_0x32b7ff(this,_0x50b5c4[_0x57b005],_0x50b5c4,_0x57b005+0x1))return!0x0;}for(let _0x29de96=0x0;_0x29de96<_0x50b5c4['length'];_0x29de96++){if(_0x32b7ff(this,_0x50b5c4[_0x29de96],_0x17b7e8,0x0))return!0x0;}return!0x1;function _0x32b7ff(_0x314ac7,_0x22beec,_0x3f0fce,_0x129ef3){for(let _0x482911=_0x129ef3;_0x482911<_0x3f0fce['length'];_0x482911++){const _0x3f07fc=_0x3f0fce[_0x482911];if(_0x3f07fc['type']!==_0x22beec['type']||_0x3f07fc['author']['id']!==_0x22beec['author']['id']||_0x3f07fc['subType']!==_0x22beec['subType'])continue;if(!Wt(_0x22beec,_0x3f07fc))continue;if('attribute'==_0x22beec['type']&&_0x22beec['data']['oldValue']!=_0x3f07fc['data']['oldValue'])continue;if('attribute'==_0x22beec['type']&&_0x314ac7['_isBlockAttribute'](_0x22beec['data']['key']))continue;if('formatBlock'==_0x22beec['type']){const _0x172eb7=_0x314ac7['editor']['model'],_0x2c67b7=_0x22beec['getContainedElement']();if(_0x2c67b7&&(_0x172eb7['schema']['isObject'](_0x2c67b7)||_0x172eb7['schema']['isLimit'](_0x2c67b7)))continue;}const _0x2d1ecc=_0x58c656['get'](_0x22beec),_0x2005a9=_0x435e9a['get'](_0x22beec),_0x34f47f=_0x435e9a['get'](_0x3f07fc),_0x131442=_0x22beec['commentThread']&&_0x22beec['commentThread']['length'],_0x35317c=_0x3f07fc['commentThread']&&_0x3f07fc['commentThread']['length'];if(!_0x131442&&_0x2d1ecc(_0x34f47f,_0x2005a9))return _0x314ac7['_joinSuggestions'](_0x3f07fc,_0x22beec),_0x435e9a['delete'](_0x22beec),!0x0;if(!_0x35317c&&_0x2d1ecc(_0x2005a9,_0x34f47f))return _0x314ac7['_joinSuggestions'](_0x22beec,_0x3f07fc),_0x435e9a['delete'](_0x3f07fc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2c485f,_0x319d80){if(_0x2c485f['isMultiRange']){for(const _0x172a9a of _0x319d80['getRanges']())_0x2c485f['addRange'](_0x172a9a);}else{const _0x3b6a23=_0x319d80['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2c485f,this['_model']['createRange'](_0x2c485f['getFirstRange']()['start'],_0x3b6a23));}_0x319d80['removeMarkers']();}['_getMarkerAnnouncementText'](_0x8cb6af,_0x175047,_0x280d68){const _0x5610fd=_0x8cb6af['startsWith']('format')||_0x8cb6af['startsWith']('attribute')?'FORMATTING':_0x8cb6af['toUpperCase']();return c(this['editor']['locale'],_0x175047+'_'+_0x5610fd+'_SUGGESTION_ANNOUNCEMENT',_0x280d68);}['_initAriaMarkerChangeAnnouncements'](){const _0x230b35=this['editor'];if(!_0x230b35['ui'])return;const {ariaLiveAnnouncer:_0x5e949b}=_0x230b35['ui'];_0xec9857(this['_model'],({left:_0x1535ba,entered:_0x3d2846})=>{for(const _0x4a13f8 of _0x1535ba){const {group:_0x3b4b0e,type:_0x52771d}=this['_splitMarkerName'](_0x4a13f8['name']);if('suggestion'===_0x3b4b0e){_0x5e949b['announce'](this['_getMarkerAnnouncementText'](_0x52771d,'LEAVE'));break;}}for(const _0x207383 of _0x3d2846){const {group:_0x15a643,type:_0x1da6cb}=this['_splitMarkerName'](_0x207383['name']);if('suggestion'===_0x15a643){_0x5e949b['announce'](this['_getMarkerAnnouncementText'](_0x1da6cb,'ENTER',_0x18891d(_0x4f5b16)));break;}}});}['_processAttributeChanges'](_0x264a87){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1f9640=this['editor'],_0x33c59e=_0x1f9640['model']['document']['differ']['getChanges']();if(0x0==_0x33c59e['length'])return!0x1;const _0x4f2c31=[],_0xc031db=_0x33c59e['filter'](_0x42cd24=>'attribute'==_0x42cd24['type']),_0x675fd2=_0x33c59e['filter'](_0x370783=>'insert'==_0x370783['type']&&'$text'!=_0x370783['name']),_0x2e0f9a=_0x33c59e['filter'](_0x45c0fa=>'remove'==_0x45c0fa['type']&&'$text'!=_0x45c0fa['name']);for(const _0x2ecd5b of _0xc031db)_0x4f2c31['push']({'key':_0x2ecd5b['attributeKey'],'newValue':_0x2ecd5b['attributeNewValue'],'oldValue':_0x2ecd5b['attributeOldValue'],'range':Ht(_0x2ecd5b['range'],_0x1f9640['model'])});for(const _0x3b5d39 of _0x675fd2){const _0x398133=_0x2e0f9a['find'](_0x350213=>_0x350213['position']['isEqual'](_0x3b5d39['position']));_0x398133&&_0x4f2c31['push']({'key':u,'newValue':_0x3b5d39['name'],'oldValue':_0x398133['name'],'range':_0x1f9640['model']['createRangeOn'](_0x3b5d39['position']['nodeAfter'])});}return 0x0!=_0x4f2c31['length']&&this['_reduceExistingSuggestions'](_0x264a87,_0x4f2c31);}['_processAttributeSuggestions'](_0x3035ad){let _0x4ff753=!0x1;const _0x42a2c2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5abc1a=>_0x5abc1a['data']['newRange']&&_0x5abc1a['name']['startsWith']('suggestion:attribute:'));for(const _0x3b6bc9 of _0x42a2c2){const {subType:_0x3e537d,id:_0x269c3c}=this['_splitMarkerName'](_0x3b6bc9['name']),_0x232f19=_0x3e537d['split']('|')[0x0];for(const _0x215be4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x215be4['id']!=_0x269c3c&&'attribute'==_0x215be4['type']&&_0x215be4['data']&&_0x215be4['data']['key']==_0x232f19&&_0x215be4['getFirstRange']()['isIntersecting'](_0x3b6bc9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x215be4,_0x3b6bc9['data']['newRange'],_0x3035ad),_0x4ff753=!0x0);}return _0x4ff753;}['_recordAttributeChanges'](_0x1c00c3){this['_recordAttributeSuggestions']=!0x0,_0x1c00c3();}['_isRegisteredAttribute'](_0x49f7a0){const _0x3c0a72=this['_isBlockAttribute'](_0x49f7a0),_0x180588=this['_inlineAttributeKeys']['has'](_0x49f7a0);return _0x3c0a72||_0x180588;}['_reduceExistingSuggestions'](_0x5899b2,_0x28f62f){if(0x0==_0x28f62f['length'])return!0x1;let _0x4de1b9=!0x1;for(const _0x199939 of _0x28f62f){const _0x38e4c7=this['_findSuggestions'](_0x199939['range'],'attribute')['filter'](_0x409f5b=>!_0x409f5b['meta']['isNextTo'])['map'](_0x35db78=>_0x35db78['suggestion']),_0x181c3e=_0x45cfb7({'newValue':_0x199939['newValue']});_0x38e4c7['filter'](_0x4d824e=>{const [_0x54086d,_0x191709]=_0x4d824e['subType']['split']('|');return _0x54086d==_0x199939['key']&&_0x191709!=_0x181c3e;})['forEach'](_0x926f74=>{this['_reduceSuggestionAttributeRange'](_0x926f74,_0x199939['range'],_0x5899b2),_0x4de1b9=!0x0;});}return _0x4de1b9;}['_reduceSuggestionAttributeRange'](_0xa1bffd,_0x2dc93a,_0x4467b7){const _0x136aa0=_0xa1bffd['getFirstRange']()['getDifference'](_0x2dc93a);0x0!==_0x136aa0['length']?0x1!==_0x136aa0['length']?this['_breakSuggestionMarker'](_0xa1bffd,_0x2dc93a['start'],_0x2dc93a['end']):this['_setSuggestionRange'](_0xa1bffd,_0x136aa0[0x0]):_0x4467b7['removeMarker'](_0xa1bffd['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5c2ca3){this['_editor']=_0x5c2ca3,this['_model']=_0x5c2ca3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xa5221c,_0x5f4908,_0x44fda0,_0x534725,_0x59752d,_0x73cb84){return new o(this['_model'],{'type':_0xa5221c,'subType':_0x5f4908,'id':_0x44fda0,'author':_0x534725,'creator':_0x534725,'attributes':_0x59752d,'onAttributesChange':_0x73cb84,'onAccept':(..._0x22b319)=>this['getSuggestionCallback'](_0xa5221c,_0x5f4908,'accept')(..._0x22b319),'onDiscard':(..._0x539ad8)=>this['getSuggestionCallback'](_0xa5221c,_0x5f4908,'discard')(..._0x539ad8)});}['registerCustomCallback'](_0x5797b5,_0x294306,_0x52120a,_0x243d92){const _0x48d1d6=_0x5797b5+':'+_0x294306+':'+_0x52120a;this['_customCallbacks']['set'](_0x48d1d6,_0x243d92);}['getSuggestionCallback'](_0x127d6b,_0x12fb13,_0x22e6c9){const _0x4b1e19=_0x127d6b+':'+_0x12fb13+':'+_0x22e6c9;return this['_customCallbacks']['get'](_0x4b1e19)||this['_defaultCallbacks']['get'](_0x127d6b+':'+_0x22e6c9);}['_registerDefaultCallbacks'](){const _0x23f79f=()=>!0x1,_0x44b5b1=_0x443b55=>{_0x443b55['sort']((_0x574458,_0x33528c)=>_0x574458['start']['isBefore'](_0x33528c['start'])?0x1:-0x1),this['_model']['change'](_0x221728=>{for(const _0xc2de65 of _0x443b55){let _0x5e4fb4;_0x5e4fb4=_0xc2de65['end']['isAtEnd']&&_0xc2de65['end']['parent']==_0xc2de65['start']['nodeAfter']?_0x221728['createSelection'](_0xc2de65['start']['nodeAfter'],'on'):_0x221728['createSelection'](_0xc2de65),this['_model']['deleteContent'](_0x5e4fb4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x26a0e1=(_0x5216b1,_0x135c2c)=>{_0x135c2c&&this['_model']['change'](_0x8a5512=>{const {commandName:_0x45d36c,commandParams:_0xfb082=[]}=_0x135c2c,_0x64589f=_0x5216b1['map'](_0x361f5f=>(Gt(_0x361f5f)&&(_0x361f5f=this['_model']['createRange'](_0x361f5f['end'])),_0x361f5f))['filter'](_0x4170f3=>'$graveyard'!==_0x4170f3['root']['rootName']);if(_0x64589f['length']<0x1)return;const _0x568b9a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34eec8=>_0x51fe0f['fromRange'](_0x34eec8));_0x8a5512['setSelection'](_0x64589f);for(const _0x1cac67 of this['_editor']['commands']['commands']())_0x1cac67['refresh']();_0xfb082['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x45d36c,..._0xfb082);const _0x23fe7c=_0x568b9a['filter'](_0x1147c3=>'$graveyard'!=_0x1147c3['root']['rootName']);_0x23fe7c['length']>0x0&&_0x8a5512['setSelection'](_0x23fe7c);for(const _0x25b577 of _0x568b9a)_0x25b577['detach']();});},_0x10ca42=(_0x2471c1,_0x142f70)=>0x1==_0x2471c1['length']&&0x1==_0x142f70['length']&&_0x2471c1[0x0]['end']['isEqual'](_0x142f70[0x0]['start']),_0x219ddd=(_0x2b8336,_0x6fb515,_0x4bc322,_0x5aa69d)=>zt(_0x2b8336,_0x6fb515,_0x4bc322,_0x5aa69d)?[_0x2b8336,_0x6fb515]:zt(_0x6fb515,_0x2b8336,_0x5aa69d,_0x4bc322)?[_0x6fb515,_0x2b8336]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x23f79f),this['_defaultCallbacks']['set']('insertion:discard',_0x44b5b1),this['_defaultCallbacks']['set']('insertion:join',_0x10ca42),this['_defaultCallbacks']['set']('insertion:chain',_0x219ddd),this['_defaultCallbacks']['set']('deletion:accept',_0x44b5b1),this['_defaultCallbacks']['set']('deletion:discard',_0x23f79f),this['_defaultCallbacks']['set']('deletion:join',_0x10ca42),this['_defaultCallbacks']['set']('deletion:chain',_0x219ddd),this['_defaultCallbacks']['set']('formatInline:accept',_0x26a0e1),this['_defaultCallbacks']['set']('formatInline:discard',_0x23f79f),this['_defaultCallbacks']['set']('formatInline:join',_0x10ca42),this['_defaultCallbacks']['set']('formatInline:chain',_0x23f79f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x26a0e1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x23f79f),this['_defaultCallbacks']['set']('formatBlock:join',_0x10ca42),this['_defaultCallbacks']['set']('formatBlock:chain',_0x23f79f),this['_defaultCallbacks']['set']('attribute:accept',_0x23f79f),this['_defaultCallbacks']['set']('attribute:discard',(_0x1b169a,_0x5a042a)=>{if(!_0x5a042a)return;const _0x220754=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1a4621=>{if(_0x5a042a['key']==u)for(const _0x1a0f59 of _0x1b169a){const _0x467c2d=_0x1a0f59['start']['nodeAfter'],_0x478eb3=_0x5a042a['oldValue'];_0x1a4621['rename'](_0x467c2d,_0x478eb3);}else{if(_0x220754['_isBlockAttribute'](_0x5a042a['key'])){for(const _0x544848 of _0x1b169a)void 0x0!==_0x5a042a['oldValue']?_0x1a4621['setAttribute'](_0x5a042a['key'],_0x5a042a['oldValue'],_0x544848['start']['nodeAfter']):_0x1a4621['removeAttribute'](_0x5a042a['key'],_0x544848['start']['nodeAfter']);}else{for(const _0x483999 of _0x1b169a)_0x5a042a['oldValue']?_0x1a4621['setAttribute'](_0x5a042a['key'],_0x5a042a['oldValue'],_0x483999):_0x1a4621['removeAttribute'](_0x5a042a['key'],_0x483999);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x10ca42);}}function Pt(_0x5885d9,_0x393506,_0x9c7fd1){for(const _0x2f0d4c of _0x393506['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2f0d4c['root']==_0x2f0d4c)return!0x1;if(!_0x9c7fd1['containsItem'](_0x2f0d4c))return!0x1;if(_0x5885d9['isObject'](_0x2f0d4c)||_0x5885d9['isLimit'](_0x2f0d4c))return!0x0;}return!0x1;}function Gt(_0x20048e){return _0x20048e['end']['parent']==_0x20048e['start']['nodeAfter']&&_0x20048e['end']['isAtStart'];}function Lt(_0x10e990,_0x18f509,_0x686f9d,_0x587905){const _0x5a57ec=_0x34a921=>!_0x34a921['item']['is']('$textProxy')&&!_0x587905['isObject'](_0x34a921['item']),_0x19b489=_0x10e990['start']['getLastMatchingPosition'](_0x5a57ec),_0x2ab1b5=_0x10e990['end']['getLastMatchingPosition'](_0x5a57ec,{'direction':'backward'});return(!_0x10e990['start']['isEqual'](_0x19b489)||!_0x10e990['end']['isEqual'](_0x2ab1b5))&&(_0x19b489['isBefore'](_0x2ab1b5)?_0x686f9d['updateMarker'](_0x18f509,{'range':_0x686f9d['createRange'](_0x19b489,_0x2ab1b5)}):_0x686f9d['removeMarker'](_0x18f509),!0x0);}function Jt(_0x16a38b){return _0x45cfb7(_0x16a38b);}function Kt(_0x4ea5c8){const _0x501293=_0x4ea5c8['start']['nodeAfter'];return _0x501293&&_0x501293['is']('element');}function Ht(_0x1e5eda,_0x6e704a){return null==_0x1e5eda['end']['nodeBefore']&&_0x1e5eda['end']['parent']==_0x1e5eda['start']['nodeAfter']?qt(_0x1e5eda['start']['nodeAfter'],_0x6e704a):_0x1e5eda;}function qt(_0x5a7a58,_0x3eefde){const _0x61448b=_0x3eefde['schema']['isObject'](_0x5a7a58)||_0x3eefde['schema']['isSelectable'](_0x5a7a58);return _0x3eefde['createRange'](_0x3eefde['createPositionAt'](_0x5a7a58,'before'),_0x61448b?_0x3eefde['createPositionAfter'](_0x5a7a58):_0x3eefde['createPositionAt'](_0x5a7a58,'end'));}function zt(_0x4c2de2,_0x580e87,_0x426206,_0x4046b6){return!!Wt(_0x4c2de2,_0x580e87)&&_0x426206['end']['isEqual'](_0x4046b6['start']);}function Wt(_0x481d00,_0x169324){if(!_0x481d00['_isDataLoaded']||!_0x169324['_isDataLoaded'])return!0x1;const _0x5577a7=new Set(Object['keys'](_0x481d00['attributes'])),_0x1fbd5d=new Set(Object['keys'](_0x169324['attributes']));if(_0x5577a7['delete']('groupId'),_0x1fbd5d['delete']('groupId'),0x0==_0x5577a7['size']&&0x0==_0x1fbd5d['size'])return!0x0;if(_0x5577a7['size']!=_0x1fbd5d['size'])return!0x1;const _0x339312={..._0x481d00['attributes']},_0x51557a={..._0x169324['attributes']};return delete _0x339312['groupId'],delete _0x51557a['groupId'],JSON['stringify'](_0x339312)==JSON['stringify'](_0x51557a);}function Qt(_0x5cd3d8,_0x4f33a1){const _0xf937f4=Xt(_0x5cd3d8['attributes']),_0x3342e7=Xt(_0x4f33a1);if(!_0x5cd3d8['_isDataLoaded'])return!0x1;for(const _0x225a9e of Object['keys'](_0x3342e7))if(!_0x21c99e(_0xf937f4[_0x225a9e],_0x3342e7[_0x225a9e]))return!0x1;return!0x0;}function Xt(_0x533a58){const _0x3a18f5=Object['assign']({},_0x533a58);return delete _0x3a18f5['skipNestingCheck'],delete _0x3a18f5['tablePasteChainId'],_0x3a18f5;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x4c8e05(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2b0dd7,_0x47f81f,_0x477823,_0x38e8d4){super(),this['model']=_0x47f81f,this['view']=_0x477823,this['commentThreadController']=_0x38e8d4,this['_editor']=_0x2b0dd7,this['_acceptCommand']=_0x2b0dd7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2b0dd7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x186b14,_0x584d93)=>_0x186b14||_0x584d93),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x532766=>_0x532766&&this['_editor']['model']['canEditAt'](_0x47f81f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x85bc10=>_0x85bc10&&this['_editor']['model']['canEditAt'](_0x47f81f['getRanges']())),this['_pendingAction']=null,_0x477823['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x477823,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x477823,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x477823,'change:isDirty',()=>{_0x477823['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x3c21a5=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3c21a5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4a6fb7{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2573cb,_0x4baca9,_0x216adb,_0x260d4d){super(_0x2573cb),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2deb1f(_0x2573cb,c(_0x2573cb,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4baca9['authoredAt']),this['bind']('authoredAt')['to'](_0x4baca9),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x4baca9,'authoredAt',this,'descriptionParts',(_0x346e6f,_0x20818b,_0x19e03f)=>{const _0x19317b=_0x19e03f['map'](_0x372082=>ls(_0x372082['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x346e6f-0x1,_0x4baca9['author']['name'],_0x20818b?_0x260d4d['formatDateTime'](_0x20818b):'',new DOMParser()['parseFromString'](_0x19317b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x279781(),this['focusTracker']=new _0x14ac43(),this['keystrokes']=new _0x4e433a(),this['focusCycler']=new _0x15a3e8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x41b32d=>_0x41b32d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4baca9,this['_localUser']=_0x216adb,this['_config']=_0x260d4d,_0x260d4d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x32509a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1fb3a9}=this['_config'];this['commentsListView']=new _0x1fb3a9(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x5e2960=>_0x5e2960+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x79d930,_0x347310)=>_0x79d930||!!_0x347310);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2f28ca}=this['_config'],_0x49fff8=new _0x2f28ca(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5b2ea0=_0x49fff8['commentInputView'];return _0x49fff8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5b2ea0,'value',(_0x2d2306,_0x40b871,_0x1e4730)=>!!_0x1e4730||_0x2d2306&&!_0x40b871),_0x5b2ea0['on']('submit',(_0x32e02e,_0x3d6433)=>{this['fire']('addComment',_0x3d6433),_0x5b2ea0['editor']['setData']('');}),_0x5b2ea0['on']('cancel',()=>this['focus']()),_0x5b2ea0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x49fff8;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5b346a,_0x29e447,_0x41686b,_0x1aede6){super(_0x5b346a,_0x29e447,_0x41686b,_0x1aede6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3b9dc7=>_0x3b9dc7&&_0x3b9dc7[0x0]?_0x3b9dc7[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1cee50,_0x762bf9)=>{let _0x247115='';for(const _0x158cee of _0x1cee50)_0x247115+='<p>'+ls(_0x158cee['content'],_0x158cee['color'])+'</p>';return _0x762bf9?_0x247115:ti(_0x247115,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1aede6['SuggestionView'](_0x5b346a,_0x29e447,{'formatDateTime':_0x1aede6['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x25153d=this['bindTemplate'],_0x26cf3b=[this['suggestionView']];return this['commentsListView']&&_0x26cf3b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x26cf3b['push'](this['commentThreadInputView']),_0x26cf3b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x25153d['if']('isActive','ck-suggestion-wrapper--active'),_0x25153d['to']('type',_0x4f57b4=>'ck-suggestion-'+_0x4f57b4),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x25153d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x26cf3b};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x4a6fb7{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x512d3,_0x4acdd6,_0x4b1b65){super(_0x512d3),this['_model']=_0x4acdd6,this['_config']=_0x4b1b65,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4acdd6),this['acceptButton']=this['_createButton'](c(_0x512d3,'Accept\x20suggestion'),_0x2b91d8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x512d3,'Discard\x20suggestion'),_0x4dce2c,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3456bc(_0x512d3,_0x4acdd6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x279781([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x14ac43(),this['keystrokes']=new _0x4e433a(),this['focusCycler']=new _0x15a3e8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x27a27d=>_0x27a27d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x168bcc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x168bcc['innerHTML']=this['description'],this['on']('change:description',(_0x4a470f,_0x465db6,_0x42ec03)=>{_0x168bcc['innerHTML']=_0x42ec03;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x10e7f1=this['bindTemplate'],_0x443ee6=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x10e7f1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x10e7f1['to']('authoredAt',_0xe870f6=>this['_config']['formatDateTime'](_0xe870f6))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x443ee6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x443ee6}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4d4bd8,_0x5eb7a7,_0x1061ad,_0x4c82bf,_0x3d348e){const _0x35d517=new _0x4b87e5(this['locale']);return _0x35d517['set']({'label':_0x4d4bd8,'icon':_0x5eb7a7,'tooltip':!0x0,'tooltipPosition':_0x3d348e}),_0x35d517['extendTemplate']({'attributes':{'class':_0x1061ad}}),_0x35d517['on']('execute',()=>{this['fire'](_0x4c82bf,this['_model']['id']);}),_0x35d517;}['_setupKeyboardNavigation'](){const _0x2643f3=this['element'];this['keystrokes']['listenTo'](_0x2643f3);for(const _0x21e7ec of this['focusables'])this['focusTracker']['add'](_0x21e7ec['element']),this['keystrokes']['listenTo'](_0x21e7ec['element']);this['keystrokes']['set']('enter',(_0x445490,_0x774372)=>{_0x2643f3===_0x445490['target']&&(this['focusCycler']['focusFirst'](),_0x774372());}),this['keystrokes']['set']('esc',(_0x4a2e15,_0x4a4a22)=>{_0x2643f3!==_0x4a2e15['target']&&(this['focus'](),_0x4a4a22());});}}class d extends _0x45133c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1b4cac,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30d778){super(_0x30d778),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x516b00=this['editor']['config'];_0x516b00['define']('trackChanges.SuggestionThreadView',fe),_0x516b00['define']('trackChanges.SuggestionView',we),_0x516b00['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x516b00['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x36cc29,_0x315381){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x363f9b,_0x5cb4bc]of this['_handleControllerBuffer']){const _0x4ef8aa=this['_suggestionToController']['has'](_0x363f9b);_0x4ef8aa||_0x5cb4bc?_0x4ef8aa&&_0x5cb4bc&&this['_destroyController'](_0x363f9b):this['_initializeController'](_0x363f9b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x36cc29,_0x315381);}['init'](){const _0x3f9ce2=this['editor'],_0xd24a13=_0x3f9ce2['plugins']['get']('TrackChangesEditing'),_0x4c8cfd=_0x3f9ce2['plugins']['get']('Annotations'),_0x12868b=_0x3f9ce2['plugins']['get']('EditorAnnotations'),_0xad72f9=_0x3f9ce2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x12868b['addSourceCollector'](()=>{const _0x3fdef5=[];for(const [_0x24baba,_0x1be3eb]of Array['from'](this['_suggestionToController'])){const _0x23fe94=_0x24baba['getAllAdjacentSuggestions'](),_0x31820e=[];for(const _0x4ac6fe of _0x23fe94){if(!_0x4ac6fe['isInContent'])continue;if(_0x4ac6fe['isMultiRange']){_0x31820e['push'](..._0x4ac6fe['getRanges']());continue;}const _0x22bb47=_0x4ac6fe['getFirstRange']();if(_0x31820e['length']>0x0){const _0x20f456=_0x31820e[0x0]['getJoined'](_0x22bb47);if(_0x20f456){_0x31820e[0x0]=_0x20f456;continue;}}_0x31820e['push'](_0x22bb47);}_0x3fdef5['push']([_0x1be3eb['view'],_0x31820e]);}return _0x3fdef5;}),this['listenTo'](_0xd24a13,'suggestionLoaded',(_0x23ddcd,_0x48c6cf)=>{this['listenTo'](_0x48c6cf,'change:previous',(_0x5538a7,_0x159a46,_0x447333,_0x46af01)=>{_0x48c6cf['isInContent']&&(null==_0x447333?(this['_updateController'](_0x46af01['head']),this['_handleSuggestionControllerDelayed'](_0x48c6cf,!0x1)):(this['_updateController'](_0x447333['head']),null==_0x46af01&&this['_handleSuggestionControllerDelayed'](_0x48c6cf,!0x0)));}),null!==_0x48c6cf['previous']?this['_updateController'](_0x48c6cf['head']):this['_handleSuggestionControllerDelayed'](_0x48c6cf,!0x1);}),this['listenTo'](_0xd24a13,'suggestionUnloaded',(_0x19b15b,_0x349c7d,_0x4e115b)=>{this['stopListening'](_0x349c7d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x349c7d),this['_suggestionToController']['has'](_0x349c7d)&&this['_destroyController'](_0x349c7d),_0x4e115b&&this['_updateController'](_0x4e115b['head']);}),this['listenTo'](_0xd24a13,'suggestionChanged',(_0x4ed90c,_0x7feb07)=>{this['_updateController'](_0x7feb07);}),this['listenTo'](_0x4c8cfd,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xad72f9,'addComment',(_0x4b73f0,{threadId:_0x4a45b4,isFromAdapter:_0x331d88})=>{if(_0x331d88||!_0xd24a13['hasSuggestion'](_0x4a45b4))return;const _0x2a7b4e=_0xd24a13['getSuggestion'](_0x4a45b4);this['_suggestionToController']['get'](_0x2a7b4e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x21bccb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47e7b7;for(const _0x3c8485 in _0x21bccb){const _0x2c2676=_0x3c8485,_0x2605f2=_0x21bccb[_0x2c2676];if('trackChangesLicenseKeyValid'==_0x2605f2||'trackChangesLicenseKeyInvalid'==_0x2605f2||'trackChangesLicenseKeyExpired'==_0x2605f2||'trackChangesLicenseKeyDomainLimit'==_0x2605f2||'trackChangesLicenseKeyNotAllowed'==_0x2605f2||'trackChangesLicenseKeyEvaluationLimit'==_0x2605f2||'trackChangesLicenseKeyTrialLimit'==_0x2605f2||'trackChangesLicenseKeyUsageLimit'==_0x2605f2){delete _0x21bccb[_0x2c2676],_0x47e7b7=_0x2605f2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x47e7b7&&_0x21bccb['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x47e7b7&&_0x21bccb['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x47e7b7&&_0x21bccb['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x47e7b7&&_0x21bccb['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x47e7b7&&_0x21bccb['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x47e7b7&&_0x21bccb['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x47e7b7&&_0x21bccb['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1bdef4=this['editor']['plugins']['get']('Annotations'),_0x1410f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8cdcc8=Array['from'](_0x1bdef4['activeAnnotations'],_0x526dd8=>_0x526dd8['innerView'])['filter'](_0x56da06=>this['_viewToController']['has'](_0x56da06)),_0x28b82f=[];for(const _0x5c4489 of _0x8cdcc8){const _0x3564ae=this['_viewToController']['get'](_0x5c4489)['model']['getAllAdjacentSuggestions']();_0x28b82f['push'](..._0x3564ae['reduce']((_0x439180,_0x4e64e5)=>[..._0x439180,..._0x4e64e5['getMarkerNames']()],[]));}_0x1410f0['activeMarkers']=_0x28b82f;}['_addUIComponentsToFactory'](){const _0x2684b5=this['editor'],_0x56ea33=_0x2684b5['locale'],_0x2f8466=c(_0x56ea33,'Track\x20changes'),_0x6daeed=new _0x5ea54c([{'type':'switchbutton','model':new _0x1d26cd({'withText':!0x0,'isToggleable':!0x0,'label':_0x2f8466,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1d26cd({'withText':!0x0,'label':c(_0x56ea33,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d26cd({'withText':!0x0,'label':c(_0x56ea33,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d26cd({'withText':!0x0,'label':c(_0x56ea33,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d26cd({'withText':!0x0,'label':c(_0x56ea33,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2684b5['plugins']['has']('TrackChangesPreview')&&_0x6daeed['addMany']([{'type':'separator'},{'type':'button','model':new _0x1d26cd({'withText':!0x0,'label':c(_0x56ea33,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x49107d of _0x6daeed)if(ke(_0x49107d)){const _0x561262=_0x2684b5['commands']['get'](_0x49107d['model']['commandName']);_0x49107d['model']['bind']('isOn','isEnabled')['to'](_0x561262,'value','isEnabled');}_0x2684b5['ui']['componentFactory']['add']('trackChanges',_0x28fc4b=>this['_createToolbarButton'](_0x28fc4b,_0x6daeed,_0x2f8466)),_0x2684b5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x109655=>this['_createMenuBarMenu'](_0x109655,_0x6daeed,_0x2f8466));}['_createToolbarButton'](_0x2f830c,_0x46ac95,_0x566681){const _0x2ce97f=_0xfda68c(_0x2f830c,_0x309917),_0x48826f=this['editor']['commands']['get']('trackChanges');_0x2ce97f['buttonView']['set']({'tooltip':_0x566681,'label':_0x566681,'icon':_0x15158e}),_0x2ce97f['buttonView']['bind']('isOn')['to'](_0x48826f,'value'),_0x2ce97f['buttonView']['on']('execute',()=>{_0x48826f['execute'](),this['editor']['editing']['view']['focus']();}),_0x2bb6dd(_0x2ce97f,_0x46ac95,{'role':'menu'});const _0x101259=[];for(const _0x462fc2 of _0x46ac95)ke(_0x462fc2)&&_0x101259['push'](this['editor']['commands']['get'](_0x462fc2['model']['commandName']));const _0x5d8f2d=_0x2ce97f['buttonView'];return _0x5d8f2d['actionView']['unbind']('isEnabled'),_0x5d8f2d['arrowView']['unbind']('isEnabled'),_0x5d8f2d['actionView']['bind']('isEnabled')['to'](_0x48826f,'isEnabled'),_0x5d8f2d['arrowView']['bind']('isEnabled')['toMany'](_0x101259,'isEnabled',(..._0x831dfc)=>_0x831dfc['some'](_0x250b30=>_0x250b30)),_0x2ce97f['on']('execute',_0x4e5962=>{this['editor']['execute'](_0x4e5962['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ce97f;}['_createMenuBarMenu'](_0x11f5be,_0xfb91ae,_0x2d63e9){const _0x2367d8=new _0x2af4e2(_0x11f5be),_0x44831b=this['editor']['commands']['get']('trackChanges');_0x2367d8['buttonView']['set']({'label':_0x2d63e9,'icon':_0x15158e});const _0x2c0847=new _0x14bb6a(_0x11f5be);for(const _0x82934c of _0xfb91ae){if('separator'==_0x82934c['type']){_0x2c0847['items']['add'](new _0x2fbf22(_0x11f5be));continue;}const _0x103fcd=new _0x397023(_0x11f5be,_0x2367d8),_0x4cc570=new _0x9e6c9d(_0x11f5be),_0x404089=_0x82934c['model'];_0x4cc570['bind'](...Object['keys'](_0x404089))['to'](_0x404089),_0x4cc570['delegate']('execute')['to'](_0x2367d8),_0x4cc570['on']('execute',()=>{this['editor']['execute'](_0x404089['commandName']),this['editor']['editing']['view']['focus']();}),_0x103fcd['children']['add'](_0x4cc570),_0x2c0847['items']['add'](_0x103fcd);}return _0x2367d8['bind']('isEnabled')['to'](_0x44831b,'isEnabled'),_0x2367d8['panelView']['children']['add'](_0x2c0847),_0x2367d8;}['_initializeController'](_0x3192d2){const _0x5ed342=this['editor'],_0x5df1e4=_0x5ed342['config'],_0x34a879=_0x5ed342['plugins']['get']('Annotations'),_0x373fd8=_0x5ed342['plugins']['get']('CommentsRepository'),_0x16b2ae=_0x5ed342['plugins']['get']('EditorAnnotations'),_0x513bed=_0x5ed342['plugins']['get'](_0x1b4cac)['me'],_0x2291b6=_0x5df1e4['get']('trackChanges')['SuggestionThreadView'],_0x3f2b52=_0x5df1e4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x547ee9,CommentThreadInputView:_0x418b89}=_0x5ed342['plugins']['get']('CommentsUI');let _0x293003,_0x2104db,_0x560850;this['_annotationViews']['has'](_0x3192d2['id'])?(_0x2104db=this['_annotationViews']['get'](_0x3192d2['id']),_0x293003=_0x2104db['mainView']):(_0x293003=new _0x2291b6(_0x5ed342['locale'],_0x3192d2,_0x513bed,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5df1e4['get']('comments.editorConfig'),'licenseKey':_0x5df1e4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5df1e4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5df1e4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5df1e4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x59c366(_0x5df1e4['get']('locale')),'CommentView':_0x5df1e4['get']('comments')['CommentView'],'CommentsListView':_0x547ee9,'CommentThreadInputView':_0x418b89,'SuggestionView':_0x3f2b52}),_0x293003['suggestionView']['acceptButton']['on']('execute',()=>{_0x5ed342['editing']['view']['focus']();}),_0x293003['suggestionView']['discardButton']['on']('execute',()=>{_0x5ed342['editing']['view']['focus']();}),_0x2104db=_0x34a879['createAnnotationView'](this['editor']['locale'],_0x293003),_0x2104db['bind']('isDirty')['to'](_0x293003,'isDirty'),_0x2104db['bind']('length')['to'](_0x293003),_0x2104db['bind']('type')['to'](_0x293003,'type',_0x4e712e=>'suggestion-'+_0x4e712e),_0x293003['on']('escape',()=>{_0x560850['fire']('escape');}),this['_annotationViews']['set'](_0x3192d2['id'],_0x2104db));const _0x274e21=_0x373fd8['createCommentThreadController'](_0x3192d2['commentThread'],_0x293003),_0x14a0fe=new pe(_0x5ed342,_0x3192d2,_0x293003,_0x274e21),_0x26d914=_0x3192d2['getAllAdjacentSuggestions']()['filter'](_0x3542ae=>_0x3542ae['isInContent']);_0x293003['descriptionParts']=_0x5ed342['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x26d914),this['_suggestionToController']['set'](_0x3192d2,_0x14a0fe),this['_viewToController']['set'](_0x293003,_0x14a0fe),_0x560850=_0x34a879['createAnnotation']({'view':_0x2104db,'target':()=>{const _0x56edd9=[],_0x6dba8=_0x3192d2['getAllAdjacentSuggestions']()['filter'](_0x12713e=>_0x12713e['isInContent']);for(const _0x4a0280 of _0x6dba8)_0x56edd9['push'](..._0x4a0280['getMarkers']());return _0x462d3c(_0x5ed342['editing'],_0x56edd9);},'type':()=>'suggestion-'+_0x14a0fe['view']['type']}),_0x373fd8['_bindAnnotationToEditors'](_0x293003,_0x560850),_0x34a879['add'](_0x560850),_0x16b2ae['registerAnnotation'](_0x560850);}['_destroyController'](_0x47ea0f){const _0x8b3a30=this['editor']['plugins']['get']('CommentsRepository'),_0x87a2f5=this['editor']['plugins']['get']('Annotations'),_0x2e6293=this['_suggestionToController']['get'](_0x47ea0f),_0x11278e=_0x2e6293['view'],_0x3ccc0a=_0x87a2f5['getByInnerView'](_0x11278e);_0x8b3a30['_unbindEditors'](_0x11278e),_0x3ccc0a&&_0x87a2f5['remove'](_0x3ccc0a),this['_suggestionToController']['delete'](_0x47ea0f),this['_viewToController']['delete'](_0x11278e),_0x2e6293['destroy']();}['_updateController'](_0x40fbc5){if(!_0x40fbc5['isInContent']||!this['_suggestionToController']['has'](_0x40fbc5))return;const _0x188d3f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e6c94=this['_suggestionToController']['get'](_0x40fbc5),_0x3d6e92=_0x40fbc5['getAllAdjacentSuggestions']();_0x1e6c94['view']['descriptionParts']=_0x188d3f['descriptionFactory']['getDescriptions'](_0x3d6e92);}['destroy'](){for(const _0x128893 of this['_suggestionToController']['keys']())this['_destroyController'](_0x128893);for(const _0x5eb780 of this['_annotationViews']['values']())_0x5eb780['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x101da1){return'model'in _0x101da1;}class k extends _0x45133c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x584878){this['editor']['plugins']['get'](p)['adapter']=_0x584878;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4906e4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4906e4);}['getSuggestions']({skipNotAttached:_0x4ea5e2=!0x1,toJSON:_0x24eb50=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4ea5e2,'toJSON':_0x24eb50});}['getSuggestion'](_0x3b6781){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3b6781);}}const w=['Pagination'];class T extends _0x45133c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2a1570=this['editor'];if(_0x2a1570['config']['define']('trackChangesData.editorCreator',_0x4e8152=>{const _0x5ad263=_0x2a1570['model']['document']['getRootNames']()['reduce']((_0x467953,_0x32c6b3)=>(_0x467953[_0x32c6b3]='',_0x467953),{});return _0x2a1570['constructor']['create'](_0x5ad263,_0x4e8152);}),'function'!=typeof _0x2a1570['config']['get']('trackChangesData')['editorCreator'])throw new _0x5dd626('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x29640d){return N(this['editor'],!0x0,_0x29640d);}['getDataWithDiscardedSuggestions'](_0x24016e){return N(this['editor'],!0x1,_0x24016e);}}class D extends _0x45133c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4c1f0f){function _0x2ada90(_0x4fa9b8){return _0x4fa9b8['map'](_0xd04df9=>String['fromCharCode'](_0xd04df9))['join']('');}super(_0x4c1f0f),this['result']='end',_0x4c1f0f[_0x2ada90([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ada90([0x76,0x69,0x65,0x77])][_0x2ada90([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ada90([0x61,0x75,0x74,0x6f]),_0x4c1f0f[_0x2ada90([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2ada90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ada90([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2ada90([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2ada90([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x464f5e){return void 0x0!==_0x464f5e['getRootsAttributes'];}async function N(_0x31c148,_0x3cbda7,_0x190cd7){const _0x58f75d=_0x2e21b6(_0x31c148,w);_0x58f75d['plugins']['push'](p,D),_0x58f75d['rootsAttributes']=Fe(_0x31c148)?_0x31c148['getRootsAttributes']():void 0x0;const _0x40bfab=document['createDocumentFragment'](),_0x10333a=_0x31c148['config']['get']('trackChangesData')['editorCreator'],_0x1a74d6=await _0x10333a(_0x58f75d,()=>function(_0x494ef2){const _0x3afe93=document['createElement']('div');return _0x494ef2['appendChild'](_0x3afe93),_0x3afe93;}(_0x40bfab));!function(_0x896a65,_0xc38e12){const _0x5db74c=_0x896a65['model']['document']['getRootNames']()['reduce']((_0x363372,_0x1f8d8b)=>(_0x363372[_0x1f8d8b]=_0x896a65['data']['get']({'rootName':_0x1f8d8b}),_0x363372),{}),_0x51d521=_0x896a65['plugins']['get']('Users')['users']['map'](_0x481cd1=>({'id':_0x481cd1['id'],'name':_0x481cd1['name']})),_0x2eb09f=_0x896a65['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x58ed06=_0x896a65['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3811f5=_0xc38e12['plugins']['get']('Users'),_0x16c272=_0xc38e12['plugins']['get']('TrackChangesEditing'),_0x1792bf=_0xc38e12['plugins']['get']('CommentsRepository');for(const _0x866cab of _0x1792bf['getCommentThreads']())_0x866cab['remove']();for(const _0x53726f of _0x51d521)_0x3811f5['getUser'](_0x53726f['id'])||_0x3811f5['addUser'](_0x53726f);_0x3811f5['me']||_0x3811f5['useAnonymousUser']();for(const _0x5d2cf4 of _0x58ed06)_0x1792bf['addCommentThread'](_0x5d2cf4);for(const _0x450bed of _0x2eb09f)_0x16c272['addSuggestionData'](_0x450bed);_0xc38e12['data']['set'](_0x5db74c);}(_0x31c148,_0x1a74d6),_0x1a74d6['execute'](_0x3cbda7?'acceptAllSuggestions':'discardAllSuggestions');const _0x59a3dd=Fe(_0x1a74d6)?_0x1a74d6['getFullData'](_0x190cd7):_0x1a74d6['data']['get'](_0x190cd7);return await _0x1a74d6['destroy'](),_0x59a3dd;}class Me extends _0x4a6fb7{['options'];constructor(_0x472af9,_0x39ae5f){super(_0x472af9),this['options']=_0x39ae5f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x55bc69,_0x551622){if(!this['element'])return;const _0x2b9302=[];for(const [_0x3ba2ac,_0x4fc038]of _0x55bc69){const _0x29078c=document['createElement']('div');_0x29078c['setAttribute']('data-ck-root-name',_0x3ba2ac),_0x29078c['className']=_0x4fc038['classes']+'\x20ck-track-changes-preview__root-container',_0x29078c['innerHTML']=_0x4fc038['content'],_0x2b9302['push'](_0x29078c);}_0x551622(this['element'],_0x2b9302),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x32beec{constructor(_0x2726e4){super(_0x2726e4),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x29b652=this['editor'],_0xb03dcd=_0x29b652['locale'],_0x1b3dd5=_0x29b652['plugins']['get']('Dialog');let _0x293d4b;const _0x29b312=function(_0xcdabd7){const _0x482b04={};if('editables'in _0xcdabd7['ui']['view']){for(const [_0x3f700a,_0x114af5]of Object['entries'](_0xcdabd7['ui']['view']['editables']))_0x482b04[_0x3f700a]=_0x114af5['element'];}else _0x482b04[_0xcdabd7['model']['document']['getRootNames']()[0x0]]=_0xcdabd7['ui']['view']['editable']['element'];return _0x482b04;}(_0x29b652),_0x171c7c=function(_0x9d90ad){let _0x4fdc31=0x0;for(const _0x5bddd3 of Object['values'](_0x9d90ad))_0x4fdc31=Math['max'](_0x4fdc31,_0x5bddd3['getBoundingClientRect']()['width']);let _0x18753a=0x0;for(const _0x461c57 of Object['values'](_0x9d90ad))_0x18753a+=_0x461c57['getBoundingClientRect']()['height'];const _0x5cff4e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5250ce=Math['min'](_0x18753a,_0x5cff4e);return{'width':_0x4fdc31,'height':_0x5250ce};}(_0x29b312);_0x1b3dd5['show']({'id':'finalContentPreview','title':c(_0xb03dcd,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xb03dcd,{'dialogRects':_0x171c7c}),'onHide':()=>{_0x293d4b['detachFromDom']();},'onShow':()=>{_0x29b652['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x7ea794=>{const _0x15b42c=this['_standarizeRootsData'](_0x7ea794,_0x29b652,_0x29b312);_0x1b3dd5['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x15b42c,_0x29b652['config']['get']('trackChanges.preview.renderFunction'));}),_0x293d4b=new _0x1a89ef(_0xb03dcd,[_0x1b3dd5['view']]),_0x293d4b['attachToDom'](),_0x293d4b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x29b652['once']('destroy',()=>{_0x293d4b['detachFromDom']();});const _0x2ce427=_0x1b3dd5['view']['headerView']['class'];_0x1b3dd5['view']['headerView']['class']=_0x2ce427?_0x2ce427+'\x20ck-reset_all':'ck-reset_all',_0x1b3dd5['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1b3dd5['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2ec73f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4a75f0=_0x2ec73f['previewMode'],_0x2156a8={};if('$labels'===_0x4a75f0){for(const _0x44d84c of _0x2ec73f['getMergeFieldsIds']())_0x2156a8[_0x44d84c]=_0x2ec73f['getLabel'](_0x44d84c)||_0x44d84c;}else{const _0x223c07='$defaultValues'===_0x4a75f0?_0x2ec73f['getDefaultValues']():_0x2ec73f['getDataSetValues'](_0x4a75f0,!0x0);for(const _0x226d0e of Object['entries'](_0x223c07)){const [_0x5732f1,_0x3bb408]=_0x226d0e;_0x2156a8[_0x5732f1]=null!==_0x3bb408?_0x3bb408:_0x2ec73f['getLabel'](_0x5732f1)||_0x5732f1;}}return{'mergeFieldsData':_0x2156a8};}['_standarizeRootsData'](_0x188dc0,_0x4686d9,_0x14fe13){let _0x20c04f;if('string'==typeof _0x188dc0){const _0x11ab1f=_0x4686d9['model']['document']['getRootNames']()[0x0];_0x20c04f={[_0x11ab1f]:_0x188dc0};}else _0x20c04f=_0x188dc0;const _0x58d91d=this['_fixMediaEmbeds'](_0x20c04f,_0x4686d9),_0x265446=function(_0x28a131,_0x195eeb){for(const [_0x2bb3cf,_0x2de880]of _0x28a131)_0x2de880['classes']=_0x195eeb[_0x2bb3cf]['classList']['value']['replace']('ck-focused','');return _0x28a131;}(this['_sortRoots'](_0x4686d9)['reduce']((_0x59e5c6,_0x10b3fa)=>(_0x59e5c6['push']([_0x10b3fa,{'content':_0x58d91d[_0x10b3fa],'classes':''}]),_0x59e5c6),[]),_0x14fe13);return _0x265446;}['_fixMediaEmbeds'](_0x2a3666,_0x4a479e){if(!_0x4a479e['plugins']['has']('MediaEmbedEditing'))return _0x2a3666;const _0x28e8de=_0x4a479e['plugins']['get']('MediaEmbedEditing');for(const [_0x4c1fc2,_0x14e82d]of Object['entries'](_0x2a3666)){const _0x49b3d8=document['createElement']('div');_0x49b3d8['innerHTML']=_0x14e82d,(_0x49b3d8['querySelectorAll']('figure.media')['forEach'](_0x4dc4f9=>{const _0x22e7f7=_0x4dc4f9['querySelector']('oembed');if(_0x22e7f7){const _0x5a5ed3=_0x22e7f7['getAttribute']('url');if(_0x5a5ed3){const _0x4a7664=_0x28e8de['registry']['getMediaViewElement'](new _0x1a1864(_0x4a479e['editing']['view']['document']),_0x5a5ed3,{'elementName':'','renderForEditingView':!0x0}),_0xd85665=document['createElement']('div');_0xd85665['classList']['add']('ck-media__wrapper'),_0x4a7664['render'](_0xd85665,_0x4a479e['editing']['view']['domConverter']),_0x22e7f7['replaceWith'](_0xd85665);}}}),_0x2a3666[_0x4c1fc2]=_0x49b3d8['innerHTML']);}return _0x2a3666;}['_sortRoots'](_0xcb3ad1){if(!function(_0x13bc04){return void 0x0!==_0x13bc04['getRootsAttributes'];}(_0xcb3ad1))return _0xcb3ad1['model']['document']['getRootNames']();const _0xefa919=[],_0x53dc86=new Map();for(const _0x172878 of _0xcb3ad1['model']['document']['getRootNames']()){const _0x3fc31d=_0xcb3ad1['editing']['view']['getDomRoot'](_0x172878)['getClientRects']()['item'](0x0);_0xefa919['push'](_0x172878),_0x53dc86['set'](_0x172878,_0x3fc31d);}return _0xefa919['sort']((_0x16ad52,_0x37bb3b)=>{const _0x330b71=_0x53dc86['get'](_0x16ad52),_0x283078=_0x53dc86['get'](_0x37bb3b);return _0x330b71['y']-_0x283078['y']||_0x330b71['x']-_0x283078['x'];}),_0xefa919;}}class te extends _0x45133c{static get['requires'](){return[T,_0x24c472];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b3be2){super(_0x1b3be2),_0x1b3be2['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1b3be2['config']['define']('trackChanges.preview.renderFunction',(_0x2f0381,_0x30e9f4)=>{for(const _0x1c61c2 of _0x30e9f4)_0x2f0381['appendChild'](_0x1c61c2);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};