@ckeditor/ckeditor5-track-changes 44.1.0-alpha.0 → 44.1.0-alpha.2

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 Qt,Plugin as _0x150ede,PendingActions as _0x113361,icons as _0x31795b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1958fd,ObservableMixin as _0x48b400,uid as _0x2e8c25,insertToPriorityArray as _0x13e127,priorities as _0x253417,logWarning as _0x2780d1,getEnvKeystrokeText as _0x2d0a25,FocusTracker as _0x2ac3fa,KeystrokeHandler as _0x5837bc,Collection as _0x503596}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3a8a0a,View as _0x267cce,ViewCollection as _0x505d1c,FocusCycler as ts,ViewModel as _0x4bee3d,createDropdown as _0x58dc68,SplitButtonView as _0x1dec38,addListToDropdown as te,MenuBarMenuView as _0x48ab82,MenuBarMenuListView as _0x1a74dc,ListSeparatorView as _0x5ca9b1,MenuBarMenuListItemView as _0xadc6cc,MenuBarMenuListItemButtonView as _0x18418b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2d0f5a,hashObject as _0x42e404,surroundingMarkersDetector as _0x505764,FOCUS_ANNOTATION_KEYSTROKE as _0x2ecdda,AriaDescriptionView as _0xeb0b6,setupThreadKeyboardNavigation as _0x3aef4c,trimHtml as ti,UserView as _0x273544,LateFocusButtonView as _0x30f15f,getDateTimeFormatter as _0x460d9c,getAllMarkersDomElementsSorted as _0x55c5eb,sanitizeEditorConfig as _0x149f1b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xedc139,LiveRange as _0x209e44,LivePosition as _0x340738}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5b3ecd,toWidget as _0x2ae26b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x35b988,set as _0x349fe2,isEqual as _0x2116e2,unset as _0x5a07f6,omit as xt}from'lodash-es';import{Delete as _0x218769,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x339da2,ShiftEnter as _0x11242e}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x58328e,_0x3219d5){super(_0x58328e),this['_enabledCommands']=_0x3219d5,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 _0x3af3c4 of this['editor']['commands']['commands']())_0x3af3c4['affectsData']&&!this['_enabledCommands']['has'](_0x3af3c4)&&_0x3af3c4['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5b5ea0 of this['editor']['commands']['commands']())_0x5b5ea0['affectsData']&&!this['_enabledCommands']['has'](_0x5b5ea0)&&_0x5b5ea0['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x451db3,_0x1545fc){super(_0x451db3),this['_suggestions']=_0x1545fc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x38488f){const _0x4dd99b=this['_suggestions']['get'](_0x38488f);if(!_0x4dd99b)throw new _0x1958fd('track-changes-accept-suggestion-not-found',this);const _0x579ad1=_0x4dd99b['getRanges']();this['editor']['model']['canEditAt'](_0x579ad1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4dd99b);}}class R extends Qt{['_suggestions'];constructor(_0xbed55d,_0x361ebf){super(_0xbed55d),this['_suggestions']=_0x361ebf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1613f1){const _0x59492e=this['_suggestions']['get'](_0x1613f1);if(!_0x59492e)throw new _0x1958fd('track-changes-discard-suggestion-not-found',this);const _0x106914=_0x59492e['getRanges']();this['editor']['model']['canEditAt'](_0x106914)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x59492e);}}function ns(_0x5c0c4a,_0xd9f293){let _0x5f2d25='';return _0x5f2d25+=_0x5c0c4a['split']('*')['map']((_0x538635,_0x490e57)=>_0x490e57%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x538635)+'</span>':nn(_0x538635))['join'](''),_0xd9f293&&(_0x5f2d25+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xd9f293['value']+'\x22\x20title=\x22'+_0xd9f293['title']+'\x22></span>'),_0x5f2d25;}function nn(_0x5992bc){const _0x61f0a9=document['createElement']('span');return _0x61f0a9['innerText']=_0x5992bc,_0x61f0a9['innerHTML'];}function Wt(_0x5d9256){return _0x5d9256['sort']((_0x3ced44,_0x430c70)=>'deletion'==_0x3ced44['type']&&'deletion'!=_0x430c70['type']?-0x1:'deletion'!=_0x3ced44['type']&&'deletion'==_0x430c70['type']?0x1:0x0);}function to(_0x3de0d9,_0x1d4149){let _0x3f8802,_0x1e253d=0x0;const _0x1e7956=[],_0x40cc8b=_0x1d4149['schema'];for(;_0x1e253d<_0x3de0d9['length'];){const _0x1c9126=_0x3de0d9[_0x1e253d],_0x5e9c11=_0x3de0d9[_0x1e253d+0x1];_0x3f8802||(_0x3f8802=_0x1d4149['createPositionBefore'](_0x1c9126)),on(_0x1d4149,_0x1c9126,_0x5e9c11)||(_0x1e7956['push'](_0x1d4149['createRange'](_0x3f8802,_0x40cc8b['isObject'](_0x1c9126)?_0x1d4149['createPositionAfter'](_0x1c9126):_0x1d4149['createPositionAt'](_0x1c9126,'end'))),_0x3f8802=null),_0x1e253d++;}return _0x1e7956;}function on(_0x5952d3,_0x3e5a12,_0x2857bf){if(!_0x2857bf)return!0x1;const _0x503bf9=_0x5952d3['createPositionAfter'](_0x3e5a12),_0x11ff92=_0x5952d3['createPositionBefore'](_0x2857bf);return _0x503bf9['isTouching'](_0x11ff92);}function Xt(_0x137bae,_0x1b95c8,_0x5c9000){for(;_0x5c9000['length'];){const _0x2824eb=_0x5c9000['splice'](0x0,0x64);_0x137bae['change'](()=>{for(const _0x19deb8 of _0x2824eb)_0x19deb8['isInContent']&&_0x1b95c8['execute'](_0x19deb8['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x3f0bda,_0x4fbfa1,_0x24e435){super(_0x3f0bda),this['_command']=_0x4fbfa1,this['_suggestions']=_0x24e435,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xdd95b6=Array['from'](this['_suggestions']['values']())['some'](_0x344f43=>_0x344f43['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xdd95b6;}['execute'](){const _0x819cd2=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x339912 of _0x819cd2){const _0x1b9e03=_0x339912['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1b9e03))return;}Xt(this['editor']['model'],this['_command'],_0x819cd2);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x737438,_0x556ea7,_0x134ebb){super(_0x737438),this['_command']=_0x556ea7,this['_suggestions']=_0x134ebb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2aa389=this['editor']['model']['document']['selection'],_0x576bca=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1b58b5,_0x301b92){const _0x30cf01=Array['from'](_0x1b58b5['getRanges']()),_0x1c31b9=new Set();for(const _0x5bd06d of _0x301b92)if(_0x5bd06d['isInContent']){for(const _0x519afc of _0x30cf01)for(const _0x48ae0e of _0x5bd06d['getRanges']())(_0x519afc['isIntersecting'](_0x48ae0e)||_0x1b58b5['isCollapsed']&&!_0x5bd06d['isMultiRange']&&_0x5bd06d['next']&&_0x48ae0e['end']['isTouching'](_0x519afc['start']))&&_0x1c31b9['add'](_0x5bd06d);}return _0x1c31b9;}(_0x2aa389,_0x576bca),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2aaead=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x486151 of _0x2aaead){const _0x29eaf7=_0x486151['getRanges']();if(!this['editor']['model']['canEditAt'](_0x29eaf7))return;}Xt(this['editor']['model'],this['_command'],_0x2aaead);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x48b400(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x169bd5,_0x30f656){super(),this['id']=_0x30f656['id'],this['type']=_0x30f656['type'],this['subType']=_0x30f656['subType']||null,this['author']=_0x30f656['author'],this['creator']=_0x30f656['creator']||_0x30f656['author'],this['isExternal']=Boolean(_0x30f656['attributes']&&_0x30f656['attributes']['@external']),this['data']=null,this['_model']=_0x169bd5,this['_onAccept']=_0x30f656['onAccept'],this['_onDiscard']=_0x30f656['onDiscard'],this['_onAttributesChange']=_0x30f656['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x30f656['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 _0x476a24=this;for(;_0x476a24['previous'];)_0x476a24=_0x476a24['previous'];return _0x476a24;}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'](_0x11f115){this['_markerNames']['add'](_0x11f115);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x228504=>this['_model']['markers']['get'](_0x228504))['filter'](_0x1c3ba8=>_0x1c3ba8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5e5574=>{for(const _0x3e592e of this['getMarkers']())_0x5e5574['removeMarker'](_0x3e592e);}),this['_markerNames']['clear']();}['removeMarker'](_0x470c65){this['_model']['change'](_0x44cdc2=>{_0x44cdc2['removeMarker'](_0x470c65);}),this['_markerNames']['delete'](_0x470c65);}['addRange'](_0x4c82ec){const _0x43e8e9='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x43e8e9),this['_model']['change'](_0xc657fc=>{_0xc657fc['addMarker'](_0x43e8e9,{'range':_0x4c82ec,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4957a3){for(const _0x407e38 of this['getRanges']())if(_0x407e38['isIntersecting'](_0x4957a3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x246fc9=>_0x246fc9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x79f87b,_0x5a3117)=>[..._0x79f87b,..._0x5a3117['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xd612b=this['getRanges']();if(0x1!=_0xd612b['length'])return null;const _0x30a17b=_0xd612b[0x0],_0x46e07b=_0x30a17b['start']['nodeAfter'],_0x366811=_0x30a17b['end']['nodeBefore'];return _0x46e07b instanceof _0xedc139?_0x46e07b!=_0x366811?null:_0x46e07b: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 _0x2856d3=[];let _0x5866cc=this['head'];for(;_0x5866cc;)_0x2856d3['push'](_0x5866cc),_0x5866cc=_0x5866cc['next'];return _0x2856d3;}['setAttribute'](_0x5b3d4b,_0xa79021){const _0x2659b8=_0x35b988(this['attributes']);_0x349fe2(_0x2659b8,_0x5b3d4b,_0xa79021),_0x2116e2(_0x2659b8,this['attributes'])||(this['attributes']=_0x2659b8,this['_onAttributesChange'](_0x2659b8));}['removeAttribute'](_0x4ec8bf){const _0x35a9ed=_0x35b988(this['attributes']);_0x5a07f6(_0x35a9ed,_0x4ec8bf),_0x2116e2(_0x35a9ed,this['attributes'])||(this['attributes']=_0x35a9ed,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 _0x2e8c25()['substr'](0x1,0x5);}}function o(_0x12bc0c,_0x1dca9b,_0x12fc77){const _0x4c5ba3=_0x12bc0c['t'],t=_0x12bc0c['t'];switch(_0x1dca9b){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'*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',_0x12fc77);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x12fc77);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x12fc77);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x12fc77);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x12fc77);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',_0x12fc77);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x12fc77);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x12fc77);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x12fc77);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x12fc77);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x12fc77);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x12fc77);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x12fc77);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x12fc77);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x12fc77);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x12fc77);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x12fc77);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x12fc77);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x12fc77);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x12fc77);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x12fc77);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x12fc77);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x12fc77);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x12fc77);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'},_0x12fc77);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x12fc77);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x12fc77);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x12fc77);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x12fc77);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x12fc77);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'},_0x12fc77);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x12fc77);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x12fc77);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x12fc77);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x12fc77);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'},_0x12fc77);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x12fc77);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'},_0x12fc77);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'},_0x12fc77);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x12fc77);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'},_0x12fc77);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x12fc77);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'},_0x12fc77);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x12fc77);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x12fc77);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'},_0x12fc77);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x12fc77);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 _0x4c5ba3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x12fc77);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4c5ba3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x12fc77);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x12fc77);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'},_0x12fc77);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'},_0x12fc77);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'},_0x12fc77);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1dca9b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x25272a,_0x4c6c27){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x25272a,this['_locale']=_0x4c6c27;}['getDescriptions'](_0x5dec80){const _0x25dfb6=[],_0x18da08=new Set(),_0x20b76d=new Set();for(let _0x277184=0x0;_0x277184<_0x5dec80['length'];_0x277184++){const _0x4d1978=_0x5dec80[_0x277184];if(!_0x4d1978['isInContent'])continue;const _0x496c41=this['_handleCustomCallbackDescription'](_0x4d1978);if(_0x496c41){if(null!=_0x4d1978['subType']){if(_0x18da08['has'](_0x4d1978['subType']))continue;_0x18da08['add'](_0x4d1978['subType']);}_0x25dfb6['push'](_0x496c41);}else{if('attribute'!=_0x4d1978['type'])'insertion'!=_0x4d1978['type']&&'deletion'!=_0x4d1978['type']||this['_handleInsertRemoveSuggestionDescription'](_0x25dfb6,_0x4d1978,_0x5dec80[_0x277184+0x1]);else{const _0x303cfc=_0x4d1978['data']['key'];if(_0x20b76d['has'](_0x303cfc))continue;_0x20b76d['add'](_0x4d1978['data']['key']),_0x303cfc==m?this['_handleRenameSuggestionDescription'](_0x25dfb6,_0x4d1978):this['_handleAttributeSuggestionDescription'](_0x25dfb6,_0x4d1978);}}}return this['_resolveDescriptionItems'](_0x25dfb6);}['registerDescriptionCallback'](_0x2e004e){this['_customCallbacks']['push'](_0x2e004e);}['registerElementLabel'](_0x179876,_0x2c47e4,_0x1e31b6=_0x253417['normal']){'function'==typeof _0x179876?_0x13e127(this['_itemLabelsCallbacks'],{'matchingCallback':_0x179876,'label':_0x2c47e4,'priority':_0x1e31b6}):this['_itemLabels']['set'](_0x179876,_0x2c47e4);}['registerAttributeLabel'](_0x544ed7,_0x1eb193){this['_attributeLabels']['set'](_0x544ed7,_0x1eb193);}['getItemLabel'](_0xa09ceb,_0x1f3de0=0x1){let _0x5327c5;for(const _0x46cac7 of this['_itemLabelsCallbacks'])if(_0x46cac7['matchingCallback'](_0xa09ceb)){_0x5327c5=_0x46cac7['label'];break;}return _0x5327c5||(_0x5327c5=this['_itemLabels']['get'](_0xa09ceb['name'])),_0x5327c5?_0x5327c5(_0x1f3de0):0x1!==_0x1f3de0?_0x1f3de0+'\x20'+_0xa09ceb['name']+'s':''+_0xa09ceb['name'];}['_addDescriptionItems'](_0x168f2b,_0x16b267){const _0x1b2716=_0x16b267['getFirstRange']()['getWalker'](),_0x41dd73='insertion'==_0x16b267['type']?'add':'remove';for(const _0x647711 of _0x1b2716){const _0x19f522=_0x647711['item'],_0xda1e07=_0x168f2b[_0x168f2b['length']-0x1];if(_0x19f522['is']('$textProxy'))_0xda1e07&&_0xda1e07['type']['indexOf']('Container')>-0x1&&_0x168f2b['pop'](),_0xda1e07&&'text'==_0xda1e07['type']?_0xda1e07[_0x41dd73]+=_0x19f522['data']:_0x168f2b['push']({'type':'text','add':'add'==_0x41dd73?_0x19f522['data']:'','remove':'remove'==_0x41dd73?_0x19f522['data']:''});else{if(this['_schema']['isObject'](_0x19f522)){const _0x5be8dc=_0x19f522;if(_0xda1e07&&_0xda1e07['type']['indexOf']('Container')>-0x1&&_0x168f2b['pop'](),'elementEnd'==_0x647711['type'])continue;_0xda1e07&&_0xda1e07['type']==_0x41dd73+'Object'&&_0xda1e07['element']['name']==_0x5be8dc['name']?_0xda1e07['quantity']++:_0x168f2b['push']({'type':_0x41dd73+'Object','element':_0x5be8dc,'quantity':0x1}),_0x1b2716['skip'](_0x240a7=>!('elementEnd'==_0x240a7['type']&&_0x240a7['item']==_0x19f522));}else{if(this['_schema']['checkChild'](_0x19f522,'$text')||_0x19f522['is']('element','softBreak')){const _0x24c991=_0x19f522;if('add'==_0x41dd73&&'elementStart'==_0x647711['type']||'remove'==_0x41dd73&&'elementEnd'==_0x647711['type'])continue;if(_0xda1e07&&-0x1==_0xda1e07['type']['indexOf']('Container')){'text'==_0xda1e07['type']&&(_0xda1e07[_0x41dd73]+='\x0a');continue;}let _0x4ce35f;if(_0x4ce35f='add'==_0x41dd73?_0x24c991['nextSibling']&&!this['_schema']['isObject'](_0x24c991['nextSibling'])?_0x24c991['nextSibling']:null:_0x24c991['previousSibling']&&!this['_schema']['isObject'](_0x24c991['previousSibling'])?_0x24c991['previousSibling']:null,_0x24c991['isEmpty']||_0x4ce35f&&_0x4ce35f['isEmpty']){const _0xcfe931=_0x4ce35f&&_0x4ce35f['isEmpty']?_0x4ce35f:_0x24c991;_0xda1e07&&_0xda1e07['type']==_0x41dd73+'EmptyContainer'&&_0xda1e07['element']['name']==_0xcfe931['name']?_0xda1e07['quantity']++:_0x168f2b['push']({'type':_0x41dd73+'EmptyContainer','element':_0xcfe931,'quantity':0x1});}else _0x168f2b['push']({'type':_0x41dd73+'Container','element':_0x24c991});}}}}}['_resolveDescriptionItems'](_0x5ab28a){const _0x58787f=this['_locale'],_0xd5d1f1=[],_0xa954e6=[],_0x28d3f0=[];for(const _0x652d5 of _0x5ab28a)switch(_0x652d5['type']){case'text':if(_0x652d5['add']=_0x652d5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x652d5['remove']=_0x652d5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x652d5['add']&&''!=_0x652d5['remove']){_0xd5d1f1['push']({'type':'replace','content':o(_0x58787f,'REPLACE_TEXT',['\x22'+_0x652d5['remove']+'\x22','\x22'+_0x652d5['add']+'\x22'])});continue;}if(null!=_0x652d5['add']['match'](/^ +$/)){_0xd5d1f1['push']({'type':'insertion','content':o(_0x58787f,'*Insert:*\x20%0',o(_0x58787f,'ELEMENT_SPACE',_0x652d5['add']['length']))});continue;}if(null!=_0x652d5['remove']['match'](/^ +$/)){_0xd5d1f1['push']({'type':'deletion','content':o(_0x58787f,'*Remove:*\x20%0',o(_0x58787f,'ELEMENT_SPACE',_0x652d5['remove']['length']))});continue;}if(''!=_0x652d5['add']){_0xd5d1f1['push']({'type':'insertion','content':o(_0x58787f,'*Insert:*\x20%0','\x22'+_0x652d5['add']+'\x22')});continue;}_0xd5d1f1['push']({'type':'deletion','content':o(_0x58787f,'*Remove:*\x20%0','\x22'+_0x652d5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xd5d1f1['push']({'type':'insertion','content':o(_0x58787f,'*Insert:*\x20%0',this['getItemLabel'](_0x652d5['element'],_0x652d5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xd5d1f1['push']({'type':'deletion','content':o(_0x58787f,'*Remove:*\x20%0',this['getItemLabel'](_0x652d5['element'],_0x652d5['quantity']))});continue;case'addContainer':_0xd5d1f1['push']({'type':'insertion','content':o(_0x58787f,'*Split:*\x20%0',this['getItemLabel'](_0x652d5['element'],_0x652d5['quantity']))});continue;case'removeContainer':_0xd5d1f1['push']({'type':'deletion','content':o(_0x58787f,'*Merge:*\x20%0',this['getItemLabel'](_0x652d5['element'],_0x652d5['quantity']))});continue;case'addFormat':_0xa954e6['push'](_0x652d5['key']);continue;case'removeFormat':_0x28d3f0['push'](_0x652d5['key']);continue;default:_0xd5d1f1['push'](_0x652d5);}if(_0xa954e6['length']){const _0x8e960e=_0xa954e6['map'](_0x329de7=>this['_attributeLabels']['has'](_0x329de7)?this['_attributeLabels']['get'](_0x329de7):_0x329de7)['join'](',\x20');_0xd5d1f1['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x8e960e)});}if(_0x28d3f0['length']){const _0x3694b1=_0x28d3f0['map'](_0x483798=>this['_attributeLabels']['has'](_0x483798)?this['_attributeLabels']['get'](_0x483798):_0x483798)['join'](',\x20');_0xd5d1f1['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3694b1)});}return _0xd5d1f1;}['_handleCustomCallbackDescription'](_0x37a5ca){for(const _0x377987 of this['_customCallbacks']){const _0x274e08=_0x377987(_0x37a5ca);if(_0x274e08&&'type'in _0x274e08)return _0x274e08;}}['_handleAttributeSuggestionDescription'](_0x5a62fd,_0x71dd5a){const _0x52c913=_0x71dd5a['data'],_0x2a14ea=void 0x0===_0x52c913['newValue']?'removeFormat':'addFormat';_0x5a62fd['push']({'type':_0x2a14ea,'key':_0x52c913['key']});}['_handleRenameSuggestionDescription'](_0x419c9f,_0x3ee376){_0x419c9f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3ee376['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1bf21d,_0x583506,_0x1db890){if(this['_addDescriptionItems'](_0x1bf21d,_0x583506),_0x1db890&&_0x1db890['getFirstRange']()&&!_0x583506['getFirstRange']()['end']['isEqual'](_0x1db890['getFirstRange']()['start'])){const _0x3671d3=_0x1bf21d[_0x1bf21d['length']-0x1],_0x576c71='insertion'==_0x583506['type']?'add':'remove';_0x3671d3&&'text'==_0x3671d3['type']&&(_0x3671d3[_0x576c71]+='\x0a');}}}class U extends _0x150ede{['afterInit'](){const _0x5e6ada=this['editor'],_0x175ae6=_0x5e6ada['plugins']['get']('TrackChangesEditing');_0x5e6ada['commands']['get']('showAIAssistant')&&_0x175ae6['enableCommand']('showAIAssistant');}}class V extends _0x150ede{['afterInit'](){const _0x1daec4=this['editor'],_0x202383=_0x1daec4['locale'];if(!_0x1daec4['plugins']['has']('AlignmentEditing'))return;const _0x54757a=_0x1daec4['plugins']['get']('TrackChangesEditing');_0x54757a['enableDefaultAttributesIntegration']('alignment'),_0x54757a['registerBlockAttribute']('alignment'),_0x54757a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x202383,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a6b8d=this['editor'],_0x1c7f86=_0x3a6b8d['locale'];_0x3a6b8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33bf3e=>{if('formatBlock'!=_0x33bf3e['type'])return;const {data:_0x4b3848}=_0x33bf3e;if(_0x4b3848&&'alignment'==_0x4b3848['commandName']){const _0x10fe21=_0x4b3848['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1c7f86,'*Format:*\x20%0',function(_0x3545e0){switch(_0x3545e0){case'left':return o(_0x1c7f86,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1c7f86,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1c7f86,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1c7f86,'FORMAT_JUSTIFY_TEXT');}}(_0x10fe21))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x150ede{['afterInit'](){const _0x3d0803=this['editor'],_0x2ffdc1=_0x3d0803['plugins']['get']('TrackChangesEditing'),_0x99aa91=_0x3d0803['locale'];for(const _0x15f4ec of Zt){if(!_0x3d0803['plugins']['has'](_0x15f4ec))continue;const _0x57b3f5=_0x15f4ec['slice'](0x0,-0x7)['toLowerCase'](),_0x2cd6e6='FORMAT_'+_0x57b3f5['toUpperCase']();_0x2ffdc1['enableDefaultAttributesIntegration'](_0x57b3f5),_0x2ffdc1['registerInlineAttribute'](_0x57b3f5),_0x2ffdc1['descriptionFactory']['registerAttributeLabel'](_0x57b3f5,o(_0x99aa91,_0x2cd6e6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32288d=this['editor'],_0x601301=_0x32288d['locale'],_0x3dfa99=_0x32288d['plugins']['get']('TrackChangesEditing');function _0x59eba2(_0x508fa2,_0x3a32bb){_0x3dfa99['descriptionFactory']['registerDescriptionCallback'](_0x27dc2c=>{if('formatInline'!=_0x27dc2c['type'])return;const {data:_0x277e8c}=_0x27dc2c;return _0x277e8c&&_0x277e8c['commandName']===_0x508fa2?_0x277e8c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x601301,'*Format:*\x20%0',_0x3a32bb)}:{'type':'format','content':o(_0x601301,'*Remove\x20format:*\x20%0',_0x3a32bb)}:void 0x0;});}_0x59eba2('bold',o(_0x601301,'FORMAT_BOLD')),_0x59eba2('italic',o(_0x601301,'FORMAT_ITALIC')),_0x59eba2('underline',o(_0x601301,'FORMAT_UNDERLINE')),_0x59eba2('code',o(_0x601301,'FORMAT_CODE')),_0x59eba2('strikethrough',o(_0x601301,'FORMAT_STRIKETHROUGH')),_0x59eba2('subscript',o(_0x601301,'FORMAT_SUBSCRIPT')),_0x59eba2('superscript',o(_0x601301,'FORMAT_SUPERSCRIPT'));}}class F extends _0x150ede{['afterInit'](){const _0x33b8c1=this['editor'],_0x50e78c=_0x33b8c1['locale'];if(!_0x33b8c1['plugins']['has']('BlockQuoteEditing'))return;const _0xe246aa=_0x33b8c1['plugins']['get']('TrackChangesEditing'),_0x4b694c=this['editor']['commands']['get']('blockQuote');_0xe246aa['enableCommand']('blockQuote',(_0x5e3043,_0x23382e={})=>{const _0x4baf54=this['editor']['model']['document']['selection'],_0x51af68=_0x23382e&&void 0x0!==_0x23382e['forceValue']?_0x23382e['forceValue']:!_0x4b694c['value'];let _0x1f36ae=[];if(_0x51af68){const _0x1e4af4=Array['from'](_0x4baf54['getSelectedBlocks']())['filter'](_0x4de4cc=>oo(_0x4de4cc)||function(_0x137d5c,_0x22fe35){const _0x116d30=_0x22fe35['checkChild'](_0x137d5c['parent'],'blockQuote'),_0xd030db=_0x22fe35['checkChild'](['$root','blockQuote'],_0x137d5c);return _0x116d30&&_0xd030db;}(_0x4de4cc,this['editor']['model']['schema']));_0x1f36ae=to(_0x1e4af4,_0x33b8c1['model']);}else{const _0x2e49a2=Array['from'](_0x4baf54['getSelectedBlocks']())['filter'](_0xf7e56c=>oo(_0xf7e56c));_0x1f36ae=to(_0x2e49a2,_0x33b8c1['model']);}_0x33b8c1['model']['change'](()=>{for(const _0x261d8a of _0x1f36ae)_0xe246aa['markBlockFormat'](_0x261d8a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x51af68}]});});}),_0xe246aa['descriptionFactory']['registerDescriptionCallback'](_0x404d7e=>{const {data:_0x4628fd}=_0x404d7e;if(_0x4628fd&&'blockQuote'==_0x4628fd['commandName']){const _0x1c56c0=o(_0x50e78c,'ELEMENT_BLOCK_QUOTE');return _0x4628fd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50e78c,'*Set\x20format:*\x20%0',_0x1c56c0)}:{'type':'format','content':o(_0x50e78c,'*Remove\x20format:*\x20%0',_0x1c56c0)};}});}}function oo(_0x4ac3bb){return'blockQuote'==_0x4ac3bb['parent']['name'];}class L extends _0x150ede{['afterInit'](){const _0x2e345c=this['editor'],_0x47865f=_0x2e345c['locale'],_0xfbe654=_0x2e345c['plugins']['get']('TrackChangesEditing');_0x2e345c['plugins']['has']('BookmarkEditing')&&(_0xfbe654['enableCommand']('insertBookmark'),_0xfbe654['enableDefaultAttributesIntegration']('updateBookmark'),_0xfbe654['registerBlockAttribute']('bookmarkId'),_0xfbe654['descriptionFactory']['registerDescriptionCallback'](_0x83fef4=>{if('insertion'!=_0x83fef4['type']&&'deletion'!=_0x83fef4['type']&&'attribute'!=_0x83fef4['type'])return;const _0x5e305a=_0x83fef4['getContainedElement']();if(null==_0x5e305a)return;if(!_0x5e305a['is']('element','bookmark'))return;const _0x566a85=_0x5e305a['getAttribute']('bookmarkId');if('insertion'==_0x83fef4['type'])return{'type':'insertion','content':o(_0x47865f,'*Insert:*\x20%0','\x22'+_0x566a85+'\x22\x20'+o(_0x47865f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x83fef4['type'])return{'type':'deletion','content':o(_0x47865f,'*Remove:*\x20%0','\x22'+_0x566a85+'\x22\x20'+o(_0x47865f,'ELEMENT_BOOKMARK'))};const {data:_0x310a62}=_0x83fef4;if(!_0x310a62||'bookmarkId'!=_0x310a62['key'])return;return{'type':'format','content':o(_0x47865f,'*Set\x20bookmark:*\x20%0','\x22'+_0x310a62['newValue']+'\x22')};}));}}class J extends _0x150ede{['afterInit'](){const _0x3576bf=this['editor'];_0x3576bf['plugins']['has']('CaseChange')&&(_0x3576bf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3576bf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3576bf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x150ede{['afterInit'](){const _0x99c004=this['editor'];_0x99c004['commands']['get']('ckbox')&&_0x99c004['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x150ede{['afterInit'](){const _0x497885=this['editor'];if(!_0x497885['plugins']['has']('CodeBlock'))return;const _0x35f031=_0x497885['plugins']['get']('TrackChangesEditing'),_0x52667c=_0x497885['locale'],_0x122b10=_0x497885['config']['get']('codeBlock')['languages'],_0x57d6bb=_0x497885['commands']['get']('codeBlock');_0x35f031['enableCommand']('indentCodeBlock'),_0x35f031['enableCommand']('outdentCodeBlock'),_0x35f031['enableCommand']('codeBlock',(_0x14d56,_0x5a0141={})=>{const _0x43ee68=_0x497885['model'],_0x14bc16=_0x497885['model']['document']['selection'],_0x66b1f7=_0x5a0141&&void 0x0!==_0x5a0141['forceValue']?_0x5a0141['forceValue']:!_0x57d6bb['value'];let _0x381e5e;_0x5a0141['language']||(_0x5a0141['language']=_0x122b10[0x0]['language']),_0x381e5e=_0x66b1f7?Array['from'](_0x14bc16['getSelectedBlocks']())['filter'](_0x220a8c=>eo(_0x220a8c)||function(_0x13f16b,_0x4aaaf4){if(_0x13f16b['is']('rootElement')||_0x4aaaf4['isLimit'](_0x13f16b))return!0x1;return _0x4aaaf4['checkChild'](_0x13f16b['parent'],'codeBlock');}(_0x220a8c,_0x43ee68['schema'])):Array['from'](_0x14bc16['getSelectedBlocks']())['filter'](_0x53cfdb=>eo(_0x53cfdb));const _0x559af2=to(_0x381e5e,_0x43ee68);_0x43ee68['change'](()=>{for(const _0xd7d5c1 of _0x559af2)_0x35f031['markBlockFormat'](_0xd7d5c1,{'commandName':'codeBlock','commandParams':[{..._0x5a0141,'forceValue':_0x66b1f7}],'formatGroupId':'blockName'});});}),(_0x35f031['descriptionFactory']['registerElementLabel']('codeBlock',_0x22879c=>o(_0x52667c,'ELEMENT_CODE_BLOCK',_0x22879c)),_0x35f031['descriptionFactory']['registerDescriptionCallback'](_0xef2b8b=>{if('formatBlock'!=_0xef2b8b['type'])return;const _0x39e39d=_0x52667c['t'],{data:_0x5d0195}=_0xef2b8b;if(!_0x5d0195||'codeBlock'!=_0x5d0195['commandName'])return;const _0x9c709f=_0x5d0195['commandParams'][0x0]['language'],_0x181ec1=_0x39e39d(_0x122b10['find'](_0x1fe260=>_0x1fe260['language']===_0x9c709f)['label'])['toLowerCase']();return _0x5d0195['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52667c,'*Set\x20format:*\x20%0',o(_0x52667c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x181ec1+')')}:{'type':'format','content':o(_0x52667c,'*Remove\x20format:*\x20%0',o(_0x52667c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x52fa52){return'codeBlock'==_0x52fa52['name'];}class z extends _0x150ede{['afterInit'](){const _0x130a0b=this['editor'];if(!_0x130a0b['plugins']['has']('CommentsEditing'))return;_0x130a0b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xd94ec4,_0x3efd80,_0x13df4d){const _0x1ccc8a=[];for(const _0x3ef763 of _0x3efd80['getItems']())_0x3ef763['hasAttribute'](_0xd94ec4)&&_0x1ccc8a['push'](_0x13df4d['createRangeOn'](_0x3ef763));return _0x1ccc8a;}function Ne(_0xbd03cd,_0x17b24b,{showActiveMarker:_0x26ea0e=!0x0}={}){const _0x47b674=_0xbd03cd['plugins']['get']('TrackChangesEditing');return(_0x14494e,_0x15b23d,_0x9a2bdd)=>{if(!_0x9a2bdd['consumable']['test'](_0x15b23d['markerRange'],_0x14494e['name']))return;const _0x53236b=_0x15b23d['markerRange']['getWalker'](),_0x3a8f8a=_0x15b23d['markerRange']['start'],_0x1b27e1=_0xbd03cd['model']['schema'];let _0x35d030=null,_0xcb868=null,_0x2575f4=!0x1,_0x28a43c=!0x1;for(const _0x29faff of _0x53236b){const _0x5e62c8=_0x29faff['item'];_0x2575f4=_0x2575f4||_0x1b27e1['isContent'](_0x5e62c8);const _0x10e135=_0x9a2bdd['mapper']['toViewElement'](_0x5e62c8);if(_0x10e135&&_0x10e135['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x29faff['type']&&(_0x1b27e1['isBlock'](_0x5e62c8)&&!_0x1b27e1['isLimit'](_0x5e62c8)&&(_0x5e62c8['nextSibling']||_0x3a8f8a['isAtEnd']?_0x35d030&&_0x35d030['parent']==_0x5e62c8||(_0x35d030=_0x5e62c8,_0x4dfa47(_0x29faff['previousPosition']),_0x28a43c=!0x0):_0xcb868=_0xcb868||_0x29faff['previousPosition']));}function _0x4dfa47(_0x41a1f5){const {authorId:_0x5b7dc5}=_0x47b674['_splitMarkerName'](_0x15b23d['markerName']),_0x4f2d79=_0x9a2bdd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x17b24b,'data-author-id':_0x5b7dc5}),_0x1fc1bc=_0x9a2bdd['mapper']['toViewPosition'](_0x41a1f5);_0x26ea0e&&_0x47b674['activeMarkers']['includes'](_0x15b23d['markerName'])&&_0x9a2bdd['writer']['addClass']('ck-suggestion-marker--active',_0x4f2d79),_0x9a2bdd['writer']['insert'](_0x1fc1bc,_0x4f2d79),_0x9a2bdd['mapper']['bindElementToMarker'](_0x4f2d79,_0x15b23d['markerName']);}_0x2575f4||_0x28a43c||!_0xcb868||_0x4dfa47(_0xcb868);};}class K extends _0x150ede{static get['requires'](){return[_0x218769];}['init'](){const _0x129848=this['editor'],_0x9446e9=_0x129848['plugins']['get']('TrackChangesEditing');_0x9446e9['enableCommand']('delete');const _0x5b4181=_0x129848['commands']['get']('deleteForward');_0x9446e9['enableCommand']('deleteForward',(_0x380604,_0x33ded3={})=>{const _0x28fb96=_0x129848['model']['createSelection'](_0x129848['model']['document']['selection']);_0x28fb96['isCollapsed']&&_0x129848['model']['modifySelection'](_0x28fb96,{'direction':'forward','unit':_0x33ded3['unit']});const _0x3288ec=_0x28fb96['getFirstRange'](),_0x3298d5=_0x209e44['fromRange'](_0x3288ec);let _0x5d0a28;_0x380604(_0x33ded3),_0x5d0a28='$graveyard'==_0x3298d5['root']['rootName']?_0x129848['model']['createRange'](_0x3288ec['start']):_0x129848['model']['createRange'](_0x3298d5['start'],_0x3298d5['end']),_0x3298d5['detach'](),_0x129848['model']['enqueueChange'](_0x5b4181['buffer']['batch'],_0x31bbc2=>{_0x5b4181['buffer']['lock'](),_0x31bbc2['setSelection'](_0x31bbc2['createRange'](_0x5d0a28['end'])),_0x5b4181['buffer']['unlock']();});}),_0x129848['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x129848,'merge'),{'priority':'high'}),_0x129848['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x25349f,_0xddb381,_0x43d50d)=>{_0x43d50d['options']['showSuggestionHighlights']&&Ne(_0x129848,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x25349f,_0xddb381,_0x43d50d);},{'priority':'high'}),_0x129848['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x232a41,_0x4131dc,_0x239ec9)=>{const _0x5d2bbb=_0x239ec9['mapper']['markerNameToElements'](_0x4131dc['markerName']);if(_0x5d2bbb){for(const _0x471e24 of _0x5d2bbb)_0x471e24['is']('uiElement')&&(_0x239ec9['mapper']['unbindElementFromMarkerName'](_0x471e24,_0x4131dc['markerName']),_0x239ec9['writer']['remove'](_0x471e24));}},{'priority':'high'});}}class W extends _0x150ede{['afterInit'](){const _0x484620=this['editor'];if(!_0x484620['plugins']['has']('ListEditing'))return;const _0x1ff8c9=_0x484620['locale'],_0x2bb3a0=_0x484620['plugins']['get']('TrackChangesEditing'),_0xbae6ca=_0x484620['plugins']['has']('TodoListEditing'),_0x259380=!!_0x484620['config']['get']('list.multiBlock');function _0x4c095f(_0x22e943){return{'type':'format','content':''+o(_0x1ff8c9,'*Set\x20format:*\x20%0',_0x22e943)};}function _0x9c2c3a(_0x37b0b4){return{'type':'format','content':''+o(_0x1ff8c9,'*Remove\x20format:*\x20%0',_0x37b0b4)};}_0x2bb3a0['enableDefaultAttributesIntegration']('numberedList'),_0x2bb3a0['enableDefaultAttributesIntegration']('bulletedList'),_0x2bb3a0['enableDefaultAttributesIntegration']('customNumberedList'),_0x2bb3a0['enableDefaultAttributesIntegration']('customBulletedList'),_0x2bb3a0['enableDefaultAttributesIntegration']('indentList'),_0x2bb3a0['enableDefaultAttributesIntegration']('outdentList'),_0x2bb3a0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2bb3a0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2bb3a0['registerBlockAttribute']('listItemId'),_0x2bb3a0['registerBlockAttribute']('listType'),_0x2bb3a0['registerBlockAttribute']('listIndent'),_0x259380&&(_0x2bb3a0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2bb3a0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xbae6ca&&(_0x2bb3a0['enableDefaultAttributesIntegration']('todoList'),_0x2bb3a0['enableDefaultAttributesIntegration']('checkTodoList'),_0x2bb3a0['registerBlockAttribute']('todoListChecked'),_0x2bb3a0['descriptionFactory']['registerDescriptionCallback'](_0x3ca65f=>{const {data:_0x158fde}=_0x3ca65f;if(_0x158fde&&'todoListChecked'==_0x158fde['key'])return{'type':'format','content':_0x158fde['newValue']?o(_0x1ff8c9,'*Check\x20item*'):o(_0x1ff8c9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x538254=>{if(_0x538254['batch']['isUndo'])return!0x1;let _0x2ba0e2=!0x1;const _0x34ef59=_0x2bb3a0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2429bc=>'todoListChecked'===_0x2bb3a0['_getAttributeKey'](_0x2429bc));for(const _0x11e2eb of _0x34ef59){'todo'!=_0x11e2eb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2bb3a0['_findSuggestions'](_0x11e2eb['getFirstRange'](),'attribute')['find'](_0x105da0=>'listType'===_0x2bb3a0['_getAttributeKey'](_0x105da0['suggestion']))||(_0x538254['removeMarker'](_0x11e2eb['getFirstMarker']()),_0x2ba0e2=!0x0));}return _0x2ba0e2;})),_0x2bb3a0['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1ff8c9,'FORMAT_INDENT'));const _0x27f9a4={'type':'format','content':''};_0x2bb3a0['descriptionFactory']['registerDescriptionCallback'](_0x3d7b48=>{const {data:_0x56ca5d}=_0x3d7b48;if(!_0x56ca5d||'listType'!=_0x56ca5d['key'])return;let _0x4c0f90=_0x3d7b48['head'];for(;_0x4c0f90;){if(_0x4c0f90['data']&&(('listStyle'==_0x4c0f90['data']['key']||'listMarkerStyle'==_0x4c0f90['data']['key'])&&(_0x4c0f90['data']['newValue']&&'default'!=_0x4c0f90['data']['newValue']||'default'!=_0x4c0f90['data']['oldValue']&&!_0x56ca5d['newValue'])||!_0x259380&&_0x4c0f90['data']['key']==m))return _0x27f9a4;_0x4c0f90=_0x4c0f90['next'];}if(null==_0x56ca5d['newValue'])switch(_0x56ca5d['oldValue']){case'bulleted':return _0x9c2c3a(o(_0x1ff8c9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9c2c3a(o(_0x1ff8c9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9c2c3a(o(_0x1ff8c9,'ELEMENT_TODO_LIST'));}switch(_0x56ca5d['newValue']){case'bulleted':return _0x4c095f(o(_0x1ff8c9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c095f(o(_0x1ff8c9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c095f(o(_0x1ff8c9,'ELEMENT_TODO_LIST'));}}),_0x2bb3a0['descriptionFactory']['registerDescriptionCallback'](_0x4bdb2b=>{const {data:_0x39fca7}=_0x4bdb2b;if(_0x39fca7&&'listIndent'==_0x39fca7['key'])return null==_0x39fca7['newValue']||null==_0x39fca7['oldValue']&&0x0==_0x39fca7['newValue']?_0x27f9a4:void 0x0;}),_0x2bb3a0['descriptionFactory']['registerDescriptionCallback'](_0x1d0b3a=>{if('attribute'!=_0x1d0b3a['type'])return;const {data:_0x593918}=_0x1d0b3a;if(!_0x593918||'listItemId'!=_0x593918['key'])return;const _0x2a63d3=Te(_0x1d0b3a);return'newValue'==_0x2a63d3?{'type':'format','content':o(_0x1ff8c9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2a63d3?{'type':'format','content':o(_0x1ff8c9,'*Split:*\x20list\x20item')}:_0x27f9a4;}),_0x484620['model']['document']['registerPostFixer'](_0x3ef71f=>this['listItemIdFixer'](_0x3ef71f)),_0x484620['model']['document']['registerPostFixer'](_0x5ba62d=>this['noTrackChangesFixer'](_0x5ba62d)),_0x484620['model']['document']['on']('change:data',(_0x535507,_0x3d22c9)=>{if(_0x3d22c9['isUndo']||!_0x3d22c9['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5b8d7b){if(_0x5b8d7b['batch']['isUndo']||!_0x5b8d7b['batch']['isLocal'])return!0x1;let _0x9f792c=!0x1;const _0x4be93d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46a5c6=>_0x46a5c6['data']&&'listItemId'==_0x46a5c6['data']['key'])['filter'](_0x17271=>_0x17271['data']['newValue']&&_0x17271['data']['oldValue']);for(const _0x54404c of _0x4be93d)Te(_0x54404c)||(_0x5b8d7b['removeMarker'](_0x54404c['getFirstMarker']()),_0x9f792c=!0x0);return _0x9f792c;}['noTrackChangesFixer'](_0x1ddc0b){if(_0x1ddc0b['batch']['isUndo']||!_0x1ddc0b['batch']['isLocal'])return!0x1;const _0x370e6a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x370e6a['trackChangesCommand']['value'])return!0x1;let _0x5cd14a=!0x1;const _0x5f481a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1a1c23=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5e3c19=>'attribute'==_0x5e3c19['type'])['filter'](_0x37abb1=>_0x5f481a['includes'](_0x37abb1['attributeKey']));if(0x0==_0x1a1c23['length'])return _0x5cd14a;for(const _0x534146 of _0x1a1c23){const _0x3a112b=_0x370e6a['_findSuggestions'](_0x534146['range'],'attribute')['filter'](_0x1c6455=>!_0x1c6455['meta']['isNextTo'])['map'](_0xa068f1=>_0xa068f1['suggestion'])['filter'](_0x157488=>{const _0xeed43e=_0x370e6a['_getAttributeKey'](_0x157488);return _0x5f481a['includes'](_0xeed43e);});if(_0x3a112b['length']){for(const _0xad39ef of _0x3a112b)_0x1ddc0b['removeMarker'](_0xad39ef['getFirstMarker']());_0x5cd14a=!0x0;}}return _0x5cd14a;}['assureChains'](){const _0x6e05db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24e2d1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2f3f1d;const _0x4a9f24=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xdcc7db=>{if(_0xdcc7db['data']['oldRange']||!_0xdcc7db['data']['newRange'])return null;if(!_0xdcc7db['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x53ab48}=_0x6e05db['_splitMarkerName'](_0xdcc7db['name']);if(!_0x6e05db['hasSuggestion'](_0x53ab48))return null;const _0x4f94ff=_0x6e05db['getSuggestion'](_0x53ab48);return _0x24e2d1['includes'](_0x4f94ff['data']['key']);})['map'](_0x95beb9=>{const {id:_0x546ead}=_0x6e05db['_splitMarkerName'](_0x95beb9['name']),_0x519e16=_0x6e05db['getSuggestion'](_0x546ead);return _0x2f3f1d=_0x519e16['attributes']['groupId'],_0x519e16['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4a9f24['size'])return;const _0x2f6686=_0x6e05db['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3574a4=>'attribute'==_0x3574a4['type']&&_0x3574a4['data']&&_0x24e2d1['includes'](_0x3574a4['data']['key'])&&_0x3574a4['attributes']['groupId']!=_0x2f3f1d)['map'](_0x22fa3d=>({'listItem':_0x22fa3d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x22fa3d['attributes']['groupId']})),_0x5ec4db=new Set();for(const {groupId:_0x3aa506,listItem:_0x3dbace}of _0x2f6686)_0x4a9f24['has'](_0x3dbace)&&_0x5ec4db['add'](_0x3aa506);for(const _0x311d99 of _0x6e05db['getSuggestions']())_0x5ec4db['has'](_0x311d99['attributes']['groupId'])&&_0x311d99['setAttribute']('groupId',_0x2f3f1d);}['_supportLegacySuggestions'](){const _0x28e4be=this['editor'],_0x4d051b=_0x28e4be['locale'],_0x15e55e=_0x28e4be['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x15e55e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4d8d47,_0x1b4b1c){const _0xbc901f=[];for(let _0x363ff0 of _0x4d8d47)_0x363ff0['start']['nodeAfter']===_0x363ff0['end']['parent']&&(_0x363ff0=_0x28e4be['model']['createRange'](_0x28e4be['model']['createPositionAt'](_0x363ff0['start']['nodeAfter'],0x0))),_0xbc901f['push'](_0x363ff0);_0x28e4be['model']['change'](_0x4b58ff=>{const _0x333a1f=_0x28e4be['model']['document']['selection'],_0x595588=Array['from'](_0x333a1f['getRanges']())['map'](_0x503bd2=>_0x209e44['fromRange'](_0x503bd2));_0x4b58ff['setSelection'](_0xbc901f),_0x28e4be['commands']['get'](_0x1b4b1c['commandName'])['refresh'](),_0x1b4b1c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x28e4be['execute'](_0x1b4b1c['commandName'],..._0x1b4b1c['commandParams']),_0x4b58ff['setSelection'](_0x595588);for(const _0x26eaa4 of _0x595588)_0x26eaa4['detach']();});}),_0x15e55e['descriptionFactory']['registerElementLabel'](function(_0x50b624){const _0x33e707=!_0x28e4be['model']['schema']['isObject'](_0x50b624),_0x105b36=_0x50b624['previousSibling'],_0x5b3de0=_0x50b624['nextSibling'],_0xf7f7b=_0x50b624['getAttribute']('listItemId'),_0x3423ca=!_0x105b36||_0x105b36['getAttribute']('listItemId')!==_0xf7f7b,_0x509c18=!_0x5b3de0||_0x5b3de0['getAttribute']('listItemId')!==_0xf7f7b;return _0x33e707&&Boolean(_0xf7f7b)&&_0x3423ca&&_0x509c18;},_0x41ed8e=>o(_0x4d051b,'ELEMENT_LIST_ITEM',_0x41ed8e));}['_registerLegacyDescription'](){const _0x4d5259=this['editor'],_0x52f8d5=_0x4d5259['locale'];function _0x51399e(_0x5db7da){const _0x3007cb=_0x4d5259['commands']['get']('bulletedList')['value'],_0x4a650e=_0x4d5259['commands']['get']('numberedList')['value'];return'numberedList'===_0x5db7da?_0x3007cb:_0x4a650e;}_0x4d5259['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5dcdc7){if('formatBlock'!=_0x5dcdc7['type'])return;const {data:_0x1528ba}=_0x5dcdc7;if(!_0x1528ba)return;let _0x18d0c5,_0x371aea,_0xcf360b,_0x30dfd7;switch(_0x1528ba['commandName']){case'bulletedList':_0xcf360b=_0x1528ba['commandParams'][0x0]['forceValue'],_0x30dfd7=_0x51399e(_0x1528ba['commandName']),_0x18d0c5=_0xcf360b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x30dfd7&&_0x4d5259['config']['get']('list.multiBlock')||(_0x18d0c5='*Change\x20to:*\x20%0'),_0x371aea={'type':'format','content':o(_0x52f8d5,_0x18d0c5,o(_0x52f8d5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xcf360b=_0x1528ba['commandParams'][0x0]['forceValue'],_0x30dfd7=_0x51399e(_0x1528ba['commandName']),_0x18d0c5=_0xcf360b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x30dfd7&&_0x4d5259['config']['get']('list.multiBlock')||(_0x18d0c5='*Change\x20to:*\x20%0'),_0x371aea={'type':'format','content':o(_0x52f8d5,_0x18d0c5,o(_0x52f8d5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x18d0c5='*Indent:*\x20%0',_0x371aea={'type':'format','content':o(_0x52f8d5,_0x18d0c5,o(_0x52f8d5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x18d0c5=function(_0x1c2eec){const _0x261d87=_0x1c2eec['getFirstRange']();let _0x41f24a=_0x261d87['start']['nodeAfter'];for(;_0x41f24a&&_0x261d87['containsItem'](_0x41f24a);){if(_0x41f24a['getAttribute']('listIndent')>0x0)return!0x1;_0x41f24a=_0x41f24a['nextSibling'];}return!0x0;}(_0x5dcdc7)?o(_0x52f8d5,'*Format:*\x20remove\x20from\x20%0',o(_0x52f8d5,function(_0x3e5a67){return'ELEMENT_'+_0x3e5a67['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5dcdc7))):o(_0x52f8d5,'*Outdent:*\x20%0',o(_0x52f8d5,'ELEMENT_LIST_ITEM')),_0x371aea={'type':'format','content':_0x18d0c5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1528ba['multipleBlocks']&&(_0x18d0c5='*Merge:*\x20%0',_0x371aea={'type':'deletion','content':o(_0x52f8d5,_0x18d0c5,o(_0x52f8d5,'ELEMENT_LIST_ITEM'))});}return _0x371aea;});}}function Te(_0x4ee5e4){let _0x257b70=_0x4ee5e4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x257b70;){const _0x480949=_0x257b70['getAttribute']('listItemId');if(!_0x480949)return!0x1;if(_0x480949==_0x4ee5e4['data']['newValue'])return'newValue';if(_0x480949==_0x4ee5e4['data']['oldValue'])return'oldValue';_0x257b70=_0x257b70['previousSibling'];}return!0x1;}class ye extends _0x150ede{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x154c31=this['editor']['config']['get']('list.properties'),_0x27c1e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x154c31['styles']&&(_0x27c1e4['enableDefaultAttributesIntegration']('listStyle'),_0x27c1e4['registerBlockAttribute']('listStyle')),_0x154c31['reversed']&&(_0x27c1e4['enableDefaultAttributesIntegration']('listReversed'),_0x27c1e4['registerBlockAttribute']('listReversed')),_0x154c31['startIndex']&&(_0x27c1e4['enableDefaultAttributesIntegration']('listStart'),_0x27c1e4['registerBlockAttribute']('listStart'));const _0x27b7eb={'type':'format','content':''};_0x27c1e4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1814d0=this['editor']['locale'];_0x27c1e4['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1814d0,'FORMAT_LIST_REVERSED')),_0x27c1e4['descriptionFactory']['registerDescriptionCallback'](_0x11b4ec=>{const {data:_0x450443}=_0x11b4ec;if(_0x450443&&'listReversed'==_0x450443['key'])return null==_0x450443['newValue']||0x0==_0x450443['newValue']&&null==_0x450443['oldValue']?_0x27b7eb:void 0x0;}),_0x27c1e4['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1814d0,'FORMAT_LIST_START')),_0x27c1e4['descriptionFactory']['registerDescriptionCallback'](_0x523321=>{const {data:_0x42738b}=_0x523321;if(_0x42738b&&'listStart'==_0x42738b['key'])return null==_0x42738b['newValue']||0x1==_0x42738b['newValue']&&null==_0x42738b['oldValue']?_0x27b7eb:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x35cb91=>{if(_0x35cb91['batch']['isUndo'])return!0x1;let _0x34fb79=!0x1;const _0xbb82cb=_0x27c1e4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38b525=>{const _0x570ec5=_0x27c1e4['_getAttributeKey'](_0x38b525);return'listStart'==_0x570ec5||'listReversed'==_0x570ec5;});for(const _0x4419cf of _0xbb82cb){const _0x5b9123=_0x4419cf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5b9123||'customNumbered'==_0x5b9123)continue;_0x27c1e4['_findSuggestions'](_0x4419cf['getFirstRange'](),'attribute')['find'](_0x38ec0b=>'listType'==_0x27c1e4['_getAttributeKey'](_0x38ec0b['suggestion']))||(_0x35cb91['removeMarker'](_0x4419cf['getFirstMarker']()),_0x34fb79=!0x0);}return _0x34fb79;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x225e0c){const _0x350b45=this['editor']['locale'],{data:_0x1b2180}=_0x225e0c,_0x385343={'type':'format','content':''};if(!_0x1b2180||'listStyle'!=_0x1b2180['key'])return;if(!_0x1b2180['oldValue'])return'default'==_0x1b2180['newValue']?_0x385343:{'type':'format','content':''+o(_0x350b45,'*Set\x20format:*\x20%0',o(_0x350b45,this['_getTranslationKeyForListStyle'](_0x1b2180['newValue'])))};if(!_0x1b2180['newValue']){if('default'==_0x1b2180['oldValue'])return _0x385343;let _0x547ea4=_0x225e0c['head'];for(;_0x547ea4;){if(_0x547ea4['data']&&'listType'==_0x547ea4['data']['key']&&_0x547ea4['data']['newValue'])return _0x385343;_0x547ea4=_0x547ea4['next'];}return{'type':'format','content':''+o(_0x350b45,'*Remove\x20format:*\x20%0',o(_0x350b45,this['_getTranslationKeyForListStyle'](_0x1b2180['oldValue'])))};}if('default'!=_0x1b2180['newValue'])return{'type':'format','content':''+o(_0x350b45,'*Set\x20format:*\x20%0',o(_0x350b45,this['_getTranslationKeyForListStyle'](_0x1b2180['newValue'])))};let _0x419ac2=_0x225e0c['head'];for(;_0x419ac2;){if(_0x419ac2['data']&&'listType'==_0x419ac2['data']['key']&&_0x419ac2['data']['newValue']&&_0x419ac2['data']['oldValue'])return _0x385343;_0x419ac2=_0x419ac2['next'];}return{'type':'format','content':o(_0x350b45,'*Set\x20format:*\x20%0',o(_0x350b45,'ELEMENT_'+_0x225e0c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x45b1bf=this['editor'],_0x28c382=_0x45b1bf['locale'];_0x45b1bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fb021=>{if('formatBlock'!=_0x1fb021['type'])return;const {data:_0x921391}=_0x1fb021;if(!_0x921391)return;let _0x1871e4,_0x18ba51;switch(_0x921391['commandName']){case'listStyle':_0x1871e4='*Change\x20to:*\x20%0',_0x18ba51={'type':'format','content':o(_0x28c382,_0x1871e4,o(_0x28c382,this['_getTranslationKeyForListStyle'](_0x921391['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1871e4=_0x921391['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x18ba51={'type':'format','content':o(_0x28c382,_0x1871e4)};break;case'listStart':_0x1871e4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18ba51={'type':'format','content':o(_0x28c382,_0x1871e4,_0x921391['commandParams'][0x0]['startIndex'])};}return _0x18ba51;});}['_getTranslationKeyForListStyle'](_0x13beab){return'ELEMENT_'+function(_0x4e3709){if(Se['includes'](_0x4e3709))return'bulleted';if(_e['includes'](_0x4e3709))return'numbered';return null;}(_0x13beab)['toUpperCase']()+'_LIST_'+_0x13beab['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x150ede{static get['requires'](){return[_0x339da2];}['init'](){const _0x37e259=this['editor'],_0x1f07af=_0x37e259['plugins']['get']('TrackChangesEditing'),_0x4e19f4=_0x37e259['commands']['get']('enter');_0x1f07af['enableCommand']('enter',()=>{_0x37e259['model']['change'](_0x338b7b=>{const _0x30d989=_0x37e259['model']['document']['selection'],_0x5e786f=_0x30d989['getFirstPosition'](),_0x54bcf7=_0x209e44['fromRange'](_0x30d989['getFirstRange']());if(_0x4e19f4['enterBlock'](_0x338b7b)){const _0x74f7a9=_0x37e259['model']['createPositionAt'](_0x5e786f['parent']['nextSibling'],0x0),_0x4dff9e=_0x338b7b['createRange'](_0x5e786f,_0x74f7a9);_0x1f07af['markInsertion'](_0x4dff9e);}else _0x338b7b['setSelection'](_0x338b7b['createRange'](_0x54bcf7['end']));_0x54bcf7['detach'](),_0x4e19f4['fire']('afterExecute',{'writer':_0x338b7b});});}),_0x37e259['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x37e259,'split'),{'priority':'high'}),_0x37e259['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x357bd8,_0x5186ec,_0xd6a3e6)=>{const _0x1bbbc8=_0xd6a3e6['mapper']['markerNameToElements'](_0x5186ec['markerName']);if(_0x1bbbc8){for(const _0x1a3a4f of _0x1bbbc8)_0x1a3a4f['hasClass']('ck-suggestion-marker-split')&&(_0xd6a3e6['mapper']['unbindElementFromMarkerName'](_0x1a3a4f,_0x5186ec['markerName']),_0xd6a3e6['writer']['remove'](_0x1a3a4f));}},{'priority':'high'}),_0x37e259['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x754126,_0x2b963c,_0x46762d)=>{_0x46762d['options']['showSuggestionHighlights']&&Ne(_0x37e259,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x754126,_0x2b963c,_0x46762d);},{'priority':'high'});}}class Y extends _0x150ede{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x535573=this['editor']['plugins']['get']('TrackChangesEditing');_0x535573['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x535573['enableCommand']('findNext'),_0x535573['enableCommand']('findPrevious'),_0x535573['enableCommand']('replace'),_0x535573['enableCommand']('replaceAll');}['handleFindCommand'](_0x201d73,_0x248ac5,_0x3d7703={}){const _0x2ca3dc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x201d73(_0x4a0bab=>{let _0x2cb554=('string'==typeof _0x248ac5?_0x2ca3dc['findByTextCallback'](_0x248ac5,_0x3d7703):_0x248ac5)(_0x4a0bab);Array['isArray'](_0x2cb554)&&(_0x2cb554={'results':_0x2cb554,'searchText':'string'==typeof _0x248ac5?_0x248ac5:''});const _0x3c0fe3=_0x2cb554['results']['filter'](_0x3c21ac=>!0x1===this['_isInDeletionRange'](_0x3c21ac,_0x4a0bab['item']));return{..._0x2cb554,'results':_0x3c0fe3};},_0x3d7703);}['_isInDeletionRange'](_0x19d60d,_0x3bb110){const _0x330bb6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bb110,_0x19d60d['start']),this['editor']['model']['createPositionAt'](_0x3bb110,_0x19d60d['end']));for(const _0x159126 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x330bb6['getIntersection'](_0x159126['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x150ede{['afterInit'](){const _0x3ceb2a=this['editor']['locale'],_0x199226=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x47efbf,commandName:_0x29891f}of ro)this['editor']['plugins']['has'](_0x47efbf)&&(_0x199226['enableDefaultAttributesIntegration'](_0x29891f),_0x199226['registerInlineAttribute'](_0x29891f));_0x199226['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3ceb2a,'FORMAT_FONT_SIZE')),_0x199226['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3ceb2a,'FORMAT_FONT_FAMILY')),_0x199226['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3ceb2a,'FORMAT_FONT_COLOR')),_0x199226['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3ceb2a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x497bde=this['editor'],_0x17d3bd=_0x497bde['locale'];_0x497bde['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34e442=>{const _0x4dde7b=_0x17d3bd['t'];if('formatInline'!=_0x34e442['type'])return;const {data:_0x162bf4}=_0x34e442;if(null!=_0x162bf4){if('fontSize'==_0x162bf4['commandName']){const _0x447956=_0x162bf4['commandParams'][0x0]['value'];if(_0x447956){const _0xdb5620=_0x4dde7b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x53fa04=>_0x53fa04['model']==_0x447956)['title'])['toLowerCase']();return{'type':'format','content':o(_0x17d3bd,'*Set\x20font\x20size:*\x20%0',_0xdb5620)};}return{'type':'format','content':o(_0x17d3bd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x162bf4['commandName']){const _0x33cbed=_0x162bf4['commandParams'][0x0]['value'];return _0x33cbed?{'type':'format','content':o(_0x17d3bd,'*Set\x20font\x20family:*\x20%0',_0x33cbed)}:{'type':'format','content':o(_0x17d3bd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x162bf4['commandName']){const _0xd6913c=_0x162bf4['commandParams'][0x0]['value'];if(_0xd6913c){const _0x365656=_0x3a8a0a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x490d16=>_0x490d16['model']==_0xd6913c);let _0x593f64=_0xd6913c,_0x4811a1='';return _0x365656&&(_0x593f64=_0x365656['label'],_0x4811a1=_0x4dde7b(_0x593f64)['toLowerCase']()),{'type':'format','content':o(_0x17d3bd,'*Set\x20font\x20color:*\x20%0',_0x4811a1)['trim'](),'color':{'value':_0xd6913c,'title':_0x4811a1||_0x593f64}};}return{'type':'format','content':o(_0x17d3bd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x162bf4['commandName']){const _0x96cbaf=_0x162bf4['commandParams'][0x0]['value'];if(_0x96cbaf){const _0x51b21f=_0x3a8a0a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3c5ef0=>_0x3c5ef0['model']==_0x96cbaf);let _0x1d0820=_0x96cbaf,_0x2d0dde='';return _0x51b21f&&(_0x1d0820=_0x51b21f['label'],_0x2d0dde=_0x4dde7b(_0x1d0820)['toLowerCase']()),{'type':'format','content':o(_0x17d3bd,'*Set\x20font\x20background\x20color:*\x20%0',_0x2d0dde)['trim'](),'color':{'value':_0x96cbaf,'title':_0x2d0dde||_0x1d0820}};}return{'type':'format','content':o(_0x17d3bd,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x150ede{['afterInit'](){const _0x17abd3=this['editor'],_0xa00c02=_0x17abd3['plugins']['get']('TrackChangesEditing'),_0x4bc86f=_0x17abd3['commands']['get']('copyFormat'),_0x41c43a=_0x17abd3['commands']['get']('pasteFormat');_0x4bc86f&&_0x41c43a&&(_0xa00c02['enableDefaultAttributesIntegration']('pasteFormat'),_0xa00c02['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18a026=this['editor'],_0x982e6c=_0x18a026['locale'];_0x18a026['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23849a=>{if('formatBlock'!=_0x23849a['type']&&'formatInline'!=_0x23849a['type'])return;const {data:_0x54775d}=_0x23849a;if(_0x54775d&&'pasteFormat'===_0x54775d['commandName']){const _0x97a0e=[],_0x1ca6db=_0x54775d['commandParams'][0x0];for(const [_0x1da309,_0x5c6270]of Object['entries'](_0x1ca6db))_0x97a0e['push'](so(_0x18a026,_0x1da309,_0x5c6270));return _0x97a0e['length']?{'type':'format','content':o(_0x982e6c,'*Set\x20format\x20to:*\x20%0',_0x97a0e['join'](',\x20'))}:{'type':'format','content':o(_0x982e6c,'*Remove\x20all\x20formatting*')};}});}}function so(_0x24fb8e,_0x310e0f,_0x4f28e5){const _0x5cfb3c=_0x24fb8e['locale']['t'],_0x3f6ab6=_0x310e0f['split'](/(?=[A-Z])/)['join']('\x20'),_0x1e461b=_0x5cfb3c(_0x3f6ab6['charAt'](0x0)['toUpperCase']()+_0x3f6ab6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4f28e5)return _0x1e461b;if('fontColor'===_0x310e0f||'fontBackgroundColor'===_0x310e0f){const _0x25d87b=_0x3a8a0a(_0x24fb8e['config']['get']('fontColor.colors'))['find'](_0x51e3bf=>_0x51e3bf['model']==_0x4f28e5);return _0x1e461b+'\x20('+(_0x25d87b?_0x5cfb3c(_0x25d87b['label'])['toLowerCase']():_0x4f28e5)+')';}if('fontSize'===_0x310e0f&&isNaN(parseFloat(_0x4f28e5))){const _0x211027=_0x24fb8e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x24fb8e['config']['get']('fontSize.options'))['find'](_0x359c53=>_0x359c53['model']==_0x4f28e5);return _0x1e461b+'\x20('+(_0x211027?_0x5cfb3c(_0x211027['title'])['toLowerCase']():_0x4f28e5)+')';}return _0x1e461b+'\x20('+_0x4f28e5+')';}class nt extends _0x150ede{['_headingOptions'];['afterInit'](){const _0x5a1139=this['editor'];if(!_0x5a1139['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5a1139['config']['get']('heading.options');const _0x1dd9a4=_0x5a1139['locale'],_0xb3fdd2=_0x5a1139['plugins']['get']('TrackChangesEditing');_0xb3fdd2['enableDefaultAttributesIntegration']('heading');for(const _0x2bba10 of this['_headingOptions'])'paragraph'!=_0x2bba10['model']&&_0xb3fdd2['descriptionFactory']['registerElementLabel'](_0x2bba10['model'],_0x3f96ec=>{const _0x165066=this['_getHeadingLevel'](_0x2bba10['model']);return null!==_0x165066?_0x2c6ef3(_0x3f96ec,_0x165066):_0x4f1681(_0x3f96ec,_0x2bba10['title']);});function _0x2c6ef3(_0x3e6f5e,_0xda7766){return o(_0x1dd9a4,'ELEMENT_HEADING',[_0x3e6f5e,_0xda7766]);}function _0x4f1681(_0x5d55a7,_0x5f3670){return o(_0x1dd9a4,'ELEMENT_HEADING_CUSTOM',[_0x5d55a7,_0x5f3670]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x446daa=this['editor'],_0x2c85a9=_0x446daa['locale'];function _0x49c705(_0x215113,_0x2544a0){return o(_0x2c85a9,'ELEMENT_HEADING_CUSTOM',[_0x215113,_0x2544a0]);}_0x446daa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bf0e6=>{if('formatBlock'!=_0x4bf0e6['type'])return;const {data:_0x4b4852}=_0x4bf0e6;if(_0x4b4852&&'heading'==_0x4b4852['commandName']){const _0x3e289d=_0x4b4852['commandParams'][0x0]['value'],_0x1d0e7d=this['_getHeadingLevel'](_0x3e289d);if(null!==_0x1d0e7d)return{'type':'format','content':o(_0x2c85a9,'*Change\x20to:*\x20%0',(_0x4452a5=0x1,_0x4c1cbc=_0x1d0e7d,o(_0x2c85a9,'ELEMENT_HEADING',[_0x4452a5,_0x4c1cbc])))};const _0x47cfe0=this['_headingOptions']['find'](_0xeb46b9=>_0xeb46b9['model']===_0x3e289d)['title'];return{'type':'format','content':o(_0x2c85a9,'*Change\x20to:*\x20%0',_0x49c705(0x1,_0x47cfe0))};}var _0x4452a5,_0x4c1cbc;});}['_getHeadingLevel'](_0x21686e){const _0x1ea90c=_0x21686e['match'](/^heading(\d+)/);if(_0x1ea90c)return _0x1ea90c[0x1];const _0x146235=this['_headingOptions']?.['find'](_0x13117b=>_0x13117b['model']==_0x21686e);if(_0x146235&&_0x146235['view']){const _0x1c85af=_0x146235['view'],_0x41a556=(_0x1c85af['name']??_0x1c85af)['match'](/^h(\d+)/);if(_0x41a556)return _0x41a556[0x1];}return null;}}class it extends _0x150ede{['afterInit'](){const _0x59b86b=this['editor'];if(!_0x59b86b['plugins']['has']('HighlightEditing'))return;const _0x2b24e8=_0x59b86b['plugins']['get']('TrackChangesEditing'),_0x21684f=_0x59b86b['locale'];_0x2b24e8['enableDefaultAttributesIntegration']('highlight'),_0x2b24e8['registerInlineAttribute']('highlight'),_0x2b24e8['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x21684f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26e2cd=this['editor'],_0x1767b6=_0x26e2cd['locale'];_0x26e2cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ae38a=>{if('formatInline'!=_0x4ae38a['type'])return;const {data:_0x102062}=_0x4ae38a;if(_0x102062&&'highlight'==_0x102062['commandName']){const _0x1d80da=_0x1767b6['t'],_0x563e76=_0x102062['commandParams'][0x0]['value'];if(_0x563e76){const _0x1088fa=_0x26e2cd['config']['get']('highlight.options')['find'](_0x2281f6=>_0x2281f6['model']==_0x563e76),_0x3ea5d4=_0x1d80da(_0x1088fa['title'])['toLowerCase']();return{'type':'format','content':o(_0x1767b6,'*Set\x20highlight:*\x20%0',_0x3ea5d4),'color':{'value':_0x1088fa['color'],'title':_0x1088fa['title']}};}return{'type':'format','content':o(_0x1767b6,'*Remove\x20highlight*',o(_0x1767b6,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x150ede{['afterInit'](){const _0x3f817b=this['editor'];if(!_0x3f817b['plugins']['has']('HorizontalLineEditing'))return;_0x3f817b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x32d8bc=_0x3f817b['plugins']['get']('TrackChangesEditing'),_0x7fc3ee=_0x3f817b['locale'];_0x32d8bc['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3db93b=>o(_0x7fc3ee,'ELEMENT_HORIZONTAL_LINE',_0x3db93b)),_0x3f817b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xa0f473,{writer:_0x618e6c,options:_0x7148ee})=>{if(!_0x7148ee['showSuggestionHighlights'])return null;const _0x4f3a7d=_0x618e6c['createContainerElement']('div'),_0x52602f=_0x618e6c['createEmptyElement']('hr');return _0x618e6c['addClass']('ck-horizontal-line',_0x4f3a7d),_0x618e6c['insert'](_0x618e6c['createPositionAt'](_0x4f3a7d,0x0),_0x52602f),_0x4f3a7d;},'converterPriority':'high'});}}class st extends _0x150ede{['afterInit'](){const _0x96249c=this['editor'];if(!_0x96249c['plugins']['has']('HtmlEmbed'))return;const _0x502af9=_0x96249c['plugins']['get']('TrackChangesEditing'),_0x33617b=_0x96249c['locale'];_0x502af9['descriptionFactory']['registerElementLabel']('rawHtml',_0x13e129=>o(_0x33617b,'ELEMENT_HTML_EMBED',_0x13e129)),_0x502af9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x502af9['registerBlockAttribute']('value'),_0x502af9['descriptionFactory']['registerDescriptionCallback'](_0x5b7ca6=>{if('attribute'!=_0x5b7ca6['type'])return;const {data:_0x29aa0f}=_0x5b7ca6;if(_0x29aa0f&&'value'==_0x29aa0f['key']&&_0x5b7ca6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x26773d=o(_0x33617b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x33617b,'*Change\x20%0\x20content*',_0x26773d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd0f6e3=this['editor'],_0x19bd83=_0xd0f6e3['locale'];_0xd0f6e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x203293=>{if('formatBlock'!=_0x203293['type'])return;const {data:_0x3797f3}=_0x203293;if(_0x3797f3&&'htmlEmbed'==_0x3797f3['commandName']){const _0xe75633=o(_0x19bd83,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x19bd83,'*Change\x20%0\x20content*',_0xe75633)};}});}}class ot extends _0x150ede{['afterInit'](){const _0x1aa10a=this['editor'];if(!_0x1aa10a['plugins']['has']('ImageEditing'))return;const _0x53b8e7=_0x1aa10a['plugins']['get']('TrackChangesEditing'),_0x437a50=_0x1aa10a['plugins']['get']('ImageUtils'),_0x5a7db3=_0x1aa10a['locale'];_0x53b8e7['enableCommand']('insertImage'),_0x53b8e7['descriptionFactory']['registerElementLabel']('imageBlock',_0x39af2d=>o(_0x5a7db3,'ELEMENT_IMAGE',_0x39af2d)),_0x53b8e7['descriptionFactory']['registerElementLabel']('imageInline',_0x229fe0=>o(_0x5a7db3,'ELEMENT_INLINE_IMAGE',_0x229fe0)),_0x53b8e7['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5a7db3,'ELEMENT_CAPTION')),_0x1aa10a['plugins']['has']('ImageUploadEditing')&&_0x53b8e7['enableCommand']('uploadImage'),_0x1aa10a['plugins']['has']('ImageBlockEditing')&&_0x1aa10a['plugins']['has']('ImageInlineEditing')&&(_0x53b8e7['enableCommand']('imageTypeInline',(_0x5564db,_0x39ba71)=>{const _0x13d6ef=_0x437a50['getClosestSelectedImageElement'](_0x1aa10a['model']['document']['selection']);_0x1aa10a['model']['change'](()=>{_0x53b8e7['markBlockFormat'](_0x13d6ef,{'commandName':'imageTypeInline','commandParams':[_0x39ba71]},[],'convertBlockImageToInline');});}),_0x53b8e7['enableCommand']('imageTypeBlock',(_0x4a6b9e,_0x2e4454)=>{_0x1aa10a['model']['change'](_0x5d4dbe=>{let _0x17c4ff=_0x437a50['getClosestSelectedImageElement'](_0x1aa10a['model']['document']['selection']),_0x55387d=_0x5d4dbe['createRangeOn'](_0x17c4ff);const _0x559c62=_0x340738['fromPosition'](_0x55387d['start'],'toPrevious'),_0x5588ff=_0x340738['fromPosition'](_0x55387d['end'],'toNext');_0x53b8e7['forceDefaultExecution'](()=>_0x4a6b9e(_0x2e4454)),_0x17c4ff=_0x437a50['getClosestSelectedImageElement'](_0x1aa10a['model']['document']['selection']),_0x55387d=_0x5d4dbe['createRangeOn'](_0x17c4ff);const _0x599a54=_0x5d4dbe['createRange'](_0x559c62,_0x5588ff);_0x559c62['detach'](),_0x5588ff['detach'](),_0x53b8e7['markBlockFormat'](_0x17c4ff,{'commandName':'imageTypeInline','commandParams':[_0x2e4454]},[],'convertInlineImageToBlock'),_0x599a54['start']['isBefore'](_0x55387d['start'])&&_0x53b8e7['markInsertion'](_0x5d4dbe['createRange'](_0x599a54['start'],_0x55387d['start']),'convertInlineImageToBlock'),_0x55387d['end']['isBefore'](_0x599a54['end'])&&_0x53b8e7['markInsertion'](_0x5d4dbe['createRange'](_0x55387d['end'],_0x599a54['end']),'convertInlineImageToBlock');});}),_0x53b8e7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x53b8e7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x53b8e7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x53b8e7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x53b8e7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x53b8e7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x218341])=>{const _0x2a9fed=_0x53b8e7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x54d93c=_0x218341['start'],_0x1c8282=_0x218341['end'];const _0x3a87a1=_0x1aa10a['model']['schema']['getNearestSelectionRange'](_0x54d93c,'backward'),_0x3ab0d5=_0x1aa10a['model']['schema']['getNearestSelectionRange'](_0x1c8282,'forward');_0x3a87a1['isCollapsed']&&(_0x54d93c=_0x3a87a1['start']),_0x3ab0d5['isCollapsed']&&(_0x1c8282=_0x3ab0d5['end']),_0x2a9fed([_0x1aa10a['model']['createRange'](_0x54d93c,_0x1c8282)]);}),_0x53b8e7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x22ca28),_0x53b8e7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x22ca28)),_0x1aa10a['plugins']['has']('ImageCaptionEditing')&&(_0x53b8e7['enableCommand']('toggleImageCaption',(_0x2877f9,_0x6f53a3)=>{const _0x33bca4=_0x1aa10a['plugins']['get']('ImageCaptionUtils');let _0x556d7c=_0x437a50['getClosestSelectedImageElement'](_0x1aa10a['model']['document']['selection']),_0x192311=_0x33bca4['getCaptionFromImageModelElement'](_0x556d7c);_0x1aa10a['model']['change'](()=>{if(_0x192311)return void _0x53b8e7['markDeletion'](_0x1aa10a['model']['createRangeOn'](_0x192311));const _0x27061f=_0x437a50['isBlockImage'](_0x556d7c);_0x2877f9(_0x6f53a3),_0x556d7c=_0x437a50['getClosestSelectedImageElement'](_0x1aa10a['model']['document']['selection']),_0x192311=_0x33bca4['getCaptionFromImageModelElement'](_0x556d7c),_0x53b8e7['markInsertion'](_0x1aa10a['model']['createRangeOn'](_0x192311),_0x27061f?null:'imageCaption');});}),_0x53b8e7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x22ca28));const _0x2a6a56=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4a91a8(_0x4f1958,_0xf0b0d4){const _0x546f99=_0x2a6a56['findIndex'](({type:_0x340b7c,subType:_0x261a24})=>_0x4f1958['type']==_0x340b7c&&_0x4f1958['subType']==_0x261a24),_0x2ed03b=_0x2a6a56['findIndex'](({type:_0xb0cbef,subType:_0x2af9af})=>_0xf0b0d4['type']==_0xb0cbef&&_0xf0b0d4['subType']==_0x2af9af);if(_0x546f99<0x0||_0x2ed03b<0x0)return!0x1;const _0x1924a8=_0x4f1958['getFirstRange'](),_0x47a6c6=_0xf0b0d4['getFirstRange']();if((0x0==_0x546f99||0x1==_0x546f99)&&0x2==_0x2ed03b&&_0x1924a8['isIntersecting'](_0x47a6c6))return!0x0;if(0x2==_0x546f99&&0x3==_0x2ed03b){const _0xc273c8=_0x53b8e7['_findSuggestions'](_0x1924a8,'insertion')['filter'](({suggestion:_0xb65440,meta:_0x4a77d5})=>_0x4a77d5['isOwn']&&'convertInlineImageToBlock'==_0xb65440['subType']);if(_0xc273c8['length']>0x1&&_0x47a6c6['end']['isEqual'](_0x1924a8['start']))return!0x0;if(0x1==_0xc273c8['length']&&(_0x1924a8['start']['isEqual'](_0x47a6c6['end'])||_0x1924a8['end']['isEqual'](_0x47a6c6['start'])))return!0x0;}if(0x3==_0x546f99&&0x3==_0x2ed03b&&_0x1924a8['start']['isBefore'](_0x47a6c6['start'])){const _0x24eca0=_0x1924a8['end']['nodeAfter'],_0x14663f=_0x47a6c6['start']['nodeBefore'];return _0x437a50['isBlockImage'](_0x24eca0)&&_0x24eca0===_0x14663f;}return!0x1;}function _0x22ca28(_0x4a9c63,_0x49e20b){return _0x4a91a8(_0x4a9c63,_0x49e20b)?[_0x4a9c63,_0x49e20b]:_0x4a91a8(_0x49e20b,_0x4a9c63)?[_0x49e20b,_0x4a9c63]:null;}_0x1aa10a['plugins']['has']('ImageResize')&&(_0x53b8e7['enableDefaultAttributesIntegration']('resizeImage'),_0x53b8e7['registerBlockAttribute']('resizedWidth'),_0x53b8e7['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5a7db3,'FORMAT_IMAGE_SIZE'))),_0x1aa10a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x53b8e7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x53b8e7['registerBlockAttribute']('alt')),_0x53b8e7['descriptionFactory']['registerDescriptionCallback'](_0x573272=>{if(!!_0x2a6a56['find'](({type:_0x23001f,subType:_0x9c4825})=>_0x573272['type']==_0x23001f&&_0x573272['subType']==_0x9c4825))return _0x573272['previous']?{}:void 0x0;}),_0x53b8e7['descriptionFactory']['registerDescriptionCallback'](_0x5135b1=>{if('insertion'==_0x5135b1['type']||'deletion'==_0x5135b1['type']){const _0x1b44ef=_0x5135b1['getContainedElement']();if(_0x1b44ef&&_0x1b44ef['is']('element','caption'))return{'type':'insertion'==_0x5135b1['type']?'addObject':'removeObject','element':_0x1b44ef,'quantity':0x1};}}),_0x53b8e7['descriptionFactory']['registerDescriptionCallback'](_0x319554=>'formatBlock'==_0x319554['type']&&'convertInlineImageToBlock'==_0x319554['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x319554['type']&&'convertBlockImageToInline'==_0x319554['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x53b8e7['descriptionFactory']['registerDescriptionCallback'](_0x11e6c5=>{if('attribute'!=_0x11e6c5['type'])return;const {data:_0x32daec}=_0x11e6c5;if(!_0x32daec||'alt'!=_0x32daec['key'])return;const _0x35fd01=_0x32daec['newValue'];return _0x35fd01?{'type':'format','content':o(_0x5a7db3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x35fd01+'\x22')}:{'type':'format','content':o(_0x5a7db3,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x306ea5=this['editor'],_0x4acd1f=_0x306ea5['locale'];_0x306ea5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e5de4=>{if('formatBlock'!=_0x4e5de4['type']&&'formatInline'!=_0x4e5de4['type'])return;const {data:_0x1cc5c3}=_0x4e5de4;if(_0x1cc5c3){if('imageTextAlternative'==_0x1cc5c3['commandName']){const _0x657508=_0x1cc5c3['commandParams'][0x0]['newValue'];return _0x657508?{'type':'format','content':o(_0x4acd1f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x657508+'\x22')}:{'type':'format','content':o(_0x4acd1f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1cc5c3['commandName']){const _0x1b53ea=_0x1cc5c3['commandParams'][0x0]['width'];return _0x1b53ea?{'type':'format','content':o(_0x4acd1f,'*Set\x20image\x20width:*\x20%0',_0x1b53ea)}:{'type':'format','content':o(_0x4acd1f,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x150ede{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4edcdf=this['editor']['locale'],_0x19bc97=this['editor']['plugins']['get']('TrackChangesEditing');_0x19bc97['enableDefaultAttributesIntegration']('replaceImageSource'),_0x19bc97['registerBlockAttribute']('src'),_0x19bc97['descriptionFactory']['registerDescriptionCallback'](_0x42f000=>{if('attribute'!=_0x42f000['type'])return;const {data:_0x5e49ca}=_0x42f000;return _0x5e49ca&&'src'==_0x5e49ca['key']?_0x5e49ca['newValue']&&_0x5e49ca['oldValue']?{'type':'format','content':o(_0x4edcdf,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x42c066=this['editor']['plugins']['get']('TrackChangesEditing');_0x42c066['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x42c066['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42c066['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x42c066['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f677f=this['editor'],_0xd7760e=_0x4f677f['locale'];_0x4f677f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x301a34=>{if('formatBlock'!=_0x301a34['type']&&'formatInline'!=_0x301a34['type'])return;const {data:_0x24e1ea}=_0x301a34;if(!_0x24e1ea||'replaceImageSource'!=_0x24e1ea['commandName'])return;return{'type':'format','content':o(_0xd7760e,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x150ede{['afterInit'](){const _0x4fc7df=this['editor'];if(!_0x4fc7df['plugins']['has']('ImageStyleEditing'))return;const _0x163bea=_0x4fc7df['plugins']['get']('TrackChangesEditing'),_0x9f26c8=_0x4fc7df['plugins']['get']('ImageUtils'),_0x2a2a60={};_0x163bea['enableCommand']('imageStyle',(_0x441770,_0x11534f)=>{const _0x161a4a=_0x4fc7df['plugins']['get']('Users')['me'],_0x1a9a9b=_0x4fc7df['commands']['get']('imageStyle');let _0x3b3ba2=_0x9f26c8['getClosestSelectedImageElement'](_0x4fc7df['model']['document']['selection']),_0x2c5aa9=_0x4fc7df['model']['createRangeOn'](_0x3b3ba2),_0x477ef1=_0x1a9a9b['value'];if(_0x477ef1==_0x11534f['value'])return;const _0x29a1e5={'commandName':'imageStyle','commandParams':[_0x11534f],'formatGroupId':_0x2e8c25()};_0x4fc7df['model']['change'](()=>{if(_0x163bea['getSuggestions']()['filter'](_0x401e32=>_0x401e32['isInContent']&&_0x161a4a==_0x401e32['author']&&('formatBlock'==_0x401e32['type']||'formatInline'==_0x401e32['type'])&&('imageStylePreApply'==_0x401e32['subType']||'imageStylePostApply'==_0x401e32['subType'])&&_0x401e32['getFirstRange']()['isEqual'](_0x2c5aa9))['forEach'](_0x19c95a=>_0x163bea['discardSuggestion'](_0x19c95a['head'])),_0x3b3ba2=_0x9f26c8['getClosestSelectedImageElement'](_0x4fc7df['model']['document']['selection']),_0x2c5aa9=_0x4fc7df['model']['createRangeOn'](_0x3b3ba2),_0x1a9a9b['refresh'](),_0x4fc7df['commands']['get']('imageTypeInline')['refresh'](),_0x4fc7df['commands']['get']('imageTypeBlock')['refresh'](),_0x477ef1=_0x1a9a9b['value'],_0x477ef1!=_0x11534f['value'])return _0x9f26c8['isInlineImage'](_0x3b3ba2)&&_0x1a9a9b['shouldConvertImageType'](_0x11534f['value'],_0x3b3ba2)?(_0x441770({..._0x11534f,'setImageSizes':!0x1}),_0x3b3ba2=_0x9f26c8['getClosestSelectedImageElement'](_0x4fc7df['model']['document']['selection']),void _0x163bea['markBlockFormat'](_0x3b3ba2,{..._0x29a1e5,'commandReversedParams':[{'value':_0x477ef1||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x9f26c8['isBlockImage'](_0x3b3ba2)?_0x163bea['markBlockFormat'](_0x3b3ba2,_0x29a1e5,[],'imageStylePostApply'):_0x163bea['markInlineFormat'](_0x2c5aa9,_0x29a1e5,'imageStylePostApply'));});});for(const _0x2ae544 of _0x4fc7df['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2a2a60[_0x2ae544['name']]=_0x2ae544['title']['toLowerCase']();_0x163bea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x163bea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x163bea['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x163bea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x106ca6])=>{_0x9f26c8['setImageNaturalSizeAttributes'](_0x106ca6['getContainedElement']());}),_0x163bea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x32e2f7,_0x1b523b)=>{_0x163bea['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x32e2f7,{'commandName':_0x1b523b['commandName'],'commandParams':_0x1b523b['commandReversedParams']});}),_0x163bea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x583e2c,_0x5b2352){if(_0x6095e(_0x583e2c,_0x5b2352))return[_0x583e2c,_0x5b2352];if(_0x6095e(_0x5b2352,_0x583e2c))return[_0x5b2352,_0x583e2c];return null;});const _0x85758a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x6095e(_0x23a8cd,_0x1130dd){const _0x33a392=_0x85758a['findIndex'](({type:_0x49a5a1,subType:_0x285126})=>_0x23a8cd['type']==_0x49a5a1&&_0x23a8cd['subType']==_0x285126),_0x262573=_0x85758a['findIndex'](({type:_0x2f2fb2,subType:_0x4a4926})=>_0x1130dd['type']==_0x2f2fb2&&_0x1130dd['subType']==_0x4a4926);if(_0x33a392<0x0||_0x262573<0x0)return!0x1;const _0x232c06=_0x23a8cd['getFirstRange'](),_0x755df7=_0x1130dd['getFirstRange']();if((0x0==_0x33a392||0x1==_0x33a392)&&0x2==_0x262573&&_0x232c06['isIntersecting'](_0x755df7))return!0x0;if(0x2==_0x33a392&&0x3==_0x262573){const _0x546396=_0x163bea['_findSuggestions'](_0x232c06,'insertion')['filter'](({suggestion:_0x3fbf0a,meta:_0x55dfa5})=>_0x55dfa5['isOwn']&&'convertInlineImageToBlock'==_0x3fbf0a['subType']);if(_0x546396['length']>0x1&&_0x755df7['end']['isEqual'](_0x232c06['start']))return!0x0;if(0x1==_0x546396['length']&&(_0x232c06['start']['isEqual'](_0x755df7['end'])||_0x232c06['end']['isEqual'](_0x755df7['start'])))return!0x0;}if(0x3==_0x33a392&&0x3==_0x262573&&_0x232c06['start']['isBefore'](_0x755df7['start'])){const _0x2d8cc0=_0x232c06['end']['nodeAfter'],_0x3258b8=_0x755df7['start']['nodeBefore'];return _0x9f26c8['isBlockImage'](_0x2d8cc0)&&_0x2d8cc0===_0x3258b8;}return!0x1;}_0x4fc7df['model']['document']['registerPostFixer'](()=>{let _0xc55e08=!0x1;const _0x4915fc=Array['from'](_0x4fc7df['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4046f9,data:_0x1f2450}of _0x4915fc){const {group:_0x32be40,type:_0x494108,subType:_0x29d594,id:_0x5826fb}=_0x163bea['_splitMarkerName'](_0x4046f9);if('suggestion'==_0x32be40&&_0x163bea['hasSuggestion'](_0x5826fb)){if('formatBlock'==_0x494108&&('imageStylePreApply'==_0x29d594||'imageStylePostApply'==_0x29d594)){const _0x1fde11=_0x163bea['getSuggestion'](_0x5826fb);if(_0x1f2450['newRange']){const _0x99f873=_0x1fde11['getFirstRange']()['getContainedElement']();if(_0x9f26c8['isBlockImage'](_0x99f873))continue;_0x163bea['discardSuggestion'](_0x1fde11),_0xc55e08=!0x0;}}if('insertion'==_0x494108&&'imageCaption'==_0x29d594&&!_0x1f2450['newRange']){const _0x41c802=_0x163bea['getSuggestion'](_0x5826fb);_0x41c802['next']&&_0x41c802['next']['isInContent']&&(_0x163bea['discardSuggestion'](_0x41c802['next']),_0xc55e08=!0x0);}}}return _0xc55e08;}),this['_registerLegacyDescription'](_0x2a2a60);}['_registerLegacyDescription'](_0x3fab16){const _0x37e430=this['editor'],_0x2e2eb3=_0x37e430['locale'];_0x37e430['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8c6562=>{if('formatBlock'!=_0x8c6562['type']&&'formatInline'!=_0x8c6562['type'])return;const {data:_0x595ffe}=_0x8c6562;if(!_0x595ffe||'imageStyle'!=_0x595ffe['commandName'])return;const _0x3abb9c=_0x595ffe['commandParams'][0x0]['value'];return _0xfd84d5('side'===_0x3abb9c?o(_0x2e2eb3,'FORMAT_SIDE_IMAGE'):_0x3fab16[_0x3abb9c]||_0x3abb9c);function _0xfd84d5(_0x1ff83d){return{'type':'format','content':o(_0x2e2eb3,'*Format:*\x20%0',_0x1ff83d)};}});}}class ct extends _0x150ede{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1046b3){super(_0x1046b3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4bd404=this['editor'],_0xccf203=_0x4bd404['commands']['get']('importWord'),_0x583aa0=_0x4bd404['commands']['get']('trackChanges');_0xccf203&&(_0xccf203['on']('execute',(_0xf68348,[,_0x26fb42])=>{this['_trackChangesValueDuringImport']=_0x583aa0['value'],_0x26fb42['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xccf203,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xccf203,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x583aa0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4bd404['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5cc112,_0x534b63){const {suggestions:_0x1a36c3}=_0x534b63,_0x8ae50=this['editor']['commands']['get']('trackChanges'),_0x474bc7=_0x8ae50['value'];this['_trackChangesValueDuringImport']!==_0x474bc7&&(_0x8ae50['execute'](),this['_trackChangesExecuted']=!0x0),_0x1a36c3&&_0x1a36c3['forEach'](({id:_0x1ac39c,type:_0x1e69a6,author:_0x165178,created_at:_0x494267})=>{const _0x5e6d0d={'id':_0x1ac39c,'type':_0x1e69a6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x165178,'createdAt':_0x494267?new Date(_0x494267):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5e6d0d);});}}class ut extends _0x150ede{['afterInit'](){const _0x30e4bc=this['editor'],_0x538e20=_0x30e4bc['plugins']['get']('TrackChangesEditing');if(_0x30e4bc['plugins']['has']('IndentEditing')&&(_0x538e20['enableCommand']('indent'),_0x538e20['enableCommand']('outdent')),_0x30e4bc['plugins']['has']('IndentBlock')){for(const _0x4d4b8b of['indentBlock','outdentBlock'])_0x538e20['enableDefaultAttributesIntegration'](_0x4d4b8b);}const _0x51c8c3=_0x30e4bc['locale'];_0x538e20['registerBlockAttribute']('blockIndent'),_0x538e20['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x51c8c3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1667be=this['editor'],_0x4d5fca=_0x1667be['locale'],_0x4a30c3=_0x1667be['plugins']['get']('TrackChangesEditing');_0x4a30c3['descriptionFactory']['registerDescriptionCallback'](_0x2e4cec=>{if('formatBlock'!=_0x2e4cec['type'])return;const {data:_0x47f12a}=_0x2e4cec;if(!_0x47f12a)return;if('indentBlock'!=_0x47f12a['commandName']&&'outdentBlock'!=_0x47f12a['commandName'])return;const _0x4d4352=_0x2e4cec['getItems']()[0x0],_0x4936ed=_0x4a30c3['descriptionFactory']['getItemLabel'](_0x4d4352);return'indentBlock'==_0x47f12a['commandName']?{'type':'format','content':o(_0x4d5fca,'*Indent:*\x20%0',_0x4936ed)}:'outdentBlock'==_0x47f12a['commandName']?{'type':'format','content':o(_0x4d5fca,'*Outdent:*\x20%0',_0x4936ed)}:void 0x0;});}}class ft extends _0x150ede{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x150ede{['afterInit'](){const _0x39ad55=this['editor'];if(!_0x39ad55['plugins']['has']('LinkEditing'))return;const _0x5cad48=_0x39ad55['plugins']['get']('TrackChangesEditing'),_0x27ccd6=_0x39ad55['commands']['get']('link');_0x5cad48['enableDefaultAttributesIntegration']('link'),_0x5cad48['enableDefaultAttributesIntegration']('unlink'),_0x5cad48['registerInlineAttribute']('linkHref');for(const _0x5a8e13 of _0x27ccd6['manualDecorators'])_0x5cad48['registerInlineAttribute'](_0x5a8e13['id']),_0x5cad48['descriptionFactory']['registerAttributeLabel'](_0x5a8e13['id'],'link\x20('+_0x5a8e13['label']['toLowerCase']()+')');_0x5cad48['descriptionFactory']['registerDescriptionCallback'](_0x2fccd1=>{if('attribute'!=_0x2fccd1['type'])return;const {data:_0x561697}=_0x2fccd1;if(!_0x561697||'linkHref'!=_0x561697['key'])return;const _0x596a48=_0x561697['newValue'],_0x5502bc=_0x39ad55['locale'];return{'type':'format','content':null==_0x596a48?o(_0x5502bc,'*Remove\x20link*'):o(_0x5502bc,'*Set\x20link:*\x20%0','\x22'+_0x596a48+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ca6e9=this['editor'],_0x4d010f=_0x5ca6e9['locale'];_0x5ca6e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2200a0=>{if('formatInline'!=_0x2200a0['type'])return;const {data:_0x4d323f}=_0x2200a0;if(_0x4d323f){if('link'==_0x4d323f['commandName']){const _0x3efe38=_0x4d323f['commandParams'][0x0];return{'type':'format','content':o(_0x4d010f,'*Set\x20link:*\x20%0','\x22'+_0x3efe38+'\x22')};}return'unlink'==_0x4d323f['commandName']?{'type':'format','content':o(_0x4d010f,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x150ede{['afterInit'](){const _0x1e81c2=this['editor'],_0x3e8032=_0x1e81c2['locale'];if(!_0x1e81c2['plugins']['has']('LegacyListEditing'))return;const _0x5d4ea1=_0x1e81c2['plugins']['get']('TrackChangesEditing'),_0x10c4a9=_0x1e81c2['plugins']['has']('LegacyTodoListEditing');function _0x1f2cc7(_0x1ed573){return()=>{const _0x3505b8=_0x1e81c2['model']['document']['selection'],_0x145fa9=_0x1e81c2['commands']['get'](_0x1ed573);if(_0x145fa9['value'])return void _0x1e81c2['execute']('paragraph',{});const _0x2c41e1=_0x1ed573['slice'](0x0,-0x4),_0x41cf31=function(_0x34578a,_0x3b05e,_0x36ec26){let _0x504419=Array['from'](_0x34578a)['filter'](_0x55964b=>function(_0x4aeb46,_0x57795e){return _0x57795e['checkChild'](_0x4aeb46['parent'],'listItem')&&!_0x57795e['isObject'](_0x4aeb46);}(_0x55964b,_0x36ec26));_0x504419=_0x504419['filter'](_0x46f187=>!_0x46f187['is']('element','listItem')||_0x46f187['getAttribute']('listType')!=_0x3b05e);const _0x457866=new Set();for(const _0x540544 of _0x504419)_0x540544['is']('element','listItem')?_0x457866['add'](Le(_0x540544)):_0x457866['add'](_0x540544);return Array['from'](_0x457866);}(_0x3505b8['getSelectedBlocks'](),_0x2c41e1,_0x1e81c2['model']['schema']);_0x1e81c2['model']['change'](()=>{for(const _0x2ae9f1 of _0x41cf31)_0x5d4ea1['markBlockFormat'](_0x2ae9f1,{'commandName':_0x1ed573,'commandParams':[{'forceValue':!_0x145fa9['value']}],'formatGroupId':'blockName'},Ee(_0x2ae9f1));});};}function _0x56b7f5(_0x15da73){return()=>{const _0x418a4a=function(_0x3f40ae){let _0x1d32bf=Array['from'](_0x3f40ae);const _0x22d0b1=_0x1d32bf['findIndex'](_0x221a40=>'listItem'!=_0x221a40['name']);return _0x22d0b1>-0x1&&(_0x1d32bf=_0x1d32bf['slice'](0x0,_0x22d0b1)),_0x1d32bf;}(_0x1e81c2['model']['document']['selection']['getSelectedBlocks']()),_0xc5bb64=_0x1e81c2['model']['createRange'](_0x1e81c2['model']['createPositionAt'](_0x418a4a[0x0],'before'),_0x1e81c2['model']['createPositionAt'](_0x418a4a[_0x418a4a['length']-0x1],'end'));_0x1e81c2['model']['change'](()=>{_0x5d4ea1['markBlockFormat'](_0xc5bb64,{'commandName':_0x15da73,'commandParams':[],'formatGroupId':'listIndent'},function(_0x266745){const _0x463073=new Set();for(const _0x20e230 of _0x266745){let _0x27eed4=_0x20e230['nextSibling'];for(;_0x27eed4&&_0x27eed4['getAttribute']('listIndent')>_0x20e230['getAttribute']('listIndent');)_0x463073['add'](_0x27eed4),_0x27eed4=_0x27eed4['nextSibling'];}return Array['from'](_0x463073);}(_0x418a4a));});};}_0x5d4ea1['enableCommand']('numberedList',_0x1f2cc7('numberedList')),_0x5d4ea1['enableCommand']('bulletedList',_0x1f2cc7('bulletedList')),_0x10c4a9&&_0x5d4ea1['enableCommand']('todoList',_0x1f2cc7('todoList')),_0x5d4ea1['enableCommand']('indentList',_0x56b7f5('indentList')),_0x5d4ea1['enableCommand']('outdentList',_0x56b7f5('outdentList')),_0x10c4a9&&_0x5d4ea1['enableCommand']('checkTodoList',()=>{const _0x457da1=_0x1e81c2['commands']['get']('checkTodoList'),_0x471b11=Array['from'](_0x457da1['_selectedElements']);_0x471b11['filter'](_0x30e05a=>_0x30e05a['getAttribute']('todoListChecked')!=_0x457da1['value']),_0x1e81c2['model']['change'](()=>{for(const _0x32032e of _0x471b11)_0x5d4ea1['markBlockFormat'](_0x32032e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x457da1['value']}]});});}),_0x5d4ea1['descriptionFactory']['registerElementLabel']('listItem',_0x147dad=>o(_0x3e8032,'ELEMENT_LIST_ITEM',_0x147dad)),_0x5d4ea1['descriptionFactory']['registerDescriptionCallback'](_0x454191=>{if('formatBlock'!=_0x454191['type']&&'formatInline'!=_0x454191['type'])return;const {data:_0x59a552}=_0x454191;if(_0x59a552){if('numberedList'==_0x59a552['commandName']||'bulletedList'==_0x59a552['commandName']||'todoList'==_0x59a552['commandName'])switch(_0x59a552['commandName']['replace']('List','')){case'bulleted':return _0x288caf(o(_0x3e8032,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x288caf(o(_0x3e8032,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x288caf(o(_0x3e8032,'ELEMENT_TODO_LIST'));}if('indentList'==_0x59a552['commandName'])return{'type':'format','content':o(_0x3e8032,'*Indent:*\x20%0',o(_0x3e8032,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x59a552['commandName'])return{'type':'format','content':o(_0x3e8032,'*Outdent:*\x20%0',o(_0x3e8032,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x59a552['commandName'])return _0x59a552['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e8032,'*Check\x20item*')}:{'type':'format','content':o(_0x3e8032,'*Uncheck\x20item*')};}function _0x288caf(_0x508e5f){return{'type':'format','content':o(_0x3e8032,'*Change\x20to:*\x20%0',_0x508e5f)};}});}}function Le(_0x29253b){const _0x15ba78=_0x29253b['getAttribute']('listIndent');if(0x0==_0x15ba78)return _0x29253b;let _0x1ab30b=_0x29253b;for(;_0x29253b['previousSibling']&&_0x29253b['previousSibling']['is']('element','listItem');){const _0x4ffc8f=_0x29253b['previousSibling']['getAttribute']('listIndent');if(_0x4ffc8f==_0x15ba78)_0x1ab30b=_0x29253b['previousSibling'];else{if(_0x4ffc8f<_0x15ba78)break;}_0x29253b=_0x29253b['previousSibling'];}return _0x1ab30b;}function Ee(_0x3ae54a){const _0x231794=[];if(_0x3ae54a['is']('element','listItem')&&_0x3ae54a['getAttribute']('listIndent')>0x0){let _0x4e10d7=_0x3ae54a['nextSibling'];for(;_0x4e10d7&&'listItem'==_0x4e10d7['name']&&_0x4e10d7['getAttribute']('listIndent')==_0x3ae54a['getAttribute']('listIndent');)_0x231794['push'](_0x4e10d7),_0x4e10d7=_0x4e10d7['nextSibling'];}return _0x231794;}class Q extends _0x150ede{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4dedd6=this['editor']['config']['get']('list.properties'),_0x3c7fbd=this['editor']['plugins']['get']('TrackChangesEditing');_0x4dedd6['styles']&&_0x3c7fbd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4dedd6['reversed']&&_0x3c7fbd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4dedd6['startIndex']&&_0x3c7fbd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3c7fbd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1b548e,_0x44f8d9={}){const _0x3a1127=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd71fa4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3a1127['markMultiRangeBlockFormat'](_0xd71fa4,{'commandName':'listStyle','commandParams':[{'type':_0x44f8d9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3a0f4e,_0x1f7ce5={}){const _0x5efa68=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa5aa49=this['_getSuggestionBlocks'](_0x4195b1=>_0x4195b1['is']('element','listItem')&&'numbered'===_0x4195b1['getAttribute']('listType'));if(_0xa5aa49['length']<0x1)return;const _0x9f5571=_0xa5aa49['map'](_0x12b966=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x12b966,'before'),this['editor']['model']['createPositionAt'](_0x12b966,0x0)));this['editor']['model']['change'](()=>{_0x5efa68['markMultiRangeBlockFormat'](_0x9f5571,{'commandName':'listReversed','commandParams':[{'reversed':_0x1f7ce5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4abb21,_0x4cfd00={}){const _0x1b7d2c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4651e6=this['_getSuggestionBlocks'](_0x367406=>_0x367406['is']('element','listItem')&&'numbered'===_0x367406['getAttribute']('listType'));if(_0x4651e6['length']<0x1)return;const _0x22f964=_0x4651e6['map'](_0x625979=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x625979,'before'),this['editor']['model']['createPositionAt'](_0x625979,0x0)));this['editor']['model']['change'](()=>{_0x1b7d2c['markMultiRangeBlockFormat'](_0x22f964,{'commandName':'listStart','commandParams':[{'startIndex':_0x4cfd00['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x24d00a){if('formatBlock'!=_0x24d00a['type']&&'formatInline'!=_0x24d00a['type'])return;const _0x956f7e=this['editor']['locale'],{data:_0x3950d7}=_0x24d00a;if(!_0x3950d7)return;let _0x2494cf,_0x29cd58;switch(_0x3950d7['commandName']){case'listStyle':_0x2494cf='*Change\x20to:*\x20%0',_0x29cd58={'type':'format','content':o(_0x956f7e,_0x2494cf,o(_0x956f7e,this['_getTranslationKeyForListStyle'](_0x3950d7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2494cf=_0x3950d7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x29cd58={'type':'format','content':o(_0x956f7e,_0x2494cf)};break;case'listStart':_0x2494cf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x29cd58={'type':'format','content':o(_0x956f7e,_0x2494cf,_0x3950d7['commandParams'][0x0]['startIndex'])};}return _0x29cd58;}['_getSuggestionBlocksForListStyle'](){const _0x59b8fd=this['editor']['plugins']['get']('LegacyListUtils');let _0x6cae3d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x6cae3d[0x0]?.['is']('element','listItem')&&_0x6cae3d['unshift'](..._0x59b8fd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x6cae3d[_0x6cae3d['length']-0x1]?.['is']('element','listItem')&&_0x6cae3d['push'](..._0x59b8fd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x6cae3d=[...new Set(_0x6cae3d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x6cae3d=_0x6cae3d['filter'](_0x23fb19=>_0x23fb19['is']('element','listItem'))),_0x6cae3d;}['_getSuggestionBlocks'](_0x5b82b6){const _0x4b37eb=this['editor']['plugins']['get']('LegacyListUtils');let _0x1bd356=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5b82b6)['map'](_0x3537eb=>{const _0xb2da4=this['editor']['model']['createPositionAt'](_0x3537eb,0x0);return[..._0x4b37eb['getSiblingNodes'](_0xb2da4,'backward'),..._0x4b37eb['getSiblingNodes'](_0xb2da4,'forward')];})['flat']();return _0x1bd356=[...new Set(_0x1bd356)],_0x1bd356;}['_getTranslationKeyForListStyle'](_0x2cd7c6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2cd7c6)||'default')['toUpperCase']()+'_LIST_'+_0x2cd7c6['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x150ede{['afterInit'](){const _0x2c1a18=this['editor'];if(!_0x2c1a18['plugins']['has']('MediaEmbedEditing'))return;const _0x2ad3a=_0x2c1a18['plugins']['get']('TrackChangesEditing'),_0x1946db=_0x2c1a18['locale'];_0x2ad3a['enableCommand']('mediaEmbed'),_0x2ad3a['descriptionFactory']['registerElementLabel']('media',_0xce0451=>o(_0x1946db,'ELEMENT_MEDIA',_0xce0451)),_0x2c1a18['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x484299,{writer:_0x10b8c4,options:_0x2298b4})=>{if(_0x2298b4['showSuggestionHighlights'])return _0x10b8c4['createEmptyElement']('div');},'converterPriority':'high'}),_0x2c1a18['data']['downcastDispatcher']['on']('attribute:url:media',(_0x20c1da,_0x4ccc76,_0x32867c)=>{_0x32867c['options']['showSuggestionHighlights']&&_0x20c1da['stop']();},{'priority':'high'});}}class mt extends _0x150ede{['afterInit'](){const _0x557224=this['editor'];_0x557224['plugins']['has']('MentionEditing')&&_0x557224['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x150ede{['afterInit'](){const _0x5ee94d=this['editor'];if(!_0x5ee94d['plugins']['has']('MergeFieldsEditing'))return;_0x5ee94d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5ee94d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2bd684=_0x5ee94d['plugins']['get']('TrackChangesEditing'),_0x2e0a37=_0x5ee94d['locale'];_0x2bd684['descriptionFactory']['registerElementLabel']('mergeField',_0x54655a=>o(_0x2e0a37,'ELEMENT_MERGE_FIELD',_0x54655a)),_0x2bd684['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1514af=>o(_0x2e0a37,'ELEMENT_MERGE_FIELD',_0x1514af)),_0x2bd684['descriptionFactory']['registerDescriptionCallback'](_0x4cfc2e=>{if('insertion'!=_0x4cfc2e['type']&&'deletion'!=_0x4cfc2e['type'])return;const _0x4836eb=_0x4cfc2e['getContainedElement']();if(null==_0x4836eb)return;if(!_0x4836eb['is']('element','mergeField')&&!_0x4836eb['is']('element','mergeFieldBlock'))return;const _0x3d578b=_0x5ee94d['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4836eb['getAttribute']('id'));return'insertion'==_0x4cfc2e['type']?{'type':'insertion','content':o(_0x2e0a37,'*Insert:*\x20%0','\x22'+_0x3d578b+'\x22\x20'+o(_0x2e0a37,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2e0a37,'*Remove:*\x20%0','\x22'+_0x3d578b+'\x22\x20'+o(_0x2e0a37,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x150ede{['afterInit'](){const _0x331a35=this['editor'],_0x496d84=_0x331a35['plugins']['get']('TrackChangesEditing');_0x331a35['plugins']['has']('MultiLevelList')&&(_0x496d84['enableDefaultAttributesIntegration']('multiLevelList'),_0x496d84['registerBlockAttribute']('listMarkerStyle'),_0x496d84['descriptionFactory']['registerDescriptionCallback'](_0x88c712=>this['handleDescriptions'](_0x88c712)));}['handleDescriptions'](_0x3f9886){const _0x21a888=this['editor']['locale'],{data:_0x266795}=_0x3f9886,_0x34bddc={'type':'format','content':''};if(_0x266795&&'listMarkerStyle'==_0x266795['key']){if(!_0x266795['oldValue'])return{'type':'format','content':o(_0x21a888,'*Set\x20format:*\x20%0',o(_0x21a888,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x266795['newValue']+')'};if(!_0x266795['newValue']){let _0x531a1b=_0x3f9886['head'];for(;_0x531a1b;){if(_0x531a1b['data']&&'listType'==_0x531a1b['data']['key']&&_0x531a1b['data']['newValue'])return _0x34bddc;_0x531a1b=_0x531a1b['next'];}return{'type':'format','content':o(_0x21a888,'*Remove\x20format:*\x20%0',o(_0x21a888,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x266795['oldValue']+')'};}}}}class kt extends _0x150ede{['afterInit'](){const _0x40ede3=this['editor'];if(!_0x40ede3['plugins']['has']('PageBreakEditing'))return;_0x40ede3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4b68e5=_0x40ede3['plugins']['get']('TrackChangesEditing'),_0x5c8936=_0x40ede3['locale'];_0x4b68e5['descriptionFactory']['registerElementLabel']('pageBreak',_0x702340=>o(_0x5c8936,'ELEMENT_PAGE_BREAK',_0x702340));}}class bt extends _0x150ede{['afterInit'](){const _0x3601f4=this['editor'];if(!_0x3601f4['plugins']['has']('Paragraph'))return;const _0x2760bd=_0x3601f4['locale'],_0x23b27b=_0x3601f4['plugins']['get']('TrackChangesEditing');_0x23b27b['descriptionFactory']['registerElementLabel']('paragraph',_0x58560d=>o(_0x2760bd,'ELEMENT_PARAGRAPH',_0x58560d)),_0x23b27b['enableDefaultAttributesIntegration']('paragraph'),_0x23b27b['enableCommand']('insertParagraph'),_0x3601f4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3601f4),{'priority':'highest'}),_0x3601f4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x39cc92,_0x3d3a1c,_0x8b959f)=>{_0x8b959f['options']['showSuggestionHighlights']&&nr(_0x3601f4,{'showActiveMarker':!0x1})(_0x39cc92,_0x3d3a1c,_0x8b959f);},{'priority':'highest'});const _0x2cf1ca=_0x23b27b['descriptionFactory'];_0x2cf1ca['registerDescriptionCallback'](_0x1844ff=>{if('insertion'!==_0x1844ff['type'])return;const {start:_0x35ac8b,end:_0x5382e7}=_0x1844ff['getFirstRange']();if(!_0x35ac8b['isTouching'](_0x5382e7)||!_0x35ac8b['nodeAfter'])return;const _0x47a1bb=_0x3601f4['model']['schema'],_0x1451c4=_0x35ac8b['nodeAfter'];return _0x47a1bb['isBlock'](_0x1451c4)&&!_0x47a1bb['isLimit'](_0x1451c4)&&_0x47a1bb['checkChild'](_0x1451c4,'$text')?{'type':'insertion','content':o(_0x2760bd,'*Insert:*\x20%0',_0x2cf1ca['getItemLabel'](_0x1451c4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10f699=this['editor'],_0x1c757e=_0x10f699['locale'];_0x10f699['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x181b69=>{if('formatBlock'!=_0x181b69['type'])return;const {data:_0x25aa8c}=_0x181b69;return _0x25aa8c&&'paragraph'==_0x25aa8c['commandName']?{'type':'format','content':o(_0x1c757e,'*Change\x20to:*\x20%0',o(_0x1c757e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2001ee,{showActiveMarker:_0x58e06f=!0x0}={}){return(_0x2c9a84,_0x58cef3,_0xf8aeaf)=>{const _0x1b6b08=_0x2001ee['plugins']['get']('TrackChangesEditing'),_0x4c714e=_0x58cef3['markerRange']['start'],_0x3cd630=_0x58cef3['markerRange']['end'],_0x3e5f9f=_0x2001ee['model']['schema'];if(!_0x4c714e['isTouching'](_0x3cd630)||!_0x4c714e['nodeAfter'])return;const _0x226c8d=_0x4c714e['nodeAfter'];if(_0x3e5f9f['isBlock'](_0x226c8d)&&!_0x3e5f9f['isLimit'](_0x226c8d)&&_0x3e5f9f['checkChild'](_0x226c8d,'$text')){if(!_0xf8aeaf['consumable']['consume'](_0x58cef3['markerRange'],_0x2c9a84['name']))return;const {authorId:_0x55c724}=_0x1b6b08['_splitMarkerName'](_0x58cef3['markerName']),_0x475af9=_0xf8aeaf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x55c724}),_0x5794f2=_0xf8aeaf['mapper']['toViewPosition'](_0x3cd630);_0x58e06f&&_0x1b6b08['activeMarkers']['includes'](_0x58cef3['markerName'])&&_0xf8aeaf['writer']['addClass']('ck-suggestion-marker--active',_0x475af9),_0xf8aeaf['writer']['insert'](_0x5794f2,_0x475af9),_0xf8aeaf['mapper']['bindElementToMarker'](_0x475af9,_0x58cef3['markerName']);}};}class yt extends _0x150ede{['afterInit'](){const _0xdd18d2=this['editor'];if(!_0xdd18d2['plugins']['has']('RemoveFormatEditing'))return;_0xdd18d2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d024e=this['editor'];_0x5d024e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56ebc5=>{if('formatBlock'!=_0x56ebc5['type']&&'formatInline'!=_0x56ebc5['type'])return;const {data:_0xdbb0d9}=_0x56ebc5;return _0xdbb0d9&&'removeFormat'==_0xdbb0d9['commandName']?{'type':'format','content':o(_0x5d024e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x150ede{['afterInit'](){const _0x304935=this['editor'];if(!_0x304935['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4cda0b=_0x304935['plugins']['get']('TrackChangesEditing');_0x4cda0b['enableCommand']('goToPreviousRestrictedEditingException'),_0x4cda0b['enableCommand']('goToNextRestrictedEditingException');const _0x151b2b=_0x304935['plugins']['get']('RestrictedEditingModeEditing');_0x151b2b['enableCommand']('trackChanges'),_0x151b2b['enableCommand']('acceptSuggestion'),_0x151b2b['enableCommand']('discardSuggestion'),_0x151b2b['enableCommand']('acceptAllSuggestions'),_0x151b2b['enableCommand']('discardAllSuggestions'),_0x151b2b['enableCommand']('acceptSelectedSuggestions'),_0x151b2b['enableCommand']('discardSelectedSuggestions');}}class St extends _0x150ede{static get['requires'](){return[_0x11242e];}['init'](){const _0x41f69c=this['editor'],_0x3e5dfe=_0x41f69c['plugins']['get']('TrackChangesEditing');_0x3e5dfe['enableCommand']('shiftEnter'),_0x41f69c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x41f69c),{'priority':'high'}),_0x41f69c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x41f69c),{'priority':'high'}),_0x41f69c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x436e64,_0x546e34,_0xa3e89a)=>{_0xa3e89a['options']['showSuggestionHighlights']&&ke(_0x41f69c,{'showActiveMarker':!0x1})(_0x436e64,_0x546e34,_0xa3e89a);}),_0x3e5dfe['descriptionFactory']['registerElementLabel']('softBreak',_0x18670a=>o(_0x41f69c['locale'],'ELEMENT_LINE_BREAK',_0x18670a));}}function ke(_0x47ca3d,{showActiveMarker:_0x243840=!0x0}={}){return(_0x26d1aa,_0x29b4ac,_0x216f17)=>{const _0xbe5640=_0x47ca3d['plugins']['get']('TrackChangesEditing');if(!_0x216f17['consumable']['test'](_0x29b4ac['markerRange'],_0x26d1aa['name']))return;const _0x1142ed=_0x47ca3d['model'];for(const _0x514174 of _0x29b4ac['markerRange']['getItems']()){if(!_0x514174['is']('element','softBreak'))continue;const _0x343f94='deletion'==_0x29b4ac['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x88b2ae}=_0xbe5640['_splitMarkerName'](_0x29b4ac['markerName']),_0x375ad3=_0x216f17['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x343f94,'data-author-id':_0x88b2ae}),_0x28365a=_0x216f17['mapper']['toViewPosition'](_0x1142ed['createPositionBefore'](_0x514174));_0x243840&&_0xbe5640['activeMarkers']['includes'](_0x29b4ac['markerName'])&&_0x216f17['writer']['addClass']('ck-suggestion-marker--active',_0x375ad3),_0x216f17['writer']['insert'](_0x28365a,_0x375ad3),_0x216f17['mapper']['bindElementToMarker'](_0x375ad3,_0x29b4ac['markerName']);}};}class At extends _0x150ede{['afterInit'](){const _0x574a63=this['editor'],_0x5b3aa2=_0x574a63['model'],_0x4735a7=_0x574a63['locale'];if(!_0x574a63['plugins']['has']('StandardEditingModeEditing'))return;const _0x2522a6=_0x574a63['plugins']['get']('TrackChangesEditing'),_0x568406='restrictedEditingException',_0x4bf6bb=_0x574a63['commands']['get'](_0x568406);_0x2522a6['enableCommand'](_0x568406,(_0x22a0c7,_0xff52e5={})=>{const _0x4606ff=_0x5b3aa2['document']['selection'];if(_0x4606ff['isCollapsed'])return void _0x22a0c7(_0xff52e5);const _0x1275ad=void 0x0!==_0xff52e5['forceValue']?_0xff52e5['forceValue']:!_0x4bf6bb['value'];_0x5b3aa2['change'](()=>{const _0x2dcdf9=Array['from'](_0x4606ff['getRanges']());for(const _0x11de2e of _0x2dcdf9){const _0x22596e=_0x1275ad?[_0x11de2e]:io(_0x568406,_0x11de2e,_0x5b3aa2);for(const _0x16a73a of _0x22596e)_0x2522a6['markInlineFormat'](_0x16a73a,{'commandName':_0x568406,'commandParams':[{'forceValue':_0x1275ad}]});}});}),_0x2522a6['descriptionFactory']['registerDescriptionCallback'](_0x35e005=>{if('formatBlock'!=_0x35e005['type']&&'formatInline'!=_0x35e005['type'])return;const {data:_0x4b8d08}=_0x35e005;return _0x4b8d08&&_0x4b8d08['commandName']==_0x568406?_0x4b8d08['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4735a7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4735a7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x150ede{['afterInit'](){const _0x11efab=this['editor'];if(!_0x11efab['plugins']['has']('Style')||!_0x11efab['plugins']['has']('DataSchema'))return;const _0x339cec=_0x11efab['plugins']['get']('TrackChangesEditing'),_0x2989ae=_0x11efab['locale'],_0x3b7313=_0x11efab['config']['get']('style')||{},_0x59d8c4=_0x11efab['plugins']['get']('GeneralHtmlSupport'),_0x523aa3=_0x11efab['plugins']['get']('StyleUtils')['normalizeConfig'](_0x11efab['plugins']['get']('DataSchema'),_0x3b7313['definitions']);_0x339cec['enableDefaultAttributesIntegration']('style');const _0x18f650=new Set();for(const _0x580d54 of _0x523aa3['block']){const _0x55740f=_0x59d8c4['getGhsAttributeNameForElement'](_0x580d54['element']);_0x18f650['add'](_0x55740f);}const _0x32586b=new Set();for(const _0x4af59e of _0x523aa3['inline']){const _0x415cee=_0x59d8c4['getGhsAttributeNameForElement'](_0x4af59e['element']);_0x32586b['add'](_0x415cee);for(const _0x2102e6 of _0x4af59e['ghsAttributes'])_0x32586b['add'](_0x2102e6);}for(const _0x2554b9 of _0x18f650)_0x339cec['registerBlockAttribute'](_0x2554b9),_0x339cec['descriptionFactory']['registerAttributeLabel'](_0x2554b9,o(_0x2989ae,'FORMAT_STYLE'));for(const _0x5bd3f3 of _0x32586b)_0x339cec['registerInlineAttribute'](_0x5bd3f3),_0x339cec['descriptionFactory']['registerAttributeLabel'](_0x5bd3f3,o(_0x2989ae,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x232ab0=this['editor'],_0x1861ba=_0x232ab0['locale'];_0x232ab0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cf5ab=>{if('formatBlock'!=_0x5cf5ab['type']&&'formatInline'!=_0x5cf5ab['type'])return;const {data:_0x3dafdb}=_0x5cf5ab;return _0x3dafdb&&'style'===_0x3dafdb['commandName']?_0x3dafdb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1861ba,'*Set\x20format:*\x20%0',_0x3dafdb['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1861ba,'*Remove\x20format:*\x20%0',_0x3dafdb['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x150ede{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x447859){super(_0x447859),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3cf393=this['editor'],_0x2eb350=_0x3cf393['model']['document']['selection'];if(!_0x3cf393['plugins']['has']('TableEditing'))return;const _0x3efb89=_0x3cf393['locale'],_0x10f001=_0x3cf393['plugins']['get']('TrackChangesEditing'),_0x4182a0=_0x3cf393['plugins']['get']('TableUtils');_0x10f001['descriptionFactory']['registerElementLabel']('table',_0x9ede9f=>o(_0x3efb89,'ELEMENT_TABLE',_0x9ede9f)),this['_setupColumnsRowsFixing'](),_0x10f001['enableCommand']('insertTable'),_0x10f001['enableCommand']('selectTableRow'),_0x10f001['enableCommand']('selectTableColumn');for(const _0x3899d6 of['insertTableRowAbove','insertTableRowBelow']){const _0x3d1d8d=_0x3cf393['commands']['get'](_0x3899d6);_0x10f001['enableCommand'](_0x3899d6,_0xb336bd=>{_0x3cf393['model']['change'](_0x4fab5d=>{_0xb336bd();const _0x4d8b1b='above'===_0x3d1d8d['order'],_0x124873=_0x4182a0['getSelectionAffectedTableCells'](_0x2eb350),_0x2dc486=_0x4182a0['getRowIndexes'](_0x124873),_0x3a5033=_0x4d8b1b?_0x2dc486['first']-0x1:_0x2dc486['last']+0x1,_0x26e99e=_0x124873[0x0]['findAncestor']('table'),_0x31a5fb=_0x4182a0['createTableWalker'](_0x26e99e,{'startRow':_0x3a5033,'endRow':_0x3a5033}),_0xf9324=Array['from'](_0x31a5fb)['map'](_0x12e4d4=>_0x4fab5d['createRangeOn'](_0x12e4d4['cell']));_0x10f001['markMultiRangeInsertion'](_0xf9324,'tableRow');});});}for(const _0x4a705a of['insertTableColumnLeft','insertTableColumnRight']){const _0x59bcdf=_0x3cf393['commands']['get'](_0x4a705a);_0x10f001['enableCommand'](_0x4a705a,_0x3b7d5c=>{_0x3cf393['model']['change'](_0x215ac7=>{_0x3b7d5c();const _0x1116b7='left'===_0x59bcdf['order'],_0x491d81=_0x4182a0['getSelectionAffectedTableCells'](_0x2eb350),_0x577678=_0x4182a0['getColumnIndexes'](_0x491d81),_0x2d255f=_0x1116b7?_0x577678['first']-0x1:_0x577678['last']+0x1,_0x3682b1=_0x491d81[0x0]['findAncestor']('table'),_0x5615b5=_0x4182a0['createTableWalker'](_0x3682b1,{'startRow':0x0,'column':_0x2d255f,'includeAllSlots':!0x1}),_0x42db4f=Array['from'](_0x5615b5)['map'](_0xd957b1=>_0x215ac7['createRangeOn'](_0xd957b1['cell']));_0x10f001['markMultiRangeInsertion'](_0x42db4f,'tableColumn');});});}for(const _0x1d7e58 of['removeTableRow','removeTableColumn']){const _0x34d5db=_0x1d7e58['substr'](0xb),_0x50d016=_0x34d5db['toLowerCase'](),_0x52f8cb=_0x50d016['substr'](0x0,0x3)+'span',_0x180a9d='table'+_0x34d5db,_0x360203='min'+_0x34d5db,_0x57ccaa='max'+_0x34d5db;_0x10f001['enableCommand'](_0x1d7e58,()=>{_0x3cf393['model']['change'](_0x1f665a=>{const _0x4855bb=_0x4182a0['getSelectionAffectedTableCells'](_0x2eb350),_0x4524a2=_0x4855bb[0x0]['findAncestor']('table');let _0x2b5a6e;if('removeTableRow'==_0x1d7e58){const _0x18c80b=_0x4182a0['getRowIndexes'](_0x4855bb);_0x2b5a6e={'startRow':_0x18c80b['first'],'endRow':_0x18c80b['last'],'includeAllSlots':!0x0};}else{const _0x197316=_0x4182a0['getColumnIndexes'](_0x4855bb);_0x2b5a6e={'startColumn':_0x197316['first'],'endColumn':_0x197316['last'],'includeAllSlots':!0x0};}const _0x467d1a=_0x4182a0['createTableWalker'](_0x4524a2,_0x2b5a6e),_0x9bdd4a=Array['from'](_0x467d1a)['map'](({cell:_0x4b5293})=>_0x4b5293),_0x21cf60=Re(_0x9bdd4a['filter'](_0x5a4856=>_0x5a4856['hasAttribute'](_0x52f8cb))),_0x696f44=Re(_0x9bdd4a['filter'](_0x3d1ac7=>!_0x3d1ac7['hasAttribute'](_0x52f8cb)))['map'](_0xe424c6=>_0x1f665a['createRangeOn'](_0xe424c6)),_0x15ed8c=_0x10f001['markMultiRangeDeletion'](_0x696f44,_0x180a9d);if(_0x15ed8c&&('tableRow'==_0x15ed8c['subType']||'tableColumn'==_0x15ed8c['subType'])){const _0x800c7=this['_getSuggestionCoords'](_0x15ed8c);for(const _0x1a93f0 of _0x21cf60){const _0x294f8e=_0x1f665a['createRangeOn'](_0x1a93f0),_0x562e9b=_0x4182a0['getCellLocation'](_0x1a93f0),_0x904578=_0x1a93f0['getAttribute'](_0x52f8cb)-0x1,_0x553596=_0x800c7[_0x360203],_0x2e8eb2=_0x800c7[_0x57ccaa];_0x553596<=_0x562e9b[_0x50d016]&&_0x562e9b[_0x50d016]+_0x904578<=_0x2e8eb2&&_0x15ed8c['addRange'](_0x294f8e);}}});});}function _0x585ab4(_0xe40373){const _0x2dce7e=Array['from'](_0x2eb350['getRanges']())['map'](_0xdcb3e9=>_0x209e44['fromRange'](_0xdcb3e9));_0x3cf393['model']['change'](_0x1816a5=>{const _0x1df60a=_0x1816a5['batch'];_0xe40373=_0xe40373['filter'](_0x4d5c11=>'$graveyard'!=_0x4d5c11['root']['rootName']),_0x1816a5['setSelection'](_0xe40373),_0x3cf393['commands']['get']('removeTableRow')['refresh'](),_0x3cf393['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3cf393['model']['enqueueChange'](()=>{_0x3cf393['model']['enqueueChange'](_0x1df60a,_0x52de40=>{const _0x4d2b89=_0x2dce7e['filter'](_0x1909c4=>'$graveyard'!=_0x1909c4['root']['rootName']);_0x4d2b89['length']>0x0&&_0x52de40['setSelection'](_0x4d2b89);for(const _0x404b25 of _0x2dce7e)_0x404b25['detach']();});});});}function _0x2c6621(_0x407946){_0x3cf393['model']['change'](_0x490c09=>{const _0x178680=Array['from'](_0x2eb350['getRanges']())['map'](_0x24206e=>_0x209e44['fromRange'](_0x24206e)),_0xf0c106=[];for(const _0x2ee9bd of _0x407946)for(const _0x5c36af of _0x2ee9bd['getItems']({'shallow':!0x0}))_0xf0c106['push'](_0x5c36af);for(const _0x3f586f of _0xf0c106)'$graveyard'!=_0x3f586f['root']['rootName']&&(_0x490c09['setSelection'](_0x490c09['createPositionAt'](_0x3f586f,0x0)),_0x3cf393['commands']['get']('removeTableColumn')['refresh'](),_0x3cf393['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x243376=_0x178680['filter'](_0x28b33e=>'$graveyard'!=_0x28b33e['root']['rootName']);_0x243376['length']>0x0&&_0x490c09['setSelection'](_0x243376);for(const _0x14d1fa of _0x178680)_0x14d1fa['detach']();});}function _0x9fbb75(_0x76c54c,_0x5fd4c6){return _0x5fd4c6['every'](_0x3ae2e6=>_0x76c54c['some'](_0x3c661d=>_0x3c661d['end']['isEqual'](_0x3ae2e6['start'])||_0x3ae2e6['end']['isEqual'](_0x3c661d['start'])));}function _0x303942(_0x30790f,_0x1bfa23){return!_0x30790f['some'](_0x340d35=>_0x1bfa23['some'](_0x1a5053=>_0x340d35['isIntersecting'](_0x1a5053)))&&_0x30790f['some'](_0x15414c=>_0x1bfa23['some'](_0x2b4aee=>_0x15414c['end']['isTouching'](_0x2b4aee['start'])));}_0x3cf393['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x430829,_0x1ffb18,_0x18206f)=>{if(!_0x18206f['options']['showSuggestionHighlights'])return;const _0x472d33=_0x1ffb18['item'];if(!_0x472d33)return;const _0x3f40c0=_0x18206f['mapper']['toViewElement'](_0x472d33);function _0x14cb55(_0x403bf1){return Array['isArray'](_0x403bf1)?_0x403bf1:[_0x403bf1];}_0x3f40c0&&'tableCell'===_0x472d33['name']&&_0x5b3ecd(_0x3f40c0,_0x18206f['writer'],(_0x3cea74,_0x5216b2,_0x42a76d)=>_0x42a76d['addClass'](_0x14cb55(_0x5216b2['classes']),_0x3cea74),(_0xabd51f,_0x69ba4d,_0x3f1bff)=>_0x3f1bff['removeClass'](_0x14cb55(_0x69ba4d['classes']),_0xabd51f));},{'priority':'highest'}),_0x10f001['descriptionFactory']['registerDescriptionCallback'](_0x5964a8=>{if('insertion'!=_0x5964a8['type']&&'deletion'!=_0x5964a8['type'])return;const _0x46fdec=_0x5964a8['getContainedElement']();if(null!=_0x46fdec&&_0x46fdec['is']('element','table')){if('insertion'==_0x5964a8['type']){const _0x4be9be=_0x5964a8['getItems']()['filter'](_0x490910=>_0x490910['is']('$textProxy'))['map'](_0x570627=>_0x570627['data']);if(_0x4be9be['length'])return{'type':'insertion','content':o(_0x3efb89,'*Insert:*\x20%0',o(_0x3efb89,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4be9be['join']('\x20')+'\x22'))};}if('deletion'==_0x5964a8['type']){const _0x2b524b=_0x5964a8['getItems']()['filter'](_0x3f81e1=>_0x3f81e1['is']('$textProxy'))['map'](_0x9edf9d=>_0x9edf9d['data']);if(_0x2b524b['length'])return{'type':'deletion','content':o(_0x3efb89,'*Remove:*\x20%0',o(_0x3efb89,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2b524b['join']('\x20')+'\x22'))};}}}),_0x10f001['descriptionFactory']['registerDescriptionCallback'](_0x219d62=>{if('tableRow'==_0x219d62['subType']){const _0x2693ec=_0x219d62['getItems']()['filter'](_0x5a2e47=>_0x5a2e47['is']('$textProxy'))['map'](_0x176125=>_0x176125['data']),_0x2dce36=this['_getSuggestionCoords'](_0x219d62),_0x4cc126=_0x2dce36['maxRow']-_0x2dce36['minRow']+0x1;if('insertion'==_0x219d62['type'])return _0x2693ec['length']?{'type':'insertion','content':o(_0x3efb89,'*Insert:*\x20%0',o(_0x3efb89,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4cc126,'\x22'+_0x2693ec['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3efb89,'*Insert:*\x20%0',o(_0x3efb89,'ELEMENT_TABLE_ROW',_0x4cc126))};if('deletion'==_0x219d62['type'])return _0x2693ec['length']?{'type':'deletion','content':o(_0x3efb89,'*Remove:*\x20%0',o(_0x3efb89,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4cc126,'\x22'+_0x2693ec['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3efb89,'*Remove:*\x20%0',o(_0x3efb89,'ELEMENT_TABLE_ROW',_0x4cc126))};}if('tableColumn'==_0x219d62['subType']){const _0x5e147a=_0x219d62['getItems']()['filter'](_0x6c663=>_0x6c663['is']('$textProxy'))['map'](_0x46af5d=>_0x46af5d['data']),_0x408fd9=this['_getSuggestionCoords'](_0x219d62),_0x4c9677=_0x408fd9['maxColumn']-_0x408fd9['minColumn']+0x1;if('insertion'==_0x219d62['type'])return _0x5e147a['length']?{'type':'insertion','content':o(_0x3efb89,'*Insert:*\x20%0',o(_0x3efb89,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4c9677,'\x22'+_0x5e147a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3efb89,'*Insert:*\x20%0',o(_0x3efb89,'ELEMENT_TABLE_COLUMN',_0x4c9677))};if('deletion'==_0x219d62['type'])return _0x5e147a['length']?{'type':'deletion','content':o(_0x3efb89,'*Remove:*\x20%0',o(_0x3efb89,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4c9677,'\x22'+_0x5e147a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3efb89,'*Remove:*\x20%0',o(_0x3efb89,'ELEMENT_TABLE_COLUMN',_0x4c9677))};}}),_0x10f001['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x585ab4),_0x10f001['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x585ab4),_0x10f001['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2c6621),_0x10f001['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2c6621),_0x10f001['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x9fbb75),_0x10f001['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x9fbb75),_0x10f001['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x303942),_0x10f001['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x303942);}['_acceptFormatSuggestionCallbackFactory'](){const _0xd10ba1=this['editor'],_0xee7e4e=_0xd10ba1['model']['document']['selection'];return(_0x3c3612,_0x540759)=>{_0xd10ba1['model']['change'](_0x45dd9d=>{const {commandName:_0x1654e3,commandParams:_0xb01aa8}=_0x540759;let _0x3e3801=_0x3c3612[0x0]['end']['nodeBefore'];_0xb01aa8&&_0xb01aa8[0x0]&&!0x1===_0xb01aa8[0x0]['forceValue']&&(_0x3e3801=_0x3c3612[0x0]['start']['nodeAfter']);const _0x57612d=_0x45dd9d['createRangeIn'](_0x3e3801);if('$graveyard'==_0x57612d['root']['rootName'])return;const _0x2d4bc2=Array['from'](_0xee7e4e['getRanges']())['map'](_0x43b7e1=>_0x209e44['fromRange'](_0x43b7e1));_0x45dd9d['setSelection'](_0x57612d),_0xd10ba1['commands']['get'](_0x1654e3)['refresh'](),_0xb01aa8['push']({'forceDefaultExecution':!0x0}),_0xd10ba1['execute'](_0x1654e3,..._0xb01aa8);const _0x14e6b9=_0x2d4bc2['filter'](_0x48f805=>'$graveyard'!=_0x48f805['root']['rootName']);_0x14e6b9['length']>0x0&&_0x45dd9d['setSelection'](_0x14e6b9);for(const _0x19c50c of _0x2d4bc2)_0x19c50c['detach']();});};}['_getCoordsForCells'](_0x35331c){const _0x6c973f=this['editor']['plugins']['get']('TableUtils');let _0x239214=Number['MAX_SAFE_INTEGER'],_0x28d81a=Number['MIN_SAFE_INTEGER'],_0x550b69=Number['MAX_SAFE_INTEGER'],_0x226848=Number['MIN_SAFE_INTEGER'];for(const _0xbd5958 of _0x35331c){if('$graveyard'==_0xbd5958['root']['rootName'])continue;const {row:_0x1c0a36,column:_0x404867}=_0x6c973f['getCellLocation'](_0xbd5958),_0x347bec=_0xbd5958['hasAttribute']('rowspan')?_0xbd5958['getAttribute']('rowspan')-0x1:0x0,_0x24b956=_0xbd5958['hasAttribute']('colspan')?_0xbd5958['getAttribute']('colspan')-0x1:0x0;_0x239214=_0x1c0a36<_0x239214?_0x1c0a36:_0x239214,_0x28d81a=_0x1c0a36+_0x347bec>_0x28d81a?_0x1c0a36+_0x347bec:_0x28d81a,_0x550b69=_0x404867<_0x550b69?_0x404867:_0x550b69,_0x226848=_0x404867+_0x24b956>_0x226848?_0x404867+_0x24b956:_0x226848;}return{'minRow':_0x239214,'maxRow':_0x28d81a,'minColumn':_0x550b69,'maxColumn':_0x226848};}['_setupColumnsRowsFixing'](){const _0x28fdb9=this['editor'],_0x1d8543=_0x28fdb9['plugins']['get']('TrackChangesEditing'),_0x2bed5d=_0x28fdb9['plugins']['get']('TableUtils');_0x28fdb9['model']['document']['on']('change:data',()=>{const _0x5b53be=Array['from'](_0x28fdb9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x370af4,data:_0x43104d}of _0x5b53be){const {group:_0xcec3f9,id:_0x2cbb27,subType:_0x33963a}=_0x1d8543['_splitMarkerName'](_0x370af4);if('suggestion'!=_0xcec3f9)continue;if(null!=_0x43104d['oldRange'])continue;const _0x1c7661=_0x1d8543['getSuggestion'](_0x2cbb27);this['_tablePostFixingSubtypes']['includes'](_0x33963a)&&this['_tableSuggestions']['add'](_0x1c7661);}},{'priority':'low'});const _0x52d8a6=(_0x3f98a0,_0x38782c)=>{let _0x4a3d54=!0x1;const _0x40f1fa=_0x38782c['createRangeOn'](_0x3f98a0),_0x6dfe02=_0x3f98a0['findAncestor']('table'),_0x6feaff=_0x2bed5d['getCellLocation'](_0x3f98a0);for(const _0xdd933 of this['_tableSuggestions']){const _0x36b1bc=_0xdd933['subType'],_0x39b115=_0x36b1bc['startsWith']('tablePaste'),_0x21174e=_0x36b1bc['substr'](_0x39b115?0xa:0x5),_0x247552=_0x21174e['toLowerCase'](),_0x25e3f8=_0x247552['substr'](0x0,0x3)+'span',_0x7b190d='min'+_0x21174e,_0x4d3046='max'+_0x21174e;if(!_0xdd933['isInContent'])continue;if(_0x6dfe02!=_0xdd933['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xdd933['isIntersectingWithRange'](_0x40f1fa))continue;const _0x53c951=_0x3f98a0['hasAttribute'](_0x25e3f8)?_0x3f98a0['getAttribute'](_0x25e3f8)-0x1:0x0,_0x23996d=this['_getSuggestionCoords'](_0xdd933),_0x2ef8e8=_0x23996d[_0x7b190d],_0x437b4e=_0x23996d[_0x4d3046];_0x2ef8e8<=_0x6feaff[_0x247552]&&_0x6feaff[_0x247552]+_0x53c951<=_0x437b4e&&(_0xdd933['addRange'](_0x40f1fa),_0x4a3d54=!0x0);}return _0x4a3d54;};_0x28fdb9['model']['document']['registerPostFixer'](_0x4f6837=>{let _0x137c82=!0x1;for(const _0x11a077 of _0x28fdb9['model']['document']['differ']['getChanges']())if('insert'==_0x11a077['type']){if('tableRow'==_0x11a077['name']){for(const _0x3aa4c8 of _0x11a077['position']['nodeAfter']['getChildren']())_0x137c82=_0x137c82||_0x52d8a6(_0x3aa4c8,_0x4f6837);}else'tableCell'==_0x11a077['name']&&(_0x137c82=_0x137c82||_0x52d8a6(_0x11a077['position']['nodeAfter'],_0x4f6837));}return _0x137c82;});}['_getSuggestionCoords'](_0x2c4e52){return this['_getCoordsForCells'](_0x2c4e52['getRanges']()['map'](_0x40e019=>_0x40e019['start']['nodeAfter']));}}function Re(_0x435d8c){return Array['from'](new Set(_0x435d8c)['values']());}class _t extends _0x150ede{static get['requires'](){return[vt];}['afterInit'](){const _0x35a98d=this['editor'],_0xaa9d87=_0x35a98d['model']['document']['selection'],_0x5cb3ed=_0x35a98d['locale'];if(!_0x35a98d['plugins']['has']('TableEditing'))return;const _0x32b840=_0x35a98d['plugins']['get']('TrackChangesEditing'),_0x586527=_0x35a98d['plugins']['get']('TableUtils'),_0xee253=_0x35a98d['plugins']['get'](vt);_0xee253['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x32b840['enableCommand']('mergeTableCells',()=>{const _0x354d7d=_0x586527['getSelectionAffectedTableCells'](_0x35a98d['model']['document']['selection']);_0x35a98d['model']['change'](()=>{_0x32b840['markMultiRangeBlockFormat'](_0x354d7d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x35a98d['commands']['get']('mergeTableCells')['on']('execute',(_0x569a9d,_0x5eb866)=>{_0x35a98d['commands']['get']('trackChanges')['value']&&(_0x5eb866['length']>0x0&&_0x5eb866[_0x5eb866['length']-0x1]&&_0x5eb866[_0x5eb866['length']-0x1]['forceDefaultExecution']||_0x32b840['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x569a9d['stop']());},{'priority':'highest'});for(const _0x3a95cc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x8ddebc=_0x35a98d['commands']['get'](_0x3a95cc);_0x32b840['enableCommand'](_0x3a95cc,()=>{const _0x4b8f81=_0x35a98d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3a1b32=>_0x3a1b32['is']('element','tableCell')),_0x3b011d=_0x8ddebc['value'];_0x35a98d['model']['change'](()=>{_0x32b840['markMultiRangeBlockFormat']([_0x4b8f81,_0x3b011d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3ede62 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x353913=_0x35a98d['commands']['get'](_0x3ede62);_0x32b840['enableCommand'](_0x3ede62,()=>{const _0x3ac39d=_0x586527['getSelectionAffectedTableCells'](_0x35a98d['model']['document']['selection'])[0x0],_0x48c70a=_0x3ac39d['findAncestor']('table'),{column:_0x3c195b,row:_0x5d31b0}=_0x586527['getCellLocation'](_0x3ac39d);let _0x42f76b=[];if('horizontally'==_0x353913['direction']){const _0x206f10=_0x586527['createTableWalker'](_0x48c70a,{'startRow':_0x5d31b0,'endRow':_0x5d31b0,'includeAllSlots':!0x0});_0x42f76b=Array['from'](_0x206f10)['map'](_0x24c3da=>_0x24c3da['cell']);}else{const _0x5cf3fd=_0x586527['createTableWalker'](_0x48c70a,{'column':_0x3c195b,'includeAllSlots':!0x0});_0x42f76b=Array['from'](_0x5cf3fd)['map'](_0xfc4258=>_0xfc4258['cell']);}_0x35a98d['model']['change'](_0x667097=>{_0x32b840['markBlockFormat'](_0x667097['createRangeOn'](_0x3ac39d),{'commandName':_0x3ede62,'commandParams':[]},_0x42f76b,_0x3ede62);});});}_0x32b840['descriptionFactory']['registerDescriptionCallback'](_0x17fe90=>{if('formatBlock'!=_0x17fe90['type']&&'formatInline'!=_0x17fe90['type'])return;const {data:_0x4f4471}=_0x17fe90;return _0x4f4471&&'mergeTableCells'==_0x4f4471['commandName']?{'type':'format','content':o(_0x5cb3ed,'*Merge\x20cells*')}:void 0x0;}),_0x32b840['descriptionFactory']['registerDescriptionCallback'](_0x2db1ab=>{if('formatBlock'!=_0x2db1ab['type']&&'formatInline'!=_0x2db1ab['type'])return;const {data:_0x10b3bf}=_0x2db1ab;return _0x10b3bf?'splitTableCellVertically'==_0x10b3bf['commandName']?{'type':'format','content':o(_0x5cb3ed,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x10b3bf['commandName']?{'type':'format','content':o(_0x5cb3ed,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x8a0b9=_0xee253['_acceptFormatSuggestionCallbackFactory']();for(const _0x5daf33 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x32b840['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5daf33,'accept',_0x8a0b9);for(const _0x182687 of['splitTableCellVertically','splitTableCellHorizontally'])_0x32b840['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x182687,'accept',_0x8a0b9);_0x32b840['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4156b3=>{_0x35a98d['model']['change'](_0x32bd09=>{const _0x2326b0=Array['from'](_0xaa9d87['getRanges']())['map'](_0x416a51=>_0x209e44['fromRange'](_0x416a51));_0x32bd09['setSelection'](_0x4156b3),_0x35a98d['commands']['get']('mergeTableCells')['refresh'](),_0x35a98d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2fb01a=_0x2326b0['filter'](_0x47978b=>'$graveyard'!=_0x47978b['root']['rootName']);_0x2fb01a['length']>0x0&&_0x32bd09['setSelection'](_0x2fb01a);for(const _0x1bba5c of _0x2326b0)_0x1bba5c['detach']();});});for(const _0x1e1d7e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2ca949=_0x35a98d['commands']['get'](_0x1e1d7e);_0x2ca949['on']('set:isEnabled',(_0x29ed31,_0x32a426,_0xe01e5a)=>{if(_0xe01e5a){const _0x195d40=_0x35a98d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc20ea1=>_0xc20ea1['is']('element','tableCell'));this['_areMergableCells'](_0x2ca949['value'],_0x195d40)||(_0x29ed31['return']=!0x1,_0x29ed31['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5495a2=this['editor']['commands']['get']('mergeTableCells'),_0x33c4ca=this['editor']['plugins']['get']('TableUtils');if(!_0x5495a2['isEnabled'])return!0x1;const _0x1858ae=_0x33c4ca['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1df83f of _0x1858ae)for(const _0x1dd42d of _0x1858ae)if(_0x1df83f!=_0x1dd42d&&!this['_areMergableCells'](_0x1df83f,_0x1dd42d))return!0x1;return!0x0;}['_areMergableCells'](_0x78d855,_0x4591b9){const _0x36f40f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x554864=this['editor']['model']['createRangeOn'](_0x78d855),_0x1e9604=this['editor']['model']['createRangeOn'](_0x4591b9),_0x5cc9ff=new Set(),_0x3219f5=new Set();for(const _0x598153 of _0x36f40f['getSuggestions']())if(('insertion'==_0x598153['type']||'deletion'==_0x598153['type']||'mergeTableCells'==_0x598153['subType'])&&_0x598153['isInContent']){for(const _0x4cd663 of _0x598153['getRanges']())_0x4cd663['containsRange'](_0x554864,!0x0)&&_0x5cc9ff['add'](_0x598153['type']+':'+_0x598153['author']['id']),_0x4cd663['containsRange'](_0x1e9604,!0x0)&&_0x3219f5['add'](_0x598153['type']+':'+_0x598153['author']['id']);}if(_0x5cc9ff['size']!=_0x3219f5['size'])return!0x1;for(const _0x490843 of _0x5cc9ff)if(!_0x3219f5['has'](_0x490843))return!0x1;return!0x0;}}class Ct extends _0x150ede{static get['requires'](){return[vt];}['afterInit'](){const _0x3567cf=this['editor'];if(!_0x3567cf['plugins']['has']('TableEditing'))return;const _0x31c27f=_0x3567cf['locale'],_0x5d8be8=_0x3567cf['plugins']['get']('TrackChangesEditing');_0x5d8be8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5d8be8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5d8be8['registerBlockAttribute']('headingRows'),_0x5d8be8['registerBlockAttribute']('headingColumns'),_0x5d8be8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x31c27f,'FORMAT_HEADER_ROW')),_0x5d8be8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x31c27f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x24c13f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54fa6f=this['editor']['plugins']['get']('TableUtils'),_0x52edf4=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x3b5924({showActiveMarker:_0xf36255=!0x0,setDataAttribute:_0x4358fb=!0x0}={}){return(_0x5c07ab,_0x38fe08,_0x534bae)=>{const {type:_0x481207,id:_0x3c4c5e}=_0x24c13f['_splitMarkerName'](_0x38fe08['markerName']),_0x5e94de=_0x24c13f['getSuggestion'](_0x3c4c5e),_0x403294=_0x5e94de['data'];if('formatBlock'!=_0x5e94de['type']||!_0x403294||'setTableColumnHeader'!=_0x403294['commandName'])return;if(_0x38fe08['item'])return void _0x5c07ab['stop']();if(!_0x534bae['consumable']['consume'](_0x38fe08['markerRange'],_0x5c07ab['name']))return;const _0x26ffba=_0x38fe08['markerRange']['start']['nodeAfter'],_0x5517d2=_0x38fe08['markerRange']['end']['nodeBefore'],_0x306dbf=_0x26ffba['parent']['parent'],{column:_0x5071dc}=_0x54fa6f['getCellLocation'](_0x26ffba),{column:_0x2262d5}=_0x54fa6f['getCellLocation'](_0x5517d2);for(let _0x1b6fcd=_0x5071dc;_0x1b6fcd<=_0x2262d5;_0x1b6fcd++){const _0x289d75=_0x54fa6f['createTableWalker'](_0x306dbf,{'column':_0x1b6fcd,'includeAllSlots':!0x1});for(const _0x4fb800 of _0x289d75){const _0x12c8e2=_0x4fb800['cell'],_0x3d3fe3=_0x534bae['mapper']['toViewElement'](_0x12c8e2);_0x534bae['writer']['addClass']('ck-suggestion-marker-'+_0x481207,_0x3d3fe3),_0x4358fb&&_0x534bae['writer']['setAttribute']('data-suggestion',_0x3c4c5e,_0x3d3fe3),_0x534bae['mapper']['bindElementToMarker'](_0x3d3fe3,_0x38fe08['markerName']),_0xf36255&&(_0x24c13f['activeMarkers']['includes'](_0x38fe08['markerName'])?_0x534bae['writer']['addClass']('ck-suggestion-marker--active',_0x3d3fe3):_0x534bae['writer']['removeClass']('ck-suggestion-marker--active',_0x3d3fe3));}}};}_0x24c13f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x52edf4),_0x24c13f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x52edf4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3b5924(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c4d8b,_0x538d14,_0x3a4bd4)=>{_0x3a4bd4['options']['showSuggestionHighlights']&&_0x3b5924({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4c4d8b,_0x538d14,_0x3a4bd4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5a6204,_0x4aa35e,_0x1508ca)=>{const {type:_0x43a64e,id:_0x1d3797}=_0x24c13f['_splitMarkerName'](_0x4aa35e['markerName']),_0x2f1a2d=_0x24c13f['getSuggestion'](_0x1d3797),_0x49ca29=_0x2f1a2d['data'];if('formatBlock'!=_0x2f1a2d['type']||!_0x49ca29||'setTableColumnHeader'!=_0x49ca29['commandName'])return;const _0x47560c=_0x1508ca['mapper']['markerNameToElements'](_0x4aa35e['markerName']);if(_0x47560c){for(const _0xba3874 of _0x47560c)_0x1508ca['writer']['removeClass']('ck-suggestion-marker-'+_0x43a64e,_0xba3874),_0x1508ca['writer']['removeClass']('ck-suggestion-marker--active',_0xba3874),_0x1508ca['writer']['removeAttribute']('data-suggestion',_0xba3874),_0x1508ca['mapper']['unbindElementFromMarkerName'](_0xba3874,_0x4aa35e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a9fbb=this['editor'],_0x3a1cba=_0x1a9fbb['locale'];function _0x520867(_0x4bb165){return{'type':'format','content':o(_0x3a1cba,'*Format:*\x20%0',_0x4bb165)};}_0x1a9fbb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c1bcf=>{if('formatBlock'!=_0x3c1bcf['type'])return;const {data:_0x916e47}=_0x3c1bcf;if(_0x916e47){if('setTableRowHeader'==_0x916e47['commandName']){const _0x50a7d8=_0x916e47['commandParams'][0x0]['forceValue'];return _0x520867(o(_0x3a1cba,_0x50a7d8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x916e47['commandName']){const _0x6b8ac9=_0x916e47['commandParams'][0x0]['forceValue'];return _0x520867(o(_0x3a1cba,_0x6b8ac9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x42a8d8=>[_0x42a8d8,null]));class Nt extends _0x150ede{static get['requires'](){return[vt];}['afterInit'](){const _0x2c1f6f=this['editor'];if(!_0x2c1f6f['plugins']['has']('TableClipboard'))return;const _0x11d387=_0x2c1f6f['plugins']['get']('TrackChangesEditing'),_0x56ee3b=_0x2c1f6f['plugins']['get']('TableUtils'),_0x30c9ae=_0x2c1f6f['plugins']['get'](vt),_0x15d504=_0x2c1f6f['plugins']['get']('TableClipboard');_0x30c9ae['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2c1f6f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2c1f6f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4f766d=null;_0x2c1f6f['model']['on']('insertContent',(_0x8c4b4f,_0x498c11)=>{const [_0x1dbf9d,_0xd36372]=_0x498c11,_0x59beeb=_0x498c11[_0x498c11['length']-0x1];_0x59beeb&&_0x59beeb['forceDefaultExecution']||_0x11d387['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x835576,_0x4ba1b6,_0x5900f9,_0x1859ed,_0x34ea32){if(_0x4ba1b6&&!_0x4ba1b6['is']('documentSelection'))return!0x1;const _0x256ded=_0x34ea32['getTableIfOnlyTableInContent'](_0x835576,_0x5900f9);if(!_0x256ded||!Ae(_0x256ded,void 0x0,_0x1859ed))return!0x1;const _0x16af52=_0x1859ed['getSelectionAffectedTableCells'](_0x5900f9['document']['selection']);if(!_0x16af52['length'])return!0x1;const _0x1f8c67=_0x16af52[0x0]['findAncestor']('table'),_0x5e74de=_0x1859ed['getRowIndexes'](_0x16af52),_0x77cb1a=_0x1859ed['getColumnIndexes'](_0x16af52),_0x11706e={'startRow':_0x5e74de['first'],'endRow':_0x5e74de['last'],'startColumn':_0x77cb1a['first'],'endColumn':_0x77cb1a['last']};return 0x1==_0x16af52['length']&&(_0x11706e['endRow']+=_0x1859ed['getRows'](_0x256ded)-0x1,_0x11706e['endColumn']+=_0x1859ed['getColumns'](_0x256ded)-0x1),Ae(_0x1f8c67,_0x11706e,_0x1859ed);}(_0x1dbf9d,_0xd36372,_0x2c1f6f['model'],_0x56ee3b,_0x15d504)&&(_0x8c4b4f['stop'](),_0x4f766d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2c1f6f['model']['change'](()=>{_0x2c1f6f['model']['insertContent'](_0x498c11[0x0],_0x498c11[0x1],_0x498c11[0x2],{'forceDefaultExecution':!0x0});const _0x438be6=_0x2e8c25(),{rowInsertionRanges:_0x21bf99,columnInsertionRanges:_0x1a209e,insertionRanges:_0x75733c,deletionRanges:_0x5babdd,cells:_0x47c814}=_0x4f766d;_0x21bf99['length']&&_0x11d387['markMultiRangeInsertion'](_0x21bf99,'tablePasteRow',{'tablePasteChainId':_0x438be6}),_0x1a209e['length']&&_0x11d387['markMultiRangeInsertion'](_0x1a209e,'tablePasteColumn',{'tablePasteChainId':_0x438be6}),_0x75733c['length']&&(_0x11d387['markMultiRangeInsertion'](_0x75733c,'tablePaste',{'tablePasteChainId':_0x438be6,'skipNestingCheck':!0x0}),_0x75733c['forEach'](_0x39e8c3=>_0x39e8c3['detach']?.())),_0x5babdd['length']&&(_0x11d387['markMultiRangeDeletion'](_0x5babdd,'tablePaste',{'tablePasteChainId':_0x438be6,'skipNestingCheck':!0x0}),_0x5babdd['forEach'](_0x22f319=>_0x22f319['detach']?.()));const _0x2efe1e=_0x11d387['markMultiRangeBlockFormat'](_0x47c814['map'](({element:_0x2ccc5b})=>_0x2ccc5b),{'formatGroupId':_0x2e8c25()},[],'tablePasteCell',{'tablePasteChainId':_0x438be6});if(_0x2efe1e){const _0x5c18a9=_0x2efe1e['getMarkers'](),_0x1918c9=[];for(const {element:_0x68dd2a,attributes:_0x58087f}of _0x47c814){if(!_0x58087f)continue;const _0x171c21=_0x2c1f6f['model']['createRangeOn'](_0x68dd2a),_0x25e028=_0x5c18a9['find'](_0x2a209d=>_0x2a209d['getRange']()['isEqual'](_0x171c21));_0x25e028&&_0x1918c9['push']([_0x25e028['name'],_0x58087f]);}_0x1918c9['length']&&_0x2efe1e['setAttribute']('markerAttributes',Object['fromEntries'](_0x1918c9));}_0x4f766d=null;}));},{'priority':_0x253417['high']+0xa}),_0x2c1f6f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x14165f,_0x47348c)=>{const [_0x492acf,_0x2b4f65,,_0x15769c]=_0x47348c;if(!_0x4f766d)return;_0x14165f['stop']();const _0x48711c=_0x492acf['cell'],_0x51e5cc=_0x2b4f65,_0x447c58=je(_0x48711c),_0x9bc459=je(_0x51e5cc);_0x14165f['return']=_0x48711c;let _0x564c2e=null,_0x4ee080=null;if(_0x9bc459||_0x447c58){if(_0x447c58&&!_0x9bc459){_0x15769c['remove'](_0x48711c['getChild'](0x0));for(const _0x4a3e97 of Array['from'](_0x51e5cc['getChildren']()))_0x15769c['insert'](_0x4a3e97,_0x48711c,'end');const _0x2dcbb1=_0x4f766d['rowInsertionIndexes']['includes'](_0x492acf['row']),_0xd95cd5=_0x4f766d['columnInsertionIndexes']['includes'](_0x492acf['column']);_0x2dcbb1||_0xd95cd5||(_0x564c2e=_0x209e44['fromRange'](_0x15769c['createRangeIn'](_0x48711c)));}else _0x9bc459&&!_0x447c58&&(_0x4ee080=_0x15769c['createRangeIn'](_0x48711c));}else{const _0x4d1f2d=_0x15769c['createElement']('tableCellSuggestion'),_0x123b8d=_0x15769c['createElement']('tableCellSuggestion');_0x15769c['wrap'](_0x15769c['createRangeIn'](_0x48711c),_0x123b8d),_0x15769c['insert'](_0x4d1f2d,_0x48711c,0x0);for(const _0x2e5cdd of Array['from'](_0x51e5cc['getChildren']()))_0x15769c['insert'](_0x2e5cdd,_0x4d1f2d,'end');_0x564c2e=_0x209e44['fromRange'](_0x15769c['createRangeOn'](_0x4d1f2d)),_0x4ee080=_0x209e44['fromRange'](_0x15769c['createRangeOn'](_0x123b8d));}const _0x28c0dc=Array['from'](_0x51e5cc['getAttributes']())['filter'](([_0x523781])=>we['includes'](_0x523781));_0x4f766d['cells']['push']({'element':_0x48711c,'attributes':_0x28c0dc['length']?Object['fromEntries'](_0x28c0dc):null}),_0x564c2e&&_0x4f766d['insertionRanges']['push'](_0x564c2e),_0x4ee080&&_0x4f766d['deletionRanges']['push'](_0x4ee080);},{'priority':'high'}),_0x56ee3b['on']('insertColumns',(_0x43524d,_0x23552b)=>{const [_0x568b78,_0x378837={}]=_0x23552b;if(!_0x4f766d)return;const _0x2d1a64=_0x378837['at']||0x0,_0x471839=_0x378837['columns']||0x1;_0x4f766d['columnInsertionIndexes']=new Array(_0x471839)['fill'](_0x2d1a64)['map']((_0xb9387e,_0x472008)=>_0xb9387e+_0x472008);for(const {cell:_0x5b46c5}of _0x56ee3b['createTableWalker'](_0x568b78,{'startColumn':_0x2d1a64,'endColumn':_0x2d1a64+_0x471839-0x1}))_0x4f766d['columnInsertionRanges']['push'](_0x2c1f6f['model']['createRangeOn'](_0x5b46c5));},{'priority':'low'}),_0x56ee3b['on']('insertRows',(_0xd88cef,_0x3a2098)=>{const [_0x12869b,_0x470e28={}]=_0x3a2098;if(!_0x4f766d)return;const _0x4f0f52=_0x470e28['at']||0x0,_0x49e016=_0x470e28['rows']||0x1;_0x4f766d['rowInsertionIndexes']=new Array(_0x49e016)['fill'](_0x4f0f52)['map']((_0x492d92,_0x2df91d)=>_0x492d92+_0x2df91d);for(const {cell:_0x3a9a7b}of _0x56ee3b['createTableWalker'](_0x12869b,{'startRow':_0x4f0f52,'endRow':_0x4f0f52+_0x49e016-0x1}))_0x4f766d['rowInsertionRanges']['push'](_0x2c1f6f['model']['createRangeOn'](_0x3a9a7b));},{'priority':'low'}),_0x11d387['descriptionFactory']['registerDescriptionCallback'](_0x24a608=>{if(_0x24a608['subType']&&_0x24a608['subType']['startsWith']('tablePaste'))return _0x24a608['previous']?{}:{'type':'insertion','content':o(_0x2c1f6f['locale'],'*Replace\x20table\x20cells*')};});const _0x26ae3b=()=>!0x1;for(const _0x3e37d4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x11d387['_suggestionFactory']['registerCustomCallback']('insertion',_0x3e37d4,'join',_0x26ae3b),_0x11d387['_suggestionFactory']['registerCustomCallback']('deletion',_0x3e37d4,'join',_0x26ae3b),_0x11d387['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e37d4,'join',_0x26ae3b);_0x11d387['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x26ae3b),_0x11d387['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x584eda,_0x25599c,_0x26876a)=>{const _0x5e58a1=_0x584eda['map'](_0x289eb7=>_0x289eb7['getContainedElement']())['filter'](_0x6f30f9=>_0x6f30f9),_0x40cce7=new Map(_0x5e58a1['map'](_0x277e15=>[_0x277e15,null]));if(_0x4f766d){for(const {element:_0x5807bc,attributes:_0x3c7d82}of _0x4f766d['cells'])_0x3c7d82&&_0x40cce7['set'](_0x5807bc,_0x3c7d82);}else{if(_0x26876a&&_0x26876a['markerAttributes'])for(const [_0x224e7b,_0x54147d]of Object['entries'](_0x26876a['markerAttributes'])){const _0xf7c249=_0x2c1f6f['model']['markers']['get'](_0x224e7b),_0x21c0be=_0xf7c249?_0xf7c249['getRange']()['getContainedElement']():null;_0x21c0be&&_0x40cce7['set'](_0x21c0be,_0x54147d);}}_0x2c1f6f['model']['change'](_0x17a706=>{for(const [_0x102e36,_0x468ab0]of _0x40cce7)_0x17a706['setAttributes']({...ve,..._0x468ab0},_0x102e36);});});const _0x5033c8=(_0x1cdda0,_0x165489)=>{_0x11d387['_suggestionFactory']['registerCustomCallback'](_0x1cdda0,'tablePaste',_0x165489,(_0x4281f1,_0x61b1d,_0x4935f1)=>{_0x2c1f6f['model']['change'](_0x4c106a=>{const _0x186e11=[];for(const _0x20d77a of _0x4281f1){const _0x177b80=_0x20d77a['start']['nodeAfter'];_0x177b80['is']('element','tableCellSuggestion')&&_0x186e11['push'](_0x177b80);}_0x11d387['_suggestionFactory']['getSuggestionCallback'](_0x1cdda0,null,_0x165489)(_0x4281f1,_0x61b1d,_0x4935f1);for(const _0x58398e of _0x186e11)'$graveyard'!=_0x58398e['root']['rootName']&&_0x4c106a['unwrap'](_0x58398e);});});};_0x5033c8('insertion','accept'),_0x5033c8('insertion','discard'),_0x5033c8('deletion','accept'),_0x5033c8('deletion','discard'),_0x11d387['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f275b=>{const _0xc3a6c5=_0x4f275b['map'](_0x2858b4=>_0x2858b4['getContainedElement']()),_0x1d1a91=_0xc3a6c5[0x0]['findAncestor']('table'),{minRow:_0x28aee,maxRow:_0x3c2d4e}=_0x30c9ae['_getCoordsForCells'](_0xc3a6c5);_0x56ee3b['removeRows'](_0x1d1a91,{'at':_0x28aee,'rows':_0x3c2d4e-_0x28aee+0x1});}),_0x11d387['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5d42b8=>{const _0x5897f0=_0x5d42b8['map'](_0x41e998=>_0x41e998['getContainedElement']()),_0x4a5a2e=_0x5897f0[0x0]['findAncestor']('table'),{minColumn:_0x3cbd01,maxColumn:_0x48d62d}=_0x30c9ae['_getCoordsForCells'](_0x5897f0);_0x56ee3b['removeColumns'](_0x4a5a2e,{'at':_0x3cbd01,'columns':_0x48d62d-_0x3cbd01+0x1});});const _0x1134f1=(_0x161d39,_0x29f20a)=>{if(!_0x29f20a['subType']||!_0x29f20a['subType']['startsWith']('tablePaste'))return;const _0x4fa2a4=_0x29f20a['attributes']['tablePasteChainId'],_0x5c3524=_0x11d387['getSuggestions']()['filter'](_0xf74e4f=>_0xf74e4f['isInContent']&&_0xf74e4f['attributes']&&_0xf74e4f['attributes']['tablePasteChainId']==_0x4fa2a4);_0x5c3524['length']&&_0x29f20a['getAllAdjacentSuggestions']()['length']!=_0x5c3524['length']&&_0x5c3524['reduce']((_0x493b3b,_0x20efc3)=>(_0x493b3b['next']=_0x20efc3,_0x20efc3['previous']=_0x493b3b,_0x20efc3));};function _0x4e62c5(_0x401713,_0x1e9da4=!0x0){const {id:_0x2c38a5,authorId:_0x1a20f6}=_0x11d387['_splitMarkerName'](_0x401713['markerName']),_0x1c748a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1f79fb=_0x11d387['activeMarkers']['includes'](_0x401713['markerName']);return _0x1f79fb&&_0x1c748a['push']('ck-suggestion-marker--active'),{'classes':_0x1c748a,'attributes':{'data-suggestion':_0x2c38a5,'data-author-id':_0x1a20f6},'priority':_0x1f79fb&&_0x1e9da4?0xbc2:0xbb8};}_0x11d387['on']('suggestionLoaded',_0x1134f1,{'priority':'high'}),_0x11d387['on']('suggestionUnloaded',_0x1134f1,{'priority':'high'}),_0x2c1f6f['model']['document']['registerPostFixer'](()=>{let _0x16bcaf=!0x1;const _0x5499ee=Array['from'](_0x2c1f6f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x206f6a,data:_0xe91ad8}of _0x5499ee){const {group:_0x47adde,type:_0x14d4a3,id:_0x4a71cb}=_0x11d387['_splitMarkerName'](_0x206f6a);if('suggestion'!=_0x47adde||'deletion'!=_0x14d4a3||_0xe91ad8['oldRange'])continue;if(!_0x11d387['hasSuggestion'](_0x4a71cb))continue;const _0x555b62=_0x11d387['getSuggestion'](_0x4a71cb)['getRanges'](),_0x1031ff=_0x2c1f6f['plugins']['get']('Users')['me'];for(const _0x5247f6 of _0x11d387['getSuggestions']()){if(!_0x5247f6['isInContent']||_0x5247f6['author']!=_0x1031ff)continue;if('formatBlock'!=_0x5247f6['type']||'tablePasteCell'!=_0x5247f6['subType'])continue;if(_0x5247f6['getRanges']()['every'](_0x4c8714=>_0x555b62['some'](_0x236bb4=>_0x236bb4['containsRange'](_0x4c8714,!0x0)))){for(const _0x45d072 of _0x5247f6['getAllAdjacentSuggestions']())_0x45d072['isInContent']&&(_0x45d072['discard'](),_0x16bcaf=!0x0);}}}return _0x16bcaf;}),_0x2c1f6f['model']['document']['registerPostFixer'](_0x3680e1=>{const _0x52e698=_0x2c1f6f['commands']['get']('redo');if(!_0x52e698||!_0x52e698['_createdBatches']['has'](_0x3680e1['batch']))return!0x1;let _0x12c49a=!0x1;const _0xf96b16=_0x2c1f6f['plugins']['get']('Users')['me'],_0x5e49b7=_0x2c1f6f['model']['document']['differ']['getChanges'](),_0x47bf50=Array['from'](_0x2c1f6f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3af734,data:_0x2b04e0})=>{const {group:_0x259bed,subType:_0x3ce9ac,authorId:_0x3021cb}=_0x11d387['_splitMarkerName'](_0x3af734);return'suggestion'==_0x259bed&&'tablePaste'==_0x3ce9ac&&_0x3021cb==_0xf96b16['id']&&!_0x2b04e0['oldRange'];});for(const _0x4c1417 of _0x5e49b7){if('insert'!=_0x4c1417['type']||'tableCellSuggestion'!=_0x4c1417['name']||0x1!=_0x4c1417['length'])continue;const _0x1f7bb3=_0x3680e1['createRange'](_0x4c1417['position'],_0x4c1417['position']['getShiftedBy'](0x1));if(!_0x47bf50['find'](({data:_0x12ea61})=>_0x12ea61['newRange']['isEqual'](_0x1f7bb3))){for(const {name:_0x3c9f2a,data:_0x38fb4c}of _0x47bf50)if(_0x1f7bb3['containsRange'](_0x38fb4c['newRange'])){_0x3680e1['updateMarker'](_0x3c9f2a,{'range':_0x1f7bb3}),_0x12c49a=!0x0;break;}}}return _0x12c49a;}),_0x2c1f6f['model']['document']['registerPostFixer'](_0x4509d4=>{let _0x416348=!0x1;const _0x2097dc=_0x2c1f6f['plugins']['get']('Users')['me'],_0x13152d=_0x11d387['getSuggestions']()['filter'](_0x17d979=>_0x17d979['isInContent']&&_0x17d979['author']==_0x2097dc),_0x19b9e5=new Set(),_0x38cfd6=new Set();for(const _0xce2469 of _0x13152d)if('tablePaste'==_0xce2469['subType'])for(const _0x39427f of _0xce2469['getMarkers']()){const _0x12916a=_0x39427f['getRange']()['getContainedElement']();if(_0x12916a){if(_0x12916a['is']('element','tableCellSuggestion')&&je(_0x12916a)){_0xce2469['removeMarker'](_0x39427f['name']),_0x19b9e5['add'](_0x12916a),_0x416348=!0x0;const _0x43d678=_0x12916a['nextSibling'],_0x51e818=_0x12916a['previousSibling'],_0x53afd5=_0x43d678&&_0x43d678['is']('element','tableCellSuggestion'),_0xed4c68=_0x51e818&&_0x51e818['is']('element','tableCellSuggestion');_0x53afd5&&!_0x19b9e5['has'](_0x43d678)&&_0x38cfd6['add'](_0x43d678),_0xed4c68&&!_0x19b9e5['has'](_0x51e818)&&_0x38cfd6['add'](_0x51e818);}else _0x12916a['is']('element','paragraph')&&_0x12916a['isEmpty']&&(_0xce2469['removeMarker'](_0x39427f['name']),_0x416348=!0x0);}}else{if('tablePasteCell'==_0xce2469['subType']){if(!_0xce2469['attributes']||!_0xce2469['attributes']['tablePasteChainId'])continue;const _0x2ac2bb=_0xce2469['attributes']['markerAttributes'];if(_0x2ac2bb&&Object['keys'](_0x2ac2bb)['length'])continue;const _0xadc4f3=_0xce2469['attributes']['tablePasteChainId'];let _0x5909d9=!0x0,_0x8675f6=!0x0;for(const _0x421a3c of _0x13152d)if(_0x421a3c['subType']&&_0x421a3c['subType']['startsWith']('tablePaste')){if(!_0x421a3c['attributes']['tablePasteChainId']){_0x8675f6=!0x1;break;}if(_0x421a3c['id']!=_0xce2469['id']&&_0x421a3c['attributes']['tablePasteChainId']==_0xadc4f3){_0x5909d9=!0x1;break;}}_0x8675f6&&_0x5909d9&&(_0xce2469['removeMarkers'](),_0x416348=!0x0);}}for(const _0x5a86b2 of _0x19b9e5)_0x4509d4['remove'](_0x5a86b2);for(const _0xcd5aa3 of _0x38cfd6)_0x4509d4['unwrap'](_0xcd5aa3);return _0x416348;}),_0x2c1f6f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x33edd5=>_0x4e62c5(_0x33edd5),'converterPriority':'high'}),_0x2c1f6f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xf11c0c,_0x495e7e)=>_0x495e7e['options']['showSuggestionHighlights']?_0x4e62c5(_0xf11c0c,!0x1):null,'converterPriority':'high'});const _0x8c8d0c=_0x2c1f6f['editing']['view'];this['listenTo'](_0x8c8d0c['document'],'clipboardOutput',(_0x1116b3,_0x4fd29e)=>{const _0x206427=[];for(const _0x3b864b of _0x8c8d0c['createRangeIn'](_0x4fd29e['content'])['getItems']())_0x3b864b['is']('element','suggestion-td')&&_0x206427['push'](_0x3b864b);_0x8c8d0c['change'](_0x48d037=>{for(const _0x41066a of _0x206427)_0x48d037['move'](_0x48d037['createRangeIn'](_0x41066a),_0x48d037['createPositionBefore'](_0x41066a)),_0x48d037['remove'](_0x41066a);});});}}function je(_0x23dfd3){if(_0x23dfd3['isEmpty'])return!0x0;const _0x45696d=_0x23dfd3['getChild'](0x0);return _0x45696d['is']('element','paragraph')&&_0x45696d['isEmpty'];}function Ae(_0x5c33d3,_0x13991d={},_0x3b5c32){for(const {isAnchor:_0x3d1ae4,cellHeight:_0x5d343a,cellWidth:_0x4f3500}of _0x3b5c32['createTableWalker'](_0x5c33d3,{'includeAllSlots':!0x0,..._0x13991d}))if(!_0x3d1ae4||0x1!=_0x5d343a||0x1!=_0x4f3500)return!0x1;return!0x0;}class Dt extends _0x150ede{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5f185a=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f185a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5f185a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5f185a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5f185a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5f185a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5f185a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3f8062,_0x2c2e14){const _0x575a7f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x277d37=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x43a2b0=_0x2c2e14['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5eeefa=_0x277d37['getColumnGroupElement'](_0x43a2b0);let _0xf6834d=_0x5eeefa?_0x277d37['getTableColumnsWidths'](_0x5eeefa):null,_0x508a1b=_0x43a2b0['getAttribute']('tableWidth')||null;const _0x51bb24=_0x2c2e14['tableWidth']||_0x508a1b,_0x2cafbf=_0x2c2e14['columnWidths']||_0xf6834d,_0x5cde1c=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d7bfd of _0x575a7f['getSuggestions']()){const _0x1e47c3=_0x4d7bfd['getContainedElement']();if('resizeTable'===_0x4d7bfd['subType']&&_0x1e47c3===_0x43a2b0){_0x4d7bfd['author']!==_0x5cde1c&&_0x4d7bfd['discard']();const _0x8d0895=_0x4d7bfd['data']['commandParams'];_0x508a1b=_0x8d0895[0x0]['tableWidth'],_0xf6834d=_0x8d0895[0x0]['columnWidths'];break;}}_0x3f8062({'table':_0x43a2b0,'tableWidth':_0x51bb24,'columnWidths':_0x2cafbf}),_0x575a7f['markBlockFormat'](_0x43a2b0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x508a1b,'columnWidths':_0xf6834d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1a49f0){if('formatBlock'!=_0x1a49f0['type']&&'formatInline'!=_0x1a49f0['type'])return;const {data:_0x55a689}=_0x1a49f0;if(_0x55a689&&'resizeTable'===_0x55a689['formatGroupId']){const _0x1de35d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1de35d)};}}}class Mt extends _0x150ede{['afterInit'](){const _0x122c7e=this['editor'];_0x122c7e['plugins']['has']('Template')&&_0x122c7e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x150ede{['afterInit'](){const _0x517d51=this['editor'];if(!_0x517d51['commands']['get']('insertTableOfContents'))return;_0x517d51['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x162e68=_0x517d51['plugins']['get']('TrackChangesEditing'),_0x4434e0=_0x517d51['locale'];_0x162e68['descriptionFactory']['registerElementLabel']('tableOfContents',_0x18f805=>o(_0x4434e0,'ELEMENT_TABLE_OF_CONTENTS',_0x18f805));}}class Bt extends _0x150ede{['afterInit'](){const _0x333f2d=this['editor'];if(!_0x333f2d['plugins']['has']('Title'))return;const _0x4f89d0=_0x333f2d['plugins']['get']('TrackChangesEditing');_0x4f89d0['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x333f2d['locale'],'ELEMENT_TITLE')),_0x333f2d['model']['document']['registerPostFixer'](_0x49051b=>{let _0x516e18=!0x1;const _0x46da69=Array['from'](_0x333f2d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a9d9b,data:_0x3e8a29}of _0x46da69){const {group:_0x49ce9b}=_0x4f89d0['_splitMarkerName'](_0x3a9d9b);if('suggestion'!==_0x49ce9b||!_0x3e8a29['newRange'])continue;const _0x8bc3ad=_0x3e8a29['newRange'],_0x16bb5b=_0x8bc3ad['end']['nodeBefore'];if(!_0x16bb5b||!_0x16bb5b['is']('element','title-content'))continue;if(!_0x8bc3ad['start']['isTouching'](_0x8bc3ad['end']))continue;const _0x526a1d=_0x333f2d['model']['schema']['getNearestSelectionRange'](_0x8bc3ad['end'],'forward');if(_0x526a1d&&_0x526a1d['isCollapsed']){const _0x123a7a=_0x49051b['createRange'](_0x8bc3ad['start'],_0x526a1d['start']);_0x123a7a['isEqual'](_0x8bc3ad)||(_0x49051b['updateMarker'](_0x3a9d9b,{'range':_0x123a7a}),_0x516e18=!0x0);}_0x516e18||(_0x49051b['removeMarker'](_0x3a9d9b),_0x516e18=!0x0);}return _0x516e18;});}}class Ot extends _0x150ede{['afterInit'](){const _0x108e42=this['editor'],_0x3b0d3e=_0x108e42['plugins']['get']('TrackChangesEditing');_0x108e42['plugins']['has']('UndoEditing')&&(_0x3b0d3e['enableCommand']('undo'),_0x3b0d3e['enableCommand']('redo'));}}class Rt extends _0x150ede{static get['requires'](){return[vt];}['afterInit'](){const _0x523176=this['editor'];if(!_0x523176['plugins']['has']('TableCaptionEditing'))return;_0x523176['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x150ede{['tableProperties'];['tableCellProperties'];constructor(_0x1f67eb){super(_0x1f67eb),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 _0x52b0a3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4efd22 of this['tableProperties'])_0x52b0a3['enableCommand'](_0x4efd22,(_0x22d9ec,_0x13c815)=>{const _0x896e28=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4efd22,[_0x896e28],this['tableProperties'],'tableProperties',_0x22d9ec,_0x13c815);});_0x52b0a3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x52b0a3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52b0a3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xe5d09a,_0x5e91b3)=>this['handleDiscardAction'](this['tableProperties'],_0xe5d09a,_0x5e91b3)),_0x52b0a3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2ad3e1 of this['tableCellProperties'])_0x52b0a3['enableCommand'](_0x2ad3e1,(_0x4f8419,_0xac3d33)=>{const _0x43ed16=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2ad3e1,_0x43ed16,this['tableCellProperties'],'tableCellProperties',_0x4f8419,_0xac3d33);});_0x52b0a3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x52b0a3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52b0a3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x408a4c,_0x2a80f4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x408a4c,_0x2a80f4)),_0x52b0a3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x52b0a3['descriptionFactory']['registerDescriptionCallback'](_0x3d2f4e=>this['handleSuggestionDescription'](_0x3d2f4e));}['_handlePropertyChange'](_0x17d568,_0x2b2d51,_0x26b04a,_0x8d2516,_0x257eff,_0x445018){const _0xe135dc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x445018['batch'],()=>{for(const _0x46d098 of _0x2b2d51){if(this['_getSuggestion'](_0x46d098,_0x8d2516))_0x257eff(_0x445018);else{const _0x4419dd={};for(const _0x89aa0c of _0x26b04a){const _0x1f3e18=_0x46d098['getAttribute'](_0x89aa0c);void 0x0!==_0x1f3e18&&(_0x4419dd[_0x89aa0c]=_0x1f3e18);}_0x257eff(_0x445018),_0xe135dc['markBlockFormat'](_0x46d098,{'commandParams':[_0x4419dd]},[],_0x8d2516);}}});}['handleDiscardAction'](_0x1d302c,_0x3b4004,_0x46f7c4){const _0x243c34=_0x3b4004[0x0]['start']['nodeAfter'],_0x15b46a=_0x46f7c4['commandParams'][0x0];this['editor']['model']['change'](_0x48a69a=>{for(const _0x526590 of _0x1d302c)void 0x0!==_0x15b46a[_0x526590]?_0x48a69a['setAttribute'](_0x526590,_0x15b46a[_0x526590],_0x243c34):_0x48a69a['removeAttribute'](_0x526590,_0x243c34);});}['handleSuggestionDescription'](_0x314258){if(_0x314258['data'])switch(_0x314258['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4c9d9b,_0x1ce854){const _0x451a9c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x289059 of _0x451a9c['getSuggestions']({'skipNotAttached':!0x0})){const _0x44bdc5=_0x289059['getContainedElement']();if(_0x289059['subType']===_0x1ce854&&_0x44bdc5===_0x4c9d9b)return _0x289059;}return null;}}const m='$elementName';class p extends _0x150ede{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2d0f5a,_0x113361,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d7f2d){super(_0x4d7f2d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x150c4f,_0xd3d546,_0x597ff7,_0x34bb64)=>{this['_model']['change'](()=>{for(const _0x13cd86 of[..._0x34bb64,..._0x597ff7])this['_model']['markers']['has'](_0x13cd86)&&_0x4d7f2d['editing']['reconvertMarker'](_0x13cd86);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4d7f2d['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x4d7f2d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4d7f2d['config']['get']('trackChanges.trackFormatChanges'),_0x4d7f2d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4d7f2d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4d7f2d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x46943b=this['editor'],_0x1d7e8e=(_0x2bb9b6,_0x11f7a3)=>{if('attribute'!=_0x2bb9b6)return'ck-suggestion-marker-'+_0x2bb9b6;const _0x27b252=_0x11f7a3['split']('|')[0x0];return this['_isBlockAttribute'](_0x27b252)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x46943b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x46ee0b=>{const {id:_0x5f23c8,authorId:_0x2f6d1a,type:_0x19454d,subType:_0x54c8cc}=this['_splitMarkerName'](_0x46ee0b['markerName']),_0x3839bf=['ck-suggestion-marker',_0x1d7e8e(_0x19454d,_0x54c8cc)];let _0x58f3ec=0xbb8;return this['activeMarkers']['includes'](_0x46ee0b['markerName'])&&(_0x3839bf['push']('ck-suggestion-marker--active'),_0x58f3ec=0xbc2),'deletion'==_0x19454d&&(_0x58f3ec+=0x5),{'classes':_0x3839bf,'attributes':{'data-suggestion':_0x5f23c8,'data-author-id':_0x2f6d1a},'priority':_0x58f3ec};}}),_0x46943b['conversion']['for']('dataDowncast')['add'](_0x4d9e49=>{_0x4d9e49['on']('addMarker:suggestion',(_0xba3bdb,_0x3f7b71,_0x30c6bd)=>{if(!_0x30c6bd['options']['showSuggestionHighlights'])return;const _0x3091b8=_0x3f7b71['item'];if(!_0x3091b8)return;const _0x56aaca=_0x30c6bd['mapper']['toViewElement'](_0x3091b8);_0x46943b['model']['schema']['isObject'](_0x3091b8)&&_0x56aaca&&!_0x56aaca['getCustomProperty']('widget')&&_0x56aaca['is']('containerElement')&&_0x2ae26b(_0x56aaca,_0x30c6bd['writer']);},{'priority':'high'});}),_0x46943b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4f9ad2,_0x35cf22)=>{if(!_0x35cf22['options']['showSuggestionHighlights'])return null;const {type:_0x145952,subType:_0x14b1fd}=this['_splitMarkerName'](_0x4f9ad2['markerName']);return{'classes':['ck-suggestion-marker',_0x1d7e8e(_0x145952,_0x14b1fd)],'priority':0xbb8};}});const _0x371872=({showActiveMarkers:_0x107279=!0x0,isAttributeSuggestion:_0x4c9a30=!0x1}={})=>(_0x176f50,_0x2a1e30,_0x5b1b56)=>{if(!_0x2a1e30['item'])return;const {id:_0x3d451b,authorId:_0x58608e}=this['_splitMarkerName'](_0x2a1e30['markerName']);if(_0x4c9a30){const _0x47efa1=this['_suggestions']['get'](_0x3d451b),_0x2614a9=this['_getAttributeKey'](_0x47efa1);if(!this['_isBlockAttribute'](_0x2614a9))return;}if(_0x2a1e30['item']['is']('selection'))return void _0x5b1b56['consumable']['consume'](_0x2a1e30['item'],_0x176f50['name']);const _0x1171c3=_0x5b1b56['mapper']['toViewElement'](_0x2a1e30['item']);if(_0x2a1e30['item']['is']('element')&&_0x46943b['model']['schema']['isBlock'](_0x2a1e30['item'])&&!_0x1171c3['getCustomProperty']('addHighlight')){_0x5b1b56['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1171c3),_0x5b1b56['writer']['setAttribute']('data-suggestion',_0x3d451b,_0x1171c3),_0x5b1b56['writer']['setAttribute']('data-author-id',_0x58608e,_0x1171c3),_0x5b1b56['mapper']['bindElementToMarker'](_0x1171c3,_0x2a1e30['markerName']),_0x107279&&(this['activeMarkers']['includes'](_0x2a1e30['markerName'])?_0x5b1b56['writer']['addClass']('ck-suggestion-marker--active',_0x1171c3):_0x5b1b56['writer']['removeClass']('ck-suggestion-marker--active',_0x1171c3));for(const _0x389e15 of _0x46943b['model']['createRangeIn'](_0x2a1e30['item'])['getItems']())_0x5b1b56['consumable']['consume'](_0x389e15,_0x176f50['name']);_0x5b1b56['consumable']['consume'](_0x2a1e30['item'],_0x176f50['name']);}};_0x46943b['conversion']['for']('dataDowncast')['add'](_0xb73bdc=>{_0xb73bdc['on']('addMarker:suggestion:formatBlock',(_0xa028dd,_0x4909c1,_0x2bd09f)=>{_0x2bd09f['options']['showSuggestionHighlights']&&_0x371872({'showActiveMarkers':!0x1})(_0xa028dd,_0x4909c1,_0x2bd09f);},{'priority':'highest'});}),_0x46943b['conversion']['for']('dataDowncast')['add'](_0x202e90=>{_0x202e90['on']('addMarker:suggestion:attribute',(_0x4e8b40,_0x4ea6a5,_0x39fcea)=>{_0x39fcea['options']['showSuggestionHighlights']&&_0x371872({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4e8b40,_0x4ea6a5,_0x39fcea);},{'priority':'highest'});}),_0x46943b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x14c6de,_0x118f83)=>_0x118f83['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x14c6de['substr'](0xb)}}),_0x46943b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3e455e,{writer:_0x2b6afb})=>{let _0xdec21c='suggestion:'+_0x3e455e['getAttribute']('suggestion-type')+':'+_0x3e455e['getAttribute']('id');return _0x3e455e['getAttribute']('marker-count')&&(_0xdec21c+=':'+_0x3e455e['getAttribute']('marker-count')),_0x2b6afb['createElement']('$marker',{'data-name':_0xdec21c});}}),_0x46943b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x46943b['conversion']['for']('editingDowncast')['add'](_0x505eca=>{_0x505eca['on']('addMarker:suggestion:formatBlock',_0x371872(),{'priority':'high'});}),_0x46943b['conversion']['for']('editingDowncast')['add'](_0x56c67d=>{_0x56c67d['on']('addMarker:suggestion:attribute',_0x371872({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x46943b['conversion']['for']('editingDowncast')['add'](_0x3b9b15=>{_0x3b9b15['on']('removeMarker:suggestion:formatBlock',(_0x1cc807,_0x58a20f,_0x106434)=>{const _0x176582=_0x106434['mapper']['markerNameToElements'](_0x58a20f['markerName']);if(_0x176582){for(const _0x44645e of _0x176582)_0x44645e['getCustomProperty']('addHighlight')||(_0x106434['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x44645e),_0x106434['writer']['removeAttribute']('data-suggestion',_0x44645e),_0x106434['writer']['removeAttribute']('data-author-id',_0x44645e),_0x106434['mapper']['unbindElementFromMarkerName'](_0x44645e,_0x58a20f['markerName']));}},{'priority':'high'});}),_0x46943b['conversion']['for']('editingDowncast')['add'](_0x531775=>{_0x531775['on']('removeMarker:suggestion:attribute',(_0x3fae50,_0x443222,_0x2076b9)=>{const _0x5ea9ce=_0x2076b9['mapper']['markerNameToElements'](_0x443222['markerName']);if(!_0x5ea9ce)return;const {id:_0x1409e4}=this['_splitMarkerName'](_0x443222['markerName']),_0x19282b=this['_suggestions']['get'](_0x1409e4),_0x56c5eb=this['_getAttributeKey'](_0x19282b);if(this['_isBlockAttribute'](_0x56c5eb)){for(const _0x57b5fd of _0x5ea9ce)_0x57b5fd['getCustomProperty']('addHighlight')||(_0x2076b9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x57b5fd),_0x2076b9['writer']['removeAttribute']('data-suggestion',_0x57b5fd),_0x2076b9['writer']['removeAttribute']('data-author-id',_0x57b5fd),_0x2076b9['mapper']['unbindElementFromMarkerName'](_0x57b5fd,_0x443222['markerName']));}},{'priority':'high'});}),_0x46943b['model']['document']['registerPostFixer'](_0x9cca0b=>{let _0x443428=!0x1;const _0x4e72c4=Array['from'](_0x46943b['model']['document']['differ']['getChangedMarkers']()),_0x53be50=new Set();for(const {name:_0x2ee670,data:_0x24fbf4}of _0x4e72c4){const {group:_0x44f315,type:_0x61ada9,subType:_0x5b6107,id:_0x31bdee}=this['_splitMarkerName'](_0x2ee670);if('suggestion'!==_0x44f315)continue;const _0x340ab6=this['_suggestions']['get'](_0x31bdee);if(null!=_0x24fbf4['newRange']){'formatInline'==_0x61ada9&&(_0x443428=_0x443428||Pt(_0x24fbf4['newRange'],_0x2ee670,_0x9cca0b,_0x46943b['model']['schema']));const _0x3e0467='attribute'==_0x61ada9&&this['_isBlockAttribute'](_0x5b6107['split']('|')[0x0]);if(_0x24fbf4['newRange']['isCollapsed']||'$graveyard'==_0x24fbf4['newRange']['root']['rootName']||'formatBlock'==_0x61ada9&&!Ft(_0x24fbf4['newRange'])||_0x3e0467&&!Ft(_0x24fbf4['newRange'])||'deletion'==_0x61ada9&&!(!Vt(_0x50dce1=_0x24fbf4['newRange'])&&!function(_0x26e38f){return _0x26e38f['start']['parent']==_0x26e38f['end']['nodeBefore']&&_0x26e38f['start']['isAtEnd'];}(_0x50dce1)))_0x9cca0b['removeMarker'](_0x2ee670),_0x443428=!0x0;else{if(!_0x340ab6||!_0x340ab6['isInContent'])continue;if(_0x24fbf4['newRange']&&_0x24fbf4['oldRange']&&_0x24fbf4['newRange']['isEqual'](_0x24fbf4['oldRange']))continue;_0x53be50['add'](_0x340ab6);}}}var _0x50dce1;return _0x53be50['size']>0x0&&(_0x443428=!!this['_joinWithAdjacentSuggestions'](_0x53be50)||_0x443428),_0x443428;}),_0x46943b['model']['document']['registerPostFixer'](_0x1dc34f=>{let _0x1610b8=!0x1;for(const _0x19bc2a of _0x46943b['model']['document']['differ']['getChanges']())if('insert'==_0x19bc2a['type'])for(const _0x366362 of this['_suggestions']['values']()){if(_0x366362['isMultiRange']||!_0x366362['isInContent'])continue;const _0x6a30d8='formatBlock'==_0x366362['type'],_0x6e9f85=this['_getAttributeKey'](_0x366362),_0x5f52f3=_0x6e9f85&&this['_isBlockAttribute'](_0x6e9f85);if(!_0x6a30d8&&!_0x5f52f3)continue;const _0x1578bd=_0x366362['getFirstRange']();if(_0x1578bd['start']['parent']!=_0x1578bd['end']['parent']&&!_0x1578bd['end']['isAtEnd']){const _0x54fa59=_0x46943b['model']['createPositionAt'](_0x1578bd['start']['nodeAfter'],'end'),_0x2ecd91=_0x46943b['model']['createRange'](_0x1578bd['start'],_0x54fa59);_0x1dc34f['updateMarker'](_0x366362['getFirstMarker'](),{'range':_0x2ecd91}),_0x1610b8=!0x0;}}return _0x1610b8;}),_0x46943b['model']['document']['registerPostFixer'](_0x2001ac=>this['_processAttributeChanges'](_0x2001ac)),_0x46943b['model']['document']['registerPostFixer'](_0x4c6d99=>!_0x4c6d99['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4c6d99)),_0x46943b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x46943b['model']['document']['on']('change:data',(_0x224cbe,_0x18b987)=>{if(!_0x18b987['isLocal']||_0x18b987['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x58f9ce=_0x46943b['model']['document']['differ']['getChanges']();if(0x0==_0x58f9ce['length'])return;const _0x159a0b=[],_0x525726=_0x58f9ce['filter'](_0x3aeb66=>'attribute'==_0x3aeb66['type']),_0x5198d6=_0x58f9ce['filter'](_0x742e4a=>'insert'==_0x742e4a['type']&&'$text'!=_0x742e4a['name']);for(const _0x4136d8 of _0x525726)this['_isRegisteredAttribute'](_0x4136d8['attributeKey'])&&_0x159a0b['push']({'key':_0x4136d8['attributeKey'],'newValue':_0x4136d8['attributeNewValue'],'oldValue':_0x4136d8['attributeOldValue'],'range':Lt(_0x4136d8['range'],_0x46943b['model'])});for(const _0xb3e737 of _0x5198d6){if('rename'!=_0xb3e737['action']&&'refresh'!=_0xb3e737['action'])continue;const _0x4fd4ae=Jt(_0xb3e737['position']['nodeAfter'],_0x46943b['model']),_0x4db421=_0xb3e737['before'];'rename'==_0xb3e737['action']&&_0x159a0b['push']({'key':m,'newValue':_0xb3e737['name'],'oldValue':_0x4db421['name'],'range':_0x4fd4ae});for(const [_0x5bf602,_0x2a5407]of _0x4db421['attributes']){if(!this['_isRegisteredAttribute'](_0x5bf602))continue;const _0x3acf9b=_0xb3e737['attributes']['get'](_0x5bf602);_0x2a5407!==_0x3acf9b&&_0x159a0b['push']({'key':_0x5bf602,'newValue':_0x3acf9b,'oldValue':_0x2a5407,'range':_0x4fd4ae});}for(const [_0xd194d5,_0x4753eb]of _0xb3e737['attributes'])this['_isRegisteredAttribute'](_0xd194d5)&&(_0x4db421['attributes']['has'](_0xd194d5)||_0x159a0b['push']({'key':_0xd194d5,'newValue':_0x4753eb,'oldValue':null,'range':_0x4fd4ae}));}0x0!=_0x159a0b['length']&&_0x46943b['model']['enqueueChange'](_0x18b987,_0x2b27f3=>{const _0x5099da=_0x2e8c25();for(const {range:_0x209d9a,key:_0x2ee61d,oldValue:_0x35463c,newValue:_0x2df619}of _0x159a0b)this['markAttributeChange'](_0x209d9a,_0x2ee61d,_0x35463c,_0x2df619,{'groupId':_0x5099da});this['_reduceExistingSuggestions'](_0x2b27f3,_0x159a0b);});},{'priority':'lowest'}),_0x46943b['model']['markers']['on']('update:suggestion',(_0x179985,_0x204e7a,_0x36ed22)=>{if(null==_0x36ed22){const {id:_0xcbda2c}=this['_splitMarkerName'](_0x204e7a['name']),_0x355130=this['_suggestions']['get'](_0xcbda2c);_0x355130&&_0x355130['addMarkerName'](_0x204e7a['name']);}}),_0x46943b['model']['document']['on']('change:data',()=>{const _0x1c8a99=Array['from'](_0x46943b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x35526a=>'suggestion'===this['_splitMarkerName'](_0x35526a['name'])['group']);if(0x0===_0x1c8a99['length'])return;_0x1c8a99['sort']((_0x18833f,_0x27ac71)=>{const _0x1e98de=_0x18833f['data']['oldRange'],_0x4a9cd7=_0x27ac71['data']['oldRange'];return null===_0x1e98de&&null===_0x4a9cd7?0x0:null===_0x1e98de&&null!==_0x4a9cd7?-0x1:null!==_0x1e98de&&null===_0x4a9cd7?0x1:_0x1e98de['start']['isBefore'](_0x4a9cd7['start'])?-0x1:0x1;});const _0x1eec88=new Set(),_0x34ff4b=new Set();for(const {name:_0x5e3fad,data:_0x562a2c}of _0x1c8a99){const {id:_0x440178}=this['_splitMarkerName'](_0x5e3fad);if(null===_0x562a2c['oldRange']){const _0x2c9efe=this['_handleNewSuggestionMarker'](_0x5e3fad);_0x34ff4b['add'](_0x2c9efe);}else{const _0x57aac7=this['_suggestions']['get'](_0x440178);null!==_0x562a2c['newRange']||_0x57aac7['isInContent']?(_0x1eec88['add'](_0x57aac7['head']),_0x34ff4b['add'](_0x57aac7)):this['_removeSuggestion'](_0x57aac7);}}_0x34ff4b['size']>0x0&&this['_refreshSuggestionsChain'](_0x34ff4b);for(const _0x5488b6 of _0x1eec88)this['fire']('suggestionChanged',_0x5488b6);}),_0x46943b['model']['on']('applyOperation',(_0x385bcd,_0x5f445d)=>{const _0x4e409d=_0x5f445d[0x0];if(!this['_suggestions']['size'])return;if(!_0x4e409d['isDocumentOperation'])return;if(_0x4e409d['batch']['isUndo']||!_0x4e409d['batch']['isLocal'])return;let _0x4ee052,_0xe89873;switch(_0x4e409d['type']){case'insert':_0x4ee052=_0x46943b['model']['createPositionAt'](_0x4e409d['position']),_0xe89873=_0x4ee052['getShiftedBy'](_0x4e409d['howMany']);break;case'split':_0x4ee052=_0x46943b['model']['createPositionAt'](_0x4e409d['splitPosition']),_0xe89873=_0x46943b['model']['createPositionAt'](_0x4e409d['moveTargetPosition']);break;case'move':_0x4ee052=_0x46943b['model']['createPositionAt'](_0x4e409d['targetPosition']),_0xe89873=_0x4ee052['getShiftedBy'](_0x4e409d['howMany']);break;default:return;}const _0x218d49=_0x46943b['model']['createRange'](_0x4ee052,_0xe89873);_0x46943b['model']['change'](()=>{for(const {suggestion:_0x155817,meta:_0x1b6ec8}of this['_findSuggestions'](_0x218d49)){if(_0x155817['isMultiRange'])continue;if('formatInline'==_0x155817['type'])continue;const _0x5f1642=this['_getAttributeKey'](_0x155817);if(_0x5f1642&&this['_isBlockAttribute'](_0x5f1642)&&'split'!=_0x4e409d['type'])continue;const _0x116adb=_0x155817['data']&&_0x155817['data']['multipleBlocks'];('formatBlock'!=_0x155817['type']||'split'==_0x4e409d['type']&&!_0x116adb)&&(_0x1b6ec8['containsRangeInObject']||'insertion'==_0x155817['type']&&_0x1b6ec8['isOwn']||_0x155817['getFirstRange']()['containsRange'](_0x218d49)&&this['_breakSuggestionMarker'](_0x155817,_0x4ee052,_0xe89873));}});},{'priority':'lowest'}),_0x46943b['model']['on']('deleteContent',(_0x418d88,_0x3ea251)=>{const _0x1ef22a=_0x3ea251[0x0],_0xd3f544=_0x3ea251[0x1];if(_0xd3f544&&_0xd3f544['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1ef22a['isCollapsed'])return;const _0x1f2e9d=_0x46943b['model']['schema'],{start:_0xf36c8,end:_0x41be36}=_0x1ef22a['getFirstRange'](),_0x594f5a=_0xf36c8['nodeAfter']&&_0x1f2e9d['isLimit'](_0xf36c8['nodeAfter'])?null:_0x1f2e9d['getNearestSelectionRange'](_0xf36c8,'forward'),_0x500487=_0x41be36['nodeBefore']&&_0x1f2e9d['isLimit'](_0x41be36['nodeBefore'])?null:_0x1f2e9d['getNearestSelectionRange'](_0x41be36,'backward'),_0x2fd32a=_0x46943b['model']['createRange'](_0x594f5a?_0x594f5a['start']:_0xf36c8,_0x500487?_0x500487['end']:_0x41be36);_0x46943b['model']['change'](_0x420802=>{this['markDeletion'](_0x2fd32a);const _0x1ba15f=_0x46943b['model']['schema']['getNearestSelectionRange'](_0x2fd32a['start']);_0x1ef22a['is']('documentSelection')?_0x420802['setSelection'](_0x1ba15f):_0x1ef22a['setTo'](_0x1ba15f);}),_0x418d88['stop']();},{'priority':_0x253417['normal']+0xa}),_0x46943b['model']['on']('insertContent',(_0xc969a3,_0x2a8214)=>{const _0x1d7915=_0x2a8214[_0x2a8214['length']-0x1];_0x1d7915&&_0x1d7915['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x46943b['model']['change'](()=>{let _0x166d7b=_0x46943b['model']['insertContent'](_0x2a8214[0x0],_0x2a8214[0x1],_0x2a8214[0x2],{'forceDefaultExecution':!0x0});if(!_0x166d7b)return;_0xc969a3['return']=_0x166d7b['clone']();const _0x45b2b9=_0x166d7b['end']['nodeBefore'],_0x4cc7db=_0x46943b['model']['schema'];_0x45b2b9&&_0x4cc7db['isBlock'](_0x45b2b9)&&!_0x4cc7db['isObject'](_0x45b2b9)&&(_0x166d7b=_0x46943b['model']['createRange'](_0x166d7b['start'],_0x46943b['model']['createPositionAt'](_0x45b2b9,'end'))),this['markInsertion'](_0x166d7b);}),_0xc969a3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5b7878=new O(_0x46943b,this['_suggestions']);_0x46943b['commands']['add']('acceptSuggestion',_0x5b7878),this['enableCommand']('acceptSuggestion');const _0x39043d=new R(_0x46943b,this['_suggestions']);_0x46943b['commands']['add']('discardSuggestion',_0x39043d),this['enableCommand']('discardSuggestion'),_0x46943b['commands']['add']('acceptAllSuggestions',new x(_0x46943b,_0x5b7878,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x46943b['commands']['add']('discardAllSuggestions',new x(_0x46943b,_0x39043d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x46943b['commands']['add']('acceptSelectedSuggestions',new E(_0x46943b,_0x5b7878,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x46943b['commands']['add']('discardSelectedSuggestions',new E(_0x46943b,_0x39043d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b3450=_0x46943b['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b3450,'addComment',(_0x4a53a2,{threadId:_0xf189e8})=>{const _0x770006=this['_suggestions']['get'](_0xf189e8);_0x770006&&_0x770006['commentThread']&&0x1===_0x770006['commentThread']['length']&&this['_updateSuggestionData'](_0xf189e8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b3450,'removeComment',(_0x2b28ad,{threadId:_0x3c1ba5})=>{const _0x41737a=this['_suggestions']['get'](_0x3c1ba5);_0x41737a&&_0x41737a['commentThread']&&!_0x41737a['commentThread']['length']&&this['_updateSuggestionData'](_0x3c1ba5,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x36209c){const _0x58b21b=_0x3323f7([0x33,0x41,0x43,0x4e,0x6a,0x4d,0x42,0x76,0x34,0x58,0x48,0x66,0x51,0x77,0x55,0x69,0x63,0x65,0x36,0x31,0x38,0x64,0x4f,0x46,0x56,0x79,0x4c,0x71,0x57,0x30,0x68,0x6f,0x47,0x6c,0x74,0x32,0x72,0x67,0x4b,0x44,0x78,0x49,0x52,0x54,0x62,0x5a,0x6d,0x45,0x37,0x53,0x50,0x75,0x35,0x70,0x7a,0x73,0x61,0x6b,0x4a,0x59,0x39,0x6e]),_0x523d21=0x161200fc,_0x425f5c=0x1615599c^_0x523d21,_0xb6d02b=window[_0x3323f7([0x44,0x61,0x74,0x65])][_0x3323f7([0x6e,0x6f,0x77])](),_0x36448f=_0x36209c[_0x3323f7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x155ff3=new window[(_0x3323f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x548e8d=>{_0x36448f[_0x3323f7([0x6f,0x6e,0x63,0x65])](_0x3323f7([0x72,0x65,0x61,0x64,0x79]),_0x548e8d);}),_0x5e4cfe={[_0x3323f7([0x6b,0x74,0x79])]:_0x3323f7([0x45,0x43]),[_0x3323f7([0x75,0x73,0x65])]:_0x3323f7([0x73,0x69,0x67]),[_0x3323f7([0x63,0x72,0x76])]:_0x3323f7([0x50,0x2d,0x32,0x35,0x36]),[_0x3323f7([0x78])]:_0x3323f7([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]),[_0x3323f7([0x79])]:_0x3323f7([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]),[_0x3323f7([0x61,0x6c,0x67])]:_0x3323f7([0x45,0x53,0x32,0x35,0x36])},_0x1f5e29=_0x36448f[_0x3323f7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3323f7([0x67,0x65,0x74])](_0x3323f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2b9b7a(){let _0x153a53,_0x2abab3=null,_0x44adcc=null;try{if(_0x1f5e29==_0x3323f7([0x47,0x50,0x4c]))return _0x3323f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x153a53=_0x2e2569(),!_0x153a53)return _0x3323f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x153a53[_0x3323f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x44adcc=_0x12498d(_0x153a53[_0x3323f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x153a53[_0x3323f7([0x6a,0x74,0x69])])),await _0x1d081c()?_0x2a7412()?_0x2645da()?_0x3323f7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4def2a()?(_0x153a53[_0x3323f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3323f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2abab3=_0x20053c(_0x3323f7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x153a53[_0x3323f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3323f7([0x74,0x72,0x69,0x61,0x6c])&&(_0x2abab3=_0x20053c(_0x3323f7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x153a53[_0x3323f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3323f7([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x2abab3=_0x20053c(_0x3323f7([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a020e()):_0x3323f7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3323f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3323f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xa7de83){return _0x3323f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2645da(){const _0x35bb12=[_0x3323f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3323f7([0x74,0x72,0x69,0x61,0x6c])][_0x3323f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x153a53[_0x3323f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb6d02b/0x3e8:0xe10*_0x425f5c;return _0x153a53[_0x3323f7([0x65,0x78,0x70])]<_0x35bb12;}function _0x2a7412(){const _0x2b9b3a=_0x153a53[_0x3323f7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2b9b3a)return!0x1;if(_0x2b9b3a[_0x3323f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3323f7([0x2a])))return!0x0;if(_0x2b9b3a[_0x3323f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3323f7([0x54,0x43])))return!0x0;if(_0x2b9b3a[_0x3323f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3323f7([0x52,0x54,0x43]))){if(_0x46cba1())return!0x0;if(_0x454b24()||_0x39c4e4())return!0x0;}return!0x1;}function _0x4def2a(){const _0x3cd041=_0x153a53[_0x3323f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3cd041||0x0==_0x3cd041[_0x3323f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46e58f}=new URL(window[_0x3323f7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3cd041[_0x3323f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46e58f))return!0x0;const _0x11923a=_0x46e58f[_0x3323f7([0x73,0x70,0x6c,0x69,0x74])](_0x3323f7([0x2e]));return _0x3cd041[_0x3323f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11e96e=>_0x11e96e[_0x3323f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3323f7([0x2a])))[_0x3323f7([0x6d,0x61,0x70])](_0x2f40ad=>_0x2f40ad[_0x3323f7([0x73,0x70,0x6c,0x69,0x74])](_0x3323f7([0x2e])))[_0x3323f7([0x73,0x6f,0x6d,0x65])](_0x3cb7ae=>_0x11923a[_0x3323f7([0x65,0x76,0x65,0x72,0x79])]((_0x5d1123,_0xa9c29f)=>_0x3cb7ae[_0xa9c29f]===_0x5d1123||_0x3cb7ae[_0xa9c29f]===_0x3323f7([0x2a])));}function _0x5a020e(){return _0x2abab3&&_0x44adcc?new window[(_0x3323f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20bce5,_0x448a9f)=>{_0x2abab3[_0x3323f7([0x74,0x68,0x65,0x6e])](_0x20bce5,_0x448a9f),_0x44adcc[_0x3323f7([0x74,0x68,0x65,0x6e])](_0x3b8db2=>{_0x3b8db2!=_0x3323f7([0x56,0x61,0x6c,0x69,0x64])&&_0x20bce5(_0x3b8db2);},_0x448a9f);}):_0x2abab3||_0x44adcc||_0x3323f7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x12498d(_0x5103e4,_0x3f70cc){return new window[(_0x3323f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55d1a5=>{if(_0x49b09f())return _0x55d1a5(_0x3323f7([0x56,0x61,0x6c,0x69,0x64]));_0x2efd67(),_0x36448f[_0x3323f7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3323f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f79c5=!0x1;const _0x26724e=_0x2e8c25();function _0x312d75(_0x253bfa){return!!_0x253bfa&&(typeof _0x253bfa===_0x3323f7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x253bfa===_0x3323f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x253bfa[_0x3323f7([0x74,0x68,0x65,0x6e])]===_0x3323f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x253bfa[_0x3323f7([0x63,0x61,0x74,0x63,0x68])]===_0x3323f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a911e(_0x31dc6d){_0x489a1a(_0x31dc6d)[_0x3323f7([0x74,0x68,0x65,0x6e])](_0x245c1e=>{if(!_0x245c1e||_0x245c1e[_0x3323f7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3323f7([0x6f,0x6b]))return _0x3323f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf86a69(_0x3d8f28(_0x26724e+_0x3f70cc))!=_0x245c1e[_0x3323f7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3323f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3323f7([0x56,0x61,0x6c,0x69,0x64]);})[_0x3323f7([0x74,0x68,0x65,0x6e])](_0x109045=>(_0x4d6e16(),_0x109045),()=>{const _0x4e44ef=_0x4a7469();return null==_0x4e44ef?(_0x4d6e16(),_0x3323f7([0x56,0x61,0x6c,0x69,0x64])):_0x3323f7(_0xb6d02b-_0x4e44ef>(0x321e84fc^_0x523d21)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3323f7([0x74,0x68,0x65,0x6e])](_0x55d1a5)[_0x3323f7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x55d1a5(_0x3323f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb97071=0x1624ee7c^_0x523d21;function _0x4d6e16(){const _0x522ade=_0x3323f7([0x6c,0x6c,0x63,0x74,0x2d])+_0xf86a69(_0x3d8f28(_0x5103e4)),_0x27023e=_0x2478ac(_0xf86a69(window[_0x3323f7([0x4d,0x61,0x74,0x68])][_0x3323f7([0x63,0x65,0x69,0x6c])](_0xb6d02b/_0xb97071)));window[_0x3323f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3323f7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x522ade,_0x27023e);}function _0x4a7469(){const _0x367c12=_0x3323f7([0x6c,0x6c,0x63,0x74,0x2d])+_0xf86a69(_0x3d8f28(_0x5103e4)),_0x39a500=window[_0x3323f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3323f7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x367c12);return _0x39a500?window[_0x3323f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2478ac(_0x39a500),0x10)*_0xb97071:null;}function _0x489a1a(_0x10516a){return new window[(_0x3323f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2fdcfa,_0x33db45)=>{_0x10516a[_0x3323f7([0x74,0x68,0x65,0x6e])](_0x2fdcfa,_0x33db45),window[_0x3323f7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33db45,0x1613d43c^_0x523d21);});}}_0x36448f[_0x3323f7([0x6f,0x6e])](_0x3323f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12c203,_0xdc46e9)=>{if(_0xdc46e9[0x0]!=_0x5103e4)return _0x55d1a5(_0x3323f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xdc46e9[0x1]={..._0xdc46e9[0x1],[_0x3323f7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26724e};},{[_0x3323f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3323f7([0x68,0x69,0x67,0x68])}),_0x36448f[_0x3323f7([0x6f,0x6e])](_0x3323f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ed7d4=>{_0x312d75(_0x5ed7d4[_0x3323f7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f79c5=!0x0,_0x5a911e(_0x5ed7d4[_0x3323f7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3323f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3323f7([0x6c,0x6f,0x77])}),_0x155ff3[_0x3323f7([0x74,0x68,0x65,0x6e])](()=>{_0x1f79c5||_0x55d1a5(_0x3323f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49b09f(){return _0x36448f[_0x3323f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3323f7([0x76,0x69,0x65,0x77])][_0x3323f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3323f7([0x61,0x75,0x74,0x6f]);}function _0x2efd67(){_0x36448f[_0x3323f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3323f7([0x76,0x69,0x65,0x77])][_0x3323f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3323f7([0x61,0x75,0x74,0x6f]);}}function _0x20053c(_0x464b79){const _0x33cea1=[new window[(_0x3323f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1083b1=>setTimeout(_0x1083b1,0x161b3e30^_0x523d21)),_0x155ff3[_0x3323f7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3323f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33b346=>{let _0x825544=0x0;_0x36448f[_0x3323f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3323f7([0x6f,0x6e])](_0x3323f7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32a5cd,_0x12ba24)=>{_0x12ba24[0x0][_0x3323f7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x825544++,_0x825544==(0x16120104^_0x523d21)&&(_0x33b346(),_0x32a5cd[_0x3323f7([0x6f,0x66,0x66])]());});}))];return window[_0x3323f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3323f7([0x72,0x61,0x63,0x65])](_0x33cea1)[_0x3323f7([0x74,0x68,0x65,0x6e])](()=>_0x464b79);}async function _0x9e4760(){await _0x155ff3,_0x36448f[_0x3323f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3323f7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44a4f2,_0x36448f[_0x3323f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3323f7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44a4f2,_0x36448f[_0x3323f7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3323f7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46cba1(){return _0x34ea98(_0x3323f7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5c103b(_0x3323f7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3323f7([0x73,0x74,0x61,0x74,0x65])]==_0x3323f7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x454b24(){return _0x34ea98(_0x3323f7([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 _0x39c4e4(){return _0x34ea98(_0x3323f7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xb9b355(_0x45b5c6){const _0x5c4e57=_0x263c23();_0x36448f[_0x5c4e57]=_0x3323f7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45b5c6,_0x45b5c6!=_0x3323f7([0x56,0x61,0x6c,0x69,0x64])&&_0x9e4760();}function _0x263c23(){const _0x450989=window[_0x3323f7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3323f7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3323f7([0x6e,0x6f,0x77])]())[_0x3323f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3323f7([0x2e]),'');let _0x424e0a=_0x3323f7([0x41]);for(let _0x1fe59c=0x0;_0x1fe59c<_0x450989[_0x3323f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fe59c+=0x2){let _0x4233b9=window[_0x3323f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x450989[_0x3323f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fe59c,_0x1fe59c+0x2));_0x4233b9>=_0x58b21b[_0x3323f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4233b9-=_0x58b21b[_0x3323f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x424e0a+=_0x58b21b[_0x4233b9];}return _0x424e0a;}function _0x2e2569(){const _0x17e6c8=_0x1f5e29[_0x3323f7([0x73,0x70,0x6c,0x69,0x74])](_0x3323f7([0x2e]));if(0x3!=_0x17e6c8[_0x3323f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x436bbc(_0x17e6c8[0x1]);function _0x436bbc(_0x1baf52){const _0x2cbd25=_0x5b8c83(_0x1baf52);return _0x2cbd25&&_0x227ddb()?_0x2cbd25:null;function _0x227ddb(){const _0x32e920=_0x2cbd25[_0x3323f7([0x6a,0x74,0x69])],_0x2b73eb=window[_0x3323f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32e920[_0x3323f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32e920[_0x3323f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1ba966={..._0x2cbd25,[_0x3323f7([0x6a,0x74,0x69])]:_0x32e920[_0x3323f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32e920[_0x3323f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1ba966[_0x3323f7([0x76,0x63])],_0x3d8f28(_0x1ba966)==_0x2b73eb;}}}async function _0x1d081c(){let _0x42bf09=!0x0;try{const _0x23ef0a=_0x1f5e29[_0x3323f7([0x73,0x70,0x6c,0x69,0x74])](_0x3323f7([0x2e])),[_0x37d238,_0x5b365b,_0x3336ef]=_0x23ef0a;return _0x4b5591(_0x37d238),await _0x108861(_0x37d238,_0x5b365b,_0x3336ef),_0x42bf09;}catch(_0xa2db9a){return!0x1;}function _0x4b5591(_0xc9ef54){const _0x594372=_0x5b8c83(_0xc9ef54);_0x594372&&_0x594372[_0x3323f7([0x61,0x6c,0x67])]==_0x3323f7([0x45,0x53,0x32,0x35,0x36])||(_0x42bf09=!0x1);}async function _0x108861(_0x406ab9,_0x514c95,_0x4f8e2e){const _0x1229c1=window[_0x3323f7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3323f7([0x66,0x72,0x6f,0x6d])](_0x1306b9(_0x4f8e2e),_0x37a229=>_0x37a229[_0x3323f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x135dfd=new window[(_0x3323f7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3323f7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x406ab9+_0x3323f7([0x2e])+_0x514c95),_0x148558=window[_0x3323f7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3323f7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x148558)return;const _0x150521=await _0x148558[_0x3323f7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3323f7([0x6a,0x77,0x6b]),_0x5e4cfe,{[_0x3323f7([0x6e,0x61,0x6d,0x65])]:_0x3323f7([0x45,0x43,0x44,0x53,0x41]),[_0x3323f7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3323f7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3323f7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x148558[_0x3323f7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3323f7([0x6e,0x61,0x6d,0x65])]:_0x3323f7([0x45,0x43,0x44,0x53,0x41]),[_0x3323f7([0x68,0x61,0x73,0x68])]:{[_0x3323f7([0x6e,0x61,0x6d,0x65])]:_0x3323f7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x150521,_0x1229c1,_0x135dfd)||(_0x42bf09=!0x1);}}function _0x5b8c83(_0x4c2527){return _0x4c2527[_0x3323f7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3323f7([0x65,0x79]))?JSON[_0x3323f7([0x70,0x61,0x72,0x73,0x65])](_0x1306b9(_0x4c2527)):null;}function _0x1306b9(_0x43940e){return window[_0x3323f7([0x61,0x74,0x6f,0x62])](_0x43940e[_0x3323f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3323f7([0x2b]))[_0x3323f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3323f7([0x2f])));}function _0x3d8f28(_0x55e242){let _0x57a7dc=0x1505;function _0x1f73bf(_0x240ac7){for(let _0x1e2d54=0x0;_0x1e2d54<_0x240ac7[_0x3323f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e2d54++){const _0x9bbe1e=_0x240ac7[_0x3323f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e2d54);_0x57a7dc=(_0x57a7dc<<0x5)+_0x57a7dc+_0x9bbe1e,_0x57a7dc&=_0x57a7dc;}}function _0x159238(_0x13e0cc){Array[_0x3323f7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x13e0cc)?_0x13e0cc[_0x3323f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x159238):_0x13e0cc&&typeof _0x13e0cc==_0x3323f7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3323f7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x13e0cc)[_0x3323f7([0x73,0x6f,0x72,0x74])]()[_0x3323f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55e771,_0x18e668])=>{_0x1f73bf(_0x55e771),_0x159238(_0x18e668);}):_0x1f73bf(window[_0x3323f7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x13e0cc));}return _0x159238(_0x55e242),_0x57a7dc>>>0x0;}function _0xf86a69(_0x266f5e){return _0x266f5e[_0x3323f7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3323f7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3323f7([0x30]));}function _0x2478ac(_0x9bf456){return _0x9bf456[_0x3323f7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3323f7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3323f7([0x6a,0x6f,0x69,0x6e])]('');}function _0x34ea98(_0xcab19c){return _0x36448f[_0x3323f7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3323f7([0x68,0x61,0x73])](_0xcab19c);}function _0x5c103b(_0x305265){return _0x36448f[_0x3323f7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3323f7([0x67,0x65,0x74])](_0x305265);}function _0x44a4f2(){}function _0x3323f7(_0x4adbae){return _0x4adbae['map'](_0x5081ea=>String['fromCharCode'](_0x5081ea))['join']('');}_0xb9b355(await _0x2b9b7a());}(this);}set['adapter'](_0x5e2658){if(this['_adapter'])throw new _0x1958fd('track-changes-adapter-already-set',this);this['_adapter']=_0x5e2658;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2d00ff=!0x1,toJSON:_0x76d4f7=!0x1}={}){const _0x19d892=[];for(const _0xbc37d4 of this['_suggestions']['values']())_0x2d00ff&&!_0xbc37d4['isInContent']||_0x19d892['push'](_0xbc37d4);return _0x76d4f7?_0x19d892['map'](_0x2872c1=>_0x2872c1['toJSON']()):_0x19d892;}['getSuggestion'](_0x1d7a4b){const _0xa01723=this['_suggestions']['get'](_0x1d7a4b);if(!_0xa01723)throw new _0x1958fd('track-changes-suggestion-not-found',this);return _0xa01723;}['hasSuggestion'](_0x18ff80){return this['_suggestions']['has'](_0x18ff80);}['addSuggestionData'](_0x57554c){const {authorId:_0x440b71,id:_0x30bcfd,attributes:_0x4afd3c}=_0x57554c,[_0x4d878a,_0x5c487c]=_0x57554c['type']['split'](':'),_0x375c7b=this['_suggestions']['get'](_0x30bcfd)||this['_createSuggestion'](_0x4d878a,_0x5c487c,_0x30bcfd,_0x440b71,_0x4afd3c);if(this['_addThreadToSuggestion'](_0x375c7b),this['_checkSuggestionCorrectness'](_0x375c7b,_0x4d878a,_0x5c487c||null,_0x440b71),_0x375c7b['createdAt']=_0x57554c['createdAt'],_0x375c7b['_isDataLoaded']=!0x0,_0x4afd3c&&_0x4afd3c['@external']){const _0x18e138=_0x4afd3c['@external'],_0x127ed6=this['_getExternalAuthor'](_0x18e138['authorName']);_0x375c7b['authoredAt']=_0x18e138['createdAt'],_0x375c7b['author']=_0x127ed6,_0x375c7b['isExternal']=!0x0;}else _0x375c7b['authoredAt']=_0x57554c['createdAt'];switch(_0x57554c['data']&&(_0x375c7b['data']=_0x57554c['data']),_0x57554c['attributes']&&(_0x375c7b['attributes']=_0x57554c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x375c7b['_saved']=!0x0),this['_suggestionState']['get'](_0x375c7b)){case'notReady':this['_suggestionState']['set'](_0x375c7b,'dataReady');break;case'markerReady':_0x375c7b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x375c7b])),this['_refreshSuggestionsChain'](new Set([_0x375c7b])),this['_suggestionState']['set'](_0x375c7b,'ready'),this['fire']('suggestionLoaded',_0x375c7b)):this['_suggestionState']['set'](_0x375c7b,'removed');}return _0x375c7b;}['acceptSuggestion'](_0x3a976c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3a6c4c of _0x3a976c['getAllAdjacentSuggestions']())_0x3a6c4c['accept']();});});}['discardSuggestion'](_0x4f81e6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x233616 of _0x4f81e6['getAllAdjacentSuggestions']())_0x233616['discard']();});});}['enableCommand'](_0x32a86d,_0x11df1d){const _0x5ab11d=this['editor']['commands']['get'](_0x32a86d);if(!_0x5ab11d)throw new _0x1958fd('track-changes-command-not-found',this,{'commandName':_0x32a86d});if(this['_enabledCommands']['has'](_0x5ab11d))throw new _0x1958fd('track-changes-enable-command-twice',this,{'commandName':_0x32a86d});this['_enabledCommands']['add'](_0x5ab11d),_0x11df1d&&_0x5ab11d['on']('execute',(_0x22e68a,_0x2fb8cf)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2fb8cf['length']>0x0&&_0x2fb8cf[_0x2fb8cf['length']-0x1]&&_0x2fb8cf[_0x2fb8cf['length']-0x1]['forceDefaultExecution']?_0x2fb8cf['pop']():(_0x22e68a['return']=_0x11df1d((..._0x2b948c)=>_0x5ab11d['execute'](..._0x2b948c,{'forceDefaultExecution':!0x0}),..._0x2fb8cf),_0x22e68a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3cf556){let _0x229e3f,_0x2d6871;const _0x244435=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x229e3f=_0x3cf556();}catch(_0x35b911){_0x2d6871=_0x35b911;}return _0x244435||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2d6871&&_0x1958fd['rethrowUnexpectedError'](_0x2d6871,this),_0x229e3f;}['markInsertion'](_0x4a6cbd,_0x48c162=null,_0x4d3b8b={}){if(_0x4a6cbd['isCollapsed'])return null;const _0x19b925=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x598b98,meta:_0x1934f3}of this['_findSuggestions'](_0x4a6cbd,'insertion'))if(_0x1934f3['isOwn']){if(!_0x1934f3['isNextTo']){if(_0x1934f3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x598b98,_0x4d3b8b))continue;return _0x598b98;}if(zt(_0x598b98,_0x4d3b8b))return _0x598b98;this['_breakSuggestionMarker'](_0x598b98,_0x4a6cbd['start'],_0x4a6cbd['end']);break;}if(_0x48c162==_0x598b98['subType']&&zt(_0x598b98,_0x4d3b8b)){const _0x408c6c=_0x598b98['getFirstRange']();return _0x408c6c['start']['isEqual'](_0x4a6cbd['end'])?this['_setSuggestionRange'](_0x598b98,this['_model']['createRange'](_0x4a6cbd['start'],_0x408c6c['end'])):this['_setSuggestionRange'](_0x598b98,this['_model']['createRange'](_0x408c6c['start'],_0x4a6cbd['end'])),_0x598b98;}}const _0x414b1c=_0x2e8c25(),_0x281d87=_0x19b925['id'],_0x44d16a=_0x48c162?'insertion:'+_0x48c162:'insertion',_0x1ec12a=this['_setSuggestionData']({'id':_0x414b1c,'type':_0x44d16a,'createdAt':new Date(),'authorId':_0x281d87,'attributes':_0x4d3b8b});return this['_addSuggestionMarker'](_0x44d16a,_0x414b1c,_0x281d87,_0x4a6cbd),_0x1ec12a;}['markMultiRangeInsertion'](_0x5a3c63,_0x1885b0='multi',_0x47d0f8={}){const _0x4079ad=this['editor']['plugins']['get']('Users')['me'],_0x4b7c00=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1885b0,'join');for(const _0x137868 of this['getSuggestions']())if(_0x137868['author']['id']==_0x4079ad['id']&&'insertion'==_0x137868['type']&&_0x137868['subType']==_0x1885b0&&zt(_0x137868,_0x47d0f8)&&(_0x4b7c00(_0x137868['getRanges'](),_0x5a3c63)||_0x4b7c00(_0x5a3c63,_0x137868['getRanges']()))){for(const _0x37b0f3 of _0x5a3c63)_0x137868['addRange'](_0x37b0f3);return _0x137868;}for(const {suggestion:_0x47cbd2,meta:_0x3204c9}of this['_findSuggestions'](_0x5a3c63,'insertion')){if(!_0x3204c9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3204c9['containsRangeInObject'])continue;if(!zt(_0x47cbd2,_0x47d0f8))continue;let _0x52b41a=!0x0;for(const _0x566f3c of _0x47cbd2['getRanges']())for(const _0x94f1d1 of _0x5a3c63)if(!_0x566f3c['containsRange'](_0x94f1d1)){_0x52b41a=!0x1;break;}if(_0x52b41a)return _0x47cbd2;}const _0x26dbb0=_0x2e8c25(),_0x352697=_0x4079ad['id'],_0x1beacd='insertion:'+_0x1885b0,_0xc25f5f=this['_setSuggestionData']({'id':_0x26dbb0,'type':_0x1beacd,'createdAt':new Date(),'authorId':_0x352697,'attributes':_0x47d0f8});for(const _0x34b2ac of _0x5a3c63)this['_addSuggestionMarker'](_0x1beacd,_0x26dbb0,_0x352697,_0x34b2ac,u['getMultiRangeId']());return _0xc25f5f;}['markInlineFormat'](_0x5ec8c9,_0x50f11d,_0x1f5a4b=null,_0x225339={}){if(_0x1f5a4b=_0x1f5a4b||Gt(_0x50f11d),_0x5ec8c9['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1d2652=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f5a4b,'accept');return this['forceDefaultExecution'](()=>_0x1d2652([_0x5ec8c9],_0x50f11d,_0x225339)),null;}const _0x195b7f=this['editor']['plugins']['get']('Users')['me'],_0xfd1de2=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x12939a,meta:_0x29ff43}of this['_findSuggestions'](_0x5ec8c9,'insertion'))_0x29ff43['isOwn']&&!_0x29ff43['isInsideObject']&&_0xfd1de2['push'](..._0x12939a['getRanges']());}const _0x3e7da1=function(_0x3198a6,_0x341560){const _0x4d811f=[];for(const _0x4a4797 of _0x341560){const _0x5599fb=_0x3198a6['getIntersection'](_0x4a4797);_0x5599fb&&_0x4d811f['push'](_0x5599fb);}return _0x4d811f;}(_0x5ec8c9,_0xfd1de2),_0x192e42=function(_0x5317eb,_0x57e6d8){const _0x47fbf5=[_0x5317eb];for(const _0x2c5ea7 of _0x57e6d8){let _0x2c5971=0x0;for(;_0x2c5971<_0x47fbf5['length'];){const _0x2ebae9=_0x47fbf5[_0x2c5971]['getDifference'](_0x2c5ea7);_0x47fbf5['splice'](_0x2c5971,0x1,..._0x2ebae9),_0x2c5971+=_0x2ebae9['length'];}}return _0x47fbf5;}(_0x5ec8c9,_0xfd1de2);_0x3e7da1['length']&&this['_model']['change'](()=>{for(const _0x5745ff of _0x3e7da1){const _0x297868=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f5a4b,'accept');this['forceDefaultExecution'](()=>_0x297868([_0x5745ff],_0x50f11d,_0x225339));}});for(const _0x21a00e of _0x192e42){let _0x56190c=null,_0xb015a5=_0x21a00e['start'],_0x424a79=_0x21a00e['end'];for(const {suggestion:_0x1911cd,meta:_0x250f59}of this['_findSuggestions'](_0x21a00e,'formatInline')){if(!_0x250f59['isOwn'])continue;if(_0x1911cd['subType']!=_0x1f5a4b)continue;if(!zt(_0x1911cd,_0x225339))continue;const _0x16860a=_0x1911cd['getFirstRange']();if(_0x16860a['containsRange'](_0x21a00e,!0x0))return null;_0xb015a5=_0xb015a5['isBefore'](_0x16860a['start'])?_0xb015a5:_0x16860a['start'],_0x424a79=_0x424a79['isAfter'](_0x16860a['end'])?_0x424a79:_0x16860a['end'],_0x56190c?_0x16860a['start']['isBefore'](_0x56190c['getFirstRange']()['start'])?(_0x56190c['removeMarkers'](),_0x56190c=_0x1911cd):_0x1911cd['removeMarkers']():_0x56190c=_0x1911cd;}const _0xde3b2d=this['_model']['createRange'](_0xb015a5,_0x424a79);if(_0x56190c)this['_setSuggestionRange'](_0x56190c,_0xde3b2d);else{const _0x49b478=_0x2e8c25(),_0x497a84=_0x195b7f['id'];this['_setSuggestionData']({'id':_0x49b478,'type':'formatInline:'+_0x1f5a4b,'data':_0x50f11d,'createdAt':new Date(),'authorId':_0x497a84,'attributes':_0x225339}),this['_addSuggestionMarker']('formatInline:'+_0x1f5a4b,_0x49b478,_0x497a84,_0xde3b2d);}}return null;}['markBlockFormat'](_0x4398a1,_0x114609,_0x241857=[],_0x3ff770=null,_0x2fe2ca={}){_0x114609['formatGroupId']||(_0x114609['formatGroupId']=_0x114609['commandName']),_0x114609['multipleBlocks']=_0x4398a1['is']('range'),_0x3ff770=_0x3ff770||Gt(_0x114609);const _0x49052d=_0x241857['map'](_0x2eb580=>Jt(_0x2eb580,this['_model'])),_0x13251f=_0x4398a1['is']('range')?_0x4398a1:Jt(_0x4398a1,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3bf1de=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ff770,'accept');return this['forceDefaultExecution'](()=>_0x3bf1de([_0x13251f],_0x114609,_0x2fe2ca)),null;}_0x49052d['push'](_0x13251f);let _0x569676=!0x0;for(const _0x5473c8 of _0x49052d)if(!this['_rangeIsInLocalUserInsertion'](_0x5473c8)){_0x569676=!0x1;break;}if(_0x569676&&'always'!==this['_trackFormatChanges']){const _0x2eb74b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ff770,'accept');return this['forceDefaultExecution'](()=>_0x2eb74b([_0x13251f],_0x114609,_0x2fe2ca)),null;}let _0x5e6dbb=null,_0x5e0c59=_0x13251f['start'],_0x561b51=_0x13251f['end'];for(const {suggestion:_0x1035b7,meta:_0x335120}of this['_findSuggestions'](_0x13251f,'formatBlock')){if(!_0x335120['isOwn'])continue;if(_0x335120['isNextTo']||_0x335120['containsRangeInObject']||_0x335120['isInsideObject'])continue;if(_0x1035b7['data']['formatGroupId']!=_0x114609['formatGroupId'])continue;if(!zt(_0x1035b7,_0x2fe2ca))continue;const _0x2bfad1=_0x1035b7['getFirstRange']();if(_0x1035b7['subType']==_0x3ff770){if(_0x2bfad1['containsRange'](_0x13251f,!0x0))return null;_0x5e0c59=_0x5e0c59['isBefore'](_0x2bfad1['start'])?_0x5e0c59:_0x2bfad1['start'],_0x561b51=_0x561b51['isAfter'](_0x2bfad1['end'])?_0x561b51:_0x2bfad1['end'],_0x5e6dbb?_0x2bfad1['start']['isBefore'](_0x5e6dbb['getFirstRange']()['start'])?(_0x5e6dbb['removeMarkers'](),_0x5e6dbb=_0x1035b7):_0x1035b7['removeMarkers']():_0x5e6dbb=_0x1035b7;}else{const _0x4a3257=_0x13251f['getIntersection'](_0x2bfad1);this['_cutOutSuggestionMarker'](_0x1035b7,_0x4a3257);}}const _0x353b27=this['editor']['plugins']['get']('Users')['me'],_0x32c68c=_0x2e8c25(),_0x34f74d=_0x353b27['id'];if(_0x5e6dbb)return this['_setSuggestionRange'](_0x5e6dbb,this['_model']['createRange'](_0x5e0c59,_0x561b51)),_0x5e6dbb;{const _0x57abef=this['_setSuggestionData']({'id':_0x32c68c,'type':'formatBlock:'+_0x3ff770,'data':_0x114609,'createdAt':new Date(),'authorId':_0x34f74d,'attributes':_0x2fe2ca});return this['_addSuggestionMarker']('formatBlock:'+_0x3ff770,_0x32c68c,_0x34f74d,this['_model']['createRange'](_0x5e0c59,_0x561b51)),_0x57abef;}}['markMultiRangeBlockFormat'](_0x502023,_0x1771c1,_0xe7d174=[],_0x25b485=null,_0x7a9c8b={}){_0x1771c1['formatGroupId']||(_0x1771c1['formatGroupId']=_0x1771c1['commandName']);const _0xc2c58f=_0x502023[0x0];_0x1771c1['multipleBlocks']=_0xc2c58f['is']('range'),_0x25b485=_0x25b485||Gt(_0x1771c1);const _0x4b7f79=_0xe7d174['map'](_0x264dd7=>Jt(_0x264dd7,this['_model'])),_0xea0832=_0xc2c58f['is']('range')?_0x502023:_0x502023['map'](_0x3b5a45=>Jt(_0x3b5a45,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5c3bee=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25b485,'accept');return this['forceDefaultExecution'](()=>_0x5c3bee(_0xea0832,_0x1771c1,_0x7a9c8b)),null;}_0x4b7f79['push'](..._0xea0832);let _0x553c92=!0x0;for(const _0x451353 of _0x4b7f79)if(!this['_rangeIsInLocalUserInsertion'](_0x451353)){_0x553c92=!0x1;break;}if(_0x553c92&&'always'!==this['_trackFormatChanges']){const _0x2b574c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25b485,'accept');return this['forceDefaultExecution'](()=>_0x2b574c(_0xea0832,_0x1771c1,_0x7a9c8b)),null;}const _0x51acb8=this['editor']['plugins']['get']('Users')['me'];for(const _0x155c4a of this['getSuggestions']()){if(_0x155c4a['author']['id']!=_0x51acb8['id'])continue;if('formatBlock'!=_0x155c4a['type']||_0x155c4a['data']['formatGroupId']!=_0x1771c1['formatGroupId'])continue;if(!zt(_0x155c4a,_0x7a9c8b))continue;const _0x4971f3=_0x155c4a['subType']==_0x25b485;for(let _0x5b7754=0x0;_0x5b7754<_0xea0832['length'];_0x5b7754++){const _0x343387=_0xea0832[_0x5b7754];for(const _0x324a43 of _0x155c4a['getMarkers']()){const _0x347f57=_0x324a43['getRange']();if(_0x343387['isEqual'](_0x347f57)){_0x4971f3?(_0xea0832['splice'](_0x5b7754,0x1),_0x5b7754--):_0x155c4a['removeMarker'](_0x324a43['name']);break;}}}}if(0x0==_0xea0832['length'])return null;const _0x374a7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25b485,'join');for(const _0xb78738 of this['getSuggestions']())if(_0xb78738['author']['id']==_0x51acb8['id']&&'formatBlock'==_0xb78738['type']&&_0xb78738['data']['formatGroupId']==_0x1771c1['formatGroupId']&&_0xb78738['subType']==_0x25b485&&zt(_0xb78738,_0x7a9c8b)&&(_0x374a7f(_0xb78738['getRanges'](),_0xea0832)||_0x374a7f(_0xea0832,_0xb78738['getRanges']()))){for(const _0x1261c8 of _0xea0832)_0xb78738['addRange'](_0x1261c8);return _0xb78738;}const _0x301a73=_0x2e8c25(),_0x177cbc=_0x51acb8['id'],_0x2f0171='formatBlock:'+_0x25b485,_0x31d1bf=this['_setSuggestionData']({'id':_0x301a73,'type':_0x2f0171,'data':_0x1771c1,'createdAt':new Date(),'authorId':_0x177cbc,'attributes':_0x7a9c8b});for(const _0x338449 of _0xea0832)this['_addSuggestionMarker'](_0x2f0171,_0x301a73,_0x177cbc,_0x338449,u['getMultiRangeId']());return _0x31d1bf;}['markDeletion'](_0x1100d1,_0x20dbf0=null,_0x4f0195={}){if(_0x1100d1['isCollapsed'])return null;const _0x81eac7=this['editor']['plugins']['get']('Users')['me'],_0x4749ad=new _0x209e44(_0x1100d1['start'],_0x1100d1['end']);for(const {suggestion:_0x5cd5bb,meta:_0x15c9e1}of this['_findSuggestions'](_0x4749ad,'insertion'))if(_0x15c9e1['isOwn']&&!_0x15c9e1['isNextTo']){if(_0x5cd5bb['isMultiRange']){const _0x79d12=_0x5cd5bb['getRanges']()['filter'](_0x32d09f=>'$graveyard'!=_0x32d09f['root']['rootName']);_0x79d12['every'](_0x10d07c=>_0x4749ad['containsRange'](_0x10d07c,!0x0))&&_0x5cd5bb['discard']();if(_0x79d12['some'](_0x454ba6=>_0x454ba6['containsRange'](_0x4749ad,!0x0))){const _0x4804a2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20dbf0,'accept');return this['forceDefaultExecution'](()=>_0x4804a2([_0x4749ad],null,_0x4f0195)),null;}}else{const _0x3b1be3=_0x4749ad['getIntersection'](_0x5cd5bb['getFirstRange']());null!==_0x3b1be3&&_0x5cd5bb['_onDiscard']([_0x3b1be3],null,_0x4f0195);}}if(_0x4749ad['detach'](),_0x4749ad['isCollapsed']||'$graveyard'==_0x4749ad['root']['rootName'])return null;let _0x4fb647=null,_0x4b8173=_0x4749ad['start'],_0x1820ef=_0x4749ad['end'];const _0xdf6735=this['_findSuggestions'](_0x4749ad,'deletion');for(const {suggestion:_0x4b4427,meta:_0x200c54}of _0xdf6735){const _0x2b8327=this['_model']['createRange'](_0x4b8173,_0x1820ef);if(_0x200c54['isOwn']&&(this['_mergeNestedSuggestions']||!_0x200c54['containsRangeInObject']&&!_0x200c54['isInsideObject'])){if(_0x4b4427['isMultiRange']){if(!zt(_0x4b4427,_0x4f0195))continue;let _0x21dd2a=!0x0;for(const _0x224ede of _0x4b4427['getRanges']()){if(_0x224ede['containsRange'](_0x2b8327,!0x0))return _0x4b4427;_0x2b8327['containsRange'](_0x224ede)||(_0x21dd2a=!0x1);}_0x21dd2a&&_0x4b4427['discard']();}else{const _0xa4a0e=_0x4b4427['getFirstRange']();if(_0xa4a0e['containsRange'](_0x2b8327,!0x0))return _0x4b4427;if(!zt(_0x4b4427,_0x4f0195)){_0x2b8327['containsRange'](_0xa4a0e)?_0x4b4427['removeMarkers']():_0xa4a0e['containsPosition'](_0x4b8173)?_0x4b8173=_0xa4a0e['end']:_0xa4a0e['containsPosition'](_0x1820ef)&&(_0x1820ef=_0xa4a0e['start']);continue;}_0x4b8173=_0x4b8173['isBefore'](_0xa4a0e['start'])?_0x4b8173:_0xa4a0e['start'],_0x1820ef=_0x1820ef['isAfter'](_0xa4a0e['end'])?_0x1820ef:_0xa4a0e['end'],_0x4f0195=Object['assign']({},_0x4b4427['attributes']),_0x4fb647?_0xa4a0e['start']['isBefore'](_0x4fb647['getFirstRange']()['start'])?(_0x4fb647['removeMarkers'](),_0x4fb647=_0x4b4427):_0x4b4427['removeMarkers']():_0x4fb647=_0x4b4427;}}}if(_0x4fb647)return this['_setSuggestionRange'](_0x4fb647,this['_model']['createRange'](_0x4b8173,_0x1820ef)),_0x4fb647;{const _0x5846f6=_0x2e8c25(),_0x16b1b4=this['_model']['createRange'](_0x4b8173,_0x1820ef),_0xd7bc3d=_0x81eac7['id'],_0x297927=_0x20dbf0?'deletion:'+_0x20dbf0:'deletion',_0x4bdd3c=this['_setSuggestionData']({'id':_0x5846f6,'type':_0x297927,'createdAt':new Date(),'authorId':_0xd7bc3d,'attributes':_0x4f0195});return this['_addSuggestionMarker'](_0x297927,_0x5846f6,_0xd7bc3d,_0x16b1b4),_0x4bdd3c;}}['markMultiRangeDeletion'](_0x23e14e,_0x4227d7='multi',_0x3936d8={}){const _0x249888=this['editor']['plugins']['get']('Users')['me'],_0x354c2c=_0x23e14e['map'](_0x126fb6=>new _0x209e44(_0x126fb6['start'],_0x126fb6['end'])),_0x52a688=new Set();for(const {suggestion:_0x3720fa,meta:_0x4bfcab}of this['_findSuggestions'](_0x354c2c,'insertion'))_0x4bfcab['isOwn']&&!_0x4bfcab['isNextTo']&&_0x52a688['add'](_0x3720fa);for(const _0x1b2b74 of _0x52a688)if(_0x1b2b74['isMultiRange']){const _0xf6cbb6=_0x1b2b74['getRanges']();(!_0x1b2b74['attributes']||!_0x1b2b74['attributes']['skipNestingCheck'])&&(_0xf6cbb6['every'](_0x96b5c=>_0x354c2c['some'](_0x35425f=>_0x35425f['containsRange'](_0x96b5c,!0x0)))&&_0x1b2b74['discard']());if(_0x354c2c['every'](_0x2a2213=>_0xf6cbb6['some'](_0x5482ca=>_0x5482ca['containsRange'](_0x2a2213,!0x0)))){const _0xe7464e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4227d7,'accept');return this['forceDefaultExecution'](()=>_0xe7464e(_0x23e14e,null,_0x3936d8)),null;}}else{const _0x3bee3d=_0x1b2b74['getFirstRange']();_0x354c2c['some'](_0x5a2a12=>_0x5a2a12['containsRange'](_0x3bee3d,!0x0))&&_0x1b2b74['discard']();if(_0x354c2c['every'](_0x2bdadf=>_0x3bee3d['containsRange'](_0x2bdadf,!0x0))){const _0x14d27f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4227d7,'accept');return this['forceDefaultExecution'](()=>_0x14d27f(_0x354c2c,null,_0x3936d8)),null;}}const _0x1cd214=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4227d7,'join');let _0x1db954=null;for(const _0x413116 of this['getSuggestions']())if(_0x413116['author']['id']==_0x249888['id']&&_0x413116['isInContent']&&'deletion'==_0x413116['type']&&_0x413116['subType']==_0x4227d7&&zt(_0x413116,_0x3936d8)&&(_0x1cd214(_0x413116['getRanges'](),_0x354c2c)||_0x1cd214(_0x354c2c,_0x413116['getRanges']()))){if(_0x1db954){if(_0x413116['commentThread']&&_0x413116['commentThread']['length'])continue;for(const _0x438ac3 of _0x413116['getRanges']())_0x1db954['isIntersectingWithRange'](_0x438ac3)||_0x1db954['addRange'](_0x438ac3);_0x413116['removeMarkers']();}else{_0x1db954=_0x413116;for(const _0x4044cb of _0x354c2c)_0x413116['isIntersectingWithRange'](_0x4044cb)||_0x413116['addRange'](_0x4044cb);}}if(_0x1db954)return _0x1db954;_0x52a688['clear']();for(const {suggestion:_0x3d110d,meta:_0xbefc83}of this['_findSuggestions'](_0x354c2c,'deletion'))_0xbefc83['isOwn']&&(this['_mergeNestedSuggestions']||!_0xbefc83['containsRangeInObject']&&!_0xbefc83['isInsideObject'])&&zt(_0x3d110d,_0x3936d8)&&_0x52a688['add'](_0x3d110d);for(const _0x505b81 of _0x52a688){const _0xa4b635=_0x505b81['getRanges']();if(!_0x3936d8||!_0x3936d8['skipNestingCheck']){if(_0x354c2c['every'](_0x4e68a2=>_0xa4b635['some'](_0x519b88=>_0x519b88['containsRange'](_0x4e68a2,!0x0))))return _0x505b81;}(!_0x505b81['attributes']||!_0x505b81['attributes']['skipNestingCheck'])&&(_0xa4b635['every'](_0x437d56=>_0x354c2c['some'](_0x6b81bf=>_0x6b81bf['containsRange'](_0x437d56,!0x0)))&&_0x505b81['discard']());}const _0x575531=_0x2e8c25(),_0x4ee6b9=_0x249888['id'],_0x289be7='deletion:'+_0x4227d7,_0x2a9d1a=this['_setSuggestionData']({'id':_0x575531,'type':_0x289be7,'createdAt':new Date(),'authorId':_0x4ee6b9,'attributes':_0x3936d8});for(const _0x492525 of _0x354c2c)_0x492525['detach'](),_0x492525['isCollapsed']||'$graveyard'==_0x492525['root']['rootName']||this['_addSuggestionMarker'](_0x289be7,_0x575531,_0x4ee6b9,_0x492525,u['getMultiRangeId']());return _0x2a9d1a;}['markAttributeChange'](_0x41ff15,_0x46c0b3,_0x4a4e3b,_0x279414,_0x5c0228){if(_0x41ff15['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3aa6cd=this['editor']['plugins']['get']('Users')['me']['id'],_0x14fd15=Array['from'](this['_suggestions']['values']())['filter'](_0x1d0042=>'attribute'==_0x1d0042['type']&&_0x1d0042['data']['key']==_0x46c0b3&&_0x1d0042['isIntersectingWithRange'](_0x41ff15));if('default'===this['_trackFormatChanges']){const _0xd1d11d=this['_findSuggestions'](_0x41ff15,'insertion')['filter'](({meta:_0x22a99a})=>_0x22a99a['isOwn']&&!_0x22a99a['isInsideObject']&&!_0x22a99a['isNextTo'])['map'](({suggestion:_0x1abcdb})=>_0x1abcdb);_0x14fd15['unshift'](..._0xd1d11d);}const _0x213d6d=new Map([[_0x41ff15,_0x4a4e3b]]);for(const _0x25695b of _0x14fd15){const _0x4f1580='attribute'==_0x25695b['type']?_0x25695b['data']['oldValue']:void 0x0,_0x4b272e=_0x25695b['getFirstRange'](),_0xd1ad28=Array['from'](_0x213d6d['keys']())['find'](_0x3d99e3=>_0x3d99e3['isIntersecting'](_0x4b272e));if(!_0xd1ad28)continue;const _0x583710=_0xd1ad28['getDifference'](_0x4b272e);this['_isBlockAttribute'](_0x46c0b3)&&'insertion'==_0x25695b['type']&&0x0!=_0x583710['length']||(_0x213d6d['delete'](_0xd1ad28),_0x583710['forEach'](_0xc96cbe=>{_0x213d6d['set'](_0xc96cbe,_0x4a4e3b);}),'insertion'!=_0x25695b['type']&&_0x4f1580!=_0x279414&&_0x213d6d['set'](_0xd1ad28['getIntersection'](_0x4b272e),_0x4f1580));}const _0x21a336=[];for(const [_0x563acd,_0x385be1]of _0x213d6d){const _0x473e4c=_0x2e8c25(),_0x1bf97f={'key':_0x46c0b3,'oldValue':_0x385be1,'newValue':_0x279414};_0x46c0b3['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':_0x46c0b3});const _0x4c2923=('attribute:'+(_0x46c0b3+'|'+Gt({'newValue':_0x279414})))['substring'](0x0,0x3c),_0x1782d7=this['_setSuggestionData']({'id':_0x473e4c,'type':_0x4c2923,'data':_0x1bf97f,'createdAt':new Date(),'authorId':_0x3aa6cd,'attributes':_0x5c0228});_0x21a336['push'](_0x1782d7),this['_addSuggestionMarker'](_0x4c2923,_0x473e4c,_0x3aa6cd,_0x563acd);}return _0x21a336;}['enableDefaultAttributesIntegration'](_0x25cae8){this['enableCommand'](_0x25cae8,(_0xed35f1,..._0x443b91)=>{this['_recordAttributeChanges'](()=>{_0xed35f1(..._0x443b91);});});}['registerBlockAttribute'](_0x1984d5){this['_blockAttributeKeys']['add'](_0x1984d5);}['registerInlineAttribute'](_0x28438a){this['_inlineAttributeKeys']['add'](_0x28438a);}['_getAttributeKey'](_0x19f34c){return'attribute'==_0x19f34c['type']?_0x19f34c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xb711cf,_0x4ff281){const _0x3dd42f=_0xb711cf['getFirstMarker']();this['_model']['change'](_0x2faac3=>{_0x2faac3['updateMarker'](_0x3dd42f,{'range':_0x4ff281});});}['_addThreadToSuggestion'](_0x5d8b90){const _0x50a308=_0x5d8b90['id'],_0x17f5fc=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x50a308)||this['_commentsRepository']['addCommentThread']({'channelId':_0x17f5fc,'threadId':_0x50a308,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2abb28=this['_commentsRepository']['getCommentThread'](_0x50a308);_0x2abb28['unbind']('isRemovable'),_0x2abb28['isRemovable']=!0x1,_0x5d8b90['commentThread']=_0x2abb28;}['_checkSuggestionCorrectness'](_0x5e2431,_0xc6fe20,_0x12a11f,_0x1c3378){if(_0x5e2431['type']!=_0xc6fe20||_0x5e2431['subType']!=_0x12a11f||_0x5e2431['creator']['id']!=_0x1c3378)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1958fd('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xfd36fe,_0x534194){const _0x2cbac8=_0xfd36fe['getFirstRange']();if(_0x534194['isEqual'](_0x2cbac8))_0xfd36fe['removeMarkers']();else{if(_0x2cbac8['containsRange'](_0x534194)){const _0x498378=this['_model']['createPositionAt'](_0x534194['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xfd36fe,this['_model']['createRange'](_0x2cbac8['start'],_0x498378));const _0x1cafb6=_0x2e8c25(),_0x3dfc45=_0xfd36fe['creator']['id'],_0x2b3afb=_0xfd36fe['type']+':'+_0xfd36fe['subType'];this['_setSuggestionData']({'id':_0x1cafb6,'type':_0x2b3afb,'createdAt':new Date(),'authorId':_0x3dfc45,'data':_0xfd36fe['data'],'attributes':_0xfd36fe['attributes']});const _0x241d71=this['_model']['createPositionAt'](_0x534194['end']['parent'],'after'),_0x133a22=this['_model']['createRange'](_0x241d71,_0x2cbac8['end']);this['_addSuggestionMarker'](_0x2b3afb,_0x1cafb6,_0x3dfc45,_0x133a22);}else{if(_0x2cbac8['containsPosition'](_0x534194['start'])){const _0x2917b8=this['_model']['createPositionAt'](_0x534194['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xfd36fe,this['_model']['createRange'](_0x2cbac8['start'],_0x2917b8));}else{const _0x50e3b1=this['_model']['createPositionAt'](_0x534194['end']['parent'],'after');this['_setSuggestionRange'](_0xfd36fe,this['_model']['createRange'](_0x50e3b1,_0x2cbac8['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5c1237){for(const {suggestion:_0x5b48f6,meta:_0x20ac78}of this['_findSuggestions'](_0x5c1237,'insertion')){if(!_0x20ac78['isOwn'])continue;const _0x5233dd=_0x5b48f6['getRanges']();for(const _0x432a57 of _0x5233dd)if(!_0x5c1237['getDifference'](_0x432a57)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x58add4){const _0x3cf994=this['editor']['plugins']['get']('Users')['getUser'](_0x58add4);if(!_0x3cf994)throw new _0x1958fd('track-changes-user-not-found',this);return _0x3cf994;}['_getExternalAuthor'](_0x1ae832){const _0x42c1df=this['editor']['plugins']['get']('Users'),_0x3f854e=_0x42e404('external:'+_0x1ae832),_0x412ed3=_0x42c1df['getUser'](_0x3f854e);return _0x412ed3||_0x42c1df['addUser']({'id':_0x3f854e,'name':_0x1ae832});}['_createSuggestion'](_0x24c9db,_0x22eca6,_0x6b2d68,_0x39fb66,_0x10b881){const _0x101d06=this['_getAuthorFromId'](_0x39fb66),_0x38f4a9=this['_suggestionFactory']['buildSuggestion'](_0x24c9db,_0x22eca6,_0x6b2d68,_0x101d06,_0x10b881,_0x12fb1c=>{this['_updateSuggestionData'](_0x6b2d68,{'attributes':_0x12fb1c});const _0x766b49=this['getSuggestion'](_0x6b2d68);this['_joinWithAdjacentSuggestions'](new Set([_0x766b49])),this['_refreshSuggestionsChain'](new Set([_0x766b49]));});return this['listenTo'](_0x38f4a9,'accept',()=>{this['_updateSuggestionData'](_0x6b2d68,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x38f4a9,'discard',()=>{this['_updateSuggestionData'](_0x6b2d68,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x6b2d68,_0x38f4a9),this['_suggestionState']['set'](_0x38f4a9,'notReady'),_0x38f4a9;}['_splitMarkerName'](_0xd5badc){const _0xe5b8a4=_0xd5badc['split'](':');return{'group':_0xe5b8a4[0x0],'type':_0xe5b8a4[0x1],'subType':_0xe5b8a4['length']>=0x5?_0xe5b8a4[0x2]:null,'id':_0xe5b8a4['length']<0x5?_0xe5b8a4[0x2]:_0xe5b8a4[0x3],'authorId':_0xe5b8a4['length']<0x5?_0xe5b8a4[0x3]:_0xe5b8a4[0x4],'markerCount':0x6==_0xe5b8a4['length']?_0xe5b8a4[0x5]:null};}['_breakSuggestionMarker'](_0x1c108c,_0x2725be,_0xe8b282){const _0x175716=_0x1c108c['getFirstRange'](),_0x49b455=_0x175716['start'],_0x213d29=_0x175716['end'];this['_setSuggestionRange'](_0x1c108c,this['_model']['createRange'](_0x49b455,_0x2725be));const _0xccf990=_0x2e8c25(),_0x1d1e1a=_0x1c108c['creator']['id'],_0x47b152=_0x1c108c['type']+(_0x1c108c['subType']?':'+_0x1c108c['subType']:'');this['_setSuggestionData']({'id':_0xccf990,'type':_0x47b152,'createdAt':new Date(),'authorId':_0x1d1e1a,'originalSuggestionId':_0x1c108c['id'],'attributes':_0x1c108c['attributes'],'data':_0x1c108c['data']});const _0x3a38a6=this['_getAttributeKey'](_0x1c108c);('formatBlock'==_0x1c108c['type']||_0x3a38a6&&this['_isBlockAttribute'](_0x3a38a6))&&(_0xe8b282=this['_model']['createPositionBefore'](_0xe8b282['parent'])),this['_addSuggestionMarker'](_0x47b152,_0xccf990,_0x1d1e1a,this['_model']['createRange'](_0xe8b282,_0x213d29));}['_findSuggestions'](_0x3d57f7,_0x2b737b=null){const _0x32c56d=[],_0x55f13f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3d57f7)||(_0x3d57f7=[_0x3d57f7]);for(const _0x28580e of this['getSuggestions']()){if(!_0x28580e['isInContent'])continue;if(_0x2b737b&&_0x28580e['type']!=_0x2b737b)continue;let _0x2093eb=!0x1;for(const _0x58d1d2 of _0x28580e['getRanges']()){for(const _0x82c4a4 of _0x3d57f7){const _0x201718=_0x82c4a4['start']['isEqual'](_0x58d1d2['end'])||_0x82c4a4['end']['isEqual'](_0x58d1d2['start']);if(_0x201718||_0x82c4a4['getIntersection'](_0x58d1d2)){const _0x470fe4=_0x82c4a4['containsRange'](_0x58d1d2)&&Ut(this['_model']['schema'],_0x58d1d2['start'],_0x82c4a4),_0x3e0833=_0x58d1d2['containsRange'](_0x82c4a4)&&Ut(this['_model']['schema'],_0x82c4a4['start'],_0x58d1d2);_0x32c56d['push']({'suggestion':_0x28580e,'meta':{'isOwn':_0x55f13f==_0x28580e['author'],'isNextTo':_0x201718,'isInsideObject':_0x470fe4,'containsRangeInObject':_0x3e0833}}),_0x2093eb=!0x0;break;}}if(_0x2093eb)break;}}return _0x32c56d;}['_addSuggestionMarker'](_0x1322a9,_0x7d5567,_0x2f5cbe,_0x5e3fb8,_0x2222dc){this['_model']['change'](_0xe87c7d=>{let _0xf57129='suggestion:'+_0x1322a9+':'+_0x7d5567+':'+_0x2f5cbe;_0x2222dc&&(_0xf57129=_0xf57129+':'+_0x2222dc),_0xe87c7d['addMarker'](_0xf57129,{'range':_0x5e3fb8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x24c7c2){const _0x243db2=_0x24c7c2['previous'],_0x4e2e51=_0x24c7c2['next'];_0x24c7c2['previous']=null,_0x24c7c2['next']=null,null!=_0x243db2&&_0x243db2['next']==_0x24c7c2&&(_0x243db2['next']=_0x4e2e51),null!=_0x4e2e51&&_0x4e2e51['previous']==_0x24c7c2&&(_0x4e2e51['previous']=_0x243db2),'ready'==this['_suggestionState']['get'](_0x24c7c2)&&(this['_suggestionState']['set'](_0x24c7c2,'removed'),this['fire']('suggestionUnloaded',_0x24c7c2,_0x243db2,_0x4e2e51));}['_setSuggestionData'](_0x2dcecc){const _0x44659a=_0x2dcecc['id'],_0x2e37ee=this['addSuggestionData'](_0x2dcecc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xbac81d=this['editor']['plugins']['get']('PendingActions'),_0x1fa986=_0x2e37ee['hasComments'],_0x4cffa3=_0x2e37ee['subType']?_0x2e37ee['type']+':'+_0x2e37ee['subType']:_0x2e37ee['type'],_0x234418=this['editor']['locale'],_0x230394=_0xbac81d['add'](o(_0x234418,'PENDING_ACTION_SUGGESTION')),_0x17843d={'id':_0x44659a,'type':_0x4cffa3,'hasComments':_0x1fa986,'data':_0x2dcecc['data']||null,'originalSuggestionId':_0x2dcecc['originalSuggestionId']||null,'attributes':_0x2e37ee['attributes']};this['_adapter']['addSuggestion'](_0x17843d)['then'](_0x40827a=>{_0x2e37ee['_saved']=!0x0,_0xbac81d['remove'](_0x230394),_0x40827a&&_0x40827a['createdAt']&&(this['_suggestions']['get'](_0x44659a)['createdAt']=_0x40827a['createdAt']);})['catch'](_0x597940=>{throw _0x2780d1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2e37ee['discard']();}),_0x2e37ee['stopListening'](),this['_suggestions']['delete'](_0x2e37ee['id']),this['_suggestionState']['delete'](_0x2e37ee),_0x597940;});}return _0x2e37ee;}['_isBlockAttribute'](_0x16ab2d){return this['_blockAttributeKeys']['has'](_0x16ab2d);}['_updateSuggestionData'](_0x32f068,_0x33b122){const _0x4d6231=this['editor']['plugins']['get']('PendingActions'),_0x4bbf76=this['getSuggestion'](_0x32f068);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4bbf76['_saved']){const _0x23c8b9=_0x4d6231['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x32f068,_0x33b122)['then'](()=>{_0x4d6231['remove'](_0x23c8b9);});}else _0x4bbf76['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x32f068,_0x33b122);});}}['_getSuggestionData'](_0x50cf82){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1958fd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x50cf82);}['_handleNewSuggestionMarker'](_0x20252d){const {id:_0x4bcf40,type:_0x1a1eb4,subType:_0x3655db,authorId:_0x584279}=this['_splitMarkerName'](_0x20252d),_0x4308fb=this['_suggestions']['get'](_0x4bcf40)||this['_createSuggestion'](_0x1a1eb4,_0x3655db,_0x4bcf40,_0x584279,{});switch(this['_checkSuggestionCorrectness'](_0x4308fb,_0x1a1eb4,_0x3655db,_0x584279),this['_suggestionState']['get'](_0x4308fb)){case'notReady':this['_getSuggestionData'](_0x4bcf40)['then'](_0x29e7c0=>{let _0x24caf8=Promise['resolve']();_0x29e7c0['hasComments']&&(_0x24caf8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4bcf40})),_0x24caf8['then'](()=>{this['addSuggestionData'](_0x29e7c0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4308fb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4bcf40,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4308fb,'ready'),this['fire']('suggestionLoaded',_0x4308fb);break;case'ready':this['fire']('suggestionChanged',_0x4308fb);}return _0x4308fb['addMarkerName'](_0x20252d),_0x4308fb;}['_refreshSuggestionsChain'](_0x503b4e){const _0x478d2a=Array['from'](_0x503b4e),_0x52c510=_0x478d2a['filter'](_0x88cded=>'attribute'==_0x88cded['type']);this['_refreshAttributeSuggestionsChain'](_0x52c510);const _0x14bed5=_0x478d2a['filter'](_0xaa093a=>!_0xaa093a['isMultiRange']&&'attribute'!=_0xaa093a['type']),_0x531c49=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x503707=>!_0x503707['isMultiRange']&&'attribute'!=_0x503707['type']),_0x1f0ef2=_0x531c49['filter'](_0x5efb53=>!_0x503b4e['has'](_0x5efb53)),_0x53ef03=new Map(_0x531c49['map'](_0x590c6b=>[_0x590c6b,this['_suggestionFactory']['getSuggestionCallback'](_0x590c6b['type'],_0x590c6b['subType'],'chain')])),_0x304de2=new Map(_0x531c49['map'](_0x5bd34e=>[_0x5bd34e,_0x5bd34e['getFirstRange']()])),_0x14a96d=new Set(),_0x1140df=new Set();for(let _0x578aef=0x0;_0x578aef<_0x14bed5['length'];_0x578aef++)_0x3a0d4e(_0x14bed5[_0x578aef],_0x14bed5,_0x578aef+0x1);for(let _0x578af0=0x0;_0x578af0<_0x14bed5['length'];_0x578af0++)_0x3a0d4e(_0x14bed5[_0x578af0],_0x1f0ef2,0x0);const _0x525a5d=new Set();for(let _0x1deb6f=0x0;_0x1deb6f<_0x14bed5['length'];_0x1deb6f++){const _0x1c0de2=_0x14bed5[_0x1deb6f];!_0x1140df['has'](_0x1c0de2)&&_0x1c0de2['previous']&&(_0x525a5d['add'](_0x1c0de2['previous']),_0x1c0de2['previous']['next']===_0x1c0de2&&(_0x1c0de2['previous']['next']=null),_0x1c0de2['previous']=null),!_0x14a96d['has'](_0x1c0de2)&&_0x1c0de2['next']&&(_0x525a5d['add'](_0x1c0de2['next']),_0x1c0de2['next']['previous']===_0x1c0de2&&(_0x1c0de2['next']['previous']=null),_0x1c0de2['next']=null);}function _0x3a0d4e(_0x481e6b,_0x52cc88,_0x2577af){for(let _0x420b05=_0x2577af;_0x420b05<_0x52cc88['length'];_0x420b05++){const _0x555989=_0x404184(_0x481e6b,_0x52cc88[_0x420b05]);_0x555989&&(_0x555989[0x0]['next']=_0x555989[0x1],_0x555989[0x1]['previous']=_0x555989[0x0],_0x14a96d['add'](_0x555989[0x0]),_0x1140df['add'](_0x555989[0x1]));}}function _0x404184(_0x52b300,_0x213d2e){if(_0x52b300['author']['id']!==_0x213d2e['author']['id'])return null;const _0x31292d=_0x53ef03['get'](_0x52b300)(_0x52b300,_0x213d2e,_0x304de2['get'](_0x52b300),_0x304de2['get'](_0x213d2e));if(!_0x31292d)return null;return _0x53ef03['get'](_0x213d2e)(_0x52b300,_0x213d2e,_0x304de2['get'](_0x52b300),_0x304de2['get'](_0x213d2e))?_0x31292d[0x1]['commentThread']&&_0x31292d[0x1]['commentThread']['length']?null:_0x31292d:null;}_0x525a5d['size']&&this['_refreshSuggestionsChain'](_0x525a5d);}['_refreshAttributeSuggestionsChain'](_0x774fda){if(0x0==_0x774fda['length'])return;const _0x47ccfe=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x83ae3=>'attribute'==_0x83ae3['type']&&_0x83ae3['_isDataLoaded']),_0x509670=[],_0x4204dc=new Map();for(const _0x383482 of _0x47ccfe){const _0x42dfce=_0x42e404(_0x383482['attributes']);_0x4204dc['has'](_0x42dfce)||(_0x4204dc['set'](_0x42dfce,_0x509670['length']),_0x509670['push']([]));const _0x596c98=_0x4204dc['get'](_0x42dfce);_0x509670[_0x596c98]['push'](_0x383482);}!(function(){_0x509670['sort']((_0x6079dc,_0x5a0c5d)=>{const _0x470a9f=_0x6079dc[0x0]['createdAt'],_0x45832a=_0x5a0c5d[0x0]['createdAt'];return _0x470a9f==_0x45832a?_0x6079dc[0x0]['attributes']['groupId']<_0x5a0c5d[0x0]['attributes']['groupId']?-0x1:0x1:_0x470a9f<_0x45832a?-0x1:0x1;});for(const _0x4fa7fe of _0x509670)_0x4fa7fe['sort']((_0x183aa2,_0x174adc)=>_0x183aa2['id']<_0x174adc['id']?-0x1:0x1);}());for(let _0x17a29a=0x0;_0x17a29a<_0x509670['length'];_0x17a29a++){if(0x0==_0x509670[_0x17a29a]['length'])continue;const _0xc80721=[];for(let _0x2f42a8=_0x17a29a+0x1;_0x2f42a8<_0x509670['length'];_0x2f42a8++)0x0!=_0x509670[_0x2f42a8]['length']&&_0xd38755(_0x509670[_0x17a29a],_0x509670[_0x2f42a8])&&_0xc80721['push'](_0x2f42a8);for(const _0x3476dc of _0xc80721)_0x509670[_0x17a29a]=_0x509670[_0x17a29a]['concat'](_0x509670[_0x3476dc]),_0x509670[_0x3476dc]=[];}for(const _0x6c08a2 of _0x509670)for(let _0x5eff00=0x0;_0x5eff00<_0x6c08a2['length'];_0x5eff00++){const _0x527780=_0x6c08a2[_0x5eff00+0x1]||null;_0x6c08a2[_0x5eff00]['next']!==_0x527780&&(_0x6c08a2[_0x5eff00]['next']=_0x527780);}for(const _0xba9da2 of _0x509670)for(let _0x1dc37d=0x0;_0x1dc37d<_0xba9da2['length'];_0x1dc37d++){const _0x296482=_0xba9da2[_0x1dc37d-0x1]||null;_0xba9da2[_0x1dc37d]['previous']!==_0x296482&&(_0xba9da2[_0x1dc37d]['previous']=_0x296482);}function _0xd38755(_0x5bcedb,_0xcd68a9){if(_0x5bcedb[0x0]['attributes']['groupId']!==_0xcd68a9[0x0]['attributes']['groupId']&&_0x5bcedb[0x0]['author']!==_0xcd68a9[0x0]['author'])return!0x1;if(!function(_0x1856e2,_0x6c8921){if(!_0x1856e2['hasComments']&&!_0x6c8921['hasComments'])return!0x0;if(_0x1856e2['hasComments']&&_0x6c8921['hasComments'])return!0x1;if(_0x1856e2['hasComments']&&_0x6c8921['createdAt']<_0x1856e2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x6c8921['hasComments']&&_0x1856e2['createdAt']<_0x6c8921['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5bcedb[0x0],_0xcd68a9[0x0]))return!0x1;const _0x197fb1=xt(_0x5bcedb[0x0]['attributes'],'groupId'),_0x41fb8d=xt(_0xcd68a9[0x0]['attributes'],'groupId');if(!_0x2116e2(_0x197fb1,_0x41fb8d))return!0x1;return!!_0x5bcedb['every'](_0x4bab35=>_0xcd68a9['some'](_0x2835fd=>_0x4bab35['getFirstRange']()['isEqual'](_0x2835fd['getFirstRange']())))&&_0xcd68a9['every'](_0x259ee3=>_0x5bcedb['some'](_0x4a50a1=>_0x259ee3['getFirstRange']()['isEqual'](_0x4a50a1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1952b5){const _0x3adb66=Array['from'](_0x1952b5),_0x3776fa=this['getSuggestions']({'skipNotAttached':!0x0}),_0x197453=_0x3776fa['filter'](_0x32b2b8=>!_0x1952b5['has'](_0x32b2b8)),_0x1c1a7a=new Map(_0x3adb66['map'](_0xc6671=>[_0xc6671,this['_suggestionFactory']['getSuggestionCallback'](_0xc6671['type'],_0xc6671['subType'],'join')])),_0x153efb=new Map(_0x3776fa['map'](_0x41aaa1=>[_0x41aaa1,_0x41aaa1['getRanges']()]));for(let _0x2abccb=0x0;_0x2abccb<_0x3adb66['length'];_0x2abccb++){if(_0x3c61(this,_0x3adb66[_0x2abccb],_0x3adb66,_0x2abccb+0x1))return!0x0;}for(let _0x337370=0x0;_0x337370<_0x3adb66['length'];_0x337370++){if(_0x3c61(this,_0x3adb66[_0x337370],_0x197453,0x0))return!0x0;}return!0x1;function _0x3c61(_0x3d165c,_0x2e833e,_0x917d09,_0x13ba25){for(let _0x13ab5c=_0x13ba25;_0x13ab5c<_0x917d09['length'];_0x13ab5c++){const _0x459f33=_0x917d09[_0x13ab5c];if(_0x459f33['type']!==_0x2e833e['type']||_0x459f33['author']['id']!==_0x2e833e['author']['id']||_0x459f33['subType']!==_0x2e833e['subType'])continue;if(!qt(_0x2e833e,_0x459f33))continue;if('attribute'==_0x2e833e['type']&&_0x2e833e['data']['oldValue']!=_0x459f33['data']['oldValue'])continue;if('attribute'==_0x2e833e['type']&&_0x3d165c['_isBlockAttribute'](_0x2e833e['data']['key']))continue;if('formatBlock'==_0x2e833e['type']){const _0x106030=_0x3d165c['editor']['model'],_0x2ad433=_0x2e833e['getContainedElement']();if(_0x2ad433&&(_0x106030['schema']['isObject'](_0x2ad433)||_0x106030['schema']['isLimit'](_0x2ad433)))continue;}const _0x594105=_0x1c1a7a['get'](_0x2e833e),_0x1bbee7=_0x153efb['get'](_0x2e833e),_0x25dba0=_0x153efb['get'](_0x459f33),_0x39a564=_0x2e833e['commentThread']&&_0x2e833e['commentThread']['length'],_0x506393=_0x459f33['commentThread']&&_0x459f33['commentThread']['length'];if(!_0x39a564&&_0x594105(_0x25dba0,_0x1bbee7))return _0x3d165c['_joinSuggestions'](_0x459f33,_0x2e833e),_0x153efb['delete'](_0x2e833e),!0x0;if(!_0x506393&&_0x594105(_0x1bbee7,_0x25dba0))return _0x3d165c['_joinSuggestions'](_0x2e833e,_0x459f33),_0x153efb['delete'](_0x459f33),!0x0;}return!0x1;}}['_joinSuggestions'](_0x26c726,_0x4ba074){if(_0x26c726['isMultiRange']){for(const _0x3a3248 of _0x4ba074['getRanges']())_0x26c726['addRange'](_0x3a3248);}else{const _0x328bb0=_0x4ba074['getFirstRange']()['end'];this['_setSuggestionRange'](_0x26c726,this['_model']['createRange'](_0x26c726['getFirstRange']()['start'],_0x328bb0));}_0x4ba074['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1166dc,_0x2bcc05,_0x47fb18){const _0x3fe7f8=_0x1166dc['startsWith']('format')||_0x1166dc['startsWith']('attribute')?'FORMATTING':_0x1166dc['toUpperCase']();return o(this['editor']['locale'],_0x2bcc05+'_'+_0x3fe7f8+'_SUGGESTION_ANNOUNCEMENT',_0x47fb18);}['_initAriaMarkerChangeAnnouncements'](){const _0x344a39=this['editor'];if(!_0x344a39['ui'])return;const {ariaLiveAnnouncer:_0x513e1a}=_0x344a39['ui'];_0x505764(this['_model'],({left:_0x5f4a39,entered:_0x2b6464})=>{for(const _0x4d123f of _0x5f4a39){const {group:_0x111ce9,type:_0x59f426}=this['_splitMarkerName'](_0x4d123f['name']);if('suggestion'===_0x111ce9){_0x513e1a['announce'](this['_getMarkerAnnouncementText'](_0x59f426,'LEAVE'));break;}}for(const _0x469a96 of _0x2b6464){const {group:_0x4a8ec1,type:_0x5b0254}=this['_splitMarkerName'](_0x469a96['name']);if('suggestion'===_0x4a8ec1){_0x513e1a['announce'](this['_getMarkerAnnouncementText'](_0x5b0254,'ENTER',_0x2d0a25(_0x2ecdda)));break;}}});}['_processAttributeChanges'](_0x2e6b02){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4ff68c=this['editor'],_0x3a75d5=_0x4ff68c['model']['document']['differ']['getChanges']();if(0x0==_0x3a75d5['length'])return!0x1;const _0x364a3f=[],_0x2c3058=_0x3a75d5['filter'](_0x538cff=>'attribute'==_0x538cff['type']),_0x7ab97e=_0x3a75d5['filter'](_0x5b0843=>'insert'==_0x5b0843['type']&&'$text'!=_0x5b0843['name']),_0x56be9d=_0x3a75d5['filter'](_0x65a6fc=>'remove'==_0x65a6fc['type']&&'$text'!=_0x65a6fc['name']);for(const _0x43abb3 of _0x2c3058)_0x364a3f['push']({'key':_0x43abb3['attributeKey'],'newValue':_0x43abb3['attributeNewValue'],'oldValue':_0x43abb3['attributeOldValue'],'range':Lt(_0x43abb3['range'],_0x4ff68c['model'])});for(const _0x283013 of _0x7ab97e){const _0x253c6f=_0x56be9d['find'](_0xb0b1e3=>_0xb0b1e3['position']['isEqual'](_0x283013['position']));_0x253c6f&&_0x364a3f['push']({'key':m,'newValue':_0x283013['name'],'oldValue':_0x253c6f['name'],'range':_0x4ff68c['model']['createRangeOn'](_0x283013['position']['nodeAfter'])});}return 0x0!=_0x364a3f['length']&&this['_reduceExistingSuggestions'](_0x2e6b02,_0x364a3f);}['_processAttributeSuggestions'](_0x2eded9){let _0x4229b2=!0x1;const _0x40c090=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43aedb=>_0x43aedb['data']['newRange']&&_0x43aedb['name']['startsWith']('suggestion:attribute:'));for(const _0x12e601 of _0x40c090){const {subType:_0x34f1ab,id:_0xcb4304}=this['_splitMarkerName'](_0x12e601['name']),_0x25621c=_0x34f1ab['split']('|')[0x0];for(const _0x186b32 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x186b32['id']!=_0xcb4304&&'attribute'==_0x186b32['type']&&_0x186b32['data']&&_0x186b32['data']['key']==_0x25621c&&_0x186b32['getFirstRange']()['isIntersecting'](_0x12e601['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x186b32,_0x12e601['data']['newRange'],_0x2eded9),_0x4229b2=!0x0);}return _0x4229b2;}['_recordAttributeChanges'](_0x4a05eb){this['_recordAttributeSuggestions']=!0x0,_0x4a05eb();}['_isRegisteredAttribute'](_0x28d5ab){const _0x4875e2=this['_isBlockAttribute'](_0x28d5ab),_0x350b21=this['_inlineAttributeKeys']['has'](_0x28d5ab);return _0x4875e2||_0x350b21;}['_reduceExistingSuggestions'](_0x5a1801,_0x425c59){if(0x0==_0x425c59['length'])return!0x1;let _0x2c0f74=!0x1;for(const _0x378ac9 of _0x425c59){const _0x3fcf05=this['_findSuggestions'](_0x378ac9['range'],'attribute')['filter'](_0x4bdcff=>!_0x4bdcff['meta']['isNextTo'])['map'](_0x91f47d=>_0x91f47d['suggestion']),_0x232230=_0x42e404({'newValue':_0x378ac9['newValue']});_0x3fcf05['filter'](_0x14930a=>{const [_0x4a869c,_0x33fcb3]=_0x14930a['subType']['split']('|');return _0x4a869c==_0x378ac9['key']&&_0x33fcb3!=_0x232230;})['forEach'](_0x13cdd1=>{this['_reduceSuggestionAttributeRange'](_0x13cdd1,_0x378ac9['range'],_0x5a1801),_0x2c0f74=!0x0;});}return _0x2c0f74;}['_reduceSuggestionAttributeRange'](_0x154ca5,_0x2f8266,_0x286509){const _0x56322b=_0x154ca5['getFirstRange']()['getDifference'](_0x2f8266);0x0!==_0x56322b['length']?0x1!==_0x56322b['length']?this['_breakSuggestionMarker'](_0x154ca5,_0x2f8266['start'],_0x2f8266['end']):this['_setSuggestionRange'](_0x154ca5,_0x56322b[0x0]):_0x286509['removeMarker'](_0x154ca5['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x27c3ed){this['_editor']=_0x27c3ed,this['_model']=_0x27c3ed['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4aff65,_0x5a5b2a,_0x53eb66,_0x58d644,_0x4f861e,_0x4315ae){return new u(this['_model'],{'type':_0x4aff65,'subType':_0x5a5b2a,'id':_0x53eb66,'author':_0x58d644,'creator':_0x58d644,'attributes':_0x4f861e,'onAttributesChange':_0x4315ae,'onAccept':(..._0x548432)=>this['getSuggestionCallback'](_0x4aff65,_0x5a5b2a,'accept')(..._0x548432),'onDiscard':(..._0x4358a7)=>this['getSuggestionCallback'](_0x4aff65,_0x5a5b2a,'discard')(..._0x4358a7)});}['registerCustomCallback'](_0x2767f8,_0x9d9896,_0x567401,_0x30e2c1){const _0x2c46d9=_0x2767f8+':'+_0x9d9896+':'+_0x567401;this['_customCallbacks']['set'](_0x2c46d9,_0x30e2c1);}['getSuggestionCallback'](_0x375776,_0x53367a,_0x4d1393){const _0x43740b=_0x375776+':'+_0x53367a+':'+_0x4d1393;return this['_customCallbacks']['get'](_0x43740b)||this['_defaultCallbacks']['get'](_0x375776+':'+_0x4d1393);}['_registerDefaultCallbacks'](){const _0x5c8047=()=>!0x1,_0x3cefb5=_0xa32459=>{_0xa32459['sort']((_0xe04d5f,_0x2ca363)=>_0xe04d5f['start']['isBefore'](_0x2ca363['start'])?0x1:-0x1),this['_model']['change'](_0x1862b4=>{for(const _0x436b03 of _0xa32459){let _0x49a3b7;_0x49a3b7=_0x436b03['end']['isAtEnd']&&_0x436b03['end']['parent']==_0x436b03['start']['nodeAfter']?_0x1862b4['createSelection'](_0x436b03['start']['nodeAfter'],'on'):_0x1862b4['createSelection'](_0x436b03),this['_model']['deleteContent'](_0x49a3b7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x30e9cb=(_0xf14ce,_0x34fb07)=>{_0x34fb07&&this['_model']['change'](_0x1856fa=>{const {commandName:_0x54bc56,commandParams:_0x2726d6=[]}=_0x34fb07,_0x37ad64=_0xf14ce['map'](_0x3563bb=>(Vt(_0x3563bb)&&(_0x3563bb=this['_model']['createRange'](_0x3563bb['end'])),_0x3563bb))['filter'](_0x16e961=>'$graveyard'!==_0x16e961['root']['rootName']);if(_0x37ad64['length']<0x1)return;const _0x14480b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2cc1e1=>_0x209e44['fromRange'](_0x2cc1e1));_0x1856fa['setSelection'](_0x37ad64);for(const _0x2c14e5 of this['_editor']['commands']['commands']())_0x2c14e5['refresh']();_0x2726d6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x54bc56,..._0x2726d6);const _0x20a82e=_0x14480b['filter'](_0xd31e67=>'$graveyard'!=_0xd31e67['root']['rootName']);_0x20a82e['length']>0x0&&_0x1856fa['setSelection'](_0x20a82e);for(const _0x13f3db of _0x14480b)_0x13f3db['detach']();});},_0x24c7d=(_0x4d4a87,_0x4df335)=>0x1==_0x4d4a87['length']&&0x1==_0x4df335['length']&&_0x4d4a87[0x0]['end']['isEqual'](_0x4df335[0x0]['start']),_0x47a462=(_0x31b32e,_0x57bdbd,_0x56fe4b,_0x597e9d)=>Ht(_0x31b32e,_0x57bdbd,_0x56fe4b,_0x597e9d)?[_0x31b32e,_0x57bdbd]:Ht(_0x57bdbd,_0x31b32e,_0x597e9d,_0x56fe4b)?[_0x57bdbd,_0x31b32e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5c8047),this['_defaultCallbacks']['set']('insertion:discard',_0x3cefb5),this['_defaultCallbacks']['set']('insertion:join',_0x24c7d),this['_defaultCallbacks']['set']('insertion:chain',_0x47a462),this['_defaultCallbacks']['set']('deletion:accept',_0x3cefb5),this['_defaultCallbacks']['set']('deletion:discard',_0x5c8047),this['_defaultCallbacks']['set']('deletion:join',_0x24c7d),this['_defaultCallbacks']['set']('deletion:chain',_0x47a462),this['_defaultCallbacks']['set']('formatInline:accept',_0x30e9cb),this['_defaultCallbacks']['set']('formatInline:discard',_0x5c8047),this['_defaultCallbacks']['set']('formatInline:join',_0x24c7d),this['_defaultCallbacks']['set']('formatInline:chain',_0x5c8047),this['_defaultCallbacks']['set']('formatBlock:accept',_0x30e9cb),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5c8047),this['_defaultCallbacks']['set']('formatBlock:join',_0x24c7d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5c8047),this['_defaultCallbacks']['set']('attribute:accept',_0x5c8047),this['_defaultCallbacks']['set']('attribute:discard',(_0x40112c,_0xc957ed)=>{if(!_0xc957ed)return;const _0x306d29=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x59860d=>{if(_0xc957ed['key']==m)for(const _0x103211 of _0x40112c){const _0x459b33=_0x103211['start']['nodeAfter'],_0x2e8e65=_0xc957ed['oldValue'];_0x59860d['rename'](_0x459b33,_0x2e8e65);}else{if(_0x306d29['_isBlockAttribute'](_0xc957ed['key'])){for(const _0x1cea0d of _0x40112c)void 0x0!==_0xc957ed['oldValue']?_0x59860d['setAttribute'](_0xc957ed['key'],_0xc957ed['oldValue'],_0x1cea0d['start']['nodeAfter']):_0x59860d['removeAttribute'](_0xc957ed['key'],_0x1cea0d['start']['nodeAfter']);}else{for(const _0xfc906b of _0x40112c)_0xc957ed['oldValue']?_0x59860d['setAttribute'](_0xc957ed['key'],_0xc957ed['oldValue'],_0xfc906b):_0x59860d['removeAttribute'](_0xc957ed['key'],_0xfc906b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x24c7d);}}function Ut(_0x212cb0,_0x191392,_0x37665f){for(const _0x51785f of _0x191392['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x51785f['root']==_0x51785f)return!0x1;if(!_0x37665f['containsItem'](_0x51785f))return!0x1;if(_0x212cb0['isObject'](_0x51785f)||_0x212cb0['isLimit'](_0x51785f))return!0x0;}return!0x1;}function Vt(_0x3ea241){return _0x3ea241['end']['parent']==_0x3ea241['start']['nodeAfter']&&_0x3ea241['end']['isAtStart'];}function Pt(_0x2ade8c,_0x2d4b89,_0x3129c6,_0xcbdf2e){const _0x4c1b62=_0xf63d11=>!_0xf63d11['item']['is']('$textProxy')&&!_0xcbdf2e['isObject'](_0xf63d11['item']),_0x32572f=_0x2ade8c['start']['getLastMatchingPosition'](_0x4c1b62),_0x364ef5=_0x2ade8c['end']['getLastMatchingPosition'](_0x4c1b62,{'direction':'backward'});return(!_0x2ade8c['start']['isEqual'](_0x32572f)||!_0x2ade8c['end']['isEqual'](_0x364ef5))&&(_0x32572f['isBefore'](_0x364ef5)?_0x3129c6['updateMarker'](_0x2d4b89,{'range':_0x3129c6['createRange'](_0x32572f,_0x364ef5)}):_0x3129c6['removeMarker'](_0x2d4b89),!0x0);}function Gt(_0x170f3a){return _0x42e404(_0x170f3a);}function Ft(_0x270406){const _0x3384ca=_0x270406['start']['nodeAfter'];return _0x3384ca&&_0x3384ca['is']('element');}function Lt(_0x3164cc,_0x201c91){return null==_0x3164cc['end']['nodeBefore']&&_0x3164cc['end']['parent']==_0x3164cc['start']['nodeAfter']?Jt(_0x3164cc['start']['nodeAfter'],_0x201c91):_0x3164cc;}function Jt(_0x1608fc,_0x2a6040){const _0x1d262c=_0x2a6040['schema']['isObject'](_0x1608fc)||_0x2a6040['schema']['isSelectable'](_0x1608fc);return _0x2a6040['createRange'](_0x2a6040['createPositionAt'](_0x1608fc,'before'),_0x1d262c?_0x2a6040['createPositionAfter'](_0x1608fc):_0x2a6040['createPositionAt'](_0x1608fc,'end'));}function Ht(_0x45065b,_0x23512d,_0x1c9855,_0x1d61b6){return!!qt(_0x45065b,_0x23512d)&&_0x1c9855['end']['isEqual'](_0x1d61b6['start']);}function qt(_0x232b46,_0x1ac644){if(!_0x232b46['_isDataLoaded']||!_0x1ac644['_isDataLoaded'])return!0x1;const _0x53fc50=new Set(Object['keys'](_0x232b46['attributes'])),_0x1ea317=new Set(Object['keys'](_0x1ac644['attributes']));if(_0x53fc50['delete']('groupId'),_0x1ea317['delete']('groupId'),0x0==_0x53fc50['size']&&0x0==_0x1ea317['size'])return!0x0;if(_0x53fc50['size']!=_0x1ea317['size'])return!0x1;const _0x1e566b={..._0x232b46['attributes']},_0x364934={..._0x1ac644['attributes']};return delete _0x1e566b['groupId'],delete _0x364934['groupId'],JSON['stringify'](_0x1e566b)==JSON['stringify'](_0x364934);}function zt(_0x2eed10,_0x49d9a5){const _0x5f50da=Kt(_0x2eed10['attributes']),_0x5d10ea=Kt(_0x49d9a5);if(!_0x2eed10['_isDataLoaded'])return!0x1;for(const _0x1360a0 of Object['keys'](_0x5d10ea))if(!_0x2116e2(_0x5f50da[_0x1360a0],_0x5d10ea[_0x1360a0]))return!0x1;return!0x0;}function Kt(_0x22e55d){const _0x186c1f=Object['assign']({},_0x22e55d);return delete _0x186c1f['skipNestingCheck'],delete _0x186c1f['tablePasteChainId'],_0x186c1f;}class ge extends/* #__PURE__ -- @preserve */
25
- _0x48b400(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2d83d6,_0x599fe8,_0x3a393f,_0x1b70cb){super(),this['model']=_0x599fe8,this['view']=_0x3a393f,this['commentThreadController']=_0x1b70cb,this['_editor']=_0x2d83d6,this['_acceptCommand']=_0x2d83d6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2d83d6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4f4768,_0x55d636)=>_0x4f4768||_0x55d636),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x880767=>_0x880767&&this['_editor']['model']['canEditAt'](_0x599fe8['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x47f098=>_0x47f098&&this['_editor']['model']['canEditAt'](_0x599fe8['getRanges']())),this['_pendingAction']=null,_0x3a393f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3a393f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3a393f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3a393f,'change:isDirty',()=>{_0x3a393f['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 _0x1f1a23=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1f1a23);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x267cce{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4fb2f1,_0x52f162,_0x55f1fa,_0x3af2c3){super(_0x4fb2f1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xeb0b6(_0x4fb2f1,o(_0x4fb2f1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x52f162['authoredAt']),this['bind']('authoredAt')['to'](_0x52f162),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',_0x52f162,'authoredAt',this,'descriptionParts',(_0x14cd66,_0x783415,_0x5b7d2e)=>{const _0x30b575=_0x5b7d2e['map'](_0xc0ab87=>ns(_0xc0ab87['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x14cd66-0x1,_0x52f162['author']['name'],_0x783415?_0x3af2c3['formatDateTime'](_0x783415):'',new DOMParser()['parseFromString'](_0x30b575,'text/html')['body']['textContent']]);}),this['focusables']=new _0x505d1c(),this['focusTracker']=new _0x2ac3fa(),this['keystrokes']=new _0x5837bc(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5cf768=>_0x5cf768['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x52f162,this['_localUser']=_0x55f1fa,this['_config']=_0x3af2c3,_0x3af2c3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3aef4c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x43e1ed}=this['_config'];this['commentsListView']=new _0x43e1ed(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',_0x44f4ec=>_0x44f4ec+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x49995f,_0x558220)=>_0x49995f||!!_0x558220);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1400ec}=this['_config'],_0x50beb6=new _0x1400ec(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x44cabc=_0x50beb6['commentInputView'];return _0x50beb6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x44cabc,'value',(_0xe268f9,_0xfa2175,_0xf2335a)=>!!_0xf2335a||_0xe268f9&&!_0xfa2175),_0x44cabc['on']('submit',(_0x13ffea,_0x44ebbc)=>{this['fire']('addComment',_0x44ebbc),_0x44cabc['editor']['setData']('');}),_0x44cabc['on']('cancel',()=>this['focus']()),_0x44cabc['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x50beb6;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x30a457,_0x70966e,_0x18b500,_0x2b4ae6){super(_0x30a457,_0x70966e,_0x18b500,_0x2b4ae6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xe285cc=>_0xe285cc&&_0xe285cc[0x0]?_0xe285cc[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xb3fa00,_0x1846f7)=>{let _0x13ed97='';for(const _0x112c98 of _0xb3fa00)_0x13ed97+='<p>'+ns(_0x112c98['content'],_0x112c98['color'])+'</p>';return _0x1846f7?_0x13ed97:ti(_0x13ed97,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2b4ae6['SuggestionView'](_0x30a457,_0x70966e,{'formatDateTime':_0x2b4ae6['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 _0x4bef5b=this['bindTemplate'],_0x5aa870=[this['suggestionView']];return this['commentsListView']&&_0x5aa870['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5aa870['push'](this['commentThreadInputView']),_0x5aa870['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4bef5b['if']('isActive','ck-suggestion-wrapper--active'),_0x4bef5b['to']('type',_0x360975=>'ck-suggestion-'+_0x360975),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':_0x4bef5b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5aa870};}['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 ue extends _0x267cce{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x23ac75,_0x43a3f5,_0x9f7751){super(_0x23ac75),this['_model']=_0x43a3f5,this['_config']=_0x9f7751,this['set']('description',''),this['bind']('authoredAt')['to'](_0x43a3f5),this['acceptButton']=this['_createButton'](o(_0x23ac75,'Accept\x20suggestion'),_0x31795b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x23ac75,'Discard\x20suggestion'),_0x31795b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x273544(_0x23ac75,_0x43a3f5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x505d1c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2ac3fa(),this['keystrokes']=new _0x5837bc(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x19b3e8=>_0x19b3e8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1b42fc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1b42fc['innerHTML']=this['description'],this['on']('change:description',(_0xabc097,_0x5548b1,_0x36952f)=>{_0x1b42fc['innerHTML']=_0x36952f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x22f97b=this['bindTemplate'],_0x3d4e0=[{'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']}},{'tag':'time','attributes':{'datetime':_0x22f97b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x22f97b['to']('authoredAt',_0x17968d=>this['_config']['formatDateTime'](_0x17968d))}]}]},{'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']&&_0x3d4e0['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':_0x3d4e0}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x349d18,_0x3486c8,_0x191013,_0x589239,_0x96d04e){const _0x58e316=new _0x30f15f(this['locale']);return _0x58e316['set']({'label':_0x349d18,'icon':_0x3486c8,'tooltip':!0x0,'tooltipPosition':_0x96d04e}),_0x58e316['extendTemplate']({'attributes':{'class':_0x191013}}),_0x58e316['on']('execute',()=>{this['fire'](_0x589239,this['_model']['id']);}),_0x58e316;}['_setupKeyboardNavigation'](){const _0x581af9=this['element'];this['keystrokes']['listenTo'](_0x581af9);for(const _0xf5effa of this['focusables'])this['focusTracker']['add'](_0xf5effa['element']),this['keystrokes']['listenTo'](_0xf5effa['element']);this['keystrokes']['set']('enter',(_0x13847a,_0x216244)=>{_0x581af9===_0x13847a['target']&&(this['focusCycler']['focusFirst'](),_0x216244());}),this['keystrokes']['set']('esc',(_0x2898e8,_0x2bfaa2)=>{_0x581af9!==_0x2898e8['target']&&(this['focus'](),_0x2bfaa2());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x150ede{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2d0f5a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a806a){super(_0x5a806a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x28fc67=this['editor']['config'];_0x28fc67['define']('trackChanges.SuggestionThreadView',de),_0x28fc67['define']('trackChanges.SuggestionView',ue),_0x28fc67['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x28fc67['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1558a6,_0x5b8e50){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x441f2d,_0xb0a330]of this['_handleControllerBuffer']){const _0x2a0059=this['_suggestionToController']['has'](_0x441f2d);_0x2a0059||_0xb0a330?_0x2a0059&&_0xb0a330&&this['_destroyController'](_0x441f2d):this['_initializeController'](_0x441f2d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1558a6,_0x5b8e50);}['init'](){const _0x518edb=this['editor'],_0x41c0e5=_0x518edb['plugins']['get']('TrackChangesEditing'),_0x161c10=_0x518edb['plugins']['get']('Annotations'),_0xa2aee8=_0x518edb['plugins']['get']('EditorAnnotations'),_0x5a968a=_0x518edb['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xa2aee8['addSourceCollector'](()=>{const _0x2114b9=[];for(const [_0x125b5a,_0xbf595a]of Array['from'](this['_suggestionToController'])){const _0x480e25=_0x125b5a['getAllAdjacentSuggestions'](),_0x5882e9=[];for(const _0x5a9091 of _0x480e25){if(!_0x5a9091['isInContent'])continue;if(_0x5a9091['isMultiRange']){_0x5882e9['push'](..._0x5a9091['getRanges']());continue;}const _0x407fd=_0x5a9091['getFirstRange']();if(_0x5882e9['length']>0x0){const _0x16eeac=_0x5882e9[0x0]['getJoined'](_0x407fd);if(_0x16eeac){_0x5882e9[0x0]=_0x16eeac;continue;}}_0x5882e9['push'](_0x407fd);}_0x2114b9['push']([_0xbf595a['view'],_0x5882e9]);}return _0x2114b9;}),this['listenTo'](_0x41c0e5,'suggestionLoaded',(_0x32796e,_0xd2025a)=>{this['listenTo'](_0xd2025a,'change:previous',(_0x162e48,_0x4ad4a5,_0x56e624,_0x4db9d4)=>{_0xd2025a['isInContent']&&(null==_0x56e624?(this['_updateController'](_0x4db9d4['head']),this['_handleSuggestionControllerDelayed'](_0xd2025a,!0x1)):(this['_updateController'](_0x56e624['head']),null==_0x4db9d4&&this['_handleSuggestionControllerDelayed'](_0xd2025a,!0x0)));}),null!==_0xd2025a['previous']?this['_updateController'](_0xd2025a['head']):this['_handleSuggestionControllerDelayed'](_0xd2025a,!0x1);}),this['listenTo'](_0x41c0e5,'suggestionUnloaded',(_0xcc3b1f,_0x1881eb,_0x59db83)=>{this['stopListening'](_0x1881eb,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1881eb),this['_suggestionToController']['has'](_0x1881eb)&&this['_destroyController'](_0x1881eb),_0x59db83&&this['_updateController'](_0x59db83['head']);}),this['listenTo'](_0x41c0e5,'suggestionChanged',(_0x56312c,_0x427b0d)=>{this['_updateController'](_0x427b0d);}),this['listenTo'](_0x161c10,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5a968a,'addComment',(_0x2eed85,{threadId:_0x24f2ec,isFromAdapter:_0xf69599})=>{if(_0xf69599||!_0x41c0e5['hasSuggestion'](_0x24f2ec))return;const _0x1d30dc=_0x41c0e5['getSuggestion'](_0x24f2ec);this['_suggestionToController']['get'](_0x1d30dc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2fe98f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x231988;for(const _0x4bdf80 in _0x2fe98f){const _0x3f0c12=_0x4bdf80,_0x432a95=_0x2fe98f[_0x3f0c12];if('trackChangesLicenseKeyValid'==_0x432a95||'trackChangesLicenseKeyInvalid'==_0x432a95||'trackChangesLicenseKeyExpired'==_0x432a95||'trackChangesLicenseKeyDomainLimit'==_0x432a95||'trackChangesLicenseKeyNotAllowed'==_0x432a95||'trackChangesLicenseKeyEvaluationLimit'==_0x432a95||'trackChangesLicenseKeyTrialLimit'==_0x432a95||'trackChangesLicenseKeyDevelopmentLimit'==_0x432a95||'trackChangesLicenseKeyUsageLimit'==_0x432a95){delete _0x2fe98f[_0x3f0c12],_0x231988=_0x432a95,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x231988&&_0x2fe98f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x231988&&_0x2fe98f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x231988&&_0x2fe98f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x231988&&_0x2fe98f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x231988&&_0x2fe98f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x231988&&_0x2fe98f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x231988&&_0x2fe98f['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x231988&&_0x2fe98f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x301ba1=this['editor']['plugins']['get']('Annotations'),_0x21657a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x193dc5=Array['from'](_0x301ba1['activeAnnotations'],_0x17563c=>_0x17563c['innerView'])['filter'](_0x4865fb=>this['_viewToController']['has'](_0x4865fb)),_0x262686=[];for(const _0x1a7bec of _0x193dc5){const _0x4891bb=this['_viewToController']['get'](_0x1a7bec)['model']['getAllAdjacentSuggestions']();_0x262686['push'](..._0x4891bb['reduce']((_0x3b4a45,_0x3d5eea)=>[..._0x3b4a45,..._0x3d5eea['getMarkerNames']()],[]));}_0x21657a['activeMarkers']=_0x262686;}['_addUIComponentsToFactory'](){const _0x679f90=this['editor'],_0x42485d=_0x679f90['locale'],_0x454bca=o(_0x42485d,'Track\x20changes'),_0x27118e=new _0x503596([{'type':'switchbutton','model':new _0x4bee3d({'withText':!0x0,'isToggleable':!0x0,'label':_0x454bca,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4bee3d({'withText':!0x0,'label':o(_0x42485d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4bee3d({'withText':!0x0,'label':o(_0x42485d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4bee3d({'withText':!0x0,'label':o(_0x42485d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4bee3d({'withText':!0x0,'label':o(_0x42485d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xbbe48e of _0x27118e)if(pe(_0xbbe48e)){const _0x1125f4=_0x679f90['commands']['get'](_0xbbe48e['model']['commandName']);_0xbbe48e['model']['bind']('isOn','isEnabled')['to'](_0x1125f4,'value','isEnabled');}_0x679f90['ui']['componentFactory']['add']('trackChanges',_0x538ac1=>this['_createToolbarButton'](_0x538ac1,_0x27118e,_0x454bca)),_0x679f90['ui']['componentFactory']['add']('menuBar:trackChanges',_0x47b0a8=>this['_createMenuBarMenu'](_0x47b0a8,_0x27118e,_0x454bca));}['_createToolbarButton'](_0x266844,_0x569cdc,_0x1b90d1){const _0x3f7a30=_0x58dc68(_0x266844,_0x1dec38),_0x519d7e=this['editor']['commands']['get']('trackChanges');_0x3f7a30['buttonView']['set']({'tooltip':_0x1b90d1,'label':_0x1b90d1,'icon':Ce}),_0x3f7a30['buttonView']['bind']('isOn')['to'](_0x519d7e,'value'),_0x3f7a30['buttonView']['on']('execute',()=>{_0x519d7e['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x3f7a30,_0x569cdc,{'role':'menu'});const _0x4b4f1b=[];for(const _0x552f1d of _0x569cdc)pe(_0x552f1d)&&_0x4b4f1b['push'](this['editor']['commands']['get'](_0x552f1d['model']['commandName']));const _0x12ccc3=_0x3f7a30['buttonView'];return _0x12ccc3['actionView']['unbind']('isEnabled'),_0x12ccc3['arrowView']['unbind']('isEnabled'),_0x12ccc3['actionView']['bind']('isEnabled')['to'](_0x519d7e,'isEnabled'),_0x12ccc3['arrowView']['bind']('isEnabled')['toMany'](_0x4b4f1b,'isEnabled',(..._0x1cc9c2)=>_0x1cc9c2['some'](_0x195023=>_0x195023)),_0x3f7a30['on']('execute',_0x2da11c=>{this['editor']['execute'](_0x2da11c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3f7a30;}['_createMenuBarMenu'](_0x5b6ab9,_0x4a0ff4,_0x19be0a){const _0x4c22f1=new _0x48ab82(_0x5b6ab9),_0x33b915=this['editor']['commands']['get']('trackChanges');_0x4c22f1['buttonView']['set']({'label':_0x19be0a,'icon':Ce});const _0x42b589=new _0x1a74dc(_0x5b6ab9);for(const _0x1d899d of _0x4a0ff4){if('separator'==_0x1d899d['type']){_0x42b589['items']['add'](new _0x5ca9b1(_0x5b6ab9));continue;}const _0x10697f=new _0xadc6cc(_0x5b6ab9,_0x4c22f1),_0x410b12=new _0x18418b(_0x5b6ab9),_0x16bee7=_0x1d899d['model'];_0x410b12['bind'](...Object['keys'](_0x16bee7))['to'](_0x16bee7),_0x410b12['delegate']('execute')['to'](_0x4c22f1),_0x410b12['on']('execute',()=>{this['editor']['execute'](_0x16bee7['commandName']),this['editor']['editing']['view']['focus']();}),_0x10697f['children']['add'](_0x410b12),_0x42b589['items']['add'](_0x10697f);}return _0x4c22f1['bind']('isEnabled')['to'](_0x33b915,'isEnabled'),_0x4c22f1['panelView']['children']['add'](_0x42b589),_0x4c22f1;}['_initializeController'](_0x18cca7){const _0x23b879=this['editor'],_0x48a217=_0x23b879['config'],_0x583719=_0x23b879['plugins']['get']('Annotations'),_0x5d1e05=_0x23b879['plugins']['get']('CommentsRepository'),_0x5e677c=_0x23b879['plugins']['get']('EditorAnnotations'),_0x46d43d=_0x23b879['plugins']['get'](_0x2d0f5a)['me'],_0x4209e2=_0x48a217['get']('trackChanges')['SuggestionThreadView'],_0x22375a=_0x48a217['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x12f7d8,CommentThreadInputView:_0x4a927c}=_0x23b879['plugins']['get']('CommentsUI');let _0x37c623,_0x26a86a,_0x43e293;this['_annotationViews']['has'](_0x18cca7['id'])?(_0x26a86a=this['_annotationViews']['get'](_0x18cca7['id']),_0x37c623=_0x26a86a['mainView']):(_0x37c623=new _0x4209e2(_0x23b879['locale'],_0x18cca7,_0x46d43d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x48a217['get']('comments.editorConfig'),'licenseKey':_0x48a217['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x48a217['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x48a217['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x48a217['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x460d9c(_0x48a217['get']('locale')),'CommentView':_0x48a217['get']('comments')['CommentView'],'CommentsListView':_0x12f7d8,'CommentThreadInputView':_0x4a927c,'SuggestionView':_0x22375a}),_0x37c623['suggestionView']['acceptButton']['on']('execute',()=>{_0x23b879['editing']['view']['focus']();}),_0x37c623['suggestionView']['discardButton']['on']('execute',()=>{_0x23b879['editing']['view']['focus']();}),_0x26a86a=_0x583719['createAnnotationView'](this['editor']['locale'],_0x37c623),_0x26a86a['bind']('isDirty')['to'](_0x37c623,'isDirty'),_0x26a86a['bind']('length')['to'](_0x37c623),_0x26a86a['bind']('type')['to'](_0x37c623,'type',_0x5a7170=>'suggestion-'+_0x5a7170),_0x37c623['on']('escape',()=>{_0x43e293['fire']('escape');}),this['_annotationViews']['set'](_0x18cca7['id'],_0x26a86a));const _0x353af7=_0x5d1e05['createCommentThreadController'](_0x18cca7['commentThread'],_0x37c623),_0x5ad6b1=new ge(_0x23b879,_0x18cca7,_0x37c623,_0x353af7),_0x210bf3=_0x18cca7['getAllAdjacentSuggestions']()['filter'](_0x3210fc=>_0x3210fc['isInContent']);_0x37c623['descriptionParts']=_0x23b879['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x210bf3),this['_suggestionToController']['set'](_0x18cca7,_0x5ad6b1),this['_viewToController']['set'](_0x37c623,_0x5ad6b1),_0x43e293=_0x583719['createAnnotation']({'view':_0x26a86a,'target':()=>{const _0x12423d=[],_0x2027eb=_0x18cca7['getAllAdjacentSuggestions']()['filter'](_0x188038=>_0x188038['isInContent']);for(const _0x81ffbb of _0x2027eb)_0x12423d['push'](..._0x81ffbb['getMarkers']());return _0x55c5eb(_0x23b879['editing'],_0x12423d);},'type':()=>'suggestion-'+_0x5ad6b1['view']['type']}),_0x5d1e05['_bindAnnotationToEditors'](_0x37c623,_0x43e293),_0x583719['add'](_0x43e293),_0x5e677c['registerAnnotation'](_0x43e293);}['_destroyController'](_0x4ab397){const _0x1d25b9=this['editor']['plugins']['get']('CommentsRepository'),_0x12524f=this['editor']['plugins']['get']('Annotations'),_0x566ebd=this['_suggestionToController']['get'](_0x4ab397),_0x3701a0=_0x566ebd['view'],_0x529bdb=_0x12524f['getByInnerView'](_0x3701a0);_0x1d25b9['_unbindEditors'](_0x3701a0),_0x529bdb&&_0x12524f['remove'](_0x529bdb),this['_suggestionToController']['delete'](_0x4ab397),this['_viewToController']['delete'](_0x3701a0),_0x566ebd['destroy']();}['_updateController'](_0x437a3b){if(!_0x437a3b['isInContent']||!this['_suggestionToController']['has'](_0x437a3b))return;const _0x4853c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43d095=this['_suggestionToController']['get'](_0x437a3b),_0x117ccd=_0x437a3b['getAllAdjacentSuggestions']();_0x43d095['view']['descriptionParts']=_0x4853c3['descriptionFactory']['getDescriptions'](_0x117ccd);}['destroy'](){for(const _0x59f5e4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x59f5e4);for(const _0x13751d of this['_annotationViews']['values']())_0x13751d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x3026c8){return'model'in _0x3026c8;}class k extends _0x150ede{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x48b625){this['editor']['plugins']['get'](p)['adapter']=_0x48b625;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x20cbff){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x20cbff);}['getSuggestions']({skipNotAttached:_0x3d60dc=!0x1,toJSON:_0x47b329=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3d60dc,'toJSON':_0x47b329});}['getSuggestion'](_0x6a18eb){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x6a18eb);}}const w=['Pagination'];class T extends _0x150ede{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x133047=this['editor'];if(_0x133047['config']['define']('trackChangesData.editorCreator',_0xca251e=>{const _0x28326a=_0x133047['model']['document']['getRootNames']()['reduce']((_0x729b78,_0x29b8bc)=>(_0x729b78[_0x29b8bc]='',_0x729b78),{});return _0x133047['constructor']['create'](_0x28326a,_0xca251e);}),'function'!=typeof _0x133047['config']['get']('trackChangesData')['editorCreator'])throw new _0x1958fd('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2f8e16){return N(this['editor'],!0x0,_0x2f8e16);}['getDataWithDiscardedSuggestions'](_0x471a6c){return N(this['editor'],!0x1,_0x471a6c);}}class D extends _0x150ede{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xaa73f){function _0x10e84a(_0x242fb0){return _0x242fb0['map'](_0xcd471=>String['fromCharCode'](_0xcd471))['join']('');}super(_0xaa73f),this['result']='end',_0xaa73f[_0x10e84a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10e84a([0x76,0x69,0x65,0x77])][_0x10e84a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10e84a([0x61,0x75,0x74,0x6f]),_0xaa73f[_0x10e84a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x10e84a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10e84a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x10e84a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x10e84a([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 v(_0x51f4df){return void 0x0!==_0x51f4df['getRootsAttributes'];}async function N(_0x3ec912,_0x18ea6a,_0x23c240){const _0x327b59=_0x149f1b(_0x3ec912,w);_0x327b59['plugins']['push'](p,D),_0x327b59['rootsAttributes']=v(_0x3ec912)?_0x3ec912['getRootsAttributes']():void 0x0;const _0x5d1cdf=document['createDocumentFragment'](),_0x2e27d0=_0x3ec912['config']['get']('trackChangesData')['editorCreator'],_0x52549a=await _0x2e27d0(_0x327b59,()=>function(_0x5e2828){const _0x40c66d=document['createElement']('div');return _0x5e2828['appendChild'](_0x40c66d),_0x40c66d;}(_0x5d1cdf));!function(_0x7c20bb,_0x1f8d01){const _0x46ea82=_0x7c20bb['model']['document']['getRootNames']()['reduce']((_0x2c5ffe,_0x2cdfdb)=>(_0x2c5ffe[_0x2cdfdb]=_0x7c20bb['data']['get']({'rootName':_0x2cdfdb}),_0x2c5ffe),{}),_0x154055=_0x7c20bb['plugins']['get']('Users')['users']['map'](_0x29a576=>({'id':_0x29a576['id'],'name':_0x29a576['name']})),_0x129cc3=_0x7c20bb['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3bc7f7=_0x7c20bb['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x400aaa=_0x1f8d01['plugins']['get']('Users'),_0x337c16=_0x1f8d01['plugins']['get']('TrackChangesEditing'),_0x2c54c9=_0x1f8d01['plugins']['get']('CommentsRepository');for(const _0x573119 of _0x2c54c9['getCommentThreads']())_0x573119['remove']();for(const _0x1d9488 of _0x154055)_0x400aaa['getUser'](_0x1d9488['id'])||_0x400aaa['addUser'](_0x1d9488);_0x400aaa['me']||_0x400aaa['useAnonymousUser']();for(const _0x1a6319 of _0x3bc7f7)_0x2c54c9['addCommentThread'](_0x1a6319);for(const _0x5cae1d of _0x129cc3)_0x337c16['addSuggestionData'](_0x5cae1d);_0x1f8d01['data']['set'](_0x46ea82);}(_0x3ec912,_0x52549a),_0x52549a['execute'](_0x18ea6a?'acceptAllSuggestions':'discardAllSuggestions');const _0x325f93=v(_0x52549a)?_0x52549a['getFullData'](_0x23c240):_0x52549a['data']['get'](_0x23c240);return await _0x52549a['destroy'](),_0x325f93;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as Qt,Plugin as _0xa4c963,PendingActions as _0x594e62,icons as _0x2ec321}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x541450,ObservableMixin as _0x1ceaf8,uid as _0x4fc915,insertToPriorityArray as _0x15524d,priorities as _0x19128a,logWarning as _0x5786f7,getEnvKeystrokeText as _0x1433f3,FocusTracker as _0x4044de,KeystrokeHandler as _0x6eab89,Collection as _0x41cb48}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3e5898,View as _0x442707,ViewCollection as _0x2b4982,FocusCycler as ts,ViewModel as _0x2060e5,createDropdown as _0x2321d0,SplitButtonView as _0x5b609a,addListToDropdown as te,MenuBarMenuView as _0x538430,MenuBarMenuListView as _0xc23e53,ListSeparatorView as _0x519292,MenuBarMenuListItemView as _0x1826aa,MenuBarMenuListItemButtonView as _0x52e206}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x39d8d3,hashObject as _0x385015,surroundingMarkersDetector as _0x42c1d1,FOCUS_ANNOTATION_KEYSTROKE as _0x2e1124,AriaDescriptionView as _0x594c0a,setupThreadKeyboardNavigation as _0x850d6,trimHtml as ti,UserView as _0x336d8b,LateFocusButtonView as _0x1e08f8,getDateTimeFormatter as _0x31f0ea,getAllMarkersDomElementsSorted as _0x35ad2b,sanitizeEditorConfig as _0xac384c}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3d639b,LiveRange as _0xac092f,LivePosition as _0x471760}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x38e485,toWidget as _0x588961}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4b5ae7,set as _0x468606,isEqual as _0x3c26f1,unset as _0x27a739,omit as xt}from'lodash-es';import{Delete as _0x38e18c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1473e0,ShiftEnter as _0x37f999}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x25d475,_0x3d66ab){super(_0x25d475),this['_enabledCommands']=_0x3d66ab,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 _0x18c64f of this['editor']['commands']['commands']())_0x18c64f['affectsData']&&!this['_enabledCommands']['has'](_0x18c64f)&&_0x18c64f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x36dfe0 of this['editor']['commands']['commands']())_0x36dfe0['affectsData']&&!this['_enabledCommands']['has'](_0x36dfe0)&&_0x36dfe0['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x45472b,_0x5c6d72){super(_0x45472b),this['_suggestions']=_0x5c6d72,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xf2e6b){const _0x3abe05=this['_suggestions']['get'](_0xf2e6b);if(!_0x3abe05)throw new _0x541450('track-changes-accept-suggestion-not-found',this);const _0x194d5c=_0x3abe05['getRanges']();this['editor']['model']['canEditAt'](_0x194d5c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3abe05);}}class R extends Qt{['_suggestions'];constructor(_0x4f0fa4,_0x4838ee){super(_0x4f0fa4),this['_suggestions']=_0x4838ee,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x22f332){const _0x38562b=this['_suggestions']['get'](_0x22f332);if(!_0x38562b)throw new _0x541450('track-changes-discard-suggestion-not-found',this);const _0x323cc2=_0x38562b['getRanges']();this['editor']['model']['canEditAt'](_0x323cc2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x38562b);}}function ns(_0x33eab2,_0x36afb3){let _0x21dd40='';return _0x21dd40+=_0x33eab2['split']('*')['map']((_0x4b6b97,_0x4dd78e)=>_0x4dd78e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4b6b97)+'</span>':nn(_0x4b6b97))['join'](''),_0x36afb3&&(_0x21dd40+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x36afb3['value']+'\x22\x20title=\x22'+_0x36afb3['title']+'\x22></span>'),_0x21dd40;}function nn(_0x33c911){const _0x1874e3=document['createElement']('span');return _0x1874e3['innerText']=_0x33c911,_0x1874e3['innerHTML'];}function Wt(_0x42425b){return _0x42425b['sort']((_0x45e94c,_0x2748b4)=>'deletion'==_0x45e94c['type']&&'deletion'!=_0x2748b4['type']?-0x1:'deletion'!=_0x45e94c['type']&&'deletion'==_0x2748b4['type']?0x1:0x0);}function to(_0x36d705,_0x4f9ba5){let _0xf7d8d7,_0xb89506=0x0;const _0x10ed5f=[],_0x1557ea=_0x4f9ba5['schema'];for(;_0xb89506<_0x36d705['length'];){const _0x1ebd93=_0x36d705[_0xb89506],_0x76c27c=_0x36d705[_0xb89506+0x1];_0xf7d8d7||(_0xf7d8d7=_0x4f9ba5['createPositionBefore'](_0x1ebd93)),on(_0x4f9ba5,_0x1ebd93,_0x76c27c)||(_0x10ed5f['push'](_0x4f9ba5['createRange'](_0xf7d8d7,_0x1557ea['isObject'](_0x1ebd93)?_0x4f9ba5['createPositionAfter'](_0x1ebd93):_0x4f9ba5['createPositionAt'](_0x1ebd93,'end'))),_0xf7d8d7=null),_0xb89506++;}return _0x10ed5f;}function on(_0x2513bc,_0x1862f,_0x12f218){if(!_0x12f218)return!0x1;const _0x51a825=_0x2513bc['createPositionAfter'](_0x1862f),_0x158149=_0x2513bc['createPositionBefore'](_0x12f218);return _0x51a825['isTouching'](_0x158149);}function Xt(_0x47e00f,_0x453a49,_0x147e67){for(;_0x147e67['length'];){const _0x32ad73=_0x147e67['splice'](0x0,0x64);_0x47e00f['change'](()=>{for(const _0x3b57fb of _0x32ad73)_0x3b57fb['isInContent']&&_0x453a49['execute'](_0x3b57fb['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x55f2e0,_0x1796c1,_0x567b1e){super(_0x55f2e0),this['_command']=_0x1796c1,this['_suggestions']=_0x567b1e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xb8e764=Array['from'](this['_suggestions']['values']())['some'](_0x2f31ad=>_0x2f31ad['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xb8e764;}['execute'](){const _0x1f0f60=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x430386 of _0x1f0f60){const _0x2b408e=_0x430386['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2b408e))return;}Xt(this['editor']['model'],this['_command'],_0x1f0f60);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x24c63d,_0x510d38,_0x193fb5){super(_0x24c63d),this['_command']=_0x510d38,this['_suggestions']=_0x193fb5,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x53e5dd=this['editor']['model']['document']['selection'],_0x2ae259=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x249618,_0x2eb9b1){const _0xf50817=Array['from'](_0x249618['getRanges']()),_0x4eff23=new Set();for(const _0x33f573 of _0x2eb9b1)if(_0x33f573['isInContent']){for(const _0x347db8 of _0xf50817)for(const _0x3229ac of _0x33f573['getRanges']())(_0x347db8['isIntersecting'](_0x3229ac)||_0x249618['isCollapsed']&&!_0x33f573['isMultiRange']&&_0x33f573['next']&&_0x3229ac['end']['isTouching'](_0x347db8['start']))&&_0x4eff23['add'](_0x33f573);}return _0x4eff23;}(_0x53e5dd,_0x2ae259),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x528e14=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x24a7d7 of _0x528e14){const _0x55a997=_0x24a7d7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x55a997))return;}Xt(this['editor']['model'],this['_command'],_0x528e14);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x1ceaf8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x442226,_0x54f3d4){super(),this['id']=_0x54f3d4['id'],this['type']=_0x54f3d4['type'],this['subType']=_0x54f3d4['subType']||null,this['author']=_0x54f3d4['author'],this['creator']=_0x54f3d4['creator']||_0x54f3d4['author'],this['isExternal']=Boolean(_0x54f3d4['attributes']&&_0x54f3d4['attributes']['@external']),this['data']=null,this['_model']=_0x442226,this['_onAccept']=_0x54f3d4['onAccept'],this['_onDiscard']=_0x54f3d4['onDiscard'],this['_onAttributesChange']=_0x54f3d4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x54f3d4['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 _0x2e8d4e=this;for(;_0x2e8d4e['previous'];)_0x2e8d4e=_0x2e8d4e['previous'];return _0x2e8d4e;}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'](_0x420465){this['_markerNames']['add'](_0x420465);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x9570f4=>this['_model']['markers']['get'](_0x9570f4))['filter'](_0x18a95f=>_0x18a95f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5e5765=>{for(const _0xe544a6 of this['getMarkers']())_0x5e5765['removeMarker'](_0xe544a6);}),this['_markerNames']['clear']();}['removeMarker'](_0x8e808d){this['_model']['change'](_0x382f51=>{_0x382f51['removeMarker'](_0x8e808d);}),this['_markerNames']['delete'](_0x8e808d);}['addRange'](_0x1b97ec){const _0x4d08d8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4d08d8),this['_model']['change'](_0x31bcb7=>{_0x31bcb7['addMarker'](_0x4d08d8,{'range':_0x1b97ec,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x203393){for(const _0x2e40d2 of this['getRanges']())if(_0x2e40d2['isIntersecting'](_0x203393))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x489000=>_0x489000['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x28a5cb,_0x2bec9c)=>[..._0x28a5cb,..._0x2bec9c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x44c7bf=this['getRanges']();if(0x1!=_0x44c7bf['length'])return null;const _0x380c29=_0x44c7bf[0x0],_0x5c28e8=_0x380c29['start']['nodeAfter'],_0x2ce48e=_0x380c29['end']['nodeBefore'];return _0x5c28e8 instanceof _0x3d639b?_0x5c28e8!=_0x2ce48e?null:_0x5c28e8: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 _0x315a85=[];let _0x3a4700=this['head'];for(;_0x3a4700;)_0x315a85['push'](_0x3a4700),_0x3a4700=_0x3a4700['next'];return _0x315a85;}['setAttribute'](_0x58db2a,_0x57d90d){const _0x588797=_0x4b5ae7(this['attributes']);_0x468606(_0x588797,_0x58db2a,_0x57d90d),_0x3c26f1(_0x588797,this['attributes'])||(this['attributes']=_0x588797,this['_onAttributesChange'](_0x588797));}['removeAttribute'](_0x49aa58){const _0x17bf53=_0x4b5ae7(this['attributes']);_0x27a739(_0x17bf53,_0x49aa58),_0x3c26f1(_0x17bf53,this['attributes'])||(this['attributes']=_0x17bf53,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 _0x4fc915()['substr'](0x1,0x5);}}function o(_0x3fe4ab,_0x336659,_0xde44ed){const _0x5f2520=_0x3fe4ab['t'],t=_0x3fe4ab['t'];switch(_0x336659){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'*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',_0xde44ed);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xde44ed);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xde44ed);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xde44ed);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xde44ed);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',_0xde44ed);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xde44ed);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0xde44ed);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xde44ed);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xde44ed);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xde44ed);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xde44ed);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xde44ed);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xde44ed);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xde44ed);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xde44ed);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xde44ed);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xde44ed);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xde44ed);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xde44ed);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xde44ed);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xde44ed);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xde44ed);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xde44ed);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'},_0xde44ed);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xde44ed);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xde44ed);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xde44ed);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xde44ed);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xde44ed);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'},_0xde44ed);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xde44ed);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xde44ed);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xde44ed);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xde44ed);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'},_0xde44ed);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xde44ed);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'},_0xde44ed);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'},_0xde44ed);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xde44ed);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'},_0xde44ed);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xde44ed);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'},_0xde44ed);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xde44ed);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xde44ed);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'},_0xde44ed);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xde44ed);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 _0x5f2520({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xde44ed);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5f2520({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xde44ed);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xde44ed);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'},_0xde44ed);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'},_0xde44ed);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'},_0xde44ed);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x336659;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x127a8f,_0x35efcc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x127a8f,this['_locale']=_0x35efcc;}['getDescriptions'](_0x302248){const _0x331aaf=[],_0x1b5c99=new Set(),_0x572c9a=new Set();for(let _0x3a9fad=0x0;_0x3a9fad<_0x302248['length'];_0x3a9fad++){const _0x5c7fe5=_0x302248[_0x3a9fad];if(!_0x5c7fe5['isInContent'])continue;const _0x53bdd1=this['_handleCustomCallbackDescription'](_0x5c7fe5);if(_0x53bdd1){if(null!=_0x5c7fe5['subType']){if(_0x1b5c99['has'](_0x5c7fe5['subType']))continue;_0x1b5c99['add'](_0x5c7fe5['subType']);}_0x331aaf['push'](_0x53bdd1);}else{if('attribute'!=_0x5c7fe5['type'])'insertion'!=_0x5c7fe5['type']&&'deletion'!=_0x5c7fe5['type']||this['_handleInsertRemoveSuggestionDescription'](_0x331aaf,_0x5c7fe5,_0x302248[_0x3a9fad+0x1]);else{const _0x543125=_0x5c7fe5['data']['key'];if(_0x572c9a['has'](_0x543125))continue;_0x572c9a['add'](_0x5c7fe5['data']['key']),_0x543125==m?this['_handleRenameSuggestionDescription'](_0x331aaf,_0x5c7fe5):this['_handleAttributeSuggestionDescription'](_0x331aaf,_0x5c7fe5);}}}return this['_resolveDescriptionItems'](_0x331aaf);}['registerDescriptionCallback'](_0x59a5f7){this['_customCallbacks']['push'](_0x59a5f7);}['registerElementLabel'](_0x7567ad,_0x47ccce,_0x4215be=_0x19128a['normal']){'function'==typeof _0x7567ad?_0x15524d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x7567ad,'label':_0x47ccce,'priority':_0x4215be}):this['_itemLabels']['set'](_0x7567ad,_0x47ccce);}['registerAttributeLabel'](_0x204271,_0x128d9b){this['_attributeLabels']['set'](_0x204271,_0x128d9b);}['getItemLabel'](_0x577374,_0x4d9588=0x1){let _0x11e2a0;for(const _0x38f582 of this['_itemLabelsCallbacks'])if(_0x38f582['matchingCallback'](_0x577374)){_0x11e2a0=_0x38f582['label'];break;}return _0x11e2a0||(_0x11e2a0=this['_itemLabels']['get'](_0x577374['name'])),_0x11e2a0?_0x11e2a0(_0x4d9588):0x1!==_0x4d9588?_0x4d9588+'\x20'+_0x577374['name']+'s':''+_0x577374['name'];}['_addDescriptionItems'](_0xcf321d,_0x3c84c1){const _0x4f6b1c=_0x3c84c1['getFirstRange']()['getWalker'](),_0x1a5b94='insertion'==_0x3c84c1['type']?'add':'remove';for(const _0x31de44 of _0x4f6b1c){const _0x5cafcc=_0x31de44['item'],_0x5e4b24=_0xcf321d[_0xcf321d['length']-0x1];if(_0x5cafcc['is']('$textProxy'))_0x5e4b24&&_0x5e4b24['type']['indexOf']('Container')>-0x1&&_0xcf321d['pop'](),_0x5e4b24&&'text'==_0x5e4b24['type']?_0x5e4b24[_0x1a5b94]+=_0x5cafcc['data']:_0xcf321d['push']({'type':'text','add':'add'==_0x1a5b94?_0x5cafcc['data']:'','remove':'remove'==_0x1a5b94?_0x5cafcc['data']:''});else{if(this['_schema']['isObject'](_0x5cafcc)){const _0x565dde=_0x5cafcc;if(_0x5e4b24&&_0x5e4b24['type']['indexOf']('Container')>-0x1&&_0xcf321d['pop'](),'elementEnd'==_0x31de44['type'])continue;_0x5e4b24&&_0x5e4b24['type']==_0x1a5b94+'Object'&&_0x5e4b24['element']['name']==_0x565dde['name']?_0x5e4b24['quantity']++:_0xcf321d['push']({'type':_0x1a5b94+'Object','element':_0x565dde,'quantity':0x1}),_0x4f6b1c['skip'](_0x585f19=>!('elementEnd'==_0x585f19['type']&&_0x585f19['item']==_0x5cafcc));}else{if(this['_schema']['checkChild'](_0x5cafcc,'$text')||_0x5cafcc['is']('element','softBreak')){const _0x257c8f=_0x5cafcc;if('add'==_0x1a5b94&&'elementStart'==_0x31de44['type']||'remove'==_0x1a5b94&&'elementEnd'==_0x31de44['type'])continue;if(_0x5e4b24&&-0x1==_0x5e4b24['type']['indexOf']('Container')){'text'==_0x5e4b24['type']&&(_0x5e4b24[_0x1a5b94]+='\x0a');continue;}let _0x3a39c6;if(_0x3a39c6='add'==_0x1a5b94?_0x257c8f['nextSibling']&&!this['_schema']['isObject'](_0x257c8f['nextSibling'])?_0x257c8f['nextSibling']:null:_0x257c8f['previousSibling']&&!this['_schema']['isObject'](_0x257c8f['previousSibling'])?_0x257c8f['previousSibling']:null,_0x257c8f['isEmpty']||_0x3a39c6&&_0x3a39c6['isEmpty']){const _0x969cfe=_0x3a39c6&&_0x3a39c6['isEmpty']?_0x3a39c6:_0x257c8f;_0x5e4b24&&_0x5e4b24['type']==_0x1a5b94+'EmptyContainer'&&_0x5e4b24['element']['name']==_0x969cfe['name']?_0x5e4b24['quantity']++:_0xcf321d['push']({'type':_0x1a5b94+'EmptyContainer','element':_0x969cfe,'quantity':0x1});}else _0xcf321d['push']({'type':_0x1a5b94+'Container','element':_0x257c8f});}}}}}['_resolveDescriptionItems'](_0x52300a){const _0x26a710=this['_locale'],_0x23837e=[],_0x3fd4e9=[],_0x21f454=[];for(const _0x17de0d of _0x52300a)switch(_0x17de0d['type']){case'text':if(_0x17de0d['add']=_0x17de0d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17de0d['remove']=_0x17de0d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17de0d['add']&&''!=_0x17de0d['remove']){_0x23837e['push']({'type':'replace','content':o(_0x26a710,'REPLACE_TEXT',['\x22'+_0x17de0d['remove']+'\x22','\x22'+_0x17de0d['add']+'\x22'])});continue;}if(null!=_0x17de0d['add']['match'](/^ +$/)){_0x23837e['push']({'type':'insertion','content':o(_0x26a710,'*Insert:*\x20%0',o(_0x26a710,'ELEMENT_SPACE',_0x17de0d['add']['length']))});continue;}if(null!=_0x17de0d['remove']['match'](/^ +$/)){_0x23837e['push']({'type':'deletion','content':o(_0x26a710,'*Remove:*\x20%0',o(_0x26a710,'ELEMENT_SPACE',_0x17de0d['remove']['length']))});continue;}if(''!=_0x17de0d['add']){_0x23837e['push']({'type':'insertion','content':o(_0x26a710,'*Insert:*\x20%0','\x22'+_0x17de0d['add']+'\x22')});continue;}_0x23837e['push']({'type':'deletion','content':o(_0x26a710,'*Remove:*\x20%0','\x22'+_0x17de0d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23837e['push']({'type':'insertion','content':o(_0x26a710,'*Insert:*\x20%0',this['getItemLabel'](_0x17de0d['element'],_0x17de0d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23837e['push']({'type':'deletion','content':o(_0x26a710,'*Remove:*\x20%0',this['getItemLabel'](_0x17de0d['element'],_0x17de0d['quantity']))});continue;case'addContainer':_0x23837e['push']({'type':'insertion','content':o(_0x26a710,'*Split:*\x20%0',this['getItemLabel'](_0x17de0d['element'],_0x17de0d['quantity']))});continue;case'removeContainer':_0x23837e['push']({'type':'deletion','content':o(_0x26a710,'*Merge:*\x20%0',this['getItemLabel'](_0x17de0d['element'],_0x17de0d['quantity']))});continue;case'addFormat':_0x3fd4e9['push'](_0x17de0d['key']);continue;case'removeFormat':_0x21f454['push'](_0x17de0d['key']);continue;default:_0x23837e['push'](_0x17de0d);}if(_0x3fd4e9['length']){const _0x194bd4=_0x3fd4e9['map'](_0x4629ce=>this['_attributeLabels']['has'](_0x4629ce)?this['_attributeLabels']['get'](_0x4629ce):_0x4629ce)['join'](',\x20');_0x23837e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x194bd4)});}if(_0x21f454['length']){const _0x5377da=_0x21f454['map'](_0x1fb47b=>this['_attributeLabels']['has'](_0x1fb47b)?this['_attributeLabels']['get'](_0x1fb47b):_0x1fb47b)['join'](',\x20');_0x23837e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5377da)});}return _0x23837e;}['_handleCustomCallbackDescription'](_0x236365){for(const _0x1bf311 of this['_customCallbacks']){const _0x5d5953=_0x1bf311(_0x236365);if(_0x5d5953&&'type'in _0x5d5953)return _0x5d5953;}}['_handleAttributeSuggestionDescription'](_0x242089,_0x22da34){const _0x19bdd2=_0x22da34['data'],_0xea820a=void 0x0===_0x19bdd2['newValue']?'removeFormat':'addFormat';_0x242089['push']({'type':_0xea820a,'key':_0x19bdd2['key']});}['_handleRenameSuggestionDescription'](_0x340d39,_0x294790){_0x340d39['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x294790['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2c31a8,_0x4f6950,_0x279261){if(this['_addDescriptionItems'](_0x2c31a8,_0x4f6950),_0x279261&&_0x279261['getFirstRange']()&&!_0x4f6950['getFirstRange']()['end']['isEqual'](_0x279261['getFirstRange']()['start'])){const _0x2bd627=_0x2c31a8[_0x2c31a8['length']-0x1],_0x40a4d0='insertion'==_0x4f6950['type']?'add':'remove';_0x2bd627&&'text'==_0x2bd627['type']&&(_0x2bd627[_0x40a4d0]+='\x0a');}}}class U extends _0xa4c963{['afterInit'](){const _0x147c6b=this['editor'],_0x317b79=_0x147c6b['plugins']['get']('TrackChangesEditing');_0x147c6b['commands']['get']('showAIAssistant')&&_0x317b79['enableCommand']('showAIAssistant');}}class V extends _0xa4c963{['afterInit'](){const _0xc852e7=this['editor'],_0x157023=_0xc852e7['locale'];if(!_0xc852e7['plugins']['has']('AlignmentEditing'))return;const _0x10eb7c=_0xc852e7['plugins']['get']('TrackChangesEditing');_0x10eb7c['enableDefaultAttributesIntegration']('alignment'),_0x10eb7c['registerBlockAttribute']('alignment'),_0x10eb7c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x157023,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3be1e8=this['editor'],_0x1dc45a=_0x3be1e8['locale'];_0x3be1e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x184ce4=>{if('formatBlock'!=_0x184ce4['type'])return;const {data:_0x43fd42}=_0x184ce4;if(_0x43fd42&&'alignment'==_0x43fd42['commandName']){const _0x4f9045=_0x43fd42['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1dc45a,'*Format:*\x20%0',function(_0x13a076){switch(_0x13a076){case'left':return o(_0x1dc45a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1dc45a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1dc45a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1dc45a,'FORMAT_JUSTIFY_TEXT');}}(_0x4f9045))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xa4c963{['afterInit'](){const _0x29ad4d=this['editor'],_0x4adc10=_0x29ad4d['plugins']['get']('TrackChangesEditing'),_0x9ca6=_0x29ad4d['locale'];for(const _0x4a7c34 of Zt){if(!_0x29ad4d['plugins']['has'](_0x4a7c34))continue;const _0x2ddb2=_0x4a7c34['slice'](0x0,-0x7)['toLowerCase'](),_0x472db4='FORMAT_'+_0x2ddb2['toUpperCase']();_0x4adc10['enableDefaultAttributesIntegration'](_0x2ddb2),_0x4adc10['registerInlineAttribute'](_0x2ddb2),_0x4adc10['descriptionFactory']['registerAttributeLabel'](_0x2ddb2,o(_0x9ca6,_0x472db4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x206227=this['editor'],_0x54dccd=_0x206227['locale'],_0xbeb291=_0x206227['plugins']['get']('TrackChangesEditing');function _0x115b1a(_0x2c2ddf,_0x2cd65d){_0xbeb291['descriptionFactory']['registerDescriptionCallback'](_0x46c67b=>{if('formatInline'!=_0x46c67b['type'])return;const {data:_0x324f87}=_0x46c67b;return _0x324f87&&_0x324f87['commandName']===_0x2c2ddf?_0x324f87['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54dccd,'*Format:*\x20%0',_0x2cd65d)}:{'type':'format','content':o(_0x54dccd,'*Remove\x20format:*\x20%0',_0x2cd65d)}:void 0x0;});}_0x115b1a('bold',o(_0x54dccd,'FORMAT_BOLD')),_0x115b1a('italic',o(_0x54dccd,'FORMAT_ITALIC')),_0x115b1a('underline',o(_0x54dccd,'FORMAT_UNDERLINE')),_0x115b1a('code',o(_0x54dccd,'FORMAT_CODE')),_0x115b1a('strikethrough',o(_0x54dccd,'FORMAT_STRIKETHROUGH')),_0x115b1a('subscript',o(_0x54dccd,'FORMAT_SUBSCRIPT')),_0x115b1a('superscript',o(_0x54dccd,'FORMAT_SUPERSCRIPT'));}}class F extends _0xa4c963{['afterInit'](){const _0x2b137f=this['editor'],_0x45f5e0=_0x2b137f['locale'];if(!_0x2b137f['plugins']['has']('BlockQuoteEditing'))return;const _0xd2f28f=_0x2b137f['plugins']['get']('TrackChangesEditing'),_0x120259=this['editor']['commands']['get']('blockQuote');_0xd2f28f['enableCommand']('blockQuote',(_0x3ee351,_0x2e4447={})=>{const _0x42c955=this['editor']['model']['document']['selection'],_0xda86b1=_0x2e4447&&void 0x0!==_0x2e4447['forceValue']?_0x2e4447['forceValue']:!_0x120259['value'];let _0xa67ff9=[];if(_0xda86b1){const _0x484970=Array['from'](_0x42c955['getSelectedBlocks']())['filter'](_0x1676f7=>oo(_0x1676f7)||function(_0x5f1c3a,_0x2e9735){const _0x2434b9=_0x2e9735['checkChild'](_0x5f1c3a['parent'],'blockQuote'),_0x5a9d5f=_0x2e9735['checkChild'](['$root','blockQuote'],_0x5f1c3a);return _0x2434b9&&_0x5a9d5f;}(_0x1676f7,this['editor']['model']['schema']));_0xa67ff9=to(_0x484970,_0x2b137f['model']);}else{const _0x11fd97=Array['from'](_0x42c955['getSelectedBlocks']())['filter'](_0x3cdf87=>oo(_0x3cdf87));_0xa67ff9=to(_0x11fd97,_0x2b137f['model']);}_0x2b137f['model']['change'](()=>{for(const _0x242238 of _0xa67ff9)_0xd2f28f['markBlockFormat'](_0x242238,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xda86b1}]});});}),_0xd2f28f['descriptionFactory']['registerDescriptionCallback'](_0x142737=>{const {data:_0xbd390a}=_0x142737;if(_0xbd390a&&'blockQuote'==_0xbd390a['commandName']){const _0x328862=o(_0x45f5e0,'ELEMENT_BLOCK_QUOTE');return _0xbd390a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x45f5e0,'*Set\x20format:*\x20%0',_0x328862)}:{'type':'format','content':o(_0x45f5e0,'*Remove\x20format:*\x20%0',_0x328862)};}});}}function oo(_0x48651c){return'blockQuote'==_0x48651c['parent']['name'];}class L extends _0xa4c963{['afterInit'](){const _0x30f939=this['editor'],_0x408144=_0x30f939['locale'],_0x2965f4=_0x30f939['plugins']['get']('TrackChangesEditing');_0x30f939['plugins']['has']('BookmarkEditing')&&(_0x2965f4['enableCommand']('insertBookmark'),_0x2965f4['enableDefaultAttributesIntegration']('updateBookmark'),_0x2965f4['registerBlockAttribute']('bookmarkId'),_0x2965f4['descriptionFactory']['registerDescriptionCallback'](_0x55230c=>{if('insertion'!=_0x55230c['type']&&'deletion'!=_0x55230c['type']&&'attribute'!=_0x55230c['type'])return;const _0x3716b8=_0x55230c['getContainedElement']();if(null==_0x3716b8)return;if(!_0x3716b8['is']('element','bookmark'))return;const _0x56b5eb=_0x3716b8['getAttribute']('bookmarkId');if('insertion'==_0x55230c['type'])return{'type':'insertion','content':o(_0x408144,'*Insert:*\x20%0','\x22'+_0x56b5eb+'\x22\x20'+o(_0x408144,'ELEMENT_BOOKMARK'))};if('deletion'==_0x55230c['type'])return{'type':'deletion','content':o(_0x408144,'*Remove:*\x20%0','\x22'+_0x56b5eb+'\x22\x20'+o(_0x408144,'ELEMENT_BOOKMARK'))};const {data:_0xb2743}=_0x55230c;if(!_0xb2743||'bookmarkId'!=_0xb2743['key'])return;return{'type':'format','content':o(_0x408144,'*Set\x20bookmark:*\x20%0','\x22'+_0xb2743['newValue']+'\x22')};}));}}class J extends _0xa4c963{['afterInit'](){const _0x5c4006=this['editor'];_0x5c4006['plugins']['has']('CaseChange')&&(_0x5c4006['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5c4006['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5c4006['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xa4c963{['afterInit'](){const _0x1e8ce6=this['editor'];_0x1e8ce6['commands']['get']('ckbox')&&_0x1e8ce6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0xa4c963{['afterInit'](){const _0x4a3748=this['editor'];if(!_0x4a3748['plugins']['has']('CodeBlock'))return;const _0x4d59d8=_0x4a3748['plugins']['get']('TrackChangesEditing'),_0x586cea=_0x4a3748['locale'],_0x2210fc=_0x4a3748['config']['get']('codeBlock')['languages'],_0x4cc2b4=_0x4a3748['commands']['get']('codeBlock');_0x4d59d8['enableCommand']('indentCodeBlock'),_0x4d59d8['enableCommand']('outdentCodeBlock'),_0x4d59d8['enableCommand']('codeBlock',(_0x54b504,_0x48c131={})=>{const _0x587426=_0x4a3748['model'],_0x3c4ed5=_0x4a3748['model']['document']['selection'],_0x426011=_0x48c131&&void 0x0!==_0x48c131['forceValue']?_0x48c131['forceValue']:!_0x4cc2b4['value'];let _0x1917c3;_0x48c131['language']||(_0x48c131['language']=_0x2210fc[0x0]['language']),_0x1917c3=_0x426011?Array['from'](_0x3c4ed5['getSelectedBlocks']())['filter'](_0x3d85e2=>eo(_0x3d85e2)||function(_0x4b5697,_0x3d106b){if(_0x4b5697['is']('rootElement')||_0x3d106b['isLimit'](_0x4b5697))return!0x1;return _0x3d106b['checkChild'](_0x4b5697['parent'],'codeBlock');}(_0x3d85e2,_0x587426['schema'])):Array['from'](_0x3c4ed5['getSelectedBlocks']())['filter'](_0x35d6e3=>eo(_0x35d6e3));const _0x280bcc=to(_0x1917c3,_0x587426);_0x587426['change'](()=>{for(const _0x4087a2 of _0x280bcc)_0x4d59d8['markBlockFormat'](_0x4087a2,{'commandName':'codeBlock','commandParams':[{..._0x48c131,'forceValue':_0x426011}],'formatGroupId':'blockName'});});}),(_0x4d59d8['descriptionFactory']['registerElementLabel']('codeBlock',_0x443951=>o(_0x586cea,'ELEMENT_CODE_BLOCK',_0x443951)),_0x4d59d8['descriptionFactory']['registerDescriptionCallback'](_0x176399=>{if('formatBlock'!=_0x176399['type'])return;const _0x3b2acb=_0x586cea['t'],{data:_0x294f69}=_0x176399;if(!_0x294f69||'codeBlock'!=_0x294f69['commandName'])return;const _0x319e57=_0x294f69['commandParams'][0x0]['language'],_0x2d95c3=_0x3b2acb(_0x2210fc['find'](_0x525658=>_0x525658['language']===_0x319e57)['label'])['toLowerCase']();return _0x294f69['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x586cea,'*Set\x20format:*\x20%0',o(_0x586cea,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2d95c3+')')}:{'type':'format','content':o(_0x586cea,'*Remove\x20format:*\x20%0',o(_0x586cea,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4e92d5){return'codeBlock'==_0x4e92d5['name'];}class z extends _0xa4c963{['afterInit'](){const _0x32de7e=this['editor'];if(!_0x32de7e['plugins']['has']('CommentsEditing'))return;_0x32de7e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2c1d47,_0x4aace0,_0xed1c99){const _0x2ffa35=[];for(const _0x287601 of _0x4aace0['getItems']())_0x287601['hasAttribute'](_0x2c1d47)&&_0x2ffa35['push'](_0xed1c99['createRangeOn'](_0x287601));return _0x2ffa35;}function Ne(_0x2edfeb,_0x22cce0,{showActiveMarker:_0x603115=!0x0}={}){const _0x25611d=_0x2edfeb['plugins']['get']('TrackChangesEditing');return(_0xa02b6,_0x3fb0ad,_0x10509c)=>{if(!_0x10509c['consumable']['test'](_0x3fb0ad['markerRange'],_0xa02b6['name']))return;const _0x21e40b=_0x3fb0ad['markerRange']['getWalker'](),_0x3b340d=_0x3fb0ad['markerRange']['start'],_0x343ef7=_0x2edfeb['model']['schema'];let _0x4d34af=null,_0x1b79cb=null,_0x35fd7a=!0x1,_0x4fe767=!0x1;for(const _0x5263ae of _0x21e40b){const _0x4656d8=_0x5263ae['item'];_0x35fd7a=_0x35fd7a||_0x343ef7['isContent'](_0x4656d8);const _0x2d1b81=_0x10509c['mapper']['toViewElement'](_0x4656d8);if(_0x2d1b81&&_0x2d1b81['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5263ae['type']&&(_0x343ef7['isBlock'](_0x4656d8)&&!_0x343ef7['isLimit'](_0x4656d8)&&(_0x4656d8['nextSibling']||_0x3b340d['isAtEnd']?_0x4d34af&&_0x4d34af['parent']==_0x4656d8||(_0x4d34af=_0x4656d8,_0x13a1e7(_0x5263ae['previousPosition']),_0x4fe767=!0x0):_0x1b79cb=_0x1b79cb||_0x5263ae['previousPosition']));}function _0x13a1e7(_0x10ad25){const {authorId:_0x2607ee}=_0x25611d['_splitMarkerName'](_0x3fb0ad['markerName']),_0x12fd0a=_0x10509c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x22cce0,'data-author-id':_0x2607ee}),_0x2a8ebb=_0x10509c['mapper']['toViewPosition'](_0x10ad25);_0x603115&&_0x25611d['activeMarkers']['includes'](_0x3fb0ad['markerName'])&&_0x10509c['writer']['addClass']('ck-suggestion-marker--active',_0x12fd0a),_0x10509c['writer']['insert'](_0x2a8ebb,_0x12fd0a),_0x10509c['mapper']['bindElementToMarker'](_0x12fd0a,_0x3fb0ad['markerName']);}_0x35fd7a||_0x4fe767||!_0x1b79cb||_0x13a1e7(_0x1b79cb);};}class K extends _0xa4c963{static get['requires'](){return[_0x38e18c];}['init'](){const _0x536d06=this['editor'],_0x3c6a15=_0x536d06['plugins']['get']('TrackChangesEditing');_0x3c6a15['enableCommand']('delete');const _0xcbf6cc=_0x536d06['commands']['get']('deleteForward');_0x3c6a15['enableCommand']('deleteForward',(_0x210ced,_0x41f20a={})=>{const _0x5472f7=_0x536d06['model']['createSelection'](_0x536d06['model']['document']['selection']);_0x5472f7['isCollapsed']&&_0x536d06['model']['modifySelection'](_0x5472f7,{'direction':'forward','unit':_0x41f20a['unit']});const _0x301d15=_0x5472f7['getFirstRange'](),_0x5cdf11=_0xac092f['fromRange'](_0x301d15);let _0x3b0c75;_0x210ced(_0x41f20a),_0x3b0c75='$graveyard'==_0x5cdf11['root']['rootName']?_0x536d06['model']['createRange'](_0x301d15['start']):_0x536d06['model']['createRange'](_0x5cdf11['start'],_0x5cdf11['end']),_0x5cdf11['detach'](),_0x536d06['model']['enqueueChange'](_0xcbf6cc['buffer']['batch'],_0x4745c2=>{_0xcbf6cc['buffer']['lock'](),_0x4745c2['setSelection'](_0x4745c2['createRange'](_0x3b0c75['end'])),_0xcbf6cc['buffer']['unlock']();});}),_0x536d06['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x536d06,'merge'),{'priority':'high'}),_0x536d06['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x511965,_0x1a168d,_0x3a149f)=>{_0x3a149f['options']['showSuggestionHighlights']&&Ne(_0x536d06,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x511965,_0x1a168d,_0x3a149f);},{'priority':'high'}),_0x536d06['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4b225f,_0x2ca980,_0x1410d2)=>{const _0x21633b=_0x1410d2['mapper']['markerNameToElements'](_0x2ca980['markerName']);if(_0x21633b){for(const _0x556157 of _0x21633b)_0x556157['is']('uiElement')&&(_0x1410d2['mapper']['unbindElementFromMarkerName'](_0x556157,_0x2ca980['markerName']),_0x1410d2['writer']['remove'](_0x556157));}},{'priority':'high'});}}class W extends _0xa4c963{['afterInit'](){const _0xc88b66=this['editor'];if(!_0xc88b66['plugins']['has']('ListEditing'))return;const _0x234547=_0xc88b66['locale'],_0x133a9d=_0xc88b66['plugins']['get']('TrackChangesEditing'),_0x461935=_0xc88b66['plugins']['has']('TodoListEditing'),_0xcd88a2=!!_0xc88b66['config']['get']('list.multiBlock');function _0x2a5c54(_0x13524a){return{'type':'format','content':''+o(_0x234547,'*Set\x20format:*\x20%0',_0x13524a)};}function _0x18ec5d(_0x46fe63){return{'type':'format','content':''+o(_0x234547,'*Remove\x20format:*\x20%0',_0x46fe63)};}_0x133a9d['enableDefaultAttributesIntegration']('numberedList'),_0x133a9d['enableDefaultAttributesIntegration']('bulletedList'),_0x133a9d['enableDefaultAttributesIntegration']('customNumberedList'),_0x133a9d['enableDefaultAttributesIntegration']('customBulletedList'),_0x133a9d['enableDefaultAttributesIntegration']('indentList'),_0x133a9d['enableDefaultAttributesIntegration']('outdentList'),_0x133a9d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x133a9d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x133a9d['registerBlockAttribute']('listItemId'),_0x133a9d['registerBlockAttribute']('listType'),_0x133a9d['registerBlockAttribute']('listIndent'),_0xcd88a2&&(_0x133a9d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x133a9d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x461935&&(_0x133a9d['enableDefaultAttributesIntegration']('todoList'),_0x133a9d['enableDefaultAttributesIntegration']('checkTodoList'),_0x133a9d['registerBlockAttribute']('todoListChecked'),_0x133a9d['descriptionFactory']['registerDescriptionCallback'](_0x56e0ae=>{const {data:_0x26a4a3}=_0x56e0ae;if(_0x26a4a3&&'todoListChecked'==_0x26a4a3['key'])return{'type':'format','content':_0x26a4a3['newValue']?o(_0x234547,'*Check\x20item*'):o(_0x234547,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4e7218=>{if(_0x4e7218['batch']['isUndo'])return!0x1;let _0x1fbcce=!0x1;const _0x275eb1=_0x133a9d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x451909=>'todoListChecked'===_0x133a9d['_getAttributeKey'](_0x451909));for(const _0x4684cf of _0x275eb1){'todo'!=_0x4684cf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x133a9d['_findSuggestions'](_0x4684cf['getFirstRange'](),'attribute')['find'](_0x1bd877=>'listType'===_0x133a9d['_getAttributeKey'](_0x1bd877['suggestion']))||(_0x4e7218['removeMarker'](_0x4684cf['getFirstMarker']()),_0x1fbcce=!0x0));}return _0x1fbcce;})),_0x133a9d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x234547,'FORMAT_INDENT'));const _0x504fb4={'type':'format','content':''};_0x133a9d['descriptionFactory']['registerDescriptionCallback'](_0x3df518=>{const {data:_0x15476e}=_0x3df518;if(!_0x15476e||'listType'!=_0x15476e['key'])return;let _0x21699e=_0x3df518['head'];for(;_0x21699e;){if(_0x21699e['data']&&(('listStyle'==_0x21699e['data']['key']||'listMarkerStyle'==_0x21699e['data']['key'])&&(_0x21699e['data']['newValue']&&'default'!=_0x21699e['data']['newValue']||'default'!=_0x21699e['data']['oldValue']&&!_0x15476e['newValue'])||!_0xcd88a2&&_0x21699e['data']['key']==m))return _0x504fb4;_0x21699e=_0x21699e['next'];}if(null==_0x15476e['newValue'])switch(_0x15476e['oldValue']){case'bulleted':return _0x18ec5d(o(_0x234547,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x18ec5d(o(_0x234547,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x18ec5d(o(_0x234547,'ELEMENT_TODO_LIST'));}switch(_0x15476e['newValue']){case'bulleted':return _0x2a5c54(o(_0x234547,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a5c54(o(_0x234547,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a5c54(o(_0x234547,'ELEMENT_TODO_LIST'));}}),_0x133a9d['descriptionFactory']['registerDescriptionCallback'](_0x3fe984=>{const {data:_0x489ad8}=_0x3fe984;if(_0x489ad8&&'listIndent'==_0x489ad8['key'])return null==_0x489ad8['newValue']||null==_0x489ad8['oldValue']&&0x0==_0x489ad8['newValue']?_0x504fb4:void 0x0;}),_0x133a9d['descriptionFactory']['registerDescriptionCallback'](_0x332ac1=>{if('attribute'!=_0x332ac1['type'])return;const {data:_0x8ad8e2}=_0x332ac1;if(!_0x8ad8e2||'listItemId'!=_0x8ad8e2['key'])return;const _0x26e644=Te(_0x332ac1);return'newValue'==_0x26e644?{'type':'format','content':o(_0x234547,'*Merge:*\x20list\x20item')}:'oldValue'==_0x26e644?{'type':'format','content':o(_0x234547,'*Split:*\x20list\x20item')}:_0x504fb4;}),_0xc88b66['model']['document']['registerPostFixer'](_0x3437eb=>this['listItemIdFixer'](_0x3437eb)),_0xc88b66['model']['document']['registerPostFixer'](_0xda51b6=>this['noTrackChangesFixer'](_0xda51b6)),_0xc88b66['model']['document']['on']('change:data',(_0x2a9799,_0x2d093e)=>{if(_0x2d093e['isUndo']||!_0x2d093e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3d93b0){if(_0x3d93b0['batch']['isUndo']||!_0x3d93b0['batch']['isLocal'])return!0x1;let _0x3562c8=!0x1;const _0x27505e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x61117b=>_0x61117b['data']&&'listItemId'==_0x61117b['data']['key'])['filter'](_0x318db9=>_0x318db9['data']['newValue']&&_0x318db9['data']['oldValue']);for(const _0x28f791 of _0x27505e)Te(_0x28f791)||(_0x3d93b0['removeMarker'](_0x28f791['getFirstMarker']()),_0x3562c8=!0x0);return _0x3562c8;}['noTrackChangesFixer'](_0x86880c){if(_0x86880c['batch']['isUndo']||!_0x86880c['batch']['isLocal'])return!0x1;const _0x2fa0e6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2fa0e6['trackChangesCommand']['value'])return!0x1;let _0x37e460=!0x1;const _0x5b32d8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5818a4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5bd535=>'attribute'==_0x5bd535['type'])['filter'](_0x11a567=>_0x5b32d8['includes'](_0x11a567['attributeKey']));if(0x0==_0x5818a4['length'])return _0x37e460;for(const _0x52a71d of _0x5818a4){const _0x5965b9=_0x2fa0e6['_findSuggestions'](_0x52a71d['range'],'attribute')['filter'](_0x4edf1b=>!_0x4edf1b['meta']['isNextTo'])['map'](_0x577889=>_0x577889['suggestion'])['filter'](_0x258545=>{const _0x68c358=_0x2fa0e6['_getAttributeKey'](_0x258545);return _0x5b32d8['includes'](_0x68c358);});if(_0x5965b9['length']){for(const _0x5511ba of _0x5965b9)_0x86880c['removeMarker'](_0x5511ba['getFirstMarker']());_0x37e460=!0x0;}}return _0x37e460;}['assureChains'](){const _0x215f2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x208b7d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3a09d4;const _0x268923=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x53f406=>{if(_0x53f406['data']['oldRange']||!_0x53f406['data']['newRange'])return null;if(!_0x53f406['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5a8fa6}=_0x215f2b['_splitMarkerName'](_0x53f406['name']);if(!_0x215f2b['hasSuggestion'](_0x5a8fa6))return null;const _0x32c273=_0x215f2b['getSuggestion'](_0x5a8fa6);return _0x208b7d['includes'](_0x32c273['data']['key']);})['map'](_0x4ca59b=>{const {id:_0x1dea84}=_0x215f2b['_splitMarkerName'](_0x4ca59b['name']),_0xc16594=_0x215f2b['getSuggestion'](_0x1dea84);return _0x3a09d4=_0xc16594['attributes']['groupId'],_0xc16594['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x268923['size'])return;const _0x494989=_0x215f2b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x423d18=>'attribute'==_0x423d18['type']&&_0x423d18['data']&&_0x208b7d['includes'](_0x423d18['data']['key'])&&_0x423d18['attributes']['groupId']!=_0x3a09d4)['map'](_0x36f593=>({'listItem':_0x36f593['getFirstRange']()['start']['nodeAfter'],'groupId':_0x36f593['attributes']['groupId']})),_0x281960=new Set();for(const {groupId:_0x354d67,listItem:_0x595834}of _0x494989)_0x268923['has'](_0x595834)&&_0x281960['add'](_0x354d67);for(const _0x26f01e of _0x215f2b['getSuggestions']())_0x281960['has'](_0x26f01e['attributes']['groupId'])&&_0x26f01e['setAttribute']('groupId',_0x3a09d4);}['_supportLegacySuggestions'](){const _0x317864=this['editor'],_0x11102e=_0x317864['locale'],_0x42fa58=_0x317864['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x42fa58['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2b36df,_0x25be24){const _0x164566=[];for(let _0x3040df of _0x2b36df)_0x3040df['start']['nodeAfter']===_0x3040df['end']['parent']&&(_0x3040df=_0x317864['model']['createRange'](_0x317864['model']['createPositionAt'](_0x3040df['start']['nodeAfter'],0x0))),_0x164566['push'](_0x3040df);_0x317864['model']['change'](_0x3b4cea=>{const _0x40187b=_0x317864['model']['document']['selection'],_0x5ee4b2=Array['from'](_0x40187b['getRanges']())['map'](_0x1eed26=>_0xac092f['fromRange'](_0x1eed26));_0x3b4cea['setSelection'](_0x164566),_0x317864['commands']['get'](_0x25be24['commandName'])['refresh'](),_0x25be24['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x317864['execute'](_0x25be24['commandName'],..._0x25be24['commandParams']),_0x3b4cea['setSelection'](_0x5ee4b2);for(const _0x390d6b of _0x5ee4b2)_0x390d6b['detach']();});}),_0x42fa58['descriptionFactory']['registerElementLabel'](function(_0x63f783){const _0x4e8e6f=!_0x317864['model']['schema']['isObject'](_0x63f783),_0x5b14a1=_0x63f783['previousSibling'],_0x2d8400=_0x63f783['nextSibling'],_0x54b3c9=_0x63f783['getAttribute']('listItemId'),_0xbaa460=!_0x5b14a1||_0x5b14a1['getAttribute']('listItemId')!==_0x54b3c9,_0x548231=!_0x2d8400||_0x2d8400['getAttribute']('listItemId')!==_0x54b3c9;return _0x4e8e6f&&Boolean(_0x54b3c9)&&_0xbaa460&&_0x548231;},_0x5e0652=>o(_0x11102e,'ELEMENT_LIST_ITEM',_0x5e0652));}['_registerLegacyDescription'](){const _0x2ff4aa=this['editor'],_0x2b1015=_0x2ff4aa['locale'];function _0x1d3123(_0x67776b){const _0x3ea5dd=_0x2ff4aa['commands']['get']('bulletedList')['value'],_0x4a52b4=_0x2ff4aa['commands']['get']('numberedList')['value'];return'numberedList'===_0x67776b?_0x3ea5dd:_0x4a52b4;}_0x2ff4aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x48991d){if('formatBlock'!=_0x48991d['type'])return;const {data:_0x3d6dc1}=_0x48991d;if(!_0x3d6dc1)return;let _0x596bf5,_0x9bb1e8,_0x309db7,_0x3f237e;switch(_0x3d6dc1['commandName']){case'bulletedList':_0x309db7=_0x3d6dc1['commandParams'][0x0]['forceValue'],_0x3f237e=_0x1d3123(_0x3d6dc1['commandName']),_0x596bf5=_0x309db7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f237e&&_0x2ff4aa['config']['get']('list.multiBlock')||(_0x596bf5='*Change\x20to:*\x20%0'),_0x9bb1e8={'type':'format','content':o(_0x2b1015,_0x596bf5,o(_0x2b1015,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x309db7=_0x3d6dc1['commandParams'][0x0]['forceValue'],_0x3f237e=_0x1d3123(_0x3d6dc1['commandName']),_0x596bf5=_0x309db7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f237e&&_0x2ff4aa['config']['get']('list.multiBlock')||(_0x596bf5='*Change\x20to:*\x20%0'),_0x9bb1e8={'type':'format','content':o(_0x2b1015,_0x596bf5,o(_0x2b1015,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x596bf5='*Indent:*\x20%0',_0x9bb1e8={'type':'format','content':o(_0x2b1015,_0x596bf5,o(_0x2b1015,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x596bf5=function(_0x58053e){const _0x45cac7=_0x58053e['getFirstRange']();let _0x372a03=_0x45cac7['start']['nodeAfter'];for(;_0x372a03&&_0x45cac7['containsItem'](_0x372a03);){if(_0x372a03['getAttribute']('listIndent')>0x0)return!0x1;_0x372a03=_0x372a03['nextSibling'];}return!0x0;}(_0x48991d)?o(_0x2b1015,'*Format:*\x20remove\x20from\x20%0',o(_0x2b1015,function(_0xb6261e){return'ELEMENT_'+_0xb6261e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x48991d))):o(_0x2b1015,'*Outdent:*\x20%0',o(_0x2b1015,'ELEMENT_LIST_ITEM')),_0x9bb1e8={'type':'format','content':_0x596bf5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3d6dc1['multipleBlocks']&&(_0x596bf5='*Merge:*\x20%0',_0x9bb1e8={'type':'deletion','content':o(_0x2b1015,_0x596bf5,o(_0x2b1015,'ELEMENT_LIST_ITEM'))});}return _0x9bb1e8;});}}function Te(_0x551cb0){let _0x403423=_0x551cb0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x403423;){const _0x37f8ae=_0x403423['getAttribute']('listItemId');if(!_0x37f8ae)return!0x1;if(_0x37f8ae==_0x551cb0['data']['newValue'])return'newValue';if(_0x37f8ae==_0x551cb0['data']['oldValue'])return'oldValue';_0x403423=_0x403423['previousSibling'];}return!0x1;}class ye extends _0xa4c963{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4c9d3f=this['editor']['config']['get']('list.properties'),_0x2a761a=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c9d3f['styles']&&(_0x2a761a['enableDefaultAttributesIntegration']('listStyle'),_0x2a761a['registerBlockAttribute']('listStyle')),_0x4c9d3f['reversed']&&(_0x2a761a['enableDefaultAttributesIntegration']('listReversed'),_0x2a761a['registerBlockAttribute']('listReversed')),_0x4c9d3f['startIndex']&&(_0x2a761a['enableDefaultAttributesIntegration']('listStart'),_0x2a761a['registerBlockAttribute']('listStart'));const _0x351a88={'type':'format','content':''};_0x2a761a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x43e43e=this['editor']['locale'];_0x2a761a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x43e43e,'FORMAT_LIST_REVERSED')),_0x2a761a['descriptionFactory']['registerDescriptionCallback'](_0xe451a3=>{const {data:_0x52de30}=_0xe451a3;if(_0x52de30&&'listReversed'==_0x52de30['key'])return null==_0x52de30['newValue']||0x0==_0x52de30['newValue']&&null==_0x52de30['oldValue']?_0x351a88:void 0x0;}),_0x2a761a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x43e43e,'FORMAT_LIST_START')),_0x2a761a['descriptionFactory']['registerDescriptionCallback'](_0x37f84c=>{const {data:_0x1f87bd}=_0x37f84c;if(_0x1f87bd&&'listStart'==_0x1f87bd['key'])return null==_0x1f87bd['newValue']||0x1==_0x1f87bd['newValue']&&null==_0x1f87bd['oldValue']?_0x351a88:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xc03565=>{if(_0xc03565['batch']['isUndo'])return!0x1;let _0x4839a5=!0x1;const _0x59383f=_0x2a761a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f8db5=>{const _0x334d95=_0x2a761a['_getAttributeKey'](_0x3f8db5);return'listStart'==_0x334d95||'listReversed'==_0x334d95;});for(const _0x59944d of _0x59383f){const _0x12da04=_0x59944d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x12da04||'customNumbered'==_0x12da04)continue;_0x2a761a['_findSuggestions'](_0x59944d['getFirstRange'](),'attribute')['find'](_0x339983=>'listType'==_0x2a761a['_getAttributeKey'](_0x339983['suggestion']))||(_0xc03565['removeMarker'](_0x59944d['getFirstMarker']()),_0x4839a5=!0x0);}return _0x4839a5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x466826){const _0x333b94=this['editor']['locale'],{data:_0x440f72}=_0x466826,_0x50e417={'type':'format','content':''};if(!_0x440f72||'listStyle'!=_0x440f72['key'])return;if(!_0x440f72['oldValue'])return'default'==_0x440f72['newValue']?_0x50e417:{'type':'format','content':''+o(_0x333b94,'*Set\x20format:*\x20%0',o(_0x333b94,this['_getTranslationKeyForListStyle'](_0x440f72['newValue'])))};if(!_0x440f72['newValue']){if('default'==_0x440f72['oldValue'])return _0x50e417;let _0x2c4c3c=_0x466826['head'];for(;_0x2c4c3c;){if(_0x2c4c3c['data']&&'listType'==_0x2c4c3c['data']['key']&&_0x2c4c3c['data']['newValue'])return _0x50e417;_0x2c4c3c=_0x2c4c3c['next'];}return{'type':'format','content':''+o(_0x333b94,'*Remove\x20format:*\x20%0',o(_0x333b94,this['_getTranslationKeyForListStyle'](_0x440f72['oldValue'])))};}if('default'!=_0x440f72['newValue'])return{'type':'format','content':''+o(_0x333b94,'*Set\x20format:*\x20%0',o(_0x333b94,this['_getTranslationKeyForListStyle'](_0x440f72['newValue'])))};let _0x4bc836=_0x466826['head'];for(;_0x4bc836;){if(_0x4bc836['data']&&'listType'==_0x4bc836['data']['key']&&_0x4bc836['data']['newValue']&&_0x4bc836['data']['oldValue'])return _0x50e417;_0x4bc836=_0x4bc836['next'];}return{'type':'format','content':o(_0x333b94,'*Set\x20format:*\x20%0',o(_0x333b94,'ELEMENT_'+_0x466826['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x26b8c8=this['editor'],_0x5728de=_0x26b8c8['locale'];_0x26b8c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x490c85=>{if('formatBlock'!=_0x490c85['type'])return;const {data:_0x245302}=_0x490c85;if(!_0x245302)return;let _0x52dde3,_0x1b0494;switch(_0x245302['commandName']){case'listStyle':_0x52dde3='*Change\x20to:*\x20%0',_0x1b0494={'type':'format','content':o(_0x5728de,_0x52dde3,o(_0x5728de,this['_getTranslationKeyForListStyle'](_0x245302['commandParams'][0x0]['type'])))};break;case'listReversed':_0x52dde3=_0x245302['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1b0494={'type':'format','content':o(_0x5728de,_0x52dde3)};break;case'listStart':_0x52dde3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1b0494={'type':'format','content':o(_0x5728de,_0x52dde3,_0x245302['commandParams'][0x0]['startIndex'])};}return _0x1b0494;});}['_getTranslationKeyForListStyle'](_0x28a14e){return'ELEMENT_'+function(_0x1552b7){if(Se['includes'](_0x1552b7))return'bulleted';if(_e['includes'](_0x1552b7))return'numbered';return null;}(_0x28a14e)['toUpperCase']()+'_LIST_'+_0x28a14e['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xa4c963{static get['requires'](){return[_0x1473e0];}['init'](){const _0x5a0d03=this['editor'],_0x405a4c=_0x5a0d03['plugins']['get']('TrackChangesEditing'),_0x566f0f=_0x5a0d03['commands']['get']('enter');_0x405a4c['enableCommand']('enter',()=>{_0x5a0d03['model']['change'](_0x3bb279=>{const _0x5c7a32=_0x5a0d03['model']['document']['selection'],_0x126372=_0x5c7a32['getFirstPosition'](),_0x40e36d=_0xac092f['fromRange'](_0x5c7a32['getFirstRange']());if(_0x566f0f['enterBlock'](_0x3bb279)){const _0x3b5d34=_0x5a0d03['model']['createPositionAt'](_0x126372['parent']['nextSibling'],0x0),_0x1535c2=_0x3bb279['createRange'](_0x126372,_0x3b5d34);_0x405a4c['markInsertion'](_0x1535c2);}else _0x3bb279['setSelection'](_0x3bb279['createRange'](_0x40e36d['end']));_0x40e36d['detach'](),_0x566f0f['fire']('afterExecute',{'writer':_0x3bb279});});}),_0x5a0d03['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x5a0d03,'split'),{'priority':'high'}),_0x5a0d03['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5cdf22,_0x5c7bae,_0x59ea80)=>{const _0x3d7a59=_0x59ea80['mapper']['markerNameToElements'](_0x5c7bae['markerName']);if(_0x3d7a59){for(const _0x48baaa of _0x3d7a59)_0x48baaa['hasClass']('ck-suggestion-marker-split')&&(_0x59ea80['mapper']['unbindElementFromMarkerName'](_0x48baaa,_0x5c7bae['markerName']),_0x59ea80['writer']['remove'](_0x48baaa));}},{'priority':'high'}),_0x5a0d03['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3dc6ea,_0x147559,_0x146b07)=>{_0x146b07['options']['showSuggestionHighlights']&&Ne(_0x5a0d03,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3dc6ea,_0x147559,_0x146b07);},{'priority':'high'});}}class Y extends _0xa4c963{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x150673=this['editor']['plugins']['get']('TrackChangesEditing');_0x150673['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x150673['enableCommand']('findNext'),_0x150673['enableCommand']('findPrevious'),_0x150673['enableCommand']('replace'),_0x150673['enableCommand']('replaceAll');}['handleFindCommand'](_0xbbd208,_0x314fce,_0x19134e={}){const _0x29be23=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xbbd208(_0x13b7c5=>{let _0x38d866=('string'==typeof _0x314fce?_0x29be23['findByTextCallback'](_0x314fce,_0x19134e):_0x314fce)(_0x13b7c5);Array['isArray'](_0x38d866)&&(_0x38d866={'results':_0x38d866,'searchText':'string'==typeof _0x314fce?_0x314fce:''});const _0xe553b2=_0x38d866['results']['filter'](_0x20aeb4=>!0x1===this['_isInDeletionRange'](_0x20aeb4,_0x13b7c5['item']));return{..._0x38d866,'results':_0xe553b2};},_0x19134e);}['_isInDeletionRange'](_0xadf7f0,_0xbb7a8){const _0x1fb3dd=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xbb7a8,_0xadf7f0['start']),this['editor']['model']['createPositionAt'](_0xbb7a8,_0xadf7f0['end']));for(const _0x2bf42b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1fb3dd['getIntersection'](_0x2bf42b['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0xa4c963{['afterInit'](){const _0x3f2827=this['editor']['locale'],_0x3e3643=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16de6a,commandName:_0x30ea43}of ro)this['editor']['plugins']['has'](_0x16de6a)&&(_0x3e3643['enableDefaultAttributesIntegration'](_0x30ea43),_0x3e3643['registerInlineAttribute'](_0x30ea43));_0x3e3643['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3f2827,'FORMAT_FONT_SIZE')),_0x3e3643['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3f2827,'FORMAT_FONT_FAMILY')),_0x3e3643['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3f2827,'FORMAT_FONT_COLOR')),_0x3e3643['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3f2827,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x449e1c=this['editor'],_0x5ac0d9=_0x449e1c['locale'];_0x449e1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c7297=>{const _0xbe9b63=_0x5ac0d9['t'];if('formatInline'!=_0x5c7297['type'])return;const {data:_0x1935c9}=_0x5c7297;if(null!=_0x1935c9){if('fontSize'==_0x1935c9['commandName']){const _0x396cb6=_0x1935c9['commandParams'][0x0]['value'];if(_0x396cb6){const _0x2d883f=_0xbe9b63(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x129dd0=>_0x129dd0['model']==_0x396cb6)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ac0d9,'*Set\x20font\x20size:*\x20%0',_0x2d883f)};}return{'type':'format','content':o(_0x5ac0d9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1935c9['commandName']){const _0x526cd4=_0x1935c9['commandParams'][0x0]['value'];return _0x526cd4?{'type':'format','content':o(_0x5ac0d9,'*Set\x20font\x20family:*\x20%0',_0x526cd4)}:{'type':'format','content':o(_0x5ac0d9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1935c9['commandName']){const _0x1bf68f=_0x1935c9['commandParams'][0x0]['value'];if(_0x1bf68f){const _0x51484b=_0x3e5898(this['editor']['config']['get']('fontColor.colors'))['find'](_0x457e94=>_0x457e94['model']==_0x1bf68f);let _0x51e64e=_0x1bf68f,_0x40b174='';return _0x51484b&&(_0x51e64e=_0x51484b['label'],_0x40b174=_0xbe9b63(_0x51e64e)['toLowerCase']()),{'type':'format','content':o(_0x5ac0d9,'*Set\x20font\x20color:*\x20%0',_0x40b174)['trim'](),'color':{'value':_0x1bf68f,'title':_0x40b174||_0x51e64e}};}return{'type':'format','content':o(_0x5ac0d9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1935c9['commandName']){const _0x1bc159=_0x1935c9['commandParams'][0x0]['value'];if(_0x1bc159){const _0x2ed811=_0x3e5898(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x44c826=>_0x44c826['model']==_0x1bc159);let _0xefdd7e=_0x1bc159,_0x134b93='';return _0x2ed811&&(_0xefdd7e=_0x2ed811['label'],_0x134b93=_0xbe9b63(_0xefdd7e)['toLowerCase']()),{'type':'format','content':o(_0x5ac0d9,'*Set\x20font\x20background\x20color:*\x20%0',_0x134b93)['trim'](),'color':{'value':_0x1bc159,'title':_0x134b93||_0xefdd7e}};}return{'type':'format','content':o(_0x5ac0d9,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0xa4c963{['afterInit'](){const _0x238312=this['editor'],_0x1356a7=_0x238312['plugins']['get']('TrackChangesEditing'),_0x17b6f4=_0x238312['commands']['get']('copyFormat'),_0x2c44d1=_0x238312['commands']['get']('pasteFormat');_0x17b6f4&&_0x2c44d1&&(_0x1356a7['enableDefaultAttributesIntegration']('pasteFormat'),_0x1356a7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5d3f81=this['editor'],_0x37b5ed=_0x5d3f81['locale'];_0x5d3f81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22ed27=>{if('formatBlock'!=_0x22ed27['type']&&'formatInline'!=_0x22ed27['type'])return;const {data:_0x37ce4d}=_0x22ed27;if(_0x37ce4d&&'pasteFormat'===_0x37ce4d['commandName']){const _0x44d24a=[],_0x3eb94d=_0x37ce4d['commandParams'][0x0];for(const [_0xce81a7,_0x452095]of Object['entries'](_0x3eb94d))_0x44d24a['push'](so(_0x5d3f81,_0xce81a7,_0x452095));return _0x44d24a['length']?{'type':'format','content':o(_0x37b5ed,'*Set\x20format\x20to:*\x20%0',_0x44d24a['join'](',\x20'))}:{'type':'format','content':o(_0x37b5ed,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3f9c9b,_0x35d2f3,_0x392c83){const _0x4e3aac=_0x3f9c9b['locale']['t'],_0x4e7594=_0x35d2f3['split'](/(?=[A-Z])/)['join']('\x20'),_0x1759ec=_0x4e3aac(_0x4e7594['charAt'](0x0)['toUpperCase']()+_0x4e7594['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x392c83)return _0x1759ec;if('fontColor'===_0x35d2f3||'fontBackgroundColor'===_0x35d2f3){const _0x310c9f=_0x3e5898(_0x3f9c9b['config']['get']('fontColor.colors'))['find'](_0x3b77b0=>_0x3b77b0['model']==_0x392c83);return _0x1759ec+'\x20('+(_0x310c9f?_0x4e3aac(_0x310c9f['label'])['toLowerCase']():_0x392c83)+')';}if('fontSize'===_0x35d2f3&&isNaN(parseFloat(_0x392c83))){const _0x487cf3=_0x3f9c9b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3f9c9b['config']['get']('fontSize.options'))['find'](_0x531a67=>_0x531a67['model']==_0x392c83);return _0x1759ec+'\x20('+(_0x487cf3?_0x4e3aac(_0x487cf3['title'])['toLowerCase']():_0x392c83)+')';}return _0x1759ec+'\x20('+_0x392c83+')';}class nt extends _0xa4c963{['_headingOptions'];['afterInit'](){const _0x33dc1b=this['editor'];if(!_0x33dc1b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x33dc1b['config']['get']('heading.options');const _0x34949d=_0x33dc1b['locale'],_0x2e55eb=_0x33dc1b['plugins']['get']('TrackChangesEditing');_0x2e55eb['enableDefaultAttributesIntegration']('heading');for(const _0x894cb4 of this['_headingOptions'])'paragraph'!=_0x894cb4['model']&&_0x2e55eb['descriptionFactory']['registerElementLabel'](_0x894cb4['model'],_0x11e310=>{const _0xfce873=this['_getHeadingLevel'](_0x894cb4['model']);return null!==_0xfce873?_0x37ff39(_0x11e310,_0xfce873):_0x2d9c44(_0x11e310,_0x894cb4['title']);});function _0x37ff39(_0x5cee7f,_0x383b3b){return o(_0x34949d,'ELEMENT_HEADING',[_0x5cee7f,_0x383b3b]);}function _0x2d9c44(_0x1fb8c5,_0x5592db){return o(_0x34949d,'ELEMENT_HEADING_CUSTOM',[_0x1fb8c5,_0x5592db]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f2cf9=this['editor'],_0x56535f=_0x3f2cf9['locale'];function _0x286222(_0x804eb4,_0x578dc5){return o(_0x56535f,'ELEMENT_HEADING_CUSTOM',[_0x804eb4,_0x578dc5]);}_0x3f2cf9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12f01a=>{if('formatBlock'!=_0x12f01a['type'])return;const {data:_0xc0d308}=_0x12f01a;if(_0xc0d308&&'heading'==_0xc0d308['commandName']){const _0x53c1fd=_0xc0d308['commandParams'][0x0]['value'],_0x1712c5=this['_getHeadingLevel'](_0x53c1fd);if(null!==_0x1712c5)return{'type':'format','content':o(_0x56535f,'*Change\x20to:*\x20%0',(_0x1e17c4=0x1,_0xd7da30=_0x1712c5,o(_0x56535f,'ELEMENT_HEADING',[_0x1e17c4,_0xd7da30])))};const _0x1586bf=this['_headingOptions']['find'](_0x4b3288=>_0x4b3288['model']===_0x53c1fd)['title'];return{'type':'format','content':o(_0x56535f,'*Change\x20to:*\x20%0',_0x286222(0x1,_0x1586bf))};}var _0x1e17c4,_0xd7da30;});}['_getHeadingLevel'](_0x5dbe63){const _0x4c631f=_0x5dbe63['match'](/^heading(\d+)/);if(_0x4c631f)return _0x4c631f[0x1];const _0x28e7e4=this['_headingOptions']?.['find'](_0x1efba4=>_0x1efba4['model']==_0x5dbe63);if(_0x28e7e4&&_0x28e7e4['view']){const _0x30bda3=_0x28e7e4['view'],_0x30a7a5=(_0x30bda3['name']??_0x30bda3)['match'](/^h(\d+)/);if(_0x30a7a5)return _0x30a7a5[0x1];}return null;}}class it extends _0xa4c963{['afterInit'](){const _0x18f03d=this['editor'];if(!_0x18f03d['plugins']['has']('HighlightEditing'))return;const _0x5e602f=_0x18f03d['plugins']['get']('TrackChangesEditing'),_0x58ae35=_0x18f03d['locale'];_0x5e602f['enableDefaultAttributesIntegration']('highlight'),_0x5e602f['registerInlineAttribute']('highlight'),_0x5e602f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x58ae35,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f3397=this['editor'],_0x3351c2=_0x5f3397['locale'];_0x5f3397['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30f0ee=>{if('formatInline'!=_0x30f0ee['type'])return;const {data:_0x4c521d}=_0x30f0ee;if(_0x4c521d&&'highlight'==_0x4c521d['commandName']){const _0x51bcb0=_0x3351c2['t'],_0x57e79a=_0x4c521d['commandParams'][0x0]['value'];if(_0x57e79a){const _0x2158dc=_0x5f3397['config']['get']('highlight.options')['find'](_0x3cbf03=>_0x3cbf03['model']==_0x57e79a),_0x1b5f49=_0x51bcb0(_0x2158dc['title'])['toLowerCase']();return{'type':'format','content':o(_0x3351c2,'*Set\x20highlight:*\x20%0',_0x1b5f49),'color':{'value':_0x2158dc['color'],'title':_0x2158dc['title']}};}return{'type':'format','content':o(_0x3351c2,'*Remove\x20highlight*',o(_0x3351c2,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0xa4c963{['afterInit'](){const _0xd58a7f=this['editor'];if(!_0xd58a7f['plugins']['has']('HorizontalLineEditing'))return;_0xd58a7f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4f8df9=_0xd58a7f['plugins']['get']('TrackChangesEditing'),_0x1c33df=_0xd58a7f['locale'];_0x4f8df9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4afabf=>o(_0x1c33df,'ELEMENT_HORIZONTAL_LINE',_0x4afabf)),_0xd58a7f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x15647a,{writer:_0x1c61f1,options:_0x274c53})=>{if(!_0x274c53['showSuggestionHighlights'])return null;const _0x1acd2c=_0x1c61f1['createContainerElement']('div'),_0x2a9247=_0x1c61f1['createEmptyElement']('hr');return _0x1c61f1['addClass']('ck-horizontal-line',_0x1acd2c),_0x1c61f1['insert'](_0x1c61f1['createPositionAt'](_0x1acd2c,0x0),_0x2a9247),_0x1acd2c;},'converterPriority':'high'});}}class st extends _0xa4c963{['afterInit'](){const _0x13ca57=this['editor'];if(!_0x13ca57['plugins']['has']('HtmlEmbed'))return;const _0x47c921=_0x13ca57['plugins']['get']('TrackChangesEditing'),_0x141cbf=_0x13ca57['locale'];_0x47c921['descriptionFactory']['registerElementLabel']('rawHtml',_0x48cdfe=>o(_0x141cbf,'ELEMENT_HTML_EMBED',_0x48cdfe)),_0x47c921['enableDefaultAttributesIntegration']('htmlEmbed'),_0x47c921['registerBlockAttribute']('value'),_0x47c921['descriptionFactory']['registerDescriptionCallback'](_0x319016=>{if('attribute'!=_0x319016['type'])return;const {data:_0x553145}=_0x319016;if(_0x553145&&'value'==_0x553145['key']&&_0x319016['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x33987c=o(_0x141cbf,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x141cbf,'*Change\x20%0\x20content*',_0x33987c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x419893=this['editor'],_0x333364=_0x419893['locale'];_0x419893['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ed268=>{if('formatBlock'!=_0x2ed268['type'])return;const {data:_0x5e4602}=_0x2ed268;if(_0x5e4602&&'htmlEmbed'==_0x5e4602['commandName']){const _0xdb33c6=o(_0x333364,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x333364,'*Change\x20%0\x20content*',_0xdb33c6)};}});}}class ot extends _0xa4c963{['afterInit'](){const _0x2f91ea=this['editor'];if(!_0x2f91ea['plugins']['has']('ImageEditing'))return;const _0x286f75=_0x2f91ea['plugins']['get']('TrackChangesEditing'),_0x3449f7=_0x2f91ea['plugins']['get']('ImageUtils'),_0x51aaa6=_0x2f91ea['locale'];_0x286f75['enableCommand']('insertImage'),_0x286f75['descriptionFactory']['registerElementLabel']('imageBlock',_0x351117=>o(_0x51aaa6,'ELEMENT_IMAGE',_0x351117)),_0x286f75['descriptionFactory']['registerElementLabel']('imageInline',_0x297fea=>o(_0x51aaa6,'ELEMENT_INLINE_IMAGE',_0x297fea)),_0x286f75['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x51aaa6,'ELEMENT_CAPTION')),_0x2f91ea['plugins']['has']('ImageUploadEditing')&&_0x286f75['enableCommand']('uploadImage'),_0x2f91ea['plugins']['has']('ImageBlockEditing')&&_0x2f91ea['plugins']['has']('ImageInlineEditing')&&(_0x286f75['enableCommand']('imageTypeInline',(_0x5c1480,_0x5e6ec2)=>{const _0x2a59c1=_0x3449f7['getClosestSelectedImageElement'](_0x2f91ea['model']['document']['selection']);_0x2f91ea['model']['change'](()=>{_0x286f75['markBlockFormat'](_0x2a59c1,{'commandName':'imageTypeInline','commandParams':[_0x5e6ec2]},[],'convertBlockImageToInline');});}),_0x286f75['enableCommand']('imageTypeBlock',(_0x511f39,_0x2da1c4)=>{_0x2f91ea['model']['change'](_0x1ef9a6=>{let _0x4e1909=_0x3449f7['getClosestSelectedImageElement'](_0x2f91ea['model']['document']['selection']),_0x7afde7=_0x1ef9a6['createRangeOn'](_0x4e1909);const _0x3586a6=_0x471760['fromPosition'](_0x7afde7['start'],'toPrevious'),_0x16b884=_0x471760['fromPosition'](_0x7afde7['end'],'toNext');_0x286f75['forceDefaultExecution'](()=>_0x511f39(_0x2da1c4)),_0x4e1909=_0x3449f7['getClosestSelectedImageElement'](_0x2f91ea['model']['document']['selection']),_0x7afde7=_0x1ef9a6['createRangeOn'](_0x4e1909);const _0x34c12a=_0x1ef9a6['createRange'](_0x3586a6,_0x16b884);_0x3586a6['detach'](),_0x16b884['detach'](),_0x286f75['markBlockFormat'](_0x4e1909,{'commandName':'imageTypeInline','commandParams':[_0x2da1c4]},[],'convertInlineImageToBlock'),_0x34c12a['start']['isBefore'](_0x7afde7['start'])&&_0x286f75['markInsertion'](_0x1ef9a6['createRange'](_0x34c12a['start'],_0x7afde7['start']),'convertInlineImageToBlock'),_0x7afde7['end']['isBefore'](_0x34c12a['end'])&&_0x286f75['markInsertion'](_0x1ef9a6['createRange'](_0x7afde7['end'],_0x34c12a['end']),'convertInlineImageToBlock');});}),_0x286f75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x286f75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x286f75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x286f75['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x286f75['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x286f75['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x14ae7a])=>{const _0x447b67=_0x286f75['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x47290f=_0x14ae7a['start'],_0xc62d8a=_0x14ae7a['end'];const _0xdfe802=_0x2f91ea['model']['schema']['getNearestSelectionRange'](_0x47290f,'backward'),_0x5a8285=_0x2f91ea['model']['schema']['getNearestSelectionRange'](_0xc62d8a,'forward');_0xdfe802['isCollapsed']&&(_0x47290f=_0xdfe802['start']),_0x5a8285['isCollapsed']&&(_0xc62d8a=_0x5a8285['end']),_0x447b67([_0x2f91ea['model']['createRange'](_0x47290f,_0xc62d8a)]);}),_0x286f75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x17197b),_0x286f75['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x17197b)),_0x2f91ea['plugins']['has']('ImageCaptionEditing')&&(_0x286f75['enableCommand']('toggleImageCaption',(_0x488edd,_0x116026)=>{const _0x20a006=_0x2f91ea['plugins']['get']('ImageCaptionUtils');let _0x4bc832=_0x3449f7['getClosestSelectedImageElement'](_0x2f91ea['model']['document']['selection']),_0xd75077=_0x20a006['getCaptionFromImageModelElement'](_0x4bc832);_0x2f91ea['model']['change'](()=>{if(_0xd75077)return void _0x286f75['markDeletion'](_0x2f91ea['model']['createRangeOn'](_0xd75077));const _0xde267=_0x3449f7['isBlockImage'](_0x4bc832);_0x488edd(_0x116026),_0x4bc832=_0x3449f7['getClosestSelectedImageElement'](_0x2f91ea['model']['document']['selection']),_0xd75077=_0x20a006['getCaptionFromImageModelElement'](_0x4bc832),_0x286f75['markInsertion'](_0x2f91ea['model']['createRangeOn'](_0xd75077),_0xde267?null:'imageCaption');});}),_0x286f75['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x17197b));const _0x2d49aa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4890f7(_0x51ec64,_0x14bc40){const _0x1e72b5=_0x2d49aa['findIndex'](({type:_0x827fad,subType:_0x28bb10})=>_0x51ec64['type']==_0x827fad&&_0x51ec64['subType']==_0x28bb10),_0x33e768=_0x2d49aa['findIndex'](({type:_0x1fdf40,subType:_0x338bdf})=>_0x14bc40['type']==_0x1fdf40&&_0x14bc40['subType']==_0x338bdf);if(_0x1e72b5<0x0||_0x33e768<0x0)return!0x1;const _0x674a7=_0x51ec64['getFirstRange'](),_0x3ab17b=_0x14bc40['getFirstRange']();if((0x0==_0x1e72b5||0x1==_0x1e72b5)&&0x2==_0x33e768&&_0x674a7['isIntersecting'](_0x3ab17b))return!0x0;if(0x2==_0x1e72b5&&0x3==_0x33e768){const _0x54b63b=_0x286f75['_findSuggestions'](_0x674a7,'insertion')['filter'](({suggestion:_0x305475,meta:_0x2d312e})=>_0x2d312e['isOwn']&&'convertInlineImageToBlock'==_0x305475['subType']);if(_0x54b63b['length']>0x1&&_0x3ab17b['end']['isEqual'](_0x674a7['start']))return!0x0;if(0x1==_0x54b63b['length']&&(_0x674a7['start']['isEqual'](_0x3ab17b['end'])||_0x674a7['end']['isEqual'](_0x3ab17b['start'])))return!0x0;}if(0x3==_0x1e72b5&&0x3==_0x33e768&&_0x674a7['start']['isBefore'](_0x3ab17b['start'])){const _0x8353d8=_0x674a7['end']['nodeAfter'],_0x38f04a=_0x3ab17b['start']['nodeBefore'];return _0x3449f7['isBlockImage'](_0x8353d8)&&_0x8353d8===_0x38f04a;}return!0x1;}function _0x17197b(_0x4ee591,_0x5cbac2){return _0x4890f7(_0x4ee591,_0x5cbac2)?[_0x4ee591,_0x5cbac2]:_0x4890f7(_0x5cbac2,_0x4ee591)?[_0x5cbac2,_0x4ee591]:null;}_0x2f91ea['plugins']['has']('ImageResize')&&(_0x286f75['enableDefaultAttributesIntegration']('resizeImage'),_0x286f75['registerBlockAttribute']('resizedWidth'),_0x286f75['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x51aaa6,'FORMAT_IMAGE_SIZE'))),_0x2f91ea['plugins']['has']('ImageTextAlternativeEditing')&&(_0x286f75['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x286f75['registerBlockAttribute']('alt')),_0x286f75['descriptionFactory']['registerDescriptionCallback'](_0x203367=>{if(!!_0x2d49aa['find'](({type:_0x419975,subType:_0x4534d3})=>_0x203367['type']==_0x419975&&_0x203367['subType']==_0x4534d3))return _0x203367['previous']?{}:void 0x0;}),_0x286f75['descriptionFactory']['registerDescriptionCallback'](_0x5ba27e=>{if('insertion'==_0x5ba27e['type']||'deletion'==_0x5ba27e['type']){const _0x1bbfdc=_0x5ba27e['getContainedElement']();if(_0x1bbfdc&&_0x1bbfdc['is']('element','caption'))return{'type':'insertion'==_0x5ba27e['type']?'addObject':'removeObject','element':_0x1bbfdc,'quantity':0x1};}}),_0x286f75['descriptionFactory']['registerDescriptionCallback'](_0x58e3a8=>'formatBlock'==_0x58e3a8['type']&&'convertInlineImageToBlock'==_0x58e3a8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58e3a8['type']&&'convertBlockImageToInline'==_0x58e3a8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x286f75['descriptionFactory']['registerDescriptionCallback'](_0x5e00e6=>{if('attribute'!=_0x5e00e6['type'])return;const {data:_0x5775e9}=_0x5e00e6;if(!_0x5775e9||'alt'!=_0x5775e9['key'])return;const _0x306aa1=_0x5775e9['newValue'];return _0x306aa1?{'type':'format','content':o(_0x51aaa6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x306aa1+'\x22')}:{'type':'format','content':o(_0x51aaa6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x525327=this['editor'],_0x1d7a81=_0x525327['locale'];_0x525327['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe4f25e=>{if('formatBlock'!=_0xe4f25e['type']&&'formatInline'!=_0xe4f25e['type'])return;const {data:_0x52f8e7}=_0xe4f25e;if(_0x52f8e7){if('imageTextAlternative'==_0x52f8e7['commandName']){const _0x38cad1=_0x52f8e7['commandParams'][0x0]['newValue'];return _0x38cad1?{'type':'format','content':o(_0x1d7a81,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x38cad1+'\x22')}:{'type':'format','content':o(_0x1d7a81,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x52f8e7['commandName']){const _0x65ad98=_0x52f8e7['commandParams'][0x0]['width'];return _0x65ad98?{'type':'format','content':o(_0x1d7a81,'*Set\x20image\x20width:*\x20%0',_0x65ad98)}:{'type':'format','content':o(_0x1d7a81,'*Reset\x20image\x20width*')};}}});}}class rt extends _0xa4c963{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x360754=this['editor']['locale'],_0x262647=this['editor']['plugins']['get']('TrackChangesEditing');_0x262647['enableDefaultAttributesIntegration']('replaceImageSource'),_0x262647['registerBlockAttribute']('src'),_0x262647['descriptionFactory']['registerDescriptionCallback'](_0x3f9393=>{if('attribute'!=_0x3f9393['type'])return;const {data:_0x2f5935}=_0x3f9393;return _0x2f5935&&'src'==_0x2f5935['key']?_0x2f5935['newValue']&&_0x2f5935['oldValue']?{'type':'format','content':o(_0x360754,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e3404=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e3404['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4e3404['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e3404['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4e3404['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46426e=this['editor'],_0x2c71ce=_0x46426e['locale'];_0x46426e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d1be1=>{if('formatBlock'!=_0x5d1be1['type']&&'formatInline'!=_0x5d1be1['type'])return;const {data:_0x193f05}=_0x5d1be1;if(!_0x193f05||'replaceImageSource'!=_0x193f05['commandName'])return;return{'type':'format','content':o(_0x2c71ce,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0xa4c963{['afterInit'](){const _0x1a1c58=this['editor'];if(!_0x1a1c58['plugins']['has']('ImageStyleEditing'))return;const _0x54a8f2=_0x1a1c58['plugins']['get']('TrackChangesEditing'),_0x2be325=_0x1a1c58['plugins']['get']('ImageUtils'),_0x11c5dd={};_0x54a8f2['enableCommand']('imageStyle',(_0x4a85f5,_0x3a79a6)=>{const _0x1d7ea4=_0x1a1c58['plugins']['get']('Users')['me'],_0x31d4a9=_0x1a1c58['commands']['get']('imageStyle');let _0x22b5f4=_0x2be325['getClosestSelectedImageElement'](_0x1a1c58['model']['document']['selection']),_0xd56220=_0x1a1c58['model']['createRangeOn'](_0x22b5f4),_0x3ba878=_0x31d4a9['value'];if(_0x3ba878==_0x3a79a6['value'])return;const _0x432312={'commandName':'imageStyle','commandParams':[_0x3a79a6],'formatGroupId':_0x4fc915()};_0x1a1c58['model']['change'](()=>{if(_0x54a8f2['getSuggestions']()['filter'](_0x475998=>_0x475998['isInContent']&&_0x1d7ea4==_0x475998['author']&&('formatBlock'==_0x475998['type']||'formatInline'==_0x475998['type'])&&('imageStylePreApply'==_0x475998['subType']||'imageStylePostApply'==_0x475998['subType'])&&_0x475998['getFirstRange']()['isEqual'](_0xd56220))['forEach'](_0x2dc6f9=>_0x54a8f2['discardSuggestion'](_0x2dc6f9['head'])),_0x22b5f4=_0x2be325['getClosestSelectedImageElement'](_0x1a1c58['model']['document']['selection']),_0xd56220=_0x1a1c58['model']['createRangeOn'](_0x22b5f4),_0x31d4a9['refresh'](),_0x1a1c58['commands']['get']('imageTypeInline')['refresh'](),_0x1a1c58['commands']['get']('imageTypeBlock')['refresh'](),_0x3ba878=_0x31d4a9['value'],_0x3ba878!=_0x3a79a6['value'])return _0x2be325['isInlineImage'](_0x22b5f4)&&_0x31d4a9['shouldConvertImageType'](_0x3a79a6['value'],_0x22b5f4)?(_0x4a85f5({..._0x3a79a6,'setImageSizes':!0x1}),_0x22b5f4=_0x2be325['getClosestSelectedImageElement'](_0x1a1c58['model']['document']['selection']),void _0x54a8f2['markBlockFormat'](_0x22b5f4,{..._0x432312,'commandReversedParams':[{'value':_0x3ba878||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2be325['isBlockImage'](_0x22b5f4)?_0x54a8f2['markBlockFormat'](_0x22b5f4,_0x432312,[],'imageStylePostApply'):_0x54a8f2['markInlineFormat'](_0xd56220,_0x432312,'imageStylePostApply'));});});for(const _0x26c411 of _0x1a1c58['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x11c5dd[_0x26c411['name']]=_0x26c411['title']['toLowerCase']();_0x54a8f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x54a8f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x54a8f2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x54a8f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x392f5c])=>{_0x2be325['setImageNaturalSizeAttributes'](_0x392f5c['getContainedElement']());}),_0x54a8f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2c96cf,_0x5d94dc)=>{_0x54a8f2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2c96cf,{'commandName':_0x5d94dc['commandName'],'commandParams':_0x5d94dc['commandReversedParams']});}),_0x54a8f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x175db4,_0x16d43b){if(_0x391eb8(_0x175db4,_0x16d43b))return[_0x175db4,_0x16d43b];if(_0x391eb8(_0x16d43b,_0x175db4))return[_0x16d43b,_0x175db4];return null;});const _0x179f28=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x391eb8(_0x3efad7,_0x34f964){const _0x156483=_0x179f28['findIndex'](({type:_0x337a40,subType:_0x3f1198})=>_0x3efad7['type']==_0x337a40&&_0x3efad7['subType']==_0x3f1198),_0x151320=_0x179f28['findIndex'](({type:_0x51cf6b,subType:_0x22f48b})=>_0x34f964['type']==_0x51cf6b&&_0x34f964['subType']==_0x22f48b);if(_0x156483<0x0||_0x151320<0x0)return!0x1;const _0x3d390a=_0x3efad7['getFirstRange'](),_0x17177c=_0x34f964['getFirstRange']();if((0x0==_0x156483||0x1==_0x156483)&&0x2==_0x151320&&_0x3d390a['isIntersecting'](_0x17177c))return!0x0;if(0x2==_0x156483&&0x3==_0x151320){const _0x3eacdd=_0x54a8f2['_findSuggestions'](_0x3d390a,'insertion')['filter'](({suggestion:_0x12cc61,meta:_0x528776})=>_0x528776['isOwn']&&'convertInlineImageToBlock'==_0x12cc61['subType']);if(_0x3eacdd['length']>0x1&&_0x17177c['end']['isEqual'](_0x3d390a['start']))return!0x0;if(0x1==_0x3eacdd['length']&&(_0x3d390a['start']['isEqual'](_0x17177c['end'])||_0x3d390a['end']['isEqual'](_0x17177c['start'])))return!0x0;}if(0x3==_0x156483&&0x3==_0x151320&&_0x3d390a['start']['isBefore'](_0x17177c['start'])){const _0x4646e4=_0x3d390a['end']['nodeAfter'],_0x108a69=_0x17177c['start']['nodeBefore'];return _0x2be325['isBlockImage'](_0x4646e4)&&_0x4646e4===_0x108a69;}return!0x1;}_0x1a1c58['model']['document']['registerPostFixer'](()=>{let _0x3e4ecb=!0x1;const _0x4ed82=Array['from'](_0x1a1c58['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18b7b8,data:_0x571450}of _0x4ed82){const {group:_0x183b83,type:_0x437451,subType:_0x5d3f18,id:_0x2388dc}=_0x54a8f2['_splitMarkerName'](_0x18b7b8);if('suggestion'==_0x183b83&&_0x54a8f2['hasSuggestion'](_0x2388dc)){if('formatBlock'==_0x437451&&('imageStylePreApply'==_0x5d3f18||'imageStylePostApply'==_0x5d3f18)){const _0x3e20c0=_0x54a8f2['getSuggestion'](_0x2388dc);if(_0x571450['newRange']){const _0x53399c=_0x3e20c0['getFirstRange']()['getContainedElement']();if(_0x2be325['isBlockImage'](_0x53399c))continue;_0x54a8f2['discardSuggestion'](_0x3e20c0),_0x3e4ecb=!0x0;}}if('insertion'==_0x437451&&'imageCaption'==_0x5d3f18&&!_0x571450['newRange']){const _0x2ff3f6=_0x54a8f2['getSuggestion'](_0x2388dc);_0x2ff3f6['next']&&_0x2ff3f6['next']['isInContent']&&(_0x54a8f2['discardSuggestion'](_0x2ff3f6['next']),_0x3e4ecb=!0x0);}}}return _0x3e4ecb;}),this['_registerLegacyDescription'](_0x11c5dd);}['_registerLegacyDescription'](_0x3a4da8){const _0x69edfb=this['editor'],_0x1aa770=_0x69edfb['locale'];_0x69edfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x497172=>{if('formatBlock'!=_0x497172['type']&&'formatInline'!=_0x497172['type'])return;const {data:_0x18697e}=_0x497172;if(!_0x18697e||'imageStyle'!=_0x18697e['commandName'])return;const _0x4f2567=_0x18697e['commandParams'][0x0]['value'];return _0x5eafa9('side'===_0x4f2567?o(_0x1aa770,'FORMAT_SIDE_IMAGE'):_0x3a4da8[_0x4f2567]||_0x4f2567);function _0x5eafa9(_0x2d8e37){return{'type':'format','content':o(_0x1aa770,'*Format:*\x20%0',_0x2d8e37)};}});}}class ct extends _0xa4c963{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x411786){super(_0x411786),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x33f741=this['editor'],_0x1199a5=_0x33f741['commands']['get']('importWord'),_0x5e65ce=_0x33f741['commands']['get']('trackChanges');_0x1199a5&&(_0x1199a5['on']('execute',(_0x116ac0,[,_0x566787])=>{this['_trackChangesValueDuringImport']=_0x5e65ce['value'],_0x566787['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1199a5,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1199a5,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5e65ce['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x33f741['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x466a38,_0x5eef79){const {suggestions:_0x557496}=_0x5eef79,_0x58a1d3=this['editor']['commands']['get']('trackChanges'),_0x1f8790=_0x58a1d3['value'];this['_trackChangesValueDuringImport']!==_0x1f8790&&(_0x58a1d3['execute'](),this['_trackChangesExecuted']=!0x0),_0x557496&&_0x557496['forEach'](({id:_0x3eb2ef,type:_0x558d61,author:_0x131064,created_at:_0x25e6ca})=>{const _0x1bfac8={'id':_0x3eb2ef,'type':_0x558d61,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x131064,'createdAt':_0x25e6ca?new Date(_0x25e6ca):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1bfac8);});}}class ut extends _0xa4c963{['afterInit'](){const _0x7ea49b=this['editor'],_0x578075=_0x7ea49b['plugins']['get']('TrackChangesEditing');if(_0x7ea49b['plugins']['has']('IndentEditing')&&(_0x578075['enableCommand']('indent'),_0x578075['enableCommand']('outdent')),_0x7ea49b['plugins']['has']('IndentBlock')){for(const _0x5414f7 of['indentBlock','outdentBlock'])_0x578075['enableDefaultAttributesIntegration'](_0x5414f7);}const _0x1b3629=_0x7ea49b['locale'];_0x578075['registerBlockAttribute']('blockIndent'),_0x578075['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1b3629,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c6b5a=this['editor'],_0x23f1e8=_0x4c6b5a['locale'],_0x3a27fc=_0x4c6b5a['plugins']['get']('TrackChangesEditing');_0x3a27fc['descriptionFactory']['registerDescriptionCallback'](_0x1af7ba=>{if('formatBlock'!=_0x1af7ba['type'])return;const {data:_0x22a629}=_0x1af7ba;if(!_0x22a629)return;if('indentBlock'!=_0x22a629['commandName']&&'outdentBlock'!=_0x22a629['commandName'])return;const _0x93912c=_0x1af7ba['getItems']()[0x0],_0x581e88=_0x3a27fc['descriptionFactory']['getItemLabel'](_0x93912c);return'indentBlock'==_0x22a629['commandName']?{'type':'format','content':o(_0x23f1e8,'*Indent:*\x20%0',_0x581e88)}:'outdentBlock'==_0x22a629['commandName']?{'type':'format','content':o(_0x23f1e8,'*Outdent:*\x20%0',_0x581e88)}:void 0x0;});}}class ft extends _0xa4c963{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0xa4c963{['afterInit'](){const _0x35f9e4=this['editor'];if(!_0x35f9e4['plugins']['has']('LinkEditing'))return;const _0x59fe19=_0x35f9e4['plugins']['get']('TrackChangesEditing'),_0x5e755f=_0x35f9e4['commands']['get']('link');_0x59fe19['enableDefaultAttributesIntegration']('link'),_0x59fe19['enableDefaultAttributesIntegration']('unlink'),_0x59fe19['registerInlineAttribute']('linkHref');for(const _0x47be7e of _0x5e755f['manualDecorators'])_0x59fe19['registerInlineAttribute'](_0x47be7e['id']),_0x59fe19['descriptionFactory']['registerAttributeLabel'](_0x47be7e['id'],'link\x20('+_0x47be7e['label']['toLowerCase']()+')');_0x59fe19['descriptionFactory']['registerDescriptionCallback'](_0x2b1c0f=>{if('attribute'!=_0x2b1c0f['type'])return;const {data:_0x5ea0ca}=_0x2b1c0f;if(!_0x5ea0ca||'linkHref'!=_0x5ea0ca['key'])return;const _0x3f4ce8=_0x5ea0ca['newValue'],_0x4dfdd5=_0x35f9e4['locale'];return{'type':'format','content':null==_0x3f4ce8?o(_0x4dfdd5,'*Remove\x20link*'):o(_0x4dfdd5,'*Set\x20link:*\x20%0','\x22'+_0x3f4ce8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xeac9a5=this['editor'],_0x442ba2=_0xeac9a5['locale'];_0xeac9a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x400bef=>{if('formatInline'!=_0x400bef['type'])return;const {data:_0x1a3616}=_0x400bef;if(_0x1a3616){if('link'==_0x1a3616['commandName']){const _0x2c6d56=_0x1a3616['commandParams'][0x0];return{'type':'format','content':o(_0x442ba2,'*Set\x20link:*\x20%0','\x22'+_0x2c6d56+'\x22')};}return'unlink'==_0x1a3616['commandName']?{'type':'format','content':o(_0x442ba2,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0xa4c963{['afterInit'](){const _0x37d023=this['editor'],_0x40176c=_0x37d023['locale'];if(!_0x37d023['plugins']['has']('LegacyListEditing'))return;const _0x408749=_0x37d023['plugins']['get']('TrackChangesEditing'),_0x4cb874=_0x37d023['plugins']['has']('LegacyTodoListEditing');function _0x2d9562(_0x2cb891){return()=>{const _0xa3bf5=_0x37d023['model']['document']['selection'],_0x3ea094=_0x37d023['commands']['get'](_0x2cb891);if(_0x3ea094['value'])return void _0x37d023['execute']('paragraph',{});const _0x3ce415=_0x2cb891['slice'](0x0,-0x4),_0x3707a1=function(_0x46aff6,_0x142287,_0xed23c2){let _0x2ec862=Array['from'](_0x46aff6)['filter'](_0x2eb523=>function(_0x9dfcac,_0xeff8f1){return _0xeff8f1['checkChild'](_0x9dfcac['parent'],'listItem')&&!_0xeff8f1['isObject'](_0x9dfcac);}(_0x2eb523,_0xed23c2));_0x2ec862=_0x2ec862['filter'](_0x8f2bc1=>!_0x8f2bc1['is']('element','listItem')||_0x8f2bc1['getAttribute']('listType')!=_0x142287);const _0x16ffdd=new Set();for(const _0xb09fa7 of _0x2ec862)_0xb09fa7['is']('element','listItem')?_0x16ffdd['add'](Le(_0xb09fa7)):_0x16ffdd['add'](_0xb09fa7);return Array['from'](_0x16ffdd);}(_0xa3bf5['getSelectedBlocks'](),_0x3ce415,_0x37d023['model']['schema']);_0x37d023['model']['change'](()=>{for(const _0x45b397 of _0x3707a1)_0x408749['markBlockFormat'](_0x45b397,{'commandName':_0x2cb891,'commandParams':[{'forceValue':!_0x3ea094['value']}],'formatGroupId':'blockName'},Ee(_0x45b397));});};}function _0xced49f(_0x48f98b){return()=>{const _0x12d570=function(_0x2b2138){let _0x924d68=Array['from'](_0x2b2138);const _0x279171=_0x924d68['findIndex'](_0x13d92e=>'listItem'!=_0x13d92e['name']);return _0x279171>-0x1&&(_0x924d68=_0x924d68['slice'](0x0,_0x279171)),_0x924d68;}(_0x37d023['model']['document']['selection']['getSelectedBlocks']()),_0x27f9d5=_0x37d023['model']['createRange'](_0x37d023['model']['createPositionAt'](_0x12d570[0x0],'before'),_0x37d023['model']['createPositionAt'](_0x12d570[_0x12d570['length']-0x1],'end'));_0x37d023['model']['change'](()=>{_0x408749['markBlockFormat'](_0x27f9d5,{'commandName':_0x48f98b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x306805){const _0x1295e6=new Set();for(const _0x2cb19d of _0x306805){let _0x5c228c=_0x2cb19d['nextSibling'];for(;_0x5c228c&&_0x5c228c['getAttribute']('listIndent')>_0x2cb19d['getAttribute']('listIndent');)_0x1295e6['add'](_0x5c228c),_0x5c228c=_0x5c228c['nextSibling'];}return Array['from'](_0x1295e6);}(_0x12d570));});};}_0x408749['enableCommand']('numberedList',_0x2d9562('numberedList')),_0x408749['enableCommand']('bulletedList',_0x2d9562('bulletedList')),_0x4cb874&&_0x408749['enableCommand']('todoList',_0x2d9562('todoList')),_0x408749['enableCommand']('indentList',_0xced49f('indentList')),_0x408749['enableCommand']('outdentList',_0xced49f('outdentList')),_0x4cb874&&_0x408749['enableCommand']('checkTodoList',()=>{const _0x1e36fa=_0x37d023['commands']['get']('checkTodoList'),_0x1de789=Array['from'](_0x1e36fa['_selectedElements']);_0x1de789['filter'](_0x17d7e4=>_0x17d7e4['getAttribute']('todoListChecked')!=_0x1e36fa['value']),_0x37d023['model']['change'](()=>{for(const _0x118ded of _0x1de789)_0x408749['markBlockFormat'](_0x118ded,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1e36fa['value']}]});});}),_0x408749['descriptionFactory']['registerElementLabel']('listItem',_0x15fe40=>o(_0x40176c,'ELEMENT_LIST_ITEM',_0x15fe40)),_0x408749['descriptionFactory']['registerDescriptionCallback'](_0x27010c=>{if('formatBlock'!=_0x27010c['type']&&'formatInline'!=_0x27010c['type'])return;const {data:_0x1ec03b}=_0x27010c;if(_0x1ec03b){if('numberedList'==_0x1ec03b['commandName']||'bulletedList'==_0x1ec03b['commandName']||'todoList'==_0x1ec03b['commandName'])switch(_0x1ec03b['commandName']['replace']('List','')){case'bulleted':return _0xeba7bc(o(_0x40176c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xeba7bc(o(_0x40176c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xeba7bc(o(_0x40176c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1ec03b['commandName'])return{'type':'format','content':o(_0x40176c,'*Indent:*\x20%0',o(_0x40176c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1ec03b['commandName'])return{'type':'format','content':o(_0x40176c,'*Outdent:*\x20%0',o(_0x40176c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1ec03b['commandName'])return _0x1ec03b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40176c,'*Check\x20item*')}:{'type':'format','content':o(_0x40176c,'*Uncheck\x20item*')};}function _0xeba7bc(_0x8d8d2e){return{'type':'format','content':o(_0x40176c,'*Change\x20to:*\x20%0',_0x8d8d2e)};}});}}function Le(_0x5cded8){const _0x892288=_0x5cded8['getAttribute']('listIndent');if(0x0==_0x892288)return _0x5cded8;let _0x400b39=_0x5cded8;for(;_0x5cded8['previousSibling']&&_0x5cded8['previousSibling']['is']('element','listItem');){const _0x5ad7f8=_0x5cded8['previousSibling']['getAttribute']('listIndent');if(_0x5ad7f8==_0x892288)_0x400b39=_0x5cded8['previousSibling'];else{if(_0x5ad7f8<_0x892288)break;}_0x5cded8=_0x5cded8['previousSibling'];}return _0x400b39;}function Ee(_0x3a568b){const _0x2e3696=[];if(_0x3a568b['is']('element','listItem')&&_0x3a568b['getAttribute']('listIndent')>0x0){let _0x48979d=_0x3a568b['nextSibling'];for(;_0x48979d&&'listItem'==_0x48979d['name']&&_0x48979d['getAttribute']('listIndent')==_0x3a568b['getAttribute']('listIndent');)_0x2e3696['push'](_0x48979d),_0x48979d=_0x48979d['nextSibling'];}return _0x2e3696;}class Q extends _0xa4c963{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5456c3=this['editor']['config']['get']('list.properties'),_0x484bc3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5456c3['styles']&&_0x484bc3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5456c3['reversed']&&_0x484bc3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5456c3['startIndex']&&_0x484bc3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x484bc3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x584c97,_0x460af6={}){const _0x10da2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58eee8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x10da2b['markMultiRangeBlockFormat'](_0x58eee8,{'commandName':'listStyle','commandParams':[{'type':_0x460af6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x52e453,_0x579c07={}){const _0x2634cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc6093c=this['_getSuggestionBlocks'](_0x417d18=>_0x417d18['is']('element','listItem')&&'numbered'===_0x417d18['getAttribute']('listType'));if(_0xc6093c['length']<0x1)return;const _0xd43a68=_0xc6093c['map'](_0x24fa8c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24fa8c,'before'),this['editor']['model']['createPositionAt'](_0x24fa8c,0x0)));this['editor']['model']['change'](()=>{_0x2634cb['markMultiRangeBlockFormat'](_0xd43a68,{'commandName':'listReversed','commandParams':[{'reversed':_0x579c07['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3972b7,_0x3ba17d={}){const _0x45ca00=this['editor']['plugins']['get']('TrackChangesEditing'),_0x517314=this['_getSuggestionBlocks'](_0x4bb70d=>_0x4bb70d['is']('element','listItem')&&'numbered'===_0x4bb70d['getAttribute']('listType'));if(_0x517314['length']<0x1)return;const _0x34b510=_0x517314['map'](_0x2ff859=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ff859,'before'),this['editor']['model']['createPositionAt'](_0x2ff859,0x0)));this['editor']['model']['change'](()=>{_0x45ca00['markMultiRangeBlockFormat'](_0x34b510,{'commandName':'listStart','commandParams':[{'startIndex':_0x3ba17d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x37c6db){if('formatBlock'!=_0x37c6db['type']&&'formatInline'!=_0x37c6db['type'])return;const _0x5e0bbf=this['editor']['locale'],{data:_0x2a03f4}=_0x37c6db;if(!_0x2a03f4)return;let _0x3ff74d,_0x36570a;switch(_0x2a03f4['commandName']){case'listStyle':_0x3ff74d='*Change\x20to:*\x20%0',_0x36570a={'type':'format','content':o(_0x5e0bbf,_0x3ff74d,o(_0x5e0bbf,this['_getTranslationKeyForListStyle'](_0x2a03f4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3ff74d=_0x2a03f4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x36570a={'type':'format','content':o(_0x5e0bbf,_0x3ff74d)};break;case'listStart':_0x3ff74d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x36570a={'type':'format','content':o(_0x5e0bbf,_0x3ff74d,_0x2a03f4['commandParams'][0x0]['startIndex'])};}return _0x36570a;}['_getSuggestionBlocksForListStyle'](){const _0xa446d=this['editor']['plugins']['get']('LegacyListUtils');let _0x4d1df4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4d1df4[0x0]?.['is']('element','listItem')&&_0x4d1df4['unshift'](..._0xa446d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4d1df4[_0x4d1df4['length']-0x1]?.['is']('element','listItem')&&_0x4d1df4['push'](..._0xa446d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4d1df4=[...new Set(_0x4d1df4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4d1df4=_0x4d1df4['filter'](_0x2e54c6=>_0x2e54c6['is']('element','listItem'))),_0x4d1df4;}['_getSuggestionBlocks'](_0x381bd7){const _0x3d6090=this['editor']['plugins']['get']('LegacyListUtils');let _0x2e259d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x381bd7)['map'](_0x4b5c98=>{const _0x24f0ce=this['editor']['model']['createPositionAt'](_0x4b5c98,0x0);return[..._0x3d6090['getSiblingNodes'](_0x24f0ce,'backward'),..._0x3d6090['getSiblingNodes'](_0x24f0ce,'forward')];})['flat']();return _0x2e259d=[...new Set(_0x2e259d)],_0x2e259d;}['_getTranslationKeyForListStyle'](_0x78f712){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x78f712)||'default')['toUpperCase']()+'_LIST_'+_0x78f712['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0xa4c963{['afterInit'](){const _0x592c61=this['editor'];if(!_0x592c61['plugins']['has']('MediaEmbedEditing'))return;const _0x4f6a9c=_0x592c61['plugins']['get']('TrackChangesEditing'),_0x525a77=_0x592c61['locale'];_0x4f6a9c['enableCommand']('mediaEmbed'),_0x4f6a9c['descriptionFactory']['registerElementLabel']('media',_0x6f8093=>o(_0x525a77,'ELEMENT_MEDIA',_0x6f8093)),_0x592c61['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2faa54,{writer:_0x2a2b5d,options:_0x128498})=>{if(_0x128498['showSuggestionHighlights'])return _0x2a2b5d['createEmptyElement']('div');},'converterPriority':'high'}),_0x592c61['data']['downcastDispatcher']['on']('attribute:url:media',(_0x24a120,_0x584221,_0x114e02)=>{_0x114e02['options']['showSuggestionHighlights']&&_0x24a120['stop']();},{'priority':'high'});}}class mt extends _0xa4c963{['afterInit'](){const _0x2a1a68=this['editor'];_0x2a1a68['plugins']['has']('MentionEditing')&&_0x2a1a68['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0xa4c963{['afterInit'](){const _0x537756=this['editor'];if(!_0x537756['plugins']['has']('MergeFieldsEditing'))return;_0x537756['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x537756['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x29a01f=_0x537756['plugins']['get']('TrackChangesEditing'),_0x56c779=_0x537756['locale'];_0x29a01f['descriptionFactory']['registerElementLabel']('mergeField',_0x2b70ec=>o(_0x56c779,'ELEMENT_MERGE_FIELD',_0x2b70ec)),_0x29a01f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1e961c=>o(_0x56c779,'ELEMENT_MERGE_FIELD',_0x1e961c)),_0x29a01f['descriptionFactory']['registerDescriptionCallback'](_0x20efdc=>{if('insertion'!=_0x20efdc['type']&&'deletion'!=_0x20efdc['type'])return;const _0x5267cd=_0x20efdc['getContainedElement']();if(null==_0x5267cd)return;if(!_0x5267cd['is']('element','mergeField')&&!_0x5267cd['is']('element','mergeFieldBlock'))return;const _0x16f38a=_0x537756['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5267cd['getAttribute']('id'));return'insertion'==_0x20efdc['type']?{'type':'insertion','content':o(_0x56c779,'*Insert:*\x20%0','\x22'+_0x16f38a+'\x22\x20'+o(_0x56c779,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x56c779,'*Remove:*\x20%0','\x22'+_0x16f38a+'\x22\x20'+o(_0x56c779,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0xa4c963{['afterInit'](){const _0x1d8df5=this['editor'],_0xfaa014=_0x1d8df5['plugins']['get']('TrackChangesEditing');_0x1d8df5['plugins']['has']('MultiLevelList')&&(_0xfaa014['enableDefaultAttributesIntegration']('multiLevelList'),_0xfaa014['registerBlockAttribute']('listMarkerStyle'),_0xfaa014['descriptionFactory']['registerDescriptionCallback'](_0x15bf5d=>this['handleDescriptions'](_0x15bf5d)));}['handleDescriptions'](_0x405872){const _0x32aed1=this['editor']['locale'],{data:_0x344b1d}=_0x405872,_0x134f18={'type':'format','content':''};if(_0x344b1d&&'listMarkerStyle'==_0x344b1d['key']){if(!_0x344b1d['oldValue'])return{'type':'format','content':o(_0x32aed1,'*Set\x20format:*\x20%0',o(_0x32aed1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x344b1d['newValue']+')'};if(!_0x344b1d['newValue']){let _0x107c7a=_0x405872['head'];for(;_0x107c7a;){if(_0x107c7a['data']&&'listType'==_0x107c7a['data']['key']&&_0x107c7a['data']['newValue'])return _0x134f18;_0x107c7a=_0x107c7a['next'];}return{'type':'format','content':o(_0x32aed1,'*Remove\x20format:*\x20%0',o(_0x32aed1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x344b1d['oldValue']+')'};}}}}class kt extends _0xa4c963{['afterInit'](){const _0x571afd=this['editor'];if(!_0x571afd['plugins']['has']('PageBreakEditing'))return;_0x571afd['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x15bd6c=_0x571afd['plugins']['get']('TrackChangesEditing'),_0x3ea45f=_0x571afd['locale'];_0x15bd6c['descriptionFactory']['registerElementLabel']('pageBreak',_0x4b9df7=>o(_0x3ea45f,'ELEMENT_PAGE_BREAK',_0x4b9df7));}}class bt extends _0xa4c963{['afterInit'](){const _0x1949e9=this['editor'];if(!_0x1949e9['plugins']['has']('Paragraph'))return;const _0x5b4d79=_0x1949e9['locale'],_0x49f135=_0x1949e9['plugins']['get']('TrackChangesEditing');_0x49f135['descriptionFactory']['registerElementLabel']('paragraph',_0x4e3087=>o(_0x5b4d79,'ELEMENT_PARAGRAPH',_0x4e3087)),_0x49f135['enableDefaultAttributesIntegration']('paragraph'),_0x49f135['enableCommand']('insertParagraph'),_0x1949e9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1949e9),{'priority':'highest'}),_0x1949e9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1f3dc6,_0x1966ed,_0x444826)=>{_0x444826['options']['showSuggestionHighlights']&&nr(_0x1949e9,{'showActiveMarker':!0x1})(_0x1f3dc6,_0x1966ed,_0x444826);},{'priority':'highest'});const _0x493dbe=_0x49f135['descriptionFactory'];_0x493dbe['registerDescriptionCallback'](_0x45da30=>{if('insertion'!==_0x45da30['type'])return;const {start:_0x456347,end:_0x54f408}=_0x45da30['getFirstRange']();if(!_0x456347['isTouching'](_0x54f408)||!_0x456347['nodeAfter'])return;const _0x115782=_0x1949e9['model']['schema'],_0x2463e7=_0x456347['nodeAfter'];return _0x115782['isBlock'](_0x2463e7)&&!_0x115782['isLimit'](_0x2463e7)&&_0x115782['checkChild'](_0x2463e7,'$text')?{'type':'insertion','content':o(_0x5b4d79,'*Insert:*\x20%0',_0x493dbe['getItemLabel'](_0x2463e7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc5ce25=this['editor'],_0x19fecf=_0xc5ce25['locale'];_0xc5ce25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc29c99=>{if('formatBlock'!=_0xc29c99['type'])return;const {data:_0x40b34e}=_0xc29c99;return _0x40b34e&&'paragraph'==_0x40b34e['commandName']?{'type':'format','content':o(_0x19fecf,'*Change\x20to:*\x20%0',o(_0x19fecf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x16c4d0,{showActiveMarker:_0x438a81=!0x0}={}){return(_0x362edf,_0x223fb9,_0x3539be)=>{const _0x86a47=_0x16c4d0['plugins']['get']('TrackChangesEditing'),_0x2fb367=_0x223fb9['markerRange']['start'],_0x588949=_0x223fb9['markerRange']['end'],_0x39fcb3=_0x16c4d0['model']['schema'];if(!_0x2fb367['isTouching'](_0x588949)||!_0x2fb367['nodeAfter'])return;const _0xe06666=_0x2fb367['nodeAfter'];if(_0x39fcb3['isBlock'](_0xe06666)&&!_0x39fcb3['isLimit'](_0xe06666)&&_0x39fcb3['checkChild'](_0xe06666,'$text')){if(!_0x3539be['consumable']['consume'](_0x223fb9['markerRange'],_0x362edf['name']))return;const {authorId:_0x939c5e}=_0x86a47['_splitMarkerName'](_0x223fb9['markerName']),_0x2eeabb=_0x3539be['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x939c5e}),_0x4e8860=_0x3539be['mapper']['toViewPosition'](_0x588949);_0x438a81&&_0x86a47['activeMarkers']['includes'](_0x223fb9['markerName'])&&_0x3539be['writer']['addClass']('ck-suggestion-marker--active',_0x2eeabb),_0x3539be['writer']['insert'](_0x4e8860,_0x2eeabb),_0x3539be['mapper']['bindElementToMarker'](_0x2eeabb,_0x223fb9['markerName']);}};}class yt extends _0xa4c963{['afterInit'](){const _0x257eb4=this['editor'];if(!_0x257eb4['plugins']['has']('RemoveFormatEditing'))return;_0x257eb4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xeae588=this['editor'];_0xeae588['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42cf2f=>{if('formatBlock'!=_0x42cf2f['type']&&'formatInline'!=_0x42cf2f['type'])return;const {data:_0x471762}=_0x42cf2f;return _0x471762&&'removeFormat'==_0x471762['commandName']?{'type':'format','content':o(_0xeae588['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0xa4c963{['afterInit'](){const _0x34dc2b=this['editor'];if(!_0x34dc2b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x38d01e=_0x34dc2b['plugins']['get']('TrackChangesEditing');_0x38d01e['enableCommand']('goToPreviousRestrictedEditingException'),_0x38d01e['enableCommand']('goToNextRestrictedEditingException');const _0x4f09c0=_0x34dc2b['plugins']['get']('RestrictedEditingModeEditing');_0x4f09c0['enableCommand']('trackChanges'),_0x4f09c0['enableCommand']('acceptSuggestion'),_0x4f09c0['enableCommand']('discardSuggestion'),_0x4f09c0['enableCommand']('acceptAllSuggestions'),_0x4f09c0['enableCommand']('discardAllSuggestions'),_0x4f09c0['enableCommand']('acceptSelectedSuggestions'),_0x4f09c0['enableCommand']('discardSelectedSuggestions');}}class St extends _0xa4c963{static get['requires'](){return[_0x37f999];}['init'](){const _0x7a7c69=this['editor'],_0xdaa33e=_0x7a7c69['plugins']['get']('TrackChangesEditing');_0xdaa33e['enableCommand']('shiftEnter'),_0x7a7c69['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x7a7c69),{'priority':'high'}),_0x7a7c69['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x7a7c69),{'priority':'high'}),_0x7a7c69['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24e107,_0x12c33b,_0x2a0ca1)=>{_0x2a0ca1['options']['showSuggestionHighlights']&&ke(_0x7a7c69,{'showActiveMarker':!0x1})(_0x24e107,_0x12c33b,_0x2a0ca1);}),_0xdaa33e['descriptionFactory']['registerElementLabel']('softBreak',_0x2cd6c5=>o(_0x7a7c69['locale'],'ELEMENT_LINE_BREAK',_0x2cd6c5));}}function ke(_0x8f0059,{showActiveMarker:_0x5d7266=!0x0}={}){return(_0x12f2b2,_0x961e16,_0x464d04)=>{const _0x4e6189=_0x8f0059['plugins']['get']('TrackChangesEditing');if(!_0x464d04['consumable']['test'](_0x961e16['markerRange'],_0x12f2b2['name']))return;const _0x1b75c9=_0x8f0059['model'];for(const _0x59cc7b of _0x961e16['markerRange']['getItems']()){if(!_0x59cc7b['is']('element','softBreak'))continue;const _0x267c06='deletion'==_0x961e16['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xbf4f24}=_0x4e6189['_splitMarkerName'](_0x961e16['markerName']),_0x2eb8c8=_0x464d04['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x267c06,'data-author-id':_0xbf4f24}),_0x4655e4=_0x464d04['mapper']['toViewPosition'](_0x1b75c9['createPositionBefore'](_0x59cc7b));_0x5d7266&&_0x4e6189['activeMarkers']['includes'](_0x961e16['markerName'])&&_0x464d04['writer']['addClass']('ck-suggestion-marker--active',_0x2eb8c8),_0x464d04['writer']['insert'](_0x4655e4,_0x2eb8c8),_0x464d04['mapper']['bindElementToMarker'](_0x2eb8c8,_0x961e16['markerName']);}};}class At extends _0xa4c963{['afterInit'](){const _0xd3893f=this['editor'],_0x12e902=_0xd3893f['model'],_0x17102a=_0xd3893f['locale'];if(!_0xd3893f['plugins']['has']('StandardEditingModeEditing'))return;const _0x226a0b=_0xd3893f['plugins']['get']('TrackChangesEditing'),_0x957522='restrictedEditingException',_0x3cb477=_0xd3893f['commands']['get'](_0x957522);_0x226a0b['enableCommand'](_0x957522,(_0x526f44,_0x589126={})=>{const _0x40aa5f=_0x12e902['document']['selection'];if(_0x40aa5f['isCollapsed'])return void _0x526f44(_0x589126);const _0x572424=void 0x0!==_0x589126['forceValue']?_0x589126['forceValue']:!_0x3cb477['value'];_0x12e902['change'](()=>{const _0x20ebf3=Array['from'](_0x40aa5f['getRanges']());for(const _0x248ae2 of _0x20ebf3){const _0x1382f1=_0x572424?[_0x248ae2]:io(_0x957522,_0x248ae2,_0x12e902);for(const _0x555e22 of _0x1382f1)_0x226a0b['markInlineFormat'](_0x555e22,{'commandName':_0x957522,'commandParams':[{'forceValue':_0x572424}]});}});}),_0x226a0b['descriptionFactory']['registerDescriptionCallback'](_0x3dbd80=>{if('formatBlock'!=_0x3dbd80['type']&&'formatInline'!=_0x3dbd80['type'])return;const {data:_0x6de474}=_0x3dbd80;return _0x6de474&&_0x6de474['commandName']==_0x957522?_0x6de474['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17102a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x17102a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xa4c963{['afterInit'](){const _0x3fda2a=this['editor'];if(!_0x3fda2a['plugins']['has']('Style')||!_0x3fda2a['plugins']['has']('DataSchema'))return;const _0x218e35=_0x3fda2a['plugins']['get']('TrackChangesEditing'),_0x2c9790=_0x3fda2a['locale'],_0xaefd28=_0x3fda2a['config']['get']('style')||{},_0x58ef2c=_0x3fda2a['plugins']['get']('GeneralHtmlSupport'),_0x967b58=_0x3fda2a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3fda2a['plugins']['get']('DataSchema'),_0xaefd28['definitions']);_0x218e35['enableDefaultAttributesIntegration']('style');const _0x690efb=new Set();for(const _0x2d9bfc of _0x967b58['block']){const _0x312bd7=_0x58ef2c['getGhsAttributeNameForElement'](_0x2d9bfc['element']);_0x690efb['add'](_0x312bd7);}const _0x203414=new Set();for(const _0x452c3b of _0x967b58['inline']){const _0x53cc3f=_0x58ef2c['getGhsAttributeNameForElement'](_0x452c3b['element']);_0x203414['add'](_0x53cc3f);for(const _0x4c1272 of _0x452c3b['ghsAttributes'])_0x203414['add'](_0x4c1272);}for(const _0x4d4d75 of _0x690efb)_0x218e35['registerBlockAttribute'](_0x4d4d75),_0x218e35['descriptionFactory']['registerAttributeLabel'](_0x4d4d75,o(_0x2c9790,'FORMAT_STYLE'));for(const _0x19564a of _0x203414)_0x218e35['registerInlineAttribute'](_0x19564a),_0x218e35['descriptionFactory']['registerAttributeLabel'](_0x19564a,o(_0x2c9790,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc2f59b=this['editor'],_0x125490=_0xc2f59b['locale'];_0xc2f59b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3806ff=>{if('formatBlock'!=_0x3806ff['type']&&'formatInline'!=_0x3806ff['type'])return;const {data:_0x27e1df}=_0x3806ff;return _0x27e1df&&'style'===_0x27e1df['commandName']?_0x27e1df['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x125490,'*Set\x20format:*\x20%0',_0x27e1df['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x125490,'*Remove\x20format:*\x20%0',_0x27e1df['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0xa4c963{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x12c474){super(_0x12c474),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x15ff2e=this['editor'],_0x2b039d=_0x15ff2e['model']['document']['selection'];if(!_0x15ff2e['plugins']['has']('TableEditing'))return;const _0x287122=_0x15ff2e['locale'],_0x219e29=_0x15ff2e['plugins']['get']('TrackChangesEditing'),_0x3b9a71=_0x15ff2e['plugins']['get']('TableUtils');_0x219e29['descriptionFactory']['registerElementLabel']('table',_0x3bd080=>o(_0x287122,'ELEMENT_TABLE',_0x3bd080)),this['_setupColumnsRowsFixing'](),_0x219e29['enableCommand']('insertTable'),_0x219e29['enableCommand']('selectTableRow'),_0x219e29['enableCommand']('selectTableColumn');for(const _0x1fde44 of['insertTableRowAbove','insertTableRowBelow']){const _0x3cbe0c=_0x15ff2e['commands']['get'](_0x1fde44);_0x219e29['enableCommand'](_0x1fde44,_0x508242=>{_0x15ff2e['model']['change'](_0x485a25=>{_0x508242();const _0x333499='above'===_0x3cbe0c['order'],_0x48884e=_0x3b9a71['getSelectionAffectedTableCells'](_0x2b039d),_0x2f5030=_0x3b9a71['getRowIndexes'](_0x48884e),_0x1e8e3e=_0x333499?_0x2f5030['first']-0x1:_0x2f5030['last']+0x1,_0x3356b=_0x48884e[0x0]['findAncestor']('table'),_0x2ca0a5=_0x3b9a71['createTableWalker'](_0x3356b,{'startRow':_0x1e8e3e,'endRow':_0x1e8e3e}),_0xfef772=Array['from'](_0x2ca0a5)['map'](_0x242ecd=>_0x485a25['createRangeOn'](_0x242ecd['cell']));_0x219e29['markMultiRangeInsertion'](_0xfef772,'tableRow');});});}for(const _0x249db5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x569246=_0x15ff2e['commands']['get'](_0x249db5);_0x219e29['enableCommand'](_0x249db5,_0x58bcaa=>{_0x15ff2e['model']['change'](_0x5ca12e=>{_0x58bcaa();const _0x3938b5='left'===_0x569246['order'],_0x197d48=_0x3b9a71['getSelectionAffectedTableCells'](_0x2b039d),_0x395742=_0x3b9a71['getColumnIndexes'](_0x197d48),_0x5320d0=_0x3938b5?_0x395742['first']-0x1:_0x395742['last']+0x1,_0x5a0261=_0x197d48[0x0]['findAncestor']('table'),_0x4bc4b6=_0x3b9a71['createTableWalker'](_0x5a0261,{'startRow':0x0,'column':_0x5320d0,'includeAllSlots':!0x1}),_0x571622=Array['from'](_0x4bc4b6)['map'](_0x552435=>_0x5ca12e['createRangeOn'](_0x552435['cell']));_0x219e29['markMultiRangeInsertion'](_0x571622,'tableColumn');});});}for(const _0x4d7642 of['removeTableRow','removeTableColumn']){const _0x16bf7d=_0x4d7642['substr'](0xb),_0x1dfb38=_0x16bf7d['toLowerCase'](),_0x441a38=_0x1dfb38['substr'](0x0,0x3)+'span',_0xd8194='table'+_0x16bf7d,_0x52ba3a='min'+_0x16bf7d,_0x4d954f='max'+_0x16bf7d;_0x219e29['enableCommand'](_0x4d7642,()=>{_0x15ff2e['model']['change'](_0x524623=>{const _0xa18fba=_0x3b9a71['getSelectionAffectedTableCells'](_0x2b039d),_0x35c689=_0xa18fba[0x0]['findAncestor']('table');let _0x12b6d1;if('removeTableRow'==_0x4d7642){const _0x4e7e27=_0x3b9a71['getRowIndexes'](_0xa18fba);_0x12b6d1={'startRow':_0x4e7e27['first'],'endRow':_0x4e7e27['last'],'includeAllSlots':!0x0};}else{const _0x1ee52d=_0x3b9a71['getColumnIndexes'](_0xa18fba);_0x12b6d1={'startColumn':_0x1ee52d['first'],'endColumn':_0x1ee52d['last'],'includeAllSlots':!0x0};}const _0x399e1b=_0x3b9a71['createTableWalker'](_0x35c689,_0x12b6d1),_0x32aa20=Array['from'](_0x399e1b)['map'](({cell:_0x571941})=>_0x571941),_0x77f198=Re(_0x32aa20['filter'](_0x2e11ab=>_0x2e11ab['hasAttribute'](_0x441a38))),_0xe7de98=Re(_0x32aa20['filter'](_0x3849fc=>!_0x3849fc['hasAttribute'](_0x441a38)))['map'](_0x370e89=>_0x524623['createRangeOn'](_0x370e89)),_0x629aef=_0x219e29['markMultiRangeDeletion'](_0xe7de98,_0xd8194);if(_0x629aef&&('tableRow'==_0x629aef['subType']||'tableColumn'==_0x629aef['subType'])){const _0x1a7b95=this['_getSuggestionCoords'](_0x629aef);for(const _0x11da1a of _0x77f198){const _0x5c5e82=_0x524623['createRangeOn'](_0x11da1a),_0x51a936=_0x3b9a71['getCellLocation'](_0x11da1a),_0x11265a=_0x11da1a['getAttribute'](_0x441a38)-0x1,_0x443cf2=_0x1a7b95[_0x52ba3a],_0x1e6b97=_0x1a7b95[_0x4d954f];_0x443cf2<=_0x51a936[_0x1dfb38]&&_0x51a936[_0x1dfb38]+_0x11265a<=_0x1e6b97&&_0x629aef['addRange'](_0x5c5e82);}}});});}function _0x38050a(_0x5d2604){const _0xe4f88d=Array['from'](_0x2b039d['getRanges']())['map'](_0x20bd04=>_0xac092f['fromRange'](_0x20bd04));_0x15ff2e['model']['change'](_0x33b36f=>{const _0x1668ab=_0x33b36f['batch'];_0x5d2604=_0x5d2604['filter'](_0x189efd=>'$graveyard'!=_0x189efd['root']['rootName']),_0x33b36f['setSelection'](_0x5d2604),_0x15ff2e['commands']['get']('removeTableRow')['refresh'](),_0x15ff2e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x15ff2e['model']['enqueueChange'](()=>{_0x15ff2e['model']['enqueueChange'](_0x1668ab,_0x415b51=>{const _0x27a8a6=_0xe4f88d['filter'](_0x54e4ca=>'$graveyard'!=_0x54e4ca['root']['rootName']);_0x27a8a6['length']>0x0&&_0x415b51['setSelection'](_0x27a8a6);for(const _0x11c587 of _0xe4f88d)_0x11c587['detach']();});});});}function _0x3fb9a2(_0x3f0414){_0x15ff2e['model']['change'](_0xbd90b9=>{const _0x4c9eac=Array['from'](_0x2b039d['getRanges']())['map'](_0x255c3d=>_0xac092f['fromRange'](_0x255c3d)),_0x3d3ecb=[];for(const _0x5bed47 of _0x3f0414)for(const _0x1e80a8 of _0x5bed47['getItems']({'shallow':!0x0}))_0x3d3ecb['push'](_0x1e80a8);for(const _0x4b6726 of _0x3d3ecb)'$graveyard'!=_0x4b6726['root']['rootName']&&(_0xbd90b9['setSelection'](_0xbd90b9['createPositionAt'](_0x4b6726,0x0)),_0x15ff2e['commands']['get']('removeTableColumn')['refresh'](),_0x15ff2e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x55cebd=_0x4c9eac['filter'](_0x154a91=>'$graveyard'!=_0x154a91['root']['rootName']);_0x55cebd['length']>0x0&&_0xbd90b9['setSelection'](_0x55cebd);for(const _0x48a312 of _0x4c9eac)_0x48a312['detach']();});}function _0x3aecc3(_0x225dbc,_0x3fc686){return _0x3fc686['every'](_0x30afe0=>_0x225dbc['some'](_0x19347f=>_0x19347f['end']['isEqual'](_0x30afe0['start'])||_0x30afe0['end']['isEqual'](_0x19347f['start'])));}function _0x53dc2b(_0x16dd0e,_0x21cd26){return!_0x16dd0e['some'](_0x2c65d7=>_0x21cd26['some'](_0x4e1db5=>_0x2c65d7['isIntersecting'](_0x4e1db5)))&&_0x16dd0e['some'](_0x33f471=>_0x21cd26['some'](_0x1f381e=>_0x33f471['end']['isTouching'](_0x1f381e['start'])));}_0x15ff2e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15aa85,_0x26077b,_0x5ecf9a)=>{if(!_0x5ecf9a['options']['showSuggestionHighlights'])return;const _0x4eb19c=_0x26077b['item'];if(!_0x4eb19c)return;const _0xbb25b4=_0x5ecf9a['mapper']['toViewElement'](_0x4eb19c);function _0x254665(_0x21ee39){return Array['isArray'](_0x21ee39)?_0x21ee39:[_0x21ee39];}_0xbb25b4&&'tableCell'===_0x4eb19c['name']&&_0x38e485(_0xbb25b4,_0x5ecf9a['writer'],(_0x1a1b6d,_0x5aded1,_0x330a42)=>_0x330a42['addClass'](_0x254665(_0x5aded1['classes']),_0x1a1b6d),(_0x23c9fd,_0x29b5e0,_0x42ff98)=>_0x42ff98['removeClass'](_0x254665(_0x29b5e0['classes']),_0x23c9fd));},{'priority':'highest'}),_0x219e29['descriptionFactory']['registerDescriptionCallback'](_0x2b3979=>{if('insertion'!=_0x2b3979['type']&&'deletion'!=_0x2b3979['type'])return;const _0x36606d=_0x2b3979['getContainedElement']();if(null!=_0x36606d&&_0x36606d['is']('element','table')){if('insertion'==_0x2b3979['type']){const _0x4a07b7=_0x2b3979['getItems']()['filter'](_0x18acea=>_0x18acea['is']('$textProxy'))['map'](_0x3c2285=>_0x3c2285['data']);if(_0x4a07b7['length'])return{'type':'insertion','content':o(_0x287122,'*Insert:*\x20%0',o(_0x287122,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4a07b7['join']('\x20')+'\x22'))};}if('deletion'==_0x2b3979['type']){const _0x3d075d=_0x2b3979['getItems']()['filter'](_0x34ad56=>_0x34ad56['is']('$textProxy'))['map'](_0x7b18b4=>_0x7b18b4['data']);if(_0x3d075d['length'])return{'type':'deletion','content':o(_0x287122,'*Remove:*\x20%0',o(_0x287122,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3d075d['join']('\x20')+'\x22'))};}}}),_0x219e29['descriptionFactory']['registerDescriptionCallback'](_0x14f16b=>{if('tableRow'==_0x14f16b['subType']){const _0x579e95=_0x14f16b['getItems']()['filter'](_0x20c935=>_0x20c935['is']('$textProxy'))['map'](_0x49d1bd=>_0x49d1bd['data']),_0x2f0aed=this['_getSuggestionCoords'](_0x14f16b),_0x274602=_0x2f0aed['maxRow']-_0x2f0aed['minRow']+0x1;if('insertion'==_0x14f16b['type'])return _0x579e95['length']?{'type':'insertion','content':o(_0x287122,'*Insert:*\x20%0',o(_0x287122,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x274602,'\x22'+_0x579e95['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x287122,'*Insert:*\x20%0',o(_0x287122,'ELEMENT_TABLE_ROW',_0x274602))};if('deletion'==_0x14f16b['type'])return _0x579e95['length']?{'type':'deletion','content':o(_0x287122,'*Remove:*\x20%0',o(_0x287122,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x274602,'\x22'+_0x579e95['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x287122,'*Remove:*\x20%0',o(_0x287122,'ELEMENT_TABLE_ROW',_0x274602))};}if('tableColumn'==_0x14f16b['subType']){const _0x21e39a=_0x14f16b['getItems']()['filter'](_0x54d032=>_0x54d032['is']('$textProxy'))['map'](_0x1ae282=>_0x1ae282['data']),_0x5bef8b=this['_getSuggestionCoords'](_0x14f16b),_0x50c685=_0x5bef8b['maxColumn']-_0x5bef8b['minColumn']+0x1;if('insertion'==_0x14f16b['type'])return _0x21e39a['length']?{'type':'insertion','content':o(_0x287122,'*Insert:*\x20%0',o(_0x287122,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x50c685,'\x22'+_0x21e39a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x287122,'*Insert:*\x20%0',o(_0x287122,'ELEMENT_TABLE_COLUMN',_0x50c685))};if('deletion'==_0x14f16b['type'])return _0x21e39a['length']?{'type':'deletion','content':o(_0x287122,'*Remove:*\x20%0',o(_0x287122,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x50c685,'\x22'+_0x21e39a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x287122,'*Remove:*\x20%0',o(_0x287122,'ELEMENT_TABLE_COLUMN',_0x50c685))};}}),_0x219e29['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x38050a),_0x219e29['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x38050a),_0x219e29['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3fb9a2),_0x219e29['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3fb9a2),_0x219e29['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3aecc3),_0x219e29['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3aecc3),_0x219e29['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x53dc2b),_0x219e29['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x53dc2b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x53bbcb=this['editor'],_0x108ade=_0x53bbcb['model']['document']['selection'];return(_0x1f089e,_0x24220f)=>{_0x53bbcb['model']['change'](_0x4865fb=>{const {commandName:_0x4e7a0f,commandParams:_0x5b6d12}=_0x24220f;let _0x1faf5f=_0x1f089e[0x0]['end']['nodeBefore'];_0x5b6d12&&_0x5b6d12[0x0]&&!0x1===_0x5b6d12[0x0]['forceValue']&&(_0x1faf5f=_0x1f089e[0x0]['start']['nodeAfter']);const _0x3f19cc=_0x4865fb['createRangeIn'](_0x1faf5f);if('$graveyard'==_0x3f19cc['root']['rootName'])return;const _0x4339ea=Array['from'](_0x108ade['getRanges']())['map'](_0x584bfb=>_0xac092f['fromRange'](_0x584bfb));_0x4865fb['setSelection'](_0x3f19cc),_0x53bbcb['commands']['get'](_0x4e7a0f)['refresh'](),_0x5b6d12['push']({'forceDefaultExecution':!0x0}),_0x53bbcb['execute'](_0x4e7a0f,..._0x5b6d12);const _0x2bfaf8=_0x4339ea['filter'](_0x153931=>'$graveyard'!=_0x153931['root']['rootName']);_0x2bfaf8['length']>0x0&&_0x4865fb['setSelection'](_0x2bfaf8);for(const _0x14b4dc of _0x4339ea)_0x14b4dc['detach']();});};}['_getCoordsForCells'](_0x4ba23b){const _0x45a76a=this['editor']['plugins']['get']('TableUtils');let _0x1d3fd5=Number['MAX_SAFE_INTEGER'],_0x5b8774=Number['MIN_SAFE_INTEGER'],_0x3634f0=Number['MAX_SAFE_INTEGER'],_0x4c73c0=Number['MIN_SAFE_INTEGER'];for(const _0x11a2e0 of _0x4ba23b){if('$graveyard'==_0x11a2e0['root']['rootName'])continue;const {row:_0xbde66a,column:_0x4a3498}=_0x45a76a['getCellLocation'](_0x11a2e0),_0x2648f9=_0x11a2e0['hasAttribute']('rowspan')?_0x11a2e0['getAttribute']('rowspan')-0x1:0x0,_0x434e12=_0x11a2e0['hasAttribute']('colspan')?_0x11a2e0['getAttribute']('colspan')-0x1:0x0;_0x1d3fd5=_0xbde66a<_0x1d3fd5?_0xbde66a:_0x1d3fd5,_0x5b8774=_0xbde66a+_0x2648f9>_0x5b8774?_0xbde66a+_0x2648f9:_0x5b8774,_0x3634f0=_0x4a3498<_0x3634f0?_0x4a3498:_0x3634f0,_0x4c73c0=_0x4a3498+_0x434e12>_0x4c73c0?_0x4a3498+_0x434e12:_0x4c73c0;}return{'minRow':_0x1d3fd5,'maxRow':_0x5b8774,'minColumn':_0x3634f0,'maxColumn':_0x4c73c0};}['_setupColumnsRowsFixing'](){const _0x2f96f5=this['editor'],_0x128654=_0x2f96f5['plugins']['get']('TrackChangesEditing'),_0x2d0690=_0x2f96f5['plugins']['get']('TableUtils');_0x2f96f5['model']['document']['on']('change:data',()=>{const _0x5c2206=Array['from'](_0x2f96f5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24f21e,data:_0x1c63cc}of _0x5c2206){const {group:_0x5409c6,id:_0x586665,subType:_0x47e277}=_0x128654['_splitMarkerName'](_0x24f21e);if('suggestion'!=_0x5409c6)continue;if(null!=_0x1c63cc['oldRange'])continue;const _0x4667d7=_0x128654['getSuggestion'](_0x586665);this['_tablePostFixingSubtypes']['includes'](_0x47e277)&&this['_tableSuggestions']['add'](_0x4667d7);}},{'priority':'low'});const _0x3c7886=(_0xd86b70,_0x343298)=>{let _0x1cdc8a=!0x1;const _0x5908d5=_0x343298['createRangeOn'](_0xd86b70),_0x2a1d02=_0xd86b70['findAncestor']('table'),_0x32b596=_0x2d0690['getCellLocation'](_0xd86b70);for(const _0x38f14c of this['_tableSuggestions']){const _0x20ac1f=_0x38f14c['subType'],_0x1ff97c=_0x20ac1f['startsWith']('tablePaste'),_0x57b144=_0x20ac1f['substr'](_0x1ff97c?0xa:0x5),_0x12f395=_0x57b144['toLowerCase'](),_0xe3fb0c=_0x12f395['substr'](0x0,0x3)+'span',_0x4ccca='min'+_0x57b144,_0x41c7c1='max'+_0x57b144;if(!_0x38f14c['isInContent'])continue;if(_0x2a1d02!=_0x38f14c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x38f14c['isIntersectingWithRange'](_0x5908d5))continue;const _0x2f7570=_0xd86b70['hasAttribute'](_0xe3fb0c)?_0xd86b70['getAttribute'](_0xe3fb0c)-0x1:0x0,_0x5df024=this['_getSuggestionCoords'](_0x38f14c),_0x236f0b=_0x5df024[_0x4ccca],_0xb26332=_0x5df024[_0x41c7c1];_0x236f0b<=_0x32b596[_0x12f395]&&_0x32b596[_0x12f395]+_0x2f7570<=_0xb26332&&(_0x38f14c['addRange'](_0x5908d5),_0x1cdc8a=!0x0);}return _0x1cdc8a;};_0x2f96f5['model']['document']['registerPostFixer'](_0xfbc213=>{let _0x3ab429=!0x1;for(const _0x24713c of _0x2f96f5['model']['document']['differ']['getChanges']())if('insert'==_0x24713c['type']){if('tableRow'==_0x24713c['name']){for(const _0x3de31d of _0x24713c['position']['nodeAfter']['getChildren']())_0x3ab429=_0x3ab429||_0x3c7886(_0x3de31d,_0xfbc213);}else'tableCell'==_0x24713c['name']&&(_0x3ab429=_0x3ab429||_0x3c7886(_0x24713c['position']['nodeAfter'],_0xfbc213));}return _0x3ab429;});}['_getSuggestionCoords'](_0x786130){return this['_getCoordsForCells'](_0x786130['getRanges']()['map'](_0x5d0e85=>_0x5d0e85['start']['nodeAfter']));}}function Re(_0x2652a5){return Array['from'](new Set(_0x2652a5)['values']());}class _t extends _0xa4c963{static get['requires'](){return[vt];}['afterInit'](){const _0x2378c7=this['editor'],_0x2eb372=_0x2378c7['model']['document']['selection'],_0x53d760=_0x2378c7['locale'];if(!_0x2378c7['plugins']['has']('TableEditing'))return;const _0x5c8950=_0x2378c7['plugins']['get']('TrackChangesEditing'),_0x1bdd95=_0x2378c7['plugins']['get']('TableUtils'),_0x703236=_0x2378c7['plugins']['get'](vt);_0x703236['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5c8950['enableCommand']('mergeTableCells',()=>{const _0x15af47=_0x1bdd95['getSelectionAffectedTableCells'](_0x2378c7['model']['document']['selection']);_0x2378c7['model']['change'](()=>{_0x5c8950['markMultiRangeBlockFormat'](_0x15af47,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2378c7['commands']['get']('mergeTableCells')['on']('execute',(_0x497cf6,_0x3aea16)=>{_0x2378c7['commands']['get']('trackChanges')['value']&&(_0x3aea16['length']>0x0&&_0x3aea16[_0x3aea16['length']-0x1]&&_0x3aea16[_0x3aea16['length']-0x1]['forceDefaultExecution']||_0x5c8950['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x497cf6['stop']());},{'priority':'highest'});for(const _0x15d630 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1e06aa=_0x2378c7['commands']['get'](_0x15d630);_0x5c8950['enableCommand'](_0x15d630,()=>{const _0x4f6eee=_0x2378c7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x17ff87=>_0x17ff87['is']('element','tableCell')),_0x105481=_0x1e06aa['value'];_0x2378c7['model']['change'](()=>{_0x5c8950['markMultiRangeBlockFormat']([_0x4f6eee,_0x105481],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2c729a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x14f4cc=_0x2378c7['commands']['get'](_0x2c729a);_0x5c8950['enableCommand'](_0x2c729a,()=>{const _0x342e05=_0x1bdd95['getSelectionAffectedTableCells'](_0x2378c7['model']['document']['selection'])[0x0],_0x2c13db=_0x342e05['findAncestor']('table'),{column:_0x519494,row:_0x52db98}=_0x1bdd95['getCellLocation'](_0x342e05);let _0x47fda9=[];if('horizontally'==_0x14f4cc['direction']){const _0x408fe9=_0x1bdd95['createTableWalker'](_0x2c13db,{'startRow':_0x52db98,'endRow':_0x52db98,'includeAllSlots':!0x0});_0x47fda9=Array['from'](_0x408fe9)['map'](_0x52387b=>_0x52387b['cell']);}else{const _0x5561db=_0x1bdd95['createTableWalker'](_0x2c13db,{'column':_0x519494,'includeAllSlots':!0x0});_0x47fda9=Array['from'](_0x5561db)['map'](_0x586428=>_0x586428['cell']);}_0x2378c7['model']['change'](_0x5a9604=>{_0x5c8950['markBlockFormat'](_0x5a9604['createRangeOn'](_0x342e05),{'commandName':_0x2c729a,'commandParams':[]},_0x47fda9,_0x2c729a);});});}_0x5c8950['descriptionFactory']['registerDescriptionCallback'](_0x3ce902=>{if('formatBlock'!=_0x3ce902['type']&&'formatInline'!=_0x3ce902['type'])return;const {data:_0x549b7f}=_0x3ce902;return _0x549b7f&&'mergeTableCells'==_0x549b7f['commandName']?{'type':'format','content':o(_0x53d760,'*Merge\x20cells*')}:void 0x0;}),_0x5c8950['descriptionFactory']['registerDescriptionCallback'](_0x385992=>{if('formatBlock'!=_0x385992['type']&&'formatInline'!=_0x385992['type'])return;const {data:_0x2c5043}=_0x385992;return _0x2c5043?'splitTableCellVertically'==_0x2c5043['commandName']?{'type':'format','content':o(_0x53d760,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2c5043['commandName']?{'type':'format','content':o(_0x53d760,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x573d77=_0x703236['_acceptFormatSuggestionCallbackFactory']();for(const _0x1bf589 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5c8950['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1bf589,'accept',_0x573d77);for(const _0x52a812 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5c8950['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x52a812,'accept',_0x573d77);_0x5c8950['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x45d2f6=>{_0x2378c7['model']['change'](_0x3ec558=>{const _0x26ba75=Array['from'](_0x2eb372['getRanges']())['map'](_0x105623=>_0xac092f['fromRange'](_0x105623));_0x3ec558['setSelection'](_0x45d2f6),_0x2378c7['commands']['get']('mergeTableCells')['refresh'](),_0x2378c7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1aeee7=_0x26ba75['filter'](_0x452ced=>'$graveyard'!=_0x452ced['root']['rootName']);_0x1aeee7['length']>0x0&&_0x3ec558['setSelection'](_0x1aeee7);for(const _0x224d8e of _0x26ba75)_0x224d8e['detach']();});});for(const _0x4069de of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x56ceb6=_0x2378c7['commands']['get'](_0x4069de);_0x56ceb6['on']('set:isEnabled',(_0x4a55c8,_0x814449,_0x463587)=>{if(_0x463587){const _0x50f8bc=_0x2378c7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x596b19=>_0x596b19['is']('element','tableCell'));this['_areMergableCells'](_0x56ceb6['value'],_0x50f8bc)||(_0x4a55c8['return']=!0x1,_0x4a55c8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x54672e=this['editor']['commands']['get']('mergeTableCells'),_0x427748=this['editor']['plugins']['get']('TableUtils');if(!_0x54672e['isEnabled'])return!0x1;const _0x7556dd=_0x427748['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x429d6f of _0x7556dd)for(const _0x387faa of _0x7556dd)if(_0x429d6f!=_0x387faa&&!this['_areMergableCells'](_0x429d6f,_0x387faa))return!0x1;return!0x0;}['_areMergableCells'](_0x35e0fa,_0x22a228){const _0x2caab8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b199=this['editor']['model']['createRangeOn'](_0x35e0fa),_0x409a7d=this['editor']['model']['createRangeOn'](_0x22a228),_0x365d78=new Set(),_0x5bcacc=new Set();for(const _0x31fb06 of _0x2caab8['getSuggestions']())if(('insertion'==_0x31fb06['type']||'deletion'==_0x31fb06['type']||'mergeTableCells'==_0x31fb06['subType'])&&_0x31fb06['isInContent']){for(const _0x231f87 of _0x31fb06['getRanges']())_0x231f87['containsRange'](_0x5b199,!0x0)&&_0x365d78['add'](_0x31fb06['type']+':'+_0x31fb06['author']['id']),_0x231f87['containsRange'](_0x409a7d,!0x0)&&_0x5bcacc['add'](_0x31fb06['type']+':'+_0x31fb06['author']['id']);}if(_0x365d78['size']!=_0x5bcacc['size'])return!0x1;for(const _0xf57757 of _0x365d78)if(!_0x5bcacc['has'](_0xf57757))return!0x1;return!0x0;}}class Ct extends _0xa4c963{static get['requires'](){return[vt];}['afterInit'](){const _0x502d51=this['editor'];if(!_0x502d51['plugins']['has']('TableEditing'))return;const _0x35c8e6=_0x502d51['locale'],_0x7bef9c=_0x502d51['plugins']['get']('TrackChangesEditing');_0x7bef9c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x7bef9c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x7bef9c['registerBlockAttribute']('headingRows'),_0x7bef9c['registerBlockAttribute']('headingColumns'),_0x7bef9c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x35c8e6,'FORMAT_HEADER_ROW')),_0x7bef9c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x35c8e6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2413b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e8427=this['editor']['plugins']['get']('TableUtils'),_0x5495cd=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x26edb4({showActiveMarker:_0x1da484=!0x0,setDataAttribute:_0x1c484f=!0x0}={}){return(_0x14ad2b,_0x305707,_0x2d24c9)=>{const {type:_0x55da88,id:_0x1061d0}=_0x2413b0['_splitMarkerName'](_0x305707['markerName']),_0x1215a6=_0x2413b0['getSuggestion'](_0x1061d0),_0x354f88=_0x1215a6['data'];if('formatBlock'!=_0x1215a6['type']||!_0x354f88||'setTableColumnHeader'!=_0x354f88['commandName'])return;if(_0x305707['item'])return void _0x14ad2b['stop']();if(!_0x2d24c9['consumable']['consume'](_0x305707['markerRange'],_0x14ad2b['name']))return;const _0x395171=_0x305707['markerRange']['start']['nodeAfter'],_0x5e0209=_0x305707['markerRange']['end']['nodeBefore'],_0xc381c2=_0x395171['parent']['parent'],{column:_0xb60666}=_0x3e8427['getCellLocation'](_0x395171),{column:_0x36513e}=_0x3e8427['getCellLocation'](_0x5e0209);for(let _0x2534cb=_0xb60666;_0x2534cb<=_0x36513e;_0x2534cb++){const _0x47ece4=_0x3e8427['createTableWalker'](_0xc381c2,{'column':_0x2534cb,'includeAllSlots':!0x1});for(const _0x2f54cd of _0x47ece4){const _0x1a8aef=_0x2f54cd['cell'],_0x33814d=_0x2d24c9['mapper']['toViewElement'](_0x1a8aef);_0x2d24c9['writer']['addClass']('ck-suggestion-marker-'+_0x55da88,_0x33814d),_0x1c484f&&_0x2d24c9['writer']['setAttribute']('data-suggestion',_0x1061d0,_0x33814d),_0x2d24c9['mapper']['bindElementToMarker'](_0x33814d,_0x305707['markerName']),_0x1da484&&(_0x2413b0['activeMarkers']['includes'](_0x305707['markerName'])?_0x2d24c9['writer']['addClass']('ck-suggestion-marker--active',_0x33814d):_0x2d24c9['writer']['removeClass']('ck-suggestion-marker--active',_0x33814d));}}};}_0x2413b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5495cd),_0x2413b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5495cd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x26edb4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x540572,_0x74634d,_0xcb5cb8)=>{_0xcb5cb8['options']['showSuggestionHighlights']&&_0x26edb4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x540572,_0x74634d,_0xcb5cb8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x84a8a5,_0x31f87a,_0xfcf254)=>{const {type:_0x469746,id:_0x3a933a}=_0x2413b0['_splitMarkerName'](_0x31f87a['markerName']),_0x1157a1=_0x2413b0['getSuggestion'](_0x3a933a),_0x6c2a22=_0x1157a1['data'];if('formatBlock'!=_0x1157a1['type']||!_0x6c2a22||'setTableColumnHeader'!=_0x6c2a22['commandName'])return;const _0x4225b9=_0xfcf254['mapper']['markerNameToElements'](_0x31f87a['markerName']);if(_0x4225b9){for(const _0x4986cd of _0x4225b9)_0xfcf254['writer']['removeClass']('ck-suggestion-marker-'+_0x469746,_0x4986cd),_0xfcf254['writer']['removeClass']('ck-suggestion-marker--active',_0x4986cd),_0xfcf254['writer']['removeAttribute']('data-suggestion',_0x4986cd),_0xfcf254['mapper']['unbindElementFromMarkerName'](_0x4986cd,_0x31f87a['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2311fa=this['editor'],_0xeef80=_0x2311fa['locale'];function _0x5650e3(_0x28e7f1){return{'type':'format','content':o(_0xeef80,'*Format:*\x20%0',_0x28e7f1)};}_0x2311fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9160=>{if('formatBlock'!=_0x3c9160['type'])return;const {data:_0x257bea}=_0x3c9160;if(_0x257bea){if('setTableRowHeader'==_0x257bea['commandName']){const _0x3be2e4=_0x257bea['commandParams'][0x0]['forceValue'];return _0x5650e3(o(_0xeef80,_0x3be2e4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x257bea['commandName']){const _0x50fdd3=_0x257bea['commandParams'][0x0]['forceValue'];return _0x5650e3(o(_0xeef80,_0x50fdd3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x2f6a03=>[_0x2f6a03,null]));class Nt extends _0xa4c963{static get['requires'](){return[vt];}['afterInit'](){const _0x1d4ab9=this['editor'];if(!_0x1d4ab9['plugins']['has']('TableClipboard'))return;const _0x5c2099=_0x1d4ab9['plugins']['get']('TrackChangesEditing'),_0xcfb1f=_0x1d4ab9['plugins']['get']('TableUtils'),_0x6200cf=_0x1d4ab9['plugins']['get'](vt),_0x3bdf12=_0x1d4ab9['plugins']['get']('TableClipboard');_0x6200cf['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1d4ab9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1d4ab9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3a07f4=null;_0x1d4ab9['model']['on']('insertContent',(_0x136026,_0x38c2de)=>{const [_0x34138f,_0x21cfc7]=_0x38c2de,_0x3d45e1=_0x38c2de[_0x38c2de['length']-0x1];_0x3d45e1&&_0x3d45e1['forceDefaultExecution']||_0x5c2099['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x534034,_0x5174b3,_0x149c57,_0x793510,_0x3a3f1e){if(_0x5174b3&&!_0x5174b3['is']('documentSelection'))return!0x1;const _0x5e28e7=_0x3a3f1e['getTableIfOnlyTableInContent'](_0x534034,_0x149c57);if(!_0x5e28e7||!Ae(_0x5e28e7,void 0x0,_0x793510))return!0x1;const _0x3b8ed3=_0x793510['getSelectionAffectedTableCells'](_0x149c57['document']['selection']);if(!_0x3b8ed3['length'])return!0x1;const _0x26f5fd=_0x3b8ed3[0x0]['findAncestor']('table'),_0x2d67d4=_0x793510['getRowIndexes'](_0x3b8ed3),_0x2dec20=_0x793510['getColumnIndexes'](_0x3b8ed3),_0x1cc9fc={'startRow':_0x2d67d4['first'],'endRow':_0x2d67d4['last'],'startColumn':_0x2dec20['first'],'endColumn':_0x2dec20['last']};return 0x1==_0x3b8ed3['length']&&(_0x1cc9fc['endRow']+=_0x793510['getRows'](_0x5e28e7)-0x1,_0x1cc9fc['endColumn']+=_0x793510['getColumns'](_0x5e28e7)-0x1),Ae(_0x26f5fd,_0x1cc9fc,_0x793510);}(_0x34138f,_0x21cfc7,_0x1d4ab9['model'],_0xcfb1f,_0x3bdf12)&&(_0x136026['stop'](),_0x3a07f4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1d4ab9['model']['change'](()=>{_0x1d4ab9['model']['insertContent'](_0x38c2de[0x0],_0x38c2de[0x1],_0x38c2de[0x2],{'forceDefaultExecution':!0x0});const _0x15264f=_0x4fc915(),{rowInsertionRanges:_0x3d0012,columnInsertionRanges:_0x2353a2,insertionRanges:_0x1871b3,deletionRanges:_0x64630c,cells:_0x762360}=_0x3a07f4;_0x3d0012['length']&&_0x5c2099['markMultiRangeInsertion'](_0x3d0012,'tablePasteRow',{'tablePasteChainId':_0x15264f}),_0x2353a2['length']&&_0x5c2099['markMultiRangeInsertion'](_0x2353a2,'tablePasteColumn',{'tablePasteChainId':_0x15264f}),_0x1871b3['length']&&(_0x5c2099['markMultiRangeInsertion'](_0x1871b3,'tablePaste',{'tablePasteChainId':_0x15264f,'skipNestingCheck':!0x0}),_0x1871b3['forEach'](_0x577d6e=>_0x577d6e['detach']?.())),_0x64630c['length']&&(_0x5c2099['markMultiRangeDeletion'](_0x64630c,'tablePaste',{'tablePasteChainId':_0x15264f,'skipNestingCheck':!0x0}),_0x64630c['forEach'](_0x62c8f0=>_0x62c8f0['detach']?.()));const _0x15cd2a=_0x5c2099['markMultiRangeBlockFormat'](_0x762360['map'](({element:_0x51ff8f})=>_0x51ff8f),{'formatGroupId':_0x4fc915()},[],'tablePasteCell',{'tablePasteChainId':_0x15264f});if(_0x15cd2a){const _0x12ed9d=_0x15cd2a['getMarkers'](),_0x13504a=[];for(const {element:_0x48f9d7,attributes:_0x3145ec}of _0x762360){if(!_0x3145ec)continue;const _0x3032b3=_0x1d4ab9['model']['createRangeOn'](_0x48f9d7),_0x304490=_0x12ed9d['find'](_0xfaa468=>_0xfaa468['getRange']()['isEqual'](_0x3032b3));_0x304490&&_0x13504a['push']([_0x304490['name'],_0x3145ec]);}_0x13504a['length']&&_0x15cd2a['setAttribute']('markerAttributes',Object['fromEntries'](_0x13504a));}_0x3a07f4=null;}));},{'priority':_0x19128a['high']+0xa}),_0x1d4ab9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3a5ae8,_0x97b47f)=>{const [_0x4e45db,_0x3f3cc5,,_0x2bfd74]=_0x97b47f;if(!_0x3a07f4)return;_0x3a5ae8['stop']();const _0x3109ee=_0x4e45db['cell'],_0x42a00d=_0x3f3cc5,_0x4bc92a=je(_0x3109ee),_0x5ea914=je(_0x42a00d);_0x3a5ae8['return']=_0x3109ee;let _0x1f7500=null,_0x347c82=null;if(_0x5ea914||_0x4bc92a){if(_0x4bc92a&&!_0x5ea914){_0x2bfd74['remove'](_0x3109ee['getChild'](0x0));for(const _0x114d37 of Array['from'](_0x42a00d['getChildren']()))_0x2bfd74['insert'](_0x114d37,_0x3109ee,'end');const _0x45741f=_0x3a07f4['rowInsertionIndexes']['includes'](_0x4e45db['row']),_0x60f590=_0x3a07f4['columnInsertionIndexes']['includes'](_0x4e45db['column']);_0x45741f||_0x60f590||(_0x1f7500=_0xac092f['fromRange'](_0x2bfd74['createRangeIn'](_0x3109ee)));}else _0x5ea914&&!_0x4bc92a&&(_0x347c82=_0x2bfd74['createRangeIn'](_0x3109ee));}else{const _0x3328eb=_0x2bfd74['createElement']('tableCellSuggestion'),_0x4dad87=_0x2bfd74['createElement']('tableCellSuggestion');_0x2bfd74['wrap'](_0x2bfd74['createRangeIn'](_0x3109ee),_0x4dad87),_0x2bfd74['insert'](_0x3328eb,_0x3109ee,0x0);for(const _0x10fd58 of Array['from'](_0x42a00d['getChildren']()))_0x2bfd74['insert'](_0x10fd58,_0x3328eb,'end');_0x1f7500=_0xac092f['fromRange'](_0x2bfd74['createRangeOn'](_0x3328eb)),_0x347c82=_0xac092f['fromRange'](_0x2bfd74['createRangeOn'](_0x4dad87));}const _0x2a4aed=Array['from'](_0x42a00d['getAttributes']())['filter'](([_0x3f36d6])=>we['includes'](_0x3f36d6));_0x3a07f4['cells']['push']({'element':_0x3109ee,'attributes':_0x2a4aed['length']?Object['fromEntries'](_0x2a4aed):null}),_0x1f7500&&_0x3a07f4['insertionRanges']['push'](_0x1f7500),_0x347c82&&_0x3a07f4['deletionRanges']['push'](_0x347c82);},{'priority':'high'}),_0xcfb1f['on']('insertColumns',(_0x265dc8,_0x541f24)=>{const [_0x36e4eb,_0x494018={}]=_0x541f24;if(!_0x3a07f4)return;const _0x424182=_0x494018['at']||0x0,_0x1ce076=_0x494018['columns']||0x1;_0x3a07f4['columnInsertionIndexes']=new Array(_0x1ce076)['fill'](_0x424182)['map']((_0x209d45,_0x3023f0)=>_0x209d45+_0x3023f0);for(const {cell:_0x1f6928}of _0xcfb1f['createTableWalker'](_0x36e4eb,{'startColumn':_0x424182,'endColumn':_0x424182+_0x1ce076-0x1}))_0x3a07f4['columnInsertionRanges']['push'](_0x1d4ab9['model']['createRangeOn'](_0x1f6928));},{'priority':'low'}),_0xcfb1f['on']('insertRows',(_0x41fab1,_0x109acd)=>{const [_0x3469c4,_0x56e0b1={}]=_0x109acd;if(!_0x3a07f4)return;const _0x2f10d4=_0x56e0b1['at']||0x0,_0x5b06d9=_0x56e0b1['rows']||0x1;_0x3a07f4['rowInsertionIndexes']=new Array(_0x5b06d9)['fill'](_0x2f10d4)['map']((_0x25e4b3,_0x12f72d)=>_0x25e4b3+_0x12f72d);for(const {cell:_0x4b3229}of _0xcfb1f['createTableWalker'](_0x3469c4,{'startRow':_0x2f10d4,'endRow':_0x2f10d4+_0x5b06d9-0x1}))_0x3a07f4['rowInsertionRanges']['push'](_0x1d4ab9['model']['createRangeOn'](_0x4b3229));},{'priority':'low'}),_0x5c2099['descriptionFactory']['registerDescriptionCallback'](_0x153800=>{if(_0x153800['subType']&&_0x153800['subType']['startsWith']('tablePaste'))return _0x153800['previous']?{}:{'type':'insertion','content':o(_0x1d4ab9['locale'],'*Replace\x20table\x20cells*')};});const _0x36e0b6=()=>!0x1;for(const _0x1f89f9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5c2099['_suggestionFactory']['registerCustomCallback']('insertion',_0x1f89f9,'join',_0x36e0b6),_0x5c2099['_suggestionFactory']['registerCustomCallback']('deletion',_0x1f89f9,'join',_0x36e0b6),_0x5c2099['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f89f9,'join',_0x36e0b6);_0x5c2099['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x36e0b6),_0x5c2099['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x7e2b30,_0x180494,_0x403a5a)=>{const _0x7e8c9e=_0x7e2b30['map'](_0x548228=>_0x548228['getContainedElement']())['filter'](_0x445d43=>_0x445d43),_0x1e8702=new Map(_0x7e8c9e['map'](_0x2434f3=>[_0x2434f3,null]));if(_0x3a07f4){for(const {element:_0x2ad8a5,attributes:_0x23d15c}of _0x3a07f4['cells'])_0x23d15c&&_0x1e8702['set'](_0x2ad8a5,_0x23d15c);}else{if(_0x403a5a&&_0x403a5a['markerAttributes'])for(const [_0x4eb801,_0x122cc6]of Object['entries'](_0x403a5a['markerAttributes'])){const _0x3cb702=_0x1d4ab9['model']['markers']['get'](_0x4eb801),_0x2dc355=_0x3cb702?_0x3cb702['getRange']()['getContainedElement']():null;_0x2dc355&&_0x1e8702['set'](_0x2dc355,_0x122cc6);}}_0x1d4ab9['model']['change'](_0x476e1c=>{for(const [_0x5ecbcd,_0x10c48d]of _0x1e8702)_0x476e1c['setAttributes']({...ve,..._0x10c48d},_0x5ecbcd);});});const _0xcd95d=(_0x50be7e,_0x28ea86)=>{_0x5c2099['_suggestionFactory']['registerCustomCallback'](_0x50be7e,'tablePaste',_0x28ea86,(_0xe6d59,_0x42979b,_0x3fb101)=>{_0x1d4ab9['model']['change'](_0x124d20=>{const _0x393a0f=[];for(const _0x477293 of _0xe6d59){const _0xbabc21=_0x477293['start']['nodeAfter'];_0xbabc21['is']('element','tableCellSuggestion')&&_0x393a0f['push'](_0xbabc21);}_0x5c2099['_suggestionFactory']['getSuggestionCallback'](_0x50be7e,null,_0x28ea86)(_0xe6d59,_0x42979b,_0x3fb101);for(const _0x25cb6f of _0x393a0f)'$graveyard'!=_0x25cb6f['root']['rootName']&&_0x124d20['unwrap'](_0x25cb6f);});});};_0xcd95d('insertion','accept'),_0xcd95d('insertion','discard'),_0xcd95d('deletion','accept'),_0xcd95d('deletion','discard'),_0x5c2099['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e7a51=>{const _0xda3fb0=_0x1e7a51['map'](_0x343deb=>_0x343deb['getContainedElement']()),_0x2d8c28=_0xda3fb0[0x0]['findAncestor']('table'),{minRow:_0x5e9d5a,maxRow:_0x4da77b}=_0x6200cf['_getCoordsForCells'](_0xda3fb0);_0xcfb1f['removeRows'](_0x2d8c28,{'at':_0x5e9d5a,'rows':_0x4da77b-_0x5e9d5a+0x1});}),_0x5c2099['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5d49ce=>{const _0x3ce70e=_0x5d49ce['map'](_0x517fab=>_0x517fab['getContainedElement']()),_0x100cbe=_0x3ce70e[0x0]['findAncestor']('table'),{minColumn:_0x40a5f0,maxColumn:_0x49cf27}=_0x6200cf['_getCoordsForCells'](_0x3ce70e);_0xcfb1f['removeColumns'](_0x100cbe,{'at':_0x40a5f0,'columns':_0x49cf27-_0x40a5f0+0x1});});const _0x468abf=(_0xd0a0d4,_0x339897)=>{if(!_0x339897['subType']||!_0x339897['subType']['startsWith']('tablePaste'))return;const _0x451d80=_0x339897['attributes']['tablePasteChainId'],_0x394c26=_0x5c2099['getSuggestions']()['filter'](_0x198c26=>_0x198c26['isInContent']&&_0x198c26['attributes']&&_0x198c26['attributes']['tablePasteChainId']==_0x451d80);_0x394c26['length']&&_0x339897['getAllAdjacentSuggestions']()['length']!=_0x394c26['length']&&_0x394c26['reduce']((_0x3d7deb,_0x594f4f)=>(_0x3d7deb['next']=_0x594f4f,_0x594f4f['previous']=_0x3d7deb,_0x594f4f));};function _0x2dc7de(_0x38fd40,_0x15ed00=!0x0){const {id:_0x445616,authorId:_0x2ffe89}=_0x5c2099['_splitMarkerName'](_0x38fd40['markerName']),_0x22a61e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1907b3=_0x5c2099['activeMarkers']['includes'](_0x38fd40['markerName']);return _0x1907b3&&_0x22a61e['push']('ck-suggestion-marker--active'),{'classes':_0x22a61e,'attributes':{'data-suggestion':_0x445616,'data-author-id':_0x2ffe89},'priority':_0x1907b3&&_0x15ed00?0xbc2:0xbb8};}_0x5c2099['on']('suggestionLoaded',_0x468abf,{'priority':'high'}),_0x5c2099['on']('suggestionUnloaded',_0x468abf,{'priority':'high'}),_0x1d4ab9['model']['document']['registerPostFixer'](()=>{let _0x21fdc5=!0x1;const _0x5f6ed8=Array['from'](_0x1d4ab9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x216b3f,data:_0x5a93cc}of _0x5f6ed8){const {group:_0x3d4de8,type:_0x40204d,id:_0x17bc73}=_0x5c2099['_splitMarkerName'](_0x216b3f);if('suggestion'!=_0x3d4de8||'deletion'!=_0x40204d||_0x5a93cc['oldRange'])continue;if(!_0x5c2099['hasSuggestion'](_0x17bc73))continue;const _0x367968=_0x5c2099['getSuggestion'](_0x17bc73)['getRanges'](),_0x51a3ad=_0x1d4ab9['plugins']['get']('Users')['me'];for(const _0x53ba32 of _0x5c2099['getSuggestions']()){if(!_0x53ba32['isInContent']||_0x53ba32['author']!=_0x51a3ad)continue;if('formatBlock'!=_0x53ba32['type']||'tablePasteCell'!=_0x53ba32['subType'])continue;if(_0x53ba32['getRanges']()['every'](_0x510c38=>_0x367968['some'](_0x3fd49a=>_0x3fd49a['containsRange'](_0x510c38,!0x0)))){for(const _0x22965f of _0x53ba32['getAllAdjacentSuggestions']())_0x22965f['isInContent']&&(_0x22965f['discard'](),_0x21fdc5=!0x0);}}}return _0x21fdc5;}),_0x1d4ab9['model']['document']['registerPostFixer'](_0x582739=>{const _0x4fa91f=_0x1d4ab9['commands']['get']('redo');if(!_0x4fa91f||!_0x4fa91f['_createdBatches']['has'](_0x582739['batch']))return!0x1;let _0x327321=!0x1;const _0x2f4cbc=_0x1d4ab9['plugins']['get']('Users')['me'],_0x40e016=_0x1d4ab9['model']['document']['differ']['getChanges'](),_0x31a4aa=Array['from'](_0x1d4ab9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x17c8a6,data:_0xe98d22})=>{const {group:_0x555882,subType:_0x364428,authorId:_0x1ac939}=_0x5c2099['_splitMarkerName'](_0x17c8a6);return'suggestion'==_0x555882&&'tablePaste'==_0x364428&&_0x1ac939==_0x2f4cbc['id']&&!_0xe98d22['oldRange'];});for(const _0x15f4e5 of _0x40e016){if('insert'!=_0x15f4e5['type']||'tableCellSuggestion'!=_0x15f4e5['name']||0x1!=_0x15f4e5['length'])continue;const _0x36943b=_0x582739['createRange'](_0x15f4e5['position'],_0x15f4e5['position']['getShiftedBy'](0x1));if(!_0x31a4aa['find'](({data:_0x1fadd0})=>_0x1fadd0['newRange']['isEqual'](_0x36943b))){for(const {name:_0x2feafa,data:_0x2c4b94}of _0x31a4aa)if(_0x36943b['containsRange'](_0x2c4b94['newRange'])){_0x582739['updateMarker'](_0x2feafa,{'range':_0x36943b}),_0x327321=!0x0;break;}}}return _0x327321;}),_0x1d4ab9['model']['document']['registerPostFixer'](_0x306cca=>{let _0x422047=!0x1;const _0x18787f=_0x1d4ab9['plugins']['get']('Users')['me'],_0x20dbe5=_0x5c2099['getSuggestions']()['filter'](_0x41b882=>_0x41b882['isInContent']&&_0x41b882['author']==_0x18787f),_0x21a407=new Set(),_0x368202=new Set();for(const _0xe75a81 of _0x20dbe5)if('tablePaste'==_0xe75a81['subType'])for(const _0x5f2a93 of _0xe75a81['getMarkers']()){const _0x14b409=_0x5f2a93['getRange']()['getContainedElement']();if(_0x14b409){if(_0x14b409['is']('element','tableCellSuggestion')&&je(_0x14b409)){_0xe75a81['removeMarker'](_0x5f2a93['name']),_0x21a407['add'](_0x14b409),_0x422047=!0x0;const _0x4e47b1=_0x14b409['nextSibling'],_0x122492=_0x14b409['previousSibling'],_0x5343a2=_0x4e47b1&&_0x4e47b1['is']('element','tableCellSuggestion'),_0x1a1610=_0x122492&&_0x122492['is']('element','tableCellSuggestion');_0x5343a2&&!_0x21a407['has'](_0x4e47b1)&&_0x368202['add'](_0x4e47b1),_0x1a1610&&!_0x21a407['has'](_0x122492)&&_0x368202['add'](_0x122492);}else _0x14b409['is']('element','paragraph')&&_0x14b409['isEmpty']&&(_0xe75a81['removeMarker'](_0x5f2a93['name']),_0x422047=!0x0);}}else{if('tablePasteCell'==_0xe75a81['subType']){if(!_0xe75a81['attributes']||!_0xe75a81['attributes']['tablePasteChainId'])continue;const _0x231c4b=_0xe75a81['attributes']['markerAttributes'];if(_0x231c4b&&Object['keys'](_0x231c4b)['length'])continue;const _0xb74b05=_0xe75a81['attributes']['tablePasteChainId'];let _0x3d425e=!0x0,_0x3f575c=!0x0;for(const _0x276ad9 of _0x20dbe5)if(_0x276ad9['subType']&&_0x276ad9['subType']['startsWith']('tablePaste')){if(!_0x276ad9['attributes']['tablePasteChainId']){_0x3f575c=!0x1;break;}if(_0x276ad9['id']!=_0xe75a81['id']&&_0x276ad9['attributes']['tablePasteChainId']==_0xb74b05){_0x3d425e=!0x1;break;}}_0x3f575c&&_0x3d425e&&(_0xe75a81['removeMarkers'](),_0x422047=!0x0);}}for(const _0x21457d of _0x21a407)_0x306cca['remove'](_0x21457d);for(const _0x5c7ecf of _0x368202)_0x306cca['unwrap'](_0x5c7ecf);return _0x422047;}),_0x1d4ab9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x274f8f=>_0x2dc7de(_0x274f8f),'converterPriority':'high'}),_0x1d4ab9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x47fb1d,_0x3b3f3c)=>_0x3b3f3c['options']['showSuggestionHighlights']?_0x2dc7de(_0x47fb1d,!0x1):null,'converterPriority':'high'});const _0xb02aeb=_0x1d4ab9['editing']['view'];this['listenTo'](_0xb02aeb['document'],'clipboardOutput',(_0xcc06d8,_0x39f09e)=>{const _0x4049b3=[];for(const _0x1aa825 of _0xb02aeb['createRangeIn'](_0x39f09e['content'])['getItems']())_0x1aa825['is']('element','suggestion-td')&&_0x4049b3['push'](_0x1aa825);_0xb02aeb['change'](_0x416889=>{for(const _0x16a510 of _0x4049b3)_0x416889['move'](_0x416889['createRangeIn'](_0x16a510),_0x416889['createPositionBefore'](_0x16a510)),_0x416889['remove'](_0x16a510);});});}}function je(_0x1b6dc7){if(_0x1b6dc7['isEmpty'])return!0x0;const _0x17924a=_0x1b6dc7['getChild'](0x0);return _0x17924a['is']('element','paragraph')&&_0x17924a['isEmpty'];}function Ae(_0xb38629,_0xa97cc9={},_0x367fb8){for(const {isAnchor:_0x565e6a,cellHeight:_0x10bbe5,cellWidth:_0x3132c4}of _0x367fb8['createTableWalker'](_0xb38629,{'includeAllSlots':!0x0,..._0xa97cc9}))if(!_0x565e6a||0x1!=_0x10bbe5||0x1!=_0x3132c4)return!0x1;return!0x0;}class Dt extends _0xa4c963{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x494cf1=this['editor']['plugins']['get']('TrackChangesEditing');_0x494cf1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x494cf1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x494cf1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x494cf1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x494cf1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x494cf1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4dafe3,_0x4579d4){const _0x79d087=this['editor']['plugins']['get']('TrackChangesEditing'),_0x323d44=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2afd57=_0x4579d4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5d182c=_0x323d44['getColumnGroupElement'](_0x2afd57);let _0xd7635c=_0x5d182c?_0x323d44['getTableColumnsWidths'](_0x5d182c):null,_0x4dae63=_0x2afd57['getAttribute']('tableWidth')||null;const _0x43100a=_0x4579d4['tableWidth']||_0x4dae63,_0x46a369=_0x4579d4['columnWidths']||_0xd7635c,_0x80f501=this['editor']['plugins']['get']('Users')['me'];for(const _0x10e780 of _0x79d087['getSuggestions']()){const _0x155112=_0x10e780['getContainedElement']();if('resizeTable'===_0x10e780['subType']&&_0x155112===_0x2afd57){_0x10e780['author']!==_0x80f501&&_0x10e780['discard']();const _0x1a9a57=_0x10e780['data']['commandParams'];_0x4dae63=_0x1a9a57[0x0]['tableWidth'],_0xd7635c=_0x1a9a57[0x0]['columnWidths'];break;}}_0x4dafe3({'table':_0x2afd57,'tableWidth':_0x43100a,'columnWidths':_0x46a369}),_0x79d087['markBlockFormat'](_0x2afd57,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4dae63,'columnWidths':_0xd7635c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3aebdd){if('formatBlock'!=_0x3aebdd['type']&&'formatInline'!=_0x3aebdd['type'])return;const {data:_0x19e530}=_0x3aebdd;if(_0x19e530&&'resizeTable'===_0x19e530['formatGroupId']){const _0x1d31d7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1d31d7)};}}}class Mt extends _0xa4c963{['afterInit'](){const _0x79e4fd=this['editor'];_0x79e4fd['plugins']['has']('Template')&&_0x79e4fd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0xa4c963{['afterInit'](){const _0x4e373c=this['editor'];if(!_0x4e373c['commands']['get']('insertTableOfContents'))return;_0x4e373c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x43fb3c=_0x4e373c['plugins']['get']('TrackChangesEditing'),_0x4cdd4d=_0x4e373c['locale'];_0x43fb3c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x53e36e=>o(_0x4cdd4d,'ELEMENT_TABLE_OF_CONTENTS',_0x53e36e));}}class Bt extends _0xa4c963{['afterInit'](){const _0x12708a=this['editor'];if(!_0x12708a['plugins']['has']('Title'))return;const _0x866b7f=_0x12708a['plugins']['get']('TrackChangesEditing');_0x866b7f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x12708a['locale'],'ELEMENT_TITLE')),_0x12708a['model']['document']['registerPostFixer'](_0x380942=>{let _0x8d77aa=!0x1;const _0x4bf2c2=Array['from'](_0x12708a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e37d0,data:_0x354953}of _0x4bf2c2){const {group:_0x57af48}=_0x866b7f['_splitMarkerName'](_0x5e37d0);if('suggestion'!==_0x57af48||!_0x354953['newRange'])continue;const _0x4b3869=_0x354953['newRange'],_0x4775a6=_0x4b3869['end']['nodeBefore'];if(!_0x4775a6||!_0x4775a6['is']('element','title-content'))continue;if(!_0x4b3869['start']['isTouching'](_0x4b3869['end']))continue;const _0x119890=_0x12708a['model']['schema']['getNearestSelectionRange'](_0x4b3869['end'],'forward');if(_0x119890&&_0x119890['isCollapsed']){const _0x4e1891=_0x380942['createRange'](_0x4b3869['start'],_0x119890['start']);_0x4e1891['isEqual'](_0x4b3869)||(_0x380942['updateMarker'](_0x5e37d0,{'range':_0x4e1891}),_0x8d77aa=!0x0);}_0x8d77aa||(_0x380942['removeMarker'](_0x5e37d0),_0x8d77aa=!0x0);}return _0x8d77aa;});}}class Ot extends _0xa4c963{['afterInit'](){const _0x1a7fc6=this['editor'],_0x35cc10=_0x1a7fc6['plugins']['get']('TrackChangesEditing');_0x1a7fc6['plugins']['has']('UndoEditing')&&(_0x35cc10['enableCommand']('undo'),_0x35cc10['enableCommand']('redo'));}}class Rt extends _0xa4c963{static get['requires'](){return[vt];}['afterInit'](){const _0x451a27=this['editor'];if(!_0x451a27['plugins']['has']('TableCaptionEditing'))return;_0x451a27['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0xa4c963{['tableProperties'];['tableCellProperties'];constructor(_0x5cd242){super(_0x5cd242),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 _0x225ed0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4b1502 of this['tableProperties'])_0x225ed0['enableCommand'](_0x4b1502,(_0x1eb576,_0x1c62e2)=>{const _0x1f70e0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4b1502,[_0x1f70e0],this['tableProperties'],'tableProperties',_0x1eb576,_0x1c62e2);});_0x225ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x225ed0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x225ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ca840,_0x40a3fb)=>this['handleDiscardAction'](this['tableProperties'],_0x2ca840,_0x40a3fb)),_0x225ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x10b2df of this['tableCellProperties'])_0x225ed0['enableCommand'](_0x10b2df,(_0x2b4841,_0x35ac41)=>{const _0xf0b876=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x10b2df,_0xf0b876,this['tableCellProperties'],'tableCellProperties',_0x2b4841,_0x35ac41);});_0x225ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x225ed0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x225ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x23bf3c,_0x2d19a6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x23bf3c,_0x2d19a6)),_0x225ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x225ed0['descriptionFactory']['registerDescriptionCallback'](_0x3b3dc4=>this['handleSuggestionDescription'](_0x3b3dc4));}['_handlePropertyChange'](_0x4374e2,_0x3f8d6a,_0x252229,_0x5af96d,_0x2dbb17,_0x50c001){const _0x50ff2a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x50c001['batch'],()=>{for(const _0x3b5ff1 of _0x3f8d6a){if(this['_getSuggestion'](_0x3b5ff1,_0x5af96d))_0x2dbb17(_0x50c001);else{const _0x563e29={};for(const _0x46cc03 of _0x252229){const _0x409fd3=_0x3b5ff1['getAttribute'](_0x46cc03);void 0x0!==_0x409fd3&&(_0x563e29[_0x46cc03]=_0x409fd3);}_0x2dbb17(_0x50c001),_0x50ff2a['markBlockFormat'](_0x3b5ff1,{'commandParams':[_0x563e29]},[],_0x5af96d);}}});}['handleDiscardAction'](_0x321169,_0x1c2ccd,_0x46536d){const _0x4e4188=_0x1c2ccd[0x0]['start']['nodeAfter'],_0x708a25=_0x46536d['commandParams'][0x0];this['editor']['model']['change'](_0x352559=>{for(const _0x5dea78 of _0x321169)void 0x0!==_0x708a25[_0x5dea78]?_0x352559['setAttribute'](_0x5dea78,_0x708a25[_0x5dea78],_0x4e4188):_0x352559['removeAttribute'](_0x5dea78,_0x4e4188);});}['handleSuggestionDescription'](_0x5d062e){if(_0x5d062e['data'])switch(_0x5d062e['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x418248,_0x5c476e){const _0x53220d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x473a93 of _0x53220d['getSuggestions']({'skipNotAttached':!0x0})){const _0x3c4893=_0x473a93['getContainedElement']();if(_0x473a93['subType']===_0x5c476e&&_0x3c4893===_0x418248)return _0x473a93;}return null;}}const m='$elementName';class p extends _0xa4c963{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x39d8d3,_0x594e62,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1982f9){super(_0x1982f9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x151d10,_0x5445c0,_0x500842,_0x5919e0)=>{this['_model']['change'](()=>{for(const _0x17e1c3 of[..._0x5919e0,..._0x500842])this['_model']['markers']['has'](_0x17e1c3)&&_0x1982f9['editing']['reconvertMarker'](_0x17e1c3);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1982f9['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x1982f9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1982f9['config']['get']('trackChanges.trackFormatChanges'),_0x1982f9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1982f9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1982f9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2a059e=this['editor'],_0x560517=(_0x445f29,_0x30b812)=>{if('attribute'!=_0x445f29)return'ck-suggestion-marker-'+_0x445f29;const _0x5052f0=_0x30b812['split']('|')[0x0];return this['_isBlockAttribute'](_0x5052f0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2a059e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x19f46c=>{const {id:_0x1b9379,authorId:_0x2aa0c4,type:_0x2fc989,subType:_0x5583a9}=this['_splitMarkerName'](_0x19f46c['markerName']),_0x3bc2a1=['ck-suggestion-marker',_0x560517(_0x2fc989,_0x5583a9)];let _0x1771d8=0xbb8;return this['activeMarkers']['includes'](_0x19f46c['markerName'])&&(_0x3bc2a1['push']('ck-suggestion-marker--active'),_0x1771d8=0xbc2),'deletion'==_0x2fc989&&(_0x1771d8+=0x5),{'classes':_0x3bc2a1,'attributes':{'data-suggestion':_0x1b9379,'data-author-id':_0x2aa0c4},'priority':_0x1771d8};}}),_0x2a059e['conversion']['for']('dataDowncast')['add'](_0x2a7201=>{_0x2a7201['on']('addMarker:suggestion',(_0x11e4ea,_0x46e7a4,_0x28cf68)=>{if(!_0x28cf68['options']['showSuggestionHighlights'])return;const _0x5cd0d7=_0x46e7a4['item'];if(!_0x5cd0d7)return;const _0x5e9ead=_0x28cf68['mapper']['toViewElement'](_0x5cd0d7);_0x2a059e['model']['schema']['isObject'](_0x5cd0d7)&&_0x5e9ead&&!_0x5e9ead['getCustomProperty']('widget')&&_0x5e9ead['is']('containerElement')&&_0x588961(_0x5e9ead,_0x28cf68['writer']);},{'priority':'high'});}),_0x2a059e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5907a6,_0x3b8f9e)=>{if(!_0x3b8f9e['options']['showSuggestionHighlights'])return null;const {type:_0x57e1dd,subType:_0x144205}=this['_splitMarkerName'](_0x5907a6['markerName']);return{'classes':['ck-suggestion-marker',_0x560517(_0x57e1dd,_0x144205)],'priority':0xbb8};}});const _0x5109ad=({showActiveMarkers:_0x1bac21=!0x0,isAttributeSuggestion:_0x5a59d1=!0x1}={})=>(_0x4eaeba,_0x2040aa,_0x2bec5c)=>{if(!_0x2040aa['item'])return;const {id:_0x4420b7,authorId:_0x4a8938}=this['_splitMarkerName'](_0x2040aa['markerName']);if(_0x5a59d1){const _0x55aa22=this['_suggestions']['get'](_0x4420b7),_0xda4efe=this['_getAttributeKey'](_0x55aa22);if(!this['_isBlockAttribute'](_0xda4efe))return;}if(_0x2040aa['item']['is']('selection'))return void _0x2bec5c['consumable']['consume'](_0x2040aa['item'],_0x4eaeba['name']);const _0xe9dfa7=_0x2bec5c['mapper']['toViewElement'](_0x2040aa['item']);if(_0x2040aa['item']['is']('element')&&_0x2a059e['model']['schema']['isBlock'](_0x2040aa['item'])&&!_0xe9dfa7['getCustomProperty']('addHighlight')){_0x2bec5c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xe9dfa7),_0x2bec5c['writer']['setAttribute']('data-suggestion',_0x4420b7,_0xe9dfa7),_0x2bec5c['writer']['setAttribute']('data-author-id',_0x4a8938,_0xe9dfa7),_0x2bec5c['mapper']['bindElementToMarker'](_0xe9dfa7,_0x2040aa['markerName']),_0x1bac21&&(this['activeMarkers']['includes'](_0x2040aa['markerName'])?_0x2bec5c['writer']['addClass']('ck-suggestion-marker--active',_0xe9dfa7):_0x2bec5c['writer']['removeClass']('ck-suggestion-marker--active',_0xe9dfa7));for(const _0xeaddbe of _0x2a059e['model']['createRangeIn'](_0x2040aa['item'])['getItems']())_0x2bec5c['consumable']['consume'](_0xeaddbe,_0x4eaeba['name']);_0x2bec5c['consumable']['consume'](_0x2040aa['item'],_0x4eaeba['name']);}};_0x2a059e['conversion']['for']('dataDowncast')['add'](_0x1f633a=>{_0x1f633a['on']('addMarker:suggestion:formatBlock',(_0x57b695,_0xbc5d68,_0x161d33)=>{_0x161d33['options']['showSuggestionHighlights']&&_0x5109ad({'showActiveMarkers':!0x1})(_0x57b695,_0xbc5d68,_0x161d33);},{'priority':'highest'});}),_0x2a059e['conversion']['for']('dataDowncast')['add'](_0x51f57d=>{_0x51f57d['on']('addMarker:suggestion:attribute',(_0x5f28a3,_0x420a0c,_0x1b516e)=>{_0x1b516e['options']['showSuggestionHighlights']&&_0x5109ad({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5f28a3,_0x420a0c,_0x1b516e);},{'priority':'highest'});}),_0x2a059e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5cb54e,_0x30ebd7)=>_0x30ebd7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5cb54e['substr'](0xb)}}),_0x2a059e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xb42109,{writer:_0x5be25c})=>{let _0x560828='suggestion:'+_0xb42109['getAttribute']('suggestion-type')+':'+_0xb42109['getAttribute']('id');return _0xb42109['getAttribute']('marker-count')&&(_0x560828+=':'+_0xb42109['getAttribute']('marker-count')),_0x5be25c['createElement']('$marker',{'data-name':_0x560828});}}),_0x2a059e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2a059e['conversion']['for']('editingDowncast')['add'](_0x5f03d7=>{_0x5f03d7['on']('addMarker:suggestion:formatBlock',_0x5109ad(),{'priority':'high'});}),_0x2a059e['conversion']['for']('editingDowncast')['add'](_0x653975=>{_0x653975['on']('addMarker:suggestion:attribute',_0x5109ad({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2a059e['conversion']['for']('editingDowncast')['add'](_0x3dec8f=>{_0x3dec8f['on']('removeMarker:suggestion:formatBlock',(_0x14def7,_0x288ec7,_0x35538c)=>{const _0x1988ad=_0x35538c['mapper']['markerNameToElements'](_0x288ec7['markerName']);if(_0x1988ad){for(const _0x595169 of _0x1988ad)_0x595169['getCustomProperty']('addHighlight')||(_0x35538c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x595169),_0x35538c['writer']['removeAttribute']('data-suggestion',_0x595169),_0x35538c['writer']['removeAttribute']('data-author-id',_0x595169),_0x35538c['mapper']['unbindElementFromMarkerName'](_0x595169,_0x288ec7['markerName']));}},{'priority':'high'});}),_0x2a059e['conversion']['for']('editingDowncast')['add'](_0x60573c=>{_0x60573c['on']('removeMarker:suggestion:attribute',(_0xa08678,_0x381bee,_0x183ea8)=>{const _0x4679e9=_0x183ea8['mapper']['markerNameToElements'](_0x381bee['markerName']);if(!_0x4679e9)return;const {id:_0x2eb044}=this['_splitMarkerName'](_0x381bee['markerName']),_0x298052=this['_suggestions']['get'](_0x2eb044),_0x4708cc=this['_getAttributeKey'](_0x298052);if(this['_isBlockAttribute'](_0x4708cc)){for(const _0x471076 of _0x4679e9)_0x471076['getCustomProperty']('addHighlight')||(_0x183ea8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x471076),_0x183ea8['writer']['removeAttribute']('data-suggestion',_0x471076),_0x183ea8['writer']['removeAttribute']('data-author-id',_0x471076),_0x183ea8['mapper']['unbindElementFromMarkerName'](_0x471076,_0x381bee['markerName']));}},{'priority':'high'});}),_0x2a059e['model']['document']['registerPostFixer'](_0x3574b5=>{let _0x4a2f02=!0x1;const _0x538e15=Array['from'](_0x2a059e['model']['document']['differ']['getChangedMarkers']()),_0x197104=new Set();for(const {name:_0x355c25,data:_0x46260a}of _0x538e15){const {group:_0x453869,type:_0x5a31a0,subType:_0x385e1f,id:_0x272898}=this['_splitMarkerName'](_0x355c25);if('suggestion'!==_0x453869)continue;const _0x13aeab=this['_suggestions']['get'](_0x272898);if(null!=_0x46260a['newRange']){'formatInline'==_0x5a31a0&&(_0x4a2f02=_0x4a2f02||Pt(_0x46260a['newRange'],_0x355c25,_0x3574b5,_0x2a059e['model']['schema']));const _0x5a13e9='attribute'==_0x5a31a0&&this['_isBlockAttribute'](_0x385e1f['split']('|')[0x0]);if(_0x46260a['newRange']['isCollapsed']||'$graveyard'==_0x46260a['newRange']['root']['rootName']||'formatBlock'==_0x5a31a0&&!Ft(_0x46260a['newRange'])||_0x5a13e9&&!Ft(_0x46260a['newRange'])||'deletion'==_0x5a31a0&&!(!Vt(_0x65812e=_0x46260a['newRange'])&&!function(_0x158b89){return _0x158b89['start']['parent']==_0x158b89['end']['nodeBefore']&&_0x158b89['start']['isAtEnd'];}(_0x65812e)))_0x3574b5['removeMarker'](_0x355c25),_0x4a2f02=!0x0;else{if(!_0x13aeab||!_0x13aeab['isInContent'])continue;if(_0x46260a['newRange']&&_0x46260a['oldRange']&&_0x46260a['newRange']['isEqual'](_0x46260a['oldRange']))continue;_0x197104['add'](_0x13aeab);}}}var _0x65812e;return _0x197104['size']>0x0&&(_0x4a2f02=!!this['_joinWithAdjacentSuggestions'](_0x197104)||_0x4a2f02),_0x4a2f02;}),_0x2a059e['model']['document']['registerPostFixer'](_0x3e0004=>{let _0x2d9fe1=!0x1;for(const _0x5495f1 of _0x2a059e['model']['document']['differ']['getChanges']())if('insert'==_0x5495f1['type'])for(const _0x472e26 of this['_suggestions']['values']()){if(_0x472e26['isMultiRange']||!_0x472e26['isInContent'])continue;const _0x332917='formatBlock'==_0x472e26['type'],_0x15966f=this['_getAttributeKey'](_0x472e26),_0x3b23bf=_0x15966f&&this['_isBlockAttribute'](_0x15966f);if(!_0x332917&&!_0x3b23bf)continue;const _0xf429f8=_0x472e26['getFirstRange']();if(_0xf429f8['start']['parent']!=_0xf429f8['end']['parent']&&!_0xf429f8['end']['isAtEnd']){const _0x52996a=_0x2a059e['model']['createPositionAt'](_0xf429f8['start']['nodeAfter'],'end'),_0x6f0cf=_0x2a059e['model']['createRange'](_0xf429f8['start'],_0x52996a);_0x3e0004['updateMarker'](_0x472e26['getFirstMarker'](),{'range':_0x6f0cf}),_0x2d9fe1=!0x0;}}return _0x2d9fe1;}),_0x2a059e['model']['document']['registerPostFixer'](_0x4add4b=>this['_processAttributeChanges'](_0x4add4b)),_0x2a059e['model']['document']['registerPostFixer'](_0x194050=>!_0x194050['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x194050)),_0x2a059e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2a059e['model']['document']['on']('change:data',(_0x41e3bb,_0x40d021)=>{if(!_0x40d021['isLocal']||_0x40d021['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2db434=_0x2a059e['model']['document']['differ']['getChanges']();if(0x0==_0x2db434['length'])return;const _0x15c6e9=[],_0x34b81a=_0x2db434['filter'](_0x4c865c=>'attribute'==_0x4c865c['type']),_0x47a318=_0x2db434['filter'](_0x1431e3=>'insert'==_0x1431e3['type']&&'$text'!=_0x1431e3['name']);for(const _0x337465 of _0x34b81a)this['_isRegisteredAttribute'](_0x337465['attributeKey'])&&_0x15c6e9['push']({'key':_0x337465['attributeKey'],'newValue':_0x337465['attributeNewValue'],'oldValue':_0x337465['attributeOldValue'],'range':Lt(_0x337465['range'],_0x2a059e['model'])});for(const _0x129e85 of _0x47a318){if('rename'!=_0x129e85['action']&&'refresh'!=_0x129e85['action'])continue;const _0x49db49=Jt(_0x129e85['position']['nodeAfter'],_0x2a059e['model']),_0x5487c1=_0x129e85['before'];'rename'==_0x129e85['action']&&_0x15c6e9['push']({'key':m,'newValue':_0x129e85['name'],'oldValue':_0x5487c1['name'],'range':_0x49db49});for(const [_0x5ebdd1,_0x2c6712]of _0x5487c1['attributes']){if(!this['_isRegisteredAttribute'](_0x5ebdd1))continue;const _0x231a56=_0x129e85['attributes']['get'](_0x5ebdd1);_0x2c6712!==_0x231a56&&_0x15c6e9['push']({'key':_0x5ebdd1,'newValue':_0x231a56,'oldValue':_0x2c6712,'range':_0x49db49});}for(const [_0x57be32,_0x12d3aa]of _0x129e85['attributes'])this['_isRegisteredAttribute'](_0x57be32)&&(_0x5487c1['attributes']['has'](_0x57be32)||_0x15c6e9['push']({'key':_0x57be32,'newValue':_0x12d3aa,'oldValue':null,'range':_0x49db49}));}0x0!=_0x15c6e9['length']&&_0x2a059e['model']['enqueueChange'](_0x40d021,_0x77d0dd=>{const _0x3fc29c=_0x4fc915();for(const {range:_0xd5a4,key:_0x1c8adc,oldValue:_0x569d7e,newValue:_0x599747}of _0x15c6e9)this['markAttributeChange'](_0xd5a4,_0x1c8adc,_0x569d7e,_0x599747,{'groupId':_0x3fc29c});this['_reduceExistingSuggestions'](_0x77d0dd,_0x15c6e9);});},{'priority':'lowest'}),_0x2a059e['model']['markers']['on']('update:suggestion',(_0x536ea2,_0x37a6b2,_0x2a594a)=>{if(null==_0x2a594a){const {id:_0x5d3aaa}=this['_splitMarkerName'](_0x37a6b2['name']),_0x1fae81=this['_suggestions']['get'](_0x5d3aaa);_0x1fae81&&_0x1fae81['addMarkerName'](_0x37a6b2['name']);}}),_0x2a059e['model']['document']['on']('change:data',()=>{const _0x5c1983=Array['from'](_0x2a059e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5e1c1a=>'suggestion'===this['_splitMarkerName'](_0x5e1c1a['name'])['group']);if(0x0===_0x5c1983['length'])return;_0x5c1983['sort']((_0x5025e4,_0x4ab1f6)=>{const _0x131a0d=_0x5025e4['data']['oldRange'],_0x224ecc=_0x4ab1f6['data']['oldRange'];return null===_0x131a0d&&null===_0x224ecc?0x0:null===_0x131a0d&&null!==_0x224ecc?-0x1:null!==_0x131a0d&&null===_0x224ecc?0x1:_0x131a0d['start']['isBefore'](_0x224ecc['start'])?-0x1:0x1;});const _0x4d298f=new Set(),_0x316126=new Set();for(const {name:_0x4c855c,data:_0x39a33c}of _0x5c1983){const {id:_0x576063}=this['_splitMarkerName'](_0x4c855c);if(null===_0x39a33c['oldRange']){const _0x1906f4=this['_handleNewSuggestionMarker'](_0x4c855c);_0x316126['add'](_0x1906f4);}else{const _0x10f610=this['_suggestions']['get'](_0x576063);null!==_0x39a33c['newRange']||_0x10f610['isInContent']?(_0x4d298f['add'](_0x10f610['head']),_0x316126['add'](_0x10f610)):this['_removeSuggestion'](_0x10f610);}}_0x316126['size']>0x0&&this['_refreshSuggestionsChain'](_0x316126);for(const _0x572372 of _0x4d298f)this['fire']('suggestionChanged',_0x572372);}),_0x2a059e['model']['on']('applyOperation',(_0x2da669,_0x5d3b3c)=>{const _0x154657=_0x5d3b3c[0x0];if(!this['_suggestions']['size'])return;if(!_0x154657['isDocumentOperation'])return;if(_0x154657['batch']['isUndo']||!_0x154657['batch']['isLocal'])return;let _0x562311,_0x559aed;switch(_0x154657['type']){case'insert':_0x562311=_0x2a059e['model']['createPositionAt'](_0x154657['position']),_0x559aed=_0x562311['getShiftedBy'](_0x154657['howMany']);break;case'split':_0x562311=_0x2a059e['model']['createPositionAt'](_0x154657['splitPosition']),_0x559aed=_0x2a059e['model']['createPositionAt'](_0x154657['moveTargetPosition']);break;case'move':_0x562311=_0x2a059e['model']['createPositionAt'](_0x154657['targetPosition']),_0x559aed=_0x562311['getShiftedBy'](_0x154657['howMany']);break;default:return;}const _0x319612=_0x2a059e['model']['createRange'](_0x562311,_0x559aed);_0x2a059e['model']['change'](()=>{for(const {suggestion:_0x15a1cd,meta:_0xba0f1f}of this['_findSuggestions'](_0x319612)){if(_0x15a1cd['isMultiRange'])continue;if('formatInline'==_0x15a1cd['type'])continue;const _0x1a49ad=this['_getAttributeKey'](_0x15a1cd);if(_0x1a49ad&&this['_isBlockAttribute'](_0x1a49ad)&&'split'!=_0x154657['type'])continue;const _0x4067de=_0x15a1cd['data']&&_0x15a1cd['data']['multipleBlocks'];('formatBlock'!=_0x15a1cd['type']||'split'==_0x154657['type']&&!_0x4067de)&&(_0xba0f1f['containsRangeInObject']||'insertion'==_0x15a1cd['type']&&_0xba0f1f['isOwn']||_0x15a1cd['getFirstRange']()['containsRange'](_0x319612)&&this['_breakSuggestionMarker'](_0x15a1cd,_0x562311,_0x559aed));}});},{'priority':'lowest'}),_0x2a059e['model']['on']('deleteContent',(_0xea44d8,_0x372b5f)=>{const _0x120e7f=_0x372b5f[0x0],_0x3c9654=_0x372b5f[0x1];if(_0x3c9654&&_0x3c9654['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x120e7f['isCollapsed'])return;const _0x276e83=_0x2a059e['model']['schema'],{start:_0x44ad49,end:_0x596e1e}=_0x120e7f['getFirstRange'](),_0x42ba06=_0x44ad49['nodeAfter']&&_0x276e83['isLimit'](_0x44ad49['nodeAfter'])?null:_0x276e83['getNearestSelectionRange'](_0x44ad49,'forward'),_0x219086=_0x596e1e['nodeBefore']&&_0x276e83['isLimit'](_0x596e1e['nodeBefore'])?null:_0x276e83['getNearestSelectionRange'](_0x596e1e,'backward'),_0x41098c=_0x2a059e['model']['createRange'](_0x42ba06?_0x42ba06['start']:_0x44ad49,_0x219086?_0x219086['end']:_0x596e1e);_0x2a059e['model']['change'](_0x1491ac=>{this['markDeletion'](_0x41098c);const _0x394bb6=_0x2a059e['model']['schema']['getNearestSelectionRange'](_0x41098c['start']);_0x120e7f['is']('documentSelection')?_0x1491ac['setSelection'](_0x394bb6):_0x120e7f['setTo'](_0x394bb6);}),_0xea44d8['stop']();},{'priority':_0x19128a['normal']+0xa}),_0x2a059e['model']['on']('insertContent',(_0x4d8e17,_0x4a7ea0)=>{const _0x12c081=_0x4a7ea0[_0x4a7ea0['length']-0x1];_0x12c081&&_0x12c081['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2a059e['model']['change'](()=>{let _0xbc185=_0x2a059e['model']['insertContent'](_0x4a7ea0[0x0],_0x4a7ea0[0x1],_0x4a7ea0[0x2],{'forceDefaultExecution':!0x0});if(!_0xbc185)return;_0x4d8e17['return']=_0xbc185['clone']();const _0x5472aa=_0xbc185['end']['nodeBefore'],_0x24f379=_0x2a059e['model']['schema'];_0x5472aa&&_0x24f379['isBlock'](_0x5472aa)&&!_0x24f379['isObject'](_0x5472aa)&&(_0xbc185=_0x2a059e['model']['createRange'](_0xbc185['start'],_0x2a059e['model']['createPositionAt'](_0x5472aa,'end'))),this['markInsertion'](_0xbc185);}),_0x4d8e17['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x227a1a=new O(_0x2a059e,this['_suggestions']);_0x2a059e['commands']['add']('acceptSuggestion',_0x227a1a),this['enableCommand']('acceptSuggestion');const _0x2d400f=new R(_0x2a059e,this['_suggestions']);_0x2a059e['commands']['add']('discardSuggestion',_0x2d400f),this['enableCommand']('discardSuggestion'),_0x2a059e['commands']['add']('acceptAllSuggestions',new x(_0x2a059e,_0x227a1a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2a059e['commands']['add']('discardAllSuggestions',new x(_0x2a059e,_0x2d400f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2a059e['commands']['add']('acceptSelectedSuggestions',new E(_0x2a059e,_0x227a1a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2a059e['commands']['add']('discardSelectedSuggestions',new E(_0x2a059e,_0x2d400f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x435efa=_0x2a059e['plugins']['get']('CommentsRepository');this['listenTo'](_0x435efa,'addComment',(_0x30baf6,{threadId:_0x3423b1})=>{const _0x2d993b=this['_suggestions']['get'](_0x3423b1);_0x2d993b&&_0x2d993b['commentThread']&&0x1===_0x2d993b['commentThread']['length']&&this['_updateSuggestionData'](_0x3423b1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x435efa,'removeComment',(_0x4f9670,{threadId:_0x5eed3c})=>{const _0x3cbc55=this['_suggestions']['get'](_0x5eed3c);_0x3cbc55&&_0x3cbc55['commentThread']&&!_0x3cbc55['commentThread']['length']&&this['_updateSuggestionData'](_0x5eed3c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x259eaa){const _0x3a925b=_0x237e57([0x71,0x56,0x68,0x45,0x38,0x55,0x35,0x30,0x39,0x79,0x41,0x62,0x48,0x69,0x57,0x32,0x6c,0x67,0x53,0x4a,0x50,0x43,0x44,0x66,0x4f,0x6a,0x73,0x70,0x76,0x65,0x6e,0x6f,0x64,0x6d,0x78,0x52,0x58,0x74,0x37,0x47,0x54,0x31,0x63,0x61,0x49,0x46,0x77,0x51,0x42,0x4e,0x34,0x4b,0x4c,0x6b,0x33,0x59,0x36,0x75,0x72,0x5a,0x7a,0x4d]),_0x17916f=0x498d5e33,_0x572bba=0x498a07a3^_0x17916f,_0x2b6bf6=window[_0x237e57([0x44,0x61,0x74,0x65])][_0x237e57([0x6e,0x6f,0x77])](),_0xb2983e=_0x259eaa[_0x237e57([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35cb08=new window[(_0x237e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329ae2=>{_0xb2983e[_0x237e57([0x6f,0x6e,0x63,0x65])](_0x237e57([0x72,0x65,0x61,0x64,0x79]),_0x329ae2);}),_0x9cd183={[_0x237e57([0x6b,0x74,0x79])]:_0x237e57([0x45,0x43]),[_0x237e57([0x75,0x73,0x65])]:_0x237e57([0x73,0x69,0x67]),[_0x237e57([0x63,0x72,0x76])]:_0x237e57([0x50,0x2d,0x32,0x35,0x36]),[_0x237e57([0x78])]:_0x237e57([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]),[_0x237e57([0x79])]:_0x237e57([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]),[_0x237e57([0x61,0x6c,0x67])]:_0x237e57([0x45,0x53,0x32,0x35,0x36])},_0x6de9f5=_0xb2983e[_0x237e57([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x237e57([0x67,0x65,0x74])](_0x237e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x157001(){let _0x489ac6,_0x4d4fe6=null,_0x48f2dd=null;try{if(_0x6de9f5==_0x237e57([0x47,0x50,0x4c]))return _0x237e57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x489ac6=_0x3c11f7(),!_0x489ac6)return _0x237e57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x489ac6[_0x237e57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48f2dd=_0x48d29c(_0x489ac6[_0x237e57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x489ac6[_0x237e57([0x6a,0x74,0x69])])),await _0x2ef7e4()?_0x2d0117()?_0x19962a()?_0x237e57([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x123e53()?(_0x489ac6[_0x237e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x237e57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d4fe6=_0x257877(_0x237e57([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x489ac6[_0x237e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x237e57([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d4fe6=_0x257877(_0x237e57([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x489ac6[_0x237e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x237e57([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4d4fe6=_0x257877(_0x237e57([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3bfc0e()):_0x237e57([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x237e57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x237e57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x492708){return _0x237e57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x19962a(){const _0x4ae01b=[_0x237e57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x237e57([0x74,0x72,0x69,0x61,0x6c])][_0x237e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489ac6[_0x237e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b6bf6/0x3e8:0xe10*_0x572bba;return _0x489ac6[_0x237e57([0x65,0x78,0x70])]<_0x4ae01b;}function _0x2d0117(){const _0x229072=_0x489ac6[_0x237e57([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x229072)return!0x1;if(_0x229072[_0x237e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x237e57([0x2a])))return!0x0;if(_0x229072[_0x237e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x237e57([0x54,0x43])))return!0x0;if(_0x229072[_0x237e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x237e57([0x52,0x54,0x43]))){if(_0x295b07())return!0x0;if(_0xa2dc71()||_0x4c70cf())return!0x0;}return!0x1;}function _0x123e53(){const _0x50b6bc=_0x489ac6[_0x237e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50b6bc||0x0==_0x50b6bc[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x184c2d}=new URL(window[_0x237e57([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50b6bc[_0x237e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x184c2d))return!0x0;const _0x28bfb1=_0x184c2d[_0x237e57([0x73,0x70,0x6c,0x69,0x74])](_0x237e57([0x2e]));return _0x50b6bc[_0x237e57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35d4eb=>_0x35d4eb[_0x237e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x237e57([0x2a])))[_0x237e57([0x6d,0x61,0x70])](_0xc20c59=>_0xc20c59[_0x237e57([0x73,0x70,0x6c,0x69,0x74])](_0x237e57([0x2e])))[_0x237e57([0x73,0x6f,0x6d,0x65])](_0x307ffd=>_0x28bfb1[_0x237e57([0x65,0x76,0x65,0x72,0x79])]((_0x5be2c5,_0x1406d4)=>_0x307ffd[_0x1406d4]===_0x5be2c5||_0x307ffd[_0x1406d4]===_0x237e57([0x2a])));}function _0x3bfc0e(){return _0x4d4fe6&&_0x48f2dd?new window[(_0x237e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f8717,_0x13a005)=>{_0x4d4fe6[_0x237e57([0x74,0x68,0x65,0x6e])](_0x1f8717,_0x13a005),_0x48f2dd[_0x237e57([0x74,0x68,0x65,0x6e])](_0x5c5716=>{_0x5c5716!=_0x237e57([0x56,0x61,0x6c,0x69,0x64])&&_0x1f8717(_0x5c5716);},_0x13a005);}):_0x4d4fe6||_0x48f2dd||_0x237e57([0x56,0x61,0x6c,0x69,0x64]);}}function _0x48d29c(_0x3173dc,_0x1eb4b1){return new window[(_0x237e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32bd66=>{if(_0x438536())return _0x32bd66(_0x237e57([0x56,0x61,0x6c,0x69,0x64]));_0xf62d97(),_0xb2983e[_0x237e57([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x237e57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56d136=!0x1;const _0x2bad9f=_0x4fc915();function _0xfd7871(_0x4f4b3e){return!!_0x4f4b3e&&(typeof _0x4f4b3e===_0x237e57([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f4b3e===_0x237e57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f4b3e[_0x237e57([0x74,0x68,0x65,0x6e])]===_0x237e57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f4b3e[_0x237e57([0x63,0x61,0x74,0x63,0x68])]===_0x237e57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5da3ff(_0x453d08){_0x3a3532(_0x453d08)[_0x237e57([0x74,0x68,0x65,0x6e])](_0x36057b=>{if(!_0x36057b||_0x36057b[_0x237e57([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x237e57([0x6f,0x6b]))return _0x237e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x425a58(_0x1e5662(_0x2bad9f+_0x1eb4b1))!=_0x36057b[_0x237e57([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x237e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x237e57([0x56,0x61,0x6c,0x69,0x64]);})[_0x237e57([0x74,0x68,0x65,0x6e])](_0x253ef0=>(_0x540969(),_0x253ef0),()=>{const _0x68c14d=_0x6da73b();return null==_0x68c14d?(_0x540969(),_0x237e57([0x56,0x61,0x6c,0x69,0x64])):_0x237e57(_0x2b6bf6-_0x68c14d>(0x6d81da33^_0x17916f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x237e57([0x74,0x68,0x65,0x6e])](_0x32bd66)[_0x237e57([0x63,0x61,0x74,0x63,0x68])](()=>{_0x32bd66(_0x237e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3cb1eb=0x49bbb0b3^_0x17916f;function _0x540969(){const _0x20e425=_0x237e57([0x6c,0x6c,0x63,0x74,0x2d])+_0x425a58(_0x1e5662(_0x3173dc)),_0x1cc73d=_0x491e37(_0x425a58(window[_0x237e57([0x4d,0x61,0x74,0x68])][_0x237e57([0x63,0x65,0x69,0x6c])](_0x2b6bf6/_0x3cb1eb)));window[_0x237e57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x237e57([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20e425,_0x1cc73d);}function _0x6da73b(){const _0x3d6b55=_0x237e57([0x6c,0x6c,0x63,0x74,0x2d])+_0x425a58(_0x1e5662(_0x3173dc)),_0x46213b=window[_0x237e57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x237e57([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d6b55);return _0x46213b?window[_0x237e57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x491e37(_0x46213b),0x10)*_0x3cb1eb:null;}function _0x3a3532(_0x1564bd){return new window[(_0x237e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f37f5,_0x574932)=>{_0x1564bd[_0x237e57([0x74,0x68,0x65,0x6e])](_0x4f37f5,_0x574932),window[_0x237e57([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x574932,0x498c8af3^_0x17916f);});}}_0xb2983e[_0x237e57([0x6f,0x6e])](_0x237e57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x24ba4c,_0x4ad923)=>{if(_0x4ad923[0x0]!=_0x3173dc)return _0x32bd66(_0x237e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ad923[0x1]={..._0x4ad923[0x1],[_0x237e57([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2bad9f};},{[_0x237e57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x237e57([0x68,0x69,0x67,0x68])}),_0xb2983e[_0x237e57([0x6f,0x6e])](_0x237e57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c9deb=>{_0xfd7871(_0x2c9deb[_0x237e57([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56d136=!0x0,_0x5da3ff(_0x2c9deb[_0x237e57([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x237e57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x237e57([0x6c,0x6f,0x77])}),_0x35cb08[_0x237e57([0x74,0x68,0x65,0x6e])](()=>{_0x56d136||_0x32bd66(_0x237e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x438536(){return _0xb2983e[_0x237e57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x237e57([0x76,0x69,0x65,0x77])][_0x237e57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x237e57([0x61,0x75,0x74,0x6f]);}function _0xf62d97(){_0xb2983e[_0x237e57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x237e57([0x76,0x69,0x65,0x77])][_0x237e57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x237e57([0x61,0x75,0x74,0x6f]);}}function _0x257877(_0x9876ae){const _0x23cde2=[new window[(_0x237e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x582839=>setTimeout(_0x582839,0x498460ff^_0x17916f)),_0x35cb08[_0x237e57([0x74,0x68,0x65,0x6e])](()=>new window[(_0x237e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3570e7=>{let _0x3cfcec=0x0;_0xb2983e[_0x237e57([0x6d,0x6f,0x64,0x65,0x6c])][_0x237e57([0x6f,0x6e])](_0x237e57([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4dd8ea,_0x1bb9f0)=>{_0x1bb9f0[0x0][_0x237e57([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3cfcec++,_0x3cfcec==(0x498d5fcb^_0x17916f)&&(_0x3570e7(),_0x4dd8ea[_0x237e57([0x6f,0x66,0x66])]());});}))];return window[_0x237e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x237e57([0x72,0x61,0x63,0x65])](_0x23cde2)[_0x237e57([0x74,0x68,0x65,0x6e])](()=>_0x9876ae);}async function _0x264fe2(){await _0x35cb08,_0xb2983e[_0x237e57([0x6d,0x6f,0x64,0x65,0x6c])][_0x237e57([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x14b60b,_0xb2983e[_0x237e57([0x6d,0x6f,0x64,0x65,0x6c])][_0x237e57([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x14b60b,_0xb2983e[_0x237e57([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x237e57([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x295b07(){return _0x5aa4fe(_0x237e57([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x46fbe7(_0x237e57([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x237e57([0x73,0x74,0x61,0x74,0x65])]==_0x237e57([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa2dc71(){return _0x5aa4fe(_0x237e57([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 _0x4c70cf(){return _0x5aa4fe(_0x237e57([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3ca5b7(_0x531f42){const _0x95b2d2=_0x3fb13b();_0xb2983e[_0x95b2d2]=_0x237e57([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x531f42,_0x531f42!=_0x237e57([0x56,0x61,0x6c,0x69,0x64])&&_0x264fe2();}function _0x3fb13b(){const _0x16b14b=window[_0x237e57([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x237e57([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x237e57([0x6e,0x6f,0x77])]())[_0x237e57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x237e57([0x2e]),'');let _0xac1ec1=_0x237e57([0x71]);for(let _0x56da9b=0x0;_0x56da9b<_0x16b14b[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56da9b+=0x2){let _0xd4029c=window[_0x237e57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16b14b[_0x237e57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56da9b,_0x56da9b+0x2));_0xd4029c>=_0x3a925b[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xd4029c-=_0x3a925b[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xac1ec1+=_0x3a925b[_0xd4029c];}return _0xac1ec1;}function _0x3c11f7(){const _0x93a8d1=_0x6de9f5[_0x237e57([0x73,0x70,0x6c,0x69,0x74])](_0x237e57([0x2e]));if(0x3!=_0x93a8d1[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37bf8e(_0x93a8d1[0x1]);function _0x37bf8e(_0xbebfb3){const _0xaebda8=_0x57ac58(_0xbebfb3);return _0xaebda8&&_0x5d3d7d()?_0xaebda8:null;function _0x5d3d7d(){const _0x3750db=_0xaebda8[_0x237e57([0x6a,0x74,0x69])],_0x1993d0=window[_0x237e57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3750db[_0x237e57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3750db[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32ce7b={..._0xaebda8,[_0x237e57([0x6a,0x74,0x69])]:_0x3750db[_0x237e57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3750db[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32ce7b[_0x237e57([0x76,0x63])],_0x1e5662(_0x32ce7b)==_0x1993d0;}}}async function _0x2ef7e4(){let _0x1b4045=!0x0;try{const _0x262e41=_0x6de9f5[_0x237e57([0x73,0x70,0x6c,0x69,0x74])](_0x237e57([0x2e])),[_0x30c34e,_0x4853a0,_0x28a435]=_0x262e41;return _0x4bd458(_0x30c34e),await _0x4e3f16(_0x30c34e,_0x4853a0,_0x28a435),_0x1b4045;}catch(_0x5bb392){return!0x1;}function _0x4bd458(_0x4a711d){const _0xc39a36=_0x57ac58(_0x4a711d);_0xc39a36&&_0xc39a36[_0x237e57([0x61,0x6c,0x67])]==_0x237e57([0x45,0x53,0x32,0x35,0x36])||(_0x1b4045=!0x1);}async function _0x4e3f16(_0x44414b,_0xd1ddc3,_0x4e9afa){const _0x2d731a=window[_0x237e57([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x237e57([0x66,0x72,0x6f,0x6d])](_0x705a43(_0x4e9afa),_0x52ba83=>_0x52ba83[_0x237e57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25307f=new window[(_0x237e57([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x237e57([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x44414b+_0x237e57([0x2e])+_0xd1ddc3),_0x2f837f=window[_0x237e57([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x237e57([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f837f)return;const _0x29009f=await _0x2f837f[_0x237e57([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x237e57([0x6a,0x77,0x6b]),_0x9cd183,{[_0x237e57([0x6e,0x61,0x6d,0x65])]:_0x237e57([0x45,0x43,0x44,0x53,0x41]),[_0x237e57([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x237e57([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x237e57([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f837f[_0x237e57([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x237e57([0x6e,0x61,0x6d,0x65])]:_0x237e57([0x45,0x43,0x44,0x53,0x41]),[_0x237e57([0x68,0x61,0x73,0x68])]:{[_0x237e57([0x6e,0x61,0x6d,0x65])]:_0x237e57([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29009f,_0x2d731a,_0x25307f)||(_0x1b4045=!0x1);}}function _0x57ac58(_0x1cb161){return _0x1cb161[_0x237e57([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x237e57([0x65,0x79]))?JSON[_0x237e57([0x70,0x61,0x72,0x73,0x65])](_0x705a43(_0x1cb161)):null;}function _0x705a43(_0x41a1a3){return window[_0x237e57([0x61,0x74,0x6f,0x62])](_0x41a1a3[_0x237e57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x237e57([0x2b]))[_0x237e57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x237e57([0x2f])));}function _0x1e5662(_0x15a6af){let _0x3f3fc2=0x1505;function _0x54936c(_0x31eb76){for(let _0x42701b=0x0;_0x42701b<_0x31eb76[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42701b++){const _0x57af62=_0x31eb76[_0x237e57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42701b);_0x3f3fc2=(_0x3f3fc2<<0x5)+_0x3f3fc2+_0x57af62,_0x3f3fc2&=_0x3f3fc2;}}function _0x2e7232(_0x5fcdad){Array[_0x237e57([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5fcdad)?_0x5fcdad[_0x237e57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e7232):_0x5fcdad&&typeof _0x5fcdad==_0x237e57([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x237e57([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5fcdad)[_0x237e57([0x73,0x6f,0x72,0x74])]()[_0x237e57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x536824,_0x45be20])=>{_0x54936c(_0x536824),_0x2e7232(_0x45be20);}):_0x54936c(window[_0x237e57([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5fcdad));}return _0x2e7232(_0x15a6af),_0x3f3fc2>>>0x0;}function _0x425a58(_0x1db75d){return _0x1db75d[_0x237e57([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x237e57([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x237e57([0x30]));}function _0x491e37(_0x46bdc2){return _0x46bdc2[_0x237e57([0x73,0x70,0x6c,0x69,0x74])]('')[_0x237e57([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x237e57([0x6a,0x6f,0x69,0x6e])]('');}function _0x5aa4fe(_0x168646){return _0xb2983e[_0x237e57([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x237e57([0x68,0x61,0x73])](_0x168646);}function _0x46fbe7(_0x1db0d7){return _0xb2983e[_0x237e57([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x237e57([0x67,0x65,0x74])](_0x1db0d7);}function _0x14b60b(){}function _0x237e57(_0x3ae79a){return _0x3ae79a['map'](_0x3e86d0=>String['fromCharCode'](_0x3e86d0))['join']('');}_0x3ca5b7(await _0x157001());}(this);}set['adapter'](_0x1fac9e){if(this['_adapter'])throw new _0x541450('track-changes-adapter-already-set',this);this['_adapter']=_0x1fac9e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x42d752=!0x1,toJSON:_0x5e0417=!0x1}={}){const _0x2dd0d2=[];for(const _0x5c1362 of this['_suggestions']['values']())_0x42d752&&!_0x5c1362['isInContent']||_0x2dd0d2['push'](_0x5c1362);return _0x5e0417?_0x2dd0d2['map'](_0x3c9bdf=>_0x3c9bdf['toJSON']()):_0x2dd0d2;}['getSuggestion'](_0x3cfead){const _0x5e9af9=this['_suggestions']['get'](_0x3cfead);if(!_0x5e9af9)throw new _0x541450('track-changes-suggestion-not-found',this);return _0x5e9af9;}['hasSuggestion'](_0x1ee00b){return this['_suggestions']['has'](_0x1ee00b);}['addSuggestionData'](_0x894d32){const {authorId:_0x51f72b,id:_0x1d0643,attributes:_0x24a36e}=_0x894d32,[_0x264e4d,_0xdd81ad]=_0x894d32['type']['split'](':'),_0xf473ab=this['_suggestions']['get'](_0x1d0643)||this['_createSuggestion'](_0x264e4d,_0xdd81ad,_0x1d0643,_0x51f72b,_0x24a36e);if(this['_addThreadToSuggestion'](_0xf473ab),this['_checkSuggestionCorrectness'](_0xf473ab,_0x264e4d,_0xdd81ad||null,_0x51f72b),_0xf473ab['createdAt']=_0x894d32['createdAt'],_0xf473ab['_isDataLoaded']=!0x0,_0x24a36e&&_0x24a36e['@external']){const _0x267d2d=_0x24a36e['@external'],_0x3bf865=this['_getExternalAuthor'](_0x267d2d['authorName']);_0xf473ab['authoredAt']=_0x267d2d['createdAt'],_0xf473ab['author']=_0x3bf865,_0xf473ab['isExternal']=!0x0;}else _0xf473ab['authoredAt']=_0x894d32['createdAt'];switch(_0x894d32['data']&&(_0xf473ab['data']=_0x894d32['data']),_0x894d32['attributes']&&(_0xf473ab['attributes']=_0x894d32['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xf473ab['_saved']=!0x0),this['_suggestionState']['get'](_0xf473ab)){case'notReady':this['_suggestionState']['set'](_0xf473ab,'dataReady');break;case'markerReady':_0xf473ab['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xf473ab])),this['_refreshSuggestionsChain'](new Set([_0xf473ab])),this['_suggestionState']['set'](_0xf473ab,'ready'),this['fire']('suggestionLoaded',_0xf473ab)):this['_suggestionState']['set'](_0xf473ab,'removed');}return _0xf473ab;}['acceptSuggestion'](_0x4ee476){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x42fe92 of _0x4ee476['getAllAdjacentSuggestions']())_0x42fe92['accept']();});});}['discardSuggestion'](_0x38a1f8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x349b6a of _0x38a1f8['getAllAdjacentSuggestions']())_0x349b6a['discard']();});});}['enableCommand'](_0x5876cd,_0x3987e9){const _0x447ed5=this['editor']['commands']['get'](_0x5876cd);if(!_0x447ed5)throw new _0x541450('track-changes-command-not-found',this,{'commandName':_0x5876cd});if(this['_enabledCommands']['has'](_0x447ed5))throw new _0x541450('track-changes-enable-command-twice',this,{'commandName':_0x5876cd});this['_enabledCommands']['add'](_0x447ed5),_0x3987e9&&_0x447ed5['on']('execute',(_0x34754a,_0x14bab3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x14bab3['length']>0x0&&_0x14bab3[_0x14bab3['length']-0x1]&&_0x14bab3[_0x14bab3['length']-0x1]['forceDefaultExecution']?_0x14bab3['pop']():(_0x34754a['return']=_0x3987e9((..._0xcdeb60)=>_0x447ed5['execute'](..._0xcdeb60,{'forceDefaultExecution':!0x0}),..._0x14bab3),_0x34754a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x10a371){let _0x2f7545,_0xeae9d;const _0x524879=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2f7545=_0x10a371();}catch(_0x2f2d29){_0xeae9d=_0x2f2d29;}return _0x524879||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xeae9d&&_0x541450['rethrowUnexpectedError'](_0xeae9d,this),_0x2f7545;}['markInsertion'](_0x19f6b1,_0x12f022=null,_0x126c75={}){if(_0x19f6b1['isCollapsed'])return null;const _0x4c55c3=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x49f1e8,meta:_0x3b84db}of this['_findSuggestions'](_0x19f6b1,'insertion'))if(_0x3b84db['isOwn']){if(!_0x3b84db['isNextTo']){if(_0x3b84db['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x49f1e8,_0x126c75))continue;return _0x49f1e8;}if(zt(_0x49f1e8,_0x126c75))return _0x49f1e8;this['_breakSuggestionMarker'](_0x49f1e8,_0x19f6b1['start'],_0x19f6b1['end']);break;}if(_0x12f022==_0x49f1e8['subType']&&zt(_0x49f1e8,_0x126c75)){const _0x4e4be4=_0x49f1e8['getFirstRange']();return _0x4e4be4['start']['isEqual'](_0x19f6b1['end'])?this['_setSuggestionRange'](_0x49f1e8,this['_model']['createRange'](_0x19f6b1['start'],_0x4e4be4['end'])):this['_setSuggestionRange'](_0x49f1e8,this['_model']['createRange'](_0x4e4be4['start'],_0x19f6b1['end'])),_0x49f1e8;}}const _0x10d2cf=_0x4fc915(),_0x474029=_0x4c55c3['id'],_0x5afded=_0x12f022?'insertion:'+_0x12f022:'insertion',_0x3b17c6=this['_setSuggestionData']({'id':_0x10d2cf,'type':_0x5afded,'createdAt':new Date(),'authorId':_0x474029,'attributes':_0x126c75});return this['_addSuggestionMarker'](_0x5afded,_0x10d2cf,_0x474029,_0x19f6b1),_0x3b17c6;}['markMultiRangeInsertion'](_0x306fec,_0x540bd8='multi',_0x1607b7={}){const _0x5692e8=this['editor']['plugins']['get']('Users')['me'],_0x341eb2=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x540bd8,'join');for(const _0x5b8482 of this['getSuggestions']())if(_0x5b8482['author']['id']==_0x5692e8['id']&&'insertion'==_0x5b8482['type']&&_0x5b8482['subType']==_0x540bd8&&zt(_0x5b8482,_0x1607b7)&&(_0x341eb2(_0x5b8482['getRanges'](),_0x306fec)||_0x341eb2(_0x306fec,_0x5b8482['getRanges']()))){for(const _0x3e24d0 of _0x306fec)_0x5b8482['addRange'](_0x3e24d0);return _0x5b8482;}for(const {suggestion:_0x527641,meta:_0x2a8214}of this['_findSuggestions'](_0x306fec,'insertion')){if(!_0x2a8214['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2a8214['containsRangeInObject'])continue;if(!zt(_0x527641,_0x1607b7))continue;let _0x3d57b0=!0x0;for(const _0x1e45d2 of _0x527641['getRanges']())for(const _0x3cac4a of _0x306fec)if(!_0x1e45d2['containsRange'](_0x3cac4a)){_0x3d57b0=!0x1;break;}if(_0x3d57b0)return _0x527641;}const _0x4dd8e3=_0x4fc915(),_0x282abb=_0x5692e8['id'],_0x541bf1='insertion:'+_0x540bd8,_0x170a7d=this['_setSuggestionData']({'id':_0x4dd8e3,'type':_0x541bf1,'createdAt':new Date(),'authorId':_0x282abb,'attributes':_0x1607b7});for(const _0x5e125d of _0x306fec)this['_addSuggestionMarker'](_0x541bf1,_0x4dd8e3,_0x282abb,_0x5e125d,u['getMultiRangeId']());return _0x170a7d;}['markInlineFormat'](_0xce8aa4,_0x154eaf,_0x29ed68=null,_0x79895c={}){if(_0x29ed68=_0x29ed68||Gt(_0x154eaf),_0xce8aa4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1ae8d6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29ed68,'accept');return this['forceDefaultExecution'](()=>_0x1ae8d6([_0xce8aa4],_0x154eaf,_0x79895c)),null;}const _0x491633=this['editor']['plugins']['get']('Users')['me'],_0x5464e7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3ba3ae,meta:_0x3d5d40}of this['_findSuggestions'](_0xce8aa4,'insertion'))_0x3d5d40['isOwn']&&!_0x3d5d40['isInsideObject']&&_0x5464e7['push'](..._0x3ba3ae['getRanges']());}const _0x394dbd=function(_0x22ee1c,_0x5ebfd4){const _0x3fff60=[];for(const _0xa0b08a of _0x5ebfd4){const _0x1fdd11=_0x22ee1c['getIntersection'](_0xa0b08a);_0x1fdd11&&_0x3fff60['push'](_0x1fdd11);}return _0x3fff60;}(_0xce8aa4,_0x5464e7),_0x534124=function(_0x1e2685,_0x3c85b5){const _0x11fac8=[_0x1e2685];for(const _0x4a712d of _0x3c85b5){let _0x47d440=0x0;for(;_0x47d440<_0x11fac8['length'];){const _0x14fa20=_0x11fac8[_0x47d440]['getDifference'](_0x4a712d);_0x11fac8['splice'](_0x47d440,0x1,..._0x14fa20),_0x47d440+=_0x14fa20['length'];}}return _0x11fac8;}(_0xce8aa4,_0x5464e7);_0x394dbd['length']&&this['_model']['change'](()=>{for(const _0x513c31 of _0x394dbd){const _0x1fd9e8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29ed68,'accept');this['forceDefaultExecution'](()=>_0x1fd9e8([_0x513c31],_0x154eaf,_0x79895c));}});for(const _0x28089e of _0x534124){let _0xb52a96=null,_0x31d717=_0x28089e['start'],_0x2cf561=_0x28089e['end'];for(const {suggestion:_0x48cc61,meta:_0x111721}of this['_findSuggestions'](_0x28089e,'formatInline')){if(!_0x111721['isOwn'])continue;if(_0x48cc61['subType']!=_0x29ed68)continue;if(!zt(_0x48cc61,_0x79895c))continue;const _0x45beac=_0x48cc61['getFirstRange']();if(_0x45beac['containsRange'](_0x28089e,!0x0))return null;_0x31d717=_0x31d717['isBefore'](_0x45beac['start'])?_0x31d717:_0x45beac['start'],_0x2cf561=_0x2cf561['isAfter'](_0x45beac['end'])?_0x2cf561:_0x45beac['end'],_0xb52a96?_0x45beac['start']['isBefore'](_0xb52a96['getFirstRange']()['start'])?(_0xb52a96['removeMarkers'](),_0xb52a96=_0x48cc61):_0x48cc61['removeMarkers']():_0xb52a96=_0x48cc61;}const _0x4ee06d=this['_model']['createRange'](_0x31d717,_0x2cf561);if(_0xb52a96)this['_setSuggestionRange'](_0xb52a96,_0x4ee06d);else{const _0x28e398=_0x4fc915(),_0x4a63cd=_0x491633['id'];this['_setSuggestionData']({'id':_0x28e398,'type':'formatInline:'+_0x29ed68,'data':_0x154eaf,'createdAt':new Date(),'authorId':_0x4a63cd,'attributes':_0x79895c}),this['_addSuggestionMarker']('formatInline:'+_0x29ed68,_0x28e398,_0x4a63cd,_0x4ee06d);}}return null;}['markBlockFormat'](_0x279c99,_0x4f6c89,_0x25330f=[],_0x3cd6b4=null,_0x3279c5={}){_0x4f6c89['formatGroupId']||(_0x4f6c89['formatGroupId']=_0x4f6c89['commandName']),_0x4f6c89['multipleBlocks']=_0x279c99['is']('range'),_0x3cd6b4=_0x3cd6b4||Gt(_0x4f6c89);const _0xd1cb01=_0x25330f['map'](_0x4694bd=>Jt(_0x4694bd,this['_model'])),_0xb42f3a=_0x279c99['is']('range')?_0x279c99:Jt(_0x279c99,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5df229=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cd6b4,'accept');return this['forceDefaultExecution'](()=>_0x5df229([_0xb42f3a],_0x4f6c89,_0x3279c5)),null;}_0xd1cb01['push'](_0xb42f3a);let _0x38587b=!0x0;for(const _0x527d04 of _0xd1cb01)if(!this['_rangeIsInLocalUserInsertion'](_0x527d04)){_0x38587b=!0x1;break;}if(_0x38587b&&'always'!==this['_trackFormatChanges']){const _0x193b44=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cd6b4,'accept');return this['forceDefaultExecution'](()=>_0x193b44([_0xb42f3a],_0x4f6c89,_0x3279c5)),null;}let _0x1a2e51=null,_0x427570=_0xb42f3a['start'],_0x474b83=_0xb42f3a['end'];for(const {suggestion:_0x249488,meta:_0x339806}of this['_findSuggestions'](_0xb42f3a,'formatBlock')){if(!_0x339806['isOwn'])continue;if(_0x339806['isNextTo']||_0x339806['containsRangeInObject']||_0x339806['isInsideObject'])continue;if(_0x249488['data']['formatGroupId']!=_0x4f6c89['formatGroupId'])continue;if(!zt(_0x249488,_0x3279c5))continue;const _0x543b23=_0x249488['getFirstRange']();if(_0x249488['subType']==_0x3cd6b4){if(_0x543b23['containsRange'](_0xb42f3a,!0x0))return null;_0x427570=_0x427570['isBefore'](_0x543b23['start'])?_0x427570:_0x543b23['start'],_0x474b83=_0x474b83['isAfter'](_0x543b23['end'])?_0x474b83:_0x543b23['end'],_0x1a2e51?_0x543b23['start']['isBefore'](_0x1a2e51['getFirstRange']()['start'])?(_0x1a2e51['removeMarkers'](),_0x1a2e51=_0x249488):_0x249488['removeMarkers']():_0x1a2e51=_0x249488;}else{const _0x44a3ad=_0xb42f3a['getIntersection'](_0x543b23);this['_cutOutSuggestionMarker'](_0x249488,_0x44a3ad);}}const _0x4f9f1d=this['editor']['plugins']['get']('Users')['me'],_0x22f51b=_0x4fc915(),_0x46e409=_0x4f9f1d['id'];if(_0x1a2e51)return this['_setSuggestionRange'](_0x1a2e51,this['_model']['createRange'](_0x427570,_0x474b83)),_0x1a2e51;{const _0x868ed4=this['_setSuggestionData']({'id':_0x22f51b,'type':'formatBlock:'+_0x3cd6b4,'data':_0x4f6c89,'createdAt':new Date(),'authorId':_0x46e409,'attributes':_0x3279c5});return this['_addSuggestionMarker']('formatBlock:'+_0x3cd6b4,_0x22f51b,_0x46e409,this['_model']['createRange'](_0x427570,_0x474b83)),_0x868ed4;}}['markMultiRangeBlockFormat'](_0x43b9b8,_0x27b12b,_0xc321a7=[],_0x4d2d66=null,_0x15e204={}){_0x27b12b['formatGroupId']||(_0x27b12b['formatGroupId']=_0x27b12b['commandName']);const _0x262c80=_0x43b9b8[0x0];_0x27b12b['multipleBlocks']=_0x262c80['is']('range'),_0x4d2d66=_0x4d2d66||Gt(_0x27b12b);const _0x356970=_0xc321a7['map'](_0x3ec07d=>Jt(_0x3ec07d,this['_model'])),_0x2a8b80=_0x262c80['is']('range')?_0x43b9b8:_0x43b9b8['map'](_0x258b2f=>Jt(_0x258b2f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x57d734=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d2d66,'accept');return this['forceDefaultExecution'](()=>_0x57d734(_0x2a8b80,_0x27b12b,_0x15e204)),null;}_0x356970['push'](..._0x2a8b80);let _0x51bdcd=!0x0;for(const _0xdbc2b8 of _0x356970)if(!this['_rangeIsInLocalUserInsertion'](_0xdbc2b8)){_0x51bdcd=!0x1;break;}if(_0x51bdcd&&'always'!==this['_trackFormatChanges']){const _0xe36033=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d2d66,'accept');return this['forceDefaultExecution'](()=>_0xe36033(_0x2a8b80,_0x27b12b,_0x15e204)),null;}const _0x306da7=this['editor']['plugins']['get']('Users')['me'];for(const _0x3b6868 of this['getSuggestions']()){if(_0x3b6868['author']['id']!=_0x306da7['id'])continue;if('formatBlock'!=_0x3b6868['type']||_0x3b6868['data']['formatGroupId']!=_0x27b12b['formatGroupId'])continue;if(!zt(_0x3b6868,_0x15e204))continue;const _0x541cb2=_0x3b6868['subType']==_0x4d2d66;for(let _0x86ae94=0x0;_0x86ae94<_0x2a8b80['length'];_0x86ae94++){const _0x798dfc=_0x2a8b80[_0x86ae94];for(const _0x22c36b of _0x3b6868['getMarkers']()){const _0x502559=_0x22c36b['getRange']();if(_0x798dfc['isEqual'](_0x502559)){_0x541cb2?(_0x2a8b80['splice'](_0x86ae94,0x1),_0x86ae94--):_0x3b6868['removeMarker'](_0x22c36b['name']);break;}}}}if(0x0==_0x2a8b80['length'])return null;const _0x4c7571=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d2d66,'join');for(const _0x519f7f of this['getSuggestions']())if(_0x519f7f['author']['id']==_0x306da7['id']&&'formatBlock'==_0x519f7f['type']&&_0x519f7f['data']['formatGroupId']==_0x27b12b['formatGroupId']&&_0x519f7f['subType']==_0x4d2d66&&zt(_0x519f7f,_0x15e204)&&(_0x4c7571(_0x519f7f['getRanges'](),_0x2a8b80)||_0x4c7571(_0x2a8b80,_0x519f7f['getRanges']()))){for(const _0x32afdb of _0x2a8b80)_0x519f7f['addRange'](_0x32afdb);return _0x519f7f;}const _0x50690f=_0x4fc915(),_0xb0af60=_0x306da7['id'],_0x53d537='formatBlock:'+_0x4d2d66,_0x4b6b24=this['_setSuggestionData']({'id':_0x50690f,'type':_0x53d537,'data':_0x27b12b,'createdAt':new Date(),'authorId':_0xb0af60,'attributes':_0x15e204});for(const _0x810c73 of _0x2a8b80)this['_addSuggestionMarker'](_0x53d537,_0x50690f,_0xb0af60,_0x810c73,u['getMultiRangeId']());return _0x4b6b24;}['markDeletion'](_0x5b2d86,_0x345fe1=null,_0x3fc7fe={}){if(_0x5b2d86['isCollapsed'])return null;const _0x5bbc1b=this['editor']['plugins']['get']('Users')['me'],_0x2cbe14=new _0xac092f(_0x5b2d86['start'],_0x5b2d86['end']);for(const {suggestion:_0x34f34a,meta:_0x4e7be8}of this['_findSuggestions'](_0x2cbe14,'insertion'))if(_0x4e7be8['isOwn']&&!_0x4e7be8['isNextTo']){if(_0x34f34a['isMultiRange']){const _0x2787c8=_0x34f34a['getRanges']()['filter'](_0x214981=>'$graveyard'!=_0x214981['root']['rootName']);_0x2787c8['every'](_0x4d83fa=>_0x2cbe14['containsRange'](_0x4d83fa,!0x0))&&_0x34f34a['discard']();if(_0x2787c8['some'](_0xb8398f=>_0xb8398f['containsRange'](_0x2cbe14,!0x0))){const _0x5714c4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x345fe1,'accept');return this['forceDefaultExecution'](()=>_0x5714c4([_0x2cbe14],null,_0x3fc7fe)),null;}}else{const _0x10690c=_0x2cbe14['getIntersection'](_0x34f34a['getFirstRange']());null!==_0x10690c&&_0x34f34a['_onDiscard']([_0x10690c],null,_0x3fc7fe);}}if(_0x2cbe14['detach'](),_0x2cbe14['isCollapsed']||'$graveyard'==_0x2cbe14['root']['rootName'])return null;let _0x1017fd=null,_0x263454=_0x2cbe14['start'],_0x1d18f3=_0x2cbe14['end'];const _0x1a9d49=this['_findSuggestions'](_0x2cbe14,'deletion');for(const {suggestion:_0x2f86d3,meta:_0x11f1c6}of _0x1a9d49){const _0x2f3dcd=this['_model']['createRange'](_0x263454,_0x1d18f3);if(_0x11f1c6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x11f1c6['containsRangeInObject']&&!_0x11f1c6['isInsideObject'])){if(_0x2f86d3['isMultiRange']){if(!zt(_0x2f86d3,_0x3fc7fe))continue;let _0x4f6f4a=!0x0;for(const _0x5361e1 of _0x2f86d3['getRanges']()){if(_0x5361e1['containsRange'](_0x2f3dcd,!0x0))return _0x2f86d3;_0x2f3dcd['containsRange'](_0x5361e1)||(_0x4f6f4a=!0x1);}_0x4f6f4a&&_0x2f86d3['discard']();}else{const _0x580be3=_0x2f86d3['getFirstRange']();if(_0x580be3['containsRange'](_0x2f3dcd,!0x0))return _0x2f86d3;if(!zt(_0x2f86d3,_0x3fc7fe)){_0x2f3dcd['containsRange'](_0x580be3)?_0x2f86d3['removeMarkers']():_0x580be3['containsPosition'](_0x263454)?_0x263454=_0x580be3['end']:_0x580be3['containsPosition'](_0x1d18f3)&&(_0x1d18f3=_0x580be3['start']);continue;}_0x263454=_0x263454['isBefore'](_0x580be3['start'])?_0x263454:_0x580be3['start'],_0x1d18f3=_0x1d18f3['isAfter'](_0x580be3['end'])?_0x1d18f3:_0x580be3['end'],_0x3fc7fe=Object['assign']({},_0x2f86d3['attributes']),_0x1017fd?_0x580be3['start']['isBefore'](_0x1017fd['getFirstRange']()['start'])?(_0x1017fd['removeMarkers'](),_0x1017fd=_0x2f86d3):_0x2f86d3['removeMarkers']():_0x1017fd=_0x2f86d3;}}}if(_0x1017fd)return this['_setSuggestionRange'](_0x1017fd,this['_model']['createRange'](_0x263454,_0x1d18f3)),_0x1017fd;{const _0x432f40=_0x4fc915(),_0x232067=this['_model']['createRange'](_0x263454,_0x1d18f3),_0x23c98d=_0x5bbc1b['id'],_0x35505e=_0x345fe1?'deletion:'+_0x345fe1:'deletion',_0x438189=this['_setSuggestionData']({'id':_0x432f40,'type':_0x35505e,'createdAt':new Date(),'authorId':_0x23c98d,'attributes':_0x3fc7fe});return this['_addSuggestionMarker'](_0x35505e,_0x432f40,_0x23c98d,_0x232067),_0x438189;}}['markMultiRangeDeletion'](_0x10f684,_0x4e06b1='multi',_0x319f68={}){const _0x22b3a8=this['editor']['plugins']['get']('Users')['me'],_0x175b35=_0x10f684['map'](_0xa1d8d8=>new _0xac092f(_0xa1d8d8['start'],_0xa1d8d8['end'])),_0x2d4ebf=new Set();for(const {suggestion:_0x49d307,meta:_0x120c98}of this['_findSuggestions'](_0x175b35,'insertion'))_0x120c98['isOwn']&&!_0x120c98['isNextTo']&&_0x2d4ebf['add'](_0x49d307);for(const _0x1eb1fa of _0x2d4ebf)if(_0x1eb1fa['isMultiRange']){const _0x1bcf1e=_0x1eb1fa['getRanges']();(!_0x1eb1fa['attributes']||!_0x1eb1fa['attributes']['skipNestingCheck'])&&(_0x1bcf1e['every'](_0x7af146=>_0x175b35['some'](_0xb28aeb=>_0xb28aeb['containsRange'](_0x7af146,!0x0)))&&_0x1eb1fa['discard']());if(_0x175b35['every'](_0x188f8a=>_0x1bcf1e['some'](_0x4f3fd1=>_0x4f3fd1['containsRange'](_0x188f8a,!0x0)))){const _0x271a07=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4e06b1,'accept');return this['forceDefaultExecution'](()=>_0x271a07(_0x10f684,null,_0x319f68)),null;}}else{const _0x28429d=_0x1eb1fa['getFirstRange']();_0x175b35['some'](_0x5413cb=>_0x5413cb['containsRange'](_0x28429d,!0x0))&&_0x1eb1fa['discard']();if(_0x175b35['every'](_0x2d8818=>_0x28429d['containsRange'](_0x2d8818,!0x0))){const _0x268686=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4e06b1,'accept');return this['forceDefaultExecution'](()=>_0x268686(_0x175b35,null,_0x319f68)),null;}}const _0x44b9e6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4e06b1,'join');let _0x40fe3b=null;for(const _0x3a2399 of this['getSuggestions']())if(_0x3a2399['author']['id']==_0x22b3a8['id']&&_0x3a2399['isInContent']&&'deletion'==_0x3a2399['type']&&_0x3a2399['subType']==_0x4e06b1&&zt(_0x3a2399,_0x319f68)&&(_0x44b9e6(_0x3a2399['getRanges'](),_0x175b35)||_0x44b9e6(_0x175b35,_0x3a2399['getRanges']()))){if(_0x40fe3b){if(_0x3a2399['commentThread']&&_0x3a2399['commentThread']['length'])continue;for(const _0x47952d of _0x3a2399['getRanges']())_0x40fe3b['isIntersectingWithRange'](_0x47952d)||_0x40fe3b['addRange'](_0x47952d);_0x3a2399['removeMarkers']();}else{_0x40fe3b=_0x3a2399;for(const _0x4cdded of _0x175b35)_0x3a2399['isIntersectingWithRange'](_0x4cdded)||_0x3a2399['addRange'](_0x4cdded);}}if(_0x40fe3b)return _0x40fe3b;_0x2d4ebf['clear']();for(const {suggestion:_0x3adb0c,meta:_0x5c697c}of this['_findSuggestions'](_0x175b35,'deletion'))_0x5c697c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c697c['containsRangeInObject']&&!_0x5c697c['isInsideObject'])&&zt(_0x3adb0c,_0x319f68)&&_0x2d4ebf['add'](_0x3adb0c);for(const _0x321c51 of _0x2d4ebf){const _0x223cbf=_0x321c51['getRanges']();if(!_0x319f68||!_0x319f68['skipNestingCheck']){if(_0x175b35['every'](_0x968e25=>_0x223cbf['some'](_0x409df7=>_0x409df7['containsRange'](_0x968e25,!0x0))))return _0x321c51;}(!_0x321c51['attributes']||!_0x321c51['attributes']['skipNestingCheck'])&&(_0x223cbf['every'](_0x7da54e=>_0x175b35['some'](_0x4de183=>_0x4de183['containsRange'](_0x7da54e,!0x0)))&&_0x321c51['discard']());}const _0x583d2=_0x4fc915(),_0x317302=_0x22b3a8['id'],_0x2366f4='deletion:'+_0x4e06b1,_0x4f36aa=this['_setSuggestionData']({'id':_0x583d2,'type':_0x2366f4,'createdAt':new Date(),'authorId':_0x317302,'attributes':_0x319f68});for(const _0x5b4e21 of _0x175b35)_0x5b4e21['detach'](),_0x5b4e21['isCollapsed']||'$graveyard'==_0x5b4e21['root']['rootName']||this['_addSuggestionMarker'](_0x2366f4,_0x583d2,_0x317302,_0x5b4e21,u['getMultiRangeId']());return _0x4f36aa;}['markAttributeChange'](_0x26d4b6,_0x52d68e,_0x5f2bcf,_0x50ab5f,_0x3e0a4a){if(_0x26d4b6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x13a83d=this['editor']['plugins']['get']('Users')['me']['id'],_0x16717f=Array['from'](this['_suggestions']['values']())['filter'](_0x1697fa=>'attribute'==_0x1697fa['type']&&_0x1697fa['data']['key']==_0x52d68e&&_0x1697fa['isIntersectingWithRange'](_0x26d4b6));if('default'===this['_trackFormatChanges']){const _0x5efb69=this['_findSuggestions'](_0x26d4b6,'insertion')['filter'](({meta:_0x3bdadf})=>_0x3bdadf['isOwn']&&!_0x3bdadf['isInsideObject']&&!_0x3bdadf['isNextTo'])['map'](({suggestion:_0x41fa67})=>_0x41fa67);_0x16717f['unshift'](..._0x5efb69);}const _0x47eae2=new Map([[_0x26d4b6,_0x5f2bcf]]);for(const _0x19a201 of _0x16717f){const _0x2d7fdc='attribute'==_0x19a201['type']?_0x19a201['data']['oldValue']:void 0x0,_0x40b91b=_0x19a201['getFirstRange'](),_0x31eb19=Array['from'](_0x47eae2['keys']())['find'](_0x3905a8=>_0x3905a8['isIntersecting'](_0x40b91b));if(!_0x31eb19)continue;const _0x387385=_0x31eb19['getDifference'](_0x40b91b);this['_isBlockAttribute'](_0x52d68e)&&'insertion'==_0x19a201['type']&&0x0!=_0x387385['length']||(_0x47eae2['delete'](_0x31eb19),_0x387385['forEach'](_0x2b23d7=>{_0x47eae2['set'](_0x2b23d7,_0x5f2bcf);}),'insertion'!=_0x19a201['type']&&_0x2d7fdc!=_0x50ab5f&&_0x47eae2['set'](_0x31eb19['getIntersection'](_0x40b91b),_0x2d7fdc));}const _0x304d63=[];for(const [_0x39cb73,_0x54d397]of _0x47eae2){const _0x1a4e8f=_0x4fc915(),_0x5df89e={'key':_0x52d68e,'oldValue':_0x54d397,'newValue':_0x50ab5f};_0x52d68e['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':_0x52d68e});const _0x94d350=('attribute:'+(_0x52d68e+'|'+Gt({'newValue':_0x50ab5f})))['substring'](0x0,0x3c),_0x5921d6=this['_setSuggestionData']({'id':_0x1a4e8f,'type':_0x94d350,'data':_0x5df89e,'createdAt':new Date(),'authorId':_0x13a83d,'attributes':_0x3e0a4a});_0x304d63['push'](_0x5921d6),this['_addSuggestionMarker'](_0x94d350,_0x1a4e8f,_0x13a83d,_0x39cb73);}return _0x304d63;}['enableDefaultAttributesIntegration'](_0x1636da){this['enableCommand'](_0x1636da,(_0x15a868,..._0x3942d7)=>{this['_recordAttributeChanges'](()=>{_0x15a868(..._0x3942d7);});});}['registerBlockAttribute'](_0x21ccec){this['_blockAttributeKeys']['add'](_0x21ccec);}['registerInlineAttribute'](_0x38b07c){this['_inlineAttributeKeys']['add'](_0x38b07c);}['_getAttributeKey'](_0x5e1c31){return'attribute'==_0x5e1c31['type']?_0x5e1c31['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x287555,_0x255a17){const _0x1f8233=_0x287555['getFirstMarker']();this['_model']['change'](_0x2875cf=>{_0x2875cf['updateMarker'](_0x1f8233,{'range':_0x255a17});});}['_addThreadToSuggestion'](_0x5014a3){const _0x29231b=_0x5014a3['id'],_0x563fdb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x29231b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x563fdb,'threadId':_0x29231b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x345aa8=this['_commentsRepository']['getCommentThread'](_0x29231b);_0x345aa8['unbind']('isRemovable'),_0x345aa8['isRemovable']=!0x1,_0x5014a3['commentThread']=_0x345aa8;}['_checkSuggestionCorrectness'](_0x103441,_0x205f0a,_0x582d19,_0x1a7f47){if(_0x103441['type']!=_0x205f0a||_0x103441['subType']!=_0x582d19||_0x103441['creator']['id']!=_0x1a7f47)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x541450('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4b442c,_0x542d34){const _0x1ada9e=_0x4b442c['getFirstRange']();if(_0x542d34['isEqual'](_0x1ada9e))_0x4b442c['removeMarkers']();else{if(_0x1ada9e['containsRange'](_0x542d34)){const _0x48e2a6=this['_model']['createPositionAt'](_0x542d34['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4b442c,this['_model']['createRange'](_0x1ada9e['start'],_0x48e2a6));const _0x1f3f5a=_0x4fc915(),_0x4b1bed=_0x4b442c['creator']['id'],_0x385349=_0x4b442c['type']+':'+_0x4b442c['subType'];this['_setSuggestionData']({'id':_0x1f3f5a,'type':_0x385349,'createdAt':new Date(),'authorId':_0x4b1bed,'data':_0x4b442c['data'],'attributes':_0x4b442c['attributes']});const _0x5e8ed4=this['_model']['createPositionAt'](_0x542d34['end']['parent'],'after'),_0x102b2d=this['_model']['createRange'](_0x5e8ed4,_0x1ada9e['end']);this['_addSuggestionMarker'](_0x385349,_0x1f3f5a,_0x4b1bed,_0x102b2d);}else{if(_0x1ada9e['containsPosition'](_0x542d34['start'])){const _0x4a8f3f=this['_model']['createPositionAt'](_0x542d34['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4b442c,this['_model']['createRange'](_0x1ada9e['start'],_0x4a8f3f));}else{const _0x2c68b7=this['_model']['createPositionAt'](_0x542d34['end']['parent'],'after');this['_setSuggestionRange'](_0x4b442c,this['_model']['createRange'](_0x2c68b7,_0x1ada9e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3682a7){for(const {suggestion:_0x55e1c6,meta:_0x28a3b9}of this['_findSuggestions'](_0x3682a7,'insertion')){if(!_0x28a3b9['isOwn'])continue;const _0x2142de=_0x55e1c6['getRanges']();for(const _0x4d7031 of _0x2142de)if(!_0x3682a7['getDifference'](_0x4d7031)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2de6ae){const _0x314782=this['editor']['plugins']['get']('Users')['getUser'](_0x2de6ae);if(!_0x314782)throw new _0x541450('track-changes-user-not-found',this);return _0x314782;}['_getExternalAuthor'](_0x13a589){const _0x5b875c=this['editor']['plugins']['get']('Users'),_0x3e077b=_0x385015('external:'+_0x13a589),_0x552dec=_0x5b875c['getUser'](_0x3e077b);return _0x552dec||_0x5b875c['addUser']({'id':_0x3e077b,'name':_0x13a589});}['_createSuggestion'](_0x518b7c,_0x2aefa2,_0x3b6de8,_0x3c478e,_0x1a4272){const _0x23c5e7=this['_getAuthorFromId'](_0x3c478e),_0x4f4f41=this['_suggestionFactory']['buildSuggestion'](_0x518b7c,_0x2aefa2,_0x3b6de8,_0x23c5e7,_0x1a4272,_0x5a44dc=>{this['_updateSuggestionData'](_0x3b6de8,{'attributes':_0x5a44dc});const _0x50248d=this['getSuggestion'](_0x3b6de8);this['_joinWithAdjacentSuggestions'](new Set([_0x50248d])),this['_refreshSuggestionsChain'](new Set([_0x50248d]));});return this['listenTo'](_0x4f4f41,'accept',()=>{this['_updateSuggestionData'](_0x3b6de8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4f4f41,'discard',()=>{this['_updateSuggestionData'](_0x3b6de8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3b6de8,_0x4f4f41),this['_suggestionState']['set'](_0x4f4f41,'notReady'),_0x4f4f41;}['_splitMarkerName'](_0x483ee1){const _0x54e32f=_0x483ee1['split'](':');return{'group':_0x54e32f[0x0],'type':_0x54e32f[0x1],'subType':_0x54e32f['length']>=0x5?_0x54e32f[0x2]:null,'id':_0x54e32f['length']<0x5?_0x54e32f[0x2]:_0x54e32f[0x3],'authorId':_0x54e32f['length']<0x5?_0x54e32f[0x3]:_0x54e32f[0x4],'markerCount':0x6==_0x54e32f['length']?_0x54e32f[0x5]:null};}['_breakSuggestionMarker'](_0x4c3f1b,_0x7a9831,_0x1d4291){const _0x32c9d3=_0x4c3f1b['getFirstRange'](),_0x6aee3b=_0x32c9d3['start'],_0x370561=_0x32c9d3['end'];this['_setSuggestionRange'](_0x4c3f1b,this['_model']['createRange'](_0x6aee3b,_0x7a9831));const _0x50dabc=_0x4fc915(),_0x5166df=_0x4c3f1b['creator']['id'],_0x11a2c5=_0x4c3f1b['type']+(_0x4c3f1b['subType']?':'+_0x4c3f1b['subType']:'');this['_setSuggestionData']({'id':_0x50dabc,'type':_0x11a2c5,'createdAt':new Date(),'authorId':_0x5166df,'originalSuggestionId':_0x4c3f1b['id'],'attributes':_0x4c3f1b['attributes'],'data':_0x4c3f1b['data']});const _0xb2232=this['_getAttributeKey'](_0x4c3f1b);('formatBlock'==_0x4c3f1b['type']||_0xb2232&&this['_isBlockAttribute'](_0xb2232))&&(_0x1d4291=this['_model']['createPositionBefore'](_0x1d4291['parent'])),this['_addSuggestionMarker'](_0x11a2c5,_0x50dabc,_0x5166df,this['_model']['createRange'](_0x1d4291,_0x370561));}['_findSuggestions'](_0x583f65,_0x2b0b01=null){const _0x477185=[],_0x16ac7c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x583f65)||(_0x583f65=[_0x583f65]);for(const _0x1afbf7 of this['getSuggestions']()){if(!_0x1afbf7['isInContent'])continue;if(_0x2b0b01&&_0x1afbf7['type']!=_0x2b0b01)continue;let _0x2315ed=!0x1;for(const _0x23d4fa of _0x1afbf7['getRanges']()){for(const _0x1e339c of _0x583f65){const _0x5375fe=_0x1e339c['start']['isEqual'](_0x23d4fa['end'])||_0x1e339c['end']['isEqual'](_0x23d4fa['start']);if(_0x5375fe||_0x1e339c['getIntersection'](_0x23d4fa)){const _0x49a2ff=_0x1e339c['containsRange'](_0x23d4fa)&&Ut(this['_model']['schema'],_0x23d4fa['start'],_0x1e339c),_0x21c48f=_0x23d4fa['containsRange'](_0x1e339c)&&Ut(this['_model']['schema'],_0x1e339c['start'],_0x23d4fa);_0x477185['push']({'suggestion':_0x1afbf7,'meta':{'isOwn':_0x16ac7c==_0x1afbf7['author'],'isNextTo':_0x5375fe,'isInsideObject':_0x49a2ff,'containsRangeInObject':_0x21c48f}}),_0x2315ed=!0x0;break;}}if(_0x2315ed)break;}}return _0x477185;}['_addSuggestionMarker'](_0x162db9,_0x3d1eca,_0x13519c,_0x4c9914,_0x104d8f){this['_model']['change'](_0x53cca0=>{let _0x28d6a7='suggestion:'+_0x162db9+':'+_0x3d1eca+':'+_0x13519c;_0x104d8f&&(_0x28d6a7=_0x28d6a7+':'+_0x104d8f),_0x53cca0['addMarker'](_0x28d6a7,{'range':_0x4c9914,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x51ae2e){const _0x4399a6=_0x51ae2e['previous'],_0x4019e9=_0x51ae2e['next'];_0x51ae2e['previous']=null,_0x51ae2e['next']=null,null!=_0x4399a6&&_0x4399a6['next']==_0x51ae2e&&(_0x4399a6['next']=_0x4019e9),null!=_0x4019e9&&_0x4019e9['previous']==_0x51ae2e&&(_0x4019e9['previous']=_0x4399a6),'ready'==this['_suggestionState']['get'](_0x51ae2e)&&(this['_suggestionState']['set'](_0x51ae2e,'removed'),this['fire']('suggestionUnloaded',_0x51ae2e,_0x4399a6,_0x4019e9));}['_setSuggestionData'](_0x23ff1e){const _0x4caa73=_0x23ff1e['id'],_0x12354a=this['addSuggestionData'](_0x23ff1e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x18b935=this['editor']['plugins']['get']('PendingActions'),_0x20247e=_0x12354a['hasComments'],_0x5b5b5a=_0x12354a['subType']?_0x12354a['type']+':'+_0x12354a['subType']:_0x12354a['type'],_0x39b5e8=this['editor']['locale'],_0x2d834c=_0x18b935['add'](o(_0x39b5e8,'PENDING_ACTION_SUGGESTION')),_0x3f988c={'id':_0x4caa73,'type':_0x5b5b5a,'hasComments':_0x20247e,'data':_0x23ff1e['data']||null,'originalSuggestionId':_0x23ff1e['originalSuggestionId']||null,'attributes':_0x12354a['attributes']};this['_adapter']['addSuggestion'](_0x3f988c)['then'](_0x38a489=>{_0x12354a['_saved']=!0x0,_0x18b935['remove'](_0x2d834c),_0x38a489&&_0x38a489['createdAt']&&(this['_suggestions']['get'](_0x4caa73)['createdAt']=_0x38a489['createdAt']);})['catch'](_0x4e439e=>{throw _0x5786f7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x12354a['discard']();}),_0x12354a['stopListening'](),this['_suggestions']['delete'](_0x12354a['id']),this['_suggestionState']['delete'](_0x12354a),_0x4e439e;});}return _0x12354a;}['_isBlockAttribute'](_0x200e08){return this['_blockAttributeKeys']['has'](_0x200e08);}['_updateSuggestionData'](_0x4768d6,_0x1439eb){const _0x3c5754=this['editor']['plugins']['get']('PendingActions'),_0x293073=this['getSuggestion'](_0x4768d6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x293073['_saved']){const _0x480615=_0x3c5754['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4768d6,_0x1439eb)['then'](()=>{_0x3c5754['remove'](_0x480615);});}else _0x293073['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4768d6,_0x1439eb);});}}['_getSuggestionData'](_0x26a5f3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x541450('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x26a5f3);}['_handleNewSuggestionMarker'](_0x3f6352){const {id:_0x13687a,type:_0x19e03c,subType:_0xa2392f,authorId:_0x394cba}=this['_splitMarkerName'](_0x3f6352),_0x13dd90=this['_suggestions']['get'](_0x13687a)||this['_createSuggestion'](_0x19e03c,_0xa2392f,_0x13687a,_0x394cba,{});switch(this['_checkSuggestionCorrectness'](_0x13dd90,_0x19e03c,_0xa2392f,_0x394cba),this['_suggestionState']['get'](_0x13dd90)){case'notReady':this['_getSuggestionData'](_0x13687a)['then'](_0x31e8de=>{let _0x429301=Promise['resolve']();_0x31e8de['hasComments']&&(_0x429301=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x13687a})),_0x429301['then'](()=>{this['addSuggestionData'](_0x31e8de)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x13dd90,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x13687a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x13dd90,'ready'),this['fire']('suggestionLoaded',_0x13dd90);break;case'ready':this['fire']('suggestionChanged',_0x13dd90);}return _0x13dd90['addMarkerName'](_0x3f6352),_0x13dd90;}['_refreshSuggestionsChain'](_0x447efe){const _0x576c22=Array['from'](_0x447efe),_0xb1a0b2=_0x576c22['filter'](_0x56e7b3=>'attribute'==_0x56e7b3['type']);this['_refreshAttributeSuggestionsChain'](_0xb1a0b2);const _0x2bd5e9=_0x576c22['filter'](_0x11f329=>!_0x11f329['isMultiRange']&&'attribute'!=_0x11f329['type']),_0x1c1a10=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1621f3=>!_0x1621f3['isMultiRange']&&'attribute'!=_0x1621f3['type']),_0x474cec=_0x1c1a10['filter'](_0x274def=>!_0x447efe['has'](_0x274def)),_0x5774f3=new Map(_0x1c1a10['map'](_0x31fbf7=>[_0x31fbf7,this['_suggestionFactory']['getSuggestionCallback'](_0x31fbf7['type'],_0x31fbf7['subType'],'chain')])),_0x36813c=new Map(_0x1c1a10['map'](_0x111ce2=>[_0x111ce2,_0x111ce2['getFirstRange']()])),_0x373f61=new Set(),_0x30910f=new Set();for(let _0x4abc93=0x0;_0x4abc93<_0x2bd5e9['length'];_0x4abc93++)_0x5427ec(_0x2bd5e9[_0x4abc93],_0x2bd5e9,_0x4abc93+0x1);for(let _0x7b4dc5=0x0;_0x7b4dc5<_0x2bd5e9['length'];_0x7b4dc5++)_0x5427ec(_0x2bd5e9[_0x7b4dc5],_0x474cec,0x0);const _0x40c7a1=new Set();for(let _0x889402=0x0;_0x889402<_0x2bd5e9['length'];_0x889402++){const _0x550ca2=_0x2bd5e9[_0x889402];!_0x30910f['has'](_0x550ca2)&&_0x550ca2['previous']&&(_0x40c7a1['add'](_0x550ca2['previous']),_0x550ca2['previous']['next']===_0x550ca2&&(_0x550ca2['previous']['next']=null),_0x550ca2['previous']=null),!_0x373f61['has'](_0x550ca2)&&_0x550ca2['next']&&(_0x40c7a1['add'](_0x550ca2['next']),_0x550ca2['next']['previous']===_0x550ca2&&(_0x550ca2['next']['previous']=null),_0x550ca2['next']=null);}function _0x5427ec(_0x2eeeba,_0x3f7d8d,_0x22848d){for(let _0x231a5e=_0x22848d;_0x231a5e<_0x3f7d8d['length'];_0x231a5e++){const _0x3d5bdb=_0x1e8445(_0x2eeeba,_0x3f7d8d[_0x231a5e]);_0x3d5bdb&&(_0x3d5bdb[0x0]['next']=_0x3d5bdb[0x1],_0x3d5bdb[0x1]['previous']=_0x3d5bdb[0x0],_0x373f61['add'](_0x3d5bdb[0x0]),_0x30910f['add'](_0x3d5bdb[0x1]));}}function _0x1e8445(_0xa29761,_0x56835a){if(_0xa29761['author']['id']!==_0x56835a['author']['id'])return null;const _0x5356a1=_0x5774f3['get'](_0xa29761)(_0xa29761,_0x56835a,_0x36813c['get'](_0xa29761),_0x36813c['get'](_0x56835a));if(!_0x5356a1)return null;return _0x5774f3['get'](_0x56835a)(_0xa29761,_0x56835a,_0x36813c['get'](_0xa29761),_0x36813c['get'](_0x56835a))?_0x5356a1[0x1]['commentThread']&&_0x5356a1[0x1]['commentThread']['length']?null:_0x5356a1:null;}_0x40c7a1['size']&&this['_refreshSuggestionsChain'](_0x40c7a1);}['_refreshAttributeSuggestionsChain'](_0x421c1c){if(0x0==_0x421c1c['length'])return;const _0x1c0236=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1dbb31=>'attribute'==_0x1dbb31['type']&&_0x1dbb31['_isDataLoaded']),_0x3bee04=[],_0x24fda1=new Map();for(const _0x3bcd07 of _0x1c0236){const _0x2befae=_0x385015(_0x3bcd07['attributes']);_0x24fda1['has'](_0x2befae)||(_0x24fda1['set'](_0x2befae,_0x3bee04['length']),_0x3bee04['push']([]));const _0x1fe0fe=_0x24fda1['get'](_0x2befae);_0x3bee04[_0x1fe0fe]['push'](_0x3bcd07);}!(function(){_0x3bee04['sort']((_0xeed851,_0x47d2eb)=>{const _0x43c9bb=_0xeed851[0x0]['createdAt'],_0x1a2b4c=_0x47d2eb[0x0]['createdAt'];return _0x43c9bb==_0x1a2b4c?_0xeed851[0x0]['attributes']['groupId']<_0x47d2eb[0x0]['attributes']['groupId']?-0x1:0x1:_0x43c9bb<_0x1a2b4c?-0x1:0x1;});for(const _0x1485fe of _0x3bee04)_0x1485fe['sort']((_0x54bba5,_0x3783ca)=>_0x54bba5['id']<_0x3783ca['id']?-0x1:0x1);}());for(let _0x5254d0=0x0;_0x5254d0<_0x3bee04['length'];_0x5254d0++){if(0x0==_0x3bee04[_0x5254d0]['length'])continue;const _0xd9f44a=[];for(let _0x17f536=_0x5254d0+0x1;_0x17f536<_0x3bee04['length'];_0x17f536++)0x0!=_0x3bee04[_0x17f536]['length']&&_0xd7be36(_0x3bee04[_0x5254d0],_0x3bee04[_0x17f536])&&_0xd9f44a['push'](_0x17f536);for(const _0xdbf79f of _0xd9f44a)_0x3bee04[_0x5254d0]=_0x3bee04[_0x5254d0]['concat'](_0x3bee04[_0xdbf79f]),_0x3bee04[_0xdbf79f]=[];}for(const _0x6d4f87 of _0x3bee04)for(let _0x293b98=0x0;_0x293b98<_0x6d4f87['length'];_0x293b98++){const _0x4e63b9=_0x6d4f87[_0x293b98+0x1]||null;_0x6d4f87[_0x293b98]['next']!==_0x4e63b9&&(_0x6d4f87[_0x293b98]['next']=_0x4e63b9);}for(const _0x1f544b of _0x3bee04)for(let _0x27ef3c=0x0;_0x27ef3c<_0x1f544b['length'];_0x27ef3c++){const _0x35486b=_0x1f544b[_0x27ef3c-0x1]||null;_0x1f544b[_0x27ef3c]['previous']!==_0x35486b&&(_0x1f544b[_0x27ef3c]['previous']=_0x35486b);}function _0xd7be36(_0x114f89,_0x2be1b3){if(_0x114f89[0x0]['attributes']['groupId']!==_0x2be1b3[0x0]['attributes']['groupId']&&_0x114f89[0x0]['author']!==_0x2be1b3[0x0]['author'])return!0x1;if(!function(_0x1f50e3,_0x1a82d1){if(!_0x1f50e3['hasComments']&&!_0x1a82d1['hasComments'])return!0x0;if(_0x1f50e3['hasComments']&&_0x1a82d1['hasComments'])return!0x1;if(_0x1f50e3['hasComments']&&_0x1a82d1['createdAt']<_0x1f50e3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1a82d1['hasComments']&&_0x1f50e3['createdAt']<_0x1a82d1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x114f89[0x0],_0x2be1b3[0x0]))return!0x1;const _0x393cc2=xt(_0x114f89[0x0]['attributes'],'groupId'),_0x2bee86=xt(_0x2be1b3[0x0]['attributes'],'groupId');if(!_0x3c26f1(_0x393cc2,_0x2bee86))return!0x1;return!!_0x114f89['every'](_0x53c581=>_0x2be1b3['some'](_0x2a34f6=>_0x53c581['getFirstRange']()['isEqual'](_0x2a34f6['getFirstRange']())))&&_0x2be1b3['every'](_0x28205c=>_0x114f89['some'](_0x5c29af=>_0x28205c['getFirstRange']()['isEqual'](_0x5c29af['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1b533f){const _0x1f53ff=Array['from'](_0x1b533f),_0x52773e=this['getSuggestions']({'skipNotAttached':!0x0}),_0xeccacd=_0x52773e['filter'](_0x371804=>!_0x1b533f['has'](_0x371804)),_0x3688f8=new Map(_0x1f53ff['map'](_0x3d959a=>[_0x3d959a,this['_suggestionFactory']['getSuggestionCallback'](_0x3d959a['type'],_0x3d959a['subType'],'join')])),_0x4fc2a3=new Map(_0x52773e['map'](_0x3d5fe7=>[_0x3d5fe7,_0x3d5fe7['getRanges']()]));for(let _0x268ff7=0x0;_0x268ff7<_0x1f53ff['length'];_0x268ff7++){if(_0x2a1f8b(this,_0x1f53ff[_0x268ff7],_0x1f53ff,_0x268ff7+0x1))return!0x0;}for(let _0x455dee=0x0;_0x455dee<_0x1f53ff['length'];_0x455dee++){if(_0x2a1f8b(this,_0x1f53ff[_0x455dee],_0xeccacd,0x0))return!0x0;}return!0x1;function _0x2a1f8b(_0x1bbc00,_0x12fce0,_0x225f5c,_0x1f1d59){for(let _0x321b3d=_0x1f1d59;_0x321b3d<_0x225f5c['length'];_0x321b3d++){const _0x3aa44b=_0x225f5c[_0x321b3d];if(_0x3aa44b['type']!==_0x12fce0['type']||_0x3aa44b['author']['id']!==_0x12fce0['author']['id']||_0x3aa44b['subType']!==_0x12fce0['subType'])continue;if(!qt(_0x12fce0,_0x3aa44b))continue;if('attribute'==_0x12fce0['type']&&_0x12fce0['data']['oldValue']!=_0x3aa44b['data']['oldValue'])continue;if('attribute'==_0x12fce0['type']&&_0x1bbc00['_isBlockAttribute'](_0x12fce0['data']['key']))continue;if('formatBlock'==_0x12fce0['type']){const _0x20bc87=_0x1bbc00['editor']['model'],_0xf9e1c=_0x12fce0['getContainedElement']();if(_0xf9e1c&&(_0x20bc87['schema']['isObject'](_0xf9e1c)||_0x20bc87['schema']['isLimit'](_0xf9e1c)))continue;}const _0x17f1d5=_0x3688f8['get'](_0x12fce0),_0x507eed=_0x4fc2a3['get'](_0x12fce0),_0x5623aa=_0x4fc2a3['get'](_0x3aa44b),_0x134c3e=_0x12fce0['commentThread']&&_0x12fce0['commentThread']['length'],_0xdb57d=_0x3aa44b['commentThread']&&_0x3aa44b['commentThread']['length'];if(!_0x134c3e&&_0x17f1d5(_0x5623aa,_0x507eed))return _0x1bbc00['_joinSuggestions'](_0x3aa44b,_0x12fce0),_0x4fc2a3['delete'](_0x12fce0),!0x0;if(!_0xdb57d&&_0x17f1d5(_0x507eed,_0x5623aa))return _0x1bbc00['_joinSuggestions'](_0x12fce0,_0x3aa44b),_0x4fc2a3['delete'](_0x3aa44b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5cf3a3,_0x8e9884){if(_0x5cf3a3['isMultiRange']){for(const _0x4bbb7e of _0x8e9884['getRanges']())_0x5cf3a3['addRange'](_0x4bbb7e);}else{const _0x40e4ae=_0x8e9884['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5cf3a3,this['_model']['createRange'](_0x5cf3a3['getFirstRange']()['start'],_0x40e4ae));}_0x8e9884['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2ce937,_0x105d01,_0x38d4cc){const _0x34d2d5=_0x2ce937['startsWith']('format')||_0x2ce937['startsWith']('attribute')?'FORMATTING':_0x2ce937['toUpperCase']();return o(this['editor']['locale'],_0x105d01+'_'+_0x34d2d5+'_SUGGESTION_ANNOUNCEMENT',_0x38d4cc);}['_initAriaMarkerChangeAnnouncements'](){const _0xe1440b=this['editor'];if(!_0xe1440b['ui'])return;const {ariaLiveAnnouncer:_0x5355f1}=_0xe1440b['ui'];_0x42c1d1(this['_model'],({left:_0x1255d0,entered:_0x15337d})=>{for(const _0x346a08 of _0x1255d0){const {group:_0x3ca2bd,type:_0x2d0c20}=this['_splitMarkerName'](_0x346a08['name']);if('suggestion'===_0x3ca2bd){_0x5355f1['announce'](this['_getMarkerAnnouncementText'](_0x2d0c20,'LEAVE'));break;}}for(const _0x4fd8a2 of _0x15337d){const {group:_0x3bedfa,type:_0x22bfa4}=this['_splitMarkerName'](_0x4fd8a2['name']);if('suggestion'===_0x3bedfa){_0x5355f1['announce'](this['_getMarkerAnnouncementText'](_0x22bfa4,'ENTER',_0x1433f3(_0x2e1124)));break;}}});}['_processAttributeChanges'](_0x45451a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x398bf0=this['editor'],_0x5b10e1=_0x398bf0['model']['document']['differ']['getChanges']();if(0x0==_0x5b10e1['length'])return!0x1;const _0x432461=[],_0x23798f=_0x5b10e1['filter'](_0x1e3cf6=>'attribute'==_0x1e3cf6['type']),_0xd25694=_0x5b10e1['filter'](_0x3c9aa6=>'insert'==_0x3c9aa6['type']&&'$text'!=_0x3c9aa6['name']),_0x343bce=_0x5b10e1['filter'](_0x15b82c=>'remove'==_0x15b82c['type']&&'$text'!=_0x15b82c['name']);for(const _0x12b817 of _0x23798f)_0x432461['push']({'key':_0x12b817['attributeKey'],'newValue':_0x12b817['attributeNewValue'],'oldValue':_0x12b817['attributeOldValue'],'range':Lt(_0x12b817['range'],_0x398bf0['model'])});for(const _0x2e39ab of _0xd25694){const _0x4fa155=_0x343bce['find'](_0x38655c=>_0x38655c['position']['isEqual'](_0x2e39ab['position']));_0x4fa155&&_0x432461['push']({'key':m,'newValue':_0x2e39ab['name'],'oldValue':_0x4fa155['name'],'range':_0x398bf0['model']['createRangeOn'](_0x2e39ab['position']['nodeAfter'])});}return 0x0!=_0x432461['length']&&this['_reduceExistingSuggestions'](_0x45451a,_0x432461);}['_processAttributeSuggestions'](_0x1d5385){let _0x2d0ceb=!0x1;const _0x52dcf1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x59ea38=>_0x59ea38['data']['newRange']&&_0x59ea38['name']['startsWith']('suggestion:attribute:'));for(const _0x46516e of _0x52dcf1){const {subType:_0x27e9bb,id:_0x1e9b61}=this['_splitMarkerName'](_0x46516e['name']),_0x304e2f=_0x27e9bb['split']('|')[0x0];for(const _0x4c9d56 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4c9d56['id']!=_0x1e9b61&&'attribute'==_0x4c9d56['type']&&_0x4c9d56['data']&&_0x4c9d56['data']['key']==_0x304e2f&&_0x4c9d56['getFirstRange']()['isIntersecting'](_0x46516e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4c9d56,_0x46516e['data']['newRange'],_0x1d5385),_0x2d0ceb=!0x0);}return _0x2d0ceb;}['_recordAttributeChanges'](_0x59bb01){this['_recordAttributeSuggestions']=!0x0,_0x59bb01();}['_isRegisteredAttribute'](_0x230c40){const _0x229097=this['_isBlockAttribute'](_0x230c40),_0x2cb042=this['_inlineAttributeKeys']['has'](_0x230c40);return _0x229097||_0x2cb042;}['_reduceExistingSuggestions'](_0x22961f,_0x5be314){if(0x0==_0x5be314['length'])return!0x1;let _0x2569f8=!0x1;for(const _0x46cc52 of _0x5be314){const _0x4d6648=this['_findSuggestions'](_0x46cc52['range'],'attribute')['filter'](_0x5f178a=>!_0x5f178a['meta']['isNextTo'])['map'](_0x4f3c86=>_0x4f3c86['suggestion']),_0x3e9821=_0x385015({'newValue':_0x46cc52['newValue']});_0x4d6648['filter'](_0x41da5f=>{const [_0x5fe082,_0x5ef566]=_0x41da5f['subType']['split']('|');return _0x5fe082==_0x46cc52['key']&&_0x5ef566!=_0x3e9821;})['forEach'](_0x5b3bf5=>{this['_reduceSuggestionAttributeRange'](_0x5b3bf5,_0x46cc52['range'],_0x22961f),_0x2569f8=!0x0;});}return _0x2569f8;}['_reduceSuggestionAttributeRange'](_0x3de847,_0x44a459,_0x593032){const _0x56e33c=_0x3de847['getFirstRange']()['getDifference'](_0x44a459);0x0!==_0x56e33c['length']?0x1!==_0x56e33c['length']?this['_breakSuggestionMarker'](_0x3de847,_0x44a459['start'],_0x44a459['end']):this['_setSuggestionRange'](_0x3de847,_0x56e33c[0x0]):_0x593032['removeMarker'](_0x3de847['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x53a7ed){this['_editor']=_0x53a7ed,this['_model']=_0x53a7ed['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x214c8a,_0x327b01,_0xadba13,_0x2d1760,_0x486bc8,_0x17c1da){return new u(this['_model'],{'type':_0x214c8a,'subType':_0x327b01,'id':_0xadba13,'author':_0x2d1760,'creator':_0x2d1760,'attributes':_0x486bc8,'onAttributesChange':_0x17c1da,'onAccept':(..._0x2949e2)=>this['getSuggestionCallback'](_0x214c8a,_0x327b01,'accept')(..._0x2949e2),'onDiscard':(..._0xb69bdf)=>this['getSuggestionCallback'](_0x214c8a,_0x327b01,'discard')(..._0xb69bdf)});}['registerCustomCallback'](_0x35f53c,_0x20f6d2,_0x3de1dd,_0x53dbe0){const _0x343e80=_0x35f53c+':'+_0x20f6d2+':'+_0x3de1dd;this['_customCallbacks']['set'](_0x343e80,_0x53dbe0);}['getSuggestionCallback'](_0x5979a4,_0x1f2690,_0x383b67){const _0x5aea45=_0x5979a4+':'+_0x1f2690+':'+_0x383b67;return this['_customCallbacks']['get'](_0x5aea45)||this['_defaultCallbacks']['get'](_0x5979a4+':'+_0x383b67);}['_registerDefaultCallbacks'](){const _0x387c8e=()=>!0x1,_0x826bad=_0x434eb6=>{_0x434eb6['sort']((_0x5b99a5,_0x575760)=>_0x5b99a5['start']['isBefore'](_0x575760['start'])?0x1:-0x1),this['_model']['change'](_0x54cbb9=>{for(const _0x1ed56d of _0x434eb6){let _0x53241f;_0x53241f=_0x1ed56d['end']['isAtEnd']&&_0x1ed56d['end']['parent']==_0x1ed56d['start']['nodeAfter']?_0x54cbb9['createSelection'](_0x1ed56d['start']['nodeAfter'],'on'):_0x54cbb9['createSelection'](_0x1ed56d),this['_model']['deleteContent'](_0x53241f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x38cba3=(_0x2249ba,_0x281823)=>{_0x281823&&this['_model']['change'](_0x501eac=>{const {commandName:_0x4cd509,commandParams:_0x5251dd=[]}=_0x281823,_0x7392a6=_0x2249ba['map'](_0x4df8c8=>(Vt(_0x4df8c8)&&(_0x4df8c8=this['_model']['createRange'](_0x4df8c8['end'])),_0x4df8c8))['filter'](_0x513913=>'$graveyard'!==_0x513913['root']['rootName']);if(_0x7392a6['length']<0x1)return;const _0x3af507=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5dc5a7=>_0xac092f['fromRange'](_0x5dc5a7));_0x501eac['setSelection'](_0x7392a6);for(const _0x3493e4 of this['_editor']['commands']['commands']())_0x3493e4['refresh']();_0x5251dd['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4cd509,..._0x5251dd);const _0x10a093=_0x3af507['filter'](_0xe7dd0d=>'$graveyard'!=_0xe7dd0d['root']['rootName']);_0x10a093['length']>0x0&&_0x501eac['setSelection'](_0x10a093);for(const _0x1c0036 of _0x3af507)_0x1c0036['detach']();});},_0x7f823a=(_0x397f80,_0x25443f)=>0x1==_0x397f80['length']&&0x1==_0x25443f['length']&&_0x397f80[0x0]['end']['isEqual'](_0x25443f[0x0]['start']),_0x3cb510=(_0x4f103d,_0x330c31,_0x200117,_0x37a46a)=>Ht(_0x4f103d,_0x330c31,_0x200117,_0x37a46a)?[_0x4f103d,_0x330c31]:Ht(_0x330c31,_0x4f103d,_0x37a46a,_0x200117)?[_0x330c31,_0x4f103d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x387c8e),this['_defaultCallbacks']['set']('insertion:discard',_0x826bad),this['_defaultCallbacks']['set']('insertion:join',_0x7f823a),this['_defaultCallbacks']['set']('insertion:chain',_0x3cb510),this['_defaultCallbacks']['set']('deletion:accept',_0x826bad),this['_defaultCallbacks']['set']('deletion:discard',_0x387c8e),this['_defaultCallbacks']['set']('deletion:join',_0x7f823a),this['_defaultCallbacks']['set']('deletion:chain',_0x3cb510),this['_defaultCallbacks']['set']('formatInline:accept',_0x38cba3),this['_defaultCallbacks']['set']('formatInline:discard',_0x387c8e),this['_defaultCallbacks']['set']('formatInline:join',_0x7f823a),this['_defaultCallbacks']['set']('formatInline:chain',_0x387c8e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x38cba3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x387c8e),this['_defaultCallbacks']['set']('formatBlock:join',_0x7f823a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x387c8e),this['_defaultCallbacks']['set']('attribute:accept',_0x387c8e),this['_defaultCallbacks']['set']('attribute:discard',(_0x5b2c09,_0x27fc63)=>{if(!_0x27fc63)return;const _0x57884e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x43dabf=>{if(_0x27fc63['key']==m)for(const _0x504df5 of _0x5b2c09){const _0x5cf3dd=_0x504df5['start']['nodeAfter'],_0x354131=_0x27fc63['oldValue'];_0x43dabf['rename'](_0x5cf3dd,_0x354131);}else{if(_0x57884e['_isBlockAttribute'](_0x27fc63['key'])){for(const _0x2ea343 of _0x5b2c09)void 0x0!==_0x27fc63['oldValue']?_0x43dabf['setAttribute'](_0x27fc63['key'],_0x27fc63['oldValue'],_0x2ea343['start']['nodeAfter']):_0x43dabf['removeAttribute'](_0x27fc63['key'],_0x2ea343['start']['nodeAfter']);}else{for(const _0x1fda88 of _0x5b2c09)_0x27fc63['oldValue']?_0x43dabf['setAttribute'](_0x27fc63['key'],_0x27fc63['oldValue'],_0x1fda88):_0x43dabf['removeAttribute'](_0x27fc63['key'],_0x1fda88);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x7f823a);}}function Ut(_0x3be51c,_0x288c29,_0x297a59){for(const _0x5dbbe9 of _0x288c29['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5dbbe9['root']==_0x5dbbe9)return!0x1;if(!_0x297a59['containsItem'](_0x5dbbe9))return!0x1;if(_0x3be51c['isObject'](_0x5dbbe9)||_0x3be51c['isLimit'](_0x5dbbe9))return!0x0;}return!0x1;}function Vt(_0xdd8af1){return _0xdd8af1['end']['parent']==_0xdd8af1['start']['nodeAfter']&&_0xdd8af1['end']['isAtStart'];}function Pt(_0x441c05,_0x263b70,_0x27d9c7,_0x283ece){const _0x416a5d=_0x4c2acf=>!_0x4c2acf['item']['is']('$textProxy')&&!_0x283ece['isObject'](_0x4c2acf['item']),_0x2a3f09=_0x441c05['start']['getLastMatchingPosition'](_0x416a5d),_0xbbe266=_0x441c05['end']['getLastMatchingPosition'](_0x416a5d,{'direction':'backward'});return(!_0x441c05['start']['isEqual'](_0x2a3f09)||!_0x441c05['end']['isEqual'](_0xbbe266))&&(_0x2a3f09['isBefore'](_0xbbe266)?_0x27d9c7['updateMarker'](_0x263b70,{'range':_0x27d9c7['createRange'](_0x2a3f09,_0xbbe266)}):_0x27d9c7['removeMarker'](_0x263b70),!0x0);}function Gt(_0x1c9e1b){return _0x385015(_0x1c9e1b);}function Ft(_0x9f096c){const _0x488b87=_0x9f096c['start']['nodeAfter'];return _0x488b87&&_0x488b87['is']('element');}function Lt(_0xb2aab7,_0xfb9987){return null==_0xb2aab7['end']['nodeBefore']&&_0xb2aab7['end']['parent']==_0xb2aab7['start']['nodeAfter']?Jt(_0xb2aab7['start']['nodeAfter'],_0xfb9987):_0xb2aab7;}function Jt(_0x39f82d,_0x3a476b){const _0x486c5c=_0x3a476b['schema']['isObject'](_0x39f82d)||_0x3a476b['schema']['isSelectable'](_0x39f82d);return _0x3a476b['createRange'](_0x3a476b['createPositionAt'](_0x39f82d,'before'),_0x486c5c?_0x3a476b['createPositionAfter'](_0x39f82d):_0x3a476b['createPositionAt'](_0x39f82d,'end'));}function Ht(_0x5c3e07,_0xb51dc5,_0x58eee7,_0x45d22b){return!!qt(_0x5c3e07,_0xb51dc5)&&_0x58eee7['end']['isEqual'](_0x45d22b['start']);}function qt(_0x41d79c,_0x58d300){if(!_0x41d79c['_isDataLoaded']||!_0x58d300['_isDataLoaded'])return!0x1;const _0x20c669=new Set(Object['keys'](_0x41d79c['attributes'])),_0x36b20d=new Set(Object['keys'](_0x58d300['attributes']));if(_0x20c669['delete']('groupId'),_0x36b20d['delete']('groupId'),0x0==_0x20c669['size']&&0x0==_0x36b20d['size'])return!0x0;if(_0x20c669['size']!=_0x36b20d['size'])return!0x1;const _0x5efcf7={..._0x41d79c['attributes']},_0x306e7f={..._0x58d300['attributes']};return delete _0x5efcf7['groupId'],delete _0x306e7f['groupId'],JSON['stringify'](_0x5efcf7)==JSON['stringify'](_0x306e7f);}function zt(_0x33f27c,_0x238296){const _0x58f51b=Kt(_0x33f27c['attributes']),_0x2e0e7a=Kt(_0x238296);if(!_0x33f27c['_isDataLoaded'])return!0x1;for(const _0x55a144 of Object['keys'](_0x2e0e7a))if(!_0x3c26f1(_0x58f51b[_0x55a144],_0x2e0e7a[_0x55a144]))return!0x1;return!0x0;}function Kt(_0x2fe274){const _0x215049=Object['assign']({},_0x2fe274);return delete _0x215049['skipNestingCheck'],delete _0x215049['tablePasteChainId'],_0x215049;}class ge extends/* #__PURE__ -- @preserve */
25
+ _0x1ceaf8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2ecfcd,_0x530d03,_0x5d66d4,_0x424199){super(),this['model']=_0x530d03,this['view']=_0x5d66d4,this['commentThreadController']=_0x424199,this['_editor']=_0x2ecfcd,this['_acceptCommand']=_0x2ecfcd['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2ecfcd['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4c8b85,_0x44a8bf)=>_0x4c8b85||_0x44a8bf),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2899e8=>_0x2899e8&&this['_editor']['model']['canEditAt'](_0x530d03['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3ed2f6=>_0x3ed2f6&&this['_editor']['model']['canEditAt'](_0x530d03['getRanges']())),this['_pendingAction']=null,_0x5d66d4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5d66d4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5d66d4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5d66d4,'change:isDirty',()=>{_0x5d66d4['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 _0x50ce89=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x50ce89);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x442707{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x8da088,_0x5ccf93,_0x40268f,_0x4d9dbf){super(_0x8da088),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x594c0a(_0x8da088,o(_0x8da088,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5ccf93['authoredAt']),this['bind']('authoredAt')['to'](_0x5ccf93),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',_0x5ccf93,'authoredAt',this,'descriptionParts',(_0x5c6a2e,_0x29f3e8,_0x48555f)=>{const _0x17adbd=_0x48555f['map'](_0x14d05d=>ns(_0x14d05d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5c6a2e-0x1,_0x5ccf93['author']['name'],_0x29f3e8?_0x4d9dbf['formatDateTime'](_0x29f3e8):'',new DOMParser()['parseFromString'](_0x17adbd,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2b4982(),this['focusTracker']=new _0x4044de(),this['keystrokes']=new _0x6eab89(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2fbf1d=>_0x2fbf1d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5ccf93,this['_localUser']=_0x40268f,this['_config']=_0x4d9dbf,_0x4d9dbf['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x850d6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5e24ad}=this['_config'];this['commentsListView']=new _0x5e24ad(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',_0x1f05d4=>_0x1f05d4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x171bc4,_0x5b2891)=>_0x171bc4||!!_0x5b2891);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x14200b}=this['_config'],_0x223e16=new _0x14200b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x196ed5=_0x223e16['commentInputView'];return _0x223e16['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x196ed5,'value',(_0x903608,_0x17fac1,_0x4b4ea4)=>!!_0x4b4ea4||_0x903608&&!_0x17fac1),_0x196ed5['on']('submit',(_0x13e426,_0x2414f9)=>{this['fire']('addComment',_0x2414f9),_0x196ed5['editor']['setData']('');}),_0x196ed5['on']('cancel',()=>this['focus']()),_0x196ed5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x223e16;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x2638ec,_0x55123c,_0x3f2993,_0x25b2e0){super(_0x2638ec,_0x55123c,_0x3f2993,_0x25b2e0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2a22fa=>_0x2a22fa&&_0x2a22fa[0x0]?_0x2a22fa[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2b8341,_0x11a0c2)=>{let _0x3a2af3='';for(const _0x3c9292 of _0x2b8341)_0x3a2af3+='<p>'+ns(_0x3c9292['content'],_0x3c9292['color'])+'</p>';return _0x11a0c2?_0x3a2af3:ti(_0x3a2af3,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x25b2e0['SuggestionView'](_0x2638ec,_0x55123c,{'formatDateTime':_0x25b2e0['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 _0xfeb7e4=this['bindTemplate'],_0x39644f=[this['suggestionView']];return this['commentsListView']&&_0x39644f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x39644f['push'](this['commentThreadInputView']),_0x39644f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xfeb7e4['if']('isActive','ck-suggestion-wrapper--active'),_0xfeb7e4['to']('type',_0x226353=>'ck-suggestion-'+_0x226353),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':_0xfeb7e4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x39644f};}['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 ue extends _0x442707{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x19c83b,_0x1c605f,_0x6aa89c){super(_0x19c83b),this['_model']=_0x1c605f,this['_config']=_0x6aa89c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1c605f),this['acceptButton']=this['_createButton'](o(_0x19c83b,'Accept\x20suggestion'),_0x2ec321['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x19c83b,'Discard\x20suggestion'),_0x2ec321['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x336d8b(_0x19c83b,_0x1c605f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2b4982([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4044de(),this['keystrokes']=new _0x6eab89(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x49a10d=>_0x49a10d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x279837=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x279837['innerHTML']=this['description'],this['on']('change:description',(_0x5e2e8f,_0x3ea026,_0x5806aa)=>{_0x279837['innerHTML']=_0x5806aa;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x20eeb5=this['bindTemplate'],_0x39ec7c=[{'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']}},{'tag':'time','attributes':{'datetime':_0x20eeb5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x20eeb5['to']('authoredAt',_0x3c8bb7=>this['_config']['formatDateTime'](_0x3c8bb7))}]}]},{'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']&&_0x39ec7c['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':_0x39ec7c}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2ef3a7,_0x70e19a,_0x226746,_0x28d877,_0x3f47e9){const _0x47dfa5=new _0x1e08f8(this['locale']);return _0x47dfa5['set']({'label':_0x2ef3a7,'icon':_0x70e19a,'tooltip':!0x0,'tooltipPosition':_0x3f47e9}),_0x47dfa5['extendTemplate']({'attributes':{'class':_0x226746}}),_0x47dfa5['on']('execute',()=>{this['fire'](_0x28d877,this['_model']['id']);}),_0x47dfa5;}['_setupKeyboardNavigation'](){const _0x3ea02d=this['element'];this['keystrokes']['listenTo'](_0x3ea02d);for(const _0x2c8491 of this['focusables'])this['focusTracker']['add'](_0x2c8491['element']),this['keystrokes']['listenTo'](_0x2c8491['element']);this['keystrokes']['set']('enter',(_0x5160aa,_0x574f8c)=>{_0x3ea02d===_0x5160aa['target']&&(this['focusCycler']['focusFirst'](),_0x574f8c());}),this['keystrokes']['set']('esc',(_0x2e33e6,_0x215a3e)=>{_0x3ea02d!==_0x2e33e6['target']&&(this['focus'](),_0x215a3e());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0xa4c963{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x39d8d3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43e7ea){super(_0x43e7ea),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4d00ee=this['editor']['config'];_0x4d00ee['define']('trackChanges.SuggestionThreadView',de),_0x4d00ee['define']('trackChanges.SuggestionView',ue),_0x4d00ee['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4d00ee['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xb40d68,_0xccac7a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x534565,_0x58a0ca]of this['_handleControllerBuffer']){const _0xdccf73=this['_suggestionToController']['has'](_0x534565);_0xdccf73||_0x58a0ca?_0xdccf73&&_0x58a0ca&&this['_destroyController'](_0x534565):this['_initializeController'](_0x534565);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xb40d68,_0xccac7a);}['init'](){const _0x5f40ff=this['editor'],_0x13d756=_0x5f40ff['plugins']['get']('TrackChangesEditing'),_0x31ad6b=_0x5f40ff['plugins']['get']('Annotations'),_0x592d0e=_0x5f40ff['plugins']['get']('EditorAnnotations'),_0x2fbf00=_0x5f40ff['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x592d0e['addSourceCollector'](()=>{const _0x42197a=[];for(const [_0x42b9ea,_0x543a10]of Array['from'](this['_suggestionToController'])){const _0x515938=_0x42b9ea['getAllAdjacentSuggestions'](),_0x1eb6ad=[];for(const _0x3ce9bc of _0x515938){if(!_0x3ce9bc['isInContent'])continue;if(_0x3ce9bc['isMultiRange']){_0x1eb6ad['push'](..._0x3ce9bc['getRanges']());continue;}const _0xbdb4d2=_0x3ce9bc['getFirstRange']();if(_0x1eb6ad['length']>0x0){const _0x173cf4=_0x1eb6ad[0x0]['getJoined'](_0xbdb4d2);if(_0x173cf4){_0x1eb6ad[0x0]=_0x173cf4;continue;}}_0x1eb6ad['push'](_0xbdb4d2);}_0x42197a['push']([_0x543a10['view'],_0x1eb6ad]);}return _0x42197a;}),this['listenTo'](_0x13d756,'suggestionLoaded',(_0x2d7f4e,_0x32e76e)=>{this['listenTo'](_0x32e76e,'change:previous',(_0x37ae6a,_0xba4cea,_0x52c1d8,_0x287b22)=>{_0x32e76e['isInContent']&&(null==_0x52c1d8?(this['_updateController'](_0x287b22['head']),this['_handleSuggestionControllerDelayed'](_0x32e76e,!0x1)):(this['_updateController'](_0x52c1d8['head']),null==_0x287b22&&this['_handleSuggestionControllerDelayed'](_0x32e76e,!0x0)));}),null!==_0x32e76e['previous']?this['_updateController'](_0x32e76e['head']):this['_handleSuggestionControllerDelayed'](_0x32e76e,!0x1);}),this['listenTo'](_0x13d756,'suggestionUnloaded',(_0x58159e,_0x418d4f,_0x55c78e)=>{this['stopListening'](_0x418d4f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x418d4f),this['_suggestionToController']['has'](_0x418d4f)&&this['_destroyController'](_0x418d4f),_0x55c78e&&this['_updateController'](_0x55c78e['head']);}),this['listenTo'](_0x13d756,'suggestionChanged',(_0x56e898,_0x2260e9)=>{this['_updateController'](_0x2260e9);}),this['listenTo'](_0x31ad6b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2fbf00,'addComment',(_0x2c2cb9,{threadId:_0x53b275,isFromAdapter:_0x19b957})=>{if(_0x19b957||!_0x13d756['hasSuggestion'](_0x53b275))return;const _0x3e2f4a=_0x13d756['getSuggestion'](_0x53b275);this['_suggestionToController']['get'](_0x3e2f4a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xc63f9b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d78d7;for(const _0x3d9a41 in _0xc63f9b){const _0x5d8967=_0x3d9a41,_0x402f18=_0xc63f9b[_0x5d8967];if('trackChangesLicenseKeyValid'==_0x402f18||'trackChangesLicenseKeyInvalid'==_0x402f18||'trackChangesLicenseKeyExpired'==_0x402f18||'trackChangesLicenseKeyDomainLimit'==_0x402f18||'trackChangesLicenseKeyNotAllowed'==_0x402f18||'trackChangesLicenseKeyEvaluationLimit'==_0x402f18||'trackChangesLicenseKeyTrialLimit'==_0x402f18||'trackChangesLicenseKeyDevelopmentLimit'==_0x402f18||'trackChangesLicenseKeyUsageLimit'==_0x402f18){delete _0xc63f9b[_0x5d8967],_0x4d78d7=_0x402f18,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4b335a=this['editor']['plugins']['get']('Annotations'),_0x449608=this['editor']['plugins']['get']('TrackChangesEditing'),_0x339974=Array['from'](_0x4b335a['activeAnnotations'],_0x26c5bc=>_0x26c5bc['innerView'])['filter'](_0x30f2aa=>this['_viewToController']['has'](_0x30f2aa)),_0x821d83=[];for(const _0x31115b of _0x339974){const _0x1f37eb=this['_viewToController']['get'](_0x31115b)['model']['getAllAdjacentSuggestions']();_0x821d83['push'](..._0x1f37eb['reduce']((_0x5d1bb6,_0xb7ccd1)=>[..._0x5d1bb6,..._0xb7ccd1['getMarkerNames']()],[]));}_0x449608['activeMarkers']=_0x821d83;}['_addUIComponentsToFactory'](){const _0xd68c6f=this['editor'],_0x5aeeea=_0xd68c6f['locale'],_0x3b60bb=o(_0x5aeeea,'Track\x20changes'),_0x4001e9=new _0x41cb48([{'type':'switchbutton','model':new _0x2060e5({'withText':!0x0,'isToggleable':!0x0,'label':_0x3b60bb,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2060e5({'withText':!0x0,'label':o(_0x5aeeea,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2060e5({'withText':!0x0,'label':o(_0x5aeeea,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2060e5({'withText':!0x0,'label':o(_0x5aeeea,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2060e5({'withText':!0x0,'label':o(_0x5aeeea,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x53a768 of _0x4001e9)if(pe(_0x53a768)){const _0x380578=_0xd68c6f['commands']['get'](_0x53a768['model']['commandName']);_0x53a768['model']['bind']('isOn','isEnabled')['to'](_0x380578,'value','isEnabled');}_0xd68c6f['ui']['componentFactory']['add']('trackChanges',_0x37f447=>this['_createToolbarButton'](_0x37f447,_0x4001e9,_0x3b60bb)),_0xd68c6f['ui']['componentFactory']['add']('menuBar:trackChanges',_0xbac5f6=>this['_createMenuBarMenu'](_0xbac5f6,_0x4001e9,_0x3b60bb));}['_createToolbarButton'](_0x16ba64,_0x8269a0,_0x33cfa1){const _0x4ef4be=_0x2321d0(_0x16ba64,_0x5b609a),_0x1b24f8=this['editor']['commands']['get']('trackChanges');_0x4ef4be['buttonView']['set']({'tooltip':_0x33cfa1,'label':_0x33cfa1,'icon':Ce}),_0x4ef4be['buttonView']['bind']('isOn')['to'](_0x1b24f8,'value'),_0x4ef4be['buttonView']['on']('execute',()=>{_0x1b24f8['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x4ef4be,_0x8269a0,{'role':'menu'});const _0xfb48f0=[];for(const _0x5c4fdf of _0x8269a0)pe(_0x5c4fdf)&&_0xfb48f0['push'](this['editor']['commands']['get'](_0x5c4fdf['model']['commandName']));const _0x2a7d92=_0x4ef4be['buttonView'];return _0x2a7d92['actionView']['unbind']('isEnabled'),_0x2a7d92['arrowView']['unbind']('isEnabled'),_0x2a7d92['actionView']['bind']('isEnabled')['to'](_0x1b24f8,'isEnabled'),_0x2a7d92['arrowView']['bind']('isEnabled')['toMany'](_0xfb48f0,'isEnabled',(..._0x22cfd5)=>_0x22cfd5['some'](_0x2401a2=>_0x2401a2)),_0x4ef4be['on']('execute',_0x215b63=>{this['editor']['execute'](_0x215b63['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ef4be;}['_createMenuBarMenu'](_0x4a347e,_0x89c2b4,_0x480006){const _0x1db880=new _0x538430(_0x4a347e),_0xe42156=this['editor']['commands']['get']('trackChanges');_0x1db880['buttonView']['set']({'label':_0x480006,'icon':Ce});const _0x42bd25=new _0xc23e53(_0x4a347e);for(const _0x3917e4 of _0x89c2b4){if('separator'==_0x3917e4['type']){_0x42bd25['items']['add'](new _0x519292(_0x4a347e));continue;}const _0x198c08=new _0x1826aa(_0x4a347e,_0x1db880),_0x5af64d=new _0x52e206(_0x4a347e),_0x45ab80=_0x3917e4['model'];_0x5af64d['bind'](...Object['keys'](_0x45ab80))['to'](_0x45ab80),_0x5af64d['delegate']('execute')['to'](_0x1db880),_0x5af64d['on']('execute',()=>{this['editor']['execute'](_0x45ab80['commandName']),this['editor']['editing']['view']['focus']();}),_0x198c08['children']['add'](_0x5af64d),_0x42bd25['items']['add'](_0x198c08);}return _0x1db880['bind']('isEnabled')['to'](_0xe42156,'isEnabled'),_0x1db880['panelView']['children']['add'](_0x42bd25),_0x1db880;}['_initializeController'](_0x1bebf0){const _0x40de0c=this['editor'],_0x28eebc=_0x40de0c['config'],_0x1a8dee=_0x40de0c['plugins']['get']('Annotations'),_0x42ff89=_0x40de0c['plugins']['get']('CommentsRepository'),_0x351733=_0x40de0c['plugins']['get']('EditorAnnotations'),_0x4afcf0=_0x40de0c['plugins']['get'](_0x39d8d3)['me'],_0x54ec6f=_0x28eebc['get']('trackChanges')['SuggestionThreadView'],_0x31763a=_0x28eebc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x43d347,CommentThreadInputView:_0x4d5b73}=_0x40de0c['plugins']['get']('CommentsUI');let _0x20e346,_0x42312f,_0x327cd5;this['_annotationViews']['has'](_0x1bebf0['id'])?(_0x42312f=this['_annotationViews']['get'](_0x1bebf0['id']),_0x20e346=_0x42312f['mainView']):(_0x20e346=new _0x54ec6f(_0x40de0c['locale'],_0x1bebf0,_0x4afcf0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x28eebc['get']('comments.editorConfig'),'licenseKey':_0x28eebc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x28eebc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x28eebc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x28eebc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x31f0ea(_0x28eebc['get']('locale')),'CommentView':_0x28eebc['get']('comments')['CommentView'],'CommentsListView':_0x43d347,'CommentThreadInputView':_0x4d5b73,'SuggestionView':_0x31763a}),_0x20e346['suggestionView']['acceptButton']['on']('execute',()=>{_0x40de0c['editing']['view']['focus']();}),_0x20e346['suggestionView']['discardButton']['on']('execute',()=>{_0x40de0c['editing']['view']['focus']();}),_0x42312f=_0x1a8dee['createAnnotationView'](this['editor']['locale'],_0x20e346),_0x42312f['bind']('isDirty')['to'](_0x20e346,'isDirty'),_0x42312f['bind']('length')['to'](_0x20e346),_0x42312f['bind']('type')['to'](_0x20e346,'type',_0x40159a=>'suggestion-'+_0x40159a),_0x20e346['on']('escape',()=>{_0x327cd5['fire']('escape');}),this['_annotationViews']['set'](_0x1bebf0['id'],_0x42312f));const _0x338740=_0x42ff89['createCommentThreadController'](_0x1bebf0['commentThread'],_0x20e346),_0x21ed50=new ge(_0x40de0c,_0x1bebf0,_0x20e346,_0x338740),_0x300026=_0x1bebf0['getAllAdjacentSuggestions']()['filter'](_0x4906c2=>_0x4906c2['isInContent']);_0x20e346['descriptionParts']=_0x40de0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x300026),this['_suggestionToController']['set'](_0x1bebf0,_0x21ed50),this['_viewToController']['set'](_0x20e346,_0x21ed50),_0x327cd5=_0x1a8dee['createAnnotation']({'view':_0x42312f,'target':()=>{const _0x562dc8=[],_0x1961e8=_0x1bebf0['getAllAdjacentSuggestions']()['filter'](_0x455f9b=>_0x455f9b['isInContent']);for(const _0x1ff2a6 of _0x1961e8)_0x562dc8['push'](..._0x1ff2a6['getMarkers']());return _0x35ad2b(_0x40de0c['editing'],_0x562dc8);},'type':()=>'suggestion-'+_0x21ed50['view']['type']}),_0x42ff89['_bindAnnotationToEditors'](_0x20e346,_0x327cd5),_0x1a8dee['add'](_0x327cd5),_0x351733['registerAnnotation'](_0x327cd5);}['_destroyController'](_0xfad2f){const _0x18d51c=this['editor']['plugins']['get']('CommentsRepository'),_0x3d05f9=this['editor']['plugins']['get']('Annotations'),_0x35eff9=this['_suggestionToController']['get'](_0xfad2f),_0x4f7d32=_0x35eff9['view'],_0x2f5f6f=_0x3d05f9['getByInnerView'](_0x4f7d32);_0x18d51c['_unbindEditors'](_0x4f7d32),_0x2f5f6f&&_0x3d05f9['remove'](_0x2f5f6f),this['_suggestionToController']['delete'](_0xfad2f),this['_viewToController']['delete'](_0x4f7d32),_0x35eff9['destroy']();}['_updateController'](_0x49fa9c){if(!_0x49fa9c['isInContent']||!this['_suggestionToController']['has'](_0x49fa9c))return;const _0x5d41a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18e20c=this['_suggestionToController']['get'](_0x49fa9c),_0x198a4b=_0x49fa9c['getAllAdjacentSuggestions']();_0x18e20c['view']['descriptionParts']=_0x5d41a9['descriptionFactory']['getDescriptions'](_0x198a4b);}['destroy'](){for(const _0x2fc824 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2fc824);for(const _0x45990d of this['_annotationViews']['values']())_0x45990d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x127ae5){return'model'in _0x127ae5;}class k extends _0xa4c963{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x17ee04){this['editor']['plugins']['get'](p)['adapter']=_0x17ee04;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x22bd92){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x22bd92);}['getSuggestions']({skipNotAttached:_0x4cd191=!0x1,toJSON:_0x5efbf0=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4cd191,'toJSON':_0x5efbf0});}['getSuggestion'](_0x34671e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x34671e);}}const w=['Pagination'];class T extends _0xa4c963{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3979e4=this['editor'];if(_0x3979e4['config']['define']('trackChangesData.editorCreator',_0x3023af=>{const _0x2e6a7a=_0x3979e4['model']['document']['getRootNames']()['reduce']((_0x28e8ce,_0x202005)=>(_0x28e8ce[_0x202005]='',_0x28e8ce),{});return _0x3979e4['constructor']['create'](_0x2e6a7a,_0x3023af);}),'function'!=typeof _0x3979e4['config']['get']('trackChangesData')['editorCreator'])throw new _0x541450('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x67ec9f){return N(this['editor'],!0x0,_0x67ec9f);}['getDataWithDiscardedSuggestions'](_0x29054b){return N(this['editor'],!0x1,_0x29054b);}}class D extends _0xa4c963{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b8a1b){function _0x39b517(_0x57a5f9){return _0x57a5f9['map'](_0x5997cf=>String['fromCharCode'](_0x5997cf))['join']('');}super(_0x5b8a1b),this['result']='end',_0x5b8a1b[_0x39b517([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39b517([0x76,0x69,0x65,0x77])][_0x39b517([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39b517([0x61,0x75,0x74,0x6f]),_0x5b8a1b[_0x39b517([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x39b517([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39b517([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x39b517([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x39b517([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 v(_0x4d4b7f){return void 0x0!==_0x4d4b7f['getRootsAttributes'];}async function N(_0x547a6c,_0x44d502,_0x11e002){const _0x41f12d=_0xac384c(_0x547a6c,w);_0x41f12d['plugins']['push'](p,D),_0x41f12d['rootsAttributes']=v(_0x547a6c)?_0x547a6c['getRootsAttributes']():void 0x0;const _0x4458a3=document['createDocumentFragment'](),_0x596838=_0x547a6c['config']['get']('trackChangesData')['editorCreator'],_0x2be7fb=await _0x596838(_0x41f12d,()=>function(_0x166b1b){const _0x5c3c21=document['createElement']('div');return _0x166b1b['appendChild'](_0x5c3c21),_0x5c3c21;}(_0x4458a3));!function(_0x34eb11,_0x46fd2e){const _0x435f0c=_0x34eb11['model']['document']['getRootNames']()['reduce']((_0x407576,_0x2f0185)=>(_0x407576[_0x2f0185]=_0x34eb11['data']['get']({'rootName':_0x2f0185}),_0x407576),{}),_0x36dcc1=_0x34eb11['plugins']['get']('Users')['users']['map'](_0x2c8c24=>({'id':_0x2c8c24['id'],'name':_0x2c8c24['name']})),_0x3320fa=_0x34eb11['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xe739ab=_0x34eb11['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x33d13e=_0x46fd2e['plugins']['get']('Users'),_0x1eccd1=_0x46fd2e['plugins']['get']('TrackChangesEditing'),_0xde6183=_0x46fd2e['plugins']['get']('CommentsRepository');for(const _0x5c9d89 of _0xde6183['getCommentThreads']())_0x5c9d89['remove']();for(const _0x10dbb6 of _0x36dcc1)_0x33d13e['getUser'](_0x10dbb6['id'])||_0x33d13e['addUser'](_0x10dbb6);_0x33d13e['me']||_0x33d13e['useAnonymousUser']();for(const _0x24bb01 of _0xe739ab)_0xde6183['addCommentThread'](_0x24bb01);for(const _0x2e2cff of _0x3320fa)_0x1eccd1['addSuggestionData'](_0x2e2cff);_0x46fd2e['data']['set'](_0x435f0c);}(_0x547a6c,_0x2be7fb),_0x2be7fb['execute'](_0x44d502?'acceptAllSuggestions':'discardAllSuggestions');const _0x1d6184=v(_0x2be7fb)?_0x2be7fb['getFullData'](_0x11e002):_0x2be7fb['data']['get'](_0x11e002);return await _0x2be7fb['destroy'](),_0x1d6184;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};