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

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 _0x3c70aa,PendingActions as _0x4b0c5c,icons as _0x2c975e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1c48ec,ObservableMixin as _0x5e240a,uid as _0x1cdff5,insertToPriorityArray as _0x113a93,priorities as _0x2e7237,logWarning as _0x394b65,getEnvKeystrokeText as _0x353a89,FocusTracker as _0x5b425e,KeystrokeHandler as _0x48adf6,Collection as _0x4a8f40}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x17ec29,View as _0x1af93f,ViewCollection as _0x5942c5,FocusCycler as ts,ViewModel as _0x11d7e2,createDropdown as _0x3ca6cc,SplitButtonView as _0x3de8e3,addListToDropdown as te,MenuBarMenuView as _0x5f51ed,MenuBarMenuListView as _0x474c59,ListSeparatorView as _0x41b63c,MenuBarMenuListItemView as _0x101cc3,MenuBarMenuListItemButtonView as _0x356cad}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x561e78,hashObject as _0x48010a,surroundingMarkersDetector as _0x452a5d,FOCUS_ANNOTATION_KEYSTROKE as _0x2bee45,AriaDescriptionView as _0x2feb91,setupThreadKeyboardNavigation as _0x5a6628,trimHtml as ti,UserView as _0x1a7807,LateFocusButtonView as _0x48ee80,getDateTimeFormatter as _0x3f1446,getAllMarkersDomElementsSorted as _0xd1bf56,sanitizeEditorConfig as _0x56139c}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x61c7b7,LiveRange as _0x4fb46f,LivePosition as _0x4537ad}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x504615,toWidget as _0xf63f8c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x27d82d,set as _0x1386f3,isEqual as _0x4700ac,unset as _0xd0c7a4,omit as xt}from'lodash-es';import{Delete as _0x1f0ed5,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x491ab7,ShiftEnter as _0x4f65e3}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x23af91,_0x3f81d2){super(_0x23af91),this['_enabledCommands']=_0x3f81d2,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 _0x481c3f of this['editor']['commands']['commands']())_0x481c3f['affectsData']&&!this['_enabledCommands']['has'](_0x481c3f)&&_0x481c3f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3350f4 of this['editor']['commands']['commands']())_0x3350f4['affectsData']&&!this['_enabledCommands']['has'](_0x3350f4)&&_0x3350f4['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x300d8b,_0x155d6c){super(_0x300d8b),this['_suggestions']=_0x155d6c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2742e3){const _0x4142d9=this['_suggestions']['get'](_0x2742e3);if(!_0x4142d9)throw new _0x1c48ec('track-changes-accept-suggestion-not-found',this);const _0x466715=_0x4142d9['getRanges']();this['editor']['model']['canEditAt'](_0x466715)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4142d9);}}class R extends Qt{['_suggestions'];constructor(_0x272b18,_0x3e01e6){super(_0x272b18),this['_suggestions']=_0x3e01e6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x469486){const _0x124141=this['_suggestions']['get'](_0x469486);if(!_0x124141)throw new _0x1c48ec('track-changes-discard-suggestion-not-found',this);const _0x256c7c=_0x124141['getRanges']();this['editor']['model']['canEditAt'](_0x256c7c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x124141);}}function ns(_0x5431d2,_0x55af97){let _0xa19740='';return _0xa19740+=_0x5431d2['split']('*')['map']((_0x243f56,_0x298430)=>_0x298430%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x243f56)+'</span>':nn(_0x243f56))['join'](''),_0x55af97&&(_0xa19740+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x55af97['value']+'\x22\x20title=\x22'+_0x55af97['title']+'\x22></span>'),_0xa19740;}function nn(_0x2a7321){const _0x406c00=document['createElement']('span');return _0x406c00['innerText']=_0x2a7321,_0x406c00['innerHTML'];}function Wt(_0x34bd16){return _0x34bd16['sort']((_0x451092,_0x1d6f98)=>'deletion'==_0x451092['type']&&'deletion'!=_0x1d6f98['type']?-0x1:'deletion'!=_0x451092['type']&&'deletion'==_0x1d6f98['type']?0x1:0x0);}function to(_0x22634e,_0x2c71e1){let _0x31b4c4,_0xc2ce3b=0x0;const _0x240a84=[],_0x46658d=_0x2c71e1['schema'];for(;_0xc2ce3b<_0x22634e['length'];){const _0x2415d5=_0x22634e[_0xc2ce3b],_0x5753f8=_0x22634e[_0xc2ce3b+0x1];_0x31b4c4||(_0x31b4c4=_0x2c71e1['createPositionBefore'](_0x2415d5)),on(_0x2c71e1,_0x2415d5,_0x5753f8)||(_0x240a84['push'](_0x2c71e1['createRange'](_0x31b4c4,_0x46658d['isObject'](_0x2415d5)?_0x2c71e1['createPositionAfter'](_0x2415d5):_0x2c71e1['createPositionAt'](_0x2415d5,'end'))),_0x31b4c4=null),_0xc2ce3b++;}return _0x240a84;}function on(_0x5d3f5d,_0x83e505,_0x146f46){if(!_0x146f46)return!0x1;const _0x8acf6d=_0x5d3f5d['createPositionAfter'](_0x83e505),_0x3417c9=_0x5d3f5d['createPositionBefore'](_0x146f46);return _0x8acf6d['isTouching'](_0x3417c9);}function Xt(_0x1a5945,_0x39265c,_0x54c2f1){for(;_0x54c2f1['length'];){const _0x5a1b80=_0x54c2f1['splice'](0x0,0x64);_0x1a5945['change'](()=>{for(const _0xfd8e31 of _0x5a1b80)_0xfd8e31['isInContent']&&_0x39265c['execute'](_0xfd8e31['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x38bfdc,_0x3effbb,_0x1cc812){super(_0x38bfdc),this['_command']=_0x3effbb,this['_suggestions']=_0x1cc812,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x328f3b=Array['from'](this['_suggestions']['values']())['some'](_0x46d699=>_0x46d699['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x328f3b;}['execute'](){const _0x56c6f0=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x48f46c of _0x56c6f0){const _0x16ee43=_0x48f46c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x16ee43))return;}Xt(this['editor']['model'],this['_command'],_0x56c6f0);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2393d0,_0x41a3af,_0x4c988a){super(_0x2393d0),this['_command']=_0x41a3af,this['_suggestions']=_0x4c988a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4c0c8d=this['editor']['model']['document']['selection'],_0x194385=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xf53a52,_0x92acd5){const _0x383602=Array['from'](_0xf53a52['getRanges']()),_0x2218d8=new Set();for(const _0x1b9547 of _0x92acd5)if(_0x1b9547['isInContent']){for(const _0x2323c9 of _0x383602)for(const _0x21469f of _0x1b9547['getRanges']())(_0x2323c9['isIntersecting'](_0x21469f)||_0xf53a52['isCollapsed']&&!_0x1b9547['isMultiRange']&&_0x1b9547['next']&&_0x21469f['end']['isTouching'](_0x2323c9['start']))&&_0x2218d8['add'](_0x1b9547);}return _0x2218d8;}(_0x4c0c8d,_0x194385),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3d55e5=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x24acc2 of _0x3d55e5){const _0x5a2180=_0x24acc2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5a2180))return;}Xt(this['editor']['model'],this['_command'],_0x3d55e5);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x5e240a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x113b49,_0x1c8b47){super(),this['id']=_0x1c8b47['id'],this['type']=_0x1c8b47['type'],this['subType']=_0x1c8b47['subType']||null,this['author']=_0x1c8b47['author'],this['creator']=_0x1c8b47['creator']||_0x1c8b47['author'],this['isExternal']=Boolean(_0x1c8b47['attributes']&&_0x1c8b47['attributes']['@external']),this['data']=null,this['_model']=_0x113b49,this['_onAccept']=_0x1c8b47['onAccept'],this['_onDiscard']=_0x1c8b47['onDiscard'],this['_onAttributesChange']=_0x1c8b47['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1c8b47['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 _0x4a8df6=this;for(;_0x4a8df6['previous'];)_0x4a8df6=_0x4a8df6['previous'];return _0x4a8df6;}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'](_0x488c90){this['_markerNames']['add'](_0x488c90);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3e8463=>this['_model']['markers']['get'](_0x3e8463))['filter'](_0x2a2fb2=>_0x2a2fb2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5a923a=>{for(const _0xa354b9 of this['getMarkers']())_0x5a923a['removeMarker'](_0xa354b9);}),this['_markerNames']['clear']();}['removeMarker'](_0x4bd31a){this['_model']['change'](_0x113547=>{_0x113547['removeMarker'](_0x4bd31a);}),this['_markerNames']['delete'](_0x4bd31a);}['addRange'](_0x49d2f5){const _0x1aba62='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1aba62),this['_model']['change'](_0x1b996f=>{_0x1b996f['addMarker'](_0x1aba62,{'range':_0x49d2f5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2803f2){for(const _0x22e1a9 of this['getRanges']())if(_0x22e1a9['isIntersecting'](_0x2803f2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x35c9c5=>_0x35c9c5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x46290c,_0x929197)=>[..._0x46290c,..._0x929197['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x382d1c=this['getRanges']();if(0x1!=_0x382d1c['length'])return null;const _0x20357a=_0x382d1c[0x0],_0x3ce74a=_0x20357a['start']['nodeAfter'],_0x20dd56=_0x20357a['end']['nodeBefore'];return _0x3ce74a instanceof _0x61c7b7?_0x3ce74a!=_0x20dd56?null:_0x3ce74a: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 _0x55b222=[];let _0x52bc66=this['head'];for(;_0x52bc66;)_0x55b222['push'](_0x52bc66),_0x52bc66=_0x52bc66['next'];return _0x55b222;}['setAttribute'](_0x5a36f9,_0x1b86b2){const _0x2c8b90=_0x27d82d(this['attributes']);_0x1386f3(_0x2c8b90,_0x5a36f9,_0x1b86b2),_0x4700ac(_0x2c8b90,this['attributes'])||(this['attributes']=_0x2c8b90,this['_onAttributesChange'](_0x2c8b90));}['removeAttribute'](_0x25def0){const _0x3dbf58=_0x27d82d(this['attributes']);_0xd0c7a4(_0x3dbf58,_0x25def0),_0x4700ac(_0x3dbf58,this['attributes'])||(this['attributes']=_0x3dbf58,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 _0x1cdff5()['substr'](0x1,0x5);}}function o(_0x1eb845,_0x1e12d1,_0x3c51c2){const _0x52e39c=_0x1eb845['t'],t=_0x1eb845['t'];switch(_0x1e12d1){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',_0x3c51c2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3c51c2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3c51c2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3c51c2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3c51c2);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',_0x3c51c2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3c51c2);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',_0x3c51c2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3c51c2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3c51c2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3c51c2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3c51c2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3c51c2);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3c51c2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3c51c2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3c51c2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3c51c2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3c51c2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3c51c2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3c51c2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3c51c2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3c51c2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3c51c2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3c51c2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3c51c2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3c51c2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3c51c2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3c51c2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3c51c2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3c51c2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3c51c2);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'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3c51c2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3c51c2);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 _0x52e39c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3c51c2);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x52e39c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3c51c2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3c51c2);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'},_0x3c51c2);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'},_0x3c51c2);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'},_0x3c51c2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1e12d1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x33ed28,_0x3ac1c8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x33ed28,this['_locale']=_0x3ac1c8;}['getDescriptions'](_0x4e16a1){const _0x2686f3=[],_0x28a6f7=new Set(),_0x1e7516=new Set();for(let _0x153fbb=0x0;_0x153fbb<_0x4e16a1['length'];_0x153fbb++){const _0x5e6c92=_0x4e16a1[_0x153fbb];if(!_0x5e6c92['isInContent'])continue;const _0x4cda05=this['_handleCustomCallbackDescription'](_0x5e6c92);if(_0x4cda05){if(null!=_0x5e6c92['subType']){if(_0x28a6f7['has'](_0x5e6c92['subType']))continue;_0x28a6f7['add'](_0x5e6c92['subType']);}_0x2686f3['push'](_0x4cda05);}else{if('attribute'!=_0x5e6c92['type'])'insertion'!=_0x5e6c92['type']&&'deletion'!=_0x5e6c92['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2686f3,_0x5e6c92,_0x4e16a1[_0x153fbb+0x1]);else{const _0x128d53=_0x5e6c92['data']['key'];if(_0x1e7516['has'](_0x128d53))continue;_0x1e7516['add'](_0x5e6c92['data']['key']),_0x128d53==m?this['_handleRenameSuggestionDescription'](_0x2686f3,_0x5e6c92):this['_handleAttributeSuggestionDescription'](_0x2686f3,_0x5e6c92);}}}return this['_resolveDescriptionItems'](_0x2686f3);}['registerDescriptionCallback'](_0x44d8cd){this['_customCallbacks']['push'](_0x44d8cd);}['registerElementLabel'](_0x1d3ecf,_0x4ee7cc,_0x1e6aed=_0x2e7237['normal']){'function'==typeof _0x1d3ecf?_0x113a93(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1d3ecf,'label':_0x4ee7cc,'priority':_0x1e6aed}):this['_itemLabels']['set'](_0x1d3ecf,_0x4ee7cc);}['registerAttributeLabel'](_0x3b59e8,_0x613ed6){this['_attributeLabels']['set'](_0x3b59e8,_0x613ed6);}['getItemLabel'](_0x783b4f,_0xb32dd=0x1){let _0x56d867;for(const _0x1c74ea of this['_itemLabelsCallbacks'])if(_0x1c74ea['matchingCallback'](_0x783b4f)){_0x56d867=_0x1c74ea['label'];break;}return _0x56d867||(_0x56d867=this['_itemLabels']['get'](_0x783b4f['name'])),_0x56d867?_0x56d867(_0xb32dd):0x1!==_0xb32dd?_0xb32dd+'\x20'+_0x783b4f['name']+'s':''+_0x783b4f['name'];}['_addDescriptionItems'](_0x4219bb,_0x5d7972){const _0x1277b0=_0x5d7972['getFirstRange']()['getWalker'](),_0x24b17e='insertion'==_0x5d7972['type']?'add':'remove';for(const _0x17f87d of _0x1277b0){const _0x4d566c=_0x17f87d['item'],_0x44798e=_0x4219bb[_0x4219bb['length']-0x1];if(_0x4d566c['is']('$textProxy'))_0x44798e&&_0x44798e['type']['indexOf']('Container')>-0x1&&_0x4219bb['pop'](),_0x44798e&&'text'==_0x44798e['type']?_0x44798e[_0x24b17e]+=_0x4d566c['data']:_0x4219bb['push']({'type':'text','add':'add'==_0x24b17e?_0x4d566c['data']:'','remove':'remove'==_0x24b17e?_0x4d566c['data']:''});else{if(this['_schema']['isObject'](_0x4d566c)){const _0x3dbbc8=_0x4d566c;if(_0x44798e&&_0x44798e['type']['indexOf']('Container')>-0x1&&_0x4219bb['pop'](),'elementEnd'==_0x17f87d['type'])continue;_0x44798e&&_0x44798e['type']==_0x24b17e+'Object'&&_0x44798e['element']['name']==_0x3dbbc8['name']?_0x44798e['quantity']++:_0x4219bb['push']({'type':_0x24b17e+'Object','element':_0x3dbbc8,'quantity':0x1}),_0x1277b0['skip'](_0x364ce3=>!('elementEnd'==_0x364ce3['type']&&_0x364ce3['item']==_0x4d566c));}else{if(this['_schema']['checkChild'](_0x4d566c,'$text')||_0x4d566c['is']('element','softBreak')){const _0x517ff3=_0x4d566c;if('add'==_0x24b17e&&'elementStart'==_0x17f87d['type']||'remove'==_0x24b17e&&'elementEnd'==_0x17f87d['type'])continue;if(_0x44798e&&-0x1==_0x44798e['type']['indexOf']('Container')){'text'==_0x44798e['type']&&(_0x44798e[_0x24b17e]+='\x0a');continue;}let _0x31ddff;if(_0x31ddff='add'==_0x24b17e?_0x517ff3['nextSibling']&&!this['_schema']['isObject'](_0x517ff3['nextSibling'])?_0x517ff3['nextSibling']:null:_0x517ff3['previousSibling']&&!this['_schema']['isObject'](_0x517ff3['previousSibling'])?_0x517ff3['previousSibling']:null,_0x517ff3['isEmpty']||_0x31ddff&&_0x31ddff['isEmpty']){const _0x756c65=_0x31ddff&&_0x31ddff['isEmpty']?_0x31ddff:_0x517ff3;_0x44798e&&_0x44798e['type']==_0x24b17e+'EmptyContainer'&&_0x44798e['element']['name']==_0x756c65['name']?_0x44798e['quantity']++:_0x4219bb['push']({'type':_0x24b17e+'EmptyContainer','element':_0x756c65,'quantity':0x1});}else _0x4219bb['push']({'type':_0x24b17e+'Container','element':_0x517ff3});}}}}}['_resolveDescriptionItems'](_0x5bba7f){const _0x14ae2d=this['_locale'],_0x1dcebf=[],_0x4b269d=[],_0x6bfaad=[];for(const _0x3420e2 of _0x5bba7f)switch(_0x3420e2['type']){case'text':if(_0x3420e2['add']=_0x3420e2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3420e2['remove']=_0x3420e2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3420e2['add']&&''!=_0x3420e2['remove']){_0x1dcebf['push']({'type':'replace','content':o(_0x14ae2d,'REPLACE_TEXT',['\x22'+_0x3420e2['remove']+'\x22','\x22'+_0x3420e2['add']+'\x22'])});continue;}if(null!=_0x3420e2['add']['match'](/^ +$/)){_0x1dcebf['push']({'type':'insertion','content':o(_0x14ae2d,'*Insert:*\x20%0',o(_0x14ae2d,'ELEMENT_SPACE',_0x3420e2['add']['length']))});continue;}if(null!=_0x3420e2['remove']['match'](/^ +$/)){_0x1dcebf['push']({'type':'deletion','content':o(_0x14ae2d,'*Remove:*\x20%0',o(_0x14ae2d,'ELEMENT_SPACE',_0x3420e2['remove']['length']))});continue;}if(''!=_0x3420e2['add']){_0x1dcebf['push']({'type':'insertion','content':o(_0x14ae2d,'*Insert:*\x20%0','\x22'+_0x3420e2['add']+'\x22')});continue;}_0x1dcebf['push']({'type':'deletion','content':o(_0x14ae2d,'*Remove:*\x20%0','\x22'+_0x3420e2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1dcebf['push']({'type':'insertion','content':o(_0x14ae2d,'*Insert:*\x20%0',this['getItemLabel'](_0x3420e2['element'],_0x3420e2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1dcebf['push']({'type':'deletion','content':o(_0x14ae2d,'*Remove:*\x20%0',this['getItemLabel'](_0x3420e2['element'],_0x3420e2['quantity']))});continue;case'addContainer':_0x1dcebf['push']({'type':'insertion','content':o(_0x14ae2d,'*Split:*\x20%0',this['getItemLabel'](_0x3420e2['element'],_0x3420e2['quantity']))});continue;case'removeContainer':_0x1dcebf['push']({'type':'deletion','content':o(_0x14ae2d,'*Merge:*\x20%0',this['getItemLabel'](_0x3420e2['element'],_0x3420e2['quantity']))});continue;case'addFormat':_0x4b269d['push'](_0x3420e2['key']);continue;case'removeFormat':_0x6bfaad['push'](_0x3420e2['key']);continue;default:_0x1dcebf['push'](_0x3420e2);}if(_0x4b269d['length']){const _0x584086=_0x4b269d['map'](_0x52a94a=>this['_attributeLabels']['has'](_0x52a94a)?this['_attributeLabels']['get'](_0x52a94a):_0x52a94a)['join'](',\x20');_0x1dcebf['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x584086)});}if(_0x6bfaad['length']){const _0x476e5d=_0x6bfaad['map'](_0x4ce37c=>this['_attributeLabels']['has'](_0x4ce37c)?this['_attributeLabels']['get'](_0x4ce37c):_0x4ce37c)['join'](',\x20');_0x1dcebf['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x476e5d)});}return _0x1dcebf;}['_handleCustomCallbackDescription'](_0x1e963a){for(const _0x39018b of this['_customCallbacks']){const _0x586e6e=_0x39018b(_0x1e963a);if(_0x586e6e&&'type'in _0x586e6e)return _0x586e6e;}}['_handleAttributeSuggestionDescription'](_0x8dadf6,_0x35b084){const _0x5f5af7=_0x35b084['data'],_0x3c8053=void 0x0===_0x5f5af7['newValue']?'removeFormat':'addFormat';_0x8dadf6['push']({'type':_0x3c8053,'key':_0x5f5af7['key']});}['_handleRenameSuggestionDescription'](_0x154cdd,_0x1444b9){_0x154cdd['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1444b9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x59708c,_0x4bbd15,_0x36d869){if(this['_addDescriptionItems'](_0x59708c,_0x4bbd15),_0x36d869&&_0x36d869['getFirstRange']()&&!_0x4bbd15['getFirstRange']()['end']['isEqual'](_0x36d869['getFirstRange']()['start'])){const _0xdc039a=_0x59708c[_0x59708c['length']-0x1],_0x5eceef='insertion'==_0x4bbd15['type']?'add':'remove';_0xdc039a&&'text'==_0xdc039a['type']&&(_0xdc039a[_0x5eceef]+='\x0a');}}}class U extends _0x3c70aa{['afterInit'](){const _0x4b1ea6=this['editor'],_0x1662bf=_0x4b1ea6['plugins']['get']('TrackChangesEditing');_0x4b1ea6['commands']['get']('showAIAssistant')&&_0x1662bf['enableCommand']('showAIAssistant');}}class V extends _0x3c70aa{['afterInit'](){const _0x1ab935=this['editor'],_0x3a2955=_0x1ab935['locale'];if(!_0x1ab935['plugins']['has']('AlignmentEditing'))return;const _0x319964=_0x1ab935['plugins']['get']('TrackChangesEditing');_0x319964['enableDefaultAttributesIntegration']('alignment'),_0x319964['registerBlockAttribute']('alignment'),_0x319964['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3a2955,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1064de=this['editor'],_0x31342b=_0x1064de['locale'];_0x1064de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1ede=>{if('formatBlock'!=_0x5e1ede['type'])return;const {data:_0xa856ce}=_0x5e1ede;if(_0xa856ce&&'alignment'==_0xa856ce['commandName']){const _0x2651f=_0xa856ce['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x31342b,'*Format:*\x20%0',function(_0xd138a7){switch(_0xd138a7){case'left':return o(_0x31342b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x31342b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x31342b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x31342b,'FORMAT_JUSTIFY_TEXT');}}(_0x2651f))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3c70aa{['afterInit'](){const _0x5558db=this['editor'],_0x1b28c7=_0x5558db['plugins']['get']('TrackChangesEditing'),_0x3a27a8=_0x5558db['locale'];for(const _0x1a13cb of Zt){if(!_0x5558db['plugins']['has'](_0x1a13cb))continue;const _0xe1e05a=_0x1a13cb['slice'](0x0,-0x7)['toLowerCase'](),_0x44a2b3='FORMAT_'+_0xe1e05a['toUpperCase']();_0x1b28c7['enableDefaultAttributesIntegration'](_0xe1e05a),_0x1b28c7['registerInlineAttribute'](_0xe1e05a),_0x1b28c7['descriptionFactory']['registerAttributeLabel'](_0xe1e05a,o(_0x3a27a8,_0x44a2b3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4da0b2=this['editor'],_0x547944=_0x4da0b2['locale'],_0xe3fad6=_0x4da0b2['plugins']['get']('TrackChangesEditing');function _0x1299ae(_0x2353a5,_0x57dc01){_0xe3fad6['descriptionFactory']['registerDescriptionCallback'](_0x2a8485=>{if('formatInline'!=_0x2a8485['type'])return;const {data:_0xd98a10}=_0x2a8485;return _0xd98a10&&_0xd98a10['commandName']===_0x2353a5?_0xd98a10['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x547944,'*Format:*\x20%0',_0x57dc01)}:{'type':'format','content':o(_0x547944,'*Remove\x20format:*\x20%0',_0x57dc01)}:void 0x0;});}_0x1299ae('bold',o(_0x547944,'FORMAT_BOLD')),_0x1299ae('italic',o(_0x547944,'FORMAT_ITALIC')),_0x1299ae('underline',o(_0x547944,'FORMAT_UNDERLINE')),_0x1299ae('code',o(_0x547944,'FORMAT_CODE')),_0x1299ae('strikethrough',o(_0x547944,'FORMAT_STRIKETHROUGH')),_0x1299ae('subscript',o(_0x547944,'FORMAT_SUBSCRIPT')),_0x1299ae('superscript',o(_0x547944,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3c70aa{['afterInit'](){const _0x2a6d37=this['editor'],_0x549baa=_0x2a6d37['locale'];if(!_0x2a6d37['plugins']['has']('BlockQuoteEditing'))return;const _0x471f25=_0x2a6d37['plugins']['get']('TrackChangesEditing'),_0x458cd4=this['editor']['commands']['get']('blockQuote');_0x471f25['enableCommand']('blockQuote',(_0x1c8e50,_0xa866c0={})=>{const _0x1e71f9=this['editor']['model']['document']['selection'],_0x3ba080=_0xa866c0&&void 0x0!==_0xa866c0['forceValue']?_0xa866c0['forceValue']:!_0x458cd4['value'];let _0xe5a176=[];if(_0x3ba080){const _0xfb4d99=Array['from'](_0x1e71f9['getSelectedBlocks']())['filter'](_0x56f6be=>oo(_0x56f6be)||function(_0x3b5982,_0x13fb62){const _0x3d13cd=_0x13fb62['checkChild'](_0x3b5982['parent'],'blockQuote'),_0x3136b3=_0x13fb62['checkChild'](['$root','blockQuote'],_0x3b5982);return _0x3d13cd&&_0x3136b3;}(_0x56f6be,this['editor']['model']['schema']));_0xe5a176=to(_0xfb4d99,_0x2a6d37['model']);}else{const _0x2f2968=Array['from'](_0x1e71f9['getSelectedBlocks']())['filter'](_0xb449f9=>oo(_0xb449f9));_0xe5a176=to(_0x2f2968,_0x2a6d37['model']);}_0x2a6d37['model']['change'](()=>{for(const _0x429cb4 of _0xe5a176)_0x471f25['markBlockFormat'](_0x429cb4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3ba080}]});});}),_0x471f25['descriptionFactory']['registerDescriptionCallback'](_0x46e472=>{const {data:_0x56fdec}=_0x46e472;if(_0x56fdec&&'blockQuote'==_0x56fdec['commandName']){const _0x100fa8=o(_0x549baa,'ELEMENT_BLOCK_QUOTE');return _0x56fdec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x549baa,'*Set\x20format:*\x20%0',_0x100fa8)}:{'type':'format','content':o(_0x549baa,'*Remove\x20format:*\x20%0',_0x100fa8)};}});}}function oo(_0x48d99b){return'blockQuote'==_0x48d99b['parent']['name'];}class L extends _0x3c70aa{['afterInit'](){const _0x264d37=this['editor'],_0x36b626=_0x264d37['locale'],_0x3b2bd7=_0x264d37['plugins']['get']('TrackChangesEditing');_0x264d37['plugins']['has']('BookmarkEditing')&&(_0x3b2bd7['enableCommand']('insertBookmark'),_0x3b2bd7['enableDefaultAttributesIntegration']('updateBookmark'),_0x3b2bd7['registerBlockAttribute']('bookmarkId'),_0x3b2bd7['descriptionFactory']['registerDescriptionCallback'](_0x13de5f=>{if('insertion'!=_0x13de5f['type']&&'deletion'!=_0x13de5f['type']&&'attribute'!=_0x13de5f['type'])return;const _0x724b6e=_0x13de5f['getContainedElement']();if(null==_0x724b6e)return;if(!_0x724b6e['is']('element','bookmark'))return;const _0x4e4a99=_0x724b6e['getAttribute']('bookmarkId');if('insertion'==_0x13de5f['type'])return{'type':'insertion','content':o(_0x36b626,'*Insert:*\x20%0','\x22'+_0x4e4a99+'\x22\x20'+o(_0x36b626,'ELEMENT_BOOKMARK'))};if('deletion'==_0x13de5f['type'])return{'type':'deletion','content':o(_0x36b626,'*Remove:*\x20%0','\x22'+_0x4e4a99+'\x22\x20'+o(_0x36b626,'ELEMENT_BOOKMARK'))};const {data:_0x32adf7}=_0x13de5f;if(!_0x32adf7||'bookmarkId'!=_0x32adf7['key'])return;return{'type':'format','content':o(_0x36b626,'*Set\x20bookmark:*\x20%0','\x22'+_0x32adf7['newValue']+'\x22')};}));}}class J extends _0x3c70aa{['afterInit'](){const _0x27df4b=this['editor'];_0x27df4b['plugins']['has']('CaseChange')&&(_0x27df4b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x27df4b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x27df4b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3c70aa{['afterInit'](){const _0x55ffd9=this['editor'];_0x55ffd9['commands']['get']('ckbox')&&_0x55ffd9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x3c70aa{['afterInit'](){const _0x43de06=this['editor'];if(!_0x43de06['plugins']['has']('CodeBlock'))return;const _0x2d2c01=_0x43de06['plugins']['get']('TrackChangesEditing'),_0x24fe78=_0x43de06['locale'],_0x4fa5e1=_0x43de06['config']['get']('codeBlock')['languages'],_0x6ed662=_0x43de06['commands']['get']('codeBlock');_0x2d2c01['enableCommand']('indentCodeBlock'),_0x2d2c01['enableCommand']('outdentCodeBlock'),_0x2d2c01['enableCommand']('codeBlock',(_0x2a8e27,_0xda2123={})=>{const _0x2c726c=_0x43de06['model'],_0x5c1136=_0x43de06['model']['document']['selection'],_0x116a5c=_0xda2123&&void 0x0!==_0xda2123['forceValue']?_0xda2123['forceValue']:!_0x6ed662['value'];let _0x684b9d;_0xda2123['language']||(_0xda2123['language']=_0x4fa5e1[0x0]['language']),_0x684b9d=_0x116a5c?Array['from'](_0x5c1136['getSelectedBlocks']())['filter'](_0x184e76=>eo(_0x184e76)||function(_0x598b35,_0x3d5111){if(_0x598b35['is']('rootElement')||_0x3d5111['isLimit'](_0x598b35))return!0x1;return _0x3d5111['checkChild'](_0x598b35['parent'],'codeBlock');}(_0x184e76,_0x2c726c['schema'])):Array['from'](_0x5c1136['getSelectedBlocks']())['filter'](_0x549254=>eo(_0x549254));const _0x4db2db=to(_0x684b9d,_0x2c726c);_0x2c726c['change'](()=>{for(const _0x385be0 of _0x4db2db)_0x2d2c01['markBlockFormat'](_0x385be0,{'commandName':'codeBlock','commandParams':[{..._0xda2123,'forceValue':_0x116a5c}],'formatGroupId':'blockName'});});}),(_0x2d2c01['descriptionFactory']['registerElementLabel']('codeBlock',_0x209f2f=>o(_0x24fe78,'ELEMENT_CODE_BLOCK',_0x209f2f)),_0x2d2c01['descriptionFactory']['registerDescriptionCallback'](_0x27895a=>{if('formatBlock'!=_0x27895a['type'])return;const _0x2f0b97=_0x24fe78['t'],{data:_0x4be0d1}=_0x27895a;if(!_0x4be0d1||'codeBlock'!=_0x4be0d1['commandName'])return;const _0x52493a=_0x4be0d1['commandParams'][0x0]['language'],_0x16dcbd=_0x2f0b97(_0x4fa5e1['find'](_0x543c2f=>_0x543c2f['language']===_0x52493a)['label'])['toLowerCase']();return _0x4be0d1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x24fe78,'*Set\x20format:*\x20%0',o(_0x24fe78,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x16dcbd+')')}:{'type':'format','content':o(_0x24fe78,'*Remove\x20format:*\x20%0',o(_0x24fe78,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1b39a1){return'codeBlock'==_0x1b39a1['name'];}class z extends _0x3c70aa{['afterInit'](){const _0x55b6c1=this['editor'];if(!_0x55b6c1['plugins']['has']('CommentsEditing'))return;_0x55b6c1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x383691,_0x16e4ad,_0x4fca01){const _0x9f90e6=[];for(const _0x556b67 of _0x16e4ad['getItems']())_0x556b67['hasAttribute'](_0x383691)&&_0x9f90e6['push'](_0x4fca01['createRangeOn'](_0x556b67));return _0x9f90e6;}function Ne(_0x51bbad,_0x66a6b8,{showActiveMarker:_0x3b0ead=!0x0}={}){const _0x232845=_0x51bbad['plugins']['get']('TrackChangesEditing');return(_0x3ba3cf,_0x3d8f11,_0x225595)=>{if(!_0x225595['consumable']['test'](_0x3d8f11['markerRange'],_0x3ba3cf['name']))return;const _0x530fa4=_0x3d8f11['markerRange']['getWalker'](),_0x192e60=_0x3d8f11['markerRange']['start'],_0x3b3934=_0x51bbad['model']['schema'];let _0x3afb6b=null,_0x4a839b=null,_0x4ea640=!0x1,_0x1bf96a=!0x1;for(const _0x3a245e of _0x530fa4){const _0x138bd0=_0x3a245e['item'];_0x4ea640=_0x4ea640||_0x3b3934['isContent'](_0x138bd0);const _0x8854ab=_0x225595['mapper']['toViewElement'](_0x138bd0);if(_0x8854ab&&_0x8854ab['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3a245e['type']&&(_0x3b3934['isBlock'](_0x138bd0)&&!_0x3b3934['isLimit'](_0x138bd0)&&(_0x138bd0['nextSibling']||_0x192e60['isAtEnd']?_0x3afb6b&&_0x3afb6b['parent']==_0x138bd0||(_0x3afb6b=_0x138bd0,_0x5eb6da(_0x3a245e['previousPosition']),_0x1bf96a=!0x0):_0x4a839b=_0x4a839b||_0x3a245e['previousPosition']));}function _0x5eb6da(_0xe7dc80){const {authorId:_0x44a894}=_0x232845['_splitMarkerName'](_0x3d8f11['markerName']),_0x236e64=_0x225595['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x66a6b8,'data-author-id':_0x44a894}),_0xe72774=_0x225595['mapper']['toViewPosition'](_0xe7dc80);_0x3b0ead&&_0x232845['activeMarkers']['includes'](_0x3d8f11['markerName'])&&_0x225595['writer']['addClass']('ck-suggestion-marker--active',_0x236e64),_0x225595['writer']['insert'](_0xe72774,_0x236e64),_0x225595['mapper']['bindElementToMarker'](_0x236e64,_0x3d8f11['markerName']);}_0x4ea640||_0x1bf96a||!_0x4a839b||_0x5eb6da(_0x4a839b);};}class K extends _0x3c70aa{static get['requires'](){return[_0x1f0ed5];}['init'](){const _0xe9b941=this['editor'],_0xf05007=_0xe9b941['plugins']['get']('TrackChangesEditing');_0xf05007['enableCommand']('delete');const _0x1dced9=_0xe9b941['commands']['get']('deleteForward');_0xf05007['enableCommand']('deleteForward',(_0xb84170,_0x23062c={})=>{const _0x27392b=_0xe9b941['model']['createSelection'](_0xe9b941['model']['document']['selection']);_0x27392b['isCollapsed']&&_0xe9b941['model']['modifySelection'](_0x27392b,{'direction':'forward','unit':_0x23062c['unit']});const _0x2642f6=_0x27392b['getFirstRange'](),_0x188241=_0x4fb46f['fromRange'](_0x2642f6);let _0x1fc517;_0xb84170(_0x23062c),_0x1fc517='$graveyard'==_0x188241['root']['rootName']?_0xe9b941['model']['createRange'](_0x2642f6['start']):_0xe9b941['model']['createRange'](_0x188241['start'],_0x188241['end']),_0x188241['detach'](),_0xe9b941['model']['enqueueChange'](_0x1dced9['buffer']['batch'],_0x4d14c2=>{_0x1dced9['buffer']['lock'](),_0x4d14c2['setSelection'](_0x4d14c2['createRange'](_0x1fc517['end'])),_0x1dced9['buffer']['unlock']();});}),_0xe9b941['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0xe9b941,'merge'),{'priority':'high'}),_0xe9b941['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x30bd00,_0x223e90,_0x105287)=>{_0x105287['options']['showSuggestionHighlights']&&Ne(_0xe9b941,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x30bd00,_0x223e90,_0x105287);},{'priority':'high'}),_0xe9b941['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1b2433,_0x17d898,_0x17304c)=>{const _0x4ea00d=_0x17304c['mapper']['markerNameToElements'](_0x17d898['markerName']);if(_0x4ea00d){for(const _0x4902a9 of _0x4ea00d)_0x4902a9['is']('uiElement')&&(_0x17304c['mapper']['unbindElementFromMarkerName'](_0x4902a9,_0x17d898['markerName']),_0x17304c['writer']['remove'](_0x4902a9));}},{'priority':'high'});}}class W extends _0x3c70aa{['afterInit'](){const _0x3a0cc7=this['editor'];if(!_0x3a0cc7['plugins']['has']('ListEditing'))return;const _0x5decee=_0x3a0cc7['locale'],_0x4aff1b=_0x3a0cc7['plugins']['get']('TrackChangesEditing'),_0x5e2b6b=_0x3a0cc7['plugins']['has']('TodoListEditing'),_0x3895a2=!!_0x3a0cc7['config']['get']('list.multiBlock');function _0x151e57(_0x42336f){return{'type':'format','content':''+o(_0x5decee,'*Set\x20format:*\x20%0',_0x42336f)};}function _0x3bec3a(_0x3064c9){return{'type':'format','content':''+o(_0x5decee,'*Remove\x20format:*\x20%0',_0x3064c9)};}_0x4aff1b['enableDefaultAttributesIntegration']('numberedList'),_0x4aff1b['enableDefaultAttributesIntegration']('bulletedList'),_0x4aff1b['enableDefaultAttributesIntegration']('customNumberedList'),_0x4aff1b['enableDefaultAttributesIntegration']('customBulletedList'),_0x4aff1b['enableDefaultAttributesIntegration']('indentList'),_0x4aff1b['enableDefaultAttributesIntegration']('outdentList'),_0x4aff1b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4aff1b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4aff1b['registerBlockAttribute']('listItemId'),_0x4aff1b['registerBlockAttribute']('listType'),_0x4aff1b['registerBlockAttribute']('listIndent'),_0x3895a2&&(_0x4aff1b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4aff1b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5e2b6b&&(_0x4aff1b['enableDefaultAttributesIntegration']('todoList'),_0x4aff1b['enableDefaultAttributesIntegration']('checkTodoList'),_0x4aff1b['registerBlockAttribute']('todoListChecked'),_0x4aff1b['descriptionFactory']['registerDescriptionCallback'](_0x31a5ca=>{const {data:_0x4b0e4e}=_0x31a5ca;if(_0x4b0e4e&&'todoListChecked'==_0x4b0e4e['key'])return{'type':'format','content':_0x4b0e4e['newValue']?o(_0x5decee,'*Check\x20item*'):o(_0x5decee,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x54aba5=>{if(_0x54aba5['batch']['isUndo'])return!0x1;let _0x4a4c83=!0x1;const _0x1f0d06=_0x4aff1b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9c58ee=>'todoListChecked'===_0x4aff1b['_getAttributeKey'](_0x9c58ee));for(const _0x2e9df4 of _0x1f0d06){'todo'!=_0x2e9df4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4aff1b['_findSuggestions'](_0x2e9df4['getFirstRange'](),'attribute')['find'](_0x5991d3=>'listType'===_0x4aff1b['_getAttributeKey'](_0x5991d3['suggestion']))||(_0x54aba5['removeMarker'](_0x2e9df4['getFirstMarker']()),_0x4a4c83=!0x0));}return _0x4a4c83;})),_0x4aff1b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5decee,'FORMAT_INDENT'));const _0x528de4={'type':'format','content':''};_0x4aff1b['descriptionFactory']['registerDescriptionCallback'](_0x397b8c=>{const {data:_0x5ddae6}=_0x397b8c;if(!_0x5ddae6||'listType'!=_0x5ddae6['key'])return;let _0x3366cb=_0x397b8c['head'];for(;_0x3366cb;){if(_0x3366cb['data']&&(('listStyle'==_0x3366cb['data']['key']||'listMarkerStyle'==_0x3366cb['data']['key'])&&(_0x3366cb['data']['newValue']&&'default'!=_0x3366cb['data']['newValue']||'default'!=_0x3366cb['data']['oldValue']&&!_0x5ddae6['newValue'])||!_0x3895a2&&_0x3366cb['data']['key']==m))return _0x528de4;_0x3366cb=_0x3366cb['next'];}if(null==_0x5ddae6['newValue'])switch(_0x5ddae6['oldValue']){case'bulleted':return _0x3bec3a(o(_0x5decee,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3bec3a(o(_0x5decee,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3bec3a(o(_0x5decee,'ELEMENT_TODO_LIST'));}switch(_0x5ddae6['newValue']){case'bulleted':return _0x151e57(o(_0x5decee,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x151e57(o(_0x5decee,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x151e57(o(_0x5decee,'ELEMENT_TODO_LIST'));}}),_0x4aff1b['descriptionFactory']['registerDescriptionCallback'](_0x4dafe4=>{const {data:_0x451cb6}=_0x4dafe4;if(_0x451cb6&&'listIndent'==_0x451cb6['key'])return null==_0x451cb6['newValue']||null==_0x451cb6['oldValue']&&0x0==_0x451cb6['newValue']?_0x528de4:void 0x0;}),_0x4aff1b['descriptionFactory']['registerDescriptionCallback'](_0x5ae368=>{if('attribute'!=_0x5ae368['type'])return;const {data:_0x2fb236}=_0x5ae368;if(!_0x2fb236||'listItemId'!=_0x2fb236['key'])return;const _0x12804f=Te(_0x5ae368);return'newValue'==_0x12804f?{'type':'format','content':o(_0x5decee,'*Merge:*\x20list\x20item')}:'oldValue'==_0x12804f?{'type':'format','content':o(_0x5decee,'*Split:*\x20list\x20item')}:_0x528de4;}),_0x3a0cc7['model']['document']['registerPostFixer'](_0x3c3db4=>this['listItemIdFixer'](_0x3c3db4)),_0x3a0cc7['model']['document']['registerPostFixer'](_0x4f068c=>this['noTrackChangesFixer'](_0x4f068c)),_0x3a0cc7['model']['document']['on']('change:data',(_0x3dbc58,_0x5d252b)=>{if(_0x5d252b['isUndo']||!_0x5d252b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x19b12b){if(_0x19b12b['batch']['isUndo']||!_0x19b12b['batch']['isLocal'])return!0x1;let _0x3207b4=!0x1;const _0x272f53=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x73d4d5=>_0x73d4d5['data']&&'listItemId'==_0x73d4d5['data']['key'])['filter'](_0x39edbc=>_0x39edbc['data']['newValue']&&_0x39edbc['data']['oldValue']);for(const _0x2a76ca of _0x272f53)Te(_0x2a76ca)||(_0x19b12b['removeMarker'](_0x2a76ca['getFirstMarker']()),_0x3207b4=!0x0);return _0x3207b4;}['noTrackChangesFixer'](_0x47ab91){if(_0x47ab91['batch']['isUndo']||!_0x47ab91['batch']['isLocal'])return!0x1;const _0x2d3df8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2d3df8['trackChangesCommand']['value'])return!0x1;let _0x3c910a=!0x1;const _0x30b1f6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x15c6ad=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3ba784=>'attribute'==_0x3ba784['type'])['filter'](_0x134c5b=>_0x30b1f6['includes'](_0x134c5b['attributeKey']));if(0x0==_0x15c6ad['length'])return _0x3c910a;for(const _0x2894e2 of _0x15c6ad){const _0x1bd334=_0x2d3df8['_findSuggestions'](_0x2894e2['range'],'attribute')['filter'](_0x53b994=>!_0x53b994['meta']['isNextTo'])['map'](_0x489006=>_0x489006['suggestion'])['filter'](_0x1c2ecb=>{const _0x4c6334=_0x2d3df8['_getAttributeKey'](_0x1c2ecb);return _0x30b1f6['includes'](_0x4c6334);});if(_0x1bd334['length']){for(const _0x4e86d3 of _0x1bd334)_0x47ab91['removeMarker'](_0x4e86d3['getFirstMarker']());_0x3c910a=!0x0;}}return _0x3c910a;}['assureChains'](){const _0x441b59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29c2cd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x23ce61;const _0x516b4c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5d3bb7=>{if(_0x5d3bb7['data']['oldRange']||!_0x5d3bb7['data']['newRange'])return null;if(!_0x5d3bb7['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x35a889}=_0x441b59['_splitMarkerName'](_0x5d3bb7['name']);if(!_0x441b59['hasSuggestion'](_0x35a889))return null;const _0x1ece02=_0x441b59['getSuggestion'](_0x35a889);return _0x29c2cd['includes'](_0x1ece02['data']['key']);})['map'](_0x39572d=>{const {id:_0x1a7727}=_0x441b59['_splitMarkerName'](_0x39572d['name']),_0x1d3907=_0x441b59['getSuggestion'](_0x1a7727);return _0x23ce61=_0x1d3907['attributes']['groupId'],_0x1d3907['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x516b4c['size'])return;const _0x14c699=_0x441b59['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14671f=>'attribute'==_0x14671f['type']&&_0x14671f['data']&&_0x29c2cd['includes'](_0x14671f['data']['key'])&&_0x14671f['attributes']['groupId']!=_0x23ce61)['map'](_0x184316=>({'listItem':_0x184316['getFirstRange']()['start']['nodeAfter'],'groupId':_0x184316['attributes']['groupId']})),_0x2cf358=new Set();for(const {groupId:_0x2e04d4,listItem:_0x5f21a4}of _0x14c699)_0x516b4c['has'](_0x5f21a4)&&_0x2cf358['add'](_0x2e04d4);for(const _0x304f71 of _0x441b59['getSuggestions']())_0x2cf358['has'](_0x304f71['attributes']['groupId'])&&_0x304f71['setAttribute']('groupId',_0x23ce61);}['_supportLegacySuggestions'](){const _0x37a077=this['editor'],_0x3f0bf0=_0x37a077['locale'],_0x56f1d6=_0x37a077['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x56f1d6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4d62ad,_0x101fc2){const _0x174362=[];for(let _0x201118 of _0x4d62ad)_0x201118['start']['nodeAfter']===_0x201118['end']['parent']&&(_0x201118=_0x37a077['model']['createRange'](_0x37a077['model']['createPositionAt'](_0x201118['start']['nodeAfter'],0x0))),_0x174362['push'](_0x201118);_0x37a077['model']['change'](_0x388c79=>{const _0x200819=_0x37a077['model']['document']['selection'],_0x5593db=Array['from'](_0x200819['getRanges']())['map'](_0x14386b=>_0x4fb46f['fromRange'](_0x14386b));_0x388c79['setSelection'](_0x174362),_0x37a077['commands']['get'](_0x101fc2['commandName'])['refresh'](),_0x101fc2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x37a077['execute'](_0x101fc2['commandName'],..._0x101fc2['commandParams']),_0x388c79['setSelection'](_0x5593db);for(const _0x393705 of _0x5593db)_0x393705['detach']();});}),_0x56f1d6['descriptionFactory']['registerElementLabel'](function(_0x21241f){const _0x3cfafd=!_0x37a077['model']['schema']['isObject'](_0x21241f),_0x13eee6=_0x21241f['previousSibling'],_0x41f8ec=_0x21241f['nextSibling'],_0x1bb3b4=_0x21241f['getAttribute']('listItemId'),_0x2fcdd9=!_0x13eee6||_0x13eee6['getAttribute']('listItemId')!==_0x1bb3b4,_0x35d54b=!_0x41f8ec||_0x41f8ec['getAttribute']('listItemId')!==_0x1bb3b4;return _0x3cfafd&&Boolean(_0x1bb3b4)&&_0x2fcdd9&&_0x35d54b;},_0x23d4ab=>o(_0x3f0bf0,'ELEMENT_LIST_ITEM',_0x23d4ab));}['_registerLegacyDescription'](){const _0x51f061=this['editor'],_0x4a98e2=_0x51f061['locale'];function _0x330149(_0x1c9e86){const _0x3274cc=_0x51f061['commands']['get']('bulletedList')['value'],_0x559d1d=_0x51f061['commands']['get']('numberedList')['value'];return'numberedList'===_0x1c9e86?_0x3274cc:_0x559d1d;}_0x51f061['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4d1963){if('formatBlock'!=_0x4d1963['type'])return;const {data:_0x1e1b7e}=_0x4d1963;if(!_0x1e1b7e)return;let _0x4667fb,_0x21e83c,_0xc403fb,_0x13953b;switch(_0x1e1b7e['commandName']){case'bulletedList':_0xc403fb=_0x1e1b7e['commandParams'][0x0]['forceValue'],_0x13953b=_0x330149(_0x1e1b7e['commandName']),_0x4667fb=_0xc403fb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x13953b&&_0x51f061['config']['get']('list.multiBlock')||(_0x4667fb='*Change\x20to:*\x20%0'),_0x21e83c={'type':'format','content':o(_0x4a98e2,_0x4667fb,o(_0x4a98e2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xc403fb=_0x1e1b7e['commandParams'][0x0]['forceValue'],_0x13953b=_0x330149(_0x1e1b7e['commandName']),_0x4667fb=_0xc403fb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x13953b&&_0x51f061['config']['get']('list.multiBlock')||(_0x4667fb='*Change\x20to:*\x20%0'),_0x21e83c={'type':'format','content':o(_0x4a98e2,_0x4667fb,o(_0x4a98e2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4667fb='*Indent:*\x20%0',_0x21e83c={'type':'format','content':o(_0x4a98e2,_0x4667fb,o(_0x4a98e2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4667fb=function(_0x1e8ec6){const _0x11e8a7=_0x1e8ec6['getFirstRange']();let _0x407957=_0x11e8a7['start']['nodeAfter'];for(;_0x407957&&_0x11e8a7['containsItem'](_0x407957);){if(_0x407957['getAttribute']('listIndent')>0x0)return!0x1;_0x407957=_0x407957['nextSibling'];}return!0x0;}(_0x4d1963)?o(_0x4a98e2,'*Format:*\x20remove\x20from\x20%0',o(_0x4a98e2,function(_0x1836d8){return'ELEMENT_'+_0x1836d8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4d1963))):o(_0x4a98e2,'*Outdent:*\x20%0',o(_0x4a98e2,'ELEMENT_LIST_ITEM')),_0x21e83c={'type':'format','content':_0x4667fb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1e1b7e['multipleBlocks']&&(_0x4667fb='*Merge:*\x20%0',_0x21e83c={'type':'deletion','content':o(_0x4a98e2,_0x4667fb,o(_0x4a98e2,'ELEMENT_LIST_ITEM'))});}return _0x21e83c;});}}function Te(_0x5e0a63){let _0x2823ac=_0x5e0a63['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2823ac;){const _0x483193=_0x2823ac['getAttribute']('listItemId');if(!_0x483193)return!0x1;if(_0x483193==_0x5e0a63['data']['newValue'])return'newValue';if(_0x483193==_0x5e0a63['data']['oldValue'])return'oldValue';_0x2823ac=_0x2823ac['previousSibling'];}return!0x1;}class ye extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x249199=this['editor']['config']['get']('list.properties'),_0xc6988f=this['editor']['plugins']['get']('TrackChangesEditing');_0x249199['styles']&&(_0xc6988f['enableDefaultAttributesIntegration']('listStyle'),_0xc6988f['registerBlockAttribute']('listStyle')),_0x249199['reversed']&&(_0xc6988f['enableDefaultAttributesIntegration']('listReversed'),_0xc6988f['registerBlockAttribute']('listReversed')),_0x249199['startIndex']&&(_0xc6988f['enableDefaultAttributesIntegration']('listStart'),_0xc6988f['registerBlockAttribute']('listStart'));const _0x3ac9d8={'type':'format','content':''};_0xc6988f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x29b88c=this['editor']['locale'];_0xc6988f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x29b88c,'FORMAT_LIST_REVERSED')),_0xc6988f['descriptionFactory']['registerDescriptionCallback'](_0x214e33=>{const {data:_0x1aec18}=_0x214e33;if(_0x1aec18&&'listReversed'==_0x1aec18['key'])return null==_0x1aec18['newValue']||0x0==_0x1aec18['newValue']&&null==_0x1aec18['oldValue']?_0x3ac9d8:void 0x0;}),_0xc6988f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x29b88c,'FORMAT_LIST_START')),_0xc6988f['descriptionFactory']['registerDescriptionCallback'](_0x369a62=>{const {data:_0x5d6d90}=_0x369a62;if(_0x5d6d90&&'listStart'==_0x5d6d90['key'])return null==_0x5d6d90['newValue']||0x1==_0x5d6d90['newValue']&&null==_0x5d6d90['oldValue']?_0x3ac9d8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1daa21=>{if(_0x1daa21['batch']['isUndo'])return!0x1;let _0x56e1ed=!0x1;const _0x1ea193=_0xc6988f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x258225=>{const _0x380d55=_0xc6988f['_getAttributeKey'](_0x258225);return'listStart'==_0x380d55||'listReversed'==_0x380d55;});for(const _0xe3c253 of _0x1ea193){const _0x225f1e=_0xe3c253['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x225f1e||'customNumbered'==_0x225f1e)continue;_0xc6988f['_findSuggestions'](_0xe3c253['getFirstRange'](),'attribute')['find'](_0x1221cd=>'listType'==_0xc6988f['_getAttributeKey'](_0x1221cd['suggestion']))||(_0x1daa21['removeMarker'](_0xe3c253['getFirstMarker']()),_0x56e1ed=!0x0);}return _0x56e1ed;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1c81ba){const _0x2fc56d=this['editor']['locale'],{data:_0xd0cb7d}=_0x1c81ba,_0x473f8b={'type':'format','content':''};if(!_0xd0cb7d||'listStyle'!=_0xd0cb7d['key'])return;if(!_0xd0cb7d['oldValue'])return'default'==_0xd0cb7d['newValue']?_0x473f8b:{'type':'format','content':''+o(_0x2fc56d,'*Set\x20format:*\x20%0',o(_0x2fc56d,this['_getTranslationKeyForListStyle'](_0xd0cb7d['newValue'])))};if(!_0xd0cb7d['newValue']){if('default'==_0xd0cb7d['oldValue'])return _0x473f8b;let _0x2f59d6=_0x1c81ba['head'];for(;_0x2f59d6;){if(_0x2f59d6['data']&&'listType'==_0x2f59d6['data']['key']&&_0x2f59d6['data']['newValue'])return _0x473f8b;_0x2f59d6=_0x2f59d6['next'];}return{'type':'format','content':''+o(_0x2fc56d,'*Remove\x20format:*\x20%0',o(_0x2fc56d,this['_getTranslationKeyForListStyle'](_0xd0cb7d['oldValue'])))};}if('default'!=_0xd0cb7d['newValue'])return{'type':'format','content':''+o(_0x2fc56d,'*Set\x20format:*\x20%0',o(_0x2fc56d,this['_getTranslationKeyForListStyle'](_0xd0cb7d['newValue'])))};let _0x4cb0ce=_0x1c81ba['head'];for(;_0x4cb0ce;){if(_0x4cb0ce['data']&&'listType'==_0x4cb0ce['data']['key']&&_0x4cb0ce['data']['newValue']&&_0x4cb0ce['data']['oldValue'])return _0x473f8b;_0x4cb0ce=_0x4cb0ce['next'];}return{'type':'format','content':o(_0x2fc56d,'*Set\x20format:*\x20%0',o(_0x2fc56d,'ELEMENT_'+_0x1c81ba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x307e80=this['editor'],_0x5400d1=_0x307e80['locale'];_0x307e80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ea13a=>{if('formatBlock'!=_0x5ea13a['type'])return;const {data:_0x1efaf7}=_0x5ea13a;if(!_0x1efaf7)return;let _0x238cb2,_0x5c2d7e;switch(_0x1efaf7['commandName']){case'listStyle':_0x238cb2='*Change\x20to:*\x20%0',_0x5c2d7e={'type':'format','content':o(_0x5400d1,_0x238cb2,o(_0x5400d1,this['_getTranslationKeyForListStyle'](_0x1efaf7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x238cb2=_0x1efaf7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5c2d7e={'type':'format','content':o(_0x5400d1,_0x238cb2)};break;case'listStart':_0x238cb2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c2d7e={'type':'format','content':o(_0x5400d1,_0x238cb2,_0x1efaf7['commandParams'][0x0]['startIndex'])};}return _0x5c2d7e;});}['_getTranslationKeyForListStyle'](_0x34eb78){return'ELEMENT_'+function(_0x1a95e1){if(Se['includes'](_0x1a95e1))return'bulleted';if(_e['includes'](_0x1a95e1))return'numbered';return null;}(_0x34eb78)['toUpperCase']()+'_LIST_'+_0x34eb78['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3c70aa{static get['requires'](){return[_0x491ab7];}['init'](){const _0x53c48c=this['editor'],_0x43d78c=_0x53c48c['plugins']['get']('TrackChangesEditing'),_0x586369=_0x53c48c['commands']['get']('enter');_0x43d78c['enableCommand']('enter',()=>{_0x53c48c['model']['change'](_0x543d0b=>{const _0x154f24=_0x53c48c['model']['document']['selection'],_0x3a3a8e=_0x154f24['getFirstPosition'](),_0x2369c8=_0x4fb46f['fromRange'](_0x154f24['getFirstRange']());if(_0x586369['enterBlock'](_0x543d0b)){const _0xa60dec=_0x53c48c['model']['createPositionAt'](_0x3a3a8e['parent']['nextSibling'],0x0),_0x34b539=_0x543d0b['createRange'](_0x3a3a8e,_0xa60dec);_0x43d78c['markInsertion'](_0x34b539);}else _0x543d0b['setSelection'](_0x543d0b['createRange'](_0x2369c8['end']));_0x2369c8['detach'](),_0x586369['fire']('afterExecute',{'writer':_0x543d0b});});}),_0x53c48c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x53c48c,'split'),{'priority':'high'}),_0x53c48c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xbb108b,_0x3e4911,_0x361f16)=>{const _0xa128a5=_0x361f16['mapper']['markerNameToElements'](_0x3e4911['markerName']);if(_0xa128a5){for(const _0x5b771c of _0xa128a5)_0x5b771c['hasClass']('ck-suggestion-marker-split')&&(_0x361f16['mapper']['unbindElementFromMarkerName'](_0x5b771c,_0x3e4911['markerName']),_0x361f16['writer']['remove'](_0x5b771c));}},{'priority':'high'}),_0x53c48c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x54300d,_0x1ddf0e,_0x4093ea)=>{_0x4093ea['options']['showSuggestionHighlights']&&Ne(_0x53c48c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x54300d,_0x1ddf0e,_0x4093ea);},{'priority':'high'});}}class Y extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1faeea=this['editor']['plugins']['get']('TrackChangesEditing');_0x1faeea['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1faeea['enableCommand']('findNext'),_0x1faeea['enableCommand']('findPrevious'),_0x1faeea['enableCommand']('replace'),_0x1faeea['enableCommand']('replaceAll');}['handleFindCommand'](_0x389923,_0x46cadb,_0x3e734e={}){const _0x5928f2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x389923(_0xc04054=>{let _0x3cac76=('string'==typeof _0x46cadb?_0x5928f2['findByTextCallback'](_0x46cadb,_0x3e734e):_0x46cadb)(_0xc04054);Array['isArray'](_0x3cac76)&&(_0x3cac76={'results':_0x3cac76,'searchText':'string'==typeof _0x46cadb?_0x46cadb:''});const _0x5ead84=_0x3cac76['results']['filter'](_0x1a6ca9=>!0x1===this['_isInDeletionRange'](_0x1a6ca9,_0xc04054['item']));return{..._0x3cac76,'results':_0x5ead84};},_0x3e734e);}['_isInDeletionRange'](_0x7c0edf,_0x94dc56){const _0x1e62a1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x94dc56,_0x7c0edf['start']),this['editor']['model']['createPositionAt'](_0x94dc56,_0x7c0edf['end']));for(const _0x150c52 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1e62a1['getIntersection'](_0x150c52['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 _0x3c70aa{['afterInit'](){const _0xffa734=this['editor']['locale'],_0x73ad3d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x21b96a,commandName:_0x28158b}of ro)this['editor']['plugins']['has'](_0x21b96a)&&(_0x73ad3d['enableDefaultAttributesIntegration'](_0x28158b),_0x73ad3d['registerInlineAttribute'](_0x28158b));_0x73ad3d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xffa734,'FORMAT_FONT_SIZE')),_0x73ad3d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xffa734,'FORMAT_FONT_FAMILY')),_0x73ad3d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xffa734,'FORMAT_FONT_COLOR')),_0x73ad3d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xffa734,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7edb9f=this['editor'],_0x318a6c=_0x7edb9f['locale'];_0x7edb9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x432db7=>{const _0x3c49c4=_0x318a6c['t'];if('formatInline'!=_0x432db7['type'])return;const {data:_0x5bc5d1}=_0x432db7;if(null!=_0x5bc5d1){if('fontSize'==_0x5bc5d1['commandName']){const _0x1d7a2c=_0x5bc5d1['commandParams'][0x0]['value'];if(_0x1d7a2c){const _0x22cd36=_0x3c49c4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xde177c=>_0xde177c['model']==_0x1d7a2c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x318a6c,'*Set\x20font\x20size:*\x20%0',_0x22cd36)};}return{'type':'format','content':o(_0x318a6c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5bc5d1['commandName']){const _0x1b06c2=_0x5bc5d1['commandParams'][0x0]['value'];return _0x1b06c2?{'type':'format','content':o(_0x318a6c,'*Set\x20font\x20family:*\x20%0',_0x1b06c2)}:{'type':'format','content':o(_0x318a6c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5bc5d1['commandName']){const _0x2ad3a3=_0x5bc5d1['commandParams'][0x0]['value'];if(_0x2ad3a3){const _0x1c181f=_0x17ec29(this['editor']['config']['get']('fontColor.colors'))['find'](_0x516ba8=>_0x516ba8['model']==_0x2ad3a3);let _0x53e116=_0x2ad3a3,_0x5c5f8e='';return _0x1c181f&&(_0x53e116=_0x1c181f['label'],_0x5c5f8e=_0x3c49c4(_0x53e116)['toLowerCase']()),{'type':'format','content':o(_0x318a6c,'*Set\x20font\x20color:*\x20%0',_0x5c5f8e)['trim'](),'color':{'value':_0x2ad3a3,'title':_0x5c5f8e||_0x53e116}};}return{'type':'format','content':o(_0x318a6c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5bc5d1['commandName']){const _0xdcceb1=_0x5bc5d1['commandParams'][0x0]['value'];if(_0xdcceb1){const _0x3cda2a=_0x17ec29(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5b5029=>_0x5b5029['model']==_0xdcceb1);let _0x3dd2e6=_0xdcceb1,_0x4eb809='';return _0x3cda2a&&(_0x3dd2e6=_0x3cda2a['label'],_0x4eb809=_0x3c49c4(_0x3dd2e6)['toLowerCase']()),{'type':'format','content':o(_0x318a6c,'*Set\x20font\x20background\x20color:*\x20%0',_0x4eb809)['trim'](),'color':{'value':_0xdcceb1,'title':_0x4eb809||_0x3dd2e6}};}return{'type':'format','content':o(_0x318a6c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x3c70aa{['afterInit'](){const _0x4f43fd=this['editor'],_0x2acf33=_0x4f43fd['plugins']['get']('TrackChangesEditing'),_0x5b6033=_0x4f43fd['commands']['get']('copyFormat'),_0x111d36=_0x4f43fd['commands']['get']('pasteFormat');_0x5b6033&&_0x111d36&&(_0x2acf33['enableDefaultAttributesIntegration']('pasteFormat'),_0x2acf33['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x51979a=this['editor'],_0x89168e=_0x51979a['locale'];_0x51979a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x597acb=>{if('formatBlock'!=_0x597acb['type']&&'formatInline'!=_0x597acb['type'])return;const {data:_0x3c4f8b}=_0x597acb;if(_0x3c4f8b&&'pasteFormat'===_0x3c4f8b['commandName']){const _0x4b7000=[],_0x2c8198=_0x3c4f8b['commandParams'][0x0];for(const [_0xfe22aa,_0x32a4c5]of Object['entries'](_0x2c8198))_0x4b7000['push'](so(_0x51979a,_0xfe22aa,_0x32a4c5));return _0x4b7000['length']?{'type':'format','content':o(_0x89168e,'*Set\x20format\x20to:*\x20%0',_0x4b7000['join'](',\x20'))}:{'type':'format','content':o(_0x89168e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x36642e,_0x4473f2,_0xa6a28){const _0x16651f=_0x36642e['locale']['t'],_0x5913d8=_0x4473f2['split'](/(?=[A-Z])/)['join']('\x20'),_0x5041b4=_0x16651f(_0x5913d8['charAt'](0x0)['toUpperCase']()+_0x5913d8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xa6a28)return _0x5041b4;if('fontColor'===_0x4473f2||'fontBackgroundColor'===_0x4473f2){const _0x449641=_0x17ec29(_0x36642e['config']['get']('fontColor.colors'))['find'](_0x219967=>_0x219967['model']==_0xa6a28);return _0x5041b4+'\x20('+(_0x449641?_0x16651f(_0x449641['label'])['toLowerCase']():_0xa6a28)+')';}if('fontSize'===_0x4473f2&&isNaN(parseFloat(_0xa6a28))){const _0x4f6119=_0x36642e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x36642e['config']['get']('fontSize.options'))['find'](_0x7a870=>_0x7a870['model']==_0xa6a28);return _0x5041b4+'\x20('+(_0x4f6119?_0x16651f(_0x4f6119['title'])['toLowerCase']():_0xa6a28)+')';}return _0x5041b4+'\x20('+_0xa6a28+')';}class nt extends _0x3c70aa{['_headingOptions'];['afterInit'](){const _0xd0f93a=this['editor'];if(!_0xd0f93a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xd0f93a['config']['get']('heading.options');const _0x1413a9=_0xd0f93a['locale'],_0x906c13=_0xd0f93a['plugins']['get']('TrackChangesEditing');_0x906c13['enableDefaultAttributesIntegration']('heading');for(const _0x52e5af of this['_headingOptions'])'paragraph'!=_0x52e5af['model']&&_0x906c13['descriptionFactory']['registerElementLabel'](_0x52e5af['model'],_0x10d64c=>{const _0x1032c8=this['_getHeadingLevel'](_0x52e5af['model']);return null!==_0x1032c8?_0x225c00(_0x10d64c,_0x1032c8):_0x3e5c4b(_0x10d64c,_0x52e5af['title']);});function _0x225c00(_0x30ef52,_0x469048){return o(_0x1413a9,'ELEMENT_HEADING',[_0x30ef52,_0x469048]);}function _0x3e5c4b(_0x56c60f,_0x1a0232){return o(_0x1413a9,'ELEMENT_HEADING_CUSTOM',[_0x56c60f,_0x1a0232]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b21e2=this['editor'],_0x5608ee=_0x1b21e2['locale'];function _0x1f7272(_0x5ac7a0,_0x3e7ea2){return o(_0x5608ee,'ELEMENT_HEADING_CUSTOM',[_0x5ac7a0,_0x3e7ea2]);}_0x1b21e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e8aaa=>{if('formatBlock'!=_0x1e8aaa['type'])return;const {data:_0x35ab6c}=_0x1e8aaa;if(_0x35ab6c&&'heading'==_0x35ab6c['commandName']){const _0x5e04e0=_0x35ab6c['commandParams'][0x0]['value'],_0x3f8e05=this['_getHeadingLevel'](_0x5e04e0);if(null!==_0x3f8e05)return{'type':'format','content':o(_0x5608ee,'*Change\x20to:*\x20%0',(_0x14196c=0x1,_0x2e37ae=_0x3f8e05,o(_0x5608ee,'ELEMENT_HEADING',[_0x14196c,_0x2e37ae])))};const _0x87e171=this['_headingOptions']['find'](_0x300f7a=>_0x300f7a['model']===_0x5e04e0)['title'];return{'type':'format','content':o(_0x5608ee,'*Change\x20to:*\x20%0',_0x1f7272(0x1,_0x87e171))};}var _0x14196c,_0x2e37ae;});}['_getHeadingLevel'](_0x19783f){const _0x22c2a9=_0x19783f['match'](/^heading(\d+)/);if(_0x22c2a9)return _0x22c2a9[0x1];const _0x56d279=this['_headingOptions']?.['find'](_0x11a471=>_0x11a471['model']==_0x19783f);if(_0x56d279&&_0x56d279['view']){const _0x64e665=_0x56d279['view'],_0x4199c7=(_0x64e665['name']??_0x64e665)['match'](/^h(\d+)/);if(_0x4199c7)return _0x4199c7[0x1];}return null;}}class it extends _0x3c70aa{['afterInit'](){const _0x4fed66=this['editor'];if(!_0x4fed66['plugins']['has']('HighlightEditing'))return;const _0xe5539=_0x4fed66['plugins']['get']('TrackChangesEditing'),_0x480dd9=_0x4fed66['locale'];_0xe5539['enableDefaultAttributesIntegration']('highlight'),_0xe5539['registerInlineAttribute']('highlight'),_0xe5539['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x480dd9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16968c=this['editor'],_0x1cff72=_0x16968c['locale'];_0x16968c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4782f9=>{if('formatInline'!=_0x4782f9['type'])return;const {data:_0x5a8822}=_0x4782f9;if(_0x5a8822&&'highlight'==_0x5a8822['commandName']){const _0x1a35c1=_0x1cff72['t'],_0x4a8e3e=_0x5a8822['commandParams'][0x0]['value'];if(_0x4a8e3e){const _0x2caa33=_0x16968c['config']['get']('highlight.options')['find'](_0x294154=>_0x294154['model']==_0x4a8e3e),_0x22b8f8=_0x1a35c1(_0x2caa33['title'])['toLowerCase']();return{'type':'format','content':o(_0x1cff72,'*Set\x20highlight:*\x20%0',_0x22b8f8),'color':{'value':_0x2caa33['color'],'title':_0x2caa33['title']}};}return{'type':'format','content':o(_0x1cff72,'*Remove\x20highlight*',o(_0x1cff72,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x3c70aa{['afterInit'](){const _0x3fd665=this['editor'];if(!_0x3fd665['plugins']['has']('HorizontalLineEditing'))return;_0x3fd665['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x203fe6=_0x3fd665['plugins']['get']('TrackChangesEditing'),_0x4228b6=_0x3fd665['locale'];_0x203fe6['descriptionFactory']['registerElementLabel']('horizontalLine',_0x101c15=>o(_0x4228b6,'ELEMENT_HORIZONTAL_LINE',_0x101c15)),_0x3fd665['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4e51c8,{writer:_0x5a74b2,options:_0x4294e4})=>{if(!_0x4294e4['showSuggestionHighlights'])return null;const _0x456b9b=_0x5a74b2['createContainerElement']('div'),_0x436326=_0x5a74b2['createEmptyElement']('hr');return _0x5a74b2['addClass']('ck-horizontal-line',_0x456b9b),_0x5a74b2['insert'](_0x5a74b2['createPositionAt'](_0x456b9b,0x0),_0x436326),_0x456b9b;},'converterPriority':'high'});}}class st extends _0x3c70aa{['afterInit'](){const _0x36b932=this['editor'];if(!_0x36b932['plugins']['has']('HtmlEmbed'))return;const _0x2161a9=_0x36b932['plugins']['get']('TrackChangesEditing'),_0x521bea=_0x36b932['locale'];_0x2161a9['descriptionFactory']['registerElementLabel']('rawHtml',_0x50d5f3=>o(_0x521bea,'ELEMENT_HTML_EMBED',_0x50d5f3)),_0x2161a9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2161a9['registerBlockAttribute']('value'),_0x2161a9['descriptionFactory']['registerDescriptionCallback'](_0x5a2629=>{if('attribute'!=_0x5a2629['type'])return;const {data:_0x4dc3d0}=_0x5a2629;if(_0x4dc3d0&&'value'==_0x4dc3d0['key']&&_0x5a2629['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3cb65b=o(_0x521bea,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x521bea,'*Change\x20%0\x20content*',_0x3cb65b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41e433=this['editor'],_0x4b6a0c=_0x41e433['locale'];_0x41e433['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26b658=>{if('formatBlock'!=_0x26b658['type'])return;const {data:_0x2164f0}=_0x26b658;if(_0x2164f0&&'htmlEmbed'==_0x2164f0['commandName']){const _0x2bd1fd=o(_0x4b6a0c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4b6a0c,'*Change\x20%0\x20content*',_0x2bd1fd)};}});}}class ot extends _0x3c70aa{['afterInit'](){const _0x553302=this['editor'];if(!_0x553302['plugins']['has']('ImageEditing'))return;const _0x133c8b=_0x553302['plugins']['get']('TrackChangesEditing'),_0x583b73=_0x553302['plugins']['get']('ImageUtils'),_0x532004=_0x553302['locale'];_0x133c8b['enableCommand']('insertImage'),_0x133c8b['descriptionFactory']['registerElementLabel']('imageBlock',_0x3500bd=>o(_0x532004,'ELEMENT_IMAGE',_0x3500bd)),_0x133c8b['descriptionFactory']['registerElementLabel']('imageInline',_0x9e456e=>o(_0x532004,'ELEMENT_INLINE_IMAGE',_0x9e456e)),_0x133c8b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x532004,'ELEMENT_CAPTION')),_0x553302['plugins']['has']('ImageUploadEditing')&&_0x133c8b['enableCommand']('uploadImage'),_0x553302['plugins']['has']('ImageBlockEditing')&&_0x553302['plugins']['has']('ImageInlineEditing')&&(_0x133c8b['enableCommand']('imageTypeInline',(_0x5ec528,_0x19c635)=>{const _0x27a91a=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']);_0x553302['model']['change'](()=>{_0x133c8b['markBlockFormat'](_0x27a91a,{'commandName':'imageTypeInline','commandParams':[_0x19c635]},[],'convertBlockImageToInline');});}),_0x133c8b['enableCommand']('imageTypeBlock',(_0x32ea31,_0x50bb79)=>{_0x553302['model']['change'](_0x22b4b7=>{let _0x39b7c1=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']),_0xf1b3a0=_0x22b4b7['createRangeOn'](_0x39b7c1);const _0x2f9c76=_0x4537ad['fromPosition'](_0xf1b3a0['start'],'toPrevious'),_0x5114dc=_0x4537ad['fromPosition'](_0xf1b3a0['end'],'toNext');_0x133c8b['forceDefaultExecution'](()=>_0x32ea31(_0x50bb79)),_0x39b7c1=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']),_0xf1b3a0=_0x22b4b7['createRangeOn'](_0x39b7c1);const _0x244613=_0x22b4b7['createRange'](_0x2f9c76,_0x5114dc);_0x2f9c76['detach'](),_0x5114dc['detach'](),_0x133c8b['markBlockFormat'](_0x39b7c1,{'commandName':'imageTypeInline','commandParams':[_0x50bb79]},[],'convertInlineImageToBlock'),_0x244613['start']['isBefore'](_0xf1b3a0['start'])&&_0x133c8b['markInsertion'](_0x22b4b7['createRange'](_0x244613['start'],_0xf1b3a0['start']),'convertInlineImageToBlock'),_0xf1b3a0['end']['isBefore'](_0x244613['end'])&&_0x133c8b['markInsertion'](_0x22b4b7['createRange'](_0xf1b3a0['end'],_0x244613['end']),'convertInlineImageToBlock');});}),_0x133c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x133c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x133c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x133c8b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x133c8b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x133c8b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x176699])=>{const _0x1507ea=_0x133c8b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3ff8d3=_0x176699['start'],_0x54fb5e=_0x176699['end'];const _0x96306=_0x553302['model']['schema']['getNearestSelectionRange'](_0x3ff8d3,'backward'),_0x11d177=_0x553302['model']['schema']['getNearestSelectionRange'](_0x54fb5e,'forward');_0x96306['isCollapsed']&&(_0x3ff8d3=_0x96306['start']),_0x11d177['isCollapsed']&&(_0x54fb5e=_0x11d177['end']),_0x1507ea([_0x553302['model']['createRange'](_0x3ff8d3,_0x54fb5e)]);}),_0x133c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xd4818),_0x133c8b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xd4818)),_0x553302['plugins']['has']('ImageCaptionEditing')&&(_0x133c8b['enableCommand']('toggleImageCaption',(_0x207e16,_0x3a1c8d)=>{const _0x1713d=_0x553302['plugins']['get']('ImageCaptionUtils');let _0x4e99ba=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']),_0x149626=_0x1713d['getCaptionFromImageModelElement'](_0x4e99ba);_0x553302['model']['change'](()=>{if(_0x149626)return void _0x133c8b['markDeletion'](_0x553302['model']['createRangeOn'](_0x149626));const _0x41c11=_0x583b73['isBlockImage'](_0x4e99ba);_0x207e16(_0x3a1c8d),_0x4e99ba=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']),_0x149626=_0x1713d['getCaptionFromImageModelElement'](_0x4e99ba),_0x133c8b['markInsertion'](_0x553302['model']['createRangeOn'](_0x149626),_0x41c11?null:'imageCaption');});}),_0x133c8b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xd4818));const _0x4e0374=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x967dcd(_0x3c3fad,_0x1a52c6){const _0x2f122d=_0x4e0374['findIndex'](({type:_0x10f3dd,subType:_0x366097})=>_0x3c3fad['type']==_0x10f3dd&&_0x3c3fad['subType']==_0x366097),_0xf33376=_0x4e0374['findIndex'](({type:_0x16956e,subType:_0x51105f})=>_0x1a52c6['type']==_0x16956e&&_0x1a52c6['subType']==_0x51105f);if(_0x2f122d<0x0||_0xf33376<0x0)return!0x1;const _0x23d9e8=_0x3c3fad['getFirstRange'](),_0x26ad35=_0x1a52c6['getFirstRange']();if((0x0==_0x2f122d||0x1==_0x2f122d)&&0x2==_0xf33376&&_0x23d9e8['isIntersecting'](_0x26ad35))return!0x0;if(0x2==_0x2f122d&&0x3==_0xf33376){const _0x516d9b=_0x133c8b['_findSuggestions'](_0x23d9e8,'insertion')['filter'](({suggestion:_0x569ceb,meta:_0x24d317})=>_0x24d317['isOwn']&&'convertInlineImageToBlock'==_0x569ceb['subType']);if(_0x516d9b['length']>0x1&&_0x26ad35['end']['isEqual'](_0x23d9e8['start']))return!0x0;if(0x1==_0x516d9b['length']&&(_0x23d9e8['start']['isEqual'](_0x26ad35['end'])||_0x23d9e8['end']['isEqual'](_0x26ad35['start'])))return!0x0;}if(0x3==_0x2f122d&&0x3==_0xf33376&&_0x23d9e8['start']['isBefore'](_0x26ad35['start'])){const _0x46908e=_0x23d9e8['end']['nodeAfter'],_0x1d8fc8=_0x26ad35['start']['nodeBefore'];return _0x583b73['isBlockImage'](_0x46908e)&&_0x46908e===_0x1d8fc8;}return!0x1;}function _0xd4818(_0x14abc0,_0x559112){return _0x967dcd(_0x14abc0,_0x559112)?[_0x14abc0,_0x559112]:_0x967dcd(_0x559112,_0x14abc0)?[_0x559112,_0x14abc0]:null;}_0x553302['plugins']['has']('ImageResize')&&(_0x133c8b['enableDefaultAttributesIntegration']('resizeImage'),_0x133c8b['registerBlockAttribute']('resizedWidth'),_0x133c8b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x532004,'FORMAT_IMAGE_SIZE'))),_0x553302['plugins']['has']('ImageTextAlternativeEditing')&&(_0x133c8b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x133c8b['registerBlockAttribute']('alt')),_0x133c8b['descriptionFactory']['registerDescriptionCallback'](_0x5422bf=>{if(!!_0x4e0374['find'](({type:_0x41a541,subType:_0x4f40f3})=>_0x5422bf['type']==_0x41a541&&_0x5422bf['subType']==_0x4f40f3))return _0x5422bf['previous']?{}:void 0x0;}),_0x133c8b['descriptionFactory']['registerDescriptionCallback'](_0x50fbe4=>{if('insertion'==_0x50fbe4['type']||'deletion'==_0x50fbe4['type']){const _0x1a8722=_0x50fbe4['getContainedElement']();if(_0x1a8722&&_0x1a8722['is']('element','caption'))return{'type':'insertion'==_0x50fbe4['type']?'addObject':'removeObject','element':_0x1a8722,'quantity':0x1};}}),_0x133c8b['descriptionFactory']['registerDescriptionCallback'](_0x3fe781=>'formatBlock'==_0x3fe781['type']&&'convertInlineImageToBlock'==_0x3fe781['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3fe781['type']&&'convertBlockImageToInline'==_0x3fe781['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x133c8b['descriptionFactory']['registerDescriptionCallback'](_0x3572ee=>{if('attribute'!=_0x3572ee['type'])return;const {data:_0x3905fb}=_0x3572ee;if(!_0x3905fb||'alt'!=_0x3905fb['key'])return;const _0x23848f=_0x3905fb['newValue'];return _0x23848f?{'type':'format','content':o(_0x532004,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x23848f+'\x22')}:{'type':'format','content':o(_0x532004,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe880ef=this['editor'],_0x50b679=_0xe880ef['locale'];_0xe880ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb952f4=>{if('formatBlock'!=_0xb952f4['type']&&'formatInline'!=_0xb952f4['type'])return;const {data:_0x1dac57}=_0xb952f4;if(_0x1dac57){if('imageTextAlternative'==_0x1dac57['commandName']){const _0x7227de=_0x1dac57['commandParams'][0x0]['newValue'];return _0x7227de?{'type':'format','content':o(_0x50b679,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7227de+'\x22')}:{'type':'format','content':o(_0x50b679,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1dac57['commandName']){const _0xe59186=_0x1dac57['commandParams'][0x0]['width'];return _0xe59186?{'type':'format','content':o(_0x50b679,'*Set\x20image\x20width:*\x20%0',_0xe59186)}:{'type':'format','content':o(_0x50b679,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4d83e2=this['editor']['locale'],_0x32caf8=this['editor']['plugins']['get']('TrackChangesEditing');_0x32caf8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x32caf8['registerBlockAttribute']('src'),_0x32caf8['descriptionFactory']['registerDescriptionCallback'](_0x183b3f=>{if('attribute'!=_0x183b3f['type'])return;const {data:_0x140a6}=_0x183b3f;return _0x140a6&&'src'==_0x140a6['key']?_0x140a6['newValue']&&_0x140a6['oldValue']?{'type':'format','content':o(_0x4d83e2,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x593ab8=this['editor']['plugins']['get']('TrackChangesEditing');_0x593ab8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x593ab8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x593ab8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x593ab8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234865=this['editor'],_0x2ef543=_0x234865['locale'];_0x234865['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5058cd=>{if('formatBlock'!=_0x5058cd['type']&&'formatInline'!=_0x5058cd['type'])return;const {data:_0x5bcf6f}=_0x5058cd;if(!_0x5bcf6f||'replaceImageSource'!=_0x5bcf6f['commandName'])return;return{'type':'format','content':o(_0x2ef543,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x3c70aa{['afterInit'](){const _0xd09028=this['editor'];if(!_0xd09028['plugins']['has']('ImageStyleEditing'))return;const _0x6d722d=_0xd09028['plugins']['get']('TrackChangesEditing'),_0x5c98be=_0xd09028['plugins']['get']('ImageUtils'),_0x19da1c={};_0x6d722d['enableCommand']('imageStyle',(_0x20074f,_0x4a6ae6)=>{const _0xcdba03=_0xd09028['plugins']['get']('Users')['me'],_0x23294d=_0xd09028['commands']['get']('imageStyle');let _0x6399ec=_0x5c98be['getClosestSelectedImageElement'](_0xd09028['model']['document']['selection']),_0x3715c5=_0xd09028['model']['createRangeOn'](_0x6399ec),_0x22a9fc=_0x23294d['value'];if(_0x22a9fc==_0x4a6ae6['value'])return;const _0x47625d={'commandName':'imageStyle','commandParams':[_0x4a6ae6],'formatGroupId':_0x1cdff5()};_0xd09028['model']['change'](()=>{if(_0x6d722d['getSuggestions']()['filter'](_0x5a1cd5=>_0x5a1cd5['isInContent']&&_0xcdba03==_0x5a1cd5['author']&&('formatBlock'==_0x5a1cd5['type']||'formatInline'==_0x5a1cd5['type'])&&('imageStylePreApply'==_0x5a1cd5['subType']||'imageStylePostApply'==_0x5a1cd5['subType'])&&_0x5a1cd5['getFirstRange']()['isEqual'](_0x3715c5))['forEach'](_0x2c3011=>_0x6d722d['discardSuggestion'](_0x2c3011['head'])),_0x6399ec=_0x5c98be['getClosestSelectedImageElement'](_0xd09028['model']['document']['selection']),_0x3715c5=_0xd09028['model']['createRangeOn'](_0x6399ec),_0x23294d['refresh'](),_0xd09028['commands']['get']('imageTypeInline')['refresh'](),_0xd09028['commands']['get']('imageTypeBlock')['refresh'](),_0x22a9fc=_0x23294d['value'],_0x22a9fc!=_0x4a6ae6['value'])return _0x5c98be['isInlineImage'](_0x6399ec)&&_0x23294d['shouldConvertImageType'](_0x4a6ae6['value'],_0x6399ec)?(_0x20074f({..._0x4a6ae6,'setImageSizes':!0x1}),_0x6399ec=_0x5c98be['getClosestSelectedImageElement'](_0xd09028['model']['document']['selection']),void _0x6d722d['markBlockFormat'](_0x6399ec,{..._0x47625d,'commandReversedParams':[{'value':_0x22a9fc||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5c98be['isBlockImage'](_0x6399ec)?_0x6d722d['markBlockFormat'](_0x6399ec,_0x47625d,[],'imageStylePostApply'):_0x6d722d['markInlineFormat'](_0x3715c5,_0x47625d,'imageStylePostApply'));});});for(const _0x1c68c3 of _0xd09028['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x19da1c[_0x1c68c3['name']]=_0x1c68c3['title']['toLowerCase']();_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5c5276])=>{_0x5c98be['setImageNaturalSizeAttributes'](_0x5c5276['getContainedElement']());}),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x51d575,_0xe1dbf7)=>{_0x6d722d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x51d575,{'commandName':_0xe1dbf7['commandName'],'commandParams':_0xe1dbf7['commandReversedParams']});}),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4282f8,_0xd064ed){if(_0x4bdd21(_0x4282f8,_0xd064ed))return[_0x4282f8,_0xd064ed];if(_0x4bdd21(_0xd064ed,_0x4282f8))return[_0xd064ed,_0x4282f8];return null;});const _0xc2636d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4bdd21(_0x3c536c,_0x26b3f5){const _0x416459=_0xc2636d['findIndex'](({type:_0x475af1,subType:_0x33d41b})=>_0x3c536c['type']==_0x475af1&&_0x3c536c['subType']==_0x33d41b),_0x33a0d3=_0xc2636d['findIndex'](({type:_0x66f1da,subType:_0x2ebc43})=>_0x26b3f5['type']==_0x66f1da&&_0x26b3f5['subType']==_0x2ebc43);if(_0x416459<0x0||_0x33a0d3<0x0)return!0x1;const _0x32753d=_0x3c536c['getFirstRange'](),_0x23c9f7=_0x26b3f5['getFirstRange']();if((0x0==_0x416459||0x1==_0x416459)&&0x2==_0x33a0d3&&_0x32753d['isIntersecting'](_0x23c9f7))return!0x0;if(0x2==_0x416459&&0x3==_0x33a0d3){const _0x2aa5b9=_0x6d722d['_findSuggestions'](_0x32753d,'insertion')['filter'](({suggestion:_0x435170,meta:_0x36e50e})=>_0x36e50e['isOwn']&&'convertInlineImageToBlock'==_0x435170['subType']);if(_0x2aa5b9['length']>0x1&&_0x23c9f7['end']['isEqual'](_0x32753d['start']))return!0x0;if(0x1==_0x2aa5b9['length']&&(_0x32753d['start']['isEqual'](_0x23c9f7['end'])||_0x32753d['end']['isEqual'](_0x23c9f7['start'])))return!0x0;}if(0x3==_0x416459&&0x3==_0x33a0d3&&_0x32753d['start']['isBefore'](_0x23c9f7['start'])){const _0x232d82=_0x32753d['end']['nodeAfter'],_0x1f5913=_0x23c9f7['start']['nodeBefore'];return _0x5c98be['isBlockImage'](_0x232d82)&&_0x232d82===_0x1f5913;}return!0x1;}_0xd09028['model']['document']['registerPostFixer'](()=>{let _0x1204ea=!0x1;const _0x3b2ef7=Array['from'](_0xd09028['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d9604,data:_0x11d983}of _0x3b2ef7){const {group:_0x3470f8,type:_0x149df7,subType:_0x44632e,id:_0x24e78}=_0x6d722d['_splitMarkerName'](_0x2d9604);if('suggestion'==_0x3470f8&&_0x6d722d['hasSuggestion'](_0x24e78)){if('formatBlock'==_0x149df7&&('imageStylePreApply'==_0x44632e||'imageStylePostApply'==_0x44632e)){const _0x107873=_0x6d722d['getSuggestion'](_0x24e78);if(_0x11d983['newRange']){const _0x3e970b=_0x107873['getFirstRange']()['getContainedElement']();if(_0x5c98be['isBlockImage'](_0x3e970b))continue;_0x6d722d['discardSuggestion'](_0x107873),_0x1204ea=!0x0;}}if('insertion'==_0x149df7&&'imageCaption'==_0x44632e&&!_0x11d983['newRange']){const _0x13fd75=_0x6d722d['getSuggestion'](_0x24e78);_0x13fd75['next']&&_0x13fd75['next']['isInContent']&&(_0x6d722d['discardSuggestion'](_0x13fd75['next']),_0x1204ea=!0x0);}}}return _0x1204ea;}),this['_registerLegacyDescription'](_0x19da1c);}['_registerLegacyDescription'](_0x264e0e){const _0x384fac=this['editor'],_0x2c9645=_0x384fac['locale'];_0x384fac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e0dc5=>{if('formatBlock'!=_0x3e0dc5['type']&&'formatInline'!=_0x3e0dc5['type'])return;const {data:_0x5b39d3}=_0x3e0dc5;if(!_0x5b39d3||'imageStyle'!=_0x5b39d3['commandName'])return;const _0x23476c=_0x5b39d3['commandParams'][0x0]['value'];return _0x4055ea('side'===_0x23476c?o(_0x2c9645,'FORMAT_SIDE_IMAGE'):_0x264e0e[_0x23476c]||_0x23476c);function _0x4055ea(_0x109607){return{'type':'format','content':o(_0x2c9645,'*Format:*\x20%0',_0x109607)};}});}}class ct extends _0x3c70aa{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x17d22c){super(_0x17d22c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x21ae21=this['editor'],_0x171861=_0x21ae21['commands']['get']('importWord'),_0x33aab6=_0x21ae21['commands']['get']('trackChanges');_0x171861&&(_0x171861['on']('execute',(_0x4fa0d1,[,_0x10dcf1])=>{this['_trackChangesValueDuringImport']=_0x33aab6['value'],_0x10dcf1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x171861,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x171861,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x33aab6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x21ae21['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2de807,_0x2f5110){const {suggestions:_0x355026}=_0x2f5110,_0x588ed9=this['editor']['commands']['get']('trackChanges'),_0x33b00c=_0x588ed9['value'];this['_trackChangesValueDuringImport']!==_0x33b00c&&(_0x588ed9['execute'](),this['_trackChangesExecuted']=!0x0),_0x355026&&_0x355026['forEach'](({id:_0x168f32,type:_0x4b04cb,author:_0x7a0603,created_at:_0x4bf89b})=>{const _0x1539f8={'id':_0x168f32,'type':_0x4b04cb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x7a0603,'createdAt':_0x4bf89b?new Date(_0x4bf89b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1539f8);});}}class ut extends _0x3c70aa{['afterInit'](){const _0x93a4df=this['editor'],_0x474551=_0x93a4df['plugins']['get']('TrackChangesEditing');if(_0x93a4df['plugins']['has']('IndentEditing')&&(_0x474551['enableCommand']('indent'),_0x474551['enableCommand']('outdent')),_0x93a4df['plugins']['has']('IndentBlock')){for(const _0x28d215 of['indentBlock','outdentBlock'])_0x474551['enableDefaultAttributesIntegration'](_0x28d215);}const _0x167100=_0x93a4df['locale'];_0x474551['registerBlockAttribute']('blockIndent'),_0x474551['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x167100,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e0264=this['editor'],_0x2d2bc5=_0x3e0264['locale'],_0x42e254=_0x3e0264['plugins']['get']('TrackChangesEditing');_0x42e254['descriptionFactory']['registerDescriptionCallback'](_0x2bc2c7=>{if('formatBlock'!=_0x2bc2c7['type'])return;const {data:_0xb31e89}=_0x2bc2c7;if(!_0xb31e89)return;if('indentBlock'!=_0xb31e89['commandName']&&'outdentBlock'!=_0xb31e89['commandName'])return;const _0x58ae0b=_0x2bc2c7['getItems']()[0x0],_0x553919=_0x42e254['descriptionFactory']['getItemLabel'](_0x58ae0b);return'indentBlock'==_0xb31e89['commandName']?{'type':'format','content':o(_0x2d2bc5,'*Indent:*\x20%0',_0x553919)}:'outdentBlock'==_0xb31e89['commandName']?{'type':'format','content':o(_0x2d2bc5,'*Outdent:*\x20%0',_0x553919)}:void 0x0;});}}class ft extends _0x3c70aa{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3c70aa{['afterInit'](){const _0x1e7b22=this['editor'];if(!_0x1e7b22['plugins']['has']('LinkEditing'))return;const _0x14b786=_0x1e7b22['plugins']['get']('TrackChangesEditing'),_0x42dbd8=_0x1e7b22['commands']['get']('link');_0x14b786['enableDefaultAttributesIntegration']('link'),_0x14b786['enableDefaultAttributesIntegration']('unlink'),_0x14b786['registerInlineAttribute']('linkHref');for(const _0x5e0d61 of _0x42dbd8['manualDecorators'])_0x14b786['registerInlineAttribute'](_0x5e0d61['id']),_0x14b786['descriptionFactory']['registerAttributeLabel'](_0x5e0d61['id'],'link\x20('+_0x5e0d61['label']['toLowerCase']()+')');_0x14b786['descriptionFactory']['registerDescriptionCallback'](_0x102e22=>{if('attribute'!=_0x102e22['type'])return;const {data:_0x495406}=_0x102e22;if(!_0x495406||'linkHref'!=_0x495406['key'])return;const _0x49bf5d=_0x495406['newValue'],_0x4d2f0e=_0x1e7b22['locale'];return{'type':'format','content':null==_0x49bf5d?o(_0x4d2f0e,'*Remove\x20link*'):o(_0x4d2f0e,'*Set\x20link:*\x20%0','\x22'+_0x49bf5d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3829cd=this['editor'],_0x44aa65=_0x3829cd['locale'];_0x3829cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x308e54=>{if('formatInline'!=_0x308e54['type'])return;const {data:_0x18033b}=_0x308e54;if(_0x18033b){if('link'==_0x18033b['commandName']){const _0xcd3470=_0x18033b['commandParams'][0x0];return{'type':'format','content':o(_0x44aa65,'*Set\x20link:*\x20%0','\x22'+_0xcd3470+'\x22')};}return'unlink'==_0x18033b['commandName']?{'type':'format','content':o(_0x44aa65,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x3c70aa{['afterInit'](){const _0x4dbce4=this['editor'],_0x14c17e=_0x4dbce4['locale'];if(!_0x4dbce4['plugins']['has']('LegacyListEditing'))return;const _0x2ea407=_0x4dbce4['plugins']['get']('TrackChangesEditing'),_0x516ff2=_0x4dbce4['plugins']['has']('LegacyTodoListEditing');function _0x34b8c2(_0x5760d5){return()=>{const _0x2533bd=_0x4dbce4['model']['document']['selection'],_0x3f68f2=_0x4dbce4['commands']['get'](_0x5760d5);if(_0x3f68f2['value'])return void _0x4dbce4['execute']('paragraph',{});const _0x4b3dca=_0x5760d5['slice'](0x0,-0x4),_0x5c7e42=function(_0x1afc6a,_0x3b5b03,_0x266a23){let _0x4f9024=Array['from'](_0x1afc6a)['filter'](_0x7c927d=>function(_0x369f07,_0xab7d3){return _0xab7d3['checkChild'](_0x369f07['parent'],'listItem')&&!_0xab7d3['isObject'](_0x369f07);}(_0x7c927d,_0x266a23));_0x4f9024=_0x4f9024['filter'](_0x1618db=>!_0x1618db['is']('element','listItem')||_0x1618db['getAttribute']('listType')!=_0x3b5b03);const _0x1c134d=new Set();for(const _0x5bf96b of _0x4f9024)_0x5bf96b['is']('element','listItem')?_0x1c134d['add'](Le(_0x5bf96b)):_0x1c134d['add'](_0x5bf96b);return Array['from'](_0x1c134d);}(_0x2533bd['getSelectedBlocks'](),_0x4b3dca,_0x4dbce4['model']['schema']);_0x4dbce4['model']['change'](()=>{for(const _0x9bb1b of _0x5c7e42)_0x2ea407['markBlockFormat'](_0x9bb1b,{'commandName':_0x5760d5,'commandParams':[{'forceValue':!_0x3f68f2['value']}],'formatGroupId':'blockName'},Ee(_0x9bb1b));});};}function _0x563953(_0x1e4c5a){return()=>{const _0x54f164=function(_0x326ad3){let _0x42cb92=Array['from'](_0x326ad3);const _0x5bef1f=_0x42cb92['findIndex'](_0x1de034=>'listItem'!=_0x1de034['name']);return _0x5bef1f>-0x1&&(_0x42cb92=_0x42cb92['slice'](0x0,_0x5bef1f)),_0x42cb92;}(_0x4dbce4['model']['document']['selection']['getSelectedBlocks']()),_0x347cbe=_0x4dbce4['model']['createRange'](_0x4dbce4['model']['createPositionAt'](_0x54f164[0x0],'before'),_0x4dbce4['model']['createPositionAt'](_0x54f164[_0x54f164['length']-0x1],'end'));_0x4dbce4['model']['change'](()=>{_0x2ea407['markBlockFormat'](_0x347cbe,{'commandName':_0x1e4c5a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1fa086){const _0x10fd6e=new Set();for(const _0x126811 of _0x1fa086){let _0x2f1ca4=_0x126811['nextSibling'];for(;_0x2f1ca4&&_0x2f1ca4['getAttribute']('listIndent')>_0x126811['getAttribute']('listIndent');)_0x10fd6e['add'](_0x2f1ca4),_0x2f1ca4=_0x2f1ca4['nextSibling'];}return Array['from'](_0x10fd6e);}(_0x54f164));});};}_0x2ea407['enableCommand']('numberedList',_0x34b8c2('numberedList')),_0x2ea407['enableCommand']('bulletedList',_0x34b8c2('bulletedList')),_0x516ff2&&_0x2ea407['enableCommand']('todoList',_0x34b8c2('todoList')),_0x2ea407['enableCommand']('indentList',_0x563953('indentList')),_0x2ea407['enableCommand']('outdentList',_0x563953('outdentList')),_0x516ff2&&_0x2ea407['enableCommand']('checkTodoList',()=>{const _0x207ab4=_0x4dbce4['commands']['get']('checkTodoList'),_0x40b627=Array['from'](_0x207ab4['_selectedElements']);_0x40b627['filter'](_0x2d7e8e=>_0x2d7e8e['getAttribute']('todoListChecked')!=_0x207ab4['value']),_0x4dbce4['model']['change'](()=>{for(const _0x3f9ee7 of _0x40b627)_0x2ea407['markBlockFormat'](_0x3f9ee7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x207ab4['value']}]});});}),_0x2ea407['descriptionFactory']['registerElementLabel']('listItem',_0x4f8a06=>o(_0x14c17e,'ELEMENT_LIST_ITEM',_0x4f8a06)),_0x2ea407['descriptionFactory']['registerDescriptionCallback'](_0x23f0cf=>{if('formatBlock'!=_0x23f0cf['type']&&'formatInline'!=_0x23f0cf['type'])return;const {data:_0x2225bc}=_0x23f0cf;if(_0x2225bc){if('numberedList'==_0x2225bc['commandName']||'bulletedList'==_0x2225bc['commandName']||'todoList'==_0x2225bc['commandName'])switch(_0x2225bc['commandName']['replace']('List','')){case'bulleted':return _0x9382d7(o(_0x14c17e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9382d7(o(_0x14c17e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9382d7(o(_0x14c17e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2225bc['commandName'])return{'type':'format','content':o(_0x14c17e,'*Indent:*\x20%0',o(_0x14c17e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2225bc['commandName'])return{'type':'format','content':o(_0x14c17e,'*Outdent:*\x20%0',o(_0x14c17e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2225bc['commandName'])return _0x2225bc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14c17e,'*Check\x20item*')}:{'type':'format','content':o(_0x14c17e,'*Uncheck\x20item*')};}function _0x9382d7(_0x4c9e63){return{'type':'format','content':o(_0x14c17e,'*Change\x20to:*\x20%0',_0x4c9e63)};}});}}function Le(_0x28d299){const _0x442074=_0x28d299['getAttribute']('listIndent');if(0x0==_0x442074)return _0x28d299;let _0x170c6e=_0x28d299;for(;_0x28d299['previousSibling']&&_0x28d299['previousSibling']['is']('element','listItem');){const _0x5476f1=_0x28d299['previousSibling']['getAttribute']('listIndent');if(_0x5476f1==_0x442074)_0x170c6e=_0x28d299['previousSibling'];else{if(_0x5476f1<_0x442074)break;}_0x28d299=_0x28d299['previousSibling'];}return _0x170c6e;}function Ee(_0x2bba20){const _0x502ab8=[];if(_0x2bba20['is']('element','listItem')&&_0x2bba20['getAttribute']('listIndent')>0x0){let _0x59ca1e=_0x2bba20['nextSibling'];for(;_0x59ca1e&&'listItem'==_0x59ca1e['name']&&_0x59ca1e['getAttribute']('listIndent')==_0x2bba20['getAttribute']('listIndent');)_0x502ab8['push'](_0x59ca1e),_0x59ca1e=_0x59ca1e['nextSibling'];}return _0x502ab8;}class Q extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5101a8=this['editor']['config']['get']('list.properties'),_0x4972de=this['editor']['plugins']['get']('TrackChangesEditing');_0x5101a8['styles']&&_0x4972de['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5101a8['reversed']&&_0x4972de['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5101a8['startIndex']&&_0x4972de['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4972de['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x6812bb,_0x347f7d={}){const _0x186a2e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ec92e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x186a2e['markMultiRangeBlockFormat'](_0x2ec92e,{'commandName':'listStyle','commandParams':[{'type':_0x347f7d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xa51b51,_0x21db1f={}){const _0x1baa00=this['editor']['plugins']['get']('TrackChangesEditing'),_0x184ffc=this['_getSuggestionBlocks'](_0x580779=>_0x580779['is']('element','listItem')&&'numbered'===_0x580779['getAttribute']('listType'));if(_0x184ffc['length']<0x1)return;const _0x5eb14a=_0x184ffc['map'](_0x5d16b8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d16b8,'before'),this['editor']['model']['createPositionAt'](_0x5d16b8,0x0)));this['editor']['model']['change'](()=>{_0x1baa00['markMultiRangeBlockFormat'](_0x5eb14a,{'commandName':'listReversed','commandParams':[{'reversed':_0x21db1f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2448de,_0x2cbd0f={}){const _0x590e8c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x700cbc=this['_getSuggestionBlocks'](_0xfc6253=>_0xfc6253['is']('element','listItem')&&'numbered'===_0xfc6253['getAttribute']('listType'));if(_0x700cbc['length']<0x1)return;const _0x13a84f=_0x700cbc['map'](_0xfd611=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfd611,'before'),this['editor']['model']['createPositionAt'](_0xfd611,0x0)));this['editor']['model']['change'](()=>{_0x590e8c['markMultiRangeBlockFormat'](_0x13a84f,{'commandName':'listStart','commandParams':[{'startIndex':_0x2cbd0f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x323d3e){if('formatBlock'!=_0x323d3e['type']&&'formatInline'!=_0x323d3e['type'])return;const _0xf1e62d=this['editor']['locale'],{data:_0x32d647}=_0x323d3e;if(!_0x32d647)return;let _0x57213e,_0x256979;switch(_0x32d647['commandName']){case'listStyle':_0x57213e='*Change\x20to:*\x20%0',_0x256979={'type':'format','content':o(_0xf1e62d,_0x57213e,o(_0xf1e62d,this['_getTranslationKeyForListStyle'](_0x32d647['commandParams'][0x0]['type'])))};break;case'listReversed':_0x57213e=_0x32d647['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x256979={'type':'format','content':o(_0xf1e62d,_0x57213e)};break;case'listStart':_0x57213e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x256979={'type':'format','content':o(_0xf1e62d,_0x57213e,_0x32d647['commandParams'][0x0]['startIndex'])};}return _0x256979;}['_getSuggestionBlocksForListStyle'](){const _0x3442b3=this['editor']['plugins']['get']('LegacyListUtils');let _0x481ad1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x481ad1[0x0]?.['is']('element','listItem')&&_0x481ad1['unshift'](..._0x3442b3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x481ad1[_0x481ad1['length']-0x1]?.['is']('element','listItem')&&_0x481ad1['push'](..._0x3442b3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x481ad1=[...new Set(_0x481ad1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x481ad1=_0x481ad1['filter'](_0x36a1d9=>_0x36a1d9['is']('element','listItem'))),_0x481ad1;}['_getSuggestionBlocks'](_0x1ebd68){const _0x44af02=this['editor']['plugins']['get']('LegacyListUtils');let _0x217dbe=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1ebd68)['map'](_0x1fee67=>{const _0x427c47=this['editor']['model']['createPositionAt'](_0x1fee67,0x0);return[..._0x44af02['getSiblingNodes'](_0x427c47,'backward'),..._0x44af02['getSiblingNodes'](_0x427c47,'forward')];})['flat']();return _0x217dbe=[...new Set(_0x217dbe)],_0x217dbe;}['_getTranslationKeyForListStyle'](_0x4dac0b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4dac0b)||'default')['toUpperCase']()+'_LIST_'+_0x4dac0b['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x3c70aa{['afterInit'](){const _0x5719a0=this['editor'];if(!_0x5719a0['plugins']['has']('MediaEmbedEditing'))return;const _0x5c0bc4=_0x5719a0['plugins']['get']('TrackChangesEditing'),_0x1bc4c2=_0x5719a0['locale'];_0x5c0bc4['enableCommand']('mediaEmbed'),_0x5c0bc4['descriptionFactory']['registerElementLabel']('media',_0x3847d3=>o(_0x1bc4c2,'ELEMENT_MEDIA',_0x3847d3)),_0x5719a0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2a6196,{writer:_0x1929b8,options:_0x4d1813})=>{if(_0x4d1813['showSuggestionHighlights'])return _0x1929b8['createEmptyElement']('div');},'converterPriority':'high'}),_0x5719a0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x380023,_0x1f5e11,_0x35dac7)=>{_0x35dac7['options']['showSuggestionHighlights']&&_0x380023['stop']();},{'priority':'high'});}}class mt extends _0x3c70aa{['afterInit'](){const _0x30b15e=this['editor'];_0x30b15e['plugins']['has']('MentionEditing')&&_0x30b15e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x3c70aa{['afterInit'](){const _0x540a33=this['editor'];if(!_0x540a33['plugins']['has']('MergeFieldsEditing'))return;_0x540a33['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x540a33['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0xf03c9e=_0x540a33['plugins']['get']('TrackChangesEditing'),_0x348b1c=_0x540a33['locale'];_0xf03c9e['descriptionFactory']['registerElementLabel']('mergeField',_0x5c1f8f=>o(_0x348b1c,'ELEMENT_MERGE_FIELD',_0x5c1f8f)),_0xf03c9e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5c7186=>o(_0x348b1c,'ELEMENT_MERGE_FIELD',_0x5c7186)),_0xf03c9e['descriptionFactory']['registerDescriptionCallback'](_0x321f48=>{if('insertion'!=_0x321f48['type']&&'deletion'!=_0x321f48['type'])return;const _0x217718=_0x321f48['getContainedElement']();if(null==_0x217718)return;if(!_0x217718['is']('element','mergeField')&&!_0x217718['is']('element','mergeFieldBlock'))return;const _0x3f8fa1=_0x540a33['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x217718['getAttribute']('id'));return'insertion'==_0x321f48['type']?{'type':'insertion','content':o(_0x348b1c,'*Insert:*\x20%0','\x22'+_0x3f8fa1+'\x22\x20'+o(_0x348b1c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x348b1c,'*Remove:*\x20%0','\x22'+_0x3f8fa1+'\x22\x20'+o(_0x348b1c,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3c70aa{['afterInit'](){const _0x36738c=this['editor'],_0x25c40d=_0x36738c['plugins']['get']('TrackChangesEditing');_0x36738c['plugins']['has']('MultiLevelList')&&(_0x25c40d['enableDefaultAttributesIntegration']('multiLevelList'),_0x25c40d['registerBlockAttribute']('listMarkerStyle'),_0x25c40d['descriptionFactory']['registerDescriptionCallback'](_0x1ca2c3=>this['handleDescriptions'](_0x1ca2c3)));}['handleDescriptions'](_0x3d3175){const _0x1b36aa=this['editor']['locale'],{data:_0x2f6efd}=_0x3d3175,_0x373f7d={'type':'format','content':''};if(_0x2f6efd&&'listMarkerStyle'==_0x2f6efd['key']){if(!_0x2f6efd['oldValue'])return{'type':'format','content':o(_0x1b36aa,'*Set\x20format:*\x20%0',o(_0x1b36aa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f6efd['newValue']+')'};if(!_0x2f6efd['newValue']){let _0x22c44a=_0x3d3175['head'];for(;_0x22c44a;){if(_0x22c44a['data']&&'listType'==_0x22c44a['data']['key']&&_0x22c44a['data']['newValue'])return _0x373f7d;_0x22c44a=_0x22c44a['next'];}return{'type':'format','content':o(_0x1b36aa,'*Remove\x20format:*\x20%0',o(_0x1b36aa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f6efd['oldValue']+')'};}}}}class kt extends _0x3c70aa{['afterInit'](){const _0x35be02=this['editor'];if(!_0x35be02['plugins']['has']('PageBreakEditing'))return;_0x35be02['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x103947=_0x35be02['plugins']['get']('TrackChangesEditing'),_0xfb643e=_0x35be02['locale'];_0x103947['descriptionFactory']['registerElementLabel']('pageBreak',_0x54eaf7=>o(_0xfb643e,'ELEMENT_PAGE_BREAK',_0x54eaf7));}}class bt extends _0x3c70aa{['afterInit'](){const _0xc2482a=this['editor'];if(!_0xc2482a['plugins']['has']('Paragraph'))return;const _0x24efed=_0xc2482a['locale'],_0x24123c=_0xc2482a['plugins']['get']('TrackChangesEditing');_0x24123c['descriptionFactory']['registerElementLabel']('paragraph',_0x656f67=>o(_0x24efed,'ELEMENT_PARAGRAPH',_0x656f67)),_0x24123c['enableDefaultAttributesIntegration']('paragraph'),_0x24123c['enableCommand']('insertParagraph'),_0xc2482a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xc2482a),{'priority':'highest'}),_0xc2482a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3b4b1e,_0x77f889,_0x1ee201)=>{_0x1ee201['options']['showSuggestionHighlights']&&nr(_0xc2482a,{'showActiveMarker':!0x1})(_0x3b4b1e,_0x77f889,_0x1ee201);},{'priority':'highest'});const _0x27e64f=_0x24123c['descriptionFactory'];_0x27e64f['registerDescriptionCallback'](_0x518cdc=>{if('insertion'!==_0x518cdc['type'])return;const {start:_0x47d439,end:_0x23902d}=_0x518cdc['getFirstRange']();if(!_0x47d439['isTouching'](_0x23902d)||!_0x47d439['nodeAfter'])return;const _0xc949ab=_0xc2482a['model']['schema'],_0x252ecd=_0x47d439['nodeAfter'];return _0xc949ab['isBlock'](_0x252ecd)&&!_0xc949ab['isLimit'](_0x252ecd)&&_0xc949ab['checkChild'](_0x252ecd,'$text')?{'type':'insertion','content':o(_0x24efed,'*Insert:*\x20%0',_0x27e64f['getItemLabel'](_0x252ecd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x457243=this['editor'],_0x43978e=_0x457243['locale'];_0x457243['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x203cee=>{if('formatBlock'!=_0x203cee['type'])return;const {data:_0x51bfb1}=_0x203cee;return _0x51bfb1&&'paragraph'==_0x51bfb1['commandName']?{'type':'format','content':o(_0x43978e,'*Change\x20to:*\x20%0',o(_0x43978e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1e1998,{showActiveMarker:_0x3af4fb=!0x0}={}){return(_0x4a2b2e,_0x26325b,_0x5e721b)=>{const _0x5ca6a4=_0x1e1998['plugins']['get']('TrackChangesEditing'),_0x9d26fc=_0x26325b['markerRange']['start'],_0x9a04f1=_0x26325b['markerRange']['end'],_0x4ffccf=_0x1e1998['model']['schema'];if(!_0x9d26fc['isTouching'](_0x9a04f1)||!_0x9d26fc['nodeAfter'])return;const _0x16e59a=_0x9d26fc['nodeAfter'];if(_0x4ffccf['isBlock'](_0x16e59a)&&!_0x4ffccf['isLimit'](_0x16e59a)&&_0x4ffccf['checkChild'](_0x16e59a,'$text')){if(!_0x5e721b['consumable']['consume'](_0x26325b['markerRange'],_0x4a2b2e['name']))return;const {authorId:_0x52a3f1}=_0x5ca6a4['_splitMarkerName'](_0x26325b['markerName']),_0x331b87=_0x5e721b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x52a3f1}),_0x367408=_0x5e721b['mapper']['toViewPosition'](_0x9a04f1);_0x3af4fb&&_0x5ca6a4['activeMarkers']['includes'](_0x26325b['markerName'])&&_0x5e721b['writer']['addClass']('ck-suggestion-marker--active',_0x331b87),_0x5e721b['writer']['insert'](_0x367408,_0x331b87),_0x5e721b['mapper']['bindElementToMarker'](_0x331b87,_0x26325b['markerName']);}};}class yt extends _0x3c70aa{['afterInit'](){const _0x29a481=this['editor'];if(!_0x29a481['plugins']['has']('RemoveFormatEditing'))return;_0x29a481['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdcafec=this['editor'];_0xdcafec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3173f9=>{if('formatBlock'!=_0x3173f9['type']&&'formatInline'!=_0x3173f9['type'])return;const {data:_0x9b37ae}=_0x3173f9;return _0x9b37ae&&'removeFormat'==_0x9b37ae['commandName']?{'type':'format','content':o(_0xdcafec['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x3c70aa{['afterInit'](){const _0x344b6b=this['editor'];if(!_0x344b6b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x49da31=_0x344b6b['plugins']['get']('TrackChangesEditing');_0x49da31['enableCommand']('goToPreviousRestrictedEditingException'),_0x49da31['enableCommand']('goToNextRestrictedEditingException');const _0x105bf3=_0x344b6b['plugins']['get']('RestrictedEditingModeEditing');_0x105bf3['enableCommand']('trackChanges'),_0x105bf3['enableCommand']('acceptSuggestion'),_0x105bf3['enableCommand']('discardSuggestion'),_0x105bf3['enableCommand']('acceptAllSuggestions'),_0x105bf3['enableCommand']('discardAllSuggestions'),_0x105bf3['enableCommand']('acceptSelectedSuggestions'),_0x105bf3['enableCommand']('discardSelectedSuggestions');}}class St extends _0x3c70aa{static get['requires'](){return[_0x4f65e3];}['init'](){const _0x5ea887=this['editor'],_0x473b05=_0x5ea887['plugins']['get']('TrackChangesEditing');_0x473b05['enableCommand']('shiftEnter'),_0x5ea887['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x5ea887),{'priority':'high'}),_0x5ea887['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x5ea887),{'priority':'high'}),_0x5ea887['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x26de7e,_0x52d0b4,_0x57635d)=>{_0x57635d['options']['showSuggestionHighlights']&&ke(_0x5ea887,{'showActiveMarker':!0x1})(_0x26de7e,_0x52d0b4,_0x57635d);}),_0x473b05['descriptionFactory']['registerElementLabel']('softBreak',_0x1b3d1f=>o(_0x5ea887['locale'],'ELEMENT_LINE_BREAK',_0x1b3d1f));}}function ke(_0x5a7837,{showActiveMarker:_0x5d4736=!0x0}={}){return(_0x46c336,_0x1a8c42,_0x1e1db7)=>{const _0x19f294=_0x5a7837['plugins']['get']('TrackChangesEditing');if(!_0x1e1db7['consumable']['test'](_0x1a8c42['markerRange'],_0x46c336['name']))return;const _0x1f0a2b=_0x5a7837['model'];for(const _0x227058 of _0x1a8c42['markerRange']['getItems']()){if(!_0x227058['is']('element','softBreak'))continue;const _0x5893a9='deletion'==_0x1a8c42['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x53805b}=_0x19f294['_splitMarkerName'](_0x1a8c42['markerName']),_0x511d17=_0x1e1db7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5893a9,'data-author-id':_0x53805b}),_0x298661=_0x1e1db7['mapper']['toViewPosition'](_0x1f0a2b['createPositionBefore'](_0x227058));_0x5d4736&&_0x19f294['activeMarkers']['includes'](_0x1a8c42['markerName'])&&_0x1e1db7['writer']['addClass']('ck-suggestion-marker--active',_0x511d17),_0x1e1db7['writer']['insert'](_0x298661,_0x511d17),_0x1e1db7['mapper']['bindElementToMarker'](_0x511d17,_0x1a8c42['markerName']);}};}class At extends _0x3c70aa{['afterInit'](){const _0x59b5a0=this['editor'],_0x2e6337=_0x59b5a0['model'],_0xb39d39=_0x59b5a0['locale'];if(!_0x59b5a0['plugins']['has']('StandardEditingModeEditing'))return;const _0x518a45=_0x59b5a0['plugins']['get']('TrackChangesEditing'),_0x580397='restrictedEditingException',_0x646ea2=_0x59b5a0['commands']['get'](_0x580397);_0x518a45['enableCommand'](_0x580397,(_0x2338a3,_0x17cf53={})=>{const _0x1834d1=_0x2e6337['document']['selection'];if(_0x1834d1['isCollapsed'])return void _0x2338a3(_0x17cf53);const _0x429795=void 0x0!==_0x17cf53['forceValue']?_0x17cf53['forceValue']:!_0x646ea2['value'];_0x2e6337['change'](()=>{const _0x3e7391=Array['from'](_0x1834d1['getRanges']());for(const _0x405dc8 of _0x3e7391){const _0x4b3094=_0x429795?[_0x405dc8]:io(_0x580397,_0x405dc8,_0x2e6337);for(const _0x3134da of _0x4b3094)_0x518a45['markInlineFormat'](_0x3134da,{'commandName':_0x580397,'commandParams':[{'forceValue':_0x429795}]});}});}),_0x518a45['descriptionFactory']['registerDescriptionCallback'](_0xc4eed=>{if('formatBlock'!=_0xc4eed['type']&&'formatInline'!=_0xc4eed['type'])return;const {data:_0x4ec2c5}=_0xc4eed;return _0x4ec2c5&&_0x4ec2c5['commandName']==_0x580397?_0x4ec2c5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb39d39,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb39d39,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x3c70aa{['afterInit'](){const _0x20cdad=this['editor'];if(!_0x20cdad['plugins']['has']('Style')||!_0x20cdad['plugins']['has']('DataSchema'))return;const _0x592672=_0x20cdad['plugins']['get']('TrackChangesEditing'),_0x20db88=_0x20cdad['locale'],_0x50a431=_0x20cdad['config']['get']('style')||{},_0x27614a=_0x20cdad['plugins']['get']('GeneralHtmlSupport'),_0x2d664e=_0x20cdad['plugins']['get']('StyleUtils')['normalizeConfig'](_0x20cdad['plugins']['get']('DataSchema'),_0x50a431['definitions']);_0x592672['enableDefaultAttributesIntegration']('style');const _0x4740e6=new Set();for(const _0x490bf5 of _0x2d664e['block']){const _0x3844b6=_0x27614a['getGhsAttributeNameForElement'](_0x490bf5['element']);_0x4740e6['add'](_0x3844b6);}const _0x1116a2=new Set();for(const _0x5f3692 of _0x2d664e['inline']){const _0x2c17cb=_0x27614a['getGhsAttributeNameForElement'](_0x5f3692['element']);_0x1116a2['add'](_0x2c17cb);for(const _0x367e71 of _0x5f3692['ghsAttributes'])_0x1116a2['add'](_0x367e71);}for(const _0x4bebd3 of _0x4740e6)_0x592672['registerBlockAttribute'](_0x4bebd3),_0x592672['descriptionFactory']['registerAttributeLabel'](_0x4bebd3,o(_0x20db88,'FORMAT_STYLE'));for(const _0xd73bf2 of _0x1116a2)_0x592672['registerInlineAttribute'](_0xd73bf2),_0x592672['descriptionFactory']['registerAttributeLabel'](_0xd73bf2,o(_0x20db88,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b0a7e=this['editor'],_0x427c00=_0x5b0a7e['locale'];_0x5b0a7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x185a02=>{if('formatBlock'!=_0x185a02['type']&&'formatInline'!=_0x185a02['type'])return;const {data:_0x4e25ef}=_0x185a02;return _0x4e25ef&&'style'===_0x4e25ef['commandName']?_0x4e25ef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x427c00,'*Set\x20format:*\x20%0',_0x4e25ef['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x427c00,'*Remove\x20format:*\x20%0',_0x4e25ef['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x3c70aa{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3d5ab2){super(_0x3d5ab2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x83c00d=this['editor'],_0x9d34f4=_0x83c00d['model']['document']['selection'];if(!_0x83c00d['plugins']['has']('TableEditing'))return;const _0x1f145a=_0x83c00d['locale'],_0x557fc6=_0x83c00d['plugins']['get']('TrackChangesEditing'),_0x421b6c=_0x83c00d['plugins']['get']('TableUtils');_0x557fc6['descriptionFactory']['registerElementLabel']('table',_0x2c517f=>o(_0x1f145a,'ELEMENT_TABLE',_0x2c517f)),this['_setupColumnsRowsFixing'](),_0x557fc6['enableCommand']('insertTable'),_0x557fc6['enableCommand']('selectTableRow'),_0x557fc6['enableCommand']('selectTableColumn');for(const _0x492c86 of['insertTableRowAbove','insertTableRowBelow']){const _0x467f7d=_0x83c00d['commands']['get'](_0x492c86);_0x557fc6['enableCommand'](_0x492c86,_0x356b03=>{_0x83c00d['model']['change'](_0x548b9e=>{_0x356b03();const _0x1c64a5='above'===_0x467f7d['order'],_0x5eb77e=_0x421b6c['getSelectionAffectedTableCells'](_0x9d34f4),_0x5ed9fd=_0x421b6c['getRowIndexes'](_0x5eb77e),_0x3c803b=_0x1c64a5?_0x5ed9fd['first']-0x1:_0x5ed9fd['last']+0x1,_0x138a5e=_0x5eb77e[0x0]['findAncestor']('table'),_0x435ca4=_0x421b6c['createTableWalker'](_0x138a5e,{'startRow':_0x3c803b,'endRow':_0x3c803b}),_0x20b66b=Array['from'](_0x435ca4)['map'](_0x56d29c=>_0x548b9e['createRangeOn'](_0x56d29c['cell']));_0x557fc6['markMultiRangeInsertion'](_0x20b66b,'tableRow');});});}for(const _0x565727 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4c713e=_0x83c00d['commands']['get'](_0x565727);_0x557fc6['enableCommand'](_0x565727,_0xf12580=>{_0x83c00d['model']['change'](_0x2e7f85=>{_0xf12580();const _0x103c01='left'===_0x4c713e['order'],_0x3b5bf5=_0x421b6c['getSelectionAffectedTableCells'](_0x9d34f4),_0x4c44a5=_0x421b6c['getColumnIndexes'](_0x3b5bf5),_0x4d76c5=_0x103c01?_0x4c44a5['first']-0x1:_0x4c44a5['last']+0x1,_0x5d61ce=_0x3b5bf5[0x0]['findAncestor']('table'),_0x27614d=_0x421b6c['createTableWalker'](_0x5d61ce,{'startRow':0x0,'column':_0x4d76c5,'includeAllSlots':!0x1}),_0x1f7f2e=Array['from'](_0x27614d)['map'](_0x507ccc=>_0x2e7f85['createRangeOn'](_0x507ccc['cell']));_0x557fc6['markMultiRangeInsertion'](_0x1f7f2e,'tableColumn');});});}for(const _0x1cc285 of['removeTableRow','removeTableColumn']){const _0x21ad82=_0x1cc285['substr'](0xb),_0xb16562=_0x21ad82['toLowerCase'](),_0x26e1b5=_0xb16562['substr'](0x0,0x3)+'span',_0x5e71b9='table'+_0x21ad82,_0x473270='min'+_0x21ad82,_0xc92906='max'+_0x21ad82;_0x557fc6['enableCommand'](_0x1cc285,()=>{_0x83c00d['model']['change'](_0x62153b=>{const _0x3efcad=_0x421b6c['getSelectionAffectedTableCells'](_0x9d34f4),_0x5526d6=_0x3efcad[0x0]['findAncestor']('table');let _0xcb9580;if('removeTableRow'==_0x1cc285){const _0x26939d=_0x421b6c['getRowIndexes'](_0x3efcad);_0xcb9580={'startRow':_0x26939d['first'],'endRow':_0x26939d['last'],'includeAllSlots':!0x0};}else{const _0x236d2b=_0x421b6c['getColumnIndexes'](_0x3efcad);_0xcb9580={'startColumn':_0x236d2b['first'],'endColumn':_0x236d2b['last'],'includeAllSlots':!0x0};}const _0x2d8d05=_0x421b6c['createTableWalker'](_0x5526d6,_0xcb9580),_0x145a97=Array['from'](_0x2d8d05)['map'](({cell:_0x4fbd4d})=>_0x4fbd4d),_0x2e33f7=Re(_0x145a97['filter'](_0x234835=>_0x234835['hasAttribute'](_0x26e1b5))),_0x7b22ef=Re(_0x145a97['filter'](_0x2651a8=>!_0x2651a8['hasAttribute'](_0x26e1b5)))['map'](_0x582ab1=>_0x62153b['createRangeOn'](_0x582ab1)),_0x1a668a=_0x557fc6['markMultiRangeDeletion'](_0x7b22ef,_0x5e71b9);if(_0x1a668a&&('tableRow'==_0x1a668a['subType']||'tableColumn'==_0x1a668a['subType'])){const _0x2f4208=this['_getSuggestionCoords'](_0x1a668a);for(const _0x92310b of _0x2e33f7){const _0x9cf49e=_0x62153b['createRangeOn'](_0x92310b),_0x34f772=_0x421b6c['getCellLocation'](_0x92310b),_0x232e9f=_0x92310b['getAttribute'](_0x26e1b5)-0x1,_0x16fbbe=_0x2f4208[_0x473270],_0x195502=_0x2f4208[_0xc92906];_0x16fbbe<=_0x34f772[_0xb16562]&&_0x34f772[_0xb16562]+_0x232e9f<=_0x195502&&_0x1a668a['addRange'](_0x9cf49e);}}});});}function _0x292058(_0x2fb9a2){const _0x661583=Array['from'](_0x9d34f4['getRanges']())['map'](_0x2d933e=>_0x4fb46f['fromRange'](_0x2d933e));_0x83c00d['model']['change'](_0xbe9e68=>{const _0x1c9073=_0xbe9e68['batch'];_0x2fb9a2=_0x2fb9a2['filter'](_0x2d7ecf=>'$graveyard'!=_0x2d7ecf['root']['rootName']),_0xbe9e68['setSelection'](_0x2fb9a2),_0x83c00d['commands']['get']('removeTableRow')['refresh'](),_0x83c00d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x83c00d['model']['enqueueChange'](()=>{_0x83c00d['model']['enqueueChange'](_0x1c9073,_0x41fca6=>{const _0x7d2a25=_0x661583['filter'](_0x4c39f7=>'$graveyard'!=_0x4c39f7['root']['rootName']);_0x7d2a25['length']>0x0&&_0x41fca6['setSelection'](_0x7d2a25);for(const _0x17cbe9 of _0x661583)_0x17cbe9['detach']();});});});}function _0x38f40b(_0x3e78a9){_0x83c00d['model']['change'](_0x45eb3a=>{const _0x34c291=Array['from'](_0x9d34f4['getRanges']())['map'](_0x225f4d=>_0x4fb46f['fromRange'](_0x225f4d)),_0x2a9cc1=[];for(const _0x3a7656 of _0x3e78a9)for(const _0x1d8f16 of _0x3a7656['getItems']({'shallow':!0x0}))_0x2a9cc1['push'](_0x1d8f16);for(const _0x583c95 of _0x2a9cc1)'$graveyard'!=_0x583c95['root']['rootName']&&(_0x45eb3a['setSelection'](_0x45eb3a['createPositionAt'](_0x583c95,0x0)),_0x83c00d['commands']['get']('removeTableColumn')['refresh'](),_0x83c00d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x582708=_0x34c291['filter'](_0x57e427=>'$graveyard'!=_0x57e427['root']['rootName']);_0x582708['length']>0x0&&_0x45eb3a['setSelection'](_0x582708);for(const _0x22fa7e of _0x34c291)_0x22fa7e['detach']();});}function _0x25c67b(_0x29bcee,_0x283039){return _0x283039['every'](_0x388ddc=>_0x29bcee['some'](_0x56acf8=>_0x56acf8['end']['isEqual'](_0x388ddc['start'])||_0x388ddc['end']['isEqual'](_0x56acf8['start'])));}function _0x581db7(_0x1badce,_0x2b56d0){return!_0x1badce['some'](_0xec621=>_0x2b56d0['some'](_0x53cda3=>_0xec621['isIntersecting'](_0x53cda3)))&&_0x1badce['some'](_0xbc3c23=>_0x2b56d0['some'](_0x35fde9=>_0xbc3c23['end']['isTouching'](_0x35fde9['start'])));}_0x83c00d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50d7a2,_0x47445d,_0x4fa80f)=>{if(!_0x4fa80f['options']['showSuggestionHighlights'])return;const _0x2a82e2=_0x47445d['item'];if(!_0x2a82e2)return;const _0x54759e=_0x4fa80f['mapper']['toViewElement'](_0x2a82e2);function _0x2f0c1b(_0x13aaf7){return Array['isArray'](_0x13aaf7)?_0x13aaf7:[_0x13aaf7];}_0x54759e&&'tableCell'===_0x2a82e2['name']&&_0x504615(_0x54759e,_0x4fa80f['writer'],(_0x2d9dce,_0xb5516d,_0x1fbf3e)=>_0x1fbf3e['addClass'](_0x2f0c1b(_0xb5516d['classes']),_0x2d9dce),(_0x3ebe98,_0x114ffc,_0x59c8e2)=>_0x59c8e2['removeClass'](_0x2f0c1b(_0x114ffc['classes']),_0x3ebe98));},{'priority':'highest'}),_0x557fc6['descriptionFactory']['registerDescriptionCallback'](_0x1e8f5e=>{if('insertion'!=_0x1e8f5e['type']&&'deletion'!=_0x1e8f5e['type'])return;const _0x10f140=_0x1e8f5e['getContainedElement']();if(null!=_0x10f140&&_0x10f140['is']('element','table')){if('insertion'==_0x1e8f5e['type']){const _0x27266f=_0x1e8f5e['getItems']()['filter'](_0x23033a=>_0x23033a['is']('$textProxy'))['map'](_0x544eab=>_0x544eab['data']);if(_0x27266f['length'])return{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x27266f['join']('\x20')+'\x22'))};}if('deletion'==_0x1e8f5e['type']){const _0x1b0d0a=_0x1e8f5e['getItems']()['filter'](_0x3ea586=>_0x3ea586['is']('$textProxy'))['map'](_0x352a9c=>_0x352a9c['data']);if(_0x1b0d0a['length'])return{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1b0d0a['join']('\x20')+'\x22'))};}}}),_0x557fc6['descriptionFactory']['registerDescriptionCallback'](_0x5797d3=>{if('tableRow'==_0x5797d3['subType']){const _0x57ad05=_0x5797d3['getItems']()['filter'](_0x1db8a3=>_0x1db8a3['is']('$textProxy'))['map'](_0x424f12=>_0x424f12['data']),_0x3c1e4e=this['_getSuggestionCoords'](_0x5797d3),_0xbbd68a=_0x3c1e4e['maxRow']-_0x3c1e4e['minRow']+0x1;if('insertion'==_0x5797d3['type'])return _0x57ad05['length']?{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbbd68a,'\x22'+_0x57ad05['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_ROW',_0xbbd68a))};if('deletion'==_0x5797d3['type'])return _0x57ad05['length']?{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbbd68a,'\x22'+_0x57ad05['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_ROW',_0xbbd68a))};}if('tableColumn'==_0x5797d3['subType']){const _0x59dc59=_0x5797d3['getItems']()['filter'](_0x3ad620=>_0x3ad620['is']('$textProxy'))['map'](_0x35fd7a=>_0x35fd7a['data']),_0x49c007=this['_getSuggestionCoords'](_0x5797d3),_0x1bcb7a=_0x49c007['maxColumn']-_0x49c007['minColumn']+0x1;if('insertion'==_0x5797d3['type'])return _0x59dc59['length']?{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1bcb7a,'\x22'+_0x59dc59['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_COLUMN',_0x1bcb7a))};if('deletion'==_0x5797d3['type'])return _0x59dc59['length']?{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1bcb7a,'\x22'+_0x59dc59['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_COLUMN',_0x1bcb7a))};}}),_0x557fc6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x292058),_0x557fc6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x292058),_0x557fc6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x38f40b),_0x557fc6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x38f40b),_0x557fc6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x25c67b),_0x557fc6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x25c67b),_0x557fc6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x581db7),_0x557fc6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x581db7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5bc281=this['editor'],_0x2b9a20=_0x5bc281['model']['document']['selection'];return(_0x23242a,_0x1e9d13)=>{_0x5bc281['model']['change'](_0x18de69=>{const {commandName:_0x136a0d,commandParams:_0x306a22}=_0x1e9d13;let _0xc19757=_0x23242a[0x0]['end']['nodeBefore'];_0x306a22&&_0x306a22[0x0]&&!0x1===_0x306a22[0x0]['forceValue']&&(_0xc19757=_0x23242a[0x0]['start']['nodeAfter']);const _0x51d914=_0x18de69['createRangeIn'](_0xc19757);if('$graveyard'==_0x51d914['root']['rootName'])return;const _0x652420=Array['from'](_0x2b9a20['getRanges']())['map'](_0x44a65e=>_0x4fb46f['fromRange'](_0x44a65e));_0x18de69['setSelection'](_0x51d914),_0x5bc281['commands']['get'](_0x136a0d)['refresh'](),_0x306a22['push']({'forceDefaultExecution':!0x0}),_0x5bc281['execute'](_0x136a0d,..._0x306a22);const _0x3e56bb=_0x652420['filter'](_0x23783c=>'$graveyard'!=_0x23783c['root']['rootName']);_0x3e56bb['length']>0x0&&_0x18de69['setSelection'](_0x3e56bb);for(const _0x421cfd of _0x652420)_0x421cfd['detach']();});};}['_getCoordsForCells'](_0x4c4baa){const _0xc942d5=this['editor']['plugins']['get']('TableUtils');let _0x2b8a3e=Number['MAX_SAFE_INTEGER'],_0x1e0f98=Number['MIN_SAFE_INTEGER'],_0x4eed99=Number['MAX_SAFE_INTEGER'],_0x9cc327=Number['MIN_SAFE_INTEGER'];for(const _0x6e0031 of _0x4c4baa){if('$graveyard'==_0x6e0031['root']['rootName'])continue;const {row:_0x29e7dc,column:_0x379fc5}=_0xc942d5['getCellLocation'](_0x6e0031),_0x36b90d=_0x6e0031['hasAttribute']('rowspan')?_0x6e0031['getAttribute']('rowspan')-0x1:0x0,_0x347a6d=_0x6e0031['hasAttribute']('colspan')?_0x6e0031['getAttribute']('colspan')-0x1:0x0;_0x2b8a3e=_0x29e7dc<_0x2b8a3e?_0x29e7dc:_0x2b8a3e,_0x1e0f98=_0x29e7dc+_0x36b90d>_0x1e0f98?_0x29e7dc+_0x36b90d:_0x1e0f98,_0x4eed99=_0x379fc5<_0x4eed99?_0x379fc5:_0x4eed99,_0x9cc327=_0x379fc5+_0x347a6d>_0x9cc327?_0x379fc5+_0x347a6d:_0x9cc327;}return{'minRow':_0x2b8a3e,'maxRow':_0x1e0f98,'minColumn':_0x4eed99,'maxColumn':_0x9cc327};}['_setupColumnsRowsFixing'](){const _0x155594=this['editor'],_0x4033af=_0x155594['plugins']['get']('TrackChangesEditing'),_0xdb448d=_0x155594['plugins']['get']('TableUtils');_0x155594['model']['document']['on']('change:data',()=>{const _0x1da5a3=Array['from'](_0x155594['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3faead,data:_0x4a0fd2}of _0x1da5a3){const {group:_0x2612c5,id:_0x5a96b5,subType:_0x595f0f}=_0x4033af['_splitMarkerName'](_0x3faead);if('suggestion'!=_0x2612c5)continue;if(null!=_0x4a0fd2['oldRange'])continue;const _0x670e47=_0x4033af['getSuggestion'](_0x5a96b5);this['_tablePostFixingSubtypes']['includes'](_0x595f0f)&&this['_tableSuggestions']['add'](_0x670e47);}},{'priority':'low'});const _0x81683e=(_0x19801f,_0x79d7fc)=>{let _0x1bc345=!0x1;const _0x39b3cc=_0x79d7fc['createRangeOn'](_0x19801f),_0x137cd6=_0x19801f['findAncestor']('table'),_0x417ecb=_0xdb448d['getCellLocation'](_0x19801f);for(const _0x25e575 of this['_tableSuggestions']){const _0x2a60f7=_0x25e575['subType'],_0x2b1560=_0x2a60f7['startsWith']('tablePaste'),_0x2d2fab=_0x2a60f7['substr'](_0x2b1560?0xa:0x5),_0x3e30ef=_0x2d2fab['toLowerCase'](),_0x2cf503=_0x3e30ef['substr'](0x0,0x3)+'span',_0x2c8487='min'+_0x2d2fab,_0x37a08c='max'+_0x2d2fab;if(!_0x25e575['isInContent'])continue;if(_0x137cd6!=_0x25e575['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x25e575['isIntersectingWithRange'](_0x39b3cc))continue;const _0xf7be17=_0x19801f['hasAttribute'](_0x2cf503)?_0x19801f['getAttribute'](_0x2cf503)-0x1:0x0,_0x44536f=this['_getSuggestionCoords'](_0x25e575),_0x2d4334=_0x44536f[_0x2c8487],_0x59a183=_0x44536f[_0x37a08c];_0x2d4334<=_0x417ecb[_0x3e30ef]&&_0x417ecb[_0x3e30ef]+_0xf7be17<=_0x59a183&&(_0x25e575['addRange'](_0x39b3cc),_0x1bc345=!0x0);}return _0x1bc345;};_0x155594['model']['document']['registerPostFixer'](_0xc6a02b=>{let _0x51e77b=!0x1;for(const _0x5a630a of _0x155594['model']['document']['differ']['getChanges']())if('insert'==_0x5a630a['type']){if('tableRow'==_0x5a630a['name']){for(const _0xcb1388 of _0x5a630a['position']['nodeAfter']['getChildren']())_0x51e77b=_0x51e77b||_0x81683e(_0xcb1388,_0xc6a02b);}else'tableCell'==_0x5a630a['name']&&(_0x51e77b=_0x51e77b||_0x81683e(_0x5a630a['position']['nodeAfter'],_0xc6a02b));}return _0x51e77b;});}['_getSuggestionCoords'](_0x284dbe){return this['_getCoordsForCells'](_0x284dbe['getRanges']()['map'](_0x21d6e7=>_0x21d6e7['start']['nodeAfter']));}}function Re(_0x40cb02){return Array['from'](new Set(_0x40cb02)['values']());}class _t extends _0x3c70aa{static get['requires'](){return[vt];}['afterInit'](){const _0x333af5=this['editor'],_0x385b27=_0x333af5['model']['document']['selection'],_0x733ec7=_0x333af5['locale'];if(!_0x333af5['plugins']['has']('TableEditing'))return;const _0x402f05=_0x333af5['plugins']['get']('TrackChangesEditing'),_0x27d73c=_0x333af5['plugins']['get']('TableUtils'),_0x59ba8c=_0x333af5['plugins']['get'](vt);_0x59ba8c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x402f05['enableCommand']('mergeTableCells',()=>{const _0x544044=_0x27d73c['getSelectionAffectedTableCells'](_0x333af5['model']['document']['selection']);_0x333af5['model']['change'](()=>{_0x402f05['markMultiRangeBlockFormat'](_0x544044,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x333af5['commands']['get']('mergeTableCells')['on']('execute',(_0x24d509,_0x3777cb)=>{_0x333af5['commands']['get']('trackChanges')['value']&&(_0x3777cb['length']>0x0&&_0x3777cb[_0x3777cb['length']-0x1]&&_0x3777cb[_0x3777cb['length']-0x1]['forceDefaultExecution']||_0x402f05['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x24d509['stop']());},{'priority':'highest'});for(const _0x1848ad of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x41b49a=_0x333af5['commands']['get'](_0x1848ad);_0x402f05['enableCommand'](_0x1848ad,()=>{const _0x326c0e=_0x333af5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x41e0b0=>_0x41e0b0['is']('element','tableCell')),_0x11d4b7=_0x41b49a['value'];_0x333af5['model']['change'](()=>{_0x402f05['markMultiRangeBlockFormat']([_0x326c0e,_0x11d4b7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xc6b75d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x205fdf=_0x333af5['commands']['get'](_0xc6b75d);_0x402f05['enableCommand'](_0xc6b75d,()=>{const _0x41020f=_0x27d73c['getSelectionAffectedTableCells'](_0x333af5['model']['document']['selection'])[0x0],_0x592ed2=_0x41020f['findAncestor']('table'),{column:_0x297ea9,row:_0x3b90bf}=_0x27d73c['getCellLocation'](_0x41020f);let _0x3d6168=[];if('horizontally'==_0x205fdf['direction']){const _0x2e5a65=_0x27d73c['createTableWalker'](_0x592ed2,{'startRow':_0x3b90bf,'endRow':_0x3b90bf,'includeAllSlots':!0x0});_0x3d6168=Array['from'](_0x2e5a65)['map'](_0x2f00a6=>_0x2f00a6['cell']);}else{const _0x2cd9b1=_0x27d73c['createTableWalker'](_0x592ed2,{'column':_0x297ea9,'includeAllSlots':!0x0});_0x3d6168=Array['from'](_0x2cd9b1)['map'](_0x4e56b4=>_0x4e56b4['cell']);}_0x333af5['model']['change'](_0x6a8cb9=>{_0x402f05['markBlockFormat'](_0x6a8cb9['createRangeOn'](_0x41020f),{'commandName':_0xc6b75d,'commandParams':[]},_0x3d6168,_0xc6b75d);});});}_0x402f05['descriptionFactory']['registerDescriptionCallback'](_0x2ae265=>{if('formatBlock'!=_0x2ae265['type']&&'formatInline'!=_0x2ae265['type'])return;const {data:_0x43d152}=_0x2ae265;return _0x43d152&&'mergeTableCells'==_0x43d152['commandName']?{'type':'format','content':o(_0x733ec7,'*Merge\x20cells*')}:void 0x0;}),_0x402f05['descriptionFactory']['registerDescriptionCallback'](_0x43f65f=>{if('formatBlock'!=_0x43f65f['type']&&'formatInline'!=_0x43f65f['type'])return;const {data:_0x49a352}=_0x43f65f;return _0x49a352?'splitTableCellVertically'==_0x49a352['commandName']?{'type':'format','content':o(_0x733ec7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x49a352['commandName']?{'type':'format','content':o(_0x733ec7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x12a612=_0x59ba8c['_acceptFormatSuggestionCallbackFactory']();for(const _0x48bc86 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x402f05['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48bc86,'accept',_0x12a612);for(const _0x149e68 of['splitTableCellVertically','splitTableCellHorizontally'])_0x402f05['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x149e68,'accept',_0x12a612);_0x402f05['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x226da5=>{_0x333af5['model']['change'](_0x1dca79=>{const _0x2a3998=Array['from'](_0x385b27['getRanges']())['map'](_0xf30284=>_0x4fb46f['fromRange'](_0xf30284));_0x1dca79['setSelection'](_0x226da5),_0x333af5['commands']['get']('mergeTableCells')['refresh'](),_0x333af5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x13d37a=_0x2a3998['filter'](_0x1d2c6c=>'$graveyard'!=_0x1d2c6c['root']['rootName']);_0x13d37a['length']>0x0&&_0x1dca79['setSelection'](_0x13d37a);for(const _0x4704a5 of _0x2a3998)_0x4704a5['detach']();});});for(const _0x3e3ec3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x64d63f=_0x333af5['commands']['get'](_0x3e3ec3);_0x64d63f['on']('set:isEnabled',(_0x282921,_0xa60a27,_0x4cff3f)=>{if(_0x4cff3f){const _0x190610=_0x333af5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2ba5cd=>_0x2ba5cd['is']('element','tableCell'));this['_areMergableCells'](_0x64d63f['value'],_0x190610)||(_0x282921['return']=!0x1,_0x282921['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x497706=this['editor']['commands']['get']('mergeTableCells'),_0x2da67b=this['editor']['plugins']['get']('TableUtils');if(!_0x497706['isEnabled'])return!0x1;const _0x29ee8d=_0x2da67b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x53464c of _0x29ee8d)for(const _0x573dfc of _0x29ee8d)if(_0x53464c!=_0x573dfc&&!this['_areMergableCells'](_0x53464c,_0x573dfc))return!0x1;return!0x0;}['_areMergableCells'](_0x4905f2,_0x5ec5a2){const _0x5afbe6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4220c3=this['editor']['model']['createRangeOn'](_0x4905f2),_0x5a24d5=this['editor']['model']['createRangeOn'](_0x5ec5a2),_0xa8d9dc=new Set(),_0x39c1ec=new Set();for(const _0x136059 of _0x5afbe6['getSuggestions']())if(('insertion'==_0x136059['type']||'deletion'==_0x136059['type']||'mergeTableCells'==_0x136059['subType'])&&_0x136059['isInContent']){for(const _0x1bcd34 of _0x136059['getRanges']())_0x1bcd34['containsRange'](_0x4220c3,!0x0)&&_0xa8d9dc['add'](_0x136059['type']+':'+_0x136059['author']['id']),_0x1bcd34['containsRange'](_0x5a24d5,!0x0)&&_0x39c1ec['add'](_0x136059['type']+':'+_0x136059['author']['id']);}if(_0xa8d9dc['size']!=_0x39c1ec['size'])return!0x1;for(const _0x1c66dc of _0xa8d9dc)if(!_0x39c1ec['has'](_0x1c66dc))return!0x1;return!0x0;}}class Ct extends _0x3c70aa{static get['requires'](){return[vt];}['afterInit'](){const _0x2c1099=this['editor'];if(!_0x2c1099['plugins']['has']('TableEditing'))return;const _0x23430a=_0x2c1099['locale'],_0x2d332e=_0x2c1099['plugins']['get']('TrackChangesEditing');_0x2d332e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2d332e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2d332e['registerBlockAttribute']('headingRows'),_0x2d332e['registerBlockAttribute']('headingColumns'),_0x2d332e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x23430a,'FORMAT_HEADER_ROW')),_0x2d332e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x23430a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b94bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x395ebe=this['editor']['plugins']['get']('TableUtils'),_0x36456e=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x41b25e({showActiveMarker:_0x269050=!0x0,setDataAttribute:_0x25c0fa=!0x0}={}){return(_0x2543ab,_0x30166f,_0xaa77c4)=>{const {type:_0x3015cf,id:_0x541182}=_0x1b94bf['_splitMarkerName'](_0x30166f['markerName']),_0x2c9bba=_0x1b94bf['getSuggestion'](_0x541182),_0x4ff370=_0x2c9bba['data'];if('formatBlock'!=_0x2c9bba['type']||!_0x4ff370||'setTableColumnHeader'!=_0x4ff370['commandName'])return;if(_0x30166f['item'])return void _0x2543ab['stop']();if(!_0xaa77c4['consumable']['consume'](_0x30166f['markerRange'],_0x2543ab['name']))return;const _0x5c6c40=_0x30166f['markerRange']['start']['nodeAfter'],_0x1f7cbb=_0x30166f['markerRange']['end']['nodeBefore'],_0x5696b2=_0x5c6c40['parent']['parent'],{column:_0x95e233}=_0x395ebe['getCellLocation'](_0x5c6c40),{column:_0x3324a3}=_0x395ebe['getCellLocation'](_0x1f7cbb);for(let _0x878a61=_0x95e233;_0x878a61<=_0x3324a3;_0x878a61++){const _0x3a5535=_0x395ebe['createTableWalker'](_0x5696b2,{'column':_0x878a61,'includeAllSlots':!0x1});for(const _0x2f43ac of _0x3a5535){const _0x5db8d5=_0x2f43ac['cell'],_0x251a63=_0xaa77c4['mapper']['toViewElement'](_0x5db8d5);_0xaa77c4['writer']['addClass']('ck-suggestion-marker-'+_0x3015cf,_0x251a63),_0x25c0fa&&_0xaa77c4['writer']['setAttribute']('data-suggestion',_0x541182,_0x251a63),_0xaa77c4['mapper']['bindElementToMarker'](_0x251a63,_0x30166f['markerName']),_0x269050&&(_0x1b94bf['activeMarkers']['includes'](_0x30166f['markerName'])?_0xaa77c4['writer']['addClass']('ck-suggestion-marker--active',_0x251a63):_0xaa77c4['writer']['removeClass']('ck-suggestion-marker--active',_0x251a63));}}};}_0x1b94bf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36456e),_0x1b94bf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36456e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x41b25e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c335b,_0x22eea7,_0x5b5e27)=>{_0x5b5e27['options']['showSuggestionHighlights']&&_0x41b25e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4c335b,_0x22eea7,_0x5b5e27);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xbddf6d,_0x50b68e,_0x389a4b)=>{const {type:_0x297160,id:_0x158409}=_0x1b94bf['_splitMarkerName'](_0x50b68e['markerName']),_0x39c9cf=_0x1b94bf['getSuggestion'](_0x158409),_0x545246=_0x39c9cf['data'];if('formatBlock'!=_0x39c9cf['type']||!_0x545246||'setTableColumnHeader'!=_0x545246['commandName'])return;const _0x14fd68=_0x389a4b['mapper']['markerNameToElements'](_0x50b68e['markerName']);if(_0x14fd68){for(const _0x1985cb of _0x14fd68)_0x389a4b['writer']['removeClass']('ck-suggestion-marker-'+_0x297160,_0x1985cb),_0x389a4b['writer']['removeClass']('ck-suggestion-marker--active',_0x1985cb),_0x389a4b['writer']['removeAttribute']('data-suggestion',_0x1985cb),_0x389a4b['mapper']['unbindElementFromMarkerName'](_0x1985cb,_0x50b68e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57dbe5=this['editor'],_0x240281=_0x57dbe5['locale'];function _0x51392b(_0x420a9){return{'type':'format','content':o(_0x240281,'*Format:*\x20%0',_0x420a9)};}_0x57dbe5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa89217=>{if('formatBlock'!=_0xa89217['type'])return;const {data:_0x320d71}=_0xa89217;if(_0x320d71){if('setTableRowHeader'==_0x320d71['commandName']){const _0x135ccd=_0x320d71['commandParams'][0x0]['forceValue'];return _0x51392b(o(_0x240281,_0x135ccd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x320d71['commandName']){const _0x5615a7=_0x320d71['commandParams'][0x0]['forceValue'];return _0x51392b(o(_0x240281,_0x5615a7?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0xa64975=>[_0xa64975,null]));class Nt extends _0x3c70aa{static get['requires'](){return[vt];}['afterInit'](){const _0x6a36fe=this['editor'];if(!_0x6a36fe['plugins']['has']('TableClipboard'))return;const _0x219c46=_0x6a36fe['plugins']['get']('TrackChangesEditing'),_0x3db237=_0x6a36fe['plugins']['get']('TableUtils'),_0x506dba=_0x6a36fe['plugins']['get'](vt),_0x569205=_0x6a36fe['plugins']['get']('TableClipboard');_0x506dba['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x6a36fe['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x6a36fe['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x42d72b=null;_0x6a36fe['model']['on']('insertContent',(_0x4e14b1,_0x242d54)=>{const [_0x2433d0,_0x4bd0da]=_0x242d54,_0x572cc7=_0x242d54[_0x242d54['length']-0x1];_0x572cc7&&_0x572cc7['forceDefaultExecution']||_0x219c46['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x48c672,_0x44e010,_0x4605d2,_0x4ee8aa,_0x580a85){if(_0x44e010&&!_0x44e010['is']('documentSelection'))return!0x1;const _0x3e1ef7=_0x580a85['getTableIfOnlyTableInContent'](_0x48c672,_0x4605d2);if(!_0x3e1ef7||!Ae(_0x3e1ef7,void 0x0,_0x4ee8aa))return!0x1;const _0x3f7de7=_0x4ee8aa['getSelectionAffectedTableCells'](_0x4605d2['document']['selection']);if(!_0x3f7de7['length'])return!0x1;const _0x43796f=_0x3f7de7[0x0]['findAncestor']('table'),_0x41ad98=_0x4ee8aa['getRowIndexes'](_0x3f7de7),_0x227f17=_0x4ee8aa['getColumnIndexes'](_0x3f7de7),_0x45ddd3={'startRow':_0x41ad98['first'],'endRow':_0x41ad98['last'],'startColumn':_0x227f17['first'],'endColumn':_0x227f17['last']};return 0x1==_0x3f7de7['length']&&(_0x45ddd3['endRow']+=_0x4ee8aa['getRows'](_0x3e1ef7)-0x1,_0x45ddd3['endColumn']+=_0x4ee8aa['getColumns'](_0x3e1ef7)-0x1),Ae(_0x43796f,_0x45ddd3,_0x4ee8aa);}(_0x2433d0,_0x4bd0da,_0x6a36fe['model'],_0x3db237,_0x569205)&&(_0x4e14b1['stop'](),_0x42d72b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x6a36fe['model']['change'](()=>{_0x6a36fe['model']['insertContent'](_0x242d54[0x0],_0x242d54[0x1],_0x242d54[0x2],{'forceDefaultExecution':!0x0});const _0x3e8c1f=_0x1cdff5(),{rowInsertionRanges:_0x4893c4,columnInsertionRanges:_0x3752c7,insertionRanges:_0x46c67f,deletionRanges:_0x41e3ac,cells:_0x13260f}=_0x42d72b;_0x4893c4['length']&&_0x219c46['markMultiRangeInsertion'](_0x4893c4,'tablePasteRow',{'tablePasteChainId':_0x3e8c1f}),_0x3752c7['length']&&_0x219c46['markMultiRangeInsertion'](_0x3752c7,'tablePasteColumn',{'tablePasteChainId':_0x3e8c1f}),_0x46c67f['length']&&(_0x219c46['markMultiRangeInsertion'](_0x46c67f,'tablePaste',{'tablePasteChainId':_0x3e8c1f,'skipNestingCheck':!0x0}),_0x46c67f['forEach'](_0x456033=>_0x456033['detach']?.())),_0x41e3ac['length']&&(_0x219c46['markMultiRangeDeletion'](_0x41e3ac,'tablePaste',{'tablePasteChainId':_0x3e8c1f,'skipNestingCheck':!0x0}),_0x41e3ac['forEach'](_0xba6fe2=>_0xba6fe2['detach']?.()));const _0x210e44=_0x219c46['markMultiRangeBlockFormat'](_0x13260f['map'](({element:_0x3e4124})=>_0x3e4124),{'formatGroupId':_0x1cdff5()},[],'tablePasteCell',{'tablePasteChainId':_0x3e8c1f});if(_0x210e44){const _0x1df6da=_0x210e44['getMarkers'](),_0x208248=[];for(const {element:_0x589bd3,attributes:_0x1c22f6}of _0x13260f){if(!_0x1c22f6)continue;const _0x839f60=_0x6a36fe['model']['createRangeOn'](_0x589bd3),_0x2bedfc=_0x1df6da['find'](_0x5cb31=>_0x5cb31['getRange']()['isEqual'](_0x839f60));_0x2bedfc&&_0x208248['push']([_0x2bedfc['name'],_0x1c22f6]);}_0x208248['length']&&_0x210e44['setAttribute']('markerAttributes',Object['fromEntries'](_0x208248));}_0x42d72b=null;}));},{'priority':_0x2e7237['high']+0xa}),_0x6a36fe['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x400553,_0x24b050)=>{const [_0x171c0d,_0x1fa247,,_0x19b968]=_0x24b050;if(!_0x42d72b)return;_0x400553['stop']();const _0x1a616a=_0x171c0d['cell'],_0x5a4de9=_0x1fa247,_0x1c65a3=je(_0x1a616a),_0x7dee4f=je(_0x5a4de9);_0x400553['return']=_0x1a616a;let _0x7da853=null,_0x418a9f=null;if(_0x7dee4f||_0x1c65a3){if(_0x1c65a3&&!_0x7dee4f){_0x19b968['remove'](_0x1a616a['getChild'](0x0));for(const _0x2e013f of Array['from'](_0x5a4de9['getChildren']()))_0x19b968['insert'](_0x2e013f,_0x1a616a,'end');const _0x291975=_0x42d72b['rowInsertionIndexes']['includes'](_0x171c0d['row']),_0x5b236c=_0x42d72b['columnInsertionIndexes']['includes'](_0x171c0d['column']);_0x291975||_0x5b236c||(_0x7da853=_0x4fb46f['fromRange'](_0x19b968['createRangeIn'](_0x1a616a)));}else _0x7dee4f&&!_0x1c65a3&&(_0x418a9f=_0x19b968['createRangeIn'](_0x1a616a));}else{const _0x3eec32=_0x19b968['createElement']('tableCellSuggestion'),_0x3ae939=_0x19b968['createElement']('tableCellSuggestion');_0x19b968['wrap'](_0x19b968['createRangeIn'](_0x1a616a),_0x3ae939),_0x19b968['insert'](_0x3eec32,_0x1a616a,0x0);for(const _0x205b14 of Array['from'](_0x5a4de9['getChildren']()))_0x19b968['insert'](_0x205b14,_0x3eec32,'end');_0x7da853=_0x4fb46f['fromRange'](_0x19b968['createRangeOn'](_0x3eec32)),_0x418a9f=_0x4fb46f['fromRange'](_0x19b968['createRangeOn'](_0x3ae939));}const _0x294e76=Array['from'](_0x5a4de9['getAttributes']())['filter'](([_0x35f570])=>we['includes'](_0x35f570));_0x42d72b['cells']['push']({'element':_0x1a616a,'attributes':_0x294e76['length']?Object['fromEntries'](_0x294e76):null}),_0x7da853&&_0x42d72b['insertionRanges']['push'](_0x7da853),_0x418a9f&&_0x42d72b['deletionRanges']['push'](_0x418a9f);},{'priority':'high'}),_0x3db237['on']('insertColumns',(_0x59cf90,_0x56f684)=>{const [_0x21c6d1,_0x4eb3c9={}]=_0x56f684;if(!_0x42d72b)return;const _0x3c5c5a=_0x4eb3c9['at']||0x0,_0x4ba6ef=_0x4eb3c9['columns']||0x1;_0x42d72b['columnInsertionIndexes']=new Array(_0x4ba6ef)['fill'](_0x3c5c5a)['map']((_0x1c9c55,_0x30a3c3)=>_0x1c9c55+_0x30a3c3);for(const {cell:_0x52e93e}of _0x3db237['createTableWalker'](_0x21c6d1,{'startColumn':_0x3c5c5a,'endColumn':_0x3c5c5a+_0x4ba6ef-0x1}))_0x42d72b['columnInsertionRanges']['push'](_0x6a36fe['model']['createRangeOn'](_0x52e93e));},{'priority':'low'}),_0x3db237['on']('insertRows',(_0x2bd0aa,_0x23bb43)=>{const [_0x388155,_0x2e49fc={}]=_0x23bb43;if(!_0x42d72b)return;const _0x510479=_0x2e49fc['at']||0x0,_0x1a70a5=_0x2e49fc['rows']||0x1;_0x42d72b['rowInsertionIndexes']=new Array(_0x1a70a5)['fill'](_0x510479)['map']((_0x1fd26f,_0x20ed24)=>_0x1fd26f+_0x20ed24);for(const {cell:_0x2683a8}of _0x3db237['createTableWalker'](_0x388155,{'startRow':_0x510479,'endRow':_0x510479+_0x1a70a5-0x1}))_0x42d72b['rowInsertionRanges']['push'](_0x6a36fe['model']['createRangeOn'](_0x2683a8));},{'priority':'low'}),_0x219c46['descriptionFactory']['registerDescriptionCallback'](_0x2758e8=>{if(_0x2758e8['subType']&&_0x2758e8['subType']['startsWith']('tablePaste'))return _0x2758e8['previous']?{}:{'type':'insertion','content':o(_0x6a36fe['locale'],'*Replace\x20table\x20cells*')};});const _0x56aa49=()=>!0x1;for(const _0x677a5b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x219c46['_suggestionFactory']['registerCustomCallback']('insertion',_0x677a5b,'join',_0x56aa49),_0x219c46['_suggestionFactory']['registerCustomCallback']('deletion',_0x677a5b,'join',_0x56aa49),_0x219c46['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x677a5b,'join',_0x56aa49);_0x219c46['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x56aa49),_0x219c46['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5c6638,_0x459f77,_0xc411d)=>{const _0x175ae7=_0x5c6638['map'](_0x3bc78b=>_0x3bc78b['getContainedElement']())['filter'](_0x5f0bc9=>_0x5f0bc9),_0x113b54=new Map(_0x175ae7['map'](_0x524266=>[_0x524266,null]));if(_0x42d72b){for(const {element:_0x11267d,attributes:_0x3c7c05}of _0x42d72b['cells'])_0x3c7c05&&_0x113b54['set'](_0x11267d,_0x3c7c05);}else{if(_0xc411d&&_0xc411d['markerAttributes'])for(const [_0x14bce6,_0x803811]of Object['entries'](_0xc411d['markerAttributes'])){const _0x18dac9=_0x6a36fe['model']['markers']['get'](_0x14bce6),_0x23ea63=_0x18dac9?_0x18dac9['getRange']()['getContainedElement']():null;_0x23ea63&&_0x113b54['set'](_0x23ea63,_0x803811);}}_0x6a36fe['model']['change'](_0x13bfe0=>{for(const [_0x33d63c,_0x21735c]of _0x113b54)_0x13bfe0['setAttributes']({...ve,..._0x21735c},_0x33d63c);});});const _0x35a3ec=(_0x173402,_0x12db2c)=>{_0x219c46['_suggestionFactory']['registerCustomCallback'](_0x173402,'tablePaste',_0x12db2c,(_0x40a238,_0x407414,_0x320959)=>{_0x6a36fe['model']['change'](_0x31ded5=>{const _0x1baaad=[];for(const _0x124380 of _0x40a238){const _0x23f926=_0x124380['start']['nodeAfter'];_0x23f926['is']('element','tableCellSuggestion')&&_0x1baaad['push'](_0x23f926);}_0x219c46['_suggestionFactory']['getSuggestionCallback'](_0x173402,null,_0x12db2c)(_0x40a238,_0x407414,_0x320959);for(const _0x1b8008 of _0x1baaad)'$graveyard'!=_0x1b8008['root']['rootName']&&_0x31ded5['unwrap'](_0x1b8008);});});};_0x35a3ec('insertion','accept'),_0x35a3ec('insertion','discard'),_0x35a3ec('deletion','accept'),_0x35a3ec('deletion','discard'),_0x219c46['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3f372e=>{const _0x35fc80=_0x3f372e['map'](_0x5bbf36=>_0x5bbf36['getContainedElement']()),_0x569d34=_0x35fc80[0x0]['findAncestor']('table'),{minRow:_0x1b1929,maxRow:_0x159678}=_0x506dba['_getCoordsForCells'](_0x35fc80);_0x3db237['removeRows'](_0x569d34,{'at':_0x1b1929,'rows':_0x159678-_0x1b1929+0x1});}),_0x219c46['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3b70d4=>{const _0x1b5e61=_0x3b70d4['map'](_0x428827=>_0x428827['getContainedElement']()),_0x37b268=_0x1b5e61[0x0]['findAncestor']('table'),{minColumn:_0x3b453a,maxColumn:_0x4a8c00}=_0x506dba['_getCoordsForCells'](_0x1b5e61);_0x3db237['removeColumns'](_0x37b268,{'at':_0x3b453a,'columns':_0x4a8c00-_0x3b453a+0x1});});const _0x35bcfc=(_0x1b7ce4,_0x2e6ea1)=>{if(!_0x2e6ea1['subType']||!_0x2e6ea1['subType']['startsWith']('tablePaste'))return;const _0x2d488d=_0x2e6ea1['attributes']['tablePasteChainId'],_0x16dc05=_0x219c46['getSuggestions']()['filter'](_0x48397b=>_0x48397b['isInContent']&&_0x48397b['attributes']&&_0x48397b['attributes']['tablePasteChainId']==_0x2d488d);_0x16dc05['length']&&_0x2e6ea1['getAllAdjacentSuggestions']()['length']!=_0x16dc05['length']&&_0x16dc05['reduce']((_0x2cfb6b,_0x5cd27a)=>(_0x2cfb6b['next']=_0x5cd27a,_0x5cd27a['previous']=_0x2cfb6b,_0x5cd27a));};function _0x3c5be3(_0x4bd5a9,_0xb1a62=!0x0){const {id:_0x40a590,authorId:_0x2e69f0}=_0x219c46['_splitMarkerName'](_0x4bd5a9['markerName']),_0x33b4ad=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5b6c76=_0x219c46['activeMarkers']['includes'](_0x4bd5a9['markerName']);return _0x5b6c76&&_0x33b4ad['push']('ck-suggestion-marker--active'),{'classes':_0x33b4ad,'attributes':{'data-suggestion':_0x40a590,'data-author-id':_0x2e69f0},'priority':_0x5b6c76&&_0xb1a62?0xbc2:0xbb8};}_0x219c46['on']('suggestionLoaded',_0x35bcfc,{'priority':'high'}),_0x219c46['on']('suggestionUnloaded',_0x35bcfc,{'priority':'high'}),_0x6a36fe['model']['document']['registerPostFixer'](()=>{let _0x5b40a2=!0x1;const _0x2b7b8e=Array['from'](_0x6a36fe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48e318,data:_0x23b864}of _0x2b7b8e){const {group:_0xac20d9,type:_0x86b44,id:_0x4ca7a4}=_0x219c46['_splitMarkerName'](_0x48e318);if('suggestion'!=_0xac20d9||'deletion'!=_0x86b44||_0x23b864['oldRange'])continue;if(!_0x219c46['hasSuggestion'](_0x4ca7a4))continue;const _0x5749cc=_0x219c46['getSuggestion'](_0x4ca7a4)['getRanges'](),_0x5530bc=_0x6a36fe['plugins']['get']('Users')['me'];for(const _0x544c96 of _0x219c46['getSuggestions']()){if(!_0x544c96['isInContent']||_0x544c96['author']!=_0x5530bc)continue;if('formatBlock'!=_0x544c96['type']||'tablePasteCell'!=_0x544c96['subType'])continue;if(_0x544c96['getRanges']()['every'](_0x1f2717=>_0x5749cc['some'](_0x37131e=>_0x37131e['containsRange'](_0x1f2717,!0x0)))){for(const _0x1cdee9 of _0x544c96['getAllAdjacentSuggestions']())_0x1cdee9['isInContent']&&(_0x1cdee9['discard'](),_0x5b40a2=!0x0);}}}return _0x5b40a2;}),_0x6a36fe['model']['document']['registerPostFixer'](_0x188d79=>{const _0x5dd870=_0x6a36fe['commands']['get']('redo');if(!_0x5dd870||!_0x5dd870['_createdBatches']['has'](_0x188d79['batch']))return!0x1;let _0x2f4a1a=!0x1;const _0x4eb3a8=_0x6a36fe['plugins']['get']('Users')['me'],_0x44e42e=_0x6a36fe['model']['document']['differ']['getChanges'](),_0x317a1a=Array['from'](_0x6a36fe['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xc6405a,data:_0xf34eb1})=>{const {group:_0x203a14,subType:_0x56c4f9,authorId:_0x10cf20}=_0x219c46['_splitMarkerName'](_0xc6405a);return'suggestion'==_0x203a14&&'tablePaste'==_0x56c4f9&&_0x10cf20==_0x4eb3a8['id']&&!_0xf34eb1['oldRange'];});for(const _0x1f7419 of _0x44e42e){if('insert'!=_0x1f7419['type']||'tableCellSuggestion'!=_0x1f7419['name']||0x1!=_0x1f7419['length'])continue;const _0x395e6d=_0x188d79['createRange'](_0x1f7419['position'],_0x1f7419['position']['getShiftedBy'](0x1));if(!_0x317a1a['find'](({data:_0x5494f1})=>_0x5494f1['newRange']['isEqual'](_0x395e6d))){for(const {name:_0x35212a,data:_0x406bcc}of _0x317a1a)if(_0x395e6d['containsRange'](_0x406bcc['newRange'])){_0x188d79['updateMarker'](_0x35212a,{'range':_0x395e6d}),_0x2f4a1a=!0x0;break;}}}return _0x2f4a1a;}),_0x6a36fe['model']['document']['registerPostFixer'](_0x472df7=>{let _0x2fa87a=!0x1;const _0x34cf13=_0x6a36fe['plugins']['get']('Users')['me'],_0x1108e3=_0x219c46['getSuggestions']()['filter'](_0x25f3cd=>_0x25f3cd['isInContent']&&_0x25f3cd['author']==_0x34cf13),_0x479e35=new Set(),_0x188006=new Set();for(const _0x5c176b of _0x1108e3)if('tablePaste'==_0x5c176b['subType'])for(const _0x520db5 of _0x5c176b['getMarkers']()){const _0xf0a08d=_0x520db5['getRange']()['getContainedElement']();if(_0xf0a08d){if(_0xf0a08d['is']('element','tableCellSuggestion')&&je(_0xf0a08d)){_0x5c176b['removeMarker'](_0x520db5['name']),_0x479e35['add'](_0xf0a08d),_0x2fa87a=!0x0;const _0x4af753=_0xf0a08d['nextSibling'],_0x141273=_0xf0a08d['previousSibling'],_0x42a7da=_0x4af753&&_0x4af753['is']('element','tableCellSuggestion'),_0x22ac9c=_0x141273&&_0x141273['is']('element','tableCellSuggestion');_0x42a7da&&!_0x479e35['has'](_0x4af753)&&_0x188006['add'](_0x4af753),_0x22ac9c&&!_0x479e35['has'](_0x141273)&&_0x188006['add'](_0x141273);}else _0xf0a08d['is']('element','paragraph')&&_0xf0a08d['isEmpty']&&(_0x5c176b['removeMarker'](_0x520db5['name']),_0x2fa87a=!0x0);}}else{if('tablePasteCell'==_0x5c176b['subType']){if(!_0x5c176b['attributes']||!_0x5c176b['attributes']['tablePasteChainId'])continue;const _0x4d6303=_0x5c176b['attributes']['markerAttributes'];if(_0x4d6303&&Object['keys'](_0x4d6303)['length'])continue;const _0x34ff39=_0x5c176b['attributes']['tablePasteChainId'];let _0x2e0b08=!0x0,_0x3d96c0=!0x0;for(const _0x6bf105 of _0x1108e3)if(_0x6bf105['subType']&&_0x6bf105['subType']['startsWith']('tablePaste')){if(!_0x6bf105['attributes']['tablePasteChainId']){_0x3d96c0=!0x1;break;}if(_0x6bf105['id']!=_0x5c176b['id']&&_0x6bf105['attributes']['tablePasteChainId']==_0x34ff39){_0x2e0b08=!0x1;break;}}_0x3d96c0&&_0x2e0b08&&(_0x5c176b['removeMarkers'](),_0x2fa87a=!0x0);}}for(const _0x5923e9 of _0x479e35)_0x472df7['remove'](_0x5923e9);for(const _0x17bf21 of _0x188006)_0x472df7['unwrap'](_0x17bf21);return _0x2fa87a;}),_0x6a36fe['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x94bc24=>_0x3c5be3(_0x94bc24),'converterPriority':'high'}),_0x6a36fe['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x112305,_0x2472ed)=>_0x2472ed['options']['showSuggestionHighlights']?_0x3c5be3(_0x112305,!0x1):null,'converterPriority':'high'});const _0x57a4e0=_0x6a36fe['editing']['view'];this['listenTo'](_0x57a4e0['document'],'clipboardOutput',(_0x360528,_0xe3ea48)=>{const _0x89bb74=[];for(const _0x1e2117 of _0x57a4e0['createRangeIn'](_0xe3ea48['content'])['getItems']())_0x1e2117['is']('element','suggestion-td')&&_0x89bb74['push'](_0x1e2117);_0x57a4e0['change'](_0x2017d5=>{for(const _0x415fa7 of _0x89bb74)_0x2017d5['move'](_0x2017d5['createRangeIn'](_0x415fa7),_0x2017d5['createPositionBefore'](_0x415fa7)),_0x2017d5['remove'](_0x415fa7);});});}}function je(_0x8d79f9){if(_0x8d79f9['isEmpty'])return!0x0;const _0x1a5421=_0x8d79f9['getChild'](0x0);return _0x1a5421['is']('element','paragraph')&&_0x1a5421['isEmpty'];}function Ae(_0x2a1f66,_0x41d52b={},_0x385f39){for(const {isAnchor:_0x33aa58,cellHeight:_0x2eac8e,cellWidth:_0x2d6657}of _0x385f39['createTableWalker'](_0x2a1f66,{'includeAllSlots':!0x0,..._0x41d52b}))if(!_0x33aa58||0x1!=_0x2eac8e||0x1!=_0x2d6657)return!0x1;return!0x0;}class Dt extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5056bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5056bd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5056bd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5056bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5056bd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5056bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5056bd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5d1960,_0x29a565){const _0x15ade2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a4591=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2ed94f=_0x29a565['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x56aa18=_0x4a4591['getColumnGroupElement'](_0x2ed94f);let _0x3e27d4=_0x56aa18?_0x4a4591['getTableColumnsWidths'](_0x56aa18):null,_0x44e61d=_0x2ed94f['getAttribute']('tableWidth')||null;const _0x257c1b=_0x29a565['tableWidth']||_0x44e61d,_0xfe9fb=_0x29a565['columnWidths']||_0x3e27d4,_0xb56fe3=this['editor']['plugins']['get']('Users')['me'];for(const _0x45fded of _0x15ade2['getSuggestions']()){const _0x30f193=_0x45fded['getContainedElement']();if('resizeTable'===_0x45fded['subType']&&_0x30f193===_0x2ed94f){_0x45fded['author']!==_0xb56fe3&&_0x45fded['discard']();const _0x524653=_0x45fded['data']['commandParams'];_0x44e61d=_0x524653[0x0]['tableWidth'],_0x3e27d4=_0x524653[0x0]['columnWidths'];break;}}_0x5d1960({'table':_0x2ed94f,'tableWidth':_0x257c1b,'columnWidths':_0xfe9fb}),_0x15ade2['markBlockFormat'](_0x2ed94f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x44e61d,'columnWidths':_0x3e27d4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2a971c){if('formatBlock'!=_0x2a971c['type']&&'formatInline'!=_0x2a971c['type'])return;const {data:_0x319aae}=_0x2a971c;if(_0x319aae&&'resizeTable'===_0x319aae['formatGroupId']){const _0x565a4a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x565a4a)};}}}class Mt extends _0x3c70aa{['afterInit'](){const _0x162e78=this['editor'];_0x162e78['plugins']['has']('Template')&&_0x162e78['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x3c70aa{['afterInit'](){const _0x46e9f7=this['editor'];if(!_0x46e9f7['commands']['get']('insertTableOfContents'))return;_0x46e9f7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1e45c3=_0x46e9f7['plugins']['get']('TrackChangesEditing'),_0xdcfcb6=_0x46e9f7['locale'];_0x1e45c3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1ec3a8=>o(_0xdcfcb6,'ELEMENT_TABLE_OF_CONTENTS',_0x1ec3a8));}}class Bt extends _0x3c70aa{['afterInit'](){const _0x2674ae=this['editor'];if(!_0x2674ae['plugins']['has']('Title'))return;const _0x5b3980=_0x2674ae['plugins']['get']('TrackChangesEditing');_0x5b3980['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2674ae['locale'],'ELEMENT_TITLE')),_0x2674ae['model']['document']['registerPostFixer'](_0x28a00e=>{let _0x263e40=!0x1;const _0x2fc797=Array['from'](_0x2674ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58d22a,data:_0x441e07}of _0x2fc797){const {group:_0x41b356}=_0x5b3980['_splitMarkerName'](_0x58d22a);if('suggestion'!==_0x41b356||!_0x441e07['newRange'])continue;const _0x463929=_0x441e07['newRange'],_0x5acc9d=_0x463929['end']['nodeBefore'];if(!_0x5acc9d||!_0x5acc9d['is']('element','title-content'))continue;if(!_0x463929['start']['isTouching'](_0x463929['end']))continue;const _0x38b832=_0x2674ae['model']['schema']['getNearestSelectionRange'](_0x463929['end'],'forward');if(_0x38b832&&_0x38b832['isCollapsed']){const _0x4195ee=_0x28a00e['createRange'](_0x463929['start'],_0x38b832['start']);_0x4195ee['isEqual'](_0x463929)||(_0x28a00e['updateMarker'](_0x58d22a,{'range':_0x4195ee}),_0x263e40=!0x0);}_0x263e40||(_0x28a00e['removeMarker'](_0x58d22a),_0x263e40=!0x0);}return _0x263e40;});}}class Ot extends _0x3c70aa{['afterInit'](){const _0xab5c80=this['editor'],_0x31764f=_0xab5c80['plugins']['get']('TrackChangesEditing');_0xab5c80['plugins']['has']('UndoEditing')&&(_0x31764f['enableCommand']('undo'),_0x31764f['enableCommand']('redo'));}}class Rt extends _0x3c70aa{static get['requires'](){return[vt];}['afterInit'](){const _0x3f2881=this['editor'];if(!_0x3f2881['plugins']['has']('TableCaptionEditing'))return;_0x3f2881['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x3c70aa{['tableProperties'];['tableCellProperties'];constructor(_0x5d99ba){super(_0x5d99ba),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 _0x2ea044=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xa3b446 of this['tableProperties'])_0x2ea044['enableCommand'](_0xa3b446,(_0x2cc0ff,_0xc8f829)=>{const _0x5ed987=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xa3b446,[_0x5ed987],this['tableProperties'],'tableProperties',_0x2cc0ff,_0xc8f829);});_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2ea044['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x218c08,_0x336b20)=>this['handleDiscardAction'](this['tableProperties'],_0x218c08,_0x336b20)),_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x54bb15 of this['tableCellProperties'])_0x2ea044['enableCommand'](_0x54bb15,(_0x2c5b77,_0x5348c2)=>{const _0x71aa71=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x54bb15,_0x71aa71,this['tableCellProperties'],'tableCellProperties',_0x2c5b77,_0x5348c2);});_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2ea044['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4e1883,_0x423f7d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4e1883,_0x423f7d)),_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2ea044['descriptionFactory']['registerDescriptionCallback'](_0x2fc64a=>this['handleSuggestionDescription'](_0x2fc64a));}['_handlePropertyChange'](_0x2301a9,_0x1c8d73,_0x27adcd,_0x192052,_0x46bd5f,_0x4ac5f4){const _0x19bfe9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4ac5f4['batch'],()=>{for(const _0x14108e of _0x1c8d73){if(this['_getSuggestion'](_0x14108e,_0x192052))_0x46bd5f(_0x4ac5f4);else{const _0xb2a572={};for(const _0x396795 of _0x27adcd){const _0x1eb906=_0x14108e['getAttribute'](_0x396795);void 0x0!==_0x1eb906&&(_0xb2a572[_0x396795]=_0x1eb906);}_0x46bd5f(_0x4ac5f4),_0x19bfe9['markBlockFormat'](_0x14108e,{'commandParams':[_0xb2a572]},[],_0x192052);}}});}['handleDiscardAction'](_0x1c1a0a,_0xe9773b,_0x164cdf){const _0x5b09b5=_0xe9773b[0x0]['start']['nodeAfter'],_0x13a173=_0x164cdf['commandParams'][0x0];this['editor']['model']['change'](_0x28589f=>{for(const _0x254634 of _0x1c1a0a)void 0x0!==_0x13a173[_0x254634]?_0x28589f['setAttribute'](_0x254634,_0x13a173[_0x254634],_0x5b09b5):_0x28589f['removeAttribute'](_0x254634,_0x5b09b5);});}['handleSuggestionDescription'](_0x3e281a){if(_0x3e281a['data'])switch(_0x3e281a['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'](_0x2df2e8,_0x2daf98){const _0x3eff34=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5a3fab of _0x3eff34['getSuggestions']({'skipNotAttached':!0x0})){const _0x20c407=_0x5a3fab['getContainedElement']();if(_0x5a3fab['subType']===_0x2daf98&&_0x20c407===_0x2df2e8)return _0x5a3fab;}return null;}}const m='$elementName';class p extends _0x3c70aa{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x561e78,_0x4b0c5c,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(_0x19345e){super(_0x19345e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x510523,_0x570ffc,_0x24b50e,_0x35eba3)=>{this['_model']['change'](()=>{for(const _0x4fa2eb of[..._0x35eba3,..._0x24b50e])this['_model']['markers']['has'](_0x4fa2eb)&&_0x19345e['editing']['reconvertMarker'](_0x4fa2eb);});}),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']=_0x19345e['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(),_0x19345e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x19345e['config']['get']('trackChanges.trackFormatChanges'),_0x19345e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x19345e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x19345e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xed6412=this['editor'],_0x256a59=(_0x4b5e7c,_0x50ec48)=>{if('attribute'!=_0x4b5e7c)return'ck-suggestion-marker-'+_0x4b5e7c;const _0x2916d4=_0x50ec48['split']('|')[0x0];return this['_isBlockAttribute'](_0x2916d4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xed6412['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1ceec6=>{const {id:_0x34f47d,authorId:_0x2ada34,type:_0x1a3479,subType:_0x25b9ca}=this['_splitMarkerName'](_0x1ceec6['markerName']),_0xe1ddd3=['ck-suggestion-marker',_0x256a59(_0x1a3479,_0x25b9ca)];let _0x1b7696=0xbb8;return this['activeMarkers']['includes'](_0x1ceec6['markerName'])&&(_0xe1ddd3['push']('ck-suggestion-marker--active'),_0x1b7696=0xbc2),'deletion'==_0x1a3479&&(_0x1b7696+=0x5),{'classes':_0xe1ddd3,'attributes':{'data-suggestion':_0x34f47d,'data-author-id':_0x2ada34},'priority':_0x1b7696};}}),_0xed6412['conversion']['for']('dataDowncast')['add'](_0x45023a=>{_0x45023a['on']('addMarker:suggestion',(_0x27dd10,_0x5cd1d7,_0x4db6e5)=>{if(!_0x4db6e5['options']['showSuggestionHighlights'])return;const _0x48389e=_0x5cd1d7['item'];if(!_0x48389e)return;const _0x1d9f78=_0x4db6e5['mapper']['toViewElement'](_0x48389e);_0xed6412['model']['schema']['isObject'](_0x48389e)&&_0x1d9f78&&!_0x1d9f78['getCustomProperty']('widget')&&_0x1d9f78['is']('containerElement')&&_0xf63f8c(_0x1d9f78,_0x4db6e5['writer']);},{'priority':'high'});}),_0xed6412['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x23b92c,_0x4f8b32)=>{if(!_0x4f8b32['options']['showSuggestionHighlights'])return null;const {type:_0xa5e26,subType:_0x4ce9ce}=this['_splitMarkerName'](_0x23b92c['markerName']);return{'classes':['ck-suggestion-marker',_0x256a59(_0xa5e26,_0x4ce9ce)],'priority':0xbb8};}});const _0x295a85=({showActiveMarkers:_0x2458e6=!0x0,isAttributeSuggestion:_0x5f58e6=!0x1}={})=>(_0x2865b9,_0xc10443,_0x5a396b)=>{if(!_0xc10443['item'])return;const {id:_0x3eda28,authorId:_0x262371}=this['_splitMarkerName'](_0xc10443['markerName']);if(_0x5f58e6){const _0x2fee3d=this['_suggestions']['get'](_0x3eda28),_0x195d68=this['_getAttributeKey'](_0x2fee3d);if(!this['_isBlockAttribute'](_0x195d68))return;}if(_0xc10443['item']['is']('selection'))return void _0x5a396b['consumable']['consume'](_0xc10443['item'],_0x2865b9['name']);const _0x1e23e5=_0x5a396b['mapper']['toViewElement'](_0xc10443['item']);if(_0xc10443['item']['is']('element')&&_0xed6412['model']['schema']['isBlock'](_0xc10443['item'])&&!_0x1e23e5['getCustomProperty']('addHighlight')){_0x5a396b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1e23e5),_0x5a396b['writer']['setAttribute']('data-suggestion',_0x3eda28,_0x1e23e5),_0x5a396b['writer']['setAttribute']('data-author-id',_0x262371,_0x1e23e5),_0x5a396b['mapper']['bindElementToMarker'](_0x1e23e5,_0xc10443['markerName']),_0x2458e6&&(this['activeMarkers']['includes'](_0xc10443['markerName'])?_0x5a396b['writer']['addClass']('ck-suggestion-marker--active',_0x1e23e5):_0x5a396b['writer']['removeClass']('ck-suggestion-marker--active',_0x1e23e5));for(const _0x4cc2da of _0xed6412['model']['createRangeIn'](_0xc10443['item'])['getItems']())_0x5a396b['consumable']['consume'](_0x4cc2da,_0x2865b9['name']);_0x5a396b['consumable']['consume'](_0xc10443['item'],_0x2865b9['name']);}};_0xed6412['conversion']['for']('dataDowncast')['add'](_0x5c4615=>{_0x5c4615['on']('addMarker:suggestion:formatBlock',(_0x546314,_0x3e5ff2,_0x5e697e)=>{_0x5e697e['options']['showSuggestionHighlights']&&_0x295a85({'showActiveMarkers':!0x1})(_0x546314,_0x3e5ff2,_0x5e697e);},{'priority':'highest'});}),_0xed6412['conversion']['for']('dataDowncast')['add'](_0x2a7e77=>{_0x2a7e77['on']('addMarker:suggestion:attribute',(_0x433553,_0x3fe439,_0x4fd54f)=>{_0x4fd54f['options']['showSuggestionHighlights']&&_0x295a85({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x433553,_0x3fe439,_0x4fd54f);},{'priority':'highest'});}),_0xed6412['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3bf830,_0x2f5de3)=>_0x2f5de3['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3bf830['substr'](0xb)}}),_0xed6412['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3475cd,{writer:_0x1b06ac})=>{let _0x26dc89='suggestion:'+_0x3475cd['getAttribute']('suggestion-type')+':'+_0x3475cd['getAttribute']('id');return _0x3475cd['getAttribute']('marker-count')&&(_0x26dc89+=':'+_0x3475cd['getAttribute']('marker-count')),_0x1b06ac['createElement']('$marker',{'data-name':_0x26dc89});}}),_0xed6412['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xed6412['conversion']['for']('editingDowncast')['add'](_0x5f05f3=>{_0x5f05f3['on']('addMarker:suggestion:formatBlock',_0x295a85(),{'priority':'high'});}),_0xed6412['conversion']['for']('editingDowncast')['add'](_0x414368=>{_0x414368['on']('addMarker:suggestion:attribute',_0x295a85({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xed6412['conversion']['for']('editingDowncast')['add'](_0x51d474=>{_0x51d474['on']('removeMarker:suggestion:formatBlock',(_0x4aaa6b,_0x955a05,_0x212408)=>{const _0x7891be=_0x212408['mapper']['markerNameToElements'](_0x955a05['markerName']);if(_0x7891be){for(const _0x16876e of _0x7891be)_0x16876e['getCustomProperty']('addHighlight')||(_0x212408['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x16876e),_0x212408['writer']['removeAttribute']('data-suggestion',_0x16876e),_0x212408['writer']['removeAttribute']('data-author-id',_0x16876e),_0x212408['mapper']['unbindElementFromMarkerName'](_0x16876e,_0x955a05['markerName']));}},{'priority':'high'});}),_0xed6412['conversion']['for']('editingDowncast')['add'](_0x3d7f28=>{_0x3d7f28['on']('removeMarker:suggestion:attribute',(_0x5a64c7,_0x100b12,_0x2aceb7)=>{const _0x4d345d=_0x2aceb7['mapper']['markerNameToElements'](_0x100b12['markerName']);if(!_0x4d345d)return;const {id:_0x4c015b}=this['_splitMarkerName'](_0x100b12['markerName']),_0x34d389=this['_suggestions']['get'](_0x4c015b),_0x251db3=this['_getAttributeKey'](_0x34d389);if(this['_isBlockAttribute'](_0x251db3)){for(const _0x1feef8 of _0x4d345d)_0x1feef8['getCustomProperty']('addHighlight')||(_0x2aceb7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1feef8),_0x2aceb7['writer']['removeAttribute']('data-suggestion',_0x1feef8),_0x2aceb7['writer']['removeAttribute']('data-author-id',_0x1feef8),_0x2aceb7['mapper']['unbindElementFromMarkerName'](_0x1feef8,_0x100b12['markerName']));}},{'priority':'high'});}),_0xed6412['model']['document']['registerPostFixer'](_0x2c8466=>{let _0x3d3a4c=!0x1;const _0x2f2b89=Array['from'](_0xed6412['model']['document']['differ']['getChangedMarkers']()),_0x51512f=new Set();for(const {name:_0x44c5bf,data:_0x446f9c}of _0x2f2b89){const {group:_0x45d0c4,type:_0x504fa4,subType:_0x3bb70b,id:_0x41d971}=this['_splitMarkerName'](_0x44c5bf);if('suggestion'!==_0x45d0c4)continue;const _0x63963a=this['_suggestions']['get'](_0x41d971);if(null!=_0x446f9c['newRange']){'formatInline'==_0x504fa4&&(_0x3d3a4c=_0x3d3a4c||Pt(_0x446f9c['newRange'],_0x44c5bf,_0x2c8466,_0xed6412['model']['schema']));const _0x47247b='attribute'==_0x504fa4&&this['_isBlockAttribute'](_0x3bb70b['split']('|')[0x0]);if(_0x446f9c['newRange']['isCollapsed']||'$graveyard'==_0x446f9c['newRange']['root']['rootName']||'formatBlock'==_0x504fa4&&!Ft(_0x446f9c['newRange'])||_0x47247b&&!Ft(_0x446f9c['newRange'])||'deletion'==_0x504fa4&&!(!Vt(_0x5cee00=_0x446f9c['newRange'])&&!function(_0x598175){return _0x598175['start']['parent']==_0x598175['end']['nodeBefore']&&_0x598175['start']['isAtEnd'];}(_0x5cee00)))_0x2c8466['removeMarker'](_0x44c5bf),_0x3d3a4c=!0x0;else{if(!_0x63963a||!_0x63963a['isInContent'])continue;if(_0x446f9c['newRange']&&_0x446f9c['oldRange']&&_0x446f9c['newRange']['isEqual'](_0x446f9c['oldRange']))continue;_0x51512f['add'](_0x63963a);}}}var _0x5cee00;return _0x51512f['size']>0x0&&(_0x3d3a4c=!!this['_joinWithAdjacentSuggestions'](_0x51512f)||_0x3d3a4c),_0x3d3a4c;}),_0xed6412['model']['document']['registerPostFixer'](_0x4cd093=>{let _0xfc2cea=!0x1;for(const _0x39fde2 of _0xed6412['model']['document']['differ']['getChanges']())if('insert'==_0x39fde2['type'])for(const _0x12d53c of this['_suggestions']['values']()){if(_0x12d53c['isMultiRange']||!_0x12d53c['isInContent'])continue;const _0x388b72='formatBlock'==_0x12d53c['type'],_0x1d7004=this['_getAttributeKey'](_0x12d53c),_0x183ad6=_0x1d7004&&this['_isBlockAttribute'](_0x1d7004);if(!_0x388b72&&!_0x183ad6)continue;const _0xa2a7ec=_0x12d53c['getFirstRange']();if(_0xa2a7ec['start']['parent']!=_0xa2a7ec['end']['parent']&&!_0xa2a7ec['end']['isAtEnd']){const _0x5b035b=_0xed6412['model']['createPositionAt'](_0xa2a7ec['start']['nodeAfter'],'end'),_0x4ae871=_0xed6412['model']['createRange'](_0xa2a7ec['start'],_0x5b035b);_0x4cd093['updateMarker'](_0x12d53c['getFirstMarker'](),{'range':_0x4ae871}),_0xfc2cea=!0x0;}}return _0xfc2cea;}),_0xed6412['model']['document']['registerPostFixer'](_0x488a68=>this['_processAttributeChanges'](_0x488a68)),_0xed6412['model']['document']['registerPostFixer'](_0x5612c3=>!_0x5612c3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5612c3)),_0xed6412['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xed6412['model']['document']['on']('change:data',(_0x210f53,_0x199f60)=>{if(!_0x199f60['isLocal']||_0x199f60['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x421b5f=_0xed6412['model']['document']['differ']['getChanges']();if(0x0==_0x421b5f['length'])return;const _0x1e0f23=[],_0x3775df=_0x421b5f['filter'](_0x5c3ee5=>'attribute'==_0x5c3ee5['type']),_0xd94426=_0x421b5f['filter'](_0x566ecf=>'insert'==_0x566ecf['type']&&'$text'!=_0x566ecf['name']);for(const _0x19d10c of _0x3775df)this['_isRegisteredAttribute'](_0x19d10c['attributeKey'])&&_0x1e0f23['push']({'key':_0x19d10c['attributeKey'],'newValue':_0x19d10c['attributeNewValue'],'oldValue':_0x19d10c['attributeOldValue'],'range':Lt(_0x19d10c['range'],_0xed6412['model'])});for(const _0x1c9eea of _0xd94426){if('rename'!=_0x1c9eea['action']&&'refresh'!=_0x1c9eea['action'])continue;const _0x318efa=Jt(_0x1c9eea['position']['nodeAfter'],_0xed6412['model']),_0x40159f=_0x1c9eea['before'];'rename'==_0x1c9eea['action']&&_0x1e0f23['push']({'key':m,'newValue':_0x1c9eea['name'],'oldValue':_0x40159f['name'],'range':_0x318efa});for(const [_0x4696c9,_0x28bd1c]of _0x40159f['attributes']){if(!this['_isRegisteredAttribute'](_0x4696c9))continue;const _0x309254=_0x1c9eea['attributes']['get'](_0x4696c9);_0x28bd1c!==_0x309254&&_0x1e0f23['push']({'key':_0x4696c9,'newValue':_0x309254,'oldValue':_0x28bd1c,'range':_0x318efa});}for(const [_0x293a25,_0x21cd15]of _0x1c9eea['attributes'])this['_isRegisteredAttribute'](_0x293a25)&&(_0x40159f['attributes']['has'](_0x293a25)||_0x1e0f23['push']({'key':_0x293a25,'newValue':_0x21cd15,'oldValue':null,'range':_0x318efa}));}0x0!=_0x1e0f23['length']&&_0xed6412['model']['enqueueChange'](_0x199f60,_0x1e2d7b=>{const _0x28164f=_0x1cdff5();for(const {range:_0x30cf90,key:_0x166eb0,oldValue:_0x554612,newValue:_0x1a78e4}of _0x1e0f23)this['markAttributeChange'](_0x30cf90,_0x166eb0,_0x554612,_0x1a78e4,{'groupId':_0x28164f});this['_reduceExistingSuggestions'](_0x1e2d7b,_0x1e0f23);});},{'priority':'lowest'}),_0xed6412['model']['markers']['on']('update:suggestion',(_0x20c532,_0x3b8f30,_0x5889fa)=>{if(null==_0x5889fa){const {id:_0x1fff86}=this['_splitMarkerName'](_0x3b8f30['name']),_0x550259=this['_suggestions']['get'](_0x1fff86);_0x550259&&_0x550259['addMarkerName'](_0x3b8f30['name']);}}),_0xed6412['model']['document']['on']('change:data',()=>{const _0x39f6c6=Array['from'](_0xed6412['model']['document']['differ']['getChangedMarkers']())['filter'](_0x23c36f=>'suggestion'===this['_splitMarkerName'](_0x23c36f['name'])['group']);if(0x0===_0x39f6c6['length'])return;_0x39f6c6['sort']((_0x2d203b,_0x270401)=>{const _0xb20d61=_0x2d203b['data']['oldRange'],_0x3c9069=_0x270401['data']['oldRange'];return null===_0xb20d61&&null===_0x3c9069?0x0:null===_0xb20d61&&null!==_0x3c9069?-0x1:null!==_0xb20d61&&null===_0x3c9069?0x1:_0xb20d61['start']['isBefore'](_0x3c9069['start'])?-0x1:0x1;});const _0x41b42d=new Set(),_0x36c420=new Set();for(const {name:_0x4d20fc,data:_0x2a1788}of _0x39f6c6){const {id:_0x19e314}=this['_splitMarkerName'](_0x4d20fc);if(null===_0x2a1788['oldRange']){const _0x523666=this['_handleNewSuggestionMarker'](_0x4d20fc);_0x36c420['add'](_0x523666);}else{const _0x1023bb=this['_suggestions']['get'](_0x19e314);null!==_0x2a1788['newRange']||_0x1023bb['isInContent']?(_0x41b42d['add'](_0x1023bb['head']),_0x36c420['add'](_0x1023bb)):this['_removeSuggestion'](_0x1023bb);}}_0x36c420['size']>0x0&&this['_refreshSuggestionsChain'](_0x36c420);for(const _0x492357 of _0x41b42d)this['fire']('suggestionChanged',_0x492357);}),_0xed6412['model']['on']('applyOperation',(_0x268d1b,_0x5c2549)=>{const _0x3572c0=_0x5c2549[0x0];if(!this['_suggestions']['size'])return;if(!_0x3572c0['isDocumentOperation'])return;if(_0x3572c0['batch']['isUndo']||!_0x3572c0['batch']['isLocal'])return;let _0x444760,_0x35f97f;switch(_0x3572c0['type']){case'insert':_0x444760=_0xed6412['model']['createPositionAt'](_0x3572c0['position']),_0x35f97f=_0x444760['getShiftedBy'](_0x3572c0['howMany']);break;case'split':_0x444760=_0xed6412['model']['createPositionAt'](_0x3572c0['splitPosition']),_0x35f97f=_0xed6412['model']['createPositionAt'](_0x3572c0['moveTargetPosition']);break;case'move':_0x444760=_0xed6412['model']['createPositionAt'](_0x3572c0['targetPosition']),_0x35f97f=_0x444760['getShiftedBy'](_0x3572c0['howMany']);break;default:return;}const _0x3da030=_0xed6412['model']['createRange'](_0x444760,_0x35f97f);_0xed6412['model']['change'](()=>{for(const {suggestion:_0x3624ed,meta:_0x217104}of this['_findSuggestions'](_0x3da030)){if(_0x3624ed['isMultiRange'])continue;if('formatInline'==_0x3624ed['type'])continue;const _0x5617fc=this['_getAttributeKey'](_0x3624ed);if(_0x5617fc&&this['_isBlockAttribute'](_0x5617fc)&&'split'!=_0x3572c0['type'])continue;const _0x1d3b3f=_0x3624ed['data']&&_0x3624ed['data']['multipleBlocks'];('formatBlock'!=_0x3624ed['type']||'split'==_0x3572c0['type']&&!_0x1d3b3f)&&(_0x217104['containsRangeInObject']||'insertion'==_0x3624ed['type']&&_0x217104['isOwn']||_0x3624ed['getFirstRange']()['containsRange'](_0x3da030)&&this['_breakSuggestionMarker'](_0x3624ed,_0x444760,_0x35f97f));}});},{'priority':'lowest'}),_0xed6412['model']['on']('deleteContent',(_0x40b47a,_0x346853)=>{const _0x116482=_0x346853[0x0],_0xa2d31d=_0x346853[0x1];if(_0xa2d31d&&_0xa2d31d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x116482['isCollapsed'])return;const _0x5fa2fa=_0xed6412['model']['schema'],{start:_0x240f7c,end:_0x3b4fa0}=_0x116482['getFirstRange'](),_0x9ce155=_0x240f7c['nodeAfter']&&_0x5fa2fa['isLimit'](_0x240f7c['nodeAfter'])?null:_0x5fa2fa['getNearestSelectionRange'](_0x240f7c,'forward'),_0x20e2f1=_0x3b4fa0['nodeBefore']&&_0x5fa2fa['isLimit'](_0x3b4fa0['nodeBefore'])?null:_0x5fa2fa['getNearestSelectionRange'](_0x3b4fa0,'backward'),_0x4aa9b0=_0xed6412['model']['createRange'](_0x9ce155?_0x9ce155['start']:_0x240f7c,_0x20e2f1?_0x20e2f1['end']:_0x3b4fa0);_0xed6412['model']['change'](_0x27693a=>{this['markDeletion'](_0x4aa9b0);const _0x546b77=_0xed6412['model']['schema']['getNearestSelectionRange'](_0x4aa9b0['start']);_0x116482['is']('documentSelection')?_0x27693a['setSelection'](_0x546b77):_0x116482['setTo'](_0x546b77);}),_0x40b47a['stop']();},{'priority':_0x2e7237['normal']+0xa}),_0xed6412['model']['on']('insertContent',(_0x285aab,_0x4f80cb)=>{const _0x298d0d=_0x4f80cb[_0x4f80cb['length']-0x1];_0x298d0d&&_0x298d0d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xed6412['model']['change'](()=>{let _0x419512=_0xed6412['model']['insertContent'](_0x4f80cb[0x0],_0x4f80cb[0x1],_0x4f80cb[0x2],{'forceDefaultExecution':!0x0});if(!_0x419512)return;_0x285aab['return']=_0x419512['clone']();const _0x1484f1=_0x419512['end']['nodeBefore'],_0x9c6d45=_0xed6412['model']['schema'];_0x1484f1&&_0x9c6d45['isBlock'](_0x1484f1)&&!_0x9c6d45['isObject'](_0x1484f1)&&(_0x419512=_0xed6412['model']['createRange'](_0x419512['start'],_0xed6412['model']['createPositionAt'](_0x1484f1,'end'))),this['markInsertion'](_0x419512);}),_0x285aab['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xe97679=new O(_0xed6412,this['_suggestions']);_0xed6412['commands']['add']('acceptSuggestion',_0xe97679),this['enableCommand']('acceptSuggestion');const _0x39d207=new R(_0xed6412,this['_suggestions']);_0xed6412['commands']['add']('discardSuggestion',_0x39d207),this['enableCommand']('discardSuggestion'),_0xed6412['commands']['add']('acceptAllSuggestions',new x(_0xed6412,_0xe97679,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xed6412['commands']['add']('discardAllSuggestions',new x(_0xed6412,_0x39d207,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xed6412['commands']['add']('acceptSelectedSuggestions',new E(_0xed6412,_0xe97679,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xed6412['commands']['add']('discardSelectedSuggestions',new E(_0xed6412,_0x39d207,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x205c92=_0xed6412['plugins']['get']('CommentsRepository');this['listenTo'](_0x205c92,'addComment',(_0x1a81c9,{threadId:_0x13eba5})=>{const _0x5ae572=this['_suggestions']['get'](_0x13eba5);_0x5ae572&&_0x5ae572['commentThread']&&0x1===_0x5ae572['commentThread']['length']&&this['_updateSuggestionData'](_0x13eba5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x205c92,'removeComment',(_0x244440,{threadId:_0x22d76b})=>{const _0x34530b=this['_suggestions']['get'](_0x22d76b);_0x34530b&&_0x34530b['commentThread']&&!_0x34530b['commentThread']['length']&&this['_updateSuggestionData'](_0x22d76b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x19930c){const _0x4da1dc=_0x2c0791([0x6c,0x4e,0x4f,0x47,0x42,0x36,0x49,0x44,0x64,0x46,0x52,0x34,0x5a,0x67,0x79,0x41,0x73,0x6f,0x6d,0x74,0x54,0x68,0x6b,0x4c,0x50,0x59,0x69,0x66,0x55,0x53,0x75,0x39,0x7a,0x58,0x56,0x43,0x6a,0x62,0x51,0x4b,0x35,0x30,0x37,0x31,0x6e,0x4a,0x48,0x57,0x65,0x72,0x33,0x70,0x45,0x78,0x38,0x71,0x63,0x4d,0x77,0x61,0x76,0x32]),_0x466718=0x4b88f532,_0x56399e=0x4b8fac4a^_0x466718,_0xdbd2fa=window[_0x2c0791([0x44,0x61,0x74,0x65])][_0x2c0791([0x6e,0x6f,0x77])](),_0x60285f=_0x19930c[_0x2c0791([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3595e8=new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aa8a6=>{_0x60285f[_0x2c0791([0x6f,0x6e,0x63,0x65])](_0x2c0791([0x72,0x65,0x61,0x64,0x79]),_0x3aa8a6);}),_0x1d21e4={[_0x2c0791([0x6b,0x74,0x79])]:_0x2c0791([0x45,0x43]),[_0x2c0791([0x75,0x73,0x65])]:_0x2c0791([0x73,0x69,0x67]),[_0x2c0791([0x63,0x72,0x76])]:_0x2c0791([0x50,0x2d,0x32,0x35,0x36]),[_0x2c0791([0x78])]:_0x2c0791([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]),[_0x2c0791([0x79])]:_0x2c0791([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]),[_0x2c0791([0x61,0x6c,0x67])]:_0x2c0791([0x45,0x53,0x32,0x35,0x36])},_0x23e2a7=_0x60285f[_0x2c0791([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c0791([0x67,0x65,0x74])](_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c65f8(){let _0x5bd913,_0x184668=null,_0x55b5a1=null;try{if(_0x23e2a7==_0x2c0791([0x47,0x50,0x4c]))return _0x2c0791([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5bd913=_0x481ad6(),!_0x5bd913)return _0x2c0791([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5bd913[_0x2c0791([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55b5a1=_0x5ca42b(_0x5bd913[_0x2c0791([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5bd913[_0x2c0791([0x6a,0x74,0x69])])),await _0x438a1d()?_0x3a86d2()?_0x487540()?_0x2c0791([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x345687()?(_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c0791([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x184668=_0x452bff(_0x2c0791([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c0791([0x74,0x72,0x69,0x61,0x6c])&&(_0x184668=_0x452bff(_0x2c0791([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c0791([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x184668=_0x452bff(_0x2c0791([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1103ee()):_0x2c0791([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c0791([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c0791([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x268fc0){return _0x2c0791([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x487540(){const _0x525e7c=[_0x2c0791([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c0791([0x74,0x72,0x69,0x61,0x6c])][_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xdbd2fa/0x3e8:0xe10*_0x56399e;return _0x5bd913[_0x2c0791([0x65,0x78,0x70])]<_0x525e7c;}function _0x3a86d2(){const _0xc8f9a1=_0x5bd913[_0x2c0791([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xc8f9a1)return!0x1;if(_0xc8f9a1[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0791([0x2a])))return!0x0;if(_0xc8f9a1[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0791([0x54,0x43])))return!0x0;if(_0xc8f9a1[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0791([0x52,0x54,0x43]))){if(_0x168c6b())return!0x0;if(_0x4d5ab0()||_0x140544())return!0x0;}return!0x1;}function _0x345687(){const _0x1f916e=_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f916e||0x0==_0x1f916e[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x107a12}=new URL(window[_0x2c0791([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1f916e[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x107a12))return!0x0;const _0x675ba2=_0x107a12[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])](_0x2c0791([0x2e]));return _0x1f916e[_0x2c0791([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x276226=>_0x276226[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0791([0x2a])))[_0x2c0791([0x6d,0x61,0x70])](_0x5707f2=>_0x5707f2[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])](_0x2c0791([0x2e])))[_0x2c0791([0x73,0x6f,0x6d,0x65])](_0x25bdc4=>_0x675ba2[_0x2c0791([0x65,0x76,0x65,0x72,0x79])]((_0x16c69f,_0x4a9658)=>_0x25bdc4[_0x4a9658]===_0x16c69f||_0x25bdc4[_0x4a9658]===_0x2c0791([0x2a])));}function _0x1103ee(){return _0x184668&&_0x55b5a1?new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbc61b8,_0x2f695d)=>{_0x184668[_0x2c0791([0x74,0x68,0x65,0x6e])](_0xbc61b8,_0x2f695d),_0x55b5a1[_0x2c0791([0x74,0x68,0x65,0x6e])](_0x341c0a=>{_0x341c0a!=_0x2c0791([0x56,0x61,0x6c,0x69,0x64])&&_0xbc61b8(_0x341c0a);},_0x2f695d);}):_0x184668||_0x55b5a1||_0x2c0791([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ca42b(_0x1fe2bb,_0x10e8ed){return new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34f1a9=>{if(_0x2de900())return _0x34f1a9(_0x2c0791([0x56,0x61,0x6c,0x69,0x64]));_0x4b55b6(),_0x60285f[_0x2c0791([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c0791([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4f55fd=!0x1;const _0x140d20=_0x1cdff5();function _0x140e73(_0x58650e){return!!_0x58650e&&(typeof _0x58650e===_0x2c0791([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58650e===_0x2c0791([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58650e[_0x2c0791([0x74,0x68,0x65,0x6e])]===_0x2c0791([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58650e[_0x2c0791([0x63,0x61,0x74,0x63,0x68])]===_0x2c0791([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52961a(_0xc048a){_0x51cc59(_0xc048a)[_0x2c0791([0x74,0x68,0x65,0x6e])](_0x33500d=>{if(!_0x33500d||_0x33500d[_0x2c0791([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c0791([0x6f,0x6b]))return _0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2e10ca(_0x23eef3(_0x140d20+_0x10e8ed))!=_0x33500d[_0x2c0791([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c0791([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c0791([0x74,0x68,0x65,0x6e])](_0x3e2730=>(_0x4c9d19(),_0x3e2730),()=>{const _0x282ae1=_0xeadfe4();return null==_0x282ae1?(_0x4c9d19(),_0x2c0791([0x56,0x61,0x6c,0x69,0x64])):_0x2c0791(_0xdbd2fa-_0x282ae1>(0x6f847132^_0x466718)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c0791([0x74,0x68,0x65,0x6e])](_0x34f1a9)[_0x2c0791([0x63,0x61,0x74,0x63,0x68])](()=>{_0x34f1a9(_0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x210d63=0x4bbe1bb2^_0x466718;function _0x4c9d19(){const _0x559b7=_0x2c0791([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e10ca(_0x23eef3(_0x1fe2bb)),_0x52eb3d=_0xe407be(_0x2e10ca(window[_0x2c0791([0x4d,0x61,0x74,0x68])][_0x2c0791([0x63,0x65,0x69,0x6c])](_0xdbd2fa/_0x210d63)));window[_0x2c0791([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c0791([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x559b7,_0x52eb3d);}function _0xeadfe4(){const _0x73294a=_0x2c0791([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e10ca(_0x23eef3(_0x1fe2bb)),_0x4cd893=window[_0x2c0791([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c0791([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x73294a);return _0x4cd893?window[_0x2c0791([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe407be(_0x4cd893),0x10)*_0x210d63:null;}function _0x51cc59(_0x1c6549){return new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xac5152,_0x12192b)=>{_0x1c6549[_0x2c0791([0x74,0x68,0x65,0x6e])](_0xac5152,_0x12192b),window[_0x2c0791([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12192b,0x4b8921f2^_0x466718);});}}_0x60285f[_0x2c0791([0x6f,0x6e])](_0x2c0791([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e54a3,_0x3e7cd3)=>{if(_0x3e7cd3[0x0]!=_0x1fe2bb)return _0x34f1a9(_0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e7cd3[0x1]={..._0x3e7cd3[0x1],[_0x2c0791([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x140d20};},{[_0x2c0791([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c0791([0x68,0x69,0x67,0x68])}),_0x60285f[_0x2c0791([0x6f,0x6e])](_0x2c0791([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bde0d=>{_0x140e73(_0x4bde0d[_0x2c0791([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4f55fd=!0x0,_0x52961a(_0x4bde0d[_0x2c0791([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c0791([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c0791([0x6c,0x6f,0x77])}),_0x3595e8[_0x2c0791([0x74,0x68,0x65,0x6e])](()=>{_0x4f55fd||_0x34f1a9(_0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2de900(){return _0x60285f[_0x2c0791([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c0791([0x76,0x69,0x65,0x77])][_0x2c0791([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c0791([0x61,0x75,0x74,0x6f]);}function _0x4b55b6(){_0x60285f[_0x2c0791([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c0791([0x76,0x69,0x65,0x77])][_0x2c0791([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c0791([0x61,0x75,0x74,0x6f]);}}function _0x452bff(_0x3375e9){const _0x24daa6=[new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f3061=>setTimeout(_0x2f3061,0x4b81cbfe^_0x466718)),_0x3595e8[_0x2c0791([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22549d=>{let _0x5c5d95=0x0;_0x60285f[_0x2c0791([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c0791([0x6f,0x6e])](_0x2c0791([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x292cc9,_0x7737fa)=>{_0x7737fa[0x0][_0x2c0791([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c5d95++,_0x5c5d95==(0x4b88f4ca^_0x466718)&&(_0x22549d(),_0x292cc9[_0x2c0791([0x6f,0x66,0x66])]());});}))];return window[_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c0791([0x72,0x61,0x63,0x65])](_0x24daa6)[_0x2c0791([0x74,0x68,0x65,0x6e])](()=>_0x3375e9);}async function _0x3f30b3(){await _0x3595e8,_0x60285f[_0x2c0791([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c0791([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41e6c2,_0x60285f[_0x2c0791([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c0791([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41e6c2,_0x60285f[_0x2c0791([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c0791([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x168c6b(){return _0xa31b10(_0x2c0791([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4696bd(_0x2c0791([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2c0791([0x73,0x74,0x61,0x74,0x65])]==_0x2c0791([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4d5ab0(){return _0xa31b10(_0x2c0791([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 _0x140544(){return _0xa31b10(_0x2c0791([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x12fbb9(_0x2fd666){const _0x489a67=_0x42a488();_0x60285f[_0x489a67]=_0x2c0791([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fd666,_0x2fd666!=_0x2c0791([0x56,0x61,0x6c,0x69,0x64])&&_0x3f30b3();}function _0x42a488(){const _0x58b1e0=window[_0x2c0791([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c0791([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c0791([0x6e,0x6f,0x77])]())[_0x2c0791([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c0791([0x2e]),'');let _0x528494=_0x2c0791([0x6c]);for(let _0x2218db=0x0;_0x2218db<_0x58b1e0[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2218db+=0x2){let _0x9d892f=window[_0x2c0791([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58b1e0[_0x2c0791([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2218db,_0x2218db+0x2));_0x9d892f>=_0x4da1dc[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x9d892f-=_0x4da1dc[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x528494+=_0x4da1dc[_0x9d892f];}return _0x528494;}function _0x481ad6(){const _0x365b46=_0x23e2a7[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])](_0x2c0791([0x2e]));if(0x3!=_0x365b46[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x561bef(_0x365b46[0x1]);function _0x561bef(_0x2c7fa9){const _0x357d59=_0x2a733d(_0x2c7fa9);return _0x357d59&&_0x4dc9c5()?_0x357d59:null;function _0x4dc9c5(){const _0x566b6f=_0x357d59[_0x2c0791([0x6a,0x74,0x69])],_0x297a18=window[_0x2c0791([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x566b6f[_0x2c0791([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x566b6f[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d3755={..._0x357d59,[_0x2c0791([0x6a,0x74,0x69])]:_0x566b6f[_0x2c0791([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x566b6f[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d3755[_0x2c0791([0x76,0x63])],_0x23eef3(_0x1d3755)==_0x297a18;}}}async function _0x438a1d(){let _0xc11f0d=!0x0;try{const _0x261d12=_0x23e2a7[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])](_0x2c0791([0x2e])),[_0x174bbe,_0x531ffe,_0x320c68]=_0x261d12;return _0x2b43d7(_0x174bbe),await _0x101c04(_0x174bbe,_0x531ffe,_0x320c68),_0xc11f0d;}catch(_0x1a1b7a){return!0x1;}function _0x2b43d7(_0x303d27){const _0x6eb725=_0x2a733d(_0x303d27);_0x6eb725&&_0x6eb725[_0x2c0791([0x61,0x6c,0x67])]==_0x2c0791([0x45,0x53,0x32,0x35,0x36])||(_0xc11f0d=!0x1);}async function _0x101c04(_0x30c88b,_0x553d59,_0x593bc0){const _0x35e4a8=window[_0x2c0791([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c0791([0x66,0x72,0x6f,0x6d])](_0x36f5c5(_0x593bc0),_0x1f0780=>_0x1f0780[_0x2c0791([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x234ad9=new window[(_0x2c0791([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c0791([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30c88b+_0x2c0791([0x2e])+_0x553d59),_0x149c62=window[_0x2c0791([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c0791([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x149c62)return;const _0x4c0a16=await _0x149c62[_0x2c0791([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c0791([0x6a,0x77,0x6b]),_0x1d21e4,{[_0x2c0791([0x6e,0x61,0x6d,0x65])]:_0x2c0791([0x45,0x43,0x44,0x53,0x41]),[_0x2c0791([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c0791([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c0791([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x149c62[_0x2c0791([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c0791([0x6e,0x61,0x6d,0x65])]:_0x2c0791([0x45,0x43,0x44,0x53,0x41]),[_0x2c0791([0x68,0x61,0x73,0x68])]:{[_0x2c0791([0x6e,0x61,0x6d,0x65])]:_0x2c0791([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c0a16,_0x35e4a8,_0x234ad9)||(_0xc11f0d=!0x1);}}function _0x2a733d(_0x46c23c){return _0x46c23c[_0x2c0791([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c0791([0x65,0x79]))?JSON[_0x2c0791([0x70,0x61,0x72,0x73,0x65])](_0x36f5c5(_0x46c23c)):null;}function _0x36f5c5(_0xf3d094){return window[_0x2c0791([0x61,0x74,0x6f,0x62])](_0xf3d094[_0x2c0791([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c0791([0x2b]))[_0x2c0791([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c0791([0x2f])));}function _0x23eef3(_0x42259d){let _0x1576bf=0x1505;function _0x4b553a(_0x5abf35){for(let _0x14a53c=0x0;_0x14a53c<_0x5abf35[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14a53c++){const _0x2865d0=_0x5abf35[_0x2c0791([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14a53c);_0x1576bf=(_0x1576bf<<0x5)+_0x1576bf+_0x2865d0,_0x1576bf&=_0x1576bf;}}function _0x3c20cb(_0x11186c){Array[_0x2c0791([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11186c)?_0x11186c[_0x2c0791([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c20cb):_0x11186c&&typeof _0x11186c==_0x2c0791([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c0791([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11186c)[_0x2c0791([0x73,0x6f,0x72,0x74])]()[_0x2c0791([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5714d1,_0x363224])=>{_0x4b553a(_0x5714d1),_0x3c20cb(_0x363224);}):_0x4b553a(window[_0x2c0791([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11186c));}return _0x3c20cb(_0x42259d),_0x1576bf>>>0x0;}function _0x2e10ca(_0x448d87){return _0x448d87[_0x2c0791([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c0791([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c0791([0x30]));}function _0xe407be(_0x3e0cbd){return _0x3e0cbd[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c0791([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c0791([0x6a,0x6f,0x69,0x6e])]('');}function _0xa31b10(_0x406391){return _0x60285f[_0x2c0791([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c0791([0x68,0x61,0x73])](_0x406391);}function _0x4696bd(_0x221557){return _0x60285f[_0x2c0791([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c0791([0x67,0x65,0x74])](_0x221557);}function _0x41e6c2(){}function _0x2c0791(_0x5b5200){return _0x5b5200['map'](_0x2e5a49=>String['fromCharCode'](_0x2e5a49))['join']('');}_0x12fbb9(await _0x2c65f8());}(this);}set['adapter'](_0x59b730){if(this['_adapter'])throw new _0x1c48ec('track-changes-adapter-already-set',this);this['_adapter']=_0x59b730;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4c8a60=!0x1,toJSON:_0x168185=!0x1}={}){const _0xcaa2ca=[];for(const _0x5fa4e8 of this['_suggestions']['values']())_0x4c8a60&&!_0x5fa4e8['isInContent']||_0xcaa2ca['push'](_0x5fa4e8);return _0x168185?_0xcaa2ca['map'](_0x40f2c8=>_0x40f2c8['toJSON']()):_0xcaa2ca;}['getSuggestion'](_0x34c6cb){const _0x225821=this['_suggestions']['get'](_0x34c6cb);if(!_0x225821)throw new _0x1c48ec('track-changes-suggestion-not-found',this);return _0x225821;}['hasSuggestion'](_0x46d78e){return this['_suggestions']['has'](_0x46d78e);}['addSuggestionData'](_0x546f4d){const {authorId:_0x1130dc,id:_0x2e6f00,attributes:_0x235572}=_0x546f4d,[_0x2b7f70,_0x5c7dec]=_0x546f4d['type']['split'](':'),_0x484b41=this['_suggestions']['get'](_0x2e6f00)||this['_createSuggestion'](_0x2b7f70,_0x5c7dec,_0x2e6f00,_0x1130dc,_0x235572);if(this['_addThreadToSuggestion'](_0x484b41),this['_checkSuggestionCorrectness'](_0x484b41,_0x2b7f70,_0x5c7dec||null,_0x1130dc),_0x484b41['createdAt']=_0x546f4d['createdAt'],_0x484b41['_isDataLoaded']=!0x0,_0x235572&&_0x235572['@external']){const _0xcc83af=_0x235572['@external'],_0x4ab7da=this['_getExternalAuthor'](_0xcc83af['authorName']);_0x484b41['authoredAt']=_0xcc83af['createdAt'],_0x484b41['author']=_0x4ab7da,_0x484b41['isExternal']=!0x0;}else _0x484b41['authoredAt']=_0x546f4d['createdAt'];switch(_0x546f4d['data']&&(_0x484b41['data']=_0x546f4d['data']),_0x546f4d['attributes']&&(_0x484b41['attributes']=_0x546f4d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x484b41['_saved']=!0x0),this['_suggestionState']['get'](_0x484b41)){case'notReady':this['_suggestionState']['set'](_0x484b41,'dataReady');break;case'markerReady':_0x484b41['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x484b41])),this['_refreshSuggestionsChain'](new Set([_0x484b41])),this['_suggestionState']['set'](_0x484b41,'ready'),this['fire']('suggestionLoaded',_0x484b41)):this['_suggestionState']['set'](_0x484b41,'removed');}return _0x484b41;}['acceptSuggestion'](_0x109e82){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xb31253 of _0x109e82['getAllAdjacentSuggestions']())_0xb31253['accept']();});});}['discardSuggestion'](_0x3dc9e1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x255cd3 of _0x3dc9e1['getAllAdjacentSuggestions']())_0x255cd3['discard']();});});}['enableCommand'](_0x33caa9,_0x20c6f6){const _0x57158a=this['editor']['commands']['get'](_0x33caa9);if(!_0x57158a)throw new _0x1c48ec('track-changes-command-not-found',this,{'commandName':_0x33caa9});if(this['_enabledCommands']['has'](_0x57158a))throw new _0x1c48ec('track-changes-enable-command-twice',this,{'commandName':_0x33caa9});this['_enabledCommands']['add'](_0x57158a),_0x20c6f6&&_0x57158a['on']('execute',(_0x13f1ee,_0x5417dd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5417dd['length']>0x0&&_0x5417dd[_0x5417dd['length']-0x1]&&_0x5417dd[_0x5417dd['length']-0x1]['forceDefaultExecution']?_0x5417dd['pop']():(_0x13f1ee['return']=_0x20c6f6((..._0x14d168)=>_0x57158a['execute'](..._0x14d168,{'forceDefaultExecution':!0x0}),..._0x5417dd),_0x13f1ee['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x11ba24){let _0x43cea5,_0x3b90e4;const _0xee96c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x43cea5=_0x11ba24();}catch(_0x144e5a){_0x3b90e4=_0x144e5a;}return _0xee96c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3b90e4&&_0x1c48ec['rethrowUnexpectedError'](_0x3b90e4,this),_0x43cea5;}['markInsertion'](_0x5bbf1f,_0x488f34=null,_0x1da845={}){if(_0x5bbf1f['isCollapsed'])return null;const _0x11d3d6=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xa656f7,meta:_0x175d9b}of this['_findSuggestions'](_0x5bbf1f,'insertion'))if(_0x175d9b['isOwn']){if(!_0x175d9b['isNextTo']){if(_0x175d9b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0xa656f7,_0x1da845))continue;return _0xa656f7;}if(zt(_0xa656f7,_0x1da845))return _0xa656f7;this['_breakSuggestionMarker'](_0xa656f7,_0x5bbf1f['start'],_0x5bbf1f['end']);break;}if(_0x488f34==_0xa656f7['subType']&&zt(_0xa656f7,_0x1da845)){const _0x3a9440=_0xa656f7['getFirstRange']();return _0x3a9440['start']['isEqual'](_0x5bbf1f['end'])?this['_setSuggestionRange'](_0xa656f7,this['_model']['createRange'](_0x5bbf1f['start'],_0x3a9440['end'])):this['_setSuggestionRange'](_0xa656f7,this['_model']['createRange'](_0x3a9440['start'],_0x5bbf1f['end'])),_0xa656f7;}}const _0x3e2098=_0x1cdff5(),_0x4426e9=_0x11d3d6['id'],_0x2227cc=_0x488f34?'insertion:'+_0x488f34:'insertion',_0x32d1ca=this['_setSuggestionData']({'id':_0x3e2098,'type':_0x2227cc,'createdAt':new Date(),'authorId':_0x4426e9,'attributes':_0x1da845});return this['_addSuggestionMarker'](_0x2227cc,_0x3e2098,_0x4426e9,_0x5bbf1f),_0x32d1ca;}['markMultiRangeInsertion'](_0x5ed0ce,_0x246a37='multi',_0x3fc192={}){const _0x3f7bf1=this['editor']['plugins']['get']('Users')['me'],_0x2c03df=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x246a37,'join');for(const _0x32abbb of this['getSuggestions']())if(_0x32abbb['author']['id']==_0x3f7bf1['id']&&'insertion'==_0x32abbb['type']&&_0x32abbb['subType']==_0x246a37&&zt(_0x32abbb,_0x3fc192)&&(_0x2c03df(_0x32abbb['getRanges'](),_0x5ed0ce)||_0x2c03df(_0x5ed0ce,_0x32abbb['getRanges']()))){for(const _0x495022 of _0x5ed0ce)_0x32abbb['addRange'](_0x495022);return _0x32abbb;}for(const {suggestion:_0x5196a9,meta:_0x1774e6}of this['_findSuggestions'](_0x5ed0ce,'insertion')){if(!_0x1774e6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1774e6['containsRangeInObject'])continue;if(!zt(_0x5196a9,_0x3fc192))continue;let _0x33200c=!0x0;for(const _0xec7f31 of _0x5196a9['getRanges']())for(const _0x283eab of _0x5ed0ce)if(!_0xec7f31['containsRange'](_0x283eab)){_0x33200c=!0x1;break;}if(_0x33200c)return _0x5196a9;}const _0x450efb=_0x1cdff5(),_0x52c8e8=_0x3f7bf1['id'],_0x2549c4='insertion:'+_0x246a37,_0x1a4fb6=this['_setSuggestionData']({'id':_0x450efb,'type':_0x2549c4,'createdAt':new Date(),'authorId':_0x52c8e8,'attributes':_0x3fc192});for(const _0x37a6aa of _0x5ed0ce)this['_addSuggestionMarker'](_0x2549c4,_0x450efb,_0x52c8e8,_0x37a6aa,u['getMultiRangeId']());return _0x1a4fb6;}['markInlineFormat'](_0x3c8e18,_0x53a3f1,_0x5283b7=null,_0x4083c3={}){if(_0x5283b7=_0x5283b7||Gt(_0x53a3f1),_0x3c8e18['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5b5a50=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5283b7,'accept');return this['forceDefaultExecution'](()=>_0x5b5a50([_0x3c8e18],_0x53a3f1,_0x4083c3)),null;}const _0x3199f2=this['editor']['plugins']['get']('Users')['me'],_0x9d3697=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xf3f96d,meta:_0x45e30c}of this['_findSuggestions'](_0x3c8e18,'insertion'))_0x45e30c['isOwn']&&!_0x45e30c['isInsideObject']&&_0x9d3697['push'](..._0xf3f96d['getRanges']());}const _0x3ac578=function(_0x2d2a05,_0xf184ee){const _0x66a321=[];for(const _0x348996 of _0xf184ee){const _0x3fffdf=_0x2d2a05['getIntersection'](_0x348996);_0x3fffdf&&_0x66a321['push'](_0x3fffdf);}return _0x66a321;}(_0x3c8e18,_0x9d3697),_0xbdb6ba=function(_0x5a9931,_0x210f9d){const _0x425ce5=[_0x5a9931];for(const _0x56cd8b of _0x210f9d){let _0x4d8b40=0x0;for(;_0x4d8b40<_0x425ce5['length'];){const _0x8ed8e2=_0x425ce5[_0x4d8b40]['getDifference'](_0x56cd8b);_0x425ce5['splice'](_0x4d8b40,0x1,..._0x8ed8e2),_0x4d8b40+=_0x8ed8e2['length'];}}return _0x425ce5;}(_0x3c8e18,_0x9d3697);_0x3ac578['length']&&this['_model']['change'](()=>{for(const _0x405fcb of _0x3ac578){const _0x236aad=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5283b7,'accept');this['forceDefaultExecution'](()=>_0x236aad([_0x405fcb],_0x53a3f1,_0x4083c3));}});for(const _0x170b0c of _0xbdb6ba){let _0x3e3db2=null,_0x34dbb9=_0x170b0c['start'],_0x39db31=_0x170b0c['end'];for(const {suggestion:_0x143efd,meta:_0x1739a3}of this['_findSuggestions'](_0x170b0c,'formatInline')){if(!_0x1739a3['isOwn'])continue;if(_0x143efd['subType']!=_0x5283b7)continue;if(!zt(_0x143efd,_0x4083c3))continue;const _0x229c62=_0x143efd['getFirstRange']();if(_0x229c62['containsRange'](_0x170b0c,!0x0))return null;_0x34dbb9=_0x34dbb9['isBefore'](_0x229c62['start'])?_0x34dbb9:_0x229c62['start'],_0x39db31=_0x39db31['isAfter'](_0x229c62['end'])?_0x39db31:_0x229c62['end'],_0x3e3db2?_0x229c62['start']['isBefore'](_0x3e3db2['getFirstRange']()['start'])?(_0x3e3db2['removeMarkers'](),_0x3e3db2=_0x143efd):_0x143efd['removeMarkers']():_0x3e3db2=_0x143efd;}const _0x42f39d=this['_model']['createRange'](_0x34dbb9,_0x39db31);if(_0x3e3db2)this['_setSuggestionRange'](_0x3e3db2,_0x42f39d);else{const _0x579cc9=_0x1cdff5(),_0x545e1d=_0x3199f2['id'];this['_setSuggestionData']({'id':_0x579cc9,'type':'formatInline:'+_0x5283b7,'data':_0x53a3f1,'createdAt':new Date(),'authorId':_0x545e1d,'attributes':_0x4083c3}),this['_addSuggestionMarker']('formatInline:'+_0x5283b7,_0x579cc9,_0x545e1d,_0x42f39d);}}return null;}['markBlockFormat'](_0x35bda8,_0x4a468d,_0x4feb13=[],_0x60980e=null,_0x1488e0={}){_0x4a468d['formatGroupId']||(_0x4a468d['formatGroupId']=_0x4a468d['commandName']),_0x4a468d['multipleBlocks']=_0x35bda8['is']('range'),_0x60980e=_0x60980e||Gt(_0x4a468d);const _0x2b3019=_0x4feb13['map'](_0xa5d92a=>Jt(_0xa5d92a,this['_model'])),_0x44b104=_0x35bda8['is']('range')?_0x35bda8:Jt(_0x35bda8,this['_model']);if('never'===this['_trackFormatChanges']){const _0x321149=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x60980e,'accept');return this['forceDefaultExecution'](()=>_0x321149([_0x44b104],_0x4a468d,_0x1488e0)),null;}_0x2b3019['push'](_0x44b104);let _0x5cfa3f=!0x0;for(const _0x3f17d3 of _0x2b3019)if(!this['_rangeIsInLocalUserInsertion'](_0x3f17d3)){_0x5cfa3f=!0x1;break;}if(_0x5cfa3f&&'always'!==this['_trackFormatChanges']){const _0xc56fe0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x60980e,'accept');return this['forceDefaultExecution'](()=>_0xc56fe0([_0x44b104],_0x4a468d,_0x1488e0)),null;}let _0x22d688=null,_0xefd287=_0x44b104['start'],_0x491eeb=_0x44b104['end'];for(const {suggestion:_0x555976,meta:_0x3e4bfa}of this['_findSuggestions'](_0x44b104,'formatBlock')){if(!_0x3e4bfa['isOwn'])continue;if(_0x3e4bfa['isNextTo']||_0x3e4bfa['containsRangeInObject']||_0x3e4bfa['isInsideObject'])continue;if(_0x555976['data']['formatGroupId']!=_0x4a468d['formatGroupId'])continue;if(!zt(_0x555976,_0x1488e0))continue;const _0x2d4969=_0x555976['getFirstRange']();if(_0x555976['subType']==_0x60980e){if(_0x2d4969['containsRange'](_0x44b104,!0x0))return null;_0xefd287=_0xefd287['isBefore'](_0x2d4969['start'])?_0xefd287:_0x2d4969['start'],_0x491eeb=_0x491eeb['isAfter'](_0x2d4969['end'])?_0x491eeb:_0x2d4969['end'],_0x22d688?_0x2d4969['start']['isBefore'](_0x22d688['getFirstRange']()['start'])?(_0x22d688['removeMarkers'](),_0x22d688=_0x555976):_0x555976['removeMarkers']():_0x22d688=_0x555976;}else{const _0x1b2fae=_0x44b104['getIntersection'](_0x2d4969);this['_cutOutSuggestionMarker'](_0x555976,_0x1b2fae);}}const _0x2e66ca=this['editor']['plugins']['get']('Users')['me'],_0x40f49a=_0x1cdff5(),_0x404532=_0x2e66ca['id'];if(_0x22d688)return this['_setSuggestionRange'](_0x22d688,this['_model']['createRange'](_0xefd287,_0x491eeb)),_0x22d688;{const _0x4b3455=this['_setSuggestionData']({'id':_0x40f49a,'type':'formatBlock:'+_0x60980e,'data':_0x4a468d,'createdAt':new Date(),'authorId':_0x404532,'attributes':_0x1488e0});return this['_addSuggestionMarker']('formatBlock:'+_0x60980e,_0x40f49a,_0x404532,this['_model']['createRange'](_0xefd287,_0x491eeb)),_0x4b3455;}}['markMultiRangeBlockFormat'](_0x301b10,_0x27887a,_0x402a04=[],_0x50b278=null,_0x2a8c3e={}){_0x27887a['formatGroupId']||(_0x27887a['formatGroupId']=_0x27887a['commandName']);const _0x30b5bd=_0x301b10[0x0];_0x27887a['multipleBlocks']=_0x30b5bd['is']('range'),_0x50b278=_0x50b278||Gt(_0x27887a);const _0x49d8fc=_0x402a04['map'](_0x29dd2c=>Jt(_0x29dd2c,this['_model'])),_0xec078b=_0x30b5bd['is']('range')?_0x301b10:_0x301b10['map'](_0x174d0c=>Jt(_0x174d0c,this['_model']));if('never'===this['_trackFormatChanges']){const _0xb37ce4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50b278,'accept');return this['forceDefaultExecution'](()=>_0xb37ce4(_0xec078b,_0x27887a,_0x2a8c3e)),null;}_0x49d8fc['push'](..._0xec078b);let _0x2c930a=!0x0;for(const _0x31a764 of _0x49d8fc)if(!this['_rangeIsInLocalUserInsertion'](_0x31a764)){_0x2c930a=!0x1;break;}if(_0x2c930a&&'always'!==this['_trackFormatChanges']){const _0x249b92=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50b278,'accept');return this['forceDefaultExecution'](()=>_0x249b92(_0xec078b,_0x27887a,_0x2a8c3e)),null;}const _0x46c7ee=this['editor']['plugins']['get']('Users')['me'];for(const _0x5924fd of this['getSuggestions']()){if(_0x5924fd['author']['id']!=_0x46c7ee['id'])continue;if('formatBlock'!=_0x5924fd['type']||_0x5924fd['data']['formatGroupId']!=_0x27887a['formatGroupId'])continue;if(!zt(_0x5924fd,_0x2a8c3e))continue;const _0x45f0e7=_0x5924fd['subType']==_0x50b278;for(let _0xbd8d34=0x0;_0xbd8d34<_0xec078b['length'];_0xbd8d34++){const _0x42b66e=_0xec078b[_0xbd8d34];for(const _0x18f640 of _0x5924fd['getMarkers']()){const _0x4e363e=_0x18f640['getRange']();if(_0x42b66e['isEqual'](_0x4e363e)){_0x45f0e7?(_0xec078b['splice'](_0xbd8d34,0x1),_0xbd8d34--):_0x5924fd['removeMarker'](_0x18f640['name']);break;}}}}if(0x0==_0xec078b['length'])return null;const _0x549419=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50b278,'join');for(const _0x45a0d1 of this['getSuggestions']())if(_0x45a0d1['author']['id']==_0x46c7ee['id']&&'formatBlock'==_0x45a0d1['type']&&_0x45a0d1['data']['formatGroupId']==_0x27887a['formatGroupId']&&_0x45a0d1['subType']==_0x50b278&&zt(_0x45a0d1,_0x2a8c3e)&&(_0x549419(_0x45a0d1['getRanges'](),_0xec078b)||_0x549419(_0xec078b,_0x45a0d1['getRanges']()))){for(const _0x4a9b11 of _0xec078b)_0x45a0d1['addRange'](_0x4a9b11);return _0x45a0d1;}const _0x4b7800=_0x1cdff5(),_0x671faf=_0x46c7ee['id'],_0x41f328='formatBlock:'+_0x50b278,_0x207328=this['_setSuggestionData']({'id':_0x4b7800,'type':_0x41f328,'data':_0x27887a,'createdAt':new Date(),'authorId':_0x671faf,'attributes':_0x2a8c3e});for(const _0x5a1ab7 of _0xec078b)this['_addSuggestionMarker'](_0x41f328,_0x4b7800,_0x671faf,_0x5a1ab7,u['getMultiRangeId']());return _0x207328;}['markDeletion'](_0x559ebe,_0xb5dc6f=null,_0x198970={}){if(_0x559ebe['isCollapsed'])return null;const _0x8ec7a9=this['editor']['plugins']['get']('Users')['me'],_0x3e7d15=new _0x4fb46f(_0x559ebe['start'],_0x559ebe['end']);for(const {suggestion:_0x1e7f09,meta:_0x5a4055}of this['_findSuggestions'](_0x3e7d15,'insertion'))if(_0x5a4055['isOwn']&&!_0x5a4055['isNextTo']){if(_0x1e7f09['isMultiRange']){const _0x24814e=_0x1e7f09['getRanges']()['filter'](_0x2f600d=>'$graveyard'!=_0x2f600d['root']['rootName']);_0x24814e['every'](_0x562ca0=>_0x3e7d15['containsRange'](_0x562ca0,!0x0))&&_0x1e7f09['discard']();if(_0x24814e['some'](_0x5d5110=>_0x5d5110['containsRange'](_0x3e7d15,!0x0))){const _0x27cb49=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xb5dc6f,'accept');return this['forceDefaultExecution'](()=>_0x27cb49([_0x3e7d15],null,_0x198970)),null;}}else{const _0x2f712e=_0x3e7d15['getIntersection'](_0x1e7f09['getFirstRange']());null!==_0x2f712e&&_0x1e7f09['_onDiscard']([_0x2f712e],null,_0x198970);}}if(_0x3e7d15['detach'](),_0x3e7d15['isCollapsed']||'$graveyard'==_0x3e7d15['root']['rootName'])return null;let _0x23950f=null,_0x229818=_0x3e7d15['start'],_0x15984d=_0x3e7d15['end'];const _0x140ea9=this['_findSuggestions'](_0x3e7d15,'deletion');for(const {suggestion:_0x3a8b04,meta:_0x5b6469}of _0x140ea9){const _0x2e09fa=this['_model']['createRange'](_0x229818,_0x15984d);if(_0x5b6469['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b6469['containsRangeInObject']&&!_0x5b6469['isInsideObject'])){if(_0x3a8b04['isMultiRange']){if(!zt(_0x3a8b04,_0x198970))continue;let _0x291e6a=!0x0;for(const _0x4010fa of _0x3a8b04['getRanges']()){if(_0x4010fa['containsRange'](_0x2e09fa,!0x0))return _0x3a8b04;_0x2e09fa['containsRange'](_0x4010fa)||(_0x291e6a=!0x1);}_0x291e6a&&_0x3a8b04['discard']();}else{const _0x307677=_0x3a8b04['getFirstRange']();if(_0x307677['containsRange'](_0x2e09fa,!0x0))return _0x3a8b04;if(!zt(_0x3a8b04,_0x198970)){_0x2e09fa['containsRange'](_0x307677)?_0x3a8b04['removeMarkers']():_0x307677['containsPosition'](_0x229818)?_0x229818=_0x307677['end']:_0x307677['containsPosition'](_0x15984d)&&(_0x15984d=_0x307677['start']);continue;}_0x229818=_0x229818['isBefore'](_0x307677['start'])?_0x229818:_0x307677['start'],_0x15984d=_0x15984d['isAfter'](_0x307677['end'])?_0x15984d:_0x307677['end'],_0x198970=Object['assign']({},_0x3a8b04['attributes']),_0x23950f?_0x307677['start']['isBefore'](_0x23950f['getFirstRange']()['start'])?(_0x23950f['removeMarkers'](),_0x23950f=_0x3a8b04):_0x3a8b04['removeMarkers']():_0x23950f=_0x3a8b04;}}}if(_0x23950f)return this['_setSuggestionRange'](_0x23950f,this['_model']['createRange'](_0x229818,_0x15984d)),_0x23950f;{const _0x419cc7=_0x1cdff5(),_0x54e23d=this['_model']['createRange'](_0x229818,_0x15984d),_0x59811d=_0x8ec7a9['id'],_0x446344=_0xb5dc6f?'deletion:'+_0xb5dc6f:'deletion',_0x418a77=this['_setSuggestionData']({'id':_0x419cc7,'type':_0x446344,'createdAt':new Date(),'authorId':_0x59811d,'attributes':_0x198970});return this['_addSuggestionMarker'](_0x446344,_0x419cc7,_0x59811d,_0x54e23d),_0x418a77;}}['markMultiRangeDeletion'](_0x4f86e2,_0x25eca8='multi',_0x41640f={}){const _0x45f0cf=this['editor']['plugins']['get']('Users')['me'],_0x3311d6=_0x4f86e2['map'](_0x50a918=>new _0x4fb46f(_0x50a918['start'],_0x50a918['end'])),_0x15f710=new Set();for(const {suggestion:_0x4e0372,meta:_0x4b237e}of this['_findSuggestions'](_0x3311d6,'insertion'))_0x4b237e['isOwn']&&!_0x4b237e['isNextTo']&&_0x15f710['add'](_0x4e0372);for(const _0x1867ac of _0x15f710)if(_0x1867ac['isMultiRange']){const _0x5c15fa=_0x1867ac['getRanges']();(!_0x1867ac['attributes']||!_0x1867ac['attributes']['skipNestingCheck'])&&(_0x5c15fa['every'](_0x22b091=>_0x3311d6['some'](_0x5a16eb=>_0x5a16eb['containsRange'](_0x22b091,!0x0)))&&_0x1867ac['discard']());if(_0x3311d6['every'](_0x53229d=>_0x5c15fa['some'](_0x484386=>_0x484386['containsRange'](_0x53229d,!0x0)))){const _0x325ee2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25eca8,'accept');return this['forceDefaultExecution'](()=>_0x325ee2(_0x4f86e2,null,_0x41640f)),null;}}else{const _0x3455fd=_0x1867ac['getFirstRange']();_0x3311d6['some'](_0x26f267=>_0x26f267['containsRange'](_0x3455fd,!0x0))&&_0x1867ac['discard']();if(_0x3311d6['every'](_0x4c85d8=>_0x3455fd['containsRange'](_0x4c85d8,!0x0))){const _0x1e61be=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25eca8,'accept');return this['forceDefaultExecution'](()=>_0x1e61be(_0x3311d6,null,_0x41640f)),null;}}const _0x5a1f35=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25eca8,'join');let _0x734f80=null;for(const _0x2ce3fa of this['getSuggestions']())if(_0x2ce3fa['author']['id']==_0x45f0cf['id']&&_0x2ce3fa['isInContent']&&'deletion'==_0x2ce3fa['type']&&_0x2ce3fa['subType']==_0x25eca8&&zt(_0x2ce3fa,_0x41640f)&&(_0x5a1f35(_0x2ce3fa['getRanges'](),_0x3311d6)||_0x5a1f35(_0x3311d6,_0x2ce3fa['getRanges']()))){if(_0x734f80){if(_0x2ce3fa['commentThread']&&_0x2ce3fa['commentThread']['length'])continue;for(const _0x1aaa83 of _0x2ce3fa['getRanges']())_0x734f80['isIntersectingWithRange'](_0x1aaa83)||_0x734f80['addRange'](_0x1aaa83);_0x2ce3fa['removeMarkers']();}else{_0x734f80=_0x2ce3fa;for(const _0x4c2bbe of _0x3311d6)_0x2ce3fa['isIntersectingWithRange'](_0x4c2bbe)||_0x2ce3fa['addRange'](_0x4c2bbe);}}if(_0x734f80)return _0x734f80;_0x15f710['clear']();for(const {suggestion:_0x22804e,meta:_0x94c210}of this['_findSuggestions'](_0x3311d6,'deletion'))_0x94c210['isOwn']&&(this['_mergeNestedSuggestions']||!_0x94c210['containsRangeInObject']&&!_0x94c210['isInsideObject'])&&zt(_0x22804e,_0x41640f)&&_0x15f710['add'](_0x22804e);for(const _0x3fc68d of _0x15f710){const _0x23b055=_0x3fc68d['getRanges']();if(!_0x41640f||!_0x41640f['skipNestingCheck']){if(_0x3311d6['every'](_0x1be23c=>_0x23b055['some'](_0x248727=>_0x248727['containsRange'](_0x1be23c,!0x0))))return _0x3fc68d;}(!_0x3fc68d['attributes']||!_0x3fc68d['attributes']['skipNestingCheck'])&&(_0x23b055['every'](_0x30e80a=>_0x3311d6['some'](_0x501d3f=>_0x501d3f['containsRange'](_0x30e80a,!0x0)))&&_0x3fc68d['discard']());}const _0x1994b2=_0x1cdff5(),_0x3170f6=_0x45f0cf['id'],_0x2e0630='deletion:'+_0x25eca8,_0x46c7c3=this['_setSuggestionData']({'id':_0x1994b2,'type':_0x2e0630,'createdAt':new Date(),'authorId':_0x3170f6,'attributes':_0x41640f});for(const _0x2c495f of _0x3311d6)_0x2c495f['detach'](),_0x2c495f['isCollapsed']||'$graveyard'==_0x2c495f['root']['rootName']||this['_addSuggestionMarker'](_0x2e0630,_0x1994b2,_0x3170f6,_0x2c495f,u['getMultiRangeId']());return _0x46c7c3;}['markAttributeChange'](_0x249b00,_0x5200be,_0x425f82,_0x1c274a,_0x221def){if(_0x249b00['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x42fe0b=this['editor']['plugins']['get']('Users')['me']['id'],_0x29c6b8=Array['from'](this['_suggestions']['values']())['filter'](_0xe67716=>'attribute'==_0xe67716['type']&&_0xe67716['data']['key']==_0x5200be&&_0xe67716['isIntersectingWithRange'](_0x249b00));if('default'===this['_trackFormatChanges']){const _0x36a801=this['_findSuggestions'](_0x249b00,'insertion')['filter'](({meta:_0x2f3a97})=>_0x2f3a97['isOwn']&&!_0x2f3a97['isInsideObject']&&!_0x2f3a97['isNextTo'])['map'](({suggestion:_0x6c68e})=>_0x6c68e);_0x29c6b8['unshift'](..._0x36a801);}const _0x5e797e=new Map([[_0x249b00,_0x425f82]]);for(const _0x1cadb0 of _0x29c6b8){const _0x95288f='attribute'==_0x1cadb0['type']?_0x1cadb0['data']['oldValue']:void 0x0,_0x186662=_0x1cadb0['getFirstRange'](),_0x100d04=Array['from'](_0x5e797e['keys']())['find'](_0x1a4e19=>_0x1a4e19['isIntersecting'](_0x186662));if(!_0x100d04)continue;const _0x55177b=_0x100d04['getDifference'](_0x186662);this['_isBlockAttribute'](_0x5200be)&&'insertion'==_0x1cadb0['type']&&0x0!=_0x55177b['length']||(_0x5e797e['delete'](_0x100d04),_0x55177b['forEach'](_0x3466ef=>{_0x5e797e['set'](_0x3466ef,_0x425f82);}),'insertion'!=_0x1cadb0['type']&&_0x95288f!=_0x1c274a&&_0x5e797e['set'](_0x100d04['getIntersection'](_0x186662),_0x95288f));}const _0x39b6ae=[];for(const [_0x4de669,_0x5d68c3]of _0x5e797e){const _0x4ca9e9=_0x1cdff5(),_0x441ecb={'key':_0x5200be,'oldValue':_0x5d68c3,'newValue':_0x1c274a};_0x5200be['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':_0x5200be});const _0x5b2b99=('attribute:'+(_0x5200be+'|'+Gt({'newValue':_0x1c274a})))['substring'](0x0,0x3c),_0x349fd4=this['_setSuggestionData']({'id':_0x4ca9e9,'type':_0x5b2b99,'data':_0x441ecb,'createdAt':new Date(),'authorId':_0x42fe0b,'attributes':_0x221def});_0x39b6ae['push'](_0x349fd4),this['_addSuggestionMarker'](_0x5b2b99,_0x4ca9e9,_0x42fe0b,_0x4de669);}return _0x39b6ae;}['enableDefaultAttributesIntegration'](_0x2d613f){this['enableCommand'](_0x2d613f,(_0x46f0d7,..._0x56b00b)=>{this['_recordAttributeChanges'](()=>{_0x46f0d7(..._0x56b00b);});});}['registerBlockAttribute'](_0x3c093){this['_blockAttributeKeys']['add'](_0x3c093);}['registerInlineAttribute'](_0x3aff8a){this['_inlineAttributeKeys']['add'](_0x3aff8a);}['_getAttributeKey'](_0x14eee9){return'attribute'==_0x14eee9['type']?_0x14eee9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x431481,_0x484477){const _0x15d73f=_0x431481['getFirstMarker']();this['_model']['change'](_0x3d531a=>{_0x3d531a['updateMarker'](_0x15d73f,{'range':_0x484477});});}['_addThreadToSuggestion'](_0x354635){const _0x4f8591=_0x354635['id'],_0x5455ee=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4f8591)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5455ee,'threadId':_0x4f8591,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x186010=this['_commentsRepository']['getCommentThread'](_0x4f8591);_0x186010['unbind']('isRemovable'),_0x186010['isRemovable']=!0x1,_0x354635['commentThread']=_0x186010;}['_checkSuggestionCorrectness'](_0x11de48,_0x156d1c,_0x543460,_0x38136b){if(_0x11de48['type']!=_0x156d1c||_0x11de48['subType']!=_0x543460||_0x11de48['creator']['id']!=_0x38136b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1c48ec('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x31d3c3,_0x37460a){const _0x4037d7=_0x31d3c3['getFirstRange']();if(_0x37460a['isEqual'](_0x4037d7))_0x31d3c3['removeMarkers']();else{if(_0x4037d7['containsRange'](_0x37460a)){const _0x925784=this['_model']['createPositionAt'](_0x37460a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31d3c3,this['_model']['createRange'](_0x4037d7['start'],_0x925784));const _0x2b53fa=_0x1cdff5(),_0x41ec7c=_0x31d3c3['creator']['id'],_0x35b3f0=_0x31d3c3['type']+':'+_0x31d3c3['subType'];this['_setSuggestionData']({'id':_0x2b53fa,'type':_0x35b3f0,'createdAt':new Date(),'authorId':_0x41ec7c,'data':_0x31d3c3['data'],'attributes':_0x31d3c3['attributes']});const _0x4306bf=this['_model']['createPositionAt'](_0x37460a['end']['parent'],'after'),_0x591560=this['_model']['createRange'](_0x4306bf,_0x4037d7['end']);this['_addSuggestionMarker'](_0x35b3f0,_0x2b53fa,_0x41ec7c,_0x591560);}else{if(_0x4037d7['containsPosition'](_0x37460a['start'])){const _0x63307f=this['_model']['createPositionAt'](_0x37460a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31d3c3,this['_model']['createRange'](_0x4037d7['start'],_0x63307f));}else{const _0x18199c=this['_model']['createPositionAt'](_0x37460a['end']['parent'],'after');this['_setSuggestionRange'](_0x31d3c3,this['_model']['createRange'](_0x18199c,_0x4037d7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x43c8b0){for(const {suggestion:_0x8dc2dd,meta:_0x2fda6e}of this['_findSuggestions'](_0x43c8b0,'insertion')){if(!_0x2fda6e['isOwn'])continue;const _0x127ee3=_0x8dc2dd['getRanges']();for(const _0x4b7246 of _0x127ee3)if(!_0x43c8b0['getDifference'](_0x4b7246)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1dd361){const _0x4bd976=this['editor']['plugins']['get']('Users')['getUser'](_0x1dd361);if(!_0x4bd976)throw new _0x1c48ec('track-changes-user-not-found',this);return _0x4bd976;}['_getExternalAuthor'](_0x53a7df){const _0x341c31=this['editor']['plugins']['get']('Users'),_0x1502cd=_0x48010a('external:'+_0x53a7df),_0x2dbc32=_0x341c31['getUser'](_0x1502cd);return _0x2dbc32||_0x341c31['addUser']({'id':_0x1502cd,'name':_0x53a7df});}['_createSuggestion'](_0x3d0c6d,_0x5ad1cc,_0x4e3f19,_0x5be40c,_0x4d1acf){const _0x1c2344=this['_getAuthorFromId'](_0x5be40c),_0x37f7a5=this['_suggestionFactory']['buildSuggestion'](_0x3d0c6d,_0x5ad1cc,_0x4e3f19,_0x1c2344,_0x4d1acf,_0x1bcb43=>{this['_updateSuggestionData'](_0x4e3f19,{'attributes':_0x1bcb43});const _0x123865=this['getSuggestion'](_0x4e3f19);this['_joinWithAdjacentSuggestions'](new Set([_0x123865])),this['_refreshSuggestionsChain'](new Set([_0x123865]));});return this['listenTo'](_0x37f7a5,'accept',()=>{this['_updateSuggestionData'](_0x4e3f19,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x37f7a5,'discard',()=>{this['_updateSuggestionData'](_0x4e3f19,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4e3f19,_0x37f7a5),this['_suggestionState']['set'](_0x37f7a5,'notReady'),_0x37f7a5;}['_splitMarkerName'](_0xcc943e){const _0x23368f=_0xcc943e['split'](':');return{'group':_0x23368f[0x0],'type':_0x23368f[0x1],'subType':_0x23368f['length']>=0x5?_0x23368f[0x2]:null,'id':_0x23368f['length']<0x5?_0x23368f[0x2]:_0x23368f[0x3],'authorId':_0x23368f['length']<0x5?_0x23368f[0x3]:_0x23368f[0x4],'markerCount':0x6==_0x23368f['length']?_0x23368f[0x5]:null};}['_breakSuggestionMarker'](_0x3297e3,_0x7481b7,_0x8c7e1){const _0x114fb6=_0x3297e3['getFirstRange'](),_0x2f32a9=_0x114fb6['start'],_0x109299=_0x114fb6['end'];this['_setSuggestionRange'](_0x3297e3,this['_model']['createRange'](_0x2f32a9,_0x7481b7));const _0x3a8ec3=_0x1cdff5(),_0xd36ebf=_0x3297e3['creator']['id'],_0x5964b4=_0x3297e3['type']+(_0x3297e3['subType']?':'+_0x3297e3['subType']:'');this['_setSuggestionData']({'id':_0x3a8ec3,'type':_0x5964b4,'createdAt':new Date(),'authorId':_0xd36ebf,'originalSuggestionId':_0x3297e3['id'],'attributes':_0x3297e3['attributes'],'data':_0x3297e3['data']});const _0x5f3f5e=this['_getAttributeKey'](_0x3297e3);('formatBlock'==_0x3297e3['type']||_0x5f3f5e&&this['_isBlockAttribute'](_0x5f3f5e))&&(_0x8c7e1=this['_model']['createPositionBefore'](_0x8c7e1['parent'])),this['_addSuggestionMarker'](_0x5964b4,_0x3a8ec3,_0xd36ebf,this['_model']['createRange'](_0x8c7e1,_0x109299));}['_findSuggestions'](_0x35d9a2,_0x1d2a67=null){const _0x3834f5=[],_0x3dd3a7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x35d9a2)||(_0x35d9a2=[_0x35d9a2]);for(const _0xdde004 of this['getSuggestions']()){if(!_0xdde004['isInContent'])continue;if(_0x1d2a67&&_0xdde004['type']!=_0x1d2a67)continue;let _0x3a4bca=!0x1;for(const _0x409d82 of _0xdde004['getRanges']()){for(const _0x351807 of _0x35d9a2){const _0x27cfb5=_0x351807['start']['isEqual'](_0x409d82['end'])||_0x351807['end']['isEqual'](_0x409d82['start']);if(_0x27cfb5||_0x351807['getIntersection'](_0x409d82)){const _0x43d228=_0x351807['containsRange'](_0x409d82)&&Ut(this['_model']['schema'],_0x409d82['start'],_0x351807),_0x9545bd=_0x409d82['containsRange'](_0x351807)&&Ut(this['_model']['schema'],_0x351807['start'],_0x409d82);_0x3834f5['push']({'suggestion':_0xdde004,'meta':{'isOwn':_0x3dd3a7==_0xdde004['author'],'isNextTo':_0x27cfb5,'isInsideObject':_0x43d228,'containsRangeInObject':_0x9545bd}}),_0x3a4bca=!0x0;break;}}if(_0x3a4bca)break;}}return _0x3834f5;}['_addSuggestionMarker'](_0x264231,_0x44a5af,_0x26f62b,_0x2c0de8,_0xbc114){this['_model']['change'](_0x32ac43=>{let _0x1a0148='suggestion:'+_0x264231+':'+_0x44a5af+':'+_0x26f62b;_0xbc114&&(_0x1a0148=_0x1a0148+':'+_0xbc114),_0x32ac43['addMarker'](_0x1a0148,{'range':_0x2c0de8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1fa04c){const _0xf6b783=_0x1fa04c['previous'],_0x4c40cc=_0x1fa04c['next'];_0x1fa04c['previous']=null,_0x1fa04c['next']=null,null!=_0xf6b783&&_0xf6b783['next']==_0x1fa04c&&(_0xf6b783['next']=_0x4c40cc),null!=_0x4c40cc&&_0x4c40cc['previous']==_0x1fa04c&&(_0x4c40cc['previous']=_0xf6b783),'ready'==this['_suggestionState']['get'](_0x1fa04c)&&(this['_suggestionState']['set'](_0x1fa04c,'removed'),this['fire']('suggestionUnloaded',_0x1fa04c,_0xf6b783,_0x4c40cc));}['_setSuggestionData'](_0x541381){const _0x5b2c7c=_0x541381['id'],_0x24f44a=this['addSuggestionData'](_0x541381);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2591a9=this['editor']['plugins']['get']('PendingActions'),_0x8fa2a5=_0x24f44a['hasComments'],_0x3ebf9d=_0x24f44a['subType']?_0x24f44a['type']+':'+_0x24f44a['subType']:_0x24f44a['type'],_0x118b1c=this['editor']['locale'],_0x1c11c5=_0x2591a9['add'](o(_0x118b1c,'PENDING_ACTION_SUGGESTION')),_0x2ef2f7={'id':_0x5b2c7c,'type':_0x3ebf9d,'hasComments':_0x8fa2a5,'data':_0x541381['data']||null,'originalSuggestionId':_0x541381['originalSuggestionId']||null,'attributes':_0x24f44a['attributes']};this['_adapter']['addSuggestion'](_0x2ef2f7)['then'](_0x2ca9fe=>{_0x24f44a['_saved']=!0x0,_0x2591a9['remove'](_0x1c11c5),_0x2ca9fe&&_0x2ca9fe['createdAt']&&(this['_suggestions']['get'](_0x5b2c7c)['createdAt']=_0x2ca9fe['createdAt']);})['catch'](_0x4a944f=>{throw _0x394b65('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x24f44a['discard']();}),_0x24f44a['stopListening'](),this['_suggestions']['delete'](_0x24f44a['id']),this['_suggestionState']['delete'](_0x24f44a),_0x4a944f;});}return _0x24f44a;}['_isBlockAttribute'](_0x399508){return this['_blockAttributeKeys']['has'](_0x399508);}['_updateSuggestionData'](_0x2957e0,_0xfcf64d){const _0x351e4a=this['editor']['plugins']['get']('PendingActions'),_0x386aa9=this['getSuggestion'](_0x2957e0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x386aa9['_saved']){const _0x21e248=_0x351e4a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2957e0,_0xfcf64d)['then'](()=>{_0x351e4a['remove'](_0x21e248);});}else _0x386aa9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2957e0,_0xfcf64d);});}}['_getSuggestionData'](_0x22dba5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1c48ec('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x22dba5);}['_handleNewSuggestionMarker'](_0x3b9afd){const {id:_0x198493,type:_0x312ed5,subType:_0x10d2f8,authorId:_0x4c2090}=this['_splitMarkerName'](_0x3b9afd),_0x3d3a14=this['_suggestions']['get'](_0x198493)||this['_createSuggestion'](_0x312ed5,_0x10d2f8,_0x198493,_0x4c2090,{});switch(this['_checkSuggestionCorrectness'](_0x3d3a14,_0x312ed5,_0x10d2f8,_0x4c2090),this['_suggestionState']['get'](_0x3d3a14)){case'notReady':this['_getSuggestionData'](_0x198493)['then'](_0x167751=>{let _0x2a1fc1=Promise['resolve']();_0x167751['hasComments']&&(_0x2a1fc1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x198493})),_0x2a1fc1['then'](()=>{this['addSuggestionData'](_0x167751)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3d3a14,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x198493,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3d3a14,'ready'),this['fire']('suggestionLoaded',_0x3d3a14);break;case'ready':this['fire']('suggestionChanged',_0x3d3a14);}return _0x3d3a14['addMarkerName'](_0x3b9afd),_0x3d3a14;}['_refreshSuggestionsChain'](_0xa506c9){const _0x1656c5=Array['from'](_0xa506c9),_0x5607e7=_0x1656c5['filter'](_0x27779a=>'attribute'==_0x27779a['type']);this['_refreshAttributeSuggestionsChain'](_0x5607e7);const _0x36f529=_0x1656c5['filter'](_0x3dcd9c=>!_0x3dcd9c['isMultiRange']&&'attribute'!=_0x3dcd9c['type']),_0x999c4f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49b804=>!_0x49b804['isMultiRange']&&'attribute'!=_0x49b804['type']),_0x4efcca=_0x999c4f['filter'](_0x6e36db=>!_0xa506c9['has'](_0x6e36db)),_0x204850=new Map(_0x999c4f['map'](_0x13a42f=>[_0x13a42f,this['_suggestionFactory']['getSuggestionCallback'](_0x13a42f['type'],_0x13a42f['subType'],'chain')])),_0x2b1749=new Map(_0x999c4f['map'](_0x342c61=>[_0x342c61,_0x342c61['getFirstRange']()])),_0x3ef277=new Set(),_0x209756=new Set();for(let _0xa7b418=0x0;_0xa7b418<_0x36f529['length'];_0xa7b418++)_0xd3945d(_0x36f529[_0xa7b418],_0x36f529,_0xa7b418+0x1);for(let _0x209e59=0x0;_0x209e59<_0x36f529['length'];_0x209e59++)_0xd3945d(_0x36f529[_0x209e59],_0x4efcca,0x0);const _0x106456=new Set();for(let _0x1812ec=0x0;_0x1812ec<_0x36f529['length'];_0x1812ec++){const _0x23c6d3=_0x36f529[_0x1812ec];!_0x209756['has'](_0x23c6d3)&&_0x23c6d3['previous']&&(_0x106456['add'](_0x23c6d3['previous']),_0x23c6d3['previous']['next']===_0x23c6d3&&(_0x23c6d3['previous']['next']=null),_0x23c6d3['previous']=null),!_0x3ef277['has'](_0x23c6d3)&&_0x23c6d3['next']&&(_0x106456['add'](_0x23c6d3['next']),_0x23c6d3['next']['previous']===_0x23c6d3&&(_0x23c6d3['next']['previous']=null),_0x23c6d3['next']=null);}function _0xd3945d(_0x36726d,_0x3692da,_0x5427bb){for(let _0x187253=_0x5427bb;_0x187253<_0x3692da['length'];_0x187253++){const _0x242ac0=_0x2c9800(_0x36726d,_0x3692da[_0x187253]);_0x242ac0&&(_0x242ac0[0x0]['next']=_0x242ac0[0x1],_0x242ac0[0x1]['previous']=_0x242ac0[0x0],_0x3ef277['add'](_0x242ac0[0x0]),_0x209756['add'](_0x242ac0[0x1]));}}function _0x2c9800(_0x63e218,_0x1420bd){if(_0x63e218['author']['id']!==_0x1420bd['author']['id'])return null;const _0x4562dd=_0x204850['get'](_0x63e218)(_0x63e218,_0x1420bd,_0x2b1749['get'](_0x63e218),_0x2b1749['get'](_0x1420bd));if(!_0x4562dd)return null;return _0x204850['get'](_0x1420bd)(_0x63e218,_0x1420bd,_0x2b1749['get'](_0x63e218),_0x2b1749['get'](_0x1420bd))?_0x4562dd[0x1]['commentThread']&&_0x4562dd[0x1]['commentThread']['length']?null:_0x4562dd:null;}_0x106456['size']&&this['_refreshSuggestionsChain'](_0x106456);}['_refreshAttributeSuggestionsChain'](_0x41a67c){if(0x0==_0x41a67c['length'])return;const _0x2b100b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a75e5=>'attribute'==_0x1a75e5['type']&&_0x1a75e5['_isDataLoaded']),_0x2162a5=[],_0x25731a=new Map();for(const _0x42dd66 of _0x2b100b){const _0x204b2a=_0x48010a(_0x42dd66['attributes']);_0x25731a['has'](_0x204b2a)||(_0x25731a['set'](_0x204b2a,_0x2162a5['length']),_0x2162a5['push']([]));const _0xf998e5=_0x25731a['get'](_0x204b2a);_0x2162a5[_0xf998e5]['push'](_0x42dd66);}!(function(){_0x2162a5['sort']((_0x48718e,_0x44b827)=>{const _0x1d9328=_0x48718e[0x0]['createdAt'],_0x32f9fd=_0x44b827[0x0]['createdAt'];return _0x1d9328==_0x32f9fd?_0x48718e[0x0]['attributes']['groupId']<_0x44b827[0x0]['attributes']['groupId']?-0x1:0x1:_0x1d9328<_0x32f9fd?-0x1:0x1;});for(const _0x4be7ad of _0x2162a5)_0x4be7ad['sort']((_0x400cd8,_0x30d16a)=>_0x400cd8['id']<_0x30d16a['id']?-0x1:0x1);}());for(let _0x2cae11=0x0;_0x2cae11<_0x2162a5['length'];_0x2cae11++){if(0x0==_0x2162a5[_0x2cae11]['length'])continue;const _0x22199e=[];for(let _0x5e0135=_0x2cae11+0x1;_0x5e0135<_0x2162a5['length'];_0x5e0135++)0x0!=_0x2162a5[_0x5e0135]['length']&&_0x4e0a28(_0x2162a5[_0x2cae11],_0x2162a5[_0x5e0135])&&_0x22199e['push'](_0x5e0135);for(const _0x22c8a3 of _0x22199e)_0x2162a5[_0x2cae11]=_0x2162a5[_0x2cae11]['concat'](_0x2162a5[_0x22c8a3]),_0x2162a5[_0x22c8a3]=[];}for(const _0x33bebb of _0x2162a5)for(let _0x187cb2=0x0;_0x187cb2<_0x33bebb['length'];_0x187cb2++){const _0x2932b0=_0x33bebb[_0x187cb2+0x1]||null;_0x33bebb[_0x187cb2]['next']!==_0x2932b0&&(_0x33bebb[_0x187cb2]['next']=_0x2932b0);}for(const _0x4ce7c1 of _0x2162a5)for(let _0x132b33=0x0;_0x132b33<_0x4ce7c1['length'];_0x132b33++){const _0x9c704c=_0x4ce7c1[_0x132b33-0x1]||null;_0x4ce7c1[_0x132b33]['previous']!==_0x9c704c&&(_0x4ce7c1[_0x132b33]['previous']=_0x9c704c);}function _0x4e0a28(_0x2f7a52,_0x1c3f2a){if(_0x2f7a52[0x0]['attributes']['groupId']!==_0x1c3f2a[0x0]['attributes']['groupId']&&_0x2f7a52[0x0]['author']!==_0x1c3f2a[0x0]['author'])return!0x1;if(!function(_0x235b95,_0x47371e){if(!_0x235b95['hasComments']&&!_0x47371e['hasComments'])return!0x0;if(_0x235b95['hasComments']&&_0x47371e['hasComments'])return!0x1;if(_0x235b95['hasComments']&&_0x47371e['createdAt']<_0x235b95['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x47371e['hasComments']&&_0x235b95['createdAt']<_0x47371e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2f7a52[0x0],_0x1c3f2a[0x0]))return!0x1;const _0x30a780=xt(_0x2f7a52[0x0]['attributes'],'groupId'),_0x473dad=xt(_0x1c3f2a[0x0]['attributes'],'groupId');if(!_0x4700ac(_0x30a780,_0x473dad))return!0x1;return!!_0x2f7a52['every'](_0x3d0a0f=>_0x1c3f2a['some'](_0x5bec73=>_0x3d0a0f['getFirstRange']()['isEqual'](_0x5bec73['getFirstRange']())))&&_0x1c3f2a['every'](_0x558313=>_0x2f7a52['some'](_0x359496=>_0x558313['getFirstRange']()['isEqual'](_0x359496['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x7702b7){const _0x3ccb1b=Array['from'](_0x7702b7),_0x32794a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x7370ea=_0x32794a['filter'](_0x5d00c1=>!_0x7702b7['has'](_0x5d00c1)),_0x4446e2=new Map(_0x3ccb1b['map'](_0x3e971a=>[_0x3e971a,this['_suggestionFactory']['getSuggestionCallback'](_0x3e971a['type'],_0x3e971a['subType'],'join')])),_0x4f4000=new Map(_0x32794a['map'](_0x4acd82=>[_0x4acd82,_0x4acd82['getRanges']()]));for(let _0x21a52f=0x0;_0x21a52f<_0x3ccb1b['length'];_0x21a52f++){if(_0x50e10a(this,_0x3ccb1b[_0x21a52f],_0x3ccb1b,_0x21a52f+0x1))return!0x0;}for(let _0x2bbc59=0x0;_0x2bbc59<_0x3ccb1b['length'];_0x2bbc59++){if(_0x50e10a(this,_0x3ccb1b[_0x2bbc59],_0x7370ea,0x0))return!0x0;}return!0x1;function _0x50e10a(_0x1b932d,_0x4d8f7c,_0x168177,_0x74df4e){for(let _0x5d5651=_0x74df4e;_0x5d5651<_0x168177['length'];_0x5d5651++){const _0x3dad04=_0x168177[_0x5d5651];if(_0x3dad04['type']!==_0x4d8f7c['type']||_0x3dad04['author']['id']!==_0x4d8f7c['author']['id']||_0x3dad04['subType']!==_0x4d8f7c['subType'])continue;if(!qt(_0x4d8f7c,_0x3dad04))continue;if('attribute'==_0x4d8f7c['type']&&_0x4d8f7c['data']['oldValue']!=_0x3dad04['data']['oldValue'])continue;if('attribute'==_0x4d8f7c['type']&&_0x1b932d['_isBlockAttribute'](_0x4d8f7c['data']['key']))continue;if('formatBlock'==_0x4d8f7c['type']){const _0x112b89=_0x1b932d['editor']['model'],_0x7006f4=_0x4d8f7c['getContainedElement']();if(_0x7006f4&&(_0x112b89['schema']['isObject'](_0x7006f4)||_0x112b89['schema']['isLimit'](_0x7006f4)))continue;}const _0x5701a2=_0x4446e2['get'](_0x4d8f7c),_0x14e1bb=_0x4f4000['get'](_0x4d8f7c),_0x4cd2e8=_0x4f4000['get'](_0x3dad04),_0x50eda1=_0x4d8f7c['commentThread']&&_0x4d8f7c['commentThread']['length'],_0x38fd20=_0x3dad04['commentThread']&&_0x3dad04['commentThread']['length'];if(!_0x50eda1&&_0x5701a2(_0x4cd2e8,_0x14e1bb))return _0x1b932d['_joinSuggestions'](_0x3dad04,_0x4d8f7c),_0x4f4000['delete'](_0x4d8f7c),!0x0;if(!_0x38fd20&&_0x5701a2(_0x14e1bb,_0x4cd2e8))return _0x1b932d['_joinSuggestions'](_0x4d8f7c,_0x3dad04),_0x4f4000['delete'](_0x3dad04),!0x0;}return!0x1;}}['_joinSuggestions'](_0x37c226,_0x4d6c3c){if(_0x37c226['isMultiRange']){for(const _0x164c1e of _0x4d6c3c['getRanges']())_0x37c226['addRange'](_0x164c1e);}else{const _0x520a3a=_0x4d6c3c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x37c226,this['_model']['createRange'](_0x37c226['getFirstRange']()['start'],_0x520a3a));}_0x4d6c3c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1efc60,_0x29aa6c,_0x52ee99){const _0x21ec5b=_0x1efc60['startsWith']('format')||_0x1efc60['startsWith']('attribute')?'FORMATTING':_0x1efc60['toUpperCase']();return o(this['editor']['locale'],_0x29aa6c+'_'+_0x21ec5b+'_SUGGESTION_ANNOUNCEMENT',_0x52ee99);}['_initAriaMarkerChangeAnnouncements'](){const _0x2f42c9=this['editor'];if(!_0x2f42c9['ui'])return;const {ariaLiveAnnouncer:_0x29c29e}=_0x2f42c9['ui'];_0x452a5d(this['_model'],({left:_0x4dcf38,entered:_0x3446da})=>{for(const _0xb91c89 of _0x4dcf38){const {group:_0x407e08,type:_0x5893dd}=this['_splitMarkerName'](_0xb91c89['name']);if('suggestion'===_0x407e08){_0x29c29e['announce'](this['_getMarkerAnnouncementText'](_0x5893dd,'LEAVE'));break;}}for(const _0x356d2a of _0x3446da){const {group:_0x1c35e7,type:_0x2579e0}=this['_splitMarkerName'](_0x356d2a['name']);if('suggestion'===_0x1c35e7){_0x29c29e['announce'](this['_getMarkerAnnouncementText'](_0x2579e0,'ENTER',_0x353a89(_0x2bee45)));break;}}});}['_processAttributeChanges'](_0x57a2f8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x45cfbd=this['editor'],_0x40a70e=_0x45cfbd['model']['document']['differ']['getChanges']();if(0x0==_0x40a70e['length'])return!0x1;const _0x5dc7ae=[],_0x5a1d01=_0x40a70e['filter'](_0x1b1688=>'attribute'==_0x1b1688['type']),_0x1d11f7=_0x40a70e['filter'](_0x1ab8c4=>'insert'==_0x1ab8c4['type']&&'$text'!=_0x1ab8c4['name']),_0x29bb37=_0x40a70e['filter'](_0x14888b=>'remove'==_0x14888b['type']&&'$text'!=_0x14888b['name']);for(const _0x16b33a of _0x5a1d01)_0x5dc7ae['push']({'key':_0x16b33a['attributeKey'],'newValue':_0x16b33a['attributeNewValue'],'oldValue':_0x16b33a['attributeOldValue'],'range':Lt(_0x16b33a['range'],_0x45cfbd['model'])});for(const _0x34c9cf of _0x1d11f7){const _0x817673=_0x29bb37['find'](_0x2befac=>_0x2befac['position']['isEqual'](_0x34c9cf['position']));_0x817673&&_0x5dc7ae['push']({'key':m,'newValue':_0x34c9cf['name'],'oldValue':_0x817673['name'],'range':_0x45cfbd['model']['createRangeOn'](_0x34c9cf['position']['nodeAfter'])});}return 0x0!=_0x5dc7ae['length']&&this['_reduceExistingSuggestions'](_0x57a2f8,_0x5dc7ae);}['_processAttributeSuggestions'](_0x42b7dd){let _0x2b5006=!0x1;const _0x55d416=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa69023=>_0xa69023['data']['newRange']&&_0xa69023['name']['startsWith']('suggestion:attribute:'));for(const _0x1af1a9 of _0x55d416){const {subType:_0x4907de,id:_0x1269f6}=this['_splitMarkerName'](_0x1af1a9['name']),_0x63c6ac=_0x4907de['split']('|')[0x0];for(const _0x35e247 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x35e247['id']!=_0x1269f6&&'attribute'==_0x35e247['type']&&_0x35e247['data']&&_0x35e247['data']['key']==_0x63c6ac&&_0x35e247['getFirstRange']()['isIntersecting'](_0x1af1a9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x35e247,_0x1af1a9['data']['newRange'],_0x42b7dd),_0x2b5006=!0x0);}return _0x2b5006;}['_recordAttributeChanges'](_0x3b3a5f){this['_recordAttributeSuggestions']=!0x0,_0x3b3a5f();}['_isRegisteredAttribute'](_0x5f429e){const _0x49c9ae=this['_isBlockAttribute'](_0x5f429e),_0x1ae6d7=this['_inlineAttributeKeys']['has'](_0x5f429e);return _0x49c9ae||_0x1ae6d7;}['_reduceExistingSuggestions'](_0x218d32,_0x27149a){if(0x0==_0x27149a['length'])return!0x1;let _0x5dafa8=!0x1;for(const _0x2a30ff of _0x27149a){const _0x5d2c86=this['_findSuggestions'](_0x2a30ff['range'],'attribute')['filter'](_0x3b2cda=>!_0x3b2cda['meta']['isNextTo'])['map'](_0x5aa5fb=>_0x5aa5fb['suggestion']),_0x358b27=_0x48010a({'newValue':_0x2a30ff['newValue']});_0x5d2c86['filter'](_0x35d891=>{const [_0xe1442c,_0x3743ff]=_0x35d891['subType']['split']('|');return _0xe1442c==_0x2a30ff['key']&&_0x3743ff!=_0x358b27;})['forEach'](_0x5a7828=>{this['_reduceSuggestionAttributeRange'](_0x5a7828,_0x2a30ff['range'],_0x218d32),_0x5dafa8=!0x0;});}return _0x5dafa8;}['_reduceSuggestionAttributeRange'](_0x575072,_0x4c81c7,_0x3e1cc8){const _0x2ad648=_0x575072['getFirstRange']()['getDifference'](_0x4c81c7);0x0!==_0x2ad648['length']?0x1!==_0x2ad648['length']?this['_breakSuggestionMarker'](_0x575072,_0x4c81c7['start'],_0x4c81c7['end']):this['_setSuggestionRange'](_0x575072,_0x2ad648[0x0]):_0x3e1cc8['removeMarker'](_0x575072['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x360113){this['_editor']=_0x360113,this['_model']=_0x360113['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1266cd,_0x117148,_0x131e8f,_0xbd1aa4,_0xc3409f,_0x46915e){return new u(this['_model'],{'type':_0x1266cd,'subType':_0x117148,'id':_0x131e8f,'author':_0xbd1aa4,'creator':_0xbd1aa4,'attributes':_0xc3409f,'onAttributesChange':_0x46915e,'onAccept':(..._0x482f71)=>this['getSuggestionCallback'](_0x1266cd,_0x117148,'accept')(..._0x482f71),'onDiscard':(..._0x25d5f5)=>this['getSuggestionCallback'](_0x1266cd,_0x117148,'discard')(..._0x25d5f5)});}['registerCustomCallback'](_0x4adab6,_0xb3a3fc,_0x1f423d,_0x33fbc5){const _0x51e53d=_0x4adab6+':'+_0xb3a3fc+':'+_0x1f423d;this['_customCallbacks']['set'](_0x51e53d,_0x33fbc5);}['getSuggestionCallback'](_0x3a5830,_0x540fa1,_0x527201){const _0x43d493=_0x3a5830+':'+_0x540fa1+':'+_0x527201;return this['_customCallbacks']['get'](_0x43d493)||this['_defaultCallbacks']['get'](_0x3a5830+':'+_0x527201);}['_registerDefaultCallbacks'](){const _0x3f22db=()=>!0x1,_0x144bcf=_0xfc0266=>{_0xfc0266['sort']((_0xc1a1f7,_0x573e6b)=>_0xc1a1f7['start']['isBefore'](_0x573e6b['start'])?0x1:-0x1),this['_model']['change'](_0x50ca02=>{for(const _0x239685 of _0xfc0266){let _0x85be99;_0x85be99=_0x239685['end']['isAtEnd']&&_0x239685['end']['parent']==_0x239685['start']['nodeAfter']?_0x50ca02['createSelection'](_0x239685['start']['nodeAfter'],'on'):_0x50ca02['createSelection'](_0x239685),this['_model']['deleteContent'](_0x85be99,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x421ff2=(_0x145d44,_0x1cf4d3)=>{_0x1cf4d3&&this['_model']['change'](_0x251426=>{const {commandName:_0x623927,commandParams:_0x4d4221=[]}=_0x1cf4d3,_0x3afe3d=_0x145d44['map'](_0x2dac93=>(Vt(_0x2dac93)&&(_0x2dac93=this['_model']['createRange'](_0x2dac93['end'])),_0x2dac93))['filter'](_0x24c256=>'$graveyard'!==_0x24c256['root']['rootName']);if(_0x3afe3d['length']<0x1)return;const _0x38ce2d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x35d6a2=>_0x4fb46f['fromRange'](_0x35d6a2));_0x251426['setSelection'](_0x3afe3d);for(const _0x6150c0 of this['_editor']['commands']['commands']())_0x6150c0['refresh']();_0x4d4221['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x623927,..._0x4d4221);const _0x1e196f=_0x38ce2d['filter'](_0xe1bc6c=>'$graveyard'!=_0xe1bc6c['root']['rootName']);_0x1e196f['length']>0x0&&_0x251426['setSelection'](_0x1e196f);for(const _0x5080f4 of _0x38ce2d)_0x5080f4['detach']();});},_0x2d1def=(_0x46095a,_0x352265)=>0x1==_0x46095a['length']&&0x1==_0x352265['length']&&_0x46095a[0x0]['end']['isEqual'](_0x352265[0x0]['start']),_0x2f0cbc=(_0x3d795d,_0x361f2b,_0xa12641,_0x41d694)=>Ht(_0x3d795d,_0x361f2b,_0xa12641,_0x41d694)?[_0x3d795d,_0x361f2b]:Ht(_0x361f2b,_0x3d795d,_0x41d694,_0xa12641)?[_0x361f2b,_0x3d795d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3f22db),this['_defaultCallbacks']['set']('insertion:discard',_0x144bcf),this['_defaultCallbacks']['set']('insertion:join',_0x2d1def),this['_defaultCallbacks']['set']('insertion:chain',_0x2f0cbc),this['_defaultCallbacks']['set']('deletion:accept',_0x144bcf),this['_defaultCallbacks']['set']('deletion:discard',_0x3f22db),this['_defaultCallbacks']['set']('deletion:join',_0x2d1def),this['_defaultCallbacks']['set']('deletion:chain',_0x2f0cbc),this['_defaultCallbacks']['set']('formatInline:accept',_0x421ff2),this['_defaultCallbacks']['set']('formatInline:discard',_0x3f22db),this['_defaultCallbacks']['set']('formatInline:join',_0x2d1def),this['_defaultCallbacks']['set']('formatInline:chain',_0x3f22db),this['_defaultCallbacks']['set']('formatBlock:accept',_0x421ff2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3f22db),this['_defaultCallbacks']['set']('formatBlock:join',_0x2d1def),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3f22db),this['_defaultCallbacks']['set']('attribute:accept',_0x3f22db),this['_defaultCallbacks']['set']('attribute:discard',(_0x14fafe,_0x5e1fdb)=>{if(!_0x5e1fdb)return;const _0x548f48=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x281b72=>{if(_0x5e1fdb['key']==m)for(const _0x152186 of _0x14fafe){const _0xe3d7da=_0x152186['start']['nodeAfter'],_0x44e478=_0x5e1fdb['oldValue'];_0x281b72['rename'](_0xe3d7da,_0x44e478);}else{if(_0x548f48['_isBlockAttribute'](_0x5e1fdb['key'])){for(const _0xc3886c of _0x14fafe)void 0x0!==_0x5e1fdb['oldValue']?_0x281b72['setAttribute'](_0x5e1fdb['key'],_0x5e1fdb['oldValue'],_0xc3886c['start']['nodeAfter']):_0x281b72['removeAttribute'](_0x5e1fdb['key'],_0xc3886c['start']['nodeAfter']);}else{for(const _0x1db098 of _0x14fafe)_0x5e1fdb['oldValue']?_0x281b72['setAttribute'](_0x5e1fdb['key'],_0x5e1fdb['oldValue'],_0x1db098):_0x281b72['removeAttribute'](_0x5e1fdb['key'],_0x1db098);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2d1def);}}function Ut(_0x3a533e,_0x206379,_0x24d63d){for(const _0x7510d8 of _0x206379['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x7510d8['root']==_0x7510d8)return!0x1;if(!_0x24d63d['containsItem'](_0x7510d8))return!0x1;if(_0x3a533e['isObject'](_0x7510d8)||_0x3a533e['isLimit'](_0x7510d8))return!0x0;}return!0x1;}function Vt(_0xe17a7d){return _0xe17a7d['end']['parent']==_0xe17a7d['start']['nodeAfter']&&_0xe17a7d['end']['isAtStart'];}function Pt(_0x247dc2,_0x5c6f85,_0x3a241b,_0x1ff3d4){const _0x516b52=_0x21f653=>!_0x21f653['item']['is']('$textProxy')&&!_0x1ff3d4['isObject'](_0x21f653['item']),_0x5e16c2=_0x247dc2['start']['getLastMatchingPosition'](_0x516b52),_0x2d2745=_0x247dc2['end']['getLastMatchingPosition'](_0x516b52,{'direction':'backward'});return(!_0x247dc2['start']['isEqual'](_0x5e16c2)||!_0x247dc2['end']['isEqual'](_0x2d2745))&&(_0x5e16c2['isBefore'](_0x2d2745)?_0x3a241b['updateMarker'](_0x5c6f85,{'range':_0x3a241b['createRange'](_0x5e16c2,_0x2d2745)}):_0x3a241b['removeMarker'](_0x5c6f85),!0x0);}function Gt(_0x2cd278){return _0x48010a(_0x2cd278);}function Ft(_0x3e9c5b){const _0x5c06f8=_0x3e9c5b['start']['nodeAfter'];return _0x5c06f8&&_0x5c06f8['is']('element');}function Lt(_0xffe584,_0x376772){return null==_0xffe584['end']['nodeBefore']&&_0xffe584['end']['parent']==_0xffe584['start']['nodeAfter']?Jt(_0xffe584['start']['nodeAfter'],_0x376772):_0xffe584;}function Jt(_0x2b52ed,_0x10c5dd){const _0x1ce563=_0x10c5dd['schema']['isObject'](_0x2b52ed)||_0x10c5dd['schema']['isSelectable'](_0x2b52ed);return _0x10c5dd['createRange'](_0x10c5dd['createPositionAt'](_0x2b52ed,'before'),_0x1ce563?_0x10c5dd['createPositionAfter'](_0x2b52ed):_0x10c5dd['createPositionAt'](_0x2b52ed,'end'));}function Ht(_0x29e1e5,_0x476dd4,_0x194e1d,_0x49a741){return!!qt(_0x29e1e5,_0x476dd4)&&_0x194e1d['end']['isEqual'](_0x49a741['start']);}function qt(_0x130ef7,_0x33cdb4){if(!_0x130ef7['_isDataLoaded']||!_0x33cdb4['_isDataLoaded'])return!0x1;const _0x3f5d98=new Set(Object['keys'](_0x130ef7['attributes'])),_0x40b670=new Set(Object['keys'](_0x33cdb4['attributes']));if(_0x3f5d98['delete']('groupId'),_0x40b670['delete']('groupId'),0x0==_0x3f5d98['size']&&0x0==_0x40b670['size'])return!0x0;if(_0x3f5d98['size']!=_0x40b670['size'])return!0x1;const _0x20f8ad={..._0x130ef7['attributes']},_0x5eab4d={..._0x33cdb4['attributes']};return delete _0x20f8ad['groupId'],delete _0x5eab4d['groupId'],JSON['stringify'](_0x20f8ad)==JSON['stringify'](_0x5eab4d);}function zt(_0x328ee8,_0x179a5b){const _0xc22eef=Kt(_0x328ee8['attributes']),_0x8837a7=Kt(_0x179a5b);if(!_0x328ee8['_isDataLoaded'])return!0x1;for(const _0x2320e8 of Object['keys'](_0x8837a7))if(!_0x4700ac(_0xc22eef[_0x2320e8],_0x8837a7[_0x2320e8]))return!0x1;return!0x0;}function Kt(_0xf9e87d){const _0x18509f=Object['assign']({},_0xf9e87d);return delete _0x18509f['skipNestingCheck'],delete _0x18509f['tablePasteChainId'],_0x18509f;}class ge extends/* #__PURE__ -- @preserve */
25
+ _0x5e240a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x50687b,_0x56ffe3,_0x3606ca,_0x18651d){super(),this['model']=_0x56ffe3,this['view']=_0x3606ca,this['commentThreadController']=_0x18651d,this['_editor']=_0x50687b,this['_acceptCommand']=_0x50687b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x50687b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1c6667,_0x1172cf)=>_0x1c6667||_0x1172cf),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x552361=>_0x552361&&this['_editor']['model']['canEditAt'](_0x56ffe3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x45e190=>_0x45e190&&this['_editor']['model']['canEditAt'](_0x56ffe3['getRanges']())),this['_pendingAction']=null,_0x3606ca['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3606ca,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3606ca,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3606ca,'change:isDirty',()=>{_0x3606ca['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 _0x4e9d54=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4e9d54);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x1af93f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2b067f,_0xc9ad7b,_0x4754fe,_0x2fbdb2){super(_0x2b067f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2feb91(_0x2b067f,o(_0x2b067f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xc9ad7b['authoredAt']),this['bind']('authoredAt')['to'](_0xc9ad7b),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',_0xc9ad7b,'authoredAt',this,'descriptionParts',(_0xd58536,_0x147c8b,_0x57994b)=>{const _0x1a055d=_0x57994b['map'](_0x6b331a=>ns(_0x6b331a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xd58536-0x1,_0xc9ad7b['author']['name'],_0x147c8b?_0x2fbdb2['formatDateTime'](_0x147c8b):'',new DOMParser()['parseFromString'](_0x1a055d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5942c5(),this['focusTracker']=new _0x5b425e(),this['keystrokes']=new _0x48adf6(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x22ee13=>_0x22ee13['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xc9ad7b,this['_localUser']=_0x4754fe,this['_config']=_0x2fbdb2,_0x2fbdb2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5a6628(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4d06ce}=this['_config'];this['commentsListView']=new _0x4d06ce(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',_0x3ff132=>_0x3ff132+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4da9b3,_0x400f03)=>_0x4da9b3||!!_0x400f03);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5a029d}=this['_config'],_0x7f690=new _0x5a029d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4567a9=_0x7f690['commentInputView'];return _0x7f690['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4567a9,'value',(_0x4021e0,_0x477721,_0x515e85)=>!!_0x515e85||_0x4021e0&&!_0x477721),_0x4567a9['on']('submit',(_0x4ce6d6,_0xbacc49)=>{this['fire']('addComment',_0xbacc49),_0x4567a9['editor']['setData']('');}),_0x4567a9['on']('cancel',()=>this['focus']()),_0x4567a9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x7f690;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x1781d8,_0x48110f,_0x10374a,_0x17dbdf){super(_0x1781d8,_0x48110f,_0x10374a,_0x17dbdf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x12b458=>_0x12b458&&_0x12b458[0x0]?_0x12b458[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3711c7,_0x5caea2)=>{let _0x42e97f='';for(const _0x5c6c6b of _0x3711c7)_0x42e97f+='<p>'+ns(_0x5c6c6b['content'],_0x5c6c6b['color'])+'</p>';return _0x5caea2?_0x42e97f:ti(_0x42e97f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x17dbdf['SuggestionView'](_0x1781d8,_0x48110f,{'formatDateTime':_0x17dbdf['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 _0x313659=this['bindTemplate'],_0x4c9ed2=[this['suggestionView']];return this['commentsListView']&&_0x4c9ed2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4c9ed2['push'](this['commentThreadInputView']),_0x4c9ed2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x313659['if']('isActive','ck-suggestion-wrapper--active'),_0x313659['to']('type',_0x192137=>'ck-suggestion-'+_0x192137),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':_0x313659['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4c9ed2};}['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 _0x1af93f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x40e067,_0x45c1b9,_0x829aa4){super(_0x40e067),this['_model']=_0x45c1b9,this['_config']=_0x829aa4,this['set']('description',''),this['bind']('authoredAt')['to'](_0x45c1b9),this['acceptButton']=this['_createButton'](o(_0x40e067,'Accept\x20suggestion'),_0x2c975e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x40e067,'Discard\x20suggestion'),_0x2c975e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1a7807(_0x40e067,_0x45c1b9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5942c5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5b425e(),this['keystrokes']=new _0x48adf6(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1ad6fe=>_0x1ad6fe['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2f57bc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2f57bc['innerHTML']=this['description'],this['on']('change:description',(_0x490878,_0x476ef0,_0x1b7a52)=>{_0x2f57bc['innerHTML']=_0x1b7a52;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x235684=this['bindTemplate'],_0x456734=[{'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':_0x235684['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x235684['to']('authoredAt',_0x1d4dd6=>this['_config']['formatDateTime'](_0x1d4dd6))}]}]},{'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']&&_0x456734['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':_0x456734}]};}['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'](_0x3108fa,_0x1d5602,_0x48eb0f,_0x2b5e26,_0xbb4bdd){const _0x2d86dd=new _0x48ee80(this['locale']);return _0x2d86dd['set']({'label':_0x3108fa,'icon':_0x1d5602,'tooltip':!0x0,'tooltipPosition':_0xbb4bdd}),_0x2d86dd['extendTemplate']({'attributes':{'class':_0x48eb0f}}),_0x2d86dd['on']('execute',()=>{this['fire'](_0x2b5e26,this['_model']['id']);}),_0x2d86dd;}['_setupKeyboardNavigation'](){const _0x3d6984=this['element'];this['keystrokes']['listenTo'](_0x3d6984);for(const _0x475da7 of this['focusables'])this['focusTracker']['add'](_0x475da7['element']),this['keystrokes']['listenTo'](_0x475da7['element']);this['keystrokes']['set']('enter',(_0x1ef345,_0x1c0d9e)=>{_0x3d6984===_0x1ef345['target']&&(this['focusCycler']['focusFirst'](),_0x1c0d9e());}),this['keystrokes']['set']('esc',(_0x22d0e9,_0x349a7b)=>{_0x3d6984!==_0x22d0e9['target']&&(this['focus'](),_0x349a7b());});}}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 _0x3c70aa{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x561e78,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8a68c7){super(_0x8a68c7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x8df227=this['editor']['config'];_0x8df227['define']('trackChanges.SuggestionThreadView',de),_0x8df227['define']('trackChanges.SuggestionView',ue),_0x8df227['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x8df227['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xe69b6,_0x44fb46){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x41e87e,_0x3c11fc]of this['_handleControllerBuffer']){const _0x2f2ff5=this['_suggestionToController']['has'](_0x41e87e);_0x2f2ff5||_0x3c11fc?_0x2f2ff5&&_0x3c11fc&&this['_destroyController'](_0x41e87e):this['_initializeController'](_0x41e87e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xe69b6,_0x44fb46);}['init'](){const _0x5f4ad8=this['editor'],_0x2c9165=_0x5f4ad8['plugins']['get']('TrackChangesEditing'),_0xcb4866=_0x5f4ad8['plugins']['get']('Annotations'),_0x2e2ba4=_0x5f4ad8['plugins']['get']('EditorAnnotations'),_0x2ff5b8=_0x5f4ad8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2e2ba4['addSourceCollector'](()=>{const _0x54b04c=[];for(const [_0x55a18a,_0x8af340]of Array['from'](this['_suggestionToController'])){const _0x15d3a6=_0x55a18a['getAllAdjacentSuggestions'](),_0x2305ad=[];for(const _0x473a88 of _0x15d3a6){if(!_0x473a88['isInContent'])continue;if(_0x473a88['isMultiRange']){_0x2305ad['push'](..._0x473a88['getRanges']());continue;}const _0x4b229f=_0x473a88['getFirstRange']();if(_0x2305ad['length']>0x0){const _0x228a35=_0x2305ad[0x0]['getJoined'](_0x4b229f);if(_0x228a35){_0x2305ad[0x0]=_0x228a35;continue;}}_0x2305ad['push'](_0x4b229f);}_0x54b04c['push']([_0x8af340['view'],_0x2305ad]);}return _0x54b04c;}),this['listenTo'](_0x2c9165,'suggestionLoaded',(_0x77339a,_0x27dbb4)=>{this['listenTo'](_0x27dbb4,'change:previous',(_0x354b39,_0x2dc5a6,_0x3dad41,_0x324a4d)=>{_0x27dbb4['isInContent']&&(null==_0x3dad41?(this['_updateController'](_0x324a4d['head']),this['_handleSuggestionControllerDelayed'](_0x27dbb4,!0x1)):(this['_updateController'](_0x3dad41['head']),null==_0x324a4d&&this['_handleSuggestionControllerDelayed'](_0x27dbb4,!0x0)));}),null!==_0x27dbb4['previous']?this['_updateController'](_0x27dbb4['head']):this['_handleSuggestionControllerDelayed'](_0x27dbb4,!0x1);}),this['listenTo'](_0x2c9165,'suggestionUnloaded',(_0x473809,_0xba64ed,_0x43d911)=>{this['stopListening'](_0xba64ed,'change:previous'),this['_handleControllerBuffer']['delete'](_0xba64ed),this['_suggestionToController']['has'](_0xba64ed)&&this['_destroyController'](_0xba64ed),_0x43d911&&this['_updateController'](_0x43d911['head']);}),this['listenTo'](_0x2c9165,'suggestionChanged',(_0x6df130,_0x55d039)=>{this['_updateController'](_0x55d039);}),this['listenTo'](_0xcb4866,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2ff5b8,'addComment',(_0x1616cd,{threadId:_0x3fbfa4,isFromAdapter:_0x3dd31d})=>{if(_0x3dd31d||!_0x2c9165['hasSuggestion'](_0x3fbfa4))return;const _0xeb2472=_0x2c9165['getSuggestion'](_0x3fbfa4);this['_suggestionToController']['get'](_0xeb2472)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c4ca5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10db66;for(const _0x15be4a in _0x3c4ca5){const _0x2af510=_0x15be4a,_0x4a9b70=_0x3c4ca5[_0x2af510];if('trackChangesLicenseKeyValid'==_0x4a9b70||'trackChangesLicenseKeyInvalid'==_0x4a9b70||'trackChangesLicenseKeyExpired'==_0x4a9b70||'trackChangesLicenseKeyDomainLimit'==_0x4a9b70||'trackChangesLicenseKeyNotAllowed'==_0x4a9b70||'trackChangesLicenseKeyEvaluationLimit'==_0x4a9b70||'trackChangesLicenseKeyTrialLimit'==_0x4a9b70||'trackChangesLicenseKeyDevelopmentLimit'==_0x4a9b70||'trackChangesLicenseKeyUsageLimit'==_0x4a9b70){delete _0x3c4ca5[_0x2af510],_0x10db66=_0x4a9b70,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x10db66&&_0x3c4ca5['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x10db66&&_0x3c4ca5['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x10db66&&_0x3c4ca5['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x27dd76=this['editor']['plugins']['get']('Annotations'),_0x17b47a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59f474=Array['from'](_0x27dd76['activeAnnotations'],_0x3ac933=>_0x3ac933['innerView'])['filter'](_0x30356a=>this['_viewToController']['has'](_0x30356a)),_0x4551b5=[];for(const _0x1f80b1 of _0x59f474){const _0x501a2b=this['_viewToController']['get'](_0x1f80b1)['model']['getAllAdjacentSuggestions']();_0x4551b5['push'](..._0x501a2b['reduce']((_0x439b0f,_0x4b6d64)=>[..._0x439b0f,..._0x4b6d64['getMarkerNames']()],[]));}_0x17b47a['activeMarkers']=_0x4551b5;}['_addUIComponentsToFactory'](){const _0x4e3546=this['editor'],_0x41fe81=_0x4e3546['locale'],_0x7e960=o(_0x41fe81,'Track\x20changes'),_0x16bea7=new _0x4a8f40([{'type':'switchbutton','model':new _0x11d7e2({'withText':!0x0,'isToggleable':!0x0,'label':_0x7e960,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x11d7e2({'withText':!0x0,'label':o(_0x41fe81,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x11d7e2({'withText':!0x0,'label':o(_0x41fe81,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x11d7e2({'withText':!0x0,'label':o(_0x41fe81,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x11d7e2({'withText':!0x0,'label':o(_0x41fe81,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5ec511 of _0x16bea7)if(pe(_0x5ec511)){const _0xefe471=_0x4e3546['commands']['get'](_0x5ec511['model']['commandName']);_0x5ec511['model']['bind']('isOn','isEnabled')['to'](_0xefe471,'value','isEnabled');}_0x4e3546['ui']['componentFactory']['add']('trackChanges',_0x12bbdb=>this['_createToolbarButton'](_0x12bbdb,_0x16bea7,_0x7e960)),_0x4e3546['ui']['componentFactory']['add']('menuBar:trackChanges',_0x39f255=>this['_createMenuBarMenu'](_0x39f255,_0x16bea7,_0x7e960));}['_createToolbarButton'](_0xd54c8e,_0x39bb38,_0x7207a7){const _0x4e07dc=_0x3ca6cc(_0xd54c8e,_0x3de8e3),_0x11b971=this['editor']['commands']['get']('trackChanges');_0x4e07dc['buttonView']['set']({'tooltip':_0x7207a7,'label':_0x7207a7,'icon':Ce}),_0x4e07dc['buttonView']['bind']('isOn')['to'](_0x11b971,'value'),_0x4e07dc['buttonView']['on']('execute',()=>{_0x11b971['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x4e07dc,_0x39bb38,{'role':'menu'});const _0x389a45=[];for(const _0x423210 of _0x39bb38)pe(_0x423210)&&_0x389a45['push'](this['editor']['commands']['get'](_0x423210['model']['commandName']));const _0x36be94=_0x4e07dc['buttonView'];return _0x36be94['actionView']['unbind']('isEnabled'),_0x36be94['arrowView']['unbind']('isEnabled'),_0x36be94['actionView']['bind']('isEnabled')['to'](_0x11b971,'isEnabled'),_0x36be94['arrowView']['bind']('isEnabled')['toMany'](_0x389a45,'isEnabled',(..._0x542f88)=>_0x542f88['some'](_0x39f63a=>_0x39f63a)),_0x4e07dc['on']('execute',_0x264a02=>{this['editor']['execute'](_0x264a02['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e07dc;}['_createMenuBarMenu'](_0x73cdb2,_0x4c7bb5,_0x499f81){const _0x41bb0c=new _0x5f51ed(_0x73cdb2),_0x2dc2f2=this['editor']['commands']['get']('trackChanges');_0x41bb0c['buttonView']['set']({'label':_0x499f81,'icon':Ce});const _0x43ef84=new _0x474c59(_0x73cdb2);for(const _0x2edd9e of _0x4c7bb5){if('separator'==_0x2edd9e['type']){_0x43ef84['items']['add'](new _0x41b63c(_0x73cdb2));continue;}const _0xdca84a=new _0x101cc3(_0x73cdb2,_0x41bb0c),_0x47e967=new _0x356cad(_0x73cdb2),_0x23a1e0=_0x2edd9e['model'];_0x47e967['bind'](...Object['keys'](_0x23a1e0))['to'](_0x23a1e0),_0x47e967['delegate']('execute')['to'](_0x41bb0c),_0x47e967['on']('execute',()=>{this['editor']['execute'](_0x23a1e0['commandName']),this['editor']['editing']['view']['focus']();}),_0xdca84a['children']['add'](_0x47e967),_0x43ef84['items']['add'](_0xdca84a);}return _0x41bb0c['bind']('isEnabled')['to'](_0x2dc2f2,'isEnabled'),_0x41bb0c['panelView']['children']['add'](_0x43ef84),_0x41bb0c;}['_initializeController'](_0x29f768){const _0x40c9c0=this['editor'],_0x3a6422=_0x40c9c0['config'],_0x31dcc3=_0x40c9c0['plugins']['get']('Annotations'),_0x34ed2e=_0x40c9c0['plugins']['get']('CommentsRepository'),_0x1bd00c=_0x40c9c0['plugins']['get']('EditorAnnotations'),_0x9efd1a=_0x40c9c0['plugins']['get'](_0x561e78)['me'],_0xde5f97=_0x3a6422['get']('trackChanges')['SuggestionThreadView'],_0x15731f=_0x3a6422['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x502b07,CommentThreadInputView:_0x143f5e}=_0x40c9c0['plugins']['get']('CommentsUI');let _0x982755,_0x2599ce,_0x260b06;this['_annotationViews']['has'](_0x29f768['id'])?(_0x2599ce=this['_annotationViews']['get'](_0x29f768['id']),_0x982755=_0x2599ce['mainView']):(_0x982755=new _0xde5f97(_0x40c9c0['locale'],_0x29f768,_0x9efd1a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3a6422['get']('comments.editorConfig'),'licenseKey':_0x3a6422['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3a6422['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3a6422['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3a6422['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3f1446(_0x3a6422['get']('locale')),'CommentView':_0x3a6422['get']('comments')['CommentView'],'CommentsListView':_0x502b07,'CommentThreadInputView':_0x143f5e,'SuggestionView':_0x15731f}),_0x982755['suggestionView']['acceptButton']['on']('execute',()=>{_0x40c9c0['editing']['view']['focus']();}),_0x982755['suggestionView']['discardButton']['on']('execute',()=>{_0x40c9c0['editing']['view']['focus']();}),_0x2599ce=_0x31dcc3['createAnnotationView'](this['editor']['locale'],_0x982755),_0x2599ce['bind']('isDirty')['to'](_0x982755,'isDirty'),_0x2599ce['bind']('length')['to'](_0x982755),_0x2599ce['bind']('type')['to'](_0x982755,'type',_0x473ed3=>'suggestion-'+_0x473ed3),_0x982755['on']('escape',()=>{_0x260b06['fire']('escape');}),this['_annotationViews']['set'](_0x29f768['id'],_0x2599ce));const _0x5477de=_0x34ed2e['createCommentThreadController'](_0x29f768['commentThread'],_0x982755),_0x2d9535=new ge(_0x40c9c0,_0x29f768,_0x982755,_0x5477de),_0x596c03=_0x29f768['getAllAdjacentSuggestions']()['filter'](_0x3604b2=>_0x3604b2['isInContent']);_0x982755['descriptionParts']=_0x40c9c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x596c03),this['_suggestionToController']['set'](_0x29f768,_0x2d9535),this['_viewToController']['set'](_0x982755,_0x2d9535),_0x260b06=_0x31dcc3['createAnnotation']({'view':_0x2599ce,'target':()=>{const _0x29d74b=[],_0xecb51b=_0x29f768['getAllAdjacentSuggestions']()['filter'](_0x51f000=>_0x51f000['isInContent']);for(const _0x57d329 of _0xecb51b)_0x29d74b['push'](..._0x57d329['getMarkers']());return _0xd1bf56(_0x40c9c0['editing'],_0x29d74b);},'type':()=>'suggestion-'+_0x2d9535['view']['type']}),_0x34ed2e['_bindAnnotationToEditors'](_0x982755,_0x260b06),_0x31dcc3['add'](_0x260b06),_0x1bd00c['registerAnnotation'](_0x260b06);}['_destroyController'](_0x44fdaa){const _0x31eda2=this['editor']['plugins']['get']('CommentsRepository'),_0x578943=this['editor']['plugins']['get']('Annotations'),_0x1cac03=this['_suggestionToController']['get'](_0x44fdaa),_0x3b0954=_0x1cac03['view'],_0x3587e4=_0x578943['getByInnerView'](_0x3b0954);_0x31eda2['_unbindEditors'](_0x3b0954),_0x3587e4&&_0x578943['remove'](_0x3587e4),this['_suggestionToController']['delete'](_0x44fdaa),this['_viewToController']['delete'](_0x3b0954),_0x1cac03['destroy']();}['_updateController'](_0x2d566f){if(!_0x2d566f['isInContent']||!this['_suggestionToController']['has'](_0x2d566f))return;const _0xf0e9a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4959dd=this['_suggestionToController']['get'](_0x2d566f),_0x2c3f36=_0x2d566f['getAllAdjacentSuggestions']();_0x4959dd['view']['descriptionParts']=_0xf0e9a8['descriptionFactory']['getDescriptions'](_0x2c3f36);}['destroy'](){for(const _0x57d56a of this['_suggestionToController']['keys']())this['_destroyController'](_0x57d56a);for(const _0x3447c3 of this['_annotationViews']['values']())_0x3447c3['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0xfc2268){return'model'in _0xfc2268;}class k extends _0x3c70aa{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x11b206){this['editor']['plugins']['get'](p)['adapter']=_0x11b206;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xfb046){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xfb046);}['getSuggestions']({skipNotAttached:_0x17af5d=!0x1,toJSON:_0x23c387=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x17af5d,'toJSON':_0x23c387});}['getSuggestion'](_0x111dc0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x111dc0);}}const w=['Pagination'];class T extends _0x3c70aa{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x562861=this['editor'];if(_0x562861['config']['define']('trackChangesData.editorCreator',_0xe36a80=>{const _0x5359ed=_0x562861['model']['document']['getRootNames']()['reduce']((_0x1a9a3d,_0x110935)=>(_0x1a9a3d[_0x110935]='',_0x1a9a3d),{});return _0x562861['constructor']['create'](_0x5359ed,_0xe36a80);}),'function'!=typeof _0x562861['config']['get']('trackChangesData')['editorCreator'])throw new _0x1c48ec('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xf320c0){return N(this['editor'],!0x0,_0xf320c0);}['getDataWithDiscardedSuggestions'](_0x28ca7a){return N(this['editor'],!0x1,_0x28ca7a);}}class D extends _0x3c70aa{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21ef87){function _0x3d8319(_0x345dd1){return _0x345dd1['map'](_0x54ff47=>String['fromCharCode'](_0x54ff47))['join']('');}super(_0x21ef87),this['result']='end',_0x21ef87[_0x3d8319([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d8319([0x76,0x69,0x65,0x77])][_0x3d8319([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d8319([0x61,0x75,0x74,0x6f]),_0x21ef87[_0x3d8319([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d8319([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d8319([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d8319([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d8319([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(_0x2bfa2b){return void 0x0!==_0x2bfa2b['getRootsAttributes'];}async function N(_0x315c06,_0x370dae,_0x3f9468){const _0xa7a463=_0x56139c(_0x315c06,w);_0xa7a463['plugins']['push'](p,D),_0xa7a463['rootsAttributes']=v(_0x315c06)?_0x315c06['getRootsAttributes']():void 0x0;const _0x374434=document['createDocumentFragment'](),_0x198879=_0x315c06['config']['get']('trackChangesData')['editorCreator'],_0x4ca637=await _0x198879(_0xa7a463,()=>function(_0x88a254){const _0x3d6599=document['createElement']('div');return _0x88a254['appendChild'](_0x3d6599),_0x3d6599;}(_0x374434));!function(_0x251600,_0x4f240c){const _0x107662=_0x251600['model']['document']['getRootNames']()['reduce']((_0x237791,_0x94daf7)=>(_0x237791[_0x94daf7]=_0x251600['data']['get']({'rootName':_0x94daf7}),_0x237791),{}),_0x27015c=_0x251600['plugins']['get']('Users')['users']['map'](_0x18c978=>({'id':_0x18c978['id'],'name':_0x18c978['name']})),_0x5ce987=_0x251600['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2383a7=_0x251600['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1420df=_0x4f240c['plugins']['get']('Users'),_0x15684e=_0x4f240c['plugins']['get']('TrackChangesEditing'),_0x119fde=_0x4f240c['plugins']['get']('CommentsRepository');for(const _0x2ddb01 of _0x119fde['getCommentThreads']())_0x2ddb01['remove']();for(const _0x528a51 of _0x27015c)_0x1420df['getUser'](_0x528a51['id'])||_0x1420df['addUser'](_0x528a51);_0x1420df['me']||_0x1420df['useAnonymousUser']();for(const _0x4045a9 of _0x2383a7)_0x119fde['addCommentThread'](_0x4045a9);for(const _0x553cf5 of _0x5ce987)_0x15684e['addSuggestionData'](_0x553cf5);_0x4f240c['data']['set'](_0x107662);}(_0x315c06,_0x4ca637),_0x4ca637['execute'](_0x370dae?'acceptAllSuggestions':'discardAllSuggestions');const _0x49aa81=v(_0x4ca637)?_0x4ca637['getFullData'](_0x3f9468):_0x4ca637['data']['get'](_0x3f9468);return await _0x4ca637['destroy'](),_0x49aa81;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};