@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241015.0 → 0.0.0-nightly-20241016.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x3c336f,PendingActions as _0x3e1600,icons as _0x4a4689}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x45f891,ObservableMixin as _0x347799,uid as _0x36c984,insertToPriorityArray as _0x50f6e5,priorities as _0x4c6477,logWarning as _0x1ee2c6,getEnvKeystrokeText as _0x46bee8,FocusTracker as _0xfc952c,KeystrokeHandler as _0x514e11,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x56eaf1,View as _0x233b26,ViewCollection as _0x1354df,FocusCycler as _0x41b7df,ViewModel as _0x4a0ce6,createDropdown as Qt,SplitButtonView as _0x3a3d67,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x47c1bc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x25bf2a,hashObject as _0x228f25,surroundingMarkersDetector as _0x34a5c1,FOCUS_ANNOTATION_KEYSTROKE as _0xf05e31,AriaDescriptionView as _0x325ad4,setupThreadKeyboardNavigation as _0x54ea47,trimHtml as _0x37a9ef,UserView as _0xb0baac,LateFocusButtonView as _0x535f34,getDateTimeFormatter as _0x466076,getAllMarkersDomElementsSorted as _0x1472c1,sanitizeEditorConfig as _0x5e663f}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x98ee7d,LiveRange as _0x4537cd,LivePosition as _0x64eaf}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4c4ed0,toWidget as _0x4a5956}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x51ed48,set as _0x1ede9e,isEqual as _0x26e10e,unset as _0x350023,omit as Tt}from'lodash-es';import{Delete as _0x51577d,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x10188d,ShiftEnter as _0x1e3dd4}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x593914,_0x66020f){super(_0x593914),this['_enabledCommands']=_0x66020f,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 _0x3d9020 of this['editor']['commands']['commands']())_0x3d9020['affectsData']&&!this['_enabledCommands']['has'](_0x3d9020)&&_0x3d9020['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1add6b of this['editor']['commands']['commands']())_0x1add6b['affectsData']&&!this['_enabledCommands']['has'](_0x1add6b)&&_0x1add6b['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x4ca0ef,_0x10de59){super(_0x4ca0ef),this['_suggestions']=_0x10de59,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x364e2d){const _0x35b233=this['_suggestions']['get'](_0x364e2d);if(!_0x35b233)throw new _0x45f891('track-changes-accept-suggestion-not-found',this);const _0xb21bb9=_0x35b233['getRanges']();this['editor']['model']['canEditAt'](_0xb21bb9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x35b233);}}class R extends ts{['_suggestions'];constructor(_0xdb1c8c,_0x16e462){super(_0xdb1c8c),this['_suggestions']=_0x16e462,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x143abc){const _0x50d6df=this['_suggestions']['get'](_0x143abc);if(!_0x50d6df)throw new _0x45f891('track-changes-discard-suggestion-not-found',this);const _0x477246=_0x50d6df['getRanges']();this['editor']['model']['canEditAt'](_0x477246)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x50d6df);}}function ls(_0x56f286,_0x37c065){let _0x1aae55='';return _0x1aae55+=_0x56f286['split']('*')['map']((_0x4ea54b,_0x55763f)=>_0x55763f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4ea54b)+'</span>':nn(_0x4ea54b))['join'](''),_0x37c065&&(_0x1aae55+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x37c065['value']+'\x22\x20title=\x22'+_0x37c065['title']+'\x22></span>'),_0x1aae55;}function nn(_0x37e3a7){const _0x38d96f=document['createElement']('span');return _0x38d96f['innerText']=_0x37e3a7,_0x38d96f['innerHTML'];}function ss(_0x5449de){return _0x5449de['sort']((_0x238b15,_0x19a359)=>'deletion'==_0x238b15['type']&&'deletion'!=_0x19a359['type']?-0x1:'deletion'!=_0x238b15['type']&&'deletion'==_0x19a359['type']?0x1:0x0);}function to(_0x2cd94f,_0x21d3c4){let _0x2adce1,_0x566790=0x0;const _0x4715=[],_0x899499=_0x21d3c4['schema'];for(;_0x566790<_0x2cd94f['length'];){const _0x32e58c=_0x2cd94f[_0x566790],_0x300e2c=_0x2cd94f[_0x566790+0x1];_0x2adce1||(_0x2adce1=_0x21d3c4['createPositionBefore'](_0x32e58c)),on(_0x21d3c4,_0x32e58c,_0x300e2c)||(_0x4715['push'](_0x21d3c4['createRange'](_0x2adce1,_0x899499['isObject'](_0x32e58c)?_0x21d3c4['createPositionAfter'](_0x32e58c):_0x21d3c4['createPositionAt'](_0x32e58c,'end'))),_0x2adce1=null),_0x566790++;}return _0x4715;}function on(_0x4fe92e,_0x14716e,_0x26c3c1){if(!_0x26c3c1)return!0x1;const _0x217809=_0x4fe92e['createPositionAfter'](_0x14716e),_0x55db6a=_0x4fe92e['createPositionBefore'](_0x26c3c1);return _0x217809['isTouching'](_0x55db6a);}function rs(_0x3d67d3,_0x34a93b,_0x55f35b){for(;_0x55f35b['length'];){const _0x33c911=_0x55f35b['splice'](0x0,0x64);_0x3d67d3['change'](()=>{for(const _0xd8cef8 of _0x33c911)_0xd8cef8['isInContent']&&_0x34a93b['execute'](_0xd8cef8['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0xad07d4,_0x5e8eec,_0x42a049){super(_0xad07d4),this['_command']=_0x5e8eec,this['_suggestions']=_0x42a049,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1e5077=Array['from'](this['_suggestions']['values']())['some'](_0x3588d8=>_0x3588d8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1e5077;}['execute'](){const _0xfdc1b1=ss(Array['from'](this['_suggestions']['values']()));for(const _0x293553 of _0xfdc1b1){const _0x3c8984=_0x293553['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3c8984))return;}rs(this['editor']['model'],this['_command'],_0xfdc1b1);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x55d140,_0x19b556,_0x3c2dac){super(_0x55d140),this['_command']=_0x19b556,this['_suggestions']=_0x3c2dac,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x540403=this['editor']['model']['document']['selection'],_0x20b8b8=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1c19c0,_0x1237f5){const _0x35b59d=Array['from'](_0x1c19c0['getRanges']()),_0x24574a=new Set();for(const _0x365f39 of _0x1237f5)if(_0x365f39['isInContent']){for(const _0x5a484b of _0x35b59d)for(const _0x20b67a of _0x365f39['getRanges']())(_0x5a484b['isIntersecting'](_0x20b67a)||_0x1c19c0['isCollapsed']&&!_0x365f39['isMultiRange']&&_0x365f39['next']&&_0x20b67a['end']['isTouching'](_0x5a484b['start']))&&_0x24574a['add'](_0x365f39);}return _0x24574a;}(_0x540403,_0x20b8b8),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x24ddd3=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4f85a6 of _0x24ddd3){const _0x1425dc=_0x4f85a6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1425dc))return;}rs(this['editor']['model'],this['_command'],_0x24ddd3);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x347799(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x38f603,_0x2e21f7){super(),this['id']=_0x2e21f7['id'],this['type']=_0x2e21f7['type'],this['subType']=_0x2e21f7['subType']||null,this['author']=_0x2e21f7['author'],this['creator']=_0x2e21f7['creator']||_0x2e21f7['author'],this['isExternal']=Boolean(_0x2e21f7['attributes']&&_0x2e21f7['attributes']['@external']),this['data']=null,this['_model']=_0x38f603,this['_onAccept']=_0x2e21f7['onAccept'],this['_onDiscard']=_0x2e21f7['onDiscard'],this['_onAttributesChange']=_0x2e21f7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2e21f7['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 _0x556626=this;for(;_0x556626['previous'];)_0x556626=_0x556626['previous'];return _0x556626;}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'](_0x24abab){this['_markerNames']['add'](_0x24abab);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2fd86b=>this['_model']['markers']['get'](_0x2fd86b))['filter'](_0xde952a=>_0xde952a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2f0cc0=>{for(const _0xb80dfc of this['getMarkers']())_0x2f0cc0['removeMarker'](_0xb80dfc);}),this['_markerNames']['clear']();}['removeMarker'](_0x5134bc){this['_model']['change'](_0x23599b=>{_0x23599b['removeMarker'](_0x5134bc);}),this['_markerNames']['delete'](_0x5134bc);}['addRange'](_0x2a3570){const _0x28ad2f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x28ad2f),this['_model']['change'](_0x4c2b1e=>{_0x4c2b1e['addMarker'](_0x28ad2f,{'range':_0x2a3570,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x95c8a9){for(const _0x2dca23 of this['getRanges']())if(_0x2dca23['isIntersecting'](_0x95c8a9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1f89b9=>_0x1f89b9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3f0af9,_0x33b4d3)=>[..._0x3f0af9,..._0x33b4d3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xbc2212=this['getRanges']();if(0x1!=_0xbc2212['length'])return null;const _0x3baf48=_0xbc2212[0x0],_0x23c719=_0x3baf48['start']['nodeAfter'],_0x5df6da=_0x3baf48['end']['nodeBefore'];return _0x23c719 instanceof _0x98ee7d?_0x23c719!=_0x5df6da?null:_0x23c719: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 _0x1f541d=[];let _0x1d7991=this['head'];for(;_0x1d7991;)_0x1f541d['push'](_0x1d7991),_0x1d7991=_0x1d7991['next'];return _0x1f541d;}['setAttribute'](_0x35c446,_0x27fea4){const _0x2c5dcd=_0x51ed48(this['attributes']);_0x1ede9e(_0x2c5dcd,_0x35c446,_0x27fea4),_0x26e10e(_0x2c5dcd,this['attributes'])||(this['attributes']=_0x2c5dcd,this['_onAttributesChange'](_0x2c5dcd));}['removeAttribute'](_0x3c5fb2){const _0x30dfe1=_0x51ed48(this['attributes']);_0x350023(_0x30dfe1,_0x3c5fb2),_0x26e10e(_0x30dfe1,this['attributes'])||(this['attributes']=_0x30dfe1,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 _0x36c984()['substr'](0x1,0x5);}}function o(_0x2b7d09,_0x2dc2b4,_0x3c6998){const t=_0x2b7d09['t'];switch(_0x2dc2b4){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',_0x3c6998);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3c6998);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3c6998);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3c6998);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3c6998);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',_0x3c6998);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3c6998);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',_0x3c6998);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3c6998);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3c6998);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3c6998);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3c6998);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3c6998);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3c6998);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3c6998);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3c6998);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3c6998);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3c6998);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3c6998);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3c6998);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3c6998);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3c6998);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3c6998);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'},_0x3c6998);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3c6998);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3c6998);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3c6998);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3c6998);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3c6998);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'},_0x3c6998);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3c6998);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3c6998);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3c6998);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3c6998);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'},_0x3c6998);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3c6998);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'},_0x3c6998);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'},_0x3c6998);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3c6998);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'},_0x3c6998);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3c6998);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'},_0x3c6998);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3c6998);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3c6998);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'},_0x3c6998);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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3c6998);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3c6998);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3c6998);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'},_0x3c6998);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'},_0x3c6998);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'},_0x3c6998);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2dc2b4;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2685ab,_0x5936cd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2685ab,this['_locale']=_0x5936cd;}['getDescriptions'](_0x2358c5){const _0x3f9ff4=[],_0x310681=new Set(),_0x204281=new Set();for(let _0x30c6ac=0x0;_0x30c6ac<_0x2358c5['length'];_0x30c6ac++){const _0xab150b=_0x2358c5[_0x30c6ac];if(!_0xab150b['isInContent'])continue;const _0x5115b2=this['_handleCustomCallbackDescription'](_0xab150b);if(_0x5115b2){if(null!=_0xab150b['subType']){if(_0x310681['has'](_0xab150b['subType']))continue;_0x310681['add'](_0xab150b['subType']);}_0x3f9ff4['push'](_0x5115b2);}else{if('attribute'!=_0xab150b['type'])'insertion'!=_0xab150b['type']&&'deletion'!=_0xab150b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3f9ff4,_0xab150b,_0x2358c5[_0x30c6ac+0x1]);else{const _0x242ce4=_0xab150b['data']['key'];if(_0x204281['has'](_0x242ce4))continue;_0x204281['add'](_0xab150b['data']['key']),_0x242ce4==m?this['_handleRenameSuggestionDescription'](_0x3f9ff4,_0xab150b):this['_handleAttributeSuggestionDescription'](_0x3f9ff4,_0xab150b);}}}return this['_resolveDescriptionItems'](_0x3f9ff4);}['registerDescriptionCallback'](_0x2f54d3){this['_customCallbacks']['push'](_0x2f54d3);}['registerElementLabel'](_0x20fde7,_0x373445,_0x24456a=_0x4c6477['normal']){'function'==typeof _0x20fde7?_0x50f6e5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x20fde7,'label':_0x373445,'priority':_0x24456a}):this['_itemLabels']['set'](_0x20fde7,_0x373445);}['registerAttributeLabel'](_0x4f7891,_0x19713e){this['_attributeLabels']['set'](_0x4f7891,_0x19713e);}['getItemLabel'](_0x4b345c,_0x37187f=0x1){let _0x56724c;for(const _0x1dfcbf of this['_itemLabelsCallbacks'])if(_0x1dfcbf['matchingCallback'](_0x4b345c)){_0x56724c=_0x1dfcbf['label'];break;}return _0x56724c||(_0x56724c=this['_itemLabels']['get'](_0x4b345c['name'])),_0x56724c?_0x56724c(_0x37187f):0x1!==_0x37187f?_0x37187f+'\x20'+_0x4b345c['name']+'s':''+_0x4b345c['name'];}['_addDescriptionItems'](_0x4a17e1,_0x11fb93){const _0x52cfed=_0x11fb93['getFirstRange']()['getWalker'](),_0xef6051='insertion'==_0x11fb93['type']?'add':'remove';for(const _0x42008e of _0x52cfed){const _0xfa8e2=_0x42008e['item'],_0x32f363=_0x4a17e1[_0x4a17e1['length']-0x1];if(_0xfa8e2['is']('$textProxy'))_0x32f363&&_0x32f363['type']['indexOf']('Container')>-0x1&&_0x4a17e1['pop'](),_0x32f363&&'text'==_0x32f363['type']?_0x32f363[_0xef6051]+=_0xfa8e2['data']:_0x4a17e1['push']({'type':'text','add':'add'==_0xef6051?_0xfa8e2['data']:'','remove':'remove'==_0xef6051?_0xfa8e2['data']:''});else{if(this['_schema']['isObject'](_0xfa8e2)){const _0x1bfa94=_0xfa8e2;if(_0x32f363&&_0x32f363['type']['indexOf']('Container')>-0x1&&_0x4a17e1['pop'](),'elementEnd'==_0x42008e['type'])continue;_0x32f363&&_0x32f363['type']==_0xef6051+'Object'&&_0x32f363['element']['name']==_0x1bfa94['name']?_0x32f363['quantity']++:_0x4a17e1['push']({'type':_0xef6051+'Object','element':_0x1bfa94,'quantity':0x1}),_0x52cfed['skip'](_0x5d8de2=>!('elementEnd'==_0x5d8de2['type']&&_0x5d8de2['item']==_0xfa8e2));}else{if(this['_schema']['checkChild'](_0xfa8e2,'$text')||_0xfa8e2['is']('element','softBreak')){const _0x20dd31=_0xfa8e2;if('add'==_0xef6051&&'elementStart'==_0x42008e['type']||'remove'==_0xef6051&&'elementEnd'==_0x42008e['type'])continue;if(_0x32f363&&-0x1==_0x32f363['type']['indexOf']('Container')){'text'==_0x32f363['type']&&(_0x32f363[_0xef6051]+='\x0a');continue;}let _0x4c393d;if(_0x4c393d='add'==_0xef6051?_0x20dd31['nextSibling']&&!this['_schema']['isObject'](_0x20dd31['nextSibling'])?_0x20dd31['nextSibling']:null:_0x20dd31['previousSibling']&&!this['_schema']['isObject'](_0x20dd31['previousSibling'])?_0x20dd31['previousSibling']:null,_0x20dd31['isEmpty']||_0x4c393d&&_0x4c393d['isEmpty']){const _0x2042a5=_0x4c393d&&_0x4c393d['isEmpty']?_0x4c393d:_0x20dd31;_0x32f363&&_0x32f363['type']==_0xef6051+'EmptyContainer'&&_0x32f363['element']['name']==_0x2042a5['name']?_0x32f363['quantity']++:_0x4a17e1['push']({'type':_0xef6051+'EmptyContainer','element':_0x2042a5,'quantity':0x1});}else _0x4a17e1['push']({'type':_0xef6051+'Container','element':_0x20dd31});}}}}}['_resolveDescriptionItems'](_0x198e08){const _0x488f88=this['_locale'],_0x46bd29=[],_0x5988af=[],_0xbfbd9=[];for(const _0x17be57 of _0x198e08)switch(_0x17be57['type']){case'text':if(_0x17be57['add']=_0x17be57['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17be57['remove']=_0x17be57['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17be57['add']&&''!=_0x17be57['remove']){_0x46bd29['push']({'type':'replace','content':o(_0x488f88,'REPLACE_TEXT',['\x22'+_0x17be57['remove']+'\x22','\x22'+_0x17be57['add']+'\x22'])});continue;}if(null!=_0x17be57['add']['match'](/^ +$/)){_0x46bd29['push']({'type':'insertion','content':o(_0x488f88,'*Insert:*\x20%0',o(_0x488f88,'ELEMENT_SPACE',_0x17be57['add']['length']))});continue;}if(null!=_0x17be57['remove']['match'](/^ +$/)){_0x46bd29['push']({'type':'deletion','content':o(_0x488f88,'*Remove:*\x20%0',o(_0x488f88,'ELEMENT_SPACE',_0x17be57['remove']['length']))});continue;}if(''!=_0x17be57['add']){_0x46bd29['push']({'type':'insertion','content':o(_0x488f88,'*Insert:*\x20%0','\x22'+_0x17be57['add']+'\x22')});continue;}_0x46bd29['push']({'type':'deletion','content':o(_0x488f88,'*Remove:*\x20%0','\x22'+_0x17be57['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x46bd29['push']({'type':'insertion','content':o(_0x488f88,'*Insert:*\x20%0',this['getItemLabel'](_0x17be57['element'],_0x17be57['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x46bd29['push']({'type':'deletion','content':o(_0x488f88,'*Remove:*\x20%0',this['getItemLabel'](_0x17be57['element'],_0x17be57['quantity']))});continue;case'addContainer':_0x46bd29['push']({'type':'insertion','content':o(_0x488f88,'*Split:*\x20%0',this['getItemLabel'](_0x17be57['element'],_0x17be57['quantity']))});continue;case'removeContainer':_0x46bd29['push']({'type':'deletion','content':o(_0x488f88,'*Merge:*\x20%0',this['getItemLabel'](_0x17be57['element'],_0x17be57['quantity']))});continue;case'addFormat':_0x5988af['push'](_0x17be57['key']);continue;case'removeFormat':_0xbfbd9['push'](_0x17be57['key']);continue;default:_0x46bd29['push'](_0x17be57);}if(_0x5988af['length']){const _0x166194=_0x5988af['map'](_0x28a71e=>this['_attributeLabels']['has'](_0x28a71e)?this['_attributeLabels']['get'](_0x28a71e):_0x28a71e)['join'](',\x20');_0x46bd29['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x166194)});}if(_0xbfbd9['length']){const _0x39390c=_0xbfbd9['map'](_0x4c9aaf=>this['_attributeLabels']['has'](_0x4c9aaf)?this['_attributeLabels']['get'](_0x4c9aaf):_0x4c9aaf)['join'](',\x20');_0x46bd29['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x39390c)});}return _0x46bd29;}['_handleCustomCallbackDescription'](_0x3f1680){for(const _0x3fe3e9 of this['_customCallbacks']){const _0x1efa44=_0x3fe3e9(_0x3f1680);if(_0x1efa44&&'type'in _0x1efa44)return _0x1efa44;}}['_handleAttributeSuggestionDescription'](_0x2d9aec,_0x3e6186){const _0x10b247=_0x3e6186['data'],_0xdb1a74=void 0x0===_0x10b247['newValue']?'removeFormat':'addFormat';_0x2d9aec['push']({'type':_0xdb1a74,'key':_0x10b247['key']});}['_handleRenameSuggestionDescription'](_0x1c3061,_0x96a59b){_0x1c3061['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x96a59b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4e3c0f,_0x31c61c,_0x4e58e2){if(this['_addDescriptionItems'](_0x4e3c0f,_0x31c61c),_0x4e58e2&&_0x4e58e2['getFirstRange']()&&!_0x31c61c['getFirstRange']()['end']['isEqual'](_0x4e58e2['getFirstRange']()['start'])){const _0x5d253e=_0x4e3c0f[_0x4e3c0f['length']-0x1],_0x244585='insertion'==_0x31c61c['type']?'add':'remove';_0x5d253e&&'text'==_0x5d253e['type']&&(_0x5d253e[_0x244585]+='\x0a');}}}class V extends _0x3c336f{['afterInit'](){const _0x58e303=this['editor'],_0x238e54=_0x58e303['plugins']['get']('TrackChangesEditing');_0x58e303['commands']['get']('showAIAssistant')&&_0x238e54['enableCommand']('showAIAssistant');}}class U extends _0x3c336f{['afterInit'](){const _0x465090=this['editor'],_0x8dbe03=_0x465090['locale'];if(!_0x465090['plugins']['has']('AlignmentEditing'))return;const _0xcf074e=_0x465090['plugins']['get']('TrackChangesEditing');_0xcf074e['enableDefaultAttributesIntegration']('alignment'),_0xcf074e['registerBlockAttribute']('alignment'),_0xcf074e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x8dbe03,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b4602=this['editor'],_0x25fe34=_0x4b4602['locale'];_0x4b4602['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa0a0e5=>{if('formatBlock'!=_0xa0a0e5['type'])return;const {data:_0x266e91}=_0xa0a0e5;if(_0x266e91&&'alignment'==_0x266e91['commandName']){const _0x2a9d92=_0x266e91['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x25fe34,'*Format:*\x20%0',function(_0x349f45){switch(_0x349f45){case'left':return o(_0x25fe34,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x25fe34,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x25fe34,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x25fe34,'FORMAT_JUSTIFY_TEXT');}}(_0x2a9d92))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3c336f{['afterInit'](){const _0x1e497f=this['editor'],_0x4a345f=_0x1e497f['plugins']['get']('TrackChangesEditing'),_0x1a6a73=_0x1e497f['locale'];for(const _0x209cfb of ti){if(!_0x1e497f['plugins']['has'](_0x209cfb))continue;const _0x3cd3c3=_0x209cfb['slice'](0x0,-0x7)['toLowerCase'](),_0x4c0274='FORMAT_'+_0x3cd3c3['toUpperCase']();_0x4a345f['enableDefaultAttributesIntegration'](_0x3cd3c3),_0x4a345f['registerInlineAttribute'](_0x3cd3c3),_0x4a345f['descriptionFactory']['registerAttributeLabel'](_0x3cd3c3,o(_0x1a6a73,_0x4c0274));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f70b5=this['editor'],_0x502d72=_0x4f70b5['locale'],_0x9e285a=_0x4f70b5['plugins']['get']('TrackChangesEditing');function _0x5562b6(_0x472cb2,_0x18c476){_0x9e285a['descriptionFactory']['registerDescriptionCallback'](_0x381eb9=>{if('formatInline'!=_0x381eb9['type'])return;const {data:_0x2cf1fc}=_0x381eb9;return _0x2cf1fc&&_0x2cf1fc['commandName']===_0x472cb2?_0x2cf1fc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x502d72,'*Format:*\x20%0',_0x18c476)}:{'type':'format','content':o(_0x502d72,'*Remove\x20format:*\x20%0',_0x18c476)}:void 0x0;});}_0x5562b6('bold',o(_0x502d72,'FORMAT_BOLD')),_0x5562b6('italic',o(_0x502d72,'FORMAT_ITALIC')),_0x5562b6('underline',o(_0x502d72,'FORMAT_UNDERLINE')),_0x5562b6('code',o(_0x502d72,'FORMAT_CODE')),_0x5562b6('strikethrough',o(_0x502d72,'FORMAT_STRIKETHROUGH')),_0x5562b6('subscript',o(_0x502d72,'FORMAT_SUBSCRIPT')),_0x5562b6('superscript',o(_0x502d72,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3c336f{['afterInit'](){const _0x44ff5a=this['editor'],_0x5432a8=_0x44ff5a['locale'];if(!_0x44ff5a['plugins']['has']('BlockQuoteEditing'))return;const _0x4e142f=_0x44ff5a['plugins']['get']('TrackChangesEditing'),_0x218956=this['editor']['commands']['get']('blockQuote');_0x4e142f['enableCommand']('blockQuote',(_0x3dda6a,_0x5b28c2={})=>{const _0x41a854=this['editor']['model']['document']['selection'],_0x5c40e5=_0x5b28c2&&void 0x0!==_0x5b28c2['forceValue']?_0x5b28c2['forceValue']:!_0x218956['value'];let _0x568033=[];if(_0x5c40e5){const _0x40ca31=Array['from'](_0x41a854['getSelectedBlocks']())['filter'](_0x107dd2=>oo(_0x107dd2)||function(_0x280ea8,_0x2d27b5){const _0x5d9539=_0x2d27b5['checkChild'](_0x280ea8['parent'],'blockQuote'),_0x588257=_0x2d27b5['checkChild'](['$root','blockQuote'],_0x280ea8);return _0x5d9539&&_0x588257;}(_0x107dd2,this['editor']['model']['schema']));_0x568033=to(_0x40ca31,_0x44ff5a['model']);}else{const _0x398592=Array['from'](_0x41a854['getSelectedBlocks']())['filter'](_0x1738be=>oo(_0x1738be));_0x568033=to(_0x398592,_0x44ff5a['model']);}_0x44ff5a['model']['change'](()=>{for(const _0x35ecdc of _0x568033)_0x4e142f['markBlockFormat'](_0x35ecdc,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5c40e5}]});});}),_0x4e142f['descriptionFactory']['registerDescriptionCallback'](_0x2be96d=>{const {data:_0x8ee79a}=_0x2be96d;if(_0x8ee79a&&'blockQuote'==_0x8ee79a['commandName']){const _0xa4f2cc=o(_0x5432a8,'ELEMENT_BLOCK_QUOTE');return _0x8ee79a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5432a8,'*Set\x20format:*\x20%0',_0xa4f2cc)}:{'type':'format','content':o(_0x5432a8,'*Remove\x20format:*\x20%0',_0xa4f2cc)};}});}}function oo(_0x4bebf6){return'blockQuote'==_0x4bebf6['parent']['name'];}class L extends _0x3c336f{['afterInit'](){const _0xb8302a=this['editor'];_0xb8302a['plugins']['has']('CaseChange')&&(_0xb8302a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xb8302a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xb8302a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3c336f{['afterInit'](){const _0xd94d78=this['editor'];_0xd94d78['commands']['get']('ckbox')&&_0xd94d78['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x3c336f{['afterInit'](){const _0x2fb1e8=this['editor'];if(!_0x2fb1e8['plugins']['has']('CodeBlock'))return;const _0x68ef8b=_0x2fb1e8['plugins']['get']('TrackChangesEditing'),_0x54501f=_0x2fb1e8['locale'],_0x1a163b=_0x2fb1e8['config']['get']('codeBlock')['languages'],_0x1f09df=_0x2fb1e8['commands']['get']('codeBlock');_0x68ef8b['enableCommand']('indentCodeBlock'),_0x68ef8b['enableCommand']('outdentCodeBlock'),_0x68ef8b['enableCommand']('codeBlock',(_0x49f85f,_0x5682ab={})=>{const _0x185b4c=_0x2fb1e8['model'],_0x2aba06=_0x2fb1e8['model']['document']['selection'],_0x151827=_0x5682ab&&void 0x0!==_0x5682ab['forceValue']?_0x5682ab['forceValue']:!_0x1f09df['value'];let _0x533e73;_0x5682ab['language']||(_0x5682ab['language']=_0x1a163b[0x0]['language']),_0x533e73=_0x151827?Array['from'](_0x2aba06['getSelectedBlocks']())['filter'](_0x561134=>eo(_0x561134)||function(_0x366279,_0xe9ee9e){if(_0x366279['is']('rootElement')||_0xe9ee9e['isLimit'](_0x366279))return!0x1;return _0xe9ee9e['checkChild'](_0x366279['parent'],'codeBlock');}(_0x561134,_0x185b4c['schema'])):Array['from'](_0x2aba06['getSelectedBlocks']())['filter'](_0x15f81f=>eo(_0x15f81f));const _0x41ef46=to(_0x533e73,_0x185b4c);_0x185b4c['change'](()=>{for(const _0x402e1c of _0x41ef46)_0x68ef8b['markBlockFormat'](_0x402e1c,{'commandName':'codeBlock','commandParams':[{..._0x5682ab,'forceValue':_0x151827}],'formatGroupId':'blockName'});});}),(_0x68ef8b['descriptionFactory']['registerElementLabel']('codeBlock',_0x151874=>o(_0x54501f,'ELEMENT_CODE_BLOCK',_0x151874)),_0x68ef8b['descriptionFactory']['registerDescriptionCallback'](_0x3c3f36=>{if('formatBlock'!=_0x3c3f36['type'])return;const _0x529718=_0x54501f['t'],{data:_0x3e26e1}=_0x3c3f36;if(!_0x3e26e1||'codeBlock'!=_0x3e26e1['commandName'])return;const _0x636a5=_0x3e26e1['commandParams'][0x0]['language'],_0x3ff050=_0x529718(_0x1a163b['find'](_0x45492c=>_0x45492c['language']===_0x636a5)['label'])['toLowerCase']();return _0x3e26e1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54501f,'*Set\x20format:*\x20%0',o(_0x54501f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3ff050+')')}:{'type':'format','content':o(_0x54501f,'*Remove\x20format:*\x20%0',o(_0x54501f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xb83274){return'codeBlock'==_0xb83274['name'];}class q extends _0x3c336f{['afterInit'](){const _0xfae739=this['editor'];if(!_0xfae739['plugins']['has']('CommentsEditing'))return;_0xfae739['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3f6663,_0x1f8c5b,_0x328f21){const _0x3c335a=[];for(const _0x17a4a5 of _0x1f8c5b['getItems']())_0x17a4a5['hasAttribute'](_0x3f6663)&&_0x3c335a['push'](_0x328f21['createRangeOn'](_0x17a4a5));return _0x3c335a;}function _e(_0xf98185,_0x374dbf,{showActiveMarker:_0x166726=!0x0}={}){const _0x5a6b3d=_0xf98185['plugins']['get']('TrackChangesEditing');return(_0x21444b,_0x512d14,_0x2d9245)=>{if(!_0x2d9245['consumable']['test'](_0x512d14['markerRange'],_0x21444b['name']))return;const _0x5a9487=_0x512d14['markerRange']['getWalker'](),_0x52a36e=_0x512d14['markerRange']['start'],_0x147ad4=_0xf98185['model']['schema'];let _0x2523b1=null,_0xbf6598=null,_0x2d3bd2=!0x1,_0x1bf7a5=!0x1;for(const _0x70978f of _0x5a9487){const _0x5b3bc0=_0x70978f['item'];_0x2d3bd2=_0x2d3bd2||_0x147ad4['isContent'](_0x5b3bc0);const _0x3d55b3=_0x2d9245['mapper']['toViewElement'](_0x5b3bc0);if(_0x3d55b3&&_0x3d55b3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x70978f['type']&&(_0x147ad4['isBlock'](_0x5b3bc0)&&!_0x147ad4['isLimit'](_0x5b3bc0)&&(_0x5b3bc0['nextSibling']||_0x52a36e['isAtEnd']?_0x2523b1&&_0x2523b1['parent']==_0x5b3bc0||(_0x2523b1=_0x5b3bc0,_0x4cfdfb(_0x70978f['previousPosition']),_0x1bf7a5=!0x0):_0xbf6598=_0xbf6598||_0x70978f['previousPosition']));}function _0x4cfdfb(_0x1d0e70){const {authorId:_0x3d940c}=_0x5a6b3d['_splitMarkerName'](_0x512d14['markerName']),_0x53a06e=_0x2d9245['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x374dbf,'data-author-id':_0x3d940c}),_0x68ecd5=_0x2d9245['mapper']['toViewPosition'](_0x1d0e70);_0x166726&&_0x5a6b3d['activeMarkers']['includes'](_0x512d14['markerName'])&&_0x2d9245['writer']['addClass']('ck-suggestion-marker--active',_0x53a06e),_0x2d9245['writer']['insert'](_0x68ecd5,_0x53a06e),_0x2d9245['mapper']['bindElementToMarker'](_0x53a06e,_0x512d14['markerName']);}_0x2d3bd2||_0x1bf7a5||!_0xbf6598||_0x4cfdfb(_0xbf6598);};}class z extends _0x3c336f{static get['requires'](){return[_0x51577d];}['init'](){const _0x7ea7dd=this['editor'],_0x394dcd=_0x7ea7dd['plugins']['get']('TrackChangesEditing');_0x394dcd['enableCommand']('delete');const _0x175a5c=_0x7ea7dd['commands']['get']('deleteForward');_0x394dcd['enableCommand']('deleteForward',(_0x20c9c1,_0x22dbaf={})=>{const _0x3ec73f=_0x7ea7dd['model']['createSelection'](_0x7ea7dd['model']['document']['selection']);_0x3ec73f['isCollapsed']&&_0x7ea7dd['model']['modifySelection'](_0x3ec73f,{'direction':'forward','unit':_0x22dbaf['unit']});const _0x27a104=_0x3ec73f['getFirstRange'](),_0x53651a=_0x4537cd['fromRange'](_0x27a104);let _0x23c206;_0x20c9c1(_0x22dbaf),_0x23c206='$graveyard'==_0x53651a['root']['rootName']?_0x7ea7dd['model']['createRange'](_0x27a104['start']):_0x7ea7dd['model']['createRange'](_0x53651a['start'],_0x53651a['end']),_0x53651a['detach'](),_0x7ea7dd['model']['enqueueChange'](_0x175a5c['buffer']['batch'],_0x51bc2c=>{_0x175a5c['buffer']['lock'](),_0x51bc2c['setSelection'](_0x51bc2c['createRange'](_0x23c206['end'])),_0x175a5c['buffer']['unlock']();});}),_0x7ea7dd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x7ea7dd,'merge'),{'priority':'high'}),_0x7ea7dd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x20943e,_0x5d6fc0,_0x504e3b)=>{_0x504e3b['options']['showSuggestionHighlights']&&_e(_0x7ea7dd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x20943e,_0x5d6fc0,_0x504e3b);},{'priority':'high'}),_0x7ea7dd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2b3e46,_0x12d008,_0x5ebfb4)=>{const _0x4bcbf3=_0x5ebfb4['mapper']['markerNameToElements'](_0x12d008['markerName']);if(_0x4bcbf3){for(const _0x4e8fd4 of _0x4bcbf3)_0x4e8fd4['is']('uiElement')&&(_0x5ebfb4['mapper']['unbindElementFromMarkerName'](_0x4e8fd4,_0x12d008['markerName']),_0x5ebfb4['writer']['remove'](_0x4e8fd4));}},{'priority':'high'});}}class K extends _0x3c336f{['afterInit'](){const _0x25b138=this['editor'];if(!_0x25b138['plugins']['has']('ListEditing'))return;const _0x5824df=_0x25b138['locale'],_0x53708f=_0x25b138['plugins']['get']('TrackChangesEditing'),_0x349729=_0x25b138['plugins']['has']('TodoListEditing'),_0x39c635=!!_0x25b138['config']['get']('list.multiBlock');function _0x349596(_0x34a7d2){return{'type':'format','content':''+o(_0x5824df,'*Set\x20format:*\x20%0',_0x34a7d2)};}function _0x56195a(_0x288009){return{'type':'format','content':''+o(_0x5824df,'*Remove\x20format:*\x20%0',_0x288009)};}_0x53708f['enableDefaultAttributesIntegration']('numberedList'),_0x53708f['enableDefaultAttributesIntegration']('bulletedList'),_0x53708f['enableDefaultAttributesIntegration']('customNumberedList'),_0x53708f['enableDefaultAttributesIntegration']('customBulletedList'),_0x53708f['enableDefaultAttributesIntegration']('indentList'),_0x53708f['enableDefaultAttributesIntegration']('outdentList'),_0x53708f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x53708f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x53708f['registerBlockAttribute']('listItemId'),_0x53708f['registerBlockAttribute']('listType'),_0x53708f['registerBlockAttribute']('listIndent'),_0x39c635&&(_0x53708f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x53708f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x349729&&(_0x53708f['enableDefaultAttributesIntegration']('todoList'),_0x53708f['enableDefaultAttributesIntegration']('checkTodoList'),_0x53708f['registerBlockAttribute']('todoListChecked'),_0x53708f['descriptionFactory']['registerDescriptionCallback'](_0x595648=>{const {data:_0x17baf5}=_0x595648;if(_0x17baf5&&'todoListChecked'==_0x17baf5['key'])return{'type':'format','content':_0x17baf5['newValue']?o(_0x5824df,'*Check\x20item*'):o(_0x5824df,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x46b1c5=>{if(_0x46b1c5['batch']['isUndo'])return!0x1;let _0x247e59=!0x1;const _0x4c68a5=_0x53708f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b3936=>'todoListChecked'===_0x53708f['_getAttributeKey'](_0x1b3936));for(const _0x3370de of _0x4c68a5){'todo'!=_0x3370de['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x53708f['_findSuggestions'](_0x3370de['getFirstRange'](),'attribute')['find'](_0x577224=>'listType'===_0x53708f['_getAttributeKey'](_0x577224['suggestion']))||(_0x46b1c5['removeMarker'](_0x3370de['getFirstMarker']()),_0x247e59=!0x0));}return _0x247e59;})),_0x53708f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5824df,'FORMAT_INDENT'));const _0x3f3766={'type':'format','content':''};_0x53708f['descriptionFactory']['registerDescriptionCallback'](_0x51068e=>{const {data:_0x362c24}=_0x51068e;if(!_0x362c24||'listType'!=_0x362c24['key'])return;let _0x28fcfa=_0x51068e['head'];for(;_0x28fcfa;){if(_0x28fcfa['data']&&(('listStyle'==_0x28fcfa['data']['key']||'listMarkerStyle'==_0x28fcfa['data']['key'])&&(_0x28fcfa['data']['newValue']&&'default'!=_0x28fcfa['data']['newValue']||'default'!=_0x28fcfa['data']['oldValue']&&!_0x362c24['newValue'])||!_0x39c635&&_0x28fcfa['data']['key']==m))return _0x3f3766;_0x28fcfa=_0x28fcfa['next'];}if(null==_0x362c24['newValue'])switch(_0x362c24['oldValue']){case'bulleted':return _0x56195a(o(_0x5824df,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x56195a(o(_0x5824df,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x56195a(o(_0x5824df,'ELEMENT_TODO_LIST'));}switch(_0x362c24['newValue']){case'bulleted':return _0x349596(o(_0x5824df,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x349596(o(_0x5824df,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x349596(o(_0x5824df,'ELEMENT_TODO_LIST'));}}),_0x53708f['descriptionFactory']['registerDescriptionCallback'](_0xb4fcd3=>{const {data:_0x427752}=_0xb4fcd3;if(_0x427752&&'listIndent'==_0x427752['key'])return null==_0x427752['newValue']||null==_0x427752['oldValue']&&0x0==_0x427752['newValue']?_0x3f3766:void 0x0;}),_0x53708f['descriptionFactory']['registerDescriptionCallback'](_0x2d89e4=>{if('attribute'!=_0x2d89e4['type'])return;const {data:_0x4505a0}=_0x2d89e4;if(!_0x4505a0||'listItemId'!=_0x4505a0['key'])return;const _0x54b4cb=Ee(_0x2d89e4);return'newValue'==_0x54b4cb?{'type':'format','content':o(_0x5824df,'*Merge:*\x20list\x20item')}:'oldValue'==_0x54b4cb?{'type':'format','content':o(_0x5824df,'*Split:*\x20list\x20item')}:_0x3f3766;}),_0x25b138['model']['document']['registerPostFixer'](_0x41accc=>this['listItemIdFixer'](_0x41accc)),_0x25b138['model']['document']['registerPostFixer'](_0x25aa9e=>this['noTrackChangesFixer'](_0x25aa9e)),_0x25b138['model']['document']['on']('change:data',(_0x5b3c4e,_0x4633f7)=>{if(_0x4633f7['isUndo']||!_0x4633f7['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3d4357){if(_0x3d4357['batch']['isUndo']||!_0x3d4357['batch']['isLocal'])return!0x1;let _0x49b752=!0x1;const _0x54ff7e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e78b1=>_0x2e78b1['data']&&'listItemId'==_0x2e78b1['data']['key'])['filter'](_0x2a36a3=>_0x2a36a3['data']['newValue']&&_0x2a36a3['data']['oldValue']);for(const _0x163f60 of _0x54ff7e)Ee(_0x163f60)||(_0x3d4357['removeMarker'](_0x163f60['getFirstMarker']()),_0x49b752=!0x0);return _0x49b752;}['noTrackChangesFixer'](_0x42b237){if(_0x42b237['batch']['isUndo']||!_0x42b237['batch']['isLocal'])return!0x1;const _0x77f76e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x77f76e['trackChangesCommand']['value'])return!0x1;let _0x4fcaba=!0x1;const _0x5ce6d5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4c54c4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xa7e500=>'attribute'==_0xa7e500['type'])['filter'](_0x2494c6=>_0x5ce6d5['includes'](_0x2494c6['attributeKey']));if(0x0==_0x4c54c4['length'])return _0x4fcaba;for(const _0x5649d3 of _0x4c54c4){const _0x42345e=_0x77f76e['_findSuggestions'](_0x5649d3['range'],'attribute')['filter'](_0xa03630=>!_0xa03630['meta']['isNextTo'])['map'](_0x124b2e=>_0x124b2e['suggestion'])['filter'](_0x30f102=>{const _0x45f4c4=_0x77f76e['_getAttributeKey'](_0x30f102);return _0x5ce6d5['includes'](_0x45f4c4);});if(_0x42345e['length']){for(const _0x4c4999 of _0x42345e)_0x42b237['removeMarker'](_0x4c4999['getFirstMarker']());_0x4fcaba=!0x0;}}return _0x4fcaba;}['assureChains'](){const _0x46ce87=this['editor']['plugins']['get']('TrackChangesEditing'),_0xccc6e2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2f6ff5;const _0x1b7eea=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x53c392=>{if(_0x53c392['data']['oldRange']||!_0x53c392['data']['newRange'])return null;if(!_0x53c392['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1cc3f1}=_0x46ce87['_splitMarkerName'](_0x53c392['name']);if(!_0x46ce87['hasSuggestion'](_0x1cc3f1))return null;const _0x3d24d5=_0x46ce87['getSuggestion'](_0x1cc3f1);return _0xccc6e2['includes'](_0x3d24d5['data']['key']);})['map'](_0x182f4e=>{const {id:_0x38aeb7}=_0x46ce87['_splitMarkerName'](_0x182f4e['name']),_0x5a0894=_0x46ce87['getSuggestion'](_0x38aeb7);return _0x2f6ff5=_0x5a0894['attributes']['groupId'],_0x5a0894['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1b7eea['size'])return;const _0x42d2cc=_0x46ce87['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10b542=>'attribute'==_0x10b542['type']&&_0x10b542['data']&&_0xccc6e2['includes'](_0x10b542['data']['key'])&&_0x10b542['attributes']['groupId']!=_0x2f6ff5)['map'](_0x2893d1=>({'listItem':_0x2893d1['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2893d1['attributes']['groupId']})),_0x44383d=new Set();for(const {groupId:_0x381b62,listItem:_0x46b3dc}of _0x42d2cc)_0x1b7eea['has'](_0x46b3dc)&&_0x44383d['add'](_0x381b62);for(const _0x492079 of _0x46ce87['getSuggestions']())_0x44383d['has'](_0x492079['attributes']['groupId'])&&_0x492079['setAttribute']('groupId',_0x2f6ff5);}['_supportLegacySuggestions'](){const _0x3c5998=this['editor'],_0x288d28=_0x3c5998['locale'],_0x28cec3=_0x3c5998['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x28cec3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x520dbb,_0x591f5c){const _0x1d49da=[];for(let _0x339359 of _0x520dbb)_0x339359['start']['nodeAfter']===_0x339359['end']['parent']&&(_0x339359=_0x3c5998['model']['createRange'](_0x3c5998['model']['createPositionAt'](_0x339359['start']['nodeAfter'],0x0))),_0x1d49da['push'](_0x339359);_0x3c5998['model']['change'](_0x28e517=>{const _0x3cc0eb=_0x3c5998['model']['document']['selection'],_0x5ac755=Array['from'](_0x3cc0eb['getRanges']())['map'](_0x4a3d73=>_0x4537cd['fromRange'](_0x4a3d73));_0x28e517['setSelection'](_0x1d49da),_0x3c5998['commands']['get'](_0x591f5c['commandName'])['refresh'](),_0x591f5c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3c5998['execute'](_0x591f5c['commandName'],..._0x591f5c['commandParams']),_0x28e517['setSelection'](_0x5ac755);for(const _0x4733b4 of _0x5ac755)_0x4733b4['detach']();});}),_0x28cec3['descriptionFactory']['registerElementLabel'](function(_0xa92752){const _0x3d4adc=!_0x3c5998['model']['schema']['isObject'](_0xa92752),_0xa73643=_0xa92752['previousSibling'],_0x533232=_0xa92752['nextSibling'],_0x269f96=_0xa92752['getAttribute']('listItemId'),_0x2e5b9a=!_0xa73643||_0xa73643['getAttribute']('listItemId')!==_0x269f96,_0xe71e9d=!_0x533232||_0x533232['getAttribute']('listItemId')!==_0x269f96;return _0x3d4adc&&Boolean(_0x269f96)&&_0x2e5b9a&&_0xe71e9d;},_0x1ec997=>o(_0x288d28,'ELEMENT_LIST_ITEM',_0x1ec997));}['_registerLegacyDescription'](){const _0x2a7f43=this['editor'],_0x3f7941=_0x2a7f43['locale'];function _0x29e9df(_0x343ce9){const _0x1e51b2=_0x2a7f43['commands']['get']('bulletedList')['value'],_0x293f3e=_0x2a7f43['commands']['get']('numberedList')['value'];return'numberedList'===_0x343ce9?_0x1e51b2:_0x293f3e;}_0x2a7f43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4ae994){if('formatBlock'!=_0x4ae994['type'])return;const {data:_0x431fdb}=_0x4ae994;if(!_0x431fdb)return;let _0x3ce10b,_0xb23ddc,_0x279e48,_0x52ffa4;switch(_0x431fdb['commandName']){case'bulletedList':_0x279e48=_0x431fdb['commandParams'][0x0]['forceValue'],_0x52ffa4=_0x29e9df(_0x431fdb['commandName']),_0x3ce10b=_0x279e48?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x52ffa4&&_0x2a7f43['config']['get']('list.multiBlock')||(_0x3ce10b='*Change\x20to:*\x20%0'),_0xb23ddc={'type':'format','content':o(_0x3f7941,_0x3ce10b,o(_0x3f7941,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x279e48=_0x431fdb['commandParams'][0x0]['forceValue'],_0x52ffa4=_0x29e9df(_0x431fdb['commandName']),_0x3ce10b=_0x279e48?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x52ffa4&&_0x2a7f43['config']['get']('list.multiBlock')||(_0x3ce10b='*Change\x20to:*\x20%0'),_0xb23ddc={'type':'format','content':o(_0x3f7941,_0x3ce10b,o(_0x3f7941,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3ce10b='*Indent:*\x20%0',_0xb23ddc={'type':'format','content':o(_0x3f7941,_0x3ce10b,o(_0x3f7941,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3ce10b=function(_0x49f023){const _0x333cab=_0x49f023['getFirstRange']();let _0x161a44=_0x333cab['start']['nodeAfter'];for(;_0x161a44&&_0x333cab['containsItem'](_0x161a44);){if(_0x161a44['getAttribute']('listIndent')>0x0)return!0x1;_0x161a44=_0x161a44['nextSibling'];}return!0x0;}(_0x4ae994)?o(_0x3f7941,'*Format:*\x20remove\x20from\x20%0',o(_0x3f7941,function(_0x490be8){return'ELEMENT_'+_0x490be8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4ae994))):o(_0x3f7941,'*Outdent:*\x20%0',o(_0x3f7941,'ELEMENT_LIST_ITEM')),_0xb23ddc={'type':'format','content':_0x3ce10b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x431fdb['multipleBlocks']&&(_0x3ce10b='*Merge:*\x20%0',_0xb23ddc={'type':'deletion','content':o(_0x3f7941,_0x3ce10b,o(_0x3f7941,'ELEMENT_LIST_ITEM'))});}return _0xb23ddc;});}}function Ee(_0x167482){let _0x1d4309=_0x167482['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1d4309;){const _0x2a6e68=_0x1d4309['getAttribute']('listItemId');if(!_0x2a6e68)return!0x1;if(_0x2a6e68==_0x167482['data']['newValue'])return'newValue';if(_0x2a6e68==_0x167482['data']['oldValue'])return'oldValue';_0x1d4309=_0x1d4309['previousSibling'];}return!0x1;}class pe extends _0x3c336f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x49bc12=this['editor']['config']['get']('list.properties'),_0x52023f=this['editor']['plugins']['get']('TrackChangesEditing');_0x49bc12['styles']&&(_0x52023f['enableDefaultAttributesIntegration']('listStyle'),_0x52023f['registerBlockAttribute']('listStyle')),_0x49bc12['reversed']&&(_0x52023f['enableDefaultAttributesIntegration']('listReversed'),_0x52023f['registerBlockAttribute']('listReversed')),_0x49bc12['startIndex']&&(_0x52023f['enableDefaultAttributesIntegration']('listStart'),_0x52023f['registerBlockAttribute']('listStart'));const _0x44a89a={'type':'format','content':''};_0x52023f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2a53fb=this['editor']['locale'];_0x52023f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2a53fb,'FORMAT_LIST_REVERSED')),_0x52023f['descriptionFactory']['registerDescriptionCallback'](_0x47d94b=>{const {data:_0x53af08}=_0x47d94b;if(_0x53af08&&'listReversed'==_0x53af08['key'])return null==_0x53af08['newValue']||0x0==_0x53af08['newValue']&&null==_0x53af08['oldValue']?_0x44a89a:void 0x0;}),_0x52023f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2a53fb,'FORMAT_LIST_START')),_0x52023f['descriptionFactory']['registerDescriptionCallback'](_0x4f168b=>{const {data:_0xdf6659}=_0x4f168b;if(_0xdf6659&&'listStart'==_0xdf6659['key'])return null==_0xdf6659['newValue']||0x1==_0xdf6659['newValue']&&null==_0xdf6659['oldValue']?_0x44a89a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1d2bad=>{if(_0x1d2bad['batch']['isUndo'])return!0x1;let _0x5ab5fd=!0x1;const _0x218e28=_0x52023f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x323a72=>{const _0x178c1f=_0x52023f['_getAttributeKey'](_0x323a72);return'listStart'==_0x178c1f||'listReversed'==_0x178c1f;});for(const _0xfca997 of _0x218e28){const _0x4d3191=_0xfca997['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4d3191||'customNumbered'==_0x4d3191)continue;_0x52023f['_findSuggestions'](_0xfca997['getFirstRange'](),'attribute')['find'](_0x24afd4=>'listType'==_0x52023f['_getAttributeKey'](_0x24afd4['suggestion']))||(_0x1d2bad['removeMarker'](_0xfca997['getFirstMarker']()),_0x5ab5fd=!0x0);}return _0x5ab5fd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x173f82){const _0x1dfd18=this['editor']['locale'],{data:_0x5ce79a}=_0x173f82,_0x5d6126={'type':'format','content':''};if(!_0x5ce79a||'listStyle'!=_0x5ce79a['key'])return;if(!_0x5ce79a['oldValue'])return'default'==_0x5ce79a['newValue']?_0x5d6126:{'type':'format','content':''+o(_0x1dfd18,'*Set\x20format:*\x20%0',o(_0x1dfd18,this['_getTranslationKeyForListStyle'](_0x5ce79a['newValue'])))};if(!_0x5ce79a['newValue']){if('default'==_0x5ce79a['oldValue'])return _0x5d6126;let _0x459df3=_0x173f82['head'];for(;_0x459df3;){if(_0x459df3['data']&&'listType'==_0x459df3['data']['key']&&_0x459df3['data']['newValue'])return _0x5d6126;_0x459df3=_0x459df3['next'];}return{'type':'format','content':''+o(_0x1dfd18,'*Remove\x20format:*\x20%0',o(_0x1dfd18,this['_getTranslationKeyForListStyle'](_0x5ce79a['oldValue'])))};}if('default'!=_0x5ce79a['newValue'])return{'type':'format','content':''+o(_0x1dfd18,'*Set\x20format:*\x20%0',o(_0x1dfd18,this['_getTranslationKeyForListStyle'](_0x5ce79a['newValue'])))};let _0x472bca=_0x173f82['head'];for(;_0x472bca;){if(_0x472bca['data']&&'listType'==_0x472bca['data']['key']&&_0x472bca['data']['newValue']&&_0x472bca['data']['oldValue'])return _0x5d6126;_0x472bca=_0x472bca['next'];}return{'type':'format','content':o(_0x1dfd18,'*Set\x20format:*\x20%0',o(_0x1dfd18,'ELEMENT_'+_0x173f82['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5bccb4=this['editor'],_0x4009c5=_0x5bccb4['locale'];_0x5bccb4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1117e8=>{if('formatBlock'!=_0x1117e8['type'])return;const {data:_0x19e9cd}=_0x1117e8;if(!_0x19e9cd)return;let _0x20441c,_0x109576;switch(_0x19e9cd['commandName']){case'listStyle':_0x20441c='*Change\x20to:*\x20%0',_0x109576={'type':'format','content':o(_0x4009c5,_0x20441c,o(_0x4009c5,this['_getTranslationKeyForListStyle'](_0x19e9cd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x20441c=_0x19e9cd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x109576={'type':'format','content':o(_0x4009c5,_0x20441c)};break;case'listStart':_0x20441c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x109576={'type':'format','content':o(_0x4009c5,_0x20441c,_0x19e9cd['commandParams'][0x0]['startIndex'])};}return _0x109576;});}['_getTranslationKeyForListStyle'](_0x154eb2){return'ELEMENT_'+function(_0x4213cc){if(ye['includes'](_0x4213cc))return'bulleted';if(Se['includes'](_0x4213cc))return'numbered';return null;}(_0x154eb2)['toUpperCase']()+'_LIST_'+_0x154eb2['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3c336f{static get['requires'](){return[_0x10188d];}['init'](){const _0x5d09d7=this['editor'],_0xdcd179=_0x5d09d7['plugins']['get']('TrackChangesEditing'),_0x48b3de=_0x5d09d7['commands']['get']('enter');_0xdcd179['enableCommand']('enter',()=>{_0x5d09d7['model']['change'](_0x57296c=>{const _0x150fb1=_0x5d09d7['model']['document']['selection'],_0x1453f1=_0x150fb1['getFirstPosition'](),_0x24c4a1=_0x4537cd['fromRange'](_0x150fb1['getFirstRange']());if(_0x48b3de['enterBlock'](_0x57296c)){const _0x1119a2=_0x5d09d7['model']['createPositionAt'](_0x1453f1['parent']['nextSibling'],0x0),_0x1ea02a=_0x57296c['createRange'](_0x1453f1,_0x1119a2);_0xdcd179['markInsertion'](_0x1ea02a);}else _0x57296c['setSelection'](_0x57296c['createRange'](_0x24c4a1['end']));_0x24c4a1['detach'](),_0x48b3de['fire']('afterExecute',{'writer':_0x57296c});});}),_0x5d09d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5d09d7,'split'),{'priority':'high'}),_0x5d09d7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5c9fad,_0xbf35d0,_0x40e931)=>{const _0x441912=_0x40e931['mapper']['markerNameToElements'](_0xbf35d0['markerName']);if(_0x441912){for(const _0x492736 of _0x441912)_0x492736['hasClass']('ck-suggestion-marker-split')&&(_0x40e931['mapper']['unbindElementFromMarkerName'](_0x492736,_0xbf35d0['markerName']),_0x40e931['writer']['remove'](_0x492736));}},{'priority':'high'}),_0x5d09d7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x595739,_0x5bf5b5,_0x266e9a)=>{_0x266e9a['options']['showSuggestionHighlights']&&_e(_0x5d09d7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x595739,_0x5bf5b5,_0x266e9a);},{'priority':'high'});}}class X extends _0x3c336f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3af414=this['editor']['plugins']['get']('TrackChangesEditing');_0x3af414['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3af414['enableCommand']('findNext'),_0x3af414['enableCommand']('findPrevious'),_0x3af414['enableCommand']('replace'),_0x3af414['enableCommand']('replaceAll');}['handleFindCommand'](_0x115468,_0x1e6181,_0x3b87a3={}){const _0x14a64f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x115468(_0x95dc4a=>{let _0x1fc176=('string'==typeof _0x1e6181?_0x14a64f['findByTextCallback'](_0x1e6181,_0x3b87a3):_0x1e6181)(_0x95dc4a);Array['isArray'](_0x1fc176)&&(_0x1fc176={'results':_0x1fc176,'searchText':'string'==typeof _0x1e6181?_0x1e6181:''});const _0x25725e=_0x1fc176['results']['filter'](_0x42e03b=>!0x1===this['_isInDeletionRange'](_0x42e03b,_0x95dc4a['item']));return{..._0x1fc176,'results':_0x25725e};},_0x3b87a3);}['_isInDeletionRange'](_0x3c15e8,_0x11c8a9){const _0x451f67=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11c8a9,_0x3c15e8['start']),this['editor']['model']['createPositionAt'](_0x11c8a9,_0x3c15e8['end']));for(const _0x158e60 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x451f67['getIntersection'](_0x158e60['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x3c336f{['afterInit'](){const _0x119ec3=this['editor']['locale'],_0x4e35be=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xdee579,commandName:_0x108785}of ro)this['editor']['plugins']['has'](_0xdee579)&&(_0x4e35be['enableDefaultAttributesIntegration'](_0x108785),_0x4e35be['registerInlineAttribute'](_0x108785));_0x4e35be['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x119ec3,'FORMAT_FONT_SIZE')),_0x4e35be['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x119ec3,'FORMAT_FONT_FAMILY')),_0x4e35be['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x119ec3,'FORMAT_FONT_COLOR')),_0x4e35be['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x119ec3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14628c=this['editor'],_0x2f9283=_0x14628c['locale'];_0x14628c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26fe8e=>{const _0x1e007a=_0x2f9283['t'];if('formatInline'!=_0x26fe8e['type'])return;const {data:_0x294274}=_0x26fe8e;if(null!=_0x294274){if('fontSize'==_0x294274['commandName']){const _0x46212d=_0x294274['commandParams'][0x0]['value'];if(_0x46212d){const _0x1411c8=_0x1e007a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x42f4bc=>_0x42f4bc['model']==_0x46212d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2f9283,'*Set\x20font\x20size:*\x20%0',_0x1411c8)};}return{'type':'format','content':o(_0x2f9283,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x294274['commandName']){const _0x34fb75=_0x294274['commandParams'][0x0]['value'];return _0x34fb75?{'type':'format','content':o(_0x2f9283,'*Set\x20font\x20family:*\x20%0',_0x34fb75)}:{'type':'format','content':o(_0x2f9283,'*Reset\x20font\x20family*')};}if('fontColor'==_0x294274['commandName']){const _0x2ea0c0=_0x294274['commandParams'][0x0]['value'];if(_0x2ea0c0){const _0x14c877=_0x56eaf1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x494a81=>_0x494a81['model']==_0x2ea0c0);let _0x93ec52=_0x2ea0c0,_0x39371d='';return _0x14c877&&(_0x93ec52=_0x14c877['label'],_0x39371d=_0x1e007a(_0x93ec52)['toLowerCase']()),{'type':'format','content':o(_0x2f9283,'*Set\x20font\x20color:*\x20%0',_0x39371d)['trim'](),'color':{'value':_0x2ea0c0,'title':_0x39371d||_0x93ec52}};}return{'type':'format','content':o(_0x2f9283,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x294274['commandName']){const _0x4b6883=_0x294274['commandParams'][0x0]['value'];if(_0x4b6883){const _0x44c51a=_0x56eaf1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2f38d1=>_0x2f38d1['model']==_0x4b6883);let _0x111700=_0x4b6883,_0x380c6e='';return _0x44c51a&&(_0x111700=_0x44c51a['label'],_0x380c6e=_0x1e007a(_0x111700)['toLowerCase']()),{'type':'format','content':o(_0x2f9283,'*Set\x20font\x20background\x20color:*\x20%0',_0x380c6e)['trim'](),'color':{'value':_0x4b6883,'title':_0x380c6e||_0x111700}};}return{'type':'format','content':o(_0x2f9283,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x3c336f{['afterInit'](){const _0x177bd9=this['editor'],_0x414da9=_0x177bd9['plugins']['get']('TrackChangesEditing'),_0x28546d=_0x177bd9['commands']['get']('copyFormat'),_0x13c6ef=_0x177bd9['commands']['get']('pasteFormat');_0x28546d&&_0x13c6ef&&(_0x414da9['enableDefaultAttributesIntegration']('pasteFormat'),_0x414da9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3c9d44=this['editor'],_0x239c11=_0x3c9d44['locale'];_0x3c9d44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b691c=>{if('formatBlock'!=_0x3b691c['type']&&'formatInline'!=_0x3b691c['type'])return;const {data:_0x4c8ada}=_0x3b691c;if(_0x4c8ada&&'pasteFormat'===_0x4c8ada['commandName']){const _0x41856c=[],_0x1492cf=_0x4c8ada['commandParams'][0x0];for(const [_0x1e5932,_0x26471c]of Object['entries'](_0x1492cf))_0x41856c['push'](so(_0x3c9d44,_0x1e5932,_0x26471c));return _0x41856c['length']?{'type':'format','content':o(_0x239c11,'*Set\x20format\x20to:*\x20%0',_0x41856c['join'](',\x20'))}:{'type':'format','content':o(_0x239c11,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4700f7,_0x305713,_0x40ec4f){const _0x5226fd=_0x4700f7['locale']['t'],_0x116757=_0x305713['split'](/(?=[A-Z])/)['join']('\x20'),_0x5d310b=_0x5226fd(_0x116757['charAt'](0x0)['toUpperCase']()+_0x116757['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x40ec4f)return _0x5d310b;if('fontColor'===_0x305713||'fontBackgroundColor'===_0x305713){const _0x518105=_0x56eaf1(_0x4700f7['config']['get']('fontColor.colors'))['find'](_0x1c05bd=>_0x1c05bd['model']==_0x40ec4f);return _0x5d310b+'\x20('+(_0x518105?_0x5226fd(_0x518105['label'])['toLowerCase']():_0x40ec4f)+')';}if('fontSize'===_0x305713&&isNaN(parseFloat(_0x40ec4f))){const _0x291808=_0x4700f7['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4700f7['config']['get']('fontSize.options'))['find'](_0x3fc559=>_0x3fc559['model']==_0x40ec4f);return _0x5d310b+'\x20('+(_0x291808?_0x5226fd(_0x291808['title'])['toLowerCase']():_0x40ec4f)+')';}return _0x5d310b+'\x20('+_0x40ec4f+')';}class tt extends _0x3c336f{['_headingOptions'];['afterInit'](){const _0x412208=this['editor'];if(!_0x412208['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x412208['config']['get']('heading.options');const _0xe9c1c2=_0x412208['locale'],_0x1dd4d8=_0x412208['plugins']['get']('TrackChangesEditing');_0x1dd4d8['enableDefaultAttributesIntegration']('heading');for(const _0x9a396c of this['_headingOptions'])'paragraph'!=_0x9a396c['model']&&_0x1dd4d8['descriptionFactory']['registerElementLabel'](_0x9a396c['model'],_0x167900=>{const _0x4aa142=this['_getHeadingLevel'](_0x9a396c['model']);return null!==_0x4aa142?_0x15a7f3(_0x167900,_0x4aa142):_0x227ba3(_0x167900,_0x9a396c['title']);});function _0x15a7f3(_0x352734,_0x5dda7e){return o(_0xe9c1c2,'ELEMENT_HEADING',[_0x352734,_0x5dda7e]);}function _0x227ba3(_0x24d8ee,_0x527b9f){return o(_0xe9c1c2,'ELEMENT_HEADING_CUSTOM',[_0x24d8ee,_0x527b9f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa7917a=this['editor'],_0x424519=_0xa7917a['locale'];function _0x278221(_0x2da5cd,_0x3aaee5){return o(_0x424519,'ELEMENT_HEADING_CUSTOM',[_0x2da5cd,_0x3aaee5]);}_0xa7917a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf3db5=>{if('formatBlock'!=_0xf3db5['type'])return;const {data:_0x6d0232}=_0xf3db5;if(_0x6d0232&&'heading'==_0x6d0232['commandName']){const _0x4bd777=_0x6d0232['commandParams'][0x0]['value'],_0x2ebf6d=this['_getHeadingLevel'](_0x4bd777);if(null!==_0x2ebf6d)return{'type':'format','content':o(_0x424519,'*Change\x20to:*\x20%0',(_0x8101ac=0x1,_0x1bca99=_0x2ebf6d,o(_0x424519,'ELEMENT_HEADING',[_0x8101ac,_0x1bca99])))};const _0x170f32=this['_headingOptions']['find'](_0x24e7c7=>_0x24e7c7['model']===_0x4bd777)['title'];return{'type':'format','content':o(_0x424519,'*Change\x20to:*\x20%0',_0x278221(0x1,_0x170f32))};}var _0x8101ac,_0x1bca99;});}['_getHeadingLevel'](_0x548880){const _0xa97002=_0x548880['match'](/^heading(\d+)/);if(_0xa97002)return _0xa97002[0x1];const _0x279aab=this['_headingOptions']?.['find'](_0x3ee1c6=>_0x3ee1c6['model']==_0x548880);if(_0x279aab&&_0x279aab['view']){const _0x34233d=_0x279aab['view'],_0x1b252c=(_0x34233d['name']??_0x34233d)['match'](/^h(\d+)/);if(_0x1b252c)return _0x1b252c[0x1];}return null;}}class et extends _0x3c336f{['afterInit'](){const _0x262bf4=this['editor'];if(!_0x262bf4['plugins']['has']('HighlightEditing'))return;const _0x239594=_0x262bf4['plugins']['get']('TrackChangesEditing'),_0x318630=_0x262bf4['locale'];_0x239594['enableDefaultAttributesIntegration']('highlight'),_0x239594['registerInlineAttribute']('highlight'),_0x239594['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x318630,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f2ae4=this['editor'],_0x2692d7=_0x3f2ae4['locale'];_0x3f2ae4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55f360=>{if('formatInline'!=_0x55f360['type'])return;const {data:_0x43cb7f}=_0x55f360;if(_0x43cb7f&&'highlight'==_0x43cb7f['commandName']){const _0x278b7f=_0x2692d7['t'],_0x5de746=_0x43cb7f['commandParams'][0x0]['value'];if(_0x5de746){const _0xa3e836=_0x3f2ae4['config']['get']('highlight.options')['find'](_0x2f3124=>_0x2f3124['model']==_0x5de746),_0x2796f9=_0x278b7f(_0xa3e836['title'])['toLowerCase']();return{'type':'format','content':o(_0x2692d7,'*Set\x20highlight:*\x20%0',_0x2796f9),'color':{'value':_0xa3e836['color'],'title':_0xa3e836['title']}};}return{'type':'format','content':o(_0x2692d7,'*Remove\x20highlight*',o(_0x2692d7,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3c336f{['afterInit'](){const _0x263e98=this['editor'];if(!_0x263e98['plugins']['has']('HorizontalLineEditing'))return;_0x263e98['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xf2ea88=_0x263e98['plugins']['get']('TrackChangesEditing'),_0x7b35a9=_0x263e98['locale'];_0xf2ea88['descriptionFactory']['registerElementLabel']('horizontalLine',_0x14221c=>o(_0x7b35a9,'ELEMENT_HORIZONTAL_LINE',_0x14221c)),_0x263e98['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3ee8f0,{writer:_0x500921,options:_0xd20eea})=>{if(!_0xd20eea['showSuggestionHighlights'])return null;const _0x19947d=_0x500921['createContainerElement']('div'),_0x495487=_0x500921['createEmptyElement']('hr');return _0x500921['addClass']('ck-horizontal-line',_0x19947d),_0x500921['insert'](_0x500921['createPositionAt'](_0x19947d,0x0),_0x495487),_0x19947d;},'converterPriority':'high'});}}class st extends _0x3c336f{['afterInit'](){const _0x5421c5=this['editor'];if(!_0x5421c5['plugins']['has']('HtmlEmbed'))return;const _0x388a6c=_0x5421c5['plugins']['get']('TrackChangesEditing'),_0xc583b2=_0x5421c5['locale'];_0x388a6c['descriptionFactory']['registerElementLabel']('rawHtml',_0x4bd937=>o(_0xc583b2,'ELEMENT_HTML_EMBED',_0x4bd937)),_0x388a6c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x388a6c['registerBlockAttribute']('value'),_0x388a6c['descriptionFactory']['registerDescriptionCallback'](_0x25e31d=>{if('attribute'!=_0x25e31d['type'])return;const {data:_0x660bf8}=_0x25e31d;if(_0x660bf8&&'value'==_0x660bf8['key']&&_0x25e31d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3caf0e=o(_0xc583b2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xc583b2,'*Change\x20%0\x20content*',_0x3caf0e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18c44d=this['editor'],_0x5576ab=_0x18c44d['locale'];_0x18c44d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46d163=>{if('formatBlock'!=_0x46d163['type'])return;const {data:_0x425048}=_0x46d163;if(_0x425048&&'htmlEmbed'==_0x425048['commandName']){const _0x46e96f=o(_0x5576ab,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5576ab,'*Change\x20%0\x20content*',_0x46e96f)};}});}}class nt extends _0x3c336f{['afterInit'](){const _0x3bff83=this['editor'];if(!_0x3bff83['plugins']['has']('ImageEditing'))return;const _0x45d42d=_0x3bff83['plugins']['get']('TrackChangesEditing'),_0x591116=_0x3bff83['plugins']['get']('ImageUtils'),_0x1ee79e=_0x3bff83['locale'];_0x45d42d['enableCommand']('insertImage'),_0x45d42d['descriptionFactory']['registerElementLabel']('imageBlock',_0x1a59c3=>o(_0x1ee79e,'ELEMENT_IMAGE',_0x1a59c3)),_0x45d42d['descriptionFactory']['registerElementLabel']('imageInline',_0xe3d577=>o(_0x1ee79e,'ELEMENT_INLINE_IMAGE',_0xe3d577)),_0x45d42d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1ee79e,'ELEMENT_CAPTION')),_0x3bff83['plugins']['has']('ImageUploadEditing')&&_0x45d42d['enableCommand']('uploadImage'),_0x3bff83['plugins']['has']('ImageBlockEditing')&&_0x3bff83['plugins']['has']('ImageInlineEditing')&&(_0x45d42d['enableCommand']('imageTypeInline',(_0x57e3c6,_0x29df4a)=>{const _0x49c93b=_0x591116['getClosestSelectedImageElement'](_0x3bff83['model']['document']['selection']);_0x3bff83['model']['change'](()=>{_0x45d42d['markBlockFormat'](_0x49c93b,{'commandName':'imageTypeInline','commandParams':[_0x29df4a]},[],'convertBlockImageToInline');});}),_0x45d42d['enableCommand']('imageTypeBlock',(_0x448298,_0x869457)=>{_0x3bff83['model']['change'](_0x253bf5=>{let _0x16e898=_0x591116['getClosestSelectedImageElement'](_0x3bff83['model']['document']['selection']),_0x5475ed=_0x253bf5['createRangeOn'](_0x16e898);const _0x4fec68=_0x64eaf['fromPosition'](_0x5475ed['start'],'toPrevious'),_0x191e1a=_0x64eaf['fromPosition'](_0x5475ed['end'],'toNext');_0x45d42d['forceDefaultExecution'](()=>_0x448298(_0x869457)),_0x16e898=_0x591116['getClosestSelectedImageElement'](_0x3bff83['model']['document']['selection']),_0x5475ed=_0x253bf5['createRangeOn'](_0x16e898);const _0x318a0a=_0x253bf5['createRange'](_0x4fec68,_0x191e1a);_0x4fec68['detach'](),_0x191e1a['detach'](),_0x45d42d['markBlockFormat'](_0x16e898,{'commandName':'imageTypeInline','commandParams':[_0x869457]},[],'convertInlineImageToBlock'),_0x318a0a['start']['isBefore'](_0x5475ed['start'])&&_0x45d42d['markInsertion'](_0x253bf5['createRange'](_0x318a0a['start'],_0x5475ed['start']),'convertInlineImageToBlock'),_0x5475ed['end']['isBefore'](_0x318a0a['end'])&&_0x45d42d['markInsertion'](_0x253bf5['createRange'](_0x5475ed['end'],_0x318a0a['end']),'convertInlineImageToBlock');});}),_0x45d42d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x45d42d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x45d42d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x45d42d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x45d42d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x45d42d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x52a45f])=>{const _0x2b7685=_0x45d42d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x55e6a1=_0x52a45f['start'],_0x334e5c=_0x52a45f['end'];const _0x183880=_0x3bff83['model']['schema']['getNearestSelectionRange'](_0x55e6a1,'backward'),_0x603c5d=_0x3bff83['model']['schema']['getNearestSelectionRange'](_0x334e5c,'forward');_0x183880['isCollapsed']&&(_0x55e6a1=_0x183880['start']),_0x603c5d['isCollapsed']&&(_0x334e5c=_0x603c5d['end']),_0x2b7685([_0x3bff83['model']['createRange'](_0x55e6a1,_0x334e5c)]);}),_0x45d42d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x241499),_0x45d42d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x241499)),_0x3bff83['plugins']['has']('ImageCaptionEditing')&&(_0x45d42d['enableCommand']('toggleImageCaption',(_0x420e4f,_0x299776)=>{const _0xaca3b4=_0x3bff83['plugins']['get']('ImageCaptionUtils');let _0x7cc7f4=_0x591116['getClosestSelectedImageElement'](_0x3bff83['model']['document']['selection']),_0x14f1e3=_0xaca3b4['getCaptionFromImageModelElement'](_0x7cc7f4);_0x3bff83['model']['change'](()=>{if(_0x14f1e3)return void _0x45d42d['markDeletion'](_0x3bff83['model']['createRangeOn'](_0x14f1e3));const _0x2bd309=_0x591116['isBlockImage'](_0x7cc7f4);_0x420e4f(_0x299776),_0x7cc7f4=_0x591116['getClosestSelectedImageElement'](_0x3bff83['model']['document']['selection']),_0x14f1e3=_0xaca3b4['getCaptionFromImageModelElement'](_0x7cc7f4),_0x45d42d['markInsertion'](_0x3bff83['model']['createRangeOn'](_0x14f1e3),_0x2bd309?null:'imageCaption');});}),_0x45d42d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x241499));const _0x229932=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x7cd605(_0x545769,_0x2cf2d2){const _0x3a4074=_0x229932['findIndex'](({type:_0x28b040,subType:_0x1068f3})=>_0x545769['type']==_0x28b040&&_0x545769['subType']==_0x1068f3),_0x3a2f2a=_0x229932['findIndex'](({type:_0x596883,subType:_0xa47684})=>_0x2cf2d2['type']==_0x596883&&_0x2cf2d2['subType']==_0xa47684);if(_0x3a4074<0x0||_0x3a2f2a<0x0)return!0x1;const _0x356173=_0x545769['getFirstRange'](),_0xb69f6c=_0x2cf2d2['getFirstRange']();if((0x0==_0x3a4074||0x1==_0x3a4074)&&0x2==_0x3a2f2a&&_0x356173['isIntersecting'](_0xb69f6c))return!0x0;if(0x2==_0x3a4074&&0x3==_0x3a2f2a){const _0x4998c5=_0x45d42d['_findSuggestions'](_0x356173,'insertion')['filter'](({suggestion:_0x21005d,meta:_0x31f216})=>_0x31f216['isOwn']&&'convertInlineImageToBlock'==_0x21005d['subType']);if(_0x4998c5['length']>0x1&&_0xb69f6c['end']['isEqual'](_0x356173['start']))return!0x0;if(0x1==_0x4998c5['length']&&(_0x356173['start']['isEqual'](_0xb69f6c['end'])||_0x356173['end']['isEqual'](_0xb69f6c['start'])))return!0x0;}if(0x3==_0x3a4074&&0x3==_0x3a2f2a&&_0x356173['start']['isBefore'](_0xb69f6c['start'])){const _0x28342f=_0x356173['end']['nodeAfter'],_0xdc3dd7=_0xb69f6c['start']['nodeBefore'];return _0x591116['isBlockImage'](_0x28342f)&&_0x28342f===_0xdc3dd7;}return!0x1;}function _0x241499(_0x39437c,_0x3f187d){return _0x7cd605(_0x39437c,_0x3f187d)?[_0x39437c,_0x3f187d]:_0x7cd605(_0x3f187d,_0x39437c)?[_0x3f187d,_0x39437c]:null;}_0x3bff83['plugins']['has']('ImageResize')&&(_0x45d42d['enableDefaultAttributesIntegration']('resizeImage'),_0x45d42d['registerBlockAttribute']('resizedWidth'),_0x45d42d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1ee79e,'FORMAT_IMAGE_SIZE'))),_0x3bff83['plugins']['has']('ImageTextAlternativeEditing')&&(_0x45d42d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x45d42d['registerBlockAttribute']('alt')),_0x45d42d['descriptionFactory']['registerDescriptionCallback'](_0x341d0f=>{if(!!_0x229932['find'](({type:_0x10fe76,subType:_0x3141fe})=>_0x341d0f['type']==_0x10fe76&&_0x341d0f['subType']==_0x3141fe))return _0x341d0f['previous']?{}:void 0x0;}),_0x45d42d['descriptionFactory']['registerDescriptionCallback'](_0x45faba=>{if('insertion'==_0x45faba['type']||'deletion'==_0x45faba['type']){const _0xc7878=_0x45faba['getContainedElement']();if(_0xc7878&&_0xc7878['is']('element','caption'))return{'type':'insertion'==_0x45faba['type']?'addObject':'removeObject','element':_0xc7878,'quantity':0x1};}}),_0x45d42d['descriptionFactory']['registerDescriptionCallback'](_0x1b98f9=>'formatBlock'==_0x1b98f9['type']&&'convertInlineImageToBlock'==_0x1b98f9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1b98f9['type']&&'convertBlockImageToInline'==_0x1b98f9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x45d42d['descriptionFactory']['registerDescriptionCallback'](_0x167249=>{if('attribute'!=_0x167249['type'])return;const {data:_0x121c95}=_0x167249;if(!_0x121c95||'alt'!=_0x121c95['key'])return;const _0x5e71d3=_0x121c95['newValue'];return _0x5e71d3?{'type':'format','content':o(_0x1ee79e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5e71d3+'\x22')}:{'type':'format','content':o(_0x1ee79e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54342e=this['editor'],_0x3f6faa=_0x54342e['locale'];_0x54342e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c5bf6=>{if('formatBlock'!=_0x4c5bf6['type']&&'formatInline'!=_0x4c5bf6['type'])return;const {data:_0x36dab8}=_0x4c5bf6;if(_0x36dab8){if('imageTextAlternative'==_0x36dab8['commandName']){const _0x11e7d4=_0x36dab8['commandParams'][0x0]['newValue'];return _0x11e7d4?{'type':'format','content':o(_0x3f6faa,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x11e7d4+'\x22')}:{'type':'format','content':o(_0x3f6faa,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x36dab8['commandName']){const _0x258f65=_0x36dab8['commandParams'][0x0]['width'];return _0x258f65?{'type':'format','content':o(_0x3f6faa,'*Set\x20image\x20width:*\x20%0',_0x258f65)}:{'type':'format','content':o(_0x3f6faa,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x3c336f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1e6581=this['editor']['locale'],_0x11536c=this['editor']['plugins']['get']('TrackChangesEditing');_0x11536c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x11536c['registerBlockAttribute']('src'),_0x11536c['descriptionFactory']['registerDescriptionCallback'](_0x1ff42f=>{if('attribute'!=_0x1ff42f['type'])return;const {data:_0x678f98}=_0x1ff42f;return _0x678f98&&'src'==_0x678f98['key']?_0x678f98['newValue']&&_0x678f98['oldValue']?{'type':'format','content':o(_0x1e6581,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x8e9da3=this['editor']['plugins']['get']('TrackChangesEditing');_0x8e9da3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x8e9da3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8e9da3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x8e9da3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x305826=this['editor'],_0x2ec012=_0x305826['locale'];_0x305826['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x481ac3=>{if('formatBlock'!=_0x481ac3['type']&&'formatInline'!=_0x481ac3['type'])return;const {data:_0xfed829}=_0x481ac3;if(!_0xfed829||'replaceImageSource'!=_0xfed829['commandName'])return;return{'type':'format','content':o(_0x2ec012,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x3c336f{['afterInit'](){const _0x18cf68=this['editor'];if(!_0x18cf68['plugins']['has']('ImageStyleEditing'))return;const _0x41a783=_0x18cf68['plugins']['get']('TrackChangesEditing'),_0x2996d7=_0x18cf68['plugins']['get']('ImageUtils'),_0x3eb56c={};_0x41a783['enableCommand']('imageStyle',(_0x215ad1,_0x5f272e)=>{const _0x7184ba=_0x18cf68['plugins']['get']('Users')['me'],_0x542827=_0x18cf68['commands']['get']('imageStyle');let _0x31bf73=_0x2996d7['getClosestSelectedImageElement'](_0x18cf68['model']['document']['selection']),_0x23037d=_0x18cf68['model']['createRangeOn'](_0x31bf73),_0x4b4eb7=_0x542827['value'];if(_0x4b4eb7==_0x5f272e['value'])return;const _0x3efd1e={'commandName':'imageStyle','commandParams':[_0x5f272e],'formatGroupId':_0x36c984()};_0x18cf68['model']['change'](()=>{if(_0x41a783['getSuggestions']()['filter'](_0x5309b8=>_0x5309b8['isInContent']&&_0x7184ba==_0x5309b8['author']&&('formatBlock'==_0x5309b8['type']||'formatInline'==_0x5309b8['type'])&&('imageStylePreApply'==_0x5309b8['subType']||'imageStylePostApply'==_0x5309b8['subType'])&&_0x5309b8['getFirstRange']()['isEqual'](_0x23037d))['forEach'](_0x45f7be=>_0x41a783['discardSuggestion'](_0x45f7be['head'])),_0x31bf73=_0x2996d7['getClosestSelectedImageElement'](_0x18cf68['model']['document']['selection']),_0x23037d=_0x18cf68['model']['createRangeOn'](_0x31bf73),_0x542827['refresh'](),_0x18cf68['commands']['get']('imageTypeInline')['refresh'](),_0x18cf68['commands']['get']('imageTypeBlock')['refresh'](),_0x4b4eb7=_0x542827['value'],_0x4b4eb7!=_0x5f272e['value'])return _0x2996d7['isInlineImage'](_0x31bf73)&&_0x542827['shouldConvertImageType'](_0x5f272e['value'],_0x31bf73)?(_0x215ad1({..._0x5f272e,'setImageSizes':!0x1}),_0x31bf73=_0x2996d7['getClosestSelectedImageElement'](_0x18cf68['model']['document']['selection']),void _0x41a783['markBlockFormat'](_0x31bf73,{..._0x3efd1e,'commandReversedParams':[{'value':_0x4b4eb7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2996d7['isBlockImage'](_0x31bf73)?_0x41a783['markBlockFormat'](_0x31bf73,_0x3efd1e,[],'imageStylePostApply'):_0x41a783['markInlineFormat'](_0x23037d,_0x3efd1e,'imageStylePostApply'));});});for(const _0x1d5602 of _0x18cf68['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3eb56c[_0x1d5602['name']]=_0x1d5602['title']['toLowerCase']();_0x41a783['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x41a783['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x41a783['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x41a783['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4423cf])=>{_0x2996d7['setImageNaturalSizeAttributes'](_0x4423cf['getContainedElement']());}),_0x41a783['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5bd619,_0x41bf52)=>{_0x41a783['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5bd619,{'commandName':_0x41bf52['commandName'],'commandParams':_0x41bf52['commandReversedParams']});}),_0x41a783['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x56237f,_0x3506fa){if(_0x25fc24(_0x56237f,_0x3506fa))return[_0x56237f,_0x3506fa];if(_0x25fc24(_0x3506fa,_0x56237f))return[_0x3506fa,_0x56237f];return null;});const _0x3a4070=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x25fc24(_0x27eeae,_0x4e8f33){const _0x2b0465=_0x3a4070['findIndex'](({type:_0x3d5634,subType:_0x1efaf6})=>_0x27eeae['type']==_0x3d5634&&_0x27eeae['subType']==_0x1efaf6),_0x46bccc=_0x3a4070['findIndex'](({type:_0x4b92a0,subType:_0x15969d})=>_0x4e8f33['type']==_0x4b92a0&&_0x4e8f33['subType']==_0x15969d);if(_0x2b0465<0x0||_0x46bccc<0x0)return!0x1;const _0xe3870f=_0x27eeae['getFirstRange'](),_0x1ce429=_0x4e8f33['getFirstRange']();if((0x0==_0x2b0465||0x1==_0x2b0465)&&0x2==_0x46bccc&&_0xe3870f['isIntersecting'](_0x1ce429))return!0x0;if(0x2==_0x2b0465&&0x3==_0x46bccc){const _0x5e2d26=_0x41a783['_findSuggestions'](_0xe3870f,'insertion')['filter'](({suggestion:_0x1329f4,meta:_0x438cdb})=>_0x438cdb['isOwn']&&'convertInlineImageToBlock'==_0x1329f4['subType']);if(_0x5e2d26['length']>0x1&&_0x1ce429['end']['isEqual'](_0xe3870f['start']))return!0x0;if(0x1==_0x5e2d26['length']&&(_0xe3870f['start']['isEqual'](_0x1ce429['end'])||_0xe3870f['end']['isEqual'](_0x1ce429['start'])))return!0x0;}if(0x3==_0x2b0465&&0x3==_0x46bccc&&_0xe3870f['start']['isBefore'](_0x1ce429['start'])){const _0x4c9d86=_0xe3870f['end']['nodeAfter'],_0xaa6346=_0x1ce429['start']['nodeBefore'];return _0x2996d7['isBlockImage'](_0x4c9d86)&&_0x4c9d86===_0xaa6346;}return!0x1;}_0x18cf68['model']['document']['registerPostFixer'](()=>{let _0x3c5683=!0x1;const _0x138d9e=Array['from'](_0x18cf68['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x213c95,data:_0x18ab37}of _0x138d9e){const {group:_0x184aa3,type:_0x3016d0,subType:_0x447a96,id:_0x35942a}=_0x41a783['_splitMarkerName'](_0x213c95);if('suggestion'==_0x184aa3&&_0x41a783['hasSuggestion'](_0x35942a)){if('formatBlock'==_0x3016d0&&('imageStylePreApply'==_0x447a96||'imageStylePostApply'==_0x447a96)){const _0x28cda1=_0x41a783['getSuggestion'](_0x35942a);if(_0x18ab37['newRange']){const _0x4e9944=_0x28cda1['getFirstRange']()['getContainedElement']();if(_0x2996d7['isBlockImage'](_0x4e9944))continue;_0x41a783['discardSuggestion'](_0x28cda1),_0x3c5683=!0x0;}}if('insertion'==_0x3016d0&&'imageCaption'==_0x447a96&&!_0x18ab37['newRange']){const _0x5456bd=_0x41a783['getSuggestion'](_0x35942a);_0x5456bd['next']&&_0x5456bd['next']['isInContent']&&(_0x41a783['discardSuggestion'](_0x5456bd['next']),_0x3c5683=!0x0);}}}return _0x3c5683;}),this['_registerLegacyDescription'](_0x3eb56c);}['_registerLegacyDescription'](_0x25746a){const _0x41ced0=this['editor'],_0x8c12d6=_0x41ced0['locale'];_0x41ced0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49f2d8=>{if('formatBlock'!=_0x49f2d8['type']&&'formatInline'!=_0x49f2d8['type'])return;const {data:_0x25c163}=_0x49f2d8;if(!_0x25c163||'imageStyle'!=_0x25c163['commandName'])return;const _0xc0e8ac=_0x25c163['commandParams'][0x0]['value'];return _0x224a91('side'===_0xc0e8ac?o(_0x8c12d6,'FORMAT_SIDE_IMAGE'):_0x25746a[_0xc0e8ac]||_0xc0e8ac);function _0x224a91(_0x1c0cba){return{'type':'format','content':o(_0x8c12d6,'*Format:*\x20%0',_0x1c0cba)};}});}}class at extends _0x3c336f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x572d73){super(_0x572d73),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3d74d1=this['editor'],_0x56386a=_0x3d74d1['commands']['get']('importWord'),_0x592a07=_0x3d74d1['commands']['get']('trackChanges');_0x56386a&&(_0x56386a['on']('execute',(_0x52b485,[,_0x139c08])=>{this['_trackChangesValueDuringImport']=_0x592a07['value'],_0x139c08['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x56386a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x56386a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x592a07['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3d74d1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x25ea4b,_0x3f8537){const {suggestions:_0x41603b}=_0x3f8537,_0x3f8960=this['editor']['commands']['get']('trackChanges'),_0x4c56ff=_0x3f8960['value'];this['_trackChangesValueDuringImport']!==_0x4c56ff&&(_0x3f8960['execute'](),this['_trackChangesExecuted']=!0x0),_0x41603b&&_0x41603b['forEach'](({id:_0x2eda76,type:_0x690399,author:_0x105ea7,created_at:_0x108a2e})=>{const _0x30ea75={'id':_0x2eda76,'type':_0x690399,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x105ea7,'createdAt':_0x108a2e?new Date(_0x108a2e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x30ea75);});}}class ct extends _0x3c336f{['afterInit'](){const _0x1d70ac=this['editor'],_0x2d0cf6=_0x1d70ac['plugins']['get']('TrackChangesEditing');if(_0x1d70ac['plugins']['has']('IndentEditing')&&(_0x2d0cf6['enableCommand']('indent'),_0x2d0cf6['enableCommand']('outdent')),_0x1d70ac['plugins']['has']('IndentBlock')){for(const _0x272894 of['indentBlock','outdentBlock'])_0x2d0cf6['enableDefaultAttributesIntegration'](_0x272894);}const _0x368489=_0x1d70ac['locale'];_0x2d0cf6['registerBlockAttribute']('blockIndent'),_0x2d0cf6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x368489,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31d537=this['editor'],_0x4a7c26=_0x31d537['locale'],_0x3e31d7=_0x31d537['plugins']['get']('TrackChangesEditing');_0x3e31d7['descriptionFactory']['registerDescriptionCallback'](_0x1b50c3=>{if('formatBlock'!=_0x1b50c3['type'])return;const {data:_0x23d172}=_0x1b50c3;if(!_0x23d172)return;if('indentBlock'!=_0x23d172['commandName']&&'outdentBlock'!=_0x23d172['commandName'])return;const _0x31a884=_0x1b50c3['getItems']()[0x0],_0x5ec25c=_0x3e31d7['descriptionFactory']['getItemLabel'](_0x31a884);return'indentBlock'==_0x23d172['commandName']?{'type':'format','content':o(_0x4a7c26,'*Indent:*\x20%0',_0x5ec25c)}:'outdentBlock'==_0x23d172['commandName']?{'type':'format','content':o(_0x4a7c26,'*Outdent:*\x20%0',_0x5ec25c)}:void 0x0;});}}class ut extends _0x3c336f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3c336f{['afterInit'](){const _0x284a07=this['editor'];if(!_0x284a07['plugins']['has']('LinkEditing'))return;const _0x14a189=_0x284a07['plugins']['get']('TrackChangesEditing'),_0x477f20=_0x284a07['commands']['get']('link');_0x14a189['enableDefaultAttributesIntegration']('link'),_0x14a189['enableDefaultAttributesIntegration']('unlink'),_0x14a189['registerInlineAttribute']('linkHref');for(const _0x166aa7 of _0x477f20['manualDecorators'])_0x14a189['registerInlineAttribute'](_0x166aa7['id']),_0x14a189['descriptionFactory']['registerAttributeLabel'](_0x166aa7['id'],'link\x20('+_0x166aa7['label']['toLowerCase']()+')');_0x14a189['descriptionFactory']['registerDescriptionCallback'](_0x5aa8ec=>{if('attribute'!=_0x5aa8ec['type'])return;const {data:_0xa78266}=_0x5aa8ec;if(!_0xa78266||'linkHref'!=_0xa78266['key'])return;const _0x1b4f20=_0xa78266['newValue'],_0x5cae46=_0x284a07['locale'];return{'type':'format','content':null==_0x1b4f20?o(_0x5cae46,'*Remove\x20link*'):o(_0x5cae46,'*Set\x20link:*\x20%0','\x22'+_0x1b4f20+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x232c4e=this['editor'],_0xf51090=_0x232c4e['locale'];_0x232c4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3eca42=>{if('formatInline'!=_0x3eca42['type'])return;const {data:_0x2c1236}=_0x3eca42;if(_0x2c1236){if('link'==_0x2c1236['commandName']){const _0x4cfc7b=_0x2c1236['commandParams'][0x0];return{'type':'format','content':o(_0xf51090,'*Set\x20link:*\x20%0','\x22'+_0x4cfc7b+'\x22')};}return'unlink'==_0x2c1236['commandName']?{'type':'format','content':o(_0xf51090,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3c336f{['afterInit'](){const _0x2abc12=this['editor'],_0x341ee0=_0x2abc12['locale'];if(!_0x2abc12['plugins']['has']('LegacyListEditing'))return;const _0x2390d2=_0x2abc12['plugins']['get']('TrackChangesEditing'),_0x483cf5=_0x2abc12['plugins']['has']('LegacyTodoListEditing');function _0x513315(_0x1b3fe2){return()=>{const _0xaf1b06=_0x2abc12['model']['document']['selection'],_0xc38ba7=_0x2abc12['commands']['get'](_0x1b3fe2);if(_0xc38ba7['value'])return void _0x2abc12['execute']('paragraph',{});const _0x3c1c24=_0x1b3fe2['slice'](0x0,-0x4),_0x56daab=function(_0x12e380,_0x2553db,_0x59040a){let _0x9d1649=Array['from'](_0x12e380)['filter'](_0x159df4=>function(_0x65cf9d,_0x1ea40c){return _0x1ea40c['checkChild'](_0x65cf9d['parent'],'listItem')&&!_0x1ea40c['isObject'](_0x65cf9d);}(_0x159df4,_0x59040a));_0x9d1649=_0x9d1649['filter'](_0x1d509a=>!_0x1d509a['is']('element','listItem')||_0x1d509a['getAttribute']('listType')!=_0x2553db);const _0x260a8f=new Set();for(const _0x38bb57 of _0x9d1649)_0x38bb57['is']('element','listItem')?_0x260a8f['add'](fe(_0x38bb57)):_0x260a8f['add'](_0x38bb57);return Array['from'](_0x260a8f);}(_0xaf1b06['getSelectedBlocks'](),_0x3c1c24,_0x2abc12['model']['schema']);_0x2abc12['model']['change'](()=>{for(const _0x31beaa of _0x56daab)_0x2390d2['markBlockFormat'](_0x31beaa,{'commandName':_0x1b3fe2,'commandParams':[{'forceValue':!_0xc38ba7['value']}],'formatGroupId':'blockName'},ue(_0x31beaa));});};}function _0x12f540(_0x53fd29){return()=>{const _0x3497ed=function(_0x5ecbae){let _0x4dfecd=Array['from'](_0x5ecbae);const _0x51c2f4=_0x4dfecd['findIndex'](_0x1bf67c=>'listItem'!=_0x1bf67c['name']);return _0x51c2f4>-0x1&&(_0x4dfecd=_0x4dfecd['slice'](0x0,_0x51c2f4)),_0x4dfecd;}(_0x2abc12['model']['document']['selection']['getSelectedBlocks']()),_0x1dd684=_0x2abc12['model']['createRange'](_0x2abc12['model']['createPositionAt'](_0x3497ed[0x0],'before'),_0x2abc12['model']['createPositionAt'](_0x3497ed[_0x3497ed['length']-0x1],'end'));_0x2abc12['model']['change'](()=>{_0x2390d2['markBlockFormat'](_0x1dd684,{'commandName':_0x53fd29,'commandParams':[],'formatGroupId':'listIndent'},function(_0x334b71){const _0x577789=new Set();for(const _0x1785e2 of _0x334b71){let _0x4354b8=_0x1785e2['nextSibling'];for(;_0x4354b8&&_0x4354b8['getAttribute']('listIndent')>_0x1785e2['getAttribute']('listIndent');)_0x577789['add'](_0x4354b8),_0x4354b8=_0x4354b8['nextSibling'];}return Array['from'](_0x577789);}(_0x3497ed));});};}_0x2390d2['enableCommand']('numberedList',_0x513315('numberedList')),_0x2390d2['enableCommand']('bulletedList',_0x513315('bulletedList')),_0x483cf5&&_0x2390d2['enableCommand']('todoList',_0x513315('todoList')),_0x2390d2['enableCommand']('indentList',_0x12f540('indentList')),_0x2390d2['enableCommand']('outdentList',_0x12f540('outdentList')),_0x483cf5&&_0x2390d2['enableCommand']('checkTodoList',()=>{const _0x150926=_0x2abc12['commands']['get']('checkTodoList'),_0x15cc08=Array['from'](_0x150926['_selectedElements']);_0x15cc08['filter'](_0xb96727=>_0xb96727['getAttribute']('todoListChecked')!=_0x150926['value']),_0x2abc12['model']['change'](()=>{for(const _0x21afa4 of _0x15cc08)_0x2390d2['markBlockFormat'](_0x21afa4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x150926['value']}]});});}),_0x2390d2['descriptionFactory']['registerElementLabel']('listItem',_0x269289=>o(_0x341ee0,'ELEMENT_LIST_ITEM',_0x269289)),_0x2390d2['descriptionFactory']['registerDescriptionCallback'](_0x8615bf=>{if('formatBlock'!=_0x8615bf['type']&&'formatInline'!=_0x8615bf['type'])return;const {data:_0x5acf81}=_0x8615bf;if(_0x5acf81){if('numberedList'==_0x5acf81['commandName']||'bulletedList'==_0x5acf81['commandName']||'todoList'==_0x5acf81['commandName'])switch(_0x5acf81['commandName']['replace']('List','')){case'bulleted':return _0x139aee(o(_0x341ee0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x139aee(o(_0x341ee0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x139aee(o(_0x341ee0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5acf81['commandName'])return{'type':'format','content':o(_0x341ee0,'*Indent:*\x20%0',o(_0x341ee0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5acf81['commandName'])return{'type':'format','content':o(_0x341ee0,'*Outdent:*\x20%0',o(_0x341ee0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5acf81['commandName'])return _0x5acf81['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x341ee0,'*Check\x20item*')}:{'type':'format','content':o(_0x341ee0,'*Uncheck\x20item*')};}function _0x139aee(_0x4e559f){return{'type':'format','content':o(_0x341ee0,'*Change\x20to:*\x20%0',_0x4e559f)};}});}}function fe(_0x73f875){const _0x10c907=_0x73f875['getAttribute']('listIndent');if(0x0==_0x10c907)return _0x73f875;let _0xa58ae5=_0x73f875;for(;_0x73f875['previousSibling']&&_0x73f875['previousSibling']['is']('element','listItem');){const _0x7b66f8=_0x73f875['previousSibling']['getAttribute']('listIndent');if(_0x7b66f8==_0x10c907)_0xa58ae5=_0x73f875['previousSibling'];else{if(_0x7b66f8<_0x10c907)break;}_0x73f875=_0x73f875['previousSibling'];}return _0xa58ae5;}function ue(_0x3d9820){const _0x508971=[];if(_0x3d9820['is']('element','listItem')&&_0x3d9820['getAttribute']('listIndent')>0x0){let _0x27a5ee=_0x3d9820['nextSibling'];for(;_0x27a5ee&&'listItem'==_0x27a5ee['name']&&_0x27a5ee['getAttribute']('listIndent')==_0x3d9820['getAttribute']('listIndent');)_0x508971['push'](_0x27a5ee),_0x27a5ee=_0x27a5ee['nextSibling'];}return _0x508971;}class W extends _0x3c336f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x45b04b=this['editor']['config']['get']('list.properties'),_0x4d0297=this['editor']['plugins']['get']('TrackChangesEditing');_0x45b04b['styles']&&_0x4d0297['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x45b04b['reversed']&&_0x4d0297['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x45b04b['startIndex']&&_0x4d0297['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d0297['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4b63f5,_0x55de43={}){const _0x44f380=this['editor']['plugins']['get']('TrackChangesEditing'),_0x230098=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x44f380['markMultiRangeBlockFormat'](_0x230098,{'commandName':'listStyle','commandParams':[{'type':_0x55de43['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3069b3,_0x2c4a4a={}){const _0x7e9d0e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57fcbc=this['_getSuggestionBlocks'](_0x54c430=>_0x54c430['is']('element','listItem')&&'numbered'===_0x54c430['getAttribute']('listType'));if(_0x57fcbc['length']<0x1)return;const _0x5d3125=_0x57fcbc['map'](_0x10f5e7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10f5e7,'before'),this['editor']['model']['createPositionAt'](_0x10f5e7,0x0)));this['editor']['model']['change'](()=>{_0x7e9d0e['markMultiRangeBlockFormat'](_0x5d3125,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c4a4a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2436d7,_0x2c3451={}){const _0x6dbc35=this['editor']['plugins']['get']('TrackChangesEditing'),_0x280fea=this['_getSuggestionBlocks'](_0x4c81e7=>_0x4c81e7['is']('element','listItem')&&'numbered'===_0x4c81e7['getAttribute']('listType'));if(_0x280fea['length']<0x1)return;const _0x57c243=_0x280fea['map'](_0x2f98b0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f98b0,'before'),this['editor']['model']['createPositionAt'](_0x2f98b0,0x0)));this['editor']['model']['change'](()=>{_0x6dbc35['markMultiRangeBlockFormat'](_0x57c243,{'commandName':'listStart','commandParams':[{'startIndex':_0x2c3451['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x56924d){if('formatBlock'!=_0x56924d['type']&&'formatInline'!=_0x56924d['type'])return;const _0x3d9d55=this['editor']['locale'],{data:_0x9a8495}=_0x56924d;if(!_0x9a8495)return;let _0x4f072e,_0x14c335;switch(_0x9a8495['commandName']){case'listStyle':_0x4f072e='*Change\x20to:*\x20%0',_0x14c335={'type':'format','content':o(_0x3d9d55,_0x4f072e,o(_0x3d9d55,this['_getTranslationKeyForListStyle'](_0x9a8495['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4f072e=_0x9a8495['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x14c335={'type':'format','content':o(_0x3d9d55,_0x4f072e)};break;case'listStart':_0x4f072e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x14c335={'type':'format','content':o(_0x3d9d55,_0x4f072e,_0x9a8495['commandParams'][0x0]['startIndex'])};}return _0x14c335;}['_getSuggestionBlocksForListStyle'](){const _0x3125f1=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bc245=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2bc245[0x0]?.['is']('element','listItem')&&_0x2bc245['unshift'](..._0x3125f1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2bc245[_0x2bc245['length']-0x1]?.['is']('element','listItem')&&_0x2bc245['push'](..._0x3125f1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2bc245=[...new Set(_0x2bc245)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2bc245=_0x2bc245['filter'](_0x34c816=>_0x34c816['is']('element','listItem'))),_0x2bc245;}['_getSuggestionBlocks'](_0x24fd8d){const _0x4db8b4=this['editor']['plugins']['get']('LegacyListUtils');let _0x11633a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x24fd8d)['map'](_0x3f6710=>{const _0x21e45f=this['editor']['model']['createPositionAt'](_0x3f6710,0x0);return[..._0x4db8b4['getSiblingNodes'](_0x21e45f,'backward'),..._0x4db8b4['getSiblingNodes'](_0x21e45f,'forward')];})['flat']();return _0x11633a=[...new Set(_0x11633a)],_0x11633a;}['_getTranslationKeyForListStyle'](_0x2f2846){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2f2846)||'default')['toUpperCase']()+'_LIST_'+_0x2f2846['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x3c336f{['afterInit'](){const _0x36f8fd=this['editor'];if(!_0x36f8fd['plugins']['has']('MediaEmbedEditing'))return;const _0x58e009=_0x36f8fd['plugins']['get']('TrackChangesEditing'),_0x35a97e=_0x36f8fd['locale'];_0x58e009['enableCommand']('mediaEmbed'),_0x58e009['descriptionFactory']['registerElementLabel']('media',_0x18e440=>o(_0x35a97e,'ELEMENT_MEDIA',_0x18e440)),_0x36f8fd['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x14152f,{writer:_0x1e994c,options:_0x1303eb})=>{if(_0x1303eb['showSuggestionHighlights'])return _0x1e994c['createEmptyElement']('div');},'converterPriority':'high'}),_0x36f8fd['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4508b2,_0x1aed0f,_0x4b9edc)=>{_0x4b9edc['options']['showSuggestionHighlights']&&_0x4508b2['stop']();},{'priority':'high'});}}class mt extends _0x3c336f{['afterInit'](){const _0x4277a5=this['editor'];_0x4277a5['plugins']['has']('MentionEditing')&&_0x4277a5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3c336f{['afterInit'](){const _0x55074c=this['editor'];if(!_0x55074c['plugins']['has']('MergeFieldsEditing'))return;_0x55074c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x55074c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x393d0d=_0x55074c['plugins']['get']('TrackChangesEditing'),_0x205c5=_0x55074c['locale'];_0x393d0d['descriptionFactory']['registerElementLabel']('mergeField',_0xbecad9=>o(_0x205c5,'ELEMENT_MERGE_FIELD',_0xbecad9)),_0x393d0d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1c62c6=>o(_0x205c5,'ELEMENT_MERGE_FIELD',_0x1c62c6)),_0x393d0d['descriptionFactory']['registerDescriptionCallback'](_0x323524=>{if('insertion'!=_0x323524['type']&&'deletion'!=_0x323524['type'])return;const _0x1a4d30=_0x323524['getContainedElement']();if(null==_0x1a4d30)return;if(!_0x1a4d30['is']('element','mergeField')&&!_0x1a4d30['is']('element','mergeFieldBlock'))return;const _0x25e206=_0x55074c['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x1a4d30['getAttribute']('id'));return'insertion'==_0x323524['type']?{'type':'insertion','content':o(_0x205c5,'*Insert:*\x20%0','\x22'+_0x25e206+'\x22\x20'+o(_0x205c5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x205c5,'*Remove:*\x20%0','\x22'+_0x25e206+'\x22\x20'+o(_0x205c5,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x3c336f{['afterInit'](){const _0x5d4181=this['editor'],_0x5cfd03=_0x5d4181['plugins']['get']('TrackChangesEditing');_0x5d4181['plugins']['has']('MultiLevelList')&&(_0x5cfd03['enableDefaultAttributesIntegration']('multiLevelList'),_0x5cfd03['registerBlockAttribute']('listMarkerStyle'),_0x5cfd03['descriptionFactory']['registerDescriptionCallback'](_0xf3ab39=>this['handleDescriptions'](_0xf3ab39)));}['handleDescriptions'](_0x453b87){const _0x24bf6b=this['editor']['locale'],{data:_0x39b3cb}=_0x453b87,_0x1c2d09={'type':'format','content':''};if(_0x39b3cb&&'listMarkerStyle'==_0x39b3cb['key']){if(!_0x39b3cb['oldValue'])return{'type':'format','content':o(_0x24bf6b,'*Set\x20format:*\x20%0',o(_0x24bf6b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x39b3cb['newValue']+')'};if(!_0x39b3cb['newValue']){let _0x289a7b=_0x453b87['head'];for(;_0x289a7b;){if(_0x289a7b['data']&&'listType'==_0x289a7b['data']['key']&&_0x289a7b['data']['newValue'])return _0x1c2d09;_0x289a7b=_0x289a7b['next'];}return{'type':'format','content':o(_0x24bf6b,'*Remove\x20format:*\x20%0',o(_0x24bf6b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x39b3cb['oldValue']+')'};}}}}class kt extends _0x3c336f{['afterInit'](){const _0x5cc857=this['editor'];if(!_0x5cc857['plugins']['has']('PageBreakEditing'))return;_0x5cc857['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5dd1dc=_0x5cc857['plugins']['get']('TrackChangesEditing'),_0xaf05ca=_0x5cc857['locale'];_0x5dd1dc['descriptionFactory']['registerElementLabel']('pageBreak',_0xea486e=>o(_0xaf05ca,'ELEMENT_PAGE_BREAK',_0xea486e));}}class bt extends _0x3c336f{['afterInit'](){const _0x1a4014=this['editor'];if(!_0x1a4014['plugins']['has']('Paragraph'))return;const _0x4390d4=_0x1a4014['locale'],_0x94905f=_0x1a4014['plugins']['get']('TrackChangesEditing');_0x94905f['descriptionFactory']['registerElementLabel']('paragraph',_0x30edb7=>o(_0x4390d4,'ELEMENT_PARAGRAPH',_0x30edb7)),_0x94905f['enableDefaultAttributesIntegration']('paragraph'),_0x94905f['enableCommand']('insertParagraph'),_0x1a4014['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1a4014),{'priority':'highest'}),_0x1a4014['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x6318ca,_0x4c28aa,_0x8c8fc)=>{_0x8c8fc['options']['showSuggestionHighlights']&&nr(_0x1a4014,{'showActiveMarker':!0x1})(_0x6318ca,_0x4c28aa,_0x8c8fc);},{'priority':'highest'});const _0x2780a3=_0x94905f['descriptionFactory'];_0x2780a3['registerDescriptionCallback'](_0x56d1d0=>{if('insertion'!==_0x56d1d0['type'])return;const {start:_0x38eeba,end:_0x66af03}=_0x56d1d0['getFirstRange']();if(!_0x38eeba['isTouching'](_0x66af03)||!_0x38eeba['nodeAfter'])return;const _0xde2d4b=_0x1a4014['model']['schema'],_0x4d61c6=_0x38eeba['nodeAfter'];return _0xde2d4b['isBlock'](_0x4d61c6)&&!_0xde2d4b['isLimit'](_0x4d61c6)&&_0xde2d4b['checkChild'](_0x4d61c6,'$text')?{'type':'insertion','content':o(_0x4390d4,'*Insert:*\x20%0',_0x2780a3['getItemLabel'](_0x4d61c6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x213951=this['editor'],_0x1a2185=_0x213951['locale'];_0x213951['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x429547=>{if('formatBlock'!=_0x429547['type'])return;const {data:_0x19b3d4}=_0x429547;return _0x19b3d4&&'paragraph'==_0x19b3d4['commandName']?{'type':'format','content':o(_0x1a2185,'*Change\x20to:*\x20%0',o(_0x1a2185,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x45e2c5,{showActiveMarker:_0x3a15c0=!0x0}={}){return(_0x523227,_0x4b7ac1,_0x25724d)=>{const _0x555c3d=_0x45e2c5['plugins']['get']('TrackChangesEditing'),_0x9ab8e2=_0x4b7ac1['markerRange']['start'],_0x488aca=_0x4b7ac1['markerRange']['end'],_0x153e11=_0x45e2c5['model']['schema'];if(!_0x9ab8e2['isTouching'](_0x488aca)||!_0x9ab8e2['nodeAfter'])return;const _0x4d8837=_0x9ab8e2['nodeAfter'];if(_0x153e11['isBlock'](_0x4d8837)&&!_0x153e11['isLimit'](_0x4d8837)&&_0x153e11['checkChild'](_0x4d8837,'$text')){if(!_0x25724d['consumable']['consume'](_0x4b7ac1['markerRange'],_0x523227['name']))return;const {authorId:_0x40824b}=_0x555c3d['_splitMarkerName'](_0x4b7ac1['markerName']),_0x5ce50d=_0x25724d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x40824b}),_0xdec7ec=_0x25724d['mapper']['toViewPosition'](_0x488aca);_0x3a15c0&&_0x555c3d['activeMarkers']['includes'](_0x4b7ac1['markerName'])&&_0x25724d['writer']['addClass']('ck-suggestion-marker--active',_0x5ce50d),_0x25724d['writer']['insert'](_0xdec7ec,_0x5ce50d),_0x25724d['mapper']['bindElementToMarker'](_0x5ce50d,_0x4b7ac1['markerName']);}};}class wt extends _0x3c336f{['afterInit'](){const _0x13a9ff=this['editor'];if(!_0x13a9ff['plugins']['has']('RemoveFormatEditing'))return;_0x13a9ff['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10c627=this['editor'];_0x10c627['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d35de=>{if('formatBlock'!=_0x4d35de['type']&&'formatInline'!=_0x4d35de['type'])return;const {data:_0x1a6d89}=_0x4d35de;return _0x1a6d89&&'removeFormat'==_0x1a6d89['commandName']?{'type':'format','content':o(_0x10c627['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3c336f{['afterInit'](){const _0x4ffe3d=this['editor'];if(!_0x4ffe3d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3d1a58=_0x4ffe3d['plugins']['get']('TrackChangesEditing');_0x3d1a58['enableCommand']('goToPreviousRestrictedEditingException'),_0x3d1a58['enableCommand']('goToNextRestrictedEditingException');const _0x327c94=_0x4ffe3d['plugins']['get']('RestrictedEditingModeEditing');_0x327c94['enableCommand']('trackChanges'),_0x327c94['enableCommand']('acceptSuggestion'),_0x327c94['enableCommand']('discardSuggestion'),_0x327c94['enableCommand']('acceptAllSuggestions'),_0x327c94['enableCommand']('discardAllSuggestions'),_0x327c94['enableCommand']('acceptSelectedSuggestions'),_0x327c94['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3c336f{static get['requires'](){return[_0x1e3dd4];}['init'](){const _0x3478ab=this['editor'],_0x1c6175=_0x3478ab['plugins']['get']('TrackChangesEditing');_0x1c6175['enableCommand']('shiftEnter'),_0x3478ab['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x3478ab),{'priority':'high'}),_0x3478ab['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x3478ab),{'priority':'high'}),_0x3478ab['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3adfb5,_0x52269b,_0x521fce)=>{_0x521fce['options']['showSuggestionHighlights']&&ge(_0x3478ab,{'showActiveMarker':!0x1})(_0x3adfb5,_0x52269b,_0x521fce);}),_0x1c6175['descriptionFactory']['registerElementLabel']('softBreak',_0x20b3a1=>o(_0x3478ab['locale'],'ELEMENT_LINE_BREAK',_0x20b3a1));}}function ge(_0x4b4edc,{showActiveMarker:_0x12e82c=!0x0}={}){return(_0x4e1647,_0x11bc40,_0x1a1a08)=>{const _0x373df0=_0x4b4edc['plugins']['get']('TrackChangesEditing');if(!_0x1a1a08['consumable']['test'](_0x11bc40['markerRange'],_0x4e1647['name']))return;const _0x5921de=_0x4b4edc['model'];for(const _0x5a2982 of _0x11bc40['markerRange']['getItems']()){if(!_0x5a2982['is']('element','softBreak'))continue;const _0xcd1a4a='deletion'==_0x11bc40['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x51d5c6}=_0x373df0['_splitMarkerName'](_0x11bc40['markerName']),_0x349eea=_0x1a1a08['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcd1a4a,'data-author-id':_0x51d5c6}),_0x618248=_0x1a1a08['mapper']['toViewPosition'](_0x5921de['createPositionBefore'](_0x5a2982));_0x12e82c&&_0x373df0['activeMarkers']['includes'](_0x11bc40['markerName'])&&_0x1a1a08['writer']['addClass']('ck-suggestion-marker--active',_0x349eea),_0x1a1a08['writer']['insert'](_0x618248,_0x349eea),_0x1a1a08['mapper']['bindElementToMarker'](_0x349eea,_0x11bc40['markerName']);}};}class St extends _0x3c336f{['afterInit'](){const _0x53cb16=this['editor'],_0x104780=_0x53cb16['model'],_0x141eba=_0x53cb16['locale'];if(!_0x53cb16['plugins']['has']('StandardEditingModeEditing'))return;const _0x590052=_0x53cb16['plugins']['get']('TrackChangesEditing'),_0xf5394f='restrictedEditingException',_0x345575=_0x53cb16['commands']['get'](_0xf5394f);_0x590052['enableCommand'](_0xf5394f,(_0x1f284e,_0x524d64={})=>{const _0xb4c8d9=_0x104780['document']['selection'];if(_0xb4c8d9['isCollapsed'])return void _0x1f284e(_0x524d64);const _0x5c749c=void 0x0!==_0x524d64['forceValue']?_0x524d64['forceValue']:!_0x345575['value'];_0x104780['change'](()=>{const _0x32bd1e=Array['from'](_0xb4c8d9['getRanges']());for(const _0x3396b5 of _0x32bd1e){const _0x2a7698=_0x5c749c?[_0x3396b5]:io(_0xf5394f,_0x3396b5,_0x104780);for(const _0x3eb46a of _0x2a7698)_0x590052['markInlineFormat'](_0x3eb46a,{'commandName':_0xf5394f,'commandParams':[{'forceValue':_0x5c749c}]});}});}),_0x590052['descriptionFactory']['registerDescriptionCallback'](_0x1d8245=>{if('formatBlock'!=_0x1d8245['type']&&'formatInline'!=_0x1d8245['type'])return;const {data:_0x31af50}=_0x1d8245;return _0x31af50&&_0x31af50['commandName']==_0xf5394f?_0x31af50['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x141eba,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x141eba,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x3c336f{['afterInit'](){const _0xf40b8a=this['editor'];if(!_0xf40b8a['plugins']['has']('Style')||!_0xf40b8a['plugins']['has']('DataSchema'))return;const _0x3dae7c=_0xf40b8a['plugins']['get']('TrackChangesEditing'),_0x598d9f=_0xf40b8a['locale'],_0x49881d=_0xf40b8a['config']['get']('style')||{},_0x557c83=_0xf40b8a['plugins']['get']('GeneralHtmlSupport'),_0x45233b=_0xf40b8a['plugins']['get']('StyleUtils')['normalizeConfig'](_0xf40b8a['plugins']['get']('DataSchema'),_0x49881d['definitions']);_0x3dae7c['enableDefaultAttributesIntegration']('style');const _0x5664d5=new Set();for(const _0x30e8ac of _0x45233b['block']){const _0x10f792=_0x557c83['getGhsAttributeNameForElement'](_0x30e8ac['element']);_0x5664d5['add'](_0x10f792);}const _0x3c3e7=new Set();for(const _0x1899a8 of _0x45233b['inline']){const _0x571042=_0x557c83['getGhsAttributeNameForElement'](_0x1899a8['element']);_0x3c3e7['add'](_0x571042);for(const _0x488045 of _0x1899a8['ghsAttributes'])_0x3c3e7['add'](_0x488045);}for(const _0x49d731 of _0x5664d5)_0x3dae7c['registerBlockAttribute'](_0x49d731),_0x3dae7c['descriptionFactory']['registerAttributeLabel'](_0x49d731,o(_0x598d9f,'FORMAT_STYLE'));for(const _0x1045d8 of _0x3c3e7)_0x3dae7c['registerInlineAttribute'](_0x1045d8),_0x3dae7c['descriptionFactory']['registerAttributeLabel'](_0x1045d8,o(_0x598d9f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x264675=this['editor'],_0x28ff3c=_0x264675['locale'];_0x264675['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28cd75=>{if('formatBlock'!=_0x28cd75['type']&&'formatInline'!=_0x28cd75['type'])return;const {data:_0x1cc911}=_0x28cd75;return _0x1cc911&&'style'===_0x1cc911['commandName']?_0x1cc911['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28ff3c,'*Set\x20format:*\x20%0',_0x1cc911['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x28ff3c,'*Remove\x20format:*\x20%0',_0x1cc911['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x3c336f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1a3cc1){super(_0x1a3cc1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x272133=this['editor'],_0x532946=_0x272133['model']['document']['selection'];if(!_0x272133['plugins']['has']('TableEditing'))return;const _0x34b882=_0x272133['locale'],_0x44d77f=_0x272133['plugins']['get']('TrackChangesEditing'),_0x5d6978=_0x272133['plugins']['get']('TableUtils');_0x44d77f['descriptionFactory']['registerElementLabel']('table',_0x5aed3f=>o(_0x34b882,'ELEMENT_TABLE',_0x5aed3f)),this['_setupColumnsRowsFixing'](),_0x44d77f['enableCommand']('insertTable'),_0x44d77f['enableCommand']('selectTableRow'),_0x44d77f['enableCommand']('selectTableColumn');for(const _0x1203a6 of['insertTableRowAbove','insertTableRowBelow']){const _0x5ba67e=_0x272133['commands']['get'](_0x1203a6);_0x44d77f['enableCommand'](_0x1203a6,_0x21bec8=>{_0x272133['model']['change'](_0x50afff=>{_0x21bec8();const _0x23d53c='above'===_0x5ba67e['order'],_0x48e658=_0x5d6978['getSelectionAffectedTableCells'](_0x532946),_0xb963ec=_0x5d6978['getRowIndexes'](_0x48e658),_0x466984=_0x23d53c?_0xb963ec['first']-0x1:_0xb963ec['last']+0x1,_0x201585=_0x48e658[0x0]['findAncestor']('table'),_0xe2a33e=_0x5d6978['createTableWalker'](_0x201585,{'startRow':_0x466984,'endRow':_0x466984}),_0x18a014=Array['from'](_0xe2a33e)['map'](_0x2b7811=>_0x50afff['createRangeOn'](_0x2b7811['cell']));_0x44d77f['markMultiRangeInsertion'](_0x18a014,'tableRow');});});}for(const _0x20c033 of['insertTableColumnLeft','insertTableColumnRight']){const _0x42d1fb=_0x272133['commands']['get'](_0x20c033);_0x44d77f['enableCommand'](_0x20c033,_0x14b852=>{_0x272133['model']['change'](_0x2891fd=>{_0x14b852();const _0x1416ff='left'===_0x42d1fb['order'],_0x319ba8=_0x5d6978['getSelectionAffectedTableCells'](_0x532946),_0xc4b96c=_0x5d6978['getColumnIndexes'](_0x319ba8),_0x1b579d=_0x1416ff?_0xc4b96c['first']-0x1:_0xc4b96c['last']+0x1,_0x5c42d6=_0x319ba8[0x0]['findAncestor']('table'),_0x14a459=_0x5d6978['createTableWalker'](_0x5c42d6,{'startRow':0x0,'column':_0x1b579d,'includeAllSlots':!0x1}),_0x1bc23c=Array['from'](_0x14a459)['map'](_0x54986c=>_0x2891fd['createRangeOn'](_0x54986c['cell']));_0x44d77f['markMultiRangeInsertion'](_0x1bc23c,'tableColumn');});});}for(const _0x101f00 of['removeTableRow','removeTableColumn']){const _0x2dd012=_0x101f00['substr'](0xb),_0x4be9f6=_0x2dd012['toLowerCase'](),_0x1d62b4=_0x4be9f6['substr'](0x0,0x3)+'span',_0x49dfd7='table'+_0x2dd012,_0x7c89d1='min'+_0x2dd012,_0x367d74='max'+_0x2dd012;_0x44d77f['enableCommand'](_0x101f00,()=>{_0x272133['model']['change'](_0x12b6ce=>{const _0x558643=_0x5d6978['getSelectionAffectedTableCells'](_0x532946),_0x568f71=_0x558643[0x0]['findAncestor']('table');let _0x35bf58;if('removeTableRow'==_0x101f00){const _0xb79801=_0x5d6978['getRowIndexes'](_0x558643);_0x35bf58={'startRow':_0xb79801['first'],'endRow':_0xb79801['last'],'includeAllSlots':!0x0};}else{const _0x3aeb3f=_0x5d6978['getColumnIndexes'](_0x558643);_0x35bf58={'startColumn':_0x3aeb3f['first'],'endColumn':_0x3aeb3f['last'],'includeAllSlots':!0x0};}const _0x5df90e=_0x5d6978['createTableWalker'](_0x568f71,_0x35bf58),_0x13008d=Array['from'](_0x5df90e)['map'](({cell:_0x308759})=>_0x308759),_0x535e69=be(_0x13008d['filter'](_0x3e6f8f=>_0x3e6f8f['hasAttribute'](_0x1d62b4))),_0x19b3bc=be(_0x13008d['filter'](_0x46be1a=>!_0x46be1a['hasAttribute'](_0x1d62b4)))['map'](_0x3e023c=>_0x12b6ce['createRangeOn'](_0x3e023c)),_0x565cd6=_0x44d77f['markMultiRangeDeletion'](_0x19b3bc,_0x49dfd7);if(_0x565cd6&&('tableRow'==_0x565cd6['subType']||'tableColumn'==_0x565cd6['subType'])){const _0x4a25b2=this['_getSuggestionCoords'](_0x565cd6);for(const _0x319ddd of _0x535e69){const _0x7a03dd=_0x12b6ce['createRangeOn'](_0x319ddd),_0x5845ff=_0x5d6978['getCellLocation'](_0x319ddd),_0x49909d=_0x319ddd['getAttribute'](_0x1d62b4)-0x1,_0x27bfa8=_0x4a25b2[_0x7c89d1],_0x317908=_0x4a25b2[_0x367d74];_0x27bfa8<=_0x5845ff[_0x4be9f6]&&_0x5845ff[_0x4be9f6]+_0x49909d<=_0x317908&&_0x565cd6['addRange'](_0x7a03dd);}}});});}function _0x2b6a44(_0x5ae909){const _0x1d719f=Array['from'](_0x532946['getRanges']())['map'](_0x450a4d=>_0x4537cd['fromRange'](_0x450a4d));_0x272133['model']['change'](_0x29d8b7=>{const _0x59cd1f=_0x29d8b7['batch'];_0x5ae909=_0x5ae909['filter'](_0x3c9edc=>'$graveyard'!=_0x3c9edc['root']['rootName']),_0x29d8b7['setSelection'](_0x5ae909),_0x272133['commands']['get']('removeTableRow')['refresh'](),_0x272133['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x272133['model']['enqueueChange'](()=>{_0x272133['model']['enqueueChange'](_0x59cd1f,_0x19e4e9=>{const _0x3bcf7a=_0x1d719f['filter'](_0x1ecc9c=>'$graveyard'!=_0x1ecc9c['root']['rootName']);_0x3bcf7a['length']>0x0&&_0x19e4e9['setSelection'](_0x3bcf7a);for(const _0x4fdce9 of _0x1d719f)_0x4fdce9['detach']();});});});}function _0x5694a4(_0xf2114a){_0x272133['model']['change'](_0xd31885=>{const _0x3147a9=Array['from'](_0x532946['getRanges']())['map'](_0x4b5642=>_0x4537cd['fromRange'](_0x4b5642)),_0x16ba9d=[];for(const _0x3a9866 of _0xf2114a)for(const _0x50ed17 of _0x3a9866['getItems']({'shallow':!0x0}))_0x16ba9d['push'](_0x50ed17);for(const _0x256ed0 of _0x16ba9d)'$graveyard'!=_0x256ed0['root']['rootName']&&(_0xd31885['setSelection'](_0xd31885['createPositionAt'](_0x256ed0,0x0)),_0x272133['commands']['get']('removeTableColumn')['refresh'](),_0x272133['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1f1973=_0x3147a9['filter'](_0xcbb643=>'$graveyard'!=_0xcbb643['root']['rootName']);_0x1f1973['length']>0x0&&_0xd31885['setSelection'](_0x1f1973);for(const _0xa46ca6 of _0x3147a9)_0xa46ca6['detach']();});}function _0x59532e(_0x227b1f,_0x3a755f){return _0x3a755f['every'](_0x4f6548=>_0x227b1f['some'](_0x471bc1=>_0x471bc1['end']['isEqual'](_0x4f6548['start'])||_0x4f6548['end']['isEqual'](_0x471bc1['start'])));}function _0x53604(_0x5d69d1,_0x41e14d){return!_0x5d69d1['some'](_0x1461ba=>_0x41e14d['some'](_0x5b6fa3=>_0x1461ba['isIntersecting'](_0x5b6fa3)))&&_0x5d69d1['some'](_0x2e696d=>_0x41e14d['some'](_0x2cc494=>_0x2e696d['end']['isTouching'](_0x2cc494['start'])));}_0x272133['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x10d818,_0x24289e,_0x5daeae)=>{if(!_0x5daeae['options']['showSuggestionHighlights'])return;const _0x264271=_0x24289e['item'];if(!_0x264271)return;const _0x35cb3e=_0x5daeae['mapper']['toViewElement'](_0x264271);function _0x3709a7(_0x341821){return Array['isArray'](_0x341821)?_0x341821:[_0x341821];}_0x35cb3e&&'tableCell'===_0x264271['name']&&_0x4c4ed0(_0x35cb3e,_0x5daeae['writer'],(_0x481352,_0x2bffde,_0x48426e)=>_0x48426e['addClass'](_0x3709a7(_0x2bffde['classes']),_0x481352),(_0xf4cb0a,_0x15362d,_0x233274)=>_0x233274['removeClass'](_0x3709a7(_0x15362d['classes']),_0xf4cb0a));},{'priority':'highest'}),_0x44d77f['descriptionFactory']['registerDescriptionCallback'](_0x37a425=>{if('insertion'!=_0x37a425['type']&&'deletion'!=_0x37a425['type'])return;const _0xd6b489=_0x37a425['getContainedElement']();if(null!=_0xd6b489&&_0xd6b489['is']('element','table')){if('insertion'==_0x37a425['type']){const _0x307af1=_0x37a425['getItems']()['filter'](_0xaef263=>_0xaef263['is']('$textProxy'))['map'](_0x305cc9=>_0x305cc9['data']);if(_0x307af1['length'])return{'type':'insertion','content':o(_0x34b882,'*Insert:*\x20%0',o(_0x34b882,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x307af1['join']('\x20')+'\x22'))};}if('deletion'==_0x37a425['type']){const _0x2e46d8=_0x37a425['getItems']()['filter'](_0x5d807b=>_0x5d807b['is']('$textProxy'))['map'](_0x37e58a=>_0x37e58a['data']);if(_0x2e46d8['length'])return{'type':'deletion','content':o(_0x34b882,'*Remove:*\x20%0',o(_0x34b882,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2e46d8['join']('\x20')+'\x22'))};}}}),_0x44d77f['descriptionFactory']['registerDescriptionCallback'](_0x4b58e1=>{if('tableRow'==_0x4b58e1['subType']){const _0x2983c0=_0x4b58e1['getItems']()['filter'](_0x149273=>_0x149273['is']('$textProxy'))['map'](_0x29c952=>_0x29c952['data']),_0x5a1254=this['_getSuggestionCoords'](_0x4b58e1),_0x3eaa3f=_0x5a1254['maxRow']-_0x5a1254['minRow']+0x1;if('insertion'==_0x4b58e1['type'])return _0x2983c0['length']?{'type':'insertion','content':o(_0x34b882,'*Insert:*\x20%0',o(_0x34b882,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3eaa3f,'\x22'+_0x2983c0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x34b882,'*Insert:*\x20%0',o(_0x34b882,'ELEMENT_TABLE_ROW',_0x3eaa3f))};if('deletion'==_0x4b58e1['type'])return _0x2983c0['length']?{'type':'deletion','content':o(_0x34b882,'*Remove:*\x20%0',o(_0x34b882,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3eaa3f,'\x22'+_0x2983c0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x34b882,'*Remove:*\x20%0',o(_0x34b882,'ELEMENT_TABLE_ROW',_0x3eaa3f))};}if('tableColumn'==_0x4b58e1['subType']){const _0x3d8df5=_0x4b58e1['getItems']()['filter'](_0x50261f=>_0x50261f['is']('$textProxy'))['map'](_0x29008d=>_0x29008d['data']),_0x121707=this['_getSuggestionCoords'](_0x4b58e1),_0x87fce3=_0x121707['maxColumn']-_0x121707['minColumn']+0x1;if('insertion'==_0x4b58e1['type'])return _0x3d8df5['length']?{'type':'insertion','content':o(_0x34b882,'*Insert:*\x20%0',o(_0x34b882,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x87fce3,'\x22'+_0x3d8df5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x34b882,'*Insert:*\x20%0',o(_0x34b882,'ELEMENT_TABLE_COLUMN',_0x87fce3))};if('deletion'==_0x4b58e1['type'])return _0x3d8df5['length']?{'type':'deletion','content':o(_0x34b882,'*Remove:*\x20%0',o(_0x34b882,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x87fce3,'\x22'+_0x3d8df5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x34b882,'*Remove:*\x20%0',o(_0x34b882,'ELEMENT_TABLE_COLUMN',_0x87fce3))};}}),_0x44d77f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2b6a44),_0x44d77f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2b6a44),_0x44d77f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5694a4),_0x44d77f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5694a4),_0x44d77f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x59532e),_0x44d77f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x59532e),_0x44d77f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x53604),_0x44d77f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x53604);}['_acceptFormatSuggestionCallbackFactory'](){const _0xf1decb=this['editor'],_0x549294=_0xf1decb['model']['document']['selection'];return(_0xaa9945,_0x4f325a)=>{_0xf1decb['model']['change'](_0x4f2825=>{const {commandName:_0xeca696,commandParams:_0x28a676}=_0x4f325a;let _0x399cb9=_0xaa9945[0x0]['end']['nodeBefore'];_0x28a676&&_0x28a676[0x0]&&!0x1===_0x28a676[0x0]['forceValue']&&(_0x399cb9=_0xaa9945[0x0]['start']['nodeAfter']);const _0x5268e3=_0x4f2825['createRangeIn'](_0x399cb9);if('$graveyard'==_0x5268e3['root']['rootName'])return;const _0x399ea3=Array['from'](_0x549294['getRanges']())['map'](_0x5e110d=>_0x4537cd['fromRange'](_0x5e110d));_0x4f2825['setSelection'](_0x5268e3),_0xf1decb['commands']['get'](_0xeca696)['refresh'](),_0x28a676['push']({'forceDefaultExecution':!0x0}),_0xf1decb['execute'](_0xeca696,..._0x28a676);const _0x13a254=_0x399ea3['filter'](_0x532712=>'$graveyard'!=_0x532712['root']['rootName']);_0x13a254['length']>0x0&&_0x4f2825['setSelection'](_0x13a254);for(const _0x25e033 of _0x399ea3)_0x25e033['detach']();});};}['_getCoordsForCells'](_0x2a01b7){const _0x2334d3=this['editor']['plugins']['get']('TableUtils');let _0x3460c8=Number['MAX_SAFE_INTEGER'],_0x51fc67=Number['MIN_SAFE_INTEGER'],_0x335706=Number['MAX_SAFE_INTEGER'],_0x42f9e7=Number['MIN_SAFE_INTEGER'];for(const _0x24f666 of _0x2a01b7){if('$graveyard'==_0x24f666['root']['rootName'])continue;const {row:_0xb1b7e6,column:_0x7feb45}=_0x2334d3['getCellLocation'](_0x24f666),_0xdf771a=_0x24f666['hasAttribute']('rowspan')?_0x24f666['getAttribute']('rowspan')-0x1:0x0,_0x5da1ae=_0x24f666['hasAttribute']('colspan')?_0x24f666['getAttribute']('colspan')-0x1:0x0;_0x3460c8=_0xb1b7e6<_0x3460c8?_0xb1b7e6:_0x3460c8,_0x51fc67=_0xb1b7e6+_0xdf771a>_0x51fc67?_0xb1b7e6+_0xdf771a:_0x51fc67,_0x335706=_0x7feb45<_0x335706?_0x7feb45:_0x335706,_0x42f9e7=_0x7feb45+_0x5da1ae>_0x42f9e7?_0x7feb45+_0x5da1ae:_0x42f9e7;}return{'minRow':_0x3460c8,'maxRow':_0x51fc67,'minColumn':_0x335706,'maxColumn':_0x42f9e7};}['_setupColumnsRowsFixing'](){const _0x3a1ac5=this['editor'],_0x3379d2=_0x3a1ac5['plugins']['get']('TrackChangesEditing'),_0xeaf71f=_0x3a1ac5['plugins']['get']('TableUtils');_0x3a1ac5['model']['document']['on']('change:data',()=>{const _0x4bc97f=Array['from'](_0x3a1ac5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3437a1,data:_0x5bac2a}of _0x4bc97f){const {group:_0x4bf568,id:_0x12c495,subType:_0x4009a2}=_0x3379d2['_splitMarkerName'](_0x3437a1);if('suggestion'!=_0x4bf568)continue;if(null!=_0x5bac2a['oldRange'])continue;const _0x40b4e1=_0x3379d2['getSuggestion'](_0x12c495);this['_tablePostFixingSubtypes']['includes'](_0x4009a2)&&this['_tableSuggestions']['add'](_0x40b4e1);}},{'priority':'low'});const _0x5f449a=(_0x8be253,_0x4bd9e7)=>{let _0x2ff132=!0x1;const _0x6c0364=_0x4bd9e7['createRangeOn'](_0x8be253),_0x5a0a44=_0x8be253['findAncestor']('table'),_0x5132dc=_0xeaf71f['getCellLocation'](_0x8be253);for(const _0x32133b of this['_tableSuggestions']){const _0x5159a3=_0x32133b['subType'],_0x4ae05d=_0x5159a3['startsWith']('tablePaste'),_0xa0d064=_0x5159a3['substr'](_0x4ae05d?0xa:0x5),_0x29a3ab=_0xa0d064['toLowerCase'](),_0x179a5c=_0x29a3ab['substr'](0x0,0x3)+'span',_0x218ba9='min'+_0xa0d064,_0x35319b='max'+_0xa0d064;if(!_0x32133b['isInContent'])continue;if(_0x5a0a44!=_0x32133b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x32133b['isIntersectingWithRange'](_0x6c0364))continue;const _0x4bfe83=_0x8be253['hasAttribute'](_0x179a5c)?_0x8be253['getAttribute'](_0x179a5c)-0x1:0x0,_0x23356e=this['_getSuggestionCoords'](_0x32133b),_0x43ec4a=_0x23356e[_0x218ba9],_0x3cf8ed=_0x23356e[_0x35319b];_0x43ec4a<=_0x5132dc[_0x29a3ab]&&_0x5132dc[_0x29a3ab]+_0x4bfe83<=_0x3cf8ed&&(_0x32133b['addRange'](_0x6c0364),_0x2ff132=!0x0);}return _0x2ff132;};_0x3a1ac5['model']['document']['registerPostFixer'](_0x31c3cd=>{let _0x17a90a=!0x1;for(const _0x22e188 of _0x3a1ac5['model']['document']['differ']['getChanges']())if('insert'==_0x22e188['type']){if('tableRow'==_0x22e188['name']){for(const _0x534d39 of _0x22e188['position']['nodeAfter']['getChildren']())_0x17a90a=_0x17a90a||_0x5f449a(_0x534d39,_0x31c3cd);}else'tableCell'==_0x22e188['name']&&(_0x17a90a=_0x17a90a||_0x5f449a(_0x22e188['position']['nodeAfter'],_0x31c3cd));}return _0x17a90a;});}['_getSuggestionCoords'](_0x3de4c7){return this['_getCoordsForCells'](_0x3de4c7['getRanges']()['map'](_0x273657=>_0x273657['start']['nodeAfter']));}}function be(_0x5a3d41){return Array['from'](new Set(_0x5a3d41)['values']());}class vt extends _0x3c336f{static get['requires'](){return[It];}['afterInit'](){const _0x5f181b=this['editor'],_0x2cee9f=_0x5f181b['model']['document']['selection'],_0x2c6539=_0x5f181b['locale'];if(!_0x5f181b['plugins']['has']('TableEditing'))return;const _0x38c955=_0x5f181b['plugins']['get']('TrackChangesEditing'),_0x5725e8=_0x5f181b['plugins']['get']('TableUtils'),_0xeb3eaf=_0x5f181b['plugins']['get'](It);_0xeb3eaf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x38c955['enableCommand']('mergeTableCells',()=>{const _0x1dc527=_0x5725e8['getSelectionAffectedTableCells'](_0x5f181b['model']['document']['selection']);_0x5f181b['model']['change'](()=>{_0x38c955['markMultiRangeBlockFormat'](_0x1dc527,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5f181b['commands']['get']('mergeTableCells')['on']('execute',(_0x5727fe,_0x3a1067)=>{_0x5f181b['commands']['get']('trackChanges')['value']&&(_0x3a1067['length']>0x0&&_0x3a1067[_0x3a1067['length']-0x1]&&_0x3a1067[_0x3a1067['length']-0x1]['forceDefaultExecution']||_0x38c955['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5727fe['stop']());},{'priority':'highest'});for(const _0x1e4906 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x39612f=_0x5f181b['commands']['get'](_0x1e4906);_0x38c955['enableCommand'](_0x1e4906,()=>{const _0x39bda7=_0x5f181b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x420db3=>_0x420db3['is']('element','tableCell')),_0x2ecc32=_0x39612f['value'];_0x5f181b['model']['change'](()=>{_0x38c955['markMultiRangeBlockFormat']([_0x39bda7,_0x2ecc32],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x22ac77 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x283e38=_0x5f181b['commands']['get'](_0x22ac77);_0x38c955['enableCommand'](_0x22ac77,()=>{const _0xbf3f5a=_0x5725e8['getSelectionAffectedTableCells'](_0x5f181b['model']['document']['selection'])[0x0],_0xca5dad=_0xbf3f5a['findAncestor']('table'),{column:_0x5bb9b5,row:_0x29acdb}=_0x5725e8['getCellLocation'](_0xbf3f5a);let _0x5228c6=[];if('horizontally'==_0x283e38['direction']){const _0xc8b6ca=_0x5725e8['createTableWalker'](_0xca5dad,{'startRow':_0x29acdb,'endRow':_0x29acdb,'includeAllSlots':!0x0});_0x5228c6=Array['from'](_0xc8b6ca)['map'](_0x3ffc40=>_0x3ffc40['cell']);}else{const _0x169b7a=_0x5725e8['createTableWalker'](_0xca5dad,{'column':_0x5bb9b5,'includeAllSlots':!0x0});_0x5228c6=Array['from'](_0x169b7a)['map'](_0x4c3e8d=>_0x4c3e8d['cell']);}_0x5f181b['model']['change'](_0x41b151=>{_0x38c955['markBlockFormat'](_0x41b151['createRangeOn'](_0xbf3f5a),{'commandName':_0x22ac77,'commandParams':[]},_0x5228c6,_0x22ac77);});});}_0x38c955['descriptionFactory']['registerDescriptionCallback'](_0xd5f6c6=>{if('formatBlock'!=_0xd5f6c6['type']&&'formatInline'!=_0xd5f6c6['type'])return;const {data:_0x4ffd8a}=_0xd5f6c6;return _0x4ffd8a&&'mergeTableCells'==_0x4ffd8a['commandName']?{'type':'format','content':o(_0x2c6539,'*Merge\x20cells*')}:void 0x0;}),_0x38c955['descriptionFactory']['registerDescriptionCallback'](_0x145037=>{if('formatBlock'!=_0x145037['type']&&'formatInline'!=_0x145037['type'])return;const {data:_0x165be8}=_0x145037;return _0x165be8?'splitTableCellVertically'==_0x165be8['commandName']?{'type':'format','content':o(_0x2c6539,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x165be8['commandName']?{'type':'format','content':o(_0x2c6539,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x42c66b=_0xeb3eaf['_acceptFormatSuggestionCallbackFactory']();for(const _0x23692c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x38c955['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x23692c,'accept',_0x42c66b);for(const _0x52890b of['splitTableCellVertically','splitTableCellHorizontally'])_0x38c955['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x52890b,'accept',_0x42c66b);_0x38c955['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x536e45=>{_0x5f181b['model']['change'](_0x125d09=>{const _0x80a8b2=Array['from'](_0x2cee9f['getRanges']())['map'](_0x54aafb=>_0x4537cd['fromRange'](_0x54aafb));_0x125d09['setSelection'](_0x536e45),_0x5f181b['commands']['get']('mergeTableCells')['refresh'](),_0x5f181b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x418815=_0x80a8b2['filter'](_0x11bec5=>'$graveyard'!=_0x11bec5['root']['rootName']);_0x418815['length']>0x0&&_0x125d09['setSelection'](_0x418815);for(const _0x192c5d of _0x80a8b2)_0x192c5d['detach']();});});for(const _0x967b0e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xa3bbd=_0x5f181b['commands']['get'](_0x967b0e);_0xa3bbd['on']('set:isEnabled',(_0x3cffe8,_0x440346,_0x4bf5e5)=>{if(_0x4bf5e5){const _0x422d62=_0x5f181b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xdb506=>_0xdb506['is']('element','tableCell'));this['_areMergableCells'](_0xa3bbd['value'],_0x422d62)||(_0x3cffe8['return']=!0x1,_0x3cffe8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5a4e8d=this['editor']['commands']['get']('mergeTableCells'),_0x25268f=this['editor']['plugins']['get']('TableUtils');if(!_0x5a4e8d['isEnabled'])return!0x1;const _0x4d6cfa=_0x25268f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x398645 of _0x4d6cfa)for(const _0x5f03cc of _0x4d6cfa)if(_0x398645!=_0x5f03cc&&!this['_areMergableCells'](_0x398645,_0x5f03cc))return!0x1;return!0x0;}['_areMergableCells'](_0x58707c,_0x3a2737){const _0x44fbe9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x540b11=this['editor']['model']['createRangeOn'](_0x58707c),_0x2db391=this['editor']['model']['createRangeOn'](_0x3a2737),_0x3750c9=new Set(),_0x1dc70a=new Set();for(const _0x2a38e9 of _0x44fbe9['getSuggestions']())if(('insertion'==_0x2a38e9['type']||'deletion'==_0x2a38e9['type']||'mergeTableCells'==_0x2a38e9['subType'])&&_0x2a38e9['isInContent']){for(const _0x489a83 of _0x2a38e9['getRanges']())_0x489a83['containsRange'](_0x540b11,!0x0)&&_0x3750c9['add'](_0x2a38e9['type']+':'+_0x2a38e9['author']['id']),_0x489a83['containsRange'](_0x2db391,!0x0)&&_0x1dc70a['add'](_0x2a38e9['type']+':'+_0x2a38e9['author']['id']);}if(_0x3750c9['size']!=_0x1dc70a['size'])return!0x1;for(const _0x4a335e of _0x3750c9)if(!_0x1dc70a['has'](_0x4a335e))return!0x1;return!0x0;}}class Ct extends _0x3c336f{static get['requires'](){return[It];}['afterInit'](){const _0x40cab1=this['editor'];if(!_0x40cab1['plugins']['has']('TableEditing'))return;const _0x7f3ab6=_0x40cab1['locale'],_0x2e8620=_0x40cab1['plugins']['get']('TrackChangesEditing');_0x2e8620['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2e8620['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2e8620['registerBlockAttribute']('headingRows'),_0x2e8620['registerBlockAttribute']('headingColumns'),_0x2e8620['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x7f3ab6,'FORMAT_HEADER_ROW')),_0x2e8620['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x7f3ab6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x21001d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37e66e=this['editor']['plugins']['get']('TableUtils'),_0x1b9ef2=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x136db0({showActiveMarker:_0x4e7cd4=!0x0,setDataAttribute:_0x134835=!0x0}={}){return(_0x42e86a,_0x167dff,_0x430ae5)=>{const {type:_0x5cf544,id:_0x379192}=_0x21001d['_splitMarkerName'](_0x167dff['markerName']),_0x28b52f=_0x21001d['getSuggestion'](_0x379192),_0x3427fc=_0x28b52f['data'];if('formatBlock'!=_0x28b52f['type']||!_0x3427fc||'setTableColumnHeader'!=_0x3427fc['commandName'])return;if(_0x167dff['item'])return void _0x42e86a['stop']();if(!_0x430ae5['consumable']['consume'](_0x167dff['markerRange'],_0x42e86a['name']))return;const _0x2a758f=_0x167dff['markerRange']['start']['nodeAfter'],_0x2a8f7d=_0x167dff['markerRange']['end']['nodeBefore'],_0x3c09ce=_0x2a758f['parent']['parent'],{column:_0x58d33e}=_0x37e66e['getCellLocation'](_0x2a758f),{column:_0x5f1667}=_0x37e66e['getCellLocation'](_0x2a8f7d);for(let _0x2df8c7=_0x58d33e;_0x2df8c7<=_0x5f1667;_0x2df8c7++){const _0x5e02bc=_0x37e66e['createTableWalker'](_0x3c09ce,{'column':_0x2df8c7,'includeAllSlots':!0x1});for(const _0x40ebed of _0x5e02bc){const _0x50b40c=_0x40ebed['cell'],_0xc73546=_0x430ae5['mapper']['toViewElement'](_0x50b40c);_0x430ae5['writer']['addClass']('ck-suggestion-marker-'+_0x5cf544,_0xc73546),_0x134835&&_0x430ae5['writer']['setAttribute']('data-suggestion',_0x379192,_0xc73546),_0x430ae5['mapper']['bindElementToMarker'](_0xc73546,_0x167dff['markerName']),_0x4e7cd4&&(_0x21001d['activeMarkers']['includes'](_0x167dff['markerName'])?_0x430ae5['writer']['addClass']('ck-suggestion-marker--active',_0xc73546):_0x430ae5['writer']['removeClass']('ck-suggestion-marker--active',_0xc73546));}}};}_0x21001d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1b9ef2),_0x21001d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1b9ef2),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x136db0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5ab697,_0x480924,_0x21396d)=>{_0x21396d['options']['showSuggestionHighlights']&&_0x136db0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5ab697,_0x480924,_0x21396d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x24accd,_0x1ba4a0,_0x75ed27)=>{const {type:_0x1e9cc4,id:_0x305193}=_0x21001d['_splitMarkerName'](_0x1ba4a0['markerName']),_0x1e2fb8=_0x21001d['getSuggestion'](_0x305193),_0x35d2f1=_0x1e2fb8['data'];if('formatBlock'!=_0x1e2fb8['type']||!_0x35d2f1||'setTableColumnHeader'!=_0x35d2f1['commandName'])return;const _0x6fbf96=_0x75ed27['mapper']['markerNameToElements'](_0x1ba4a0['markerName']);if(_0x6fbf96){for(const _0x4f65c8 of _0x6fbf96)_0x75ed27['writer']['removeClass']('ck-suggestion-marker-'+_0x1e9cc4,_0x4f65c8),_0x75ed27['writer']['removeClass']('ck-suggestion-marker--active',_0x4f65c8),_0x75ed27['writer']['removeAttribute']('data-suggestion',_0x4f65c8),_0x75ed27['mapper']['unbindElementFromMarkerName'](_0x4f65c8,_0x1ba4a0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ac67a=this['editor'],_0x530f94=_0x1ac67a['locale'];function _0x5579c6(_0x5ecfc9){return{'type':'format','content':o(_0x530f94,'*Format:*\x20%0',_0x5ecfc9)};}_0x1ac67a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c8bea=>{if('formatBlock'!=_0x3c8bea['type'])return;const {data:_0x543248}=_0x3c8bea;if(_0x543248){if('setTableRowHeader'==_0x543248['commandName']){const _0x442e81=_0x543248['commandParams'][0x0]['forceValue'];return _0x5579c6(o(_0x530f94,_0x442e81?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x543248['commandName']){const _0x1785ab=_0x543248['commandParams'][0x0]['forceValue'];return _0x5579c6(o(_0x530f94,_0x1785ab?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x5b16b6=>[_0x5b16b6,null]));class _t extends _0x3c336f{static get['requires'](){return[It];}['afterInit'](){const _0x244cd1=this['editor'];if(!_0x244cd1['plugins']['has']('TableClipboard'))return;const _0x34f7fc=_0x244cd1['plugins']['get']('TrackChangesEditing'),_0x6a746=_0x244cd1['plugins']['get']('TableUtils'),_0xfa320f=_0x244cd1['plugins']['get'](It),_0x44f0a0=_0x244cd1['plugins']['get']('TableClipboard');_0xfa320f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x244cd1['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x244cd1['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x54c990=null;_0x244cd1['model']['on']('insertContent',(_0x21f7b1,_0x349731)=>{const [_0x3f0e7e,_0x143c21]=_0x349731,_0x27361f=_0x349731[_0x349731['length']-0x1];_0x27361f&&_0x27361f['forceDefaultExecution']||_0x34f7fc['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x570320,_0x1ef52f,_0x198f43,_0x79e6c4,_0xad8dc){if(_0x1ef52f&&!_0x1ef52f['is']('documentSelection'))return!0x1;const _0x4a9a67=_0xad8dc['getTableIfOnlyTableInContent'](_0x570320,_0x198f43);if(!_0x4a9a67||!Re(_0x4a9a67,void 0x0,_0x79e6c4))return!0x1;const _0x2676c0=_0x79e6c4['getSelectionAffectedTableCells'](_0x198f43['document']['selection']);if(!_0x2676c0['length'])return!0x1;const _0x40e012=_0x2676c0[0x0]['findAncestor']('table'),_0x146fba=_0x79e6c4['getRowIndexes'](_0x2676c0),_0xfa2bc5=_0x79e6c4['getColumnIndexes'](_0x2676c0),_0x1b6515={'startRow':_0x146fba['first'],'endRow':_0x146fba['last'],'startColumn':_0xfa2bc5['first'],'endColumn':_0xfa2bc5['last']};return 0x1==_0x2676c0['length']&&(_0x1b6515['endRow']+=_0x79e6c4['getRows'](_0x4a9a67)-0x1,_0x1b6515['endColumn']+=_0x79e6c4['getColumns'](_0x4a9a67)-0x1),Re(_0x40e012,_0x1b6515,_0x79e6c4);}(_0x3f0e7e,_0x143c21,_0x244cd1['model'],_0x6a746,_0x44f0a0)&&(_0x21f7b1['stop'](),_0x54c990={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x244cd1['model']['change'](()=>{_0x244cd1['model']['insertContent'](_0x349731[0x0],_0x349731[0x1],_0x349731[0x2],{'forceDefaultExecution':!0x0});const _0x26d474=_0x36c984(),{rowInsertionRanges:_0x5005ef,columnInsertionRanges:_0x549a35,insertionRanges:_0x245dd3,deletionRanges:_0x5bb481,cells:_0x1561dd}=_0x54c990;_0x5005ef['length']&&_0x34f7fc['markMultiRangeInsertion'](_0x5005ef,'tablePasteRow',{'tablePasteChainId':_0x26d474}),_0x549a35['length']&&_0x34f7fc['markMultiRangeInsertion'](_0x549a35,'tablePasteColumn',{'tablePasteChainId':_0x26d474}),_0x245dd3['length']&&(_0x34f7fc['markMultiRangeInsertion'](_0x245dd3,'tablePaste',{'tablePasteChainId':_0x26d474,'skipNestingCheck':!0x0}),_0x245dd3['forEach'](_0xa02109=>_0xa02109['detach']?.())),_0x5bb481['length']&&(_0x34f7fc['markMultiRangeDeletion'](_0x5bb481,'tablePaste',{'tablePasteChainId':_0x26d474,'skipNestingCheck':!0x0}),_0x5bb481['forEach'](_0x118d05=>_0x118d05['detach']?.()));const _0x166de1=_0x34f7fc['markMultiRangeBlockFormat'](_0x1561dd['map'](({element:_0x46fe6c})=>_0x46fe6c),{'formatGroupId':_0x36c984()},[],'tablePasteCell',{'tablePasteChainId':_0x26d474});if(_0x166de1){const _0x1a677e=_0x166de1['getMarkers'](),_0x58e5f4=[];for(const {element:_0x191988,attributes:_0x24eebc}of _0x1561dd){if(!_0x24eebc)continue;const _0x16c9fc=_0x244cd1['model']['createRangeOn'](_0x191988),_0x5fd4b=_0x1a677e['find'](_0x229cca=>_0x229cca['getRange']()['isEqual'](_0x16c9fc));_0x5fd4b&&_0x58e5f4['push']([_0x5fd4b['name'],_0x24eebc]);}_0x58e5f4['length']&&_0x166de1['setAttribute']('markerAttributes',Object['fromEntries'](_0x58e5f4));}_0x54c990=null;}));},{'priority':_0x4c6477['high']+0xa}),_0x244cd1['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x21c6c1,_0x5b2869)=>{const [_0x5865f3,_0x5aa9f3,,_0x40e29f]=_0x5b2869;if(!_0x54c990)return;_0x21c6c1['stop']();const _0x53744b=_0x5865f3['cell'],_0xdb89a0=_0x5aa9f3,_0x5e4493=ke(_0x53744b),_0xff8e5=ke(_0xdb89a0);_0x21c6c1['return']=_0x53744b;let _0x46b355=null,_0xdd52e1=null;if(_0xff8e5||_0x5e4493){if(_0x5e4493&&!_0xff8e5){_0x40e29f['remove'](_0x53744b['getChild'](0x0));for(const _0x308c40 of Array['from'](_0xdb89a0['getChildren']()))_0x40e29f['insert'](_0x308c40,_0x53744b,'end');const _0x503626=_0x54c990['rowInsertionIndexes']['includes'](_0x5865f3['row']),_0x5441b9=_0x54c990['columnInsertionIndexes']['includes'](_0x5865f3['column']);_0x503626||_0x5441b9||(_0x46b355=_0x4537cd['fromRange'](_0x40e29f['createRangeIn'](_0x53744b)));}else _0xff8e5&&!_0x5e4493&&(_0xdd52e1=_0x40e29f['createRangeIn'](_0x53744b));}else{const _0x1f705d=_0x40e29f['createElement']('tableCellSuggestion'),_0x4142b7=_0x40e29f['createElement']('tableCellSuggestion');_0x40e29f['wrap'](_0x40e29f['createRangeIn'](_0x53744b),_0x4142b7),_0x40e29f['insert'](_0x1f705d,_0x53744b,0x0);for(const _0x5d519e of Array['from'](_0xdb89a0['getChildren']()))_0x40e29f['insert'](_0x5d519e,_0x1f705d,'end');_0x46b355=_0x4537cd['fromRange'](_0x40e29f['createRangeOn'](_0x1f705d)),_0xdd52e1=_0x4537cd['fromRange'](_0x40e29f['createRangeOn'](_0x4142b7));}const _0x4645e3=Array['from'](_0xdb89a0['getAttributes']())['filter'](([_0x4a350f])=>Pe['includes'](_0x4a350f));_0x54c990['cells']['push']({'element':_0x53744b,'attributes':_0x4645e3['length']?Object['fromEntries'](_0x4645e3):null}),_0x46b355&&_0x54c990['insertionRanges']['push'](_0x46b355),_0xdd52e1&&_0x54c990['deletionRanges']['push'](_0xdd52e1);},{'priority':'high'}),_0x6a746['on']('insertColumns',(_0x5f0246,_0x4ec97c)=>{const [_0x232cdb,_0x5bc13c={}]=_0x4ec97c;if(!_0x54c990)return;const _0xe4d142=_0x5bc13c['at']||0x0,_0x220dc8=_0x5bc13c['columns']||0x1;_0x54c990['columnInsertionIndexes']=new Array(_0x220dc8)['fill'](_0xe4d142)['map']((_0x2d0ee1,_0x1dbc0a)=>_0x2d0ee1+_0x1dbc0a);for(const {cell:_0x36bbbc}of _0x6a746['createTableWalker'](_0x232cdb,{'startColumn':_0xe4d142,'endColumn':_0xe4d142+_0x220dc8-0x1}))_0x54c990['columnInsertionRanges']['push'](_0x244cd1['model']['createRangeOn'](_0x36bbbc));},{'priority':'low'}),_0x6a746['on']('insertRows',(_0x255c71,_0x4a4e52)=>{const [_0x74404f,_0x42fc7b={}]=_0x4a4e52;if(!_0x54c990)return;const _0x7a1b46=_0x42fc7b['at']||0x0,_0x28311b=_0x42fc7b['rows']||0x1;_0x54c990['rowInsertionIndexes']=new Array(_0x28311b)['fill'](_0x7a1b46)['map']((_0x165da6,_0x525e58)=>_0x165da6+_0x525e58);for(const {cell:_0x181724}of _0x6a746['createTableWalker'](_0x74404f,{'startRow':_0x7a1b46,'endRow':_0x7a1b46+_0x28311b-0x1}))_0x54c990['rowInsertionRanges']['push'](_0x244cd1['model']['createRangeOn'](_0x181724));},{'priority':'low'}),_0x34f7fc['descriptionFactory']['registerDescriptionCallback'](_0x47454e=>{if(_0x47454e['subType']&&_0x47454e['subType']['startsWith']('tablePaste'))return _0x47454e['previous']?{}:{'type':'insertion','content':o(_0x244cd1['locale'],'*Replace\x20table\x20cells*')};});const _0x1568d4=()=>!0x1;for(const _0x1e7ed4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x34f7fc['_suggestionFactory']['registerCustomCallback']('insertion',_0x1e7ed4,'join',_0x1568d4),_0x34f7fc['_suggestionFactory']['registerCustomCallback']('deletion',_0x1e7ed4,'join',_0x1568d4),_0x34f7fc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e7ed4,'join',_0x1568d4);_0x34f7fc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1568d4),_0x34f7fc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x524b2c,_0x3e2788,_0x10e1bf)=>{const _0x5f5016=_0x524b2c['map'](_0x11022e=>_0x11022e['getContainedElement']())['filter'](_0x188dcc=>_0x188dcc),_0x21180e=new Map(_0x5f5016['map'](_0x4f6af1=>[_0x4f6af1,null]));if(_0x54c990){for(const {element:_0xc550e1,attributes:_0x3e07c9}of _0x54c990['cells'])_0x3e07c9&&_0x21180e['set'](_0xc550e1,_0x3e07c9);}else{if(_0x10e1bf&&_0x10e1bf['markerAttributes'])for(const [_0x10ee93,_0xf0a689]of Object['entries'](_0x10e1bf['markerAttributes'])){const _0x5d9cf5=_0x244cd1['model']['markers']['get'](_0x10ee93),_0x51b417=_0x5d9cf5?_0x5d9cf5['getRange']()['getContainedElement']():null;_0x51b417&&_0x21180e['set'](_0x51b417,_0xf0a689);}}_0x244cd1['model']['change'](_0x75ef1c=>{for(const [_0x33b112,_0x131bc3]of _0x21180e)_0x75ef1c['setAttributes']({...we,..._0x131bc3},_0x33b112);});});const _0x44ccea=(_0x33dfdd,_0x219800)=>{_0x34f7fc['_suggestionFactory']['registerCustomCallback'](_0x33dfdd,'tablePaste',_0x219800,(_0x20e0fb,_0x32a7d3,_0x1bde7b)=>{_0x244cd1['model']['change'](_0x45dc1a=>{const _0x560cc1=[];for(const _0x28d47f of _0x20e0fb){const _0xf5d4cc=_0x28d47f['start']['nodeAfter'];_0xf5d4cc['is']('element','tableCellSuggestion')&&_0x560cc1['push'](_0xf5d4cc);}_0x34f7fc['_suggestionFactory']['getSuggestionCallback'](_0x33dfdd,null,_0x219800)(_0x20e0fb,_0x32a7d3,_0x1bde7b);for(const _0x39e5d9 of _0x560cc1)'$graveyard'!=_0x39e5d9['root']['rootName']&&_0x45dc1a['unwrap'](_0x39e5d9);});});};_0x44ccea('insertion','accept'),_0x44ccea('insertion','discard'),_0x44ccea('deletion','accept'),_0x44ccea('deletion','discard'),_0x34f7fc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x25544e=>{const _0x214b18=_0x25544e['map'](_0x3c7d9c=>_0x3c7d9c['getContainedElement']()),_0x4b6d9e=_0x214b18[0x0]['findAncestor']('table'),{minRow:_0x124c1d,maxRow:_0x20c79f}=_0xfa320f['_getCoordsForCells'](_0x214b18);_0x6a746['removeRows'](_0x4b6d9e,{'at':_0x124c1d,'rows':_0x20c79f-_0x124c1d+0x1});}),_0x34f7fc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x338ed4=>{const _0xbf149d=_0x338ed4['map'](_0x264705=>_0x264705['getContainedElement']()),_0x4d5e5f=_0xbf149d[0x0]['findAncestor']('table'),{minColumn:_0x37cf5a,maxColumn:_0x5b0947}=_0xfa320f['_getCoordsForCells'](_0xbf149d);_0x6a746['removeColumns'](_0x4d5e5f,{'at':_0x37cf5a,'columns':_0x5b0947-_0x37cf5a+0x1});});const _0x4bc489=(_0x5e416b,_0xa3084e)=>{if(!_0xa3084e['subType']||!_0xa3084e['subType']['startsWith']('tablePaste'))return;const _0x48a6c5=_0xa3084e['attributes']['tablePasteChainId'],_0x46676c=_0x34f7fc['getSuggestions']()['filter'](_0x361b18=>_0x361b18['isInContent']&&_0x361b18['attributes']&&_0x361b18['attributes']['tablePasteChainId']==_0x48a6c5);_0x46676c['length']&&_0xa3084e['getAllAdjacentSuggestions']()['length']!=_0x46676c['length']&&_0x46676c['reduce']((_0x5adda8,_0x21fa4a)=>(_0x5adda8['next']=_0x21fa4a,_0x21fa4a['previous']=_0x5adda8,_0x21fa4a));};function _0x34ec56(_0xd816fd,_0x2171da=!0x0){const {id:_0x427e37,authorId:_0x55d689}=_0x34f7fc['_splitMarkerName'](_0xd816fd['markerName']),_0x580021=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2e394e=_0x34f7fc['activeMarkers']['includes'](_0xd816fd['markerName']);return _0x2e394e&&_0x580021['push']('ck-suggestion-marker--active'),{'classes':_0x580021,'attributes':{'data-suggestion':_0x427e37,'data-author-id':_0x55d689},'priority':_0x2e394e&&_0x2171da?0xbc2:0xbb8};}_0x34f7fc['on']('suggestionLoaded',_0x4bc489,{'priority':'high'}),_0x34f7fc['on']('suggestionUnloaded',_0x4bc489,{'priority':'high'}),_0x244cd1['model']['document']['registerPostFixer'](()=>{let _0x2d524b=!0x1;const _0x3bb56c=Array['from'](_0x244cd1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9b3af3,data:_0x2f88d2}of _0x3bb56c){const {group:_0x10f57b,type:_0x482e9c,id:_0x46a240}=_0x34f7fc['_splitMarkerName'](_0x9b3af3);if('suggestion'!=_0x10f57b||'deletion'!=_0x482e9c||_0x2f88d2['oldRange'])continue;if(!_0x34f7fc['hasSuggestion'](_0x46a240))continue;const _0x184045=_0x34f7fc['getSuggestion'](_0x46a240)['getRanges'](),_0x1fb3aa=_0x244cd1['plugins']['get']('Users')['me'];for(const _0x574dcb of _0x34f7fc['getSuggestions']()){if(!_0x574dcb['isInContent']||_0x574dcb['author']!=_0x1fb3aa)continue;if('formatBlock'!=_0x574dcb['type']||'tablePasteCell'!=_0x574dcb['subType'])continue;if(_0x574dcb['getRanges']()['every'](_0x37957e=>_0x184045['some'](_0x4805fa=>_0x4805fa['containsRange'](_0x37957e,!0x0)))){for(const _0x47e50e of _0x574dcb['getAllAdjacentSuggestions']())_0x47e50e['isInContent']&&(_0x47e50e['discard'](),_0x2d524b=!0x0);}}}return _0x2d524b;}),_0x244cd1['model']['document']['registerPostFixer'](_0x595fe2=>{const _0x59f584=_0x244cd1['commands']['get']('redo');if(!_0x59f584||!_0x59f584['_createdBatches']['has'](_0x595fe2['batch']))return!0x1;let _0x15b6de=!0x1;const _0x9194e9=_0x244cd1['plugins']['get']('Users')['me'],_0x4a420c=_0x244cd1['model']['document']['differ']['getChanges'](),_0x3abf99=Array['from'](_0x244cd1['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5baba6,data:_0x5dd7b0})=>{const {group:_0x14de19,subType:_0x38d7fe,authorId:_0x177ae0}=_0x34f7fc['_splitMarkerName'](_0x5baba6);return'suggestion'==_0x14de19&&'tablePaste'==_0x38d7fe&&_0x177ae0==_0x9194e9['id']&&!_0x5dd7b0['oldRange'];});for(const _0x15de2d of _0x4a420c){if('insert'!=_0x15de2d['type']||'tableCellSuggestion'!=_0x15de2d['name']||0x1!=_0x15de2d['length'])continue;const _0x43dfaf=_0x595fe2['createRange'](_0x15de2d['position'],_0x15de2d['position']['getShiftedBy'](0x1));if(!_0x3abf99['find'](({data:_0x158721})=>_0x158721['newRange']['isEqual'](_0x43dfaf))){for(const {name:_0x5633f5,data:_0x2b4118}of _0x3abf99)if(_0x43dfaf['containsRange'](_0x2b4118['newRange'])){_0x595fe2['updateMarker'](_0x5633f5,{'range':_0x43dfaf}),_0x15b6de=!0x0;break;}}}return _0x15b6de;}),_0x244cd1['model']['document']['registerPostFixer'](_0x5a3d6d=>{let _0x2f220c=!0x1;const _0x10ae7f=_0x244cd1['plugins']['get']('Users')['me'],_0x590753=_0x34f7fc['getSuggestions']()['filter'](_0x2e87ad=>_0x2e87ad['isInContent']&&_0x2e87ad['author']==_0x10ae7f),_0x1277cf=new Set(),_0x4002ea=new Set();for(const _0x19c7a5 of _0x590753)if('tablePaste'==_0x19c7a5['subType'])for(const _0x597ca3 of _0x19c7a5['getMarkers']()){const _0x53a9b4=_0x597ca3['getRange']()['getContainedElement']();if(_0x53a9b4){if(_0x53a9b4['is']('element','tableCellSuggestion')&&ke(_0x53a9b4)){_0x19c7a5['removeMarker'](_0x597ca3['name']),_0x1277cf['add'](_0x53a9b4),_0x2f220c=!0x0;const _0x2fcccd=_0x53a9b4['nextSibling'],_0x570cf4=_0x53a9b4['previousSibling'],_0x37f6cd=_0x2fcccd&&_0x2fcccd['is']('element','tableCellSuggestion'),_0x3edbae=_0x570cf4&&_0x570cf4['is']('element','tableCellSuggestion');_0x37f6cd&&!_0x1277cf['has'](_0x2fcccd)&&_0x4002ea['add'](_0x2fcccd),_0x3edbae&&!_0x1277cf['has'](_0x570cf4)&&_0x4002ea['add'](_0x570cf4);}else _0x53a9b4['is']('element','paragraph')&&_0x53a9b4['isEmpty']&&(_0x19c7a5['removeMarker'](_0x597ca3['name']),_0x2f220c=!0x0);}}else{if('tablePasteCell'==_0x19c7a5['subType']){if(!_0x19c7a5['attributes']||!_0x19c7a5['attributes']['tablePasteChainId'])continue;const _0x5a99f7=_0x19c7a5['attributes']['markerAttributes'];if(_0x5a99f7&&Object['keys'](_0x5a99f7)['length'])continue;const _0x493347=_0x19c7a5['attributes']['tablePasteChainId'];let _0x526105=!0x0,_0x3d905a=!0x0;for(const _0x1ec888 of _0x590753)if(_0x1ec888['subType']&&_0x1ec888['subType']['startsWith']('tablePaste')){if(!_0x1ec888['attributes']['tablePasteChainId']){_0x3d905a=!0x1;break;}if(_0x1ec888['id']!=_0x19c7a5['id']&&_0x1ec888['attributes']['tablePasteChainId']==_0x493347){_0x526105=!0x1;break;}}_0x3d905a&&_0x526105&&(_0x19c7a5['removeMarkers'](),_0x2f220c=!0x0);}}for(const _0x20f807 of _0x1277cf)_0x5a3d6d['remove'](_0x20f807);for(const _0x518478 of _0x4002ea)_0x5a3d6d['unwrap'](_0x518478);return _0x2f220c;}),_0x244cd1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x9f0b6f=>_0x34ec56(_0x9f0b6f),'converterPriority':'high'}),_0x244cd1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4705ae,_0x50f9ef)=>_0x50f9ef['options']['showSuggestionHighlights']?_0x34ec56(_0x4705ae,!0x1):null,'converterPriority':'high'});const _0x2a8091=_0x244cd1['editing']['view'];this['listenTo'](_0x2a8091['document'],'clipboardOutput',(_0x5e0f1a,_0xc65277)=>{const _0x1c8e51=[];for(const _0x151cf9 of _0x2a8091['createRangeIn'](_0xc65277['content'])['getItems']())_0x151cf9['is']('element','suggestion-td')&&_0x1c8e51['push'](_0x151cf9);_0x2a8091['change'](_0x34ac4d=>{for(const _0x4cd598 of _0x1c8e51)_0x34ac4d['move'](_0x34ac4d['createRangeIn'](_0x4cd598),_0x34ac4d['createPositionBefore'](_0x4cd598)),_0x34ac4d['remove'](_0x4cd598);});});}}function ke(_0x160e67){if(_0x160e67['isEmpty'])return!0x0;const _0x64de20=_0x160e67['getChild'](0x0);return _0x64de20['is']('element','paragraph')&&_0x64de20['isEmpty'];}function Re(_0x5bc438,_0x38f712={},_0x4063eb){for(const {isAnchor:_0x1240f9,cellHeight:_0x5be6d8,cellWidth:_0x5589bc}of _0x4063eb['createTableWalker'](_0x5bc438,{'includeAllSlots':!0x0,..._0x38f712}))if(!_0x1240f9||0x1!=_0x5be6d8||0x1!=_0x5589bc)return!0x1;return!0x0;}class Nt extends _0x3c336f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x32fe91=this['editor']['plugins']['get']('TrackChangesEditing');_0x32fe91['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x32fe91['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x32fe91['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32fe91['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x32fe91['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x32fe91['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x138259,_0x284d54){const _0x50e0f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5962ef=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x31d784=_0x284d54['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x23664a=_0x5962ef['getColumnGroupElement'](_0x31d784);let _0x11ea71=_0x23664a?_0x5962ef['getTableColumnsWidths'](_0x23664a):null,_0x4ba2a0=_0x31d784['getAttribute']('tableWidth')||null;const _0x3f50cf=_0x284d54['tableWidth']||_0x4ba2a0,_0x3d1db1=_0x284d54['columnWidths']||_0x11ea71,_0x5af4d1=this['editor']['plugins']['get']('Users')['me'];for(const _0x2e3fdb of _0x50e0f2['getSuggestions']()){const _0x186f78=_0x2e3fdb['getContainedElement']();if('resizeTable'===_0x2e3fdb['subType']&&_0x186f78===_0x31d784){_0x2e3fdb['author']!==_0x5af4d1&&_0x2e3fdb['discard']();const _0x3424a8=_0x2e3fdb['data']['commandParams'];_0x4ba2a0=_0x3424a8[0x0]['tableWidth'],_0x11ea71=_0x3424a8[0x0]['columnWidths'];break;}}_0x138259({'table':_0x31d784,'tableWidth':_0x3f50cf,'columnWidths':_0x3d1db1}),_0x50e0f2['markBlockFormat'](_0x31d784,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4ba2a0,'columnWidths':_0x11ea71}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5e00c3){if('formatBlock'!=_0x5e00c3['type']&&'formatInline'!=_0x5e00c3['type'])return;const {data:_0x4addaf}=_0x5e00c3;if(_0x4addaf&&'resizeTable'===_0x4addaf['formatGroupId']){const _0x309f55='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x309f55)};}}}class Dt extends _0x3c336f{['afterInit'](){const _0x902066=this['editor'];_0x902066['plugins']['has']('Template')&&_0x902066['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3c336f{['afterInit'](){const _0x15166e=this['editor'];if(!_0x15166e['commands']['get']('insertTableOfContents'))return;_0x15166e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x21afa8=_0x15166e['plugins']['get']('TrackChangesEditing'),_0x13c399=_0x15166e['locale'];_0x21afa8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5906fe=>o(_0x13c399,'ELEMENT_TABLE_OF_CONTENTS',_0x5906fe));}}class $t extends _0x3c336f{['afterInit'](){const _0x732693=this['editor'];if(!_0x732693['plugins']['has']('Title'))return;const _0x2f9d55=_0x732693['plugins']['get']('TrackChangesEditing');_0x2f9d55['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x732693['locale'],'ELEMENT_TITLE')),_0x732693['model']['document']['registerPostFixer'](_0x30efa1=>{let _0x34eeaf=!0x1;const _0x4331c8=Array['from'](_0x732693['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f7f85,data:_0x56ec74}of _0x4331c8){const {group:_0x4d66a7}=_0x2f9d55['_splitMarkerName'](_0x4f7f85);if('suggestion'!==_0x4d66a7||!_0x56ec74['newRange'])continue;const _0x511b02=_0x56ec74['newRange'],_0x348403=_0x511b02['end']['nodeBefore'];if(!_0x348403||!_0x348403['is']('element','title-content'))continue;if(!_0x511b02['start']['isTouching'](_0x511b02['end']))continue;const _0x53a0e4=_0x732693['model']['schema']['getNearestSelectionRange'](_0x511b02['end'],'forward');if(_0x53a0e4&&_0x53a0e4['isCollapsed']){const _0x3363bb=_0x30efa1['createRange'](_0x511b02['start'],_0x53a0e4['start']);_0x3363bb['isEqual'](_0x511b02)||(_0x30efa1['updateMarker'](_0x4f7f85,{'range':_0x3363bb}),_0x34eeaf=!0x0);}_0x34eeaf||(_0x30efa1['removeMarker'](_0x4f7f85),_0x34eeaf=!0x0);}return _0x34eeaf;});}}class Bt extends _0x3c336f{['afterInit'](){const _0x3c8860=this['editor'],_0x258c6f=_0x3c8860['plugins']['get']('TrackChangesEditing');_0x3c8860['plugins']['has']('UndoEditing')&&(_0x258c6f['enableCommand']('undo'),_0x258c6f['enableCommand']('redo'));}}class xt extends _0x3c336f{static get['requires'](){return[It];}['afterInit'](){const _0x1c44bd=this['editor'];if(!_0x1c44bd['plugins']['has']('TableCaptionEditing'))return;_0x1c44bd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x3c336f{['tableProperties'];['tableCellProperties'];constructor(_0x18edf7){super(_0x18edf7),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';}['afterInit'](){const _0x5a0001=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4487d4 of this['tableProperties'])_0x5a0001['enableCommand'](_0x4487d4,(_0xee5ed,_0x1c755f)=>{const _0x7dbdd6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4487d4,[_0x7dbdd6],this['tableProperties'],'tableProperties',_0xee5ed,_0x1c755f);});_0x5a0001['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5a0001['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5a0001['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x55f991,_0x3559ff)=>this['handleDiscardAction'](this['tableProperties'],_0x55f991,_0x3559ff)),_0x5a0001['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x162eef of this['tableCellProperties'])_0x5a0001['enableCommand'](_0x162eef,(_0x2f48c2,_0x4eedd1)=>{const _0x590cb0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x162eef,_0x590cb0,this['tableCellProperties'],'tableCellProperties',_0x2f48c2,_0x4eedd1);});_0x5a0001['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5a0001['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5a0001['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4264cc,_0x57b329)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4264cc,_0x57b329)),_0x5a0001['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5a0001['descriptionFactory']['registerDescriptionCallback'](_0x344b18=>this['handleSuggestionDescription'](_0x344b18));}['_handlePropertyChange'](_0x205a59,_0x2d50bb,_0x5c1a6a,_0x495b1b,_0x274e69,_0x30abbf){const _0x410241=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x30abbf['batch'],()=>{for(const _0xc0c367 of _0x2d50bb){if(this['_getSuggestion'](_0xc0c367,_0x495b1b))_0x274e69(_0x30abbf);else{const _0x4ecb65={};for(const _0x14eea3 of _0x5c1a6a){const _0xe7d618=_0xc0c367['getAttribute'](_0x14eea3);void 0x0!==_0xe7d618&&(_0x4ecb65[_0x14eea3]=_0xe7d618);}_0x274e69(_0x30abbf),_0x410241['markBlockFormat'](_0xc0c367,{'commandParams':[_0x4ecb65]},[],_0x495b1b);}}});}['handleDiscardAction'](_0x154c8f,_0x542ff0,_0x308350){const _0x3f0b2b=_0x542ff0[0x0]['start']['nodeAfter'],_0x20524e=_0x308350['commandParams'][0x0];this['editor']['model']['change'](_0x161728=>{for(const _0x55c449 of _0x154c8f)void 0x0!==_0x20524e[_0x55c449]?_0x161728['setAttribute'](_0x55c449,_0x20524e[_0x55c449],_0x3f0b2b):_0x161728['removeAttribute'](_0x55c449,_0x3f0b2b);});}['handleSuggestionDescription'](_0x20e22e){if(_0x20e22e['data'])switch(_0x20e22e['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'](_0xca0673,_0x671351){const _0x35e62f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xf98c8d of _0x35e62f['getSuggestions']({'skipNotAttached':!0x0})){const _0x9017f5=_0xf98c8d['getContainedElement']();if(_0xf98c8d['subType']===_0x671351&&_0x9017f5===_0xca0673)return _0xf98c8d;}return null;}}const m='$elementName';class p extends _0x3c336f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x25bf2a,_0x3e1600,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x266999){function _0x2c835d(_0x126db4){return _0x126db4['map'](_0x9b14bf=>String['fromCharCode'](_0x9b14bf))['join']('');}super(_0x266999),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1d7c38,_0x174d8c,_0x18eace,_0x256642)=>{this['_model']['change'](()=>{for(const _0x1e064e of[..._0x256642,..._0x18eace])this['_model']['markers']['has'](_0x1e064e)&&_0x266999['editing']['reconvertMarker'](_0x1e064e);});}),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']=_0x266999['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(),_0x266999['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x266999['config']['get']('trackChanges.trackFormatChanges'),_0x266999['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x266999['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x266999,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2c835d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2c835d([0x34,0x30,0x34,0x38,0x32,0x30,0x33,0x30]);}['init'](){const _0x2cbf77=this['editor'],_0x356111=(_0x35b081,_0x303e9b)=>{if('attribute'!=_0x35b081)return'ck-suggestion-marker-'+_0x35b081;const _0x3be0a1=_0x303e9b['split']('|')[0x0];return this['_isBlockAttribute'](_0x3be0a1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2cbf77['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xd20e80=>{const {id:_0x349b46,authorId:_0x57b881,type:_0x4fee5a,subType:_0x82ee38}=this['_splitMarkerName'](_0xd20e80['markerName']),_0x5873ab=['ck-suggestion-marker',_0x356111(_0x4fee5a,_0x82ee38)];let _0x39d52b=0xbb8;return this['activeMarkers']['includes'](_0xd20e80['markerName'])&&(_0x5873ab['push']('ck-suggestion-marker--active'),_0x39d52b=0xbc2),'deletion'==_0x4fee5a&&(_0x39d52b+=0x5),{'classes':_0x5873ab,'attributes':{'data-suggestion':_0x349b46,'data-author-id':_0x57b881},'priority':_0x39d52b};}}),_0x2cbf77['conversion']['for']('dataDowncast')['add'](_0x1f82b8=>{_0x1f82b8['on']('addMarker:suggestion',(_0x5c9470,_0x58c6e3,_0x3a6080)=>{if(!_0x3a6080['options']['showSuggestionHighlights'])return;const _0x157b0c=_0x58c6e3['item'];if(!_0x157b0c)return;const _0x4749d9=_0x3a6080['mapper']['toViewElement'](_0x157b0c);_0x2cbf77['model']['schema']['isObject'](_0x157b0c)&&_0x4749d9&&!_0x4749d9['getCustomProperty']('widget')&&_0x4749d9['is']('containerElement')&&_0x4a5956(_0x4749d9,_0x3a6080['writer']);},{'priority':'high'});}),_0x2cbf77['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x10cf00,_0x37e1b5)=>{if(!_0x37e1b5['options']['showSuggestionHighlights'])return null;const {type:_0x1397d6,subType:_0x3df09a}=this['_splitMarkerName'](_0x10cf00['markerName']);return{'classes':['ck-suggestion-marker',_0x356111(_0x1397d6,_0x3df09a)],'priority':0xbb8};}});const _0x1f05d1=({showActiveMarkers:_0x3a76be=!0x0,isAttributeSuggestion:_0x34bba4=!0x1}={})=>(_0x2081a8,_0x3abe57,_0x132e49)=>{if(!_0x3abe57['item'])return;const {id:_0x24366e,authorId:_0x4bbb8a}=this['_splitMarkerName'](_0x3abe57['markerName']);if(_0x34bba4){const _0x37c844=this['_suggestions']['get'](_0x24366e),_0x36ebc7=this['_getAttributeKey'](_0x37c844);if(!this['_isBlockAttribute'](_0x36ebc7))return;}if(_0x3abe57['item']['is']('selection'))return void _0x132e49['consumable']['consume'](_0x3abe57['item'],_0x2081a8['name']);const _0x3481d5=_0x132e49['mapper']['toViewElement'](_0x3abe57['item']);if(_0x3abe57['item']['is']('element')&&_0x2cbf77['model']['schema']['isBlock'](_0x3abe57['item'])&&!_0x3481d5['getCustomProperty']('addHighlight')){_0x132e49['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3481d5),_0x132e49['writer']['setAttribute']('data-suggestion',_0x24366e,_0x3481d5),_0x132e49['writer']['setAttribute']('data-author-id',_0x4bbb8a,_0x3481d5),_0x132e49['mapper']['bindElementToMarker'](_0x3481d5,_0x3abe57['markerName']),_0x3a76be&&(this['activeMarkers']['includes'](_0x3abe57['markerName'])?_0x132e49['writer']['addClass']('ck-suggestion-marker--active',_0x3481d5):_0x132e49['writer']['removeClass']('ck-suggestion-marker--active',_0x3481d5));for(const _0x2704dc of _0x2cbf77['model']['createRangeIn'](_0x3abe57['item'])['getItems']())_0x132e49['consumable']['consume'](_0x2704dc,_0x2081a8['name']);_0x132e49['consumable']['consume'](_0x3abe57['item'],_0x2081a8['name']);}};_0x2cbf77['conversion']['for']('dataDowncast')['add'](_0x2903b6=>{_0x2903b6['on']('addMarker:suggestion:formatBlock',(_0x560a5b,_0x15593b,_0x3f7647)=>{_0x3f7647['options']['showSuggestionHighlights']&&_0x1f05d1({'showActiveMarkers':!0x1})(_0x560a5b,_0x15593b,_0x3f7647);},{'priority':'highest'});}),_0x2cbf77['conversion']['for']('dataDowncast')['add'](_0x32d946=>{_0x32d946['on']('addMarker:suggestion:attribute',(_0x3bcb99,_0x3e1f47,_0x375cf7)=>{_0x375cf7['options']['showSuggestionHighlights']&&_0x1f05d1({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3bcb99,_0x3e1f47,_0x375cf7);},{'priority':'highest'});}),_0x2cbf77['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x462850,_0x5cf4c)=>_0x5cf4c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x462850['substr'](0xb)}}),_0x2cbf77['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1a2054,{writer:_0x50e05f})=>{let _0x13fadd='suggestion:'+_0x1a2054['getAttribute']('suggestion-type')+':'+_0x1a2054['getAttribute']('id');return _0x1a2054['getAttribute']('marker-count')&&(_0x13fadd+=':'+_0x1a2054['getAttribute']('marker-count')),_0x50e05f['createElement']('$marker',{'data-name':_0x13fadd});}}),_0x2cbf77['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2cbf77['conversion']['for']('editingDowncast')['add'](_0x120414=>{_0x120414['on']('addMarker:suggestion:formatBlock',_0x1f05d1(),{'priority':'high'});}),_0x2cbf77['conversion']['for']('editingDowncast')['add'](_0x538ac5=>{_0x538ac5['on']('addMarker:suggestion:attribute',_0x1f05d1({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2cbf77['conversion']['for']('editingDowncast')['add'](_0x3cfc41=>{_0x3cfc41['on']('removeMarker:suggestion:formatBlock',(_0x34ee09,_0x52486b,_0x33f2c6)=>{const _0x23f7b9=_0x33f2c6['mapper']['markerNameToElements'](_0x52486b['markerName']);if(_0x23f7b9){for(const _0x219c97 of _0x23f7b9)_0x219c97['getCustomProperty']('addHighlight')||(_0x33f2c6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x219c97),_0x33f2c6['writer']['removeAttribute']('data-suggestion',_0x219c97),_0x33f2c6['writer']['removeAttribute']('data-author-id',_0x219c97),_0x33f2c6['mapper']['unbindElementFromMarkerName'](_0x219c97,_0x52486b['markerName']));}},{'priority':'high'});}),_0x2cbf77['conversion']['for']('editingDowncast')['add'](_0x4ecc85=>{_0x4ecc85['on']('removeMarker:suggestion:attribute',(_0x38353f,_0x2fa82f,_0x54f059)=>{const _0x3b144c=_0x54f059['mapper']['markerNameToElements'](_0x2fa82f['markerName']);if(!_0x3b144c)return;const {id:_0x5aa3dd}=this['_splitMarkerName'](_0x2fa82f['markerName']),_0x47944e=this['_suggestions']['get'](_0x5aa3dd),_0x1e374c=this['_getAttributeKey'](_0x47944e);if(this['_isBlockAttribute'](_0x1e374c)){for(const _0x5a2780 of _0x3b144c)_0x5a2780['getCustomProperty']('addHighlight')||(_0x54f059['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a2780),_0x54f059['writer']['removeAttribute']('data-suggestion',_0x5a2780),_0x54f059['writer']['removeAttribute']('data-author-id',_0x5a2780),_0x54f059['mapper']['unbindElementFromMarkerName'](_0x5a2780,_0x2fa82f['markerName']));}},{'priority':'high'});}),_0x2cbf77['model']['document']['registerPostFixer'](_0x32022b=>{let _0xcc9488=!0x1;const _0x36fe5e=Array['from'](_0x2cbf77['model']['document']['differ']['getChangedMarkers']()),_0x4e7767=new Set();for(const {name:_0xd424a8,data:_0x2d6c4d}of _0x36fe5e){const {group:_0x3a4098,type:_0x2c1911,subType:_0x1da9fa,id:_0x33a0b9}=this['_splitMarkerName'](_0xd424a8);if('suggestion'!==_0x3a4098)continue;const _0x3b0757=this['_suggestions']['get'](_0x33a0b9);if(null!=_0x2d6c4d['newRange']){'formatInline'==_0x2c1911&&(_0xcc9488=_0xcc9488||Ut(_0x2d6c4d['newRange'],_0xd424a8,_0x32022b,_0x2cbf77['model']['schema']));const _0xa2fdca='attribute'==_0x2c1911&&this['_isBlockAttribute'](_0x1da9fa['split']('|')[0x0]);if(_0x2d6c4d['newRange']['isCollapsed']||'$graveyard'==_0x2d6c4d['newRange']['root']['rootName']||'formatBlock'==_0x2c1911&&!Ft(_0x2d6c4d['newRange'])||_0xa2fdca&&!Ft(_0x2d6c4d['newRange'])||'deletion'==_0x2c1911&&!(!Vt(_0x2b592c=_0x2d6c4d['newRange'])&&!function(_0x3e14c8){return _0x3e14c8['start']['parent']==_0x3e14c8['end']['nodeBefore']&&_0x3e14c8['start']['isAtEnd'];}(_0x2b592c)))_0x32022b['removeMarker'](_0xd424a8),_0xcc9488=!0x0;else{if(!_0x3b0757||!_0x3b0757['isInContent'])continue;if(_0x2d6c4d['newRange']&&_0x2d6c4d['oldRange']&&_0x2d6c4d['newRange']['isEqual'](_0x2d6c4d['oldRange']))continue;_0x4e7767['add'](_0x3b0757);}}}var _0x2b592c;return _0x4e7767['size']>0x0&&(_0xcc9488=!!this['_joinWithAdjacentSuggestions'](_0x4e7767)||_0xcc9488),_0xcc9488;}),_0x2cbf77['model']['document']['registerPostFixer'](_0x2c2bb3=>{let _0x32a39d=!0x1;for(const _0x6cc953 of _0x2cbf77['model']['document']['differ']['getChanges']())if('insert'==_0x6cc953['type'])for(const _0x329195 of this['_suggestions']['values']()){if(_0x329195['isMultiRange']||!_0x329195['isInContent'])continue;const _0x2df0a4='formatBlock'==_0x329195['type'],_0x4b59b2=this['_getAttributeKey'](_0x329195),_0x329ead=_0x4b59b2&&this['_isBlockAttribute'](_0x4b59b2);if(!_0x2df0a4&&!_0x329ead)continue;const _0x4a3b21=_0x329195['getFirstRange']();if(_0x4a3b21['start']['parent']!=_0x4a3b21['end']['parent']&&!_0x4a3b21['end']['isAtEnd']){const _0x4d7060=_0x2cbf77['model']['createPositionAt'](_0x4a3b21['start']['nodeAfter'],'end'),_0x392beb=_0x2cbf77['model']['createRange'](_0x4a3b21['start'],_0x4d7060);_0x2c2bb3['updateMarker'](_0x329195['getFirstMarker'](),{'range':_0x392beb}),_0x32a39d=!0x0;}}return _0x32a39d;}),_0x2cbf77['model']['document']['registerPostFixer'](_0x1a04d4=>this['_processAttributeChanges'](_0x1a04d4)),_0x2cbf77['model']['document']['registerPostFixer'](_0x42e0a7=>!_0x42e0a7['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x42e0a7)),_0x2cbf77['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2cbf77['model']['document']['on']('change:data',(_0x36f923,_0x4bd86c)=>{if(!_0x4bd86c['isLocal']||_0x4bd86c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x28de0c=_0x2cbf77['model']['document']['differ']['getChanges']();if(0x0==_0x28de0c['length'])return;const _0x8c14d=[],_0x3f05e0=_0x28de0c['filter'](_0x41bb98=>'attribute'==_0x41bb98['type']),_0x4e3c92=_0x28de0c['filter'](_0x55281c=>'insert'==_0x55281c['type']&&'$text'!=_0x55281c['name']);for(const _0xe621a0 of _0x3f05e0)this['_isRegisteredAttribute'](_0xe621a0['attributeKey'])&&_0x8c14d['push']({'key':_0xe621a0['attributeKey'],'newValue':_0xe621a0['attributeNewValue'],'oldValue':_0xe621a0['attributeOldValue'],'range':Pt(_0xe621a0['range'],_0x2cbf77['model'])});for(const _0x25c059 of _0x4e3c92){if('rename'!=_0x25c059['action']&&'refresh'!=_0x25c059['action'])continue;const _0x2cfadb=Lt(_0x25c059['position']['nodeAfter'],_0x2cbf77['model']),_0x29c709=_0x25c059['before'];'rename'==_0x25c059['action']&&_0x8c14d['push']({'key':m,'newValue':_0x25c059['name'],'oldValue':_0x29c709['name'],'range':_0x2cfadb});for(const [_0x232fdb,_0x3e3a91]of _0x29c709['attributes']){if(!this['_isRegisteredAttribute'](_0x232fdb))continue;const _0x4c3566=_0x25c059['attributes']['get'](_0x232fdb);_0x3e3a91!==_0x4c3566&&_0x8c14d['push']({'key':_0x232fdb,'newValue':_0x4c3566,'oldValue':_0x3e3a91,'range':_0x2cfadb});}for(const [_0x22a4fe,_0x4f3c67]of _0x25c059['attributes'])this['_isRegisteredAttribute'](_0x22a4fe)&&(_0x29c709['attributes']['has'](_0x22a4fe)||_0x8c14d['push']({'key':_0x22a4fe,'newValue':_0x4f3c67,'oldValue':null,'range':_0x2cfadb}));}0x0!=_0x8c14d['length']&&_0x2cbf77['model']['enqueueChange'](_0x4bd86c,_0xfc4528=>{const _0x352eda=_0x36c984();for(const {range:_0x50efb6,key:_0x4db57c,oldValue:_0x37033d,newValue:_0x37bba7}of _0x8c14d)this['markAttributeChange'](_0x50efb6,_0x4db57c,_0x37033d,_0x37bba7,{'groupId':_0x352eda});this['_reduceExistingSuggestions'](_0xfc4528,_0x8c14d);});},{'priority':'lowest'}),_0x2cbf77['model']['markers']['on']('update:suggestion',(_0xdcdadc,_0x41c33d,_0x23d400)=>{if(null==_0x23d400){const {id:_0x266747}=this['_splitMarkerName'](_0x41c33d['name']),_0x154267=this['_suggestions']['get'](_0x266747);_0x154267&&_0x154267['addMarkerName'](_0x41c33d['name']);}}),_0x2cbf77['model']['document']['on']('change:data',()=>{const _0x151c29=Array['from'](_0x2cbf77['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4b175c=>'suggestion'===this['_splitMarkerName'](_0x4b175c['name'])['group']);if(0x0===_0x151c29['length'])return;_0x151c29['sort']((_0x355c63,_0x584dd7)=>{const _0x4bc583=_0x355c63['data']['oldRange'],_0x3153ad=_0x584dd7['data']['oldRange'];return null===_0x4bc583&&null===_0x3153ad?0x0:null===_0x4bc583&&null!==_0x3153ad?-0x1:null!==_0x4bc583&&null===_0x3153ad?0x1:_0x4bc583['start']['isBefore'](_0x3153ad['start'])?-0x1:0x1;});const _0x5b4b42=new Set(),_0x697897=new Set();for(const {name:_0x3be52f,data:_0x24de9d}of _0x151c29){const {id:_0x47a13c}=this['_splitMarkerName'](_0x3be52f);if(null===_0x24de9d['oldRange']){const _0x1f22e4=this['_handleNewSuggestionMarker'](_0x3be52f);_0x697897['add'](_0x1f22e4);}else{const _0x4d1701=this['_suggestions']['get'](_0x47a13c);null!==_0x24de9d['newRange']||_0x4d1701['isInContent']?(_0x5b4b42['add'](_0x4d1701['head']),_0x697897['add'](_0x4d1701)):this['_removeSuggestion'](_0x4d1701);}}_0x697897['size']>0x0&&this['_refreshSuggestionsChain'](_0x697897);for(const _0x4aeac3 of _0x5b4b42)this['fire']('suggestionChanged',_0x4aeac3);}),_0x2cbf77['model']['on']('applyOperation',(_0x3e6349,_0x1f5503)=>{const _0x17d1cc=_0x1f5503[0x0];if(!this['_suggestions']['size'])return;if(!_0x17d1cc['isDocumentOperation'])return;if(_0x17d1cc['batch']['isUndo']||!_0x17d1cc['batch']['isLocal'])return;let _0x17e96f,_0x45e7bc;switch(_0x17d1cc['type']){case'insert':_0x17e96f=_0x2cbf77['model']['createPositionAt'](_0x17d1cc['position']),_0x45e7bc=_0x17e96f['getShiftedBy'](_0x17d1cc['howMany']);break;case'split':_0x17e96f=_0x2cbf77['model']['createPositionAt'](_0x17d1cc['splitPosition']),_0x45e7bc=_0x2cbf77['model']['createPositionAt'](_0x17d1cc['moveTargetPosition']);break;case'move':_0x17e96f=_0x2cbf77['model']['createPositionAt'](_0x17d1cc['targetPosition']),_0x45e7bc=_0x17e96f['getShiftedBy'](_0x17d1cc['howMany']);break;default:return;}const _0x414510=_0x2cbf77['model']['createRange'](_0x17e96f,_0x45e7bc);_0x2cbf77['model']['change'](()=>{for(const {suggestion:_0x1d7223,meta:_0xcb9cc6}of this['_findSuggestions'](_0x414510)){if(_0x1d7223['isMultiRange'])continue;if('formatInline'==_0x1d7223['type'])continue;const _0x2215f3=this['_getAttributeKey'](_0x1d7223);if(_0x2215f3&&this['_isBlockAttribute'](_0x2215f3)&&'split'!=_0x17d1cc['type'])continue;const _0x1f9570=_0x1d7223['data']&&_0x1d7223['data']['multipleBlocks'];('formatBlock'!=_0x1d7223['type']||'split'==_0x17d1cc['type']&&!_0x1f9570)&&(_0xcb9cc6['containsRangeInObject']||'insertion'==_0x1d7223['type']&&_0xcb9cc6['isOwn']||_0x1d7223['getFirstRange']()['containsRange'](_0x414510)&&this['_breakSuggestionMarker'](_0x1d7223,_0x17e96f,_0x45e7bc));}});},{'priority':'lowest'}),_0x2cbf77['model']['on']('deleteContent',(_0x533f5e,_0x25ea38)=>{const _0x316dce=_0x25ea38[0x0],_0x22285a=_0x25ea38[0x1];if(_0x22285a&&_0x22285a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x316dce['isCollapsed'])return;const _0x2506a3=_0x2cbf77['model']['schema'],{start:_0x3aea4d,end:_0x464f6d}=_0x316dce['getFirstRange'](),_0x5e4be1=_0x3aea4d['nodeAfter']&&_0x2506a3['isLimit'](_0x3aea4d['nodeAfter'])?null:_0x2506a3['getNearestSelectionRange'](_0x3aea4d,'forward'),_0x3f346a=_0x464f6d['nodeBefore']&&_0x2506a3['isLimit'](_0x464f6d['nodeBefore'])?null:_0x2506a3['getNearestSelectionRange'](_0x464f6d,'backward'),_0x2f6594=_0x2cbf77['model']['createRange'](_0x5e4be1?_0x5e4be1['start']:_0x3aea4d,_0x3f346a?_0x3f346a['end']:_0x464f6d);_0x2cbf77['model']['change'](_0x3915ab=>{this['markDeletion'](_0x2f6594);const _0x2fb691=_0x2cbf77['model']['schema']['getNearestSelectionRange'](_0x2f6594['start']);_0x316dce['is']('documentSelection')?_0x3915ab['setSelection'](_0x2fb691):_0x316dce['setTo'](_0x2fb691);}),_0x533f5e['stop']();},{'priority':_0x4c6477['normal']+0xa}),_0x2cbf77['model']['on']('insertContent',(_0x16b4a2,_0x3a48a1)=>{const _0x2932c3=_0x3a48a1[_0x3a48a1['length']-0x1];_0x2932c3&&_0x2932c3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2cbf77['model']['change'](()=>{let _0x470b41=_0x2cbf77['model']['insertContent'](_0x3a48a1[0x0],_0x3a48a1[0x1],_0x3a48a1[0x2],{'forceDefaultExecution':!0x0});if(!_0x470b41)return;_0x16b4a2['return']=_0x470b41['clone']();const _0x401220=_0x470b41['end']['nodeBefore'],_0x3d7e6f=_0x2cbf77['model']['schema'];_0x401220&&_0x3d7e6f['isBlock'](_0x401220)&&!_0x3d7e6f['isObject'](_0x401220)&&(_0x470b41=_0x2cbf77['model']['createRange'](_0x470b41['start'],_0x2cbf77['model']['createPositionAt'](_0x401220,'end'))),this['markInsertion'](_0x470b41);}),_0x16b4a2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2aa423=new x(_0x2cbf77,this['_suggestions']);_0x2cbf77['commands']['add']('acceptSuggestion',_0x2aa423),this['enableCommand']('acceptSuggestion');const _0x2ef105=new R(_0x2cbf77,this['_suggestions']);_0x2cbf77['commands']['add']('discardSuggestion',_0x2ef105),this['enableCommand']('discardSuggestion'),_0x2cbf77['commands']['add']('acceptAllSuggestions',new E(_0x2cbf77,_0x2aa423,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2cbf77['commands']['add']('discardAllSuggestions',new E(_0x2cbf77,_0x2ef105,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2cbf77['commands']['add']('acceptSelectedSuggestions',new O(_0x2cbf77,_0x2aa423,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2cbf77['commands']['add']('discardSelectedSuggestions',new O(_0x2cbf77,_0x2ef105,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2d6937=_0x2cbf77['plugins']['get']('CommentsRepository');this['listenTo'](_0x2d6937,'addComment',(_0x36c07e,{threadId:_0x519a91})=>{const _0x93349e=this['_suggestions']['get'](_0x519a91);_0x93349e&&_0x93349e['commentThread']&&0x1===_0x93349e['commentThread']['length']&&this['_updateSuggestionData'](_0x519a91,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2d6937,'removeComment',(_0x1eef6d,{threadId:_0x4566fd})=>{const _0x40989f=this['_suggestions']['get'](_0x4566fd);_0x40989f&&_0x40989f['commentThread']&&!_0x40989f['commentThread']['length']&&this['_updateSuggestionData'](_0x4566fd,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xb374ba){if(this['_adapter'])throw new _0x45f891('track-changes-adapter-already-set',this);this['_adapter']=_0xb374ba;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x259a39=!0x1,toJSON:_0x3d7fc8=!0x1}={}){const _0x1f5084=[];for(const _0x2c6f7a of this['_suggestions']['values']())_0x259a39&&!_0x2c6f7a['isInContent']||_0x1f5084['push'](_0x2c6f7a);return _0x3d7fc8?_0x1f5084['map'](_0x31234e=>_0x31234e['toJSON']()):_0x1f5084;}['getSuggestion'](_0x3ec2b0){const _0x12b3d9=this['_suggestions']['get'](_0x3ec2b0);if(!_0x12b3d9)throw new _0x45f891('track-changes-suggestion-not-found',this);return _0x12b3d9;}['hasSuggestion'](_0x26c77a){return this['_suggestions']['has'](_0x26c77a);}['addSuggestionData'](_0x2147eb){const {authorId:_0x291b1f,id:_0x3f4774,attributes:_0x1a9616}=_0x2147eb,[_0x56f472,_0xced28f]=_0x2147eb['type']['split'](':'),_0xe8711=this['_suggestions']['get'](_0x3f4774)||this['_createSuggestion'](_0x56f472,_0xced28f,_0x3f4774,_0x291b1f,_0x1a9616);if(this['_addThreadToSuggestion'](_0xe8711),this['_checkSuggestionCorrectness'](_0xe8711,_0x56f472,_0xced28f||null,_0x291b1f),_0xe8711['createdAt']=_0x2147eb['createdAt'],_0xe8711['_isDataLoaded']=!0x0,_0x1a9616&&_0x1a9616['@external']){const _0x46b51a=_0x1a9616['@external'],_0x492b9b=this['_getExternalAuthor'](_0x46b51a['authorName']);_0xe8711['authoredAt']=_0x46b51a['createdAt'],_0xe8711['author']=_0x492b9b,_0xe8711['isExternal']=!0x0;}else _0xe8711['authoredAt']=_0x2147eb['createdAt'];switch(_0x2147eb['data']&&(_0xe8711['data']=_0x2147eb['data']),_0x2147eb['attributes']&&(_0xe8711['attributes']=_0x2147eb['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xe8711['_saved']=!0x0),this['_suggestionState']['get'](_0xe8711)){case'notReady':this['_suggestionState']['set'](_0xe8711,'dataReady');break;case'markerReady':_0xe8711['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xe8711])),this['_refreshSuggestionsChain'](new Set([_0xe8711])),this['_suggestionState']['set'](_0xe8711,'ready'),this['fire']('suggestionLoaded',_0xe8711)):this['_suggestionState']['set'](_0xe8711,'removed');}return _0xe8711;}['acceptSuggestion'](_0xe97b67){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x27b2c8 of _0xe97b67['getAllAdjacentSuggestions']())_0x27b2c8['accept']();});});}['discardSuggestion'](_0x3f0c5f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xfd5e3e of _0x3f0c5f['getAllAdjacentSuggestions']())_0xfd5e3e['discard']();});});}['enableCommand'](_0x5a6317,_0x10cf64){const _0x1f1c24=this['editor']['commands']['get'](_0x5a6317);if(!_0x1f1c24)throw new _0x45f891('track-changes-command-not-found',this,{'commandName':_0x5a6317});if(this['_enabledCommands']['has'](_0x1f1c24))throw new _0x45f891('track-changes-enable-command-twice',this,{'commandName':_0x5a6317});this['_enabledCommands']['add'](_0x1f1c24),_0x10cf64&&_0x1f1c24['on']('execute',(_0x2dc2a6,_0x174e7b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x174e7b['length']>0x0&&_0x174e7b[_0x174e7b['length']-0x1]&&_0x174e7b[_0x174e7b['length']-0x1]['forceDefaultExecution']?_0x174e7b['pop']():(_0x2dc2a6['return']=_0x10cf64((..._0x33bf9c)=>_0x1f1c24['execute'](..._0x33bf9c,{'forceDefaultExecution':!0x0}),..._0x174e7b),_0x2dc2a6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xb9639b){let _0x5934b6,_0x34c95e;const _0x508e81=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5934b6=_0xb9639b();}catch(_0x41a3db){_0x34c95e=_0x41a3db;}return _0x508e81||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x34c95e&&_0x45f891['rethrowUnexpectedError'](_0x34c95e,this),_0x5934b6;}['markInsertion'](_0x1daf66,_0x46df1b=null,_0x3bc069={}){if(_0x1daf66['isCollapsed'])return null;const _0x4add63=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3359e6,meta:_0x95b343}of this['_findSuggestions'](_0x1daf66,'insertion'))if(_0x95b343['isOwn']){if(!_0x95b343['isNextTo']){if(_0x95b343['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x3359e6,_0x3bc069))continue;return _0x3359e6;}if(qt(_0x3359e6,_0x3bc069))return _0x3359e6;this['_breakSuggestionMarker'](_0x3359e6,_0x1daf66['start'],_0x1daf66['end']);break;}if(_0x46df1b==_0x3359e6['subType']&&qt(_0x3359e6,_0x3bc069)){const _0xf65958=_0x3359e6['getFirstRange']();return _0xf65958['start']['isEqual'](_0x1daf66['end'])?this['_setSuggestionRange'](_0x3359e6,this['_model']['createRange'](_0x1daf66['start'],_0xf65958['end'])):this['_setSuggestionRange'](_0x3359e6,this['_model']['createRange'](_0xf65958['start'],_0x1daf66['end'])),_0x3359e6;}}const _0x23826c=_0x36c984(),_0x249f6a=_0x4add63['id'],_0x1ed02b=_0x46df1b?'insertion:'+_0x46df1b:'insertion',_0x3fb8bc=this['_setSuggestionData']({'id':_0x23826c,'type':_0x1ed02b,'createdAt':new Date(),'authorId':_0x249f6a,'attributes':_0x3bc069});return this['_addSuggestionMarker'](_0x1ed02b,_0x23826c,_0x249f6a,_0x1daf66),_0x3fb8bc;}['markMultiRangeInsertion'](_0x5da2c5,_0x414918='multi',_0x3e6b23={}){const _0x32b006=this['editor']['plugins']['get']('Users')['me'],_0x4ea645=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x414918,'join');for(const _0x3b0f1e of this['getSuggestions']())if(_0x3b0f1e['author']['id']==_0x32b006['id']&&'insertion'==_0x3b0f1e['type']&&_0x3b0f1e['subType']==_0x414918&&qt(_0x3b0f1e,_0x3e6b23)&&(_0x4ea645(_0x3b0f1e['getRanges'](),_0x5da2c5)||_0x4ea645(_0x5da2c5,_0x3b0f1e['getRanges']()))){for(const _0xa71704 of _0x5da2c5)_0x3b0f1e['addRange'](_0xa71704);return _0x3b0f1e;}for(const {suggestion:_0x58ced9,meta:_0x12d05e}of this['_findSuggestions'](_0x5da2c5,'insertion')){if(!_0x12d05e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x12d05e['containsRangeInObject'])continue;if(!qt(_0x58ced9,_0x3e6b23))continue;let _0x2c82dc=!0x0;for(const _0x37038e of _0x58ced9['getRanges']())for(const _0x45b873 of _0x5da2c5)if(!_0x37038e['containsRange'](_0x45b873)){_0x2c82dc=!0x1;break;}if(_0x2c82dc)return _0x58ced9;}const _0x63a916=_0x36c984(),_0x4b3ed8=_0x32b006['id'],_0x542d42='insertion:'+_0x414918,_0x18db7a=this['_setSuggestionData']({'id':_0x63a916,'type':_0x542d42,'createdAt':new Date(),'authorId':_0x4b3ed8,'attributes':_0x3e6b23});for(const _0x1127e5 of _0x5da2c5)this['_addSuggestionMarker'](_0x542d42,_0x63a916,_0x4b3ed8,_0x1127e5,u['getMultiRangeId']());return _0x18db7a;}['markInlineFormat'](_0x20be64,_0x390ed5,_0x2bbdbe=null,_0x35804e={}){if(_0x2bbdbe=_0x2bbdbe||Gt(_0x390ed5),_0x20be64['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2eb937=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2bbdbe,'accept');return this['forceDefaultExecution'](()=>_0x2eb937([_0x20be64],_0x390ed5,_0x35804e)),null;}const _0x5dd233=this['editor']['plugins']['get']('Users')['me'],_0x194053=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d4aa4,meta:_0x34dcd5}of this['_findSuggestions'](_0x20be64,'insertion'))_0x34dcd5['isOwn']&&!_0x34dcd5['isInsideObject']&&_0x194053['push'](..._0x3d4aa4['getRanges']());}const _0x59801d=function(_0x1e3d29,_0x174c48){const _0x19f555=[];for(const _0x5c3b74 of _0x174c48){const _0x49e82c=_0x1e3d29['getIntersection'](_0x5c3b74);_0x49e82c&&_0x19f555['push'](_0x49e82c);}return _0x19f555;}(_0x20be64,_0x194053),_0x12da7e=function(_0x5b8729,_0x5500f4){const _0x38daeb=[_0x5b8729];for(const _0x4a2692 of _0x5500f4){let _0x25e876=0x0;for(;_0x25e876<_0x38daeb['length'];){const _0x5878fd=_0x38daeb[_0x25e876]['getDifference'](_0x4a2692);_0x38daeb['splice'](_0x25e876,0x1,..._0x5878fd),_0x25e876+=_0x5878fd['length'];}}return _0x38daeb;}(_0x20be64,_0x194053);_0x59801d['length']&&this['_model']['change'](()=>{for(const _0x53d9a3 of _0x59801d){const _0x321249=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2bbdbe,'accept');this['forceDefaultExecution'](()=>_0x321249([_0x53d9a3],_0x390ed5,_0x35804e));}});for(const _0x2412f of _0x12da7e){let _0x1620c1=null,_0x2d87bf=_0x2412f['start'],_0x49616d=_0x2412f['end'];for(const {suggestion:_0xe459ca,meta:_0x424363}of this['_findSuggestions'](_0x2412f,'formatInline')){if(!_0x424363['isOwn'])continue;if(_0xe459ca['subType']!=_0x2bbdbe)continue;if(!qt(_0xe459ca,_0x35804e))continue;const _0x5cb674=_0xe459ca['getFirstRange']();if(_0x5cb674['containsRange'](_0x2412f,!0x0))return null;_0x2d87bf=_0x2d87bf['isBefore'](_0x5cb674['start'])?_0x2d87bf:_0x5cb674['start'],_0x49616d=_0x49616d['isAfter'](_0x5cb674['end'])?_0x49616d:_0x5cb674['end'],_0x1620c1?_0x5cb674['start']['isBefore'](_0x1620c1['getFirstRange']()['start'])?(_0x1620c1['removeMarkers'](),_0x1620c1=_0xe459ca):_0xe459ca['removeMarkers']():_0x1620c1=_0xe459ca;}const _0xee744c=this['_model']['createRange'](_0x2d87bf,_0x49616d);if(_0x1620c1)this['_setSuggestionRange'](_0x1620c1,_0xee744c);else{const _0x18d317=_0x36c984(),_0x34885d=_0x5dd233['id'];this['_setSuggestionData']({'id':_0x18d317,'type':'formatInline:'+_0x2bbdbe,'data':_0x390ed5,'createdAt':new Date(),'authorId':_0x34885d,'attributes':_0x35804e}),this['_addSuggestionMarker']('formatInline:'+_0x2bbdbe,_0x18d317,_0x34885d,_0xee744c);}}return null;}['markBlockFormat'](_0x322b58,_0x2fbad1,_0x18869e=[],_0x4de1d3=null,_0x58ae7e={}){_0x2fbad1['formatGroupId']||(_0x2fbad1['formatGroupId']=_0x2fbad1['commandName']),_0x2fbad1['multipleBlocks']=_0x322b58['is']('range'),_0x4de1d3=_0x4de1d3||Gt(_0x2fbad1);const _0x1de29e=_0x18869e['map'](_0x463370=>Lt(_0x463370,this['_model'])),_0x4f3ff8=_0x322b58['is']('range')?_0x322b58:Lt(_0x322b58,this['_model']);if('never'===this['_trackFormatChanges']){const _0xb26cc3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4de1d3,'accept');return this['forceDefaultExecution'](()=>_0xb26cc3([_0x4f3ff8],_0x2fbad1,_0x58ae7e)),null;}_0x1de29e['push'](_0x4f3ff8);let _0x81f71e=!0x0;for(const _0x31ed10 of _0x1de29e)if(!this['_rangeIsInLocalUserInsertion'](_0x31ed10)){_0x81f71e=!0x1;break;}if(_0x81f71e&&'always'!==this['_trackFormatChanges']){const _0x3c6abf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4de1d3,'accept');return this['forceDefaultExecution'](()=>_0x3c6abf([_0x4f3ff8],_0x2fbad1,_0x58ae7e)),null;}let _0x547882=null,_0x43a455=_0x4f3ff8['start'],_0x16ff0e=_0x4f3ff8['end'];for(const {suggestion:_0x592967,meta:_0x284604}of this['_findSuggestions'](_0x4f3ff8,'formatBlock')){if(!_0x284604['isOwn'])continue;if(_0x284604['isNextTo']||_0x284604['containsRangeInObject']||_0x284604['isInsideObject'])continue;if(_0x592967['data']['formatGroupId']!=_0x2fbad1['formatGroupId'])continue;if(!qt(_0x592967,_0x58ae7e))continue;const _0x13ffc9=_0x592967['getFirstRange']();if(_0x592967['subType']==_0x4de1d3){if(_0x13ffc9['containsRange'](_0x4f3ff8,!0x0))return null;_0x43a455=_0x43a455['isBefore'](_0x13ffc9['start'])?_0x43a455:_0x13ffc9['start'],_0x16ff0e=_0x16ff0e['isAfter'](_0x13ffc9['end'])?_0x16ff0e:_0x13ffc9['end'],_0x547882?_0x13ffc9['start']['isBefore'](_0x547882['getFirstRange']()['start'])?(_0x547882['removeMarkers'](),_0x547882=_0x592967):_0x592967['removeMarkers']():_0x547882=_0x592967;}else{const _0xbbeef1=_0x4f3ff8['getIntersection'](_0x13ffc9);this['_cutOutSuggestionMarker'](_0x592967,_0xbbeef1);}}const _0x455093=this['editor']['plugins']['get']('Users')['me'],_0x911518=_0x36c984(),_0x34f176=_0x455093['id'];if(_0x547882)return this['_setSuggestionRange'](_0x547882,this['_model']['createRange'](_0x43a455,_0x16ff0e)),_0x547882;{const _0x25eec6=this['_setSuggestionData']({'id':_0x911518,'type':'formatBlock:'+_0x4de1d3,'data':_0x2fbad1,'createdAt':new Date(),'authorId':_0x34f176,'attributes':_0x58ae7e});return this['_addSuggestionMarker']('formatBlock:'+_0x4de1d3,_0x911518,_0x34f176,this['_model']['createRange'](_0x43a455,_0x16ff0e)),_0x25eec6;}}['markMultiRangeBlockFormat'](_0x57f177,_0x2a35a8,_0x567d12=[],_0x2eddb2=null,_0x4d7939={}){_0x2a35a8['formatGroupId']||(_0x2a35a8['formatGroupId']=_0x2a35a8['commandName']);const _0xbe5064=_0x57f177[0x0];_0x2a35a8['multipleBlocks']=_0xbe5064['is']('range'),_0x2eddb2=_0x2eddb2||Gt(_0x2a35a8);const _0x4f06a3=_0x567d12['map'](_0xa74bbc=>Lt(_0xa74bbc,this['_model'])),_0xa8385=_0xbe5064['is']('range')?_0x57f177:_0x57f177['map'](_0x1b175a=>Lt(_0x1b175a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2c0b21=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2eddb2,'accept');return this['forceDefaultExecution'](()=>_0x2c0b21(_0xa8385,_0x2a35a8,_0x4d7939)),null;}_0x4f06a3['push'](..._0xa8385);let _0x3ede2c=!0x0;for(const _0x4c53f7 of _0x4f06a3)if(!this['_rangeIsInLocalUserInsertion'](_0x4c53f7)){_0x3ede2c=!0x1;break;}if(_0x3ede2c&&'always'!==this['_trackFormatChanges']){const _0x45a627=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2eddb2,'accept');return this['forceDefaultExecution'](()=>_0x45a627(_0xa8385,_0x2a35a8,_0x4d7939)),null;}const _0x22461f=this['editor']['plugins']['get']('Users')['me'];for(const _0x264aef of this['getSuggestions']()){if(_0x264aef['author']['id']!=_0x22461f['id'])continue;if('formatBlock'!=_0x264aef['type']||_0x264aef['data']['formatGroupId']!=_0x2a35a8['formatGroupId'])continue;if(!qt(_0x264aef,_0x4d7939))continue;const _0x34a4a2=_0x264aef['subType']==_0x2eddb2;for(let _0x56f820=0x0;_0x56f820<_0xa8385['length'];_0x56f820++){const _0x4dbec5=_0xa8385[_0x56f820];for(const _0x39d812 of _0x264aef['getMarkers']()){const _0x275346=_0x39d812['getRange']();if(_0x4dbec5['isEqual'](_0x275346)){_0x34a4a2?(_0xa8385['splice'](_0x56f820,0x1),_0x56f820--):_0x264aef['removeMarker'](_0x39d812['name']);break;}}}}if(0x0==_0xa8385['length'])return null;const _0x454a4b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2eddb2,'join');for(const _0x3bdf3e of this['getSuggestions']())if(_0x3bdf3e['author']['id']==_0x22461f['id']&&'formatBlock'==_0x3bdf3e['type']&&_0x3bdf3e['data']['formatGroupId']==_0x2a35a8['formatGroupId']&&_0x3bdf3e['subType']==_0x2eddb2&&qt(_0x3bdf3e,_0x4d7939)&&(_0x454a4b(_0x3bdf3e['getRanges'](),_0xa8385)||_0x454a4b(_0xa8385,_0x3bdf3e['getRanges']()))){for(const _0xc2e96b of _0xa8385)_0x3bdf3e['addRange'](_0xc2e96b);return _0x3bdf3e;}const _0x41bba9=_0x36c984(),_0x489dfd=_0x22461f['id'],_0xedcc92='formatBlock:'+_0x2eddb2,_0x4a4243=this['_setSuggestionData']({'id':_0x41bba9,'type':_0xedcc92,'data':_0x2a35a8,'createdAt':new Date(),'authorId':_0x489dfd,'attributes':_0x4d7939});for(const _0x416455 of _0xa8385)this['_addSuggestionMarker'](_0xedcc92,_0x41bba9,_0x489dfd,_0x416455,u['getMultiRangeId']());return _0x4a4243;}['markDeletion'](_0x33c07b,_0x4b368c=null,_0x51ec45={}){if(_0x33c07b['isCollapsed'])return null;const _0x3b4149=this['editor']['plugins']['get']('Users')['me'],_0x4ddec0=new _0x4537cd(_0x33c07b['start'],_0x33c07b['end']);for(const {suggestion:_0x384adf,meta:_0x4ba34c}of this['_findSuggestions'](_0x4ddec0,'insertion'))if(_0x4ba34c['isOwn']&&!_0x4ba34c['isNextTo']){if(_0x384adf['isMultiRange']){const _0xeef056=_0x384adf['getRanges']()['filter'](_0x56235f=>'$graveyard'!=_0x56235f['root']['rootName']);_0xeef056['every'](_0x24a2f5=>_0x4ddec0['containsRange'](_0x24a2f5,!0x0))&&_0x384adf['discard']();if(_0xeef056['some'](_0x5cf738=>_0x5cf738['containsRange'](_0x4ddec0,!0x0))){const _0x47c137=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b368c,'accept');return this['forceDefaultExecution'](()=>_0x47c137([_0x4ddec0],null,_0x51ec45)),null;}}else{const _0xae193f=_0x4ddec0['getIntersection'](_0x384adf['getFirstRange']());null!==_0xae193f&&_0x384adf['_onDiscard']([_0xae193f],null,_0x51ec45);}}if(_0x4ddec0['detach'](),_0x4ddec0['isCollapsed']||'$graveyard'==_0x4ddec0['root']['rootName'])return null;let _0x214c4a=null,_0x39c020=_0x4ddec0['start'],_0x247923=_0x4ddec0['end'];const _0x3251be=this['_findSuggestions'](_0x4ddec0,'deletion');for(const {suggestion:_0x189716,meta:_0x3de1a5}of _0x3251be){const _0x5ccd4e=this['_model']['createRange'](_0x39c020,_0x247923);if(_0x3de1a5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3de1a5['containsRangeInObject']&&!_0x3de1a5['isInsideObject'])){if(_0x189716['isMultiRange']){if(!qt(_0x189716,_0x51ec45))continue;let _0x1bcdda=!0x0;for(const _0x46db10 of _0x189716['getRanges']()){if(_0x46db10['containsRange'](_0x5ccd4e,!0x0))return _0x189716;_0x5ccd4e['containsRange'](_0x46db10)||(_0x1bcdda=!0x1);}_0x1bcdda&&_0x189716['discard']();}else{const _0x5426e1=_0x189716['getFirstRange']();if(_0x5426e1['containsRange'](_0x5ccd4e,!0x0))return _0x189716;if(!qt(_0x189716,_0x51ec45)){_0x5ccd4e['containsRange'](_0x5426e1)?_0x189716['removeMarkers']():_0x5426e1['containsPosition'](_0x39c020)?_0x39c020=_0x5426e1['end']:_0x5426e1['containsPosition'](_0x247923)&&(_0x247923=_0x5426e1['start']);continue;}_0x39c020=_0x39c020['isBefore'](_0x5426e1['start'])?_0x39c020:_0x5426e1['start'],_0x247923=_0x247923['isAfter'](_0x5426e1['end'])?_0x247923:_0x5426e1['end'],_0x51ec45=Object['assign']({},_0x189716['attributes']),_0x214c4a?_0x5426e1['start']['isBefore'](_0x214c4a['getFirstRange']()['start'])?(_0x214c4a['removeMarkers'](),_0x214c4a=_0x189716):_0x189716['removeMarkers']():_0x214c4a=_0x189716;}}}if(_0x214c4a)return this['_setSuggestionRange'](_0x214c4a,this['_model']['createRange'](_0x39c020,_0x247923)),_0x214c4a;{const _0x3c06b6=_0x36c984(),_0x16be85=this['_model']['createRange'](_0x39c020,_0x247923),_0x382543=_0x3b4149['id'],_0x4e8b59=_0x4b368c?'deletion:'+_0x4b368c:'deletion',_0x498ee7=this['_setSuggestionData']({'id':_0x3c06b6,'type':_0x4e8b59,'createdAt':new Date(),'authorId':_0x382543,'attributes':_0x51ec45});return this['_addSuggestionMarker'](_0x4e8b59,_0x3c06b6,_0x382543,_0x16be85),_0x498ee7;}}['markMultiRangeDeletion'](_0x2d041b,_0x55ef5f='multi',_0x46f5dc={}){const _0x1fb77e=this['editor']['plugins']['get']('Users')['me'],_0x480b2e=_0x2d041b['map'](_0x1db80c=>new _0x4537cd(_0x1db80c['start'],_0x1db80c['end'])),_0x291541=new Set();for(const {suggestion:_0xd65378,meta:_0x889734}of this['_findSuggestions'](_0x480b2e,'insertion'))_0x889734['isOwn']&&!_0x889734['isNextTo']&&_0x291541['add'](_0xd65378);for(const _0x57f0e3 of _0x291541)if(_0x57f0e3['isMultiRange']){const _0x3c0934=_0x57f0e3['getRanges']();(!_0x57f0e3['attributes']||!_0x57f0e3['attributes']['skipNestingCheck'])&&(_0x3c0934['every'](_0x42a852=>_0x480b2e['some'](_0x4696d7=>_0x4696d7['containsRange'](_0x42a852,!0x0)))&&_0x57f0e3['discard']());if(_0x480b2e['every'](_0x7eb688=>_0x3c0934['some'](_0x46ec53=>_0x46ec53['containsRange'](_0x7eb688,!0x0)))){const _0x26f24d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x55ef5f,'accept');return this['forceDefaultExecution'](()=>_0x26f24d(_0x2d041b,null,_0x46f5dc)),null;}}else{const _0x46f7ac=_0x57f0e3['getFirstRange']();_0x480b2e['some'](_0xa79399=>_0xa79399['containsRange'](_0x46f7ac,!0x0))&&_0x57f0e3['discard']();if(_0x480b2e['every'](_0x575069=>_0x46f7ac['containsRange'](_0x575069,!0x0))){const _0x4f2d65=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x55ef5f,'accept');return this['forceDefaultExecution'](()=>_0x4f2d65(_0x480b2e,null,_0x46f5dc)),null;}}const _0x40ea40=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x55ef5f,'join');let _0x5b08cb=null;for(const _0x514151 of this['getSuggestions']())if(_0x514151['author']['id']==_0x1fb77e['id']&&_0x514151['isInContent']&&'deletion'==_0x514151['type']&&_0x514151['subType']==_0x55ef5f&&qt(_0x514151,_0x46f5dc)&&(_0x40ea40(_0x514151['getRanges'](),_0x480b2e)||_0x40ea40(_0x480b2e,_0x514151['getRanges']()))){if(_0x5b08cb){if(_0x514151['commentThread']&&_0x514151['commentThread']['length'])continue;for(const _0x308ba7 of _0x514151['getRanges']())_0x5b08cb['isIntersectingWithRange'](_0x308ba7)||_0x5b08cb['addRange'](_0x308ba7);_0x514151['removeMarkers']();}else{_0x5b08cb=_0x514151;for(const _0x5c27ea of _0x480b2e)_0x514151['isIntersectingWithRange'](_0x5c27ea)||_0x514151['addRange'](_0x5c27ea);}}if(_0x5b08cb)return _0x5b08cb;_0x291541['clear']();for(const {suggestion:_0x46ea84,meta:_0x371361}of this['_findSuggestions'](_0x480b2e,'deletion'))_0x371361['isOwn']&&(this['_mergeNestedSuggestions']||!_0x371361['containsRangeInObject']&&!_0x371361['isInsideObject'])&&qt(_0x46ea84,_0x46f5dc)&&_0x291541['add'](_0x46ea84);for(const _0x264e11 of _0x291541){const _0x263f6c=_0x264e11['getRanges']();if(!_0x46f5dc||!_0x46f5dc['skipNestingCheck']){if(_0x480b2e['every'](_0x11c4aa=>_0x263f6c['some'](_0x22ae34=>_0x22ae34['containsRange'](_0x11c4aa,!0x0))))return _0x264e11;}(!_0x264e11['attributes']||!_0x264e11['attributes']['skipNestingCheck'])&&(_0x263f6c['every'](_0x4da1a8=>_0x480b2e['some'](_0xa1232=>_0xa1232['containsRange'](_0x4da1a8,!0x0)))&&_0x264e11['discard']());}const _0x5e6401=_0x36c984(),_0x9ecb00=_0x1fb77e['id'],_0x3a0fb8='deletion:'+_0x55ef5f,_0xfe535c=this['_setSuggestionData']({'id':_0x5e6401,'type':_0x3a0fb8,'createdAt':new Date(),'authorId':_0x9ecb00,'attributes':_0x46f5dc});for(const _0x464172 of _0x480b2e)_0x464172['detach'](),_0x464172['isCollapsed']||'$graveyard'==_0x464172['root']['rootName']||this['_addSuggestionMarker'](_0x3a0fb8,_0x5e6401,_0x9ecb00,_0x464172,u['getMultiRangeId']());return _0xfe535c;}['markAttributeChange'](_0x21ab79,_0x3396d0,_0x16d904,_0x393639,_0x2107dd){if(_0x21ab79['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x394cf3=this['editor']['plugins']['get']('Users')['me']['id'],_0x3f4e2e=Array['from'](this['_suggestions']['values']())['filter'](_0x48851a=>'attribute'==_0x48851a['type']&&_0x48851a['data']['key']==_0x3396d0&&_0x48851a['isIntersectingWithRange'](_0x21ab79));if('default'===this['_trackFormatChanges']){const _0xe53f9=this['_findSuggestions'](_0x21ab79,'insertion')['filter'](({meta:_0x43a90d})=>_0x43a90d['isOwn']&&!_0x43a90d['isInsideObject']&&!_0x43a90d['isNextTo'])['map'](({suggestion:_0x588faf})=>_0x588faf);_0x3f4e2e['unshift'](..._0xe53f9);}const _0x161d16=new Map([[_0x21ab79,_0x16d904]]);for(const _0x3c156e of _0x3f4e2e){const _0x18f91e='attribute'==_0x3c156e['type']?_0x3c156e['data']['oldValue']:void 0x0,_0x3d02da=_0x3c156e['getFirstRange'](),_0x34e94b=Array['from'](_0x161d16['keys']())['find'](_0x1c1a50=>_0x1c1a50['isIntersecting'](_0x3d02da));if(!_0x34e94b)continue;const _0x364685=_0x34e94b['getDifference'](_0x3d02da);this['_isBlockAttribute'](_0x3396d0)&&'insertion'==_0x3c156e['type']&&0x0!=_0x364685['length']||(_0x161d16['delete'](_0x34e94b),_0x364685['forEach'](_0x52705a=>{_0x161d16['set'](_0x52705a,_0x16d904);}),'insertion'!=_0x3c156e['type']&&_0x18f91e!=_0x393639&&_0x161d16['set'](_0x34e94b['getIntersection'](_0x3d02da),_0x18f91e));}const _0x3bd083=[];for(const [_0x2c48e8,_0x5b3344]of _0x161d16){const _0x4e574c=_0x36c984(),_0x1661d2={'key':_0x3396d0,'oldValue':_0x5b3344,'newValue':_0x393639};_0x3396d0['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':_0x3396d0});const _0x7c3ee4=('attribute:'+(_0x3396d0+'|'+Gt({'newValue':_0x393639})))['substring'](0x0,0x3c),_0x5e4773=this['_setSuggestionData']({'id':_0x4e574c,'type':_0x7c3ee4,'data':_0x1661d2,'createdAt':new Date(),'authorId':_0x394cf3,'attributes':_0x2107dd});_0x3bd083['push'](_0x5e4773),this['_addSuggestionMarker'](_0x7c3ee4,_0x4e574c,_0x394cf3,_0x2c48e8);}return _0x3bd083;}['enableDefaultAttributesIntegration'](_0x45ee11){this['enableCommand'](_0x45ee11,(_0x50aaf1,..._0x3c11a6)=>{this['_recordAttributeChanges'](()=>{_0x50aaf1(..._0x3c11a6);});});}['registerBlockAttribute'](_0x572646){this['_blockAttributeKeys']['add'](_0x572646);}['registerInlineAttribute'](_0x44cb0f){this['_inlineAttributeKeys']['add'](_0x44cb0f);}['_getAttributeKey'](_0x4be3d5){return'attribute'==_0x4be3d5['type']?_0x4be3d5['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x16394e,_0x2c69c2){const _0x468b0b=_0x16394e['getFirstMarker']();this['_model']['change'](_0xb62e5b=>{_0xb62e5b['updateMarker'](_0x468b0b,{'range':_0x2c69c2});});}['_addThreadToSuggestion'](_0x376a5a){const _0x29ce81=_0x376a5a['id'],_0xc3066f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x29ce81)||this['_commentsRepository']['addCommentThread']({'channelId':_0xc3066f,'threadId':_0x29ce81,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1c84a9=this['_commentsRepository']['getCommentThread'](_0x29ce81);_0x1c84a9['unbind']('isRemovable'),_0x1c84a9['isRemovable']=!0x1,_0x376a5a['commentThread']=_0x1c84a9;}['_checkSuggestionCorrectness'](_0x4eb776,_0xa708e7,_0x232b74,_0x11013c){if(_0x4eb776['type']!=_0xa708e7||_0x4eb776['subType']!=_0x232b74||_0x4eb776['creator']['id']!=_0x11013c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x45f891('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x242549,_0x434e7e){const _0x4cf62b=_0x242549['getFirstRange']();if(_0x434e7e['isEqual'](_0x4cf62b))_0x242549['removeMarkers']();else{if(_0x4cf62b['containsRange'](_0x434e7e)){const _0x4297b2=this['_model']['createPositionAt'](_0x434e7e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x242549,this['_model']['createRange'](_0x4cf62b['start'],_0x4297b2));const _0x4df74d=_0x36c984(),_0x105ae3=_0x242549['creator']['id'],_0x9cce0e=_0x242549['type']+':'+_0x242549['subType'];this['_setSuggestionData']({'id':_0x4df74d,'type':_0x9cce0e,'createdAt':new Date(),'authorId':_0x105ae3,'data':_0x242549['data'],'attributes':_0x242549['attributes']});const _0x1ec25e=this['_model']['createPositionAt'](_0x434e7e['end']['parent'],'after'),_0xb7e201=this['_model']['createRange'](_0x1ec25e,_0x4cf62b['end']);this['_addSuggestionMarker'](_0x9cce0e,_0x4df74d,_0x105ae3,_0xb7e201);}else{if(_0x4cf62b['containsPosition'](_0x434e7e['start'])){const _0x283bdf=this['_model']['createPositionAt'](_0x434e7e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x242549,this['_model']['createRange'](_0x4cf62b['start'],_0x283bdf));}else{const _0x1b059a=this['_model']['createPositionAt'](_0x434e7e['end']['parent'],'after');this['_setSuggestionRange'](_0x242549,this['_model']['createRange'](_0x1b059a,_0x4cf62b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3a1f68){for(const {suggestion:_0x25681e,meta:_0x529daa}of this['_findSuggestions'](_0x3a1f68,'insertion')){if(!_0x529daa['isOwn'])continue;const _0x393bf3=_0x25681e['getRanges']();for(const _0x196669 of _0x393bf3)if(!_0x3a1f68['getDifference'](_0x196669)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3ed3a8){const _0x511cc3=this['editor']['plugins']['get']('Users')['getUser'](_0x3ed3a8);if(!_0x511cc3)throw new _0x45f891('track-changes-user-not-found',this);return _0x511cc3;}['_getExternalAuthor'](_0x5703fb){const _0x155e50=this['editor']['plugins']['get']('Users'),_0x46c3c8=_0x228f25('external:'+_0x5703fb),_0x498ddf=_0x155e50['getUser'](_0x46c3c8);return _0x498ddf||_0x155e50['addUser']({'id':_0x46c3c8,'name':_0x5703fb});}['_createSuggestion'](_0x234491,_0x43e4e9,_0x33a046,_0x468c85,_0xf0b784){const _0x3772ca=this['_getAuthorFromId'](_0x468c85),_0x3348b9=this['_suggestionFactory']['buildSuggestion'](_0x234491,_0x43e4e9,_0x33a046,_0x3772ca,_0xf0b784,_0x40cb6b=>{this['_updateSuggestionData'](_0x33a046,{'attributes':_0x40cb6b});const _0x3b8d66=this['getSuggestion'](_0x33a046);this['_joinWithAdjacentSuggestions'](new Set([_0x3b8d66])),this['_refreshSuggestionsChain'](new Set([_0x3b8d66]));});return this['listenTo'](_0x3348b9,'accept',()=>{this['_updateSuggestionData'](_0x33a046,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3348b9,'discard',()=>{this['_updateSuggestionData'](_0x33a046,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x33a046,_0x3348b9),this['_suggestionState']['set'](_0x3348b9,'notReady'),_0x3348b9;}['_splitMarkerName'](_0x59edf2){const _0x4ce7c9=_0x59edf2['split'](':');return{'group':_0x4ce7c9[0x0],'type':_0x4ce7c9[0x1],'subType':_0x4ce7c9['length']>=0x5?_0x4ce7c9[0x2]:null,'id':_0x4ce7c9['length']<0x5?_0x4ce7c9[0x2]:_0x4ce7c9[0x3],'authorId':_0x4ce7c9['length']<0x5?_0x4ce7c9[0x3]:_0x4ce7c9[0x4],'markerCount':0x6==_0x4ce7c9['length']?_0x4ce7c9[0x5]:null};}['_breakSuggestionMarker'](_0x3c41c8,_0x26f39d,_0x116094){const _0x524cd6=_0x3c41c8['getFirstRange'](),_0x3ed107=_0x524cd6['start'],_0x268407=_0x524cd6['end'];this['_setSuggestionRange'](_0x3c41c8,this['_model']['createRange'](_0x3ed107,_0x26f39d));const _0x1b4e90=_0x36c984(),_0x150b57=_0x3c41c8['creator']['id'],_0x53e366=_0x3c41c8['type']+(_0x3c41c8['subType']?':'+_0x3c41c8['subType']:'');this['_setSuggestionData']({'id':_0x1b4e90,'type':_0x53e366,'createdAt':new Date(),'authorId':_0x150b57,'originalSuggestionId':_0x3c41c8['id'],'attributes':_0x3c41c8['attributes'],'data':_0x3c41c8['data']});const _0x26a699=this['_getAttributeKey'](_0x3c41c8);('formatBlock'==_0x3c41c8['type']||_0x26a699&&this['_isBlockAttribute'](_0x26a699))&&(_0x116094=this['_model']['createPositionBefore'](_0x116094['parent'])),this['_addSuggestionMarker'](_0x53e366,_0x1b4e90,_0x150b57,this['_model']['createRange'](_0x116094,_0x268407));}['_findSuggestions'](_0x52f63b,_0x20cbe3=null){const _0x2431f2=[],_0x18d5a8=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x52f63b)||(_0x52f63b=[_0x52f63b]);for(const _0x33872a of this['getSuggestions']()){if(!_0x33872a['isInContent'])continue;if(_0x20cbe3&&_0x33872a['type']!=_0x20cbe3)continue;let _0x570fb8=!0x1;for(const _0x179ca0 of _0x33872a['getRanges']()){for(const _0x3fae90 of _0x52f63b){const _0x4bffb4=_0x3fae90['start']['isEqual'](_0x179ca0['end'])||_0x3fae90['end']['isEqual'](_0x179ca0['start']);if(_0x4bffb4||_0x3fae90['getIntersection'](_0x179ca0)){const _0x3fd0b3=_0x3fae90['containsRange'](_0x179ca0)&&Ot(this['_model']['schema'],_0x179ca0['start'],_0x3fae90),_0x9bf6c1=_0x179ca0['containsRange'](_0x3fae90)&&Ot(this['_model']['schema'],_0x3fae90['start'],_0x179ca0);_0x2431f2['push']({'suggestion':_0x33872a,'meta':{'isOwn':_0x18d5a8==_0x33872a['author'],'isNextTo':_0x4bffb4,'isInsideObject':_0x3fd0b3,'containsRangeInObject':_0x9bf6c1}}),_0x570fb8=!0x0;break;}}if(_0x570fb8)break;}}return _0x2431f2;}['_addSuggestionMarker'](_0x4982b6,_0x5c3430,_0x4eba74,_0x397960,_0x291526){this['_model']['change'](_0x4e8033=>{let _0x4ae859='suggestion:'+_0x4982b6+':'+_0x5c3430+':'+_0x4eba74;_0x291526&&(_0x4ae859=_0x4ae859+':'+_0x291526),_0x4e8033['addMarker'](_0x4ae859,{'range':_0x397960,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5b2b3d){const _0x3dec48=_0x5b2b3d['previous'],_0x13bafd=_0x5b2b3d['next'];_0x5b2b3d['previous']=null,_0x5b2b3d['next']=null,null!=_0x3dec48&&_0x3dec48['next']==_0x5b2b3d&&(_0x3dec48['next']=_0x13bafd),null!=_0x13bafd&&_0x13bafd['previous']==_0x5b2b3d&&(_0x13bafd['previous']=_0x3dec48),'ready'==this['_suggestionState']['get'](_0x5b2b3d)&&(this['_suggestionState']['set'](_0x5b2b3d,'removed'),this['fire']('suggestionUnloaded',_0x5b2b3d,_0x3dec48,_0x13bafd));}['_setSuggestionData'](_0x4b0ac7){const _0x2c8d61=_0x4b0ac7['id'],_0x4790c5=this['addSuggestionData'](_0x4b0ac7);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xdca858=this['editor']['plugins']['get']('PendingActions'),_0x258aa4=_0x4790c5['hasComments'],_0x273b53=_0x4790c5['subType']?_0x4790c5['type']+':'+_0x4790c5['subType']:_0x4790c5['type'],_0x32c967=this['editor']['locale'],_0x1b9601=_0xdca858['add'](o(_0x32c967,'PENDING_ACTION_SUGGESTION')),_0x529749={'id':_0x2c8d61,'type':_0x273b53,'hasComments':_0x258aa4,'data':_0x4b0ac7['data']||null,'originalSuggestionId':_0x4b0ac7['originalSuggestionId']||null,'attributes':_0x4790c5['attributes']};this['_adapter']['addSuggestion'](_0x529749)['then'](_0x48c49e=>{_0x4790c5['_saved']=!0x0,_0xdca858['remove'](_0x1b9601),_0x48c49e&&_0x48c49e['createdAt']&&(this['_suggestions']['get'](_0x2c8d61)['createdAt']=_0x48c49e['createdAt']);})['catch'](_0x2b1da5=>{throw _0x1ee2c6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4790c5['discard']();}),_0x4790c5['stopListening'](),this['_suggestions']['delete'](_0x4790c5['id']),this['_suggestionState']['delete'](_0x4790c5),_0x2b1da5;});}return _0x4790c5;}['_isBlockAttribute'](_0x5ed87c){return this['_blockAttributeKeys']['has'](_0x5ed87c);}['_updateSuggestionData'](_0x2dce2d,_0x372e02){const _0x411164=this['editor']['plugins']['get']('PendingActions'),_0x2df1e8=this['getSuggestion'](_0x2dce2d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2df1e8['_saved']){const _0x2867a3=_0x411164['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2dce2d,_0x372e02)['then'](()=>{_0x411164['remove'](_0x2867a3);});}else _0x2df1e8['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2dce2d,_0x372e02);});}}['_getSuggestionData'](_0x4bca6a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x45f891('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4bca6a);}['_handleNewSuggestionMarker'](_0x47d41e){const {id:_0xc54c7f,type:_0x115fde,subType:_0x43d7aa,authorId:_0x60552b}=this['_splitMarkerName'](_0x47d41e),_0xb4cab2=this['_suggestions']['get'](_0xc54c7f)||this['_createSuggestion'](_0x115fde,_0x43d7aa,_0xc54c7f,_0x60552b,{});switch(this['_checkSuggestionCorrectness'](_0xb4cab2,_0x115fde,_0x43d7aa,_0x60552b),this['_suggestionState']['get'](_0xb4cab2)){case'notReady':this['_getSuggestionData'](_0xc54c7f)['then'](_0xd09dcb=>{let _0x4101d5=Promise['resolve']();_0xd09dcb['hasComments']&&(_0x4101d5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc54c7f})),_0x4101d5['then'](()=>{this['addSuggestionData'](_0xd09dcb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xb4cab2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc54c7f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xb4cab2,'ready'),this['fire']('suggestionLoaded',_0xb4cab2);break;case'ready':this['fire']('suggestionChanged',_0xb4cab2);}return _0xb4cab2['addMarkerName'](_0x47d41e),_0xb4cab2;}['_refreshSuggestionsChain'](_0x5edf6e){const _0x1c479e=Array['from'](_0x5edf6e),_0x5967db=_0x1c479e['filter'](_0x4a1950=>'attribute'==_0x4a1950['type']);this['_refreshAttributeSuggestionsChain'](_0x5967db);const _0x5f23f0=_0x1c479e['filter'](_0x3a894b=>!_0x3a894b['isMultiRange']&&'attribute'!=_0x3a894b['type']),_0xeaadea=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3821df=>!_0x3821df['isMultiRange']&&'attribute'!=_0x3821df['type']),_0x24bda4=_0xeaadea['filter'](_0x55a7d9=>!_0x5edf6e['has'](_0x55a7d9)),_0x5cf88c=new Map(_0xeaadea['map'](_0x960c1d=>[_0x960c1d,this['_suggestionFactory']['getSuggestionCallback'](_0x960c1d['type'],_0x960c1d['subType'],'chain')])),_0xe76a6e=new Map(_0xeaadea['map'](_0x1c15a0=>[_0x1c15a0,_0x1c15a0['getFirstRange']()])),_0x4bcacf=new Set(),_0x2de866=new Set();for(let _0xcabe37=0x0;_0xcabe37<_0x5f23f0['length'];_0xcabe37++)_0x4ab04e(_0x5f23f0[_0xcabe37],_0x5f23f0,_0xcabe37+0x1);for(let _0x327122=0x0;_0x327122<_0x5f23f0['length'];_0x327122++)_0x4ab04e(_0x5f23f0[_0x327122],_0x24bda4,0x0);const _0x39830d=new Set();for(let _0x325e11=0x0;_0x325e11<_0x5f23f0['length'];_0x325e11++){const _0x4da199=_0x5f23f0[_0x325e11];!_0x2de866['has'](_0x4da199)&&_0x4da199['previous']&&(_0x39830d['add'](_0x4da199['previous']),_0x4da199['previous']['next']===_0x4da199&&(_0x4da199['previous']['next']=null),_0x4da199['previous']=null),!_0x4bcacf['has'](_0x4da199)&&_0x4da199['next']&&(_0x39830d['add'](_0x4da199['next']),_0x4da199['next']['previous']===_0x4da199&&(_0x4da199['next']['previous']=null),_0x4da199['next']=null);}function _0x4ab04e(_0x515910,_0x5e0406,_0x4ff7c1){for(let _0x576263=_0x4ff7c1;_0x576263<_0x5e0406['length'];_0x576263++){const _0x2d79a0=_0x4abfe4(_0x515910,_0x5e0406[_0x576263]);_0x2d79a0&&(_0x2d79a0[0x0]['next']=_0x2d79a0[0x1],_0x2d79a0[0x1]['previous']=_0x2d79a0[0x0],_0x4bcacf['add'](_0x2d79a0[0x0]),_0x2de866['add'](_0x2d79a0[0x1]));}}function _0x4abfe4(_0x235b79,_0x4ead09){if(_0x235b79['author']['id']!==_0x4ead09['author']['id'])return null;const _0x40caa4=_0x5cf88c['get'](_0x235b79)(_0x235b79,_0x4ead09,_0xe76a6e['get'](_0x235b79),_0xe76a6e['get'](_0x4ead09));if(!_0x40caa4)return null;return _0x5cf88c['get'](_0x4ead09)(_0x235b79,_0x4ead09,_0xe76a6e['get'](_0x235b79),_0xe76a6e['get'](_0x4ead09))?_0x40caa4[0x1]['commentThread']&&_0x40caa4[0x1]['commentThread']['length']?null:_0x40caa4:null;}_0x39830d['size']&&this['_refreshSuggestionsChain'](_0x39830d);}['_refreshAttributeSuggestionsChain'](_0x3e011f){if(0x0==_0x3e011f['length'])return;const _0x495d45=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e1006=>'attribute'==_0x2e1006['type']&&_0x2e1006['_isDataLoaded']),_0x27913c=[],_0x5bd757=new Map();for(const _0x57ccf9 of _0x495d45){const _0x3bb998=_0x228f25(_0x57ccf9['attributes']);_0x5bd757['has'](_0x3bb998)||(_0x5bd757['set'](_0x3bb998,_0x27913c['length']),_0x27913c['push']([]));const _0x2e1e6f=_0x5bd757['get'](_0x3bb998);_0x27913c[_0x2e1e6f]['push'](_0x57ccf9);}!(function(){_0x27913c['sort']((_0x146064,_0x4f4c37)=>{const _0x28e981=_0x146064[0x0]['createdAt'],_0x1a9e9a=_0x4f4c37[0x0]['createdAt'];return _0x28e981==_0x1a9e9a?_0x146064[0x0]['attributes']['groupId']<_0x4f4c37[0x0]['attributes']['groupId']?-0x1:0x1:_0x28e981<_0x1a9e9a?-0x1:0x1;});for(const _0x543c32 of _0x27913c)_0x543c32['sort']((_0x3765cc,_0x16e836)=>_0x3765cc['id']<_0x16e836['id']?-0x1:0x1);}());for(let _0x3a3637=0x0;_0x3a3637<_0x27913c['length'];_0x3a3637++){if(0x0==_0x27913c[_0x3a3637]['length'])continue;const _0x14d051=[];for(let _0x5abb7d=_0x3a3637+0x1;_0x5abb7d<_0x27913c['length'];_0x5abb7d++)0x0!=_0x27913c[_0x5abb7d]['length']&&_0x54e5a6(_0x27913c[_0x3a3637],_0x27913c[_0x5abb7d])&&_0x14d051['push'](_0x5abb7d);for(const _0x1477a2 of _0x14d051)_0x27913c[_0x3a3637]=_0x27913c[_0x3a3637]['concat'](_0x27913c[_0x1477a2]),_0x27913c[_0x1477a2]=[];}for(const _0x221c43 of _0x27913c)for(let _0x5eba96=0x0;_0x5eba96<_0x221c43['length'];_0x5eba96++){const _0x5b2c79=_0x221c43[_0x5eba96+0x1]||null;_0x221c43[_0x5eba96]['next']!==_0x5b2c79&&(_0x221c43[_0x5eba96]['next']=_0x5b2c79);}for(const _0x36d0e5 of _0x27913c)for(let _0xfccb53=0x0;_0xfccb53<_0x36d0e5['length'];_0xfccb53++){const _0x2b85d2=_0x36d0e5[_0xfccb53-0x1]||null;_0x36d0e5[_0xfccb53]['previous']!==_0x2b85d2&&(_0x36d0e5[_0xfccb53]['previous']=_0x2b85d2);}function _0x54e5a6(_0x9c94ae,_0x390075){if(_0x9c94ae[0x0]['attributes']['groupId']!==_0x390075[0x0]['attributes']['groupId']&&_0x9c94ae[0x0]['author']!==_0x390075[0x0]['author'])return!0x1;if(!function(_0xe2307f,_0x353c28){if(!_0xe2307f['hasComments']&&!_0x353c28['hasComments'])return!0x0;if(_0xe2307f['hasComments']&&_0x353c28['hasComments'])return!0x1;if(_0xe2307f['hasComments']&&_0x353c28['createdAt']<_0xe2307f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x353c28['hasComments']&&_0xe2307f['createdAt']<_0x353c28['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x9c94ae[0x0],_0x390075[0x0]))return!0x1;const _0x309a25=Tt(_0x9c94ae[0x0]['attributes'],'groupId'),_0x100e42=Tt(_0x390075[0x0]['attributes'],'groupId');if(!_0x26e10e(_0x309a25,_0x100e42))return!0x1;return!!_0x9c94ae['every'](_0x144024=>_0x390075['some'](_0x411c47=>_0x144024['getFirstRange']()['isEqual'](_0x411c47['getFirstRange']())))&&_0x390075['every'](_0x229b5b=>_0x9c94ae['some'](_0x41c420=>_0x229b5b['getFirstRange']()['isEqual'](_0x41c420['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4ccb5e){const _0x366575=Array['from'](_0x4ccb5e),_0x49ad8d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1dbaec=_0x49ad8d['filter'](_0x52fd2d=>!_0x4ccb5e['has'](_0x52fd2d)),_0x1aa0bb=new Map(_0x366575['map'](_0x47c08a=>[_0x47c08a,this['_suggestionFactory']['getSuggestionCallback'](_0x47c08a['type'],_0x47c08a['subType'],'join')])),_0x423a86=new Map(_0x49ad8d['map'](_0x1d8dc7=>[_0x1d8dc7,_0x1d8dc7['getRanges']()]));for(let _0x1a82d6=0x0;_0x1a82d6<_0x366575['length'];_0x1a82d6++){if(_0x416fbe(this,_0x366575[_0x1a82d6],_0x366575,_0x1a82d6+0x1))return!0x0;}for(let _0x49e56f=0x0;_0x49e56f<_0x366575['length'];_0x49e56f++){if(_0x416fbe(this,_0x366575[_0x49e56f],_0x1dbaec,0x0))return!0x0;}return!0x1;function _0x416fbe(_0x383456,_0x28bf38,_0x4704a5,_0x409b54){for(let _0x394bd=_0x409b54;_0x394bd<_0x4704a5['length'];_0x394bd++){const _0x2c0215=_0x4704a5[_0x394bd];if(_0x2c0215['type']!==_0x28bf38['type']||_0x2c0215['author']['id']!==_0x28bf38['author']['id']||_0x2c0215['subType']!==_0x28bf38['subType'])continue;if(!Jt(_0x28bf38,_0x2c0215))continue;if('attribute'==_0x28bf38['type']&&_0x28bf38['data']['oldValue']!=_0x2c0215['data']['oldValue'])continue;if('attribute'==_0x28bf38['type']&&_0x383456['_isBlockAttribute'](_0x28bf38['data']['key']))continue;if('formatBlock'==_0x28bf38['type']){const _0x1c603c=_0x383456['editor']['model'],_0x4cdf7c=_0x28bf38['getContainedElement']();if(_0x4cdf7c&&(_0x1c603c['schema']['isObject'](_0x4cdf7c)||_0x1c603c['schema']['isLimit'](_0x4cdf7c)))continue;}const _0x3e45bc=_0x1aa0bb['get'](_0x28bf38),_0x6f490c=_0x423a86['get'](_0x28bf38),_0x1d2cc3=_0x423a86['get'](_0x2c0215),_0x426c0a=_0x28bf38['commentThread']&&_0x28bf38['commentThread']['length'],_0x4e5dc3=_0x2c0215['commentThread']&&_0x2c0215['commentThread']['length'];if(!_0x426c0a&&_0x3e45bc(_0x1d2cc3,_0x6f490c))return _0x383456['_joinSuggestions'](_0x2c0215,_0x28bf38),_0x423a86['delete'](_0x28bf38),!0x0;if(!_0x4e5dc3&&_0x3e45bc(_0x6f490c,_0x1d2cc3))return _0x383456['_joinSuggestions'](_0x28bf38,_0x2c0215),_0x423a86['delete'](_0x2c0215),!0x0;}return!0x1;}}['_joinSuggestions'](_0xdff95a,_0x2b6fdf){if(_0xdff95a['isMultiRange']){for(const _0x80a55 of _0x2b6fdf['getRanges']())_0xdff95a['addRange'](_0x80a55);}else{const _0x4e6d22=_0x2b6fdf['getFirstRange']()['end'];this['_setSuggestionRange'](_0xdff95a,this['_model']['createRange'](_0xdff95a['getFirstRange']()['start'],_0x4e6d22));}_0x2b6fdf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4b10d3,_0x5030c8,_0x2efb30){const _0x510565=_0x4b10d3['startsWith']('format')||_0x4b10d3['startsWith']('attribute')?'FORMATTING':_0x4b10d3['toUpperCase']();return o(this['editor']['locale'],_0x5030c8+'_'+_0x510565+'_SUGGESTION_ANNOUNCEMENT',_0x2efb30);}['_initAriaMarkerChangeAnnouncements'](){const _0x21e25b=this['editor'];if(!_0x21e25b['ui'])return;const {ariaLiveAnnouncer:_0x205117}=_0x21e25b['ui'];_0x34a5c1(this['_model'],({left:_0x7af293,entered:_0x4f2413})=>{for(const _0x4cdd28 of _0x7af293){const {group:_0x230282,type:_0x187a0a}=this['_splitMarkerName'](_0x4cdd28['name']);if('suggestion'===_0x230282){_0x205117['announce'](this['_getMarkerAnnouncementText'](_0x187a0a,'LEAVE'));break;}}for(const _0x51cead of _0x4f2413){const {group:_0x417dd5,type:_0x234de1}=this['_splitMarkerName'](_0x51cead['name']);if('suggestion'===_0x417dd5){_0x205117['announce'](this['_getMarkerAnnouncementText'](_0x234de1,'ENTER',_0x46bee8(_0xf05e31)));break;}}});}['_processAttributeChanges'](_0x163d41){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4fa241=this['editor'],_0x17fbd9=_0x4fa241['model']['document']['differ']['getChanges']();if(0x0==_0x17fbd9['length'])return!0x1;const _0x3a8d4a=[],_0x432a7b=_0x17fbd9['filter'](_0x373b68=>'attribute'==_0x373b68['type']),_0x2f6522=_0x17fbd9['filter'](_0x168a34=>'insert'==_0x168a34['type']&&'$text'!=_0x168a34['name']),_0x118b82=_0x17fbd9['filter'](_0x190a2f=>'remove'==_0x190a2f['type']&&'$text'!=_0x190a2f['name']);for(const _0x185f75 of _0x432a7b)_0x3a8d4a['push']({'key':_0x185f75['attributeKey'],'newValue':_0x185f75['attributeNewValue'],'oldValue':_0x185f75['attributeOldValue'],'range':Pt(_0x185f75['range'],_0x4fa241['model'])});for(const _0x7d34fc of _0x2f6522){const _0x47dbd2=_0x118b82['find'](_0x22bb75=>_0x22bb75['position']['isEqual'](_0x7d34fc['position']));_0x47dbd2&&_0x3a8d4a['push']({'key':m,'newValue':_0x7d34fc['name'],'oldValue':_0x47dbd2['name'],'range':_0x4fa241['model']['createRangeOn'](_0x7d34fc['position']['nodeAfter'])});}return 0x0!=_0x3a8d4a['length']&&this['_reduceExistingSuggestions'](_0x163d41,_0x3a8d4a);}['_processAttributeSuggestions'](_0x23261a){let _0x291371=!0x1;const _0xa74941=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x30f97e=>_0x30f97e['data']['newRange']&&_0x30f97e['name']['startsWith']('suggestion:attribute:'));for(const _0x3723ef of _0xa74941){const {subType:_0x1c00ad,id:_0x5b5142}=this['_splitMarkerName'](_0x3723ef['name']),_0x5ea401=_0x1c00ad['split']('|')[0x0];for(const _0x4cc337 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4cc337['id']!=_0x5b5142&&'attribute'==_0x4cc337['type']&&_0x4cc337['data']&&_0x4cc337['data']['key']==_0x5ea401&&_0x4cc337['getFirstRange']()['isIntersecting'](_0x3723ef['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4cc337,_0x3723ef['data']['newRange'],_0x23261a),_0x291371=!0x0);}return _0x291371;}['_recordAttributeChanges'](_0x11ecc6){this['_recordAttributeSuggestions']=!0x0,_0x11ecc6();}['_isRegisteredAttribute'](_0x33a7fc){const _0x319250=this['_isBlockAttribute'](_0x33a7fc),_0x5aba84=this['_inlineAttributeKeys']['has'](_0x33a7fc);return _0x319250||_0x5aba84;}['_reduceExistingSuggestions'](_0x2839ad,_0x4d9d57){if(0x0==_0x4d9d57['length'])return!0x1;let _0x3342b8=!0x1;for(const _0x3cd90b of _0x4d9d57){const _0xcf192b=this['_findSuggestions'](_0x3cd90b['range'],'attribute')['filter'](_0xcb5b2d=>!_0xcb5b2d['meta']['isNextTo'])['map'](_0x511a00=>_0x511a00['suggestion']),_0x3496c7=_0x228f25({'newValue':_0x3cd90b['newValue']});_0xcf192b['filter'](_0x71b7e1=>{const [_0x42c4ec,_0x19f384]=_0x71b7e1['subType']['split']('|');return _0x42c4ec==_0x3cd90b['key']&&_0x19f384!=_0x3496c7;})['forEach'](_0x563961=>{this['_reduceSuggestionAttributeRange'](_0x563961,_0x3cd90b['range'],_0x2839ad),_0x3342b8=!0x0;});}return _0x3342b8;}['_reduceSuggestionAttributeRange'](_0x279445,_0x510c3e,_0x2b3565){const _0x17c40f=_0x279445['getFirstRange']()['getDifference'](_0x510c3e);0x0!==_0x17c40f['length']?0x1!==_0x17c40f['length']?this['_breakSuggestionMarker'](_0x279445,_0x510c3e['start'],_0x510c3e['end']):this['_setSuggestionRange'](_0x279445,_0x17c40f[0x0]):_0x2b3565['removeMarker'](_0x279445['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa9798a){this['_editor']=_0xa9798a,this['_model']=_0xa9798a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x59799d,_0x19e66d,_0x4de263,_0x740969,_0x5d22fb,_0x4bfebd){return new u(this['_model'],{'type':_0x59799d,'subType':_0x19e66d,'id':_0x4de263,'author':_0x740969,'creator':_0x740969,'attributes':_0x5d22fb,'onAttributesChange':_0x4bfebd,'onAccept':(..._0x45f318)=>this['getSuggestionCallback'](_0x59799d,_0x19e66d,'accept')(..._0x45f318),'onDiscard':(..._0x3c9f2c)=>this['getSuggestionCallback'](_0x59799d,_0x19e66d,'discard')(..._0x3c9f2c)});}['registerCustomCallback'](_0x56327e,_0x272d6f,_0x36045f,_0x45dd1c){const _0x5c0802=_0x56327e+':'+_0x272d6f+':'+_0x36045f;this['_customCallbacks']['set'](_0x5c0802,_0x45dd1c);}['getSuggestionCallback'](_0xffa85b,_0x328c28,_0x28b50a){const _0x5e150e=_0xffa85b+':'+_0x328c28+':'+_0x28b50a;return this['_customCallbacks']['get'](_0x5e150e)||this['_defaultCallbacks']['get'](_0xffa85b+':'+_0x28b50a);}['_registerDefaultCallbacks'](){const _0x39b3f7=()=>!0x1,_0x530f28=_0x1da01a=>{_0x1da01a['sort']((_0x32b8e1,_0x11b461)=>_0x32b8e1['start']['isBefore'](_0x11b461['start'])?0x1:-0x1),this['_model']['change'](_0x2f11ed=>{for(const _0x45e625 of _0x1da01a){let _0x98883;_0x98883=_0x45e625['end']['isAtEnd']&&_0x45e625['end']['parent']==_0x45e625['start']['nodeAfter']?_0x2f11ed['createSelection'](_0x45e625['start']['nodeAfter'],'on'):_0x2f11ed['createSelection'](_0x45e625),this['_model']['deleteContent'](_0x98883,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1a9ccd=(_0x321c85,_0x2e5add)=>{_0x2e5add&&this['_model']['change'](_0x42a6db=>{const {commandName:_0x3ca7dc,commandParams:_0x42e5f5=[]}=_0x2e5add,_0x47243f=_0x321c85['map'](_0x39fd58=>(Vt(_0x39fd58)&&(_0x39fd58=this['_model']['createRange'](_0x39fd58['end'])),_0x39fd58))['filter'](_0x5c4ebb=>'$graveyard'!==_0x5c4ebb['root']['rootName']);if(_0x47243f['length']<0x1)return;const _0x4a4d7b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2c5dc8=>_0x4537cd['fromRange'](_0x2c5dc8));_0x42a6db['setSelection'](_0x47243f);for(const _0x4cb920 of this['_editor']['commands']['commands']())_0x4cb920['refresh']();_0x42e5f5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3ca7dc,..._0x42e5f5);const _0x16ca84=_0x4a4d7b['filter'](_0x1907e9=>'$graveyard'!=_0x1907e9['root']['rootName']);_0x16ca84['length']>0x0&&_0x42a6db['setSelection'](_0x16ca84);for(const _0x152b45 of _0x4a4d7b)_0x152b45['detach']();});},_0x37951f=(_0x3feb30,_0x3140dc)=>0x1==_0x3feb30['length']&&0x1==_0x3140dc['length']&&_0x3feb30[0x0]['end']['isEqual'](_0x3140dc[0x0]['start']),_0x1d1c01=(_0x4ebb78,_0x11bece,_0x65888c,_0x4b3318)=>Ht(_0x4ebb78,_0x11bece,_0x65888c,_0x4b3318,this['_model'])?[_0x4ebb78,_0x11bece]:Ht(_0x11bece,_0x4ebb78,_0x4b3318,_0x65888c,this['_model'])?[_0x11bece,_0x4ebb78]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x39b3f7),this['_defaultCallbacks']['set']('insertion:discard',_0x530f28),this['_defaultCallbacks']['set']('insertion:join',_0x37951f),this['_defaultCallbacks']['set']('insertion:chain',_0x1d1c01),this['_defaultCallbacks']['set']('deletion:accept',_0x530f28),this['_defaultCallbacks']['set']('deletion:discard',_0x39b3f7),this['_defaultCallbacks']['set']('deletion:join',_0x37951f),this['_defaultCallbacks']['set']('deletion:chain',_0x1d1c01),this['_defaultCallbacks']['set']('formatInline:accept',_0x1a9ccd),this['_defaultCallbacks']['set']('formatInline:discard',_0x39b3f7),this['_defaultCallbacks']['set']('formatInline:join',_0x37951f),this['_defaultCallbacks']['set']('formatInline:chain',_0x39b3f7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1a9ccd),this['_defaultCallbacks']['set']('formatBlock:discard',_0x39b3f7),this['_defaultCallbacks']['set']('formatBlock:join',_0x37951f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x39b3f7),this['_defaultCallbacks']['set']('attribute:accept',_0x39b3f7),this['_defaultCallbacks']['set']('attribute:discard',(_0x2aeda0,_0x3b4223)=>{if(!_0x3b4223)return;const _0x391147=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x143755=>{if(_0x3b4223['key']==m)for(const _0x5d8ab8 of _0x2aeda0){const _0x288694=_0x5d8ab8['start']['nodeAfter'],_0x220e79=_0x3b4223['oldValue'];_0x143755['rename'](_0x288694,_0x220e79);}else{if(_0x391147['_isBlockAttribute'](_0x3b4223['key'])){for(const _0x4a5c20 of _0x2aeda0)void 0x0!==_0x3b4223['oldValue']?_0x143755['setAttribute'](_0x3b4223['key'],_0x3b4223['oldValue'],_0x4a5c20['start']['nodeAfter']):_0x143755['removeAttribute'](_0x3b4223['key'],_0x4a5c20['start']['nodeAfter']);}else{for(const _0x1632a4 of _0x2aeda0)_0x3b4223['oldValue']?_0x143755['setAttribute'](_0x3b4223['key'],_0x3b4223['oldValue'],_0x1632a4):_0x143755['removeAttribute'](_0x3b4223['key'],_0x1632a4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x37951f);}}function Ot(_0x3c3417,_0x5c2a24,_0xbcbe19){for(const _0x44d3c0 of _0x5c2a24['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x44d3c0['root']==_0x44d3c0)return!0x1;if(!_0xbcbe19['containsItem'](_0x44d3c0))return!0x1;if(_0x3c3417['isObject'](_0x44d3c0)||_0x3c3417['isLimit'](_0x44d3c0))return!0x0;}return!0x1;}function Vt(_0x5d1ce3){return _0x5d1ce3['end']['parent']==_0x5d1ce3['start']['nodeAfter']&&_0x5d1ce3['end']['isAtStart'];}function Ut(_0x56b94c,_0x4c2eb,_0x33b3b3,_0x4807b8){const _0x314830=_0x195b79=>!_0x195b79['item']['is']('$textProxy')&&!_0x4807b8['isObject'](_0x195b79['item']),_0x397785=_0x56b94c['start']['getLastMatchingPosition'](_0x314830),_0xd536d4=_0x56b94c['end']['getLastMatchingPosition'](_0x314830,{'direction':'backward'});return(!_0x56b94c['start']['isEqual'](_0x397785)||!_0x56b94c['end']['isEqual'](_0xd536d4))&&(_0x397785['isBefore'](_0xd536d4)?_0x33b3b3['updateMarker'](_0x4c2eb,{'range':_0x33b3b3['createRange'](_0x397785,_0xd536d4)}):_0x33b3b3['removeMarker'](_0x4c2eb),!0x0);}function Gt(_0x54370e){return _0x228f25(_0x54370e);}function Ft(_0x39d3fb){const _0x3f6b2d=_0x39d3fb['start']['nodeAfter'];return _0x3f6b2d&&_0x3f6b2d['is']('element');}function Pt(_0x31d7cc,_0x35fb33){return null==_0x31d7cc['end']['nodeBefore']&&_0x31d7cc['end']['parent']==_0x31d7cc['start']['nodeAfter']?Lt(_0x31d7cc['start']['nodeAfter'],_0x35fb33):_0x31d7cc;}function Lt(_0x277410,_0x2accf5){const _0x3e2b19=_0x2accf5['schema']['isObject'](_0x277410)||_0x2accf5['schema']['isSelectable'](_0x277410);return _0x2accf5['createRange'](_0x2accf5['createPositionAt'](_0x277410,'before'),_0x3e2b19?_0x2accf5['createPositionAfter'](_0x277410):_0x2accf5['createPositionAt'](_0x277410,'end'));}function Ht(_0x4b3ea3,_0x1c47c3,_0x1d203d,_0x237e17,_0x4afc52){if(_0x4b3ea3['next'])return!0x1;if(!Jt(_0x4b3ea3,_0x1c47c3))return!0x1;if(_0x1d203d['end']['isEqual'](_0x237e17['start']))return!0x0;if(_0x4b3ea3['type']!=_0x1c47c3['type'])return!0x1;if(!_0x1d203d['end']['isTouching'](_0x237e17['start']))return!0x1;const _0x1e33a9=_0x4afc52['createRange'](_0x1d203d['end'],_0x237e17['start'])['getWalker']();for(const _0x409d67 of _0x1e33a9)if(['elementStart','elementEnd']['includes'](_0x409d67['type'])&&_0x4afc52['schema']['isLimit'](_0x409d67['item']))return!0x1;return!0x0;}function Jt(_0x26646b,_0x5d2f15){if(!_0x26646b['_isDataLoaded']||!_0x5d2f15['_isDataLoaded'])return!0x1;const _0x2a0273=new Set(Object['keys'](_0x26646b['attributes'])),_0x231b06=new Set(Object['keys'](_0x5d2f15['attributes']));if(_0x2a0273['delete']('groupId'),_0x231b06['delete']('groupId'),0x0==_0x2a0273['size']&&0x0==_0x231b06['size'])return!0x0;if(_0x2a0273['size']!=_0x231b06['size'])return!0x1;const _0x4eab1e={..._0x26646b['attributes']},_0x52b6f6={..._0x5d2f15['attributes']};return delete _0x4eab1e['groupId'],delete _0x52b6f6['groupId'],JSON['stringify'](_0x4eab1e)==JSON['stringify'](_0x52b6f6);}function qt(_0x174ce2,_0x15476f){const _0xdcd02c=zt(_0x174ce2['attributes']),_0x3e3e13=zt(_0x15476f);if(!_0x174ce2['_isDataLoaded'])return!0x1;for(const _0x466833 of Object['keys'](_0x3e3e13))if(!_0x26e10e(_0xdcd02c[_0x466833],_0x3e3e13[_0x466833]))return!0x1;return!0x0;}function zt(_0x247a45){const _0x46fe60=Object['assign']({},_0x247a45);return delete _0x46fe60['skipNestingCheck'],delete _0x46fe60['tablePasteChainId'],_0x46fe60;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x347799(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3be967,_0x29fbfc,_0x5d3b64,_0x71efc1){super(),this['model']=_0x29fbfc,this['view']=_0x5d3b64,this['commentThreadController']=_0x71efc1,this['_editor']=_0x3be967,this['_acceptCommand']=_0x3be967['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3be967['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x79faa1,_0x326c00)=>_0x79faa1||_0x326c00),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2baca4=>_0x2baca4&&this['_editor']['model']['canEditAt'](_0x29fbfc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x126127=>_0x126127&&this['_editor']['model']['canEditAt'](_0x29fbfc['getRanges']())),this['_pendingAction']=null,_0x5d3b64['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5d3b64,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5d3b64,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5d3b64,'change:isDirty',()=>{_0x5d3b64['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 _0x5afe10=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5afe10);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x233b26{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4d1d09,_0x11e242,_0x5b8666,_0x52ad9a){super(_0x4d1d09),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x325ad4(_0x4d1d09,o(_0x4d1d09,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x11e242['authoredAt']),this['bind']('authoredAt')['to'](_0x11e242),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',_0x11e242,'authoredAt',this,'descriptionParts',(_0x438a9c,_0x2caec7,_0x58b0f4)=>{const _0x2c771f=_0x58b0f4['map'](_0x557e54=>ls(_0x557e54['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x438a9c-0x1,_0x11e242['author']['name'],_0x2caec7?_0x52ad9a['formatDateTime'](_0x2caec7):'',new DOMParser()['parseFromString'](_0x2c771f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1354df(),this['focusTracker']=new _0xfc952c(),this['keystrokes']=new _0x514e11(),this['focusCycler']=new _0x41b7df({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5a299f=>_0x5a299f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x11e242,this['_localUser']=_0x5b8666,this['_config']=_0x52ad9a,_0x52ad9a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x54ea47(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x8b11bb}=this['_config'];this['commentsListView']=new _0x8b11bb(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',_0x56ff23=>_0x56ff23+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2b46c2,_0x5a1c4e)=>_0x2b46c2||!!_0x5a1c4e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x17a689}=this['_config'],_0xd34072=new _0x17a689(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x334ed7=_0xd34072['commentInputView'];return _0xd34072['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x334ed7,'value',(_0xd44117,_0x191626,_0x429f38)=>!!_0x429f38||_0xd44117&&!_0x191626),_0x334ed7['on']('submit',(_0x356c32,_0x267136)=>{this['fire']('addComment',_0x267136),_0x334ed7['editor']['setData']('');}),_0x334ed7['on']('cancel',()=>this['focus']()),_0x334ed7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xd34072;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x53f954,_0x37aa6a,_0x4e6e03,_0x28c01f){super(_0x53f954,_0x37aa6a,_0x4e6e03,_0x28c01f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x47bd4c=>_0x47bd4c&&_0x47bd4c[0x0]?_0x47bd4c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1c145f,_0x2d237d)=>{let _0x12691e='';for(const _0x223df3 of _0x1c145f)_0x12691e+='<p>'+ls(_0x223df3['content'],_0x223df3['color'])+'</p>';return _0x2d237d?_0x12691e:_0x37a9ef(_0x12691e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x28c01f['SuggestionView'](_0x53f954,_0x37aa6a,{'formatDateTime':_0x28c01f['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 _0x4c0623=this['bindTemplate'],_0x39ce18=[this['suggestionView']];return this['commentsListView']&&_0x39ce18['push'](this['commentsListView']),this['commentThreadInputView']&&_0x39ce18['push'](this['commentThreadInputView']),_0x39ce18['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4c0623['if']('isActive','ck-suggestion-wrapper--active'),_0x4c0623['to']('type',_0x273d82=>'ck-suggestion-'+_0x273d82),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':_0x4c0623['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x39ce18};}['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 ce extends _0x233b26{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1a7ce4,_0x131b15,_0x307325){super(_0x1a7ce4),this['_model']=_0x131b15,this['_config']=_0x307325,this['set']('description',''),this['bind']('authoredAt')['to'](_0x131b15),this['acceptButton']=this['_createButton'](o(_0x1a7ce4,'Accept\x20suggestion'),_0x4a4689['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1a7ce4,'Discard\x20suggestion'),_0x4a4689['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xb0baac(_0x1a7ce4,_0x131b15['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1354df([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xfc952c(),this['keystrokes']=new _0x514e11(),this['focusCycler']=new _0x41b7df({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5d7985=>_0x5d7985['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x478fdb=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x478fdb['innerHTML']=this['description'],this['on']('change:description',(_0x1ab626,_0x204115,_0x3336da)=>{_0x478fdb['innerHTML']=_0x3336da;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x527e65=this['bindTemplate'],_0x5bed83=[{'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':_0x527e65['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x527e65['to']('authoredAt',_0x5ae00d=>this['_config']['formatDateTime'](_0x5ae00d))}]}]},{'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']&&_0x5bed83['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':_0x5bed83}]};}['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'](_0x3a5467,_0x2e2348,_0xb2f177,_0x263d90,_0x585589){const _0x107745=new _0x535f34(this['locale']);return _0x107745['set']({'label':_0x3a5467,'icon':_0x2e2348,'tooltip':!0x0,'tooltipPosition':_0x585589}),_0x107745['extendTemplate']({'attributes':{'class':_0xb2f177}}),_0x107745['on']('execute',()=>{this['fire'](_0x263d90,this['_model']['id']);}),_0x107745;}['_setupKeyboardNavigation'](){const _0x1e59da=this['element'];this['keystrokes']['listenTo'](_0x1e59da);for(const _0x3b98c9 of this['focusables'])this['focusTracker']['add'](_0x3b98c9['element']),this['keystrokes']['listenTo'](_0x3b98c9['element']);this['keystrokes']['set']('enter',(_0x4c897e,_0x2c2fb2)=>{_0x1e59da===_0x4c897e['target']&&(this['focusCycler']['focusFirst'](),_0x2c2fb2());}),this['keystrokes']['set']('esc',(_0x1107f9,_0x5b1ec6)=>{_0x1e59da!==_0x1107f9['target']&&(this['focus'](),_0x5b1ec6());});}}var he='<!--\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 _0x3c336f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x25bf2a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2381ba){super(_0x2381ba),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4f3601=this['editor']['config'];_0x4f3601['define']('trackChanges.SuggestionThreadView',re),_0x4f3601['define']('trackChanges.SuggestionView',ce),_0x4f3601['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4f3601['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x324876,_0x1447ae){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1ea3b3,_0x539806]of this['_handleControllerBuffer']){const _0x3058c1=this['_suggestionToController']['has'](_0x1ea3b3);_0x3058c1||_0x539806?_0x3058c1&&_0x539806&&this['_destroyController'](_0x1ea3b3):this['_initializeController'](_0x1ea3b3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x324876,_0x1447ae);}['init'](){const _0x6549b9=this['editor'],_0x61facc=_0x6549b9['plugins']['get']('TrackChangesEditing'),_0x48b558=_0x6549b9['plugins']['get']('Annotations'),_0x4d31a0=_0x6549b9['plugins']['get']('EditorAnnotations'),_0x510c8a=_0x6549b9['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4d31a0['addSourceCollector'](()=>{const _0xdca384=[];for(const [_0x368239,_0xbb317b]of Array['from'](this['_suggestionToController'])){const _0x37e98a=_0x368239['getAllAdjacentSuggestions'](),_0x45f44e=[];for(const _0x56c8dd of _0x37e98a){if(!_0x56c8dd['isInContent'])continue;if(_0x56c8dd['isMultiRange']){_0x45f44e['push'](..._0x56c8dd['getRanges']());continue;}const _0x438977=_0x56c8dd['getFirstRange']();if(_0x45f44e['length']>0x0){const _0x490efd=_0x45f44e[0x0]['getJoined'](_0x438977);if(_0x490efd){_0x45f44e[0x0]=_0x490efd;continue;}}_0x45f44e['push'](_0x438977);}_0xdca384['push']([_0xbb317b['view'],_0x45f44e]);}return _0xdca384;}),this['listenTo'](_0x61facc,'suggestionLoaded',(_0x3d04d0,_0x3d7478)=>{this['listenTo'](_0x3d7478,'change:previous',(_0x1c215e,_0x9c2763,_0x6ebfb2,_0x43e432)=>{_0x3d7478['isInContent']&&(null==_0x6ebfb2?(this['_updateController'](_0x43e432['head']),this['_handleSuggestionControllerDelayed'](_0x3d7478,!0x1)):(this['_updateController'](_0x6ebfb2['head']),null==_0x43e432&&this['_handleSuggestionControllerDelayed'](_0x3d7478,!0x0)));}),null!==_0x3d7478['previous']?this['_updateController'](_0x3d7478['head']):this['_handleSuggestionControllerDelayed'](_0x3d7478,!0x1);}),this['listenTo'](_0x61facc,'suggestionUnloaded',(_0x327805,_0xf797b6,_0x3d7fcb)=>{this['stopListening'](_0xf797b6,'change:previous'),this['_handleControllerBuffer']['delete'](_0xf797b6),this['_suggestionToController']['has'](_0xf797b6)&&this['_destroyController'](_0xf797b6),_0x3d7fcb&&this['_updateController'](_0x3d7fcb['head']);}),this['listenTo'](_0x61facc,'suggestionChanged',(_0x353d63,_0x130790)=>{this['_updateController'](_0x130790);}),this['listenTo'](_0x48b558,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x510c8a,'addComment',(_0x342dbb,{threadId:_0x3160e4,isFromAdapter:_0xc30689})=>{if(_0xc30689||!_0x61facc['hasSuggestion'](_0x3160e4))return;const _0x28f846=_0x61facc['getSuggestion'](_0x3160e4);this['_suggestionToController']['get'](_0x28f846)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x170fd7=this['editor']['plugins']['get']('Annotations'),_0x56151f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fb065=Array['from'](_0x170fd7['activeAnnotations'],_0x177cf6=>_0x177cf6['innerView'])['filter'](_0xf51e0c=>this['_viewToController']['has'](_0xf51e0c)),_0x402b52=[];for(const _0x3f8088 of _0x2fb065){const _0x309343=this['_viewToController']['get'](_0x3f8088)['model']['getAllAdjacentSuggestions']();_0x402b52['push'](..._0x309343['reduce']((_0x3516,_0x5dd030)=>[..._0x3516,..._0x5dd030['getMarkerNames']()],[]));}_0x56151f['activeMarkers']=_0x402b52;}['_addUIComponentsToFactory'](){const _0x41bf16=this['editor'],_0x434322=_0x41bf16['locale'],_0xa18109=o(_0x434322,'Track\x20changes'),_0x5807d6=new Wt([{'type':'switchbutton','model':new _0x4a0ce6({'withText':!0x0,'isToggleable':!0x0,'label':_0xa18109,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4a0ce6({'withText':!0x0,'label':o(_0x434322,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a0ce6({'withText':!0x0,'label':o(_0x434322,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a0ce6({'withText':!0x0,'label':o(_0x434322,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a0ce6({'withText':!0x0,'label':o(_0x434322,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x517d48 of _0x5807d6)if(me(_0x517d48)){const _0x1e44de=_0x41bf16['commands']['get'](_0x517d48['model']['commandName']);_0x517d48['model']['bind']('isOn','isEnabled')['to'](_0x1e44de,'value','isEnabled');}_0x41bf16['ui']['componentFactory']['add']('trackChanges',_0x5d4fa1=>this['_createToolbarButton'](_0x5d4fa1,_0x5807d6,_0xa18109)),_0x41bf16['ui']['componentFactory']['add']('menuBar:trackChanges',_0x483bcc=>this['_createMenuBarMenu'](_0x483bcc,_0x5807d6,_0xa18109));}['_createToolbarButton'](_0x5deb53,_0x550816,_0x169721){const _0x9d1fcc=Qt(_0x5deb53,_0x3a3d67),_0x1218dc=this['editor']['commands']['get']('trackChanges');_0x9d1fcc['buttonView']['set']({'tooltip':_0x169721,'label':_0x169721,'icon':he}),_0x9d1fcc['buttonView']['bind']('isOn')['to'](_0x1218dc,'value'),_0x9d1fcc['buttonView']['on']('execute',()=>{_0x1218dc['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x9d1fcc,_0x550816,{'role':'menu'});const _0x267a85=[];for(const _0x3e14d6 of _0x550816)me(_0x3e14d6)&&_0x267a85['push'](this['editor']['commands']['get'](_0x3e14d6['model']['commandName']));const _0x38cfbd=_0x9d1fcc['buttonView'];return _0x38cfbd['actionView']['unbind']('isEnabled'),_0x38cfbd['arrowView']['unbind']('isEnabled'),_0x38cfbd['actionView']['bind']('isEnabled')['to'](_0x1218dc,'isEnabled'),_0x38cfbd['arrowView']['bind']('isEnabled')['toMany'](_0x267a85,'isEnabled',(..._0x51ea96)=>_0x51ea96['some'](_0x4d4d20=>_0x4d4d20)),_0x9d1fcc['on']('execute',_0x132a8a=>{this['editor']['execute'](_0x132a8a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x9d1fcc;}['_createMenuBarMenu'](_0x16aaa6,_0x34f47b,_0x5d0ad8){const _0x5d3d4b=new Yt(_0x16aaa6),_0x33156d=this['editor']['commands']['get']('trackChanges');_0x5d3d4b['buttonView']['set']({'label':_0x5d0ad8,'icon':he});const _0x4d1d51=new Zt(_0x16aaa6);for(const _0x452b1d of _0x34f47b){if('separator'==_0x452b1d['type']){_0x4d1d51['items']['add'](new Xt(_0x16aaa6));continue;}const _0x6bcd37=new te(_0x16aaa6,_0x5d3d4b),_0x306448=new _0x47c1bc(_0x16aaa6),_0x2f8b8c=_0x452b1d['model'];_0x306448['bind'](...Object['keys'](_0x2f8b8c))['to'](_0x2f8b8c),_0x306448['delegate']('execute')['to'](_0x5d3d4b),_0x306448['on']('execute',()=>{this['editor']['execute'](_0x2f8b8c['commandName']),this['editor']['editing']['view']['focus']();}),_0x6bcd37['children']['add'](_0x306448),_0x4d1d51['items']['add'](_0x6bcd37);}return _0x5d3d4b['bind']('isEnabled')['to'](_0x33156d,'isEnabled'),_0x5d3d4b['panelView']['children']['add'](_0x4d1d51),_0x5d3d4b;}['_initializeController'](_0x263569){const _0x2bfafe=this['editor'],_0x1e098c=_0x2bfafe['config'],_0x109e78=_0x2bfafe['plugins']['get']('Annotations'),_0x579427=_0x2bfafe['plugins']['get']('CommentsRepository'),_0x6b189=_0x2bfafe['plugins']['get']('EditorAnnotations'),_0x5e64d9=_0x2bfafe['plugins']['get'](_0x25bf2a)['me'],_0x55d828=_0x1e098c['get']('trackChanges')['SuggestionThreadView'],_0x189828=_0x1e098c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x307f81,CommentThreadInputView:_0xb64f81}=_0x2bfafe['plugins']['get']('CommentsUI');let _0x118cd5,_0x116e1b,_0xeed7a8;this['_annotationViews']['has'](_0x263569['id'])?(_0x116e1b=this['_annotationViews']['get'](_0x263569['id']),_0x118cd5=_0x116e1b['mainView']):(_0x118cd5=new _0x55d828(_0x2bfafe['locale'],_0x263569,_0x5e64d9,{'disableComments':this['_disableComments'],'editorConfig':_0x1e098c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1e098c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1e098c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1e098c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x466076(_0x1e098c['get']('locale')),'CommentView':_0x1e098c['get']('comments')['CommentView'],'CommentsListView':_0x307f81,'CommentThreadInputView':_0xb64f81,'SuggestionView':_0x189828}),_0x118cd5['suggestionView']['acceptButton']['on']('execute',()=>{_0x2bfafe['editing']['view']['focus']();}),_0x118cd5['suggestionView']['discardButton']['on']('execute',()=>{_0x2bfafe['editing']['view']['focus']();}),_0x116e1b=_0x109e78['createAnnotationView'](this['editor']['locale'],_0x118cd5),_0x116e1b['bind']('isDirty')['to'](_0x118cd5,'isDirty'),_0x116e1b['bind']('length')['to'](_0x118cd5),_0x116e1b['bind']('type')['to'](_0x118cd5,'type',_0xe46910=>'suggestion-'+_0xe46910),_0x118cd5['on']('escape',()=>{_0xeed7a8['fire']('escape');}),this['_annotationViews']['set'](_0x263569['id'],_0x116e1b));const _0x221362=_0x579427['createCommentThreadController'](_0x263569['commentThread'],_0x118cd5),_0x2b6eaf=new ae(_0x2bfafe,_0x263569,_0x118cd5,_0x221362),_0x3e099f=_0x263569['getAllAdjacentSuggestions']()['filter'](_0x4ba5d8=>_0x4ba5d8['isInContent']);_0x118cd5['descriptionParts']=_0x2bfafe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3e099f),this['_suggestionToController']['set'](_0x263569,_0x2b6eaf),this['_viewToController']['set'](_0x118cd5,_0x2b6eaf),_0xeed7a8=_0x109e78['createAnnotation']({'view':_0x116e1b,'target':()=>{const _0x7d9d1e=[],_0x5b437f=_0x263569['getAllAdjacentSuggestions']()['filter'](_0x11eece=>_0x11eece['isInContent']);for(const _0x1973bc of _0x5b437f)_0x7d9d1e['push'](..._0x1973bc['getMarkers']());return _0x1472c1(_0x2bfafe['editing'],_0x7d9d1e);},'type':()=>'suggestion-'+_0x2b6eaf['view']['type']}),_0x579427['_bindAnnotationToEditors'](_0x118cd5,_0xeed7a8),_0x109e78['add'](_0xeed7a8),_0x6b189['registerAnnotation'](_0xeed7a8);}['_destroyController'](_0x22c548){const _0x3c133e=this['editor']['plugins']['get']('CommentsRepository'),_0x3bfdf0=this['editor']['plugins']['get']('Annotations'),_0x20e30a=this['_suggestionToController']['get'](_0x22c548),_0x99077b=_0x20e30a['view'],_0x3cd2db=_0x3bfdf0['getByInnerView'](_0x99077b);_0x3c133e['_unbindEditors'](_0x99077b),_0x3cd2db&&_0x3bfdf0['remove'](_0x3cd2db),this['_suggestionToController']['delete'](_0x22c548),this['_viewToController']['delete'](_0x99077b),_0x20e30a['destroy']();}['_updateController'](_0x43600c){if(!_0x43600c['isInContent']||!this['_suggestionToController']['has'](_0x43600c))return;const _0x32f9cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55799e=this['_suggestionToController']['get'](_0x43600c),_0x4d7aa7=_0x43600c['getAllAdjacentSuggestions']();_0x55799e['view']['descriptionParts']=_0x32f9cb['descriptionFactory']['getDescriptions'](_0x4d7aa7);}['destroy'](){for(const _0x593be0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x593be0);for(const _0x53dea6 of this['_annotationViews']['values']())_0x53dea6['mainView']['destroy']();super['destroy']();}}function me(_0x340948){return'model'in _0x340948;}class k extends _0x3c336f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2382fe){this['editor']['plugins']['get'](p)['adapter']=_0x2382fe;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x28f1cc){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x28f1cc);}['getSuggestions']({skipNotAttached:_0x41732e=!0x1,toJSON:_0x28e46b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x41732e,'toJSON':_0x28e46b});}['getSuggestion'](_0x41dde6){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x41dde6);}}const T=['Pagination'];class P extends _0x3c336f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3cd8bd=this['editor'];if(_0x3cd8bd['config']['define']('trackChangesData.editorCreator',_0x32f7a6=>{const _0x537623=_0x3cd8bd['model']['document']['getRootNames']()['reduce']((_0x475dfc,_0x341a33)=>(_0x475dfc[_0x341a33]='',_0x475dfc),{});return _0x3cd8bd['constructor']['create'](_0x537623,_0x32f7a6);}),'function'!=typeof _0x3cd8bd['config']['get']('trackChangesData')['editorCreator'])throw new _0x45f891('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5df11f){return N(this['editor'],!0x0,_0x5df11f);}['getDataWithDiscardedSuggestions'](_0x53f246){return N(this['editor'],!0x1,_0x53f246);}}class D extends _0x3c336f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x74380c){super(_0x74380c),this['result']='end';}['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(_0x17e755){return void 0x0!==_0x17e755['getRootsAttributes'];}async function N(_0x17c2a6,_0x1f5a8f,_0x1682e4){const _0x46021e=_0x5e663f(_0x17c2a6,T);_0x46021e['plugins']['push'](p,D),_0x46021e['rootsAttributes']=v(_0x17c2a6)?_0x17c2a6['getRootsAttributes']():void 0x0;const _0x3ebaf7=document['createDocumentFragment'](),_0x43dd5b=_0x17c2a6['config']['get']('trackChangesData')['editorCreator'],_0x4cbf2d=await _0x43dd5b(_0x46021e,()=>function(_0x2ff083){const _0x74ba11=document['createElement']('div');return _0x2ff083['appendChild'](_0x74ba11),_0x74ba11;}(_0x3ebaf7));!function(_0x1cfb09,_0x41fd3f){const _0xfd5242=_0x1cfb09['model']['document']['getRootNames']()['reduce']((_0x3dc96f,_0x51f379)=>(_0x3dc96f[_0x51f379]=_0x1cfb09['data']['get']({'rootName':_0x51f379}),_0x3dc96f),{}),_0x2af19a=_0x1cfb09['plugins']['get']('Users')['users']['map'](_0x2cdbef=>({'id':_0x2cdbef['id'],'name':_0x2cdbef['name']})),_0x1e5992=_0x1cfb09['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x49ea0d=_0x1cfb09['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1d2147=_0x41fd3f['plugins']['get']('Users'),_0x5be3b2=_0x41fd3f['plugins']['get']('TrackChangesEditing'),_0x39444d=_0x41fd3f['plugins']['get']('CommentsRepository');for(const _0x590c0b of _0x39444d['getCommentThreads']())_0x590c0b['remove']();for(const _0x495dd8 of _0x2af19a)_0x1d2147['getUser'](_0x495dd8['id'])||_0x1d2147['addUser'](_0x495dd8);_0x1d2147['me']||_0x1d2147['useAnonymousUser']();for(const _0xaee0c7 of _0x49ea0d)_0x39444d['addCommentThread'](_0xaee0c7);for(const _0xf3c638 of _0x1e5992)_0x5be3b2['addSuggestionData'](_0xf3c638);_0x41fd3f['data']['set'](_0xfd5242);}(_0x17c2a6,_0x4cbf2d),_0x4cbf2d['execute'](_0x1f5a8f?'acceptAllSuggestions':'discardAllSuggestions');const _0x3cddc0=v(_0x4cbf2d)?_0x4cbf2d['getFullData'](_0x1682e4):_0x4cbf2d['data']['get'](_0x1682e4);return await _0x4cbf2d['destroy'](),_0x3cddc0;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x2be873,PendingActions as _0x1b3abf,icons as _0x24919e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x9ee824,ObservableMixin as _0xecfd75,uid as _0x30a933,insertToPriorityArray as _0x5905be,priorities as _0x55e6df,logWarning as _0x494922,getEnvKeystrokeText as _0x45ae70,FocusTracker as _0x2d9544,KeystrokeHandler as _0xfa6b48,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x408f0d,View as _0x35fcbe,ViewCollection as _0x3700b4,FocusCycler as _0x815bc6,ViewModel as _0xe79664,createDropdown as Qt,SplitButtonView as _0x5e8136,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x14497f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x10e3b2,hashObject as _0x4dc8f2,surroundingMarkersDetector as _0x499b97,FOCUS_ANNOTATION_KEYSTROKE as _0x2f3654,AriaDescriptionView as _0x4d57e8,setupThreadKeyboardNavigation as _0x136a89,trimHtml as _0x5b6ce9,UserView as _0x2251ad,LateFocusButtonView as _0x1b29a6,getDateTimeFormatter as _0x2e8695,getAllMarkersDomElementsSorted as _0x1d452d,sanitizeEditorConfig as _0x36c3fd}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1a5965,LiveRange as _0x3f00a1,LivePosition as _0xe63aa9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x52e27,toWidget as _0x4e21a2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x430798,set as _0x28c5fa,isEqual as _0x4d1bff,unset as _0x45103c,omit as Tt}from'lodash-es';import{Delete as _0x3c22a1,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x17bcc1,ShiftEnter as _0x4c1f0c}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x4ee55d,_0x3e9183){super(_0x4ee55d),this['_enabledCommands']=_0x3e9183,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 _0x47fc15 of this['editor']['commands']['commands']())_0x47fc15['affectsData']&&!this['_enabledCommands']['has'](_0x47fc15)&&_0x47fc15['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5e80b5 of this['editor']['commands']['commands']())_0x5e80b5['affectsData']&&!this['_enabledCommands']['has'](_0x5e80b5)&&_0x5e80b5['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x336c09,_0x1ea200){super(_0x336c09),this['_suggestions']=_0x1ea200,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5b2a1d){const _0x164624=this['_suggestions']['get'](_0x5b2a1d);if(!_0x164624)throw new _0x9ee824('track-changes-accept-suggestion-not-found',this);const _0x46e3be=_0x164624['getRanges']();this['editor']['model']['canEditAt'](_0x46e3be)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x164624);}}class R extends ts{['_suggestions'];constructor(_0x58bc33,_0x792e9c){super(_0x58bc33),this['_suggestions']=_0x792e9c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x502153){const _0x3c6864=this['_suggestions']['get'](_0x502153);if(!_0x3c6864)throw new _0x9ee824('track-changes-discard-suggestion-not-found',this);const _0x2e270b=_0x3c6864['getRanges']();this['editor']['model']['canEditAt'](_0x2e270b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3c6864);}}function ls(_0x151e0e,_0x5cec0b){let _0x573aa0='';return _0x573aa0+=_0x151e0e['split']('*')['map']((_0x484312,_0x465165)=>_0x465165%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x484312)+'</span>':nn(_0x484312))['join'](''),_0x5cec0b&&(_0x573aa0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5cec0b['value']+'\x22\x20title=\x22'+_0x5cec0b['title']+'\x22></span>'),_0x573aa0;}function nn(_0x5d0796){const _0x196517=document['createElement']('span');return _0x196517['innerText']=_0x5d0796,_0x196517['innerHTML'];}function ss(_0x3892ac){return _0x3892ac['sort']((_0x4be33b,_0x1f4a74)=>'deletion'==_0x4be33b['type']&&'deletion'!=_0x1f4a74['type']?-0x1:'deletion'!=_0x4be33b['type']&&'deletion'==_0x1f4a74['type']?0x1:0x0);}function to(_0x2de89a,_0x4a7056){let _0x27f37f,_0x15384b=0x0;const _0x326f28=[],_0x5ced23=_0x4a7056['schema'];for(;_0x15384b<_0x2de89a['length'];){const _0x1f4e1d=_0x2de89a[_0x15384b],_0x30437f=_0x2de89a[_0x15384b+0x1];_0x27f37f||(_0x27f37f=_0x4a7056['createPositionBefore'](_0x1f4e1d)),on(_0x4a7056,_0x1f4e1d,_0x30437f)||(_0x326f28['push'](_0x4a7056['createRange'](_0x27f37f,_0x5ced23['isObject'](_0x1f4e1d)?_0x4a7056['createPositionAfter'](_0x1f4e1d):_0x4a7056['createPositionAt'](_0x1f4e1d,'end'))),_0x27f37f=null),_0x15384b++;}return _0x326f28;}function on(_0x4ada6d,_0x468310,_0x56f190){if(!_0x56f190)return!0x1;const _0x5057d7=_0x4ada6d['createPositionAfter'](_0x468310),_0xd100c=_0x4ada6d['createPositionBefore'](_0x56f190);return _0x5057d7['isTouching'](_0xd100c);}function rs(_0x1575f1,_0x7cc3ad,_0x5c5354){for(;_0x5c5354['length'];){const _0x32a291=_0x5c5354['splice'](0x0,0x64);_0x1575f1['change'](()=>{for(const _0x18f12c of _0x32a291)_0x18f12c['isInContent']&&_0x7cc3ad['execute'](_0x18f12c['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x38e04a,_0x72a1da,_0x37e44a){super(_0x38e04a),this['_command']=_0x72a1da,this['_suggestions']=_0x37e44a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x527ab7=Array['from'](this['_suggestions']['values']())['some'](_0x403628=>_0x403628['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x527ab7;}['execute'](){const _0x5af38d=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5ae9e0 of _0x5af38d){const _0xa6bc86=_0x5ae9e0['getRanges']();if(!this['editor']['model']['canEditAt'](_0xa6bc86))return;}rs(this['editor']['model'],this['_command'],_0x5af38d);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x11cd19,_0x1b9494,_0x2d3dbd){super(_0x11cd19),this['_command']=_0x1b9494,this['_suggestions']=_0x2d3dbd,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2f1e54=this['editor']['model']['document']['selection'],_0x27ac03=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1e11ae,_0x492b19){const _0x2311e9=Array['from'](_0x1e11ae['getRanges']()),_0x50489b=new Set();for(const _0x38c7b6 of _0x492b19)if(_0x38c7b6['isInContent']){for(const _0x42b1c2 of _0x2311e9)for(const _0x25fb7c of _0x38c7b6['getRanges']())(_0x42b1c2['isIntersecting'](_0x25fb7c)||_0x1e11ae['isCollapsed']&&!_0x38c7b6['isMultiRange']&&_0x38c7b6['next']&&_0x25fb7c['end']['isTouching'](_0x42b1c2['start']))&&_0x50489b['add'](_0x38c7b6);}return _0x50489b;}(_0x2f1e54,_0x27ac03),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x574ddf=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5a5864 of _0x574ddf){const _0x4e3aa0=_0x5a5864['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4e3aa0))return;}rs(this['editor']['model'],this['_command'],_0x574ddf);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0xecfd75(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x47563d,_0x5580d8){super(),this['id']=_0x5580d8['id'],this['type']=_0x5580d8['type'],this['subType']=_0x5580d8['subType']||null,this['author']=_0x5580d8['author'],this['creator']=_0x5580d8['creator']||_0x5580d8['author'],this['isExternal']=Boolean(_0x5580d8['attributes']&&_0x5580d8['attributes']['@external']),this['data']=null,this['_model']=_0x47563d,this['_onAccept']=_0x5580d8['onAccept'],this['_onDiscard']=_0x5580d8['onDiscard'],this['_onAttributesChange']=_0x5580d8['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5580d8['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 _0x5c6867=this;for(;_0x5c6867['previous'];)_0x5c6867=_0x5c6867['previous'];return _0x5c6867;}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'](_0x8d6baf){this['_markerNames']['add'](_0x8d6baf);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5376df=>this['_model']['markers']['get'](_0x5376df))['filter'](_0x26b40d=>_0x26b40d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x34c6b3=>{for(const _0x1cdc81 of this['getMarkers']())_0x34c6b3['removeMarker'](_0x1cdc81);}),this['_markerNames']['clear']();}['removeMarker'](_0x2098b6){this['_model']['change'](_0x50b8c=>{_0x50b8c['removeMarker'](_0x2098b6);}),this['_markerNames']['delete'](_0x2098b6);}['addRange'](_0x1ebfed){const _0x3d6c53='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3d6c53),this['_model']['change'](_0x39241d=>{_0x39241d['addMarker'](_0x3d6c53,{'range':_0x1ebfed,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1f38b9){for(const _0x3ecd94 of this['getRanges']())if(_0x3ecd94['isIntersecting'](_0x1f38b9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x442019=>_0x442019['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3d6a23,_0x495864)=>[..._0x3d6a23,..._0x495864['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x46649c=this['getRanges']();if(0x1!=_0x46649c['length'])return null;const _0x17cf99=_0x46649c[0x0],_0x53b69c=_0x17cf99['start']['nodeAfter'],_0x238b46=_0x17cf99['end']['nodeBefore'];return _0x53b69c instanceof _0x1a5965?_0x53b69c!=_0x238b46?null:_0x53b69c: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 _0x3c9ac9=[];let _0x34fd8c=this['head'];for(;_0x34fd8c;)_0x3c9ac9['push'](_0x34fd8c),_0x34fd8c=_0x34fd8c['next'];return _0x3c9ac9;}['setAttribute'](_0x1f626b,_0x2b3ca1){const _0x49a32a=_0x430798(this['attributes']);_0x28c5fa(_0x49a32a,_0x1f626b,_0x2b3ca1),_0x4d1bff(_0x49a32a,this['attributes'])||(this['attributes']=_0x49a32a,this['_onAttributesChange'](_0x49a32a));}['removeAttribute'](_0x3768ae){const _0x20de32=_0x430798(this['attributes']);_0x45103c(_0x20de32,_0x3768ae),_0x4d1bff(_0x20de32,this['attributes'])||(this['attributes']=_0x20de32,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 _0x30a933()['substr'](0x1,0x5);}}function o(_0x11c027,_0x2febb0,_0x14bc73){const t=_0x11c027['t'];switch(_0x2febb0){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',_0x14bc73);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x14bc73);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x14bc73);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x14bc73);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x14bc73);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',_0x14bc73);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x14bc73);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',_0x14bc73);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x14bc73);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x14bc73);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x14bc73);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x14bc73);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x14bc73);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x14bc73);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x14bc73);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x14bc73);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x14bc73);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x14bc73);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x14bc73);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x14bc73);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x14bc73);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x14bc73);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x14bc73);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'},_0x14bc73);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x14bc73);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x14bc73);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x14bc73);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x14bc73);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x14bc73);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x14bc73);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x14bc73);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x14bc73);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'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x14bc73);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x14bc73);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'},_0x14bc73);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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x14bc73);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x14bc73);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x14bc73);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'},_0x14bc73);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'},_0x14bc73);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'},_0x14bc73);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2febb0;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x11ede8,_0x2aae2a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x11ede8,this['_locale']=_0x2aae2a;}['getDescriptions'](_0x13cddf){const _0x22d634=[],_0x5964b7=new Set(),_0x4c96ab=new Set();for(let _0x59594c=0x0;_0x59594c<_0x13cddf['length'];_0x59594c++){const _0x2327c4=_0x13cddf[_0x59594c];if(!_0x2327c4['isInContent'])continue;const _0xb2699=this['_handleCustomCallbackDescription'](_0x2327c4);if(_0xb2699){if(null!=_0x2327c4['subType']){if(_0x5964b7['has'](_0x2327c4['subType']))continue;_0x5964b7['add'](_0x2327c4['subType']);}_0x22d634['push'](_0xb2699);}else{if('attribute'!=_0x2327c4['type'])'insertion'!=_0x2327c4['type']&&'deletion'!=_0x2327c4['type']||this['_handleInsertRemoveSuggestionDescription'](_0x22d634,_0x2327c4,_0x13cddf[_0x59594c+0x1]);else{const _0x436240=_0x2327c4['data']['key'];if(_0x4c96ab['has'](_0x436240))continue;_0x4c96ab['add'](_0x2327c4['data']['key']),_0x436240==m?this['_handleRenameSuggestionDescription'](_0x22d634,_0x2327c4):this['_handleAttributeSuggestionDescription'](_0x22d634,_0x2327c4);}}}return this['_resolveDescriptionItems'](_0x22d634);}['registerDescriptionCallback'](_0x2afeb8){this['_customCallbacks']['push'](_0x2afeb8);}['registerElementLabel'](_0x2e7d4b,_0x14d8ee,_0x5bfca6=_0x55e6df['normal']){'function'==typeof _0x2e7d4b?_0x5905be(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2e7d4b,'label':_0x14d8ee,'priority':_0x5bfca6}):this['_itemLabels']['set'](_0x2e7d4b,_0x14d8ee);}['registerAttributeLabel'](_0x3014aa,_0x57839c){this['_attributeLabels']['set'](_0x3014aa,_0x57839c);}['getItemLabel'](_0x4d5904,_0x2988c4=0x1){let _0x302f54;for(const _0x4f7f7d of this['_itemLabelsCallbacks'])if(_0x4f7f7d['matchingCallback'](_0x4d5904)){_0x302f54=_0x4f7f7d['label'];break;}return _0x302f54||(_0x302f54=this['_itemLabels']['get'](_0x4d5904['name'])),_0x302f54?_0x302f54(_0x2988c4):0x1!==_0x2988c4?_0x2988c4+'\x20'+_0x4d5904['name']+'s':''+_0x4d5904['name'];}['_addDescriptionItems'](_0x6df408,_0x11c6e9){const _0x33ce4a=_0x11c6e9['getFirstRange']()['getWalker'](),_0x490cd8='insertion'==_0x11c6e9['type']?'add':'remove';for(const _0x399312 of _0x33ce4a){const _0x3aba2a=_0x399312['item'],_0x217961=_0x6df408[_0x6df408['length']-0x1];if(_0x3aba2a['is']('$textProxy'))_0x217961&&_0x217961['type']['indexOf']('Container')>-0x1&&_0x6df408['pop'](),_0x217961&&'text'==_0x217961['type']?_0x217961[_0x490cd8]+=_0x3aba2a['data']:_0x6df408['push']({'type':'text','add':'add'==_0x490cd8?_0x3aba2a['data']:'','remove':'remove'==_0x490cd8?_0x3aba2a['data']:''});else{if(this['_schema']['isObject'](_0x3aba2a)){const _0x27f1f8=_0x3aba2a;if(_0x217961&&_0x217961['type']['indexOf']('Container')>-0x1&&_0x6df408['pop'](),'elementEnd'==_0x399312['type'])continue;_0x217961&&_0x217961['type']==_0x490cd8+'Object'&&_0x217961['element']['name']==_0x27f1f8['name']?_0x217961['quantity']++:_0x6df408['push']({'type':_0x490cd8+'Object','element':_0x27f1f8,'quantity':0x1}),_0x33ce4a['skip'](_0x191ba9=>!('elementEnd'==_0x191ba9['type']&&_0x191ba9['item']==_0x3aba2a));}else{if(this['_schema']['checkChild'](_0x3aba2a,'$text')||_0x3aba2a['is']('element','softBreak')){const _0x57871b=_0x3aba2a;if('add'==_0x490cd8&&'elementStart'==_0x399312['type']||'remove'==_0x490cd8&&'elementEnd'==_0x399312['type'])continue;if(_0x217961&&-0x1==_0x217961['type']['indexOf']('Container')){'text'==_0x217961['type']&&(_0x217961[_0x490cd8]+='\x0a');continue;}let _0x419a6c;if(_0x419a6c='add'==_0x490cd8?_0x57871b['nextSibling']&&!this['_schema']['isObject'](_0x57871b['nextSibling'])?_0x57871b['nextSibling']:null:_0x57871b['previousSibling']&&!this['_schema']['isObject'](_0x57871b['previousSibling'])?_0x57871b['previousSibling']:null,_0x57871b['isEmpty']||_0x419a6c&&_0x419a6c['isEmpty']){const _0x312ac0=_0x419a6c&&_0x419a6c['isEmpty']?_0x419a6c:_0x57871b;_0x217961&&_0x217961['type']==_0x490cd8+'EmptyContainer'&&_0x217961['element']['name']==_0x312ac0['name']?_0x217961['quantity']++:_0x6df408['push']({'type':_0x490cd8+'EmptyContainer','element':_0x312ac0,'quantity':0x1});}else _0x6df408['push']({'type':_0x490cd8+'Container','element':_0x57871b});}}}}}['_resolveDescriptionItems'](_0x1ac68e){const _0x267313=this['_locale'],_0x4849af=[],_0x44463e=[],_0x1af690=[];for(const _0x43d633 of _0x1ac68e)switch(_0x43d633['type']){case'text':if(_0x43d633['add']=_0x43d633['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x43d633['remove']=_0x43d633['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x43d633['add']&&''!=_0x43d633['remove']){_0x4849af['push']({'type':'replace','content':o(_0x267313,'REPLACE_TEXT',['\x22'+_0x43d633['remove']+'\x22','\x22'+_0x43d633['add']+'\x22'])});continue;}if(null!=_0x43d633['add']['match'](/^ +$/)){_0x4849af['push']({'type':'insertion','content':o(_0x267313,'*Insert:*\x20%0',o(_0x267313,'ELEMENT_SPACE',_0x43d633['add']['length']))});continue;}if(null!=_0x43d633['remove']['match'](/^ +$/)){_0x4849af['push']({'type':'deletion','content':o(_0x267313,'*Remove:*\x20%0',o(_0x267313,'ELEMENT_SPACE',_0x43d633['remove']['length']))});continue;}if(''!=_0x43d633['add']){_0x4849af['push']({'type':'insertion','content':o(_0x267313,'*Insert:*\x20%0','\x22'+_0x43d633['add']+'\x22')});continue;}_0x4849af['push']({'type':'deletion','content':o(_0x267313,'*Remove:*\x20%0','\x22'+_0x43d633['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4849af['push']({'type':'insertion','content':o(_0x267313,'*Insert:*\x20%0',this['getItemLabel'](_0x43d633['element'],_0x43d633['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4849af['push']({'type':'deletion','content':o(_0x267313,'*Remove:*\x20%0',this['getItemLabel'](_0x43d633['element'],_0x43d633['quantity']))});continue;case'addContainer':_0x4849af['push']({'type':'insertion','content':o(_0x267313,'*Split:*\x20%0',this['getItemLabel'](_0x43d633['element'],_0x43d633['quantity']))});continue;case'removeContainer':_0x4849af['push']({'type':'deletion','content':o(_0x267313,'*Merge:*\x20%0',this['getItemLabel'](_0x43d633['element'],_0x43d633['quantity']))});continue;case'addFormat':_0x44463e['push'](_0x43d633['key']);continue;case'removeFormat':_0x1af690['push'](_0x43d633['key']);continue;default:_0x4849af['push'](_0x43d633);}if(_0x44463e['length']){const _0x480d95=_0x44463e['map'](_0x42c32b=>this['_attributeLabels']['has'](_0x42c32b)?this['_attributeLabels']['get'](_0x42c32b):_0x42c32b)['join'](',\x20');_0x4849af['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x480d95)});}if(_0x1af690['length']){const _0x54739f=_0x1af690['map'](_0x1855a1=>this['_attributeLabels']['has'](_0x1855a1)?this['_attributeLabels']['get'](_0x1855a1):_0x1855a1)['join'](',\x20');_0x4849af['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x54739f)});}return _0x4849af;}['_handleCustomCallbackDescription'](_0x246e0b){for(const _0x3b2ce5 of this['_customCallbacks']){const _0xe4da64=_0x3b2ce5(_0x246e0b);if(_0xe4da64&&'type'in _0xe4da64)return _0xe4da64;}}['_handleAttributeSuggestionDescription'](_0x47c8f8,_0x42247b){const _0x589aa2=_0x42247b['data'],_0xdb775b=void 0x0===_0x589aa2['newValue']?'removeFormat':'addFormat';_0x47c8f8['push']({'type':_0xdb775b,'key':_0x589aa2['key']});}['_handleRenameSuggestionDescription'](_0x2c9a56,_0x45e34e){_0x2c9a56['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x45e34e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5318cc,_0xd65d2f,_0x3510e5){if(this['_addDescriptionItems'](_0x5318cc,_0xd65d2f),_0x3510e5&&_0x3510e5['getFirstRange']()&&!_0xd65d2f['getFirstRange']()['end']['isEqual'](_0x3510e5['getFirstRange']()['start'])){const _0x22c3a1=_0x5318cc[_0x5318cc['length']-0x1],_0x17f351='insertion'==_0xd65d2f['type']?'add':'remove';_0x22c3a1&&'text'==_0x22c3a1['type']&&(_0x22c3a1[_0x17f351]+='\x0a');}}}class V extends _0x2be873{['afterInit'](){const _0x4918f2=this['editor'],_0x278c28=_0x4918f2['plugins']['get']('TrackChangesEditing');_0x4918f2['commands']['get']('showAIAssistant')&&_0x278c28['enableCommand']('showAIAssistant');}}class U extends _0x2be873{['afterInit'](){const _0x11a94e=this['editor'],_0x51e282=_0x11a94e['locale'];if(!_0x11a94e['plugins']['has']('AlignmentEditing'))return;const _0x3b4a16=_0x11a94e['plugins']['get']('TrackChangesEditing');_0x3b4a16['enableDefaultAttributesIntegration']('alignment'),_0x3b4a16['registerBlockAttribute']('alignment'),_0x3b4a16['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x51e282,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2afa5a=this['editor'],_0x5210d9=_0x2afa5a['locale'];_0x2afa5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fe0ba=>{if('formatBlock'!=_0x3fe0ba['type'])return;const {data:_0x5d89a8}=_0x3fe0ba;if(_0x5d89a8&&'alignment'==_0x5d89a8['commandName']){const _0x3c464a=_0x5d89a8['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5210d9,'*Format:*\x20%0',function(_0x4d7661){switch(_0x4d7661){case'left':return o(_0x5210d9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5210d9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5210d9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5210d9,'FORMAT_JUSTIFY_TEXT');}}(_0x3c464a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2be873{['afterInit'](){const _0x1eebda=this['editor'],_0x4aa636=_0x1eebda['plugins']['get']('TrackChangesEditing'),_0x51ce8a=_0x1eebda['locale'];for(const _0xf8a62c of ti){if(!_0x1eebda['plugins']['has'](_0xf8a62c))continue;const _0x55fd20=_0xf8a62c['slice'](0x0,-0x7)['toLowerCase'](),_0x350055='FORMAT_'+_0x55fd20['toUpperCase']();_0x4aa636['enableDefaultAttributesIntegration'](_0x55fd20),_0x4aa636['registerInlineAttribute'](_0x55fd20),_0x4aa636['descriptionFactory']['registerAttributeLabel'](_0x55fd20,o(_0x51ce8a,_0x350055));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47a570=this['editor'],_0x408eb2=_0x47a570['locale'],_0x5a3499=_0x47a570['plugins']['get']('TrackChangesEditing');function _0x102a88(_0x2b5129,_0x1398e3){_0x5a3499['descriptionFactory']['registerDescriptionCallback'](_0xb73648=>{if('formatInline'!=_0xb73648['type'])return;const {data:_0x41d520}=_0xb73648;return _0x41d520&&_0x41d520['commandName']===_0x2b5129?_0x41d520['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x408eb2,'*Format:*\x20%0',_0x1398e3)}:{'type':'format','content':o(_0x408eb2,'*Remove\x20format:*\x20%0',_0x1398e3)}:void 0x0;});}_0x102a88('bold',o(_0x408eb2,'FORMAT_BOLD')),_0x102a88('italic',o(_0x408eb2,'FORMAT_ITALIC')),_0x102a88('underline',o(_0x408eb2,'FORMAT_UNDERLINE')),_0x102a88('code',o(_0x408eb2,'FORMAT_CODE')),_0x102a88('strikethrough',o(_0x408eb2,'FORMAT_STRIKETHROUGH')),_0x102a88('subscript',o(_0x408eb2,'FORMAT_SUBSCRIPT')),_0x102a88('superscript',o(_0x408eb2,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2be873{['afterInit'](){const _0x2abd95=this['editor'],_0x534ca0=_0x2abd95['locale'];if(!_0x2abd95['plugins']['has']('BlockQuoteEditing'))return;const _0x2f93bc=_0x2abd95['plugins']['get']('TrackChangesEditing'),_0x214b5f=this['editor']['commands']['get']('blockQuote');_0x2f93bc['enableCommand']('blockQuote',(_0x3495c7,_0x165dd4={})=>{const _0x57bf5b=this['editor']['model']['document']['selection'],_0x12e914=_0x165dd4&&void 0x0!==_0x165dd4['forceValue']?_0x165dd4['forceValue']:!_0x214b5f['value'];let _0x1ced7d=[];if(_0x12e914){const _0x2248f4=Array['from'](_0x57bf5b['getSelectedBlocks']())['filter'](_0x49e8fa=>oo(_0x49e8fa)||function(_0x11bdf4,_0x309978){const _0x115451=_0x309978['checkChild'](_0x11bdf4['parent'],'blockQuote'),_0x35410c=_0x309978['checkChild'](['$root','blockQuote'],_0x11bdf4);return _0x115451&&_0x35410c;}(_0x49e8fa,this['editor']['model']['schema']));_0x1ced7d=to(_0x2248f4,_0x2abd95['model']);}else{const _0x58dd0c=Array['from'](_0x57bf5b['getSelectedBlocks']())['filter'](_0x1850d6=>oo(_0x1850d6));_0x1ced7d=to(_0x58dd0c,_0x2abd95['model']);}_0x2abd95['model']['change'](()=>{for(const _0x236d58 of _0x1ced7d)_0x2f93bc['markBlockFormat'](_0x236d58,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x12e914}]});});}),_0x2f93bc['descriptionFactory']['registerDescriptionCallback'](_0xd71f47=>{const {data:_0xc2c74d}=_0xd71f47;if(_0xc2c74d&&'blockQuote'==_0xc2c74d['commandName']){const _0x3b40e2=o(_0x534ca0,'ELEMENT_BLOCK_QUOTE');return _0xc2c74d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x534ca0,'*Set\x20format:*\x20%0',_0x3b40e2)}:{'type':'format','content':o(_0x534ca0,'*Remove\x20format:*\x20%0',_0x3b40e2)};}});}}function oo(_0x35a096){return'blockQuote'==_0x35a096['parent']['name'];}class L extends _0x2be873{['afterInit'](){const _0x50dd23=this['editor'];_0x50dd23['plugins']['has']('CaseChange')&&(_0x50dd23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x50dd23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x50dd23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2be873{['afterInit'](){const _0x52cb1d=this['editor'];_0x52cb1d['commands']['get']('ckbox')&&_0x52cb1d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x2be873{['afterInit'](){const _0x47d6ae=this['editor'];if(!_0x47d6ae['plugins']['has']('CodeBlock'))return;const _0x43766b=_0x47d6ae['plugins']['get']('TrackChangesEditing'),_0x42bfff=_0x47d6ae['locale'],_0x489852=_0x47d6ae['config']['get']('codeBlock')['languages'],_0x4ad779=_0x47d6ae['commands']['get']('codeBlock');_0x43766b['enableCommand']('indentCodeBlock'),_0x43766b['enableCommand']('outdentCodeBlock'),_0x43766b['enableCommand']('codeBlock',(_0x4d7935,_0x1df5a7={})=>{const _0x3f0414=_0x47d6ae['model'],_0x254254=_0x47d6ae['model']['document']['selection'],_0x1ff997=_0x1df5a7&&void 0x0!==_0x1df5a7['forceValue']?_0x1df5a7['forceValue']:!_0x4ad779['value'];let _0x5534d5;_0x1df5a7['language']||(_0x1df5a7['language']=_0x489852[0x0]['language']),_0x5534d5=_0x1ff997?Array['from'](_0x254254['getSelectedBlocks']())['filter'](_0x329ac3=>eo(_0x329ac3)||function(_0x4b9adb,_0x3051c2){if(_0x4b9adb['is']('rootElement')||_0x3051c2['isLimit'](_0x4b9adb))return!0x1;return _0x3051c2['checkChild'](_0x4b9adb['parent'],'codeBlock');}(_0x329ac3,_0x3f0414['schema'])):Array['from'](_0x254254['getSelectedBlocks']())['filter'](_0x273065=>eo(_0x273065));const _0x136351=to(_0x5534d5,_0x3f0414);_0x3f0414['change'](()=>{for(const _0x3ad025 of _0x136351)_0x43766b['markBlockFormat'](_0x3ad025,{'commandName':'codeBlock','commandParams':[{..._0x1df5a7,'forceValue':_0x1ff997}],'formatGroupId':'blockName'});});}),(_0x43766b['descriptionFactory']['registerElementLabel']('codeBlock',_0x3fa3df=>o(_0x42bfff,'ELEMENT_CODE_BLOCK',_0x3fa3df)),_0x43766b['descriptionFactory']['registerDescriptionCallback'](_0x251b96=>{if('formatBlock'!=_0x251b96['type'])return;const _0x4737ca=_0x42bfff['t'],{data:_0x11d420}=_0x251b96;if(!_0x11d420||'codeBlock'!=_0x11d420['commandName'])return;const _0x3a0eb0=_0x11d420['commandParams'][0x0]['language'],_0x3b139d=_0x4737ca(_0x489852['find'](_0x14b7b9=>_0x14b7b9['language']===_0x3a0eb0)['label'])['toLowerCase']();return _0x11d420['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42bfff,'*Set\x20format:*\x20%0',o(_0x42bfff,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3b139d+')')}:{'type':'format','content':o(_0x42bfff,'*Remove\x20format:*\x20%0',o(_0x42bfff,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x163560){return'codeBlock'==_0x163560['name'];}class q extends _0x2be873{['afterInit'](){const _0x2ff608=this['editor'];if(!_0x2ff608['plugins']['has']('CommentsEditing'))return;_0x2ff608['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x49cdc4,_0x156f26,_0x5932ce){const _0x2b84c8=[];for(const _0x5c3f99 of _0x156f26['getItems']())_0x5c3f99['hasAttribute'](_0x49cdc4)&&_0x2b84c8['push'](_0x5932ce['createRangeOn'](_0x5c3f99));return _0x2b84c8;}function _e(_0x3ae054,_0x5f2b39,{showActiveMarker:_0x41f723=!0x0}={}){const _0x4e46bb=_0x3ae054['plugins']['get']('TrackChangesEditing');return(_0x3175a2,_0x41c3ba,_0x147f10)=>{if(!_0x147f10['consumable']['test'](_0x41c3ba['markerRange'],_0x3175a2['name']))return;const _0x57b33c=_0x41c3ba['markerRange']['getWalker'](),_0x58bae7=_0x41c3ba['markerRange']['start'],_0x17483a=_0x3ae054['model']['schema'];let _0x4fb368=null,_0x47675c=null,_0x36c757=!0x1,_0x2dded3=!0x1;for(const _0x208300 of _0x57b33c){const _0x28cd2c=_0x208300['item'];_0x36c757=_0x36c757||_0x17483a['isContent'](_0x28cd2c);const _0x441f6f=_0x147f10['mapper']['toViewElement'](_0x28cd2c);if(_0x441f6f&&_0x441f6f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x208300['type']&&(_0x17483a['isBlock'](_0x28cd2c)&&!_0x17483a['isLimit'](_0x28cd2c)&&(_0x28cd2c['nextSibling']||_0x58bae7['isAtEnd']?_0x4fb368&&_0x4fb368['parent']==_0x28cd2c||(_0x4fb368=_0x28cd2c,_0x15cb14(_0x208300['previousPosition']),_0x2dded3=!0x0):_0x47675c=_0x47675c||_0x208300['previousPosition']));}function _0x15cb14(_0x44cb02){const {authorId:_0x25cfb6}=_0x4e46bb['_splitMarkerName'](_0x41c3ba['markerName']),_0x17931d=_0x147f10['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5f2b39,'data-author-id':_0x25cfb6}),_0x204602=_0x147f10['mapper']['toViewPosition'](_0x44cb02);_0x41f723&&_0x4e46bb['activeMarkers']['includes'](_0x41c3ba['markerName'])&&_0x147f10['writer']['addClass']('ck-suggestion-marker--active',_0x17931d),_0x147f10['writer']['insert'](_0x204602,_0x17931d),_0x147f10['mapper']['bindElementToMarker'](_0x17931d,_0x41c3ba['markerName']);}_0x36c757||_0x2dded3||!_0x47675c||_0x15cb14(_0x47675c);};}class z extends _0x2be873{static get['requires'](){return[_0x3c22a1];}['init'](){const _0x2ec3a9=this['editor'],_0x4738d0=_0x2ec3a9['plugins']['get']('TrackChangesEditing');_0x4738d0['enableCommand']('delete');const _0x5d961a=_0x2ec3a9['commands']['get']('deleteForward');_0x4738d0['enableCommand']('deleteForward',(_0x3b18d7,_0x5e025d={})=>{const _0x4cb356=_0x2ec3a9['model']['createSelection'](_0x2ec3a9['model']['document']['selection']);_0x4cb356['isCollapsed']&&_0x2ec3a9['model']['modifySelection'](_0x4cb356,{'direction':'forward','unit':_0x5e025d['unit']});const _0x23f572=_0x4cb356['getFirstRange'](),_0x4012e0=_0x3f00a1['fromRange'](_0x23f572);let _0xd9748d;_0x3b18d7(_0x5e025d),_0xd9748d='$graveyard'==_0x4012e0['root']['rootName']?_0x2ec3a9['model']['createRange'](_0x23f572['start']):_0x2ec3a9['model']['createRange'](_0x4012e0['start'],_0x4012e0['end']),_0x4012e0['detach'](),_0x2ec3a9['model']['enqueueChange'](_0x5d961a['buffer']['batch'],_0x305fb1=>{_0x5d961a['buffer']['lock'](),_0x305fb1['setSelection'](_0x305fb1['createRange'](_0xd9748d['end'])),_0x5d961a['buffer']['unlock']();});}),_0x2ec3a9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2ec3a9,'merge'),{'priority':'high'}),_0x2ec3a9['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3360db,_0x496e13,_0x29200b)=>{_0x29200b['options']['showSuggestionHighlights']&&_e(_0x2ec3a9,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3360db,_0x496e13,_0x29200b);},{'priority':'high'}),_0x2ec3a9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5f3183,_0x2b2aaf,_0x294a6b)=>{const _0x42ff21=_0x294a6b['mapper']['markerNameToElements'](_0x2b2aaf['markerName']);if(_0x42ff21){for(const _0x3243a8 of _0x42ff21)_0x3243a8['is']('uiElement')&&(_0x294a6b['mapper']['unbindElementFromMarkerName'](_0x3243a8,_0x2b2aaf['markerName']),_0x294a6b['writer']['remove'](_0x3243a8));}},{'priority':'high'});}}class K extends _0x2be873{['afterInit'](){const _0x427a72=this['editor'];if(!_0x427a72['plugins']['has']('ListEditing'))return;const _0x4a9244=_0x427a72['locale'],_0x550e00=_0x427a72['plugins']['get']('TrackChangesEditing'),_0x1c696f=_0x427a72['plugins']['has']('TodoListEditing'),_0x161a46=!!_0x427a72['config']['get']('list.multiBlock');function _0x1b350f(_0x495568){return{'type':'format','content':''+o(_0x4a9244,'*Set\x20format:*\x20%0',_0x495568)};}function _0x1f3220(_0x2e2759){return{'type':'format','content':''+o(_0x4a9244,'*Remove\x20format:*\x20%0',_0x2e2759)};}_0x550e00['enableDefaultAttributesIntegration']('numberedList'),_0x550e00['enableDefaultAttributesIntegration']('bulletedList'),_0x550e00['enableDefaultAttributesIntegration']('customNumberedList'),_0x550e00['enableDefaultAttributesIntegration']('customBulletedList'),_0x550e00['enableDefaultAttributesIntegration']('indentList'),_0x550e00['enableDefaultAttributesIntegration']('outdentList'),_0x550e00['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x550e00['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x550e00['registerBlockAttribute']('listItemId'),_0x550e00['registerBlockAttribute']('listType'),_0x550e00['registerBlockAttribute']('listIndent'),_0x161a46&&(_0x550e00['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x550e00['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1c696f&&(_0x550e00['enableDefaultAttributesIntegration']('todoList'),_0x550e00['enableDefaultAttributesIntegration']('checkTodoList'),_0x550e00['registerBlockAttribute']('todoListChecked'),_0x550e00['descriptionFactory']['registerDescriptionCallback'](_0x2e408b=>{const {data:_0x24812e}=_0x2e408b;if(_0x24812e&&'todoListChecked'==_0x24812e['key'])return{'type':'format','content':_0x24812e['newValue']?o(_0x4a9244,'*Check\x20item*'):o(_0x4a9244,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1b3d96=>{if(_0x1b3d96['batch']['isUndo'])return!0x1;let _0x55e873=!0x1;const _0x1be916=_0x550e00['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d8110=>'todoListChecked'===_0x550e00['_getAttributeKey'](_0x4d8110));for(const _0x468fa3 of _0x1be916){'todo'!=_0x468fa3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x550e00['_findSuggestions'](_0x468fa3['getFirstRange'](),'attribute')['find'](_0x55ad74=>'listType'===_0x550e00['_getAttributeKey'](_0x55ad74['suggestion']))||(_0x1b3d96['removeMarker'](_0x468fa3['getFirstMarker']()),_0x55e873=!0x0));}return _0x55e873;})),_0x550e00['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4a9244,'FORMAT_INDENT'));const _0x37ed48={'type':'format','content':''};_0x550e00['descriptionFactory']['registerDescriptionCallback'](_0x501a3b=>{const {data:_0x1227a1}=_0x501a3b;if(!_0x1227a1||'listType'!=_0x1227a1['key'])return;let _0x52dba5=_0x501a3b['head'];for(;_0x52dba5;){if(_0x52dba5['data']&&(('listStyle'==_0x52dba5['data']['key']||'listMarkerStyle'==_0x52dba5['data']['key'])&&(_0x52dba5['data']['newValue']&&'default'!=_0x52dba5['data']['newValue']||'default'!=_0x52dba5['data']['oldValue']&&!_0x1227a1['newValue'])||!_0x161a46&&_0x52dba5['data']['key']==m))return _0x37ed48;_0x52dba5=_0x52dba5['next'];}if(null==_0x1227a1['newValue'])switch(_0x1227a1['oldValue']){case'bulleted':return _0x1f3220(o(_0x4a9244,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f3220(o(_0x4a9244,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f3220(o(_0x4a9244,'ELEMENT_TODO_LIST'));}switch(_0x1227a1['newValue']){case'bulleted':return _0x1b350f(o(_0x4a9244,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b350f(o(_0x4a9244,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b350f(o(_0x4a9244,'ELEMENT_TODO_LIST'));}}),_0x550e00['descriptionFactory']['registerDescriptionCallback'](_0x575a84=>{const {data:_0xeae561}=_0x575a84;if(_0xeae561&&'listIndent'==_0xeae561['key'])return null==_0xeae561['newValue']||null==_0xeae561['oldValue']&&0x0==_0xeae561['newValue']?_0x37ed48:void 0x0;}),_0x550e00['descriptionFactory']['registerDescriptionCallback'](_0x59abea=>{if('attribute'!=_0x59abea['type'])return;const {data:_0x2de92c}=_0x59abea;if(!_0x2de92c||'listItemId'!=_0x2de92c['key'])return;const _0x5dbf7b=Ee(_0x59abea);return'newValue'==_0x5dbf7b?{'type':'format','content':o(_0x4a9244,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5dbf7b?{'type':'format','content':o(_0x4a9244,'*Split:*\x20list\x20item')}:_0x37ed48;}),_0x427a72['model']['document']['registerPostFixer'](_0x144894=>this['listItemIdFixer'](_0x144894)),_0x427a72['model']['document']['registerPostFixer'](_0xece51f=>this['noTrackChangesFixer'](_0xece51f)),_0x427a72['model']['document']['on']('change:data',(_0x832fe4,_0x1bbf5e)=>{if(_0x1bbf5e['isUndo']||!_0x1bbf5e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1950dc){if(_0x1950dc['batch']['isUndo']||!_0x1950dc['batch']['isLocal'])return!0x1;let _0x32dc93=!0x1;const _0x488caa=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e2a18=>_0x4e2a18['data']&&'listItemId'==_0x4e2a18['data']['key'])['filter'](_0x1b24ea=>_0x1b24ea['data']['newValue']&&_0x1b24ea['data']['oldValue']);for(const _0x752f07 of _0x488caa)Ee(_0x752f07)||(_0x1950dc['removeMarker'](_0x752f07['getFirstMarker']()),_0x32dc93=!0x0);return _0x32dc93;}['noTrackChangesFixer'](_0x35ee2f){if(_0x35ee2f['batch']['isUndo']||!_0x35ee2f['batch']['isLocal'])return!0x1;const _0x4f521f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4f521f['trackChangesCommand']['value'])return!0x1;let _0x4cf007=!0x1;const _0x3ecc69=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x24ca6e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x53ad56=>'attribute'==_0x53ad56['type'])['filter'](_0x3f9e03=>_0x3ecc69['includes'](_0x3f9e03['attributeKey']));if(0x0==_0x24ca6e['length'])return _0x4cf007;for(const _0x448f88 of _0x24ca6e){const _0x548627=_0x4f521f['_findSuggestions'](_0x448f88['range'],'attribute')['filter'](_0xfc7870=>!_0xfc7870['meta']['isNextTo'])['map'](_0x2acbc4=>_0x2acbc4['suggestion'])['filter'](_0x19dd96=>{const _0x3f92f0=_0x4f521f['_getAttributeKey'](_0x19dd96);return _0x3ecc69['includes'](_0x3f92f0);});if(_0x548627['length']){for(const _0x2a749c of _0x548627)_0x35ee2f['removeMarker'](_0x2a749c['getFirstMarker']());_0x4cf007=!0x0;}}return _0x4cf007;}['assureChains'](){const _0x1aaf36=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3263cb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x294be1;const _0x2aa2b8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1ec99f=>{if(_0x1ec99f['data']['oldRange']||!_0x1ec99f['data']['newRange'])return null;if(!_0x1ec99f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1ca126}=_0x1aaf36['_splitMarkerName'](_0x1ec99f['name']);if(!_0x1aaf36['hasSuggestion'](_0x1ca126))return null;const _0x17829f=_0x1aaf36['getSuggestion'](_0x1ca126);return _0x3263cb['includes'](_0x17829f['data']['key']);})['map'](_0x4f4e93=>{const {id:_0x43da2a}=_0x1aaf36['_splitMarkerName'](_0x4f4e93['name']),_0x12f2e1=_0x1aaf36['getSuggestion'](_0x43da2a);return _0x294be1=_0x12f2e1['attributes']['groupId'],_0x12f2e1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2aa2b8['size'])return;const _0x4f0ed9=_0x1aaf36['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ca285=>'attribute'==_0x1ca285['type']&&_0x1ca285['data']&&_0x3263cb['includes'](_0x1ca285['data']['key'])&&_0x1ca285['attributes']['groupId']!=_0x294be1)['map'](_0x195b8c=>({'listItem':_0x195b8c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x195b8c['attributes']['groupId']})),_0x420dd3=new Set();for(const {groupId:_0x6ab042,listItem:_0x4908b1}of _0x4f0ed9)_0x2aa2b8['has'](_0x4908b1)&&_0x420dd3['add'](_0x6ab042);for(const _0x235d23 of _0x1aaf36['getSuggestions']())_0x420dd3['has'](_0x235d23['attributes']['groupId'])&&_0x235d23['setAttribute']('groupId',_0x294be1);}['_supportLegacySuggestions'](){const _0x1225e4=this['editor'],_0x1e3d08=_0x1225e4['locale'],_0x52914e=_0x1225e4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x52914e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x36f9fc,_0x4d39f5){const _0x6543e9=[];for(let _0x4339e4 of _0x36f9fc)_0x4339e4['start']['nodeAfter']===_0x4339e4['end']['parent']&&(_0x4339e4=_0x1225e4['model']['createRange'](_0x1225e4['model']['createPositionAt'](_0x4339e4['start']['nodeAfter'],0x0))),_0x6543e9['push'](_0x4339e4);_0x1225e4['model']['change'](_0x454d5a=>{const _0x50853c=_0x1225e4['model']['document']['selection'],_0x1a57fa=Array['from'](_0x50853c['getRanges']())['map'](_0x268c69=>_0x3f00a1['fromRange'](_0x268c69));_0x454d5a['setSelection'](_0x6543e9),_0x1225e4['commands']['get'](_0x4d39f5['commandName'])['refresh'](),_0x4d39f5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1225e4['execute'](_0x4d39f5['commandName'],..._0x4d39f5['commandParams']),_0x454d5a['setSelection'](_0x1a57fa);for(const _0x4621fd of _0x1a57fa)_0x4621fd['detach']();});}),_0x52914e['descriptionFactory']['registerElementLabel'](function(_0x3f8c17){const _0x140e89=!_0x1225e4['model']['schema']['isObject'](_0x3f8c17),_0x689576=_0x3f8c17['previousSibling'],_0x33d806=_0x3f8c17['nextSibling'],_0x4c7916=_0x3f8c17['getAttribute']('listItemId'),_0x268365=!_0x689576||_0x689576['getAttribute']('listItemId')!==_0x4c7916,_0x187f98=!_0x33d806||_0x33d806['getAttribute']('listItemId')!==_0x4c7916;return _0x140e89&&Boolean(_0x4c7916)&&_0x268365&&_0x187f98;},_0x169c36=>o(_0x1e3d08,'ELEMENT_LIST_ITEM',_0x169c36));}['_registerLegacyDescription'](){const _0xf82026=this['editor'],_0x19cc2f=_0xf82026['locale'];function _0x39f8b8(_0x569edc){const _0x5d0f76=_0xf82026['commands']['get']('bulletedList')['value'],_0x3eb85f=_0xf82026['commands']['get']('numberedList')['value'];return'numberedList'===_0x569edc?_0x5d0f76:_0x3eb85f;}_0xf82026['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2237f5){if('formatBlock'!=_0x2237f5['type'])return;const {data:_0x51f7c2}=_0x2237f5;if(!_0x51f7c2)return;let _0x31d4eb,_0x549097,_0x19b418,_0x26f102;switch(_0x51f7c2['commandName']){case'bulletedList':_0x19b418=_0x51f7c2['commandParams'][0x0]['forceValue'],_0x26f102=_0x39f8b8(_0x51f7c2['commandName']),_0x31d4eb=_0x19b418?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x26f102&&_0xf82026['config']['get']('list.multiBlock')||(_0x31d4eb='*Change\x20to:*\x20%0'),_0x549097={'type':'format','content':o(_0x19cc2f,_0x31d4eb,o(_0x19cc2f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x19b418=_0x51f7c2['commandParams'][0x0]['forceValue'],_0x26f102=_0x39f8b8(_0x51f7c2['commandName']),_0x31d4eb=_0x19b418?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x26f102&&_0xf82026['config']['get']('list.multiBlock')||(_0x31d4eb='*Change\x20to:*\x20%0'),_0x549097={'type':'format','content':o(_0x19cc2f,_0x31d4eb,o(_0x19cc2f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x31d4eb='*Indent:*\x20%0',_0x549097={'type':'format','content':o(_0x19cc2f,_0x31d4eb,o(_0x19cc2f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x31d4eb=function(_0x2b3d5d){const _0x5cc1f5=_0x2b3d5d['getFirstRange']();let _0x34fa80=_0x5cc1f5['start']['nodeAfter'];for(;_0x34fa80&&_0x5cc1f5['containsItem'](_0x34fa80);){if(_0x34fa80['getAttribute']('listIndent')>0x0)return!0x1;_0x34fa80=_0x34fa80['nextSibling'];}return!0x0;}(_0x2237f5)?o(_0x19cc2f,'*Format:*\x20remove\x20from\x20%0',o(_0x19cc2f,function(_0x20ca2d){return'ELEMENT_'+_0x20ca2d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2237f5))):o(_0x19cc2f,'*Outdent:*\x20%0',o(_0x19cc2f,'ELEMENT_LIST_ITEM')),_0x549097={'type':'format','content':_0x31d4eb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x51f7c2['multipleBlocks']&&(_0x31d4eb='*Merge:*\x20%0',_0x549097={'type':'deletion','content':o(_0x19cc2f,_0x31d4eb,o(_0x19cc2f,'ELEMENT_LIST_ITEM'))});}return _0x549097;});}}function Ee(_0x47f232){let _0x5ae702=_0x47f232['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5ae702;){const _0x4c692e=_0x5ae702['getAttribute']('listItemId');if(!_0x4c692e)return!0x1;if(_0x4c692e==_0x47f232['data']['newValue'])return'newValue';if(_0x4c692e==_0x47f232['data']['oldValue'])return'oldValue';_0x5ae702=_0x5ae702['previousSibling'];}return!0x1;}class pe extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x133eec=this['editor']['config']['get']('list.properties'),_0x5e8517=this['editor']['plugins']['get']('TrackChangesEditing');_0x133eec['styles']&&(_0x5e8517['enableDefaultAttributesIntegration']('listStyle'),_0x5e8517['registerBlockAttribute']('listStyle')),_0x133eec['reversed']&&(_0x5e8517['enableDefaultAttributesIntegration']('listReversed'),_0x5e8517['registerBlockAttribute']('listReversed')),_0x133eec['startIndex']&&(_0x5e8517['enableDefaultAttributesIntegration']('listStart'),_0x5e8517['registerBlockAttribute']('listStart'));const _0x1e1a9a={'type':'format','content':''};_0x5e8517['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5526bb=this['editor']['locale'];_0x5e8517['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5526bb,'FORMAT_LIST_REVERSED')),_0x5e8517['descriptionFactory']['registerDescriptionCallback'](_0x42ed04=>{const {data:_0x4f865e}=_0x42ed04;if(_0x4f865e&&'listReversed'==_0x4f865e['key'])return null==_0x4f865e['newValue']||0x0==_0x4f865e['newValue']&&null==_0x4f865e['oldValue']?_0x1e1a9a:void 0x0;}),_0x5e8517['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5526bb,'FORMAT_LIST_START')),_0x5e8517['descriptionFactory']['registerDescriptionCallback'](_0x542a07=>{const {data:_0x1e7fff}=_0x542a07;if(_0x1e7fff&&'listStart'==_0x1e7fff['key'])return null==_0x1e7fff['newValue']||0x1==_0x1e7fff['newValue']&&null==_0x1e7fff['oldValue']?_0x1e1a9a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x11eaa2=>{if(_0x11eaa2['batch']['isUndo'])return!0x1;let _0x156289=!0x1;const _0x2edc4f=_0x5e8517['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1047ff=>{const _0xa25f45=_0x5e8517['_getAttributeKey'](_0x1047ff);return'listStart'==_0xa25f45||'listReversed'==_0xa25f45;});for(const _0x385987 of _0x2edc4f){const _0x3d577d=_0x385987['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3d577d||'customNumbered'==_0x3d577d)continue;_0x5e8517['_findSuggestions'](_0x385987['getFirstRange'](),'attribute')['find'](_0x1cdf80=>'listType'==_0x5e8517['_getAttributeKey'](_0x1cdf80['suggestion']))||(_0x11eaa2['removeMarker'](_0x385987['getFirstMarker']()),_0x156289=!0x0);}return _0x156289;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xe36ab9){const _0x43a962=this['editor']['locale'],{data:_0x4fd864}=_0xe36ab9,_0x4dc540={'type':'format','content':''};if(!_0x4fd864||'listStyle'!=_0x4fd864['key'])return;if(!_0x4fd864['oldValue'])return'default'==_0x4fd864['newValue']?_0x4dc540:{'type':'format','content':''+o(_0x43a962,'*Set\x20format:*\x20%0',o(_0x43a962,this['_getTranslationKeyForListStyle'](_0x4fd864['newValue'])))};if(!_0x4fd864['newValue']){if('default'==_0x4fd864['oldValue'])return _0x4dc540;let _0x2b7928=_0xe36ab9['head'];for(;_0x2b7928;){if(_0x2b7928['data']&&'listType'==_0x2b7928['data']['key']&&_0x2b7928['data']['newValue'])return _0x4dc540;_0x2b7928=_0x2b7928['next'];}return{'type':'format','content':''+o(_0x43a962,'*Remove\x20format:*\x20%0',o(_0x43a962,this['_getTranslationKeyForListStyle'](_0x4fd864['oldValue'])))};}if('default'!=_0x4fd864['newValue'])return{'type':'format','content':''+o(_0x43a962,'*Set\x20format:*\x20%0',o(_0x43a962,this['_getTranslationKeyForListStyle'](_0x4fd864['newValue'])))};let _0x1d2f23=_0xe36ab9['head'];for(;_0x1d2f23;){if(_0x1d2f23['data']&&'listType'==_0x1d2f23['data']['key']&&_0x1d2f23['data']['newValue']&&_0x1d2f23['data']['oldValue'])return _0x4dc540;_0x1d2f23=_0x1d2f23['next'];}return{'type':'format','content':o(_0x43a962,'*Set\x20format:*\x20%0',o(_0x43a962,'ELEMENT_'+_0xe36ab9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1311a6=this['editor'],_0x355de6=_0x1311a6['locale'];_0x1311a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8d9d6e=>{if('formatBlock'!=_0x8d9d6e['type'])return;const {data:_0x6887ca}=_0x8d9d6e;if(!_0x6887ca)return;let _0x1bee14,_0x5f199e;switch(_0x6887ca['commandName']){case'listStyle':_0x1bee14='*Change\x20to:*\x20%0',_0x5f199e={'type':'format','content':o(_0x355de6,_0x1bee14,o(_0x355de6,this['_getTranslationKeyForListStyle'](_0x6887ca['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1bee14=_0x6887ca['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5f199e={'type':'format','content':o(_0x355de6,_0x1bee14)};break;case'listStart':_0x1bee14='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5f199e={'type':'format','content':o(_0x355de6,_0x1bee14,_0x6887ca['commandParams'][0x0]['startIndex'])};}return _0x5f199e;});}['_getTranslationKeyForListStyle'](_0x3867ea){return'ELEMENT_'+function(_0x2aea00){if(ye['includes'](_0x2aea00))return'bulleted';if(Se['includes'](_0x2aea00))return'numbered';return null;}(_0x3867ea)['toUpperCase']()+'_LIST_'+_0x3867ea['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2be873{static get['requires'](){return[_0x17bcc1];}['init'](){const _0x5d48ec=this['editor'],_0x8c0477=_0x5d48ec['plugins']['get']('TrackChangesEditing'),_0x1bf42e=_0x5d48ec['commands']['get']('enter');_0x8c0477['enableCommand']('enter',()=>{_0x5d48ec['model']['change'](_0x3213f6=>{const _0x24c006=_0x5d48ec['model']['document']['selection'],_0x323092=_0x24c006['getFirstPosition'](),_0x2cd824=_0x3f00a1['fromRange'](_0x24c006['getFirstRange']());if(_0x1bf42e['enterBlock'](_0x3213f6)){const _0x52ff3a=_0x5d48ec['model']['createPositionAt'](_0x323092['parent']['nextSibling'],0x0),_0xd8214b=_0x3213f6['createRange'](_0x323092,_0x52ff3a);_0x8c0477['markInsertion'](_0xd8214b);}else _0x3213f6['setSelection'](_0x3213f6['createRange'](_0x2cd824['end']));_0x2cd824['detach'](),_0x1bf42e['fire']('afterExecute',{'writer':_0x3213f6});});}),_0x5d48ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5d48ec,'split'),{'priority':'high'}),_0x5d48ec['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c701f,_0x517193,_0x5a2229)=>{const _0x268213=_0x5a2229['mapper']['markerNameToElements'](_0x517193['markerName']);if(_0x268213){for(const _0x4f1cbd of _0x268213)_0x4f1cbd['hasClass']('ck-suggestion-marker-split')&&(_0x5a2229['mapper']['unbindElementFromMarkerName'](_0x4f1cbd,_0x517193['markerName']),_0x5a2229['writer']['remove'](_0x4f1cbd));}},{'priority':'high'}),_0x5d48ec['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xb4ef7c,_0x56d00e,_0xc0e57a)=>{_0xc0e57a['options']['showSuggestionHighlights']&&_e(_0x5d48ec,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xb4ef7c,_0x56d00e,_0xc0e57a);},{'priority':'high'});}}class X extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x385932=this['editor']['plugins']['get']('TrackChangesEditing');_0x385932['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x385932['enableCommand']('findNext'),_0x385932['enableCommand']('findPrevious'),_0x385932['enableCommand']('replace'),_0x385932['enableCommand']('replaceAll');}['handleFindCommand'](_0x48dd15,_0x1a85a2,_0x289322={}){const _0x466864=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x48dd15(_0x337cff=>{let _0x15d22f=('string'==typeof _0x1a85a2?_0x466864['findByTextCallback'](_0x1a85a2,_0x289322):_0x1a85a2)(_0x337cff);Array['isArray'](_0x15d22f)&&(_0x15d22f={'results':_0x15d22f,'searchText':'string'==typeof _0x1a85a2?_0x1a85a2:''});const _0x48020c=_0x15d22f['results']['filter'](_0x578b7d=>!0x1===this['_isInDeletionRange'](_0x578b7d,_0x337cff['item']));return{..._0x15d22f,'results':_0x48020c};},_0x289322);}['_isInDeletionRange'](_0xa83973,_0x48e5f0){const _0x5932a6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48e5f0,_0xa83973['start']),this['editor']['model']['createPositionAt'](_0x48e5f0,_0xa83973['end']));for(const _0x3cf41a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5932a6['getIntersection'](_0x3cf41a['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x2be873{['afterInit'](){const _0x26bae9=this['editor']['locale'],_0x37c8c9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2ab546,commandName:_0x8fab4c}of ro)this['editor']['plugins']['has'](_0x2ab546)&&(_0x37c8c9['enableDefaultAttributesIntegration'](_0x8fab4c),_0x37c8c9['registerInlineAttribute'](_0x8fab4c));_0x37c8c9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x26bae9,'FORMAT_FONT_SIZE')),_0x37c8c9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x26bae9,'FORMAT_FONT_FAMILY')),_0x37c8c9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x26bae9,'FORMAT_FONT_COLOR')),_0x37c8c9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x26bae9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86e6a7=this['editor'],_0x32e473=_0x86e6a7['locale'];_0x86e6a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc167ff=>{const _0x175962=_0x32e473['t'];if('formatInline'!=_0xc167ff['type'])return;const {data:_0x27eaa8}=_0xc167ff;if(null!=_0x27eaa8){if('fontSize'==_0x27eaa8['commandName']){const _0x11ee7a=_0x27eaa8['commandParams'][0x0]['value'];if(_0x11ee7a){const _0x3e65d6=_0x175962(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2e7636=>_0x2e7636['model']==_0x11ee7a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x32e473,'*Set\x20font\x20size:*\x20%0',_0x3e65d6)};}return{'type':'format','content':o(_0x32e473,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x27eaa8['commandName']){const _0x265cb1=_0x27eaa8['commandParams'][0x0]['value'];return _0x265cb1?{'type':'format','content':o(_0x32e473,'*Set\x20font\x20family:*\x20%0',_0x265cb1)}:{'type':'format','content':o(_0x32e473,'*Reset\x20font\x20family*')};}if('fontColor'==_0x27eaa8['commandName']){const _0x366dcf=_0x27eaa8['commandParams'][0x0]['value'];if(_0x366dcf){const _0xd98847=_0x408f0d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x6c19c9=>_0x6c19c9['model']==_0x366dcf);let _0x1214ba=_0x366dcf,_0x17ada3='';return _0xd98847&&(_0x1214ba=_0xd98847['label'],_0x17ada3=_0x175962(_0x1214ba)['toLowerCase']()),{'type':'format','content':o(_0x32e473,'*Set\x20font\x20color:*\x20%0',_0x17ada3)['trim'](),'color':{'value':_0x366dcf,'title':_0x17ada3||_0x1214ba}};}return{'type':'format','content':o(_0x32e473,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x27eaa8['commandName']){const _0x3494cb=_0x27eaa8['commandParams'][0x0]['value'];if(_0x3494cb){const _0x9d40a6=_0x408f0d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x34ed5d=>_0x34ed5d['model']==_0x3494cb);let _0x25203e=_0x3494cb,_0xe45ea7='';return _0x9d40a6&&(_0x25203e=_0x9d40a6['label'],_0xe45ea7=_0x175962(_0x25203e)['toLowerCase']()),{'type':'format','content':o(_0x32e473,'*Set\x20font\x20background\x20color:*\x20%0',_0xe45ea7)['trim'](),'color':{'value':_0x3494cb,'title':_0xe45ea7||_0x25203e}};}return{'type':'format','content':o(_0x32e473,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x2be873{['afterInit'](){const _0x1a79de=this['editor'],_0x4a6b66=_0x1a79de['plugins']['get']('TrackChangesEditing'),_0x329ea0=_0x1a79de['commands']['get']('copyFormat'),_0x4ecf50=_0x1a79de['commands']['get']('pasteFormat');_0x329ea0&&_0x4ecf50&&(_0x4a6b66['enableDefaultAttributesIntegration']('pasteFormat'),_0x4a6b66['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x374942=this['editor'],_0xe704bb=_0x374942['locale'];_0x374942['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49bac1=>{if('formatBlock'!=_0x49bac1['type']&&'formatInline'!=_0x49bac1['type'])return;const {data:_0x233b54}=_0x49bac1;if(_0x233b54&&'pasteFormat'===_0x233b54['commandName']){const _0x2ab860=[],_0x406912=_0x233b54['commandParams'][0x0];for(const [_0x128f4e,_0x5870bf]of Object['entries'](_0x406912))_0x2ab860['push'](so(_0x374942,_0x128f4e,_0x5870bf));return _0x2ab860['length']?{'type':'format','content':o(_0xe704bb,'*Set\x20format\x20to:*\x20%0',_0x2ab860['join'](',\x20'))}:{'type':'format','content':o(_0xe704bb,'*Remove\x20all\x20formatting*')};}});}}function so(_0xc1cf88,_0x66749b,_0x140325){const _0x5e3ab9=_0xc1cf88['locale']['t'],_0xfaba1=_0x66749b['split'](/(?=[A-Z])/)['join']('\x20'),_0x20ef50=_0x5e3ab9(_0xfaba1['charAt'](0x0)['toUpperCase']()+_0xfaba1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x140325)return _0x20ef50;if('fontColor'===_0x66749b||'fontBackgroundColor'===_0x66749b){const _0x102b19=_0x408f0d(_0xc1cf88['config']['get']('fontColor.colors'))['find'](_0x3414ac=>_0x3414ac['model']==_0x140325);return _0x20ef50+'\x20('+(_0x102b19?_0x5e3ab9(_0x102b19['label'])['toLowerCase']():_0x140325)+')';}if('fontSize'===_0x66749b&&isNaN(parseFloat(_0x140325))){const _0x7ed143=_0xc1cf88['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xc1cf88['config']['get']('fontSize.options'))['find'](_0x16ab3e=>_0x16ab3e['model']==_0x140325);return _0x20ef50+'\x20('+(_0x7ed143?_0x5e3ab9(_0x7ed143['title'])['toLowerCase']():_0x140325)+')';}return _0x20ef50+'\x20('+_0x140325+')';}class tt extends _0x2be873{['_headingOptions'];['afterInit'](){const _0x389801=this['editor'];if(!_0x389801['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x389801['config']['get']('heading.options');const _0x3ace88=_0x389801['locale'],_0x33eac2=_0x389801['plugins']['get']('TrackChangesEditing');_0x33eac2['enableDefaultAttributesIntegration']('heading');for(const _0x3befd1 of this['_headingOptions'])'paragraph'!=_0x3befd1['model']&&_0x33eac2['descriptionFactory']['registerElementLabel'](_0x3befd1['model'],_0x5e828a=>{const _0x5b18b0=this['_getHeadingLevel'](_0x3befd1['model']);return null!==_0x5b18b0?_0x1b21b8(_0x5e828a,_0x5b18b0):_0x245312(_0x5e828a,_0x3befd1['title']);});function _0x1b21b8(_0x24b333,_0x4fa84d){return o(_0x3ace88,'ELEMENT_HEADING',[_0x24b333,_0x4fa84d]);}function _0x245312(_0x11bd02,_0x2255f2){return o(_0x3ace88,'ELEMENT_HEADING_CUSTOM',[_0x11bd02,_0x2255f2]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4956fd=this['editor'],_0x5c9dea=_0x4956fd['locale'];function _0x13dc63(_0x4e9016,_0x429902){return o(_0x5c9dea,'ELEMENT_HEADING_CUSTOM',[_0x4e9016,_0x429902]);}_0x4956fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24251a=>{if('formatBlock'!=_0x24251a['type'])return;const {data:_0x559c0b}=_0x24251a;if(_0x559c0b&&'heading'==_0x559c0b['commandName']){const _0x3e822b=_0x559c0b['commandParams'][0x0]['value'],_0x41ed1e=this['_getHeadingLevel'](_0x3e822b);if(null!==_0x41ed1e)return{'type':'format','content':o(_0x5c9dea,'*Change\x20to:*\x20%0',(_0x3f1973=0x1,_0x291158=_0x41ed1e,o(_0x5c9dea,'ELEMENT_HEADING',[_0x3f1973,_0x291158])))};const _0x3cb98e=this['_headingOptions']['find'](_0x4cd6c6=>_0x4cd6c6['model']===_0x3e822b)['title'];return{'type':'format','content':o(_0x5c9dea,'*Change\x20to:*\x20%0',_0x13dc63(0x1,_0x3cb98e))};}var _0x3f1973,_0x291158;});}['_getHeadingLevel'](_0x24ee5a){const _0x239cc9=_0x24ee5a['match'](/^heading(\d+)/);if(_0x239cc9)return _0x239cc9[0x1];const _0x47c163=this['_headingOptions']?.['find'](_0x12dcef=>_0x12dcef['model']==_0x24ee5a);if(_0x47c163&&_0x47c163['view']){const _0x1dda47=_0x47c163['view'],_0x4a55d3=(_0x1dda47['name']??_0x1dda47)['match'](/^h(\d+)/);if(_0x4a55d3)return _0x4a55d3[0x1];}return null;}}class et extends _0x2be873{['afterInit'](){const _0x5df836=this['editor'];if(!_0x5df836['plugins']['has']('HighlightEditing'))return;const _0xf17db8=_0x5df836['plugins']['get']('TrackChangesEditing'),_0x5c9022=_0x5df836['locale'];_0xf17db8['enableDefaultAttributesIntegration']('highlight'),_0xf17db8['registerInlineAttribute']('highlight'),_0xf17db8['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5c9022,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x241617=this['editor'],_0x8c3d5f=_0x241617['locale'];_0x241617['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d2e65=>{if('formatInline'!=_0x3d2e65['type'])return;const {data:_0x4e4963}=_0x3d2e65;if(_0x4e4963&&'highlight'==_0x4e4963['commandName']){const _0x898b73=_0x8c3d5f['t'],_0x97d3be=_0x4e4963['commandParams'][0x0]['value'];if(_0x97d3be){const _0x4d5ccb=_0x241617['config']['get']('highlight.options')['find'](_0xd0bc9f=>_0xd0bc9f['model']==_0x97d3be),_0x22c40c=_0x898b73(_0x4d5ccb['title'])['toLowerCase']();return{'type':'format','content':o(_0x8c3d5f,'*Set\x20highlight:*\x20%0',_0x22c40c),'color':{'value':_0x4d5ccb['color'],'title':_0x4d5ccb['title']}};}return{'type':'format','content':o(_0x8c3d5f,'*Remove\x20highlight*',o(_0x8c3d5f,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2be873{['afterInit'](){const _0x5690dd=this['editor'];if(!_0x5690dd['plugins']['has']('HorizontalLineEditing'))return;_0x5690dd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x29120f=_0x5690dd['plugins']['get']('TrackChangesEditing'),_0x4d7379=_0x5690dd['locale'];_0x29120f['descriptionFactory']['registerElementLabel']('horizontalLine',_0xd8189f=>o(_0x4d7379,'ELEMENT_HORIZONTAL_LINE',_0xd8189f)),_0x5690dd['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x136ff8,{writer:_0x6847d8,options:_0x4ad3dc})=>{if(!_0x4ad3dc['showSuggestionHighlights'])return null;const _0x2ba48a=_0x6847d8['createContainerElement']('div'),_0x454721=_0x6847d8['createEmptyElement']('hr');return _0x6847d8['addClass']('ck-horizontal-line',_0x2ba48a),_0x6847d8['insert'](_0x6847d8['createPositionAt'](_0x2ba48a,0x0),_0x454721),_0x2ba48a;},'converterPriority':'high'});}}class st extends _0x2be873{['afterInit'](){const _0x4bc325=this['editor'];if(!_0x4bc325['plugins']['has']('HtmlEmbed'))return;const _0xe82575=_0x4bc325['plugins']['get']('TrackChangesEditing'),_0x1e92e9=_0x4bc325['locale'];_0xe82575['descriptionFactory']['registerElementLabel']('rawHtml',_0x691f6e=>o(_0x1e92e9,'ELEMENT_HTML_EMBED',_0x691f6e)),_0xe82575['enableDefaultAttributesIntegration']('htmlEmbed'),_0xe82575['registerBlockAttribute']('value'),_0xe82575['descriptionFactory']['registerDescriptionCallback'](_0x32a380=>{if('attribute'!=_0x32a380['type'])return;const {data:_0x1325d9}=_0x32a380;if(_0x1325d9&&'value'==_0x1325d9['key']&&_0x32a380['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x46ca9d=o(_0x1e92e9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1e92e9,'*Change\x20%0\x20content*',_0x46ca9d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55436f=this['editor'],_0xf19a65=_0x55436f['locale'];_0x55436f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9722=>{if('formatBlock'!=_0x3c9722['type'])return;const {data:_0x2a8793}=_0x3c9722;if(_0x2a8793&&'htmlEmbed'==_0x2a8793['commandName']){const _0x160c55=o(_0xf19a65,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf19a65,'*Change\x20%0\x20content*',_0x160c55)};}});}}class nt extends _0x2be873{['afterInit'](){const _0x28d8ec=this['editor'];if(!_0x28d8ec['plugins']['has']('ImageEditing'))return;const _0x3b1c64=_0x28d8ec['plugins']['get']('TrackChangesEditing'),_0x399d82=_0x28d8ec['plugins']['get']('ImageUtils'),_0x53be14=_0x28d8ec['locale'];_0x3b1c64['enableCommand']('insertImage'),_0x3b1c64['descriptionFactory']['registerElementLabel']('imageBlock',_0x396431=>o(_0x53be14,'ELEMENT_IMAGE',_0x396431)),_0x3b1c64['descriptionFactory']['registerElementLabel']('imageInline',_0x469f14=>o(_0x53be14,'ELEMENT_INLINE_IMAGE',_0x469f14)),_0x3b1c64['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x53be14,'ELEMENT_CAPTION')),_0x28d8ec['plugins']['has']('ImageUploadEditing')&&_0x3b1c64['enableCommand']('uploadImage'),_0x28d8ec['plugins']['has']('ImageBlockEditing')&&_0x28d8ec['plugins']['has']('ImageInlineEditing')&&(_0x3b1c64['enableCommand']('imageTypeInline',(_0x21be26,_0x31a92e)=>{const _0x30fccc=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']);_0x28d8ec['model']['change'](()=>{_0x3b1c64['markBlockFormat'](_0x30fccc,{'commandName':'imageTypeInline','commandParams':[_0x31a92e]},[],'convertBlockImageToInline');});}),_0x3b1c64['enableCommand']('imageTypeBlock',(_0x4beec4,_0x2371bc)=>{_0x28d8ec['model']['change'](_0x19e474=>{let _0x434c7b=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']),_0x4ad28c=_0x19e474['createRangeOn'](_0x434c7b);const _0x50373b=_0xe63aa9['fromPosition'](_0x4ad28c['start'],'toPrevious'),_0x3ad86e=_0xe63aa9['fromPosition'](_0x4ad28c['end'],'toNext');_0x3b1c64['forceDefaultExecution'](()=>_0x4beec4(_0x2371bc)),_0x434c7b=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']),_0x4ad28c=_0x19e474['createRangeOn'](_0x434c7b);const _0x3ce038=_0x19e474['createRange'](_0x50373b,_0x3ad86e);_0x50373b['detach'](),_0x3ad86e['detach'](),_0x3b1c64['markBlockFormat'](_0x434c7b,{'commandName':'imageTypeInline','commandParams':[_0x2371bc]},[],'convertInlineImageToBlock'),_0x3ce038['start']['isBefore'](_0x4ad28c['start'])&&_0x3b1c64['markInsertion'](_0x19e474['createRange'](_0x3ce038['start'],_0x4ad28c['start']),'convertInlineImageToBlock'),_0x4ad28c['end']['isBefore'](_0x3ce038['end'])&&_0x3b1c64['markInsertion'](_0x19e474['createRange'](_0x4ad28c['end'],_0x3ce038['end']),'convertInlineImageToBlock');});}),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3b1c64['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3c7a68])=>{const _0x532a3f=_0x3b1c64['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3f9506=_0x3c7a68['start'],_0x48fa2c=_0x3c7a68['end'];const _0x3ece60=_0x28d8ec['model']['schema']['getNearestSelectionRange'](_0x3f9506,'backward'),_0xa48f3c=_0x28d8ec['model']['schema']['getNearestSelectionRange'](_0x48fa2c,'forward');_0x3ece60['isCollapsed']&&(_0x3f9506=_0x3ece60['start']),_0xa48f3c['isCollapsed']&&(_0x48fa2c=_0xa48f3c['end']),_0x532a3f([_0x28d8ec['model']['createRange'](_0x3f9506,_0x48fa2c)]);}),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x26b20b),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x26b20b)),_0x28d8ec['plugins']['has']('ImageCaptionEditing')&&(_0x3b1c64['enableCommand']('toggleImageCaption',(_0x3e724b,_0x43d0a4)=>{const _0xdd6167=_0x28d8ec['plugins']['get']('ImageCaptionUtils');let _0x16d2cf=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']),_0x1d2006=_0xdd6167['getCaptionFromImageModelElement'](_0x16d2cf);_0x28d8ec['model']['change'](()=>{if(_0x1d2006)return void _0x3b1c64['markDeletion'](_0x28d8ec['model']['createRangeOn'](_0x1d2006));const _0x57a900=_0x399d82['isBlockImage'](_0x16d2cf);_0x3e724b(_0x43d0a4),_0x16d2cf=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']),_0x1d2006=_0xdd6167['getCaptionFromImageModelElement'](_0x16d2cf),_0x3b1c64['markInsertion'](_0x28d8ec['model']['createRangeOn'](_0x1d2006),_0x57a900?null:'imageCaption');});}),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x26b20b));const _0x10310c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x489186(_0x5d9bf0,_0x2b9e44){const _0xddf5e9=_0x10310c['findIndex'](({type:_0x32ff8e,subType:_0x5c7009})=>_0x5d9bf0['type']==_0x32ff8e&&_0x5d9bf0['subType']==_0x5c7009),_0xd9e1d1=_0x10310c['findIndex'](({type:_0x294683,subType:_0x3d862e})=>_0x2b9e44['type']==_0x294683&&_0x2b9e44['subType']==_0x3d862e);if(_0xddf5e9<0x0||_0xd9e1d1<0x0)return!0x1;const _0x4336c8=_0x5d9bf0['getFirstRange'](),_0x1fa494=_0x2b9e44['getFirstRange']();if((0x0==_0xddf5e9||0x1==_0xddf5e9)&&0x2==_0xd9e1d1&&_0x4336c8['isIntersecting'](_0x1fa494))return!0x0;if(0x2==_0xddf5e9&&0x3==_0xd9e1d1){const _0x2c1db8=_0x3b1c64['_findSuggestions'](_0x4336c8,'insertion')['filter'](({suggestion:_0x21d0ac,meta:_0x59dc19})=>_0x59dc19['isOwn']&&'convertInlineImageToBlock'==_0x21d0ac['subType']);if(_0x2c1db8['length']>0x1&&_0x1fa494['end']['isEqual'](_0x4336c8['start']))return!0x0;if(0x1==_0x2c1db8['length']&&(_0x4336c8['start']['isEqual'](_0x1fa494['end'])||_0x4336c8['end']['isEqual'](_0x1fa494['start'])))return!0x0;}if(0x3==_0xddf5e9&&0x3==_0xd9e1d1&&_0x4336c8['start']['isBefore'](_0x1fa494['start'])){const _0x3f98f5=_0x4336c8['end']['nodeAfter'],_0x153f4d=_0x1fa494['start']['nodeBefore'];return _0x399d82['isBlockImage'](_0x3f98f5)&&_0x3f98f5===_0x153f4d;}return!0x1;}function _0x26b20b(_0x298f8b,_0x5773e0){return _0x489186(_0x298f8b,_0x5773e0)?[_0x298f8b,_0x5773e0]:_0x489186(_0x5773e0,_0x298f8b)?[_0x5773e0,_0x298f8b]:null;}_0x28d8ec['plugins']['has']('ImageResize')&&(_0x3b1c64['enableDefaultAttributesIntegration']('resizeImage'),_0x3b1c64['registerBlockAttribute']('resizedWidth'),_0x3b1c64['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x53be14,'FORMAT_IMAGE_SIZE'))),_0x28d8ec['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3b1c64['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3b1c64['registerBlockAttribute']('alt')),_0x3b1c64['descriptionFactory']['registerDescriptionCallback'](_0x5f3d59=>{if(!!_0x10310c['find'](({type:_0x2bd2b4,subType:_0x18730d})=>_0x5f3d59['type']==_0x2bd2b4&&_0x5f3d59['subType']==_0x18730d))return _0x5f3d59['previous']?{}:void 0x0;}),_0x3b1c64['descriptionFactory']['registerDescriptionCallback'](_0x319eeb=>{if('insertion'==_0x319eeb['type']||'deletion'==_0x319eeb['type']){const _0x56b863=_0x319eeb['getContainedElement']();if(_0x56b863&&_0x56b863['is']('element','caption'))return{'type':'insertion'==_0x319eeb['type']?'addObject':'removeObject','element':_0x56b863,'quantity':0x1};}}),_0x3b1c64['descriptionFactory']['registerDescriptionCallback'](_0x5ce22b=>'formatBlock'==_0x5ce22b['type']&&'convertInlineImageToBlock'==_0x5ce22b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5ce22b['type']&&'convertBlockImageToInline'==_0x5ce22b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3b1c64['descriptionFactory']['registerDescriptionCallback'](_0x45b85c=>{if('attribute'!=_0x45b85c['type'])return;const {data:_0xe51217}=_0x45b85c;if(!_0xe51217||'alt'!=_0xe51217['key'])return;const _0x282c65=_0xe51217['newValue'];return _0x282c65?{'type':'format','content':o(_0x53be14,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x282c65+'\x22')}:{'type':'format','content':o(_0x53be14,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x228a80=this['editor'],_0x1f7d05=_0x228a80['locale'];_0x228a80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9957f0=>{if('formatBlock'!=_0x9957f0['type']&&'formatInline'!=_0x9957f0['type'])return;const {data:_0x216c7f}=_0x9957f0;if(_0x216c7f){if('imageTextAlternative'==_0x216c7f['commandName']){const _0x5c77ad=_0x216c7f['commandParams'][0x0]['newValue'];return _0x5c77ad?{'type':'format','content':o(_0x1f7d05,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5c77ad+'\x22')}:{'type':'format','content':o(_0x1f7d05,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x216c7f['commandName']){const _0x209cb6=_0x216c7f['commandParams'][0x0]['width'];return _0x209cb6?{'type':'format','content':o(_0x1f7d05,'*Set\x20image\x20width:*\x20%0',_0x209cb6)}:{'type':'format','content':o(_0x1f7d05,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5edb8b=this['editor']['locale'],_0x34510c=this['editor']['plugins']['get']('TrackChangesEditing');_0x34510c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x34510c['registerBlockAttribute']('src'),_0x34510c['descriptionFactory']['registerDescriptionCallback'](_0x1a0781=>{if('attribute'!=_0x1a0781['type'])return;const {data:_0x519c05}=_0x1a0781;return _0x519c05&&'src'==_0x519c05['key']?_0x519c05['newValue']&&_0x519c05['oldValue']?{'type':'format','content':o(_0x5edb8b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3c2838=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c2838['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3c2838['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c2838['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3c2838['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x522e45=this['editor'],_0x262846=_0x522e45['locale'];_0x522e45['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c808d=>{if('formatBlock'!=_0x4c808d['type']&&'formatInline'!=_0x4c808d['type'])return;const {data:_0x4efc73}=_0x4c808d;if(!_0x4efc73||'replaceImageSource'!=_0x4efc73['commandName'])return;return{'type':'format','content':o(_0x262846,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x2be873{['afterInit'](){const _0x3efa7a=this['editor'];if(!_0x3efa7a['plugins']['has']('ImageStyleEditing'))return;const _0x4e93f8=_0x3efa7a['plugins']['get']('TrackChangesEditing'),_0x3543ae=_0x3efa7a['plugins']['get']('ImageUtils'),_0x4f16b2={};_0x4e93f8['enableCommand']('imageStyle',(_0x3119d5,_0x22b37e)=>{const _0x3d2483=_0x3efa7a['plugins']['get']('Users')['me'],_0x40d723=_0x3efa7a['commands']['get']('imageStyle');let _0x21f703=_0x3543ae['getClosestSelectedImageElement'](_0x3efa7a['model']['document']['selection']),_0x14e0a5=_0x3efa7a['model']['createRangeOn'](_0x21f703),_0x1948b8=_0x40d723['value'];if(_0x1948b8==_0x22b37e['value'])return;const _0x53695a={'commandName':'imageStyle','commandParams':[_0x22b37e],'formatGroupId':_0x30a933()};_0x3efa7a['model']['change'](()=>{if(_0x4e93f8['getSuggestions']()['filter'](_0x4cd6cc=>_0x4cd6cc['isInContent']&&_0x3d2483==_0x4cd6cc['author']&&('formatBlock'==_0x4cd6cc['type']||'formatInline'==_0x4cd6cc['type'])&&('imageStylePreApply'==_0x4cd6cc['subType']||'imageStylePostApply'==_0x4cd6cc['subType'])&&_0x4cd6cc['getFirstRange']()['isEqual'](_0x14e0a5))['forEach'](_0x175ab1=>_0x4e93f8['discardSuggestion'](_0x175ab1['head'])),_0x21f703=_0x3543ae['getClosestSelectedImageElement'](_0x3efa7a['model']['document']['selection']),_0x14e0a5=_0x3efa7a['model']['createRangeOn'](_0x21f703),_0x40d723['refresh'](),_0x3efa7a['commands']['get']('imageTypeInline')['refresh'](),_0x3efa7a['commands']['get']('imageTypeBlock')['refresh'](),_0x1948b8=_0x40d723['value'],_0x1948b8!=_0x22b37e['value'])return _0x3543ae['isInlineImage'](_0x21f703)&&_0x40d723['shouldConvertImageType'](_0x22b37e['value'],_0x21f703)?(_0x3119d5({..._0x22b37e,'setImageSizes':!0x1}),_0x21f703=_0x3543ae['getClosestSelectedImageElement'](_0x3efa7a['model']['document']['selection']),void _0x4e93f8['markBlockFormat'](_0x21f703,{..._0x53695a,'commandReversedParams':[{'value':_0x1948b8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3543ae['isBlockImage'](_0x21f703)?_0x4e93f8['markBlockFormat'](_0x21f703,_0x53695a,[],'imageStylePostApply'):_0x4e93f8['markInlineFormat'](_0x14e0a5,_0x53695a,'imageStylePostApply'));});});for(const _0x5bbccb of _0x3efa7a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f16b2[_0x5bbccb['name']]=_0x5bbccb['title']['toLowerCase']();_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4d248e])=>{_0x3543ae['setImageNaturalSizeAttributes'](_0x4d248e['getContainedElement']());}),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2986bc,_0x33624f)=>{_0x4e93f8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2986bc,{'commandName':_0x33624f['commandName'],'commandParams':_0x33624f['commandReversedParams']});}),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x260c07,_0x3cd383){if(_0x4c3284(_0x260c07,_0x3cd383))return[_0x260c07,_0x3cd383];if(_0x4c3284(_0x3cd383,_0x260c07))return[_0x3cd383,_0x260c07];return null;});const _0x234a5e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c3284(_0x5b5b26,_0x158ba0){const _0x202a27=_0x234a5e['findIndex'](({type:_0x446ff7,subType:_0x789b55})=>_0x5b5b26['type']==_0x446ff7&&_0x5b5b26['subType']==_0x789b55),_0x3def62=_0x234a5e['findIndex'](({type:_0x21d5ba,subType:_0x26bdc0})=>_0x158ba0['type']==_0x21d5ba&&_0x158ba0['subType']==_0x26bdc0);if(_0x202a27<0x0||_0x3def62<0x0)return!0x1;const _0x43ac37=_0x5b5b26['getFirstRange'](),_0x3c3988=_0x158ba0['getFirstRange']();if((0x0==_0x202a27||0x1==_0x202a27)&&0x2==_0x3def62&&_0x43ac37['isIntersecting'](_0x3c3988))return!0x0;if(0x2==_0x202a27&&0x3==_0x3def62){const _0x29d476=_0x4e93f8['_findSuggestions'](_0x43ac37,'insertion')['filter'](({suggestion:_0x2e969e,meta:_0x14f5c9})=>_0x14f5c9['isOwn']&&'convertInlineImageToBlock'==_0x2e969e['subType']);if(_0x29d476['length']>0x1&&_0x3c3988['end']['isEqual'](_0x43ac37['start']))return!0x0;if(0x1==_0x29d476['length']&&(_0x43ac37['start']['isEqual'](_0x3c3988['end'])||_0x43ac37['end']['isEqual'](_0x3c3988['start'])))return!0x0;}if(0x3==_0x202a27&&0x3==_0x3def62&&_0x43ac37['start']['isBefore'](_0x3c3988['start'])){const _0x516115=_0x43ac37['end']['nodeAfter'],_0x298994=_0x3c3988['start']['nodeBefore'];return _0x3543ae['isBlockImage'](_0x516115)&&_0x516115===_0x298994;}return!0x1;}_0x3efa7a['model']['document']['registerPostFixer'](()=>{let _0x5480cc=!0x1;const _0xc688e2=Array['from'](_0x3efa7a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5975bb,data:_0x4143fd}of _0xc688e2){const {group:_0x1050ee,type:_0x189172,subType:_0x4dee74,id:_0x1d4a3e}=_0x4e93f8['_splitMarkerName'](_0x5975bb);if('suggestion'==_0x1050ee&&_0x4e93f8['hasSuggestion'](_0x1d4a3e)){if('formatBlock'==_0x189172&&('imageStylePreApply'==_0x4dee74||'imageStylePostApply'==_0x4dee74)){const _0x2d3e5d=_0x4e93f8['getSuggestion'](_0x1d4a3e);if(_0x4143fd['newRange']){const _0x458b96=_0x2d3e5d['getFirstRange']()['getContainedElement']();if(_0x3543ae['isBlockImage'](_0x458b96))continue;_0x4e93f8['discardSuggestion'](_0x2d3e5d),_0x5480cc=!0x0;}}if('insertion'==_0x189172&&'imageCaption'==_0x4dee74&&!_0x4143fd['newRange']){const _0x112651=_0x4e93f8['getSuggestion'](_0x1d4a3e);_0x112651['next']&&_0x112651['next']['isInContent']&&(_0x4e93f8['discardSuggestion'](_0x112651['next']),_0x5480cc=!0x0);}}}return _0x5480cc;}),this['_registerLegacyDescription'](_0x4f16b2);}['_registerLegacyDescription'](_0x4207b5){const _0x542536=this['editor'],_0xc7aa46=_0x542536['locale'];_0x542536['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e13c0=>{if('formatBlock'!=_0x5e13c0['type']&&'formatInline'!=_0x5e13c0['type'])return;const {data:_0x52bf2d}=_0x5e13c0;if(!_0x52bf2d||'imageStyle'!=_0x52bf2d['commandName'])return;const _0x30ec5d=_0x52bf2d['commandParams'][0x0]['value'];return _0x29b845('side'===_0x30ec5d?o(_0xc7aa46,'FORMAT_SIDE_IMAGE'):_0x4207b5[_0x30ec5d]||_0x30ec5d);function _0x29b845(_0x5dc392){return{'type':'format','content':o(_0xc7aa46,'*Format:*\x20%0',_0x5dc392)};}});}}class at extends _0x2be873{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1d8a09){super(_0x1d8a09),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xe59817=this['editor'],_0x23d3d8=_0xe59817['commands']['get']('importWord'),_0x119951=_0xe59817['commands']['get']('trackChanges');_0x23d3d8&&(_0x23d3d8['on']('execute',(_0x317114,[,_0x4f5a8c])=>{this['_trackChangesValueDuringImport']=_0x119951['value'],_0x4f5a8c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x23d3d8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x23d3d8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x119951['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xe59817['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x16c41d,_0x106a30){const {suggestions:_0xbc8c56}=_0x106a30,_0x3eb4a=this['editor']['commands']['get']('trackChanges'),_0x5c2ee4=_0x3eb4a['value'];this['_trackChangesValueDuringImport']!==_0x5c2ee4&&(_0x3eb4a['execute'](),this['_trackChangesExecuted']=!0x0),_0xbc8c56&&_0xbc8c56['forEach'](({id:_0x2ac032,type:_0x545737,author:_0xbed74,created_at:_0x5aac1e})=>{const _0x2628df={'id':_0x2ac032,'type':_0x545737,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xbed74,'createdAt':_0x5aac1e?new Date(_0x5aac1e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2628df);});}}class ct extends _0x2be873{['afterInit'](){const _0x4076cd=this['editor'],_0x1d0a1b=_0x4076cd['plugins']['get']('TrackChangesEditing');if(_0x4076cd['plugins']['has']('IndentEditing')&&(_0x1d0a1b['enableCommand']('indent'),_0x1d0a1b['enableCommand']('outdent')),_0x4076cd['plugins']['has']('IndentBlock')){for(const _0x4e4d6c of['indentBlock','outdentBlock'])_0x1d0a1b['enableDefaultAttributesIntegration'](_0x4e4d6c);}const _0xeb2213=_0x4076cd['locale'];_0x1d0a1b['registerBlockAttribute']('blockIndent'),_0x1d0a1b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xeb2213,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cef17=this['editor'],_0x1b61c3=_0x2cef17['locale'],_0x8be4f=_0x2cef17['plugins']['get']('TrackChangesEditing');_0x8be4f['descriptionFactory']['registerDescriptionCallback'](_0x51d5ef=>{if('formatBlock'!=_0x51d5ef['type'])return;const {data:_0x47b1a0}=_0x51d5ef;if(!_0x47b1a0)return;if('indentBlock'!=_0x47b1a0['commandName']&&'outdentBlock'!=_0x47b1a0['commandName'])return;const _0x543ed8=_0x51d5ef['getItems']()[0x0],_0x52b62a=_0x8be4f['descriptionFactory']['getItemLabel'](_0x543ed8);return'indentBlock'==_0x47b1a0['commandName']?{'type':'format','content':o(_0x1b61c3,'*Indent:*\x20%0',_0x52b62a)}:'outdentBlock'==_0x47b1a0['commandName']?{'type':'format','content':o(_0x1b61c3,'*Outdent:*\x20%0',_0x52b62a)}:void 0x0;});}}class ut extends _0x2be873{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2be873{['afterInit'](){const _0x25d575=this['editor'];if(!_0x25d575['plugins']['has']('LinkEditing'))return;const _0x46cf53=_0x25d575['plugins']['get']('TrackChangesEditing'),_0x59f722=_0x25d575['commands']['get']('link');_0x46cf53['enableDefaultAttributesIntegration']('link'),_0x46cf53['enableDefaultAttributesIntegration']('unlink'),_0x46cf53['registerInlineAttribute']('linkHref');for(const _0x223d4a of _0x59f722['manualDecorators'])_0x46cf53['registerInlineAttribute'](_0x223d4a['id']),_0x46cf53['descriptionFactory']['registerAttributeLabel'](_0x223d4a['id'],'link\x20('+_0x223d4a['label']['toLowerCase']()+')');_0x46cf53['descriptionFactory']['registerDescriptionCallback'](_0x4a69d3=>{if('attribute'!=_0x4a69d3['type'])return;const {data:_0x3f634d}=_0x4a69d3;if(!_0x3f634d||'linkHref'!=_0x3f634d['key'])return;const _0x5157b6=_0x3f634d['newValue'],_0x3ed602=_0x25d575['locale'];return{'type':'format','content':null==_0x5157b6?o(_0x3ed602,'*Remove\x20link*'):o(_0x3ed602,'*Set\x20link:*\x20%0','\x22'+_0x5157b6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b4517=this['editor'],_0x5c1642=_0x5b4517['locale'];_0x5b4517['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12a77b=>{if('formatInline'!=_0x12a77b['type'])return;const {data:_0x117115}=_0x12a77b;if(_0x117115){if('link'==_0x117115['commandName']){const _0x4a77ba=_0x117115['commandParams'][0x0];return{'type':'format','content':o(_0x5c1642,'*Set\x20link:*\x20%0','\x22'+_0x4a77ba+'\x22')};}return'unlink'==_0x117115['commandName']?{'type':'format','content':o(_0x5c1642,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2be873{['afterInit'](){const _0x4b5867=this['editor'],_0x304b68=_0x4b5867['locale'];if(!_0x4b5867['plugins']['has']('LegacyListEditing'))return;const _0x4d1f67=_0x4b5867['plugins']['get']('TrackChangesEditing'),_0x466689=_0x4b5867['plugins']['has']('LegacyTodoListEditing');function _0x19202f(_0x2ea129){return()=>{const _0xb9f61e=_0x4b5867['model']['document']['selection'],_0x3d2345=_0x4b5867['commands']['get'](_0x2ea129);if(_0x3d2345['value'])return void _0x4b5867['execute']('paragraph',{});const _0x55fa66=_0x2ea129['slice'](0x0,-0x4),_0xfeecd6=function(_0x685184,_0x11d077,_0x26e763){let _0x394410=Array['from'](_0x685184)['filter'](_0x5a3f17=>function(_0xc4817d,_0x234aaf){return _0x234aaf['checkChild'](_0xc4817d['parent'],'listItem')&&!_0x234aaf['isObject'](_0xc4817d);}(_0x5a3f17,_0x26e763));_0x394410=_0x394410['filter'](_0x38267a=>!_0x38267a['is']('element','listItem')||_0x38267a['getAttribute']('listType')!=_0x11d077);const _0x1625ad=new Set();for(const _0x11dcbc of _0x394410)_0x11dcbc['is']('element','listItem')?_0x1625ad['add'](fe(_0x11dcbc)):_0x1625ad['add'](_0x11dcbc);return Array['from'](_0x1625ad);}(_0xb9f61e['getSelectedBlocks'](),_0x55fa66,_0x4b5867['model']['schema']);_0x4b5867['model']['change'](()=>{for(const _0x2587eb of _0xfeecd6)_0x4d1f67['markBlockFormat'](_0x2587eb,{'commandName':_0x2ea129,'commandParams':[{'forceValue':!_0x3d2345['value']}],'formatGroupId':'blockName'},ue(_0x2587eb));});};}function _0x3aaf9b(_0x5609d4){return()=>{const _0x138c0d=function(_0x8cd07a){let _0x3b86a7=Array['from'](_0x8cd07a);const _0x25fbec=_0x3b86a7['findIndex'](_0x5b876c=>'listItem'!=_0x5b876c['name']);return _0x25fbec>-0x1&&(_0x3b86a7=_0x3b86a7['slice'](0x0,_0x25fbec)),_0x3b86a7;}(_0x4b5867['model']['document']['selection']['getSelectedBlocks']()),_0x18c307=_0x4b5867['model']['createRange'](_0x4b5867['model']['createPositionAt'](_0x138c0d[0x0],'before'),_0x4b5867['model']['createPositionAt'](_0x138c0d[_0x138c0d['length']-0x1],'end'));_0x4b5867['model']['change'](()=>{_0x4d1f67['markBlockFormat'](_0x18c307,{'commandName':_0x5609d4,'commandParams':[],'formatGroupId':'listIndent'},function(_0x49c9b2){const _0x40fb0c=new Set();for(const _0x39e4a3 of _0x49c9b2){let _0x3c5537=_0x39e4a3['nextSibling'];for(;_0x3c5537&&_0x3c5537['getAttribute']('listIndent')>_0x39e4a3['getAttribute']('listIndent');)_0x40fb0c['add'](_0x3c5537),_0x3c5537=_0x3c5537['nextSibling'];}return Array['from'](_0x40fb0c);}(_0x138c0d));});};}_0x4d1f67['enableCommand']('numberedList',_0x19202f('numberedList')),_0x4d1f67['enableCommand']('bulletedList',_0x19202f('bulletedList')),_0x466689&&_0x4d1f67['enableCommand']('todoList',_0x19202f('todoList')),_0x4d1f67['enableCommand']('indentList',_0x3aaf9b('indentList')),_0x4d1f67['enableCommand']('outdentList',_0x3aaf9b('outdentList')),_0x466689&&_0x4d1f67['enableCommand']('checkTodoList',()=>{const _0x3e5e0c=_0x4b5867['commands']['get']('checkTodoList'),_0x47ab40=Array['from'](_0x3e5e0c['_selectedElements']);_0x47ab40['filter'](_0x5e1a36=>_0x5e1a36['getAttribute']('todoListChecked')!=_0x3e5e0c['value']),_0x4b5867['model']['change'](()=>{for(const _0x2ac170 of _0x47ab40)_0x4d1f67['markBlockFormat'](_0x2ac170,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3e5e0c['value']}]});});}),_0x4d1f67['descriptionFactory']['registerElementLabel']('listItem',_0x339363=>o(_0x304b68,'ELEMENT_LIST_ITEM',_0x339363)),_0x4d1f67['descriptionFactory']['registerDescriptionCallback'](_0x4b250b=>{if('formatBlock'!=_0x4b250b['type']&&'formatInline'!=_0x4b250b['type'])return;const {data:_0x521912}=_0x4b250b;if(_0x521912){if('numberedList'==_0x521912['commandName']||'bulletedList'==_0x521912['commandName']||'todoList'==_0x521912['commandName'])switch(_0x521912['commandName']['replace']('List','')){case'bulleted':return _0x21a551(o(_0x304b68,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x21a551(o(_0x304b68,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x21a551(o(_0x304b68,'ELEMENT_TODO_LIST'));}if('indentList'==_0x521912['commandName'])return{'type':'format','content':o(_0x304b68,'*Indent:*\x20%0',o(_0x304b68,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x521912['commandName'])return{'type':'format','content':o(_0x304b68,'*Outdent:*\x20%0',o(_0x304b68,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x521912['commandName'])return _0x521912['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x304b68,'*Check\x20item*')}:{'type':'format','content':o(_0x304b68,'*Uncheck\x20item*')};}function _0x21a551(_0x51a02c){return{'type':'format','content':o(_0x304b68,'*Change\x20to:*\x20%0',_0x51a02c)};}});}}function fe(_0x18a12d){const _0x3c3ddf=_0x18a12d['getAttribute']('listIndent');if(0x0==_0x3c3ddf)return _0x18a12d;let _0x5a1462=_0x18a12d;for(;_0x18a12d['previousSibling']&&_0x18a12d['previousSibling']['is']('element','listItem');){const _0x56e352=_0x18a12d['previousSibling']['getAttribute']('listIndent');if(_0x56e352==_0x3c3ddf)_0x5a1462=_0x18a12d['previousSibling'];else{if(_0x56e352<_0x3c3ddf)break;}_0x18a12d=_0x18a12d['previousSibling'];}return _0x5a1462;}function ue(_0x5864e6){const _0x1f6b51=[];if(_0x5864e6['is']('element','listItem')&&_0x5864e6['getAttribute']('listIndent')>0x0){let _0x48a6a6=_0x5864e6['nextSibling'];for(;_0x48a6a6&&'listItem'==_0x48a6a6['name']&&_0x48a6a6['getAttribute']('listIndent')==_0x5864e6['getAttribute']('listIndent');)_0x1f6b51['push'](_0x48a6a6),_0x48a6a6=_0x48a6a6['nextSibling'];}return _0x1f6b51;}class W extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xf99a4e=this['editor']['config']['get']('list.properties'),_0x1ef838=this['editor']['plugins']['get']('TrackChangesEditing');_0xf99a4e['styles']&&_0x1ef838['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xf99a4e['reversed']&&_0x1ef838['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xf99a4e['startIndex']&&_0x1ef838['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1ef838['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1bfce3,_0xd3a3e9={}){const _0xf44c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ba8bd=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xf44c1['markMultiRangeBlockFormat'](_0x1ba8bd,{'commandName':'listStyle','commandParams':[{'type':_0xd3a3e9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4fa1cf,_0x47d84f={}){const _0xda3c45=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44d449=this['_getSuggestionBlocks'](_0x308302=>_0x308302['is']('element','listItem')&&'numbered'===_0x308302['getAttribute']('listType'));if(_0x44d449['length']<0x1)return;const _0xd54253=_0x44d449['map'](_0x438a5a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x438a5a,'before'),this['editor']['model']['createPositionAt'](_0x438a5a,0x0)));this['editor']['model']['change'](()=>{_0xda3c45['markMultiRangeBlockFormat'](_0xd54253,{'commandName':'listReversed','commandParams':[{'reversed':_0x47d84f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1a71b1,_0x5c14ab={}){const _0x2fbe41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39d451=this['_getSuggestionBlocks'](_0x490413=>_0x490413['is']('element','listItem')&&'numbered'===_0x490413['getAttribute']('listType'));if(_0x39d451['length']<0x1)return;const _0xbd8832=_0x39d451['map'](_0x15511a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15511a,'before'),this['editor']['model']['createPositionAt'](_0x15511a,0x0)));this['editor']['model']['change'](()=>{_0x2fbe41['markMultiRangeBlockFormat'](_0xbd8832,{'commandName':'listStart','commandParams':[{'startIndex':_0x5c14ab['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x56875f){if('formatBlock'!=_0x56875f['type']&&'formatInline'!=_0x56875f['type'])return;const _0x170dc5=this['editor']['locale'],{data:_0x424142}=_0x56875f;if(!_0x424142)return;let _0xfb64d3,_0x51a472;switch(_0x424142['commandName']){case'listStyle':_0xfb64d3='*Change\x20to:*\x20%0',_0x51a472={'type':'format','content':o(_0x170dc5,_0xfb64d3,o(_0x170dc5,this['_getTranslationKeyForListStyle'](_0x424142['commandParams'][0x0]['type'])))};break;case'listReversed':_0xfb64d3=_0x424142['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51a472={'type':'format','content':o(_0x170dc5,_0xfb64d3)};break;case'listStart':_0xfb64d3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51a472={'type':'format','content':o(_0x170dc5,_0xfb64d3,_0x424142['commandParams'][0x0]['startIndex'])};}return _0x51a472;}['_getSuggestionBlocksForListStyle'](){const _0x1311c4=this['editor']['plugins']['get']('LegacyListUtils');let _0x31c15b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x31c15b[0x0]?.['is']('element','listItem')&&_0x31c15b['unshift'](..._0x1311c4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x31c15b[_0x31c15b['length']-0x1]?.['is']('element','listItem')&&_0x31c15b['push'](..._0x1311c4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x31c15b=[...new Set(_0x31c15b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x31c15b=_0x31c15b['filter'](_0x28da08=>_0x28da08['is']('element','listItem'))),_0x31c15b;}['_getSuggestionBlocks'](_0x2dc3b6){const _0x4f496a=this['editor']['plugins']['get']('LegacyListUtils');let _0xe64c9d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2dc3b6)['map'](_0x3ac0ca=>{const _0x492c3d=this['editor']['model']['createPositionAt'](_0x3ac0ca,0x0);return[..._0x4f496a['getSiblingNodes'](_0x492c3d,'backward'),..._0x4f496a['getSiblingNodes'](_0x492c3d,'forward')];})['flat']();return _0xe64c9d=[...new Set(_0xe64c9d)],_0xe64c9d;}['_getTranslationKeyForListStyle'](_0x489b6c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x489b6c)||'default')['toUpperCase']()+'_LIST_'+_0x489b6c['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x2be873{['afterInit'](){const _0x2e43e2=this['editor'];if(!_0x2e43e2['plugins']['has']('MediaEmbedEditing'))return;const _0x284770=_0x2e43e2['plugins']['get']('TrackChangesEditing'),_0x14ea33=_0x2e43e2['locale'];_0x284770['enableCommand']('mediaEmbed'),_0x284770['descriptionFactory']['registerElementLabel']('media',_0x81ef6e=>o(_0x14ea33,'ELEMENT_MEDIA',_0x81ef6e)),_0x2e43e2['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x45ac32,{writer:_0xb03df1,options:_0x130b92})=>{if(_0x130b92['showSuggestionHighlights'])return _0xb03df1['createEmptyElement']('div');},'converterPriority':'high'}),_0x2e43e2['data']['downcastDispatcher']['on']('attribute:url:media',(_0x445e74,_0x13e53d,_0x4d78d5)=>{_0x4d78d5['options']['showSuggestionHighlights']&&_0x445e74['stop']();},{'priority':'high'});}}class mt extends _0x2be873{['afterInit'](){const _0x50afb7=this['editor'];_0x50afb7['plugins']['has']('MentionEditing')&&_0x50afb7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2be873{['afterInit'](){const _0x5d90d7=this['editor'];if(!_0x5d90d7['plugins']['has']('MergeFieldsEditing'))return;_0x5d90d7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5d90d7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2bccbf=_0x5d90d7['plugins']['get']('TrackChangesEditing'),_0x47d5c9=_0x5d90d7['locale'];_0x2bccbf['descriptionFactory']['registerElementLabel']('mergeField',_0x16563d=>o(_0x47d5c9,'ELEMENT_MERGE_FIELD',_0x16563d)),_0x2bccbf['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5cbee1=>o(_0x47d5c9,'ELEMENT_MERGE_FIELD',_0x5cbee1)),_0x2bccbf['descriptionFactory']['registerDescriptionCallback'](_0x4d3452=>{if('insertion'!=_0x4d3452['type']&&'deletion'!=_0x4d3452['type'])return;const _0x208f4d=_0x4d3452['getContainedElement']();if(null==_0x208f4d)return;if(!_0x208f4d['is']('element','mergeField')&&!_0x208f4d['is']('element','mergeFieldBlock'))return;const _0x365928=_0x5d90d7['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x208f4d['getAttribute']('id'));return'insertion'==_0x4d3452['type']?{'type':'insertion','content':o(_0x47d5c9,'*Insert:*\x20%0','\x22'+_0x365928+'\x22\x20'+o(_0x47d5c9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x47d5c9,'*Remove:*\x20%0','\x22'+_0x365928+'\x22\x20'+o(_0x47d5c9,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x2be873{['afterInit'](){const _0x1f0a50=this['editor'],_0x468e7b=_0x1f0a50['plugins']['get']('TrackChangesEditing');_0x1f0a50['plugins']['has']('MultiLevelList')&&(_0x468e7b['enableDefaultAttributesIntegration']('multiLevelList'),_0x468e7b['registerBlockAttribute']('listMarkerStyle'),_0x468e7b['descriptionFactory']['registerDescriptionCallback'](_0x33ae45=>this['handleDescriptions'](_0x33ae45)));}['handleDescriptions'](_0x2081cc){const _0x859aa7=this['editor']['locale'],{data:_0x42ed56}=_0x2081cc,_0x4c49ea={'type':'format','content':''};if(_0x42ed56&&'listMarkerStyle'==_0x42ed56['key']){if(!_0x42ed56['oldValue'])return{'type':'format','content':o(_0x859aa7,'*Set\x20format:*\x20%0',o(_0x859aa7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x42ed56['newValue']+')'};if(!_0x42ed56['newValue']){let _0x48bf55=_0x2081cc['head'];for(;_0x48bf55;){if(_0x48bf55['data']&&'listType'==_0x48bf55['data']['key']&&_0x48bf55['data']['newValue'])return _0x4c49ea;_0x48bf55=_0x48bf55['next'];}return{'type':'format','content':o(_0x859aa7,'*Remove\x20format:*\x20%0',o(_0x859aa7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x42ed56['oldValue']+')'};}}}}class kt extends _0x2be873{['afterInit'](){const _0x5bb492=this['editor'];if(!_0x5bb492['plugins']['has']('PageBreakEditing'))return;_0x5bb492['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d80ce=_0x5bb492['plugins']['get']('TrackChangesEditing'),_0x314ba8=_0x5bb492['locale'];_0x3d80ce['descriptionFactory']['registerElementLabel']('pageBreak',_0x2e6307=>o(_0x314ba8,'ELEMENT_PAGE_BREAK',_0x2e6307));}}class bt extends _0x2be873{['afterInit'](){const _0x1c1824=this['editor'];if(!_0x1c1824['plugins']['has']('Paragraph'))return;const _0x37966b=_0x1c1824['locale'],_0x19853f=_0x1c1824['plugins']['get']('TrackChangesEditing');_0x19853f['descriptionFactory']['registerElementLabel']('paragraph',_0x2f8d0b=>o(_0x37966b,'ELEMENT_PARAGRAPH',_0x2f8d0b)),_0x19853f['enableDefaultAttributesIntegration']('paragraph'),_0x19853f['enableCommand']('insertParagraph'),_0x1c1824['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1c1824),{'priority':'highest'}),_0x1c1824['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5f19fb,_0x243aa5,_0x26037c)=>{_0x26037c['options']['showSuggestionHighlights']&&nr(_0x1c1824,{'showActiveMarker':!0x1})(_0x5f19fb,_0x243aa5,_0x26037c);},{'priority':'highest'});const _0x33635f=_0x19853f['descriptionFactory'];_0x33635f['registerDescriptionCallback'](_0x1404e4=>{if('insertion'!==_0x1404e4['type'])return;const {start:_0x365b73,end:_0x278d99}=_0x1404e4['getFirstRange']();if(!_0x365b73['isTouching'](_0x278d99)||!_0x365b73['nodeAfter'])return;const _0x337b9f=_0x1c1824['model']['schema'],_0xf66a02=_0x365b73['nodeAfter'];return _0x337b9f['isBlock'](_0xf66a02)&&!_0x337b9f['isLimit'](_0xf66a02)&&_0x337b9f['checkChild'](_0xf66a02,'$text')?{'type':'insertion','content':o(_0x37966b,'*Insert:*\x20%0',_0x33635f['getItemLabel'](_0xf66a02,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9b0a3c=this['editor'],_0x5ef7a3=_0x9b0a3c['locale'];_0x9b0a3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f4c59=>{if('formatBlock'!=_0x4f4c59['type'])return;const {data:_0x3d9e86}=_0x4f4c59;return _0x3d9e86&&'paragraph'==_0x3d9e86['commandName']?{'type':'format','content':o(_0x5ef7a3,'*Change\x20to:*\x20%0',o(_0x5ef7a3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xd33620,{showActiveMarker:_0x1a0c25=!0x0}={}){return(_0x19561c,_0x500fc4,_0x56b410)=>{const _0x36f260=_0xd33620['plugins']['get']('TrackChangesEditing'),_0x4b050f=_0x500fc4['markerRange']['start'],_0x18bf5c=_0x500fc4['markerRange']['end'],_0x5061c6=_0xd33620['model']['schema'];if(!_0x4b050f['isTouching'](_0x18bf5c)||!_0x4b050f['nodeAfter'])return;const _0x42db96=_0x4b050f['nodeAfter'];if(_0x5061c6['isBlock'](_0x42db96)&&!_0x5061c6['isLimit'](_0x42db96)&&_0x5061c6['checkChild'](_0x42db96,'$text')){if(!_0x56b410['consumable']['consume'](_0x500fc4['markerRange'],_0x19561c['name']))return;const {authorId:_0x5ec5be}=_0x36f260['_splitMarkerName'](_0x500fc4['markerName']),_0x5251ce=_0x56b410['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5ec5be}),_0x5dc376=_0x56b410['mapper']['toViewPosition'](_0x18bf5c);_0x1a0c25&&_0x36f260['activeMarkers']['includes'](_0x500fc4['markerName'])&&_0x56b410['writer']['addClass']('ck-suggestion-marker--active',_0x5251ce),_0x56b410['writer']['insert'](_0x5dc376,_0x5251ce),_0x56b410['mapper']['bindElementToMarker'](_0x5251ce,_0x500fc4['markerName']);}};}class wt extends _0x2be873{['afterInit'](){const _0x4dd9b0=this['editor'];if(!_0x4dd9b0['plugins']['has']('RemoveFormatEditing'))return;_0x4dd9b0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17ac25=this['editor'];_0x17ac25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x373b43=>{if('formatBlock'!=_0x373b43['type']&&'formatInline'!=_0x373b43['type'])return;const {data:_0x4ce1eb}=_0x373b43;return _0x4ce1eb&&'removeFormat'==_0x4ce1eb['commandName']?{'type':'format','content':o(_0x17ac25['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2be873{['afterInit'](){const _0x1da0d6=this['editor'];if(!_0x1da0d6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2a68cb=_0x1da0d6['plugins']['get']('TrackChangesEditing');_0x2a68cb['enableCommand']('goToPreviousRestrictedEditingException'),_0x2a68cb['enableCommand']('goToNextRestrictedEditingException');const _0x5ab66f=_0x1da0d6['plugins']['get']('RestrictedEditingModeEditing');_0x5ab66f['enableCommand']('trackChanges'),_0x5ab66f['enableCommand']('acceptSuggestion'),_0x5ab66f['enableCommand']('discardSuggestion'),_0x5ab66f['enableCommand']('acceptAllSuggestions'),_0x5ab66f['enableCommand']('discardAllSuggestions'),_0x5ab66f['enableCommand']('acceptSelectedSuggestions'),_0x5ab66f['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2be873{static get['requires'](){return[_0x4c1f0c];}['init'](){const _0x659dad=this['editor'],_0x1a7479=_0x659dad['plugins']['get']('TrackChangesEditing');_0x1a7479['enableCommand']('shiftEnter'),_0x659dad['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x659dad),{'priority':'high'}),_0x659dad['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x659dad),{'priority':'high'}),_0x659dad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x470086,_0x3cba45,_0x91a94b)=>{_0x91a94b['options']['showSuggestionHighlights']&&ge(_0x659dad,{'showActiveMarker':!0x1})(_0x470086,_0x3cba45,_0x91a94b);}),_0x1a7479['descriptionFactory']['registerElementLabel']('softBreak',_0x505789=>o(_0x659dad['locale'],'ELEMENT_LINE_BREAK',_0x505789));}}function ge(_0x2430c5,{showActiveMarker:_0x561b66=!0x0}={}){return(_0xa2e621,_0x4ea9a9,_0x19fa76)=>{const _0x5281e8=_0x2430c5['plugins']['get']('TrackChangesEditing');if(!_0x19fa76['consumable']['test'](_0x4ea9a9['markerRange'],_0xa2e621['name']))return;const _0x183e0e=_0x2430c5['model'];for(const _0x56c38e of _0x4ea9a9['markerRange']['getItems']()){if(!_0x56c38e['is']('element','softBreak'))continue;const _0x245210='deletion'==_0x4ea9a9['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3291be}=_0x5281e8['_splitMarkerName'](_0x4ea9a9['markerName']),_0x4c1e7e=_0x19fa76['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x245210,'data-author-id':_0x3291be}),_0x514f88=_0x19fa76['mapper']['toViewPosition'](_0x183e0e['createPositionBefore'](_0x56c38e));_0x561b66&&_0x5281e8['activeMarkers']['includes'](_0x4ea9a9['markerName'])&&_0x19fa76['writer']['addClass']('ck-suggestion-marker--active',_0x4c1e7e),_0x19fa76['writer']['insert'](_0x514f88,_0x4c1e7e),_0x19fa76['mapper']['bindElementToMarker'](_0x4c1e7e,_0x4ea9a9['markerName']);}};}class St extends _0x2be873{['afterInit'](){const _0x627b55=this['editor'],_0x36f9d5=_0x627b55['model'],_0x4fb556=_0x627b55['locale'];if(!_0x627b55['plugins']['has']('StandardEditingModeEditing'))return;const _0x59e31e=_0x627b55['plugins']['get']('TrackChangesEditing'),_0x57686a='restrictedEditingException',_0x4246de=_0x627b55['commands']['get'](_0x57686a);_0x59e31e['enableCommand'](_0x57686a,(_0x2729a2,_0x380f6d={})=>{const _0x13a66c=_0x36f9d5['document']['selection'];if(_0x13a66c['isCollapsed'])return void _0x2729a2(_0x380f6d);const _0x7c58ab=void 0x0!==_0x380f6d['forceValue']?_0x380f6d['forceValue']:!_0x4246de['value'];_0x36f9d5['change'](()=>{const _0x5a6dce=Array['from'](_0x13a66c['getRanges']());for(const _0x4206a4 of _0x5a6dce){const _0x4ce89c=_0x7c58ab?[_0x4206a4]:io(_0x57686a,_0x4206a4,_0x36f9d5);for(const _0x14d29a of _0x4ce89c)_0x59e31e['markInlineFormat'](_0x14d29a,{'commandName':_0x57686a,'commandParams':[{'forceValue':_0x7c58ab}]});}});}),_0x59e31e['descriptionFactory']['registerDescriptionCallback'](_0x451729=>{if('formatBlock'!=_0x451729['type']&&'formatInline'!=_0x451729['type'])return;const {data:_0x57c22f}=_0x451729;return _0x57c22f&&_0x57c22f['commandName']==_0x57686a?_0x57c22f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fb556,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fb556,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x2be873{['afterInit'](){const _0xd57c78=this['editor'];if(!_0xd57c78['plugins']['has']('Style')||!_0xd57c78['plugins']['has']('DataSchema'))return;const _0x3d84aa=_0xd57c78['plugins']['get']('TrackChangesEditing'),_0x1f1716=_0xd57c78['locale'],_0x20e426=_0xd57c78['config']['get']('style')||{},_0x4db3dd=_0xd57c78['plugins']['get']('GeneralHtmlSupport'),_0x553673=_0xd57c78['plugins']['get']('StyleUtils')['normalizeConfig'](_0xd57c78['plugins']['get']('DataSchema'),_0x20e426['definitions']);_0x3d84aa['enableDefaultAttributesIntegration']('style');const _0x591b70=new Set();for(const _0x10fded of _0x553673['block']){const _0x5bacfa=_0x4db3dd['getGhsAttributeNameForElement'](_0x10fded['element']);_0x591b70['add'](_0x5bacfa);}const _0x3238db=new Set();for(const _0x2831dd of _0x553673['inline']){const _0x402921=_0x4db3dd['getGhsAttributeNameForElement'](_0x2831dd['element']);_0x3238db['add'](_0x402921);for(const _0x23665b of _0x2831dd['ghsAttributes'])_0x3238db['add'](_0x23665b);}for(const _0x2296b3 of _0x591b70)_0x3d84aa['registerBlockAttribute'](_0x2296b3),_0x3d84aa['descriptionFactory']['registerAttributeLabel'](_0x2296b3,o(_0x1f1716,'FORMAT_STYLE'));for(const _0x1056bc of _0x3238db)_0x3d84aa['registerInlineAttribute'](_0x1056bc),_0x3d84aa['descriptionFactory']['registerAttributeLabel'](_0x1056bc,o(_0x1f1716,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x450051=this['editor'],_0x2c56ab=_0x450051['locale'];_0x450051['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30ccdc=>{if('formatBlock'!=_0x30ccdc['type']&&'formatInline'!=_0x30ccdc['type'])return;const {data:_0x4d8ad5}=_0x30ccdc;return _0x4d8ad5&&'style'===_0x4d8ad5['commandName']?_0x4d8ad5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c56ab,'*Set\x20format:*\x20%0',_0x4d8ad5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2c56ab,'*Remove\x20format:*\x20%0',_0x4d8ad5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x2be873{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4c3333){super(_0x4c3333),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x285108=this['editor'],_0x24db77=_0x285108['model']['document']['selection'];if(!_0x285108['plugins']['has']('TableEditing'))return;const _0x3a6817=_0x285108['locale'],_0x5d617d=_0x285108['plugins']['get']('TrackChangesEditing'),_0x51bb5c=_0x285108['plugins']['get']('TableUtils');_0x5d617d['descriptionFactory']['registerElementLabel']('table',_0x47bc2d=>o(_0x3a6817,'ELEMENT_TABLE',_0x47bc2d)),this['_setupColumnsRowsFixing'](),_0x5d617d['enableCommand']('insertTable'),_0x5d617d['enableCommand']('selectTableRow'),_0x5d617d['enableCommand']('selectTableColumn');for(const _0xcd21e0 of['insertTableRowAbove','insertTableRowBelow']){const _0x23ca7c=_0x285108['commands']['get'](_0xcd21e0);_0x5d617d['enableCommand'](_0xcd21e0,_0x14bc4b=>{_0x285108['model']['change'](_0x131dab=>{_0x14bc4b();const _0x1f7a61='above'===_0x23ca7c['order'],_0x230d1f=_0x51bb5c['getSelectionAffectedTableCells'](_0x24db77),_0x4ef701=_0x51bb5c['getRowIndexes'](_0x230d1f),_0x32f5ed=_0x1f7a61?_0x4ef701['first']-0x1:_0x4ef701['last']+0x1,_0x3d2c4b=_0x230d1f[0x0]['findAncestor']('table'),_0xea03ef=_0x51bb5c['createTableWalker'](_0x3d2c4b,{'startRow':_0x32f5ed,'endRow':_0x32f5ed}),_0xc62abf=Array['from'](_0xea03ef)['map'](_0x442401=>_0x131dab['createRangeOn'](_0x442401['cell']));_0x5d617d['markMultiRangeInsertion'](_0xc62abf,'tableRow');});});}for(const _0x452dcc of['insertTableColumnLeft','insertTableColumnRight']){const _0x141349=_0x285108['commands']['get'](_0x452dcc);_0x5d617d['enableCommand'](_0x452dcc,_0xb09f83=>{_0x285108['model']['change'](_0x1a6690=>{_0xb09f83();const _0x4cd591='left'===_0x141349['order'],_0x4e7e08=_0x51bb5c['getSelectionAffectedTableCells'](_0x24db77),_0xba1a18=_0x51bb5c['getColumnIndexes'](_0x4e7e08),_0xfa4aeb=_0x4cd591?_0xba1a18['first']-0x1:_0xba1a18['last']+0x1,_0xe73493=_0x4e7e08[0x0]['findAncestor']('table'),_0x1e5fdc=_0x51bb5c['createTableWalker'](_0xe73493,{'startRow':0x0,'column':_0xfa4aeb,'includeAllSlots':!0x1}),_0x5015f9=Array['from'](_0x1e5fdc)['map'](_0x30bf13=>_0x1a6690['createRangeOn'](_0x30bf13['cell']));_0x5d617d['markMultiRangeInsertion'](_0x5015f9,'tableColumn');});});}for(const _0xb5f4bd of['removeTableRow','removeTableColumn']){const _0x2702cd=_0xb5f4bd['substr'](0xb),_0x96db2a=_0x2702cd['toLowerCase'](),_0x58a76d=_0x96db2a['substr'](0x0,0x3)+'span',_0x418a3c='table'+_0x2702cd,_0x26df0c='min'+_0x2702cd,_0x47a8b1='max'+_0x2702cd;_0x5d617d['enableCommand'](_0xb5f4bd,()=>{_0x285108['model']['change'](_0x3430dc=>{const _0x39eab8=_0x51bb5c['getSelectionAffectedTableCells'](_0x24db77),_0x5c2c2e=_0x39eab8[0x0]['findAncestor']('table');let _0x819d8c;if('removeTableRow'==_0xb5f4bd){const _0x400107=_0x51bb5c['getRowIndexes'](_0x39eab8);_0x819d8c={'startRow':_0x400107['first'],'endRow':_0x400107['last'],'includeAllSlots':!0x0};}else{const _0x2f9a88=_0x51bb5c['getColumnIndexes'](_0x39eab8);_0x819d8c={'startColumn':_0x2f9a88['first'],'endColumn':_0x2f9a88['last'],'includeAllSlots':!0x0};}const _0x44b9fd=_0x51bb5c['createTableWalker'](_0x5c2c2e,_0x819d8c),_0x344c17=Array['from'](_0x44b9fd)['map'](({cell:_0x182b9f})=>_0x182b9f),_0x4d7dac=be(_0x344c17['filter'](_0x456160=>_0x456160['hasAttribute'](_0x58a76d))),_0x3d0a21=be(_0x344c17['filter'](_0x4efcce=>!_0x4efcce['hasAttribute'](_0x58a76d)))['map'](_0x30e411=>_0x3430dc['createRangeOn'](_0x30e411)),_0xbf0486=_0x5d617d['markMultiRangeDeletion'](_0x3d0a21,_0x418a3c);if(_0xbf0486&&('tableRow'==_0xbf0486['subType']||'tableColumn'==_0xbf0486['subType'])){const _0x323904=this['_getSuggestionCoords'](_0xbf0486);for(const _0x2e557e of _0x4d7dac){const _0x4a0b2d=_0x3430dc['createRangeOn'](_0x2e557e),_0xf00d1b=_0x51bb5c['getCellLocation'](_0x2e557e),_0x49a3fc=_0x2e557e['getAttribute'](_0x58a76d)-0x1,_0x441db1=_0x323904[_0x26df0c],_0x9b633=_0x323904[_0x47a8b1];_0x441db1<=_0xf00d1b[_0x96db2a]&&_0xf00d1b[_0x96db2a]+_0x49a3fc<=_0x9b633&&_0xbf0486['addRange'](_0x4a0b2d);}}});});}function _0x1bbb20(_0x46acbd){const _0x18ecfc=Array['from'](_0x24db77['getRanges']())['map'](_0x3c5c7b=>_0x3f00a1['fromRange'](_0x3c5c7b));_0x285108['model']['change'](_0x3df5e2=>{const _0x524171=_0x3df5e2['batch'];_0x46acbd=_0x46acbd['filter'](_0x5eb7a6=>'$graveyard'!=_0x5eb7a6['root']['rootName']),_0x3df5e2['setSelection'](_0x46acbd),_0x285108['commands']['get']('removeTableRow')['refresh'](),_0x285108['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x285108['model']['enqueueChange'](()=>{_0x285108['model']['enqueueChange'](_0x524171,_0x1b3a00=>{const _0x362ae9=_0x18ecfc['filter'](_0x13a79f=>'$graveyard'!=_0x13a79f['root']['rootName']);_0x362ae9['length']>0x0&&_0x1b3a00['setSelection'](_0x362ae9);for(const _0x3ede1d of _0x18ecfc)_0x3ede1d['detach']();});});});}function _0x37f8c7(_0x546175){_0x285108['model']['change'](_0xc5746e=>{const _0x41093b=Array['from'](_0x24db77['getRanges']())['map'](_0x38b558=>_0x3f00a1['fromRange'](_0x38b558)),_0x4c6aa1=[];for(const _0x48f0f8 of _0x546175)for(const _0x58c5f0 of _0x48f0f8['getItems']({'shallow':!0x0}))_0x4c6aa1['push'](_0x58c5f0);for(const _0x144948 of _0x4c6aa1)'$graveyard'!=_0x144948['root']['rootName']&&(_0xc5746e['setSelection'](_0xc5746e['createPositionAt'](_0x144948,0x0)),_0x285108['commands']['get']('removeTableColumn')['refresh'](),_0x285108['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1136a6=_0x41093b['filter'](_0x2d672a=>'$graveyard'!=_0x2d672a['root']['rootName']);_0x1136a6['length']>0x0&&_0xc5746e['setSelection'](_0x1136a6);for(const _0x101506 of _0x41093b)_0x101506['detach']();});}function _0x37b0ad(_0x2d079f,_0x27e01e){return _0x27e01e['every'](_0xbc9b8a=>_0x2d079f['some'](_0x4188bd=>_0x4188bd['end']['isEqual'](_0xbc9b8a['start'])||_0xbc9b8a['end']['isEqual'](_0x4188bd['start'])));}function _0x23734e(_0x24bf19,_0x538e36){return!_0x24bf19['some'](_0x1eeabd=>_0x538e36['some'](_0x105a03=>_0x1eeabd['isIntersecting'](_0x105a03)))&&_0x24bf19['some'](_0x22d723=>_0x538e36['some'](_0x30b428=>_0x22d723['end']['isTouching'](_0x30b428['start'])));}_0x285108['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x622290,_0x438821,_0x50bd18)=>{if(!_0x50bd18['options']['showSuggestionHighlights'])return;const _0x46f3b2=_0x438821['item'];if(!_0x46f3b2)return;const _0x312a11=_0x50bd18['mapper']['toViewElement'](_0x46f3b2);function _0x3febbf(_0xea43bc){return Array['isArray'](_0xea43bc)?_0xea43bc:[_0xea43bc];}_0x312a11&&'tableCell'===_0x46f3b2['name']&&_0x52e27(_0x312a11,_0x50bd18['writer'],(_0x133d93,_0x5e295f,_0x45be47)=>_0x45be47['addClass'](_0x3febbf(_0x5e295f['classes']),_0x133d93),(_0x5ecae5,_0x1c1c14,_0x173aa6)=>_0x173aa6['removeClass'](_0x3febbf(_0x1c1c14['classes']),_0x5ecae5));},{'priority':'highest'}),_0x5d617d['descriptionFactory']['registerDescriptionCallback'](_0x485ebe=>{if('insertion'!=_0x485ebe['type']&&'deletion'!=_0x485ebe['type'])return;const _0x32b5c9=_0x485ebe['getContainedElement']();if(null!=_0x32b5c9&&_0x32b5c9['is']('element','table')){if('insertion'==_0x485ebe['type']){const _0x30584b=_0x485ebe['getItems']()['filter'](_0x116364=>_0x116364['is']('$textProxy'))['map'](_0x5e2222=>_0x5e2222['data']);if(_0x30584b['length'])return{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x30584b['join']('\x20')+'\x22'))};}if('deletion'==_0x485ebe['type']){const _0x99fa0=_0x485ebe['getItems']()['filter'](_0x41830a=>_0x41830a['is']('$textProxy'))['map'](_0x361e11=>_0x361e11['data']);if(_0x99fa0['length'])return{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x99fa0['join']('\x20')+'\x22'))};}}}),_0x5d617d['descriptionFactory']['registerDescriptionCallback'](_0x246df1=>{if('tableRow'==_0x246df1['subType']){const _0x4b21cd=_0x246df1['getItems']()['filter'](_0x473047=>_0x473047['is']('$textProxy'))['map'](_0x576449=>_0x576449['data']),_0x45af35=this['_getSuggestionCoords'](_0x246df1),_0x2820b6=_0x45af35['maxRow']-_0x45af35['minRow']+0x1;if('insertion'==_0x246df1['type'])return _0x4b21cd['length']?{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2820b6,'\x22'+_0x4b21cd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_ROW',_0x2820b6))};if('deletion'==_0x246df1['type'])return _0x4b21cd['length']?{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2820b6,'\x22'+_0x4b21cd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_ROW',_0x2820b6))};}if('tableColumn'==_0x246df1['subType']){const _0x285805=_0x246df1['getItems']()['filter'](_0x37f15d=>_0x37f15d['is']('$textProxy'))['map'](_0x15baf7=>_0x15baf7['data']),_0x186e30=this['_getSuggestionCoords'](_0x246df1),_0x34ee44=_0x186e30['maxColumn']-_0x186e30['minColumn']+0x1;if('insertion'==_0x246df1['type'])return _0x285805['length']?{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34ee44,'\x22'+_0x285805['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_COLUMN',_0x34ee44))};if('deletion'==_0x246df1['type'])return _0x285805['length']?{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34ee44,'\x22'+_0x285805['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_COLUMN',_0x34ee44))};}}),_0x5d617d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1bbb20),_0x5d617d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1bbb20),_0x5d617d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x37f8c7),_0x5d617d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x37f8c7),_0x5d617d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x37b0ad),_0x5d617d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x37b0ad),_0x5d617d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x23734e),_0x5d617d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x23734e);}['_acceptFormatSuggestionCallbackFactory'](){const _0xe81e0d=this['editor'],_0xb52729=_0xe81e0d['model']['document']['selection'];return(_0x103f59,_0x2feecf)=>{_0xe81e0d['model']['change'](_0x568293=>{const {commandName:_0x548b95,commandParams:_0x548798}=_0x2feecf;let _0x1e1e1f=_0x103f59[0x0]['end']['nodeBefore'];_0x548798&&_0x548798[0x0]&&!0x1===_0x548798[0x0]['forceValue']&&(_0x1e1e1f=_0x103f59[0x0]['start']['nodeAfter']);const _0x22fd20=_0x568293['createRangeIn'](_0x1e1e1f);if('$graveyard'==_0x22fd20['root']['rootName'])return;const _0x20bb13=Array['from'](_0xb52729['getRanges']())['map'](_0x2a1df9=>_0x3f00a1['fromRange'](_0x2a1df9));_0x568293['setSelection'](_0x22fd20),_0xe81e0d['commands']['get'](_0x548b95)['refresh'](),_0x548798['push']({'forceDefaultExecution':!0x0}),_0xe81e0d['execute'](_0x548b95,..._0x548798);const _0x5adddc=_0x20bb13['filter'](_0x1be6b9=>'$graveyard'!=_0x1be6b9['root']['rootName']);_0x5adddc['length']>0x0&&_0x568293['setSelection'](_0x5adddc);for(const _0x49f91b of _0x20bb13)_0x49f91b['detach']();});};}['_getCoordsForCells'](_0x13e859){const _0x2756a9=this['editor']['plugins']['get']('TableUtils');let _0x125bd4=Number['MAX_SAFE_INTEGER'],_0x2af93d=Number['MIN_SAFE_INTEGER'],_0x2f8963=Number['MAX_SAFE_INTEGER'],_0x44ec64=Number['MIN_SAFE_INTEGER'];for(const _0x4ac7e7 of _0x13e859){if('$graveyard'==_0x4ac7e7['root']['rootName'])continue;const {row:_0x5d85c8,column:_0x2aa22e}=_0x2756a9['getCellLocation'](_0x4ac7e7),_0x40693f=_0x4ac7e7['hasAttribute']('rowspan')?_0x4ac7e7['getAttribute']('rowspan')-0x1:0x0,_0x252a76=_0x4ac7e7['hasAttribute']('colspan')?_0x4ac7e7['getAttribute']('colspan')-0x1:0x0;_0x125bd4=_0x5d85c8<_0x125bd4?_0x5d85c8:_0x125bd4,_0x2af93d=_0x5d85c8+_0x40693f>_0x2af93d?_0x5d85c8+_0x40693f:_0x2af93d,_0x2f8963=_0x2aa22e<_0x2f8963?_0x2aa22e:_0x2f8963,_0x44ec64=_0x2aa22e+_0x252a76>_0x44ec64?_0x2aa22e+_0x252a76:_0x44ec64;}return{'minRow':_0x125bd4,'maxRow':_0x2af93d,'minColumn':_0x2f8963,'maxColumn':_0x44ec64};}['_setupColumnsRowsFixing'](){const _0x160330=this['editor'],_0x386c38=_0x160330['plugins']['get']('TrackChangesEditing'),_0x154b33=_0x160330['plugins']['get']('TableUtils');_0x160330['model']['document']['on']('change:data',()=>{const _0x3a717f=Array['from'](_0x160330['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45e7bc,data:_0x2f7bd9}of _0x3a717f){const {group:_0x4aae10,id:_0x53b3ce,subType:_0x4edd1f}=_0x386c38['_splitMarkerName'](_0x45e7bc);if('suggestion'!=_0x4aae10)continue;if(null!=_0x2f7bd9['oldRange'])continue;const _0x37b23d=_0x386c38['getSuggestion'](_0x53b3ce);this['_tablePostFixingSubtypes']['includes'](_0x4edd1f)&&this['_tableSuggestions']['add'](_0x37b23d);}},{'priority':'low'});const _0x3db48d=(_0x28701b,_0x3ff145)=>{let _0x4ac6b3=!0x1;const _0x4db52e=_0x3ff145['createRangeOn'](_0x28701b),_0x2c382d=_0x28701b['findAncestor']('table'),_0x419b12=_0x154b33['getCellLocation'](_0x28701b);for(const _0x54c6f3 of this['_tableSuggestions']){const _0x24cb22=_0x54c6f3['subType'],_0x156b2c=_0x24cb22['startsWith']('tablePaste'),_0x193e57=_0x24cb22['substr'](_0x156b2c?0xa:0x5),_0x549ae7=_0x193e57['toLowerCase'](),_0x547bfc=_0x549ae7['substr'](0x0,0x3)+'span',_0x461dc8='min'+_0x193e57,_0xbd0a32='max'+_0x193e57;if(!_0x54c6f3['isInContent'])continue;if(_0x2c382d!=_0x54c6f3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x54c6f3['isIntersectingWithRange'](_0x4db52e))continue;const _0x585950=_0x28701b['hasAttribute'](_0x547bfc)?_0x28701b['getAttribute'](_0x547bfc)-0x1:0x0,_0x22af8a=this['_getSuggestionCoords'](_0x54c6f3),_0x325315=_0x22af8a[_0x461dc8],_0x48946b=_0x22af8a[_0xbd0a32];_0x325315<=_0x419b12[_0x549ae7]&&_0x419b12[_0x549ae7]+_0x585950<=_0x48946b&&(_0x54c6f3['addRange'](_0x4db52e),_0x4ac6b3=!0x0);}return _0x4ac6b3;};_0x160330['model']['document']['registerPostFixer'](_0x227a6a=>{let _0x3f76c0=!0x1;for(const _0x5988e1 of _0x160330['model']['document']['differ']['getChanges']())if('insert'==_0x5988e1['type']){if('tableRow'==_0x5988e1['name']){for(const _0x23f268 of _0x5988e1['position']['nodeAfter']['getChildren']())_0x3f76c0=_0x3f76c0||_0x3db48d(_0x23f268,_0x227a6a);}else'tableCell'==_0x5988e1['name']&&(_0x3f76c0=_0x3f76c0||_0x3db48d(_0x5988e1['position']['nodeAfter'],_0x227a6a));}return _0x3f76c0;});}['_getSuggestionCoords'](_0x192eee){return this['_getCoordsForCells'](_0x192eee['getRanges']()['map'](_0x3a8b04=>_0x3a8b04['start']['nodeAfter']));}}function be(_0x245eb7){return Array['from'](new Set(_0x245eb7)['values']());}class vt extends _0x2be873{static get['requires'](){return[It];}['afterInit'](){const _0x35fa14=this['editor'],_0xe1f913=_0x35fa14['model']['document']['selection'],_0x549885=_0x35fa14['locale'];if(!_0x35fa14['plugins']['has']('TableEditing'))return;const _0x20b763=_0x35fa14['plugins']['get']('TrackChangesEditing'),_0xdcec64=_0x35fa14['plugins']['get']('TableUtils'),_0x433850=_0x35fa14['plugins']['get'](It);_0x433850['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x20b763['enableCommand']('mergeTableCells',()=>{const _0x129ee6=_0xdcec64['getSelectionAffectedTableCells'](_0x35fa14['model']['document']['selection']);_0x35fa14['model']['change'](()=>{_0x20b763['markMultiRangeBlockFormat'](_0x129ee6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x35fa14['commands']['get']('mergeTableCells')['on']('execute',(_0x486fe8,_0x4e8d43)=>{_0x35fa14['commands']['get']('trackChanges')['value']&&(_0x4e8d43['length']>0x0&&_0x4e8d43[_0x4e8d43['length']-0x1]&&_0x4e8d43[_0x4e8d43['length']-0x1]['forceDefaultExecution']||_0x20b763['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x486fe8['stop']());},{'priority':'highest'});for(const _0x453629 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x39f404=_0x35fa14['commands']['get'](_0x453629);_0x20b763['enableCommand'](_0x453629,()=>{const _0x509d18=_0x35fa14['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4ad691=>_0x4ad691['is']('element','tableCell')),_0x4f98a6=_0x39f404['value'];_0x35fa14['model']['change'](()=>{_0x20b763['markMultiRangeBlockFormat']([_0x509d18,_0x4f98a6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x102776 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5d000b=_0x35fa14['commands']['get'](_0x102776);_0x20b763['enableCommand'](_0x102776,()=>{const _0x291f8d=_0xdcec64['getSelectionAffectedTableCells'](_0x35fa14['model']['document']['selection'])[0x0],_0x20c133=_0x291f8d['findAncestor']('table'),{column:_0x405ec4,row:_0x33dc26}=_0xdcec64['getCellLocation'](_0x291f8d);let _0x434a81=[];if('horizontally'==_0x5d000b['direction']){const _0x1cdc5b=_0xdcec64['createTableWalker'](_0x20c133,{'startRow':_0x33dc26,'endRow':_0x33dc26,'includeAllSlots':!0x0});_0x434a81=Array['from'](_0x1cdc5b)['map'](_0x4b5c7c=>_0x4b5c7c['cell']);}else{const _0x17a9c6=_0xdcec64['createTableWalker'](_0x20c133,{'column':_0x405ec4,'includeAllSlots':!0x0});_0x434a81=Array['from'](_0x17a9c6)['map'](_0x436339=>_0x436339['cell']);}_0x35fa14['model']['change'](_0x5a7074=>{_0x20b763['markBlockFormat'](_0x5a7074['createRangeOn'](_0x291f8d),{'commandName':_0x102776,'commandParams':[]},_0x434a81,_0x102776);});});}_0x20b763['descriptionFactory']['registerDescriptionCallback'](_0xcc9d93=>{if('formatBlock'!=_0xcc9d93['type']&&'formatInline'!=_0xcc9d93['type'])return;const {data:_0x1e2b40}=_0xcc9d93;return _0x1e2b40&&'mergeTableCells'==_0x1e2b40['commandName']?{'type':'format','content':o(_0x549885,'*Merge\x20cells*')}:void 0x0;}),_0x20b763['descriptionFactory']['registerDescriptionCallback'](_0x42e050=>{if('formatBlock'!=_0x42e050['type']&&'formatInline'!=_0x42e050['type'])return;const {data:_0x2ff899}=_0x42e050;return _0x2ff899?'splitTableCellVertically'==_0x2ff899['commandName']?{'type':'format','content':o(_0x549885,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2ff899['commandName']?{'type':'format','content':o(_0x549885,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x578df9=_0x433850['_acceptFormatSuggestionCallbackFactory']();for(const _0x11ff6a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x20b763['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x11ff6a,'accept',_0x578df9);for(const _0x593cf9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x20b763['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x593cf9,'accept',_0x578df9);_0x20b763['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x273f7d=>{_0x35fa14['model']['change'](_0x268265=>{const _0x351a41=Array['from'](_0xe1f913['getRanges']())['map'](_0x52f07e=>_0x3f00a1['fromRange'](_0x52f07e));_0x268265['setSelection'](_0x273f7d),_0x35fa14['commands']['get']('mergeTableCells')['refresh'](),_0x35fa14['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x54cb31=_0x351a41['filter'](_0x40a192=>'$graveyard'!=_0x40a192['root']['rootName']);_0x54cb31['length']>0x0&&_0x268265['setSelection'](_0x54cb31);for(const _0x59f04d of _0x351a41)_0x59f04d['detach']();});});for(const _0x53eadd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x19ce30=_0x35fa14['commands']['get'](_0x53eadd);_0x19ce30['on']('set:isEnabled',(_0x1f0f3c,_0x34048b,_0x405c6f)=>{if(_0x405c6f){const _0x5cd6e5=_0x35fa14['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x22820e=>_0x22820e['is']('element','tableCell'));this['_areMergableCells'](_0x19ce30['value'],_0x5cd6e5)||(_0x1f0f3c['return']=!0x1,_0x1f0f3c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x30689c=this['editor']['commands']['get']('mergeTableCells'),_0x28922a=this['editor']['plugins']['get']('TableUtils');if(!_0x30689c['isEnabled'])return!0x1;const _0x566aa7=_0x28922a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x11fd5 of _0x566aa7)for(const _0x5ae60d of _0x566aa7)if(_0x11fd5!=_0x5ae60d&&!this['_areMergableCells'](_0x11fd5,_0x5ae60d))return!0x1;return!0x0;}['_areMergableCells'](_0x245f3d,_0x4224c5){const _0x1e8610=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10d3e6=this['editor']['model']['createRangeOn'](_0x245f3d),_0x30d8ed=this['editor']['model']['createRangeOn'](_0x4224c5),_0x975291=new Set(),_0x25e4f2=new Set();for(const _0x8d8c20 of _0x1e8610['getSuggestions']())if(('insertion'==_0x8d8c20['type']||'deletion'==_0x8d8c20['type']||'mergeTableCells'==_0x8d8c20['subType'])&&_0x8d8c20['isInContent']){for(const _0x946550 of _0x8d8c20['getRanges']())_0x946550['containsRange'](_0x10d3e6,!0x0)&&_0x975291['add'](_0x8d8c20['type']+':'+_0x8d8c20['author']['id']),_0x946550['containsRange'](_0x30d8ed,!0x0)&&_0x25e4f2['add'](_0x8d8c20['type']+':'+_0x8d8c20['author']['id']);}if(_0x975291['size']!=_0x25e4f2['size'])return!0x1;for(const _0x413eef of _0x975291)if(!_0x25e4f2['has'](_0x413eef))return!0x1;return!0x0;}}class Ct extends _0x2be873{static get['requires'](){return[It];}['afterInit'](){const _0x591807=this['editor'];if(!_0x591807['plugins']['has']('TableEditing'))return;const _0x1c7813=_0x591807['locale'],_0x33160a=_0x591807['plugins']['get']('TrackChangesEditing');_0x33160a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x33160a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x33160a['registerBlockAttribute']('headingRows'),_0x33160a['registerBlockAttribute']('headingColumns'),_0x33160a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1c7813,'FORMAT_HEADER_ROW')),_0x33160a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1c7813,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4f8ef2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x369a84=this['editor']['plugins']['get']('TableUtils'),_0x2ce712=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x51c830({showActiveMarker:_0x431243=!0x0,setDataAttribute:_0x50926a=!0x0}={}){return(_0x234f52,_0x5a624a,_0x5d0e08)=>{const {type:_0x490fe0,id:_0x2260f1}=_0x4f8ef2['_splitMarkerName'](_0x5a624a['markerName']),_0xdf2d4b=_0x4f8ef2['getSuggestion'](_0x2260f1),_0x1ea5bd=_0xdf2d4b['data'];if('formatBlock'!=_0xdf2d4b['type']||!_0x1ea5bd||'setTableColumnHeader'!=_0x1ea5bd['commandName'])return;if(_0x5a624a['item'])return void _0x234f52['stop']();if(!_0x5d0e08['consumable']['consume'](_0x5a624a['markerRange'],_0x234f52['name']))return;const _0x1fd130=_0x5a624a['markerRange']['start']['nodeAfter'],_0x1c0fcc=_0x5a624a['markerRange']['end']['nodeBefore'],_0x5da5f9=_0x1fd130['parent']['parent'],{column:_0x518dfd}=_0x369a84['getCellLocation'](_0x1fd130),{column:_0x53889d}=_0x369a84['getCellLocation'](_0x1c0fcc);for(let _0x3385cd=_0x518dfd;_0x3385cd<=_0x53889d;_0x3385cd++){const _0x2d164f=_0x369a84['createTableWalker'](_0x5da5f9,{'column':_0x3385cd,'includeAllSlots':!0x1});for(const _0x5d84be of _0x2d164f){const _0x3afd44=_0x5d84be['cell'],_0x249e5a=_0x5d0e08['mapper']['toViewElement'](_0x3afd44);_0x5d0e08['writer']['addClass']('ck-suggestion-marker-'+_0x490fe0,_0x249e5a),_0x50926a&&_0x5d0e08['writer']['setAttribute']('data-suggestion',_0x2260f1,_0x249e5a),_0x5d0e08['mapper']['bindElementToMarker'](_0x249e5a,_0x5a624a['markerName']),_0x431243&&(_0x4f8ef2['activeMarkers']['includes'](_0x5a624a['markerName'])?_0x5d0e08['writer']['addClass']('ck-suggestion-marker--active',_0x249e5a):_0x5d0e08['writer']['removeClass']('ck-suggestion-marker--active',_0x249e5a));}}};}_0x4f8ef2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2ce712),_0x4f8ef2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2ce712),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x51c830(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x506373,_0x5c080a,_0x21893b)=>{_0x21893b['options']['showSuggestionHighlights']&&_0x51c830({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x506373,_0x5c080a,_0x21893b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4648c4,_0x5ca089,_0x571b9b)=>{const {type:_0x34bca7,id:_0x2e52ec}=_0x4f8ef2['_splitMarkerName'](_0x5ca089['markerName']),_0x288e54=_0x4f8ef2['getSuggestion'](_0x2e52ec),_0x1ebb3d=_0x288e54['data'];if('formatBlock'!=_0x288e54['type']||!_0x1ebb3d||'setTableColumnHeader'!=_0x1ebb3d['commandName'])return;const _0x4d6afd=_0x571b9b['mapper']['markerNameToElements'](_0x5ca089['markerName']);if(_0x4d6afd){for(const _0x45b778 of _0x4d6afd)_0x571b9b['writer']['removeClass']('ck-suggestion-marker-'+_0x34bca7,_0x45b778),_0x571b9b['writer']['removeClass']('ck-suggestion-marker--active',_0x45b778),_0x571b9b['writer']['removeAttribute']('data-suggestion',_0x45b778),_0x571b9b['mapper']['unbindElementFromMarkerName'](_0x45b778,_0x5ca089['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2e2e=this['editor'],_0x5174e3=_0x1f2e2e['locale'];function _0x4734d0(_0x6b7cc0){return{'type':'format','content':o(_0x5174e3,'*Format:*\x20%0',_0x6b7cc0)};}_0x1f2e2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x236da9=>{if('formatBlock'!=_0x236da9['type'])return;const {data:_0x581b05}=_0x236da9;if(_0x581b05){if('setTableRowHeader'==_0x581b05['commandName']){const _0xa9c63a=_0x581b05['commandParams'][0x0]['forceValue'];return _0x4734d0(o(_0x5174e3,_0xa9c63a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x581b05['commandName']){const _0x13b43a=_0x581b05['commandParams'][0x0]['forceValue'];return _0x4734d0(o(_0x5174e3,_0x13b43a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x490e8c=>[_0x490e8c,null]));class _t extends _0x2be873{static get['requires'](){return[It];}['afterInit'](){const _0x4faba2=this['editor'];if(!_0x4faba2['plugins']['has']('TableClipboard'))return;const _0x22a85c=_0x4faba2['plugins']['get']('TrackChangesEditing'),_0x24cb5d=_0x4faba2['plugins']['get']('TableUtils'),_0x29252d=_0x4faba2['plugins']['get'](It),_0xeececf=_0x4faba2['plugins']['get']('TableClipboard');_0x29252d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4faba2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4faba2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x134ba4=null;_0x4faba2['model']['on']('insertContent',(_0x3f2ba6,_0xb154ae)=>{const [_0x341a73,_0x443fdd]=_0xb154ae,_0x10901c=_0xb154ae[_0xb154ae['length']-0x1];_0x10901c&&_0x10901c['forceDefaultExecution']||_0x22a85c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x46d4a3,_0x29c33b,_0x8cac5b,_0x106ada,_0x2af9e6){if(_0x29c33b&&!_0x29c33b['is']('documentSelection'))return!0x1;const _0x247d6d=_0x2af9e6['getTableIfOnlyTableInContent'](_0x46d4a3,_0x8cac5b);if(!_0x247d6d||!Re(_0x247d6d,void 0x0,_0x106ada))return!0x1;const _0x1bb16c=_0x106ada['getSelectionAffectedTableCells'](_0x8cac5b['document']['selection']);if(!_0x1bb16c['length'])return!0x1;const _0x212880=_0x1bb16c[0x0]['findAncestor']('table'),_0x5b61f9=_0x106ada['getRowIndexes'](_0x1bb16c),_0x53bb75=_0x106ada['getColumnIndexes'](_0x1bb16c),_0x4e1c46={'startRow':_0x5b61f9['first'],'endRow':_0x5b61f9['last'],'startColumn':_0x53bb75['first'],'endColumn':_0x53bb75['last']};return 0x1==_0x1bb16c['length']&&(_0x4e1c46['endRow']+=_0x106ada['getRows'](_0x247d6d)-0x1,_0x4e1c46['endColumn']+=_0x106ada['getColumns'](_0x247d6d)-0x1),Re(_0x212880,_0x4e1c46,_0x106ada);}(_0x341a73,_0x443fdd,_0x4faba2['model'],_0x24cb5d,_0xeececf)&&(_0x3f2ba6['stop'](),_0x134ba4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4faba2['model']['change'](()=>{_0x4faba2['model']['insertContent'](_0xb154ae[0x0],_0xb154ae[0x1],_0xb154ae[0x2],{'forceDefaultExecution':!0x0});const _0x1144eb=_0x30a933(),{rowInsertionRanges:_0x2055bc,columnInsertionRanges:_0x38f234,insertionRanges:_0x5bc897,deletionRanges:_0x498784,cells:_0x4974fe}=_0x134ba4;_0x2055bc['length']&&_0x22a85c['markMultiRangeInsertion'](_0x2055bc,'tablePasteRow',{'tablePasteChainId':_0x1144eb}),_0x38f234['length']&&_0x22a85c['markMultiRangeInsertion'](_0x38f234,'tablePasteColumn',{'tablePasteChainId':_0x1144eb}),_0x5bc897['length']&&(_0x22a85c['markMultiRangeInsertion'](_0x5bc897,'tablePaste',{'tablePasteChainId':_0x1144eb,'skipNestingCheck':!0x0}),_0x5bc897['forEach'](_0x2d5faa=>_0x2d5faa['detach']?.())),_0x498784['length']&&(_0x22a85c['markMultiRangeDeletion'](_0x498784,'tablePaste',{'tablePasteChainId':_0x1144eb,'skipNestingCheck':!0x0}),_0x498784['forEach'](_0x58a668=>_0x58a668['detach']?.()));const _0x14dc41=_0x22a85c['markMultiRangeBlockFormat'](_0x4974fe['map'](({element:_0x359d53})=>_0x359d53),{'formatGroupId':_0x30a933()},[],'tablePasteCell',{'tablePasteChainId':_0x1144eb});if(_0x14dc41){const _0x5b2361=_0x14dc41['getMarkers'](),_0x2d2a6a=[];for(const {element:_0x106d56,attributes:_0x1a7741}of _0x4974fe){if(!_0x1a7741)continue;const _0x15464d=_0x4faba2['model']['createRangeOn'](_0x106d56),_0x44ebb6=_0x5b2361['find'](_0x27cfe9=>_0x27cfe9['getRange']()['isEqual'](_0x15464d));_0x44ebb6&&_0x2d2a6a['push']([_0x44ebb6['name'],_0x1a7741]);}_0x2d2a6a['length']&&_0x14dc41['setAttribute']('markerAttributes',Object['fromEntries'](_0x2d2a6a));}_0x134ba4=null;}));},{'priority':_0x55e6df['high']+0xa}),_0x4faba2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x20ea8c,_0x42066c)=>{const [_0x880487,_0x7034ab,,_0x2d5e89]=_0x42066c;if(!_0x134ba4)return;_0x20ea8c['stop']();const _0xa2880c=_0x880487['cell'],_0x56581c=_0x7034ab,_0x5a192d=ke(_0xa2880c),_0x21809c=ke(_0x56581c);_0x20ea8c['return']=_0xa2880c;let _0x444128=null,_0x3cdc37=null;if(_0x21809c||_0x5a192d){if(_0x5a192d&&!_0x21809c){_0x2d5e89['remove'](_0xa2880c['getChild'](0x0));for(const _0x1852bd of Array['from'](_0x56581c['getChildren']()))_0x2d5e89['insert'](_0x1852bd,_0xa2880c,'end');const _0x540a32=_0x134ba4['rowInsertionIndexes']['includes'](_0x880487['row']),_0x4dc031=_0x134ba4['columnInsertionIndexes']['includes'](_0x880487['column']);_0x540a32||_0x4dc031||(_0x444128=_0x3f00a1['fromRange'](_0x2d5e89['createRangeIn'](_0xa2880c)));}else _0x21809c&&!_0x5a192d&&(_0x3cdc37=_0x2d5e89['createRangeIn'](_0xa2880c));}else{const _0x3398ab=_0x2d5e89['createElement']('tableCellSuggestion'),_0x2932ed=_0x2d5e89['createElement']('tableCellSuggestion');_0x2d5e89['wrap'](_0x2d5e89['createRangeIn'](_0xa2880c),_0x2932ed),_0x2d5e89['insert'](_0x3398ab,_0xa2880c,0x0);for(const _0x19caff of Array['from'](_0x56581c['getChildren']()))_0x2d5e89['insert'](_0x19caff,_0x3398ab,'end');_0x444128=_0x3f00a1['fromRange'](_0x2d5e89['createRangeOn'](_0x3398ab)),_0x3cdc37=_0x3f00a1['fromRange'](_0x2d5e89['createRangeOn'](_0x2932ed));}const _0x553431=Array['from'](_0x56581c['getAttributes']())['filter'](([_0x12ed5a])=>Pe['includes'](_0x12ed5a));_0x134ba4['cells']['push']({'element':_0xa2880c,'attributes':_0x553431['length']?Object['fromEntries'](_0x553431):null}),_0x444128&&_0x134ba4['insertionRanges']['push'](_0x444128),_0x3cdc37&&_0x134ba4['deletionRanges']['push'](_0x3cdc37);},{'priority':'high'}),_0x24cb5d['on']('insertColumns',(_0xd5da56,_0x8f98af)=>{const [_0x5f2714,_0x572b1b={}]=_0x8f98af;if(!_0x134ba4)return;const _0x303ed8=_0x572b1b['at']||0x0,_0x4ccc48=_0x572b1b['columns']||0x1;_0x134ba4['columnInsertionIndexes']=new Array(_0x4ccc48)['fill'](_0x303ed8)['map']((_0x4768c1,_0xab8e62)=>_0x4768c1+_0xab8e62);for(const {cell:_0x5c2518}of _0x24cb5d['createTableWalker'](_0x5f2714,{'startColumn':_0x303ed8,'endColumn':_0x303ed8+_0x4ccc48-0x1}))_0x134ba4['columnInsertionRanges']['push'](_0x4faba2['model']['createRangeOn'](_0x5c2518));},{'priority':'low'}),_0x24cb5d['on']('insertRows',(_0x3bc739,_0x176253)=>{const [_0x27277f,_0xaf619={}]=_0x176253;if(!_0x134ba4)return;const _0x250e50=_0xaf619['at']||0x0,_0x153277=_0xaf619['rows']||0x1;_0x134ba4['rowInsertionIndexes']=new Array(_0x153277)['fill'](_0x250e50)['map']((_0x10e8fc,_0x3547d4)=>_0x10e8fc+_0x3547d4);for(const {cell:_0xed6989}of _0x24cb5d['createTableWalker'](_0x27277f,{'startRow':_0x250e50,'endRow':_0x250e50+_0x153277-0x1}))_0x134ba4['rowInsertionRanges']['push'](_0x4faba2['model']['createRangeOn'](_0xed6989));},{'priority':'low'}),_0x22a85c['descriptionFactory']['registerDescriptionCallback'](_0x9a525c=>{if(_0x9a525c['subType']&&_0x9a525c['subType']['startsWith']('tablePaste'))return _0x9a525c['previous']?{}:{'type':'insertion','content':o(_0x4faba2['locale'],'*Replace\x20table\x20cells*')};});const _0x3d7faf=()=>!0x1;for(const _0x1400fb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x22a85c['_suggestionFactory']['registerCustomCallback']('insertion',_0x1400fb,'join',_0x3d7faf),_0x22a85c['_suggestionFactory']['registerCustomCallback']('deletion',_0x1400fb,'join',_0x3d7faf),_0x22a85c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1400fb,'join',_0x3d7faf);_0x22a85c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3d7faf),_0x22a85c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xfc6fe1,_0x82d132,_0x3b64c6)=>{const _0x423e16=_0xfc6fe1['map'](_0x52c673=>_0x52c673['getContainedElement']())['filter'](_0xdc6156=>_0xdc6156),_0x2e0d42=new Map(_0x423e16['map'](_0x4165e9=>[_0x4165e9,null]));if(_0x134ba4){for(const {element:_0x5605f3,attributes:_0x31303e}of _0x134ba4['cells'])_0x31303e&&_0x2e0d42['set'](_0x5605f3,_0x31303e);}else{if(_0x3b64c6&&_0x3b64c6['markerAttributes'])for(const [_0x5049fa,_0x32766b]of Object['entries'](_0x3b64c6['markerAttributes'])){const _0x785423=_0x4faba2['model']['markers']['get'](_0x5049fa),_0x2fe4ba=_0x785423?_0x785423['getRange']()['getContainedElement']():null;_0x2fe4ba&&_0x2e0d42['set'](_0x2fe4ba,_0x32766b);}}_0x4faba2['model']['change'](_0x1b9231=>{for(const [_0x46e816,_0x5e1960]of _0x2e0d42)_0x1b9231['setAttributes']({...we,..._0x5e1960},_0x46e816);});});const _0x1fb9e7=(_0xf7cb4b,_0x3dbe65)=>{_0x22a85c['_suggestionFactory']['registerCustomCallback'](_0xf7cb4b,'tablePaste',_0x3dbe65,(_0x58256d,_0x351e0b,_0x4d071e)=>{_0x4faba2['model']['change'](_0x50a300=>{const _0x228340=[];for(const _0x14b1a1 of _0x58256d){const _0xc914d2=_0x14b1a1['start']['nodeAfter'];_0xc914d2['is']('element','tableCellSuggestion')&&_0x228340['push'](_0xc914d2);}_0x22a85c['_suggestionFactory']['getSuggestionCallback'](_0xf7cb4b,null,_0x3dbe65)(_0x58256d,_0x351e0b,_0x4d071e);for(const _0x3816c8 of _0x228340)'$graveyard'!=_0x3816c8['root']['rootName']&&_0x50a300['unwrap'](_0x3816c8);});});};_0x1fb9e7('insertion','accept'),_0x1fb9e7('insertion','discard'),_0x1fb9e7('deletion','accept'),_0x1fb9e7('deletion','discard'),_0x22a85c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x55ce6d=>{const _0x20c37a=_0x55ce6d['map'](_0x390a5e=>_0x390a5e['getContainedElement']()),_0x2ad610=_0x20c37a[0x0]['findAncestor']('table'),{minRow:_0x5c0ad0,maxRow:_0x311335}=_0x29252d['_getCoordsForCells'](_0x20c37a);_0x24cb5d['removeRows'](_0x2ad610,{'at':_0x5c0ad0,'rows':_0x311335-_0x5c0ad0+0x1});}),_0x22a85c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x45ffb8=>{const _0x4b250f=_0x45ffb8['map'](_0x297a60=>_0x297a60['getContainedElement']()),_0x2f2e57=_0x4b250f[0x0]['findAncestor']('table'),{minColumn:_0x9ed2da,maxColumn:_0x5f306e}=_0x29252d['_getCoordsForCells'](_0x4b250f);_0x24cb5d['removeColumns'](_0x2f2e57,{'at':_0x9ed2da,'columns':_0x5f306e-_0x9ed2da+0x1});});const _0x38e4ea=(_0x4b7f29,_0x17d49f)=>{if(!_0x17d49f['subType']||!_0x17d49f['subType']['startsWith']('tablePaste'))return;const _0x41e441=_0x17d49f['attributes']['tablePasteChainId'],_0x4b92bc=_0x22a85c['getSuggestions']()['filter'](_0x592899=>_0x592899['isInContent']&&_0x592899['attributes']&&_0x592899['attributes']['tablePasteChainId']==_0x41e441);_0x4b92bc['length']&&_0x17d49f['getAllAdjacentSuggestions']()['length']!=_0x4b92bc['length']&&_0x4b92bc['reduce']((_0x52c628,_0x56428c)=>(_0x52c628['next']=_0x56428c,_0x56428c['previous']=_0x52c628,_0x56428c));};function _0x574eec(_0x447bc4,_0x5035c4=!0x0){const {id:_0x281337,authorId:_0x27a4f9}=_0x22a85c['_splitMarkerName'](_0x447bc4['markerName']),_0x20da65=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x20832b=_0x22a85c['activeMarkers']['includes'](_0x447bc4['markerName']);return _0x20832b&&_0x20da65['push']('ck-suggestion-marker--active'),{'classes':_0x20da65,'attributes':{'data-suggestion':_0x281337,'data-author-id':_0x27a4f9},'priority':_0x20832b&&_0x5035c4?0xbc2:0xbb8};}_0x22a85c['on']('suggestionLoaded',_0x38e4ea,{'priority':'high'}),_0x22a85c['on']('suggestionUnloaded',_0x38e4ea,{'priority':'high'}),_0x4faba2['model']['document']['registerPostFixer'](()=>{let _0x43b259=!0x1;const _0x2515c5=Array['from'](_0x4faba2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb49faa,data:_0x407d74}of _0x2515c5){const {group:_0x466544,type:_0x49e1e2,id:_0x16c2eb}=_0x22a85c['_splitMarkerName'](_0xb49faa);if('suggestion'!=_0x466544||'deletion'!=_0x49e1e2||_0x407d74['oldRange'])continue;if(!_0x22a85c['hasSuggestion'](_0x16c2eb))continue;const _0x5a80bd=_0x22a85c['getSuggestion'](_0x16c2eb)['getRanges'](),_0x2bc5cd=_0x4faba2['plugins']['get']('Users')['me'];for(const _0x17eaec of _0x22a85c['getSuggestions']()){if(!_0x17eaec['isInContent']||_0x17eaec['author']!=_0x2bc5cd)continue;if('formatBlock'!=_0x17eaec['type']||'tablePasteCell'!=_0x17eaec['subType'])continue;if(_0x17eaec['getRanges']()['every'](_0x50e229=>_0x5a80bd['some'](_0x4d0b58=>_0x4d0b58['containsRange'](_0x50e229,!0x0)))){for(const _0x41a376 of _0x17eaec['getAllAdjacentSuggestions']())_0x41a376['isInContent']&&(_0x41a376['discard'](),_0x43b259=!0x0);}}}return _0x43b259;}),_0x4faba2['model']['document']['registerPostFixer'](_0x473278=>{const _0x22c3e2=_0x4faba2['commands']['get']('redo');if(!_0x22c3e2||!_0x22c3e2['_createdBatches']['has'](_0x473278['batch']))return!0x1;let _0x488717=!0x1;const _0x299fa9=_0x4faba2['plugins']['get']('Users')['me'],_0x3367c5=_0x4faba2['model']['document']['differ']['getChanges'](),_0x917086=Array['from'](_0x4faba2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x42f84f,data:_0x3103ec})=>{const {group:_0xb4962,subType:_0x29d8cd,authorId:_0x7fddbe}=_0x22a85c['_splitMarkerName'](_0x42f84f);return'suggestion'==_0xb4962&&'tablePaste'==_0x29d8cd&&_0x7fddbe==_0x299fa9['id']&&!_0x3103ec['oldRange'];});for(const _0x1c8cf1 of _0x3367c5){if('insert'!=_0x1c8cf1['type']||'tableCellSuggestion'!=_0x1c8cf1['name']||0x1!=_0x1c8cf1['length'])continue;const _0x1f5514=_0x473278['createRange'](_0x1c8cf1['position'],_0x1c8cf1['position']['getShiftedBy'](0x1));if(!_0x917086['find'](({data:_0x325d7e})=>_0x325d7e['newRange']['isEqual'](_0x1f5514))){for(const {name:_0x3c59ed,data:_0x50d592}of _0x917086)if(_0x1f5514['containsRange'](_0x50d592['newRange'])){_0x473278['updateMarker'](_0x3c59ed,{'range':_0x1f5514}),_0x488717=!0x0;break;}}}return _0x488717;}),_0x4faba2['model']['document']['registerPostFixer'](_0x7fbfb8=>{let _0x37358c=!0x1;const _0xf1cc5b=_0x4faba2['plugins']['get']('Users')['me'],_0x2a5b59=_0x22a85c['getSuggestions']()['filter'](_0x22aa0d=>_0x22aa0d['isInContent']&&_0x22aa0d['author']==_0xf1cc5b),_0x1db839=new Set(),_0x3a635c=new Set();for(const _0x56a7a1 of _0x2a5b59)if('tablePaste'==_0x56a7a1['subType'])for(const _0x532f9a of _0x56a7a1['getMarkers']()){const _0x5306b6=_0x532f9a['getRange']()['getContainedElement']();if(_0x5306b6){if(_0x5306b6['is']('element','tableCellSuggestion')&&ke(_0x5306b6)){_0x56a7a1['removeMarker'](_0x532f9a['name']),_0x1db839['add'](_0x5306b6),_0x37358c=!0x0;const _0x308cd3=_0x5306b6['nextSibling'],_0x43e3d7=_0x5306b6['previousSibling'],_0x57c498=_0x308cd3&&_0x308cd3['is']('element','tableCellSuggestion'),_0x521ebc=_0x43e3d7&&_0x43e3d7['is']('element','tableCellSuggestion');_0x57c498&&!_0x1db839['has'](_0x308cd3)&&_0x3a635c['add'](_0x308cd3),_0x521ebc&&!_0x1db839['has'](_0x43e3d7)&&_0x3a635c['add'](_0x43e3d7);}else _0x5306b6['is']('element','paragraph')&&_0x5306b6['isEmpty']&&(_0x56a7a1['removeMarker'](_0x532f9a['name']),_0x37358c=!0x0);}}else{if('tablePasteCell'==_0x56a7a1['subType']){if(!_0x56a7a1['attributes']||!_0x56a7a1['attributes']['tablePasteChainId'])continue;const _0x3acf45=_0x56a7a1['attributes']['markerAttributes'];if(_0x3acf45&&Object['keys'](_0x3acf45)['length'])continue;const _0x51fc1a=_0x56a7a1['attributes']['tablePasteChainId'];let _0x55e4a9=!0x0,_0x542750=!0x0;for(const _0x3126e2 of _0x2a5b59)if(_0x3126e2['subType']&&_0x3126e2['subType']['startsWith']('tablePaste')){if(!_0x3126e2['attributes']['tablePasteChainId']){_0x542750=!0x1;break;}if(_0x3126e2['id']!=_0x56a7a1['id']&&_0x3126e2['attributes']['tablePasteChainId']==_0x51fc1a){_0x55e4a9=!0x1;break;}}_0x542750&&_0x55e4a9&&(_0x56a7a1['removeMarkers'](),_0x37358c=!0x0);}}for(const _0x27d830 of _0x1db839)_0x7fbfb8['remove'](_0x27d830);for(const _0x1f9d12 of _0x3a635c)_0x7fbfb8['unwrap'](_0x1f9d12);return _0x37358c;}),_0x4faba2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5f537a=>_0x574eec(_0x5f537a),'converterPriority':'high'}),_0x4faba2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x120115,_0x39cf3d)=>_0x39cf3d['options']['showSuggestionHighlights']?_0x574eec(_0x120115,!0x1):null,'converterPriority':'high'});const _0x198574=_0x4faba2['editing']['view'];this['listenTo'](_0x198574['document'],'clipboardOutput',(_0x3f01fd,_0x2f89cb)=>{const _0x121027=[];for(const _0x18290 of _0x198574['createRangeIn'](_0x2f89cb['content'])['getItems']())_0x18290['is']('element','suggestion-td')&&_0x121027['push'](_0x18290);_0x198574['change'](_0x3ca658=>{for(const _0x403a44 of _0x121027)_0x3ca658['move'](_0x3ca658['createRangeIn'](_0x403a44),_0x3ca658['createPositionBefore'](_0x403a44)),_0x3ca658['remove'](_0x403a44);});});}}function ke(_0x400cbc){if(_0x400cbc['isEmpty'])return!0x0;const _0x2bf991=_0x400cbc['getChild'](0x0);return _0x2bf991['is']('element','paragraph')&&_0x2bf991['isEmpty'];}function Re(_0x295733,_0x5c6118={},_0x2b5a14){for(const {isAnchor:_0x40b3b5,cellHeight:_0x2b4c4a,cellWidth:_0x53327e}of _0x2b5a14['createTableWalker'](_0x295733,{'includeAllSlots':!0x0,..._0x5c6118}))if(!_0x40b3b5||0x1!=_0x2b4c4a||0x1!=_0x53327e)return!0x1;return!0x0;}class Nt extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x41ecba=this['editor']['plugins']['get']('TrackChangesEditing');_0x41ecba['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x41ecba['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x41ecba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41ecba['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x41ecba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x41ecba['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2a4353,_0x15da52){const _0x2be0fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37b83c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x6e959e=_0x15da52['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4e5efd=_0x37b83c['getColumnGroupElement'](_0x6e959e);let _0x4d62da=_0x4e5efd?_0x37b83c['getTableColumnsWidths'](_0x4e5efd):null,_0x116fd9=_0x6e959e['getAttribute']('tableWidth')||null;const _0xa4f0dc=_0x15da52['tableWidth']||_0x116fd9,_0x3f5f3d=_0x15da52['columnWidths']||_0x4d62da,_0x1db3e8=this['editor']['plugins']['get']('Users')['me'];for(const _0x353770 of _0x2be0fb['getSuggestions']()){const _0x26ac83=_0x353770['getContainedElement']();if('resizeTable'===_0x353770['subType']&&_0x26ac83===_0x6e959e){_0x353770['author']!==_0x1db3e8&&_0x353770['discard']();const _0x33b801=_0x353770['data']['commandParams'];_0x116fd9=_0x33b801[0x0]['tableWidth'],_0x4d62da=_0x33b801[0x0]['columnWidths'];break;}}_0x2a4353({'table':_0x6e959e,'tableWidth':_0xa4f0dc,'columnWidths':_0x3f5f3d}),_0x2be0fb['markBlockFormat'](_0x6e959e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x116fd9,'columnWidths':_0x4d62da}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xa6d37e){if('formatBlock'!=_0xa6d37e['type']&&'formatInline'!=_0xa6d37e['type'])return;const {data:_0x1a400c}=_0xa6d37e;if(_0x1a400c&&'resizeTable'===_0x1a400c['formatGroupId']){const _0x54c7e7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x54c7e7)};}}}class Dt extends _0x2be873{['afterInit'](){const _0x2530bb=this['editor'];_0x2530bb['plugins']['has']('Template')&&_0x2530bb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2be873{['afterInit'](){const _0x53b200=this['editor'];if(!_0x53b200['commands']['get']('insertTableOfContents'))return;_0x53b200['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xc6958b=_0x53b200['plugins']['get']('TrackChangesEditing'),_0x4982bc=_0x53b200['locale'];_0xc6958b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x8fbc2f=>o(_0x4982bc,'ELEMENT_TABLE_OF_CONTENTS',_0x8fbc2f));}}class $t extends _0x2be873{['afterInit'](){const _0x541579=this['editor'];if(!_0x541579['plugins']['has']('Title'))return;const _0xa323af=_0x541579['plugins']['get']('TrackChangesEditing');_0xa323af['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x541579['locale'],'ELEMENT_TITLE')),_0x541579['model']['document']['registerPostFixer'](_0x4e79d7=>{let _0x45c3cb=!0x1;const _0x12352d=Array['from'](_0x541579['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x329a99,data:_0x42d89b}of _0x12352d){const {group:_0x1eb62f}=_0xa323af['_splitMarkerName'](_0x329a99);if('suggestion'!==_0x1eb62f||!_0x42d89b['newRange'])continue;const _0x4efdc1=_0x42d89b['newRange'],_0x3e33b7=_0x4efdc1['end']['nodeBefore'];if(!_0x3e33b7||!_0x3e33b7['is']('element','title-content'))continue;if(!_0x4efdc1['start']['isTouching'](_0x4efdc1['end']))continue;const _0x5f1c97=_0x541579['model']['schema']['getNearestSelectionRange'](_0x4efdc1['end'],'forward');if(_0x5f1c97&&_0x5f1c97['isCollapsed']){const _0x47b424=_0x4e79d7['createRange'](_0x4efdc1['start'],_0x5f1c97['start']);_0x47b424['isEqual'](_0x4efdc1)||(_0x4e79d7['updateMarker'](_0x329a99,{'range':_0x47b424}),_0x45c3cb=!0x0);}_0x45c3cb||(_0x4e79d7['removeMarker'](_0x329a99),_0x45c3cb=!0x0);}return _0x45c3cb;});}}class Bt extends _0x2be873{['afterInit'](){const _0x34ae0a=this['editor'],_0x240262=_0x34ae0a['plugins']['get']('TrackChangesEditing');_0x34ae0a['plugins']['has']('UndoEditing')&&(_0x240262['enableCommand']('undo'),_0x240262['enableCommand']('redo'));}}class xt extends _0x2be873{static get['requires'](){return[It];}['afterInit'](){const _0x60deca=this['editor'];if(!_0x60deca['plugins']['has']('TableCaptionEditing'))return;_0x60deca['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x2be873{['tableProperties'];['tableCellProperties'];constructor(_0xab463){super(_0xab463),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';}['afterInit'](){const _0x3c0b86=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1baa93 of this['tableProperties'])_0x3c0b86['enableCommand'](_0x1baa93,(_0x19a177,_0x1eab7a)=>{const _0x442975=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1baa93,[_0x442975],this['tableProperties'],'tableProperties',_0x19a177,_0x1eab7a);});_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3c0b86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x542e82,_0x355ddd)=>this['handleDiscardAction'](this['tableProperties'],_0x542e82,_0x355ddd)),_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x410656 of this['tableCellProperties'])_0x3c0b86['enableCommand'](_0x410656,(_0x4e3105,_0x468221)=>{const _0x1dae7b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x410656,_0x1dae7b,this['tableCellProperties'],'tableCellProperties',_0x4e3105,_0x468221);});_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3c0b86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x45c6d7,_0x4ea63c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x45c6d7,_0x4ea63c)),_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3c0b86['descriptionFactory']['registerDescriptionCallback'](_0x445920=>this['handleSuggestionDescription'](_0x445920));}['_handlePropertyChange'](_0x2d00c7,_0x5b1285,_0x51008a,_0x1d63e6,_0x3650e7,_0xc69ede){const _0x548cf5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc69ede['batch'],()=>{for(const _0x235c35 of _0x5b1285){if(this['_getSuggestion'](_0x235c35,_0x1d63e6))_0x3650e7(_0xc69ede);else{const _0x490179={};for(const _0x420298 of _0x51008a){const _0x6bb3e=_0x235c35['getAttribute'](_0x420298);void 0x0!==_0x6bb3e&&(_0x490179[_0x420298]=_0x6bb3e);}_0x3650e7(_0xc69ede),_0x548cf5['markBlockFormat'](_0x235c35,{'commandParams':[_0x490179]},[],_0x1d63e6);}}});}['handleDiscardAction'](_0x1eb96a,_0x1e3ddc,_0x72758f){const _0x4eb560=_0x1e3ddc[0x0]['start']['nodeAfter'],_0x1b51f3=_0x72758f['commandParams'][0x0];this['editor']['model']['change'](_0x4d6ad7=>{for(const _0x44e642 of _0x1eb96a)void 0x0!==_0x1b51f3[_0x44e642]?_0x4d6ad7['setAttribute'](_0x44e642,_0x1b51f3[_0x44e642],_0x4eb560):_0x4d6ad7['removeAttribute'](_0x44e642,_0x4eb560);});}['handleSuggestionDescription'](_0x1e0cb2){if(_0x1e0cb2['data'])switch(_0x1e0cb2['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'](_0x17d7ba,_0x870d26){const _0x3f8591=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x325eea of _0x3f8591['getSuggestions']({'skipNotAttached':!0x0})){const _0x20de14=_0x325eea['getContainedElement']();if(_0x325eea['subType']===_0x870d26&&_0x20de14===_0x17d7ba)return _0x325eea;}return null;}}const m='$elementName';class p extends _0x2be873{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x10e3b2,_0x1b3abf,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x3e2940){function _0x32ae33(_0xf399a){return _0xf399a['map'](_0x559b17=>String['fromCharCode'](_0x559b17))['join']('');}super(_0x3e2940),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4695e2,_0x3187cb,_0x1938a0,_0x202047)=>{this['_model']['change'](()=>{for(const _0x331ffe of[..._0x202047,..._0x1938a0])this['_model']['markers']['has'](_0x331ffe)&&_0x3e2940['editing']['reconvertMarker'](_0x331ffe);});}),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']=_0x3e2940['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(),_0x3e2940['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3e2940['config']['get']('trackChanges.trackFormatChanges'),_0x3e2940['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3e2940['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3e2940,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x32ae33([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x32ae33([0x34,0x30,0x34,0x38,0x32,0x30,0x33,0x32]);}['init'](){const _0x59435a=this['editor'],_0x848bc3=(_0x4d469a,_0x3b0496)=>{if('attribute'!=_0x4d469a)return'ck-suggestion-marker-'+_0x4d469a;const _0x1c973e=_0x3b0496['split']('|')[0x0];return this['_isBlockAttribute'](_0x1c973e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x59435a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1f4ba1=>{const {id:_0x5ea544,authorId:_0x58df76,type:_0x71ff31,subType:_0x23e26c}=this['_splitMarkerName'](_0x1f4ba1['markerName']),_0x49f652=['ck-suggestion-marker',_0x848bc3(_0x71ff31,_0x23e26c)];let _0x34538a=0xbb8;return this['activeMarkers']['includes'](_0x1f4ba1['markerName'])&&(_0x49f652['push']('ck-suggestion-marker--active'),_0x34538a=0xbc2),'deletion'==_0x71ff31&&(_0x34538a+=0x5),{'classes':_0x49f652,'attributes':{'data-suggestion':_0x5ea544,'data-author-id':_0x58df76},'priority':_0x34538a};}}),_0x59435a['conversion']['for']('dataDowncast')['add'](_0x2949e2=>{_0x2949e2['on']('addMarker:suggestion',(_0x46df8d,_0x5cf658,_0x27655f)=>{if(!_0x27655f['options']['showSuggestionHighlights'])return;const _0xc5aea=_0x5cf658['item'];if(!_0xc5aea)return;const _0xa706a5=_0x27655f['mapper']['toViewElement'](_0xc5aea);_0x59435a['model']['schema']['isObject'](_0xc5aea)&&_0xa706a5&&!_0xa706a5['getCustomProperty']('widget')&&_0xa706a5['is']('containerElement')&&_0x4e21a2(_0xa706a5,_0x27655f['writer']);},{'priority':'high'});}),_0x59435a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x289959,_0x16efd7)=>{if(!_0x16efd7['options']['showSuggestionHighlights'])return null;const {type:_0x237ce4,subType:_0x26540d}=this['_splitMarkerName'](_0x289959['markerName']);return{'classes':['ck-suggestion-marker',_0x848bc3(_0x237ce4,_0x26540d)],'priority':0xbb8};}});const _0x404145=({showActiveMarkers:_0x42fa9c=!0x0,isAttributeSuggestion:_0x30c4f8=!0x1}={})=>(_0x4cfd74,_0x21f138,_0x47b46f)=>{if(!_0x21f138['item'])return;const {id:_0x2cee0d,authorId:_0x4534b7}=this['_splitMarkerName'](_0x21f138['markerName']);if(_0x30c4f8){const _0x371a5c=this['_suggestions']['get'](_0x2cee0d),_0x5c7153=this['_getAttributeKey'](_0x371a5c);if(!this['_isBlockAttribute'](_0x5c7153))return;}if(_0x21f138['item']['is']('selection'))return void _0x47b46f['consumable']['consume'](_0x21f138['item'],_0x4cfd74['name']);const _0x23d845=_0x47b46f['mapper']['toViewElement'](_0x21f138['item']);if(_0x21f138['item']['is']('element')&&_0x59435a['model']['schema']['isBlock'](_0x21f138['item'])&&!_0x23d845['getCustomProperty']('addHighlight')){_0x47b46f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x23d845),_0x47b46f['writer']['setAttribute']('data-suggestion',_0x2cee0d,_0x23d845),_0x47b46f['writer']['setAttribute']('data-author-id',_0x4534b7,_0x23d845),_0x47b46f['mapper']['bindElementToMarker'](_0x23d845,_0x21f138['markerName']),_0x42fa9c&&(this['activeMarkers']['includes'](_0x21f138['markerName'])?_0x47b46f['writer']['addClass']('ck-suggestion-marker--active',_0x23d845):_0x47b46f['writer']['removeClass']('ck-suggestion-marker--active',_0x23d845));for(const _0x21a753 of _0x59435a['model']['createRangeIn'](_0x21f138['item'])['getItems']())_0x47b46f['consumable']['consume'](_0x21a753,_0x4cfd74['name']);_0x47b46f['consumable']['consume'](_0x21f138['item'],_0x4cfd74['name']);}};_0x59435a['conversion']['for']('dataDowncast')['add'](_0x1d5752=>{_0x1d5752['on']('addMarker:suggestion:formatBlock',(_0xf421e9,_0x4f28ec,_0x4dd83e)=>{_0x4dd83e['options']['showSuggestionHighlights']&&_0x404145({'showActiveMarkers':!0x1})(_0xf421e9,_0x4f28ec,_0x4dd83e);},{'priority':'highest'});}),_0x59435a['conversion']['for']('dataDowncast')['add'](_0x1b154e=>{_0x1b154e['on']('addMarker:suggestion:attribute',(_0x5332fa,_0x3e5278,_0x2ea542)=>{_0x2ea542['options']['showSuggestionHighlights']&&_0x404145({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5332fa,_0x3e5278,_0x2ea542);},{'priority':'highest'});}),_0x59435a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xdaec85,_0xcf9447)=>_0xcf9447['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xdaec85['substr'](0xb)}}),_0x59435a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2f2578,{writer:_0x48c402})=>{let _0x440f75='suggestion:'+_0x2f2578['getAttribute']('suggestion-type')+':'+_0x2f2578['getAttribute']('id');return _0x2f2578['getAttribute']('marker-count')&&(_0x440f75+=':'+_0x2f2578['getAttribute']('marker-count')),_0x48c402['createElement']('$marker',{'data-name':_0x440f75});}}),_0x59435a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x59435a['conversion']['for']('editingDowncast')['add'](_0x59e220=>{_0x59e220['on']('addMarker:suggestion:formatBlock',_0x404145(),{'priority':'high'});}),_0x59435a['conversion']['for']('editingDowncast')['add'](_0x99c108=>{_0x99c108['on']('addMarker:suggestion:attribute',_0x404145({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x59435a['conversion']['for']('editingDowncast')['add'](_0x2fcaec=>{_0x2fcaec['on']('removeMarker:suggestion:formatBlock',(_0x5518d7,_0x488ef7,_0x4bcbf2)=>{const _0x300337=_0x4bcbf2['mapper']['markerNameToElements'](_0x488ef7['markerName']);if(_0x300337){for(const _0x59f557 of _0x300337)_0x59f557['getCustomProperty']('addHighlight')||(_0x4bcbf2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x59f557),_0x4bcbf2['writer']['removeAttribute']('data-suggestion',_0x59f557),_0x4bcbf2['writer']['removeAttribute']('data-author-id',_0x59f557),_0x4bcbf2['mapper']['unbindElementFromMarkerName'](_0x59f557,_0x488ef7['markerName']));}},{'priority':'high'});}),_0x59435a['conversion']['for']('editingDowncast')['add'](_0x513496=>{_0x513496['on']('removeMarker:suggestion:attribute',(_0x40e921,_0x44cbb3,_0x1dff05)=>{const _0x2217e6=_0x1dff05['mapper']['markerNameToElements'](_0x44cbb3['markerName']);if(!_0x2217e6)return;const {id:_0x5d2267}=this['_splitMarkerName'](_0x44cbb3['markerName']),_0x51edc1=this['_suggestions']['get'](_0x5d2267),_0x229ab7=this['_getAttributeKey'](_0x51edc1);if(this['_isBlockAttribute'](_0x229ab7)){for(const _0x253438 of _0x2217e6)_0x253438['getCustomProperty']('addHighlight')||(_0x1dff05['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x253438),_0x1dff05['writer']['removeAttribute']('data-suggestion',_0x253438),_0x1dff05['writer']['removeAttribute']('data-author-id',_0x253438),_0x1dff05['mapper']['unbindElementFromMarkerName'](_0x253438,_0x44cbb3['markerName']));}},{'priority':'high'});}),_0x59435a['model']['document']['registerPostFixer'](_0x39f4b4=>{let _0x30569f=!0x1;const _0x2beafc=Array['from'](_0x59435a['model']['document']['differ']['getChangedMarkers']()),_0x4d8988=new Set();for(const {name:_0x9806a4,data:_0x19b49d}of _0x2beafc){const {group:_0x5ea698,type:_0x3f11f6,subType:_0x1c73eb,id:_0x39aaa7}=this['_splitMarkerName'](_0x9806a4);if('suggestion'!==_0x5ea698)continue;const _0x2fa2e1=this['_suggestions']['get'](_0x39aaa7);if(null!=_0x19b49d['newRange']){'formatInline'==_0x3f11f6&&(_0x30569f=_0x30569f||Ut(_0x19b49d['newRange'],_0x9806a4,_0x39f4b4,_0x59435a['model']['schema']));const _0x4095c3='attribute'==_0x3f11f6&&this['_isBlockAttribute'](_0x1c73eb['split']('|')[0x0]);if(_0x19b49d['newRange']['isCollapsed']||'$graveyard'==_0x19b49d['newRange']['root']['rootName']||'formatBlock'==_0x3f11f6&&!Ft(_0x19b49d['newRange'])||_0x4095c3&&!Ft(_0x19b49d['newRange'])||'deletion'==_0x3f11f6&&!(!Vt(_0x504d6e=_0x19b49d['newRange'])&&!function(_0x478041){return _0x478041['start']['parent']==_0x478041['end']['nodeBefore']&&_0x478041['start']['isAtEnd'];}(_0x504d6e)))_0x39f4b4['removeMarker'](_0x9806a4),_0x30569f=!0x0;else{if(!_0x2fa2e1||!_0x2fa2e1['isInContent'])continue;if(_0x19b49d['newRange']&&_0x19b49d['oldRange']&&_0x19b49d['newRange']['isEqual'](_0x19b49d['oldRange']))continue;_0x4d8988['add'](_0x2fa2e1);}}}var _0x504d6e;return _0x4d8988['size']>0x0&&(_0x30569f=!!this['_joinWithAdjacentSuggestions'](_0x4d8988)||_0x30569f),_0x30569f;}),_0x59435a['model']['document']['registerPostFixer'](_0x26df6d=>{let _0x3a877c=!0x1;for(const _0x41b6e7 of _0x59435a['model']['document']['differ']['getChanges']())if('insert'==_0x41b6e7['type'])for(const _0x3b9151 of this['_suggestions']['values']()){if(_0x3b9151['isMultiRange']||!_0x3b9151['isInContent'])continue;const _0x1dbcea='formatBlock'==_0x3b9151['type'],_0x1f7867=this['_getAttributeKey'](_0x3b9151),_0x13e78b=_0x1f7867&&this['_isBlockAttribute'](_0x1f7867);if(!_0x1dbcea&&!_0x13e78b)continue;const _0x519a67=_0x3b9151['getFirstRange']();if(_0x519a67['start']['parent']!=_0x519a67['end']['parent']&&!_0x519a67['end']['isAtEnd']){const _0x52575c=_0x59435a['model']['createPositionAt'](_0x519a67['start']['nodeAfter'],'end'),_0x2b6a56=_0x59435a['model']['createRange'](_0x519a67['start'],_0x52575c);_0x26df6d['updateMarker'](_0x3b9151['getFirstMarker'](),{'range':_0x2b6a56}),_0x3a877c=!0x0;}}return _0x3a877c;}),_0x59435a['model']['document']['registerPostFixer'](_0x1dd203=>this['_processAttributeChanges'](_0x1dd203)),_0x59435a['model']['document']['registerPostFixer'](_0x2a0ccb=>!_0x2a0ccb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2a0ccb)),_0x59435a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x59435a['model']['document']['on']('change:data',(_0x4fd9a1,_0x350a8d)=>{if(!_0x350a8d['isLocal']||_0x350a8d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2e21fe=_0x59435a['model']['document']['differ']['getChanges']();if(0x0==_0x2e21fe['length'])return;const _0x31de74=[],_0x35a54d=_0x2e21fe['filter'](_0x3c9303=>'attribute'==_0x3c9303['type']),_0x2b8c1b=_0x2e21fe['filter'](_0x30164e=>'insert'==_0x30164e['type']&&'$text'!=_0x30164e['name']);for(const _0x5f20b8 of _0x35a54d)this['_isRegisteredAttribute'](_0x5f20b8['attributeKey'])&&_0x31de74['push']({'key':_0x5f20b8['attributeKey'],'newValue':_0x5f20b8['attributeNewValue'],'oldValue':_0x5f20b8['attributeOldValue'],'range':Pt(_0x5f20b8['range'],_0x59435a['model'])});for(const _0x261ed2 of _0x2b8c1b){if('rename'!=_0x261ed2['action']&&'refresh'!=_0x261ed2['action'])continue;const _0xadce43=Lt(_0x261ed2['position']['nodeAfter'],_0x59435a['model']),_0x28d66a=_0x261ed2['before'];'rename'==_0x261ed2['action']&&_0x31de74['push']({'key':m,'newValue':_0x261ed2['name'],'oldValue':_0x28d66a['name'],'range':_0xadce43});for(const [_0x3933e8,_0x4b4765]of _0x28d66a['attributes']){if(!this['_isRegisteredAttribute'](_0x3933e8))continue;const _0x56e27e=_0x261ed2['attributes']['get'](_0x3933e8);_0x4b4765!==_0x56e27e&&_0x31de74['push']({'key':_0x3933e8,'newValue':_0x56e27e,'oldValue':_0x4b4765,'range':_0xadce43});}for(const [_0x2e0057,_0xa8fe83]of _0x261ed2['attributes'])this['_isRegisteredAttribute'](_0x2e0057)&&(_0x28d66a['attributes']['has'](_0x2e0057)||_0x31de74['push']({'key':_0x2e0057,'newValue':_0xa8fe83,'oldValue':null,'range':_0xadce43}));}0x0!=_0x31de74['length']&&_0x59435a['model']['enqueueChange'](_0x350a8d,_0x43454f=>{const _0x10c47f=_0x30a933();for(const {range:_0xeba509,key:_0x1b579a,oldValue:_0x10b28c,newValue:_0x562f37}of _0x31de74)this['markAttributeChange'](_0xeba509,_0x1b579a,_0x10b28c,_0x562f37,{'groupId':_0x10c47f});this['_reduceExistingSuggestions'](_0x43454f,_0x31de74);});},{'priority':'lowest'}),_0x59435a['model']['markers']['on']('update:suggestion',(_0x225fd3,_0x3ca94a,_0x567fcc)=>{if(null==_0x567fcc){const {id:_0x534a5b}=this['_splitMarkerName'](_0x3ca94a['name']),_0x153c1b=this['_suggestions']['get'](_0x534a5b);_0x153c1b&&_0x153c1b['addMarkerName'](_0x3ca94a['name']);}}),_0x59435a['model']['document']['on']('change:data',()=>{const _0x675caf=Array['from'](_0x59435a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2931bf=>'suggestion'===this['_splitMarkerName'](_0x2931bf['name'])['group']);if(0x0===_0x675caf['length'])return;_0x675caf['sort']((_0x3050d5,_0x299793)=>{const _0x2e157b=_0x3050d5['data']['oldRange'],_0x2c6e33=_0x299793['data']['oldRange'];return null===_0x2e157b&&null===_0x2c6e33?0x0:null===_0x2e157b&&null!==_0x2c6e33?-0x1:null!==_0x2e157b&&null===_0x2c6e33?0x1:_0x2e157b['start']['isBefore'](_0x2c6e33['start'])?-0x1:0x1;});const _0x3c6754=new Set(),_0x24c7e3=new Set();for(const {name:_0x1f5c54,data:_0x506aa9}of _0x675caf){const {id:_0x40c8b7}=this['_splitMarkerName'](_0x1f5c54);if(null===_0x506aa9['oldRange']){const _0x4a2c36=this['_handleNewSuggestionMarker'](_0x1f5c54);_0x24c7e3['add'](_0x4a2c36);}else{const _0x5c6b9e=this['_suggestions']['get'](_0x40c8b7);null!==_0x506aa9['newRange']||_0x5c6b9e['isInContent']?(_0x3c6754['add'](_0x5c6b9e['head']),_0x24c7e3['add'](_0x5c6b9e)):this['_removeSuggestion'](_0x5c6b9e);}}_0x24c7e3['size']>0x0&&this['_refreshSuggestionsChain'](_0x24c7e3);for(const _0x9be876 of _0x3c6754)this['fire']('suggestionChanged',_0x9be876);}),_0x59435a['model']['on']('applyOperation',(_0x197bd7,_0x1ea16d)=>{const _0x54b2d7=_0x1ea16d[0x0];if(!this['_suggestions']['size'])return;if(!_0x54b2d7['isDocumentOperation'])return;if(_0x54b2d7['batch']['isUndo']||!_0x54b2d7['batch']['isLocal'])return;let _0x201d4b,_0x12514c;switch(_0x54b2d7['type']){case'insert':_0x201d4b=_0x59435a['model']['createPositionAt'](_0x54b2d7['position']),_0x12514c=_0x201d4b['getShiftedBy'](_0x54b2d7['howMany']);break;case'split':_0x201d4b=_0x59435a['model']['createPositionAt'](_0x54b2d7['splitPosition']),_0x12514c=_0x59435a['model']['createPositionAt'](_0x54b2d7['moveTargetPosition']);break;case'move':_0x201d4b=_0x59435a['model']['createPositionAt'](_0x54b2d7['targetPosition']),_0x12514c=_0x201d4b['getShiftedBy'](_0x54b2d7['howMany']);break;default:return;}const _0x5db81b=_0x59435a['model']['createRange'](_0x201d4b,_0x12514c);_0x59435a['model']['change'](()=>{for(const {suggestion:_0x4abffe,meta:_0x20ec95}of this['_findSuggestions'](_0x5db81b)){if(_0x4abffe['isMultiRange'])continue;if('formatInline'==_0x4abffe['type'])continue;const _0x3d11a3=this['_getAttributeKey'](_0x4abffe);if(_0x3d11a3&&this['_isBlockAttribute'](_0x3d11a3)&&'split'!=_0x54b2d7['type'])continue;const _0x2d9454=_0x4abffe['data']&&_0x4abffe['data']['multipleBlocks'];('formatBlock'!=_0x4abffe['type']||'split'==_0x54b2d7['type']&&!_0x2d9454)&&(_0x20ec95['containsRangeInObject']||'insertion'==_0x4abffe['type']&&_0x20ec95['isOwn']||_0x4abffe['getFirstRange']()['containsRange'](_0x5db81b)&&this['_breakSuggestionMarker'](_0x4abffe,_0x201d4b,_0x12514c));}});},{'priority':'lowest'}),_0x59435a['model']['on']('deleteContent',(_0x460f9e,_0x44011f)=>{const _0x2c36e5=_0x44011f[0x0],_0x12af47=_0x44011f[0x1];if(_0x12af47&&_0x12af47['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2c36e5['isCollapsed'])return;const _0x5a1e7d=_0x59435a['model']['schema'],{start:_0x82fec3,end:_0x1ae6cb}=_0x2c36e5['getFirstRange'](),_0x4a5a9b=_0x82fec3['nodeAfter']&&_0x5a1e7d['isLimit'](_0x82fec3['nodeAfter'])?null:_0x5a1e7d['getNearestSelectionRange'](_0x82fec3,'forward'),_0x2846a5=_0x1ae6cb['nodeBefore']&&_0x5a1e7d['isLimit'](_0x1ae6cb['nodeBefore'])?null:_0x5a1e7d['getNearestSelectionRange'](_0x1ae6cb,'backward'),_0x5649ca=_0x59435a['model']['createRange'](_0x4a5a9b?_0x4a5a9b['start']:_0x82fec3,_0x2846a5?_0x2846a5['end']:_0x1ae6cb);_0x59435a['model']['change'](_0x105251=>{this['markDeletion'](_0x5649ca);const _0x155019=_0x59435a['model']['schema']['getNearestSelectionRange'](_0x5649ca['start']);_0x2c36e5['is']('documentSelection')?_0x105251['setSelection'](_0x155019):_0x2c36e5['setTo'](_0x155019);}),_0x460f9e['stop']();},{'priority':_0x55e6df['normal']+0xa}),_0x59435a['model']['on']('insertContent',(_0x2ae9b9,_0x1fc317)=>{const _0x5ea7d8=_0x1fc317[_0x1fc317['length']-0x1];_0x5ea7d8&&_0x5ea7d8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x59435a['model']['change'](()=>{let _0x2ece01=_0x59435a['model']['insertContent'](_0x1fc317[0x0],_0x1fc317[0x1],_0x1fc317[0x2],{'forceDefaultExecution':!0x0});if(!_0x2ece01)return;_0x2ae9b9['return']=_0x2ece01['clone']();const _0x498bcb=_0x2ece01['end']['nodeBefore'],_0x5d310f=_0x59435a['model']['schema'];_0x498bcb&&_0x5d310f['isBlock'](_0x498bcb)&&!_0x5d310f['isObject'](_0x498bcb)&&(_0x2ece01=_0x59435a['model']['createRange'](_0x2ece01['start'],_0x59435a['model']['createPositionAt'](_0x498bcb,'end'))),this['markInsertion'](_0x2ece01);}),_0x2ae9b9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x22406c=new x(_0x59435a,this['_suggestions']);_0x59435a['commands']['add']('acceptSuggestion',_0x22406c),this['enableCommand']('acceptSuggestion');const _0x14ee8f=new R(_0x59435a,this['_suggestions']);_0x59435a['commands']['add']('discardSuggestion',_0x14ee8f),this['enableCommand']('discardSuggestion'),_0x59435a['commands']['add']('acceptAllSuggestions',new E(_0x59435a,_0x22406c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x59435a['commands']['add']('discardAllSuggestions',new E(_0x59435a,_0x14ee8f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x59435a['commands']['add']('acceptSelectedSuggestions',new O(_0x59435a,_0x22406c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x59435a['commands']['add']('discardSelectedSuggestions',new O(_0x59435a,_0x14ee8f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x152070=_0x59435a['plugins']['get']('CommentsRepository');this['listenTo'](_0x152070,'addComment',(_0x2c750d,{threadId:_0x3d9287})=>{const _0x384031=this['_suggestions']['get'](_0x3d9287);_0x384031&&_0x384031['commentThread']&&0x1===_0x384031['commentThread']['length']&&this['_updateSuggestionData'](_0x3d9287,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x152070,'removeComment',(_0x214558,{threadId:_0x2eb95e})=>{const _0xe6c4b8=this['_suggestions']['get'](_0x2eb95e);_0xe6c4b8&&_0xe6c4b8['commentThread']&&!_0xe6c4b8['commentThread']['length']&&this['_updateSuggestionData'](_0x2eb95e,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x439359){if(this['_adapter'])throw new _0x9ee824('track-changes-adapter-already-set',this);this['_adapter']=_0x439359;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xf566b1=!0x1,toJSON:_0x44d4e6=!0x1}={}){const _0x5b4c2e=[];for(const _0x41f032 of this['_suggestions']['values']())_0xf566b1&&!_0x41f032['isInContent']||_0x5b4c2e['push'](_0x41f032);return _0x44d4e6?_0x5b4c2e['map'](_0x4fd1d0=>_0x4fd1d0['toJSON']()):_0x5b4c2e;}['getSuggestion'](_0x5b0cc8){const _0x549e79=this['_suggestions']['get'](_0x5b0cc8);if(!_0x549e79)throw new _0x9ee824('track-changes-suggestion-not-found',this);return _0x549e79;}['hasSuggestion'](_0x409bcf){return this['_suggestions']['has'](_0x409bcf);}['addSuggestionData'](_0x5bc7bf){const {authorId:_0x29eff7,id:_0x3918dd,attributes:_0x40e592}=_0x5bc7bf,[_0x488699,_0x497917]=_0x5bc7bf['type']['split'](':'),_0x23287e=this['_suggestions']['get'](_0x3918dd)||this['_createSuggestion'](_0x488699,_0x497917,_0x3918dd,_0x29eff7,_0x40e592);if(this['_addThreadToSuggestion'](_0x23287e),this['_checkSuggestionCorrectness'](_0x23287e,_0x488699,_0x497917||null,_0x29eff7),_0x23287e['createdAt']=_0x5bc7bf['createdAt'],_0x23287e['_isDataLoaded']=!0x0,_0x40e592&&_0x40e592['@external']){const _0x401f41=_0x40e592['@external'],_0x4fc9c7=this['_getExternalAuthor'](_0x401f41['authorName']);_0x23287e['authoredAt']=_0x401f41['createdAt'],_0x23287e['author']=_0x4fc9c7,_0x23287e['isExternal']=!0x0;}else _0x23287e['authoredAt']=_0x5bc7bf['createdAt'];switch(_0x5bc7bf['data']&&(_0x23287e['data']=_0x5bc7bf['data']),_0x5bc7bf['attributes']&&(_0x23287e['attributes']=_0x5bc7bf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x23287e['_saved']=!0x0),this['_suggestionState']['get'](_0x23287e)){case'notReady':this['_suggestionState']['set'](_0x23287e,'dataReady');break;case'markerReady':_0x23287e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x23287e])),this['_refreshSuggestionsChain'](new Set([_0x23287e])),this['_suggestionState']['set'](_0x23287e,'ready'),this['fire']('suggestionLoaded',_0x23287e)):this['_suggestionState']['set'](_0x23287e,'removed');}return _0x23287e;}['acceptSuggestion'](_0x2588ff){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x395905 of _0x2588ff['getAllAdjacentSuggestions']())_0x395905['accept']();});});}['discardSuggestion'](_0xc7bf0f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x200944 of _0xc7bf0f['getAllAdjacentSuggestions']())_0x200944['discard']();});});}['enableCommand'](_0x30eaf5,_0xfcd18c){const _0x40143e=this['editor']['commands']['get'](_0x30eaf5);if(!_0x40143e)throw new _0x9ee824('track-changes-command-not-found',this,{'commandName':_0x30eaf5});if(this['_enabledCommands']['has'](_0x40143e))throw new _0x9ee824('track-changes-enable-command-twice',this,{'commandName':_0x30eaf5});this['_enabledCommands']['add'](_0x40143e),_0xfcd18c&&_0x40143e['on']('execute',(_0x6a285,_0x568f4b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x568f4b['length']>0x0&&_0x568f4b[_0x568f4b['length']-0x1]&&_0x568f4b[_0x568f4b['length']-0x1]['forceDefaultExecution']?_0x568f4b['pop']():(_0x6a285['return']=_0xfcd18c((..._0x4ecac2)=>_0x40143e['execute'](..._0x4ecac2,{'forceDefaultExecution':!0x0}),..._0x568f4b),_0x6a285['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x56c4ca){let _0xc0533,_0x11b23f;const _0x483712=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc0533=_0x56c4ca();}catch(_0x3565e1){_0x11b23f=_0x3565e1;}return _0x483712||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x11b23f&&_0x9ee824['rethrowUnexpectedError'](_0x11b23f,this),_0xc0533;}['markInsertion'](_0x54fa98,_0x35fbe5=null,_0x57aace={}){if(_0x54fa98['isCollapsed'])return null;const _0x2f4af1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3b7f2f,meta:_0x2f6f91}of this['_findSuggestions'](_0x54fa98,'insertion'))if(_0x2f6f91['isOwn']){if(!_0x2f6f91['isNextTo']){if(_0x2f6f91['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x3b7f2f,_0x57aace))continue;return _0x3b7f2f;}if(qt(_0x3b7f2f,_0x57aace))return _0x3b7f2f;this['_breakSuggestionMarker'](_0x3b7f2f,_0x54fa98['start'],_0x54fa98['end']);break;}if(_0x35fbe5==_0x3b7f2f['subType']&&qt(_0x3b7f2f,_0x57aace)){const _0x2f7f41=_0x3b7f2f['getFirstRange']();return _0x2f7f41['start']['isEqual'](_0x54fa98['end'])?this['_setSuggestionRange'](_0x3b7f2f,this['_model']['createRange'](_0x54fa98['start'],_0x2f7f41['end'])):this['_setSuggestionRange'](_0x3b7f2f,this['_model']['createRange'](_0x2f7f41['start'],_0x54fa98['end'])),_0x3b7f2f;}}const _0x5420cd=_0x30a933(),_0x44c38d=_0x2f4af1['id'],_0x5b5810=_0x35fbe5?'insertion:'+_0x35fbe5:'insertion',_0x4f014d=this['_setSuggestionData']({'id':_0x5420cd,'type':_0x5b5810,'createdAt':new Date(),'authorId':_0x44c38d,'attributes':_0x57aace});return this['_addSuggestionMarker'](_0x5b5810,_0x5420cd,_0x44c38d,_0x54fa98),_0x4f014d;}['markMultiRangeInsertion'](_0x41d68b,_0x40ed52='multi',_0x3855f1={}){const _0x2f1a76=this['editor']['plugins']['get']('Users')['me'],_0x38a236=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x40ed52,'join');for(const _0x216c56 of this['getSuggestions']())if(_0x216c56['author']['id']==_0x2f1a76['id']&&'insertion'==_0x216c56['type']&&_0x216c56['subType']==_0x40ed52&&qt(_0x216c56,_0x3855f1)&&(_0x38a236(_0x216c56['getRanges'](),_0x41d68b)||_0x38a236(_0x41d68b,_0x216c56['getRanges']()))){for(const _0x22d72d of _0x41d68b)_0x216c56['addRange'](_0x22d72d);return _0x216c56;}for(const {suggestion:_0x3314d2,meta:_0x689d8b}of this['_findSuggestions'](_0x41d68b,'insertion')){if(!_0x689d8b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x689d8b['containsRangeInObject'])continue;if(!qt(_0x3314d2,_0x3855f1))continue;let _0x3f9a7c=!0x0;for(const _0x34d770 of _0x3314d2['getRanges']())for(const _0x5e7388 of _0x41d68b)if(!_0x34d770['containsRange'](_0x5e7388)){_0x3f9a7c=!0x1;break;}if(_0x3f9a7c)return _0x3314d2;}const _0x333108=_0x30a933(),_0xd93ebc=_0x2f1a76['id'],_0xfa9aa0='insertion:'+_0x40ed52,_0x3e9710=this['_setSuggestionData']({'id':_0x333108,'type':_0xfa9aa0,'createdAt':new Date(),'authorId':_0xd93ebc,'attributes':_0x3855f1});for(const _0x49bb80 of _0x41d68b)this['_addSuggestionMarker'](_0xfa9aa0,_0x333108,_0xd93ebc,_0x49bb80,u['getMultiRangeId']());return _0x3e9710;}['markInlineFormat'](_0x1ec3fe,_0x3fd4be,_0x9a1c80=null,_0x2b2d0a={}){if(_0x9a1c80=_0x9a1c80||Gt(_0x3fd4be),_0x1ec3fe['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1c2eda=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x9a1c80,'accept');return this['forceDefaultExecution'](()=>_0x1c2eda([_0x1ec3fe],_0x3fd4be,_0x2b2d0a)),null;}const _0x9b6fd2=this['editor']['plugins']['get']('Users')['me'],_0x2ce6f2=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x161276,meta:_0x1f62ea}of this['_findSuggestions'](_0x1ec3fe,'insertion'))_0x1f62ea['isOwn']&&!_0x1f62ea['isInsideObject']&&_0x2ce6f2['push'](..._0x161276['getRanges']());}const _0x2d8ad5=function(_0x430f5c,_0x5351c3){const _0x5035cb=[];for(const _0x17aa61 of _0x5351c3){const _0x4faba9=_0x430f5c['getIntersection'](_0x17aa61);_0x4faba9&&_0x5035cb['push'](_0x4faba9);}return _0x5035cb;}(_0x1ec3fe,_0x2ce6f2),_0xb65b3c=function(_0xfe55ab,_0x57e72f){const _0xae9c96=[_0xfe55ab];for(const _0x2cab64 of _0x57e72f){let _0x46af01=0x0;for(;_0x46af01<_0xae9c96['length'];){const _0x3e0b8b=_0xae9c96[_0x46af01]['getDifference'](_0x2cab64);_0xae9c96['splice'](_0x46af01,0x1,..._0x3e0b8b),_0x46af01+=_0x3e0b8b['length'];}}return _0xae9c96;}(_0x1ec3fe,_0x2ce6f2);_0x2d8ad5['length']&&this['_model']['change'](()=>{for(const _0x26069b of _0x2d8ad5){const _0x4a3efa=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x9a1c80,'accept');this['forceDefaultExecution'](()=>_0x4a3efa([_0x26069b],_0x3fd4be,_0x2b2d0a));}});for(const _0x10eb67 of _0xb65b3c){let _0x4819ad=null,_0x5bb607=_0x10eb67['start'],_0x3704b6=_0x10eb67['end'];for(const {suggestion:_0x330418,meta:_0x30a5c4}of this['_findSuggestions'](_0x10eb67,'formatInline')){if(!_0x30a5c4['isOwn'])continue;if(_0x330418['subType']!=_0x9a1c80)continue;if(!qt(_0x330418,_0x2b2d0a))continue;const _0x5515af=_0x330418['getFirstRange']();if(_0x5515af['containsRange'](_0x10eb67,!0x0))return null;_0x5bb607=_0x5bb607['isBefore'](_0x5515af['start'])?_0x5bb607:_0x5515af['start'],_0x3704b6=_0x3704b6['isAfter'](_0x5515af['end'])?_0x3704b6:_0x5515af['end'],_0x4819ad?_0x5515af['start']['isBefore'](_0x4819ad['getFirstRange']()['start'])?(_0x4819ad['removeMarkers'](),_0x4819ad=_0x330418):_0x330418['removeMarkers']():_0x4819ad=_0x330418;}const _0x24302f=this['_model']['createRange'](_0x5bb607,_0x3704b6);if(_0x4819ad)this['_setSuggestionRange'](_0x4819ad,_0x24302f);else{const _0x2940a9=_0x30a933(),_0x48ce21=_0x9b6fd2['id'];this['_setSuggestionData']({'id':_0x2940a9,'type':'formatInline:'+_0x9a1c80,'data':_0x3fd4be,'createdAt':new Date(),'authorId':_0x48ce21,'attributes':_0x2b2d0a}),this['_addSuggestionMarker']('formatInline:'+_0x9a1c80,_0x2940a9,_0x48ce21,_0x24302f);}}return null;}['markBlockFormat'](_0x5c4ee6,_0x5483fc,_0x50eb42=[],_0x29df7a=null,_0x14bb03={}){_0x5483fc['formatGroupId']||(_0x5483fc['formatGroupId']=_0x5483fc['commandName']),_0x5483fc['multipleBlocks']=_0x5c4ee6['is']('range'),_0x29df7a=_0x29df7a||Gt(_0x5483fc);const _0x3e8ff9=_0x50eb42['map'](_0x159608=>Lt(_0x159608,this['_model'])),_0x1cf7be=_0x5c4ee6['is']('range')?_0x5c4ee6:Lt(_0x5c4ee6,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4dfae8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29df7a,'accept');return this['forceDefaultExecution'](()=>_0x4dfae8([_0x1cf7be],_0x5483fc,_0x14bb03)),null;}_0x3e8ff9['push'](_0x1cf7be);let _0x2002d4=!0x0;for(const _0xaccd86 of _0x3e8ff9)if(!this['_rangeIsInLocalUserInsertion'](_0xaccd86)){_0x2002d4=!0x1;break;}if(_0x2002d4&&'always'!==this['_trackFormatChanges']){const _0x147b4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29df7a,'accept');return this['forceDefaultExecution'](()=>_0x147b4f([_0x1cf7be],_0x5483fc,_0x14bb03)),null;}let _0x13b034=null,_0x3a5ea7=_0x1cf7be['start'],_0x5838a1=_0x1cf7be['end'];for(const {suggestion:_0x24b833,meta:_0x4c2616}of this['_findSuggestions'](_0x1cf7be,'formatBlock')){if(!_0x4c2616['isOwn'])continue;if(_0x4c2616['isNextTo']||_0x4c2616['containsRangeInObject']||_0x4c2616['isInsideObject'])continue;if(_0x24b833['data']['formatGroupId']!=_0x5483fc['formatGroupId'])continue;if(!qt(_0x24b833,_0x14bb03))continue;const _0x29a079=_0x24b833['getFirstRange']();if(_0x24b833['subType']==_0x29df7a){if(_0x29a079['containsRange'](_0x1cf7be,!0x0))return null;_0x3a5ea7=_0x3a5ea7['isBefore'](_0x29a079['start'])?_0x3a5ea7:_0x29a079['start'],_0x5838a1=_0x5838a1['isAfter'](_0x29a079['end'])?_0x5838a1:_0x29a079['end'],_0x13b034?_0x29a079['start']['isBefore'](_0x13b034['getFirstRange']()['start'])?(_0x13b034['removeMarkers'](),_0x13b034=_0x24b833):_0x24b833['removeMarkers']():_0x13b034=_0x24b833;}else{const _0x33fa3f=_0x1cf7be['getIntersection'](_0x29a079);this['_cutOutSuggestionMarker'](_0x24b833,_0x33fa3f);}}const _0x5c6b0f=this['editor']['plugins']['get']('Users')['me'],_0xbc82b6=_0x30a933(),_0x5458ca=_0x5c6b0f['id'];if(_0x13b034)return this['_setSuggestionRange'](_0x13b034,this['_model']['createRange'](_0x3a5ea7,_0x5838a1)),_0x13b034;{const _0x173cae=this['_setSuggestionData']({'id':_0xbc82b6,'type':'formatBlock:'+_0x29df7a,'data':_0x5483fc,'createdAt':new Date(),'authorId':_0x5458ca,'attributes':_0x14bb03});return this['_addSuggestionMarker']('formatBlock:'+_0x29df7a,_0xbc82b6,_0x5458ca,this['_model']['createRange'](_0x3a5ea7,_0x5838a1)),_0x173cae;}}['markMultiRangeBlockFormat'](_0x20992e,_0x23eefa,_0x4c6a3f=[],_0x1cbf73=null,_0x4e2340={}){_0x23eefa['formatGroupId']||(_0x23eefa['formatGroupId']=_0x23eefa['commandName']);const _0x5a3e0f=_0x20992e[0x0];_0x23eefa['multipleBlocks']=_0x5a3e0f['is']('range'),_0x1cbf73=_0x1cbf73||Gt(_0x23eefa);const _0x54e2dd=_0x4c6a3f['map'](_0x395c22=>Lt(_0x395c22,this['_model'])),_0xcf69df=_0x5a3e0f['is']('range')?_0x20992e:_0x20992e['map'](_0x4e385a=>Lt(_0x4e385a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3c5bc8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1cbf73,'accept');return this['forceDefaultExecution'](()=>_0x3c5bc8(_0xcf69df,_0x23eefa,_0x4e2340)),null;}_0x54e2dd['push'](..._0xcf69df);let _0x2d0632=!0x0;for(const _0x1f2289 of _0x54e2dd)if(!this['_rangeIsInLocalUserInsertion'](_0x1f2289)){_0x2d0632=!0x1;break;}if(_0x2d0632&&'always'!==this['_trackFormatChanges']){const _0x115251=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1cbf73,'accept');return this['forceDefaultExecution'](()=>_0x115251(_0xcf69df,_0x23eefa,_0x4e2340)),null;}const _0x4277af=this['editor']['plugins']['get']('Users')['me'];for(const _0x159fb3 of this['getSuggestions']()){if(_0x159fb3['author']['id']!=_0x4277af['id'])continue;if('formatBlock'!=_0x159fb3['type']||_0x159fb3['data']['formatGroupId']!=_0x23eefa['formatGroupId'])continue;if(!qt(_0x159fb3,_0x4e2340))continue;const _0x2d7551=_0x159fb3['subType']==_0x1cbf73;for(let _0x44487a=0x0;_0x44487a<_0xcf69df['length'];_0x44487a++){const _0x1eca95=_0xcf69df[_0x44487a];for(const _0xed8a39 of _0x159fb3['getMarkers']()){const _0x151e2c=_0xed8a39['getRange']();if(_0x1eca95['isEqual'](_0x151e2c)){_0x2d7551?(_0xcf69df['splice'](_0x44487a,0x1),_0x44487a--):_0x159fb3['removeMarker'](_0xed8a39['name']);break;}}}}if(0x0==_0xcf69df['length'])return null;const _0x3f6f47=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1cbf73,'join');for(const _0x1cecc7 of this['getSuggestions']())if(_0x1cecc7['author']['id']==_0x4277af['id']&&'formatBlock'==_0x1cecc7['type']&&_0x1cecc7['data']['formatGroupId']==_0x23eefa['formatGroupId']&&_0x1cecc7['subType']==_0x1cbf73&&qt(_0x1cecc7,_0x4e2340)&&(_0x3f6f47(_0x1cecc7['getRanges'](),_0xcf69df)||_0x3f6f47(_0xcf69df,_0x1cecc7['getRanges']()))){for(const _0x4a9cb7 of _0xcf69df)_0x1cecc7['addRange'](_0x4a9cb7);return _0x1cecc7;}const _0x5749d0=_0x30a933(),_0x30d641=_0x4277af['id'],_0x402657='formatBlock:'+_0x1cbf73,_0x484546=this['_setSuggestionData']({'id':_0x5749d0,'type':_0x402657,'data':_0x23eefa,'createdAt':new Date(),'authorId':_0x30d641,'attributes':_0x4e2340});for(const _0x1d5692 of _0xcf69df)this['_addSuggestionMarker'](_0x402657,_0x5749d0,_0x30d641,_0x1d5692,u['getMultiRangeId']());return _0x484546;}['markDeletion'](_0xeab110,_0x106148=null,_0x2fa97c={}){if(_0xeab110['isCollapsed'])return null;const _0x47deae=this['editor']['plugins']['get']('Users')['me'],_0x22ac16=new _0x3f00a1(_0xeab110['start'],_0xeab110['end']);for(const {suggestion:_0x4ec1f1,meta:_0x31c9d5}of this['_findSuggestions'](_0x22ac16,'insertion'))if(_0x31c9d5['isOwn']&&!_0x31c9d5['isNextTo']){if(_0x4ec1f1['isMultiRange']){const _0xf3d571=_0x4ec1f1['getRanges']()['filter'](_0x5f2efc=>'$graveyard'!=_0x5f2efc['root']['rootName']);_0xf3d571['every'](_0x277f62=>_0x22ac16['containsRange'](_0x277f62,!0x0))&&_0x4ec1f1['discard']();if(_0xf3d571['some'](_0x384d93=>_0x384d93['containsRange'](_0x22ac16,!0x0))){const _0x155487=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x106148,'accept');return this['forceDefaultExecution'](()=>_0x155487([_0x22ac16],null,_0x2fa97c)),null;}}else{const _0x7c2bb3=_0x22ac16['getIntersection'](_0x4ec1f1['getFirstRange']());null!==_0x7c2bb3&&_0x4ec1f1['_onDiscard']([_0x7c2bb3],null,_0x2fa97c);}}if(_0x22ac16['detach'](),_0x22ac16['isCollapsed']||'$graveyard'==_0x22ac16['root']['rootName'])return null;let _0x53d914=null,_0x3bb891=_0x22ac16['start'],_0x4f1bfa=_0x22ac16['end'];const _0xb523a9=this['_findSuggestions'](_0x22ac16,'deletion');for(const {suggestion:_0x43eb97,meta:_0xfb5d92}of _0xb523a9){const _0x3d2c01=this['_model']['createRange'](_0x3bb891,_0x4f1bfa);if(_0xfb5d92['isOwn']&&(this['_mergeNestedSuggestions']||!_0xfb5d92['containsRangeInObject']&&!_0xfb5d92['isInsideObject'])){if(_0x43eb97['isMultiRange']){if(!qt(_0x43eb97,_0x2fa97c))continue;let _0x7151a=!0x0;for(const _0x3450c3 of _0x43eb97['getRanges']()){if(_0x3450c3['containsRange'](_0x3d2c01,!0x0))return _0x43eb97;_0x3d2c01['containsRange'](_0x3450c3)||(_0x7151a=!0x1);}_0x7151a&&_0x43eb97['discard']();}else{const _0xe9543e=_0x43eb97['getFirstRange']();if(_0xe9543e['containsRange'](_0x3d2c01,!0x0))return _0x43eb97;if(!qt(_0x43eb97,_0x2fa97c)){_0x3d2c01['containsRange'](_0xe9543e)?_0x43eb97['removeMarkers']():_0xe9543e['containsPosition'](_0x3bb891)?_0x3bb891=_0xe9543e['end']:_0xe9543e['containsPosition'](_0x4f1bfa)&&(_0x4f1bfa=_0xe9543e['start']);continue;}_0x3bb891=_0x3bb891['isBefore'](_0xe9543e['start'])?_0x3bb891:_0xe9543e['start'],_0x4f1bfa=_0x4f1bfa['isAfter'](_0xe9543e['end'])?_0x4f1bfa:_0xe9543e['end'],_0x2fa97c=Object['assign']({},_0x43eb97['attributes']),_0x53d914?_0xe9543e['start']['isBefore'](_0x53d914['getFirstRange']()['start'])?(_0x53d914['removeMarkers'](),_0x53d914=_0x43eb97):_0x43eb97['removeMarkers']():_0x53d914=_0x43eb97;}}}if(_0x53d914)return this['_setSuggestionRange'](_0x53d914,this['_model']['createRange'](_0x3bb891,_0x4f1bfa)),_0x53d914;{const _0x50d1f8=_0x30a933(),_0x26d02e=this['_model']['createRange'](_0x3bb891,_0x4f1bfa),_0x2d7314=_0x47deae['id'],_0x170827=_0x106148?'deletion:'+_0x106148:'deletion',_0x100ca0=this['_setSuggestionData']({'id':_0x50d1f8,'type':_0x170827,'createdAt':new Date(),'authorId':_0x2d7314,'attributes':_0x2fa97c});return this['_addSuggestionMarker'](_0x170827,_0x50d1f8,_0x2d7314,_0x26d02e),_0x100ca0;}}['markMultiRangeDeletion'](_0x159f5a,_0x4151a8='multi',_0xd8e90d={}){const _0x5607d6=this['editor']['plugins']['get']('Users')['me'],_0x4cf775=_0x159f5a['map'](_0x5bf387=>new _0x3f00a1(_0x5bf387['start'],_0x5bf387['end'])),_0x5c56a6=new Set();for(const {suggestion:_0x3f546,meta:_0x405795}of this['_findSuggestions'](_0x4cf775,'insertion'))_0x405795['isOwn']&&!_0x405795['isNextTo']&&_0x5c56a6['add'](_0x3f546);for(const _0x26efc6 of _0x5c56a6)if(_0x26efc6['isMultiRange']){const _0x532935=_0x26efc6['getRanges']();(!_0x26efc6['attributes']||!_0x26efc6['attributes']['skipNestingCheck'])&&(_0x532935['every'](_0x5e6cf2=>_0x4cf775['some'](_0x40d1d8=>_0x40d1d8['containsRange'](_0x5e6cf2,!0x0)))&&_0x26efc6['discard']());if(_0x4cf775['every'](_0x47a5fb=>_0x532935['some'](_0x390ee1=>_0x390ee1['containsRange'](_0x47a5fb,!0x0)))){const _0x50212c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4151a8,'accept');return this['forceDefaultExecution'](()=>_0x50212c(_0x159f5a,null,_0xd8e90d)),null;}}else{const _0x4351f2=_0x26efc6['getFirstRange']();_0x4cf775['some'](_0x4bd80f=>_0x4bd80f['containsRange'](_0x4351f2,!0x0))&&_0x26efc6['discard']();if(_0x4cf775['every'](_0x2ed83d=>_0x4351f2['containsRange'](_0x2ed83d,!0x0))){const _0x1dd9a5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4151a8,'accept');return this['forceDefaultExecution'](()=>_0x1dd9a5(_0x4cf775,null,_0xd8e90d)),null;}}const _0x32919f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4151a8,'join');let _0x365aa2=null;for(const _0x44f305 of this['getSuggestions']())if(_0x44f305['author']['id']==_0x5607d6['id']&&_0x44f305['isInContent']&&'deletion'==_0x44f305['type']&&_0x44f305['subType']==_0x4151a8&&qt(_0x44f305,_0xd8e90d)&&(_0x32919f(_0x44f305['getRanges'](),_0x4cf775)||_0x32919f(_0x4cf775,_0x44f305['getRanges']()))){if(_0x365aa2){if(_0x44f305['commentThread']&&_0x44f305['commentThread']['length'])continue;for(const _0x336bb9 of _0x44f305['getRanges']())_0x365aa2['isIntersectingWithRange'](_0x336bb9)||_0x365aa2['addRange'](_0x336bb9);_0x44f305['removeMarkers']();}else{_0x365aa2=_0x44f305;for(const _0x4f97ca of _0x4cf775)_0x44f305['isIntersectingWithRange'](_0x4f97ca)||_0x44f305['addRange'](_0x4f97ca);}}if(_0x365aa2)return _0x365aa2;_0x5c56a6['clear']();for(const {suggestion:_0x5cb10d,meta:_0x4838d7}of this['_findSuggestions'](_0x4cf775,'deletion'))_0x4838d7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4838d7['containsRangeInObject']&&!_0x4838d7['isInsideObject'])&&qt(_0x5cb10d,_0xd8e90d)&&_0x5c56a6['add'](_0x5cb10d);for(const _0x7f2f97 of _0x5c56a6){const _0x2370dc=_0x7f2f97['getRanges']();if(!_0xd8e90d||!_0xd8e90d['skipNestingCheck']){if(_0x4cf775['every'](_0x4a4f65=>_0x2370dc['some'](_0x33da11=>_0x33da11['containsRange'](_0x4a4f65,!0x0))))return _0x7f2f97;}(!_0x7f2f97['attributes']||!_0x7f2f97['attributes']['skipNestingCheck'])&&(_0x2370dc['every'](_0x163ea3=>_0x4cf775['some'](_0x3c9bff=>_0x3c9bff['containsRange'](_0x163ea3,!0x0)))&&_0x7f2f97['discard']());}const _0x148376=_0x30a933(),_0x2cfebf=_0x5607d6['id'],_0x5d3caf='deletion:'+_0x4151a8,_0x5bf5c2=this['_setSuggestionData']({'id':_0x148376,'type':_0x5d3caf,'createdAt':new Date(),'authorId':_0x2cfebf,'attributes':_0xd8e90d});for(const _0x3ebc28 of _0x4cf775)_0x3ebc28['detach'](),_0x3ebc28['isCollapsed']||'$graveyard'==_0x3ebc28['root']['rootName']||this['_addSuggestionMarker'](_0x5d3caf,_0x148376,_0x2cfebf,_0x3ebc28,u['getMultiRangeId']());return _0x5bf5c2;}['markAttributeChange'](_0x479a75,_0x5dfe2a,_0x6a28f6,_0x3a90ce,_0x2b45ae){if(_0x479a75['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4c9e53=this['editor']['plugins']['get']('Users')['me']['id'],_0x424090=Array['from'](this['_suggestions']['values']())['filter'](_0x4f39aa=>'attribute'==_0x4f39aa['type']&&_0x4f39aa['data']['key']==_0x5dfe2a&&_0x4f39aa['isIntersectingWithRange'](_0x479a75));if('default'===this['_trackFormatChanges']){const _0x28b763=this['_findSuggestions'](_0x479a75,'insertion')['filter'](({meta:_0x518329})=>_0x518329['isOwn']&&!_0x518329['isInsideObject']&&!_0x518329['isNextTo'])['map'](({suggestion:_0x4b9089})=>_0x4b9089);_0x424090['unshift'](..._0x28b763);}const _0x1ac789=new Map([[_0x479a75,_0x6a28f6]]);for(const _0x5dee8a of _0x424090){const _0x21324b='attribute'==_0x5dee8a['type']?_0x5dee8a['data']['oldValue']:void 0x0,_0x3d6c4e=_0x5dee8a['getFirstRange'](),_0x25a09d=Array['from'](_0x1ac789['keys']())['find'](_0x1c5cff=>_0x1c5cff['isIntersecting'](_0x3d6c4e));if(!_0x25a09d)continue;const _0x5ac073=_0x25a09d['getDifference'](_0x3d6c4e);this['_isBlockAttribute'](_0x5dfe2a)&&'insertion'==_0x5dee8a['type']&&0x0!=_0x5ac073['length']||(_0x1ac789['delete'](_0x25a09d),_0x5ac073['forEach'](_0x38b9b6=>{_0x1ac789['set'](_0x38b9b6,_0x6a28f6);}),'insertion'!=_0x5dee8a['type']&&_0x21324b!=_0x3a90ce&&_0x1ac789['set'](_0x25a09d['getIntersection'](_0x3d6c4e),_0x21324b));}const _0x31d741=[];for(const [_0xeed958,_0x347383]of _0x1ac789){const _0x5e83dc=_0x30a933(),_0x3581d7={'key':_0x5dfe2a,'oldValue':_0x347383,'newValue':_0x3a90ce};_0x5dfe2a['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':_0x5dfe2a});const _0x675a2d=('attribute:'+(_0x5dfe2a+'|'+Gt({'newValue':_0x3a90ce})))['substring'](0x0,0x3c),_0x4d203a=this['_setSuggestionData']({'id':_0x5e83dc,'type':_0x675a2d,'data':_0x3581d7,'createdAt':new Date(),'authorId':_0x4c9e53,'attributes':_0x2b45ae});_0x31d741['push'](_0x4d203a),this['_addSuggestionMarker'](_0x675a2d,_0x5e83dc,_0x4c9e53,_0xeed958);}return _0x31d741;}['enableDefaultAttributesIntegration'](_0xce7213){this['enableCommand'](_0xce7213,(_0x359fbb,..._0x4f7bb6)=>{this['_recordAttributeChanges'](()=>{_0x359fbb(..._0x4f7bb6);});});}['registerBlockAttribute'](_0x2762d3){this['_blockAttributeKeys']['add'](_0x2762d3);}['registerInlineAttribute'](_0x12d91e){this['_inlineAttributeKeys']['add'](_0x12d91e);}['_getAttributeKey'](_0x1f462b){return'attribute'==_0x1f462b['type']?_0x1f462b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x38766c,_0x1a1dfd){const _0xedccfc=_0x38766c['getFirstMarker']();this['_model']['change'](_0x3fb428=>{_0x3fb428['updateMarker'](_0xedccfc,{'range':_0x1a1dfd});});}['_addThreadToSuggestion'](_0x2378a8){const _0xcb8cf3=_0x2378a8['id'],_0x3ba402=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xcb8cf3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3ba402,'threadId':_0xcb8cf3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1fd814=this['_commentsRepository']['getCommentThread'](_0xcb8cf3);_0x1fd814['unbind']('isRemovable'),_0x1fd814['isRemovable']=!0x1,_0x2378a8['commentThread']=_0x1fd814;}['_checkSuggestionCorrectness'](_0x22b273,_0x517a8d,_0x4de767,_0x3a1bd8){if(_0x22b273['type']!=_0x517a8d||_0x22b273['subType']!=_0x4de767||_0x22b273['creator']['id']!=_0x3a1bd8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x9ee824('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x40999f,_0x4e834e){const _0x4b1bea=_0x40999f['getFirstRange']();if(_0x4e834e['isEqual'](_0x4b1bea))_0x40999f['removeMarkers']();else{if(_0x4b1bea['containsRange'](_0x4e834e)){const _0xeadf92=this['_model']['createPositionAt'](_0x4e834e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40999f,this['_model']['createRange'](_0x4b1bea['start'],_0xeadf92));const _0x45b86e=_0x30a933(),_0xba8bb=_0x40999f['creator']['id'],_0x244d7d=_0x40999f['type']+':'+_0x40999f['subType'];this['_setSuggestionData']({'id':_0x45b86e,'type':_0x244d7d,'createdAt':new Date(),'authorId':_0xba8bb,'data':_0x40999f['data'],'attributes':_0x40999f['attributes']});const _0x1450e5=this['_model']['createPositionAt'](_0x4e834e['end']['parent'],'after'),_0x424209=this['_model']['createRange'](_0x1450e5,_0x4b1bea['end']);this['_addSuggestionMarker'](_0x244d7d,_0x45b86e,_0xba8bb,_0x424209);}else{if(_0x4b1bea['containsPosition'](_0x4e834e['start'])){const _0x217851=this['_model']['createPositionAt'](_0x4e834e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40999f,this['_model']['createRange'](_0x4b1bea['start'],_0x217851));}else{const _0x3f0432=this['_model']['createPositionAt'](_0x4e834e['end']['parent'],'after');this['_setSuggestionRange'](_0x40999f,this['_model']['createRange'](_0x3f0432,_0x4b1bea['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2baef1){for(const {suggestion:_0x4e6317,meta:_0x5539ba}of this['_findSuggestions'](_0x2baef1,'insertion')){if(!_0x5539ba['isOwn'])continue;const _0x5c6ac6=_0x4e6317['getRanges']();for(const _0x455b29 of _0x5c6ac6)if(!_0x2baef1['getDifference'](_0x455b29)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x22d99a){const _0x3eda14=this['editor']['plugins']['get']('Users')['getUser'](_0x22d99a);if(!_0x3eda14)throw new _0x9ee824('track-changes-user-not-found',this);return _0x3eda14;}['_getExternalAuthor'](_0x17429d){const _0x84424c=this['editor']['plugins']['get']('Users'),_0x5417ce=_0x4dc8f2('external:'+_0x17429d),_0x508187=_0x84424c['getUser'](_0x5417ce);return _0x508187||_0x84424c['addUser']({'id':_0x5417ce,'name':_0x17429d});}['_createSuggestion'](_0x45d193,_0x2ba86a,_0x16b384,_0x393537,_0x5f39ae){const _0x20fb04=this['_getAuthorFromId'](_0x393537),_0x1ce699=this['_suggestionFactory']['buildSuggestion'](_0x45d193,_0x2ba86a,_0x16b384,_0x20fb04,_0x5f39ae,_0x3282f6=>{this['_updateSuggestionData'](_0x16b384,{'attributes':_0x3282f6});const _0x1e90fa=this['getSuggestion'](_0x16b384);this['_joinWithAdjacentSuggestions'](new Set([_0x1e90fa])),this['_refreshSuggestionsChain'](new Set([_0x1e90fa]));});return this['listenTo'](_0x1ce699,'accept',()=>{this['_updateSuggestionData'](_0x16b384,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1ce699,'discard',()=>{this['_updateSuggestionData'](_0x16b384,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x16b384,_0x1ce699),this['_suggestionState']['set'](_0x1ce699,'notReady'),_0x1ce699;}['_splitMarkerName'](_0x471042){const _0x4fcfb4=_0x471042['split'](':');return{'group':_0x4fcfb4[0x0],'type':_0x4fcfb4[0x1],'subType':_0x4fcfb4['length']>=0x5?_0x4fcfb4[0x2]:null,'id':_0x4fcfb4['length']<0x5?_0x4fcfb4[0x2]:_0x4fcfb4[0x3],'authorId':_0x4fcfb4['length']<0x5?_0x4fcfb4[0x3]:_0x4fcfb4[0x4],'markerCount':0x6==_0x4fcfb4['length']?_0x4fcfb4[0x5]:null};}['_breakSuggestionMarker'](_0x5a6dd0,_0x54a3cc,_0x3ba4bd){const _0x181b17=_0x5a6dd0['getFirstRange'](),_0x1e4349=_0x181b17['start'],_0x1b539f=_0x181b17['end'];this['_setSuggestionRange'](_0x5a6dd0,this['_model']['createRange'](_0x1e4349,_0x54a3cc));const _0x55a9d8=_0x30a933(),_0x1ac8da=_0x5a6dd0['creator']['id'],_0x454f15=_0x5a6dd0['type']+(_0x5a6dd0['subType']?':'+_0x5a6dd0['subType']:'');this['_setSuggestionData']({'id':_0x55a9d8,'type':_0x454f15,'createdAt':new Date(),'authorId':_0x1ac8da,'originalSuggestionId':_0x5a6dd0['id'],'attributes':_0x5a6dd0['attributes'],'data':_0x5a6dd0['data']});const _0x372eb0=this['_getAttributeKey'](_0x5a6dd0);('formatBlock'==_0x5a6dd0['type']||_0x372eb0&&this['_isBlockAttribute'](_0x372eb0))&&(_0x3ba4bd=this['_model']['createPositionBefore'](_0x3ba4bd['parent'])),this['_addSuggestionMarker'](_0x454f15,_0x55a9d8,_0x1ac8da,this['_model']['createRange'](_0x3ba4bd,_0x1b539f));}['_findSuggestions'](_0x31428f,_0x5a0158=null){const _0x82e701=[],_0x5311f0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x31428f)||(_0x31428f=[_0x31428f]);for(const _0x368ad5 of this['getSuggestions']()){if(!_0x368ad5['isInContent'])continue;if(_0x5a0158&&_0x368ad5['type']!=_0x5a0158)continue;let _0x26ec8b=!0x1;for(const _0x398d22 of _0x368ad5['getRanges']()){for(const _0x2bab31 of _0x31428f){const _0x56d5ad=_0x2bab31['start']['isEqual'](_0x398d22['end'])||_0x2bab31['end']['isEqual'](_0x398d22['start']);if(_0x56d5ad||_0x2bab31['getIntersection'](_0x398d22)){const _0x48714a=_0x2bab31['containsRange'](_0x398d22)&&Ot(this['_model']['schema'],_0x398d22['start'],_0x2bab31),_0x3c0dd5=_0x398d22['containsRange'](_0x2bab31)&&Ot(this['_model']['schema'],_0x2bab31['start'],_0x398d22);_0x82e701['push']({'suggestion':_0x368ad5,'meta':{'isOwn':_0x5311f0==_0x368ad5['author'],'isNextTo':_0x56d5ad,'isInsideObject':_0x48714a,'containsRangeInObject':_0x3c0dd5}}),_0x26ec8b=!0x0;break;}}if(_0x26ec8b)break;}}return _0x82e701;}['_addSuggestionMarker'](_0x22f93f,_0x33127e,_0x4be949,_0x48f7fd,_0x43f340){this['_model']['change'](_0x110c82=>{let _0xd90cb3='suggestion:'+_0x22f93f+':'+_0x33127e+':'+_0x4be949;_0x43f340&&(_0xd90cb3=_0xd90cb3+':'+_0x43f340),_0x110c82['addMarker'](_0xd90cb3,{'range':_0x48f7fd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x441b98){const _0x3f0e4d=_0x441b98['previous'],_0x543689=_0x441b98['next'];_0x441b98['previous']=null,_0x441b98['next']=null,null!=_0x3f0e4d&&_0x3f0e4d['next']==_0x441b98&&(_0x3f0e4d['next']=_0x543689),null!=_0x543689&&_0x543689['previous']==_0x441b98&&(_0x543689['previous']=_0x3f0e4d),'ready'==this['_suggestionState']['get'](_0x441b98)&&(this['_suggestionState']['set'](_0x441b98,'removed'),this['fire']('suggestionUnloaded',_0x441b98,_0x3f0e4d,_0x543689));}['_setSuggestionData'](_0x29322e){const _0x405e52=_0x29322e['id'],_0x6ba29e=this['addSuggestionData'](_0x29322e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x43b3bd=this['editor']['plugins']['get']('PendingActions'),_0x466a02=_0x6ba29e['hasComments'],_0x1066f4=_0x6ba29e['subType']?_0x6ba29e['type']+':'+_0x6ba29e['subType']:_0x6ba29e['type'],_0x148404=this['editor']['locale'],_0x57329f=_0x43b3bd['add'](o(_0x148404,'PENDING_ACTION_SUGGESTION')),_0x4aeb01={'id':_0x405e52,'type':_0x1066f4,'hasComments':_0x466a02,'data':_0x29322e['data']||null,'originalSuggestionId':_0x29322e['originalSuggestionId']||null,'attributes':_0x6ba29e['attributes']};this['_adapter']['addSuggestion'](_0x4aeb01)['then'](_0x5b9cf0=>{_0x6ba29e['_saved']=!0x0,_0x43b3bd['remove'](_0x57329f),_0x5b9cf0&&_0x5b9cf0['createdAt']&&(this['_suggestions']['get'](_0x405e52)['createdAt']=_0x5b9cf0['createdAt']);})['catch'](_0x5a5eda=>{throw _0x494922('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x6ba29e['discard']();}),_0x6ba29e['stopListening'](),this['_suggestions']['delete'](_0x6ba29e['id']),this['_suggestionState']['delete'](_0x6ba29e),_0x5a5eda;});}return _0x6ba29e;}['_isBlockAttribute'](_0x2a2833){return this['_blockAttributeKeys']['has'](_0x2a2833);}['_updateSuggestionData'](_0x361602,_0x3e4e74){const _0x1becf4=this['editor']['plugins']['get']('PendingActions'),_0x18d3bb=this['getSuggestion'](_0x361602);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x18d3bb['_saved']){const _0x5a4bb9=_0x1becf4['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x361602,_0x3e4e74)['then'](()=>{_0x1becf4['remove'](_0x5a4bb9);});}else _0x18d3bb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x361602,_0x3e4e74);});}}['_getSuggestionData'](_0x1109fc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x9ee824('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1109fc);}['_handleNewSuggestionMarker'](_0x50214b){const {id:_0x257ecb,type:_0x251ec6,subType:_0x3fcdf1,authorId:_0x4f13aa}=this['_splitMarkerName'](_0x50214b),_0x362352=this['_suggestions']['get'](_0x257ecb)||this['_createSuggestion'](_0x251ec6,_0x3fcdf1,_0x257ecb,_0x4f13aa,{});switch(this['_checkSuggestionCorrectness'](_0x362352,_0x251ec6,_0x3fcdf1,_0x4f13aa),this['_suggestionState']['get'](_0x362352)){case'notReady':this['_getSuggestionData'](_0x257ecb)['then'](_0x9eac0a=>{let _0xf552f4=Promise['resolve']();_0x9eac0a['hasComments']&&(_0xf552f4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x257ecb})),_0xf552f4['then'](()=>{this['addSuggestionData'](_0x9eac0a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x362352,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x257ecb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x362352,'ready'),this['fire']('suggestionLoaded',_0x362352);break;case'ready':this['fire']('suggestionChanged',_0x362352);}return _0x362352['addMarkerName'](_0x50214b),_0x362352;}['_refreshSuggestionsChain'](_0x4c6397){const _0x50a6eb=Array['from'](_0x4c6397),_0x1d6aaa=_0x50a6eb['filter'](_0x14ee04=>'attribute'==_0x14ee04['type']);this['_refreshAttributeSuggestionsChain'](_0x1d6aaa);const _0x33f10a=_0x50a6eb['filter'](_0x2f05fe=>!_0x2f05fe['isMultiRange']&&'attribute'!=_0x2f05fe['type']),_0x521237=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x428b4a=>!_0x428b4a['isMultiRange']&&'attribute'!=_0x428b4a['type']),_0x415ed4=_0x521237['filter'](_0x5533fe=>!_0x4c6397['has'](_0x5533fe)),_0x2501af=new Map(_0x521237['map'](_0x39f383=>[_0x39f383,this['_suggestionFactory']['getSuggestionCallback'](_0x39f383['type'],_0x39f383['subType'],'chain')])),_0x334343=new Map(_0x521237['map'](_0x267251=>[_0x267251,_0x267251['getFirstRange']()])),_0x45dcf7=new Set(),_0x14fa62=new Set();for(let _0x1106e4=0x0;_0x1106e4<_0x33f10a['length'];_0x1106e4++)_0x3777c7(_0x33f10a[_0x1106e4],_0x33f10a,_0x1106e4+0x1);for(let _0x1301cd=0x0;_0x1301cd<_0x33f10a['length'];_0x1301cd++)_0x3777c7(_0x33f10a[_0x1301cd],_0x415ed4,0x0);const _0x5dee4b=new Set();for(let _0xd24ba8=0x0;_0xd24ba8<_0x33f10a['length'];_0xd24ba8++){const _0x12897a=_0x33f10a[_0xd24ba8];!_0x14fa62['has'](_0x12897a)&&_0x12897a['previous']&&(_0x5dee4b['add'](_0x12897a['previous']),_0x12897a['previous']['next']===_0x12897a&&(_0x12897a['previous']['next']=null),_0x12897a['previous']=null),!_0x45dcf7['has'](_0x12897a)&&_0x12897a['next']&&(_0x5dee4b['add'](_0x12897a['next']),_0x12897a['next']['previous']===_0x12897a&&(_0x12897a['next']['previous']=null),_0x12897a['next']=null);}function _0x3777c7(_0x40132c,_0x23b8a6,_0x44869b){for(let _0x2541e2=_0x44869b;_0x2541e2<_0x23b8a6['length'];_0x2541e2++){const _0x88c884=_0x192609(_0x40132c,_0x23b8a6[_0x2541e2]);_0x88c884&&(_0x88c884[0x0]['next']=_0x88c884[0x1],_0x88c884[0x1]['previous']=_0x88c884[0x0],_0x45dcf7['add'](_0x88c884[0x0]),_0x14fa62['add'](_0x88c884[0x1]));}}function _0x192609(_0x596322,_0x158636){if(_0x596322['author']['id']!==_0x158636['author']['id'])return null;const _0x508712=_0x2501af['get'](_0x596322)(_0x596322,_0x158636,_0x334343['get'](_0x596322),_0x334343['get'](_0x158636));if(!_0x508712)return null;return _0x2501af['get'](_0x158636)(_0x596322,_0x158636,_0x334343['get'](_0x596322),_0x334343['get'](_0x158636))?_0x508712[0x1]['commentThread']&&_0x508712[0x1]['commentThread']['length']?null:_0x508712:null;}_0x5dee4b['size']&&this['_refreshSuggestionsChain'](_0x5dee4b);}['_refreshAttributeSuggestionsChain'](_0x534829){if(0x0==_0x534829['length'])return;const _0x702817=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36662f=>'attribute'==_0x36662f['type']&&_0x36662f['_isDataLoaded']),_0x3e2494=[],_0x2c1cc7=new Map();for(const _0x46950e of _0x702817){const _0x2bc00c=_0x4dc8f2(_0x46950e['attributes']);_0x2c1cc7['has'](_0x2bc00c)||(_0x2c1cc7['set'](_0x2bc00c,_0x3e2494['length']),_0x3e2494['push']([]));const _0x10e79c=_0x2c1cc7['get'](_0x2bc00c);_0x3e2494[_0x10e79c]['push'](_0x46950e);}!(function(){_0x3e2494['sort']((_0xd51fba,_0x1c566b)=>{const _0x6b77c4=_0xd51fba[0x0]['createdAt'],_0x4b6396=_0x1c566b[0x0]['createdAt'];return _0x6b77c4==_0x4b6396?_0xd51fba[0x0]['attributes']['groupId']<_0x1c566b[0x0]['attributes']['groupId']?-0x1:0x1:_0x6b77c4<_0x4b6396?-0x1:0x1;});for(const _0x23f73a of _0x3e2494)_0x23f73a['sort']((_0x33eac3,_0x270284)=>_0x33eac3['id']<_0x270284['id']?-0x1:0x1);}());for(let _0x264628=0x0;_0x264628<_0x3e2494['length'];_0x264628++){if(0x0==_0x3e2494[_0x264628]['length'])continue;const _0x43b48f=[];for(let _0x45ed3f=_0x264628+0x1;_0x45ed3f<_0x3e2494['length'];_0x45ed3f++)0x0!=_0x3e2494[_0x45ed3f]['length']&&_0x1c9a05(_0x3e2494[_0x264628],_0x3e2494[_0x45ed3f])&&_0x43b48f['push'](_0x45ed3f);for(const _0x1b1c1b of _0x43b48f)_0x3e2494[_0x264628]=_0x3e2494[_0x264628]['concat'](_0x3e2494[_0x1b1c1b]),_0x3e2494[_0x1b1c1b]=[];}for(const _0x4a7cbd of _0x3e2494)for(let _0x223cec=0x0;_0x223cec<_0x4a7cbd['length'];_0x223cec++){const _0x54654e=_0x4a7cbd[_0x223cec+0x1]||null;_0x4a7cbd[_0x223cec]['next']!==_0x54654e&&(_0x4a7cbd[_0x223cec]['next']=_0x54654e);}for(const _0x5413b5 of _0x3e2494)for(let _0x2a194b=0x0;_0x2a194b<_0x5413b5['length'];_0x2a194b++){const _0x5bbed7=_0x5413b5[_0x2a194b-0x1]||null;_0x5413b5[_0x2a194b]['previous']!==_0x5bbed7&&(_0x5413b5[_0x2a194b]['previous']=_0x5bbed7);}function _0x1c9a05(_0x19369b,_0xd13cd2){if(_0x19369b[0x0]['attributes']['groupId']!==_0xd13cd2[0x0]['attributes']['groupId']&&_0x19369b[0x0]['author']!==_0xd13cd2[0x0]['author'])return!0x1;if(!function(_0x5bcdd5,_0xe24b6c){if(!_0x5bcdd5['hasComments']&&!_0xe24b6c['hasComments'])return!0x0;if(_0x5bcdd5['hasComments']&&_0xe24b6c['hasComments'])return!0x1;if(_0x5bcdd5['hasComments']&&_0xe24b6c['createdAt']<_0x5bcdd5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe24b6c['hasComments']&&_0x5bcdd5['createdAt']<_0xe24b6c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x19369b[0x0],_0xd13cd2[0x0]))return!0x1;const _0x58f7b6=Tt(_0x19369b[0x0]['attributes'],'groupId'),_0x320c82=Tt(_0xd13cd2[0x0]['attributes'],'groupId');if(!_0x4d1bff(_0x58f7b6,_0x320c82))return!0x1;return!!_0x19369b['every'](_0x179bbf=>_0xd13cd2['some'](_0xdf3dd8=>_0x179bbf['getFirstRange']()['isEqual'](_0xdf3dd8['getFirstRange']())))&&_0xd13cd2['every'](_0x1bf8bf=>_0x19369b['some'](_0x41b331=>_0x1bf8bf['getFirstRange']()['isEqual'](_0x41b331['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xcbe462){const _0x298a1f=Array['from'](_0xcbe462),_0x23827f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x453313=_0x23827f['filter'](_0x1bc7a4=>!_0xcbe462['has'](_0x1bc7a4)),_0x57f85f=new Map(_0x298a1f['map'](_0x1d6052=>[_0x1d6052,this['_suggestionFactory']['getSuggestionCallback'](_0x1d6052['type'],_0x1d6052['subType'],'join')])),_0x58b9ef=new Map(_0x23827f['map'](_0x56ae6a=>[_0x56ae6a,_0x56ae6a['getRanges']()]));for(let _0x4d6344=0x0;_0x4d6344<_0x298a1f['length'];_0x4d6344++){if(_0xca2781(this,_0x298a1f[_0x4d6344],_0x298a1f,_0x4d6344+0x1))return!0x0;}for(let _0x5b9a16=0x0;_0x5b9a16<_0x298a1f['length'];_0x5b9a16++){if(_0xca2781(this,_0x298a1f[_0x5b9a16],_0x453313,0x0))return!0x0;}return!0x1;function _0xca2781(_0x13848e,_0xa2bc21,_0x1dc409,_0x5461e3){for(let _0x30c6f0=_0x5461e3;_0x30c6f0<_0x1dc409['length'];_0x30c6f0++){const _0x315cdb=_0x1dc409[_0x30c6f0];if(_0x315cdb['type']!==_0xa2bc21['type']||_0x315cdb['author']['id']!==_0xa2bc21['author']['id']||_0x315cdb['subType']!==_0xa2bc21['subType'])continue;if(!Jt(_0xa2bc21,_0x315cdb))continue;if('attribute'==_0xa2bc21['type']&&_0xa2bc21['data']['oldValue']!=_0x315cdb['data']['oldValue'])continue;if('attribute'==_0xa2bc21['type']&&_0x13848e['_isBlockAttribute'](_0xa2bc21['data']['key']))continue;if('formatBlock'==_0xa2bc21['type']){const _0xea4669=_0x13848e['editor']['model'],_0x1891f8=_0xa2bc21['getContainedElement']();if(_0x1891f8&&(_0xea4669['schema']['isObject'](_0x1891f8)||_0xea4669['schema']['isLimit'](_0x1891f8)))continue;}const _0x130124=_0x57f85f['get'](_0xa2bc21),_0xd9130b=_0x58b9ef['get'](_0xa2bc21),_0xc52536=_0x58b9ef['get'](_0x315cdb),_0x1c0195=_0xa2bc21['commentThread']&&_0xa2bc21['commentThread']['length'],_0x29fdcb=_0x315cdb['commentThread']&&_0x315cdb['commentThread']['length'];if(!_0x1c0195&&_0x130124(_0xc52536,_0xd9130b))return _0x13848e['_joinSuggestions'](_0x315cdb,_0xa2bc21),_0x58b9ef['delete'](_0xa2bc21),!0x0;if(!_0x29fdcb&&_0x130124(_0xd9130b,_0xc52536))return _0x13848e['_joinSuggestions'](_0xa2bc21,_0x315cdb),_0x58b9ef['delete'](_0x315cdb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1bd770,_0x970f31){if(_0x1bd770['isMultiRange']){for(const _0x2122a0 of _0x970f31['getRanges']())_0x1bd770['addRange'](_0x2122a0);}else{const _0x1cd35c=_0x970f31['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1bd770,this['_model']['createRange'](_0x1bd770['getFirstRange']()['start'],_0x1cd35c));}_0x970f31['removeMarkers']();}['_getMarkerAnnouncementText'](_0x21c6a0,_0x5c630f,_0x4f16ee){const _0x28ca81=_0x21c6a0['startsWith']('format')||_0x21c6a0['startsWith']('attribute')?'FORMATTING':_0x21c6a0['toUpperCase']();return o(this['editor']['locale'],_0x5c630f+'_'+_0x28ca81+'_SUGGESTION_ANNOUNCEMENT',_0x4f16ee);}['_initAriaMarkerChangeAnnouncements'](){const _0x18100c=this['editor'];if(!_0x18100c['ui'])return;const {ariaLiveAnnouncer:_0x4cb29c}=_0x18100c['ui'];_0x499b97(this['_model'],({left:_0x7ab21d,entered:_0x3eb42e})=>{for(const _0x126943 of _0x7ab21d){const {group:_0x5d65d8,type:_0x2d901e}=this['_splitMarkerName'](_0x126943['name']);if('suggestion'===_0x5d65d8){_0x4cb29c['announce'](this['_getMarkerAnnouncementText'](_0x2d901e,'LEAVE'));break;}}for(const _0x760c0e of _0x3eb42e){const {group:_0x5a75da,type:_0x5b7294}=this['_splitMarkerName'](_0x760c0e['name']);if('suggestion'===_0x5a75da){_0x4cb29c['announce'](this['_getMarkerAnnouncementText'](_0x5b7294,'ENTER',_0x45ae70(_0x2f3654)));break;}}});}['_processAttributeChanges'](_0x7a08de){if(this['_recordAttributeSuggestions'])return!0x1;const _0x462f0d=this['editor'],_0x342916=_0x462f0d['model']['document']['differ']['getChanges']();if(0x0==_0x342916['length'])return!0x1;const _0x3686df=[],_0x9f10e7=_0x342916['filter'](_0x3d8cd0=>'attribute'==_0x3d8cd0['type']),_0xa2f72=_0x342916['filter'](_0x220fa3=>'insert'==_0x220fa3['type']&&'$text'!=_0x220fa3['name']),_0xbcf51d=_0x342916['filter'](_0x5c4875=>'remove'==_0x5c4875['type']&&'$text'!=_0x5c4875['name']);for(const _0x47f4ee of _0x9f10e7)_0x3686df['push']({'key':_0x47f4ee['attributeKey'],'newValue':_0x47f4ee['attributeNewValue'],'oldValue':_0x47f4ee['attributeOldValue'],'range':Pt(_0x47f4ee['range'],_0x462f0d['model'])});for(const _0x2e7022 of _0xa2f72){const _0x3c7a45=_0xbcf51d['find'](_0xb7c421=>_0xb7c421['position']['isEqual'](_0x2e7022['position']));_0x3c7a45&&_0x3686df['push']({'key':m,'newValue':_0x2e7022['name'],'oldValue':_0x3c7a45['name'],'range':_0x462f0d['model']['createRangeOn'](_0x2e7022['position']['nodeAfter'])});}return 0x0!=_0x3686df['length']&&this['_reduceExistingSuggestions'](_0x7a08de,_0x3686df);}['_processAttributeSuggestions'](_0x3d2b9d){let _0x49b165=!0x1;const _0x27dace=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x31c759=>_0x31c759['data']['newRange']&&_0x31c759['name']['startsWith']('suggestion:attribute:'));for(const _0x5ab54d of _0x27dace){const {subType:_0x3a780c,id:_0x311fbe}=this['_splitMarkerName'](_0x5ab54d['name']),_0x30b4da=_0x3a780c['split']('|')[0x0];for(const _0x190b26 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x190b26['id']!=_0x311fbe&&'attribute'==_0x190b26['type']&&_0x190b26['data']&&_0x190b26['data']['key']==_0x30b4da&&_0x190b26['getFirstRange']()['isIntersecting'](_0x5ab54d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x190b26,_0x5ab54d['data']['newRange'],_0x3d2b9d),_0x49b165=!0x0);}return _0x49b165;}['_recordAttributeChanges'](_0x37b89a){this['_recordAttributeSuggestions']=!0x0,_0x37b89a();}['_isRegisteredAttribute'](_0x23af35){const _0x27904f=this['_isBlockAttribute'](_0x23af35),_0x7da5ba=this['_inlineAttributeKeys']['has'](_0x23af35);return _0x27904f||_0x7da5ba;}['_reduceExistingSuggestions'](_0x3305f4,_0x10ebf5){if(0x0==_0x10ebf5['length'])return!0x1;let _0x49b5ba=!0x1;for(const _0x2d33d0 of _0x10ebf5){const _0xb83586=this['_findSuggestions'](_0x2d33d0['range'],'attribute')['filter'](_0x51313a=>!_0x51313a['meta']['isNextTo'])['map'](_0x38703f=>_0x38703f['suggestion']),_0x55e377=_0x4dc8f2({'newValue':_0x2d33d0['newValue']});_0xb83586['filter'](_0x17fb0e=>{const [_0x4c68c6,_0x3de279]=_0x17fb0e['subType']['split']('|');return _0x4c68c6==_0x2d33d0['key']&&_0x3de279!=_0x55e377;})['forEach'](_0x796446=>{this['_reduceSuggestionAttributeRange'](_0x796446,_0x2d33d0['range'],_0x3305f4),_0x49b5ba=!0x0;});}return _0x49b5ba;}['_reduceSuggestionAttributeRange'](_0x5be168,_0xf33f02,_0x51e01b){const _0xd5d445=_0x5be168['getFirstRange']()['getDifference'](_0xf33f02);0x0!==_0xd5d445['length']?0x1!==_0xd5d445['length']?this['_breakSuggestionMarker'](_0x5be168,_0xf33f02['start'],_0xf33f02['end']):this['_setSuggestionRange'](_0x5be168,_0xd5d445[0x0]):_0x51e01b['removeMarker'](_0x5be168['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x21dff2){this['_editor']=_0x21dff2,this['_model']=_0x21dff2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x30af5d,_0x97281f,_0x4ed9c1,_0x2e0ffa,_0x23dcc8,_0x4bf733){return new u(this['_model'],{'type':_0x30af5d,'subType':_0x97281f,'id':_0x4ed9c1,'author':_0x2e0ffa,'creator':_0x2e0ffa,'attributes':_0x23dcc8,'onAttributesChange':_0x4bf733,'onAccept':(..._0x2bbf46)=>this['getSuggestionCallback'](_0x30af5d,_0x97281f,'accept')(..._0x2bbf46),'onDiscard':(..._0xb6fed3)=>this['getSuggestionCallback'](_0x30af5d,_0x97281f,'discard')(..._0xb6fed3)});}['registerCustomCallback'](_0x463fd0,_0x29a2ac,_0x5d5709,_0x159473){const _0x3e9007=_0x463fd0+':'+_0x29a2ac+':'+_0x5d5709;this['_customCallbacks']['set'](_0x3e9007,_0x159473);}['getSuggestionCallback'](_0x47d95f,_0x1643a4,_0x33292d){const _0x228e42=_0x47d95f+':'+_0x1643a4+':'+_0x33292d;return this['_customCallbacks']['get'](_0x228e42)||this['_defaultCallbacks']['get'](_0x47d95f+':'+_0x33292d);}['_registerDefaultCallbacks'](){const _0x4c4d16=()=>!0x1,_0x1f5572=_0x2d8dcd=>{_0x2d8dcd['sort']((_0x49feed,_0x5ee711)=>_0x49feed['start']['isBefore'](_0x5ee711['start'])?0x1:-0x1),this['_model']['change'](_0x152d9b=>{for(const _0x162b4b of _0x2d8dcd){let _0x5e99d3;_0x5e99d3=_0x162b4b['end']['isAtEnd']&&_0x162b4b['end']['parent']==_0x162b4b['start']['nodeAfter']?_0x152d9b['createSelection'](_0x162b4b['start']['nodeAfter'],'on'):_0x152d9b['createSelection'](_0x162b4b),this['_model']['deleteContent'](_0x5e99d3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5994a4=(_0x4e9df1,_0x460086)=>{_0x460086&&this['_model']['change'](_0x1a55a3=>{const {commandName:_0x1dd26c,commandParams:_0x8eeb77=[]}=_0x460086,_0x48edbe=_0x4e9df1['map'](_0x2cb35b=>(Vt(_0x2cb35b)&&(_0x2cb35b=this['_model']['createRange'](_0x2cb35b['end'])),_0x2cb35b))['filter'](_0x43ac8f=>'$graveyard'!==_0x43ac8f['root']['rootName']);if(_0x48edbe['length']<0x1)return;const _0x5deed6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5b4d54=>_0x3f00a1['fromRange'](_0x5b4d54));_0x1a55a3['setSelection'](_0x48edbe);for(const _0x3ea52a of this['_editor']['commands']['commands']())_0x3ea52a['refresh']();_0x8eeb77['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1dd26c,..._0x8eeb77);const _0x18559c=_0x5deed6['filter'](_0x52ac14=>'$graveyard'!=_0x52ac14['root']['rootName']);_0x18559c['length']>0x0&&_0x1a55a3['setSelection'](_0x18559c);for(const _0x2cdc1e of _0x5deed6)_0x2cdc1e['detach']();});},_0xb578e8=(_0x598a71,_0xaf96ea)=>0x1==_0x598a71['length']&&0x1==_0xaf96ea['length']&&_0x598a71[0x0]['end']['isEqual'](_0xaf96ea[0x0]['start']),_0x5c7f90=(_0x84d265,_0x31571a,_0x1af29a,_0x5f4295)=>Ht(_0x84d265,_0x31571a,_0x1af29a,_0x5f4295,this['_model'])?[_0x84d265,_0x31571a]:Ht(_0x31571a,_0x84d265,_0x5f4295,_0x1af29a,this['_model'])?[_0x31571a,_0x84d265]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4c4d16),this['_defaultCallbacks']['set']('insertion:discard',_0x1f5572),this['_defaultCallbacks']['set']('insertion:join',_0xb578e8),this['_defaultCallbacks']['set']('insertion:chain',_0x5c7f90),this['_defaultCallbacks']['set']('deletion:accept',_0x1f5572),this['_defaultCallbacks']['set']('deletion:discard',_0x4c4d16),this['_defaultCallbacks']['set']('deletion:join',_0xb578e8),this['_defaultCallbacks']['set']('deletion:chain',_0x5c7f90),this['_defaultCallbacks']['set']('formatInline:accept',_0x5994a4),this['_defaultCallbacks']['set']('formatInline:discard',_0x4c4d16),this['_defaultCallbacks']['set']('formatInline:join',_0xb578e8),this['_defaultCallbacks']['set']('formatInline:chain',_0x4c4d16),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5994a4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4c4d16),this['_defaultCallbacks']['set']('formatBlock:join',_0xb578e8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4c4d16),this['_defaultCallbacks']['set']('attribute:accept',_0x4c4d16),this['_defaultCallbacks']['set']('attribute:discard',(_0x1dfb36,_0x4f6f21)=>{if(!_0x4f6f21)return;const _0xc7ab67=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x21fc5a=>{if(_0x4f6f21['key']==m)for(const _0x189eca of _0x1dfb36){const _0x3d7d1e=_0x189eca['start']['nodeAfter'],_0x2373ea=_0x4f6f21['oldValue'];_0x21fc5a['rename'](_0x3d7d1e,_0x2373ea);}else{if(_0xc7ab67['_isBlockAttribute'](_0x4f6f21['key'])){for(const _0x23a8e4 of _0x1dfb36)void 0x0!==_0x4f6f21['oldValue']?_0x21fc5a['setAttribute'](_0x4f6f21['key'],_0x4f6f21['oldValue'],_0x23a8e4['start']['nodeAfter']):_0x21fc5a['removeAttribute'](_0x4f6f21['key'],_0x23a8e4['start']['nodeAfter']);}else{for(const _0x175e6c of _0x1dfb36)_0x4f6f21['oldValue']?_0x21fc5a['setAttribute'](_0x4f6f21['key'],_0x4f6f21['oldValue'],_0x175e6c):_0x21fc5a['removeAttribute'](_0x4f6f21['key'],_0x175e6c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xb578e8);}}function Ot(_0x3e5af5,_0x582cb1,_0x2ff338){for(const _0x54e5d3 of _0x582cb1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x54e5d3['root']==_0x54e5d3)return!0x1;if(!_0x2ff338['containsItem'](_0x54e5d3))return!0x1;if(_0x3e5af5['isObject'](_0x54e5d3)||_0x3e5af5['isLimit'](_0x54e5d3))return!0x0;}return!0x1;}function Vt(_0x5affb2){return _0x5affb2['end']['parent']==_0x5affb2['start']['nodeAfter']&&_0x5affb2['end']['isAtStart'];}function Ut(_0x5e3a34,_0x61c92c,_0x6fb89b,_0x27d039){const _0x1865d8=_0x4c3ff3=>!_0x4c3ff3['item']['is']('$textProxy')&&!_0x27d039['isObject'](_0x4c3ff3['item']),_0x5ab24e=_0x5e3a34['start']['getLastMatchingPosition'](_0x1865d8),_0x5e8ca2=_0x5e3a34['end']['getLastMatchingPosition'](_0x1865d8,{'direction':'backward'});return(!_0x5e3a34['start']['isEqual'](_0x5ab24e)||!_0x5e3a34['end']['isEqual'](_0x5e8ca2))&&(_0x5ab24e['isBefore'](_0x5e8ca2)?_0x6fb89b['updateMarker'](_0x61c92c,{'range':_0x6fb89b['createRange'](_0x5ab24e,_0x5e8ca2)}):_0x6fb89b['removeMarker'](_0x61c92c),!0x0);}function Gt(_0x3bfd7d){return _0x4dc8f2(_0x3bfd7d);}function Ft(_0x8db2ba){const _0x57fdc1=_0x8db2ba['start']['nodeAfter'];return _0x57fdc1&&_0x57fdc1['is']('element');}function Pt(_0xdf5581,_0x2b138d){return null==_0xdf5581['end']['nodeBefore']&&_0xdf5581['end']['parent']==_0xdf5581['start']['nodeAfter']?Lt(_0xdf5581['start']['nodeAfter'],_0x2b138d):_0xdf5581;}function Lt(_0x23e9d1,_0x36330f){const _0x26ba74=_0x36330f['schema']['isObject'](_0x23e9d1)||_0x36330f['schema']['isSelectable'](_0x23e9d1);return _0x36330f['createRange'](_0x36330f['createPositionAt'](_0x23e9d1,'before'),_0x26ba74?_0x36330f['createPositionAfter'](_0x23e9d1):_0x36330f['createPositionAt'](_0x23e9d1,'end'));}function Ht(_0x1a50d0,_0x4166c6,_0x5317fc,_0x439d22,_0x94ea6b){if(_0x1a50d0['next'])return!0x1;if(!Jt(_0x1a50d0,_0x4166c6))return!0x1;if(_0x5317fc['end']['isEqual'](_0x439d22['start']))return!0x0;if(_0x1a50d0['type']!=_0x4166c6['type'])return!0x1;if(!_0x5317fc['end']['isTouching'](_0x439d22['start']))return!0x1;const _0x2fa72a=_0x94ea6b['createRange'](_0x5317fc['end'],_0x439d22['start'])['getWalker']();for(const _0x34fd43 of _0x2fa72a)if(['elementStart','elementEnd']['includes'](_0x34fd43['type'])&&_0x94ea6b['schema']['isLimit'](_0x34fd43['item']))return!0x1;return!0x0;}function Jt(_0x3c9239,_0x2ef30e){if(!_0x3c9239['_isDataLoaded']||!_0x2ef30e['_isDataLoaded'])return!0x1;const _0x1ef69a=new Set(Object['keys'](_0x3c9239['attributes'])),_0x162783=new Set(Object['keys'](_0x2ef30e['attributes']));if(_0x1ef69a['delete']('groupId'),_0x162783['delete']('groupId'),0x0==_0x1ef69a['size']&&0x0==_0x162783['size'])return!0x0;if(_0x1ef69a['size']!=_0x162783['size'])return!0x1;const _0x15bbb0={..._0x3c9239['attributes']},_0x79e450={..._0x2ef30e['attributes']};return delete _0x15bbb0['groupId'],delete _0x79e450['groupId'],JSON['stringify'](_0x15bbb0)==JSON['stringify'](_0x79e450);}function qt(_0x566711,_0x1d6d89){const _0x176fb1=zt(_0x566711['attributes']),_0x46da23=zt(_0x1d6d89);if(!_0x566711['_isDataLoaded'])return!0x1;for(const _0x35be5c of Object['keys'](_0x46da23))if(!_0x4d1bff(_0x176fb1[_0x35be5c],_0x46da23[_0x35be5c]))return!0x1;return!0x0;}function zt(_0x36cbd0){const _0x4ad4b4=Object['assign']({},_0x36cbd0);return delete _0x4ad4b4['skipNestingCheck'],delete _0x4ad4b4['tablePasteChainId'],_0x4ad4b4;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0xecfd75(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3bed93,_0x5665ed,_0x3a13b0,_0x4f5dcb){super(),this['model']=_0x5665ed,this['view']=_0x3a13b0,this['commentThreadController']=_0x4f5dcb,this['_editor']=_0x3bed93,this['_acceptCommand']=_0x3bed93['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3bed93['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x45f89d,_0x112b22)=>_0x45f89d||_0x112b22),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5027b1=>_0x5027b1&&this['_editor']['model']['canEditAt'](_0x5665ed['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4ae5c2=>_0x4ae5c2&&this['_editor']['model']['canEditAt'](_0x5665ed['getRanges']())),this['_pendingAction']=null,_0x3a13b0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3a13b0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3a13b0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3a13b0,'change:isDirty',()=>{_0x3a13b0['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 _0x26774e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x26774e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x35fcbe{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x236351,_0x29a445,_0x1ae38f,_0x2aa725){super(_0x236351),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4d57e8(_0x236351,o(_0x236351,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x29a445['authoredAt']),this['bind']('authoredAt')['to'](_0x29a445),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',_0x29a445,'authoredAt',this,'descriptionParts',(_0x577c81,_0x1f84d1,_0x5d191d)=>{const _0x18b276=_0x5d191d['map'](_0x5ccbd5=>ls(_0x5ccbd5['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x577c81-0x1,_0x29a445['author']['name'],_0x1f84d1?_0x2aa725['formatDateTime'](_0x1f84d1):'',new DOMParser()['parseFromString'](_0x18b276,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3700b4(),this['focusTracker']=new _0x2d9544(),this['keystrokes']=new _0xfa6b48(),this['focusCycler']=new _0x815bc6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x26107b=>_0x26107b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x29a445,this['_localUser']=_0x1ae38f,this['_config']=_0x2aa725,_0x2aa725['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x136a89(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x51573c}=this['_config'];this['commentsListView']=new _0x51573c(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',_0x39fc4f=>_0x39fc4f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x563426,_0x433667)=>_0x563426||!!_0x433667);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4d2785}=this['_config'],_0x5355fe=new _0x4d2785(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4273d3=_0x5355fe['commentInputView'];return _0x5355fe['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4273d3,'value',(_0x8ca762,_0x92045d,_0x25acab)=>!!_0x25acab||_0x8ca762&&!_0x92045d),_0x4273d3['on']('submit',(_0x2358ac,_0x533616)=>{this['fire']('addComment',_0x533616),_0x4273d3['editor']['setData']('');}),_0x4273d3['on']('cancel',()=>this['focus']()),_0x4273d3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5355fe;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1e6e3b,_0x44f11c,_0x585970,_0x403127){super(_0x1e6e3b,_0x44f11c,_0x585970,_0x403127),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x199477=>_0x199477&&_0x199477[0x0]?_0x199477[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x39691f,_0xf7a5d2)=>{let _0x488881='';for(const _0x374b2b of _0x39691f)_0x488881+='<p>'+ls(_0x374b2b['content'],_0x374b2b['color'])+'</p>';return _0xf7a5d2?_0x488881:_0x5b6ce9(_0x488881,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x403127['SuggestionView'](_0x1e6e3b,_0x44f11c,{'formatDateTime':_0x403127['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 _0xe67361=this['bindTemplate'],_0x450a06=[this['suggestionView']];return this['commentsListView']&&_0x450a06['push'](this['commentsListView']),this['commentThreadInputView']&&_0x450a06['push'](this['commentThreadInputView']),_0x450a06['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xe67361['if']('isActive','ck-suggestion-wrapper--active'),_0xe67361['to']('type',_0x1a5543=>'ck-suggestion-'+_0x1a5543),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':_0xe67361['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x450a06};}['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 ce extends _0x35fcbe{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x28d971,_0x45f5eb,_0x1cf9f0){super(_0x28d971),this['_model']=_0x45f5eb,this['_config']=_0x1cf9f0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x45f5eb),this['acceptButton']=this['_createButton'](o(_0x28d971,'Accept\x20suggestion'),_0x24919e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x28d971,'Discard\x20suggestion'),_0x24919e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2251ad(_0x28d971,_0x45f5eb['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3700b4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2d9544(),this['keystrokes']=new _0xfa6b48(),this['focusCycler']=new _0x815bc6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xee353c=>_0xee353c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2ac768=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2ac768['innerHTML']=this['description'],this['on']('change:description',(_0x4958c3,_0x2726f1,_0x466645)=>{_0x2ac768['innerHTML']=_0x466645;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x449ba9=this['bindTemplate'],_0x753af3=[{'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':_0x449ba9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x449ba9['to']('authoredAt',_0x2cc9d9=>this['_config']['formatDateTime'](_0x2cc9d9))}]}]},{'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']&&_0x753af3['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':_0x753af3}]};}['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'](_0x3370e2,_0x128284,_0x27d883,_0x2d09a2,_0x4ac503){const _0x2454b4=new _0x1b29a6(this['locale']);return _0x2454b4['set']({'label':_0x3370e2,'icon':_0x128284,'tooltip':!0x0,'tooltipPosition':_0x4ac503}),_0x2454b4['extendTemplate']({'attributes':{'class':_0x27d883}}),_0x2454b4['on']('execute',()=>{this['fire'](_0x2d09a2,this['_model']['id']);}),_0x2454b4;}['_setupKeyboardNavigation'](){const _0x4ecae2=this['element'];this['keystrokes']['listenTo'](_0x4ecae2);for(const _0x4371f6 of this['focusables'])this['focusTracker']['add'](_0x4371f6['element']),this['keystrokes']['listenTo'](_0x4371f6['element']);this['keystrokes']['set']('enter',(_0x1e5db7,_0x161429)=>{_0x4ecae2===_0x1e5db7['target']&&(this['focusCycler']['focusFirst'](),_0x161429());}),this['keystrokes']['set']('esc',(_0x902a55,_0x268b7e)=>{_0x4ecae2!==_0x902a55['target']&&(this['focus'](),_0x268b7e());});}}var he='<!--\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 _0x2be873{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x10e3b2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x194c57){super(_0x194c57),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5244b8=this['editor']['config'];_0x5244b8['define']('trackChanges.SuggestionThreadView',re),_0x5244b8['define']('trackChanges.SuggestionView',ce),_0x5244b8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5244b8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xbe57f1,_0x821c33){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x189208,_0x5aaf03]of this['_handleControllerBuffer']){const _0xd2fe27=this['_suggestionToController']['has'](_0x189208);_0xd2fe27||_0x5aaf03?_0xd2fe27&&_0x5aaf03&&this['_destroyController'](_0x189208):this['_initializeController'](_0x189208);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xbe57f1,_0x821c33);}['init'](){const _0x351623=this['editor'],_0x3e5250=_0x351623['plugins']['get']('TrackChangesEditing'),_0x22d587=_0x351623['plugins']['get']('Annotations'),_0x41348e=_0x351623['plugins']['get']('EditorAnnotations'),_0x4ac80e=_0x351623['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x41348e['addSourceCollector'](()=>{const _0x9d863e=[];for(const [_0x6c5e21,_0x347ab7]of Array['from'](this['_suggestionToController'])){const _0x24fbbf=_0x6c5e21['getAllAdjacentSuggestions'](),_0x5a9abe=[];for(const _0x2e020a of _0x24fbbf){if(!_0x2e020a['isInContent'])continue;if(_0x2e020a['isMultiRange']){_0x5a9abe['push'](..._0x2e020a['getRanges']());continue;}const _0x3755c7=_0x2e020a['getFirstRange']();if(_0x5a9abe['length']>0x0){const _0x137fcb=_0x5a9abe[0x0]['getJoined'](_0x3755c7);if(_0x137fcb){_0x5a9abe[0x0]=_0x137fcb;continue;}}_0x5a9abe['push'](_0x3755c7);}_0x9d863e['push']([_0x347ab7['view'],_0x5a9abe]);}return _0x9d863e;}),this['listenTo'](_0x3e5250,'suggestionLoaded',(_0x5c472a,_0x50e035)=>{this['listenTo'](_0x50e035,'change:previous',(_0x4b1259,_0x38c5a3,_0x27ef87,_0x47a056)=>{_0x50e035['isInContent']&&(null==_0x27ef87?(this['_updateController'](_0x47a056['head']),this['_handleSuggestionControllerDelayed'](_0x50e035,!0x1)):(this['_updateController'](_0x27ef87['head']),null==_0x47a056&&this['_handleSuggestionControllerDelayed'](_0x50e035,!0x0)));}),null!==_0x50e035['previous']?this['_updateController'](_0x50e035['head']):this['_handleSuggestionControllerDelayed'](_0x50e035,!0x1);}),this['listenTo'](_0x3e5250,'suggestionUnloaded',(_0x4ab2cb,_0x4ca8da,_0x258866)=>{this['stopListening'](_0x4ca8da,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4ca8da),this['_suggestionToController']['has'](_0x4ca8da)&&this['_destroyController'](_0x4ca8da),_0x258866&&this['_updateController'](_0x258866['head']);}),this['listenTo'](_0x3e5250,'suggestionChanged',(_0xd30bc3,_0x246def)=>{this['_updateController'](_0x246def);}),this['listenTo'](_0x22d587,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4ac80e,'addComment',(_0x3c9e11,{threadId:_0x59481d,isFromAdapter:_0x3317c8})=>{if(_0x3317c8||!_0x3e5250['hasSuggestion'](_0x59481d))return;const _0x79cfc8=_0x3e5250['getSuggestion'](_0x59481d);this['_suggestionToController']['get'](_0x79cfc8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x317045=this['editor']['plugins']['get']('Annotations'),_0x457ae7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x302ca3=Array['from'](_0x317045['activeAnnotations'],_0x24bbfe=>_0x24bbfe['innerView'])['filter'](_0x424a69=>this['_viewToController']['has'](_0x424a69)),_0x29d949=[];for(const _0x432c36 of _0x302ca3){const _0x3179c4=this['_viewToController']['get'](_0x432c36)['model']['getAllAdjacentSuggestions']();_0x29d949['push'](..._0x3179c4['reduce']((_0x30a516,_0x24f4de)=>[..._0x30a516,..._0x24f4de['getMarkerNames']()],[]));}_0x457ae7['activeMarkers']=_0x29d949;}['_addUIComponentsToFactory'](){const _0x3cf014=this['editor'],_0x2fb4c1=_0x3cf014['locale'],_0x227caf=o(_0x2fb4c1,'Track\x20changes'),_0x2d3a43=new Wt([{'type':'switchbutton','model':new _0xe79664({'withText':!0x0,'isToggleable':!0x0,'label':_0x227caf,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xe79664({'withText':!0x0,'label':o(_0x2fb4c1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe79664({'withText':!0x0,'label':o(_0x2fb4c1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe79664({'withText':!0x0,'label':o(_0x2fb4c1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe79664({'withText':!0x0,'label':o(_0x2fb4c1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x845e41 of _0x2d3a43)if(me(_0x845e41)){const _0x26ff18=_0x3cf014['commands']['get'](_0x845e41['model']['commandName']);_0x845e41['model']['bind']('isOn','isEnabled')['to'](_0x26ff18,'value','isEnabled');}_0x3cf014['ui']['componentFactory']['add']('trackChanges',_0x594d5d=>this['_createToolbarButton'](_0x594d5d,_0x2d3a43,_0x227caf)),_0x3cf014['ui']['componentFactory']['add']('menuBar:trackChanges',_0x374ec0=>this['_createMenuBarMenu'](_0x374ec0,_0x2d3a43,_0x227caf));}['_createToolbarButton'](_0x36a769,_0x56e05e,_0x156a74){const _0x10e106=Qt(_0x36a769,_0x5e8136),_0x55e860=this['editor']['commands']['get']('trackChanges');_0x10e106['buttonView']['set']({'tooltip':_0x156a74,'label':_0x156a74,'icon':he}),_0x10e106['buttonView']['bind']('isOn')['to'](_0x55e860,'value'),_0x10e106['buttonView']['on']('execute',()=>{_0x55e860['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x10e106,_0x56e05e,{'role':'menu'});const _0x2bdaa2=[];for(const _0x121786 of _0x56e05e)me(_0x121786)&&_0x2bdaa2['push'](this['editor']['commands']['get'](_0x121786['model']['commandName']));const _0x3cc33c=_0x10e106['buttonView'];return _0x3cc33c['actionView']['unbind']('isEnabled'),_0x3cc33c['arrowView']['unbind']('isEnabled'),_0x3cc33c['actionView']['bind']('isEnabled')['to'](_0x55e860,'isEnabled'),_0x3cc33c['arrowView']['bind']('isEnabled')['toMany'](_0x2bdaa2,'isEnabled',(..._0x245e60)=>_0x245e60['some'](_0x4929bc=>_0x4929bc)),_0x10e106['on']('execute',_0x544860=>{this['editor']['execute'](_0x544860['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x10e106;}['_createMenuBarMenu'](_0x37f8c8,_0x482c20,_0x1fbbef){const _0x134e0e=new Yt(_0x37f8c8),_0x29a303=this['editor']['commands']['get']('trackChanges');_0x134e0e['buttonView']['set']({'label':_0x1fbbef,'icon':he});const _0x510768=new Zt(_0x37f8c8);for(const _0x1eb2db of _0x482c20){if('separator'==_0x1eb2db['type']){_0x510768['items']['add'](new Xt(_0x37f8c8));continue;}const _0x23e564=new te(_0x37f8c8,_0x134e0e),_0x7ad0c5=new _0x14497f(_0x37f8c8),_0x796cb3=_0x1eb2db['model'];_0x7ad0c5['bind'](...Object['keys'](_0x796cb3))['to'](_0x796cb3),_0x7ad0c5['delegate']('execute')['to'](_0x134e0e),_0x7ad0c5['on']('execute',()=>{this['editor']['execute'](_0x796cb3['commandName']),this['editor']['editing']['view']['focus']();}),_0x23e564['children']['add'](_0x7ad0c5),_0x510768['items']['add'](_0x23e564);}return _0x134e0e['bind']('isEnabled')['to'](_0x29a303,'isEnabled'),_0x134e0e['panelView']['children']['add'](_0x510768),_0x134e0e;}['_initializeController'](_0x3a6a4e){const _0x54c07a=this['editor'],_0x35cc6a=_0x54c07a['config'],_0x246984=_0x54c07a['plugins']['get']('Annotations'),_0x18e9fa=_0x54c07a['plugins']['get']('CommentsRepository'),_0x4a6462=_0x54c07a['plugins']['get']('EditorAnnotations'),_0x4cc353=_0x54c07a['plugins']['get'](_0x10e3b2)['me'],_0x6eab91=_0x35cc6a['get']('trackChanges')['SuggestionThreadView'],_0x132491=_0x35cc6a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2850d0,CommentThreadInputView:_0x2d9ea4}=_0x54c07a['plugins']['get']('CommentsUI');let _0x539f7e,_0x2981ec,_0x4ffb45;this['_annotationViews']['has'](_0x3a6a4e['id'])?(_0x2981ec=this['_annotationViews']['get'](_0x3a6a4e['id']),_0x539f7e=_0x2981ec['mainView']):(_0x539f7e=new _0x6eab91(_0x54c07a['locale'],_0x3a6a4e,_0x4cc353,{'disableComments':this['_disableComments'],'editorConfig':_0x35cc6a['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x35cc6a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x35cc6a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x35cc6a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2e8695(_0x35cc6a['get']('locale')),'CommentView':_0x35cc6a['get']('comments')['CommentView'],'CommentsListView':_0x2850d0,'CommentThreadInputView':_0x2d9ea4,'SuggestionView':_0x132491}),_0x539f7e['suggestionView']['acceptButton']['on']('execute',()=>{_0x54c07a['editing']['view']['focus']();}),_0x539f7e['suggestionView']['discardButton']['on']('execute',()=>{_0x54c07a['editing']['view']['focus']();}),_0x2981ec=_0x246984['createAnnotationView'](this['editor']['locale'],_0x539f7e),_0x2981ec['bind']('isDirty')['to'](_0x539f7e,'isDirty'),_0x2981ec['bind']('length')['to'](_0x539f7e),_0x2981ec['bind']('type')['to'](_0x539f7e,'type',_0x485bf9=>'suggestion-'+_0x485bf9),_0x539f7e['on']('escape',()=>{_0x4ffb45['fire']('escape');}),this['_annotationViews']['set'](_0x3a6a4e['id'],_0x2981ec));const _0x3618eb=_0x18e9fa['createCommentThreadController'](_0x3a6a4e['commentThread'],_0x539f7e),_0x51d417=new ae(_0x54c07a,_0x3a6a4e,_0x539f7e,_0x3618eb),_0x4c0124=_0x3a6a4e['getAllAdjacentSuggestions']()['filter'](_0x2b25ed=>_0x2b25ed['isInContent']);_0x539f7e['descriptionParts']=_0x54c07a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4c0124),this['_suggestionToController']['set'](_0x3a6a4e,_0x51d417),this['_viewToController']['set'](_0x539f7e,_0x51d417),_0x4ffb45=_0x246984['createAnnotation']({'view':_0x2981ec,'target':()=>{const _0x598786=[],_0x35d382=_0x3a6a4e['getAllAdjacentSuggestions']()['filter'](_0x425e76=>_0x425e76['isInContent']);for(const _0x4fdd28 of _0x35d382)_0x598786['push'](..._0x4fdd28['getMarkers']());return _0x1d452d(_0x54c07a['editing'],_0x598786);},'type':()=>'suggestion-'+_0x51d417['view']['type']}),_0x18e9fa['_bindAnnotationToEditors'](_0x539f7e,_0x4ffb45),_0x246984['add'](_0x4ffb45),_0x4a6462['registerAnnotation'](_0x4ffb45);}['_destroyController'](_0x3c0956){const _0x1caf52=this['editor']['plugins']['get']('CommentsRepository'),_0x53d75d=this['editor']['plugins']['get']('Annotations'),_0x271d6f=this['_suggestionToController']['get'](_0x3c0956),_0x2ba09f=_0x271d6f['view'],_0x3c852d=_0x53d75d['getByInnerView'](_0x2ba09f);_0x1caf52['_unbindEditors'](_0x2ba09f),_0x3c852d&&_0x53d75d['remove'](_0x3c852d),this['_suggestionToController']['delete'](_0x3c0956),this['_viewToController']['delete'](_0x2ba09f),_0x271d6f['destroy']();}['_updateController'](_0x2ab972){if(!_0x2ab972['isInContent']||!this['_suggestionToController']['has'](_0x2ab972))return;const _0x1d3d0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20e6eb=this['_suggestionToController']['get'](_0x2ab972),_0x1649a6=_0x2ab972['getAllAdjacentSuggestions']();_0x20e6eb['view']['descriptionParts']=_0x1d3d0a['descriptionFactory']['getDescriptions'](_0x1649a6);}['destroy'](){for(const _0x26f6af of this['_suggestionToController']['keys']())this['_destroyController'](_0x26f6af);for(const _0x1376a4 of this['_annotationViews']['values']())_0x1376a4['mainView']['destroy']();super['destroy']();}}function me(_0x2fa636){return'model'in _0x2fa636;}class k extends _0x2be873{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x1f1a48){this['editor']['plugins']['get'](p)['adapter']=_0x1f1a48;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2aa517){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2aa517);}['getSuggestions']({skipNotAttached:_0x2433e3=!0x1,toJSON:_0x35f63a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2433e3,'toJSON':_0x35f63a});}['getSuggestion'](_0x2f247d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2f247d);}}const T=['Pagination'];class P extends _0x2be873{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x541848=this['editor'];if(_0x541848['config']['define']('trackChangesData.editorCreator',_0x476188=>{const _0x5ba2c6=_0x541848['model']['document']['getRootNames']()['reduce']((_0x24e3c3,_0xff70af)=>(_0x24e3c3[_0xff70af]='',_0x24e3c3),{});return _0x541848['constructor']['create'](_0x5ba2c6,_0x476188);}),'function'!=typeof _0x541848['config']['get']('trackChangesData')['editorCreator'])throw new _0x9ee824('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x29574e){return N(this['editor'],!0x0,_0x29574e);}['getDataWithDiscardedSuggestions'](_0x72eecd){return N(this['editor'],!0x1,_0x72eecd);}}class D extends _0x2be873{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x129548){super(_0x129548),this['result']='end';}['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(_0x569f80){return void 0x0!==_0x569f80['getRootsAttributes'];}async function N(_0x40593c,_0x5dea89,_0x31684b){const _0x1c2f3d=_0x36c3fd(_0x40593c,T);_0x1c2f3d['plugins']['push'](p,D),_0x1c2f3d['rootsAttributes']=v(_0x40593c)?_0x40593c['getRootsAttributes']():void 0x0;const _0x58c880=document['createDocumentFragment'](),_0x6fd9e3=_0x40593c['config']['get']('trackChangesData')['editorCreator'],_0x21f26b=await _0x6fd9e3(_0x1c2f3d,()=>function(_0x13a212){const _0x4eb568=document['createElement']('div');return _0x13a212['appendChild'](_0x4eb568),_0x4eb568;}(_0x58c880));!function(_0x1c4564,_0x53ae89){const _0x3b331d=_0x1c4564['model']['document']['getRootNames']()['reduce']((_0x5de5c2,_0x3dcf73)=>(_0x5de5c2[_0x3dcf73]=_0x1c4564['data']['get']({'rootName':_0x3dcf73}),_0x5de5c2),{}),_0x5cfd65=_0x1c4564['plugins']['get']('Users')['users']['map'](_0x1b9b27=>({'id':_0x1b9b27['id'],'name':_0x1b9b27['name']})),_0x2f2f92=_0x1c4564['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x125eb1=_0x1c4564['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4a5466=_0x53ae89['plugins']['get']('Users'),_0xa8d8c9=_0x53ae89['plugins']['get']('TrackChangesEditing'),_0x53da7d=_0x53ae89['plugins']['get']('CommentsRepository');for(const _0x274696 of _0x53da7d['getCommentThreads']())_0x274696['remove']();for(const _0x32bd41 of _0x5cfd65)_0x4a5466['getUser'](_0x32bd41['id'])||_0x4a5466['addUser'](_0x32bd41);_0x4a5466['me']||_0x4a5466['useAnonymousUser']();for(const _0x163242 of _0x125eb1)_0x53da7d['addCommentThread'](_0x163242);for(const _0x43afa3 of _0x2f2f92)_0xa8d8c9['addSuggestionData'](_0x43afa3);_0x53ae89['data']['set'](_0x3b331d);}(_0x40593c,_0x21f26b),_0x21f26b['execute'](_0x5dea89?'acceptAllSuggestions':'discardAllSuggestions');const _0x6e16cc=v(_0x21f26b)?_0x21f26b['getFullData'](_0x31684b):_0x21f26b['data']['get'](_0x31684b);return await _0x21f26b['destroy'](),_0x6e16cc;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};