@ckeditor/ckeditor5-track-changes 44.0.0-alpha.11 → 44.0.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x2a9dde,PendingActions as _0x598feb,icons as _0x379797}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x41116f,ObservableMixin as _0x2f2784,uid as _0x38ab32,insertToPriorityArray as _0xa38658,priorities as _0x63ec0,logWarning as _0x3a41b4,getEnvKeystrokeText as _0x1d5f60,FocusTracker as _0x208b97,KeystrokeHandler as _0x3748eb,Collection as _0x596c8d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4fabbe,View as _0x5e69e2,ViewCollection as _0x57cb58,FocusCycler as ts,ViewModel as _0x5c9834,createDropdown as _0x5ec5d0,SplitButtonView as _0x4955c5,addListToDropdown as te,MenuBarMenuView as _0x58b682,MenuBarMenuListView as _0x289e28,ListSeparatorView as _0x3645c2,MenuBarMenuListItemView as _0x1013ad,MenuBarMenuListItemButtonView as _0x388adf}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3f5543,hashObject as _0x206d04,surroundingMarkersDetector as _0x10c6cb,FOCUS_ANNOTATION_KEYSTROKE as _0x10ba3a,AriaDescriptionView as _0x5a7624,setupThreadKeyboardNavigation as _0x13d36b,trimHtml as ti,UserView as _0x577f17,LateFocusButtonView as _0x328401,getDateTimeFormatter as _0x1faa1e,getAllMarkersDomElementsSorted as _0x155bfc,sanitizeEditorConfig as _0x2c022b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x41d333,LiveRange as _0x50e55c,LivePosition as _0x1a7a47}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x31fa20,toWidget as _0x541e2e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x35991a,set as _0x1c17a6,isEqual as _0xcd39ea,unset as _0x238e74,omit as xt}from'lodash-es';import{Delete as _0x339563,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5316f8,ShiftEnter as _0x25bccc}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0xb4d08f,_0x3a216f){super(_0xb4d08f),this['_enabledCommands']=_0x3a216f,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 _0x397616 of this['editor']['commands']['commands']())_0x397616['affectsData']&&!this['_enabledCommands']['has'](_0x397616)&&_0x397616['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x225e5b of this['editor']['commands']['commands']())_0x225e5b['affectsData']&&!this['_enabledCommands']['has'](_0x225e5b)&&_0x225e5b['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x58d68d,_0x5c7631){super(_0x58d68d),this['_suggestions']=_0x5c7631,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xb62d40){const _0x2c7d80=this['_suggestions']['get'](_0xb62d40);if(!_0x2c7d80)throw new _0x41116f('track-changes-accept-suggestion-not-found',this);const _0x36986c=_0x2c7d80['getRanges']();this['editor']['model']['canEditAt'](_0x36986c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2c7d80);}}class R extends Qt{['_suggestions'];constructor(_0x3a8e9d,_0x4ecbb0){super(_0x3a8e9d),this['_suggestions']=_0x4ecbb0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x8384e2){const _0x35b4b5=this['_suggestions']['get'](_0x8384e2);if(!_0x35b4b5)throw new _0x41116f('track-changes-discard-suggestion-not-found',this);const _0xd1f41=_0x35b4b5['getRanges']();this['editor']['model']['canEditAt'](_0xd1f41)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x35b4b5);}}function ns(_0x2475ac,_0x363f08){let _0x212e91='';return _0x212e91+=_0x2475ac['split']('*')['map']((_0xb88bcf,_0x401570)=>_0x401570%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xb88bcf)+'</span>':nn(_0xb88bcf))['join'](''),_0x363f08&&(_0x212e91+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x363f08['value']+'\x22\x20title=\x22'+_0x363f08['title']+'\x22></span>'),_0x212e91;}function nn(_0x57247f){const _0x4aca4d=document['createElement']('span');return _0x4aca4d['innerText']=_0x57247f,_0x4aca4d['innerHTML'];}function Wt(_0x5578a1){return _0x5578a1['sort']((_0x3197eb,_0x52ae46)=>'deletion'==_0x3197eb['type']&&'deletion'!=_0x52ae46['type']?-0x1:'deletion'!=_0x3197eb['type']&&'deletion'==_0x52ae46['type']?0x1:0x0);}function to(_0x3532e8,_0x3437be){let _0x3fb5c4,_0x48d612=0x0;const _0xb3245b=[],_0x4298f8=_0x3437be['schema'];for(;_0x48d612<_0x3532e8['length'];){const _0x40dfb0=_0x3532e8[_0x48d612],_0x443162=_0x3532e8[_0x48d612+0x1];_0x3fb5c4||(_0x3fb5c4=_0x3437be['createPositionBefore'](_0x40dfb0)),on(_0x3437be,_0x40dfb0,_0x443162)||(_0xb3245b['push'](_0x3437be['createRange'](_0x3fb5c4,_0x4298f8['isObject'](_0x40dfb0)?_0x3437be['createPositionAfter'](_0x40dfb0):_0x3437be['createPositionAt'](_0x40dfb0,'end'))),_0x3fb5c4=null),_0x48d612++;}return _0xb3245b;}function on(_0x408ee5,_0x4073d4,_0x18a221){if(!_0x18a221)return!0x1;const _0x1a1bba=_0x408ee5['createPositionAfter'](_0x4073d4),_0x212e97=_0x408ee5['createPositionBefore'](_0x18a221);return _0x1a1bba['isTouching'](_0x212e97);}function Xt(_0x189263,_0x57ece5,_0x37fefb){for(;_0x37fefb['length'];){const _0xe0783=_0x37fefb['splice'](0x0,0x64);_0x189263['change'](()=>{for(const _0x3d6acc of _0xe0783)_0x3d6acc['isInContent']&&_0x57ece5['execute'](_0x3d6acc['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x4ad927,_0x59249d,_0x14b017){super(_0x4ad927),this['_command']=_0x59249d,this['_suggestions']=_0x14b017,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x32f84a=Array['from'](this['_suggestions']['values']())['some'](_0x121ebf=>_0x121ebf['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x32f84a;}['execute'](){const _0x15b6c5=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x1c3b41 of _0x15b6c5){const _0x8657f8=_0x1c3b41['getRanges']();if(!this['editor']['model']['canEditAt'](_0x8657f8))return;}Xt(this['editor']['model'],this['_command'],_0x15b6c5);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x229142,_0x3b6cad,_0x1c4693){super(_0x229142),this['_command']=_0x3b6cad,this['_suggestions']=_0x1c4693,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x268bcb=this['editor']['model']['document']['selection'],_0x3de2ef=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x29eed2,_0x4c37ea){const _0x1a3187=Array['from'](_0x29eed2['getRanges']()),_0x340b91=new Set();for(const _0x51e5ab of _0x4c37ea)if(_0x51e5ab['isInContent']){for(const _0x208403 of _0x1a3187)for(const _0x16c610 of _0x51e5ab['getRanges']())(_0x208403['isIntersecting'](_0x16c610)||_0x29eed2['isCollapsed']&&!_0x51e5ab['isMultiRange']&&_0x51e5ab['next']&&_0x16c610['end']['isTouching'](_0x208403['start']))&&_0x340b91['add'](_0x51e5ab);}return _0x340b91;}(_0x268bcb,_0x3de2ef),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x547d33=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x35c256 of _0x547d33){const _0xbf05f8=_0x35c256['getRanges']();if(!this['editor']['model']['canEditAt'](_0xbf05f8))return;}Xt(this['editor']['model'],this['_command'],_0x547d33);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x2f2784(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x367e36,_0x37b8b4){super(),this['id']=_0x37b8b4['id'],this['type']=_0x37b8b4['type'],this['subType']=_0x37b8b4['subType']||null,this['author']=_0x37b8b4['author'],this['creator']=_0x37b8b4['creator']||_0x37b8b4['author'],this['isExternal']=Boolean(_0x37b8b4['attributes']&&_0x37b8b4['attributes']['@external']),this['data']=null,this['_model']=_0x367e36,this['_onAccept']=_0x37b8b4['onAccept'],this['_onDiscard']=_0x37b8b4['onDiscard'],this['_onAttributesChange']=_0x37b8b4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x37b8b4['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 _0x231916=this;for(;_0x231916['previous'];)_0x231916=_0x231916['previous'];return _0x231916;}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'](_0xf62826){this['_markerNames']['add'](_0xf62826);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x23ee56=>this['_model']['markers']['get'](_0x23ee56))['filter'](_0x583f32=>_0x583f32);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x525d1c=>{for(const _0x10f720 of this['getMarkers']())_0x525d1c['removeMarker'](_0x10f720);}),this['_markerNames']['clear']();}['removeMarker'](_0x3753d1){this['_model']['change'](_0x199866=>{_0x199866['removeMarker'](_0x3753d1);}),this['_markerNames']['delete'](_0x3753d1);}['addRange'](_0x2c6d21){const _0x1e75ec='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1e75ec),this['_model']['change'](_0x1b8eb4=>{_0x1b8eb4['addMarker'](_0x1e75ec,{'range':_0x2c6d21,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x38e985){for(const _0x19a3fe of this['getRanges']())if(_0x19a3fe['isIntersecting'](_0x38e985))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3a6686=>_0x3a6686['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x919ba2,_0x4e001c)=>[..._0x919ba2,..._0x4e001c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5529a7=this['getRanges']();if(0x1!=_0x5529a7['length'])return null;const _0x89a806=_0x5529a7[0x0],_0x36dfbb=_0x89a806['start']['nodeAfter'],_0x33b6e9=_0x89a806['end']['nodeBefore'];return _0x36dfbb instanceof _0x41d333?_0x36dfbb!=_0x33b6e9?null:_0x36dfbb: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 _0x51a330=[];let _0x79101b=this['head'];for(;_0x79101b;)_0x51a330['push'](_0x79101b),_0x79101b=_0x79101b['next'];return _0x51a330;}['setAttribute'](_0x5c514c,_0x97c276){const _0x4d1b3b=_0x35991a(this['attributes']);_0x1c17a6(_0x4d1b3b,_0x5c514c,_0x97c276),_0xcd39ea(_0x4d1b3b,this['attributes'])||(this['attributes']=_0x4d1b3b,this['_onAttributesChange'](_0x4d1b3b));}['removeAttribute'](_0x45968a){const _0x36025b=_0x35991a(this['attributes']);_0x238e74(_0x36025b,_0x45968a),_0xcd39ea(_0x36025b,this['attributes'])||(this['attributes']=_0x36025b,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 _0x38ab32()['substr'](0x1,0x5);}}function o(_0x387fc3,_0x172eee,_0x5b8b38){const _0x21b3b6=_0x387fc3['t'],t=_0x387fc3['t'];switch(_0x172eee){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',_0x5b8b38);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5b8b38);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5b8b38);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5b8b38);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5b8b38);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',_0x5b8b38);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5b8b38);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',_0x5b8b38);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5b8b38);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5b8b38);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5b8b38);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5b8b38);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5b8b38);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5b8b38);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5b8b38);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5b8b38);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5b8b38);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5b8b38);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5b8b38);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5b8b38);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5b8b38);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5b8b38);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5b8b38);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5b8b38);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'},_0x5b8b38);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5b8b38);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5b8b38);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5b8b38);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5b8b38);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5b8b38);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'},_0x5b8b38);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5b8b38);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5b8b38);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5b8b38);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5b8b38);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'},_0x5b8b38);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5b8b38);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'},_0x5b8b38);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'},_0x5b8b38);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5b8b38);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'},_0x5b8b38);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5b8b38);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'},_0x5b8b38);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5b8b38);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5b8b38);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'},_0x5b8b38);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5b8b38);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 _0x21b3b6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5b8b38);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x21b3b6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5b8b38);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5b8b38);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'},_0x5b8b38);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'},_0x5b8b38);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'},_0x5b8b38);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x172eee;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x253119,_0xe2b326){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x253119,this['_locale']=_0xe2b326;}['getDescriptions'](_0x5a1928){const _0x492ad4=[],_0x976cac=new Set(),_0x449210=new Set();for(let _0x14917e=0x0;_0x14917e<_0x5a1928['length'];_0x14917e++){const _0x37eb84=_0x5a1928[_0x14917e];if(!_0x37eb84['isInContent'])continue;const _0x246e6d=this['_handleCustomCallbackDescription'](_0x37eb84);if(_0x246e6d){if(null!=_0x37eb84['subType']){if(_0x976cac['has'](_0x37eb84['subType']))continue;_0x976cac['add'](_0x37eb84['subType']);}_0x492ad4['push'](_0x246e6d);}else{if('attribute'!=_0x37eb84['type'])'insertion'!=_0x37eb84['type']&&'deletion'!=_0x37eb84['type']||this['_handleInsertRemoveSuggestionDescription'](_0x492ad4,_0x37eb84,_0x5a1928[_0x14917e+0x1]);else{const _0x4d69cc=_0x37eb84['data']['key'];if(_0x449210['has'](_0x4d69cc))continue;_0x449210['add'](_0x37eb84['data']['key']),_0x4d69cc==m?this['_handleRenameSuggestionDescription'](_0x492ad4,_0x37eb84):this['_handleAttributeSuggestionDescription'](_0x492ad4,_0x37eb84);}}}return this['_resolveDescriptionItems'](_0x492ad4);}['registerDescriptionCallback'](_0x1446a1){this['_customCallbacks']['push'](_0x1446a1);}['registerElementLabel'](_0x15d312,_0x3be791,_0xa30bdd=_0x63ec0['normal']){'function'==typeof _0x15d312?_0xa38658(this['_itemLabelsCallbacks'],{'matchingCallback':_0x15d312,'label':_0x3be791,'priority':_0xa30bdd}):this['_itemLabels']['set'](_0x15d312,_0x3be791);}['registerAttributeLabel'](_0x1604dd,_0x2d8ce9){this['_attributeLabels']['set'](_0x1604dd,_0x2d8ce9);}['getItemLabel'](_0x28548a,_0x58abc7=0x1){let _0x3597b0;for(const _0x377290 of this['_itemLabelsCallbacks'])if(_0x377290['matchingCallback'](_0x28548a)){_0x3597b0=_0x377290['label'];break;}return _0x3597b0||(_0x3597b0=this['_itemLabels']['get'](_0x28548a['name'])),_0x3597b0?_0x3597b0(_0x58abc7):0x1!==_0x58abc7?_0x58abc7+'\x20'+_0x28548a['name']+'s':''+_0x28548a['name'];}['_addDescriptionItems'](_0x403094,_0x1a8000){const _0x580bb4=_0x1a8000['getFirstRange']()['getWalker'](),_0x524fc9='insertion'==_0x1a8000['type']?'add':'remove';for(const _0x302ff6 of _0x580bb4){const _0x2a2ebd=_0x302ff6['item'],_0x14149c=_0x403094[_0x403094['length']-0x1];if(_0x2a2ebd['is']('$textProxy'))_0x14149c&&_0x14149c['type']['indexOf']('Container')>-0x1&&_0x403094['pop'](),_0x14149c&&'text'==_0x14149c['type']?_0x14149c[_0x524fc9]+=_0x2a2ebd['data']:_0x403094['push']({'type':'text','add':'add'==_0x524fc9?_0x2a2ebd['data']:'','remove':'remove'==_0x524fc9?_0x2a2ebd['data']:''});else{if(this['_schema']['isObject'](_0x2a2ebd)){const _0x2625d7=_0x2a2ebd;if(_0x14149c&&_0x14149c['type']['indexOf']('Container')>-0x1&&_0x403094['pop'](),'elementEnd'==_0x302ff6['type'])continue;_0x14149c&&_0x14149c['type']==_0x524fc9+'Object'&&_0x14149c['element']['name']==_0x2625d7['name']?_0x14149c['quantity']++:_0x403094['push']({'type':_0x524fc9+'Object','element':_0x2625d7,'quantity':0x1}),_0x580bb4['skip'](_0x335a1a=>!('elementEnd'==_0x335a1a['type']&&_0x335a1a['item']==_0x2a2ebd));}else{if(this['_schema']['checkChild'](_0x2a2ebd,'$text')||_0x2a2ebd['is']('element','softBreak')){const _0x5a9655=_0x2a2ebd;if('add'==_0x524fc9&&'elementStart'==_0x302ff6['type']||'remove'==_0x524fc9&&'elementEnd'==_0x302ff6['type'])continue;if(_0x14149c&&-0x1==_0x14149c['type']['indexOf']('Container')){'text'==_0x14149c['type']&&(_0x14149c[_0x524fc9]+='\x0a');continue;}let _0x3a84ba;if(_0x3a84ba='add'==_0x524fc9?_0x5a9655['nextSibling']&&!this['_schema']['isObject'](_0x5a9655['nextSibling'])?_0x5a9655['nextSibling']:null:_0x5a9655['previousSibling']&&!this['_schema']['isObject'](_0x5a9655['previousSibling'])?_0x5a9655['previousSibling']:null,_0x5a9655['isEmpty']||_0x3a84ba&&_0x3a84ba['isEmpty']){const _0x2549a4=_0x3a84ba&&_0x3a84ba['isEmpty']?_0x3a84ba:_0x5a9655;_0x14149c&&_0x14149c['type']==_0x524fc9+'EmptyContainer'&&_0x14149c['element']['name']==_0x2549a4['name']?_0x14149c['quantity']++:_0x403094['push']({'type':_0x524fc9+'EmptyContainer','element':_0x2549a4,'quantity':0x1});}else _0x403094['push']({'type':_0x524fc9+'Container','element':_0x5a9655});}}}}}['_resolveDescriptionItems'](_0x4bfb2d){const _0x1c3b42=this['_locale'],_0x4147be=[],_0x3d56a0=[],_0xc5e98=[];for(const _0x273a4c of _0x4bfb2d)switch(_0x273a4c['type']){case'text':if(_0x273a4c['add']=_0x273a4c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x273a4c['remove']=_0x273a4c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x273a4c['add']&&''!=_0x273a4c['remove']){_0x4147be['push']({'type':'replace','content':o(_0x1c3b42,'REPLACE_TEXT',['\x22'+_0x273a4c['remove']+'\x22','\x22'+_0x273a4c['add']+'\x22'])});continue;}if(null!=_0x273a4c['add']['match'](/^ +$/)){_0x4147be['push']({'type':'insertion','content':o(_0x1c3b42,'*Insert:*\x20%0',o(_0x1c3b42,'ELEMENT_SPACE',_0x273a4c['add']['length']))});continue;}if(null!=_0x273a4c['remove']['match'](/^ +$/)){_0x4147be['push']({'type':'deletion','content':o(_0x1c3b42,'*Remove:*\x20%0',o(_0x1c3b42,'ELEMENT_SPACE',_0x273a4c['remove']['length']))});continue;}if(''!=_0x273a4c['add']){_0x4147be['push']({'type':'insertion','content':o(_0x1c3b42,'*Insert:*\x20%0','\x22'+_0x273a4c['add']+'\x22')});continue;}_0x4147be['push']({'type':'deletion','content':o(_0x1c3b42,'*Remove:*\x20%0','\x22'+_0x273a4c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4147be['push']({'type':'insertion','content':o(_0x1c3b42,'*Insert:*\x20%0',this['getItemLabel'](_0x273a4c['element'],_0x273a4c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4147be['push']({'type':'deletion','content':o(_0x1c3b42,'*Remove:*\x20%0',this['getItemLabel'](_0x273a4c['element'],_0x273a4c['quantity']))});continue;case'addContainer':_0x4147be['push']({'type':'insertion','content':o(_0x1c3b42,'*Split:*\x20%0',this['getItemLabel'](_0x273a4c['element'],_0x273a4c['quantity']))});continue;case'removeContainer':_0x4147be['push']({'type':'deletion','content':o(_0x1c3b42,'*Merge:*\x20%0',this['getItemLabel'](_0x273a4c['element'],_0x273a4c['quantity']))});continue;case'addFormat':_0x3d56a0['push'](_0x273a4c['key']);continue;case'removeFormat':_0xc5e98['push'](_0x273a4c['key']);continue;default:_0x4147be['push'](_0x273a4c);}if(_0x3d56a0['length']){const _0x138b59=_0x3d56a0['map'](_0x3b50d0=>this['_attributeLabels']['has'](_0x3b50d0)?this['_attributeLabels']['get'](_0x3b50d0):_0x3b50d0)['join'](',\x20');_0x4147be['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x138b59)});}if(_0xc5e98['length']){const _0xc6fba1=_0xc5e98['map'](_0x567c01=>this['_attributeLabels']['has'](_0x567c01)?this['_attributeLabels']['get'](_0x567c01):_0x567c01)['join'](',\x20');_0x4147be['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xc6fba1)});}return _0x4147be;}['_handleCustomCallbackDescription'](_0x2492f7){for(const _0x284916 of this['_customCallbacks']){const _0x57be17=_0x284916(_0x2492f7);if(_0x57be17&&'type'in _0x57be17)return _0x57be17;}}['_handleAttributeSuggestionDescription'](_0xf7779d,_0x16684a){const _0x5196cb=_0x16684a['data'],_0xe82e35=void 0x0===_0x5196cb['newValue']?'removeFormat':'addFormat';_0xf7779d['push']({'type':_0xe82e35,'key':_0x5196cb['key']});}['_handleRenameSuggestionDescription'](_0x227d2b,_0x4ef28e){_0x227d2b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4ef28e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x393f96,_0x2ac3bd,_0xe55c64){if(this['_addDescriptionItems'](_0x393f96,_0x2ac3bd),_0xe55c64&&_0xe55c64['getFirstRange']()&&!_0x2ac3bd['getFirstRange']()['end']['isEqual'](_0xe55c64['getFirstRange']()['start'])){const _0x30dbd3=_0x393f96[_0x393f96['length']-0x1],_0x45303f='insertion'==_0x2ac3bd['type']?'add':'remove';_0x30dbd3&&'text'==_0x30dbd3['type']&&(_0x30dbd3[_0x45303f]+='\x0a');}}}class U extends _0x2a9dde{['afterInit'](){const _0x5a76ea=this['editor'],_0x37935f=_0x5a76ea['plugins']['get']('TrackChangesEditing');_0x5a76ea['commands']['get']('showAIAssistant')&&_0x37935f['enableCommand']('showAIAssistant');}}class V extends _0x2a9dde{['afterInit'](){const _0x2d5759=this['editor'],_0x522a47=_0x2d5759['locale'];if(!_0x2d5759['plugins']['has']('AlignmentEditing'))return;const _0x583a3e=_0x2d5759['plugins']['get']('TrackChangesEditing');_0x583a3e['enableDefaultAttributesIntegration']('alignment'),_0x583a3e['registerBlockAttribute']('alignment'),_0x583a3e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x522a47,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5028b3=this['editor'],_0x28c9e4=_0x5028b3['locale'];_0x5028b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20bd8b=>{if('formatBlock'!=_0x20bd8b['type'])return;const {data:_0x27a49b}=_0x20bd8b;if(_0x27a49b&&'alignment'==_0x27a49b['commandName']){const _0x54a5f6=_0x27a49b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x28c9e4,'*Format:*\x20%0',function(_0x36a7ce){switch(_0x36a7ce){case'left':return o(_0x28c9e4,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x28c9e4,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x28c9e4,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x28c9e4,'FORMAT_JUSTIFY_TEXT');}}(_0x54a5f6))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2a9dde{['afterInit'](){const _0x5af69e=this['editor'],_0x1b49e2=_0x5af69e['plugins']['get']('TrackChangesEditing'),_0x444969=_0x5af69e['locale'];for(const _0x2f802f of Zt){if(!_0x5af69e['plugins']['has'](_0x2f802f))continue;const _0x2e54b9=_0x2f802f['slice'](0x0,-0x7)['toLowerCase'](),_0x65651c='FORMAT_'+_0x2e54b9['toUpperCase']();_0x1b49e2['enableDefaultAttributesIntegration'](_0x2e54b9),_0x1b49e2['registerInlineAttribute'](_0x2e54b9),_0x1b49e2['descriptionFactory']['registerAttributeLabel'](_0x2e54b9,o(_0x444969,_0x65651c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30ba5f=this['editor'],_0x2f12ff=_0x30ba5f['locale'],_0xfccee8=_0x30ba5f['plugins']['get']('TrackChangesEditing');function _0x128016(_0x418187,_0x1b8625){_0xfccee8['descriptionFactory']['registerDescriptionCallback'](_0x495133=>{if('formatInline'!=_0x495133['type'])return;const {data:_0x2fdc57}=_0x495133;return _0x2fdc57&&_0x2fdc57['commandName']===_0x418187?_0x2fdc57['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f12ff,'*Format:*\x20%0',_0x1b8625)}:{'type':'format','content':o(_0x2f12ff,'*Remove\x20format:*\x20%0',_0x1b8625)}:void 0x0;});}_0x128016('bold',o(_0x2f12ff,'FORMAT_BOLD')),_0x128016('italic',o(_0x2f12ff,'FORMAT_ITALIC')),_0x128016('underline',o(_0x2f12ff,'FORMAT_UNDERLINE')),_0x128016('code',o(_0x2f12ff,'FORMAT_CODE')),_0x128016('strikethrough',o(_0x2f12ff,'FORMAT_STRIKETHROUGH')),_0x128016('subscript',o(_0x2f12ff,'FORMAT_SUBSCRIPT')),_0x128016('superscript',o(_0x2f12ff,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2a9dde{['afterInit'](){const _0x199637=this['editor'],_0x33aaca=_0x199637['locale'];if(!_0x199637['plugins']['has']('BlockQuoteEditing'))return;const _0x1b525d=_0x199637['plugins']['get']('TrackChangesEditing'),_0x45da36=this['editor']['commands']['get']('blockQuote');_0x1b525d['enableCommand']('blockQuote',(_0x4be66f,_0x29a069={})=>{const _0x25a7ba=this['editor']['model']['document']['selection'],_0x232db8=_0x29a069&&void 0x0!==_0x29a069['forceValue']?_0x29a069['forceValue']:!_0x45da36['value'];let _0x4b6b86=[];if(_0x232db8){const _0x31f4c5=Array['from'](_0x25a7ba['getSelectedBlocks']())['filter'](_0x28d52a=>oo(_0x28d52a)||function(_0x2202b2,_0x4be8d6){const _0xdc775a=_0x4be8d6['checkChild'](_0x2202b2['parent'],'blockQuote'),_0x505a79=_0x4be8d6['checkChild'](['$root','blockQuote'],_0x2202b2);return _0xdc775a&&_0x505a79;}(_0x28d52a,this['editor']['model']['schema']));_0x4b6b86=to(_0x31f4c5,_0x199637['model']);}else{const _0x78f8bd=Array['from'](_0x25a7ba['getSelectedBlocks']())['filter'](_0xd7ef1a=>oo(_0xd7ef1a));_0x4b6b86=to(_0x78f8bd,_0x199637['model']);}_0x199637['model']['change'](()=>{for(const _0x163bb3 of _0x4b6b86)_0x1b525d['markBlockFormat'](_0x163bb3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x232db8}]});});}),_0x1b525d['descriptionFactory']['registerDescriptionCallback'](_0x257d1a=>{const {data:_0x461c93}=_0x257d1a;if(_0x461c93&&'blockQuote'==_0x461c93['commandName']){const _0x4ac19f=o(_0x33aaca,'ELEMENT_BLOCK_QUOTE');return _0x461c93['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33aaca,'*Set\x20format:*\x20%0',_0x4ac19f)}:{'type':'format','content':o(_0x33aaca,'*Remove\x20format:*\x20%0',_0x4ac19f)};}});}}function oo(_0x2f8f7c){return'blockQuote'==_0x2f8f7c['parent']['name'];}class L extends _0x2a9dde{['afterInit'](){const _0x3dace9=this['editor'],_0x1effe6=_0x3dace9['locale'],_0x574949=_0x3dace9['plugins']['get']('TrackChangesEditing');_0x3dace9['plugins']['has']('BookmarkEditing')&&(_0x574949['enableCommand']('insertBookmark'),_0x574949['enableDefaultAttributesIntegration']('updateBookmark'),_0x574949['registerBlockAttribute']('bookmarkId'),_0x574949['descriptionFactory']['registerDescriptionCallback'](_0xd872f2=>{if('insertion'!=_0xd872f2['type']&&'deletion'!=_0xd872f2['type']&&'attribute'!=_0xd872f2['type'])return;const _0xc783c6=_0xd872f2['getContainedElement']();if(null==_0xc783c6)return;if(!_0xc783c6['is']('element','bookmark'))return;const _0x5645f7=_0xc783c6['getAttribute']('bookmarkId');if('insertion'==_0xd872f2['type'])return{'type':'insertion','content':o(_0x1effe6,'*Insert:*\x20%0','\x22'+_0x5645f7+'\x22\x20'+o(_0x1effe6,'ELEMENT_BOOKMARK'))};if('deletion'==_0xd872f2['type'])return{'type':'deletion','content':o(_0x1effe6,'*Remove:*\x20%0','\x22'+_0x5645f7+'\x22\x20'+o(_0x1effe6,'ELEMENT_BOOKMARK'))};const {data:_0x503354}=_0xd872f2;if(!_0x503354||'bookmarkId'!=_0x503354['key'])return;return{'type':'format','content':o(_0x1effe6,'*Set\x20bookmark:*\x20%0','\x22'+_0x503354['newValue']+'\x22')};}));}}class J extends _0x2a9dde{['afterInit'](){const _0x2ad6d5=this['editor'];_0x2ad6d5['plugins']['has']('CaseChange')&&(_0x2ad6d5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2ad6d5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2ad6d5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2a9dde{['afterInit'](){const _0x23cfaa=this['editor'];_0x23cfaa['commands']['get']('ckbox')&&_0x23cfaa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2a9dde{['afterInit'](){const _0x85948e=this['editor'];if(!_0x85948e['plugins']['has']('CodeBlock'))return;const _0x56be65=_0x85948e['plugins']['get']('TrackChangesEditing'),_0x38f465=_0x85948e['locale'],_0x1d3905=_0x85948e['config']['get']('codeBlock')['languages'],_0x528a01=_0x85948e['commands']['get']('codeBlock');_0x56be65['enableCommand']('indentCodeBlock'),_0x56be65['enableCommand']('outdentCodeBlock'),_0x56be65['enableCommand']('codeBlock',(_0x29ef2b,_0x165af6={})=>{const _0x1134fb=_0x85948e['model'],_0x23f660=_0x85948e['model']['document']['selection'],_0x41ed6e=_0x165af6&&void 0x0!==_0x165af6['forceValue']?_0x165af6['forceValue']:!_0x528a01['value'];let _0x39137d;_0x165af6['language']||(_0x165af6['language']=_0x1d3905[0x0]['language']),_0x39137d=_0x41ed6e?Array['from'](_0x23f660['getSelectedBlocks']())['filter'](_0x584fd4=>eo(_0x584fd4)||function(_0xfb1fc5,_0x1404a4){if(_0xfb1fc5['is']('rootElement')||_0x1404a4['isLimit'](_0xfb1fc5))return!0x1;return _0x1404a4['checkChild'](_0xfb1fc5['parent'],'codeBlock');}(_0x584fd4,_0x1134fb['schema'])):Array['from'](_0x23f660['getSelectedBlocks']())['filter'](_0x2bdbeb=>eo(_0x2bdbeb));const _0x1af806=to(_0x39137d,_0x1134fb);_0x1134fb['change'](()=>{for(const _0x2e0575 of _0x1af806)_0x56be65['markBlockFormat'](_0x2e0575,{'commandName':'codeBlock','commandParams':[{..._0x165af6,'forceValue':_0x41ed6e}],'formatGroupId':'blockName'});});}),(_0x56be65['descriptionFactory']['registerElementLabel']('codeBlock',_0x4f31a9=>o(_0x38f465,'ELEMENT_CODE_BLOCK',_0x4f31a9)),_0x56be65['descriptionFactory']['registerDescriptionCallback'](_0x4442b8=>{if('formatBlock'!=_0x4442b8['type'])return;const _0x5ad1f7=_0x38f465['t'],{data:_0x2a7499}=_0x4442b8;if(!_0x2a7499||'codeBlock'!=_0x2a7499['commandName'])return;const _0x180be5=_0x2a7499['commandParams'][0x0]['language'],_0x4bf5dc=_0x5ad1f7(_0x1d3905['find'](_0x589e48=>_0x589e48['language']===_0x180be5)['label'])['toLowerCase']();return _0x2a7499['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38f465,'*Set\x20format:*\x20%0',o(_0x38f465,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4bf5dc+')')}:{'type':'format','content':o(_0x38f465,'*Remove\x20format:*\x20%0',o(_0x38f465,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x15d053){return'codeBlock'==_0x15d053['name'];}class z extends _0x2a9dde{['afterInit'](){const _0xae6459=this['editor'];if(!_0xae6459['plugins']['has']('CommentsEditing'))return;_0xae6459['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x947bc7,_0xb9d281,_0x2295c3){const _0x1c8ea3=[];for(const _0x276065 of _0xb9d281['getItems']())_0x276065['hasAttribute'](_0x947bc7)&&_0x1c8ea3['push'](_0x2295c3['createRangeOn'](_0x276065));return _0x1c8ea3;}function Ne(_0x578ef1,_0x49310a,{showActiveMarker:_0x36f622=!0x0}={}){const _0x53dc59=_0x578ef1['plugins']['get']('TrackChangesEditing');return(_0x2f89d3,_0x1b3d8d,_0x19cd79)=>{if(!_0x19cd79['consumable']['test'](_0x1b3d8d['markerRange'],_0x2f89d3['name']))return;const _0x609a05=_0x1b3d8d['markerRange']['getWalker'](),_0x13cd00=_0x1b3d8d['markerRange']['start'],_0x1345d1=_0x578ef1['model']['schema'];let _0x4f7490=null,_0x20cc1d=null,_0x4a7e43=!0x1,_0x39ed68=!0x1;for(const _0x1ace5e of _0x609a05){const _0x1c68ee=_0x1ace5e['item'];_0x4a7e43=_0x4a7e43||_0x1345d1['isContent'](_0x1c68ee);const _0x94f39c=_0x19cd79['mapper']['toViewElement'](_0x1c68ee);if(_0x94f39c&&_0x94f39c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ace5e['type']&&(_0x1345d1['isBlock'](_0x1c68ee)&&!_0x1345d1['isLimit'](_0x1c68ee)&&(_0x1c68ee['nextSibling']||_0x13cd00['isAtEnd']?_0x4f7490&&_0x4f7490['parent']==_0x1c68ee||(_0x4f7490=_0x1c68ee,_0xc003f7(_0x1ace5e['previousPosition']),_0x39ed68=!0x0):_0x20cc1d=_0x20cc1d||_0x1ace5e['previousPosition']));}function _0xc003f7(_0x3e930b){const {authorId:_0x95003}=_0x53dc59['_splitMarkerName'](_0x1b3d8d['markerName']),_0x2df640=_0x19cd79['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x49310a,'data-author-id':_0x95003}),_0x212727=_0x19cd79['mapper']['toViewPosition'](_0x3e930b);_0x36f622&&_0x53dc59['activeMarkers']['includes'](_0x1b3d8d['markerName'])&&_0x19cd79['writer']['addClass']('ck-suggestion-marker--active',_0x2df640),_0x19cd79['writer']['insert'](_0x212727,_0x2df640),_0x19cd79['mapper']['bindElementToMarker'](_0x2df640,_0x1b3d8d['markerName']);}_0x4a7e43||_0x39ed68||!_0x20cc1d||_0xc003f7(_0x20cc1d);};}class K extends _0x2a9dde{static get['requires'](){return[_0x339563];}['init'](){const _0xbb2e47=this['editor'],_0xdcf5c3=_0xbb2e47['plugins']['get']('TrackChangesEditing');_0xdcf5c3['enableCommand']('delete');const _0x10a0fc=_0xbb2e47['commands']['get']('deleteForward');_0xdcf5c3['enableCommand']('deleteForward',(_0x304cc0,_0x1e84b0={})=>{const _0x4c74b6=_0xbb2e47['model']['createSelection'](_0xbb2e47['model']['document']['selection']);_0x4c74b6['isCollapsed']&&_0xbb2e47['model']['modifySelection'](_0x4c74b6,{'direction':'forward','unit':_0x1e84b0['unit']});const _0x161f69=_0x4c74b6['getFirstRange'](),_0x290430=_0x50e55c['fromRange'](_0x161f69);let _0x3bb4fb;_0x304cc0(_0x1e84b0),_0x3bb4fb='$graveyard'==_0x290430['root']['rootName']?_0xbb2e47['model']['createRange'](_0x161f69['start']):_0xbb2e47['model']['createRange'](_0x290430['start'],_0x290430['end']),_0x290430['detach'](),_0xbb2e47['model']['enqueueChange'](_0x10a0fc['buffer']['batch'],_0x53086c=>{_0x10a0fc['buffer']['lock'](),_0x53086c['setSelection'](_0x53086c['createRange'](_0x3bb4fb['end'])),_0x10a0fc['buffer']['unlock']();});}),_0xbb2e47['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0xbb2e47,'merge'),{'priority':'high'}),_0xbb2e47['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x9c8b5c,_0x19a364,_0x4ee6c1)=>{_0x4ee6c1['options']['showSuggestionHighlights']&&Ne(_0xbb2e47,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x9c8b5c,_0x19a364,_0x4ee6c1);},{'priority':'high'}),_0xbb2e47['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4a9dd4,_0x1457a8,_0x139b6b)=>{const _0x418071=_0x139b6b['mapper']['markerNameToElements'](_0x1457a8['markerName']);if(_0x418071){for(const _0x260479 of _0x418071)_0x260479['is']('uiElement')&&(_0x139b6b['mapper']['unbindElementFromMarkerName'](_0x260479,_0x1457a8['markerName']),_0x139b6b['writer']['remove'](_0x260479));}},{'priority':'high'});}}class W extends _0x2a9dde{['afterInit'](){const _0x31d1a9=this['editor'];if(!_0x31d1a9['plugins']['has']('ListEditing'))return;const _0x301158=_0x31d1a9['locale'],_0x2be747=_0x31d1a9['plugins']['get']('TrackChangesEditing'),_0x187602=_0x31d1a9['plugins']['has']('TodoListEditing'),_0x442191=!!_0x31d1a9['config']['get']('list.multiBlock');function _0x49a3f0(_0x1c9cfa){return{'type':'format','content':''+o(_0x301158,'*Set\x20format:*\x20%0',_0x1c9cfa)};}function _0x4fec2b(_0x306df3){return{'type':'format','content':''+o(_0x301158,'*Remove\x20format:*\x20%0',_0x306df3)};}_0x2be747['enableDefaultAttributesIntegration']('numberedList'),_0x2be747['enableDefaultAttributesIntegration']('bulletedList'),_0x2be747['enableDefaultAttributesIntegration']('customNumberedList'),_0x2be747['enableDefaultAttributesIntegration']('customBulletedList'),_0x2be747['enableDefaultAttributesIntegration']('indentList'),_0x2be747['enableDefaultAttributesIntegration']('outdentList'),_0x2be747['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2be747['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2be747['registerBlockAttribute']('listItemId'),_0x2be747['registerBlockAttribute']('listType'),_0x2be747['registerBlockAttribute']('listIndent'),_0x442191&&(_0x2be747['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2be747['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x187602&&(_0x2be747['enableDefaultAttributesIntegration']('todoList'),_0x2be747['enableDefaultAttributesIntegration']('checkTodoList'),_0x2be747['registerBlockAttribute']('todoListChecked'),_0x2be747['descriptionFactory']['registerDescriptionCallback'](_0x3361cf=>{const {data:_0x7f419e}=_0x3361cf;if(_0x7f419e&&'todoListChecked'==_0x7f419e['key'])return{'type':'format','content':_0x7f419e['newValue']?o(_0x301158,'*Check\x20item*'):o(_0x301158,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xf1489f=>{if(_0xf1489f['batch']['isUndo'])return!0x1;let _0x260814=!0x1;const _0x102302=_0x2be747['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b3034=>'todoListChecked'===_0x2be747['_getAttributeKey'](_0x1b3034));for(const _0x30c27e of _0x102302){'todo'!=_0x30c27e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2be747['_findSuggestions'](_0x30c27e['getFirstRange'](),'attribute')['find'](_0x556bc5=>'listType'===_0x2be747['_getAttributeKey'](_0x556bc5['suggestion']))||(_0xf1489f['removeMarker'](_0x30c27e['getFirstMarker']()),_0x260814=!0x0));}return _0x260814;})),_0x2be747['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x301158,'FORMAT_INDENT'));const _0x2b877d={'type':'format','content':''};_0x2be747['descriptionFactory']['registerDescriptionCallback'](_0x4a6414=>{const {data:_0x12b448}=_0x4a6414;if(!_0x12b448||'listType'!=_0x12b448['key'])return;let _0x56252d=_0x4a6414['head'];for(;_0x56252d;){if(_0x56252d['data']&&(('listStyle'==_0x56252d['data']['key']||'listMarkerStyle'==_0x56252d['data']['key'])&&(_0x56252d['data']['newValue']&&'default'!=_0x56252d['data']['newValue']||'default'!=_0x56252d['data']['oldValue']&&!_0x12b448['newValue'])||!_0x442191&&_0x56252d['data']['key']==m))return _0x2b877d;_0x56252d=_0x56252d['next'];}if(null==_0x12b448['newValue'])switch(_0x12b448['oldValue']){case'bulleted':return _0x4fec2b(o(_0x301158,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4fec2b(o(_0x301158,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4fec2b(o(_0x301158,'ELEMENT_TODO_LIST'));}switch(_0x12b448['newValue']){case'bulleted':return _0x49a3f0(o(_0x301158,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49a3f0(o(_0x301158,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49a3f0(o(_0x301158,'ELEMENT_TODO_LIST'));}}),_0x2be747['descriptionFactory']['registerDescriptionCallback'](_0x73af7a=>{const {data:_0x5ed19f}=_0x73af7a;if(_0x5ed19f&&'listIndent'==_0x5ed19f['key'])return null==_0x5ed19f['newValue']||null==_0x5ed19f['oldValue']&&0x0==_0x5ed19f['newValue']?_0x2b877d:void 0x0;}),_0x2be747['descriptionFactory']['registerDescriptionCallback'](_0x32bbdd=>{if('attribute'!=_0x32bbdd['type'])return;const {data:_0x2353db}=_0x32bbdd;if(!_0x2353db||'listItemId'!=_0x2353db['key'])return;const _0x4effa0=Te(_0x32bbdd);return'newValue'==_0x4effa0?{'type':'format','content':o(_0x301158,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4effa0?{'type':'format','content':o(_0x301158,'*Split:*\x20list\x20item')}:_0x2b877d;}),_0x31d1a9['model']['document']['registerPostFixer'](_0x1fbbd8=>this['listItemIdFixer'](_0x1fbbd8)),_0x31d1a9['model']['document']['registerPostFixer'](_0x54a134=>this['noTrackChangesFixer'](_0x54a134)),_0x31d1a9['model']['document']['on']('change:data',(_0xd0e479,_0x3d1b09)=>{if(_0x3d1b09['isUndo']||!_0x3d1b09['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5f480a){if(_0x5f480a['batch']['isUndo']||!_0x5f480a['batch']['isLocal'])return!0x1;let _0x1af2bd=!0x1;const _0x556bb0=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23b8b3=>_0x23b8b3['data']&&'listItemId'==_0x23b8b3['data']['key'])['filter'](_0x4b4db6=>_0x4b4db6['data']['newValue']&&_0x4b4db6['data']['oldValue']);for(const _0x363758 of _0x556bb0)Te(_0x363758)||(_0x5f480a['removeMarker'](_0x363758['getFirstMarker']()),_0x1af2bd=!0x0);return _0x1af2bd;}['noTrackChangesFixer'](_0x65efb8){if(_0x65efb8['batch']['isUndo']||!_0x65efb8['batch']['isLocal'])return!0x1;const _0x47997b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x47997b['trackChangesCommand']['value'])return!0x1;let _0x239302=!0x1;const _0x1f2d78=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x24328b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x40502d=>'attribute'==_0x40502d['type'])['filter'](_0x570dfd=>_0x1f2d78['includes'](_0x570dfd['attributeKey']));if(0x0==_0x24328b['length'])return _0x239302;for(const _0x2ddd45 of _0x24328b){const _0x4714f1=_0x47997b['_findSuggestions'](_0x2ddd45['range'],'attribute')['filter'](_0x4ad458=>!_0x4ad458['meta']['isNextTo'])['map'](_0x53a924=>_0x53a924['suggestion'])['filter'](_0x18f596=>{const _0x1e9662=_0x47997b['_getAttributeKey'](_0x18f596);return _0x1f2d78['includes'](_0x1e9662);});if(_0x4714f1['length']){for(const _0x4b6b64 of _0x4714f1)_0x65efb8['removeMarker'](_0x4b6b64['getFirstMarker']());_0x239302=!0x0;}}return _0x239302;}['assureChains'](){const _0x5a56f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe5fef=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x18c741;const _0x260c4b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x42768d=>{if(_0x42768d['data']['oldRange']||!_0x42768d['data']['newRange'])return null;if(!_0x42768d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x39525f}=_0x5a56f5['_splitMarkerName'](_0x42768d['name']);if(!_0x5a56f5['hasSuggestion'](_0x39525f))return null;const _0x57134d=_0x5a56f5['getSuggestion'](_0x39525f);return _0xe5fef['includes'](_0x57134d['data']['key']);})['map'](_0x5d0635=>{const {id:_0x63a0af}=_0x5a56f5['_splitMarkerName'](_0x5d0635['name']),_0x28b8e5=_0x5a56f5['getSuggestion'](_0x63a0af);return _0x18c741=_0x28b8e5['attributes']['groupId'],_0x28b8e5['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x260c4b['size'])return;const _0x5d39a6=_0x5a56f5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4cd3a9=>'attribute'==_0x4cd3a9['type']&&_0x4cd3a9['data']&&_0xe5fef['includes'](_0x4cd3a9['data']['key'])&&_0x4cd3a9['attributes']['groupId']!=_0x18c741)['map'](_0x12140d=>({'listItem':_0x12140d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x12140d['attributes']['groupId']})),_0x8a2e6c=new Set();for(const {groupId:_0x1379c7,listItem:_0x26a176}of _0x5d39a6)_0x260c4b['has'](_0x26a176)&&_0x8a2e6c['add'](_0x1379c7);for(const _0x17c4b8 of _0x5a56f5['getSuggestions']())_0x8a2e6c['has'](_0x17c4b8['attributes']['groupId'])&&_0x17c4b8['setAttribute']('groupId',_0x18c741);}['_supportLegacySuggestions'](){const _0x503d15=this['editor'],_0x12d09a=_0x503d15['locale'],_0x38d6ee=_0x503d15['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x38d6ee['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4bf66f,_0x3680c6){const _0x471adf=[];for(let _0x829287 of _0x4bf66f)_0x829287['start']['nodeAfter']===_0x829287['end']['parent']&&(_0x829287=_0x503d15['model']['createRange'](_0x503d15['model']['createPositionAt'](_0x829287['start']['nodeAfter'],0x0))),_0x471adf['push'](_0x829287);_0x503d15['model']['change'](_0x3c6f35=>{const _0x11ae05=_0x503d15['model']['document']['selection'],_0x10f5c7=Array['from'](_0x11ae05['getRanges']())['map'](_0x411fbe=>_0x50e55c['fromRange'](_0x411fbe));_0x3c6f35['setSelection'](_0x471adf),_0x503d15['commands']['get'](_0x3680c6['commandName'])['refresh'](),_0x3680c6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x503d15['execute'](_0x3680c6['commandName'],..._0x3680c6['commandParams']),_0x3c6f35['setSelection'](_0x10f5c7);for(const _0x4d52d2 of _0x10f5c7)_0x4d52d2['detach']();});}),_0x38d6ee['descriptionFactory']['registerElementLabel'](function(_0x1d4a0f){const _0x299012=!_0x503d15['model']['schema']['isObject'](_0x1d4a0f),_0x4a7bd6=_0x1d4a0f['previousSibling'],_0xc13078=_0x1d4a0f['nextSibling'],_0x4b8526=_0x1d4a0f['getAttribute']('listItemId'),_0x372bf8=!_0x4a7bd6||_0x4a7bd6['getAttribute']('listItemId')!==_0x4b8526,_0x37a261=!_0xc13078||_0xc13078['getAttribute']('listItemId')!==_0x4b8526;return _0x299012&&Boolean(_0x4b8526)&&_0x372bf8&&_0x37a261;},_0x289694=>o(_0x12d09a,'ELEMENT_LIST_ITEM',_0x289694));}['_registerLegacyDescription'](){const _0x41b903=this['editor'],_0x19a090=_0x41b903['locale'];function _0x4086b6(_0xf3beb0){const _0x5a8c58=_0x41b903['commands']['get']('bulletedList')['value'],_0x271362=_0x41b903['commands']['get']('numberedList')['value'];return'numberedList'===_0xf3beb0?_0x5a8c58:_0x271362;}_0x41b903['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x46c027){if('formatBlock'!=_0x46c027['type'])return;const {data:_0x34bcf3}=_0x46c027;if(!_0x34bcf3)return;let _0x4f1a0d,_0x53323c,_0x2c8120,_0x4795ee;switch(_0x34bcf3['commandName']){case'bulletedList':_0x2c8120=_0x34bcf3['commandParams'][0x0]['forceValue'],_0x4795ee=_0x4086b6(_0x34bcf3['commandName']),_0x4f1a0d=_0x2c8120?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4795ee&&_0x41b903['config']['get']('list.multiBlock')||(_0x4f1a0d='*Change\x20to:*\x20%0'),_0x53323c={'type':'format','content':o(_0x19a090,_0x4f1a0d,o(_0x19a090,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2c8120=_0x34bcf3['commandParams'][0x0]['forceValue'],_0x4795ee=_0x4086b6(_0x34bcf3['commandName']),_0x4f1a0d=_0x2c8120?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4795ee&&_0x41b903['config']['get']('list.multiBlock')||(_0x4f1a0d='*Change\x20to:*\x20%0'),_0x53323c={'type':'format','content':o(_0x19a090,_0x4f1a0d,o(_0x19a090,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4f1a0d='*Indent:*\x20%0',_0x53323c={'type':'format','content':o(_0x19a090,_0x4f1a0d,o(_0x19a090,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4f1a0d=function(_0x5ab7bc){const _0x2bb887=_0x5ab7bc['getFirstRange']();let _0x4fc470=_0x2bb887['start']['nodeAfter'];for(;_0x4fc470&&_0x2bb887['containsItem'](_0x4fc470);){if(_0x4fc470['getAttribute']('listIndent')>0x0)return!0x1;_0x4fc470=_0x4fc470['nextSibling'];}return!0x0;}(_0x46c027)?o(_0x19a090,'*Format:*\x20remove\x20from\x20%0',o(_0x19a090,function(_0x51eccc){return'ELEMENT_'+_0x51eccc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x46c027))):o(_0x19a090,'*Outdent:*\x20%0',o(_0x19a090,'ELEMENT_LIST_ITEM')),_0x53323c={'type':'format','content':_0x4f1a0d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x34bcf3['multipleBlocks']&&(_0x4f1a0d='*Merge:*\x20%0',_0x53323c={'type':'deletion','content':o(_0x19a090,_0x4f1a0d,o(_0x19a090,'ELEMENT_LIST_ITEM'))});}return _0x53323c;});}}function Te(_0x5e12a3){let _0x2f1cdd=_0x5e12a3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2f1cdd;){const _0x2049f0=_0x2f1cdd['getAttribute']('listItemId');if(!_0x2049f0)return!0x1;if(_0x2049f0==_0x5e12a3['data']['newValue'])return'newValue';if(_0x2049f0==_0x5e12a3['data']['oldValue'])return'oldValue';_0x2f1cdd=_0x2f1cdd['previousSibling'];}return!0x1;}class ye extends _0x2a9dde{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x32c236=this['editor']['config']['get']('list.properties'),_0x6fd3b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x32c236['styles']&&(_0x6fd3b8['enableDefaultAttributesIntegration']('listStyle'),_0x6fd3b8['registerBlockAttribute']('listStyle')),_0x32c236['reversed']&&(_0x6fd3b8['enableDefaultAttributesIntegration']('listReversed'),_0x6fd3b8['registerBlockAttribute']('listReversed')),_0x32c236['startIndex']&&(_0x6fd3b8['enableDefaultAttributesIntegration']('listStart'),_0x6fd3b8['registerBlockAttribute']('listStart'));const _0x161d95={'type':'format','content':''};_0x6fd3b8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4a79ba=this['editor']['locale'];_0x6fd3b8['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4a79ba,'FORMAT_LIST_REVERSED')),_0x6fd3b8['descriptionFactory']['registerDescriptionCallback'](_0x2540b4=>{const {data:_0x192769}=_0x2540b4;if(_0x192769&&'listReversed'==_0x192769['key'])return null==_0x192769['newValue']||0x0==_0x192769['newValue']&&null==_0x192769['oldValue']?_0x161d95:void 0x0;}),_0x6fd3b8['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4a79ba,'FORMAT_LIST_START')),_0x6fd3b8['descriptionFactory']['registerDescriptionCallback'](_0xb33e9b=>{const {data:_0x1838a0}=_0xb33e9b;if(_0x1838a0&&'listStart'==_0x1838a0['key'])return null==_0x1838a0['newValue']||0x1==_0x1838a0['newValue']&&null==_0x1838a0['oldValue']?_0x161d95:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1dbde5=>{if(_0x1dbde5['batch']['isUndo'])return!0x1;let _0x58883a=!0x1;const _0x44fad4=_0x6fd3b8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c34f8=>{const _0x5422dd=_0x6fd3b8['_getAttributeKey'](_0x4c34f8);return'listStart'==_0x5422dd||'listReversed'==_0x5422dd;});for(const _0x5c92a3 of _0x44fad4){const _0x5e7640=_0x5c92a3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5e7640||'customNumbered'==_0x5e7640)continue;_0x6fd3b8['_findSuggestions'](_0x5c92a3['getFirstRange'](),'attribute')['find'](_0xedde8b=>'listType'==_0x6fd3b8['_getAttributeKey'](_0xedde8b['suggestion']))||(_0x1dbde5['removeMarker'](_0x5c92a3['getFirstMarker']()),_0x58883a=!0x0);}return _0x58883a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4c71f9){const _0x5dcdb8=this['editor']['locale'],{data:_0x460bdc}=_0x4c71f9,_0x5ca69d={'type':'format','content':''};if(!_0x460bdc||'listStyle'!=_0x460bdc['key'])return;if(!_0x460bdc['oldValue'])return'default'==_0x460bdc['newValue']?_0x5ca69d:{'type':'format','content':''+o(_0x5dcdb8,'*Set\x20format:*\x20%0',o(_0x5dcdb8,this['_getTranslationKeyForListStyle'](_0x460bdc['newValue'])))};if(!_0x460bdc['newValue']){if('default'==_0x460bdc['oldValue'])return _0x5ca69d;let _0x4276c1=_0x4c71f9['head'];for(;_0x4276c1;){if(_0x4276c1['data']&&'listType'==_0x4276c1['data']['key']&&_0x4276c1['data']['newValue'])return _0x5ca69d;_0x4276c1=_0x4276c1['next'];}return{'type':'format','content':''+o(_0x5dcdb8,'*Remove\x20format:*\x20%0',o(_0x5dcdb8,this['_getTranslationKeyForListStyle'](_0x460bdc['oldValue'])))};}if('default'!=_0x460bdc['newValue'])return{'type':'format','content':''+o(_0x5dcdb8,'*Set\x20format:*\x20%0',o(_0x5dcdb8,this['_getTranslationKeyForListStyle'](_0x460bdc['newValue'])))};let _0x2298d3=_0x4c71f9['head'];for(;_0x2298d3;){if(_0x2298d3['data']&&'listType'==_0x2298d3['data']['key']&&_0x2298d3['data']['newValue']&&_0x2298d3['data']['oldValue'])return _0x5ca69d;_0x2298d3=_0x2298d3['next'];}return{'type':'format','content':o(_0x5dcdb8,'*Set\x20format:*\x20%0',o(_0x5dcdb8,'ELEMENT_'+_0x4c71f9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x160549=this['editor'],_0x3a19bd=_0x160549['locale'];_0x160549['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5adfab=>{if('formatBlock'!=_0x5adfab['type'])return;const {data:_0x1b04b5}=_0x5adfab;if(!_0x1b04b5)return;let _0x895ab6,_0x244d1b;switch(_0x1b04b5['commandName']){case'listStyle':_0x895ab6='*Change\x20to:*\x20%0',_0x244d1b={'type':'format','content':o(_0x3a19bd,_0x895ab6,o(_0x3a19bd,this['_getTranslationKeyForListStyle'](_0x1b04b5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x895ab6=_0x1b04b5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x244d1b={'type':'format','content':o(_0x3a19bd,_0x895ab6)};break;case'listStart':_0x895ab6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x244d1b={'type':'format','content':o(_0x3a19bd,_0x895ab6,_0x1b04b5['commandParams'][0x0]['startIndex'])};}return _0x244d1b;});}['_getTranslationKeyForListStyle'](_0x17a619){return'ELEMENT_'+function(_0x700b3a){if(Se['includes'](_0x700b3a))return'bulleted';if(_e['includes'](_0x700b3a))return'numbered';return null;}(_0x17a619)['toUpperCase']()+'_LIST_'+_0x17a619['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2a9dde{static get['requires'](){return[_0x5316f8];}['init'](){const _0x5e2d41=this['editor'],_0x4ba1b3=_0x5e2d41['plugins']['get']('TrackChangesEditing'),_0x65946c=_0x5e2d41['commands']['get']('enter');_0x4ba1b3['enableCommand']('enter',()=>{_0x5e2d41['model']['change'](_0x5ac2c4=>{const _0x235b63=_0x5e2d41['model']['document']['selection'],_0x4513a4=_0x235b63['getFirstPosition'](),_0xbf564=_0x50e55c['fromRange'](_0x235b63['getFirstRange']());if(_0x65946c['enterBlock'](_0x5ac2c4)){const _0x3e92c6=_0x5e2d41['model']['createPositionAt'](_0x4513a4['parent']['nextSibling'],0x0),_0xf3c3d2=_0x5ac2c4['createRange'](_0x4513a4,_0x3e92c6);_0x4ba1b3['markInsertion'](_0xf3c3d2);}else _0x5ac2c4['setSelection'](_0x5ac2c4['createRange'](_0xbf564['end']));_0xbf564['detach'](),_0x65946c['fire']('afterExecute',{'writer':_0x5ac2c4});});}),_0x5e2d41['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x5e2d41,'split'),{'priority':'high'}),_0x5e2d41['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x51a82f,_0x5371b0,_0x218f1d)=>{const _0x1b1937=_0x218f1d['mapper']['markerNameToElements'](_0x5371b0['markerName']);if(_0x1b1937){for(const _0x1620d9 of _0x1b1937)_0x1620d9['hasClass']('ck-suggestion-marker-split')&&(_0x218f1d['mapper']['unbindElementFromMarkerName'](_0x1620d9,_0x5371b0['markerName']),_0x218f1d['writer']['remove'](_0x1620d9));}},{'priority':'high'}),_0x5e2d41['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3205e6,_0xad9427,_0x378f38)=>{_0x378f38['options']['showSuggestionHighlights']&&Ne(_0x5e2d41,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3205e6,_0xad9427,_0x378f38);},{'priority':'high'});}}class Y extends _0x2a9dde{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4d8cde=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d8cde['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4d8cde['enableCommand']('findNext'),_0x4d8cde['enableCommand']('findPrevious'),_0x4d8cde['enableCommand']('replace'),_0x4d8cde['enableCommand']('replaceAll');}['handleFindCommand'](_0x3cba9b,_0x2e5cd2,_0x143d88={}){const _0x2a70b8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3cba9b(_0x59efd3=>{let _0x157ed8=('string'==typeof _0x2e5cd2?_0x2a70b8['findByTextCallback'](_0x2e5cd2,_0x143d88):_0x2e5cd2)(_0x59efd3);Array['isArray'](_0x157ed8)&&(_0x157ed8={'results':_0x157ed8,'searchText':'string'==typeof _0x2e5cd2?_0x2e5cd2:''});const _0x2ebd28=_0x157ed8['results']['filter'](_0x4a08d6=>!0x1===this['_isInDeletionRange'](_0x4a08d6,_0x59efd3['item']));return{..._0x157ed8,'results':_0x2ebd28};},_0x143d88);}['_isInDeletionRange'](_0x303735,_0x5e4243){const _0x2f091d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e4243,_0x303735['start']),this['editor']['model']['createPositionAt'](_0x5e4243,_0x303735['end']));for(const _0x4357fa of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2f091d['getIntersection'](_0x4357fa['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2a9dde{['afterInit'](){const _0x9d2338=this['editor']['locale'],_0xe57cb1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x17f983,commandName:_0x1e84d7}of ro)this['editor']['plugins']['has'](_0x17f983)&&(_0xe57cb1['enableDefaultAttributesIntegration'](_0x1e84d7),_0xe57cb1['registerInlineAttribute'](_0x1e84d7));_0xe57cb1['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x9d2338,'FORMAT_FONT_SIZE')),_0xe57cb1['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x9d2338,'FORMAT_FONT_FAMILY')),_0xe57cb1['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x9d2338,'FORMAT_FONT_COLOR')),_0xe57cb1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x9d2338,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28bfec=this['editor'],_0x46b7ca=_0x28bfec['locale'];_0x28bfec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1307c3=>{const _0x361174=_0x46b7ca['t'];if('formatInline'!=_0x1307c3['type'])return;const {data:_0x320dab}=_0x1307c3;if(null!=_0x320dab){if('fontSize'==_0x320dab['commandName']){const _0x4b8cff=_0x320dab['commandParams'][0x0]['value'];if(_0x4b8cff){const _0x46c53f=_0x361174(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1c7c62=>_0x1c7c62['model']==_0x4b8cff)['title'])['toLowerCase']();return{'type':'format','content':o(_0x46b7ca,'*Set\x20font\x20size:*\x20%0',_0x46c53f)};}return{'type':'format','content':o(_0x46b7ca,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x320dab['commandName']){const _0x2df86a=_0x320dab['commandParams'][0x0]['value'];return _0x2df86a?{'type':'format','content':o(_0x46b7ca,'*Set\x20font\x20family:*\x20%0',_0x2df86a)}:{'type':'format','content':o(_0x46b7ca,'*Reset\x20font\x20family*')};}if('fontColor'==_0x320dab['commandName']){const _0x1e26c2=_0x320dab['commandParams'][0x0]['value'];if(_0x1e26c2){const _0x7ebef7=_0x4fabbe(this['editor']['config']['get']('fontColor.colors'))['find'](_0x24a3a2=>_0x24a3a2['model']==_0x1e26c2);let _0xa8d762=_0x1e26c2,_0x55e5c5='';return _0x7ebef7&&(_0xa8d762=_0x7ebef7['label'],_0x55e5c5=_0x361174(_0xa8d762)['toLowerCase']()),{'type':'format','content':o(_0x46b7ca,'*Set\x20font\x20color:*\x20%0',_0x55e5c5)['trim'](),'color':{'value':_0x1e26c2,'title':_0x55e5c5||_0xa8d762}};}return{'type':'format','content':o(_0x46b7ca,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x320dab['commandName']){const _0x4ba5df=_0x320dab['commandParams'][0x0]['value'];if(_0x4ba5df){const _0x2c6dbb=_0x4fabbe(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x16c7ed=>_0x16c7ed['model']==_0x4ba5df);let _0x203ca9=_0x4ba5df,_0xb2a678='';return _0x2c6dbb&&(_0x203ca9=_0x2c6dbb['label'],_0xb2a678=_0x361174(_0x203ca9)['toLowerCase']()),{'type':'format','content':o(_0x46b7ca,'*Set\x20font\x20background\x20color:*\x20%0',_0xb2a678)['trim'](),'color':{'value':_0x4ba5df,'title':_0xb2a678||_0x203ca9}};}return{'type':'format','content':o(_0x46b7ca,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2a9dde{['afterInit'](){const _0x4a1fa7=this['editor'],_0x1d7a58=_0x4a1fa7['plugins']['get']('TrackChangesEditing'),_0x3e9356=_0x4a1fa7['commands']['get']('copyFormat'),_0x2f1177=_0x4a1fa7['commands']['get']('pasteFormat');_0x3e9356&&_0x2f1177&&(_0x1d7a58['enableDefaultAttributesIntegration']('pasteFormat'),_0x1d7a58['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x369ab0=this['editor'],_0x30620f=_0x369ab0['locale'];_0x369ab0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a2daf=>{if('formatBlock'!=_0x4a2daf['type']&&'formatInline'!=_0x4a2daf['type'])return;const {data:_0x34b116}=_0x4a2daf;if(_0x34b116&&'pasteFormat'===_0x34b116['commandName']){const _0x3f217b=[],_0x1e699c=_0x34b116['commandParams'][0x0];for(const [_0x13cb57,_0x113649]of Object['entries'](_0x1e699c))_0x3f217b['push'](so(_0x369ab0,_0x13cb57,_0x113649));return _0x3f217b['length']?{'type':'format','content':o(_0x30620f,'*Set\x20format\x20to:*\x20%0',_0x3f217b['join'](',\x20'))}:{'type':'format','content':o(_0x30620f,'*Remove\x20all\x20formatting*')};}});}}function so(_0xea36f1,_0x444ca4,_0x4a917e){const _0x58d635=_0xea36f1['locale']['t'],_0x45684a=_0x444ca4['split'](/(?=[A-Z])/)['join']('\x20'),_0x1dac15=_0x58d635(_0x45684a['charAt'](0x0)['toUpperCase']()+_0x45684a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4a917e)return _0x1dac15;if('fontColor'===_0x444ca4||'fontBackgroundColor'===_0x444ca4){const _0x260236=_0x4fabbe(_0xea36f1['config']['get']('fontColor.colors'))['find'](_0xd8b4c9=>_0xd8b4c9['model']==_0x4a917e);return _0x1dac15+'\x20('+(_0x260236?_0x58d635(_0x260236['label'])['toLowerCase']():_0x4a917e)+')';}if('fontSize'===_0x444ca4&&isNaN(parseFloat(_0x4a917e))){const _0x3f3ad3=_0xea36f1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xea36f1['config']['get']('fontSize.options'))['find'](_0x1fb54a=>_0x1fb54a['model']==_0x4a917e);return _0x1dac15+'\x20('+(_0x3f3ad3?_0x58d635(_0x3f3ad3['title'])['toLowerCase']():_0x4a917e)+')';}return _0x1dac15+'\x20('+_0x4a917e+')';}class nt extends _0x2a9dde{['_headingOptions'];['afterInit'](){const _0x1c4160=this['editor'];if(!_0x1c4160['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1c4160['config']['get']('heading.options');const _0x331b16=_0x1c4160['locale'],_0x480aa3=_0x1c4160['plugins']['get']('TrackChangesEditing');_0x480aa3['enableDefaultAttributesIntegration']('heading');for(const _0x2ee54a of this['_headingOptions'])'paragraph'!=_0x2ee54a['model']&&_0x480aa3['descriptionFactory']['registerElementLabel'](_0x2ee54a['model'],_0x51e119=>{const _0x4089ed=this['_getHeadingLevel'](_0x2ee54a['model']);return null!==_0x4089ed?_0x14e4f5(_0x51e119,_0x4089ed):_0x3049ee(_0x51e119,_0x2ee54a['title']);});function _0x14e4f5(_0x56d288,_0x3fa300){return o(_0x331b16,'ELEMENT_HEADING',[_0x56d288,_0x3fa300]);}function _0x3049ee(_0x3b8d2f,_0x235504){return o(_0x331b16,'ELEMENT_HEADING_CUSTOM',[_0x3b8d2f,_0x235504]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c23ee=this['editor'],_0x4b270d=_0x4c23ee['locale'];function _0x4dacb8(_0x19a5b5,_0x5b65c6){return o(_0x4b270d,'ELEMENT_HEADING_CUSTOM',[_0x19a5b5,_0x5b65c6]);}_0x4c23ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cc622=>{if('formatBlock'!=_0x4cc622['type'])return;const {data:_0xe6453}=_0x4cc622;if(_0xe6453&&'heading'==_0xe6453['commandName']){const _0x526e41=_0xe6453['commandParams'][0x0]['value'],_0x3e69f4=this['_getHeadingLevel'](_0x526e41);if(null!==_0x3e69f4)return{'type':'format','content':o(_0x4b270d,'*Change\x20to:*\x20%0',(_0x5ae7c0=0x1,_0x1ec349=_0x3e69f4,o(_0x4b270d,'ELEMENT_HEADING',[_0x5ae7c0,_0x1ec349])))};const _0x584d65=this['_headingOptions']['find'](_0x1e7bc8=>_0x1e7bc8['model']===_0x526e41)['title'];return{'type':'format','content':o(_0x4b270d,'*Change\x20to:*\x20%0',_0x4dacb8(0x1,_0x584d65))};}var _0x5ae7c0,_0x1ec349;});}['_getHeadingLevel'](_0x4b3cb1){const _0xffa6ae=_0x4b3cb1['match'](/^heading(\d+)/);if(_0xffa6ae)return _0xffa6ae[0x1];const _0x5301ef=this['_headingOptions']?.['find'](_0x4a463e=>_0x4a463e['model']==_0x4b3cb1);if(_0x5301ef&&_0x5301ef['view']){const _0x2d6b2e=_0x5301ef['view'],_0x423bce=(_0x2d6b2e['name']??_0x2d6b2e)['match'](/^h(\d+)/);if(_0x423bce)return _0x423bce[0x1];}return null;}}class it extends _0x2a9dde{['afterInit'](){const _0x43a94e=this['editor'];if(!_0x43a94e['plugins']['has']('HighlightEditing'))return;const _0x36005e=_0x43a94e['plugins']['get']('TrackChangesEditing'),_0x2518c6=_0x43a94e['locale'];_0x36005e['enableDefaultAttributesIntegration']('highlight'),_0x36005e['registerInlineAttribute']('highlight'),_0x36005e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2518c6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c545c=this['editor'],_0x5105d3=_0x2c545c['locale'];_0x2c545c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf0d528=>{if('formatInline'!=_0xf0d528['type'])return;const {data:_0xead7bb}=_0xf0d528;if(_0xead7bb&&'highlight'==_0xead7bb['commandName']){const _0xd1c2ee=_0x5105d3['t'],_0x1f01a0=_0xead7bb['commandParams'][0x0]['value'];if(_0x1f01a0){const _0x12cec9=_0x2c545c['config']['get']('highlight.options')['find'](_0x51a5a9=>_0x51a5a9['model']==_0x1f01a0),_0x448803=_0xd1c2ee(_0x12cec9['title'])['toLowerCase']();return{'type':'format','content':o(_0x5105d3,'*Set\x20highlight:*\x20%0',_0x448803),'color':{'value':_0x12cec9['color'],'title':_0x12cec9['title']}};}return{'type':'format','content':o(_0x5105d3,'*Remove\x20highlight*',o(_0x5105d3,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x2a9dde{['afterInit'](){const _0x161266=this['editor'];if(!_0x161266['plugins']['has']('HorizontalLineEditing'))return;_0x161266['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d75c9=_0x161266['plugins']['get']('TrackChangesEditing'),_0x1e4663=_0x161266['locale'];_0x4d75c9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x48876f=>o(_0x1e4663,'ELEMENT_HORIZONTAL_LINE',_0x48876f)),_0x161266['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x594024,{writer:_0x48d2f6,options:_0x182810})=>{if(!_0x182810['showSuggestionHighlights'])return null;const _0x49e534=_0x48d2f6['createContainerElement']('div'),_0x36d535=_0x48d2f6['createEmptyElement']('hr');return _0x48d2f6['addClass']('ck-horizontal-line',_0x49e534),_0x48d2f6['insert'](_0x48d2f6['createPositionAt'](_0x49e534,0x0),_0x36d535),_0x49e534;},'converterPriority':'high'});}}class st extends _0x2a9dde{['afterInit'](){const _0x5ac3d6=this['editor'];if(!_0x5ac3d6['plugins']['has']('HtmlEmbed'))return;const _0x353656=_0x5ac3d6['plugins']['get']('TrackChangesEditing'),_0x1fbfe9=_0x5ac3d6['locale'];_0x353656['descriptionFactory']['registerElementLabel']('rawHtml',_0x5bdcce=>o(_0x1fbfe9,'ELEMENT_HTML_EMBED',_0x5bdcce)),_0x353656['enableDefaultAttributesIntegration']('htmlEmbed'),_0x353656['registerBlockAttribute']('value'),_0x353656['descriptionFactory']['registerDescriptionCallback'](_0x54faa7=>{if('attribute'!=_0x54faa7['type'])return;const {data:_0x1dfa52}=_0x54faa7;if(_0x1dfa52&&'value'==_0x1dfa52['key']&&_0x54faa7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x15e3bf=o(_0x1fbfe9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1fbfe9,'*Change\x20%0\x20content*',_0x15e3bf)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1aa86e=this['editor'],_0x299fe9=_0x1aa86e['locale'];_0x1aa86e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e34d9=>{if('formatBlock'!=_0x3e34d9['type'])return;const {data:_0x301abf}=_0x3e34d9;if(_0x301abf&&'htmlEmbed'==_0x301abf['commandName']){const _0x3d1c08=o(_0x299fe9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x299fe9,'*Change\x20%0\x20content*',_0x3d1c08)};}});}}class ot extends _0x2a9dde{['afterInit'](){const _0x3316ba=this['editor'];if(!_0x3316ba['plugins']['has']('ImageEditing'))return;const _0x5e8b29=_0x3316ba['plugins']['get']('TrackChangesEditing'),_0x418d8a=_0x3316ba['plugins']['get']('ImageUtils'),_0x46d3e8=_0x3316ba['locale'];_0x5e8b29['enableCommand']('insertImage'),_0x5e8b29['descriptionFactory']['registerElementLabel']('imageBlock',_0x4d85b8=>o(_0x46d3e8,'ELEMENT_IMAGE',_0x4d85b8)),_0x5e8b29['descriptionFactory']['registerElementLabel']('imageInline',_0x552259=>o(_0x46d3e8,'ELEMENT_INLINE_IMAGE',_0x552259)),_0x5e8b29['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x46d3e8,'ELEMENT_CAPTION')),_0x3316ba['plugins']['has']('ImageUploadEditing')&&_0x5e8b29['enableCommand']('uploadImage'),_0x3316ba['plugins']['has']('ImageBlockEditing')&&_0x3316ba['plugins']['has']('ImageInlineEditing')&&(_0x5e8b29['enableCommand']('imageTypeInline',(_0x4ca239,_0x2e7fab)=>{const _0x481f85=_0x418d8a['getClosestSelectedImageElement'](_0x3316ba['model']['document']['selection']);_0x3316ba['model']['change'](()=>{_0x5e8b29['markBlockFormat'](_0x481f85,{'commandName':'imageTypeInline','commandParams':[_0x2e7fab]},[],'convertBlockImageToInline');});}),_0x5e8b29['enableCommand']('imageTypeBlock',(_0x399f2b,_0x197c33)=>{_0x3316ba['model']['change'](_0x177fdc=>{let _0x1c6d94=_0x418d8a['getClosestSelectedImageElement'](_0x3316ba['model']['document']['selection']),_0x19e101=_0x177fdc['createRangeOn'](_0x1c6d94);const _0x4faeab=_0x1a7a47['fromPosition'](_0x19e101['start'],'toPrevious'),_0x32889e=_0x1a7a47['fromPosition'](_0x19e101['end'],'toNext');_0x5e8b29['forceDefaultExecution'](()=>_0x399f2b(_0x197c33)),_0x1c6d94=_0x418d8a['getClosestSelectedImageElement'](_0x3316ba['model']['document']['selection']),_0x19e101=_0x177fdc['createRangeOn'](_0x1c6d94);const _0x50b149=_0x177fdc['createRange'](_0x4faeab,_0x32889e);_0x4faeab['detach'](),_0x32889e['detach'](),_0x5e8b29['markBlockFormat'](_0x1c6d94,{'commandName':'imageTypeInline','commandParams':[_0x197c33]},[],'convertInlineImageToBlock'),_0x50b149['start']['isBefore'](_0x19e101['start'])&&_0x5e8b29['markInsertion'](_0x177fdc['createRange'](_0x50b149['start'],_0x19e101['start']),'convertInlineImageToBlock'),_0x19e101['end']['isBefore'](_0x50b149['end'])&&_0x5e8b29['markInsertion'](_0x177fdc['createRange'](_0x19e101['end'],_0x50b149['end']),'convertInlineImageToBlock');});}),_0x5e8b29['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e8b29['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e8b29['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e8b29['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e8b29['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e8b29['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2e91ea])=>{const _0x335a29=_0x5e8b29['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3c5381=_0x2e91ea['start'],_0x1cffed=_0x2e91ea['end'];const _0x6115f8=_0x3316ba['model']['schema']['getNearestSelectionRange'](_0x3c5381,'backward'),_0x15d063=_0x3316ba['model']['schema']['getNearestSelectionRange'](_0x1cffed,'forward');_0x6115f8['isCollapsed']&&(_0x3c5381=_0x6115f8['start']),_0x15d063['isCollapsed']&&(_0x1cffed=_0x15d063['end']),_0x335a29([_0x3316ba['model']['createRange'](_0x3c5381,_0x1cffed)]);}),_0x5e8b29['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1486d1),_0x5e8b29['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1486d1)),_0x3316ba['plugins']['has']('ImageCaptionEditing')&&(_0x5e8b29['enableCommand']('toggleImageCaption',(_0x179d58,_0x331e3d)=>{const _0x2e63be=_0x3316ba['plugins']['get']('ImageCaptionUtils');let _0x3f819d=_0x418d8a['getClosestSelectedImageElement'](_0x3316ba['model']['document']['selection']),_0x3f183d=_0x2e63be['getCaptionFromImageModelElement'](_0x3f819d);_0x3316ba['model']['change'](()=>{if(_0x3f183d)return void _0x5e8b29['markDeletion'](_0x3316ba['model']['createRangeOn'](_0x3f183d));const _0x1de550=_0x418d8a['isBlockImage'](_0x3f819d);_0x179d58(_0x331e3d),_0x3f819d=_0x418d8a['getClosestSelectedImageElement'](_0x3316ba['model']['document']['selection']),_0x3f183d=_0x2e63be['getCaptionFromImageModelElement'](_0x3f819d),_0x5e8b29['markInsertion'](_0x3316ba['model']['createRangeOn'](_0x3f183d),_0x1de550?null:'imageCaption');});}),_0x5e8b29['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1486d1));const _0x1a072c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x194d5a(_0x471544,_0x242626){const _0x16118a=_0x1a072c['findIndex'](({type:_0x18f1ca,subType:_0x53e78f})=>_0x471544['type']==_0x18f1ca&&_0x471544['subType']==_0x53e78f),_0x5471d7=_0x1a072c['findIndex'](({type:_0x26bd5e,subType:_0x44632c})=>_0x242626['type']==_0x26bd5e&&_0x242626['subType']==_0x44632c);if(_0x16118a<0x0||_0x5471d7<0x0)return!0x1;const _0xfc20cd=_0x471544['getFirstRange'](),_0x25856a=_0x242626['getFirstRange']();if((0x0==_0x16118a||0x1==_0x16118a)&&0x2==_0x5471d7&&_0xfc20cd['isIntersecting'](_0x25856a))return!0x0;if(0x2==_0x16118a&&0x3==_0x5471d7){const _0x5b0564=_0x5e8b29['_findSuggestions'](_0xfc20cd,'insertion')['filter'](({suggestion:_0x36fe2e,meta:_0x494c9b})=>_0x494c9b['isOwn']&&'convertInlineImageToBlock'==_0x36fe2e['subType']);if(_0x5b0564['length']>0x1&&_0x25856a['end']['isEqual'](_0xfc20cd['start']))return!0x0;if(0x1==_0x5b0564['length']&&(_0xfc20cd['start']['isEqual'](_0x25856a['end'])||_0xfc20cd['end']['isEqual'](_0x25856a['start'])))return!0x0;}if(0x3==_0x16118a&&0x3==_0x5471d7&&_0xfc20cd['start']['isBefore'](_0x25856a['start'])){const _0x225ee4=_0xfc20cd['end']['nodeAfter'],_0x433139=_0x25856a['start']['nodeBefore'];return _0x418d8a['isBlockImage'](_0x225ee4)&&_0x225ee4===_0x433139;}return!0x1;}function _0x1486d1(_0x4673ba,_0x33d952){return _0x194d5a(_0x4673ba,_0x33d952)?[_0x4673ba,_0x33d952]:_0x194d5a(_0x33d952,_0x4673ba)?[_0x33d952,_0x4673ba]:null;}_0x3316ba['plugins']['has']('ImageResize')&&(_0x5e8b29['enableDefaultAttributesIntegration']('resizeImage'),_0x5e8b29['registerBlockAttribute']('resizedWidth'),_0x5e8b29['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x46d3e8,'FORMAT_IMAGE_SIZE'))),_0x3316ba['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e8b29['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e8b29['registerBlockAttribute']('alt')),_0x5e8b29['descriptionFactory']['registerDescriptionCallback'](_0x4be858=>{if(!!_0x1a072c['find'](({type:_0x375599,subType:_0x2e7b64})=>_0x4be858['type']==_0x375599&&_0x4be858['subType']==_0x2e7b64))return _0x4be858['previous']?{}:void 0x0;}),_0x5e8b29['descriptionFactory']['registerDescriptionCallback'](_0x2648d4=>{if('insertion'==_0x2648d4['type']||'deletion'==_0x2648d4['type']){const _0x36bf25=_0x2648d4['getContainedElement']();if(_0x36bf25&&_0x36bf25['is']('element','caption'))return{'type':'insertion'==_0x2648d4['type']?'addObject':'removeObject','element':_0x36bf25,'quantity':0x1};}}),_0x5e8b29['descriptionFactory']['registerDescriptionCallback'](_0x44123e=>'formatBlock'==_0x44123e['type']&&'convertInlineImageToBlock'==_0x44123e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x44123e['type']&&'convertBlockImageToInline'==_0x44123e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e8b29['descriptionFactory']['registerDescriptionCallback'](_0x22575d=>{if('attribute'!=_0x22575d['type'])return;const {data:_0x545dae}=_0x22575d;if(!_0x545dae||'alt'!=_0x545dae['key'])return;const _0x4a83e1=_0x545dae['newValue'];return _0x4a83e1?{'type':'format','content':o(_0x46d3e8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a83e1+'\x22')}:{'type':'format','content':o(_0x46d3e8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23bda7=this['editor'],_0x5d3229=_0x23bda7['locale'];_0x23bda7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x369aa1=>{if('formatBlock'!=_0x369aa1['type']&&'formatInline'!=_0x369aa1['type'])return;const {data:_0x5e6c2e}=_0x369aa1;if(_0x5e6c2e){if('imageTextAlternative'==_0x5e6c2e['commandName']){const _0x17e0f5=_0x5e6c2e['commandParams'][0x0]['newValue'];return _0x17e0f5?{'type':'format','content':o(_0x5d3229,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x17e0f5+'\x22')}:{'type':'format','content':o(_0x5d3229,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5e6c2e['commandName']){const _0x58bcbe=_0x5e6c2e['commandParams'][0x0]['width'];return _0x58bcbe?{'type':'format','content':o(_0x5d3229,'*Set\x20image\x20width:*\x20%0',_0x58bcbe)}:{'type':'format','content':o(_0x5d3229,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x2a9dde{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2260fe=this['editor']['locale'],_0x256ef6=this['editor']['plugins']['get']('TrackChangesEditing');_0x256ef6['enableDefaultAttributesIntegration']('replaceImageSource'),_0x256ef6['registerBlockAttribute']('src'),_0x256ef6['descriptionFactory']['registerDescriptionCallback'](_0x2fd933=>{if('attribute'!=_0x2fd933['type'])return;const {data:_0x520c1b}=_0x2fd933;return _0x520c1b&&'src'==_0x520c1b['key']?_0x520c1b['newValue']&&_0x520c1b['oldValue']?{'type':'format','content':o(_0x2260fe,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x331bf1=this['editor']['plugins']['get']('TrackChangesEditing');_0x331bf1['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x331bf1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x331bf1['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x331bf1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1caddf=this['editor'],_0x1b5298=_0x1caddf['locale'];_0x1caddf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22bf92=>{if('formatBlock'!=_0x22bf92['type']&&'formatInline'!=_0x22bf92['type'])return;const {data:_0x331411}=_0x22bf92;if(!_0x331411||'replaceImageSource'!=_0x331411['commandName'])return;return{'type':'format','content':o(_0x1b5298,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x2a9dde{['afterInit'](){const _0x2c82ef=this['editor'];if(!_0x2c82ef['plugins']['has']('ImageStyleEditing'))return;const _0x4b10aa=_0x2c82ef['plugins']['get']('TrackChangesEditing'),_0x1dd1b7=_0x2c82ef['plugins']['get']('ImageUtils'),_0x494d9e={};_0x4b10aa['enableCommand']('imageStyle',(_0x2b805e,_0x71553)=>{const _0xf2fccf=_0x2c82ef['plugins']['get']('Users')['me'],_0x51f208=_0x2c82ef['commands']['get']('imageStyle');let _0x1f2ff3=_0x1dd1b7['getClosestSelectedImageElement'](_0x2c82ef['model']['document']['selection']),_0x1c5287=_0x2c82ef['model']['createRangeOn'](_0x1f2ff3),_0x4e3aa7=_0x51f208['value'];if(_0x4e3aa7==_0x71553['value'])return;const _0x191059={'commandName':'imageStyle','commandParams':[_0x71553],'formatGroupId':_0x38ab32()};_0x2c82ef['model']['change'](()=>{if(_0x4b10aa['getSuggestions']()['filter'](_0xb6c342=>_0xb6c342['isInContent']&&_0xf2fccf==_0xb6c342['author']&&('formatBlock'==_0xb6c342['type']||'formatInline'==_0xb6c342['type'])&&('imageStylePreApply'==_0xb6c342['subType']||'imageStylePostApply'==_0xb6c342['subType'])&&_0xb6c342['getFirstRange']()['isEqual'](_0x1c5287))['forEach'](_0x49c10b=>_0x4b10aa['discardSuggestion'](_0x49c10b['head'])),_0x1f2ff3=_0x1dd1b7['getClosestSelectedImageElement'](_0x2c82ef['model']['document']['selection']),_0x1c5287=_0x2c82ef['model']['createRangeOn'](_0x1f2ff3),_0x51f208['refresh'](),_0x2c82ef['commands']['get']('imageTypeInline')['refresh'](),_0x2c82ef['commands']['get']('imageTypeBlock')['refresh'](),_0x4e3aa7=_0x51f208['value'],_0x4e3aa7!=_0x71553['value'])return _0x1dd1b7['isInlineImage'](_0x1f2ff3)&&_0x51f208['shouldConvertImageType'](_0x71553['value'],_0x1f2ff3)?(_0x2b805e({..._0x71553,'setImageSizes':!0x1}),_0x1f2ff3=_0x1dd1b7['getClosestSelectedImageElement'](_0x2c82ef['model']['document']['selection']),void _0x4b10aa['markBlockFormat'](_0x1f2ff3,{..._0x191059,'commandReversedParams':[{'value':_0x4e3aa7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1dd1b7['isBlockImage'](_0x1f2ff3)?_0x4b10aa['markBlockFormat'](_0x1f2ff3,_0x191059,[],'imageStylePostApply'):_0x4b10aa['markInlineFormat'](_0x1c5287,_0x191059,'imageStylePostApply'));});});for(const _0x1f676f of _0x2c82ef['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x494d9e[_0x1f676f['name']]=_0x1f676f['title']['toLowerCase']();_0x4b10aa['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4b10aa['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4b10aa['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4b10aa['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4f806f])=>{_0x1dd1b7['setImageNaturalSizeAttributes'](_0x4f806f['getContainedElement']());}),_0x4b10aa['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4f4b3e,_0x42564f)=>{_0x4b10aa['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4f4b3e,{'commandName':_0x42564f['commandName'],'commandParams':_0x42564f['commandReversedParams']});}),_0x4b10aa['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x58829a,_0x1b364c){if(_0xdd67d5(_0x58829a,_0x1b364c))return[_0x58829a,_0x1b364c];if(_0xdd67d5(_0x1b364c,_0x58829a))return[_0x1b364c,_0x58829a];return null;});const _0x2ef5bd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xdd67d5(_0x493b30,_0x20632d){const _0x51afba=_0x2ef5bd['findIndex'](({type:_0x4c95ee,subType:_0x1c06f2})=>_0x493b30['type']==_0x4c95ee&&_0x493b30['subType']==_0x1c06f2),_0x1f1015=_0x2ef5bd['findIndex'](({type:_0x45a4b0,subType:_0x4101de})=>_0x20632d['type']==_0x45a4b0&&_0x20632d['subType']==_0x4101de);if(_0x51afba<0x0||_0x1f1015<0x0)return!0x1;const _0x524f3a=_0x493b30['getFirstRange'](),_0x5e8d01=_0x20632d['getFirstRange']();if((0x0==_0x51afba||0x1==_0x51afba)&&0x2==_0x1f1015&&_0x524f3a['isIntersecting'](_0x5e8d01))return!0x0;if(0x2==_0x51afba&&0x3==_0x1f1015){const _0x9a2ae1=_0x4b10aa['_findSuggestions'](_0x524f3a,'insertion')['filter'](({suggestion:_0x107256,meta:_0x18902f})=>_0x18902f['isOwn']&&'convertInlineImageToBlock'==_0x107256['subType']);if(_0x9a2ae1['length']>0x1&&_0x5e8d01['end']['isEqual'](_0x524f3a['start']))return!0x0;if(0x1==_0x9a2ae1['length']&&(_0x524f3a['start']['isEqual'](_0x5e8d01['end'])||_0x524f3a['end']['isEqual'](_0x5e8d01['start'])))return!0x0;}if(0x3==_0x51afba&&0x3==_0x1f1015&&_0x524f3a['start']['isBefore'](_0x5e8d01['start'])){const _0x2df494=_0x524f3a['end']['nodeAfter'],_0x2f5146=_0x5e8d01['start']['nodeBefore'];return _0x1dd1b7['isBlockImage'](_0x2df494)&&_0x2df494===_0x2f5146;}return!0x1;}_0x2c82ef['model']['document']['registerPostFixer'](()=>{let _0x182210=!0x1;const _0x4d0754=Array['from'](_0x2c82ef['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x250cb9,data:_0x19ca32}of _0x4d0754){const {group:_0x4c6be2,type:_0x17d431,subType:_0x5a4bab,id:_0x25a96a}=_0x4b10aa['_splitMarkerName'](_0x250cb9);if('suggestion'==_0x4c6be2&&_0x4b10aa['hasSuggestion'](_0x25a96a)){if('formatBlock'==_0x17d431&&('imageStylePreApply'==_0x5a4bab||'imageStylePostApply'==_0x5a4bab)){const _0x1043c5=_0x4b10aa['getSuggestion'](_0x25a96a);if(_0x19ca32['newRange']){const _0x3a902a=_0x1043c5['getFirstRange']()['getContainedElement']();if(_0x1dd1b7['isBlockImage'](_0x3a902a))continue;_0x4b10aa['discardSuggestion'](_0x1043c5),_0x182210=!0x0;}}if('insertion'==_0x17d431&&'imageCaption'==_0x5a4bab&&!_0x19ca32['newRange']){const _0x1de4a0=_0x4b10aa['getSuggestion'](_0x25a96a);_0x1de4a0['next']&&_0x1de4a0['next']['isInContent']&&(_0x4b10aa['discardSuggestion'](_0x1de4a0['next']),_0x182210=!0x0);}}}return _0x182210;}),this['_registerLegacyDescription'](_0x494d9e);}['_registerLegacyDescription'](_0xa81100){const _0x195df1=this['editor'],_0x4c7cd5=_0x195df1['locale'];_0x195df1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x77e531=>{if('formatBlock'!=_0x77e531['type']&&'formatInline'!=_0x77e531['type'])return;const {data:_0x5e7983}=_0x77e531;if(!_0x5e7983||'imageStyle'!=_0x5e7983['commandName'])return;const _0x5b226a=_0x5e7983['commandParams'][0x0]['value'];return _0x331fa3('side'===_0x5b226a?o(_0x4c7cd5,'FORMAT_SIDE_IMAGE'):_0xa81100[_0x5b226a]||_0x5b226a);function _0x331fa3(_0x4c245c){return{'type':'format','content':o(_0x4c7cd5,'*Format:*\x20%0',_0x4c245c)};}});}}class ct extends _0x2a9dde{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x86bea4){super(_0x86bea4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4b2415=this['editor'],_0x1cf2d3=_0x4b2415['commands']['get']('importWord'),_0x2899a6=_0x4b2415['commands']['get']('trackChanges');_0x1cf2d3&&(_0x1cf2d3['on']('execute',(_0x17f318,[,_0x2ae738])=>{this['_trackChangesValueDuringImport']=_0x2899a6['value'],_0x2ae738['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1cf2d3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1cf2d3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2899a6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4b2415['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x15f7a5,_0x19e48c){const {suggestions:_0x281b4}=_0x19e48c,_0x36aef0=this['editor']['commands']['get']('trackChanges'),_0xfde53f=_0x36aef0['value'];this['_trackChangesValueDuringImport']!==_0xfde53f&&(_0x36aef0['execute'](),this['_trackChangesExecuted']=!0x0),_0x281b4&&_0x281b4['forEach'](({id:_0x1109f5,type:_0x5b3992,author:_0x355a45,created_at:_0x5c2b22})=>{const _0x44a967={'id':_0x1109f5,'type':_0x5b3992,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x355a45,'createdAt':_0x5c2b22?new Date(_0x5c2b22):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x44a967);});}}class ut extends _0x2a9dde{['afterInit'](){const _0x119bc1=this['editor'],_0x182326=_0x119bc1['plugins']['get']('TrackChangesEditing');if(_0x119bc1['plugins']['has']('IndentEditing')&&(_0x182326['enableCommand']('indent'),_0x182326['enableCommand']('outdent')),_0x119bc1['plugins']['has']('IndentBlock')){for(const _0x3c7c8d of['indentBlock','outdentBlock'])_0x182326['enableDefaultAttributesIntegration'](_0x3c7c8d);}const _0x26a0fa=_0x119bc1['locale'];_0x182326['registerBlockAttribute']('blockIndent'),_0x182326['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x26a0fa,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c3c39=this['editor'],_0x32b742=_0x2c3c39['locale'],_0x1caa80=_0x2c3c39['plugins']['get']('TrackChangesEditing');_0x1caa80['descriptionFactory']['registerDescriptionCallback'](_0x23e62d=>{if('formatBlock'!=_0x23e62d['type'])return;const {data:_0x45edac}=_0x23e62d;if(!_0x45edac)return;if('indentBlock'!=_0x45edac['commandName']&&'outdentBlock'!=_0x45edac['commandName'])return;const _0x57a284=_0x23e62d['getItems']()[0x0],_0x401a5b=_0x1caa80['descriptionFactory']['getItemLabel'](_0x57a284);return'indentBlock'==_0x45edac['commandName']?{'type':'format','content':o(_0x32b742,'*Indent:*\x20%0',_0x401a5b)}:'outdentBlock'==_0x45edac['commandName']?{'type':'format','content':o(_0x32b742,'*Outdent:*\x20%0',_0x401a5b)}:void 0x0;});}}class ft extends _0x2a9dde{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2a9dde{['afterInit'](){const _0x2b5e05=this['editor'];if(!_0x2b5e05['plugins']['has']('LinkEditing'))return;const _0x3bbd50=_0x2b5e05['plugins']['get']('TrackChangesEditing'),_0x5508c7=_0x2b5e05['commands']['get']('link');_0x3bbd50['enableDefaultAttributesIntegration']('link'),_0x3bbd50['enableDefaultAttributesIntegration']('unlink'),_0x3bbd50['registerInlineAttribute']('linkHref');for(const _0x403326 of _0x5508c7['manualDecorators'])_0x3bbd50['registerInlineAttribute'](_0x403326['id']),_0x3bbd50['descriptionFactory']['registerAttributeLabel'](_0x403326['id'],'link\x20('+_0x403326['label']['toLowerCase']()+')');_0x3bbd50['descriptionFactory']['registerDescriptionCallback'](_0x286822=>{if('attribute'!=_0x286822['type'])return;const {data:_0x41b57f}=_0x286822;if(!_0x41b57f||'linkHref'!=_0x41b57f['key'])return;const _0x2a43d5=_0x41b57f['newValue'],_0x46a857=_0x2b5e05['locale'];return{'type':'format','content':null==_0x2a43d5?o(_0x46a857,'*Remove\x20link*'):o(_0x46a857,'*Set\x20link:*\x20%0','\x22'+_0x2a43d5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f38db=this['editor'],_0x54d13e=_0x2f38db['locale'];_0x2f38db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23260d=>{if('formatInline'!=_0x23260d['type'])return;const {data:_0x2e85f6}=_0x23260d;if(_0x2e85f6){if('link'==_0x2e85f6['commandName']){const _0x1fccf6=_0x2e85f6['commandParams'][0x0];return{'type':'format','content':o(_0x54d13e,'*Set\x20link:*\x20%0','\x22'+_0x1fccf6+'\x22')};}return'unlink'==_0x2e85f6['commandName']?{'type':'format','content':o(_0x54d13e,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x2a9dde{['afterInit'](){const _0x2097a4=this['editor'],_0x2d5ee7=_0x2097a4['locale'];if(!_0x2097a4['plugins']['has']('LegacyListEditing'))return;const _0x44ab5e=_0x2097a4['plugins']['get']('TrackChangesEditing'),_0x3c4d73=_0x2097a4['plugins']['has']('LegacyTodoListEditing');function _0xb04427(_0x15dc27){return()=>{const _0x4b4229=_0x2097a4['model']['document']['selection'],_0x5d7c3d=_0x2097a4['commands']['get'](_0x15dc27);if(_0x5d7c3d['value'])return void _0x2097a4['execute']('paragraph',{});const _0x16ef96=_0x15dc27['slice'](0x0,-0x4),_0x313cdf=function(_0x3760ff,_0x487c7b,_0x248c04){let _0x52ebb9=Array['from'](_0x3760ff)['filter'](_0x286781=>function(_0x37fc36,_0x1e7402){return _0x1e7402['checkChild'](_0x37fc36['parent'],'listItem')&&!_0x1e7402['isObject'](_0x37fc36);}(_0x286781,_0x248c04));_0x52ebb9=_0x52ebb9['filter'](_0x414a25=>!_0x414a25['is']('element','listItem')||_0x414a25['getAttribute']('listType')!=_0x487c7b);const _0x4cde61=new Set();for(const _0x19673b of _0x52ebb9)_0x19673b['is']('element','listItem')?_0x4cde61['add'](Le(_0x19673b)):_0x4cde61['add'](_0x19673b);return Array['from'](_0x4cde61);}(_0x4b4229['getSelectedBlocks'](),_0x16ef96,_0x2097a4['model']['schema']);_0x2097a4['model']['change'](()=>{for(const _0x464f86 of _0x313cdf)_0x44ab5e['markBlockFormat'](_0x464f86,{'commandName':_0x15dc27,'commandParams':[{'forceValue':!_0x5d7c3d['value']}],'formatGroupId':'blockName'},Ee(_0x464f86));});};}function _0x52ceb3(_0x33f8c5){return()=>{const _0x266f93=function(_0x288534){let _0x498d2c=Array['from'](_0x288534);const _0xf7600b=_0x498d2c['findIndex'](_0x537209=>'listItem'!=_0x537209['name']);return _0xf7600b>-0x1&&(_0x498d2c=_0x498d2c['slice'](0x0,_0xf7600b)),_0x498d2c;}(_0x2097a4['model']['document']['selection']['getSelectedBlocks']()),_0x33d931=_0x2097a4['model']['createRange'](_0x2097a4['model']['createPositionAt'](_0x266f93[0x0],'before'),_0x2097a4['model']['createPositionAt'](_0x266f93[_0x266f93['length']-0x1],'end'));_0x2097a4['model']['change'](()=>{_0x44ab5e['markBlockFormat'](_0x33d931,{'commandName':_0x33f8c5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x185e39){const _0x4d5fd1=new Set();for(const _0xa99204 of _0x185e39){let _0xc3f326=_0xa99204['nextSibling'];for(;_0xc3f326&&_0xc3f326['getAttribute']('listIndent')>_0xa99204['getAttribute']('listIndent');)_0x4d5fd1['add'](_0xc3f326),_0xc3f326=_0xc3f326['nextSibling'];}return Array['from'](_0x4d5fd1);}(_0x266f93));});};}_0x44ab5e['enableCommand']('numberedList',_0xb04427('numberedList')),_0x44ab5e['enableCommand']('bulletedList',_0xb04427('bulletedList')),_0x3c4d73&&_0x44ab5e['enableCommand']('todoList',_0xb04427('todoList')),_0x44ab5e['enableCommand']('indentList',_0x52ceb3('indentList')),_0x44ab5e['enableCommand']('outdentList',_0x52ceb3('outdentList')),_0x3c4d73&&_0x44ab5e['enableCommand']('checkTodoList',()=>{const _0x30ce84=_0x2097a4['commands']['get']('checkTodoList'),_0x127a7c=Array['from'](_0x30ce84['_selectedElements']);_0x127a7c['filter'](_0x16db13=>_0x16db13['getAttribute']('todoListChecked')!=_0x30ce84['value']),_0x2097a4['model']['change'](()=>{for(const _0x2e3186 of _0x127a7c)_0x44ab5e['markBlockFormat'](_0x2e3186,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x30ce84['value']}]});});}),_0x44ab5e['descriptionFactory']['registerElementLabel']('listItem',_0x16f639=>o(_0x2d5ee7,'ELEMENT_LIST_ITEM',_0x16f639)),_0x44ab5e['descriptionFactory']['registerDescriptionCallback'](_0x11014c=>{if('formatBlock'!=_0x11014c['type']&&'formatInline'!=_0x11014c['type'])return;const {data:_0x2cdd06}=_0x11014c;if(_0x2cdd06){if('numberedList'==_0x2cdd06['commandName']||'bulletedList'==_0x2cdd06['commandName']||'todoList'==_0x2cdd06['commandName'])switch(_0x2cdd06['commandName']['replace']('List','')){case'bulleted':return _0x4d21a7(o(_0x2d5ee7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d21a7(o(_0x2d5ee7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d21a7(o(_0x2d5ee7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2cdd06['commandName'])return{'type':'format','content':o(_0x2d5ee7,'*Indent:*\x20%0',o(_0x2d5ee7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2cdd06['commandName'])return{'type':'format','content':o(_0x2d5ee7,'*Outdent:*\x20%0',o(_0x2d5ee7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2cdd06['commandName'])return _0x2cdd06['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d5ee7,'*Check\x20item*')}:{'type':'format','content':o(_0x2d5ee7,'*Uncheck\x20item*')};}function _0x4d21a7(_0x48273f){return{'type':'format','content':o(_0x2d5ee7,'*Change\x20to:*\x20%0',_0x48273f)};}});}}function Le(_0x488237){const _0x39e423=_0x488237['getAttribute']('listIndent');if(0x0==_0x39e423)return _0x488237;let _0x3fe6f3=_0x488237;for(;_0x488237['previousSibling']&&_0x488237['previousSibling']['is']('element','listItem');){const _0x50d1d2=_0x488237['previousSibling']['getAttribute']('listIndent');if(_0x50d1d2==_0x39e423)_0x3fe6f3=_0x488237['previousSibling'];else{if(_0x50d1d2<_0x39e423)break;}_0x488237=_0x488237['previousSibling'];}return _0x3fe6f3;}function Ee(_0x130b40){const _0x128f22=[];if(_0x130b40['is']('element','listItem')&&_0x130b40['getAttribute']('listIndent')>0x0){let _0x3ba6bc=_0x130b40['nextSibling'];for(;_0x3ba6bc&&'listItem'==_0x3ba6bc['name']&&_0x3ba6bc['getAttribute']('listIndent')==_0x130b40['getAttribute']('listIndent');)_0x128f22['push'](_0x3ba6bc),_0x3ba6bc=_0x3ba6bc['nextSibling'];}return _0x128f22;}class Q extends _0x2a9dde{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x217178=this['editor']['config']['get']('list.properties'),_0x2b3f57=this['editor']['plugins']['get']('TrackChangesEditing');_0x217178['styles']&&_0x2b3f57['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x217178['reversed']&&_0x2b3f57['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x217178['startIndex']&&_0x2b3f57['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2b3f57['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x301ab0,_0x20b333={}){const _0x13a880=this['editor']['plugins']['get']('TrackChangesEditing'),_0x539eff=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x13a880['markMultiRangeBlockFormat'](_0x539eff,{'commandName':'listStyle','commandParams':[{'type':_0x20b333['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x40caf3,_0x48b793={}){const _0x5414f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ef65d=this['_getSuggestionBlocks'](_0xe5c5d8=>_0xe5c5d8['is']('element','listItem')&&'numbered'===_0xe5c5d8['getAttribute']('listType'));if(_0x4ef65d['length']<0x1)return;const _0x3d27d9=_0x4ef65d['map'](_0x269127=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x269127,'before'),this['editor']['model']['createPositionAt'](_0x269127,0x0)));this['editor']['model']['change'](()=>{_0x5414f9['markMultiRangeBlockFormat'](_0x3d27d9,{'commandName':'listReversed','commandParams':[{'reversed':_0x48b793['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x230d2c,_0x2b3684={}){const _0x1e4a2c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1910c5=this['_getSuggestionBlocks'](_0x480525=>_0x480525['is']('element','listItem')&&'numbered'===_0x480525['getAttribute']('listType'));if(_0x1910c5['length']<0x1)return;const _0x36f61c=_0x1910c5['map'](_0x1e648f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e648f,'before'),this['editor']['model']['createPositionAt'](_0x1e648f,0x0)));this['editor']['model']['change'](()=>{_0x1e4a2c['markMultiRangeBlockFormat'](_0x36f61c,{'commandName':'listStart','commandParams':[{'startIndex':_0x2b3684['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x41821d){if('formatBlock'!=_0x41821d['type']&&'formatInline'!=_0x41821d['type'])return;const _0x1c603b=this['editor']['locale'],{data:_0x404abd}=_0x41821d;if(!_0x404abd)return;let _0x56f8e3,_0xbfc945;switch(_0x404abd['commandName']){case'listStyle':_0x56f8e3='*Change\x20to:*\x20%0',_0xbfc945={'type':'format','content':o(_0x1c603b,_0x56f8e3,o(_0x1c603b,this['_getTranslationKeyForListStyle'](_0x404abd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x56f8e3=_0x404abd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xbfc945={'type':'format','content':o(_0x1c603b,_0x56f8e3)};break;case'listStart':_0x56f8e3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xbfc945={'type':'format','content':o(_0x1c603b,_0x56f8e3,_0x404abd['commandParams'][0x0]['startIndex'])};}return _0xbfc945;}['_getSuggestionBlocksForListStyle'](){const _0x8d459d=this['editor']['plugins']['get']('LegacyListUtils');let _0x3f72ce=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3f72ce[0x0]?.['is']('element','listItem')&&_0x3f72ce['unshift'](..._0x8d459d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3f72ce[_0x3f72ce['length']-0x1]?.['is']('element','listItem')&&_0x3f72ce['push'](..._0x8d459d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3f72ce=[...new Set(_0x3f72ce)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3f72ce=_0x3f72ce['filter'](_0x1e38b7=>_0x1e38b7['is']('element','listItem'))),_0x3f72ce;}['_getSuggestionBlocks'](_0x21d2ac){const _0xa0c797=this['editor']['plugins']['get']('LegacyListUtils');let _0x44ba7d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x21d2ac)['map'](_0x1e6d46=>{const _0x6013c=this['editor']['model']['createPositionAt'](_0x1e6d46,0x0);return[..._0xa0c797['getSiblingNodes'](_0x6013c,'backward'),..._0xa0c797['getSiblingNodes'](_0x6013c,'forward')];})['flat']();return _0x44ba7d=[...new Set(_0x44ba7d)],_0x44ba7d;}['_getTranslationKeyForListStyle'](_0x2ddc54){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2ddc54)||'default')['toUpperCase']()+'_LIST_'+_0x2ddc54['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2a9dde{['afterInit'](){const _0x2c19cb=this['editor'];if(!_0x2c19cb['plugins']['has']('MediaEmbedEditing'))return;const _0x290d6c=_0x2c19cb['plugins']['get']('TrackChangesEditing'),_0xdd0f83=_0x2c19cb['locale'];_0x290d6c['enableCommand']('mediaEmbed'),_0x290d6c['descriptionFactory']['registerElementLabel']('media',_0x2a6339=>o(_0xdd0f83,'ELEMENT_MEDIA',_0x2a6339)),_0x2c19cb['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x121971,{writer:_0x215ab7,options:_0x3d850d})=>{if(_0x3d850d['showSuggestionHighlights'])return _0x215ab7['createEmptyElement']('div');},'converterPriority':'high'}),_0x2c19cb['data']['downcastDispatcher']['on']('attribute:url:media',(_0x476a40,_0x633b66,_0x476b9a)=>{_0x476b9a['options']['showSuggestionHighlights']&&_0x476a40['stop']();},{'priority':'high'});}}class mt extends _0x2a9dde{['afterInit'](){const _0x5e7862=this['editor'];_0x5e7862['plugins']['has']('MentionEditing')&&_0x5e7862['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x2a9dde{['afterInit'](){const _0x1d1d27=this['editor'];if(!_0x1d1d27['plugins']['has']('MergeFieldsEditing'))return;_0x1d1d27['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x1d1d27['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2f86c4=_0x1d1d27['plugins']['get']('TrackChangesEditing'),_0x4529a6=_0x1d1d27['locale'];_0x2f86c4['descriptionFactory']['registerElementLabel']('mergeField',_0x18695b=>o(_0x4529a6,'ELEMENT_MERGE_FIELD',_0x18695b)),_0x2f86c4['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1215fd=>o(_0x4529a6,'ELEMENT_MERGE_FIELD',_0x1215fd)),_0x2f86c4['descriptionFactory']['registerDescriptionCallback'](_0x335eec=>{if('insertion'!=_0x335eec['type']&&'deletion'!=_0x335eec['type'])return;const _0x451fd3=_0x335eec['getContainedElement']();if(null==_0x451fd3)return;if(!_0x451fd3['is']('element','mergeField')&&!_0x451fd3['is']('element','mergeFieldBlock'))return;const _0x32081a=_0x1d1d27['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x451fd3['getAttribute']('id'));return'insertion'==_0x335eec['type']?{'type':'insertion','content':o(_0x4529a6,'*Insert:*\x20%0','\x22'+_0x32081a+'\x22\x20'+o(_0x4529a6,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4529a6,'*Remove:*\x20%0','\x22'+_0x32081a+'\x22\x20'+o(_0x4529a6,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x2a9dde{['afterInit'](){const _0x4191e9=this['editor'],_0x555619=_0x4191e9['plugins']['get']('TrackChangesEditing');_0x4191e9['plugins']['has']('MultiLevelList')&&(_0x555619['enableDefaultAttributesIntegration']('multiLevelList'),_0x555619['registerBlockAttribute']('listMarkerStyle'),_0x555619['descriptionFactory']['registerDescriptionCallback'](_0x4952c4=>this['handleDescriptions'](_0x4952c4)));}['handleDescriptions'](_0xb72d9f){const _0x2fb45c=this['editor']['locale'],{data:_0x299803}=_0xb72d9f,_0x2b7d98={'type':'format','content':''};if(_0x299803&&'listMarkerStyle'==_0x299803['key']){if(!_0x299803['oldValue'])return{'type':'format','content':o(_0x2fb45c,'*Set\x20format:*\x20%0',o(_0x2fb45c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x299803['newValue']+')'};if(!_0x299803['newValue']){let _0x38641d=_0xb72d9f['head'];for(;_0x38641d;){if(_0x38641d['data']&&'listType'==_0x38641d['data']['key']&&_0x38641d['data']['newValue'])return _0x2b7d98;_0x38641d=_0x38641d['next'];}return{'type':'format','content':o(_0x2fb45c,'*Remove\x20format:*\x20%0',o(_0x2fb45c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x299803['oldValue']+')'};}}}}class kt extends _0x2a9dde{['afterInit'](){const _0x33a848=this['editor'];if(!_0x33a848['plugins']['has']('PageBreakEditing'))return;_0x33a848['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xcd4085=_0x33a848['plugins']['get']('TrackChangesEditing'),_0x1ed9ff=_0x33a848['locale'];_0xcd4085['descriptionFactory']['registerElementLabel']('pageBreak',_0x3d1207=>o(_0x1ed9ff,'ELEMENT_PAGE_BREAK',_0x3d1207));}}class bt extends _0x2a9dde{['afterInit'](){const _0x11a39b=this['editor'];if(!_0x11a39b['plugins']['has']('Paragraph'))return;const _0x1999eb=_0x11a39b['locale'],_0x24a732=_0x11a39b['plugins']['get']('TrackChangesEditing');_0x24a732['descriptionFactory']['registerElementLabel']('paragraph',_0x34d95d=>o(_0x1999eb,'ELEMENT_PARAGRAPH',_0x34d95d)),_0x24a732['enableDefaultAttributesIntegration']('paragraph'),_0x24a732['enableCommand']('insertParagraph'),_0x11a39b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x11a39b),{'priority':'highest'}),_0x11a39b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29f4c2,_0x3fcb5e,_0x170a2b)=>{_0x170a2b['options']['showSuggestionHighlights']&&nr(_0x11a39b,{'showActiveMarker':!0x1})(_0x29f4c2,_0x3fcb5e,_0x170a2b);},{'priority':'highest'});const _0x3631b5=_0x24a732['descriptionFactory'];_0x3631b5['registerDescriptionCallback'](_0x28f916=>{if('insertion'!==_0x28f916['type'])return;const {start:_0x39540f,end:_0x240209}=_0x28f916['getFirstRange']();if(!_0x39540f['isTouching'](_0x240209)||!_0x39540f['nodeAfter'])return;const _0x4b6ec5=_0x11a39b['model']['schema'],_0x15b60b=_0x39540f['nodeAfter'];return _0x4b6ec5['isBlock'](_0x15b60b)&&!_0x4b6ec5['isLimit'](_0x15b60b)&&_0x4b6ec5['checkChild'](_0x15b60b,'$text')?{'type':'insertion','content':o(_0x1999eb,'*Insert:*\x20%0',_0x3631b5['getItemLabel'](_0x15b60b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29ad08=this['editor'],_0x4fbf73=_0x29ad08['locale'];_0x29ad08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x587398=>{if('formatBlock'!=_0x587398['type'])return;const {data:_0xe9496}=_0x587398;return _0xe9496&&'paragraph'==_0xe9496['commandName']?{'type':'format','content':o(_0x4fbf73,'*Change\x20to:*\x20%0',o(_0x4fbf73,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xbfb903,{showActiveMarker:_0x353a45=!0x0}={}){return(_0x5153cb,_0x3e27b9,_0x241dec)=>{const _0x705b66=_0xbfb903['plugins']['get']('TrackChangesEditing'),_0x477eb0=_0x3e27b9['markerRange']['start'],_0x24d939=_0x3e27b9['markerRange']['end'],_0x4b0444=_0xbfb903['model']['schema'];if(!_0x477eb0['isTouching'](_0x24d939)||!_0x477eb0['nodeAfter'])return;const _0xf8426b=_0x477eb0['nodeAfter'];if(_0x4b0444['isBlock'](_0xf8426b)&&!_0x4b0444['isLimit'](_0xf8426b)&&_0x4b0444['checkChild'](_0xf8426b,'$text')){if(!_0x241dec['consumable']['consume'](_0x3e27b9['markerRange'],_0x5153cb['name']))return;const {authorId:_0x491c0c}=_0x705b66['_splitMarkerName'](_0x3e27b9['markerName']),_0x1f7001=_0x241dec['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x491c0c}),_0x4e2628=_0x241dec['mapper']['toViewPosition'](_0x24d939);_0x353a45&&_0x705b66['activeMarkers']['includes'](_0x3e27b9['markerName'])&&_0x241dec['writer']['addClass']('ck-suggestion-marker--active',_0x1f7001),_0x241dec['writer']['insert'](_0x4e2628,_0x1f7001),_0x241dec['mapper']['bindElementToMarker'](_0x1f7001,_0x3e27b9['markerName']);}};}class yt extends _0x2a9dde{['afterInit'](){const _0x510505=this['editor'];if(!_0x510505['plugins']['has']('RemoveFormatEditing'))return;_0x510505['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32d280=this['editor'];_0x32d280['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24b441=>{if('formatBlock'!=_0x24b441['type']&&'formatInline'!=_0x24b441['type'])return;const {data:_0x49d9c2}=_0x24b441;return _0x49d9c2&&'removeFormat'==_0x49d9c2['commandName']?{'type':'format','content':o(_0x32d280['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x2a9dde{['afterInit'](){const _0x4ddf4e=this['editor'];if(!_0x4ddf4e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x20d488=_0x4ddf4e['plugins']['get']('TrackChangesEditing');_0x20d488['enableCommand']('goToPreviousRestrictedEditingException'),_0x20d488['enableCommand']('goToNextRestrictedEditingException');const _0x478f9d=_0x4ddf4e['plugins']['get']('RestrictedEditingModeEditing');_0x478f9d['enableCommand']('trackChanges'),_0x478f9d['enableCommand']('acceptSuggestion'),_0x478f9d['enableCommand']('discardSuggestion'),_0x478f9d['enableCommand']('acceptAllSuggestions'),_0x478f9d['enableCommand']('discardAllSuggestions'),_0x478f9d['enableCommand']('acceptSelectedSuggestions'),_0x478f9d['enableCommand']('discardSelectedSuggestions');}}class St extends _0x2a9dde{static get['requires'](){return[_0x25bccc];}['init'](){const _0x5939e1=this['editor'],_0x1a255d=_0x5939e1['plugins']['get']('TrackChangesEditing');_0x1a255d['enableCommand']('shiftEnter'),_0x5939e1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x5939e1),{'priority':'high'}),_0x5939e1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x5939e1),{'priority':'high'}),_0x5939e1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5da218,_0x5ecc25,_0x5bc305)=>{_0x5bc305['options']['showSuggestionHighlights']&&ke(_0x5939e1,{'showActiveMarker':!0x1})(_0x5da218,_0x5ecc25,_0x5bc305);}),_0x1a255d['descriptionFactory']['registerElementLabel']('softBreak',_0x245f9f=>o(_0x5939e1['locale'],'ELEMENT_LINE_BREAK',_0x245f9f));}}function ke(_0x3ff534,{showActiveMarker:_0x5862f1=!0x0}={}){return(_0x2e4dee,_0x5773f3,_0xfb1484)=>{const _0x58b68d=_0x3ff534['plugins']['get']('TrackChangesEditing');if(!_0xfb1484['consumable']['test'](_0x5773f3['markerRange'],_0x2e4dee['name']))return;const _0x3ab45d=_0x3ff534['model'];for(const _0x1e97e6 of _0x5773f3['markerRange']['getItems']()){if(!_0x1e97e6['is']('element','softBreak'))continue;const _0x284a7a='deletion'==_0x5773f3['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1cf1ab}=_0x58b68d['_splitMarkerName'](_0x5773f3['markerName']),_0x3dd4d6=_0xfb1484['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x284a7a,'data-author-id':_0x1cf1ab}),_0x50d069=_0xfb1484['mapper']['toViewPosition'](_0x3ab45d['createPositionBefore'](_0x1e97e6));_0x5862f1&&_0x58b68d['activeMarkers']['includes'](_0x5773f3['markerName'])&&_0xfb1484['writer']['addClass']('ck-suggestion-marker--active',_0x3dd4d6),_0xfb1484['writer']['insert'](_0x50d069,_0x3dd4d6),_0xfb1484['mapper']['bindElementToMarker'](_0x3dd4d6,_0x5773f3['markerName']);}};}class At extends _0x2a9dde{['afterInit'](){const _0x39ccea=this['editor'],_0x3f1085=_0x39ccea['model'],_0x14289a=_0x39ccea['locale'];if(!_0x39ccea['plugins']['has']('StandardEditingModeEditing'))return;const _0x2f66d0=_0x39ccea['plugins']['get']('TrackChangesEditing'),_0x233932='restrictedEditingException',_0x20f5da=_0x39ccea['commands']['get'](_0x233932);_0x2f66d0['enableCommand'](_0x233932,(_0x50a664,_0x47a4eb={})=>{const _0x28b8e6=_0x3f1085['document']['selection'];if(_0x28b8e6['isCollapsed'])return void _0x50a664(_0x47a4eb);const _0x8e81c0=void 0x0!==_0x47a4eb['forceValue']?_0x47a4eb['forceValue']:!_0x20f5da['value'];_0x3f1085['change'](()=>{const _0x124f82=Array['from'](_0x28b8e6['getRanges']());for(const _0x5af740 of _0x124f82){const _0x2fa8de=_0x8e81c0?[_0x5af740]:io(_0x233932,_0x5af740,_0x3f1085);for(const _0xabc488 of _0x2fa8de)_0x2f66d0['markInlineFormat'](_0xabc488,{'commandName':_0x233932,'commandParams':[{'forceValue':_0x8e81c0}]});}});}),_0x2f66d0['descriptionFactory']['registerDescriptionCallback'](_0x5c243e=>{if('formatBlock'!=_0x5c243e['type']&&'formatInline'!=_0x5c243e['type'])return;const {data:_0x55f3a2}=_0x5c243e;return _0x55f3a2&&_0x55f3a2['commandName']==_0x233932?_0x55f3a2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14289a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x14289a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x2a9dde{['afterInit'](){const _0x5e230e=this['editor'];if(!_0x5e230e['plugins']['has']('Style')||!_0x5e230e['plugins']['has']('DataSchema'))return;const _0x6534a0=_0x5e230e['plugins']['get']('TrackChangesEditing'),_0x4043ec=_0x5e230e['locale'],_0x2eeacf=_0x5e230e['config']['get']('style')||{},_0x4a9cea=_0x5e230e['plugins']['get']('GeneralHtmlSupport'),_0x4bf6a3=_0x5e230e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5e230e['plugins']['get']('DataSchema'),_0x2eeacf['definitions']);_0x6534a0['enableDefaultAttributesIntegration']('style');const _0x465a62=new Set();for(const _0x2e5d66 of _0x4bf6a3['block']){const _0x138314=_0x4a9cea['getGhsAttributeNameForElement'](_0x2e5d66['element']);_0x465a62['add'](_0x138314);}const _0x263026=new Set();for(const _0x38d947 of _0x4bf6a3['inline']){const _0x36ff21=_0x4a9cea['getGhsAttributeNameForElement'](_0x38d947['element']);_0x263026['add'](_0x36ff21);for(const _0x125dcd of _0x38d947['ghsAttributes'])_0x263026['add'](_0x125dcd);}for(const _0xd7b1d3 of _0x465a62)_0x6534a0['registerBlockAttribute'](_0xd7b1d3),_0x6534a0['descriptionFactory']['registerAttributeLabel'](_0xd7b1d3,o(_0x4043ec,'FORMAT_STYLE'));for(const _0x5e6fd4 of _0x263026)_0x6534a0['registerInlineAttribute'](_0x5e6fd4),_0x6534a0['descriptionFactory']['registerAttributeLabel'](_0x5e6fd4,o(_0x4043ec,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20cc9c=this['editor'],_0x50d782=_0x20cc9c['locale'];_0x20cc9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xead9a8=>{if('formatBlock'!=_0xead9a8['type']&&'formatInline'!=_0xead9a8['type'])return;const {data:_0x4c8ba6}=_0xead9a8;return _0x4c8ba6&&'style'===_0x4c8ba6['commandName']?_0x4c8ba6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50d782,'*Set\x20format:*\x20%0',_0x4c8ba6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x50d782,'*Remove\x20format:*\x20%0',_0x4c8ba6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x2a9dde{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x55f4a2){super(_0x55f4a2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x13683b=this['editor'],_0x58e811=_0x13683b['model']['document']['selection'];if(!_0x13683b['plugins']['has']('TableEditing'))return;const _0x4bc0ff=_0x13683b['locale'],_0x536427=_0x13683b['plugins']['get']('TrackChangesEditing'),_0x522264=_0x13683b['plugins']['get']('TableUtils');_0x536427['descriptionFactory']['registerElementLabel']('table',_0x30257f=>o(_0x4bc0ff,'ELEMENT_TABLE',_0x30257f)),this['_setupColumnsRowsFixing'](),_0x536427['enableCommand']('insertTable'),_0x536427['enableCommand']('selectTableRow'),_0x536427['enableCommand']('selectTableColumn');for(const _0xd2e141 of['insertTableRowAbove','insertTableRowBelow']){const _0x4dd1db=_0x13683b['commands']['get'](_0xd2e141);_0x536427['enableCommand'](_0xd2e141,_0x8750f4=>{_0x13683b['model']['change'](_0x441774=>{_0x8750f4();const _0x19375f='above'===_0x4dd1db['order'],_0x1bf731=_0x522264['getSelectionAffectedTableCells'](_0x58e811),_0xc618fe=_0x522264['getRowIndexes'](_0x1bf731),_0x39ada8=_0x19375f?_0xc618fe['first']-0x1:_0xc618fe['last']+0x1,_0x5f0113=_0x1bf731[0x0]['findAncestor']('table'),_0x24bd29=_0x522264['createTableWalker'](_0x5f0113,{'startRow':_0x39ada8,'endRow':_0x39ada8}),_0x394f33=Array['from'](_0x24bd29)['map'](_0x476f0d=>_0x441774['createRangeOn'](_0x476f0d['cell']));_0x536427['markMultiRangeInsertion'](_0x394f33,'tableRow');});});}for(const _0x16e44e of['insertTableColumnLeft','insertTableColumnRight']){const _0x5d7d1a=_0x13683b['commands']['get'](_0x16e44e);_0x536427['enableCommand'](_0x16e44e,_0x16ef08=>{_0x13683b['model']['change'](_0x217152=>{_0x16ef08();const _0x42ea46='left'===_0x5d7d1a['order'],_0x18d8fe=_0x522264['getSelectionAffectedTableCells'](_0x58e811),_0x38b913=_0x522264['getColumnIndexes'](_0x18d8fe),_0x3f8ed4=_0x42ea46?_0x38b913['first']-0x1:_0x38b913['last']+0x1,_0x53eb4d=_0x18d8fe[0x0]['findAncestor']('table'),_0x180de8=_0x522264['createTableWalker'](_0x53eb4d,{'startRow':0x0,'column':_0x3f8ed4,'includeAllSlots':!0x1}),_0x2a4f90=Array['from'](_0x180de8)['map'](_0x4efd14=>_0x217152['createRangeOn'](_0x4efd14['cell']));_0x536427['markMultiRangeInsertion'](_0x2a4f90,'tableColumn');});});}for(const _0x48f4ee of['removeTableRow','removeTableColumn']){const _0x93339a=_0x48f4ee['substr'](0xb),_0x1dc6a6=_0x93339a['toLowerCase'](),_0x2e4057=_0x1dc6a6['substr'](0x0,0x3)+'span',_0x2ca087='table'+_0x93339a,_0x67ca45='min'+_0x93339a,_0x51764e='max'+_0x93339a;_0x536427['enableCommand'](_0x48f4ee,()=>{_0x13683b['model']['change'](_0x649ef6=>{const _0x8b953=_0x522264['getSelectionAffectedTableCells'](_0x58e811),_0x33bc0d=_0x8b953[0x0]['findAncestor']('table');let _0x16bdcd;if('removeTableRow'==_0x48f4ee){const _0x3669b0=_0x522264['getRowIndexes'](_0x8b953);_0x16bdcd={'startRow':_0x3669b0['first'],'endRow':_0x3669b0['last'],'includeAllSlots':!0x0};}else{const _0x2c6cb8=_0x522264['getColumnIndexes'](_0x8b953);_0x16bdcd={'startColumn':_0x2c6cb8['first'],'endColumn':_0x2c6cb8['last'],'includeAllSlots':!0x0};}const _0x2490f1=_0x522264['createTableWalker'](_0x33bc0d,_0x16bdcd),_0x538605=Array['from'](_0x2490f1)['map'](({cell:_0x75428a})=>_0x75428a),_0x361e47=Re(_0x538605['filter'](_0xa94868=>_0xa94868['hasAttribute'](_0x2e4057))),_0x300198=Re(_0x538605['filter'](_0x58d598=>!_0x58d598['hasAttribute'](_0x2e4057)))['map'](_0x19db39=>_0x649ef6['createRangeOn'](_0x19db39)),_0x4d8e4d=_0x536427['markMultiRangeDeletion'](_0x300198,_0x2ca087);if(_0x4d8e4d&&('tableRow'==_0x4d8e4d['subType']||'tableColumn'==_0x4d8e4d['subType'])){const _0x544767=this['_getSuggestionCoords'](_0x4d8e4d);for(const _0x4ed15c of _0x361e47){const _0x1fb13f=_0x649ef6['createRangeOn'](_0x4ed15c),_0x292ee0=_0x522264['getCellLocation'](_0x4ed15c),_0x53a2cd=_0x4ed15c['getAttribute'](_0x2e4057)-0x1,_0x24171f=_0x544767[_0x67ca45],_0x4b6f33=_0x544767[_0x51764e];_0x24171f<=_0x292ee0[_0x1dc6a6]&&_0x292ee0[_0x1dc6a6]+_0x53a2cd<=_0x4b6f33&&_0x4d8e4d['addRange'](_0x1fb13f);}}});});}function _0x32a307(_0x5d879b){const _0x5a47db=Array['from'](_0x58e811['getRanges']())['map'](_0x5901fc=>_0x50e55c['fromRange'](_0x5901fc));_0x13683b['model']['change'](_0x89dbbe=>{const _0x3c1d89=_0x89dbbe['batch'];_0x5d879b=_0x5d879b['filter'](_0x156afe=>'$graveyard'!=_0x156afe['root']['rootName']),_0x89dbbe['setSelection'](_0x5d879b),_0x13683b['commands']['get']('removeTableRow')['refresh'](),_0x13683b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x13683b['model']['enqueueChange'](()=>{_0x13683b['model']['enqueueChange'](_0x3c1d89,_0x5595c7=>{const _0x9a412a=_0x5a47db['filter'](_0x59c29a=>'$graveyard'!=_0x59c29a['root']['rootName']);_0x9a412a['length']>0x0&&_0x5595c7['setSelection'](_0x9a412a);for(const _0x2c3526 of _0x5a47db)_0x2c3526['detach']();});});});}function _0x2f9904(_0x4e150c){_0x13683b['model']['change'](_0x20288a=>{const _0x360ece=Array['from'](_0x58e811['getRanges']())['map'](_0x10da73=>_0x50e55c['fromRange'](_0x10da73)),_0x1802b8=[];for(const _0x1ad695 of _0x4e150c)for(const _0x3e61bc of _0x1ad695['getItems']({'shallow':!0x0}))_0x1802b8['push'](_0x3e61bc);for(const _0x4176f6 of _0x1802b8)'$graveyard'!=_0x4176f6['root']['rootName']&&(_0x20288a['setSelection'](_0x20288a['createPositionAt'](_0x4176f6,0x0)),_0x13683b['commands']['get']('removeTableColumn')['refresh'](),_0x13683b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x95074a=_0x360ece['filter'](_0x11983d=>'$graveyard'!=_0x11983d['root']['rootName']);_0x95074a['length']>0x0&&_0x20288a['setSelection'](_0x95074a);for(const _0x3b4ff0 of _0x360ece)_0x3b4ff0['detach']();});}function _0x5b3f8d(_0x53d3e5,_0x2580b9){return _0x2580b9['every'](_0x1e821f=>_0x53d3e5['some'](_0x129af3=>_0x129af3['end']['isEqual'](_0x1e821f['start'])||_0x1e821f['end']['isEqual'](_0x129af3['start'])));}function _0x55c231(_0x3854f3,_0xf6b00){return!_0x3854f3['some'](_0x269340=>_0xf6b00['some'](_0x4afc63=>_0x269340['isIntersecting'](_0x4afc63)))&&_0x3854f3['some'](_0x4b2164=>_0xf6b00['some'](_0x29e930=>_0x4b2164['end']['isTouching'](_0x29e930['start'])));}_0x13683b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5bd9fa,_0x113e21,_0x43a165)=>{if(!_0x43a165['options']['showSuggestionHighlights'])return;const _0x4cd098=_0x113e21['item'];if(!_0x4cd098)return;const _0x2fd81d=_0x43a165['mapper']['toViewElement'](_0x4cd098);function _0x547fa7(_0x5e9713){return Array['isArray'](_0x5e9713)?_0x5e9713:[_0x5e9713];}_0x2fd81d&&'tableCell'===_0x4cd098['name']&&_0x31fa20(_0x2fd81d,_0x43a165['writer'],(_0xa6d1c9,_0x15d26f,_0x4d80a8)=>_0x4d80a8['addClass'](_0x547fa7(_0x15d26f['classes']),_0xa6d1c9),(_0x5cb5f6,_0x2006b5,_0x4fa916)=>_0x4fa916['removeClass'](_0x547fa7(_0x2006b5['classes']),_0x5cb5f6));},{'priority':'highest'}),_0x536427['descriptionFactory']['registerDescriptionCallback'](_0x3a0b6f=>{if('insertion'!=_0x3a0b6f['type']&&'deletion'!=_0x3a0b6f['type'])return;const _0x268d8c=_0x3a0b6f['getContainedElement']();if(null!=_0x268d8c&&_0x268d8c['is']('element','table')){if('insertion'==_0x3a0b6f['type']){const _0x217261=_0x3a0b6f['getItems']()['filter'](_0x234bfe=>_0x234bfe['is']('$textProxy'))['map'](_0xc3f581=>_0xc3f581['data']);if(_0x217261['length'])return{'type':'insertion','content':o(_0x4bc0ff,'*Insert:*\x20%0',o(_0x4bc0ff,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x217261['join']('\x20')+'\x22'))};}if('deletion'==_0x3a0b6f['type']){const _0x3c6aeb=_0x3a0b6f['getItems']()['filter'](_0x3d38ec=>_0x3d38ec['is']('$textProxy'))['map'](_0x1cf20a=>_0x1cf20a['data']);if(_0x3c6aeb['length'])return{'type':'deletion','content':o(_0x4bc0ff,'*Remove:*\x20%0',o(_0x4bc0ff,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3c6aeb['join']('\x20')+'\x22'))};}}}),_0x536427['descriptionFactory']['registerDescriptionCallback'](_0x40ac75=>{if('tableRow'==_0x40ac75['subType']){const _0x42074b=_0x40ac75['getItems']()['filter'](_0x2aff43=>_0x2aff43['is']('$textProxy'))['map'](_0x2fce85=>_0x2fce85['data']),_0x1a0a64=this['_getSuggestionCoords'](_0x40ac75),_0x34c852=_0x1a0a64['maxRow']-_0x1a0a64['minRow']+0x1;if('insertion'==_0x40ac75['type'])return _0x42074b['length']?{'type':'insertion','content':o(_0x4bc0ff,'*Insert:*\x20%0',o(_0x4bc0ff,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x34c852,'\x22'+_0x42074b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4bc0ff,'*Insert:*\x20%0',o(_0x4bc0ff,'ELEMENT_TABLE_ROW',_0x34c852))};if('deletion'==_0x40ac75['type'])return _0x42074b['length']?{'type':'deletion','content':o(_0x4bc0ff,'*Remove:*\x20%0',o(_0x4bc0ff,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x34c852,'\x22'+_0x42074b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4bc0ff,'*Remove:*\x20%0',o(_0x4bc0ff,'ELEMENT_TABLE_ROW',_0x34c852))};}if('tableColumn'==_0x40ac75['subType']){const _0x84d554=_0x40ac75['getItems']()['filter'](_0x47e7e0=>_0x47e7e0['is']('$textProxy'))['map'](_0x26257e=>_0x26257e['data']),_0x2873b0=this['_getSuggestionCoords'](_0x40ac75),_0x4bf425=_0x2873b0['maxColumn']-_0x2873b0['minColumn']+0x1;if('insertion'==_0x40ac75['type'])return _0x84d554['length']?{'type':'insertion','content':o(_0x4bc0ff,'*Insert:*\x20%0',o(_0x4bc0ff,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4bf425,'\x22'+_0x84d554['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4bc0ff,'*Insert:*\x20%0',o(_0x4bc0ff,'ELEMENT_TABLE_COLUMN',_0x4bf425))};if('deletion'==_0x40ac75['type'])return _0x84d554['length']?{'type':'deletion','content':o(_0x4bc0ff,'*Remove:*\x20%0',o(_0x4bc0ff,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4bf425,'\x22'+_0x84d554['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4bc0ff,'*Remove:*\x20%0',o(_0x4bc0ff,'ELEMENT_TABLE_COLUMN',_0x4bf425))};}}),_0x536427['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x32a307),_0x536427['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x32a307),_0x536427['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2f9904),_0x536427['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2f9904),_0x536427['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5b3f8d),_0x536427['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5b3f8d),_0x536427['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x55c231),_0x536427['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x55c231);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4da672=this['editor'],_0xad3fd4=_0x4da672['model']['document']['selection'];return(_0x466f07,_0x32ba59)=>{_0x4da672['model']['change'](_0x531bb2=>{const {commandName:_0x25f772,commandParams:_0xe5105b}=_0x32ba59;let _0x1a17a4=_0x466f07[0x0]['end']['nodeBefore'];_0xe5105b&&_0xe5105b[0x0]&&!0x1===_0xe5105b[0x0]['forceValue']&&(_0x1a17a4=_0x466f07[0x0]['start']['nodeAfter']);const _0xd47aec=_0x531bb2['createRangeIn'](_0x1a17a4);if('$graveyard'==_0xd47aec['root']['rootName'])return;const _0xfe232c=Array['from'](_0xad3fd4['getRanges']())['map'](_0x2b5837=>_0x50e55c['fromRange'](_0x2b5837));_0x531bb2['setSelection'](_0xd47aec),_0x4da672['commands']['get'](_0x25f772)['refresh'](),_0xe5105b['push']({'forceDefaultExecution':!0x0}),_0x4da672['execute'](_0x25f772,..._0xe5105b);const _0x32fae8=_0xfe232c['filter'](_0x1bd75a=>'$graveyard'!=_0x1bd75a['root']['rootName']);_0x32fae8['length']>0x0&&_0x531bb2['setSelection'](_0x32fae8);for(const _0x78671c of _0xfe232c)_0x78671c['detach']();});};}['_getCoordsForCells'](_0x3c6125){const _0x33dae4=this['editor']['plugins']['get']('TableUtils');let _0x4a0606=Number['MAX_SAFE_INTEGER'],_0x390245=Number['MIN_SAFE_INTEGER'],_0x33325d=Number['MAX_SAFE_INTEGER'],_0x210fd5=Number['MIN_SAFE_INTEGER'];for(const _0x49140a of _0x3c6125){if('$graveyard'==_0x49140a['root']['rootName'])continue;const {row:_0x30c5b6,column:_0x123223}=_0x33dae4['getCellLocation'](_0x49140a),_0x374ef8=_0x49140a['hasAttribute']('rowspan')?_0x49140a['getAttribute']('rowspan')-0x1:0x0,_0x4e377b=_0x49140a['hasAttribute']('colspan')?_0x49140a['getAttribute']('colspan')-0x1:0x0;_0x4a0606=_0x30c5b6<_0x4a0606?_0x30c5b6:_0x4a0606,_0x390245=_0x30c5b6+_0x374ef8>_0x390245?_0x30c5b6+_0x374ef8:_0x390245,_0x33325d=_0x123223<_0x33325d?_0x123223:_0x33325d,_0x210fd5=_0x123223+_0x4e377b>_0x210fd5?_0x123223+_0x4e377b:_0x210fd5;}return{'minRow':_0x4a0606,'maxRow':_0x390245,'minColumn':_0x33325d,'maxColumn':_0x210fd5};}['_setupColumnsRowsFixing'](){const _0x1299dc=this['editor'],_0x194322=_0x1299dc['plugins']['get']('TrackChangesEditing'),_0x50ce10=_0x1299dc['plugins']['get']('TableUtils');_0x1299dc['model']['document']['on']('change:data',()=>{const _0xfa7d74=Array['from'](_0x1299dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x59f1cd,data:_0x5e5f3d}of _0xfa7d74){const {group:_0x1200d4,id:_0x7072cd,subType:_0x47a7aa}=_0x194322['_splitMarkerName'](_0x59f1cd);if('suggestion'!=_0x1200d4)continue;if(null!=_0x5e5f3d['oldRange'])continue;const _0x24ea28=_0x194322['getSuggestion'](_0x7072cd);this['_tablePostFixingSubtypes']['includes'](_0x47a7aa)&&this['_tableSuggestions']['add'](_0x24ea28);}},{'priority':'low'});const _0x1321cb=(_0x2d532e,_0x161769)=>{let _0x39465f=!0x1;const _0x66f17f=_0x161769['createRangeOn'](_0x2d532e),_0x4fe092=_0x2d532e['findAncestor']('table'),_0x22e400=_0x50ce10['getCellLocation'](_0x2d532e);for(const _0x366753 of this['_tableSuggestions']){const _0x1767a5=_0x366753['subType'],_0x4b0bc5=_0x1767a5['startsWith']('tablePaste'),_0xf6e86a=_0x1767a5['substr'](_0x4b0bc5?0xa:0x5),_0x2cb7ee=_0xf6e86a['toLowerCase'](),_0x33d3bc=_0x2cb7ee['substr'](0x0,0x3)+'span',_0x34fe59='min'+_0xf6e86a,_0x2b9767='max'+_0xf6e86a;if(!_0x366753['isInContent'])continue;if(_0x4fe092!=_0x366753['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x366753['isIntersectingWithRange'](_0x66f17f))continue;const _0x3167d0=_0x2d532e['hasAttribute'](_0x33d3bc)?_0x2d532e['getAttribute'](_0x33d3bc)-0x1:0x0,_0x5bce27=this['_getSuggestionCoords'](_0x366753),_0x459499=_0x5bce27[_0x34fe59],_0x4bbd4c=_0x5bce27[_0x2b9767];_0x459499<=_0x22e400[_0x2cb7ee]&&_0x22e400[_0x2cb7ee]+_0x3167d0<=_0x4bbd4c&&(_0x366753['addRange'](_0x66f17f),_0x39465f=!0x0);}return _0x39465f;};_0x1299dc['model']['document']['registerPostFixer'](_0x41ab8f=>{let _0x55ac96=!0x1;for(const _0x137b1a of _0x1299dc['model']['document']['differ']['getChanges']())if('insert'==_0x137b1a['type']){if('tableRow'==_0x137b1a['name']){for(const _0x5184aa of _0x137b1a['position']['nodeAfter']['getChildren']())_0x55ac96=_0x55ac96||_0x1321cb(_0x5184aa,_0x41ab8f);}else'tableCell'==_0x137b1a['name']&&(_0x55ac96=_0x55ac96||_0x1321cb(_0x137b1a['position']['nodeAfter'],_0x41ab8f));}return _0x55ac96;});}['_getSuggestionCoords'](_0xd192e0){return this['_getCoordsForCells'](_0xd192e0['getRanges']()['map'](_0x3cfff6=>_0x3cfff6['start']['nodeAfter']));}}function Re(_0x7aea10){return Array['from'](new Set(_0x7aea10)['values']());}class _t extends _0x2a9dde{static get['requires'](){return[vt];}['afterInit'](){const _0x398045=this['editor'],_0x239728=_0x398045['model']['document']['selection'],_0x4414d7=_0x398045['locale'];if(!_0x398045['plugins']['has']('TableEditing'))return;const _0x3d9d43=_0x398045['plugins']['get']('TrackChangesEditing'),_0x262a5e=_0x398045['plugins']['get']('TableUtils'),_0x451a09=_0x398045['plugins']['get'](vt);_0x451a09['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3d9d43['enableCommand']('mergeTableCells',()=>{const _0x47bfa7=_0x262a5e['getSelectionAffectedTableCells'](_0x398045['model']['document']['selection']);_0x398045['model']['change'](()=>{_0x3d9d43['markMultiRangeBlockFormat'](_0x47bfa7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x398045['commands']['get']('mergeTableCells')['on']('execute',(_0xbfe9d9,_0x132f25)=>{_0x398045['commands']['get']('trackChanges')['value']&&(_0x132f25['length']>0x0&&_0x132f25[_0x132f25['length']-0x1]&&_0x132f25[_0x132f25['length']-0x1]['forceDefaultExecution']||_0x3d9d43['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xbfe9d9['stop']());},{'priority':'highest'});for(const _0x5b72c6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x397c83=_0x398045['commands']['get'](_0x5b72c6);_0x3d9d43['enableCommand'](_0x5b72c6,()=>{const _0x5e1c83=_0x398045['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4ad2aa=>_0x4ad2aa['is']('element','tableCell')),_0x5249c5=_0x397c83['value'];_0x398045['model']['change'](()=>{_0x3d9d43['markMultiRangeBlockFormat']([_0x5e1c83,_0x5249c5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4f23d6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5d5fae=_0x398045['commands']['get'](_0x4f23d6);_0x3d9d43['enableCommand'](_0x4f23d6,()=>{const _0xe94b96=_0x262a5e['getSelectionAffectedTableCells'](_0x398045['model']['document']['selection'])[0x0],_0x13ec42=_0xe94b96['findAncestor']('table'),{column:_0x127e60,row:_0x255caf}=_0x262a5e['getCellLocation'](_0xe94b96);let _0x5db70b=[];if('horizontally'==_0x5d5fae['direction']){const _0x3a44a7=_0x262a5e['createTableWalker'](_0x13ec42,{'startRow':_0x255caf,'endRow':_0x255caf,'includeAllSlots':!0x0});_0x5db70b=Array['from'](_0x3a44a7)['map'](_0x32a6c3=>_0x32a6c3['cell']);}else{const _0x1b0302=_0x262a5e['createTableWalker'](_0x13ec42,{'column':_0x127e60,'includeAllSlots':!0x0});_0x5db70b=Array['from'](_0x1b0302)['map'](_0x3f6729=>_0x3f6729['cell']);}_0x398045['model']['change'](_0x5728f0=>{_0x3d9d43['markBlockFormat'](_0x5728f0['createRangeOn'](_0xe94b96),{'commandName':_0x4f23d6,'commandParams':[]},_0x5db70b,_0x4f23d6);});});}_0x3d9d43['descriptionFactory']['registerDescriptionCallback'](_0x426183=>{if('formatBlock'!=_0x426183['type']&&'formatInline'!=_0x426183['type'])return;const {data:_0x5d54d9}=_0x426183;return _0x5d54d9&&'mergeTableCells'==_0x5d54d9['commandName']?{'type':'format','content':o(_0x4414d7,'*Merge\x20cells*')}:void 0x0;}),_0x3d9d43['descriptionFactory']['registerDescriptionCallback'](_0x5290a8=>{if('formatBlock'!=_0x5290a8['type']&&'formatInline'!=_0x5290a8['type'])return;const {data:_0x53f7ee}=_0x5290a8;return _0x53f7ee?'splitTableCellVertically'==_0x53f7ee['commandName']?{'type':'format','content':o(_0x4414d7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x53f7ee['commandName']?{'type':'format','content':o(_0x4414d7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x245193=_0x451a09['_acceptFormatSuggestionCallbackFactory']();for(const _0x44f03d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3d9d43['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44f03d,'accept',_0x245193);for(const _0x28e5bd of['splitTableCellVertically','splitTableCellHorizontally'])_0x3d9d43['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x28e5bd,'accept',_0x245193);_0x3d9d43['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x10d64d=>{_0x398045['model']['change'](_0x4bf421=>{const _0x53c502=Array['from'](_0x239728['getRanges']())['map'](_0x227a4f=>_0x50e55c['fromRange'](_0x227a4f));_0x4bf421['setSelection'](_0x10d64d),_0x398045['commands']['get']('mergeTableCells')['refresh'](),_0x398045['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x34b501=_0x53c502['filter'](_0x2edead=>'$graveyard'!=_0x2edead['root']['rootName']);_0x34b501['length']>0x0&&_0x4bf421['setSelection'](_0x34b501);for(const _0x71317 of _0x53c502)_0x71317['detach']();});});for(const _0x5c2325 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x53345e=_0x398045['commands']['get'](_0x5c2325);_0x53345e['on']('set:isEnabled',(_0x35f3d7,_0xfad4b3,_0x1613a2)=>{if(_0x1613a2){const _0x4d6eb5=_0x398045['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5c8a7b=>_0x5c8a7b['is']('element','tableCell'));this['_areMergableCells'](_0x53345e['value'],_0x4d6eb5)||(_0x35f3d7['return']=!0x1,_0x35f3d7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x17af66=this['editor']['commands']['get']('mergeTableCells'),_0x290dbc=this['editor']['plugins']['get']('TableUtils');if(!_0x17af66['isEnabled'])return!0x1;const _0x54e169=_0x290dbc['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1ac1ad of _0x54e169)for(const _0x44b478 of _0x54e169)if(_0x1ac1ad!=_0x44b478&&!this['_areMergableCells'](_0x1ac1ad,_0x44b478))return!0x1;return!0x0;}['_areMergableCells'](_0x28c9ab,_0x24095a){const _0x4a8cfc=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe48347=this['editor']['model']['createRangeOn'](_0x28c9ab),_0x418611=this['editor']['model']['createRangeOn'](_0x24095a),_0x5581cc=new Set(),_0x272ee0=new Set();for(const _0x11dd7d of _0x4a8cfc['getSuggestions']())if(('insertion'==_0x11dd7d['type']||'deletion'==_0x11dd7d['type']||'mergeTableCells'==_0x11dd7d['subType'])&&_0x11dd7d['isInContent']){for(const _0x4d25a2 of _0x11dd7d['getRanges']())_0x4d25a2['containsRange'](_0xe48347,!0x0)&&_0x5581cc['add'](_0x11dd7d['type']+':'+_0x11dd7d['author']['id']),_0x4d25a2['containsRange'](_0x418611,!0x0)&&_0x272ee0['add'](_0x11dd7d['type']+':'+_0x11dd7d['author']['id']);}if(_0x5581cc['size']!=_0x272ee0['size'])return!0x1;for(const _0xbc3b7a of _0x5581cc)if(!_0x272ee0['has'](_0xbc3b7a))return!0x1;return!0x0;}}class Ct extends _0x2a9dde{static get['requires'](){return[vt];}['afterInit'](){const _0xbd8a7d=this['editor'];if(!_0xbd8a7d['plugins']['has']('TableEditing'))return;const _0x266be0=_0xbd8a7d['locale'],_0x265ca3=_0xbd8a7d['plugins']['get']('TrackChangesEditing');_0x265ca3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x265ca3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x265ca3['registerBlockAttribute']('headingRows'),_0x265ca3['registerBlockAttribute']('headingColumns'),_0x265ca3['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x266be0,'FORMAT_HEADER_ROW')),_0x265ca3['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x266be0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x117ce0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x73476a=this['editor']['plugins']['get']('TableUtils'),_0x4bf252=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x38fd76({showActiveMarker:_0x5a6b42=!0x0,setDataAttribute:_0x3a0214=!0x0}={}){return(_0x41cb6c,_0x5adbe2,_0x5470c4)=>{const {type:_0x2edc99,id:_0x533947}=_0x117ce0['_splitMarkerName'](_0x5adbe2['markerName']),_0x3f80db=_0x117ce0['getSuggestion'](_0x533947),_0x502916=_0x3f80db['data'];if('formatBlock'!=_0x3f80db['type']||!_0x502916||'setTableColumnHeader'!=_0x502916['commandName'])return;if(_0x5adbe2['item'])return void _0x41cb6c['stop']();if(!_0x5470c4['consumable']['consume'](_0x5adbe2['markerRange'],_0x41cb6c['name']))return;const _0x1546a7=_0x5adbe2['markerRange']['start']['nodeAfter'],_0x9fbf29=_0x5adbe2['markerRange']['end']['nodeBefore'],_0x498abe=_0x1546a7['parent']['parent'],{column:_0x5836bc}=_0x73476a['getCellLocation'](_0x1546a7),{column:_0x5d5351}=_0x73476a['getCellLocation'](_0x9fbf29);for(let _0x3af362=_0x5836bc;_0x3af362<=_0x5d5351;_0x3af362++){const _0x28ce59=_0x73476a['createTableWalker'](_0x498abe,{'column':_0x3af362,'includeAllSlots':!0x1});for(const _0x657f31 of _0x28ce59){const _0xcac1cc=_0x657f31['cell'],_0x3148c1=_0x5470c4['mapper']['toViewElement'](_0xcac1cc);_0x5470c4['writer']['addClass']('ck-suggestion-marker-'+_0x2edc99,_0x3148c1),_0x3a0214&&_0x5470c4['writer']['setAttribute']('data-suggestion',_0x533947,_0x3148c1),_0x5470c4['mapper']['bindElementToMarker'](_0x3148c1,_0x5adbe2['markerName']),_0x5a6b42&&(_0x117ce0['activeMarkers']['includes'](_0x5adbe2['markerName'])?_0x5470c4['writer']['addClass']('ck-suggestion-marker--active',_0x3148c1):_0x5470c4['writer']['removeClass']('ck-suggestion-marker--active',_0x3148c1));}}};}_0x117ce0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4bf252),_0x117ce0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4bf252),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x38fd76(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x41b6e9,_0x2bb098,_0x26d551)=>{_0x26d551['options']['showSuggestionHighlights']&&_0x38fd76({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x41b6e9,_0x2bb098,_0x26d551);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1fca70,_0x10a6d0,_0x97405e)=>{const {type:_0x73e2ac,id:_0x58302e}=_0x117ce0['_splitMarkerName'](_0x10a6d0['markerName']),_0x4ff042=_0x117ce0['getSuggestion'](_0x58302e),_0x2feb91=_0x4ff042['data'];if('formatBlock'!=_0x4ff042['type']||!_0x2feb91||'setTableColumnHeader'!=_0x2feb91['commandName'])return;const _0x4b512c=_0x97405e['mapper']['markerNameToElements'](_0x10a6d0['markerName']);if(_0x4b512c){for(const _0x14c0ba of _0x4b512c)_0x97405e['writer']['removeClass']('ck-suggestion-marker-'+_0x73e2ac,_0x14c0ba),_0x97405e['writer']['removeClass']('ck-suggestion-marker--active',_0x14c0ba),_0x97405e['writer']['removeAttribute']('data-suggestion',_0x14c0ba),_0x97405e['mapper']['unbindElementFromMarkerName'](_0x14c0ba,_0x10a6d0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2454ae=this['editor'],_0x416940=_0x2454ae['locale'];function _0x2f4200(_0x3a2db3){return{'type':'format','content':o(_0x416940,'*Format:*\x20%0',_0x3a2db3)};}_0x2454ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1766a4=>{if('formatBlock'!=_0x1766a4['type'])return;const {data:_0x49118d}=_0x1766a4;if(_0x49118d){if('setTableRowHeader'==_0x49118d['commandName']){const _0x455d50=_0x49118d['commandParams'][0x0]['forceValue'];return _0x2f4200(o(_0x416940,_0x455d50?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x49118d['commandName']){const _0x30b819=_0x49118d['commandParams'][0x0]['forceValue'];return _0x2f4200(o(_0x416940,_0x30b819?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x2cf592=>[_0x2cf592,null]));class Nt extends _0x2a9dde{static get['requires'](){return[vt];}['afterInit'](){const _0x425368=this['editor'];if(!_0x425368['plugins']['has']('TableClipboard'))return;const _0x5eaac8=_0x425368['plugins']['get']('TrackChangesEditing'),_0x16d3a6=_0x425368['plugins']['get']('TableUtils'),_0x444e5b=_0x425368['plugins']['get'](vt),_0x23aa3d=_0x425368['plugins']['get']('TableClipboard');_0x444e5b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x425368['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x425368['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x40d28c=null;_0x425368['model']['on']('insertContent',(_0x2782eb,_0x46f35b)=>{const [_0x596a0a,_0xee306]=_0x46f35b,_0x2cc356=_0x46f35b[_0x46f35b['length']-0x1];_0x2cc356&&_0x2cc356['forceDefaultExecution']||_0x5eaac8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4094ae,_0x4d716d,_0x18099e,_0xc005cc,_0x228640){if(_0x4d716d&&!_0x4d716d['is']('documentSelection'))return!0x1;const _0x5e0194=_0x228640['getTableIfOnlyTableInContent'](_0x4094ae,_0x18099e);if(!_0x5e0194||!Ae(_0x5e0194,void 0x0,_0xc005cc))return!0x1;const _0x18ce10=_0xc005cc['getSelectionAffectedTableCells'](_0x18099e['document']['selection']);if(!_0x18ce10['length'])return!0x1;const _0x50d299=_0x18ce10[0x0]['findAncestor']('table'),_0x5871d4=_0xc005cc['getRowIndexes'](_0x18ce10),_0x2b3944=_0xc005cc['getColumnIndexes'](_0x18ce10),_0x4739e7={'startRow':_0x5871d4['first'],'endRow':_0x5871d4['last'],'startColumn':_0x2b3944['first'],'endColumn':_0x2b3944['last']};return 0x1==_0x18ce10['length']&&(_0x4739e7['endRow']+=_0xc005cc['getRows'](_0x5e0194)-0x1,_0x4739e7['endColumn']+=_0xc005cc['getColumns'](_0x5e0194)-0x1),Ae(_0x50d299,_0x4739e7,_0xc005cc);}(_0x596a0a,_0xee306,_0x425368['model'],_0x16d3a6,_0x23aa3d)&&(_0x2782eb['stop'](),_0x40d28c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x425368['model']['change'](()=>{_0x425368['model']['insertContent'](_0x46f35b[0x0],_0x46f35b[0x1],_0x46f35b[0x2],{'forceDefaultExecution':!0x0});const _0x335476=_0x38ab32(),{rowInsertionRanges:_0x499c02,columnInsertionRanges:_0x4faa16,insertionRanges:_0x898b30,deletionRanges:_0x1b3c10,cells:_0x387eb2}=_0x40d28c;_0x499c02['length']&&_0x5eaac8['markMultiRangeInsertion'](_0x499c02,'tablePasteRow',{'tablePasteChainId':_0x335476}),_0x4faa16['length']&&_0x5eaac8['markMultiRangeInsertion'](_0x4faa16,'tablePasteColumn',{'tablePasteChainId':_0x335476}),_0x898b30['length']&&(_0x5eaac8['markMultiRangeInsertion'](_0x898b30,'tablePaste',{'tablePasteChainId':_0x335476,'skipNestingCheck':!0x0}),_0x898b30['forEach'](_0x15ec58=>_0x15ec58['detach']?.())),_0x1b3c10['length']&&(_0x5eaac8['markMultiRangeDeletion'](_0x1b3c10,'tablePaste',{'tablePasteChainId':_0x335476,'skipNestingCheck':!0x0}),_0x1b3c10['forEach'](_0xb28551=>_0xb28551['detach']?.()));const _0x4065a5=_0x5eaac8['markMultiRangeBlockFormat'](_0x387eb2['map'](({element:_0xef7936})=>_0xef7936),{'formatGroupId':_0x38ab32()},[],'tablePasteCell',{'tablePasteChainId':_0x335476});if(_0x4065a5){const _0xc2362=_0x4065a5['getMarkers'](),_0x331018=[];for(const {element:_0xc6d5f9,attributes:_0x137bcf}of _0x387eb2){if(!_0x137bcf)continue;const _0x14695b=_0x425368['model']['createRangeOn'](_0xc6d5f9),_0x29b51e=_0xc2362['find'](_0x33bfa8=>_0x33bfa8['getRange']()['isEqual'](_0x14695b));_0x29b51e&&_0x331018['push']([_0x29b51e['name'],_0x137bcf]);}_0x331018['length']&&_0x4065a5['setAttribute']('markerAttributes',Object['fromEntries'](_0x331018));}_0x40d28c=null;}));},{'priority':_0x63ec0['high']+0xa}),_0x425368['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x406393,_0x354070)=>{const [_0x5123bd,_0x398d9b,,_0x49c634]=_0x354070;if(!_0x40d28c)return;_0x406393['stop']();const _0x568b4e=_0x5123bd['cell'],_0x54bac3=_0x398d9b,_0x3ebd22=je(_0x568b4e),_0x422046=je(_0x54bac3);_0x406393['return']=_0x568b4e;let _0x3ada86=null,_0x3959c7=null;if(_0x422046||_0x3ebd22){if(_0x3ebd22&&!_0x422046){_0x49c634['remove'](_0x568b4e['getChild'](0x0));for(const _0x5681f9 of Array['from'](_0x54bac3['getChildren']()))_0x49c634['insert'](_0x5681f9,_0x568b4e,'end');const _0x8006b4=_0x40d28c['rowInsertionIndexes']['includes'](_0x5123bd['row']),_0x403bdc=_0x40d28c['columnInsertionIndexes']['includes'](_0x5123bd['column']);_0x8006b4||_0x403bdc||(_0x3ada86=_0x50e55c['fromRange'](_0x49c634['createRangeIn'](_0x568b4e)));}else _0x422046&&!_0x3ebd22&&(_0x3959c7=_0x49c634['createRangeIn'](_0x568b4e));}else{const _0x2bcf3b=_0x49c634['createElement']('tableCellSuggestion'),_0xbec926=_0x49c634['createElement']('tableCellSuggestion');_0x49c634['wrap'](_0x49c634['createRangeIn'](_0x568b4e),_0xbec926),_0x49c634['insert'](_0x2bcf3b,_0x568b4e,0x0);for(const _0x177299 of Array['from'](_0x54bac3['getChildren']()))_0x49c634['insert'](_0x177299,_0x2bcf3b,'end');_0x3ada86=_0x50e55c['fromRange'](_0x49c634['createRangeOn'](_0x2bcf3b)),_0x3959c7=_0x50e55c['fromRange'](_0x49c634['createRangeOn'](_0xbec926));}const _0x410399=Array['from'](_0x54bac3['getAttributes']())['filter'](([_0x42a7be])=>we['includes'](_0x42a7be));_0x40d28c['cells']['push']({'element':_0x568b4e,'attributes':_0x410399['length']?Object['fromEntries'](_0x410399):null}),_0x3ada86&&_0x40d28c['insertionRanges']['push'](_0x3ada86),_0x3959c7&&_0x40d28c['deletionRanges']['push'](_0x3959c7);},{'priority':'high'}),_0x16d3a6['on']('insertColumns',(_0x2666f4,_0x594373)=>{const [_0x3db0d7,_0x310645={}]=_0x594373;if(!_0x40d28c)return;const _0x5ad4bd=_0x310645['at']||0x0,_0x10a4b1=_0x310645['columns']||0x1;_0x40d28c['columnInsertionIndexes']=new Array(_0x10a4b1)['fill'](_0x5ad4bd)['map']((_0x901a8a,_0x178f17)=>_0x901a8a+_0x178f17);for(const {cell:_0x6f969c}of _0x16d3a6['createTableWalker'](_0x3db0d7,{'startColumn':_0x5ad4bd,'endColumn':_0x5ad4bd+_0x10a4b1-0x1}))_0x40d28c['columnInsertionRanges']['push'](_0x425368['model']['createRangeOn'](_0x6f969c));},{'priority':'low'}),_0x16d3a6['on']('insertRows',(_0x481f05,_0x476666)=>{const [_0xc6d30b,_0x15d8f6={}]=_0x476666;if(!_0x40d28c)return;const _0x5f1d60=_0x15d8f6['at']||0x0,_0x1aeaa6=_0x15d8f6['rows']||0x1;_0x40d28c['rowInsertionIndexes']=new Array(_0x1aeaa6)['fill'](_0x5f1d60)['map']((_0xe86802,_0x2d57cc)=>_0xe86802+_0x2d57cc);for(const {cell:_0x378d17}of _0x16d3a6['createTableWalker'](_0xc6d30b,{'startRow':_0x5f1d60,'endRow':_0x5f1d60+_0x1aeaa6-0x1}))_0x40d28c['rowInsertionRanges']['push'](_0x425368['model']['createRangeOn'](_0x378d17));},{'priority':'low'}),_0x5eaac8['descriptionFactory']['registerDescriptionCallback'](_0xdff5af=>{if(_0xdff5af['subType']&&_0xdff5af['subType']['startsWith']('tablePaste'))return _0xdff5af['previous']?{}:{'type':'insertion','content':o(_0x425368['locale'],'*Replace\x20table\x20cells*')};});const _0x440964=()=>!0x1;for(const _0x25f761 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5eaac8['_suggestionFactory']['registerCustomCallback']('insertion',_0x25f761,'join',_0x440964),_0x5eaac8['_suggestionFactory']['registerCustomCallback']('deletion',_0x25f761,'join',_0x440964),_0x5eaac8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x25f761,'join',_0x440964);_0x5eaac8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x440964),_0x5eaac8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x15f38d,_0x43b6a5,_0x222469)=>{const _0x35f669=_0x15f38d['map'](_0x481913=>_0x481913['getContainedElement']())['filter'](_0x3982cd=>_0x3982cd),_0x379831=new Map(_0x35f669['map'](_0x2be63d=>[_0x2be63d,null]));if(_0x40d28c){for(const {element:_0x4de319,attributes:_0x42395e}of _0x40d28c['cells'])_0x42395e&&_0x379831['set'](_0x4de319,_0x42395e);}else{if(_0x222469&&_0x222469['markerAttributes'])for(const [_0x550e41,_0x259fcd]of Object['entries'](_0x222469['markerAttributes'])){const _0x29384d=_0x425368['model']['markers']['get'](_0x550e41),_0x1b521c=_0x29384d?_0x29384d['getRange']()['getContainedElement']():null;_0x1b521c&&_0x379831['set'](_0x1b521c,_0x259fcd);}}_0x425368['model']['change'](_0x200db4=>{for(const [_0x4a87bf,_0x25a51f]of _0x379831)_0x200db4['setAttributes']({...ve,..._0x25a51f},_0x4a87bf);});});const _0x24dc54=(_0x11ab63,_0x374b70)=>{_0x5eaac8['_suggestionFactory']['registerCustomCallback'](_0x11ab63,'tablePaste',_0x374b70,(_0x43016b,_0x4e1eca,_0x3ab307)=>{_0x425368['model']['change'](_0x2e25c2=>{const _0x28a2ce=[];for(const _0x12d70e of _0x43016b){const _0xf47ff1=_0x12d70e['start']['nodeAfter'];_0xf47ff1['is']('element','tableCellSuggestion')&&_0x28a2ce['push'](_0xf47ff1);}_0x5eaac8['_suggestionFactory']['getSuggestionCallback'](_0x11ab63,null,_0x374b70)(_0x43016b,_0x4e1eca,_0x3ab307);for(const _0x2b85cd of _0x28a2ce)'$graveyard'!=_0x2b85cd['root']['rootName']&&_0x2e25c2['unwrap'](_0x2b85cd);});});};_0x24dc54('insertion','accept'),_0x24dc54('insertion','discard'),_0x24dc54('deletion','accept'),_0x24dc54('deletion','discard'),_0x5eaac8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x375fce=>{const _0x9dffb2=_0x375fce['map'](_0x5e489a=>_0x5e489a['getContainedElement']()),_0x2a3cfc=_0x9dffb2[0x0]['findAncestor']('table'),{minRow:_0x1009a1,maxRow:_0x4e39ea}=_0x444e5b['_getCoordsForCells'](_0x9dffb2);_0x16d3a6['removeRows'](_0x2a3cfc,{'at':_0x1009a1,'rows':_0x4e39ea-_0x1009a1+0x1});}),_0x5eaac8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2808d7=>{const _0x2c96e6=_0x2808d7['map'](_0x53d4fa=>_0x53d4fa['getContainedElement']()),_0x2cd63e=_0x2c96e6[0x0]['findAncestor']('table'),{minColumn:_0x3aeaa1,maxColumn:_0x43de7e}=_0x444e5b['_getCoordsForCells'](_0x2c96e6);_0x16d3a6['removeColumns'](_0x2cd63e,{'at':_0x3aeaa1,'columns':_0x43de7e-_0x3aeaa1+0x1});});const _0x15fd68=(_0x3087c3,_0x56e30f)=>{if(!_0x56e30f['subType']||!_0x56e30f['subType']['startsWith']('tablePaste'))return;const _0x280656=_0x56e30f['attributes']['tablePasteChainId'],_0x5d6d97=_0x5eaac8['getSuggestions']()['filter'](_0x6c6c5=>_0x6c6c5['isInContent']&&_0x6c6c5['attributes']&&_0x6c6c5['attributes']['tablePasteChainId']==_0x280656);_0x5d6d97['length']&&_0x56e30f['getAllAdjacentSuggestions']()['length']!=_0x5d6d97['length']&&_0x5d6d97['reduce']((_0x41b14e,_0x514eff)=>(_0x41b14e['next']=_0x514eff,_0x514eff['previous']=_0x41b14e,_0x514eff));};function _0x18284b(_0x5ab2be,_0x58da7b=!0x0){const {id:_0x2cd254,authorId:_0x59b3f5}=_0x5eaac8['_splitMarkerName'](_0x5ab2be['markerName']),_0x2c4708=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4ff9e9=_0x5eaac8['activeMarkers']['includes'](_0x5ab2be['markerName']);return _0x4ff9e9&&_0x2c4708['push']('ck-suggestion-marker--active'),{'classes':_0x2c4708,'attributes':{'data-suggestion':_0x2cd254,'data-author-id':_0x59b3f5},'priority':_0x4ff9e9&&_0x58da7b?0xbc2:0xbb8};}_0x5eaac8['on']('suggestionLoaded',_0x15fd68,{'priority':'high'}),_0x5eaac8['on']('suggestionUnloaded',_0x15fd68,{'priority':'high'}),_0x425368['model']['document']['registerPostFixer'](()=>{let _0x2da92d=!0x1;const _0x50894c=Array['from'](_0x425368['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ee711,data:_0xed6827}of _0x50894c){const {group:_0x127687,type:_0x9cf792,id:_0x13f984}=_0x5eaac8['_splitMarkerName'](_0x1ee711);if('suggestion'!=_0x127687||'deletion'!=_0x9cf792||_0xed6827['oldRange'])continue;if(!_0x5eaac8['hasSuggestion'](_0x13f984))continue;const _0xe6989f=_0x5eaac8['getSuggestion'](_0x13f984)['getRanges'](),_0xbeea0f=_0x425368['plugins']['get']('Users')['me'];for(const _0x37d24e of _0x5eaac8['getSuggestions']()){if(!_0x37d24e['isInContent']||_0x37d24e['author']!=_0xbeea0f)continue;if('formatBlock'!=_0x37d24e['type']||'tablePasteCell'!=_0x37d24e['subType'])continue;if(_0x37d24e['getRanges']()['every'](_0x1c6f4c=>_0xe6989f['some'](_0x2aca21=>_0x2aca21['containsRange'](_0x1c6f4c,!0x0)))){for(const _0xdb1bf5 of _0x37d24e['getAllAdjacentSuggestions']())_0xdb1bf5['isInContent']&&(_0xdb1bf5['discard'](),_0x2da92d=!0x0);}}}return _0x2da92d;}),_0x425368['model']['document']['registerPostFixer'](_0x30f1cc=>{const _0xc2fabb=_0x425368['commands']['get']('redo');if(!_0xc2fabb||!_0xc2fabb['_createdBatches']['has'](_0x30f1cc['batch']))return!0x1;let _0x5e3cba=!0x1;const _0x3e9afb=_0x425368['plugins']['get']('Users')['me'],_0x4f7fa2=_0x425368['model']['document']['differ']['getChanges'](),_0x394813=Array['from'](_0x425368['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x46d7ec,data:_0x12f245})=>{const {group:_0x1c8015,subType:_0x2353ac,authorId:_0x21cb3c}=_0x5eaac8['_splitMarkerName'](_0x46d7ec);return'suggestion'==_0x1c8015&&'tablePaste'==_0x2353ac&&_0x21cb3c==_0x3e9afb['id']&&!_0x12f245['oldRange'];});for(const _0x48666c of _0x4f7fa2){if('insert'!=_0x48666c['type']||'tableCellSuggestion'!=_0x48666c['name']||0x1!=_0x48666c['length'])continue;const _0xcfbd5b=_0x30f1cc['createRange'](_0x48666c['position'],_0x48666c['position']['getShiftedBy'](0x1));if(!_0x394813['find'](({data:_0x2dfb7e})=>_0x2dfb7e['newRange']['isEqual'](_0xcfbd5b))){for(const {name:_0x28c498,data:_0x5226a3}of _0x394813)if(_0xcfbd5b['containsRange'](_0x5226a3['newRange'])){_0x30f1cc['updateMarker'](_0x28c498,{'range':_0xcfbd5b}),_0x5e3cba=!0x0;break;}}}return _0x5e3cba;}),_0x425368['model']['document']['registerPostFixer'](_0x44fd03=>{let _0xc73c19=!0x1;const _0x2d09fd=_0x425368['plugins']['get']('Users')['me'],_0x361f85=_0x5eaac8['getSuggestions']()['filter'](_0x42676a=>_0x42676a['isInContent']&&_0x42676a['author']==_0x2d09fd),_0x205c5e=new Set(),_0x2cd995=new Set();for(const _0x159040 of _0x361f85)if('tablePaste'==_0x159040['subType'])for(const _0x463cab of _0x159040['getMarkers']()){const _0x50a1a8=_0x463cab['getRange']()['getContainedElement']();if(_0x50a1a8){if(_0x50a1a8['is']('element','tableCellSuggestion')&&je(_0x50a1a8)){_0x159040['removeMarker'](_0x463cab['name']),_0x205c5e['add'](_0x50a1a8),_0xc73c19=!0x0;const _0x375b6b=_0x50a1a8['nextSibling'],_0x3411eb=_0x50a1a8['previousSibling'],_0x5f3380=_0x375b6b&&_0x375b6b['is']('element','tableCellSuggestion'),_0x428e58=_0x3411eb&&_0x3411eb['is']('element','tableCellSuggestion');_0x5f3380&&!_0x205c5e['has'](_0x375b6b)&&_0x2cd995['add'](_0x375b6b),_0x428e58&&!_0x205c5e['has'](_0x3411eb)&&_0x2cd995['add'](_0x3411eb);}else _0x50a1a8['is']('element','paragraph')&&_0x50a1a8['isEmpty']&&(_0x159040['removeMarker'](_0x463cab['name']),_0xc73c19=!0x0);}}else{if('tablePasteCell'==_0x159040['subType']){if(!_0x159040['attributes']||!_0x159040['attributes']['tablePasteChainId'])continue;const _0x263552=_0x159040['attributes']['markerAttributes'];if(_0x263552&&Object['keys'](_0x263552)['length'])continue;const _0x597edb=_0x159040['attributes']['tablePasteChainId'];let _0x548da4=!0x0,_0x41df87=!0x0;for(const _0x8977ab of _0x361f85)if(_0x8977ab['subType']&&_0x8977ab['subType']['startsWith']('tablePaste')){if(!_0x8977ab['attributes']['tablePasteChainId']){_0x41df87=!0x1;break;}if(_0x8977ab['id']!=_0x159040['id']&&_0x8977ab['attributes']['tablePasteChainId']==_0x597edb){_0x548da4=!0x1;break;}}_0x41df87&&_0x548da4&&(_0x159040['removeMarkers'](),_0xc73c19=!0x0);}}for(const _0x5f5607 of _0x205c5e)_0x44fd03['remove'](_0x5f5607);for(const _0x37c179 of _0x2cd995)_0x44fd03['unwrap'](_0x37c179);return _0xc73c19;}),_0x425368['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x35eeea=>_0x18284b(_0x35eeea),'converterPriority':'high'}),_0x425368['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x15ebd7,_0x1128de)=>_0x1128de['options']['showSuggestionHighlights']?_0x18284b(_0x15ebd7,!0x1):null,'converterPriority':'high'});const _0x551c97=_0x425368['editing']['view'];this['listenTo'](_0x551c97['document'],'clipboardOutput',(_0x259099,_0x23dded)=>{const _0x302e80=[];for(const _0xe0430c of _0x551c97['createRangeIn'](_0x23dded['content'])['getItems']())_0xe0430c['is']('element','suggestion-td')&&_0x302e80['push'](_0xe0430c);_0x551c97['change'](_0xe81433=>{for(const _0x92e8f4 of _0x302e80)_0xe81433['move'](_0xe81433['createRangeIn'](_0x92e8f4),_0xe81433['createPositionBefore'](_0x92e8f4)),_0xe81433['remove'](_0x92e8f4);});});}}function je(_0x47602e){if(_0x47602e['isEmpty'])return!0x0;const _0x436030=_0x47602e['getChild'](0x0);return _0x436030['is']('element','paragraph')&&_0x436030['isEmpty'];}function Ae(_0x445f4c,_0xfbc1f1={},_0x53e78c){for(const {isAnchor:_0x90ea38,cellHeight:_0x424d6f,cellWidth:_0x297471}of _0x53e78c['createTableWalker'](_0x445f4c,{'includeAllSlots':!0x0,..._0xfbc1f1}))if(!_0x90ea38||0x1!=_0x424d6f||0x1!=_0x297471)return!0x1;return!0x0;}class Dt extends _0x2a9dde{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x426f92=this['editor']['plugins']['get']('TrackChangesEditing');_0x426f92['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x426f92['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x426f92['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x426f92['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x426f92['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x426f92['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x31299c,_0x1c801b){const _0x2ee540=this['editor']['plugins']['get']('TrackChangesEditing'),_0x100763=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x38fcae=_0x1c801b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2d1584=_0x100763['getColumnGroupElement'](_0x38fcae);let _0x3253ac=_0x2d1584?_0x100763['getTableColumnsWidths'](_0x2d1584):null,_0x3d3e21=_0x38fcae['getAttribute']('tableWidth')||null;const _0x1a59b5=_0x1c801b['tableWidth']||_0x3d3e21,_0x4ed971=_0x1c801b['columnWidths']||_0x3253ac,_0x4cadf8=this['editor']['plugins']['get']('Users')['me'];for(const _0x39175e of _0x2ee540['getSuggestions']()){const _0x48b4a6=_0x39175e['getContainedElement']();if('resizeTable'===_0x39175e['subType']&&_0x48b4a6===_0x38fcae){_0x39175e['author']!==_0x4cadf8&&_0x39175e['discard']();const _0x369c9a=_0x39175e['data']['commandParams'];_0x3d3e21=_0x369c9a[0x0]['tableWidth'],_0x3253ac=_0x369c9a[0x0]['columnWidths'];break;}}_0x31299c({'table':_0x38fcae,'tableWidth':_0x1a59b5,'columnWidths':_0x4ed971}),_0x2ee540['markBlockFormat'](_0x38fcae,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3d3e21,'columnWidths':_0x3253ac}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x491607){if('formatBlock'!=_0x491607['type']&&'formatInline'!=_0x491607['type'])return;const {data:_0x253704}=_0x491607;if(_0x253704&&'resizeTable'===_0x253704['formatGroupId']){const _0x52606b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x52606b)};}}}class Mt extends _0x2a9dde{['afterInit'](){const _0x623551=this['editor'];_0x623551['plugins']['has']('Template')&&_0x623551['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x2a9dde{['afterInit'](){const _0x3f50dc=this['editor'];if(!_0x3f50dc['commands']['get']('insertTableOfContents'))return;_0x3f50dc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2655bf=_0x3f50dc['plugins']['get']('TrackChangesEditing'),_0x41ae09=_0x3f50dc['locale'];_0x2655bf['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3bb45e=>o(_0x41ae09,'ELEMENT_TABLE_OF_CONTENTS',_0x3bb45e));}}class Bt extends _0x2a9dde{['afterInit'](){const _0x2af48d=this['editor'];if(!_0x2af48d['plugins']['has']('Title'))return;const _0x247cb5=_0x2af48d['plugins']['get']('TrackChangesEditing');_0x247cb5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2af48d['locale'],'ELEMENT_TITLE')),_0x2af48d['model']['document']['registerPostFixer'](_0x54344d=>{let _0x13bac4=!0x1;const _0xe5995a=Array['from'](_0x2af48d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x33a902,data:_0xc3fb9d}of _0xe5995a){const {group:_0x58be6b}=_0x247cb5['_splitMarkerName'](_0x33a902);if('suggestion'!==_0x58be6b||!_0xc3fb9d['newRange'])continue;const _0x44d40a=_0xc3fb9d['newRange'],_0x3cb7ce=_0x44d40a['end']['nodeBefore'];if(!_0x3cb7ce||!_0x3cb7ce['is']('element','title-content'))continue;if(!_0x44d40a['start']['isTouching'](_0x44d40a['end']))continue;const _0x46c241=_0x2af48d['model']['schema']['getNearestSelectionRange'](_0x44d40a['end'],'forward');if(_0x46c241&&_0x46c241['isCollapsed']){const _0x363e35=_0x54344d['createRange'](_0x44d40a['start'],_0x46c241['start']);_0x363e35['isEqual'](_0x44d40a)||(_0x54344d['updateMarker'](_0x33a902,{'range':_0x363e35}),_0x13bac4=!0x0);}_0x13bac4||(_0x54344d['removeMarker'](_0x33a902),_0x13bac4=!0x0);}return _0x13bac4;});}}class Ot extends _0x2a9dde{['afterInit'](){const _0x38c139=this['editor'],_0x554382=_0x38c139['plugins']['get']('TrackChangesEditing');_0x38c139['plugins']['has']('UndoEditing')&&(_0x554382['enableCommand']('undo'),_0x554382['enableCommand']('redo'));}}class Rt extends _0x2a9dde{static get['requires'](){return[vt];}['afterInit'](){const _0x7f094c=this['editor'];if(!_0x7f094c['plugins']['has']('TableCaptionEditing'))return;_0x7f094c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x2a9dde{['tableProperties'];['tableCellProperties'];constructor(_0x2b9982){super(_0x2b9982),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 _0x364a67=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2b6fe0 of this['tableProperties'])_0x364a67['enableCommand'](_0x2b6fe0,(_0x2886f2,_0x3c48bd)=>{const _0x37a641=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2b6fe0,[_0x37a641],this['tableProperties'],'tableProperties',_0x2886f2,_0x3c48bd);});_0x364a67['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x364a67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x364a67['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2b5bcd,_0x1c4744)=>this['handleDiscardAction'](this['tableProperties'],_0x2b5bcd,_0x1c4744)),_0x364a67['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x533c70 of this['tableCellProperties'])_0x364a67['enableCommand'](_0x533c70,(_0x2a703f,_0x6cdb6d)=>{const _0x1f913d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x533c70,_0x1f913d,this['tableCellProperties'],'tableCellProperties',_0x2a703f,_0x6cdb6d);});_0x364a67['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x364a67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x364a67['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3b307a,_0x36e001)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3b307a,_0x36e001)),_0x364a67['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x364a67['descriptionFactory']['registerDescriptionCallback'](_0x19fdbe=>this['handleSuggestionDescription'](_0x19fdbe));}['_handlePropertyChange'](_0x38d8c8,_0x51420b,_0xe58045,_0x4d8573,_0x57b1ab,_0xe40f06){const _0x4174e9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xe40f06['batch'],()=>{for(const _0x38a8c0 of _0x51420b){if(this['_getSuggestion'](_0x38a8c0,_0x4d8573))_0x57b1ab(_0xe40f06);else{const _0x1c3530={};for(const _0x510ddd of _0xe58045){const _0x23859d=_0x38a8c0['getAttribute'](_0x510ddd);void 0x0!==_0x23859d&&(_0x1c3530[_0x510ddd]=_0x23859d);}_0x57b1ab(_0xe40f06),_0x4174e9['markBlockFormat'](_0x38a8c0,{'commandParams':[_0x1c3530]},[],_0x4d8573);}}});}['handleDiscardAction'](_0x50d2a0,_0x3bb9f7,_0x40bb52){const _0x999a4d=_0x3bb9f7[0x0]['start']['nodeAfter'],_0x8fd89c=_0x40bb52['commandParams'][0x0];this['editor']['model']['change'](_0x3d7c00=>{for(const _0x1b114b of _0x50d2a0)void 0x0!==_0x8fd89c[_0x1b114b]?_0x3d7c00['setAttribute'](_0x1b114b,_0x8fd89c[_0x1b114b],_0x999a4d):_0x3d7c00['removeAttribute'](_0x1b114b,_0x999a4d);});}['handleSuggestionDescription'](_0x2e4a83){if(_0x2e4a83['data'])switch(_0x2e4a83['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'](_0x528a6e,_0x33cf2d){const _0x31714d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x530730 of _0x31714d['getSuggestions']({'skipNotAttached':!0x0})){const _0x21915b=_0x530730['getContainedElement']();if(_0x530730['subType']===_0x33cf2d&&_0x21915b===_0x528a6e)return _0x530730;}return null;}}const m='$elementName';class p extends _0x2a9dde{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3f5543,_0x598feb,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f964f){super(_0x4f964f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x119375,_0x4ae637,_0x5250e9,_0x2bde72)=>{this['_model']['change'](()=>{for(const _0x30d4a6 of[..._0x2bde72,..._0x5250e9])this['_model']['markers']['has'](_0x30d4a6)&&_0x4f964f['editing']['reconvertMarker'](_0x30d4a6);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4f964f['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(),_0x4f964f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4f964f['config']['get']('trackChanges.trackFormatChanges'),_0x4f964f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4f964f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4f964f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x11d0f6=this['editor'],_0x2a5bf6=(_0x2a1c26,_0x260d68)=>{if('attribute'!=_0x2a1c26)return'ck-suggestion-marker-'+_0x2a1c26;const _0x173191=_0x260d68['split']('|')[0x0];return this['_isBlockAttribute'](_0x173191)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x11d0f6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2c412c=>{const {id:_0x56cd68,authorId:_0xd502f7,type:_0x34c603,subType:_0xf46981}=this['_splitMarkerName'](_0x2c412c['markerName']),_0x1e57b=['ck-suggestion-marker',_0x2a5bf6(_0x34c603,_0xf46981)];let _0x1ffea5=0xbb8;return this['activeMarkers']['includes'](_0x2c412c['markerName'])&&(_0x1e57b['push']('ck-suggestion-marker--active'),_0x1ffea5=0xbc2),'deletion'==_0x34c603&&(_0x1ffea5+=0x5),{'classes':_0x1e57b,'attributes':{'data-suggestion':_0x56cd68,'data-author-id':_0xd502f7},'priority':_0x1ffea5};}}),_0x11d0f6['conversion']['for']('dataDowncast')['add'](_0x5c5e29=>{_0x5c5e29['on']('addMarker:suggestion',(_0x395197,_0x3330f5,_0x2089ff)=>{if(!_0x2089ff['options']['showSuggestionHighlights'])return;const _0x275753=_0x3330f5['item'];if(!_0x275753)return;const _0x2565d6=_0x2089ff['mapper']['toViewElement'](_0x275753);_0x11d0f6['model']['schema']['isObject'](_0x275753)&&_0x2565d6&&!_0x2565d6['getCustomProperty']('widget')&&_0x2565d6['is']('containerElement')&&_0x541e2e(_0x2565d6,_0x2089ff['writer']);},{'priority':'high'});}),_0x11d0f6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1c495d,_0x2b625c)=>{if(!_0x2b625c['options']['showSuggestionHighlights'])return null;const {type:_0x2e7c97,subType:_0x44cd0f}=this['_splitMarkerName'](_0x1c495d['markerName']);return{'classes':['ck-suggestion-marker',_0x2a5bf6(_0x2e7c97,_0x44cd0f)],'priority':0xbb8};}});const _0x22674f=({showActiveMarkers:_0x14cd70=!0x0,isAttributeSuggestion:_0x175c68=!0x1}={})=>(_0x20571b,_0x33429b,_0x1bedff)=>{if(!_0x33429b['item'])return;const {id:_0x5e91b4,authorId:_0x33ac7d}=this['_splitMarkerName'](_0x33429b['markerName']);if(_0x175c68){const _0x35f1a4=this['_suggestions']['get'](_0x5e91b4),_0x4e3268=this['_getAttributeKey'](_0x35f1a4);if(!this['_isBlockAttribute'](_0x4e3268))return;}if(_0x33429b['item']['is']('selection'))return void _0x1bedff['consumable']['consume'](_0x33429b['item'],_0x20571b['name']);const _0x2d5cea=_0x1bedff['mapper']['toViewElement'](_0x33429b['item']);if(_0x33429b['item']['is']('element')&&_0x11d0f6['model']['schema']['isBlock'](_0x33429b['item'])&&!_0x2d5cea['getCustomProperty']('addHighlight')){_0x1bedff['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2d5cea),_0x1bedff['writer']['setAttribute']('data-suggestion',_0x5e91b4,_0x2d5cea),_0x1bedff['writer']['setAttribute']('data-author-id',_0x33ac7d,_0x2d5cea),_0x1bedff['mapper']['bindElementToMarker'](_0x2d5cea,_0x33429b['markerName']),_0x14cd70&&(this['activeMarkers']['includes'](_0x33429b['markerName'])?_0x1bedff['writer']['addClass']('ck-suggestion-marker--active',_0x2d5cea):_0x1bedff['writer']['removeClass']('ck-suggestion-marker--active',_0x2d5cea));for(const _0x1e1158 of _0x11d0f6['model']['createRangeIn'](_0x33429b['item'])['getItems']())_0x1bedff['consumable']['consume'](_0x1e1158,_0x20571b['name']);_0x1bedff['consumable']['consume'](_0x33429b['item'],_0x20571b['name']);}};_0x11d0f6['conversion']['for']('dataDowncast')['add'](_0x33389e=>{_0x33389e['on']('addMarker:suggestion:formatBlock',(_0xe1a2d0,_0x21e57e,_0x2aa352)=>{_0x2aa352['options']['showSuggestionHighlights']&&_0x22674f({'showActiveMarkers':!0x1})(_0xe1a2d0,_0x21e57e,_0x2aa352);},{'priority':'highest'});}),_0x11d0f6['conversion']['for']('dataDowncast')['add'](_0x20051a=>{_0x20051a['on']('addMarker:suggestion:attribute',(_0x557f21,_0x47202e,_0x2843fd)=>{_0x2843fd['options']['showSuggestionHighlights']&&_0x22674f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x557f21,_0x47202e,_0x2843fd);},{'priority':'highest'});}),_0x11d0f6['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xe2cb74,_0x4bb38b)=>_0x4bb38b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xe2cb74['substr'](0xb)}}),_0x11d0f6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x59ea0f,{writer:_0x23e94f})=>{let _0xb4c6ee='suggestion:'+_0x59ea0f['getAttribute']('suggestion-type')+':'+_0x59ea0f['getAttribute']('id');return _0x59ea0f['getAttribute']('marker-count')&&(_0xb4c6ee+=':'+_0x59ea0f['getAttribute']('marker-count')),_0x23e94f['createElement']('$marker',{'data-name':_0xb4c6ee});}}),_0x11d0f6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x11d0f6['conversion']['for']('editingDowncast')['add'](_0xcdd041=>{_0xcdd041['on']('addMarker:suggestion:formatBlock',_0x22674f(),{'priority':'high'});}),_0x11d0f6['conversion']['for']('editingDowncast')['add'](_0x1ff6ad=>{_0x1ff6ad['on']('addMarker:suggestion:attribute',_0x22674f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x11d0f6['conversion']['for']('editingDowncast')['add'](_0x587f04=>{_0x587f04['on']('removeMarker:suggestion:formatBlock',(_0x52a6d6,_0x343e03,_0x5624ec)=>{const _0x5ccffa=_0x5624ec['mapper']['markerNameToElements'](_0x343e03['markerName']);if(_0x5ccffa){for(const _0x1cca59 of _0x5ccffa)_0x1cca59['getCustomProperty']('addHighlight')||(_0x5624ec['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1cca59),_0x5624ec['writer']['removeAttribute']('data-suggestion',_0x1cca59),_0x5624ec['writer']['removeAttribute']('data-author-id',_0x1cca59),_0x5624ec['mapper']['unbindElementFromMarkerName'](_0x1cca59,_0x343e03['markerName']));}},{'priority':'high'});}),_0x11d0f6['conversion']['for']('editingDowncast')['add'](_0x4553e8=>{_0x4553e8['on']('removeMarker:suggestion:attribute',(_0x5026ff,_0x93986,_0x13a9a4)=>{const _0x181443=_0x13a9a4['mapper']['markerNameToElements'](_0x93986['markerName']);if(!_0x181443)return;const {id:_0x5a5962}=this['_splitMarkerName'](_0x93986['markerName']),_0x287336=this['_suggestions']['get'](_0x5a5962),_0xb3ebe8=this['_getAttributeKey'](_0x287336);if(this['_isBlockAttribute'](_0xb3ebe8)){for(const _0x56adfb of _0x181443)_0x56adfb['getCustomProperty']('addHighlight')||(_0x13a9a4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x56adfb),_0x13a9a4['writer']['removeAttribute']('data-suggestion',_0x56adfb),_0x13a9a4['writer']['removeAttribute']('data-author-id',_0x56adfb),_0x13a9a4['mapper']['unbindElementFromMarkerName'](_0x56adfb,_0x93986['markerName']));}},{'priority':'high'});}),_0x11d0f6['model']['document']['registerPostFixer'](_0x138b20=>{let _0x2b6308=!0x1;const _0x2e9bab=Array['from'](_0x11d0f6['model']['document']['differ']['getChangedMarkers']()),_0x1a8bb3=new Set();for(const {name:_0x2978a3,data:_0x10b997}of _0x2e9bab){const {group:_0x5f4796,type:_0x14346b,subType:_0x4943ee,id:_0xf913eb}=this['_splitMarkerName'](_0x2978a3);if('suggestion'!==_0x5f4796)continue;const _0xb66456=this['_suggestions']['get'](_0xf913eb);if(null!=_0x10b997['newRange']){'formatInline'==_0x14346b&&(_0x2b6308=_0x2b6308||Pt(_0x10b997['newRange'],_0x2978a3,_0x138b20,_0x11d0f6['model']['schema']));const _0x8afc40='attribute'==_0x14346b&&this['_isBlockAttribute'](_0x4943ee['split']('|')[0x0]);if(_0x10b997['newRange']['isCollapsed']||'$graveyard'==_0x10b997['newRange']['root']['rootName']||'formatBlock'==_0x14346b&&!Ft(_0x10b997['newRange'])||_0x8afc40&&!Ft(_0x10b997['newRange'])||'deletion'==_0x14346b&&!(!Vt(_0x123ad1=_0x10b997['newRange'])&&!function(_0x456fe3){return _0x456fe3['start']['parent']==_0x456fe3['end']['nodeBefore']&&_0x456fe3['start']['isAtEnd'];}(_0x123ad1)))_0x138b20['removeMarker'](_0x2978a3),_0x2b6308=!0x0;else{if(!_0xb66456||!_0xb66456['isInContent'])continue;if(_0x10b997['newRange']&&_0x10b997['oldRange']&&_0x10b997['newRange']['isEqual'](_0x10b997['oldRange']))continue;_0x1a8bb3['add'](_0xb66456);}}}var _0x123ad1;return _0x1a8bb3['size']>0x0&&(_0x2b6308=!!this['_joinWithAdjacentSuggestions'](_0x1a8bb3)||_0x2b6308),_0x2b6308;}),_0x11d0f6['model']['document']['registerPostFixer'](_0x5d0403=>{let _0x28c379=!0x1;for(const _0x66543c of _0x11d0f6['model']['document']['differ']['getChanges']())if('insert'==_0x66543c['type'])for(const _0x2cbd60 of this['_suggestions']['values']()){if(_0x2cbd60['isMultiRange']||!_0x2cbd60['isInContent'])continue;const _0x1a4606='formatBlock'==_0x2cbd60['type'],_0x672e1f=this['_getAttributeKey'](_0x2cbd60),_0x9a3ae=_0x672e1f&&this['_isBlockAttribute'](_0x672e1f);if(!_0x1a4606&&!_0x9a3ae)continue;const _0x4a8fb4=_0x2cbd60['getFirstRange']();if(_0x4a8fb4['start']['parent']!=_0x4a8fb4['end']['parent']&&!_0x4a8fb4['end']['isAtEnd']){const _0x4a8a6e=_0x11d0f6['model']['createPositionAt'](_0x4a8fb4['start']['nodeAfter'],'end'),_0x5b3602=_0x11d0f6['model']['createRange'](_0x4a8fb4['start'],_0x4a8a6e);_0x5d0403['updateMarker'](_0x2cbd60['getFirstMarker'](),{'range':_0x5b3602}),_0x28c379=!0x0;}}return _0x28c379;}),_0x11d0f6['model']['document']['registerPostFixer'](_0x20ed47=>this['_processAttributeChanges'](_0x20ed47)),_0x11d0f6['model']['document']['registerPostFixer'](_0x1cf512=>!_0x1cf512['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1cf512)),_0x11d0f6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x11d0f6['model']['document']['on']('change:data',(_0xb3be45,_0x3186dd)=>{if(!_0x3186dd['isLocal']||_0x3186dd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x10ac84=_0x11d0f6['model']['document']['differ']['getChanges']();if(0x0==_0x10ac84['length'])return;const _0xb73f93=[],_0x416a54=_0x10ac84['filter'](_0x4ecb65=>'attribute'==_0x4ecb65['type']),_0x2892d2=_0x10ac84['filter'](_0x14efb6=>'insert'==_0x14efb6['type']&&'$text'!=_0x14efb6['name']);for(const _0x1f536d of _0x416a54)this['_isRegisteredAttribute'](_0x1f536d['attributeKey'])&&_0xb73f93['push']({'key':_0x1f536d['attributeKey'],'newValue':_0x1f536d['attributeNewValue'],'oldValue':_0x1f536d['attributeOldValue'],'range':Lt(_0x1f536d['range'],_0x11d0f6['model'])});for(const _0x11bdc8 of _0x2892d2){if('rename'!=_0x11bdc8['action']&&'refresh'!=_0x11bdc8['action'])continue;const _0x3379c5=Jt(_0x11bdc8['position']['nodeAfter'],_0x11d0f6['model']),_0x31361c=_0x11bdc8['before'];'rename'==_0x11bdc8['action']&&_0xb73f93['push']({'key':m,'newValue':_0x11bdc8['name'],'oldValue':_0x31361c['name'],'range':_0x3379c5});for(const [_0x14d04e,_0x13dbf3]of _0x31361c['attributes']){if(!this['_isRegisteredAttribute'](_0x14d04e))continue;const _0x807022=_0x11bdc8['attributes']['get'](_0x14d04e);_0x13dbf3!==_0x807022&&_0xb73f93['push']({'key':_0x14d04e,'newValue':_0x807022,'oldValue':_0x13dbf3,'range':_0x3379c5});}for(const [_0x39b712,_0x2e9980]of _0x11bdc8['attributes'])this['_isRegisteredAttribute'](_0x39b712)&&(_0x31361c['attributes']['has'](_0x39b712)||_0xb73f93['push']({'key':_0x39b712,'newValue':_0x2e9980,'oldValue':null,'range':_0x3379c5}));}0x0!=_0xb73f93['length']&&_0x11d0f6['model']['enqueueChange'](_0x3186dd,_0x5611e5=>{const _0x3c5477=_0x38ab32();for(const {range:_0x9f118b,key:_0x41eca2,oldValue:_0x36c2cd,newValue:_0x464008}of _0xb73f93)this['markAttributeChange'](_0x9f118b,_0x41eca2,_0x36c2cd,_0x464008,{'groupId':_0x3c5477});this['_reduceExistingSuggestions'](_0x5611e5,_0xb73f93);});},{'priority':'lowest'}),_0x11d0f6['model']['markers']['on']('update:suggestion',(_0x208239,_0x26ab96,_0x327d90)=>{if(null==_0x327d90){const {id:_0x5a578e}=this['_splitMarkerName'](_0x26ab96['name']),_0x1c4106=this['_suggestions']['get'](_0x5a578e);_0x1c4106&&_0x1c4106['addMarkerName'](_0x26ab96['name']);}}),_0x11d0f6['model']['document']['on']('change:data',()=>{const _0x38331d=Array['from'](_0x11d0f6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x52854f=>'suggestion'===this['_splitMarkerName'](_0x52854f['name'])['group']);if(0x0===_0x38331d['length'])return;_0x38331d['sort']((_0x53bbda,_0x40bce3)=>{const _0x90aae7=_0x53bbda['data']['oldRange'],_0xc09261=_0x40bce3['data']['oldRange'];return null===_0x90aae7&&null===_0xc09261?0x0:null===_0x90aae7&&null!==_0xc09261?-0x1:null!==_0x90aae7&&null===_0xc09261?0x1:_0x90aae7['start']['isBefore'](_0xc09261['start'])?-0x1:0x1;});const _0x35882c=new Set(),_0x1e618c=new Set();for(const {name:_0x335e43,data:_0x14db79}of _0x38331d){const {id:_0x87c89d}=this['_splitMarkerName'](_0x335e43);if(null===_0x14db79['oldRange']){const _0x344bb0=this['_handleNewSuggestionMarker'](_0x335e43);_0x1e618c['add'](_0x344bb0);}else{const _0x57757a=this['_suggestions']['get'](_0x87c89d);null!==_0x14db79['newRange']||_0x57757a['isInContent']?(_0x35882c['add'](_0x57757a['head']),_0x1e618c['add'](_0x57757a)):this['_removeSuggestion'](_0x57757a);}}_0x1e618c['size']>0x0&&this['_refreshSuggestionsChain'](_0x1e618c);for(const _0x3a346a of _0x35882c)this['fire']('suggestionChanged',_0x3a346a);}),_0x11d0f6['model']['on']('applyOperation',(_0x4cdf33,_0x5a8cab)=>{const _0x49b06c=_0x5a8cab[0x0];if(!this['_suggestions']['size'])return;if(!_0x49b06c['isDocumentOperation'])return;if(_0x49b06c['batch']['isUndo']||!_0x49b06c['batch']['isLocal'])return;let _0x2e95cb,_0x189173;switch(_0x49b06c['type']){case'insert':_0x2e95cb=_0x11d0f6['model']['createPositionAt'](_0x49b06c['position']),_0x189173=_0x2e95cb['getShiftedBy'](_0x49b06c['howMany']);break;case'split':_0x2e95cb=_0x11d0f6['model']['createPositionAt'](_0x49b06c['splitPosition']),_0x189173=_0x11d0f6['model']['createPositionAt'](_0x49b06c['moveTargetPosition']);break;case'move':_0x2e95cb=_0x11d0f6['model']['createPositionAt'](_0x49b06c['targetPosition']),_0x189173=_0x2e95cb['getShiftedBy'](_0x49b06c['howMany']);break;default:return;}const _0x4a04e5=_0x11d0f6['model']['createRange'](_0x2e95cb,_0x189173);_0x11d0f6['model']['change'](()=>{for(const {suggestion:_0x43e24e,meta:_0x82b596}of this['_findSuggestions'](_0x4a04e5)){if(_0x43e24e['isMultiRange'])continue;if('formatInline'==_0x43e24e['type'])continue;const _0x330ef9=this['_getAttributeKey'](_0x43e24e);if(_0x330ef9&&this['_isBlockAttribute'](_0x330ef9)&&'split'!=_0x49b06c['type'])continue;const _0x3a5dc4=_0x43e24e['data']&&_0x43e24e['data']['multipleBlocks'];('formatBlock'!=_0x43e24e['type']||'split'==_0x49b06c['type']&&!_0x3a5dc4)&&(_0x82b596['containsRangeInObject']||'insertion'==_0x43e24e['type']&&_0x82b596['isOwn']||_0x43e24e['getFirstRange']()['containsRange'](_0x4a04e5)&&this['_breakSuggestionMarker'](_0x43e24e,_0x2e95cb,_0x189173));}});},{'priority':'lowest'}),_0x11d0f6['model']['on']('deleteContent',(_0x19f02d,_0x448982)=>{const _0xe816f3=_0x448982[0x0],_0x120181=_0x448982[0x1];if(_0x120181&&_0x120181['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xe816f3['isCollapsed'])return;const _0x9c1df3=_0x11d0f6['model']['schema'],{start:_0x642ec2,end:_0x52ada7}=_0xe816f3['getFirstRange'](),_0x198382=_0x642ec2['nodeAfter']&&_0x9c1df3['isLimit'](_0x642ec2['nodeAfter'])?null:_0x9c1df3['getNearestSelectionRange'](_0x642ec2,'forward'),_0x4525e3=_0x52ada7['nodeBefore']&&_0x9c1df3['isLimit'](_0x52ada7['nodeBefore'])?null:_0x9c1df3['getNearestSelectionRange'](_0x52ada7,'backward'),_0x2d31e0=_0x11d0f6['model']['createRange'](_0x198382?_0x198382['start']:_0x642ec2,_0x4525e3?_0x4525e3['end']:_0x52ada7);_0x11d0f6['model']['change'](_0x3c522e=>{this['markDeletion'](_0x2d31e0);const _0x3b4377=_0x11d0f6['model']['schema']['getNearestSelectionRange'](_0x2d31e0['start']);_0xe816f3['is']('documentSelection')?_0x3c522e['setSelection'](_0x3b4377):_0xe816f3['setTo'](_0x3b4377);}),_0x19f02d['stop']();},{'priority':_0x63ec0['normal']+0xa}),_0x11d0f6['model']['on']('insertContent',(_0x378ac0,_0x2364f2)=>{const _0x18a9c7=_0x2364f2[_0x2364f2['length']-0x1];_0x18a9c7&&_0x18a9c7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x11d0f6['model']['change'](()=>{let _0x1b2706=_0x11d0f6['model']['insertContent'](_0x2364f2[0x0],_0x2364f2[0x1],_0x2364f2[0x2],{'forceDefaultExecution':!0x0});if(!_0x1b2706)return;_0x378ac0['return']=_0x1b2706['clone']();const _0x5b9211=_0x1b2706['end']['nodeBefore'],_0x3f8faa=_0x11d0f6['model']['schema'];_0x5b9211&&_0x3f8faa['isBlock'](_0x5b9211)&&!_0x3f8faa['isObject'](_0x5b9211)&&(_0x1b2706=_0x11d0f6['model']['createRange'](_0x1b2706['start'],_0x11d0f6['model']['createPositionAt'](_0x5b9211,'end'))),this['markInsertion'](_0x1b2706);}),_0x378ac0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x34d046=new O(_0x11d0f6,this['_suggestions']);_0x11d0f6['commands']['add']('acceptSuggestion',_0x34d046),this['enableCommand']('acceptSuggestion');const _0x383165=new R(_0x11d0f6,this['_suggestions']);_0x11d0f6['commands']['add']('discardSuggestion',_0x383165),this['enableCommand']('discardSuggestion'),_0x11d0f6['commands']['add']('acceptAllSuggestions',new x(_0x11d0f6,_0x34d046,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x11d0f6['commands']['add']('discardAllSuggestions',new x(_0x11d0f6,_0x383165,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x11d0f6['commands']['add']('acceptSelectedSuggestions',new E(_0x11d0f6,_0x34d046,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x11d0f6['commands']['add']('discardSelectedSuggestions',new E(_0x11d0f6,_0x383165,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4f1b40=_0x11d0f6['plugins']['get']('CommentsRepository');this['listenTo'](_0x4f1b40,'addComment',(_0x5c026b,{threadId:_0x46d19e})=>{const _0xdfdcf6=this['_suggestions']['get'](_0x46d19e);_0xdfdcf6&&_0xdfdcf6['commentThread']&&0x1===_0xdfdcf6['commentThread']['length']&&this['_updateSuggestionData'](_0x46d19e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4f1b40,'removeComment',(_0x5d7f20,{threadId:_0x25ea61})=>{const _0x162e55=this['_suggestions']['get'](_0x25ea61);_0x162e55&&_0x162e55['commentThread']&&!_0x162e55['commentThread']['length']&&this['_updateSuggestionData'](_0x25ea61,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x39abc0){const _0x5a3a46=_0x266e48([0x4a,0x30,0x32,0x4c,0x39,0x71,0x58,0x6b,0x62,0x74,0x47,0x76,0x78,0x46,0x61,0x42,0x38,0x36,0x33,0x45,0x4b,0x34,0x70,0x73,0x67,0x6c,0x72,0x44,0x77,0x6f,0x6a,0x6d,0x68,0x65,0x64,0x69,0x52,0x56,0x59,0x63,0x49,0x50,0x55,0x7a,0x79,0x57,0x51,0x48,0x66,0x4e,0x54,0x4d,0x37,0x43,0x5a,0x31,0x41,0x6e,0x35,0x75,0x53,0x4f]),_0x49e3b3=0x6f4e4fdd,_0x458e62=0x6f4917ad^_0x49e3b3,_0x5ea51c=window[_0x266e48([0x44,0x61,0x74,0x65])][_0x266e48([0x6e,0x6f,0x77])](),_0x577667=_0x39abc0[_0x266e48([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x125815=new window[(_0x266e48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21e4f3=>{_0x577667[_0x266e48([0x6f,0x6e,0x63,0x65])](_0x266e48([0x72,0x65,0x61,0x64,0x79]),_0x21e4f3);}),_0x46c701={[_0x266e48([0x6b,0x74,0x79])]:_0x266e48([0x45,0x43]),[_0x266e48([0x75,0x73,0x65])]:_0x266e48([0x73,0x69,0x67]),[_0x266e48([0x63,0x72,0x76])]:_0x266e48([0x50,0x2d,0x32,0x35,0x36]),[_0x266e48([0x78])]:_0x266e48([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x266e48([0x79])]:_0x266e48([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x266e48([0x61,0x6c,0x67])]:_0x266e48([0x45,0x53,0x32,0x35,0x36])},_0x5aec2b=_0x577667[_0x266e48([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x266e48([0x67,0x65,0x74])](_0x266e48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d07ef(){let _0x2c1e12,_0x49cbf8=null,_0x2b52cd=null;try{if(_0x5aec2b==_0x266e48([0x47,0x50,0x4c]))return _0x266e48([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c1e12=_0x579ae6(),!_0x2c1e12)return _0x266e48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c1e12[_0x266e48([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b52cd=_0x263fc2(_0x2c1e12[_0x266e48([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c1e12[_0x266e48([0x6a,0x74,0x69])])),await _0x1ca797()?_0x12da80()?_0x33f4e9()?_0x266e48([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5152ab()?(_0x2c1e12[_0x266e48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x266e48([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x49cbf8=_0x213ca1(_0x266e48([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c1e12[_0x266e48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x266e48([0x74,0x72,0x69,0x61,0x6c])&&(_0x49cbf8=_0x213ca1(_0x266e48([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c1e12[_0x266e48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x266e48([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x49cbf8=_0x213ca1(_0x266e48([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4511f3()):_0x266e48([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x266e48([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x266e48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xc53b7c){return _0x266e48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33f4e9(){const _0x21d6fa=[_0x266e48([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x266e48([0x74,0x72,0x69,0x61,0x6c])][_0x266e48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c1e12[_0x266e48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ea51c/0x3e8:0xe10*_0x458e62;return _0x2c1e12[_0x266e48([0x65,0x78,0x70])]<_0x21d6fa;}function _0x12da80(){const _0x1fc1f1=_0x2c1e12[_0x266e48([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1fc1f1)return!0x1;if(_0x1fc1f1[_0x266e48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x266e48([0x2a])))return!0x0;if(_0x1fc1f1[_0x266e48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x266e48([0x54,0x43])))return!0x0;if(_0x1fc1f1[_0x266e48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x266e48([0x52,0x54,0x43]))){if(_0x466e71())return!0x0;if(_0x5f721()||_0x5acc3c())return!0x0;}return!0x1;}function _0x5152ab(){const _0x4328d6=_0x2c1e12[_0x266e48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4328d6||0x0==_0x4328d6[_0x266e48([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3564b4}=new URL(window[_0x266e48([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4328d6[_0x266e48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3564b4))return!0x0;const _0x1927af=_0x3564b4[_0x266e48([0x73,0x70,0x6c,0x69,0x74])](_0x266e48([0x2e]));return _0x4328d6[_0x266e48([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c8e84=>_0x5c8e84[_0x266e48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x266e48([0x2a])))[_0x266e48([0x6d,0x61,0x70])](_0x25c9ce=>_0x25c9ce[_0x266e48([0x73,0x70,0x6c,0x69,0x74])](_0x266e48([0x2e])))[_0x266e48([0x73,0x6f,0x6d,0x65])](_0x2ff077=>_0x1927af[_0x266e48([0x65,0x76,0x65,0x72,0x79])]((_0x316e70,_0x52feec)=>_0x2ff077[_0x52feec]===_0x316e70||_0x2ff077[_0x52feec]===_0x266e48([0x2a])));}function _0x4511f3(){return _0x49cbf8&&_0x2b52cd?new window[(_0x266e48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a7f25,_0x49584d)=>{_0x49cbf8[_0x266e48([0x74,0x68,0x65,0x6e])](_0x4a7f25,_0x49584d),_0x2b52cd[_0x266e48([0x74,0x68,0x65,0x6e])](_0x1e52a4=>{_0x1e52a4!=_0x266e48([0x56,0x61,0x6c,0x69,0x64])&&_0x4a7f25(_0x1e52a4);},_0x49584d);}):_0x49cbf8||_0x2b52cd||_0x266e48([0x56,0x61,0x6c,0x69,0x64]);}}function _0x263fc2(_0x44305f,_0x3be1b7){return new window[(_0x266e48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d5704=>{if(_0x45fe8a())return _0x1d5704(_0x266e48([0x56,0x61,0x6c,0x69,0x64]));_0x17ef79(),_0x577667[_0x266e48([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x266e48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25313e=!0x1;const _0x36935f=_0x38ab32();function _0x491dc8(_0x9892ae){return!!_0x9892ae&&(typeof _0x9892ae===_0x266e48([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9892ae===_0x266e48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9892ae[_0x266e48([0x74,0x68,0x65,0x6e])]===_0x266e48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9892ae[_0x266e48([0x63,0x61,0x74,0x63,0x68])]===_0x266e48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf6c0d3(_0x2c60c6){_0x5c9bdb(_0x2c60c6)[_0x266e48([0x74,0x68,0x65,0x6e])](_0x4f0925=>{if(!_0x4f0925||_0x4f0925[_0x266e48([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x266e48([0x6f,0x6b]))return _0x266e48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12df4b(_0x794502(_0x36935f+_0x3be1b7))!=_0x4f0925[_0x266e48([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x266e48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x266e48([0x56,0x61,0x6c,0x69,0x64]);})[_0x266e48([0x74,0x68,0x65,0x6e])](_0x3d7eae=>(_0x593282(),_0x3d7eae),()=>{const _0x262e5f=_0x2452e4();return null==_0x262e5f?(_0x593282(),_0x266e48([0x56,0x61,0x6c,0x69,0x64])):_0x266e48(_0x5ea51c-_0x262e5f>(0x4b42cbdd^_0x49e3b3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x266e48([0x74,0x68,0x65,0x6e])](_0x1d5704)[_0x266e48([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d5704(_0x266e48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x98f633=0x6f78a15d^_0x49e3b3;function _0x593282(){const _0x40605f=_0x266e48([0x6c,0x6c,0x63,0x74,0x2d])+_0x12df4b(_0x794502(_0x44305f)),_0x3db6a5=_0x1c1ff4(_0x12df4b(window[_0x266e48([0x4d,0x61,0x74,0x68])][_0x266e48([0x63,0x65,0x69,0x6c])](_0x5ea51c/_0x98f633)));window[_0x266e48([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x266e48([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40605f,_0x3db6a5);}function _0x2452e4(){const _0xe3c1be=_0x266e48([0x6c,0x6c,0x63,0x74,0x2d])+_0x12df4b(_0x794502(_0x44305f)),_0x4a3654=window[_0x266e48([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x266e48([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe3c1be);return _0x4a3654?window[_0x266e48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c1ff4(_0x4a3654),0x10)*_0x98f633:null;}function _0x5c9bdb(_0x38219f){return new window[(_0x266e48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4abe60,_0x438299)=>{_0x38219f[_0x266e48([0x74,0x68,0x65,0x6e])](_0x4abe60,_0x438299),window[_0x266e48([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x438299,0x6f4f9b1d^_0x49e3b3);});}}_0x577667[_0x266e48([0x6f,0x6e])](_0x266e48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x106b74,_0x4b6df6)=>{if(_0x4b6df6[0x0]!=_0x44305f)return _0x1d5704(_0x266e48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b6df6[0x1]={..._0x4b6df6[0x1],[_0x266e48([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36935f};},{[_0x266e48([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x266e48([0x68,0x69,0x67,0x68])}),_0x577667[_0x266e48([0x6f,0x6e])](_0x266e48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd69430=>{_0x491dc8(_0xd69430[_0x266e48([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25313e=!0x0,_0xf6c0d3(_0xd69430[_0x266e48([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x266e48([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x266e48([0x6c,0x6f,0x77])}),_0x125815[_0x266e48([0x74,0x68,0x65,0x6e])](()=>{_0x25313e||_0x1d5704(_0x266e48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45fe8a(){return _0x577667[_0x266e48([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x266e48([0x76,0x69,0x65,0x77])][_0x266e48([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x266e48([0x61,0x75,0x74,0x6f]);}function _0x17ef79(){_0x577667[_0x266e48([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x266e48([0x76,0x69,0x65,0x77])][_0x266e48([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x266e48([0x61,0x75,0x74,0x6f]);}}function _0x213ca1(_0x3078d2){const _0x367286=[new window[(_0x266e48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28305b=>setTimeout(_0x28305b,0x6f477111^_0x49e3b3)),_0x125815[_0x266e48([0x74,0x68,0x65,0x6e])](()=>new window[(_0x266e48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3457d3=>{let _0x2f947b=0x0;_0x577667[_0x266e48([0x6d,0x6f,0x64,0x65,0x6c])][_0x266e48([0x6f,0x6e])](_0x266e48([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2970dc,_0x19d5ed)=>{_0x19d5ed[0x0][_0x266e48([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f947b++,_0x2f947b==(0x6f4e4e25^_0x49e3b3)&&(_0x3457d3(),_0x2970dc[_0x266e48([0x6f,0x66,0x66])]());});}))];return window[_0x266e48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x266e48([0x72,0x61,0x63,0x65])](_0x367286)[_0x266e48([0x74,0x68,0x65,0x6e])](()=>_0x3078d2);}async function _0x71c0c4(){await _0x125815,_0x577667[_0x266e48([0x6d,0x6f,0x64,0x65,0x6c])][_0x266e48([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25045e,_0x577667[_0x266e48([0x6d,0x6f,0x64,0x65,0x6c])][_0x266e48([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25045e,_0x577667[_0x266e48([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x266e48([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x466e71(){return _0x25d6ae(_0x266e48([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x154449(_0x266e48([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x266e48([0x73,0x74,0x61,0x74,0x65])]==_0x266e48([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5f721(){return _0x25d6ae(_0x266e48([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x5acc3c(){return _0x25d6ae(_0x266e48([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x442a67(_0x36ad7c){const _0x3cb07f=_0x17b9c3();_0x577667[_0x3cb07f]=_0x266e48([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36ad7c,_0x36ad7c!=_0x266e48([0x56,0x61,0x6c,0x69,0x64])&&_0x71c0c4();}function _0x17b9c3(){const _0x1a148a=window[_0x266e48([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x266e48([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x266e48([0x6e,0x6f,0x77])]())[_0x266e48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x266e48([0x2e]),'');let _0x4aa441=_0x266e48([0x4a]);for(let _0x13cdd6=0x0;_0x13cdd6<_0x1a148a[_0x266e48([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13cdd6+=0x2){let _0x4a57f1=window[_0x266e48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a148a[_0x266e48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13cdd6,_0x13cdd6+0x2));_0x4a57f1>=_0x5a3a46[_0x266e48([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a57f1-=_0x5a3a46[_0x266e48([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4aa441+=_0x5a3a46[_0x4a57f1];}return _0x4aa441;}function _0x579ae6(){const _0x16f139=_0x5aec2b[_0x266e48([0x73,0x70,0x6c,0x69,0x74])](_0x266e48([0x2e]));if(0x3!=_0x16f139[_0x266e48([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31d879(_0x16f139[0x1]);function _0x31d879(_0x496188){const _0x39eaea=_0x37f692(_0x496188);return _0x39eaea&&_0x178dac()?_0x39eaea:null;function _0x178dac(){const _0x52d186=_0x39eaea[_0x266e48([0x6a,0x74,0x69])],_0x5821b1=window[_0x266e48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52d186[_0x266e48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52d186[_0x266e48([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4c03d={..._0x39eaea,[_0x266e48([0x6a,0x74,0x69])]:_0x52d186[_0x266e48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x52d186[_0x266e48([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4c03d[_0x266e48([0x76,0x63])],_0x794502(_0x4c03d)==_0x5821b1;}}}async function _0x1ca797(){let _0x5e6378=!0x0;try{const _0x55e8d8=_0x5aec2b[_0x266e48([0x73,0x70,0x6c,0x69,0x74])](_0x266e48([0x2e])),[_0x19dad2,_0xbeb79a,_0x20a6f2]=_0x55e8d8;return _0x9a0c67(_0x19dad2),await _0x5c309a(_0x19dad2,_0xbeb79a,_0x20a6f2),_0x5e6378;}catch(_0x5a8c2c){return!0x1;}function _0x9a0c67(_0x367597){const _0x2fa309=_0x37f692(_0x367597);_0x2fa309&&_0x2fa309[_0x266e48([0x61,0x6c,0x67])]==_0x266e48([0x45,0x53,0x32,0x35,0x36])||(_0x5e6378=!0x1);}async function _0x5c309a(_0x42f81d,_0x5b2e57,_0x536495){const _0x2c02b7=window[_0x266e48([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x266e48([0x66,0x72,0x6f,0x6d])](_0x2b0949(_0x536495),_0x12f56a=>_0x12f56a[_0x266e48([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35c641=new window[(_0x266e48([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x266e48([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x42f81d+_0x266e48([0x2e])+_0x5b2e57),_0x4155eb=window[_0x266e48([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x266e48([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4155eb)return;const _0x29dea0=await _0x4155eb[_0x266e48([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x266e48([0x6a,0x77,0x6b]),_0x46c701,{[_0x266e48([0x6e,0x61,0x6d,0x65])]:_0x266e48([0x45,0x43,0x44,0x53,0x41]),[_0x266e48([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x266e48([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x266e48([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4155eb[_0x266e48([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x266e48([0x6e,0x61,0x6d,0x65])]:_0x266e48([0x45,0x43,0x44,0x53,0x41]),[_0x266e48([0x68,0x61,0x73,0x68])]:{[_0x266e48([0x6e,0x61,0x6d,0x65])]:_0x266e48([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29dea0,_0x2c02b7,_0x35c641)||(_0x5e6378=!0x1);}}function _0x37f692(_0x5719e6){return _0x5719e6[_0x266e48([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x266e48([0x65,0x79]))?JSON[_0x266e48([0x70,0x61,0x72,0x73,0x65])](_0x2b0949(_0x5719e6)):null;}function _0x2b0949(_0x5e1060){return window[_0x266e48([0x61,0x74,0x6f,0x62])](_0x5e1060[_0x266e48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x266e48([0x2b]))[_0x266e48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x266e48([0x2f])));}function _0x794502(_0x2d5d2e){let _0x3c9d93=0x1505;function _0x51f944(_0x18f08f){for(let _0xd599e8=0x0;_0xd599e8<_0x18f08f[_0x266e48([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd599e8++){const _0x4aaa89=_0x18f08f[_0x266e48([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd599e8);_0x3c9d93=(_0x3c9d93<<0x5)+_0x3c9d93+_0x4aaa89,_0x3c9d93&=_0x3c9d93;}}function _0x313ffb(_0x531d34){Array[_0x266e48([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x531d34)?_0x531d34[_0x266e48([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x313ffb):_0x531d34&&typeof _0x531d34==_0x266e48([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x266e48([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x531d34)[_0x266e48([0x73,0x6f,0x72,0x74])]()[_0x266e48([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44074b,_0x1b6a62])=>{_0x51f944(_0x44074b),_0x313ffb(_0x1b6a62);}):_0x51f944(window[_0x266e48([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x531d34));}return _0x313ffb(_0x2d5d2e),_0x3c9d93>>>0x0;}function _0x12df4b(_0x319527){return _0x319527[_0x266e48([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x266e48([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x266e48([0x30]));}function _0x1c1ff4(_0x1acddd){return _0x1acddd[_0x266e48([0x73,0x70,0x6c,0x69,0x74])]('')[_0x266e48([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x266e48([0x6a,0x6f,0x69,0x6e])]('');}function _0x25d6ae(_0x31a25d){return _0x577667[_0x266e48([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x266e48([0x68,0x61,0x73])](_0x31a25d);}function _0x154449(_0x3adff0){return _0x577667[_0x266e48([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x266e48([0x67,0x65,0x74])](_0x3adff0);}function _0x25045e(){}function _0x266e48(_0x24f128){return _0x24f128['map'](_0x3c82e8=>String['fromCharCode'](_0x3c82e8))['join']('');}_0x442a67(await _0x5d07ef());}(this);}set['adapter'](_0x1db900){if(this['_adapter'])throw new _0x41116f('track-changes-adapter-already-set',this);this['_adapter']=_0x1db900;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1839ca=!0x1,toJSON:_0x12d339=!0x1}={}){const _0x304ecb=[];for(const _0x4f9248 of this['_suggestions']['values']())_0x1839ca&&!_0x4f9248['isInContent']||_0x304ecb['push'](_0x4f9248);return _0x12d339?_0x304ecb['map'](_0x501a9a=>_0x501a9a['toJSON']()):_0x304ecb;}['getSuggestion'](_0x1f0565){const _0x4d68dd=this['_suggestions']['get'](_0x1f0565);if(!_0x4d68dd)throw new _0x41116f('track-changes-suggestion-not-found',this);return _0x4d68dd;}['hasSuggestion'](_0x1afa53){return this['_suggestions']['has'](_0x1afa53);}['addSuggestionData'](_0xe9056f){const {authorId:_0x1c6382,id:_0x114edc,attributes:_0x174b78}=_0xe9056f,[_0x330536,_0x3110c2]=_0xe9056f['type']['split'](':'),_0x4204fb=this['_suggestions']['get'](_0x114edc)||this['_createSuggestion'](_0x330536,_0x3110c2,_0x114edc,_0x1c6382,_0x174b78);if(this['_addThreadToSuggestion'](_0x4204fb),this['_checkSuggestionCorrectness'](_0x4204fb,_0x330536,_0x3110c2||null,_0x1c6382),_0x4204fb['createdAt']=_0xe9056f['createdAt'],_0x4204fb['_isDataLoaded']=!0x0,_0x174b78&&_0x174b78['@external']){const _0x439f4c=_0x174b78['@external'],_0x5574d4=this['_getExternalAuthor'](_0x439f4c['authorName']);_0x4204fb['authoredAt']=_0x439f4c['createdAt'],_0x4204fb['author']=_0x5574d4,_0x4204fb['isExternal']=!0x0;}else _0x4204fb['authoredAt']=_0xe9056f['createdAt'];switch(_0xe9056f['data']&&(_0x4204fb['data']=_0xe9056f['data']),_0xe9056f['attributes']&&(_0x4204fb['attributes']=_0xe9056f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4204fb['_saved']=!0x0),this['_suggestionState']['get'](_0x4204fb)){case'notReady':this['_suggestionState']['set'](_0x4204fb,'dataReady');break;case'markerReady':_0x4204fb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4204fb])),this['_refreshSuggestionsChain'](new Set([_0x4204fb])),this['_suggestionState']['set'](_0x4204fb,'ready'),this['fire']('suggestionLoaded',_0x4204fb)):this['_suggestionState']['set'](_0x4204fb,'removed');}return _0x4204fb;}['acceptSuggestion'](_0x2d0a1b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1c3662 of _0x2d0a1b['getAllAdjacentSuggestions']())_0x1c3662['accept']();});});}['discardSuggestion'](_0x2496d9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x47fcbb of _0x2496d9['getAllAdjacentSuggestions']())_0x47fcbb['discard']();});});}['enableCommand'](_0x4eae79,_0x373b4b){const _0x179c15=this['editor']['commands']['get'](_0x4eae79);if(!_0x179c15)throw new _0x41116f('track-changes-command-not-found',this,{'commandName':_0x4eae79});if(this['_enabledCommands']['has'](_0x179c15))throw new _0x41116f('track-changes-enable-command-twice',this,{'commandName':_0x4eae79});this['_enabledCommands']['add'](_0x179c15),_0x373b4b&&_0x179c15['on']('execute',(_0x1d03ff,_0x4c95b1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4c95b1['length']>0x0&&_0x4c95b1[_0x4c95b1['length']-0x1]&&_0x4c95b1[_0x4c95b1['length']-0x1]['forceDefaultExecution']?_0x4c95b1['pop']():(_0x1d03ff['return']=_0x373b4b((..._0x2adac5)=>_0x179c15['execute'](..._0x2adac5,{'forceDefaultExecution':!0x0}),..._0x4c95b1),_0x1d03ff['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1ffde4){let _0x3fe0c6,_0x4b59ac;const _0x3a9030=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3fe0c6=_0x1ffde4();}catch(_0x46b741){_0x4b59ac=_0x46b741;}return _0x3a9030||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4b59ac&&_0x41116f['rethrowUnexpectedError'](_0x4b59ac,this),_0x3fe0c6;}['markInsertion'](_0x55e83c,_0x1f0034=null,_0x528de4={}){if(_0x55e83c['isCollapsed'])return null;const _0x2c2925=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x31387b,meta:_0x1bb6a9}of this['_findSuggestions'](_0x55e83c,'insertion'))if(_0x1bb6a9['isOwn']){if(!_0x1bb6a9['isNextTo']){if(_0x1bb6a9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x31387b,_0x528de4))continue;return _0x31387b;}if(zt(_0x31387b,_0x528de4))return _0x31387b;this['_breakSuggestionMarker'](_0x31387b,_0x55e83c['start'],_0x55e83c['end']);break;}if(_0x1f0034==_0x31387b['subType']&&zt(_0x31387b,_0x528de4)){const _0x1e97d4=_0x31387b['getFirstRange']();return _0x1e97d4['start']['isEqual'](_0x55e83c['end'])?this['_setSuggestionRange'](_0x31387b,this['_model']['createRange'](_0x55e83c['start'],_0x1e97d4['end'])):this['_setSuggestionRange'](_0x31387b,this['_model']['createRange'](_0x1e97d4['start'],_0x55e83c['end'])),_0x31387b;}}const _0x471181=_0x38ab32(),_0x1a37fb=_0x2c2925['id'],_0xebe192=_0x1f0034?'insertion:'+_0x1f0034:'insertion',_0x5a1a06=this['_setSuggestionData']({'id':_0x471181,'type':_0xebe192,'createdAt':new Date(),'authorId':_0x1a37fb,'attributes':_0x528de4});return this['_addSuggestionMarker'](_0xebe192,_0x471181,_0x1a37fb,_0x55e83c),_0x5a1a06;}['markMultiRangeInsertion'](_0x176220,_0x19758f='multi',_0x29cf6d={}){const _0x3e28a9=this['editor']['plugins']['get']('Users')['me'],_0x552781=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x19758f,'join');for(const _0x36afed of this['getSuggestions']())if(_0x36afed['author']['id']==_0x3e28a9['id']&&'insertion'==_0x36afed['type']&&_0x36afed['subType']==_0x19758f&&zt(_0x36afed,_0x29cf6d)&&(_0x552781(_0x36afed['getRanges'](),_0x176220)||_0x552781(_0x176220,_0x36afed['getRanges']()))){for(const _0x35517a of _0x176220)_0x36afed['addRange'](_0x35517a);return _0x36afed;}for(const {suggestion:_0x4bebe6,meta:_0x2d02ae}of this['_findSuggestions'](_0x176220,'insertion')){if(!_0x2d02ae['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2d02ae['containsRangeInObject'])continue;if(!zt(_0x4bebe6,_0x29cf6d))continue;let _0x3f6bda=!0x0;for(const _0x4c53b0 of _0x4bebe6['getRanges']())for(const _0x55aa43 of _0x176220)if(!_0x4c53b0['containsRange'](_0x55aa43)){_0x3f6bda=!0x1;break;}if(_0x3f6bda)return _0x4bebe6;}const _0x5a7e1d=_0x38ab32(),_0x579a2b=_0x3e28a9['id'],_0x35c59d='insertion:'+_0x19758f,_0x2b1eab=this['_setSuggestionData']({'id':_0x5a7e1d,'type':_0x35c59d,'createdAt':new Date(),'authorId':_0x579a2b,'attributes':_0x29cf6d});for(const _0x57f1f5 of _0x176220)this['_addSuggestionMarker'](_0x35c59d,_0x5a7e1d,_0x579a2b,_0x57f1f5,u['getMultiRangeId']());return _0x2b1eab;}['markInlineFormat'](_0x55d552,_0x225ac8,_0x5929fa=null,_0x28156f={}){if(_0x5929fa=_0x5929fa||Gt(_0x225ac8),_0x55d552['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x37d022=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5929fa,'accept');return this['forceDefaultExecution'](()=>_0x37d022([_0x55d552],_0x225ac8,_0x28156f)),null;}const _0x521c81=this['editor']['plugins']['get']('Users')['me'],_0x2e75e3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x22b6a1,meta:_0x3c72e4}of this['_findSuggestions'](_0x55d552,'insertion'))_0x3c72e4['isOwn']&&!_0x3c72e4['isInsideObject']&&_0x2e75e3['push'](..._0x22b6a1['getRanges']());}const _0x41d344=function(_0x37a0f6,_0x4a58d6){const _0x56344c=[];for(const _0x3ca734 of _0x4a58d6){const _0x319c3f=_0x37a0f6['getIntersection'](_0x3ca734);_0x319c3f&&_0x56344c['push'](_0x319c3f);}return _0x56344c;}(_0x55d552,_0x2e75e3),_0x55d716=function(_0x58a11f,_0xc24ef5){const _0x3b3a19=[_0x58a11f];for(const _0x5249b9 of _0xc24ef5){let _0x8baa6d=0x0;for(;_0x8baa6d<_0x3b3a19['length'];){const _0x14f1d0=_0x3b3a19[_0x8baa6d]['getDifference'](_0x5249b9);_0x3b3a19['splice'](_0x8baa6d,0x1,..._0x14f1d0),_0x8baa6d+=_0x14f1d0['length'];}}return _0x3b3a19;}(_0x55d552,_0x2e75e3);_0x41d344['length']&&this['_model']['change'](()=>{for(const _0x209d04 of _0x41d344){const _0x183355=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5929fa,'accept');this['forceDefaultExecution'](()=>_0x183355([_0x209d04],_0x225ac8,_0x28156f));}});for(const _0x581d0f of _0x55d716){let _0x8e7371=null,_0x2b510d=_0x581d0f['start'],_0x54f19=_0x581d0f['end'];for(const {suggestion:_0x929542,meta:_0x1435d3}of this['_findSuggestions'](_0x581d0f,'formatInline')){if(!_0x1435d3['isOwn'])continue;if(_0x929542['subType']!=_0x5929fa)continue;if(!zt(_0x929542,_0x28156f))continue;const _0x16155=_0x929542['getFirstRange']();if(_0x16155['containsRange'](_0x581d0f,!0x0))return null;_0x2b510d=_0x2b510d['isBefore'](_0x16155['start'])?_0x2b510d:_0x16155['start'],_0x54f19=_0x54f19['isAfter'](_0x16155['end'])?_0x54f19:_0x16155['end'],_0x8e7371?_0x16155['start']['isBefore'](_0x8e7371['getFirstRange']()['start'])?(_0x8e7371['removeMarkers'](),_0x8e7371=_0x929542):_0x929542['removeMarkers']():_0x8e7371=_0x929542;}const _0x3c87e0=this['_model']['createRange'](_0x2b510d,_0x54f19);if(_0x8e7371)this['_setSuggestionRange'](_0x8e7371,_0x3c87e0);else{const _0x1f1ef7=_0x38ab32(),_0xb232a1=_0x521c81['id'];this['_setSuggestionData']({'id':_0x1f1ef7,'type':'formatInline:'+_0x5929fa,'data':_0x225ac8,'createdAt':new Date(),'authorId':_0xb232a1,'attributes':_0x28156f}),this['_addSuggestionMarker']('formatInline:'+_0x5929fa,_0x1f1ef7,_0xb232a1,_0x3c87e0);}}return null;}['markBlockFormat'](_0x163c3c,_0x3575d9,_0x48624d=[],_0x539ef5=null,_0x29dc71={}){_0x3575d9['formatGroupId']||(_0x3575d9['formatGroupId']=_0x3575d9['commandName']),_0x3575d9['multipleBlocks']=_0x163c3c['is']('range'),_0x539ef5=_0x539ef5||Gt(_0x3575d9);const _0x391fd3=_0x48624d['map'](_0x1d4402=>Jt(_0x1d4402,this['_model'])),_0x2cc587=_0x163c3c['is']('range')?_0x163c3c:Jt(_0x163c3c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3d5a37=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x539ef5,'accept');return this['forceDefaultExecution'](()=>_0x3d5a37([_0x2cc587],_0x3575d9,_0x29dc71)),null;}_0x391fd3['push'](_0x2cc587);let _0x66ae33=!0x0;for(const _0x37400d of _0x391fd3)if(!this['_rangeIsInLocalUserInsertion'](_0x37400d)){_0x66ae33=!0x1;break;}if(_0x66ae33&&'always'!==this['_trackFormatChanges']){const _0x3b4db9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x539ef5,'accept');return this['forceDefaultExecution'](()=>_0x3b4db9([_0x2cc587],_0x3575d9,_0x29dc71)),null;}let _0x44b13d=null,_0x2b541e=_0x2cc587['start'],_0x38246e=_0x2cc587['end'];for(const {suggestion:_0x57cda3,meta:_0xb5f2bb}of this['_findSuggestions'](_0x2cc587,'formatBlock')){if(!_0xb5f2bb['isOwn'])continue;if(_0xb5f2bb['isNextTo']||_0xb5f2bb['containsRangeInObject']||_0xb5f2bb['isInsideObject'])continue;if(_0x57cda3['data']['formatGroupId']!=_0x3575d9['formatGroupId'])continue;if(!zt(_0x57cda3,_0x29dc71))continue;const _0x2b34fd=_0x57cda3['getFirstRange']();if(_0x57cda3['subType']==_0x539ef5){if(_0x2b34fd['containsRange'](_0x2cc587,!0x0))return null;_0x2b541e=_0x2b541e['isBefore'](_0x2b34fd['start'])?_0x2b541e:_0x2b34fd['start'],_0x38246e=_0x38246e['isAfter'](_0x2b34fd['end'])?_0x38246e:_0x2b34fd['end'],_0x44b13d?_0x2b34fd['start']['isBefore'](_0x44b13d['getFirstRange']()['start'])?(_0x44b13d['removeMarkers'](),_0x44b13d=_0x57cda3):_0x57cda3['removeMarkers']():_0x44b13d=_0x57cda3;}else{const _0x50f192=_0x2cc587['getIntersection'](_0x2b34fd);this['_cutOutSuggestionMarker'](_0x57cda3,_0x50f192);}}const _0x235a27=this['editor']['plugins']['get']('Users')['me'],_0x1c4621=_0x38ab32(),_0x5bc63f=_0x235a27['id'];if(_0x44b13d)return this['_setSuggestionRange'](_0x44b13d,this['_model']['createRange'](_0x2b541e,_0x38246e)),_0x44b13d;{const _0x13a07=this['_setSuggestionData']({'id':_0x1c4621,'type':'formatBlock:'+_0x539ef5,'data':_0x3575d9,'createdAt':new Date(),'authorId':_0x5bc63f,'attributes':_0x29dc71});return this['_addSuggestionMarker']('formatBlock:'+_0x539ef5,_0x1c4621,_0x5bc63f,this['_model']['createRange'](_0x2b541e,_0x38246e)),_0x13a07;}}['markMultiRangeBlockFormat'](_0x27197b,_0x594756,_0x15a2e6=[],_0x8daaa5=null,_0x4791dc={}){_0x594756['formatGroupId']||(_0x594756['formatGroupId']=_0x594756['commandName']);const _0x3d3963=_0x27197b[0x0];_0x594756['multipleBlocks']=_0x3d3963['is']('range'),_0x8daaa5=_0x8daaa5||Gt(_0x594756);const _0x400e58=_0x15a2e6['map'](_0x2142b0=>Jt(_0x2142b0,this['_model'])),_0x17ed3f=_0x3d3963['is']('range')?_0x27197b:_0x27197b['map'](_0x3bea17=>Jt(_0x3bea17,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2ba8e1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x8daaa5,'accept');return this['forceDefaultExecution'](()=>_0x2ba8e1(_0x17ed3f,_0x594756,_0x4791dc)),null;}_0x400e58['push'](..._0x17ed3f);let _0x23cd6d=!0x0;for(const _0x2dd826 of _0x400e58)if(!this['_rangeIsInLocalUserInsertion'](_0x2dd826)){_0x23cd6d=!0x1;break;}if(_0x23cd6d&&'always'!==this['_trackFormatChanges']){const _0x3b92e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x8daaa5,'accept');return this['forceDefaultExecution'](()=>_0x3b92e7(_0x17ed3f,_0x594756,_0x4791dc)),null;}const _0x4e3d39=this['editor']['plugins']['get']('Users')['me'];for(const _0x25a918 of this['getSuggestions']()){if(_0x25a918['author']['id']!=_0x4e3d39['id'])continue;if('formatBlock'!=_0x25a918['type']||_0x25a918['data']['formatGroupId']!=_0x594756['formatGroupId'])continue;if(!zt(_0x25a918,_0x4791dc))continue;const _0x375d3c=_0x25a918['subType']==_0x8daaa5;for(let _0x111a1b=0x0;_0x111a1b<_0x17ed3f['length'];_0x111a1b++){const _0x28c342=_0x17ed3f[_0x111a1b];for(const _0x5c6f8d of _0x25a918['getMarkers']()){const _0x4d5034=_0x5c6f8d['getRange']();if(_0x28c342['isEqual'](_0x4d5034)){_0x375d3c?(_0x17ed3f['splice'](_0x111a1b,0x1),_0x111a1b--):_0x25a918['removeMarker'](_0x5c6f8d['name']);break;}}}}if(0x0==_0x17ed3f['length'])return null;const _0x1d3658=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x8daaa5,'join');for(const _0x580221 of this['getSuggestions']())if(_0x580221['author']['id']==_0x4e3d39['id']&&'formatBlock'==_0x580221['type']&&_0x580221['data']['formatGroupId']==_0x594756['formatGroupId']&&_0x580221['subType']==_0x8daaa5&&zt(_0x580221,_0x4791dc)&&(_0x1d3658(_0x580221['getRanges'](),_0x17ed3f)||_0x1d3658(_0x17ed3f,_0x580221['getRanges']()))){for(const _0xd63d97 of _0x17ed3f)_0x580221['addRange'](_0xd63d97);return _0x580221;}const _0x1112b0=_0x38ab32(),_0x43f66c=_0x4e3d39['id'],_0x1f52ab='formatBlock:'+_0x8daaa5,_0x5ba8de=this['_setSuggestionData']({'id':_0x1112b0,'type':_0x1f52ab,'data':_0x594756,'createdAt':new Date(),'authorId':_0x43f66c,'attributes':_0x4791dc});for(const _0x352b85 of _0x17ed3f)this['_addSuggestionMarker'](_0x1f52ab,_0x1112b0,_0x43f66c,_0x352b85,u['getMultiRangeId']());return _0x5ba8de;}['markDeletion'](_0x51e51f,_0x30b8bc=null,_0x425feb={}){if(_0x51e51f['isCollapsed'])return null;const _0x31ccae=this['editor']['plugins']['get']('Users')['me'],_0xfbdb8c=new _0x50e55c(_0x51e51f['start'],_0x51e51f['end']);for(const {suggestion:_0xa5a709,meta:_0x60c626}of this['_findSuggestions'](_0xfbdb8c,'insertion'))if(_0x60c626['isOwn']&&!_0x60c626['isNextTo']){if(_0xa5a709['isMultiRange']){const _0x48a7ad=_0xa5a709['getRanges']()['filter'](_0x230c37=>'$graveyard'!=_0x230c37['root']['rootName']);_0x48a7ad['every'](_0x2002ed=>_0xfbdb8c['containsRange'](_0x2002ed,!0x0))&&_0xa5a709['discard']();if(_0x48a7ad['some'](_0xde98ef=>_0xde98ef['containsRange'](_0xfbdb8c,!0x0))){const _0x5cb03e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30b8bc,'accept');return this['forceDefaultExecution'](()=>_0x5cb03e([_0xfbdb8c],null,_0x425feb)),null;}}else{const _0x2338ba=_0xfbdb8c['getIntersection'](_0xa5a709['getFirstRange']());null!==_0x2338ba&&_0xa5a709['_onDiscard']([_0x2338ba],null,_0x425feb);}}if(_0xfbdb8c['detach'](),_0xfbdb8c['isCollapsed']||'$graveyard'==_0xfbdb8c['root']['rootName'])return null;let _0x2ea632=null,_0x32b824=_0xfbdb8c['start'],_0x14df8f=_0xfbdb8c['end'];const _0x40471c=this['_findSuggestions'](_0xfbdb8c,'deletion');for(const {suggestion:_0x21e199,meta:_0x771fa7}of _0x40471c){const _0x36bd15=this['_model']['createRange'](_0x32b824,_0x14df8f);if(_0x771fa7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x771fa7['containsRangeInObject']&&!_0x771fa7['isInsideObject'])){if(_0x21e199['isMultiRange']){if(!zt(_0x21e199,_0x425feb))continue;let _0x5d3b88=!0x0;for(const _0x35404a of _0x21e199['getRanges']()){if(_0x35404a['containsRange'](_0x36bd15,!0x0))return _0x21e199;_0x36bd15['containsRange'](_0x35404a)||(_0x5d3b88=!0x1);}_0x5d3b88&&_0x21e199['discard']();}else{const _0x10a05f=_0x21e199['getFirstRange']();if(_0x10a05f['containsRange'](_0x36bd15,!0x0))return _0x21e199;if(!zt(_0x21e199,_0x425feb)){_0x36bd15['containsRange'](_0x10a05f)?_0x21e199['removeMarkers']():_0x10a05f['containsPosition'](_0x32b824)?_0x32b824=_0x10a05f['end']:_0x10a05f['containsPosition'](_0x14df8f)&&(_0x14df8f=_0x10a05f['start']);continue;}_0x32b824=_0x32b824['isBefore'](_0x10a05f['start'])?_0x32b824:_0x10a05f['start'],_0x14df8f=_0x14df8f['isAfter'](_0x10a05f['end'])?_0x14df8f:_0x10a05f['end'],_0x425feb=Object['assign']({},_0x21e199['attributes']),_0x2ea632?_0x10a05f['start']['isBefore'](_0x2ea632['getFirstRange']()['start'])?(_0x2ea632['removeMarkers'](),_0x2ea632=_0x21e199):_0x21e199['removeMarkers']():_0x2ea632=_0x21e199;}}}if(_0x2ea632)return this['_setSuggestionRange'](_0x2ea632,this['_model']['createRange'](_0x32b824,_0x14df8f)),_0x2ea632;{const _0x5c2afc=_0x38ab32(),_0x1bbbbb=this['_model']['createRange'](_0x32b824,_0x14df8f),_0x32e639=_0x31ccae['id'],_0x209b17=_0x30b8bc?'deletion:'+_0x30b8bc:'deletion',_0x3c57f7=this['_setSuggestionData']({'id':_0x5c2afc,'type':_0x209b17,'createdAt':new Date(),'authorId':_0x32e639,'attributes':_0x425feb});return this['_addSuggestionMarker'](_0x209b17,_0x5c2afc,_0x32e639,_0x1bbbbb),_0x3c57f7;}}['markMultiRangeDeletion'](_0x3d5821,_0x360a03='multi',_0x13978f={}){const _0x4d89d6=this['editor']['plugins']['get']('Users')['me'],_0x5c0bcf=_0x3d5821['map'](_0x37765b=>new _0x50e55c(_0x37765b['start'],_0x37765b['end'])),_0x5ae5da=new Set();for(const {suggestion:_0x25acd3,meta:_0x1ace04}of this['_findSuggestions'](_0x5c0bcf,'insertion'))_0x1ace04['isOwn']&&!_0x1ace04['isNextTo']&&_0x5ae5da['add'](_0x25acd3);for(const _0x1a7174 of _0x5ae5da)if(_0x1a7174['isMultiRange']){const _0x1e1d4d=_0x1a7174['getRanges']();(!_0x1a7174['attributes']||!_0x1a7174['attributes']['skipNestingCheck'])&&(_0x1e1d4d['every'](_0x435bfb=>_0x5c0bcf['some'](_0x545123=>_0x545123['containsRange'](_0x435bfb,!0x0)))&&_0x1a7174['discard']());if(_0x5c0bcf['every'](_0x28eed9=>_0x1e1d4d['some'](_0x2ca1b7=>_0x2ca1b7['containsRange'](_0x28eed9,!0x0)))){const _0x4fa057=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x360a03,'accept');return this['forceDefaultExecution'](()=>_0x4fa057(_0x3d5821,null,_0x13978f)),null;}}else{const _0xbb1e48=_0x1a7174['getFirstRange']();_0x5c0bcf['some'](_0x449713=>_0x449713['containsRange'](_0xbb1e48,!0x0))&&_0x1a7174['discard']();if(_0x5c0bcf['every'](_0x53c6c8=>_0xbb1e48['containsRange'](_0x53c6c8,!0x0))){const _0x5b0d52=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x360a03,'accept');return this['forceDefaultExecution'](()=>_0x5b0d52(_0x5c0bcf,null,_0x13978f)),null;}}const _0x17a26e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x360a03,'join');let _0xfda843=null;for(const _0x3b4f3a of this['getSuggestions']())if(_0x3b4f3a['author']['id']==_0x4d89d6['id']&&_0x3b4f3a['isInContent']&&'deletion'==_0x3b4f3a['type']&&_0x3b4f3a['subType']==_0x360a03&&zt(_0x3b4f3a,_0x13978f)&&(_0x17a26e(_0x3b4f3a['getRanges'](),_0x5c0bcf)||_0x17a26e(_0x5c0bcf,_0x3b4f3a['getRanges']()))){if(_0xfda843){if(_0x3b4f3a['commentThread']&&_0x3b4f3a['commentThread']['length'])continue;for(const _0x55f0c4 of _0x3b4f3a['getRanges']())_0xfda843['isIntersectingWithRange'](_0x55f0c4)||_0xfda843['addRange'](_0x55f0c4);_0x3b4f3a['removeMarkers']();}else{_0xfda843=_0x3b4f3a;for(const _0x5a8c05 of _0x5c0bcf)_0x3b4f3a['isIntersectingWithRange'](_0x5a8c05)||_0x3b4f3a['addRange'](_0x5a8c05);}}if(_0xfda843)return _0xfda843;_0x5ae5da['clear']();for(const {suggestion:_0x58a692,meta:_0x208136}of this['_findSuggestions'](_0x5c0bcf,'deletion'))_0x208136['isOwn']&&(this['_mergeNestedSuggestions']||!_0x208136['containsRangeInObject']&&!_0x208136['isInsideObject'])&&zt(_0x58a692,_0x13978f)&&_0x5ae5da['add'](_0x58a692);for(const _0x2e40b0 of _0x5ae5da){const _0x4720eb=_0x2e40b0['getRanges']();if(!_0x13978f||!_0x13978f['skipNestingCheck']){if(_0x5c0bcf['every'](_0x49fbe9=>_0x4720eb['some'](_0x50aa3f=>_0x50aa3f['containsRange'](_0x49fbe9,!0x0))))return _0x2e40b0;}(!_0x2e40b0['attributes']||!_0x2e40b0['attributes']['skipNestingCheck'])&&(_0x4720eb['every'](_0xcc73dc=>_0x5c0bcf['some'](_0x55b450=>_0x55b450['containsRange'](_0xcc73dc,!0x0)))&&_0x2e40b0['discard']());}const _0x58d7d8=_0x38ab32(),_0xa30264=_0x4d89d6['id'],_0xe629f6='deletion:'+_0x360a03,_0x14c1cf=this['_setSuggestionData']({'id':_0x58d7d8,'type':_0xe629f6,'createdAt':new Date(),'authorId':_0xa30264,'attributes':_0x13978f});for(const _0x55c795 of _0x5c0bcf)_0x55c795['detach'](),_0x55c795['isCollapsed']||'$graveyard'==_0x55c795['root']['rootName']||this['_addSuggestionMarker'](_0xe629f6,_0x58d7d8,_0xa30264,_0x55c795,u['getMultiRangeId']());return _0x14c1cf;}['markAttributeChange'](_0x5a55ad,_0x24fa4a,_0x30c605,_0x39b619,_0x3ad86f){if(_0x5a55ad['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x19368c=this['editor']['plugins']['get']('Users')['me']['id'],_0x59de34=Array['from'](this['_suggestions']['values']())['filter'](_0x9f7ace=>'attribute'==_0x9f7ace['type']&&_0x9f7ace['data']['key']==_0x24fa4a&&_0x9f7ace['isIntersectingWithRange'](_0x5a55ad));if('default'===this['_trackFormatChanges']){const _0x1499a4=this['_findSuggestions'](_0x5a55ad,'insertion')['filter'](({meta:_0x1b064f})=>_0x1b064f['isOwn']&&!_0x1b064f['isInsideObject']&&!_0x1b064f['isNextTo'])['map'](({suggestion:_0x548256})=>_0x548256);_0x59de34['unshift'](..._0x1499a4);}const _0x1a8ead=new Map([[_0x5a55ad,_0x30c605]]);for(const _0x1aca30 of _0x59de34){const _0x23f0bc='attribute'==_0x1aca30['type']?_0x1aca30['data']['oldValue']:void 0x0,_0x2cf727=_0x1aca30['getFirstRange'](),_0x282cb1=Array['from'](_0x1a8ead['keys']())['find'](_0x3ab03c=>_0x3ab03c['isIntersecting'](_0x2cf727));if(!_0x282cb1)continue;const _0x41b297=_0x282cb1['getDifference'](_0x2cf727);this['_isBlockAttribute'](_0x24fa4a)&&'insertion'==_0x1aca30['type']&&0x0!=_0x41b297['length']||(_0x1a8ead['delete'](_0x282cb1),_0x41b297['forEach'](_0x2c9ffc=>{_0x1a8ead['set'](_0x2c9ffc,_0x30c605);}),'insertion'!=_0x1aca30['type']&&_0x23f0bc!=_0x39b619&&_0x1a8ead['set'](_0x282cb1['getIntersection'](_0x2cf727),_0x23f0bc));}const _0x4cef33=[];for(const [_0x249be6,_0xe6999c]of _0x1a8ead){const _0x3c8f82=_0x38ab32(),_0x10b414={'key':_0x24fa4a,'oldValue':_0xe6999c,'newValue':_0x39b619};_0x24fa4a['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':_0x24fa4a});const _0x582fe5=('attribute:'+(_0x24fa4a+'|'+Gt({'newValue':_0x39b619})))['substring'](0x0,0x3c),_0x22f528=this['_setSuggestionData']({'id':_0x3c8f82,'type':_0x582fe5,'data':_0x10b414,'createdAt':new Date(),'authorId':_0x19368c,'attributes':_0x3ad86f});_0x4cef33['push'](_0x22f528),this['_addSuggestionMarker'](_0x582fe5,_0x3c8f82,_0x19368c,_0x249be6);}return _0x4cef33;}['enableDefaultAttributesIntegration'](_0x232850){this['enableCommand'](_0x232850,(_0x16209f,..._0x5f019c)=>{this['_recordAttributeChanges'](()=>{_0x16209f(..._0x5f019c);});});}['registerBlockAttribute'](_0x9be824){this['_blockAttributeKeys']['add'](_0x9be824);}['registerInlineAttribute'](_0x56d1fd){this['_inlineAttributeKeys']['add'](_0x56d1fd);}['_getAttributeKey'](_0x20fa5d){return'attribute'==_0x20fa5d['type']?_0x20fa5d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x41d1d7,_0x590c90){const _0x442d9a=_0x41d1d7['getFirstMarker']();this['_model']['change'](_0x16ff1d=>{_0x16ff1d['updateMarker'](_0x442d9a,{'range':_0x590c90});});}['_addThreadToSuggestion'](_0x1299d5){const _0x140da4=_0x1299d5['id'],_0x4d0d46=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x140da4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4d0d46,'threadId':_0x140da4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xe731d3=this['_commentsRepository']['getCommentThread'](_0x140da4);_0xe731d3['unbind']('isRemovable'),_0xe731d3['isRemovable']=!0x1,_0x1299d5['commentThread']=_0xe731d3;}['_checkSuggestionCorrectness'](_0x22f020,_0x4a6b84,_0x1c8cec,_0x187395){if(_0x22f020['type']!=_0x4a6b84||_0x22f020['subType']!=_0x1c8cec||_0x22f020['creator']['id']!=_0x187395)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x41116f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x59ef8e,_0x4eb636){const _0x27d0ac=_0x59ef8e['getFirstRange']();if(_0x4eb636['isEqual'](_0x27d0ac))_0x59ef8e['removeMarkers']();else{if(_0x27d0ac['containsRange'](_0x4eb636)){const _0x33fb1e=this['_model']['createPositionAt'](_0x4eb636['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59ef8e,this['_model']['createRange'](_0x27d0ac['start'],_0x33fb1e));const _0x30bbab=_0x38ab32(),_0x41aaed=_0x59ef8e['creator']['id'],_0x1bc607=_0x59ef8e['type']+':'+_0x59ef8e['subType'];this['_setSuggestionData']({'id':_0x30bbab,'type':_0x1bc607,'createdAt':new Date(),'authorId':_0x41aaed,'data':_0x59ef8e['data'],'attributes':_0x59ef8e['attributes']});const _0x2fd7b4=this['_model']['createPositionAt'](_0x4eb636['end']['parent'],'after'),_0x12d51a=this['_model']['createRange'](_0x2fd7b4,_0x27d0ac['end']);this['_addSuggestionMarker'](_0x1bc607,_0x30bbab,_0x41aaed,_0x12d51a);}else{if(_0x27d0ac['containsPosition'](_0x4eb636['start'])){const _0x509692=this['_model']['createPositionAt'](_0x4eb636['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59ef8e,this['_model']['createRange'](_0x27d0ac['start'],_0x509692));}else{const _0x274829=this['_model']['createPositionAt'](_0x4eb636['end']['parent'],'after');this['_setSuggestionRange'](_0x59ef8e,this['_model']['createRange'](_0x274829,_0x27d0ac['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5a6111){for(const {suggestion:_0x260532,meta:_0x1cf7a9}of this['_findSuggestions'](_0x5a6111,'insertion')){if(!_0x1cf7a9['isOwn'])continue;const _0x33876c=_0x260532['getRanges']();for(const _0xa49640 of _0x33876c)if(!_0x5a6111['getDifference'](_0xa49640)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x524480){const _0x10ed29=this['editor']['plugins']['get']('Users')['getUser'](_0x524480);if(!_0x10ed29)throw new _0x41116f('track-changes-user-not-found',this);return _0x10ed29;}['_getExternalAuthor'](_0xc29ea7){const _0x565572=this['editor']['plugins']['get']('Users'),_0x5f2a7b=_0x206d04('external:'+_0xc29ea7),_0x17457d=_0x565572['getUser'](_0x5f2a7b);return _0x17457d||_0x565572['addUser']({'id':_0x5f2a7b,'name':_0xc29ea7});}['_createSuggestion'](_0x1db76d,_0x359308,_0x5c9168,_0x4e086e,_0x53f1d6){const _0x32685f=this['_getAuthorFromId'](_0x4e086e),_0x59f044=this['_suggestionFactory']['buildSuggestion'](_0x1db76d,_0x359308,_0x5c9168,_0x32685f,_0x53f1d6,_0xa483f1=>{this['_updateSuggestionData'](_0x5c9168,{'attributes':_0xa483f1});const _0x4470a1=this['getSuggestion'](_0x5c9168);this['_joinWithAdjacentSuggestions'](new Set([_0x4470a1])),this['_refreshSuggestionsChain'](new Set([_0x4470a1]));});return this['listenTo'](_0x59f044,'accept',()=>{this['_updateSuggestionData'](_0x5c9168,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x59f044,'discard',()=>{this['_updateSuggestionData'](_0x5c9168,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5c9168,_0x59f044),this['_suggestionState']['set'](_0x59f044,'notReady'),_0x59f044;}['_splitMarkerName'](_0x1e1f1a){const _0x25d18b=_0x1e1f1a['split'](':');return{'group':_0x25d18b[0x0],'type':_0x25d18b[0x1],'subType':_0x25d18b['length']>=0x5?_0x25d18b[0x2]:null,'id':_0x25d18b['length']<0x5?_0x25d18b[0x2]:_0x25d18b[0x3],'authorId':_0x25d18b['length']<0x5?_0x25d18b[0x3]:_0x25d18b[0x4],'markerCount':0x6==_0x25d18b['length']?_0x25d18b[0x5]:null};}['_breakSuggestionMarker'](_0x280f5a,_0x22394a,_0x1e1095){const _0x10d7d5=_0x280f5a['getFirstRange'](),_0x21ecd8=_0x10d7d5['start'],_0x45efc7=_0x10d7d5['end'];this['_setSuggestionRange'](_0x280f5a,this['_model']['createRange'](_0x21ecd8,_0x22394a));const _0x2b2c32=_0x38ab32(),_0x32abfb=_0x280f5a['creator']['id'],_0x41d6db=_0x280f5a['type']+(_0x280f5a['subType']?':'+_0x280f5a['subType']:'');this['_setSuggestionData']({'id':_0x2b2c32,'type':_0x41d6db,'createdAt':new Date(),'authorId':_0x32abfb,'originalSuggestionId':_0x280f5a['id'],'attributes':_0x280f5a['attributes'],'data':_0x280f5a['data']});const _0x4da283=this['_getAttributeKey'](_0x280f5a);('formatBlock'==_0x280f5a['type']||_0x4da283&&this['_isBlockAttribute'](_0x4da283))&&(_0x1e1095=this['_model']['createPositionBefore'](_0x1e1095['parent'])),this['_addSuggestionMarker'](_0x41d6db,_0x2b2c32,_0x32abfb,this['_model']['createRange'](_0x1e1095,_0x45efc7));}['_findSuggestions'](_0x529f54,_0x338eac=null){const _0x57358c=[],_0xfb7c10=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x529f54)||(_0x529f54=[_0x529f54]);for(const _0x29addf of this['getSuggestions']()){if(!_0x29addf['isInContent'])continue;if(_0x338eac&&_0x29addf['type']!=_0x338eac)continue;let _0x1ddf7e=!0x1;for(const _0x1a32a4 of _0x29addf['getRanges']()){for(const _0x4b7a40 of _0x529f54){const _0x39635d=_0x4b7a40['start']['isEqual'](_0x1a32a4['end'])||_0x4b7a40['end']['isEqual'](_0x1a32a4['start']);if(_0x39635d||_0x4b7a40['getIntersection'](_0x1a32a4)){const _0x721e9f=_0x4b7a40['containsRange'](_0x1a32a4)&&Ut(this['_model']['schema'],_0x1a32a4['start'],_0x4b7a40),_0x4d59a7=_0x1a32a4['containsRange'](_0x4b7a40)&&Ut(this['_model']['schema'],_0x4b7a40['start'],_0x1a32a4);_0x57358c['push']({'suggestion':_0x29addf,'meta':{'isOwn':_0xfb7c10==_0x29addf['author'],'isNextTo':_0x39635d,'isInsideObject':_0x721e9f,'containsRangeInObject':_0x4d59a7}}),_0x1ddf7e=!0x0;break;}}if(_0x1ddf7e)break;}}return _0x57358c;}['_addSuggestionMarker'](_0x2a69d4,_0x5563e6,_0x4bd0c4,_0x1d4cc6,_0x45ab40){this['_model']['change'](_0x5219cf=>{let _0x46ec2c='suggestion:'+_0x2a69d4+':'+_0x5563e6+':'+_0x4bd0c4;_0x45ab40&&(_0x46ec2c=_0x46ec2c+':'+_0x45ab40),_0x5219cf['addMarker'](_0x46ec2c,{'range':_0x1d4cc6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3795d7){const _0x4c5715=_0x3795d7['previous'],_0x120d83=_0x3795d7['next'];_0x3795d7['previous']=null,_0x3795d7['next']=null,null!=_0x4c5715&&_0x4c5715['next']==_0x3795d7&&(_0x4c5715['next']=_0x120d83),null!=_0x120d83&&_0x120d83['previous']==_0x3795d7&&(_0x120d83['previous']=_0x4c5715),'ready'==this['_suggestionState']['get'](_0x3795d7)&&(this['_suggestionState']['set'](_0x3795d7,'removed'),this['fire']('suggestionUnloaded',_0x3795d7,_0x4c5715,_0x120d83));}['_setSuggestionData'](_0x1a9cc7){const _0x547fcb=_0x1a9cc7['id'],_0x44fb4b=this['addSuggestionData'](_0x1a9cc7);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x362631=this['editor']['plugins']['get']('PendingActions'),_0x56e595=_0x44fb4b['hasComments'],_0x5da4f0=_0x44fb4b['subType']?_0x44fb4b['type']+':'+_0x44fb4b['subType']:_0x44fb4b['type'],_0x3b6890=this['editor']['locale'],_0x2c57a9=_0x362631['add'](o(_0x3b6890,'PENDING_ACTION_SUGGESTION')),_0x2ddbae={'id':_0x547fcb,'type':_0x5da4f0,'hasComments':_0x56e595,'data':_0x1a9cc7['data']||null,'originalSuggestionId':_0x1a9cc7['originalSuggestionId']||null,'attributes':_0x44fb4b['attributes']};this['_adapter']['addSuggestion'](_0x2ddbae)['then'](_0x5ac558=>{_0x44fb4b['_saved']=!0x0,_0x362631['remove'](_0x2c57a9),_0x5ac558&&_0x5ac558['createdAt']&&(this['_suggestions']['get'](_0x547fcb)['createdAt']=_0x5ac558['createdAt']);})['catch'](_0x2cc52=>{throw _0x3a41b4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x44fb4b['discard']();}),_0x44fb4b['stopListening'](),this['_suggestions']['delete'](_0x44fb4b['id']),this['_suggestionState']['delete'](_0x44fb4b),_0x2cc52;});}return _0x44fb4b;}['_isBlockAttribute'](_0x102576){return this['_blockAttributeKeys']['has'](_0x102576);}['_updateSuggestionData'](_0x170f5b,_0x297a55){const _0x3a480a=this['editor']['plugins']['get']('PendingActions'),_0x22396c=this['getSuggestion'](_0x170f5b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x22396c['_saved']){const _0xdc6b12=_0x3a480a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x170f5b,_0x297a55)['then'](()=>{_0x3a480a['remove'](_0xdc6b12);});}else _0x22396c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x170f5b,_0x297a55);});}}['_getSuggestionData'](_0x1ec114){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x41116f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1ec114);}['_handleNewSuggestionMarker'](_0x5c25b5){const {id:_0x18810d,type:_0x51350a,subType:_0x21a14c,authorId:_0x2095c1}=this['_splitMarkerName'](_0x5c25b5),_0x231d94=this['_suggestions']['get'](_0x18810d)||this['_createSuggestion'](_0x51350a,_0x21a14c,_0x18810d,_0x2095c1,{});switch(this['_checkSuggestionCorrectness'](_0x231d94,_0x51350a,_0x21a14c,_0x2095c1),this['_suggestionState']['get'](_0x231d94)){case'notReady':this['_getSuggestionData'](_0x18810d)['then'](_0x1f5e9f=>{let _0x227adb=Promise['resolve']();_0x1f5e9f['hasComments']&&(_0x227adb=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x18810d})),_0x227adb['then'](()=>{this['addSuggestionData'](_0x1f5e9f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x231d94,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x18810d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x231d94,'ready'),this['fire']('suggestionLoaded',_0x231d94);break;case'ready':this['fire']('suggestionChanged',_0x231d94);}return _0x231d94['addMarkerName'](_0x5c25b5),_0x231d94;}['_refreshSuggestionsChain'](_0x2e0901){const _0x3cc1b0=Array['from'](_0x2e0901),_0x52a78a=_0x3cc1b0['filter'](_0x38e6ad=>'attribute'==_0x38e6ad['type']);this['_refreshAttributeSuggestionsChain'](_0x52a78a);const _0x1ba83e=_0x3cc1b0['filter'](_0x11a86d=>!_0x11a86d['isMultiRange']&&'attribute'!=_0x11a86d['type']),_0x3d7040=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ec292=>!_0x5ec292['isMultiRange']&&'attribute'!=_0x5ec292['type']),_0x49a4bf=_0x3d7040['filter'](_0x370568=>!_0x2e0901['has'](_0x370568)),_0x2bf079=new Map(_0x3d7040['map'](_0x324129=>[_0x324129,this['_suggestionFactory']['getSuggestionCallback'](_0x324129['type'],_0x324129['subType'],'chain')])),_0x54de8d=new Map(_0x3d7040['map'](_0xb6e2c6=>[_0xb6e2c6,_0xb6e2c6['getFirstRange']()])),_0x4ef6d5=new Set(),_0x8a042b=new Set();for(let _0x3086fa=0x0;_0x3086fa<_0x1ba83e['length'];_0x3086fa++)_0x5e9097(_0x1ba83e[_0x3086fa],_0x1ba83e,_0x3086fa+0x1);for(let _0x2de099=0x0;_0x2de099<_0x1ba83e['length'];_0x2de099++)_0x5e9097(_0x1ba83e[_0x2de099],_0x49a4bf,0x0);const _0x1d7851=new Set();for(let _0x1b4cc2=0x0;_0x1b4cc2<_0x1ba83e['length'];_0x1b4cc2++){const _0x33362e=_0x1ba83e[_0x1b4cc2];!_0x8a042b['has'](_0x33362e)&&_0x33362e['previous']&&(_0x1d7851['add'](_0x33362e['previous']),_0x33362e['previous']['next']===_0x33362e&&(_0x33362e['previous']['next']=null),_0x33362e['previous']=null),!_0x4ef6d5['has'](_0x33362e)&&_0x33362e['next']&&(_0x1d7851['add'](_0x33362e['next']),_0x33362e['next']['previous']===_0x33362e&&(_0x33362e['next']['previous']=null),_0x33362e['next']=null);}function _0x5e9097(_0x11693c,_0x8c1b1b,_0x1e5163){for(let _0x127d44=_0x1e5163;_0x127d44<_0x8c1b1b['length'];_0x127d44++){const _0x27f6a1=_0xfc0ec6(_0x11693c,_0x8c1b1b[_0x127d44]);_0x27f6a1&&(_0x27f6a1[0x0]['next']=_0x27f6a1[0x1],_0x27f6a1[0x1]['previous']=_0x27f6a1[0x0],_0x4ef6d5['add'](_0x27f6a1[0x0]),_0x8a042b['add'](_0x27f6a1[0x1]));}}function _0xfc0ec6(_0x29754f,_0x162ebf){if(_0x29754f['author']['id']!==_0x162ebf['author']['id'])return null;const _0x162d79=_0x2bf079['get'](_0x29754f)(_0x29754f,_0x162ebf,_0x54de8d['get'](_0x29754f),_0x54de8d['get'](_0x162ebf));if(!_0x162d79)return null;return _0x2bf079['get'](_0x162ebf)(_0x29754f,_0x162ebf,_0x54de8d['get'](_0x29754f),_0x54de8d['get'](_0x162ebf))?_0x162d79[0x1]['commentThread']&&_0x162d79[0x1]['commentThread']['length']?null:_0x162d79:null;}_0x1d7851['size']&&this['_refreshSuggestionsChain'](_0x1d7851);}['_refreshAttributeSuggestionsChain'](_0x4b1538){if(0x0==_0x4b1538['length'])return;const _0x207810=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a3e1f=>'attribute'==_0x5a3e1f['type']&&_0x5a3e1f['_isDataLoaded']),_0x4dee95=[],_0x1b2405=new Map();for(const _0x507978 of _0x207810){const _0x476724=_0x206d04(_0x507978['attributes']);_0x1b2405['has'](_0x476724)||(_0x1b2405['set'](_0x476724,_0x4dee95['length']),_0x4dee95['push']([]));const _0x5a7466=_0x1b2405['get'](_0x476724);_0x4dee95[_0x5a7466]['push'](_0x507978);}!(function(){_0x4dee95['sort']((_0x383404,_0x4b4b18)=>{const _0x5eedb6=_0x383404[0x0]['createdAt'],_0x57ff57=_0x4b4b18[0x0]['createdAt'];return _0x5eedb6==_0x57ff57?_0x383404[0x0]['attributes']['groupId']<_0x4b4b18[0x0]['attributes']['groupId']?-0x1:0x1:_0x5eedb6<_0x57ff57?-0x1:0x1;});for(const _0x570746 of _0x4dee95)_0x570746['sort']((_0x192ca7,_0x4a0622)=>_0x192ca7['id']<_0x4a0622['id']?-0x1:0x1);}());for(let _0x57249e=0x0;_0x57249e<_0x4dee95['length'];_0x57249e++){if(0x0==_0x4dee95[_0x57249e]['length'])continue;const _0x1560f4=[];for(let _0xaa2ce4=_0x57249e+0x1;_0xaa2ce4<_0x4dee95['length'];_0xaa2ce4++)0x0!=_0x4dee95[_0xaa2ce4]['length']&&_0x1dc1e6(_0x4dee95[_0x57249e],_0x4dee95[_0xaa2ce4])&&_0x1560f4['push'](_0xaa2ce4);for(const _0x573f73 of _0x1560f4)_0x4dee95[_0x57249e]=_0x4dee95[_0x57249e]['concat'](_0x4dee95[_0x573f73]),_0x4dee95[_0x573f73]=[];}for(const _0x1206a1 of _0x4dee95)for(let _0xc17329=0x0;_0xc17329<_0x1206a1['length'];_0xc17329++){const _0x4e47f8=_0x1206a1[_0xc17329+0x1]||null;_0x1206a1[_0xc17329]['next']!==_0x4e47f8&&(_0x1206a1[_0xc17329]['next']=_0x4e47f8);}for(const _0x1d03a4 of _0x4dee95)for(let _0x3bd914=0x0;_0x3bd914<_0x1d03a4['length'];_0x3bd914++){const _0x345b25=_0x1d03a4[_0x3bd914-0x1]||null;_0x1d03a4[_0x3bd914]['previous']!==_0x345b25&&(_0x1d03a4[_0x3bd914]['previous']=_0x345b25);}function _0x1dc1e6(_0x59a295,_0x232054){if(_0x59a295[0x0]['attributes']['groupId']!==_0x232054[0x0]['attributes']['groupId']&&_0x59a295[0x0]['author']!==_0x232054[0x0]['author'])return!0x1;if(!function(_0x5a6866,_0x4a23f2){if(!_0x5a6866['hasComments']&&!_0x4a23f2['hasComments'])return!0x0;if(_0x5a6866['hasComments']&&_0x4a23f2['hasComments'])return!0x1;if(_0x5a6866['hasComments']&&_0x4a23f2['createdAt']<_0x5a6866['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4a23f2['hasComments']&&_0x5a6866['createdAt']<_0x4a23f2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x59a295[0x0],_0x232054[0x0]))return!0x1;const _0x14f55b=xt(_0x59a295[0x0]['attributes'],'groupId'),_0x3dfdac=xt(_0x232054[0x0]['attributes'],'groupId');if(!_0xcd39ea(_0x14f55b,_0x3dfdac))return!0x1;return!!_0x59a295['every'](_0x1af224=>_0x232054['some'](_0x535bae=>_0x1af224['getFirstRange']()['isEqual'](_0x535bae['getFirstRange']())))&&_0x232054['every'](_0x2fe90f=>_0x59a295['some'](_0x5d1203=>_0x2fe90f['getFirstRange']()['isEqual'](_0x5d1203['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x103acf){const _0x4686be=Array['from'](_0x103acf),_0x1f02ce=this['getSuggestions']({'skipNotAttached':!0x0}),_0x428088=_0x1f02ce['filter'](_0x5ad19e=>!_0x103acf['has'](_0x5ad19e)),_0xf46fd=new Map(_0x4686be['map'](_0x3db826=>[_0x3db826,this['_suggestionFactory']['getSuggestionCallback'](_0x3db826['type'],_0x3db826['subType'],'join')])),_0x20d9c0=new Map(_0x1f02ce['map'](_0x32f7cf=>[_0x32f7cf,_0x32f7cf['getRanges']()]));for(let _0x359133=0x0;_0x359133<_0x4686be['length'];_0x359133++){if(_0x35f17b(this,_0x4686be[_0x359133],_0x4686be,_0x359133+0x1))return!0x0;}for(let _0x80339=0x0;_0x80339<_0x4686be['length'];_0x80339++){if(_0x35f17b(this,_0x4686be[_0x80339],_0x428088,0x0))return!0x0;}return!0x1;function _0x35f17b(_0x5ee38a,_0x3362db,_0x583b05,_0x857187){for(let _0x57d2b7=_0x857187;_0x57d2b7<_0x583b05['length'];_0x57d2b7++){const _0x1149d0=_0x583b05[_0x57d2b7];if(_0x1149d0['type']!==_0x3362db['type']||_0x1149d0['author']['id']!==_0x3362db['author']['id']||_0x1149d0['subType']!==_0x3362db['subType'])continue;if(!qt(_0x3362db,_0x1149d0))continue;if('attribute'==_0x3362db['type']&&_0x3362db['data']['oldValue']!=_0x1149d0['data']['oldValue'])continue;if('attribute'==_0x3362db['type']&&_0x5ee38a['_isBlockAttribute'](_0x3362db['data']['key']))continue;if('formatBlock'==_0x3362db['type']){const _0x1ea0c7=_0x5ee38a['editor']['model'],_0x1fa045=_0x3362db['getContainedElement']();if(_0x1fa045&&(_0x1ea0c7['schema']['isObject'](_0x1fa045)||_0x1ea0c7['schema']['isLimit'](_0x1fa045)))continue;}const _0x5213eb=_0xf46fd['get'](_0x3362db),_0x4a14eb=_0x20d9c0['get'](_0x3362db),_0x2ef8d5=_0x20d9c0['get'](_0x1149d0),_0x438187=_0x3362db['commentThread']&&_0x3362db['commentThread']['length'],_0x406bca=_0x1149d0['commentThread']&&_0x1149d0['commentThread']['length'];if(!_0x438187&&_0x5213eb(_0x2ef8d5,_0x4a14eb))return _0x5ee38a['_joinSuggestions'](_0x1149d0,_0x3362db),_0x20d9c0['delete'](_0x3362db),!0x0;if(!_0x406bca&&_0x5213eb(_0x4a14eb,_0x2ef8d5))return _0x5ee38a['_joinSuggestions'](_0x3362db,_0x1149d0),_0x20d9c0['delete'](_0x1149d0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x54bdcc,_0x49dbc2){if(_0x54bdcc['isMultiRange']){for(const _0x46f2df of _0x49dbc2['getRanges']())_0x54bdcc['addRange'](_0x46f2df);}else{const _0x36fcdf=_0x49dbc2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x54bdcc,this['_model']['createRange'](_0x54bdcc['getFirstRange']()['start'],_0x36fcdf));}_0x49dbc2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5e43f2,_0x586876,_0x36d93c){const _0x3af689=_0x5e43f2['startsWith']('format')||_0x5e43f2['startsWith']('attribute')?'FORMATTING':_0x5e43f2['toUpperCase']();return o(this['editor']['locale'],_0x586876+'_'+_0x3af689+'_SUGGESTION_ANNOUNCEMENT',_0x36d93c);}['_initAriaMarkerChangeAnnouncements'](){const _0x857ef4=this['editor'];if(!_0x857ef4['ui'])return;const {ariaLiveAnnouncer:_0x3c06d4}=_0x857ef4['ui'];_0x10c6cb(this['_model'],({left:_0x3afcff,entered:_0x27ad37})=>{for(const _0x1f7b69 of _0x3afcff){const {group:_0x26d246,type:_0x932c02}=this['_splitMarkerName'](_0x1f7b69['name']);if('suggestion'===_0x26d246){_0x3c06d4['announce'](this['_getMarkerAnnouncementText'](_0x932c02,'LEAVE'));break;}}for(const _0x7b4650 of _0x27ad37){const {group:_0x57156c,type:_0x1912a7}=this['_splitMarkerName'](_0x7b4650['name']);if('suggestion'===_0x57156c){_0x3c06d4['announce'](this['_getMarkerAnnouncementText'](_0x1912a7,'ENTER',_0x1d5f60(_0x10ba3a)));break;}}});}['_processAttributeChanges'](_0x1f133b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x197619=this['editor'],_0x530791=_0x197619['model']['document']['differ']['getChanges']();if(0x0==_0x530791['length'])return!0x1;const _0x4f48c5=[],_0x1d3949=_0x530791['filter'](_0x3d4a96=>'attribute'==_0x3d4a96['type']),_0x2acd1a=_0x530791['filter'](_0x583bcd=>'insert'==_0x583bcd['type']&&'$text'!=_0x583bcd['name']),_0xa4d6e2=_0x530791['filter'](_0x50e482=>'remove'==_0x50e482['type']&&'$text'!=_0x50e482['name']);for(const _0x4d3d66 of _0x1d3949)_0x4f48c5['push']({'key':_0x4d3d66['attributeKey'],'newValue':_0x4d3d66['attributeNewValue'],'oldValue':_0x4d3d66['attributeOldValue'],'range':Lt(_0x4d3d66['range'],_0x197619['model'])});for(const _0x5124b4 of _0x2acd1a){const _0x5b7052=_0xa4d6e2['find'](_0x311b65=>_0x311b65['position']['isEqual'](_0x5124b4['position']));_0x5b7052&&_0x4f48c5['push']({'key':m,'newValue':_0x5124b4['name'],'oldValue':_0x5b7052['name'],'range':_0x197619['model']['createRangeOn'](_0x5124b4['position']['nodeAfter'])});}return 0x0!=_0x4f48c5['length']&&this['_reduceExistingSuggestions'](_0x1f133b,_0x4f48c5);}['_processAttributeSuggestions'](_0x5ede9b){let _0x5495e6=!0x1;const _0x194b9c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x19c922=>_0x19c922['data']['newRange']&&_0x19c922['name']['startsWith']('suggestion:attribute:'));for(const _0x1c62b1 of _0x194b9c){const {subType:_0x2f4d62,id:_0x51e5ee}=this['_splitMarkerName'](_0x1c62b1['name']),_0x22665f=_0x2f4d62['split']('|')[0x0];for(const _0x3ce88c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3ce88c['id']!=_0x51e5ee&&'attribute'==_0x3ce88c['type']&&_0x3ce88c['data']&&_0x3ce88c['data']['key']==_0x22665f&&_0x3ce88c['getFirstRange']()['isIntersecting'](_0x1c62b1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3ce88c,_0x1c62b1['data']['newRange'],_0x5ede9b),_0x5495e6=!0x0);}return _0x5495e6;}['_recordAttributeChanges'](_0x1a3229){this['_recordAttributeSuggestions']=!0x0,_0x1a3229();}['_isRegisteredAttribute'](_0x322b57){const _0x26ec59=this['_isBlockAttribute'](_0x322b57),_0x17b506=this['_inlineAttributeKeys']['has'](_0x322b57);return _0x26ec59||_0x17b506;}['_reduceExistingSuggestions'](_0x1b950a,_0x1155c2){if(0x0==_0x1155c2['length'])return!0x1;let _0x4862b2=!0x1;for(const _0xb5fc4a of _0x1155c2){const _0x355015=this['_findSuggestions'](_0xb5fc4a['range'],'attribute')['filter'](_0x3996d2=>!_0x3996d2['meta']['isNextTo'])['map'](_0x213fdf=>_0x213fdf['suggestion']),_0x9df62b=_0x206d04({'newValue':_0xb5fc4a['newValue']});_0x355015['filter'](_0x1146b3=>{const [_0x1693b3,_0xab750b]=_0x1146b3['subType']['split']('|');return _0x1693b3==_0xb5fc4a['key']&&_0xab750b!=_0x9df62b;})['forEach'](_0x5de8c1=>{this['_reduceSuggestionAttributeRange'](_0x5de8c1,_0xb5fc4a['range'],_0x1b950a),_0x4862b2=!0x0;});}return _0x4862b2;}['_reduceSuggestionAttributeRange'](_0x4aa1c8,_0x15152a,_0x4633b2){const _0xde05dd=_0x4aa1c8['getFirstRange']()['getDifference'](_0x15152a);0x0!==_0xde05dd['length']?0x1!==_0xde05dd['length']?this['_breakSuggestionMarker'](_0x4aa1c8,_0x15152a['start'],_0x15152a['end']):this['_setSuggestionRange'](_0x4aa1c8,_0xde05dd[0x0]):_0x4633b2['removeMarker'](_0x4aa1c8['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x597a0a){this['_editor']=_0x597a0a,this['_model']=_0x597a0a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x167cf7,_0x240a69,_0x5b5f4f,_0x180fb0,_0x1d2cc0,_0x563b2a){return new u(this['_model'],{'type':_0x167cf7,'subType':_0x240a69,'id':_0x5b5f4f,'author':_0x180fb0,'creator':_0x180fb0,'attributes':_0x1d2cc0,'onAttributesChange':_0x563b2a,'onAccept':(..._0x681050)=>this['getSuggestionCallback'](_0x167cf7,_0x240a69,'accept')(..._0x681050),'onDiscard':(..._0x505516)=>this['getSuggestionCallback'](_0x167cf7,_0x240a69,'discard')(..._0x505516)});}['registerCustomCallback'](_0x54d357,_0xf3bed1,_0x507df9,_0x2fd31e){const _0x5bcd3c=_0x54d357+':'+_0xf3bed1+':'+_0x507df9;this['_customCallbacks']['set'](_0x5bcd3c,_0x2fd31e);}['getSuggestionCallback'](_0x18ad07,_0x51f9ca,_0x15c277){const _0x2da7b4=_0x18ad07+':'+_0x51f9ca+':'+_0x15c277;return this['_customCallbacks']['get'](_0x2da7b4)||this['_defaultCallbacks']['get'](_0x18ad07+':'+_0x15c277);}['_registerDefaultCallbacks'](){const _0x1c6b90=()=>!0x1,_0x41586a=_0x57e208=>{_0x57e208['sort']((_0x26a507,_0x279406)=>_0x26a507['start']['isBefore'](_0x279406['start'])?0x1:-0x1),this['_model']['change'](_0x22fb0f=>{for(const _0x542c44 of _0x57e208){let _0x1efc79;_0x1efc79=_0x542c44['end']['isAtEnd']&&_0x542c44['end']['parent']==_0x542c44['start']['nodeAfter']?_0x22fb0f['createSelection'](_0x542c44['start']['nodeAfter'],'on'):_0x22fb0f['createSelection'](_0x542c44),this['_model']['deleteContent'](_0x1efc79,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x53a6a8=(_0x195480,_0x46e131)=>{_0x46e131&&this['_model']['change'](_0x1fdf91=>{const {commandName:_0x5632c0,commandParams:_0x1273e6=[]}=_0x46e131,_0x516b34=_0x195480['map'](_0x4cf383=>(Vt(_0x4cf383)&&(_0x4cf383=this['_model']['createRange'](_0x4cf383['end'])),_0x4cf383))['filter'](_0x4a696d=>'$graveyard'!==_0x4a696d['root']['rootName']);if(_0x516b34['length']<0x1)return;const _0x4ab6a7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x472a2e=>_0x50e55c['fromRange'](_0x472a2e));_0x1fdf91['setSelection'](_0x516b34);for(const _0x1f259f of this['_editor']['commands']['commands']())_0x1f259f['refresh']();_0x1273e6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5632c0,..._0x1273e6);const _0x128cff=_0x4ab6a7['filter'](_0x44ff99=>'$graveyard'!=_0x44ff99['root']['rootName']);_0x128cff['length']>0x0&&_0x1fdf91['setSelection'](_0x128cff);for(const _0x11cb2b of _0x4ab6a7)_0x11cb2b['detach']();});},_0x5adbf9=(_0x2c09e1,_0x52655c)=>0x1==_0x2c09e1['length']&&0x1==_0x52655c['length']&&_0x2c09e1[0x0]['end']['isEqual'](_0x52655c[0x0]['start']),_0x481cf6=(_0x18ec7a,_0x55db20,_0x352df4,_0x473346)=>Ht(_0x18ec7a,_0x55db20,_0x352df4,_0x473346)?[_0x18ec7a,_0x55db20]:Ht(_0x55db20,_0x18ec7a,_0x473346,_0x352df4)?[_0x55db20,_0x18ec7a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1c6b90),this['_defaultCallbacks']['set']('insertion:discard',_0x41586a),this['_defaultCallbacks']['set']('insertion:join',_0x5adbf9),this['_defaultCallbacks']['set']('insertion:chain',_0x481cf6),this['_defaultCallbacks']['set']('deletion:accept',_0x41586a),this['_defaultCallbacks']['set']('deletion:discard',_0x1c6b90),this['_defaultCallbacks']['set']('deletion:join',_0x5adbf9),this['_defaultCallbacks']['set']('deletion:chain',_0x481cf6),this['_defaultCallbacks']['set']('formatInline:accept',_0x53a6a8),this['_defaultCallbacks']['set']('formatInline:discard',_0x1c6b90),this['_defaultCallbacks']['set']('formatInline:join',_0x5adbf9),this['_defaultCallbacks']['set']('formatInline:chain',_0x1c6b90),this['_defaultCallbacks']['set']('formatBlock:accept',_0x53a6a8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1c6b90),this['_defaultCallbacks']['set']('formatBlock:join',_0x5adbf9),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1c6b90),this['_defaultCallbacks']['set']('attribute:accept',_0x1c6b90),this['_defaultCallbacks']['set']('attribute:discard',(_0x5cbdd0,_0x3cdd37)=>{if(!_0x3cdd37)return;const _0x1ad4c0=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3d0e03=>{if(_0x3cdd37['key']==m)for(const _0x965a12 of _0x5cbdd0){const _0x3f2426=_0x965a12['start']['nodeAfter'],_0x25dd57=_0x3cdd37['oldValue'];_0x3d0e03['rename'](_0x3f2426,_0x25dd57);}else{if(_0x1ad4c0['_isBlockAttribute'](_0x3cdd37['key'])){for(const _0x38098e of _0x5cbdd0)void 0x0!==_0x3cdd37['oldValue']?_0x3d0e03['setAttribute'](_0x3cdd37['key'],_0x3cdd37['oldValue'],_0x38098e['start']['nodeAfter']):_0x3d0e03['removeAttribute'](_0x3cdd37['key'],_0x38098e['start']['nodeAfter']);}else{for(const _0x553115 of _0x5cbdd0)_0x3cdd37['oldValue']?_0x3d0e03['setAttribute'](_0x3cdd37['key'],_0x3cdd37['oldValue'],_0x553115):_0x3d0e03['removeAttribute'](_0x3cdd37['key'],_0x553115);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5adbf9);}}function Ut(_0x45f0cc,_0x24acf1,_0x40768b){for(const _0x4271c7 of _0x24acf1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4271c7['root']==_0x4271c7)return!0x1;if(!_0x40768b['containsItem'](_0x4271c7))return!0x1;if(_0x45f0cc['isObject'](_0x4271c7)||_0x45f0cc['isLimit'](_0x4271c7))return!0x0;}return!0x1;}function Vt(_0x37af95){return _0x37af95['end']['parent']==_0x37af95['start']['nodeAfter']&&_0x37af95['end']['isAtStart'];}function Pt(_0x36f5a7,_0x2afecd,_0x232a43,_0x36056b){const _0x24f59a=_0x5ee041=>!_0x5ee041['item']['is']('$textProxy')&&!_0x36056b['isObject'](_0x5ee041['item']),_0x331edc=_0x36f5a7['start']['getLastMatchingPosition'](_0x24f59a),_0x56c1b5=_0x36f5a7['end']['getLastMatchingPosition'](_0x24f59a,{'direction':'backward'});return(!_0x36f5a7['start']['isEqual'](_0x331edc)||!_0x36f5a7['end']['isEqual'](_0x56c1b5))&&(_0x331edc['isBefore'](_0x56c1b5)?_0x232a43['updateMarker'](_0x2afecd,{'range':_0x232a43['createRange'](_0x331edc,_0x56c1b5)}):_0x232a43['removeMarker'](_0x2afecd),!0x0);}function Gt(_0x2435af){return _0x206d04(_0x2435af);}function Ft(_0x1b34ad){const _0x4aff6c=_0x1b34ad['start']['nodeAfter'];return _0x4aff6c&&_0x4aff6c['is']('element');}function Lt(_0x16e62c,_0x79aeca){return null==_0x16e62c['end']['nodeBefore']&&_0x16e62c['end']['parent']==_0x16e62c['start']['nodeAfter']?Jt(_0x16e62c['start']['nodeAfter'],_0x79aeca):_0x16e62c;}function Jt(_0x45038a,_0xdda3c5){const _0xc54988=_0xdda3c5['schema']['isObject'](_0x45038a)||_0xdda3c5['schema']['isSelectable'](_0x45038a);return _0xdda3c5['createRange'](_0xdda3c5['createPositionAt'](_0x45038a,'before'),_0xc54988?_0xdda3c5['createPositionAfter'](_0x45038a):_0xdda3c5['createPositionAt'](_0x45038a,'end'));}function Ht(_0x4a26fe,_0x4ba7e1,_0x422900,_0x352199){return!!qt(_0x4a26fe,_0x4ba7e1)&&_0x422900['end']['isEqual'](_0x352199['start']);}function qt(_0x3b61aa,_0x5341d1){if(!_0x3b61aa['_isDataLoaded']||!_0x5341d1['_isDataLoaded'])return!0x1;const _0x263f8d=new Set(Object['keys'](_0x3b61aa['attributes'])),_0x298641=new Set(Object['keys'](_0x5341d1['attributes']));if(_0x263f8d['delete']('groupId'),_0x298641['delete']('groupId'),0x0==_0x263f8d['size']&&0x0==_0x298641['size'])return!0x0;if(_0x263f8d['size']!=_0x298641['size'])return!0x1;const _0x2caf64={..._0x3b61aa['attributes']},_0x23385c={..._0x5341d1['attributes']};return delete _0x2caf64['groupId'],delete _0x23385c['groupId'],JSON['stringify'](_0x2caf64)==JSON['stringify'](_0x23385c);}function zt(_0x3fc824,_0x42eedd){const _0x186913=Kt(_0x3fc824['attributes']),_0x4c845c=Kt(_0x42eedd);if(!_0x3fc824['_isDataLoaded'])return!0x1;for(const _0x16106f of Object['keys'](_0x4c845c))if(!_0xcd39ea(_0x186913[_0x16106f],_0x4c845c[_0x16106f]))return!0x1;return!0x0;}function Kt(_0x5e9147){const _0x1b5e1b=Object['assign']({},_0x5e9147);return delete _0x1b5e1b['skipNestingCheck'],delete _0x1b5e1b['tablePasteChainId'],_0x1b5e1b;}class ge extends/* #__PURE__ -- @preserve */
25
- _0x2f2784(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x207ddf,_0x1812df,_0x5eac30,_0x17f35b){super(),this['model']=_0x1812df,this['view']=_0x5eac30,this['commentThreadController']=_0x17f35b,this['_editor']=_0x207ddf,this['_acceptCommand']=_0x207ddf['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x207ddf['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4e4ade,_0x16866b)=>_0x4e4ade||_0x16866b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4d0e86=>_0x4d0e86&&this['_editor']['model']['canEditAt'](_0x1812df['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x59aad6=>_0x59aad6&&this['_editor']['model']['canEditAt'](_0x1812df['getRanges']())),this['_pendingAction']=null,_0x5eac30['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5eac30,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5eac30,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5eac30,'change:isDirty',()=>{_0x5eac30['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 _0x5b1142=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5b1142);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x5e69e2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5a9ba1,_0x2fa849,_0x1bad2d,_0x491a8f){super(_0x5a9ba1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5a7624(_0x5a9ba1,o(_0x5a9ba1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2fa849['authoredAt']),this['bind']('authoredAt')['to'](_0x2fa849),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',_0x2fa849,'authoredAt',this,'descriptionParts',(_0x266c2e,_0x3fbff1,_0x1e632c)=>{const _0xc91b0e=_0x1e632c['map'](_0x308da1=>ns(_0x308da1['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x266c2e-0x1,_0x2fa849['author']['name'],_0x3fbff1?_0x491a8f['formatDateTime'](_0x3fbff1):'',new DOMParser()['parseFromString'](_0xc91b0e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x57cb58(),this['focusTracker']=new _0x208b97(),this['keystrokes']=new _0x3748eb(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x286651=>_0x286651['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2fa849,this['_localUser']=_0x1bad2d,this['_config']=_0x491a8f,_0x491a8f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x13d36b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xdd302a}=this['_config'];this['commentsListView']=new _0xdd302a(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',_0x41c5c4=>_0x41c5c4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4f48a2,_0x59c951)=>_0x4f48a2||!!_0x59c951);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2ae667}=this['_config'],_0x3e86a5=new _0x2ae667(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2606aa=_0x3e86a5['commentInputView'];return _0x3e86a5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2606aa,'value',(_0x5cdab0,_0x4537f8,_0x4747b4)=>!!_0x4747b4||_0x5cdab0&&!_0x4537f8),_0x2606aa['on']('submit',(_0x2cec4b,_0x20f437)=>{this['fire']('addComment',_0x20f437),_0x2606aa['editor']['setData']('');}),_0x2606aa['on']('cancel',()=>this['focus']()),_0x2606aa['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3e86a5;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x1e0468,_0xc52e77,_0x3f25dc,_0x3635f2){super(_0x1e0468,_0xc52e77,_0x3f25dc,_0x3635f2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x431be6=>_0x431be6&&_0x431be6[0x0]?_0x431be6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x164408,_0x63762a)=>{let _0x101a31='';for(const _0x2b8bef of _0x164408)_0x101a31+='<p>'+ns(_0x2b8bef['content'],_0x2b8bef['color'])+'</p>';return _0x63762a?_0x101a31:ti(_0x101a31,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3635f2['SuggestionView'](_0x1e0468,_0xc52e77,{'formatDateTime':_0x3635f2['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 _0x44c568=this['bindTemplate'],_0x56b9b0=[this['suggestionView']];return this['commentsListView']&&_0x56b9b0['push'](this['commentsListView']),this['commentThreadInputView']&&_0x56b9b0['push'](this['commentThreadInputView']),_0x56b9b0['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x44c568['if']('isActive','ck-suggestion-wrapper--active'),_0x44c568['to']('type',_0x5a666a=>'ck-suggestion-'+_0x5a666a),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':_0x44c568['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x56b9b0};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ue extends _0x5e69e2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xae4f9c,_0x5248f1,_0x2f9c6e){super(_0xae4f9c),this['_model']=_0x5248f1,this['_config']=_0x2f9c6e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5248f1),this['acceptButton']=this['_createButton'](o(_0xae4f9c,'Accept\x20suggestion'),_0x379797['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xae4f9c,'Discard\x20suggestion'),_0x379797['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x577f17(_0xae4f9c,_0x5248f1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x57cb58([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x208b97(),this['keystrokes']=new _0x3748eb(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1941a6=>_0x1941a6['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x51aab5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x51aab5['innerHTML']=this['description'],this['on']('change:description',(_0xea1349,_0x468545,_0x45b82e)=>{_0x51aab5['innerHTML']=_0x45b82e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x58caa5=this['bindTemplate'],_0x390c81=[{'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':_0x58caa5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x58caa5['to']('authoredAt',_0x5529d2=>this['_config']['formatDateTime'](_0x5529d2))}]}]},{'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']&&_0x390c81['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':_0x390c81}]};}['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'](_0x2cba40,_0x5d52f1,_0x2830bb,_0x1f9f1b,_0x4869e5){const _0x562a58=new _0x328401(this['locale']);return _0x562a58['set']({'label':_0x2cba40,'icon':_0x5d52f1,'tooltip':!0x0,'tooltipPosition':_0x4869e5}),_0x562a58['extendTemplate']({'attributes':{'class':_0x2830bb}}),_0x562a58['on']('execute',()=>{this['fire'](_0x1f9f1b,this['_model']['id']);}),_0x562a58;}['_setupKeyboardNavigation'](){const _0x5aafb9=this['element'];this['keystrokes']['listenTo'](_0x5aafb9);for(const _0x3e95c8 of this['focusables'])this['focusTracker']['add'](_0x3e95c8['element']),this['keystrokes']['listenTo'](_0x3e95c8['element']);this['keystrokes']['set']('enter',(_0x5c4d77,_0x130fd5)=>{_0x5aafb9===_0x5c4d77['target']&&(this['focusCycler']['focusFirst'](),_0x130fd5());}),this['keystrokes']['set']('esc',(_0x21297b,_0xd65054)=>{_0x5aafb9!==_0x21297b['target']&&(this['focus'](),_0xd65054());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x2a9dde{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3f5543,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cc277){super(_0x5cc277),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x558eab=this['editor']['config'];_0x558eab['define']('trackChanges.SuggestionThreadView',de),_0x558eab['define']('trackChanges.SuggestionView',ue),_0x558eab['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x558eab['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x444451,_0x40b7b6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d742a,_0x4cbd34]of this['_handleControllerBuffer']){const _0x4bb923=this['_suggestionToController']['has'](_0x1d742a);_0x4bb923||_0x4cbd34?_0x4bb923&&_0x4cbd34&&this['_destroyController'](_0x1d742a):this['_initializeController'](_0x1d742a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x444451,_0x40b7b6);}['init'](){const _0x15f5b9=this['editor'],_0x53d1c3=_0x15f5b9['plugins']['get']('TrackChangesEditing'),_0xfe173f=_0x15f5b9['plugins']['get']('Annotations'),_0x318c96=_0x15f5b9['plugins']['get']('EditorAnnotations'),_0x25b509=_0x15f5b9['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x318c96['addSourceCollector'](()=>{const _0x3e2d13=[];for(const [_0x434b2a,_0x3a5aff]of Array['from'](this['_suggestionToController'])){const _0x34af28=_0x434b2a['getAllAdjacentSuggestions'](),_0x5114af=[];for(const _0x33791a of _0x34af28){if(!_0x33791a['isInContent'])continue;if(_0x33791a['isMultiRange']){_0x5114af['push'](..._0x33791a['getRanges']());continue;}const _0x134bd9=_0x33791a['getFirstRange']();if(_0x5114af['length']>0x0){const _0x17672d=_0x5114af[0x0]['getJoined'](_0x134bd9);if(_0x17672d){_0x5114af[0x0]=_0x17672d;continue;}}_0x5114af['push'](_0x134bd9);}_0x3e2d13['push']([_0x3a5aff['view'],_0x5114af]);}return _0x3e2d13;}),this['listenTo'](_0x53d1c3,'suggestionLoaded',(_0x55a83b,_0x2fa7f7)=>{this['listenTo'](_0x2fa7f7,'change:previous',(_0x1ad3bf,_0x4336af,_0x548049,_0x41c212)=>{_0x2fa7f7['isInContent']&&(null==_0x548049?(this['_updateController'](_0x41c212['head']),this['_handleSuggestionControllerDelayed'](_0x2fa7f7,!0x1)):(this['_updateController'](_0x548049['head']),null==_0x41c212&&this['_handleSuggestionControllerDelayed'](_0x2fa7f7,!0x0)));}),null!==_0x2fa7f7['previous']?this['_updateController'](_0x2fa7f7['head']):this['_handleSuggestionControllerDelayed'](_0x2fa7f7,!0x1);}),this['listenTo'](_0x53d1c3,'suggestionUnloaded',(_0x305368,_0x5bafcd,_0x48cb5b)=>{this['stopListening'](_0x5bafcd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5bafcd),this['_suggestionToController']['has'](_0x5bafcd)&&this['_destroyController'](_0x5bafcd),_0x48cb5b&&this['_updateController'](_0x48cb5b['head']);}),this['listenTo'](_0x53d1c3,'suggestionChanged',(_0x50ad39,_0x3394aa)=>{this['_updateController'](_0x3394aa);}),this['listenTo'](_0xfe173f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x25b509,'addComment',(_0x47cc06,{threadId:_0x3041ff,isFromAdapter:_0x1ec33c})=>{if(_0x1ec33c||!_0x53d1c3['hasSuggestion'](_0x3041ff))return;const _0x2f3409=_0x53d1c3['getSuggestion'](_0x3041ff);this['_suggestionToController']['get'](_0x2f3409)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x70dd9e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2beef5;for(const _0x698bf5 in _0x70dd9e){const _0x4f2a24=_0x698bf5,_0x4bb74e=_0x70dd9e[_0x4f2a24];if('trackChangesLicenseKeyValid'==_0x4bb74e||'trackChangesLicenseKeyInvalid'==_0x4bb74e||'trackChangesLicenseKeyExpired'==_0x4bb74e||'trackChangesLicenseKeyDomainLimit'==_0x4bb74e||'trackChangesLicenseKeyNotAllowed'==_0x4bb74e||'trackChangesLicenseKeyEvaluationLimit'==_0x4bb74e||'trackChangesLicenseKeyTrialLimit'==_0x4bb74e||'trackChangesLicenseKeyDevelopmentLimit'==_0x4bb74e||'trackChangesLicenseKeyUsageLimit'==_0x4bb74e){delete _0x70dd9e[_0x4f2a24],_0x2beef5=_0x4bb74e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2beef5&&_0x70dd9e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2beef5&&_0x70dd9e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2beef5&&_0x70dd9e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2beef5&&_0x70dd9e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2beef5&&_0x70dd9e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2beef5&&_0x70dd9e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x2beef5&&_0x70dd9e['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2beef5&&_0x70dd9e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x39dd26=this['editor']['plugins']['get']('Annotations'),_0x9a119e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ab395=Array['from'](_0x39dd26['activeAnnotations'],_0x12339d=>_0x12339d['innerView'])['filter'](_0x49f40b=>this['_viewToController']['has'](_0x49f40b)),_0x1da495=[];for(const _0x3d2d19 of _0x3ab395){const _0x47232f=this['_viewToController']['get'](_0x3d2d19)['model']['getAllAdjacentSuggestions']();_0x1da495['push'](..._0x47232f['reduce']((_0x3fd8a6,_0x3cf3ce)=>[..._0x3fd8a6,..._0x3cf3ce['getMarkerNames']()],[]));}_0x9a119e['activeMarkers']=_0x1da495;}['_addUIComponentsToFactory'](){const _0x19a318=this['editor'],_0x19d433=_0x19a318['locale'],_0x9de070=o(_0x19d433,'Track\x20changes'),_0x715b7d=new _0x596c8d([{'type':'switchbutton','model':new _0x5c9834({'withText':!0x0,'isToggleable':!0x0,'label':_0x9de070,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5c9834({'withText':!0x0,'label':o(_0x19d433,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c9834({'withText':!0x0,'label':o(_0x19d433,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c9834({'withText':!0x0,'label':o(_0x19d433,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c9834({'withText':!0x0,'label':o(_0x19d433,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x18028a of _0x715b7d)if(pe(_0x18028a)){const _0x34ce4d=_0x19a318['commands']['get'](_0x18028a['model']['commandName']);_0x18028a['model']['bind']('isOn','isEnabled')['to'](_0x34ce4d,'value','isEnabled');}_0x19a318['ui']['componentFactory']['add']('trackChanges',_0xfb45ae=>this['_createToolbarButton'](_0xfb45ae,_0x715b7d,_0x9de070)),_0x19a318['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3e7db7=>this['_createMenuBarMenu'](_0x3e7db7,_0x715b7d,_0x9de070));}['_createToolbarButton'](_0x5a0c18,_0xacb279,_0x5d7747){const _0x5ba438=_0x5ec5d0(_0x5a0c18,_0x4955c5),_0x5754da=this['editor']['commands']['get']('trackChanges');_0x5ba438['buttonView']['set']({'tooltip':_0x5d7747,'label':_0x5d7747,'icon':Ce}),_0x5ba438['buttonView']['bind']('isOn')['to'](_0x5754da,'value'),_0x5ba438['buttonView']['on']('execute',()=>{_0x5754da['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x5ba438,_0xacb279,{'role':'menu'});const _0x168209=[];for(const _0x1a82cb of _0xacb279)pe(_0x1a82cb)&&_0x168209['push'](this['editor']['commands']['get'](_0x1a82cb['model']['commandName']));const _0x15328e=_0x5ba438['buttonView'];return _0x15328e['actionView']['unbind']('isEnabled'),_0x15328e['arrowView']['unbind']('isEnabled'),_0x15328e['actionView']['bind']('isEnabled')['to'](_0x5754da,'isEnabled'),_0x15328e['arrowView']['bind']('isEnabled')['toMany'](_0x168209,'isEnabled',(..._0x2eacb6)=>_0x2eacb6['some'](_0x493360=>_0x493360)),_0x5ba438['on']('execute',_0x1c4c0a=>{this['editor']['execute'](_0x1c4c0a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5ba438;}['_createMenuBarMenu'](_0xe92342,_0x25ff32,_0x47a641){const _0x1ac99b=new _0x58b682(_0xe92342),_0x4f21fb=this['editor']['commands']['get']('trackChanges');_0x1ac99b['buttonView']['set']({'label':_0x47a641,'icon':Ce});const _0x327653=new _0x289e28(_0xe92342);for(const _0x2a711f of _0x25ff32){if('separator'==_0x2a711f['type']){_0x327653['items']['add'](new _0x3645c2(_0xe92342));continue;}const _0xd81d31=new _0x1013ad(_0xe92342,_0x1ac99b),_0x549b87=new _0x388adf(_0xe92342),_0xc53506=_0x2a711f['model'];_0x549b87['bind'](...Object['keys'](_0xc53506))['to'](_0xc53506),_0x549b87['delegate']('execute')['to'](_0x1ac99b),_0x549b87['on']('execute',()=>{this['editor']['execute'](_0xc53506['commandName']),this['editor']['editing']['view']['focus']();}),_0xd81d31['children']['add'](_0x549b87),_0x327653['items']['add'](_0xd81d31);}return _0x1ac99b['bind']('isEnabled')['to'](_0x4f21fb,'isEnabled'),_0x1ac99b['panelView']['children']['add'](_0x327653),_0x1ac99b;}['_initializeController'](_0x16e30c){const _0x15b91f=this['editor'],_0x156084=_0x15b91f['config'],_0xf7635=_0x15b91f['plugins']['get']('Annotations'),_0x2069d9=_0x15b91f['plugins']['get']('CommentsRepository'),_0x3aa4de=_0x15b91f['plugins']['get']('EditorAnnotations'),_0x7b3d3c=_0x15b91f['plugins']['get'](_0x3f5543)['me'],_0x209cfe=_0x156084['get']('trackChanges')['SuggestionThreadView'],_0x54085b=_0x156084['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5ada02,CommentThreadInputView:_0x3b22c4}=_0x15b91f['plugins']['get']('CommentsUI');let _0xf49d85,_0x3456ca,_0x222407;this['_annotationViews']['has'](_0x16e30c['id'])?(_0x3456ca=this['_annotationViews']['get'](_0x16e30c['id']),_0xf49d85=_0x3456ca['mainView']):(_0xf49d85=new _0x209cfe(_0x15b91f['locale'],_0x16e30c,_0x7b3d3c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x156084['get']('comments.editorConfig'),'licenseKey':_0x156084['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x156084['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x156084['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x156084['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1faa1e(_0x156084['get']('locale')),'CommentView':_0x156084['get']('comments')['CommentView'],'CommentsListView':_0x5ada02,'CommentThreadInputView':_0x3b22c4,'SuggestionView':_0x54085b}),_0xf49d85['suggestionView']['acceptButton']['on']('execute',()=>{_0x15b91f['editing']['view']['focus']();}),_0xf49d85['suggestionView']['discardButton']['on']('execute',()=>{_0x15b91f['editing']['view']['focus']();}),_0x3456ca=_0xf7635['createAnnotationView'](this['editor']['locale'],_0xf49d85),_0x3456ca['bind']('isDirty')['to'](_0xf49d85,'isDirty'),_0x3456ca['bind']('length')['to'](_0xf49d85),_0x3456ca['bind']('type')['to'](_0xf49d85,'type',_0x40a441=>'suggestion-'+_0x40a441),_0xf49d85['on']('escape',()=>{_0x222407['fire']('escape');}),this['_annotationViews']['set'](_0x16e30c['id'],_0x3456ca));const _0xcc7865=_0x2069d9['createCommentThreadController'](_0x16e30c['commentThread'],_0xf49d85),_0x497a83=new ge(_0x15b91f,_0x16e30c,_0xf49d85,_0xcc7865),_0x560a7e=_0x16e30c['getAllAdjacentSuggestions']()['filter'](_0x3eb505=>_0x3eb505['isInContent']);_0xf49d85['descriptionParts']=_0x15b91f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x560a7e),this['_suggestionToController']['set'](_0x16e30c,_0x497a83),this['_viewToController']['set'](_0xf49d85,_0x497a83),_0x222407=_0xf7635['createAnnotation']({'view':_0x3456ca,'target':()=>{const _0x4e26a3=[],_0x2587f3=_0x16e30c['getAllAdjacentSuggestions']()['filter'](_0x1bfdc8=>_0x1bfdc8['isInContent']);for(const _0x2e8c4d of _0x2587f3)_0x4e26a3['push'](..._0x2e8c4d['getMarkers']());return _0x155bfc(_0x15b91f['editing'],_0x4e26a3);},'type':()=>'suggestion-'+_0x497a83['view']['type']}),_0x2069d9['_bindAnnotationToEditors'](_0xf49d85,_0x222407),_0xf7635['add'](_0x222407),_0x3aa4de['registerAnnotation'](_0x222407);}['_destroyController'](_0x2b53f1){const _0x53bec0=this['editor']['plugins']['get']('CommentsRepository'),_0x4a1fcb=this['editor']['plugins']['get']('Annotations'),_0x3d98e5=this['_suggestionToController']['get'](_0x2b53f1),_0x8a1b1=_0x3d98e5['view'],_0x1cde12=_0x4a1fcb['getByInnerView'](_0x8a1b1);_0x53bec0['_unbindEditors'](_0x8a1b1),_0x1cde12&&_0x4a1fcb['remove'](_0x1cde12),this['_suggestionToController']['delete'](_0x2b53f1),this['_viewToController']['delete'](_0x8a1b1),_0x3d98e5['destroy']();}['_updateController'](_0x3d2eab){if(!_0x3d2eab['isInContent']||!this['_suggestionToController']['has'](_0x3d2eab))return;const _0x4beaa9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x466f5b=this['_suggestionToController']['get'](_0x3d2eab),_0x4efc34=_0x3d2eab['getAllAdjacentSuggestions']();_0x466f5b['view']['descriptionParts']=_0x4beaa9['descriptionFactory']['getDescriptions'](_0x4efc34);}['destroy'](){for(const _0x8f7ec3 of this['_suggestionToController']['keys']())this['_destroyController'](_0x8f7ec3);for(const _0x597855 of this['_annotationViews']['values']())_0x597855['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x240457){return'model'in _0x240457;}class k extends _0x2a9dde{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xe850e5){this['editor']['plugins']['get'](p)['adapter']=_0xe850e5;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x241254){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x241254);}['getSuggestions']({skipNotAttached:_0x4dd142=!0x1,toJSON:_0x489f89=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4dd142,'toJSON':_0x489f89});}['getSuggestion'](_0x1a12d6){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1a12d6);}}const w=['Pagination'];class T extends _0x2a9dde{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x597897=this['editor'];if(_0x597897['config']['define']('trackChangesData.editorCreator',_0x4db541=>{const _0x54f857=_0x597897['model']['document']['getRootNames']()['reduce']((_0x505563,_0x27c124)=>(_0x505563[_0x27c124]='',_0x505563),{});return _0x597897['constructor']['create'](_0x54f857,_0x4db541);}),'function'!=typeof _0x597897['config']['get']('trackChangesData')['editorCreator'])throw new _0x41116f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2a3e6b){return N(this['editor'],!0x0,_0x2a3e6b);}['getDataWithDiscardedSuggestions'](_0x5b77c1){return N(this['editor'],!0x1,_0x5b77c1);}}class D extends _0x2a9dde{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42337f){function _0x5f1d9d(_0x5d4eab){return _0x5d4eab['map'](_0x26f6c4=>String['fromCharCode'](_0x26f6c4))['join']('');}super(_0x42337f),this['result']='end',_0x42337f[_0x5f1d9d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f1d9d([0x76,0x69,0x65,0x77])][_0x5f1d9d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f1d9d([0x61,0x75,0x74,0x6f]),_0x42337f[_0x5f1d9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5f1d9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f1d9d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5f1d9d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5f1d9d([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x345b83){return void 0x0!==_0x345b83['getRootsAttributes'];}async function N(_0x469c37,_0x1d38b0,_0x427b57){const _0x5c779d=_0x2c022b(_0x469c37,w);_0x5c779d['plugins']['push'](p,D),_0x5c779d['rootsAttributes']=v(_0x469c37)?_0x469c37['getRootsAttributes']():void 0x0;const _0x49e58c=document['createDocumentFragment'](),_0x5eefc2=_0x469c37['config']['get']('trackChangesData')['editorCreator'],_0x8d98d7=await _0x5eefc2(_0x5c779d,()=>function(_0x5f9628){const _0x40b360=document['createElement']('div');return _0x5f9628['appendChild'](_0x40b360),_0x40b360;}(_0x49e58c));!function(_0x27421d,_0x8ed622){const _0x44dc2d=_0x27421d['model']['document']['getRootNames']()['reduce']((_0xf4a5fb,_0x3a0c88)=>(_0xf4a5fb[_0x3a0c88]=_0x27421d['data']['get']({'rootName':_0x3a0c88}),_0xf4a5fb),{}),_0x51fa86=_0x27421d['plugins']['get']('Users')['users']['map'](_0x41a4db=>({'id':_0x41a4db['id'],'name':_0x41a4db['name']})),_0x15ef12=_0x27421d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x43faf4=_0x27421d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x554391=_0x8ed622['plugins']['get']('Users'),_0x5c22cd=_0x8ed622['plugins']['get']('TrackChangesEditing'),_0xa932e2=_0x8ed622['plugins']['get']('CommentsRepository');for(const _0x1014d7 of _0xa932e2['getCommentThreads']())_0x1014d7['remove']();for(const _0x454119 of _0x51fa86)_0x554391['getUser'](_0x454119['id'])||_0x554391['addUser'](_0x454119);_0x554391['me']||_0x554391['useAnonymousUser']();for(const _0x5e2c0f of _0x43faf4)_0xa932e2['addCommentThread'](_0x5e2c0f);for(const _0x113354 of _0x15ef12)_0x5c22cd['addSuggestionData'](_0x113354);_0x8ed622['data']['set'](_0x44dc2d);}(_0x469c37,_0x8d98d7),_0x8d98d7['execute'](_0x1d38b0?'acceptAllSuggestions':'discardAllSuggestions');const _0x1fa725=v(_0x8d98d7)?_0x8d98d7['getFullData'](_0x427b57):_0x8d98d7['data']['get'](_0x427b57);return await _0x8d98d7['destroy'](),_0x1fa725;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as Qt,Plugin as _0x1f739f,PendingActions as _0xb2980b,icons as _0xd426bb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x243768,ObservableMixin as _0x29f64b,uid as _0x46f059,insertToPriorityArray as _0x87288b,priorities as _0x16c4bf,logWarning as _0x561160,getEnvKeystrokeText as _0x21e46d,FocusTracker as _0x133ea1,KeystrokeHandler as _0x823bdb,Collection as _0x5b8f52}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x56821b,View as _0x2cb6df,ViewCollection as _0x449b37,FocusCycler as ts,ViewModel as _0x3948a5,createDropdown as _0xc304a4,SplitButtonView as _0x1b5c51,addListToDropdown as te,MenuBarMenuView as _0x598971,MenuBarMenuListView as _0x42d103,ListSeparatorView as _0x499831,MenuBarMenuListItemView as _0x3abd64,MenuBarMenuListItemButtonView as _0x3bdccb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3dcaf7,hashObject as _0x546877,surroundingMarkersDetector as _0x1b81b3,FOCUS_ANNOTATION_KEYSTROKE as _0x2645ad,AriaDescriptionView as _0x354581,setupThreadKeyboardNavigation as _0x7aee60,trimHtml as ti,UserView as _0x1e2953,LateFocusButtonView as _0x4bf5b0,getDateTimeFormatter as _0x4e831d,getAllMarkersDomElementsSorted as _0x3c74c6,sanitizeEditorConfig as _0x3f089f}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x322f1d,LiveRange as _0x1c86da,LivePosition as _0x486d4b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x585a32,toWidget as _0x2411ad}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x29a02a,set as _0x32359c,isEqual as _0x2e7dfd,unset as _0x4cdd25,omit as xt}from'lodash-es';import{Delete as _0x24be65,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x35b6d3,ShiftEnter as _0x31c13c}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x4bbef3,_0x4f6fe5){super(_0x4bbef3),this['_enabledCommands']=_0x4f6fe5,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 _0x4a604a of this['editor']['commands']['commands']())_0x4a604a['affectsData']&&!this['_enabledCommands']['has'](_0x4a604a)&&_0x4a604a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x6b6c60 of this['editor']['commands']['commands']())_0x6b6c60['affectsData']&&!this['_enabledCommands']['has'](_0x6b6c60)&&_0x6b6c60['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x48f3b1,_0x7cdf61){super(_0x48f3b1),this['_suggestions']=_0x7cdf61,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x64f7c0){const _0x5251bc=this['_suggestions']['get'](_0x64f7c0);if(!_0x5251bc)throw new _0x243768('track-changes-accept-suggestion-not-found',this);const _0x2ece3b=_0x5251bc['getRanges']();this['editor']['model']['canEditAt'](_0x2ece3b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5251bc);}}class R extends Qt{['_suggestions'];constructor(_0x440e96,_0x10d0e4){super(_0x440e96),this['_suggestions']=_0x10d0e4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x113d24){const _0x50430a=this['_suggestions']['get'](_0x113d24);if(!_0x50430a)throw new _0x243768('track-changes-discard-suggestion-not-found',this);const _0x940397=_0x50430a['getRanges']();this['editor']['model']['canEditAt'](_0x940397)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x50430a);}}function ns(_0x2bc010,_0x16124c){let _0x5b2233='';return _0x5b2233+=_0x2bc010['split']('*')['map']((_0x5b0eaf,_0x16562e)=>_0x16562e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5b0eaf)+'</span>':nn(_0x5b0eaf))['join'](''),_0x16124c&&(_0x5b2233+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x16124c['value']+'\x22\x20title=\x22'+_0x16124c['title']+'\x22></span>'),_0x5b2233;}function nn(_0x197b0e){const _0x46f6ab=document['createElement']('span');return _0x46f6ab['innerText']=_0x197b0e,_0x46f6ab['innerHTML'];}function Wt(_0x19b2b0){return _0x19b2b0['sort']((_0x5e6578,_0x193c82)=>'deletion'==_0x5e6578['type']&&'deletion'!=_0x193c82['type']?-0x1:'deletion'!=_0x5e6578['type']&&'deletion'==_0x193c82['type']?0x1:0x0);}function to(_0x1ed8d7,_0xa8d5e9){let _0x2b4bf8,_0x586799=0x0;const _0x3d2ba1=[],_0x5d0fdc=_0xa8d5e9['schema'];for(;_0x586799<_0x1ed8d7['length'];){const _0x5ce4dc=_0x1ed8d7[_0x586799],_0x4d2e86=_0x1ed8d7[_0x586799+0x1];_0x2b4bf8||(_0x2b4bf8=_0xa8d5e9['createPositionBefore'](_0x5ce4dc)),on(_0xa8d5e9,_0x5ce4dc,_0x4d2e86)||(_0x3d2ba1['push'](_0xa8d5e9['createRange'](_0x2b4bf8,_0x5d0fdc['isObject'](_0x5ce4dc)?_0xa8d5e9['createPositionAfter'](_0x5ce4dc):_0xa8d5e9['createPositionAt'](_0x5ce4dc,'end'))),_0x2b4bf8=null),_0x586799++;}return _0x3d2ba1;}function on(_0x1a087a,_0x21b923,_0xbb60){if(!_0xbb60)return!0x1;const _0x1c1477=_0x1a087a['createPositionAfter'](_0x21b923),_0x262255=_0x1a087a['createPositionBefore'](_0xbb60);return _0x1c1477['isTouching'](_0x262255);}function Xt(_0x37a56b,_0x383429,_0x3baf04){for(;_0x3baf04['length'];){const _0x3f3b48=_0x3baf04['splice'](0x0,0x64);_0x37a56b['change'](()=>{for(const _0x316982 of _0x3f3b48)_0x316982['isInContent']&&_0x383429['execute'](_0x316982['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x4e0d43,_0x2d6f1c,_0x279b04){super(_0x4e0d43),this['_command']=_0x2d6f1c,this['_suggestions']=_0x279b04,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x478b54=Array['from'](this['_suggestions']['values']())['some'](_0x381510=>_0x381510['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x478b54;}['execute'](){const _0x21d149=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x1c5b58 of _0x21d149){const _0x31625e=_0x1c5b58['getRanges']();if(!this['editor']['model']['canEditAt'](_0x31625e))return;}Xt(this['editor']['model'],this['_command'],_0x21d149);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xeee1c0,_0x4957e3,_0x569d56){super(_0xeee1c0),this['_command']=_0x4957e3,this['_suggestions']=_0x569d56,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x51edfa=this['editor']['model']['document']['selection'],_0x27b267=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x506c10,_0x4c5a01){const _0x279075=Array['from'](_0x506c10['getRanges']()),_0x29d584=new Set();for(const _0x2ac48d of _0x4c5a01)if(_0x2ac48d['isInContent']){for(const _0x4711cf of _0x279075)for(const _0x4cc557 of _0x2ac48d['getRanges']())(_0x4711cf['isIntersecting'](_0x4cc557)||_0x506c10['isCollapsed']&&!_0x2ac48d['isMultiRange']&&_0x2ac48d['next']&&_0x4cc557['end']['isTouching'](_0x4711cf['start']))&&_0x29d584['add'](_0x2ac48d);}return _0x29d584;}(_0x51edfa,_0x27b267),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x26c13d=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x3b25e6 of _0x26c13d){const _0x4fcac1=_0x3b25e6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4fcac1))return;}Xt(this['editor']['model'],this['_command'],_0x26c13d);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x29f64b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3577e3,_0x218f6d){super(),this['id']=_0x218f6d['id'],this['type']=_0x218f6d['type'],this['subType']=_0x218f6d['subType']||null,this['author']=_0x218f6d['author'],this['creator']=_0x218f6d['creator']||_0x218f6d['author'],this['isExternal']=Boolean(_0x218f6d['attributes']&&_0x218f6d['attributes']['@external']),this['data']=null,this['_model']=_0x3577e3,this['_onAccept']=_0x218f6d['onAccept'],this['_onDiscard']=_0x218f6d['onDiscard'],this['_onAttributesChange']=_0x218f6d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x218f6d['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 _0x3f5d9e=this;for(;_0x3f5d9e['previous'];)_0x3f5d9e=_0x3f5d9e['previous'];return _0x3f5d9e;}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'](_0x2e9d7c){this['_markerNames']['add'](_0x2e9d7c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3b85a8=>this['_model']['markers']['get'](_0x3b85a8))['filter'](_0xd0742e=>_0xd0742e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x577e94=>{for(const _0x4bb149 of this['getMarkers']())_0x577e94['removeMarker'](_0x4bb149);}),this['_markerNames']['clear']();}['removeMarker'](_0x11972d){this['_model']['change'](_0x26d96a=>{_0x26d96a['removeMarker'](_0x11972d);}),this['_markerNames']['delete'](_0x11972d);}['addRange'](_0x5220f4){const _0x5b34d6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5b34d6),this['_model']['change'](_0x3838cc=>{_0x3838cc['addMarker'](_0x5b34d6,{'range':_0x5220f4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x17b20d){for(const _0x17ee46 of this['getRanges']())if(_0x17ee46['isIntersecting'](_0x17b20d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x11a421=>_0x11a421['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x42184c,_0x21e0af)=>[..._0x42184c,..._0x21e0af['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5eef4b=this['getRanges']();if(0x1!=_0x5eef4b['length'])return null;const _0x3db75e=_0x5eef4b[0x0],_0x299365=_0x3db75e['start']['nodeAfter'],_0x20ee7b=_0x3db75e['end']['nodeBefore'];return _0x299365 instanceof _0x322f1d?_0x299365!=_0x20ee7b?null:_0x299365: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 _0x339027=[];let _0x3d5abb=this['head'];for(;_0x3d5abb;)_0x339027['push'](_0x3d5abb),_0x3d5abb=_0x3d5abb['next'];return _0x339027;}['setAttribute'](_0x3e61c9,_0x44ff2b){const _0x17d207=_0x29a02a(this['attributes']);_0x32359c(_0x17d207,_0x3e61c9,_0x44ff2b),_0x2e7dfd(_0x17d207,this['attributes'])||(this['attributes']=_0x17d207,this['_onAttributesChange'](_0x17d207));}['removeAttribute'](_0x2ef41e){const _0x3326e8=_0x29a02a(this['attributes']);_0x4cdd25(_0x3326e8,_0x2ef41e),_0x2e7dfd(_0x3326e8,this['attributes'])||(this['attributes']=_0x3326e8,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 _0x46f059()['substr'](0x1,0x5);}}function o(_0x16ee2a,_0x199a52,_0x22435d){const _0x570fb3=_0x16ee2a['t'],t=_0x16ee2a['t'];switch(_0x199a52){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',_0x22435d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x22435d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x22435d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x22435d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x22435d);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',_0x22435d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x22435d);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',_0x22435d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x22435d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x22435d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x22435d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x22435d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x22435d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x22435d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x22435d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x22435d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x22435d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x22435d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x22435d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x22435d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x22435d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x22435d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x22435d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x22435d);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'},_0x22435d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x22435d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x22435d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x22435d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x22435d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x22435d);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'},_0x22435d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x22435d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x22435d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x22435d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x22435d);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'},_0x22435d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x22435d);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'},_0x22435d);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'},_0x22435d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x22435d);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'},_0x22435d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x22435d);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'},_0x22435d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x22435d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x22435d);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'},_0x22435d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x22435d);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 _0x570fb3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x22435d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x570fb3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x22435d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x22435d);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'},_0x22435d);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'},_0x22435d);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'},_0x22435d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x199a52;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2a12c5,_0x2c7bf3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2a12c5,this['_locale']=_0x2c7bf3;}['getDescriptions'](_0x3adfde){const _0x3b9392=[],_0x506688=new Set(),_0x5e8343=new Set();for(let _0x3f7e09=0x0;_0x3f7e09<_0x3adfde['length'];_0x3f7e09++){const _0x67a42b=_0x3adfde[_0x3f7e09];if(!_0x67a42b['isInContent'])continue;const _0x28bc48=this['_handleCustomCallbackDescription'](_0x67a42b);if(_0x28bc48){if(null!=_0x67a42b['subType']){if(_0x506688['has'](_0x67a42b['subType']))continue;_0x506688['add'](_0x67a42b['subType']);}_0x3b9392['push'](_0x28bc48);}else{if('attribute'!=_0x67a42b['type'])'insertion'!=_0x67a42b['type']&&'deletion'!=_0x67a42b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3b9392,_0x67a42b,_0x3adfde[_0x3f7e09+0x1]);else{const _0x56d11a=_0x67a42b['data']['key'];if(_0x5e8343['has'](_0x56d11a))continue;_0x5e8343['add'](_0x67a42b['data']['key']),_0x56d11a==m?this['_handleRenameSuggestionDescription'](_0x3b9392,_0x67a42b):this['_handleAttributeSuggestionDescription'](_0x3b9392,_0x67a42b);}}}return this['_resolveDescriptionItems'](_0x3b9392);}['registerDescriptionCallback'](_0x4d5bce){this['_customCallbacks']['push'](_0x4d5bce);}['registerElementLabel'](_0x470dd1,_0x3f7db9,_0x41317c=_0x16c4bf['normal']){'function'==typeof _0x470dd1?_0x87288b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x470dd1,'label':_0x3f7db9,'priority':_0x41317c}):this['_itemLabels']['set'](_0x470dd1,_0x3f7db9);}['registerAttributeLabel'](_0x218d45,_0x2396dd){this['_attributeLabels']['set'](_0x218d45,_0x2396dd);}['getItemLabel'](_0x2bf1d9,_0x5f4f57=0x1){let _0x36d57a;for(const _0x59a659 of this['_itemLabelsCallbacks'])if(_0x59a659['matchingCallback'](_0x2bf1d9)){_0x36d57a=_0x59a659['label'];break;}return _0x36d57a||(_0x36d57a=this['_itemLabels']['get'](_0x2bf1d9['name'])),_0x36d57a?_0x36d57a(_0x5f4f57):0x1!==_0x5f4f57?_0x5f4f57+'\x20'+_0x2bf1d9['name']+'s':''+_0x2bf1d9['name'];}['_addDescriptionItems'](_0x5200f9,_0xccaf37){const _0x3173a9=_0xccaf37['getFirstRange']()['getWalker'](),_0x7b3adb='insertion'==_0xccaf37['type']?'add':'remove';for(const _0x463f2f of _0x3173a9){const _0x22fcf8=_0x463f2f['item'],_0x10371b=_0x5200f9[_0x5200f9['length']-0x1];if(_0x22fcf8['is']('$textProxy'))_0x10371b&&_0x10371b['type']['indexOf']('Container')>-0x1&&_0x5200f9['pop'](),_0x10371b&&'text'==_0x10371b['type']?_0x10371b[_0x7b3adb]+=_0x22fcf8['data']:_0x5200f9['push']({'type':'text','add':'add'==_0x7b3adb?_0x22fcf8['data']:'','remove':'remove'==_0x7b3adb?_0x22fcf8['data']:''});else{if(this['_schema']['isObject'](_0x22fcf8)){const _0x21a90b=_0x22fcf8;if(_0x10371b&&_0x10371b['type']['indexOf']('Container')>-0x1&&_0x5200f9['pop'](),'elementEnd'==_0x463f2f['type'])continue;_0x10371b&&_0x10371b['type']==_0x7b3adb+'Object'&&_0x10371b['element']['name']==_0x21a90b['name']?_0x10371b['quantity']++:_0x5200f9['push']({'type':_0x7b3adb+'Object','element':_0x21a90b,'quantity':0x1}),_0x3173a9['skip'](_0x2467b9=>!('elementEnd'==_0x2467b9['type']&&_0x2467b9['item']==_0x22fcf8));}else{if(this['_schema']['checkChild'](_0x22fcf8,'$text')||_0x22fcf8['is']('element','softBreak')){const _0x367344=_0x22fcf8;if('add'==_0x7b3adb&&'elementStart'==_0x463f2f['type']||'remove'==_0x7b3adb&&'elementEnd'==_0x463f2f['type'])continue;if(_0x10371b&&-0x1==_0x10371b['type']['indexOf']('Container')){'text'==_0x10371b['type']&&(_0x10371b[_0x7b3adb]+='\x0a');continue;}let _0x541dc2;if(_0x541dc2='add'==_0x7b3adb?_0x367344['nextSibling']&&!this['_schema']['isObject'](_0x367344['nextSibling'])?_0x367344['nextSibling']:null:_0x367344['previousSibling']&&!this['_schema']['isObject'](_0x367344['previousSibling'])?_0x367344['previousSibling']:null,_0x367344['isEmpty']||_0x541dc2&&_0x541dc2['isEmpty']){const _0x36d7c0=_0x541dc2&&_0x541dc2['isEmpty']?_0x541dc2:_0x367344;_0x10371b&&_0x10371b['type']==_0x7b3adb+'EmptyContainer'&&_0x10371b['element']['name']==_0x36d7c0['name']?_0x10371b['quantity']++:_0x5200f9['push']({'type':_0x7b3adb+'EmptyContainer','element':_0x36d7c0,'quantity':0x1});}else _0x5200f9['push']({'type':_0x7b3adb+'Container','element':_0x367344});}}}}}['_resolveDescriptionItems'](_0x3e8d50){const _0x1c2281=this['_locale'],_0x5990e6=[],_0x3e28d5=[],_0x50e79b=[];for(const _0x61053a of _0x3e8d50)switch(_0x61053a['type']){case'text':if(_0x61053a['add']=_0x61053a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x61053a['remove']=_0x61053a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x61053a['add']&&''!=_0x61053a['remove']){_0x5990e6['push']({'type':'replace','content':o(_0x1c2281,'REPLACE_TEXT',['\x22'+_0x61053a['remove']+'\x22','\x22'+_0x61053a['add']+'\x22'])});continue;}if(null!=_0x61053a['add']['match'](/^ +$/)){_0x5990e6['push']({'type':'insertion','content':o(_0x1c2281,'*Insert:*\x20%0',o(_0x1c2281,'ELEMENT_SPACE',_0x61053a['add']['length']))});continue;}if(null!=_0x61053a['remove']['match'](/^ +$/)){_0x5990e6['push']({'type':'deletion','content':o(_0x1c2281,'*Remove:*\x20%0',o(_0x1c2281,'ELEMENT_SPACE',_0x61053a['remove']['length']))});continue;}if(''!=_0x61053a['add']){_0x5990e6['push']({'type':'insertion','content':o(_0x1c2281,'*Insert:*\x20%0','\x22'+_0x61053a['add']+'\x22')});continue;}_0x5990e6['push']({'type':'deletion','content':o(_0x1c2281,'*Remove:*\x20%0','\x22'+_0x61053a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5990e6['push']({'type':'insertion','content':o(_0x1c2281,'*Insert:*\x20%0',this['getItemLabel'](_0x61053a['element'],_0x61053a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5990e6['push']({'type':'deletion','content':o(_0x1c2281,'*Remove:*\x20%0',this['getItemLabel'](_0x61053a['element'],_0x61053a['quantity']))});continue;case'addContainer':_0x5990e6['push']({'type':'insertion','content':o(_0x1c2281,'*Split:*\x20%0',this['getItemLabel'](_0x61053a['element'],_0x61053a['quantity']))});continue;case'removeContainer':_0x5990e6['push']({'type':'deletion','content':o(_0x1c2281,'*Merge:*\x20%0',this['getItemLabel'](_0x61053a['element'],_0x61053a['quantity']))});continue;case'addFormat':_0x3e28d5['push'](_0x61053a['key']);continue;case'removeFormat':_0x50e79b['push'](_0x61053a['key']);continue;default:_0x5990e6['push'](_0x61053a);}if(_0x3e28d5['length']){const _0x281531=_0x3e28d5['map'](_0x38b8b7=>this['_attributeLabels']['has'](_0x38b8b7)?this['_attributeLabels']['get'](_0x38b8b7):_0x38b8b7)['join'](',\x20');_0x5990e6['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x281531)});}if(_0x50e79b['length']){const _0xa5ff58=_0x50e79b['map'](_0x4d9dd1=>this['_attributeLabels']['has'](_0x4d9dd1)?this['_attributeLabels']['get'](_0x4d9dd1):_0x4d9dd1)['join'](',\x20');_0x5990e6['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xa5ff58)});}return _0x5990e6;}['_handleCustomCallbackDescription'](_0x45f7ee){for(const _0x291962 of this['_customCallbacks']){const _0x1e0992=_0x291962(_0x45f7ee);if(_0x1e0992&&'type'in _0x1e0992)return _0x1e0992;}}['_handleAttributeSuggestionDescription'](_0x358c58,_0x39a513){const _0x2767c1=_0x39a513['data'],_0x44eeb6=void 0x0===_0x2767c1['newValue']?'removeFormat':'addFormat';_0x358c58['push']({'type':_0x44eeb6,'key':_0x2767c1['key']});}['_handleRenameSuggestionDescription'](_0x2506dc,_0x24dec7){_0x2506dc['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x24dec7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4d4123,_0x1f11ab,_0x2d847d){if(this['_addDescriptionItems'](_0x4d4123,_0x1f11ab),_0x2d847d&&_0x2d847d['getFirstRange']()&&!_0x1f11ab['getFirstRange']()['end']['isEqual'](_0x2d847d['getFirstRange']()['start'])){const _0x69c595=_0x4d4123[_0x4d4123['length']-0x1],_0x42c243='insertion'==_0x1f11ab['type']?'add':'remove';_0x69c595&&'text'==_0x69c595['type']&&(_0x69c595[_0x42c243]+='\x0a');}}}class U extends _0x1f739f{['afterInit'](){const _0x1aaddb=this['editor'],_0x27fc98=_0x1aaddb['plugins']['get']('TrackChangesEditing');_0x1aaddb['commands']['get']('showAIAssistant')&&_0x27fc98['enableCommand']('showAIAssistant');}}class V extends _0x1f739f{['afterInit'](){const _0x16f449=this['editor'],_0x47274e=_0x16f449['locale'];if(!_0x16f449['plugins']['has']('AlignmentEditing'))return;const _0x198400=_0x16f449['plugins']['get']('TrackChangesEditing');_0x198400['enableDefaultAttributesIntegration']('alignment'),_0x198400['registerBlockAttribute']('alignment'),_0x198400['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x47274e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36cc77=this['editor'],_0x1c56fd=_0x36cc77['locale'];_0x36cc77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24a356=>{if('formatBlock'!=_0x24a356['type'])return;const {data:_0x40b3a7}=_0x24a356;if(_0x40b3a7&&'alignment'==_0x40b3a7['commandName']){const _0x3193ed=_0x40b3a7['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1c56fd,'*Format:*\x20%0',function(_0x29571f){switch(_0x29571f){case'left':return o(_0x1c56fd,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1c56fd,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1c56fd,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1c56fd,'FORMAT_JUSTIFY_TEXT');}}(_0x3193ed))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1f739f{['afterInit'](){const _0x4cf03a=this['editor'],_0x35039f=_0x4cf03a['plugins']['get']('TrackChangesEditing'),_0x38ef98=_0x4cf03a['locale'];for(const _0x181cb6 of Zt){if(!_0x4cf03a['plugins']['has'](_0x181cb6))continue;const _0x2e94ae=_0x181cb6['slice'](0x0,-0x7)['toLowerCase'](),_0x46dc2f='FORMAT_'+_0x2e94ae['toUpperCase']();_0x35039f['enableDefaultAttributesIntegration'](_0x2e94ae),_0x35039f['registerInlineAttribute'](_0x2e94ae),_0x35039f['descriptionFactory']['registerAttributeLabel'](_0x2e94ae,o(_0x38ef98,_0x46dc2f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1354ea=this['editor'],_0x2a3bc5=_0x1354ea['locale'],_0x2f878c=_0x1354ea['plugins']['get']('TrackChangesEditing');function _0x49da60(_0x1a6e50,_0x43eadd){_0x2f878c['descriptionFactory']['registerDescriptionCallback'](_0x42a804=>{if('formatInline'!=_0x42a804['type'])return;const {data:_0x5639f1}=_0x42a804;return _0x5639f1&&_0x5639f1['commandName']===_0x1a6e50?_0x5639f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a3bc5,'*Format:*\x20%0',_0x43eadd)}:{'type':'format','content':o(_0x2a3bc5,'*Remove\x20format:*\x20%0',_0x43eadd)}:void 0x0;});}_0x49da60('bold',o(_0x2a3bc5,'FORMAT_BOLD')),_0x49da60('italic',o(_0x2a3bc5,'FORMAT_ITALIC')),_0x49da60('underline',o(_0x2a3bc5,'FORMAT_UNDERLINE')),_0x49da60('code',o(_0x2a3bc5,'FORMAT_CODE')),_0x49da60('strikethrough',o(_0x2a3bc5,'FORMAT_STRIKETHROUGH')),_0x49da60('subscript',o(_0x2a3bc5,'FORMAT_SUBSCRIPT')),_0x49da60('superscript',o(_0x2a3bc5,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1f739f{['afterInit'](){const _0x300531=this['editor'],_0x3636bd=_0x300531['locale'];if(!_0x300531['plugins']['has']('BlockQuoteEditing'))return;const _0x16da91=_0x300531['plugins']['get']('TrackChangesEditing'),_0x190753=this['editor']['commands']['get']('blockQuote');_0x16da91['enableCommand']('blockQuote',(_0x302b2d,_0x11778d={})=>{const _0x48ab12=this['editor']['model']['document']['selection'],_0x27426b=_0x11778d&&void 0x0!==_0x11778d['forceValue']?_0x11778d['forceValue']:!_0x190753['value'];let _0x53bc4a=[];if(_0x27426b){const _0x2cd330=Array['from'](_0x48ab12['getSelectedBlocks']())['filter'](_0x266fa0=>oo(_0x266fa0)||function(_0x1c9dd9,_0x4d3506){const _0x91f2ec=_0x4d3506['checkChild'](_0x1c9dd9['parent'],'blockQuote'),_0x45a7f2=_0x4d3506['checkChild'](['$root','blockQuote'],_0x1c9dd9);return _0x91f2ec&&_0x45a7f2;}(_0x266fa0,this['editor']['model']['schema']));_0x53bc4a=to(_0x2cd330,_0x300531['model']);}else{const _0x3a0b52=Array['from'](_0x48ab12['getSelectedBlocks']())['filter'](_0x560366=>oo(_0x560366));_0x53bc4a=to(_0x3a0b52,_0x300531['model']);}_0x300531['model']['change'](()=>{for(const _0xebd489 of _0x53bc4a)_0x16da91['markBlockFormat'](_0xebd489,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x27426b}]});});}),_0x16da91['descriptionFactory']['registerDescriptionCallback'](_0x2f5dfe=>{const {data:_0x382fcd}=_0x2f5dfe;if(_0x382fcd&&'blockQuote'==_0x382fcd['commandName']){const _0x92d5d0=o(_0x3636bd,'ELEMENT_BLOCK_QUOTE');return _0x382fcd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3636bd,'*Set\x20format:*\x20%0',_0x92d5d0)}:{'type':'format','content':o(_0x3636bd,'*Remove\x20format:*\x20%0',_0x92d5d0)};}});}}function oo(_0x48b8be){return'blockQuote'==_0x48b8be['parent']['name'];}class L extends _0x1f739f{['afterInit'](){const _0x464553=this['editor'],_0x4f8d31=_0x464553['locale'],_0x5f3426=_0x464553['plugins']['get']('TrackChangesEditing');_0x464553['plugins']['has']('BookmarkEditing')&&(_0x5f3426['enableCommand']('insertBookmark'),_0x5f3426['enableDefaultAttributesIntegration']('updateBookmark'),_0x5f3426['registerBlockAttribute']('bookmarkId'),_0x5f3426['descriptionFactory']['registerDescriptionCallback'](_0xb4fdba=>{if('insertion'!=_0xb4fdba['type']&&'deletion'!=_0xb4fdba['type']&&'attribute'!=_0xb4fdba['type'])return;const _0x2d5df8=_0xb4fdba['getContainedElement']();if(null==_0x2d5df8)return;if(!_0x2d5df8['is']('element','bookmark'))return;const _0x38776d=_0x2d5df8['getAttribute']('bookmarkId');if('insertion'==_0xb4fdba['type'])return{'type':'insertion','content':o(_0x4f8d31,'*Insert:*\x20%0','\x22'+_0x38776d+'\x22\x20'+o(_0x4f8d31,'ELEMENT_BOOKMARK'))};if('deletion'==_0xb4fdba['type'])return{'type':'deletion','content':o(_0x4f8d31,'*Remove:*\x20%0','\x22'+_0x38776d+'\x22\x20'+o(_0x4f8d31,'ELEMENT_BOOKMARK'))};const {data:_0x19a376}=_0xb4fdba;if(!_0x19a376||'bookmarkId'!=_0x19a376['key'])return;return{'type':'format','content':o(_0x4f8d31,'*Set\x20bookmark:*\x20%0','\x22'+_0x19a376['newValue']+'\x22')};}));}}class J extends _0x1f739f{['afterInit'](){const _0x54864c=this['editor'];_0x54864c['plugins']['has']('CaseChange')&&(_0x54864c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x54864c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x54864c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1f739f{['afterInit'](){const _0x368616=this['editor'];_0x368616['commands']['get']('ckbox')&&_0x368616['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x1f739f{['afterInit'](){const _0x9ad28a=this['editor'];if(!_0x9ad28a['plugins']['has']('CodeBlock'))return;const _0x3b6a8d=_0x9ad28a['plugins']['get']('TrackChangesEditing'),_0x5cec0f=_0x9ad28a['locale'],_0x3838=_0x9ad28a['config']['get']('codeBlock')['languages'],_0x40da1f=_0x9ad28a['commands']['get']('codeBlock');_0x3b6a8d['enableCommand']('indentCodeBlock'),_0x3b6a8d['enableCommand']('outdentCodeBlock'),_0x3b6a8d['enableCommand']('codeBlock',(_0x370c81,_0x1e5e82={})=>{const _0xa832b1=_0x9ad28a['model'],_0x1062b9=_0x9ad28a['model']['document']['selection'],_0x38461d=_0x1e5e82&&void 0x0!==_0x1e5e82['forceValue']?_0x1e5e82['forceValue']:!_0x40da1f['value'];let _0x246abc;_0x1e5e82['language']||(_0x1e5e82['language']=_0x3838[0x0]['language']),_0x246abc=_0x38461d?Array['from'](_0x1062b9['getSelectedBlocks']())['filter'](_0x222b91=>eo(_0x222b91)||function(_0x2582fb,_0x453287){if(_0x2582fb['is']('rootElement')||_0x453287['isLimit'](_0x2582fb))return!0x1;return _0x453287['checkChild'](_0x2582fb['parent'],'codeBlock');}(_0x222b91,_0xa832b1['schema'])):Array['from'](_0x1062b9['getSelectedBlocks']())['filter'](_0x4ddb2d=>eo(_0x4ddb2d));const _0x5ca2e0=to(_0x246abc,_0xa832b1);_0xa832b1['change'](()=>{for(const _0x4620fb of _0x5ca2e0)_0x3b6a8d['markBlockFormat'](_0x4620fb,{'commandName':'codeBlock','commandParams':[{..._0x1e5e82,'forceValue':_0x38461d}],'formatGroupId':'blockName'});});}),(_0x3b6a8d['descriptionFactory']['registerElementLabel']('codeBlock',_0x1219c4=>o(_0x5cec0f,'ELEMENT_CODE_BLOCK',_0x1219c4)),_0x3b6a8d['descriptionFactory']['registerDescriptionCallback'](_0x3cca81=>{if('formatBlock'!=_0x3cca81['type'])return;const _0x532ae0=_0x5cec0f['t'],{data:_0x2abbf9}=_0x3cca81;if(!_0x2abbf9||'codeBlock'!=_0x2abbf9['commandName'])return;const _0x51f14e=_0x2abbf9['commandParams'][0x0]['language'],_0x5d2fe6=_0x532ae0(_0x3838['find'](_0x57a1fa=>_0x57a1fa['language']===_0x51f14e)['label'])['toLowerCase']();return _0x2abbf9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5cec0f,'*Set\x20format:*\x20%0',o(_0x5cec0f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5d2fe6+')')}:{'type':'format','content':o(_0x5cec0f,'*Remove\x20format:*\x20%0',o(_0x5cec0f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3707e2){return'codeBlock'==_0x3707e2['name'];}class z extends _0x1f739f{['afterInit'](){const _0x32f648=this['editor'];if(!_0x32f648['plugins']['has']('CommentsEditing'))return;_0x32f648['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x527918,_0x33f026,_0x2027d1){const _0x391bd4=[];for(const _0x39655a of _0x33f026['getItems']())_0x39655a['hasAttribute'](_0x527918)&&_0x391bd4['push'](_0x2027d1['createRangeOn'](_0x39655a));return _0x391bd4;}function Ne(_0x33e92c,_0x853965,{showActiveMarker:_0xc3d1a8=!0x0}={}){const _0x206b61=_0x33e92c['plugins']['get']('TrackChangesEditing');return(_0x2579b0,_0x3795ee,_0x268452)=>{if(!_0x268452['consumable']['test'](_0x3795ee['markerRange'],_0x2579b0['name']))return;const _0xcbd7fb=_0x3795ee['markerRange']['getWalker'](),_0x56be34=_0x3795ee['markerRange']['start'],_0x4e71c7=_0x33e92c['model']['schema'];let _0x19b211=null,_0x401db9=null,_0x4bb30e=!0x1,_0x534e9e=!0x1;for(const _0x1327e5 of _0xcbd7fb){const _0x519a57=_0x1327e5['item'];_0x4bb30e=_0x4bb30e||_0x4e71c7['isContent'](_0x519a57);const _0x4b42ff=_0x268452['mapper']['toViewElement'](_0x519a57);if(_0x4b42ff&&_0x4b42ff['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1327e5['type']&&(_0x4e71c7['isBlock'](_0x519a57)&&!_0x4e71c7['isLimit'](_0x519a57)&&(_0x519a57['nextSibling']||_0x56be34['isAtEnd']?_0x19b211&&_0x19b211['parent']==_0x519a57||(_0x19b211=_0x519a57,_0x5f017a(_0x1327e5['previousPosition']),_0x534e9e=!0x0):_0x401db9=_0x401db9||_0x1327e5['previousPosition']));}function _0x5f017a(_0x1d9130){const {authorId:_0x434566}=_0x206b61['_splitMarkerName'](_0x3795ee['markerName']),_0x9f9689=_0x268452['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x853965,'data-author-id':_0x434566}),_0x47b346=_0x268452['mapper']['toViewPosition'](_0x1d9130);_0xc3d1a8&&_0x206b61['activeMarkers']['includes'](_0x3795ee['markerName'])&&_0x268452['writer']['addClass']('ck-suggestion-marker--active',_0x9f9689),_0x268452['writer']['insert'](_0x47b346,_0x9f9689),_0x268452['mapper']['bindElementToMarker'](_0x9f9689,_0x3795ee['markerName']);}_0x4bb30e||_0x534e9e||!_0x401db9||_0x5f017a(_0x401db9);};}class K extends _0x1f739f{static get['requires'](){return[_0x24be65];}['init'](){const _0x1d9489=this['editor'],_0x304573=_0x1d9489['plugins']['get']('TrackChangesEditing');_0x304573['enableCommand']('delete');const _0x60fb66=_0x1d9489['commands']['get']('deleteForward');_0x304573['enableCommand']('deleteForward',(_0xf10b09,_0x4d53b9={})=>{const _0x187a01=_0x1d9489['model']['createSelection'](_0x1d9489['model']['document']['selection']);_0x187a01['isCollapsed']&&_0x1d9489['model']['modifySelection'](_0x187a01,{'direction':'forward','unit':_0x4d53b9['unit']});const _0x23ba45=_0x187a01['getFirstRange'](),_0x253ece=_0x1c86da['fromRange'](_0x23ba45);let _0x5958d3;_0xf10b09(_0x4d53b9),_0x5958d3='$graveyard'==_0x253ece['root']['rootName']?_0x1d9489['model']['createRange'](_0x23ba45['start']):_0x1d9489['model']['createRange'](_0x253ece['start'],_0x253ece['end']),_0x253ece['detach'](),_0x1d9489['model']['enqueueChange'](_0x60fb66['buffer']['batch'],_0xd429d3=>{_0x60fb66['buffer']['lock'](),_0xd429d3['setSelection'](_0xd429d3['createRange'](_0x5958d3['end'])),_0x60fb66['buffer']['unlock']();});}),_0x1d9489['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x1d9489,'merge'),{'priority':'high'}),_0x1d9489['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x17c523,_0xa64a66,_0x3f78d8)=>{_0x3f78d8['options']['showSuggestionHighlights']&&Ne(_0x1d9489,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x17c523,_0xa64a66,_0x3f78d8);},{'priority':'high'}),_0x1d9489['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4ffa94,_0xaaf05a,_0x4d0464)=>{const _0x2a4633=_0x4d0464['mapper']['markerNameToElements'](_0xaaf05a['markerName']);if(_0x2a4633){for(const _0x3cd941 of _0x2a4633)_0x3cd941['is']('uiElement')&&(_0x4d0464['mapper']['unbindElementFromMarkerName'](_0x3cd941,_0xaaf05a['markerName']),_0x4d0464['writer']['remove'](_0x3cd941));}},{'priority':'high'});}}class W extends _0x1f739f{['afterInit'](){const _0x1b68c9=this['editor'];if(!_0x1b68c9['plugins']['has']('ListEditing'))return;const _0x165f92=_0x1b68c9['locale'],_0x530352=_0x1b68c9['plugins']['get']('TrackChangesEditing'),_0x110f95=_0x1b68c9['plugins']['has']('TodoListEditing'),_0x198d6e=!!_0x1b68c9['config']['get']('list.multiBlock');function _0x33a4fc(_0x5d0ce8){return{'type':'format','content':''+o(_0x165f92,'*Set\x20format:*\x20%0',_0x5d0ce8)};}function _0x52167d(_0x5efb75){return{'type':'format','content':''+o(_0x165f92,'*Remove\x20format:*\x20%0',_0x5efb75)};}_0x530352['enableDefaultAttributesIntegration']('numberedList'),_0x530352['enableDefaultAttributesIntegration']('bulletedList'),_0x530352['enableDefaultAttributesIntegration']('customNumberedList'),_0x530352['enableDefaultAttributesIntegration']('customBulletedList'),_0x530352['enableDefaultAttributesIntegration']('indentList'),_0x530352['enableDefaultAttributesIntegration']('outdentList'),_0x530352['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x530352['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x530352['registerBlockAttribute']('listItemId'),_0x530352['registerBlockAttribute']('listType'),_0x530352['registerBlockAttribute']('listIndent'),_0x198d6e&&(_0x530352['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x530352['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x110f95&&(_0x530352['enableDefaultAttributesIntegration']('todoList'),_0x530352['enableDefaultAttributesIntegration']('checkTodoList'),_0x530352['registerBlockAttribute']('todoListChecked'),_0x530352['descriptionFactory']['registerDescriptionCallback'](_0x42488e=>{const {data:_0x8b458}=_0x42488e;if(_0x8b458&&'todoListChecked'==_0x8b458['key'])return{'type':'format','content':_0x8b458['newValue']?o(_0x165f92,'*Check\x20item*'):o(_0x165f92,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x381dbe=>{if(_0x381dbe['batch']['isUndo'])return!0x1;let _0x1b13ae=!0x1;const _0x652cd2=_0x530352['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42f9a9=>'todoListChecked'===_0x530352['_getAttributeKey'](_0x42f9a9));for(const _0x3a7a58 of _0x652cd2){'todo'!=_0x3a7a58['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x530352['_findSuggestions'](_0x3a7a58['getFirstRange'](),'attribute')['find'](_0x5d397b=>'listType'===_0x530352['_getAttributeKey'](_0x5d397b['suggestion']))||(_0x381dbe['removeMarker'](_0x3a7a58['getFirstMarker']()),_0x1b13ae=!0x0));}return _0x1b13ae;})),_0x530352['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x165f92,'FORMAT_INDENT'));const _0x4a510e={'type':'format','content':''};_0x530352['descriptionFactory']['registerDescriptionCallback'](_0xcb9dff=>{const {data:_0x1194d1}=_0xcb9dff;if(!_0x1194d1||'listType'!=_0x1194d1['key'])return;let _0x460d2f=_0xcb9dff['head'];for(;_0x460d2f;){if(_0x460d2f['data']&&(('listStyle'==_0x460d2f['data']['key']||'listMarkerStyle'==_0x460d2f['data']['key'])&&(_0x460d2f['data']['newValue']&&'default'!=_0x460d2f['data']['newValue']||'default'!=_0x460d2f['data']['oldValue']&&!_0x1194d1['newValue'])||!_0x198d6e&&_0x460d2f['data']['key']==m))return _0x4a510e;_0x460d2f=_0x460d2f['next'];}if(null==_0x1194d1['newValue'])switch(_0x1194d1['oldValue']){case'bulleted':return _0x52167d(o(_0x165f92,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x52167d(o(_0x165f92,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x52167d(o(_0x165f92,'ELEMENT_TODO_LIST'));}switch(_0x1194d1['newValue']){case'bulleted':return _0x33a4fc(o(_0x165f92,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33a4fc(o(_0x165f92,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33a4fc(o(_0x165f92,'ELEMENT_TODO_LIST'));}}),_0x530352['descriptionFactory']['registerDescriptionCallback'](_0xefaab2=>{const {data:_0x55aae8}=_0xefaab2;if(_0x55aae8&&'listIndent'==_0x55aae8['key'])return null==_0x55aae8['newValue']||null==_0x55aae8['oldValue']&&0x0==_0x55aae8['newValue']?_0x4a510e:void 0x0;}),_0x530352['descriptionFactory']['registerDescriptionCallback'](_0x299d63=>{if('attribute'!=_0x299d63['type'])return;const {data:_0x209533}=_0x299d63;if(!_0x209533||'listItemId'!=_0x209533['key'])return;const _0x178400=Te(_0x299d63);return'newValue'==_0x178400?{'type':'format','content':o(_0x165f92,'*Merge:*\x20list\x20item')}:'oldValue'==_0x178400?{'type':'format','content':o(_0x165f92,'*Split:*\x20list\x20item')}:_0x4a510e;}),_0x1b68c9['model']['document']['registerPostFixer'](_0x49ae44=>this['listItemIdFixer'](_0x49ae44)),_0x1b68c9['model']['document']['registerPostFixer'](_0x236deb=>this['noTrackChangesFixer'](_0x236deb)),_0x1b68c9['model']['document']['on']('change:data',(_0x2c9fb7,_0x1031ea)=>{if(_0x1031ea['isUndo']||!_0x1031ea['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4c28b3){if(_0x4c28b3['batch']['isUndo']||!_0x4c28b3['batch']['isLocal'])return!0x1;let _0x5e447f=!0x1;const _0x5e7df6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56ba2d=>_0x56ba2d['data']&&'listItemId'==_0x56ba2d['data']['key'])['filter'](_0x13bcb8=>_0x13bcb8['data']['newValue']&&_0x13bcb8['data']['oldValue']);for(const _0x58cec9 of _0x5e7df6)Te(_0x58cec9)||(_0x4c28b3['removeMarker'](_0x58cec9['getFirstMarker']()),_0x5e447f=!0x0);return _0x5e447f;}['noTrackChangesFixer'](_0x2ede20){if(_0x2ede20['batch']['isUndo']||!_0x2ede20['batch']['isLocal'])return!0x1;const _0x53c4cd=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x53c4cd['trackChangesCommand']['value'])return!0x1;let _0x5b2593=!0x1;const _0x22413d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1dcb9d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x14285f=>'attribute'==_0x14285f['type'])['filter'](_0x4c395f=>_0x22413d['includes'](_0x4c395f['attributeKey']));if(0x0==_0x1dcb9d['length'])return _0x5b2593;for(const _0x3540da of _0x1dcb9d){const _0x43f875=_0x53c4cd['_findSuggestions'](_0x3540da['range'],'attribute')['filter'](_0x14c069=>!_0x14c069['meta']['isNextTo'])['map'](_0x39c20a=>_0x39c20a['suggestion'])['filter'](_0x291179=>{const _0x4969be=_0x53c4cd['_getAttributeKey'](_0x291179);return _0x22413d['includes'](_0x4969be);});if(_0x43f875['length']){for(const _0x2c8480 of _0x43f875)_0x2ede20['removeMarker'](_0x2c8480['getFirstMarker']());_0x5b2593=!0x0;}}return _0x5b2593;}['assureChains'](){const _0x6004e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b6104=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x6e9770;const _0x27043b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x11446e=>{if(_0x11446e['data']['oldRange']||!_0x11446e['data']['newRange'])return null;if(!_0x11446e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5589a9}=_0x6004e1['_splitMarkerName'](_0x11446e['name']);if(!_0x6004e1['hasSuggestion'](_0x5589a9))return null;const _0x467894=_0x6004e1['getSuggestion'](_0x5589a9);return _0x3b6104['includes'](_0x467894['data']['key']);})['map'](_0x51e8ae=>{const {id:_0x4c47d3}=_0x6004e1['_splitMarkerName'](_0x51e8ae['name']),_0x45ea66=_0x6004e1['getSuggestion'](_0x4c47d3);return _0x6e9770=_0x45ea66['attributes']['groupId'],_0x45ea66['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x27043b['size'])return;const _0x4d8d26=_0x6004e1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x100514=>'attribute'==_0x100514['type']&&_0x100514['data']&&_0x3b6104['includes'](_0x100514['data']['key'])&&_0x100514['attributes']['groupId']!=_0x6e9770)['map'](_0x22e6ea=>({'listItem':_0x22e6ea['getFirstRange']()['start']['nodeAfter'],'groupId':_0x22e6ea['attributes']['groupId']})),_0x149e55=new Set();for(const {groupId:_0x1ac851,listItem:_0x1e7e1b}of _0x4d8d26)_0x27043b['has'](_0x1e7e1b)&&_0x149e55['add'](_0x1ac851);for(const _0x32fe7e of _0x6004e1['getSuggestions']())_0x149e55['has'](_0x32fe7e['attributes']['groupId'])&&_0x32fe7e['setAttribute']('groupId',_0x6e9770);}['_supportLegacySuggestions'](){const _0x32f921=this['editor'],_0x72e89=_0x32f921['locale'],_0x1f7366=_0x32f921['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1f7366['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2e81c0,_0x5d5b48){const _0x444b07=[];for(let _0x40a214 of _0x2e81c0)_0x40a214['start']['nodeAfter']===_0x40a214['end']['parent']&&(_0x40a214=_0x32f921['model']['createRange'](_0x32f921['model']['createPositionAt'](_0x40a214['start']['nodeAfter'],0x0))),_0x444b07['push'](_0x40a214);_0x32f921['model']['change'](_0x46d232=>{const _0x1b4baa=_0x32f921['model']['document']['selection'],_0x127a15=Array['from'](_0x1b4baa['getRanges']())['map'](_0x21b988=>_0x1c86da['fromRange'](_0x21b988));_0x46d232['setSelection'](_0x444b07),_0x32f921['commands']['get'](_0x5d5b48['commandName'])['refresh'](),_0x5d5b48['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x32f921['execute'](_0x5d5b48['commandName'],..._0x5d5b48['commandParams']),_0x46d232['setSelection'](_0x127a15);for(const _0x584221 of _0x127a15)_0x584221['detach']();});}),_0x1f7366['descriptionFactory']['registerElementLabel'](function(_0x455d9d){const _0xd3b06d=!_0x32f921['model']['schema']['isObject'](_0x455d9d),_0x263d4f=_0x455d9d['previousSibling'],_0x1248c7=_0x455d9d['nextSibling'],_0x1fb320=_0x455d9d['getAttribute']('listItemId'),_0xfecad2=!_0x263d4f||_0x263d4f['getAttribute']('listItemId')!==_0x1fb320,_0x1521a6=!_0x1248c7||_0x1248c7['getAttribute']('listItemId')!==_0x1fb320;return _0xd3b06d&&Boolean(_0x1fb320)&&_0xfecad2&&_0x1521a6;},_0x1b3fc1=>o(_0x72e89,'ELEMENT_LIST_ITEM',_0x1b3fc1));}['_registerLegacyDescription'](){const _0x456a80=this['editor'],_0x553442=_0x456a80['locale'];function _0x3acf1b(_0x283ef5){const _0x36a024=_0x456a80['commands']['get']('bulletedList')['value'],_0x2b559c=_0x456a80['commands']['get']('numberedList')['value'];return'numberedList'===_0x283ef5?_0x36a024:_0x2b559c;}_0x456a80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x84e487){if('formatBlock'!=_0x84e487['type'])return;const {data:_0x9e1c8a}=_0x84e487;if(!_0x9e1c8a)return;let _0x11c860,_0x30f137,_0x335a5a,_0x445d8f;switch(_0x9e1c8a['commandName']){case'bulletedList':_0x335a5a=_0x9e1c8a['commandParams'][0x0]['forceValue'],_0x445d8f=_0x3acf1b(_0x9e1c8a['commandName']),_0x11c860=_0x335a5a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x445d8f&&_0x456a80['config']['get']('list.multiBlock')||(_0x11c860='*Change\x20to:*\x20%0'),_0x30f137={'type':'format','content':o(_0x553442,_0x11c860,o(_0x553442,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x335a5a=_0x9e1c8a['commandParams'][0x0]['forceValue'],_0x445d8f=_0x3acf1b(_0x9e1c8a['commandName']),_0x11c860=_0x335a5a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x445d8f&&_0x456a80['config']['get']('list.multiBlock')||(_0x11c860='*Change\x20to:*\x20%0'),_0x30f137={'type':'format','content':o(_0x553442,_0x11c860,o(_0x553442,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x11c860='*Indent:*\x20%0',_0x30f137={'type':'format','content':o(_0x553442,_0x11c860,o(_0x553442,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x11c860=function(_0x2bab03){const _0x39a1b1=_0x2bab03['getFirstRange']();let _0x1ce2e6=_0x39a1b1['start']['nodeAfter'];for(;_0x1ce2e6&&_0x39a1b1['containsItem'](_0x1ce2e6);){if(_0x1ce2e6['getAttribute']('listIndent')>0x0)return!0x1;_0x1ce2e6=_0x1ce2e6['nextSibling'];}return!0x0;}(_0x84e487)?o(_0x553442,'*Format:*\x20remove\x20from\x20%0',o(_0x553442,function(_0x424e39){return'ELEMENT_'+_0x424e39['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x84e487))):o(_0x553442,'*Outdent:*\x20%0',o(_0x553442,'ELEMENT_LIST_ITEM')),_0x30f137={'type':'format','content':_0x11c860};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x9e1c8a['multipleBlocks']&&(_0x11c860='*Merge:*\x20%0',_0x30f137={'type':'deletion','content':o(_0x553442,_0x11c860,o(_0x553442,'ELEMENT_LIST_ITEM'))});}return _0x30f137;});}}function Te(_0x2f636b){let _0x1462fa=_0x2f636b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1462fa;){const _0x1cc1ec=_0x1462fa['getAttribute']('listItemId');if(!_0x1cc1ec)return!0x1;if(_0x1cc1ec==_0x2f636b['data']['newValue'])return'newValue';if(_0x1cc1ec==_0x2f636b['data']['oldValue'])return'oldValue';_0x1462fa=_0x1462fa['previousSibling'];}return!0x1;}class ye extends _0x1f739f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3678ce=this['editor']['config']['get']('list.properties'),_0x24bcdc=this['editor']['plugins']['get']('TrackChangesEditing');_0x3678ce['styles']&&(_0x24bcdc['enableDefaultAttributesIntegration']('listStyle'),_0x24bcdc['registerBlockAttribute']('listStyle')),_0x3678ce['reversed']&&(_0x24bcdc['enableDefaultAttributesIntegration']('listReversed'),_0x24bcdc['registerBlockAttribute']('listReversed')),_0x3678ce['startIndex']&&(_0x24bcdc['enableDefaultAttributesIntegration']('listStart'),_0x24bcdc['registerBlockAttribute']('listStart'));const _0x3270bc={'type':'format','content':''};_0x24bcdc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x54e711=this['editor']['locale'];_0x24bcdc['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x54e711,'FORMAT_LIST_REVERSED')),_0x24bcdc['descriptionFactory']['registerDescriptionCallback'](_0x23560b=>{const {data:_0x394ac9}=_0x23560b;if(_0x394ac9&&'listReversed'==_0x394ac9['key'])return null==_0x394ac9['newValue']||0x0==_0x394ac9['newValue']&&null==_0x394ac9['oldValue']?_0x3270bc:void 0x0;}),_0x24bcdc['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x54e711,'FORMAT_LIST_START')),_0x24bcdc['descriptionFactory']['registerDescriptionCallback'](_0x2da455=>{const {data:_0x50f4c9}=_0x2da455;if(_0x50f4c9&&'listStart'==_0x50f4c9['key'])return null==_0x50f4c9['newValue']||0x1==_0x50f4c9['newValue']&&null==_0x50f4c9['oldValue']?_0x3270bc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x34ccda=>{if(_0x34ccda['batch']['isUndo'])return!0x1;let _0x595273=!0x1;const _0x2c931b=_0x24bcdc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x215fbf=>{const _0x589562=_0x24bcdc['_getAttributeKey'](_0x215fbf);return'listStart'==_0x589562||'listReversed'==_0x589562;});for(const _0x8d1b6a of _0x2c931b){const _0x72a61f=_0x8d1b6a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x72a61f||'customNumbered'==_0x72a61f)continue;_0x24bcdc['_findSuggestions'](_0x8d1b6a['getFirstRange'](),'attribute')['find'](_0x2df8c7=>'listType'==_0x24bcdc['_getAttributeKey'](_0x2df8c7['suggestion']))||(_0x34ccda['removeMarker'](_0x8d1b6a['getFirstMarker']()),_0x595273=!0x0);}return _0x595273;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x333089){const _0xbe7f8b=this['editor']['locale'],{data:_0x3c8d41}=_0x333089,_0x27265a={'type':'format','content':''};if(!_0x3c8d41||'listStyle'!=_0x3c8d41['key'])return;if(!_0x3c8d41['oldValue'])return'default'==_0x3c8d41['newValue']?_0x27265a:{'type':'format','content':''+o(_0xbe7f8b,'*Set\x20format:*\x20%0',o(_0xbe7f8b,this['_getTranslationKeyForListStyle'](_0x3c8d41['newValue'])))};if(!_0x3c8d41['newValue']){if('default'==_0x3c8d41['oldValue'])return _0x27265a;let _0x16d9b5=_0x333089['head'];for(;_0x16d9b5;){if(_0x16d9b5['data']&&'listType'==_0x16d9b5['data']['key']&&_0x16d9b5['data']['newValue'])return _0x27265a;_0x16d9b5=_0x16d9b5['next'];}return{'type':'format','content':''+o(_0xbe7f8b,'*Remove\x20format:*\x20%0',o(_0xbe7f8b,this['_getTranslationKeyForListStyle'](_0x3c8d41['oldValue'])))};}if('default'!=_0x3c8d41['newValue'])return{'type':'format','content':''+o(_0xbe7f8b,'*Set\x20format:*\x20%0',o(_0xbe7f8b,this['_getTranslationKeyForListStyle'](_0x3c8d41['newValue'])))};let _0x87659e=_0x333089['head'];for(;_0x87659e;){if(_0x87659e['data']&&'listType'==_0x87659e['data']['key']&&_0x87659e['data']['newValue']&&_0x87659e['data']['oldValue'])return _0x27265a;_0x87659e=_0x87659e['next'];}return{'type':'format','content':o(_0xbe7f8b,'*Set\x20format:*\x20%0',o(_0xbe7f8b,'ELEMENT_'+_0x333089['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x24be0a=this['editor'],_0x39510e=_0x24be0a['locale'];_0x24be0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e3dba=>{if('formatBlock'!=_0x1e3dba['type'])return;const {data:_0xf4ef8b}=_0x1e3dba;if(!_0xf4ef8b)return;let _0x51921,_0x5b8fab;switch(_0xf4ef8b['commandName']){case'listStyle':_0x51921='*Change\x20to:*\x20%0',_0x5b8fab={'type':'format','content':o(_0x39510e,_0x51921,o(_0x39510e,this['_getTranslationKeyForListStyle'](_0xf4ef8b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x51921=_0xf4ef8b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5b8fab={'type':'format','content':o(_0x39510e,_0x51921)};break;case'listStart':_0x51921='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5b8fab={'type':'format','content':o(_0x39510e,_0x51921,_0xf4ef8b['commandParams'][0x0]['startIndex'])};}return _0x5b8fab;});}['_getTranslationKeyForListStyle'](_0x2346c8){return'ELEMENT_'+function(_0x58bf21){if(Se['includes'](_0x58bf21))return'bulleted';if(_e['includes'](_0x58bf21))return'numbered';return null;}(_0x2346c8)['toUpperCase']()+'_LIST_'+_0x2346c8['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x1f739f{static get['requires'](){return[_0x35b6d3];}['init'](){const _0x2632d7=this['editor'],_0x48ba6=_0x2632d7['plugins']['get']('TrackChangesEditing'),_0x179a2c=_0x2632d7['commands']['get']('enter');_0x48ba6['enableCommand']('enter',()=>{_0x2632d7['model']['change'](_0x4eed4b=>{const _0x5830b7=_0x2632d7['model']['document']['selection'],_0x2d5db8=_0x5830b7['getFirstPosition'](),_0x1c7699=_0x1c86da['fromRange'](_0x5830b7['getFirstRange']());if(_0x179a2c['enterBlock'](_0x4eed4b)){const _0x4f47e3=_0x2632d7['model']['createPositionAt'](_0x2d5db8['parent']['nextSibling'],0x0),_0x417d5c=_0x4eed4b['createRange'](_0x2d5db8,_0x4f47e3);_0x48ba6['markInsertion'](_0x417d5c);}else _0x4eed4b['setSelection'](_0x4eed4b['createRange'](_0x1c7699['end']));_0x1c7699['detach'](),_0x179a2c['fire']('afterExecute',{'writer':_0x4eed4b});});}),_0x2632d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x2632d7,'split'),{'priority':'high'}),_0x2632d7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x43a45f,_0x5c028e,_0x38ee5a)=>{const _0x25e683=_0x38ee5a['mapper']['markerNameToElements'](_0x5c028e['markerName']);if(_0x25e683){for(const _0x2f1f34 of _0x25e683)_0x2f1f34['hasClass']('ck-suggestion-marker-split')&&(_0x38ee5a['mapper']['unbindElementFromMarkerName'](_0x2f1f34,_0x5c028e['markerName']),_0x38ee5a['writer']['remove'](_0x2f1f34));}},{'priority':'high'}),_0x2632d7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x24721b,_0x3e236b,_0x5654f0)=>{_0x5654f0['options']['showSuggestionHighlights']&&Ne(_0x2632d7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x24721b,_0x3e236b,_0x5654f0);},{'priority':'high'});}}class Y extends _0x1f739f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x7c3ad1=this['editor']['plugins']['get']('TrackChangesEditing');_0x7c3ad1['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x7c3ad1['enableCommand']('findNext'),_0x7c3ad1['enableCommand']('findPrevious'),_0x7c3ad1['enableCommand']('replace'),_0x7c3ad1['enableCommand']('replaceAll');}['handleFindCommand'](_0x359278,_0x5e2e34,_0x45bf63={}){const _0x2b4db6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x359278(_0x545fc3=>{let _0x400491=('string'==typeof _0x5e2e34?_0x2b4db6['findByTextCallback'](_0x5e2e34,_0x45bf63):_0x5e2e34)(_0x545fc3);Array['isArray'](_0x400491)&&(_0x400491={'results':_0x400491,'searchText':'string'==typeof _0x5e2e34?_0x5e2e34:''});const _0x5c0083=_0x400491['results']['filter'](_0x372ffd=>!0x1===this['_isInDeletionRange'](_0x372ffd,_0x545fc3['item']));return{..._0x400491,'results':_0x5c0083};},_0x45bf63);}['_isInDeletionRange'](_0xcd583e,_0x3d8dc4){const _0x22bc63=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d8dc4,_0xcd583e['start']),this['editor']['model']['createPositionAt'](_0x3d8dc4,_0xcd583e['end']));for(const _0x548f8d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x22bc63['getIntersection'](_0x548f8d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x1f739f{['afterInit'](){const _0x101abd=this['editor']['locale'],_0x4be079=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5de061,commandName:_0xcea3f4}of ro)this['editor']['plugins']['has'](_0x5de061)&&(_0x4be079['enableDefaultAttributesIntegration'](_0xcea3f4),_0x4be079['registerInlineAttribute'](_0xcea3f4));_0x4be079['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x101abd,'FORMAT_FONT_SIZE')),_0x4be079['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x101abd,'FORMAT_FONT_FAMILY')),_0x4be079['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x101abd,'FORMAT_FONT_COLOR')),_0x4be079['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x101abd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7d5a7a=this['editor'],_0xa1ede9=_0x7d5a7a['locale'];_0x7d5a7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1500ae=>{const _0x2a3370=_0xa1ede9['t'];if('formatInline'!=_0x1500ae['type'])return;const {data:_0x163abf}=_0x1500ae;if(null!=_0x163abf){if('fontSize'==_0x163abf['commandName']){const _0x221fb7=_0x163abf['commandParams'][0x0]['value'];if(_0x221fb7){const _0x2ca836=_0x2a3370(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x516f6d=>_0x516f6d['model']==_0x221fb7)['title'])['toLowerCase']();return{'type':'format','content':o(_0xa1ede9,'*Set\x20font\x20size:*\x20%0',_0x2ca836)};}return{'type':'format','content':o(_0xa1ede9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x163abf['commandName']){const _0x47a5d8=_0x163abf['commandParams'][0x0]['value'];return _0x47a5d8?{'type':'format','content':o(_0xa1ede9,'*Set\x20font\x20family:*\x20%0',_0x47a5d8)}:{'type':'format','content':o(_0xa1ede9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x163abf['commandName']){const _0x2ac2a3=_0x163abf['commandParams'][0x0]['value'];if(_0x2ac2a3){const _0x4b2bae=_0x56821b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2df55e=>_0x2df55e['model']==_0x2ac2a3);let _0x562b4c=_0x2ac2a3,_0x295c5f='';return _0x4b2bae&&(_0x562b4c=_0x4b2bae['label'],_0x295c5f=_0x2a3370(_0x562b4c)['toLowerCase']()),{'type':'format','content':o(_0xa1ede9,'*Set\x20font\x20color:*\x20%0',_0x295c5f)['trim'](),'color':{'value':_0x2ac2a3,'title':_0x295c5f||_0x562b4c}};}return{'type':'format','content':o(_0xa1ede9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x163abf['commandName']){const _0x3c462d=_0x163abf['commandParams'][0x0]['value'];if(_0x3c462d){const _0x76ff77=_0x56821b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x13d5c1=>_0x13d5c1['model']==_0x3c462d);let _0x3d600c=_0x3c462d,_0x19fb70='';return _0x76ff77&&(_0x3d600c=_0x76ff77['label'],_0x19fb70=_0x2a3370(_0x3d600c)['toLowerCase']()),{'type':'format','content':o(_0xa1ede9,'*Set\x20font\x20background\x20color:*\x20%0',_0x19fb70)['trim'](),'color':{'value':_0x3c462d,'title':_0x19fb70||_0x3d600c}};}return{'type':'format','content':o(_0xa1ede9,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x1f739f{['afterInit'](){const _0x256ebc=this['editor'],_0x2b77f7=_0x256ebc['plugins']['get']('TrackChangesEditing'),_0x5e0b81=_0x256ebc['commands']['get']('copyFormat'),_0x547509=_0x256ebc['commands']['get']('pasteFormat');_0x5e0b81&&_0x547509&&(_0x2b77f7['enableDefaultAttributesIntegration']('pasteFormat'),_0x2b77f7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3b9150=this['editor'],_0x2728d9=_0x3b9150['locale'];_0x3b9150['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28a073=>{if('formatBlock'!=_0x28a073['type']&&'formatInline'!=_0x28a073['type'])return;const {data:_0x452f4f}=_0x28a073;if(_0x452f4f&&'pasteFormat'===_0x452f4f['commandName']){const _0x37ce35=[],_0x53d005=_0x452f4f['commandParams'][0x0];for(const [_0x27402c,_0x3eb16f]of Object['entries'](_0x53d005))_0x37ce35['push'](so(_0x3b9150,_0x27402c,_0x3eb16f));return _0x37ce35['length']?{'type':'format','content':o(_0x2728d9,'*Set\x20format\x20to:*\x20%0',_0x37ce35['join'](',\x20'))}:{'type':'format','content':o(_0x2728d9,'*Remove\x20all\x20formatting*')};}});}}function so(_0x560731,_0x5a90e7,_0x1bef8c){const _0x40ba1f=_0x560731['locale']['t'],_0x4eab83=_0x5a90e7['split'](/(?=[A-Z])/)['join']('\x20'),_0x10f80a=_0x40ba1f(_0x4eab83['charAt'](0x0)['toUpperCase']()+_0x4eab83['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1bef8c)return _0x10f80a;if('fontColor'===_0x5a90e7||'fontBackgroundColor'===_0x5a90e7){const _0x4bc8a8=_0x56821b(_0x560731['config']['get']('fontColor.colors'))['find'](_0x468cb8=>_0x468cb8['model']==_0x1bef8c);return _0x10f80a+'\x20('+(_0x4bc8a8?_0x40ba1f(_0x4bc8a8['label'])['toLowerCase']():_0x1bef8c)+')';}if('fontSize'===_0x5a90e7&&isNaN(parseFloat(_0x1bef8c))){const _0x2e6794=_0x560731['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x560731['config']['get']('fontSize.options'))['find'](_0x3ee66a=>_0x3ee66a['model']==_0x1bef8c);return _0x10f80a+'\x20('+(_0x2e6794?_0x40ba1f(_0x2e6794['title'])['toLowerCase']():_0x1bef8c)+')';}return _0x10f80a+'\x20('+_0x1bef8c+')';}class nt extends _0x1f739f{['_headingOptions'];['afterInit'](){const _0x4a793a=this['editor'];if(!_0x4a793a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4a793a['config']['get']('heading.options');const _0x269508=_0x4a793a['locale'],_0x3d45b2=_0x4a793a['plugins']['get']('TrackChangesEditing');_0x3d45b2['enableDefaultAttributesIntegration']('heading');for(const _0x4efc10 of this['_headingOptions'])'paragraph'!=_0x4efc10['model']&&_0x3d45b2['descriptionFactory']['registerElementLabel'](_0x4efc10['model'],_0x369dd1=>{const _0x2aee5e=this['_getHeadingLevel'](_0x4efc10['model']);return null!==_0x2aee5e?_0x29f4ef(_0x369dd1,_0x2aee5e):_0x152aa1(_0x369dd1,_0x4efc10['title']);});function _0x29f4ef(_0x8db6f8,_0x5d0cc2){return o(_0x269508,'ELEMENT_HEADING',[_0x8db6f8,_0x5d0cc2]);}function _0x152aa1(_0x2af872,_0x5cd030){return o(_0x269508,'ELEMENT_HEADING_CUSTOM',[_0x2af872,_0x5cd030]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a5924=this['editor'],_0x2b653b=_0x4a5924['locale'];function _0x3d651f(_0x484cca,_0x39cf84){return o(_0x2b653b,'ELEMENT_HEADING_CUSTOM',[_0x484cca,_0x39cf84]);}_0x4a5924['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42dd29=>{if('formatBlock'!=_0x42dd29['type'])return;const {data:_0x6f532f}=_0x42dd29;if(_0x6f532f&&'heading'==_0x6f532f['commandName']){const _0x5bb362=_0x6f532f['commandParams'][0x0]['value'],_0x41b137=this['_getHeadingLevel'](_0x5bb362);if(null!==_0x41b137)return{'type':'format','content':o(_0x2b653b,'*Change\x20to:*\x20%0',(_0x5cb92c=0x1,_0x3d6bdc=_0x41b137,o(_0x2b653b,'ELEMENT_HEADING',[_0x5cb92c,_0x3d6bdc])))};const _0x477c01=this['_headingOptions']['find'](_0x12a3b0=>_0x12a3b0['model']===_0x5bb362)['title'];return{'type':'format','content':o(_0x2b653b,'*Change\x20to:*\x20%0',_0x3d651f(0x1,_0x477c01))};}var _0x5cb92c,_0x3d6bdc;});}['_getHeadingLevel'](_0x1f1eaa){const _0xf746d8=_0x1f1eaa['match'](/^heading(\d+)/);if(_0xf746d8)return _0xf746d8[0x1];const _0x3b9f3b=this['_headingOptions']?.['find'](_0x273d44=>_0x273d44['model']==_0x1f1eaa);if(_0x3b9f3b&&_0x3b9f3b['view']){const _0x1a329a=_0x3b9f3b['view'],_0x372e05=(_0x1a329a['name']??_0x1a329a)['match'](/^h(\d+)/);if(_0x372e05)return _0x372e05[0x1];}return null;}}class it extends _0x1f739f{['afterInit'](){const _0x164aee=this['editor'];if(!_0x164aee['plugins']['has']('HighlightEditing'))return;const _0x57b58b=_0x164aee['plugins']['get']('TrackChangesEditing'),_0xcfab8=_0x164aee['locale'];_0x57b58b['enableDefaultAttributesIntegration']('highlight'),_0x57b58b['registerInlineAttribute']('highlight'),_0x57b58b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xcfab8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2611a6=this['editor'],_0x201fcf=_0x2611a6['locale'];_0x2611a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44e4ea=>{if('formatInline'!=_0x44e4ea['type'])return;const {data:_0x58335d}=_0x44e4ea;if(_0x58335d&&'highlight'==_0x58335d['commandName']){const _0xdb30db=_0x201fcf['t'],_0x40502e=_0x58335d['commandParams'][0x0]['value'];if(_0x40502e){const _0x1bab2a=_0x2611a6['config']['get']('highlight.options')['find'](_0x4df9b6=>_0x4df9b6['model']==_0x40502e),_0x518a8c=_0xdb30db(_0x1bab2a['title'])['toLowerCase']();return{'type':'format','content':o(_0x201fcf,'*Set\x20highlight:*\x20%0',_0x518a8c),'color':{'value':_0x1bab2a['color'],'title':_0x1bab2a['title']}};}return{'type':'format','content':o(_0x201fcf,'*Remove\x20highlight*',o(_0x201fcf,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x1f739f{['afterInit'](){const _0x46dea3=this['editor'];if(!_0x46dea3['plugins']['has']('HorizontalLineEditing'))return;_0x46dea3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3c0d4c=_0x46dea3['plugins']['get']('TrackChangesEditing'),_0x3a3fea=_0x46dea3['locale'];_0x3c0d4c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2287bd=>o(_0x3a3fea,'ELEMENT_HORIZONTAL_LINE',_0x2287bd)),_0x46dea3['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x58b021,{writer:_0x995468,options:_0x533ce7})=>{if(!_0x533ce7['showSuggestionHighlights'])return null;const _0x81df9d=_0x995468['createContainerElement']('div'),_0x54065a=_0x995468['createEmptyElement']('hr');return _0x995468['addClass']('ck-horizontal-line',_0x81df9d),_0x995468['insert'](_0x995468['createPositionAt'](_0x81df9d,0x0),_0x54065a),_0x81df9d;},'converterPriority':'high'});}}class st extends _0x1f739f{['afterInit'](){const _0xee9ece=this['editor'];if(!_0xee9ece['plugins']['has']('HtmlEmbed'))return;const _0x27fbc7=_0xee9ece['plugins']['get']('TrackChangesEditing'),_0x102d70=_0xee9ece['locale'];_0x27fbc7['descriptionFactory']['registerElementLabel']('rawHtml',_0x202bc9=>o(_0x102d70,'ELEMENT_HTML_EMBED',_0x202bc9)),_0x27fbc7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x27fbc7['registerBlockAttribute']('value'),_0x27fbc7['descriptionFactory']['registerDescriptionCallback'](_0x2a6583=>{if('attribute'!=_0x2a6583['type'])return;const {data:_0x4597cb}=_0x2a6583;if(_0x4597cb&&'value'==_0x4597cb['key']&&_0x2a6583['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3b1473=o(_0x102d70,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x102d70,'*Change\x20%0\x20content*',_0x3b1473)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c55be=this['editor'],_0x1c29e5=_0x4c55be['locale'];_0x4c55be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25b43f=>{if('formatBlock'!=_0x25b43f['type'])return;const {data:_0xc6865f}=_0x25b43f;if(_0xc6865f&&'htmlEmbed'==_0xc6865f['commandName']){const _0xbdb26e=o(_0x1c29e5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1c29e5,'*Change\x20%0\x20content*',_0xbdb26e)};}});}}class ot extends _0x1f739f{['afterInit'](){const _0x29cb63=this['editor'];if(!_0x29cb63['plugins']['has']('ImageEditing'))return;const _0x25eb74=_0x29cb63['plugins']['get']('TrackChangesEditing'),_0x2dcc7c=_0x29cb63['plugins']['get']('ImageUtils'),_0x3af89=_0x29cb63['locale'];_0x25eb74['enableCommand']('insertImage'),_0x25eb74['descriptionFactory']['registerElementLabel']('imageBlock',_0x19c4d6=>o(_0x3af89,'ELEMENT_IMAGE',_0x19c4d6)),_0x25eb74['descriptionFactory']['registerElementLabel']('imageInline',_0x1ac169=>o(_0x3af89,'ELEMENT_INLINE_IMAGE',_0x1ac169)),_0x25eb74['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3af89,'ELEMENT_CAPTION')),_0x29cb63['plugins']['has']('ImageUploadEditing')&&_0x25eb74['enableCommand']('uploadImage'),_0x29cb63['plugins']['has']('ImageBlockEditing')&&_0x29cb63['plugins']['has']('ImageInlineEditing')&&(_0x25eb74['enableCommand']('imageTypeInline',(_0x3287f7,_0x5e5b95)=>{const _0x544eb6=_0x2dcc7c['getClosestSelectedImageElement'](_0x29cb63['model']['document']['selection']);_0x29cb63['model']['change'](()=>{_0x25eb74['markBlockFormat'](_0x544eb6,{'commandName':'imageTypeInline','commandParams':[_0x5e5b95]},[],'convertBlockImageToInline');});}),_0x25eb74['enableCommand']('imageTypeBlock',(_0x3272e3,_0x1d18f3)=>{_0x29cb63['model']['change'](_0x2d0887=>{let _0x4e9e9c=_0x2dcc7c['getClosestSelectedImageElement'](_0x29cb63['model']['document']['selection']),_0x5939ee=_0x2d0887['createRangeOn'](_0x4e9e9c);const _0x3ed0fa=_0x486d4b['fromPosition'](_0x5939ee['start'],'toPrevious'),_0x387a8a=_0x486d4b['fromPosition'](_0x5939ee['end'],'toNext');_0x25eb74['forceDefaultExecution'](()=>_0x3272e3(_0x1d18f3)),_0x4e9e9c=_0x2dcc7c['getClosestSelectedImageElement'](_0x29cb63['model']['document']['selection']),_0x5939ee=_0x2d0887['createRangeOn'](_0x4e9e9c);const _0x37d039=_0x2d0887['createRange'](_0x3ed0fa,_0x387a8a);_0x3ed0fa['detach'](),_0x387a8a['detach'](),_0x25eb74['markBlockFormat'](_0x4e9e9c,{'commandName':'imageTypeInline','commandParams':[_0x1d18f3]},[],'convertInlineImageToBlock'),_0x37d039['start']['isBefore'](_0x5939ee['start'])&&_0x25eb74['markInsertion'](_0x2d0887['createRange'](_0x37d039['start'],_0x5939ee['start']),'convertInlineImageToBlock'),_0x5939ee['end']['isBefore'](_0x37d039['end'])&&_0x25eb74['markInsertion'](_0x2d0887['createRange'](_0x5939ee['end'],_0x37d039['end']),'convertInlineImageToBlock');});}),_0x25eb74['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x25eb74['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x25eb74['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x25eb74['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x25eb74['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x25eb74['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x557649])=>{const _0x1a4d11=_0x25eb74['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x14a1dd=_0x557649['start'],_0x2402e4=_0x557649['end'];const _0x4084b2=_0x29cb63['model']['schema']['getNearestSelectionRange'](_0x14a1dd,'backward'),_0x169b2b=_0x29cb63['model']['schema']['getNearestSelectionRange'](_0x2402e4,'forward');_0x4084b2['isCollapsed']&&(_0x14a1dd=_0x4084b2['start']),_0x169b2b['isCollapsed']&&(_0x2402e4=_0x169b2b['end']),_0x1a4d11([_0x29cb63['model']['createRange'](_0x14a1dd,_0x2402e4)]);}),_0x25eb74['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3b5634),_0x25eb74['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3b5634)),_0x29cb63['plugins']['has']('ImageCaptionEditing')&&(_0x25eb74['enableCommand']('toggleImageCaption',(_0x2564e4,_0x1a4957)=>{const _0x4fab57=_0x29cb63['plugins']['get']('ImageCaptionUtils');let _0x1d1851=_0x2dcc7c['getClosestSelectedImageElement'](_0x29cb63['model']['document']['selection']),_0x458633=_0x4fab57['getCaptionFromImageModelElement'](_0x1d1851);_0x29cb63['model']['change'](()=>{if(_0x458633)return void _0x25eb74['markDeletion'](_0x29cb63['model']['createRangeOn'](_0x458633));const _0xb6c2ce=_0x2dcc7c['isBlockImage'](_0x1d1851);_0x2564e4(_0x1a4957),_0x1d1851=_0x2dcc7c['getClosestSelectedImageElement'](_0x29cb63['model']['document']['selection']),_0x458633=_0x4fab57['getCaptionFromImageModelElement'](_0x1d1851),_0x25eb74['markInsertion'](_0x29cb63['model']['createRangeOn'](_0x458633),_0xb6c2ce?null:'imageCaption');});}),_0x25eb74['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3b5634));const _0x438ed8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xb9df14(_0x50677c,_0x2db7b1){const _0x24f556=_0x438ed8['findIndex'](({type:_0x4c9792,subType:_0x29786d})=>_0x50677c['type']==_0x4c9792&&_0x50677c['subType']==_0x29786d),_0x9c3693=_0x438ed8['findIndex'](({type:_0x12755e,subType:_0x32673f})=>_0x2db7b1['type']==_0x12755e&&_0x2db7b1['subType']==_0x32673f);if(_0x24f556<0x0||_0x9c3693<0x0)return!0x1;const _0x180a6b=_0x50677c['getFirstRange'](),_0x56ff09=_0x2db7b1['getFirstRange']();if((0x0==_0x24f556||0x1==_0x24f556)&&0x2==_0x9c3693&&_0x180a6b['isIntersecting'](_0x56ff09))return!0x0;if(0x2==_0x24f556&&0x3==_0x9c3693){const _0x3c9cb7=_0x25eb74['_findSuggestions'](_0x180a6b,'insertion')['filter'](({suggestion:_0x562646,meta:_0x16311e})=>_0x16311e['isOwn']&&'convertInlineImageToBlock'==_0x562646['subType']);if(_0x3c9cb7['length']>0x1&&_0x56ff09['end']['isEqual'](_0x180a6b['start']))return!0x0;if(0x1==_0x3c9cb7['length']&&(_0x180a6b['start']['isEqual'](_0x56ff09['end'])||_0x180a6b['end']['isEqual'](_0x56ff09['start'])))return!0x0;}if(0x3==_0x24f556&&0x3==_0x9c3693&&_0x180a6b['start']['isBefore'](_0x56ff09['start'])){const _0x47eccd=_0x180a6b['end']['nodeAfter'],_0x57c10e=_0x56ff09['start']['nodeBefore'];return _0x2dcc7c['isBlockImage'](_0x47eccd)&&_0x47eccd===_0x57c10e;}return!0x1;}function _0x3b5634(_0x4ca3ec,_0x4b9bdc){return _0xb9df14(_0x4ca3ec,_0x4b9bdc)?[_0x4ca3ec,_0x4b9bdc]:_0xb9df14(_0x4b9bdc,_0x4ca3ec)?[_0x4b9bdc,_0x4ca3ec]:null;}_0x29cb63['plugins']['has']('ImageResize')&&(_0x25eb74['enableDefaultAttributesIntegration']('resizeImage'),_0x25eb74['registerBlockAttribute']('resizedWidth'),_0x25eb74['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3af89,'FORMAT_IMAGE_SIZE'))),_0x29cb63['plugins']['has']('ImageTextAlternativeEditing')&&(_0x25eb74['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x25eb74['registerBlockAttribute']('alt')),_0x25eb74['descriptionFactory']['registerDescriptionCallback'](_0x466e11=>{if(!!_0x438ed8['find'](({type:_0xfa940e,subType:_0x50bc5b})=>_0x466e11['type']==_0xfa940e&&_0x466e11['subType']==_0x50bc5b))return _0x466e11['previous']?{}:void 0x0;}),_0x25eb74['descriptionFactory']['registerDescriptionCallback'](_0x48fa1d=>{if('insertion'==_0x48fa1d['type']||'deletion'==_0x48fa1d['type']){const _0x548181=_0x48fa1d['getContainedElement']();if(_0x548181&&_0x548181['is']('element','caption'))return{'type':'insertion'==_0x48fa1d['type']?'addObject':'removeObject','element':_0x548181,'quantity':0x1};}}),_0x25eb74['descriptionFactory']['registerDescriptionCallback'](_0x490b50=>'formatBlock'==_0x490b50['type']&&'convertInlineImageToBlock'==_0x490b50['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x490b50['type']&&'convertBlockImageToInline'==_0x490b50['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x25eb74['descriptionFactory']['registerDescriptionCallback'](_0x2ae346=>{if('attribute'!=_0x2ae346['type'])return;const {data:_0x2ec086}=_0x2ae346;if(!_0x2ec086||'alt'!=_0x2ec086['key'])return;const _0x2ad445=_0x2ec086['newValue'];return _0x2ad445?{'type':'format','content':o(_0x3af89,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2ad445+'\x22')}:{'type':'format','content':o(_0x3af89,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x130600=this['editor'],_0x4343c2=_0x130600['locale'];_0x130600['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5989ac=>{if('formatBlock'!=_0x5989ac['type']&&'formatInline'!=_0x5989ac['type'])return;const {data:_0x379f92}=_0x5989ac;if(_0x379f92){if('imageTextAlternative'==_0x379f92['commandName']){const _0x249a28=_0x379f92['commandParams'][0x0]['newValue'];return _0x249a28?{'type':'format','content':o(_0x4343c2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x249a28+'\x22')}:{'type':'format','content':o(_0x4343c2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x379f92['commandName']){const _0x1d44a5=_0x379f92['commandParams'][0x0]['width'];return _0x1d44a5?{'type':'format','content':o(_0x4343c2,'*Set\x20image\x20width:*\x20%0',_0x1d44a5)}:{'type':'format','content':o(_0x4343c2,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x1f739f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xd66636=this['editor']['locale'],_0x6ab8cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x6ab8cc['enableDefaultAttributesIntegration']('replaceImageSource'),_0x6ab8cc['registerBlockAttribute']('src'),_0x6ab8cc['descriptionFactory']['registerDescriptionCallback'](_0x188ae0=>{if('attribute'!=_0x188ae0['type'])return;const {data:_0x240c7c}=_0x188ae0;return _0x240c7c&&'src'==_0x240c7c['key']?_0x240c7c['newValue']&&_0x240c7c['oldValue']?{'type':'format','content':o(_0xd66636,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x46d1d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x46d1d7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x46d1d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x46d1d7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x46d1d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35a0dc=this['editor'],_0x2f251c=_0x35a0dc['locale'];_0x35a0dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x276327=>{if('formatBlock'!=_0x276327['type']&&'formatInline'!=_0x276327['type'])return;const {data:_0xc304d3}=_0x276327;if(!_0xc304d3||'replaceImageSource'!=_0xc304d3['commandName'])return;return{'type':'format','content':o(_0x2f251c,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x1f739f{['afterInit'](){const _0x5978eb=this['editor'];if(!_0x5978eb['plugins']['has']('ImageStyleEditing'))return;const _0x1eb4b3=_0x5978eb['plugins']['get']('TrackChangesEditing'),_0x28d04f=_0x5978eb['plugins']['get']('ImageUtils'),_0x23169d={};_0x1eb4b3['enableCommand']('imageStyle',(_0x1e43f3,_0x49a659)=>{const _0x134415=_0x5978eb['plugins']['get']('Users')['me'],_0x302415=_0x5978eb['commands']['get']('imageStyle');let _0x37eec1=_0x28d04f['getClosestSelectedImageElement'](_0x5978eb['model']['document']['selection']),_0xe6a032=_0x5978eb['model']['createRangeOn'](_0x37eec1),_0x160133=_0x302415['value'];if(_0x160133==_0x49a659['value'])return;const _0x371207={'commandName':'imageStyle','commandParams':[_0x49a659],'formatGroupId':_0x46f059()};_0x5978eb['model']['change'](()=>{if(_0x1eb4b3['getSuggestions']()['filter'](_0x3a70c4=>_0x3a70c4['isInContent']&&_0x134415==_0x3a70c4['author']&&('formatBlock'==_0x3a70c4['type']||'formatInline'==_0x3a70c4['type'])&&('imageStylePreApply'==_0x3a70c4['subType']||'imageStylePostApply'==_0x3a70c4['subType'])&&_0x3a70c4['getFirstRange']()['isEqual'](_0xe6a032))['forEach'](_0x46e1aa=>_0x1eb4b3['discardSuggestion'](_0x46e1aa['head'])),_0x37eec1=_0x28d04f['getClosestSelectedImageElement'](_0x5978eb['model']['document']['selection']),_0xe6a032=_0x5978eb['model']['createRangeOn'](_0x37eec1),_0x302415['refresh'](),_0x5978eb['commands']['get']('imageTypeInline')['refresh'](),_0x5978eb['commands']['get']('imageTypeBlock')['refresh'](),_0x160133=_0x302415['value'],_0x160133!=_0x49a659['value'])return _0x28d04f['isInlineImage'](_0x37eec1)&&_0x302415['shouldConvertImageType'](_0x49a659['value'],_0x37eec1)?(_0x1e43f3({..._0x49a659,'setImageSizes':!0x1}),_0x37eec1=_0x28d04f['getClosestSelectedImageElement'](_0x5978eb['model']['document']['selection']),void _0x1eb4b3['markBlockFormat'](_0x37eec1,{..._0x371207,'commandReversedParams':[{'value':_0x160133||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x28d04f['isBlockImage'](_0x37eec1)?_0x1eb4b3['markBlockFormat'](_0x37eec1,_0x371207,[],'imageStylePostApply'):_0x1eb4b3['markInlineFormat'](_0xe6a032,_0x371207,'imageStylePostApply'));});});for(const _0x2c00a9 of _0x5978eb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x23169d[_0x2c00a9['name']]=_0x2c00a9['title']['toLowerCase']();_0x1eb4b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1eb4b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1eb4b3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1eb4b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x53a578])=>{_0x28d04f['setImageNaturalSizeAttributes'](_0x53a578['getContainedElement']());}),_0x1eb4b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x55df73,_0x1738de)=>{_0x1eb4b3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x55df73,{'commandName':_0x1738de['commandName'],'commandParams':_0x1738de['commandReversedParams']});}),_0x1eb4b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3a1142,_0x1d6edc){if(_0x5c8d4c(_0x3a1142,_0x1d6edc))return[_0x3a1142,_0x1d6edc];if(_0x5c8d4c(_0x1d6edc,_0x3a1142))return[_0x1d6edc,_0x3a1142];return null;});const _0x7cb512=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c8d4c(_0x127cd9,_0x3cc1ad){const _0x24a80c=_0x7cb512['findIndex'](({type:_0x322871,subType:_0x523b78})=>_0x127cd9['type']==_0x322871&&_0x127cd9['subType']==_0x523b78),_0x585754=_0x7cb512['findIndex'](({type:_0x249373,subType:_0x585661})=>_0x3cc1ad['type']==_0x249373&&_0x3cc1ad['subType']==_0x585661);if(_0x24a80c<0x0||_0x585754<0x0)return!0x1;const _0x5e5e5c=_0x127cd9['getFirstRange'](),_0xac6f0c=_0x3cc1ad['getFirstRange']();if((0x0==_0x24a80c||0x1==_0x24a80c)&&0x2==_0x585754&&_0x5e5e5c['isIntersecting'](_0xac6f0c))return!0x0;if(0x2==_0x24a80c&&0x3==_0x585754){const _0x262128=_0x1eb4b3['_findSuggestions'](_0x5e5e5c,'insertion')['filter'](({suggestion:_0x52f333,meta:_0xf83799})=>_0xf83799['isOwn']&&'convertInlineImageToBlock'==_0x52f333['subType']);if(_0x262128['length']>0x1&&_0xac6f0c['end']['isEqual'](_0x5e5e5c['start']))return!0x0;if(0x1==_0x262128['length']&&(_0x5e5e5c['start']['isEqual'](_0xac6f0c['end'])||_0x5e5e5c['end']['isEqual'](_0xac6f0c['start'])))return!0x0;}if(0x3==_0x24a80c&&0x3==_0x585754&&_0x5e5e5c['start']['isBefore'](_0xac6f0c['start'])){const _0x4293d8=_0x5e5e5c['end']['nodeAfter'],_0x2debf8=_0xac6f0c['start']['nodeBefore'];return _0x28d04f['isBlockImage'](_0x4293d8)&&_0x4293d8===_0x2debf8;}return!0x1;}_0x5978eb['model']['document']['registerPostFixer'](()=>{let _0x182167=!0x1;const _0x5472c7=Array['from'](_0x5978eb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x74afa0,data:_0x267fe0}of _0x5472c7){const {group:_0xc92dcc,type:_0x317400,subType:_0x873b55,id:_0x44a31d}=_0x1eb4b3['_splitMarkerName'](_0x74afa0);if('suggestion'==_0xc92dcc&&_0x1eb4b3['hasSuggestion'](_0x44a31d)){if('formatBlock'==_0x317400&&('imageStylePreApply'==_0x873b55||'imageStylePostApply'==_0x873b55)){const _0x2e95b0=_0x1eb4b3['getSuggestion'](_0x44a31d);if(_0x267fe0['newRange']){const _0x375d1f=_0x2e95b0['getFirstRange']()['getContainedElement']();if(_0x28d04f['isBlockImage'](_0x375d1f))continue;_0x1eb4b3['discardSuggestion'](_0x2e95b0),_0x182167=!0x0;}}if('insertion'==_0x317400&&'imageCaption'==_0x873b55&&!_0x267fe0['newRange']){const _0x17ba5c=_0x1eb4b3['getSuggestion'](_0x44a31d);_0x17ba5c['next']&&_0x17ba5c['next']['isInContent']&&(_0x1eb4b3['discardSuggestion'](_0x17ba5c['next']),_0x182167=!0x0);}}}return _0x182167;}),this['_registerLegacyDescription'](_0x23169d);}['_registerLegacyDescription'](_0x13b737){const _0x3c807a=this['editor'],_0x48b7be=_0x3c807a['locale'];_0x3c807a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x509571=>{if('formatBlock'!=_0x509571['type']&&'formatInline'!=_0x509571['type'])return;const {data:_0x55064d}=_0x509571;if(!_0x55064d||'imageStyle'!=_0x55064d['commandName'])return;const _0x50bae9=_0x55064d['commandParams'][0x0]['value'];return _0x8ea767('side'===_0x50bae9?o(_0x48b7be,'FORMAT_SIDE_IMAGE'):_0x13b737[_0x50bae9]||_0x50bae9);function _0x8ea767(_0xa7cc39){return{'type':'format','content':o(_0x48b7be,'*Format:*\x20%0',_0xa7cc39)};}});}}class ct extends _0x1f739f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x7726ee){super(_0x7726ee),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x33eab1=this['editor'],_0x24a3c3=_0x33eab1['commands']['get']('importWord'),_0x487190=_0x33eab1['commands']['get']('trackChanges');_0x24a3c3&&(_0x24a3c3['on']('execute',(_0x448420,[,_0x31cbcf])=>{this['_trackChangesValueDuringImport']=_0x487190['value'],_0x31cbcf['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x24a3c3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x24a3c3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x487190['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x33eab1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x272c9b,_0x70b774){const {suggestions:_0x474d73}=_0x70b774,_0x5efb90=this['editor']['commands']['get']('trackChanges'),_0x32b466=_0x5efb90['value'];this['_trackChangesValueDuringImport']!==_0x32b466&&(_0x5efb90['execute'](),this['_trackChangesExecuted']=!0x0),_0x474d73&&_0x474d73['forEach'](({id:_0x55a13c,type:_0x28c016,author:_0x313032,created_at:_0x4a389f})=>{const _0x2a39fe={'id':_0x55a13c,'type':_0x28c016,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x313032,'createdAt':_0x4a389f?new Date(_0x4a389f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2a39fe);});}}class ut extends _0x1f739f{['afterInit'](){const _0x23320d=this['editor'],_0x82bb94=_0x23320d['plugins']['get']('TrackChangesEditing');if(_0x23320d['plugins']['has']('IndentEditing')&&(_0x82bb94['enableCommand']('indent'),_0x82bb94['enableCommand']('outdent')),_0x23320d['plugins']['has']('IndentBlock')){for(const _0x4a15b8 of['indentBlock','outdentBlock'])_0x82bb94['enableDefaultAttributesIntegration'](_0x4a15b8);}const _0x2a999b=_0x23320d['locale'];_0x82bb94['registerBlockAttribute']('blockIndent'),_0x82bb94['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2a999b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31b989=this['editor'],_0x51afe5=_0x31b989['locale'],_0x445c96=_0x31b989['plugins']['get']('TrackChangesEditing');_0x445c96['descriptionFactory']['registerDescriptionCallback'](_0x2f0cc1=>{if('formatBlock'!=_0x2f0cc1['type'])return;const {data:_0x9728d4}=_0x2f0cc1;if(!_0x9728d4)return;if('indentBlock'!=_0x9728d4['commandName']&&'outdentBlock'!=_0x9728d4['commandName'])return;const _0x1e6357=_0x2f0cc1['getItems']()[0x0],_0x581cbe=_0x445c96['descriptionFactory']['getItemLabel'](_0x1e6357);return'indentBlock'==_0x9728d4['commandName']?{'type':'format','content':o(_0x51afe5,'*Indent:*\x20%0',_0x581cbe)}:'outdentBlock'==_0x9728d4['commandName']?{'type':'format','content':o(_0x51afe5,'*Outdent:*\x20%0',_0x581cbe)}:void 0x0;});}}class ft extends _0x1f739f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x1f739f{['afterInit'](){const _0xf0480c=this['editor'];if(!_0xf0480c['plugins']['has']('LinkEditing'))return;const _0xb11d85=_0xf0480c['plugins']['get']('TrackChangesEditing'),_0x3b8ab3=_0xf0480c['commands']['get']('link');_0xb11d85['enableDefaultAttributesIntegration']('link'),_0xb11d85['enableDefaultAttributesIntegration']('unlink'),_0xb11d85['registerInlineAttribute']('linkHref');for(const _0x57b48c of _0x3b8ab3['manualDecorators'])_0xb11d85['registerInlineAttribute'](_0x57b48c['id']),_0xb11d85['descriptionFactory']['registerAttributeLabel'](_0x57b48c['id'],'link\x20('+_0x57b48c['label']['toLowerCase']()+')');_0xb11d85['descriptionFactory']['registerDescriptionCallback'](_0x53e619=>{if('attribute'!=_0x53e619['type'])return;const {data:_0x4a5239}=_0x53e619;if(!_0x4a5239||'linkHref'!=_0x4a5239['key'])return;const _0x2258ed=_0x4a5239['newValue'],_0x5daf0e=_0xf0480c['locale'];return{'type':'format','content':null==_0x2258ed?o(_0x5daf0e,'*Remove\x20link*'):o(_0x5daf0e,'*Set\x20link:*\x20%0','\x22'+_0x2258ed+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x452ce5=this['editor'],_0x32868f=_0x452ce5['locale'];_0x452ce5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ba776=>{if('formatInline'!=_0x2ba776['type'])return;const {data:_0x36f292}=_0x2ba776;if(_0x36f292){if('link'==_0x36f292['commandName']){const _0x26e1c8=_0x36f292['commandParams'][0x0];return{'type':'format','content':o(_0x32868f,'*Set\x20link:*\x20%0','\x22'+_0x26e1c8+'\x22')};}return'unlink'==_0x36f292['commandName']?{'type':'format','content':o(_0x32868f,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x1f739f{['afterInit'](){const _0x2a1f52=this['editor'],_0x4038d6=_0x2a1f52['locale'];if(!_0x2a1f52['plugins']['has']('LegacyListEditing'))return;const _0x18518e=_0x2a1f52['plugins']['get']('TrackChangesEditing'),_0x2f5d62=_0x2a1f52['plugins']['has']('LegacyTodoListEditing');function _0xb184f9(_0x44e485){return()=>{const _0x2f6c26=_0x2a1f52['model']['document']['selection'],_0x3eefff=_0x2a1f52['commands']['get'](_0x44e485);if(_0x3eefff['value'])return void _0x2a1f52['execute']('paragraph',{});const _0xe39c95=_0x44e485['slice'](0x0,-0x4),_0x5e2299=function(_0x4bbce4,_0x20932f,_0x3264a0){let _0x5c1f04=Array['from'](_0x4bbce4)['filter'](_0x3846b7=>function(_0x5d1f30,_0x31cefe){return _0x31cefe['checkChild'](_0x5d1f30['parent'],'listItem')&&!_0x31cefe['isObject'](_0x5d1f30);}(_0x3846b7,_0x3264a0));_0x5c1f04=_0x5c1f04['filter'](_0x4db04d=>!_0x4db04d['is']('element','listItem')||_0x4db04d['getAttribute']('listType')!=_0x20932f);const _0x5be744=new Set();for(const _0x4ba2b8 of _0x5c1f04)_0x4ba2b8['is']('element','listItem')?_0x5be744['add'](Le(_0x4ba2b8)):_0x5be744['add'](_0x4ba2b8);return Array['from'](_0x5be744);}(_0x2f6c26['getSelectedBlocks'](),_0xe39c95,_0x2a1f52['model']['schema']);_0x2a1f52['model']['change'](()=>{for(const _0x107bbd of _0x5e2299)_0x18518e['markBlockFormat'](_0x107bbd,{'commandName':_0x44e485,'commandParams':[{'forceValue':!_0x3eefff['value']}],'formatGroupId':'blockName'},Ee(_0x107bbd));});};}function _0x4fe744(_0x1c8909){return()=>{const _0x1bb97c=function(_0x19c1c0){let _0x5158d4=Array['from'](_0x19c1c0);const _0x226ee8=_0x5158d4['findIndex'](_0x1ff575=>'listItem'!=_0x1ff575['name']);return _0x226ee8>-0x1&&(_0x5158d4=_0x5158d4['slice'](0x0,_0x226ee8)),_0x5158d4;}(_0x2a1f52['model']['document']['selection']['getSelectedBlocks']()),_0x1007b8=_0x2a1f52['model']['createRange'](_0x2a1f52['model']['createPositionAt'](_0x1bb97c[0x0],'before'),_0x2a1f52['model']['createPositionAt'](_0x1bb97c[_0x1bb97c['length']-0x1],'end'));_0x2a1f52['model']['change'](()=>{_0x18518e['markBlockFormat'](_0x1007b8,{'commandName':_0x1c8909,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3e3bdb){const _0x5bee2c=new Set();for(const _0x584dd5 of _0x3e3bdb){let _0x1605d2=_0x584dd5['nextSibling'];for(;_0x1605d2&&_0x1605d2['getAttribute']('listIndent')>_0x584dd5['getAttribute']('listIndent');)_0x5bee2c['add'](_0x1605d2),_0x1605d2=_0x1605d2['nextSibling'];}return Array['from'](_0x5bee2c);}(_0x1bb97c));});};}_0x18518e['enableCommand']('numberedList',_0xb184f9('numberedList')),_0x18518e['enableCommand']('bulletedList',_0xb184f9('bulletedList')),_0x2f5d62&&_0x18518e['enableCommand']('todoList',_0xb184f9('todoList')),_0x18518e['enableCommand']('indentList',_0x4fe744('indentList')),_0x18518e['enableCommand']('outdentList',_0x4fe744('outdentList')),_0x2f5d62&&_0x18518e['enableCommand']('checkTodoList',()=>{const _0x1c80a7=_0x2a1f52['commands']['get']('checkTodoList'),_0xd4c2a1=Array['from'](_0x1c80a7['_selectedElements']);_0xd4c2a1['filter'](_0x368102=>_0x368102['getAttribute']('todoListChecked')!=_0x1c80a7['value']),_0x2a1f52['model']['change'](()=>{for(const _0xd753e1 of _0xd4c2a1)_0x18518e['markBlockFormat'](_0xd753e1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1c80a7['value']}]});});}),_0x18518e['descriptionFactory']['registerElementLabel']('listItem',_0x57766f=>o(_0x4038d6,'ELEMENT_LIST_ITEM',_0x57766f)),_0x18518e['descriptionFactory']['registerDescriptionCallback'](_0x5f1be8=>{if('formatBlock'!=_0x5f1be8['type']&&'formatInline'!=_0x5f1be8['type'])return;const {data:_0x321deb}=_0x5f1be8;if(_0x321deb){if('numberedList'==_0x321deb['commandName']||'bulletedList'==_0x321deb['commandName']||'todoList'==_0x321deb['commandName'])switch(_0x321deb['commandName']['replace']('List','')){case'bulleted':return _0xa57374(o(_0x4038d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa57374(o(_0x4038d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa57374(o(_0x4038d6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x321deb['commandName'])return{'type':'format','content':o(_0x4038d6,'*Indent:*\x20%0',o(_0x4038d6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x321deb['commandName'])return{'type':'format','content':o(_0x4038d6,'*Outdent:*\x20%0',o(_0x4038d6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x321deb['commandName'])return _0x321deb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4038d6,'*Check\x20item*')}:{'type':'format','content':o(_0x4038d6,'*Uncheck\x20item*')};}function _0xa57374(_0x43b69d){return{'type':'format','content':o(_0x4038d6,'*Change\x20to:*\x20%0',_0x43b69d)};}});}}function Le(_0x263c7a){const _0x1d7a8a=_0x263c7a['getAttribute']('listIndent');if(0x0==_0x1d7a8a)return _0x263c7a;let _0x2e138d=_0x263c7a;for(;_0x263c7a['previousSibling']&&_0x263c7a['previousSibling']['is']('element','listItem');){const _0x348b2c=_0x263c7a['previousSibling']['getAttribute']('listIndent');if(_0x348b2c==_0x1d7a8a)_0x2e138d=_0x263c7a['previousSibling'];else{if(_0x348b2c<_0x1d7a8a)break;}_0x263c7a=_0x263c7a['previousSibling'];}return _0x2e138d;}function Ee(_0x1426d5){const _0x4cf4e3=[];if(_0x1426d5['is']('element','listItem')&&_0x1426d5['getAttribute']('listIndent')>0x0){let _0x41c67a=_0x1426d5['nextSibling'];for(;_0x41c67a&&'listItem'==_0x41c67a['name']&&_0x41c67a['getAttribute']('listIndent')==_0x1426d5['getAttribute']('listIndent');)_0x4cf4e3['push'](_0x41c67a),_0x41c67a=_0x41c67a['nextSibling'];}return _0x4cf4e3;}class Q extends _0x1f739f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5e3b62=this['editor']['config']['get']('list.properties'),_0x3dad5a=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e3b62['styles']&&_0x3dad5a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5e3b62['reversed']&&_0x3dad5a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5e3b62['startIndex']&&_0x3dad5a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3dad5a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x18d673,_0x45e6ad={}){const _0x498866=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cb099=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x498866['markMultiRangeBlockFormat'](_0x2cb099,{'commandName':'listStyle','commandParams':[{'type':_0x45e6ad['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3996b5,_0x21e8de={}){const _0x2d6c25=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52f7df=this['_getSuggestionBlocks'](_0x4e533b=>_0x4e533b['is']('element','listItem')&&'numbered'===_0x4e533b['getAttribute']('listType'));if(_0x52f7df['length']<0x1)return;const _0x1a92fa=_0x52f7df['map'](_0x4755a6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4755a6,'before'),this['editor']['model']['createPositionAt'](_0x4755a6,0x0)));this['editor']['model']['change'](()=>{_0x2d6c25['markMultiRangeBlockFormat'](_0x1a92fa,{'commandName':'listReversed','commandParams':[{'reversed':_0x21e8de['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x326758,_0x62fc44={}){const _0x2a3a58=this['editor']['plugins']['get']('TrackChangesEditing'),_0x329cae=this['_getSuggestionBlocks'](_0x1028ee=>_0x1028ee['is']('element','listItem')&&'numbered'===_0x1028ee['getAttribute']('listType'));if(_0x329cae['length']<0x1)return;const _0xa31932=_0x329cae['map'](_0x375ee5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x375ee5,'before'),this['editor']['model']['createPositionAt'](_0x375ee5,0x0)));this['editor']['model']['change'](()=>{_0x2a3a58['markMultiRangeBlockFormat'](_0xa31932,{'commandName':'listStart','commandParams':[{'startIndex':_0x62fc44['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xbc413f){if('formatBlock'!=_0xbc413f['type']&&'formatInline'!=_0xbc413f['type'])return;const _0xb024e6=this['editor']['locale'],{data:_0x43bef5}=_0xbc413f;if(!_0x43bef5)return;let _0x1738ea,_0x5b432c;switch(_0x43bef5['commandName']){case'listStyle':_0x1738ea='*Change\x20to:*\x20%0',_0x5b432c={'type':'format','content':o(_0xb024e6,_0x1738ea,o(_0xb024e6,this['_getTranslationKeyForListStyle'](_0x43bef5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1738ea=_0x43bef5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5b432c={'type':'format','content':o(_0xb024e6,_0x1738ea)};break;case'listStart':_0x1738ea='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5b432c={'type':'format','content':o(_0xb024e6,_0x1738ea,_0x43bef5['commandParams'][0x0]['startIndex'])};}return _0x5b432c;}['_getSuggestionBlocksForListStyle'](){const _0x1c8f19=this['editor']['plugins']['get']('LegacyListUtils');let _0xbad34d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xbad34d[0x0]?.['is']('element','listItem')&&_0xbad34d['unshift'](..._0x1c8f19['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xbad34d[_0xbad34d['length']-0x1]?.['is']('element','listItem')&&_0xbad34d['push'](..._0x1c8f19['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xbad34d=[...new Set(_0xbad34d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xbad34d=_0xbad34d['filter'](_0xf383bf=>_0xf383bf['is']('element','listItem'))),_0xbad34d;}['_getSuggestionBlocks'](_0x17b092){const _0x1d455b=this['editor']['plugins']['get']('LegacyListUtils');let _0xe19366=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x17b092)['map'](_0x5d922e=>{const _0x3446d5=this['editor']['model']['createPositionAt'](_0x5d922e,0x0);return[..._0x1d455b['getSiblingNodes'](_0x3446d5,'backward'),..._0x1d455b['getSiblingNodes'](_0x3446d5,'forward')];})['flat']();return _0xe19366=[...new Set(_0xe19366)],_0xe19366;}['_getTranslationKeyForListStyle'](_0x536154){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x536154)||'default')['toUpperCase']()+'_LIST_'+_0x536154['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x1f739f{['afterInit'](){const _0x19fc9b=this['editor'];if(!_0x19fc9b['plugins']['has']('MediaEmbedEditing'))return;const _0x13657f=_0x19fc9b['plugins']['get']('TrackChangesEditing'),_0x24dbc7=_0x19fc9b['locale'];_0x13657f['enableCommand']('mediaEmbed'),_0x13657f['descriptionFactory']['registerElementLabel']('media',_0x11af5a=>o(_0x24dbc7,'ELEMENT_MEDIA',_0x11af5a)),_0x19fc9b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4195c4,{writer:_0x4c2766,options:_0x1979da})=>{if(_0x1979da['showSuggestionHighlights'])return _0x4c2766['createEmptyElement']('div');},'converterPriority':'high'}),_0x19fc9b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3440c3,_0x1401d7,_0x374c02)=>{_0x374c02['options']['showSuggestionHighlights']&&_0x3440c3['stop']();},{'priority':'high'});}}class mt extends _0x1f739f{['afterInit'](){const _0xbb3d68=this['editor'];_0xbb3d68['plugins']['has']('MentionEditing')&&_0xbb3d68['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x1f739f{['afterInit'](){const _0x2cfac8=this['editor'];if(!_0x2cfac8['plugins']['has']('MergeFieldsEditing'))return;_0x2cfac8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x2cfac8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x411863=_0x2cfac8['plugins']['get']('TrackChangesEditing'),_0x5df812=_0x2cfac8['locale'];_0x411863['descriptionFactory']['registerElementLabel']('mergeField',_0x24d2f7=>o(_0x5df812,'ELEMENT_MERGE_FIELD',_0x24d2f7)),_0x411863['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x45f4c5=>o(_0x5df812,'ELEMENT_MERGE_FIELD',_0x45f4c5)),_0x411863['descriptionFactory']['registerDescriptionCallback'](_0x270a9b=>{if('insertion'!=_0x270a9b['type']&&'deletion'!=_0x270a9b['type'])return;const _0x222c15=_0x270a9b['getContainedElement']();if(null==_0x222c15)return;if(!_0x222c15['is']('element','mergeField')&&!_0x222c15['is']('element','mergeFieldBlock'))return;const _0x14dc35=_0x2cfac8['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x222c15['getAttribute']('id'));return'insertion'==_0x270a9b['type']?{'type':'insertion','content':o(_0x5df812,'*Insert:*\x20%0','\x22'+_0x14dc35+'\x22\x20'+o(_0x5df812,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5df812,'*Remove:*\x20%0','\x22'+_0x14dc35+'\x22\x20'+o(_0x5df812,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x1f739f{['afterInit'](){const _0x586570=this['editor'],_0x1dc0d8=_0x586570['plugins']['get']('TrackChangesEditing');_0x586570['plugins']['has']('MultiLevelList')&&(_0x1dc0d8['enableDefaultAttributesIntegration']('multiLevelList'),_0x1dc0d8['registerBlockAttribute']('listMarkerStyle'),_0x1dc0d8['descriptionFactory']['registerDescriptionCallback'](_0x37f855=>this['handleDescriptions'](_0x37f855)));}['handleDescriptions'](_0x269de7){const _0x12612a=this['editor']['locale'],{data:_0x350563}=_0x269de7,_0x4146a2={'type':'format','content':''};if(_0x350563&&'listMarkerStyle'==_0x350563['key']){if(!_0x350563['oldValue'])return{'type':'format','content':o(_0x12612a,'*Set\x20format:*\x20%0',o(_0x12612a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x350563['newValue']+')'};if(!_0x350563['newValue']){let _0x5a729c=_0x269de7['head'];for(;_0x5a729c;){if(_0x5a729c['data']&&'listType'==_0x5a729c['data']['key']&&_0x5a729c['data']['newValue'])return _0x4146a2;_0x5a729c=_0x5a729c['next'];}return{'type':'format','content':o(_0x12612a,'*Remove\x20format:*\x20%0',o(_0x12612a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x350563['oldValue']+')'};}}}}class kt extends _0x1f739f{['afterInit'](){const _0x548f5c=this['editor'];if(!_0x548f5c['plugins']['has']('PageBreakEditing'))return;_0x548f5c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3a67f1=_0x548f5c['plugins']['get']('TrackChangesEditing'),_0x314cc4=_0x548f5c['locale'];_0x3a67f1['descriptionFactory']['registerElementLabel']('pageBreak',_0x3e8ed7=>o(_0x314cc4,'ELEMENT_PAGE_BREAK',_0x3e8ed7));}}class bt extends _0x1f739f{['afterInit'](){const _0x276ea1=this['editor'];if(!_0x276ea1['plugins']['has']('Paragraph'))return;const _0x26d924=_0x276ea1['locale'],_0x4376c4=_0x276ea1['plugins']['get']('TrackChangesEditing');_0x4376c4['descriptionFactory']['registerElementLabel']('paragraph',_0x465d01=>o(_0x26d924,'ELEMENT_PARAGRAPH',_0x465d01)),_0x4376c4['enableDefaultAttributesIntegration']('paragraph'),_0x4376c4['enableCommand']('insertParagraph'),_0x276ea1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x276ea1),{'priority':'highest'}),_0x276ea1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e9d2e,_0x471ef0,_0x4a7ddd)=>{_0x4a7ddd['options']['showSuggestionHighlights']&&nr(_0x276ea1,{'showActiveMarker':!0x1})(_0x2e9d2e,_0x471ef0,_0x4a7ddd);},{'priority':'highest'});const _0x4de964=_0x4376c4['descriptionFactory'];_0x4de964['registerDescriptionCallback'](_0x35409a=>{if('insertion'!==_0x35409a['type'])return;const {start:_0x543de0,end:_0x115cae}=_0x35409a['getFirstRange']();if(!_0x543de0['isTouching'](_0x115cae)||!_0x543de0['nodeAfter'])return;const _0x49d7cd=_0x276ea1['model']['schema'],_0xdf2810=_0x543de0['nodeAfter'];return _0x49d7cd['isBlock'](_0xdf2810)&&!_0x49d7cd['isLimit'](_0xdf2810)&&_0x49d7cd['checkChild'](_0xdf2810,'$text')?{'type':'insertion','content':o(_0x26d924,'*Insert:*\x20%0',_0x4de964['getItemLabel'](_0xdf2810,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11b50a=this['editor'],_0x1c339c=_0x11b50a['locale'];_0x11b50a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f4992=>{if('formatBlock'!=_0x5f4992['type'])return;const {data:_0x490732}=_0x5f4992;return _0x490732&&'paragraph'==_0x490732['commandName']?{'type':'format','content':o(_0x1c339c,'*Change\x20to:*\x20%0',o(_0x1c339c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x11f71c,{showActiveMarker:_0x14cc1f=!0x0}={}){return(_0x511695,_0x48a5a7,_0x2af6c6)=>{const _0x9ffe4b=_0x11f71c['plugins']['get']('TrackChangesEditing'),_0x2335ac=_0x48a5a7['markerRange']['start'],_0x4884dc=_0x48a5a7['markerRange']['end'],_0x447969=_0x11f71c['model']['schema'];if(!_0x2335ac['isTouching'](_0x4884dc)||!_0x2335ac['nodeAfter'])return;const _0x476899=_0x2335ac['nodeAfter'];if(_0x447969['isBlock'](_0x476899)&&!_0x447969['isLimit'](_0x476899)&&_0x447969['checkChild'](_0x476899,'$text')){if(!_0x2af6c6['consumable']['consume'](_0x48a5a7['markerRange'],_0x511695['name']))return;const {authorId:_0x549286}=_0x9ffe4b['_splitMarkerName'](_0x48a5a7['markerName']),_0x3e3939=_0x2af6c6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x549286}),_0x1f74d1=_0x2af6c6['mapper']['toViewPosition'](_0x4884dc);_0x14cc1f&&_0x9ffe4b['activeMarkers']['includes'](_0x48a5a7['markerName'])&&_0x2af6c6['writer']['addClass']('ck-suggestion-marker--active',_0x3e3939),_0x2af6c6['writer']['insert'](_0x1f74d1,_0x3e3939),_0x2af6c6['mapper']['bindElementToMarker'](_0x3e3939,_0x48a5a7['markerName']);}};}class yt extends _0x1f739f{['afterInit'](){const _0x36473b=this['editor'];if(!_0x36473b['plugins']['has']('RemoveFormatEditing'))return;_0x36473b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x321408=this['editor'];_0x321408['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4aa7a9=>{if('formatBlock'!=_0x4aa7a9['type']&&'formatInline'!=_0x4aa7a9['type'])return;const {data:_0x64b9d4}=_0x4aa7a9;return _0x64b9d4&&'removeFormat'==_0x64b9d4['commandName']?{'type':'format','content':o(_0x321408['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x1f739f{['afterInit'](){const _0x266ab6=this['editor'];if(!_0x266ab6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x47cf12=_0x266ab6['plugins']['get']('TrackChangesEditing');_0x47cf12['enableCommand']('goToPreviousRestrictedEditingException'),_0x47cf12['enableCommand']('goToNextRestrictedEditingException');const _0x3ad71f=_0x266ab6['plugins']['get']('RestrictedEditingModeEditing');_0x3ad71f['enableCommand']('trackChanges'),_0x3ad71f['enableCommand']('acceptSuggestion'),_0x3ad71f['enableCommand']('discardSuggestion'),_0x3ad71f['enableCommand']('acceptAllSuggestions'),_0x3ad71f['enableCommand']('discardAllSuggestions'),_0x3ad71f['enableCommand']('acceptSelectedSuggestions'),_0x3ad71f['enableCommand']('discardSelectedSuggestions');}}class St extends _0x1f739f{static get['requires'](){return[_0x31c13c];}['init'](){const _0x538dc1=this['editor'],_0x11924e=_0x538dc1['plugins']['get']('TrackChangesEditing');_0x11924e['enableCommand']('shiftEnter'),_0x538dc1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x538dc1),{'priority':'high'}),_0x538dc1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x538dc1),{'priority':'high'}),_0x538dc1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x17f7b3,_0x48e70c,_0x50aa7c)=>{_0x50aa7c['options']['showSuggestionHighlights']&&ke(_0x538dc1,{'showActiveMarker':!0x1})(_0x17f7b3,_0x48e70c,_0x50aa7c);}),_0x11924e['descriptionFactory']['registerElementLabel']('softBreak',_0x2d2aff=>o(_0x538dc1['locale'],'ELEMENT_LINE_BREAK',_0x2d2aff));}}function ke(_0x1cb5cc,{showActiveMarker:_0x52a2f2=!0x0}={}){return(_0x49f9d,_0x3efb78,_0x56402d)=>{const _0x5dc863=_0x1cb5cc['plugins']['get']('TrackChangesEditing');if(!_0x56402d['consumable']['test'](_0x3efb78['markerRange'],_0x49f9d['name']))return;const _0x20a66e=_0x1cb5cc['model'];for(const _0xec12a4 of _0x3efb78['markerRange']['getItems']()){if(!_0xec12a4['is']('element','softBreak'))continue;const _0x51933a='deletion'==_0x3efb78['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x475a9a}=_0x5dc863['_splitMarkerName'](_0x3efb78['markerName']),_0x981b5b=_0x56402d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51933a,'data-author-id':_0x475a9a}),_0x373a19=_0x56402d['mapper']['toViewPosition'](_0x20a66e['createPositionBefore'](_0xec12a4));_0x52a2f2&&_0x5dc863['activeMarkers']['includes'](_0x3efb78['markerName'])&&_0x56402d['writer']['addClass']('ck-suggestion-marker--active',_0x981b5b),_0x56402d['writer']['insert'](_0x373a19,_0x981b5b),_0x56402d['mapper']['bindElementToMarker'](_0x981b5b,_0x3efb78['markerName']);}};}class At extends _0x1f739f{['afterInit'](){const _0x39cefa=this['editor'],_0x39f893=_0x39cefa['model'],_0x513906=_0x39cefa['locale'];if(!_0x39cefa['plugins']['has']('StandardEditingModeEditing'))return;const _0x469fef=_0x39cefa['plugins']['get']('TrackChangesEditing'),_0x536def='restrictedEditingException',_0xc9a0c=_0x39cefa['commands']['get'](_0x536def);_0x469fef['enableCommand'](_0x536def,(_0x1ed3bf,_0x25fd2a={})=>{const _0x585bee=_0x39f893['document']['selection'];if(_0x585bee['isCollapsed'])return void _0x1ed3bf(_0x25fd2a);const _0x461769=void 0x0!==_0x25fd2a['forceValue']?_0x25fd2a['forceValue']:!_0xc9a0c['value'];_0x39f893['change'](()=>{const _0x3f08e5=Array['from'](_0x585bee['getRanges']());for(const _0x2ae4d2 of _0x3f08e5){const _0x8529ea=_0x461769?[_0x2ae4d2]:io(_0x536def,_0x2ae4d2,_0x39f893);for(const _0x4c5967 of _0x8529ea)_0x469fef['markInlineFormat'](_0x4c5967,{'commandName':_0x536def,'commandParams':[{'forceValue':_0x461769}]});}});}),_0x469fef['descriptionFactory']['registerDescriptionCallback'](_0x529540=>{if('formatBlock'!=_0x529540['type']&&'formatInline'!=_0x529540['type'])return;const {data:_0x16af46}=_0x529540;return _0x16af46&&_0x16af46['commandName']==_0x536def?_0x16af46['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x513906,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x513906,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x1f739f{['afterInit'](){const _0x5c8d93=this['editor'];if(!_0x5c8d93['plugins']['has']('Style')||!_0x5c8d93['plugins']['has']('DataSchema'))return;const _0x4ca073=_0x5c8d93['plugins']['get']('TrackChangesEditing'),_0x2a9697=_0x5c8d93['locale'],_0x1f4fb9=_0x5c8d93['config']['get']('style')||{},_0xece41b=_0x5c8d93['plugins']['get']('GeneralHtmlSupport'),_0x457c3a=_0x5c8d93['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5c8d93['plugins']['get']('DataSchema'),_0x1f4fb9['definitions']);_0x4ca073['enableDefaultAttributesIntegration']('style');const _0x4c937a=new Set();for(const _0x198d10 of _0x457c3a['block']){const _0x36eb2c=_0xece41b['getGhsAttributeNameForElement'](_0x198d10['element']);_0x4c937a['add'](_0x36eb2c);}const _0x3935e7=new Set();for(const _0x52fa99 of _0x457c3a['inline']){const _0x402cb3=_0xece41b['getGhsAttributeNameForElement'](_0x52fa99['element']);_0x3935e7['add'](_0x402cb3);for(const _0x21819b of _0x52fa99['ghsAttributes'])_0x3935e7['add'](_0x21819b);}for(const _0xe1e8ee of _0x4c937a)_0x4ca073['registerBlockAttribute'](_0xe1e8ee),_0x4ca073['descriptionFactory']['registerAttributeLabel'](_0xe1e8ee,o(_0x2a9697,'FORMAT_STYLE'));for(const _0x2a349e of _0x3935e7)_0x4ca073['registerInlineAttribute'](_0x2a349e),_0x4ca073['descriptionFactory']['registerAttributeLabel'](_0x2a349e,o(_0x2a9697,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26ceee=this['editor'],_0xcdcdaa=_0x26ceee['locale'];_0x26ceee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48cd41=>{if('formatBlock'!=_0x48cd41['type']&&'formatInline'!=_0x48cd41['type'])return;const {data:_0xacf58b}=_0x48cd41;return _0xacf58b&&'style'===_0xacf58b['commandName']?_0xacf58b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xcdcdaa,'*Set\x20format:*\x20%0',_0xacf58b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xcdcdaa,'*Remove\x20format:*\x20%0',_0xacf58b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x1f739f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x121469){super(_0x121469),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x17745b=this['editor'],_0x149a30=_0x17745b['model']['document']['selection'];if(!_0x17745b['plugins']['has']('TableEditing'))return;const _0x38df5e=_0x17745b['locale'],_0x278fb7=_0x17745b['plugins']['get']('TrackChangesEditing'),_0x3bdcdc=_0x17745b['plugins']['get']('TableUtils');_0x278fb7['descriptionFactory']['registerElementLabel']('table',_0x37ae08=>o(_0x38df5e,'ELEMENT_TABLE',_0x37ae08)),this['_setupColumnsRowsFixing'](),_0x278fb7['enableCommand']('insertTable'),_0x278fb7['enableCommand']('selectTableRow'),_0x278fb7['enableCommand']('selectTableColumn');for(const _0x427573 of['insertTableRowAbove','insertTableRowBelow']){const _0x528e5d=_0x17745b['commands']['get'](_0x427573);_0x278fb7['enableCommand'](_0x427573,_0x5db502=>{_0x17745b['model']['change'](_0x1b2820=>{_0x5db502();const _0xda77ba='above'===_0x528e5d['order'],_0x4b9f4c=_0x3bdcdc['getSelectionAffectedTableCells'](_0x149a30),_0x5cd5c1=_0x3bdcdc['getRowIndexes'](_0x4b9f4c),_0x53e77d=_0xda77ba?_0x5cd5c1['first']-0x1:_0x5cd5c1['last']+0x1,_0x326240=_0x4b9f4c[0x0]['findAncestor']('table'),_0x4aa2af=_0x3bdcdc['createTableWalker'](_0x326240,{'startRow':_0x53e77d,'endRow':_0x53e77d}),_0x520202=Array['from'](_0x4aa2af)['map'](_0x4a56c5=>_0x1b2820['createRangeOn'](_0x4a56c5['cell']));_0x278fb7['markMultiRangeInsertion'](_0x520202,'tableRow');});});}for(const _0x41df2a of['insertTableColumnLeft','insertTableColumnRight']){const _0xc151df=_0x17745b['commands']['get'](_0x41df2a);_0x278fb7['enableCommand'](_0x41df2a,_0x140d00=>{_0x17745b['model']['change'](_0x419926=>{_0x140d00();const _0x32724c='left'===_0xc151df['order'],_0x2639c1=_0x3bdcdc['getSelectionAffectedTableCells'](_0x149a30),_0xdb509c=_0x3bdcdc['getColumnIndexes'](_0x2639c1),_0x5994fd=_0x32724c?_0xdb509c['first']-0x1:_0xdb509c['last']+0x1,_0x5124f7=_0x2639c1[0x0]['findAncestor']('table'),_0x1702b2=_0x3bdcdc['createTableWalker'](_0x5124f7,{'startRow':0x0,'column':_0x5994fd,'includeAllSlots':!0x1}),_0x58ab66=Array['from'](_0x1702b2)['map'](_0x92ed3e=>_0x419926['createRangeOn'](_0x92ed3e['cell']));_0x278fb7['markMultiRangeInsertion'](_0x58ab66,'tableColumn');});});}for(const _0x16267a of['removeTableRow','removeTableColumn']){const _0x1d254b=_0x16267a['substr'](0xb),_0x4d0325=_0x1d254b['toLowerCase'](),_0x24f7c1=_0x4d0325['substr'](0x0,0x3)+'span',_0x2774b2='table'+_0x1d254b,_0x52a6cd='min'+_0x1d254b,_0x1865c4='max'+_0x1d254b;_0x278fb7['enableCommand'](_0x16267a,()=>{_0x17745b['model']['change'](_0x1660de=>{const _0x1d9c45=_0x3bdcdc['getSelectionAffectedTableCells'](_0x149a30),_0x494829=_0x1d9c45[0x0]['findAncestor']('table');let _0x2fd6ad;if('removeTableRow'==_0x16267a){const _0x2c9805=_0x3bdcdc['getRowIndexes'](_0x1d9c45);_0x2fd6ad={'startRow':_0x2c9805['first'],'endRow':_0x2c9805['last'],'includeAllSlots':!0x0};}else{const _0x39bb7e=_0x3bdcdc['getColumnIndexes'](_0x1d9c45);_0x2fd6ad={'startColumn':_0x39bb7e['first'],'endColumn':_0x39bb7e['last'],'includeAllSlots':!0x0};}const _0x1ac781=_0x3bdcdc['createTableWalker'](_0x494829,_0x2fd6ad),_0x1b10b4=Array['from'](_0x1ac781)['map'](({cell:_0x5eeaf6})=>_0x5eeaf6),_0x5b5e56=Re(_0x1b10b4['filter'](_0x3677c4=>_0x3677c4['hasAttribute'](_0x24f7c1))),_0x26f379=Re(_0x1b10b4['filter'](_0x2b1b0a=>!_0x2b1b0a['hasAttribute'](_0x24f7c1)))['map'](_0x2f30ef=>_0x1660de['createRangeOn'](_0x2f30ef)),_0x4d669c=_0x278fb7['markMultiRangeDeletion'](_0x26f379,_0x2774b2);if(_0x4d669c&&('tableRow'==_0x4d669c['subType']||'tableColumn'==_0x4d669c['subType'])){const _0x1b2e52=this['_getSuggestionCoords'](_0x4d669c);for(const _0x4395eb of _0x5b5e56){const _0x40e9eb=_0x1660de['createRangeOn'](_0x4395eb),_0x3d2cd9=_0x3bdcdc['getCellLocation'](_0x4395eb),_0x16ff34=_0x4395eb['getAttribute'](_0x24f7c1)-0x1,_0x536d97=_0x1b2e52[_0x52a6cd],_0x3e4e2d=_0x1b2e52[_0x1865c4];_0x536d97<=_0x3d2cd9[_0x4d0325]&&_0x3d2cd9[_0x4d0325]+_0x16ff34<=_0x3e4e2d&&_0x4d669c['addRange'](_0x40e9eb);}}});});}function _0xcd0b5e(_0x5ea4ce){const _0x54f2b6=Array['from'](_0x149a30['getRanges']())['map'](_0xc8c743=>_0x1c86da['fromRange'](_0xc8c743));_0x17745b['model']['change'](_0x7520c9=>{const _0x4b3a1a=_0x7520c9['batch'];_0x5ea4ce=_0x5ea4ce['filter'](_0x2af63d=>'$graveyard'!=_0x2af63d['root']['rootName']),_0x7520c9['setSelection'](_0x5ea4ce),_0x17745b['commands']['get']('removeTableRow')['refresh'](),_0x17745b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x17745b['model']['enqueueChange'](()=>{_0x17745b['model']['enqueueChange'](_0x4b3a1a,_0x365301=>{const _0x57f05f=_0x54f2b6['filter'](_0x3b6601=>'$graveyard'!=_0x3b6601['root']['rootName']);_0x57f05f['length']>0x0&&_0x365301['setSelection'](_0x57f05f);for(const _0x5870ac of _0x54f2b6)_0x5870ac['detach']();});});});}function _0x3e0213(_0x32302c){_0x17745b['model']['change'](_0xc076d9=>{const _0x222ca5=Array['from'](_0x149a30['getRanges']())['map'](_0x54b76f=>_0x1c86da['fromRange'](_0x54b76f)),_0x4a88ea=[];for(const _0x5c77c8 of _0x32302c)for(const _0x329268 of _0x5c77c8['getItems']({'shallow':!0x0}))_0x4a88ea['push'](_0x329268);for(const _0x290ee4 of _0x4a88ea)'$graveyard'!=_0x290ee4['root']['rootName']&&(_0xc076d9['setSelection'](_0xc076d9['createPositionAt'](_0x290ee4,0x0)),_0x17745b['commands']['get']('removeTableColumn')['refresh'](),_0x17745b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x415a9d=_0x222ca5['filter'](_0x4ce4e0=>'$graveyard'!=_0x4ce4e0['root']['rootName']);_0x415a9d['length']>0x0&&_0xc076d9['setSelection'](_0x415a9d);for(const _0x3af526 of _0x222ca5)_0x3af526['detach']();});}function _0x16024c(_0x306847,_0x41b18d){return _0x41b18d['every'](_0x14e2e5=>_0x306847['some'](_0x3e9524=>_0x3e9524['end']['isEqual'](_0x14e2e5['start'])||_0x14e2e5['end']['isEqual'](_0x3e9524['start'])));}function _0x5366bb(_0x764523,_0x5b88cb){return!_0x764523['some'](_0x5d64d2=>_0x5b88cb['some'](_0x12eade=>_0x5d64d2['isIntersecting'](_0x12eade)))&&_0x764523['some'](_0x4d0c48=>_0x5b88cb['some'](_0x4a5bfe=>_0x4d0c48['end']['isTouching'](_0x4a5bfe['start'])));}_0x17745b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x25b040,_0x570019,_0x5a5ce0)=>{if(!_0x5a5ce0['options']['showSuggestionHighlights'])return;const _0x2a401e=_0x570019['item'];if(!_0x2a401e)return;const _0x534f39=_0x5a5ce0['mapper']['toViewElement'](_0x2a401e);function _0x4bd66c(_0xa87b5a){return Array['isArray'](_0xa87b5a)?_0xa87b5a:[_0xa87b5a];}_0x534f39&&'tableCell'===_0x2a401e['name']&&_0x585a32(_0x534f39,_0x5a5ce0['writer'],(_0x580a9d,_0x44a584,_0x8996e6)=>_0x8996e6['addClass'](_0x4bd66c(_0x44a584['classes']),_0x580a9d),(_0x1f3bc0,_0x19ad92,_0x114834)=>_0x114834['removeClass'](_0x4bd66c(_0x19ad92['classes']),_0x1f3bc0));},{'priority':'highest'}),_0x278fb7['descriptionFactory']['registerDescriptionCallback'](_0x579fea=>{if('insertion'!=_0x579fea['type']&&'deletion'!=_0x579fea['type'])return;const _0x1ad7b4=_0x579fea['getContainedElement']();if(null!=_0x1ad7b4&&_0x1ad7b4['is']('element','table')){if('insertion'==_0x579fea['type']){const _0x106988=_0x579fea['getItems']()['filter'](_0xc2b86c=>_0xc2b86c['is']('$textProxy'))['map'](_0x93ebe2=>_0x93ebe2['data']);if(_0x106988['length'])return{'type':'insertion','content':o(_0x38df5e,'*Insert:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x106988['join']('\x20')+'\x22'))};}if('deletion'==_0x579fea['type']){const _0x27f678=_0x579fea['getItems']()['filter'](_0x4f4216=>_0x4f4216['is']('$textProxy'))['map'](_0x343870=>_0x343870['data']);if(_0x27f678['length'])return{'type':'deletion','content':o(_0x38df5e,'*Remove:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x27f678['join']('\x20')+'\x22'))};}}}),_0x278fb7['descriptionFactory']['registerDescriptionCallback'](_0x29a6e3=>{if('tableRow'==_0x29a6e3['subType']){const _0x2de28f=_0x29a6e3['getItems']()['filter'](_0x478e83=>_0x478e83['is']('$textProxy'))['map'](_0x104607=>_0x104607['data']),_0x1f0d05=this['_getSuggestionCoords'](_0x29a6e3),_0x1977f8=_0x1f0d05['maxRow']-_0x1f0d05['minRow']+0x1;if('insertion'==_0x29a6e3['type'])return _0x2de28f['length']?{'type':'insertion','content':o(_0x38df5e,'*Insert:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1977f8,'\x22'+_0x2de28f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x38df5e,'*Insert:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_ROW',_0x1977f8))};if('deletion'==_0x29a6e3['type'])return _0x2de28f['length']?{'type':'deletion','content':o(_0x38df5e,'*Remove:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1977f8,'\x22'+_0x2de28f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x38df5e,'*Remove:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_ROW',_0x1977f8))};}if('tableColumn'==_0x29a6e3['subType']){const _0x19dbb0=_0x29a6e3['getItems']()['filter'](_0x1d8540=>_0x1d8540['is']('$textProxy'))['map'](_0xb520aa=>_0xb520aa['data']),_0x5b9c39=this['_getSuggestionCoords'](_0x29a6e3),_0x5ed758=_0x5b9c39['maxColumn']-_0x5b9c39['minColumn']+0x1;if('insertion'==_0x29a6e3['type'])return _0x19dbb0['length']?{'type':'insertion','content':o(_0x38df5e,'*Insert:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5ed758,'\x22'+_0x19dbb0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x38df5e,'*Insert:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_COLUMN',_0x5ed758))};if('deletion'==_0x29a6e3['type'])return _0x19dbb0['length']?{'type':'deletion','content':o(_0x38df5e,'*Remove:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5ed758,'\x22'+_0x19dbb0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x38df5e,'*Remove:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_COLUMN',_0x5ed758))};}}),_0x278fb7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xcd0b5e),_0x278fb7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xcd0b5e),_0x278fb7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3e0213),_0x278fb7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3e0213),_0x278fb7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x16024c),_0x278fb7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x16024c),_0x278fb7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5366bb),_0x278fb7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5366bb);}['_acceptFormatSuggestionCallbackFactory'](){const _0x216ce1=this['editor'],_0x14bbb1=_0x216ce1['model']['document']['selection'];return(_0x314913,_0x6642)=>{_0x216ce1['model']['change'](_0x1554c4=>{const {commandName:_0x107a2a,commandParams:_0x2a51ef}=_0x6642;let _0x59d660=_0x314913[0x0]['end']['nodeBefore'];_0x2a51ef&&_0x2a51ef[0x0]&&!0x1===_0x2a51ef[0x0]['forceValue']&&(_0x59d660=_0x314913[0x0]['start']['nodeAfter']);const _0x12a514=_0x1554c4['createRangeIn'](_0x59d660);if('$graveyard'==_0x12a514['root']['rootName'])return;const _0x2ba4c9=Array['from'](_0x14bbb1['getRanges']())['map'](_0x5b7b71=>_0x1c86da['fromRange'](_0x5b7b71));_0x1554c4['setSelection'](_0x12a514),_0x216ce1['commands']['get'](_0x107a2a)['refresh'](),_0x2a51ef['push']({'forceDefaultExecution':!0x0}),_0x216ce1['execute'](_0x107a2a,..._0x2a51ef);const _0x481b1e=_0x2ba4c9['filter'](_0x232732=>'$graveyard'!=_0x232732['root']['rootName']);_0x481b1e['length']>0x0&&_0x1554c4['setSelection'](_0x481b1e);for(const _0x22e67f of _0x2ba4c9)_0x22e67f['detach']();});};}['_getCoordsForCells'](_0x411a7d){const _0x40cdb7=this['editor']['plugins']['get']('TableUtils');let _0x465001=Number['MAX_SAFE_INTEGER'],_0x4a4124=Number['MIN_SAFE_INTEGER'],_0x5b9a07=Number['MAX_SAFE_INTEGER'],_0x799c34=Number['MIN_SAFE_INTEGER'];for(const _0x52fb8e of _0x411a7d){if('$graveyard'==_0x52fb8e['root']['rootName'])continue;const {row:_0x595f8d,column:_0x14b9a2}=_0x40cdb7['getCellLocation'](_0x52fb8e),_0x3598c3=_0x52fb8e['hasAttribute']('rowspan')?_0x52fb8e['getAttribute']('rowspan')-0x1:0x0,_0x4eb81f=_0x52fb8e['hasAttribute']('colspan')?_0x52fb8e['getAttribute']('colspan')-0x1:0x0;_0x465001=_0x595f8d<_0x465001?_0x595f8d:_0x465001,_0x4a4124=_0x595f8d+_0x3598c3>_0x4a4124?_0x595f8d+_0x3598c3:_0x4a4124,_0x5b9a07=_0x14b9a2<_0x5b9a07?_0x14b9a2:_0x5b9a07,_0x799c34=_0x14b9a2+_0x4eb81f>_0x799c34?_0x14b9a2+_0x4eb81f:_0x799c34;}return{'minRow':_0x465001,'maxRow':_0x4a4124,'minColumn':_0x5b9a07,'maxColumn':_0x799c34};}['_setupColumnsRowsFixing'](){const _0x2f9de9=this['editor'],_0x7471d3=_0x2f9de9['plugins']['get']('TrackChangesEditing'),_0x56de89=_0x2f9de9['plugins']['get']('TableUtils');_0x2f9de9['model']['document']['on']('change:data',()=>{const _0x1814df=Array['from'](_0x2f9de9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3295a2,data:_0x132df3}of _0x1814df){const {group:_0xa25fa,id:_0xd1ce9f,subType:_0x50efc0}=_0x7471d3['_splitMarkerName'](_0x3295a2);if('suggestion'!=_0xa25fa)continue;if(null!=_0x132df3['oldRange'])continue;const _0x1f94d9=_0x7471d3['getSuggestion'](_0xd1ce9f);this['_tablePostFixingSubtypes']['includes'](_0x50efc0)&&this['_tableSuggestions']['add'](_0x1f94d9);}},{'priority':'low'});const _0x59d2ca=(_0x178a88,_0x45a598)=>{let _0x48e9a4=!0x1;const _0x5030ac=_0x45a598['createRangeOn'](_0x178a88),_0x214e80=_0x178a88['findAncestor']('table'),_0x2e8176=_0x56de89['getCellLocation'](_0x178a88);for(const _0x529368 of this['_tableSuggestions']){const _0x32eded=_0x529368['subType'],_0x28d754=_0x32eded['startsWith']('tablePaste'),_0x3b040f=_0x32eded['substr'](_0x28d754?0xa:0x5),_0x1671fe=_0x3b040f['toLowerCase'](),_0x5b8ef0=_0x1671fe['substr'](0x0,0x3)+'span',_0x38d3ad='min'+_0x3b040f,_0x34ed10='max'+_0x3b040f;if(!_0x529368['isInContent'])continue;if(_0x214e80!=_0x529368['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x529368['isIntersectingWithRange'](_0x5030ac))continue;const _0x3fc06c=_0x178a88['hasAttribute'](_0x5b8ef0)?_0x178a88['getAttribute'](_0x5b8ef0)-0x1:0x0,_0x2f5736=this['_getSuggestionCoords'](_0x529368),_0x34c987=_0x2f5736[_0x38d3ad],_0x2e1c0d=_0x2f5736[_0x34ed10];_0x34c987<=_0x2e8176[_0x1671fe]&&_0x2e8176[_0x1671fe]+_0x3fc06c<=_0x2e1c0d&&(_0x529368['addRange'](_0x5030ac),_0x48e9a4=!0x0);}return _0x48e9a4;};_0x2f9de9['model']['document']['registerPostFixer'](_0xd7534b=>{let _0x281fa4=!0x1;for(const _0x47038e of _0x2f9de9['model']['document']['differ']['getChanges']())if('insert'==_0x47038e['type']){if('tableRow'==_0x47038e['name']){for(const _0x16c2d8 of _0x47038e['position']['nodeAfter']['getChildren']())_0x281fa4=_0x281fa4||_0x59d2ca(_0x16c2d8,_0xd7534b);}else'tableCell'==_0x47038e['name']&&(_0x281fa4=_0x281fa4||_0x59d2ca(_0x47038e['position']['nodeAfter'],_0xd7534b));}return _0x281fa4;});}['_getSuggestionCoords'](_0x591124){return this['_getCoordsForCells'](_0x591124['getRanges']()['map'](_0x53ac66=>_0x53ac66['start']['nodeAfter']));}}function Re(_0x5eb381){return Array['from'](new Set(_0x5eb381)['values']());}class _t extends _0x1f739f{static get['requires'](){return[vt];}['afterInit'](){const _0x4fcd99=this['editor'],_0x511ae9=_0x4fcd99['model']['document']['selection'],_0x31702e=_0x4fcd99['locale'];if(!_0x4fcd99['plugins']['has']('TableEditing'))return;const _0x2e5313=_0x4fcd99['plugins']['get']('TrackChangesEditing'),_0x436695=_0x4fcd99['plugins']['get']('TableUtils'),_0x32e6ee=_0x4fcd99['plugins']['get'](vt);_0x32e6ee['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2e5313['enableCommand']('mergeTableCells',()=>{const _0x588066=_0x436695['getSelectionAffectedTableCells'](_0x4fcd99['model']['document']['selection']);_0x4fcd99['model']['change'](()=>{_0x2e5313['markMultiRangeBlockFormat'](_0x588066,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4fcd99['commands']['get']('mergeTableCells')['on']('execute',(_0x75188c,_0x40d71d)=>{_0x4fcd99['commands']['get']('trackChanges')['value']&&(_0x40d71d['length']>0x0&&_0x40d71d[_0x40d71d['length']-0x1]&&_0x40d71d[_0x40d71d['length']-0x1]['forceDefaultExecution']||_0x2e5313['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x75188c['stop']());},{'priority':'highest'});for(const _0x4512f1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x39b1e1=_0x4fcd99['commands']['get'](_0x4512f1);_0x2e5313['enableCommand'](_0x4512f1,()=>{const _0x360a0e=_0x4fcd99['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x272c1e=>_0x272c1e['is']('element','tableCell')),_0x4533cc=_0x39b1e1['value'];_0x4fcd99['model']['change'](()=>{_0x2e5313['markMultiRangeBlockFormat']([_0x360a0e,_0x4533cc],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x55adae of['splitTableCellVertically','splitTableCellHorizontally']){const _0x208bcc=_0x4fcd99['commands']['get'](_0x55adae);_0x2e5313['enableCommand'](_0x55adae,()=>{const _0x467f78=_0x436695['getSelectionAffectedTableCells'](_0x4fcd99['model']['document']['selection'])[0x0],_0x258dfe=_0x467f78['findAncestor']('table'),{column:_0x24e86e,row:_0x4691d7}=_0x436695['getCellLocation'](_0x467f78);let _0xf1b2a5=[];if('horizontally'==_0x208bcc['direction']){const _0x4a2b94=_0x436695['createTableWalker'](_0x258dfe,{'startRow':_0x4691d7,'endRow':_0x4691d7,'includeAllSlots':!0x0});_0xf1b2a5=Array['from'](_0x4a2b94)['map'](_0x44a322=>_0x44a322['cell']);}else{const _0x2e15aa=_0x436695['createTableWalker'](_0x258dfe,{'column':_0x24e86e,'includeAllSlots':!0x0});_0xf1b2a5=Array['from'](_0x2e15aa)['map'](_0x40ef67=>_0x40ef67['cell']);}_0x4fcd99['model']['change'](_0x4fba68=>{_0x2e5313['markBlockFormat'](_0x4fba68['createRangeOn'](_0x467f78),{'commandName':_0x55adae,'commandParams':[]},_0xf1b2a5,_0x55adae);});});}_0x2e5313['descriptionFactory']['registerDescriptionCallback'](_0x9b77bd=>{if('formatBlock'!=_0x9b77bd['type']&&'formatInline'!=_0x9b77bd['type'])return;const {data:_0x2a689f}=_0x9b77bd;return _0x2a689f&&'mergeTableCells'==_0x2a689f['commandName']?{'type':'format','content':o(_0x31702e,'*Merge\x20cells*')}:void 0x0;}),_0x2e5313['descriptionFactory']['registerDescriptionCallback'](_0x465a76=>{if('formatBlock'!=_0x465a76['type']&&'formatInline'!=_0x465a76['type'])return;const {data:_0x3bc672}=_0x465a76;return _0x3bc672?'splitTableCellVertically'==_0x3bc672['commandName']?{'type':'format','content':o(_0x31702e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3bc672['commandName']?{'type':'format','content':o(_0x31702e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x353a89=_0x32e6ee['_acceptFormatSuggestionCallbackFactory']();for(const _0x2202cc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2e5313['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2202cc,'accept',_0x353a89);for(const _0x220227 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2e5313['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x220227,'accept',_0x353a89);_0x2e5313['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3a44df=>{_0x4fcd99['model']['change'](_0x56e088=>{const _0x1d2efb=Array['from'](_0x511ae9['getRanges']())['map'](_0x54942a=>_0x1c86da['fromRange'](_0x54942a));_0x56e088['setSelection'](_0x3a44df),_0x4fcd99['commands']['get']('mergeTableCells')['refresh'](),_0x4fcd99['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x47443a=_0x1d2efb['filter'](_0xe5a783=>'$graveyard'!=_0xe5a783['root']['rootName']);_0x47443a['length']>0x0&&_0x56e088['setSelection'](_0x47443a);for(const _0x109454 of _0x1d2efb)_0x109454['detach']();});});for(const _0x49db1f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3accfc=_0x4fcd99['commands']['get'](_0x49db1f);_0x3accfc['on']('set:isEnabled',(_0xc62d2d,_0x50b32d,_0x4019bc)=>{if(_0x4019bc){const _0x4c5271=_0x4fcd99['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x19951b=>_0x19951b['is']('element','tableCell'));this['_areMergableCells'](_0x3accfc['value'],_0x4c5271)||(_0xc62d2d['return']=!0x1,_0xc62d2d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x395d68=this['editor']['commands']['get']('mergeTableCells'),_0x32ccb9=this['editor']['plugins']['get']('TableUtils');if(!_0x395d68['isEnabled'])return!0x1;const _0x4c0dd7=_0x32ccb9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x48132d of _0x4c0dd7)for(const _0x5aade5 of _0x4c0dd7)if(_0x48132d!=_0x5aade5&&!this['_areMergableCells'](_0x48132d,_0x5aade5))return!0x1;return!0x0;}['_areMergableCells'](_0x1e1088,_0x19d5ac){const _0x42f4a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54f817=this['editor']['model']['createRangeOn'](_0x1e1088),_0x31efa4=this['editor']['model']['createRangeOn'](_0x19d5ac),_0x4d1b60=new Set(),_0x30475b=new Set();for(const _0x24b63b of _0x42f4a7['getSuggestions']())if(('insertion'==_0x24b63b['type']||'deletion'==_0x24b63b['type']||'mergeTableCells'==_0x24b63b['subType'])&&_0x24b63b['isInContent']){for(const _0xb0763e of _0x24b63b['getRanges']())_0xb0763e['containsRange'](_0x54f817,!0x0)&&_0x4d1b60['add'](_0x24b63b['type']+':'+_0x24b63b['author']['id']),_0xb0763e['containsRange'](_0x31efa4,!0x0)&&_0x30475b['add'](_0x24b63b['type']+':'+_0x24b63b['author']['id']);}if(_0x4d1b60['size']!=_0x30475b['size'])return!0x1;for(const _0x5d75a2 of _0x4d1b60)if(!_0x30475b['has'](_0x5d75a2))return!0x1;return!0x0;}}class Ct extends _0x1f739f{static get['requires'](){return[vt];}['afterInit'](){const _0x37ef05=this['editor'];if(!_0x37ef05['plugins']['has']('TableEditing'))return;const _0x145168=_0x37ef05['locale'],_0x14b1f0=_0x37ef05['plugins']['get']('TrackChangesEditing');_0x14b1f0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x14b1f0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x14b1f0['registerBlockAttribute']('headingRows'),_0x14b1f0['registerBlockAttribute']('headingColumns'),_0x14b1f0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x145168,'FORMAT_HEADER_ROW')),_0x14b1f0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x145168,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1767e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55828f=this['editor']['plugins']['get']('TableUtils'),_0x18fffe=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x551b68({showActiveMarker:_0x4743cc=!0x0,setDataAttribute:_0x456031=!0x0}={}){return(_0x33172a,_0x5d2460,_0x10404f)=>{const {type:_0x4e33eb,id:_0xe7174e}=_0x1767e0['_splitMarkerName'](_0x5d2460['markerName']),_0x1bfbea=_0x1767e0['getSuggestion'](_0xe7174e),_0x1672b0=_0x1bfbea['data'];if('formatBlock'!=_0x1bfbea['type']||!_0x1672b0||'setTableColumnHeader'!=_0x1672b0['commandName'])return;if(_0x5d2460['item'])return void _0x33172a['stop']();if(!_0x10404f['consumable']['consume'](_0x5d2460['markerRange'],_0x33172a['name']))return;const _0x2b0749=_0x5d2460['markerRange']['start']['nodeAfter'],_0x2baf4f=_0x5d2460['markerRange']['end']['nodeBefore'],_0x4bbb3b=_0x2b0749['parent']['parent'],{column:_0x1b205c}=_0x55828f['getCellLocation'](_0x2b0749),{column:_0x54b2a0}=_0x55828f['getCellLocation'](_0x2baf4f);for(let _0x1ada9c=_0x1b205c;_0x1ada9c<=_0x54b2a0;_0x1ada9c++){const _0x54eb80=_0x55828f['createTableWalker'](_0x4bbb3b,{'column':_0x1ada9c,'includeAllSlots':!0x1});for(const _0x4d5ff7 of _0x54eb80){const _0x458541=_0x4d5ff7['cell'],_0x5491f0=_0x10404f['mapper']['toViewElement'](_0x458541);_0x10404f['writer']['addClass']('ck-suggestion-marker-'+_0x4e33eb,_0x5491f0),_0x456031&&_0x10404f['writer']['setAttribute']('data-suggestion',_0xe7174e,_0x5491f0),_0x10404f['mapper']['bindElementToMarker'](_0x5491f0,_0x5d2460['markerName']),_0x4743cc&&(_0x1767e0['activeMarkers']['includes'](_0x5d2460['markerName'])?_0x10404f['writer']['addClass']('ck-suggestion-marker--active',_0x5491f0):_0x10404f['writer']['removeClass']('ck-suggestion-marker--active',_0x5491f0));}}};}_0x1767e0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x18fffe),_0x1767e0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x18fffe),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x551b68(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2dad14,_0x4121b5,_0x186fb9)=>{_0x186fb9['options']['showSuggestionHighlights']&&_0x551b68({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2dad14,_0x4121b5,_0x186fb9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4e7035,_0x3197ee,_0x3c11d7)=>{const {type:_0x3742e0,id:_0x5a0f26}=_0x1767e0['_splitMarkerName'](_0x3197ee['markerName']),_0x12e59f=_0x1767e0['getSuggestion'](_0x5a0f26),_0x5b375f=_0x12e59f['data'];if('formatBlock'!=_0x12e59f['type']||!_0x5b375f||'setTableColumnHeader'!=_0x5b375f['commandName'])return;const _0xff3c1e=_0x3c11d7['mapper']['markerNameToElements'](_0x3197ee['markerName']);if(_0xff3c1e){for(const _0x4c5cf7 of _0xff3c1e)_0x3c11d7['writer']['removeClass']('ck-suggestion-marker-'+_0x3742e0,_0x4c5cf7),_0x3c11d7['writer']['removeClass']('ck-suggestion-marker--active',_0x4c5cf7),_0x3c11d7['writer']['removeAttribute']('data-suggestion',_0x4c5cf7),_0x3c11d7['mapper']['unbindElementFromMarkerName'](_0x4c5cf7,_0x3197ee['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b0806=this['editor'],_0x4d2a31=_0x5b0806['locale'];function _0x43301a(_0x2e246f){return{'type':'format','content':o(_0x4d2a31,'*Format:*\x20%0',_0x2e246f)};}_0x5b0806['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18243b=>{if('formatBlock'!=_0x18243b['type'])return;const {data:_0x14ed02}=_0x18243b;if(_0x14ed02){if('setTableRowHeader'==_0x14ed02['commandName']){const _0x191bf1=_0x14ed02['commandParams'][0x0]['forceValue'];return _0x43301a(o(_0x4d2a31,_0x191bf1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x14ed02['commandName']){const _0x2ac625=_0x14ed02['commandParams'][0x0]['forceValue'];return _0x43301a(o(_0x4d2a31,_0x2ac625?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0xc83760=>[_0xc83760,null]));class Nt extends _0x1f739f{static get['requires'](){return[vt];}['afterInit'](){const _0x3e90e8=this['editor'];if(!_0x3e90e8['plugins']['has']('TableClipboard'))return;const _0x109847=_0x3e90e8['plugins']['get']('TrackChangesEditing'),_0x3375f2=_0x3e90e8['plugins']['get']('TableUtils'),_0x2c2b1c=_0x3e90e8['plugins']['get'](vt),_0x3d1209=_0x3e90e8['plugins']['get']('TableClipboard');_0x2c2b1c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3e90e8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3e90e8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x64a169=null;_0x3e90e8['model']['on']('insertContent',(_0xced813,_0x2b9798)=>{const [_0xe8ad1,_0xc11df5]=_0x2b9798,_0x5893ca=_0x2b9798[_0x2b9798['length']-0x1];_0x5893ca&&_0x5893ca['forceDefaultExecution']||_0x109847['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x399394,_0x5ba9ed,_0x40f2ac,_0x271d56,_0x499493){if(_0x5ba9ed&&!_0x5ba9ed['is']('documentSelection'))return!0x1;const _0x55921f=_0x499493['getTableIfOnlyTableInContent'](_0x399394,_0x40f2ac);if(!_0x55921f||!Ae(_0x55921f,void 0x0,_0x271d56))return!0x1;const _0x383e71=_0x271d56['getSelectionAffectedTableCells'](_0x40f2ac['document']['selection']);if(!_0x383e71['length'])return!0x1;const _0x369bec=_0x383e71[0x0]['findAncestor']('table'),_0x1e44e3=_0x271d56['getRowIndexes'](_0x383e71),_0x35a373=_0x271d56['getColumnIndexes'](_0x383e71),_0x678ab9={'startRow':_0x1e44e3['first'],'endRow':_0x1e44e3['last'],'startColumn':_0x35a373['first'],'endColumn':_0x35a373['last']};return 0x1==_0x383e71['length']&&(_0x678ab9['endRow']+=_0x271d56['getRows'](_0x55921f)-0x1,_0x678ab9['endColumn']+=_0x271d56['getColumns'](_0x55921f)-0x1),Ae(_0x369bec,_0x678ab9,_0x271d56);}(_0xe8ad1,_0xc11df5,_0x3e90e8['model'],_0x3375f2,_0x3d1209)&&(_0xced813['stop'](),_0x64a169={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3e90e8['model']['change'](()=>{_0x3e90e8['model']['insertContent'](_0x2b9798[0x0],_0x2b9798[0x1],_0x2b9798[0x2],{'forceDefaultExecution':!0x0});const _0x46a6d9=_0x46f059(),{rowInsertionRanges:_0x36858b,columnInsertionRanges:_0x3fcd0b,insertionRanges:_0x21baad,deletionRanges:_0x19e992,cells:_0x546909}=_0x64a169;_0x36858b['length']&&_0x109847['markMultiRangeInsertion'](_0x36858b,'tablePasteRow',{'tablePasteChainId':_0x46a6d9}),_0x3fcd0b['length']&&_0x109847['markMultiRangeInsertion'](_0x3fcd0b,'tablePasteColumn',{'tablePasteChainId':_0x46a6d9}),_0x21baad['length']&&(_0x109847['markMultiRangeInsertion'](_0x21baad,'tablePaste',{'tablePasteChainId':_0x46a6d9,'skipNestingCheck':!0x0}),_0x21baad['forEach'](_0x2037b8=>_0x2037b8['detach']?.())),_0x19e992['length']&&(_0x109847['markMultiRangeDeletion'](_0x19e992,'tablePaste',{'tablePasteChainId':_0x46a6d9,'skipNestingCheck':!0x0}),_0x19e992['forEach'](_0x2c1679=>_0x2c1679['detach']?.()));const _0x2f9b7e=_0x109847['markMultiRangeBlockFormat'](_0x546909['map'](({element:_0x35efa4})=>_0x35efa4),{'formatGroupId':_0x46f059()},[],'tablePasteCell',{'tablePasteChainId':_0x46a6d9});if(_0x2f9b7e){const _0x3957e1=_0x2f9b7e['getMarkers'](),_0x954023=[];for(const {element:_0xd62a5c,attributes:_0x1fcb86}of _0x546909){if(!_0x1fcb86)continue;const _0x1a7e6b=_0x3e90e8['model']['createRangeOn'](_0xd62a5c),_0x374bca=_0x3957e1['find'](_0x39711b=>_0x39711b['getRange']()['isEqual'](_0x1a7e6b));_0x374bca&&_0x954023['push']([_0x374bca['name'],_0x1fcb86]);}_0x954023['length']&&_0x2f9b7e['setAttribute']('markerAttributes',Object['fromEntries'](_0x954023));}_0x64a169=null;}));},{'priority':_0x16c4bf['high']+0xa}),_0x3e90e8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5b9e3f,_0x1c7336)=>{const [_0x3264fd,_0x5330c6,,_0x2e9cb5]=_0x1c7336;if(!_0x64a169)return;_0x5b9e3f['stop']();const _0x1b743f=_0x3264fd['cell'],_0x338765=_0x5330c6,_0x5d3b91=je(_0x1b743f),_0x1f9efc=je(_0x338765);_0x5b9e3f['return']=_0x1b743f;let _0x26f9c5=null,_0x47c3d4=null;if(_0x1f9efc||_0x5d3b91){if(_0x5d3b91&&!_0x1f9efc){_0x2e9cb5['remove'](_0x1b743f['getChild'](0x0));for(const _0x12098d of Array['from'](_0x338765['getChildren']()))_0x2e9cb5['insert'](_0x12098d,_0x1b743f,'end');const _0x47443b=_0x64a169['rowInsertionIndexes']['includes'](_0x3264fd['row']),_0x35600c=_0x64a169['columnInsertionIndexes']['includes'](_0x3264fd['column']);_0x47443b||_0x35600c||(_0x26f9c5=_0x1c86da['fromRange'](_0x2e9cb5['createRangeIn'](_0x1b743f)));}else _0x1f9efc&&!_0x5d3b91&&(_0x47c3d4=_0x2e9cb5['createRangeIn'](_0x1b743f));}else{const _0x31e172=_0x2e9cb5['createElement']('tableCellSuggestion'),_0x427bda=_0x2e9cb5['createElement']('tableCellSuggestion');_0x2e9cb5['wrap'](_0x2e9cb5['createRangeIn'](_0x1b743f),_0x427bda),_0x2e9cb5['insert'](_0x31e172,_0x1b743f,0x0);for(const _0x4ee78a of Array['from'](_0x338765['getChildren']()))_0x2e9cb5['insert'](_0x4ee78a,_0x31e172,'end');_0x26f9c5=_0x1c86da['fromRange'](_0x2e9cb5['createRangeOn'](_0x31e172)),_0x47c3d4=_0x1c86da['fromRange'](_0x2e9cb5['createRangeOn'](_0x427bda));}const _0x5721c2=Array['from'](_0x338765['getAttributes']())['filter'](([_0x3ec2c8])=>we['includes'](_0x3ec2c8));_0x64a169['cells']['push']({'element':_0x1b743f,'attributes':_0x5721c2['length']?Object['fromEntries'](_0x5721c2):null}),_0x26f9c5&&_0x64a169['insertionRanges']['push'](_0x26f9c5),_0x47c3d4&&_0x64a169['deletionRanges']['push'](_0x47c3d4);},{'priority':'high'}),_0x3375f2['on']('insertColumns',(_0x4180e4,_0x325c9b)=>{const [_0x2ac709,_0x32efcc={}]=_0x325c9b;if(!_0x64a169)return;const _0x3c8cc7=_0x32efcc['at']||0x0,_0x179278=_0x32efcc['columns']||0x1;_0x64a169['columnInsertionIndexes']=new Array(_0x179278)['fill'](_0x3c8cc7)['map']((_0x4e15f0,_0x1872b3)=>_0x4e15f0+_0x1872b3);for(const {cell:_0x57e60e}of _0x3375f2['createTableWalker'](_0x2ac709,{'startColumn':_0x3c8cc7,'endColumn':_0x3c8cc7+_0x179278-0x1}))_0x64a169['columnInsertionRanges']['push'](_0x3e90e8['model']['createRangeOn'](_0x57e60e));},{'priority':'low'}),_0x3375f2['on']('insertRows',(_0x4ab39b,_0x53fd67)=>{const [_0x27cf3b,_0x58631f={}]=_0x53fd67;if(!_0x64a169)return;const _0x3a6ddc=_0x58631f['at']||0x0,_0x392626=_0x58631f['rows']||0x1;_0x64a169['rowInsertionIndexes']=new Array(_0x392626)['fill'](_0x3a6ddc)['map']((_0x2d0364,_0x18ead8)=>_0x2d0364+_0x18ead8);for(const {cell:_0x22173c}of _0x3375f2['createTableWalker'](_0x27cf3b,{'startRow':_0x3a6ddc,'endRow':_0x3a6ddc+_0x392626-0x1}))_0x64a169['rowInsertionRanges']['push'](_0x3e90e8['model']['createRangeOn'](_0x22173c));},{'priority':'low'}),_0x109847['descriptionFactory']['registerDescriptionCallback'](_0x14a141=>{if(_0x14a141['subType']&&_0x14a141['subType']['startsWith']('tablePaste'))return _0x14a141['previous']?{}:{'type':'insertion','content':o(_0x3e90e8['locale'],'*Replace\x20table\x20cells*')};});const _0x11738c=()=>!0x1;for(const _0x1a26ee of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x109847['_suggestionFactory']['registerCustomCallback']('insertion',_0x1a26ee,'join',_0x11738c),_0x109847['_suggestionFactory']['registerCustomCallback']('deletion',_0x1a26ee,'join',_0x11738c),_0x109847['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a26ee,'join',_0x11738c);_0x109847['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x11738c),_0x109847['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x18c7d7,_0x1b2c14,_0x32f22c)=>{const _0xda77c1=_0x18c7d7['map'](_0x4a9ccb=>_0x4a9ccb['getContainedElement']())['filter'](_0x264895=>_0x264895),_0x36e8ec=new Map(_0xda77c1['map'](_0x7dd299=>[_0x7dd299,null]));if(_0x64a169){for(const {element:_0x19d8d8,attributes:_0x5a35de}of _0x64a169['cells'])_0x5a35de&&_0x36e8ec['set'](_0x19d8d8,_0x5a35de);}else{if(_0x32f22c&&_0x32f22c['markerAttributes'])for(const [_0x4e63a5,_0x236944]of Object['entries'](_0x32f22c['markerAttributes'])){const _0x5c2d04=_0x3e90e8['model']['markers']['get'](_0x4e63a5),_0x4080e3=_0x5c2d04?_0x5c2d04['getRange']()['getContainedElement']():null;_0x4080e3&&_0x36e8ec['set'](_0x4080e3,_0x236944);}}_0x3e90e8['model']['change'](_0x532c11=>{for(const [_0x23d4f1,_0x16eb7a]of _0x36e8ec)_0x532c11['setAttributes']({...ve,..._0x16eb7a},_0x23d4f1);});});const _0x36c544=(_0x4197e4,_0x1e5956)=>{_0x109847['_suggestionFactory']['registerCustomCallback'](_0x4197e4,'tablePaste',_0x1e5956,(_0x576269,_0x51a1af,_0x267614)=>{_0x3e90e8['model']['change'](_0x1e0ef5=>{const _0x23ff6c=[];for(const _0x4ae727 of _0x576269){const _0x23ddda=_0x4ae727['start']['nodeAfter'];_0x23ddda['is']('element','tableCellSuggestion')&&_0x23ff6c['push'](_0x23ddda);}_0x109847['_suggestionFactory']['getSuggestionCallback'](_0x4197e4,null,_0x1e5956)(_0x576269,_0x51a1af,_0x267614);for(const _0x5a0c26 of _0x23ff6c)'$graveyard'!=_0x5a0c26['root']['rootName']&&_0x1e0ef5['unwrap'](_0x5a0c26);});});};_0x36c544('insertion','accept'),_0x36c544('insertion','discard'),_0x36c544('deletion','accept'),_0x36c544('deletion','discard'),_0x109847['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x490857=>{const _0x52122d=_0x490857['map'](_0x29f838=>_0x29f838['getContainedElement']()),_0xf93404=_0x52122d[0x0]['findAncestor']('table'),{minRow:_0x1c8184,maxRow:_0x4538e3}=_0x2c2b1c['_getCoordsForCells'](_0x52122d);_0x3375f2['removeRows'](_0xf93404,{'at':_0x1c8184,'rows':_0x4538e3-_0x1c8184+0x1});}),_0x109847['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4ec3e0=>{const _0xb2f8cd=_0x4ec3e0['map'](_0x13698e=>_0x13698e['getContainedElement']()),_0x13bb62=_0xb2f8cd[0x0]['findAncestor']('table'),{minColumn:_0x5ccbe5,maxColumn:_0x539b07}=_0x2c2b1c['_getCoordsForCells'](_0xb2f8cd);_0x3375f2['removeColumns'](_0x13bb62,{'at':_0x5ccbe5,'columns':_0x539b07-_0x5ccbe5+0x1});});const _0x41db7d=(_0x47680d,_0xfc1c42)=>{if(!_0xfc1c42['subType']||!_0xfc1c42['subType']['startsWith']('tablePaste'))return;const _0x51aa66=_0xfc1c42['attributes']['tablePasteChainId'],_0x336961=_0x109847['getSuggestions']()['filter'](_0x39669b=>_0x39669b['isInContent']&&_0x39669b['attributes']&&_0x39669b['attributes']['tablePasteChainId']==_0x51aa66);_0x336961['length']&&_0xfc1c42['getAllAdjacentSuggestions']()['length']!=_0x336961['length']&&_0x336961['reduce']((_0x395bc0,_0x4804ac)=>(_0x395bc0['next']=_0x4804ac,_0x4804ac['previous']=_0x395bc0,_0x4804ac));};function _0x8103f7(_0x25be1f,_0x3fb3a7=!0x0){const {id:_0x26d3f7,authorId:_0x418ef9}=_0x109847['_splitMarkerName'](_0x25be1f['markerName']),_0x2bcc63=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3cf5bf=_0x109847['activeMarkers']['includes'](_0x25be1f['markerName']);return _0x3cf5bf&&_0x2bcc63['push']('ck-suggestion-marker--active'),{'classes':_0x2bcc63,'attributes':{'data-suggestion':_0x26d3f7,'data-author-id':_0x418ef9},'priority':_0x3cf5bf&&_0x3fb3a7?0xbc2:0xbb8};}_0x109847['on']('suggestionLoaded',_0x41db7d,{'priority':'high'}),_0x109847['on']('suggestionUnloaded',_0x41db7d,{'priority':'high'}),_0x3e90e8['model']['document']['registerPostFixer'](()=>{let _0x4ed499=!0x1;const _0x2007c5=Array['from'](_0x3e90e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb10c08,data:_0x516e93}of _0x2007c5){const {group:_0x510a07,type:_0x39ba93,id:_0x6f5354}=_0x109847['_splitMarkerName'](_0xb10c08);if('suggestion'!=_0x510a07||'deletion'!=_0x39ba93||_0x516e93['oldRange'])continue;if(!_0x109847['hasSuggestion'](_0x6f5354))continue;const _0x29bd5f=_0x109847['getSuggestion'](_0x6f5354)['getRanges'](),_0x171412=_0x3e90e8['plugins']['get']('Users')['me'];for(const _0x47c683 of _0x109847['getSuggestions']()){if(!_0x47c683['isInContent']||_0x47c683['author']!=_0x171412)continue;if('formatBlock'!=_0x47c683['type']||'tablePasteCell'!=_0x47c683['subType'])continue;if(_0x47c683['getRanges']()['every'](_0xeae5b8=>_0x29bd5f['some'](_0x3b8b26=>_0x3b8b26['containsRange'](_0xeae5b8,!0x0)))){for(const _0x3e51e1 of _0x47c683['getAllAdjacentSuggestions']())_0x3e51e1['isInContent']&&(_0x3e51e1['discard'](),_0x4ed499=!0x0);}}}return _0x4ed499;}),_0x3e90e8['model']['document']['registerPostFixer'](_0x3bf94f=>{const _0x22dab7=_0x3e90e8['commands']['get']('redo');if(!_0x22dab7||!_0x22dab7['_createdBatches']['has'](_0x3bf94f['batch']))return!0x1;let _0x1c729f=!0x1;const _0x3b9a68=_0x3e90e8['plugins']['get']('Users')['me'],_0x52c2d3=_0x3e90e8['model']['document']['differ']['getChanges'](),_0x169570=Array['from'](_0x3e90e8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x53702b,data:_0x3de6f3})=>{const {group:_0x1fdde6,subType:_0x13d89e,authorId:_0x22f9fa}=_0x109847['_splitMarkerName'](_0x53702b);return'suggestion'==_0x1fdde6&&'tablePaste'==_0x13d89e&&_0x22f9fa==_0x3b9a68['id']&&!_0x3de6f3['oldRange'];});for(const _0x5c5b02 of _0x52c2d3){if('insert'!=_0x5c5b02['type']||'tableCellSuggestion'!=_0x5c5b02['name']||0x1!=_0x5c5b02['length'])continue;const _0xed4b9d=_0x3bf94f['createRange'](_0x5c5b02['position'],_0x5c5b02['position']['getShiftedBy'](0x1));if(!_0x169570['find'](({data:_0x3e2b8b})=>_0x3e2b8b['newRange']['isEqual'](_0xed4b9d))){for(const {name:_0x4e9d14,data:_0xacdeea}of _0x169570)if(_0xed4b9d['containsRange'](_0xacdeea['newRange'])){_0x3bf94f['updateMarker'](_0x4e9d14,{'range':_0xed4b9d}),_0x1c729f=!0x0;break;}}}return _0x1c729f;}),_0x3e90e8['model']['document']['registerPostFixer'](_0x4d67b3=>{let _0x3f5375=!0x1;const _0x4ac4cc=_0x3e90e8['plugins']['get']('Users')['me'],_0x57d9ad=_0x109847['getSuggestions']()['filter'](_0x309064=>_0x309064['isInContent']&&_0x309064['author']==_0x4ac4cc),_0x1ada07=new Set(),_0x247c1c=new Set();for(const _0x18e361 of _0x57d9ad)if('tablePaste'==_0x18e361['subType'])for(const _0x456d71 of _0x18e361['getMarkers']()){const _0x229368=_0x456d71['getRange']()['getContainedElement']();if(_0x229368){if(_0x229368['is']('element','tableCellSuggestion')&&je(_0x229368)){_0x18e361['removeMarker'](_0x456d71['name']),_0x1ada07['add'](_0x229368),_0x3f5375=!0x0;const _0x3c9783=_0x229368['nextSibling'],_0x19886b=_0x229368['previousSibling'],_0x205573=_0x3c9783&&_0x3c9783['is']('element','tableCellSuggestion'),_0x126226=_0x19886b&&_0x19886b['is']('element','tableCellSuggestion');_0x205573&&!_0x1ada07['has'](_0x3c9783)&&_0x247c1c['add'](_0x3c9783),_0x126226&&!_0x1ada07['has'](_0x19886b)&&_0x247c1c['add'](_0x19886b);}else _0x229368['is']('element','paragraph')&&_0x229368['isEmpty']&&(_0x18e361['removeMarker'](_0x456d71['name']),_0x3f5375=!0x0);}}else{if('tablePasteCell'==_0x18e361['subType']){if(!_0x18e361['attributes']||!_0x18e361['attributes']['tablePasteChainId'])continue;const _0x372e8c=_0x18e361['attributes']['markerAttributes'];if(_0x372e8c&&Object['keys'](_0x372e8c)['length'])continue;const _0x517c57=_0x18e361['attributes']['tablePasteChainId'];let _0xccbd86=!0x0,_0x415959=!0x0;for(const _0x2ec1f0 of _0x57d9ad)if(_0x2ec1f0['subType']&&_0x2ec1f0['subType']['startsWith']('tablePaste')){if(!_0x2ec1f0['attributes']['tablePasteChainId']){_0x415959=!0x1;break;}if(_0x2ec1f0['id']!=_0x18e361['id']&&_0x2ec1f0['attributes']['tablePasteChainId']==_0x517c57){_0xccbd86=!0x1;break;}}_0x415959&&_0xccbd86&&(_0x18e361['removeMarkers'](),_0x3f5375=!0x0);}}for(const _0x551c8a of _0x1ada07)_0x4d67b3['remove'](_0x551c8a);for(const _0x1e71e1 of _0x247c1c)_0x4d67b3['unwrap'](_0x1e71e1);return _0x3f5375;}),_0x3e90e8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x10515f=>_0x8103f7(_0x10515f),'converterPriority':'high'}),_0x3e90e8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x271a39,_0x3f791a)=>_0x3f791a['options']['showSuggestionHighlights']?_0x8103f7(_0x271a39,!0x1):null,'converterPriority':'high'});const _0xcccaf4=_0x3e90e8['editing']['view'];this['listenTo'](_0xcccaf4['document'],'clipboardOutput',(_0x2d63a5,_0x37a354)=>{const _0x444a7e=[];for(const _0x18f7ed of _0xcccaf4['createRangeIn'](_0x37a354['content'])['getItems']())_0x18f7ed['is']('element','suggestion-td')&&_0x444a7e['push'](_0x18f7ed);_0xcccaf4['change'](_0x1fe758=>{for(const _0x572ce7 of _0x444a7e)_0x1fe758['move'](_0x1fe758['createRangeIn'](_0x572ce7),_0x1fe758['createPositionBefore'](_0x572ce7)),_0x1fe758['remove'](_0x572ce7);});});}}function je(_0x510e27){if(_0x510e27['isEmpty'])return!0x0;const _0x37d5fa=_0x510e27['getChild'](0x0);return _0x37d5fa['is']('element','paragraph')&&_0x37d5fa['isEmpty'];}function Ae(_0x433ff5,_0x40cae0={},_0x4eccd4){for(const {isAnchor:_0x3a99d1,cellHeight:_0x514a0f,cellWidth:_0x5ba6c6}of _0x4eccd4['createTableWalker'](_0x433ff5,{'includeAllSlots':!0x0,..._0x40cae0}))if(!_0x3a99d1||0x1!=_0x514a0f||0x1!=_0x5ba6c6)return!0x1;return!0x0;}class Dt extends _0x1f739f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x59c9f9=this['editor']['plugins']['get']('TrackChangesEditing');_0x59c9f9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x59c9f9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x59c9f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59c9f9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x59c9f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x59c9f9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2bf68d,_0x3b8eba){const _0x561e8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x471aa6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4df0ab=_0x3b8eba['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4ecb6d=_0x471aa6['getColumnGroupElement'](_0x4df0ab);let _0x45d006=_0x4ecb6d?_0x471aa6['getTableColumnsWidths'](_0x4ecb6d):null,_0x46aa24=_0x4df0ab['getAttribute']('tableWidth')||null;const _0x192248=_0x3b8eba['tableWidth']||_0x46aa24,_0x27a2c7=_0x3b8eba['columnWidths']||_0x45d006,_0x70a38=this['editor']['plugins']['get']('Users')['me'];for(const _0x173ad3 of _0x561e8a['getSuggestions']()){const _0x55e9d0=_0x173ad3['getContainedElement']();if('resizeTable'===_0x173ad3['subType']&&_0x55e9d0===_0x4df0ab){_0x173ad3['author']!==_0x70a38&&_0x173ad3['discard']();const _0x336c01=_0x173ad3['data']['commandParams'];_0x46aa24=_0x336c01[0x0]['tableWidth'],_0x45d006=_0x336c01[0x0]['columnWidths'];break;}}_0x2bf68d({'table':_0x4df0ab,'tableWidth':_0x192248,'columnWidths':_0x27a2c7}),_0x561e8a['markBlockFormat'](_0x4df0ab,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x46aa24,'columnWidths':_0x45d006}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x55ed80){if('formatBlock'!=_0x55ed80['type']&&'formatInline'!=_0x55ed80['type'])return;const {data:_0x2faaa9}=_0x55ed80;if(_0x2faaa9&&'resizeTable'===_0x2faaa9['formatGroupId']){const _0x49f6df='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x49f6df)};}}}class Mt extends _0x1f739f{['afterInit'](){const _0x417cbc=this['editor'];_0x417cbc['plugins']['has']('Template')&&_0x417cbc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x1f739f{['afterInit'](){const _0x236edc=this['editor'];if(!_0x236edc['commands']['get']('insertTableOfContents'))return;_0x236edc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x53e138=_0x236edc['plugins']['get']('TrackChangesEditing'),_0x3b04c4=_0x236edc['locale'];_0x53e138['descriptionFactory']['registerElementLabel']('tableOfContents',_0x11d540=>o(_0x3b04c4,'ELEMENT_TABLE_OF_CONTENTS',_0x11d540));}}class Bt extends _0x1f739f{['afterInit'](){const _0x431a00=this['editor'];if(!_0x431a00['plugins']['has']('Title'))return;const _0xb99c40=_0x431a00['plugins']['get']('TrackChangesEditing');_0xb99c40['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x431a00['locale'],'ELEMENT_TITLE')),_0x431a00['model']['document']['registerPostFixer'](_0x202bc0=>{let _0x15991d=!0x1;const _0x3ccb08=Array['from'](_0x431a00['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x409caa,data:_0x556532}of _0x3ccb08){const {group:_0x19b2a1}=_0xb99c40['_splitMarkerName'](_0x409caa);if('suggestion'!==_0x19b2a1||!_0x556532['newRange'])continue;const _0x1a7a96=_0x556532['newRange'],_0x28c4ae=_0x1a7a96['end']['nodeBefore'];if(!_0x28c4ae||!_0x28c4ae['is']('element','title-content'))continue;if(!_0x1a7a96['start']['isTouching'](_0x1a7a96['end']))continue;const _0x15e4d5=_0x431a00['model']['schema']['getNearestSelectionRange'](_0x1a7a96['end'],'forward');if(_0x15e4d5&&_0x15e4d5['isCollapsed']){const _0x227eb5=_0x202bc0['createRange'](_0x1a7a96['start'],_0x15e4d5['start']);_0x227eb5['isEqual'](_0x1a7a96)||(_0x202bc0['updateMarker'](_0x409caa,{'range':_0x227eb5}),_0x15991d=!0x0);}_0x15991d||(_0x202bc0['removeMarker'](_0x409caa),_0x15991d=!0x0);}return _0x15991d;});}}class Ot extends _0x1f739f{['afterInit'](){const _0x1e3e80=this['editor'],_0x54635e=_0x1e3e80['plugins']['get']('TrackChangesEditing');_0x1e3e80['plugins']['has']('UndoEditing')&&(_0x54635e['enableCommand']('undo'),_0x54635e['enableCommand']('redo'));}}class Rt extends _0x1f739f{static get['requires'](){return[vt];}['afterInit'](){const _0x28a356=this['editor'];if(!_0x28a356['plugins']['has']('TableCaptionEditing'))return;_0x28a356['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x1f739f{['tableProperties'];['tableCellProperties'];constructor(_0x599c62){super(_0x599c62),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 _0x5666db=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x40dd6e of this['tableProperties'])_0x5666db['enableCommand'](_0x40dd6e,(_0x55d689,_0x29eb11)=>{const _0x41bd8e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x40dd6e,[_0x41bd8e],this['tableProperties'],'tableProperties',_0x55d689,_0x29eb11);});_0x5666db['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5666db['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5666db['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5de7b4,_0x1a312a)=>this['handleDiscardAction'](this['tableProperties'],_0x5de7b4,_0x1a312a)),_0x5666db['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5c470f of this['tableCellProperties'])_0x5666db['enableCommand'](_0x5c470f,(_0x576e70,_0x48e0b8)=>{const _0x12d1e1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5c470f,_0x12d1e1,this['tableCellProperties'],'tableCellProperties',_0x576e70,_0x48e0b8);});_0x5666db['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5666db['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5666db['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1cd7f8,_0x10e9f0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1cd7f8,_0x10e9f0)),_0x5666db['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5666db['descriptionFactory']['registerDescriptionCallback'](_0x52253d=>this['handleSuggestionDescription'](_0x52253d));}['_handlePropertyChange'](_0x4bdb1d,_0x298fdf,_0x1efc3d,_0x31301f,_0x599b9f,_0x518abd){const _0x145cb5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x518abd['batch'],()=>{for(const _0x1bddc3 of _0x298fdf){if(this['_getSuggestion'](_0x1bddc3,_0x31301f))_0x599b9f(_0x518abd);else{const _0x39cfa0={};for(const _0x4ac77d of _0x1efc3d){const _0x103f69=_0x1bddc3['getAttribute'](_0x4ac77d);void 0x0!==_0x103f69&&(_0x39cfa0[_0x4ac77d]=_0x103f69);}_0x599b9f(_0x518abd),_0x145cb5['markBlockFormat'](_0x1bddc3,{'commandParams':[_0x39cfa0]},[],_0x31301f);}}});}['handleDiscardAction'](_0x2d513f,_0x29f816,_0x414ec6){const _0x5b68e3=_0x29f816[0x0]['start']['nodeAfter'],_0x27301c=_0x414ec6['commandParams'][0x0];this['editor']['model']['change'](_0x34c07e=>{for(const _0x3df308 of _0x2d513f)void 0x0!==_0x27301c[_0x3df308]?_0x34c07e['setAttribute'](_0x3df308,_0x27301c[_0x3df308],_0x5b68e3):_0x34c07e['removeAttribute'](_0x3df308,_0x5b68e3);});}['handleSuggestionDescription'](_0x143f6c){if(_0x143f6c['data'])switch(_0x143f6c['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'](_0x471a5e,_0x90a6b6){const _0x52834b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1648d6 of _0x52834b['getSuggestions']({'skipNotAttached':!0x0})){const _0x1e37d2=_0x1648d6['getContainedElement']();if(_0x1648d6['subType']===_0x90a6b6&&_0x1e37d2===_0x471a5e)return _0x1648d6;}return null;}}const m='$elementName';class p extends _0x1f739f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3dcaf7,_0xb2980b,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28b51d){super(_0x28b51d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1aed96,_0x47de23,_0x196882,_0x24f7ea)=>{this['_model']['change'](()=>{for(const _0x426c22 of[..._0x24f7ea,..._0x196882])this['_model']['markers']['has'](_0x426c22)&&_0x28b51d['editing']['reconvertMarker'](_0x426c22);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x28b51d['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(),_0x28b51d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x28b51d['config']['get']('trackChanges.trackFormatChanges'),_0x28b51d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x28b51d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x28b51d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2ae91b=this['editor'],_0xcfc372=(_0x33568a,_0x2f04fc)=>{if('attribute'!=_0x33568a)return'ck-suggestion-marker-'+_0x33568a;const _0x335259=_0x2f04fc['split']('|')[0x0];return this['_isBlockAttribute'](_0x335259)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2ae91b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x31faa8=>{const {id:_0x127e83,authorId:_0x31e08f,type:_0x1a7bf2,subType:_0x45f5e4}=this['_splitMarkerName'](_0x31faa8['markerName']),_0x5d222f=['ck-suggestion-marker',_0xcfc372(_0x1a7bf2,_0x45f5e4)];let _0x48d4f7=0xbb8;return this['activeMarkers']['includes'](_0x31faa8['markerName'])&&(_0x5d222f['push']('ck-suggestion-marker--active'),_0x48d4f7=0xbc2),'deletion'==_0x1a7bf2&&(_0x48d4f7+=0x5),{'classes':_0x5d222f,'attributes':{'data-suggestion':_0x127e83,'data-author-id':_0x31e08f},'priority':_0x48d4f7};}}),_0x2ae91b['conversion']['for']('dataDowncast')['add'](_0x1a9514=>{_0x1a9514['on']('addMarker:suggestion',(_0x20e5ee,_0x2c6e30,_0x2550e6)=>{if(!_0x2550e6['options']['showSuggestionHighlights'])return;const _0x823a38=_0x2c6e30['item'];if(!_0x823a38)return;const _0x1eaf48=_0x2550e6['mapper']['toViewElement'](_0x823a38);_0x2ae91b['model']['schema']['isObject'](_0x823a38)&&_0x1eaf48&&!_0x1eaf48['getCustomProperty']('widget')&&_0x1eaf48['is']('containerElement')&&_0x2411ad(_0x1eaf48,_0x2550e6['writer']);},{'priority':'high'});}),_0x2ae91b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1197ae,_0x4b3f7d)=>{if(!_0x4b3f7d['options']['showSuggestionHighlights'])return null;const {type:_0x7f0acd,subType:_0xb5586c}=this['_splitMarkerName'](_0x1197ae['markerName']);return{'classes':['ck-suggestion-marker',_0xcfc372(_0x7f0acd,_0xb5586c)],'priority':0xbb8};}});const _0x47a06f=({showActiveMarkers:_0x37aae0=!0x0,isAttributeSuggestion:_0x5de39e=!0x1}={})=>(_0x42a2d0,_0x5959a2,_0x2e681a)=>{if(!_0x5959a2['item'])return;const {id:_0xfa0088,authorId:_0x3a27c8}=this['_splitMarkerName'](_0x5959a2['markerName']);if(_0x5de39e){const _0x5e2121=this['_suggestions']['get'](_0xfa0088),_0x5c29c1=this['_getAttributeKey'](_0x5e2121);if(!this['_isBlockAttribute'](_0x5c29c1))return;}if(_0x5959a2['item']['is']('selection'))return void _0x2e681a['consumable']['consume'](_0x5959a2['item'],_0x42a2d0['name']);const _0x5641ae=_0x2e681a['mapper']['toViewElement'](_0x5959a2['item']);if(_0x5959a2['item']['is']('element')&&_0x2ae91b['model']['schema']['isBlock'](_0x5959a2['item'])&&!_0x5641ae['getCustomProperty']('addHighlight')){_0x2e681a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5641ae),_0x2e681a['writer']['setAttribute']('data-suggestion',_0xfa0088,_0x5641ae),_0x2e681a['writer']['setAttribute']('data-author-id',_0x3a27c8,_0x5641ae),_0x2e681a['mapper']['bindElementToMarker'](_0x5641ae,_0x5959a2['markerName']),_0x37aae0&&(this['activeMarkers']['includes'](_0x5959a2['markerName'])?_0x2e681a['writer']['addClass']('ck-suggestion-marker--active',_0x5641ae):_0x2e681a['writer']['removeClass']('ck-suggestion-marker--active',_0x5641ae));for(const _0x3d5f0b of _0x2ae91b['model']['createRangeIn'](_0x5959a2['item'])['getItems']())_0x2e681a['consumable']['consume'](_0x3d5f0b,_0x42a2d0['name']);_0x2e681a['consumable']['consume'](_0x5959a2['item'],_0x42a2d0['name']);}};_0x2ae91b['conversion']['for']('dataDowncast')['add'](_0x4e4009=>{_0x4e4009['on']('addMarker:suggestion:formatBlock',(_0x45b2d6,_0x475140,_0x3a033b)=>{_0x3a033b['options']['showSuggestionHighlights']&&_0x47a06f({'showActiveMarkers':!0x1})(_0x45b2d6,_0x475140,_0x3a033b);},{'priority':'highest'});}),_0x2ae91b['conversion']['for']('dataDowncast')['add'](_0x43e236=>{_0x43e236['on']('addMarker:suggestion:attribute',(_0x2fb77a,_0x65b34e,_0x300ffd)=>{_0x300ffd['options']['showSuggestionHighlights']&&_0x47a06f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2fb77a,_0x65b34e,_0x300ffd);},{'priority':'highest'});}),_0x2ae91b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x654521,_0x4149c5)=>_0x4149c5['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x654521['substr'](0xb)}}),_0x2ae91b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4b86c2,{writer:_0x5be536})=>{let _0x441f79='suggestion:'+_0x4b86c2['getAttribute']('suggestion-type')+':'+_0x4b86c2['getAttribute']('id');return _0x4b86c2['getAttribute']('marker-count')&&(_0x441f79+=':'+_0x4b86c2['getAttribute']('marker-count')),_0x5be536['createElement']('$marker',{'data-name':_0x441f79});}}),_0x2ae91b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2ae91b['conversion']['for']('editingDowncast')['add'](_0x36e4bf=>{_0x36e4bf['on']('addMarker:suggestion:formatBlock',_0x47a06f(),{'priority':'high'});}),_0x2ae91b['conversion']['for']('editingDowncast')['add'](_0x504f2f=>{_0x504f2f['on']('addMarker:suggestion:attribute',_0x47a06f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2ae91b['conversion']['for']('editingDowncast')['add'](_0x2268f6=>{_0x2268f6['on']('removeMarker:suggestion:formatBlock',(_0x2ee119,_0x21bdea,_0x599aab)=>{const _0x1fd191=_0x599aab['mapper']['markerNameToElements'](_0x21bdea['markerName']);if(_0x1fd191){for(const _0x3e5af6 of _0x1fd191)_0x3e5af6['getCustomProperty']('addHighlight')||(_0x599aab['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3e5af6),_0x599aab['writer']['removeAttribute']('data-suggestion',_0x3e5af6),_0x599aab['writer']['removeAttribute']('data-author-id',_0x3e5af6),_0x599aab['mapper']['unbindElementFromMarkerName'](_0x3e5af6,_0x21bdea['markerName']));}},{'priority':'high'});}),_0x2ae91b['conversion']['for']('editingDowncast')['add'](_0x554bec=>{_0x554bec['on']('removeMarker:suggestion:attribute',(_0x5d299c,_0x4180bd,_0x2e4db6)=>{const _0x1c7634=_0x2e4db6['mapper']['markerNameToElements'](_0x4180bd['markerName']);if(!_0x1c7634)return;const {id:_0xb23769}=this['_splitMarkerName'](_0x4180bd['markerName']),_0x997718=this['_suggestions']['get'](_0xb23769),_0x3f5d8c=this['_getAttributeKey'](_0x997718);if(this['_isBlockAttribute'](_0x3f5d8c)){for(const _0x7d5cd6 of _0x1c7634)_0x7d5cd6['getCustomProperty']('addHighlight')||(_0x2e4db6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x7d5cd6),_0x2e4db6['writer']['removeAttribute']('data-suggestion',_0x7d5cd6),_0x2e4db6['writer']['removeAttribute']('data-author-id',_0x7d5cd6),_0x2e4db6['mapper']['unbindElementFromMarkerName'](_0x7d5cd6,_0x4180bd['markerName']));}},{'priority':'high'});}),_0x2ae91b['model']['document']['registerPostFixer'](_0x5185ff=>{let _0x2c48d0=!0x1;const _0x15f36f=Array['from'](_0x2ae91b['model']['document']['differ']['getChangedMarkers']()),_0x2f5581=new Set();for(const {name:_0x229eb2,data:_0x16393f}of _0x15f36f){const {group:_0x287753,type:_0x333242,subType:_0x384345,id:_0x356a35}=this['_splitMarkerName'](_0x229eb2);if('suggestion'!==_0x287753)continue;const _0x3d8baf=this['_suggestions']['get'](_0x356a35);if(null!=_0x16393f['newRange']){'formatInline'==_0x333242&&(_0x2c48d0=_0x2c48d0||Pt(_0x16393f['newRange'],_0x229eb2,_0x5185ff,_0x2ae91b['model']['schema']));const _0x13c26d='attribute'==_0x333242&&this['_isBlockAttribute'](_0x384345['split']('|')[0x0]);if(_0x16393f['newRange']['isCollapsed']||'$graveyard'==_0x16393f['newRange']['root']['rootName']||'formatBlock'==_0x333242&&!Ft(_0x16393f['newRange'])||_0x13c26d&&!Ft(_0x16393f['newRange'])||'deletion'==_0x333242&&!(!Vt(_0x46d55b=_0x16393f['newRange'])&&!function(_0x1bc57f){return _0x1bc57f['start']['parent']==_0x1bc57f['end']['nodeBefore']&&_0x1bc57f['start']['isAtEnd'];}(_0x46d55b)))_0x5185ff['removeMarker'](_0x229eb2),_0x2c48d0=!0x0;else{if(!_0x3d8baf||!_0x3d8baf['isInContent'])continue;if(_0x16393f['newRange']&&_0x16393f['oldRange']&&_0x16393f['newRange']['isEqual'](_0x16393f['oldRange']))continue;_0x2f5581['add'](_0x3d8baf);}}}var _0x46d55b;return _0x2f5581['size']>0x0&&(_0x2c48d0=!!this['_joinWithAdjacentSuggestions'](_0x2f5581)||_0x2c48d0),_0x2c48d0;}),_0x2ae91b['model']['document']['registerPostFixer'](_0x5b639c=>{let _0x447d9a=!0x1;for(const _0x571efb of _0x2ae91b['model']['document']['differ']['getChanges']())if('insert'==_0x571efb['type'])for(const _0x16f17a of this['_suggestions']['values']()){if(_0x16f17a['isMultiRange']||!_0x16f17a['isInContent'])continue;const _0x414c26='formatBlock'==_0x16f17a['type'],_0x31bc2e=this['_getAttributeKey'](_0x16f17a),_0x4f8ca1=_0x31bc2e&&this['_isBlockAttribute'](_0x31bc2e);if(!_0x414c26&&!_0x4f8ca1)continue;const _0x2a9d3c=_0x16f17a['getFirstRange']();if(_0x2a9d3c['start']['parent']!=_0x2a9d3c['end']['parent']&&!_0x2a9d3c['end']['isAtEnd']){const _0x2f7e5a=_0x2ae91b['model']['createPositionAt'](_0x2a9d3c['start']['nodeAfter'],'end'),_0x3cbb85=_0x2ae91b['model']['createRange'](_0x2a9d3c['start'],_0x2f7e5a);_0x5b639c['updateMarker'](_0x16f17a['getFirstMarker'](),{'range':_0x3cbb85}),_0x447d9a=!0x0;}}return _0x447d9a;}),_0x2ae91b['model']['document']['registerPostFixer'](_0x5504e0=>this['_processAttributeChanges'](_0x5504e0)),_0x2ae91b['model']['document']['registerPostFixer'](_0xb7b433=>!_0xb7b433['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xb7b433)),_0x2ae91b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2ae91b['model']['document']['on']('change:data',(_0x4ad71a,_0x4618b7)=>{if(!_0x4618b7['isLocal']||_0x4618b7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x930870=_0x2ae91b['model']['document']['differ']['getChanges']();if(0x0==_0x930870['length'])return;const _0x56a7b0=[],_0x5a7c3b=_0x930870['filter'](_0x4abb2a=>'attribute'==_0x4abb2a['type']),_0x484c86=_0x930870['filter'](_0x58bd49=>'insert'==_0x58bd49['type']&&'$text'!=_0x58bd49['name']);for(const _0x2d2640 of _0x5a7c3b)this['_isRegisteredAttribute'](_0x2d2640['attributeKey'])&&_0x56a7b0['push']({'key':_0x2d2640['attributeKey'],'newValue':_0x2d2640['attributeNewValue'],'oldValue':_0x2d2640['attributeOldValue'],'range':Lt(_0x2d2640['range'],_0x2ae91b['model'])});for(const _0x111191 of _0x484c86){if('rename'!=_0x111191['action']&&'refresh'!=_0x111191['action'])continue;const _0x245e17=Jt(_0x111191['position']['nodeAfter'],_0x2ae91b['model']),_0x4539f2=_0x111191['before'];'rename'==_0x111191['action']&&_0x56a7b0['push']({'key':m,'newValue':_0x111191['name'],'oldValue':_0x4539f2['name'],'range':_0x245e17});for(const [_0x59d79d,_0x47f447]of _0x4539f2['attributes']){if(!this['_isRegisteredAttribute'](_0x59d79d))continue;const _0x4209ab=_0x111191['attributes']['get'](_0x59d79d);_0x47f447!==_0x4209ab&&_0x56a7b0['push']({'key':_0x59d79d,'newValue':_0x4209ab,'oldValue':_0x47f447,'range':_0x245e17});}for(const [_0x4eedd6,_0x5316fb]of _0x111191['attributes'])this['_isRegisteredAttribute'](_0x4eedd6)&&(_0x4539f2['attributes']['has'](_0x4eedd6)||_0x56a7b0['push']({'key':_0x4eedd6,'newValue':_0x5316fb,'oldValue':null,'range':_0x245e17}));}0x0!=_0x56a7b0['length']&&_0x2ae91b['model']['enqueueChange'](_0x4618b7,_0x3126cc=>{const _0x1e20da=_0x46f059();for(const {range:_0x57de98,key:_0x2e1d74,oldValue:_0x338c0b,newValue:_0x312454}of _0x56a7b0)this['markAttributeChange'](_0x57de98,_0x2e1d74,_0x338c0b,_0x312454,{'groupId':_0x1e20da});this['_reduceExistingSuggestions'](_0x3126cc,_0x56a7b0);});},{'priority':'lowest'}),_0x2ae91b['model']['markers']['on']('update:suggestion',(_0x1cd381,_0x426818,_0x375663)=>{if(null==_0x375663){const {id:_0x11abe1}=this['_splitMarkerName'](_0x426818['name']),_0x18129a=this['_suggestions']['get'](_0x11abe1);_0x18129a&&_0x18129a['addMarkerName'](_0x426818['name']);}}),_0x2ae91b['model']['document']['on']('change:data',()=>{const _0x215b21=Array['from'](_0x2ae91b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x36b962=>'suggestion'===this['_splitMarkerName'](_0x36b962['name'])['group']);if(0x0===_0x215b21['length'])return;_0x215b21['sort']((_0x264b43,_0x4996b1)=>{const _0x1938ee=_0x264b43['data']['oldRange'],_0x3028d7=_0x4996b1['data']['oldRange'];return null===_0x1938ee&&null===_0x3028d7?0x0:null===_0x1938ee&&null!==_0x3028d7?-0x1:null!==_0x1938ee&&null===_0x3028d7?0x1:_0x1938ee['start']['isBefore'](_0x3028d7['start'])?-0x1:0x1;});const _0x284523=new Set(),_0x386021=new Set();for(const {name:_0x3b3442,data:_0x283c96}of _0x215b21){const {id:_0x8595cc}=this['_splitMarkerName'](_0x3b3442);if(null===_0x283c96['oldRange']){const _0x56eac8=this['_handleNewSuggestionMarker'](_0x3b3442);_0x386021['add'](_0x56eac8);}else{const _0x54ca76=this['_suggestions']['get'](_0x8595cc);null!==_0x283c96['newRange']||_0x54ca76['isInContent']?(_0x284523['add'](_0x54ca76['head']),_0x386021['add'](_0x54ca76)):this['_removeSuggestion'](_0x54ca76);}}_0x386021['size']>0x0&&this['_refreshSuggestionsChain'](_0x386021);for(const _0x460e7f of _0x284523)this['fire']('suggestionChanged',_0x460e7f);}),_0x2ae91b['model']['on']('applyOperation',(_0x4768cb,_0x39ad1f)=>{const _0x3b0201=_0x39ad1f[0x0];if(!this['_suggestions']['size'])return;if(!_0x3b0201['isDocumentOperation'])return;if(_0x3b0201['batch']['isUndo']||!_0x3b0201['batch']['isLocal'])return;let _0x2ab224,_0x56d5e3;switch(_0x3b0201['type']){case'insert':_0x2ab224=_0x2ae91b['model']['createPositionAt'](_0x3b0201['position']),_0x56d5e3=_0x2ab224['getShiftedBy'](_0x3b0201['howMany']);break;case'split':_0x2ab224=_0x2ae91b['model']['createPositionAt'](_0x3b0201['splitPosition']),_0x56d5e3=_0x2ae91b['model']['createPositionAt'](_0x3b0201['moveTargetPosition']);break;case'move':_0x2ab224=_0x2ae91b['model']['createPositionAt'](_0x3b0201['targetPosition']),_0x56d5e3=_0x2ab224['getShiftedBy'](_0x3b0201['howMany']);break;default:return;}const _0x11d455=_0x2ae91b['model']['createRange'](_0x2ab224,_0x56d5e3);_0x2ae91b['model']['change'](()=>{for(const {suggestion:_0x449dba,meta:_0x32c71f}of this['_findSuggestions'](_0x11d455)){if(_0x449dba['isMultiRange'])continue;if('formatInline'==_0x449dba['type'])continue;const _0x5df21e=this['_getAttributeKey'](_0x449dba);if(_0x5df21e&&this['_isBlockAttribute'](_0x5df21e)&&'split'!=_0x3b0201['type'])continue;const _0x2a639b=_0x449dba['data']&&_0x449dba['data']['multipleBlocks'];('formatBlock'!=_0x449dba['type']||'split'==_0x3b0201['type']&&!_0x2a639b)&&(_0x32c71f['containsRangeInObject']||'insertion'==_0x449dba['type']&&_0x32c71f['isOwn']||_0x449dba['getFirstRange']()['containsRange'](_0x11d455)&&this['_breakSuggestionMarker'](_0x449dba,_0x2ab224,_0x56d5e3));}});},{'priority':'lowest'}),_0x2ae91b['model']['on']('deleteContent',(_0x362bfe,_0x376cb3)=>{const _0x3fa224=_0x376cb3[0x0],_0x1f1601=_0x376cb3[0x1];if(_0x1f1601&&_0x1f1601['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3fa224['isCollapsed'])return;const _0x2ad584=_0x2ae91b['model']['schema'],{start:_0x56ccf8,end:_0x13a3b3}=_0x3fa224['getFirstRange'](),_0x160440=_0x56ccf8['nodeAfter']&&_0x2ad584['isLimit'](_0x56ccf8['nodeAfter'])?null:_0x2ad584['getNearestSelectionRange'](_0x56ccf8,'forward'),_0x2ae32d=_0x13a3b3['nodeBefore']&&_0x2ad584['isLimit'](_0x13a3b3['nodeBefore'])?null:_0x2ad584['getNearestSelectionRange'](_0x13a3b3,'backward'),_0x5c5b8a=_0x2ae91b['model']['createRange'](_0x160440?_0x160440['start']:_0x56ccf8,_0x2ae32d?_0x2ae32d['end']:_0x13a3b3);_0x2ae91b['model']['change'](_0x3408a5=>{this['markDeletion'](_0x5c5b8a);const _0x531aa2=_0x2ae91b['model']['schema']['getNearestSelectionRange'](_0x5c5b8a['start']);_0x3fa224['is']('documentSelection')?_0x3408a5['setSelection'](_0x531aa2):_0x3fa224['setTo'](_0x531aa2);}),_0x362bfe['stop']();},{'priority':_0x16c4bf['normal']+0xa}),_0x2ae91b['model']['on']('insertContent',(_0x22728f,_0x8b5548)=>{const _0x3eb9de=_0x8b5548[_0x8b5548['length']-0x1];_0x3eb9de&&_0x3eb9de['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2ae91b['model']['change'](()=>{let _0x130c58=_0x2ae91b['model']['insertContent'](_0x8b5548[0x0],_0x8b5548[0x1],_0x8b5548[0x2],{'forceDefaultExecution':!0x0});if(!_0x130c58)return;_0x22728f['return']=_0x130c58['clone']();const _0x51b741=_0x130c58['end']['nodeBefore'],_0x17c848=_0x2ae91b['model']['schema'];_0x51b741&&_0x17c848['isBlock'](_0x51b741)&&!_0x17c848['isObject'](_0x51b741)&&(_0x130c58=_0x2ae91b['model']['createRange'](_0x130c58['start'],_0x2ae91b['model']['createPositionAt'](_0x51b741,'end'))),this['markInsertion'](_0x130c58);}),_0x22728f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x211eac=new O(_0x2ae91b,this['_suggestions']);_0x2ae91b['commands']['add']('acceptSuggestion',_0x211eac),this['enableCommand']('acceptSuggestion');const _0x47af2a=new R(_0x2ae91b,this['_suggestions']);_0x2ae91b['commands']['add']('discardSuggestion',_0x47af2a),this['enableCommand']('discardSuggestion'),_0x2ae91b['commands']['add']('acceptAllSuggestions',new x(_0x2ae91b,_0x211eac,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2ae91b['commands']['add']('discardAllSuggestions',new x(_0x2ae91b,_0x47af2a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2ae91b['commands']['add']('acceptSelectedSuggestions',new E(_0x2ae91b,_0x211eac,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2ae91b['commands']['add']('discardSelectedSuggestions',new E(_0x2ae91b,_0x47af2a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1f515c=_0x2ae91b['plugins']['get']('CommentsRepository');this['listenTo'](_0x1f515c,'addComment',(_0xcb1b07,{threadId:_0x2f6d85})=>{const _0x361d9d=this['_suggestions']['get'](_0x2f6d85);_0x361d9d&&_0x361d9d['commentThread']&&0x1===_0x361d9d['commentThread']['length']&&this['_updateSuggestionData'](_0x2f6d85,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1f515c,'removeComment',(_0x4f86fc,{threadId:_0x74013c})=>{const _0x33bc22=this['_suggestions']['get'](_0x74013c);_0x33bc22&&_0x33bc22['commentThread']&&!_0x33bc22['commentThread']['length']&&this['_updateSuggestionData'](_0x74013c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x349916){const _0x38b2bb=_0x15c7d9([0x34,0x43,0x58,0x30,0x45,0x62,0x74,0x6e,0x57,0x64,0x6f,0x53,0x61,0x32,0x71,0x67,0x49,0x6a,0x79,0x6d,0x69,0x66,0x4d,0x38,0x4f,0x76,0x31,0x56,0x46,0x63,0x4a,0x73,0x4b,0x77,0x59,0x33,0x68,0x65,0x50,0x52,0x55,0x6b,0x39,0x48,0x35,0x41,0x47,0x4c,0x4e,0x36,0x70,0x75,0x7a,0x78,0x37,0x5a,0x6c,0x42,0x54,0x51,0x72,0x44]),_0x661f2d=0x12e1e073,_0x37d0c2=0x12e6b8fb^_0x661f2d,_0x21be3c=window[_0x15c7d9([0x44,0x61,0x74,0x65])][_0x15c7d9([0x6e,0x6f,0x77])](),_0x4f7e56=_0x349916[_0x15c7d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x116169=new window[(_0x15c7d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ff491=>{_0x4f7e56[_0x15c7d9([0x6f,0x6e,0x63,0x65])](_0x15c7d9([0x72,0x65,0x61,0x64,0x79]),_0x1ff491);}),_0x2de5c4={[_0x15c7d9([0x6b,0x74,0x79])]:_0x15c7d9([0x45,0x43]),[_0x15c7d9([0x75,0x73,0x65])]:_0x15c7d9([0x73,0x69,0x67]),[_0x15c7d9([0x63,0x72,0x76])]:_0x15c7d9([0x50,0x2d,0x32,0x35,0x36]),[_0x15c7d9([0x78])]:_0x15c7d9([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x15c7d9([0x79])]:_0x15c7d9([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x15c7d9([0x61,0x6c,0x67])]:_0x15c7d9([0x45,0x53,0x32,0x35,0x36])},_0xa8513f=_0x4f7e56[_0x15c7d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15c7d9([0x67,0x65,0x74])](_0x15c7d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5f1fec(){let _0x2d7fd7,_0xe5f29e=null,_0x4c40e3=null;try{if(_0xa8513f==_0x15c7d9([0x47,0x50,0x4c]))return _0x15c7d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d7fd7=_0x3528e6(),!_0x2d7fd7)return _0x15c7d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d7fd7[_0x15c7d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c40e3=_0x20909d(_0x2d7fd7[_0x15c7d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d7fd7[_0x15c7d9([0x6a,0x74,0x69])])),await _0x242b13()?_0x196205()?_0x1312f7()?_0x15c7d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x116438()?(_0x2d7fd7[_0x15c7d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15c7d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe5f29e=_0x3718a3(_0x15c7d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2d7fd7[_0x15c7d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15c7d9([0x74,0x72,0x69,0x61,0x6c])&&(_0xe5f29e=_0x3718a3(_0x15c7d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x2d7fd7[_0x15c7d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15c7d9([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xe5f29e=_0x3718a3(_0x15c7d9([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5bdf57()):_0x15c7d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15c7d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15c7d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x224283){return _0x15c7d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1312f7(){const _0x40742f=[_0x15c7d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15c7d9([0x74,0x72,0x69,0x61,0x6c])][_0x15c7d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d7fd7[_0x15c7d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x21be3c/0x3e8:0xe10*_0x37d0c2;return _0x2d7fd7[_0x15c7d9([0x65,0x78,0x70])]<_0x40742f;}function _0x196205(){const _0x360fd9=_0x2d7fd7[_0x15c7d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x360fd9)return!0x1;if(_0x360fd9[_0x15c7d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c7d9([0x2a])))return!0x0;if(_0x360fd9[_0x15c7d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c7d9([0x54,0x43])))return!0x0;if(_0x360fd9[_0x15c7d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c7d9([0x52,0x54,0x43]))){if(_0x3a09ad())return!0x0;if(_0x227390()||_0x4ee659())return!0x0;}return!0x1;}function _0x116438(){const _0xdb9ede=_0x2d7fd7[_0x15c7d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xdb9ede||0x0==_0xdb9ede[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x598961}=new URL(window[_0x15c7d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xdb9ede[_0x15c7d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598961))return!0x0;const _0x57a8d0=_0x598961[_0x15c7d9([0x73,0x70,0x6c,0x69,0x74])](_0x15c7d9([0x2e]));return _0xdb9ede[_0x15c7d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f64d4=>_0x2f64d4[_0x15c7d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c7d9([0x2a])))[_0x15c7d9([0x6d,0x61,0x70])](_0x31d889=>_0x31d889[_0x15c7d9([0x73,0x70,0x6c,0x69,0x74])](_0x15c7d9([0x2e])))[_0x15c7d9([0x73,0x6f,0x6d,0x65])](_0x346082=>_0x57a8d0[_0x15c7d9([0x65,0x76,0x65,0x72,0x79])]((_0x5790fe,_0x24f426)=>_0x346082[_0x24f426]===_0x5790fe||_0x346082[_0x24f426]===_0x15c7d9([0x2a])));}function _0x5bdf57(){return _0xe5f29e&&_0x4c40e3?new window[(_0x15c7d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d760e,_0x24659c)=>{_0xe5f29e[_0x15c7d9([0x74,0x68,0x65,0x6e])](_0x3d760e,_0x24659c),_0x4c40e3[_0x15c7d9([0x74,0x68,0x65,0x6e])](_0x214fdc=>{_0x214fdc!=_0x15c7d9([0x56,0x61,0x6c,0x69,0x64])&&_0x3d760e(_0x214fdc);},_0x24659c);}):_0xe5f29e||_0x4c40e3||_0x15c7d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20909d(_0x295611,_0x3b0ed8){return new window[(_0x15c7d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f006b=>{if(_0x43cce3())return _0x3f006b(_0x15c7d9([0x56,0x61,0x6c,0x69,0x64]));_0x51dff9(),_0x4f7e56[_0x15c7d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15c7d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14a554=!0x1;const _0x476e0b=_0x46f059();function _0x4aa46f(_0xafba1){return!!_0xafba1&&(typeof _0xafba1===_0x15c7d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xafba1===_0x15c7d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xafba1[_0x15c7d9([0x74,0x68,0x65,0x6e])]===_0x15c7d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xafba1[_0x15c7d9([0x63,0x61,0x74,0x63,0x68])]===_0x15c7d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf92bea(_0x383595){_0x37bf62(_0x383595)[_0x15c7d9([0x74,0x68,0x65,0x6e])](_0x24584b=>{if(!_0x24584b||_0x24584b[_0x15c7d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15c7d9([0x6f,0x6b]))return _0x15c7d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x484901(_0x5f0efa(_0x476e0b+_0x3b0ed8))!=_0x24584b[_0x15c7d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15c7d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15c7d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x15c7d9([0x74,0x68,0x65,0x6e])](_0x1c51d7=>(_0x58cb1c(),_0x1c51d7),()=>{const _0x1ebfc7=_0x1b9c77();return null==_0x1ebfc7?(_0x58cb1c(),_0x15c7d9([0x56,0x61,0x6c,0x69,0x64])):_0x15c7d9(_0x21be3c-_0x1ebfc7>(0x36ed6473^_0x661f2d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15c7d9([0x74,0x68,0x65,0x6e])](_0x3f006b)[_0x15c7d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f006b(_0x15c7d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x546957=0x12d70ef3^_0x661f2d;function _0x58cb1c(){const _0x2ce406=_0x15c7d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x484901(_0x5f0efa(_0x295611)),_0x32d240=_0x22e759(_0x484901(window[_0x15c7d9([0x4d,0x61,0x74,0x68])][_0x15c7d9([0x63,0x65,0x69,0x6c])](_0x21be3c/_0x546957)));window[_0x15c7d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15c7d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ce406,_0x32d240);}function _0x1b9c77(){const _0xc6c81e=_0x15c7d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x484901(_0x5f0efa(_0x295611)),_0x5a2fca=window[_0x15c7d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15c7d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc6c81e);return _0x5a2fca?window[_0x15c7d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22e759(_0x5a2fca),0x10)*_0x546957:null;}function _0x37bf62(_0x4a84f7){return new window[(_0x15c7d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30594f,_0x5bc075)=>{_0x4a84f7[_0x15c7d9([0x74,0x68,0x65,0x6e])](_0x30594f,_0x5bc075),window[_0x15c7d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5bc075,0x12e034b3^_0x661f2d);});}}_0x4f7e56[_0x15c7d9([0x6f,0x6e])](_0x15c7d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4fa231,_0x570ac2)=>{if(_0x570ac2[0x0]!=_0x295611)return _0x3f006b(_0x15c7d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x570ac2[0x1]={..._0x570ac2[0x1],[_0x15c7d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x476e0b};},{[_0x15c7d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15c7d9([0x68,0x69,0x67,0x68])}),_0x4f7e56[_0x15c7d9([0x6f,0x6e])](_0x15c7d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x595324=>{_0x4aa46f(_0x595324[_0x15c7d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14a554=!0x0,_0xf92bea(_0x595324[_0x15c7d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15c7d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15c7d9([0x6c,0x6f,0x77])}),_0x116169[_0x15c7d9([0x74,0x68,0x65,0x6e])](()=>{_0x14a554||_0x3f006b(_0x15c7d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43cce3(){return _0x4f7e56[_0x15c7d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15c7d9([0x76,0x69,0x65,0x77])][_0x15c7d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15c7d9([0x61,0x75,0x74,0x6f]);}function _0x51dff9(){_0x4f7e56[_0x15c7d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15c7d9([0x76,0x69,0x65,0x77])][_0x15c7d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15c7d9([0x61,0x75,0x74,0x6f]);}}function _0x3718a3(_0x1527ea){const _0x114141=[new window[(_0x15c7d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3417a1=>setTimeout(_0x3417a1,0x12e8debf^_0x661f2d)),_0x116169[_0x15c7d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15c7d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x147d4f=>{let _0x1553e2=0x0;_0x4f7e56[_0x15c7d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x15c7d9([0x6f,0x6e])](_0x15c7d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5cc0dd,_0x414d1b)=>{_0x414d1b[0x0][_0x15c7d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1553e2++,_0x1553e2==(0x12e1e18b^_0x661f2d)&&(_0x147d4f(),_0x5cc0dd[_0x15c7d9([0x6f,0x66,0x66])]());});}))];return window[_0x15c7d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15c7d9([0x72,0x61,0x63,0x65])](_0x114141)[_0x15c7d9([0x74,0x68,0x65,0x6e])](()=>_0x1527ea);}async function _0x31cda1(){await _0x116169,_0x4f7e56[_0x15c7d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x15c7d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c32c3,_0x4f7e56[_0x15c7d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x15c7d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c32c3,_0x4f7e56[_0x15c7d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15c7d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a09ad(){return _0x4144c1(_0x15c7d9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5056e9(_0x15c7d9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x15c7d9([0x73,0x74,0x61,0x74,0x65])]==_0x15c7d9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x227390(){return _0x4144c1(_0x15c7d9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x4ee659(){return _0x4144c1(_0x15c7d9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x302936(_0x36f132){const _0x2bf8eb=_0x11736a();_0x4f7e56[_0x2bf8eb]=_0x15c7d9([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36f132,_0x36f132!=_0x15c7d9([0x56,0x61,0x6c,0x69,0x64])&&_0x31cda1();}function _0x11736a(){const _0x55a675=window[_0x15c7d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15c7d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15c7d9([0x6e,0x6f,0x77])]())[_0x15c7d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15c7d9([0x2e]),'');let _0x36c1d3=_0x15c7d9([0x43]);for(let _0x4b4792=0x0;_0x4b4792<_0x55a675[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b4792+=0x2){let _0x2614cf=window[_0x15c7d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55a675[_0x15c7d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b4792,_0x4b4792+0x2));_0x2614cf>=_0x38b2bb[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2614cf-=_0x38b2bb[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x36c1d3+=_0x38b2bb[_0x2614cf];}return _0x36c1d3;}function _0x3528e6(){const _0x90dc9d=_0xa8513f[_0x15c7d9([0x73,0x70,0x6c,0x69,0x74])](_0x15c7d9([0x2e]));if(0x3!=_0x90dc9d[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1970d6(_0x90dc9d[0x1]);function _0x1970d6(_0x18151c){const _0x25f667=_0x493e64(_0x18151c);return _0x25f667&&_0x267b84()?_0x25f667:null;function _0x267b84(){const _0x3ad688=_0x25f667[_0x15c7d9([0x6a,0x74,0x69])],_0x245524=window[_0x15c7d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ad688[_0x15c7d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ad688[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57e429={..._0x25f667,[_0x15c7d9([0x6a,0x74,0x69])]:_0x3ad688[_0x15c7d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ad688[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57e429[_0x15c7d9([0x76,0x63])],_0x5f0efa(_0x57e429)==_0x245524;}}}async function _0x242b13(){let _0x37683e=!0x0;try{const _0x581c1d=_0xa8513f[_0x15c7d9([0x73,0x70,0x6c,0x69,0x74])](_0x15c7d9([0x2e])),[_0x2bc61a,_0x4b7215,_0x33321a]=_0x581c1d;return _0x2b4650(_0x2bc61a),await _0x277720(_0x2bc61a,_0x4b7215,_0x33321a),_0x37683e;}catch(_0x23161b){return!0x1;}function _0x2b4650(_0x1554f7){const _0x53c784=_0x493e64(_0x1554f7);_0x53c784&&_0x53c784[_0x15c7d9([0x61,0x6c,0x67])]==_0x15c7d9([0x45,0x53,0x32,0x35,0x36])||(_0x37683e=!0x1);}async function _0x277720(_0x4a4106,_0x19aafd,_0x46399d){const _0x50bff8=window[_0x15c7d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15c7d9([0x66,0x72,0x6f,0x6d])](_0x53a62c(_0x46399d),_0x1c6b06=>_0x1c6b06[_0x15c7d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18eefc=new window[(_0x15c7d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15c7d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a4106+_0x15c7d9([0x2e])+_0x19aafd),_0x3f024e=window[_0x15c7d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15c7d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f024e)return;const _0x50becb=await _0x3f024e[_0x15c7d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15c7d9([0x6a,0x77,0x6b]),_0x2de5c4,{[_0x15c7d9([0x6e,0x61,0x6d,0x65])]:_0x15c7d9([0x45,0x43,0x44,0x53,0x41]),[_0x15c7d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15c7d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15c7d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f024e[_0x15c7d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15c7d9([0x6e,0x61,0x6d,0x65])]:_0x15c7d9([0x45,0x43,0x44,0x53,0x41]),[_0x15c7d9([0x68,0x61,0x73,0x68])]:{[_0x15c7d9([0x6e,0x61,0x6d,0x65])]:_0x15c7d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50becb,_0x50bff8,_0x18eefc)||(_0x37683e=!0x1);}}function _0x493e64(_0x32f78f){return _0x32f78f[_0x15c7d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15c7d9([0x65,0x79]))?JSON[_0x15c7d9([0x70,0x61,0x72,0x73,0x65])](_0x53a62c(_0x32f78f)):null;}function _0x53a62c(_0x1337b2){return window[_0x15c7d9([0x61,0x74,0x6f,0x62])](_0x1337b2[_0x15c7d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15c7d9([0x2b]))[_0x15c7d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15c7d9([0x2f])));}function _0x5f0efa(_0x29a6f7){let _0xf25760=0x1505;function _0x5eab0a(_0x20055c){for(let _0x24f35c=0x0;_0x24f35c<_0x20055c[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24f35c++){const _0x2f098c=_0x20055c[_0x15c7d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24f35c);_0xf25760=(_0xf25760<<0x5)+_0xf25760+_0x2f098c,_0xf25760&=_0xf25760;}}function _0x23e6e5(_0x230317){Array[_0x15c7d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x230317)?_0x230317[_0x15c7d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23e6e5):_0x230317&&typeof _0x230317==_0x15c7d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15c7d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x230317)[_0x15c7d9([0x73,0x6f,0x72,0x74])]()[_0x15c7d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a1427,_0x2756b6])=>{_0x5eab0a(_0x2a1427),_0x23e6e5(_0x2756b6);}):_0x5eab0a(window[_0x15c7d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x230317));}return _0x23e6e5(_0x29a6f7),_0xf25760>>>0x0;}function _0x484901(_0x3184e4){return _0x3184e4[_0x15c7d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15c7d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15c7d9([0x30]));}function _0x22e759(_0x58e4c8){return _0x58e4c8[_0x15c7d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15c7d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15c7d9([0x6a,0x6f,0x69,0x6e])]('');}function _0x4144c1(_0x3d842f){return _0x4f7e56[_0x15c7d9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15c7d9([0x68,0x61,0x73])](_0x3d842f);}function _0x5056e9(_0x425b94){return _0x4f7e56[_0x15c7d9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15c7d9([0x67,0x65,0x74])](_0x425b94);}function _0x3c32c3(){}function _0x15c7d9(_0x1cf386){return _0x1cf386['map'](_0x30fb74=>String['fromCharCode'](_0x30fb74))['join']('');}_0x302936(await _0x5f1fec());}(this);}set['adapter'](_0x9ff64c){if(this['_adapter'])throw new _0x243768('track-changes-adapter-already-set',this);this['_adapter']=_0x9ff64c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x45c3f7=!0x1,toJSON:_0x3ff3eb=!0x1}={}){const _0x988bc2=[];for(const _0x29faad of this['_suggestions']['values']())_0x45c3f7&&!_0x29faad['isInContent']||_0x988bc2['push'](_0x29faad);return _0x3ff3eb?_0x988bc2['map'](_0x4908bb=>_0x4908bb['toJSON']()):_0x988bc2;}['getSuggestion'](_0x7f4819){const _0x375df9=this['_suggestions']['get'](_0x7f4819);if(!_0x375df9)throw new _0x243768('track-changes-suggestion-not-found',this);return _0x375df9;}['hasSuggestion'](_0x39e4ef){return this['_suggestions']['has'](_0x39e4ef);}['addSuggestionData'](_0xd822ac){const {authorId:_0x2b4b2e,id:_0x23aff0,attributes:_0x139fb8}=_0xd822ac,[_0x1842f5,_0x321c70]=_0xd822ac['type']['split'](':'),_0x346ec6=this['_suggestions']['get'](_0x23aff0)||this['_createSuggestion'](_0x1842f5,_0x321c70,_0x23aff0,_0x2b4b2e,_0x139fb8);if(this['_addThreadToSuggestion'](_0x346ec6),this['_checkSuggestionCorrectness'](_0x346ec6,_0x1842f5,_0x321c70||null,_0x2b4b2e),_0x346ec6['createdAt']=_0xd822ac['createdAt'],_0x346ec6['_isDataLoaded']=!0x0,_0x139fb8&&_0x139fb8['@external']){const _0x2793fe=_0x139fb8['@external'],_0x428d02=this['_getExternalAuthor'](_0x2793fe['authorName']);_0x346ec6['authoredAt']=_0x2793fe['createdAt'],_0x346ec6['author']=_0x428d02,_0x346ec6['isExternal']=!0x0;}else _0x346ec6['authoredAt']=_0xd822ac['createdAt'];switch(_0xd822ac['data']&&(_0x346ec6['data']=_0xd822ac['data']),_0xd822ac['attributes']&&(_0x346ec6['attributes']=_0xd822ac['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x346ec6['_saved']=!0x0),this['_suggestionState']['get'](_0x346ec6)){case'notReady':this['_suggestionState']['set'](_0x346ec6,'dataReady');break;case'markerReady':_0x346ec6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x346ec6])),this['_refreshSuggestionsChain'](new Set([_0x346ec6])),this['_suggestionState']['set'](_0x346ec6,'ready'),this['fire']('suggestionLoaded',_0x346ec6)):this['_suggestionState']['set'](_0x346ec6,'removed');}return _0x346ec6;}['acceptSuggestion'](_0x3636f6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x302f76 of _0x3636f6['getAllAdjacentSuggestions']())_0x302f76['accept']();});});}['discardSuggestion'](_0xf47e45){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x15dee8 of _0xf47e45['getAllAdjacentSuggestions']())_0x15dee8['discard']();});});}['enableCommand'](_0x5106b4,_0x61be0e){const _0x48170d=this['editor']['commands']['get'](_0x5106b4);if(!_0x48170d)throw new _0x243768('track-changes-command-not-found',this,{'commandName':_0x5106b4});if(this['_enabledCommands']['has'](_0x48170d))throw new _0x243768('track-changes-enable-command-twice',this,{'commandName':_0x5106b4});this['_enabledCommands']['add'](_0x48170d),_0x61be0e&&_0x48170d['on']('execute',(_0x51385c,_0x2e4e0d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e4e0d['length']>0x0&&_0x2e4e0d[_0x2e4e0d['length']-0x1]&&_0x2e4e0d[_0x2e4e0d['length']-0x1]['forceDefaultExecution']?_0x2e4e0d['pop']():(_0x51385c['return']=_0x61be0e((..._0xbb21ca)=>_0x48170d['execute'](..._0xbb21ca,{'forceDefaultExecution':!0x0}),..._0x2e4e0d),_0x51385c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x36bccf){let _0x3c8ed7,_0x1d0825;const _0x1c4e0d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3c8ed7=_0x36bccf();}catch(_0xb8acb6){_0x1d0825=_0xb8acb6;}return _0x1c4e0d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1d0825&&_0x243768['rethrowUnexpectedError'](_0x1d0825,this),_0x3c8ed7;}['markInsertion'](_0xc8c49a,_0x6b577e=null,_0x2a1448={}){if(_0xc8c49a['isCollapsed'])return null;const _0x77e849=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2912c0,meta:_0x25d33c}of this['_findSuggestions'](_0xc8c49a,'insertion'))if(_0x25d33c['isOwn']){if(!_0x25d33c['isNextTo']){if(_0x25d33c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x2912c0,_0x2a1448))continue;return _0x2912c0;}if(zt(_0x2912c0,_0x2a1448))return _0x2912c0;this['_breakSuggestionMarker'](_0x2912c0,_0xc8c49a['start'],_0xc8c49a['end']);break;}if(_0x6b577e==_0x2912c0['subType']&&zt(_0x2912c0,_0x2a1448)){const _0x5bd108=_0x2912c0['getFirstRange']();return _0x5bd108['start']['isEqual'](_0xc8c49a['end'])?this['_setSuggestionRange'](_0x2912c0,this['_model']['createRange'](_0xc8c49a['start'],_0x5bd108['end'])):this['_setSuggestionRange'](_0x2912c0,this['_model']['createRange'](_0x5bd108['start'],_0xc8c49a['end'])),_0x2912c0;}}const _0x31151a=_0x46f059(),_0x37c41f=_0x77e849['id'],_0x686d56=_0x6b577e?'insertion:'+_0x6b577e:'insertion',_0x45f077=this['_setSuggestionData']({'id':_0x31151a,'type':_0x686d56,'createdAt':new Date(),'authorId':_0x37c41f,'attributes':_0x2a1448});return this['_addSuggestionMarker'](_0x686d56,_0x31151a,_0x37c41f,_0xc8c49a),_0x45f077;}['markMultiRangeInsertion'](_0x394df6,_0x1d7958='multi',_0x20b56c={}){const _0x4293eb=this['editor']['plugins']['get']('Users')['me'],_0x23319e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1d7958,'join');for(const _0x1ba964 of this['getSuggestions']())if(_0x1ba964['author']['id']==_0x4293eb['id']&&'insertion'==_0x1ba964['type']&&_0x1ba964['subType']==_0x1d7958&&zt(_0x1ba964,_0x20b56c)&&(_0x23319e(_0x1ba964['getRanges'](),_0x394df6)||_0x23319e(_0x394df6,_0x1ba964['getRanges']()))){for(const _0x4601f2 of _0x394df6)_0x1ba964['addRange'](_0x4601f2);return _0x1ba964;}for(const {suggestion:_0x4e10ef,meta:_0x3b2f4f}of this['_findSuggestions'](_0x394df6,'insertion')){if(!_0x3b2f4f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3b2f4f['containsRangeInObject'])continue;if(!zt(_0x4e10ef,_0x20b56c))continue;let _0x34be34=!0x0;for(const _0x1427eb of _0x4e10ef['getRanges']())for(const _0x4b6ce7 of _0x394df6)if(!_0x1427eb['containsRange'](_0x4b6ce7)){_0x34be34=!0x1;break;}if(_0x34be34)return _0x4e10ef;}const _0x4fa825=_0x46f059(),_0x57d4e6=_0x4293eb['id'],_0x2952f7='insertion:'+_0x1d7958,_0xd79a2d=this['_setSuggestionData']({'id':_0x4fa825,'type':_0x2952f7,'createdAt':new Date(),'authorId':_0x57d4e6,'attributes':_0x20b56c});for(const _0x5604a6 of _0x394df6)this['_addSuggestionMarker'](_0x2952f7,_0x4fa825,_0x57d4e6,_0x5604a6,u['getMultiRangeId']());return _0xd79a2d;}['markInlineFormat'](_0x4f0ac7,_0x2d502e,_0x4679ed=null,_0x416f5f={}){if(_0x4679ed=_0x4679ed||Gt(_0x2d502e),_0x4f0ac7['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x443120=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4679ed,'accept');return this['forceDefaultExecution'](()=>_0x443120([_0x4f0ac7],_0x2d502e,_0x416f5f)),null;}const _0x1f3608=this['editor']['plugins']['get']('Users')['me'],_0x4abb1b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x24f665,meta:_0x4c1441}of this['_findSuggestions'](_0x4f0ac7,'insertion'))_0x4c1441['isOwn']&&!_0x4c1441['isInsideObject']&&_0x4abb1b['push'](..._0x24f665['getRanges']());}const _0x5e78bb=function(_0x15458f,_0x52e61f){const _0x223f4d=[];for(const _0x3ddd8d of _0x52e61f){const _0x38135b=_0x15458f['getIntersection'](_0x3ddd8d);_0x38135b&&_0x223f4d['push'](_0x38135b);}return _0x223f4d;}(_0x4f0ac7,_0x4abb1b),_0xb20a6b=function(_0x273708,_0x5da882){const _0x4513e4=[_0x273708];for(const _0x3c1c8a of _0x5da882){let _0x383f9b=0x0;for(;_0x383f9b<_0x4513e4['length'];){const _0x8f6572=_0x4513e4[_0x383f9b]['getDifference'](_0x3c1c8a);_0x4513e4['splice'](_0x383f9b,0x1,..._0x8f6572),_0x383f9b+=_0x8f6572['length'];}}return _0x4513e4;}(_0x4f0ac7,_0x4abb1b);_0x5e78bb['length']&&this['_model']['change'](()=>{for(const _0x23a2a4 of _0x5e78bb){const _0x3aa0fd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4679ed,'accept');this['forceDefaultExecution'](()=>_0x3aa0fd([_0x23a2a4],_0x2d502e,_0x416f5f));}});for(const _0x54697e of _0xb20a6b){let _0x21f0ca=null,_0x4dfa6f=_0x54697e['start'],_0x27d7e1=_0x54697e['end'];for(const {suggestion:_0x3d2efc,meta:_0x4a0094}of this['_findSuggestions'](_0x54697e,'formatInline')){if(!_0x4a0094['isOwn'])continue;if(_0x3d2efc['subType']!=_0x4679ed)continue;if(!zt(_0x3d2efc,_0x416f5f))continue;const _0x299649=_0x3d2efc['getFirstRange']();if(_0x299649['containsRange'](_0x54697e,!0x0))return null;_0x4dfa6f=_0x4dfa6f['isBefore'](_0x299649['start'])?_0x4dfa6f:_0x299649['start'],_0x27d7e1=_0x27d7e1['isAfter'](_0x299649['end'])?_0x27d7e1:_0x299649['end'],_0x21f0ca?_0x299649['start']['isBefore'](_0x21f0ca['getFirstRange']()['start'])?(_0x21f0ca['removeMarkers'](),_0x21f0ca=_0x3d2efc):_0x3d2efc['removeMarkers']():_0x21f0ca=_0x3d2efc;}const _0xac728=this['_model']['createRange'](_0x4dfa6f,_0x27d7e1);if(_0x21f0ca)this['_setSuggestionRange'](_0x21f0ca,_0xac728);else{const _0xec0c55=_0x46f059(),_0x52a33f=_0x1f3608['id'];this['_setSuggestionData']({'id':_0xec0c55,'type':'formatInline:'+_0x4679ed,'data':_0x2d502e,'createdAt':new Date(),'authorId':_0x52a33f,'attributes':_0x416f5f}),this['_addSuggestionMarker']('formatInline:'+_0x4679ed,_0xec0c55,_0x52a33f,_0xac728);}}return null;}['markBlockFormat'](_0x10b430,_0x2bd185,_0x8f4022=[],_0x431656=null,_0x8f9e77={}){_0x2bd185['formatGroupId']||(_0x2bd185['formatGroupId']=_0x2bd185['commandName']),_0x2bd185['multipleBlocks']=_0x10b430['is']('range'),_0x431656=_0x431656||Gt(_0x2bd185);const _0x16d8bd=_0x8f4022['map'](_0x4a35c3=>Jt(_0x4a35c3,this['_model'])),_0x160407=_0x10b430['is']('range')?_0x10b430:Jt(_0x10b430,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4f1493=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x431656,'accept');return this['forceDefaultExecution'](()=>_0x4f1493([_0x160407],_0x2bd185,_0x8f9e77)),null;}_0x16d8bd['push'](_0x160407);let _0x4a947b=!0x0;for(const _0x201339 of _0x16d8bd)if(!this['_rangeIsInLocalUserInsertion'](_0x201339)){_0x4a947b=!0x1;break;}if(_0x4a947b&&'always'!==this['_trackFormatChanges']){const _0x408c02=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x431656,'accept');return this['forceDefaultExecution'](()=>_0x408c02([_0x160407],_0x2bd185,_0x8f9e77)),null;}let _0x1c6172=null,_0x24d4a9=_0x160407['start'],_0x494081=_0x160407['end'];for(const {suggestion:_0x376fed,meta:_0x57a478}of this['_findSuggestions'](_0x160407,'formatBlock')){if(!_0x57a478['isOwn'])continue;if(_0x57a478['isNextTo']||_0x57a478['containsRangeInObject']||_0x57a478['isInsideObject'])continue;if(_0x376fed['data']['formatGroupId']!=_0x2bd185['formatGroupId'])continue;if(!zt(_0x376fed,_0x8f9e77))continue;const _0x375ba4=_0x376fed['getFirstRange']();if(_0x376fed['subType']==_0x431656){if(_0x375ba4['containsRange'](_0x160407,!0x0))return null;_0x24d4a9=_0x24d4a9['isBefore'](_0x375ba4['start'])?_0x24d4a9:_0x375ba4['start'],_0x494081=_0x494081['isAfter'](_0x375ba4['end'])?_0x494081:_0x375ba4['end'],_0x1c6172?_0x375ba4['start']['isBefore'](_0x1c6172['getFirstRange']()['start'])?(_0x1c6172['removeMarkers'](),_0x1c6172=_0x376fed):_0x376fed['removeMarkers']():_0x1c6172=_0x376fed;}else{const _0xfa0ad6=_0x160407['getIntersection'](_0x375ba4);this['_cutOutSuggestionMarker'](_0x376fed,_0xfa0ad6);}}const _0x27b37d=this['editor']['plugins']['get']('Users')['me'],_0x57d528=_0x46f059(),_0x29b275=_0x27b37d['id'];if(_0x1c6172)return this['_setSuggestionRange'](_0x1c6172,this['_model']['createRange'](_0x24d4a9,_0x494081)),_0x1c6172;{const _0x27dccf=this['_setSuggestionData']({'id':_0x57d528,'type':'formatBlock:'+_0x431656,'data':_0x2bd185,'createdAt':new Date(),'authorId':_0x29b275,'attributes':_0x8f9e77});return this['_addSuggestionMarker']('formatBlock:'+_0x431656,_0x57d528,_0x29b275,this['_model']['createRange'](_0x24d4a9,_0x494081)),_0x27dccf;}}['markMultiRangeBlockFormat'](_0x252912,_0x1e207b,_0x342e70=[],_0x1aa389=null,_0x50bdd9={}){_0x1e207b['formatGroupId']||(_0x1e207b['formatGroupId']=_0x1e207b['commandName']);const _0x1ce33c=_0x252912[0x0];_0x1e207b['multipleBlocks']=_0x1ce33c['is']('range'),_0x1aa389=_0x1aa389||Gt(_0x1e207b);const _0x4a6cc1=_0x342e70['map'](_0x5843cf=>Jt(_0x5843cf,this['_model'])),_0x3491fd=_0x1ce33c['is']('range')?_0x252912:_0x252912['map'](_0x4ad8a9=>Jt(_0x4ad8a9,this['_model']));if('never'===this['_trackFormatChanges']){const _0x51fdfb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1aa389,'accept');return this['forceDefaultExecution'](()=>_0x51fdfb(_0x3491fd,_0x1e207b,_0x50bdd9)),null;}_0x4a6cc1['push'](..._0x3491fd);let _0x562ab0=!0x0;for(const _0x23f691 of _0x4a6cc1)if(!this['_rangeIsInLocalUserInsertion'](_0x23f691)){_0x562ab0=!0x1;break;}if(_0x562ab0&&'always'!==this['_trackFormatChanges']){const _0x526828=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1aa389,'accept');return this['forceDefaultExecution'](()=>_0x526828(_0x3491fd,_0x1e207b,_0x50bdd9)),null;}const _0x2693d5=this['editor']['plugins']['get']('Users')['me'];for(const _0x331f6b of this['getSuggestions']()){if(_0x331f6b['author']['id']!=_0x2693d5['id'])continue;if('formatBlock'!=_0x331f6b['type']||_0x331f6b['data']['formatGroupId']!=_0x1e207b['formatGroupId'])continue;if(!zt(_0x331f6b,_0x50bdd9))continue;const _0x465c4c=_0x331f6b['subType']==_0x1aa389;for(let _0x54610a=0x0;_0x54610a<_0x3491fd['length'];_0x54610a++){const _0x2e77cb=_0x3491fd[_0x54610a];for(const _0x3b98e9 of _0x331f6b['getMarkers']()){const _0x266f90=_0x3b98e9['getRange']();if(_0x2e77cb['isEqual'](_0x266f90)){_0x465c4c?(_0x3491fd['splice'](_0x54610a,0x1),_0x54610a--):_0x331f6b['removeMarker'](_0x3b98e9['name']);break;}}}}if(0x0==_0x3491fd['length'])return null;const _0x39ddf5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1aa389,'join');for(const _0x3edf65 of this['getSuggestions']())if(_0x3edf65['author']['id']==_0x2693d5['id']&&'formatBlock'==_0x3edf65['type']&&_0x3edf65['data']['formatGroupId']==_0x1e207b['formatGroupId']&&_0x3edf65['subType']==_0x1aa389&&zt(_0x3edf65,_0x50bdd9)&&(_0x39ddf5(_0x3edf65['getRanges'](),_0x3491fd)||_0x39ddf5(_0x3491fd,_0x3edf65['getRanges']()))){for(const _0x21435b of _0x3491fd)_0x3edf65['addRange'](_0x21435b);return _0x3edf65;}const _0x26f909=_0x46f059(),_0x16340b=_0x2693d5['id'],_0x3cbef3='formatBlock:'+_0x1aa389,_0x1d8a1a=this['_setSuggestionData']({'id':_0x26f909,'type':_0x3cbef3,'data':_0x1e207b,'createdAt':new Date(),'authorId':_0x16340b,'attributes':_0x50bdd9});for(const _0x223d9e of _0x3491fd)this['_addSuggestionMarker'](_0x3cbef3,_0x26f909,_0x16340b,_0x223d9e,u['getMultiRangeId']());return _0x1d8a1a;}['markDeletion'](_0x367243,_0x5b2518=null,_0x366087={}){if(_0x367243['isCollapsed'])return null;const _0x17e5fc=this['editor']['plugins']['get']('Users')['me'],_0x54278b=new _0x1c86da(_0x367243['start'],_0x367243['end']);for(const {suggestion:_0x3c1e8c,meta:_0x4e7d62}of this['_findSuggestions'](_0x54278b,'insertion'))if(_0x4e7d62['isOwn']&&!_0x4e7d62['isNextTo']){if(_0x3c1e8c['isMultiRange']){const _0x4c5428=_0x3c1e8c['getRanges']()['filter'](_0x4294f8=>'$graveyard'!=_0x4294f8['root']['rootName']);_0x4c5428['every'](_0x115c59=>_0x54278b['containsRange'](_0x115c59,!0x0))&&_0x3c1e8c['discard']();if(_0x4c5428['some'](_0x52e398=>_0x52e398['containsRange'](_0x54278b,!0x0))){const _0x3d9e98=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b2518,'accept');return this['forceDefaultExecution'](()=>_0x3d9e98([_0x54278b],null,_0x366087)),null;}}else{const _0x29d786=_0x54278b['getIntersection'](_0x3c1e8c['getFirstRange']());null!==_0x29d786&&_0x3c1e8c['_onDiscard']([_0x29d786],null,_0x366087);}}if(_0x54278b['detach'](),_0x54278b['isCollapsed']||'$graveyard'==_0x54278b['root']['rootName'])return null;let _0x53876d=null,_0x5aeae9=_0x54278b['start'],_0x52c881=_0x54278b['end'];const _0x395c6b=this['_findSuggestions'](_0x54278b,'deletion');for(const {suggestion:_0x38bab8,meta:_0x1d6e2a}of _0x395c6b){const _0x25334e=this['_model']['createRange'](_0x5aeae9,_0x52c881);if(_0x1d6e2a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1d6e2a['containsRangeInObject']&&!_0x1d6e2a['isInsideObject'])){if(_0x38bab8['isMultiRange']){if(!zt(_0x38bab8,_0x366087))continue;let _0x265649=!0x0;for(const _0x2a0343 of _0x38bab8['getRanges']()){if(_0x2a0343['containsRange'](_0x25334e,!0x0))return _0x38bab8;_0x25334e['containsRange'](_0x2a0343)||(_0x265649=!0x1);}_0x265649&&_0x38bab8['discard']();}else{const _0x1088b0=_0x38bab8['getFirstRange']();if(_0x1088b0['containsRange'](_0x25334e,!0x0))return _0x38bab8;if(!zt(_0x38bab8,_0x366087)){_0x25334e['containsRange'](_0x1088b0)?_0x38bab8['removeMarkers']():_0x1088b0['containsPosition'](_0x5aeae9)?_0x5aeae9=_0x1088b0['end']:_0x1088b0['containsPosition'](_0x52c881)&&(_0x52c881=_0x1088b0['start']);continue;}_0x5aeae9=_0x5aeae9['isBefore'](_0x1088b0['start'])?_0x5aeae9:_0x1088b0['start'],_0x52c881=_0x52c881['isAfter'](_0x1088b0['end'])?_0x52c881:_0x1088b0['end'],_0x366087=Object['assign']({},_0x38bab8['attributes']),_0x53876d?_0x1088b0['start']['isBefore'](_0x53876d['getFirstRange']()['start'])?(_0x53876d['removeMarkers'](),_0x53876d=_0x38bab8):_0x38bab8['removeMarkers']():_0x53876d=_0x38bab8;}}}if(_0x53876d)return this['_setSuggestionRange'](_0x53876d,this['_model']['createRange'](_0x5aeae9,_0x52c881)),_0x53876d;{const _0x7f199f=_0x46f059(),_0x1a7591=this['_model']['createRange'](_0x5aeae9,_0x52c881),_0x14a2dc=_0x17e5fc['id'],_0x55c6d1=_0x5b2518?'deletion:'+_0x5b2518:'deletion',_0x2444a4=this['_setSuggestionData']({'id':_0x7f199f,'type':_0x55c6d1,'createdAt':new Date(),'authorId':_0x14a2dc,'attributes':_0x366087});return this['_addSuggestionMarker'](_0x55c6d1,_0x7f199f,_0x14a2dc,_0x1a7591),_0x2444a4;}}['markMultiRangeDeletion'](_0x4dc4dc,_0x374902='multi',_0x2e950e={}){const _0x44bb1b=this['editor']['plugins']['get']('Users')['me'],_0x2e69cc=_0x4dc4dc['map'](_0x2c6ab1=>new _0x1c86da(_0x2c6ab1['start'],_0x2c6ab1['end'])),_0xa0581e=new Set();for(const {suggestion:_0x5c091b,meta:_0x32ffa0}of this['_findSuggestions'](_0x2e69cc,'insertion'))_0x32ffa0['isOwn']&&!_0x32ffa0['isNextTo']&&_0xa0581e['add'](_0x5c091b);for(const _0x5434e9 of _0xa0581e)if(_0x5434e9['isMultiRange']){const _0x54f09f=_0x5434e9['getRanges']();(!_0x5434e9['attributes']||!_0x5434e9['attributes']['skipNestingCheck'])&&(_0x54f09f['every'](_0x4a1666=>_0x2e69cc['some'](_0x134855=>_0x134855['containsRange'](_0x4a1666,!0x0)))&&_0x5434e9['discard']());if(_0x2e69cc['every'](_0x2db4ae=>_0x54f09f['some'](_0x46f25e=>_0x46f25e['containsRange'](_0x2db4ae,!0x0)))){const _0xb78c71=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x374902,'accept');return this['forceDefaultExecution'](()=>_0xb78c71(_0x4dc4dc,null,_0x2e950e)),null;}}else{const _0x3f2e52=_0x5434e9['getFirstRange']();_0x2e69cc['some'](_0x4c2429=>_0x4c2429['containsRange'](_0x3f2e52,!0x0))&&_0x5434e9['discard']();if(_0x2e69cc['every'](_0x4338bb=>_0x3f2e52['containsRange'](_0x4338bb,!0x0))){const _0x571586=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x374902,'accept');return this['forceDefaultExecution'](()=>_0x571586(_0x2e69cc,null,_0x2e950e)),null;}}const _0x5c59b8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x374902,'join');let _0x5eb4ee=null;for(const _0x52fe78 of this['getSuggestions']())if(_0x52fe78['author']['id']==_0x44bb1b['id']&&_0x52fe78['isInContent']&&'deletion'==_0x52fe78['type']&&_0x52fe78['subType']==_0x374902&&zt(_0x52fe78,_0x2e950e)&&(_0x5c59b8(_0x52fe78['getRanges'](),_0x2e69cc)||_0x5c59b8(_0x2e69cc,_0x52fe78['getRanges']()))){if(_0x5eb4ee){if(_0x52fe78['commentThread']&&_0x52fe78['commentThread']['length'])continue;for(const _0x3c53f3 of _0x52fe78['getRanges']())_0x5eb4ee['isIntersectingWithRange'](_0x3c53f3)||_0x5eb4ee['addRange'](_0x3c53f3);_0x52fe78['removeMarkers']();}else{_0x5eb4ee=_0x52fe78;for(const _0x122375 of _0x2e69cc)_0x52fe78['isIntersectingWithRange'](_0x122375)||_0x52fe78['addRange'](_0x122375);}}if(_0x5eb4ee)return _0x5eb4ee;_0xa0581e['clear']();for(const {suggestion:_0x5b2b3a,meta:_0x545b7d}of this['_findSuggestions'](_0x2e69cc,'deletion'))_0x545b7d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x545b7d['containsRangeInObject']&&!_0x545b7d['isInsideObject'])&&zt(_0x5b2b3a,_0x2e950e)&&_0xa0581e['add'](_0x5b2b3a);for(const _0x35e9a9 of _0xa0581e){const _0x51d142=_0x35e9a9['getRanges']();if(!_0x2e950e||!_0x2e950e['skipNestingCheck']){if(_0x2e69cc['every'](_0xb29c37=>_0x51d142['some'](_0x59ac8f=>_0x59ac8f['containsRange'](_0xb29c37,!0x0))))return _0x35e9a9;}(!_0x35e9a9['attributes']||!_0x35e9a9['attributes']['skipNestingCheck'])&&(_0x51d142['every'](_0x4619f5=>_0x2e69cc['some'](_0x4791e4=>_0x4791e4['containsRange'](_0x4619f5,!0x0)))&&_0x35e9a9['discard']());}const _0x50c497=_0x46f059(),_0x3b61fa=_0x44bb1b['id'],_0x577256='deletion:'+_0x374902,_0x2b3c01=this['_setSuggestionData']({'id':_0x50c497,'type':_0x577256,'createdAt':new Date(),'authorId':_0x3b61fa,'attributes':_0x2e950e});for(const _0x5b3032 of _0x2e69cc)_0x5b3032['detach'](),_0x5b3032['isCollapsed']||'$graveyard'==_0x5b3032['root']['rootName']||this['_addSuggestionMarker'](_0x577256,_0x50c497,_0x3b61fa,_0x5b3032,u['getMultiRangeId']());return _0x2b3c01;}['markAttributeChange'](_0xa76fac,_0x2d1357,_0xc4272,_0x5773f9,_0x2a2bce){if(_0xa76fac['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5e7bac=this['editor']['plugins']['get']('Users')['me']['id'],_0x53a475=Array['from'](this['_suggestions']['values']())['filter'](_0x5ed096=>'attribute'==_0x5ed096['type']&&_0x5ed096['data']['key']==_0x2d1357&&_0x5ed096['isIntersectingWithRange'](_0xa76fac));if('default'===this['_trackFormatChanges']){const _0x10a8a2=this['_findSuggestions'](_0xa76fac,'insertion')['filter'](({meta:_0x48f73d})=>_0x48f73d['isOwn']&&!_0x48f73d['isInsideObject']&&!_0x48f73d['isNextTo'])['map'](({suggestion:_0x1057c9})=>_0x1057c9);_0x53a475['unshift'](..._0x10a8a2);}const _0xe4a168=new Map([[_0xa76fac,_0xc4272]]);for(const _0x3cbd6a of _0x53a475){const _0x1516f9='attribute'==_0x3cbd6a['type']?_0x3cbd6a['data']['oldValue']:void 0x0,_0x5799d7=_0x3cbd6a['getFirstRange'](),_0xcb59c8=Array['from'](_0xe4a168['keys']())['find'](_0x458283=>_0x458283['isIntersecting'](_0x5799d7));if(!_0xcb59c8)continue;const _0x1e96c9=_0xcb59c8['getDifference'](_0x5799d7);this['_isBlockAttribute'](_0x2d1357)&&'insertion'==_0x3cbd6a['type']&&0x0!=_0x1e96c9['length']||(_0xe4a168['delete'](_0xcb59c8),_0x1e96c9['forEach'](_0x512d54=>{_0xe4a168['set'](_0x512d54,_0xc4272);}),'insertion'!=_0x3cbd6a['type']&&_0x1516f9!=_0x5773f9&&_0xe4a168['set'](_0xcb59c8['getIntersection'](_0x5799d7),_0x1516f9));}const _0x53c0c2=[];for(const [_0x5223fb,_0x9a566b]of _0xe4a168){const _0x191bb5=_0x46f059(),_0x2f7322={'key':_0x2d1357,'oldValue':_0x9a566b,'newValue':_0x5773f9};_0x2d1357['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':_0x2d1357});const _0x165890=('attribute:'+(_0x2d1357+'|'+Gt({'newValue':_0x5773f9})))['substring'](0x0,0x3c),_0x338d04=this['_setSuggestionData']({'id':_0x191bb5,'type':_0x165890,'data':_0x2f7322,'createdAt':new Date(),'authorId':_0x5e7bac,'attributes':_0x2a2bce});_0x53c0c2['push'](_0x338d04),this['_addSuggestionMarker'](_0x165890,_0x191bb5,_0x5e7bac,_0x5223fb);}return _0x53c0c2;}['enableDefaultAttributesIntegration'](_0x9332b6){this['enableCommand'](_0x9332b6,(_0x348e14,..._0x3f3c9e)=>{this['_recordAttributeChanges'](()=>{_0x348e14(..._0x3f3c9e);});});}['registerBlockAttribute'](_0x16e0af){this['_blockAttributeKeys']['add'](_0x16e0af);}['registerInlineAttribute'](_0x90b3f5){this['_inlineAttributeKeys']['add'](_0x90b3f5);}['_getAttributeKey'](_0x2d562b){return'attribute'==_0x2d562b['type']?_0x2d562b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5a6edc,_0x5b7da7){const _0xce3490=_0x5a6edc['getFirstMarker']();this['_model']['change'](_0x52eea6=>{_0x52eea6['updateMarker'](_0xce3490,{'range':_0x5b7da7});});}['_addThreadToSuggestion'](_0x45349c){const _0xe149df=_0x45349c['id'],_0x1c080b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xe149df)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1c080b,'threadId':_0xe149df,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xb16566=this['_commentsRepository']['getCommentThread'](_0xe149df);_0xb16566['unbind']('isRemovable'),_0xb16566['isRemovable']=!0x1,_0x45349c['commentThread']=_0xb16566;}['_checkSuggestionCorrectness'](_0x2bea12,_0x5b28e6,_0x3b44c5,_0x33acb0){if(_0x2bea12['type']!=_0x5b28e6||_0x2bea12['subType']!=_0x3b44c5||_0x2bea12['creator']['id']!=_0x33acb0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x243768('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x16974b,_0x3888de){const _0x26d190=_0x16974b['getFirstRange']();if(_0x3888de['isEqual'](_0x26d190))_0x16974b['removeMarkers']();else{if(_0x26d190['containsRange'](_0x3888de)){const _0x41d979=this['_model']['createPositionAt'](_0x3888de['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16974b,this['_model']['createRange'](_0x26d190['start'],_0x41d979));const _0x1eafe6=_0x46f059(),_0x1c03cf=_0x16974b['creator']['id'],_0x3c401a=_0x16974b['type']+':'+_0x16974b['subType'];this['_setSuggestionData']({'id':_0x1eafe6,'type':_0x3c401a,'createdAt':new Date(),'authorId':_0x1c03cf,'data':_0x16974b['data'],'attributes':_0x16974b['attributes']});const _0x171fed=this['_model']['createPositionAt'](_0x3888de['end']['parent'],'after'),_0x177bea=this['_model']['createRange'](_0x171fed,_0x26d190['end']);this['_addSuggestionMarker'](_0x3c401a,_0x1eafe6,_0x1c03cf,_0x177bea);}else{if(_0x26d190['containsPosition'](_0x3888de['start'])){const _0x305805=this['_model']['createPositionAt'](_0x3888de['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16974b,this['_model']['createRange'](_0x26d190['start'],_0x305805));}else{const _0x55389f=this['_model']['createPositionAt'](_0x3888de['end']['parent'],'after');this['_setSuggestionRange'](_0x16974b,this['_model']['createRange'](_0x55389f,_0x26d190['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3127b6){for(const {suggestion:_0x3fe419,meta:_0x435a18}of this['_findSuggestions'](_0x3127b6,'insertion')){if(!_0x435a18['isOwn'])continue;const _0x110eb3=_0x3fe419['getRanges']();for(const _0x56d07d of _0x110eb3)if(!_0x3127b6['getDifference'](_0x56d07d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1bc57e){const _0x1f23df=this['editor']['plugins']['get']('Users')['getUser'](_0x1bc57e);if(!_0x1f23df)throw new _0x243768('track-changes-user-not-found',this);return _0x1f23df;}['_getExternalAuthor'](_0x2bf313){const _0x1e01c7=this['editor']['plugins']['get']('Users'),_0x59b338=_0x546877('external:'+_0x2bf313),_0x260f0a=_0x1e01c7['getUser'](_0x59b338);return _0x260f0a||_0x1e01c7['addUser']({'id':_0x59b338,'name':_0x2bf313});}['_createSuggestion'](_0x273144,_0x129aae,_0x24a58f,_0x44e173,_0x37c5a7){const _0x324ec1=this['_getAuthorFromId'](_0x44e173),_0x5e7b5c=this['_suggestionFactory']['buildSuggestion'](_0x273144,_0x129aae,_0x24a58f,_0x324ec1,_0x37c5a7,_0x5a583a=>{this['_updateSuggestionData'](_0x24a58f,{'attributes':_0x5a583a});const _0x1c4595=this['getSuggestion'](_0x24a58f);this['_joinWithAdjacentSuggestions'](new Set([_0x1c4595])),this['_refreshSuggestionsChain'](new Set([_0x1c4595]));});return this['listenTo'](_0x5e7b5c,'accept',()=>{this['_updateSuggestionData'](_0x24a58f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5e7b5c,'discard',()=>{this['_updateSuggestionData'](_0x24a58f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x24a58f,_0x5e7b5c),this['_suggestionState']['set'](_0x5e7b5c,'notReady'),_0x5e7b5c;}['_splitMarkerName'](_0xbecb94){const _0x5969f2=_0xbecb94['split'](':');return{'group':_0x5969f2[0x0],'type':_0x5969f2[0x1],'subType':_0x5969f2['length']>=0x5?_0x5969f2[0x2]:null,'id':_0x5969f2['length']<0x5?_0x5969f2[0x2]:_0x5969f2[0x3],'authorId':_0x5969f2['length']<0x5?_0x5969f2[0x3]:_0x5969f2[0x4],'markerCount':0x6==_0x5969f2['length']?_0x5969f2[0x5]:null};}['_breakSuggestionMarker'](_0x3b6a11,_0x465500,_0x7eacdc){const _0xebb44f=_0x3b6a11['getFirstRange'](),_0x448c85=_0xebb44f['start'],_0xaf6bf8=_0xebb44f['end'];this['_setSuggestionRange'](_0x3b6a11,this['_model']['createRange'](_0x448c85,_0x465500));const _0x10c3cc=_0x46f059(),_0x33b52f=_0x3b6a11['creator']['id'],_0x201f62=_0x3b6a11['type']+(_0x3b6a11['subType']?':'+_0x3b6a11['subType']:'');this['_setSuggestionData']({'id':_0x10c3cc,'type':_0x201f62,'createdAt':new Date(),'authorId':_0x33b52f,'originalSuggestionId':_0x3b6a11['id'],'attributes':_0x3b6a11['attributes'],'data':_0x3b6a11['data']});const _0x430a28=this['_getAttributeKey'](_0x3b6a11);('formatBlock'==_0x3b6a11['type']||_0x430a28&&this['_isBlockAttribute'](_0x430a28))&&(_0x7eacdc=this['_model']['createPositionBefore'](_0x7eacdc['parent'])),this['_addSuggestionMarker'](_0x201f62,_0x10c3cc,_0x33b52f,this['_model']['createRange'](_0x7eacdc,_0xaf6bf8));}['_findSuggestions'](_0x86b1f8,_0x107ccb=null){const _0x2042e1=[],_0x2a53cb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x86b1f8)||(_0x86b1f8=[_0x86b1f8]);for(const _0x2138ec of this['getSuggestions']()){if(!_0x2138ec['isInContent'])continue;if(_0x107ccb&&_0x2138ec['type']!=_0x107ccb)continue;let _0x120064=!0x1;for(const _0x5318dc of _0x2138ec['getRanges']()){for(const _0x4ff5ad of _0x86b1f8){const _0x2c8a57=_0x4ff5ad['start']['isEqual'](_0x5318dc['end'])||_0x4ff5ad['end']['isEqual'](_0x5318dc['start']);if(_0x2c8a57||_0x4ff5ad['getIntersection'](_0x5318dc)){const _0x527180=_0x4ff5ad['containsRange'](_0x5318dc)&&Ut(this['_model']['schema'],_0x5318dc['start'],_0x4ff5ad),_0x107b91=_0x5318dc['containsRange'](_0x4ff5ad)&&Ut(this['_model']['schema'],_0x4ff5ad['start'],_0x5318dc);_0x2042e1['push']({'suggestion':_0x2138ec,'meta':{'isOwn':_0x2a53cb==_0x2138ec['author'],'isNextTo':_0x2c8a57,'isInsideObject':_0x527180,'containsRangeInObject':_0x107b91}}),_0x120064=!0x0;break;}}if(_0x120064)break;}}return _0x2042e1;}['_addSuggestionMarker'](_0x55a9b8,_0x1ee6ed,_0x34abf3,_0x167119,_0x485faf){this['_model']['change'](_0x441913=>{let _0x2f1e6='suggestion:'+_0x55a9b8+':'+_0x1ee6ed+':'+_0x34abf3;_0x485faf&&(_0x2f1e6=_0x2f1e6+':'+_0x485faf),_0x441913['addMarker'](_0x2f1e6,{'range':_0x167119,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2b7c76){const _0x4259d2=_0x2b7c76['previous'],_0x5e7458=_0x2b7c76['next'];_0x2b7c76['previous']=null,_0x2b7c76['next']=null,null!=_0x4259d2&&_0x4259d2['next']==_0x2b7c76&&(_0x4259d2['next']=_0x5e7458),null!=_0x5e7458&&_0x5e7458['previous']==_0x2b7c76&&(_0x5e7458['previous']=_0x4259d2),'ready'==this['_suggestionState']['get'](_0x2b7c76)&&(this['_suggestionState']['set'](_0x2b7c76,'removed'),this['fire']('suggestionUnloaded',_0x2b7c76,_0x4259d2,_0x5e7458));}['_setSuggestionData'](_0x519215){const _0x4b762f=_0x519215['id'],_0x7c2499=this['addSuggestionData'](_0x519215);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4226b6=this['editor']['plugins']['get']('PendingActions'),_0x356959=_0x7c2499['hasComments'],_0x5eda4f=_0x7c2499['subType']?_0x7c2499['type']+':'+_0x7c2499['subType']:_0x7c2499['type'],_0x4b670f=this['editor']['locale'],_0x4ae7f3=_0x4226b6['add'](o(_0x4b670f,'PENDING_ACTION_SUGGESTION')),_0x41904d={'id':_0x4b762f,'type':_0x5eda4f,'hasComments':_0x356959,'data':_0x519215['data']||null,'originalSuggestionId':_0x519215['originalSuggestionId']||null,'attributes':_0x7c2499['attributes']};this['_adapter']['addSuggestion'](_0x41904d)['then'](_0x2936d3=>{_0x7c2499['_saved']=!0x0,_0x4226b6['remove'](_0x4ae7f3),_0x2936d3&&_0x2936d3['createdAt']&&(this['_suggestions']['get'](_0x4b762f)['createdAt']=_0x2936d3['createdAt']);})['catch'](_0xc2adf1=>{throw _0x561160('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x7c2499['discard']();}),_0x7c2499['stopListening'](),this['_suggestions']['delete'](_0x7c2499['id']),this['_suggestionState']['delete'](_0x7c2499),_0xc2adf1;});}return _0x7c2499;}['_isBlockAttribute'](_0x4eac3e){return this['_blockAttributeKeys']['has'](_0x4eac3e);}['_updateSuggestionData'](_0x5046c9,_0x138c58){const _0x244ee2=this['editor']['plugins']['get']('PendingActions'),_0x5697cc=this['getSuggestion'](_0x5046c9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5697cc['_saved']){const _0xd735be=_0x244ee2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5046c9,_0x138c58)['then'](()=>{_0x244ee2['remove'](_0xd735be);});}else _0x5697cc['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5046c9,_0x138c58);});}}['_getSuggestionData'](_0x137fdf){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x243768('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x137fdf);}['_handleNewSuggestionMarker'](_0x53efff){const {id:_0x301133,type:_0x4f076f,subType:_0x2a1da6,authorId:_0x1bcd8f}=this['_splitMarkerName'](_0x53efff),_0x59516a=this['_suggestions']['get'](_0x301133)||this['_createSuggestion'](_0x4f076f,_0x2a1da6,_0x301133,_0x1bcd8f,{});switch(this['_checkSuggestionCorrectness'](_0x59516a,_0x4f076f,_0x2a1da6,_0x1bcd8f),this['_suggestionState']['get'](_0x59516a)){case'notReady':this['_getSuggestionData'](_0x301133)['then'](_0x37e2d2=>{let _0x3fed59=Promise['resolve']();_0x37e2d2['hasComments']&&(_0x3fed59=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x301133})),_0x3fed59['then'](()=>{this['addSuggestionData'](_0x37e2d2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x59516a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x301133,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x59516a,'ready'),this['fire']('suggestionLoaded',_0x59516a);break;case'ready':this['fire']('suggestionChanged',_0x59516a);}return _0x59516a['addMarkerName'](_0x53efff),_0x59516a;}['_refreshSuggestionsChain'](_0x2515cb){const _0x16dc31=Array['from'](_0x2515cb),_0x130648=_0x16dc31['filter'](_0x5d7005=>'attribute'==_0x5d7005['type']);this['_refreshAttributeSuggestionsChain'](_0x130648);const _0x45bb70=_0x16dc31['filter'](_0x5074b7=>!_0x5074b7['isMultiRange']&&'attribute'!=_0x5074b7['type']),_0x1322f9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e00e1=>!_0x2e00e1['isMultiRange']&&'attribute'!=_0x2e00e1['type']),_0x1f4830=_0x1322f9['filter'](_0x59ae90=>!_0x2515cb['has'](_0x59ae90)),_0x17e47e=new Map(_0x1322f9['map'](_0x3067ce=>[_0x3067ce,this['_suggestionFactory']['getSuggestionCallback'](_0x3067ce['type'],_0x3067ce['subType'],'chain')])),_0x3170d5=new Map(_0x1322f9['map'](_0x588b6b=>[_0x588b6b,_0x588b6b['getFirstRange']()])),_0x59dc3c=new Set(),_0x519cbd=new Set();for(let _0x31177a=0x0;_0x31177a<_0x45bb70['length'];_0x31177a++)_0x5cdcc4(_0x45bb70[_0x31177a],_0x45bb70,_0x31177a+0x1);for(let _0x1c1ac5=0x0;_0x1c1ac5<_0x45bb70['length'];_0x1c1ac5++)_0x5cdcc4(_0x45bb70[_0x1c1ac5],_0x1f4830,0x0);const _0x4fd84e=new Set();for(let _0x4de420=0x0;_0x4de420<_0x45bb70['length'];_0x4de420++){const _0x316021=_0x45bb70[_0x4de420];!_0x519cbd['has'](_0x316021)&&_0x316021['previous']&&(_0x4fd84e['add'](_0x316021['previous']),_0x316021['previous']['next']===_0x316021&&(_0x316021['previous']['next']=null),_0x316021['previous']=null),!_0x59dc3c['has'](_0x316021)&&_0x316021['next']&&(_0x4fd84e['add'](_0x316021['next']),_0x316021['next']['previous']===_0x316021&&(_0x316021['next']['previous']=null),_0x316021['next']=null);}function _0x5cdcc4(_0x304898,_0x3d5f37,_0x8bcbed){for(let _0x78e8ff=_0x8bcbed;_0x78e8ff<_0x3d5f37['length'];_0x78e8ff++){const _0x3cab9a=_0x48025d(_0x304898,_0x3d5f37[_0x78e8ff]);_0x3cab9a&&(_0x3cab9a[0x0]['next']=_0x3cab9a[0x1],_0x3cab9a[0x1]['previous']=_0x3cab9a[0x0],_0x59dc3c['add'](_0x3cab9a[0x0]),_0x519cbd['add'](_0x3cab9a[0x1]));}}function _0x48025d(_0x2c0818,_0x3cb8b4){if(_0x2c0818['author']['id']!==_0x3cb8b4['author']['id'])return null;const _0x319e75=_0x17e47e['get'](_0x2c0818)(_0x2c0818,_0x3cb8b4,_0x3170d5['get'](_0x2c0818),_0x3170d5['get'](_0x3cb8b4));if(!_0x319e75)return null;return _0x17e47e['get'](_0x3cb8b4)(_0x2c0818,_0x3cb8b4,_0x3170d5['get'](_0x2c0818),_0x3170d5['get'](_0x3cb8b4))?_0x319e75[0x1]['commentThread']&&_0x319e75[0x1]['commentThread']['length']?null:_0x319e75:null;}_0x4fd84e['size']&&this['_refreshSuggestionsChain'](_0x4fd84e);}['_refreshAttributeSuggestionsChain'](_0x473fd9){if(0x0==_0x473fd9['length'])return;const _0xe11e37=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x543c2d=>'attribute'==_0x543c2d['type']&&_0x543c2d['_isDataLoaded']),_0x2fb6c0=[],_0x5b754d=new Map();for(const _0x543c68 of _0xe11e37){const _0x32fbdd=_0x546877(_0x543c68['attributes']);_0x5b754d['has'](_0x32fbdd)||(_0x5b754d['set'](_0x32fbdd,_0x2fb6c0['length']),_0x2fb6c0['push']([]));const _0x1eaa46=_0x5b754d['get'](_0x32fbdd);_0x2fb6c0[_0x1eaa46]['push'](_0x543c68);}!(function(){_0x2fb6c0['sort']((_0x34ffa1,_0x547e4d)=>{const _0x40f41c=_0x34ffa1[0x0]['createdAt'],_0x26991d=_0x547e4d[0x0]['createdAt'];return _0x40f41c==_0x26991d?_0x34ffa1[0x0]['attributes']['groupId']<_0x547e4d[0x0]['attributes']['groupId']?-0x1:0x1:_0x40f41c<_0x26991d?-0x1:0x1;});for(const _0x54a89f of _0x2fb6c0)_0x54a89f['sort']((_0x559507,_0x3594cf)=>_0x559507['id']<_0x3594cf['id']?-0x1:0x1);}());for(let _0x3a5caa=0x0;_0x3a5caa<_0x2fb6c0['length'];_0x3a5caa++){if(0x0==_0x2fb6c0[_0x3a5caa]['length'])continue;const _0x171a53=[];for(let _0x47925e=_0x3a5caa+0x1;_0x47925e<_0x2fb6c0['length'];_0x47925e++)0x0!=_0x2fb6c0[_0x47925e]['length']&&_0x3e867c(_0x2fb6c0[_0x3a5caa],_0x2fb6c0[_0x47925e])&&_0x171a53['push'](_0x47925e);for(const _0x3564b8 of _0x171a53)_0x2fb6c0[_0x3a5caa]=_0x2fb6c0[_0x3a5caa]['concat'](_0x2fb6c0[_0x3564b8]),_0x2fb6c0[_0x3564b8]=[];}for(const _0x40c356 of _0x2fb6c0)for(let _0x5ada03=0x0;_0x5ada03<_0x40c356['length'];_0x5ada03++){const _0x234360=_0x40c356[_0x5ada03+0x1]||null;_0x40c356[_0x5ada03]['next']!==_0x234360&&(_0x40c356[_0x5ada03]['next']=_0x234360);}for(const _0x33ef7d of _0x2fb6c0)for(let _0x40e768=0x0;_0x40e768<_0x33ef7d['length'];_0x40e768++){const _0x17735a=_0x33ef7d[_0x40e768-0x1]||null;_0x33ef7d[_0x40e768]['previous']!==_0x17735a&&(_0x33ef7d[_0x40e768]['previous']=_0x17735a);}function _0x3e867c(_0x205d2b,_0x230c31){if(_0x205d2b[0x0]['attributes']['groupId']!==_0x230c31[0x0]['attributes']['groupId']&&_0x205d2b[0x0]['author']!==_0x230c31[0x0]['author'])return!0x1;if(!function(_0x918e82,_0x11f927){if(!_0x918e82['hasComments']&&!_0x11f927['hasComments'])return!0x0;if(_0x918e82['hasComments']&&_0x11f927['hasComments'])return!0x1;if(_0x918e82['hasComments']&&_0x11f927['createdAt']<_0x918e82['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x11f927['hasComments']&&_0x918e82['createdAt']<_0x11f927['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x205d2b[0x0],_0x230c31[0x0]))return!0x1;const _0x3febf0=xt(_0x205d2b[0x0]['attributes'],'groupId'),_0x41baf5=xt(_0x230c31[0x0]['attributes'],'groupId');if(!_0x2e7dfd(_0x3febf0,_0x41baf5))return!0x1;return!!_0x205d2b['every'](_0x3c6bd1=>_0x230c31['some'](_0x3097be=>_0x3c6bd1['getFirstRange']()['isEqual'](_0x3097be['getFirstRange']())))&&_0x230c31['every'](_0x4708a4=>_0x205d2b['some'](_0x34bc4d=>_0x4708a4['getFirstRange']()['isEqual'](_0x34bc4d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x457354){const _0x5d1259=Array['from'](_0x457354),_0x8ba65d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x25eaed=_0x8ba65d['filter'](_0x40a7d6=>!_0x457354['has'](_0x40a7d6)),_0x3d6529=new Map(_0x5d1259['map'](_0x5699ff=>[_0x5699ff,this['_suggestionFactory']['getSuggestionCallback'](_0x5699ff['type'],_0x5699ff['subType'],'join')])),_0x5bbabd=new Map(_0x8ba65d['map'](_0x4c07b0=>[_0x4c07b0,_0x4c07b0['getRanges']()]));for(let _0x1b1b31=0x0;_0x1b1b31<_0x5d1259['length'];_0x1b1b31++){if(_0x5942c4(this,_0x5d1259[_0x1b1b31],_0x5d1259,_0x1b1b31+0x1))return!0x0;}for(let _0x42be3f=0x0;_0x42be3f<_0x5d1259['length'];_0x42be3f++){if(_0x5942c4(this,_0x5d1259[_0x42be3f],_0x25eaed,0x0))return!0x0;}return!0x1;function _0x5942c4(_0x3666f4,_0x672fd0,_0x29ed8f,_0x48fe29){for(let _0x164fbf=_0x48fe29;_0x164fbf<_0x29ed8f['length'];_0x164fbf++){const _0x59d2c7=_0x29ed8f[_0x164fbf];if(_0x59d2c7['type']!==_0x672fd0['type']||_0x59d2c7['author']['id']!==_0x672fd0['author']['id']||_0x59d2c7['subType']!==_0x672fd0['subType'])continue;if(!qt(_0x672fd0,_0x59d2c7))continue;if('attribute'==_0x672fd0['type']&&_0x672fd0['data']['oldValue']!=_0x59d2c7['data']['oldValue'])continue;if('attribute'==_0x672fd0['type']&&_0x3666f4['_isBlockAttribute'](_0x672fd0['data']['key']))continue;if('formatBlock'==_0x672fd0['type']){const _0x157386=_0x3666f4['editor']['model'],_0x58e21b=_0x672fd0['getContainedElement']();if(_0x58e21b&&(_0x157386['schema']['isObject'](_0x58e21b)||_0x157386['schema']['isLimit'](_0x58e21b)))continue;}const _0x3b109e=_0x3d6529['get'](_0x672fd0),_0x3cb6f0=_0x5bbabd['get'](_0x672fd0),_0x3b10c4=_0x5bbabd['get'](_0x59d2c7),_0x42ab13=_0x672fd0['commentThread']&&_0x672fd0['commentThread']['length'],_0x25b909=_0x59d2c7['commentThread']&&_0x59d2c7['commentThread']['length'];if(!_0x42ab13&&_0x3b109e(_0x3b10c4,_0x3cb6f0))return _0x3666f4['_joinSuggestions'](_0x59d2c7,_0x672fd0),_0x5bbabd['delete'](_0x672fd0),!0x0;if(!_0x25b909&&_0x3b109e(_0x3cb6f0,_0x3b10c4))return _0x3666f4['_joinSuggestions'](_0x672fd0,_0x59d2c7),_0x5bbabd['delete'](_0x59d2c7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2671fb,_0x305b54){if(_0x2671fb['isMultiRange']){for(const _0x3b53cb of _0x305b54['getRanges']())_0x2671fb['addRange'](_0x3b53cb);}else{const _0x287cca=_0x305b54['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2671fb,this['_model']['createRange'](_0x2671fb['getFirstRange']()['start'],_0x287cca));}_0x305b54['removeMarkers']();}['_getMarkerAnnouncementText'](_0xd7752c,_0x1534b4,_0x1352b5){const _0x55a698=_0xd7752c['startsWith']('format')||_0xd7752c['startsWith']('attribute')?'FORMATTING':_0xd7752c['toUpperCase']();return o(this['editor']['locale'],_0x1534b4+'_'+_0x55a698+'_SUGGESTION_ANNOUNCEMENT',_0x1352b5);}['_initAriaMarkerChangeAnnouncements'](){const _0x250613=this['editor'];if(!_0x250613['ui'])return;const {ariaLiveAnnouncer:_0x2b2f58}=_0x250613['ui'];_0x1b81b3(this['_model'],({left:_0x37529b,entered:_0x292ad3})=>{for(const _0x290f10 of _0x37529b){const {group:_0x174852,type:_0x5d6b0b}=this['_splitMarkerName'](_0x290f10['name']);if('suggestion'===_0x174852){_0x2b2f58['announce'](this['_getMarkerAnnouncementText'](_0x5d6b0b,'LEAVE'));break;}}for(const _0x1f3e53 of _0x292ad3){const {group:_0x5701a9,type:_0x274e0b}=this['_splitMarkerName'](_0x1f3e53['name']);if('suggestion'===_0x5701a9){_0x2b2f58['announce'](this['_getMarkerAnnouncementText'](_0x274e0b,'ENTER',_0x21e46d(_0x2645ad)));break;}}});}['_processAttributeChanges'](_0x127164){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1a8639=this['editor'],_0x19e847=_0x1a8639['model']['document']['differ']['getChanges']();if(0x0==_0x19e847['length'])return!0x1;const _0x32dcb0=[],_0x36b0d0=_0x19e847['filter'](_0x55e96b=>'attribute'==_0x55e96b['type']),_0x42b16d=_0x19e847['filter'](_0xf6df4e=>'insert'==_0xf6df4e['type']&&'$text'!=_0xf6df4e['name']),_0x3d4707=_0x19e847['filter'](_0x14f8dc=>'remove'==_0x14f8dc['type']&&'$text'!=_0x14f8dc['name']);for(const _0x371e46 of _0x36b0d0)_0x32dcb0['push']({'key':_0x371e46['attributeKey'],'newValue':_0x371e46['attributeNewValue'],'oldValue':_0x371e46['attributeOldValue'],'range':Lt(_0x371e46['range'],_0x1a8639['model'])});for(const _0x171927 of _0x42b16d){const _0x2835ac=_0x3d4707['find'](_0x1f626b=>_0x1f626b['position']['isEqual'](_0x171927['position']));_0x2835ac&&_0x32dcb0['push']({'key':m,'newValue':_0x171927['name'],'oldValue':_0x2835ac['name'],'range':_0x1a8639['model']['createRangeOn'](_0x171927['position']['nodeAfter'])});}return 0x0!=_0x32dcb0['length']&&this['_reduceExistingSuggestions'](_0x127164,_0x32dcb0);}['_processAttributeSuggestions'](_0x500570){let _0x439c46=!0x1;const _0x39035b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x443224=>_0x443224['data']['newRange']&&_0x443224['name']['startsWith']('suggestion:attribute:'));for(const _0x81b420 of _0x39035b){const {subType:_0x5421a7,id:_0x48dca7}=this['_splitMarkerName'](_0x81b420['name']),_0x516dfe=_0x5421a7['split']('|')[0x0];for(const _0x551293 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x551293['id']!=_0x48dca7&&'attribute'==_0x551293['type']&&_0x551293['data']&&_0x551293['data']['key']==_0x516dfe&&_0x551293['getFirstRange']()['isIntersecting'](_0x81b420['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x551293,_0x81b420['data']['newRange'],_0x500570),_0x439c46=!0x0);}return _0x439c46;}['_recordAttributeChanges'](_0x4bd7b1){this['_recordAttributeSuggestions']=!0x0,_0x4bd7b1();}['_isRegisteredAttribute'](_0x54c583){const _0x361097=this['_isBlockAttribute'](_0x54c583),_0x5cdcff=this['_inlineAttributeKeys']['has'](_0x54c583);return _0x361097||_0x5cdcff;}['_reduceExistingSuggestions'](_0x333d7e,_0x59a5e4){if(0x0==_0x59a5e4['length'])return!0x1;let _0x410d1a=!0x1;for(const _0x12da53 of _0x59a5e4){const _0x4c10da=this['_findSuggestions'](_0x12da53['range'],'attribute')['filter'](_0x16944b=>!_0x16944b['meta']['isNextTo'])['map'](_0x31ecf2=>_0x31ecf2['suggestion']),_0x15a063=_0x546877({'newValue':_0x12da53['newValue']});_0x4c10da['filter'](_0x21ad89=>{const [_0x291e15,_0x190374]=_0x21ad89['subType']['split']('|');return _0x291e15==_0x12da53['key']&&_0x190374!=_0x15a063;})['forEach'](_0x17581c=>{this['_reduceSuggestionAttributeRange'](_0x17581c,_0x12da53['range'],_0x333d7e),_0x410d1a=!0x0;});}return _0x410d1a;}['_reduceSuggestionAttributeRange'](_0x382040,_0x2dc229,_0x24b6da){const _0x37556a=_0x382040['getFirstRange']()['getDifference'](_0x2dc229);0x0!==_0x37556a['length']?0x1!==_0x37556a['length']?this['_breakSuggestionMarker'](_0x382040,_0x2dc229['start'],_0x2dc229['end']):this['_setSuggestionRange'](_0x382040,_0x37556a[0x0]):_0x24b6da['removeMarker'](_0x382040['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x23fc08){this['_editor']=_0x23fc08,this['_model']=_0x23fc08['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1b90d9,_0x2e0eb9,_0x3a8b25,_0x3fdd0e,_0x7d1aa5,_0x20aab2){return new u(this['_model'],{'type':_0x1b90d9,'subType':_0x2e0eb9,'id':_0x3a8b25,'author':_0x3fdd0e,'creator':_0x3fdd0e,'attributes':_0x7d1aa5,'onAttributesChange':_0x20aab2,'onAccept':(..._0x35b894)=>this['getSuggestionCallback'](_0x1b90d9,_0x2e0eb9,'accept')(..._0x35b894),'onDiscard':(..._0x5440c9)=>this['getSuggestionCallback'](_0x1b90d9,_0x2e0eb9,'discard')(..._0x5440c9)});}['registerCustomCallback'](_0x4a46b8,_0x4d1c57,_0x1270d1,_0x436bb5){const _0x55b70a=_0x4a46b8+':'+_0x4d1c57+':'+_0x1270d1;this['_customCallbacks']['set'](_0x55b70a,_0x436bb5);}['getSuggestionCallback'](_0x121f0b,_0x3c9687,_0xd585b3){const _0x1e8e83=_0x121f0b+':'+_0x3c9687+':'+_0xd585b3;return this['_customCallbacks']['get'](_0x1e8e83)||this['_defaultCallbacks']['get'](_0x121f0b+':'+_0xd585b3);}['_registerDefaultCallbacks'](){const _0x2d3193=()=>!0x1,_0x48079b=_0x3f34c0=>{_0x3f34c0['sort']((_0x444fd4,_0x30ffda)=>_0x444fd4['start']['isBefore'](_0x30ffda['start'])?0x1:-0x1),this['_model']['change'](_0x4f235c=>{for(const _0x3af3ec of _0x3f34c0){let _0x256fee;_0x256fee=_0x3af3ec['end']['isAtEnd']&&_0x3af3ec['end']['parent']==_0x3af3ec['start']['nodeAfter']?_0x4f235c['createSelection'](_0x3af3ec['start']['nodeAfter'],'on'):_0x4f235c['createSelection'](_0x3af3ec),this['_model']['deleteContent'](_0x256fee,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x430f5c=(_0x510ebb,_0x598914)=>{_0x598914&&this['_model']['change'](_0x1b06e8=>{const {commandName:_0x150aab,commandParams:_0x517cb3=[]}=_0x598914,_0x2bffbe=_0x510ebb['map'](_0x4e4b16=>(Vt(_0x4e4b16)&&(_0x4e4b16=this['_model']['createRange'](_0x4e4b16['end'])),_0x4e4b16))['filter'](_0x1f6598=>'$graveyard'!==_0x1f6598['root']['rootName']);if(_0x2bffbe['length']<0x1)return;const _0x16c937=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x199fa0=>_0x1c86da['fromRange'](_0x199fa0));_0x1b06e8['setSelection'](_0x2bffbe);for(const _0x59db4b of this['_editor']['commands']['commands']())_0x59db4b['refresh']();_0x517cb3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x150aab,..._0x517cb3);const _0x3ad721=_0x16c937['filter'](_0x4284f0=>'$graveyard'!=_0x4284f0['root']['rootName']);_0x3ad721['length']>0x0&&_0x1b06e8['setSelection'](_0x3ad721);for(const _0x412748 of _0x16c937)_0x412748['detach']();});},_0x22de0b=(_0x20355f,_0x9067e5)=>0x1==_0x20355f['length']&&0x1==_0x9067e5['length']&&_0x20355f[0x0]['end']['isEqual'](_0x9067e5[0x0]['start']),_0x11574d=(_0x2bab73,_0x4eca47,_0x198d88,_0x577d27)=>Ht(_0x2bab73,_0x4eca47,_0x198d88,_0x577d27)?[_0x2bab73,_0x4eca47]:Ht(_0x4eca47,_0x2bab73,_0x577d27,_0x198d88)?[_0x4eca47,_0x2bab73]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2d3193),this['_defaultCallbacks']['set']('insertion:discard',_0x48079b),this['_defaultCallbacks']['set']('insertion:join',_0x22de0b),this['_defaultCallbacks']['set']('insertion:chain',_0x11574d),this['_defaultCallbacks']['set']('deletion:accept',_0x48079b),this['_defaultCallbacks']['set']('deletion:discard',_0x2d3193),this['_defaultCallbacks']['set']('deletion:join',_0x22de0b),this['_defaultCallbacks']['set']('deletion:chain',_0x11574d),this['_defaultCallbacks']['set']('formatInline:accept',_0x430f5c),this['_defaultCallbacks']['set']('formatInline:discard',_0x2d3193),this['_defaultCallbacks']['set']('formatInline:join',_0x22de0b),this['_defaultCallbacks']['set']('formatInline:chain',_0x2d3193),this['_defaultCallbacks']['set']('formatBlock:accept',_0x430f5c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2d3193),this['_defaultCallbacks']['set']('formatBlock:join',_0x22de0b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2d3193),this['_defaultCallbacks']['set']('attribute:accept',_0x2d3193),this['_defaultCallbacks']['set']('attribute:discard',(_0x537500,_0x54050a)=>{if(!_0x54050a)return;const _0xaa73e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x19f0eb=>{if(_0x54050a['key']==m)for(const _0x4ced86 of _0x537500){const _0x42d96d=_0x4ced86['start']['nodeAfter'],_0x3a6564=_0x54050a['oldValue'];_0x19f0eb['rename'](_0x42d96d,_0x3a6564);}else{if(_0xaa73e['_isBlockAttribute'](_0x54050a['key'])){for(const _0x41e6ce of _0x537500)void 0x0!==_0x54050a['oldValue']?_0x19f0eb['setAttribute'](_0x54050a['key'],_0x54050a['oldValue'],_0x41e6ce['start']['nodeAfter']):_0x19f0eb['removeAttribute'](_0x54050a['key'],_0x41e6ce['start']['nodeAfter']);}else{for(const _0x2df2e9 of _0x537500)_0x54050a['oldValue']?_0x19f0eb['setAttribute'](_0x54050a['key'],_0x54050a['oldValue'],_0x2df2e9):_0x19f0eb['removeAttribute'](_0x54050a['key'],_0x2df2e9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x22de0b);}}function Ut(_0x3901ec,_0x12e1f4,_0x275532){for(const _0x379fda of _0x12e1f4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x379fda['root']==_0x379fda)return!0x1;if(!_0x275532['containsItem'](_0x379fda))return!0x1;if(_0x3901ec['isObject'](_0x379fda)||_0x3901ec['isLimit'](_0x379fda))return!0x0;}return!0x1;}function Vt(_0x43ae18){return _0x43ae18['end']['parent']==_0x43ae18['start']['nodeAfter']&&_0x43ae18['end']['isAtStart'];}function Pt(_0x214f48,_0x17407c,_0x13f190,_0x2e9b35){const _0x261873=_0x437f6f=>!_0x437f6f['item']['is']('$textProxy')&&!_0x2e9b35['isObject'](_0x437f6f['item']),_0x406518=_0x214f48['start']['getLastMatchingPosition'](_0x261873),_0x30e5ec=_0x214f48['end']['getLastMatchingPosition'](_0x261873,{'direction':'backward'});return(!_0x214f48['start']['isEqual'](_0x406518)||!_0x214f48['end']['isEqual'](_0x30e5ec))&&(_0x406518['isBefore'](_0x30e5ec)?_0x13f190['updateMarker'](_0x17407c,{'range':_0x13f190['createRange'](_0x406518,_0x30e5ec)}):_0x13f190['removeMarker'](_0x17407c),!0x0);}function Gt(_0x2196c5){return _0x546877(_0x2196c5);}function Ft(_0x74a48a){const _0x4f274f=_0x74a48a['start']['nodeAfter'];return _0x4f274f&&_0x4f274f['is']('element');}function Lt(_0x40e480,_0x750902){return null==_0x40e480['end']['nodeBefore']&&_0x40e480['end']['parent']==_0x40e480['start']['nodeAfter']?Jt(_0x40e480['start']['nodeAfter'],_0x750902):_0x40e480;}function Jt(_0x275e1e,_0x5a14a6){const _0x18251f=_0x5a14a6['schema']['isObject'](_0x275e1e)||_0x5a14a6['schema']['isSelectable'](_0x275e1e);return _0x5a14a6['createRange'](_0x5a14a6['createPositionAt'](_0x275e1e,'before'),_0x18251f?_0x5a14a6['createPositionAfter'](_0x275e1e):_0x5a14a6['createPositionAt'](_0x275e1e,'end'));}function Ht(_0x3fd6db,_0x4b62c0,_0x2ae306,_0x1f5c4f){return!!qt(_0x3fd6db,_0x4b62c0)&&_0x2ae306['end']['isEqual'](_0x1f5c4f['start']);}function qt(_0x38f0f6,_0xb1c3e6){if(!_0x38f0f6['_isDataLoaded']||!_0xb1c3e6['_isDataLoaded'])return!0x1;const _0x20711b=new Set(Object['keys'](_0x38f0f6['attributes'])),_0x30e7f6=new Set(Object['keys'](_0xb1c3e6['attributes']));if(_0x20711b['delete']('groupId'),_0x30e7f6['delete']('groupId'),0x0==_0x20711b['size']&&0x0==_0x30e7f6['size'])return!0x0;if(_0x20711b['size']!=_0x30e7f6['size'])return!0x1;const _0x46d655={..._0x38f0f6['attributes']},_0x1d2bea={..._0xb1c3e6['attributes']};return delete _0x46d655['groupId'],delete _0x1d2bea['groupId'],JSON['stringify'](_0x46d655)==JSON['stringify'](_0x1d2bea);}function zt(_0xf18c9b,_0x23b5c9){const _0x2e95f1=Kt(_0xf18c9b['attributes']),_0x1a3aeb=Kt(_0x23b5c9);if(!_0xf18c9b['_isDataLoaded'])return!0x1;for(const _0x92bc67 of Object['keys'](_0x1a3aeb))if(!_0x2e7dfd(_0x2e95f1[_0x92bc67],_0x1a3aeb[_0x92bc67]))return!0x1;return!0x0;}function Kt(_0x2fa343){const _0x3564d6=Object['assign']({},_0x2fa343);return delete _0x3564d6['skipNestingCheck'],delete _0x3564d6['tablePasteChainId'],_0x3564d6;}class ge extends/* #__PURE__ -- @preserve */
25
+ _0x29f64b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x44252a,_0x54498a,_0x4990ae,_0x43bccb){super(),this['model']=_0x54498a,this['view']=_0x4990ae,this['commentThreadController']=_0x43bccb,this['_editor']=_0x44252a,this['_acceptCommand']=_0x44252a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x44252a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x23a5f5,_0x2ff3e2)=>_0x23a5f5||_0x2ff3e2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1456a7=>_0x1456a7&&this['_editor']['model']['canEditAt'](_0x54498a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x267fa3=>_0x267fa3&&this['_editor']['model']['canEditAt'](_0x54498a['getRanges']())),this['_pendingAction']=null,_0x4990ae['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4990ae,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4990ae,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4990ae,'change:isDirty',()=>{_0x4990ae['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 _0x574619=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x574619);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x2cb6df{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4d817e,_0x207c1b,_0x5eef2d,_0x428a7e){super(_0x4d817e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x354581(_0x4d817e,o(_0x4d817e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x207c1b['authoredAt']),this['bind']('authoredAt')['to'](_0x207c1b),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',_0x207c1b,'authoredAt',this,'descriptionParts',(_0x159120,_0x2c13ba,_0x3dc28b)=>{const _0x7aa853=_0x3dc28b['map'](_0x56bcbf=>ns(_0x56bcbf['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x159120-0x1,_0x207c1b['author']['name'],_0x2c13ba?_0x428a7e['formatDateTime'](_0x2c13ba):'',new DOMParser()['parseFromString'](_0x7aa853,'text/html')['body']['textContent']]);}),this['focusables']=new _0x449b37(),this['focusTracker']=new _0x133ea1(),this['keystrokes']=new _0x823bdb(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x29ee54=>_0x29ee54['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x207c1b,this['_localUser']=_0x5eef2d,this['_config']=_0x428a7e,_0x428a7e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x7aee60(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x20484b}=this['_config'];this['commentsListView']=new _0x20484b(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',_0x270bbb=>_0x270bbb+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2005f1,_0x1b395f)=>_0x2005f1||!!_0x1b395f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x485080}=this['_config'],_0x48a74f=new _0x485080(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4343be=_0x48a74f['commentInputView'];return _0x48a74f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4343be,'value',(_0x28b60d,_0x5877d8,_0x33cbb5)=>!!_0x33cbb5||_0x28b60d&&!_0x5877d8),_0x4343be['on']('submit',(_0x51ebe5,_0x278678)=>{this['fire']('addComment',_0x278678),_0x4343be['editor']['setData']('');}),_0x4343be['on']('cancel',()=>this['focus']()),_0x4343be['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x48a74f;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x3edd98,_0x4eb2a7,_0x235d11,_0x319259){super(_0x3edd98,_0x4eb2a7,_0x235d11,_0x319259),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2e0072=>_0x2e0072&&_0x2e0072[0x0]?_0x2e0072[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x19a0a7,_0x455a3e)=>{let _0xb35758='';for(const _0x5ba3e9 of _0x19a0a7)_0xb35758+='<p>'+ns(_0x5ba3e9['content'],_0x5ba3e9['color'])+'</p>';return _0x455a3e?_0xb35758:ti(_0xb35758,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x319259['SuggestionView'](_0x3edd98,_0x4eb2a7,{'formatDateTime':_0x319259['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 _0x17ecba=this['bindTemplate'],_0x3319fc=[this['suggestionView']];return this['commentsListView']&&_0x3319fc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3319fc['push'](this['commentThreadInputView']),_0x3319fc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x17ecba['if']('isActive','ck-suggestion-wrapper--active'),_0x17ecba['to']('type',_0x3d3e81=>'ck-suggestion-'+_0x3d3e81),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':_0x17ecba['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3319fc};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ue extends _0x2cb6df{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5098fe,_0x25655e,_0x19a790){super(_0x5098fe),this['_model']=_0x25655e,this['_config']=_0x19a790,this['set']('description',''),this['bind']('authoredAt')['to'](_0x25655e),this['acceptButton']=this['_createButton'](o(_0x5098fe,'Accept\x20suggestion'),_0xd426bb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5098fe,'Discard\x20suggestion'),_0xd426bb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1e2953(_0x5098fe,_0x25655e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x449b37([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x133ea1(),this['keystrokes']=new _0x823bdb(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x46754c=>_0x46754c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xd34778=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xd34778['innerHTML']=this['description'],this['on']('change:description',(_0x4f19b1,_0x1111c2,_0x3961bb)=>{_0xd34778['innerHTML']=_0x3961bb;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xb66b4e=this['bindTemplate'],_0x263079=[{'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':_0xb66b4e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xb66b4e['to']('authoredAt',_0x5d5541=>this['_config']['formatDateTime'](_0x5d5541))}]}]},{'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']&&_0x263079['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':_0x263079}]};}['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'](_0x4f16fb,_0x429134,_0x49b9ac,_0x141537,_0xea3518){const _0x2847aa=new _0x4bf5b0(this['locale']);return _0x2847aa['set']({'label':_0x4f16fb,'icon':_0x429134,'tooltip':!0x0,'tooltipPosition':_0xea3518}),_0x2847aa['extendTemplate']({'attributes':{'class':_0x49b9ac}}),_0x2847aa['on']('execute',()=>{this['fire'](_0x141537,this['_model']['id']);}),_0x2847aa;}['_setupKeyboardNavigation'](){const _0x373aa2=this['element'];this['keystrokes']['listenTo'](_0x373aa2);for(const _0x4c133a of this['focusables'])this['focusTracker']['add'](_0x4c133a['element']),this['keystrokes']['listenTo'](_0x4c133a['element']);this['keystrokes']['set']('enter',(_0x1c17d4,_0x5e9db3)=>{_0x373aa2===_0x1c17d4['target']&&(this['focusCycler']['focusFirst'](),_0x5e9db3());}),this['keystrokes']['set']('esc',(_0x533667,_0x108e0d)=>{_0x373aa2!==_0x533667['target']&&(this['focus'](),_0x108e0d());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x1f739f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3dcaf7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x455459){super(_0x455459),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1f4a79=this['editor']['config'];_0x1f4a79['define']('trackChanges.SuggestionThreadView',de),_0x1f4a79['define']('trackChanges.SuggestionView',ue),_0x1f4a79['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1f4a79['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4c80dc,_0x214e9a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x38c55a,_0x11421c]of this['_handleControllerBuffer']){const _0x26b0cc=this['_suggestionToController']['has'](_0x38c55a);_0x26b0cc||_0x11421c?_0x26b0cc&&_0x11421c&&this['_destroyController'](_0x38c55a):this['_initializeController'](_0x38c55a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4c80dc,_0x214e9a);}['init'](){const _0xbafe6c=this['editor'],_0x10aa1e=_0xbafe6c['plugins']['get']('TrackChangesEditing'),_0x4687f9=_0xbafe6c['plugins']['get']('Annotations'),_0x2bc17c=_0xbafe6c['plugins']['get']('EditorAnnotations'),_0x1649e2=_0xbafe6c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2bc17c['addSourceCollector'](()=>{const _0x3126a4=[];for(const [_0x250cd6,_0x37bb7d]of Array['from'](this['_suggestionToController'])){const _0x2205ad=_0x250cd6['getAllAdjacentSuggestions'](),_0xe8c612=[];for(const _0x3962cd of _0x2205ad){if(!_0x3962cd['isInContent'])continue;if(_0x3962cd['isMultiRange']){_0xe8c612['push'](..._0x3962cd['getRanges']());continue;}const _0x3abf32=_0x3962cd['getFirstRange']();if(_0xe8c612['length']>0x0){const _0x2f8caa=_0xe8c612[0x0]['getJoined'](_0x3abf32);if(_0x2f8caa){_0xe8c612[0x0]=_0x2f8caa;continue;}}_0xe8c612['push'](_0x3abf32);}_0x3126a4['push']([_0x37bb7d['view'],_0xe8c612]);}return _0x3126a4;}),this['listenTo'](_0x10aa1e,'suggestionLoaded',(_0xddc5e,_0x338faa)=>{this['listenTo'](_0x338faa,'change:previous',(_0x5e1f2a,_0x1f5f9f,_0x243de2,_0x286dc2)=>{_0x338faa['isInContent']&&(null==_0x243de2?(this['_updateController'](_0x286dc2['head']),this['_handleSuggestionControllerDelayed'](_0x338faa,!0x1)):(this['_updateController'](_0x243de2['head']),null==_0x286dc2&&this['_handleSuggestionControllerDelayed'](_0x338faa,!0x0)));}),null!==_0x338faa['previous']?this['_updateController'](_0x338faa['head']):this['_handleSuggestionControllerDelayed'](_0x338faa,!0x1);}),this['listenTo'](_0x10aa1e,'suggestionUnloaded',(_0x55b9e0,_0x3b528c,_0x416e93)=>{this['stopListening'](_0x3b528c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3b528c),this['_suggestionToController']['has'](_0x3b528c)&&this['_destroyController'](_0x3b528c),_0x416e93&&this['_updateController'](_0x416e93['head']);}),this['listenTo'](_0x10aa1e,'suggestionChanged',(_0x1f20e0,_0x39f1db)=>{this['_updateController'](_0x39f1db);}),this['listenTo'](_0x4687f9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1649e2,'addComment',(_0x1a0b7d,{threadId:_0x48c3d8,isFromAdapter:_0x3906cf})=>{if(_0x3906cf||!_0x10aa1e['hasSuggestion'](_0x48c3d8))return;const _0x3d8f87=_0x10aa1e['getSuggestion'](_0x48c3d8);this['_suggestionToController']['get'](_0x3d8f87)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48d593=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x54bd4b;for(const _0x1a198f in _0x48d593){const _0x31951a=_0x1a198f,_0x27836c=_0x48d593[_0x31951a];if('trackChangesLicenseKeyValid'==_0x27836c||'trackChangesLicenseKeyInvalid'==_0x27836c||'trackChangesLicenseKeyExpired'==_0x27836c||'trackChangesLicenseKeyDomainLimit'==_0x27836c||'trackChangesLicenseKeyNotAllowed'==_0x27836c||'trackChangesLicenseKeyEvaluationLimit'==_0x27836c||'trackChangesLicenseKeyTrialLimit'==_0x27836c||'trackChangesLicenseKeyDevelopmentLimit'==_0x27836c||'trackChangesLicenseKeyUsageLimit'==_0x27836c){delete _0x48d593[_0x31951a],_0x54bd4b=_0x27836c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x54bd4b&&_0x48d593['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x54bd4b&&_0x48d593['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x54bd4b&&_0x48d593['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x54bd4b&&_0x48d593['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x54bd4b&&_0x48d593['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x54bd4b&&_0x48d593['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x54bd4b&&_0x48d593['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x54bd4b&&_0x48d593['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x136166=this['editor']['plugins']['get']('Annotations'),_0x11ad4b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xda9426=Array['from'](_0x136166['activeAnnotations'],_0x8db67e=>_0x8db67e['innerView'])['filter'](_0x1a5fff=>this['_viewToController']['has'](_0x1a5fff)),_0x3067ac=[];for(const _0x23e760 of _0xda9426){const _0x125987=this['_viewToController']['get'](_0x23e760)['model']['getAllAdjacentSuggestions']();_0x3067ac['push'](..._0x125987['reduce']((_0x173c87,_0x37dbb2)=>[..._0x173c87,..._0x37dbb2['getMarkerNames']()],[]));}_0x11ad4b['activeMarkers']=_0x3067ac;}['_addUIComponentsToFactory'](){const _0xf07822=this['editor'],_0x27a55e=_0xf07822['locale'],_0x12ae3f=o(_0x27a55e,'Track\x20changes'),_0x15cabc=new _0x5b8f52([{'type':'switchbutton','model':new _0x3948a5({'withText':!0x0,'isToggleable':!0x0,'label':_0x12ae3f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3948a5({'withText':!0x0,'label':o(_0x27a55e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3948a5({'withText':!0x0,'label':o(_0x27a55e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3948a5({'withText':!0x0,'label':o(_0x27a55e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3948a5({'withText':!0x0,'label':o(_0x27a55e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xcfc8e1 of _0x15cabc)if(pe(_0xcfc8e1)){const _0x28242e=_0xf07822['commands']['get'](_0xcfc8e1['model']['commandName']);_0xcfc8e1['model']['bind']('isOn','isEnabled')['to'](_0x28242e,'value','isEnabled');}_0xf07822['ui']['componentFactory']['add']('trackChanges',_0x5c5ced=>this['_createToolbarButton'](_0x5c5ced,_0x15cabc,_0x12ae3f)),_0xf07822['ui']['componentFactory']['add']('menuBar:trackChanges',_0xd0c4aa=>this['_createMenuBarMenu'](_0xd0c4aa,_0x15cabc,_0x12ae3f));}['_createToolbarButton'](_0x2bcfc8,_0x412194,_0xd09648){const _0x80c3fd=_0xc304a4(_0x2bcfc8,_0x1b5c51),_0x32aebb=this['editor']['commands']['get']('trackChanges');_0x80c3fd['buttonView']['set']({'tooltip':_0xd09648,'label':_0xd09648,'icon':Ce}),_0x80c3fd['buttonView']['bind']('isOn')['to'](_0x32aebb,'value'),_0x80c3fd['buttonView']['on']('execute',()=>{_0x32aebb['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x80c3fd,_0x412194,{'role':'menu'});const _0x5a9a35=[];for(const _0xfe324a of _0x412194)pe(_0xfe324a)&&_0x5a9a35['push'](this['editor']['commands']['get'](_0xfe324a['model']['commandName']));const _0x231aa6=_0x80c3fd['buttonView'];return _0x231aa6['actionView']['unbind']('isEnabled'),_0x231aa6['arrowView']['unbind']('isEnabled'),_0x231aa6['actionView']['bind']('isEnabled')['to'](_0x32aebb,'isEnabled'),_0x231aa6['arrowView']['bind']('isEnabled')['toMany'](_0x5a9a35,'isEnabled',(..._0x3de490)=>_0x3de490['some'](_0x734985=>_0x734985)),_0x80c3fd['on']('execute',_0x182efc=>{this['editor']['execute'](_0x182efc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x80c3fd;}['_createMenuBarMenu'](_0xba089,_0x1c7c7e,_0xcfd070){const _0x129325=new _0x598971(_0xba089),_0x5a3d7a=this['editor']['commands']['get']('trackChanges');_0x129325['buttonView']['set']({'label':_0xcfd070,'icon':Ce});const _0x509235=new _0x42d103(_0xba089);for(const _0x1a9b6d of _0x1c7c7e){if('separator'==_0x1a9b6d['type']){_0x509235['items']['add'](new _0x499831(_0xba089));continue;}const _0x5097bd=new _0x3abd64(_0xba089,_0x129325),_0x560f7d=new _0x3bdccb(_0xba089),_0x19015a=_0x1a9b6d['model'];_0x560f7d['bind'](...Object['keys'](_0x19015a))['to'](_0x19015a),_0x560f7d['delegate']('execute')['to'](_0x129325),_0x560f7d['on']('execute',()=>{this['editor']['execute'](_0x19015a['commandName']),this['editor']['editing']['view']['focus']();}),_0x5097bd['children']['add'](_0x560f7d),_0x509235['items']['add'](_0x5097bd);}return _0x129325['bind']('isEnabled')['to'](_0x5a3d7a,'isEnabled'),_0x129325['panelView']['children']['add'](_0x509235),_0x129325;}['_initializeController'](_0x497dcf){const _0x158bcd=this['editor'],_0x1118c8=_0x158bcd['config'],_0xd5e252=_0x158bcd['plugins']['get']('Annotations'),_0x427eea=_0x158bcd['plugins']['get']('CommentsRepository'),_0x1598b3=_0x158bcd['plugins']['get']('EditorAnnotations'),_0x5127fc=_0x158bcd['plugins']['get'](_0x3dcaf7)['me'],_0x50c279=_0x1118c8['get']('trackChanges')['SuggestionThreadView'],_0x4f8d55=_0x1118c8['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x18ebca,CommentThreadInputView:_0x54b6df}=_0x158bcd['plugins']['get']('CommentsUI');let _0x32e977,_0x516db0,_0x856ea3;this['_annotationViews']['has'](_0x497dcf['id'])?(_0x516db0=this['_annotationViews']['get'](_0x497dcf['id']),_0x32e977=_0x516db0['mainView']):(_0x32e977=new _0x50c279(_0x158bcd['locale'],_0x497dcf,_0x5127fc,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1118c8['get']('comments.editorConfig'),'licenseKey':_0x1118c8['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1118c8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1118c8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1118c8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4e831d(_0x1118c8['get']('locale')),'CommentView':_0x1118c8['get']('comments')['CommentView'],'CommentsListView':_0x18ebca,'CommentThreadInputView':_0x54b6df,'SuggestionView':_0x4f8d55}),_0x32e977['suggestionView']['acceptButton']['on']('execute',()=>{_0x158bcd['editing']['view']['focus']();}),_0x32e977['suggestionView']['discardButton']['on']('execute',()=>{_0x158bcd['editing']['view']['focus']();}),_0x516db0=_0xd5e252['createAnnotationView'](this['editor']['locale'],_0x32e977),_0x516db0['bind']('isDirty')['to'](_0x32e977,'isDirty'),_0x516db0['bind']('length')['to'](_0x32e977),_0x516db0['bind']('type')['to'](_0x32e977,'type',_0x118418=>'suggestion-'+_0x118418),_0x32e977['on']('escape',()=>{_0x856ea3['fire']('escape');}),this['_annotationViews']['set'](_0x497dcf['id'],_0x516db0));const _0x52f8c0=_0x427eea['createCommentThreadController'](_0x497dcf['commentThread'],_0x32e977),_0xf29b60=new ge(_0x158bcd,_0x497dcf,_0x32e977,_0x52f8c0),_0x143a82=_0x497dcf['getAllAdjacentSuggestions']()['filter'](_0x571b2f=>_0x571b2f['isInContent']);_0x32e977['descriptionParts']=_0x158bcd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x143a82),this['_suggestionToController']['set'](_0x497dcf,_0xf29b60),this['_viewToController']['set'](_0x32e977,_0xf29b60),_0x856ea3=_0xd5e252['createAnnotation']({'view':_0x516db0,'target':()=>{const _0x5d38f9=[],_0x3dbb94=_0x497dcf['getAllAdjacentSuggestions']()['filter'](_0x1ffcea=>_0x1ffcea['isInContent']);for(const _0x4378ae of _0x3dbb94)_0x5d38f9['push'](..._0x4378ae['getMarkers']());return _0x3c74c6(_0x158bcd['editing'],_0x5d38f9);},'type':()=>'suggestion-'+_0xf29b60['view']['type']}),_0x427eea['_bindAnnotationToEditors'](_0x32e977,_0x856ea3),_0xd5e252['add'](_0x856ea3),_0x1598b3['registerAnnotation'](_0x856ea3);}['_destroyController'](_0x2c95df){const _0x355bbd=this['editor']['plugins']['get']('CommentsRepository'),_0x14857=this['editor']['plugins']['get']('Annotations'),_0x19e4df=this['_suggestionToController']['get'](_0x2c95df),_0x535613=_0x19e4df['view'],_0x5d0117=_0x14857['getByInnerView'](_0x535613);_0x355bbd['_unbindEditors'](_0x535613),_0x5d0117&&_0x14857['remove'](_0x5d0117),this['_suggestionToController']['delete'](_0x2c95df),this['_viewToController']['delete'](_0x535613),_0x19e4df['destroy']();}['_updateController'](_0x2e2512){if(!_0x2e2512['isInContent']||!this['_suggestionToController']['has'](_0x2e2512))return;const _0x3a16ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbb5e18=this['_suggestionToController']['get'](_0x2e2512),_0x4aea7b=_0x2e2512['getAllAdjacentSuggestions']();_0xbb5e18['view']['descriptionParts']=_0x3a16ea['descriptionFactory']['getDescriptions'](_0x4aea7b);}['destroy'](){for(const _0x27528a of this['_suggestionToController']['keys']())this['_destroyController'](_0x27528a);for(const _0x57b886 of this['_annotationViews']['values']())_0x57b886['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x58cff7){return'model'in _0x58cff7;}class k extends _0x1f739f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x18ed54){this['editor']['plugins']['get'](p)['adapter']=_0x18ed54;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1f87fa){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1f87fa);}['getSuggestions']({skipNotAttached:_0x28de6f=!0x1,toJSON:_0x31ab08=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x28de6f,'toJSON':_0x31ab08});}['getSuggestion'](_0x2d35fb){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2d35fb);}}const w=['Pagination'];class T extends _0x1f739f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4d7932=this['editor'];if(_0x4d7932['config']['define']('trackChangesData.editorCreator',_0x18a82c=>{const _0x148802=_0x4d7932['model']['document']['getRootNames']()['reduce']((_0x3faf99,_0x506089)=>(_0x3faf99[_0x506089]='',_0x3faf99),{});return _0x4d7932['constructor']['create'](_0x148802,_0x18a82c);}),'function'!=typeof _0x4d7932['config']['get']('trackChangesData')['editorCreator'])throw new _0x243768('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x35891f){return N(this['editor'],!0x0,_0x35891f);}['getDataWithDiscardedSuggestions'](_0x4e4ba3){return N(this['editor'],!0x1,_0x4e4ba3);}}class D extends _0x1f739f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a12eb){function _0x17eedb(_0x4241e3){return _0x4241e3['map'](_0x1f3cf3=>String['fromCharCode'](_0x1f3cf3))['join']('');}super(_0x3a12eb),this['result']='end',_0x3a12eb[_0x17eedb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17eedb([0x76,0x69,0x65,0x77])][_0x17eedb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17eedb([0x61,0x75,0x74,0x6f]),_0x3a12eb[_0x17eedb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x17eedb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17eedb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x17eedb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x17eedb([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x330839){return void 0x0!==_0x330839['getRootsAttributes'];}async function N(_0x62c67c,_0x1b0a9e,_0x310164){const _0x36ebf4=_0x3f089f(_0x62c67c,w);_0x36ebf4['plugins']['push'](p,D),_0x36ebf4['rootsAttributes']=v(_0x62c67c)?_0x62c67c['getRootsAttributes']():void 0x0;const _0x1e7c44=document['createDocumentFragment'](),_0x1b7568=_0x62c67c['config']['get']('trackChangesData')['editorCreator'],_0xab1a0b=await _0x1b7568(_0x36ebf4,()=>function(_0x2cdde3){const _0x48a7f1=document['createElement']('div');return _0x2cdde3['appendChild'](_0x48a7f1),_0x48a7f1;}(_0x1e7c44));!function(_0x547615,_0x39f00b){const _0x37819e=_0x547615['model']['document']['getRootNames']()['reduce']((_0x17f1ce,_0x3a9ba3)=>(_0x17f1ce[_0x3a9ba3]=_0x547615['data']['get']({'rootName':_0x3a9ba3}),_0x17f1ce),{}),_0x4e71ee=_0x547615['plugins']['get']('Users')['users']['map'](_0x170426=>({'id':_0x170426['id'],'name':_0x170426['name']})),_0x1b7777=_0x547615['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x36b9d2=_0x547615['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x564a3e=_0x39f00b['plugins']['get']('Users'),_0x44b547=_0x39f00b['plugins']['get']('TrackChangesEditing'),_0xe931e0=_0x39f00b['plugins']['get']('CommentsRepository');for(const _0x453996 of _0xe931e0['getCommentThreads']())_0x453996['remove']();for(const _0x36bcda of _0x4e71ee)_0x564a3e['getUser'](_0x36bcda['id'])||_0x564a3e['addUser'](_0x36bcda);_0x564a3e['me']||_0x564a3e['useAnonymousUser']();for(const _0x1e7f4f of _0x36b9d2)_0xe931e0['addCommentThread'](_0x1e7f4f);for(const _0x54abf2 of _0x1b7777)_0x44b547['addSuggestionData'](_0x54abf2);_0x39f00b['data']['set'](_0x37819e);}(_0x62c67c,_0xab1a0b),_0xab1a0b['execute'](_0x1b0a9e?'acceptAllSuggestions':'discardAllSuggestions');const _0x1e9da0=v(_0xab1a0b)?_0xab1a0b['getFullData'](_0x310164):_0xab1a0b['data']['get'](_0x310164);return await _0xab1a0b['destroy'](),_0x1e9da0;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};