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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x535ab4,PendingActions as _0x5aa827,icons as _0x48f094}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3f4695,ObservableMixin as _0xafc74d,uid as _0x2325fc,insertToPriorityArray as _0x4ebb7d,priorities as _0x15aa47,logWarning as _0x50c0ed,getEnvKeystrokeText as _0x3525fa,FocusTracker as _0x49358e,KeystrokeHandler as _0x24a3ec,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x116443,View as _0x22b5b2,ViewCollection as _0x371a4b,FocusCycler as _0xc29a13,ViewModel as _0x4a7868,createDropdown as Qt,SplitButtonView as _0x1af418,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x185c92}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2ec2ea,hashObject as _0x2cc9b7,surroundingMarkersDetector as _0x171913,FOCUS_ANNOTATION_KEYSTROKE as _0x399a6b,AriaDescriptionView as _0x19c8a1,setupThreadKeyboardNavigation as _0x1d236d,trimHtml as _0x52c42b,UserView as _0x18d0fa,LateFocusButtonView as _0x7933f0,getDateTimeFormatter as _0x5c649f,getAllMarkersDomElementsSorted as _0x12fb88,sanitizeEditorConfig as _0x35cc56}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x45e89c,LiveRange as _0x146d11,LivePosition as _0x389799}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1ca611,toWidget as _0x2bb991}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x7afb09,set as _0x12cea6,isEqual as _0x2dfd37,unset as _0x2162a7,omit as Rt}from'lodash-es';import{Delete as _0x8a5805,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x47dbd5,ShiftEnter as _0x4c4231}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x578da3,_0x334b01){super(_0x578da3),this['_enabledCommands']=_0x334b01,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 _0x57b26e of this['editor']['commands']['commands']())_0x57b26e['affectsData']&&!this['_enabledCommands']['has'](_0x57b26e)&&_0x57b26e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x16e018 of this['editor']['commands']['commands']())_0x16e018['affectsData']&&!this['_enabledCommands']['has'](_0x16e018)&&_0x16e018['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0xfa2876,_0x1fafc5){super(_0xfa2876),this['_suggestions']=_0x1fafc5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4d4d92){const _0x26b464=this['_suggestions']['get'](_0x4d4d92);if(!_0x26b464)throw new _0x3f4695('track-changes-accept-suggestion-not-found',this);const _0x128c40=_0x26b464['getRanges']();this['editor']['model']['canEditAt'](_0x128c40)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x26b464);}}class O extends ts{['_suggestions'];constructor(_0x4d2f79,_0x566e0c){super(_0x4d2f79),this['_suggestions']=_0x566e0c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1a5974){const _0x477961=this['_suggestions']['get'](_0x1a5974);if(!_0x477961)throw new _0x3f4695('track-changes-discard-suggestion-not-found',this);const _0x57996c=_0x477961['getRanges']();this['editor']['model']['canEditAt'](_0x57996c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x477961);}}function ls(_0x516f4a,_0x4b5617){let _0xe65881='';return _0xe65881+=_0x516f4a['split']('*')['map']((_0x42f573,_0x533eea)=>_0x533eea%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x42f573)+'</span>':nn(_0x42f573))['join'](''),_0x4b5617&&(_0xe65881+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4b5617['value']+'\x22\x20title=\x22'+_0x4b5617['title']+'\x22></span>'),_0xe65881;}function nn(_0x59fcb1){const _0x2499cc=document['createElement']('span');return _0x2499cc['innerText']=_0x59fcb1,_0x2499cc['innerHTML'];}function ss(_0x1c55be){return _0x1c55be['sort']((_0x568d9f,_0x3fc554)=>'deletion'==_0x568d9f['type']&&'deletion'!=_0x3fc554['type']?-0x1:'deletion'!=_0x568d9f['type']&&'deletion'==_0x3fc554['type']?0x1:0x0);}function to(_0xbda59c,_0x12fc2c){let _0x4d7760,_0x2c20dc=0x0;const _0x5709d5=[],_0x5ed54c=_0x12fc2c['schema'];for(;_0x2c20dc<_0xbda59c['length'];){const _0x55405b=_0xbda59c[_0x2c20dc],_0x1a75fa=_0xbda59c[_0x2c20dc+0x1];_0x4d7760||(_0x4d7760=_0x12fc2c['createPositionBefore'](_0x55405b)),on(_0x12fc2c,_0x55405b,_0x1a75fa)||(_0x5709d5['push'](_0x12fc2c['createRange'](_0x4d7760,_0x5ed54c['isObject'](_0x55405b)?_0x12fc2c['createPositionAfter'](_0x55405b):_0x12fc2c['createPositionAt'](_0x55405b,'end'))),_0x4d7760=null),_0x2c20dc++;}return _0x5709d5;}function on(_0x1b63c3,_0x2cbf09,_0x26e39a){if(!_0x26e39a)return!0x1;const _0x2ee002=_0x1b63c3['createPositionAfter'](_0x2cbf09),_0xe6d3d9=_0x1b63c3['createPositionBefore'](_0x26e39a);return _0x2ee002['isTouching'](_0xe6d3d9);}function rs(_0x574146,_0x496d0e,_0x2e4395){for(;_0x2e4395['length'];){const _0x4b1c45=_0x2e4395['splice'](0x0,0x64);_0x574146['change'](()=>{for(const _0xce95ed of _0x4b1c45)_0xce95ed['isInContent']&&_0x496d0e['execute'](_0xce95ed['id']);});}}class R extends ts{['_command'];['_suggestions'];constructor(_0x4e2589,_0x28b9,_0xe22cd4){super(_0x4e2589),this['_command']=_0x28b9,this['_suggestions']=_0xe22cd4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x80e381=Array['from'](this['_suggestions']['values']())['some'](_0xbc7ba4=>_0xbc7ba4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x80e381;}['execute'](){const _0x4d8286=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3ae184 of _0x4d8286){const _0x268bd5=_0x3ae184['getRanges']();if(!this['editor']['model']['canEditAt'](_0x268bd5))return;}rs(this['editor']['model'],this['_command'],_0x4d8286);}}class E extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4dd3fe,_0x1605ca,_0x8fbf0c){super(_0x4dd3fe),this['_command']=_0x1605ca,this['_suggestions']=_0x8fbf0c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x106928=this['editor']['model']['document']['selection'],_0x1047dc=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x305123,_0x48ee5b){const _0x3a3cb3=Array['from'](_0x305123['getRanges']()),_0x3d0366=new Set();for(const _0xeec2cc of _0x48ee5b)if(_0xeec2cc['isInContent']){for(const _0x34f7f8 of _0x3a3cb3)for(const _0x1a825b of _0xeec2cc['getRanges']())(_0x34f7f8['isIntersecting'](_0x1a825b)||_0x305123['isCollapsed']&&!_0xeec2cc['isMultiRange']&&_0xeec2cc['next']&&_0x1a825b['end']['isTouching'](_0x34f7f8['start']))&&_0x3d0366['add'](_0xeec2cc);}return _0x3d0366;}(_0x106928,_0x1047dc),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x40ff6d=ss(Array['from'](this['_selectedSuggestions']));for(const _0x33a47a of _0x40ff6d){const _0x3f4593=_0x33a47a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f4593))return;}rs(this['editor']['model'],this['_command'],_0x40ff6d);}}class u extends/* #__PURE__ -- @preserve */
24
- _0xafc74d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3351c0,_0x47369b){super(),this['id']=_0x47369b['id'],this['type']=_0x47369b['type'],this['subType']=_0x47369b['subType']||null,this['author']=_0x47369b['author'],this['creator']=_0x47369b['creator']||_0x47369b['author'],this['isExternal']=Boolean(_0x47369b['attributes']&&_0x47369b['attributes']['@external']),this['data']=null,this['_model']=_0x3351c0,this['_onAccept']=_0x47369b['onAccept'],this['_onDiscard']=_0x47369b['onDiscard'],this['_onAttributesChange']=_0x47369b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x47369b['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 _0x34d46d=this;for(;_0x34d46d['previous'];)_0x34d46d=_0x34d46d['previous'];return _0x34d46d;}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'](_0xdd7459){this['_markerNames']['add'](_0xdd7459);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x26e721=>this['_model']['markers']['get'](_0x26e721))['filter'](_0xeb816c=>_0xeb816c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x7d32ff=>{for(const _0x51a114 of this['getMarkers']())_0x7d32ff['removeMarker'](_0x51a114);}),this['_markerNames']['clear']();}['removeMarker'](_0x59ff35){this['_model']['change'](_0x34a382=>{_0x34a382['removeMarker'](_0x59ff35);}),this['_markerNames']['delete'](_0x59ff35);}['addRange'](_0x3dafa3){const _0x123cc1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x123cc1),this['_model']['change'](_0x4b15f3=>{_0x4b15f3['addMarker'](_0x123cc1,{'range':_0x3dafa3,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3dc9b1){for(const _0xc130ac of this['getRanges']())if(_0xc130ac['isIntersecting'](_0x3dc9b1))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x45bdac=>_0x45bdac['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x22407c,_0x50305c)=>[..._0x22407c,..._0x50305c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5f5aeb=this['getRanges']();if(0x1!=_0x5f5aeb['length'])return null;const _0x4ca366=_0x5f5aeb[0x0],_0x1af9e6=_0x4ca366['start']['nodeAfter'],_0x17d24a=_0x4ca366['end']['nodeBefore'];return _0x1af9e6 instanceof _0x45e89c?_0x1af9e6!=_0x17d24a?null:_0x1af9e6: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 _0x3051da=[];let _0x55add0=this['head'];for(;_0x55add0;)_0x3051da['push'](_0x55add0),_0x55add0=_0x55add0['next'];return _0x3051da;}['setAttribute'](_0x53410e,_0x3cc0f1){const _0x5f5363=_0x7afb09(this['attributes']);_0x12cea6(_0x5f5363,_0x53410e,_0x3cc0f1),_0x2dfd37(_0x5f5363,this['attributes'])||(this['attributes']=_0x5f5363,this['_onAttributesChange'](_0x5f5363));}['removeAttribute'](_0x5072d1){const _0x4dfad0=_0x7afb09(this['attributes']);_0x2162a7(_0x4dfad0,_0x5072d1),_0x2dfd37(_0x4dfad0,this['attributes'])||(this['attributes']=_0x4dfad0,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 _0x2325fc()['substr'](0x1,0x5);}}function o(_0x125030,_0x8bc0d,_0x398644){const _0x4be6a5=_0x125030['t'],t=_0x125030['t'];switch(_0x8bc0d){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',_0x398644);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x398644);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x398644);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x398644);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x398644);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',_0x398644);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x398644);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',_0x398644);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x398644);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x398644);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x398644);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x398644);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x398644);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x398644);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x398644);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x398644);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x398644);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x398644);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x398644);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x398644);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x398644);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x398644);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x398644);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'},_0x398644);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x398644);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x398644);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x398644);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x398644);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x398644);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'},_0x398644);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x398644);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x398644);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x398644);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x398644);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'},_0x398644);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x398644);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'},_0x398644);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'},_0x398644);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x398644);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'},_0x398644);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x398644);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'},_0x398644);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x398644);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x398644);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'},_0x398644);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 _0x4be6a5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x398644);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4be6a5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x398644);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x398644);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'},_0x398644);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'},_0x398644);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'},_0x398644);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x8bc0d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x747288,_0x3b29e4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x747288,this['_locale']=_0x3b29e4;}['getDescriptions'](_0x519fee){const _0x1617fe=[],_0x2434cc=new Set(),_0x3011c4=new Set();for(let _0x437d2d=0x0;_0x437d2d<_0x519fee['length'];_0x437d2d++){const _0x2ef7ea=_0x519fee[_0x437d2d];if(!_0x2ef7ea['isInContent'])continue;const _0xfb5c28=this['_handleCustomCallbackDescription'](_0x2ef7ea);if(_0xfb5c28){if(null!=_0x2ef7ea['subType']){if(_0x2434cc['has'](_0x2ef7ea['subType']))continue;_0x2434cc['add'](_0x2ef7ea['subType']);}_0x1617fe['push'](_0xfb5c28);}else{if('attribute'!=_0x2ef7ea['type'])'insertion'!=_0x2ef7ea['type']&&'deletion'!=_0x2ef7ea['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1617fe,_0x2ef7ea,_0x519fee[_0x437d2d+0x1]);else{const _0x196fd5=_0x2ef7ea['data']['key'];if(_0x3011c4['has'](_0x196fd5))continue;_0x3011c4['add'](_0x2ef7ea['data']['key']),_0x196fd5==m?this['_handleRenameSuggestionDescription'](_0x1617fe,_0x2ef7ea):this['_handleAttributeSuggestionDescription'](_0x1617fe,_0x2ef7ea);}}}return this['_resolveDescriptionItems'](_0x1617fe);}['registerDescriptionCallback'](_0x5b87a1){this['_customCallbacks']['push'](_0x5b87a1);}['registerElementLabel'](_0x4fa497,_0x16e1d9,_0x3e4fc1=_0x15aa47['normal']){'function'==typeof _0x4fa497?_0x4ebb7d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4fa497,'label':_0x16e1d9,'priority':_0x3e4fc1}):this['_itemLabels']['set'](_0x4fa497,_0x16e1d9);}['registerAttributeLabel'](_0x166ede,_0x4206b2){this['_attributeLabels']['set'](_0x166ede,_0x4206b2);}['getItemLabel'](_0x4c17f9,_0x4405b2=0x1){let _0x57231d;for(const _0x504e4e of this['_itemLabelsCallbacks'])if(_0x504e4e['matchingCallback'](_0x4c17f9)){_0x57231d=_0x504e4e['label'];break;}return _0x57231d||(_0x57231d=this['_itemLabels']['get'](_0x4c17f9['name'])),_0x57231d?_0x57231d(_0x4405b2):0x1!==_0x4405b2?_0x4405b2+'\x20'+_0x4c17f9['name']+'s':''+_0x4c17f9['name'];}['_addDescriptionItems'](_0x255840,_0x2eb13b){const _0x3d61b0=_0x2eb13b['getFirstRange']()['getWalker'](),_0x2e2c4d='insertion'==_0x2eb13b['type']?'add':'remove';for(const _0x2ec5c9 of _0x3d61b0){const _0x5d47a9=_0x2ec5c9['item'],_0x6cdfda=_0x255840[_0x255840['length']-0x1];if(_0x5d47a9['is']('$textProxy'))_0x6cdfda&&_0x6cdfda['type']['indexOf']('Container')>-0x1&&_0x255840['pop'](),_0x6cdfda&&'text'==_0x6cdfda['type']?_0x6cdfda[_0x2e2c4d]+=_0x5d47a9['data']:_0x255840['push']({'type':'text','add':'add'==_0x2e2c4d?_0x5d47a9['data']:'','remove':'remove'==_0x2e2c4d?_0x5d47a9['data']:''});else{if(this['_schema']['isObject'](_0x5d47a9)){const _0x461fa8=_0x5d47a9;if(_0x6cdfda&&_0x6cdfda['type']['indexOf']('Container')>-0x1&&_0x255840['pop'](),'elementEnd'==_0x2ec5c9['type'])continue;_0x6cdfda&&_0x6cdfda['type']==_0x2e2c4d+'Object'&&_0x6cdfda['element']['name']==_0x461fa8['name']?_0x6cdfda['quantity']++:_0x255840['push']({'type':_0x2e2c4d+'Object','element':_0x461fa8,'quantity':0x1}),_0x3d61b0['skip'](_0x26d18e=>!('elementEnd'==_0x26d18e['type']&&_0x26d18e['item']==_0x5d47a9));}else{if(this['_schema']['checkChild'](_0x5d47a9,'$text')||_0x5d47a9['is']('element','softBreak')){const _0x38f00e=_0x5d47a9;if('add'==_0x2e2c4d&&'elementStart'==_0x2ec5c9['type']||'remove'==_0x2e2c4d&&'elementEnd'==_0x2ec5c9['type'])continue;if(_0x6cdfda&&-0x1==_0x6cdfda['type']['indexOf']('Container')){'text'==_0x6cdfda['type']&&(_0x6cdfda[_0x2e2c4d]+='\x0a');continue;}let _0x26b51a;if(_0x26b51a='add'==_0x2e2c4d?_0x38f00e['nextSibling']&&!this['_schema']['isObject'](_0x38f00e['nextSibling'])?_0x38f00e['nextSibling']:null:_0x38f00e['previousSibling']&&!this['_schema']['isObject'](_0x38f00e['previousSibling'])?_0x38f00e['previousSibling']:null,_0x38f00e['isEmpty']||_0x26b51a&&_0x26b51a['isEmpty']){const _0x1c586d=_0x26b51a&&_0x26b51a['isEmpty']?_0x26b51a:_0x38f00e;_0x6cdfda&&_0x6cdfda['type']==_0x2e2c4d+'EmptyContainer'&&_0x6cdfda['element']['name']==_0x1c586d['name']?_0x6cdfda['quantity']++:_0x255840['push']({'type':_0x2e2c4d+'EmptyContainer','element':_0x1c586d,'quantity':0x1});}else _0x255840['push']({'type':_0x2e2c4d+'Container','element':_0x38f00e});}}}}}['_resolveDescriptionItems'](_0x4c5195){const _0x467d70=this['_locale'],_0xa829ab=[],_0x29db3b=[],_0x409e19=[];for(const _0x5b7520 of _0x4c5195)switch(_0x5b7520['type']){case'text':if(_0x5b7520['add']=_0x5b7520['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5b7520['remove']=_0x5b7520['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5b7520['add']&&''!=_0x5b7520['remove']){_0xa829ab['push']({'type':'replace','content':o(_0x467d70,'REPLACE_TEXT',['\x22'+_0x5b7520['remove']+'\x22','\x22'+_0x5b7520['add']+'\x22'])});continue;}if(null!=_0x5b7520['add']['match'](/^ +$/)){_0xa829ab['push']({'type':'insertion','content':o(_0x467d70,'*Insert:*\x20%0',o(_0x467d70,'ELEMENT_SPACE',_0x5b7520['add']['length']))});continue;}if(null!=_0x5b7520['remove']['match'](/^ +$/)){_0xa829ab['push']({'type':'deletion','content':o(_0x467d70,'*Remove:*\x20%0',o(_0x467d70,'ELEMENT_SPACE',_0x5b7520['remove']['length']))});continue;}if(''!=_0x5b7520['add']){_0xa829ab['push']({'type':'insertion','content':o(_0x467d70,'*Insert:*\x20%0','\x22'+_0x5b7520['add']+'\x22')});continue;}_0xa829ab['push']({'type':'deletion','content':o(_0x467d70,'*Remove:*\x20%0','\x22'+_0x5b7520['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xa829ab['push']({'type':'insertion','content':o(_0x467d70,'*Insert:*\x20%0',this['getItemLabel'](_0x5b7520['element'],_0x5b7520['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xa829ab['push']({'type':'deletion','content':o(_0x467d70,'*Remove:*\x20%0',this['getItemLabel'](_0x5b7520['element'],_0x5b7520['quantity']))});continue;case'addContainer':_0xa829ab['push']({'type':'insertion','content':o(_0x467d70,'*Split:*\x20%0',this['getItemLabel'](_0x5b7520['element'],_0x5b7520['quantity']))});continue;case'removeContainer':_0xa829ab['push']({'type':'deletion','content':o(_0x467d70,'*Merge:*\x20%0',this['getItemLabel'](_0x5b7520['element'],_0x5b7520['quantity']))});continue;case'addFormat':_0x29db3b['push'](_0x5b7520['key']);continue;case'removeFormat':_0x409e19['push'](_0x5b7520['key']);continue;default:_0xa829ab['push'](_0x5b7520);}if(_0x29db3b['length']){const _0x373a4b=_0x29db3b['map'](_0x27f752=>this['_attributeLabels']['has'](_0x27f752)?this['_attributeLabels']['get'](_0x27f752):_0x27f752)['join'](',\x20');_0xa829ab['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x373a4b)});}if(_0x409e19['length']){const _0x50b731=_0x409e19['map'](_0x56d3a5=>this['_attributeLabels']['has'](_0x56d3a5)?this['_attributeLabels']['get'](_0x56d3a5):_0x56d3a5)['join'](',\x20');_0xa829ab['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x50b731)});}return _0xa829ab;}['_handleCustomCallbackDescription'](_0x43b0cc){for(const _0x2c8b97 of this['_customCallbacks']){const _0x397a78=_0x2c8b97(_0x43b0cc);if(_0x397a78&&'type'in _0x397a78)return _0x397a78;}}['_handleAttributeSuggestionDescription'](_0x24628b,_0x1aa30d){const _0xf68399=_0x1aa30d['data'],_0x194b8e=void 0x0===_0xf68399['newValue']?'removeFormat':'addFormat';_0x24628b['push']({'type':_0x194b8e,'key':_0xf68399['key']});}['_handleRenameSuggestionDescription'](_0x3f419b,_0x490d9a){_0x3f419b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x490d9a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1e841a,_0x53c0c0,_0x187732){if(this['_addDescriptionItems'](_0x1e841a,_0x53c0c0),_0x187732&&_0x187732['getFirstRange']()&&!_0x53c0c0['getFirstRange']()['end']['isEqual'](_0x187732['getFirstRange']()['start'])){const _0x1247c5=_0x1e841a[_0x1e841a['length']-0x1],_0x10cef9='insertion'==_0x53c0c0['type']?'add':'remove';_0x1247c5&&'text'==_0x1247c5['type']&&(_0x1247c5[_0x10cef9]+='\x0a');}}}class V extends _0x535ab4{['afterInit'](){const _0x23b14f=this['editor'],_0x14efd0=_0x23b14f['plugins']['get']('TrackChangesEditing');_0x23b14f['commands']['get']('showAIAssistant')&&_0x14efd0['enableCommand']('showAIAssistant');}}class U extends _0x535ab4{['afterInit'](){const _0x59e893=this['editor'],_0x4848a8=_0x59e893['locale'];if(!_0x59e893['plugins']['has']('AlignmentEditing'))return;const _0x5b417e=_0x59e893['plugins']['get']('TrackChangesEditing');_0x5b417e['enableDefaultAttributesIntegration']('alignment'),_0x5b417e['registerBlockAttribute']('alignment'),_0x5b417e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4848a8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x175d4f=this['editor'],_0x1f675c=_0x175d4f['locale'];_0x175d4f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x370ede=>{if('formatBlock'!=_0x370ede['type'])return;const {data:_0xda0ebc}=_0x370ede;if(_0xda0ebc&&'alignment'==_0xda0ebc['commandName']){const _0x235a22=_0xda0ebc['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1f675c,'*Format:*\x20%0',function(_0x228eec){switch(_0x228eec){case'left':return o(_0x1f675c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1f675c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1f675c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1f675c,'FORMAT_JUSTIFY_TEXT');}}(_0x235a22))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x535ab4{['afterInit'](){const _0x3d7f13=this['editor'],_0x2887e6=_0x3d7f13['plugins']['get']('TrackChangesEditing'),_0x277218=_0x3d7f13['locale'];for(const _0xcb9bdc of ti){if(!_0x3d7f13['plugins']['has'](_0xcb9bdc))continue;const _0x7fc618=_0xcb9bdc['slice'](0x0,-0x7)['toLowerCase'](),_0xd33641='FORMAT_'+_0x7fc618['toUpperCase']();_0x2887e6['enableDefaultAttributesIntegration'](_0x7fc618),_0x2887e6['registerInlineAttribute'](_0x7fc618),_0x2887e6['descriptionFactory']['registerAttributeLabel'](_0x7fc618,o(_0x277218,_0xd33641));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c08e3=this['editor'],_0x4ddce2=_0x3c08e3['locale'],_0x1dd138=_0x3c08e3['plugins']['get']('TrackChangesEditing');function _0x351e64(_0x5cfcbf,_0x1c418d){_0x1dd138['descriptionFactory']['registerDescriptionCallback'](_0x1a28ed=>{if('formatInline'!=_0x1a28ed['type'])return;const {data:_0x4fd20b}=_0x1a28ed;return _0x4fd20b&&_0x4fd20b['commandName']===_0x5cfcbf?_0x4fd20b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ddce2,'*Format:*\x20%0',_0x1c418d)}:{'type':'format','content':o(_0x4ddce2,'*Remove\x20format:*\x20%0',_0x1c418d)}:void 0x0;});}_0x351e64('bold',o(_0x4ddce2,'FORMAT_BOLD')),_0x351e64('italic',o(_0x4ddce2,'FORMAT_ITALIC')),_0x351e64('underline',o(_0x4ddce2,'FORMAT_UNDERLINE')),_0x351e64('code',o(_0x4ddce2,'FORMAT_CODE')),_0x351e64('strikethrough',o(_0x4ddce2,'FORMAT_STRIKETHROUGH')),_0x351e64('subscript',o(_0x4ddce2,'FORMAT_SUBSCRIPT')),_0x351e64('superscript',o(_0x4ddce2,'FORMAT_SUPERSCRIPT'));}}class F extends _0x535ab4{['afterInit'](){const _0x513f81=this['editor'],_0x5683bf=_0x513f81['locale'];if(!_0x513f81['plugins']['has']('BlockQuoteEditing'))return;const _0x16ef75=_0x513f81['plugins']['get']('TrackChangesEditing'),_0x5a13cd=this['editor']['commands']['get']('blockQuote');_0x16ef75['enableCommand']('blockQuote',(_0x3ad185,_0x2b4ba3={})=>{const _0x27e28f=this['editor']['model']['document']['selection'],_0x1f3c50=_0x2b4ba3&&void 0x0!==_0x2b4ba3['forceValue']?_0x2b4ba3['forceValue']:!_0x5a13cd['value'];let _0x477bd3=[];if(_0x1f3c50){const _0x17ab38=Array['from'](_0x27e28f['getSelectedBlocks']())['filter'](_0x2b6742=>oo(_0x2b6742)||function(_0x4378c9,_0x16a6dc){const _0x1a2c4b=_0x16a6dc['checkChild'](_0x4378c9['parent'],'blockQuote'),_0x3772c4=_0x16a6dc['checkChild'](['$root','blockQuote'],_0x4378c9);return _0x1a2c4b&&_0x3772c4;}(_0x2b6742,this['editor']['model']['schema']));_0x477bd3=to(_0x17ab38,_0x513f81['model']);}else{const _0x588905=Array['from'](_0x27e28f['getSelectedBlocks']())['filter'](_0x55bbe1=>oo(_0x55bbe1));_0x477bd3=to(_0x588905,_0x513f81['model']);}_0x513f81['model']['change'](()=>{for(const _0x2fb42a of _0x477bd3)_0x16ef75['markBlockFormat'](_0x2fb42a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1f3c50}]});});}),_0x16ef75['descriptionFactory']['registerDescriptionCallback'](_0x4f078d=>{const {data:_0x46312}=_0x4f078d;if(_0x46312&&'blockQuote'==_0x46312['commandName']){const _0xc5e7d1=o(_0x5683bf,'ELEMENT_BLOCK_QUOTE');return _0x46312['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5683bf,'*Set\x20format:*\x20%0',_0xc5e7d1)}:{'type':'format','content':o(_0x5683bf,'*Remove\x20format:*\x20%0',_0xc5e7d1)};}});}}function oo(_0x30b14f){return'blockQuote'==_0x30b14f['parent']['name'];}class L extends _0x535ab4{['afterInit'](){const _0x1124d0=this['editor'];_0x1124d0['plugins']['has']('CaseChange')&&(_0x1124d0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1124d0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1124d0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x535ab4{['afterInit'](){const _0x5ceda7=this['editor'];_0x5ceda7['commands']['get']('ckbox')&&_0x5ceda7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x535ab4{['afterInit'](){const _0x5e4d67=this['editor'];if(!_0x5e4d67['plugins']['has']('CodeBlock'))return;const _0x15ed19=_0x5e4d67['plugins']['get']('TrackChangesEditing'),_0x209386=_0x5e4d67['locale'],_0x45425d=_0x5e4d67['config']['get']('codeBlock')['languages'],_0x1fe4cd=_0x5e4d67['commands']['get']('codeBlock');_0x15ed19['enableCommand']('indentCodeBlock'),_0x15ed19['enableCommand']('outdentCodeBlock'),_0x15ed19['enableCommand']('codeBlock',(_0xe7282b,_0x1a417b={})=>{const _0x27cf16=_0x5e4d67['model'],_0x390ae3=_0x5e4d67['model']['document']['selection'],_0x3115dc=_0x1a417b&&void 0x0!==_0x1a417b['forceValue']?_0x1a417b['forceValue']:!_0x1fe4cd['value'];let _0x35134d;_0x1a417b['language']||(_0x1a417b['language']=_0x45425d[0x0]['language']),_0x35134d=_0x3115dc?Array['from'](_0x390ae3['getSelectedBlocks']())['filter'](_0x225d91=>eo(_0x225d91)||function(_0x2677ee,_0x1894e0){if(_0x2677ee['is']('rootElement')||_0x1894e0['isLimit'](_0x2677ee))return!0x1;return _0x1894e0['checkChild'](_0x2677ee['parent'],'codeBlock');}(_0x225d91,_0x27cf16['schema'])):Array['from'](_0x390ae3['getSelectedBlocks']())['filter'](_0x4247bf=>eo(_0x4247bf));const _0x503bf2=to(_0x35134d,_0x27cf16);_0x27cf16['change'](()=>{for(const _0x2c0b33 of _0x503bf2)_0x15ed19['markBlockFormat'](_0x2c0b33,{'commandName':'codeBlock','commandParams':[{..._0x1a417b,'forceValue':_0x3115dc}],'formatGroupId':'blockName'});});}),(_0x15ed19['descriptionFactory']['registerElementLabel']('codeBlock',_0x2f4887=>o(_0x209386,'ELEMENT_CODE_BLOCK',_0x2f4887)),_0x15ed19['descriptionFactory']['registerDescriptionCallback'](_0x413037=>{if('formatBlock'!=_0x413037['type'])return;const _0x2ded91=_0x209386['t'],{data:_0x5754c2}=_0x413037;if(!_0x5754c2||'codeBlock'!=_0x5754c2['commandName'])return;const _0x245bfa=_0x5754c2['commandParams'][0x0]['language'],_0x27c111=_0x2ded91(_0x45425d['find'](_0x18999c=>_0x18999c['language']===_0x245bfa)['label'])['toLowerCase']();return _0x5754c2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x209386,'*Set\x20format:*\x20%0',o(_0x209386,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x27c111+')')}:{'type':'format','content':o(_0x209386,'*Remove\x20format:*\x20%0',o(_0x209386,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x51c674){return'codeBlock'==_0x51c674['name'];}class q extends _0x535ab4{['afterInit'](){const _0xb558dc=this['editor'];if(!_0xb558dc['plugins']['has']('CommentsEditing'))return;_0xb558dc['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x45325a,_0x1e8552,_0x519210){const _0x49d5e1=[];for(const _0x28443d of _0x1e8552['getItems']())_0x28443d['hasAttribute'](_0x45325a)&&_0x49d5e1['push'](_0x519210['createRangeOn'](_0x28443d));return _0x49d5e1;}function _e(_0x4c81dd,_0xbae0e0,{showActiveMarker:_0x1709b3=!0x0}={}){const _0x796f72=_0x4c81dd['plugins']['get']('TrackChangesEditing');return(_0x1e93b2,_0x5423dd,_0x54dcf5)=>{if(!_0x54dcf5['consumable']['test'](_0x5423dd['markerRange'],_0x1e93b2['name']))return;const _0x35d0cf=_0x5423dd['markerRange']['getWalker'](),_0x413a3a=_0x5423dd['markerRange']['start'],_0x33c4c7=_0x4c81dd['model']['schema'];let _0x48fcc1=null,_0xb3e971=null,_0x285e72=!0x1,_0xefacd=!0x1;for(const _0xdb542f of _0x35d0cf){const _0x5dd9eb=_0xdb542f['item'];_0x285e72=_0x285e72||_0x33c4c7['isContent'](_0x5dd9eb);const _0x587b2b=_0x54dcf5['mapper']['toViewElement'](_0x5dd9eb);if(_0x587b2b&&_0x587b2b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xdb542f['type']&&(_0x33c4c7['isBlock'](_0x5dd9eb)&&!_0x33c4c7['isLimit'](_0x5dd9eb)&&(_0x5dd9eb['nextSibling']||_0x413a3a['isAtEnd']?_0x48fcc1&&_0x48fcc1['parent']==_0x5dd9eb||(_0x48fcc1=_0x5dd9eb,_0x182b58(_0xdb542f['previousPosition']),_0xefacd=!0x0):_0xb3e971=_0xb3e971||_0xdb542f['previousPosition']));}function _0x182b58(_0x375f49){const {authorId:_0x24a6cd}=_0x796f72['_splitMarkerName'](_0x5423dd['markerName']),_0x51acca=_0x54dcf5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xbae0e0,'data-author-id':_0x24a6cd}),_0x164dcc=_0x54dcf5['mapper']['toViewPosition'](_0x375f49);_0x1709b3&&_0x796f72['activeMarkers']['includes'](_0x5423dd['markerName'])&&_0x54dcf5['writer']['addClass']('ck-suggestion-marker--active',_0x51acca),_0x54dcf5['writer']['insert'](_0x164dcc,_0x51acca),_0x54dcf5['mapper']['bindElementToMarker'](_0x51acca,_0x5423dd['markerName']);}_0x285e72||_0xefacd||!_0xb3e971||_0x182b58(_0xb3e971);};}class z extends _0x535ab4{static get['requires'](){return[_0x8a5805];}['init'](){const _0x18f49e=this['editor'],_0x4eb974=_0x18f49e['plugins']['get']('TrackChangesEditing');_0x4eb974['enableCommand']('delete');const _0x3cbba2=_0x18f49e['commands']['get']('deleteForward');_0x4eb974['enableCommand']('deleteForward',(_0x2202a3,_0x117306={})=>{const _0x11b107=_0x18f49e['model']['createSelection'](_0x18f49e['model']['document']['selection']);_0x11b107['isCollapsed']&&_0x18f49e['model']['modifySelection'](_0x11b107,{'direction':'forward','unit':_0x117306['unit']});const _0x1c8af7=_0x11b107['getFirstRange'](),_0xf0555=_0x146d11['fromRange'](_0x1c8af7);let _0xa72744;_0x2202a3(_0x117306),_0xa72744='$graveyard'==_0xf0555['root']['rootName']?_0x18f49e['model']['createRange'](_0x1c8af7['start']):_0x18f49e['model']['createRange'](_0xf0555['start'],_0xf0555['end']),_0xf0555['detach'](),_0x18f49e['model']['enqueueChange'](_0x3cbba2['buffer']['batch'],_0x200616=>{_0x3cbba2['buffer']['lock'](),_0x200616['setSelection'](_0x200616['createRange'](_0xa72744['end'])),_0x3cbba2['buffer']['unlock']();});}),_0x18f49e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x18f49e,'merge'),{'priority':'high'}),_0x18f49e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x23d9ee,_0x4bfedd,_0x41ea44)=>{_0x41ea44['options']['showSuggestionHighlights']&&_e(_0x18f49e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x23d9ee,_0x4bfedd,_0x41ea44);},{'priority':'high'}),_0x18f49e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x145d29,_0x529502,_0x4ec376)=>{const _0x532a50=_0x4ec376['mapper']['markerNameToElements'](_0x529502['markerName']);if(_0x532a50){for(const _0x31c61f of _0x532a50)_0x31c61f['is']('uiElement')&&(_0x4ec376['mapper']['unbindElementFromMarkerName'](_0x31c61f,_0x529502['markerName']),_0x4ec376['writer']['remove'](_0x31c61f));}},{'priority':'high'});}}class K extends _0x535ab4{['afterInit'](){const _0x2812af=this['editor'];if(!_0x2812af['plugins']['has']('ListEditing'))return;const _0x1156a4=_0x2812af['locale'],_0x39b2fc=_0x2812af['plugins']['get']('TrackChangesEditing'),_0x191a0b=_0x2812af['plugins']['has']('TodoListEditing'),_0x1f9789=!!_0x2812af['config']['get']('list.multiBlock');function _0x7a5252(_0x181ac8){return{'type':'format','content':''+o(_0x1156a4,'*Set\x20format:*\x20%0',_0x181ac8)};}function _0x6098a1(_0x419dd0){return{'type':'format','content':''+o(_0x1156a4,'*Remove\x20format:*\x20%0',_0x419dd0)};}_0x39b2fc['enableDefaultAttributesIntegration']('numberedList'),_0x39b2fc['enableDefaultAttributesIntegration']('bulletedList'),_0x39b2fc['enableDefaultAttributesIntegration']('customNumberedList'),_0x39b2fc['enableDefaultAttributesIntegration']('customBulletedList'),_0x39b2fc['enableDefaultAttributesIntegration']('indentList'),_0x39b2fc['enableDefaultAttributesIntegration']('outdentList'),_0x39b2fc['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x39b2fc['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x39b2fc['registerBlockAttribute']('listItemId'),_0x39b2fc['registerBlockAttribute']('listType'),_0x39b2fc['registerBlockAttribute']('listIndent'),_0x1f9789&&(_0x39b2fc['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x39b2fc['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x191a0b&&(_0x39b2fc['enableDefaultAttributesIntegration']('todoList'),_0x39b2fc['enableDefaultAttributesIntegration']('checkTodoList'),_0x39b2fc['registerBlockAttribute']('todoListChecked'),_0x39b2fc['descriptionFactory']['registerDescriptionCallback'](_0x5ed546=>{const {data:_0x42024b}=_0x5ed546;if(_0x42024b&&'todoListChecked'==_0x42024b['key'])return{'type':'format','content':_0x42024b['newValue']?o(_0x1156a4,'*Check\x20item*'):o(_0x1156a4,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xa5f757=>{if(_0xa5f757['batch']['isUndo'])return!0x1;let _0x55de55=!0x1;const _0x441b3e=_0x39b2fc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fabe2=>'todoListChecked'===_0x39b2fc['_getAttributeKey'](_0x1fabe2));for(const _0x51a178 of _0x441b3e){'todo'!=_0x51a178['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x39b2fc['_findSuggestions'](_0x51a178['getFirstRange'](),'attribute')['find'](_0x6b3eea=>'listType'===_0x39b2fc['_getAttributeKey'](_0x6b3eea['suggestion']))||(_0xa5f757['removeMarker'](_0x51a178['getFirstMarker']()),_0x55de55=!0x0));}return _0x55de55;})),_0x39b2fc['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1156a4,'FORMAT_INDENT'));const _0x3404b1={'type':'format','content':''};_0x39b2fc['descriptionFactory']['registerDescriptionCallback'](_0x1f877a=>{const {data:_0x3b25fb}=_0x1f877a;if(!_0x3b25fb||'listType'!=_0x3b25fb['key'])return;let _0x56f4eb=_0x1f877a['head'];for(;_0x56f4eb;){if(_0x56f4eb['data']&&(('listStyle'==_0x56f4eb['data']['key']||'listMarkerStyle'==_0x56f4eb['data']['key'])&&(_0x56f4eb['data']['newValue']&&'default'!=_0x56f4eb['data']['newValue']||'default'!=_0x56f4eb['data']['oldValue']&&!_0x3b25fb['newValue'])||!_0x1f9789&&_0x56f4eb['data']['key']==m))return _0x3404b1;_0x56f4eb=_0x56f4eb['next'];}if(null==_0x3b25fb['newValue'])switch(_0x3b25fb['oldValue']){case'bulleted':return _0x6098a1(o(_0x1156a4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x6098a1(o(_0x1156a4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x6098a1(o(_0x1156a4,'ELEMENT_TODO_LIST'));}switch(_0x3b25fb['newValue']){case'bulleted':return _0x7a5252(o(_0x1156a4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x7a5252(o(_0x1156a4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x7a5252(o(_0x1156a4,'ELEMENT_TODO_LIST'));}}),_0x39b2fc['descriptionFactory']['registerDescriptionCallback'](_0x1b83cd=>{const {data:_0xf205b6}=_0x1b83cd;if(_0xf205b6&&'listIndent'==_0xf205b6['key'])return null==_0xf205b6['newValue']||null==_0xf205b6['oldValue']&&0x0==_0xf205b6['newValue']?_0x3404b1:void 0x0;}),_0x39b2fc['descriptionFactory']['registerDescriptionCallback'](_0x4b0185=>{if('attribute'!=_0x4b0185['type'])return;const {data:_0x2e5595}=_0x4b0185;if(!_0x2e5595||'listItemId'!=_0x2e5595['key'])return;const _0x5c144a=Ee(_0x4b0185);return'newValue'==_0x5c144a?{'type':'format','content':o(_0x1156a4,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5c144a?{'type':'format','content':o(_0x1156a4,'*Split:*\x20list\x20item')}:_0x3404b1;}),_0x2812af['model']['document']['registerPostFixer'](_0x1df127=>this['listItemIdFixer'](_0x1df127)),_0x2812af['model']['document']['registerPostFixer'](_0x5e4880=>this['noTrackChangesFixer'](_0x5e4880)),_0x2812af['model']['document']['on']('change:data',(_0x255182,_0x1c3048)=>{if(_0x1c3048['isUndo']||!_0x1c3048['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2a8225){if(_0x2a8225['batch']['isUndo']||!_0x2a8225['batch']['isLocal'])return!0x1;let _0x5b5bae=!0x1;const _0x272771=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44efeb=>_0x44efeb['data']&&'listItemId'==_0x44efeb['data']['key'])['filter'](_0x114ca7=>_0x114ca7['data']['newValue']&&_0x114ca7['data']['oldValue']);for(const _0x1eabf7 of _0x272771)Ee(_0x1eabf7)||(_0x2a8225['removeMarker'](_0x1eabf7['getFirstMarker']()),_0x5b5bae=!0x0);return _0x5b5bae;}['noTrackChangesFixer'](_0x34e0a9){if(_0x34e0a9['batch']['isUndo']||!_0x34e0a9['batch']['isLocal'])return!0x1;const _0x555e55=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x555e55['trackChangesCommand']['value'])return!0x1;let _0x2b6ded=!0x1;const _0x16a343=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5befaf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x44bd72=>'attribute'==_0x44bd72['type'])['filter'](_0x421bb5=>_0x16a343['includes'](_0x421bb5['attributeKey']));if(0x0==_0x5befaf['length'])return _0x2b6ded;for(const _0x2378ef of _0x5befaf){const _0x24cb73=_0x555e55['_findSuggestions'](_0x2378ef['range'],'attribute')['filter'](_0x362d25=>!_0x362d25['meta']['isNextTo'])['map'](_0x12c40c=>_0x12c40c['suggestion'])['filter'](_0x131dbc=>{const _0x510fae=_0x555e55['_getAttributeKey'](_0x131dbc);return _0x16a343['includes'](_0x510fae);});if(_0x24cb73['length']){for(const _0x31e701 of _0x24cb73)_0x34e0a9['removeMarker'](_0x31e701['getFirstMarker']());_0x2b6ded=!0x0;}}return _0x2b6ded;}['assureChains'](){const _0x42930c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d515b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4fdd95;const _0x2db8c3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2c152f=>{if(_0x2c152f['data']['oldRange']||!_0x2c152f['data']['newRange'])return null;if(!_0x2c152f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1e9d72}=_0x42930c['_splitMarkerName'](_0x2c152f['name']);if(!_0x42930c['hasSuggestion'](_0x1e9d72))return null;const _0x2d7e32=_0x42930c['getSuggestion'](_0x1e9d72);return _0x4d515b['includes'](_0x2d7e32['data']['key']);})['map'](_0x1b81aa=>{const {id:_0x11a29d}=_0x42930c['_splitMarkerName'](_0x1b81aa['name']),_0x4cfe00=_0x42930c['getSuggestion'](_0x11a29d);return _0x4fdd95=_0x4cfe00['attributes']['groupId'],_0x4cfe00['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2db8c3['size'])return;const _0x116b4e=_0x42930c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dc538=>'attribute'==_0x5dc538['type']&&_0x5dc538['data']&&_0x4d515b['includes'](_0x5dc538['data']['key'])&&_0x5dc538['attributes']['groupId']!=_0x4fdd95)['map'](_0x4f14c1=>({'listItem':_0x4f14c1['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4f14c1['attributes']['groupId']})),_0xe013d7=new Set();for(const {groupId:_0x382b9a,listItem:_0x14f739}of _0x116b4e)_0x2db8c3['has'](_0x14f739)&&_0xe013d7['add'](_0x382b9a);for(const _0x5b55ac of _0x42930c['getSuggestions']())_0xe013d7['has'](_0x5b55ac['attributes']['groupId'])&&_0x5b55ac['setAttribute']('groupId',_0x4fdd95);}['_supportLegacySuggestions'](){const _0xe28fca=this['editor'],_0x344821=_0xe28fca['locale'],_0xae3cb3=_0xe28fca['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xae3cb3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x24b70c,_0x1f21ec){const _0x34668=[];for(let _0x2fced2 of _0x24b70c)_0x2fced2['start']['nodeAfter']===_0x2fced2['end']['parent']&&(_0x2fced2=_0xe28fca['model']['createRange'](_0xe28fca['model']['createPositionAt'](_0x2fced2['start']['nodeAfter'],0x0))),_0x34668['push'](_0x2fced2);_0xe28fca['model']['change'](_0x168e75=>{const _0x1afcc3=_0xe28fca['model']['document']['selection'],_0x1c3af3=Array['from'](_0x1afcc3['getRanges']())['map'](_0x365ef6=>_0x146d11['fromRange'](_0x365ef6));_0x168e75['setSelection'](_0x34668),_0xe28fca['commands']['get'](_0x1f21ec['commandName'])['refresh'](),_0x1f21ec['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xe28fca['execute'](_0x1f21ec['commandName'],..._0x1f21ec['commandParams']),_0x168e75['setSelection'](_0x1c3af3);for(const _0x3380ff of _0x1c3af3)_0x3380ff['detach']();});}),_0xae3cb3['descriptionFactory']['registerElementLabel'](function(_0x8303f2){const _0x1c341b=!_0xe28fca['model']['schema']['isObject'](_0x8303f2),_0x10adc8=_0x8303f2['previousSibling'],_0x279067=_0x8303f2['nextSibling'],_0x1ac973=_0x8303f2['getAttribute']('listItemId'),_0x3698ff=!_0x10adc8||_0x10adc8['getAttribute']('listItemId')!==_0x1ac973,_0x480fc0=!_0x279067||_0x279067['getAttribute']('listItemId')!==_0x1ac973;return _0x1c341b&&Boolean(_0x1ac973)&&_0x3698ff&&_0x480fc0;},_0x21d841=>o(_0x344821,'ELEMENT_LIST_ITEM',_0x21d841));}['_registerLegacyDescription'](){const _0x5aea89=this['editor'],_0x4f6f44=_0x5aea89['locale'];function _0x4d1cb3(_0x135b36){const _0x5da5dd=_0x5aea89['commands']['get']('bulletedList')['value'],_0x158dfb=_0x5aea89['commands']['get']('numberedList')['value'];return'numberedList'===_0x135b36?_0x5da5dd:_0x158dfb;}_0x5aea89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1f986d){if('formatBlock'!=_0x1f986d['type'])return;const {data:_0x466dac}=_0x1f986d;if(!_0x466dac)return;let _0x26c4f4,_0x469d70,_0x4995d8,_0x3cb207;switch(_0x466dac['commandName']){case'bulletedList':_0x4995d8=_0x466dac['commandParams'][0x0]['forceValue'],_0x3cb207=_0x4d1cb3(_0x466dac['commandName']),_0x26c4f4=_0x4995d8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3cb207&&_0x5aea89['config']['get']('list.multiBlock')||(_0x26c4f4='*Change\x20to:*\x20%0'),_0x469d70={'type':'format','content':o(_0x4f6f44,_0x26c4f4,o(_0x4f6f44,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4995d8=_0x466dac['commandParams'][0x0]['forceValue'],_0x3cb207=_0x4d1cb3(_0x466dac['commandName']),_0x26c4f4=_0x4995d8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3cb207&&_0x5aea89['config']['get']('list.multiBlock')||(_0x26c4f4='*Change\x20to:*\x20%0'),_0x469d70={'type':'format','content':o(_0x4f6f44,_0x26c4f4,o(_0x4f6f44,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x26c4f4='*Indent:*\x20%0',_0x469d70={'type':'format','content':o(_0x4f6f44,_0x26c4f4,o(_0x4f6f44,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x26c4f4=function(_0x4484b7){const _0x503a63=_0x4484b7['getFirstRange']();let _0x3e6c8d=_0x503a63['start']['nodeAfter'];for(;_0x3e6c8d&&_0x503a63['containsItem'](_0x3e6c8d);){if(_0x3e6c8d['getAttribute']('listIndent')>0x0)return!0x1;_0x3e6c8d=_0x3e6c8d['nextSibling'];}return!0x0;}(_0x1f986d)?o(_0x4f6f44,'*Format:*\x20remove\x20from\x20%0',o(_0x4f6f44,function(_0x1df3b4){return'ELEMENT_'+_0x1df3b4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1f986d))):o(_0x4f6f44,'*Outdent:*\x20%0',o(_0x4f6f44,'ELEMENT_LIST_ITEM')),_0x469d70={'type':'format','content':_0x26c4f4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x466dac['multipleBlocks']&&(_0x26c4f4='*Merge:*\x20%0',_0x469d70={'type':'deletion','content':o(_0x4f6f44,_0x26c4f4,o(_0x4f6f44,'ELEMENT_LIST_ITEM'))});}return _0x469d70;});}}function Ee(_0x17b4db){let _0x3b43e3=_0x17b4db['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3b43e3;){const _0x493041=_0x3b43e3['getAttribute']('listItemId');if(!_0x493041)return!0x1;if(_0x493041==_0x17b4db['data']['newValue'])return'newValue';if(_0x493041==_0x17b4db['data']['oldValue'])return'oldValue';_0x3b43e3=_0x3b43e3['previousSibling'];}return!0x1;}class pe extends _0x535ab4{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x519fd8=this['editor']['config']['get']('list.properties'),_0x2cd22a=this['editor']['plugins']['get']('TrackChangesEditing');_0x519fd8['styles']&&(_0x2cd22a['enableDefaultAttributesIntegration']('listStyle'),_0x2cd22a['registerBlockAttribute']('listStyle')),_0x519fd8['reversed']&&(_0x2cd22a['enableDefaultAttributesIntegration']('listReversed'),_0x2cd22a['registerBlockAttribute']('listReversed')),_0x519fd8['startIndex']&&(_0x2cd22a['enableDefaultAttributesIntegration']('listStart'),_0x2cd22a['registerBlockAttribute']('listStart'));const _0x5f3141={'type':'format','content':''};_0x2cd22a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4241bb=this['editor']['locale'];_0x2cd22a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4241bb,'FORMAT_LIST_REVERSED')),_0x2cd22a['descriptionFactory']['registerDescriptionCallback'](_0x242855=>{const {data:_0xfbd4a5}=_0x242855;if(_0xfbd4a5&&'listReversed'==_0xfbd4a5['key'])return null==_0xfbd4a5['newValue']||0x0==_0xfbd4a5['newValue']&&null==_0xfbd4a5['oldValue']?_0x5f3141:void 0x0;}),_0x2cd22a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4241bb,'FORMAT_LIST_START')),_0x2cd22a['descriptionFactory']['registerDescriptionCallback'](_0x15f8c6=>{const {data:_0x362c57}=_0x15f8c6;if(_0x362c57&&'listStart'==_0x362c57['key'])return null==_0x362c57['newValue']||0x1==_0x362c57['newValue']&&null==_0x362c57['oldValue']?_0x5f3141:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x21b31e=>{if(_0x21b31e['batch']['isUndo'])return!0x1;let _0x568e7e=!0x1;const _0xfc8412=_0x2cd22a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28e845=>{const _0x541ca6=_0x2cd22a['_getAttributeKey'](_0x28e845);return'listStart'==_0x541ca6||'listReversed'==_0x541ca6;});for(const _0x1b7a00 of _0xfc8412){const _0x575705=_0x1b7a00['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x575705||'customNumbered'==_0x575705)continue;_0x2cd22a['_findSuggestions'](_0x1b7a00['getFirstRange'](),'attribute')['find'](_0x32367f=>'listType'==_0x2cd22a['_getAttributeKey'](_0x32367f['suggestion']))||(_0x21b31e['removeMarker'](_0x1b7a00['getFirstMarker']()),_0x568e7e=!0x0);}return _0x568e7e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xbd3e26){const _0x559693=this['editor']['locale'],{data:_0x4d9658}=_0xbd3e26,_0x371bc3={'type':'format','content':''};if(!_0x4d9658||'listStyle'!=_0x4d9658['key'])return;if(!_0x4d9658['oldValue'])return'default'==_0x4d9658['newValue']?_0x371bc3:{'type':'format','content':''+o(_0x559693,'*Set\x20format:*\x20%0',o(_0x559693,this['_getTranslationKeyForListStyle'](_0x4d9658['newValue'])))};if(!_0x4d9658['newValue']){if('default'==_0x4d9658['oldValue'])return _0x371bc3;let _0x4b0239=_0xbd3e26['head'];for(;_0x4b0239;){if(_0x4b0239['data']&&'listType'==_0x4b0239['data']['key']&&_0x4b0239['data']['newValue'])return _0x371bc3;_0x4b0239=_0x4b0239['next'];}return{'type':'format','content':''+o(_0x559693,'*Remove\x20format:*\x20%0',o(_0x559693,this['_getTranslationKeyForListStyle'](_0x4d9658['oldValue'])))};}if('default'!=_0x4d9658['newValue'])return{'type':'format','content':''+o(_0x559693,'*Set\x20format:*\x20%0',o(_0x559693,this['_getTranslationKeyForListStyle'](_0x4d9658['newValue'])))};let _0x2b8630=_0xbd3e26['head'];for(;_0x2b8630;){if(_0x2b8630['data']&&'listType'==_0x2b8630['data']['key']&&_0x2b8630['data']['newValue']&&_0x2b8630['data']['oldValue'])return _0x371bc3;_0x2b8630=_0x2b8630['next'];}return{'type':'format','content':o(_0x559693,'*Set\x20format:*\x20%0',o(_0x559693,'ELEMENT_'+_0xbd3e26['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x47bc73=this['editor'],_0x489423=_0x47bc73['locale'];_0x47bc73['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20714c=>{if('formatBlock'!=_0x20714c['type'])return;const {data:_0x31d866}=_0x20714c;if(!_0x31d866)return;let _0x233330,_0x2d942e;switch(_0x31d866['commandName']){case'listStyle':_0x233330='*Change\x20to:*\x20%0',_0x2d942e={'type':'format','content':o(_0x489423,_0x233330,o(_0x489423,this['_getTranslationKeyForListStyle'](_0x31d866['commandParams'][0x0]['type'])))};break;case'listReversed':_0x233330=_0x31d866['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2d942e={'type':'format','content':o(_0x489423,_0x233330)};break;case'listStart':_0x233330='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2d942e={'type':'format','content':o(_0x489423,_0x233330,_0x31d866['commandParams'][0x0]['startIndex'])};}return _0x2d942e;});}['_getTranslationKeyForListStyle'](_0x27e031){return'ELEMENT_'+function(_0x4c04d8){if(ye['includes'](_0x4c04d8))return'bulleted';if(Se['includes'](_0x4c04d8))return'numbered';return null;}(_0x27e031)['toUpperCase']()+'_LIST_'+_0x27e031['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x535ab4{static get['requires'](){return[_0x47dbd5];}['init'](){const _0x4f11e7=this['editor'],_0x7f312c=_0x4f11e7['plugins']['get']('TrackChangesEditing'),_0x3659ab=_0x4f11e7['commands']['get']('enter');_0x7f312c['enableCommand']('enter',()=>{_0x4f11e7['model']['change'](_0x21bca7=>{const _0x50085a=_0x4f11e7['model']['document']['selection'],_0x4a7c37=_0x50085a['getFirstPosition'](),_0x152e72=_0x146d11['fromRange'](_0x50085a['getFirstRange']());if(_0x3659ab['enterBlock'](_0x21bca7)){const _0x2a4648=_0x4f11e7['model']['createPositionAt'](_0x4a7c37['parent']['nextSibling'],0x0),_0xcb201a=_0x21bca7['createRange'](_0x4a7c37,_0x2a4648);_0x7f312c['markInsertion'](_0xcb201a);}else _0x21bca7['setSelection'](_0x21bca7['createRange'](_0x152e72['end']));_0x152e72['detach'](),_0x3659ab['fire']('afterExecute',{'writer':_0x21bca7});});}),_0x4f11e7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4f11e7,'split'),{'priority':'high'}),_0x4f11e7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x372c2d,_0x465944,_0x336a9b)=>{const _0x47fd36=_0x336a9b['mapper']['markerNameToElements'](_0x465944['markerName']);if(_0x47fd36){for(const _0x333b61 of _0x47fd36)_0x333b61['hasClass']('ck-suggestion-marker-split')&&(_0x336a9b['mapper']['unbindElementFromMarkerName'](_0x333b61,_0x465944['markerName']),_0x336a9b['writer']['remove'](_0x333b61));}},{'priority':'high'}),_0x4f11e7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x46982f,_0x36a04f,_0x2ecfb5)=>{_0x2ecfb5['options']['showSuggestionHighlights']&&_e(_0x4f11e7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x46982f,_0x36a04f,_0x2ecfb5);},{'priority':'high'});}}class X extends _0x535ab4{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x110f95=this['editor']['plugins']['get']('TrackChangesEditing');_0x110f95['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x110f95['enableCommand']('findNext'),_0x110f95['enableCommand']('findPrevious'),_0x110f95['enableCommand']('replace'),_0x110f95['enableCommand']('replaceAll');}['handleFindCommand'](_0x5c05d7,_0x1f804b,_0xfaa364={}){const _0x3d3066=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5c05d7(_0xdebe6a=>{let _0x2ccdf4=('string'==typeof _0x1f804b?_0x3d3066['findByTextCallback'](_0x1f804b,_0xfaa364):_0x1f804b)(_0xdebe6a);Array['isArray'](_0x2ccdf4)&&(_0x2ccdf4={'results':_0x2ccdf4,'searchText':'string'==typeof _0x1f804b?_0x1f804b:''});const _0x570105=_0x2ccdf4['results']['filter'](_0x35e0f7=>!0x1===this['_isInDeletionRange'](_0x35e0f7,_0xdebe6a['item']));return{..._0x2ccdf4,'results':_0x570105};},_0xfaa364);}['_isInDeletionRange'](_0x562cdd,_0x50659d){const _0x4fa560=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x50659d,_0x562cdd['start']),this['editor']['model']['createPositionAt'](_0x50659d,_0x562cdd['end']));for(const _0x7bfd71 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4fa560['getIntersection'](_0x7bfd71['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 _0x535ab4{['afterInit'](){const _0x594c2f=this['editor']['locale'],_0x29ce09=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2d6d9e,commandName:_0x290ee3}of ro)this['editor']['plugins']['has'](_0x2d6d9e)&&(_0x29ce09['enableDefaultAttributesIntegration'](_0x290ee3),_0x29ce09['registerInlineAttribute'](_0x290ee3));_0x29ce09['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x594c2f,'FORMAT_FONT_SIZE')),_0x29ce09['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x594c2f,'FORMAT_FONT_FAMILY')),_0x29ce09['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x594c2f,'FORMAT_FONT_COLOR')),_0x29ce09['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x594c2f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x519e89=this['editor'],_0x120f30=_0x519e89['locale'];_0x519e89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34ef60=>{const _0x540fa0=_0x120f30['t'];if('formatInline'!=_0x34ef60['type'])return;const {data:_0x3a98ee}=_0x34ef60;if(null!=_0x3a98ee){if('fontSize'==_0x3a98ee['commandName']){const _0xcab071=_0x3a98ee['commandParams'][0x0]['value'];if(_0xcab071){const _0x4951a0=_0x540fa0(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x45b866=>_0x45b866['model']==_0xcab071)['title'])['toLowerCase']();return{'type':'format','content':o(_0x120f30,'*Set\x20font\x20size:*\x20%0',_0x4951a0)};}return{'type':'format','content':o(_0x120f30,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3a98ee['commandName']){const _0xaa83ad=_0x3a98ee['commandParams'][0x0]['value'];return _0xaa83ad?{'type':'format','content':o(_0x120f30,'*Set\x20font\x20family:*\x20%0',_0xaa83ad)}:{'type':'format','content':o(_0x120f30,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3a98ee['commandName']){const _0x1f5c93=_0x3a98ee['commandParams'][0x0]['value'];if(_0x1f5c93){const _0x2e7670=_0x116443(this['editor']['config']['get']('fontColor.colors'))['find'](_0x333cc7=>_0x333cc7['model']==_0x1f5c93);let _0x1f5b64=_0x1f5c93,_0x3945e3='';return _0x2e7670&&(_0x1f5b64=_0x2e7670['label'],_0x3945e3=_0x540fa0(_0x1f5b64)['toLowerCase']()),{'type':'format','content':o(_0x120f30,'*Set\x20font\x20color:*\x20%0',_0x3945e3)['trim'](),'color':{'value':_0x1f5c93,'title':_0x3945e3||_0x1f5b64}};}return{'type':'format','content':o(_0x120f30,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3a98ee['commandName']){const _0x1c3970=_0x3a98ee['commandParams'][0x0]['value'];if(_0x1c3970){const _0x1c24a8=_0x116443(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x48b65b=>_0x48b65b['model']==_0x1c3970);let _0x421c21=_0x1c3970,_0x4a6133='';return _0x1c24a8&&(_0x421c21=_0x1c24a8['label'],_0x4a6133=_0x540fa0(_0x421c21)['toLowerCase']()),{'type':'format','content':o(_0x120f30,'*Set\x20font\x20background\x20color:*\x20%0',_0x4a6133)['trim'](),'color':{'value':_0x1c3970,'title':_0x4a6133||_0x421c21}};}return{'type':'format','content':o(_0x120f30,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x535ab4{['afterInit'](){const _0x9b60be=this['editor'],_0x337723=_0x9b60be['plugins']['get']('TrackChangesEditing'),_0x373fe7=_0x9b60be['commands']['get']('copyFormat'),_0x576327=_0x9b60be['commands']['get']('pasteFormat');_0x373fe7&&_0x576327&&(_0x337723['enableDefaultAttributesIntegration']('pasteFormat'),_0x337723['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xb8a7c6=this['editor'],_0x29611f=_0xb8a7c6['locale'];_0xb8a7c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10d8f2=>{if('formatBlock'!=_0x10d8f2['type']&&'formatInline'!=_0x10d8f2['type'])return;const {data:_0x10c158}=_0x10d8f2;if(_0x10c158&&'pasteFormat'===_0x10c158['commandName']){const _0x331557=[],_0x16e8a9=_0x10c158['commandParams'][0x0];for(const [_0x3bbee9,_0x41296b]of Object['entries'](_0x16e8a9))_0x331557['push'](so(_0xb8a7c6,_0x3bbee9,_0x41296b));return _0x331557['length']?{'type':'format','content':o(_0x29611f,'*Set\x20format\x20to:*\x20%0',_0x331557['join'](',\x20'))}:{'type':'format','content':o(_0x29611f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x36a41c,_0x379a05,_0x3e0d93){const _0x372f85=_0x36a41c['locale']['t'],_0x217f53=_0x379a05['split'](/(?=[A-Z])/)['join']('\x20'),_0x4b0066=_0x372f85(_0x217f53['charAt'](0x0)['toUpperCase']()+_0x217f53['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3e0d93)return _0x4b0066;if('fontColor'===_0x379a05||'fontBackgroundColor'===_0x379a05){const _0x343645=_0x116443(_0x36a41c['config']['get']('fontColor.colors'))['find'](_0x46b794=>_0x46b794['model']==_0x3e0d93);return _0x4b0066+'\x20('+(_0x343645?_0x372f85(_0x343645['label'])['toLowerCase']():_0x3e0d93)+')';}if('fontSize'===_0x379a05&&isNaN(parseFloat(_0x3e0d93))){const _0x9ee451=_0x36a41c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x36a41c['config']['get']('fontSize.options'))['find'](_0x1b7c41=>_0x1b7c41['model']==_0x3e0d93);return _0x4b0066+'\x20('+(_0x9ee451?_0x372f85(_0x9ee451['title'])['toLowerCase']():_0x3e0d93)+')';}return _0x4b0066+'\x20('+_0x3e0d93+')';}class tt extends _0x535ab4{['_headingOptions'];['afterInit'](){const _0x107fee=this['editor'];if(!_0x107fee['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x107fee['config']['get']('heading.options');const _0x2be89a=_0x107fee['locale'],_0x4a2e84=_0x107fee['plugins']['get']('TrackChangesEditing');_0x4a2e84['enableDefaultAttributesIntegration']('heading');for(const _0x59df18 of this['_headingOptions'])'paragraph'!=_0x59df18['model']&&_0x4a2e84['descriptionFactory']['registerElementLabel'](_0x59df18['model'],_0x21327b=>{const _0x562c3f=this['_getHeadingLevel'](_0x59df18['model']);return null!==_0x562c3f?_0x4c5d83(_0x21327b,_0x562c3f):_0x1b4ded(_0x21327b,_0x59df18['title']);});function _0x4c5d83(_0x4782f8,_0x5e4c1e){return o(_0x2be89a,'ELEMENT_HEADING',[_0x4782f8,_0x5e4c1e]);}function _0x1b4ded(_0x711bb0,_0x385d49){return o(_0x2be89a,'ELEMENT_HEADING_CUSTOM',[_0x711bb0,_0x385d49]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e1031=this['editor'],_0xe05143=_0x4e1031['locale'];function _0x569b31(_0x568ff8,_0x30f237){return o(_0xe05143,'ELEMENT_HEADING_CUSTOM',[_0x568ff8,_0x30f237]);}_0x4e1031['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c701a=>{if('formatBlock'!=_0x2c701a['type'])return;const {data:_0x1f4128}=_0x2c701a;if(_0x1f4128&&'heading'==_0x1f4128['commandName']){const _0x37c439=_0x1f4128['commandParams'][0x0]['value'],_0x2f8f33=this['_getHeadingLevel'](_0x37c439);if(null!==_0x2f8f33)return{'type':'format','content':o(_0xe05143,'*Change\x20to:*\x20%0',(_0x130b81=0x1,_0x34fd83=_0x2f8f33,o(_0xe05143,'ELEMENT_HEADING',[_0x130b81,_0x34fd83])))};const _0x5db6ce=this['_headingOptions']['find'](_0x2f492e=>_0x2f492e['model']===_0x37c439)['title'];return{'type':'format','content':o(_0xe05143,'*Change\x20to:*\x20%0',_0x569b31(0x1,_0x5db6ce))};}var _0x130b81,_0x34fd83;});}['_getHeadingLevel'](_0x11aa3c){const _0x181437=_0x11aa3c['match'](/^heading(\d+)/);if(_0x181437)return _0x181437[0x1];const _0x431aaa=this['_headingOptions']?.['find'](_0x172cd4=>_0x172cd4['model']==_0x11aa3c);if(_0x431aaa&&_0x431aaa['view']){const _0xab4d71=_0x431aaa['view'],_0x21b912=(_0xab4d71['name']??_0xab4d71)['match'](/^h(\d+)/);if(_0x21b912)return _0x21b912[0x1];}return null;}}class et extends _0x535ab4{['afterInit'](){const _0x10c972=this['editor'];if(!_0x10c972['plugins']['has']('HighlightEditing'))return;const _0x596e71=_0x10c972['plugins']['get']('TrackChangesEditing'),_0x1400f9=_0x10c972['locale'];_0x596e71['enableDefaultAttributesIntegration']('highlight'),_0x596e71['registerInlineAttribute']('highlight'),_0x596e71['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1400f9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f5685=this['editor'],_0x57aa04=_0x1f5685['locale'];_0x1f5685['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcb2da9=>{if('formatInline'!=_0xcb2da9['type'])return;const {data:_0x2ceba2}=_0xcb2da9;if(_0x2ceba2&&'highlight'==_0x2ceba2['commandName']){const _0x549432=_0x57aa04['t'],_0x5bc92f=_0x2ceba2['commandParams'][0x0]['value'];if(_0x5bc92f){const _0x4eb0e6=_0x1f5685['config']['get']('highlight.options')['find'](_0x2aa77c=>_0x2aa77c['model']==_0x5bc92f),_0x2653b6=_0x549432(_0x4eb0e6['title'])['toLowerCase']();return{'type':'format','content':o(_0x57aa04,'*Set\x20highlight:*\x20%0',_0x2653b6),'color':{'value':_0x4eb0e6['color'],'title':_0x4eb0e6['title']}};}return{'type':'format','content':o(_0x57aa04,'*Remove\x20highlight*',o(_0x57aa04,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x535ab4{['afterInit'](){const _0xc34eef=this['editor'];if(!_0xc34eef['plugins']['has']('HorizontalLineEditing'))return;_0xc34eef['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4f47b1=_0xc34eef['plugins']['get']('TrackChangesEditing'),_0x5479f9=_0xc34eef['locale'];_0x4f47b1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4211dd=>o(_0x5479f9,'ELEMENT_HORIZONTAL_LINE',_0x4211dd)),_0xc34eef['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x532ad2,{writer:_0x4497c2,options:_0x2ff305})=>{if(!_0x2ff305['showSuggestionHighlights'])return null;const _0xfb9d14=_0x4497c2['createContainerElement']('div'),_0x2e22c7=_0x4497c2['createEmptyElement']('hr');return _0x4497c2['addClass']('ck-horizontal-line',_0xfb9d14),_0x4497c2['insert'](_0x4497c2['createPositionAt'](_0xfb9d14,0x0),_0x2e22c7),_0xfb9d14;},'converterPriority':'high'});}}class st extends _0x535ab4{['afterInit'](){const _0x13e89c=this['editor'];if(!_0x13e89c['plugins']['has']('HtmlEmbed'))return;const _0x560655=_0x13e89c['plugins']['get']('TrackChangesEditing'),_0x16fddd=_0x13e89c['locale'];_0x560655['descriptionFactory']['registerElementLabel']('rawHtml',_0x59f3dd=>o(_0x16fddd,'ELEMENT_HTML_EMBED',_0x59f3dd)),_0x560655['enableDefaultAttributesIntegration']('htmlEmbed'),_0x560655['registerBlockAttribute']('value'),_0x560655['descriptionFactory']['registerDescriptionCallback'](_0x43677e=>{if('attribute'!=_0x43677e['type'])return;const {data:_0x49fc95}=_0x43677e;if(_0x49fc95&&'value'==_0x49fc95['key']&&_0x43677e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4a5e23=o(_0x16fddd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x16fddd,'*Change\x20%0\x20content*',_0x4a5e23)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dc289=this['editor'],_0x3a9dbd=_0x2dc289['locale'];_0x2dc289['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x213f01=>{if('formatBlock'!=_0x213f01['type'])return;const {data:_0x1e2cdb}=_0x213f01;if(_0x1e2cdb&&'htmlEmbed'==_0x1e2cdb['commandName']){const _0x71f329=o(_0x3a9dbd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3a9dbd,'*Change\x20%0\x20content*',_0x71f329)};}});}}class nt extends _0x535ab4{['afterInit'](){const _0x33cc13=this['editor'];if(!_0x33cc13['plugins']['has']('ImageEditing'))return;const _0x304369=_0x33cc13['plugins']['get']('TrackChangesEditing'),_0x4204ad=_0x33cc13['plugins']['get']('ImageUtils'),_0x416205=_0x33cc13['locale'];_0x304369['enableCommand']('insertImage'),_0x304369['descriptionFactory']['registerElementLabel']('imageBlock',_0x484757=>o(_0x416205,'ELEMENT_IMAGE',_0x484757)),_0x304369['descriptionFactory']['registerElementLabel']('imageInline',_0x336dd0=>o(_0x416205,'ELEMENT_INLINE_IMAGE',_0x336dd0)),_0x304369['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x416205,'ELEMENT_CAPTION')),_0x33cc13['plugins']['has']('ImageUploadEditing')&&_0x304369['enableCommand']('uploadImage'),_0x33cc13['plugins']['has']('ImageBlockEditing')&&_0x33cc13['plugins']['has']('ImageInlineEditing')&&(_0x304369['enableCommand']('imageTypeInline',(_0x14d2cf,_0x41833d)=>{const _0x4baf34=_0x4204ad['getClosestSelectedImageElement'](_0x33cc13['model']['document']['selection']);_0x33cc13['model']['change'](()=>{_0x304369['markBlockFormat'](_0x4baf34,{'commandName':'imageTypeInline','commandParams':[_0x41833d]},[],'convertBlockImageToInline');});}),_0x304369['enableCommand']('imageTypeBlock',(_0x24a422,_0x1633d6)=>{_0x33cc13['model']['change'](_0x4ceb56=>{let _0xa028a4=_0x4204ad['getClosestSelectedImageElement'](_0x33cc13['model']['document']['selection']),_0x55da72=_0x4ceb56['createRangeOn'](_0xa028a4);const _0x2fd88e=_0x389799['fromPosition'](_0x55da72['start'],'toPrevious'),_0x43be7b=_0x389799['fromPosition'](_0x55da72['end'],'toNext');_0x304369['forceDefaultExecution'](()=>_0x24a422(_0x1633d6)),_0xa028a4=_0x4204ad['getClosestSelectedImageElement'](_0x33cc13['model']['document']['selection']),_0x55da72=_0x4ceb56['createRangeOn'](_0xa028a4);const _0x8fe16c=_0x4ceb56['createRange'](_0x2fd88e,_0x43be7b);_0x2fd88e['detach'](),_0x43be7b['detach'](),_0x304369['markBlockFormat'](_0xa028a4,{'commandName':'imageTypeInline','commandParams':[_0x1633d6]},[],'convertInlineImageToBlock'),_0x8fe16c['start']['isBefore'](_0x55da72['start'])&&_0x304369['markInsertion'](_0x4ceb56['createRange'](_0x8fe16c['start'],_0x55da72['start']),'convertInlineImageToBlock'),_0x55da72['end']['isBefore'](_0x8fe16c['end'])&&_0x304369['markInsertion'](_0x4ceb56['createRange'](_0x55da72['end'],_0x8fe16c['end']),'convertInlineImageToBlock');});}),_0x304369['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x304369['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x304369['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x304369['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x304369['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x304369['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x10f23e])=>{const _0xe4235a=_0x304369['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x111765=_0x10f23e['start'],_0x32baae=_0x10f23e['end'];const _0x51fd3e=_0x33cc13['model']['schema']['getNearestSelectionRange'](_0x111765,'backward'),_0x19ec21=_0x33cc13['model']['schema']['getNearestSelectionRange'](_0x32baae,'forward');_0x51fd3e['isCollapsed']&&(_0x111765=_0x51fd3e['start']),_0x19ec21['isCollapsed']&&(_0x32baae=_0x19ec21['end']),_0xe4235a([_0x33cc13['model']['createRange'](_0x111765,_0x32baae)]);}),_0x304369['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2ab675),_0x304369['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2ab675)),_0x33cc13['plugins']['has']('ImageCaptionEditing')&&(_0x304369['enableCommand']('toggleImageCaption',(_0x117f64,_0x74ecc7)=>{const _0x1df2c8=_0x33cc13['plugins']['get']('ImageCaptionUtils');let _0x486fd0=_0x4204ad['getClosestSelectedImageElement'](_0x33cc13['model']['document']['selection']),_0x375576=_0x1df2c8['getCaptionFromImageModelElement'](_0x486fd0);_0x33cc13['model']['change'](()=>{if(_0x375576)return void _0x304369['markDeletion'](_0x33cc13['model']['createRangeOn'](_0x375576));const _0x22a4b9=_0x4204ad['isBlockImage'](_0x486fd0);_0x117f64(_0x74ecc7),_0x486fd0=_0x4204ad['getClosestSelectedImageElement'](_0x33cc13['model']['document']['selection']),_0x375576=_0x1df2c8['getCaptionFromImageModelElement'](_0x486fd0),_0x304369['markInsertion'](_0x33cc13['model']['createRangeOn'](_0x375576),_0x22a4b9?null:'imageCaption');});}),_0x304369['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2ab675));const _0x405fdf=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4bd159(_0x153069,_0x5390b8){const _0x1b9879=_0x405fdf['findIndex'](({type:_0x3d727e,subType:_0x1e5822})=>_0x153069['type']==_0x3d727e&&_0x153069['subType']==_0x1e5822),_0x1af649=_0x405fdf['findIndex'](({type:_0x4b0696,subType:_0xa7cc84})=>_0x5390b8['type']==_0x4b0696&&_0x5390b8['subType']==_0xa7cc84);if(_0x1b9879<0x0||_0x1af649<0x0)return!0x1;const _0x519447=_0x153069['getFirstRange'](),_0x2f9ae8=_0x5390b8['getFirstRange']();if((0x0==_0x1b9879||0x1==_0x1b9879)&&0x2==_0x1af649&&_0x519447['isIntersecting'](_0x2f9ae8))return!0x0;if(0x2==_0x1b9879&&0x3==_0x1af649){const _0x2e1931=_0x304369['_findSuggestions'](_0x519447,'insertion')['filter'](({suggestion:_0x591108,meta:_0x46625f})=>_0x46625f['isOwn']&&'convertInlineImageToBlock'==_0x591108['subType']);if(_0x2e1931['length']>0x1&&_0x2f9ae8['end']['isEqual'](_0x519447['start']))return!0x0;if(0x1==_0x2e1931['length']&&(_0x519447['start']['isEqual'](_0x2f9ae8['end'])||_0x519447['end']['isEqual'](_0x2f9ae8['start'])))return!0x0;}if(0x3==_0x1b9879&&0x3==_0x1af649&&_0x519447['start']['isBefore'](_0x2f9ae8['start'])){const _0x1f40a5=_0x519447['end']['nodeAfter'],_0x5c7b92=_0x2f9ae8['start']['nodeBefore'];return _0x4204ad['isBlockImage'](_0x1f40a5)&&_0x1f40a5===_0x5c7b92;}return!0x1;}function _0x2ab675(_0x254730,_0xd8aee7){return _0x4bd159(_0x254730,_0xd8aee7)?[_0x254730,_0xd8aee7]:_0x4bd159(_0xd8aee7,_0x254730)?[_0xd8aee7,_0x254730]:null;}_0x33cc13['plugins']['has']('ImageResize')&&(_0x304369['enableDefaultAttributesIntegration']('resizeImage'),_0x304369['registerBlockAttribute']('resizedWidth'),_0x304369['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x416205,'FORMAT_IMAGE_SIZE'))),_0x33cc13['plugins']['has']('ImageTextAlternativeEditing')&&(_0x304369['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x304369['registerBlockAttribute']('alt')),_0x304369['descriptionFactory']['registerDescriptionCallback'](_0x2121da=>{if(!!_0x405fdf['find'](({type:_0x198130,subType:_0x5c5e93})=>_0x2121da['type']==_0x198130&&_0x2121da['subType']==_0x5c5e93))return _0x2121da['previous']?{}:void 0x0;}),_0x304369['descriptionFactory']['registerDescriptionCallback'](_0x52f72a=>{if('insertion'==_0x52f72a['type']||'deletion'==_0x52f72a['type']){const _0x5c292a=_0x52f72a['getContainedElement']();if(_0x5c292a&&_0x5c292a['is']('element','caption'))return{'type':'insertion'==_0x52f72a['type']?'addObject':'removeObject','element':_0x5c292a,'quantity':0x1};}}),_0x304369['descriptionFactory']['registerDescriptionCallback'](_0x68e949=>'formatBlock'==_0x68e949['type']&&'convertInlineImageToBlock'==_0x68e949['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x68e949['type']&&'convertBlockImageToInline'==_0x68e949['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x304369['descriptionFactory']['registerDescriptionCallback'](_0x411d51=>{if('attribute'!=_0x411d51['type'])return;const {data:_0x2c93c9}=_0x411d51;if(!_0x2c93c9||'alt'!=_0x2c93c9['key'])return;const _0x2f9919=_0x2c93c9['newValue'];return _0x2f9919?{'type':'format','content':o(_0x416205,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2f9919+'\x22')}:{'type':'format','content':o(_0x416205,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48ee42=this['editor'],_0x284932=_0x48ee42['locale'];_0x48ee42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47d37f=>{if('formatBlock'!=_0x47d37f['type']&&'formatInline'!=_0x47d37f['type'])return;const {data:_0x39064d}=_0x47d37f;if(_0x39064d){if('imageTextAlternative'==_0x39064d['commandName']){const _0x48b8e4=_0x39064d['commandParams'][0x0]['newValue'];return _0x48b8e4?{'type':'format','content':o(_0x284932,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48b8e4+'\x22')}:{'type':'format','content':o(_0x284932,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x39064d['commandName']){const _0x1202fa=_0x39064d['commandParams'][0x0]['width'];return _0x1202fa?{'type':'format','content':o(_0x284932,'*Set\x20image\x20width:*\x20%0',_0x1202fa)}:{'type':'format','content':o(_0x284932,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x535ab4{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2c7777=this['editor']['locale'],_0x3174b7=this['editor']['plugins']['get']('TrackChangesEditing');_0x3174b7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3174b7['registerBlockAttribute']('src'),_0x3174b7['descriptionFactory']['registerDescriptionCallback'](_0xf1ac3a=>{if('attribute'!=_0xf1ac3a['type'])return;const {data:_0x27c60f}=_0xf1ac3a;return _0x27c60f&&'src'==_0x27c60f['key']?_0x27c60f['newValue']&&_0x27c60f['oldValue']?{'type':'format','content':o(_0x2c7777,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5cf1d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5cf1d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5cf1d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5cf1d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5cf1d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4422af=this['editor'],_0x19aaa4=_0x4422af['locale'];_0x4422af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b76ec=>{if('formatBlock'!=_0x5b76ec['type']&&'formatInline'!=_0x5b76ec['type'])return;const {data:_0x3d4b22}=_0x5b76ec;if(!_0x3d4b22||'replaceImageSource'!=_0x3d4b22['commandName'])return;return{'type':'format','content':o(_0x19aaa4,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x535ab4{['afterInit'](){const _0x2dbe27=this['editor'];if(!_0x2dbe27['plugins']['has']('ImageStyleEditing'))return;const _0x2f06c1=_0x2dbe27['plugins']['get']('TrackChangesEditing'),_0x4d8571=_0x2dbe27['plugins']['get']('ImageUtils'),_0x100a2b={};_0x2f06c1['enableCommand']('imageStyle',(_0x73549d,_0x45d13a)=>{const _0x3a0f65=_0x2dbe27['plugins']['get']('Users')['me'],_0x133b11=_0x2dbe27['commands']['get']('imageStyle');let _0x26c025=_0x4d8571['getClosestSelectedImageElement'](_0x2dbe27['model']['document']['selection']),_0x1b566d=_0x2dbe27['model']['createRangeOn'](_0x26c025),_0x5ae460=_0x133b11['value'];if(_0x5ae460==_0x45d13a['value'])return;const _0x58d249={'commandName':'imageStyle','commandParams':[_0x45d13a],'formatGroupId':_0x2325fc()};_0x2dbe27['model']['change'](()=>{if(_0x2f06c1['getSuggestions']()['filter'](_0x2dde12=>_0x2dde12['isInContent']&&_0x3a0f65==_0x2dde12['author']&&('formatBlock'==_0x2dde12['type']||'formatInline'==_0x2dde12['type'])&&('imageStylePreApply'==_0x2dde12['subType']||'imageStylePostApply'==_0x2dde12['subType'])&&_0x2dde12['getFirstRange']()['isEqual'](_0x1b566d))['forEach'](_0x131682=>_0x2f06c1['discardSuggestion'](_0x131682['head'])),_0x26c025=_0x4d8571['getClosestSelectedImageElement'](_0x2dbe27['model']['document']['selection']),_0x1b566d=_0x2dbe27['model']['createRangeOn'](_0x26c025),_0x133b11['refresh'](),_0x2dbe27['commands']['get']('imageTypeInline')['refresh'](),_0x2dbe27['commands']['get']('imageTypeBlock')['refresh'](),_0x5ae460=_0x133b11['value'],_0x5ae460!=_0x45d13a['value'])return _0x4d8571['isInlineImage'](_0x26c025)&&_0x133b11['shouldConvertImageType'](_0x45d13a['value'],_0x26c025)?(_0x73549d({..._0x45d13a,'setImageSizes':!0x1}),_0x26c025=_0x4d8571['getClosestSelectedImageElement'](_0x2dbe27['model']['document']['selection']),void _0x2f06c1['markBlockFormat'](_0x26c025,{..._0x58d249,'commandReversedParams':[{'value':_0x5ae460||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4d8571['isBlockImage'](_0x26c025)?_0x2f06c1['markBlockFormat'](_0x26c025,_0x58d249,[],'imageStylePostApply'):_0x2f06c1['markInlineFormat'](_0x1b566d,_0x58d249,'imageStylePostApply'));});});for(const _0x3c7bb4 of _0x2dbe27['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x100a2b[_0x3c7bb4['name']]=_0x3c7bb4['title']['toLowerCase']();_0x2f06c1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2f06c1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2f06c1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2f06c1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x406d90])=>{_0x4d8571['setImageNaturalSizeAttributes'](_0x406d90['getContainedElement']());}),_0x2f06c1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xc9abf2,_0x30433e)=>{_0x2f06c1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xc9abf2,{'commandName':_0x30433e['commandName'],'commandParams':_0x30433e['commandReversedParams']});}),_0x2f06c1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x19d2aa,_0xcc7e4f){if(_0x356984(_0x19d2aa,_0xcc7e4f))return[_0x19d2aa,_0xcc7e4f];if(_0x356984(_0xcc7e4f,_0x19d2aa))return[_0xcc7e4f,_0x19d2aa];return null;});const _0x156848=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x356984(_0x1eea11,_0x43d5a1){const _0x88e017=_0x156848['findIndex'](({type:_0x202858,subType:_0x4c9416})=>_0x1eea11['type']==_0x202858&&_0x1eea11['subType']==_0x4c9416),_0x3af719=_0x156848['findIndex'](({type:_0x53244b,subType:_0x76562a})=>_0x43d5a1['type']==_0x53244b&&_0x43d5a1['subType']==_0x76562a);if(_0x88e017<0x0||_0x3af719<0x0)return!0x1;const _0x42766d=_0x1eea11['getFirstRange'](),_0x3e1c85=_0x43d5a1['getFirstRange']();if((0x0==_0x88e017||0x1==_0x88e017)&&0x2==_0x3af719&&_0x42766d['isIntersecting'](_0x3e1c85))return!0x0;if(0x2==_0x88e017&&0x3==_0x3af719){const _0x5399e8=_0x2f06c1['_findSuggestions'](_0x42766d,'insertion')['filter'](({suggestion:_0x5815c2,meta:_0x3af894})=>_0x3af894['isOwn']&&'convertInlineImageToBlock'==_0x5815c2['subType']);if(_0x5399e8['length']>0x1&&_0x3e1c85['end']['isEqual'](_0x42766d['start']))return!0x0;if(0x1==_0x5399e8['length']&&(_0x42766d['start']['isEqual'](_0x3e1c85['end'])||_0x42766d['end']['isEqual'](_0x3e1c85['start'])))return!0x0;}if(0x3==_0x88e017&&0x3==_0x3af719&&_0x42766d['start']['isBefore'](_0x3e1c85['start'])){const _0x690d7e=_0x42766d['end']['nodeAfter'],_0x73085c=_0x3e1c85['start']['nodeBefore'];return _0x4d8571['isBlockImage'](_0x690d7e)&&_0x690d7e===_0x73085c;}return!0x1;}_0x2dbe27['model']['document']['registerPostFixer'](()=>{let _0x3ef8ed=!0x1;const _0xdbd063=Array['from'](_0x2dbe27['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x360bbd,data:_0x653ff1}of _0xdbd063){const {group:_0x47e8fc,type:_0x2a6793,subType:_0x9e4d17,id:_0x571b73}=_0x2f06c1['_splitMarkerName'](_0x360bbd);if('suggestion'==_0x47e8fc&&_0x2f06c1['hasSuggestion'](_0x571b73)){if('formatBlock'==_0x2a6793&&('imageStylePreApply'==_0x9e4d17||'imageStylePostApply'==_0x9e4d17)){const _0x2944b1=_0x2f06c1['getSuggestion'](_0x571b73);if(_0x653ff1['newRange']){const _0xcc65e2=_0x2944b1['getFirstRange']()['getContainedElement']();if(_0x4d8571['isBlockImage'](_0xcc65e2))continue;_0x2f06c1['discardSuggestion'](_0x2944b1),_0x3ef8ed=!0x0;}}if('insertion'==_0x2a6793&&'imageCaption'==_0x9e4d17&&!_0x653ff1['newRange']){const _0x15a123=_0x2f06c1['getSuggestion'](_0x571b73);_0x15a123['next']&&_0x15a123['next']['isInContent']&&(_0x2f06c1['discardSuggestion'](_0x15a123['next']),_0x3ef8ed=!0x0);}}}return _0x3ef8ed;}),this['_registerLegacyDescription'](_0x100a2b);}['_registerLegacyDescription'](_0x369d6f){const _0x2f6e06=this['editor'],_0x391104=_0x2f6e06['locale'];_0x2f6e06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x433b41=>{if('formatBlock'!=_0x433b41['type']&&'formatInline'!=_0x433b41['type'])return;const {data:_0x20f555}=_0x433b41;if(!_0x20f555||'imageStyle'!=_0x20f555['commandName'])return;const _0x4e6329=_0x20f555['commandParams'][0x0]['value'];return _0x5b42e7('side'===_0x4e6329?o(_0x391104,'FORMAT_SIDE_IMAGE'):_0x369d6f[_0x4e6329]||_0x4e6329);function _0x5b42e7(_0x3d8602){return{'type':'format','content':o(_0x391104,'*Format:*\x20%0',_0x3d8602)};}});}}class at extends _0x535ab4{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x27132a){super(_0x27132a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1a7ee4=this['editor'],_0x18adf9=_0x1a7ee4['commands']['get']('importWord'),_0x49c2ca=_0x1a7ee4['commands']['get']('trackChanges');_0x18adf9&&(_0x18adf9['on']('execute',(_0x1ef10a,[,_0xf591ba])=>{this['_trackChangesValueDuringImport']=_0x49c2ca['value'],_0xf591ba['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x18adf9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x18adf9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x49c2ca['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1a7ee4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x26ada7,_0x4b0bb9){const {suggestions:_0x10a808}=_0x4b0bb9,_0x526330=this['editor']['commands']['get']('trackChanges'),_0x3cceda=_0x526330['value'];this['_trackChangesValueDuringImport']!==_0x3cceda&&(_0x526330['execute'](),this['_trackChangesExecuted']=!0x0),_0x10a808&&_0x10a808['forEach'](({id:_0x35d026,type:_0x147280,author:_0x2a914f,created_at:_0x42175f})=>{const _0x163204={'id':_0x35d026,'type':_0x147280,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2a914f,'createdAt':_0x42175f?new Date(_0x42175f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x163204);});}}class ct extends _0x535ab4{['afterInit'](){const _0xa3ab89=this['editor'],_0xf4597b=_0xa3ab89['plugins']['get']('TrackChangesEditing');if(_0xa3ab89['plugins']['has']('IndentEditing')&&(_0xf4597b['enableCommand']('indent'),_0xf4597b['enableCommand']('outdent')),_0xa3ab89['plugins']['has']('IndentBlock')){for(const _0x684523 of['indentBlock','outdentBlock'])_0xf4597b['enableDefaultAttributesIntegration'](_0x684523);}const _0xfb641e=_0xa3ab89['locale'];_0xf4597b['registerBlockAttribute']('blockIndent'),_0xf4597b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xfb641e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x432467=this['editor'],_0x44814b=_0x432467['locale'],_0xc797d1=_0x432467['plugins']['get']('TrackChangesEditing');_0xc797d1['descriptionFactory']['registerDescriptionCallback'](_0x2f9c5c=>{if('formatBlock'!=_0x2f9c5c['type'])return;const {data:_0x4fddd5}=_0x2f9c5c;if(!_0x4fddd5)return;if('indentBlock'!=_0x4fddd5['commandName']&&'outdentBlock'!=_0x4fddd5['commandName'])return;const _0x1a2498=_0x2f9c5c['getItems']()[0x0],_0x108d69=_0xc797d1['descriptionFactory']['getItemLabel'](_0x1a2498);return'indentBlock'==_0x4fddd5['commandName']?{'type':'format','content':o(_0x44814b,'*Indent:*\x20%0',_0x108d69)}:'outdentBlock'==_0x4fddd5['commandName']?{'type':'format','content':o(_0x44814b,'*Outdent:*\x20%0',_0x108d69)}:void 0x0;});}}class ut extends _0x535ab4{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x535ab4{['afterInit'](){const _0x4b2767=this['editor'];if(!_0x4b2767['plugins']['has']('LinkEditing'))return;const _0x5e94f8=_0x4b2767['plugins']['get']('TrackChangesEditing'),_0x5577fa=_0x4b2767['commands']['get']('link');_0x5e94f8['enableDefaultAttributesIntegration']('link'),_0x5e94f8['enableDefaultAttributesIntegration']('unlink'),_0x5e94f8['registerInlineAttribute']('linkHref');for(const _0x1f48fd of _0x5577fa['manualDecorators'])_0x5e94f8['registerInlineAttribute'](_0x1f48fd['id']),_0x5e94f8['descriptionFactory']['registerAttributeLabel'](_0x1f48fd['id'],'link\x20('+_0x1f48fd['label']['toLowerCase']()+')');_0x5e94f8['descriptionFactory']['registerDescriptionCallback'](_0x1aeacb=>{if('attribute'!=_0x1aeacb['type'])return;const {data:_0x421a19}=_0x1aeacb;if(!_0x421a19||'linkHref'!=_0x421a19['key'])return;const _0x28fb73=_0x421a19['newValue'],_0x4b1d54=_0x4b2767['locale'];return{'type':'format','content':null==_0x28fb73?o(_0x4b1d54,'*Remove\x20link*'):o(_0x4b1d54,'*Set\x20link:*\x20%0','\x22'+_0x28fb73+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a457b=this['editor'],_0x4da429=_0x5a457b['locale'];_0x5a457b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d89fa=>{if('formatInline'!=_0x4d89fa['type'])return;const {data:_0x5df869}=_0x4d89fa;if(_0x5df869){if('link'==_0x5df869['commandName']){const _0x4c00fd=_0x5df869['commandParams'][0x0];return{'type':'format','content':o(_0x4da429,'*Set\x20link:*\x20%0','\x22'+_0x4c00fd+'\x22')};}return'unlink'==_0x5df869['commandName']?{'type':'format','content':o(_0x4da429,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x535ab4{['afterInit'](){const _0x2324c5=this['editor'],_0x220853=_0x2324c5['locale'];if(!_0x2324c5['plugins']['has']('LegacyListEditing'))return;const _0x13f25d=_0x2324c5['plugins']['get']('TrackChangesEditing'),_0x535759=_0x2324c5['plugins']['has']('LegacyTodoListEditing');function _0xc5f67a(_0x420bf5){return()=>{const _0x3c3b3a=_0x2324c5['model']['document']['selection'],_0x11eb12=_0x2324c5['commands']['get'](_0x420bf5);if(_0x11eb12['value'])return void _0x2324c5['execute']('paragraph',{});const _0x34e6e2=_0x420bf5['slice'](0x0,-0x4),_0x3e4fb7=function(_0x79b0f,_0x5d6057,_0x5bfb35){let _0x570c2e=Array['from'](_0x79b0f)['filter'](_0x444aed=>function(_0x459c56,_0x3f5c8f){return _0x3f5c8f['checkChild'](_0x459c56['parent'],'listItem')&&!_0x3f5c8f['isObject'](_0x459c56);}(_0x444aed,_0x5bfb35));_0x570c2e=_0x570c2e['filter'](_0x4bd124=>!_0x4bd124['is']('element','listItem')||_0x4bd124['getAttribute']('listType')!=_0x5d6057);const _0xb9833b=new Set();for(const _0x318cf2 of _0x570c2e)_0x318cf2['is']('element','listItem')?_0xb9833b['add'](fe(_0x318cf2)):_0xb9833b['add'](_0x318cf2);return Array['from'](_0xb9833b);}(_0x3c3b3a['getSelectedBlocks'](),_0x34e6e2,_0x2324c5['model']['schema']);_0x2324c5['model']['change'](()=>{for(const _0x2ab877 of _0x3e4fb7)_0x13f25d['markBlockFormat'](_0x2ab877,{'commandName':_0x420bf5,'commandParams':[{'forceValue':!_0x11eb12['value']}],'formatGroupId':'blockName'},ue(_0x2ab877));});};}function _0x428c57(_0x5ac42c){return()=>{const _0xfb5aa6=function(_0x23b367){let _0x4ffbeb=Array['from'](_0x23b367);const _0x3f7a79=_0x4ffbeb['findIndex'](_0x1fab04=>'listItem'!=_0x1fab04['name']);return _0x3f7a79>-0x1&&(_0x4ffbeb=_0x4ffbeb['slice'](0x0,_0x3f7a79)),_0x4ffbeb;}(_0x2324c5['model']['document']['selection']['getSelectedBlocks']()),_0x4b41b7=_0x2324c5['model']['createRange'](_0x2324c5['model']['createPositionAt'](_0xfb5aa6[0x0],'before'),_0x2324c5['model']['createPositionAt'](_0xfb5aa6[_0xfb5aa6['length']-0x1],'end'));_0x2324c5['model']['change'](()=>{_0x13f25d['markBlockFormat'](_0x4b41b7,{'commandName':_0x5ac42c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x139e36){const _0x376836=new Set();for(const _0xdf1284 of _0x139e36){let _0x177a67=_0xdf1284['nextSibling'];for(;_0x177a67&&_0x177a67['getAttribute']('listIndent')>_0xdf1284['getAttribute']('listIndent');)_0x376836['add'](_0x177a67),_0x177a67=_0x177a67['nextSibling'];}return Array['from'](_0x376836);}(_0xfb5aa6));});};}_0x13f25d['enableCommand']('numberedList',_0xc5f67a('numberedList')),_0x13f25d['enableCommand']('bulletedList',_0xc5f67a('bulletedList')),_0x535759&&_0x13f25d['enableCommand']('todoList',_0xc5f67a('todoList')),_0x13f25d['enableCommand']('indentList',_0x428c57('indentList')),_0x13f25d['enableCommand']('outdentList',_0x428c57('outdentList')),_0x535759&&_0x13f25d['enableCommand']('checkTodoList',()=>{const _0x2ba9a2=_0x2324c5['commands']['get']('checkTodoList'),_0x1327a2=Array['from'](_0x2ba9a2['_selectedElements']);_0x1327a2['filter'](_0x237864=>_0x237864['getAttribute']('todoListChecked')!=_0x2ba9a2['value']),_0x2324c5['model']['change'](()=>{for(const _0xd6670c of _0x1327a2)_0x13f25d['markBlockFormat'](_0xd6670c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2ba9a2['value']}]});});}),_0x13f25d['descriptionFactory']['registerElementLabel']('listItem',_0x463e64=>o(_0x220853,'ELEMENT_LIST_ITEM',_0x463e64)),_0x13f25d['descriptionFactory']['registerDescriptionCallback'](_0x1e552c=>{if('formatBlock'!=_0x1e552c['type']&&'formatInline'!=_0x1e552c['type'])return;const {data:_0x369307}=_0x1e552c;if(_0x369307){if('numberedList'==_0x369307['commandName']||'bulletedList'==_0x369307['commandName']||'todoList'==_0x369307['commandName'])switch(_0x369307['commandName']['replace']('List','')){case'bulleted':return _0x198707(o(_0x220853,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x198707(o(_0x220853,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x198707(o(_0x220853,'ELEMENT_TODO_LIST'));}if('indentList'==_0x369307['commandName'])return{'type':'format','content':o(_0x220853,'*Indent:*\x20%0',o(_0x220853,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x369307['commandName'])return{'type':'format','content':o(_0x220853,'*Outdent:*\x20%0',o(_0x220853,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x369307['commandName'])return _0x369307['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x220853,'*Check\x20item*')}:{'type':'format','content':o(_0x220853,'*Uncheck\x20item*')};}function _0x198707(_0x2afb6e){return{'type':'format','content':o(_0x220853,'*Change\x20to:*\x20%0',_0x2afb6e)};}});}}function fe(_0x521f59){const _0x271c3a=_0x521f59['getAttribute']('listIndent');if(0x0==_0x271c3a)return _0x521f59;let _0x4254c3=_0x521f59;for(;_0x521f59['previousSibling']&&_0x521f59['previousSibling']['is']('element','listItem');){const _0x4e4a4b=_0x521f59['previousSibling']['getAttribute']('listIndent');if(_0x4e4a4b==_0x271c3a)_0x4254c3=_0x521f59['previousSibling'];else{if(_0x4e4a4b<_0x271c3a)break;}_0x521f59=_0x521f59['previousSibling'];}return _0x4254c3;}function ue(_0x1cc646){const _0x1c9e8b=[];if(_0x1cc646['is']('element','listItem')&&_0x1cc646['getAttribute']('listIndent')>0x0){let _0x87ae4c=_0x1cc646['nextSibling'];for(;_0x87ae4c&&'listItem'==_0x87ae4c['name']&&_0x87ae4c['getAttribute']('listIndent')==_0x1cc646['getAttribute']('listIndent');)_0x1c9e8b['push'](_0x87ae4c),_0x87ae4c=_0x87ae4c['nextSibling'];}return _0x1c9e8b;}class W extends _0x535ab4{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x23f14f=this['editor']['config']['get']('list.properties'),_0x3300a9=this['editor']['plugins']['get']('TrackChangesEditing');_0x23f14f['styles']&&_0x3300a9['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x23f14f['reversed']&&_0x3300a9['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x23f14f['startIndex']&&_0x3300a9['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3300a9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x21555d,_0xc2dc13={}){const _0x1cf7f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1db422=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1cf7f9['markMultiRangeBlockFormat'](_0x1db422,{'commandName':'listStyle','commandParams':[{'type':_0xc2dc13['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4b597f,_0x103e07={}){const _0x33d8cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f1470=this['_getSuggestionBlocks'](_0xc9f459=>_0xc9f459['is']('element','listItem')&&'numbered'===_0xc9f459['getAttribute']('listType'));if(_0x2f1470['length']<0x1)return;const _0x278295=_0x2f1470['map'](_0x306917=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x306917,'before'),this['editor']['model']['createPositionAt'](_0x306917,0x0)));this['editor']['model']['change'](()=>{_0x33d8cc['markMultiRangeBlockFormat'](_0x278295,{'commandName':'listReversed','commandParams':[{'reversed':_0x103e07['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3cc813,_0x2ef2b4={}){const _0x5a2876=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57475b=this['_getSuggestionBlocks'](_0x559868=>_0x559868['is']('element','listItem')&&'numbered'===_0x559868['getAttribute']('listType'));if(_0x57475b['length']<0x1)return;const _0x50d177=_0x57475b['map'](_0x1becc0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1becc0,'before'),this['editor']['model']['createPositionAt'](_0x1becc0,0x0)));this['editor']['model']['change'](()=>{_0x5a2876['markMultiRangeBlockFormat'](_0x50d177,{'commandName':'listStart','commandParams':[{'startIndex':_0x2ef2b4['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5198b7){if('formatBlock'!=_0x5198b7['type']&&'formatInline'!=_0x5198b7['type'])return;const _0x2f4c25=this['editor']['locale'],{data:_0xb835e9}=_0x5198b7;if(!_0xb835e9)return;let _0x4a072e,_0x4fb9de;switch(_0xb835e9['commandName']){case'listStyle':_0x4a072e='*Change\x20to:*\x20%0',_0x4fb9de={'type':'format','content':o(_0x2f4c25,_0x4a072e,o(_0x2f4c25,this['_getTranslationKeyForListStyle'](_0xb835e9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4a072e=_0xb835e9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4fb9de={'type':'format','content':o(_0x2f4c25,_0x4a072e)};break;case'listStart':_0x4a072e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4fb9de={'type':'format','content':o(_0x2f4c25,_0x4a072e,_0xb835e9['commandParams'][0x0]['startIndex'])};}return _0x4fb9de;}['_getSuggestionBlocksForListStyle'](){const _0x1d4f43=this['editor']['plugins']['get']('LegacyListUtils');let _0x425335=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x425335[0x0]?.['is']('element','listItem')&&_0x425335['unshift'](..._0x1d4f43['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x425335[_0x425335['length']-0x1]?.['is']('element','listItem')&&_0x425335['push'](..._0x1d4f43['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x425335=[...new Set(_0x425335)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x425335=_0x425335['filter'](_0x1d716f=>_0x1d716f['is']('element','listItem'))),_0x425335;}['_getSuggestionBlocks'](_0x4974f1){const _0x396416=this['editor']['plugins']['get']('LegacyListUtils');let _0xf73a19=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4974f1)['map'](_0x48fbb8=>{const _0x3a9532=this['editor']['model']['createPositionAt'](_0x48fbb8,0x0);return[..._0x396416['getSiblingNodes'](_0x3a9532,'backward'),..._0x396416['getSiblingNodes'](_0x3a9532,'forward')];})['flat']();return _0xf73a19=[...new Set(_0xf73a19)],_0xf73a19;}['_getTranslationKeyForListStyle'](_0x3e70fe){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3e70fe)||'default')['toUpperCase']()+'_LIST_'+_0x3e70fe['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x535ab4{['afterInit'](){const _0x3303f5=this['editor'];if(!_0x3303f5['plugins']['has']('MediaEmbedEditing'))return;const _0x128915=_0x3303f5['plugins']['get']('TrackChangesEditing'),_0x1412f1=_0x3303f5['locale'];_0x128915['enableCommand']('mediaEmbed'),_0x128915['descriptionFactory']['registerElementLabel']('media',_0x4d3521=>o(_0x1412f1,'ELEMENT_MEDIA',_0x4d3521)),_0x3303f5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xaa3685,{writer:_0xc754e4,options:_0x348856})=>{if(_0x348856['showSuggestionHighlights'])return _0xc754e4['createEmptyElement']('div');},'converterPriority':'high'}),_0x3303f5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3ea0ef,_0x2bc6ba,_0x5b2be9)=>{_0x5b2be9['options']['showSuggestionHighlights']&&_0x3ea0ef['stop']();},{'priority':'high'});}}class mt extends _0x535ab4{['afterInit'](){const _0x504e28=this['editor'];_0x504e28['plugins']['has']('MentionEditing')&&_0x504e28['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x535ab4{['afterInit'](){const _0x17ce35=this['editor'];if(!_0x17ce35['plugins']['has']('MergeFieldsEditing'))return;_0x17ce35['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x17ce35['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x281728=_0x17ce35['plugins']['get']('TrackChangesEditing'),_0x2fc199=_0x17ce35['locale'];_0x281728['descriptionFactory']['registerElementLabel']('mergeField',_0x342694=>o(_0x2fc199,'ELEMENT_MERGE_FIELD',_0x342694)),_0x281728['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2af134=>o(_0x2fc199,'ELEMENT_MERGE_FIELD',_0x2af134)),_0x281728['descriptionFactory']['registerDescriptionCallback'](_0xba7ceb=>{if('insertion'!=_0xba7ceb['type']&&'deletion'!=_0xba7ceb['type'])return;const _0x17d1fd=_0xba7ceb['getContainedElement']();if(null==_0x17d1fd)return;if(!_0x17d1fd['is']('element','mergeField')&&!_0x17d1fd['is']('element','mergeFieldBlock'))return;const _0x2c2436=_0x17ce35['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x17d1fd['getAttribute']('id'));return'insertion'==_0xba7ceb['type']?{'type':'insertion','content':o(_0x2fc199,'*Insert:*\x20%0','\x22'+_0x2c2436+'\x22\x20'+o(_0x2fc199,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2fc199,'*Remove:*\x20%0','\x22'+_0x2c2436+'\x22\x20'+o(_0x2fc199,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x535ab4{['afterInit'](){const _0x179316=this['editor'],_0x171aad=_0x179316['plugins']['get']('TrackChangesEditing');_0x179316['plugins']['has']('MultiLevelList')&&(_0x171aad['enableDefaultAttributesIntegration']('multiLevelList'),_0x171aad['registerBlockAttribute']('listMarkerStyle'),_0x171aad['descriptionFactory']['registerDescriptionCallback'](_0x136a79=>this['handleDescriptions'](_0x136a79)));}['handleDescriptions'](_0x59c179){const _0x2251fb=this['editor']['locale'],{data:_0x20d357}=_0x59c179,_0x774bf6={'type':'format','content':''};if(_0x20d357&&'listMarkerStyle'==_0x20d357['key']){if(!_0x20d357['oldValue'])return{'type':'format','content':o(_0x2251fb,'*Set\x20format:*\x20%0',o(_0x2251fb,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x20d357['newValue']+')'};if(!_0x20d357['newValue']){let _0x52431a=_0x59c179['head'];for(;_0x52431a;){if(_0x52431a['data']&&'listType'==_0x52431a['data']['key']&&_0x52431a['data']['newValue'])return _0x774bf6;_0x52431a=_0x52431a['next'];}return{'type':'format','content':o(_0x2251fb,'*Remove\x20format:*\x20%0',o(_0x2251fb,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x20d357['oldValue']+')'};}}}}class kt extends _0x535ab4{['afterInit'](){const _0x1fe8a3=this['editor'];if(!_0x1fe8a3['plugins']['has']('PageBreakEditing'))return;_0x1fe8a3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x46a3b7=_0x1fe8a3['plugins']['get']('TrackChangesEditing'),_0x5e47b3=_0x1fe8a3['locale'];_0x46a3b7['descriptionFactory']['registerElementLabel']('pageBreak',_0x4d61a2=>o(_0x5e47b3,'ELEMENT_PAGE_BREAK',_0x4d61a2));}}class bt extends _0x535ab4{['afterInit'](){const _0xd8dd24=this['editor'];if(!_0xd8dd24['plugins']['has']('Paragraph'))return;const _0x1f1c77=_0xd8dd24['locale'],_0x286620=_0xd8dd24['plugins']['get']('TrackChangesEditing');_0x286620['descriptionFactory']['registerElementLabel']('paragraph',_0x21b5a6=>o(_0x1f1c77,'ELEMENT_PARAGRAPH',_0x21b5a6)),_0x286620['enableDefaultAttributesIntegration']('paragraph'),_0x286620['enableCommand']('insertParagraph'),_0xd8dd24['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xd8dd24),{'priority':'highest'}),_0xd8dd24['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5549ee,_0x545d21,_0x279ed2)=>{_0x279ed2['options']['showSuggestionHighlights']&&nr(_0xd8dd24,{'showActiveMarker':!0x1})(_0x5549ee,_0x545d21,_0x279ed2);},{'priority':'highest'});const _0x2a4f4b=_0x286620['descriptionFactory'];_0x2a4f4b['registerDescriptionCallback'](_0x12c73d=>{if('insertion'!==_0x12c73d['type'])return;const {start:_0x438f19,end:_0x588286}=_0x12c73d['getFirstRange']();if(!_0x438f19['isTouching'](_0x588286)||!_0x438f19['nodeAfter'])return;const _0x1a9aed=_0xd8dd24['model']['schema'],_0x1f5971=_0x438f19['nodeAfter'];return _0x1a9aed['isBlock'](_0x1f5971)&&!_0x1a9aed['isLimit'](_0x1f5971)&&_0x1a9aed['checkChild'](_0x1f5971,'$text')?{'type':'insertion','content':o(_0x1f1c77,'*Insert:*\x20%0',_0x2a4f4b['getItemLabel'](_0x1f5971,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f971f=this['editor'],_0xcd8243=_0x1f971f['locale'];_0x1f971f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49497b=>{if('formatBlock'!=_0x49497b['type'])return;const {data:_0x42f30d}=_0x49497b;return _0x42f30d&&'paragraph'==_0x42f30d['commandName']?{'type':'format','content':o(_0xcd8243,'*Change\x20to:*\x20%0',o(_0xcd8243,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3997bb,{showActiveMarker:_0x4f07ea=!0x0}={}){return(_0x46fff1,_0x53e422,_0x1022f7)=>{const _0x42de2b=_0x3997bb['plugins']['get']('TrackChangesEditing'),_0x1758e2=_0x53e422['markerRange']['start'],_0x3c5d14=_0x53e422['markerRange']['end'],_0x46f684=_0x3997bb['model']['schema'];if(!_0x1758e2['isTouching'](_0x3c5d14)||!_0x1758e2['nodeAfter'])return;const _0x3acb4f=_0x1758e2['nodeAfter'];if(_0x46f684['isBlock'](_0x3acb4f)&&!_0x46f684['isLimit'](_0x3acb4f)&&_0x46f684['checkChild'](_0x3acb4f,'$text')){if(!_0x1022f7['consumable']['consume'](_0x53e422['markerRange'],_0x46fff1['name']))return;const {authorId:_0x5d110b}=_0x42de2b['_splitMarkerName'](_0x53e422['markerName']),_0x541f55=_0x1022f7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5d110b}),_0x43bff0=_0x1022f7['mapper']['toViewPosition'](_0x3c5d14);_0x4f07ea&&_0x42de2b['activeMarkers']['includes'](_0x53e422['markerName'])&&_0x1022f7['writer']['addClass']('ck-suggestion-marker--active',_0x541f55),_0x1022f7['writer']['insert'](_0x43bff0,_0x541f55),_0x1022f7['mapper']['bindElementToMarker'](_0x541f55,_0x53e422['markerName']);}};}class wt extends _0x535ab4{['afterInit'](){const _0x4f2167=this['editor'];if(!_0x4f2167['plugins']['has']('RemoveFormatEditing'))return;_0x4f2167['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb6c46e=this['editor'];_0xb6c46e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ac15c=>{if('formatBlock'!=_0x4ac15c['type']&&'formatInline'!=_0x4ac15c['type'])return;const {data:_0x2a4c9c}=_0x4ac15c;return _0x2a4c9c&&'removeFormat'==_0x2a4c9c['commandName']?{'type':'format','content':o(_0xb6c46e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x535ab4{['afterInit'](){const _0xdc356a=this['editor'];if(!_0xdc356a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3db061=_0xdc356a['plugins']['get']('TrackChangesEditing');_0x3db061['enableCommand']('goToPreviousRestrictedEditingException'),_0x3db061['enableCommand']('goToNextRestrictedEditingException');const _0xa35830=_0xdc356a['plugins']['get']('RestrictedEditingModeEditing');_0xa35830['enableCommand']('trackChanges'),_0xa35830['enableCommand']('acceptSuggestion'),_0xa35830['enableCommand']('discardSuggestion'),_0xa35830['enableCommand']('acceptAllSuggestions'),_0xa35830['enableCommand']('discardAllSuggestions'),_0xa35830['enableCommand']('acceptSelectedSuggestions'),_0xa35830['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x535ab4{static get['requires'](){return[_0x4c4231];}['init'](){const _0x193cea=this['editor'],_0x5c92a2=_0x193cea['plugins']['get']('TrackChangesEditing');_0x5c92a2['enableCommand']('shiftEnter'),_0x193cea['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x193cea),{'priority':'high'}),_0x193cea['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x193cea),{'priority':'high'}),_0x193cea['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1dec42,_0x490f29,_0x3101ac)=>{_0x3101ac['options']['showSuggestionHighlights']&&ge(_0x193cea,{'showActiveMarker':!0x1})(_0x1dec42,_0x490f29,_0x3101ac);}),_0x5c92a2['descriptionFactory']['registerElementLabel']('softBreak',_0x11ccbf=>o(_0x193cea['locale'],'ELEMENT_LINE_BREAK',_0x11ccbf));}}function ge(_0x404470,{showActiveMarker:_0xc1e4dc=!0x0}={}){return(_0x360f0,_0x207e2e,_0x16603f)=>{const _0xa73620=_0x404470['plugins']['get']('TrackChangesEditing');if(!_0x16603f['consumable']['test'](_0x207e2e['markerRange'],_0x360f0['name']))return;const _0x466611=_0x404470['model'];for(const _0x1ff66a of _0x207e2e['markerRange']['getItems']()){if(!_0x1ff66a['is']('element','softBreak'))continue;const _0x87901e='deletion'==_0x207e2e['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x59083d}=_0xa73620['_splitMarkerName'](_0x207e2e['markerName']),_0x551aa2=_0x16603f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x87901e,'data-author-id':_0x59083d}),_0x4eaa11=_0x16603f['mapper']['toViewPosition'](_0x466611['createPositionBefore'](_0x1ff66a));_0xc1e4dc&&_0xa73620['activeMarkers']['includes'](_0x207e2e['markerName'])&&_0x16603f['writer']['addClass']('ck-suggestion-marker--active',_0x551aa2),_0x16603f['writer']['insert'](_0x4eaa11,_0x551aa2),_0x16603f['mapper']['bindElementToMarker'](_0x551aa2,_0x207e2e['markerName']);}};}class St extends _0x535ab4{['afterInit'](){const _0x45be3d=this['editor'],_0x5ec083=_0x45be3d['model'],_0x35792e=_0x45be3d['locale'];if(!_0x45be3d['plugins']['has']('StandardEditingModeEditing'))return;const _0x165002=_0x45be3d['plugins']['get']('TrackChangesEditing'),_0x309407='restrictedEditingException',_0x4e2269=_0x45be3d['commands']['get'](_0x309407);_0x165002['enableCommand'](_0x309407,(_0x16a743,_0x309b9e={})=>{const _0x3cb59b=_0x5ec083['document']['selection'];if(_0x3cb59b['isCollapsed'])return void _0x16a743(_0x309b9e);const _0x590a92=void 0x0!==_0x309b9e['forceValue']?_0x309b9e['forceValue']:!_0x4e2269['value'];_0x5ec083['change'](()=>{const _0x320f7d=Array['from'](_0x3cb59b['getRanges']());for(const _0x29a6e8 of _0x320f7d){const _0x568843=_0x590a92?[_0x29a6e8]:io(_0x309407,_0x29a6e8,_0x5ec083);for(const _0x2d5b28 of _0x568843)_0x165002['markInlineFormat'](_0x2d5b28,{'commandName':_0x309407,'commandParams':[{'forceValue':_0x590a92}]});}});}),_0x165002['descriptionFactory']['registerDescriptionCallback'](_0x470bfd=>{if('formatBlock'!=_0x470bfd['type']&&'formatInline'!=_0x470bfd['type'])return;const {data:_0x59e7e3}=_0x470bfd;return _0x59e7e3&&_0x59e7e3['commandName']==_0x309407?_0x59e7e3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x35792e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x35792e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x535ab4{['afterInit'](){const _0x4db3a4=this['editor'];if(!_0x4db3a4['plugins']['has']('Style')||!_0x4db3a4['plugins']['has']('DataSchema'))return;const _0x3f16f7=_0x4db3a4['plugins']['get']('TrackChangesEditing'),_0x3637bd=_0x4db3a4['locale'],_0xe9a9b4=_0x4db3a4['config']['get']('style')||{},_0x5143d3=_0x4db3a4['plugins']['get']('GeneralHtmlSupport'),_0x42cdfc=_0x4db3a4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4db3a4['plugins']['get']('DataSchema'),_0xe9a9b4['definitions']);_0x3f16f7['enableDefaultAttributesIntegration']('style');const _0x2bd5e5=new Set();for(const _0x32f459 of _0x42cdfc['block']){const _0x5227c8=_0x5143d3['getGhsAttributeNameForElement'](_0x32f459['element']);_0x2bd5e5['add'](_0x5227c8);}const _0x213701=new Set();for(const _0x3f62f5 of _0x42cdfc['inline']){const _0x203b40=_0x5143d3['getGhsAttributeNameForElement'](_0x3f62f5['element']);_0x213701['add'](_0x203b40);for(const _0x41f43e of _0x3f62f5['ghsAttributes'])_0x213701['add'](_0x41f43e);}for(const _0x2a177f of _0x2bd5e5)_0x3f16f7['registerBlockAttribute'](_0x2a177f),_0x3f16f7['descriptionFactory']['registerAttributeLabel'](_0x2a177f,o(_0x3637bd,'FORMAT_STYLE'));for(const _0x3c85c1 of _0x213701)_0x3f16f7['registerInlineAttribute'](_0x3c85c1),_0x3f16f7['descriptionFactory']['registerAttributeLabel'](_0x3c85c1,o(_0x3637bd,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10a57d=this['editor'],_0x48be4b=_0x10a57d['locale'];_0x10a57d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x547fd8=>{if('formatBlock'!=_0x547fd8['type']&&'formatInline'!=_0x547fd8['type'])return;const {data:_0x3c3e54}=_0x547fd8;return _0x3c3e54&&'style'===_0x3c3e54['commandName']?_0x3c3e54['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48be4b,'*Set\x20format:*\x20%0',_0x3c3e54['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x48be4b,'*Remove\x20format:*\x20%0',_0x3c3e54['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x535ab4{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x53b305){super(_0x53b305),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x332048=this['editor'],_0x462702=_0x332048['model']['document']['selection'];if(!_0x332048['plugins']['has']('TableEditing'))return;const _0x3a26fe=_0x332048['locale'],_0x475c55=_0x332048['plugins']['get']('TrackChangesEditing'),_0x5d167f=_0x332048['plugins']['get']('TableUtils');_0x475c55['descriptionFactory']['registerElementLabel']('table',_0x265728=>o(_0x3a26fe,'ELEMENT_TABLE',_0x265728)),this['_setupColumnsRowsFixing'](),_0x475c55['enableCommand']('insertTable'),_0x475c55['enableCommand']('selectTableRow'),_0x475c55['enableCommand']('selectTableColumn');for(const _0x4e4fa9 of['insertTableRowAbove','insertTableRowBelow']){const _0x1f4bb4=_0x332048['commands']['get'](_0x4e4fa9);_0x475c55['enableCommand'](_0x4e4fa9,_0x3238ad=>{_0x332048['model']['change'](_0x3eb31d=>{_0x3238ad();const _0x56ded6='above'===_0x1f4bb4['order'],_0x6f0b25=_0x5d167f['getSelectionAffectedTableCells'](_0x462702),_0x5b829d=_0x5d167f['getRowIndexes'](_0x6f0b25),_0x35af00=_0x56ded6?_0x5b829d['first']-0x1:_0x5b829d['last']+0x1,_0x660b35=_0x6f0b25[0x0]['findAncestor']('table'),_0xbd8984=_0x5d167f['createTableWalker'](_0x660b35,{'startRow':_0x35af00,'endRow':_0x35af00}),_0x2d971f=Array['from'](_0xbd8984)['map'](_0x30e7d8=>_0x3eb31d['createRangeOn'](_0x30e7d8['cell']));_0x475c55['markMultiRangeInsertion'](_0x2d971f,'tableRow');});});}for(const _0x3723c6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4e7def=_0x332048['commands']['get'](_0x3723c6);_0x475c55['enableCommand'](_0x3723c6,_0x4100e6=>{_0x332048['model']['change'](_0x531c73=>{_0x4100e6();const _0x5a1a60='left'===_0x4e7def['order'],_0x3603ad=_0x5d167f['getSelectionAffectedTableCells'](_0x462702),_0x12d78d=_0x5d167f['getColumnIndexes'](_0x3603ad),_0x4e1188=_0x5a1a60?_0x12d78d['first']-0x1:_0x12d78d['last']+0x1,_0x2c002a=_0x3603ad[0x0]['findAncestor']('table'),_0x3a7cf2=_0x5d167f['createTableWalker'](_0x2c002a,{'startRow':0x0,'column':_0x4e1188,'includeAllSlots':!0x1}),_0x51c453=Array['from'](_0x3a7cf2)['map'](_0x25be05=>_0x531c73['createRangeOn'](_0x25be05['cell']));_0x475c55['markMultiRangeInsertion'](_0x51c453,'tableColumn');});});}for(const _0x112732 of['removeTableRow','removeTableColumn']){const _0x3a9dca=_0x112732['substr'](0xb),_0x5342fc=_0x3a9dca['toLowerCase'](),_0xd4949b=_0x5342fc['substr'](0x0,0x3)+'span',_0x59b78d='table'+_0x3a9dca,_0x2d1217='min'+_0x3a9dca,_0x44f2dc='max'+_0x3a9dca;_0x475c55['enableCommand'](_0x112732,()=>{_0x332048['model']['change'](_0x16510f=>{const _0x162377=_0x5d167f['getSelectionAffectedTableCells'](_0x462702),_0x347adb=_0x162377[0x0]['findAncestor']('table');let _0x2b2740;if('removeTableRow'==_0x112732){const _0xad5c5a=_0x5d167f['getRowIndexes'](_0x162377);_0x2b2740={'startRow':_0xad5c5a['first'],'endRow':_0xad5c5a['last'],'includeAllSlots':!0x0};}else{const _0x5c6bdd=_0x5d167f['getColumnIndexes'](_0x162377);_0x2b2740={'startColumn':_0x5c6bdd['first'],'endColumn':_0x5c6bdd['last'],'includeAllSlots':!0x0};}const _0x1865e0=_0x5d167f['createTableWalker'](_0x347adb,_0x2b2740),_0x4fd8c8=Array['from'](_0x1865e0)['map'](({cell:_0x5d7f73})=>_0x5d7f73),_0x46cb73=be(_0x4fd8c8['filter'](_0x418926=>_0x418926['hasAttribute'](_0xd4949b))),_0x3031ad=be(_0x4fd8c8['filter'](_0x37e91f=>!_0x37e91f['hasAttribute'](_0xd4949b)))['map'](_0x396b38=>_0x16510f['createRangeOn'](_0x396b38)),_0xaf9d7c=_0x475c55['markMultiRangeDeletion'](_0x3031ad,_0x59b78d);if(_0xaf9d7c&&('tableRow'==_0xaf9d7c['subType']||'tableColumn'==_0xaf9d7c['subType'])){const _0x34d1a0=this['_getSuggestionCoords'](_0xaf9d7c);for(const _0x39db5c of _0x46cb73){const _0x17efb7=_0x16510f['createRangeOn'](_0x39db5c),_0x483d35=_0x5d167f['getCellLocation'](_0x39db5c),_0x3a282c=_0x39db5c['getAttribute'](_0xd4949b)-0x1,_0x150b22=_0x34d1a0[_0x2d1217],_0x51a8e1=_0x34d1a0[_0x44f2dc];_0x150b22<=_0x483d35[_0x5342fc]&&_0x483d35[_0x5342fc]+_0x3a282c<=_0x51a8e1&&_0xaf9d7c['addRange'](_0x17efb7);}}});});}function _0x29c3b2(_0x2bf1aa){const _0xbd3e63=Array['from'](_0x462702['getRanges']())['map'](_0x135cee=>_0x146d11['fromRange'](_0x135cee));_0x332048['model']['change'](_0x4cd644=>{const _0xfb54e5=_0x4cd644['batch'];_0x2bf1aa=_0x2bf1aa['filter'](_0x1b5555=>'$graveyard'!=_0x1b5555['root']['rootName']),_0x4cd644['setSelection'](_0x2bf1aa),_0x332048['commands']['get']('removeTableRow')['refresh'](),_0x332048['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x332048['model']['enqueueChange'](()=>{_0x332048['model']['enqueueChange'](_0xfb54e5,_0x4ebe07=>{const _0x36eaa4=_0xbd3e63['filter'](_0x2373a6=>'$graveyard'!=_0x2373a6['root']['rootName']);_0x36eaa4['length']>0x0&&_0x4ebe07['setSelection'](_0x36eaa4);for(const _0x33ab98 of _0xbd3e63)_0x33ab98['detach']();});});});}function _0x16ebb7(_0x566b09){_0x332048['model']['change'](_0x2d193a=>{const _0x331b7e=Array['from'](_0x462702['getRanges']())['map'](_0x40b465=>_0x146d11['fromRange'](_0x40b465)),_0x5a5844=[];for(const _0x2346e5 of _0x566b09)for(const _0x32222e of _0x2346e5['getItems']({'shallow':!0x0}))_0x5a5844['push'](_0x32222e);for(const _0x2e0924 of _0x5a5844)'$graveyard'!=_0x2e0924['root']['rootName']&&(_0x2d193a['setSelection'](_0x2d193a['createPositionAt'](_0x2e0924,0x0)),_0x332048['commands']['get']('removeTableColumn')['refresh'](),_0x332048['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4a1fc7=_0x331b7e['filter'](_0x26ce41=>'$graveyard'!=_0x26ce41['root']['rootName']);_0x4a1fc7['length']>0x0&&_0x2d193a['setSelection'](_0x4a1fc7);for(const _0x4f19de of _0x331b7e)_0x4f19de['detach']();});}function _0x5828c3(_0x54b389,_0x2b7f9a){return _0x2b7f9a['every'](_0x4afa1d=>_0x54b389['some'](_0x7e3993=>_0x7e3993['end']['isEqual'](_0x4afa1d['start'])||_0x4afa1d['end']['isEqual'](_0x7e3993['start'])));}function _0x440882(_0x326cc4,_0xe15da8){return!_0x326cc4['some'](_0x416bf2=>_0xe15da8['some'](_0x57a311=>_0x416bf2['isIntersecting'](_0x57a311)))&&_0x326cc4['some'](_0x29d1a5=>_0xe15da8['some'](_0x47e464=>_0x29d1a5['end']['isTouching'](_0x47e464['start'])));}_0x332048['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29af52,_0x518939,_0x1571d2)=>{if(!_0x1571d2['options']['showSuggestionHighlights'])return;const _0x9022a2=_0x518939['item'];if(!_0x9022a2)return;const _0x511ce9=_0x1571d2['mapper']['toViewElement'](_0x9022a2);function _0x1c037a(_0x30da8b){return Array['isArray'](_0x30da8b)?_0x30da8b:[_0x30da8b];}_0x511ce9&&'tableCell'===_0x9022a2['name']&&_0x1ca611(_0x511ce9,_0x1571d2['writer'],(_0x3f5fc0,_0x4f1343,_0xaf18db)=>_0xaf18db['addClass'](_0x1c037a(_0x4f1343['classes']),_0x3f5fc0),(_0x8f6f4f,_0x5ea985,_0x55ddd0)=>_0x55ddd0['removeClass'](_0x1c037a(_0x5ea985['classes']),_0x8f6f4f));},{'priority':'highest'}),_0x475c55['descriptionFactory']['registerDescriptionCallback'](_0x59fc61=>{if('insertion'!=_0x59fc61['type']&&'deletion'!=_0x59fc61['type'])return;const _0x29a769=_0x59fc61['getContainedElement']();if(null!=_0x29a769&&_0x29a769['is']('element','table')){if('insertion'==_0x59fc61['type']){const _0x145238=_0x59fc61['getItems']()['filter'](_0x5655ba=>_0x5655ba['is']('$textProxy'))['map'](_0x530e25=>_0x530e25['data']);if(_0x145238['length'])return{'type':'insertion','content':o(_0x3a26fe,'*Insert:*\x20%0',o(_0x3a26fe,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x145238['join']('\x20')+'\x22'))};}if('deletion'==_0x59fc61['type']){const _0x32b9d4=_0x59fc61['getItems']()['filter'](_0x194e18=>_0x194e18['is']('$textProxy'))['map'](_0x395d59=>_0x395d59['data']);if(_0x32b9d4['length'])return{'type':'deletion','content':o(_0x3a26fe,'*Remove:*\x20%0',o(_0x3a26fe,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x32b9d4['join']('\x20')+'\x22'))};}}}),_0x475c55['descriptionFactory']['registerDescriptionCallback'](_0x6a9b50=>{if('tableRow'==_0x6a9b50['subType']){const _0x3ba3a9=_0x6a9b50['getItems']()['filter'](_0x289d47=>_0x289d47['is']('$textProxy'))['map'](_0x4d4a6c=>_0x4d4a6c['data']),_0x47e813=this['_getSuggestionCoords'](_0x6a9b50),_0x1730c4=_0x47e813['maxRow']-_0x47e813['minRow']+0x1;if('insertion'==_0x6a9b50['type'])return _0x3ba3a9['length']?{'type':'insertion','content':o(_0x3a26fe,'*Insert:*\x20%0',o(_0x3a26fe,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1730c4,'\x22'+_0x3ba3a9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a26fe,'*Insert:*\x20%0',o(_0x3a26fe,'ELEMENT_TABLE_ROW',_0x1730c4))};if('deletion'==_0x6a9b50['type'])return _0x3ba3a9['length']?{'type':'deletion','content':o(_0x3a26fe,'*Remove:*\x20%0',o(_0x3a26fe,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1730c4,'\x22'+_0x3ba3a9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a26fe,'*Remove:*\x20%0',o(_0x3a26fe,'ELEMENT_TABLE_ROW',_0x1730c4))};}if('tableColumn'==_0x6a9b50['subType']){const _0x4b4e95=_0x6a9b50['getItems']()['filter'](_0x777d77=>_0x777d77['is']('$textProxy'))['map'](_0x4915e8=>_0x4915e8['data']),_0xa84352=this['_getSuggestionCoords'](_0x6a9b50),_0x31b705=_0xa84352['maxColumn']-_0xa84352['minColumn']+0x1;if('insertion'==_0x6a9b50['type'])return _0x4b4e95['length']?{'type':'insertion','content':o(_0x3a26fe,'*Insert:*\x20%0',o(_0x3a26fe,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31b705,'\x22'+_0x4b4e95['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a26fe,'*Insert:*\x20%0',o(_0x3a26fe,'ELEMENT_TABLE_COLUMN',_0x31b705))};if('deletion'==_0x6a9b50['type'])return _0x4b4e95['length']?{'type':'deletion','content':o(_0x3a26fe,'*Remove:*\x20%0',o(_0x3a26fe,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31b705,'\x22'+_0x4b4e95['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a26fe,'*Remove:*\x20%0',o(_0x3a26fe,'ELEMENT_TABLE_COLUMN',_0x31b705))};}}),_0x475c55['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x29c3b2),_0x475c55['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x29c3b2),_0x475c55['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x16ebb7),_0x475c55['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x16ebb7),_0x475c55['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5828c3),_0x475c55['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5828c3),_0x475c55['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x440882),_0x475c55['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x440882);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1982d4=this['editor'],_0x33693f=_0x1982d4['model']['document']['selection'];return(_0x31ec68,_0xdcdb9c)=>{_0x1982d4['model']['change'](_0x2a06d9=>{const {commandName:_0x361d42,commandParams:_0x166a93}=_0xdcdb9c;let _0x4a6d03=_0x31ec68[0x0]['end']['nodeBefore'];_0x166a93&&_0x166a93[0x0]&&!0x1===_0x166a93[0x0]['forceValue']&&(_0x4a6d03=_0x31ec68[0x0]['start']['nodeAfter']);const _0x308143=_0x2a06d9['createRangeIn'](_0x4a6d03);if('$graveyard'==_0x308143['root']['rootName'])return;const _0x488c12=Array['from'](_0x33693f['getRanges']())['map'](_0x63afcd=>_0x146d11['fromRange'](_0x63afcd));_0x2a06d9['setSelection'](_0x308143),_0x1982d4['commands']['get'](_0x361d42)['refresh'](),_0x166a93['push']({'forceDefaultExecution':!0x0}),_0x1982d4['execute'](_0x361d42,..._0x166a93);const _0x4d7244=_0x488c12['filter'](_0x471fbf=>'$graveyard'!=_0x471fbf['root']['rootName']);_0x4d7244['length']>0x0&&_0x2a06d9['setSelection'](_0x4d7244);for(const _0x2ebd4b of _0x488c12)_0x2ebd4b['detach']();});};}['_getCoordsForCells'](_0x41b2ba){const _0x26631a=this['editor']['plugins']['get']('TableUtils');let _0x192af0=Number['MAX_SAFE_INTEGER'],_0x5e91fb=Number['MIN_SAFE_INTEGER'],_0x103d56=Number['MAX_SAFE_INTEGER'],_0x2aeadf=Number['MIN_SAFE_INTEGER'];for(const _0x562323 of _0x41b2ba){if('$graveyard'==_0x562323['root']['rootName'])continue;const {row:_0x1f9eb7,column:_0x17a822}=_0x26631a['getCellLocation'](_0x562323),_0x21c9b4=_0x562323['hasAttribute']('rowspan')?_0x562323['getAttribute']('rowspan')-0x1:0x0,_0xd5192b=_0x562323['hasAttribute']('colspan')?_0x562323['getAttribute']('colspan')-0x1:0x0;_0x192af0=_0x1f9eb7<_0x192af0?_0x1f9eb7:_0x192af0,_0x5e91fb=_0x1f9eb7+_0x21c9b4>_0x5e91fb?_0x1f9eb7+_0x21c9b4:_0x5e91fb,_0x103d56=_0x17a822<_0x103d56?_0x17a822:_0x103d56,_0x2aeadf=_0x17a822+_0xd5192b>_0x2aeadf?_0x17a822+_0xd5192b:_0x2aeadf;}return{'minRow':_0x192af0,'maxRow':_0x5e91fb,'minColumn':_0x103d56,'maxColumn':_0x2aeadf};}['_setupColumnsRowsFixing'](){const _0x58b805=this['editor'],_0x41a3bf=_0x58b805['plugins']['get']('TrackChangesEditing'),_0x129718=_0x58b805['plugins']['get']('TableUtils');_0x58b805['model']['document']['on']('change:data',()=>{const _0x4d581b=Array['from'](_0x58b805['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa2624e,data:_0x558255}of _0x4d581b){const {group:_0x1f216c,id:_0x58e35a,subType:_0x5ccdf4}=_0x41a3bf['_splitMarkerName'](_0xa2624e);if('suggestion'!=_0x1f216c)continue;if(null!=_0x558255['oldRange'])continue;const _0x439b92=_0x41a3bf['getSuggestion'](_0x58e35a);this['_tablePostFixingSubtypes']['includes'](_0x5ccdf4)&&this['_tableSuggestions']['add'](_0x439b92);}},{'priority':'low'});const _0x5cd318=(_0x497042,_0x7b8ea)=>{let _0x44ebc9=!0x1;const _0x2caed7=_0x7b8ea['createRangeOn'](_0x497042),_0x23fe3e=_0x497042['findAncestor']('table'),_0x13ba0d=_0x129718['getCellLocation'](_0x497042);for(const _0x57fda3 of this['_tableSuggestions']){const _0x36b606=_0x57fda3['subType'],_0x45960b=_0x36b606['startsWith']('tablePaste'),_0x1a6a98=_0x36b606['substr'](_0x45960b?0xa:0x5),_0x3cdbf2=_0x1a6a98['toLowerCase'](),_0x304856=_0x3cdbf2['substr'](0x0,0x3)+'span',_0x56e047='min'+_0x1a6a98,_0x2b208c='max'+_0x1a6a98;if(!_0x57fda3['isInContent'])continue;if(_0x23fe3e!=_0x57fda3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x57fda3['isIntersectingWithRange'](_0x2caed7))continue;const _0x536c30=_0x497042['hasAttribute'](_0x304856)?_0x497042['getAttribute'](_0x304856)-0x1:0x0,_0x304e81=this['_getSuggestionCoords'](_0x57fda3),_0x43fac6=_0x304e81[_0x56e047],_0xdf8b36=_0x304e81[_0x2b208c];_0x43fac6<=_0x13ba0d[_0x3cdbf2]&&_0x13ba0d[_0x3cdbf2]+_0x536c30<=_0xdf8b36&&(_0x57fda3['addRange'](_0x2caed7),_0x44ebc9=!0x0);}return _0x44ebc9;};_0x58b805['model']['document']['registerPostFixer'](_0x2d28c1=>{let _0x3fc9e4=!0x1;for(const _0x43870c of _0x58b805['model']['document']['differ']['getChanges']())if('insert'==_0x43870c['type']){if('tableRow'==_0x43870c['name']){for(const _0x878142 of _0x43870c['position']['nodeAfter']['getChildren']())_0x3fc9e4=_0x3fc9e4||_0x5cd318(_0x878142,_0x2d28c1);}else'tableCell'==_0x43870c['name']&&(_0x3fc9e4=_0x3fc9e4||_0x5cd318(_0x43870c['position']['nodeAfter'],_0x2d28c1));}return _0x3fc9e4;});}['_getSuggestionCoords'](_0x442bc7){return this['_getCoordsForCells'](_0x442bc7['getRanges']()['map'](_0x53f3c6=>_0x53f3c6['start']['nodeAfter']));}}function be(_0x572910){return Array['from'](new Set(_0x572910)['values']());}class vt extends _0x535ab4{static get['requires'](){return[It];}['afterInit'](){const _0x45615a=this['editor'],_0x499097=_0x45615a['model']['document']['selection'],_0x28ae7b=_0x45615a['locale'];if(!_0x45615a['plugins']['has']('TableEditing'))return;const _0x335a3d=_0x45615a['plugins']['get']('TrackChangesEditing'),_0x35b39c=_0x45615a['plugins']['get']('TableUtils'),_0x46007f=_0x45615a['plugins']['get'](It);_0x46007f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x335a3d['enableCommand']('mergeTableCells',()=>{const _0x3f38d4=_0x35b39c['getSelectionAffectedTableCells'](_0x45615a['model']['document']['selection']);_0x45615a['model']['change'](()=>{_0x335a3d['markMultiRangeBlockFormat'](_0x3f38d4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x45615a['commands']['get']('mergeTableCells')['on']('execute',(_0x729aa9,_0x16e193)=>{_0x45615a['commands']['get']('trackChanges')['value']&&(_0x16e193['length']>0x0&&_0x16e193[_0x16e193['length']-0x1]&&_0x16e193[_0x16e193['length']-0x1]['forceDefaultExecution']||_0x335a3d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x729aa9['stop']());},{'priority':'highest'});for(const _0x4b6556 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2afb58=_0x45615a['commands']['get'](_0x4b6556);_0x335a3d['enableCommand'](_0x4b6556,()=>{const _0x505e14=_0x45615a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x55338e=>_0x55338e['is']('element','tableCell')),_0x5d9766=_0x2afb58['value'];_0x45615a['model']['change'](()=>{_0x335a3d['markMultiRangeBlockFormat']([_0x505e14,_0x5d9766],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3f87b0 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3e09a8=_0x45615a['commands']['get'](_0x3f87b0);_0x335a3d['enableCommand'](_0x3f87b0,()=>{const _0x5fb15d=_0x35b39c['getSelectionAffectedTableCells'](_0x45615a['model']['document']['selection'])[0x0],_0x157cd2=_0x5fb15d['findAncestor']('table'),{column:_0x3cbee8,row:_0xbb7448}=_0x35b39c['getCellLocation'](_0x5fb15d);let _0x56d1b5=[];if('horizontally'==_0x3e09a8['direction']){const _0x11bd5b=_0x35b39c['createTableWalker'](_0x157cd2,{'startRow':_0xbb7448,'endRow':_0xbb7448,'includeAllSlots':!0x0});_0x56d1b5=Array['from'](_0x11bd5b)['map'](_0xc1f01a=>_0xc1f01a['cell']);}else{const _0x3b9a18=_0x35b39c['createTableWalker'](_0x157cd2,{'column':_0x3cbee8,'includeAllSlots':!0x0});_0x56d1b5=Array['from'](_0x3b9a18)['map'](_0x134ff9=>_0x134ff9['cell']);}_0x45615a['model']['change'](_0x797ef6=>{_0x335a3d['markBlockFormat'](_0x797ef6['createRangeOn'](_0x5fb15d),{'commandName':_0x3f87b0,'commandParams':[]},_0x56d1b5,_0x3f87b0);});});}_0x335a3d['descriptionFactory']['registerDescriptionCallback'](_0x2f9fe1=>{if('formatBlock'!=_0x2f9fe1['type']&&'formatInline'!=_0x2f9fe1['type'])return;const {data:_0x513896}=_0x2f9fe1;return _0x513896&&'mergeTableCells'==_0x513896['commandName']?{'type':'format','content':o(_0x28ae7b,'*Merge\x20cells*')}:void 0x0;}),_0x335a3d['descriptionFactory']['registerDescriptionCallback'](_0x178a06=>{if('formatBlock'!=_0x178a06['type']&&'formatInline'!=_0x178a06['type'])return;const {data:_0x5c4287}=_0x178a06;return _0x5c4287?'splitTableCellVertically'==_0x5c4287['commandName']?{'type':'format','content':o(_0x28ae7b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5c4287['commandName']?{'type':'format','content':o(_0x28ae7b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4f89fe=_0x46007f['_acceptFormatSuggestionCallbackFactory']();for(const _0x3016ab of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x335a3d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3016ab,'accept',_0x4f89fe);for(const _0x3950b5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x335a3d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3950b5,'accept',_0x4f89fe);_0x335a3d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x9eac6c=>{_0x45615a['model']['change'](_0x21b7c4=>{const _0x56759d=Array['from'](_0x499097['getRanges']())['map'](_0x45ede=>_0x146d11['fromRange'](_0x45ede));_0x21b7c4['setSelection'](_0x9eac6c),_0x45615a['commands']['get']('mergeTableCells')['refresh'](),_0x45615a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x24ad61=_0x56759d['filter'](_0x2be97b=>'$graveyard'!=_0x2be97b['root']['rootName']);_0x24ad61['length']>0x0&&_0x21b7c4['setSelection'](_0x24ad61);for(const _0x1c1096 of _0x56759d)_0x1c1096['detach']();});});for(const _0x32a2b2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2cea95=_0x45615a['commands']['get'](_0x32a2b2);_0x2cea95['on']('set:isEnabled',(_0x3a9a1,_0x308e85,_0x4f3763)=>{if(_0x4f3763){const _0x4f27c6=_0x45615a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x20dc3c=>_0x20dc3c['is']('element','tableCell'));this['_areMergableCells'](_0x2cea95['value'],_0x4f27c6)||(_0x3a9a1['return']=!0x1,_0x3a9a1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3f29b7=this['editor']['commands']['get']('mergeTableCells'),_0x64d0ad=this['editor']['plugins']['get']('TableUtils');if(!_0x3f29b7['isEnabled'])return!0x1;const _0x1fd831=_0x64d0ad['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5236a3 of _0x1fd831)for(const _0x5119a4 of _0x1fd831)if(_0x5236a3!=_0x5119a4&&!this['_areMergableCells'](_0x5236a3,_0x5119a4))return!0x1;return!0x0;}['_areMergableCells'](_0x4d8ed0,_0x8be0fa){const _0x45fd79=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54cedb=this['editor']['model']['createRangeOn'](_0x4d8ed0),_0x302e43=this['editor']['model']['createRangeOn'](_0x8be0fa),_0x134ad9=new Set(),_0x46c80d=new Set();for(const _0x253b6a of _0x45fd79['getSuggestions']())if(('insertion'==_0x253b6a['type']||'deletion'==_0x253b6a['type']||'mergeTableCells'==_0x253b6a['subType'])&&_0x253b6a['isInContent']){for(const _0xd6ce5f of _0x253b6a['getRanges']())_0xd6ce5f['containsRange'](_0x54cedb,!0x0)&&_0x134ad9['add'](_0x253b6a['type']+':'+_0x253b6a['author']['id']),_0xd6ce5f['containsRange'](_0x302e43,!0x0)&&_0x46c80d['add'](_0x253b6a['type']+':'+_0x253b6a['author']['id']);}if(_0x134ad9['size']!=_0x46c80d['size'])return!0x1;for(const _0x315a6a of _0x134ad9)if(!_0x46c80d['has'](_0x315a6a))return!0x1;return!0x0;}}class Ct extends _0x535ab4{static get['requires'](){return[It];}['afterInit'](){const _0x4cf470=this['editor'];if(!_0x4cf470['plugins']['has']('TableEditing'))return;const _0x2af862=_0x4cf470['locale'],_0x35d6dd=_0x4cf470['plugins']['get']('TrackChangesEditing');_0x35d6dd['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x35d6dd['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x35d6dd['registerBlockAttribute']('headingRows'),_0x35d6dd['registerBlockAttribute']('headingColumns'),_0x35d6dd['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2af862,'FORMAT_HEADER_ROW')),_0x35d6dd['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2af862,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x37baa3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f308b=this['editor']['plugins']['get']('TableUtils'),_0x418708=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x2a9f48({showActiveMarker:_0x28c914=!0x0,setDataAttribute:_0x5b8714=!0x0}={}){return(_0x2e45de,_0x1d5192,_0x457749)=>{const {type:_0x32712d,id:_0x228f63}=_0x37baa3['_splitMarkerName'](_0x1d5192['markerName']),_0x167c66=_0x37baa3['getSuggestion'](_0x228f63),_0x2e03cb=_0x167c66['data'];if('formatBlock'!=_0x167c66['type']||!_0x2e03cb||'setTableColumnHeader'!=_0x2e03cb['commandName'])return;if(_0x1d5192['item'])return void _0x2e45de['stop']();if(!_0x457749['consumable']['consume'](_0x1d5192['markerRange'],_0x2e45de['name']))return;const _0x844f70=_0x1d5192['markerRange']['start']['nodeAfter'],_0x303cc1=_0x1d5192['markerRange']['end']['nodeBefore'],_0x4cc549=_0x844f70['parent']['parent'],{column:_0x463888}=_0x1f308b['getCellLocation'](_0x844f70),{column:_0x28749d}=_0x1f308b['getCellLocation'](_0x303cc1);for(let _0xbc5f5c=_0x463888;_0xbc5f5c<=_0x28749d;_0xbc5f5c++){const _0x433469=_0x1f308b['createTableWalker'](_0x4cc549,{'column':_0xbc5f5c,'includeAllSlots':!0x1});for(const _0x206ee0 of _0x433469){const _0x578794=_0x206ee0['cell'],_0x484075=_0x457749['mapper']['toViewElement'](_0x578794);_0x457749['writer']['addClass']('ck-suggestion-marker-'+_0x32712d,_0x484075),_0x5b8714&&_0x457749['writer']['setAttribute']('data-suggestion',_0x228f63,_0x484075),_0x457749['mapper']['bindElementToMarker'](_0x484075,_0x1d5192['markerName']),_0x28c914&&(_0x37baa3['activeMarkers']['includes'](_0x1d5192['markerName'])?_0x457749['writer']['addClass']('ck-suggestion-marker--active',_0x484075):_0x457749['writer']['removeClass']('ck-suggestion-marker--active',_0x484075));}}};}_0x37baa3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x418708),_0x37baa3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x418708),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2a9f48(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c7bdb,_0x106bea,_0x5854e9)=>{_0x5854e9['options']['showSuggestionHighlights']&&_0x2a9f48({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2c7bdb,_0x106bea,_0x5854e9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x469cda,_0x43919b,_0x5002d2)=>{const {type:_0x5ae72c,id:_0x353bb9}=_0x37baa3['_splitMarkerName'](_0x43919b['markerName']),_0x57e85f=_0x37baa3['getSuggestion'](_0x353bb9),_0x3b2b7f=_0x57e85f['data'];if('formatBlock'!=_0x57e85f['type']||!_0x3b2b7f||'setTableColumnHeader'!=_0x3b2b7f['commandName'])return;const _0x1495f4=_0x5002d2['mapper']['markerNameToElements'](_0x43919b['markerName']);if(_0x1495f4){for(const _0x2f5f99 of _0x1495f4)_0x5002d2['writer']['removeClass']('ck-suggestion-marker-'+_0x5ae72c,_0x2f5f99),_0x5002d2['writer']['removeClass']('ck-suggestion-marker--active',_0x2f5f99),_0x5002d2['writer']['removeAttribute']('data-suggestion',_0x2f5f99),_0x5002d2['mapper']['unbindElementFromMarkerName'](_0x2f5f99,_0x43919b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3722d2=this['editor'],_0x22f416=_0x3722d2['locale'];function _0x5a388c(_0x46c053){return{'type':'format','content':o(_0x22f416,'*Format:*\x20%0',_0x46c053)};}_0x3722d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe6c321=>{if('formatBlock'!=_0xe6c321['type'])return;const {data:_0x422a26}=_0xe6c321;if(_0x422a26){if('setTableRowHeader'==_0x422a26['commandName']){const _0x1c80ae=_0x422a26['commandParams'][0x0]['forceValue'];return _0x5a388c(o(_0x22f416,_0x1c80ae?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x422a26['commandName']){const _0x32ed74=_0x422a26['commandParams'][0x0]['forceValue'];return _0x5a388c(o(_0x22f416,_0x32ed74?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x13b03d=>[_0x13b03d,null]));class _t extends _0x535ab4{static get['requires'](){return[It];}['afterInit'](){const _0x46817e=this['editor'];if(!_0x46817e['plugins']['has']('TableClipboard'))return;const _0x416767=_0x46817e['plugins']['get']('TrackChangesEditing'),_0x5e2afa=_0x46817e['plugins']['get']('TableUtils'),_0x5794ce=_0x46817e['plugins']['get'](It),_0x1e5f6e=_0x46817e['plugins']['get']('TableClipboard');_0x5794ce['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x46817e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x46817e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x322afa=null;_0x46817e['model']['on']('insertContent',(_0x5100e3,_0x23b7d6)=>{const [_0x5441bd,_0xf78217]=_0x23b7d6,_0x46cc41=_0x23b7d6[_0x23b7d6['length']-0x1];_0x46cc41&&_0x46cc41['forceDefaultExecution']||_0x416767['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x44553c,_0x5ef006,_0xc11a0f,_0x192f24,_0x40066e){if(_0x5ef006&&!_0x5ef006['is']('documentSelection'))return!0x1;const _0x2482e0=_0x40066e['getTableIfOnlyTableInContent'](_0x44553c,_0xc11a0f);if(!_0x2482e0||!Re(_0x2482e0,void 0x0,_0x192f24))return!0x1;const _0x3761ef=_0x192f24['getSelectionAffectedTableCells'](_0xc11a0f['document']['selection']);if(!_0x3761ef['length'])return!0x1;const _0x2e0318=_0x3761ef[0x0]['findAncestor']('table'),_0x5edcd2=_0x192f24['getRowIndexes'](_0x3761ef),_0x5db594=_0x192f24['getColumnIndexes'](_0x3761ef),_0x98d829={'startRow':_0x5edcd2['first'],'endRow':_0x5edcd2['last'],'startColumn':_0x5db594['first'],'endColumn':_0x5db594['last']};return 0x1==_0x3761ef['length']&&(_0x98d829['endRow']+=_0x192f24['getRows'](_0x2482e0)-0x1,_0x98d829['endColumn']+=_0x192f24['getColumns'](_0x2482e0)-0x1),Re(_0x2e0318,_0x98d829,_0x192f24);}(_0x5441bd,_0xf78217,_0x46817e['model'],_0x5e2afa,_0x1e5f6e)&&(_0x5100e3['stop'](),_0x322afa={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x46817e['model']['change'](()=>{_0x46817e['model']['insertContent'](_0x23b7d6[0x0],_0x23b7d6[0x1],_0x23b7d6[0x2],{'forceDefaultExecution':!0x0});const _0x10b3e0=_0x2325fc(),{rowInsertionRanges:_0x3e4586,columnInsertionRanges:_0xa31e92,insertionRanges:_0x1af03e,deletionRanges:_0x19e942,cells:_0x1f0ada}=_0x322afa;_0x3e4586['length']&&_0x416767['markMultiRangeInsertion'](_0x3e4586,'tablePasteRow',{'tablePasteChainId':_0x10b3e0}),_0xa31e92['length']&&_0x416767['markMultiRangeInsertion'](_0xa31e92,'tablePasteColumn',{'tablePasteChainId':_0x10b3e0}),_0x1af03e['length']&&(_0x416767['markMultiRangeInsertion'](_0x1af03e,'tablePaste',{'tablePasteChainId':_0x10b3e0,'skipNestingCheck':!0x0}),_0x1af03e['forEach'](_0xf02376=>_0xf02376['detach']?.())),_0x19e942['length']&&(_0x416767['markMultiRangeDeletion'](_0x19e942,'tablePaste',{'tablePasteChainId':_0x10b3e0,'skipNestingCheck':!0x0}),_0x19e942['forEach'](_0x4092f7=>_0x4092f7['detach']?.()));const _0x6a3df0=_0x416767['markMultiRangeBlockFormat'](_0x1f0ada['map'](({element:_0x217ce5})=>_0x217ce5),{'formatGroupId':_0x2325fc()},[],'tablePasteCell',{'tablePasteChainId':_0x10b3e0});if(_0x6a3df0){const _0x1e0f5c=_0x6a3df0['getMarkers'](),_0xff1cea=[];for(const {element:_0x3b4d4c,attributes:_0x1c7cf3}of _0x1f0ada){if(!_0x1c7cf3)continue;const _0x4c29c1=_0x46817e['model']['createRangeOn'](_0x3b4d4c),_0xe583fd=_0x1e0f5c['find'](_0x5488d8=>_0x5488d8['getRange']()['isEqual'](_0x4c29c1));_0xe583fd&&_0xff1cea['push']([_0xe583fd['name'],_0x1c7cf3]);}_0xff1cea['length']&&_0x6a3df0['setAttribute']('markerAttributes',Object['fromEntries'](_0xff1cea));}_0x322afa=null;}));},{'priority':_0x15aa47['high']+0xa}),_0x46817e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xac1c1b,_0xb540ba)=>{const [_0x1cd386,_0x2c9288,,_0x50ee97]=_0xb540ba;if(!_0x322afa)return;_0xac1c1b['stop']();const _0xe3c2f=_0x1cd386['cell'],_0x1dc89b=_0x2c9288,_0x50412d=ke(_0xe3c2f),_0x5dd936=ke(_0x1dc89b);_0xac1c1b['return']=_0xe3c2f;let _0x541676=null,_0x4fc51d=null;if(_0x5dd936||_0x50412d){if(_0x50412d&&!_0x5dd936){_0x50ee97['remove'](_0xe3c2f['getChild'](0x0));for(const _0x12c749 of Array['from'](_0x1dc89b['getChildren']()))_0x50ee97['insert'](_0x12c749,_0xe3c2f,'end');const _0x1f6770=_0x322afa['rowInsertionIndexes']['includes'](_0x1cd386['row']),_0x4830c3=_0x322afa['columnInsertionIndexes']['includes'](_0x1cd386['column']);_0x1f6770||_0x4830c3||(_0x541676=_0x146d11['fromRange'](_0x50ee97['createRangeIn'](_0xe3c2f)));}else _0x5dd936&&!_0x50412d&&(_0x4fc51d=_0x50ee97['createRangeIn'](_0xe3c2f));}else{const _0x8b8554=_0x50ee97['createElement']('tableCellSuggestion'),_0x3d0931=_0x50ee97['createElement']('tableCellSuggestion');_0x50ee97['wrap'](_0x50ee97['createRangeIn'](_0xe3c2f),_0x3d0931),_0x50ee97['insert'](_0x8b8554,_0xe3c2f,0x0);for(const _0x2127c4 of Array['from'](_0x1dc89b['getChildren']()))_0x50ee97['insert'](_0x2127c4,_0x8b8554,'end');_0x541676=_0x146d11['fromRange'](_0x50ee97['createRangeOn'](_0x8b8554)),_0x4fc51d=_0x146d11['fromRange'](_0x50ee97['createRangeOn'](_0x3d0931));}const _0x4bee1b=Array['from'](_0x1dc89b['getAttributes']())['filter'](([_0x299abc])=>Pe['includes'](_0x299abc));_0x322afa['cells']['push']({'element':_0xe3c2f,'attributes':_0x4bee1b['length']?Object['fromEntries'](_0x4bee1b):null}),_0x541676&&_0x322afa['insertionRanges']['push'](_0x541676),_0x4fc51d&&_0x322afa['deletionRanges']['push'](_0x4fc51d);},{'priority':'high'}),_0x5e2afa['on']('insertColumns',(_0xb4262e,_0x4a074e)=>{const [_0x573606,_0x8ab362={}]=_0x4a074e;if(!_0x322afa)return;const _0x5ede5f=_0x8ab362['at']||0x0,_0x2bd367=_0x8ab362['columns']||0x1;_0x322afa['columnInsertionIndexes']=new Array(_0x2bd367)['fill'](_0x5ede5f)['map']((_0x388639,_0x23d485)=>_0x388639+_0x23d485);for(const {cell:_0x22eedc}of _0x5e2afa['createTableWalker'](_0x573606,{'startColumn':_0x5ede5f,'endColumn':_0x5ede5f+_0x2bd367-0x1}))_0x322afa['columnInsertionRanges']['push'](_0x46817e['model']['createRangeOn'](_0x22eedc));},{'priority':'low'}),_0x5e2afa['on']('insertRows',(_0x108e0c,_0x22dba8)=>{const [_0x1b3033,_0x234171={}]=_0x22dba8;if(!_0x322afa)return;const _0x1a5e71=_0x234171['at']||0x0,_0x14e4eb=_0x234171['rows']||0x1;_0x322afa['rowInsertionIndexes']=new Array(_0x14e4eb)['fill'](_0x1a5e71)['map']((_0x30bef3,_0x4b8fac)=>_0x30bef3+_0x4b8fac);for(const {cell:_0x24731c}of _0x5e2afa['createTableWalker'](_0x1b3033,{'startRow':_0x1a5e71,'endRow':_0x1a5e71+_0x14e4eb-0x1}))_0x322afa['rowInsertionRanges']['push'](_0x46817e['model']['createRangeOn'](_0x24731c));},{'priority':'low'}),_0x416767['descriptionFactory']['registerDescriptionCallback'](_0x332165=>{if(_0x332165['subType']&&_0x332165['subType']['startsWith']('tablePaste'))return _0x332165['previous']?{}:{'type':'insertion','content':o(_0x46817e['locale'],'*Replace\x20table\x20cells*')};});const _0x4b930a=()=>!0x1;for(const _0x330bce of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x416767['_suggestionFactory']['registerCustomCallback']('insertion',_0x330bce,'join',_0x4b930a),_0x416767['_suggestionFactory']['registerCustomCallback']('deletion',_0x330bce,'join',_0x4b930a),_0x416767['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x330bce,'join',_0x4b930a);_0x416767['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4b930a),_0x416767['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x9009bc,_0x1ac909,_0x431556)=>{const _0x463180=_0x9009bc['map'](_0x6326a5=>_0x6326a5['getContainedElement']())['filter'](_0x27dcaa=>_0x27dcaa),_0x296910=new Map(_0x463180['map'](_0x1c6ee0=>[_0x1c6ee0,null]));if(_0x322afa){for(const {element:_0x55f15d,attributes:_0x412592}of _0x322afa['cells'])_0x412592&&_0x296910['set'](_0x55f15d,_0x412592);}else{if(_0x431556&&_0x431556['markerAttributes'])for(const [_0x27e9f4,_0x109e79]of Object['entries'](_0x431556['markerAttributes'])){const _0x3cadcf=_0x46817e['model']['markers']['get'](_0x27e9f4),_0x1761ad=_0x3cadcf?_0x3cadcf['getRange']()['getContainedElement']():null;_0x1761ad&&_0x296910['set'](_0x1761ad,_0x109e79);}}_0x46817e['model']['change'](_0x298c45=>{for(const [_0x14335a,_0x1f9d6a]of _0x296910)_0x298c45['setAttributes']({...we,..._0x1f9d6a},_0x14335a);});});const _0x1a5568=(_0x254699,_0x2ecb66)=>{_0x416767['_suggestionFactory']['registerCustomCallback'](_0x254699,'tablePaste',_0x2ecb66,(_0x335c40,_0x5df430,_0x886a86)=>{_0x46817e['model']['change'](_0x5c9fc7=>{const _0x530af6=[];for(const _0x2bbbe4 of _0x335c40){const _0x1610e1=_0x2bbbe4['start']['nodeAfter'];_0x1610e1['is']('element','tableCellSuggestion')&&_0x530af6['push'](_0x1610e1);}_0x416767['_suggestionFactory']['getSuggestionCallback'](_0x254699,null,_0x2ecb66)(_0x335c40,_0x5df430,_0x886a86);for(const _0x58fd3a of _0x530af6)'$graveyard'!=_0x58fd3a['root']['rootName']&&_0x5c9fc7['unwrap'](_0x58fd3a);});});};_0x1a5568('insertion','accept'),_0x1a5568('insertion','discard'),_0x1a5568('deletion','accept'),_0x1a5568('deletion','discard'),_0x416767['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x54ddbe=>{const _0x5cd834=_0x54ddbe['map'](_0x3567c3=>_0x3567c3['getContainedElement']()),_0x343442=_0x5cd834[0x0]['findAncestor']('table'),{minRow:_0x45eed4,maxRow:_0x3127fc}=_0x5794ce['_getCoordsForCells'](_0x5cd834);_0x5e2afa['removeRows'](_0x343442,{'at':_0x45eed4,'rows':_0x3127fc-_0x45eed4+0x1});}),_0x416767['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1f41f4=>{const _0x107cfa=_0x1f41f4['map'](_0x1710fe=>_0x1710fe['getContainedElement']()),_0x270951=_0x107cfa[0x0]['findAncestor']('table'),{minColumn:_0x29e30a,maxColumn:_0x315a6c}=_0x5794ce['_getCoordsForCells'](_0x107cfa);_0x5e2afa['removeColumns'](_0x270951,{'at':_0x29e30a,'columns':_0x315a6c-_0x29e30a+0x1});});const _0x5eba98=(_0x13e9c5,_0x3dc4ee)=>{if(!_0x3dc4ee['subType']||!_0x3dc4ee['subType']['startsWith']('tablePaste'))return;const _0x28cd33=_0x3dc4ee['attributes']['tablePasteChainId'],_0x375cc3=_0x416767['getSuggestions']()['filter'](_0x2fc219=>_0x2fc219['isInContent']&&_0x2fc219['attributes']&&_0x2fc219['attributes']['tablePasteChainId']==_0x28cd33);_0x375cc3['length']&&_0x3dc4ee['getAllAdjacentSuggestions']()['length']!=_0x375cc3['length']&&_0x375cc3['reduce']((_0x18a1dc,_0x45c995)=>(_0x18a1dc['next']=_0x45c995,_0x45c995['previous']=_0x18a1dc,_0x45c995));};function _0x503dc9(_0x2a4e7f,_0x33c115=!0x0){const {id:_0x2e0158,authorId:_0x34ced2}=_0x416767['_splitMarkerName'](_0x2a4e7f['markerName']),_0x5d34b2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x7c002d=_0x416767['activeMarkers']['includes'](_0x2a4e7f['markerName']);return _0x7c002d&&_0x5d34b2['push']('ck-suggestion-marker--active'),{'classes':_0x5d34b2,'attributes':{'data-suggestion':_0x2e0158,'data-author-id':_0x34ced2},'priority':_0x7c002d&&_0x33c115?0xbc2:0xbb8};}_0x416767['on']('suggestionLoaded',_0x5eba98,{'priority':'high'}),_0x416767['on']('suggestionUnloaded',_0x5eba98,{'priority':'high'}),_0x46817e['model']['document']['registerPostFixer'](()=>{let _0x5c8a23=!0x1;const _0x172fdc=Array['from'](_0x46817e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5f2903,data:_0x429184}of _0x172fdc){const {group:_0x148731,type:_0x3bba22,id:_0x33d025}=_0x416767['_splitMarkerName'](_0x5f2903);if('suggestion'!=_0x148731||'deletion'!=_0x3bba22||_0x429184['oldRange'])continue;if(!_0x416767['hasSuggestion'](_0x33d025))continue;const _0x53eeb5=_0x416767['getSuggestion'](_0x33d025)['getRanges'](),_0x12aeab=_0x46817e['plugins']['get']('Users')['me'];for(const _0x2c78d4 of _0x416767['getSuggestions']()){if(!_0x2c78d4['isInContent']||_0x2c78d4['author']!=_0x12aeab)continue;if('formatBlock'!=_0x2c78d4['type']||'tablePasteCell'!=_0x2c78d4['subType'])continue;if(_0x2c78d4['getRanges']()['every'](_0x13cdd1=>_0x53eeb5['some'](_0x2bb06d=>_0x2bb06d['containsRange'](_0x13cdd1,!0x0)))){for(const _0x4c80c2 of _0x2c78d4['getAllAdjacentSuggestions']())_0x4c80c2['isInContent']&&(_0x4c80c2['discard'](),_0x5c8a23=!0x0);}}}return _0x5c8a23;}),_0x46817e['model']['document']['registerPostFixer'](_0x2b6c40=>{const _0x1c8e02=_0x46817e['commands']['get']('redo');if(!_0x1c8e02||!_0x1c8e02['_createdBatches']['has'](_0x2b6c40['batch']))return!0x1;let _0x20e58f=!0x1;const _0x36e637=_0x46817e['plugins']['get']('Users')['me'],_0x28a50d=_0x46817e['model']['document']['differ']['getChanges'](),_0xe8eca7=Array['from'](_0x46817e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x103641,data:_0x32a497})=>{const {group:_0x1369db,subType:_0x5b6b94,authorId:_0x4098f9}=_0x416767['_splitMarkerName'](_0x103641);return'suggestion'==_0x1369db&&'tablePaste'==_0x5b6b94&&_0x4098f9==_0x36e637['id']&&!_0x32a497['oldRange'];});for(const _0x3e0616 of _0x28a50d){if('insert'!=_0x3e0616['type']||'tableCellSuggestion'!=_0x3e0616['name']||0x1!=_0x3e0616['length'])continue;const _0x48c577=_0x2b6c40['createRange'](_0x3e0616['position'],_0x3e0616['position']['getShiftedBy'](0x1));if(!_0xe8eca7['find'](({data:_0xe7de18})=>_0xe7de18['newRange']['isEqual'](_0x48c577))){for(const {name:_0x285ed0,data:_0x5ffff5}of _0xe8eca7)if(_0x48c577['containsRange'](_0x5ffff5['newRange'])){_0x2b6c40['updateMarker'](_0x285ed0,{'range':_0x48c577}),_0x20e58f=!0x0;break;}}}return _0x20e58f;}),_0x46817e['model']['document']['registerPostFixer'](_0x189922=>{let _0x22e613=!0x1;const _0x14bbac=_0x46817e['plugins']['get']('Users')['me'],_0x504600=_0x416767['getSuggestions']()['filter'](_0x1c3af7=>_0x1c3af7['isInContent']&&_0x1c3af7['author']==_0x14bbac),_0x30c7fb=new Set(),_0x5c0d6d=new Set();for(const _0x5d781f of _0x504600)if('tablePaste'==_0x5d781f['subType'])for(const _0x595661 of _0x5d781f['getMarkers']()){const _0x4edebb=_0x595661['getRange']()['getContainedElement']();if(_0x4edebb){if(_0x4edebb['is']('element','tableCellSuggestion')&&ke(_0x4edebb)){_0x5d781f['removeMarker'](_0x595661['name']),_0x30c7fb['add'](_0x4edebb),_0x22e613=!0x0;const _0xf90434=_0x4edebb['nextSibling'],_0x3fe7d8=_0x4edebb['previousSibling'],_0x5a1a84=_0xf90434&&_0xf90434['is']('element','tableCellSuggestion'),_0x4c0d6b=_0x3fe7d8&&_0x3fe7d8['is']('element','tableCellSuggestion');_0x5a1a84&&!_0x30c7fb['has'](_0xf90434)&&_0x5c0d6d['add'](_0xf90434),_0x4c0d6b&&!_0x30c7fb['has'](_0x3fe7d8)&&_0x5c0d6d['add'](_0x3fe7d8);}else _0x4edebb['is']('element','paragraph')&&_0x4edebb['isEmpty']&&(_0x5d781f['removeMarker'](_0x595661['name']),_0x22e613=!0x0);}}else{if('tablePasteCell'==_0x5d781f['subType']){if(!_0x5d781f['attributes']||!_0x5d781f['attributes']['tablePasteChainId'])continue;const _0x128e4b=_0x5d781f['attributes']['markerAttributes'];if(_0x128e4b&&Object['keys'](_0x128e4b)['length'])continue;const _0x58c1e9=_0x5d781f['attributes']['tablePasteChainId'];let _0x323ec4=!0x0,_0x463328=!0x0;for(const _0x1c311e of _0x504600)if(_0x1c311e['subType']&&_0x1c311e['subType']['startsWith']('tablePaste')){if(!_0x1c311e['attributes']['tablePasteChainId']){_0x463328=!0x1;break;}if(_0x1c311e['id']!=_0x5d781f['id']&&_0x1c311e['attributes']['tablePasteChainId']==_0x58c1e9){_0x323ec4=!0x1;break;}}_0x463328&&_0x323ec4&&(_0x5d781f['removeMarkers'](),_0x22e613=!0x0);}}for(const _0x521179 of _0x30c7fb)_0x189922['remove'](_0x521179);for(const _0x224894 of _0x5c0d6d)_0x189922['unwrap'](_0x224894);return _0x22e613;}),_0x46817e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5ed51a=>_0x503dc9(_0x5ed51a),'converterPriority':'high'}),_0x46817e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x55ce7a,_0x3d9579)=>_0x3d9579['options']['showSuggestionHighlights']?_0x503dc9(_0x55ce7a,!0x1):null,'converterPriority':'high'});const _0x230b12=_0x46817e['editing']['view'];this['listenTo'](_0x230b12['document'],'clipboardOutput',(_0x2cb4a5,_0x479ef2)=>{const _0x2aa1db=[];for(const _0x555462 of _0x230b12['createRangeIn'](_0x479ef2['content'])['getItems']())_0x555462['is']('element','suggestion-td')&&_0x2aa1db['push'](_0x555462);_0x230b12['change'](_0x3748b6=>{for(const _0x2d09c5 of _0x2aa1db)_0x3748b6['move'](_0x3748b6['createRangeIn'](_0x2d09c5),_0x3748b6['createPositionBefore'](_0x2d09c5)),_0x3748b6['remove'](_0x2d09c5);});});}}function ke(_0x27616b){if(_0x27616b['isEmpty'])return!0x0;const _0x363d61=_0x27616b['getChild'](0x0);return _0x363d61['is']('element','paragraph')&&_0x363d61['isEmpty'];}function Re(_0x46b5ee,_0x181d6b={},_0x5517a1){for(const {isAnchor:_0x225d02,cellHeight:_0xa14019,cellWidth:_0x3cdb40}of _0x5517a1['createTableWalker'](_0x46b5ee,{'includeAllSlots':!0x0,..._0x181d6b}))if(!_0x225d02||0x1!=_0xa14019||0x1!=_0x3cdb40)return!0x1;return!0x0;}class Nt extends _0x535ab4{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x153548=this['editor']['plugins']['get']('TrackChangesEditing');_0x153548['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x153548['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x153548['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x153548['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x153548['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x153548['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5086ab,_0x1bdd46){const _0x49ca69=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ba100=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3ee3e6=_0x1bdd46['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3034e4=_0x4ba100['getColumnGroupElement'](_0x3ee3e6);let _0x4eec71=_0x3034e4?_0x4ba100['getTableColumnsWidths'](_0x3034e4):null,_0x373b72=_0x3ee3e6['getAttribute']('tableWidth')||null;const _0x3ae4b4=_0x1bdd46['tableWidth']||_0x373b72,_0x19de49=_0x1bdd46['columnWidths']||_0x4eec71,_0x28a670=this['editor']['plugins']['get']('Users')['me'];for(const _0x346cbd of _0x49ca69['getSuggestions']()){const _0x485d02=_0x346cbd['getContainedElement']();if('resizeTable'===_0x346cbd['subType']&&_0x485d02===_0x3ee3e6){_0x346cbd['author']!==_0x28a670&&_0x346cbd['discard']();const _0x286759=_0x346cbd['data']['commandParams'];_0x373b72=_0x286759[0x0]['tableWidth'],_0x4eec71=_0x286759[0x0]['columnWidths'];break;}}_0x5086ab({'table':_0x3ee3e6,'tableWidth':_0x3ae4b4,'columnWidths':_0x19de49}),_0x49ca69['markBlockFormat'](_0x3ee3e6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x373b72,'columnWidths':_0x4eec71}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x479aaf){if('formatBlock'!=_0x479aaf['type']&&'formatInline'!=_0x479aaf['type'])return;const {data:_0x524b0a}=_0x479aaf;if(_0x524b0a&&'resizeTable'===_0x524b0a['formatGroupId']){const _0x3fc7b2='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3fc7b2)};}}}class Dt extends _0x535ab4{['afterInit'](){const _0x40e129=this['editor'];_0x40e129['plugins']['has']('Template')&&_0x40e129['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x535ab4{['afterInit'](){const _0x2c95a3=this['editor'];if(!_0x2c95a3['commands']['get']('insertTableOfContents'))return;_0x2c95a3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x30fb51=_0x2c95a3['plugins']['get']('TrackChangesEditing'),_0x1347b9=_0x2c95a3['locale'];_0x30fb51['descriptionFactory']['registerElementLabel']('tableOfContents',_0x39798d=>o(_0x1347b9,'ELEMENT_TABLE_OF_CONTENTS',_0x39798d));}}class $t extends _0x535ab4{['afterInit'](){const _0x109ace=this['editor'];if(!_0x109ace['plugins']['has']('Title'))return;const _0x516998=_0x109ace['plugins']['get']('TrackChangesEditing');_0x516998['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x109ace['locale'],'ELEMENT_TITLE')),_0x109ace['model']['document']['registerPostFixer'](_0x132d33=>{let _0x2ec5ae=!0x1;const _0x288338=Array['from'](_0x109ace['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49248d,data:_0x283c6a}of _0x288338){const {group:_0x40bde0}=_0x516998['_splitMarkerName'](_0x49248d);if('suggestion'!==_0x40bde0||!_0x283c6a['newRange'])continue;const _0x48489b=_0x283c6a['newRange'],_0x10d9fe=_0x48489b['end']['nodeBefore'];if(!_0x10d9fe||!_0x10d9fe['is']('element','title-content'))continue;if(!_0x48489b['start']['isTouching'](_0x48489b['end']))continue;const _0x1a8ff3=_0x109ace['model']['schema']['getNearestSelectionRange'](_0x48489b['end'],'forward');if(_0x1a8ff3&&_0x1a8ff3['isCollapsed']){const _0x309084=_0x132d33['createRange'](_0x48489b['start'],_0x1a8ff3['start']);_0x309084['isEqual'](_0x48489b)||(_0x132d33['updateMarker'](_0x49248d,{'range':_0x309084}),_0x2ec5ae=!0x0);}_0x2ec5ae||(_0x132d33['removeMarker'](_0x49248d),_0x2ec5ae=!0x0);}return _0x2ec5ae;});}}class Bt extends _0x535ab4{['afterInit'](){const _0x346376=this['editor'],_0x1ad402=_0x346376['plugins']['get']('TrackChangesEditing');_0x346376['plugins']['has']('UndoEditing')&&(_0x1ad402['enableCommand']('undo'),_0x1ad402['enableCommand']('redo'));}}class xt extends _0x535ab4{static get['requires'](){return[It];}['afterInit'](){const _0x508c63=this['editor'];if(!_0x508c63['plugins']['has']('TableCaptionEditing'))return;_0x508c63['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x535ab4{['tableProperties'];['tableCellProperties'];constructor(_0x470798){super(_0x470798),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x39b446=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5dc109 of this['tableProperties'])_0x39b446['enableCommand'](_0x5dc109,(_0x26cc28,_0x4c9abd)=>{const _0x595434=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5dc109,[_0x595434],this['tableProperties'],'tableProperties',_0x26cc28,_0x4c9abd);});_0x39b446['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x39b446['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x39b446['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x21024c,_0x58f6a3)=>this['handleDiscardAction'](this['tableProperties'],_0x21024c,_0x58f6a3)),_0x39b446['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4fcf68 of this['tableCellProperties'])_0x39b446['enableCommand'](_0x4fcf68,(_0x38c4af,_0x309302)=>{const _0x365ac9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4fcf68,_0x365ac9,this['tableCellProperties'],'tableCellProperties',_0x38c4af,_0x309302);});_0x39b446['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x39b446['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x39b446['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x281448,_0x1f6620)=>this['handleDiscardAction'](this['tableCellProperties'],_0x281448,_0x1f6620)),_0x39b446['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x39b446['descriptionFactory']['registerDescriptionCallback'](_0x1586af=>this['handleSuggestionDescription'](_0x1586af));}['_handlePropertyChange'](_0x363182,_0x50f1a8,_0x4c80e4,_0x4ea8fe,_0x543d85,_0x195fd4){const _0x4bef0f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x195fd4['batch'],()=>{for(const _0x247e8c of _0x50f1a8){if(this['_getSuggestion'](_0x247e8c,_0x4ea8fe))_0x543d85(_0x195fd4);else{const _0x4d2ba4={};for(const _0x3a73a6 of _0x4c80e4){const _0x11d1d2=_0x247e8c['getAttribute'](_0x3a73a6);void 0x0!==_0x11d1d2&&(_0x4d2ba4[_0x3a73a6]=_0x11d1d2);}_0x543d85(_0x195fd4),_0x4bef0f['markBlockFormat'](_0x247e8c,{'commandParams':[_0x4d2ba4]},[],_0x4ea8fe);}}});}['handleDiscardAction'](_0x52a44d,_0x102d36,_0x38dc68){const _0x2a45e2=_0x102d36[0x0]['start']['nodeAfter'],_0x31045d=_0x38dc68['commandParams'][0x0];this['editor']['model']['change'](_0x37bf29=>{for(const _0x16f171 of _0x52a44d)void 0x0!==_0x31045d[_0x16f171]?_0x37bf29['setAttribute'](_0x16f171,_0x31045d[_0x16f171],_0x2a45e2):_0x37bf29['removeAttribute'](_0x16f171,_0x2a45e2);});}['handleSuggestionDescription'](_0x30b74c){if(_0x30b74c['data'])switch(_0x30b74c['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'](_0x5a5f01,_0x35cb8c){const _0x46c17f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2049bc of _0x46c17f['getSuggestions']({'skipNotAttached':!0x0})){const _0x2224e0=_0x2049bc['getContainedElement']();if(_0x2049bc['subType']===_0x35cb8c&&_0x2224e0===_0x5a5f01)return _0x2049bc;}return null;}}const m='$elementName';class p extends _0x535ab4{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2ec2ea,_0x5aa827,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,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ea3dc){function _0x8b769c(_0x2ea10c){return _0x2ea10c['map'](_0x4140a5=>String['fromCharCode'](_0x4140a5))['join']('');}super(_0x5ea3dc),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x34f1c6,_0x53ceb7,_0x1a5bcc,_0x4c1369)=>{this['_model']['change'](()=>{for(const _0x2e6342 of[..._0x4c1369,..._0x1a5bcc])this['_model']['markers']['has'](_0x2e6342)&&_0x5ea3dc['editing']['reconvertMarker'](_0x2e6342);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5ea3dc['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(),_0x5ea3dc['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5ea3dc['config']['get']('trackChanges.trackFormatChanges'),_0x5ea3dc['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5ea3dc['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5ea3dc,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x8b769c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x8b769c([0x34,0x30,0x34,0x38,0x32,0x30,0x34,0x38]);}['init'](){const _0x415b5b=this['editor'],_0x173e01=(_0xf7bbfa,_0x61160d)=>{if('attribute'!=_0xf7bbfa)return'ck-suggestion-marker-'+_0xf7bbfa;const _0x4abca3=_0x61160d['split']('|')[0x0];return this['_isBlockAttribute'](_0x4abca3)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x415b5b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4778ae=>{const {id:_0x56d98b,authorId:_0x534cd4,type:_0x1779ce,subType:_0x40ce81}=this['_splitMarkerName'](_0x4778ae['markerName']),_0x5d0a64=['ck-suggestion-marker',_0x173e01(_0x1779ce,_0x40ce81)];let _0x1bbac1=0xbb8;return this['activeMarkers']['includes'](_0x4778ae['markerName'])&&(_0x5d0a64['push']('ck-suggestion-marker--active'),_0x1bbac1=0xbc2),'deletion'==_0x1779ce&&(_0x1bbac1+=0x5),{'classes':_0x5d0a64,'attributes':{'data-suggestion':_0x56d98b,'data-author-id':_0x534cd4},'priority':_0x1bbac1};}}),_0x415b5b['conversion']['for']('dataDowncast')['add'](_0x167555=>{_0x167555['on']('addMarker:suggestion',(_0x129fe1,_0x55b43a,_0x3e7dde)=>{if(!_0x3e7dde['options']['showSuggestionHighlights'])return;const _0x17fdac=_0x55b43a['item'];if(!_0x17fdac)return;const _0xfd09ad=_0x3e7dde['mapper']['toViewElement'](_0x17fdac);_0x415b5b['model']['schema']['isObject'](_0x17fdac)&&_0xfd09ad&&!_0xfd09ad['getCustomProperty']('widget')&&_0xfd09ad['is']('containerElement')&&_0x2bb991(_0xfd09ad,_0x3e7dde['writer']);},{'priority':'high'});}),_0x415b5b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x18451d,_0x59ac44)=>{if(!_0x59ac44['options']['showSuggestionHighlights'])return null;const {type:_0x561b93,subType:_0xb58f39}=this['_splitMarkerName'](_0x18451d['markerName']);return{'classes':['ck-suggestion-marker',_0x173e01(_0x561b93,_0xb58f39)],'priority':0xbb8};}});const _0x41ec7d=({showActiveMarkers:_0x14ce9b=!0x0,isAttributeSuggestion:_0x564740=!0x1}={})=>(_0x5f5c47,_0x3bb7d2,_0x165bce)=>{if(!_0x3bb7d2['item'])return;const {id:_0x2f8c4a,authorId:_0x1725e8}=this['_splitMarkerName'](_0x3bb7d2['markerName']);if(_0x564740){const _0x10427d=this['_suggestions']['get'](_0x2f8c4a),_0x285666=this['_getAttributeKey'](_0x10427d);if(!this['_isBlockAttribute'](_0x285666))return;}if(_0x3bb7d2['item']['is']('selection'))return void _0x165bce['consumable']['consume'](_0x3bb7d2['item'],_0x5f5c47['name']);const _0x545e4b=_0x165bce['mapper']['toViewElement'](_0x3bb7d2['item']);if(_0x3bb7d2['item']['is']('element')&&_0x415b5b['model']['schema']['isBlock'](_0x3bb7d2['item'])&&!_0x545e4b['getCustomProperty']('addHighlight')){_0x165bce['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x545e4b),_0x165bce['writer']['setAttribute']('data-suggestion',_0x2f8c4a,_0x545e4b),_0x165bce['writer']['setAttribute']('data-author-id',_0x1725e8,_0x545e4b),_0x165bce['mapper']['bindElementToMarker'](_0x545e4b,_0x3bb7d2['markerName']),_0x14ce9b&&(this['activeMarkers']['includes'](_0x3bb7d2['markerName'])?_0x165bce['writer']['addClass']('ck-suggestion-marker--active',_0x545e4b):_0x165bce['writer']['removeClass']('ck-suggestion-marker--active',_0x545e4b));for(const _0x2226ad of _0x415b5b['model']['createRangeIn'](_0x3bb7d2['item'])['getItems']())_0x165bce['consumable']['consume'](_0x2226ad,_0x5f5c47['name']);_0x165bce['consumable']['consume'](_0x3bb7d2['item'],_0x5f5c47['name']);}};_0x415b5b['conversion']['for']('dataDowncast')['add'](_0x3226bd=>{_0x3226bd['on']('addMarker:suggestion:formatBlock',(_0x5b4ce3,_0x373716,_0x15b97f)=>{_0x15b97f['options']['showSuggestionHighlights']&&_0x41ec7d({'showActiveMarkers':!0x1})(_0x5b4ce3,_0x373716,_0x15b97f);},{'priority':'highest'});}),_0x415b5b['conversion']['for']('dataDowncast')['add'](_0x5c26fe=>{_0x5c26fe['on']('addMarker:suggestion:attribute',(_0xe1236,_0x5a427d,_0x2deebf)=>{_0x2deebf['options']['showSuggestionHighlights']&&_0x41ec7d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xe1236,_0x5a427d,_0x2deebf);},{'priority':'highest'});}),_0x415b5b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4ba2dd,_0x4d5a4d)=>_0x4d5a4d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4ba2dd['substr'](0xb)}}),_0x415b5b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x9d8fa9,{writer:_0x23821e})=>{let _0x2b3341='suggestion:'+_0x9d8fa9['getAttribute']('suggestion-type')+':'+_0x9d8fa9['getAttribute']('id');return _0x9d8fa9['getAttribute']('marker-count')&&(_0x2b3341+=':'+_0x9d8fa9['getAttribute']('marker-count')),_0x23821e['createElement']('$marker',{'data-name':_0x2b3341});}}),_0x415b5b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x415b5b['conversion']['for']('editingDowncast')['add'](_0x184ca0=>{_0x184ca0['on']('addMarker:suggestion:formatBlock',_0x41ec7d(),{'priority':'high'});}),_0x415b5b['conversion']['for']('editingDowncast')['add'](_0x47df55=>{_0x47df55['on']('addMarker:suggestion:attribute',_0x41ec7d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x415b5b['conversion']['for']('editingDowncast')['add'](_0x5d1e68=>{_0x5d1e68['on']('removeMarker:suggestion:formatBlock',(_0x207017,_0x155f9d,_0x378881)=>{const _0x7d5d15=_0x378881['mapper']['markerNameToElements'](_0x155f9d['markerName']);if(_0x7d5d15){for(const _0x411b89 of _0x7d5d15)_0x411b89['getCustomProperty']('addHighlight')||(_0x378881['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x411b89),_0x378881['writer']['removeAttribute']('data-suggestion',_0x411b89),_0x378881['writer']['removeAttribute']('data-author-id',_0x411b89),_0x378881['mapper']['unbindElementFromMarkerName'](_0x411b89,_0x155f9d['markerName']));}},{'priority':'high'});}),_0x415b5b['conversion']['for']('editingDowncast')['add'](_0x2dfca1=>{_0x2dfca1['on']('removeMarker:suggestion:attribute',(_0x55ddf3,_0x479c11,_0x5449af)=>{const _0x193d58=_0x5449af['mapper']['markerNameToElements'](_0x479c11['markerName']);if(!_0x193d58)return;const {id:_0x182ba1}=this['_splitMarkerName'](_0x479c11['markerName']),_0x22973b=this['_suggestions']['get'](_0x182ba1),_0x161740=this['_getAttributeKey'](_0x22973b);if(this['_isBlockAttribute'](_0x161740)){for(const _0x123044 of _0x193d58)_0x123044['getCustomProperty']('addHighlight')||(_0x5449af['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x123044),_0x5449af['writer']['removeAttribute']('data-suggestion',_0x123044),_0x5449af['writer']['removeAttribute']('data-author-id',_0x123044),_0x5449af['mapper']['unbindElementFromMarkerName'](_0x123044,_0x479c11['markerName']));}},{'priority':'high'});}),_0x415b5b['model']['document']['registerPostFixer'](_0x250c4a=>{let _0x59b2ba=!0x1;const _0x4c08f1=Array['from'](_0x415b5b['model']['document']['differ']['getChangedMarkers']()),_0x5ae95f=new Set();for(const {name:_0x3a9aae,data:_0x5cd214}of _0x4c08f1){const {group:_0x5404ae,type:_0x51354a,subType:_0x29242d,id:_0x2453c4}=this['_splitMarkerName'](_0x3a9aae);if('suggestion'!==_0x5404ae)continue;const _0x183ae6=this['_suggestions']['get'](_0x2453c4);if(null!=_0x5cd214['newRange']){'formatInline'==_0x51354a&&(_0x59b2ba=_0x59b2ba||Ut(_0x5cd214['newRange'],_0x3a9aae,_0x250c4a,_0x415b5b['model']['schema']));const _0x3361ff='attribute'==_0x51354a&&this['_isBlockAttribute'](_0x29242d['split']('|')[0x0]);if(_0x5cd214['newRange']['isCollapsed']||'$graveyard'==_0x5cd214['newRange']['root']['rootName']||'formatBlock'==_0x51354a&&!Gt(_0x5cd214['newRange'])||_0x3361ff&&!Gt(_0x5cd214['newRange'])||'deletion'==_0x51354a&&!(!Vt(_0x456c91=_0x5cd214['newRange'])&&!function(_0x57f831){return _0x57f831['start']['parent']==_0x57f831['end']['nodeBefore']&&_0x57f831['start']['isAtEnd'];}(_0x456c91)))_0x250c4a['removeMarker'](_0x3a9aae),_0x59b2ba=!0x0;else{if(!_0x183ae6||!_0x183ae6['isInContent'])continue;if(_0x5cd214['newRange']&&_0x5cd214['oldRange']&&_0x5cd214['newRange']['isEqual'](_0x5cd214['oldRange']))continue;_0x5ae95f['add'](_0x183ae6);}}}var _0x456c91;return _0x5ae95f['size']>0x0&&(_0x59b2ba=!!this['_joinWithAdjacentSuggestions'](_0x5ae95f)||_0x59b2ba),_0x59b2ba;}),_0x415b5b['model']['document']['registerPostFixer'](_0xebbbbe=>{let _0x469917=!0x1;for(const _0x3507fb of _0x415b5b['model']['document']['differ']['getChanges']())if('insert'==_0x3507fb['type'])for(const _0x1fd9d6 of this['_suggestions']['values']()){if(_0x1fd9d6['isMultiRange']||!_0x1fd9d6['isInContent'])continue;const _0x2fa8d0='formatBlock'==_0x1fd9d6['type'],_0x34d06b=this['_getAttributeKey'](_0x1fd9d6),_0x1cc10a=_0x34d06b&&this['_isBlockAttribute'](_0x34d06b);if(!_0x2fa8d0&&!_0x1cc10a)continue;const _0x4a1592=_0x1fd9d6['getFirstRange']();if(_0x4a1592['start']['parent']!=_0x4a1592['end']['parent']&&!_0x4a1592['end']['isAtEnd']){const _0x75552c=_0x415b5b['model']['createPositionAt'](_0x4a1592['start']['nodeAfter'],'end'),_0x3a354d=_0x415b5b['model']['createRange'](_0x4a1592['start'],_0x75552c);_0xebbbbe['updateMarker'](_0x1fd9d6['getFirstMarker'](),{'range':_0x3a354d}),_0x469917=!0x0;}}return _0x469917;}),_0x415b5b['model']['document']['registerPostFixer'](_0x16aadf=>this['_processAttributeChanges'](_0x16aadf)),_0x415b5b['model']['document']['registerPostFixer'](_0xc0b08d=>!_0xc0b08d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xc0b08d)),_0x415b5b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x415b5b['model']['document']['on']('change:data',(_0x3502cc,_0x18d6ce)=>{if(!_0x18d6ce['isLocal']||_0x18d6ce['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3bd832=_0x415b5b['model']['document']['differ']['getChanges']();if(0x0==_0x3bd832['length'])return;const _0x414480=[],_0x20c061=_0x3bd832['filter'](_0x46946=>'attribute'==_0x46946['type']),_0x10ee0b=_0x3bd832['filter'](_0x5e8f0d=>'insert'==_0x5e8f0d['type']&&'$text'!=_0x5e8f0d['name']);for(const _0xa9f137 of _0x20c061)this['_isRegisteredAttribute'](_0xa9f137['attributeKey'])&&_0x414480['push']({'key':_0xa9f137['attributeKey'],'newValue':_0xa9f137['attributeNewValue'],'oldValue':_0xa9f137['attributeOldValue'],'range':Ft(_0xa9f137['range'],_0x415b5b['model'])});for(const _0x3047c0 of _0x10ee0b){if('rename'!=_0x3047c0['action']&&'refresh'!=_0x3047c0['action'])continue;const _0x248c59=Lt(_0x3047c0['position']['nodeAfter'],_0x415b5b['model']),_0x212450=_0x3047c0['before'];'rename'==_0x3047c0['action']&&_0x414480['push']({'key':m,'newValue':_0x3047c0['name'],'oldValue':_0x212450['name'],'range':_0x248c59});for(const [_0x4a2a47,_0x327860]of _0x212450['attributes']){if(!this['_isRegisteredAttribute'](_0x4a2a47))continue;const _0x2791c7=_0x3047c0['attributes']['get'](_0x4a2a47);_0x327860!==_0x2791c7&&_0x414480['push']({'key':_0x4a2a47,'newValue':_0x2791c7,'oldValue':_0x327860,'range':_0x248c59});}for(const [_0x366fc4,_0x36b338]of _0x3047c0['attributes'])this['_isRegisteredAttribute'](_0x366fc4)&&(_0x212450['attributes']['has'](_0x366fc4)||_0x414480['push']({'key':_0x366fc4,'newValue':_0x36b338,'oldValue':null,'range':_0x248c59}));}0x0!=_0x414480['length']&&_0x415b5b['model']['enqueueChange'](_0x18d6ce,_0x25716a=>{const _0x1b38f0=_0x2325fc();for(const {range:_0x248be0,key:_0x47d860,oldValue:_0x5422d5,newValue:_0x37c3c1}of _0x414480)this['markAttributeChange'](_0x248be0,_0x47d860,_0x5422d5,_0x37c3c1,{'groupId':_0x1b38f0});this['_reduceExistingSuggestions'](_0x25716a,_0x414480);});},{'priority':'lowest'}),_0x415b5b['model']['markers']['on']('update:suggestion',(_0x5aa454,_0x158cf3,_0x5bf2be)=>{if(null==_0x5bf2be){const {id:_0x2c2b5d}=this['_splitMarkerName'](_0x158cf3['name']),_0x44012a=this['_suggestions']['get'](_0x2c2b5d);_0x44012a&&_0x44012a['addMarkerName'](_0x158cf3['name']);}}),_0x415b5b['model']['document']['on']('change:data',()=>{const _0x2baed7=Array['from'](_0x415b5b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5eb70e=>'suggestion'===this['_splitMarkerName'](_0x5eb70e['name'])['group']);if(0x0===_0x2baed7['length'])return;_0x2baed7['sort']((_0x5c676f,_0x3922dd)=>{const _0xad27f2=_0x5c676f['data']['oldRange'],_0x42b74a=_0x3922dd['data']['oldRange'];return null===_0xad27f2&&null===_0x42b74a?0x0:null===_0xad27f2&&null!==_0x42b74a?-0x1:null!==_0xad27f2&&null===_0x42b74a?0x1:_0xad27f2['start']['isBefore'](_0x42b74a['start'])?-0x1:0x1;});const _0x46bc3c=new Set(),_0x840637=new Set();for(const {name:_0x239f4b,data:_0x5edda4}of _0x2baed7){const {id:_0x2f759f}=this['_splitMarkerName'](_0x239f4b);if(null===_0x5edda4['oldRange']){const _0x5e7f77=this['_handleNewSuggestionMarker'](_0x239f4b);_0x840637['add'](_0x5e7f77);}else{const _0x35d9e7=this['_suggestions']['get'](_0x2f759f);null!==_0x5edda4['newRange']||_0x35d9e7['isInContent']?(_0x46bc3c['add'](_0x35d9e7['head']),_0x840637['add'](_0x35d9e7)):this['_removeSuggestion'](_0x35d9e7);}}_0x840637['size']>0x0&&this['_refreshSuggestionsChain'](_0x840637);for(const _0x272e6f of _0x46bc3c)this['fire']('suggestionChanged',_0x272e6f);}),_0x415b5b['model']['on']('applyOperation',(_0xc2ad93,_0xe95b8c)=>{const _0x340f05=_0xe95b8c[0x0];if(!this['_suggestions']['size'])return;if(!_0x340f05['isDocumentOperation'])return;if(_0x340f05['batch']['isUndo']||!_0x340f05['batch']['isLocal'])return;let _0xb2c37e,_0x59a149;switch(_0x340f05['type']){case'insert':_0xb2c37e=_0x415b5b['model']['createPositionAt'](_0x340f05['position']),_0x59a149=_0xb2c37e['getShiftedBy'](_0x340f05['howMany']);break;case'split':_0xb2c37e=_0x415b5b['model']['createPositionAt'](_0x340f05['splitPosition']),_0x59a149=_0x415b5b['model']['createPositionAt'](_0x340f05['moveTargetPosition']);break;case'move':_0xb2c37e=_0x415b5b['model']['createPositionAt'](_0x340f05['targetPosition']),_0x59a149=_0xb2c37e['getShiftedBy'](_0x340f05['howMany']);break;default:return;}const _0x16ba43=_0x415b5b['model']['createRange'](_0xb2c37e,_0x59a149);_0x415b5b['model']['change'](()=>{for(const {suggestion:_0x4e698c,meta:_0x55f97d}of this['_findSuggestions'](_0x16ba43)){if(_0x4e698c['isMultiRange'])continue;if('formatInline'==_0x4e698c['type'])continue;const _0x1b609c=this['_getAttributeKey'](_0x4e698c);if(_0x1b609c&&this['_isBlockAttribute'](_0x1b609c)&&'split'!=_0x340f05['type'])continue;const _0x3e05bf=_0x4e698c['data']&&_0x4e698c['data']['multipleBlocks'];('formatBlock'!=_0x4e698c['type']||'split'==_0x340f05['type']&&!_0x3e05bf)&&(_0x55f97d['containsRangeInObject']||'insertion'==_0x4e698c['type']&&_0x55f97d['isOwn']||_0x4e698c['getFirstRange']()['containsRange'](_0x16ba43)&&this['_breakSuggestionMarker'](_0x4e698c,_0xb2c37e,_0x59a149));}});},{'priority':'lowest'}),_0x415b5b['model']['on']('deleteContent',(_0x327141,_0x2b46a5)=>{const _0x348941=_0x2b46a5[0x0],_0x553f45=_0x2b46a5[0x1];if(_0x553f45&&_0x553f45['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x348941['isCollapsed'])return;const _0x25ac1a=_0x415b5b['model']['schema'],{start:_0x5f1e11,end:_0x2d36ff}=_0x348941['getFirstRange'](),_0x29cce9=_0x5f1e11['nodeAfter']&&_0x25ac1a['isLimit'](_0x5f1e11['nodeAfter'])?null:_0x25ac1a['getNearestSelectionRange'](_0x5f1e11,'forward'),_0x33eba9=_0x2d36ff['nodeBefore']&&_0x25ac1a['isLimit'](_0x2d36ff['nodeBefore'])?null:_0x25ac1a['getNearestSelectionRange'](_0x2d36ff,'backward'),_0x5434af=_0x415b5b['model']['createRange'](_0x29cce9?_0x29cce9['start']:_0x5f1e11,_0x33eba9?_0x33eba9['end']:_0x2d36ff);_0x415b5b['model']['change'](_0x258a44=>{this['markDeletion'](_0x5434af);const _0x1f970d=_0x415b5b['model']['schema']['getNearestSelectionRange'](_0x5434af['start']);_0x348941['is']('documentSelection')?_0x258a44['setSelection'](_0x1f970d):_0x348941['setTo'](_0x1f970d);}),_0x327141['stop']();},{'priority':_0x15aa47['normal']+0xa}),_0x415b5b['model']['on']('insertContent',(_0x555226,_0x15e61e)=>{const _0x57bfe9=_0x15e61e[_0x15e61e['length']-0x1];_0x57bfe9&&_0x57bfe9['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x415b5b['model']['change'](()=>{let _0x454333=_0x415b5b['model']['insertContent'](_0x15e61e[0x0],_0x15e61e[0x1],_0x15e61e[0x2],{'forceDefaultExecution':!0x0});if(!_0x454333)return;_0x555226['return']=_0x454333['clone']();const _0x28adad=_0x454333['end']['nodeBefore'],_0x8f0fff=_0x415b5b['model']['schema'];_0x28adad&&_0x8f0fff['isBlock'](_0x28adad)&&!_0x8f0fff['isObject'](_0x28adad)&&(_0x454333=_0x415b5b['model']['createRange'](_0x454333['start'],_0x415b5b['model']['createPositionAt'](_0x28adad,'end'))),this['markInsertion'](_0x454333);}),_0x555226['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x17191b=new x(_0x415b5b,this['_suggestions']);_0x415b5b['commands']['add']('acceptSuggestion',_0x17191b),this['enableCommand']('acceptSuggestion');const _0xa2a64f=new O(_0x415b5b,this['_suggestions']);_0x415b5b['commands']['add']('discardSuggestion',_0xa2a64f),this['enableCommand']('discardSuggestion'),_0x415b5b['commands']['add']('acceptAllSuggestions',new R(_0x415b5b,_0x17191b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x415b5b['commands']['add']('discardAllSuggestions',new R(_0x415b5b,_0xa2a64f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x415b5b['commands']['add']('acceptSelectedSuggestions',new E(_0x415b5b,_0x17191b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x415b5b['commands']['add']('discardSelectedSuggestions',new E(_0x415b5b,_0xa2a64f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x54d9b2=_0x415b5b['plugins']['get']('CommentsRepository');this['listenTo'](_0x54d9b2,'addComment',(_0x297303,{threadId:_0x23ab13})=>{const _0x1530bc=this['_suggestions']['get'](_0x23ab13);_0x1530bc&&_0x1530bc['commentThread']&&0x1===_0x1530bc['commentThread']['length']&&this['_updateSuggestionData'](_0x23ab13,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x54d9b2,'removeComment',(_0x3fa829,{threadId:_0x447a31})=>{const _0x12dc0b=this['_suggestions']['get'](_0x447a31);_0x12dc0b&&_0x12dc0b['commentThread']&&!_0x12dc0b['commentThread']['length']&&this['_updateSuggestionData'](_0x447a31,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4ca795){if(this['_adapter'])throw new _0x3f4695('track-changes-adapter-already-set',this);this['_adapter']=_0x4ca795;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xb2337=!0x1,toJSON:_0x3aeb83=!0x1}={}){const _0x344edd=[];for(const _0x419aeb of this['_suggestions']['values']())_0xb2337&&!_0x419aeb['isInContent']||_0x344edd['push'](_0x419aeb);return _0x3aeb83?_0x344edd['map'](_0x39246a=>_0x39246a['toJSON']()):_0x344edd;}['getSuggestion'](_0x430e28){const _0x498f01=this['_suggestions']['get'](_0x430e28);if(!_0x498f01)throw new _0x3f4695('track-changes-suggestion-not-found',this);return _0x498f01;}['hasSuggestion'](_0x14e94c){return this['_suggestions']['has'](_0x14e94c);}['addSuggestionData'](_0x5ce213){const {authorId:_0x71c878,id:_0x5ee35b,attributes:_0x7857fa}=_0x5ce213,[_0x4f0d2e,_0x261abc]=_0x5ce213['type']['split'](':'),_0xb38a09=this['_suggestions']['get'](_0x5ee35b)||this['_createSuggestion'](_0x4f0d2e,_0x261abc,_0x5ee35b,_0x71c878,_0x7857fa);if(this['_addThreadToSuggestion'](_0xb38a09),this['_checkSuggestionCorrectness'](_0xb38a09,_0x4f0d2e,_0x261abc||null,_0x71c878),_0xb38a09['createdAt']=_0x5ce213['createdAt'],_0xb38a09['_isDataLoaded']=!0x0,_0x7857fa&&_0x7857fa['@external']){const _0x2d6942=_0x7857fa['@external'],_0x54d70e=this['_getExternalAuthor'](_0x2d6942['authorName']);_0xb38a09['authoredAt']=_0x2d6942['createdAt'],_0xb38a09['author']=_0x54d70e,_0xb38a09['isExternal']=!0x0;}else _0xb38a09['authoredAt']=_0x5ce213['createdAt'];switch(_0x5ce213['data']&&(_0xb38a09['data']=_0x5ce213['data']),_0x5ce213['attributes']&&(_0xb38a09['attributes']=_0x5ce213['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xb38a09['_saved']=!0x0),this['_suggestionState']['get'](_0xb38a09)){case'notReady':this['_suggestionState']['set'](_0xb38a09,'dataReady');break;case'markerReady':_0xb38a09['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xb38a09])),this['_refreshSuggestionsChain'](new Set([_0xb38a09])),this['_suggestionState']['set'](_0xb38a09,'ready'),this['fire']('suggestionLoaded',_0xb38a09)):this['_suggestionState']['set'](_0xb38a09,'removed');}return _0xb38a09;}['acceptSuggestion'](_0x3ce77d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1da0d0 of _0x3ce77d['getAllAdjacentSuggestions']())_0x1da0d0['accept']();});});}['discardSuggestion'](_0x5bcb96){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xe8708b of _0x5bcb96['getAllAdjacentSuggestions']())_0xe8708b['discard']();});});}['enableCommand'](_0xb03dd3,_0x377c15){const _0x311bd1=this['editor']['commands']['get'](_0xb03dd3);if(!_0x311bd1)throw new _0x3f4695('track-changes-command-not-found',this,{'commandName':_0xb03dd3});if(this['_enabledCommands']['has'](_0x311bd1))throw new _0x3f4695('track-changes-enable-command-twice',this,{'commandName':_0xb03dd3});this['_enabledCommands']['add'](_0x311bd1),_0x377c15&&_0x311bd1['on']('execute',(_0x23c924,_0x95ddbb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x95ddbb['length']>0x0&&_0x95ddbb[_0x95ddbb['length']-0x1]&&_0x95ddbb[_0x95ddbb['length']-0x1]['forceDefaultExecution']?_0x95ddbb['pop']():(_0x23c924['return']=_0x377c15((..._0x4daa0b)=>_0x311bd1['execute'](..._0x4daa0b,{'forceDefaultExecution':!0x0}),..._0x95ddbb),_0x23c924['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1898fa){let _0x4aae22,_0x824a13;const _0x310622=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4aae22=_0x1898fa();}catch(_0x2e5599){_0x824a13=_0x2e5599;}return _0x310622||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x824a13&&_0x3f4695['rethrowUnexpectedError'](_0x824a13,this),_0x4aae22;}['markInsertion'](_0x149310,_0x3fd2ec=null,_0x44ebfd={}){if(_0x149310['isCollapsed'])return null;const _0x2ea829=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1bfcad,meta:_0x263e9b}of this['_findSuggestions'](_0x149310,'insertion'))if(_0x263e9b['isOwn']){if(!_0x263e9b['isNextTo']){if(_0x263e9b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1bfcad,_0x44ebfd))continue;return _0x1bfcad;}if(qt(_0x1bfcad,_0x44ebfd))return _0x1bfcad;this['_breakSuggestionMarker'](_0x1bfcad,_0x149310['start'],_0x149310['end']);break;}if(_0x3fd2ec==_0x1bfcad['subType']&&qt(_0x1bfcad,_0x44ebfd)){const _0x5c7cad=_0x1bfcad['getFirstRange']();return _0x5c7cad['start']['isEqual'](_0x149310['end'])?this['_setSuggestionRange'](_0x1bfcad,this['_model']['createRange'](_0x149310['start'],_0x5c7cad['end'])):this['_setSuggestionRange'](_0x1bfcad,this['_model']['createRange'](_0x5c7cad['start'],_0x149310['end'])),_0x1bfcad;}}const _0x28ed61=_0x2325fc(),_0x3d5072=_0x2ea829['id'],_0x1c380e=_0x3fd2ec?'insertion:'+_0x3fd2ec:'insertion',_0x160f27=this['_setSuggestionData']({'id':_0x28ed61,'type':_0x1c380e,'createdAt':new Date(),'authorId':_0x3d5072,'attributes':_0x44ebfd});return this['_addSuggestionMarker'](_0x1c380e,_0x28ed61,_0x3d5072,_0x149310),_0x160f27;}['markMultiRangeInsertion'](_0x1ff991,_0x194baf='multi',_0x24ba6a={}){const _0x2100bf=this['editor']['plugins']['get']('Users')['me'],_0x36a57c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x194baf,'join');for(const _0x30294b of this['getSuggestions']())if(_0x30294b['author']['id']==_0x2100bf['id']&&'insertion'==_0x30294b['type']&&_0x30294b['subType']==_0x194baf&&qt(_0x30294b,_0x24ba6a)&&(_0x36a57c(_0x30294b['getRanges'](),_0x1ff991)||_0x36a57c(_0x1ff991,_0x30294b['getRanges']()))){for(const _0x3b5a75 of _0x1ff991)_0x30294b['addRange'](_0x3b5a75);return _0x30294b;}for(const {suggestion:_0x1fd978,meta:_0x336234}of this['_findSuggestions'](_0x1ff991,'insertion')){if(!_0x336234['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x336234['containsRangeInObject'])continue;if(!qt(_0x1fd978,_0x24ba6a))continue;let _0x4ae732=!0x0;for(const _0x776b8d of _0x1fd978['getRanges']())for(const _0x42411f of _0x1ff991)if(!_0x776b8d['containsRange'](_0x42411f)){_0x4ae732=!0x1;break;}if(_0x4ae732)return _0x1fd978;}const _0x58715a=_0x2325fc(),_0x38ca8d=_0x2100bf['id'],_0x164b54='insertion:'+_0x194baf,_0x5706d4=this['_setSuggestionData']({'id':_0x58715a,'type':_0x164b54,'createdAt':new Date(),'authorId':_0x38ca8d,'attributes':_0x24ba6a});for(const _0x377591 of _0x1ff991)this['_addSuggestionMarker'](_0x164b54,_0x58715a,_0x38ca8d,_0x377591,u['getMultiRangeId']());return _0x5706d4;}['markInlineFormat'](_0x31d306,_0x1be951,_0x430ac7=null,_0x50e1be={}){if(_0x430ac7=_0x430ac7||Pt(_0x1be951),_0x31d306['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x14f4bd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x430ac7,'accept');return this['forceDefaultExecution'](()=>_0x14f4bd([_0x31d306],_0x1be951,_0x50e1be)),null;}const _0x1bee16=this['editor']['plugins']['get']('Users')['me'],_0x424049=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x19dc64,meta:_0xe661eb}of this['_findSuggestions'](_0x31d306,'insertion'))_0xe661eb['isOwn']&&!_0xe661eb['isInsideObject']&&_0x424049['push'](..._0x19dc64['getRanges']());}const _0x4a7885=function(_0x2f0c87,_0x3ee63b){const _0x4842c1=[];for(const _0x1427bf of _0x3ee63b){const _0x57aaef=_0x2f0c87['getIntersection'](_0x1427bf);_0x57aaef&&_0x4842c1['push'](_0x57aaef);}return _0x4842c1;}(_0x31d306,_0x424049),_0x1335c7=function(_0x4500eb,_0x1fe44f){const _0x567689=[_0x4500eb];for(const _0x224ff3 of _0x1fe44f){let _0x5b0ab5=0x0;for(;_0x5b0ab5<_0x567689['length'];){const _0x463379=_0x567689[_0x5b0ab5]['getDifference'](_0x224ff3);_0x567689['splice'](_0x5b0ab5,0x1,..._0x463379),_0x5b0ab5+=_0x463379['length'];}}return _0x567689;}(_0x31d306,_0x424049);_0x4a7885['length']&&this['_model']['change'](()=>{for(const _0xfa292e of _0x4a7885){const _0x227069=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x430ac7,'accept');this['forceDefaultExecution'](()=>_0x227069([_0xfa292e],_0x1be951,_0x50e1be));}});for(const _0x3751fc of _0x1335c7){let _0xf4890f=null,_0x14d360=_0x3751fc['start'],_0x1a21dd=_0x3751fc['end'];for(const {suggestion:_0x28ad2f,meta:_0x376a06}of this['_findSuggestions'](_0x3751fc,'formatInline')){if(!_0x376a06['isOwn'])continue;if(_0x28ad2f['subType']!=_0x430ac7)continue;if(!qt(_0x28ad2f,_0x50e1be))continue;const _0xa6e836=_0x28ad2f['getFirstRange']();if(_0xa6e836['containsRange'](_0x3751fc,!0x0))return null;_0x14d360=_0x14d360['isBefore'](_0xa6e836['start'])?_0x14d360:_0xa6e836['start'],_0x1a21dd=_0x1a21dd['isAfter'](_0xa6e836['end'])?_0x1a21dd:_0xa6e836['end'],_0xf4890f?_0xa6e836['start']['isBefore'](_0xf4890f['getFirstRange']()['start'])?(_0xf4890f['removeMarkers'](),_0xf4890f=_0x28ad2f):_0x28ad2f['removeMarkers']():_0xf4890f=_0x28ad2f;}const _0x33d9e=this['_model']['createRange'](_0x14d360,_0x1a21dd);if(_0xf4890f)this['_setSuggestionRange'](_0xf4890f,_0x33d9e);else{const _0x162d6e=_0x2325fc(),_0x1f062a=_0x1bee16['id'];this['_setSuggestionData']({'id':_0x162d6e,'type':'formatInline:'+_0x430ac7,'data':_0x1be951,'createdAt':new Date(),'authorId':_0x1f062a,'attributes':_0x50e1be}),this['_addSuggestionMarker']('formatInline:'+_0x430ac7,_0x162d6e,_0x1f062a,_0x33d9e);}}return null;}['markBlockFormat'](_0x19d613,_0x1d40e3,_0xd26a5a=[],_0x53884f=null,_0x49a490={}){_0x1d40e3['formatGroupId']||(_0x1d40e3['formatGroupId']=_0x1d40e3['commandName']),_0x1d40e3['multipleBlocks']=_0x19d613['is']('range'),_0x53884f=_0x53884f||Pt(_0x1d40e3);const _0x1d3580=_0xd26a5a['map'](_0x4f295c=>Lt(_0x4f295c,this['_model'])),_0x31cd96=_0x19d613['is']('range')?_0x19d613:Lt(_0x19d613,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4320e4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53884f,'accept');return this['forceDefaultExecution'](()=>_0x4320e4([_0x31cd96],_0x1d40e3,_0x49a490)),null;}_0x1d3580['push'](_0x31cd96);let _0x314c17=!0x0;for(const _0x231cf6 of _0x1d3580)if(!this['_rangeIsInLocalUserInsertion'](_0x231cf6)){_0x314c17=!0x1;break;}if(_0x314c17&&'always'!==this['_trackFormatChanges']){const _0x3a54c1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53884f,'accept');return this['forceDefaultExecution'](()=>_0x3a54c1([_0x31cd96],_0x1d40e3,_0x49a490)),null;}let _0x272ada=null,_0x479676=_0x31cd96['start'],_0x338f84=_0x31cd96['end'];for(const {suggestion:_0x295627,meta:_0x3cc003}of this['_findSuggestions'](_0x31cd96,'formatBlock')){if(!_0x3cc003['isOwn'])continue;if(_0x3cc003['isNextTo']||_0x3cc003['containsRangeInObject']||_0x3cc003['isInsideObject'])continue;if(_0x295627['data']['formatGroupId']!=_0x1d40e3['formatGroupId'])continue;if(!qt(_0x295627,_0x49a490))continue;const _0x3ed34e=_0x295627['getFirstRange']();if(_0x295627['subType']==_0x53884f){if(_0x3ed34e['containsRange'](_0x31cd96,!0x0))return null;_0x479676=_0x479676['isBefore'](_0x3ed34e['start'])?_0x479676:_0x3ed34e['start'],_0x338f84=_0x338f84['isAfter'](_0x3ed34e['end'])?_0x338f84:_0x3ed34e['end'],_0x272ada?_0x3ed34e['start']['isBefore'](_0x272ada['getFirstRange']()['start'])?(_0x272ada['removeMarkers'](),_0x272ada=_0x295627):_0x295627['removeMarkers']():_0x272ada=_0x295627;}else{const _0x4ad0c6=_0x31cd96['getIntersection'](_0x3ed34e);this['_cutOutSuggestionMarker'](_0x295627,_0x4ad0c6);}}const _0xc1e4af=this['editor']['plugins']['get']('Users')['me'],_0x24f633=_0x2325fc(),_0x35040b=_0xc1e4af['id'];if(_0x272ada)return this['_setSuggestionRange'](_0x272ada,this['_model']['createRange'](_0x479676,_0x338f84)),_0x272ada;{const _0x3030b9=this['_setSuggestionData']({'id':_0x24f633,'type':'formatBlock:'+_0x53884f,'data':_0x1d40e3,'createdAt':new Date(),'authorId':_0x35040b,'attributes':_0x49a490});return this['_addSuggestionMarker']('formatBlock:'+_0x53884f,_0x24f633,_0x35040b,this['_model']['createRange'](_0x479676,_0x338f84)),_0x3030b9;}}['markMultiRangeBlockFormat'](_0x4a37e6,_0x188282,_0x191c09=[],_0x480121=null,_0x32c14c={}){_0x188282['formatGroupId']||(_0x188282['formatGroupId']=_0x188282['commandName']);const _0x574943=_0x4a37e6[0x0];_0x188282['multipleBlocks']=_0x574943['is']('range'),_0x480121=_0x480121||Pt(_0x188282);const _0x2bab5f=_0x191c09['map'](_0x220653=>Lt(_0x220653,this['_model'])),_0x51b07f=_0x574943['is']('range')?_0x4a37e6:_0x4a37e6['map'](_0x31c10f=>Lt(_0x31c10f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4ba071=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x480121,'accept');return this['forceDefaultExecution'](()=>_0x4ba071(_0x51b07f,_0x188282,_0x32c14c)),null;}_0x2bab5f['push'](..._0x51b07f);let _0x27f275=!0x0;for(const _0x28635c of _0x2bab5f)if(!this['_rangeIsInLocalUserInsertion'](_0x28635c)){_0x27f275=!0x1;break;}if(_0x27f275&&'always'!==this['_trackFormatChanges']){const _0xdd9999=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x480121,'accept');return this['forceDefaultExecution'](()=>_0xdd9999(_0x51b07f,_0x188282,_0x32c14c)),null;}const _0x1ad2a0=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e5f8f of this['getSuggestions']()){if(_0x3e5f8f['author']['id']!=_0x1ad2a0['id'])continue;if('formatBlock'!=_0x3e5f8f['type']||_0x3e5f8f['data']['formatGroupId']!=_0x188282['formatGroupId'])continue;if(!qt(_0x3e5f8f,_0x32c14c))continue;const _0x4b385c=_0x3e5f8f['subType']==_0x480121;for(let _0x5e98a4=0x0;_0x5e98a4<_0x51b07f['length'];_0x5e98a4++){const _0x135a8c=_0x51b07f[_0x5e98a4];for(const _0x4dd42c of _0x3e5f8f['getMarkers']()){const _0xb8b6a0=_0x4dd42c['getRange']();if(_0x135a8c['isEqual'](_0xb8b6a0)){_0x4b385c?(_0x51b07f['splice'](_0x5e98a4,0x1),_0x5e98a4--):_0x3e5f8f['removeMarker'](_0x4dd42c['name']);break;}}}}if(0x0==_0x51b07f['length'])return null;const _0x440da8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x480121,'join');for(const _0xc1219b of this['getSuggestions']())if(_0xc1219b['author']['id']==_0x1ad2a0['id']&&'formatBlock'==_0xc1219b['type']&&_0xc1219b['data']['formatGroupId']==_0x188282['formatGroupId']&&_0xc1219b['subType']==_0x480121&&qt(_0xc1219b,_0x32c14c)&&(_0x440da8(_0xc1219b['getRanges'](),_0x51b07f)||_0x440da8(_0x51b07f,_0xc1219b['getRanges']()))){for(const _0xcea093 of _0x51b07f)_0xc1219b['addRange'](_0xcea093);return _0xc1219b;}const _0x588922=_0x2325fc(),_0x2eb381=_0x1ad2a0['id'],_0x433bf0='formatBlock:'+_0x480121,_0x45f946=this['_setSuggestionData']({'id':_0x588922,'type':_0x433bf0,'data':_0x188282,'createdAt':new Date(),'authorId':_0x2eb381,'attributes':_0x32c14c});for(const _0x25a801 of _0x51b07f)this['_addSuggestionMarker'](_0x433bf0,_0x588922,_0x2eb381,_0x25a801,u['getMultiRangeId']());return _0x45f946;}['markDeletion'](_0x3291c5,_0x932688=null,_0x591e8f={}){if(_0x3291c5['isCollapsed'])return null;const _0x262684=this['editor']['plugins']['get']('Users')['me'],_0x53b4f2=new _0x146d11(_0x3291c5['start'],_0x3291c5['end']);for(const {suggestion:_0xc37407,meta:_0x58857f}of this['_findSuggestions'](_0x53b4f2,'insertion'))if(_0x58857f['isOwn']&&!_0x58857f['isNextTo']){if(_0xc37407['isMultiRange']){const _0x4431e7=_0xc37407['getRanges']()['filter'](_0x3aaa8d=>'$graveyard'!=_0x3aaa8d['root']['rootName']);_0x4431e7['every'](_0x4b21af=>_0x53b4f2['containsRange'](_0x4b21af,!0x0))&&_0xc37407['discard']();if(_0x4431e7['some'](_0x100c36=>_0x100c36['containsRange'](_0x53b4f2,!0x0))){const _0x385a9f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x932688,'accept');return this['forceDefaultExecution'](()=>_0x385a9f([_0x53b4f2],null,_0x591e8f)),null;}}else{const _0x103255=_0x53b4f2['getIntersection'](_0xc37407['getFirstRange']());null!==_0x103255&&_0xc37407['_onDiscard']([_0x103255],null,_0x591e8f);}}if(_0x53b4f2['detach'](),_0x53b4f2['isCollapsed']||'$graveyard'==_0x53b4f2['root']['rootName'])return null;let _0x5a2d22=null,_0x49ce78=_0x53b4f2['start'],_0x40d02b=_0x53b4f2['end'];const _0x2313d9=this['_findSuggestions'](_0x53b4f2,'deletion');for(const {suggestion:_0x3831ce,meta:_0x5aa93c}of _0x2313d9){const _0x43339d=this['_model']['createRange'](_0x49ce78,_0x40d02b);if(_0x5aa93c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5aa93c['containsRangeInObject']&&!_0x5aa93c['isInsideObject'])){if(_0x3831ce['isMultiRange']){if(!qt(_0x3831ce,_0x591e8f))continue;let _0x114fee=!0x0;for(const _0x53da0e of _0x3831ce['getRanges']()){if(_0x53da0e['containsRange'](_0x43339d,!0x0))return _0x3831ce;_0x43339d['containsRange'](_0x53da0e)||(_0x114fee=!0x1);}_0x114fee&&_0x3831ce['discard']();}else{const _0x4a209a=_0x3831ce['getFirstRange']();if(_0x4a209a['containsRange'](_0x43339d,!0x0))return _0x3831ce;if(!qt(_0x3831ce,_0x591e8f)){_0x43339d['containsRange'](_0x4a209a)?_0x3831ce['removeMarkers']():_0x4a209a['containsPosition'](_0x49ce78)?_0x49ce78=_0x4a209a['end']:_0x4a209a['containsPosition'](_0x40d02b)&&(_0x40d02b=_0x4a209a['start']);continue;}_0x49ce78=_0x49ce78['isBefore'](_0x4a209a['start'])?_0x49ce78:_0x4a209a['start'],_0x40d02b=_0x40d02b['isAfter'](_0x4a209a['end'])?_0x40d02b:_0x4a209a['end'],_0x591e8f=Object['assign']({},_0x3831ce['attributes']),_0x5a2d22?_0x4a209a['start']['isBefore'](_0x5a2d22['getFirstRange']()['start'])?(_0x5a2d22['removeMarkers'](),_0x5a2d22=_0x3831ce):_0x3831ce['removeMarkers']():_0x5a2d22=_0x3831ce;}}}if(_0x5a2d22)return this['_setSuggestionRange'](_0x5a2d22,this['_model']['createRange'](_0x49ce78,_0x40d02b)),_0x5a2d22;{const _0x5a7d32=_0x2325fc(),_0x56ad9d=this['_model']['createRange'](_0x49ce78,_0x40d02b),_0x3f6ac7=_0x262684['id'],_0x3e070f=_0x932688?'deletion:'+_0x932688:'deletion',_0x2b4dcc=this['_setSuggestionData']({'id':_0x5a7d32,'type':_0x3e070f,'createdAt':new Date(),'authorId':_0x3f6ac7,'attributes':_0x591e8f});return this['_addSuggestionMarker'](_0x3e070f,_0x5a7d32,_0x3f6ac7,_0x56ad9d),_0x2b4dcc;}}['markMultiRangeDeletion'](_0x5167f8,_0x1846ec='multi',_0x198fb1={}){const _0x3a623f=this['editor']['plugins']['get']('Users')['me'],_0xee9fe=_0x5167f8['map'](_0x113e33=>new _0x146d11(_0x113e33['start'],_0x113e33['end'])),_0x8a8e90=new Set();for(const {suggestion:_0x245da8,meta:_0x3da8c8}of this['_findSuggestions'](_0xee9fe,'insertion'))_0x3da8c8['isOwn']&&!_0x3da8c8['isNextTo']&&_0x8a8e90['add'](_0x245da8);for(const _0xa9b73a of _0x8a8e90)if(_0xa9b73a['isMultiRange']){const _0x42d29c=_0xa9b73a['getRanges']();(!_0xa9b73a['attributes']||!_0xa9b73a['attributes']['skipNestingCheck'])&&(_0x42d29c['every'](_0xb09888=>_0xee9fe['some'](_0x2c662b=>_0x2c662b['containsRange'](_0xb09888,!0x0)))&&_0xa9b73a['discard']());if(_0xee9fe['every'](_0x534f33=>_0x42d29c['some'](_0x5f52c6=>_0x5f52c6['containsRange'](_0x534f33,!0x0)))){const _0x2e3adf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1846ec,'accept');return this['forceDefaultExecution'](()=>_0x2e3adf(_0x5167f8,null,_0x198fb1)),null;}}else{const _0x1bff21=_0xa9b73a['getFirstRange']();_0xee9fe['some'](_0x1fce95=>_0x1fce95['containsRange'](_0x1bff21,!0x0))&&_0xa9b73a['discard']();if(_0xee9fe['every'](_0x1c647a=>_0x1bff21['containsRange'](_0x1c647a,!0x0))){const _0x26e858=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1846ec,'accept');return this['forceDefaultExecution'](()=>_0x26e858(_0xee9fe,null,_0x198fb1)),null;}}const _0x28dcfc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1846ec,'join');let _0x124fca=null;for(const _0x2efa92 of this['getSuggestions']())if(_0x2efa92['author']['id']==_0x3a623f['id']&&_0x2efa92['isInContent']&&'deletion'==_0x2efa92['type']&&_0x2efa92['subType']==_0x1846ec&&qt(_0x2efa92,_0x198fb1)&&(_0x28dcfc(_0x2efa92['getRanges'](),_0xee9fe)||_0x28dcfc(_0xee9fe,_0x2efa92['getRanges']()))){if(_0x124fca){if(_0x2efa92['commentThread']&&_0x2efa92['commentThread']['length'])continue;for(const _0xd91469 of _0x2efa92['getRanges']())_0x124fca['isIntersectingWithRange'](_0xd91469)||_0x124fca['addRange'](_0xd91469);_0x2efa92['removeMarkers']();}else{_0x124fca=_0x2efa92;for(const _0x324a4f of _0xee9fe)_0x2efa92['isIntersectingWithRange'](_0x324a4f)||_0x2efa92['addRange'](_0x324a4f);}}if(_0x124fca)return _0x124fca;_0x8a8e90['clear']();for(const {suggestion:_0x2e9ad6,meta:_0xe91d44}of this['_findSuggestions'](_0xee9fe,'deletion'))_0xe91d44['isOwn']&&(this['_mergeNestedSuggestions']||!_0xe91d44['containsRangeInObject']&&!_0xe91d44['isInsideObject'])&&qt(_0x2e9ad6,_0x198fb1)&&_0x8a8e90['add'](_0x2e9ad6);for(const _0x261ad1 of _0x8a8e90){const _0x28edb8=_0x261ad1['getRanges']();if(!_0x198fb1||!_0x198fb1['skipNestingCheck']){if(_0xee9fe['every'](_0x35dbf7=>_0x28edb8['some'](_0x2a7346=>_0x2a7346['containsRange'](_0x35dbf7,!0x0))))return _0x261ad1;}(!_0x261ad1['attributes']||!_0x261ad1['attributes']['skipNestingCheck'])&&(_0x28edb8['every'](_0x6b5101=>_0xee9fe['some'](_0x341c3c=>_0x341c3c['containsRange'](_0x6b5101,!0x0)))&&_0x261ad1['discard']());}const _0x17e734=_0x2325fc(),_0x50f691=_0x3a623f['id'],_0x26f7d9='deletion:'+_0x1846ec,_0x2f3651=this['_setSuggestionData']({'id':_0x17e734,'type':_0x26f7d9,'createdAt':new Date(),'authorId':_0x50f691,'attributes':_0x198fb1});for(const _0x29df98 of _0xee9fe)_0x29df98['detach'](),_0x29df98['isCollapsed']||'$graveyard'==_0x29df98['root']['rootName']||this['_addSuggestionMarker'](_0x26f7d9,_0x17e734,_0x50f691,_0x29df98,u['getMultiRangeId']());return _0x2f3651;}['markAttributeChange'](_0x8f5a0e,_0x3eb10a,_0x5a3661,_0x4edb3a,_0x1ed3d9){if(_0x8f5a0e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x444d15=this['editor']['plugins']['get']('Users')['me']['id'],_0x46941c=Array['from'](this['_suggestions']['values']())['filter'](_0x592682=>'attribute'==_0x592682['type']&&_0x592682['data']['key']==_0x3eb10a&&_0x592682['isIntersectingWithRange'](_0x8f5a0e));if('default'===this['_trackFormatChanges']){const _0x25563c=this['_findSuggestions'](_0x8f5a0e,'insertion')['filter'](({meta:_0x1aa9ca})=>_0x1aa9ca['isOwn']&&!_0x1aa9ca['isInsideObject']&&!_0x1aa9ca['isNextTo'])['map'](({suggestion:_0x4e4170})=>_0x4e4170);_0x46941c['unshift'](..._0x25563c);}const _0x5615fe=new Map([[_0x8f5a0e,_0x5a3661]]);for(const _0x2837ce of _0x46941c){const _0xe8373e='attribute'==_0x2837ce['type']?_0x2837ce['data']['oldValue']:void 0x0,_0x55806d=_0x2837ce['getFirstRange'](),_0x44fdd3=Array['from'](_0x5615fe['keys']())['find'](_0x213e81=>_0x213e81['isIntersecting'](_0x55806d));if(!_0x44fdd3)continue;const _0x495737=_0x44fdd3['getDifference'](_0x55806d);this['_isBlockAttribute'](_0x3eb10a)&&'insertion'==_0x2837ce['type']&&0x0!=_0x495737['length']||(_0x5615fe['delete'](_0x44fdd3),_0x495737['forEach'](_0x34f30c=>{_0x5615fe['set'](_0x34f30c,_0x5a3661);}),'insertion'!=_0x2837ce['type']&&_0xe8373e!=_0x4edb3a&&_0x5615fe['set'](_0x44fdd3['getIntersection'](_0x55806d),_0xe8373e));}const _0x26bdc9=[];for(const [_0x5b203f,_0x3124dc]of _0x5615fe){const _0x182afe=_0x2325fc(),_0x1b7f59={'key':_0x3eb10a,'oldValue':_0x3124dc,'newValue':_0x4edb3a};_0x3eb10a['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':_0x3eb10a});const _0x2c949c=('attribute:'+(_0x3eb10a+'|'+Pt({'newValue':_0x4edb3a})))['substring'](0x0,0x3c),_0x541a7b=this['_setSuggestionData']({'id':_0x182afe,'type':_0x2c949c,'data':_0x1b7f59,'createdAt':new Date(),'authorId':_0x444d15,'attributes':_0x1ed3d9});_0x26bdc9['push'](_0x541a7b),this['_addSuggestionMarker'](_0x2c949c,_0x182afe,_0x444d15,_0x5b203f);}return _0x26bdc9;}['enableDefaultAttributesIntegration'](_0x4e2ccc){this['enableCommand'](_0x4e2ccc,(_0x5b120d,..._0x84281b)=>{this['_recordAttributeChanges'](()=>{_0x5b120d(..._0x84281b);});});}['registerBlockAttribute'](_0x599e3d){this['_blockAttributeKeys']['add'](_0x599e3d);}['registerInlineAttribute'](_0x356eb6){this['_inlineAttributeKeys']['add'](_0x356eb6);}['_getAttributeKey'](_0x144cad){return'attribute'==_0x144cad['type']?_0x144cad['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x28196d,_0x332f0b){const _0x45940c=_0x28196d['getFirstMarker']();this['_model']['change'](_0x2c00a9=>{_0x2c00a9['updateMarker'](_0x45940c,{'range':_0x332f0b});});}['_addThreadToSuggestion'](_0x3d498d){const _0x59ccc4=_0x3d498d['id'],_0x495364=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x59ccc4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x495364,'threadId':_0x59ccc4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2f8557=this['_commentsRepository']['getCommentThread'](_0x59ccc4);_0x2f8557['unbind']('isRemovable'),_0x2f8557['isRemovable']=!0x1,_0x3d498d['commentThread']=_0x2f8557;}['_checkSuggestionCorrectness'](_0x1d8e78,_0x249580,_0x39089d,_0x2cf1e1){if(_0x1d8e78['type']!=_0x249580||_0x1d8e78['subType']!=_0x39089d||_0x1d8e78['creator']['id']!=_0x2cf1e1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3f4695('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x15e7bb,_0x277526){const _0x44719b=_0x15e7bb['getFirstRange']();if(_0x277526['isEqual'](_0x44719b))_0x15e7bb['removeMarkers']();else{if(_0x44719b['containsRange'](_0x277526)){const _0x5ab356=this['_model']['createPositionAt'](_0x277526['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x15e7bb,this['_model']['createRange'](_0x44719b['start'],_0x5ab356));const _0x16f4e1=_0x2325fc(),_0x31cfae=_0x15e7bb['creator']['id'],_0x49534f=_0x15e7bb['type']+':'+_0x15e7bb['subType'];this['_setSuggestionData']({'id':_0x16f4e1,'type':_0x49534f,'createdAt':new Date(),'authorId':_0x31cfae,'data':_0x15e7bb['data'],'attributes':_0x15e7bb['attributes']});const _0x3bd4bd=this['_model']['createPositionAt'](_0x277526['end']['parent'],'after'),_0x3f1ef9=this['_model']['createRange'](_0x3bd4bd,_0x44719b['end']);this['_addSuggestionMarker'](_0x49534f,_0x16f4e1,_0x31cfae,_0x3f1ef9);}else{if(_0x44719b['containsPosition'](_0x277526['start'])){const _0x4fa2e2=this['_model']['createPositionAt'](_0x277526['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x15e7bb,this['_model']['createRange'](_0x44719b['start'],_0x4fa2e2));}else{const _0x75b378=this['_model']['createPositionAt'](_0x277526['end']['parent'],'after');this['_setSuggestionRange'](_0x15e7bb,this['_model']['createRange'](_0x75b378,_0x44719b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5b03af){for(const {suggestion:_0x570d7a,meta:_0x5e59ab}of this['_findSuggestions'](_0x5b03af,'insertion')){if(!_0x5e59ab['isOwn'])continue;const _0x39dda5=_0x570d7a['getRanges']();for(const _0x1627dd of _0x39dda5)if(!_0x5b03af['getDifference'](_0x1627dd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1743d2){const _0x154c2f=this['editor']['plugins']['get']('Users')['getUser'](_0x1743d2);if(!_0x154c2f)throw new _0x3f4695('track-changes-user-not-found',this);return _0x154c2f;}['_getExternalAuthor'](_0x8f36bb){const _0x2847e4=this['editor']['plugins']['get']('Users'),_0x32d7b0=_0x2cc9b7('external:'+_0x8f36bb),_0x5535f2=_0x2847e4['getUser'](_0x32d7b0);return _0x5535f2||_0x2847e4['addUser']({'id':_0x32d7b0,'name':_0x8f36bb});}['_createSuggestion'](_0xdc8373,_0x46fbc3,_0x4deb8b,_0x536a99,_0x1ef5ea){const _0xd7345f=this['_getAuthorFromId'](_0x536a99),_0x354bd6=this['_suggestionFactory']['buildSuggestion'](_0xdc8373,_0x46fbc3,_0x4deb8b,_0xd7345f,_0x1ef5ea,_0x4b98fa=>{this['_updateSuggestionData'](_0x4deb8b,{'attributes':_0x4b98fa});const _0x1154f0=this['getSuggestion'](_0x4deb8b);this['_joinWithAdjacentSuggestions'](new Set([_0x1154f0])),this['_refreshSuggestionsChain'](new Set([_0x1154f0]));});return this['listenTo'](_0x354bd6,'accept',()=>{this['_updateSuggestionData'](_0x4deb8b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x354bd6,'discard',()=>{this['_updateSuggestionData'](_0x4deb8b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4deb8b,_0x354bd6),this['_suggestionState']['set'](_0x354bd6,'notReady'),_0x354bd6;}['_splitMarkerName'](_0x5e26b3){const _0x1c32a3=_0x5e26b3['split'](':');return{'group':_0x1c32a3[0x0],'type':_0x1c32a3[0x1],'subType':_0x1c32a3['length']>=0x5?_0x1c32a3[0x2]:null,'id':_0x1c32a3['length']<0x5?_0x1c32a3[0x2]:_0x1c32a3[0x3],'authorId':_0x1c32a3['length']<0x5?_0x1c32a3[0x3]:_0x1c32a3[0x4],'markerCount':0x6==_0x1c32a3['length']?_0x1c32a3[0x5]:null};}['_breakSuggestionMarker'](_0x40ed01,_0x49efbd,_0xf342fd){const _0x4385c1=_0x40ed01['getFirstRange'](),_0xac7cb3=_0x4385c1['start'],_0x5c5c59=_0x4385c1['end'];this['_setSuggestionRange'](_0x40ed01,this['_model']['createRange'](_0xac7cb3,_0x49efbd));const _0x54790f=_0x2325fc(),_0x2aae00=_0x40ed01['creator']['id'],_0x2d0b95=_0x40ed01['type']+(_0x40ed01['subType']?':'+_0x40ed01['subType']:'');this['_setSuggestionData']({'id':_0x54790f,'type':_0x2d0b95,'createdAt':new Date(),'authorId':_0x2aae00,'originalSuggestionId':_0x40ed01['id'],'attributes':_0x40ed01['attributes'],'data':_0x40ed01['data']});const _0x350384=this['_getAttributeKey'](_0x40ed01);('formatBlock'==_0x40ed01['type']||_0x350384&&this['_isBlockAttribute'](_0x350384))&&(_0xf342fd=this['_model']['createPositionBefore'](_0xf342fd['parent'])),this['_addSuggestionMarker'](_0x2d0b95,_0x54790f,_0x2aae00,this['_model']['createRange'](_0xf342fd,_0x5c5c59));}['_findSuggestions'](_0x271ac5,_0x5f1237=null){const _0x2d4ce5=[],_0x1b20f3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x271ac5)||(_0x271ac5=[_0x271ac5]);for(const _0x3afc5f of this['getSuggestions']()){if(!_0x3afc5f['isInContent'])continue;if(_0x5f1237&&_0x3afc5f['type']!=_0x5f1237)continue;let _0x1f69bb=!0x1;for(const _0x51859b of _0x3afc5f['getRanges']()){for(const _0x1fb9d4 of _0x271ac5){const _0xd12cb5=_0x1fb9d4['start']['isEqual'](_0x51859b['end'])||_0x1fb9d4['end']['isEqual'](_0x51859b['start']);if(_0xd12cb5||_0x1fb9d4['getIntersection'](_0x51859b)){const _0x3af9f6=_0x1fb9d4['containsRange'](_0x51859b)&&Et(this['_model']['schema'],_0x51859b['start'],_0x1fb9d4),_0x492ff1=_0x51859b['containsRange'](_0x1fb9d4)&&Et(this['_model']['schema'],_0x1fb9d4['start'],_0x51859b);_0x2d4ce5['push']({'suggestion':_0x3afc5f,'meta':{'isOwn':_0x1b20f3==_0x3afc5f['author'],'isNextTo':_0xd12cb5,'isInsideObject':_0x3af9f6,'containsRangeInObject':_0x492ff1}}),_0x1f69bb=!0x0;break;}}if(_0x1f69bb)break;}}return _0x2d4ce5;}['_addSuggestionMarker'](_0x41f2a4,_0x307895,_0x20dc02,_0xbfe987,_0x185aea){this['_model']['change'](_0x25dd90=>{let _0x4eb175='suggestion:'+_0x41f2a4+':'+_0x307895+':'+_0x20dc02;_0x185aea&&(_0x4eb175=_0x4eb175+':'+_0x185aea),_0x25dd90['addMarker'](_0x4eb175,{'range':_0xbfe987,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x43f96e){const _0x2707c0=_0x43f96e['previous'],_0x12c627=_0x43f96e['next'];_0x43f96e['previous']=null,_0x43f96e['next']=null,null!=_0x2707c0&&_0x2707c0['next']==_0x43f96e&&(_0x2707c0['next']=_0x12c627),null!=_0x12c627&&_0x12c627['previous']==_0x43f96e&&(_0x12c627['previous']=_0x2707c0),'ready'==this['_suggestionState']['get'](_0x43f96e)&&(this['_suggestionState']['set'](_0x43f96e,'removed'),this['fire']('suggestionUnloaded',_0x43f96e,_0x2707c0,_0x12c627));}['_setSuggestionData'](_0x49435f){const _0x5d263c=_0x49435f['id'],_0x11a16a=this['addSuggestionData'](_0x49435f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x34ce8c=this['editor']['plugins']['get']('PendingActions'),_0x4abe3f=_0x11a16a['hasComments'],_0x567d51=_0x11a16a['subType']?_0x11a16a['type']+':'+_0x11a16a['subType']:_0x11a16a['type'],_0x498519=this['editor']['locale'],_0x36c961=_0x34ce8c['add'](o(_0x498519,'PENDING_ACTION_SUGGESTION')),_0x11a2e7={'id':_0x5d263c,'type':_0x567d51,'hasComments':_0x4abe3f,'data':_0x49435f['data']||null,'originalSuggestionId':_0x49435f['originalSuggestionId']||null,'attributes':_0x11a16a['attributes']};this['_adapter']['addSuggestion'](_0x11a2e7)['then'](_0x1673e2=>{_0x11a16a['_saved']=!0x0,_0x34ce8c['remove'](_0x36c961),_0x1673e2&&_0x1673e2['createdAt']&&(this['_suggestions']['get'](_0x5d263c)['createdAt']=_0x1673e2['createdAt']);})['catch'](_0xbb231e=>{throw _0x50c0ed('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x11a16a['discard']();}),_0x11a16a['stopListening'](),this['_suggestions']['delete'](_0x11a16a['id']),this['_suggestionState']['delete'](_0x11a16a),_0xbb231e;});}return _0x11a16a;}['_isBlockAttribute'](_0x95b748){return this['_blockAttributeKeys']['has'](_0x95b748);}['_updateSuggestionData'](_0x4f3219,_0x26baa3){const _0x2828db=this['editor']['plugins']['get']('PendingActions'),_0x2b4666=this['getSuggestion'](_0x4f3219);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2b4666['_saved']){const _0x2e4c3b=_0x2828db['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4f3219,_0x26baa3)['then'](()=>{_0x2828db['remove'](_0x2e4c3b);});}else _0x2b4666['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4f3219,_0x26baa3);});}}['_getSuggestionData'](_0x5e4860){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3f4695('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5e4860);}['_handleNewSuggestionMarker'](_0x1cff5f){const {id:_0xe5558d,type:_0x51fe6f,subType:_0x3ff356,authorId:_0x452ab1}=this['_splitMarkerName'](_0x1cff5f),_0x178264=this['_suggestions']['get'](_0xe5558d)||this['_createSuggestion'](_0x51fe6f,_0x3ff356,_0xe5558d,_0x452ab1,{});switch(this['_checkSuggestionCorrectness'](_0x178264,_0x51fe6f,_0x3ff356,_0x452ab1),this['_suggestionState']['get'](_0x178264)){case'notReady':this['_getSuggestionData'](_0xe5558d)['then'](_0x131495=>{let _0x386486=Promise['resolve']();_0x131495['hasComments']&&(_0x386486=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xe5558d})),_0x386486['then'](()=>{this['addSuggestionData'](_0x131495)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x178264,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xe5558d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x178264,'ready'),this['fire']('suggestionLoaded',_0x178264);break;case'ready':this['fire']('suggestionChanged',_0x178264);}return _0x178264['addMarkerName'](_0x1cff5f),_0x178264;}['_refreshSuggestionsChain'](_0x4dbd42){const _0x16e71f=Array['from'](_0x4dbd42),_0x340be7=_0x16e71f['filter'](_0x561f5f=>'attribute'==_0x561f5f['type']);this['_refreshAttributeSuggestionsChain'](_0x340be7);const _0x1bb549=_0x16e71f['filter'](_0x597e78=>!_0x597e78['isMultiRange']&&'attribute'!=_0x597e78['type']),_0x55cd8b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ede98=>!_0x2ede98['isMultiRange']&&'attribute'!=_0x2ede98['type']),_0x42043b=_0x55cd8b['filter'](_0x50f20f=>!_0x4dbd42['has'](_0x50f20f)),_0x4e3a85=new Map(_0x55cd8b['map'](_0x1df9cf=>[_0x1df9cf,this['_suggestionFactory']['getSuggestionCallback'](_0x1df9cf['type'],_0x1df9cf['subType'],'chain')])),_0x229b53=new Map(_0x55cd8b['map'](_0x182b8c=>[_0x182b8c,_0x182b8c['getFirstRange']()])),_0x2565fb=new Set(),_0x1de79d=new Set();for(let _0x3e346=0x0;_0x3e346<_0x1bb549['length'];_0x3e346++)_0x337110(_0x1bb549[_0x3e346],_0x1bb549,_0x3e346+0x1);for(let _0x260e57=0x0;_0x260e57<_0x1bb549['length'];_0x260e57++)_0x337110(_0x1bb549[_0x260e57],_0x42043b,0x0);const _0x4fa8ee=new Set();for(let _0x9802aa=0x0;_0x9802aa<_0x1bb549['length'];_0x9802aa++){const _0x4681f7=_0x1bb549[_0x9802aa];!_0x1de79d['has'](_0x4681f7)&&_0x4681f7['previous']&&(_0x4fa8ee['add'](_0x4681f7['previous']),_0x4681f7['previous']['next']===_0x4681f7&&(_0x4681f7['previous']['next']=null),_0x4681f7['previous']=null),!_0x2565fb['has'](_0x4681f7)&&_0x4681f7['next']&&(_0x4fa8ee['add'](_0x4681f7['next']),_0x4681f7['next']['previous']===_0x4681f7&&(_0x4681f7['next']['previous']=null),_0x4681f7['next']=null);}function _0x337110(_0x5e4a32,_0x100019,_0x47f476){for(let _0x315fd8=_0x47f476;_0x315fd8<_0x100019['length'];_0x315fd8++){const _0x3594fe=_0x5159bc(_0x5e4a32,_0x100019[_0x315fd8]);_0x3594fe&&(_0x3594fe[0x0]['next']=_0x3594fe[0x1],_0x3594fe[0x1]['previous']=_0x3594fe[0x0],_0x2565fb['add'](_0x3594fe[0x0]),_0x1de79d['add'](_0x3594fe[0x1]));}}function _0x5159bc(_0x307ff7,_0x2292b8){if(_0x307ff7['author']['id']!==_0x2292b8['author']['id'])return null;const _0x3cf864=_0x4e3a85['get'](_0x307ff7)(_0x307ff7,_0x2292b8,_0x229b53['get'](_0x307ff7),_0x229b53['get'](_0x2292b8));if(!_0x3cf864)return null;return _0x4e3a85['get'](_0x2292b8)(_0x307ff7,_0x2292b8,_0x229b53['get'](_0x307ff7),_0x229b53['get'](_0x2292b8))?_0x3cf864[0x1]['commentThread']&&_0x3cf864[0x1]['commentThread']['length']?null:_0x3cf864:null;}_0x4fa8ee['size']&&this['_refreshSuggestionsChain'](_0x4fa8ee);}['_refreshAttributeSuggestionsChain'](_0x42fa92){if(0x0==_0x42fa92['length'])return;const _0x5eecbd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb805a8=>'attribute'==_0xb805a8['type']&&_0xb805a8['_isDataLoaded']),_0x593b53=[],_0xd1a9e8=new Map();for(const _0x5acda1 of _0x5eecbd){const _0x393821=_0x2cc9b7(_0x5acda1['attributes']);_0xd1a9e8['has'](_0x393821)||(_0xd1a9e8['set'](_0x393821,_0x593b53['length']),_0x593b53['push']([]));const _0x3c6ed2=_0xd1a9e8['get'](_0x393821);_0x593b53[_0x3c6ed2]['push'](_0x5acda1);}!(function(){_0x593b53['sort']((_0xd99ae0,_0x4e3fa0)=>{const _0x5cc64a=_0xd99ae0[0x0]['createdAt'],_0x181897=_0x4e3fa0[0x0]['createdAt'];return _0x5cc64a==_0x181897?_0xd99ae0[0x0]['attributes']['groupId']<_0x4e3fa0[0x0]['attributes']['groupId']?-0x1:0x1:_0x5cc64a<_0x181897?-0x1:0x1;});for(const _0x3fbd70 of _0x593b53)_0x3fbd70['sort']((_0x1c46f8,_0x4d633a)=>_0x1c46f8['id']<_0x4d633a['id']?-0x1:0x1);}());for(let _0x388845=0x0;_0x388845<_0x593b53['length'];_0x388845++){if(0x0==_0x593b53[_0x388845]['length'])continue;const _0x5197fe=[];for(let _0x1643bb=_0x388845+0x1;_0x1643bb<_0x593b53['length'];_0x1643bb++)0x0!=_0x593b53[_0x1643bb]['length']&&_0x2722dc(_0x593b53[_0x388845],_0x593b53[_0x1643bb])&&_0x5197fe['push'](_0x1643bb);for(const _0x1bb058 of _0x5197fe)_0x593b53[_0x388845]=_0x593b53[_0x388845]['concat'](_0x593b53[_0x1bb058]),_0x593b53[_0x1bb058]=[];}for(const _0x4f28f9 of _0x593b53)for(let _0x2d3402=0x0;_0x2d3402<_0x4f28f9['length'];_0x2d3402++){const _0x11c300=_0x4f28f9[_0x2d3402+0x1]||null;_0x4f28f9[_0x2d3402]['next']!==_0x11c300&&(_0x4f28f9[_0x2d3402]['next']=_0x11c300);}for(const _0x5cea22 of _0x593b53)for(let _0x3caa8e=0x0;_0x3caa8e<_0x5cea22['length'];_0x3caa8e++){const _0x82d95=_0x5cea22[_0x3caa8e-0x1]||null;_0x5cea22[_0x3caa8e]['previous']!==_0x82d95&&(_0x5cea22[_0x3caa8e]['previous']=_0x82d95);}function _0x2722dc(_0x527bdc,_0x4b097e){if(_0x527bdc[0x0]['attributes']['groupId']!==_0x4b097e[0x0]['attributes']['groupId']&&_0x527bdc[0x0]['author']!==_0x4b097e[0x0]['author'])return!0x1;if(!function(_0x26d896,_0x5a74b7){if(!_0x26d896['hasComments']&&!_0x5a74b7['hasComments'])return!0x0;if(_0x26d896['hasComments']&&_0x5a74b7['hasComments'])return!0x1;if(_0x26d896['hasComments']&&_0x5a74b7['createdAt']<_0x26d896['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5a74b7['hasComments']&&_0x26d896['createdAt']<_0x5a74b7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x527bdc[0x0],_0x4b097e[0x0]))return!0x1;const _0x52724e=Rt(_0x527bdc[0x0]['attributes'],'groupId'),_0x537c11=Rt(_0x4b097e[0x0]['attributes'],'groupId');if(!_0x2dfd37(_0x52724e,_0x537c11))return!0x1;return!!_0x527bdc['every'](_0x49c7a0=>_0x4b097e['some'](_0x3ec90f=>_0x49c7a0['getFirstRange']()['isEqual'](_0x3ec90f['getFirstRange']())))&&_0x4b097e['every'](_0x530f71=>_0x527bdc['some'](_0xf579de=>_0x530f71['getFirstRange']()['isEqual'](_0xf579de['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xef0d6e){const _0x162217=Array['from'](_0xef0d6e),_0x5c6b82=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3931ad=_0x5c6b82['filter'](_0x34e756=>!_0xef0d6e['has'](_0x34e756)),_0x521667=new Map(_0x162217['map'](_0x1005e5=>[_0x1005e5,this['_suggestionFactory']['getSuggestionCallback'](_0x1005e5['type'],_0x1005e5['subType'],'join')])),_0x5db370=new Map(_0x5c6b82['map'](_0x34ea5a=>[_0x34ea5a,_0x34ea5a['getRanges']()]));for(let _0x1ee423=0x0;_0x1ee423<_0x162217['length'];_0x1ee423++){if(_0x5d1318(this,_0x162217[_0x1ee423],_0x162217,_0x1ee423+0x1))return!0x0;}for(let _0x4ceed5=0x0;_0x4ceed5<_0x162217['length'];_0x4ceed5++){if(_0x5d1318(this,_0x162217[_0x4ceed5],_0x3931ad,0x0))return!0x0;}return!0x1;function _0x5d1318(_0x3b8c89,_0x31041a,_0x1b6d1f,_0x5aad77){for(let _0x308fc3=_0x5aad77;_0x308fc3<_0x1b6d1f['length'];_0x308fc3++){const _0x10147d=_0x1b6d1f[_0x308fc3];if(_0x10147d['type']!==_0x31041a['type']||_0x10147d['author']['id']!==_0x31041a['author']['id']||_0x10147d['subType']!==_0x31041a['subType'])continue;if(!Jt(_0x31041a,_0x10147d))continue;if('attribute'==_0x31041a['type']&&_0x31041a['data']['oldValue']!=_0x10147d['data']['oldValue'])continue;if('attribute'==_0x31041a['type']&&_0x3b8c89['_isBlockAttribute'](_0x31041a['data']['key']))continue;if('formatBlock'==_0x31041a['type']){const _0xd574f0=_0x3b8c89['editor']['model'],_0x14c73d=_0x31041a['getContainedElement']();if(_0x14c73d&&(_0xd574f0['schema']['isObject'](_0x14c73d)||_0xd574f0['schema']['isLimit'](_0x14c73d)))continue;}const _0x1b8c4e=_0x521667['get'](_0x31041a),_0x390198=_0x5db370['get'](_0x31041a),_0x1e810f=_0x5db370['get'](_0x10147d),_0x5de83b=_0x31041a['commentThread']&&_0x31041a['commentThread']['length'],_0x2674ab=_0x10147d['commentThread']&&_0x10147d['commentThread']['length'];if(!_0x5de83b&&_0x1b8c4e(_0x1e810f,_0x390198))return _0x3b8c89['_joinSuggestions'](_0x10147d,_0x31041a),_0x5db370['delete'](_0x31041a),!0x0;if(!_0x2674ab&&_0x1b8c4e(_0x390198,_0x1e810f))return _0x3b8c89['_joinSuggestions'](_0x31041a,_0x10147d),_0x5db370['delete'](_0x10147d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x286c8b,_0x120374){if(_0x286c8b['isMultiRange']){for(const _0x19f37a of _0x120374['getRanges']())_0x286c8b['addRange'](_0x19f37a);}else{const _0x57dd5f=_0x120374['getFirstRange']()['end'];this['_setSuggestionRange'](_0x286c8b,this['_model']['createRange'](_0x286c8b['getFirstRange']()['start'],_0x57dd5f));}_0x120374['removeMarkers']();}['_getMarkerAnnouncementText'](_0x22f355,_0x30ad81,_0x1bb265){const _0xbc999b=_0x22f355['startsWith']('format')||_0x22f355['startsWith']('attribute')?'FORMATTING':_0x22f355['toUpperCase']();return o(this['editor']['locale'],_0x30ad81+'_'+_0xbc999b+'_SUGGESTION_ANNOUNCEMENT',_0x1bb265);}['_initAriaMarkerChangeAnnouncements'](){const _0x19c97b=this['editor'];if(!_0x19c97b['ui'])return;const {ariaLiveAnnouncer:_0x5c0a20}=_0x19c97b['ui'];_0x171913(this['_model'],({left:_0x522aae,entered:_0x1c128d})=>{for(const _0x15ac6f of _0x522aae){const {group:_0x32cbf3,type:_0xe295ef}=this['_splitMarkerName'](_0x15ac6f['name']);if('suggestion'===_0x32cbf3){_0x5c0a20['announce'](this['_getMarkerAnnouncementText'](_0xe295ef,'LEAVE'));break;}}for(const _0x2f37b7 of _0x1c128d){const {group:_0x2c65e2,type:_0x247641}=this['_splitMarkerName'](_0x2f37b7['name']);if('suggestion'===_0x2c65e2){_0x5c0a20['announce'](this['_getMarkerAnnouncementText'](_0x247641,'ENTER',_0x3525fa(_0x399a6b)));break;}}});}['_processAttributeChanges'](_0xca2b84){if(this['_recordAttributeSuggestions'])return!0x1;const _0x10c27f=this['editor'],_0x3d36fb=_0x10c27f['model']['document']['differ']['getChanges']();if(0x0==_0x3d36fb['length'])return!0x1;const _0x297e3c=[],_0x979058=_0x3d36fb['filter'](_0x467aef=>'attribute'==_0x467aef['type']),_0xef03d2=_0x3d36fb['filter'](_0xffd5d7=>'insert'==_0xffd5d7['type']&&'$text'!=_0xffd5d7['name']),_0x140608=_0x3d36fb['filter'](_0x4aed7e=>'remove'==_0x4aed7e['type']&&'$text'!=_0x4aed7e['name']);for(const _0x30b915 of _0x979058)_0x297e3c['push']({'key':_0x30b915['attributeKey'],'newValue':_0x30b915['attributeNewValue'],'oldValue':_0x30b915['attributeOldValue'],'range':Ft(_0x30b915['range'],_0x10c27f['model'])});for(const _0x1b507d of _0xef03d2){const _0x34b49d=_0x140608['find'](_0x1c14cb=>_0x1c14cb['position']['isEqual'](_0x1b507d['position']));_0x34b49d&&_0x297e3c['push']({'key':m,'newValue':_0x1b507d['name'],'oldValue':_0x34b49d['name'],'range':_0x10c27f['model']['createRangeOn'](_0x1b507d['position']['nodeAfter'])});}return 0x0!=_0x297e3c['length']&&this['_reduceExistingSuggestions'](_0xca2b84,_0x297e3c);}['_processAttributeSuggestions'](_0x5658af){let _0x47b57f=!0x1;const _0x57a6d0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1630de=>_0x1630de['data']['newRange']&&_0x1630de['name']['startsWith']('suggestion:attribute:'));for(const _0x1d8cd3 of _0x57a6d0){const {subType:_0x596a33,id:_0x1e76e5}=this['_splitMarkerName'](_0x1d8cd3['name']),_0x345833=_0x596a33['split']('|')[0x0];for(const _0x5cede3 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5cede3['id']!=_0x1e76e5&&'attribute'==_0x5cede3['type']&&_0x5cede3['data']&&_0x5cede3['data']['key']==_0x345833&&_0x5cede3['getFirstRange']()['isIntersecting'](_0x1d8cd3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5cede3,_0x1d8cd3['data']['newRange'],_0x5658af),_0x47b57f=!0x0);}return _0x47b57f;}['_recordAttributeChanges'](_0x57b945){this['_recordAttributeSuggestions']=!0x0,_0x57b945();}['_isRegisteredAttribute'](_0x2a2f2e){const _0x322af4=this['_isBlockAttribute'](_0x2a2f2e),_0x295e1a=this['_inlineAttributeKeys']['has'](_0x2a2f2e);return _0x322af4||_0x295e1a;}['_reduceExistingSuggestions'](_0x32a9e3,_0x1818ef){if(0x0==_0x1818ef['length'])return!0x1;let _0x144e1e=!0x1;for(const _0xb5c2f8 of _0x1818ef){const _0x2337c1=this['_findSuggestions'](_0xb5c2f8['range'],'attribute')['filter'](_0x20b96c=>!_0x20b96c['meta']['isNextTo'])['map'](_0x272499=>_0x272499['suggestion']),_0x195d9a=_0x2cc9b7({'newValue':_0xb5c2f8['newValue']});_0x2337c1['filter'](_0x5516f7=>{const [_0x73f003,_0x2c98b6]=_0x5516f7['subType']['split']('|');return _0x73f003==_0xb5c2f8['key']&&_0x2c98b6!=_0x195d9a;})['forEach'](_0x474b33=>{this['_reduceSuggestionAttributeRange'](_0x474b33,_0xb5c2f8['range'],_0x32a9e3),_0x144e1e=!0x0;});}return _0x144e1e;}['_reduceSuggestionAttributeRange'](_0x7ad1c6,_0x57056b,_0x54fe0e){const _0x2369e3=_0x7ad1c6['getFirstRange']()['getDifference'](_0x57056b);0x0!==_0x2369e3['length']?0x1!==_0x2369e3['length']?this['_breakSuggestionMarker'](_0x7ad1c6,_0x57056b['start'],_0x57056b['end']):this['_setSuggestionRange'](_0x7ad1c6,_0x2369e3[0x0]):_0x54fe0e['removeMarker'](_0x7ad1c6['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x44524a){this['_editor']=_0x44524a,this['_model']=_0x44524a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2ebc4c,_0x5a3d61,_0x172702,_0x32cf27,_0x101ddf,_0x234f8e){return new u(this['_model'],{'type':_0x2ebc4c,'subType':_0x5a3d61,'id':_0x172702,'author':_0x32cf27,'creator':_0x32cf27,'attributes':_0x101ddf,'onAttributesChange':_0x234f8e,'onAccept':(..._0x2198ae)=>this['getSuggestionCallback'](_0x2ebc4c,_0x5a3d61,'accept')(..._0x2198ae),'onDiscard':(..._0x406e58)=>this['getSuggestionCallback'](_0x2ebc4c,_0x5a3d61,'discard')(..._0x406e58)});}['registerCustomCallback'](_0x2f8b9e,_0x5c3ed5,_0x54e2f7,_0x534291){const _0x468785=_0x2f8b9e+':'+_0x5c3ed5+':'+_0x54e2f7;this['_customCallbacks']['set'](_0x468785,_0x534291);}['getSuggestionCallback'](_0x3cccd3,_0x296a9e,_0x417d57){const _0x2656a4=_0x3cccd3+':'+_0x296a9e+':'+_0x417d57;return this['_customCallbacks']['get'](_0x2656a4)||this['_defaultCallbacks']['get'](_0x3cccd3+':'+_0x417d57);}['_registerDefaultCallbacks'](){const _0x4db94e=()=>!0x1,_0x79168=_0x27d610=>{_0x27d610['sort']((_0x1f3538,_0x3a795c)=>_0x1f3538['start']['isBefore'](_0x3a795c['start'])?0x1:-0x1),this['_model']['change'](_0x179b1c=>{for(const _0x21e087 of _0x27d610){let _0x5c7139;_0x5c7139=_0x21e087['end']['isAtEnd']&&_0x21e087['end']['parent']==_0x21e087['start']['nodeAfter']?_0x179b1c['createSelection'](_0x21e087['start']['nodeAfter'],'on'):_0x179b1c['createSelection'](_0x21e087),this['_model']['deleteContent'](_0x5c7139,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4140e1=(_0x2b9649,_0x1985d0)=>{_0x1985d0&&this['_model']['change'](_0x379680=>{const {commandName:_0x514ab1,commandParams:_0x204682=[]}=_0x1985d0,_0x49fb1f=_0x2b9649['map'](_0x3110e7=>(Vt(_0x3110e7)&&(_0x3110e7=this['_model']['createRange'](_0x3110e7['end'])),_0x3110e7))['filter'](_0x5c8931=>'$graveyard'!==_0x5c8931['root']['rootName']);if(_0x49fb1f['length']<0x1)return;const _0x535368=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1162bc=>_0x146d11['fromRange'](_0x1162bc));_0x379680['setSelection'](_0x49fb1f);for(const _0x571d4c of this['_editor']['commands']['commands']())_0x571d4c['refresh']();_0x204682['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x514ab1,..._0x204682);const _0x3139a8=_0x535368['filter'](_0x159b32=>'$graveyard'!=_0x159b32['root']['rootName']);_0x3139a8['length']>0x0&&_0x379680['setSelection'](_0x3139a8);for(const _0x3e2cd4 of _0x535368)_0x3e2cd4['detach']();});},_0xdea70c=(_0x20e1af,_0x449f3d)=>0x1==_0x20e1af['length']&&0x1==_0x449f3d['length']&&_0x20e1af[0x0]['end']['isEqual'](_0x449f3d[0x0]['start']),_0x1a6b73=(_0x1454cf,_0x4ede1a,_0x36dbc4,_0x2c71a3)=>Ht(_0x1454cf,_0x4ede1a,_0x36dbc4,_0x2c71a3,this['_model'])?[_0x1454cf,_0x4ede1a]:Ht(_0x4ede1a,_0x1454cf,_0x2c71a3,_0x36dbc4,this['_model'])?[_0x4ede1a,_0x1454cf]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4db94e),this['_defaultCallbacks']['set']('insertion:discard',_0x79168),this['_defaultCallbacks']['set']('insertion:join',_0xdea70c),this['_defaultCallbacks']['set']('insertion:chain',_0x1a6b73),this['_defaultCallbacks']['set']('deletion:accept',_0x79168),this['_defaultCallbacks']['set']('deletion:discard',_0x4db94e),this['_defaultCallbacks']['set']('deletion:join',_0xdea70c),this['_defaultCallbacks']['set']('deletion:chain',_0x1a6b73),this['_defaultCallbacks']['set']('formatInline:accept',_0x4140e1),this['_defaultCallbacks']['set']('formatInline:discard',_0x4db94e),this['_defaultCallbacks']['set']('formatInline:join',_0xdea70c),this['_defaultCallbacks']['set']('formatInline:chain',_0x4db94e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4140e1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4db94e),this['_defaultCallbacks']['set']('formatBlock:join',_0xdea70c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4db94e),this['_defaultCallbacks']['set']('attribute:accept',_0x4db94e),this['_defaultCallbacks']['set']('attribute:discard',(_0x191aec,_0xb88707)=>{if(!_0xb88707)return;const _0x5ec14a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x171333=>{if(_0xb88707['key']==m)for(const _0x594d70 of _0x191aec){const _0x155250=_0x594d70['start']['nodeAfter'],_0x54651a=_0xb88707['oldValue'];_0x171333['rename'](_0x155250,_0x54651a);}else{if(_0x5ec14a['_isBlockAttribute'](_0xb88707['key'])){for(const _0x5aa259 of _0x191aec)void 0x0!==_0xb88707['oldValue']?_0x171333['setAttribute'](_0xb88707['key'],_0xb88707['oldValue'],_0x5aa259['start']['nodeAfter']):_0x171333['removeAttribute'](_0xb88707['key'],_0x5aa259['start']['nodeAfter']);}else{for(const _0x6ec57e of _0x191aec)_0xb88707['oldValue']?_0x171333['setAttribute'](_0xb88707['key'],_0xb88707['oldValue'],_0x6ec57e):_0x171333['removeAttribute'](_0xb88707['key'],_0x6ec57e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xdea70c);}}function Et(_0x31dd65,_0x2e8c00,_0x1fd871){for(const _0x3bc773 of _0x2e8c00['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3bc773['root']==_0x3bc773)return!0x1;if(!_0x1fd871['containsItem'](_0x3bc773))return!0x1;if(_0x31dd65['isObject'](_0x3bc773)||_0x31dd65['isLimit'](_0x3bc773))return!0x0;}return!0x1;}function Vt(_0x3c6172){return _0x3c6172['end']['parent']==_0x3c6172['start']['nodeAfter']&&_0x3c6172['end']['isAtStart'];}function Ut(_0x4c34ee,_0x3935a0,_0x330910,_0x195ded){const _0xca767f=_0xb20779=>!_0xb20779['item']['is']('$textProxy')&&!_0x195ded['isObject'](_0xb20779['item']),_0x286252=_0x4c34ee['start']['getLastMatchingPosition'](_0xca767f),_0x14237c=_0x4c34ee['end']['getLastMatchingPosition'](_0xca767f,{'direction':'backward'});return(!_0x4c34ee['start']['isEqual'](_0x286252)||!_0x4c34ee['end']['isEqual'](_0x14237c))&&(_0x286252['isBefore'](_0x14237c)?_0x330910['updateMarker'](_0x3935a0,{'range':_0x330910['createRange'](_0x286252,_0x14237c)}):_0x330910['removeMarker'](_0x3935a0),!0x0);}function Pt(_0x5470dd){return _0x2cc9b7(_0x5470dd);}function Gt(_0x46b393){const _0x2cd8a5=_0x46b393['start']['nodeAfter'];return _0x2cd8a5&&_0x2cd8a5['is']('element');}function Ft(_0x380c95,_0x3b1c30){return null==_0x380c95['end']['nodeBefore']&&_0x380c95['end']['parent']==_0x380c95['start']['nodeAfter']?Lt(_0x380c95['start']['nodeAfter'],_0x3b1c30):_0x380c95;}function Lt(_0x8737a4,_0x246bff){const _0x3fe376=_0x246bff['schema']['isObject'](_0x8737a4)||_0x246bff['schema']['isSelectable'](_0x8737a4);return _0x246bff['createRange'](_0x246bff['createPositionAt'](_0x8737a4,'before'),_0x3fe376?_0x246bff['createPositionAfter'](_0x8737a4):_0x246bff['createPositionAt'](_0x8737a4,'end'));}function Ht(_0xab12d1,_0x5eccba,_0x31dfe4,_0x46b95e,_0xac0ced){if(_0xab12d1['next'])return!0x1;if(!Jt(_0xab12d1,_0x5eccba))return!0x1;if(_0x31dfe4['end']['isEqual'](_0x46b95e['start']))return!0x0;if(_0xab12d1['type']!=_0x5eccba['type'])return!0x1;if(!_0x31dfe4['end']['isTouching'](_0x46b95e['start']))return!0x1;const _0x3029a0=_0xac0ced['createRange'](_0x31dfe4['end'],_0x46b95e['start'])['getWalker']();for(const _0x5ecd2e of _0x3029a0)if(['elementStart','elementEnd']['includes'](_0x5ecd2e['type'])&&_0xac0ced['schema']['isLimit'](_0x5ecd2e['item']))return!0x1;return!0x0;}function Jt(_0x5096f5,_0x2f2344){if(!_0x5096f5['_isDataLoaded']||!_0x2f2344['_isDataLoaded'])return!0x1;const _0x44857e=new Set(Object['keys'](_0x5096f5['attributes'])),_0xdfae41=new Set(Object['keys'](_0x2f2344['attributes']));if(_0x44857e['delete']('groupId'),_0xdfae41['delete']('groupId'),0x0==_0x44857e['size']&&0x0==_0xdfae41['size'])return!0x0;if(_0x44857e['size']!=_0xdfae41['size'])return!0x1;const _0x26f3ab={..._0x5096f5['attributes']},_0x434e84={..._0x2f2344['attributes']};return delete _0x26f3ab['groupId'],delete _0x434e84['groupId'],JSON['stringify'](_0x26f3ab)==JSON['stringify'](_0x434e84);}function qt(_0x599d09,_0x5d39fe){const _0x4b0e7c=zt(_0x599d09['attributes']),_0x2da066=zt(_0x5d39fe);if(!_0x599d09['_isDataLoaded'])return!0x1;for(const _0x5523f6 of Object['keys'](_0x2da066))if(!_0x2dfd37(_0x4b0e7c[_0x5523f6],_0x2da066[_0x5523f6]))return!0x1;return!0x0;}function zt(_0x346d1f){const _0x21717=Object['assign']({},_0x346d1f);return delete _0x21717['skipNestingCheck'],delete _0x21717['tablePasteChainId'],_0x21717;}class ae extends/* #__PURE__ -- @preserve */
25
- _0xafc74d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x59d031,_0x79e5ee,_0x20df3d,_0x2574b3){super(),this['model']=_0x79e5ee,this['view']=_0x20df3d,this['commentThreadController']=_0x2574b3,this['_editor']=_0x59d031,this['_acceptCommand']=_0x59d031['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x59d031['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4afb24,_0x134c1e)=>_0x4afb24||_0x134c1e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xf7acb=>_0xf7acb&&this['_editor']['model']['canEditAt'](_0x79e5ee['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x16ebb2=>_0x16ebb2&&this['_editor']['model']['canEditAt'](_0x79e5ee['getRanges']())),this['_pendingAction']=null,_0x20df3d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x20df3d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x20df3d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x20df3d,'change:isDirty',()=>{_0x20df3d['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 _0x4bb02e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4bb02e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x22b5b2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x16cf42,_0x401d84,_0x42c11c,_0x3c008){super(_0x16cf42),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x19c8a1(_0x16cf42,o(_0x16cf42,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x401d84['authoredAt']),this['bind']('authoredAt')['to'](_0x401d84),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',_0x401d84,'authoredAt',this,'descriptionParts',(_0x5ec7c3,_0x19f60e,_0x363247)=>{const _0x53da1a=_0x363247['map'](_0x40b980=>ls(_0x40b980['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5ec7c3-0x1,_0x401d84['author']['name'],_0x19f60e?_0x3c008['formatDateTime'](_0x19f60e):'',new DOMParser()['parseFromString'](_0x53da1a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x371a4b(),this['focusTracker']=new _0x49358e(),this['keystrokes']=new _0x24a3ec(),this['focusCycler']=new _0xc29a13({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x229372=>_0x229372['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x401d84,this['_localUser']=_0x42c11c,this['_config']=_0x3c008,_0x3c008['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1d236d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x25a9fc}=this['_config'];this['commentsListView']=new _0x25a9fc(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',_0x2ba20c=>_0x2ba20c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x50df94,_0x40e9f7)=>_0x50df94||!!_0x40e9f7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3dc88c}=this['_config'],_0x12f6a9=new _0x3dc88c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x21d960=_0x12f6a9['commentInputView'];return _0x12f6a9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x21d960,'value',(_0x4915fe,_0x29642c,_0x8cb5f8)=>!!_0x8cb5f8||_0x4915fe&&!_0x29642c),_0x21d960['on']('submit',(_0x26936b,_0x23e865)=>{this['fire']('addComment',_0x23e865),_0x21d960['editor']['setData']('');}),_0x21d960['on']('cancel',()=>this['focus']()),_0x21d960['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x12f6a9;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x236258,_0x4875d3,_0x5a027b,_0x39d436){super(_0x236258,_0x4875d3,_0x5a027b,_0x39d436),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x28d29f=>_0x28d29f&&_0x28d29f[0x0]?_0x28d29f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x487efa,_0x1c9db1)=>{let _0x2bdcdd='';for(const _0x2ea0e4 of _0x487efa)_0x2bdcdd+='<p>'+ls(_0x2ea0e4['content'],_0x2ea0e4['color'])+'</p>';return _0x1c9db1?_0x2bdcdd:_0x52c42b(_0x2bdcdd,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x39d436['SuggestionView'](_0x236258,_0x4875d3,{'formatDateTime':_0x39d436['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 _0x5b7ebe=this['bindTemplate'],_0x49cf66=[this['suggestionView']];return this['commentsListView']&&_0x49cf66['push'](this['commentsListView']),this['commentThreadInputView']&&_0x49cf66['push'](this['commentThreadInputView']),_0x49cf66['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5b7ebe['if']('isActive','ck-suggestion-wrapper--active'),_0x5b7ebe['to']('type',_0x413bbc=>'ck-suggestion-'+_0x413bbc),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':_0x5b7ebe['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x49cf66};}['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 _0x22b5b2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5a8fd2,_0x1af1b9,_0x1dfc5b){super(_0x5a8fd2),this['_model']=_0x1af1b9,this['_config']=_0x1dfc5b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1af1b9),this['acceptButton']=this['_createButton'](o(_0x5a8fd2,'Accept\x20suggestion'),_0x48f094['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5a8fd2,'Discard\x20suggestion'),_0x48f094['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x18d0fa(_0x5a8fd2,_0x1af1b9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x371a4b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x49358e(),this['keystrokes']=new _0x24a3ec(),this['focusCycler']=new _0xc29a13({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x367657=>_0x367657['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x36243e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x36243e['innerHTML']=this['description'],this['on']('change:description',(_0x49d7f0,_0x38e12a,_0x7a1de9)=>{_0x36243e['innerHTML']=_0x7a1de9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2e0e0d=this['bindTemplate'],_0x24fab6=[{'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':_0x2e0e0d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2e0e0d['to']('authoredAt',_0x41e54c=>this['_config']['formatDateTime'](_0x41e54c))}]}]},{'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']&&_0x24fab6['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':_0x24fab6}]};}['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'](_0x43d8ad,_0x3931c2,_0x337835,_0x2348ef,_0x357df7){const _0x1fcdd5=new _0x7933f0(this['locale']);return _0x1fcdd5['set']({'label':_0x43d8ad,'icon':_0x3931c2,'tooltip':!0x0,'tooltipPosition':_0x357df7}),_0x1fcdd5['extendTemplate']({'attributes':{'class':_0x337835}}),_0x1fcdd5['on']('execute',()=>{this['fire'](_0x2348ef,this['_model']['id']);}),_0x1fcdd5;}['_setupKeyboardNavigation'](){const _0xdf3b7a=this['element'];this['keystrokes']['listenTo'](_0xdf3b7a);for(const _0x1270a0 of this['focusables'])this['focusTracker']['add'](_0x1270a0['element']),this['keystrokes']['listenTo'](_0x1270a0['element']);this['keystrokes']['set']('enter',(_0x2f2222,_0x441f35)=>{_0xdf3b7a===_0x2f2222['target']&&(this['focusCycler']['focusFirst'](),_0x441f35());}),this['keystrokes']['set']('esc',(_0x4a7158,_0x2615ee)=>{_0xdf3b7a!==_0x4a7158['target']&&(this['focus'](),_0x2615ee());});}}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 _0x535ab4{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2ec2ea,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1fbe12){super(_0x1fbe12),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x32bf4d=this['editor']['config'];_0x32bf4d['define']('trackChanges.SuggestionThreadView',re),_0x32bf4d['define']('trackChanges.SuggestionView',ce),_0x32bf4d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x32bf4d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1dc157,_0x34103e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x418c88,_0x26a920]of this['_handleControllerBuffer']){const _0x4b4399=this['_suggestionToController']['has'](_0x418c88);_0x4b4399||_0x26a920?_0x4b4399&&_0x26a920&&this['_destroyController'](_0x418c88):this['_initializeController'](_0x418c88);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1dc157,_0x34103e);}['init'](){const _0x346e58=this['editor'],_0x81bac5=_0x346e58['plugins']['get']('TrackChangesEditing'),_0x21835f=_0x346e58['plugins']['get']('Annotations'),_0x5294ca=_0x346e58['plugins']['get']('EditorAnnotations'),_0x2f0e09=_0x346e58['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5294ca['addSourceCollector'](()=>{const _0x3fe167=[];for(const [_0x44ceb0,_0x40ad27]of Array['from'](this['_suggestionToController'])){const _0x27eb9a=_0x44ceb0['getAllAdjacentSuggestions'](),_0x23e647=[];for(const _0x2051e8 of _0x27eb9a){if(!_0x2051e8['isInContent'])continue;if(_0x2051e8['isMultiRange']){_0x23e647['push'](..._0x2051e8['getRanges']());continue;}const _0x240caa=_0x2051e8['getFirstRange']();if(_0x23e647['length']>0x0){const _0x354630=_0x23e647[0x0]['getJoined'](_0x240caa);if(_0x354630){_0x23e647[0x0]=_0x354630;continue;}}_0x23e647['push'](_0x240caa);}_0x3fe167['push']([_0x40ad27['view'],_0x23e647]);}return _0x3fe167;}),this['listenTo'](_0x81bac5,'suggestionLoaded',(_0x2fdc39,_0x3b4e5b)=>{this['listenTo'](_0x3b4e5b,'change:previous',(_0x37abac,_0x10945a,_0x394335,_0x141307)=>{_0x3b4e5b['isInContent']&&(null==_0x394335?(this['_updateController'](_0x141307['head']),this['_handleSuggestionControllerDelayed'](_0x3b4e5b,!0x1)):(this['_updateController'](_0x394335['head']),null==_0x141307&&this['_handleSuggestionControllerDelayed'](_0x3b4e5b,!0x0)));}),null!==_0x3b4e5b['previous']?this['_updateController'](_0x3b4e5b['head']):this['_handleSuggestionControllerDelayed'](_0x3b4e5b,!0x1);}),this['listenTo'](_0x81bac5,'suggestionUnloaded',(_0x1675a8,_0x53323e,_0x29510a)=>{this['stopListening'](_0x53323e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x53323e),this['_suggestionToController']['has'](_0x53323e)&&this['_destroyController'](_0x53323e),_0x29510a&&this['_updateController'](_0x29510a['head']);}),this['listenTo'](_0x81bac5,'suggestionChanged',(_0x11e3d8,_0x5bb938)=>{this['_updateController'](_0x5bb938);}),this['listenTo'](_0x21835f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2f0e09,'addComment',(_0x1509de,{threadId:_0x4e1e63,isFromAdapter:_0x2073fd})=>{if(_0x2073fd||!_0x81bac5['hasSuggestion'](_0x4e1e63))return;const _0x455c7c=_0x81bac5['getSuggestion'](_0x4e1e63);this['_suggestionToController']['get'](_0x455c7c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x375ae0=this['editor']['plugins']['get']('Annotations'),_0x4e9b28=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42f981=Array['from'](_0x375ae0['activeAnnotations'],_0x38151f=>_0x38151f['innerView'])['filter'](_0x25e27c=>this['_viewToController']['has'](_0x25e27c)),_0x3e427a=[];for(const _0x2ded40 of _0x42f981){const _0x117ffc=this['_viewToController']['get'](_0x2ded40)['model']['getAllAdjacentSuggestions']();_0x3e427a['push'](..._0x117ffc['reduce']((_0x295fe0,_0x800b77)=>[..._0x295fe0,..._0x800b77['getMarkerNames']()],[]));}_0x4e9b28['activeMarkers']=_0x3e427a;}['_addUIComponentsToFactory'](){const _0x36a22f=this['editor'],_0x2f612f=_0x36a22f['locale'],_0x2d0de9=o(_0x2f612f,'Track\x20changes'),_0x41a577=new Wt([{'type':'switchbutton','model':new _0x4a7868({'withText':!0x0,'isToggleable':!0x0,'label':_0x2d0de9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4a7868({'withText':!0x0,'label':o(_0x2f612f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a7868({'withText':!0x0,'label':o(_0x2f612f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a7868({'withText':!0x0,'label':o(_0x2f612f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a7868({'withText':!0x0,'label':o(_0x2f612f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5e7d61 of _0x41a577)if(me(_0x5e7d61)){const _0x4a67a6=_0x36a22f['commands']['get'](_0x5e7d61['model']['commandName']);_0x5e7d61['model']['bind']('isOn','isEnabled')['to'](_0x4a67a6,'value','isEnabled');}_0x36a22f['ui']['componentFactory']['add']('trackChanges',_0x558458=>this['_createToolbarButton'](_0x558458,_0x41a577,_0x2d0de9)),_0x36a22f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x62e532=>this['_createMenuBarMenu'](_0x62e532,_0x41a577,_0x2d0de9));}['_createToolbarButton'](_0x3070b8,_0x14e30e,_0x53867e){const _0x2030da=Qt(_0x3070b8,_0x1af418),_0x3a21b1=this['editor']['commands']['get']('trackChanges');_0x2030da['buttonView']['set']({'tooltip':_0x53867e,'label':_0x53867e,'icon':he}),_0x2030da['buttonView']['bind']('isOn')['to'](_0x3a21b1,'value'),_0x2030da['buttonView']['on']('execute',()=>{_0x3a21b1['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x2030da,_0x14e30e,{'role':'menu'});const _0x1c5890=[];for(const _0x158f69 of _0x14e30e)me(_0x158f69)&&_0x1c5890['push'](this['editor']['commands']['get'](_0x158f69['model']['commandName']));const _0x39d7f5=_0x2030da['buttonView'];return _0x39d7f5['actionView']['unbind']('isEnabled'),_0x39d7f5['arrowView']['unbind']('isEnabled'),_0x39d7f5['actionView']['bind']('isEnabled')['to'](_0x3a21b1,'isEnabled'),_0x39d7f5['arrowView']['bind']('isEnabled')['toMany'](_0x1c5890,'isEnabled',(..._0x128c96)=>_0x128c96['some'](_0x594eaf=>_0x594eaf)),_0x2030da['on']('execute',_0xb6c6eb=>{this['editor']['execute'](_0xb6c6eb['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2030da;}['_createMenuBarMenu'](_0x9ef844,_0x50be4b,_0x1e9f74){const _0x263043=new Yt(_0x9ef844),_0x2fbaee=this['editor']['commands']['get']('trackChanges');_0x263043['buttonView']['set']({'label':_0x1e9f74,'icon':he});const _0x1daa60=new Zt(_0x9ef844);for(const _0x414cc7 of _0x50be4b){if('separator'==_0x414cc7['type']){_0x1daa60['items']['add'](new Xt(_0x9ef844));continue;}const _0x1f6c1d=new te(_0x9ef844,_0x263043),_0x5e9f6b=new _0x185c92(_0x9ef844),_0x70cd3e=_0x414cc7['model'];_0x5e9f6b['bind'](...Object['keys'](_0x70cd3e))['to'](_0x70cd3e),_0x5e9f6b['delegate']('execute')['to'](_0x263043),_0x5e9f6b['on']('execute',()=>{this['editor']['execute'](_0x70cd3e['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f6c1d['children']['add'](_0x5e9f6b),_0x1daa60['items']['add'](_0x1f6c1d);}return _0x263043['bind']('isEnabled')['to'](_0x2fbaee,'isEnabled'),_0x263043['panelView']['children']['add'](_0x1daa60),_0x263043;}['_initializeController'](_0x5ab65a){const _0x2f4424=this['editor'],_0x4a9eb4=_0x2f4424['config'],_0x4b6fda=_0x2f4424['plugins']['get']('Annotations'),_0x246043=_0x2f4424['plugins']['get']('CommentsRepository'),_0x513917=_0x2f4424['plugins']['get']('EditorAnnotations'),_0x2f45b9=_0x2f4424['plugins']['get'](_0x2ec2ea)['me'],_0x4c29f4=_0x4a9eb4['get']('trackChanges')['SuggestionThreadView'],_0x264bf0=_0x4a9eb4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x94eb9d,CommentThreadInputView:_0x9c1515}=_0x2f4424['plugins']['get']('CommentsUI');let _0x1402af,_0x427a55,_0x28ec25;this['_annotationViews']['has'](_0x5ab65a['id'])?(_0x427a55=this['_annotationViews']['get'](_0x5ab65a['id']),_0x1402af=_0x427a55['mainView']):(_0x1402af=new _0x4c29f4(_0x2f4424['locale'],_0x5ab65a,_0x2f45b9,{'disableComments':this['_disableComments'],'editorConfig':_0x4a9eb4['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4a9eb4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a9eb4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4a9eb4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5c649f(_0x4a9eb4['get']('locale')),'CommentView':_0x4a9eb4['get']('comments')['CommentView'],'CommentsListView':_0x94eb9d,'CommentThreadInputView':_0x9c1515,'SuggestionView':_0x264bf0}),_0x1402af['suggestionView']['acceptButton']['on']('execute',()=>{_0x2f4424['editing']['view']['focus']();}),_0x1402af['suggestionView']['discardButton']['on']('execute',()=>{_0x2f4424['editing']['view']['focus']();}),_0x427a55=_0x4b6fda['createAnnotationView'](this['editor']['locale'],_0x1402af),_0x427a55['bind']('isDirty')['to'](_0x1402af,'isDirty'),_0x427a55['bind']('length')['to'](_0x1402af),_0x427a55['bind']('type')['to'](_0x1402af,'type',_0x1aa0ae=>'suggestion-'+_0x1aa0ae),_0x1402af['on']('escape',()=>{_0x28ec25['fire']('escape');}),this['_annotationViews']['set'](_0x5ab65a['id'],_0x427a55));const _0xbb9b15=_0x246043['createCommentThreadController'](_0x5ab65a['commentThread'],_0x1402af),_0x467dd3=new ae(_0x2f4424,_0x5ab65a,_0x1402af,_0xbb9b15),_0x4c502f=_0x5ab65a['getAllAdjacentSuggestions']()['filter'](_0x1e8060=>_0x1e8060['isInContent']);_0x1402af['descriptionParts']=_0x2f4424['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4c502f),this['_suggestionToController']['set'](_0x5ab65a,_0x467dd3),this['_viewToController']['set'](_0x1402af,_0x467dd3),_0x28ec25=_0x4b6fda['createAnnotation']({'view':_0x427a55,'target':()=>{const _0xc5e6b6=[],_0x47468f=_0x5ab65a['getAllAdjacentSuggestions']()['filter'](_0x241d5d=>_0x241d5d['isInContent']);for(const _0xc105ae of _0x47468f)_0xc5e6b6['push'](..._0xc105ae['getMarkers']());return _0x12fb88(_0x2f4424['editing'],_0xc5e6b6);},'type':()=>'suggestion-'+_0x467dd3['view']['type']}),_0x246043['_bindAnnotationToEditors'](_0x1402af,_0x28ec25),_0x4b6fda['add'](_0x28ec25),_0x513917['registerAnnotation'](_0x28ec25);}['_destroyController'](_0xd3e016){const _0x1f62f5=this['editor']['plugins']['get']('CommentsRepository'),_0x25f15=this['editor']['plugins']['get']('Annotations'),_0x2eca98=this['_suggestionToController']['get'](_0xd3e016),_0x338c94=_0x2eca98['view'],_0x12b1a0=_0x25f15['getByInnerView'](_0x338c94);_0x1f62f5['_unbindEditors'](_0x338c94),_0x12b1a0&&_0x25f15['remove'](_0x12b1a0),this['_suggestionToController']['delete'](_0xd3e016),this['_viewToController']['delete'](_0x338c94),_0x2eca98['destroy']();}['_updateController'](_0x39920b){if(!_0x39920b['isInContent']||!this['_suggestionToController']['has'](_0x39920b))return;const _0x17de69=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53f21f=this['_suggestionToController']['get'](_0x39920b),_0x23f5ef=_0x39920b['getAllAdjacentSuggestions']();_0x53f21f['view']['descriptionParts']=_0x17de69['descriptionFactory']['getDescriptions'](_0x23f5ef);}['destroy'](){for(const _0x3b17eb of this['_suggestionToController']['keys']())this['_destroyController'](_0x3b17eb);for(const _0x43a326 of this['_annotationViews']['values']())_0x43a326['mainView']['destroy']();super['destroy']();}}function me(_0x43e3ca){return'model'in _0x43e3ca;}class k extends _0x535ab4{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x8d38e9){this['editor']['plugins']['get'](p)['adapter']=_0x8d38e9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x15d463){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x15d463);}['getSuggestions']({skipNotAttached:_0x5cbb6d=!0x1,toJSON:_0x16f6c5=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5cbb6d,'toJSON':_0x16f6c5});}['getSuggestion'](_0x2215ab){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2215ab);}}const w=['Pagination'];class T extends _0x535ab4{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x345dc0=this['editor'];if(_0x345dc0['config']['define']('trackChangesData.editorCreator',_0xbb70d1=>{const _0x773ef3=_0x345dc0['model']['document']['getRootNames']()['reduce']((_0x30e1af,_0x3012f7)=>(_0x30e1af[_0x3012f7]='',_0x30e1af),{});return _0x345dc0['constructor']['create'](_0x773ef3,_0xbb70d1);}),'function'!=typeof _0x345dc0['config']['get']('trackChangesData')['editorCreator'])throw new _0x3f4695('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5559e3){return N(this['editor'],!0x0,_0x5559e3);}['getDataWithDiscardedSuggestions'](_0x40fc9b){return N(this['editor'],!0x1,_0x40fc9b);}}class D extends _0x535ab4{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ac0e4){super(_0x4ac0e4),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(_0xef0a88){return void 0x0!==_0xef0a88['getRootsAttributes'];}async function N(_0x1dc310,_0x484ee3,_0xb14d5f){const _0xe28c0a=_0x35cc56(_0x1dc310,w);_0xe28c0a['plugins']['push'](p,D),_0xe28c0a['rootsAttributes']=v(_0x1dc310)?_0x1dc310['getRootsAttributes']():void 0x0;const _0x9aeb15=document['createDocumentFragment'](),_0x24d1ec=_0x1dc310['config']['get']('trackChangesData')['editorCreator'],_0x5c03e8=await _0x24d1ec(_0xe28c0a,()=>function(_0x17bf07){const _0x49210d=document['createElement']('div');return _0x17bf07['appendChild'](_0x49210d),_0x49210d;}(_0x9aeb15));!function(_0x227b7b,_0x43eeed){const _0x5aab54=_0x227b7b['model']['document']['getRootNames']()['reduce']((_0x31f161,_0x2a2e11)=>(_0x31f161[_0x2a2e11]=_0x227b7b['data']['get']({'rootName':_0x2a2e11}),_0x31f161),{}),_0x51a1f8=_0x227b7b['plugins']['get']('Users')['users']['map'](_0x238b2d=>({'id':_0x238b2d['id'],'name':_0x238b2d['name']})),_0x79fb34=_0x227b7b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x43b2f4=_0x227b7b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x359196=_0x43eeed['plugins']['get']('Users'),_0x5824a7=_0x43eeed['plugins']['get']('TrackChangesEditing'),_0x39e278=_0x43eeed['plugins']['get']('CommentsRepository');for(const _0x466e6a of _0x39e278['getCommentThreads']())_0x466e6a['remove']();for(const _0x25da98 of _0x51a1f8)_0x359196['getUser'](_0x25da98['id'])||_0x359196['addUser'](_0x25da98);_0x359196['me']||_0x359196['useAnonymousUser']();for(const _0x54df7c of _0x43b2f4)_0x39e278['addCommentThread'](_0x54df7c);for(const _0x33d583 of _0x79fb34)_0x5824a7['addSuggestionData'](_0x33d583);_0x43eeed['data']['set'](_0x5aab54);}(_0x1dc310,_0x5c03e8),_0x5c03e8['execute'](_0x484ee3?'acceptAllSuggestions':'discardAllSuggestions');const _0xf897f5=v(_0x5c03e8)?_0x5c03e8['getFullData'](_0xb14d5f):_0x5c03e8['data']['get'](_0xb14d5f);return await _0x5c03e8['destroy'](),_0xf897f5;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x16a2ad,PendingActions as _0x57b538,icons as _0x129e38}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2f735b,ObservableMixin as _0x4f9031,uid as _0x31d1bc,insertToPriorityArray as _0x972427,priorities as _0x3a7800,logWarning as _0x1e894b,getEnvKeystrokeText as _0x3a49cf,FocusTracker as _0x328256,KeystrokeHandler as _0x3f0bfa,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1dc0d1,View as _0x5c48ce,ViewCollection as _0x11e3bc,FocusCycler as _0x594f2e,ViewModel as _0x1596b5,createDropdown as Qt,SplitButtonView as _0x646426,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x5c4ce3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5680c5,hashObject as _0x115a16,surroundingMarkersDetector as _0x31b647,FOCUS_ANNOTATION_KEYSTROKE as _0x2cdcf8,AriaDescriptionView as _0x1e2267,setupThreadKeyboardNavigation as _0x3cb939,trimHtml as _0x189d33,UserView as _0x25caa3,LateFocusButtonView as _0x388278,getDateTimeFormatter as _0x1661b2,getAllMarkersDomElementsSorted as _0x39b097,sanitizeEditorConfig as _0x1c6eb1}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x367a8a,LiveRange as _0x1eeee4,LivePosition as _0x10cc9c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2d4906,toWidget as _0x1dfbcb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x45a778,set as _0x54e2f9,isEqual as _0x10d9b1,unset as _0x24aeb4,omit as Rt}from'lodash-es';import{Delete as _0x292bc5,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1e43b9,ShiftEnter as _0x3bdf00}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x195baa,_0x493867){super(_0x195baa),this['_enabledCommands']=_0x493867,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 _0xbb5279 of this['editor']['commands']['commands']())_0xbb5279['affectsData']&&!this['_enabledCommands']['has'](_0xbb5279)&&_0xbb5279['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5414b6 of this['editor']['commands']['commands']())_0x5414b6['affectsData']&&!this['_enabledCommands']['has'](_0x5414b6)&&_0x5414b6['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x914731,_0x18d0a9){super(_0x914731),this['_suggestions']=_0x18d0a9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3bfce3){const _0xd02ee3=this['_suggestions']['get'](_0x3bfce3);if(!_0xd02ee3)throw new _0x2f735b('track-changes-accept-suggestion-not-found',this);const _0x33d252=_0xd02ee3['getRanges']();this['editor']['model']['canEditAt'](_0x33d252)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd02ee3);}}class O extends ts{['_suggestions'];constructor(_0x5dd319,_0x55fc34){super(_0x5dd319),this['_suggestions']=_0x55fc34,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x459bb8){const _0x4703dd=this['_suggestions']['get'](_0x459bb8);if(!_0x4703dd)throw new _0x2f735b('track-changes-discard-suggestion-not-found',this);const _0x3e456e=_0x4703dd['getRanges']();this['editor']['model']['canEditAt'](_0x3e456e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4703dd);}}function ls(_0x52ae60,_0x407e77){let _0xfc4b7b='';return _0xfc4b7b+=_0x52ae60['split']('*')['map']((_0xe54749,_0x3a97f6)=>_0x3a97f6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xe54749)+'</span>':nn(_0xe54749))['join'](''),_0x407e77&&(_0xfc4b7b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x407e77['value']+'\x22\x20title=\x22'+_0x407e77['title']+'\x22></span>'),_0xfc4b7b;}function nn(_0x10041e){const _0xcd4608=document['createElement']('span');return _0xcd4608['innerText']=_0x10041e,_0xcd4608['innerHTML'];}function ss(_0x2e64d5){return _0x2e64d5['sort']((_0x2cb833,_0x1e2e7a)=>'deletion'==_0x2cb833['type']&&'deletion'!=_0x1e2e7a['type']?-0x1:'deletion'!=_0x2cb833['type']&&'deletion'==_0x1e2e7a['type']?0x1:0x0);}function to(_0x37f122,_0x29783c){let _0x152657,_0x605cf1=0x0;const _0x467042=[],_0x245de0=_0x29783c['schema'];for(;_0x605cf1<_0x37f122['length'];){const _0x540e96=_0x37f122[_0x605cf1],_0x3feb04=_0x37f122[_0x605cf1+0x1];_0x152657||(_0x152657=_0x29783c['createPositionBefore'](_0x540e96)),on(_0x29783c,_0x540e96,_0x3feb04)||(_0x467042['push'](_0x29783c['createRange'](_0x152657,_0x245de0['isObject'](_0x540e96)?_0x29783c['createPositionAfter'](_0x540e96):_0x29783c['createPositionAt'](_0x540e96,'end'))),_0x152657=null),_0x605cf1++;}return _0x467042;}function on(_0x2fb83d,_0x4216c2,_0x3515f3){if(!_0x3515f3)return!0x1;const _0x4845a6=_0x2fb83d['createPositionAfter'](_0x4216c2),_0x593ab8=_0x2fb83d['createPositionBefore'](_0x3515f3);return _0x4845a6['isTouching'](_0x593ab8);}function rs(_0x5fda51,_0x1f704d,_0x4c6b25){for(;_0x4c6b25['length'];){const _0x5627b1=_0x4c6b25['splice'](0x0,0x64);_0x5fda51['change'](()=>{for(const _0x353754 of _0x5627b1)_0x353754['isInContent']&&_0x1f704d['execute'](_0x353754['id']);});}}class R extends ts{['_command'];['_suggestions'];constructor(_0x1a82ca,_0x23321e,_0x1f8031){super(_0x1a82ca),this['_command']=_0x23321e,this['_suggestions']=_0x1f8031,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1f6459=Array['from'](this['_suggestions']['values']())['some'](_0x462f07=>_0x462f07['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1f6459;}['execute'](){const _0x5af000=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1485bc of _0x5af000){const _0x60a2f3=_0x1485bc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x60a2f3))return;}rs(this['editor']['model'],this['_command'],_0x5af000);}}class E extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x389f58,_0x4701de,_0x2cb87b){super(_0x389f58),this['_command']=_0x4701de,this['_suggestions']=_0x2cb87b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x443964=this['editor']['model']['document']['selection'],_0x449c40=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x8e56d3,_0x580e04){const _0x4a658d=Array['from'](_0x8e56d3['getRanges']()),_0x250da0=new Set();for(const _0x1736ec of _0x580e04)if(_0x1736ec['isInContent']){for(const _0x245705 of _0x4a658d)for(const _0x121fcb of _0x1736ec['getRanges']())(_0x245705['isIntersecting'](_0x121fcb)||_0x8e56d3['isCollapsed']&&!_0x1736ec['isMultiRange']&&_0x1736ec['next']&&_0x121fcb['end']['isTouching'](_0x245705['start']))&&_0x250da0['add'](_0x1736ec);}return _0x250da0;}(_0x443964,_0x449c40),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xece6b7=ss(Array['from'](this['_selectedSuggestions']));for(const _0xa93f31 of _0xece6b7){const _0x1296e8=_0xa93f31['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1296e8))return;}rs(this['editor']['model'],this['_command'],_0xece6b7);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x4f9031(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x140448,_0x29e9d5){super(),this['id']=_0x29e9d5['id'],this['type']=_0x29e9d5['type'],this['subType']=_0x29e9d5['subType']||null,this['author']=_0x29e9d5['author'],this['creator']=_0x29e9d5['creator']||_0x29e9d5['author'],this['isExternal']=Boolean(_0x29e9d5['attributes']&&_0x29e9d5['attributes']['@external']),this['data']=null,this['_model']=_0x140448,this['_onAccept']=_0x29e9d5['onAccept'],this['_onDiscard']=_0x29e9d5['onDiscard'],this['_onAttributesChange']=_0x29e9d5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29e9d5['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 _0x4f27ee=this;for(;_0x4f27ee['previous'];)_0x4f27ee=_0x4f27ee['previous'];return _0x4f27ee;}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'](_0x53e8cd){this['_markerNames']['add'](_0x53e8cd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x42add3=>this['_model']['markers']['get'](_0x42add3))['filter'](_0x4fac7b=>_0x4fac7b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x29d642=>{for(const _0x2ff0bc of this['getMarkers']())_0x29d642['removeMarker'](_0x2ff0bc);}),this['_markerNames']['clear']();}['removeMarker'](_0x29dc32){this['_model']['change'](_0x2f0f90=>{_0x2f0f90['removeMarker'](_0x29dc32);}),this['_markerNames']['delete'](_0x29dc32);}['addRange'](_0x4822c4){const _0x51429b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x51429b),this['_model']['change'](_0x41d51e=>{_0x41d51e['addMarker'](_0x51429b,{'range':_0x4822c4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x8669f2){for(const _0x579013 of this['getRanges']())if(_0x579013['isIntersecting'](_0x8669f2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x582f56=>_0x582f56['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x195262,_0x4df04f)=>[..._0x195262,..._0x4df04f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x42c171=this['getRanges']();if(0x1!=_0x42c171['length'])return null;const _0x18ed40=_0x42c171[0x0],_0x9b9941=_0x18ed40['start']['nodeAfter'],_0x2e4109=_0x18ed40['end']['nodeBefore'];return _0x9b9941 instanceof _0x367a8a?_0x9b9941!=_0x2e4109?null:_0x9b9941: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 _0xe01a0c=[];let _0x11e55c=this['head'];for(;_0x11e55c;)_0xe01a0c['push'](_0x11e55c),_0x11e55c=_0x11e55c['next'];return _0xe01a0c;}['setAttribute'](_0x1157dc,_0x3c4536){const _0x248620=_0x45a778(this['attributes']);_0x54e2f9(_0x248620,_0x1157dc,_0x3c4536),_0x10d9b1(_0x248620,this['attributes'])||(this['attributes']=_0x248620,this['_onAttributesChange'](_0x248620));}['removeAttribute'](_0x4ea4ef){const _0x197ed4=_0x45a778(this['attributes']);_0x24aeb4(_0x197ed4,_0x4ea4ef),_0x10d9b1(_0x197ed4,this['attributes'])||(this['attributes']=_0x197ed4,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 _0x31d1bc()['substr'](0x1,0x5);}}function o(_0x3a643a,_0x48c03c,_0x564575){const _0x501a8d=_0x3a643a['t'],t=_0x3a643a['t'];switch(_0x48c03c){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',_0x564575);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x564575);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x564575);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x564575);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x564575);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',_0x564575);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x564575);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',_0x564575);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x564575);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x564575);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x564575);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x564575);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x564575);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x564575);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x564575);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x564575);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x564575);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x564575);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x564575);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x564575);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x564575);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x564575);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x564575);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'},_0x564575);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x564575);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x564575);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x564575);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x564575);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x564575);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'},_0x564575);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x564575);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x564575);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x564575);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x564575);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'},_0x564575);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x564575);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'},_0x564575);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'},_0x564575);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x564575);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'},_0x564575);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x564575);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'},_0x564575);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x564575);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x564575);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'},_0x564575);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 _0x501a8d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x564575);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x501a8d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x564575);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x564575);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'},_0x564575);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'},_0x564575);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'},_0x564575);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x48c03c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3d7259,_0x4fbf39){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3d7259,this['_locale']=_0x4fbf39;}['getDescriptions'](_0x4b60a9){const _0x3ebd3f=[],_0x499342=new Set(),_0x40c875=new Set();for(let _0x561a43=0x0;_0x561a43<_0x4b60a9['length'];_0x561a43++){const _0x448cdc=_0x4b60a9[_0x561a43];if(!_0x448cdc['isInContent'])continue;const _0x376893=this['_handleCustomCallbackDescription'](_0x448cdc);if(_0x376893){if(null!=_0x448cdc['subType']){if(_0x499342['has'](_0x448cdc['subType']))continue;_0x499342['add'](_0x448cdc['subType']);}_0x3ebd3f['push'](_0x376893);}else{if('attribute'!=_0x448cdc['type'])'insertion'!=_0x448cdc['type']&&'deletion'!=_0x448cdc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3ebd3f,_0x448cdc,_0x4b60a9[_0x561a43+0x1]);else{const _0x178f5e=_0x448cdc['data']['key'];if(_0x40c875['has'](_0x178f5e))continue;_0x40c875['add'](_0x448cdc['data']['key']),_0x178f5e==m?this['_handleRenameSuggestionDescription'](_0x3ebd3f,_0x448cdc):this['_handleAttributeSuggestionDescription'](_0x3ebd3f,_0x448cdc);}}}return this['_resolveDescriptionItems'](_0x3ebd3f);}['registerDescriptionCallback'](_0x34c67a){this['_customCallbacks']['push'](_0x34c67a);}['registerElementLabel'](_0x49a99c,_0x882ed3,_0x52e8c0=_0x3a7800['normal']){'function'==typeof _0x49a99c?_0x972427(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49a99c,'label':_0x882ed3,'priority':_0x52e8c0}):this['_itemLabels']['set'](_0x49a99c,_0x882ed3);}['registerAttributeLabel'](_0x5d5eee,_0x16e205){this['_attributeLabels']['set'](_0x5d5eee,_0x16e205);}['getItemLabel'](_0x16d4ac,_0x5f3cd4=0x1){let _0x1327fe;for(const _0xa198c0 of this['_itemLabelsCallbacks'])if(_0xa198c0['matchingCallback'](_0x16d4ac)){_0x1327fe=_0xa198c0['label'];break;}return _0x1327fe||(_0x1327fe=this['_itemLabels']['get'](_0x16d4ac['name'])),_0x1327fe?_0x1327fe(_0x5f3cd4):0x1!==_0x5f3cd4?_0x5f3cd4+'\x20'+_0x16d4ac['name']+'s':''+_0x16d4ac['name'];}['_addDescriptionItems'](_0x150606,_0x2894bc){const _0x250851=_0x2894bc['getFirstRange']()['getWalker'](),_0x48f0a0='insertion'==_0x2894bc['type']?'add':'remove';for(const _0x525bdb of _0x250851){const _0x222f37=_0x525bdb['item'],_0x32c832=_0x150606[_0x150606['length']-0x1];if(_0x222f37['is']('$textProxy'))_0x32c832&&_0x32c832['type']['indexOf']('Container')>-0x1&&_0x150606['pop'](),_0x32c832&&'text'==_0x32c832['type']?_0x32c832[_0x48f0a0]+=_0x222f37['data']:_0x150606['push']({'type':'text','add':'add'==_0x48f0a0?_0x222f37['data']:'','remove':'remove'==_0x48f0a0?_0x222f37['data']:''});else{if(this['_schema']['isObject'](_0x222f37)){const _0x30c6b0=_0x222f37;if(_0x32c832&&_0x32c832['type']['indexOf']('Container')>-0x1&&_0x150606['pop'](),'elementEnd'==_0x525bdb['type'])continue;_0x32c832&&_0x32c832['type']==_0x48f0a0+'Object'&&_0x32c832['element']['name']==_0x30c6b0['name']?_0x32c832['quantity']++:_0x150606['push']({'type':_0x48f0a0+'Object','element':_0x30c6b0,'quantity':0x1}),_0x250851['skip'](_0x308a96=>!('elementEnd'==_0x308a96['type']&&_0x308a96['item']==_0x222f37));}else{if(this['_schema']['checkChild'](_0x222f37,'$text')||_0x222f37['is']('element','softBreak')){const _0xe57d1=_0x222f37;if('add'==_0x48f0a0&&'elementStart'==_0x525bdb['type']||'remove'==_0x48f0a0&&'elementEnd'==_0x525bdb['type'])continue;if(_0x32c832&&-0x1==_0x32c832['type']['indexOf']('Container')){'text'==_0x32c832['type']&&(_0x32c832[_0x48f0a0]+='\x0a');continue;}let _0x3f945c;if(_0x3f945c='add'==_0x48f0a0?_0xe57d1['nextSibling']&&!this['_schema']['isObject'](_0xe57d1['nextSibling'])?_0xe57d1['nextSibling']:null:_0xe57d1['previousSibling']&&!this['_schema']['isObject'](_0xe57d1['previousSibling'])?_0xe57d1['previousSibling']:null,_0xe57d1['isEmpty']||_0x3f945c&&_0x3f945c['isEmpty']){const _0x3ae0a6=_0x3f945c&&_0x3f945c['isEmpty']?_0x3f945c:_0xe57d1;_0x32c832&&_0x32c832['type']==_0x48f0a0+'EmptyContainer'&&_0x32c832['element']['name']==_0x3ae0a6['name']?_0x32c832['quantity']++:_0x150606['push']({'type':_0x48f0a0+'EmptyContainer','element':_0x3ae0a6,'quantity':0x1});}else _0x150606['push']({'type':_0x48f0a0+'Container','element':_0xe57d1});}}}}}['_resolveDescriptionItems'](_0x31bf15){const _0x3f748a=this['_locale'],_0x450dff=[],_0x166dde=[],_0x241ecb=[];for(const _0x31e445 of _0x31bf15)switch(_0x31e445['type']){case'text':if(_0x31e445['add']=_0x31e445['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x31e445['remove']=_0x31e445['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x31e445['add']&&''!=_0x31e445['remove']){_0x450dff['push']({'type':'replace','content':o(_0x3f748a,'REPLACE_TEXT',['\x22'+_0x31e445['remove']+'\x22','\x22'+_0x31e445['add']+'\x22'])});continue;}if(null!=_0x31e445['add']['match'](/^ +$/)){_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Insert:*\x20%0',o(_0x3f748a,'ELEMENT_SPACE',_0x31e445['add']['length']))});continue;}if(null!=_0x31e445['remove']['match'](/^ +$/)){_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Remove:*\x20%0',o(_0x3f748a,'ELEMENT_SPACE',_0x31e445['remove']['length']))});continue;}if(''!=_0x31e445['add']){_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Insert:*\x20%0','\x22'+_0x31e445['add']+'\x22')});continue;}_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Remove:*\x20%0','\x22'+_0x31e445['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Insert:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Remove:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'addContainer':_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Split:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'removeContainer':_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Merge:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'addFormat':_0x166dde['push'](_0x31e445['key']);continue;case'removeFormat':_0x241ecb['push'](_0x31e445['key']);continue;default:_0x450dff['push'](_0x31e445);}if(_0x166dde['length']){const _0x22f88d=_0x166dde['map'](_0xa717eb=>this['_attributeLabels']['has'](_0xa717eb)?this['_attributeLabels']['get'](_0xa717eb):_0xa717eb)['join'](',\x20');_0x450dff['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x22f88d)});}if(_0x241ecb['length']){const _0x599e11=_0x241ecb['map'](_0x186a12=>this['_attributeLabels']['has'](_0x186a12)?this['_attributeLabels']['get'](_0x186a12):_0x186a12)['join'](',\x20');_0x450dff['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x599e11)});}return _0x450dff;}['_handleCustomCallbackDescription'](_0xe378ee){for(const _0x129c5d of this['_customCallbacks']){const _0xb8c34f=_0x129c5d(_0xe378ee);if(_0xb8c34f&&'type'in _0xb8c34f)return _0xb8c34f;}}['_handleAttributeSuggestionDescription'](_0x2c324c,_0x520c99){const _0x554a2b=_0x520c99['data'],_0x66956e=void 0x0===_0x554a2b['newValue']?'removeFormat':'addFormat';_0x2c324c['push']({'type':_0x66956e,'key':_0x554a2b['key']});}['_handleRenameSuggestionDescription'](_0x474738,_0x3a5b90){_0x474738['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3a5b90['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xea921,_0x4fcea7,_0x430fad){if(this['_addDescriptionItems'](_0xea921,_0x4fcea7),_0x430fad&&_0x430fad['getFirstRange']()&&!_0x4fcea7['getFirstRange']()['end']['isEqual'](_0x430fad['getFirstRange']()['start'])){const _0x1ac367=_0xea921[_0xea921['length']-0x1],_0x480b3f='insertion'==_0x4fcea7['type']?'add':'remove';_0x1ac367&&'text'==_0x1ac367['type']&&(_0x1ac367[_0x480b3f]+='\x0a');}}}class V extends _0x16a2ad{['afterInit'](){const _0x3c404e=this['editor'],_0x49c022=_0x3c404e['plugins']['get']('TrackChangesEditing');_0x3c404e['commands']['get']('showAIAssistant')&&_0x49c022['enableCommand']('showAIAssistant');}}class U extends _0x16a2ad{['afterInit'](){const _0x580d82=this['editor'],_0x46d6b8=_0x580d82['locale'];if(!_0x580d82['plugins']['has']('AlignmentEditing'))return;const _0x1e10d3=_0x580d82['plugins']['get']('TrackChangesEditing');_0x1e10d3['enableDefaultAttributesIntegration']('alignment'),_0x1e10d3['registerBlockAttribute']('alignment'),_0x1e10d3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x46d6b8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34865e=this['editor'],_0x4250dc=_0x34865e['locale'];_0x34865e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3966a3=>{if('formatBlock'!=_0x3966a3['type'])return;const {data:_0x2192c5}=_0x3966a3;if(_0x2192c5&&'alignment'==_0x2192c5['commandName']){const _0x2a57b9=_0x2192c5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4250dc,'*Format:*\x20%0',function(_0x56e6b6){switch(_0x56e6b6){case'left':return o(_0x4250dc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4250dc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4250dc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4250dc,'FORMAT_JUSTIFY_TEXT');}}(_0x2a57b9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x16a2ad{['afterInit'](){const _0x13134=this['editor'],_0x484795=_0x13134['plugins']['get']('TrackChangesEditing'),_0xfbbc0e=_0x13134['locale'];for(const _0x2bfe14 of ti){if(!_0x13134['plugins']['has'](_0x2bfe14))continue;const _0x576569=_0x2bfe14['slice'](0x0,-0x7)['toLowerCase'](),_0x47244b='FORMAT_'+_0x576569['toUpperCase']();_0x484795['enableDefaultAttributesIntegration'](_0x576569),_0x484795['registerInlineAttribute'](_0x576569),_0x484795['descriptionFactory']['registerAttributeLabel'](_0x576569,o(_0xfbbc0e,_0x47244b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1380b6=this['editor'],_0x74974b=_0x1380b6['locale'],_0x2a813c=_0x1380b6['plugins']['get']('TrackChangesEditing');function _0x3cf2bd(_0x89b9d9,_0x2c2b51){_0x2a813c['descriptionFactory']['registerDescriptionCallback'](_0x26ab13=>{if('formatInline'!=_0x26ab13['type'])return;const {data:_0x161094}=_0x26ab13;return _0x161094&&_0x161094['commandName']===_0x89b9d9?_0x161094['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x74974b,'*Format:*\x20%0',_0x2c2b51)}:{'type':'format','content':o(_0x74974b,'*Remove\x20format:*\x20%0',_0x2c2b51)}:void 0x0;});}_0x3cf2bd('bold',o(_0x74974b,'FORMAT_BOLD')),_0x3cf2bd('italic',o(_0x74974b,'FORMAT_ITALIC')),_0x3cf2bd('underline',o(_0x74974b,'FORMAT_UNDERLINE')),_0x3cf2bd('code',o(_0x74974b,'FORMAT_CODE')),_0x3cf2bd('strikethrough',o(_0x74974b,'FORMAT_STRIKETHROUGH')),_0x3cf2bd('subscript',o(_0x74974b,'FORMAT_SUBSCRIPT')),_0x3cf2bd('superscript',o(_0x74974b,'FORMAT_SUPERSCRIPT'));}}class F extends _0x16a2ad{['afterInit'](){const _0x231134=this['editor'],_0x5d8cfd=_0x231134['locale'];if(!_0x231134['plugins']['has']('BlockQuoteEditing'))return;const _0x1c1982=_0x231134['plugins']['get']('TrackChangesEditing'),_0x1d81c1=this['editor']['commands']['get']('blockQuote');_0x1c1982['enableCommand']('blockQuote',(_0x199b51,_0x325c73={})=>{const _0x503061=this['editor']['model']['document']['selection'],_0x5b6171=_0x325c73&&void 0x0!==_0x325c73['forceValue']?_0x325c73['forceValue']:!_0x1d81c1['value'];let _0x2db3f9=[];if(_0x5b6171){const _0xc1d935=Array['from'](_0x503061['getSelectedBlocks']())['filter'](_0x31b8cd=>oo(_0x31b8cd)||function(_0x3e7840,_0x4b3a8a){const _0x1fb688=_0x4b3a8a['checkChild'](_0x3e7840['parent'],'blockQuote'),_0x4f529b=_0x4b3a8a['checkChild'](['$root','blockQuote'],_0x3e7840);return _0x1fb688&&_0x4f529b;}(_0x31b8cd,this['editor']['model']['schema']));_0x2db3f9=to(_0xc1d935,_0x231134['model']);}else{const _0x1c1c8d=Array['from'](_0x503061['getSelectedBlocks']())['filter'](_0x342793=>oo(_0x342793));_0x2db3f9=to(_0x1c1c8d,_0x231134['model']);}_0x231134['model']['change'](()=>{for(const _0x24dd38 of _0x2db3f9)_0x1c1982['markBlockFormat'](_0x24dd38,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5b6171}]});});}),_0x1c1982['descriptionFactory']['registerDescriptionCallback'](_0x3df2fb=>{const {data:_0x200d4d}=_0x3df2fb;if(_0x200d4d&&'blockQuote'==_0x200d4d['commandName']){const _0x8a6990=o(_0x5d8cfd,'ELEMENT_BLOCK_QUOTE');return _0x200d4d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d8cfd,'*Set\x20format:*\x20%0',_0x8a6990)}:{'type':'format','content':o(_0x5d8cfd,'*Remove\x20format:*\x20%0',_0x8a6990)};}});}}function oo(_0x25cf25){return'blockQuote'==_0x25cf25['parent']['name'];}class L extends _0x16a2ad{['afterInit'](){const _0x506377=this['editor'];_0x506377['plugins']['has']('CaseChange')&&(_0x506377['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x506377['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x506377['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x16a2ad{['afterInit'](){const _0x319277=this['editor'];_0x319277['commands']['get']('ckbox')&&_0x319277['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x16a2ad{['afterInit'](){const _0x252f67=this['editor'];if(!_0x252f67['plugins']['has']('CodeBlock'))return;const _0x222280=_0x252f67['plugins']['get']('TrackChangesEditing'),_0x4355aa=_0x252f67['locale'],_0xe2d650=_0x252f67['config']['get']('codeBlock')['languages'],_0x88d22=_0x252f67['commands']['get']('codeBlock');_0x222280['enableCommand']('indentCodeBlock'),_0x222280['enableCommand']('outdentCodeBlock'),_0x222280['enableCommand']('codeBlock',(_0x36ca9f,_0x2e41e3={})=>{const _0x30f604=_0x252f67['model'],_0x2b4c63=_0x252f67['model']['document']['selection'],_0xf4b5db=_0x2e41e3&&void 0x0!==_0x2e41e3['forceValue']?_0x2e41e3['forceValue']:!_0x88d22['value'];let _0x6fc561;_0x2e41e3['language']||(_0x2e41e3['language']=_0xe2d650[0x0]['language']),_0x6fc561=_0xf4b5db?Array['from'](_0x2b4c63['getSelectedBlocks']())['filter'](_0x7064c7=>eo(_0x7064c7)||function(_0x26df80,_0x292c83){if(_0x26df80['is']('rootElement')||_0x292c83['isLimit'](_0x26df80))return!0x1;return _0x292c83['checkChild'](_0x26df80['parent'],'codeBlock');}(_0x7064c7,_0x30f604['schema'])):Array['from'](_0x2b4c63['getSelectedBlocks']())['filter'](_0x23b7d2=>eo(_0x23b7d2));const _0x453e1c=to(_0x6fc561,_0x30f604);_0x30f604['change'](()=>{for(const _0x5f559c of _0x453e1c)_0x222280['markBlockFormat'](_0x5f559c,{'commandName':'codeBlock','commandParams':[{..._0x2e41e3,'forceValue':_0xf4b5db}],'formatGroupId':'blockName'});});}),(_0x222280['descriptionFactory']['registerElementLabel']('codeBlock',_0x141a4d=>o(_0x4355aa,'ELEMENT_CODE_BLOCK',_0x141a4d)),_0x222280['descriptionFactory']['registerDescriptionCallback'](_0x23a11e=>{if('formatBlock'!=_0x23a11e['type'])return;const _0x462f1b=_0x4355aa['t'],{data:_0x36f696}=_0x23a11e;if(!_0x36f696||'codeBlock'!=_0x36f696['commandName'])return;const _0x145141=_0x36f696['commandParams'][0x0]['language'],_0x1655d0=_0x462f1b(_0xe2d650['find'](_0x3d0f78=>_0x3d0f78['language']===_0x145141)['label'])['toLowerCase']();return _0x36f696['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4355aa,'*Set\x20format:*\x20%0',o(_0x4355aa,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1655d0+')')}:{'type':'format','content':o(_0x4355aa,'*Remove\x20format:*\x20%0',o(_0x4355aa,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x12a62d){return'codeBlock'==_0x12a62d['name'];}class q extends _0x16a2ad{['afterInit'](){const _0x39746e=this['editor'];if(!_0x39746e['plugins']['has']('CommentsEditing'))return;_0x39746e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xb9923,_0x5527be,_0x1e3fae){const _0x36f868=[];for(const _0x49cae1 of _0x5527be['getItems']())_0x49cae1['hasAttribute'](_0xb9923)&&_0x36f868['push'](_0x1e3fae['createRangeOn'](_0x49cae1));return _0x36f868;}function _e(_0x273c82,_0x271a41,{showActiveMarker:_0x10e538=!0x0}={}){const _0x42c443=_0x273c82['plugins']['get']('TrackChangesEditing');return(_0x132e72,_0x39b99c,_0x4889de)=>{if(!_0x4889de['consumable']['test'](_0x39b99c['markerRange'],_0x132e72['name']))return;const _0x66559e=_0x39b99c['markerRange']['getWalker'](),_0x55a4e1=_0x39b99c['markerRange']['start'],_0x42e783=_0x273c82['model']['schema'];let _0x443d6e=null,_0x29278c=null,_0x2b5d17=!0x1,_0x1f8ddd=!0x1;for(const _0x2884e3 of _0x66559e){const _0x180afd=_0x2884e3['item'];_0x2b5d17=_0x2b5d17||_0x42e783['isContent'](_0x180afd);const _0x578a35=_0x4889de['mapper']['toViewElement'](_0x180afd);if(_0x578a35&&_0x578a35['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2884e3['type']&&(_0x42e783['isBlock'](_0x180afd)&&!_0x42e783['isLimit'](_0x180afd)&&(_0x180afd['nextSibling']||_0x55a4e1['isAtEnd']?_0x443d6e&&_0x443d6e['parent']==_0x180afd||(_0x443d6e=_0x180afd,_0x2a53ae(_0x2884e3['previousPosition']),_0x1f8ddd=!0x0):_0x29278c=_0x29278c||_0x2884e3['previousPosition']));}function _0x2a53ae(_0xb26f9c){const {authorId:_0x557dfc}=_0x42c443['_splitMarkerName'](_0x39b99c['markerName']),_0x30ddbc=_0x4889de['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x271a41,'data-author-id':_0x557dfc}),_0x4c7e97=_0x4889de['mapper']['toViewPosition'](_0xb26f9c);_0x10e538&&_0x42c443['activeMarkers']['includes'](_0x39b99c['markerName'])&&_0x4889de['writer']['addClass']('ck-suggestion-marker--active',_0x30ddbc),_0x4889de['writer']['insert'](_0x4c7e97,_0x30ddbc),_0x4889de['mapper']['bindElementToMarker'](_0x30ddbc,_0x39b99c['markerName']);}_0x2b5d17||_0x1f8ddd||!_0x29278c||_0x2a53ae(_0x29278c);};}class z extends _0x16a2ad{static get['requires'](){return[_0x292bc5];}['init'](){const _0x543ad5=this['editor'],_0xd09f9f=_0x543ad5['plugins']['get']('TrackChangesEditing');_0xd09f9f['enableCommand']('delete');const _0x1ebb3c=_0x543ad5['commands']['get']('deleteForward');_0xd09f9f['enableCommand']('deleteForward',(_0x492618,_0x246d01={})=>{const _0x2875ad=_0x543ad5['model']['createSelection'](_0x543ad5['model']['document']['selection']);_0x2875ad['isCollapsed']&&_0x543ad5['model']['modifySelection'](_0x2875ad,{'direction':'forward','unit':_0x246d01['unit']});const _0x402beb=_0x2875ad['getFirstRange'](),_0xc6ffe=_0x1eeee4['fromRange'](_0x402beb);let _0x595259;_0x492618(_0x246d01),_0x595259='$graveyard'==_0xc6ffe['root']['rootName']?_0x543ad5['model']['createRange'](_0x402beb['start']):_0x543ad5['model']['createRange'](_0xc6ffe['start'],_0xc6ffe['end']),_0xc6ffe['detach'](),_0x543ad5['model']['enqueueChange'](_0x1ebb3c['buffer']['batch'],_0x472477=>{_0x1ebb3c['buffer']['lock'](),_0x472477['setSelection'](_0x472477['createRange'](_0x595259['end'])),_0x1ebb3c['buffer']['unlock']();});}),_0x543ad5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x543ad5,'merge'),{'priority':'high'}),_0x543ad5['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2612fa,_0x431273,_0x540cde)=>{_0x540cde['options']['showSuggestionHighlights']&&_e(_0x543ad5,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2612fa,_0x431273,_0x540cde);},{'priority':'high'}),_0x543ad5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3f2ed6,_0x1e27a3,_0xdb928b)=>{const _0x2772ec=_0xdb928b['mapper']['markerNameToElements'](_0x1e27a3['markerName']);if(_0x2772ec){for(const _0x254c5b of _0x2772ec)_0x254c5b['is']('uiElement')&&(_0xdb928b['mapper']['unbindElementFromMarkerName'](_0x254c5b,_0x1e27a3['markerName']),_0xdb928b['writer']['remove'](_0x254c5b));}},{'priority':'high'});}}class K extends _0x16a2ad{['afterInit'](){const _0x2a531d=this['editor'];if(!_0x2a531d['plugins']['has']('ListEditing'))return;const _0x52c04c=_0x2a531d['locale'],_0x3697b8=_0x2a531d['plugins']['get']('TrackChangesEditing'),_0x2a854b=_0x2a531d['plugins']['has']('TodoListEditing'),_0xeb0773=!!_0x2a531d['config']['get']('list.multiBlock');function _0x207074(_0x30c078){return{'type':'format','content':''+o(_0x52c04c,'*Set\x20format:*\x20%0',_0x30c078)};}function _0x39252b(_0x4af901){return{'type':'format','content':''+o(_0x52c04c,'*Remove\x20format:*\x20%0',_0x4af901)};}_0x3697b8['enableDefaultAttributesIntegration']('numberedList'),_0x3697b8['enableDefaultAttributesIntegration']('bulletedList'),_0x3697b8['enableDefaultAttributesIntegration']('customNumberedList'),_0x3697b8['enableDefaultAttributesIntegration']('customBulletedList'),_0x3697b8['enableDefaultAttributesIntegration']('indentList'),_0x3697b8['enableDefaultAttributesIntegration']('outdentList'),_0x3697b8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3697b8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3697b8['registerBlockAttribute']('listItemId'),_0x3697b8['registerBlockAttribute']('listType'),_0x3697b8['registerBlockAttribute']('listIndent'),_0xeb0773&&(_0x3697b8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3697b8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2a854b&&(_0x3697b8['enableDefaultAttributesIntegration']('todoList'),_0x3697b8['enableDefaultAttributesIntegration']('checkTodoList'),_0x3697b8['registerBlockAttribute']('todoListChecked'),_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x4e125e=>{const {data:_0x16790c}=_0x4e125e;if(_0x16790c&&'todoListChecked'==_0x16790c['key'])return{'type':'format','content':_0x16790c['newValue']?o(_0x52c04c,'*Check\x20item*'):o(_0x52c04c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2ad49f=>{if(_0x2ad49f['batch']['isUndo'])return!0x1;let _0x36b7f5=!0x1;const _0xae856=_0x3697b8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b4e06=>'todoListChecked'===_0x3697b8['_getAttributeKey'](_0x2b4e06));for(const _0xee6ad5 of _0xae856){'todo'!=_0xee6ad5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3697b8['_findSuggestions'](_0xee6ad5['getFirstRange'](),'attribute')['find'](_0x59147f=>'listType'===_0x3697b8['_getAttributeKey'](_0x59147f['suggestion']))||(_0x2ad49f['removeMarker'](_0xee6ad5['getFirstMarker']()),_0x36b7f5=!0x0));}return _0x36b7f5;})),_0x3697b8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x52c04c,'FORMAT_INDENT'));const _0x5d890e={'type':'format','content':''};_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x365c47=>{const {data:_0x3c3c69}=_0x365c47;if(!_0x3c3c69||'listType'!=_0x3c3c69['key'])return;let _0x3c37c4=_0x365c47['head'];for(;_0x3c37c4;){if(_0x3c37c4['data']&&(('listStyle'==_0x3c37c4['data']['key']||'listMarkerStyle'==_0x3c37c4['data']['key'])&&(_0x3c37c4['data']['newValue']&&'default'!=_0x3c37c4['data']['newValue']||'default'!=_0x3c37c4['data']['oldValue']&&!_0x3c3c69['newValue'])||!_0xeb0773&&_0x3c37c4['data']['key']==m))return _0x5d890e;_0x3c37c4=_0x3c37c4['next'];}if(null==_0x3c3c69['newValue'])switch(_0x3c3c69['oldValue']){case'bulleted':return _0x39252b(o(_0x52c04c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39252b(o(_0x52c04c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39252b(o(_0x52c04c,'ELEMENT_TODO_LIST'));}switch(_0x3c3c69['newValue']){case'bulleted':return _0x207074(o(_0x52c04c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x207074(o(_0x52c04c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x207074(o(_0x52c04c,'ELEMENT_TODO_LIST'));}}),_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x461c9e=>{const {data:_0x4ec145}=_0x461c9e;if(_0x4ec145&&'listIndent'==_0x4ec145['key'])return null==_0x4ec145['newValue']||null==_0x4ec145['oldValue']&&0x0==_0x4ec145['newValue']?_0x5d890e:void 0x0;}),_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x2923a=>{if('attribute'!=_0x2923a['type'])return;const {data:_0x5cb0d3}=_0x2923a;if(!_0x5cb0d3||'listItemId'!=_0x5cb0d3['key'])return;const _0x3d9c97=Ee(_0x2923a);return'newValue'==_0x3d9c97?{'type':'format','content':o(_0x52c04c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3d9c97?{'type':'format','content':o(_0x52c04c,'*Split:*\x20list\x20item')}:_0x5d890e;}),_0x2a531d['model']['document']['registerPostFixer'](_0x89298b=>this['listItemIdFixer'](_0x89298b)),_0x2a531d['model']['document']['registerPostFixer'](_0x356fdb=>this['noTrackChangesFixer'](_0x356fdb)),_0x2a531d['model']['document']['on']('change:data',(_0x2dd647,_0x1f7412)=>{if(_0x1f7412['isUndo']||!_0x1f7412['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xdb2648){if(_0xdb2648['batch']['isUndo']||!_0xdb2648['batch']['isLocal'])return!0x1;let _0x162ca2=!0x1;const _0xd98ca3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1eda89=>_0x1eda89['data']&&'listItemId'==_0x1eda89['data']['key'])['filter'](_0x1e4416=>_0x1e4416['data']['newValue']&&_0x1e4416['data']['oldValue']);for(const _0x4d68dd of _0xd98ca3)Ee(_0x4d68dd)||(_0xdb2648['removeMarker'](_0x4d68dd['getFirstMarker']()),_0x162ca2=!0x0);return _0x162ca2;}['noTrackChangesFixer'](_0x40473c){if(_0x40473c['batch']['isUndo']||!_0x40473c['batch']['isLocal'])return!0x1;const _0x5c4284=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5c4284['trackChangesCommand']['value'])return!0x1;let _0x20f2eb=!0x1;const _0x2fed19=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x341fec=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xe504ea=>'attribute'==_0xe504ea['type'])['filter'](_0x5eeeda=>_0x2fed19['includes'](_0x5eeeda['attributeKey']));if(0x0==_0x341fec['length'])return _0x20f2eb;for(const _0x337d5f of _0x341fec){const _0x520f7e=_0x5c4284['_findSuggestions'](_0x337d5f['range'],'attribute')['filter'](_0x1f1c07=>!_0x1f1c07['meta']['isNextTo'])['map'](_0x28d276=>_0x28d276['suggestion'])['filter'](_0x5906d0=>{const _0x1fa236=_0x5c4284['_getAttributeKey'](_0x5906d0);return _0x2fed19['includes'](_0x1fa236);});if(_0x520f7e['length']){for(const _0x1488b6 of _0x520f7e)_0x40473c['removeMarker'](_0x1488b6['getFirstMarker']());_0x20f2eb=!0x0;}}return _0x20f2eb;}['assureChains'](){const _0x743c78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d281b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x169e66;const _0x3601f3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x497e5c=>{if(_0x497e5c['data']['oldRange']||!_0x497e5c['data']['newRange'])return null;if(!_0x497e5c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4f9455}=_0x743c78['_splitMarkerName'](_0x497e5c['name']);if(!_0x743c78['hasSuggestion'](_0x4f9455))return null;const _0x31295d=_0x743c78['getSuggestion'](_0x4f9455);return _0x4d281b['includes'](_0x31295d['data']['key']);})['map'](_0x467f56=>{const {id:_0x222436}=_0x743c78['_splitMarkerName'](_0x467f56['name']),_0x479d53=_0x743c78['getSuggestion'](_0x222436);return _0x169e66=_0x479d53['attributes']['groupId'],_0x479d53['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3601f3['size'])return;const _0x59dcfc=_0x743c78['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x418b3a=>'attribute'==_0x418b3a['type']&&_0x418b3a['data']&&_0x4d281b['includes'](_0x418b3a['data']['key'])&&_0x418b3a['attributes']['groupId']!=_0x169e66)['map'](_0x401632=>({'listItem':_0x401632['getFirstRange']()['start']['nodeAfter'],'groupId':_0x401632['attributes']['groupId']})),_0x42d24b=new Set();for(const {groupId:_0x120293,listItem:_0x109bb2}of _0x59dcfc)_0x3601f3['has'](_0x109bb2)&&_0x42d24b['add'](_0x120293);for(const _0x11595c of _0x743c78['getSuggestions']())_0x42d24b['has'](_0x11595c['attributes']['groupId'])&&_0x11595c['setAttribute']('groupId',_0x169e66);}['_supportLegacySuggestions'](){const _0x4cb801=this['editor'],_0x5575e6=_0x4cb801['locale'],_0x2daa21=_0x4cb801['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2daa21['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x532c68,_0x1b5a03){const _0x557dc7=[];for(let _0x311f7b of _0x532c68)_0x311f7b['start']['nodeAfter']===_0x311f7b['end']['parent']&&(_0x311f7b=_0x4cb801['model']['createRange'](_0x4cb801['model']['createPositionAt'](_0x311f7b['start']['nodeAfter'],0x0))),_0x557dc7['push'](_0x311f7b);_0x4cb801['model']['change'](_0x5a5c19=>{const _0x335d3d=_0x4cb801['model']['document']['selection'],_0x54478f=Array['from'](_0x335d3d['getRanges']())['map'](_0x54c24e=>_0x1eeee4['fromRange'](_0x54c24e));_0x5a5c19['setSelection'](_0x557dc7),_0x4cb801['commands']['get'](_0x1b5a03['commandName'])['refresh'](),_0x1b5a03['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4cb801['execute'](_0x1b5a03['commandName'],..._0x1b5a03['commandParams']),_0x5a5c19['setSelection'](_0x54478f);for(const _0x4127c9 of _0x54478f)_0x4127c9['detach']();});}),_0x2daa21['descriptionFactory']['registerElementLabel'](function(_0x3d6222){const _0x2c6df3=!_0x4cb801['model']['schema']['isObject'](_0x3d6222),_0x5eb61d=_0x3d6222['previousSibling'],_0x2b8308=_0x3d6222['nextSibling'],_0x2b7983=_0x3d6222['getAttribute']('listItemId'),_0x27cb55=!_0x5eb61d||_0x5eb61d['getAttribute']('listItemId')!==_0x2b7983,_0x480adc=!_0x2b8308||_0x2b8308['getAttribute']('listItemId')!==_0x2b7983;return _0x2c6df3&&Boolean(_0x2b7983)&&_0x27cb55&&_0x480adc;},_0x2f934e=>o(_0x5575e6,'ELEMENT_LIST_ITEM',_0x2f934e));}['_registerLegacyDescription'](){const _0x2f3ce9=this['editor'],_0x5db3d5=_0x2f3ce9['locale'];function _0x13609d(_0x6c9a8b){const _0x2b50d1=_0x2f3ce9['commands']['get']('bulletedList')['value'],_0x5b20aa=_0x2f3ce9['commands']['get']('numberedList')['value'];return'numberedList'===_0x6c9a8b?_0x2b50d1:_0x5b20aa;}_0x2f3ce9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x17ceb7){if('formatBlock'!=_0x17ceb7['type'])return;const {data:_0x2ef00a}=_0x17ceb7;if(!_0x2ef00a)return;let _0x44b8df,_0x4e79e3,_0x29f72d,_0x136f6a;switch(_0x2ef00a['commandName']){case'bulletedList':_0x29f72d=_0x2ef00a['commandParams'][0x0]['forceValue'],_0x136f6a=_0x13609d(_0x2ef00a['commandName']),_0x44b8df=_0x29f72d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x136f6a&&_0x2f3ce9['config']['get']('list.multiBlock')||(_0x44b8df='*Change\x20to:*\x20%0'),_0x4e79e3={'type':'format','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x29f72d=_0x2ef00a['commandParams'][0x0]['forceValue'],_0x136f6a=_0x13609d(_0x2ef00a['commandName']),_0x44b8df=_0x29f72d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x136f6a&&_0x2f3ce9['config']['get']('list.multiBlock')||(_0x44b8df='*Change\x20to:*\x20%0'),_0x4e79e3={'type':'format','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x44b8df='*Indent:*\x20%0',_0x4e79e3={'type':'format','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x44b8df=function(_0x3006d9){const _0x350b9b=_0x3006d9['getFirstRange']();let _0x16a73f=_0x350b9b['start']['nodeAfter'];for(;_0x16a73f&&_0x350b9b['containsItem'](_0x16a73f);){if(_0x16a73f['getAttribute']('listIndent')>0x0)return!0x1;_0x16a73f=_0x16a73f['nextSibling'];}return!0x0;}(_0x17ceb7)?o(_0x5db3d5,'*Format:*\x20remove\x20from\x20%0',o(_0x5db3d5,function(_0x36e85f){return'ELEMENT_'+_0x36e85f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x17ceb7))):o(_0x5db3d5,'*Outdent:*\x20%0',o(_0x5db3d5,'ELEMENT_LIST_ITEM')),_0x4e79e3={'type':'format','content':_0x44b8df};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2ef00a['multipleBlocks']&&(_0x44b8df='*Merge:*\x20%0',_0x4e79e3={'type':'deletion','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_LIST_ITEM'))});}return _0x4e79e3;});}}function Ee(_0x490f76){let _0x3261bc=_0x490f76['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3261bc;){const _0x203342=_0x3261bc['getAttribute']('listItemId');if(!_0x203342)return!0x1;if(_0x203342==_0x490f76['data']['newValue'])return'newValue';if(_0x203342==_0x490f76['data']['oldValue'])return'oldValue';_0x3261bc=_0x3261bc['previousSibling'];}return!0x1;}class pe extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4e1b2f=this['editor']['config']['get']('list.properties'),_0x72597d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e1b2f['styles']&&(_0x72597d['enableDefaultAttributesIntegration']('listStyle'),_0x72597d['registerBlockAttribute']('listStyle')),_0x4e1b2f['reversed']&&(_0x72597d['enableDefaultAttributesIntegration']('listReversed'),_0x72597d['registerBlockAttribute']('listReversed')),_0x4e1b2f['startIndex']&&(_0x72597d['enableDefaultAttributesIntegration']('listStart'),_0x72597d['registerBlockAttribute']('listStart'));const _0x51e11b={'type':'format','content':''};_0x72597d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x43bf7c=this['editor']['locale'];_0x72597d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x43bf7c,'FORMAT_LIST_REVERSED')),_0x72597d['descriptionFactory']['registerDescriptionCallback'](_0x415c98=>{const {data:_0x5f0250}=_0x415c98;if(_0x5f0250&&'listReversed'==_0x5f0250['key'])return null==_0x5f0250['newValue']||0x0==_0x5f0250['newValue']&&null==_0x5f0250['oldValue']?_0x51e11b:void 0x0;}),_0x72597d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x43bf7c,'FORMAT_LIST_START')),_0x72597d['descriptionFactory']['registerDescriptionCallback'](_0x1b99f9=>{const {data:_0x4b7d2a}=_0x1b99f9;if(_0x4b7d2a&&'listStart'==_0x4b7d2a['key'])return null==_0x4b7d2a['newValue']||0x1==_0x4b7d2a['newValue']&&null==_0x4b7d2a['oldValue']?_0x51e11b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4acb1c=>{if(_0x4acb1c['batch']['isUndo'])return!0x1;let _0x2c06ca=!0x1;const _0x43f287=_0x72597d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c2ddf=>{const _0x3b8138=_0x72597d['_getAttributeKey'](_0x2c2ddf);return'listStart'==_0x3b8138||'listReversed'==_0x3b8138;});for(const _0x27d4a3 of _0x43f287){const _0x11110b=_0x27d4a3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x11110b||'customNumbered'==_0x11110b)continue;_0x72597d['_findSuggestions'](_0x27d4a3['getFirstRange'](),'attribute')['find'](_0xcb96a5=>'listType'==_0x72597d['_getAttributeKey'](_0xcb96a5['suggestion']))||(_0x4acb1c['removeMarker'](_0x27d4a3['getFirstMarker']()),_0x2c06ca=!0x0);}return _0x2c06ca;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42c306){const _0x51432d=this['editor']['locale'],{data:_0x33aa05}=_0x42c306,_0xdf3cf5={'type':'format','content':''};if(!_0x33aa05||'listStyle'!=_0x33aa05['key'])return;if(!_0x33aa05['oldValue'])return'default'==_0x33aa05['newValue']?_0xdf3cf5:{'type':'format','content':''+o(_0x51432d,'*Set\x20format:*\x20%0',o(_0x51432d,this['_getTranslationKeyForListStyle'](_0x33aa05['newValue'])))};if(!_0x33aa05['newValue']){if('default'==_0x33aa05['oldValue'])return _0xdf3cf5;let _0x3db120=_0x42c306['head'];for(;_0x3db120;){if(_0x3db120['data']&&'listType'==_0x3db120['data']['key']&&_0x3db120['data']['newValue'])return _0xdf3cf5;_0x3db120=_0x3db120['next'];}return{'type':'format','content':''+o(_0x51432d,'*Remove\x20format:*\x20%0',o(_0x51432d,this['_getTranslationKeyForListStyle'](_0x33aa05['oldValue'])))};}if('default'!=_0x33aa05['newValue'])return{'type':'format','content':''+o(_0x51432d,'*Set\x20format:*\x20%0',o(_0x51432d,this['_getTranslationKeyForListStyle'](_0x33aa05['newValue'])))};let _0x4ce259=_0x42c306['head'];for(;_0x4ce259;){if(_0x4ce259['data']&&'listType'==_0x4ce259['data']['key']&&_0x4ce259['data']['newValue']&&_0x4ce259['data']['oldValue'])return _0xdf3cf5;_0x4ce259=_0x4ce259['next'];}return{'type':'format','content':o(_0x51432d,'*Set\x20format:*\x20%0',o(_0x51432d,'ELEMENT_'+_0x42c306['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5e3b1c=this['editor'],_0x1e858e=_0x5e3b1c['locale'];_0x5e3b1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcf9d66=>{if('formatBlock'!=_0xcf9d66['type'])return;const {data:_0x2b66a8}=_0xcf9d66;if(!_0x2b66a8)return;let _0x8ff632,_0x269ddc;switch(_0x2b66a8['commandName']){case'listStyle':_0x8ff632='*Change\x20to:*\x20%0',_0x269ddc={'type':'format','content':o(_0x1e858e,_0x8ff632,o(_0x1e858e,this['_getTranslationKeyForListStyle'](_0x2b66a8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8ff632=_0x2b66a8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x269ddc={'type':'format','content':o(_0x1e858e,_0x8ff632)};break;case'listStart':_0x8ff632='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x269ddc={'type':'format','content':o(_0x1e858e,_0x8ff632,_0x2b66a8['commandParams'][0x0]['startIndex'])};}return _0x269ddc;});}['_getTranslationKeyForListStyle'](_0x1a683a){return'ELEMENT_'+function(_0x120f5d){if(ye['includes'](_0x120f5d))return'bulleted';if(Se['includes'](_0x120f5d))return'numbered';return null;}(_0x1a683a)['toUpperCase']()+'_LIST_'+_0x1a683a['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x16a2ad{static get['requires'](){return[_0x1e43b9];}['init'](){const _0x5abc20=this['editor'],_0x4f8897=_0x5abc20['plugins']['get']('TrackChangesEditing'),_0x8edb1d=_0x5abc20['commands']['get']('enter');_0x4f8897['enableCommand']('enter',()=>{_0x5abc20['model']['change'](_0x5abdec=>{const _0x347ee4=_0x5abc20['model']['document']['selection'],_0xd51df7=_0x347ee4['getFirstPosition'](),_0x58ce09=_0x1eeee4['fromRange'](_0x347ee4['getFirstRange']());if(_0x8edb1d['enterBlock'](_0x5abdec)){const _0x45f4da=_0x5abc20['model']['createPositionAt'](_0xd51df7['parent']['nextSibling'],0x0),_0x5854b0=_0x5abdec['createRange'](_0xd51df7,_0x45f4da);_0x4f8897['markInsertion'](_0x5854b0);}else _0x5abdec['setSelection'](_0x5abdec['createRange'](_0x58ce09['end']));_0x58ce09['detach'](),_0x8edb1d['fire']('afterExecute',{'writer':_0x5abdec});});}),_0x5abc20['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5abc20,'split'),{'priority':'high'}),_0x5abc20['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5c2485,_0x3f9b52,_0x56d9d1)=>{const _0x1e88c1=_0x56d9d1['mapper']['markerNameToElements'](_0x3f9b52['markerName']);if(_0x1e88c1){for(const _0x4d9554 of _0x1e88c1)_0x4d9554['hasClass']('ck-suggestion-marker-split')&&(_0x56d9d1['mapper']['unbindElementFromMarkerName'](_0x4d9554,_0x3f9b52['markerName']),_0x56d9d1['writer']['remove'](_0x4d9554));}},{'priority':'high'}),_0x5abc20['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x25546d,_0x253e03,_0x1fa7be)=>{_0x1fa7be['options']['showSuggestionHighlights']&&_e(_0x5abc20,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x25546d,_0x253e03,_0x1fa7be);},{'priority':'high'});}}class X extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x55a244=this['editor']['plugins']['get']('TrackChangesEditing');_0x55a244['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x55a244['enableCommand']('findNext'),_0x55a244['enableCommand']('findPrevious'),_0x55a244['enableCommand']('replace'),_0x55a244['enableCommand']('replaceAll');}['handleFindCommand'](_0x2c568a,_0x8ee1f,_0x4fb420={}){const _0x5d6e8f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2c568a(_0x4aea57=>{let _0x3535d9=('string'==typeof _0x8ee1f?_0x5d6e8f['findByTextCallback'](_0x8ee1f,_0x4fb420):_0x8ee1f)(_0x4aea57);Array['isArray'](_0x3535d9)&&(_0x3535d9={'results':_0x3535d9,'searchText':'string'==typeof _0x8ee1f?_0x8ee1f:''});const _0x30fe45=_0x3535d9['results']['filter'](_0x14277d=>!0x1===this['_isInDeletionRange'](_0x14277d,_0x4aea57['item']));return{..._0x3535d9,'results':_0x30fe45};},_0x4fb420);}['_isInDeletionRange'](_0x48a3fd,_0x447549){const _0x3b72a0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x447549,_0x48a3fd['start']),this['editor']['model']['createPositionAt'](_0x447549,_0x48a3fd['end']));for(const _0x5a52b1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3b72a0['getIntersection'](_0x5a52b1['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 _0x16a2ad{['afterInit'](){const _0x2b7fa8=this['editor']['locale'],_0x1e0974=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1ed0c2,commandName:_0x43be71}of ro)this['editor']['plugins']['has'](_0x1ed0c2)&&(_0x1e0974['enableDefaultAttributesIntegration'](_0x43be71),_0x1e0974['registerInlineAttribute'](_0x43be71));_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2b7fa8,'FORMAT_FONT_SIZE')),_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2b7fa8,'FORMAT_FONT_FAMILY')),_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2b7fa8,'FORMAT_FONT_COLOR')),_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2b7fa8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x353109=this['editor'],_0x5461ad=_0x353109['locale'];_0x353109['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4173d0=>{const _0x4b6780=_0x5461ad['t'];if('formatInline'!=_0x4173d0['type'])return;const {data:_0x51c2c9}=_0x4173d0;if(null!=_0x51c2c9){if('fontSize'==_0x51c2c9['commandName']){const _0x2be9d1=_0x51c2c9['commandParams'][0x0]['value'];if(_0x2be9d1){const _0x4eb93e=_0x4b6780(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x172a4d=>_0x172a4d['model']==_0x2be9d1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20size:*\x20%0',_0x4eb93e)};}return{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x51c2c9['commandName']){const _0x2ba441=_0x51c2c9['commandParams'][0x0]['value'];return _0x2ba441?{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20family:*\x20%0',_0x2ba441)}:{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20family*')};}if('fontColor'==_0x51c2c9['commandName']){const _0x1b5237=_0x51c2c9['commandParams'][0x0]['value'];if(_0x1b5237){const _0x28fd42=_0x1dc0d1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5296d1=>_0x5296d1['model']==_0x1b5237);let _0x4bbaa7=_0x1b5237,_0x46858b='';return _0x28fd42&&(_0x4bbaa7=_0x28fd42['label'],_0x46858b=_0x4b6780(_0x4bbaa7)['toLowerCase']()),{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20color:*\x20%0',_0x46858b)['trim'](),'color':{'value':_0x1b5237,'title':_0x46858b||_0x4bbaa7}};}return{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x51c2c9['commandName']){const _0x3f33c0=_0x51c2c9['commandParams'][0x0]['value'];if(_0x3f33c0){const _0x1deaeb=_0x1dc0d1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x44d7f9=>_0x44d7f9['model']==_0x3f33c0);let _0x4c6b17=_0x3f33c0,_0x472739='';return _0x1deaeb&&(_0x4c6b17=_0x1deaeb['label'],_0x472739=_0x4b6780(_0x4c6b17)['toLowerCase']()),{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20background\x20color:*\x20%0',_0x472739)['trim'](),'color':{'value':_0x3f33c0,'title':_0x472739||_0x4c6b17}};}return{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x16a2ad{['afterInit'](){const _0x4edb34=this['editor'],_0x30ee5f=_0x4edb34['plugins']['get']('TrackChangesEditing'),_0xe91cb1=_0x4edb34['commands']['get']('copyFormat'),_0x487ae5=_0x4edb34['commands']['get']('pasteFormat');_0xe91cb1&&_0x487ae5&&(_0x30ee5f['enableDefaultAttributesIntegration']('pasteFormat'),_0x30ee5f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18adcc=this['editor'],_0x5b1a98=_0x18adcc['locale'];_0x18adcc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51d75d=>{if('formatBlock'!=_0x51d75d['type']&&'formatInline'!=_0x51d75d['type'])return;const {data:_0xee4560}=_0x51d75d;if(_0xee4560&&'pasteFormat'===_0xee4560['commandName']){const _0x5613da=[],_0x3eb284=_0xee4560['commandParams'][0x0];for(const [_0x357f4d,_0x3cc20c]of Object['entries'](_0x3eb284))_0x5613da['push'](so(_0x18adcc,_0x357f4d,_0x3cc20c));return _0x5613da['length']?{'type':'format','content':o(_0x5b1a98,'*Set\x20format\x20to:*\x20%0',_0x5613da['join'](',\x20'))}:{'type':'format','content':o(_0x5b1a98,'*Remove\x20all\x20formatting*')};}});}}function so(_0x32f051,_0x5f5909,_0xe09c0f){const _0x3e0b17=_0x32f051['locale']['t'],_0x3b92c7=_0x5f5909['split'](/(?=[A-Z])/)['join']('\x20'),_0x3ddefd=_0x3e0b17(_0x3b92c7['charAt'](0x0)['toUpperCase']()+_0x3b92c7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xe09c0f)return _0x3ddefd;if('fontColor'===_0x5f5909||'fontBackgroundColor'===_0x5f5909){const _0x1d3797=_0x1dc0d1(_0x32f051['config']['get']('fontColor.colors'))['find'](_0xe8a471=>_0xe8a471['model']==_0xe09c0f);return _0x3ddefd+'\x20('+(_0x1d3797?_0x3e0b17(_0x1d3797['label'])['toLowerCase']():_0xe09c0f)+')';}if('fontSize'===_0x5f5909&&isNaN(parseFloat(_0xe09c0f))){const _0x1f33c2=_0x32f051['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x32f051['config']['get']('fontSize.options'))['find'](_0x291447=>_0x291447['model']==_0xe09c0f);return _0x3ddefd+'\x20('+(_0x1f33c2?_0x3e0b17(_0x1f33c2['title'])['toLowerCase']():_0xe09c0f)+')';}return _0x3ddefd+'\x20('+_0xe09c0f+')';}class tt extends _0x16a2ad{['_headingOptions'];['afterInit'](){const _0x1fdded=this['editor'];if(!_0x1fdded['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1fdded['config']['get']('heading.options');const _0x3a5ec6=_0x1fdded['locale'],_0x1a8e8c=_0x1fdded['plugins']['get']('TrackChangesEditing');_0x1a8e8c['enableDefaultAttributesIntegration']('heading');for(const _0x3e083d of this['_headingOptions'])'paragraph'!=_0x3e083d['model']&&_0x1a8e8c['descriptionFactory']['registerElementLabel'](_0x3e083d['model'],_0x53656a=>{const _0x2bd038=this['_getHeadingLevel'](_0x3e083d['model']);return null!==_0x2bd038?_0x1112b7(_0x53656a,_0x2bd038):_0x4d8199(_0x53656a,_0x3e083d['title']);});function _0x1112b7(_0x114948,_0x2027e9){return o(_0x3a5ec6,'ELEMENT_HEADING',[_0x114948,_0x2027e9]);}function _0x4d8199(_0x44776d,_0x186719){return o(_0x3a5ec6,'ELEMENT_HEADING_CUSTOM',[_0x44776d,_0x186719]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50d6d8=this['editor'],_0x4b9564=_0x50d6d8['locale'];function _0x3a118b(_0x1e1dab,_0x1f223b){return o(_0x4b9564,'ELEMENT_HEADING_CUSTOM',[_0x1e1dab,_0x1f223b]);}_0x50d6d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f3d4a=>{if('formatBlock'!=_0x3f3d4a['type'])return;const {data:_0xf531d8}=_0x3f3d4a;if(_0xf531d8&&'heading'==_0xf531d8['commandName']){const _0x48160e=_0xf531d8['commandParams'][0x0]['value'],_0x98cff5=this['_getHeadingLevel'](_0x48160e);if(null!==_0x98cff5)return{'type':'format','content':o(_0x4b9564,'*Change\x20to:*\x20%0',(_0x21f734=0x1,_0x2f92e6=_0x98cff5,o(_0x4b9564,'ELEMENT_HEADING',[_0x21f734,_0x2f92e6])))};const _0x5c568a=this['_headingOptions']['find'](_0xf0b1c0=>_0xf0b1c0['model']===_0x48160e)['title'];return{'type':'format','content':o(_0x4b9564,'*Change\x20to:*\x20%0',_0x3a118b(0x1,_0x5c568a))};}var _0x21f734,_0x2f92e6;});}['_getHeadingLevel'](_0x41e361){const _0x5ed710=_0x41e361['match'](/^heading(\d+)/);if(_0x5ed710)return _0x5ed710[0x1];const _0x2e38d7=this['_headingOptions']?.['find'](_0x595a00=>_0x595a00['model']==_0x41e361);if(_0x2e38d7&&_0x2e38d7['view']){const _0x17690e=_0x2e38d7['view'],_0x32755b=(_0x17690e['name']??_0x17690e)['match'](/^h(\d+)/);if(_0x32755b)return _0x32755b[0x1];}return null;}}class et extends _0x16a2ad{['afterInit'](){const _0x4ec50e=this['editor'];if(!_0x4ec50e['plugins']['has']('HighlightEditing'))return;const _0x33a78d=_0x4ec50e['plugins']['get']('TrackChangesEditing'),_0x2314d5=_0x4ec50e['locale'];_0x33a78d['enableDefaultAttributesIntegration']('highlight'),_0x33a78d['registerInlineAttribute']('highlight'),_0x33a78d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2314d5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b8077=this['editor'],_0x5b44a3=_0x4b8077['locale'];_0x4b8077['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x596292=>{if('formatInline'!=_0x596292['type'])return;const {data:_0x4be782}=_0x596292;if(_0x4be782&&'highlight'==_0x4be782['commandName']){const _0x253ffd=_0x5b44a3['t'],_0x2472e2=_0x4be782['commandParams'][0x0]['value'];if(_0x2472e2){const _0x2629fd=_0x4b8077['config']['get']('highlight.options')['find'](_0x3ca4c6=>_0x3ca4c6['model']==_0x2472e2),_0x2257bb=_0x253ffd(_0x2629fd['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b44a3,'*Set\x20highlight:*\x20%0',_0x2257bb),'color':{'value':_0x2629fd['color'],'title':_0x2629fd['title']}};}return{'type':'format','content':o(_0x5b44a3,'*Remove\x20highlight*',o(_0x5b44a3,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x16a2ad{['afterInit'](){const _0x5c6abb=this['editor'];if(!_0x5c6abb['plugins']['has']('HorizontalLineEditing'))return;_0x5c6abb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xde68bd=_0x5c6abb['plugins']['get']('TrackChangesEditing'),_0x120685=_0x5c6abb['locale'];_0xde68bd['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4f2d45=>o(_0x120685,'ELEMENT_HORIZONTAL_LINE',_0x4f2d45)),_0x5c6abb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x541b99,{writer:_0x42a7b2,options:_0x3b07bd})=>{if(!_0x3b07bd['showSuggestionHighlights'])return null;const _0x1f4c8c=_0x42a7b2['createContainerElement']('div'),_0x166328=_0x42a7b2['createEmptyElement']('hr');return _0x42a7b2['addClass']('ck-horizontal-line',_0x1f4c8c),_0x42a7b2['insert'](_0x42a7b2['createPositionAt'](_0x1f4c8c,0x0),_0x166328),_0x1f4c8c;},'converterPriority':'high'});}}class st extends _0x16a2ad{['afterInit'](){const _0x4faa9c=this['editor'];if(!_0x4faa9c['plugins']['has']('HtmlEmbed'))return;const _0x180aee=_0x4faa9c['plugins']['get']('TrackChangesEditing'),_0x238e17=_0x4faa9c['locale'];_0x180aee['descriptionFactory']['registerElementLabel']('rawHtml',_0x294bbc=>o(_0x238e17,'ELEMENT_HTML_EMBED',_0x294bbc)),_0x180aee['enableDefaultAttributesIntegration']('htmlEmbed'),_0x180aee['registerBlockAttribute']('value'),_0x180aee['descriptionFactory']['registerDescriptionCallback'](_0x3c1490=>{if('attribute'!=_0x3c1490['type'])return;const {data:_0x5785b9}=_0x3c1490;if(_0x5785b9&&'value'==_0x5785b9['key']&&_0x3c1490['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b1ccb=o(_0x238e17,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x238e17,'*Change\x20%0\x20content*',_0x2b1ccb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e0093=this['editor'],_0x4cc50b=_0x3e0093['locale'];_0x3e0093['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2af5=>{if('formatBlock'!=_0xd2af5['type'])return;const {data:_0x46d2cf}=_0xd2af5;if(_0x46d2cf&&'htmlEmbed'==_0x46d2cf['commandName']){const _0x3dcb9b=o(_0x4cc50b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4cc50b,'*Change\x20%0\x20content*',_0x3dcb9b)};}});}}class nt extends _0x16a2ad{['afterInit'](){const _0x1d37b7=this['editor'];if(!_0x1d37b7['plugins']['has']('ImageEditing'))return;const _0x11b19f=_0x1d37b7['plugins']['get']('TrackChangesEditing'),_0x54c197=_0x1d37b7['plugins']['get']('ImageUtils'),_0x2b96fc=_0x1d37b7['locale'];_0x11b19f['enableCommand']('insertImage'),_0x11b19f['descriptionFactory']['registerElementLabel']('imageBlock',_0x3fd046=>o(_0x2b96fc,'ELEMENT_IMAGE',_0x3fd046)),_0x11b19f['descriptionFactory']['registerElementLabel']('imageInline',_0x36f2b5=>o(_0x2b96fc,'ELEMENT_INLINE_IMAGE',_0x36f2b5)),_0x11b19f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2b96fc,'ELEMENT_CAPTION')),_0x1d37b7['plugins']['has']('ImageUploadEditing')&&_0x11b19f['enableCommand']('uploadImage'),_0x1d37b7['plugins']['has']('ImageBlockEditing')&&_0x1d37b7['plugins']['has']('ImageInlineEditing')&&(_0x11b19f['enableCommand']('imageTypeInline',(_0x33adcb,_0xcd588c)=>{const _0x43ca56=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']);_0x1d37b7['model']['change'](()=>{_0x11b19f['markBlockFormat'](_0x43ca56,{'commandName':'imageTypeInline','commandParams':[_0xcd588c]},[],'convertBlockImageToInline');});}),_0x11b19f['enableCommand']('imageTypeBlock',(_0x369c8e,_0x57fb6c)=>{_0x1d37b7['model']['change'](_0x563151=>{let _0x1e9c44=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x58d60c=_0x563151['createRangeOn'](_0x1e9c44);const _0x434a7d=_0x10cc9c['fromPosition'](_0x58d60c['start'],'toPrevious'),_0x8e543f=_0x10cc9c['fromPosition'](_0x58d60c['end'],'toNext');_0x11b19f['forceDefaultExecution'](()=>_0x369c8e(_0x57fb6c)),_0x1e9c44=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x58d60c=_0x563151['createRangeOn'](_0x1e9c44);const _0x34eae9=_0x563151['createRange'](_0x434a7d,_0x8e543f);_0x434a7d['detach'](),_0x8e543f['detach'](),_0x11b19f['markBlockFormat'](_0x1e9c44,{'commandName':'imageTypeInline','commandParams':[_0x57fb6c]},[],'convertInlineImageToBlock'),_0x34eae9['start']['isBefore'](_0x58d60c['start'])&&_0x11b19f['markInsertion'](_0x563151['createRange'](_0x34eae9['start'],_0x58d60c['start']),'convertInlineImageToBlock'),_0x58d60c['end']['isBefore'](_0x34eae9['end'])&&_0x11b19f['markInsertion'](_0x563151['createRange'](_0x58d60c['end'],_0x34eae9['end']),'convertInlineImageToBlock');});}),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x11b19f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x46e348])=>{const _0x4d4708=_0x11b19f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3d87d6=_0x46e348['start'],_0x56d38d=_0x46e348['end'];const _0xc9b6df=_0x1d37b7['model']['schema']['getNearestSelectionRange'](_0x3d87d6,'backward'),_0xa7c55b=_0x1d37b7['model']['schema']['getNearestSelectionRange'](_0x56d38d,'forward');_0xc9b6df['isCollapsed']&&(_0x3d87d6=_0xc9b6df['start']),_0xa7c55b['isCollapsed']&&(_0x56d38d=_0xa7c55b['end']),_0x4d4708([_0x1d37b7['model']['createRange'](_0x3d87d6,_0x56d38d)]);}),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x39a112),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x39a112)),_0x1d37b7['plugins']['has']('ImageCaptionEditing')&&(_0x11b19f['enableCommand']('toggleImageCaption',(_0x133a8e,_0x4fae0a)=>{const _0x54fc7d=_0x1d37b7['plugins']['get']('ImageCaptionUtils');let _0x190b1a=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x45418e=_0x54fc7d['getCaptionFromImageModelElement'](_0x190b1a);_0x1d37b7['model']['change'](()=>{if(_0x45418e)return void _0x11b19f['markDeletion'](_0x1d37b7['model']['createRangeOn'](_0x45418e));const _0x58d12f=_0x54c197['isBlockImage'](_0x190b1a);_0x133a8e(_0x4fae0a),_0x190b1a=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x45418e=_0x54fc7d['getCaptionFromImageModelElement'](_0x190b1a),_0x11b19f['markInsertion'](_0x1d37b7['model']['createRangeOn'](_0x45418e),_0x58d12f?null:'imageCaption');});}),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x39a112));const _0x479d5d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ecca3(_0x524203,_0x43497b){const _0x55f889=_0x479d5d['findIndex'](({type:_0x34756f,subType:_0x8ef564})=>_0x524203['type']==_0x34756f&&_0x524203['subType']==_0x8ef564),_0x29af3d=_0x479d5d['findIndex'](({type:_0x25c3a7,subType:_0x4ca356})=>_0x43497b['type']==_0x25c3a7&&_0x43497b['subType']==_0x4ca356);if(_0x55f889<0x0||_0x29af3d<0x0)return!0x1;const _0x32c052=_0x524203['getFirstRange'](),_0x50928e=_0x43497b['getFirstRange']();if((0x0==_0x55f889||0x1==_0x55f889)&&0x2==_0x29af3d&&_0x32c052['isIntersecting'](_0x50928e))return!0x0;if(0x2==_0x55f889&&0x3==_0x29af3d){const _0x5b4eb4=_0x11b19f['_findSuggestions'](_0x32c052,'insertion')['filter'](({suggestion:_0x19c499,meta:_0x8aa3db})=>_0x8aa3db['isOwn']&&'convertInlineImageToBlock'==_0x19c499['subType']);if(_0x5b4eb4['length']>0x1&&_0x50928e['end']['isEqual'](_0x32c052['start']))return!0x0;if(0x1==_0x5b4eb4['length']&&(_0x32c052['start']['isEqual'](_0x50928e['end'])||_0x32c052['end']['isEqual'](_0x50928e['start'])))return!0x0;}if(0x3==_0x55f889&&0x3==_0x29af3d&&_0x32c052['start']['isBefore'](_0x50928e['start'])){const _0x124ca8=_0x32c052['end']['nodeAfter'],_0xe6a82a=_0x50928e['start']['nodeBefore'];return _0x54c197['isBlockImage'](_0x124ca8)&&_0x124ca8===_0xe6a82a;}return!0x1;}function _0x39a112(_0x2d6949,_0x14cd9c){return _0x1ecca3(_0x2d6949,_0x14cd9c)?[_0x2d6949,_0x14cd9c]:_0x1ecca3(_0x14cd9c,_0x2d6949)?[_0x14cd9c,_0x2d6949]:null;}_0x1d37b7['plugins']['has']('ImageResize')&&(_0x11b19f['enableDefaultAttributesIntegration']('resizeImage'),_0x11b19f['registerBlockAttribute']('resizedWidth'),_0x11b19f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2b96fc,'FORMAT_IMAGE_SIZE'))),_0x1d37b7['plugins']['has']('ImageTextAlternativeEditing')&&(_0x11b19f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x11b19f['registerBlockAttribute']('alt')),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x2250a9=>{if(!!_0x479d5d['find'](({type:_0x2581fd,subType:_0x42f994})=>_0x2250a9['type']==_0x2581fd&&_0x2250a9['subType']==_0x42f994))return _0x2250a9['previous']?{}:void 0x0;}),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x4439d5=>{if('insertion'==_0x4439d5['type']||'deletion'==_0x4439d5['type']){const _0x173ff5=_0x4439d5['getContainedElement']();if(_0x173ff5&&_0x173ff5['is']('element','caption'))return{'type':'insertion'==_0x4439d5['type']?'addObject':'removeObject','element':_0x173ff5,'quantity':0x1};}}),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x5364e7=>'formatBlock'==_0x5364e7['type']&&'convertInlineImageToBlock'==_0x5364e7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5364e7['type']&&'convertBlockImageToInline'==_0x5364e7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x30426d=>{if('attribute'!=_0x30426d['type'])return;const {data:_0x1da8b5}=_0x30426d;if(!_0x1da8b5||'alt'!=_0x1da8b5['key'])return;const _0x2d5698=_0x1da8b5['newValue'];return _0x2d5698?{'type':'format','content':o(_0x2b96fc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d5698+'\x22')}:{'type':'format','content':o(_0x2b96fc,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x447c2d=this['editor'],_0x4042f6=_0x447c2d['locale'];_0x447c2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x432f10=>{if('formatBlock'!=_0x432f10['type']&&'formatInline'!=_0x432f10['type'])return;const {data:_0x166ad8}=_0x432f10;if(_0x166ad8){if('imageTextAlternative'==_0x166ad8['commandName']){const _0xcba5d7=_0x166ad8['commandParams'][0x0]['newValue'];return _0xcba5d7?{'type':'format','content':o(_0x4042f6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xcba5d7+'\x22')}:{'type':'format','content':o(_0x4042f6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x166ad8['commandName']){const _0x3743a5=_0x166ad8['commandParams'][0x0]['width'];return _0x3743a5?{'type':'format','content':o(_0x4042f6,'*Set\x20image\x20width:*\x20%0',_0x3743a5)}:{'type':'format','content':o(_0x4042f6,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x23621b=this['editor']['locale'],_0x3c6fa9=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c6fa9['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3c6fa9['registerBlockAttribute']('src'),_0x3c6fa9['descriptionFactory']['registerDescriptionCallback'](_0x44f64c=>{if('attribute'!=_0x44f64c['type'])return;const {data:_0x10ace0}=_0x44f64c;return _0x10ace0&&'src'==_0x10ace0['key']?_0x10ace0['newValue']&&_0x10ace0['oldValue']?{'type':'format','content':o(_0x23621b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x31cbc9=this['editor']['plugins']['get']('TrackChangesEditing');_0x31cbc9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x31cbc9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31cbc9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x31cbc9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10da4a=this['editor'],_0x54f33c=_0x10da4a['locale'];_0x10da4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34b849=>{if('formatBlock'!=_0x34b849['type']&&'formatInline'!=_0x34b849['type'])return;const {data:_0x456eef}=_0x34b849;if(!_0x456eef||'replaceImageSource'!=_0x456eef['commandName'])return;return{'type':'format','content':o(_0x54f33c,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x16a2ad{['afterInit'](){const _0x511d18=this['editor'];if(!_0x511d18['plugins']['has']('ImageStyleEditing'))return;const _0x289caf=_0x511d18['plugins']['get']('TrackChangesEditing'),_0x597397=_0x511d18['plugins']['get']('ImageUtils'),_0x456e8b={};_0x289caf['enableCommand']('imageStyle',(_0x1b2ac5,_0x1ce4e0)=>{const _0x4e6e77=_0x511d18['plugins']['get']('Users')['me'],_0x5b60be=_0x511d18['commands']['get']('imageStyle');let _0x5ceb79=_0x597397['getClosestSelectedImageElement'](_0x511d18['model']['document']['selection']),_0x2c276d=_0x511d18['model']['createRangeOn'](_0x5ceb79),_0x427cb5=_0x5b60be['value'];if(_0x427cb5==_0x1ce4e0['value'])return;const _0x4865de={'commandName':'imageStyle','commandParams':[_0x1ce4e0],'formatGroupId':_0x31d1bc()};_0x511d18['model']['change'](()=>{if(_0x289caf['getSuggestions']()['filter'](_0x27aebf=>_0x27aebf['isInContent']&&_0x4e6e77==_0x27aebf['author']&&('formatBlock'==_0x27aebf['type']||'formatInline'==_0x27aebf['type'])&&('imageStylePreApply'==_0x27aebf['subType']||'imageStylePostApply'==_0x27aebf['subType'])&&_0x27aebf['getFirstRange']()['isEqual'](_0x2c276d))['forEach'](_0x5e1f53=>_0x289caf['discardSuggestion'](_0x5e1f53['head'])),_0x5ceb79=_0x597397['getClosestSelectedImageElement'](_0x511d18['model']['document']['selection']),_0x2c276d=_0x511d18['model']['createRangeOn'](_0x5ceb79),_0x5b60be['refresh'](),_0x511d18['commands']['get']('imageTypeInline')['refresh'](),_0x511d18['commands']['get']('imageTypeBlock')['refresh'](),_0x427cb5=_0x5b60be['value'],_0x427cb5!=_0x1ce4e0['value'])return _0x597397['isInlineImage'](_0x5ceb79)&&_0x5b60be['shouldConvertImageType'](_0x1ce4e0['value'],_0x5ceb79)?(_0x1b2ac5({..._0x1ce4e0,'setImageSizes':!0x1}),_0x5ceb79=_0x597397['getClosestSelectedImageElement'](_0x511d18['model']['document']['selection']),void _0x289caf['markBlockFormat'](_0x5ceb79,{..._0x4865de,'commandReversedParams':[{'value':_0x427cb5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x597397['isBlockImage'](_0x5ceb79)?_0x289caf['markBlockFormat'](_0x5ceb79,_0x4865de,[],'imageStylePostApply'):_0x289caf['markInlineFormat'](_0x2c276d,_0x4865de,'imageStylePostApply'));});});for(const _0x4462b8 of _0x511d18['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x456e8b[_0x4462b8['name']]=_0x4462b8['title']['toLowerCase']();_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x221213])=>{_0x597397['setImageNaturalSizeAttributes'](_0x221213['getContainedElement']());}),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xa7434d,_0x1821e3)=>{_0x289caf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xa7434d,{'commandName':_0x1821e3['commandName'],'commandParams':_0x1821e3['commandReversedParams']});}),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2d03e4,_0x144cce){if(_0x1ee099(_0x2d03e4,_0x144cce))return[_0x2d03e4,_0x144cce];if(_0x1ee099(_0x144cce,_0x2d03e4))return[_0x144cce,_0x2d03e4];return null;});const _0x3c7da0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ee099(_0x41ada0,_0x103621){const _0x435d73=_0x3c7da0['findIndex'](({type:_0x18752b,subType:_0x57fdb3})=>_0x41ada0['type']==_0x18752b&&_0x41ada0['subType']==_0x57fdb3),_0x557666=_0x3c7da0['findIndex'](({type:_0x1a88b2,subType:_0x4fbcec})=>_0x103621['type']==_0x1a88b2&&_0x103621['subType']==_0x4fbcec);if(_0x435d73<0x0||_0x557666<0x0)return!0x1;const _0x25e8ca=_0x41ada0['getFirstRange'](),_0xbc9d2b=_0x103621['getFirstRange']();if((0x0==_0x435d73||0x1==_0x435d73)&&0x2==_0x557666&&_0x25e8ca['isIntersecting'](_0xbc9d2b))return!0x0;if(0x2==_0x435d73&&0x3==_0x557666){const _0x50074c=_0x289caf['_findSuggestions'](_0x25e8ca,'insertion')['filter'](({suggestion:_0x36683f,meta:_0x2439c5})=>_0x2439c5['isOwn']&&'convertInlineImageToBlock'==_0x36683f['subType']);if(_0x50074c['length']>0x1&&_0xbc9d2b['end']['isEqual'](_0x25e8ca['start']))return!0x0;if(0x1==_0x50074c['length']&&(_0x25e8ca['start']['isEqual'](_0xbc9d2b['end'])||_0x25e8ca['end']['isEqual'](_0xbc9d2b['start'])))return!0x0;}if(0x3==_0x435d73&&0x3==_0x557666&&_0x25e8ca['start']['isBefore'](_0xbc9d2b['start'])){const _0x684923=_0x25e8ca['end']['nodeAfter'],_0x63c7b9=_0xbc9d2b['start']['nodeBefore'];return _0x597397['isBlockImage'](_0x684923)&&_0x684923===_0x63c7b9;}return!0x1;}_0x511d18['model']['document']['registerPostFixer'](()=>{let _0x44d23c=!0x1;const _0x1bc03a=Array['from'](_0x511d18['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x499e08,data:_0xbf613d}of _0x1bc03a){const {group:_0x3a7ef2,type:_0x3fb111,subType:_0x5068b2,id:_0x5017ae}=_0x289caf['_splitMarkerName'](_0x499e08);if('suggestion'==_0x3a7ef2&&_0x289caf['hasSuggestion'](_0x5017ae)){if('formatBlock'==_0x3fb111&&('imageStylePreApply'==_0x5068b2||'imageStylePostApply'==_0x5068b2)){const _0x489745=_0x289caf['getSuggestion'](_0x5017ae);if(_0xbf613d['newRange']){const _0xd83fbd=_0x489745['getFirstRange']()['getContainedElement']();if(_0x597397['isBlockImage'](_0xd83fbd))continue;_0x289caf['discardSuggestion'](_0x489745),_0x44d23c=!0x0;}}if('insertion'==_0x3fb111&&'imageCaption'==_0x5068b2&&!_0xbf613d['newRange']){const _0x4d221b=_0x289caf['getSuggestion'](_0x5017ae);_0x4d221b['next']&&_0x4d221b['next']['isInContent']&&(_0x289caf['discardSuggestion'](_0x4d221b['next']),_0x44d23c=!0x0);}}}return _0x44d23c;}),this['_registerLegacyDescription'](_0x456e8b);}['_registerLegacyDescription'](_0x520f97){const _0x3562e0=this['editor'],_0x30d7b0=_0x3562e0['locale'];_0x3562e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c8e28=>{if('formatBlock'!=_0x2c8e28['type']&&'formatInline'!=_0x2c8e28['type'])return;const {data:_0x39b308}=_0x2c8e28;if(!_0x39b308||'imageStyle'!=_0x39b308['commandName'])return;const _0x362ddc=_0x39b308['commandParams'][0x0]['value'];return _0x4c9041('side'===_0x362ddc?o(_0x30d7b0,'FORMAT_SIDE_IMAGE'):_0x520f97[_0x362ddc]||_0x362ddc);function _0x4c9041(_0x34f6ce){return{'type':'format','content':o(_0x30d7b0,'*Format:*\x20%0',_0x34f6ce)};}});}}class at extends _0x16a2ad{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1405b8){super(_0x1405b8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x315be0=this['editor'],_0x32a908=_0x315be0['commands']['get']('importWord'),_0x2c2476=_0x315be0['commands']['get']('trackChanges');_0x32a908&&(_0x32a908['on']('execute',(_0x29638b,[,_0x4b1d71])=>{this['_trackChangesValueDuringImport']=_0x2c2476['value'],_0x4b1d71['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x32a908,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x32a908,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c2476['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x315be0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x212f21,_0x7898aa){const {suggestions:_0xd54fc8}=_0x7898aa,_0x3bf4be=this['editor']['commands']['get']('trackChanges'),_0x36629e=_0x3bf4be['value'];this['_trackChangesValueDuringImport']!==_0x36629e&&(_0x3bf4be['execute'](),this['_trackChangesExecuted']=!0x0),_0xd54fc8&&_0xd54fc8['forEach'](({id:_0x12b59e,type:_0x54207b,author:_0x46ab48,created_at:_0x53f5ed})=>{const _0x5b3424={'id':_0x12b59e,'type':_0x54207b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x46ab48,'createdAt':_0x53f5ed?new Date(_0x53f5ed):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5b3424);});}}class ct extends _0x16a2ad{['afterInit'](){const _0x347bfd=this['editor'],_0x15ac16=_0x347bfd['plugins']['get']('TrackChangesEditing');if(_0x347bfd['plugins']['has']('IndentEditing')&&(_0x15ac16['enableCommand']('indent'),_0x15ac16['enableCommand']('outdent')),_0x347bfd['plugins']['has']('IndentBlock')){for(const _0x2c26ba of['indentBlock','outdentBlock'])_0x15ac16['enableDefaultAttributesIntegration'](_0x2c26ba);}const _0x118f0d=_0x347bfd['locale'];_0x15ac16['registerBlockAttribute']('blockIndent'),_0x15ac16['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x118f0d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57f75c=this['editor'],_0x5b838c=_0x57f75c['locale'],_0x5d074c=_0x57f75c['plugins']['get']('TrackChangesEditing');_0x5d074c['descriptionFactory']['registerDescriptionCallback'](_0x52cc43=>{if('formatBlock'!=_0x52cc43['type'])return;const {data:_0x30b396}=_0x52cc43;if(!_0x30b396)return;if('indentBlock'!=_0x30b396['commandName']&&'outdentBlock'!=_0x30b396['commandName'])return;const _0x2e9e85=_0x52cc43['getItems']()[0x0],_0x1e2629=_0x5d074c['descriptionFactory']['getItemLabel'](_0x2e9e85);return'indentBlock'==_0x30b396['commandName']?{'type':'format','content':o(_0x5b838c,'*Indent:*\x20%0',_0x1e2629)}:'outdentBlock'==_0x30b396['commandName']?{'type':'format','content':o(_0x5b838c,'*Outdent:*\x20%0',_0x1e2629)}:void 0x0;});}}class ut extends _0x16a2ad{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x16a2ad{['afterInit'](){const _0x2f60f3=this['editor'];if(!_0x2f60f3['plugins']['has']('LinkEditing'))return;const _0x2fe860=_0x2f60f3['plugins']['get']('TrackChangesEditing'),_0x525a9b=_0x2f60f3['commands']['get']('link');_0x2fe860['enableDefaultAttributesIntegration']('link'),_0x2fe860['enableDefaultAttributesIntegration']('unlink'),_0x2fe860['registerInlineAttribute']('linkHref');for(const _0x25ec2a of _0x525a9b['manualDecorators'])_0x2fe860['registerInlineAttribute'](_0x25ec2a['id']),_0x2fe860['descriptionFactory']['registerAttributeLabel'](_0x25ec2a['id'],'link\x20('+_0x25ec2a['label']['toLowerCase']()+')');_0x2fe860['descriptionFactory']['registerDescriptionCallback'](_0x221f9c=>{if('attribute'!=_0x221f9c['type'])return;const {data:_0x5efef4}=_0x221f9c;if(!_0x5efef4||'linkHref'!=_0x5efef4['key'])return;const _0x52f6fc=_0x5efef4['newValue'],_0x503842=_0x2f60f3['locale'];return{'type':'format','content':null==_0x52f6fc?o(_0x503842,'*Remove\x20link*'):o(_0x503842,'*Set\x20link:*\x20%0','\x22'+_0x52f6fc+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d6d50=this['editor'],_0x68596a=_0x3d6d50['locale'];_0x3d6d50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47af01=>{if('formatInline'!=_0x47af01['type'])return;const {data:_0x121f62}=_0x47af01;if(_0x121f62){if('link'==_0x121f62['commandName']){const _0x1f827c=_0x121f62['commandParams'][0x0];return{'type':'format','content':o(_0x68596a,'*Set\x20link:*\x20%0','\x22'+_0x1f827c+'\x22')};}return'unlink'==_0x121f62['commandName']?{'type':'format','content':o(_0x68596a,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x16a2ad{['afterInit'](){const _0x31911e=this['editor'],_0x5834d2=_0x31911e['locale'];if(!_0x31911e['plugins']['has']('LegacyListEditing'))return;const _0x13f63c=_0x31911e['plugins']['get']('TrackChangesEditing'),_0x57f1a3=_0x31911e['plugins']['has']('LegacyTodoListEditing');function _0x45e8ed(_0x5c243e){return()=>{const _0x3420a5=_0x31911e['model']['document']['selection'],_0x2eb20b=_0x31911e['commands']['get'](_0x5c243e);if(_0x2eb20b['value'])return void _0x31911e['execute']('paragraph',{});const _0x25b1b5=_0x5c243e['slice'](0x0,-0x4),_0x51ac23=function(_0x2f7148,_0x4acc7c,_0x4a3835){let _0x288677=Array['from'](_0x2f7148)['filter'](_0x5eb67b=>function(_0x352dcb,_0x5b51aa){return _0x5b51aa['checkChild'](_0x352dcb['parent'],'listItem')&&!_0x5b51aa['isObject'](_0x352dcb);}(_0x5eb67b,_0x4a3835));_0x288677=_0x288677['filter'](_0x219dad=>!_0x219dad['is']('element','listItem')||_0x219dad['getAttribute']('listType')!=_0x4acc7c);const _0x2b6f34=new Set();for(const _0x5248e7 of _0x288677)_0x5248e7['is']('element','listItem')?_0x2b6f34['add'](fe(_0x5248e7)):_0x2b6f34['add'](_0x5248e7);return Array['from'](_0x2b6f34);}(_0x3420a5['getSelectedBlocks'](),_0x25b1b5,_0x31911e['model']['schema']);_0x31911e['model']['change'](()=>{for(const _0x5596d5 of _0x51ac23)_0x13f63c['markBlockFormat'](_0x5596d5,{'commandName':_0x5c243e,'commandParams':[{'forceValue':!_0x2eb20b['value']}],'formatGroupId':'blockName'},ue(_0x5596d5));});};}function _0x5eac82(_0x2c2b1d){return()=>{const _0x5843f2=function(_0x8e72f1){let _0x4b776c=Array['from'](_0x8e72f1);const _0x1925ae=_0x4b776c['findIndex'](_0x3793a2=>'listItem'!=_0x3793a2['name']);return _0x1925ae>-0x1&&(_0x4b776c=_0x4b776c['slice'](0x0,_0x1925ae)),_0x4b776c;}(_0x31911e['model']['document']['selection']['getSelectedBlocks']()),_0x2fceb6=_0x31911e['model']['createRange'](_0x31911e['model']['createPositionAt'](_0x5843f2[0x0],'before'),_0x31911e['model']['createPositionAt'](_0x5843f2[_0x5843f2['length']-0x1],'end'));_0x31911e['model']['change'](()=>{_0x13f63c['markBlockFormat'](_0x2fceb6,{'commandName':_0x2c2b1d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x588b1f){const _0x72958c=new Set();for(const _0x2fe062 of _0x588b1f){let _0x4250c5=_0x2fe062['nextSibling'];for(;_0x4250c5&&_0x4250c5['getAttribute']('listIndent')>_0x2fe062['getAttribute']('listIndent');)_0x72958c['add'](_0x4250c5),_0x4250c5=_0x4250c5['nextSibling'];}return Array['from'](_0x72958c);}(_0x5843f2));});};}_0x13f63c['enableCommand']('numberedList',_0x45e8ed('numberedList')),_0x13f63c['enableCommand']('bulletedList',_0x45e8ed('bulletedList')),_0x57f1a3&&_0x13f63c['enableCommand']('todoList',_0x45e8ed('todoList')),_0x13f63c['enableCommand']('indentList',_0x5eac82('indentList')),_0x13f63c['enableCommand']('outdentList',_0x5eac82('outdentList')),_0x57f1a3&&_0x13f63c['enableCommand']('checkTodoList',()=>{const _0x19c98b=_0x31911e['commands']['get']('checkTodoList'),_0x588819=Array['from'](_0x19c98b['_selectedElements']);_0x588819['filter'](_0x8ec86=>_0x8ec86['getAttribute']('todoListChecked')!=_0x19c98b['value']),_0x31911e['model']['change'](()=>{for(const _0x15ddef of _0x588819)_0x13f63c['markBlockFormat'](_0x15ddef,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x19c98b['value']}]});});}),_0x13f63c['descriptionFactory']['registerElementLabel']('listItem',_0x2a00f5=>o(_0x5834d2,'ELEMENT_LIST_ITEM',_0x2a00f5)),_0x13f63c['descriptionFactory']['registerDescriptionCallback'](_0x325adf=>{if('formatBlock'!=_0x325adf['type']&&'formatInline'!=_0x325adf['type'])return;const {data:_0x158538}=_0x325adf;if(_0x158538){if('numberedList'==_0x158538['commandName']||'bulletedList'==_0x158538['commandName']||'todoList'==_0x158538['commandName'])switch(_0x158538['commandName']['replace']('List','')){case'bulleted':return _0x49853d(o(_0x5834d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49853d(o(_0x5834d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49853d(o(_0x5834d2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x158538['commandName'])return{'type':'format','content':o(_0x5834d2,'*Indent:*\x20%0',o(_0x5834d2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x158538['commandName'])return{'type':'format','content':o(_0x5834d2,'*Outdent:*\x20%0',o(_0x5834d2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x158538['commandName'])return _0x158538['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5834d2,'*Check\x20item*')}:{'type':'format','content':o(_0x5834d2,'*Uncheck\x20item*')};}function _0x49853d(_0x2b833e){return{'type':'format','content':o(_0x5834d2,'*Change\x20to:*\x20%0',_0x2b833e)};}});}}function fe(_0x44fecd){const _0xb09392=_0x44fecd['getAttribute']('listIndent');if(0x0==_0xb09392)return _0x44fecd;let _0x577ba0=_0x44fecd;for(;_0x44fecd['previousSibling']&&_0x44fecd['previousSibling']['is']('element','listItem');){const _0x44aaa5=_0x44fecd['previousSibling']['getAttribute']('listIndent');if(_0x44aaa5==_0xb09392)_0x577ba0=_0x44fecd['previousSibling'];else{if(_0x44aaa5<_0xb09392)break;}_0x44fecd=_0x44fecd['previousSibling'];}return _0x577ba0;}function ue(_0x2eaef8){const _0x193cfd=[];if(_0x2eaef8['is']('element','listItem')&&_0x2eaef8['getAttribute']('listIndent')>0x0){let _0x33b322=_0x2eaef8['nextSibling'];for(;_0x33b322&&'listItem'==_0x33b322['name']&&_0x33b322['getAttribute']('listIndent')==_0x2eaef8['getAttribute']('listIndent');)_0x193cfd['push'](_0x33b322),_0x33b322=_0x33b322['nextSibling'];}return _0x193cfd;}class W extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x403206=this['editor']['config']['get']('list.properties'),_0x507a92=this['editor']['plugins']['get']('TrackChangesEditing');_0x403206['styles']&&_0x507a92['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x403206['reversed']&&_0x507a92['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x403206['startIndex']&&_0x507a92['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x507a92['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3b08b4,_0x3d3707={}){const _0x47a226=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e44a1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x47a226['markMultiRangeBlockFormat'](_0x2e44a1,{'commandName':'listStyle','commandParams':[{'type':_0x3d3707['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x31ede1,_0x30a363={}){const _0x4f021b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44bbea=this['_getSuggestionBlocks'](_0x976aa0=>_0x976aa0['is']('element','listItem')&&'numbered'===_0x976aa0['getAttribute']('listType'));if(_0x44bbea['length']<0x1)return;const _0x955b23=_0x44bbea['map'](_0x113cf6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x113cf6,'before'),this['editor']['model']['createPositionAt'](_0x113cf6,0x0)));this['editor']['model']['change'](()=>{_0x4f021b['markMultiRangeBlockFormat'](_0x955b23,{'commandName':'listReversed','commandParams':[{'reversed':_0x30a363['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x37a996,_0x13988a={}){const _0x1d53ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c5209=this['_getSuggestionBlocks'](_0x2a606c=>_0x2a606c['is']('element','listItem')&&'numbered'===_0x2a606c['getAttribute']('listType'));if(_0x2c5209['length']<0x1)return;const _0x1d465b=_0x2c5209['map'](_0xf609a9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf609a9,'before'),this['editor']['model']['createPositionAt'](_0xf609a9,0x0)));this['editor']['model']['change'](()=>{_0x1d53ad['markMultiRangeBlockFormat'](_0x1d465b,{'commandName':'listStart','commandParams':[{'startIndex':_0x13988a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2d4b81){if('formatBlock'!=_0x2d4b81['type']&&'formatInline'!=_0x2d4b81['type'])return;const _0x38bd28=this['editor']['locale'],{data:_0x28e397}=_0x2d4b81;if(!_0x28e397)return;let _0x2031e7,_0x2a08a0;switch(_0x28e397['commandName']){case'listStyle':_0x2031e7='*Change\x20to:*\x20%0',_0x2a08a0={'type':'format','content':o(_0x38bd28,_0x2031e7,o(_0x38bd28,this['_getTranslationKeyForListStyle'](_0x28e397['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2031e7=_0x28e397['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2a08a0={'type':'format','content':o(_0x38bd28,_0x2031e7)};break;case'listStart':_0x2031e7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2a08a0={'type':'format','content':o(_0x38bd28,_0x2031e7,_0x28e397['commandParams'][0x0]['startIndex'])};}return _0x2a08a0;}['_getSuggestionBlocksForListStyle'](){const _0x56fc6e=this['editor']['plugins']['get']('LegacyListUtils');let _0x7e9ddb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x7e9ddb[0x0]?.['is']('element','listItem')&&_0x7e9ddb['unshift'](..._0x56fc6e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x7e9ddb[_0x7e9ddb['length']-0x1]?.['is']('element','listItem')&&_0x7e9ddb['push'](..._0x56fc6e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x7e9ddb=[...new Set(_0x7e9ddb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x7e9ddb=_0x7e9ddb['filter'](_0x44502b=>_0x44502b['is']('element','listItem'))),_0x7e9ddb;}['_getSuggestionBlocks'](_0x1958f6){const _0x46e3eb=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e4f2d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1958f6)['map'](_0x285078=>{const _0x17b716=this['editor']['model']['createPositionAt'](_0x285078,0x0);return[..._0x46e3eb['getSiblingNodes'](_0x17b716,'backward'),..._0x46e3eb['getSiblingNodes'](_0x17b716,'forward')];})['flat']();return _0x5e4f2d=[...new Set(_0x5e4f2d)],_0x5e4f2d;}['_getTranslationKeyForListStyle'](_0x47e726){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x47e726)||'default')['toUpperCase']()+'_LIST_'+_0x47e726['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x16a2ad{['afterInit'](){const _0x5d5e6d=this['editor'];if(!_0x5d5e6d['plugins']['has']('MediaEmbedEditing'))return;const _0x2281a4=_0x5d5e6d['plugins']['get']('TrackChangesEditing'),_0xef94df=_0x5d5e6d['locale'];_0x2281a4['enableCommand']('mediaEmbed'),_0x2281a4['descriptionFactory']['registerElementLabel']('media',_0x3ae1f9=>o(_0xef94df,'ELEMENT_MEDIA',_0x3ae1f9)),_0x5d5e6d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x575d50,{writer:_0x49f015,options:_0x2dbd47})=>{if(_0x2dbd47['showSuggestionHighlights'])return _0x49f015['createEmptyElement']('div');},'converterPriority':'high'}),_0x5d5e6d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1ea00f,_0x24a460,_0x5eee1e)=>{_0x5eee1e['options']['showSuggestionHighlights']&&_0x1ea00f['stop']();},{'priority':'high'});}}class mt extends _0x16a2ad{['afterInit'](){const _0x34d7f5=this['editor'];_0x34d7f5['plugins']['has']('MentionEditing')&&_0x34d7f5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x16a2ad{['afterInit'](){const _0x122545=this['editor'];if(!_0x122545['plugins']['has']('MergeFieldsEditing'))return;_0x122545['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x122545['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2d70ef=_0x122545['plugins']['get']('TrackChangesEditing'),_0x54cdaf=_0x122545['locale'];_0x2d70ef['descriptionFactory']['registerElementLabel']('mergeField',_0x444cbc=>o(_0x54cdaf,'ELEMENT_MERGE_FIELD',_0x444cbc)),_0x2d70ef['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x55ef42=>o(_0x54cdaf,'ELEMENT_MERGE_FIELD',_0x55ef42)),_0x2d70ef['descriptionFactory']['registerDescriptionCallback'](_0xbdd563=>{if('insertion'!=_0xbdd563['type']&&'deletion'!=_0xbdd563['type'])return;const _0x3d84fb=_0xbdd563['getContainedElement']();if(null==_0x3d84fb)return;if(!_0x3d84fb['is']('element','mergeField')&&!_0x3d84fb['is']('element','mergeFieldBlock'))return;const _0x19ae73=_0x122545['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x3d84fb['getAttribute']('id'));return'insertion'==_0xbdd563['type']?{'type':'insertion','content':o(_0x54cdaf,'*Insert:*\x20%0','\x22'+_0x19ae73+'\x22\x20'+o(_0x54cdaf,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x54cdaf,'*Remove:*\x20%0','\x22'+_0x19ae73+'\x22\x20'+o(_0x54cdaf,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x16a2ad{['afterInit'](){const _0xa66258=this['editor'],_0x54173a=_0xa66258['plugins']['get']('TrackChangesEditing');_0xa66258['plugins']['has']('MultiLevelList')&&(_0x54173a['enableDefaultAttributesIntegration']('multiLevelList'),_0x54173a['registerBlockAttribute']('listMarkerStyle'),_0x54173a['descriptionFactory']['registerDescriptionCallback'](_0x42d9e2=>this['handleDescriptions'](_0x42d9e2)));}['handleDescriptions'](_0x16a34e){const _0x118daa=this['editor']['locale'],{data:_0x314cd2}=_0x16a34e,_0x311ed1={'type':'format','content':''};if(_0x314cd2&&'listMarkerStyle'==_0x314cd2['key']){if(!_0x314cd2['oldValue'])return{'type':'format','content':o(_0x118daa,'*Set\x20format:*\x20%0',o(_0x118daa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x314cd2['newValue']+')'};if(!_0x314cd2['newValue']){let _0xc7de0a=_0x16a34e['head'];for(;_0xc7de0a;){if(_0xc7de0a['data']&&'listType'==_0xc7de0a['data']['key']&&_0xc7de0a['data']['newValue'])return _0x311ed1;_0xc7de0a=_0xc7de0a['next'];}return{'type':'format','content':o(_0x118daa,'*Remove\x20format:*\x20%0',o(_0x118daa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x314cd2['oldValue']+')'};}}}}class kt extends _0x16a2ad{['afterInit'](){const _0x2e1ef9=this['editor'];if(!_0x2e1ef9['plugins']['has']('PageBreakEditing'))return;_0x2e1ef9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x147c91=_0x2e1ef9['plugins']['get']('TrackChangesEditing'),_0x6d413b=_0x2e1ef9['locale'];_0x147c91['descriptionFactory']['registerElementLabel']('pageBreak',_0x454e53=>o(_0x6d413b,'ELEMENT_PAGE_BREAK',_0x454e53));}}class bt extends _0x16a2ad{['afterInit'](){const _0xcb8ca0=this['editor'];if(!_0xcb8ca0['plugins']['has']('Paragraph'))return;const _0x49a106=_0xcb8ca0['locale'],_0x5497fd=_0xcb8ca0['plugins']['get']('TrackChangesEditing');_0x5497fd['descriptionFactory']['registerElementLabel']('paragraph',_0x302694=>o(_0x49a106,'ELEMENT_PARAGRAPH',_0x302694)),_0x5497fd['enableDefaultAttributesIntegration']('paragraph'),_0x5497fd['enableCommand']('insertParagraph'),_0xcb8ca0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xcb8ca0),{'priority':'highest'}),_0xcb8ca0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e359a,_0x153cad,_0x216c0e)=>{_0x216c0e['options']['showSuggestionHighlights']&&nr(_0xcb8ca0,{'showActiveMarker':!0x1})(_0x4e359a,_0x153cad,_0x216c0e);},{'priority':'highest'});const _0x1a7e65=_0x5497fd['descriptionFactory'];_0x1a7e65['registerDescriptionCallback'](_0x2322dc=>{if('insertion'!==_0x2322dc['type'])return;const {start:_0x10bfec,end:_0x2e0ed0}=_0x2322dc['getFirstRange']();if(!_0x10bfec['isTouching'](_0x2e0ed0)||!_0x10bfec['nodeAfter'])return;const _0x30faaa=_0xcb8ca0['model']['schema'],_0x2a2176=_0x10bfec['nodeAfter'];return _0x30faaa['isBlock'](_0x2a2176)&&!_0x30faaa['isLimit'](_0x2a2176)&&_0x30faaa['checkChild'](_0x2a2176,'$text')?{'type':'insertion','content':o(_0x49a106,'*Insert:*\x20%0',_0x1a7e65['getItemLabel'](_0x2a2176,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42a4c9=this['editor'],_0x3362c9=_0x42a4c9['locale'];_0x42a4c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5df486=>{if('formatBlock'!=_0x5df486['type'])return;const {data:_0x2a2f50}=_0x5df486;return _0x2a2f50&&'paragraph'==_0x2a2f50['commandName']?{'type':'format','content':o(_0x3362c9,'*Change\x20to:*\x20%0',o(_0x3362c9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x386f76,{showActiveMarker:_0x52cf42=!0x0}={}){return(_0x27ad06,_0x250326,_0x1c581f)=>{const _0x2865a9=_0x386f76['plugins']['get']('TrackChangesEditing'),_0x3bbe24=_0x250326['markerRange']['start'],_0x354d97=_0x250326['markerRange']['end'],_0x192e4a=_0x386f76['model']['schema'];if(!_0x3bbe24['isTouching'](_0x354d97)||!_0x3bbe24['nodeAfter'])return;const _0x4b30f9=_0x3bbe24['nodeAfter'];if(_0x192e4a['isBlock'](_0x4b30f9)&&!_0x192e4a['isLimit'](_0x4b30f9)&&_0x192e4a['checkChild'](_0x4b30f9,'$text')){if(!_0x1c581f['consumable']['consume'](_0x250326['markerRange'],_0x27ad06['name']))return;const {authorId:_0x764827}=_0x2865a9['_splitMarkerName'](_0x250326['markerName']),_0x408eb4=_0x1c581f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x764827}),_0x3eb108=_0x1c581f['mapper']['toViewPosition'](_0x354d97);_0x52cf42&&_0x2865a9['activeMarkers']['includes'](_0x250326['markerName'])&&_0x1c581f['writer']['addClass']('ck-suggestion-marker--active',_0x408eb4),_0x1c581f['writer']['insert'](_0x3eb108,_0x408eb4),_0x1c581f['mapper']['bindElementToMarker'](_0x408eb4,_0x250326['markerName']);}};}class wt extends _0x16a2ad{['afterInit'](){const _0x46b383=this['editor'];if(!_0x46b383['plugins']['has']('RemoveFormatEditing'))return;_0x46b383['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d0860=this['editor'];_0x4d0860['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43425e=>{if('formatBlock'!=_0x43425e['type']&&'formatInline'!=_0x43425e['type'])return;const {data:_0x35c1e2}=_0x43425e;return _0x35c1e2&&'removeFormat'==_0x35c1e2['commandName']?{'type':'format','content':o(_0x4d0860['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x16a2ad{['afterInit'](){const _0x3126bb=this['editor'];if(!_0x3126bb['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4397e6=_0x3126bb['plugins']['get']('TrackChangesEditing');_0x4397e6['enableCommand']('goToPreviousRestrictedEditingException'),_0x4397e6['enableCommand']('goToNextRestrictedEditingException');const _0x26ef28=_0x3126bb['plugins']['get']('RestrictedEditingModeEditing');_0x26ef28['enableCommand']('trackChanges'),_0x26ef28['enableCommand']('acceptSuggestion'),_0x26ef28['enableCommand']('discardSuggestion'),_0x26ef28['enableCommand']('acceptAllSuggestions'),_0x26ef28['enableCommand']('discardAllSuggestions'),_0x26ef28['enableCommand']('acceptSelectedSuggestions'),_0x26ef28['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x16a2ad{static get['requires'](){return[_0x3bdf00];}['init'](){const _0x190535=this['editor'],_0x55f8d6=_0x190535['plugins']['get']('TrackChangesEditing');_0x55f8d6['enableCommand']('shiftEnter'),_0x190535['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x190535),{'priority':'high'}),_0x190535['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x190535),{'priority':'high'}),_0x190535['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x22f352,_0x5effca,_0x4de0aa)=>{_0x4de0aa['options']['showSuggestionHighlights']&&ge(_0x190535,{'showActiveMarker':!0x1})(_0x22f352,_0x5effca,_0x4de0aa);}),_0x55f8d6['descriptionFactory']['registerElementLabel']('softBreak',_0x4e476a=>o(_0x190535['locale'],'ELEMENT_LINE_BREAK',_0x4e476a));}}function ge(_0xc40bf2,{showActiveMarker:_0x4ea7ec=!0x0}={}){return(_0x329006,_0x4c13b1,_0x32750a)=>{const _0x5280ad=_0xc40bf2['plugins']['get']('TrackChangesEditing');if(!_0x32750a['consumable']['test'](_0x4c13b1['markerRange'],_0x329006['name']))return;const _0x340923=_0xc40bf2['model'];for(const _0x2ffa9e of _0x4c13b1['markerRange']['getItems']()){if(!_0x2ffa9e['is']('element','softBreak'))continue;const _0x4dbfac='deletion'==_0x4c13b1['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x580350}=_0x5280ad['_splitMarkerName'](_0x4c13b1['markerName']),_0x3d10ff=_0x32750a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4dbfac,'data-author-id':_0x580350}),_0x5ada6c=_0x32750a['mapper']['toViewPosition'](_0x340923['createPositionBefore'](_0x2ffa9e));_0x4ea7ec&&_0x5280ad['activeMarkers']['includes'](_0x4c13b1['markerName'])&&_0x32750a['writer']['addClass']('ck-suggestion-marker--active',_0x3d10ff),_0x32750a['writer']['insert'](_0x5ada6c,_0x3d10ff),_0x32750a['mapper']['bindElementToMarker'](_0x3d10ff,_0x4c13b1['markerName']);}};}class St extends _0x16a2ad{['afterInit'](){const _0x1640a3=this['editor'],_0x4028dc=_0x1640a3['model'],_0x326bc5=_0x1640a3['locale'];if(!_0x1640a3['plugins']['has']('StandardEditingModeEditing'))return;const _0x5b4ca9=_0x1640a3['plugins']['get']('TrackChangesEditing'),_0x18c793='restrictedEditingException',_0x5b2daf=_0x1640a3['commands']['get'](_0x18c793);_0x5b4ca9['enableCommand'](_0x18c793,(_0x280e28,_0x5d0aba={})=>{const _0xc2de4a=_0x4028dc['document']['selection'];if(_0xc2de4a['isCollapsed'])return void _0x280e28(_0x5d0aba);const _0x38088b=void 0x0!==_0x5d0aba['forceValue']?_0x5d0aba['forceValue']:!_0x5b2daf['value'];_0x4028dc['change'](()=>{const _0x4b04c2=Array['from'](_0xc2de4a['getRanges']());for(const _0x384a72 of _0x4b04c2){const _0x1f3e50=_0x38088b?[_0x384a72]:io(_0x18c793,_0x384a72,_0x4028dc);for(const _0x4fa827 of _0x1f3e50)_0x5b4ca9['markInlineFormat'](_0x4fa827,{'commandName':_0x18c793,'commandParams':[{'forceValue':_0x38088b}]});}});}),_0x5b4ca9['descriptionFactory']['registerDescriptionCallback'](_0xe38330=>{if('formatBlock'!=_0xe38330['type']&&'formatInline'!=_0xe38330['type'])return;const {data:_0xf46020}=_0xe38330;return _0xf46020&&_0xf46020['commandName']==_0x18c793?_0xf46020['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x326bc5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x326bc5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x16a2ad{['afterInit'](){const _0xc45c6a=this['editor'];if(!_0xc45c6a['plugins']['has']('Style')||!_0xc45c6a['plugins']['has']('DataSchema'))return;const _0x274f64=_0xc45c6a['plugins']['get']('TrackChangesEditing'),_0x3bdbc2=_0xc45c6a['locale'],_0x2a63ad=_0xc45c6a['config']['get']('style')||{},_0x4add59=_0xc45c6a['plugins']['get']('GeneralHtmlSupport'),_0x3ad2cb=_0xc45c6a['plugins']['get']('StyleUtils')['normalizeConfig'](_0xc45c6a['plugins']['get']('DataSchema'),_0x2a63ad['definitions']);_0x274f64['enableDefaultAttributesIntegration']('style');const _0x503036=new Set();for(const _0x3d831c of _0x3ad2cb['block']){const _0x22182e=_0x4add59['getGhsAttributeNameForElement'](_0x3d831c['element']);_0x503036['add'](_0x22182e);}const _0x396bfe=new Set();for(const _0x5877e9 of _0x3ad2cb['inline']){const _0x34fd8e=_0x4add59['getGhsAttributeNameForElement'](_0x5877e9['element']);_0x396bfe['add'](_0x34fd8e);for(const _0x11fa40 of _0x5877e9['ghsAttributes'])_0x396bfe['add'](_0x11fa40);}for(const _0x232f6e of _0x503036)_0x274f64['registerBlockAttribute'](_0x232f6e),_0x274f64['descriptionFactory']['registerAttributeLabel'](_0x232f6e,o(_0x3bdbc2,'FORMAT_STYLE'));for(const _0x3409e9 of _0x396bfe)_0x274f64['registerInlineAttribute'](_0x3409e9),_0x274f64['descriptionFactory']['registerAttributeLabel'](_0x3409e9,o(_0x3bdbc2,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55a6ab=this['editor'],_0x20e509=_0x55a6ab['locale'];_0x55a6ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c5988=>{if('formatBlock'!=_0x5c5988['type']&&'formatInline'!=_0x5c5988['type'])return;const {data:_0xb44c6d}=_0x5c5988;return _0xb44c6d&&'style'===_0xb44c6d['commandName']?_0xb44c6d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20e509,'*Set\x20format:*\x20%0',_0xb44c6d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x20e509,'*Remove\x20format:*\x20%0',_0xb44c6d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x16a2ad{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2ec689){super(_0x2ec689),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x451c67=this['editor'],_0x8627f=_0x451c67['model']['document']['selection'];if(!_0x451c67['plugins']['has']('TableEditing'))return;const _0x1e6ef2=_0x451c67['locale'],_0x7421a1=_0x451c67['plugins']['get']('TrackChangesEditing'),_0x23db14=_0x451c67['plugins']['get']('TableUtils');_0x7421a1['descriptionFactory']['registerElementLabel']('table',_0x44efe8=>o(_0x1e6ef2,'ELEMENT_TABLE',_0x44efe8)),this['_setupColumnsRowsFixing'](),_0x7421a1['enableCommand']('insertTable'),_0x7421a1['enableCommand']('selectTableRow'),_0x7421a1['enableCommand']('selectTableColumn');for(const _0x54ca80 of['insertTableRowAbove','insertTableRowBelow']){const _0x1a0db7=_0x451c67['commands']['get'](_0x54ca80);_0x7421a1['enableCommand'](_0x54ca80,_0x1527d4=>{_0x451c67['model']['change'](_0x340960=>{_0x1527d4();const _0xb7aae7='above'===_0x1a0db7['order'],_0x58d17d=_0x23db14['getSelectionAffectedTableCells'](_0x8627f),_0x17142f=_0x23db14['getRowIndexes'](_0x58d17d),_0x4cef31=_0xb7aae7?_0x17142f['first']-0x1:_0x17142f['last']+0x1,_0x370d52=_0x58d17d[0x0]['findAncestor']('table'),_0x576a6d=_0x23db14['createTableWalker'](_0x370d52,{'startRow':_0x4cef31,'endRow':_0x4cef31}),_0x19ebeb=Array['from'](_0x576a6d)['map'](_0x160fbc=>_0x340960['createRangeOn'](_0x160fbc['cell']));_0x7421a1['markMultiRangeInsertion'](_0x19ebeb,'tableRow');});});}for(const _0x11b7a8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x124867=_0x451c67['commands']['get'](_0x11b7a8);_0x7421a1['enableCommand'](_0x11b7a8,_0x331a98=>{_0x451c67['model']['change'](_0x453bd6=>{_0x331a98();const _0x2c2aed='left'===_0x124867['order'],_0x1b130b=_0x23db14['getSelectionAffectedTableCells'](_0x8627f),_0xe5bfe2=_0x23db14['getColumnIndexes'](_0x1b130b),_0x2e2e98=_0x2c2aed?_0xe5bfe2['first']-0x1:_0xe5bfe2['last']+0x1,_0x4edbf0=_0x1b130b[0x0]['findAncestor']('table'),_0x18bc61=_0x23db14['createTableWalker'](_0x4edbf0,{'startRow':0x0,'column':_0x2e2e98,'includeAllSlots':!0x1}),_0x5cf5d6=Array['from'](_0x18bc61)['map'](_0x5d9a3b=>_0x453bd6['createRangeOn'](_0x5d9a3b['cell']));_0x7421a1['markMultiRangeInsertion'](_0x5cf5d6,'tableColumn');});});}for(const _0x58cf19 of['removeTableRow','removeTableColumn']){const _0x497572=_0x58cf19['substr'](0xb),_0xe60f63=_0x497572['toLowerCase'](),_0xb98c2c=_0xe60f63['substr'](0x0,0x3)+'span',_0x12143e='table'+_0x497572,_0x2cd0df='min'+_0x497572,_0x55e2a5='max'+_0x497572;_0x7421a1['enableCommand'](_0x58cf19,()=>{_0x451c67['model']['change'](_0x24574b=>{const _0x5de8cb=_0x23db14['getSelectionAffectedTableCells'](_0x8627f),_0xd1e093=_0x5de8cb[0x0]['findAncestor']('table');let _0x4c9124;if('removeTableRow'==_0x58cf19){const _0x2d7489=_0x23db14['getRowIndexes'](_0x5de8cb);_0x4c9124={'startRow':_0x2d7489['first'],'endRow':_0x2d7489['last'],'includeAllSlots':!0x0};}else{const _0xcea990=_0x23db14['getColumnIndexes'](_0x5de8cb);_0x4c9124={'startColumn':_0xcea990['first'],'endColumn':_0xcea990['last'],'includeAllSlots':!0x0};}const _0xa8091e=_0x23db14['createTableWalker'](_0xd1e093,_0x4c9124),_0x561cb7=Array['from'](_0xa8091e)['map'](({cell:_0x178fab})=>_0x178fab),_0xffd878=be(_0x561cb7['filter'](_0x25c887=>_0x25c887['hasAttribute'](_0xb98c2c))),_0x3c741e=be(_0x561cb7['filter'](_0x331d84=>!_0x331d84['hasAttribute'](_0xb98c2c)))['map'](_0x4232bc=>_0x24574b['createRangeOn'](_0x4232bc)),_0x1a5ec4=_0x7421a1['markMultiRangeDeletion'](_0x3c741e,_0x12143e);if(_0x1a5ec4&&('tableRow'==_0x1a5ec4['subType']||'tableColumn'==_0x1a5ec4['subType'])){const _0x4c4343=this['_getSuggestionCoords'](_0x1a5ec4);for(const _0x2a17b2 of _0xffd878){const _0x2dffc9=_0x24574b['createRangeOn'](_0x2a17b2),_0x5ca5ef=_0x23db14['getCellLocation'](_0x2a17b2),_0x4ef0bf=_0x2a17b2['getAttribute'](_0xb98c2c)-0x1,_0x26447c=_0x4c4343[_0x2cd0df],_0x35f38f=_0x4c4343[_0x55e2a5];_0x26447c<=_0x5ca5ef[_0xe60f63]&&_0x5ca5ef[_0xe60f63]+_0x4ef0bf<=_0x35f38f&&_0x1a5ec4['addRange'](_0x2dffc9);}}});});}function _0x17994c(_0x29449d){const _0x3069c3=Array['from'](_0x8627f['getRanges']())['map'](_0x315416=>_0x1eeee4['fromRange'](_0x315416));_0x451c67['model']['change'](_0x30a853=>{const _0x47d62e=_0x30a853['batch'];_0x29449d=_0x29449d['filter'](_0x57707b=>'$graveyard'!=_0x57707b['root']['rootName']),_0x30a853['setSelection'](_0x29449d),_0x451c67['commands']['get']('removeTableRow')['refresh'](),_0x451c67['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x451c67['model']['enqueueChange'](()=>{_0x451c67['model']['enqueueChange'](_0x47d62e,_0x19cb15=>{const _0x1d1b98=_0x3069c3['filter'](_0x228ffb=>'$graveyard'!=_0x228ffb['root']['rootName']);_0x1d1b98['length']>0x0&&_0x19cb15['setSelection'](_0x1d1b98);for(const _0x17f1ba of _0x3069c3)_0x17f1ba['detach']();});});});}function _0x3d60a5(_0x220885){_0x451c67['model']['change'](_0x155ef2=>{const _0x2c693c=Array['from'](_0x8627f['getRanges']())['map'](_0x45c992=>_0x1eeee4['fromRange'](_0x45c992)),_0x61e152=[];for(const _0x1a4bf3 of _0x220885)for(const _0x2c5a39 of _0x1a4bf3['getItems']({'shallow':!0x0}))_0x61e152['push'](_0x2c5a39);for(const _0x3fbd1c of _0x61e152)'$graveyard'!=_0x3fbd1c['root']['rootName']&&(_0x155ef2['setSelection'](_0x155ef2['createPositionAt'](_0x3fbd1c,0x0)),_0x451c67['commands']['get']('removeTableColumn')['refresh'](),_0x451c67['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x42bd75=_0x2c693c['filter'](_0x4b34cc=>'$graveyard'!=_0x4b34cc['root']['rootName']);_0x42bd75['length']>0x0&&_0x155ef2['setSelection'](_0x42bd75);for(const _0x1719e7 of _0x2c693c)_0x1719e7['detach']();});}function _0x37fc7a(_0x4d3335,_0x4cd307){return _0x4cd307['every'](_0x5ba02a=>_0x4d3335['some'](_0x14238d=>_0x14238d['end']['isEqual'](_0x5ba02a['start'])||_0x5ba02a['end']['isEqual'](_0x14238d['start'])));}function _0x5f5676(_0xf77252,_0x4ae753){return!_0xf77252['some'](_0x4ae92f=>_0x4ae753['some'](_0x4d9970=>_0x4ae92f['isIntersecting'](_0x4d9970)))&&_0xf77252['some'](_0x59d969=>_0x4ae753['some'](_0x41f6e1=>_0x59d969['end']['isTouching'](_0x41f6e1['start'])));}_0x451c67['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x172338,_0x233ee9,_0x52f475)=>{if(!_0x52f475['options']['showSuggestionHighlights'])return;const _0x2ea4a6=_0x233ee9['item'];if(!_0x2ea4a6)return;const _0x2178c9=_0x52f475['mapper']['toViewElement'](_0x2ea4a6);function _0x3d619c(_0x2544fa){return Array['isArray'](_0x2544fa)?_0x2544fa:[_0x2544fa];}_0x2178c9&&'tableCell'===_0x2ea4a6['name']&&_0x2d4906(_0x2178c9,_0x52f475['writer'],(_0x48c946,_0x197dbd,_0x1c0878)=>_0x1c0878['addClass'](_0x3d619c(_0x197dbd['classes']),_0x48c946),(_0x114fd4,_0x545103,_0x1a6f9c)=>_0x1a6f9c['removeClass'](_0x3d619c(_0x545103['classes']),_0x114fd4));},{'priority':'highest'}),_0x7421a1['descriptionFactory']['registerDescriptionCallback'](_0x552ec2=>{if('insertion'!=_0x552ec2['type']&&'deletion'!=_0x552ec2['type'])return;const _0x567cbe=_0x552ec2['getContainedElement']();if(null!=_0x567cbe&&_0x567cbe['is']('element','table')){if('insertion'==_0x552ec2['type']){const _0x1e31b0=_0x552ec2['getItems']()['filter'](_0x390bfa=>_0x390bfa['is']('$textProxy'))['map'](_0x1e3c03=>_0x1e3c03['data']);if(_0x1e31b0['length'])return{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1e31b0['join']('\x20')+'\x22'))};}if('deletion'==_0x552ec2['type']){const _0x185afc=_0x552ec2['getItems']()['filter'](_0x101a10=>_0x101a10['is']('$textProxy'))['map'](_0x520d9c=>_0x520d9c['data']);if(_0x185afc['length'])return{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x185afc['join']('\x20')+'\x22'))};}}}),_0x7421a1['descriptionFactory']['registerDescriptionCallback'](_0x5103ee=>{if('tableRow'==_0x5103ee['subType']){const _0x43be9d=_0x5103ee['getItems']()['filter'](_0x52d203=>_0x52d203['is']('$textProxy'))['map'](_0x446282=>_0x446282['data']),_0x972492=this['_getSuggestionCoords'](_0x5103ee),_0x471c07=_0x972492['maxRow']-_0x972492['minRow']+0x1;if('insertion'==_0x5103ee['type'])return _0x43be9d['length']?{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x471c07,'\x22'+_0x43be9d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW',_0x471c07))};if('deletion'==_0x5103ee['type'])return _0x43be9d['length']?{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x471c07,'\x22'+_0x43be9d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW',_0x471c07))};}if('tableColumn'==_0x5103ee['subType']){const _0x6fff98=_0x5103ee['getItems']()['filter'](_0x493122=>_0x493122['is']('$textProxy'))['map'](_0x2c1be4=>_0x2c1be4['data']),_0x5c618a=this['_getSuggestionCoords'](_0x5103ee),_0x367218=_0x5c618a['maxColumn']-_0x5c618a['minColumn']+0x1;if('insertion'==_0x5103ee['type'])return _0x6fff98['length']?{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x367218,'\x22'+_0x6fff98['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN',_0x367218))};if('deletion'==_0x5103ee['type'])return _0x6fff98['length']?{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x367218,'\x22'+_0x6fff98['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN',_0x367218))};}}),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x17994c),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x17994c),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d60a5),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d60a5),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x37fc7a),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x37fc7a),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5f5676),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5f5676);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2168d7=this['editor'],_0x3ae119=_0x2168d7['model']['document']['selection'];return(_0xe995bf,_0x24aa31)=>{_0x2168d7['model']['change'](_0x56d36f=>{const {commandName:_0x5212d0,commandParams:_0x5db319}=_0x24aa31;let _0x22902a=_0xe995bf[0x0]['end']['nodeBefore'];_0x5db319&&_0x5db319[0x0]&&!0x1===_0x5db319[0x0]['forceValue']&&(_0x22902a=_0xe995bf[0x0]['start']['nodeAfter']);const _0x41ce86=_0x56d36f['createRangeIn'](_0x22902a);if('$graveyard'==_0x41ce86['root']['rootName'])return;const _0x1e58aa=Array['from'](_0x3ae119['getRanges']())['map'](_0x42d7ac=>_0x1eeee4['fromRange'](_0x42d7ac));_0x56d36f['setSelection'](_0x41ce86),_0x2168d7['commands']['get'](_0x5212d0)['refresh'](),_0x5db319['push']({'forceDefaultExecution':!0x0}),_0x2168d7['execute'](_0x5212d0,..._0x5db319);const _0x3feb96=_0x1e58aa['filter'](_0x46c5b5=>'$graveyard'!=_0x46c5b5['root']['rootName']);_0x3feb96['length']>0x0&&_0x56d36f['setSelection'](_0x3feb96);for(const _0x3c8642 of _0x1e58aa)_0x3c8642['detach']();});};}['_getCoordsForCells'](_0x1cf57f){const _0x1a09ca=this['editor']['plugins']['get']('TableUtils');let _0x495543=Number['MAX_SAFE_INTEGER'],_0x5c9c55=Number['MIN_SAFE_INTEGER'],_0x3ca27f=Number['MAX_SAFE_INTEGER'],_0x22665b=Number['MIN_SAFE_INTEGER'];for(const _0x13c8fd of _0x1cf57f){if('$graveyard'==_0x13c8fd['root']['rootName'])continue;const {row:_0x5bc172,column:_0x179e0f}=_0x1a09ca['getCellLocation'](_0x13c8fd),_0x6aabe=_0x13c8fd['hasAttribute']('rowspan')?_0x13c8fd['getAttribute']('rowspan')-0x1:0x0,_0x189062=_0x13c8fd['hasAttribute']('colspan')?_0x13c8fd['getAttribute']('colspan')-0x1:0x0;_0x495543=_0x5bc172<_0x495543?_0x5bc172:_0x495543,_0x5c9c55=_0x5bc172+_0x6aabe>_0x5c9c55?_0x5bc172+_0x6aabe:_0x5c9c55,_0x3ca27f=_0x179e0f<_0x3ca27f?_0x179e0f:_0x3ca27f,_0x22665b=_0x179e0f+_0x189062>_0x22665b?_0x179e0f+_0x189062:_0x22665b;}return{'minRow':_0x495543,'maxRow':_0x5c9c55,'minColumn':_0x3ca27f,'maxColumn':_0x22665b};}['_setupColumnsRowsFixing'](){const _0x108318=this['editor'],_0x5a2464=_0x108318['plugins']['get']('TrackChangesEditing'),_0x3a9772=_0x108318['plugins']['get']('TableUtils');_0x108318['model']['document']['on']('change:data',()=>{const _0x366b8d=Array['from'](_0x108318['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bfeeb,data:_0x3c6ca4}of _0x366b8d){const {group:_0x207604,id:_0x3b3528,subType:_0x53068e}=_0x5a2464['_splitMarkerName'](_0x2bfeeb);if('suggestion'!=_0x207604)continue;if(null!=_0x3c6ca4['oldRange'])continue;const _0x26d036=_0x5a2464['getSuggestion'](_0x3b3528);this['_tablePostFixingSubtypes']['includes'](_0x53068e)&&this['_tableSuggestions']['add'](_0x26d036);}},{'priority':'low'});const _0x2f029d=(_0x1565bd,_0x38ec46)=>{let _0x50e48c=!0x1;const _0x22d9db=_0x38ec46['createRangeOn'](_0x1565bd),_0x3f45d6=_0x1565bd['findAncestor']('table'),_0x379be=_0x3a9772['getCellLocation'](_0x1565bd);for(const _0x19dd07 of this['_tableSuggestions']){const _0x2cef55=_0x19dd07['subType'],_0x4a9e1d=_0x2cef55['startsWith']('tablePaste'),_0x22bf39=_0x2cef55['substr'](_0x4a9e1d?0xa:0x5),_0xd74921=_0x22bf39['toLowerCase'](),_0x40932d=_0xd74921['substr'](0x0,0x3)+'span',_0x5e896f='min'+_0x22bf39,_0xbd1480='max'+_0x22bf39;if(!_0x19dd07['isInContent'])continue;if(_0x3f45d6!=_0x19dd07['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x19dd07['isIntersectingWithRange'](_0x22d9db))continue;const _0x238c3f=_0x1565bd['hasAttribute'](_0x40932d)?_0x1565bd['getAttribute'](_0x40932d)-0x1:0x0,_0x2a9c4d=this['_getSuggestionCoords'](_0x19dd07),_0x3d3eb7=_0x2a9c4d[_0x5e896f],_0x3bdb6d=_0x2a9c4d[_0xbd1480];_0x3d3eb7<=_0x379be[_0xd74921]&&_0x379be[_0xd74921]+_0x238c3f<=_0x3bdb6d&&(_0x19dd07['addRange'](_0x22d9db),_0x50e48c=!0x0);}return _0x50e48c;};_0x108318['model']['document']['registerPostFixer'](_0x1d4400=>{let _0x5c5ad5=!0x1;for(const _0x26b137 of _0x108318['model']['document']['differ']['getChanges']())if('insert'==_0x26b137['type']){if('tableRow'==_0x26b137['name']){for(const _0x1974a8 of _0x26b137['position']['nodeAfter']['getChildren']())_0x5c5ad5=_0x5c5ad5||_0x2f029d(_0x1974a8,_0x1d4400);}else'tableCell'==_0x26b137['name']&&(_0x5c5ad5=_0x5c5ad5||_0x2f029d(_0x26b137['position']['nodeAfter'],_0x1d4400));}return _0x5c5ad5;});}['_getSuggestionCoords'](_0x4d2e07){return this['_getCoordsForCells'](_0x4d2e07['getRanges']()['map'](_0x3c44f0=>_0x3c44f0['start']['nodeAfter']));}}function be(_0x1327bb){return Array['from'](new Set(_0x1327bb)['values']());}class vt extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0x5bff96=this['editor'],_0x59c459=_0x5bff96['model']['document']['selection'],_0x47e8a0=_0x5bff96['locale'];if(!_0x5bff96['plugins']['has']('TableEditing'))return;const _0x282a95=_0x5bff96['plugins']['get']('TrackChangesEditing'),_0x37a265=_0x5bff96['plugins']['get']('TableUtils'),_0x4e4697=_0x5bff96['plugins']['get'](It);_0x4e4697['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x282a95['enableCommand']('mergeTableCells',()=>{const _0xe335af=_0x37a265['getSelectionAffectedTableCells'](_0x5bff96['model']['document']['selection']);_0x5bff96['model']['change'](()=>{_0x282a95['markMultiRangeBlockFormat'](_0xe335af,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5bff96['commands']['get']('mergeTableCells')['on']('execute',(_0x2f1d2c,_0xe5b16b)=>{_0x5bff96['commands']['get']('trackChanges')['value']&&(_0xe5b16b['length']>0x0&&_0xe5b16b[_0xe5b16b['length']-0x1]&&_0xe5b16b[_0xe5b16b['length']-0x1]['forceDefaultExecution']||_0x282a95['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2f1d2c['stop']());},{'priority':'highest'});for(const _0x139518 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4bb0a3=_0x5bff96['commands']['get'](_0x139518);_0x282a95['enableCommand'](_0x139518,()=>{const _0x3da3c7=_0x5bff96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x8ed2d=>_0x8ed2d['is']('element','tableCell')),_0x5707b0=_0x4bb0a3['value'];_0x5bff96['model']['change'](()=>{_0x282a95['markMultiRangeBlockFormat']([_0x3da3c7,_0x5707b0],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4d34a8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x254ed2=_0x5bff96['commands']['get'](_0x4d34a8);_0x282a95['enableCommand'](_0x4d34a8,()=>{const _0x36de33=_0x37a265['getSelectionAffectedTableCells'](_0x5bff96['model']['document']['selection'])[0x0],_0xc77cf7=_0x36de33['findAncestor']('table'),{column:_0x496cef,row:_0x2d2470}=_0x37a265['getCellLocation'](_0x36de33);let _0x2b4042=[];if('horizontally'==_0x254ed2['direction']){const _0x464620=_0x37a265['createTableWalker'](_0xc77cf7,{'startRow':_0x2d2470,'endRow':_0x2d2470,'includeAllSlots':!0x0});_0x2b4042=Array['from'](_0x464620)['map'](_0x7e5028=>_0x7e5028['cell']);}else{const _0x31e5ab=_0x37a265['createTableWalker'](_0xc77cf7,{'column':_0x496cef,'includeAllSlots':!0x0});_0x2b4042=Array['from'](_0x31e5ab)['map'](_0x3a28a6=>_0x3a28a6['cell']);}_0x5bff96['model']['change'](_0x71d847=>{_0x282a95['markBlockFormat'](_0x71d847['createRangeOn'](_0x36de33),{'commandName':_0x4d34a8,'commandParams':[]},_0x2b4042,_0x4d34a8);});});}_0x282a95['descriptionFactory']['registerDescriptionCallback'](_0x5ea3eb=>{if('formatBlock'!=_0x5ea3eb['type']&&'formatInline'!=_0x5ea3eb['type'])return;const {data:_0x454d2f}=_0x5ea3eb;return _0x454d2f&&'mergeTableCells'==_0x454d2f['commandName']?{'type':'format','content':o(_0x47e8a0,'*Merge\x20cells*')}:void 0x0;}),_0x282a95['descriptionFactory']['registerDescriptionCallback'](_0x301db7=>{if('formatBlock'!=_0x301db7['type']&&'formatInline'!=_0x301db7['type'])return;const {data:_0x14d925}=_0x301db7;return _0x14d925?'splitTableCellVertically'==_0x14d925['commandName']?{'type':'format','content':o(_0x47e8a0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x14d925['commandName']?{'type':'format','content':o(_0x47e8a0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3ca692=_0x4e4697['_acceptFormatSuggestionCallbackFactory']();for(const _0x3adfe7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x282a95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3adfe7,'accept',_0x3ca692);for(const _0x21cdf7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x282a95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21cdf7,'accept',_0x3ca692);_0x282a95['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x21f20d=>{_0x5bff96['model']['change'](_0x4db9d7=>{const _0x5422e2=Array['from'](_0x59c459['getRanges']())['map'](_0x5476f9=>_0x1eeee4['fromRange'](_0x5476f9));_0x4db9d7['setSelection'](_0x21f20d),_0x5bff96['commands']['get']('mergeTableCells')['refresh'](),_0x5bff96['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4e92f6=_0x5422e2['filter'](_0x2b1be6=>'$graveyard'!=_0x2b1be6['root']['rootName']);_0x4e92f6['length']>0x0&&_0x4db9d7['setSelection'](_0x4e92f6);for(const _0x192327 of _0x5422e2)_0x192327['detach']();});});for(const _0x477915 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4ce58a=_0x5bff96['commands']['get'](_0x477915);_0x4ce58a['on']('set:isEnabled',(_0x3be318,_0x2dbb6e,_0x53cb74)=>{if(_0x53cb74){const _0x413948=_0x5bff96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x387025=>_0x387025['is']('element','tableCell'));this['_areMergableCells'](_0x4ce58a['value'],_0x413948)||(_0x3be318['return']=!0x1,_0x3be318['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x505a93=this['editor']['commands']['get']('mergeTableCells'),_0xa26e8=this['editor']['plugins']['get']('TableUtils');if(!_0x505a93['isEnabled'])return!0x1;const _0x4ce69c=_0xa26e8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x696d9 of _0x4ce69c)for(const _0x141712 of _0x4ce69c)if(_0x696d9!=_0x141712&&!this['_areMergableCells'](_0x696d9,_0x141712))return!0x1;return!0x0;}['_areMergableCells'](_0x1da1ee,_0x1785d7){const _0x36beb4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ea713=this['editor']['model']['createRangeOn'](_0x1da1ee),_0x5b3a76=this['editor']['model']['createRangeOn'](_0x1785d7),_0x585c43=new Set(),_0x311656=new Set();for(const _0x2af95c of _0x36beb4['getSuggestions']())if(('insertion'==_0x2af95c['type']||'deletion'==_0x2af95c['type']||'mergeTableCells'==_0x2af95c['subType'])&&_0x2af95c['isInContent']){for(const _0x2612ee of _0x2af95c['getRanges']())_0x2612ee['containsRange'](_0x4ea713,!0x0)&&_0x585c43['add'](_0x2af95c['type']+':'+_0x2af95c['author']['id']),_0x2612ee['containsRange'](_0x5b3a76,!0x0)&&_0x311656['add'](_0x2af95c['type']+':'+_0x2af95c['author']['id']);}if(_0x585c43['size']!=_0x311656['size'])return!0x1;for(const _0x43fc7a of _0x585c43)if(!_0x311656['has'](_0x43fc7a))return!0x1;return!0x0;}}class Ct extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0x416fac=this['editor'];if(!_0x416fac['plugins']['has']('TableEditing'))return;const _0x372d6d=_0x416fac['locale'],_0x80e7b7=_0x416fac['plugins']['get']('TrackChangesEditing');_0x80e7b7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x80e7b7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x80e7b7['registerBlockAttribute']('headingRows'),_0x80e7b7['registerBlockAttribute']('headingColumns'),_0x80e7b7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x372d6d,'FORMAT_HEADER_ROW')),_0x80e7b7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x372d6d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x35b2dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e6cd2=this['editor']['plugins']['get']('TableUtils'),_0x15d239=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x459af1({showActiveMarker:_0x499279=!0x0,setDataAttribute:_0x52c55c=!0x0}={}){return(_0x55283,_0x31433c,_0x3119d2)=>{const {type:_0x5bd329,id:_0x529a3c}=_0x35b2dc['_splitMarkerName'](_0x31433c['markerName']),_0x40688f=_0x35b2dc['getSuggestion'](_0x529a3c),_0x5f3b05=_0x40688f['data'];if('formatBlock'!=_0x40688f['type']||!_0x5f3b05||'setTableColumnHeader'!=_0x5f3b05['commandName'])return;if(_0x31433c['item'])return void _0x55283['stop']();if(!_0x3119d2['consumable']['consume'](_0x31433c['markerRange'],_0x55283['name']))return;const _0x3b4dae=_0x31433c['markerRange']['start']['nodeAfter'],_0x4c853c=_0x31433c['markerRange']['end']['nodeBefore'],_0x1e300f=_0x3b4dae['parent']['parent'],{column:_0x50eed7}=_0x3e6cd2['getCellLocation'](_0x3b4dae),{column:_0x15b55c}=_0x3e6cd2['getCellLocation'](_0x4c853c);for(let _0xa6552c=_0x50eed7;_0xa6552c<=_0x15b55c;_0xa6552c++){const _0x2c6eb5=_0x3e6cd2['createTableWalker'](_0x1e300f,{'column':_0xa6552c,'includeAllSlots':!0x1});for(const _0x3daec9 of _0x2c6eb5){const _0x5517e3=_0x3daec9['cell'],_0x652a5b=_0x3119d2['mapper']['toViewElement'](_0x5517e3);_0x3119d2['writer']['addClass']('ck-suggestion-marker-'+_0x5bd329,_0x652a5b),_0x52c55c&&_0x3119d2['writer']['setAttribute']('data-suggestion',_0x529a3c,_0x652a5b),_0x3119d2['mapper']['bindElementToMarker'](_0x652a5b,_0x31433c['markerName']),_0x499279&&(_0x35b2dc['activeMarkers']['includes'](_0x31433c['markerName'])?_0x3119d2['writer']['addClass']('ck-suggestion-marker--active',_0x652a5b):_0x3119d2['writer']['removeClass']('ck-suggestion-marker--active',_0x652a5b));}}};}_0x35b2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x15d239),_0x35b2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x15d239),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x459af1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x58a094,_0x20a761,_0x3277b8)=>{_0x3277b8['options']['showSuggestionHighlights']&&_0x459af1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x58a094,_0x20a761,_0x3277b8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3776b3,_0x3965e5,_0xc1b946)=>{const {type:_0x4fa1df,id:_0x5b1c0a}=_0x35b2dc['_splitMarkerName'](_0x3965e5['markerName']),_0x588b27=_0x35b2dc['getSuggestion'](_0x5b1c0a),_0x595ebc=_0x588b27['data'];if('formatBlock'!=_0x588b27['type']||!_0x595ebc||'setTableColumnHeader'!=_0x595ebc['commandName'])return;const _0x33e688=_0xc1b946['mapper']['markerNameToElements'](_0x3965e5['markerName']);if(_0x33e688){for(const _0x3321bd of _0x33e688)_0xc1b946['writer']['removeClass']('ck-suggestion-marker-'+_0x4fa1df,_0x3321bd),_0xc1b946['writer']['removeClass']('ck-suggestion-marker--active',_0x3321bd),_0xc1b946['writer']['removeAttribute']('data-suggestion',_0x3321bd),_0xc1b946['mapper']['unbindElementFromMarkerName'](_0x3321bd,_0x3965e5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x289a67=this['editor'],_0x10e088=_0x289a67['locale'];function _0x29ab9b(_0x4a92aa){return{'type':'format','content':o(_0x10e088,'*Format:*\x20%0',_0x4a92aa)};}_0x289a67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a103d=>{if('formatBlock'!=_0x4a103d['type'])return;const {data:_0x32d719}=_0x4a103d;if(_0x32d719){if('setTableRowHeader'==_0x32d719['commandName']){const _0x3470fe=_0x32d719['commandParams'][0x0]['forceValue'];return _0x29ab9b(o(_0x10e088,_0x3470fe?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x32d719['commandName']){const _0x293756=_0x32d719['commandParams'][0x0]['forceValue'];return _0x29ab9b(o(_0x10e088,_0x293756?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x42e5d5=>[_0x42e5d5,null]));class _t extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0xecd6ca=this['editor'];if(!_0xecd6ca['plugins']['has']('TableClipboard'))return;const _0x4eae74=_0xecd6ca['plugins']['get']('TrackChangesEditing'),_0x10e791=_0xecd6ca['plugins']['get']('TableUtils'),_0x80031a=_0xecd6ca['plugins']['get'](It),_0x2c51a5=_0xecd6ca['plugins']['get']('TableClipboard');_0x80031a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xecd6ca['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xecd6ca['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xd11a0=null;_0xecd6ca['model']['on']('insertContent',(_0x35f1f0,_0x5e2b30)=>{const [_0x42a0fb,_0x2f7f88]=_0x5e2b30,_0x53f3d9=_0x5e2b30[_0x5e2b30['length']-0x1];_0x53f3d9&&_0x53f3d9['forceDefaultExecution']||_0x4eae74['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x14ef17,_0x5e6168,_0x446239,_0x327947,_0x2da079){if(_0x5e6168&&!_0x5e6168['is']('documentSelection'))return!0x1;const _0x332da7=_0x2da079['getTableIfOnlyTableInContent'](_0x14ef17,_0x446239);if(!_0x332da7||!Re(_0x332da7,void 0x0,_0x327947))return!0x1;const _0x376f5d=_0x327947['getSelectionAffectedTableCells'](_0x446239['document']['selection']);if(!_0x376f5d['length'])return!0x1;const _0x5c3ef3=_0x376f5d[0x0]['findAncestor']('table'),_0x550f3d=_0x327947['getRowIndexes'](_0x376f5d),_0x55a16c=_0x327947['getColumnIndexes'](_0x376f5d),_0x3d3e54={'startRow':_0x550f3d['first'],'endRow':_0x550f3d['last'],'startColumn':_0x55a16c['first'],'endColumn':_0x55a16c['last']};return 0x1==_0x376f5d['length']&&(_0x3d3e54['endRow']+=_0x327947['getRows'](_0x332da7)-0x1,_0x3d3e54['endColumn']+=_0x327947['getColumns'](_0x332da7)-0x1),Re(_0x5c3ef3,_0x3d3e54,_0x327947);}(_0x42a0fb,_0x2f7f88,_0xecd6ca['model'],_0x10e791,_0x2c51a5)&&(_0x35f1f0['stop'](),_0xd11a0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xecd6ca['model']['change'](()=>{_0xecd6ca['model']['insertContent'](_0x5e2b30[0x0],_0x5e2b30[0x1],_0x5e2b30[0x2],{'forceDefaultExecution':!0x0});const _0x2c3dd1=_0x31d1bc(),{rowInsertionRanges:_0x5ebd02,columnInsertionRanges:_0x712b8a,insertionRanges:_0x3bb202,deletionRanges:_0x53e62b,cells:_0x1e07ee}=_0xd11a0;_0x5ebd02['length']&&_0x4eae74['markMultiRangeInsertion'](_0x5ebd02,'tablePasteRow',{'tablePasteChainId':_0x2c3dd1}),_0x712b8a['length']&&_0x4eae74['markMultiRangeInsertion'](_0x712b8a,'tablePasteColumn',{'tablePasteChainId':_0x2c3dd1}),_0x3bb202['length']&&(_0x4eae74['markMultiRangeInsertion'](_0x3bb202,'tablePaste',{'tablePasteChainId':_0x2c3dd1,'skipNestingCheck':!0x0}),_0x3bb202['forEach'](_0x216335=>_0x216335['detach']?.())),_0x53e62b['length']&&(_0x4eae74['markMultiRangeDeletion'](_0x53e62b,'tablePaste',{'tablePasteChainId':_0x2c3dd1,'skipNestingCheck':!0x0}),_0x53e62b['forEach'](_0x3057d1=>_0x3057d1['detach']?.()));const _0xa25d66=_0x4eae74['markMultiRangeBlockFormat'](_0x1e07ee['map'](({element:_0x314f30})=>_0x314f30),{'formatGroupId':_0x31d1bc()},[],'tablePasteCell',{'tablePasteChainId':_0x2c3dd1});if(_0xa25d66){const _0x48d8e7=_0xa25d66['getMarkers'](),_0x196f0d=[];for(const {element:_0x5189cb,attributes:_0x2a25c1}of _0x1e07ee){if(!_0x2a25c1)continue;const _0x4096e6=_0xecd6ca['model']['createRangeOn'](_0x5189cb),_0x3c1f09=_0x48d8e7['find'](_0x4193a3=>_0x4193a3['getRange']()['isEqual'](_0x4096e6));_0x3c1f09&&_0x196f0d['push']([_0x3c1f09['name'],_0x2a25c1]);}_0x196f0d['length']&&_0xa25d66['setAttribute']('markerAttributes',Object['fromEntries'](_0x196f0d));}_0xd11a0=null;}));},{'priority':_0x3a7800['high']+0xa}),_0xecd6ca['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4c5097,_0x53879b)=>{const [_0x2f8bf5,_0xd39981,,_0x4cfc1f]=_0x53879b;if(!_0xd11a0)return;_0x4c5097['stop']();const _0x4c2833=_0x2f8bf5['cell'],_0x2c61f7=_0xd39981,_0x3a9e20=ke(_0x4c2833),_0x645d78=ke(_0x2c61f7);_0x4c5097['return']=_0x4c2833;let _0x2f0397=null,_0x337fae=null;if(_0x645d78||_0x3a9e20){if(_0x3a9e20&&!_0x645d78){_0x4cfc1f['remove'](_0x4c2833['getChild'](0x0));for(const _0x33669c of Array['from'](_0x2c61f7['getChildren']()))_0x4cfc1f['insert'](_0x33669c,_0x4c2833,'end');const _0x293fcd=_0xd11a0['rowInsertionIndexes']['includes'](_0x2f8bf5['row']),_0xb47819=_0xd11a0['columnInsertionIndexes']['includes'](_0x2f8bf5['column']);_0x293fcd||_0xb47819||(_0x2f0397=_0x1eeee4['fromRange'](_0x4cfc1f['createRangeIn'](_0x4c2833)));}else _0x645d78&&!_0x3a9e20&&(_0x337fae=_0x4cfc1f['createRangeIn'](_0x4c2833));}else{const _0x4dc9c2=_0x4cfc1f['createElement']('tableCellSuggestion'),_0x111c93=_0x4cfc1f['createElement']('tableCellSuggestion');_0x4cfc1f['wrap'](_0x4cfc1f['createRangeIn'](_0x4c2833),_0x111c93),_0x4cfc1f['insert'](_0x4dc9c2,_0x4c2833,0x0);for(const _0x1d2fef of Array['from'](_0x2c61f7['getChildren']()))_0x4cfc1f['insert'](_0x1d2fef,_0x4dc9c2,'end');_0x2f0397=_0x1eeee4['fromRange'](_0x4cfc1f['createRangeOn'](_0x4dc9c2)),_0x337fae=_0x1eeee4['fromRange'](_0x4cfc1f['createRangeOn'](_0x111c93));}const _0x508397=Array['from'](_0x2c61f7['getAttributes']())['filter'](([_0x5d4589])=>Pe['includes'](_0x5d4589));_0xd11a0['cells']['push']({'element':_0x4c2833,'attributes':_0x508397['length']?Object['fromEntries'](_0x508397):null}),_0x2f0397&&_0xd11a0['insertionRanges']['push'](_0x2f0397),_0x337fae&&_0xd11a0['deletionRanges']['push'](_0x337fae);},{'priority':'high'}),_0x10e791['on']('insertColumns',(_0x4a3827,_0x331e48)=>{const [_0x42e7b9,_0x53acb2={}]=_0x331e48;if(!_0xd11a0)return;const _0xbe1b49=_0x53acb2['at']||0x0,_0x2e33b5=_0x53acb2['columns']||0x1;_0xd11a0['columnInsertionIndexes']=new Array(_0x2e33b5)['fill'](_0xbe1b49)['map']((_0x26d9a8,_0x50e943)=>_0x26d9a8+_0x50e943);for(const {cell:_0x1dca57}of _0x10e791['createTableWalker'](_0x42e7b9,{'startColumn':_0xbe1b49,'endColumn':_0xbe1b49+_0x2e33b5-0x1}))_0xd11a0['columnInsertionRanges']['push'](_0xecd6ca['model']['createRangeOn'](_0x1dca57));},{'priority':'low'}),_0x10e791['on']('insertRows',(_0xfe6e2d,_0x3ac944)=>{const [_0x5040c9,_0x1f99a9={}]=_0x3ac944;if(!_0xd11a0)return;const _0x14ff6d=_0x1f99a9['at']||0x0,_0x246d09=_0x1f99a9['rows']||0x1;_0xd11a0['rowInsertionIndexes']=new Array(_0x246d09)['fill'](_0x14ff6d)['map']((_0x9f8d0,_0xc1bceb)=>_0x9f8d0+_0xc1bceb);for(const {cell:_0x153be7}of _0x10e791['createTableWalker'](_0x5040c9,{'startRow':_0x14ff6d,'endRow':_0x14ff6d+_0x246d09-0x1}))_0xd11a0['rowInsertionRanges']['push'](_0xecd6ca['model']['createRangeOn'](_0x153be7));},{'priority':'low'}),_0x4eae74['descriptionFactory']['registerDescriptionCallback'](_0x45a792=>{if(_0x45a792['subType']&&_0x45a792['subType']['startsWith']('tablePaste'))return _0x45a792['previous']?{}:{'type':'insertion','content':o(_0xecd6ca['locale'],'*Replace\x20table\x20cells*')};});const _0x6c4c9=()=>!0x1;for(const _0x263e14 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4eae74['_suggestionFactory']['registerCustomCallback']('insertion',_0x263e14,'join',_0x6c4c9),_0x4eae74['_suggestionFactory']['registerCustomCallback']('deletion',_0x263e14,'join',_0x6c4c9),_0x4eae74['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x263e14,'join',_0x6c4c9);_0x4eae74['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x6c4c9),_0x4eae74['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4b5c5a,_0x4cf7bd,_0x4a07fc)=>{const _0x2f7e6f=_0x4b5c5a['map'](_0x5d5085=>_0x5d5085['getContainedElement']())['filter'](_0x37a577=>_0x37a577),_0x354c92=new Map(_0x2f7e6f['map'](_0x4648ab=>[_0x4648ab,null]));if(_0xd11a0){for(const {element:_0x2965b2,attributes:_0x4f19c1}of _0xd11a0['cells'])_0x4f19c1&&_0x354c92['set'](_0x2965b2,_0x4f19c1);}else{if(_0x4a07fc&&_0x4a07fc['markerAttributes'])for(const [_0xa8c85f,_0x480d6e]of Object['entries'](_0x4a07fc['markerAttributes'])){const _0x5985ac=_0xecd6ca['model']['markers']['get'](_0xa8c85f),_0x5d61ef=_0x5985ac?_0x5985ac['getRange']()['getContainedElement']():null;_0x5d61ef&&_0x354c92['set'](_0x5d61ef,_0x480d6e);}}_0xecd6ca['model']['change'](_0x395aab=>{for(const [_0x2690fd,_0x3e6f43]of _0x354c92)_0x395aab['setAttributes']({...we,..._0x3e6f43},_0x2690fd);});});const _0x46ef7a=(_0x2f56c7,_0x233c88)=>{_0x4eae74['_suggestionFactory']['registerCustomCallback'](_0x2f56c7,'tablePaste',_0x233c88,(_0x2a3520,_0x955132,_0x6f471c)=>{_0xecd6ca['model']['change'](_0x18ee49=>{const _0x21e2ef=[];for(const _0x392bf3 of _0x2a3520){const _0x53004b=_0x392bf3['start']['nodeAfter'];_0x53004b['is']('element','tableCellSuggestion')&&_0x21e2ef['push'](_0x53004b);}_0x4eae74['_suggestionFactory']['getSuggestionCallback'](_0x2f56c7,null,_0x233c88)(_0x2a3520,_0x955132,_0x6f471c);for(const _0x1b3c1f of _0x21e2ef)'$graveyard'!=_0x1b3c1f['root']['rootName']&&_0x18ee49['unwrap'](_0x1b3c1f);});});};_0x46ef7a('insertion','accept'),_0x46ef7a('insertion','discard'),_0x46ef7a('deletion','accept'),_0x46ef7a('deletion','discard'),_0x4eae74['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x37cba4=>{const _0x57af80=_0x37cba4['map'](_0x252c21=>_0x252c21['getContainedElement']()),_0x1ee771=_0x57af80[0x0]['findAncestor']('table'),{minRow:_0x430276,maxRow:_0x232208}=_0x80031a['_getCoordsForCells'](_0x57af80);_0x10e791['removeRows'](_0x1ee771,{'at':_0x430276,'rows':_0x232208-_0x430276+0x1});}),_0x4eae74['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x8aa277=>{const _0x5f5a73=_0x8aa277['map'](_0x5f2196=>_0x5f2196['getContainedElement']()),_0xd8ee99=_0x5f5a73[0x0]['findAncestor']('table'),{minColumn:_0x55f948,maxColumn:_0x19bbf1}=_0x80031a['_getCoordsForCells'](_0x5f5a73);_0x10e791['removeColumns'](_0xd8ee99,{'at':_0x55f948,'columns':_0x19bbf1-_0x55f948+0x1});});const _0x2ecd7d=(_0x9db23b,_0x39e5c6)=>{if(!_0x39e5c6['subType']||!_0x39e5c6['subType']['startsWith']('tablePaste'))return;const _0x339464=_0x39e5c6['attributes']['tablePasteChainId'],_0x29a3f9=_0x4eae74['getSuggestions']()['filter'](_0x24eee3=>_0x24eee3['isInContent']&&_0x24eee3['attributes']&&_0x24eee3['attributes']['tablePasteChainId']==_0x339464);_0x29a3f9['length']&&_0x39e5c6['getAllAdjacentSuggestions']()['length']!=_0x29a3f9['length']&&_0x29a3f9['reduce']((_0x3d959f,_0x2399d0)=>(_0x3d959f['next']=_0x2399d0,_0x2399d0['previous']=_0x3d959f,_0x2399d0));};function _0x3c8d0f(_0x5b7064,_0x39ff60=!0x0){const {id:_0x5e20ea,authorId:_0x22335d}=_0x4eae74['_splitMarkerName'](_0x5b7064['markerName']),_0x1dc15f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xe0e9c2=_0x4eae74['activeMarkers']['includes'](_0x5b7064['markerName']);return _0xe0e9c2&&_0x1dc15f['push']('ck-suggestion-marker--active'),{'classes':_0x1dc15f,'attributes':{'data-suggestion':_0x5e20ea,'data-author-id':_0x22335d},'priority':_0xe0e9c2&&_0x39ff60?0xbc2:0xbb8};}_0x4eae74['on']('suggestionLoaded',_0x2ecd7d,{'priority':'high'}),_0x4eae74['on']('suggestionUnloaded',_0x2ecd7d,{'priority':'high'}),_0xecd6ca['model']['document']['registerPostFixer'](()=>{let _0x3e3a5e=!0x1;const _0x154965=Array['from'](_0xecd6ca['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a5670,data:_0x155d06}of _0x154965){const {group:_0x4c9e5e,type:_0x2138c4,id:_0x36b6d6}=_0x4eae74['_splitMarkerName'](_0x1a5670);if('suggestion'!=_0x4c9e5e||'deletion'!=_0x2138c4||_0x155d06['oldRange'])continue;if(!_0x4eae74['hasSuggestion'](_0x36b6d6))continue;const _0x351685=_0x4eae74['getSuggestion'](_0x36b6d6)['getRanges'](),_0x4b7d94=_0xecd6ca['plugins']['get']('Users')['me'];for(const _0x26eecd of _0x4eae74['getSuggestions']()){if(!_0x26eecd['isInContent']||_0x26eecd['author']!=_0x4b7d94)continue;if('formatBlock'!=_0x26eecd['type']||'tablePasteCell'!=_0x26eecd['subType'])continue;if(_0x26eecd['getRanges']()['every'](_0x2492b1=>_0x351685['some'](_0x361267=>_0x361267['containsRange'](_0x2492b1,!0x0)))){for(const _0x37da4f of _0x26eecd['getAllAdjacentSuggestions']())_0x37da4f['isInContent']&&(_0x37da4f['discard'](),_0x3e3a5e=!0x0);}}}return _0x3e3a5e;}),_0xecd6ca['model']['document']['registerPostFixer'](_0x51ff3e=>{const _0x1d597f=_0xecd6ca['commands']['get']('redo');if(!_0x1d597f||!_0x1d597f['_createdBatches']['has'](_0x51ff3e['batch']))return!0x1;let _0x1f18a3=!0x1;const _0x554712=_0xecd6ca['plugins']['get']('Users')['me'],_0x52b2d1=_0xecd6ca['model']['document']['differ']['getChanges'](),_0x487355=Array['from'](_0xecd6ca['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xa414e5,data:_0x56b1f7})=>{const {group:_0x582948,subType:_0x1db1b1,authorId:_0x2f8e9}=_0x4eae74['_splitMarkerName'](_0xa414e5);return'suggestion'==_0x582948&&'tablePaste'==_0x1db1b1&&_0x2f8e9==_0x554712['id']&&!_0x56b1f7['oldRange'];});for(const _0x17dfc3 of _0x52b2d1){if('insert'!=_0x17dfc3['type']||'tableCellSuggestion'!=_0x17dfc3['name']||0x1!=_0x17dfc3['length'])continue;const _0xf6b0c6=_0x51ff3e['createRange'](_0x17dfc3['position'],_0x17dfc3['position']['getShiftedBy'](0x1));if(!_0x487355['find'](({data:_0x19915a})=>_0x19915a['newRange']['isEqual'](_0xf6b0c6))){for(const {name:_0x584760,data:_0x19fc97}of _0x487355)if(_0xf6b0c6['containsRange'](_0x19fc97['newRange'])){_0x51ff3e['updateMarker'](_0x584760,{'range':_0xf6b0c6}),_0x1f18a3=!0x0;break;}}}return _0x1f18a3;}),_0xecd6ca['model']['document']['registerPostFixer'](_0x2798da=>{let _0x462293=!0x1;const _0x1214ec=_0xecd6ca['plugins']['get']('Users')['me'],_0x194bc6=_0x4eae74['getSuggestions']()['filter'](_0x2a83cc=>_0x2a83cc['isInContent']&&_0x2a83cc['author']==_0x1214ec),_0x3af201=new Set(),_0x22b255=new Set();for(const _0x1ce888 of _0x194bc6)if('tablePaste'==_0x1ce888['subType'])for(const _0x12cd1b of _0x1ce888['getMarkers']()){const _0x1599a1=_0x12cd1b['getRange']()['getContainedElement']();if(_0x1599a1){if(_0x1599a1['is']('element','tableCellSuggestion')&&ke(_0x1599a1)){_0x1ce888['removeMarker'](_0x12cd1b['name']),_0x3af201['add'](_0x1599a1),_0x462293=!0x0;const _0xabda9e=_0x1599a1['nextSibling'],_0x2a370f=_0x1599a1['previousSibling'],_0x413615=_0xabda9e&&_0xabda9e['is']('element','tableCellSuggestion'),_0x3d1095=_0x2a370f&&_0x2a370f['is']('element','tableCellSuggestion');_0x413615&&!_0x3af201['has'](_0xabda9e)&&_0x22b255['add'](_0xabda9e),_0x3d1095&&!_0x3af201['has'](_0x2a370f)&&_0x22b255['add'](_0x2a370f);}else _0x1599a1['is']('element','paragraph')&&_0x1599a1['isEmpty']&&(_0x1ce888['removeMarker'](_0x12cd1b['name']),_0x462293=!0x0);}}else{if('tablePasteCell'==_0x1ce888['subType']){if(!_0x1ce888['attributes']||!_0x1ce888['attributes']['tablePasteChainId'])continue;const _0x582491=_0x1ce888['attributes']['markerAttributes'];if(_0x582491&&Object['keys'](_0x582491)['length'])continue;const _0x55d0e4=_0x1ce888['attributes']['tablePasteChainId'];let _0x3824bf=!0x0,_0x3ebf7e=!0x0;for(const _0x78b63e of _0x194bc6)if(_0x78b63e['subType']&&_0x78b63e['subType']['startsWith']('tablePaste')){if(!_0x78b63e['attributes']['tablePasteChainId']){_0x3ebf7e=!0x1;break;}if(_0x78b63e['id']!=_0x1ce888['id']&&_0x78b63e['attributes']['tablePasteChainId']==_0x55d0e4){_0x3824bf=!0x1;break;}}_0x3ebf7e&&_0x3824bf&&(_0x1ce888['removeMarkers'](),_0x462293=!0x0);}}for(const _0x1b80dc of _0x3af201)_0x2798da['remove'](_0x1b80dc);for(const _0xa44caa of _0x22b255)_0x2798da['unwrap'](_0xa44caa);return _0x462293;}),_0xecd6ca['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2ffb84=>_0x3c8d0f(_0x2ffb84),'converterPriority':'high'}),_0xecd6ca['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x342c85,_0x2f11c9)=>_0x2f11c9['options']['showSuggestionHighlights']?_0x3c8d0f(_0x342c85,!0x1):null,'converterPriority':'high'});const _0x358d26=_0xecd6ca['editing']['view'];this['listenTo'](_0x358d26['document'],'clipboardOutput',(_0x48ecc4,_0x2c4312)=>{const _0x8649bb=[];for(const _0x2674e7 of _0x358d26['createRangeIn'](_0x2c4312['content'])['getItems']())_0x2674e7['is']('element','suggestion-td')&&_0x8649bb['push'](_0x2674e7);_0x358d26['change'](_0x2b0871=>{for(const _0x996702 of _0x8649bb)_0x2b0871['move'](_0x2b0871['createRangeIn'](_0x996702),_0x2b0871['createPositionBefore'](_0x996702)),_0x2b0871['remove'](_0x996702);});});}}function ke(_0x29f047){if(_0x29f047['isEmpty'])return!0x0;const _0x2a2f18=_0x29f047['getChild'](0x0);return _0x2a2f18['is']('element','paragraph')&&_0x2a2f18['isEmpty'];}function Re(_0x4b31aa,_0x1bbae8={},_0x227fe9){for(const {isAnchor:_0x4c6aaf,cellHeight:_0x41e6ac,cellWidth:_0x45b809}of _0x227fe9['createTableWalker'](_0x4b31aa,{'includeAllSlots':!0x0,..._0x1bbae8}))if(!_0x4c6aaf||0x1!=_0x41e6ac||0x1!=_0x45b809)return!0x1;return!0x0;}class Nt extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1cf54e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1cf54e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1cf54e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1cf54e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cf54e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1cf54e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1cf54e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x444dd4,_0x451af7){const _0x2a4068=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27bc1a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x138c0f=_0x451af7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x9f392b=_0x27bc1a['getColumnGroupElement'](_0x138c0f);let _0x1ebe2d=_0x9f392b?_0x27bc1a['getTableColumnsWidths'](_0x9f392b):null,_0x434ebf=_0x138c0f['getAttribute']('tableWidth')||null;const _0xa17716=_0x451af7['tableWidth']||_0x434ebf,_0x3a5b35=_0x451af7['columnWidths']||_0x1ebe2d,_0x290107=this['editor']['plugins']['get']('Users')['me'];for(const _0x45f9a6 of _0x2a4068['getSuggestions']()){const _0x568289=_0x45f9a6['getContainedElement']();if('resizeTable'===_0x45f9a6['subType']&&_0x568289===_0x138c0f){_0x45f9a6['author']!==_0x290107&&_0x45f9a6['discard']();const _0x5b129a=_0x45f9a6['data']['commandParams'];_0x434ebf=_0x5b129a[0x0]['tableWidth'],_0x1ebe2d=_0x5b129a[0x0]['columnWidths'];break;}}_0x444dd4({'table':_0x138c0f,'tableWidth':_0xa17716,'columnWidths':_0x3a5b35}),_0x2a4068['markBlockFormat'](_0x138c0f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x434ebf,'columnWidths':_0x1ebe2d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x32a18a){if('formatBlock'!=_0x32a18a['type']&&'formatInline'!=_0x32a18a['type'])return;const {data:_0x2dafdc}=_0x32a18a;if(_0x2dafdc&&'resizeTable'===_0x2dafdc['formatGroupId']){const _0x268fe1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x268fe1)};}}}class Dt extends _0x16a2ad{['afterInit'](){const _0x38779b=this['editor'];_0x38779b['plugins']['has']('Template')&&_0x38779b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x16a2ad{['afterInit'](){const _0x1c8fa9=this['editor'];if(!_0x1c8fa9['commands']['get']('insertTableOfContents'))return;_0x1c8fa9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5856a5=_0x1c8fa9['plugins']['get']('TrackChangesEditing'),_0x5463e6=_0x1c8fa9['locale'];_0x5856a5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3060ed=>o(_0x5463e6,'ELEMENT_TABLE_OF_CONTENTS',_0x3060ed));}}class $t extends _0x16a2ad{['afterInit'](){const _0x53103d=this['editor'];if(!_0x53103d['plugins']['has']('Title'))return;const _0x4b7ac5=_0x53103d['plugins']['get']('TrackChangesEditing');_0x4b7ac5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x53103d['locale'],'ELEMENT_TITLE')),_0x53103d['model']['document']['registerPostFixer'](_0x2ccc87=>{let _0x3bbb22=!0x1;const _0x7f53c0=Array['from'](_0x53103d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39d44b,data:_0x1d990a}of _0x7f53c0){const {group:_0x350714}=_0x4b7ac5['_splitMarkerName'](_0x39d44b);if('suggestion'!==_0x350714||!_0x1d990a['newRange'])continue;const _0x1eb46e=_0x1d990a['newRange'],_0xb2a84b=_0x1eb46e['end']['nodeBefore'];if(!_0xb2a84b||!_0xb2a84b['is']('element','title-content'))continue;if(!_0x1eb46e['start']['isTouching'](_0x1eb46e['end']))continue;const _0x2a9662=_0x53103d['model']['schema']['getNearestSelectionRange'](_0x1eb46e['end'],'forward');if(_0x2a9662&&_0x2a9662['isCollapsed']){const _0x128625=_0x2ccc87['createRange'](_0x1eb46e['start'],_0x2a9662['start']);_0x128625['isEqual'](_0x1eb46e)||(_0x2ccc87['updateMarker'](_0x39d44b,{'range':_0x128625}),_0x3bbb22=!0x0);}_0x3bbb22||(_0x2ccc87['removeMarker'](_0x39d44b),_0x3bbb22=!0x0);}return _0x3bbb22;});}}class Bt extends _0x16a2ad{['afterInit'](){const _0x3c5506=this['editor'],_0x2ba949=_0x3c5506['plugins']['get']('TrackChangesEditing');_0x3c5506['plugins']['has']('UndoEditing')&&(_0x2ba949['enableCommand']('undo'),_0x2ba949['enableCommand']('redo'));}}class xt extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0x4fee00=this['editor'];if(!_0x4fee00['plugins']['has']('TableCaptionEditing'))return;_0x4fee00['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x16a2ad{['tableProperties'];['tableCellProperties'];constructor(_0x1d87b1){super(_0x1d87b1),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x28b2e9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x443f3b of this['tableProperties'])_0x28b2e9['enableCommand'](_0x443f3b,(_0x3762bf,_0x8bec59)=>{const _0x408b5a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x443f3b,[_0x408b5a],this['tableProperties'],'tableProperties',_0x3762bf,_0x8bec59);});_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x28b2e9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x26273a,_0x54b8e5)=>this['handleDiscardAction'](this['tableProperties'],_0x26273a,_0x54b8e5)),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4b8a15 of this['tableCellProperties'])_0x28b2e9['enableCommand'](_0x4b8a15,(_0x145cb1,_0x13f92b)=>{const _0x14507f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4b8a15,_0x14507f,this['tableCellProperties'],'tableCellProperties',_0x145cb1,_0x13f92b);});_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x28b2e9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x427d4e,_0x3f49a0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x427d4e,_0x3f49a0)),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x28b2e9['descriptionFactory']['registerDescriptionCallback'](_0x5ab412=>this['handleSuggestionDescription'](_0x5ab412));}['_handlePropertyChange'](_0x1223c2,_0x599812,_0x209f8d,_0x613e28,_0xe1ce6f,_0x424cb2){const _0x5c88b9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x424cb2['batch'],()=>{for(const _0x235af8 of _0x599812){if(this['_getSuggestion'](_0x235af8,_0x613e28))_0xe1ce6f(_0x424cb2);else{const _0x3c2919={};for(const _0x430525 of _0x209f8d){const _0x32e679=_0x235af8['getAttribute'](_0x430525);void 0x0!==_0x32e679&&(_0x3c2919[_0x430525]=_0x32e679);}_0xe1ce6f(_0x424cb2),_0x5c88b9['markBlockFormat'](_0x235af8,{'commandParams':[_0x3c2919]},[],_0x613e28);}}});}['handleDiscardAction'](_0x3cf29e,_0xfa6a29,_0x408911){const _0x257a89=_0xfa6a29[0x0]['start']['nodeAfter'],_0x55494d=_0x408911['commandParams'][0x0];this['editor']['model']['change'](_0x33e183=>{for(const _0x4d8a79 of _0x3cf29e)void 0x0!==_0x55494d[_0x4d8a79]?_0x33e183['setAttribute'](_0x4d8a79,_0x55494d[_0x4d8a79],_0x257a89):_0x33e183['removeAttribute'](_0x4d8a79,_0x257a89);});}['handleSuggestionDescription'](_0x6058f4){if(_0x6058f4['data'])switch(_0x6058f4['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'](_0x5938fb,_0x4ebd37){const _0x1227d4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3d5b41 of _0x1227d4['getSuggestions']({'skipNotAttached':!0x0})){const _0x55514f=_0x3d5b41['getContainedElement']();if(_0x3d5b41['subType']===_0x4ebd37&&_0x55514f===_0x5938fb)return _0x3d5b41;}return null;}}const m='$elementName';class p extends _0x16a2ad{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5680c5,_0x57b538,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,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d897c){function _0x311db0(_0x4e56c2){return _0x4e56c2['map'](_0x20ab6f=>String['fromCharCode'](_0x20ab6f))['join']('');}super(_0x1d897c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x856554,_0x2e1e75,_0x1bf750,_0x311222)=>{this['_model']['change'](()=>{for(const _0x379a2d of[..._0x311222,..._0x1bf750])this['_model']['markers']['has'](_0x379a2d)&&_0x1d897c['editing']['reconvertMarker'](_0x379a2d);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1d897c['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(),_0x1d897c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1d897c['config']['get']('trackChanges.trackFormatChanges'),_0x1d897c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1d897c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1d897c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x311db0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x311db0([0x34,0x30,0x34,0x38,0x32,0x30,0x35,0x30]);}['init'](){const _0x3332ae=this['editor'],_0x59f621=(_0x23aefe,_0x34c5e6)=>{if('attribute'!=_0x23aefe)return'ck-suggestion-marker-'+_0x23aefe;const _0x520915=_0x34c5e6['split']('|')[0x0];return this['_isBlockAttribute'](_0x520915)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3332ae['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3ff78a=>{const {id:_0x163081,authorId:_0x28a8f8,type:_0x28e0c1,subType:_0xae49a}=this['_splitMarkerName'](_0x3ff78a['markerName']),_0x244905=['ck-suggestion-marker',_0x59f621(_0x28e0c1,_0xae49a)];let _0x2e1df5=0xbb8;return this['activeMarkers']['includes'](_0x3ff78a['markerName'])&&(_0x244905['push']('ck-suggestion-marker--active'),_0x2e1df5=0xbc2),'deletion'==_0x28e0c1&&(_0x2e1df5+=0x5),{'classes':_0x244905,'attributes':{'data-suggestion':_0x163081,'data-author-id':_0x28a8f8},'priority':_0x2e1df5};}}),_0x3332ae['conversion']['for']('dataDowncast')['add'](_0x123b9a=>{_0x123b9a['on']('addMarker:suggestion',(_0x694b5b,_0x5f5382,_0x5aa099)=>{if(!_0x5aa099['options']['showSuggestionHighlights'])return;const _0x51ecb6=_0x5f5382['item'];if(!_0x51ecb6)return;const _0x184fa1=_0x5aa099['mapper']['toViewElement'](_0x51ecb6);_0x3332ae['model']['schema']['isObject'](_0x51ecb6)&&_0x184fa1&&!_0x184fa1['getCustomProperty']('widget')&&_0x184fa1['is']('containerElement')&&_0x1dfbcb(_0x184fa1,_0x5aa099['writer']);},{'priority':'high'});}),_0x3332ae['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x14ab44,_0xf1f3a6)=>{if(!_0xf1f3a6['options']['showSuggestionHighlights'])return null;const {type:_0x15083d,subType:_0x55de5c}=this['_splitMarkerName'](_0x14ab44['markerName']);return{'classes':['ck-suggestion-marker',_0x59f621(_0x15083d,_0x55de5c)],'priority':0xbb8};}});const _0x42c029=({showActiveMarkers:_0x78291=!0x0,isAttributeSuggestion:_0x49a1ae=!0x1}={})=>(_0x5639ec,_0x1c35ac,_0x1a3cb3)=>{if(!_0x1c35ac['item'])return;const {id:_0x21dbf4,authorId:_0x53c6be}=this['_splitMarkerName'](_0x1c35ac['markerName']);if(_0x49a1ae){const _0x170ed8=this['_suggestions']['get'](_0x21dbf4),_0x20d71f=this['_getAttributeKey'](_0x170ed8);if(!this['_isBlockAttribute'](_0x20d71f))return;}if(_0x1c35ac['item']['is']('selection'))return void _0x1a3cb3['consumable']['consume'](_0x1c35ac['item'],_0x5639ec['name']);const _0x22ae91=_0x1a3cb3['mapper']['toViewElement'](_0x1c35ac['item']);if(_0x1c35ac['item']['is']('element')&&_0x3332ae['model']['schema']['isBlock'](_0x1c35ac['item'])&&!_0x22ae91['getCustomProperty']('addHighlight')){_0x1a3cb3['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x22ae91),_0x1a3cb3['writer']['setAttribute']('data-suggestion',_0x21dbf4,_0x22ae91),_0x1a3cb3['writer']['setAttribute']('data-author-id',_0x53c6be,_0x22ae91),_0x1a3cb3['mapper']['bindElementToMarker'](_0x22ae91,_0x1c35ac['markerName']),_0x78291&&(this['activeMarkers']['includes'](_0x1c35ac['markerName'])?_0x1a3cb3['writer']['addClass']('ck-suggestion-marker--active',_0x22ae91):_0x1a3cb3['writer']['removeClass']('ck-suggestion-marker--active',_0x22ae91));for(const _0x5f0435 of _0x3332ae['model']['createRangeIn'](_0x1c35ac['item'])['getItems']())_0x1a3cb3['consumable']['consume'](_0x5f0435,_0x5639ec['name']);_0x1a3cb3['consumable']['consume'](_0x1c35ac['item'],_0x5639ec['name']);}};_0x3332ae['conversion']['for']('dataDowncast')['add'](_0x469ce8=>{_0x469ce8['on']('addMarker:suggestion:formatBlock',(_0x4634ca,_0x351681,_0x19c2c2)=>{_0x19c2c2['options']['showSuggestionHighlights']&&_0x42c029({'showActiveMarkers':!0x1})(_0x4634ca,_0x351681,_0x19c2c2);},{'priority':'highest'});}),_0x3332ae['conversion']['for']('dataDowncast')['add'](_0x2c762f=>{_0x2c762f['on']('addMarker:suggestion:attribute',(_0x38fa76,_0x1ee8f9,_0x5a3354)=>{_0x5a3354['options']['showSuggestionHighlights']&&_0x42c029({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x38fa76,_0x1ee8f9,_0x5a3354);},{'priority':'highest'});}),_0x3332ae['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x214b44,_0x160cc4)=>_0x160cc4['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x214b44['substr'](0xb)}}),_0x3332ae['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x204293,{writer:_0x2ed46d})=>{let _0x352418='suggestion:'+_0x204293['getAttribute']('suggestion-type')+':'+_0x204293['getAttribute']('id');return _0x204293['getAttribute']('marker-count')&&(_0x352418+=':'+_0x204293['getAttribute']('marker-count')),_0x2ed46d['createElement']('$marker',{'data-name':_0x352418});}}),_0x3332ae['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x20d85d=>{_0x20d85d['on']('addMarker:suggestion:formatBlock',_0x42c029(),{'priority':'high'});}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x5f435b=>{_0x5f435b['on']('addMarker:suggestion:attribute',_0x42c029({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x168f14=>{_0x168f14['on']('removeMarker:suggestion:formatBlock',(_0x23ed0d,_0x45a7b4,_0x175113)=>{const _0x19e6e5=_0x175113['mapper']['markerNameToElements'](_0x45a7b4['markerName']);if(_0x19e6e5){for(const _0x55d163 of _0x19e6e5)_0x55d163['getCustomProperty']('addHighlight')||(_0x175113['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x55d163),_0x175113['writer']['removeAttribute']('data-suggestion',_0x55d163),_0x175113['writer']['removeAttribute']('data-author-id',_0x55d163),_0x175113['mapper']['unbindElementFromMarkerName'](_0x55d163,_0x45a7b4['markerName']));}},{'priority':'high'});}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x3b7ede=>{_0x3b7ede['on']('removeMarker:suggestion:attribute',(_0x19a5c5,_0x4b521c,_0x567610)=>{const _0x54a502=_0x567610['mapper']['markerNameToElements'](_0x4b521c['markerName']);if(!_0x54a502)return;const {id:_0x4164c6}=this['_splitMarkerName'](_0x4b521c['markerName']),_0x3959c8=this['_suggestions']['get'](_0x4164c6),_0x572c1f=this['_getAttributeKey'](_0x3959c8);if(this['_isBlockAttribute'](_0x572c1f)){for(const _0x37a0b9 of _0x54a502)_0x37a0b9['getCustomProperty']('addHighlight')||(_0x567610['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x37a0b9),_0x567610['writer']['removeAttribute']('data-suggestion',_0x37a0b9),_0x567610['writer']['removeAttribute']('data-author-id',_0x37a0b9),_0x567610['mapper']['unbindElementFromMarkerName'](_0x37a0b9,_0x4b521c['markerName']));}},{'priority':'high'});}),_0x3332ae['model']['document']['registerPostFixer'](_0x456745=>{let _0x3bae6f=!0x1;const _0x334bfd=Array['from'](_0x3332ae['model']['document']['differ']['getChangedMarkers']()),_0x32670d=new Set();for(const {name:_0x2d6ea4,data:_0x4f219d}of _0x334bfd){const {group:_0x32f57c,type:_0x5a934d,subType:_0x3de4b3,id:_0x38da2b}=this['_splitMarkerName'](_0x2d6ea4);if('suggestion'!==_0x32f57c)continue;const _0x1d24ff=this['_suggestions']['get'](_0x38da2b);if(null!=_0x4f219d['newRange']){'formatInline'==_0x5a934d&&(_0x3bae6f=_0x3bae6f||Ut(_0x4f219d['newRange'],_0x2d6ea4,_0x456745,_0x3332ae['model']['schema']));const _0x3081eb='attribute'==_0x5a934d&&this['_isBlockAttribute'](_0x3de4b3['split']('|')[0x0]);if(_0x4f219d['newRange']['isCollapsed']||'$graveyard'==_0x4f219d['newRange']['root']['rootName']||'formatBlock'==_0x5a934d&&!Gt(_0x4f219d['newRange'])||_0x3081eb&&!Gt(_0x4f219d['newRange'])||'deletion'==_0x5a934d&&!(!Vt(_0x1f66a5=_0x4f219d['newRange'])&&!function(_0x57c0f9){return _0x57c0f9['start']['parent']==_0x57c0f9['end']['nodeBefore']&&_0x57c0f9['start']['isAtEnd'];}(_0x1f66a5)))_0x456745['removeMarker'](_0x2d6ea4),_0x3bae6f=!0x0;else{if(!_0x1d24ff||!_0x1d24ff['isInContent'])continue;if(_0x4f219d['newRange']&&_0x4f219d['oldRange']&&_0x4f219d['newRange']['isEqual'](_0x4f219d['oldRange']))continue;_0x32670d['add'](_0x1d24ff);}}}var _0x1f66a5;return _0x32670d['size']>0x0&&(_0x3bae6f=!!this['_joinWithAdjacentSuggestions'](_0x32670d)||_0x3bae6f),_0x3bae6f;}),_0x3332ae['model']['document']['registerPostFixer'](_0x2aaf32=>{let _0x42bcb9=!0x1;for(const _0x139033 of _0x3332ae['model']['document']['differ']['getChanges']())if('insert'==_0x139033['type'])for(const _0x3d94f4 of this['_suggestions']['values']()){if(_0x3d94f4['isMultiRange']||!_0x3d94f4['isInContent'])continue;const _0x78a7d1='formatBlock'==_0x3d94f4['type'],_0x47c4c1=this['_getAttributeKey'](_0x3d94f4),_0x3f8839=_0x47c4c1&&this['_isBlockAttribute'](_0x47c4c1);if(!_0x78a7d1&&!_0x3f8839)continue;const _0x18152a=_0x3d94f4['getFirstRange']();if(_0x18152a['start']['parent']!=_0x18152a['end']['parent']&&!_0x18152a['end']['isAtEnd']){const _0x143df8=_0x3332ae['model']['createPositionAt'](_0x18152a['start']['nodeAfter'],'end'),_0x3e2292=_0x3332ae['model']['createRange'](_0x18152a['start'],_0x143df8);_0x2aaf32['updateMarker'](_0x3d94f4['getFirstMarker'](),{'range':_0x3e2292}),_0x42bcb9=!0x0;}}return _0x42bcb9;}),_0x3332ae['model']['document']['registerPostFixer'](_0x50672e=>this['_processAttributeChanges'](_0x50672e)),_0x3332ae['model']['document']['registerPostFixer'](_0x53a56c=>!_0x53a56c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x53a56c)),_0x3332ae['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3332ae['model']['document']['on']('change:data',(_0x286401,_0x129f5d)=>{if(!_0x129f5d['isLocal']||_0x129f5d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3a9428=_0x3332ae['model']['document']['differ']['getChanges']();if(0x0==_0x3a9428['length'])return;const _0x2fbcd0=[],_0x425146=_0x3a9428['filter'](_0x37315f=>'attribute'==_0x37315f['type']),_0x49115c=_0x3a9428['filter'](_0x86bed6=>'insert'==_0x86bed6['type']&&'$text'!=_0x86bed6['name']);for(const _0xaed322 of _0x425146)this['_isRegisteredAttribute'](_0xaed322['attributeKey'])&&_0x2fbcd0['push']({'key':_0xaed322['attributeKey'],'newValue':_0xaed322['attributeNewValue'],'oldValue':_0xaed322['attributeOldValue'],'range':Ft(_0xaed322['range'],_0x3332ae['model'])});for(const _0x22d472 of _0x49115c){if('rename'!=_0x22d472['action']&&'refresh'!=_0x22d472['action'])continue;const _0x59429a=Lt(_0x22d472['position']['nodeAfter'],_0x3332ae['model']),_0x36651e=_0x22d472['before'];'rename'==_0x22d472['action']&&_0x2fbcd0['push']({'key':m,'newValue':_0x22d472['name'],'oldValue':_0x36651e['name'],'range':_0x59429a});for(const [_0x47f146,_0x425377]of _0x36651e['attributes']){if(!this['_isRegisteredAttribute'](_0x47f146))continue;const _0x5acc1c=_0x22d472['attributes']['get'](_0x47f146);_0x425377!==_0x5acc1c&&_0x2fbcd0['push']({'key':_0x47f146,'newValue':_0x5acc1c,'oldValue':_0x425377,'range':_0x59429a});}for(const [_0x302999,_0x5d98ab]of _0x22d472['attributes'])this['_isRegisteredAttribute'](_0x302999)&&(_0x36651e['attributes']['has'](_0x302999)||_0x2fbcd0['push']({'key':_0x302999,'newValue':_0x5d98ab,'oldValue':null,'range':_0x59429a}));}0x0!=_0x2fbcd0['length']&&_0x3332ae['model']['enqueueChange'](_0x129f5d,_0x25aa39=>{const _0x29a462=_0x31d1bc();for(const {range:_0x6ba546,key:_0x322f6a,oldValue:_0x4245cb,newValue:_0x22a48b}of _0x2fbcd0)this['markAttributeChange'](_0x6ba546,_0x322f6a,_0x4245cb,_0x22a48b,{'groupId':_0x29a462});this['_reduceExistingSuggestions'](_0x25aa39,_0x2fbcd0);});},{'priority':'lowest'}),_0x3332ae['model']['markers']['on']('update:suggestion',(_0x432fc2,_0x3cfd40,_0x3c9edf)=>{if(null==_0x3c9edf){const {id:_0x43c7ef}=this['_splitMarkerName'](_0x3cfd40['name']),_0x541cd3=this['_suggestions']['get'](_0x43c7ef);_0x541cd3&&_0x541cd3['addMarkerName'](_0x3cfd40['name']);}}),_0x3332ae['model']['document']['on']('change:data',()=>{const _0x329206=Array['from'](_0x3332ae['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31f751=>'suggestion'===this['_splitMarkerName'](_0x31f751['name'])['group']);if(0x0===_0x329206['length'])return;_0x329206['sort']((_0x27f059,_0x3bee1d)=>{const _0x4d80aa=_0x27f059['data']['oldRange'],_0x1c878f=_0x3bee1d['data']['oldRange'];return null===_0x4d80aa&&null===_0x1c878f?0x0:null===_0x4d80aa&&null!==_0x1c878f?-0x1:null!==_0x4d80aa&&null===_0x1c878f?0x1:_0x4d80aa['start']['isBefore'](_0x1c878f['start'])?-0x1:0x1;});const _0x3ce501=new Set(),_0x2c2563=new Set();for(const {name:_0x494cad,data:_0x22c87d}of _0x329206){const {id:_0x47dd91}=this['_splitMarkerName'](_0x494cad);if(null===_0x22c87d['oldRange']){const _0x50fbd7=this['_handleNewSuggestionMarker'](_0x494cad);_0x2c2563['add'](_0x50fbd7);}else{const _0xb69be1=this['_suggestions']['get'](_0x47dd91);null!==_0x22c87d['newRange']||_0xb69be1['isInContent']?(_0x3ce501['add'](_0xb69be1['head']),_0x2c2563['add'](_0xb69be1)):this['_removeSuggestion'](_0xb69be1);}}_0x2c2563['size']>0x0&&this['_refreshSuggestionsChain'](_0x2c2563);for(const _0x4c3648 of _0x3ce501)this['fire']('suggestionChanged',_0x4c3648);}),_0x3332ae['model']['on']('applyOperation',(_0xe4ab68,_0x1cb530)=>{const _0x58959d=_0x1cb530[0x0];if(!this['_suggestions']['size'])return;if(!_0x58959d['isDocumentOperation'])return;if(_0x58959d['batch']['isUndo']||!_0x58959d['batch']['isLocal'])return;let _0x41b883,_0x9816d6;switch(_0x58959d['type']){case'insert':_0x41b883=_0x3332ae['model']['createPositionAt'](_0x58959d['position']),_0x9816d6=_0x41b883['getShiftedBy'](_0x58959d['howMany']);break;case'split':_0x41b883=_0x3332ae['model']['createPositionAt'](_0x58959d['splitPosition']),_0x9816d6=_0x3332ae['model']['createPositionAt'](_0x58959d['moveTargetPosition']);break;case'move':_0x41b883=_0x3332ae['model']['createPositionAt'](_0x58959d['targetPosition']),_0x9816d6=_0x41b883['getShiftedBy'](_0x58959d['howMany']);break;default:return;}const _0x2572d7=_0x3332ae['model']['createRange'](_0x41b883,_0x9816d6);_0x3332ae['model']['change'](()=>{for(const {suggestion:_0x555dd0,meta:_0x516c1c}of this['_findSuggestions'](_0x2572d7)){if(_0x555dd0['isMultiRange'])continue;if('formatInline'==_0x555dd0['type'])continue;const _0xc3365e=this['_getAttributeKey'](_0x555dd0);if(_0xc3365e&&this['_isBlockAttribute'](_0xc3365e)&&'split'!=_0x58959d['type'])continue;const _0x26ce18=_0x555dd0['data']&&_0x555dd0['data']['multipleBlocks'];('formatBlock'!=_0x555dd0['type']||'split'==_0x58959d['type']&&!_0x26ce18)&&(_0x516c1c['containsRangeInObject']||'insertion'==_0x555dd0['type']&&_0x516c1c['isOwn']||_0x555dd0['getFirstRange']()['containsRange'](_0x2572d7)&&this['_breakSuggestionMarker'](_0x555dd0,_0x41b883,_0x9816d6));}});},{'priority':'lowest'}),_0x3332ae['model']['on']('deleteContent',(_0x542637,_0x249bc6)=>{const _0x33d465=_0x249bc6[0x0],_0x32e37b=_0x249bc6[0x1];if(_0x32e37b&&_0x32e37b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x33d465['isCollapsed'])return;const _0x58ec7a=_0x3332ae['model']['schema'],{start:_0x3d4318,end:_0x3c197d}=_0x33d465['getFirstRange'](),_0x3849fd=_0x3d4318['nodeAfter']&&_0x58ec7a['isLimit'](_0x3d4318['nodeAfter'])?null:_0x58ec7a['getNearestSelectionRange'](_0x3d4318,'forward'),_0x497165=_0x3c197d['nodeBefore']&&_0x58ec7a['isLimit'](_0x3c197d['nodeBefore'])?null:_0x58ec7a['getNearestSelectionRange'](_0x3c197d,'backward'),_0x3a3c72=_0x3332ae['model']['createRange'](_0x3849fd?_0x3849fd['start']:_0x3d4318,_0x497165?_0x497165['end']:_0x3c197d);_0x3332ae['model']['change'](_0x2431de=>{this['markDeletion'](_0x3a3c72);const _0x4f48ec=_0x3332ae['model']['schema']['getNearestSelectionRange'](_0x3a3c72['start']);_0x33d465['is']('documentSelection')?_0x2431de['setSelection'](_0x4f48ec):_0x33d465['setTo'](_0x4f48ec);}),_0x542637['stop']();},{'priority':_0x3a7800['normal']+0xa}),_0x3332ae['model']['on']('insertContent',(_0x38f694,_0x48da9b)=>{const _0x34e028=_0x48da9b[_0x48da9b['length']-0x1];_0x34e028&&_0x34e028['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3332ae['model']['change'](()=>{let _0x584ae2=_0x3332ae['model']['insertContent'](_0x48da9b[0x0],_0x48da9b[0x1],_0x48da9b[0x2],{'forceDefaultExecution':!0x0});if(!_0x584ae2)return;_0x38f694['return']=_0x584ae2['clone']();const _0x1e2365=_0x584ae2['end']['nodeBefore'],_0x5789f0=_0x3332ae['model']['schema'];_0x1e2365&&_0x5789f0['isBlock'](_0x1e2365)&&!_0x5789f0['isObject'](_0x1e2365)&&(_0x584ae2=_0x3332ae['model']['createRange'](_0x584ae2['start'],_0x3332ae['model']['createPositionAt'](_0x1e2365,'end'))),this['markInsertion'](_0x584ae2);}),_0x38f694['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x199b83=new x(_0x3332ae,this['_suggestions']);_0x3332ae['commands']['add']('acceptSuggestion',_0x199b83),this['enableCommand']('acceptSuggestion');const _0x4e23b2=new O(_0x3332ae,this['_suggestions']);_0x3332ae['commands']['add']('discardSuggestion',_0x4e23b2),this['enableCommand']('discardSuggestion'),_0x3332ae['commands']['add']('acceptAllSuggestions',new R(_0x3332ae,_0x199b83,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3332ae['commands']['add']('discardAllSuggestions',new R(_0x3332ae,_0x4e23b2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3332ae['commands']['add']('acceptSelectedSuggestions',new E(_0x3332ae,_0x199b83,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3332ae['commands']['add']('discardSelectedSuggestions',new E(_0x3332ae,_0x4e23b2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xb4f1eb=_0x3332ae['plugins']['get']('CommentsRepository');this['listenTo'](_0xb4f1eb,'addComment',(_0x23a961,{threadId:_0x557f48})=>{const _0x5c75dd=this['_suggestions']['get'](_0x557f48);_0x5c75dd&&_0x5c75dd['commentThread']&&0x1===_0x5c75dd['commentThread']['length']&&this['_updateSuggestionData'](_0x557f48,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xb4f1eb,'removeComment',(_0x2b5210,{threadId:_0x308150})=>{const _0x3fe383=this['_suggestions']['get'](_0x308150);_0x3fe383&&_0x3fe383['commentThread']&&!_0x3fe383['commentThread']['length']&&this['_updateSuggestionData'](_0x308150,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5dec36){if(this['_adapter'])throw new _0x2f735b('track-changes-adapter-already-set',this);this['_adapter']=_0x5dec36;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x263083=!0x1,toJSON:_0x284855=!0x1}={}){const _0x742040=[];for(const _0x27dbea of this['_suggestions']['values']())_0x263083&&!_0x27dbea['isInContent']||_0x742040['push'](_0x27dbea);return _0x284855?_0x742040['map'](_0x1f8c1d=>_0x1f8c1d['toJSON']()):_0x742040;}['getSuggestion'](_0x2d2e7a){const _0xa0f3f4=this['_suggestions']['get'](_0x2d2e7a);if(!_0xa0f3f4)throw new _0x2f735b('track-changes-suggestion-not-found',this);return _0xa0f3f4;}['hasSuggestion'](_0x6fbd1f){return this['_suggestions']['has'](_0x6fbd1f);}['addSuggestionData'](_0x1dca27){const {authorId:_0x394cb5,id:_0x11518b,attributes:_0x2c1065}=_0x1dca27,[_0x4ce7b1,_0x5b57da]=_0x1dca27['type']['split'](':'),_0x188806=this['_suggestions']['get'](_0x11518b)||this['_createSuggestion'](_0x4ce7b1,_0x5b57da,_0x11518b,_0x394cb5,_0x2c1065);if(this['_addThreadToSuggestion'](_0x188806),this['_checkSuggestionCorrectness'](_0x188806,_0x4ce7b1,_0x5b57da||null,_0x394cb5),_0x188806['createdAt']=_0x1dca27['createdAt'],_0x188806['_isDataLoaded']=!0x0,_0x2c1065&&_0x2c1065['@external']){const _0x918b0a=_0x2c1065['@external'],_0x4b0351=this['_getExternalAuthor'](_0x918b0a['authorName']);_0x188806['authoredAt']=_0x918b0a['createdAt'],_0x188806['author']=_0x4b0351,_0x188806['isExternal']=!0x0;}else _0x188806['authoredAt']=_0x1dca27['createdAt'];switch(_0x1dca27['data']&&(_0x188806['data']=_0x1dca27['data']),_0x1dca27['attributes']&&(_0x188806['attributes']=_0x1dca27['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x188806['_saved']=!0x0),this['_suggestionState']['get'](_0x188806)){case'notReady':this['_suggestionState']['set'](_0x188806,'dataReady');break;case'markerReady':_0x188806['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x188806])),this['_refreshSuggestionsChain'](new Set([_0x188806])),this['_suggestionState']['set'](_0x188806,'ready'),this['fire']('suggestionLoaded',_0x188806)):this['_suggestionState']['set'](_0x188806,'removed');}return _0x188806;}['acceptSuggestion'](_0x145b7e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x46d27e of _0x145b7e['getAllAdjacentSuggestions']())_0x46d27e['accept']();});});}['discardSuggestion'](_0x4ce958){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2acb3d of _0x4ce958['getAllAdjacentSuggestions']())_0x2acb3d['discard']();});});}['enableCommand'](_0x2e1df9,_0x4a2240){const _0x13bbd3=this['editor']['commands']['get'](_0x2e1df9);if(!_0x13bbd3)throw new _0x2f735b('track-changes-command-not-found',this,{'commandName':_0x2e1df9});if(this['_enabledCommands']['has'](_0x13bbd3))throw new _0x2f735b('track-changes-enable-command-twice',this,{'commandName':_0x2e1df9});this['_enabledCommands']['add'](_0x13bbd3),_0x4a2240&&_0x13bbd3['on']('execute',(_0x5a0861,_0x19b1e9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x19b1e9['length']>0x0&&_0x19b1e9[_0x19b1e9['length']-0x1]&&_0x19b1e9[_0x19b1e9['length']-0x1]['forceDefaultExecution']?_0x19b1e9['pop']():(_0x5a0861['return']=_0x4a2240((..._0x11b696)=>_0x13bbd3['execute'](..._0x11b696,{'forceDefaultExecution':!0x0}),..._0x19b1e9),_0x5a0861['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5202b8){let _0x3e372f,_0x56a145;const _0x2d9a73=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3e372f=_0x5202b8();}catch(_0x6dfd90){_0x56a145=_0x6dfd90;}return _0x2d9a73||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x56a145&&_0x2f735b['rethrowUnexpectedError'](_0x56a145,this),_0x3e372f;}['markInsertion'](_0xac9b40,_0x6ca3e6=null,_0x4dd0b6={}){if(_0xac9b40['isCollapsed'])return null;const _0xd418af=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4b8be4,meta:_0x2ece7a}of this['_findSuggestions'](_0xac9b40,'insertion'))if(_0x2ece7a['isOwn']){if(!_0x2ece7a['isNextTo']){if(_0x2ece7a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4b8be4,_0x4dd0b6))continue;return _0x4b8be4;}if(qt(_0x4b8be4,_0x4dd0b6))return _0x4b8be4;this['_breakSuggestionMarker'](_0x4b8be4,_0xac9b40['start'],_0xac9b40['end']);break;}if(_0x6ca3e6==_0x4b8be4['subType']&&qt(_0x4b8be4,_0x4dd0b6)){const _0xb8f90e=_0x4b8be4['getFirstRange']();return _0xb8f90e['start']['isEqual'](_0xac9b40['end'])?this['_setSuggestionRange'](_0x4b8be4,this['_model']['createRange'](_0xac9b40['start'],_0xb8f90e['end'])):this['_setSuggestionRange'](_0x4b8be4,this['_model']['createRange'](_0xb8f90e['start'],_0xac9b40['end'])),_0x4b8be4;}}const _0x3d1b35=_0x31d1bc(),_0x5b21af=_0xd418af['id'],_0x275e65=_0x6ca3e6?'insertion:'+_0x6ca3e6:'insertion',_0x1a13d3=this['_setSuggestionData']({'id':_0x3d1b35,'type':_0x275e65,'createdAt':new Date(),'authorId':_0x5b21af,'attributes':_0x4dd0b6});return this['_addSuggestionMarker'](_0x275e65,_0x3d1b35,_0x5b21af,_0xac9b40),_0x1a13d3;}['markMultiRangeInsertion'](_0x1d1059,_0xa32680='multi',_0x50d599={}){const _0x529c17=this['editor']['plugins']['get']('Users')['me'],_0x336c36=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xa32680,'join');for(const _0x40dfda of this['getSuggestions']())if(_0x40dfda['author']['id']==_0x529c17['id']&&'insertion'==_0x40dfda['type']&&_0x40dfda['subType']==_0xa32680&&qt(_0x40dfda,_0x50d599)&&(_0x336c36(_0x40dfda['getRanges'](),_0x1d1059)||_0x336c36(_0x1d1059,_0x40dfda['getRanges']()))){for(const _0x20bdf of _0x1d1059)_0x40dfda['addRange'](_0x20bdf);return _0x40dfda;}for(const {suggestion:_0x100d24,meta:_0xa923bb}of this['_findSuggestions'](_0x1d1059,'insertion')){if(!_0xa923bb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xa923bb['containsRangeInObject'])continue;if(!qt(_0x100d24,_0x50d599))continue;let _0x4336e8=!0x0;for(const _0xefdf64 of _0x100d24['getRanges']())for(const _0x406beb of _0x1d1059)if(!_0xefdf64['containsRange'](_0x406beb)){_0x4336e8=!0x1;break;}if(_0x4336e8)return _0x100d24;}const _0x13f186=_0x31d1bc(),_0x57b8bf=_0x529c17['id'],_0xb41011='insertion:'+_0xa32680,_0x4313f1=this['_setSuggestionData']({'id':_0x13f186,'type':_0xb41011,'createdAt':new Date(),'authorId':_0x57b8bf,'attributes':_0x50d599});for(const _0x4cb3c5 of _0x1d1059)this['_addSuggestionMarker'](_0xb41011,_0x13f186,_0x57b8bf,_0x4cb3c5,u['getMultiRangeId']());return _0x4313f1;}['markInlineFormat'](_0x3a3965,_0x86d1b7,_0x44cad4=null,_0xd20eb9={}){if(_0x44cad4=_0x44cad4||Pt(_0x86d1b7),_0x3a3965['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xf0a5c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44cad4,'accept');return this['forceDefaultExecution'](()=>_0xf0a5c([_0x3a3965],_0x86d1b7,_0xd20eb9)),null;}const _0x3603b8=this['editor']['plugins']['get']('Users')['me'],_0x38a03e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3f6173,meta:_0x172be8}of this['_findSuggestions'](_0x3a3965,'insertion'))_0x172be8['isOwn']&&!_0x172be8['isInsideObject']&&_0x38a03e['push'](..._0x3f6173['getRanges']());}const _0x5dc2c6=function(_0x4a2e6c,_0x3c43df){const _0x1dd9dd=[];for(const _0x64c80b of _0x3c43df){const _0xf62806=_0x4a2e6c['getIntersection'](_0x64c80b);_0xf62806&&_0x1dd9dd['push'](_0xf62806);}return _0x1dd9dd;}(_0x3a3965,_0x38a03e),_0x273da0=function(_0x2d9c5a,_0x5af88d){const _0x6017e5=[_0x2d9c5a];for(const _0x21b761 of _0x5af88d){let _0x54ebb2=0x0;for(;_0x54ebb2<_0x6017e5['length'];){const _0x22093b=_0x6017e5[_0x54ebb2]['getDifference'](_0x21b761);_0x6017e5['splice'](_0x54ebb2,0x1,..._0x22093b),_0x54ebb2+=_0x22093b['length'];}}return _0x6017e5;}(_0x3a3965,_0x38a03e);_0x5dc2c6['length']&&this['_model']['change'](()=>{for(const _0x211286 of _0x5dc2c6){const _0x2b37d3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44cad4,'accept');this['forceDefaultExecution'](()=>_0x2b37d3([_0x211286],_0x86d1b7,_0xd20eb9));}});for(const _0x38428d of _0x273da0){let _0x50cc21=null,_0x10e9a8=_0x38428d['start'],_0x338b11=_0x38428d['end'];for(const {suggestion:_0x1143f6,meta:_0x1a3a6f}of this['_findSuggestions'](_0x38428d,'formatInline')){if(!_0x1a3a6f['isOwn'])continue;if(_0x1143f6['subType']!=_0x44cad4)continue;if(!qt(_0x1143f6,_0xd20eb9))continue;const _0x2edc28=_0x1143f6['getFirstRange']();if(_0x2edc28['containsRange'](_0x38428d,!0x0))return null;_0x10e9a8=_0x10e9a8['isBefore'](_0x2edc28['start'])?_0x10e9a8:_0x2edc28['start'],_0x338b11=_0x338b11['isAfter'](_0x2edc28['end'])?_0x338b11:_0x2edc28['end'],_0x50cc21?_0x2edc28['start']['isBefore'](_0x50cc21['getFirstRange']()['start'])?(_0x50cc21['removeMarkers'](),_0x50cc21=_0x1143f6):_0x1143f6['removeMarkers']():_0x50cc21=_0x1143f6;}const _0x2c5884=this['_model']['createRange'](_0x10e9a8,_0x338b11);if(_0x50cc21)this['_setSuggestionRange'](_0x50cc21,_0x2c5884);else{const _0x5f7326=_0x31d1bc(),_0x163dad=_0x3603b8['id'];this['_setSuggestionData']({'id':_0x5f7326,'type':'formatInline:'+_0x44cad4,'data':_0x86d1b7,'createdAt':new Date(),'authorId':_0x163dad,'attributes':_0xd20eb9}),this['_addSuggestionMarker']('formatInline:'+_0x44cad4,_0x5f7326,_0x163dad,_0x2c5884);}}return null;}['markBlockFormat'](_0x45b4df,_0xb5c856,_0x25bdb7=[],_0x80e741=null,_0x16a69f={}){_0xb5c856['formatGroupId']||(_0xb5c856['formatGroupId']=_0xb5c856['commandName']),_0xb5c856['multipleBlocks']=_0x45b4df['is']('range'),_0x80e741=_0x80e741||Pt(_0xb5c856);const _0x490fe9=_0x25bdb7['map'](_0x415fdf=>Lt(_0x415fdf,this['_model'])),_0x2f3cdd=_0x45b4df['is']('range')?_0x45b4df:Lt(_0x45b4df,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4dd0aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80e741,'accept');return this['forceDefaultExecution'](()=>_0x4dd0aa([_0x2f3cdd],_0xb5c856,_0x16a69f)),null;}_0x490fe9['push'](_0x2f3cdd);let _0x4e68b4=!0x0;for(const _0x18ee1b of _0x490fe9)if(!this['_rangeIsInLocalUserInsertion'](_0x18ee1b)){_0x4e68b4=!0x1;break;}if(_0x4e68b4&&'always'!==this['_trackFormatChanges']){const _0x1a4d10=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80e741,'accept');return this['forceDefaultExecution'](()=>_0x1a4d10([_0x2f3cdd],_0xb5c856,_0x16a69f)),null;}let _0x19c74c=null,_0x271ea9=_0x2f3cdd['start'],_0x6447bb=_0x2f3cdd['end'];for(const {suggestion:_0x1a8426,meta:_0x32caf8}of this['_findSuggestions'](_0x2f3cdd,'formatBlock')){if(!_0x32caf8['isOwn'])continue;if(_0x32caf8['isNextTo']||_0x32caf8['containsRangeInObject']||_0x32caf8['isInsideObject'])continue;if(_0x1a8426['data']['formatGroupId']!=_0xb5c856['formatGroupId'])continue;if(!qt(_0x1a8426,_0x16a69f))continue;const _0x5a768f=_0x1a8426['getFirstRange']();if(_0x1a8426['subType']==_0x80e741){if(_0x5a768f['containsRange'](_0x2f3cdd,!0x0))return null;_0x271ea9=_0x271ea9['isBefore'](_0x5a768f['start'])?_0x271ea9:_0x5a768f['start'],_0x6447bb=_0x6447bb['isAfter'](_0x5a768f['end'])?_0x6447bb:_0x5a768f['end'],_0x19c74c?_0x5a768f['start']['isBefore'](_0x19c74c['getFirstRange']()['start'])?(_0x19c74c['removeMarkers'](),_0x19c74c=_0x1a8426):_0x1a8426['removeMarkers']():_0x19c74c=_0x1a8426;}else{const _0x3aaf9a=_0x2f3cdd['getIntersection'](_0x5a768f);this['_cutOutSuggestionMarker'](_0x1a8426,_0x3aaf9a);}}const _0x5e18d4=this['editor']['plugins']['get']('Users')['me'],_0x30acc5=_0x31d1bc(),_0x57399b=_0x5e18d4['id'];if(_0x19c74c)return this['_setSuggestionRange'](_0x19c74c,this['_model']['createRange'](_0x271ea9,_0x6447bb)),_0x19c74c;{const _0x5505eb=this['_setSuggestionData']({'id':_0x30acc5,'type':'formatBlock:'+_0x80e741,'data':_0xb5c856,'createdAt':new Date(),'authorId':_0x57399b,'attributes':_0x16a69f});return this['_addSuggestionMarker']('formatBlock:'+_0x80e741,_0x30acc5,_0x57399b,this['_model']['createRange'](_0x271ea9,_0x6447bb)),_0x5505eb;}}['markMultiRangeBlockFormat'](_0x3a6fc5,_0x4b10cc,_0x5cfc34=[],_0x3408a0=null,_0x4ffb9a={}){_0x4b10cc['formatGroupId']||(_0x4b10cc['formatGroupId']=_0x4b10cc['commandName']);const _0x7322a0=_0x3a6fc5[0x0];_0x4b10cc['multipleBlocks']=_0x7322a0['is']('range'),_0x3408a0=_0x3408a0||Pt(_0x4b10cc);const _0x9d076d=_0x5cfc34['map'](_0x16f2da=>Lt(_0x16f2da,this['_model'])),_0x152c27=_0x7322a0['is']('range')?_0x3a6fc5:_0x3a6fc5['map'](_0x28c1cc=>Lt(_0x28c1cc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x48dcf6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3408a0,'accept');return this['forceDefaultExecution'](()=>_0x48dcf6(_0x152c27,_0x4b10cc,_0x4ffb9a)),null;}_0x9d076d['push'](..._0x152c27);let _0x2c308b=!0x0;for(const _0x406028 of _0x9d076d)if(!this['_rangeIsInLocalUserInsertion'](_0x406028)){_0x2c308b=!0x1;break;}if(_0x2c308b&&'always'!==this['_trackFormatChanges']){const _0xac4280=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3408a0,'accept');return this['forceDefaultExecution'](()=>_0xac4280(_0x152c27,_0x4b10cc,_0x4ffb9a)),null;}const _0x26e584=this['editor']['plugins']['get']('Users')['me'];for(const _0x554488 of this['getSuggestions']()){if(_0x554488['author']['id']!=_0x26e584['id'])continue;if('formatBlock'!=_0x554488['type']||_0x554488['data']['formatGroupId']!=_0x4b10cc['formatGroupId'])continue;if(!qt(_0x554488,_0x4ffb9a))continue;const _0x11d3ca=_0x554488['subType']==_0x3408a0;for(let _0xa4abac=0x0;_0xa4abac<_0x152c27['length'];_0xa4abac++){const _0x2d094c=_0x152c27[_0xa4abac];for(const _0x4cb651 of _0x554488['getMarkers']()){const _0x6fe6d0=_0x4cb651['getRange']();if(_0x2d094c['isEqual'](_0x6fe6d0)){_0x11d3ca?(_0x152c27['splice'](_0xa4abac,0x1),_0xa4abac--):_0x554488['removeMarker'](_0x4cb651['name']);break;}}}}if(0x0==_0x152c27['length'])return null;const _0x18bd42=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3408a0,'join');for(const _0x4e23a2 of this['getSuggestions']())if(_0x4e23a2['author']['id']==_0x26e584['id']&&'formatBlock'==_0x4e23a2['type']&&_0x4e23a2['data']['formatGroupId']==_0x4b10cc['formatGroupId']&&_0x4e23a2['subType']==_0x3408a0&&qt(_0x4e23a2,_0x4ffb9a)&&(_0x18bd42(_0x4e23a2['getRanges'](),_0x152c27)||_0x18bd42(_0x152c27,_0x4e23a2['getRanges']()))){for(const _0x53a32d of _0x152c27)_0x4e23a2['addRange'](_0x53a32d);return _0x4e23a2;}const _0x210e3a=_0x31d1bc(),_0x56cc2c=_0x26e584['id'],_0x2a026b='formatBlock:'+_0x3408a0,_0xf92b07=this['_setSuggestionData']({'id':_0x210e3a,'type':_0x2a026b,'data':_0x4b10cc,'createdAt':new Date(),'authorId':_0x56cc2c,'attributes':_0x4ffb9a});for(const _0x362ccd of _0x152c27)this['_addSuggestionMarker'](_0x2a026b,_0x210e3a,_0x56cc2c,_0x362ccd,u['getMultiRangeId']());return _0xf92b07;}['markDeletion'](_0x24f5ee,_0x1a0019=null,_0x2266ed={}){if(_0x24f5ee['isCollapsed'])return null;const _0x1f83f9=this['editor']['plugins']['get']('Users')['me'],_0x13abe3=new _0x1eeee4(_0x24f5ee['start'],_0x24f5ee['end']);for(const {suggestion:_0x4b76d9,meta:_0x5f5848}of this['_findSuggestions'](_0x13abe3,'insertion'))if(_0x5f5848['isOwn']&&!_0x5f5848['isNextTo']){if(_0x4b76d9['isMultiRange']){const _0x377a28=_0x4b76d9['getRanges']()['filter'](_0x52ee57=>'$graveyard'!=_0x52ee57['root']['rootName']);_0x377a28['every'](_0x1ee4f4=>_0x13abe3['containsRange'](_0x1ee4f4,!0x0))&&_0x4b76d9['discard']();if(_0x377a28['some'](_0x5ba360=>_0x5ba360['containsRange'](_0x13abe3,!0x0))){const _0x4fbff3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a0019,'accept');return this['forceDefaultExecution'](()=>_0x4fbff3([_0x13abe3],null,_0x2266ed)),null;}}else{const _0xf402b9=_0x13abe3['getIntersection'](_0x4b76d9['getFirstRange']());null!==_0xf402b9&&_0x4b76d9['_onDiscard']([_0xf402b9],null,_0x2266ed);}}if(_0x13abe3['detach'](),_0x13abe3['isCollapsed']||'$graveyard'==_0x13abe3['root']['rootName'])return null;let _0x50949c=null,_0x173a16=_0x13abe3['start'],_0x30aabe=_0x13abe3['end'];const _0x5254ed=this['_findSuggestions'](_0x13abe3,'deletion');for(const {suggestion:_0x1b5850,meta:_0x3f867c}of _0x5254ed){const _0x12efeb=this['_model']['createRange'](_0x173a16,_0x30aabe);if(_0x3f867c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f867c['containsRangeInObject']&&!_0x3f867c['isInsideObject'])){if(_0x1b5850['isMultiRange']){if(!qt(_0x1b5850,_0x2266ed))continue;let _0x1b721a=!0x0;for(const _0x1bf415 of _0x1b5850['getRanges']()){if(_0x1bf415['containsRange'](_0x12efeb,!0x0))return _0x1b5850;_0x12efeb['containsRange'](_0x1bf415)||(_0x1b721a=!0x1);}_0x1b721a&&_0x1b5850['discard']();}else{const _0x47a480=_0x1b5850['getFirstRange']();if(_0x47a480['containsRange'](_0x12efeb,!0x0))return _0x1b5850;if(!qt(_0x1b5850,_0x2266ed)){_0x12efeb['containsRange'](_0x47a480)?_0x1b5850['removeMarkers']():_0x47a480['containsPosition'](_0x173a16)?_0x173a16=_0x47a480['end']:_0x47a480['containsPosition'](_0x30aabe)&&(_0x30aabe=_0x47a480['start']);continue;}_0x173a16=_0x173a16['isBefore'](_0x47a480['start'])?_0x173a16:_0x47a480['start'],_0x30aabe=_0x30aabe['isAfter'](_0x47a480['end'])?_0x30aabe:_0x47a480['end'],_0x2266ed=Object['assign']({},_0x1b5850['attributes']),_0x50949c?_0x47a480['start']['isBefore'](_0x50949c['getFirstRange']()['start'])?(_0x50949c['removeMarkers'](),_0x50949c=_0x1b5850):_0x1b5850['removeMarkers']():_0x50949c=_0x1b5850;}}}if(_0x50949c)return this['_setSuggestionRange'](_0x50949c,this['_model']['createRange'](_0x173a16,_0x30aabe)),_0x50949c;{const _0x4bdef2=_0x31d1bc(),_0x30ddd7=this['_model']['createRange'](_0x173a16,_0x30aabe),_0x2b0076=_0x1f83f9['id'],_0x1daf36=_0x1a0019?'deletion:'+_0x1a0019:'deletion',_0xef01a8=this['_setSuggestionData']({'id':_0x4bdef2,'type':_0x1daf36,'createdAt':new Date(),'authorId':_0x2b0076,'attributes':_0x2266ed});return this['_addSuggestionMarker'](_0x1daf36,_0x4bdef2,_0x2b0076,_0x30ddd7),_0xef01a8;}}['markMultiRangeDeletion'](_0x502c08,_0x2484cc='multi',_0x37cd8b={}){const _0x1518d4=this['editor']['plugins']['get']('Users')['me'],_0x277d2f=_0x502c08['map'](_0x8a66a2=>new _0x1eeee4(_0x8a66a2['start'],_0x8a66a2['end'])),_0x4e7942=new Set();for(const {suggestion:_0xb60d40,meta:_0x3e8aeb}of this['_findSuggestions'](_0x277d2f,'insertion'))_0x3e8aeb['isOwn']&&!_0x3e8aeb['isNextTo']&&_0x4e7942['add'](_0xb60d40);for(const _0x2b573b of _0x4e7942)if(_0x2b573b['isMultiRange']){const _0x5a9bac=_0x2b573b['getRanges']();(!_0x2b573b['attributes']||!_0x2b573b['attributes']['skipNestingCheck'])&&(_0x5a9bac['every'](_0x3d27f0=>_0x277d2f['some'](_0xe324bb=>_0xe324bb['containsRange'](_0x3d27f0,!0x0)))&&_0x2b573b['discard']());if(_0x277d2f['every'](_0x258b0d=>_0x5a9bac['some'](_0x59726a=>_0x59726a['containsRange'](_0x258b0d,!0x0)))){const _0x44635e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2484cc,'accept');return this['forceDefaultExecution'](()=>_0x44635e(_0x502c08,null,_0x37cd8b)),null;}}else{const _0x128429=_0x2b573b['getFirstRange']();_0x277d2f['some'](_0x34e8fe=>_0x34e8fe['containsRange'](_0x128429,!0x0))&&_0x2b573b['discard']();if(_0x277d2f['every'](_0x247cb9=>_0x128429['containsRange'](_0x247cb9,!0x0))){const _0x2ed7ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2484cc,'accept');return this['forceDefaultExecution'](()=>_0x2ed7ba(_0x277d2f,null,_0x37cd8b)),null;}}const _0x225ffb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2484cc,'join');let _0x4bfad0=null;for(const _0x3ecc2d of this['getSuggestions']())if(_0x3ecc2d['author']['id']==_0x1518d4['id']&&_0x3ecc2d['isInContent']&&'deletion'==_0x3ecc2d['type']&&_0x3ecc2d['subType']==_0x2484cc&&qt(_0x3ecc2d,_0x37cd8b)&&(_0x225ffb(_0x3ecc2d['getRanges'](),_0x277d2f)||_0x225ffb(_0x277d2f,_0x3ecc2d['getRanges']()))){if(_0x4bfad0){if(_0x3ecc2d['commentThread']&&_0x3ecc2d['commentThread']['length'])continue;for(const _0x11cd91 of _0x3ecc2d['getRanges']())_0x4bfad0['isIntersectingWithRange'](_0x11cd91)||_0x4bfad0['addRange'](_0x11cd91);_0x3ecc2d['removeMarkers']();}else{_0x4bfad0=_0x3ecc2d;for(const _0x3afdbb of _0x277d2f)_0x3ecc2d['isIntersectingWithRange'](_0x3afdbb)||_0x3ecc2d['addRange'](_0x3afdbb);}}if(_0x4bfad0)return _0x4bfad0;_0x4e7942['clear']();for(const {suggestion:_0x5e14f6,meta:_0x57e430}of this['_findSuggestions'](_0x277d2f,'deletion'))_0x57e430['isOwn']&&(this['_mergeNestedSuggestions']||!_0x57e430['containsRangeInObject']&&!_0x57e430['isInsideObject'])&&qt(_0x5e14f6,_0x37cd8b)&&_0x4e7942['add'](_0x5e14f6);for(const _0x52798d of _0x4e7942){const _0x5b72af=_0x52798d['getRanges']();if(!_0x37cd8b||!_0x37cd8b['skipNestingCheck']){if(_0x277d2f['every'](_0x261958=>_0x5b72af['some'](_0x2417d4=>_0x2417d4['containsRange'](_0x261958,!0x0))))return _0x52798d;}(!_0x52798d['attributes']||!_0x52798d['attributes']['skipNestingCheck'])&&(_0x5b72af['every'](_0x5bfe81=>_0x277d2f['some'](_0x391895=>_0x391895['containsRange'](_0x5bfe81,!0x0)))&&_0x52798d['discard']());}const _0x5acff9=_0x31d1bc(),_0x3e5683=_0x1518d4['id'],_0x3f89c2='deletion:'+_0x2484cc,_0x117309=this['_setSuggestionData']({'id':_0x5acff9,'type':_0x3f89c2,'createdAt':new Date(),'authorId':_0x3e5683,'attributes':_0x37cd8b});for(const _0x42489b of _0x277d2f)_0x42489b['detach'](),_0x42489b['isCollapsed']||'$graveyard'==_0x42489b['root']['rootName']||this['_addSuggestionMarker'](_0x3f89c2,_0x5acff9,_0x3e5683,_0x42489b,u['getMultiRangeId']());return _0x117309;}['markAttributeChange'](_0x32c21c,_0x350c64,_0x271dc3,_0x2f931d,_0x3cd2ad){if(_0x32c21c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd378b1=this['editor']['plugins']['get']('Users')['me']['id'],_0x3498eb=Array['from'](this['_suggestions']['values']())['filter'](_0x239fad=>'attribute'==_0x239fad['type']&&_0x239fad['data']['key']==_0x350c64&&_0x239fad['isIntersectingWithRange'](_0x32c21c));if('default'===this['_trackFormatChanges']){const _0x2ada4d=this['_findSuggestions'](_0x32c21c,'insertion')['filter'](({meta:_0x248606})=>_0x248606['isOwn']&&!_0x248606['isInsideObject']&&!_0x248606['isNextTo'])['map'](({suggestion:_0x14e69a})=>_0x14e69a);_0x3498eb['unshift'](..._0x2ada4d);}const _0xe3edd9=new Map([[_0x32c21c,_0x271dc3]]);for(const _0x4ba0ce of _0x3498eb){const _0x56bc57='attribute'==_0x4ba0ce['type']?_0x4ba0ce['data']['oldValue']:void 0x0,_0x3dd742=_0x4ba0ce['getFirstRange'](),_0x3d6d86=Array['from'](_0xe3edd9['keys']())['find'](_0x450972=>_0x450972['isIntersecting'](_0x3dd742));if(!_0x3d6d86)continue;const _0x456ec2=_0x3d6d86['getDifference'](_0x3dd742);this['_isBlockAttribute'](_0x350c64)&&'insertion'==_0x4ba0ce['type']&&0x0!=_0x456ec2['length']||(_0xe3edd9['delete'](_0x3d6d86),_0x456ec2['forEach'](_0x2e3750=>{_0xe3edd9['set'](_0x2e3750,_0x271dc3);}),'insertion'!=_0x4ba0ce['type']&&_0x56bc57!=_0x2f931d&&_0xe3edd9['set'](_0x3d6d86['getIntersection'](_0x3dd742),_0x56bc57));}const _0x195e30=[];for(const [_0xf4911e,_0x545114]of _0xe3edd9){const _0x29e7bc=_0x31d1bc(),_0x3c2217={'key':_0x350c64,'oldValue':_0x545114,'newValue':_0x2f931d};_0x350c64['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':_0x350c64});const _0x1f0560=('attribute:'+(_0x350c64+'|'+Pt({'newValue':_0x2f931d})))['substring'](0x0,0x3c),_0x4e30af=this['_setSuggestionData']({'id':_0x29e7bc,'type':_0x1f0560,'data':_0x3c2217,'createdAt':new Date(),'authorId':_0xd378b1,'attributes':_0x3cd2ad});_0x195e30['push'](_0x4e30af),this['_addSuggestionMarker'](_0x1f0560,_0x29e7bc,_0xd378b1,_0xf4911e);}return _0x195e30;}['enableDefaultAttributesIntegration'](_0x167810){this['enableCommand'](_0x167810,(_0x5d05bf,..._0x1193fc)=>{this['_recordAttributeChanges'](()=>{_0x5d05bf(..._0x1193fc);});});}['registerBlockAttribute'](_0x5516ca){this['_blockAttributeKeys']['add'](_0x5516ca);}['registerInlineAttribute'](_0x25bef2){this['_inlineAttributeKeys']['add'](_0x25bef2);}['_getAttributeKey'](_0x20d5a8){return'attribute'==_0x20d5a8['type']?_0x20d5a8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5d46c2,_0xc7116a){const _0x1ac15a=_0x5d46c2['getFirstMarker']();this['_model']['change'](_0x1ea5d5=>{_0x1ea5d5['updateMarker'](_0x1ac15a,{'range':_0xc7116a});});}['_addThreadToSuggestion'](_0x36ac16){const _0x140df6=_0x36ac16['id'],_0x17a6d6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x140df6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x17a6d6,'threadId':_0x140df6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x123cf9=this['_commentsRepository']['getCommentThread'](_0x140df6);_0x123cf9['unbind']('isRemovable'),_0x123cf9['isRemovable']=!0x1,_0x36ac16['commentThread']=_0x123cf9;}['_checkSuggestionCorrectness'](_0x2ff4e9,_0x5c2a5d,_0x2d0d8b,_0x230611){if(_0x2ff4e9['type']!=_0x5c2a5d||_0x2ff4e9['subType']!=_0x2d0d8b||_0x2ff4e9['creator']['id']!=_0x230611)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2f735b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x463335,_0x1a3c99){const _0x3d1e96=_0x463335['getFirstRange']();if(_0x1a3c99['isEqual'](_0x3d1e96))_0x463335['removeMarkers']();else{if(_0x3d1e96['containsRange'](_0x1a3c99)){const _0x2ab778=this['_model']['createPositionAt'](_0x1a3c99['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x463335,this['_model']['createRange'](_0x3d1e96['start'],_0x2ab778));const _0x57231c=_0x31d1bc(),_0x2e1055=_0x463335['creator']['id'],_0x384c65=_0x463335['type']+':'+_0x463335['subType'];this['_setSuggestionData']({'id':_0x57231c,'type':_0x384c65,'createdAt':new Date(),'authorId':_0x2e1055,'data':_0x463335['data'],'attributes':_0x463335['attributes']});const _0x259c0c=this['_model']['createPositionAt'](_0x1a3c99['end']['parent'],'after'),_0x46ad9d=this['_model']['createRange'](_0x259c0c,_0x3d1e96['end']);this['_addSuggestionMarker'](_0x384c65,_0x57231c,_0x2e1055,_0x46ad9d);}else{if(_0x3d1e96['containsPosition'](_0x1a3c99['start'])){const _0x26d3db=this['_model']['createPositionAt'](_0x1a3c99['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x463335,this['_model']['createRange'](_0x3d1e96['start'],_0x26d3db));}else{const _0x2e12cd=this['_model']['createPositionAt'](_0x1a3c99['end']['parent'],'after');this['_setSuggestionRange'](_0x463335,this['_model']['createRange'](_0x2e12cd,_0x3d1e96['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2fe1ad){for(const {suggestion:_0x1d45b5,meta:_0x1e2bdd}of this['_findSuggestions'](_0x2fe1ad,'insertion')){if(!_0x1e2bdd['isOwn'])continue;const _0xc2496d=_0x1d45b5['getRanges']();for(const _0x5bbee9 of _0xc2496d)if(!_0x2fe1ad['getDifference'](_0x5bbee9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xf32c60){const _0x4dacdd=this['editor']['plugins']['get']('Users')['getUser'](_0xf32c60);if(!_0x4dacdd)throw new _0x2f735b('track-changes-user-not-found',this);return _0x4dacdd;}['_getExternalAuthor'](_0x552ed3){const _0x3c942d=this['editor']['plugins']['get']('Users'),_0x2523d4=_0x115a16('external:'+_0x552ed3),_0xe74f3e=_0x3c942d['getUser'](_0x2523d4);return _0xe74f3e||_0x3c942d['addUser']({'id':_0x2523d4,'name':_0x552ed3});}['_createSuggestion'](_0x103945,_0x3656e2,_0xaae70d,_0x18d568,_0x1c9bdf){const _0xc3ff18=this['_getAuthorFromId'](_0x18d568),_0x210013=this['_suggestionFactory']['buildSuggestion'](_0x103945,_0x3656e2,_0xaae70d,_0xc3ff18,_0x1c9bdf,_0x21e02f=>{this['_updateSuggestionData'](_0xaae70d,{'attributes':_0x21e02f});const _0xdd9ec2=this['getSuggestion'](_0xaae70d);this['_joinWithAdjacentSuggestions'](new Set([_0xdd9ec2])),this['_refreshSuggestionsChain'](new Set([_0xdd9ec2]));});return this['listenTo'](_0x210013,'accept',()=>{this['_updateSuggestionData'](_0xaae70d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x210013,'discard',()=>{this['_updateSuggestionData'](_0xaae70d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xaae70d,_0x210013),this['_suggestionState']['set'](_0x210013,'notReady'),_0x210013;}['_splitMarkerName'](_0x3aa8cb){const _0x13f105=_0x3aa8cb['split'](':');return{'group':_0x13f105[0x0],'type':_0x13f105[0x1],'subType':_0x13f105['length']>=0x5?_0x13f105[0x2]:null,'id':_0x13f105['length']<0x5?_0x13f105[0x2]:_0x13f105[0x3],'authorId':_0x13f105['length']<0x5?_0x13f105[0x3]:_0x13f105[0x4],'markerCount':0x6==_0x13f105['length']?_0x13f105[0x5]:null};}['_breakSuggestionMarker'](_0x49f27a,_0x5a87dc,_0x132780){const _0x1e6551=_0x49f27a['getFirstRange'](),_0x1d8409=_0x1e6551['start'],_0x599148=_0x1e6551['end'];this['_setSuggestionRange'](_0x49f27a,this['_model']['createRange'](_0x1d8409,_0x5a87dc));const _0x47604d=_0x31d1bc(),_0x486b6e=_0x49f27a['creator']['id'],_0x5be9ff=_0x49f27a['type']+(_0x49f27a['subType']?':'+_0x49f27a['subType']:'');this['_setSuggestionData']({'id':_0x47604d,'type':_0x5be9ff,'createdAt':new Date(),'authorId':_0x486b6e,'originalSuggestionId':_0x49f27a['id'],'attributes':_0x49f27a['attributes'],'data':_0x49f27a['data']});const _0x3c2f21=this['_getAttributeKey'](_0x49f27a);('formatBlock'==_0x49f27a['type']||_0x3c2f21&&this['_isBlockAttribute'](_0x3c2f21))&&(_0x132780=this['_model']['createPositionBefore'](_0x132780['parent'])),this['_addSuggestionMarker'](_0x5be9ff,_0x47604d,_0x486b6e,this['_model']['createRange'](_0x132780,_0x599148));}['_findSuggestions'](_0x21a470,_0x211696=null){const _0x1acf48=[],_0x2f44ca=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x21a470)||(_0x21a470=[_0x21a470]);for(const _0x118de8 of this['getSuggestions']()){if(!_0x118de8['isInContent'])continue;if(_0x211696&&_0x118de8['type']!=_0x211696)continue;let _0x5c04be=!0x1;for(const _0xc17bd6 of _0x118de8['getRanges']()){for(const _0x534f6b of _0x21a470){const _0x255485=_0x534f6b['start']['isEqual'](_0xc17bd6['end'])||_0x534f6b['end']['isEqual'](_0xc17bd6['start']);if(_0x255485||_0x534f6b['getIntersection'](_0xc17bd6)){const _0x4721a7=_0x534f6b['containsRange'](_0xc17bd6)&&Et(this['_model']['schema'],_0xc17bd6['start'],_0x534f6b),_0x2bd719=_0xc17bd6['containsRange'](_0x534f6b)&&Et(this['_model']['schema'],_0x534f6b['start'],_0xc17bd6);_0x1acf48['push']({'suggestion':_0x118de8,'meta':{'isOwn':_0x2f44ca==_0x118de8['author'],'isNextTo':_0x255485,'isInsideObject':_0x4721a7,'containsRangeInObject':_0x2bd719}}),_0x5c04be=!0x0;break;}}if(_0x5c04be)break;}}return _0x1acf48;}['_addSuggestionMarker'](_0x4ad5b4,_0x2304e3,_0x5a08a6,_0x1ec24a,_0x3e2236){this['_model']['change'](_0x4e1411=>{let _0x5de8f7='suggestion:'+_0x4ad5b4+':'+_0x2304e3+':'+_0x5a08a6;_0x3e2236&&(_0x5de8f7=_0x5de8f7+':'+_0x3e2236),_0x4e1411['addMarker'](_0x5de8f7,{'range':_0x1ec24a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4c0592){const _0x18772f=_0x4c0592['previous'],_0x9847a6=_0x4c0592['next'];_0x4c0592['previous']=null,_0x4c0592['next']=null,null!=_0x18772f&&_0x18772f['next']==_0x4c0592&&(_0x18772f['next']=_0x9847a6),null!=_0x9847a6&&_0x9847a6['previous']==_0x4c0592&&(_0x9847a6['previous']=_0x18772f),'ready'==this['_suggestionState']['get'](_0x4c0592)&&(this['_suggestionState']['set'](_0x4c0592,'removed'),this['fire']('suggestionUnloaded',_0x4c0592,_0x18772f,_0x9847a6));}['_setSuggestionData'](_0x129e35){const _0x2fe200=_0x129e35['id'],_0x58d039=this['addSuggestionData'](_0x129e35);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x48ecac=this['editor']['plugins']['get']('PendingActions'),_0x2ba415=_0x58d039['hasComments'],_0x35d937=_0x58d039['subType']?_0x58d039['type']+':'+_0x58d039['subType']:_0x58d039['type'],_0x2bfbdb=this['editor']['locale'],_0x1a0c90=_0x48ecac['add'](o(_0x2bfbdb,'PENDING_ACTION_SUGGESTION')),_0x586e17={'id':_0x2fe200,'type':_0x35d937,'hasComments':_0x2ba415,'data':_0x129e35['data']||null,'originalSuggestionId':_0x129e35['originalSuggestionId']||null,'attributes':_0x58d039['attributes']};this['_adapter']['addSuggestion'](_0x586e17)['then'](_0x3606ec=>{_0x58d039['_saved']=!0x0,_0x48ecac['remove'](_0x1a0c90),_0x3606ec&&_0x3606ec['createdAt']&&(this['_suggestions']['get'](_0x2fe200)['createdAt']=_0x3606ec['createdAt']);})['catch'](_0x4d4a4e=>{throw _0x1e894b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x58d039['discard']();}),_0x58d039['stopListening'](),this['_suggestions']['delete'](_0x58d039['id']),this['_suggestionState']['delete'](_0x58d039),_0x4d4a4e;});}return _0x58d039;}['_isBlockAttribute'](_0x94488d){return this['_blockAttributeKeys']['has'](_0x94488d);}['_updateSuggestionData'](_0x4a0738,_0x5a85eb){const _0x53fde2=this['editor']['plugins']['get']('PendingActions'),_0x4104b2=this['getSuggestion'](_0x4a0738);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4104b2['_saved']){const _0x4b8138=_0x53fde2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4a0738,_0x5a85eb)['then'](()=>{_0x53fde2['remove'](_0x4b8138);});}else _0x4104b2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4a0738,_0x5a85eb);});}}['_getSuggestionData'](_0x304dca){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2f735b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x304dca);}['_handleNewSuggestionMarker'](_0x33b3a0){const {id:_0x3c23c8,type:_0x1b9811,subType:_0x13c817,authorId:_0x59f7e4}=this['_splitMarkerName'](_0x33b3a0),_0x2180cd=this['_suggestions']['get'](_0x3c23c8)||this['_createSuggestion'](_0x1b9811,_0x13c817,_0x3c23c8,_0x59f7e4,{});switch(this['_checkSuggestionCorrectness'](_0x2180cd,_0x1b9811,_0x13c817,_0x59f7e4),this['_suggestionState']['get'](_0x2180cd)){case'notReady':this['_getSuggestionData'](_0x3c23c8)['then'](_0x2cbe6a=>{let _0x5bb4d6=Promise['resolve']();_0x2cbe6a['hasComments']&&(_0x5bb4d6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3c23c8})),_0x5bb4d6['then'](()=>{this['addSuggestionData'](_0x2cbe6a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2180cd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3c23c8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2180cd,'ready'),this['fire']('suggestionLoaded',_0x2180cd);break;case'ready':this['fire']('suggestionChanged',_0x2180cd);}return _0x2180cd['addMarkerName'](_0x33b3a0),_0x2180cd;}['_refreshSuggestionsChain'](_0x518bde){const _0xb6687f=Array['from'](_0x518bde),_0x4d1924=_0xb6687f['filter'](_0x18d708=>'attribute'==_0x18d708['type']);this['_refreshAttributeSuggestionsChain'](_0x4d1924);const _0x19cd71=_0xb6687f['filter'](_0x24f9ef=>!_0x24f9ef['isMultiRange']&&'attribute'!=_0x24f9ef['type']),_0x80018a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26c9a2=>!_0x26c9a2['isMultiRange']&&'attribute'!=_0x26c9a2['type']),_0x3d33e4=_0x80018a['filter'](_0x3ce53b=>!_0x518bde['has'](_0x3ce53b)),_0x4de77c=new Map(_0x80018a['map'](_0x1be6d2=>[_0x1be6d2,this['_suggestionFactory']['getSuggestionCallback'](_0x1be6d2['type'],_0x1be6d2['subType'],'chain')])),_0x47fecd=new Map(_0x80018a['map'](_0x21cbab=>[_0x21cbab,_0x21cbab['getFirstRange']()])),_0x4e2db0=new Set(),_0x3738a4=new Set();for(let _0x34e187=0x0;_0x34e187<_0x19cd71['length'];_0x34e187++)_0x521248(_0x19cd71[_0x34e187],_0x19cd71,_0x34e187+0x1);for(let _0x55659d=0x0;_0x55659d<_0x19cd71['length'];_0x55659d++)_0x521248(_0x19cd71[_0x55659d],_0x3d33e4,0x0);const _0xf53c3d=new Set();for(let _0x1623b3=0x0;_0x1623b3<_0x19cd71['length'];_0x1623b3++){const _0x3d04ad=_0x19cd71[_0x1623b3];!_0x3738a4['has'](_0x3d04ad)&&_0x3d04ad['previous']&&(_0xf53c3d['add'](_0x3d04ad['previous']),_0x3d04ad['previous']['next']===_0x3d04ad&&(_0x3d04ad['previous']['next']=null),_0x3d04ad['previous']=null),!_0x4e2db0['has'](_0x3d04ad)&&_0x3d04ad['next']&&(_0xf53c3d['add'](_0x3d04ad['next']),_0x3d04ad['next']['previous']===_0x3d04ad&&(_0x3d04ad['next']['previous']=null),_0x3d04ad['next']=null);}function _0x521248(_0x51f155,_0x4f776b,_0x186e34){for(let _0x55bb52=_0x186e34;_0x55bb52<_0x4f776b['length'];_0x55bb52++){const _0x35a574=_0xab978a(_0x51f155,_0x4f776b[_0x55bb52]);_0x35a574&&(_0x35a574[0x0]['next']=_0x35a574[0x1],_0x35a574[0x1]['previous']=_0x35a574[0x0],_0x4e2db0['add'](_0x35a574[0x0]),_0x3738a4['add'](_0x35a574[0x1]));}}function _0xab978a(_0x5ddd08,_0x165840){if(_0x5ddd08['author']['id']!==_0x165840['author']['id'])return null;const _0x5d80c7=_0x4de77c['get'](_0x5ddd08)(_0x5ddd08,_0x165840,_0x47fecd['get'](_0x5ddd08),_0x47fecd['get'](_0x165840));if(!_0x5d80c7)return null;return _0x4de77c['get'](_0x165840)(_0x5ddd08,_0x165840,_0x47fecd['get'](_0x5ddd08),_0x47fecd['get'](_0x165840))?_0x5d80c7[0x1]['commentThread']&&_0x5d80c7[0x1]['commentThread']['length']?null:_0x5d80c7:null;}_0xf53c3d['size']&&this['_refreshSuggestionsChain'](_0xf53c3d);}['_refreshAttributeSuggestionsChain'](_0x27fe9b){if(0x0==_0x27fe9b['length'])return;const _0x6f69b8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5855ce=>'attribute'==_0x5855ce['type']&&_0x5855ce['_isDataLoaded']),_0x234a51=[],_0x1fe615=new Map();for(const _0x126632 of _0x6f69b8){const _0xd31696=_0x115a16(_0x126632['attributes']);_0x1fe615['has'](_0xd31696)||(_0x1fe615['set'](_0xd31696,_0x234a51['length']),_0x234a51['push']([]));const _0x3c41ad=_0x1fe615['get'](_0xd31696);_0x234a51[_0x3c41ad]['push'](_0x126632);}!(function(){_0x234a51['sort']((_0x14285f,_0xe72cc0)=>{const _0x51b856=_0x14285f[0x0]['createdAt'],_0x26ef0c=_0xe72cc0[0x0]['createdAt'];return _0x51b856==_0x26ef0c?_0x14285f[0x0]['attributes']['groupId']<_0xe72cc0[0x0]['attributes']['groupId']?-0x1:0x1:_0x51b856<_0x26ef0c?-0x1:0x1;});for(const _0x1c6e36 of _0x234a51)_0x1c6e36['sort']((_0x1bf53c,_0x4b2222)=>_0x1bf53c['id']<_0x4b2222['id']?-0x1:0x1);}());for(let _0x58306d=0x0;_0x58306d<_0x234a51['length'];_0x58306d++){if(0x0==_0x234a51[_0x58306d]['length'])continue;const _0x5022a9=[];for(let _0x4337ac=_0x58306d+0x1;_0x4337ac<_0x234a51['length'];_0x4337ac++)0x0!=_0x234a51[_0x4337ac]['length']&&_0x2c73e1(_0x234a51[_0x58306d],_0x234a51[_0x4337ac])&&_0x5022a9['push'](_0x4337ac);for(const _0x685ca2 of _0x5022a9)_0x234a51[_0x58306d]=_0x234a51[_0x58306d]['concat'](_0x234a51[_0x685ca2]),_0x234a51[_0x685ca2]=[];}for(const _0x1dca6d of _0x234a51)for(let _0x582dd5=0x0;_0x582dd5<_0x1dca6d['length'];_0x582dd5++){const _0x4d4dea=_0x1dca6d[_0x582dd5+0x1]||null;_0x1dca6d[_0x582dd5]['next']!==_0x4d4dea&&(_0x1dca6d[_0x582dd5]['next']=_0x4d4dea);}for(const _0x313d92 of _0x234a51)for(let _0x5c646f=0x0;_0x5c646f<_0x313d92['length'];_0x5c646f++){const _0x51b660=_0x313d92[_0x5c646f-0x1]||null;_0x313d92[_0x5c646f]['previous']!==_0x51b660&&(_0x313d92[_0x5c646f]['previous']=_0x51b660);}function _0x2c73e1(_0x5066a9,_0x21ef52){if(_0x5066a9[0x0]['attributes']['groupId']!==_0x21ef52[0x0]['attributes']['groupId']&&_0x5066a9[0x0]['author']!==_0x21ef52[0x0]['author'])return!0x1;if(!function(_0x598643,_0x2c777a){if(!_0x598643['hasComments']&&!_0x2c777a['hasComments'])return!0x0;if(_0x598643['hasComments']&&_0x2c777a['hasComments'])return!0x1;if(_0x598643['hasComments']&&_0x2c777a['createdAt']<_0x598643['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2c777a['hasComments']&&_0x598643['createdAt']<_0x2c777a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5066a9[0x0],_0x21ef52[0x0]))return!0x1;const _0x306510=Rt(_0x5066a9[0x0]['attributes'],'groupId'),_0xe2b00b=Rt(_0x21ef52[0x0]['attributes'],'groupId');if(!_0x10d9b1(_0x306510,_0xe2b00b))return!0x1;return!!_0x5066a9['every'](_0x57f7a6=>_0x21ef52['some'](_0x5818f6=>_0x57f7a6['getFirstRange']()['isEqual'](_0x5818f6['getFirstRange']())))&&_0x21ef52['every'](_0x3119a7=>_0x5066a9['some'](_0x5ab076=>_0x3119a7['getFirstRange']()['isEqual'](_0x5ab076['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x283fca){const _0x2cfad5=Array['from'](_0x283fca),_0x32d1da=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1b84c0=_0x32d1da['filter'](_0x44ffcf=>!_0x283fca['has'](_0x44ffcf)),_0x17be39=new Map(_0x2cfad5['map'](_0x2bcec9=>[_0x2bcec9,this['_suggestionFactory']['getSuggestionCallback'](_0x2bcec9['type'],_0x2bcec9['subType'],'join')])),_0x5ef1a7=new Map(_0x32d1da['map'](_0x5b5ce3=>[_0x5b5ce3,_0x5b5ce3['getRanges']()]));for(let _0x3624de=0x0;_0x3624de<_0x2cfad5['length'];_0x3624de++){if(_0x1c51b(this,_0x2cfad5[_0x3624de],_0x2cfad5,_0x3624de+0x1))return!0x0;}for(let _0x581632=0x0;_0x581632<_0x2cfad5['length'];_0x581632++){if(_0x1c51b(this,_0x2cfad5[_0x581632],_0x1b84c0,0x0))return!0x0;}return!0x1;function _0x1c51b(_0x384f08,_0x4d56d8,_0x53962a,_0x57561f){for(let _0x30f007=_0x57561f;_0x30f007<_0x53962a['length'];_0x30f007++){const _0x11270d=_0x53962a[_0x30f007];if(_0x11270d['type']!==_0x4d56d8['type']||_0x11270d['author']['id']!==_0x4d56d8['author']['id']||_0x11270d['subType']!==_0x4d56d8['subType'])continue;if(!Jt(_0x4d56d8,_0x11270d))continue;if('attribute'==_0x4d56d8['type']&&_0x4d56d8['data']['oldValue']!=_0x11270d['data']['oldValue'])continue;if('attribute'==_0x4d56d8['type']&&_0x384f08['_isBlockAttribute'](_0x4d56d8['data']['key']))continue;if('formatBlock'==_0x4d56d8['type']){const _0x5461a1=_0x384f08['editor']['model'],_0x459e60=_0x4d56d8['getContainedElement']();if(_0x459e60&&(_0x5461a1['schema']['isObject'](_0x459e60)||_0x5461a1['schema']['isLimit'](_0x459e60)))continue;}const _0x54d8f2=_0x17be39['get'](_0x4d56d8),_0x5df007=_0x5ef1a7['get'](_0x4d56d8),_0x54c1f6=_0x5ef1a7['get'](_0x11270d),_0x509ea0=_0x4d56d8['commentThread']&&_0x4d56d8['commentThread']['length'],_0x3241fa=_0x11270d['commentThread']&&_0x11270d['commentThread']['length'];if(!_0x509ea0&&_0x54d8f2(_0x54c1f6,_0x5df007))return _0x384f08['_joinSuggestions'](_0x11270d,_0x4d56d8),_0x5ef1a7['delete'](_0x4d56d8),!0x0;if(!_0x3241fa&&_0x54d8f2(_0x5df007,_0x54c1f6))return _0x384f08['_joinSuggestions'](_0x4d56d8,_0x11270d),_0x5ef1a7['delete'](_0x11270d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x52c3b4,_0x16db1d){if(_0x52c3b4['isMultiRange']){for(const _0xa0d98c of _0x16db1d['getRanges']())_0x52c3b4['addRange'](_0xa0d98c);}else{const _0x17acec=_0x16db1d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x52c3b4,this['_model']['createRange'](_0x52c3b4['getFirstRange']()['start'],_0x17acec));}_0x16db1d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2cd3c0,_0x326e54,_0x219846){const _0x279cdb=_0x2cd3c0['startsWith']('format')||_0x2cd3c0['startsWith']('attribute')?'FORMATTING':_0x2cd3c0['toUpperCase']();return o(this['editor']['locale'],_0x326e54+'_'+_0x279cdb+'_SUGGESTION_ANNOUNCEMENT',_0x219846);}['_initAriaMarkerChangeAnnouncements'](){const _0x3726aa=this['editor'];if(!_0x3726aa['ui'])return;const {ariaLiveAnnouncer:_0x39d527}=_0x3726aa['ui'];_0x31b647(this['_model'],({left:_0x5a090c,entered:_0x4aff72})=>{for(const _0x35f214 of _0x5a090c){const {group:_0x201467,type:_0x1a7ce1}=this['_splitMarkerName'](_0x35f214['name']);if('suggestion'===_0x201467){_0x39d527['announce'](this['_getMarkerAnnouncementText'](_0x1a7ce1,'LEAVE'));break;}}for(const _0x567d11 of _0x4aff72){const {group:_0xb4e9b0,type:_0x5258e3}=this['_splitMarkerName'](_0x567d11['name']);if('suggestion'===_0xb4e9b0){_0x39d527['announce'](this['_getMarkerAnnouncementText'](_0x5258e3,'ENTER',_0x3a49cf(_0x2cdcf8)));break;}}});}['_processAttributeChanges'](_0x4d03df){if(this['_recordAttributeSuggestions'])return!0x1;const _0x145db3=this['editor'],_0x55e2b3=_0x145db3['model']['document']['differ']['getChanges']();if(0x0==_0x55e2b3['length'])return!0x1;const _0x402fda=[],_0x1d3497=_0x55e2b3['filter'](_0x1fa47f=>'attribute'==_0x1fa47f['type']),_0x383689=_0x55e2b3['filter'](_0x354dc4=>'insert'==_0x354dc4['type']&&'$text'!=_0x354dc4['name']),_0x3bc74d=_0x55e2b3['filter'](_0x4fbaec=>'remove'==_0x4fbaec['type']&&'$text'!=_0x4fbaec['name']);for(const _0x1ad83a of _0x1d3497)_0x402fda['push']({'key':_0x1ad83a['attributeKey'],'newValue':_0x1ad83a['attributeNewValue'],'oldValue':_0x1ad83a['attributeOldValue'],'range':Ft(_0x1ad83a['range'],_0x145db3['model'])});for(const _0x2135af of _0x383689){const _0x17c306=_0x3bc74d['find'](_0x343b69=>_0x343b69['position']['isEqual'](_0x2135af['position']));_0x17c306&&_0x402fda['push']({'key':m,'newValue':_0x2135af['name'],'oldValue':_0x17c306['name'],'range':_0x145db3['model']['createRangeOn'](_0x2135af['position']['nodeAfter'])});}return 0x0!=_0x402fda['length']&&this['_reduceExistingSuggestions'](_0x4d03df,_0x402fda);}['_processAttributeSuggestions'](_0x196e39){let _0xf85936=!0x1;const _0x4bc796=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a2330=>_0x2a2330['data']['newRange']&&_0x2a2330['name']['startsWith']('suggestion:attribute:'));for(const _0x13b50b of _0x4bc796){const {subType:_0x270b23,id:_0x8a73a7}=this['_splitMarkerName'](_0x13b50b['name']),_0x41978d=_0x270b23['split']('|')[0x0];for(const _0x40670d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x40670d['id']!=_0x8a73a7&&'attribute'==_0x40670d['type']&&_0x40670d['data']&&_0x40670d['data']['key']==_0x41978d&&_0x40670d['getFirstRange']()['isIntersecting'](_0x13b50b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x40670d,_0x13b50b['data']['newRange'],_0x196e39),_0xf85936=!0x0);}return _0xf85936;}['_recordAttributeChanges'](_0x3e7b39){this['_recordAttributeSuggestions']=!0x0,_0x3e7b39();}['_isRegisteredAttribute'](_0x58671e){const _0x48318d=this['_isBlockAttribute'](_0x58671e),_0xa35f1d=this['_inlineAttributeKeys']['has'](_0x58671e);return _0x48318d||_0xa35f1d;}['_reduceExistingSuggestions'](_0x16b8b5,_0x18ad44){if(0x0==_0x18ad44['length'])return!0x1;let _0x5d89e7=!0x1;for(const _0x277a66 of _0x18ad44){const _0x1369d8=this['_findSuggestions'](_0x277a66['range'],'attribute')['filter'](_0x3ea100=>!_0x3ea100['meta']['isNextTo'])['map'](_0x4ab620=>_0x4ab620['suggestion']),_0x10f5a7=_0x115a16({'newValue':_0x277a66['newValue']});_0x1369d8['filter'](_0x422b87=>{const [_0x5265ef,_0x50c3e3]=_0x422b87['subType']['split']('|');return _0x5265ef==_0x277a66['key']&&_0x50c3e3!=_0x10f5a7;})['forEach'](_0x8cbbf=>{this['_reduceSuggestionAttributeRange'](_0x8cbbf,_0x277a66['range'],_0x16b8b5),_0x5d89e7=!0x0;});}return _0x5d89e7;}['_reduceSuggestionAttributeRange'](_0x3aa8d5,_0x1899a9,_0x131358){const _0x293507=_0x3aa8d5['getFirstRange']()['getDifference'](_0x1899a9);0x0!==_0x293507['length']?0x1!==_0x293507['length']?this['_breakSuggestionMarker'](_0x3aa8d5,_0x1899a9['start'],_0x1899a9['end']):this['_setSuggestionRange'](_0x3aa8d5,_0x293507[0x0]):_0x131358['removeMarker'](_0x3aa8d5['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x27eac1){this['_editor']=_0x27eac1,this['_model']=_0x27eac1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5815c4,_0xe2be85,_0x4c8b1b,_0x20f171,_0x3b28ee,_0x3fdff9){return new u(this['_model'],{'type':_0x5815c4,'subType':_0xe2be85,'id':_0x4c8b1b,'author':_0x20f171,'creator':_0x20f171,'attributes':_0x3b28ee,'onAttributesChange':_0x3fdff9,'onAccept':(..._0x5a9fdb)=>this['getSuggestionCallback'](_0x5815c4,_0xe2be85,'accept')(..._0x5a9fdb),'onDiscard':(..._0x1db212)=>this['getSuggestionCallback'](_0x5815c4,_0xe2be85,'discard')(..._0x1db212)});}['registerCustomCallback'](_0x3db6f7,_0x95d219,_0x3b118b,_0x2af30b){const _0x4a507a=_0x3db6f7+':'+_0x95d219+':'+_0x3b118b;this['_customCallbacks']['set'](_0x4a507a,_0x2af30b);}['getSuggestionCallback'](_0x2eb015,_0x328ee0,_0x23508d){const _0xf37a45=_0x2eb015+':'+_0x328ee0+':'+_0x23508d;return this['_customCallbacks']['get'](_0xf37a45)||this['_defaultCallbacks']['get'](_0x2eb015+':'+_0x23508d);}['_registerDefaultCallbacks'](){const _0x3d0373=()=>!0x1,_0x4ccbb1=_0x3e315c=>{_0x3e315c['sort']((_0x3ce410,_0x5daf06)=>_0x3ce410['start']['isBefore'](_0x5daf06['start'])?0x1:-0x1),this['_model']['change'](_0x26b933=>{for(const _0x3207f7 of _0x3e315c){let _0xdc1b72;_0xdc1b72=_0x3207f7['end']['isAtEnd']&&_0x3207f7['end']['parent']==_0x3207f7['start']['nodeAfter']?_0x26b933['createSelection'](_0x3207f7['start']['nodeAfter'],'on'):_0x26b933['createSelection'](_0x3207f7),this['_model']['deleteContent'](_0xdc1b72,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x578739=(_0x3263b2,_0x4629f8)=>{_0x4629f8&&this['_model']['change'](_0x134d8d=>{const {commandName:_0x28ef5c,commandParams:_0x214112=[]}=_0x4629f8,_0x519863=_0x3263b2['map'](_0x29e6a2=>(Vt(_0x29e6a2)&&(_0x29e6a2=this['_model']['createRange'](_0x29e6a2['end'])),_0x29e6a2))['filter'](_0x276520=>'$graveyard'!==_0x276520['root']['rootName']);if(_0x519863['length']<0x1)return;const _0x44013f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x527217=>_0x1eeee4['fromRange'](_0x527217));_0x134d8d['setSelection'](_0x519863);for(const _0x539004 of this['_editor']['commands']['commands']())_0x539004['refresh']();_0x214112['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x28ef5c,..._0x214112);const _0x37e6e3=_0x44013f['filter'](_0x5077cd=>'$graveyard'!=_0x5077cd['root']['rootName']);_0x37e6e3['length']>0x0&&_0x134d8d['setSelection'](_0x37e6e3);for(const _0xf65362 of _0x44013f)_0xf65362['detach']();});},_0x1d4bb6=(_0xcfe454,_0x2495d2)=>0x1==_0xcfe454['length']&&0x1==_0x2495d2['length']&&_0xcfe454[0x0]['end']['isEqual'](_0x2495d2[0x0]['start']),_0x3ced21=(_0x44d637,_0x43a655,_0x5a0f61,_0x23ba6a)=>Ht(_0x44d637,_0x43a655,_0x5a0f61,_0x23ba6a,this['_model'])?[_0x44d637,_0x43a655]:Ht(_0x43a655,_0x44d637,_0x23ba6a,_0x5a0f61,this['_model'])?[_0x43a655,_0x44d637]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3d0373),this['_defaultCallbacks']['set']('insertion:discard',_0x4ccbb1),this['_defaultCallbacks']['set']('insertion:join',_0x1d4bb6),this['_defaultCallbacks']['set']('insertion:chain',_0x3ced21),this['_defaultCallbacks']['set']('deletion:accept',_0x4ccbb1),this['_defaultCallbacks']['set']('deletion:discard',_0x3d0373),this['_defaultCallbacks']['set']('deletion:join',_0x1d4bb6),this['_defaultCallbacks']['set']('deletion:chain',_0x3ced21),this['_defaultCallbacks']['set']('formatInline:accept',_0x578739),this['_defaultCallbacks']['set']('formatInline:discard',_0x3d0373),this['_defaultCallbacks']['set']('formatInline:join',_0x1d4bb6),this['_defaultCallbacks']['set']('formatInline:chain',_0x3d0373),this['_defaultCallbacks']['set']('formatBlock:accept',_0x578739),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3d0373),this['_defaultCallbacks']['set']('formatBlock:join',_0x1d4bb6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3d0373),this['_defaultCallbacks']['set']('attribute:accept',_0x3d0373),this['_defaultCallbacks']['set']('attribute:discard',(_0x138fee,_0xb61517)=>{if(!_0xb61517)return;const _0x14128f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2c9029=>{if(_0xb61517['key']==m)for(const _0x4746ac of _0x138fee){const _0x3ed69e=_0x4746ac['start']['nodeAfter'],_0x2d05e5=_0xb61517['oldValue'];_0x2c9029['rename'](_0x3ed69e,_0x2d05e5);}else{if(_0x14128f['_isBlockAttribute'](_0xb61517['key'])){for(const _0x43bd6a of _0x138fee)void 0x0!==_0xb61517['oldValue']?_0x2c9029['setAttribute'](_0xb61517['key'],_0xb61517['oldValue'],_0x43bd6a['start']['nodeAfter']):_0x2c9029['removeAttribute'](_0xb61517['key'],_0x43bd6a['start']['nodeAfter']);}else{for(const _0x161e1c of _0x138fee)_0xb61517['oldValue']?_0x2c9029['setAttribute'](_0xb61517['key'],_0xb61517['oldValue'],_0x161e1c):_0x2c9029['removeAttribute'](_0xb61517['key'],_0x161e1c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1d4bb6);}}function Et(_0x4c988c,_0xcd5190,_0x248b82){for(const _0x3fef16 of _0xcd5190['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3fef16['root']==_0x3fef16)return!0x1;if(!_0x248b82['containsItem'](_0x3fef16))return!0x1;if(_0x4c988c['isObject'](_0x3fef16)||_0x4c988c['isLimit'](_0x3fef16))return!0x0;}return!0x1;}function Vt(_0x1961ed){return _0x1961ed['end']['parent']==_0x1961ed['start']['nodeAfter']&&_0x1961ed['end']['isAtStart'];}function Ut(_0x5c8e98,_0x11ff07,_0x45f137,_0x4b8648){const _0xee42ef=_0x340d03=>!_0x340d03['item']['is']('$textProxy')&&!_0x4b8648['isObject'](_0x340d03['item']),_0x40709e=_0x5c8e98['start']['getLastMatchingPosition'](_0xee42ef),_0x227d3b=_0x5c8e98['end']['getLastMatchingPosition'](_0xee42ef,{'direction':'backward'});return(!_0x5c8e98['start']['isEqual'](_0x40709e)||!_0x5c8e98['end']['isEqual'](_0x227d3b))&&(_0x40709e['isBefore'](_0x227d3b)?_0x45f137['updateMarker'](_0x11ff07,{'range':_0x45f137['createRange'](_0x40709e,_0x227d3b)}):_0x45f137['removeMarker'](_0x11ff07),!0x0);}function Pt(_0x2920b4){return _0x115a16(_0x2920b4);}function Gt(_0x28cc7e){const _0x5abd0d=_0x28cc7e['start']['nodeAfter'];return _0x5abd0d&&_0x5abd0d['is']('element');}function Ft(_0x3f0d1c,_0x2876e1){return null==_0x3f0d1c['end']['nodeBefore']&&_0x3f0d1c['end']['parent']==_0x3f0d1c['start']['nodeAfter']?Lt(_0x3f0d1c['start']['nodeAfter'],_0x2876e1):_0x3f0d1c;}function Lt(_0x25fea0,_0x198a83){const _0x52cdb2=_0x198a83['schema']['isObject'](_0x25fea0)||_0x198a83['schema']['isSelectable'](_0x25fea0);return _0x198a83['createRange'](_0x198a83['createPositionAt'](_0x25fea0,'before'),_0x52cdb2?_0x198a83['createPositionAfter'](_0x25fea0):_0x198a83['createPositionAt'](_0x25fea0,'end'));}function Ht(_0x4a7864,_0x4e0e96,_0x2167fd,_0xca527c,_0x236f5e){if(_0x4a7864['next'])return!0x1;if(!Jt(_0x4a7864,_0x4e0e96))return!0x1;if(_0x2167fd['end']['isEqual'](_0xca527c['start']))return!0x0;if(_0x4a7864['type']!=_0x4e0e96['type'])return!0x1;if(!_0x2167fd['end']['isTouching'](_0xca527c['start']))return!0x1;const _0x2f0c22=_0x236f5e['createRange'](_0x2167fd['end'],_0xca527c['start'])['getWalker']();for(const _0x423ad7 of _0x2f0c22)if(['elementStart','elementEnd']['includes'](_0x423ad7['type'])&&_0x236f5e['schema']['isLimit'](_0x423ad7['item']))return!0x1;return!0x0;}function Jt(_0x55de90,_0x1e7e09){if(!_0x55de90['_isDataLoaded']||!_0x1e7e09['_isDataLoaded'])return!0x1;const _0x36fcca=new Set(Object['keys'](_0x55de90['attributes'])),_0x7dcbf5=new Set(Object['keys'](_0x1e7e09['attributes']));if(_0x36fcca['delete']('groupId'),_0x7dcbf5['delete']('groupId'),0x0==_0x36fcca['size']&&0x0==_0x7dcbf5['size'])return!0x0;if(_0x36fcca['size']!=_0x7dcbf5['size'])return!0x1;const _0x555401={..._0x55de90['attributes']},_0x330205={..._0x1e7e09['attributes']};return delete _0x555401['groupId'],delete _0x330205['groupId'],JSON['stringify'](_0x555401)==JSON['stringify'](_0x330205);}function qt(_0x22b5a7,_0x1af863){const _0x5a331e=zt(_0x22b5a7['attributes']),_0x23157f=zt(_0x1af863);if(!_0x22b5a7['_isDataLoaded'])return!0x1;for(const _0x58dde1 of Object['keys'](_0x23157f))if(!_0x10d9b1(_0x5a331e[_0x58dde1],_0x23157f[_0x58dde1]))return!0x1;return!0x0;}function zt(_0x1998d8){const _0x17a956=Object['assign']({},_0x1998d8);return delete _0x17a956['skipNestingCheck'],delete _0x17a956['tablePasteChainId'],_0x17a956;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x4f9031(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4da596,_0x5337cd,_0x27292d,_0x4edbc9){super(),this['model']=_0x5337cd,this['view']=_0x27292d,this['commentThreadController']=_0x4edbc9,this['_editor']=_0x4da596,this['_acceptCommand']=_0x4da596['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4da596['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xe4a638,_0x3a2209)=>_0xe4a638||_0x3a2209),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5515f6=>_0x5515f6&&this['_editor']['model']['canEditAt'](_0x5337cd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2ed547=>_0x2ed547&&this['_editor']['model']['canEditAt'](_0x5337cd['getRanges']())),this['_pendingAction']=null,_0x27292d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x27292d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x27292d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x27292d,'change:isDirty',()=>{_0x27292d['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 _0x4d275d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4d275d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5c48ce{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4de915,_0x38f93a,_0x289c8d,_0x283225){super(_0x4de915),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1e2267(_0x4de915,o(_0x4de915,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x38f93a['authoredAt']),this['bind']('authoredAt')['to'](_0x38f93a),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',_0x38f93a,'authoredAt',this,'descriptionParts',(_0xe23af6,_0x3164a8,_0x3ffa8b)=>{const _0x4ef3f7=_0x3ffa8b['map'](_0x444163=>ls(_0x444163['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xe23af6-0x1,_0x38f93a['author']['name'],_0x3164a8?_0x283225['formatDateTime'](_0x3164a8):'',new DOMParser()['parseFromString'](_0x4ef3f7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x11e3bc(),this['focusTracker']=new _0x328256(),this['keystrokes']=new _0x3f0bfa(),this['focusCycler']=new _0x594f2e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x138f59=>_0x138f59['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x38f93a,this['_localUser']=_0x289c8d,this['_config']=_0x283225,_0x283225['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3cb939(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4f5ad8}=this['_config'];this['commentsListView']=new _0x4f5ad8(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',_0x2c6805=>_0x2c6805+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x28945a,_0x45519f)=>_0x28945a||!!_0x45519f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x587785}=this['_config'],_0x4676d2=new _0x587785(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x341148=_0x4676d2['commentInputView'];return _0x4676d2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x341148,'value',(_0x31d152,_0x210269,_0x561a88)=>!!_0x561a88||_0x31d152&&!_0x210269),_0x341148['on']('submit',(_0x23de98,_0x4f96b5)=>{this['fire']('addComment',_0x4f96b5),_0x341148['editor']['setData']('');}),_0x341148['on']('cancel',()=>this['focus']()),_0x341148['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4676d2;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x326b97,_0x47706e,_0x13297f,_0x37cac8){super(_0x326b97,_0x47706e,_0x13297f,_0x37cac8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1db1ae=>_0x1db1ae&&_0x1db1ae[0x0]?_0x1db1ae[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4772ad,_0x2d53e8)=>{let _0xc6296f='';for(const _0x8bfc9b of _0x4772ad)_0xc6296f+='<p>'+ls(_0x8bfc9b['content'],_0x8bfc9b['color'])+'</p>';return _0x2d53e8?_0xc6296f:_0x189d33(_0xc6296f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x37cac8['SuggestionView'](_0x326b97,_0x47706e,{'formatDateTime':_0x37cac8['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 _0x3feebc=this['bindTemplate'],_0xe85350=[this['suggestionView']];return this['commentsListView']&&_0xe85350['push'](this['commentsListView']),this['commentThreadInputView']&&_0xe85350['push'](this['commentThreadInputView']),_0xe85350['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3feebc['if']('isActive','ck-suggestion-wrapper--active'),_0x3feebc['to']('type',_0xf6a757=>'ck-suggestion-'+_0xf6a757),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':_0x3feebc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xe85350};}['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 _0x5c48ce{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x38e132,_0x422372,_0x5e6f12){super(_0x38e132),this['_model']=_0x422372,this['_config']=_0x5e6f12,this['set']('description',''),this['bind']('authoredAt')['to'](_0x422372),this['acceptButton']=this['_createButton'](o(_0x38e132,'Accept\x20suggestion'),_0x129e38['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x38e132,'Discard\x20suggestion'),_0x129e38['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x25caa3(_0x38e132,_0x422372['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x11e3bc([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x328256(),this['keystrokes']=new _0x3f0bfa(),this['focusCycler']=new _0x594f2e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1a240e=>_0x1a240e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xe50baa=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xe50baa['innerHTML']=this['description'],this['on']('change:description',(_0x2d937c,_0x200f0c,_0x3ec1df)=>{_0xe50baa['innerHTML']=_0x3ec1df;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3fe16f=this['bindTemplate'],_0x308a85=[{'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':_0x3fe16f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3fe16f['to']('authoredAt',_0x569457=>this['_config']['formatDateTime'](_0x569457))}]}]},{'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']&&_0x308a85['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':_0x308a85}]};}['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'](_0x313349,_0x1e9414,_0x56c8cf,_0x4dfd9e,_0x42a865){const _0x14ab74=new _0x388278(this['locale']);return _0x14ab74['set']({'label':_0x313349,'icon':_0x1e9414,'tooltip':!0x0,'tooltipPosition':_0x42a865}),_0x14ab74['extendTemplate']({'attributes':{'class':_0x56c8cf}}),_0x14ab74['on']('execute',()=>{this['fire'](_0x4dfd9e,this['_model']['id']);}),_0x14ab74;}['_setupKeyboardNavigation'](){const _0x4358ec=this['element'];this['keystrokes']['listenTo'](_0x4358ec);for(const _0x320c69 of this['focusables'])this['focusTracker']['add'](_0x320c69['element']),this['keystrokes']['listenTo'](_0x320c69['element']);this['keystrokes']['set']('enter',(_0x919a8a,_0x52f317)=>{_0x4358ec===_0x919a8a['target']&&(this['focusCycler']['focusFirst'](),_0x52f317());}),this['keystrokes']['set']('esc',(_0x211dd2,_0x10d6ef)=>{_0x4358ec!==_0x211dd2['target']&&(this['focus'](),_0x10d6ef());});}}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 _0x16a2ad{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5680c5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x372f5a){super(_0x372f5a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x19ed8e=this['editor']['config'];_0x19ed8e['define']('trackChanges.SuggestionThreadView',re),_0x19ed8e['define']('trackChanges.SuggestionView',ce),_0x19ed8e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x19ed8e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4c6bce,_0xdddd07){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x517aff,_0x30ce37]of this['_handleControllerBuffer']){const _0x3615dd=this['_suggestionToController']['has'](_0x517aff);_0x3615dd||_0x30ce37?_0x3615dd&&_0x30ce37&&this['_destroyController'](_0x517aff):this['_initializeController'](_0x517aff);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4c6bce,_0xdddd07);}['init'](){const _0x5ea4a8=this['editor'],_0x15a2ab=_0x5ea4a8['plugins']['get']('TrackChangesEditing'),_0x239e8b=_0x5ea4a8['plugins']['get']('Annotations'),_0x55b2dc=_0x5ea4a8['plugins']['get']('EditorAnnotations'),_0x23f9bc=_0x5ea4a8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x55b2dc['addSourceCollector'](()=>{const _0x559bba=[];for(const [_0x599a2f,_0x2af9c8]of Array['from'](this['_suggestionToController'])){const _0x146191=_0x599a2f['getAllAdjacentSuggestions'](),_0x4c02c8=[];for(const _0x3e9daf of _0x146191){if(!_0x3e9daf['isInContent'])continue;if(_0x3e9daf['isMultiRange']){_0x4c02c8['push'](..._0x3e9daf['getRanges']());continue;}const _0x3b6dd1=_0x3e9daf['getFirstRange']();if(_0x4c02c8['length']>0x0){const _0x1b3a42=_0x4c02c8[0x0]['getJoined'](_0x3b6dd1);if(_0x1b3a42){_0x4c02c8[0x0]=_0x1b3a42;continue;}}_0x4c02c8['push'](_0x3b6dd1);}_0x559bba['push']([_0x2af9c8['view'],_0x4c02c8]);}return _0x559bba;}),this['listenTo'](_0x15a2ab,'suggestionLoaded',(_0x43a95d,_0x31415b)=>{this['listenTo'](_0x31415b,'change:previous',(_0x574ba7,_0x4cf6ae,_0x21ff20,_0x4f257f)=>{_0x31415b['isInContent']&&(null==_0x21ff20?(this['_updateController'](_0x4f257f['head']),this['_handleSuggestionControllerDelayed'](_0x31415b,!0x1)):(this['_updateController'](_0x21ff20['head']),null==_0x4f257f&&this['_handleSuggestionControllerDelayed'](_0x31415b,!0x0)));}),null!==_0x31415b['previous']?this['_updateController'](_0x31415b['head']):this['_handleSuggestionControllerDelayed'](_0x31415b,!0x1);}),this['listenTo'](_0x15a2ab,'suggestionUnloaded',(_0x33c3c7,_0x3d81f2,_0x577aa7)=>{this['stopListening'](_0x3d81f2,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3d81f2),this['_suggestionToController']['has'](_0x3d81f2)&&this['_destroyController'](_0x3d81f2),_0x577aa7&&this['_updateController'](_0x577aa7['head']);}),this['listenTo'](_0x15a2ab,'suggestionChanged',(_0x2881,_0x31a187)=>{this['_updateController'](_0x31a187);}),this['listenTo'](_0x239e8b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x23f9bc,'addComment',(_0x5b0f90,{threadId:_0x1b495e,isFromAdapter:_0x444e80})=>{if(_0x444e80||!_0x15a2ab['hasSuggestion'](_0x1b495e))return;const _0x5525f2=_0x15a2ab['getSuggestion'](_0x1b495e);this['_suggestionToController']['get'](_0x5525f2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x227c9d=this['editor']['plugins']['get']('Annotations'),_0x49cd74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fa9d8=Array['from'](_0x227c9d['activeAnnotations'],_0xda591c=>_0xda591c['innerView'])['filter'](_0x2ba5d9=>this['_viewToController']['has'](_0x2ba5d9)),_0xcf13ea=[];for(const _0x22d2e6 of _0x1fa9d8){const _0x59bcf0=this['_viewToController']['get'](_0x22d2e6)['model']['getAllAdjacentSuggestions']();_0xcf13ea['push'](..._0x59bcf0['reduce']((_0x2ce8ac,_0x43b001)=>[..._0x2ce8ac,..._0x43b001['getMarkerNames']()],[]));}_0x49cd74['activeMarkers']=_0xcf13ea;}['_addUIComponentsToFactory'](){const _0x14b216=this['editor'],_0x247595=_0x14b216['locale'],_0x95ccfe=o(_0x247595,'Track\x20changes'),_0x3dcf1a=new Wt([{'type':'switchbutton','model':new _0x1596b5({'withText':!0x0,'isToggleable':!0x0,'label':_0x95ccfe,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xd3c1af of _0x3dcf1a)if(me(_0xd3c1af)){const _0x3b5307=_0x14b216['commands']['get'](_0xd3c1af['model']['commandName']);_0xd3c1af['model']['bind']('isOn','isEnabled')['to'](_0x3b5307,'value','isEnabled');}_0x14b216['ui']['componentFactory']['add']('trackChanges',_0x14c117=>this['_createToolbarButton'](_0x14c117,_0x3dcf1a,_0x95ccfe)),_0x14b216['ui']['componentFactory']['add']('menuBar:trackChanges',_0x18c914=>this['_createMenuBarMenu'](_0x18c914,_0x3dcf1a,_0x95ccfe));}['_createToolbarButton'](_0x2d7189,_0x1a02e7,_0x570df3){const _0x1bdb4e=Qt(_0x2d7189,_0x646426),_0x49fa3f=this['editor']['commands']['get']('trackChanges');_0x1bdb4e['buttonView']['set']({'tooltip':_0x570df3,'label':_0x570df3,'icon':he}),_0x1bdb4e['buttonView']['bind']('isOn')['to'](_0x49fa3f,'value'),_0x1bdb4e['buttonView']['on']('execute',()=>{_0x49fa3f['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x1bdb4e,_0x1a02e7,{'role':'menu'});const _0xc2a35c=[];for(const _0x1a78de of _0x1a02e7)me(_0x1a78de)&&_0xc2a35c['push'](this['editor']['commands']['get'](_0x1a78de['model']['commandName']));const _0x5c1731=_0x1bdb4e['buttonView'];return _0x5c1731['actionView']['unbind']('isEnabled'),_0x5c1731['arrowView']['unbind']('isEnabled'),_0x5c1731['actionView']['bind']('isEnabled')['to'](_0x49fa3f,'isEnabled'),_0x5c1731['arrowView']['bind']('isEnabled')['toMany'](_0xc2a35c,'isEnabled',(..._0x1f44e3)=>_0x1f44e3['some'](_0x46473e=>_0x46473e)),_0x1bdb4e['on']('execute',_0x1b8559=>{this['editor']['execute'](_0x1b8559['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1bdb4e;}['_createMenuBarMenu'](_0x37f98b,_0x57d835,_0x218001){const _0x2cf741=new Yt(_0x37f98b),_0x22b24e=this['editor']['commands']['get']('trackChanges');_0x2cf741['buttonView']['set']({'label':_0x218001,'icon':he});const _0x2f5ce2=new Zt(_0x37f98b);for(const _0x399505 of _0x57d835){if('separator'==_0x399505['type']){_0x2f5ce2['items']['add'](new Xt(_0x37f98b));continue;}const _0x22ed8b=new te(_0x37f98b,_0x2cf741),_0x300865=new _0x5c4ce3(_0x37f98b),_0x5b3857=_0x399505['model'];_0x300865['bind'](...Object['keys'](_0x5b3857))['to'](_0x5b3857),_0x300865['delegate']('execute')['to'](_0x2cf741),_0x300865['on']('execute',()=>{this['editor']['execute'](_0x5b3857['commandName']),this['editor']['editing']['view']['focus']();}),_0x22ed8b['children']['add'](_0x300865),_0x2f5ce2['items']['add'](_0x22ed8b);}return _0x2cf741['bind']('isEnabled')['to'](_0x22b24e,'isEnabled'),_0x2cf741['panelView']['children']['add'](_0x2f5ce2),_0x2cf741;}['_initializeController'](_0x468315){const _0xe80444=this['editor'],_0x58ae59=_0xe80444['config'],_0x419898=_0xe80444['plugins']['get']('Annotations'),_0x5a1d32=_0xe80444['plugins']['get']('CommentsRepository'),_0x32e6f6=_0xe80444['plugins']['get']('EditorAnnotations'),_0x5b3214=_0xe80444['plugins']['get'](_0x5680c5)['me'],_0x514eb4=_0x58ae59['get']('trackChanges')['SuggestionThreadView'],_0xa25f88=_0x58ae59['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x37a5f9,CommentThreadInputView:_0x5243b1}=_0xe80444['plugins']['get']('CommentsUI');let _0x68acf5,_0x56ead3,_0x1f9d74;this['_annotationViews']['has'](_0x468315['id'])?(_0x56ead3=this['_annotationViews']['get'](_0x468315['id']),_0x68acf5=_0x56ead3['mainView']):(_0x68acf5=new _0x514eb4(_0xe80444['locale'],_0x468315,_0x5b3214,{'disableComments':this['_disableComments'],'editorConfig':_0x58ae59['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x58ae59['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x58ae59['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x58ae59['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1661b2(_0x58ae59['get']('locale')),'CommentView':_0x58ae59['get']('comments')['CommentView'],'CommentsListView':_0x37a5f9,'CommentThreadInputView':_0x5243b1,'SuggestionView':_0xa25f88}),_0x68acf5['suggestionView']['acceptButton']['on']('execute',()=>{_0xe80444['editing']['view']['focus']();}),_0x68acf5['suggestionView']['discardButton']['on']('execute',()=>{_0xe80444['editing']['view']['focus']();}),_0x56ead3=_0x419898['createAnnotationView'](this['editor']['locale'],_0x68acf5),_0x56ead3['bind']('isDirty')['to'](_0x68acf5,'isDirty'),_0x56ead3['bind']('length')['to'](_0x68acf5),_0x56ead3['bind']('type')['to'](_0x68acf5,'type',_0x1db4f2=>'suggestion-'+_0x1db4f2),_0x68acf5['on']('escape',()=>{_0x1f9d74['fire']('escape');}),this['_annotationViews']['set'](_0x468315['id'],_0x56ead3));const _0x4ea89e=_0x5a1d32['createCommentThreadController'](_0x468315['commentThread'],_0x68acf5),_0x5e4214=new ae(_0xe80444,_0x468315,_0x68acf5,_0x4ea89e),_0x99ab1e=_0x468315['getAllAdjacentSuggestions']()['filter'](_0x8469e3=>_0x8469e3['isInContent']);_0x68acf5['descriptionParts']=_0xe80444['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x99ab1e),this['_suggestionToController']['set'](_0x468315,_0x5e4214),this['_viewToController']['set'](_0x68acf5,_0x5e4214),_0x1f9d74=_0x419898['createAnnotation']({'view':_0x56ead3,'target':()=>{const _0x40f5d0=[],_0x48566c=_0x468315['getAllAdjacentSuggestions']()['filter'](_0x9b6cca=>_0x9b6cca['isInContent']);for(const _0x1017ff of _0x48566c)_0x40f5d0['push'](..._0x1017ff['getMarkers']());return _0x39b097(_0xe80444['editing'],_0x40f5d0);},'type':()=>'suggestion-'+_0x5e4214['view']['type']}),_0x5a1d32['_bindAnnotationToEditors'](_0x68acf5,_0x1f9d74),_0x419898['add'](_0x1f9d74),_0x32e6f6['registerAnnotation'](_0x1f9d74);}['_destroyController'](_0x4303a1){const _0x46ec7e=this['editor']['plugins']['get']('CommentsRepository'),_0x8ca332=this['editor']['plugins']['get']('Annotations'),_0x3ef3bc=this['_suggestionToController']['get'](_0x4303a1),_0x25ef55=_0x3ef3bc['view'],_0x57c1f0=_0x8ca332['getByInnerView'](_0x25ef55);_0x46ec7e['_unbindEditors'](_0x25ef55),_0x57c1f0&&_0x8ca332['remove'](_0x57c1f0),this['_suggestionToController']['delete'](_0x4303a1),this['_viewToController']['delete'](_0x25ef55),_0x3ef3bc['destroy']();}['_updateController'](_0x2836c6){if(!_0x2836c6['isInContent']||!this['_suggestionToController']['has'](_0x2836c6))return;const _0x9b015d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4593f1=this['_suggestionToController']['get'](_0x2836c6),_0x502532=_0x2836c6['getAllAdjacentSuggestions']();_0x4593f1['view']['descriptionParts']=_0x9b015d['descriptionFactory']['getDescriptions'](_0x502532);}['destroy'](){for(const _0x5f4384 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5f4384);for(const _0x20a5ba of this['_annotationViews']['values']())_0x20a5ba['mainView']['destroy']();super['destroy']();}}function me(_0x2e8946){return'model'in _0x2e8946;}class k extends _0x16a2ad{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2f6505){this['editor']['plugins']['get'](p)['adapter']=_0x2f6505;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x41b57b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x41b57b);}['getSuggestions']({skipNotAttached:_0x5dddfe=!0x1,toJSON:_0x32f33e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5dddfe,'toJSON':_0x32f33e});}['getSuggestion'](_0x256bb0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x256bb0);}}const w=['Pagination'];class T extends _0x16a2ad{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4513ec=this['editor'];if(_0x4513ec['config']['define']('trackChangesData.editorCreator',_0x3018ac=>{const _0x37598a=_0x4513ec['model']['document']['getRootNames']()['reduce']((_0x30beb3,_0x232801)=>(_0x30beb3[_0x232801]='',_0x30beb3),{});return _0x4513ec['constructor']['create'](_0x37598a,_0x3018ac);}),'function'!=typeof _0x4513ec['config']['get']('trackChangesData')['editorCreator'])throw new _0x2f735b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2ed58b){return N(this['editor'],!0x0,_0x2ed58b);}['getDataWithDiscardedSuggestions'](_0x36b153){return N(this['editor'],!0x1,_0x36b153);}}class D extends _0x16a2ad{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5192aa){super(_0x5192aa),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(_0x7008a8){return void 0x0!==_0x7008a8['getRootsAttributes'];}async function N(_0x178906,_0x55b589,_0x40087f){const _0x1af51a=_0x1c6eb1(_0x178906,w);_0x1af51a['plugins']['push'](p,D),_0x1af51a['rootsAttributes']=v(_0x178906)?_0x178906['getRootsAttributes']():void 0x0;const _0x1b3d27=document['createDocumentFragment'](),_0x5e0ddf=_0x178906['config']['get']('trackChangesData')['editorCreator'],_0x345de3=await _0x5e0ddf(_0x1af51a,()=>function(_0x5c46fa){const _0x5c0710=document['createElement']('div');return _0x5c46fa['appendChild'](_0x5c0710),_0x5c0710;}(_0x1b3d27));!function(_0x25bc16,_0x40ac72){const _0xc74e74=_0x25bc16['model']['document']['getRootNames']()['reduce']((_0x27a9ac,_0x216f71)=>(_0x27a9ac[_0x216f71]=_0x25bc16['data']['get']({'rootName':_0x216f71}),_0x27a9ac),{}),_0x165272=_0x25bc16['plugins']['get']('Users')['users']['map'](_0x132df7=>({'id':_0x132df7['id'],'name':_0x132df7['name']})),_0x5a45f6=_0x25bc16['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x11c8fa=_0x25bc16['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45d9e6=_0x40ac72['plugins']['get']('Users'),_0x5259b7=_0x40ac72['plugins']['get']('TrackChangesEditing'),_0x1577dd=_0x40ac72['plugins']['get']('CommentsRepository');for(const _0x4921d9 of _0x1577dd['getCommentThreads']())_0x4921d9['remove']();for(const _0x5b9bf3 of _0x165272)_0x45d9e6['getUser'](_0x5b9bf3['id'])||_0x45d9e6['addUser'](_0x5b9bf3);_0x45d9e6['me']||_0x45d9e6['useAnonymousUser']();for(const _0x1f5841 of _0x11c8fa)_0x1577dd['addCommentThread'](_0x1f5841);for(const _0xde9429 of _0x5a45f6)_0x5259b7['addSuggestionData'](_0xde9429);_0x40ac72['data']['set'](_0xc74e74);}(_0x178906,_0x345de3),_0x345de3['execute'](_0x55b589?'acceptAllSuggestions':'discardAllSuggestions');const _0x50e155=v(_0x345de3)?_0x345de3['getFullData'](_0x40087f):_0x345de3['data']['get'](_0x40087f);return await _0x345de3['destroy'](),_0x50e155;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};