@ckeditor/ckeditor5-track-changes 42.0.1-alpha.2 → 42.0.1-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x5ed9bd,PendingActions as _0x8f02a5,icons as _0x40529a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x39a7b6,ObservableMixin as _0x4fcb90,uid as _0x51081b,insertToPriorityArray as _0x18dde6,priorities as _0x278b8c,logWarning as _0x7e7fb,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3b0c52,View as _0xa792ac,ButtonView as _0x3071f5,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5144de,hashObject as _0x434c54,surroundingMarkersDetector as _0x5aa8bc,trimHtml as _0x183dd9,UserView as _0x2bea37,getDateTimeFormatter as _0x26a677,getAllMarkersDomElementsSorted as _0x135c5c,sanitizeEditorConfig as _0x135372}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4552b8,LiveRange as _0x4022b5,LivePosition as _0x5b3ae2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x483a9d,toWidget as _0x3ff097}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x7c9ba0,set as _0xdfd286,isEqual as _0x554b56,unset as _0x4e3712,omit as Bt}from'lodash-es';import{Delete as _0x245170,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x190152,ShiftEnter as _0x433e09}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x4e133a,_0x24b4d6){super(_0x4e133a),this['_enabledCommands']=_0x24b4d6,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 _0x5bc736 of this['editor']['commands']['commands']())_0x5bc736['affectsData']&&!this['_enabledCommands']['has'](_0x5bc736)&&_0x5bc736['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x358f96 of this['editor']['commands']['commands']())_0x358f96['affectsData']&&!this['_enabledCommands']['has'](_0x358f96)&&_0x358f96['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x13c0d5,_0x12cca2){super(_0x13c0d5),this['_suggestions']=_0x12cca2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xe6727c){const _0x3f61a1=this['_suggestions']['get'](_0xe6727c);if(!_0x3f61a1)throw new _0x39a7b6('track-changes-accept-suggestion-not-found',this);const _0x2940c2=_0x3f61a1['getRanges']();this['editor']['model']['canEditAt'](_0x2940c2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3f61a1);}}class B extends ts{['_suggestions'];constructor(_0x763c2f,_0x536d92){super(_0x763c2f),this['_suggestions']=_0x536d92,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1426b2){const _0x3e6e79=this['_suggestions']['get'](_0x1426b2);if(!_0x3e6e79)throw new _0x39a7b6('track-changes-discard-suggestion-not-found',this);const _0x34610d=_0x3e6e79['getRanges']();this['editor']['model']['canEditAt'](_0x34610d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3e6e79);}}function ss(_0x3e4810){return _0x3e4810['sort']((_0x24dd7f,_0x272644)=>'deletion'==_0x24dd7f['type']&&'deletion'!=_0x272644['type']?-0x1:'deletion'!=_0x24dd7f['type']&&'deletion'==_0x272644['type']?0x1:0x0);}function to(_0x1a7212,_0x34ec56){let _0x1de75c,_0x1ab780=0x0;const _0x213294=[],_0x4c6a06=_0x34ec56['schema'];for(;_0x1ab780<_0x1a7212['length'];){const _0x72602b=_0x1a7212[_0x1ab780],_0x4f3534=_0x1a7212[_0x1ab780+0x1];_0x1de75c||(_0x1de75c=_0x34ec56['createPositionBefore'](_0x72602b)),co(_0x34ec56,_0x72602b,_0x4f3534)||(_0x213294['push'](_0x34ec56['createRange'](_0x1de75c,_0x4c6a06['isObject'](_0x72602b)?_0x34ec56['createPositionAfter'](_0x72602b):_0x34ec56['createPositionAt'](_0x72602b,'end'))),_0x1de75c=null),_0x1ab780++;}return _0x213294;}function co(_0x3bbcd7,_0x1eb3d1,_0x40f636){if(!_0x40f636)return!0x1;const _0x3e1437=_0x3bbcd7['createPositionAfter'](_0x1eb3d1),_0x32b587=_0x3bbcd7['createPositionBefore'](_0x40f636);return _0x3e1437['isTouching'](_0x32b587);}function rs(_0x2a77d5,_0x23673c,_0x2002b1){for(;_0x2002b1['length'];){const _0x3c2371=_0x2002b1['splice'](0x0,0x64);_0x2a77d5['change'](()=>{for(const _0x337ef4 of _0x3c2371)_0x337ef4['isInContent']&&_0x23673c['execute'](_0x337ef4['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x3c3687,_0x1a3b3e,_0x44c0f2){super(_0x3c3687),this['_command']=_0x1a3b3e,this['_suggestions']=_0x44c0f2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1cedce=Array['from'](this['_suggestions']['values']())['some'](_0x31252f=>_0x31252f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1cedce;}['execute'](){const _0x28df8c=ss(Array['from'](this['_suggestions']['values']()));for(const _0xf59e4e of _0x28df8c){const _0x377452=_0xf59e4e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x377452))return;}rs(this['editor']['model'],this['_command'],_0x28df8c);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x19ef49,_0x3761de,_0xbf3b67){super(_0x19ef49),this['_command']=_0x3761de,this['_suggestions']=_0xbf3b67,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x235c25=this['editor']['model']['document']['selection'],_0x24f32d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1c0f9e,_0x36f434){const _0x1207ea=Array['from'](_0x1c0f9e['getRanges']()),_0x531584=new Set();for(const _0x216540 of _0x36f434)if(_0x216540['isInContent']){for(const _0x4681a8 of _0x1207ea)for(const _0x61b816 of _0x216540['getRanges']())(_0x4681a8['isIntersecting'](_0x61b816)||_0x1c0f9e['isCollapsed']&&!_0x216540['isMultiRange']&&_0x216540['next']&&_0x61b816['end']['isTouching'](_0x4681a8['start']))&&_0x531584['add'](_0x216540);}return _0x531584;}(_0x235c25,_0x24f32d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x281fff=ss(Array['from'](this['_selectedSuggestions']));for(const _0xdd7f3c of _0x281fff){const _0x563103=_0xdd7f3c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x563103))return;}rs(this['editor']['model'],this['_command'],_0x281fff);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x4fcb90(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x167270,_0x20ef95){super(),this['id']=_0x20ef95['id'],this['type']=_0x20ef95['type'],this['subType']=_0x20ef95['subType']||null,this['author']=_0x20ef95['author'],this['creator']=_0x20ef95['creator']||_0x20ef95['author'],this['isExternal']=Boolean(_0x20ef95['attributes']&&_0x20ef95['attributes']['@external']),this['data']=null,this['_model']=_0x167270,this['_onAccept']=_0x20ef95['onAccept'],this['_onDiscard']=_0x20ef95['onDiscard'],this['_onAttributesChange']=_0x20ef95['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x20ef95['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 _0x39fe18=this;for(;_0x39fe18['previous'];)_0x39fe18=_0x39fe18['previous'];return _0x39fe18;}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'](_0xa58f40){this['_markerNames']['add'](_0xa58f40);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x36fe87=>this['_model']['markers']['get'](_0x36fe87))['filter'](_0x333f4a=>_0x333f4a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x382643=>{for(const _0x416f53 of this['getMarkers']())_0x382643['removeMarker'](_0x416f53);}),this['_markerNames']['clear']();}['removeMarker'](_0x2ac1b6){this['_model']['change'](_0x374b68=>{_0x374b68['removeMarker'](_0x2ac1b6);}),this['_markerNames']['delete'](_0x2ac1b6);}['addRange'](_0x307f76){const _0x2bc618='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2bc618),this['_model']['change'](_0x3441cd=>{_0x3441cd['addMarker'](_0x2bc618,{'range':_0x307f76,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x103970){for(const _0x290c61 of this['getRanges']())if(_0x290c61['isIntersecting'](_0x103970))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x24e9e5=>_0x24e9e5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x242bab,_0x20376e)=>[..._0x242bab,..._0x20376e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x56ee0d=this['getRanges']();if(0x1!=_0x56ee0d['length'])return null;const _0x518ba4=_0x56ee0d[0x0],_0x359be7=_0x518ba4['start']['nodeAfter'],_0x15547f=_0x518ba4['end']['nodeBefore'];return _0x359be7 instanceof _0x4552b8?_0x359be7!=_0x15547f?null:_0x359be7: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 _0x187285=[];let _0x11ee0a=this['head'];for(;_0x11ee0a;)_0x187285['push'](_0x11ee0a),_0x11ee0a=_0x11ee0a['next'];return _0x187285;}['setAttribute'](_0x429ec5,_0x55e41f){const _0x866bfa=_0x7c9ba0(this['attributes']);_0xdfd286(_0x866bfa,_0x429ec5,_0x55e41f),_0x554b56(_0x866bfa,this['attributes'])||(this['attributes']=_0x866bfa,this['_onAttributesChange'](_0x866bfa));}['removeAttribute'](_0x327c28){const _0x4ee085=_0x7c9ba0(this['attributes']);_0x4e3712(_0x4ee085,_0x327c28),_0x554b56(_0x4ee085,this['attributes'])||(this['attributes']=_0x4ee085,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 _0x51081b()['substr'](0x1,0x5);}}function o(_0x1bf77b,_0xd35300,_0x38cb5c){const t=_0x1bf77b['t'];switch(_0xd35300){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',_0x38cb5c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x38cb5c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x38cb5c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x38cb5c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x38cb5c);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',_0x38cb5c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x38cb5c);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',_0x38cb5c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x38cb5c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x38cb5c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x38cb5c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x38cb5c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x38cb5c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x38cb5c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x38cb5c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x38cb5c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x38cb5c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x38cb5c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x38cb5c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x38cb5c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x38cb5c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x38cb5c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x38cb5c);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'},_0x38cb5c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x38cb5c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x38cb5c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x38cb5c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x38cb5c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x38cb5c);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'},_0x38cb5c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x38cb5c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x38cb5c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x38cb5c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x38cb5c);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'},_0x38cb5c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x38cb5c);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'},_0x38cb5c);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'},_0x38cb5c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x38cb5c);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'},_0x38cb5c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x38cb5c);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'},_0x38cb5c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x38cb5c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x38cb5c);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x38cb5c);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x38cb5c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0xd35300;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1da32d,_0x7d6608){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1da32d,this['_locale']=_0x7d6608;}['getDescriptions'](_0x3fbe10){const _0x42b6c8=[],_0x11002d=new Set(),_0x1979ae=new Set();for(let _0x5300bf=0x0;_0x5300bf<_0x3fbe10['length'];_0x5300bf++){const _0x3c4ce9=_0x3fbe10[_0x5300bf];if(!_0x3c4ce9['isInContent'])continue;const _0x1dd0df=this['_handleCustomCallbackDescription'](_0x3c4ce9);if(_0x1dd0df){if(null!=_0x3c4ce9['subType']){if(_0x11002d['has'](_0x3c4ce9['subType']))continue;_0x11002d['add'](_0x3c4ce9['subType']);}_0x42b6c8['push'](_0x1dd0df);}else{if('attribute'!=_0x3c4ce9['type'])'insertion'!=_0x3c4ce9['type']&&'deletion'!=_0x3c4ce9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x42b6c8,_0x3c4ce9,_0x3fbe10[_0x5300bf+0x1]);else{const _0x1530c9=_0x3c4ce9['data']['key'];if(_0x1979ae['has'](_0x1530c9))continue;_0x1979ae['add'](_0x3c4ce9['data']['key']),_0x1530c9==m?this['_handleRenameSuggestionDescription'](_0x42b6c8,_0x3c4ce9):this['_handleAttributeSuggestionDescription'](_0x42b6c8,_0x3c4ce9);}}}return this['_resolveDescriptionItems'](_0x42b6c8);}['registerDescriptionCallback'](_0x471045){this['_customCallbacks']['push'](_0x471045);}['registerElementLabel'](_0x539039,_0x101525,_0x3ea3b8=_0x278b8c['normal']){'function'==typeof _0x539039?_0x18dde6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x539039,'label':_0x101525,'priority':_0x3ea3b8}):this['_itemLabels']['set'](_0x539039,_0x101525);}['registerAttributeLabel'](_0x4849c8,_0x5a5e31){this['_attributeLabels']['set'](_0x4849c8,_0x5a5e31);}['getItemLabel'](_0x15d74c,_0x36fc17=0x1){let _0x28f9d4;for(const _0x37f971 of this['_itemLabelsCallbacks'])if(_0x37f971['matchingCallback'](_0x15d74c)){_0x28f9d4=_0x37f971['label'];break;}return _0x28f9d4||(_0x28f9d4=this['_itemLabels']['get'](_0x15d74c['name'])),_0x28f9d4?_0x28f9d4(_0x36fc17):0x1!==_0x36fc17?_0x36fc17+'\x20'+_0x15d74c['name']+'s':''+_0x15d74c['name'];}['_addDescriptionItems'](_0x10dedf,_0x2d54ff){const _0xb4b93e=_0x2d54ff['getFirstRange']()['getWalker'](),_0x1765c9='insertion'==_0x2d54ff['type']?'add':'remove';for(const _0xe8dbed of _0xb4b93e){const _0x1e8ef5=_0xe8dbed['item'],_0x30a2b4=_0x10dedf[_0x10dedf['length']-0x1];if(_0x1e8ef5['is']('$textProxy'))_0x30a2b4&&_0x30a2b4['type']['indexOf']('Container')>-0x1&&_0x10dedf['pop'](),_0x30a2b4&&'text'==_0x30a2b4['type']?_0x30a2b4[_0x1765c9]+=_0x1e8ef5['data']:_0x10dedf['push']({'type':'text','add':'add'==_0x1765c9?_0x1e8ef5['data']:'','remove':'remove'==_0x1765c9?_0x1e8ef5['data']:''});else{if(this['_schema']['isObject'](_0x1e8ef5)){const _0x5d65eb=_0x1e8ef5;if(_0x30a2b4&&_0x30a2b4['type']['indexOf']('Container')>-0x1&&_0x10dedf['pop'](),'elementEnd'==_0xe8dbed['type'])continue;_0x30a2b4&&_0x30a2b4['type']==_0x1765c9+'Object'&&_0x30a2b4['element']['name']==_0x5d65eb['name']?_0x30a2b4['quantity']++:_0x10dedf['push']({'type':_0x1765c9+'Object','element':_0x5d65eb,'quantity':0x1}),_0xb4b93e['skip'](_0x2027db=>!('elementEnd'==_0x2027db['type']&&_0x2027db['item']==_0x1e8ef5));}else{if(this['_schema']['checkChild'](_0x1e8ef5,'$text')||_0x1e8ef5['is']('element','softBreak')){const _0x52d0cf=_0x1e8ef5;if('add'==_0x1765c9&&'elementStart'==_0xe8dbed['type']||'remove'==_0x1765c9&&'elementEnd'==_0xe8dbed['type'])continue;if(_0x30a2b4&&-0x1==_0x30a2b4['type']['indexOf']('Container')){'text'==_0x30a2b4['type']&&(_0x30a2b4[_0x1765c9]+='\x0a');continue;}let _0x50b112;if(_0x50b112='add'==_0x1765c9?_0x52d0cf['nextSibling']&&!this['_schema']['isObject'](_0x52d0cf['nextSibling'])?_0x52d0cf['nextSibling']:null:_0x52d0cf['previousSibling']&&!this['_schema']['isObject'](_0x52d0cf['previousSibling'])?_0x52d0cf['previousSibling']:null,_0x52d0cf['isEmpty']||_0x50b112&&_0x50b112['isEmpty']){const _0x1c7a45=_0x50b112&&_0x50b112['isEmpty']?_0x50b112:_0x52d0cf;_0x30a2b4&&_0x30a2b4['type']==_0x1765c9+'EmptyContainer'&&_0x30a2b4['element']['name']==_0x1c7a45['name']?_0x30a2b4['quantity']++:_0x10dedf['push']({'type':_0x1765c9+'EmptyContainer','element':_0x1c7a45,'quantity':0x1});}else _0x10dedf['push']({'type':_0x1765c9+'Container','element':_0x52d0cf});}}}}}['_resolveDescriptionItems'](_0x4c4ffd){const _0x29071f=this['_locale'],_0x512975=[],_0x559d70=[],_0x5ca422=[];for(const _0x5405e1 of _0x4c4ffd)switch(_0x5405e1['type']){case'text':if(_0x5405e1['add']=_0x5405e1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5405e1['remove']=_0x5405e1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5405e1['add']&&''!=_0x5405e1['remove']){_0x512975['push']({'type':'replace','content':o(_0x29071f,'REPLACE_TEXT',['\x22'+_0x5405e1['remove']+'\x22','\x22'+_0x5405e1['add']+'\x22'])});continue;}if(null!=_0x5405e1['add']['match'](/^ +$/)){_0x512975['push']({'type':'insertion','content':o(_0x29071f,'*Insert:*\x20%0',o(_0x29071f,'ELEMENT_SPACE',_0x5405e1['add']['length']))});continue;}if(null!=_0x5405e1['remove']['match'](/^ +$/)){_0x512975['push']({'type':'deletion','content':o(_0x29071f,'*Remove:*\x20%0',o(_0x29071f,'ELEMENT_SPACE',_0x5405e1['remove']['length']))});continue;}if(''!=_0x5405e1['add']){_0x512975['push']({'type':'insertion','content':o(_0x29071f,'*Insert:*\x20%0','\x22'+_0x5405e1['add']+'\x22')});continue;}_0x512975['push']({'type':'deletion','content':o(_0x29071f,'*Remove:*\x20%0','\x22'+_0x5405e1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x512975['push']({'type':'insertion','content':o(_0x29071f,'*Insert:*\x20%0',this['getItemLabel'](_0x5405e1['element'],_0x5405e1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x512975['push']({'type':'deletion','content':o(_0x29071f,'*Remove:*\x20%0',this['getItemLabel'](_0x5405e1['element'],_0x5405e1['quantity']))});continue;case'addContainer':_0x512975['push']({'type':'insertion','content':o(_0x29071f,'*Split:*\x20%0',this['getItemLabel'](_0x5405e1['element'],_0x5405e1['quantity']))});continue;case'removeContainer':_0x512975['push']({'type':'deletion','content':o(_0x29071f,'*Merge:*\x20%0',this['getItemLabel'](_0x5405e1['element'],_0x5405e1['quantity']))});continue;case'addFormat':_0x559d70['push'](_0x5405e1['key']);continue;case'removeFormat':_0x5ca422['push'](_0x5405e1['key']);continue;default:_0x512975['push'](_0x5405e1);}if(_0x559d70['length']){const _0xe26e42=_0x559d70['map'](_0xf599cf=>this['_attributeLabels']['has'](_0xf599cf)?this['_attributeLabels']['get'](_0xf599cf):_0xf599cf)['join'](',\x20');_0x512975['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xe26e42)});}if(_0x5ca422['length']){const _0x14cb60=_0x5ca422['map'](_0x46e990=>this['_attributeLabels']['has'](_0x46e990)?this['_attributeLabels']['get'](_0x46e990):_0x46e990)['join'](',\x20');_0x512975['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x14cb60)});}return _0x512975;}['_handleCustomCallbackDescription'](_0x179159){for(const _0x253d68 of this['_customCallbacks']){const _0x1b9ba7=_0x253d68(_0x179159);if(_0x1b9ba7&&'type'in _0x1b9ba7)return _0x1b9ba7;}}['_handleAttributeSuggestionDescription'](_0x4a1862,_0x5705b9){const _0x58e696=_0x5705b9['data'],_0x3035b3=void 0x0===_0x58e696['newValue']?'removeFormat':'addFormat';_0x4a1862['push']({'type':_0x3035b3,'key':_0x58e696['key']});}['_handleRenameSuggestionDescription'](_0x30bc7c,_0x41d919){_0x30bc7c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x41d919['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x11750e,_0x26d3fa,_0x1d987f){if(this['_addDescriptionItems'](_0x11750e,_0x26d3fa),_0x1d987f&&_0x1d987f['getFirstRange']()&&!_0x26d3fa['getFirstRange']()['end']['isEqual'](_0x1d987f['getFirstRange']()['start'])){const _0x576aea=_0x11750e[_0x11750e['length']-0x1],_0x5ca355='insertion'==_0x26d3fa['type']?'add':'remove';_0x576aea&&'text'==_0x576aea['type']&&(_0x576aea[_0x5ca355]+='\x0a');}}}class E extends _0x5ed9bd{['afterInit'](){const _0x46abb7=this['editor'],_0x4510cd=_0x46abb7['plugins']['get']('TrackChangesEditing');_0x46abb7['commands']['get']('showAIAssistant')&&_0x4510cd['enableCommand']('showAIAssistant');}}class V extends _0x5ed9bd{['afterInit'](){const _0x29a494=this['editor'],_0x18592=_0x29a494['locale'];if(!_0x29a494['plugins']['has']('AlignmentEditing'))return;const _0x57be5a=_0x29a494['plugins']['get']('TrackChangesEditing');_0x57be5a['enableDefaultAttributesIntegration']('alignment'),_0x57be5a['registerBlockAttribute']('alignment'),_0x57be5a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x18592,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ea6ca=this['editor'],_0x501696=_0x4ea6ca['locale'];_0x4ea6ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222604=>{if('formatBlock'!=_0x222604['type'])return;const {data:_0x4e539a}=_0x222604;if(_0x4e539a&&'alignment'==_0x4e539a['commandName']){const _0x5b4863=_0x4e539a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x501696,'*Format:*\x20%0',function(_0x5acc7e){switch(_0x5acc7e){case'left':return o(_0x501696,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x501696,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x501696,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x501696,'FORMAT_JUSTIFY_TEXT');}}(_0x5b4863))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5ed9bd{['afterInit'](){const _0x254f29=this['editor'],_0x32be64=_0x254f29['plugins']['get']('TrackChangesEditing'),_0x2a3831=_0x254f29['locale'];for(const _0x2f2e67 of ti){if(!_0x254f29['plugins']['has'](_0x2f2e67))continue;const _0x2c9784=_0x2f2e67['slice'](0x0,-0x7)['toLowerCase'](),_0x122987='FORMAT_'+_0x2c9784['toUpperCase']();_0x32be64['enableDefaultAttributesIntegration'](_0x2c9784),_0x32be64['registerInlineAttribute'](_0x2c9784),_0x32be64['descriptionFactory']['registerAttributeLabel'](_0x2c9784,o(_0x2a3831,_0x122987));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b3bb1=this['editor'],_0x186c3e=_0x4b3bb1['locale'],_0x1f8320=_0x4b3bb1['plugins']['get']('TrackChangesEditing');function _0x4199c8(_0x4aa822,_0x46740c){_0x1f8320['descriptionFactory']['registerDescriptionCallback'](_0x1d3ed1=>{if('formatInline'!=_0x1d3ed1['type'])return;const {data:_0x494da8}=_0x1d3ed1;return _0x494da8&&_0x494da8['commandName']===_0x4aa822?_0x494da8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x186c3e,'*Format:*\x20%0',_0x46740c)}:{'type':'format','content':o(_0x186c3e,'*Remove\x20format:*\x20%0',_0x46740c)}:void 0x0;});}_0x4199c8('bold',o(_0x186c3e,'FORMAT_BOLD')),_0x4199c8('italic',o(_0x186c3e,'FORMAT_ITALIC')),_0x4199c8('underline',o(_0x186c3e,'FORMAT_UNDERLINE')),_0x4199c8('code',o(_0x186c3e,'FORMAT_CODE')),_0x4199c8('strikethrough',o(_0x186c3e,'FORMAT_STRIKETHROUGH')),_0x4199c8('subscript',o(_0x186c3e,'FORMAT_SUBSCRIPT')),_0x4199c8('superscript',o(_0x186c3e,'FORMAT_SUPERSCRIPT'));}}class O extends _0x5ed9bd{['afterInit'](){const _0x42138b=this['editor'],_0x4e4cc1=_0x42138b['locale'];if(!_0x42138b['plugins']['has']('BlockQuoteEditing'))return;const _0x54d396=_0x42138b['plugins']['get']('TrackChangesEditing'),_0x56b183=this['editor']['commands']['get']('blockQuote');_0x54d396['enableCommand']('blockQuote',(_0xab408e,_0x8c55d1={})=>{const _0x558251=this['editor']['model']['document']['selection'],_0x53cd99=_0x8c55d1&&void 0x0!==_0x8c55d1['forceValue']?_0x8c55d1['forceValue']:!_0x56b183['value'];let _0xd18c58=[];if(_0x53cd99){const _0x1228f3=Array['from'](_0x558251['getSelectedBlocks']())['filter'](_0x5b264a=>oo(_0x5b264a)||function(_0x7f5f52,_0x22b62a){const _0x3ffead=_0x22b62a['checkChild'](_0x7f5f52['parent'],'blockQuote'),_0x5b3ebe=_0x22b62a['checkChild'](['$root','blockQuote'],_0x7f5f52);return _0x3ffead&&_0x5b3ebe;}(_0x5b264a,this['editor']['model']['schema']));_0xd18c58=to(_0x1228f3,_0x42138b['model']);}else{const _0x1bddcb=Array['from'](_0x558251['getSelectedBlocks']())['filter'](_0xccf05a=>oo(_0xccf05a));_0xd18c58=to(_0x1bddcb,_0x42138b['model']);}_0x42138b['model']['change'](()=>{for(const _0x593f40 of _0xd18c58)_0x54d396['markBlockFormat'](_0x593f40,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x53cd99}]});});}),_0x54d396['descriptionFactory']['registerDescriptionCallback'](_0x48788d=>{const {data:_0x52a8da}=_0x48788d;if(_0x52a8da&&'blockQuote'==_0x52a8da['commandName']){const _0x571e79=o(_0x4e4cc1,'ELEMENT_BLOCK_QUOTE');return _0x52a8da['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e4cc1,'*Set\x20format:*\x20%0',_0x571e79)}:{'type':'format','content':o(_0x4e4cc1,'*Remove\x20format:*\x20%0',_0x571e79)};}});}}function oo(_0x2ea017){return'blockQuote'==_0x2ea017['parent']['name'];}class G extends _0x5ed9bd{['afterInit'](){const _0x1fe70d=this['editor'];_0x1fe70d['plugins']['has']('CaseChange')&&(_0x1fe70d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1fe70d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1fe70d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x5ed9bd{['afterInit'](){const _0xb2d646=this['editor'];_0xb2d646['commands']['get']('ckbox')&&_0xb2d646['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5ed9bd{['afterInit'](){const _0xb004c5=this['editor'];if(!_0xb004c5['plugins']['has']('CodeBlock'))return;const _0x48968f=_0xb004c5['plugins']['get']('TrackChangesEditing'),_0x505ff9=_0xb004c5['locale'],_0x205765=_0xb004c5['config']['get']('codeBlock')['languages'],_0xcf2528=_0xb004c5['commands']['get']('codeBlock');_0x48968f['enableCommand']('indentCodeBlock'),_0x48968f['enableCommand']('outdentCodeBlock'),_0x48968f['enableCommand']('codeBlock',(_0x158286,_0x5981e0={})=>{const _0x5588a6=_0xb004c5['model'],_0x2c5d2c=_0xb004c5['model']['document']['selection'],_0x46ccb3=_0x5981e0&&void 0x0!==_0x5981e0['forceValue']?_0x5981e0['forceValue']:!_0xcf2528['value'];let _0x303ab2;_0x5981e0['language']||(_0x5981e0['language']=_0x205765[0x0]['language']),_0x303ab2=_0x46ccb3?Array['from'](_0x2c5d2c['getSelectedBlocks']())['filter'](_0x5a6eae=>eo(_0x5a6eae)||function(_0xe1a8f7,_0xa22a81){if(_0xe1a8f7['is']('rootElement')||_0xa22a81['isLimit'](_0xe1a8f7))return!0x1;return _0xa22a81['checkChild'](_0xe1a8f7['parent'],'codeBlock');}(_0x5a6eae,_0x5588a6['schema'])):Array['from'](_0x2c5d2c['getSelectedBlocks']())['filter'](_0x189436=>eo(_0x189436));const _0x321680=to(_0x303ab2,_0x5588a6);_0x5588a6['change'](()=>{for(const _0x5c232c of _0x321680)_0x48968f['markBlockFormat'](_0x5c232c,{'commandName':'codeBlock','commandParams':[{..._0x5981e0,'forceValue':_0x46ccb3}],'formatGroupId':'blockName'});});}),(_0x48968f['descriptionFactory']['registerElementLabel']('codeBlock',_0x55ec34=>o(_0x505ff9,'ELEMENT_CODE_BLOCK',_0x55ec34)),_0x48968f['descriptionFactory']['registerDescriptionCallback'](_0x4cd3dd=>{if('formatBlock'!=_0x4cd3dd['type'])return;const _0x5a12af=_0x505ff9['t'],{data:_0x2b1ebc}=_0x4cd3dd;if(!_0x2b1ebc||'codeBlock'!=_0x2b1ebc['commandName'])return;const _0x2579be=_0x2b1ebc['commandParams'][0x0]['language'],_0x26ed90=_0x5a12af(_0x205765['find'](_0xd684b5=>_0xd684b5['language']===_0x2579be)['label'])['toLowerCase']();return _0x2b1ebc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x505ff9,'*Set\x20format:*\x20%0',o(_0x505ff9,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x26ed90+')')}:{'type':'format','content':o(_0x505ff9,'*Remove\x20format:*\x20%0',o(_0x505ff9,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5aa6d4){return'codeBlock'==_0x5aa6d4['name'];}class H extends _0x5ed9bd{['afterInit'](){const _0x166374=this['editor'];if(!_0x166374['plugins']['has']('CommentsEditing'))return;_0x166374['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x13277f,_0xfbf612,_0x13ea4c){const _0x275f39=[];for(const _0x5d5867 of _0xfbf612['getItems']())_0x5d5867['hasAttribute'](_0x13277f)&&_0x275f39['push'](_0x13ea4c['createRangeOn'](_0x5d5867));return _0x275f39;}function _e(_0x3902d5,_0x44be8f,{showActiveMarker:_0x241fde=!0x0}={}){const _0x57c157=_0x3902d5['plugins']['get']('TrackChangesEditing');return(_0x2717f9,_0x5bd902,_0x2d46c9)=>{if(!_0x2d46c9['consumable']['test'](_0x5bd902['markerRange'],_0x2717f9['name']))return;const _0x29a6ad=_0x5bd902['markerRange']['getWalker'](),_0x1c9043=_0x5bd902['markerRange']['start'],_0x41069b=_0x3902d5['model']['schema'];let _0x52946e=null,_0x202028=null,_0x2825ef=!0x1,_0x461d69=!0x1;for(const _0xc21fdf of _0x29a6ad){const _0xc5e465=_0xc21fdf['item'];_0x2825ef=_0x2825ef||_0x41069b['isContent'](_0xc5e465);const _0x1024ae=_0x2d46c9['mapper']['toViewElement'](_0xc5e465);if(_0x1024ae&&_0x1024ae['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xc21fdf['type']&&(_0x41069b['isBlock'](_0xc5e465)&&!_0x41069b['isLimit'](_0xc5e465)&&(_0xc5e465['nextSibling']||_0x1c9043['isAtEnd']?_0x52946e&&_0x52946e['parent']==_0xc5e465||(_0x52946e=_0xc5e465,_0x5afd02(_0xc21fdf['previousPosition']),_0x461d69=!0x0):_0x202028=_0x202028||_0xc21fdf['previousPosition']));}function _0x5afd02(_0x5a30b2){const _0x81ca95=_0x2d46c9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x44be8f}),_0x1b6d22=_0x2d46c9['mapper']['toViewPosition'](_0x5a30b2);_0x241fde&&_0x57c157['activeMarkers']['includes'](_0x5bd902['markerName'])&&_0x2d46c9['writer']['addClass']('ck-suggestion-marker--active',_0x81ca95),_0x2d46c9['writer']['insert'](_0x1b6d22,_0x81ca95),_0x2d46c9['mapper']['bindElementToMarker'](_0x81ca95,_0x5bd902['markerName']);}_0x2825ef||_0x461d69||!_0x202028||_0x5afd02(_0x202028);};}class q extends _0x5ed9bd{static get['requires'](){return[_0x245170];}['init'](){const _0x91edc0=this['editor'],_0x3b0768=_0x91edc0['plugins']['get']('TrackChangesEditing');_0x3b0768['enableCommand']('delete');const _0x39a7ee=_0x91edc0['commands']['get']('deleteForward');_0x3b0768['enableCommand']('deleteForward',(_0x416a74,_0x998bcc={})=>{const _0x2ea95e=_0x91edc0['model']['createSelection'](_0x91edc0['model']['document']['selection']);_0x2ea95e['isCollapsed']&&_0x91edc0['model']['modifySelection'](_0x2ea95e,{'direction':'forward','unit':_0x998bcc['unit']});const _0x3a068d=_0x2ea95e['getFirstRange'](),_0x2c36e3=_0x4022b5['fromRange'](_0x3a068d);let _0x16dd85;_0x416a74(_0x998bcc),_0x16dd85='$graveyard'==_0x2c36e3['root']['rootName']?_0x91edc0['model']['createRange'](_0x3a068d['start']):_0x91edc0['model']['createRange'](_0x2c36e3['start'],_0x2c36e3['end']),_0x2c36e3['detach'](),_0x91edc0['model']['enqueueChange'](_0x39a7ee['buffer']['batch'],_0x320c99=>{_0x39a7ee['buffer']['lock'](),_0x320c99['setSelection'](_0x320c99['createRange'](_0x16dd85['end'])),_0x39a7ee['buffer']['unlock']();});}),_0x91edc0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x91edc0,'merge'),{'priority':'high'}),_0x91edc0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1d49dd,_0x14ca28,_0xc07dc1)=>{_0xc07dc1['options']['showSuggestionHighlights']&&_e(_0x91edc0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1d49dd,_0x14ca28,_0xc07dc1);},{'priority':'high'}),_0x91edc0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3c3dcc,_0x2c6889,_0x437025)=>{const _0x47e0eb=_0x437025['mapper']['markerNameToElements'](_0x2c6889['markerName']);if(_0x47e0eb){for(const _0x53e7d6 of _0x47e0eb)_0x53e7d6['is']('uiElement')&&(_0x437025['mapper']['unbindElementFromMarkerName'](_0x53e7d6,_0x2c6889['markerName']),_0x437025['writer']['remove'](_0x53e7d6));}},{'priority':'high'});}}class z extends _0x5ed9bd{['afterInit'](){const _0x97c4fe=this['editor'];if(!_0x97c4fe['plugins']['has']('ListEditing'))return;const _0x453a19=_0x97c4fe['locale'],_0x4ced95=_0x97c4fe['plugins']['get']('TrackChangesEditing'),_0x341bf9=_0x97c4fe['plugins']['has']('TodoListEditing'),_0x58b3a7=!!_0x97c4fe['config']['get']('list.multiBlock');function _0x23cb71(_0x4049be){return{'type':'format','content':''+o(_0x453a19,'*Set\x20format:*\x20%0',_0x4049be)};}function _0x317cff(_0x5187ae){return{'type':'format','content':''+o(_0x453a19,'*Remove\x20format:*\x20%0',_0x5187ae)};}_0x4ced95['enableDefaultAttributesIntegration']('numberedList'),_0x4ced95['enableDefaultAttributesIntegration']('bulletedList'),_0x4ced95['enableDefaultAttributesIntegration']('customNumberedList'),_0x4ced95['enableDefaultAttributesIntegration']('customBulletedList'),_0x4ced95['enableDefaultAttributesIntegration']('indentList'),_0x4ced95['enableDefaultAttributesIntegration']('outdentList'),_0x4ced95['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4ced95['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4ced95['registerBlockAttribute']('listItemId'),_0x4ced95['registerBlockAttribute']('listType'),_0x4ced95['registerBlockAttribute']('listIndent'),_0x58b3a7&&(_0x4ced95['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4ced95['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x341bf9&&(_0x4ced95['enableDefaultAttributesIntegration']('todoList'),_0x4ced95['enableDefaultAttributesIntegration']('checkTodoList'),_0x4ced95['registerBlockAttribute']('todoListChecked'),_0x4ced95['descriptionFactory']['registerDescriptionCallback'](_0x39940b=>{const {data:_0x823857}=_0x39940b;if(_0x823857&&'todoListChecked'==_0x823857['key'])return{'type':'format','content':_0x823857['newValue']?o(_0x453a19,'*Check\x20item*'):o(_0x453a19,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3079cb=>{if(_0x3079cb['batch']['isUndo'])return!0x1;let _0x40ffe4=!0x1;const _0x5acaa5=_0x4ced95['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46cc25=>'todoListChecked'===_0x4ced95['_getAttributeKey'](_0x46cc25));for(const _0x47bbe2 of _0x5acaa5){'todo'!=_0x47bbe2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4ced95['_findSuggestions'](_0x47bbe2['getFirstRange'](),'attribute')['find'](_0x369066=>'listType'===_0x4ced95['_getAttributeKey'](_0x369066['suggestion']))||(_0x3079cb['removeMarker'](_0x47bbe2['getFirstMarker']()),_0x40ffe4=!0x0));}return _0x40ffe4;})),_0x4ced95['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x453a19,'FORMAT_INDENT'));const _0x5eb27b={'type':'format','content':''};_0x4ced95['descriptionFactory']['registerDescriptionCallback'](_0x8f0042=>{const {data:_0x509ca3}=_0x8f0042;if(!_0x509ca3||'listType'!=_0x509ca3['key'])return;let _0x515f72=_0x8f0042['head'];for(;_0x515f72;){if(_0x515f72['data']&&(('listStyle'==_0x515f72['data']['key']||'listMarkerStyle'==_0x515f72['data']['key'])&&(_0x515f72['data']['newValue']&&'default'!=_0x515f72['data']['newValue']||'default'!=_0x515f72['data']['oldValue']&&!_0x509ca3['newValue'])||!_0x58b3a7&&_0x515f72['data']['key']==m))return _0x5eb27b;_0x515f72=_0x515f72['next'];}if(null==_0x509ca3['newValue'])switch(_0x509ca3['oldValue']){case'bulleted':return _0x317cff(o(_0x453a19,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x317cff(o(_0x453a19,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x317cff(o(_0x453a19,'ELEMENT_TODO_LIST'));}switch(_0x509ca3['newValue']){case'bulleted':return _0x23cb71(o(_0x453a19,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23cb71(o(_0x453a19,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23cb71(o(_0x453a19,'ELEMENT_TODO_LIST'));}}),_0x4ced95['descriptionFactory']['registerDescriptionCallback'](_0x18b7ee=>{const {data:_0x993a3e}=_0x18b7ee;if(_0x993a3e&&'listIndent'==_0x993a3e['key'])return null==_0x993a3e['newValue']||null==_0x993a3e['oldValue']&&0x0==_0x993a3e['newValue']?_0x5eb27b:void 0x0;}),_0x4ced95['descriptionFactory']['registerDescriptionCallback'](_0x4bc9e3=>{if('attribute'!=_0x4bc9e3['type'])return;const {data:_0x25ff67}=_0x4bc9e3;if(!_0x25ff67||'listItemId'!=_0x25ff67['key'])return;const _0x37cdb6=le(_0x4bc9e3);return'newValue'==_0x37cdb6?{'type':'format','content':o(_0x453a19,'*Merge:*\x20list\x20item')}:'oldValue'==_0x37cdb6?{'type':'format','content':o(_0x453a19,'*Split:*\x20list\x20item')}:_0x5eb27b;}),_0x97c4fe['model']['document']['registerPostFixer'](_0x59a43c=>this['listItemIdFixer'](_0x59a43c)),_0x97c4fe['model']['document']['registerPostFixer'](_0x119610=>this['noTrackChangesFixer'](_0x119610)),_0x97c4fe['model']['document']['registerPostFixer'](_0x31f536=>this['assureChains'](_0x31f536)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x36d0d7){if(_0x36d0d7['batch']['isUndo']||!_0x36d0d7['batch']['isLocal'])return!0x1;let _0x44f196=!0x1;const _0xa38e0b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3697ae=>_0x3697ae['data']&&'listItemId'==_0x3697ae['data']['key'])['filter'](_0x5427d5=>_0x5427d5['data']['newValue']&&_0x5427d5['data']['oldValue']);for(const _0x413593 of _0xa38e0b)le(_0x413593)||(_0x36d0d7['removeMarker'](_0x413593['getFirstMarker']()),_0x44f196=!0x0);return _0x44f196;}['noTrackChangesFixer'](_0xacdbc6){if(_0xacdbc6['batch']['isUndo']||!_0xacdbc6['batch']['isLocal'])return!0x1;const _0x1ec795=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1ec795['trackChangesCommand']['value'])return!0x1;let _0x2d0922=!0x1;const _0x2de029=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x165f0f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2d19ec=>'attribute'==_0x2d19ec['type'])['filter'](_0x3c3ba4=>_0x2de029['includes'](_0x3c3ba4['attributeKey']));if(0x0==_0x165f0f['length'])return _0x2d0922;for(const _0x1b20a1 of _0x165f0f){const _0x7b228f=_0x1ec795['_findSuggestions'](_0x1b20a1['range'],'attribute')['filter'](_0x58412b=>!_0x58412b['meta']['isNextTo'])['map'](_0x5ec932=>_0x5ec932['suggestion'])['filter'](_0x35fa41=>{const _0x1d373a=_0x1ec795['_getAttributeKey'](_0x35fa41);return _0x2de029['includes'](_0x1d373a);});if(_0x7b228f['length']){for(const _0x71ba7a of _0x7b228f)_0xacdbc6['removeMarker'](_0x71ba7a['getFirstMarker']());_0x2d0922=!0x0;}}return _0x2d0922;}['assureChains'](_0x4a43c0){if(_0x4a43c0['batch']['isUndo']||!_0x4a43c0['batch']['isLocal'])return!0x1;const _0x3918a3=this['editor']['plugins']['get']('TrackChangesEditing');let _0x114921=!0x1;const _0x58e644=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x141ebc of _0x3918a3['getSuggestions']({'skipNotAttached':!0x0})){const _0x16738d=_0x3918a3['_findSuggestions'](_0x141ebc['getFirstRange'](),'attribute')['map'](_0x1c85ba=>_0x1c85ba['suggestion'])['filter'](_0x57cb47=>_0x57cb47['data']&&_0x58e644['includes'](_0x57cb47['data']['key']));if(!_0x16738d['length'])continue;const _0x14a8a5=_0x16738d[0x0]['head']['attributes']['groupId'];if(!_0x16738d['every'](_0x5ac769=>_0x5ac769['attributes']['groupId']===_0x14a8a5)){for(const _0x442c57 of _0x16738d)_0x335b0b(_0x442c57,_0x14a8a5)&&(_0x114921=!0x0);}}return _0x114921;function _0x4341f7(_0x45f4ac,_0x342fbe){for(const _0x19d57f of _0x3918a3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x344128=>'attribute'==_0x344128['type']&&_0x344128['attributes']['groupId']==_0x45f4ac))_0x19d57f['setAttribute']('groupId',_0x342fbe);}function _0x335b0b(_0x5896ae,_0x4acd14){let _0x3a188a=_0x5896ae['head'],_0x4a8096=!0x1;for(;_0x3a188a;)_0x3a188a['attributes']['groupId']!=_0x4acd14&&(_0x4341f7(_0x3a188a['attributes']['groupId'],_0x4acd14),_0x3a188a['setAttribute']('groupId',_0x4acd14),_0x4a8096=!0x0),_0x3a188a=_0x3a188a['next'];return _0x4a8096;}}['_supportLegacySuggestions'](){const _0x5ad348=this['editor'],_0x33abcd=_0x5ad348['locale'],_0x5d3a81=_0x5ad348['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5d3a81['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3db6de,_0x19adac){const _0x56ca36=[];for(let _0x402802 of _0x3db6de)_0x402802['start']['nodeAfter']===_0x402802['end']['parent']&&(_0x402802=_0x5ad348['model']['createRange'](_0x5ad348['model']['createPositionAt'](_0x402802['start']['nodeAfter'],0x0))),_0x56ca36['push'](_0x402802);_0x5ad348['model']['change'](_0x1e92a6=>{const _0x5eb263=_0x5ad348['model']['document']['selection'],_0x5c4310=Array['from'](_0x5eb263['getRanges']())['map'](_0x2d0321=>_0x4022b5['fromRange'](_0x2d0321));_0x1e92a6['setSelection'](_0x56ca36),_0x5ad348['commands']['get'](_0x19adac['commandName'])['refresh'](),_0x19adac['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5ad348['execute'](_0x19adac['commandName'],..._0x19adac['commandParams']),_0x1e92a6['setSelection'](_0x5c4310);for(const _0x171f68 of _0x5c4310)_0x171f68['detach']();});}),_0x5d3a81['descriptionFactory']['registerElementLabel'](function(_0x368289){const _0x231613=!_0x5ad348['model']['schema']['isObject'](_0x368289),_0x5a886d=_0x368289['previousSibling'],_0x404357=_0x368289['nextSibling'],_0x5827e4=_0x368289['getAttribute']('listItemId'),_0x4c3ad3=!_0x5a886d||_0x5a886d['getAttribute']('listItemId')!==_0x5827e4,_0x65b4c9=!_0x404357||_0x404357['getAttribute']('listItemId')!==_0x5827e4;return _0x231613&&Boolean(_0x5827e4)&&_0x4c3ad3&&_0x65b4c9;},_0x15ae49=>o(_0x33abcd,'ELEMENT_LIST_ITEM',_0x15ae49));}['_registerLegacyDescription'](){const _0x1cc1f0=this['editor'],_0x208f66=_0x1cc1f0['locale'];function _0x55ff6(_0x25a11e){const _0x5c7404=_0x1cc1f0['commands']['get']('bulletedList')['value'],_0x2137cf=_0x1cc1f0['commands']['get']('numberedList')['value'];return'numberedList'===_0x25a11e?_0x5c7404:_0x2137cf;}_0x1cc1f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x82f4c6){if('formatBlock'!=_0x82f4c6['type'])return;const {data:_0x369822}=_0x82f4c6;if(!_0x369822)return;let _0xf4d3ac,_0xddef15,_0x277956,_0x1d5519;switch(_0x369822['commandName']){case'bulletedList':_0x277956=_0x369822['commandParams'][0x0]['forceValue'],_0x1d5519=_0x55ff6(_0x369822['commandName']),_0xf4d3ac=_0x277956?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d5519&&_0x1cc1f0['config']['get']('list.multiBlock')||(_0xf4d3ac='*Change\x20to:*\x20%0'),_0xddef15={'type':'format','content':o(_0x208f66,_0xf4d3ac,o(_0x208f66,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x277956=_0x369822['commandParams'][0x0]['forceValue'],_0x1d5519=_0x55ff6(_0x369822['commandName']),_0xf4d3ac=_0x277956?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d5519&&_0x1cc1f0['config']['get']('list.multiBlock')||(_0xf4d3ac='*Change\x20to:*\x20%0'),_0xddef15={'type':'format','content':o(_0x208f66,_0xf4d3ac,o(_0x208f66,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xf4d3ac='*Indent:*\x20%0',_0xddef15={'type':'format','content':o(_0x208f66,_0xf4d3ac,o(_0x208f66,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xf4d3ac=function(_0x45e711){const _0x45d8ed=_0x45e711['getFirstRange']();let _0x2b5bff=_0x45d8ed['start']['nodeAfter'];for(;_0x2b5bff&&_0x45d8ed['containsItem'](_0x2b5bff);){if(_0x2b5bff['getAttribute']('listIndent')>0x0)return!0x1;_0x2b5bff=_0x2b5bff['nextSibling'];}return!0x0;}(_0x82f4c6)?o(_0x208f66,'*Format:*\x20remove\x20from\x20%0',o(_0x208f66,function(_0xb3a8cb){return'ELEMENT_'+_0xb3a8cb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x82f4c6))):o(_0x208f66,'*Outdent:*\x20%0',o(_0x208f66,'ELEMENT_LIST_ITEM')),_0xddef15={'type':'format','content':_0xf4d3ac};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x369822['multipleBlocks']&&(_0xf4d3ac='*Merge:*\x20%0',_0xddef15={'type':'deletion','content':o(_0x208f66,_0xf4d3ac,o(_0x208f66,'ELEMENT_LIST_ITEM'))});}return _0xddef15;});}}function le(_0x142e94){let _0x309f6a=_0x142e94['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x309f6a;){const _0x2e27ef=_0x309f6a['getAttribute']('listItemId');if(!_0x2e27ef)return!0x1;if(_0x2e27ef==_0x142e94['data']['newValue'])return'newValue';if(_0x2e27ef==_0x142e94['data']['oldValue'])return'oldValue';_0x309f6a=_0x309f6a['previousSibling'];}return!0x1;}class ue extends _0x5ed9bd{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1435ca=this['editor']['config']['get']('list.properties'),_0xbdce0e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1435ca['styles']&&(_0xbdce0e['enableDefaultAttributesIntegration']('listStyle'),_0xbdce0e['registerBlockAttribute']('listStyle')),_0x1435ca['reversed']&&(_0xbdce0e['enableDefaultAttributesIntegration']('listReversed'),_0xbdce0e['registerBlockAttribute']('listReversed')),_0x1435ca['startIndex']&&(_0xbdce0e['enableDefaultAttributesIntegration']('listStart'),_0xbdce0e['registerBlockAttribute']('listStart'));const _0x844044={'type':'format','content':''};_0xbdce0e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xd1ec83=this['editor']['locale'];_0xbdce0e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xd1ec83,'FORMAT_LIST_REVERSED')),_0xbdce0e['descriptionFactory']['registerDescriptionCallback'](_0x44cdb7=>{const {data:_0x41dc40}=_0x44cdb7;if(_0x41dc40&&'listReversed'==_0x41dc40['key'])return null==_0x41dc40['newValue']||0x0==_0x41dc40['newValue']&&null==_0x41dc40['oldValue']?_0x844044:void 0x0;}),_0xbdce0e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xd1ec83,'FORMAT_LIST_START')),_0xbdce0e['descriptionFactory']['registerDescriptionCallback'](_0x303f82=>{const {data:_0x54718a}=_0x303f82;if(_0x54718a&&'listStart'==_0x54718a['key'])return null==_0x54718a['newValue']||0x1==_0x54718a['newValue']&&null==_0x54718a['oldValue']?_0x844044:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x467984=>{if(_0x467984['batch']['isUndo'])return!0x1;let _0xdd8622=!0x1;const _0x39f3aa=_0xbdce0e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf707d3=>{const _0x5286cd=_0xbdce0e['_getAttributeKey'](_0xf707d3);return'listStart'==_0x5286cd||'listReversed'==_0x5286cd;});for(const _0x592cb5 of _0x39f3aa){const _0x165aa3=_0x592cb5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x165aa3||'customNumbered'==_0x165aa3)continue;_0xbdce0e['_findSuggestions'](_0x592cb5['getFirstRange'](),'attribute')['find'](_0x3242c8=>'listType'==_0xbdce0e['_getAttributeKey'](_0x3242c8['suggestion']))||(_0x467984['removeMarker'](_0x592cb5['getFirstMarker']()),_0xdd8622=!0x0);}return _0xdd8622;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x58de3b){const _0x3b4088=this['editor']['locale'],{data:_0x448dd6}=_0x58de3b,_0x1d42ad={'type':'format','content':''};if(!_0x448dd6||'listStyle'!=_0x448dd6['key'])return;if(!_0x448dd6['oldValue'])return'default'==_0x448dd6['newValue']?_0x1d42ad:{'type':'format','content':''+o(_0x3b4088,'*Set\x20format:*\x20%0',o(_0x3b4088,this['_getTranslationKeyForListStyle'](_0x448dd6['newValue'])))};if(!_0x448dd6['newValue']){if('default'==_0x448dd6['oldValue'])return _0x1d42ad;let _0x385a60=_0x58de3b['head'];for(;_0x385a60;){if(_0x385a60['data']&&'listType'==_0x385a60['data']['key']&&_0x385a60['data']['newValue'])return _0x1d42ad;_0x385a60=_0x385a60['next'];}return{'type':'format','content':''+o(_0x3b4088,'*Remove\x20format:*\x20%0',o(_0x3b4088,this['_getTranslationKeyForListStyle'](_0x448dd6['oldValue'])))};}if('default'!=_0x448dd6['newValue'])return{'type':'format','content':''+o(_0x3b4088,'*Set\x20format:*\x20%0',o(_0x3b4088,this['_getTranslationKeyForListStyle'](_0x448dd6['newValue'])))};let _0x55e483=_0x58de3b['head'];for(;_0x55e483;){if(_0x55e483['data']&&'listType'==_0x55e483['data']['key']&&_0x55e483['data']['newValue']&&_0x55e483['data']['oldValue'])return _0x1d42ad;_0x55e483=_0x55e483['next'];}return{'type':'format','content':o(_0x3b4088,'*Set\x20format:*\x20%0',o(_0x3b4088,'ELEMENT_'+_0x58de3b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x30135e=this['editor'],_0xeda7d9=_0x30135e['locale'];_0x30135e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x233a9f=>{if('formatBlock'!=_0x233a9f['type'])return;const {data:_0x5e1335}=_0x233a9f;if(!_0x5e1335)return;let _0xbe5639,_0x45890b;switch(_0x5e1335['commandName']){case'listStyle':_0xbe5639='*Change\x20to:*\x20%0',_0x45890b={'type':'format','content':o(_0xeda7d9,_0xbe5639,o(_0xeda7d9,this['_getTranslationKeyForListStyle'](_0x5e1335['commandParams'][0x0]['type'])))};break;case'listReversed':_0xbe5639=_0x5e1335['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45890b={'type':'format','content':o(_0xeda7d9,_0xbe5639)};break;case'listStart':_0xbe5639='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45890b={'type':'format','content':o(_0xeda7d9,_0xbe5639,_0x5e1335['commandParams'][0x0]['startIndex'])};}return _0x45890b;});}['_getTranslationKeyForListStyle'](_0x3281fe){return'ELEMENT_'+function(_0x188699){if(pe['includes'](_0x188699))return'bulleted';if(ye['includes'](_0x188699))return'numbered';return null;}(_0x3281fe)['toUpperCase']()+'_LIST_'+_0x3281fe['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5ed9bd{static get['requires'](){return[_0x190152];}['init'](){const _0x4deb31=this['editor'],_0x187e5f=_0x4deb31['plugins']['get']('TrackChangesEditing'),_0x2ac6e5=_0x4deb31['commands']['get']('enter');_0x187e5f['enableCommand']('enter',()=>{_0x4deb31['model']['change'](_0x4b6202=>{const _0x191b93=_0x4deb31['model']['document']['selection'],_0x478d3b=_0x191b93['getFirstPosition'](),_0x377b47=_0x4022b5['fromRange'](_0x191b93['getFirstRange']());if(_0x2ac6e5['enterBlock'](_0x4b6202)){const _0x216bcd=_0x4deb31['model']['createPositionAt'](_0x478d3b['parent']['nextSibling'],0x0),_0x597802=_0x4b6202['createRange'](_0x478d3b,_0x216bcd);_0x187e5f['markInsertion'](_0x597802);}else _0x4b6202['setSelection'](_0x4b6202['createRange'](_0x377b47['end']));_0x377b47['detach'](),_0x2ac6e5['fire']('afterExecute',{'writer':_0x4b6202});});}),_0x4deb31['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4deb31,'split'),{'priority':'high'}),_0x4deb31['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5b814f,_0x39d567,_0x311721)=>{const _0x30e7be=_0x311721['mapper']['markerNameToElements'](_0x39d567['markerName']);if(_0x30e7be){for(const _0x36115c of _0x30e7be)_0x36115c['hasClass']('ck-suggestion-marker-split')&&(_0x311721['mapper']['unbindElementFromMarkerName'](_0x36115c,_0x39d567['markerName']),_0x311721['writer']['remove'](_0x36115c));}},{'priority':'high'}),_0x4deb31['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x53a24a,_0x15d996,_0x3a23f7)=>{_0x3a23f7['options']['showSuggestionHighlights']&&_e(_0x4deb31,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x53a24a,_0x15d996,_0x3a23f7);},{'priority':'high'});}}class J extends _0x5ed9bd{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5c8f95=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c8f95['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5c8f95['enableCommand']('findNext'),_0x5c8f95['enableCommand']('findPrevious'),_0x5c8f95['enableCommand']('replace'),_0x5c8f95['enableCommand']('replaceAll');}['handleFindCommand'](_0x216837,_0x1bf9e0,_0x39340b={}){const _0xbbcfa6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x216837(_0x474fc5=>('string'==typeof _0x1bf9e0?_0xbbcfa6['findByTextCallback'](_0x1bf9e0,_0x39340b):_0x1bf9e0)(_0x474fc5)['filter'](_0x80a3fe=>!0x1===this['_isInDeletionRange'](_0x80a3fe,_0x474fc5['item'])),_0x39340b);}['_isInDeletionRange'](_0x568b52,_0x398e52){const _0x4df54e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x398e52,_0x568b52['start']),this['editor']['model']['createPositionAt'](_0x398e52,_0x568b52['end']));for(const _0x44b872 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4df54e['getIntersection'](_0x44b872['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x5ed9bd{['afterInit'](){const _0x3601c4=this['editor']['locale'],_0x332da7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x49bba9,commandName:_0x42857a}of ro)this['editor']['plugins']['has'](_0x49bba9)&&(_0x332da7['enableDefaultAttributesIntegration'](_0x42857a),_0x332da7['registerInlineAttribute'](_0x42857a));_0x3601c4['t'],_0x332da7['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3601c4,'FORMAT_FONT_SIZE')),_0x332da7['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3601c4,'FORMAT_FONT_FAMILY')),_0x332da7['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3601c4,'FORMAT_FONT_COLOR')),_0x332da7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3601c4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17c301=this['editor'],_0x15cc41=_0x17c301['locale'];_0x17c301['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdc2054=>{const _0x427e5e=_0x15cc41['t'];if('formatInline'!=_0xdc2054['type'])return;const {data:_0x5e383a}=_0xdc2054;if(null!=_0x5e383a){if('fontSize'==_0x5e383a['commandName']){const _0x4d1c43=_0x5e383a['commandParams'][0x0]['value'];if(_0x4d1c43){const _0x1857e8=_0x427e5e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5f36c4=>_0x5f36c4['model']==_0x4d1c43)['title'])['toLowerCase']();return{'type':'format','content':o(_0x15cc41,'*Set\x20font\x20size:*\x20%0',_0x1857e8)};}return{'type':'format','content':o(_0x15cc41,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5e383a['commandName']){const _0xfb97a3=_0x5e383a['commandParams'][0x0]['value'];return _0xfb97a3?{'type':'format','content':o(_0x15cc41,'*Set\x20font\x20family:*\x20%0',_0xfb97a3)}:{'type':'format','content':o(_0x15cc41,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5e383a['commandName']){const _0x13f4a6=_0x5e383a['commandParams'][0x0]['value'];if(_0x13f4a6){const _0x5565e2=_0x3b0c52(this['editor']['config']['get']('fontColor.colors'))['find'](_0x7d5006=>_0x7d5006['model']==_0x13f4a6);let _0x3da1cb=_0x13f4a6,_0x374771='';return _0x5565e2&&(_0x3da1cb=_0x5565e2['label'],_0x374771=_0x427e5e(_0x3da1cb)['toLowerCase']()),{'type':'format','content':o(_0x15cc41,'*Set\x20font\x20color:*\x20%0',_0x374771)['trim'](),'color':{'value':_0x13f4a6,'title':_0x374771||_0x3da1cb}};}return{'type':'format','content':o(_0x15cc41,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5e383a['commandName']){const _0x4f597d=_0x5e383a['commandParams'][0x0]['value'];if(_0x4f597d){const _0x1cf4c2=_0x3b0c52(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1f916c=>_0x1f916c['model']==_0x4f597d);let _0xb981f1=_0x4f597d,_0x7e5677='';return _0x1cf4c2&&(_0xb981f1=_0x1cf4c2['label'],_0x7e5677=_0x427e5e(_0xb981f1)['toLowerCase']()),{'type':'format','content':o(_0x15cc41,'*Set\x20font\x20background\x20color:*\x20%0',_0x7e5677)['trim'](),'color':{'value':_0x4f597d,'title':_0x7e5677||_0xb981f1}};}return{'type':'format','content':o(_0x15cc41,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x5ed9bd{['afterInit'](){const _0x4ed60b=this['editor'],_0x47e62c=_0x4ed60b['plugins']['get']('TrackChangesEditing'),_0x4ec7d3=_0x4ed60b['commands']['get']('copyFormat'),_0xcfd9ee=_0x4ed60b['commands']['get']('pasteFormat');_0x4ec7d3&&_0xcfd9ee&&(_0x47e62c['enableDefaultAttributesIntegration']('pasteFormat'),_0x47e62c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4d58e3=this['editor'],_0x44be2d=_0x4d58e3['locale'];_0x4d58e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e42eb=>{if('formatBlock'!=_0x1e42eb['type']&&'formatInline'!=_0x1e42eb['type'])return;const {data:_0x471fdb}=_0x1e42eb;if(_0x471fdb&&'pasteFormat'===_0x471fdb['commandName']){const _0x2371b9=[],_0x5ccb43=_0x471fdb['commandParams'][0x0];for(const [_0x359885,_0x71d6ca]of Object['entries'](_0x5ccb43))_0x2371b9['push'](so(_0x4d58e3,_0x359885,_0x71d6ca));return _0x2371b9['length']?{'type':'format','content':o(_0x44be2d,'*Set\x20format\x20to:*\x20%0',_0x2371b9['join'](',\x20'))}:{'type':'format','content':o(_0x44be2d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5d0e6e,_0x42e91c,_0x4a2d61){const _0xdc03d4=_0x5d0e6e['locale']['t'],_0x58a5f5=_0x42e91c['split'](/(?=[A-Z])/)['join']('\x20'),_0x4217da=_0xdc03d4(_0x58a5f5['charAt'](0x0)['toUpperCase']()+_0x58a5f5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4a2d61)return _0x4217da;if('fontColor'===_0x42e91c||'fontBackgroundColor'===_0x42e91c){const _0x24da6c=_0x3b0c52(_0x5d0e6e['config']['get']('fontColor.colors'))['find'](_0x1e2f69=>_0x1e2f69['model']==_0x4a2d61);return _0x4217da+'\x20('+(_0x24da6c?_0xdc03d4(_0x24da6c['label'])['toLowerCase']():_0x4a2d61)+')';}if('fontSize'===_0x42e91c&&isNaN(parseFloat(_0x4a2d61))){const _0x2ee443=_0x5d0e6e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5d0e6e['config']['get']('fontSize.options'))['find'](_0xf5ff37=>_0xf5ff37['model']==_0x4a2d61);return _0x4217da+'\x20('+(_0x2ee443?_0xdc03d4(_0x2ee443['title'])['toLowerCase']():_0x4a2d61)+')';}return _0x4217da+'\x20('+_0x4a2d61+')';}class Y extends _0x5ed9bd{['_headingOptions'];['afterInit'](){const _0x29438b=this['editor'];if(!_0x29438b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x29438b['config']['get']('heading.options');const _0x507ece=_0x29438b['locale'],_0x3b7661=_0x29438b['plugins']['get']('TrackChangesEditing');_0x3b7661['enableDefaultAttributesIntegration']('heading');for(const _0x4dafee of this['_headingOptions'])'paragraph'!=_0x4dafee['model']&&_0x3b7661['descriptionFactory']['registerElementLabel'](_0x4dafee['model'],_0x458461=>{const _0x5856e0=this['_getHeadingLevel'](_0x4dafee['model']);return null!==_0x5856e0?_0x4ac495(_0x458461,_0x5856e0):_0x3a7d23(_0x458461,_0x4dafee['title']);});function _0x4ac495(_0x5dbf07,_0x3c1d2b){return o(_0x507ece,'ELEMENT_HEADING',[_0x5dbf07,_0x3c1d2b]);}function _0x3a7d23(_0x4edc7f,_0x18c853){return o(_0x507ece,'ELEMENT_HEADING_CUSTOM',[_0x4edc7f,_0x18c853]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b9efb=this['editor'],_0x548211=_0x2b9efb['locale'];function _0x1b9162(_0x5898a7,_0x492bbb){return o(_0x548211,'ELEMENT_HEADING_CUSTOM',[_0x5898a7,_0x492bbb]);}_0x2b9efb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x583ff7=>{if('formatBlock'!=_0x583ff7['type'])return;const {data:_0x5ef4cf}=_0x583ff7;if(_0x5ef4cf&&'heading'==_0x5ef4cf['commandName']){const _0xb88290=_0x5ef4cf['commandParams'][0x0]['value'],_0x22b402=this['_getHeadingLevel'](_0xb88290);if(null!==_0x22b402)return{'type':'format','content':o(_0x548211,'*Change\x20to:*\x20%0',(_0x373aa5=0x1,_0x511eac=_0x22b402,o(_0x548211,'ELEMENT_HEADING',[_0x373aa5,_0x511eac])))};const _0x578fe9=this['_headingOptions']['find'](_0xb95f86=>_0xb95f86['model']===_0xb88290)['title'];return{'type':'format','content':o(_0x548211,'*Change\x20to:*\x20%0',_0x1b9162(0x1,_0x578fe9))};}var _0x373aa5,_0x511eac;});}['_getHeadingLevel'](_0x97ffd7){const _0x1fa82f=_0x97ffd7['match'](/^heading(\d+)/);if(_0x1fa82f)return _0x1fa82f[0x1];const _0x11e426=this['_headingOptions']?.['find'](_0x179efb=>_0x179efb['model']==_0x97ffd7);if(_0x11e426&&_0x11e426['view']){const _0x15f5ce=_0x11e426['view'],_0xcee981=(_0x15f5ce['name']??_0x15f5ce)['match'](/^h(\d+)/);if(_0xcee981)return _0xcee981[0x1];}return null;}}class Z extends _0x5ed9bd{['afterInit'](){const _0x62d2b2=this['editor'];if(!_0x62d2b2['plugins']['has']('HighlightEditing'))return;const _0x3648e3=_0x62d2b2['plugins']['get']('TrackChangesEditing'),_0x19edb4=_0x62d2b2['locale'];_0x3648e3['enableDefaultAttributesIntegration']('highlight'),_0x3648e3['registerInlineAttribute']('highlight'),_0x3648e3['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x19edb4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19880c=this['editor'],_0xbb78c0=_0x19880c['locale'];_0x19880c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xca124f=>{if('formatInline'!=_0xca124f['type'])return;const {data:_0x26a551}=_0xca124f;if(_0x26a551&&'highlight'==_0x26a551['commandName']){const _0x475353=_0xbb78c0['t'],_0xaf6ae5=_0x26a551['commandParams'][0x0]['value'];if(_0xaf6ae5){const _0x35c5a1=_0x19880c['config']['get']('highlight.options')['find'](_0x590cd7=>_0x590cd7['model']==_0xaf6ae5),_0x3201ef=_0x475353(_0x35c5a1['title'])['toLowerCase']();return{'type':'format','content':o(_0xbb78c0,'*Set\x20highlight:*\x20%0',_0x3201ef),'color':{'value':_0x35c5a1['color'],'title':_0x35c5a1['title']}};}return{'type':'format','content':o(_0xbb78c0,'*Remove\x20highlight*',o(_0xbb78c0,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x5ed9bd{['afterInit'](){const _0x48ee9a=this['editor'];if(!_0x48ee9a['plugins']['has']('HorizontalLineEditing'))return;_0x48ee9a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4631d1=_0x48ee9a['plugins']['get']('TrackChangesEditing'),_0x10e5d7=_0x48ee9a['locale'];_0x4631d1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x36dc10=>o(_0x10e5d7,'ELEMENT_HORIZONTAL_LINE',_0x36dc10)),_0x48ee9a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2a175f,{writer:_0x9f5b42,options:_0x5cebd3})=>{if(!_0x5cebd3['showSuggestionHighlights'])return null;const _0x2794ab=_0x9f5b42['createContainerElement']('div'),_0x55c86d=_0x9f5b42['createEmptyElement']('hr');return _0x9f5b42['addClass']('ck-horizontal-line',_0x2794ab),_0x9f5b42['insert'](_0x9f5b42['createPositionAt'](_0x2794ab,0x0),_0x55c86d),_0x2794ab;},'converterPriority':'high'});}}class et extends _0x5ed9bd{['afterInit'](){const _0x57879f=this['editor'];if(!_0x57879f['plugins']['has']('HtmlEmbed'))return;const _0x273bfe=_0x57879f['plugins']['get']('TrackChangesEditing'),_0x4479d6=_0x57879f['locale'];_0x273bfe['descriptionFactory']['registerElementLabel']('rawHtml',_0x26d0f9=>o(_0x4479d6,'ELEMENT_HTML_EMBED',_0x26d0f9)),_0x273bfe['enableDefaultAttributesIntegration']('htmlEmbed'),_0x273bfe['registerBlockAttribute']('value'),_0x273bfe['descriptionFactory']['registerDescriptionCallback'](_0x417fd5=>{if('attribute'!=_0x417fd5['type'])return;const {data:_0x25d06d}=_0x417fd5;if(_0x25d06d&&'value'==_0x25d06d['key']&&_0x417fd5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x477ad8=o(_0x4479d6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4479d6,'*Change\x20%0\x20content*',_0x477ad8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5689eb=this['editor'],_0x428b98=_0x5689eb['locale'];_0x5689eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x388dcc=>{if('formatBlock'!=_0x388dcc['type'])return;const {data:_0x2a26d1}=_0x388dcc;if(_0x2a26d1&&'htmlEmbed'==_0x2a26d1['commandName']){const _0xe7c44f=o(_0x428b98,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x428b98,'*Change\x20%0\x20content*',_0xe7c44f)};}});}}class it extends _0x5ed9bd{['afterInit'](){const _0x51ddd8=this['editor'];if(!_0x51ddd8['plugins']['has']('ImageEditing'))return;const _0x418593=_0x51ddd8['plugins']['get']('TrackChangesEditing'),_0x275730=_0x51ddd8['plugins']['get']('ImageUtils'),_0x1e6761=_0x51ddd8['locale'];_0x418593['enableCommand']('insertImage'),_0x418593['descriptionFactory']['registerElementLabel']('imageBlock',_0x4b7eac=>o(_0x1e6761,'ELEMENT_IMAGE',_0x4b7eac)),_0x418593['descriptionFactory']['registerElementLabel']('imageInline',_0x52083e=>o(_0x1e6761,'ELEMENT_INLINE_IMAGE',_0x52083e)),_0x418593['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1e6761,'ELEMENT_CAPTION')),_0x51ddd8['plugins']['has']('ImageUploadEditing')&&_0x418593['enableCommand']('uploadImage'),_0x51ddd8['plugins']['has']('ImageBlockEditing')&&_0x51ddd8['plugins']['has']('ImageInlineEditing')&&(_0x418593['enableCommand']('imageTypeInline',(_0x3d871b,_0x3d2014)=>{const _0x2886fc=_0x275730['getClosestSelectedImageElement'](_0x51ddd8['model']['document']['selection']);_0x51ddd8['model']['change'](()=>{_0x418593['markBlockFormat'](_0x2886fc,{'commandName':'imageTypeInline','commandParams':[_0x3d2014]},[],'convertBlockImageToInline');});}),_0x418593['enableCommand']('imageTypeBlock',(_0x13747e,_0x361042)=>{_0x51ddd8['model']['change'](_0x43c986=>{let _0xb57a7=_0x275730['getClosestSelectedImageElement'](_0x51ddd8['model']['document']['selection']),_0x2b2686=_0x43c986['createRangeOn'](_0xb57a7);const _0x289eb6=_0x5b3ae2['fromPosition'](_0x2b2686['start'],'toPrevious'),_0x4ec987=_0x5b3ae2['fromPosition'](_0x2b2686['end'],'toNext');_0x418593['forceDefaultExecution'](()=>_0x13747e(_0x361042)),_0xb57a7=_0x275730['getClosestSelectedImageElement'](_0x51ddd8['model']['document']['selection']),_0x2b2686=_0x43c986['createRangeOn'](_0xb57a7);const _0x57d8fe=_0x43c986['createRange'](_0x289eb6,_0x4ec987);_0x289eb6['detach'](),_0x4ec987['detach'](),_0x418593['markBlockFormat'](_0xb57a7,{'commandName':'imageTypeInline','commandParams':[_0x361042]},[],'convertInlineImageToBlock'),_0x57d8fe['start']['isBefore'](_0x2b2686['start'])&&_0x418593['markInsertion'](_0x43c986['createRange'](_0x57d8fe['start'],_0x2b2686['start']),'convertInlineImageToBlock'),_0x2b2686['end']['isBefore'](_0x57d8fe['end'])&&_0x418593['markInsertion'](_0x43c986['createRange'](_0x2b2686['end'],_0x57d8fe['end']),'convertInlineImageToBlock');});}),_0x418593['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x418593['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x418593['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x418593['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x418593['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x418593['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x135c33])=>{const _0x1beeb5=_0x418593['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x25b16d=_0x135c33['start'],_0x3adec6=_0x135c33['end'];const _0x1eb0de=_0x51ddd8['model']['schema']['getNearestSelectionRange'](_0x25b16d,'backward'),_0x5ec8d8=_0x51ddd8['model']['schema']['getNearestSelectionRange'](_0x3adec6,'forward');_0x1eb0de['isCollapsed']&&(_0x25b16d=_0x1eb0de['start']),_0x5ec8d8['isCollapsed']&&(_0x3adec6=_0x5ec8d8['end']),_0x1beeb5([_0x51ddd8['model']['createRange'](_0x25b16d,_0x3adec6)]);}),_0x418593['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4b6cc7),_0x418593['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4b6cc7)),_0x51ddd8['plugins']['has']('ImageCaptionEditing')&&(_0x418593['enableCommand']('toggleImageCaption',(_0x3f0a8d,_0x35c7a2)=>{const _0x183106=_0x51ddd8['plugins']['get']('ImageCaptionUtils');let _0x2aba03=_0x275730['getClosestSelectedImageElement'](_0x51ddd8['model']['document']['selection']),_0x215b8e=_0x183106['getCaptionFromImageModelElement'](_0x2aba03);_0x51ddd8['model']['change'](()=>{if(_0x215b8e)return void _0x418593['markDeletion'](_0x51ddd8['model']['createRangeOn'](_0x215b8e));const _0x379d1c=_0x275730['isBlockImage'](_0x2aba03);_0x3f0a8d(_0x35c7a2),_0x2aba03=_0x275730['getClosestSelectedImageElement'](_0x51ddd8['model']['document']['selection']),_0x215b8e=_0x183106['getCaptionFromImageModelElement'](_0x2aba03),_0x418593['markInsertion'](_0x51ddd8['model']['createRangeOn'](_0x215b8e),_0x379d1c?null:'imageCaption');});}),_0x418593['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4b6cc7));const _0x24d2c8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f0a8f(_0x4e5295,_0x3e96e9){const _0x5304aa=_0x24d2c8['findIndex'](({type:_0x12a0ab,subType:_0x5e1ab1})=>_0x4e5295['type']==_0x12a0ab&&_0x4e5295['subType']==_0x5e1ab1),_0x38afc3=_0x24d2c8['findIndex'](({type:_0x373de7,subType:_0x25e9b2})=>_0x3e96e9['type']==_0x373de7&&_0x3e96e9['subType']==_0x25e9b2);if(_0x5304aa<0x0||_0x38afc3<0x0)return!0x1;const _0x140f1e=_0x4e5295['getFirstRange'](),_0x4ee487=_0x3e96e9['getFirstRange']();if((0x0==_0x5304aa||0x1==_0x5304aa)&&0x2==_0x38afc3&&_0x140f1e['isIntersecting'](_0x4ee487))return!0x0;if(0x2==_0x5304aa&&0x3==_0x38afc3){const _0x5e5af2=_0x418593['_findSuggestions'](_0x140f1e,'insertion')['filter'](({suggestion:_0x306072,meta:_0x46e7d1})=>_0x46e7d1['isOwn']&&'convertInlineImageToBlock'==_0x306072['subType']);if(_0x5e5af2['length']>0x1&&_0x4ee487['end']['isEqual'](_0x140f1e['start']))return!0x0;if(0x1==_0x5e5af2['length']&&(_0x140f1e['start']['isEqual'](_0x4ee487['end'])||_0x140f1e['end']['isEqual'](_0x4ee487['start'])))return!0x0;}if(0x3==_0x5304aa&&0x3==_0x38afc3&&_0x140f1e['start']['isBefore'](_0x4ee487['start'])){const _0x72c8ed=_0x140f1e['end']['nodeAfter'],_0xdf74b1=_0x4ee487['start']['nodeBefore'];return _0x275730['isBlockImage'](_0x72c8ed)&&_0x72c8ed===_0xdf74b1;}return!0x1;}function _0x4b6cc7(_0x3c1bd8,_0x3e8d39){return _0x4f0a8f(_0x3c1bd8,_0x3e8d39)?[_0x3c1bd8,_0x3e8d39]:_0x4f0a8f(_0x3e8d39,_0x3c1bd8)?[_0x3e8d39,_0x3c1bd8]:null;}_0x51ddd8['plugins']['has']('ImageResize')&&(_0x418593['enableDefaultAttributesIntegration']('resizeImage'),_0x418593['registerBlockAttribute']('resizedWidth'),_0x418593['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1e6761,'FORMAT_IMAGE_SIZE'))),_0x51ddd8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x418593['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x418593['registerBlockAttribute']('alt')),_0x418593['descriptionFactory']['registerDescriptionCallback'](_0xafecfa=>{if(!!_0x24d2c8['find'](({type:_0x354ca6,subType:_0x2e2df1})=>_0xafecfa['type']==_0x354ca6&&_0xafecfa['subType']==_0x2e2df1))return _0xafecfa['previous']?{}:void 0x0;}),_0x418593['descriptionFactory']['registerDescriptionCallback'](_0x1142e4=>{if('insertion'==_0x1142e4['type']||'deletion'==_0x1142e4['type']){const _0x5868ae=_0x1142e4['getContainedElement']();if(_0x5868ae&&_0x5868ae['is']('element','caption'))return{'type':'insertion'==_0x1142e4['type']?'addObject':'removeObject','element':_0x5868ae,'quantity':0x1};}}),_0x418593['descriptionFactory']['registerDescriptionCallback'](_0x4da034=>'formatBlock'==_0x4da034['type']&&'convertInlineImageToBlock'==_0x4da034['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4da034['type']&&'convertBlockImageToInline'==_0x4da034['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x418593['descriptionFactory']['registerDescriptionCallback'](_0x307c54=>{if('attribute'!=_0x307c54['type'])return;const {data:_0x5c0718}=_0x307c54;if(!_0x5c0718||'alt'!=_0x5c0718['key'])return;const _0x4fe115=_0x5c0718['newValue'];return _0x4fe115?{'type':'format','content':o(_0x1e6761,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4fe115+'\x22')}:{'type':'format','content':o(_0x1e6761,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa15a2=this['editor'],_0x47e327=_0xa15a2['locale'];_0xa15a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6eb912=>{if('formatBlock'!=_0x6eb912['type']&&'formatInline'!=_0x6eb912['type'])return;const {data:_0x3a6b0f}=_0x6eb912;if(_0x3a6b0f){if('imageTextAlternative'==_0x3a6b0f['commandName']){const _0x56164f=_0x3a6b0f['commandParams'][0x0]['newValue'];return _0x56164f?{'type':'format','content':o(_0x47e327,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x56164f+'\x22')}:{'type':'format','content':o(_0x47e327,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3a6b0f['commandName']){const _0x389669=_0x3a6b0f['commandParams'][0x0]['width'];return _0x389669?{'type':'format','content':o(_0x47e327,'*Set\x20image\x20width:*\x20%0',_0x389669)}:{'type':'format','content':o(_0x47e327,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5ed9bd{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4021e1=this['editor']['locale'],_0x34d301=this['editor']['plugins']['get']('TrackChangesEditing');_0x34d301['enableDefaultAttributesIntegration']('replaceImageSource'),_0x34d301['registerBlockAttribute']('src'),_0x34d301['descriptionFactory']['registerDescriptionCallback'](_0x4a9228=>{if('attribute'!=_0x4a9228['type'])return;const {data:_0x25fd9c}=_0x4a9228;return _0x25fd9c&&'src'==_0x25fd9c['key']?_0x25fd9c['newValue']&&_0x25fd9c['oldValue']?{'type':'format','content':o(_0x4021e1,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x36fe71=this['editor']['plugins']['get']('TrackChangesEditing');_0x36fe71['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x36fe71['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x36fe71['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x36fe71['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa48872=this['editor'],_0xe2f0cd=_0xa48872['locale'];_0xa48872['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a1097=>{if('formatBlock'!=_0x1a1097['type']&&'formatInline'!=_0x1a1097['type'])return;const {data:_0x24598b}=_0x1a1097;if(!_0x24598b||'replaceImageSource'!=_0x24598b['commandName'])return;return{'type':'format','content':o(_0xe2f0cd,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x5ed9bd{['afterInit'](){const _0x54641e=this['editor'];if(!_0x54641e['plugins']['has']('ImageStyleEditing'))return;const _0x3d7c93=_0x54641e['plugins']['get']('TrackChangesEditing'),_0x2c9ae8=_0x54641e['plugins']['get']('ImageUtils'),_0x3f575c={};_0x3d7c93['enableCommand']('imageStyle',(_0x5101cd,_0x55cfb3)=>{const _0x13a66a=_0x54641e['plugins']['get']('Users')['me'],_0x414bf7=_0x54641e['commands']['get']('imageStyle');let _0xec4e5b=_0x2c9ae8['getClosestSelectedImageElement'](_0x54641e['model']['document']['selection']),_0x2cfb83=_0x54641e['model']['createRangeOn'](_0xec4e5b),_0x1ac267=_0x414bf7['value'];if(_0x1ac267==_0x55cfb3['value'])return;const _0xcdd20c={'commandName':'imageStyle','commandParams':[_0x55cfb3],'formatGroupId':_0x51081b()};_0x54641e['model']['change'](()=>{if(_0x3d7c93['getSuggestions']()['filter'](_0x2bc6c8=>_0x2bc6c8['isInContent']&&_0x13a66a==_0x2bc6c8['author']&&('formatBlock'==_0x2bc6c8['type']||'formatInline'==_0x2bc6c8['type'])&&('imageStylePreApply'==_0x2bc6c8['subType']||'imageStylePostApply'==_0x2bc6c8['subType'])&&_0x2bc6c8['getFirstRange']()['isEqual'](_0x2cfb83))['forEach'](_0xe24f5=>_0x3d7c93['discardSuggestion'](_0xe24f5['head'])),_0xec4e5b=_0x2c9ae8['getClosestSelectedImageElement'](_0x54641e['model']['document']['selection']),_0x2cfb83=_0x54641e['model']['createRangeOn'](_0xec4e5b),_0x414bf7['refresh'](),_0x54641e['commands']['get']('imageTypeInline')['refresh'](),_0x54641e['commands']['get']('imageTypeBlock')['refresh'](),_0x1ac267=_0x414bf7['value'],_0x1ac267!=_0x55cfb3['value'])return _0x2c9ae8['isInlineImage'](_0xec4e5b)&&_0x414bf7['shouldConvertImageType'](_0x55cfb3['value'],_0xec4e5b)?(_0x5101cd({..._0x55cfb3,'setImageSizes':!0x1}),_0xec4e5b=_0x2c9ae8['getClosestSelectedImageElement'](_0x54641e['model']['document']['selection']),void _0x3d7c93['markBlockFormat'](_0xec4e5b,{..._0xcdd20c,'commandReversedParams':[{'value':_0x1ac267||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c9ae8['isBlockImage'](_0xec4e5b)?_0x3d7c93['markBlockFormat'](_0xec4e5b,_0xcdd20c,[],'imageStylePostApply'):_0x3d7c93['markInlineFormat'](_0x2cfb83,_0xcdd20c,'imageStylePostApply'));});});for(const _0x331d12 of _0x54641e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3f575c[_0x331d12['name']]=_0x331d12['title']['toLowerCase']();_0x3d7c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3d7c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3d7c93['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3d7c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xe0461b])=>{_0x2c9ae8['setImageNaturalSizeAttributes'](_0xe0461b['getContainedElement']());}),_0x3d7c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x304b05,_0x4169b5)=>{_0x3d7c93['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x304b05,{'commandName':_0x4169b5['commandName'],'commandParams':_0x4169b5['commandReversedParams']});}),_0x3d7c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x20995a,_0xaa8f63){if(_0x33e8b9(_0x20995a,_0xaa8f63))return[_0x20995a,_0xaa8f63];if(_0x33e8b9(_0xaa8f63,_0x20995a))return[_0xaa8f63,_0x20995a];return null;});const _0x5d3ff3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x33e8b9(_0x275723,_0x50ea40){const _0x12b014=_0x5d3ff3['findIndex'](({type:_0x55f393,subType:_0x448e0a})=>_0x275723['type']==_0x55f393&&_0x275723['subType']==_0x448e0a),_0x1c5812=_0x5d3ff3['findIndex'](({type:_0x2ae47c,subType:_0x4d0ed3})=>_0x50ea40['type']==_0x2ae47c&&_0x50ea40['subType']==_0x4d0ed3);if(_0x12b014<0x0||_0x1c5812<0x0)return!0x1;const _0x17eda6=_0x275723['getFirstRange'](),_0x5b03bc=_0x50ea40['getFirstRange']();if((0x0==_0x12b014||0x1==_0x12b014)&&0x2==_0x1c5812&&_0x17eda6['isIntersecting'](_0x5b03bc))return!0x0;if(0x2==_0x12b014&&0x3==_0x1c5812){const _0x4cc5d2=_0x3d7c93['_findSuggestions'](_0x17eda6,'insertion')['filter'](({suggestion:_0x1a4680,meta:_0x4789a0})=>_0x4789a0['isOwn']&&'convertInlineImageToBlock'==_0x1a4680['subType']);if(_0x4cc5d2['length']>0x1&&_0x5b03bc['end']['isEqual'](_0x17eda6['start']))return!0x0;if(0x1==_0x4cc5d2['length']&&(_0x17eda6['start']['isEqual'](_0x5b03bc['end'])||_0x17eda6['end']['isEqual'](_0x5b03bc['start'])))return!0x0;}if(0x3==_0x12b014&&0x3==_0x1c5812&&_0x17eda6['start']['isBefore'](_0x5b03bc['start'])){const _0x26379a=_0x17eda6['end']['nodeAfter'],_0x1effca=_0x5b03bc['start']['nodeBefore'];return _0x2c9ae8['isBlockImage'](_0x26379a)&&_0x26379a===_0x1effca;}return!0x1;}_0x54641e['model']['document']['registerPostFixer'](()=>{let _0x7b6285=!0x1;const _0x1eb5ff=Array['from'](_0x54641e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2302ed,data:_0x487b62}of _0x1eb5ff){const {group:_0x545718,type:_0x5418b6,subType:_0x4964f1,id:_0x33afb3}=_0x3d7c93['_splitMarkerName'](_0x2302ed);if('suggestion'==_0x545718&&_0x3d7c93['hasSuggestion'](_0x33afb3)){if('formatBlock'==_0x5418b6&&('imageStylePreApply'==_0x4964f1||'imageStylePostApply'==_0x4964f1)){const _0x538dfe=_0x3d7c93['getSuggestion'](_0x33afb3);if(_0x487b62['newRange']){const _0x1444bd=_0x538dfe['getFirstRange']()['getContainedElement']();if(_0x2c9ae8['isBlockImage'](_0x1444bd))continue;_0x3d7c93['discardSuggestion'](_0x538dfe),_0x7b6285=!0x0;}}if('insertion'==_0x5418b6&&'imageCaption'==_0x4964f1&&!_0x487b62['newRange']){const _0x1fe7f5=_0x3d7c93['getSuggestion'](_0x33afb3);_0x1fe7f5['next']&&_0x1fe7f5['next']['isInContent']&&(_0x3d7c93['discardSuggestion'](_0x1fe7f5['next']),_0x7b6285=!0x0);}}}return _0x7b6285;}),this['_registerLegacyDescription'](_0x3f575c);}['_registerLegacyDescription'](_0x5bd71b){const _0x29c6a7=this['editor'],_0x32c7c7=_0x29c6a7['locale'];_0x29c6a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x279f48=>{if('formatBlock'!=_0x279f48['type']&&'formatInline'!=_0x279f48['type'])return;const {data:_0x12f761}=_0x279f48;if(!_0x12f761||'imageStyle'!=_0x12f761['commandName'])return;const _0x4569f1=_0x12f761['commandParams'][0x0]['value'];return _0x3859e3('side'===_0x4569f1?o(_0x32c7c7,'FORMAT_SIDE_IMAGE'):_0x5bd71b[_0x4569f1]||_0x4569f1);function _0x3859e3(_0x4e9224){return{'type':'format','content':o(_0x32c7c7,'*Format:*\x20%0',_0x4e9224)};}});}}class ot extends _0x5ed9bd{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x48ab8a){super(_0x48ab8a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4d284b=this['editor'],_0x31dc68=_0x4d284b['commands']['get']('importWord'),_0x3236a7=_0x4d284b['commands']['get']('trackChanges');_0x31dc68&&(_0x31dc68['on']('execute',(_0x414ab6,[,_0x208530])=>{this['_trackChangesValueDuringImport']=_0x3236a7['value'],_0x208530['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x31dc68,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x31dc68,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3236a7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4d284b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x78704d,_0x1ed5a1){const {suggestions:_0x4721bb}=_0x1ed5a1,_0x325f81=this['editor']['commands']['get']('trackChanges'),_0x3a8737=_0x325f81['value'];this['_trackChangesValueDuringImport']!==_0x3a8737&&(_0x325f81['execute'](),this['_trackChangesExecuted']=!0x0),_0x4721bb&&_0x4721bb['forEach'](({id:_0x1c1595,type:_0x386d0d,author:_0x37422f,created_at:_0xd14f84})=>{const _0x175239={'id':_0x1c1595,'type':_0x386d0d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x37422f,'createdAt':_0xd14f84?new Date(_0xd14f84):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x175239);});}}class rt extends _0x5ed9bd{['afterInit'](){const _0x217a12=this['editor'],_0x1fa232=_0x217a12['plugins']['get']('TrackChangesEditing');if(_0x217a12['plugins']['has']('IndentEditing')&&(_0x1fa232['enableCommand']('indent'),_0x1fa232['enableCommand']('outdent')),_0x217a12['plugins']['has']('IndentBlock')){for(const _0x300b3e of['indentBlock','outdentBlock'])_0x1fa232['enableDefaultAttributesIntegration'](_0x300b3e);}const _0x27dc41=_0x217a12['locale'];_0x1fa232['registerBlockAttribute']('blockIndent'),_0x1fa232['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x27dc41,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12f561=this['editor'],_0x2f1ba6=_0x12f561['locale'],_0x301246=_0x12f561['plugins']['get']('TrackChangesEditing');_0x301246['descriptionFactory']['registerDescriptionCallback'](_0x30e315=>{if('formatBlock'!=_0x30e315['type'])return;const {data:_0x86c116}=_0x30e315;if(!_0x86c116)return;if('indentBlock'!=_0x86c116['commandName']&&'outdentBlock'!=_0x86c116['commandName'])return;const _0x6b05a8=_0x30e315['getItems']()[0x0],_0x4a43ea=_0x301246['descriptionFactory']['getItemLabel'](_0x6b05a8);return'indentBlock'==_0x86c116['commandName']?{'type':'format','content':o(_0x2f1ba6,'*Indent:*\x20%0',_0x4a43ea)}:'outdentBlock'==_0x86c116['commandName']?{'type':'format','content':o(_0x2f1ba6,'*Outdent:*\x20%0',_0x4a43ea)}:void 0x0;});}}class at extends _0x5ed9bd{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x5ed9bd{['afterInit'](){const _0xa41fc7=this['editor'];if(!_0xa41fc7['plugins']['has']('LinkEditing'))return;const _0xaf13ed=_0xa41fc7['plugins']['get']('TrackChangesEditing'),_0x18d000=_0xa41fc7['commands']['get']('link');_0xaf13ed['enableDefaultAttributesIntegration']('link'),_0xaf13ed['enableDefaultAttributesIntegration']('unlink'),_0xaf13ed['registerInlineAttribute']('linkHref');for(const _0x5d209f of _0x18d000['manualDecorators'])_0xaf13ed['registerInlineAttribute'](_0x5d209f['id']),_0xaf13ed['descriptionFactory']['registerAttributeLabel'](_0x5d209f['id'],'link\x20('+_0x5d209f['label']['toLowerCase']()+')');_0xaf13ed['descriptionFactory']['registerDescriptionCallback'](_0x3feb3e=>{if('attribute'!=_0x3feb3e['type'])return;const {data:_0x36b287}=_0x3feb3e;if(!_0x36b287||'linkHref'!=_0x36b287['key'])return;const _0x2a92cf=_0x36b287['newValue'],_0x39029e=_0xa41fc7['locale'];return{'type':'format','content':null==_0x2a92cf?o(_0x39029e,'*Remove\x20link*'):o(_0x39029e,'*Set\x20link:*\x20%0','\x22'+_0x2a92cf+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7ac64d=this['editor'],_0x548737=_0x7ac64d['locale'];_0x7ac64d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa09f2f=>{if('formatInline'!=_0xa09f2f['type'])return;const {data:_0x1cbe22}=_0xa09f2f;if(_0x1cbe22){if('link'==_0x1cbe22['commandName']){const _0x404d17=_0x1cbe22['commandParams'][0x0];return{'type':'format','content':o(_0x548737,'*Set\x20link:*\x20%0','\x22'+_0x404d17+'\x22')};}return'unlink'==_0x1cbe22['commandName']?{'type':'format','content':o(_0x548737,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x5ed9bd{['afterInit'](){const _0x129391=this['editor'],_0x28b92a=_0x129391['locale'];if(!_0x129391['plugins']['has']('LegacyListEditing'))return;const _0xb7229d=_0x129391['plugins']['get']('TrackChangesEditing'),_0x580aa9=_0x129391['plugins']['has']('LegacyTodoListEditing');function _0xf2c054(_0x23cda3){return()=>{const _0x27f94b=_0x129391['model']['document']['selection'],_0x22bc27=_0x129391['commands']['get'](_0x23cda3);if(_0x22bc27['value'])return void _0x129391['execute']('paragraph',{});const _0x331b62=_0x23cda3['slice'](0x0,-0x4),_0x19499b=function(_0x34f5ec,_0x1790f0,_0x511c43){let _0x1ff78d=Array['from'](_0x34f5ec)['filter'](_0xe8efcf=>function(_0x223f3a,_0x5f1858){return _0x5f1858['checkChild'](_0x223f3a['parent'],'listItem')&&!_0x5f1858['isObject'](_0x223f3a);}(_0xe8efcf,_0x511c43));_0x1ff78d=_0x1ff78d['filter'](_0x26e668=>!_0x26e668['is']('element','listItem')||_0x26e668['getAttribute']('listType')!=_0x1790f0);const _0x57ed37=new Set();for(const _0x4375fb of _0x1ff78d)_0x4375fb['is']('element','listItem')?_0x57ed37['add'](me(_0x4375fb)):_0x57ed37['add'](_0x4375fb);return Array['from'](_0x57ed37);}(_0x27f94b['getSelectedBlocks'](),_0x331b62,_0x129391['model']['schema']);_0x129391['model']['change'](()=>{for(const _0x2c5a61 of _0x19499b)_0xb7229d['markBlockFormat'](_0x2c5a61,{'commandName':_0x23cda3,'commandParams':[{'forceValue':!_0x22bc27['value']}],'formatGroupId':'blockName'},fe(_0x2c5a61));});};}function _0x1036e5(_0x55974e){return()=>{const _0x31469d=function(_0x998a6e){let _0x4ebc88=Array['from'](_0x998a6e);const _0x35eb94=_0x4ebc88['findIndex'](_0x2e0ea0=>'listItem'!=_0x2e0ea0['name']);return _0x35eb94>-0x1&&(_0x4ebc88=_0x4ebc88['slice'](0x0,_0x35eb94)),_0x4ebc88;}(_0x129391['model']['document']['selection']['getSelectedBlocks']()),_0x17a15b=_0x129391['model']['createRange'](_0x129391['model']['createPositionAt'](_0x31469d[0x0],'before'),_0x129391['model']['createPositionAt'](_0x31469d[_0x31469d['length']-0x1],'end'));_0x129391['model']['change'](()=>{_0xb7229d['markBlockFormat'](_0x17a15b,{'commandName':_0x55974e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x135a84){const _0x55b37c=new Set();for(const _0x1757b7 of _0x135a84){let _0x5780af=_0x1757b7['nextSibling'];for(;_0x5780af&&_0x5780af['getAttribute']('listIndent')>_0x1757b7['getAttribute']('listIndent');)_0x55b37c['add'](_0x5780af),_0x5780af=_0x5780af['nextSibling'];}return Array['from'](_0x55b37c);}(_0x31469d));});};}_0xb7229d['enableCommand']('numberedList',_0xf2c054('numberedList')),_0xb7229d['enableCommand']('bulletedList',_0xf2c054('bulletedList')),_0x580aa9&&_0xb7229d['enableCommand']('todoList',_0xf2c054('todoList')),_0xb7229d['enableCommand']('indentList',_0x1036e5('indentList')),_0xb7229d['enableCommand']('outdentList',_0x1036e5('outdentList')),_0x580aa9&&_0xb7229d['enableCommand']('checkTodoList',()=>{const _0x4cc3f6=_0x129391['commands']['get']('checkTodoList'),_0xe4e2bb=Array['from'](_0x4cc3f6['_selectedElements']);_0xe4e2bb['filter'](_0xa133d6=>_0xa133d6['getAttribute']('todoListChecked')!=_0x4cc3f6['value']),_0x129391['model']['change'](()=>{for(const _0x449487 of _0xe4e2bb)_0xb7229d['markBlockFormat'](_0x449487,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4cc3f6['value']}]});});}),_0xb7229d['descriptionFactory']['registerElementLabel']('listItem',_0x4c9ab0=>o(_0x28b92a,'ELEMENT_LIST_ITEM',_0x4c9ab0)),_0xb7229d['descriptionFactory']['registerDescriptionCallback'](_0x3c31c8=>{if('formatBlock'!=_0x3c31c8['type']&&'formatInline'!=_0x3c31c8['type'])return;const {data:_0x4b4600}=_0x3c31c8;if(_0x4b4600){if('numberedList'==_0x4b4600['commandName']||'bulletedList'==_0x4b4600['commandName']||'todoList'==_0x4b4600['commandName'])switch(_0x4b4600['commandName']['replace']('List','')){case'bulleted':return _0x3cec9a(o(_0x28b92a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3cec9a(o(_0x28b92a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3cec9a(o(_0x28b92a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4b4600['commandName'])return{'type':'format','content':o(_0x28b92a,'*Indent:*\x20%0',o(_0x28b92a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4b4600['commandName'])return{'type':'format','content':o(_0x28b92a,'*Outdent:*\x20%0',o(_0x28b92a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4b4600['commandName'])return _0x4b4600['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28b92a,'*Check\x20item*')}:{'type':'format','content':o(_0x28b92a,'*Uncheck\x20item*')};}function _0x3cec9a(_0x144d11){return{'type':'format','content':o(_0x28b92a,'*Change\x20to:*\x20%0',_0x144d11)};}});}}function me(_0x3f382f){const _0x76d29e=_0x3f382f['getAttribute']('listIndent');if(0x0==_0x76d29e)return _0x3f382f;let _0x1b2645=_0x3f382f;for(;_0x3f382f['previousSibling']&&_0x3f382f['previousSibling']['is']('element','listItem');){const _0x31ae0=_0x3f382f['previousSibling']['getAttribute']('listIndent');if(_0x31ae0==_0x76d29e)_0x1b2645=_0x3f382f['previousSibling'];else{if(_0x31ae0<_0x76d29e)break;}_0x3f382f=_0x3f382f['previousSibling'];}return _0x1b2645;}function fe(_0xd72fe3){const _0x3f29c8=[];if(_0xd72fe3['is']('element','listItem')&&_0xd72fe3['getAttribute']('listIndent')>0x0){let _0x47d23b=_0xd72fe3['nextSibling'];for(;_0x47d23b&&'listItem'==_0x47d23b['name']&&_0x47d23b['getAttribute']('listIndent')==_0xd72fe3['getAttribute']('listIndent');)_0x3f29c8['push'](_0x47d23b),_0x47d23b=_0x47d23b['nextSibling'];}return _0x3f29c8;}class K extends _0x5ed9bd{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3eb8fb=this['editor']['config']['get']('list.properties'),_0x13cfd2=this['editor']['plugins']['get']('TrackChangesEditing');_0x3eb8fb['styles']&&_0x13cfd2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3eb8fb['reversed']&&_0x13cfd2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3eb8fb['startIndex']&&_0x13cfd2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x13cfd2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x192d8e,_0x2ba8f0={}){const _0x430111=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8b0555=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x430111['markMultiRangeBlockFormat'](_0x8b0555,{'commandName':'listStyle','commandParams':[{'type':_0x2ba8f0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4e293b,_0x15167b={}){const _0x923c1d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e3dec=this['_getSuggestionBlocks'](_0x5660a9=>_0x5660a9['is']('element','listItem')&&'numbered'===_0x5660a9['getAttribute']('listType'));if(_0x2e3dec['length']<0x1)return;const _0x12259b=_0x2e3dec['map'](_0x1b1da2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b1da2,'before'),this['editor']['model']['createPositionAt'](_0x1b1da2,0x0)));this['editor']['model']['change'](()=>{_0x923c1d['markMultiRangeBlockFormat'](_0x12259b,{'commandName':'listReversed','commandParams':[{'reversed':_0x15167b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xdefd,_0x4fba26={}){const _0x73cbfd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f899b=this['_getSuggestionBlocks'](_0x1fffca=>_0x1fffca['is']('element','listItem')&&'numbered'===_0x1fffca['getAttribute']('listType'));if(_0x1f899b['length']<0x1)return;const _0x10d82c=_0x1f899b['map'](_0x4b48a4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b48a4,'before'),this['editor']['model']['createPositionAt'](_0x4b48a4,0x0)));this['editor']['model']['change'](()=>{_0x73cbfd['markMultiRangeBlockFormat'](_0x10d82c,{'commandName':'listStart','commandParams':[{'startIndex':_0x4fba26['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3bf66b){if('formatBlock'!=_0x3bf66b['type']&&'formatInline'!=_0x3bf66b['type'])return;const _0x3cad1c=this['editor']['locale'],{data:_0xa861c4}=_0x3bf66b;if(!_0xa861c4)return;let _0xe34c42,_0x3701f8;switch(_0xa861c4['commandName']){case'listStyle':_0xe34c42='*Change\x20to:*\x20%0',_0x3701f8={'type':'format','content':o(_0x3cad1c,_0xe34c42,o(_0x3cad1c,this['_getTranslationKeyForListStyle'](_0xa861c4['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe34c42=_0xa861c4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3701f8={'type':'format','content':o(_0x3cad1c,_0xe34c42)};break;case'listStart':_0xe34c42='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3701f8={'type':'format','content':o(_0x3cad1c,_0xe34c42,_0xa861c4['commandParams'][0x0]['startIndex'])};}return _0x3701f8;}['_getSuggestionBlocksForListStyle'](){const _0x549ce4=this['editor']['plugins']['get']('LegacyListUtils');let _0x158569=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x158569[0x0]?.['is']('element','listItem')&&_0x158569['unshift'](..._0x549ce4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x158569[_0x158569['length']-0x1]?.['is']('element','listItem')&&_0x158569['push'](..._0x549ce4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x158569=[...new Set(_0x158569)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x158569=_0x158569['filter'](_0x1641a7=>_0x1641a7['is']('element','listItem'))),_0x158569;}['_getSuggestionBlocks'](_0x12243c){const _0xe89b33=this['editor']['plugins']['get']('LegacyListUtils');let _0x19abdc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x12243c)['map'](_0x38ae92=>{const _0x1e5b76=this['editor']['model']['createPositionAt'](_0x38ae92,0x0);return[..._0xe89b33['getSiblingNodes'](_0x1e5b76,'backward'),..._0xe89b33['getSiblingNodes'](_0x1e5b76,'forward')];})['flat']();return _0x19abdc=[...new Set(_0x19abdc)],_0x19abdc;}['_getTranslationKeyForListStyle'](_0x3299f8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3299f8)||'default')['toUpperCase']()+'_LIST_'+_0x3299f8['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x5ed9bd{['afterInit'](){const _0xd30a4c=this['editor'];if(!_0xd30a4c['plugins']['has']('MediaEmbedEditing'))return;const _0x508e67=_0xd30a4c['plugins']['get']('TrackChangesEditing'),_0x52b674=_0xd30a4c['locale'];_0x508e67['enableCommand']('mediaEmbed'),_0x508e67['descriptionFactory']['registerElementLabel']('media',_0x48f3cb=>o(_0x52b674,'ELEMENT_MEDIA',_0x48f3cb)),_0xd30a4c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4a1e96,{writer:_0x239c8d,options:_0x5e1695})=>{if(_0x5e1695['showSuggestionHighlights'])return _0x239c8d['createEmptyElement']('div');},'converterPriority':'high'}),_0xd30a4c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4f903a,_0x60da,_0x57269a)=>{_0x57269a['options']['showSuggestionHighlights']&&_0x4f903a['stop']();},{'priority':'high'});}}class gt extends _0x5ed9bd{['afterInit'](){const _0x55d9ca=this['editor'];_0x55d9ca['plugins']['has']('MentionEditing')&&_0x55d9ca['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x5ed9bd{['afterInit'](){const _0x18b777=this['editor'],_0x9616b2=_0x18b777['plugins']['get']('TrackChangesEditing');_0x18b777['plugins']['has']('MultiLevelList')&&(_0x9616b2['enableDefaultAttributesIntegration']('multiLevelList'),_0x9616b2['registerBlockAttribute']('listMarkerStyle'),_0x9616b2['descriptionFactory']['registerDescriptionCallback'](_0x3695ae=>this['handleDescriptions'](_0x3695ae)));}['handleDescriptions'](_0x22c23d){const _0x30f440=this['editor']['locale'],{data:_0xe62e92}=_0x22c23d,_0x5913f0={'type':'format','content':''};if(_0xe62e92&&'listMarkerStyle'==_0xe62e92['key']){if(!_0xe62e92['oldValue'])return{'type':'format','content':o(_0x30f440,'*Set\x20format:*\x20%0',o(_0x30f440,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xe62e92['newValue']+')'};if(!_0xe62e92['newValue']){let _0x1483d7=_0x22c23d['head'];for(;_0x1483d7;){if(_0x1483d7['data']&&'listType'==_0x1483d7['data']['key']&&_0x1483d7['data']['newValue'])return _0x5913f0;_0x1483d7=_0x1483d7['next'];}return{'type':'format','content':o(_0x30f440,'*Remove\x20format:*\x20%0',o(_0x30f440,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xe62e92['oldValue']+')'};}}}}class mt extends _0x5ed9bd{['afterInit'](){const _0x8c3df8=this['editor'];if(!_0x8c3df8['plugins']['has']('PageBreakEditing'))return;_0x8c3df8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x16c4c3=_0x8c3df8['plugins']['get']('TrackChangesEditing'),_0x683c9d=_0x8c3df8['locale'];_0x16c4c3['descriptionFactory']['registerElementLabel']('pageBreak',_0x48e29a=>o(_0x683c9d,'ELEMENT_PAGE_BREAK',_0x48e29a));}}class dt extends _0x5ed9bd{['afterInit'](){const _0x57905f=this['editor'];if(!_0x57905f['plugins']['has']('Paragraph'))return;const _0x588c8a=_0x57905f['locale'],_0x89ac1f=_0x57905f['plugins']['get']('TrackChangesEditing');_0x89ac1f['descriptionFactory']['registerElementLabel']('paragraph',_0x27a49c=>o(_0x588c8a,'ELEMENT_PARAGRAPH',_0x27a49c)),_0x89ac1f['enableDefaultAttributesIntegration']('paragraph'),_0x89ac1f['enableCommand']('insertParagraph'),_0x57905f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x57905f),{'priority':'highest'}),_0x57905f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5ed916,_0x1022c7,_0x4c2f46)=>{_0x4c2f46['options']['showSuggestionHighlights']&&nr(_0x57905f,{'showActiveMarker':!0x1})(_0x5ed916,_0x1022c7,_0x4c2f46);},{'priority':'highest'});const _0x1f6391=_0x89ac1f['descriptionFactory'];_0x1f6391['registerDescriptionCallback'](_0x432277=>{if('insertion'!==_0x432277['type'])return;const {start:_0x3d63e2,end:_0x37a151}=_0x432277['getFirstRange']();if(!_0x3d63e2['isTouching'](_0x37a151)||!_0x3d63e2['nodeAfter'])return;const _0x40be08=_0x57905f['model']['schema'],_0x102457=_0x3d63e2['nodeAfter'];return _0x40be08['isBlock'](_0x102457)&&!_0x40be08['isLimit'](_0x102457)&&_0x40be08['checkChild'](_0x102457,'$text')?{'type':'insertion','content':o(_0x588c8a,'*Insert:*\x20%0',_0x1f6391['getItemLabel'](_0x102457,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ccaa8=this['editor'],_0x3bd786=_0x1ccaa8['locale'];_0x1ccaa8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50b6f6=>{if('formatBlock'!=_0x50b6f6['type'])return;const {data:_0x472578}=_0x50b6f6;return _0x472578&&'paragraph'==_0x472578['commandName']?{'type':'format','content':o(_0x3bd786,'*Change\x20to:*\x20%0',o(_0x3bd786,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x186edc,{showActiveMarker:_0x58496a=!0x0}={}){return(_0x275619,_0x5812f1,_0x491acc)=>{const _0x4f3791=_0x186edc['plugins']['get']('TrackChangesEditing'),_0x2ebe46=_0x5812f1['markerRange']['start'],_0x5d7123=_0x5812f1['markerRange']['end'],_0x3c010e=_0x186edc['model']['schema'];if(!_0x2ebe46['isTouching'](_0x5d7123)||!_0x2ebe46['nodeAfter'])return;const _0x33d562=_0x2ebe46['nodeAfter'];if(_0x3c010e['isBlock'](_0x33d562)&&!_0x3c010e['isLimit'](_0x33d562)&&_0x3c010e['checkChild'](_0x33d562,'$text')){if(!_0x491acc['consumable']['consume'](_0x5812f1['markerRange'],_0x275619['name']))return;const _0x23df6c=_0x491acc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5a46f8=_0x491acc['mapper']['toViewPosition'](_0x5d7123);_0x58496a&&_0x4f3791['activeMarkers']['includes'](_0x5812f1['markerName'])&&_0x491acc['writer']['addClass']('ck-suggestion-marker--active',_0x23df6c),_0x491acc['writer']['insert'](_0x5a46f8,_0x23df6c),_0x491acc['mapper']['bindElementToMarker'](_0x23df6c,_0x5812f1['markerName']);}};}class pt extends _0x5ed9bd{['afterInit'](){const _0x3b06da=this['editor'];if(!_0x3b06da['plugins']['has']('RemoveFormatEditing'))return;_0x3b06da['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37ca38=this['editor'];_0x37ca38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59d043=>{if('formatBlock'!=_0x59d043['type']&&'formatInline'!=_0x59d043['type'])return;const {data:_0x5e5655}=_0x59d043;return _0x5e5655&&'removeFormat'==_0x5e5655['commandName']?{'type':'format','content':o(_0x37ca38['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x5ed9bd{['afterInit'](){const _0x2bd98c=this['editor'];if(!_0x2bd98c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2deb48=_0x2bd98c['plugins']['get']('TrackChangesEditing');_0x2deb48['enableCommand']('goToPreviousRestrictedEditingException'),_0x2deb48['enableCommand']('goToNextRestrictedEditingException');const _0x91ab38=_0x2bd98c['plugins']['get']('RestrictedEditingModeEditing');_0x91ab38['enableCommand']('trackChanges'),_0x91ab38['enableCommand']('acceptSuggestion'),_0x91ab38['enableCommand']('discardSuggestion'),_0x91ab38['enableCommand']('acceptAllSuggestions'),_0x91ab38['enableCommand']('discardAllSuggestions'),_0x91ab38['enableCommand']('acceptSelectedSuggestions'),_0x91ab38['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x5ed9bd{static get['requires'](){return[_0x433e09];}['init'](){const _0x3f1302=this['editor'],_0x5c35a0=_0x3f1302['plugins']['get']('TrackChangesEditing');_0x5c35a0['enableCommand']('shiftEnter'),_0x3f1302['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x3f1302),{'priority':'high'}),_0x3f1302['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x3f1302),{'priority':'high'}),_0x3f1302['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1532ae,_0x4ae75e,_0x205c00)=>{_0x205c00['options']['showSuggestionHighlights']&&de(_0x3f1302,{'showActiveMarker':!0x1})(_0x1532ae,_0x4ae75e,_0x205c00);}),_0x5c35a0['descriptionFactory']['registerElementLabel']('softBreak',_0x3a2d23=>o(_0x3f1302['locale'],'ELEMENT_LINE_BREAK',_0x3a2d23));}}function de(_0x239386,{showActiveMarker:_0x1401b5=!0x0}={}){return(_0x39b308,_0xb8d281,_0x2fd809)=>{const _0x43d2ee=_0x239386['plugins']['get']('TrackChangesEditing');if(!_0x2fd809['consumable']['test'](_0xb8d281['markerRange'],_0x39b308['name']))return;const _0x14ec8a=_0x239386['model'];for(const _0x2658d8 of _0xb8d281['markerRange']['getItems']()){if(!_0x2658d8['is']('element','softBreak'))continue;const _0x14bac1='deletion'==_0xb8d281['markerName']['split'](':')[0x1]?'merge':'split',_0x6935e1=_0x2fd809['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14bac1}),_0x49c473=_0x2fd809['mapper']['toViewPosition'](_0x14ec8a['createPositionBefore'](_0x2658d8));_0x1401b5&&_0x43d2ee['activeMarkers']['includes'](_0xb8d281['markerName'])&&_0x2fd809['writer']['addClass']('ck-suggestion-marker--active',_0x6935e1),_0x2fd809['writer']['insert'](_0x49c473,_0x6935e1),_0x2fd809['mapper']['bindElementToMarker'](_0x6935e1,_0xb8d281['markerName']);}};}class wt extends _0x5ed9bd{['afterInit'](){const _0x1d5808=this['editor'],_0x49d9ba=_0x1d5808['model'],_0x3ae29c=_0x1d5808['locale'];if(!_0x1d5808['plugins']['has']('StandardEditingModeEditing'))return;const _0x383173=_0x1d5808['plugins']['get']('TrackChangesEditing'),_0x545a5a='restrictedEditingException',_0x1d3bbc=_0x1d5808['commands']['get'](_0x545a5a);_0x383173['enableCommand'](_0x545a5a,(_0x3e50a2,_0x56f53b={})=>{const _0x371861=_0x49d9ba['document']['selection'];if(_0x371861['isCollapsed'])return void _0x3e50a2(_0x56f53b);const _0x1cd89a=void 0x0!==_0x56f53b['forceValue']?_0x56f53b['forceValue']:!_0x1d3bbc['value'];_0x49d9ba['change'](()=>{const _0x7e9dff=Array['from'](_0x371861['getRanges']());for(const _0xafd46e of _0x7e9dff){const _0x1e46f8=_0x1cd89a?[_0xafd46e]:io(_0x545a5a,_0xafd46e,_0x49d9ba);for(const _0x30d4eb of _0x1e46f8)_0x383173['markInlineFormat'](_0x30d4eb,{'commandName':_0x545a5a,'commandParams':[{'forceValue':_0x1cd89a}]});}});}),_0x383173['descriptionFactory']['registerDescriptionCallback'](_0x4e54ff=>{if('formatBlock'!=_0x4e54ff['type']&&'formatInline'!=_0x4e54ff['type'])return;const {data:_0x483d35}=_0x4e54ff;return _0x483d35&&_0x483d35['commandName']==_0x545a5a?_0x483d35['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ae29c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3ae29c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x5ed9bd{['afterInit'](){const _0x943b74=this['editor'];if(!_0x943b74['plugins']['has']('Style')||!_0x943b74['plugins']['has']('DataSchema'))return;const _0x1f1d57=_0x943b74['plugins']['get']('TrackChangesEditing'),_0x3619c4=_0x943b74['locale'],_0x4c4d53=_0x943b74['config']['get']('style')||{},_0x3852bf=_0x943b74['plugins']['get']('GeneralHtmlSupport'),_0x572164=_0x943b74['plugins']['get']('StyleUtils')['normalizeConfig'](_0x943b74['plugins']['get']('DataSchema'),_0x4c4d53['definitions']);_0x1f1d57['enableDefaultAttributesIntegration']('style');const _0x538adc=new Set();for(const _0x2c9c80 of _0x572164['block']){const _0x6a94a3=_0x3852bf['getGhsAttributeNameForElement'](_0x2c9c80['element']);_0x538adc['add'](_0x6a94a3);}const _0x7e0bab=new Set();for(const _0x4bdb54 of _0x572164['inline']){const _0x4219e4=_0x3852bf['getGhsAttributeNameForElement'](_0x4bdb54['element']);_0x7e0bab['add'](_0x4219e4);for(const _0x7898dd of _0x4bdb54['ghsAttributes'])_0x7e0bab['add'](_0x7898dd);}for(const _0x221ab7 of _0x538adc)_0x1f1d57['registerBlockAttribute'](_0x221ab7),_0x1f1d57['descriptionFactory']['registerAttributeLabel'](_0x221ab7,o(_0x3619c4,'FORMAT_STYLE'));for(const _0x40c1dc of _0x7e0bab)_0x1f1d57['registerInlineAttribute'](_0x40c1dc),_0x1f1d57['descriptionFactory']['registerAttributeLabel'](_0x40c1dc,o(_0x3619c4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4066e3=this['editor'],_0x20ce46=_0x4066e3['locale'];_0x4066e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x361beb=>{if('formatBlock'!=_0x361beb['type']&&'formatInline'!=_0x361beb['type'])return;const {data:_0x33e06b}=_0x361beb;return _0x33e06b&&'style'===_0x33e06b['commandName']?_0x33e06b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20ce46,'*Set\x20format:*\x20%0',_0x33e06b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x20ce46,'*Remove\x20format:*\x20%0',_0x33e06b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x5ed9bd{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x35e874){super(_0x35e874),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1abea8=this['editor'],_0xabaeea=_0x1abea8['model']['document']['selection'];if(!_0x1abea8['plugins']['has']('TableEditing'))return;const _0x7c903c=_0x1abea8['locale'],_0x35220c=_0x1abea8['plugins']['get']('TrackChangesEditing'),_0x17faac=_0x1abea8['plugins']['get']('TableUtils');_0x35220c['descriptionFactory']['registerElementLabel']('table',_0xc08623=>o(_0x7c903c,'ELEMENT_TABLE',_0xc08623)),this['_setupColumnsRowsFixing'](),_0x35220c['enableCommand']('insertTable'),_0x35220c['enableCommand']('selectTableRow'),_0x35220c['enableCommand']('selectTableColumn');for(const _0x375563 of['insertTableRowAbove','insertTableRowBelow']){const _0x197d50=_0x1abea8['commands']['get'](_0x375563);_0x35220c['enableCommand'](_0x375563,_0x3f8bb4=>{_0x1abea8['model']['change'](_0x5c7600=>{_0x3f8bb4();const _0x5e31b9='above'===_0x197d50['order'],_0xfdc241=_0x17faac['getSelectionAffectedTableCells'](_0xabaeea),_0x1a5030=_0x17faac['getRowIndexes'](_0xfdc241),_0xa7a533=_0x5e31b9?_0x1a5030['first']-0x1:_0x1a5030['last']+0x1,_0x466023=_0xfdc241[0x0]['findAncestor']('table'),_0x194070=_0x17faac['createTableWalker'](_0x466023,{'startRow':_0xa7a533,'endRow':_0xa7a533}),_0x3a682c=Array['from'](_0x194070)['map'](_0x2abe53=>_0x5c7600['createRangeOn'](_0x2abe53['cell']));_0x35220c['markMultiRangeInsertion'](_0x3a682c,'tableRow');});});}for(const _0x5ae247 of['insertTableColumnLeft','insertTableColumnRight']){const _0x112171=_0x1abea8['commands']['get'](_0x5ae247);_0x35220c['enableCommand'](_0x5ae247,_0x471614=>{_0x1abea8['model']['change'](_0x2d0f21=>{_0x471614();const _0x3bbcdc='left'===_0x112171['order'],_0x33487c=_0x17faac['getSelectionAffectedTableCells'](_0xabaeea),_0x50ed67=_0x17faac['getColumnIndexes'](_0x33487c),_0x22cdde=_0x3bbcdc?_0x50ed67['first']-0x1:_0x50ed67['last']+0x1,_0x209876=_0x33487c[0x0]['findAncestor']('table'),_0x11d018=_0x17faac['createTableWalker'](_0x209876,{'startRow':0x0,'column':_0x22cdde,'includeAllSlots':!0x1}),_0xecdfd1=Array['from'](_0x11d018)['map'](_0x146bca=>_0x2d0f21['createRangeOn'](_0x146bca['cell']));_0x35220c['markMultiRangeInsertion'](_0xecdfd1,'tableColumn');});});}for(const _0x286583 of['removeTableRow','removeTableColumn']){const _0x752493=_0x286583['substr'](0xb),_0x5dcfb0=_0x752493['toLowerCase'](),_0x44093a=_0x5dcfb0['substr'](0x0,0x3)+'span',_0x32f37a='table'+_0x752493,_0x2116eb='min'+_0x752493,_0x1d9f72='max'+_0x752493;_0x35220c['enableCommand'](_0x286583,()=>{_0x1abea8['model']['change'](_0x2563ab=>{const _0xc84a98=_0x17faac['getSelectionAffectedTableCells'](_0xabaeea),_0x328fe7=_0xc84a98[0x0]['findAncestor']('table');let _0x132f2a;if('removeTableRow'==_0x286583){const _0x42131e=_0x17faac['getRowIndexes'](_0xc84a98);_0x132f2a={'startRow':_0x42131e['first'],'endRow':_0x42131e['last'],'includeAllSlots':!0x0};}else{const _0xf3d1ef=_0x17faac['getColumnIndexes'](_0xc84a98);_0x132f2a={'startColumn':_0xf3d1ef['first'],'endColumn':_0xf3d1ef['last'],'includeAllSlots':!0x0};}const _0xabc06=_0x17faac['createTableWalker'](_0x328fe7,_0x132f2a),_0x371ffc=Array['from'](_0xabc06)['map'](({cell:_0x5e44b3})=>_0x5e44b3),_0x4ea140=Ee(_0x371ffc['filter'](_0x5f20eb=>_0x5f20eb['hasAttribute'](_0x44093a))),_0x374944=Ee(_0x371ffc['filter'](_0x2003ff=>!_0x2003ff['hasAttribute'](_0x44093a)))['map'](_0x4ca288=>_0x2563ab['createRangeOn'](_0x4ca288)),_0x500adc=_0x35220c['markMultiRangeDeletion'](_0x374944,_0x32f37a);if(_0x500adc&&('tableRow'==_0x500adc['subType']||'tableColumn'==_0x500adc['subType'])){const _0x2676ce=this['_getSuggestionCoords'](_0x500adc);for(const _0x48a667 of _0x4ea140){const _0xbad6de=_0x2563ab['createRangeOn'](_0x48a667),_0x468199=_0x17faac['getCellLocation'](_0x48a667),_0x134b54=_0x48a667['getAttribute'](_0x44093a)-0x1,_0x478e72=_0x2676ce[_0x2116eb],_0x56c56c=_0x2676ce[_0x1d9f72];_0x478e72<=_0x468199[_0x5dcfb0]&&_0x468199[_0x5dcfb0]+_0x134b54<=_0x56c56c&&_0x500adc['addRange'](_0xbad6de);}}});});}function _0x28bbd4(_0x14a34a){const _0x25000f=Array['from'](_0xabaeea['getRanges']())['map'](_0x32d723=>_0x4022b5['fromRange'](_0x32d723));_0x1abea8['model']['change'](_0x36d817=>{const _0x1721a4=_0x36d817['batch'];_0x14a34a=_0x14a34a['filter'](_0x23520b=>'$graveyard'!=_0x23520b['root']['rootName']),_0x36d817['setSelection'](_0x14a34a),_0x1abea8['commands']['get']('removeTableRow')['refresh'](),_0x1abea8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1abea8['model']['enqueueChange'](()=>{_0x1abea8['model']['enqueueChange'](_0x1721a4,_0x1d31e4=>{const _0x481f00=_0x25000f['filter'](_0x4b2a2f=>'$graveyard'!=_0x4b2a2f['root']['rootName']);_0x481f00['length']>0x0&&_0x1d31e4['setSelection'](_0x481f00);for(const _0x54828a of _0x25000f)_0x54828a['detach']();});});});}function _0x9cbced(_0x277bca){_0x1abea8['model']['change'](_0x2c56ef=>{const _0x5cab5b=Array['from'](_0xabaeea['getRanges']())['map'](_0xda000e=>_0x4022b5['fromRange'](_0xda000e)),_0x144bda=[];for(const _0x52078e of _0x277bca)for(const _0x4c7ae1 of _0x52078e['getItems']({'shallow':!0x0}))_0x144bda['push'](_0x4c7ae1);for(const _0x529e80 of _0x144bda)'$graveyard'!=_0x529e80['root']['rootName']&&(_0x2c56ef['setSelection'](_0x2c56ef['createPositionAt'](_0x529e80,0x0)),_0x1abea8['commands']['get']('removeTableColumn')['refresh'](),_0x1abea8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1543a6=_0x5cab5b['filter'](_0x475e60=>'$graveyard'!=_0x475e60['root']['rootName']);_0x1543a6['length']>0x0&&_0x2c56ef['setSelection'](_0x1543a6);for(const _0xd74d8e of _0x5cab5b)_0xd74d8e['detach']();});}function _0x5a1c6c(_0x24390b,_0x36f568){return _0x36f568['every'](_0x415894=>_0x24390b['some'](_0x4cc1e3=>_0x4cc1e3['end']['isEqual'](_0x415894['start'])||_0x415894['end']['isEqual'](_0x4cc1e3['start'])));}function _0x4b9e0b(_0x1ab219,_0x492c69){return!_0x1ab219['some'](_0x21d7a9=>_0x492c69['some'](_0x4856ea=>_0x21d7a9['isIntersecting'](_0x4856ea)))&&_0x1ab219['some'](_0x7a033c=>_0x492c69['some'](_0x3dd647=>_0x7a033c['end']['isTouching'](_0x3dd647['start'])));}_0x1abea8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x26a314,_0x1528d6,_0x3c8206)=>{if(!_0x3c8206['options']['showSuggestionHighlights'])return;const _0x1a3e33=_0x1528d6['item'];if(!_0x1a3e33)return;const _0xdf2a8e=_0x3c8206['mapper']['toViewElement'](_0x1a3e33);function _0x109107(_0x4fa5d1){return Array['isArray'](_0x4fa5d1)?_0x4fa5d1:[_0x4fa5d1];}_0xdf2a8e&&'tableCell'===_0x1a3e33['name']&&_0x483a9d(_0xdf2a8e,_0x3c8206['writer'],(_0x4d3c9c,_0x19794d,_0xa7e4ef)=>_0xa7e4ef['addClass'](_0x109107(_0x19794d['classes']),_0x4d3c9c),(_0x357128,_0xc93e82,_0x2fa409)=>_0x2fa409['removeClass'](_0x109107(_0xc93e82['classes']),_0x357128));},{'priority':'highest'}),_0x35220c['descriptionFactory']['registerDescriptionCallback'](_0xcbd214=>{if('insertion'!=_0xcbd214['type']&&'deletion'!=_0xcbd214['type'])return;const _0x4246da=_0xcbd214['getContainedElement']();if(null!=_0x4246da&&_0x4246da['is']('element','table')){if('insertion'==_0xcbd214['type']){const _0x36b238=_0xcbd214['getItems']()['filter'](_0x3cf267=>_0x3cf267['is']('$textProxy'))['map'](_0x5901c4=>_0x5901c4['data']);if(_0x36b238['length'])return{'type':'insertion','content':o(_0x7c903c,'*Insert:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36b238['join']('\x20')+'\x22'))};}if('deletion'==_0xcbd214['type']){const _0x160bcb=_0xcbd214['getItems']()['filter'](_0x18938d=>_0x18938d['is']('$textProxy'))['map'](_0x4e4fc6=>_0x4e4fc6['data']);if(_0x160bcb['length'])return{'type':'deletion','content':o(_0x7c903c,'*Remove:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x160bcb['join']('\x20')+'\x22'))};}}}),_0x35220c['descriptionFactory']['registerDescriptionCallback'](_0x479a86=>{if('tableRow'==_0x479a86['subType']){const _0x13f975=_0x479a86['getItems']()['filter'](_0x3c3b26=>_0x3c3b26['is']('$textProxy'))['map'](_0x589c30=>_0x589c30['data']),_0x58a527=this['_getSuggestionCoords'](_0x479a86),_0x576415=_0x58a527['maxRow']-_0x58a527['minRow']+0x1;if('insertion'==_0x479a86['type'])return _0x13f975['length']?{'type':'insertion','content':o(_0x7c903c,'*Insert:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x576415,'\x22'+_0x13f975['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x7c903c,'*Insert:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_ROW',_0x576415))};if('deletion'==_0x479a86['type'])return _0x13f975['length']?{'type':'deletion','content':o(_0x7c903c,'*Remove:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x576415,'\x22'+_0x13f975['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x7c903c,'*Remove:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_ROW',_0x576415))};}if('tableColumn'==_0x479a86['subType']){const _0x1b0c80=_0x479a86['getItems']()['filter'](_0x481111=>_0x481111['is']('$textProxy'))['map'](_0x1121aa=>_0x1121aa['data']),_0x381af3=this['_getSuggestionCoords'](_0x479a86),_0x555025=_0x381af3['maxColumn']-_0x381af3['minColumn']+0x1;if('insertion'==_0x479a86['type'])return _0x1b0c80['length']?{'type':'insertion','content':o(_0x7c903c,'*Insert:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x555025,'\x22'+_0x1b0c80['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x7c903c,'*Insert:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_COLUMN',_0x555025))};if('deletion'==_0x479a86['type'])return _0x1b0c80['length']?{'type':'deletion','content':o(_0x7c903c,'*Remove:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x555025,'\x22'+_0x1b0c80['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x7c903c,'*Remove:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_COLUMN',_0x555025))};}}),_0x35220c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x28bbd4),_0x35220c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x28bbd4),_0x35220c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x9cbced),_0x35220c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x9cbced),_0x35220c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5a1c6c),_0x35220c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5a1c6c),_0x35220c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4b9e0b),_0x35220c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4b9e0b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x34c0bb=this['editor'],_0x597100=_0x34c0bb['model']['document']['selection'];return(_0x1c91a0,_0x1c78c5)=>{_0x34c0bb['model']['change'](_0x25e609=>{const {commandName:_0x4d33da,commandParams:_0xc030bb}=_0x1c78c5;let _0x5e4fb2=_0x1c91a0[0x0]['end']['nodeBefore'];_0xc030bb&&_0xc030bb[0x0]&&!0x1===_0xc030bb[0x0]['forceValue']&&(_0x5e4fb2=_0x1c91a0[0x0]['start']['nodeAfter']);const _0x313959=_0x25e609['createRangeIn'](_0x5e4fb2);if('$graveyard'==_0x313959['root']['rootName'])return;const _0x3629fc=Array['from'](_0x597100['getRanges']())['map'](_0x42166e=>_0x4022b5['fromRange'](_0x42166e));_0x25e609['setSelection'](_0x313959),_0x34c0bb['commands']['get'](_0x4d33da)['refresh'](),_0xc030bb['push']({'forceDefaultExecution':!0x0}),_0x34c0bb['execute'](_0x4d33da,..._0xc030bb);const _0x3b0f46=_0x3629fc['filter'](_0x4ecedb=>'$graveyard'!=_0x4ecedb['root']['rootName']);_0x3b0f46['length']>0x0&&_0x25e609['setSelection'](_0x3b0f46);for(const _0x5a8a76 of _0x3629fc)_0x5a8a76['detach']();});};}['_getCoordsForCells'](_0xb82c9e){const _0x179ee5=this['editor']['plugins']['get']('TableUtils');let _0x19855a=Number['MAX_SAFE_INTEGER'],_0x12d662=Number['MIN_SAFE_INTEGER'],_0x1bcf6e=Number['MAX_SAFE_INTEGER'],_0x48faf9=Number['MIN_SAFE_INTEGER'];for(const _0xdee923 of _0xb82c9e){if('$graveyard'==_0xdee923['root']['rootName'])continue;const {row:_0x48b044,column:_0x207a24}=_0x179ee5['getCellLocation'](_0xdee923),_0x889187=_0xdee923['hasAttribute']('rowspan')?_0xdee923['getAttribute']('rowspan')-0x1:0x0,_0xa659c3=_0xdee923['hasAttribute']('colspan')?_0xdee923['getAttribute']('colspan')-0x1:0x0;_0x19855a=_0x48b044<_0x19855a?_0x48b044:_0x19855a,_0x12d662=_0x48b044+_0x889187>_0x12d662?_0x48b044+_0x889187:_0x12d662,_0x1bcf6e=_0x207a24<_0x1bcf6e?_0x207a24:_0x1bcf6e,_0x48faf9=_0x207a24+_0xa659c3>_0x48faf9?_0x207a24+_0xa659c3:_0x48faf9;}return{'minRow':_0x19855a,'maxRow':_0x12d662,'minColumn':_0x1bcf6e,'maxColumn':_0x48faf9};}['_setupColumnsRowsFixing'](){const _0x3a15ed=this['editor'],_0x9fe0c4=_0x3a15ed['plugins']['get']('TrackChangesEditing'),_0x33d55f=_0x3a15ed['plugins']['get']('TableUtils');_0x3a15ed['model']['document']['on']('change:data',()=>{const _0xc3cffd=Array['from'](_0x3a15ed['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e1833,data:_0x236dca}of _0xc3cffd){const {group:_0x494b2f,id:_0x56980a,subType:_0x2df591}=_0x9fe0c4['_splitMarkerName'](_0x4e1833);if('suggestion'!=_0x494b2f)continue;if(null!=_0x236dca['oldRange'])continue;const _0xca62fc=_0x9fe0c4['getSuggestion'](_0x56980a);this['_tablePostFixingSubtypes']['includes'](_0x2df591)&&this['_tableSuggestions']['add'](_0xca62fc);}},{'priority':'low'});const _0x968f87=(_0x47912e,_0xc86bef)=>{let _0x4771a1=!0x1;const _0x5f591d=_0xc86bef['createRangeOn'](_0x47912e),_0x5f0c93=_0x47912e['findAncestor']('table'),_0x17c79f=_0x33d55f['getCellLocation'](_0x47912e);for(const _0x534526 of this['_tableSuggestions']){const _0x47af0c=_0x534526['subType'],_0x4660dd=_0x47af0c['startsWith']('tablePaste'),_0xf7ca53=_0x47af0c['substr'](_0x4660dd?0xa:0x5),_0x34607d=_0xf7ca53['toLowerCase'](),_0x2691e9=_0x34607d['substr'](0x0,0x3)+'span',_0x385878='min'+_0xf7ca53,_0x565fe='max'+_0xf7ca53;if(!_0x534526['isInContent'])continue;if(_0x5f0c93!=_0x534526['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x534526['isIntersectingWithRange'](_0x5f591d))continue;const _0x1ff74e=_0x47912e['hasAttribute'](_0x2691e9)?_0x47912e['getAttribute'](_0x2691e9)-0x1:0x0,_0x127ea3=this['_getSuggestionCoords'](_0x534526),_0x2ce7cb=_0x127ea3[_0x385878],_0x1314b0=_0x127ea3[_0x565fe];_0x2ce7cb<=_0x17c79f[_0x34607d]&&_0x17c79f[_0x34607d]+_0x1ff74e<=_0x1314b0&&(_0x534526['addRange'](_0x5f591d),_0x4771a1=!0x0);}return _0x4771a1;};_0x3a15ed['model']['document']['registerPostFixer'](_0xe9806d=>{let _0x1c897e=!0x1;for(const _0x47adb2 of _0x3a15ed['model']['document']['differ']['getChanges']())if('insert'==_0x47adb2['type']){if('tableRow'==_0x47adb2['name']){for(const _0x1b77a4 of _0x47adb2['position']['nodeAfter']['getChildren']())_0x1c897e=_0x1c897e||_0x968f87(_0x1b77a4,_0xe9806d);}else'tableCell'==_0x47adb2['name']&&(_0x1c897e=_0x1c897e||_0x968f87(_0x47adb2['position']['nodeAfter'],_0xe9806d));}return _0x1c897e;});}['_getSuggestionCoords'](_0x48caf5){return this['_getCoordsForCells'](_0x48caf5['getRanges']()['map'](_0x470b5f=>_0x470b5f['start']['nodeAfter']));}}function Ee(_0x224747){return Array['from'](new Set(_0x224747)['values']());}class St extends _0x5ed9bd{static get['requires'](){return[jt];}['afterInit'](){const _0x232d68=this['editor'],_0xf0529=_0x232d68['model']['document']['selection'],_0x466b4f=_0x232d68['locale'];if(!_0x232d68['plugins']['has']('TableEditing'))return;const _0x402cc7=_0x232d68['plugins']['get']('TrackChangesEditing'),_0xa675e0=_0x232d68['plugins']['get']('TableUtils'),_0x5735ac=_0x232d68['plugins']['get'](jt);_0x5735ac['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x402cc7['enableCommand']('mergeTableCells',()=>{const _0x220905=_0xa675e0['getSelectionAffectedTableCells'](_0x232d68['model']['document']['selection']);_0x232d68['model']['change'](()=>{_0x402cc7['markMultiRangeBlockFormat'](_0x220905,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x232d68['commands']['get']('mergeTableCells')['on']('execute',(_0x14d392,_0x629d10)=>{_0x232d68['commands']['get']('trackChanges')['value']&&(_0x629d10['length']>0x0&&_0x629d10[_0x629d10['length']-0x1]&&_0x629d10[_0x629d10['length']-0x1]['forceDefaultExecution']||_0x402cc7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x14d392['stop']());},{'priority':'highest'});for(const _0x32288e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x487e8d=_0x232d68['commands']['get'](_0x32288e);_0x402cc7['enableCommand'](_0x32288e,()=>{const _0x5344cf=_0x232d68['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x49b82e=>_0x49b82e['is']('element','tableCell')),_0x7110bb=_0x487e8d['value'];_0x232d68['model']['change'](()=>{_0x402cc7['markMultiRangeBlockFormat']([_0x5344cf,_0x7110bb],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x118f2c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x10ecef=_0x232d68['commands']['get'](_0x118f2c);_0x402cc7['enableCommand'](_0x118f2c,()=>{const _0x5cb43e=_0xa675e0['getSelectionAffectedTableCells'](_0x232d68['model']['document']['selection'])[0x0],_0x9cdee0=_0x5cb43e['findAncestor']('table'),{column:_0xd91a88,row:_0x565b61}=_0xa675e0['getCellLocation'](_0x5cb43e);let _0x3d52f3=[];if('horizontally'==_0x10ecef['direction']){const _0x3ff902=_0xa675e0['createTableWalker'](_0x9cdee0,{'startRow':_0x565b61,'endRow':_0x565b61,'includeAllSlots':!0x0});_0x3d52f3=Array['from'](_0x3ff902)['map'](_0x3659b1=>_0x3659b1['cell']);}else{const _0xec6aaa=_0xa675e0['createTableWalker'](_0x9cdee0,{'column':_0xd91a88,'includeAllSlots':!0x0});_0x3d52f3=Array['from'](_0xec6aaa)['map'](_0x17a4c1=>_0x17a4c1['cell']);}_0x232d68['model']['change'](_0x185535=>{_0x402cc7['markBlockFormat'](_0x185535['createRangeOn'](_0x5cb43e),{'commandName':_0x118f2c,'commandParams':[]},_0x3d52f3,_0x118f2c);});});}_0x402cc7['descriptionFactory']['registerDescriptionCallback'](_0x236c26=>{if('formatBlock'!=_0x236c26['type']&&'formatInline'!=_0x236c26['type'])return;const {data:_0x55b3c6}=_0x236c26;return _0x55b3c6&&'mergeTableCells'==_0x55b3c6['commandName']?{'type':'format','content':o(_0x466b4f,'*Merge\x20cells*')}:void 0x0;}),_0x402cc7['descriptionFactory']['registerDescriptionCallback'](_0x22a08e=>{if('formatBlock'!=_0x22a08e['type']&&'formatInline'!=_0x22a08e['type'])return;const {data:_0x577291}=_0x22a08e;return _0x577291?'splitTableCellVertically'==_0x577291['commandName']?{'type':'format','content':o(_0x466b4f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x577291['commandName']?{'type':'format','content':o(_0x466b4f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x367395=_0x5735ac['_acceptFormatSuggestionCallbackFactory']();for(const _0x4d205b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x402cc7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d205b,'accept',_0x367395);for(const _0x576c1e of['splitTableCellVertically','splitTableCellHorizontally'])_0x402cc7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x576c1e,'accept',_0x367395);_0x402cc7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x11907d=>{_0x232d68['model']['change'](_0x567589=>{const _0x2d74b7=Array['from'](_0xf0529['getRanges']())['map'](_0x37600d=>_0x4022b5['fromRange'](_0x37600d));_0x567589['setSelection'](_0x11907d),_0x232d68['commands']['get']('mergeTableCells')['refresh'](),_0x232d68['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x105616=_0x2d74b7['filter'](_0x1f0431=>'$graveyard'!=_0x1f0431['root']['rootName']);_0x105616['length']>0x0&&_0x567589['setSelection'](_0x105616);for(const _0x17215e of _0x2d74b7)_0x17215e['detach']();});});for(const _0x44f2ac of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xd9ef0b=_0x232d68['commands']['get'](_0x44f2ac);_0xd9ef0b['on']('set:isEnabled',(_0x5952b9,_0x2f0e9f,_0x2da1fd)=>{if(_0x2da1fd){const _0x581c04=_0x232d68['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1807e9=>_0x1807e9['is']('element','tableCell'));this['_areMergableCells'](_0xd9ef0b['value'],_0x581c04)||(_0x5952b9['return']=!0x1,_0x5952b9['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4a7054=this['editor']['commands']['get']('mergeTableCells'),_0xd49f6d=this['editor']['plugins']['get']('TableUtils');if(!_0x4a7054['isEnabled'])return!0x1;const _0x4f56d9=_0xd49f6d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3ab89a of _0x4f56d9)for(const _0x4eecb4 of _0x4f56d9)if(_0x3ab89a!=_0x4eecb4&&!this['_areMergableCells'](_0x3ab89a,_0x4eecb4))return!0x1;return!0x0;}['_areMergableCells'](_0x300850,_0xb0927e){const _0x283b4c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fd15d=this['editor']['model']['createRangeOn'](_0x300850),_0x2b1aa0=this['editor']['model']['createRangeOn'](_0xb0927e),_0x5a5ab5=new Set(),_0x3c0c4f=new Set();for(const _0xb9f4ff of _0x283b4c['getSuggestions']())if(('insertion'==_0xb9f4ff['type']||'deletion'==_0xb9f4ff['type']||'mergeTableCells'==_0xb9f4ff['subType'])&&_0xb9f4ff['isInContent']){for(const _0x49dcc8 of _0xb9f4ff['getRanges']())_0x49dcc8['containsRange'](_0x4fd15d,!0x0)&&_0x5a5ab5['add'](_0xb9f4ff['type']+':'+_0xb9f4ff['author']['id']),_0x49dcc8['containsRange'](_0x2b1aa0,!0x0)&&_0x3c0c4f['add'](_0xb9f4ff['type']+':'+_0xb9f4ff['author']['id']);}if(_0x5a5ab5['size']!=_0x3c0c4f['size'])return!0x1;for(const _0x1949c0 of _0x5a5ab5)if(!_0x3c0c4f['has'](_0x1949c0))return!0x1;return!0x0;}}class At extends _0x5ed9bd{static get['requires'](){return[jt];}['afterInit'](){const _0x26263d=this['editor'];if(!_0x26263d['plugins']['has']('TableEditing'))return;const _0x4e5d05=_0x26263d['locale'],_0x1630e9=_0x26263d['plugins']['get']('TrackChangesEditing');_0x1630e9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1630e9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1630e9['registerBlockAttribute']('headingRows'),_0x1630e9['registerBlockAttribute']('headingColumns'),_0x1630e9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4e5d05,'FORMAT_HEADER_ROW')),_0x1630e9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4e5d05,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x216402=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59e189=this['editor']['plugins']['get']('TableUtils'),_0x37339f=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x43efd0({showActiveMarker:_0x133e6d=!0x0,setDataAttribute:_0x423a7f=!0x0}={}){return(_0x22642b,_0x1bd6bd,_0x22a700)=>{const {type:_0x2e299e,id:_0x580bd2}=_0x216402['_splitMarkerName'](_0x1bd6bd['markerName']),_0x1ca44f=_0x216402['getSuggestion'](_0x580bd2),_0x2cf8c7=_0x1ca44f['data'];if('formatBlock'!=_0x1ca44f['type']||!_0x2cf8c7||'setTableColumnHeader'!=_0x2cf8c7['commandName'])return;if(_0x1bd6bd['item'])return void _0x22642b['stop']();if(!_0x22a700['consumable']['consume'](_0x1bd6bd['markerRange'],_0x22642b['name']))return;const _0x3f52a4=_0x1bd6bd['markerRange']['start']['nodeAfter'],_0x2bcacd=_0x1bd6bd['markerRange']['end']['nodeBefore'],_0xaf7974=_0x3f52a4['parent']['parent'],{column:_0x31b31e}=_0x59e189['getCellLocation'](_0x3f52a4),{column:_0x322824}=_0x59e189['getCellLocation'](_0x2bcacd);for(let _0x5d02cd=_0x31b31e;_0x5d02cd<=_0x322824;_0x5d02cd++){const _0xd746d=_0x59e189['createTableWalker'](_0xaf7974,{'column':_0x5d02cd,'includeAllSlots':!0x1});for(const _0x16b6ba of _0xd746d){const _0x44119a=_0x16b6ba['cell'],_0x59c6de=_0x22a700['mapper']['toViewElement'](_0x44119a);_0x22a700['writer']['addClass']('ck-suggestion-marker-'+_0x2e299e,_0x59c6de),_0x423a7f&&_0x22a700['writer']['setAttribute']('data-suggestion',_0x580bd2,_0x59c6de),_0x22a700['mapper']['bindElementToMarker'](_0x59c6de,_0x1bd6bd['markerName']),_0x133e6d&&(_0x216402['activeMarkers']['includes'](_0x1bd6bd['markerName'])?_0x22a700['writer']['addClass']('ck-suggestion-marker--active',_0x59c6de):_0x22a700['writer']['removeClass']('ck-suggestion-marker--active',_0x59c6de));}}};}_0x216402['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x37339f),_0x216402['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x37339f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x43efd0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x53af27,_0x524e7f,_0x980957)=>{_0x980957['options']['showSuggestionHighlights']&&_0x43efd0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x53af27,_0x524e7f,_0x980957);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4a0fe1,_0x193a29,_0x13b20)=>{const {type:_0x593b2c,id:_0x32f03b}=_0x216402['_splitMarkerName'](_0x193a29['markerName']),_0x27fe58=_0x216402['getSuggestion'](_0x32f03b),_0x4812fa=_0x27fe58['data'];if('formatBlock'!=_0x27fe58['type']||!_0x4812fa||'setTableColumnHeader'!=_0x4812fa['commandName'])return;const _0x278b0e=_0x13b20['mapper']['markerNameToElements'](_0x193a29['markerName']);if(_0x278b0e){for(const _0x1ac81e of _0x278b0e)_0x13b20['writer']['removeClass']('ck-suggestion-marker-'+_0x593b2c,_0x1ac81e),_0x13b20['writer']['removeClass']('ck-suggestion-marker--active',_0x1ac81e),_0x13b20['writer']['removeAttribute']('data-suggestion',_0x1ac81e),_0x13b20['mapper']['unbindElementFromMarkerName'](_0x1ac81e,_0x193a29['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2039da=this['editor'],_0x4f3686=_0x2039da['locale'];function _0x55cc12(_0x5bfc55){return{'type':'format','content':o(_0x4f3686,'*Format:*\x20%0',_0x5bfc55)};}_0x2039da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7754e1=>{if('formatBlock'!=_0x7754e1['type'])return;const {data:_0x4abf7b}=_0x7754e1;if(_0x4abf7b){if('setTableRowHeader'==_0x4abf7b['commandName']){const _0x3564b7=_0x4abf7b['commandParams'][0x0]['forceValue'];return _0x55cc12(o(_0x4f3686,_0x3564b7?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4abf7b['commandName']){const _0x41ad5b=_0x4abf7b['commandParams'][0x0]['forceValue'];return _0x55cc12(o(_0x4f3686,_0x41ad5b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x353e85=>[_0x353e85,null]));class It extends _0x5ed9bd{static get['requires'](){return[jt];}['afterInit'](){const _0x2350d7=this['editor'];if(!_0x2350d7['plugins']['has']('TableClipboard'))return;const _0x5b036a=_0x2350d7['plugins']['get']('TrackChangesEditing'),_0x1a6499=_0x2350d7['plugins']['get']('TableUtils'),_0x5b78f2=_0x2350d7['plugins']['get'](jt),_0xf5af39=_0x2350d7['plugins']['get']('TableClipboard');_0x5b78f2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2350d7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2350d7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x51abb8=null;_0x2350d7['model']['on']('insertContent',(_0x59d0bd,_0x150685)=>{const [_0x1655f9,_0x719e8d]=_0x150685,_0x170207=_0x150685[_0x150685['length']-0x1];_0x170207&&_0x170207['forceDefaultExecution']||_0x5b036a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x25f506,_0x35cf23,_0xbd2552,_0x11ce9d,_0x579b0f){if(_0x35cf23&&!_0x35cf23['is']('documentSelection'))return!0x1;const _0x224f7e=_0x579b0f['getTableIfOnlyTableInContent'](_0x25f506,_0xbd2552);if(!_0x224f7e||!he(_0x224f7e,void 0x0,_0x11ce9d))return!0x1;const _0x2f1919=_0x11ce9d['getSelectionAffectedTableCells'](_0xbd2552['document']['selection']);if(!_0x2f1919['length'])return!0x1;const _0x15b282=_0x2f1919[0x0]['findAncestor']('table'),_0x23bcb1=_0x11ce9d['getRowIndexes'](_0x2f1919),_0x5f9f68=_0x11ce9d['getColumnIndexes'](_0x2f1919),_0x3901fd={'startRow':_0x23bcb1['first'],'endRow':_0x23bcb1['last'],'startColumn':_0x5f9f68['first'],'endColumn':_0x5f9f68['last']};return 0x1==_0x2f1919['length']&&(_0x3901fd['endRow']+=_0x11ce9d['getRows'](_0x224f7e)-0x1,_0x3901fd['endColumn']+=_0x11ce9d['getColumns'](_0x224f7e)-0x1),he(_0x15b282,_0x3901fd,_0x11ce9d);}(_0x1655f9,_0x719e8d,_0x2350d7['model'],_0x1a6499,_0xf5af39)&&(_0x59d0bd['stop'](),_0x51abb8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2350d7['model']['change'](()=>{_0x2350d7['model']['insertContent'](_0x150685[0x0],_0x150685[0x1],_0x150685[0x2],{'forceDefaultExecution':!0x0});const _0x2d72be=_0x51081b(),{rowInsertionRanges:_0x57f751,columnInsertionRanges:_0x38a3f9,insertionRanges:_0x4843af,deletionRanges:_0xa8f743,cells:_0x15bb5c}=_0x51abb8;_0x57f751['length']&&_0x5b036a['markMultiRangeInsertion'](_0x57f751,'tablePasteRow',{'tablePasteChainId':_0x2d72be}),_0x38a3f9['length']&&_0x5b036a['markMultiRangeInsertion'](_0x38a3f9,'tablePasteColumn',{'tablePasteChainId':_0x2d72be}),_0x4843af['length']&&(_0x5b036a['markMultiRangeInsertion'](_0x4843af,'tablePaste',{'tablePasteChainId':_0x2d72be,'skipNestingCheck':!0x0}),_0x4843af['forEach'](_0x1de579=>_0x1de579['detach']?.())),_0xa8f743['length']&&(_0x5b036a['markMultiRangeDeletion'](_0xa8f743,'tablePaste',{'tablePasteChainId':_0x2d72be,'skipNestingCheck':!0x0}),_0xa8f743['forEach'](_0x2b91ce=>_0x2b91ce['detach']?.()));const _0x358aaa=_0x5b036a['markMultiRangeBlockFormat'](_0x15bb5c['map'](({element:_0x31acdf})=>_0x31acdf),{'formatGroupId':_0x51081b()},[],'tablePasteCell',{'tablePasteChainId':_0x2d72be});if(_0x358aaa){const _0x468857=_0x358aaa['getMarkers'](),_0x438a7e=[];for(const {element:_0x14047f,attributes:_0xa61340}of _0x15bb5c){if(!_0xa61340)continue;const _0x5aef36=_0x2350d7['model']['createRangeOn'](_0x14047f),_0x44329a=_0x468857['find'](_0x4b4947=>_0x4b4947['getRange']()['isEqual'](_0x5aef36));_0x44329a&&_0x438a7e['push']([_0x44329a['name'],_0xa61340]);}_0x438a7e['length']&&_0x358aaa['setAttribute']('markerAttributes',Object['fromEntries'](_0x438a7e));}_0x51abb8=null;}));},{'priority':_0x278b8c['high']+0xa}),_0x2350d7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x149195,_0x565e13)=>{const [_0x194649,_0x41daf0,,_0x814875]=_0x565e13;if(!_0x51abb8)return;_0x149195['stop']();const _0x1a3957=_0x194649['cell'],_0x3309ee=_0x41daf0,_0x2f8f45=Pe(_0x1a3957),_0x53cd3f=Pe(_0x3309ee);_0x149195['return']=_0x1a3957;let _0x5b4b89=null,_0x3baafd=null;if(_0x53cd3f||_0x2f8f45){if(_0x2f8f45&&!_0x53cd3f){_0x814875['remove'](_0x1a3957['getChild'](0x0));for(const _0x5ca63e of Array['from'](_0x3309ee['getChildren']()))_0x814875['insert'](_0x5ca63e,_0x1a3957,'end');const _0x1adac8=_0x51abb8['rowInsertionIndexes']['includes'](_0x194649['row']),_0x58dd37=_0x51abb8['columnInsertionIndexes']['includes'](_0x194649['column']);_0x1adac8||_0x58dd37||(_0x5b4b89=_0x4022b5['fromRange'](_0x814875['createRangeIn'](_0x1a3957)));}else _0x53cd3f&&!_0x2f8f45&&(_0x3baafd=_0x814875['createRangeIn'](_0x1a3957));}else{const _0xaf4535=_0x814875['createElement']('tableCellSuggestion'),_0x5427ef=_0x814875['createElement']('tableCellSuggestion');_0x814875['wrap'](_0x814875['createRangeIn'](_0x1a3957),_0x5427ef),_0x814875['insert'](_0xaf4535,_0x1a3957,0x0);for(const _0x1f5143 of Array['from'](_0x3309ee['getChildren']()))_0x814875['insert'](_0x1f5143,_0xaf4535,'end');_0x5b4b89=_0x4022b5['fromRange'](_0x814875['createRangeOn'](_0xaf4535)),_0x3baafd=_0x4022b5['fromRange'](_0x814875['createRangeOn'](_0x5427ef));}const _0x1d88b1=Array['from'](_0x3309ee['getAttributes']())['filter'](([_0x2cf2b2])=>ge['includes'](_0x2cf2b2));_0x51abb8['cells']['push']({'element':_0x1a3957,'attributes':_0x1d88b1['length']?Object['fromEntries'](_0x1d88b1):null}),_0x5b4b89&&_0x51abb8['insertionRanges']['push'](_0x5b4b89),_0x3baafd&&_0x51abb8['deletionRanges']['push'](_0x3baafd);},{'priority':'high'}),_0x1a6499['on']('insertColumns',(_0x5a1fab,_0x103393)=>{const [_0xb22bbf,_0x1078b1={}]=_0x103393;if(!_0x51abb8)return;const _0x80127=_0x1078b1['at']||0x0,_0x23c167=_0x1078b1['columns']||0x1;_0x51abb8['columnInsertionIndexes']=new Array(_0x23c167)['fill'](_0x80127)['map']((_0x13cdb2,_0xd9bb3d)=>_0x13cdb2+_0xd9bb3d);for(const {cell:_0x5b17f0}of _0x1a6499['createTableWalker'](_0xb22bbf,{'startColumn':_0x80127,'endColumn':_0x80127+_0x23c167-0x1}))_0x51abb8['columnInsertionRanges']['push'](_0x2350d7['model']['createRangeOn'](_0x5b17f0));},{'priority':'low'}),_0x1a6499['on']('insertRows',(_0x79b85,_0x36fb9d)=>{const [_0x19e126,_0x38263c={}]=_0x36fb9d;if(!_0x51abb8)return;const _0x4c5f0b=_0x38263c['at']||0x0,_0x252f9f=_0x38263c['rows']||0x1;_0x51abb8['rowInsertionIndexes']=new Array(_0x252f9f)['fill'](_0x4c5f0b)['map']((_0x11828a,_0x27f360)=>_0x11828a+_0x27f360);for(const {cell:_0x1309ed}of _0x1a6499['createTableWalker'](_0x19e126,{'startRow':_0x4c5f0b,'endRow':_0x4c5f0b+_0x252f9f-0x1}))_0x51abb8['rowInsertionRanges']['push'](_0x2350d7['model']['createRangeOn'](_0x1309ed));},{'priority':'low'}),_0x5b036a['descriptionFactory']['registerDescriptionCallback'](_0x53e351=>{if(_0x53e351['subType']&&_0x53e351['subType']['startsWith']('tablePaste'))return _0x53e351['previous']?{}:{'type':'insertion','content':o(_0x2350d7['locale'],'*Replace\x20table\x20cells*')};});const _0x7968db=()=>!0x1;for(const _0x21bb93 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5b036a['_suggestionFactory']['registerCustomCallback']('insertion',_0x21bb93,'join',_0x7968db),_0x5b036a['_suggestionFactory']['registerCustomCallback']('deletion',_0x21bb93,'join',_0x7968db),_0x5b036a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21bb93,'join',_0x7968db);_0x5b036a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x7968db),_0x5b036a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xcc61ac,_0x355d34,_0x369ee0)=>{const _0x3bae2d=_0xcc61ac['map'](_0x41819a=>_0x41819a['getContainedElement']())['filter'](_0x53b122=>_0x53b122),_0x2d1cae=new Map(_0x3bae2d['map'](_0xacff72=>[_0xacff72,null]));if(_0x51abb8){for(const {element:_0x152625,attributes:_0x52b0f6}of _0x51abb8['cells'])_0x52b0f6&&_0x2d1cae['set'](_0x152625,_0x52b0f6);}else{if(_0x369ee0&&_0x369ee0['markerAttributes'])for(const [_0x3b22fe,_0x53ed70]of Object['entries'](_0x369ee0['markerAttributes'])){const _0x3d5f97=_0x2350d7['model']['markers']['get'](_0x3b22fe),_0x1cf63b=_0x3d5f97?_0x3d5f97['getRange']()['getContainedElement']():null;_0x1cf63b&&_0x2d1cae['set'](_0x1cf63b,_0x53ed70);}}_0x2350d7['model']['change'](_0x13b624=>{for(const [_0x2e194c,_0x56737e]of _0x2d1cae)_0x13b624['setAttributes']({...Ce,..._0x56737e},_0x2e194c);});});const _0x405f97=(_0x10e3bc,_0x22286d)=>{_0x5b036a['_suggestionFactory']['registerCustomCallback'](_0x10e3bc,'tablePaste',_0x22286d,(_0x23a880,_0x3f0d58,_0x2776e3)=>{_0x2350d7['model']['change'](_0x25e716=>{const _0xcedb28=[];for(const _0x4ae1f1 of _0x23a880){const _0x3c5d15=_0x4ae1f1['start']['nodeAfter'];_0x3c5d15['is']('element','tableCellSuggestion')&&_0xcedb28['push'](_0x3c5d15);}_0x5b036a['_suggestionFactory']['getSuggestionCallback'](_0x10e3bc,null,_0x22286d)(_0x23a880,_0x3f0d58,_0x2776e3);for(const _0x4b0efb of _0xcedb28)'$graveyard'!=_0x4b0efb['root']['rootName']&&_0x25e716['unwrap'](_0x4b0efb);});});};_0x405f97('insertion','accept'),_0x405f97('insertion','discard'),_0x405f97('deletion','accept'),_0x405f97('deletion','discard'),_0x5b036a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xf8c8d5=>{const _0xb8223e=_0xf8c8d5['map'](_0x590957=>_0x590957['getContainedElement']()),_0x47acaa=_0xb8223e[0x0]['findAncestor']('table'),{minRow:_0x1208ca,maxRow:_0x338a2f}=_0x5b78f2['_getCoordsForCells'](_0xb8223e);_0x1a6499['removeRows'](_0x47acaa,{'at':_0x1208ca,'rows':_0x338a2f-_0x1208ca+0x1});}),_0x5b036a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x408e8b=>{const _0x285c69=_0x408e8b['map'](_0x17c16b=>_0x17c16b['getContainedElement']()),_0xa7f53f=_0x285c69[0x0]['findAncestor']('table'),{minColumn:_0x4ce6c9,maxColumn:_0x48b46c}=_0x5b78f2['_getCoordsForCells'](_0x285c69);_0x1a6499['removeColumns'](_0xa7f53f,{'at':_0x4ce6c9,'columns':_0x48b46c-_0x4ce6c9+0x1});});const _0x54df32=(_0x117ab0,_0x2bb2ca)=>{if(!_0x2bb2ca['subType']||!_0x2bb2ca['subType']['startsWith']('tablePaste'))return;const _0x44d6eb=_0x2bb2ca['attributes']['tablePasteChainId'],_0x5296d7=_0x5b036a['getSuggestions']()['filter'](_0x10dd6c=>_0x10dd6c['isInContent']&&_0x10dd6c['attributes']&&_0x10dd6c['attributes']['tablePasteChainId']==_0x44d6eb);_0x5296d7['length']&&_0x2bb2ca['getAllAdjacentSuggestions']()['length']!=_0x5296d7['length']&&_0x5296d7['reduce']((_0x4258ef,_0x535640)=>(_0x4258ef['next']=_0x535640,_0x535640['previous']=_0x4258ef,_0x535640));};function _0x13cefd(_0x37c46d,_0x19639d=!0x0){const {id:_0x37e8d7}=_0x5b036a['_splitMarkerName'](_0x37c46d['markerName']),_0x256b52=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3f60d5=_0x5b036a['activeMarkers']['includes'](_0x37c46d['markerName']);return _0x3f60d5&&_0x256b52['push']('ck-suggestion-marker--active'),{'classes':_0x256b52,'attributes':{'data-suggestion':_0x37e8d7},'priority':_0x3f60d5&&_0x19639d?0xbc2:0xbb8};}_0x5b036a['on']('suggestionLoaded',_0x54df32,{'priority':'high'}),_0x5b036a['on']('suggestionUnloaded',_0x54df32,{'priority':'high'}),_0x2350d7['model']['document']['registerPostFixer'](()=>{let _0x4261f7=!0x1;const _0x17a053=Array['from'](_0x2350d7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1794a2,data:_0x21678e}of _0x17a053){const {group:_0x338545,type:_0x50fad7,id:_0x963b1e}=_0x5b036a['_splitMarkerName'](_0x1794a2);if('suggestion'!=_0x338545||'deletion'!=_0x50fad7||_0x21678e['oldRange'])continue;if(!_0x5b036a['hasSuggestion'](_0x963b1e))continue;const _0x50cc7c=_0x5b036a['getSuggestion'](_0x963b1e)['getRanges'](),_0x26deb5=_0x2350d7['plugins']['get']('Users')['me'];for(const _0x27acdd of _0x5b036a['getSuggestions']()){if(!_0x27acdd['isInContent']||_0x27acdd['author']!=_0x26deb5)continue;if('formatBlock'!=_0x27acdd['type']||'tablePasteCell'!=_0x27acdd['subType'])continue;if(_0x27acdd['getRanges']()['every'](_0x4ef6c3=>_0x50cc7c['some'](_0x391ecd=>_0x391ecd['containsRange'](_0x4ef6c3,!0x0)))){for(const _0x44fdb9 of _0x27acdd['getAllAdjacentSuggestions']())_0x44fdb9['isInContent']&&(_0x44fdb9['discard'](),_0x4261f7=!0x0);}}}return _0x4261f7;}),_0x2350d7['model']['document']['registerPostFixer'](_0x2d34e8=>{const _0x54c3d1=_0x2350d7['commands']['get']('redo');if(!_0x54c3d1||!_0x54c3d1['_createdBatches']['has'](_0x2d34e8['batch']))return!0x1;let _0x2d465a=!0x1;const _0x4ce000=_0x2350d7['plugins']['get']('Users')['me'],_0x562d4a=_0x2350d7['model']['document']['differ']['getChanges'](),_0xc921aa=Array['from'](_0x2350d7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x489351,data:_0x135797})=>{const {group:_0x4177da,subType:_0x2ba078,authorId:_0x23d22e}=_0x5b036a['_splitMarkerName'](_0x489351);return'suggestion'==_0x4177da&&'tablePaste'==_0x2ba078&&_0x23d22e==_0x4ce000['id']&&!_0x135797['oldRange'];});for(const _0x339029 of _0x562d4a){if('insert'!=_0x339029['type']||'tableCellSuggestion'!=_0x339029['name']||0x1!=_0x339029['length'])continue;const _0x41cc64=_0x2d34e8['createRange'](_0x339029['position'],_0x339029['position']['getShiftedBy'](0x1));if(!_0xc921aa['find'](({data:_0x46b56c})=>_0x46b56c['newRange']['isEqual'](_0x41cc64))){for(const {name:_0x5176e0,data:_0x5f0ec7}of _0xc921aa)if(_0x41cc64['containsRange'](_0x5f0ec7['newRange'])){_0x2d34e8['updateMarker'](_0x5176e0,{'range':_0x41cc64}),_0x2d465a=!0x0;break;}}}return _0x2d465a;}),_0x2350d7['model']['document']['registerPostFixer'](_0x444890=>{let _0x26a65f=!0x1;const _0xec26=_0x2350d7['plugins']['get']('Users')['me'],_0x468a80=_0x5b036a['getSuggestions']()['filter'](_0x53abdf=>_0x53abdf['isInContent']&&_0x53abdf['author']==_0xec26),_0x38f51b=new Set(),_0x354698=new Set();for(const _0x16d5f6 of _0x468a80)if('tablePaste'==_0x16d5f6['subType'])for(const _0x2005a5 of _0x16d5f6['getMarkers']()){const _0x302372=_0x2005a5['getRange']()['getContainedElement']();if(_0x302372){if(_0x302372['is']('element','tableCellSuggestion')&&Pe(_0x302372)){_0x16d5f6['removeMarker'](_0x2005a5['name']),_0x38f51b['add'](_0x302372),_0x26a65f=!0x0;const _0x149a9f=_0x302372['nextSibling'],_0x48d67f=_0x302372['previousSibling'],_0x34ddef=_0x149a9f&&_0x149a9f['is']('element','tableCellSuggestion'),_0x23b341=_0x48d67f&&_0x48d67f['is']('element','tableCellSuggestion');_0x34ddef&&!_0x38f51b['has'](_0x149a9f)&&_0x354698['add'](_0x149a9f),_0x23b341&&!_0x38f51b['has'](_0x48d67f)&&_0x354698['add'](_0x48d67f);}else _0x302372['is']('element','paragraph')&&_0x302372['isEmpty']&&(_0x16d5f6['removeMarker'](_0x2005a5['name']),_0x26a65f=!0x0);}}else{if('tablePasteCell'==_0x16d5f6['subType']){if(!_0x16d5f6['attributes']||!_0x16d5f6['attributes']['tablePasteChainId'])continue;const _0x14049e=_0x16d5f6['attributes']['markerAttributes'];if(_0x14049e&&Object['keys'](_0x14049e)['length'])continue;const _0x34e829=_0x16d5f6['attributes']['tablePasteChainId'];let _0x1ea259=!0x0,_0x20b6bc=!0x0;for(const _0x347142 of _0x468a80)if(_0x347142['subType']&&_0x347142['subType']['startsWith']('tablePaste')){if(!_0x347142['attributes']['tablePasteChainId']){_0x20b6bc=!0x1;break;}if(_0x347142['id']!=_0x16d5f6['id']&&_0x347142['attributes']['tablePasteChainId']==_0x34e829){_0x1ea259=!0x1;break;}}_0x20b6bc&&_0x1ea259&&(_0x16d5f6['removeMarkers'](),_0x26a65f=!0x0);}}for(const _0x32355d of _0x38f51b)_0x444890['remove'](_0x32355d);for(const _0x3d1123 of _0x354698)_0x444890['unwrap'](_0x3d1123);return _0x26a65f;}),_0x2350d7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x10ec3,_0x5afd16)=>_0x13cefd(_0x10ec3),'converterPriority':'high'}),_0x2350d7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x56681e,_0x13d4bf)=>_0x13d4bf['options']['showSuggestionHighlights']?_0x13cefd(_0x56681e,!0x1):null,'converterPriority':'high'});const _0x548bd8=_0x2350d7['editing']['view'];this['listenTo'](_0x548bd8['document'],'clipboardOutput',(_0x129a51,_0x146882)=>{const _0x2eee79=[];for(const _0x24e3c0 of _0x548bd8['createRangeIn'](_0x146882['content'])['getItems']())_0x24e3c0['is']('element','suggestion-td')&&_0x2eee79['push'](_0x24e3c0);_0x548bd8['change'](_0x252a6d=>{for(const _0x46936f of _0x2eee79)_0x252a6d['move'](_0x252a6d['createRangeIn'](_0x46936f),_0x252a6d['createPositionBefore'](_0x46936f)),_0x252a6d['remove'](_0x46936f);});});}}function Pe(_0x373a55){if(_0x373a55['isEmpty'])return!0x0;const _0x397364=_0x373a55['getChild'](0x0);return _0x397364['is']('element','paragraph')&&_0x397364['isEmpty'];}function he(_0x290b69,_0x112898={},_0x1614a4){for(const {isAnchor:_0x160594,cellHeight:_0x237b0c,cellWidth:_0xeaf8fd}of _0x1614a4['createTableWalker'](_0x290b69,{'includeAllSlots':!0x0,..._0x112898}))if(!_0x160594||0x1!=_0x237b0c||0x1!=_0xeaf8fd)return!0x1;return!0x0;}class vt extends _0x5ed9bd{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4a28d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a28d7['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4a28d7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4a28d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a28d7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4a28d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4a28d7['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x500755,_0xd6dbec){const _0xf17ddb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xaabcdf=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3357bb=_0xd6dbec['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5561ba=_0xaabcdf['getColumnGroupElement'](_0x3357bb);let _0x536bfb=_0x5561ba?_0xaabcdf['getTableColumnsWidths'](_0x5561ba):null,_0x242548=_0x3357bb['getAttribute']('tableWidth')||null;const _0x56411b=_0xd6dbec['tableWidth']||_0x242548,_0xe3f4fc=_0xd6dbec['columnWidths']||_0x536bfb,_0x18c883=this['editor']['plugins']['get']('Users')['me'];for(const _0x512dea of _0xf17ddb['getSuggestions']()){const _0x136f60=_0x512dea['getContainedElement']();if('resizeTable'===_0x512dea['subType']&&_0x136f60===_0x3357bb){_0x512dea['author']!==_0x18c883&&_0x512dea['discard']();const _0x3966c4=_0x512dea['data']['commandParams'];_0x242548=_0x3966c4[0x0]['tableWidth'],_0x536bfb=_0x3966c4[0x0]['columnWidths'];break;}}_0x500755({'table':_0x3357bb,'tableWidth':_0x56411b,'columnWidths':_0xe3f4fc}),_0xf17ddb['markBlockFormat'](_0x3357bb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x242548,'columnWidths':_0x536bfb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2f05f2){if('formatBlock'!=_0x2f05f2['type']&&'formatInline'!=_0x2f05f2['type'])return;const {data:_0x578fca}=_0x2f05f2;if(_0x578fca&&'resizeTable'===_0x578fca['formatGroupId']){const _0x51d3c8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x51d3c8)};}}}class Ct extends _0x5ed9bd{['afterInit'](){const _0x203aac=this['editor'];_0x203aac['plugins']['has']('Template')&&_0x203aac['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x5ed9bd{['afterInit'](){const _0x3a52fe=this['editor'];if(!_0x3a52fe['commands']['get']('insertTableOfContents'))return;_0x3a52fe['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x21b98b=_0x3a52fe['plugins']['get']('TrackChangesEditing'),_0x4b8858=_0x3a52fe['locale'];_0x21b98b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x18326e=>o(_0x4b8858,'ELEMENT_TABLE_OF_CONTENTS',_0x18326e));}}class Dt extends _0x5ed9bd{['afterInit'](){const _0x4a9a82=this['editor'];if(!_0x4a9a82['plugins']['has']('Title'))return;const _0x36628b=_0x4a9a82['plugins']['get']('TrackChangesEditing');_0x36628b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4a9a82['locale'],'ELEMENT_TITLE')),_0x4a9a82['model']['document']['registerPostFixer'](_0x22375f=>{let _0xaa25c=!0x1;const _0xadcd14=Array['from'](_0x4a9a82['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2da6c3,data:_0x3202a0}of _0xadcd14){const {group:_0x2d50d0}=_0x36628b['_splitMarkerName'](_0x2da6c3);if('suggestion'!==_0x2d50d0||!_0x3202a0['newRange'])continue;const _0x84961f=_0x3202a0['newRange'],_0x430e1c=_0x84961f['end']['nodeBefore'];if(!_0x430e1c||!_0x430e1c['is']('element','title-content'))continue;if(!_0x84961f['start']['isTouching'](_0x84961f['end']))continue;const _0x1a3293=_0x4a9a82['model']['schema']['getNearestSelectionRange'](_0x84961f['end'],'forward');if(_0x1a3293&&_0x1a3293['isCollapsed']){const _0x13d451=_0x22375f['createRange'](_0x84961f['start'],_0x1a3293['start']);_0x13d451['isEqual'](_0x84961f)||(_0x22375f['updateMarker'](_0x2da6c3,{'range':_0x13d451}),_0xaa25c=!0x0);}_0xaa25c||(_0x22375f['removeMarker'](_0x2da6c3),_0xaa25c=!0x0);}return _0xaa25c;});}}class Nt extends _0x5ed9bd{['afterInit'](){const _0x45ccb2=this['editor'],_0x3c354a=_0x45ccb2['plugins']['get']('TrackChangesEditing');_0x45ccb2['plugins']['has']('UndoEditing')&&(_0x3c354a['enableCommand']('undo'),_0x3c354a['enableCommand']('redo'));}}class Mt extends _0x5ed9bd{static get['requires'](){return[jt];}['afterInit'](){const _0x4bbb4b=this['editor'];if(!_0x4bbb4b['plugins']['has']('TableCaptionEditing'))return;_0x4bbb4b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x5ed9bd{['tableProperties'];['tableCellProperties'];constructor(_0x577e63){super(_0x577e63),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x479e0c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x9c0ebd of this['tableProperties'])_0x479e0c['enableCommand'](_0x9c0ebd,(_0x4aff9e,_0xf75af5)=>{const _0x18ede5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x9c0ebd,[_0x18ede5],this['tableProperties'],'tableProperties',_0x4aff9e,_0xf75af5);});_0x479e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x479e0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x479e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x90f57a,_0x19472d)=>this['handleDiscardAction'](this['tableProperties'],_0x90f57a,_0x19472d)),_0x479e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x153788 of this['tableCellProperties'])_0x479e0c['enableCommand'](_0x153788,(_0x24499b,_0x1d0875)=>{const _0x4452ad=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x153788,_0x4452ad,this['tableCellProperties'],'tableCellProperties',_0x24499b,_0x1d0875);});_0x479e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x479e0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x479e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x220a81,_0x554a74)=>this['handleDiscardAction'](this['tableCellProperties'],_0x220a81,_0x554a74)),_0x479e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x479e0c['descriptionFactory']['registerDescriptionCallback'](_0x10cb8b=>this['handleSuggestionDescription'](_0x10cb8b));}['_handlePropertyChange'](_0x31074c,_0x47450d,_0x4df482,_0x355ea0,_0x4a756d,_0x898aa7){const _0x3997be=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x898aa7['batch'],()=>{for(const _0x1cd996 of _0x47450d){if(this['_getSuggestion'](_0x1cd996,_0x355ea0))_0x4a756d(_0x898aa7);else{const _0x162a5e={};for(const _0x2b919c of _0x4df482){const _0x469936=_0x1cd996['getAttribute'](_0x2b919c);void 0x0!==_0x469936&&(_0x162a5e[_0x2b919c]=_0x469936);}_0x4a756d(_0x898aa7),_0x3997be['markBlockFormat'](_0x1cd996,{'commandParams':[_0x162a5e]},[],_0x355ea0);}}});}['handleDiscardAction'](_0x53fc59,_0x4230a5,_0x1bcd97){const _0x476213=_0x4230a5[0x0]['start']['nodeAfter'],_0x13c78b=_0x1bcd97['commandParams'][0x0];this['editor']['model']['change'](_0x445dcd=>{for(const _0x3bd81d of _0x53fc59)void 0x0!==_0x13c78b[_0x3bd81d]?_0x445dcd['setAttribute'](_0x3bd81d,_0x13c78b[_0x3bd81d],_0x476213):_0x445dcd['removeAttribute'](_0x3bd81d,_0x476213);});}['handleSuggestionDescription'](_0x236c76){if(_0x236c76['data'])switch(_0x236c76['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'](_0x145be7,_0xb3f9fb){const _0x55d38c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3caee of _0x55d38c['getSuggestions']({'skipNotAttached':!0x0})){const _0x11bb85=_0x3caee['getContainedElement']();if(_0x3caee['subType']===_0xb3f9fb&&_0x11bb85===_0x145be7)return _0x3caee;}return null;}}const m='$elementName';class p extends _0x5ed9bd{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5144de,_0x8f02a5,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x593bb7){function _0x28ffbe(_0x411d9a){return _0x411d9a['map'](_0x1003d3=>String['fromCharCode'](_0x1003d3))['join']('');}super(_0x593bb7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5be6e4,_0x590b30,_0x354f77,_0x20a41f)=>{this['_model']['change'](()=>{for(const _0x306660 of[..._0x20a41f,..._0x354f77])this['_model']['markers']['has'](_0x306660)&&_0x593bb7['editing']['reconvertMarker'](_0x306660);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x593bb7['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(),_0x593bb7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x593bb7['config']['get']('trackChanges.trackFormatChanges'),_0x593bb7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x593bb7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x593bb7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x28ffbe([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x28ffbe([0x34,0x30,0x34,0x38,0x31,0x34,0x32,0x30]);}['init'](){const _0x18c9e9=this['editor'],_0x2387e8=(_0x413c4a,_0x7b5aeb)=>{if('attribute'!=_0x413c4a)return'ck-suggestion-marker-'+_0x413c4a;const _0x5447fc=_0x7b5aeb['split']('|')[0x0];return this['_isBlockAttribute'](_0x5447fc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x18c9e9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2e234a=>{const {id:_0xdef87a,type:_0x5d8a4e,subType:_0xaadafc}=this['_splitMarkerName'](_0x2e234a['markerName']),_0x5005dd=['ck-suggestion-marker',_0x2387e8(_0x5d8a4e,_0xaadafc)];let _0x5c4481=0xbb8;return this['activeMarkers']['includes'](_0x2e234a['markerName'])&&(_0x5005dd['push']('ck-suggestion-marker--active'),_0x5c4481=0xbc2),'deletion'==_0x5d8a4e&&(_0x5c4481+=0x5),{'classes':_0x5005dd,'attributes':{'data-suggestion':_0xdef87a},'priority':_0x5c4481};}}),_0x18c9e9['conversion']['for']('dataDowncast')['add'](_0x44a58d=>{_0x44a58d['on']('addMarker:suggestion',(_0x3a1f40,_0x5bb15d,_0x10b110)=>{if(!_0x10b110['options']['showSuggestionHighlights'])return;const _0x3f9adf=_0x5bb15d['item'];if(!_0x3f9adf)return;const _0x3eabb8=_0x10b110['mapper']['toViewElement'](_0x3f9adf);_0x18c9e9['model']['schema']['isObject'](_0x3f9adf)&&_0x3eabb8&&!_0x3eabb8['getCustomProperty']('widget')&&_0x3eabb8['is']('containerElement')&&_0x3ff097(_0x3eabb8,_0x10b110['writer']);},{'priority':'high'});}),_0x18c9e9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xe3286,_0x34140f)=>{if(!_0x34140f['options']['showSuggestionHighlights'])return null;const {type:_0x378163,subType:_0xe5f283}=this['_splitMarkerName'](_0xe3286['markerName']);return{'classes':['ck-suggestion-marker',_0x2387e8(_0x378163,_0xe5f283)],'priority':0xbb8};}});const _0x510a88=({showActiveMarkers:_0x43a1ed=!0x0,isAttributeSuggestion:_0x319f4a=!0x1}={})=>(_0x13b6a2,_0x2e98c4,_0x9ca957)=>{if(!_0x2e98c4['item'])return;const {id:_0x17a5e0}=this['_splitMarkerName'](_0x2e98c4['markerName']);if(_0x319f4a){const _0x21b004=this['_suggestions']['get'](_0x17a5e0),_0x36e354=this['_getAttributeKey'](_0x21b004);if(!this['_isBlockAttribute'](_0x36e354))return;}if(_0x2e98c4['item']['is']('selection'))return void _0x9ca957['consumable']['consume'](_0x2e98c4['item'],_0x13b6a2['name']);const _0x1a797a=_0x9ca957['mapper']['toViewElement'](_0x2e98c4['item']);if(_0x2e98c4['item']['is']('element')&&_0x18c9e9['model']['schema']['isBlock'](_0x2e98c4['item'])&&!_0x1a797a['getCustomProperty']('addHighlight')){_0x9ca957['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1a797a),_0x9ca957['writer']['setAttribute']('data-suggestion',_0x17a5e0,_0x1a797a),_0x9ca957['mapper']['bindElementToMarker'](_0x1a797a,_0x2e98c4['markerName']),_0x43a1ed&&(this['activeMarkers']['includes'](_0x2e98c4['markerName'])?_0x9ca957['writer']['addClass']('ck-suggestion-marker--active',_0x1a797a):_0x9ca957['writer']['removeClass']('ck-suggestion-marker--active',_0x1a797a));for(const _0x3a8821 of _0x18c9e9['model']['createRangeIn'](_0x2e98c4['item'])['getItems']())_0x9ca957['consumable']['consume'](_0x3a8821,_0x13b6a2['name']);_0x9ca957['consumable']['consume'](_0x2e98c4['item'],_0x13b6a2['name']);}};_0x18c9e9['conversion']['for']('dataDowncast')['add'](_0x363232=>{_0x363232['on']('addMarker:suggestion:formatBlock',(_0x8951f7,_0x5535c8,_0x5b5c73)=>{_0x5b5c73['options']['showSuggestionHighlights']&&_0x510a88({'showActiveMarkers':!0x1})(_0x8951f7,_0x5535c8,_0x5b5c73);},{'priority':'highest'});}),_0x18c9e9['conversion']['for']('dataDowncast')['add'](_0x1349e8=>{_0x1349e8['on']('addMarker:suggestion:attribute',(_0x56932f,_0x5b57ff,_0x55f79c)=>{_0x55f79c['options']['showSuggestionHighlights']&&_0x510a88({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x56932f,_0x5b57ff,_0x55f79c);},{'priority':'highest'});}),_0x18c9e9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5cc973,_0x1b2a46)=>_0x1b2a46['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5cc973['substr'](0xb)}}),_0x18c9e9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2772fc,{writer:_0x50b177})=>{let _0x3a436d='suggestion:'+_0x2772fc['getAttribute']('suggestion-type')+':'+_0x2772fc['getAttribute']('id');return _0x2772fc['getAttribute']('marker-count')&&(_0x3a436d+=':'+_0x2772fc['getAttribute']('marker-count')),_0x50b177['createElement']('$marker',{'data-name':_0x3a436d});}}),_0x18c9e9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x18c9e9['conversion']['for']('editingDowncast')['add'](_0x3c8da9=>{_0x3c8da9['on']('addMarker:suggestion:formatBlock',_0x510a88(),{'priority':'high'});}),_0x18c9e9['conversion']['for']('editingDowncast')['add'](_0x1f889f=>{_0x1f889f['on']('addMarker:suggestion:attribute',_0x510a88({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x18c9e9['conversion']['for']('editingDowncast')['add'](_0x2feece=>{_0x2feece['on']('removeMarker:suggestion:formatBlock',(_0x518a82,_0x3c308a,_0x2f65d2)=>{const _0x1008cb=_0x2f65d2['mapper']['markerNameToElements'](_0x3c308a['markerName']);if(_0x1008cb){for(const _0x1737ce of _0x1008cb)_0x1737ce['getCustomProperty']('addHighlight')||(_0x2f65d2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1737ce),_0x2f65d2['writer']['removeAttribute']('data-suggestion',_0x1737ce),_0x2f65d2['mapper']['unbindElementFromMarkerName'](_0x1737ce,_0x3c308a['markerName']));}},{'priority':'high'});}),_0x18c9e9['conversion']['for']('editingDowncast')['add'](_0x211ba0=>{_0x211ba0['on']('removeMarker:suggestion:attribute',(_0x1f7a8d,_0x45be53,_0x485672)=>{const _0x4975c3=_0x485672['mapper']['markerNameToElements'](_0x45be53['markerName']);if(!_0x4975c3)return;const {id:_0x14f0b9}=this['_splitMarkerName'](_0x45be53['markerName']),_0x2b8911=this['_suggestions']['get'](_0x14f0b9),_0x59d80e=this['_getAttributeKey'](_0x2b8911);if(this['_isBlockAttribute'](_0x59d80e)){for(const _0x3065b1 of _0x4975c3)_0x3065b1['getCustomProperty']('addHighlight')||(_0x485672['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3065b1),_0x485672['writer']['removeAttribute']('data-suggestion',_0x3065b1),_0x485672['mapper']['unbindElementFromMarkerName'](_0x3065b1,_0x45be53['markerName']));}},{'priority':'high'});}),_0x18c9e9['model']['document']['registerPostFixer'](_0x3556ff=>{let _0x1be67b=!0x1;const _0x1a9e22=Array['from'](_0x18c9e9['model']['document']['differ']['getChangedMarkers']()),_0x683531=new Set();for(const {name:_0x557a12,data:_0xd3f286}of _0x1a9e22){const {group:_0x41ef8a,type:_0x17b2b3,subType:_0x136076,id:_0xf90775}=this['_splitMarkerName'](_0x557a12);if('suggestion'!==_0x41ef8a)continue;const _0x2e5810=this['_suggestions']['get'](_0xf90775);if(null!=_0xd3f286['newRange']){'formatInline'==_0x17b2b3&&(_0x1be67b=_0x1be67b||Et(_0xd3f286['newRange'],_0x557a12,_0x3556ff,_0x18c9e9['model']['schema']));const _0x21bbe9='attribute'==_0x17b2b3&&this['_isBlockAttribute'](_0x136076['split']('|')[0x0]);if(_0xd3f286['newRange']['isCollapsed']||'$graveyard'==_0xd3f286['newRange']['root']['rootName']||'formatBlock'==_0x17b2b3&&!Ut(_0xd3f286['newRange'])||_0x21bbe9&&!Ut(_0xd3f286['newRange'])||'deletion'==_0x17b2b3&&!(!Tt(_0x3e2ab6=_0xd3f286['newRange'])&&!function(_0x1ce7ad){return _0x1ce7ad['start']['parent']==_0x1ce7ad['end']['nodeBefore']&&_0x1ce7ad['start']['isAtEnd'];}(_0x3e2ab6)))_0x3556ff['removeMarker'](_0x557a12),_0x1be67b=!0x0;else{if(!_0x2e5810||!_0x2e5810['isInContent'])continue;_0x683531['add'](_0x2e5810);}}}var _0x3e2ab6;return _0x683531['size']>0x0&&(_0x1be67b=!!this['_joinWithAdjacentSuggestions'](_0x683531)||_0x1be67b),_0x1be67b;}),_0x18c9e9['model']['document']['registerPostFixer'](_0x1f09ac=>{let _0x3858be=!0x1;for(const _0x88605a of _0x18c9e9['model']['document']['differ']['getChanges']())if('insert'==_0x88605a['type'])for(const _0x4a7349 of this['_suggestions']['values']()){if(_0x4a7349['isMultiRange']||!_0x4a7349['isInContent'])continue;const _0x2dbd87='formatBlock'==_0x4a7349['type'],_0x5280a7=this['_getAttributeKey'](_0x4a7349),_0x2e467c=_0x5280a7&&this['_isBlockAttribute'](_0x5280a7);if(!_0x2dbd87&&!_0x2e467c)continue;const _0x1764f1=_0x4a7349['getFirstRange']();if(_0x1764f1['start']['parent']!=_0x1764f1['end']['parent']&&!_0x1764f1['end']['isAtEnd']){const _0x1fbe1d=_0x18c9e9['model']['createPositionAt'](_0x1764f1['start']['nodeAfter'],'end'),_0x12d120=_0x18c9e9['model']['createRange'](_0x1764f1['start'],_0x1fbe1d);_0x1f09ac['updateMarker'](_0x4a7349['getFirstMarker'](),{'range':_0x12d120}),_0x3858be=!0x0;}}return _0x3858be;}),_0x18c9e9['model']['document']['registerPostFixer'](_0x107ed8=>this['_processAttributeChanges'](_0x107ed8)),_0x18c9e9['model']['document']['registerPostFixer'](_0x2d6afa=>!_0x2d6afa['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2d6afa)),_0x18c9e9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x18c9e9['model']['document']['on']('change:data',(_0x3411e9,_0xfe8541)=>{if(!_0xfe8541['isLocal']||_0xfe8541['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x37eb08=_0x18c9e9['model']['document']['differ']['getChanges']();if(0x0==_0x37eb08['length'])return;const _0x1d1da1=[],_0x50b6c1=_0x37eb08['filter'](_0x4292fa=>'attribute'==_0x4292fa['type']),_0x5df941=_0x37eb08['filter'](_0x14a795=>'insert'==_0x14a795['type']&&'$text'!=_0x14a795['name']);for(const _0x109c06 of _0x50b6c1)this['_isRegisteredAttribute'](_0x109c06['attributeKey'])&&_0x1d1da1['push']({'key':_0x109c06['attributeKey'],'newValue':_0x109c06['attributeNewValue'],'oldValue':_0x109c06['attributeOldValue'],'range':Ot(_0x109c06['range'],_0x18c9e9['model'])});for(const _0x4a6fb6 of _0x5df941){if('rename'!=_0x4a6fb6['action']&&'refresh'!=_0x4a6fb6['action'])continue;const _0xac835a=Gt(_0x4a6fb6['position']['nodeAfter'],_0x18c9e9['model']),_0x115db8=_0x4a6fb6['before'];'rename'==_0x4a6fb6['action']&&_0x1d1da1['push']({'key':m,'newValue':_0x4a6fb6['name'],'oldValue':_0x115db8['name'],'range':_0xac835a});for(const [_0x2450af,_0x2465d4]of _0x115db8['attributes']){if(!this['_isRegisteredAttribute'](_0x2450af))continue;const _0xfad643=_0x4a6fb6['attributes']['get'](_0x2450af);_0x2465d4!==_0xfad643&&_0x1d1da1['push']({'key':_0x2450af,'newValue':_0xfad643,'oldValue':_0x2465d4,'range':_0xac835a});}for(const [_0x3cc91f,_0x4001a7]of _0x4a6fb6['attributes'])this['_isRegisteredAttribute'](_0x3cc91f)&&(_0x115db8['attributes']['has'](_0x3cc91f)||_0x1d1da1['push']({'key':_0x3cc91f,'newValue':_0x4001a7,'oldValue':null,'range':_0xac835a}));}0x0!=_0x1d1da1['length']&&_0x18c9e9['model']['enqueueChange'](_0xfe8541,_0x1c4974=>{const _0x2cc5da=_0x51081b();for(const {range:_0x31e8a7,key:_0x4a3284,oldValue:_0x53e0bc,newValue:_0x305f00}of _0x1d1da1)this['markAttributeChange'](_0x31e8a7,_0x4a3284,_0x53e0bc,_0x305f00,{'groupId':_0x2cc5da});this['_reduceExistingSuggestions'](_0x1c4974,_0x1d1da1);});},{'priority':'lowest'}),_0x18c9e9['model']['markers']['on']('update:suggestion',(_0x449da3,_0xa7603e,_0x4a38a9)=>{if(null==_0x4a38a9){const {id:_0x40cd8e}=this['_splitMarkerName'](_0xa7603e['name']),_0x447184=this['_suggestions']['get'](_0x40cd8e);_0x447184&&_0x447184['addMarkerName'](_0xa7603e['name']);}}),_0x18c9e9['model']['document']['on']('change:data',()=>{const _0x2a2063=Array['from'](_0x18c9e9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x7e58dd=>'suggestion'===this['_splitMarkerName'](_0x7e58dd['name'])['group']);if(0x0===_0x2a2063['length'])return;_0x2a2063['sort']((_0x403900,_0x48711c)=>{const _0x3773ff=_0x403900['data']['oldRange'],_0x5905da=_0x48711c['data']['oldRange'];return null===_0x3773ff&&null===_0x5905da?0x0:null===_0x3773ff&&null!==_0x5905da?-0x1:null!==_0x3773ff&&null===_0x5905da?0x1:_0x3773ff['start']['isBefore'](_0x5905da['start'])?-0x1:0x1;});const _0x2ea57b=new Set(),_0xa1ca93=new Set();for(const {name:_0x5a48f8,data:_0x2dc8f1}of _0x2a2063){const {id:_0x24bd74}=this['_splitMarkerName'](_0x5a48f8);if(null===_0x2dc8f1['oldRange']){const _0xe2c3ce=this['_handleNewSuggestionMarker'](_0x5a48f8);_0xa1ca93['add'](_0xe2c3ce);}else{const _0x51d69f=this['_suggestions']['get'](_0x24bd74);null!==_0x2dc8f1['newRange']||_0x51d69f['isInContent']?(_0x2ea57b['add'](_0x51d69f['head']),_0xa1ca93['add'](_0x51d69f)):this['_removeSuggestion'](_0x51d69f);}}_0xa1ca93['size']>0x0&&this['_refreshSuggestionsChain'](_0xa1ca93);for(const _0x5f5b69 of _0x2ea57b)this['fire']('suggestionChanged',_0x5f5b69);}),_0x18c9e9['model']['on']('applyOperation',(_0x40cbe9,_0xfd9b51)=>{const _0x213a1e=_0xfd9b51[0x0];if(!this['_suggestions']['size'])return;if(!_0x213a1e['isDocumentOperation'])return;if(_0x213a1e['batch']['isUndo']||!_0x213a1e['batch']['isLocal'])return;let _0x4531ec,_0x4911c6;switch(_0x213a1e['type']){case'insert':_0x4531ec=_0x18c9e9['model']['createPositionAt'](_0x213a1e['position']),_0x4911c6=_0x4531ec['getShiftedBy'](_0x213a1e['howMany']);break;case'split':_0x4531ec=_0x18c9e9['model']['createPositionAt'](_0x213a1e['splitPosition']),_0x4911c6=_0x18c9e9['model']['createPositionAt'](_0x213a1e['moveTargetPosition']);break;case'move':_0x4531ec=_0x18c9e9['model']['createPositionAt'](_0x213a1e['targetPosition']),_0x4911c6=_0x4531ec['getShiftedBy'](_0x213a1e['howMany']);break;default:return;}const _0x472cb9=_0x18c9e9['model']['createRange'](_0x4531ec,_0x4911c6);_0x18c9e9['model']['change'](()=>{for(const {suggestion:_0x3f3545,meta:_0x3a4609}of this['_findSuggestions'](_0x472cb9)){if(_0x3f3545['isMultiRange'])continue;if('formatInline'==_0x3f3545['type'])continue;const _0x390b3b=this['_getAttributeKey'](_0x3f3545);if(_0x390b3b&&this['_isBlockAttribute'](_0x390b3b)&&'split'!=_0x213a1e['type'])continue;const _0x4d51f1=_0x3f3545['data']&&_0x3f3545['data']['multipleBlocks'];('formatBlock'!=_0x3f3545['type']||'split'==_0x213a1e['type']&&!_0x4d51f1)&&(_0x3a4609['containsRangeInObject']||'insertion'==_0x3f3545['type']&&_0x3a4609['isOwn']||_0x3f3545['getFirstRange']()['containsRange'](_0x472cb9)&&this['_breakSuggestionMarker'](_0x3f3545,_0x4531ec,_0x4911c6));}});},{'priority':'lowest'}),_0x18c9e9['model']['on']('deleteContent',(_0x243d38,_0x7f9f26)=>{const _0x15f7a9=_0x7f9f26[0x0],_0xc98348=_0x7f9f26[0x1];if(_0xc98348&&_0xc98348['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x15f7a9['isCollapsed'])return;const _0x516ca3=_0x18c9e9['model']['schema'],{start:_0x69d3ae,end:_0x1e04dd}=_0x15f7a9['getFirstRange'](),_0x1b090a=_0x69d3ae['nodeAfter']&&_0x516ca3['isLimit'](_0x69d3ae['nodeAfter'])?null:_0x516ca3['getNearestSelectionRange'](_0x69d3ae,'forward'),_0x30fc02=_0x1e04dd['nodeBefore']&&_0x516ca3['isLimit'](_0x1e04dd['nodeBefore'])?null:_0x516ca3['getNearestSelectionRange'](_0x1e04dd,'backward'),_0x593628=_0x18c9e9['model']['createRange'](_0x1b090a?_0x1b090a['start']:_0x69d3ae,_0x30fc02?_0x30fc02['end']:_0x1e04dd);_0x18c9e9['model']['change'](_0x2dbe1f=>{this['markDeletion'](_0x593628);const _0x5ccff8=_0x18c9e9['model']['schema']['getNearestSelectionRange'](_0x593628['start']);_0x15f7a9['is']('documentSelection')?_0x2dbe1f['setSelection'](_0x5ccff8):_0x15f7a9['setTo'](_0x5ccff8);}),_0x243d38['stop']();},{'priority':_0x278b8c['normal']+0xa}),_0x18c9e9['model']['on']('insertContent',(_0x5e02fb,_0x4c9d58)=>{const _0x1e8ef0=_0x4c9d58[_0x4c9d58['length']-0x1];_0x1e8ef0&&_0x1e8ef0['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x18c9e9['model']['change'](()=>{let _0x2f59ea=_0x18c9e9['model']['insertContent'](_0x4c9d58[0x0],_0x4c9d58[0x1],_0x4c9d58[0x2],{'forceDefaultExecution':!0x0});if(!_0x2f59ea)return;_0x5e02fb['return']=_0x2f59ea['clone']();const _0x5fa56e=_0x2f59ea['end']['nodeBefore'],_0x5c2cea=_0x18c9e9['model']['schema'];_0x5fa56e&&_0x5c2cea['isBlock'](_0x5fa56e)&&!_0x5c2cea['isObject'](_0x5fa56e)&&(_0x2f59ea=_0x18c9e9['model']['createRange'](_0x2f59ea['start'],_0x18c9e9['model']['createPositionAt'](_0x5fa56e,'end'))),this['markInsertion'](_0x2f59ea);}),_0x5e02fb['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x22b4f0=new $(_0x18c9e9,this['_suggestions']);_0x18c9e9['commands']['add']('acceptSuggestion',_0x22b4f0),this['enableCommand']('acceptSuggestion');const _0x239744=new B(_0x18c9e9,this['_suggestions']);_0x18c9e9['commands']['add']('discardSuggestion',_0x239744),this['enableCommand']('discardSuggestion'),_0x18c9e9['commands']['add']('acceptAllSuggestions',new x(_0x18c9e9,_0x22b4f0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x18c9e9['commands']['add']('discardAllSuggestions',new x(_0x18c9e9,_0x239744,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x18c9e9['commands']['add']('acceptSelectedSuggestions',new R(_0x18c9e9,_0x22b4f0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x18c9e9['commands']['add']('discardSelectedSuggestions',new R(_0x18c9e9,_0x239744,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x22d237=_0x18c9e9['plugins']['get']('CommentsRepository');this['listenTo'](_0x22d237,'addComment',(_0x198f73,{threadId:_0x107993})=>{const _0x27c002=this['_suggestions']['get'](_0x107993);_0x27c002&&_0x27c002['commentThread']&&0x1===_0x27c002['commentThread']['length']&&this['_updateSuggestionData'](_0x107993,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x22d237,'removeComment',(_0x10127c,{threadId:_0x96d59d})=>{const _0x302534=this['_suggestions']['get'](_0x96d59d);_0x302534&&_0x302534['commentThread']&&!_0x302534['commentThread']['length']&&this['_updateSuggestionData'](_0x96d59d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x22f7af){if(this['_adapter'])throw new _0x39a7b6('track-changes-adapter-already-set',this);this['_adapter']=_0x22f7af;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x336836=!0x1,toJSON:_0x1871a4=!0x1}={}){const _0xfe2444=[];for(const _0x3c9a7f of this['_suggestions']['values']())_0x336836&&!_0x3c9a7f['isInContent']||_0xfe2444['push'](_0x3c9a7f);return _0x1871a4?_0xfe2444['map'](_0x34bce5=>_0x34bce5['toJSON']()):_0xfe2444;}['getSuggestion'](_0x5701b6){const _0x5d0649=this['_suggestions']['get'](_0x5701b6);if(!_0x5d0649)throw new _0x39a7b6('track-changes-suggestion-not-found',this);return _0x5d0649;}['hasSuggestion'](_0x3108ea){return this['_suggestions']['has'](_0x3108ea);}['addSuggestionData'](_0x63b2cf){const {authorId:_0x5a4d74,id:_0x51eb66,attributes:_0x20b3e1}=_0x63b2cf,[_0x37ac1b,_0xa494b6]=_0x63b2cf['type']['split'](':'),_0x4f6b39=this['_suggestions']['get'](_0x51eb66)||this['_createSuggestion'](_0x37ac1b,_0xa494b6,_0x51eb66,_0x5a4d74,_0x20b3e1);if(this['_addThreadToSuggestion'](_0x4f6b39),this['_checkSuggestionCorrectness'](_0x4f6b39,_0x37ac1b,_0xa494b6||null,_0x5a4d74),_0x4f6b39['createdAt']=_0x63b2cf['createdAt'],_0x4f6b39['_isDataLoaded']=!0x0,_0x20b3e1&&_0x20b3e1['@external']){const _0x36826a=_0x20b3e1['@external'],_0x21bbb7=this['_getExternalAuthor'](_0x36826a['authorName']);_0x4f6b39['authoredAt']=_0x36826a['createdAt'],_0x4f6b39['author']=_0x21bbb7,_0x4f6b39['isExternal']=!0x0;}else _0x4f6b39['authoredAt']=_0x63b2cf['createdAt'];switch(_0x63b2cf['data']&&(_0x4f6b39['data']=_0x63b2cf['data']),_0x63b2cf['attributes']&&(_0x4f6b39['attributes']=_0x63b2cf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4f6b39['_saved']=!0x0),this['_suggestionState']['get'](_0x4f6b39)){case'notReady':this['_suggestionState']['set'](_0x4f6b39,'dataReady');break;case'markerReady':_0x4f6b39['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4f6b39])),this['_refreshSuggestionsChain'](new Set([_0x4f6b39])),this['_suggestionState']['set'](_0x4f6b39,'ready'),this['fire']('suggestionLoaded',_0x4f6b39)):this['_suggestionState']['set'](_0x4f6b39,'removed');}return _0x4f6b39;}['acceptSuggestion'](_0x386f88){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4f0385 of _0x386f88['getAllAdjacentSuggestions']())_0x4f0385['accept']();});});}['discardSuggestion'](_0x59b810){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x255774 of _0x59b810['getAllAdjacentSuggestions']())_0x255774['discard']();});});}['enableCommand'](_0x416df6,_0x4e8d7c){const _0x53887a=this['editor']['commands']['get'](_0x416df6);if(!_0x53887a)throw new _0x39a7b6('track-changes-command-not-found',this,{'commandName':_0x416df6});if(this['_enabledCommands']['has'](_0x53887a))throw new _0x39a7b6('track-changes-enable-command-twice',this,{'commandName':_0x416df6});this['_enabledCommands']['add'](_0x53887a),_0x4e8d7c&&_0x53887a['on']('execute',(_0x30ad8f,_0xdd1b46)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xdd1b46['length']>0x0&&_0xdd1b46[_0xdd1b46['length']-0x1]&&_0xdd1b46[_0xdd1b46['length']-0x1]['forceDefaultExecution']?_0xdd1b46['pop']():(_0x30ad8f['return']=_0x4e8d7c((..._0x9b1490)=>_0x53887a['execute'](..._0x9b1490,{'forceDefaultExecution':!0x0}),..._0xdd1b46),_0x30ad8f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4634a5){let _0x597635,_0x1d9eed;const _0x4ba00e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x597635=_0x4634a5();}catch(_0x4a5986){_0x1d9eed=_0x4a5986;}return _0x4ba00e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1d9eed&&_0x39a7b6['rethrowUnexpectedError'](_0x1d9eed,this),_0x597635;}['markInsertion'](_0x343eef,_0x269fe0=null,_0x3e1569={}){if(_0x343eef['isCollapsed'])return null;const _0x317285=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x547a5d,meta:_0x3505af}of this['_findSuggestions'](_0x343eef,'insertion'))if(_0x3505af['isOwn']){if(!_0x3505af['isNextTo']){if(_0x3505af['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x547a5d,_0x3e1569))continue;return _0x547a5d;}if(Lt(_0x547a5d,_0x3e1569))return _0x547a5d;this['_breakSuggestionMarker'](_0x547a5d,_0x343eef['start'],_0x343eef['end']);break;}if(_0x269fe0==_0x547a5d['subType']&&Lt(_0x547a5d,_0x3e1569)){const _0x4ff34a=_0x547a5d['getFirstRange']();return _0x4ff34a['start']['isEqual'](_0x343eef['end'])?this['_setSuggestionRange'](_0x547a5d,this['_model']['createRange'](_0x343eef['start'],_0x4ff34a['end'])):this['_setSuggestionRange'](_0x547a5d,this['_model']['createRange'](_0x4ff34a['start'],_0x343eef['end'])),_0x547a5d;}}const _0x579633=_0x51081b(),_0x4c2805=_0x317285['id'],_0xfd412c=_0x269fe0?'insertion:'+_0x269fe0:'insertion',_0x3b6311=this['_setSuggestionData']({'id':_0x579633,'type':_0xfd412c,'createdAt':new Date(),'authorId':_0x4c2805,'attributes':_0x3e1569});return this['_addSuggestionMarker'](_0xfd412c,_0x579633,_0x4c2805,_0x343eef),_0x3b6311;}['markMultiRangeInsertion'](_0x5ef537,_0x3848c5='multi',_0x533570={}){const _0x502008=this['editor']['plugins']['get']('Users')['me'],_0x431cf1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3848c5,'join');for(const _0x2b574d of this['getSuggestions']())if(_0x2b574d['author']['id']==_0x502008['id']&&'insertion'==_0x2b574d['type']&&_0x2b574d['subType']==_0x3848c5&&Lt(_0x2b574d,_0x533570)&&(_0x431cf1(_0x2b574d['getRanges'](),_0x5ef537)||_0x431cf1(_0x5ef537,_0x2b574d['getRanges']()))){for(const _0x26d796 of _0x5ef537)_0x2b574d['addRange'](_0x26d796);return _0x2b574d;}for(const {suggestion:_0x3ea146,meta:_0x4fc90a}of this['_findSuggestions'](_0x5ef537,'insertion')){if(!_0x4fc90a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4fc90a['containsRangeInObject'])continue;if(!Lt(_0x3ea146,_0x533570))continue;let _0x5c64e6=!0x0;for(const _0x334b37 of _0x3ea146['getRanges']())for(const _0x2805cc of _0x5ef537)if(!_0x334b37['containsRange'](_0x2805cc)){_0x5c64e6=!0x1;break;}if(_0x5c64e6)return _0x3ea146;}const _0x5092b5=_0x51081b(),_0x369b36=_0x502008['id'],_0x20580d='insertion:'+_0x3848c5,_0x2be507=this['_setSuggestionData']({'id':_0x5092b5,'type':_0x20580d,'createdAt':new Date(),'authorId':_0x369b36,'attributes':_0x533570});for(const _0x2594fd of _0x5ef537)this['_addSuggestionMarker'](_0x20580d,_0x5092b5,_0x369b36,_0x2594fd,u['getMultiRangeId']());return _0x2be507;}['markInlineFormat'](_0xbab80b,_0xb4ba40,_0x472c83=null,_0xdc98e={}){if(_0x472c83=_0x472c83||Vt(_0xb4ba40),_0xbab80b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x19c2da=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x472c83,'accept');return this['forceDefaultExecution'](()=>_0x19c2da([_0xbab80b],_0xb4ba40,_0xdc98e)),null;}const _0x322107=this['editor']['plugins']['get']('Users')['me'],_0x3b4f2f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5f4103,meta:_0x5ad006}of this['_findSuggestions'](_0xbab80b,'insertion'))_0x5ad006['isOwn']&&!_0x5ad006['isInsideObject']&&_0x3b4f2f['push'](..._0x5f4103['getRanges']());}const _0x20c94d=function(_0x2c0ca9,_0x1a30ed){const _0x26c9ba=[];for(const _0x30e67a of _0x1a30ed){const _0x1d42e0=_0x2c0ca9['getIntersection'](_0x30e67a);_0x1d42e0&&_0x26c9ba['push'](_0x1d42e0);}return _0x26c9ba;}(_0xbab80b,_0x3b4f2f),_0x2e24fc=function(_0x3df3c5,_0x46500a){const _0x23a014=[_0x3df3c5];for(const _0x4c31d1 of _0x46500a){let _0x4c5f10=0x0;for(;_0x4c5f10<_0x23a014['length'];){const _0x14a144=_0x23a014[_0x4c5f10]['getDifference'](_0x4c31d1);_0x23a014['splice'](_0x4c5f10,0x1,..._0x14a144),_0x4c5f10+=_0x14a144['length'];}}return _0x23a014;}(_0xbab80b,_0x3b4f2f);_0x20c94d['length']&&this['_model']['change'](()=>{for(const _0x1fabe2 of _0x20c94d){const _0x267c00=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x472c83,'accept');this['forceDefaultExecution'](()=>_0x267c00([_0x1fabe2],_0xb4ba40,_0xdc98e));}});for(const _0x3fb163 of _0x2e24fc){let _0x4dc895=null,_0x34048b=_0x3fb163['start'],_0x2add62=_0x3fb163['end'];for(const {suggestion:_0x5adb51,meta:_0x555fce}of this['_findSuggestions'](_0x3fb163,'formatInline')){if(!_0x555fce['isOwn'])continue;if(_0x5adb51['subType']!=_0x472c83)continue;if(!Lt(_0x5adb51,_0xdc98e))continue;const _0x34a93d=_0x5adb51['getFirstRange']();if(_0x34a93d['containsRange'](_0x3fb163,!0x0))return null;_0x34048b=_0x34048b['isBefore'](_0x34a93d['start'])?_0x34048b:_0x34a93d['start'],_0x2add62=_0x2add62['isAfter'](_0x34a93d['end'])?_0x2add62:_0x34a93d['end'],_0x4dc895?_0x34a93d['start']['isBefore'](_0x4dc895['getFirstRange']()['start'])?(_0x4dc895['removeMarkers'](),_0x4dc895=_0x5adb51):_0x5adb51['removeMarkers']():_0x4dc895=_0x5adb51;}const _0x4947b4=this['_model']['createRange'](_0x34048b,_0x2add62);if(_0x4dc895)this['_setSuggestionRange'](_0x4dc895,_0x4947b4);else{const _0x501db3=_0x51081b(),_0x311ac5=_0x322107['id'];this['_setSuggestionData']({'id':_0x501db3,'type':'formatInline:'+_0x472c83,'data':_0xb4ba40,'createdAt':new Date(),'authorId':_0x311ac5,'attributes':_0xdc98e}),this['_addSuggestionMarker']('formatInline:'+_0x472c83,_0x501db3,_0x311ac5,_0x4947b4);}}return null;}['markBlockFormat'](_0x9641de,_0x4f0cfc,_0x2451f3=[],_0x19b87d=null,_0x40ea42={}){_0x4f0cfc['formatGroupId']||(_0x4f0cfc['formatGroupId']=_0x4f0cfc['commandName']),_0x4f0cfc['multipleBlocks']=_0x9641de['is']('range'),_0x19b87d=_0x19b87d||Vt(_0x4f0cfc);const _0x48ffc2=_0x2451f3['map'](_0x48c831=>Gt(_0x48c831,this['_model'])),_0x15d7af=_0x9641de['is']('range')?_0x9641de:Gt(_0x9641de,this['_model']);if('never'===this['_trackFormatChanges']){const _0x186dfc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19b87d,'accept');return this['forceDefaultExecution'](()=>_0x186dfc([_0x15d7af],_0x4f0cfc,_0x40ea42)),null;}_0x48ffc2['push'](_0x15d7af);let _0x658e97=!0x0;for(const _0x38ca4e of _0x48ffc2)if(!this['_rangeIsInLocalUserInsertion'](_0x38ca4e)){_0x658e97=!0x1;break;}if(_0x658e97&&'always'!==this['_trackFormatChanges']){const _0x4c7883=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19b87d,'accept');return this['forceDefaultExecution'](()=>_0x4c7883([_0x15d7af],_0x4f0cfc,_0x40ea42)),null;}let _0x15471d=null,_0x5d5c2a=_0x15d7af['start'],_0x341f37=_0x15d7af['end'];for(const {suggestion:_0x109fb5,meta:_0x437051}of this['_findSuggestions'](_0x15d7af,'formatBlock')){if(!_0x437051['isOwn'])continue;if(_0x437051['isNextTo']||_0x437051['containsRangeInObject']||_0x437051['isInsideObject'])continue;if(_0x109fb5['data']['formatGroupId']!=_0x4f0cfc['formatGroupId'])continue;if(!Lt(_0x109fb5,_0x40ea42))continue;const _0x59bae9=_0x109fb5['getFirstRange']();if(_0x109fb5['subType']==_0x19b87d){if(_0x59bae9['containsRange'](_0x15d7af,!0x0))return null;_0x5d5c2a=_0x5d5c2a['isBefore'](_0x59bae9['start'])?_0x5d5c2a:_0x59bae9['start'],_0x341f37=_0x341f37['isAfter'](_0x59bae9['end'])?_0x341f37:_0x59bae9['end'],_0x15471d?_0x59bae9['start']['isBefore'](_0x15471d['getFirstRange']()['start'])?(_0x15471d['removeMarkers'](),_0x15471d=_0x109fb5):_0x109fb5['removeMarkers']():_0x15471d=_0x109fb5;}else{const _0x19ec1e=_0x15d7af['getIntersection'](_0x59bae9);this['_cutOutSuggestionMarker'](_0x109fb5,_0x19ec1e);}}const _0x3a8af7=this['editor']['plugins']['get']('Users')['me'],_0x443dfb=_0x51081b(),_0x3dba08=_0x3a8af7['id'];if(_0x15471d)return this['_setSuggestionRange'](_0x15471d,this['_model']['createRange'](_0x5d5c2a,_0x341f37)),_0x15471d;{const _0x3f509d=this['_setSuggestionData']({'id':_0x443dfb,'type':'formatBlock:'+_0x19b87d,'data':_0x4f0cfc,'createdAt':new Date(),'authorId':_0x3dba08,'attributes':_0x40ea42});return this['_addSuggestionMarker']('formatBlock:'+_0x19b87d,_0x443dfb,_0x3dba08,this['_model']['createRange'](_0x5d5c2a,_0x341f37)),_0x3f509d;}}['markMultiRangeBlockFormat'](_0xd89a0,_0x80bdb7,_0x5cdc8c=[],_0x2e39b7=null,_0x13ca0d={}){_0x80bdb7['formatGroupId']||(_0x80bdb7['formatGroupId']=_0x80bdb7['commandName']);const _0x5a65e3=_0xd89a0[0x0];_0x80bdb7['multipleBlocks']=_0x5a65e3['is']('range'),_0x2e39b7=_0x2e39b7||Vt(_0x80bdb7);const _0x150f6b=_0x5cdc8c['map'](_0x28b9a3=>Gt(_0x28b9a3,this['_model'])),_0x4c44c5=_0x5a65e3['is']('range')?_0xd89a0:_0xd89a0['map'](_0x3ee184=>Gt(_0x3ee184,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2850e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e39b7,'accept');return this['forceDefaultExecution'](()=>_0x2850e5(_0x4c44c5,_0x80bdb7,_0x13ca0d)),null;}_0x150f6b['push'](..._0x4c44c5);let _0x4c5b78=!0x0;for(const _0x40fa2e of _0x150f6b)if(!this['_rangeIsInLocalUserInsertion'](_0x40fa2e)){_0x4c5b78=!0x1;break;}if(_0x4c5b78&&'always'!==this['_trackFormatChanges']){const _0x49e5e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e39b7,'accept');return this['forceDefaultExecution'](()=>_0x49e5e7(_0x4c44c5,_0x80bdb7,_0x13ca0d)),null;}const _0x58df0c=this['editor']['plugins']['get']('Users')['me'];for(const _0x3fb43c of this['getSuggestions']()){if(_0x3fb43c['author']['id']!=_0x58df0c['id'])continue;if('formatBlock'!=_0x3fb43c['type']||_0x3fb43c['data']['formatGroupId']!=_0x80bdb7['formatGroupId'])continue;if(!Lt(_0x3fb43c,_0x13ca0d))continue;const _0x1e15fc=_0x3fb43c['subType']==_0x2e39b7;for(let _0x2c2007=0x0;_0x2c2007<_0x4c44c5['length'];_0x2c2007++){const _0x4e97b8=_0x4c44c5[_0x2c2007];for(const _0x3654f0 of _0x3fb43c['getMarkers']()){const _0x12d2ca=_0x3654f0['getRange']();if(_0x4e97b8['isEqual'](_0x12d2ca)){_0x1e15fc?(_0x4c44c5['splice'](_0x2c2007,0x1),_0x2c2007--):_0x3fb43c['removeMarker'](_0x3654f0['name']);break;}}}}if(0x0==_0x4c44c5['length'])return null;const _0x28c528=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e39b7,'join');for(const _0x4ee37f of this['getSuggestions']())if(_0x4ee37f['author']['id']==_0x58df0c['id']&&'formatBlock'==_0x4ee37f['type']&&_0x4ee37f['data']['formatGroupId']==_0x80bdb7['formatGroupId']&&_0x4ee37f['subType']==_0x2e39b7&&Lt(_0x4ee37f,_0x13ca0d)&&(_0x28c528(_0x4ee37f['getRanges'](),_0x4c44c5)||_0x28c528(_0x4c44c5,_0x4ee37f['getRanges']()))){for(const _0x90ce3d of _0x4c44c5)_0x4ee37f['addRange'](_0x90ce3d);return _0x4ee37f;}const _0x52acf6=_0x51081b(),_0x35c1e4=_0x58df0c['id'],_0x2b2cb8='formatBlock:'+_0x2e39b7,_0x20ab21=this['_setSuggestionData']({'id':_0x52acf6,'type':_0x2b2cb8,'data':_0x80bdb7,'createdAt':new Date(),'authorId':_0x35c1e4,'attributes':_0x13ca0d});for(const _0x4ad015 of _0x4c44c5)this['_addSuggestionMarker'](_0x2b2cb8,_0x52acf6,_0x35c1e4,_0x4ad015,u['getMultiRangeId']());return _0x20ab21;}['markDeletion'](_0x474528,_0x5ddb0f=null,_0x19c49e={}){if(_0x474528['isCollapsed'])return null;const _0x5d1305=this['editor']['plugins']['get']('Users')['me'],_0x434c83=new _0x4022b5(_0x474528['start'],_0x474528['end']);for(const {suggestion:_0x1cee2d,meta:_0x285b79}of this['_findSuggestions'](_0x434c83,'insertion'))if(_0x285b79['isOwn']&&!_0x285b79['isNextTo']){if(_0x1cee2d['isMultiRange']){const _0x151b6f=_0x1cee2d['getRanges']()['filter'](_0x35c5e1=>'$graveyard'!=_0x35c5e1['root']['rootName']);_0x151b6f['every'](_0xb0839e=>_0x434c83['containsRange'](_0xb0839e,!0x0))&&_0x1cee2d['discard']();if(_0x151b6f['some'](_0x3b0308=>_0x3b0308['containsRange'](_0x434c83,!0x0))){const _0x2fe157=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ddb0f,'accept');return this['forceDefaultExecution'](()=>_0x2fe157([_0x434c83],null,_0x19c49e)),null;}}else{const _0x378ab0=_0x434c83['getIntersection'](_0x1cee2d['getFirstRange']());null!==_0x378ab0&&_0x1cee2d['_onDiscard']([_0x378ab0],null,_0x19c49e);}}if(_0x434c83['detach'](),_0x434c83['isCollapsed']||'$graveyard'==_0x434c83['root']['rootName'])return null;let _0x31ce91=null,_0xc8f40a=_0x434c83['start'],_0x3793ac=_0x434c83['end'];const _0x228d44=this['_findSuggestions'](_0x434c83,'deletion');for(const {suggestion:_0x904c93,meta:_0x8f9e25}of _0x228d44){const _0x460275=this['_model']['createRange'](_0xc8f40a,_0x3793ac);if(_0x8f9e25['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8f9e25['containsRangeInObject']&&!_0x8f9e25['isInsideObject'])){if(_0x904c93['isMultiRange']){if(!Lt(_0x904c93,_0x19c49e))continue;let _0x2cd2c7=!0x0;for(const _0x442b33 of _0x904c93['getRanges']()){if(_0x442b33['containsRange'](_0x460275,!0x0))return _0x904c93;_0x460275['containsRange'](_0x442b33)||(_0x2cd2c7=!0x1);}_0x2cd2c7&&_0x904c93['discard']();}else{const _0x15e316=_0x904c93['getFirstRange']();if(_0x15e316['containsRange'](_0x460275,!0x0))return _0x904c93;if(!Lt(_0x904c93,_0x19c49e)){_0x460275['containsRange'](_0x15e316)?_0x904c93['removeMarkers']():_0x15e316['containsPosition'](_0xc8f40a)?_0xc8f40a=_0x15e316['end']:_0x15e316['containsPosition'](_0x3793ac)&&(_0x3793ac=_0x15e316['start']);continue;}_0xc8f40a=_0xc8f40a['isBefore'](_0x15e316['start'])?_0xc8f40a:_0x15e316['start'],_0x3793ac=_0x3793ac['isAfter'](_0x15e316['end'])?_0x3793ac:_0x15e316['end'],_0x19c49e=Object['assign']({},_0x904c93['attributes']),_0x31ce91?_0x15e316['start']['isBefore'](_0x31ce91['getFirstRange']()['start'])?(_0x31ce91['removeMarkers'](),_0x31ce91=_0x904c93):_0x904c93['removeMarkers']():_0x31ce91=_0x904c93;}}}if(_0x31ce91)return this['_setSuggestionRange'](_0x31ce91,this['_model']['createRange'](_0xc8f40a,_0x3793ac)),_0x31ce91;{const _0x58c538=_0x51081b(),_0x1c7728=this['_model']['createRange'](_0xc8f40a,_0x3793ac),_0x39d872=_0x5d1305['id'],_0x4d9fe5=_0x5ddb0f?'deletion:'+_0x5ddb0f:'deletion',_0x37a1bb=this['_setSuggestionData']({'id':_0x58c538,'type':_0x4d9fe5,'createdAt':new Date(),'authorId':_0x39d872,'attributes':_0x19c49e});return this['_addSuggestionMarker'](_0x4d9fe5,_0x58c538,_0x39d872,_0x1c7728),_0x37a1bb;}}['markMultiRangeDeletion'](_0x5557ba,_0x478407='multi',_0x2c736b={}){const _0x211311=this['editor']['plugins']['get']('Users')['me'],_0xa684ca=_0x5557ba['map'](_0x2b446d=>new _0x4022b5(_0x2b446d['start'],_0x2b446d['end'])),_0x5d8aea=new Set();for(const {suggestion:_0x240de1,meta:_0x4c5bc8}of this['_findSuggestions'](_0xa684ca,'insertion'))_0x4c5bc8['isOwn']&&!_0x4c5bc8['isNextTo']&&_0x5d8aea['add'](_0x240de1);for(const _0x65aa09 of _0x5d8aea)if(_0x65aa09['isMultiRange']){const _0x4e1dc3=_0x65aa09['getRanges']();(!_0x65aa09['attributes']||!_0x65aa09['attributes']['skipNestingCheck'])&&(_0x4e1dc3['every'](_0x1b1729=>_0xa684ca['some'](_0x1875f2=>_0x1875f2['containsRange'](_0x1b1729,!0x0)))&&_0x65aa09['discard']());if(_0xa684ca['every'](_0x56ffe7=>_0x4e1dc3['some'](_0xa65ab5=>_0xa65ab5['containsRange'](_0x56ffe7,!0x0)))){const _0x293a43=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x478407,'accept');return this['forceDefaultExecution'](()=>_0x293a43(_0x5557ba,null,_0x2c736b)),null;}}else{const _0x5139d3=_0x65aa09['getFirstRange']();_0xa684ca['some'](_0x357e40=>_0x357e40['containsRange'](_0x5139d3,!0x0))&&_0x65aa09['discard']();if(_0xa684ca['every'](_0x37d641=>_0x5139d3['containsRange'](_0x37d641,!0x0))){const _0x2765db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x478407,'accept');return this['forceDefaultExecution'](()=>_0x2765db(_0xa684ca,null,_0x2c736b)),null;}}const _0x333fe4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x478407,'join');let _0x23f002=null;for(const _0x511ee8 of this['getSuggestions']())if(_0x511ee8['author']['id']==_0x211311['id']&&_0x511ee8['isInContent']&&'deletion'==_0x511ee8['type']&&_0x511ee8['subType']==_0x478407&&Lt(_0x511ee8,_0x2c736b)&&(_0x333fe4(_0x511ee8['getRanges'](),_0xa684ca)||_0x333fe4(_0xa684ca,_0x511ee8['getRanges']()))){if(_0x23f002){if(_0x511ee8['commentThread']&&_0x511ee8['commentThread']['length'])continue;for(const _0x158eaf of _0x511ee8['getRanges']())_0x23f002['isIntersectingWithRange'](_0x158eaf)||_0x23f002['addRange'](_0x158eaf);_0x511ee8['removeMarkers']();}else{_0x23f002=_0x511ee8;for(const _0x329985 of _0xa684ca)_0x511ee8['isIntersectingWithRange'](_0x329985)||_0x511ee8['addRange'](_0x329985);}}if(_0x23f002)return _0x23f002;_0x5d8aea['clear']();for(const {suggestion:_0xea9552,meta:_0x1af56c}of this['_findSuggestions'](_0xa684ca,'deletion'))_0x1af56c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1af56c['containsRangeInObject']&&!_0x1af56c['isInsideObject'])&&Lt(_0xea9552,_0x2c736b)&&_0x5d8aea['add'](_0xea9552);for(const _0x3ae50e of _0x5d8aea){const _0x33a4e0=_0x3ae50e['getRanges']();if(!_0x2c736b||!_0x2c736b['skipNestingCheck']){if(_0xa684ca['every'](_0x560efb=>_0x33a4e0['some'](_0x1bb639=>_0x1bb639['containsRange'](_0x560efb,!0x0))))return _0x3ae50e;}(!_0x3ae50e['attributes']||!_0x3ae50e['attributes']['skipNestingCheck'])&&(_0x33a4e0['every'](_0x4dead8=>_0xa684ca['some'](_0x5672c3=>_0x5672c3['containsRange'](_0x4dead8,!0x0)))&&_0x3ae50e['discard']());}const _0x54f76e=_0x51081b(),_0xe7067a=_0x211311['id'],_0x518023='deletion:'+_0x478407,_0x5872d9=this['_setSuggestionData']({'id':_0x54f76e,'type':_0x518023,'createdAt':new Date(),'authorId':_0xe7067a,'attributes':_0x2c736b});for(const _0x32effc of _0xa684ca)_0x32effc['detach'](),_0x32effc['isCollapsed']||'$graveyard'==_0x32effc['root']['rootName']||this['_addSuggestionMarker'](_0x518023,_0x54f76e,_0xe7067a,_0x32effc,u['getMultiRangeId']());return _0x5872d9;}['markAttributeChange'](_0x250c1d,_0x165c8b,_0x84ecba,_0xf73b94,_0x4832e1){if(_0x250c1d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3cadc8=this['editor']['plugins']['get']('Users')['me']['id'],_0x405d42=Array['from'](this['_suggestions']['values']())['filter'](_0x31eac3=>'attribute'==_0x31eac3['type']&&_0x31eac3['data']['key']==_0x165c8b&&_0x31eac3['isIntersectingWithRange'](_0x250c1d));if('default'===this['_trackFormatChanges']){const _0x2bda82=this['_findSuggestions'](_0x250c1d,'insertion')['filter'](({meta:_0x1a3879})=>_0x1a3879['isOwn']&&!_0x1a3879['isInsideObject']&&!_0x1a3879['isNextTo'])['map'](({suggestion:_0xfb6d8})=>_0xfb6d8);_0x405d42['unshift'](..._0x2bda82);}const _0x271636=new Map([[_0x250c1d,_0x84ecba]]);for(const _0x5ed9d4 of _0x405d42){const _0x557824='attribute'==_0x5ed9d4['type']?_0x5ed9d4['data']['oldValue']:void 0x0,_0x4c8617=_0x5ed9d4['getFirstRange'](),_0xf6efe8=Array['from'](_0x271636['keys']())['find'](_0x2b78a5=>_0x2b78a5['isIntersecting'](_0x4c8617));if(!_0xf6efe8)continue;const _0x266188=_0xf6efe8['getDifference'](_0x4c8617);this['_isBlockAttribute'](_0x165c8b)&&'insertion'==_0x5ed9d4['type']&&0x0!=_0x266188['length']||(_0x271636['delete'](_0xf6efe8),_0x266188['forEach'](_0x104c5e=>{_0x271636['set'](_0x104c5e,_0x84ecba);}),'insertion'!=_0x5ed9d4['type']&&_0x557824!=_0xf73b94&&_0x271636['set'](_0xf6efe8['getIntersection'](_0x4c8617),_0x557824));}const _0x5d924b=[];for(const [_0x17cf58,_0x54bd9c]of _0x271636){const _0x49f63f=_0x51081b(),_0x5b1bed={'key':_0x165c8b,'oldValue':_0x54bd9c,'newValue':_0xf73b94};_0x165c8b['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':_0x165c8b});const _0x42c6e0=('attribute:'+(_0x165c8b+'|'+Vt({'newValue':_0xf73b94})))['substring'](0x0,0x3c),_0x493199=this['_setSuggestionData']({'id':_0x49f63f,'type':_0x42c6e0,'data':_0x5b1bed,'createdAt':new Date(),'authorId':_0x3cadc8,'attributes':_0x4832e1});_0x5d924b['push'](_0x493199),this['_addSuggestionMarker'](_0x42c6e0,_0x49f63f,_0x3cadc8,_0x17cf58);}return _0x5d924b;}['enableDefaultAttributesIntegration'](_0x314314){this['enableCommand'](_0x314314,(_0x4a90ab,..._0x272f9d)=>{this['_recordAttributeChanges'](()=>{_0x4a90ab(..._0x272f9d);});});}['registerBlockAttribute'](_0x5db855){this['_blockAttributeKeys']['add'](_0x5db855);}['registerInlineAttribute'](_0x18b049){this['_inlineAttributeKeys']['add'](_0x18b049);}['_getAttributeKey'](_0x2c6e6f){return'attribute'==_0x2c6e6f['type']?_0x2c6e6f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x46a175,_0x218bd8){const _0x354de6=_0x46a175['getFirstMarker']();this['_model']['change'](_0x2bb16b=>{_0x2bb16b['updateMarker'](_0x354de6,{'range':_0x218bd8});});}['_addThreadToSuggestion'](_0x322318){const _0x552325=_0x322318['id'],_0x40f325=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x552325)||this['_commentsRepository']['addCommentThread']({'channelId':_0x40f325,'threadId':_0x552325,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x25e58c=this['_commentsRepository']['getCommentThread'](_0x552325);_0x25e58c['unbind']('isRemovable'),_0x25e58c['isRemovable']=!0x1,_0x322318['commentThread']=_0x25e58c;}['_checkSuggestionCorrectness'](_0xe18b53,_0x558138,_0x1b6551,_0xaf2061){if(_0xe18b53['type']!=_0x558138||_0xe18b53['subType']!=_0x1b6551||_0xe18b53['creator']['id']!=_0xaf2061)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x39a7b6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4c0200,_0x426d67){const _0x3a1163=_0x4c0200['getFirstRange']();if(_0x426d67['isEqual'](_0x3a1163))_0x4c0200['removeMarkers']();else{if(_0x3a1163['containsRange'](_0x426d67)){const _0x329bb6=this['_model']['createPositionAt'](_0x426d67['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4c0200,this['_model']['createRange'](_0x3a1163['start'],_0x329bb6));const _0x28999e=_0x51081b(),_0x1a8951=_0x4c0200['creator']['id'],_0xcbd35d=_0x4c0200['type']+':'+_0x4c0200['subType'];this['_setSuggestionData']({'id':_0x28999e,'type':_0xcbd35d,'createdAt':new Date(),'authorId':_0x1a8951,'data':_0x4c0200['data'],'attributes':_0x4c0200['attributes']});const _0x35ff82=this['_model']['createPositionAt'](_0x426d67['end']['parent'],'after'),_0xf3b087=this['_model']['createRange'](_0x35ff82,_0x3a1163['end']);this['_addSuggestionMarker'](_0xcbd35d,_0x28999e,_0x1a8951,_0xf3b087);}else{if(_0x3a1163['containsPosition'](_0x426d67['start'])){const _0x191da1=this['_model']['createPositionAt'](_0x426d67['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4c0200,this['_model']['createRange'](_0x3a1163['start'],_0x191da1));}else{const _0x1ff1b0=this['_model']['createPositionAt'](_0x426d67['end']['parent'],'after');this['_setSuggestionRange'](_0x4c0200,this['_model']['createRange'](_0x1ff1b0,_0x3a1163['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x8cb2b7){for(const {suggestion:_0x213425,meta:_0x5b6d1b}of this['_findSuggestions'](_0x8cb2b7,'insertion')){if(!_0x5b6d1b['isOwn'])continue;const _0x3acd89=_0x213425['getRanges']();for(const _0x44adb9 of _0x3acd89)if(!_0x8cb2b7['getDifference'](_0x44adb9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4db092){const _0x2999e8=this['editor']['plugins']['get']('Users')['getUser'](_0x4db092);if(!_0x2999e8)throw new _0x39a7b6('track-changes-user-not-found',this);return _0x2999e8;}['_getExternalAuthor'](_0x2b408d){const _0x2182b9=this['editor']['plugins']['get']('Users'),_0x32ed4a=_0x434c54('external:'+_0x2b408d),_0x2b8ac7=_0x2182b9['getUser'](_0x32ed4a);return _0x2b8ac7||_0x2182b9['addUser']({'id':_0x32ed4a,'name':_0x2b408d});}['_createSuggestion'](_0x5f11c5,_0x508d67,_0x3d87d8,_0x2c8441,_0x30b893){const _0x4b751b=this['_getAuthorFromId'](_0x2c8441),_0x346b45=this['_suggestionFactory']['buildSuggestion'](_0x5f11c5,_0x508d67,_0x3d87d8,_0x4b751b,_0x30b893,_0x12e3e3=>{this['_updateSuggestionData'](_0x3d87d8,{'attributes':_0x12e3e3});const _0x350885=this['getSuggestion'](_0x3d87d8);this['_joinWithAdjacentSuggestions'](new Set([_0x350885])),this['_refreshSuggestionsChain'](new Set([_0x350885]));});return this['listenTo'](_0x346b45,'accept',()=>{this['_updateSuggestionData'](_0x3d87d8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x346b45,'discard',()=>{this['_updateSuggestionData'](_0x3d87d8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3d87d8,_0x346b45),this['_suggestionState']['set'](_0x346b45,'notReady'),_0x346b45;}['_splitMarkerName'](_0x18b621){const _0x3a57fc=_0x18b621['split'](':');return{'group':_0x3a57fc[0x0],'type':_0x3a57fc[0x1],'subType':_0x3a57fc['length']>=0x5?_0x3a57fc[0x2]:null,'id':_0x3a57fc['length']<0x5?_0x3a57fc[0x2]:_0x3a57fc[0x3],'authorId':_0x3a57fc['length']<0x5?_0x3a57fc[0x3]:_0x3a57fc[0x4],'markerCount':0x6==_0x3a57fc['length']?_0x3a57fc[0x5]:null};}['_breakSuggestionMarker'](_0x35a9e7,_0x15e12a,_0xadcd01){const _0x64be8e=_0x35a9e7['getFirstRange'](),_0x236834=_0x64be8e['start'],_0x4211da=_0x64be8e['end'];this['_setSuggestionRange'](_0x35a9e7,this['_model']['createRange'](_0x236834,_0x15e12a));const _0x14fee6=_0x51081b(),_0x3bfb61=_0x35a9e7['creator']['id'],_0x5e2657=_0x35a9e7['type']+(_0x35a9e7['subType']?':'+_0x35a9e7['subType']:'');this['_setSuggestionData']({'id':_0x14fee6,'type':_0x5e2657,'createdAt':new Date(),'authorId':_0x3bfb61,'originalSuggestionId':_0x35a9e7['id'],'attributes':_0x35a9e7['attributes'],'data':_0x35a9e7['data']});const _0x165d18=this['_getAttributeKey'](_0x35a9e7);('formatBlock'==_0x35a9e7['type']||_0x165d18&&this['_isBlockAttribute'](_0x165d18))&&(_0xadcd01=this['_model']['createPositionBefore'](_0xadcd01['parent'])),this['_addSuggestionMarker'](_0x5e2657,_0x14fee6,_0x3bfb61,this['_model']['createRange'](_0xadcd01,_0x4211da));}['_findSuggestions'](_0x4cb6a5,_0x23e3a7=null){const _0x49dd8a=[],_0xd50541=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4cb6a5)||(_0x4cb6a5=[_0x4cb6a5]);for(const _0x1a3cec of this['getSuggestions']()){if(!_0x1a3cec['isInContent'])continue;if(_0x23e3a7&&_0x1a3cec['type']!=_0x23e3a7)continue;let _0x2ae1ab=!0x1;for(const _0x411f0d of _0x1a3cec['getRanges']()){for(const _0x29210c of _0x4cb6a5){const _0x51a136=_0x29210c['start']['isEqual'](_0x411f0d['end'])||_0x29210c['end']['isEqual'](_0x411f0d['start']);if(_0x51a136||_0x29210c['getIntersection'](_0x411f0d)){const _0x3fcf20=_0x29210c['containsRange'](_0x411f0d)&&Rt(this['_model']['schema'],_0x411f0d['start'],_0x29210c),_0x1aea90=_0x411f0d['containsRange'](_0x29210c)&&Rt(this['_model']['schema'],_0x29210c['start'],_0x411f0d);_0x49dd8a['push']({'suggestion':_0x1a3cec,'meta':{'isOwn':_0xd50541==_0x1a3cec['author'],'isNextTo':_0x51a136,'isInsideObject':_0x3fcf20,'containsRangeInObject':_0x1aea90}}),_0x2ae1ab=!0x0;break;}}if(_0x2ae1ab)break;}}return _0x49dd8a;}['_addSuggestionMarker'](_0x381dab,_0x4bdbc4,_0xf6a7fa,_0x598830,_0x51ef5b){this['_model']['change'](_0x5a2a14=>{let _0x26c101='suggestion:'+_0x381dab+':'+_0x4bdbc4+':'+_0xf6a7fa;_0x51ef5b&&(_0x26c101=_0x26c101+':'+_0x51ef5b),_0x5a2a14['addMarker'](_0x26c101,{'range':_0x598830,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x98a11f){const _0x276cad=_0x98a11f['previous'],_0x2aa6a7=_0x98a11f['next'];_0x98a11f['previous']=null,_0x98a11f['next']=null,null!=_0x276cad&&_0x276cad['next']==_0x98a11f&&(_0x276cad['next']=_0x2aa6a7),null!=_0x2aa6a7&&_0x2aa6a7['previous']==_0x98a11f&&(_0x2aa6a7['previous']=_0x276cad),'ready'==this['_suggestionState']['get'](_0x98a11f)&&(this['_suggestionState']['set'](_0x98a11f,'removed'),this['fire']('suggestionUnloaded',_0x98a11f,_0x276cad,_0x2aa6a7));}['_setSuggestionData'](_0x29eb53){const _0x4f214d=_0x29eb53['id'],_0x55932c=this['addSuggestionData'](_0x29eb53);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x46fd8d=this['editor']['plugins']['get']('PendingActions'),_0x8c6576=_0x55932c['hasComments'],_0x4c69da=_0x55932c['subType']?_0x55932c['type']+':'+_0x55932c['subType']:_0x55932c['type'],_0x5af52b=this['editor']['locale'],_0x502429=_0x46fd8d['add'](o(_0x5af52b,'PENDING_ACTION_SUGGESTION')),_0x2aee9b={'id':_0x4f214d,'type':_0x4c69da,'hasComments':_0x8c6576,'data':_0x29eb53['data']||null,'originalSuggestionId':_0x29eb53['originalSuggestionId']||null,'attributes':_0x55932c['attributes']};this['_adapter']['addSuggestion'](_0x2aee9b)['then'](_0x1fea7d=>{_0x55932c['_saved']=!0x0,_0x46fd8d['remove'](_0x502429),_0x1fea7d&&_0x1fea7d['createdAt']&&(this['_suggestions']['get'](_0x4f214d)['createdAt']=_0x1fea7d['createdAt']);})['catch'](_0x2fae80=>{throw _0x7e7fb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x55932c['discard']();}),_0x55932c['stopListening'](),this['_suggestions']['delete'](_0x55932c['id']),this['_suggestionState']['delete'](_0x55932c),_0x2fae80;});}return _0x55932c;}['_isBlockAttribute'](_0x279e7d){return this['_blockAttributeKeys']['has'](_0x279e7d);}['_updateSuggestionData'](_0x4dbe2e,_0x1c7bec){const _0x47b530=this['editor']['plugins']['get']('PendingActions'),_0x379c23=this['getSuggestion'](_0x4dbe2e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x379c23['_saved']){const _0x36ed9d=_0x47b530['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4dbe2e,_0x1c7bec)['then'](()=>{_0x47b530['remove'](_0x36ed9d);});}else _0x379c23['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4dbe2e,_0x1c7bec);});}}['_getSuggestionData'](_0x9f9386){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x39a7b6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x9f9386);}['_handleNewSuggestionMarker'](_0x371e9c){const {id:_0x40ad30,type:_0x503d73,subType:_0x2fbf3b,authorId:_0x2c1730}=this['_splitMarkerName'](_0x371e9c),_0x4f2b79=this['_suggestions']['get'](_0x40ad30)||this['_createSuggestion'](_0x503d73,_0x2fbf3b,_0x40ad30,_0x2c1730,{});switch(this['_checkSuggestionCorrectness'](_0x4f2b79,_0x503d73,_0x2fbf3b,_0x2c1730),this['_suggestionState']['get'](_0x4f2b79)){case'notReady':this['_getSuggestionData'](_0x40ad30)['then'](_0x1de41e=>{let _0x5fbc7=Promise['resolve']();_0x1de41e['hasComments']&&(_0x5fbc7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x40ad30})),_0x5fbc7['then'](()=>{this['addSuggestionData'](_0x1de41e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4f2b79,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x40ad30,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4f2b79,'ready'),this['fire']('suggestionLoaded',_0x4f2b79);break;case'ready':this['fire']('suggestionChanged',_0x4f2b79);}return _0x4f2b79['addMarkerName'](_0x371e9c),_0x4f2b79;}['_refreshSuggestionsChain'](_0xb11927){const _0x5c4d67=Array['from'](_0xb11927),_0x5c729d=_0x5c4d67['filter'](_0x5abda6=>'attribute'==_0x5abda6['type']);this['_refreshAttributeSuggestionsChain'](_0x5c729d);const _0x241c0d=_0x5c4d67['filter'](_0x492301=>!_0x492301['isMultiRange']&&'attribute'!=_0x492301['type']),_0x3b4571=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dc650=>!_0x4dc650['isMultiRange']&&'attribute'!=_0x4dc650['type']),_0x1c89aa=_0x3b4571['filter'](_0xfb5a0d=>!_0xb11927['has'](_0xfb5a0d)),_0x3a3e01=new Map(_0x3b4571['map'](_0x4268a2=>[_0x4268a2,this['_suggestionFactory']['getSuggestionCallback'](_0x4268a2['type'],_0x4268a2['subType'],'chain')])),_0x371e23=new Map(_0x3b4571['map'](_0x5c74db=>[_0x5c74db,_0x5c74db['getFirstRange']()])),_0x5d05b1=new Set(),_0x47b510=new Set();for(let _0x4718f3=0x0;_0x4718f3<_0x241c0d['length'];_0x4718f3++)_0x4569e6(_0x241c0d[_0x4718f3],_0x241c0d,_0x4718f3+0x1);for(let _0x3a36c0=0x0;_0x3a36c0<_0x241c0d['length'];_0x3a36c0++)_0x4569e6(_0x241c0d[_0x3a36c0],_0x1c89aa,0x0);const _0x2e341a=new Set();for(let _0x41bd8c=0x0;_0x41bd8c<_0x241c0d['length'];_0x41bd8c++){const _0x4f8e7a=_0x241c0d[_0x41bd8c];!_0x47b510['has'](_0x4f8e7a)&&_0x4f8e7a['previous']&&(_0x2e341a['add'](_0x4f8e7a['previous']),_0x4f8e7a['previous']['next']===_0x4f8e7a&&(_0x4f8e7a['previous']['next']=null),_0x4f8e7a['previous']=null),!_0x5d05b1['has'](_0x4f8e7a)&&_0x4f8e7a['next']&&(_0x2e341a['add'](_0x4f8e7a['next']),_0x4f8e7a['next']['previous']===_0x4f8e7a&&(_0x4f8e7a['next']['previous']=null),_0x4f8e7a['next']=null);}function _0x4569e6(_0x29954e,_0x6cd9a2,_0x3b0210){for(let _0x428c99=_0x3b0210;_0x428c99<_0x6cd9a2['length'];_0x428c99++){const _0x5b1795=_0x3656ab(_0x29954e,_0x6cd9a2[_0x428c99]);_0x5b1795&&(_0x5b1795[0x0]['next']=_0x5b1795[0x1],_0x5b1795[0x1]['previous']=_0x5b1795[0x0],_0x5d05b1['add'](_0x5b1795[0x0]),_0x47b510['add'](_0x5b1795[0x1]));}}function _0x3656ab(_0x2acea6,_0x1c93f8){if(_0x2acea6['author']['id']!==_0x1c93f8['author']['id'])return null;const _0x225b5c=_0x3a3e01['get'](_0x2acea6)(_0x2acea6,_0x1c93f8,_0x371e23['get'](_0x2acea6),_0x371e23['get'](_0x1c93f8));if(!_0x225b5c)return null;return _0x3a3e01['get'](_0x1c93f8)(_0x2acea6,_0x1c93f8,_0x371e23['get'](_0x2acea6),_0x371e23['get'](_0x1c93f8))?_0x225b5c[0x1]['commentThread']&&_0x225b5c[0x1]['commentThread']['length']?null:_0x225b5c:null;}_0x2e341a['size']&&this['_refreshSuggestionsChain'](_0x2e341a);}['_refreshAttributeSuggestionsChain'](_0x4172f6){if(0x0==_0x4172f6['length'])return;const _0x467bc3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19bfc7=>'attribute'==_0x19bfc7['type']&&_0x19bfc7['_isDataLoaded']),_0x4b1299=[],_0x3500b1=new Map();for(const _0x41cf46 of _0x467bc3){const _0x17d3a7=_0x434c54(_0x41cf46['attributes']);_0x3500b1['has'](_0x17d3a7)||(_0x3500b1['set'](_0x17d3a7,_0x4b1299['length']),_0x4b1299['push']([]));const _0x422d3e=_0x3500b1['get'](_0x17d3a7);_0x4b1299[_0x422d3e]['push'](_0x41cf46);}!(function(){_0x4b1299['sort']((_0x132fc7,_0x37f8af)=>{const _0x23a142=_0x132fc7[0x0]['createdAt'],_0x100771=_0x37f8af[0x0]['createdAt'];return _0x23a142==_0x100771?_0x132fc7[0x0]['attributes']['groupId']<_0x37f8af[0x0]['attributes']['groupId']?-0x1:0x1:_0x23a142<_0x100771?-0x1:0x1;});for(const _0x3c3818 of _0x4b1299)_0x3c3818['sort']((_0xfbf79f,_0x4c8469)=>_0xfbf79f['id']<_0x4c8469['id']?-0x1:0x1);}());for(let _0x253cac=0x0;_0x253cac<_0x4b1299['length'];_0x253cac++){if(0x0==_0x4b1299[_0x253cac]['length'])continue;const _0x559ea2=[];for(let _0x4c0e15=_0x253cac+0x1;_0x4c0e15<_0x4b1299['length'];_0x4c0e15++)0x0!=_0x4b1299[_0x4c0e15]['length']&&_0x123056(_0x4b1299[_0x253cac],_0x4b1299[_0x4c0e15])&&_0x559ea2['push'](_0x4c0e15);for(const _0x5e9be8 of _0x559ea2)_0x4b1299[_0x253cac]=_0x4b1299[_0x253cac]['concat'](_0x4b1299[_0x5e9be8]),_0x4b1299[_0x5e9be8]=[];}for(const _0x27448a of _0x4b1299)for(let _0x2154ca=0x0;_0x2154ca<_0x27448a['length'];_0x2154ca++)_0x27448a[_0x2154ca]['next']=_0x27448a[_0x2154ca+0x1]||null;for(const _0x1d6d23 of _0x4b1299)for(let _0x292d37=0x0;_0x292d37<_0x1d6d23['length'];_0x292d37++)_0x1d6d23[_0x292d37]['previous']=_0x1d6d23[_0x292d37-0x1]||null;function _0x123056(_0x55169e,_0x36d552){if(_0x55169e[0x0]['attributes']['groupId']!==_0x36d552[0x0]['attributes']['groupId']&&_0x55169e[0x0]['author']!==_0x36d552[0x0]['author'])return!0x1;if(!function(_0x4f29ee,_0x4e3021){if(!_0x4f29ee['hasComments']&&!_0x4e3021['hasComments'])return!0x0;if(_0x4f29ee['hasComments']&&_0x4e3021['hasComments'])return!0x1;if(_0x4f29ee['hasComments']&&_0x4e3021['createdAt']<_0x4f29ee['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4e3021['hasComments']&&_0x4f29ee['createdAt']<_0x4e3021['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x55169e[0x0],_0x36d552[0x0]))return!0x1;const _0x2abc97=Bt(_0x55169e[0x0]['attributes'],'groupId'),_0x250820=Bt(_0x36d552[0x0]['attributes'],'groupId');if(!_0x554b56(_0x2abc97,_0x250820))return!0x1;return!!_0x55169e['every'](_0x322a13=>_0x36d552['some'](_0x28246e=>_0x322a13['getFirstRange']()['isEqual'](_0x28246e['getFirstRange']())))&&_0x36d552['every'](_0x9f645c=>_0x55169e['some'](_0x4b4834=>_0x9f645c['getFirstRange']()['isEqual'](_0x4b4834['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3d0e72){const _0x2e151e=Array['from'](_0x3d0e72),_0x5c1444=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1f4940=_0x5c1444['filter'](_0x33293f=>!_0x3d0e72['has'](_0x33293f)),_0x14ddd2=new Map(_0x2e151e['map'](_0x4ae7bd=>[_0x4ae7bd,this['_suggestionFactory']['getSuggestionCallback'](_0x4ae7bd['type'],_0x4ae7bd['subType'],'join')])),_0x2cfce1=new Map(_0x5c1444['map'](_0x2dba59=>[_0x2dba59,_0x2dba59['getRanges']()]));for(let _0x1cf45a=0x0;_0x1cf45a<_0x2e151e['length'];_0x1cf45a++){if(_0x67f286(this,_0x2e151e[_0x1cf45a],_0x2e151e,_0x1cf45a+0x1))return!0x0;}for(let _0x4f70c5=0x0;_0x4f70c5<_0x2e151e['length'];_0x4f70c5++){if(_0x67f286(this,_0x2e151e[_0x4f70c5],_0x1f4940,0x0))return!0x0;}return!0x1;function _0x67f286(_0x3917c7,_0x1b6248,_0x5c26bd,_0x4f42ac){for(let _0x2d5278=_0x4f42ac;_0x2d5278<_0x5c26bd['length'];_0x2d5278++){const _0x46d7bf=_0x5c26bd[_0x2d5278];if(_0x46d7bf['type']!==_0x1b6248['type']||_0x46d7bf['author']['id']!==_0x1b6248['author']['id']||_0x46d7bf['subType']!==_0x1b6248['subType'])continue;if(!Pt(_0x1b6248,_0x46d7bf,['groupId']))continue;if('attribute'==_0x1b6248['type']&&_0x1b6248['data']['oldValue']!=_0x46d7bf['data']['oldValue'])continue;if('attribute'==_0x1b6248['type']&&_0x3917c7['_isBlockAttribute'](_0x1b6248['data']['key']))continue;if('formatBlock'==_0x1b6248['type']){const _0x2e2a43=_0x3917c7['editor']['model'],_0x32e3b2=_0x1b6248['getContainedElement']();if(_0x32e3b2&&(_0x2e2a43['schema']['isObject'](_0x32e3b2)||_0x2e2a43['schema']['isLimit'](_0x32e3b2)))continue;}const _0x26db58=_0x14ddd2['get'](_0x1b6248),_0x406fab=_0x2cfce1['get'](_0x1b6248),_0x4f6d69=_0x2cfce1['get'](_0x46d7bf),_0x253142=_0x1b6248['commentThread']&&_0x1b6248['commentThread']['length'],_0x89eb79=_0x46d7bf['commentThread']&&_0x46d7bf['commentThread']['length'];if(!_0x253142&&_0x26db58(_0x4f6d69,_0x406fab))return _0x3917c7['_joinSuggestions'](_0x46d7bf,_0x1b6248),_0x2cfce1['delete'](_0x1b6248),!0x0;if(!_0x89eb79&&_0x26db58(_0x406fab,_0x4f6d69))return _0x3917c7['_joinSuggestions'](_0x1b6248,_0x46d7bf),_0x2cfce1['delete'](_0x46d7bf),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2e53f8,_0x23fd14){if(_0x2e53f8['isMultiRange']){for(const _0x24882e of _0x23fd14['getRanges']())_0x2e53f8['addRange'](_0x24882e);}else{const _0x5cbad0=_0x23fd14['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2e53f8,this['_model']['createRange'](_0x2e53f8['getFirstRange']()['start'],_0x5cbad0));}_0x23fd14['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1baacf,_0x4b31a8){const _0x6c1faf=_0x1baacf['startsWith']('format')||_0x1baacf['startsWith']('attribute')?'FORMATTING':_0x1baacf['toUpperCase']();return o(this['editor']['locale'],_0x4b31a8+'_'+_0x6c1faf+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x3e8b28=this['editor'];if(!_0x3e8b28['ui'])return;const {ariaLiveAnnouncer:_0x429b80}=_0x3e8b28['ui'];_0x5aa8bc(this['_model'],({left:_0x293373,entered:_0x248c0b})=>{for(const _0x2068a3 of _0x293373){const {group:_0x437a8a,type:_0x28bd3d}=this['_splitMarkerName'](_0x2068a3['name']);if('suggestion'===_0x437a8a){_0x429b80['announce'](this['_getMarkerAnnouncementText'](_0x28bd3d,'LEAVE'));break;}}for(const _0x5694ac of _0x248c0b){const {group:_0x4daeb3,type:_0x20c642}=this['_splitMarkerName'](_0x5694ac['name']);if('suggestion'===_0x4daeb3){_0x429b80['announce'](this['_getMarkerAnnouncementText'](_0x20c642,'ENTER'));break;}}});}['_processAttributeChanges'](_0x4808b1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x10ba6b=this['editor'],_0x553810=_0x10ba6b['model']['document']['differ']['getChanges']();if(0x0==_0x553810['length'])return!0x1;const _0x599b96=[],_0x4d2a95=_0x553810['filter'](_0x5c64bc=>'attribute'==_0x5c64bc['type']),_0x43f3bc=_0x553810['filter'](_0x501c9f=>'insert'==_0x501c9f['type']&&'$text'!=_0x501c9f['name']),_0x9dc635=_0x553810['filter'](_0x4e3e69=>'remove'==_0x4e3e69['type']&&'$text'!=_0x4e3e69['name']);for(const _0x3e8ac9 of _0x4d2a95)_0x599b96['push']({'key':_0x3e8ac9['attributeKey'],'newValue':_0x3e8ac9['attributeNewValue'],'oldValue':_0x3e8ac9['attributeOldValue'],'range':Ot(_0x3e8ac9['range'],_0x10ba6b['model'])});for(const _0x5946f4 of _0x43f3bc){const _0x299d91=_0x9dc635['find'](_0x11c903=>_0x11c903['position']['isEqual'](_0x5946f4['position']));_0x299d91&&_0x599b96['push']({'key':m,'newValue':_0x5946f4['name'],'oldValue':_0x299d91['name'],'range':_0x10ba6b['model']['createRangeOn'](_0x5946f4['position']['nodeAfter'])});}return 0x0!=_0x599b96['length']&&this['_reduceExistingSuggestions'](_0x4808b1,_0x599b96);}['_processAttributeSuggestions'](_0x23d140){let _0x1a3ad5=!0x1;const _0x5df04c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x50b3f7=>_0x50b3f7['data']['newRange']&&_0x50b3f7['name']['startsWith']('suggestion:attribute:'));for(const _0x2fde84 of _0x5df04c){const {subType:_0x435754,id:_0x53da88}=this['_splitMarkerName'](_0x2fde84['name']),_0x57774a=_0x435754['split']('|')[0x0];for(const _0x1124bd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1124bd['id']!=_0x53da88&&'attribute'==_0x1124bd['type']&&_0x1124bd['data']&&_0x1124bd['data']['key']==_0x57774a&&_0x1124bd['getFirstRange']()['isIntersecting'](_0x2fde84['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1124bd,_0x2fde84['data']['newRange'],_0x23d140),_0x1a3ad5=!0x0);}return _0x1a3ad5;}['_recordAttributeChanges'](_0x2673b3){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2673b3();}['_isRegisteredAttribute'](_0x5ddfd0){const _0x400798=this['_isBlockAttribute'](_0x5ddfd0),_0x36db1b=this['_inlineAttributeKeys']['has'](_0x5ddfd0);return _0x400798||_0x36db1b;}['_reduceExistingSuggestions'](_0x4aaff6,_0x4031ac){if(0x0==_0x4031ac['length'])return!0x1;let _0x48e2ce=!0x1;for(const _0x19b6ec of _0x4031ac){const _0x898c9d=this['_findSuggestions'](_0x19b6ec['range'],'attribute')['filter'](_0x374881=>!_0x374881['meta']['isNextTo'])['map'](_0x1d06fc=>_0x1d06fc['suggestion']),_0x2906bf=_0x434c54({'newValue':_0x19b6ec['newValue']});_0x898c9d['filter'](_0x20f95c=>{const [_0x11fe71,_0x339334]=_0x20f95c['subType']['split']('|');return _0x11fe71==_0x19b6ec['key']&&_0x339334!=_0x2906bf;})['forEach'](_0x50b258=>{this['_reduceSuggestionAttributeRange'](_0x50b258,_0x19b6ec['range'],_0x4aaff6),_0x48e2ce=!0x0;});}return _0x48e2ce;}['_reduceSuggestionAttributeRange'](_0x3f9e70,_0x5e4bd7,_0x2970c4){const _0x28ad03=_0x3f9e70['getFirstRange']()['getDifference'](_0x5e4bd7);0x0!==_0x28ad03['length']?0x1!==_0x28ad03['length']?this['_breakSuggestionMarker'](_0x3f9e70,_0x5e4bd7['start'],_0x5e4bd7['end']):this['_setSuggestionRange'](_0x3f9e70,_0x28ad03[0x0]):_0x2970c4['removeMarker'](_0x3f9e70['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3fc1d9){this['_editor']=_0x3fc1d9,this['_model']=_0x3fc1d9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x10836d,_0x3f0ed4,_0x147cd3,_0x279b76,_0x21e129,_0x20ed22){return new u(this['_model'],{'type':_0x10836d,'subType':_0x3f0ed4,'id':_0x147cd3,'author':_0x279b76,'creator':_0x279b76,'attributes':_0x21e129,'onAttributesChange':_0x20ed22,'onAccept':(..._0x462be1)=>this['getSuggestionCallback'](_0x10836d,_0x3f0ed4,'accept')(..._0x462be1),'onDiscard':(..._0x1c8358)=>this['getSuggestionCallback'](_0x10836d,_0x3f0ed4,'discard')(..._0x1c8358)});}['registerCustomCallback'](_0x586072,_0x36ed4f,_0x4b38f5,_0x2067e8){const _0x1eff3f=_0x586072+':'+_0x36ed4f+':'+_0x4b38f5;this['_customCallbacks']['set'](_0x1eff3f,_0x2067e8);}['getSuggestionCallback'](_0x3e2884,_0x3d0fec,_0x1d4c4d){const _0x52aad9=_0x3e2884+':'+_0x3d0fec+':'+_0x1d4c4d;return this['_customCallbacks']['get'](_0x52aad9)||this['_defaultCallbacks']['get'](_0x3e2884+':'+_0x1d4c4d);}['_registerDefaultCallbacks'](){const _0x17ccaa=()=>!0x1,_0x288e9f=_0x2f3752=>{_0x2f3752['sort']((_0x2f40c9,_0x446a2f)=>_0x2f40c9['start']['isBefore'](_0x446a2f['start'])?0x1:-0x1),this['_model']['change'](_0x5236f0=>{for(const _0x50bcef of _0x2f3752){let _0x4ccff4;_0x4ccff4=_0x50bcef['end']['isAtEnd']&&_0x50bcef['end']['parent']==_0x50bcef['start']['nodeAfter']?_0x5236f0['createSelection'](_0x50bcef['start']['nodeAfter'],'on'):_0x5236f0['createSelection'](_0x50bcef),this['_model']['deleteContent'](_0x4ccff4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x309035=(_0x2bc5ed,_0x1eba7d)=>{_0x1eba7d&&this['_model']['change'](_0x5a694f=>{const {commandName:_0x4594f9,commandParams:_0x3f41c0=[]}=_0x1eba7d,_0x196e94=_0x2bc5ed['map'](_0x18e740=>(Tt(_0x18e740)&&(_0x18e740=this['_model']['createRange'](_0x18e740['end'])),_0x18e740))['filter'](_0x4cc45d=>'$graveyard'!==_0x4cc45d['root']['rootName']);if(_0x196e94['length']<0x1)return;const _0x4ea7d0=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xd2d959=>_0x4022b5['fromRange'](_0xd2d959));_0x5a694f['setSelection'](_0x196e94);for(const _0x39c5f2 of this['_editor']['commands']['commands']())_0x39c5f2['refresh']();_0x3f41c0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4594f9,..._0x3f41c0);const _0x509116=_0x4ea7d0['filter'](_0x267fbe=>'$graveyard'!=_0x267fbe['root']['rootName']);_0x509116['length']>0x0&&_0x5a694f['setSelection'](_0x509116);for(const _0x119960 of _0x4ea7d0)_0x119960['detach']();});},_0x331549=(_0x236129,_0x34cecc)=>0x1==_0x236129['length']&&0x1==_0x34cecc['length']&&_0x236129[0x0]['end']['isEqual'](_0x34cecc[0x0]['start']),_0x554b8b=(_0x2dbc7a,_0x5b5fe0,_0x279be1,_0x52dd68)=>Ft(_0x2dbc7a,_0x5b5fe0,_0x279be1,_0x52dd68,this['_model'])?[_0x2dbc7a,_0x5b5fe0]:Ft(_0x5b5fe0,_0x2dbc7a,_0x52dd68,_0x279be1,this['_model'])?[_0x5b5fe0,_0x2dbc7a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x17ccaa),this['_defaultCallbacks']['set']('insertion:discard',_0x288e9f),this['_defaultCallbacks']['set']('insertion:join',_0x331549),this['_defaultCallbacks']['set']('insertion:chain',_0x554b8b),this['_defaultCallbacks']['set']('deletion:accept',_0x288e9f),this['_defaultCallbacks']['set']('deletion:discard',_0x17ccaa),this['_defaultCallbacks']['set']('deletion:join',_0x331549),this['_defaultCallbacks']['set']('deletion:chain',_0x554b8b),this['_defaultCallbacks']['set']('formatInline:accept',_0x309035),this['_defaultCallbacks']['set']('formatInline:discard',_0x17ccaa),this['_defaultCallbacks']['set']('formatInline:join',_0x331549),this['_defaultCallbacks']['set']('formatInline:chain',_0x17ccaa),this['_defaultCallbacks']['set']('formatBlock:accept',_0x309035),this['_defaultCallbacks']['set']('formatBlock:discard',_0x17ccaa),this['_defaultCallbacks']['set']('formatBlock:join',_0x331549),this['_defaultCallbacks']['set']('formatBlock:chain',_0x17ccaa),this['_defaultCallbacks']['set']('attribute:accept',_0x17ccaa),this['_defaultCallbacks']['set']('attribute:discard',(_0x207388,_0x41868d)=>{if(!_0x41868d)return;const _0x587a0d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x8c163c=>{if(_0x41868d['key']==m)for(const _0x1a776c of _0x207388){const _0x407ac8=_0x1a776c['start']['nodeAfter'],_0x5ba99b=_0x41868d['oldValue'];_0x8c163c['rename'](_0x407ac8,_0x5ba99b);}else{if(_0x587a0d['_isBlockAttribute'](_0x41868d['key'])){for(const _0x48498d of _0x207388)void 0x0!==_0x41868d['oldValue']?_0x8c163c['setAttribute'](_0x41868d['key'],_0x41868d['oldValue'],_0x48498d['start']['nodeAfter']):_0x8c163c['removeAttribute'](_0x41868d['key'],_0x48498d['start']['nodeAfter']);}else{for(const _0x437de2 of _0x207388)_0x41868d['oldValue']?_0x8c163c['setAttribute'](_0x41868d['key'],_0x41868d['oldValue'],_0x437de2):_0x8c163c['removeAttribute'](_0x41868d['key'],_0x437de2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x331549);}}function Rt(_0x1ef177,_0x24ca9d,_0x774fe1){for(const _0x2851b1 of _0x24ca9d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2851b1['root']==_0x2851b1)return!0x1;if(!_0x774fe1['containsItem'](_0x2851b1))return!0x1;if(_0x1ef177['isObject'](_0x2851b1)||_0x1ef177['isLimit'](_0x2851b1))return!0x0;}return!0x1;}function Tt(_0x73926e){return _0x73926e['end']['parent']==_0x73926e['start']['nodeAfter']&&_0x73926e['end']['isAtStart'];}function Et(_0x18dff7,_0x317dca,_0x5f024b,_0x131b70){const _0x1734ef=_0x4e381d=>!_0x4e381d['item']['is']('$textProxy')&&!_0x131b70['isObject'](_0x4e381d['item']),_0x2efe02=_0x18dff7['start']['getLastMatchingPosition'](_0x1734ef),_0x16a92f=_0x18dff7['end']['getLastMatchingPosition'](_0x1734ef,{'direction':'backward'});return(!_0x18dff7['start']['isEqual'](_0x2efe02)||!_0x18dff7['end']['isEqual'](_0x16a92f))&&(_0x2efe02['isBefore'](_0x16a92f)?_0x5f024b['updateMarker'](_0x317dca,{'range':_0x5f024b['createRange'](_0x2efe02,_0x16a92f)}):_0x5f024b['removeMarker'](_0x317dca),!0x0);}function Vt(_0x52ae04){return _0x434c54(_0x52ae04);}function Ut(_0x16f212){const _0x49016a=_0x16f212['start']['nodeAfter'];return _0x49016a&&_0x49016a['is']('element');}function Ot(_0x4b9dec,_0x25b1b1){return null==_0x4b9dec['end']['nodeBefore']&&_0x4b9dec['end']['parent']==_0x4b9dec['start']['nodeAfter']?Gt(_0x4b9dec['start']['nodeAfter'],_0x25b1b1):_0x4b9dec;}function Gt(_0x2e9f45,_0x532961){const _0x2ad588=_0x532961['schema']['isObject'](_0x2e9f45)||_0x532961['schema']['isSelectable'](_0x2e9f45);return _0x532961['createRange'](_0x532961['createPositionAt'](_0x2e9f45,'before'),_0x2ad588?_0x532961['createPositionAfter'](_0x2e9f45):_0x532961['createPositionAt'](_0x2e9f45,'end'));}function Ft(_0x50bf4f,_0x42241f,_0x488d52,_0x412534,_0x2d21d9){if(!Pt(_0x50bf4f,_0x42241f))return!0x1;if(_0x488d52['end']['isEqual'](_0x412534['start']))return!0x0;if(_0x50bf4f['type']!=_0x42241f['type'])return!0x1;if(!_0x488d52['end']['isTouching'](_0x412534['start']))return!0x1;const _0x2e456d=_0x2d21d9['createRange'](_0x488d52['end'],_0x412534['start'])['getWalker']();for(const _0x15f5f8 of _0x2e456d)if(['elementStart','elementEnd']['includes'](_0x15f5f8['type'])&&_0x2d21d9['schema']['isLimit'](_0x15f5f8['item']))return!0x1;return!0x0;}function Pt(_0x32faa5,_0x3f84eb,_0x476f79=[]){return!(!_0x32faa5['_isDataLoaded']||!_0x3f84eb['_isDataLoaded'])&&_0x554b56(Bt(_0x32faa5['attributes'],_0x476f79),Bt(_0x3f84eb['attributes'],_0x476f79));}function Lt(_0x30e269,_0x459d43){const _0x7720dd=Ht(_0x30e269['attributes']),_0x278557=Ht(_0x459d43);if(!_0x30e269['_isDataLoaded'])return!0x1;for(const _0x3748b6 of Object['keys'](_0x278557))if(!_0x554b56(_0x7720dd[_0x3748b6],_0x278557[_0x3748b6]))return!0x1;return!0x0;}function Ht(_0x443e96){const _0x1996d3=Object['assign']({},_0x443e96);return delete _0x1996d3['skipNestingCheck'],delete _0x1996d3['tablePasteChainId'],_0x1996d3;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x4fcb90(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40d474,_0x6f0aec,_0x23a1e0,_0x1d0cdf){super(),this['model']=_0x6f0aec,this['view']=_0x23a1e0,this['commentThreadController']=_0x1d0cdf,this['_editor']=_0x40d474,this['_acceptCommand']=_0x40d474['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40d474['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5cc0b1,_0xe4c796)=>_0x5cc0b1||_0xe4c796),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x350e72=>_0x350e72&&this['_editor']['model']['canEditAt'](_0x6f0aec['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x9d24ff=>_0x9d24ff&&this['_editor']['model']['canEditAt'](_0x6f0aec['getRanges']())),this['_pendingAction']=null,_0x23a1e0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x23a1e0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x23a1e0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x23a1e0,'change:isDirty',()=>{_0x23a1e0['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 _0x2503bc=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2503bc);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0xa792ac{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x4faa71,_0x3730d7,_0x1f234d,_0xc49077){super(_0x4faa71),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3730d7['authoredAt']),this['bind']('authoredAt')['to'](_0x3730d7),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3730d7,this['_localUser']=_0x1f234d,this['_config']=_0xc49077,_0xc49077['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x144fbd}=this['_config'];this['commentsListView']=new _0x144fbd(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',_0x1b78ff=>_0x1b78ff+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x20c12b,_0x289ca7)=>_0x20c12b||!!_0x289ca7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x34b182}=this['_config'],_0x41f30c=new _0x34b182(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3e94b4=_0x41f30c['commentInputView'];return _0x41f30c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3e94b4,'value',(_0x22c158,_0x3bfcb3,_0x277937)=>!!_0x277937||_0x22c158&&!_0x3bfcb3),_0x3e94b4['on']('submit',(_0x53670d,_0x4e20ef)=>{this['fire']('addComment',_0x4e20ef),_0x3e94b4['editor']['setData']('');}),_0x3e94b4['on']('cancel',()=>this['focus']()),_0x3e94b4['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x41f30c;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x1e2fb0,_0x4c65c1,_0x5e4597,_0x82bcc6){super(_0x1e2fb0,_0x4c65c1,_0x5e4597,_0x82bcc6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x40c4da=>_0x40c4da&&_0x40c4da[0x0]?_0x40c4da[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4c1f4f,_0x98da85)=>{let _0x22dbd6='';for(const _0x34bed8 of _0x4c1f4f)_0x22dbd6+='<p>'+ds(_0x34bed8['content'],_0x34bed8['color'])+'</p>';return _0x98da85?_0x22dbd6:_0x183dd9(_0x22dbd6,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x1e2fb0,'Accept\x20suggestion'),_0x40529a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x1e2fb0,'Discard\x20suggestion'),_0x40529a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2bea37(_0x1e2fb0,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x266e63=this['bindTemplate'],_0x424dbb=[{'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':_0x266e63['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x266e63['to']('authoredAt',_0x427757=>this['_config']['formatDateTime'](_0x427757))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x424dbb['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3706dd={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x266e63['if']('isActive','ck-suggestion-wrapper--active'),_0x266e63['to']('type',_0x3df60f=>'ck-suggestion-'+_0x3df60f),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x424dbb}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3706dd['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x3706dd;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x1d937c,_0x4eccfa,_0x46454c)=>{this['_descriptionElement']['innerHTML']=_0x46454c;});}['_createButton'](_0x1a5347,_0x23c4a0,_0x277238,_0x2d2dc8,_0x1586b7){const _0x2537a1=new _0x3071f5(this['locale']);return _0x2537a1['set']({'label':_0x1a5347,'icon':_0x23c4a0,'tooltip':!0x0,'tooltipPosition':_0x1586b7}),_0x2537a1['extendTemplate']({'attributes':{'class':_0x277238}}),_0x2537a1['on']('execute',()=>{this['fire'](_0x2d2dc8,this['_model']['id']);}),_0x2537a1;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x3f8328,_0xdb6de7){let _0x5786cb='';return _0x5786cb+=_0x3f8328['split']('*')['map']((_0x7f008d,_0x194066)=>_0x194066%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x7f008d)+'</span>':us(_0x7f008d))['join'](''),_0xdb6de7&&(_0x5786cb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xdb6de7['value']+'\x22\x20title=\x22'+_0xdb6de7['title']+'\x22></span>'),_0x5786cb;}function us(_0x52f790){const _0x22be5d=document['createElement']('span');return _0x22be5d['innerText']=_0x52f790,_0x22be5d['innerHTML'];}var ie='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x5ed9bd{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5144de,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4a3d28){super(_0x4a3d28),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x36b02e=this['editor']['config'];_0x36b02e['define']('trackChanges.SuggestionThreadView',ne),_0x36b02e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x36b02e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x25e8ac,_0x2ccd91){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2c357b,_0x475ba8]of this['_handleControllerBuffer']){const _0xf6cb6e=this['_suggestionToController']['has'](_0x2c357b);_0xf6cb6e||_0x475ba8?_0xf6cb6e&&_0x475ba8&&this['_destroyController'](_0x2c357b):this['_initializeController'](_0x2c357b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x25e8ac,_0x2ccd91);}['init'](){const _0x21cbbc=this['editor'],_0x36ff40=_0x21cbbc['plugins']['get']('TrackChangesEditing'),_0x4cb9bc=_0x21cbbc['plugins']['get']('Annotations'),_0x369939=_0x21cbbc['plugins']['get']('EditorAnnotations'),_0x462249=_0x21cbbc['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x369939['addSourceCollector'](()=>{const _0xd3a7d5=[];for(const [_0x35a566,_0x2dd364]of Array['from'](this['_suggestionToController'])){const _0x23b3e0=_0x35a566['getAllAdjacentSuggestions'](),_0x3cc086=[];for(const _0x12b3c9 of _0x23b3e0){if(!_0x12b3c9['isInContent'])continue;if(_0x12b3c9['isMultiRange']){_0x3cc086['push'](..._0x12b3c9['getRanges']());continue;}const _0x28734c=_0x12b3c9['getFirstRange']();if(_0x3cc086['length']>0x0){const _0x2797de=_0x3cc086[0x0]['getJoined'](_0x28734c);if(_0x2797de){_0x3cc086[0x0]=_0x2797de;continue;}}_0x3cc086['push'](_0x28734c);}_0xd3a7d5['push']([_0x2dd364['view'],_0x3cc086]);}return _0xd3a7d5;}),this['listenTo'](_0x36ff40,'suggestionLoaded',(_0x50086,_0x412591)=>{this['listenTo'](_0x412591,'change:previous',(_0x398a0a,_0x210611,_0x24ff53,_0x1427f8)=>{_0x412591['isInContent']&&(null==_0x24ff53?(this['_updateController'](_0x1427f8['head']),this['_handleSuggestionControllerDelayed'](_0x412591,!0x1)):(this['_updateController'](_0x24ff53['head']),null==_0x1427f8&&this['_handleSuggestionControllerDelayed'](_0x412591,!0x0)));}),null!==_0x412591['previous']?this['_updateController'](_0x412591['head']):this['_handleSuggestionControllerDelayed'](_0x412591,!0x1);}),this['listenTo'](_0x36ff40,'suggestionUnloaded',(_0x20d0b9,_0x1916cd,_0x2c3dc8)=>{this['stopListening'](_0x1916cd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1916cd),this['_suggestionToController']['has'](_0x1916cd)&&this['_destroyController'](_0x1916cd),_0x2c3dc8&&this['_updateController'](_0x2c3dc8['head']);}),this['listenTo'](_0x36ff40,'suggestionChanged',(_0x190121,_0xe333c2)=>{this['_updateController'](_0xe333c2);}),this['listenTo'](_0x4cb9bc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x462249,'addComment',(_0x392ab7,{threadId:_0xc2e5e3,isFromAdapter:_0x45e212})=>{if(_0x45e212||!_0x36ff40['hasSuggestion'](_0xc2e5e3))return;const _0x1ffdac=_0x36ff40['getSuggestion'](_0xc2e5e3);this['_suggestionToController']['get'](_0x1ffdac)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x644489=this['editor']['plugins']['get']('Annotations'),_0x7e04ed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18b0ee=Array['from'](_0x644489['activeAnnotations'],_0x31679f=>_0x31679f['innerView'])['filter'](_0x4e66de=>this['_viewToController']['has'](_0x4e66de)),_0x588a77=[];for(const _0x22cea0 of _0x18b0ee){const _0x5cf442=this['_viewToController']['get'](_0x22cea0)['model']['getAllAdjacentSuggestions']();_0x588a77['push'](..._0x5cf442['reduce']((_0x4229d6,_0x5e9551)=>[..._0x4229d6,..._0x5e9551['getMarkerNames']()],[]));}_0x7e04ed['activeMarkers']=_0x588a77;}['_addUIComponentsToFactory'](){const _0x6bdcfc=this['editor'],_0x1e5dc8=_0x6bdcfc['locale'],_0x5c1789=o(_0x1e5dc8,'Track\x20changes'),_0x47b3fc=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x5c1789,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1e5dc8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1e5dc8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1e5dc8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1e5dc8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x577786 of _0x47b3fc)if(ae(_0x577786)){const _0x16fc13=_0x6bdcfc['commands']['get'](_0x577786['model']['commandName']);_0x577786['model']['bind']('isOn','isEnabled')['to'](_0x16fc13,'value','isEnabled');}_0x6bdcfc['ui']['componentFactory']['add']('trackChanges',_0xd7beee=>this['_createToolbarButton'](_0xd7beee,_0x47b3fc,_0x5c1789)),_0x6bdcfc['ui']['componentFactory']['add']('menuBar:trackChanges',_0x40662b=>this['_createMenuBarMenu'](_0x40662b,_0x47b3fc,_0x5c1789));}['_createToolbarButton'](_0x3f5a40,_0x15ad5b,_0x18cad5){const _0x154536=zt(_0x3f5a40,Zt),_0x32762c=this['editor']['commands']['get']('trackChanges');_0x154536['buttonView']['set']({'tooltip':_0x18cad5,'label':_0x18cad5,'icon':ie}),_0x154536['buttonView']['bind']('isOn')['to'](_0x32762c,'value'),_0x154536['buttonView']['on']('execute',()=>{_0x32762c['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x154536,_0x15ad5b,{'role':'menu'});const _0x2e2f64=[];for(const _0x3ffafc of _0x15ad5b)ae(_0x3ffafc)&&_0x2e2f64['push'](this['editor']['commands']['get'](_0x3ffafc['model']['commandName']));const _0x3c2920=_0x154536['buttonView'];return _0x3c2920['actionView']['unbind']('isEnabled'),_0x3c2920['arrowView']['unbind']('isEnabled'),_0x3c2920['actionView']['bind']('isEnabled')['to'](_0x32762c,'isEnabled'),_0x3c2920['arrowView']['bind']('isEnabled')['toMany'](_0x2e2f64,'isEnabled',(..._0x54a1de)=>_0x54a1de['some'](_0x2f042d=>_0x2f042d)),_0x154536['on']('execute',_0x35d77d=>{this['editor']['execute'](_0x35d77d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x154536;}['_createMenuBarMenu'](_0x23fb6f,_0x3f704e,_0x26c718){const _0x3e4a5b=new Kt(_0x23fb6f),_0x51f0b0=this['editor']['commands']['get']('trackChanges');_0x3e4a5b['buttonView']['set']({'label':_0x26c718,'icon':ie});const _0x14b4f2=new Qt(_0x23fb6f);for(const _0x3d7eb7 of _0x3f704e){if('separator'==_0x3d7eb7['type']){_0x14b4f2['items']['add'](new Jt(_0x23fb6f));continue;}const _0x39bd34=new Xt(_0x23fb6f,_0x3e4a5b),_0x3c7b76=new Yt(_0x23fb6f),_0x38fce4=_0x3d7eb7['model'];_0x3c7b76['bind'](...Object['keys'](_0x38fce4))['to'](_0x38fce4),_0x3c7b76['delegate']('execute')['to'](_0x3e4a5b),_0x3c7b76['on']('execute',()=>{this['editor']['execute'](_0x38fce4['commandName']),this['editor']['editing']['view']['focus']();}),_0x39bd34['children']['add'](_0x3c7b76),_0x14b4f2['items']['add'](_0x39bd34);}return _0x3e4a5b['bind']('isEnabled')['to'](_0x51f0b0,'isEnabled'),_0x3e4a5b['panelView']['children']['add'](_0x14b4f2),_0x3e4a5b;}['_initializeController'](_0x546617){const _0x1318b6=this['editor'],_0x439c9f=_0x1318b6['config'],_0x5d6cd4=_0x1318b6['plugins']['get']('Annotations'),_0x1cb27a=_0x1318b6['plugins']['get']('CommentsRepository'),_0x26293d=_0x1318b6['plugins']['get']('EditorAnnotations'),_0x30ec21=_0x1318b6['plugins']['get'](_0x5144de)['me'],_0x2d35ea=_0x439c9f['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4a1a26,CommentThreadInputView:_0x7bc82}=_0x1318b6['plugins']['get']('CommentsUI');let _0x2a5d9b,_0x5a04c9;this['_annotationViews']['has'](_0x546617['id'])?(_0x5a04c9=this['_annotationViews']['get'](_0x546617['id']),_0x2a5d9b=_0x5a04c9['mainView']):(_0x2a5d9b=new _0x2d35ea(_0x1318b6['locale'],_0x546617,_0x30ec21,{'disableComments':this['_disableComments'],'editorConfig':_0x439c9f['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x439c9f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x439c9f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x439c9f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x26a677(_0x439c9f['get']('locale')),'CommentView':_0x439c9f['get']('comments')['CommentView'],'CommentsListView':_0x4a1a26,'CommentThreadInputView':_0x7bc82}),_0x2a5d9b['acceptButton']['on']('execute',()=>{_0x1318b6['editing']['view']['focus']();}),_0x2a5d9b['discardButton']['on']('execute',()=>{_0x1318b6['editing']['view']['focus']();}),_0x5a04c9=_0x5d6cd4['createAnnotationView'](this['editor']['locale'],_0x2a5d9b),_0x5a04c9['bind']('isDirty')['to'](_0x2a5d9b,'isDirty'),_0x5a04c9['bind']('length')['to'](_0x2a5d9b),_0x5a04c9['bind']('type')['to'](_0x2a5d9b,'type',_0x477a34=>'suggestion-'+_0x477a34),this['_annotationViews']['set'](_0x546617['id'],_0x5a04c9));const _0x2d94d6=_0x1cb27a['createCommentThreadController'](_0x546617['commentThread'],_0x2a5d9b),_0x355b24=new oe(_0x1318b6,_0x546617,_0x2a5d9b,_0x2d94d6),_0x4c53e6=_0x546617['getAllAdjacentSuggestions']()['filter'](_0x3a06b1=>_0x3a06b1['isInContent']);_0x2a5d9b['descriptionParts']=_0x1318b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4c53e6),this['_suggestionToController']['set'](_0x546617,_0x355b24),this['_viewToController']['set'](_0x2a5d9b,_0x355b24);const _0x22706d=_0x5d6cd4['createAnnotation']({'view':_0x5a04c9,'target':()=>{const _0x41d198=[],_0x2d4d25=_0x546617['getAllAdjacentSuggestions']()['filter'](_0x3fd119=>_0x3fd119['isInContent']);for(const _0x213a49 of _0x2d4d25)_0x41d198['push'](..._0x213a49['getMarkers']());return _0x135c5c(_0x1318b6['editing'],_0x41d198);},'type':()=>'suggestion-'+_0x355b24['view']['type']});_0x1cb27a['_bindAnnotationToEditors'](_0x2a5d9b,_0x22706d),_0x5d6cd4['add'](_0x22706d),_0x26293d['registerAnnotation'](_0x22706d);}['_destroyController'](_0xbc8941){const _0x5619d5=this['editor']['plugins']['get']('CommentsRepository'),_0x170fae=this['editor']['plugins']['get']('Annotations'),_0x38c8d8=this['_suggestionToController']['get'](_0xbc8941),_0x4aaac7=_0x38c8d8['view'],_0x555009=_0x170fae['getByInnerView'](_0x4aaac7);_0x5619d5['_unbindEditors'](_0x4aaac7),_0x555009&&_0x170fae['remove'](_0x555009),this['_suggestionToController']['delete'](_0xbc8941),this['_viewToController']['delete'](_0x4aaac7),_0x38c8d8['destroy']();}['_updateController'](_0x27bf04){if(!_0x27bf04['isInContent']||!this['_suggestionToController']['has'](_0x27bf04))return;const _0x585876=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b443e=this['_suggestionToController']['get'](_0x27bf04),_0x555740=_0x27bf04['getAllAdjacentSuggestions']();_0x3b443e['view']['descriptionParts']=_0x585876['descriptionFactory']['getDescriptions'](_0x555740);}['destroy'](){for(const _0x2717c2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2717c2);for(const _0x44715c of this['_annotationViews']['values']())_0x44715c['mainView']['destroy']();super['destroy']();}}function ae(_0x4c70a7){return'model'in _0x4c70a7;}class k extends _0x5ed9bd{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5bf275){this['editor']['plugins']['get'](p)['adapter']=_0x5bf275;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3cb9ba){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3cb9ba);}['getSuggestions']({skipNotAttached:_0x723e93=!0x1,toJSON:_0x414910=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x723e93,'toJSON':_0x414910});}['getSuggestion'](_0x382854){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x382854);}}const T=['Pagination'];class P extends _0x5ed9bd{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x6082b5=this['editor'];if(_0x6082b5['config']['define']('trackChangesData.editorCreator',_0x42dc51=>{const _0x50b4ec=_0x6082b5['model']['document']['getRootNames']()['reduce']((_0x162ef7,_0x2ea572)=>(_0x162ef7[_0x2ea572]='',_0x162ef7),{});return _0x6082b5['constructor']['create'](_0x50b4ec,_0x42dc51);}),'function'!=typeof _0x6082b5['config']['get']('trackChangesData')['editorCreator'])throw new _0x39a7b6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3a4e54){return N(this['editor'],!0x0,_0x3a4e54);}['getDataWithDiscardedSuggestions'](_0x28782e){return N(this['editor'],!0x1,_0x28782e);}}class D extends _0x5ed9bd{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x56a1b1){super(_0x56a1b1),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x190825){return void 0x0!==_0x190825['getRootsAttributes'];}async function N(_0x398673,_0x1a6dcc,_0x8fcb6d){const _0x74d2e2=_0x135372(_0x398673,T);_0x74d2e2['plugins']['push'](p,D),_0x74d2e2['rootsAttributes']=v(_0x398673)?_0x398673['getRootsAttributes']():void 0x0;const _0x493361=document['createDocumentFragment'](),_0xaa0078=_0x398673['config']['get']('trackChangesData')['editorCreator'],_0x4010ab=await _0xaa0078(_0x74d2e2,()=>function(_0x33ffc5){const _0xf6f8a5=document['createElement']('div');return _0x33ffc5['appendChild'](_0xf6f8a5),_0xf6f8a5;}(_0x493361));!function(_0x52c17b,_0x232f77){const _0x36df17=_0x52c17b['model']['document']['getRootNames']()['reduce']((_0x361343,_0x24c944)=>(_0x361343[_0x24c944]=_0x52c17b['data']['get']({'rootName':_0x24c944}),_0x361343),{}),_0x1e5ccf=_0x52c17b['plugins']['get']('Users')['users']['map'](_0x2f965c=>({'id':_0x2f965c['id'],'name':_0x2f965c['name']})),_0x11e8f3=_0x52c17b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x53584e=_0x52c17b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x26f832=_0x232f77['plugins']['get']('Users'),_0x2256b7=_0x232f77['plugins']['get']('TrackChangesEditing'),_0x58cf27=_0x232f77['plugins']['get']('CommentsRepository');for(const _0x36d196 of _0x1e5ccf)_0x26f832['getUser'](_0x36d196['id'])||_0x26f832['addUser'](_0x36d196);_0x26f832['me']||_0x26f832['useAnonymousUser']();for(const _0x4c9cea of _0x53584e)_0x58cf27['addCommentThread'](_0x4c9cea);for(const _0x173bd3 of _0x11e8f3)_0x2256b7['addSuggestionData'](_0x173bd3);_0x232f77['data']['set'](_0x36df17);}(_0x398673,_0x4010ab),_0x4010ab['execute'](_0x1a6dcc?'acceptAllSuggestions':'discardAllSuggestions');const _0x365fcd=v(_0x4010ab)?_0x4010ab['getFullData'](_0x8fcb6d):_0x4010ab['data']['get'](_0x8fcb6d);return await _0x4010ab['destroy'](),_0x365fcd;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x1f2e52,PendingActions as _0x42d991,icons as _0x59615f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3712bb,ObservableMixin as _0x4cac1a,uid as _0x549ca5,insertToPriorityArray as _0x4b91c2,priorities as _0x3ee9e9,logWarning as _0x4a6da0,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x461b80,View as _0x2e69b2,ButtonView as _0x3a2c54,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x48a211,hashObject as _0x97d532,surroundingMarkersDetector as _0x269ea8,trimHtml as _0x277481,UserView as _0x2475a1,getDateTimeFormatter as _0xee7033,getAllMarkersDomElementsSorted as _0x25b2b7,sanitizeEditorConfig as _0x41a571}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4f136f,LiveRange as _0x3c5a16,LivePosition as _0x536527}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5bb02f,toWidget as _0x232b5e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1517d2,set as _0x2d3a03,isEqual as _0x5b6ec8,unset as _0x1aa4e0,omit as Bt}from'lodash-es';import{Delete as _0xa8f020,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2bdf69,ShiftEnter as _0x149ae5}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x596cdf,_0x2cea70){super(_0x596cdf),this['_enabledCommands']=_0x2cea70,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 _0x9fc8b5 of this['editor']['commands']['commands']())_0x9fc8b5['affectsData']&&!this['_enabledCommands']['has'](_0x9fc8b5)&&_0x9fc8b5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5cf478 of this['editor']['commands']['commands']())_0x5cf478['affectsData']&&!this['_enabledCommands']['has'](_0x5cf478)&&_0x5cf478['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0xf5c72d,_0x1a30f2){super(_0xf5c72d),this['_suggestions']=_0x1a30f2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2c0d80){const _0x1234d5=this['_suggestions']['get'](_0x2c0d80);if(!_0x1234d5)throw new _0x3712bb('track-changes-accept-suggestion-not-found',this);const _0x1c0b93=_0x1234d5['getRanges']();this['editor']['model']['canEditAt'](_0x1c0b93)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1234d5);}}class B extends ts{['_suggestions'];constructor(_0x4971df,_0xb93db6){super(_0x4971df),this['_suggestions']=_0xb93db6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x546177){const _0x43c106=this['_suggestions']['get'](_0x546177);if(!_0x43c106)throw new _0x3712bb('track-changes-discard-suggestion-not-found',this);const _0x47e176=_0x43c106['getRanges']();this['editor']['model']['canEditAt'](_0x47e176)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x43c106);}}function ss(_0x235ced){return _0x235ced['sort']((_0x3cb3b6,_0x142d22)=>'deletion'==_0x3cb3b6['type']&&'deletion'!=_0x142d22['type']?-0x1:'deletion'!=_0x3cb3b6['type']&&'deletion'==_0x142d22['type']?0x1:0x0);}function to(_0x223fc8,_0x278bbc){let _0x42b545,_0x5f232f=0x0;const _0x36574f=[],_0x58f706=_0x278bbc['schema'];for(;_0x5f232f<_0x223fc8['length'];){const _0x932c68=_0x223fc8[_0x5f232f],_0x43f5e9=_0x223fc8[_0x5f232f+0x1];_0x42b545||(_0x42b545=_0x278bbc['createPositionBefore'](_0x932c68)),co(_0x278bbc,_0x932c68,_0x43f5e9)||(_0x36574f['push'](_0x278bbc['createRange'](_0x42b545,_0x58f706['isObject'](_0x932c68)?_0x278bbc['createPositionAfter'](_0x932c68):_0x278bbc['createPositionAt'](_0x932c68,'end'))),_0x42b545=null),_0x5f232f++;}return _0x36574f;}function co(_0x5c7102,_0x1405d4,_0x31f2df){if(!_0x31f2df)return!0x1;const _0xd45e7=_0x5c7102['createPositionAfter'](_0x1405d4),_0x14ffe4=_0x5c7102['createPositionBefore'](_0x31f2df);return _0xd45e7['isTouching'](_0x14ffe4);}function rs(_0x56349e,_0x21a971,_0xcc5f6e){for(;_0xcc5f6e['length'];){const _0x4907b5=_0xcc5f6e['splice'](0x0,0x64);_0x56349e['change'](()=>{for(const _0x1bc4b0 of _0x4907b5)_0x1bc4b0['isInContent']&&_0x21a971['execute'](_0x1bc4b0['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x543f9f,_0x5785c6,_0x66e176){super(_0x543f9f),this['_command']=_0x5785c6,this['_suggestions']=_0x66e176,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x13a1cb=Array['from'](this['_suggestions']['values']())['some'](_0x5b0605=>_0x5b0605['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x13a1cb;}['execute'](){const _0x5811b1=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1c4acb of _0x5811b1){const _0x5eb9e7=_0x1c4acb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5eb9e7))return;}rs(this['editor']['model'],this['_command'],_0x5811b1);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1620f3,_0x19ebda,_0xc2a992){super(_0x1620f3),this['_command']=_0x19ebda,this['_suggestions']=_0xc2a992,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x33ca28=this['editor']['model']['document']['selection'],_0x173052=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x24c0e6,_0x5bbe83){const _0x2b1c4b=Array['from'](_0x24c0e6['getRanges']()),_0x32e430=new Set();for(const _0x2106a6 of _0x5bbe83)if(_0x2106a6['isInContent']){for(const _0x2a321b of _0x2b1c4b)for(const _0x2f9560 of _0x2106a6['getRanges']())(_0x2a321b['isIntersecting'](_0x2f9560)||_0x24c0e6['isCollapsed']&&!_0x2106a6['isMultiRange']&&_0x2106a6['next']&&_0x2f9560['end']['isTouching'](_0x2a321b['start']))&&_0x32e430['add'](_0x2106a6);}return _0x32e430;}(_0x33ca28,_0x173052),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x348952=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1a3dc5 of _0x348952){const _0xbb6687=_0x1a3dc5['getRanges']();if(!this['editor']['model']['canEditAt'](_0xbb6687))return;}rs(this['editor']['model'],this['_command'],_0x348952);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x4cac1a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3291b9,_0x3a83f3){super(),this['id']=_0x3a83f3['id'],this['type']=_0x3a83f3['type'],this['subType']=_0x3a83f3['subType']||null,this['author']=_0x3a83f3['author'],this['creator']=_0x3a83f3['creator']||_0x3a83f3['author'],this['isExternal']=Boolean(_0x3a83f3['attributes']&&_0x3a83f3['attributes']['@external']),this['data']=null,this['_model']=_0x3291b9,this['_onAccept']=_0x3a83f3['onAccept'],this['_onDiscard']=_0x3a83f3['onDiscard'],this['_onAttributesChange']=_0x3a83f3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3a83f3['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 _0x561fa7=this;for(;_0x561fa7['previous'];)_0x561fa7=_0x561fa7['previous'];return _0x561fa7;}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'](_0x4d1183){this['_markerNames']['add'](_0x4d1183);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2f1e52=>this['_model']['markers']['get'](_0x2f1e52))['filter'](_0x24b1d9=>_0x24b1d9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x462ae6=>{for(const _0x2f4da9 of this['getMarkers']())_0x462ae6['removeMarker'](_0x2f4da9);}),this['_markerNames']['clear']();}['removeMarker'](_0xa754f2){this['_model']['change'](_0x40b208=>{_0x40b208['removeMarker'](_0xa754f2);}),this['_markerNames']['delete'](_0xa754f2);}['addRange'](_0x4720cc){const _0x6de458='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x6de458),this['_model']['change'](_0xe03327=>{_0xe03327['addMarker'](_0x6de458,{'range':_0x4720cc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x19e928){for(const _0xffb5f5 of this['getRanges']())if(_0xffb5f5['isIntersecting'](_0x19e928))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1586b5=>_0x1586b5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1ae53e,_0x1b0f3b)=>[..._0x1ae53e,..._0x1b0f3b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x49f8e0=this['getRanges']();if(0x1!=_0x49f8e0['length'])return null;const _0x22e0f1=_0x49f8e0[0x0],_0x34cf28=_0x22e0f1['start']['nodeAfter'],_0x372f4b=_0x22e0f1['end']['nodeBefore'];return _0x34cf28 instanceof _0x4f136f?_0x34cf28!=_0x372f4b?null:_0x34cf28: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 _0x534aba=[];let _0x304405=this['head'];for(;_0x304405;)_0x534aba['push'](_0x304405),_0x304405=_0x304405['next'];return _0x534aba;}['setAttribute'](_0x4cb021,_0x26b25d){const _0x4d57fb=_0x1517d2(this['attributes']);_0x2d3a03(_0x4d57fb,_0x4cb021,_0x26b25d),_0x5b6ec8(_0x4d57fb,this['attributes'])||(this['attributes']=_0x4d57fb,this['_onAttributesChange'](_0x4d57fb));}['removeAttribute'](_0x5de047){const _0x12d934=_0x1517d2(this['attributes']);_0x1aa4e0(_0x12d934,_0x5de047),_0x5b6ec8(_0x12d934,this['attributes'])||(this['attributes']=_0x12d934,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 _0x549ca5()['substr'](0x1,0x5);}}function o(_0x2214b1,_0x1447bd,_0x5dc62a){const t=_0x2214b1['t'];switch(_0x1447bd){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',_0x5dc62a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5dc62a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5dc62a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5dc62a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5dc62a);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',_0x5dc62a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5dc62a);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',_0x5dc62a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5dc62a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5dc62a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5dc62a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5dc62a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5dc62a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5dc62a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5dc62a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5dc62a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5dc62a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5dc62a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5dc62a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5dc62a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5dc62a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5dc62a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5dc62a);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'},_0x5dc62a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5dc62a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5dc62a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5dc62a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5dc62a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5dc62a);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'},_0x5dc62a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5dc62a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5dc62a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5dc62a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5dc62a);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'},_0x5dc62a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5dc62a);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'},_0x5dc62a);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'},_0x5dc62a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5dc62a);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'},_0x5dc62a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5dc62a);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'},_0x5dc62a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5dc62a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5dc62a);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5dc62a);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5dc62a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x1447bd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2ddfe1,_0x54e9e8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2ddfe1,this['_locale']=_0x54e9e8;}['getDescriptions'](_0x477f62){const _0x353e6f=[],_0x2315a5=new Set(),_0x53863c=new Set();for(let _0x30fb79=0x0;_0x30fb79<_0x477f62['length'];_0x30fb79++){const _0x24022d=_0x477f62[_0x30fb79];if(!_0x24022d['isInContent'])continue;const _0x55ce9e=this['_handleCustomCallbackDescription'](_0x24022d);if(_0x55ce9e){if(null!=_0x24022d['subType']){if(_0x2315a5['has'](_0x24022d['subType']))continue;_0x2315a5['add'](_0x24022d['subType']);}_0x353e6f['push'](_0x55ce9e);}else{if('attribute'!=_0x24022d['type'])'insertion'!=_0x24022d['type']&&'deletion'!=_0x24022d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x353e6f,_0x24022d,_0x477f62[_0x30fb79+0x1]);else{const _0x3abe6e=_0x24022d['data']['key'];if(_0x53863c['has'](_0x3abe6e))continue;_0x53863c['add'](_0x24022d['data']['key']),_0x3abe6e==m?this['_handleRenameSuggestionDescription'](_0x353e6f,_0x24022d):this['_handleAttributeSuggestionDescription'](_0x353e6f,_0x24022d);}}}return this['_resolveDescriptionItems'](_0x353e6f);}['registerDescriptionCallback'](_0x5c113b){this['_customCallbacks']['push'](_0x5c113b);}['registerElementLabel'](_0x20b500,_0x3d6890,_0x3b1e31=_0x3ee9e9['normal']){'function'==typeof _0x20b500?_0x4b91c2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x20b500,'label':_0x3d6890,'priority':_0x3b1e31}):this['_itemLabels']['set'](_0x20b500,_0x3d6890);}['registerAttributeLabel'](_0x353250,_0x51623b){this['_attributeLabels']['set'](_0x353250,_0x51623b);}['getItemLabel'](_0x28f7aa,_0x5b7d72=0x1){let _0x25c5e5;for(const _0x411708 of this['_itemLabelsCallbacks'])if(_0x411708['matchingCallback'](_0x28f7aa)){_0x25c5e5=_0x411708['label'];break;}return _0x25c5e5||(_0x25c5e5=this['_itemLabels']['get'](_0x28f7aa['name'])),_0x25c5e5?_0x25c5e5(_0x5b7d72):0x1!==_0x5b7d72?_0x5b7d72+'\x20'+_0x28f7aa['name']+'s':''+_0x28f7aa['name'];}['_addDescriptionItems'](_0x231de0,_0x15f120){const _0x10546a=_0x15f120['getFirstRange']()['getWalker'](),_0x4d6e62='insertion'==_0x15f120['type']?'add':'remove';for(const _0x2d402e of _0x10546a){const _0x5ac92f=_0x2d402e['item'],_0x37565e=_0x231de0[_0x231de0['length']-0x1];if(_0x5ac92f['is']('$textProxy'))_0x37565e&&_0x37565e['type']['indexOf']('Container')>-0x1&&_0x231de0['pop'](),_0x37565e&&'text'==_0x37565e['type']?_0x37565e[_0x4d6e62]+=_0x5ac92f['data']:_0x231de0['push']({'type':'text','add':'add'==_0x4d6e62?_0x5ac92f['data']:'','remove':'remove'==_0x4d6e62?_0x5ac92f['data']:''});else{if(this['_schema']['isObject'](_0x5ac92f)){const _0x399413=_0x5ac92f;if(_0x37565e&&_0x37565e['type']['indexOf']('Container')>-0x1&&_0x231de0['pop'](),'elementEnd'==_0x2d402e['type'])continue;_0x37565e&&_0x37565e['type']==_0x4d6e62+'Object'&&_0x37565e['element']['name']==_0x399413['name']?_0x37565e['quantity']++:_0x231de0['push']({'type':_0x4d6e62+'Object','element':_0x399413,'quantity':0x1}),_0x10546a['skip'](_0x570860=>!('elementEnd'==_0x570860['type']&&_0x570860['item']==_0x5ac92f));}else{if(this['_schema']['checkChild'](_0x5ac92f,'$text')||_0x5ac92f['is']('element','softBreak')){const _0x3d880a=_0x5ac92f;if('add'==_0x4d6e62&&'elementStart'==_0x2d402e['type']||'remove'==_0x4d6e62&&'elementEnd'==_0x2d402e['type'])continue;if(_0x37565e&&-0x1==_0x37565e['type']['indexOf']('Container')){'text'==_0x37565e['type']&&(_0x37565e[_0x4d6e62]+='\x0a');continue;}let _0x45c96d;if(_0x45c96d='add'==_0x4d6e62?_0x3d880a['nextSibling']&&!this['_schema']['isObject'](_0x3d880a['nextSibling'])?_0x3d880a['nextSibling']:null:_0x3d880a['previousSibling']&&!this['_schema']['isObject'](_0x3d880a['previousSibling'])?_0x3d880a['previousSibling']:null,_0x3d880a['isEmpty']||_0x45c96d&&_0x45c96d['isEmpty']){const _0x298431=_0x45c96d&&_0x45c96d['isEmpty']?_0x45c96d:_0x3d880a;_0x37565e&&_0x37565e['type']==_0x4d6e62+'EmptyContainer'&&_0x37565e['element']['name']==_0x298431['name']?_0x37565e['quantity']++:_0x231de0['push']({'type':_0x4d6e62+'EmptyContainer','element':_0x298431,'quantity':0x1});}else _0x231de0['push']({'type':_0x4d6e62+'Container','element':_0x3d880a});}}}}}['_resolveDescriptionItems'](_0x5a6073){const _0x24a219=this['_locale'],_0x3c6151=[],_0x590ab4=[],_0x4715de=[];for(const _0x173ae4 of _0x5a6073)switch(_0x173ae4['type']){case'text':if(_0x173ae4['add']=_0x173ae4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x173ae4['remove']=_0x173ae4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x173ae4['add']&&''!=_0x173ae4['remove']){_0x3c6151['push']({'type':'replace','content':o(_0x24a219,'REPLACE_TEXT',['\x22'+_0x173ae4['remove']+'\x22','\x22'+_0x173ae4['add']+'\x22'])});continue;}if(null!=_0x173ae4['add']['match'](/^ +$/)){_0x3c6151['push']({'type':'insertion','content':o(_0x24a219,'*Insert:*\x20%0',o(_0x24a219,'ELEMENT_SPACE',_0x173ae4['add']['length']))});continue;}if(null!=_0x173ae4['remove']['match'](/^ +$/)){_0x3c6151['push']({'type':'deletion','content':o(_0x24a219,'*Remove:*\x20%0',o(_0x24a219,'ELEMENT_SPACE',_0x173ae4['remove']['length']))});continue;}if(''!=_0x173ae4['add']){_0x3c6151['push']({'type':'insertion','content':o(_0x24a219,'*Insert:*\x20%0','\x22'+_0x173ae4['add']+'\x22')});continue;}_0x3c6151['push']({'type':'deletion','content':o(_0x24a219,'*Remove:*\x20%0','\x22'+_0x173ae4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3c6151['push']({'type':'insertion','content':o(_0x24a219,'*Insert:*\x20%0',this['getItemLabel'](_0x173ae4['element'],_0x173ae4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3c6151['push']({'type':'deletion','content':o(_0x24a219,'*Remove:*\x20%0',this['getItemLabel'](_0x173ae4['element'],_0x173ae4['quantity']))});continue;case'addContainer':_0x3c6151['push']({'type':'insertion','content':o(_0x24a219,'*Split:*\x20%0',this['getItemLabel'](_0x173ae4['element'],_0x173ae4['quantity']))});continue;case'removeContainer':_0x3c6151['push']({'type':'deletion','content':o(_0x24a219,'*Merge:*\x20%0',this['getItemLabel'](_0x173ae4['element'],_0x173ae4['quantity']))});continue;case'addFormat':_0x590ab4['push'](_0x173ae4['key']);continue;case'removeFormat':_0x4715de['push'](_0x173ae4['key']);continue;default:_0x3c6151['push'](_0x173ae4);}if(_0x590ab4['length']){const _0xa1c7f8=_0x590ab4['map'](_0x4ab633=>this['_attributeLabels']['has'](_0x4ab633)?this['_attributeLabels']['get'](_0x4ab633):_0x4ab633)['join'](',\x20');_0x3c6151['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xa1c7f8)});}if(_0x4715de['length']){const _0x43782a=_0x4715de['map'](_0x2d1926=>this['_attributeLabels']['has'](_0x2d1926)?this['_attributeLabels']['get'](_0x2d1926):_0x2d1926)['join'](',\x20');_0x3c6151['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x43782a)});}return _0x3c6151;}['_handleCustomCallbackDescription'](_0xeb540f){for(const _0x4d9774 of this['_customCallbacks']){const _0xc2e2f2=_0x4d9774(_0xeb540f);if(_0xc2e2f2&&'type'in _0xc2e2f2)return _0xc2e2f2;}}['_handleAttributeSuggestionDescription'](_0x19282c,_0xef802){const _0xc7a9cc=_0xef802['data'],_0x1f8d3d=void 0x0===_0xc7a9cc['newValue']?'removeFormat':'addFormat';_0x19282c['push']({'type':_0x1f8d3d,'key':_0xc7a9cc['key']});}['_handleRenameSuggestionDescription'](_0x404fc4,_0x20646d){_0x404fc4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x20646d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x412ebd,_0x2fd115,_0x5b077e){if(this['_addDescriptionItems'](_0x412ebd,_0x2fd115),_0x5b077e&&_0x5b077e['getFirstRange']()&&!_0x2fd115['getFirstRange']()['end']['isEqual'](_0x5b077e['getFirstRange']()['start'])){const _0x1adef8=_0x412ebd[_0x412ebd['length']-0x1],_0x48d851='insertion'==_0x2fd115['type']?'add':'remove';_0x1adef8&&'text'==_0x1adef8['type']&&(_0x1adef8[_0x48d851]+='\x0a');}}}class E extends _0x1f2e52{['afterInit'](){const _0x311a8c=this['editor'],_0x146bca=_0x311a8c['plugins']['get']('TrackChangesEditing');_0x311a8c['commands']['get']('showAIAssistant')&&_0x146bca['enableCommand']('showAIAssistant');}}class V extends _0x1f2e52{['afterInit'](){const _0x32dbb2=this['editor'],_0x3c7655=_0x32dbb2['locale'];if(!_0x32dbb2['plugins']['has']('AlignmentEditing'))return;const _0x567f7a=_0x32dbb2['plugins']['get']('TrackChangesEditing');_0x567f7a['enableDefaultAttributesIntegration']('alignment'),_0x567f7a['registerBlockAttribute']('alignment'),_0x567f7a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3c7655,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x136629=this['editor'],_0xc81155=_0x136629['locale'];_0x136629['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x427b9d=>{if('formatBlock'!=_0x427b9d['type'])return;const {data:_0x23990f}=_0x427b9d;if(_0x23990f&&'alignment'==_0x23990f['commandName']){const _0x47e412=_0x23990f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xc81155,'*Format:*\x20%0',function(_0x1ea8c2){switch(_0x1ea8c2){case'left':return o(_0xc81155,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xc81155,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xc81155,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xc81155,'FORMAT_JUSTIFY_TEXT');}}(_0x47e412))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1f2e52{['afterInit'](){const _0x21f3fe=this['editor'],_0x20ac43=_0x21f3fe['plugins']['get']('TrackChangesEditing'),_0x4ac70e=_0x21f3fe['locale'];for(const _0x2e697c of ti){if(!_0x21f3fe['plugins']['has'](_0x2e697c))continue;const _0x1c194b=_0x2e697c['slice'](0x0,-0x7)['toLowerCase'](),_0x256a94='FORMAT_'+_0x1c194b['toUpperCase']();_0x20ac43['enableDefaultAttributesIntegration'](_0x1c194b),_0x20ac43['registerInlineAttribute'](_0x1c194b),_0x20ac43['descriptionFactory']['registerAttributeLabel'](_0x1c194b,o(_0x4ac70e,_0x256a94));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9d9e6c=this['editor'],_0x9e64e6=_0x9d9e6c['locale'],_0x479c03=_0x9d9e6c['plugins']['get']('TrackChangesEditing');function _0x575a16(_0x46183c,_0x360885){_0x479c03['descriptionFactory']['registerDescriptionCallback'](_0x1bcef2=>{if('formatInline'!=_0x1bcef2['type'])return;const {data:_0x2745c4}=_0x1bcef2;return _0x2745c4&&_0x2745c4['commandName']===_0x46183c?_0x2745c4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9e64e6,'*Format:*\x20%0',_0x360885)}:{'type':'format','content':o(_0x9e64e6,'*Remove\x20format:*\x20%0',_0x360885)}:void 0x0;});}_0x575a16('bold',o(_0x9e64e6,'FORMAT_BOLD')),_0x575a16('italic',o(_0x9e64e6,'FORMAT_ITALIC')),_0x575a16('underline',o(_0x9e64e6,'FORMAT_UNDERLINE')),_0x575a16('code',o(_0x9e64e6,'FORMAT_CODE')),_0x575a16('strikethrough',o(_0x9e64e6,'FORMAT_STRIKETHROUGH')),_0x575a16('subscript',o(_0x9e64e6,'FORMAT_SUBSCRIPT')),_0x575a16('superscript',o(_0x9e64e6,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1f2e52{['afterInit'](){const _0x42a2a1=this['editor'],_0x490be0=_0x42a2a1['locale'];if(!_0x42a2a1['plugins']['has']('BlockQuoteEditing'))return;const _0x12fe04=_0x42a2a1['plugins']['get']('TrackChangesEditing'),_0x5d663f=this['editor']['commands']['get']('blockQuote');_0x12fe04['enableCommand']('blockQuote',(_0x3ab4b1,_0x134250={})=>{const _0x5d4423=this['editor']['model']['document']['selection'],_0x5348f4=_0x134250&&void 0x0!==_0x134250['forceValue']?_0x134250['forceValue']:!_0x5d663f['value'];let _0x5bc04a=[];if(_0x5348f4){const _0x4d65eb=Array['from'](_0x5d4423['getSelectedBlocks']())['filter'](_0x4fe33d=>oo(_0x4fe33d)||function(_0x5708cc,_0x182362){const _0x57fb82=_0x182362['checkChild'](_0x5708cc['parent'],'blockQuote'),_0x52da9b=_0x182362['checkChild'](['$root','blockQuote'],_0x5708cc);return _0x57fb82&&_0x52da9b;}(_0x4fe33d,this['editor']['model']['schema']));_0x5bc04a=to(_0x4d65eb,_0x42a2a1['model']);}else{const _0x157f51=Array['from'](_0x5d4423['getSelectedBlocks']())['filter'](_0x83d3b7=>oo(_0x83d3b7));_0x5bc04a=to(_0x157f51,_0x42a2a1['model']);}_0x42a2a1['model']['change'](()=>{for(const _0x407fe4 of _0x5bc04a)_0x12fe04['markBlockFormat'](_0x407fe4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5348f4}]});});}),_0x12fe04['descriptionFactory']['registerDescriptionCallback'](_0x5166ef=>{const {data:_0x453f78}=_0x5166ef;if(_0x453f78&&'blockQuote'==_0x453f78['commandName']){const _0x64bc3b=o(_0x490be0,'ELEMENT_BLOCK_QUOTE');return _0x453f78['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x490be0,'*Set\x20format:*\x20%0',_0x64bc3b)}:{'type':'format','content':o(_0x490be0,'*Remove\x20format:*\x20%0',_0x64bc3b)};}});}}function oo(_0x2ff568){return'blockQuote'==_0x2ff568['parent']['name'];}class G extends _0x1f2e52{['afterInit'](){const _0x3b7701=this['editor'];_0x3b7701['plugins']['has']('CaseChange')&&(_0x3b7701['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3b7701['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3b7701['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1f2e52{['afterInit'](){const _0x35551d=this['editor'];_0x35551d['commands']['get']('ckbox')&&_0x35551d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1f2e52{['afterInit'](){const _0x302f21=this['editor'];if(!_0x302f21['plugins']['has']('CodeBlock'))return;const _0xa17442=_0x302f21['plugins']['get']('TrackChangesEditing'),_0x16c11f=_0x302f21['locale'],_0xd261c9=_0x302f21['config']['get']('codeBlock')['languages'],_0x634a1a=_0x302f21['commands']['get']('codeBlock');_0xa17442['enableCommand']('indentCodeBlock'),_0xa17442['enableCommand']('outdentCodeBlock'),_0xa17442['enableCommand']('codeBlock',(_0x3ed130,_0x251dd3={})=>{const _0x26b2ae=_0x302f21['model'],_0x3c3d15=_0x302f21['model']['document']['selection'],_0xa70db8=_0x251dd3&&void 0x0!==_0x251dd3['forceValue']?_0x251dd3['forceValue']:!_0x634a1a['value'];let _0x46410c;_0x251dd3['language']||(_0x251dd3['language']=_0xd261c9[0x0]['language']),_0x46410c=_0xa70db8?Array['from'](_0x3c3d15['getSelectedBlocks']())['filter'](_0x4ad5b3=>eo(_0x4ad5b3)||function(_0x1c0cb5,_0x54da23){if(_0x1c0cb5['is']('rootElement')||_0x54da23['isLimit'](_0x1c0cb5))return!0x1;return _0x54da23['checkChild'](_0x1c0cb5['parent'],'codeBlock');}(_0x4ad5b3,_0x26b2ae['schema'])):Array['from'](_0x3c3d15['getSelectedBlocks']())['filter'](_0x46d1b1=>eo(_0x46d1b1));const _0x1963eb=to(_0x46410c,_0x26b2ae);_0x26b2ae['change'](()=>{for(const _0x5b617d of _0x1963eb)_0xa17442['markBlockFormat'](_0x5b617d,{'commandName':'codeBlock','commandParams':[{..._0x251dd3,'forceValue':_0xa70db8}],'formatGroupId':'blockName'});});}),(_0xa17442['descriptionFactory']['registerElementLabel']('codeBlock',_0x1d91f2=>o(_0x16c11f,'ELEMENT_CODE_BLOCK',_0x1d91f2)),_0xa17442['descriptionFactory']['registerDescriptionCallback'](_0xf47d80=>{if('formatBlock'!=_0xf47d80['type'])return;const _0x5bb806=_0x16c11f['t'],{data:_0x306b44}=_0xf47d80;if(!_0x306b44||'codeBlock'!=_0x306b44['commandName'])return;const _0x25b46d=_0x306b44['commandParams'][0x0]['language'],_0x49f834=_0x5bb806(_0xd261c9['find'](_0x570c8d=>_0x570c8d['language']===_0x25b46d)['label'])['toLowerCase']();return _0x306b44['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16c11f,'*Set\x20format:*\x20%0',o(_0x16c11f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x49f834+')')}:{'type':'format','content':o(_0x16c11f,'*Remove\x20format:*\x20%0',o(_0x16c11f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x7b5b3f){return'codeBlock'==_0x7b5b3f['name'];}class H extends _0x1f2e52{['afterInit'](){const _0xf4338d=this['editor'];if(!_0xf4338d['plugins']['has']('CommentsEditing'))return;_0xf4338d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x39ba9b,_0x5aa796,_0x5949cb){const _0xd4cec=[];for(const _0xe883ca of _0x5aa796['getItems']())_0xe883ca['hasAttribute'](_0x39ba9b)&&_0xd4cec['push'](_0x5949cb['createRangeOn'](_0xe883ca));return _0xd4cec;}function _e(_0x36683a,_0x30209c,{showActiveMarker:_0x3a5cfe=!0x0}={}){const _0x11c645=_0x36683a['plugins']['get']('TrackChangesEditing');return(_0x5eab1,_0xed4b0d,_0x327637)=>{if(!_0x327637['consumable']['test'](_0xed4b0d['markerRange'],_0x5eab1['name']))return;const _0x2ff81c=_0xed4b0d['markerRange']['getWalker'](),_0x431584=_0xed4b0d['markerRange']['start'],_0x175721=_0x36683a['model']['schema'];let _0x51199d=null,_0x500533=null,_0x48f181=!0x1,_0x18746d=!0x1;for(const _0x247a1a of _0x2ff81c){const _0x2d73fb=_0x247a1a['item'];_0x48f181=_0x48f181||_0x175721['isContent'](_0x2d73fb);const _0x385843=_0x327637['mapper']['toViewElement'](_0x2d73fb);if(_0x385843&&_0x385843['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x247a1a['type']&&(_0x175721['isBlock'](_0x2d73fb)&&!_0x175721['isLimit'](_0x2d73fb)&&(_0x2d73fb['nextSibling']||_0x431584['isAtEnd']?_0x51199d&&_0x51199d['parent']==_0x2d73fb||(_0x51199d=_0x2d73fb,_0x34e87a(_0x247a1a['previousPosition']),_0x18746d=!0x0):_0x500533=_0x500533||_0x247a1a['previousPosition']));}function _0x34e87a(_0x10fa2e){const _0x21c6b4=_0x327637['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x30209c}),_0x18f39c=_0x327637['mapper']['toViewPosition'](_0x10fa2e);_0x3a5cfe&&_0x11c645['activeMarkers']['includes'](_0xed4b0d['markerName'])&&_0x327637['writer']['addClass']('ck-suggestion-marker--active',_0x21c6b4),_0x327637['writer']['insert'](_0x18f39c,_0x21c6b4),_0x327637['mapper']['bindElementToMarker'](_0x21c6b4,_0xed4b0d['markerName']);}_0x48f181||_0x18746d||!_0x500533||_0x34e87a(_0x500533);};}class q extends _0x1f2e52{static get['requires'](){return[_0xa8f020];}['init'](){const _0x5a2058=this['editor'],_0x2a41f1=_0x5a2058['plugins']['get']('TrackChangesEditing');_0x2a41f1['enableCommand']('delete');const _0x4ee8a6=_0x5a2058['commands']['get']('deleteForward');_0x2a41f1['enableCommand']('deleteForward',(_0x1d742d,_0x749f7f={})=>{const _0x3aebdc=_0x5a2058['model']['createSelection'](_0x5a2058['model']['document']['selection']);_0x3aebdc['isCollapsed']&&_0x5a2058['model']['modifySelection'](_0x3aebdc,{'direction':'forward','unit':_0x749f7f['unit']});const _0x3d7fa0=_0x3aebdc['getFirstRange'](),_0x108fa0=_0x3c5a16['fromRange'](_0x3d7fa0);let _0x95e1a0;_0x1d742d(_0x749f7f),_0x95e1a0='$graveyard'==_0x108fa0['root']['rootName']?_0x5a2058['model']['createRange'](_0x3d7fa0['start']):_0x5a2058['model']['createRange'](_0x108fa0['start'],_0x108fa0['end']),_0x108fa0['detach'](),_0x5a2058['model']['enqueueChange'](_0x4ee8a6['buffer']['batch'],_0x493ef0=>{_0x4ee8a6['buffer']['lock'](),_0x493ef0['setSelection'](_0x493ef0['createRange'](_0x95e1a0['end'])),_0x4ee8a6['buffer']['unlock']();});}),_0x5a2058['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5a2058,'merge'),{'priority':'high'}),_0x5a2058['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x517686,_0x427d26,_0x5ac363)=>{_0x5ac363['options']['showSuggestionHighlights']&&_e(_0x5a2058,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x517686,_0x427d26,_0x5ac363);},{'priority':'high'}),_0x5a2058['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3dc2f0,_0x37501e,_0x2bcc60)=>{const _0xdfaa25=_0x2bcc60['mapper']['markerNameToElements'](_0x37501e['markerName']);if(_0xdfaa25){for(const _0x320dae of _0xdfaa25)_0x320dae['is']('uiElement')&&(_0x2bcc60['mapper']['unbindElementFromMarkerName'](_0x320dae,_0x37501e['markerName']),_0x2bcc60['writer']['remove'](_0x320dae));}},{'priority':'high'});}}class z extends _0x1f2e52{['afterInit'](){const _0x89f139=this['editor'];if(!_0x89f139['plugins']['has']('ListEditing'))return;const _0x2f11c1=_0x89f139['locale'],_0x2eb5c0=_0x89f139['plugins']['get']('TrackChangesEditing'),_0x47a86c=_0x89f139['plugins']['has']('TodoListEditing'),_0x299af1=!!_0x89f139['config']['get']('list.multiBlock');function _0x506323(_0x503463){return{'type':'format','content':''+o(_0x2f11c1,'*Set\x20format:*\x20%0',_0x503463)};}function _0x1ceb88(_0x4db5d3){return{'type':'format','content':''+o(_0x2f11c1,'*Remove\x20format:*\x20%0',_0x4db5d3)};}_0x2eb5c0['enableDefaultAttributesIntegration']('numberedList'),_0x2eb5c0['enableDefaultAttributesIntegration']('bulletedList'),_0x2eb5c0['enableDefaultAttributesIntegration']('customNumberedList'),_0x2eb5c0['enableDefaultAttributesIntegration']('customBulletedList'),_0x2eb5c0['enableDefaultAttributesIntegration']('indentList'),_0x2eb5c0['enableDefaultAttributesIntegration']('outdentList'),_0x2eb5c0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2eb5c0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2eb5c0['registerBlockAttribute']('listItemId'),_0x2eb5c0['registerBlockAttribute']('listType'),_0x2eb5c0['registerBlockAttribute']('listIndent'),_0x299af1&&(_0x2eb5c0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2eb5c0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x47a86c&&(_0x2eb5c0['enableDefaultAttributesIntegration']('todoList'),_0x2eb5c0['enableDefaultAttributesIntegration']('checkTodoList'),_0x2eb5c0['registerBlockAttribute']('todoListChecked'),_0x2eb5c0['descriptionFactory']['registerDescriptionCallback'](_0x3414bc=>{const {data:_0x18a172}=_0x3414bc;if(_0x18a172&&'todoListChecked'==_0x18a172['key'])return{'type':'format','content':_0x18a172['newValue']?o(_0x2f11c1,'*Check\x20item*'):o(_0x2f11c1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xa36db8=>{if(_0xa36db8['batch']['isUndo'])return!0x1;let _0x13da21=!0x1;const _0x4214cf=_0x2eb5c0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x488a52=>'todoListChecked'===_0x2eb5c0['_getAttributeKey'](_0x488a52));for(const _0x364f42 of _0x4214cf){'todo'!=_0x364f42['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2eb5c0['_findSuggestions'](_0x364f42['getFirstRange'](),'attribute')['find'](_0x2dd952=>'listType'===_0x2eb5c0['_getAttributeKey'](_0x2dd952['suggestion']))||(_0xa36db8['removeMarker'](_0x364f42['getFirstMarker']()),_0x13da21=!0x0));}return _0x13da21;})),_0x2eb5c0['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2f11c1,'FORMAT_INDENT'));const _0x5d36ae={'type':'format','content':''};_0x2eb5c0['descriptionFactory']['registerDescriptionCallback'](_0x1d8672=>{const {data:_0x4e5b5c}=_0x1d8672;if(!_0x4e5b5c||'listType'!=_0x4e5b5c['key'])return;let _0x48634c=_0x1d8672['head'];for(;_0x48634c;){if(_0x48634c['data']&&(('listStyle'==_0x48634c['data']['key']||'listMarkerStyle'==_0x48634c['data']['key'])&&(_0x48634c['data']['newValue']&&'default'!=_0x48634c['data']['newValue']||'default'!=_0x48634c['data']['oldValue']&&!_0x4e5b5c['newValue'])||!_0x299af1&&_0x48634c['data']['key']==m))return _0x5d36ae;_0x48634c=_0x48634c['next'];}if(null==_0x4e5b5c['newValue'])switch(_0x4e5b5c['oldValue']){case'bulleted':return _0x1ceb88(o(_0x2f11c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1ceb88(o(_0x2f11c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1ceb88(o(_0x2f11c1,'ELEMENT_TODO_LIST'));}switch(_0x4e5b5c['newValue']){case'bulleted':return _0x506323(o(_0x2f11c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x506323(o(_0x2f11c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x506323(o(_0x2f11c1,'ELEMENT_TODO_LIST'));}}),_0x2eb5c0['descriptionFactory']['registerDescriptionCallback'](_0x4e13b7=>{const {data:_0x5bba11}=_0x4e13b7;if(_0x5bba11&&'listIndent'==_0x5bba11['key'])return null==_0x5bba11['newValue']||null==_0x5bba11['oldValue']&&0x0==_0x5bba11['newValue']?_0x5d36ae:void 0x0;}),_0x2eb5c0['descriptionFactory']['registerDescriptionCallback'](_0x530ddc=>{if('attribute'!=_0x530ddc['type'])return;const {data:_0x414796}=_0x530ddc;if(!_0x414796||'listItemId'!=_0x414796['key'])return;const _0x1d8a5c=le(_0x530ddc);return'newValue'==_0x1d8a5c?{'type':'format','content':o(_0x2f11c1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1d8a5c?{'type':'format','content':o(_0x2f11c1,'*Split:*\x20list\x20item')}:_0x5d36ae;}),_0x89f139['model']['document']['registerPostFixer'](_0x22dcf9=>this['listItemIdFixer'](_0x22dcf9)),_0x89f139['model']['document']['registerPostFixer'](_0x455863=>this['noTrackChangesFixer'](_0x455863)),_0x89f139['model']['document']['registerPostFixer'](_0x20935d=>this['assureChains'](_0x20935d)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xd4b325){if(_0xd4b325['batch']['isUndo']||!_0xd4b325['batch']['isLocal'])return!0x1;let _0x588797=!0x1;const _0xa8a0f9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2cfd44=>_0x2cfd44['data']&&'listItemId'==_0x2cfd44['data']['key'])['filter'](_0x55411b=>_0x55411b['data']['newValue']&&_0x55411b['data']['oldValue']);for(const _0x3b2610 of _0xa8a0f9)le(_0x3b2610)||(_0xd4b325['removeMarker'](_0x3b2610['getFirstMarker']()),_0x588797=!0x0);return _0x588797;}['noTrackChangesFixer'](_0x264125){if(_0x264125['batch']['isUndo']||!_0x264125['batch']['isLocal'])return!0x1;const _0x46d65c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x46d65c['trackChangesCommand']['value'])return!0x1;let _0x568ac8=!0x1;const _0x21a177=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x264cfb=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xda7178=>'attribute'==_0xda7178['type'])['filter'](_0x32b335=>_0x21a177['includes'](_0x32b335['attributeKey']));if(0x0==_0x264cfb['length'])return _0x568ac8;for(const _0x4d1e3f of _0x264cfb){const _0x591522=_0x46d65c['_findSuggestions'](_0x4d1e3f['range'],'attribute')['filter'](_0x3e8f6a=>!_0x3e8f6a['meta']['isNextTo'])['map'](_0x4ab20b=>_0x4ab20b['suggestion'])['filter'](_0x2f6de1=>{const _0x389261=_0x46d65c['_getAttributeKey'](_0x2f6de1);return _0x21a177['includes'](_0x389261);});if(_0x591522['length']){for(const _0x4c77db of _0x591522)_0x264125['removeMarker'](_0x4c77db['getFirstMarker']());_0x568ac8=!0x0;}}return _0x568ac8;}['assureChains'](_0x1437ff){if(_0x1437ff['batch']['isUndo']||!_0x1437ff['batch']['isLocal'])return!0x1;const _0x1bee0a=this['editor']['plugins']['get']('TrackChangesEditing');let _0x1ad6d6=!0x1;const _0xd9a46c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0xc0e954 of _0x1bee0a['getSuggestions']({'skipNotAttached':!0x0})){const _0xccd748=_0x1bee0a['_findSuggestions'](_0xc0e954['getFirstRange'](),'attribute')['map'](_0x1c31d9=>_0x1c31d9['suggestion'])['filter'](_0x4e0251=>_0x4e0251['data']&&_0xd9a46c['includes'](_0x4e0251['data']['key']));if(!_0xccd748['length'])continue;const _0x1b8866=_0xccd748[0x0]['head']['attributes']['groupId'];if(!_0xccd748['every'](_0x1296bd=>_0x1296bd['attributes']['groupId']===_0x1b8866)){for(const _0x485b0f of _0xccd748)_0xec207a(_0x485b0f,_0x1b8866)&&(_0x1ad6d6=!0x0);}}return _0x1ad6d6;function _0x57f07c(_0x26795f,_0x5a6421){for(const _0x89d254 of _0x1bee0a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a780e=>'attribute'==_0x5a780e['type']&&_0x5a780e['attributes']['groupId']==_0x26795f))_0x89d254['setAttribute']('groupId',_0x5a6421);}function _0xec207a(_0x3ba405,_0x3ac550){let _0x4f9c2d=_0x3ba405['head'],_0x1c377a=!0x1;for(;_0x4f9c2d;)_0x4f9c2d['attributes']['groupId']!=_0x3ac550&&(_0x57f07c(_0x4f9c2d['attributes']['groupId'],_0x3ac550),_0x4f9c2d['setAttribute']('groupId',_0x3ac550),_0x1c377a=!0x0),_0x4f9c2d=_0x4f9c2d['next'];return _0x1c377a;}}['_supportLegacySuggestions'](){const _0x367b07=this['editor'],_0x18e6be=_0x367b07['locale'],_0x504b39=_0x367b07['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x504b39['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x29013a,_0x280d8a){const _0x443bd3=[];for(let _0x2e15eb of _0x29013a)_0x2e15eb['start']['nodeAfter']===_0x2e15eb['end']['parent']&&(_0x2e15eb=_0x367b07['model']['createRange'](_0x367b07['model']['createPositionAt'](_0x2e15eb['start']['nodeAfter'],0x0))),_0x443bd3['push'](_0x2e15eb);_0x367b07['model']['change'](_0x311b43=>{const _0x36d48b=_0x367b07['model']['document']['selection'],_0x151fad=Array['from'](_0x36d48b['getRanges']())['map'](_0x50607f=>_0x3c5a16['fromRange'](_0x50607f));_0x311b43['setSelection'](_0x443bd3),_0x367b07['commands']['get'](_0x280d8a['commandName'])['refresh'](),_0x280d8a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x367b07['execute'](_0x280d8a['commandName'],..._0x280d8a['commandParams']),_0x311b43['setSelection'](_0x151fad);for(const _0x2a3fe0 of _0x151fad)_0x2a3fe0['detach']();});}),_0x504b39['descriptionFactory']['registerElementLabel'](function(_0x19bb54){const _0x528e12=!_0x367b07['model']['schema']['isObject'](_0x19bb54),_0x6a5b3=_0x19bb54['previousSibling'],_0x185b0d=_0x19bb54['nextSibling'],_0x242ceb=_0x19bb54['getAttribute']('listItemId'),_0x1a2c72=!_0x6a5b3||_0x6a5b3['getAttribute']('listItemId')!==_0x242ceb,_0x3ecd5b=!_0x185b0d||_0x185b0d['getAttribute']('listItemId')!==_0x242ceb;return _0x528e12&&Boolean(_0x242ceb)&&_0x1a2c72&&_0x3ecd5b;},_0x1baebb=>o(_0x18e6be,'ELEMENT_LIST_ITEM',_0x1baebb));}['_registerLegacyDescription'](){const _0x4cd849=this['editor'],_0x26f470=_0x4cd849['locale'];function _0x45ee35(_0x31f108){const _0x31d749=_0x4cd849['commands']['get']('bulletedList')['value'],_0x49db97=_0x4cd849['commands']['get']('numberedList')['value'];return'numberedList'===_0x31f108?_0x31d749:_0x49db97;}_0x4cd849['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5a6699){if('formatBlock'!=_0x5a6699['type'])return;const {data:_0x38421e}=_0x5a6699;if(!_0x38421e)return;let _0xe22a7e,_0x20e294,_0x365d5e,_0x389c13;switch(_0x38421e['commandName']){case'bulletedList':_0x365d5e=_0x38421e['commandParams'][0x0]['forceValue'],_0x389c13=_0x45ee35(_0x38421e['commandName']),_0xe22a7e=_0x365d5e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x389c13&&_0x4cd849['config']['get']('list.multiBlock')||(_0xe22a7e='*Change\x20to:*\x20%0'),_0x20e294={'type':'format','content':o(_0x26f470,_0xe22a7e,o(_0x26f470,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x365d5e=_0x38421e['commandParams'][0x0]['forceValue'],_0x389c13=_0x45ee35(_0x38421e['commandName']),_0xe22a7e=_0x365d5e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x389c13&&_0x4cd849['config']['get']('list.multiBlock')||(_0xe22a7e='*Change\x20to:*\x20%0'),_0x20e294={'type':'format','content':o(_0x26f470,_0xe22a7e,o(_0x26f470,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xe22a7e='*Indent:*\x20%0',_0x20e294={'type':'format','content':o(_0x26f470,_0xe22a7e,o(_0x26f470,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xe22a7e=function(_0x50a8bb){const _0x93a12a=_0x50a8bb['getFirstRange']();let _0x5062fd=_0x93a12a['start']['nodeAfter'];for(;_0x5062fd&&_0x93a12a['containsItem'](_0x5062fd);){if(_0x5062fd['getAttribute']('listIndent')>0x0)return!0x1;_0x5062fd=_0x5062fd['nextSibling'];}return!0x0;}(_0x5a6699)?o(_0x26f470,'*Format:*\x20remove\x20from\x20%0',o(_0x26f470,function(_0x22f547){return'ELEMENT_'+_0x22f547['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5a6699))):o(_0x26f470,'*Outdent:*\x20%0',o(_0x26f470,'ELEMENT_LIST_ITEM')),_0x20e294={'type':'format','content':_0xe22a7e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x38421e['multipleBlocks']&&(_0xe22a7e='*Merge:*\x20%0',_0x20e294={'type':'deletion','content':o(_0x26f470,_0xe22a7e,o(_0x26f470,'ELEMENT_LIST_ITEM'))});}return _0x20e294;});}}function le(_0x4d95d0){let _0x5a58af=_0x4d95d0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5a58af;){const _0x23b29f=_0x5a58af['getAttribute']('listItemId');if(!_0x23b29f)return!0x1;if(_0x23b29f==_0x4d95d0['data']['newValue'])return'newValue';if(_0x23b29f==_0x4d95d0['data']['oldValue'])return'oldValue';_0x5a58af=_0x5a58af['previousSibling'];}return!0x1;}class ue extends _0x1f2e52{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3dd9a9=this['editor']['config']['get']('list.properties'),_0x1868c8=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dd9a9['styles']&&(_0x1868c8['enableDefaultAttributesIntegration']('listStyle'),_0x1868c8['registerBlockAttribute']('listStyle')),_0x3dd9a9['reversed']&&(_0x1868c8['enableDefaultAttributesIntegration']('listReversed'),_0x1868c8['registerBlockAttribute']('listReversed')),_0x3dd9a9['startIndex']&&(_0x1868c8['enableDefaultAttributesIntegration']('listStart'),_0x1868c8['registerBlockAttribute']('listStart'));const _0x2b210e={'type':'format','content':''};_0x1868c8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4aaec3=this['editor']['locale'];_0x1868c8['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4aaec3,'FORMAT_LIST_REVERSED')),_0x1868c8['descriptionFactory']['registerDescriptionCallback'](_0x31eadf=>{const {data:_0x4eab0b}=_0x31eadf;if(_0x4eab0b&&'listReversed'==_0x4eab0b['key'])return null==_0x4eab0b['newValue']||0x0==_0x4eab0b['newValue']&&null==_0x4eab0b['oldValue']?_0x2b210e:void 0x0;}),_0x1868c8['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4aaec3,'FORMAT_LIST_START')),_0x1868c8['descriptionFactory']['registerDescriptionCallback'](_0x3aee15=>{const {data:_0x4b6b4d}=_0x3aee15;if(_0x4b6b4d&&'listStart'==_0x4b6b4d['key'])return null==_0x4b6b4d['newValue']||0x1==_0x4b6b4d['newValue']&&null==_0x4b6b4d['oldValue']?_0x2b210e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1337ba=>{if(_0x1337ba['batch']['isUndo'])return!0x1;let _0x32a90e=!0x1;const _0x3a64f6=_0x1868c8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32fccc=>{const _0x32c7f6=_0x1868c8['_getAttributeKey'](_0x32fccc);return'listStart'==_0x32c7f6||'listReversed'==_0x32c7f6;});for(const _0x5d2017 of _0x3a64f6){const _0xe97b8a=_0x5d2017['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xe97b8a||'customNumbered'==_0xe97b8a)continue;_0x1868c8['_findSuggestions'](_0x5d2017['getFirstRange'](),'attribute')['find'](_0x161c08=>'listType'==_0x1868c8['_getAttributeKey'](_0x161c08['suggestion']))||(_0x1337ba['removeMarker'](_0x5d2017['getFirstMarker']()),_0x32a90e=!0x0);}return _0x32a90e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1c9a69){const _0x341f55=this['editor']['locale'],{data:_0x2c71c3}=_0x1c9a69,_0x56ec00={'type':'format','content':''};if(!_0x2c71c3||'listStyle'!=_0x2c71c3['key'])return;if(!_0x2c71c3['oldValue'])return'default'==_0x2c71c3['newValue']?_0x56ec00:{'type':'format','content':''+o(_0x341f55,'*Set\x20format:*\x20%0',o(_0x341f55,this['_getTranslationKeyForListStyle'](_0x2c71c3['newValue'])))};if(!_0x2c71c3['newValue']){if('default'==_0x2c71c3['oldValue'])return _0x56ec00;let _0x474c66=_0x1c9a69['head'];for(;_0x474c66;){if(_0x474c66['data']&&'listType'==_0x474c66['data']['key']&&_0x474c66['data']['newValue'])return _0x56ec00;_0x474c66=_0x474c66['next'];}return{'type':'format','content':''+o(_0x341f55,'*Remove\x20format:*\x20%0',o(_0x341f55,this['_getTranslationKeyForListStyle'](_0x2c71c3['oldValue'])))};}if('default'!=_0x2c71c3['newValue'])return{'type':'format','content':''+o(_0x341f55,'*Set\x20format:*\x20%0',o(_0x341f55,this['_getTranslationKeyForListStyle'](_0x2c71c3['newValue'])))};let _0x185ef4=_0x1c9a69['head'];for(;_0x185ef4;){if(_0x185ef4['data']&&'listType'==_0x185ef4['data']['key']&&_0x185ef4['data']['newValue']&&_0x185ef4['data']['oldValue'])return _0x56ec00;_0x185ef4=_0x185ef4['next'];}return{'type':'format','content':o(_0x341f55,'*Set\x20format:*\x20%0',o(_0x341f55,'ELEMENT_'+_0x1c9a69['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x471e5d=this['editor'],_0x38eecc=_0x471e5d['locale'];_0x471e5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5020df=>{if('formatBlock'!=_0x5020df['type'])return;const {data:_0x5c8e9a}=_0x5020df;if(!_0x5c8e9a)return;let _0x32cebc,_0x23cc2f;switch(_0x5c8e9a['commandName']){case'listStyle':_0x32cebc='*Change\x20to:*\x20%0',_0x23cc2f={'type':'format','content':o(_0x38eecc,_0x32cebc,o(_0x38eecc,this['_getTranslationKeyForListStyle'](_0x5c8e9a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x32cebc=_0x5c8e9a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x23cc2f={'type':'format','content':o(_0x38eecc,_0x32cebc)};break;case'listStart':_0x32cebc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x23cc2f={'type':'format','content':o(_0x38eecc,_0x32cebc,_0x5c8e9a['commandParams'][0x0]['startIndex'])};}return _0x23cc2f;});}['_getTranslationKeyForListStyle'](_0x4b05e9){return'ELEMENT_'+function(_0x4a1633){if(pe['includes'](_0x4a1633))return'bulleted';if(ye['includes'](_0x4a1633))return'numbered';return null;}(_0x4b05e9)['toUpperCase']()+'_LIST_'+_0x4b05e9['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1f2e52{static get['requires'](){return[_0x2bdf69];}['init'](){const _0x54f83d=this['editor'],_0x36b63c=_0x54f83d['plugins']['get']('TrackChangesEditing'),_0x30c50c=_0x54f83d['commands']['get']('enter');_0x36b63c['enableCommand']('enter',()=>{_0x54f83d['model']['change'](_0x45c01c=>{const _0x56c638=_0x54f83d['model']['document']['selection'],_0x53ecd9=_0x56c638['getFirstPosition'](),_0x4221d6=_0x3c5a16['fromRange'](_0x56c638['getFirstRange']());if(_0x30c50c['enterBlock'](_0x45c01c)){const _0x4d560d=_0x54f83d['model']['createPositionAt'](_0x53ecd9['parent']['nextSibling'],0x0),_0x3e1593=_0x45c01c['createRange'](_0x53ecd9,_0x4d560d);_0x36b63c['markInsertion'](_0x3e1593);}else _0x45c01c['setSelection'](_0x45c01c['createRange'](_0x4221d6['end']));_0x4221d6['detach'](),_0x30c50c['fire']('afterExecute',{'writer':_0x45c01c});});}),_0x54f83d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x54f83d,'split'),{'priority':'high'}),_0x54f83d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2dca6a,_0x37b61e,_0x357e7c)=>{const _0x1dbbf4=_0x357e7c['mapper']['markerNameToElements'](_0x37b61e['markerName']);if(_0x1dbbf4){for(const _0x4d6b7d of _0x1dbbf4)_0x4d6b7d['hasClass']('ck-suggestion-marker-split')&&(_0x357e7c['mapper']['unbindElementFromMarkerName'](_0x4d6b7d,_0x37b61e['markerName']),_0x357e7c['writer']['remove'](_0x4d6b7d));}},{'priority':'high'}),_0x54f83d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2dc101,_0x56969a,_0x4cf16a)=>{_0x4cf16a['options']['showSuggestionHighlights']&&_e(_0x54f83d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2dc101,_0x56969a,_0x4cf16a);},{'priority':'high'});}}class J extends _0x1f2e52{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x327555=this['editor']['plugins']['get']('TrackChangesEditing');_0x327555['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x327555['enableCommand']('findNext'),_0x327555['enableCommand']('findPrevious'),_0x327555['enableCommand']('replace'),_0x327555['enableCommand']('replaceAll');}['handleFindCommand'](_0x30dbd5,_0xc7a387,_0x14bcbb={}){const _0x3df0dd=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x30dbd5(_0xb5ad11=>('string'==typeof _0xc7a387?_0x3df0dd['findByTextCallback'](_0xc7a387,_0x14bcbb):_0xc7a387)(_0xb5ad11)['filter'](_0x3574e7=>!0x1===this['_isInDeletionRange'](_0x3574e7,_0xb5ad11['item'])),_0x14bcbb);}['_isInDeletionRange'](_0x47ffe4,_0x5af6ea){const _0x1d68ef=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5af6ea,_0x47ffe4['start']),this['editor']['model']['createPositionAt'](_0x5af6ea,_0x47ffe4['end']));for(const _0x3a34a8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1d68ef['getIntersection'](_0x3a34a8['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x1f2e52{['afterInit'](){const _0x31b589=this['editor']['locale'],_0x341fcd=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1f7b1c,commandName:_0x52da24}of ro)this['editor']['plugins']['has'](_0x1f7b1c)&&(_0x341fcd['enableDefaultAttributesIntegration'](_0x52da24),_0x341fcd['registerInlineAttribute'](_0x52da24));_0x31b589['t'],_0x341fcd['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x31b589,'FORMAT_FONT_SIZE')),_0x341fcd['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x31b589,'FORMAT_FONT_FAMILY')),_0x341fcd['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x31b589,'FORMAT_FONT_COLOR')),_0x341fcd['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x31b589,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x425920=this['editor'],_0x3c41f0=_0x425920['locale'];_0x425920['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x536429=>{const _0x240ec6=_0x3c41f0['t'];if('formatInline'!=_0x536429['type'])return;const {data:_0x4f760c}=_0x536429;if(null!=_0x4f760c){if('fontSize'==_0x4f760c['commandName']){const _0x363759=_0x4f760c['commandParams'][0x0]['value'];if(_0x363759){const _0x17e5aa=_0x240ec6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xc928f=>_0xc928f['model']==_0x363759)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3c41f0,'*Set\x20font\x20size:*\x20%0',_0x17e5aa)};}return{'type':'format','content':o(_0x3c41f0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4f760c['commandName']){const _0xb6d5e4=_0x4f760c['commandParams'][0x0]['value'];return _0xb6d5e4?{'type':'format','content':o(_0x3c41f0,'*Set\x20font\x20family:*\x20%0',_0xb6d5e4)}:{'type':'format','content':o(_0x3c41f0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4f760c['commandName']){const _0x5a36ca=_0x4f760c['commandParams'][0x0]['value'];if(_0x5a36ca){const _0x4a0058=_0x461b80(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4f2da0=>_0x4f2da0['model']==_0x5a36ca);let _0xd35379=_0x5a36ca,_0x3c1b77='';return _0x4a0058&&(_0xd35379=_0x4a0058['label'],_0x3c1b77=_0x240ec6(_0xd35379)['toLowerCase']()),{'type':'format','content':o(_0x3c41f0,'*Set\x20font\x20color:*\x20%0',_0x3c1b77)['trim'](),'color':{'value':_0x5a36ca,'title':_0x3c1b77||_0xd35379}};}return{'type':'format','content':o(_0x3c41f0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4f760c['commandName']){const _0x322af9=_0x4f760c['commandParams'][0x0]['value'];if(_0x322af9){const _0xfc699b=_0x461b80(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x39803e=>_0x39803e['model']==_0x322af9);let _0x40c445=_0x322af9,_0x5d04b9='';return _0xfc699b&&(_0x40c445=_0xfc699b['label'],_0x5d04b9=_0x240ec6(_0x40c445)['toLowerCase']()),{'type':'format','content':o(_0x3c41f0,'*Set\x20font\x20background\x20color:*\x20%0',_0x5d04b9)['trim'](),'color':{'value':_0x322af9,'title':_0x5d04b9||_0x40c445}};}return{'type':'format','content':o(_0x3c41f0,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1f2e52{['afterInit'](){const _0x379c48=this['editor'],_0xc3a0bb=_0x379c48['plugins']['get']('TrackChangesEditing'),_0x5c062f=_0x379c48['commands']['get']('copyFormat'),_0x4aceb9=_0x379c48['commands']['get']('pasteFormat');_0x5c062f&&_0x4aceb9&&(_0xc3a0bb['enableDefaultAttributesIntegration']('pasteFormat'),_0xc3a0bb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x8640d6=this['editor'],_0x2c349c=_0x8640d6['locale'];_0x8640d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14b471=>{if('formatBlock'!=_0x14b471['type']&&'formatInline'!=_0x14b471['type'])return;const {data:_0x4920e6}=_0x14b471;if(_0x4920e6&&'pasteFormat'===_0x4920e6['commandName']){const _0x35131b=[],_0x2b4f3f=_0x4920e6['commandParams'][0x0];for(const [_0x320321,_0x1438c8]of Object['entries'](_0x2b4f3f))_0x35131b['push'](so(_0x8640d6,_0x320321,_0x1438c8));return _0x35131b['length']?{'type':'format','content':o(_0x2c349c,'*Set\x20format\x20to:*\x20%0',_0x35131b['join'](',\x20'))}:{'type':'format','content':o(_0x2c349c,'*Remove\x20all\x20formatting*')};}});}}function so(_0x352d06,_0x7e11fd,_0x19af54){const _0x4d7bdf=_0x352d06['locale']['t'],_0x973565=_0x7e11fd['split'](/(?=[A-Z])/)['join']('\x20'),_0x221343=_0x4d7bdf(_0x973565['charAt'](0x0)['toUpperCase']()+_0x973565['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x19af54)return _0x221343;if('fontColor'===_0x7e11fd||'fontBackgroundColor'===_0x7e11fd){const _0x22ac82=_0x461b80(_0x352d06['config']['get']('fontColor.colors'))['find'](_0x372ebd=>_0x372ebd['model']==_0x19af54);return _0x221343+'\x20('+(_0x22ac82?_0x4d7bdf(_0x22ac82['label'])['toLowerCase']():_0x19af54)+')';}if('fontSize'===_0x7e11fd&&isNaN(parseFloat(_0x19af54))){const _0xfdd18d=_0x352d06['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x352d06['config']['get']('fontSize.options'))['find'](_0x11daf6=>_0x11daf6['model']==_0x19af54);return _0x221343+'\x20('+(_0xfdd18d?_0x4d7bdf(_0xfdd18d['title'])['toLowerCase']():_0x19af54)+')';}return _0x221343+'\x20('+_0x19af54+')';}class Y extends _0x1f2e52{['_headingOptions'];['afterInit'](){const _0x5703e9=this['editor'];if(!_0x5703e9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5703e9['config']['get']('heading.options');const _0x121ff2=_0x5703e9['locale'],_0x43dec5=_0x5703e9['plugins']['get']('TrackChangesEditing');_0x43dec5['enableDefaultAttributesIntegration']('heading');for(const _0x5cd635 of this['_headingOptions'])'paragraph'!=_0x5cd635['model']&&_0x43dec5['descriptionFactory']['registerElementLabel'](_0x5cd635['model'],_0x175756=>{const _0x2123ce=this['_getHeadingLevel'](_0x5cd635['model']);return null!==_0x2123ce?_0x3085b9(_0x175756,_0x2123ce):_0x440a35(_0x175756,_0x5cd635['title']);});function _0x3085b9(_0x372c64,_0x54e0b6){return o(_0x121ff2,'ELEMENT_HEADING',[_0x372c64,_0x54e0b6]);}function _0x440a35(_0x13cb51,_0x193d7b){return o(_0x121ff2,'ELEMENT_HEADING_CUSTOM',[_0x13cb51,_0x193d7b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x583919=this['editor'],_0x408e09=_0x583919['locale'];function _0x3982e8(_0x1fe8e3,_0x3f5515){return o(_0x408e09,'ELEMENT_HEADING_CUSTOM',[_0x1fe8e3,_0x3f5515]);}_0x583919['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x459e51=>{if('formatBlock'!=_0x459e51['type'])return;const {data:_0x3bbfbd}=_0x459e51;if(_0x3bbfbd&&'heading'==_0x3bbfbd['commandName']){const _0x55bbb9=_0x3bbfbd['commandParams'][0x0]['value'],_0x2dcf3e=this['_getHeadingLevel'](_0x55bbb9);if(null!==_0x2dcf3e)return{'type':'format','content':o(_0x408e09,'*Change\x20to:*\x20%0',(_0x4f8485=0x1,_0x10d8b4=_0x2dcf3e,o(_0x408e09,'ELEMENT_HEADING',[_0x4f8485,_0x10d8b4])))};const _0x20c171=this['_headingOptions']['find'](_0x43ccd5=>_0x43ccd5['model']===_0x55bbb9)['title'];return{'type':'format','content':o(_0x408e09,'*Change\x20to:*\x20%0',_0x3982e8(0x1,_0x20c171))};}var _0x4f8485,_0x10d8b4;});}['_getHeadingLevel'](_0x3a8e44){const _0x47f66b=_0x3a8e44['match'](/^heading(\d+)/);if(_0x47f66b)return _0x47f66b[0x1];const _0x4a5291=this['_headingOptions']?.['find'](_0x11c8bc=>_0x11c8bc['model']==_0x3a8e44);if(_0x4a5291&&_0x4a5291['view']){const _0x365bc7=_0x4a5291['view'],_0x1480d4=(_0x365bc7['name']??_0x365bc7)['match'](/^h(\d+)/);if(_0x1480d4)return _0x1480d4[0x1];}return null;}}class Z extends _0x1f2e52{['afterInit'](){const _0x4e4902=this['editor'];if(!_0x4e4902['plugins']['has']('HighlightEditing'))return;const _0xf4d6ba=_0x4e4902['plugins']['get']('TrackChangesEditing'),_0x554061=_0x4e4902['locale'];_0xf4d6ba['enableDefaultAttributesIntegration']('highlight'),_0xf4d6ba['registerInlineAttribute']('highlight'),_0xf4d6ba['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x554061,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x551999=this['editor'],_0x26791a=_0x551999['locale'];_0x551999['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bb8e6=>{if('formatInline'!=_0x4bb8e6['type'])return;const {data:_0x2fe1cd}=_0x4bb8e6;if(_0x2fe1cd&&'highlight'==_0x2fe1cd['commandName']){const _0x17217a=_0x26791a['t'],_0x31ffe6=_0x2fe1cd['commandParams'][0x0]['value'];if(_0x31ffe6){const _0xd56915=_0x551999['config']['get']('highlight.options')['find'](_0x46c8fb=>_0x46c8fb['model']==_0x31ffe6),_0x3da8aa=_0x17217a(_0xd56915['title'])['toLowerCase']();return{'type':'format','content':o(_0x26791a,'*Set\x20highlight:*\x20%0',_0x3da8aa),'color':{'value':_0xd56915['color'],'title':_0xd56915['title']}};}return{'type':'format','content':o(_0x26791a,'*Remove\x20highlight*',o(_0x26791a,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1f2e52{['afterInit'](){const _0xca6007=this['editor'];if(!_0xca6007['plugins']['has']('HorizontalLineEditing'))return;_0xca6007['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4b5422=_0xca6007['plugins']['get']('TrackChangesEditing'),_0x4fbc2a=_0xca6007['locale'];_0x4b5422['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5cd730=>o(_0x4fbc2a,'ELEMENT_HORIZONTAL_LINE',_0x5cd730)),_0xca6007['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x20e550,{writer:_0x30ca93,options:_0x30e3fe})=>{if(!_0x30e3fe['showSuggestionHighlights'])return null;const _0x3d4471=_0x30ca93['createContainerElement']('div'),_0x4ae7c0=_0x30ca93['createEmptyElement']('hr');return _0x30ca93['addClass']('ck-horizontal-line',_0x3d4471),_0x30ca93['insert'](_0x30ca93['createPositionAt'](_0x3d4471,0x0),_0x4ae7c0),_0x3d4471;},'converterPriority':'high'});}}class et extends _0x1f2e52{['afterInit'](){const _0x5b257a=this['editor'];if(!_0x5b257a['plugins']['has']('HtmlEmbed'))return;const _0x34652a=_0x5b257a['plugins']['get']('TrackChangesEditing'),_0x43bb1c=_0x5b257a['locale'];_0x34652a['descriptionFactory']['registerElementLabel']('rawHtml',_0x1be298=>o(_0x43bb1c,'ELEMENT_HTML_EMBED',_0x1be298)),_0x34652a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x34652a['registerBlockAttribute']('value'),_0x34652a['descriptionFactory']['registerDescriptionCallback'](_0x3b4ba3=>{if('attribute'!=_0x3b4ba3['type'])return;const {data:_0x196834}=_0x3b4ba3;if(_0x196834&&'value'==_0x196834['key']&&_0x3b4ba3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4d2d79=o(_0x43bb1c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x43bb1c,'*Change\x20%0\x20content*',_0x4d2d79)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5723a8=this['editor'],_0x389813=_0x5723a8['locale'];_0x5723a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x369d53=>{if('formatBlock'!=_0x369d53['type'])return;const {data:_0x23d884}=_0x369d53;if(_0x23d884&&'htmlEmbed'==_0x23d884['commandName']){const _0x213ecb=o(_0x389813,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x389813,'*Change\x20%0\x20content*',_0x213ecb)};}});}}class it extends _0x1f2e52{['afterInit'](){const _0x22339c=this['editor'];if(!_0x22339c['plugins']['has']('ImageEditing'))return;const _0x227518=_0x22339c['plugins']['get']('TrackChangesEditing'),_0x1108e5=_0x22339c['plugins']['get']('ImageUtils'),_0x478a9f=_0x22339c['locale'];_0x227518['enableCommand']('insertImage'),_0x227518['descriptionFactory']['registerElementLabel']('imageBlock',_0x26f913=>o(_0x478a9f,'ELEMENT_IMAGE',_0x26f913)),_0x227518['descriptionFactory']['registerElementLabel']('imageInline',_0x2dda15=>o(_0x478a9f,'ELEMENT_INLINE_IMAGE',_0x2dda15)),_0x227518['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x478a9f,'ELEMENT_CAPTION')),_0x22339c['plugins']['has']('ImageUploadEditing')&&_0x227518['enableCommand']('uploadImage'),_0x22339c['plugins']['has']('ImageBlockEditing')&&_0x22339c['plugins']['has']('ImageInlineEditing')&&(_0x227518['enableCommand']('imageTypeInline',(_0xa69a60,_0x5293d1)=>{const _0x445b51=_0x1108e5['getClosestSelectedImageElement'](_0x22339c['model']['document']['selection']);_0x22339c['model']['change'](()=>{_0x227518['markBlockFormat'](_0x445b51,{'commandName':'imageTypeInline','commandParams':[_0x5293d1]},[],'convertBlockImageToInline');});}),_0x227518['enableCommand']('imageTypeBlock',(_0x2bbe69,_0x16d5a6)=>{_0x22339c['model']['change'](_0xb637bf=>{let _0xddcc49=_0x1108e5['getClosestSelectedImageElement'](_0x22339c['model']['document']['selection']),_0x44161a=_0xb637bf['createRangeOn'](_0xddcc49);const _0x4f291e=_0x536527['fromPosition'](_0x44161a['start'],'toPrevious'),_0x5ed6a0=_0x536527['fromPosition'](_0x44161a['end'],'toNext');_0x227518['forceDefaultExecution'](()=>_0x2bbe69(_0x16d5a6)),_0xddcc49=_0x1108e5['getClosestSelectedImageElement'](_0x22339c['model']['document']['selection']),_0x44161a=_0xb637bf['createRangeOn'](_0xddcc49);const _0x54cf89=_0xb637bf['createRange'](_0x4f291e,_0x5ed6a0);_0x4f291e['detach'](),_0x5ed6a0['detach'](),_0x227518['markBlockFormat'](_0xddcc49,{'commandName':'imageTypeInline','commandParams':[_0x16d5a6]},[],'convertInlineImageToBlock'),_0x54cf89['start']['isBefore'](_0x44161a['start'])&&_0x227518['markInsertion'](_0xb637bf['createRange'](_0x54cf89['start'],_0x44161a['start']),'convertInlineImageToBlock'),_0x44161a['end']['isBefore'](_0x54cf89['end'])&&_0x227518['markInsertion'](_0xb637bf['createRange'](_0x44161a['end'],_0x54cf89['end']),'convertInlineImageToBlock');});}),_0x227518['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x227518['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x227518['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x227518['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x227518['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x227518['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4724d1])=>{const _0xf6db7b=_0x227518['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x571699=_0x4724d1['start'],_0x3b8e8a=_0x4724d1['end'];const _0x2dae0c=_0x22339c['model']['schema']['getNearestSelectionRange'](_0x571699,'backward'),_0x343095=_0x22339c['model']['schema']['getNearestSelectionRange'](_0x3b8e8a,'forward');_0x2dae0c['isCollapsed']&&(_0x571699=_0x2dae0c['start']),_0x343095['isCollapsed']&&(_0x3b8e8a=_0x343095['end']),_0xf6db7b([_0x22339c['model']['createRange'](_0x571699,_0x3b8e8a)]);}),_0x227518['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2c55e1),_0x227518['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2c55e1)),_0x22339c['plugins']['has']('ImageCaptionEditing')&&(_0x227518['enableCommand']('toggleImageCaption',(_0x2ba17e,_0x2ffb7f)=>{const _0x49908b=_0x22339c['plugins']['get']('ImageCaptionUtils');let _0x5ab54d=_0x1108e5['getClosestSelectedImageElement'](_0x22339c['model']['document']['selection']),_0x2b784d=_0x49908b['getCaptionFromImageModelElement'](_0x5ab54d);_0x22339c['model']['change'](()=>{if(_0x2b784d)return void _0x227518['markDeletion'](_0x22339c['model']['createRangeOn'](_0x2b784d));const _0x41bca4=_0x1108e5['isBlockImage'](_0x5ab54d);_0x2ba17e(_0x2ffb7f),_0x5ab54d=_0x1108e5['getClosestSelectedImageElement'](_0x22339c['model']['document']['selection']),_0x2b784d=_0x49908b['getCaptionFromImageModelElement'](_0x5ab54d),_0x227518['markInsertion'](_0x22339c['model']['createRangeOn'](_0x2b784d),_0x41bca4?null:'imageCaption');});}),_0x227518['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2c55e1));const _0x12b524=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x10eaf2(_0x392354,_0x240d92){const _0x1992cb=_0x12b524['findIndex'](({type:_0x15664f,subType:_0x2b34d1})=>_0x392354['type']==_0x15664f&&_0x392354['subType']==_0x2b34d1),_0x1a8dac=_0x12b524['findIndex'](({type:_0x891033,subType:_0x59b8cb})=>_0x240d92['type']==_0x891033&&_0x240d92['subType']==_0x59b8cb);if(_0x1992cb<0x0||_0x1a8dac<0x0)return!0x1;const _0x2ddbef=_0x392354['getFirstRange'](),_0x975bbe=_0x240d92['getFirstRange']();if((0x0==_0x1992cb||0x1==_0x1992cb)&&0x2==_0x1a8dac&&_0x2ddbef['isIntersecting'](_0x975bbe))return!0x0;if(0x2==_0x1992cb&&0x3==_0x1a8dac){const _0x3a4bfb=_0x227518['_findSuggestions'](_0x2ddbef,'insertion')['filter'](({suggestion:_0x4940d3,meta:_0x1f3240})=>_0x1f3240['isOwn']&&'convertInlineImageToBlock'==_0x4940d3['subType']);if(_0x3a4bfb['length']>0x1&&_0x975bbe['end']['isEqual'](_0x2ddbef['start']))return!0x0;if(0x1==_0x3a4bfb['length']&&(_0x2ddbef['start']['isEqual'](_0x975bbe['end'])||_0x2ddbef['end']['isEqual'](_0x975bbe['start'])))return!0x0;}if(0x3==_0x1992cb&&0x3==_0x1a8dac&&_0x2ddbef['start']['isBefore'](_0x975bbe['start'])){const _0x3a60a3=_0x2ddbef['end']['nodeAfter'],_0x2fd568=_0x975bbe['start']['nodeBefore'];return _0x1108e5['isBlockImage'](_0x3a60a3)&&_0x3a60a3===_0x2fd568;}return!0x1;}function _0x2c55e1(_0x3d556a,_0x20e567){return _0x10eaf2(_0x3d556a,_0x20e567)?[_0x3d556a,_0x20e567]:_0x10eaf2(_0x20e567,_0x3d556a)?[_0x20e567,_0x3d556a]:null;}_0x22339c['plugins']['has']('ImageResize')&&(_0x227518['enableDefaultAttributesIntegration']('resizeImage'),_0x227518['registerBlockAttribute']('resizedWidth'),_0x227518['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x478a9f,'FORMAT_IMAGE_SIZE'))),_0x22339c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x227518['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x227518['registerBlockAttribute']('alt')),_0x227518['descriptionFactory']['registerDescriptionCallback'](_0x195cfe=>{if(!!_0x12b524['find'](({type:_0x2c5e5f,subType:_0x31084d})=>_0x195cfe['type']==_0x2c5e5f&&_0x195cfe['subType']==_0x31084d))return _0x195cfe['previous']?{}:void 0x0;}),_0x227518['descriptionFactory']['registerDescriptionCallback'](_0x2428d2=>{if('insertion'==_0x2428d2['type']||'deletion'==_0x2428d2['type']){const _0x43b93a=_0x2428d2['getContainedElement']();if(_0x43b93a&&_0x43b93a['is']('element','caption'))return{'type':'insertion'==_0x2428d2['type']?'addObject':'removeObject','element':_0x43b93a,'quantity':0x1};}}),_0x227518['descriptionFactory']['registerDescriptionCallback'](_0xa3cad1=>'formatBlock'==_0xa3cad1['type']&&'convertInlineImageToBlock'==_0xa3cad1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xa3cad1['type']&&'convertBlockImageToInline'==_0xa3cad1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x227518['descriptionFactory']['registerDescriptionCallback'](_0x4e05f7=>{if('attribute'!=_0x4e05f7['type'])return;const {data:_0x214177}=_0x4e05f7;if(!_0x214177||'alt'!=_0x214177['key'])return;const _0x504206=_0x214177['newValue'];return _0x504206?{'type':'format','content':o(_0x478a9f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x504206+'\x22')}:{'type':'format','content':o(_0x478a9f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a5f08=this['editor'],_0x23d871=_0x4a5f08['locale'];_0x4a5f08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x71b611=>{if('formatBlock'!=_0x71b611['type']&&'formatInline'!=_0x71b611['type'])return;const {data:_0x4eaabe}=_0x71b611;if(_0x4eaabe){if('imageTextAlternative'==_0x4eaabe['commandName']){const _0x36957d=_0x4eaabe['commandParams'][0x0]['newValue'];return _0x36957d?{'type':'format','content':o(_0x23d871,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x36957d+'\x22')}:{'type':'format','content':o(_0x23d871,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4eaabe['commandName']){const _0x183c54=_0x4eaabe['commandParams'][0x0]['width'];return _0x183c54?{'type':'format','content':o(_0x23d871,'*Set\x20image\x20width:*\x20%0',_0x183c54)}:{'type':'format','content':o(_0x23d871,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1f2e52{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4e88c9=this['editor']['locale'],_0x3f2366=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f2366['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3f2366['registerBlockAttribute']('src'),_0x3f2366['descriptionFactory']['registerDescriptionCallback'](_0x24dda9=>{if('attribute'!=_0x24dda9['type'])return;const {data:_0x491a2d}=_0x24dda9;return _0x491a2d&&'src'==_0x491a2d['key']?_0x491a2d['newValue']&&_0x491a2d['oldValue']?{'type':'format','content':o(_0x4e88c9,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x17307f=this['editor']['plugins']['get']('TrackChangesEditing');_0x17307f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x17307f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17307f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x17307f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x164462=this['editor'],_0xe384e8=_0x164462['locale'];_0x164462['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14aca7=>{if('formatBlock'!=_0x14aca7['type']&&'formatInline'!=_0x14aca7['type'])return;const {data:_0x5ccf1f}=_0x14aca7;if(!_0x5ccf1f||'replaceImageSource'!=_0x5ccf1f['commandName'])return;return{'type':'format','content':o(_0xe384e8,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1f2e52{['afterInit'](){const _0x33cccc=this['editor'];if(!_0x33cccc['plugins']['has']('ImageStyleEditing'))return;const _0x317d5e=_0x33cccc['plugins']['get']('TrackChangesEditing'),_0x39d001=_0x33cccc['plugins']['get']('ImageUtils'),_0x9aba15={};_0x317d5e['enableCommand']('imageStyle',(_0x5e4c22,_0x40d95c)=>{const _0x1dfca7=_0x33cccc['plugins']['get']('Users')['me'],_0x3a5131=_0x33cccc['commands']['get']('imageStyle');let _0x31bec7=_0x39d001['getClosestSelectedImageElement'](_0x33cccc['model']['document']['selection']),_0x2a3681=_0x33cccc['model']['createRangeOn'](_0x31bec7),_0x130ff=_0x3a5131['value'];if(_0x130ff==_0x40d95c['value'])return;const _0x170c1c={'commandName':'imageStyle','commandParams':[_0x40d95c],'formatGroupId':_0x549ca5()};_0x33cccc['model']['change'](()=>{if(_0x317d5e['getSuggestions']()['filter'](_0x2fd99d=>_0x2fd99d['isInContent']&&_0x1dfca7==_0x2fd99d['author']&&('formatBlock'==_0x2fd99d['type']||'formatInline'==_0x2fd99d['type'])&&('imageStylePreApply'==_0x2fd99d['subType']||'imageStylePostApply'==_0x2fd99d['subType'])&&_0x2fd99d['getFirstRange']()['isEqual'](_0x2a3681))['forEach'](_0x5dbf1c=>_0x317d5e['discardSuggestion'](_0x5dbf1c['head'])),_0x31bec7=_0x39d001['getClosestSelectedImageElement'](_0x33cccc['model']['document']['selection']),_0x2a3681=_0x33cccc['model']['createRangeOn'](_0x31bec7),_0x3a5131['refresh'](),_0x33cccc['commands']['get']('imageTypeInline')['refresh'](),_0x33cccc['commands']['get']('imageTypeBlock')['refresh'](),_0x130ff=_0x3a5131['value'],_0x130ff!=_0x40d95c['value'])return _0x39d001['isInlineImage'](_0x31bec7)&&_0x3a5131['shouldConvertImageType'](_0x40d95c['value'],_0x31bec7)?(_0x5e4c22({..._0x40d95c,'setImageSizes':!0x1}),_0x31bec7=_0x39d001['getClosestSelectedImageElement'](_0x33cccc['model']['document']['selection']),void _0x317d5e['markBlockFormat'](_0x31bec7,{..._0x170c1c,'commandReversedParams':[{'value':_0x130ff||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x39d001['isBlockImage'](_0x31bec7)?_0x317d5e['markBlockFormat'](_0x31bec7,_0x170c1c,[],'imageStylePostApply'):_0x317d5e['markInlineFormat'](_0x2a3681,_0x170c1c,'imageStylePostApply'));});});for(const _0x222c31 of _0x33cccc['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x9aba15[_0x222c31['name']]=_0x222c31['title']['toLowerCase']();_0x317d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x317d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x317d5e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x317d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x377409])=>{_0x39d001['setImageNaturalSizeAttributes'](_0x377409['getContainedElement']());}),_0x317d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x8730f2,_0x486ebc)=>{_0x317d5e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x8730f2,{'commandName':_0x486ebc['commandName'],'commandParams':_0x486ebc['commandReversedParams']});}),_0x317d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2bd947,_0x548955){if(_0x21f4df(_0x2bd947,_0x548955))return[_0x2bd947,_0x548955];if(_0x21f4df(_0x548955,_0x2bd947))return[_0x548955,_0x2bd947];return null;});const _0x525a77=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x21f4df(_0x1e010e,_0x101f58){const _0x114cd3=_0x525a77['findIndex'](({type:_0x23ebb9,subType:_0x142940})=>_0x1e010e['type']==_0x23ebb9&&_0x1e010e['subType']==_0x142940),_0x4900b5=_0x525a77['findIndex'](({type:_0x2c6492,subType:_0x58a1fa})=>_0x101f58['type']==_0x2c6492&&_0x101f58['subType']==_0x58a1fa);if(_0x114cd3<0x0||_0x4900b5<0x0)return!0x1;const _0x381491=_0x1e010e['getFirstRange'](),_0x59b5a5=_0x101f58['getFirstRange']();if((0x0==_0x114cd3||0x1==_0x114cd3)&&0x2==_0x4900b5&&_0x381491['isIntersecting'](_0x59b5a5))return!0x0;if(0x2==_0x114cd3&&0x3==_0x4900b5){const _0x19fb9f=_0x317d5e['_findSuggestions'](_0x381491,'insertion')['filter'](({suggestion:_0xbff8b6,meta:_0x3c748c})=>_0x3c748c['isOwn']&&'convertInlineImageToBlock'==_0xbff8b6['subType']);if(_0x19fb9f['length']>0x1&&_0x59b5a5['end']['isEqual'](_0x381491['start']))return!0x0;if(0x1==_0x19fb9f['length']&&(_0x381491['start']['isEqual'](_0x59b5a5['end'])||_0x381491['end']['isEqual'](_0x59b5a5['start'])))return!0x0;}if(0x3==_0x114cd3&&0x3==_0x4900b5&&_0x381491['start']['isBefore'](_0x59b5a5['start'])){const _0x3b1e18=_0x381491['end']['nodeAfter'],_0x44b317=_0x59b5a5['start']['nodeBefore'];return _0x39d001['isBlockImage'](_0x3b1e18)&&_0x3b1e18===_0x44b317;}return!0x1;}_0x33cccc['model']['document']['registerPostFixer'](()=>{let _0x207265=!0x1;const _0x2b68e8=Array['from'](_0x33cccc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ef9ea,data:_0x405fee}of _0x2b68e8){const {group:_0x327e45,type:_0x353966,subType:_0xb8a3fb,id:_0x44f004}=_0x317d5e['_splitMarkerName'](_0x3ef9ea);if('suggestion'==_0x327e45&&_0x317d5e['hasSuggestion'](_0x44f004)){if('formatBlock'==_0x353966&&('imageStylePreApply'==_0xb8a3fb||'imageStylePostApply'==_0xb8a3fb)){const _0x21a76d=_0x317d5e['getSuggestion'](_0x44f004);if(_0x405fee['newRange']){const _0x24e1c9=_0x21a76d['getFirstRange']()['getContainedElement']();if(_0x39d001['isBlockImage'](_0x24e1c9))continue;_0x317d5e['discardSuggestion'](_0x21a76d),_0x207265=!0x0;}}if('insertion'==_0x353966&&'imageCaption'==_0xb8a3fb&&!_0x405fee['newRange']){const _0x5684cb=_0x317d5e['getSuggestion'](_0x44f004);_0x5684cb['next']&&_0x5684cb['next']['isInContent']&&(_0x317d5e['discardSuggestion'](_0x5684cb['next']),_0x207265=!0x0);}}}return _0x207265;}),this['_registerLegacyDescription'](_0x9aba15);}['_registerLegacyDescription'](_0x5f182a){const _0x111ca2=this['editor'],_0x426192=_0x111ca2['locale'];_0x111ca2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x383c03=>{if('formatBlock'!=_0x383c03['type']&&'formatInline'!=_0x383c03['type'])return;const {data:_0x3cb4e0}=_0x383c03;if(!_0x3cb4e0||'imageStyle'!=_0x3cb4e0['commandName'])return;const _0x5cf72a=_0x3cb4e0['commandParams'][0x0]['value'];return _0xaa7e97('side'===_0x5cf72a?o(_0x426192,'FORMAT_SIDE_IMAGE'):_0x5f182a[_0x5cf72a]||_0x5cf72a);function _0xaa7e97(_0x3aa5d7){return{'type':'format','content':o(_0x426192,'*Format:*\x20%0',_0x3aa5d7)};}});}}class ot extends _0x1f2e52{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2de509){super(_0x2de509),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3dca8e=this['editor'],_0x2793a0=_0x3dca8e['commands']['get']('importWord'),_0x329da6=_0x3dca8e['commands']['get']('trackChanges');_0x2793a0&&(_0x2793a0['on']('execute',(_0xa1a099,[,_0x5e0ef7])=>{this['_trackChangesValueDuringImport']=_0x329da6['value'],_0x5e0ef7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2793a0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2793a0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x329da6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3dca8e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4dae66,_0x20219c){const {suggestions:_0x4ebbff}=_0x20219c,_0x419383=this['editor']['commands']['get']('trackChanges'),_0x89ee3f=_0x419383['value'];this['_trackChangesValueDuringImport']!==_0x89ee3f&&(_0x419383['execute'](),this['_trackChangesExecuted']=!0x0),_0x4ebbff&&_0x4ebbff['forEach'](({id:_0x47eed2,type:_0x2b44ac,author:_0x23478a,created_at:_0x4b98fb})=>{const _0x28f4bc={'id':_0x47eed2,'type':_0x2b44ac,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x23478a,'createdAt':_0x4b98fb?new Date(_0x4b98fb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x28f4bc);});}}class rt extends _0x1f2e52{['afterInit'](){const _0x1da410=this['editor'],_0x10a3de=_0x1da410['plugins']['get']('TrackChangesEditing');if(_0x1da410['plugins']['has']('IndentEditing')&&(_0x10a3de['enableCommand']('indent'),_0x10a3de['enableCommand']('outdent')),_0x1da410['plugins']['has']('IndentBlock')){for(const _0x5d6c60 of['indentBlock','outdentBlock'])_0x10a3de['enableDefaultAttributesIntegration'](_0x5d6c60);}const _0x5a58c5=_0x1da410['locale'];_0x10a3de['registerBlockAttribute']('blockIndent'),_0x10a3de['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5a58c5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x779ce2=this['editor'],_0x333c61=_0x779ce2['locale'],_0x3163b7=_0x779ce2['plugins']['get']('TrackChangesEditing');_0x3163b7['descriptionFactory']['registerDescriptionCallback'](_0x14a671=>{if('formatBlock'!=_0x14a671['type'])return;const {data:_0xf1b092}=_0x14a671;if(!_0xf1b092)return;if('indentBlock'!=_0xf1b092['commandName']&&'outdentBlock'!=_0xf1b092['commandName'])return;const _0xead0f3=_0x14a671['getItems']()[0x0],_0x2e890=_0x3163b7['descriptionFactory']['getItemLabel'](_0xead0f3);return'indentBlock'==_0xf1b092['commandName']?{'type':'format','content':o(_0x333c61,'*Indent:*\x20%0',_0x2e890)}:'outdentBlock'==_0xf1b092['commandName']?{'type':'format','content':o(_0x333c61,'*Outdent:*\x20%0',_0x2e890)}:void 0x0;});}}class at extends _0x1f2e52{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1f2e52{['afterInit'](){const _0x1678f4=this['editor'];if(!_0x1678f4['plugins']['has']('LinkEditing'))return;const _0x24123d=_0x1678f4['plugins']['get']('TrackChangesEditing'),_0x52d0b4=_0x1678f4['commands']['get']('link');_0x24123d['enableDefaultAttributesIntegration']('link'),_0x24123d['enableDefaultAttributesIntegration']('unlink'),_0x24123d['registerInlineAttribute']('linkHref');for(const _0x151316 of _0x52d0b4['manualDecorators'])_0x24123d['registerInlineAttribute'](_0x151316['id']),_0x24123d['descriptionFactory']['registerAttributeLabel'](_0x151316['id'],'link\x20('+_0x151316['label']['toLowerCase']()+')');_0x24123d['descriptionFactory']['registerDescriptionCallback'](_0x54f611=>{if('attribute'!=_0x54f611['type'])return;const {data:_0x276c47}=_0x54f611;if(!_0x276c47||'linkHref'!=_0x276c47['key'])return;const _0x7f7f6d=_0x276c47['newValue'],_0x4d216d=_0x1678f4['locale'];return{'type':'format','content':null==_0x7f7f6d?o(_0x4d216d,'*Remove\x20link*'):o(_0x4d216d,'*Set\x20link:*\x20%0','\x22'+_0x7f7f6d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2946cb=this['editor'],_0x429e22=_0x2946cb['locale'];_0x2946cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4261e1=>{if('formatInline'!=_0x4261e1['type'])return;const {data:_0x4e1845}=_0x4261e1;if(_0x4e1845){if('link'==_0x4e1845['commandName']){const _0x45b464=_0x4e1845['commandParams'][0x0];return{'type':'format','content':o(_0x429e22,'*Set\x20link:*\x20%0','\x22'+_0x45b464+'\x22')};}return'unlink'==_0x4e1845['commandName']?{'type':'format','content':o(_0x429e22,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1f2e52{['afterInit'](){const _0x5395d3=this['editor'],_0x30400d=_0x5395d3['locale'];if(!_0x5395d3['plugins']['has']('LegacyListEditing'))return;const _0x3f0fa3=_0x5395d3['plugins']['get']('TrackChangesEditing'),_0x87a5d2=_0x5395d3['plugins']['has']('LegacyTodoListEditing');function _0x28d1ab(_0x2f3e1c){return()=>{const _0x59ab6e=_0x5395d3['model']['document']['selection'],_0x787447=_0x5395d3['commands']['get'](_0x2f3e1c);if(_0x787447['value'])return void _0x5395d3['execute']('paragraph',{});const _0x220372=_0x2f3e1c['slice'](0x0,-0x4),_0x58462e=function(_0x6dcb45,_0x32b743,_0x5cdd58){let _0x35d1a6=Array['from'](_0x6dcb45)['filter'](_0x4d6f7d=>function(_0x412f53,_0x172942){return _0x172942['checkChild'](_0x412f53['parent'],'listItem')&&!_0x172942['isObject'](_0x412f53);}(_0x4d6f7d,_0x5cdd58));_0x35d1a6=_0x35d1a6['filter'](_0x1144fd=>!_0x1144fd['is']('element','listItem')||_0x1144fd['getAttribute']('listType')!=_0x32b743);const _0x447b62=new Set();for(const _0x4e2152 of _0x35d1a6)_0x4e2152['is']('element','listItem')?_0x447b62['add'](me(_0x4e2152)):_0x447b62['add'](_0x4e2152);return Array['from'](_0x447b62);}(_0x59ab6e['getSelectedBlocks'](),_0x220372,_0x5395d3['model']['schema']);_0x5395d3['model']['change'](()=>{for(const _0x40832d of _0x58462e)_0x3f0fa3['markBlockFormat'](_0x40832d,{'commandName':_0x2f3e1c,'commandParams':[{'forceValue':!_0x787447['value']}],'formatGroupId':'blockName'},fe(_0x40832d));});};}function _0x11fa4f(_0x59e769){return()=>{const _0x345a71=function(_0x1cc7c8){let _0x1a1dc9=Array['from'](_0x1cc7c8);const _0xe629c2=_0x1a1dc9['findIndex'](_0x4f202d=>'listItem'!=_0x4f202d['name']);return _0xe629c2>-0x1&&(_0x1a1dc9=_0x1a1dc9['slice'](0x0,_0xe629c2)),_0x1a1dc9;}(_0x5395d3['model']['document']['selection']['getSelectedBlocks']()),_0x55810a=_0x5395d3['model']['createRange'](_0x5395d3['model']['createPositionAt'](_0x345a71[0x0],'before'),_0x5395d3['model']['createPositionAt'](_0x345a71[_0x345a71['length']-0x1],'end'));_0x5395d3['model']['change'](()=>{_0x3f0fa3['markBlockFormat'](_0x55810a,{'commandName':_0x59e769,'commandParams':[],'formatGroupId':'listIndent'},function(_0x666037){const _0x5daf90=new Set();for(const _0x2c86b5 of _0x666037){let _0x180185=_0x2c86b5['nextSibling'];for(;_0x180185&&_0x180185['getAttribute']('listIndent')>_0x2c86b5['getAttribute']('listIndent');)_0x5daf90['add'](_0x180185),_0x180185=_0x180185['nextSibling'];}return Array['from'](_0x5daf90);}(_0x345a71));});};}_0x3f0fa3['enableCommand']('numberedList',_0x28d1ab('numberedList')),_0x3f0fa3['enableCommand']('bulletedList',_0x28d1ab('bulletedList')),_0x87a5d2&&_0x3f0fa3['enableCommand']('todoList',_0x28d1ab('todoList')),_0x3f0fa3['enableCommand']('indentList',_0x11fa4f('indentList')),_0x3f0fa3['enableCommand']('outdentList',_0x11fa4f('outdentList')),_0x87a5d2&&_0x3f0fa3['enableCommand']('checkTodoList',()=>{const _0x4a4303=_0x5395d3['commands']['get']('checkTodoList'),_0x2fbfa2=Array['from'](_0x4a4303['_selectedElements']);_0x2fbfa2['filter'](_0x4613ae=>_0x4613ae['getAttribute']('todoListChecked')!=_0x4a4303['value']),_0x5395d3['model']['change'](()=>{for(const _0x4eba5d of _0x2fbfa2)_0x3f0fa3['markBlockFormat'](_0x4eba5d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4a4303['value']}]});});}),_0x3f0fa3['descriptionFactory']['registerElementLabel']('listItem',_0x31a933=>o(_0x30400d,'ELEMENT_LIST_ITEM',_0x31a933)),_0x3f0fa3['descriptionFactory']['registerDescriptionCallback'](_0x53be94=>{if('formatBlock'!=_0x53be94['type']&&'formatInline'!=_0x53be94['type'])return;const {data:_0x54dcae}=_0x53be94;if(_0x54dcae){if('numberedList'==_0x54dcae['commandName']||'bulletedList'==_0x54dcae['commandName']||'todoList'==_0x54dcae['commandName'])switch(_0x54dcae['commandName']['replace']('List','')){case'bulleted':return _0x48c132(o(_0x30400d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48c132(o(_0x30400d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48c132(o(_0x30400d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x54dcae['commandName'])return{'type':'format','content':o(_0x30400d,'*Indent:*\x20%0',o(_0x30400d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x54dcae['commandName'])return{'type':'format','content':o(_0x30400d,'*Outdent:*\x20%0',o(_0x30400d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x54dcae['commandName'])return _0x54dcae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30400d,'*Check\x20item*')}:{'type':'format','content':o(_0x30400d,'*Uncheck\x20item*')};}function _0x48c132(_0x289ae1){return{'type':'format','content':o(_0x30400d,'*Change\x20to:*\x20%0',_0x289ae1)};}});}}function me(_0x4af0c9){const _0x3772d5=_0x4af0c9['getAttribute']('listIndent');if(0x0==_0x3772d5)return _0x4af0c9;let _0x2a7f9f=_0x4af0c9;for(;_0x4af0c9['previousSibling']&&_0x4af0c9['previousSibling']['is']('element','listItem');){const _0x3c4b6b=_0x4af0c9['previousSibling']['getAttribute']('listIndent');if(_0x3c4b6b==_0x3772d5)_0x2a7f9f=_0x4af0c9['previousSibling'];else{if(_0x3c4b6b<_0x3772d5)break;}_0x4af0c9=_0x4af0c9['previousSibling'];}return _0x2a7f9f;}function fe(_0x886edf){const _0x1744aa=[];if(_0x886edf['is']('element','listItem')&&_0x886edf['getAttribute']('listIndent')>0x0){let _0x383051=_0x886edf['nextSibling'];for(;_0x383051&&'listItem'==_0x383051['name']&&_0x383051['getAttribute']('listIndent')==_0x886edf['getAttribute']('listIndent');)_0x1744aa['push'](_0x383051),_0x383051=_0x383051['nextSibling'];}return _0x1744aa;}class K extends _0x1f2e52{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x37b687=this['editor']['config']['get']('list.properties'),_0x3ec416=this['editor']['plugins']['get']('TrackChangesEditing');_0x37b687['styles']&&_0x3ec416['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x37b687['reversed']&&_0x3ec416['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x37b687['startIndex']&&_0x3ec416['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3ec416['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x18ada4,_0x3eb044={}){const _0x331eb5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12eece=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x331eb5['markMultiRangeBlockFormat'](_0x12eece,{'commandName':'listStyle','commandParams':[{'type':_0x3eb044['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1d3e88,_0x205745={}){const _0x556104=this['editor']['plugins']['get']('TrackChangesEditing'),_0x508771=this['_getSuggestionBlocks'](_0x459645=>_0x459645['is']('element','listItem')&&'numbered'===_0x459645['getAttribute']('listType'));if(_0x508771['length']<0x1)return;const _0x12a26f=_0x508771['map'](_0x1fe6dd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1fe6dd,'before'),this['editor']['model']['createPositionAt'](_0x1fe6dd,0x0)));this['editor']['model']['change'](()=>{_0x556104['markMultiRangeBlockFormat'](_0x12a26f,{'commandName':'listReversed','commandParams':[{'reversed':_0x205745['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x41fa83,_0x28132c={}){const _0x2f6867=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe9767f=this['_getSuggestionBlocks'](_0x48fc6e=>_0x48fc6e['is']('element','listItem')&&'numbered'===_0x48fc6e['getAttribute']('listType'));if(_0xe9767f['length']<0x1)return;const _0x56cdbe=_0xe9767f['map'](_0xe93c2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xe93c2,'before'),this['editor']['model']['createPositionAt'](_0xe93c2,0x0)));this['editor']['model']['change'](()=>{_0x2f6867['markMultiRangeBlockFormat'](_0x56cdbe,{'commandName':'listStart','commandParams':[{'startIndex':_0x28132c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3f8ac9){if('formatBlock'!=_0x3f8ac9['type']&&'formatInline'!=_0x3f8ac9['type'])return;const _0x3ee926=this['editor']['locale'],{data:_0x23f6a3}=_0x3f8ac9;if(!_0x23f6a3)return;let _0x505e02,_0x11b268;switch(_0x23f6a3['commandName']){case'listStyle':_0x505e02='*Change\x20to:*\x20%0',_0x11b268={'type':'format','content':o(_0x3ee926,_0x505e02,o(_0x3ee926,this['_getTranslationKeyForListStyle'](_0x23f6a3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x505e02=_0x23f6a3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x11b268={'type':'format','content':o(_0x3ee926,_0x505e02)};break;case'listStart':_0x505e02='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x11b268={'type':'format','content':o(_0x3ee926,_0x505e02,_0x23f6a3['commandParams'][0x0]['startIndex'])};}return _0x11b268;}['_getSuggestionBlocksForListStyle'](){const _0x37984e=this['editor']['plugins']['get']('LegacyListUtils');let _0x2e3cc7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2e3cc7[0x0]?.['is']('element','listItem')&&_0x2e3cc7['unshift'](..._0x37984e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2e3cc7[_0x2e3cc7['length']-0x1]?.['is']('element','listItem')&&_0x2e3cc7['push'](..._0x37984e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2e3cc7=[...new Set(_0x2e3cc7)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2e3cc7=_0x2e3cc7['filter'](_0x1a958d=>_0x1a958d['is']('element','listItem'))),_0x2e3cc7;}['_getSuggestionBlocks'](_0x560402){const _0x30210a=this['editor']['plugins']['get']('LegacyListUtils');let _0x6f90b2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x560402)['map'](_0x1b6fa5=>{const _0x50843f=this['editor']['model']['createPositionAt'](_0x1b6fa5,0x0);return[..._0x30210a['getSiblingNodes'](_0x50843f,'backward'),..._0x30210a['getSiblingNodes'](_0x50843f,'forward')];})['flat']();return _0x6f90b2=[...new Set(_0x6f90b2)],_0x6f90b2;}['_getTranslationKeyForListStyle'](_0x441a82){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x441a82)||'default')['toUpperCase']()+'_LIST_'+_0x441a82['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1f2e52{['afterInit'](){const _0x2af4e2=this['editor'];if(!_0x2af4e2['plugins']['has']('MediaEmbedEditing'))return;const _0x2e4d9b=_0x2af4e2['plugins']['get']('TrackChangesEditing'),_0x5d863f=_0x2af4e2['locale'];_0x2e4d9b['enableCommand']('mediaEmbed'),_0x2e4d9b['descriptionFactory']['registerElementLabel']('media',_0x122233=>o(_0x5d863f,'ELEMENT_MEDIA',_0x122233)),_0x2af4e2['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x303bc9,{writer:_0x23ab69,options:_0x384256})=>{if(_0x384256['showSuggestionHighlights'])return _0x23ab69['createEmptyElement']('div');},'converterPriority':'high'}),_0x2af4e2['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2b7520,_0x23f944,_0x17c134)=>{_0x17c134['options']['showSuggestionHighlights']&&_0x2b7520['stop']();},{'priority':'high'});}}class gt extends _0x1f2e52{['afterInit'](){const _0x1ff6b1=this['editor'];_0x1ff6b1['plugins']['has']('MentionEditing')&&_0x1ff6b1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1f2e52{['afterInit'](){const _0xb95040=this['editor'],_0x5ba4e8=_0xb95040['plugins']['get']('TrackChangesEditing');_0xb95040['plugins']['has']('MultiLevelList')&&(_0x5ba4e8['enableDefaultAttributesIntegration']('multiLevelList'),_0x5ba4e8['registerBlockAttribute']('listMarkerStyle'),_0x5ba4e8['descriptionFactory']['registerDescriptionCallback'](_0x236b84=>this['handleDescriptions'](_0x236b84)));}['handleDescriptions'](_0x2fa40d){const _0x2c330d=this['editor']['locale'],{data:_0x56b504}=_0x2fa40d,_0x428c47={'type':'format','content':''};if(_0x56b504&&'listMarkerStyle'==_0x56b504['key']){if(!_0x56b504['oldValue'])return{'type':'format','content':o(_0x2c330d,'*Set\x20format:*\x20%0',o(_0x2c330d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x56b504['newValue']+')'};if(!_0x56b504['newValue']){let _0x5710a5=_0x2fa40d['head'];for(;_0x5710a5;){if(_0x5710a5['data']&&'listType'==_0x5710a5['data']['key']&&_0x5710a5['data']['newValue'])return _0x428c47;_0x5710a5=_0x5710a5['next'];}return{'type':'format','content':o(_0x2c330d,'*Remove\x20format:*\x20%0',o(_0x2c330d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x56b504['oldValue']+')'};}}}}class mt extends _0x1f2e52{['afterInit'](){const _0x1dea7e=this['editor'];if(!_0x1dea7e['plugins']['has']('PageBreakEditing'))return;_0x1dea7e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x65b538=_0x1dea7e['plugins']['get']('TrackChangesEditing'),_0x11b247=_0x1dea7e['locale'];_0x65b538['descriptionFactory']['registerElementLabel']('pageBreak',_0x3b31f2=>o(_0x11b247,'ELEMENT_PAGE_BREAK',_0x3b31f2));}}class dt extends _0x1f2e52{['afterInit'](){const _0x34ddbe=this['editor'];if(!_0x34ddbe['plugins']['has']('Paragraph'))return;const _0x9b2d23=_0x34ddbe['locale'],_0x1a8597=_0x34ddbe['plugins']['get']('TrackChangesEditing');_0x1a8597['descriptionFactory']['registerElementLabel']('paragraph',_0x3ad833=>o(_0x9b2d23,'ELEMENT_PARAGRAPH',_0x3ad833)),_0x1a8597['enableDefaultAttributesIntegration']('paragraph'),_0x1a8597['enableCommand']('insertParagraph'),_0x34ddbe['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x34ddbe),{'priority':'highest'}),_0x34ddbe['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2a493f,_0x32eef7,_0x1ba094)=>{_0x1ba094['options']['showSuggestionHighlights']&&nr(_0x34ddbe,{'showActiveMarker':!0x1})(_0x2a493f,_0x32eef7,_0x1ba094);},{'priority':'highest'});const _0x19b124=_0x1a8597['descriptionFactory'];_0x19b124['registerDescriptionCallback'](_0x45bd4a=>{if('insertion'!==_0x45bd4a['type'])return;const {start:_0x494b11,end:_0x3cdebb}=_0x45bd4a['getFirstRange']();if(!_0x494b11['isTouching'](_0x3cdebb)||!_0x494b11['nodeAfter'])return;const _0xf14aa9=_0x34ddbe['model']['schema'],_0x2833c5=_0x494b11['nodeAfter'];return _0xf14aa9['isBlock'](_0x2833c5)&&!_0xf14aa9['isLimit'](_0x2833c5)&&_0xf14aa9['checkChild'](_0x2833c5,'$text')?{'type':'insertion','content':o(_0x9b2d23,'*Insert:*\x20%0',_0x19b124['getItemLabel'](_0x2833c5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15de43=this['editor'],_0x4fa321=_0x15de43['locale'];_0x15de43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x353ad3=>{if('formatBlock'!=_0x353ad3['type'])return;const {data:_0x41bba7}=_0x353ad3;return _0x41bba7&&'paragraph'==_0x41bba7['commandName']?{'type':'format','content':o(_0x4fa321,'*Change\x20to:*\x20%0',o(_0x4fa321,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x313949,{showActiveMarker:_0x328a42=!0x0}={}){return(_0x25ceef,_0x5a5304,_0x555d4d)=>{const _0x5d939b=_0x313949['plugins']['get']('TrackChangesEditing'),_0x377c53=_0x5a5304['markerRange']['start'],_0xf59569=_0x5a5304['markerRange']['end'],_0x418437=_0x313949['model']['schema'];if(!_0x377c53['isTouching'](_0xf59569)||!_0x377c53['nodeAfter'])return;const _0x3b08f1=_0x377c53['nodeAfter'];if(_0x418437['isBlock'](_0x3b08f1)&&!_0x418437['isLimit'](_0x3b08f1)&&_0x418437['checkChild'](_0x3b08f1,'$text')){if(!_0x555d4d['consumable']['consume'](_0x5a5304['markerRange'],_0x25ceef['name']))return;const _0x413d58=_0x555d4d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x38208d=_0x555d4d['mapper']['toViewPosition'](_0xf59569);_0x328a42&&_0x5d939b['activeMarkers']['includes'](_0x5a5304['markerName'])&&_0x555d4d['writer']['addClass']('ck-suggestion-marker--active',_0x413d58),_0x555d4d['writer']['insert'](_0x38208d,_0x413d58),_0x555d4d['mapper']['bindElementToMarker'](_0x413d58,_0x5a5304['markerName']);}};}class pt extends _0x1f2e52{['afterInit'](){const _0x29ac0e=this['editor'];if(!_0x29ac0e['plugins']['has']('RemoveFormatEditing'))return;_0x29ac0e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3edecb=this['editor'];_0x3edecb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21e64e=>{if('formatBlock'!=_0x21e64e['type']&&'formatInline'!=_0x21e64e['type'])return;const {data:_0x226755}=_0x21e64e;return _0x226755&&'removeFormat'==_0x226755['commandName']?{'type':'format','content':o(_0x3edecb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1f2e52{['afterInit'](){const _0x37d087=this['editor'];if(!_0x37d087['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3bfeec=_0x37d087['plugins']['get']('TrackChangesEditing');_0x3bfeec['enableCommand']('goToPreviousRestrictedEditingException'),_0x3bfeec['enableCommand']('goToNextRestrictedEditingException');const _0x7b675c=_0x37d087['plugins']['get']('RestrictedEditingModeEditing');_0x7b675c['enableCommand']('trackChanges'),_0x7b675c['enableCommand']('acceptSuggestion'),_0x7b675c['enableCommand']('discardSuggestion'),_0x7b675c['enableCommand']('acceptAllSuggestions'),_0x7b675c['enableCommand']('discardAllSuggestions'),_0x7b675c['enableCommand']('acceptSelectedSuggestions'),_0x7b675c['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1f2e52{static get['requires'](){return[_0x149ae5];}['init'](){const _0x1fa8fa=this['editor'],_0x57dbb8=_0x1fa8fa['plugins']['get']('TrackChangesEditing');_0x57dbb8['enableCommand']('shiftEnter'),_0x1fa8fa['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1fa8fa),{'priority':'high'}),_0x1fa8fa['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1fa8fa),{'priority':'high'}),_0x1fa8fa['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5d31f4,_0x43d60e,_0x629521)=>{_0x629521['options']['showSuggestionHighlights']&&de(_0x1fa8fa,{'showActiveMarker':!0x1})(_0x5d31f4,_0x43d60e,_0x629521);}),_0x57dbb8['descriptionFactory']['registerElementLabel']('softBreak',_0xde176b=>o(_0x1fa8fa['locale'],'ELEMENT_LINE_BREAK',_0xde176b));}}function de(_0x2f9aa6,{showActiveMarker:_0x3ef3be=!0x0}={}){return(_0x26c9bb,_0x111cf1,_0x3e5af2)=>{const _0x390d10=_0x2f9aa6['plugins']['get']('TrackChangesEditing');if(!_0x3e5af2['consumable']['test'](_0x111cf1['markerRange'],_0x26c9bb['name']))return;const _0x52eb26=_0x2f9aa6['model'];for(const _0x1a99c8 of _0x111cf1['markerRange']['getItems']()){if(!_0x1a99c8['is']('element','softBreak'))continue;const _0x3ee4e1='deletion'==_0x111cf1['markerName']['split'](':')[0x1]?'merge':'split',_0x1cb680=_0x3e5af2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3ee4e1}),_0x474841=_0x3e5af2['mapper']['toViewPosition'](_0x52eb26['createPositionBefore'](_0x1a99c8));_0x3ef3be&&_0x390d10['activeMarkers']['includes'](_0x111cf1['markerName'])&&_0x3e5af2['writer']['addClass']('ck-suggestion-marker--active',_0x1cb680),_0x3e5af2['writer']['insert'](_0x474841,_0x1cb680),_0x3e5af2['mapper']['bindElementToMarker'](_0x1cb680,_0x111cf1['markerName']);}};}class wt extends _0x1f2e52{['afterInit'](){const _0xebea=this['editor'],_0x1ada23=_0xebea['model'],_0x1f0335=_0xebea['locale'];if(!_0xebea['plugins']['has']('StandardEditingModeEditing'))return;const _0x17e0a9=_0xebea['plugins']['get']('TrackChangesEditing'),_0x1e6f8b='restrictedEditingException',_0x456948=_0xebea['commands']['get'](_0x1e6f8b);_0x17e0a9['enableCommand'](_0x1e6f8b,(_0x1cf42e,_0x361648={})=>{const _0x341fe3=_0x1ada23['document']['selection'];if(_0x341fe3['isCollapsed'])return void _0x1cf42e(_0x361648);const _0x1fa2fd=void 0x0!==_0x361648['forceValue']?_0x361648['forceValue']:!_0x456948['value'];_0x1ada23['change'](()=>{const _0x169488=Array['from'](_0x341fe3['getRanges']());for(const _0x5dcde7 of _0x169488){const _0x57b1d2=_0x1fa2fd?[_0x5dcde7]:io(_0x1e6f8b,_0x5dcde7,_0x1ada23);for(const _0x3dd785 of _0x57b1d2)_0x17e0a9['markInlineFormat'](_0x3dd785,{'commandName':_0x1e6f8b,'commandParams':[{'forceValue':_0x1fa2fd}]});}});}),_0x17e0a9['descriptionFactory']['registerDescriptionCallback'](_0xc3b69b=>{if('formatBlock'!=_0xc3b69b['type']&&'formatInline'!=_0xc3b69b['type'])return;const {data:_0x1f8b83}=_0xc3b69b;return _0x1f8b83&&_0x1f8b83['commandName']==_0x1e6f8b?_0x1f8b83['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f0335,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1f0335,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1f2e52{['afterInit'](){const _0x17c86b=this['editor'];if(!_0x17c86b['plugins']['has']('Style')||!_0x17c86b['plugins']['has']('DataSchema'))return;const _0x214794=_0x17c86b['plugins']['get']('TrackChangesEditing'),_0x2c7dd3=_0x17c86b['locale'],_0x4e6310=_0x17c86b['config']['get']('style')||{},_0x5c97e1=_0x17c86b['plugins']['get']('GeneralHtmlSupport'),_0x2fda7c=_0x17c86b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x17c86b['plugins']['get']('DataSchema'),_0x4e6310['definitions']);_0x214794['enableDefaultAttributesIntegration']('style');const _0x58ee1f=new Set();for(const _0x59509e of _0x2fda7c['block']){const _0x1b24cb=_0x5c97e1['getGhsAttributeNameForElement'](_0x59509e['element']);_0x58ee1f['add'](_0x1b24cb);}const _0x1ebc3b=new Set();for(const _0x34ef49 of _0x2fda7c['inline']){const _0x32dc3a=_0x5c97e1['getGhsAttributeNameForElement'](_0x34ef49['element']);_0x1ebc3b['add'](_0x32dc3a);for(const _0xc2cc45 of _0x34ef49['ghsAttributes'])_0x1ebc3b['add'](_0xc2cc45);}for(const _0x152347 of _0x58ee1f)_0x214794['registerBlockAttribute'](_0x152347),_0x214794['descriptionFactory']['registerAttributeLabel'](_0x152347,o(_0x2c7dd3,'FORMAT_STYLE'));for(const _0x30f8f6 of _0x1ebc3b)_0x214794['registerInlineAttribute'](_0x30f8f6),_0x214794['descriptionFactory']['registerAttributeLabel'](_0x30f8f6,o(_0x2c7dd3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d1adc=this['editor'],_0x447820=_0x2d1adc['locale'];_0x2d1adc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x536df7=>{if('formatBlock'!=_0x536df7['type']&&'formatInline'!=_0x536df7['type'])return;const {data:_0x462610}=_0x536df7;return _0x462610&&'style'===_0x462610['commandName']?_0x462610['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x447820,'*Set\x20format:*\x20%0',_0x462610['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x447820,'*Remove\x20format:*\x20%0',_0x462610['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1f2e52{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x458595){super(_0x458595),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5375d0=this['editor'],_0xb40c36=_0x5375d0['model']['document']['selection'];if(!_0x5375d0['plugins']['has']('TableEditing'))return;const _0x16aa27=_0x5375d0['locale'],_0xc64290=_0x5375d0['plugins']['get']('TrackChangesEditing'),_0x23ffad=_0x5375d0['plugins']['get']('TableUtils');_0xc64290['descriptionFactory']['registerElementLabel']('table',_0x4fafd9=>o(_0x16aa27,'ELEMENT_TABLE',_0x4fafd9)),this['_setupColumnsRowsFixing'](),_0xc64290['enableCommand']('insertTable'),_0xc64290['enableCommand']('selectTableRow'),_0xc64290['enableCommand']('selectTableColumn');for(const _0x54aa35 of['insertTableRowAbove','insertTableRowBelow']){const _0x3d2db0=_0x5375d0['commands']['get'](_0x54aa35);_0xc64290['enableCommand'](_0x54aa35,_0x241a8d=>{_0x5375d0['model']['change'](_0x5337c9=>{_0x241a8d();const _0x211539='above'===_0x3d2db0['order'],_0x2993cf=_0x23ffad['getSelectionAffectedTableCells'](_0xb40c36),_0x3af959=_0x23ffad['getRowIndexes'](_0x2993cf),_0x10e81d=_0x211539?_0x3af959['first']-0x1:_0x3af959['last']+0x1,_0x43b20b=_0x2993cf[0x0]['findAncestor']('table'),_0x4033c9=_0x23ffad['createTableWalker'](_0x43b20b,{'startRow':_0x10e81d,'endRow':_0x10e81d}),_0x339db3=Array['from'](_0x4033c9)['map'](_0xfff4f0=>_0x5337c9['createRangeOn'](_0xfff4f0['cell']));_0xc64290['markMultiRangeInsertion'](_0x339db3,'tableRow');});});}for(const _0x348fb7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1b449b=_0x5375d0['commands']['get'](_0x348fb7);_0xc64290['enableCommand'](_0x348fb7,_0x3db7f8=>{_0x5375d0['model']['change'](_0x4266e6=>{_0x3db7f8();const _0x55b5c2='left'===_0x1b449b['order'],_0x3a6733=_0x23ffad['getSelectionAffectedTableCells'](_0xb40c36),_0x49218c=_0x23ffad['getColumnIndexes'](_0x3a6733),_0x1c1a6d=_0x55b5c2?_0x49218c['first']-0x1:_0x49218c['last']+0x1,_0x389604=_0x3a6733[0x0]['findAncestor']('table'),_0x4a9df7=_0x23ffad['createTableWalker'](_0x389604,{'startRow':0x0,'column':_0x1c1a6d,'includeAllSlots':!0x1}),_0x5c80d9=Array['from'](_0x4a9df7)['map'](_0x544f1e=>_0x4266e6['createRangeOn'](_0x544f1e['cell']));_0xc64290['markMultiRangeInsertion'](_0x5c80d9,'tableColumn');});});}for(const _0x48a8de of['removeTableRow','removeTableColumn']){const _0x4e19f8=_0x48a8de['substr'](0xb),_0x7208a=_0x4e19f8['toLowerCase'](),_0x55edcc=_0x7208a['substr'](0x0,0x3)+'span',_0x529c2b='table'+_0x4e19f8,_0x1dbd50='min'+_0x4e19f8,_0x115e1c='max'+_0x4e19f8;_0xc64290['enableCommand'](_0x48a8de,()=>{_0x5375d0['model']['change'](_0x3da837=>{const _0x2dbe29=_0x23ffad['getSelectionAffectedTableCells'](_0xb40c36),_0x2c353d=_0x2dbe29[0x0]['findAncestor']('table');let _0x137a70;if('removeTableRow'==_0x48a8de){const _0x4b2a40=_0x23ffad['getRowIndexes'](_0x2dbe29);_0x137a70={'startRow':_0x4b2a40['first'],'endRow':_0x4b2a40['last'],'includeAllSlots':!0x0};}else{const _0x1dbe3e=_0x23ffad['getColumnIndexes'](_0x2dbe29);_0x137a70={'startColumn':_0x1dbe3e['first'],'endColumn':_0x1dbe3e['last'],'includeAllSlots':!0x0};}const _0x16d660=_0x23ffad['createTableWalker'](_0x2c353d,_0x137a70),_0x5f356d=Array['from'](_0x16d660)['map'](({cell:_0x59751e})=>_0x59751e),_0x3ce94f=Ee(_0x5f356d['filter'](_0x8a1fa1=>_0x8a1fa1['hasAttribute'](_0x55edcc))),_0x83cb39=Ee(_0x5f356d['filter'](_0x273437=>!_0x273437['hasAttribute'](_0x55edcc)))['map'](_0x36ed5a=>_0x3da837['createRangeOn'](_0x36ed5a)),_0x223adc=_0xc64290['markMultiRangeDeletion'](_0x83cb39,_0x529c2b);if(_0x223adc&&('tableRow'==_0x223adc['subType']||'tableColumn'==_0x223adc['subType'])){const _0x467622=this['_getSuggestionCoords'](_0x223adc);for(const _0x170aae of _0x3ce94f){const _0x3a560b=_0x3da837['createRangeOn'](_0x170aae),_0x127e6b=_0x23ffad['getCellLocation'](_0x170aae),_0x43d9a8=_0x170aae['getAttribute'](_0x55edcc)-0x1,_0x36b079=_0x467622[_0x1dbd50],_0x5e089e=_0x467622[_0x115e1c];_0x36b079<=_0x127e6b[_0x7208a]&&_0x127e6b[_0x7208a]+_0x43d9a8<=_0x5e089e&&_0x223adc['addRange'](_0x3a560b);}}});});}function _0x2eb943(_0x5f3421){const _0x1c147a=Array['from'](_0xb40c36['getRanges']())['map'](_0x546596=>_0x3c5a16['fromRange'](_0x546596));_0x5375d0['model']['change'](_0x1b3f8c=>{const _0x4b41e9=_0x1b3f8c['batch'];_0x5f3421=_0x5f3421['filter'](_0x256932=>'$graveyard'!=_0x256932['root']['rootName']),_0x1b3f8c['setSelection'](_0x5f3421),_0x5375d0['commands']['get']('removeTableRow')['refresh'](),_0x5375d0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5375d0['model']['enqueueChange'](()=>{_0x5375d0['model']['enqueueChange'](_0x4b41e9,_0x54797f=>{const _0xb50d3=_0x1c147a['filter'](_0x218727=>'$graveyard'!=_0x218727['root']['rootName']);_0xb50d3['length']>0x0&&_0x54797f['setSelection'](_0xb50d3);for(const _0x2cad46 of _0x1c147a)_0x2cad46['detach']();});});});}function _0x3486c2(_0x29584b){_0x5375d0['model']['change'](_0x3cb0a9=>{const _0x59e2d7=Array['from'](_0xb40c36['getRanges']())['map'](_0x44c8a3=>_0x3c5a16['fromRange'](_0x44c8a3)),_0x52824b=[];for(const _0x440ab7 of _0x29584b)for(const _0x438404 of _0x440ab7['getItems']({'shallow':!0x0}))_0x52824b['push'](_0x438404);for(const _0x131184 of _0x52824b)'$graveyard'!=_0x131184['root']['rootName']&&(_0x3cb0a9['setSelection'](_0x3cb0a9['createPositionAt'](_0x131184,0x0)),_0x5375d0['commands']['get']('removeTableColumn')['refresh'](),_0x5375d0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x129758=_0x59e2d7['filter'](_0x5e97fa=>'$graveyard'!=_0x5e97fa['root']['rootName']);_0x129758['length']>0x0&&_0x3cb0a9['setSelection'](_0x129758);for(const _0x241822 of _0x59e2d7)_0x241822['detach']();});}function _0x345a72(_0x3c3bb0,_0x22c01c){return _0x22c01c['every'](_0x118b67=>_0x3c3bb0['some'](_0x105c15=>_0x105c15['end']['isEqual'](_0x118b67['start'])||_0x118b67['end']['isEqual'](_0x105c15['start'])));}function _0x5e16a1(_0x50def7,_0x47b7a0){return!_0x50def7['some'](_0x2c7fff=>_0x47b7a0['some'](_0x580af3=>_0x2c7fff['isIntersecting'](_0x580af3)))&&_0x50def7['some'](_0xa0a0a4=>_0x47b7a0['some'](_0x54180a=>_0xa0a0a4['end']['isTouching'](_0x54180a['start'])));}_0x5375d0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd31648,_0xa1a26c,_0x2b280b)=>{if(!_0x2b280b['options']['showSuggestionHighlights'])return;const _0xc74e16=_0xa1a26c['item'];if(!_0xc74e16)return;const _0x2ca91a=_0x2b280b['mapper']['toViewElement'](_0xc74e16);function _0x341e8c(_0x289cd1){return Array['isArray'](_0x289cd1)?_0x289cd1:[_0x289cd1];}_0x2ca91a&&'tableCell'===_0xc74e16['name']&&_0x5bb02f(_0x2ca91a,_0x2b280b['writer'],(_0x116f91,_0x2e87f0,_0x11c291)=>_0x11c291['addClass'](_0x341e8c(_0x2e87f0['classes']),_0x116f91),(_0xfa26e0,_0x492ca6,_0x3ee979)=>_0x3ee979['removeClass'](_0x341e8c(_0x492ca6['classes']),_0xfa26e0));},{'priority':'highest'}),_0xc64290['descriptionFactory']['registerDescriptionCallback'](_0x430619=>{if('insertion'!=_0x430619['type']&&'deletion'!=_0x430619['type'])return;const _0x210704=_0x430619['getContainedElement']();if(null!=_0x210704&&_0x210704['is']('element','table')){if('insertion'==_0x430619['type']){const _0x2de747=_0x430619['getItems']()['filter'](_0x207466=>_0x207466['is']('$textProxy'))['map'](_0x1e19c3=>_0x1e19c3['data']);if(_0x2de747['length'])return{'type':'insertion','content':o(_0x16aa27,'*Insert:*\x20%0',o(_0x16aa27,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2de747['join']('\x20')+'\x22'))};}if('deletion'==_0x430619['type']){const _0xd48c29=_0x430619['getItems']()['filter'](_0x2b7659=>_0x2b7659['is']('$textProxy'))['map'](_0x31b9ad=>_0x31b9ad['data']);if(_0xd48c29['length'])return{'type':'deletion','content':o(_0x16aa27,'*Remove:*\x20%0',o(_0x16aa27,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xd48c29['join']('\x20')+'\x22'))};}}}),_0xc64290['descriptionFactory']['registerDescriptionCallback'](_0x19373a=>{if('tableRow'==_0x19373a['subType']){const _0x41d623=_0x19373a['getItems']()['filter'](_0x5d0427=>_0x5d0427['is']('$textProxy'))['map'](_0x4d57c4=>_0x4d57c4['data']),_0x38a745=this['_getSuggestionCoords'](_0x19373a),_0x517703=_0x38a745['maxRow']-_0x38a745['minRow']+0x1;if('insertion'==_0x19373a['type'])return _0x41d623['length']?{'type':'insertion','content':o(_0x16aa27,'*Insert:*\x20%0',o(_0x16aa27,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x517703,'\x22'+_0x41d623['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x16aa27,'*Insert:*\x20%0',o(_0x16aa27,'ELEMENT_TABLE_ROW',_0x517703))};if('deletion'==_0x19373a['type'])return _0x41d623['length']?{'type':'deletion','content':o(_0x16aa27,'*Remove:*\x20%0',o(_0x16aa27,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x517703,'\x22'+_0x41d623['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x16aa27,'*Remove:*\x20%0',o(_0x16aa27,'ELEMENT_TABLE_ROW',_0x517703))};}if('tableColumn'==_0x19373a['subType']){const _0x2d147b=_0x19373a['getItems']()['filter'](_0x5b41d7=>_0x5b41d7['is']('$textProxy'))['map'](_0x35e733=>_0x35e733['data']),_0x51a603=this['_getSuggestionCoords'](_0x19373a),_0x371276=_0x51a603['maxColumn']-_0x51a603['minColumn']+0x1;if('insertion'==_0x19373a['type'])return _0x2d147b['length']?{'type':'insertion','content':o(_0x16aa27,'*Insert:*\x20%0',o(_0x16aa27,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x371276,'\x22'+_0x2d147b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x16aa27,'*Insert:*\x20%0',o(_0x16aa27,'ELEMENT_TABLE_COLUMN',_0x371276))};if('deletion'==_0x19373a['type'])return _0x2d147b['length']?{'type':'deletion','content':o(_0x16aa27,'*Remove:*\x20%0',o(_0x16aa27,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x371276,'\x22'+_0x2d147b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x16aa27,'*Remove:*\x20%0',o(_0x16aa27,'ELEMENT_TABLE_COLUMN',_0x371276))};}}),_0xc64290['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2eb943),_0xc64290['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2eb943),_0xc64290['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3486c2),_0xc64290['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3486c2),_0xc64290['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x345a72),_0xc64290['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x345a72),_0xc64290['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5e16a1),_0xc64290['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5e16a1);}['_acceptFormatSuggestionCallbackFactory'](){const _0x198b4d=this['editor'],_0x1b07ab=_0x198b4d['model']['document']['selection'];return(_0x2e4c05,_0x363d9a)=>{_0x198b4d['model']['change'](_0x2aeec7=>{const {commandName:_0x99e6a9,commandParams:_0x1250f4}=_0x363d9a;let _0x3304dd=_0x2e4c05[0x0]['end']['nodeBefore'];_0x1250f4&&_0x1250f4[0x0]&&!0x1===_0x1250f4[0x0]['forceValue']&&(_0x3304dd=_0x2e4c05[0x0]['start']['nodeAfter']);const _0x6199ac=_0x2aeec7['createRangeIn'](_0x3304dd);if('$graveyard'==_0x6199ac['root']['rootName'])return;const _0x3dbaad=Array['from'](_0x1b07ab['getRanges']())['map'](_0x1831e2=>_0x3c5a16['fromRange'](_0x1831e2));_0x2aeec7['setSelection'](_0x6199ac),_0x198b4d['commands']['get'](_0x99e6a9)['refresh'](),_0x1250f4['push']({'forceDefaultExecution':!0x0}),_0x198b4d['execute'](_0x99e6a9,..._0x1250f4);const _0x113e04=_0x3dbaad['filter'](_0x20c84c=>'$graveyard'!=_0x20c84c['root']['rootName']);_0x113e04['length']>0x0&&_0x2aeec7['setSelection'](_0x113e04);for(const _0x596c10 of _0x3dbaad)_0x596c10['detach']();});};}['_getCoordsForCells'](_0x58438c){const _0x125d8c=this['editor']['plugins']['get']('TableUtils');let _0x437669=Number['MAX_SAFE_INTEGER'],_0x5210d5=Number['MIN_SAFE_INTEGER'],_0x16ef02=Number['MAX_SAFE_INTEGER'],_0x51d160=Number['MIN_SAFE_INTEGER'];for(const _0x235268 of _0x58438c){if('$graveyard'==_0x235268['root']['rootName'])continue;const {row:_0x361b5e,column:_0x3d4d88}=_0x125d8c['getCellLocation'](_0x235268),_0x56d992=_0x235268['hasAttribute']('rowspan')?_0x235268['getAttribute']('rowspan')-0x1:0x0,_0x48a9ab=_0x235268['hasAttribute']('colspan')?_0x235268['getAttribute']('colspan')-0x1:0x0;_0x437669=_0x361b5e<_0x437669?_0x361b5e:_0x437669,_0x5210d5=_0x361b5e+_0x56d992>_0x5210d5?_0x361b5e+_0x56d992:_0x5210d5,_0x16ef02=_0x3d4d88<_0x16ef02?_0x3d4d88:_0x16ef02,_0x51d160=_0x3d4d88+_0x48a9ab>_0x51d160?_0x3d4d88+_0x48a9ab:_0x51d160;}return{'minRow':_0x437669,'maxRow':_0x5210d5,'minColumn':_0x16ef02,'maxColumn':_0x51d160};}['_setupColumnsRowsFixing'](){const _0x1e12f0=this['editor'],_0x5ab046=_0x1e12f0['plugins']['get']('TrackChangesEditing'),_0x3c441d=_0x1e12f0['plugins']['get']('TableUtils');_0x1e12f0['model']['document']['on']('change:data',()=>{const _0x6353cc=Array['from'](_0x1e12f0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2339a3,data:_0x242362}of _0x6353cc){const {group:_0x400ddd,id:_0xfe25f7,subType:_0x12aa04}=_0x5ab046['_splitMarkerName'](_0x2339a3);if('suggestion'!=_0x400ddd)continue;if(null!=_0x242362['oldRange'])continue;const _0x4e2987=_0x5ab046['getSuggestion'](_0xfe25f7);this['_tablePostFixingSubtypes']['includes'](_0x12aa04)&&this['_tableSuggestions']['add'](_0x4e2987);}},{'priority':'low'});const _0x4ed017=(_0x457631,_0x112add)=>{let _0x4f33f5=!0x1;const _0x3dccf5=_0x112add['createRangeOn'](_0x457631),_0x247758=_0x457631['findAncestor']('table'),_0x3d47d4=_0x3c441d['getCellLocation'](_0x457631);for(const _0x20fece of this['_tableSuggestions']){const _0x31d920=_0x20fece['subType'],_0x3acc5a=_0x31d920['startsWith']('tablePaste'),_0x30fa4d=_0x31d920['substr'](_0x3acc5a?0xa:0x5),_0x1f3f3b=_0x30fa4d['toLowerCase'](),_0x2c78a6=_0x1f3f3b['substr'](0x0,0x3)+'span',_0x526e7b='min'+_0x30fa4d,_0x42bdea='max'+_0x30fa4d;if(!_0x20fece['isInContent'])continue;if(_0x247758!=_0x20fece['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x20fece['isIntersectingWithRange'](_0x3dccf5))continue;const _0x12d8fb=_0x457631['hasAttribute'](_0x2c78a6)?_0x457631['getAttribute'](_0x2c78a6)-0x1:0x0,_0x11a29a=this['_getSuggestionCoords'](_0x20fece),_0x40abb2=_0x11a29a[_0x526e7b],_0x5294ce=_0x11a29a[_0x42bdea];_0x40abb2<=_0x3d47d4[_0x1f3f3b]&&_0x3d47d4[_0x1f3f3b]+_0x12d8fb<=_0x5294ce&&(_0x20fece['addRange'](_0x3dccf5),_0x4f33f5=!0x0);}return _0x4f33f5;};_0x1e12f0['model']['document']['registerPostFixer'](_0x397b36=>{let _0x3adbde=!0x1;for(const _0x56455c of _0x1e12f0['model']['document']['differ']['getChanges']())if('insert'==_0x56455c['type']){if('tableRow'==_0x56455c['name']){for(const _0x45b94a of _0x56455c['position']['nodeAfter']['getChildren']())_0x3adbde=_0x3adbde||_0x4ed017(_0x45b94a,_0x397b36);}else'tableCell'==_0x56455c['name']&&(_0x3adbde=_0x3adbde||_0x4ed017(_0x56455c['position']['nodeAfter'],_0x397b36));}return _0x3adbde;});}['_getSuggestionCoords'](_0x392666){return this['_getCoordsForCells'](_0x392666['getRanges']()['map'](_0x4389a7=>_0x4389a7['start']['nodeAfter']));}}function Ee(_0x4b1bd3){return Array['from'](new Set(_0x4b1bd3)['values']());}class St extends _0x1f2e52{static get['requires'](){return[jt];}['afterInit'](){const _0x305b94=this['editor'],_0x371dc5=_0x305b94['model']['document']['selection'],_0x5a301a=_0x305b94['locale'];if(!_0x305b94['plugins']['has']('TableEditing'))return;const _0x4599a1=_0x305b94['plugins']['get']('TrackChangesEditing'),_0x519727=_0x305b94['plugins']['get']('TableUtils'),_0x36eb09=_0x305b94['plugins']['get'](jt);_0x36eb09['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4599a1['enableCommand']('mergeTableCells',()=>{const _0x4d0648=_0x519727['getSelectionAffectedTableCells'](_0x305b94['model']['document']['selection']);_0x305b94['model']['change'](()=>{_0x4599a1['markMultiRangeBlockFormat'](_0x4d0648,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x305b94['commands']['get']('mergeTableCells')['on']('execute',(_0x227272,_0x3a75d9)=>{_0x305b94['commands']['get']('trackChanges')['value']&&(_0x3a75d9['length']>0x0&&_0x3a75d9[_0x3a75d9['length']-0x1]&&_0x3a75d9[_0x3a75d9['length']-0x1]['forceDefaultExecution']||_0x4599a1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x227272['stop']());},{'priority':'highest'});for(const _0x6ddcef of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x317188=_0x305b94['commands']['get'](_0x6ddcef);_0x4599a1['enableCommand'](_0x6ddcef,()=>{const _0x59a0ab=_0x305b94['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3274b9=>_0x3274b9['is']('element','tableCell')),_0x449135=_0x317188['value'];_0x305b94['model']['change'](()=>{_0x4599a1['markMultiRangeBlockFormat']([_0x59a0ab,_0x449135],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x149106 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4f530b=_0x305b94['commands']['get'](_0x149106);_0x4599a1['enableCommand'](_0x149106,()=>{const _0x2921a3=_0x519727['getSelectionAffectedTableCells'](_0x305b94['model']['document']['selection'])[0x0],_0x21593b=_0x2921a3['findAncestor']('table'),{column:_0x7be9d,row:_0x4d2711}=_0x519727['getCellLocation'](_0x2921a3);let _0x3769be=[];if('horizontally'==_0x4f530b['direction']){const _0x6de728=_0x519727['createTableWalker'](_0x21593b,{'startRow':_0x4d2711,'endRow':_0x4d2711,'includeAllSlots':!0x0});_0x3769be=Array['from'](_0x6de728)['map'](_0x1268a9=>_0x1268a9['cell']);}else{const _0x53ed3d=_0x519727['createTableWalker'](_0x21593b,{'column':_0x7be9d,'includeAllSlots':!0x0});_0x3769be=Array['from'](_0x53ed3d)['map'](_0x23fbdf=>_0x23fbdf['cell']);}_0x305b94['model']['change'](_0x944628=>{_0x4599a1['markBlockFormat'](_0x944628['createRangeOn'](_0x2921a3),{'commandName':_0x149106,'commandParams':[]},_0x3769be,_0x149106);});});}_0x4599a1['descriptionFactory']['registerDescriptionCallback'](_0x207fd8=>{if('formatBlock'!=_0x207fd8['type']&&'formatInline'!=_0x207fd8['type'])return;const {data:_0x307af6}=_0x207fd8;return _0x307af6&&'mergeTableCells'==_0x307af6['commandName']?{'type':'format','content':o(_0x5a301a,'*Merge\x20cells*')}:void 0x0;}),_0x4599a1['descriptionFactory']['registerDescriptionCallback'](_0x3922d2=>{if('formatBlock'!=_0x3922d2['type']&&'formatInline'!=_0x3922d2['type'])return;const {data:_0x114fa0}=_0x3922d2;return _0x114fa0?'splitTableCellVertically'==_0x114fa0['commandName']?{'type':'format','content':o(_0x5a301a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x114fa0['commandName']?{'type':'format','content':o(_0x5a301a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x559464=_0x36eb09['_acceptFormatSuggestionCallbackFactory']();for(const _0x964be0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4599a1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x964be0,'accept',_0x559464);for(const _0x2a85c9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4599a1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a85c9,'accept',_0x559464);_0x4599a1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4111e3=>{_0x305b94['model']['change'](_0x14bcab=>{const _0x41cae6=Array['from'](_0x371dc5['getRanges']())['map'](_0x53a7b1=>_0x3c5a16['fromRange'](_0x53a7b1));_0x14bcab['setSelection'](_0x4111e3),_0x305b94['commands']['get']('mergeTableCells')['refresh'](),_0x305b94['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x28dca6=_0x41cae6['filter'](_0x16fefb=>'$graveyard'!=_0x16fefb['root']['rootName']);_0x28dca6['length']>0x0&&_0x14bcab['setSelection'](_0x28dca6);for(const _0x281626 of _0x41cae6)_0x281626['detach']();});});for(const _0x1f906a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x551e68=_0x305b94['commands']['get'](_0x1f906a);_0x551e68['on']('set:isEnabled',(_0xf8e296,_0x40c1e,_0x2710b3)=>{if(_0x2710b3){const _0x5a092e=_0x305b94['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2def1b=>_0x2def1b['is']('element','tableCell'));this['_areMergableCells'](_0x551e68['value'],_0x5a092e)||(_0xf8e296['return']=!0x1,_0xf8e296['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x189536=this['editor']['commands']['get']('mergeTableCells'),_0x52d286=this['editor']['plugins']['get']('TableUtils');if(!_0x189536['isEnabled'])return!0x1;const _0x5a430c=_0x52d286['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4daee4 of _0x5a430c)for(const _0x16c5e8 of _0x5a430c)if(_0x4daee4!=_0x16c5e8&&!this['_areMergableCells'](_0x4daee4,_0x16c5e8))return!0x1;return!0x0;}['_areMergableCells'](_0x22830e,_0x415433){const _0x556572=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aaabe=this['editor']['model']['createRangeOn'](_0x22830e),_0x1eee55=this['editor']['model']['createRangeOn'](_0x415433),_0x490db8=new Set(),_0x4a7bb2=new Set();for(const _0x4bdc01 of _0x556572['getSuggestions']())if(('insertion'==_0x4bdc01['type']||'deletion'==_0x4bdc01['type']||'mergeTableCells'==_0x4bdc01['subType'])&&_0x4bdc01['isInContent']){for(const _0x39b713 of _0x4bdc01['getRanges']())_0x39b713['containsRange'](_0x1aaabe,!0x0)&&_0x490db8['add'](_0x4bdc01['type']+':'+_0x4bdc01['author']['id']),_0x39b713['containsRange'](_0x1eee55,!0x0)&&_0x4a7bb2['add'](_0x4bdc01['type']+':'+_0x4bdc01['author']['id']);}if(_0x490db8['size']!=_0x4a7bb2['size'])return!0x1;for(const _0x203cf8 of _0x490db8)if(!_0x4a7bb2['has'](_0x203cf8))return!0x1;return!0x0;}}class At extends _0x1f2e52{static get['requires'](){return[jt];}['afterInit'](){const _0xe28c9b=this['editor'];if(!_0xe28c9b['plugins']['has']('TableEditing'))return;const _0x4dc897=_0xe28c9b['locale'],_0x5b27a2=_0xe28c9b['plugins']['get']('TrackChangesEditing');_0x5b27a2['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5b27a2['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5b27a2['registerBlockAttribute']('headingRows'),_0x5b27a2['registerBlockAttribute']('headingColumns'),_0x5b27a2['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4dc897,'FORMAT_HEADER_ROW')),_0x5b27a2['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4dc897,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48734=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49b65=this['editor']['plugins']['get']('TableUtils'),_0xa70841=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3c5502({showActiveMarker:_0x14aa2b=!0x0,setDataAttribute:_0x365eb2=!0x0}={}){return(_0x529dd0,_0x477bc8,_0x2c3004)=>{const {type:_0x409af0,id:_0x5c4f3b}=_0x48734['_splitMarkerName'](_0x477bc8['markerName']),_0x57eb70=_0x48734['getSuggestion'](_0x5c4f3b),_0x3babf2=_0x57eb70['data'];if('formatBlock'!=_0x57eb70['type']||!_0x3babf2||'setTableColumnHeader'!=_0x3babf2['commandName'])return;if(_0x477bc8['item'])return void _0x529dd0['stop']();if(!_0x2c3004['consumable']['consume'](_0x477bc8['markerRange'],_0x529dd0['name']))return;const _0x1d7cf7=_0x477bc8['markerRange']['start']['nodeAfter'],_0x2c00f6=_0x477bc8['markerRange']['end']['nodeBefore'],_0x31a190=_0x1d7cf7['parent']['parent'],{column:_0x23b134}=_0x49b65['getCellLocation'](_0x1d7cf7),{column:_0x5b63f2}=_0x49b65['getCellLocation'](_0x2c00f6);for(let _0x43054b=_0x23b134;_0x43054b<=_0x5b63f2;_0x43054b++){const _0x232aa8=_0x49b65['createTableWalker'](_0x31a190,{'column':_0x43054b,'includeAllSlots':!0x1});for(const _0xbbf0d3 of _0x232aa8){const _0x593c04=_0xbbf0d3['cell'],_0x557cb8=_0x2c3004['mapper']['toViewElement'](_0x593c04);_0x2c3004['writer']['addClass']('ck-suggestion-marker-'+_0x409af0,_0x557cb8),_0x365eb2&&_0x2c3004['writer']['setAttribute']('data-suggestion',_0x5c4f3b,_0x557cb8),_0x2c3004['mapper']['bindElementToMarker'](_0x557cb8,_0x477bc8['markerName']),_0x14aa2b&&(_0x48734['activeMarkers']['includes'](_0x477bc8['markerName'])?_0x2c3004['writer']['addClass']('ck-suggestion-marker--active',_0x557cb8):_0x2c3004['writer']['removeClass']('ck-suggestion-marker--active',_0x557cb8));}}};}_0x48734['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xa70841),_0x48734['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xa70841),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c5502(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x74303f,_0x58e2e,_0xabe02f)=>{_0xabe02f['options']['showSuggestionHighlights']&&_0x3c5502({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x74303f,_0x58e2e,_0xabe02f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1f466e,_0x5d5268,_0xb33ea)=>{const {type:_0x196dfb,id:_0x4ca91d}=_0x48734['_splitMarkerName'](_0x5d5268['markerName']),_0x3b7c17=_0x48734['getSuggestion'](_0x4ca91d),_0x459c84=_0x3b7c17['data'];if('formatBlock'!=_0x3b7c17['type']||!_0x459c84||'setTableColumnHeader'!=_0x459c84['commandName'])return;const _0x11b4cf=_0xb33ea['mapper']['markerNameToElements'](_0x5d5268['markerName']);if(_0x11b4cf){for(const _0xbfd6ef of _0x11b4cf)_0xb33ea['writer']['removeClass']('ck-suggestion-marker-'+_0x196dfb,_0xbfd6ef),_0xb33ea['writer']['removeClass']('ck-suggestion-marker--active',_0xbfd6ef),_0xb33ea['writer']['removeAttribute']('data-suggestion',_0xbfd6ef),_0xb33ea['mapper']['unbindElementFromMarkerName'](_0xbfd6ef,_0x5d5268['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bf36d=this['editor'],_0x424328=_0x1bf36d['locale'];function _0x22897e(_0x133e51){return{'type':'format','content':o(_0x424328,'*Format:*\x20%0',_0x133e51)};}_0x1bf36d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44d39c=>{if('formatBlock'!=_0x44d39c['type'])return;const {data:_0x3c4d3d}=_0x44d39c;if(_0x3c4d3d){if('setTableRowHeader'==_0x3c4d3d['commandName']){const _0x4384b5=_0x3c4d3d['commandParams'][0x0]['forceValue'];return _0x22897e(o(_0x424328,_0x4384b5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3c4d3d['commandName']){const _0x186a1e=_0x3c4d3d['commandParams'][0x0]['forceValue'];return _0x22897e(o(_0x424328,_0x186a1e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x526d62=>[_0x526d62,null]));class It extends _0x1f2e52{static get['requires'](){return[jt];}['afterInit'](){const _0x4e8d5c=this['editor'];if(!_0x4e8d5c['plugins']['has']('TableClipboard'))return;const _0x2f0e91=_0x4e8d5c['plugins']['get']('TrackChangesEditing'),_0x3f6c82=_0x4e8d5c['plugins']['get']('TableUtils'),_0x5b6086=_0x4e8d5c['plugins']['get'](jt),_0x4e07ef=_0x4e8d5c['plugins']['get']('TableClipboard');_0x5b6086['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4e8d5c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4e8d5c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x46a50c=null;_0x4e8d5c['model']['on']('insertContent',(_0x1c4339,_0x1f4358)=>{const [_0x15645e,_0x1878f0]=_0x1f4358,_0x547129=_0x1f4358[_0x1f4358['length']-0x1];_0x547129&&_0x547129['forceDefaultExecution']||_0x2f0e91['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x532394,_0x1463a8,_0x1abd2c,_0x3f2745,_0x90825d){if(_0x1463a8&&!_0x1463a8['is']('documentSelection'))return!0x1;const _0x2aa158=_0x90825d['getTableIfOnlyTableInContent'](_0x532394,_0x1abd2c);if(!_0x2aa158||!he(_0x2aa158,void 0x0,_0x3f2745))return!0x1;const _0x1262c6=_0x3f2745['getSelectionAffectedTableCells'](_0x1abd2c['document']['selection']);if(!_0x1262c6['length'])return!0x1;const _0x154e12=_0x1262c6[0x0]['findAncestor']('table'),_0x245e8f=_0x3f2745['getRowIndexes'](_0x1262c6),_0x562492=_0x3f2745['getColumnIndexes'](_0x1262c6),_0x533f96={'startRow':_0x245e8f['first'],'endRow':_0x245e8f['last'],'startColumn':_0x562492['first'],'endColumn':_0x562492['last']};return 0x1==_0x1262c6['length']&&(_0x533f96['endRow']+=_0x3f2745['getRows'](_0x2aa158)-0x1,_0x533f96['endColumn']+=_0x3f2745['getColumns'](_0x2aa158)-0x1),he(_0x154e12,_0x533f96,_0x3f2745);}(_0x15645e,_0x1878f0,_0x4e8d5c['model'],_0x3f6c82,_0x4e07ef)&&(_0x1c4339['stop'](),_0x46a50c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4e8d5c['model']['change'](()=>{_0x4e8d5c['model']['insertContent'](_0x1f4358[0x0],_0x1f4358[0x1],_0x1f4358[0x2],{'forceDefaultExecution':!0x0});const _0x217d84=_0x549ca5(),{rowInsertionRanges:_0x31c73f,columnInsertionRanges:_0x364387,insertionRanges:_0x477be2,deletionRanges:_0x4e66ed,cells:_0x533ca9}=_0x46a50c;_0x31c73f['length']&&_0x2f0e91['markMultiRangeInsertion'](_0x31c73f,'tablePasteRow',{'tablePasteChainId':_0x217d84}),_0x364387['length']&&_0x2f0e91['markMultiRangeInsertion'](_0x364387,'tablePasteColumn',{'tablePasteChainId':_0x217d84}),_0x477be2['length']&&(_0x2f0e91['markMultiRangeInsertion'](_0x477be2,'tablePaste',{'tablePasteChainId':_0x217d84,'skipNestingCheck':!0x0}),_0x477be2['forEach'](_0x59598a=>_0x59598a['detach']?.())),_0x4e66ed['length']&&(_0x2f0e91['markMultiRangeDeletion'](_0x4e66ed,'tablePaste',{'tablePasteChainId':_0x217d84,'skipNestingCheck':!0x0}),_0x4e66ed['forEach'](_0x3b7523=>_0x3b7523['detach']?.()));const _0x5339cd=_0x2f0e91['markMultiRangeBlockFormat'](_0x533ca9['map'](({element:_0xb72ed2})=>_0xb72ed2),{'formatGroupId':_0x549ca5()},[],'tablePasteCell',{'tablePasteChainId':_0x217d84});if(_0x5339cd){const _0xf08859=_0x5339cd['getMarkers'](),_0x57e16a=[];for(const {element:_0x2d94b2,attributes:_0x192825}of _0x533ca9){if(!_0x192825)continue;const _0x351ecd=_0x4e8d5c['model']['createRangeOn'](_0x2d94b2),_0x2f338c=_0xf08859['find'](_0x5063da=>_0x5063da['getRange']()['isEqual'](_0x351ecd));_0x2f338c&&_0x57e16a['push']([_0x2f338c['name'],_0x192825]);}_0x57e16a['length']&&_0x5339cd['setAttribute']('markerAttributes',Object['fromEntries'](_0x57e16a));}_0x46a50c=null;}));},{'priority':_0x3ee9e9['high']+0xa}),_0x4e8d5c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x425da8,_0x18e8f4)=>{const [_0x5bbf16,_0xf2a5f1,,_0x4b6c79]=_0x18e8f4;if(!_0x46a50c)return;_0x425da8['stop']();const _0x59f1f4=_0x5bbf16['cell'],_0x11484a=_0xf2a5f1,_0x30bcaf=Pe(_0x59f1f4),_0x1cb04b=Pe(_0x11484a);_0x425da8['return']=_0x59f1f4;let _0x4db90c=null,_0x3ee791=null;if(_0x1cb04b||_0x30bcaf){if(_0x30bcaf&&!_0x1cb04b){_0x4b6c79['remove'](_0x59f1f4['getChild'](0x0));for(const _0x4f3af0 of Array['from'](_0x11484a['getChildren']()))_0x4b6c79['insert'](_0x4f3af0,_0x59f1f4,'end');const _0x1012fc=_0x46a50c['rowInsertionIndexes']['includes'](_0x5bbf16['row']),_0x3a34bd=_0x46a50c['columnInsertionIndexes']['includes'](_0x5bbf16['column']);_0x1012fc||_0x3a34bd||(_0x4db90c=_0x3c5a16['fromRange'](_0x4b6c79['createRangeIn'](_0x59f1f4)));}else _0x1cb04b&&!_0x30bcaf&&(_0x3ee791=_0x4b6c79['createRangeIn'](_0x59f1f4));}else{const _0x1915db=_0x4b6c79['createElement']('tableCellSuggestion'),_0x407020=_0x4b6c79['createElement']('tableCellSuggestion');_0x4b6c79['wrap'](_0x4b6c79['createRangeIn'](_0x59f1f4),_0x407020),_0x4b6c79['insert'](_0x1915db,_0x59f1f4,0x0);for(const _0x5f289c of Array['from'](_0x11484a['getChildren']()))_0x4b6c79['insert'](_0x5f289c,_0x1915db,'end');_0x4db90c=_0x3c5a16['fromRange'](_0x4b6c79['createRangeOn'](_0x1915db)),_0x3ee791=_0x3c5a16['fromRange'](_0x4b6c79['createRangeOn'](_0x407020));}const _0x42cf79=Array['from'](_0x11484a['getAttributes']())['filter'](([_0x51f424])=>ge['includes'](_0x51f424));_0x46a50c['cells']['push']({'element':_0x59f1f4,'attributes':_0x42cf79['length']?Object['fromEntries'](_0x42cf79):null}),_0x4db90c&&_0x46a50c['insertionRanges']['push'](_0x4db90c),_0x3ee791&&_0x46a50c['deletionRanges']['push'](_0x3ee791);},{'priority':'high'}),_0x3f6c82['on']('insertColumns',(_0x4265fd,_0x37bb2e)=>{const [_0x3d1e86,_0x2953a5={}]=_0x37bb2e;if(!_0x46a50c)return;const _0x8aee75=_0x2953a5['at']||0x0,_0x3b5d26=_0x2953a5['columns']||0x1;_0x46a50c['columnInsertionIndexes']=new Array(_0x3b5d26)['fill'](_0x8aee75)['map']((_0x45b1cd,_0x27dc05)=>_0x45b1cd+_0x27dc05);for(const {cell:_0x5ea744}of _0x3f6c82['createTableWalker'](_0x3d1e86,{'startColumn':_0x8aee75,'endColumn':_0x8aee75+_0x3b5d26-0x1}))_0x46a50c['columnInsertionRanges']['push'](_0x4e8d5c['model']['createRangeOn'](_0x5ea744));},{'priority':'low'}),_0x3f6c82['on']('insertRows',(_0x2cc49f,_0x3a65e9)=>{const [_0x72be88,_0x3bf2c5={}]=_0x3a65e9;if(!_0x46a50c)return;const _0x2063f6=_0x3bf2c5['at']||0x0,_0x3f0ae8=_0x3bf2c5['rows']||0x1;_0x46a50c['rowInsertionIndexes']=new Array(_0x3f0ae8)['fill'](_0x2063f6)['map']((_0x79615d,_0x3a5ec3)=>_0x79615d+_0x3a5ec3);for(const {cell:_0xbe218d}of _0x3f6c82['createTableWalker'](_0x72be88,{'startRow':_0x2063f6,'endRow':_0x2063f6+_0x3f0ae8-0x1}))_0x46a50c['rowInsertionRanges']['push'](_0x4e8d5c['model']['createRangeOn'](_0xbe218d));},{'priority':'low'}),_0x2f0e91['descriptionFactory']['registerDescriptionCallback'](_0x13e38b=>{if(_0x13e38b['subType']&&_0x13e38b['subType']['startsWith']('tablePaste'))return _0x13e38b['previous']?{}:{'type':'insertion','content':o(_0x4e8d5c['locale'],'*Replace\x20table\x20cells*')};});const _0xe594f8=()=>!0x1;for(const _0x1f99d4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2f0e91['_suggestionFactory']['registerCustomCallback']('insertion',_0x1f99d4,'join',_0xe594f8),_0x2f0e91['_suggestionFactory']['registerCustomCallback']('deletion',_0x1f99d4,'join',_0xe594f8),_0x2f0e91['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f99d4,'join',_0xe594f8);_0x2f0e91['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xe594f8),_0x2f0e91['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x41b0eb,_0x14e644,_0x2397d2)=>{const _0x8c66fa=_0x41b0eb['map'](_0x1a3616=>_0x1a3616['getContainedElement']())['filter'](_0x450dca=>_0x450dca),_0x4a2964=new Map(_0x8c66fa['map'](_0x938544=>[_0x938544,null]));if(_0x46a50c){for(const {element:_0x40e04b,attributes:_0x11ef55}of _0x46a50c['cells'])_0x11ef55&&_0x4a2964['set'](_0x40e04b,_0x11ef55);}else{if(_0x2397d2&&_0x2397d2['markerAttributes'])for(const [_0x4769af,_0x2d1869]of Object['entries'](_0x2397d2['markerAttributes'])){const _0x49c61c=_0x4e8d5c['model']['markers']['get'](_0x4769af),_0x413d23=_0x49c61c?_0x49c61c['getRange']()['getContainedElement']():null;_0x413d23&&_0x4a2964['set'](_0x413d23,_0x2d1869);}}_0x4e8d5c['model']['change'](_0xec4b35=>{for(const [_0xd85647,_0x338749]of _0x4a2964)_0xec4b35['setAttributes']({...Ce,..._0x338749},_0xd85647);});});const _0x2ef03c=(_0x175f08,_0x2dc02b)=>{_0x2f0e91['_suggestionFactory']['registerCustomCallback'](_0x175f08,'tablePaste',_0x2dc02b,(_0xba8a7a,_0x4cb9b4,_0x557c1e)=>{_0x4e8d5c['model']['change'](_0x470603=>{const _0xfe7d3c=[];for(const _0x2a9f62 of _0xba8a7a){const _0x59f959=_0x2a9f62['start']['nodeAfter'];_0x59f959['is']('element','tableCellSuggestion')&&_0xfe7d3c['push'](_0x59f959);}_0x2f0e91['_suggestionFactory']['getSuggestionCallback'](_0x175f08,null,_0x2dc02b)(_0xba8a7a,_0x4cb9b4,_0x557c1e);for(const _0x28e6ff of _0xfe7d3c)'$graveyard'!=_0x28e6ff['root']['rootName']&&_0x470603['unwrap'](_0x28e6ff);});});};_0x2ef03c('insertion','accept'),_0x2ef03c('insertion','discard'),_0x2ef03c('deletion','accept'),_0x2ef03c('deletion','discard'),_0x2f0e91['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3275cb=>{const _0xad5c8e=_0x3275cb['map'](_0x5a1695=>_0x5a1695['getContainedElement']()),_0x1249b5=_0xad5c8e[0x0]['findAncestor']('table'),{minRow:_0xba2a48,maxRow:_0x58b26e}=_0x5b6086['_getCoordsForCells'](_0xad5c8e);_0x3f6c82['removeRows'](_0x1249b5,{'at':_0xba2a48,'rows':_0x58b26e-_0xba2a48+0x1});}),_0x2f0e91['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x40dd13=>{const _0x4a55da=_0x40dd13['map'](_0x1603be=>_0x1603be['getContainedElement']()),_0x4c120f=_0x4a55da[0x0]['findAncestor']('table'),{minColumn:_0x264007,maxColumn:_0x22bf65}=_0x5b6086['_getCoordsForCells'](_0x4a55da);_0x3f6c82['removeColumns'](_0x4c120f,{'at':_0x264007,'columns':_0x22bf65-_0x264007+0x1});});const _0x583647=(_0x41c3b0,_0x10e986)=>{if(!_0x10e986['subType']||!_0x10e986['subType']['startsWith']('tablePaste'))return;const _0x3e7d35=_0x10e986['attributes']['tablePasteChainId'],_0x4866d1=_0x2f0e91['getSuggestions']()['filter'](_0x513971=>_0x513971['isInContent']&&_0x513971['attributes']&&_0x513971['attributes']['tablePasteChainId']==_0x3e7d35);_0x4866d1['length']&&_0x10e986['getAllAdjacentSuggestions']()['length']!=_0x4866d1['length']&&_0x4866d1['reduce']((_0x11128b,_0x3c7273)=>(_0x11128b['next']=_0x3c7273,_0x3c7273['previous']=_0x11128b,_0x3c7273));};function _0x239e56(_0x50d7d7,_0x2fe1d1=!0x0){const {id:_0x3fe879}=_0x2f0e91['_splitMarkerName'](_0x50d7d7['markerName']),_0x4ee9d7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4d13=_0x2f0e91['activeMarkers']['includes'](_0x50d7d7['markerName']);return _0x4d13&&_0x4ee9d7['push']('ck-suggestion-marker--active'),{'classes':_0x4ee9d7,'attributes':{'data-suggestion':_0x3fe879},'priority':_0x4d13&&_0x2fe1d1?0xbc2:0xbb8};}_0x2f0e91['on']('suggestionLoaded',_0x583647,{'priority':'high'}),_0x2f0e91['on']('suggestionUnloaded',_0x583647,{'priority':'high'}),_0x4e8d5c['model']['document']['registerPostFixer'](()=>{let _0x23615a=!0x1;const _0x3836da=Array['from'](_0x4e8d5c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x464ddb,data:_0x2baf9d}of _0x3836da){const {group:_0x3f38f5,type:_0x4729ef,id:_0x4d26e5}=_0x2f0e91['_splitMarkerName'](_0x464ddb);if('suggestion'!=_0x3f38f5||'deletion'!=_0x4729ef||_0x2baf9d['oldRange'])continue;if(!_0x2f0e91['hasSuggestion'](_0x4d26e5))continue;const _0x51dfe4=_0x2f0e91['getSuggestion'](_0x4d26e5)['getRanges'](),_0x555ddb=_0x4e8d5c['plugins']['get']('Users')['me'];for(const _0x4d38aa of _0x2f0e91['getSuggestions']()){if(!_0x4d38aa['isInContent']||_0x4d38aa['author']!=_0x555ddb)continue;if('formatBlock'!=_0x4d38aa['type']||'tablePasteCell'!=_0x4d38aa['subType'])continue;if(_0x4d38aa['getRanges']()['every'](_0x3c0f7b=>_0x51dfe4['some'](_0x4fc353=>_0x4fc353['containsRange'](_0x3c0f7b,!0x0)))){for(const _0x222c3d of _0x4d38aa['getAllAdjacentSuggestions']())_0x222c3d['isInContent']&&(_0x222c3d['discard'](),_0x23615a=!0x0);}}}return _0x23615a;}),_0x4e8d5c['model']['document']['registerPostFixer'](_0x252b9a=>{const _0xebe6fb=_0x4e8d5c['commands']['get']('redo');if(!_0xebe6fb||!_0xebe6fb['_createdBatches']['has'](_0x252b9a['batch']))return!0x1;let _0x1d7376=!0x1;const _0x25d750=_0x4e8d5c['plugins']['get']('Users')['me'],_0x21ad1f=_0x4e8d5c['model']['document']['differ']['getChanges'](),_0x4d4cd4=Array['from'](_0x4e8d5c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3c1aa6,data:_0x605dc6})=>{const {group:_0x19bc25,subType:_0x152cf2,authorId:_0x38db10}=_0x2f0e91['_splitMarkerName'](_0x3c1aa6);return'suggestion'==_0x19bc25&&'tablePaste'==_0x152cf2&&_0x38db10==_0x25d750['id']&&!_0x605dc6['oldRange'];});for(const _0x48b18f of _0x21ad1f){if('insert'!=_0x48b18f['type']||'tableCellSuggestion'!=_0x48b18f['name']||0x1!=_0x48b18f['length'])continue;const _0x547b4d=_0x252b9a['createRange'](_0x48b18f['position'],_0x48b18f['position']['getShiftedBy'](0x1));if(!_0x4d4cd4['find'](({data:_0x3f315e})=>_0x3f315e['newRange']['isEqual'](_0x547b4d))){for(const {name:_0x2d496f,data:_0x10d04e}of _0x4d4cd4)if(_0x547b4d['containsRange'](_0x10d04e['newRange'])){_0x252b9a['updateMarker'](_0x2d496f,{'range':_0x547b4d}),_0x1d7376=!0x0;break;}}}return _0x1d7376;}),_0x4e8d5c['model']['document']['registerPostFixer'](_0x501cf0=>{let _0xbdad2b=!0x1;const _0x13e39c=_0x4e8d5c['plugins']['get']('Users')['me'],_0xa21b05=_0x2f0e91['getSuggestions']()['filter'](_0x121536=>_0x121536['isInContent']&&_0x121536['author']==_0x13e39c),_0x11867e=new Set(),_0x3b5e85=new Set();for(const _0x4fc354 of _0xa21b05)if('tablePaste'==_0x4fc354['subType'])for(const _0x225abe of _0x4fc354['getMarkers']()){const _0x39c4bb=_0x225abe['getRange']()['getContainedElement']();if(_0x39c4bb){if(_0x39c4bb['is']('element','tableCellSuggestion')&&Pe(_0x39c4bb)){_0x4fc354['removeMarker'](_0x225abe['name']),_0x11867e['add'](_0x39c4bb),_0xbdad2b=!0x0;const _0x4af88b=_0x39c4bb['nextSibling'],_0x1b2505=_0x39c4bb['previousSibling'],_0x5a55bb=_0x4af88b&&_0x4af88b['is']('element','tableCellSuggestion'),_0x153997=_0x1b2505&&_0x1b2505['is']('element','tableCellSuggestion');_0x5a55bb&&!_0x11867e['has'](_0x4af88b)&&_0x3b5e85['add'](_0x4af88b),_0x153997&&!_0x11867e['has'](_0x1b2505)&&_0x3b5e85['add'](_0x1b2505);}else _0x39c4bb['is']('element','paragraph')&&_0x39c4bb['isEmpty']&&(_0x4fc354['removeMarker'](_0x225abe['name']),_0xbdad2b=!0x0);}}else{if('tablePasteCell'==_0x4fc354['subType']){if(!_0x4fc354['attributes']||!_0x4fc354['attributes']['tablePasteChainId'])continue;const _0x17a40b=_0x4fc354['attributes']['markerAttributes'];if(_0x17a40b&&Object['keys'](_0x17a40b)['length'])continue;const _0x50d666=_0x4fc354['attributes']['tablePasteChainId'];let _0x185052=!0x0,_0x127505=!0x0;for(const _0x2844c1 of _0xa21b05)if(_0x2844c1['subType']&&_0x2844c1['subType']['startsWith']('tablePaste')){if(!_0x2844c1['attributes']['tablePasteChainId']){_0x127505=!0x1;break;}if(_0x2844c1['id']!=_0x4fc354['id']&&_0x2844c1['attributes']['tablePasteChainId']==_0x50d666){_0x185052=!0x1;break;}}_0x127505&&_0x185052&&(_0x4fc354['removeMarkers'](),_0xbdad2b=!0x0);}}for(const _0x49d08e of _0x11867e)_0x501cf0['remove'](_0x49d08e);for(const _0x14c717 of _0x3b5e85)_0x501cf0['unwrap'](_0x14c717);return _0xbdad2b;}),_0x4e8d5c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x540011,_0x4c6921)=>_0x239e56(_0x540011),'converterPriority':'high'}),_0x4e8d5c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x10aa49,_0x5be41c)=>_0x5be41c['options']['showSuggestionHighlights']?_0x239e56(_0x10aa49,!0x1):null,'converterPriority':'high'});const _0x5a5c2e=_0x4e8d5c['editing']['view'];this['listenTo'](_0x5a5c2e['document'],'clipboardOutput',(_0x1eeeb0,_0x15e5e4)=>{const _0x3b7afe=[];for(const _0x4202d9 of _0x5a5c2e['createRangeIn'](_0x15e5e4['content'])['getItems']())_0x4202d9['is']('element','suggestion-td')&&_0x3b7afe['push'](_0x4202d9);_0x5a5c2e['change'](_0x161ab9=>{for(const _0x3282fe of _0x3b7afe)_0x161ab9['move'](_0x161ab9['createRangeIn'](_0x3282fe),_0x161ab9['createPositionBefore'](_0x3282fe)),_0x161ab9['remove'](_0x3282fe);});});}}function Pe(_0x5d238d){if(_0x5d238d['isEmpty'])return!0x0;const _0x2309e6=_0x5d238d['getChild'](0x0);return _0x2309e6['is']('element','paragraph')&&_0x2309e6['isEmpty'];}function he(_0x572287,_0x114253={},_0x4af6ba){for(const {isAnchor:_0x4c5ab8,cellHeight:_0x2b3e9a,cellWidth:_0x46a215}of _0x4af6ba['createTableWalker'](_0x572287,{'includeAllSlots':!0x0,..._0x114253}))if(!_0x4c5ab8||0x1!=_0x2b3e9a||0x1!=_0x46a215)return!0x1;return!0x0;}class vt extends _0x1f2e52{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x48c293=this['editor']['plugins']['get']('TrackChangesEditing');_0x48c293['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x48c293['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x48c293['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48c293['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x48c293['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x48c293['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x322423,_0x4b4db4){const _0x3d138b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x222bb6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x49882b=_0x4b4db4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4b1d39=_0x222bb6['getColumnGroupElement'](_0x49882b);let _0x3b73b3=_0x4b1d39?_0x222bb6['getTableColumnsWidths'](_0x4b1d39):null,_0x48abc6=_0x49882b['getAttribute']('tableWidth')||null;const _0x2b2676=_0x4b4db4['tableWidth']||_0x48abc6,_0x752129=_0x4b4db4['columnWidths']||_0x3b73b3,_0x445657=this['editor']['plugins']['get']('Users')['me'];for(const _0xcea51d of _0x3d138b['getSuggestions']()){const _0xcfc81a=_0xcea51d['getContainedElement']();if('resizeTable'===_0xcea51d['subType']&&_0xcfc81a===_0x49882b){_0xcea51d['author']!==_0x445657&&_0xcea51d['discard']();const _0x2acdf2=_0xcea51d['data']['commandParams'];_0x48abc6=_0x2acdf2[0x0]['tableWidth'],_0x3b73b3=_0x2acdf2[0x0]['columnWidths'];break;}}_0x322423({'table':_0x49882b,'tableWidth':_0x2b2676,'columnWidths':_0x752129}),_0x3d138b['markBlockFormat'](_0x49882b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x48abc6,'columnWidths':_0x3b73b3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x528afd){if('formatBlock'!=_0x528afd['type']&&'formatInline'!=_0x528afd['type'])return;const {data:_0x5e149d}=_0x528afd;if(_0x5e149d&&'resizeTable'===_0x5e149d['formatGroupId']){const _0x25b19a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x25b19a)};}}}class Ct extends _0x1f2e52{['afterInit'](){const _0x1dea84=this['editor'];_0x1dea84['plugins']['has']('Template')&&_0x1dea84['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1f2e52{['afterInit'](){const _0x46f303=this['editor'];if(!_0x46f303['commands']['get']('insertTableOfContents'))return;_0x46f303['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x362d23=_0x46f303['plugins']['get']('TrackChangesEditing'),_0xbdb914=_0x46f303['locale'];_0x362d23['descriptionFactory']['registerElementLabel']('tableOfContents',_0x34baf4=>o(_0xbdb914,'ELEMENT_TABLE_OF_CONTENTS',_0x34baf4));}}class Dt extends _0x1f2e52{['afterInit'](){const _0x346559=this['editor'];if(!_0x346559['plugins']['has']('Title'))return;const _0x4ef9fb=_0x346559['plugins']['get']('TrackChangesEditing');_0x4ef9fb['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x346559['locale'],'ELEMENT_TITLE')),_0x346559['model']['document']['registerPostFixer'](_0x5c0817=>{let _0x55240c=!0x1;const _0x4f1df2=Array['from'](_0x346559['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3afbfc,data:_0x3f225a}of _0x4f1df2){const {group:_0x3f07c4}=_0x4ef9fb['_splitMarkerName'](_0x3afbfc);if('suggestion'!==_0x3f07c4||!_0x3f225a['newRange'])continue;const _0x322bdd=_0x3f225a['newRange'],_0x439b85=_0x322bdd['end']['nodeBefore'];if(!_0x439b85||!_0x439b85['is']('element','title-content'))continue;if(!_0x322bdd['start']['isTouching'](_0x322bdd['end']))continue;const _0xc9a800=_0x346559['model']['schema']['getNearestSelectionRange'](_0x322bdd['end'],'forward');if(_0xc9a800&&_0xc9a800['isCollapsed']){const _0x311308=_0x5c0817['createRange'](_0x322bdd['start'],_0xc9a800['start']);_0x311308['isEqual'](_0x322bdd)||(_0x5c0817['updateMarker'](_0x3afbfc,{'range':_0x311308}),_0x55240c=!0x0);}_0x55240c||(_0x5c0817['removeMarker'](_0x3afbfc),_0x55240c=!0x0);}return _0x55240c;});}}class Nt extends _0x1f2e52{['afterInit'](){const _0x4ded8d=this['editor'],_0x572292=_0x4ded8d['plugins']['get']('TrackChangesEditing');_0x4ded8d['plugins']['has']('UndoEditing')&&(_0x572292['enableCommand']('undo'),_0x572292['enableCommand']('redo'));}}class Mt extends _0x1f2e52{static get['requires'](){return[jt];}['afterInit'](){const _0x5e2e66=this['editor'];if(!_0x5e2e66['plugins']['has']('TableCaptionEditing'))return;_0x5e2e66['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1f2e52{['tableProperties'];['tableCellProperties'];constructor(_0x36c05c){super(_0x36c05c),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x5dbc00=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3590fe of this['tableProperties'])_0x5dbc00['enableCommand'](_0x3590fe,(_0x390b74,_0x549c5a)=>{const _0x22bc8c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3590fe,[_0x22bc8c],this['tableProperties'],'tableProperties',_0x390b74,_0x549c5a);});_0x5dbc00['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5dbc00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5dbc00['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ce524,_0x121c61)=>this['handleDiscardAction'](this['tableProperties'],_0x2ce524,_0x121c61)),_0x5dbc00['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2ba22e of this['tableCellProperties'])_0x5dbc00['enableCommand'](_0x2ba22e,(_0x2be5ea,_0x2b55f7)=>{const _0x342b83=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2ba22e,_0x342b83,this['tableCellProperties'],'tableCellProperties',_0x2be5ea,_0x2b55f7);});_0x5dbc00['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5dbc00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5dbc00['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1ebee4,_0x17568b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1ebee4,_0x17568b)),_0x5dbc00['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5dbc00['descriptionFactory']['registerDescriptionCallback'](_0x390aa8=>this['handleSuggestionDescription'](_0x390aa8));}['_handlePropertyChange'](_0x1f7bcc,_0x33b619,_0x18d814,_0x1875da,_0x545f8e,_0x1e7993){const _0x37421e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1e7993['batch'],()=>{for(const _0x298228 of _0x33b619){if(this['_getSuggestion'](_0x298228,_0x1875da))_0x545f8e(_0x1e7993);else{const _0x231a19={};for(const _0xe3c96e of _0x18d814){const _0x4f6a9c=_0x298228['getAttribute'](_0xe3c96e);void 0x0!==_0x4f6a9c&&(_0x231a19[_0xe3c96e]=_0x4f6a9c);}_0x545f8e(_0x1e7993),_0x37421e['markBlockFormat'](_0x298228,{'commandParams':[_0x231a19]},[],_0x1875da);}}});}['handleDiscardAction'](_0x58bff9,_0xd90add,_0x390f3b){const _0x2fff98=_0xd90add[0x0]['start']['nodeAfter'],_0x4fa48e=_0x390f3b['commandParams'][0x0];this['editor']['model']['change'](_0xd580ab=>{for(const _0x567c4e of _0x58bff9)void 0x0!==_0x4fa48e[_0x567c4e]?_0xd580ab['setAttribute'](_0x567c4e,_0x4fa48e[_0x567c4e],_0x2fff98):_0xd580ab['removeAttribute'](_0x567c4e,_0x2fff98);});}['handleSuggestionDescription'](_0xa5efba){if(_0xa5efba['data'])switch(_0xa5efba['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'](_0x45e617,_0x5da7ec){const _0x3b01bb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4e3256 of _0x3b01bb['getSuggestions']({'skipNotAttached':!0x0})){const _0x4d5a38=_0x4e3256['getContainedElement']();if(_0x4e3256['subType']===_0x5da7ec&&_0x4d5a38===_0x45e617)return _0x4e3256;}return null;}}const m='$elementName';class p extends _0x1f2e52{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x48a211,_0x42d991,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x45591f){function _0x3a667b(_0x92f472){return _0x92f472['map'](_0x4baf4d=>String['fromCharCode'](_0x4baf4d))['join']('');}super(_0x45591f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1d9a6f,_0x5030e0,_0x431ca0,_0x4695f5)=>{this['_model']['change'](()=>{for(const _0x144e03 of[..._0x4695f5,..._0x431ca0])this['_model']['markers']['has'](_0x144e03)&&_0x45591f['editing']['reconvertMarker'](_0x144e03);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x45591f['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(),_0x45591f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x45591f['config']['get']('trackChanges.trackFormatChanges'),_0x45591f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x45591f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x45591f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3a667b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3a667b([0x34,0x30,0x34,0x38,0x31,0x34,0x32,0x32]);}['init'](){const _0x5bd7c5=this['editor'],_0x22e682=(_0x56b55b,_0x14d57c)=>{if('attribute'!=_0x56b55b)return'ck-suggestion-marker-'+_0x56b55b;const _0x22aa26=_0x14d57c['split']('|')[0x0];return this['_isBlockAttribute'](_0x22aa26)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5bd7c5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xbb5144=>{const {id:_0x3cc6ff,type:_0x4c7493,subType:_0x17e16c}=this['_splitMarkerName'](_0xbb5144['markerName']),_0x253685=['ck-suggestion-marker',_0x22e682(_0x4c7493,_0x17e16c)];let _0x1c2cae=0xbb8;return this['activeMarkers']['includes'](_0xbb5144['markerName'])&&(_0x253685['push']('ck-suggestion-marker--active'),_0x1c2cae=0xbc2),'deletion'==_0x4c7493&&(_0x1c2cae+=0x5),{'classes':_0x253685,'attributes':{'data-suggestion':_0x3cc6ff},'priority':_0x1c2cae};}}),_0x5bd7c5['conversion']['for']('dataDowncast')['add'](_0x4ae193=>{_0x4ae193['on']('addMarker:suggestion',(_0x4517f7,_0xfaa2c7,_0x27a6ff)=>{if(!_0x27a6ff['options']['showSuggestionHighlights'])return;const _0x153b64=_0xfaa2c7['item'];if(!_0x153b64)return;const _0x16dead=_0x27a6ff['mapper']['toViewElement'](_0x153b64);_0x5bd7c5['model']['schema']['isObject'](_0x153b64)&&_0x16dead&&!_0x16dead['getCustomProperty']('widget')&&_0x16dead['is']('containerElement')&&_0x232b5e(_0x16dead,_0x27a6ff['writer']);},{'priority':'high'});}),_0x5bd7c5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x29814a,_0x42edfa)=>{if(!_0x42edfa['options']['showSuggestionHighlights'])return null;const {type:_0x507bfe,subType:_0x2e3126}=this['_splitMarkerName'](_0x29814a['markerName']);return{'classes':['ck-suggestion-marker',_0x22e682(_0x507bfe,_0x2e3126)],'priority':0xbb8};}});const _0x34794c=({showActiveMarkers:_0x4845a1=!0x0,isAttributeSuggestion:_0x25100f=!0x1}={})=>(_0x51b370,_0x3d70d6,_0xbf2c48)=>{if(!_0x3d70d6['item'])return;const {id:_0x5725bb}=this['_splitMarkerName'](_0x3d70d6['markerName']);if(_0x25100f){const _0x56649f=this['_suggestions']['get'](_0x5725bb),_0x26c94c=this['_getAttributeKey'](_0x56649f);if(!this['_isBlockAttribute'](_0x26c94c))return;}if(_0x3d70d6['item']['is']('selection'))return void _0xbf2c48['consumable']['consume'](_0x3d70d6['item'],_0x51b370['name']);const _0x4bf9d0=_0xbf2c48['mapper']['toViewElement'](_0x3d70d6['item']);if(_0x3d70d6['item']['is']('element')&&_0x5bd7c5['model']['schema']['isBlock'](_0x3d70d6['item'])&&!_0x4bf9d0['getCustomProperty']('addHighlight')){_0xbf2c48['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4bf9d0),_0xbf2c48['writer']['setAttribute']('data-suggestion',_0x5725bb,_0x4bf9d0),_0xbf2c48['mapper']['bindElementToMarker'](_0x4bf9d0,_0x3d70d6['markerName']),_0x4845a1&&(this['activeMarkers']['includes'](_0x3d70d6['markerName'])?_0xbf2c48['writer']['addClass']('ck-suggestion-marker--active',_0x4bf9d0):_0xbf2c48['writer']['removeClass']('ck-suggestion-marker--active',_0x4bf9d0));for(const _0x28dff3 of _0x5bd7c5['model']['createRangeIn'](_0x3d70d6['item'])['getItems']())_0xbf2c48['consumable']['consume'](_0x28dff3,_0x51b370['name']);_0xbf2c48['consumable']['consume'](_0x3d70d6['item'],_0x51b370['name']);}};_0x5bd7c5['conversion']['for']('dataDowncast')['add'](_0x3798f4=>{_0x3798f4['on']('addMarker:suggestion:formatBlock',(_0xb6112e,_0x3add35,_0x564bbc)=>{_0x564bbc['options']['showSuggestionHighlights']&&_0x34794c({'showActiveMarkers':!0x1})(_0xb6112e,_0x3add35,_0x564bbc);},{'priority':'highest'});}),_0x5bd7c5['conversion']['for']('dataDowncast')['add'](_0x476ec5=>{_0x476ec5['on']('addMarker:suggestion:attribute',(_0x171921,_0x4f185a,_0x803d8b)=>{_0x803d8b['options']['showSuggestionHighlights']&&_0x34794c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x171921,_0x4f185a,_0x803d8b);},{'priority':'highest'});}),_0x5bd7c5['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x24cffc,_0x2a2182)=>_0x2a2182['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x24cffc['substr'](0xb)}}),_0x5bd7c5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x13ac32,{writer:_0x4f8834})=>{let _0x3ccae3='suggestion:'+_0x13ac32['getAttribute']('suggestion-type')+':'+_0x13ac32['getAttribute']('id');return _0x13ac32['getAttribute']('marker-count')&&(_0x3ccae3+=':'+_0x13ac32['getAttribute']('marker-count')),_0x4f8834['createElement']('$marker',{'data-name':_0x3ccae3});}}),_0x5bd7c5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5bd7c5['conversion']['for']('editingDowncast')['add'](_0x214fc0=>{_0x214fc0['on']('addMarker:suggestion:formatBlock',_0x34794c(),{'priority':'high'});}),_0x5bd7c5['conversion']['for']('editingDowncast')['add'](_0xed011b=>{_0xed011b['on']('addMarker:suggestion:attribute',_0x34794c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5bd7c5['conversion']['for']('editingDowncast')['add'](_0x8941e5=>{_0x8941e5['on']('removeMarker:suggestion:formatBlock',(_0x96ad9e,_0x31acfa,_0x171675)=>{const _0x13260c=_0x171675['mapper']['markerNameToElements'](_0x31acfa['markerName']);if(_0x13260c){for(const _0x211248 of _0x13260c)_0x211248['getCustomProperty']('addHighlight')||(_0x171675['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x211248),_0x171675['writer']['removeAttribute']('data-suggestion',_0x211248),_0x171675['mapper']['unbindElementFromMarkerName'](_0x211248,_0x31acfa['markerName']));}},{'priority':'high'});}),_0x5bd7c5['conversion']['for']('editingDowncast')['add'](_0x29458c=>{_0x29458c['on']('removeMarker:suggestion:attribute',(_0x5b35ef,_0x3df0ed,_0x5c3bae)=>{const _0x1c1b10=_0x5c3bae['mapper']['markerNameToElements'](_0x3df0ed['markerName']);if(!_0x1c1b10)return;const {id:_0x18e19c}=this['_splitMarkerName'](_0x3df0ed['markerName']),_0x145d48=this['_suggestions']['get'](_0x18e19c),_0x3e7ea6=this['_getAttributeKey'](_0x145d48);if(this['_isBlockAttribute'](_0x3e7ea6)){for(const _0x593fd1 of _0x1c1b10)_0x593fd1['getCustomProperty']('addHighlight')||(_0x5c3bae['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x593fd1),_0x5c3bae['writer']['removeAttribute']('data-suggestion',_0x593fd1),_0x5c3bae['mapper']['unbindElementFromMarkerName'](_0x593fd1,_0x3df0ed['markerName']));}},{'priority':'high'});}),_0x5bd7c5['model']['document']['registerPostFixer'](_0xaac5eb=>{let _0x31044d=!0x1;const _0x2812d3=Array['from'](_0x5bd7c5['model']['document']['differ']['getChangedMarkers']()),_0x42cf3c=new Set();for(const {name:_0x25ee24,data:_0x69494b}of _0x2812d3){const {group:_0x4b4e62,type:_0x50d363,subType:_0x43d2fd,id:_0xbf2a1d}=this['_splitMarkerName'](_0x25ee24);if('suggestion'!==_0x4b4e62)continue;const _0x4e4f33=this['_suggestions']['get'](_0xbf2a1d);if(null!=_0x69494b['newRange']){'formatInline'==_0x50d363&&(_0x31044d=_0x31044d||Et(_0x69494b['newRange'],_0x25ee24,_0xaac5eb,_0x5bd7c5['model']['schema']));const _0x59ae37='attribute'==_0x50d363&&this['_isBlockAttribute'](_0x43d2fd['split']('|')[0x0]);if(_0x69494b['newRange']['isCollapsed']||'$graveyard'==_0x69494b['newRange']['root']['rootName']||'formatBlock'==_0x50d363&&!Ut(_0x69494b['newRange'])||_0x59ae37&&!Ut(_0x69494b['newRange'])||'deletion'==_0x50d363&&!(!Tt(_0x50244b=_0x69494b['newRange'])&&!function(_0x520e27){return _0x520e27['start']['parent']==_0x520e27['end']['nodeBefore']&&_0x520e27['start']['isAtEnd'];}(_0x50244b)))_0xaac5eb['removeMarker'](_0x25ee24),_0x31044d=!0x0;else{if(!_0x4e4f33||!_0x4e4f33['isInContent'])continue;_0x42cf3c['add'](_0x4e4f33);}}}var _0x50244b;return _0x42cf3c['size']>0x0&&(_0x31044d=!!this['_joinWithAdjacentSuggestions'](_0x42cf3c)||_0x31044d),_0x31044d;}),_0x5bd7c5['model']['document']['registerPostFixer'](_0x434018=>{let _0x12693b=!0x1;for(const _0xeb8253 of _0x5bd7c5['model']['document']['differ']['getChanges']())if('insert'==_0xeb8253['type'])for(const _0x2339f5 of this['_suggestions']['values']()){if(_0x2339f5['isMultiRange']||!_0x2339f5['isInContent'])continue;const _0x426312='formatBlock'==_0x2339f5['type'],_0x3ca27f=this['_getAttributeKey'](_0x2339f5),_0x193722=_0x3ca27f&&this['_isBlockAttribute'](_0x3ca27f);if(!_0x426312&&!_0x193722)continue;const _0x1a9af0=_0x2339f5['getFirstRange']();if(_0x1a9af0['start']['parent']!=_0x1a9af0['end']['parent']&&!_0x1a9af0['end']['isAtEnd']){const _0x107527=_0x5bd7c5['model']['createPositionAt'](_0x1a9af0['start']['nodeAfter'],'end'),_0x2d6e57=_0x5bd7c5['model']['createRange'](_0x1a9af0['start'],_0x107527);_0x434018['updateMarker'](_0x2339f5['getFirstMarker'](),{'range':_0x2d6e57}),_0x12693b=!0x0;}}return _0x12693b;}),_0x5bd7c5['model']['document']['registerPostFixer'](_0x376ba0=>this['_processAttributeChanges'](_0x376ba0)),_0x5bd7c5['model']['document']['registerPostFixer'](_0x4d381a=>!_0x4d381a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4d381a)),_0x5bd7c5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5bd7c5['model']['document']['on']('change:data',(_0x564bee,_0x251a29)=>{if(!_0x251a29['isLocal']||_0x251a29['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x494741=_0x5bd7c5['model']['document']['differ']['getChanges']();if(0x0==_0x494741['length'])return;const _0x61fcc1=[],_0x350b62=_0x494741['filter'](_0x508b79=>'attribute'==_0x508b79['type']),_0x32c885=_0x494741['filter'](_0x5a8d06=>'insert'==_0x5a8d06['type']&&'$text'!=_0x5a8d06['name']);for(const _0x4b199b of _0x350b62)this['_isRegisteredAttribute'](_0x4b199b['attributeKey'])&&_0x61fcc1['push']({'key':_0x4b199b['attributeKey'],'newValue':_0x4b199b['attributeNewValue'],'oldValue':_0x4b199b['attributeOldValue'],'range':Ot(_0x4b199b['range'],_0x5bd7c5['model'])});for(const _0x28933e of _0x32c885){if('rename'!=_0x28933e['action']&&'refresh'!=_0x28933e['action'])continue;const _0x35fdfb=Gt(_0x28933e['position']['nodeAfter'],_0x5bd7c5['model']),_0x4ebc46=_0x28933e['before'];'rename'==_0x28933e['action']&&_0x61fcc1['push']({'key':m,'newValue':_0x28933e['name'],'oldValue':_0x4ebc46['name'],'range':_0x35fdfb});for(const [_0x496c18,_0x422755]of _0x4ebc46['attributes']){if(!this['_isRegisteredAttribute'](_0x496c18))continue;const _0x553bdc=_0x28933e['attributes']['get'](_0x496c18);_0x422755!==_0x553bdc&&_0x61fcc1['push']({'key':_0x496c18,'newValue':_0x553bdc,'oldValue':_0x422755,'range':_0x35fdfb});}for(const [_0x4bf34c,_0x3b6506]of _0x28933e['attributes'])this['_isRegisteredAttribute'](_0x4bf34c)&&(_0x4ebc46['attributes']['has'](_0x4bf34c)||_0x61fcc1['push']({'key':_0x4bf34c,'newValue':_0x3b6506,'oldValue':null,'range':_0x35fdfb}));}0x0!=_0x61fcc1['length']&&_0x5bd7c5['model']['enqueueChange'](_0x251a29,_0x9ae57a=>{const _0x1e2652=_0x549ca5();for(const {range:_0x16f2e3,key:_0xc48749,oldValue:_0xc126ff,newValue:_0x29184b}of _0x61fcc1)this['markAttributeChange'](_0x16f2e3,_0xc48749,_0xc126ff,_0x29184b,{'groupId':_0x1e2652});this['_reduceExistingSuggestions'](_0x9ae57a,_0x61fcc1);});},{'priority':'lowest'}),_0x5bd7c5['model']['markers']['on']('update:suggestion',(_0x474d55,_0x58f98b,_0x22cc36)=>{if(null==_0x22cc36){const {id:_0x404b13}=this['_splitMarkerName'](_0x58f98b['name']),_0x4d65ca=this['_suggestions']['get'](_0x404b13);_0x4d65ca&&_0x4d65ca['addMarkerName'](_0x58f98b['name']);}}),_0x5bd7c5['model']['document']['on']('change:data',()=>{const _0x483a71=Array['from'](_0x5bd7c5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x53c194=>'suggestion'===this['_splitMarkerName'](_0x53c194['name'])['group']);if(0x0===_0x483a71['length'])return;_0x483a71['sort']((_0x320ca7,_0x102fd4)=>{const _0x122665=_0x320ca7['data']['oldRange'],_0x677890=_0x102fd4['data']['oldRange'];return null===_0x122665&&null===_0x677890?0x0:null===_0x122665&&null!==_0x677890?-0x1:null!==_0x122665&&null===_0x677890?0x1:_0x122665['start']['isBefore'](_0x677890['start'])?-0x1:0x1;});const _0x3dd005=new Set(),_0x456815=new Set();for(const {name:_0xbc6573,data:_0x3df0f9}of _0x483a71){const {id:_0x5c115f}=this['_splitMarkerName'](_0xbc6573);if(null===_0x3df0f9['oldRange']){const _0x54348c=this['_handleNewSuggestionMarker'](_0xbc6573);_0x456815['add'](_0x54348c);}else{const _0xfce5de=this['_suggestions']['get'](_0x5c115f);null!==_0x3df0f9['newRange']||_0xfce5de['isInContent']?(_0x3dd005['add'](_0xfce5de['head']),_0x456815['add'](_0xfce5de)):this['_removeSuggestion'](_0xfce5de);}}_0x456815['size']>0x0&&this['_refreshSuggestionsChain'](_0x456815);for(const _0x4140b9 of _0x3dd005)this['fire']('suggestionChanged',_0x4140b9);}),_0x5bd7c5['model']['on']('applyOperation',(_0x53b9ee,_0x37859f)=>{const _0x854891=_0x37859f[0x0];if(!this['_suggestions']['size'])return;if(!_0x854891['isDocumentOperation'])return;if(_0x854891['batch']['isUndo']||!_0x854891['batch']['isLocal'])return;let _0xf9c795,_0x23e770;switch(_0x854891['type']){case'insert':_0xf9c795=_0x5bd7c5['model']['createPositionAt'](_0x854891['position']),_0x23e770=_0xf9c795['getShiftedBy'](_0x854891['howMany']);break;case'split':_0xf9c795=_0x5bd7c5['model']['createPositionAt'](_0x854891['splitPosition']),_0x23e770=_0x5bd7c5['model']['createPositionAt'](_0x854891['moveTargetPosition']);break;case'move':_0xf9c795=_0x5bd7c5['model']['createPositionAt'](_0x854891['targetPosition']),_0x23e770=_0xf9c795['getShiftedBy'](_0x854891['howMany']);break;default:return;}const _0x1d625e=_0x5bd7c5['model']['createRange'](_0xf9c795,_0x23e770);_0x5bd7c5['model']['change'](()=>{for(const {suggestion:_0x220098,meta:_0xdab0f0}of this['_findSuggestions'](_0x1d625e)){if(_0x220098['isMultiRange'])continue;if('formatInline'==_0x220098['type'])continue;const _0x42c431=this['_getAttributeKey'](_0x220098);if(_0x42c431&&this['_isBlockAttribute'](_0x42c431)&&'split'!=_0x854891['type'])continue;const _0x54adb6=_0x220098['data']&&_0x220098['data']['multipleBlocks'];('formatBlock'!=_0x220098['type']||'split'==_0x854891['type']&&!_0x54adb6)&&(_0xdab0f0['containsRangeInObject']||'insertion'==_0x220098['type']&&_0xdab0f0['isOwn']||_0x220098['getFirstRange']()['containsRange'](_0x1d625e)&&this['_breakSuggestionMarker'](_0x220098,_0xf9c795,_0x23e770));}});},{'priority':'lowest'}),_0x5bd7c5['model']['on']('deleteContent',(_0x55f769,_0xe2aea1)=>{const _0xac39ce=_0xe2aea1[0x0],_0x45fb5c=_0xe2aea1[0x1];if(_0x45fb5c&&_0x45fb5c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xac39ce['isCollapsed'])return;const _0x28d6ed=_0x5bd7c5['model']['schema'],{start:_0x6a7f8a,end:_0x214b8b}=_0xac39ce['getFirstRange'](),_0x3fd9c8=_0x6a7f8a['nodeAfter']&&_0x28d6ed['isLimit'](_0x6a7f8a['nodeAfter'])?null:_0x28d6ed['getNearestSelectionRange'](_0x6a7f8a,'forward'),_0xc65696=_0x214b8b['nodeBefore']&&_0x28d6ed['isLimit'](_0x214b8b['nodeBefore'])?null:_0x28d6ed['getNearestSelectionRange'](_0x214b8b,'backward'),_0xe16907=_0x5bd7c5['model']['createRange'](_0x3fd9c8?_0x3fd9c8['start']:_0x6a7f8a,_0xc65696?_0xc65696['end']:_0x214b8b);_0x5bd7c5['model']['change'](_0x4a4413=>{this['markDeletion'](_0xe16907);const _0x465981=_0x5bd7c5['model']['schema']['getNearestSelectionRange'](_0xe16907['start']);_0xac39ce['is']('documentSelection')?_0x4a4413['setSelection'](_0x465981):_0xac39ce['setTo'](_0x465981);}),_0x55f769['stop']();},{'priority':_0x3ee9e9['normal']+0xa}),_0x5bd7c5['model']['on']('insertContent',(_0x94f7dd,_0xcd1a9)=>{const _0x22746f=_0xcd1a9[_0xcd1a9['length']-0x1];_0x22746f&&_0x22746f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5bd7c5['model']['change'](()=>{let _0x5a300a=_0x5bd7c5['model']['insertContent'](_0xcd1a9[0x0],_0xcd1a9[0x1],_0xcd1a9[0x2],{'forceDefaultExecution':!0x0});if(!_0x5a300a)return;_0x94f7dd['return']=_0x5a300a['clone']();const _0x1299ab=_0x5a300a['end']['nodeBefore'],_0x91325=_0x5bd7c5['model']['schema'];_0x1299ab&&_0x91325['isBlock'](_0x1299ab)&&!_0x91325['isObject'](_0x1299ab)&&(_0x5a300a=_0x5bd7c5['model']['createRange'](_0x5a300a['start'],_0x5bd7c5['model']['createPositionAt'](_0x1299ab,'end'))),this['markInsertion'](_0x5a300a);}),_0x94f7dd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x51a657=new $(_0x5bd7c5,this['_suggestions']);_0x5bd7c5['commands']['add']('acceptSuggestion',_0x51a657),this['enableCommand']('acceptSuggestion');const _0x2ad4b8=new B(_0x5bd7c5,this['_suggestions']);_0x5bd7c5['commands']['add']('discardSuggestion',_0x2ad4b8),this['enableCommand']('discardSuggestion'),_0x5bd7c5['commands']['add']('acceptAllSuggestions',new x(_0x5bd7c5,_0x51a657,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5bd7c5['commands']['add']('discardAllSuggestions',new x(_0x5bd7c5,_0x2ad4b8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5bd7c5['commands']['add']('acceptSelectedSuggestions',new R(_0x5bd7c5,_0x51a657,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5bd7c5['commands']['add']('discardSelectedSuggestions',new R(_0x5bd7c5,_0x2ad4b8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x60585d=_0x5bd7c5['plugins']['get']('CommentsRepository');this['listenTo'](_0x60585d,'addComment',(_0x2898b6,{threadId:_0x436b2a})=>{const _0x5cc063=this['_suggestions']['get'](_0x436b2a);_0x5cc063&&_0x5cc063['commentThread']&&0x1===_0x5cc063['commentThread']['length']&&this['_updateSuggestionData'](_0x436b2a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x60585d,'removeComment',(_0x214581,{threadId:_0x1d86e7})=>{const _0x38092d=this['_suggestions']['get'](_0x1d86e7);_0x38092d&&_0x38092d['commentThread']&&!_0x38092d['commentThread']['length']&&this['_updateSuggestionData'](_0x1d86e7,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1587cb){if(this['_adapter'])throw new _0x3712bb('track-changes-adapter-already-set',this);this['_adapter']=_0x1587cb;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e7d59=!0x1,toJSON:_0x56d9db=!0x1}={}){const _0x3dde23=[];for(const _0x418b22 of this['_suggestions']['values']())_0x5e7d59&&!_0x418b22['isInContent']||_0x3dde23['push'](_0x418b22);return _0x56d9db?_0x3dde23['map'](_0x505353=>_0x505353['toJSON']()):_0x3dde23;}['getSuggestion'](_0x4641f4){const _0x10aae9=this['_suggestions']['get'](_0x4641f4);if(!_0x10aae9)throw new _0x3712bb('track-changes-suggestion-not-found',this);return _0x10aae9;}['hasSuggestion'](_0x205283){return this['_suggestions']['has'](_0x205283);}['addSuggestionData'](_0x3dfd4c){const {authorId:_0x1aff36,id:_0x504d05,attributes:_0x255b48}=_0x3dfd4c,[_0x5f2ec8,_0x3b2182]=_0x3dfd4c['type']['split'](':'),_0x241f50=this['_suggestions']['get'](_0x504d05)||this['_createSuggestion'](_0x5f2ec8,_0x3b2182,_0x504d05,_0x1aff36,_0x255b48);if(this['_addThreadToSuggestion'](_0x241f50),this['_checkSuggestionCorrectness'](_0x241f50,_0x5f2ec8,_0x3b2182||null,_0x1aff36),_0x241f50['createdAt']=_0x3dfd4c['createdAt'],_0x241f50['_isDataLoaded']=!0x0,_0x255b48&&_0x255b48['@external']){const _0xc9d2db=_0x255b48['@external'],_0x7fd401=this['_getExternalAuthor'](_0xc9d2db['authorName']);_0x241f50['authoredAt']=_0xc9d2db['createdAt'],_0x241f50['author']=_0x7fd401,_0x241f50['isExternal']=!0x0;}else _0x241f50['authoredAt']=_0x3dfd4c['createdAt'];switch(_0x3dfd4c['data']&&(_0x241f50['data']=_0x3dfd4c['data']),_0x3dfd4c['attributes']&&(_0x241f50['attributes']=_0x3dfd4c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x241f50['_saved']=!0x0),this['_suggestionState']['get'](_0x241f50)){case'notReady':this['_suggestionState']['set'](_0x241f50,'dataReady');break;case'markerReady':_0x241f50['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x241f50])),this['_refreshSuggestionsChain'](new Set([_0x241f50])),this['_suggestionState']['set'](_0x241f50,'ready'),this['fire']('suggestionLoaded',_0x241f50)):this['_suggestionState']['set'](_0x241f50,'removed');}return _0x241f50;}['acceptSuggestion'](_0x49c6a5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5e75b3 of _0x49c6a5['getAllAdjacentSuggestions']())_0x5e75b3['accept']();});});}['discardSuggestion'](_0x2972cf){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x18e717 of _0x2972cf['getAllAdjacentSuggestions']())_0x18e717['discard']();});});}['enableCommand'](_0x1ff29e,_0x5c45bf){const _0x23b9a7=this['editor']['commands']['get'](_0x1ff29e);if(!_0x23b9a7)throw new _0x3712bb('track-changes-command-not-found',this,{'commandName':_0x1ff29e});if(this['_enabledCommands']['has'](_0x23b9a7))throw new _0x3712bb('track-changes-enable-command-twice',this,{'commandName':_0x1ff29e});this['_enabledCommands']['add'](_0x23b9a7),_0x5c45bf&&_0x23b9a7['on']('execute',(_0x36e44a,_0x5f6e1a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5f6e1a['length']>0x0&&_0x5f6e1a[_0x5f6e1a['length']-0x1]&&_0x5f6e1a[_0x5f6e1a['length']-0x1]['forceDefaultExecution']?_0x5f6e1a['pop']():(_0x36e44a['return']=_0x5c45bf((..._0x3c85f4)=>_0x23b9a7['execute'](..._0x3c85f4,{'forceDefaultExecution':!0x0}),..._0x5f6e1a),_0x36e44a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x38e36){let _0x198ce8,_0xe8532c;const _0x24f9d2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x198ce8=_0x38e36();}catch(_0xfaa77c){_0xe8532c=_0xfaa77c;}return _0x24f9d2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xe8532c&&_0x3712bb['rethrowUnexpectedError'](_0xe8532c,this),_0x198ce8;}['markInsertion'](_0x488309,_0x14e8d7=null,_0x5a2a01={}){if(_0x488309['isCollapsed'])return null;const _0x21bb95=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xde1edd,meta:_0x1465b5}of this['_findSuggestions'](_0x488309,'insertion'))if(_0x1465b5['isOwn']){if(!_0x1465b5['isNextTo']){if(_0x1465b5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0xde1edd,_0x5a2a01))continue;return _0xde1edd;}if(Lt(_0xde1edd,_0x5a2a01))return _0xde1edd;this['_breakSuggestionMarker'](_0xde1edd,_0x488309['start'],_0x488309['end']);break;}if(_0x14e8d7==_0xde1edd['subType']&&Lt(_0xde1edd,_0x5a2a01)){const _0xd3e4ac=_0xde1edd['getFirstRange']();return _0xd3e4ac['start']['isEqual'](_0x488309['end'])?this['_setSuggestionRange'](_0xde1edd,this['_model']['createRange'](_0x488309['start'],_0xd3e4ac['end'])):this['_setSuggestionRange'](_0xde1edd,this['_model']['createRange'](_0xd3e4ac['start'],_0x488309['end'])),_0xde1edd;}}const _0x2b06e1=_0x549ca5(),_0x29d607=_0x21bb95['id'],_0x5d3877=_0x14e8d7?'insertion:'+_0x14e8d7:'insertion',_0x18412e=this['_setSuggestionData']({'id':_0x2b06e1,'type':_0x5d3877,'createdAt':new Date(),'authorId':_0x29d607,'attributes':_0x5a2a01});return this['_addSuggestionMarker'](_0x5d3877,_0x2b06e1,_0x29d607,_0x488309),_0x18412e;}['markMultiRangeInsertion'](_0x376905,_0x46b1af='multi',_0x546b89={}){const _0x42bfa2=this['editor']['plugins']['get']('Users')['me'],_0x2e914e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x46b1af,'join');for(const _0x2e20a6 of this['getSuggestions']())if(_0x2e20a6['author']['id']==_0x42bfa2['id']&&'insertion'==_0x2e20a6['type']&&_0x2e20a6['subType']==_0x46b1af&&Lt(_0x2e20a6,_0x546b89)&&(_0x2e914e(_0x2e20a6['getRanges'](),_0x376905)||_0x2e914e(_0x376905,_0x2e20a6['getRanges']()))){for(const _0x39ceff of _0x376905)_0x2e20a6['addRange'](_0x39ceff);return _0x2e20a6;}for(const {suggestion:_0x8fe475,meta:_0x3b2d2d}of this['_findSuggestions'](_0x376905,'insertion')){if(!_0x3b2d2d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3b2d2d['containsRangeInObject'])continue;if(!Lt(_0x8fe475,_0x546b89))continue;let _0x41e976=!0x0;for(const _0x22caf8 of _0x8fe475['getRanges']())for(const _0x290576 of _0x376905)if(!_0x22caf8['containsRange'](_0x290576)){_0x41e976=!0x1;break;}if(_0x41e976)return _0x8fe475;}const _0x2982a4=_0x549ca5(),_0x4f9749=_0x42bfa2['id'],_0x5bb44d='insertion:'+_0x46b1af,_0x1ecb5c=this['_setSuggestionData']({'id':_0x2982a4,'type':_0x5bb44d,'createdAt':new Date(),'authorId':_0x4f9749,'attributes':_0x546b89});for(const _0x4fb9fb of _0x376905)this['_addSuggestionMarker'](_0x5bb44d,_0x2982a4,_0x4f9749,_0x4fb9fb,u['getMultiRangeId']());return _0x1ecb5c;}['markInlineFormat'](_0x39a684,_0x2c8ef1,_0x299071=null,_0x47d6fd={}){if(_0x299071=_0x299071||Vt(_0x2c8ef1),_0x39a684['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x30b96b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x299071,'accept');return this['forceDefaultExecution'](()=>_0x30b96b([_0x39a684],_0x2c8ef1,_0x47d6fd)),null;}const _0x55ef4d=this['editor']['plugins']['get']('Users')['me'],_0x526409=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x31e684,meta:_0x2f94a0}of this['_findSuggestions'](_0x39a684,'insertion'))_0x2f94a0['isOwn']&&!_0x2f94a0['isInsideObject']&&_0x526409['push'](..._0x31e684['getRanges']());}const _0x339e3c=function(_0x30a180,_0x355408){const _0x1846c5=[];for(const _0x348871 of _0x355408){const _0x2c0a6e=_0x30a180['getIntersection'](_0x348871);_0x2c0a6e&&_0x1846c5['push'](_0x2c0a6e);}return _0x1846c5;}(_0x39a684,_0x526409),_0x43809c=function(_0x5cd21c,_0xc38420){const _0x5bfc7c=[_0x5cd21c];for(const _0x4e4311 of _0xc38420){let _0x14b191=0x0;for(;_0x14b191<_0x5bfc7c['length'];){const _0x55bdb2=_0x5bfc7c[_0x14b191]['getDifference'](_0x4e4311);_0x5bfc7c['splice'](_0x14b191,0x1,..._0x55bdb2),_0x14b191+=_0x55bdb2['length'];}}return _0x5bfc7c;}(_0x39a684,_0x526409);_0x339e3c['length']&&this['_model']['change'](()=>{for(const _0xd58a10 of _0x339e3c){const _0x3cc672=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x299071,'accept');this['forceDefaultExecution'](()=>_0x3cc672([_0xd58a10],_0x2c8ef1,_0x47d6fd));}});for(const _0x3a2fdd of _0x43809c){let _0x2ba886=null,_0x283029=_0x3a2fdd['start'],_0x3edf0c=_0x3a2fdd['end'];for(const {suggestion:_0x14695d,meta:_0x336e4b}of this['_findSuggestions'](_0x3a2fdd,'formatInline')){if(!_0x336e4b['isOwn'])continue;if(_0x14695d['subType']!=_0x299071)continue;if(!Lt(_0x14695d,_0x47d6fd))continue;const _0x49f83d=_0x14695d['getFirstRange']();if(_0x49f83d['containsRange'](_0x3a2fdd,!0x0))return null;_0x283029=_0x283029['isBefore'](_0x49f83d['start'])?_0x283029:_0x49f83d['start'],_0x3edf0c=_0x3edf0c['isAfter'](_0x49f83d['end'])?_0x3edf0c:_0x49f83d['end'],_0x2ba886?_0x49f83d['start']['isBefore'](_0x2ba886['getFirstRange']()['start'])?(_0x2ba886['removeMarkers'](),_0x2ba886=_0x14695d):_0x14695d['removeMarkers']():_0x2ba886=_0x14695d;}const _0x5dc897=this['_model']['createRange'](_0x283029,_0x3edf0c);if(_0x2ba886)this['_setSuggestionRange'](_0x2ba886,_0x5dc897);else{const _0x2de48e=_0x549ca5(),_0x385057=_0x55ef4d['id'];this['_setSuggestionData']({'id':_0x2de48e,'type':'formatInline:'+_0x299071,'data':_0x2c8ef1,'createdAt':new Date(),'authorId':_0x385057,'attributes':_0x47d6fd}),this['_addSuggestionMarker']('formatInline:'+_0x299071,_0x2de48e,_0x385057,_0x5dc897);}}return null;}['markBlockFormat'](_0x33454a,_0x3ae515,_0x523b52=[],_0x47e8db=null,_0x3d2d35={}){_0x3ae515['formatGroupId']||(_0x3ae515['formatGroupId']=_0x3ae515['commandName']),_0x3ae515['multipleBlocks']=_0x33454a['is']('range'),_0x47e8db=_0x47e8db||Vt(_0x3ae515);const _0x34d2b8=_0x523b52['map'](_0x3d5538=>Gt(_0x3d5538,this['_model'])),_0x24f1e9=_0x33454a['is']('range')?_0x33454a:Gt(_0x33454a,this['_model']);if('never'===this['_trackFormatChanges']){const _0xfada18=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47e8db,'accept');return this['forceDefaultExecution'](()=>_0xfada18([_0x24f1e9],_0x3ae515,_0x3d2d35)),null;}_0x34d2b8['push'](_0x24f1e9);let _0x42844d=!0x0;for(const _0x46cc6c of _0x34d2b8)if(!this['_rangeIsInLocalUserInsertion'](_0x46cc6c)){_0x42844d=!0x1;break;}if(_0x42844d&&'always'!==this['_trackFormatChanges']){const _0x579069=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47e8db,'accept');return this['forceDefaultExecution'](()=>_0x579069([_0x24f1e9],_0x3ae515,_0x3d2d35)),null;}let _0x2b7b55=null,_0x3ef070=_0x24f1e9['start'],_0x1b793a=_0x24f1e9['end'];for(const {suggestion:_0x2dfd66,meta:_0x2a43fe}of this['_findSuggestions'](_0x24f1e9,'formatBlock')){if(!_0x2a43fe['isOwn'])continue;if(_0x2a43fe['isNextTo']||_0x2a43fe['containsRangeInObject']||_0x2a43fe['isInsideObject'])continue;if(_0x2dfd66['data']['formatGroupId']!=_0x3ae515['formatGroupId'])continue;if(!Lt(_0x2dfd66,_0x3d2d35))continue;const _0x1c58df=_0x2dfd66['getFirstRange']();if(_0x2dfd66['subType']==_0x47e8db){if(_0x1c58df['containsRange'](_0x24f1e9,!0x0))return null;_0x3ef070=_0x3ef070['isBefore'](_0x1c58df['start'])?_0x3ef070:_0x1c58df['start'],_0x1b793a=_0x1b793a['isAfter'](_0x1c58df['end'])?_0x1b793a:_0x1c58df['end'],_0x2b7b55?_0x1c58df['start']['isBefore'](_0x2b7b55['getFirstRange']()['start'])?(_0x2b7b55['removeMarkers'](),_0x2b7b55=_0x2dfd66):_0x2dfd66['removeMarkers']():_0x2b7b55=_0x2dfd66;}else{const _0x2d218a=_0x24f1e9['getIntersection'](_0x1c58df);this['_cutOutSuggestionMarker'](_0x2dfd66,_0x2d218a);}}const _0x2c4a15=this['editor']['plugins']['get']('Users')['me'],_0x38c80f=_0x549ca5(),_0x280071=_0x2c4a15['id'];if(_0x2b7b55)return this['_setSuggestionRange'](_0x2b7b55,this['_model']['createRange'](_0x3ef070,_0x1b793a)),_0x2b7b55;{const _0xeef98f=this['_setSuggestionData']({'id':_0x38c80f,'type':'formatBlock:'+_0x47e8db,'data':_0x3ae515,'createdAt':new Date(),'authorId':_0x280071,'attributes':_0x3d2d35});return this['_addSuggestionMarker']('formatBlock:'+_0x47e8db,_0x38c80f,_0x280071,this['_model']['createRange'](_0x3ef070,_0x1b793a)),_0xeef98f;}}['markMultiRangeBlockFormat'](_0x192459,_0x549077,_0x2dc07c=[],_0x2784de=null,_0x168d91={}){_0x549077['formatGroupId']||(_0x549077['formatGroupId']=_0x549077['commandName']);const _0x4163e6=_0x192459[0x0];_0x549077['multipleBlocks']=_0x4163e6['is']('range'),_0x2784de=_0x2784de||Vt(_0x549077);const _0x561878=_0x2dc07c['map'](_0x5081fd=>Gt(_0x5081fd,this['_model'])),_0x357b1f=_0x4163e6['is']('range')?_0x192459:_0x192459['map'](_0x4f6338=>Gt(_0x4f6338,this['_model']));if('never'===this['_trackFormatChanges']){const _0x23aea9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2784de,'accept');return this['forceDefaultExecution'](()=>_0x23aea9(_0x357b1f,_0x549077,_0x168d91)),null;}_0x561878['push'](..._0x357b1f);let _0x1a2a23=!0x0;for(const _0x1b5a38 of _0x561878)if(!this['_rangeIsInLocalUserInsertion'](_0x1b5a38)){_0x1a2a23=!0x1;break;}if(_0x1a2a23&&'always'!==this['_trackFormatChanges']){const _0x3a8bc5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2784de,'accept');return this['forceDefaultExecution'](()=>_0x3a8bc5(_0x357b1f,_0x549077,_0x168d91)),null;}const _0x44da5d=this['editor']['plugins']['get']('Users')['me'];for(const _0x3db529 of this['getSuggestions']()){if(_0x3db529['author']['id']!=_0x44da5d['id'])continue;if('formatBlock'!=_0x3db529['type']||_0x3db529['data']['formatGroupId']!=_0x549077['formatGroupId'])continue;if(!Lt(_0x3db529,_0x168d91))continue;const _0x312389=_0x3db529['subType']==_0x2784de;for(let _0x4bead4=0x0;_0x4bead4<_0x357b1f['length'];_0x4bead4++){const _0x1c7745=_0x357b1f[_0x4bead4];for(const _0x2a3e36 of _0x3db529['getMarkers']()){const _0x57dd03=_0x2a3e36['getRange']();if(_0x1c7745['isEqual'](_0x57dd03)){_0x312389?(_0x357b1f['splice'](_0x4bead4,0x1),_0x4bead4--):_0x3db529['removeMarker'](_0x2a3e36['name']);break;}}}}if(0x0==_0x357b1f['length'])return null;const _0x1604be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2784de,'join');for(const _0x199248 of this['getSuggestions']())if(_0x199248['author']['id']==_0x44da5d['id']&&'formatBlock'==_0x199248['type']&&_0x199248['data']['formatGroupId']==_0x549077['formatGroupId']&&_0x199248['subType']==_0x2784de&&Lt(_0x199248,_0x168d91)&&(_0x1604be(_0x199248['getRanges'](),_0x357b1f)||_0x1604be(_0x357b1f,_0x199248['getRanges']()))){for(const _0x103f5f of _0x357b1f)_0x199248['addRange'](_0x103f5f);return _0x199248;}const _0x43d299=_0x549ca5(),_0x376336=_0x44da5d['id'],_0x132088='formatBlock:'+_0x2784de,_0x11291c=this['_setSuggestionData']({'id':_0x43d299,'type':_0x132088,'data':_0x549077,'createdAt':new Date(),'authorId':_0x376336,'attributes':_0x168d91});for(const _0x3d1935 of _0x357b1f)this['_addSuggestionMarker'](_0x132088,_0x43d299,_0x376336,_0x3d1935,u['getMultiRangeId']());return _0x11291c;}['markDeletion'](_0x35d7ad,_0x21f1ca=null,_0x4b4c16={}){if(_0x35d7ad['isCollapsed'])return null;const _0x48530c=this['editor']['plugins']['get']('Users')['me'],_0x281d85=new _0x3c5a16(_0x35d7ad['start'],_0x35d7ad['end']);for(const {suggestion:_0x74e054,meta:_0x4b3c67}of this['_findSuggestions'](_0x281d85,'insertion'))if(_0x4b3c67['isOwn']&&!_0x4b3c67['isNextTo']){if(_0x74e054['isMultiRange']){const _0x218fdc=_0x74e054['getRanges']()['filter'](_0x6fc333=>'$graveyard'!=_0x6fc333['root']['rootName']);_0x218fdc['every'](_0x5a38e6=>_0x281d85['containsRange'](_0x5a38e6,!0x0))&&_0x74e054['discard']();if(_0x218fdc['some'](_0xecb966=>_0xecb966['containsRange'](_0x281d85,!0x0))){const _0x3c7fd6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x21f1ca,'accept');return this['forceDefaultExecution'](()=>_0x3c7fd6([_0x281d85],null,_0x4b4c16)),null;}}else{const _0x1823fb=_0x281d85['getIntersection'](_0x74e054['getFirstRange']());null!==_0x1823fb&&_0x74e054['_onDiscard']([_0x1823fb],null,_0x4b4c16);}}if(_0x281d85['detach'](),_0x281d85['isCollapsed']||'$graveyard'==_0x281d85['root']['rootName'])return null;let _0x2418cd=null,_0x32a230=_0x281d85['start'],_0x581a8e=_0x281d85['end'];const _0x51b54a=this['_findSuggestions'](_0x281d85,'deletion');for(const {suggestion:_0x147424,meta:_0x8c351d}of _0x51b54a){const _0x434c8f=this['_model']['createRange'](_0x32a230,_0x581a8e);if(_0x8c351d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8c351d['containsRangeInObject']&&!_0x8c351d['isInsideObject'])){if(_0x147424['isMultiRange']){if(!Lt(_0x147424,_0x4b4c16))continue;let _0x366c8f=!0x0;for(const _0x2eeb83 of _0x147424['getRanges']()){if(_0x2eeb83['containsRange'](_0x434c8f,!0x0))return _0x147424;_0x434c8f['containsRange'](_0x2eeb83)||(_0x366c8f=!0x1);}_0x366c8f&&_0x147424['discard']();}else{const _0x4b926d=_0x147424['getFirstRange']();if(_0x4b926d['containsRange'](_0x434c8f,!0x0))return _0x147424;if(!Lt(_0x147424,_0x4b4c16)){_0x434c8f['containsRange'](_0x4b926d)?_0x147424['removeMarkers']():_0x4b926d['containsPosition'](_0x32a230)?_0x32a230=_0x4b926d['end']:_0x4b926d['containsPosition'](_0x581a8e)&&(_0x581a8e=_0x4b926d['start']);continue;}_0x32a230=_0x32a230['isBefore'](_0x4b926d['start'])?_0x32a230:_0x4b926d['start'],_0x581a8e=_0x581a8e['isAfter'](_0x4b926d['end'])?_0x581a8e:_0x4b926d['end'],_0x4b4c16=Object['assign']({},_0x147424['attributes']),_0x2418cd?_0x4b926d['start']['isBefore'](_0x2418cd['getFirstRange']()['start'])?(_0x2418cd['removeMarkers'](),_0x2418cd=_0x147424):_0x147424['removeMarkers']():_0x2418cd=_0x147424;}}}if(_0x2418cd)return this['_setSuggestionRange'](_0x2418cd,this['_model']['createRange'](_0x32a230,_0x581a8e)),_0x2418cd;{const _0x38730c=_0x549ca5(),_0x1296cc=this['_model']['createRange'](_0x32a230,_0x581a8e),_0x317684=_0x48530c['id'],_0x27d455=_0x21f1ca?'deletion:'+_0x21f1ca:'deletion',_0x233ae8=this['_setSuggestionData']({'id':_0x38730c,'type':_0x27d455,'createdAt':new Date(),'authorId':_0x317684,'attributes':_0x4b4c16});return this['_addSuggestionMarker'](_0x27d455,_0x38730c,_0x317684,_0x1296cc),_0x233ae8;}}['markMultiRangeDeletion'](_0x3e2bb7,_0x37d6dd='multi',_0x39d6fd={}){const _0x40249f=this['editor']['plugins']['get']('Users')['me'],_0x38ee5a=_0x3e2bb7['map'](_0x127ef8=>new _0x3c5a16(_0x127ef8['start'],_0x127ef8['end'])),_0x10d686=new Set();for(const {suggestion:_0x311c1b,meta:_0x385a17}of this['_findSuggestions'](_0x38ee5a,'insertion'))_0x385a17['isOwn']&&!_0x385a17['isNextTo']&&_0x10d686['add'](_0x311c1b);for(const _0x224816 of _0x10d686)if(_0x224816['isMultiRange']){const _0x3da82d=_0x224816['getRanges']();(!_0x224816['attributes']||!_0x224816['attributes']['skipNestingCheck'])&&(_0x3da82d['every'](_0x20af25=>_0x38ee5a['some'](_0x7378cf=>_0x7378cf['containsRange'](_0x20af25,!0x0)))&&_0x224816['discard']());if(_0x38ee5a['every'](_0x323129=>_0x3da82d['some'](_0xed39c3=>_0xed39c3['containsRange'](_0x323129,!0x0)))){const _0x40cfad=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37d6dd,'accept');return this['forceDefaultExecution'](()=>_0x40cfad(_0x3e2bb7,null,_0x39d6fd)),null;}}else{const _0x4c7dca=_0x224816['getFirstRange']();_0x38ee5a['some'](_0x4a4249=>_0x4a4249['containsRange'](_0x4c7dca,!0x0))&&_0x224816['discard']();if(_0x38ee5a['every'](_0xbe1940=>_0x4c7dca['containsRange'](_0xbe1940,!0x0))){const _0x5c3226=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37d6dd,'accept');return this['forceDefaultExecution'](()=>_0x5c3226(_0x38ee5a,null,_0x39d6fd)),null;}}const _0x2d5be6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37d6dd,'join');let _0x5b0773=null;for(const _0x5c5f05 of this['getSuggestions']())if(_0x5c5f05['author']['id']==_0x40249f['id']&&_0x5c5f05['isInContent']&&'deletion'==_0x5c5f05['type']&&_0x5c5f05['subType']==_0x37d6dd&&Lt(_0x5c5f05,_0x39d6fd)&&(_0x2d5be6(_0x5c5f05['getRanges'](),_0x38ee5a)||_0x2d5be6(_0x38ee5a,_0x5c5f05['getRanges']()))){if(_0x5b0773){if(_0x5c5f05['commentThread']&&_0x5c5f05['commentThread']['length'])continue;for(const _0x1f1e50 of _0x5c5f05['getRanges']())_0x5b0773['isIntersectingWithRange'](_0x1f1e50)||_0x5b0773['addRange'](_0x1f1e50);_0x5c5f05['removeMarkers']();}else{_0x5b0773=_0x5c5f05;for(const _0x19255e of _0x38ee5a)_0x5c5f05['isIntersectingWithRange'](_0x19255e)||_0x5c5f05['addRange'](_0x19255e);}}if(_0x5b0773)return _0x5b0773;_0x10d686['clear']();for(const {suggestion:_0x527bf1,meta:_0x23c4fb}of this['_findSuggestions'](_0x38ee5a,'deletion'))_0x23c4fb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x23c4fb['containsRangeInObject']&&!_0x23c4fb['isInsideObject'])&&Lt(_0x527bf1,_0x39d6fd)&&_0x10d686['add'](_0x527bf1);for(const _0x7e4df8 of _0x10d686){const _0x433ad5=_0x7e4df8['getRanges']();if(!_0x39d6fd||!_0x39d6fd['skipNestingCheck']){if(_0x38ee5a['every'](_0x5a5818=>_0x433ad5['some'](_0x20cf46=>_0x20cf46['containsRange'](_0x5a5818,!0x0))))return _0x7e4df8;}(!_0x7e4df8['attributes']||!_0x7e4df8['attributes']['skipNestingCheck'])&&(_0x433ad5['every'](_0x2dad15=>_0x38ee5a['some'](_0xe8d69=>_0xe8d69['containsRange'](_0x2dad15,!0x0)))&&_0x7e4df8['discard']());}const _0x36de10=_0x549ca5(),_0x5a297d=_0x40249f['id'],_0xd0eb61='deletion:'+_0x37d6dd,_0xa6f025=this['_setSuggestionData']({'id':_0x36de10,'type':_0xd0eb61,'createdAt':new Date(),'authorId':_0x5a297d,'attributes':_0x39d6fd});for(const _0x510d74 of _0x38ee5a)_0x510d74['detach'](),_0x510d74['isCollapsed']||'$graveyard'==_0x510d74['root']['rootName']||this['_addSuggestionMarker'](_0xd0eb61,_0x36de10,_0x5a297d,_0x510d74,u['getMultiRangeId']());return _0xa6f025;}['markAttributeChange'](_0xa9e698,_0x2383d0,_0x5f35a4,_0x21142f,_0x5cfffe){if(_0xa9e698['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1a3fd2=this['editor']['plugins']['get']('Users')['me']['id'],_0x5f146f=Array['from'](this['_suggestions']['values']())['filter'](_0x3ea3eb=>'attribute'==_0x3ea3eb['type']&&_0x3ea3eb['data']['key']==_0x2383d0&&_0x3ea3eb['isIntersectingWithRange'](_0xa9e698));if('default'===this['_trackFormatChanges']){const _0x5516b1=this['_findSuggestions'](_0xa9e698,'insertion')['filter'](({meta:_0x2a0536})=>_0x2a0536['isOwn']&&!_0x2a0536['isInsideObject']&&!_0x2a0536['isNextTo'])['map'](({suggestion:_0x420431})=>_0x420431);_0x5f146f['unshift'](..._0x5516b1);}const _0x4c9b48=new Map([[_0xa9e698,_0x5f35a4]]);for(const _0x54464e of _0x5f146f){const _0x44c705='attribute'==_0x54464e['type']?_0x54464e['data']['oldValue']:void 0x0,_0x2bbb83=_0x54464e['getFirstRange'](),_0x17b34a=Array['from'](_0x4c9b48['keys']())['find'](_0x54dc95=>_0x54dc95['isIntersecting'](_0x2bbb83));if(!_0x17b34a)continue;const _0x78059e=_0x17b34a['getDifference'](_0x2bbb83);this['_isBlockAttribute'](_0x2383d0)&&'insertion'==_0x54464e['type']&&0x0!=_0x78059e['length']||(_0x4c9b48['delete'](_0x17b34a),_0x78059e['forEach'](_0x45c673=>{_0x4c9b48['set'](_0x45c673,_0x5f35a4);}),'insertion'!=_0x54464e['type']&&_0x44c705!=_0x21142f&&_0x4c9b48['set'](_0x17b34a['getIntersection'](_0x2bbb83),_0x44c705));}const _0x47b6dd=[];for(const [_0x8ac207,_0x5a4514]of _0x4c9b48){const _0x3cdac3=_0x549ca5(),_0x8249ad={'key':_0x2383d0,'oldValue':_0x5a4514,'newValue':_0x21142f};_0x2383d0['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':_0x2383d0});const _0x5125bf=('attribute:'+(_0x2383d0+'|'+Vt({'newValue':_0x21142f})))['substring'](0x0,0x3c),_0x23d63b=this['_setSuggestionData']({'id':_0x3cdac3,'type':_0x5125bf,'data':_0x8249ad,'createdAt':new Date(),'authorId':_0x1a3fd2,'attributes':_0x5cfffe});_0x47b6dd['push'](_0x23d63b),this['_addSuggestionMarker'](_0x5125bf,_0x3cdac3,_0x1a3fd2,_0x8ac207);}return _0x47b6dd;}['enableDefaultAttributesIntegration'](_0x31e56e){this['enableCommand'](_0x31e56e,(_0x2ed48a,..._0x2ecda2)=>{this['_recordAttributeChanges'](()=>{_0x2ed48a(..._0x2ecda2);});});}['registerBlockAttribute'](_0xd50d0e){this['_blockAttributeKeys']['add'](_0xd50d0e);}['registerInlineAttribute'](_0xaf2aa3){this['_inlineAttributeKeys']['add'](_0xaf2aa3);}['_getAttributeKey'](_0x5236de){return'attribute'==_0x5236de['type']?_0x5236de['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3cf065,_0x301e0e){const _0x257742=_0x3cf065['getFirstMarker']();this['_model']['change'](_0x5cdbfc=>{_0x5cdbfc['updateMarker'](_0x257742,{'range':_0x301e0e});});}['_addThreadToSuggestion'](_0x23f923){const _0x53f997=_0x23f923['id'],_0x3d4852=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x53f997)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d4852,'threadId':_0x53f997,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x20f69d=this['_commentsRepository']['getCommentThread'](_0x53f997);_0x20f69d['unbind']('isRemovable'),_0x20f69d['isRemovable']=!0x1,_0x23f923['commentThread']=_0x20f69d;}['_checkSuggestionCorrectness'](_0x20e210,_0x1c01fb,_0x403f78,_0x3a17a8){if(_0x20e210['type']!=_0x1c01fb||_0x20e210['subType']!=_0x403f78||_0x20e210['creator']['id']!=_0x3a17a8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3712bb('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x118a88,_0x203981){const _0x965de9=_0x118a88['getFirstRange']();if(_0x203981['isEqual'](_0x965de9))_0x118a88['removeMarkers']();else{if(_0x965de9['containsRange'](_0x203981)){const _0x1847cc=this['_model']['createPositionAt'](_0x203981['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x118a88,this['_model']['createRange'](_0x965de9['start'],_0x1847cc));const _0x2bb1d5=_0x549ca5(),_0x8f13cb=_0x118a88['creator']['id'],_0x328e45=_0x118a88['type']+':'+_0x118a88['subType'];this['_setSuggestionData']({'id':_0x2bb1d5,'type':_0x328e45,'createdAt':new Date(),'authorId':_0x8f13cb,'data':_0x118a88['data'],'attributes':_0x118a88['attributes']});const _0xe36dd3=this['_model']['createPositionAt'](_0x203981['end']['parent'],'after'),_0x2489a4=this['_model']['createRange'](_0xe36dd3,_0x965de9['end']);this['_addSuggestionMarker'](_0x328e45,_0x2bb1d5,_0x8f13cb,_0x2489a4);}else{if(_0x965de9['containsPosition'](_0x203981['start'])){const _0x391ec8=this['_model']['createPositionAt'](_0x203981['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x118a88,this['_model']['createRange'](_0x965de9['start'],_0x391ec8));}else{const _0x11b400=this['_model']['createPositionAt'](_0x203981['end']['parent'],'after');this['_setSuggestionRange'](_0x118a88,this['_model']['createRange'](_0x11b400,_0x965de9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x76941d){for(const {suggestion:_0x43df85,meta:_0x2adbdb}of this['_findSuggestions'](_0x76941d,'insertion')){if(!_0x2adbdb['isOwn'])continue;const _0x2a22ba=_0x43df85['getRanges']();for(const _0x471e4f of _0x2a22ba)if(!_0x76941d['getDifference'](_0x471e4f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x370874){const _0x4fb6cb=this['editor']['plugins']['get']('Users')['getUser'](_0x370874);if(!_0x4fb6cb)throw new _0x3712bb('track-changes-user-not-found',this);return _0x4fb6cb;}['_getExternalAuthor'](_0x2726c8){const _0x4b6053=this['editor']['plugins']['get']('Users'),_0x52d167=_0x97d532('external:'+_0x2726c8),_0x442e4d=_0x4b6053['getUser'](_0x52d167);return _0x442e4d||_0x4b6053['addUser']({'id':_0x52d167,'name':_0x2726c8});}['_createSuggestion'](_0x35cd3b,_0x47fe4c,_0x564820,_0x361323,_0x3ec35b){const _0x34ad15=this['_getAuthorFromId'](_0x361323),_0x4d1d8a=this['_suggestionFactory']['buildSuggestion'](_0x35cd3b,_0x47fe4c,_0x564820,_0x34ad15,_0x3ec35b,_0x1a7164=>{this['_updateSuggestionData'](_0x564820,{'attributes':_0x1a7164});const _0x4b8beb=this['getSuggestion'](_0x564820);this['_joinWithAdjacentSuggestions'](new Set([_0x4b8beb])),this['_refreshSuggestionsChain'](new Set([_0x4b8beb]));});return this['listenTo'](_0x4d1d8a,'accept',()=>{this['_updateSuggestionData'](_0x564820,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4d1d8a,'discard',()=>{this['_updateSuggestionData'](_0x564820,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x564820,_0x4d1d8a),this['_suggestionState']['set'](_0x4d1d8a,'notReady'),_0x4d1d8a;}['_splitMarkerName'](_0x5ca9c3){const _0xdb2ec4=_0x5ca9c3['split'](':');return{'group':_0xdb2ec4[0x0],'type':_0xdb2ec4[0x1],'subType':_0xdb2ec4['length']>=0x5?_0xdb2ec4[0x2]:null,'id':_0xdb2ec4['length']<0x5?_0xdb2ec4[0x2]:_0xdb2ec4[0x3],'authorId':_0xdb2ec4['length']<0x5?_0xdb2ec4[0x3]:_0xdb2ec4[0x4],'markerCount':0x6==_0xdb2ec4['length']?_0xdb2ec4[0x5]:null};}['_breakSuggestionMarker'](_0x39de97,_0x5c6f9a,_0x11cc5a){const _0x1c7624=_0x39de97['getFirstRange'](),_0x75f113=_0x1c7624['start'],_0x21d912=_0x1c7624['end'];this['_setSuggestionRange'](_0x39de97,this['_model']['createRange'](_0x75f113,_0x5c6f9a));const _0x252b1c=_0x549ca5(),_0xe1cc82=_0x39de97['creator']['id'],_0x218555=_0x39de97['type']+(_0x39de97['subType']?':'+_0x39de97['subType']:'');this['_setSuggestionData']({'id':_0x252b1c,'type':_0x218555,'createdAt':new Date(),'authorId':_0xe1cc82,'originalSuggestionId':_0x39de97['id'],'attributes':_0x39de97['attributes'],'data':_0x39de97['data']});const _0x19fe87=this['_getAttributeKey'](_0x39de97);('formatBlock'==_0x39de97['type']||_0x19fe87&&this['_isBlockAttribute'](_0x19fe87))&&(_0x11cc5a=this['_model']['createPositionBefore'](_0x11cc5a['parent'])),this['_addSuggestionMarker'](_0x218555,_0x252b1c,_0xe1cc82,this['_model']['createRange'](_0x11cc5a,_0x21d912));}['_findSuggestions'](_0x96ef8c,_0x44ad21=null){const _0x11963a=[],_0x599059=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x96ef8c)||(_0x96ef8c=[_0x96ef8c]);for(const _0x5b6d5d of this['getSuggestions']()){if(!_0x5b6d5d['isInContent'])continue;if(_0x44ad21&&_0x5b6d5d['type']!=_0x44ad21)continue;let _0xf1f1a2=!0x1;for(const _0x3810df of _0x5b6d5d['getRanges']()){for(const _0x2c84a2 of _0x96ef8c){const _0x148845=_0x2c84a2['start']['isEqual'](_0x3810df['end'])||_0x2c84a2['end']['isEqual'](_0x3810df['start']);if(_0x148845||_0x2c84a2['getIntersection'](_0x3810df)){const _0x1bcd03=_0x2c84a2['containsRange'](_0x3810df)&&Rt(this['_model']['schema'],_0x3810df['start'],_0x2c84a2),_0x4d4bbd=_0x3810df['containsRange'](_0x2c84a2)&&Rt(this['_model']['schema'],_0x2c84a2['start'],_0x3810df);_0x11963a['push']({'suggestion':_0x5b6d5d,'meta':{'isOwn':_0x599059==_0x5b6d5d['author'],'isNextTo':_0x148845,'isInsideObject':_0x1bcd03,'containsRangeInObject':_0x4d4bbd}}),_0xf1f1a2=!0x0;break;}}if(_0xf1f1a2)break;}}return _0x11963a;}['_addSuggestionMarker'](_0x2d297b,_0x1c9ddb,_0x269d46,_0x2abb0a,_0x3c8708){this['_model']['change'](_0x15a6d7=>{let _0x3010c0='suggestion:'+_0x2d297b+':'+_0x1c9ddb+':'+_0x269d46;_0x3c8708&&(_0x3010c0=_0x3010c0+':'+_0x3c8708),_0x15a6d7['addMarker'](_0x3010c0,{'range':_0x2abb0a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x40171b){const _0x58969c=_0x40171b['previous'],_0x48a87c=_0x40171b['next'];_0x40171b['previous']=null,_0x40171b['next']=null,null!=_0x58969c&&_0x58969c['next']==_0x40171b&&(_0x58969c['next']=_0x48a87c),null!=_0x48a87c&&_0x48a87c['previous']==_0x40171b&&(_0x48a87c['previous']=_0x58969c),'ready'==this['_suggestionState']['get'](_0x40171b)&&(this['_suggestionState']['set'](_0x40171b,'removed'),this['fire']('suggestionUnloaded',_0x40171b,_0x58969c,_0x48a87c));}['_setSuggestionData'](_0x32d213){const _0x4d6bef=_0x32d213['id'],_0x13f641=this['addSuggestionData'](_0x32d213);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5d3621=this['editor']['plugins']['get']('PendingActions'),_0x269211=_0x13f641['hasComments'],_0x453b63=_0x13f641['subType']?_0x13f641['type']+':'+_0x13f641['subType']:_0x13f641['type'],_0x8620c5=this['editor']['locale'],_0x3c3477=_0x5d3621['add'](o(_0x8620c5,'PENDING_ACTION_SUGGESTION')),_0x281025={'id':_0x4d6bef,'type':_0x453b63,'hasComments':_0x269211,'data':_0x32d213['data']||null,'originalSuggestionId':_0x32d213['originalSuggestionId']||null,'attributes':_0x13f641['attributes']};this['_adapter']['addSuggestion'](_0x281025)['then'](_0x1fa6c2=>{_0x13f641['_saved']=!0x0,_0x5d3621['remove'](_0x3c3477),_0x1fa6c2&&_0x1fa6c2['createdAt']&&(this['_suggestions']['get'](_0x4d6bef)['createdAt']=_0x1fa6c2['createdAt']);})['catch'](_0x38e2c1=>{throw _0x4a6da0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x13f641['discard']();}),_0x13f641['stopListening'](),this['_suggestions']['delete'](_0x13f641['id']),this['_suggestionState']['delete'](_0x13f641),_0x38e2c1;});}return _0x13f641;}['_isBlockAttribute'](_0xe81402){return this['_blockAttributeKeys']['has'](_0xe81402);}['_updateSuggestionData'](_0x13523a,_0x4baac7){const _0x3caef1=this['editor']['plugins']['get']('PendingActions'),_0x390053=this['getSuggestion'](_0x13523a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x390053['_saved']){const _0x4e5af=_0x3caef1['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x13523a,_0x4baac7)['then'](()=>{_0x3caef1['remove'](_0x4e5af);});}else _0x390053['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x13523a,_0x4baac7);});}}['_getSuggestionData'](_0x59a51c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3712bb('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x59a51c);}['_handleNewSuggestionMarker'](_0x418c32){const {id:_0x25d72a,type:_0x9fe58b,subType:_0x53f504,authorId:_0x231316}=this['_splitMarkerName'](_0x418c32),_0x29c8af=this['_suggestions']['get'](_0x25d72a)||this['_createSuggestion'](_0x9fe58b,_0x53f504,_0x25d72a,_0x231316,{});switch(this['_checkSuggestionCorrectness'](_0x29c8af,_0x9fe58b,_0x53f504,_0x231316),this['_suggestionState']['get'](_0x29c8af)){case'notReady':this['_getSuggestionData'](_0x25d72a)['then'](_0x32bb3e=>{let _0x543cf9=Promise['resolve']();_0x32bb3e['hasComments']&&(_0x543cf9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x25d72a})),_0x543cf9['then'](()=>{this['addSuggestionData'](_0x32bb3e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x29c8af,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x25d72a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x29c8af,'ready'),this['fire']('suggestionLoaded',_0x29c8af);break;case'ready':this['fire']('suggestionChanged',_0x29c8af);}return _0x29c8af['addMarkerName'](_0x418c32),_0x29c8af;}['_refreshSuggestionsChain'](_0x1a3ac6){const _0xc6a6f8=Array['from'](_0x1a3ac6),_0x5d95c0=_0xc6a6f8['filter'](_0x2475fc=>'attribute'==_0x2475fc['type']);this['_refreshAttributeSuggestionsChain'](_0x5d95c0);const _0x9d46ff=_0xc6a6f8['filter'](_0x11af40=>!_0x11af40['isMultiRange']&&'attribute'!=_0x11af40['type']),_0x1b1aad=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b4493=>!_0x4b4493['isMultiRange']&&'attribute'!=_0x4b4493['type']),_0x1e60e6=_0x1b1aad['filter'](_0x1c3598=>!_0x1a3ac6['has'](_0x1c3598)),_0x436143=new Map(_0x1b1aad['map'](_0x5c0a8a=>[_0x5c0a8a,this['_suggestionFactory']['getSuggestionCallback'](_0x5c0a8a['type'],_0x5c0a8a['subType'],'chain')])),_0x14ca76=new Map(_0x1b1aad['map'](_0x489d2d=>[_0x489d2d,_0x489d2d['getFirstRange']()])),_0x1bc6f5=new Set(),_0x22323a=new Set();for(let _0x5da9a7=0x0;_0x5da9a7<_0x9d46ff['length'];_0x5da9a7++)_0x9a3748(_0x9d46ff[_0x5da9a7],_0x9d46ff,_0x5da9a7+0x1);for(let _0x5ac7a3=0x0;_0x5ac7a3<_0x9d46ff['length'];_0x5ac7a3++)_0x9a3748(_0x9d46ff[_0x5ac7a3],_0x1e60e6,0x0);const _0x309d24=new Set();for(let _0x41c9d7=0x0;_0x41c9d7<_0x9d46ff['length'];_0x41c9d7++){const _0x3b2b59=_0x9d46ff[_0x41c9d7];!_0x22323a['has'](_0x3b2b59)&&_0x3b2b59['previous']&&(_0x309d24['add'](_0x3b2b59['previous']),_0x3b2b59['previous']['next']===_0x3b2b59&&(_0x3b2b59['previous']['next']=null),_0x3b2b59['previous']=null),!_0x1bc6f5['has'](_0x3b2b59)&&_0x3b2b59['next']&&(_0x309d24['add'](_0x3b2b59['next']),_0x3b2b59['next']['previous']===_0x3b2b59&&(_0x3b2b59['next']['previous']=null),_0x3b2b59['next']=null);}function _0x9a3748(_0xbfcd45,_0x54d264,_0x519d04){for(let _0x562cf3=_0x519d04;_0x562cf3<_0x54d264['length'];_0x562cf3++){const _0x587edc=_0x3154ad(_0xbfcd45,_0x54d264[_0x562cf3]);_0x587edc&&(_0x587edc[0x0]['next']=_0x587edc[0x1],_0x587edc[0x1]['previous']=_0x587edc[0x0],_0x1bc6f5['add'](_0x587edc[0x0]),_0x22323a['add'](_0x587edc[0x1]));}}function _0x3154ad(_0xf4968b,_0x510e59){if(_0xf4968b['author']['id']!==_0x510e59['author']['id'])return null;const _0xbd0ec2=_0x436143['get'](_0xf4968b)(_0xf4968b,_0x510e59,_0x14ca76['get'](_0xf4968b),_0x14ca76['get'](_0x510e59));if(!_0xbd0ec2)return null;return _0x436143['get'](_0x510e59)(_0xf4968b,_0x510e59,_0x14ca76['get'](_0xf4968b),_0x14ca76['get'](_0x510e59))?_0xbd0ec2[0x1]['commentThread']&&_0xbd0ec2[0x1]['commentThread']['length']?null:_0xbd0ec2:null;}_0x309d24['size']&&this['_refreshSuggestionsChain'](_0x309d24);}['_refreshAttributeSuggestionsChain'](_0x195ad9){if(0x0==_0x195ad9['length'])return;const _0x5ce7c7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x224eb7=>'attribute'==_0x224eb7['type']&&_0x224eb7['_isDataLoaded']),_0xf652cc=[],_0x2295cd=new Map();for(const _0x28c0eb of _0x5ce7c7){const _0x25532c=_0x97d532(_0x28c0eb['attributes']);_0x2295cd['has'](_0x25532c)||(_0x2295cd['set'](_0x25532c,_0xf652cc['length']),_0xf652cc['push']([]));const _0x5d48eb=_0x2295cd['get'](_0x25532c);_0xf652cc[_0x5d48eb]['push'](_0x28c0eb);}!(function(){_0xf652cc['sort']((_0x4d43be,_0x172429)=>{const _0x2cc1e6=_0x4d43be[0x0]['createdAt'],_0x48cc36=_0x172429[0x0]['createdAt'];return _0x2cc1e6==_0x48cc36?_0x4d43be[0x0]['attributes']['groupId']<_0x172429[0x0]['attributes']['groupId']?-0x1:0x1:_0x2cc1e6<_0x48cc36?-0x1:0x1;});for(const _0x9f7a2c of _0xf652cc)_0x9f7a2c['sort']((_0x1c189c,_0xc0807b)=>_0x1c189c['id']<_0xc0807b['id']?-0x1:0x1);}());for(let _0x5892f4=0x0;_0x5892f4<_0xf652cc['length'];_0x5892f4++){if(0x0==_0xf652cc[_0x5892f4]['length'])continue;const _0x1380e9=[];for(let _0x45d688=_0x5892f4+0x1;_0x45d688<_0xf652cc['length'];_0x45d688++)0x0!=_0xf652cc[_0x45d688]['length']&&_0x1416fe(_0xf652cc[_0x5892f4],_0xf652cc[_0x45d688])&&_0x1380e9['push'](_0x45d688);for(const _0x44d197 of _0x1380e9)_0xf652cc[_0x5892f4]=_0xf652cc[_0x5892f4]['concat'](_0xf652cc[_0x44d197]),_0xf652cc[_0x44d197]=[];}for(const _0x170df7 of _0xf652cc)for(let _0x577793=0x0;_0x577793<_0x170df7['length'];_0x577793++)_0x170df7[_0x577793]['next']=_0x170df7[_0x577793+0x1]||null;for(const _0x22addd of _0xf652cc)for(let _0x49c576=0x0;_0x49c576<_0x22addd['length'];_0x49c576++)_0x22addd[_0x49c576]['previous']=_0x22addd[_0x49c576-0x1]||null;function _0x1416fe(_0x55e2af,_0x2cbbb7){if(_0x55e2af[0x0]['attributes']['groupId']!==_0x2cbbb7[0x0]['attributes']['groupId']&&_0x55e2af[0x0]['author']!==_0x2cbbb7[0x0]['author'])return!0x1;if(!function(_0x4d4964,_0x32b694){if(!_0x4d4964['hasComments']&&!_0x32b694['hasComments'])return!0x0;if(_0x4d4964['hasComments']&&_0x32b694['hasComments'])return!0x1;if(_0x4d4964['hasComments']&&_0x32b694['createdAt']<_0x4d4964['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x32b694['hasComments']&&_0x4d4964['createdAt']<_0x32b694['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x55e2af[0x0],_0x2cbbb7[0x0]))return!0x1;const _0x27a65d=Bt(_0x55e2af[0x0]['attributes'],'groupId'),_0x572bea=Bt(_0x2cbbb7[0x0]['attributes'],'groupId');if(!_0x5b6ec8(_0x27a65d,_0x572bea))return!0x1;return!!_0x55e2af['every'](_0x12f3c0=>_0x2cbbb7['some'](_0xd52a9f=>_0x12f3c0['getFirstRange']()['isEqual'](_0xd52a9f['getFirstRange']())))&&_0x2cbbb7['every'](_0x355e77=>_0x55e2af['some'](_0x5df785=>_0x355e77['getFirstRange']()['isEqual'](_0x5df785['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x108075){const _0x27770c=Array['from'](_0x108075),_0x7c566e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3c996d=_0x7c566e['filter'](_0x3cb263=>!_0x108075['has'](_0x3cb263)),_0x3ee325=new Map(_0x27770c['map'](_0x346773=>[_0x346773,this['_suggestionFactory']['getSuggestionCallback'](_0x346773['type'],_0x346773['subType'],'join')])),_0x390cde=new Map(_0x7c566e['map'](_0x48c022=>[_0x48c022,_0x48c022['getRanges']()]));for(let _0x188d91=0x0;_0x188d91<_0x27770c['length'];_0x188d91++){if(_0xc16559(this,_0x27770c[_0x188d91],_0x27770c,_0x188d91+0x1))return!0x0;}for(let _0x1ac738=0x0;_0x1ac738<_0x27770c['length'];_0x1ac738++){if(_0xc16559(this,_0x27770c[_0x1ac738],_0x3c996d,0x0))return!0x0;}return!0x1;function _0xc16559(_0x59b6c7,_0x3a5f3d,_0x57b83b,_0x1485d8){for(let _0x4a7223=_0x1485d8;_0x4a7223<_0x57b83b['length'];_0x4a7223++){const _0x1c8d5f=_0x57b83b[_0x4a7223];if(_0x1c8d5f['type']!==_0x3a5f3d['type']||_0x1c8d5f['author']['id']!==_0x3a5f3d['author']['id']||_0x1c8d5f['subType']!==_0x3a5f3d['subType'])continue;if(!Pt(_0x3a5f3d,_0x1c8d5f,['groupId']))continue;if('attribute'==_0x3a5f3d['type']&&_0x3a5f3d['data']['oldValue']!=_0x1c8d5f['data']['oldValue'])continue;if('attribute'==_0x3a5f3d['type']&&_0x59b6c7['_isBlockAttribute'](_0x3a5f3d['data']['key']))continue;if('formatBlock'==_0x3a5f3d['type']){const _0x29f006=_0x59b6c7['editor']['model'],_0x30a99b=_0x3a5f3d['getContainedElement']();if(_0x30a99b&&(_0x29f006['schema']['isObject'](_0x30a99b)||_0x29f006['schema']['isLimit'](_0x30a99b)))continue;}const _0x482d68=_0x3ee325['get'](_0x3a5f3d),_0x94a872=_0x390cde['get'](_0x3a5f3d),_0x1c8abc=_0x390cde['get'](_0x1c8d5f),_0x132d7a=_0x3a5f3d['commentThread']&&_0x3a5f3d['commentThread']['length'],_0x5c84e0=_0x1c8d5f['commentThread']&&_0x1c8d5f['commentThread']['length'];if(!_0x132d7a&&_0x482d68(_0x1c8abc,_0x94a872))return _0x59b6c7['_joinSuggestions'](_0x1c8d5f,_0x3a5f3d),_0x390cde['delete'](_0x3a5f3d),!0x0;if(!_0x5c84e0&&_0x482d68(_0x94a872,_0x1c8abc))return _0x59b6c7['_joinSuggestions'](_0x3a5f3d,_0x1c8d5f),_0x390cde['delete'](_0x1c8d5f),!0x0;}return!0x1;}}['_joinSuggestions'](_0xf9c664,_0x2606c7){if(_0xf9c664['isMultiRange']){for(const _0x31fba2 of _0x2606c7['getRanges']())_0xf9c664['addRange'](_0x31fba2);}else{const _0x54d046=_0x2606c7['getFirstRange']()['end'];this['_setSuggestionRange'](_0xf9c664,this['_model']['createRange'](_0xf9c664['getFirstRange']()['start'],_0x54d046));}_0x2606c7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x32649d,_0x1e2380){const _0x3dfe57=_0x32649d['startsWith']('format')||_0x32649d['startsWith']('attribute')?'FORMATTING':_0x32649d['toUpperCase']();return o(this['editor']['locale'],_0x1e2380+'_'+_0x3dfe57+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x298108=this['editor'];if(!_0x298108['ui'])return;const {ariaLiveAnnouncer:_0x21cb3a}=_0x298108['ui'];_0x269ea8(this['_model'],({left:_0x39e9cf,entered:_0xa6edc8})=>{for(const _0x319f6d of _0x39e9cf){const {group:_0xe221a6,type:_0x5227bc}=this['_splitMarkerName'](_0x319f6d['name']);if('suggestion'===_0xe221a6){_0x21cb3a['announce'](this['_getMarkerAnnouncementText'](_0x5227bc,'LEAVE'));break;}}for(const _0x4f5d8a of _0xa6edc8){const {group:_0x139aa9,type:_0x6ff733}=this['_splitMarkerName'](_0x4f5d8a['name']);if('suggestion'===_0x139aa9){_0x21cb3a['announce'](this['_getMarkerAnnouncementText'](_0x6ff733,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1c778d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4fff0b=this['editor'],_0x30eae8=_0x4fff0b['model']['document']['differ']['getChanges']();if(0x0==_0x30eae8['length'])return!0x1;const _0x48d198=[],_0x3f6cc0=_0x30eae8['filter'](_0x558db6=>'attribute'==_0x558db6['type']),_0x8322e0=_0x30eae8['filter'](_0x3caa8e=>'insert'==_0x3caa8e['type']&&'$text'!=_0x3caa8e['name']),_0x412f38=_0x30eae8['filter'](_0x167f3d=>'remove'==_0x167f3d['type']&&'$text'!=_0x167f3d['name']);for(const _0x377fec of _0x3f6cc0)_0x48d198['push']({'key':_0x377fec['attributeKey'],'newValue':_0x377fec['attributeNewValue'],'oldValue':_0x377fec['attributeOldValue'],'range':Ot(_0x377fec['range'],_0x4fff0b['model'])});for(const _0x2c7ab3 of _0x8322e0){const _0x27ef00=_0x412f38['find'](_0x27991c=>_0x27991c['position']['isEqual'](_0x2c7ab3['position']));_0x27ef00&&_0x48d198['push']({'key':m,'newValue':_0x2c7ab3['name'],'oldValue':_0x27ef00['name'],'range':_0x4fff0b['model']['createRangeOn'](_0x2c7ab3['position']['nodeAfter'])});}return 0x0!=_0x48d198['length']&&this['_reduceExistingSuggestions'](_0x1c778d,_0x48d198);}['_processAttributeSuggestions'](_0x2e5d21){let _0x359548=!0x1;const _0x364dd0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2ef726=>_0x2ef726['data']['newRange']&&_0x2ef726['name']['startsWith']('suggestion:attribute:'));for(const _0x25059e of _0x364dd0){const {subType:_0x3ef80d,id:_0x3c38b9}=this['_splitMarkerName'](_0x25059e['name']),_0x1118b6=_0x3ef80d['split']('|')[0x0];for(const _0x4a2d76 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4a2d76['id']!=_0x3c38b9&&'attribute'==_0x4a2d76['type']&&_0x4a2d76['data']&&_0x4a2d76['data']['key']==_0x1118b6&&_0x4a2d76['getFirstRange']()['isIntersecting'](_0x25059e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4a2d76,_0x25059e['data']['newRange'],_0x2e5d21),_0x359548=!0x0);}return _0x359548;}['_recordAttributeChanges'](_0x33e00a){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x33e00a();}['_isRegisteredAttribute'](_0x1527b){const _0x26657f=this['_isBlockAttribute'](_0x1527b),_0x1bbde4=this['_inlineAttributeKeys']['has'](_0x1527b);return _0x26657f||_0x1bbde4;}['_reduceExistingSuggestions'](_0x3d1d7a,_0x511eac){if(0x0==_0x511eac['length'])return!0x1;let _0x1c10da=!0x1;for(const _0x43cbcf of _0x511eac){const _0x409751=this['_findSuggestions'](_0x43cbcf['range'],'attribute')['filter'](_0xffef67=>!_0xffef67['meta']['isNextTo'])['map'](_0x2658c1=>_0x2658c1['suggestion']),_0x537b2f=_0x97d532({'newValue':_0x43cbcf['newValue']});_0x409751['filter'](_0x4357d6=>{const [_0x2596d,_0x3b1442]=_0x4357d6['subType']['split']('|');return _0x2596d==_0x43cbcf['key']&&_0x3b1442!=_0x537b2f;})['forEach'](_0x1f1ff3=>{this['_reduceSuggestionAttributeRange'](_0x1f1ff3,_0x43cbcf['range'],_0x3d1d7a),_0x1c10da=!0x0;});}return _0x1c10da;}['_reduceSuggestionAttributeRange'](_0x23b16c,_0x4d8a28,_0x574ba1){const _0x102adf=_0x23b16c['getFirstRange']()['getDifference'](_0x4d8a28);0x0!==_0x102adf['length']?0x1!==_0x102adf['length']?this['_breakSuggestionMarker'](_0x23b16c,_0x4d8a28['start'],_0x4d8a28['end']):this['_setSuggestionRange'](_0x23b16c,_0x102adf[0x0]):_0x574ba1['removeMarker'](_0x23b16c['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x37997a){this['_editor']=_0x37997a,this['_model']=_0x37997a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x13abbc,_0x363783,_0x4a0149,_0x5a41d8,_0x39222a,_0x10c3cf){return new u(this['_model'],{'type':_0x13abbc,'subType':_0x363783,'id':_0x4a0149,'author':_0x5a41d8,'creator':_0x5a41d8,'attributes':_0x39222a,'onAttributesChange':_0x10c3cf,'onAccept':(..._0x2731d7)=>this['getSuggestionCallback'](_0x13abbc,_0x363783,'accept')(..._0x2731d7),'onDiscard':(..._0x2c6ae1)=>this['getSuggestionCallback'](_0x13abbc,_0x363783,'discard')(..._0x2c6ae1)});}['registerCustomCallback'](_0xf944e1,_0x3ac28d,_0x4f1beb,_0x3952fe){const _0x29f0e1=_0xf944e1+':'+_0x3ac28d+':'+_0x4f1beb;this['_customCallbacks']['set'](_0x29f0e1,_0x3952fe);}['getSuggestionCallback'](_0x5bd777,_0xf24291,_0x38eddb){const _0x2c490a=_0x5bd777+':'+_0xf24291+':'+_0x38eddb;return this['_customCallbacks']['get'](_0x2c490a)||this['_defaultCallbacks']['get'](_0x5bd777+':'+_0x38eddb);}['_registerDefaultCallbacks'](){const _0xa8edb8=()=>!0x1,_0x5aa30e=_0x85828a=>{_0x85828a['sort']((_0x246121,_0x4e9930)=>_0x246121['start']['isBefore'](_0x4e9930['start'])?0x1:-0x1),this['_model']['change'](_0x4696d3=>{for(const _0x13c6bb of _0x85828a){let _0x24cfdf;_0x24cfdf=_0x13c6bb['end']['isAtEnd']&&_0x13c6bb['end']['parent']==_0x13c6bb['start']['nodeAfter']?_0x4696d3['createSelection'](_0x13c6bb['start']['nodeAfter'],'on'):_0x4696d3['createSelection'](_0x13c6bb),this['_model']['deleteContent'](_0x24cfdf,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4e4e82=(_0x5bcc3b,_0x3b2358)=>{_0x3b2358&&this['_model']['change'](_0x31cc4e=>{const {commandName:_0x1e9ecb,commandParams:_0x14429b=[]}=_0x3b2358,_0x50bf87=_0x5bcc3b['map'](_0x26bbbd=>(Tt(_0x26bbbd)&&(_0x26bbbd=this['_model']['createRange'](_0x26bbbd['end'])),_0x26bbbd))['filter'](_0x427dda=>'$graveyard'!==_0x427dda['root']['rootName']);if(_0x50bf87['length']<0x1)return;const _0x319422=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5d1765=>_0x3c5a16['fromRange'](_0x5d1765));_0x31cc4e['setSelection'](_0x50bf87);for(const _0x33fc12 of this['_editor']['commands']['commands']())_0x33fc12['refresh']();_0x14429b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1e9ecb,..._0x14429b);const _0x81434c=_0x319422['filter'](_0x211298=>'$graveyard'!=_0x211298['root']['rootName']);_0x81434c['length']>0x0&&_0x31cc4e['setSelection'](_0x81434c);for(const _0x535437 of _0x319422)_0x535437['detach']();});},_0x21a295=(_0x34a416,_0x41fa6c)=>0x1==_0x34a416['length']&&0x1==_0x41fa6c['length']&&_0x34a416[0x0]['end']['isEqual'](_0x41fa6c[0x0]['start']),_0x535d69=(_0x500474,_0x20783c,_0x3559e5,_0x4b416e)=>Ft(_0x500474,_0x20783c,_0x3559e5,_0x4b416e,this['_model'])?[_0x500474,_0x20783c]:Ft(_0x20783c,_0x500474,_0x4b416e,_0x3559e5,this['_model'])?[_0x20783c,_0x500474]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xa8edb8),this['_defaultCallbacks']['set']('insertion:discard',_0x5aa30e),this['_defaultCallbacks']['set']('insertion:join',_0x21a295),this['_defaultCallbacks']['set']('insertion:chain',_0x535d69),this['_defaultCallbacks']['set']('deletion:accept',_0x5aa30e),this['_defaultCallbacks']['set']('deletion:discard',_0xa8edb8),this['_defaultCallbacks']['set']('deletion:join',_0x21a295),this['_defaultCallbacks']['set']('deletion:chain',_0x535d69),this['_defaultCallbacks']['set']('formatInline:accept',_0x4e4e82),this['_defaultCallbacks']['set']('formatInline:discard',_0xa8edb8),this['_defaultCallbacks']['set']('formatInline:join',_0x21a295),this['_defaultCallbacks']['set']('formatInline:chain',_0xa8edb8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4e4e82),this['_defaultCallbacks']['set']('formatBlock:discard',_0xa8edb8),this['_defaultCallbacks']['set']('formatBlock:join',_0x21a295),this['_defaultCallbacks']['set']('formatBlock:chain',_0xa8edb8),this['_defaultCallbacks']['set']('attribute:accept',_0xa8edb8),this['_defaultCallbacks']['set']('attribute:discard',(_0x3ae865,_0x981955)=>{if(!_0x981955)return;const _0x1a587e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2d3dae=>{if(_0x981955['key']==m)for(const _0x5b91de of _0x3ae865){const _0xca7a4f=_0x5b91de['start']['nodeAfter'],_0x46545c=_0x981955['oldValue'];_0x2d3dae['rename'](_0xca7a4f,_0x46545c);}else{if(_0x1a587e['_isBlockAttribute'](_0x981955['key'])){for(const _0x85f861 of _0x3ae865)void 0x0!==_0x981955['oldValue']?_0x2d3dae['setAttribute'](_0x981955['key'],_0x981955['oldValue'],_0x85f861['start']['nodeAfter']):_0x2d3dae['removeAttribute'](_0x981955['key'],_0x85f861['start']['nodeAfter']);}else{for(const _0x2e23f5 of _0x3ae865)_0x981955['oldValue']?_0x2d3dae['setAttribute'](_0x981955['key'],_0x981955['oldValue'],_0x2e23f5):_0x2d3dae['removeAttribute'](_0x981955['key'],_0x2e23f5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x21a295);}}function Rt(_0x5d3e12,_0x242821,_0xc29c6){for(const _0x173be0 of _0x242821['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x173be0['root']==_0x173be0)return!0x1;if(!_0xc29c6['containsItem'](_0x173be0))return!0x1;if(_0x5d3e12['isObject'](_0x173be0)||_0x5d3e12['isLimit'](_0x173be0))return!0x0;}return!0x1;}function Tt(_0x13096b){return _0x13096b['end']['parent']==_0x13096b['start']['nodeAfter']&&_0x13096b['end']['isAtStart'];}function Et(_0x11f089,_0x2ee91f,_0x3e5f45,_0x516c19){const _0x1c9d87=_0x41031e=>!_0x41031e['item']['is']('$textProxy')&&!_0x516c19['isObject'](_0x41031e['item']),_0x3fe83c=_0x11f089['start']['getLastMatchingPosition'](_0x1c9d87),_0x3f8727=_0x11f089['end']['getLastMatchingPosition'](_0x1c9d87,{'direction':'backward'});return(!_0x11f089['start']['isEqual'](_0x3fe83c)||!_0x11f089['end']['isEqual'](_0x3f8727))&&(_0x3fe83c['isBefore'](_0x3f8727)?_0x3e5f45['updateMarker'](_0x2ee91f,{'range':_0x3e5f45['createRange'](_0x3fe83c,_0x3f8727)}):_0x3e5f45['removeMarker'](_0x2ee91f),!0x0);}function Vt(_0x485f70){return _0x97d532(_0x485f70);}function Ut(_0x329324){const _0x54334a=_0x329324['start']['nodeAfter'];return _0x54334a&&_0x54334a['is']('element');}function Ot(_0xcd27da,_0x375f86){return null==_0xcd27da['end']['nodeBefore']&&_0xcd27da['end']['parent']==_0xcd27da['start']['nodeAfter']?Gt(_0xcd27da['start']['nodeAfter'],_0x375f86):_0xcd27da;}function Gt(_0xd623ef,_0x135a5a){const _0x49a6f7=_0x135a5a['schema']['isObject'](_0xd623ef)||_0x135a5a['schema']['isSelectable'](_0xd623ef);return _0x135a5a['createRange'](_0x135a5a['createPositionAt'](_0xd623ef,'before'),_0x49a6f7?_0x135a5a['createPositionAfter'](_0xd623ef):_0x135a5a['createPositionAt'](_0xd623ef,'end'));}function Ft(_0x10b29c,_0x3de8e8,_0x3fe0dd,_0x49a32a,_0x4a9378){if(!Pt(_0x10b29c,_0x3de8e8))return!0x1;if(_0x3fe0dd['end']['isEqual'](_0x49a32a['start']))return!0x0;if(_0x10b29c['type']!=_0x3de8e8['type'])return!0x1;if(!_0x3fe0dd['end']['isTouching'](_0x49a32a['start']))return!0x1;const _0x41eeb0=_0x4a9378['createRange'](_0x3fe0dd['end'],_0x49a32a['start'])['getWalker']();for(const _0x23d062 of _0x41eeb0)if(['elementStart','elementEnd']['includes'](_0x23d062['type'])&&_0x4a9378['schema']['isLimit'](_0x23d062['item']))return!0x1;return!0x0;}function Pt(_0x32e48a,_0x19bc05,_0x2b97f4=[]){return!(!_0x32e48a['_isDataLoaded']||!_0x19bc05['_isDataLoaded'])&&_0x5b6ec8(Bt(_0x32e48a['attributes'],_0x2b97f4),Bt(_0x19bc05['attributes'],_0x2b97f4));}function Lt(_0x25b24d,_0x3cef46){const _0x6f2e47=Ht(_0x25b24d['attributes']),_0x49b035=Ht(_0x3cef46);if(!_0x25b24d['_isDataLoaded'])return!0x1;for(const _0x46bc98 of Object['keys'](_0x49b035))if(!_0x5b6ec8(_0x6f2e47[_0x46bc98],_0x49b035[_0x46bc98]))return!0x1;return!0x0;}function Ht(_0xc74079){const _0x421f32=Object['assign']({},_0xc74079);return delete _0x421f32['skipNestingCheck'],delete _0x421f32['tablePasteChainId'],_0x421f32;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x4cac1a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x530c5e,_0x532d34,_0xca47a0,_0x5e8c0a){super(),this['model']=_0x532d34,this['view']=_0xca47a0,this['commentThreadController']=_0x5e8c0a,this['_editor']=_0x530c5e,this['_acceptCommand']=_0x530c5e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x530c5e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x7b8b62,_0x215ffe)=>_0x7b8b62||_0x215ffe),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x6f4ef4=>_0x6f4ef4&&this['_editor']['model']['canEditAt'](_0x532d34['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3f8cb4=>_0x3f8cb4&&this['_editor']['model']['canEditAt'](_0x532d34['getRanges']())),this['_pendingAction']=null,_0xca47a0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xca47a0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xca47a0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xca47a0,'change:isDirty',()=>{_0xca47a0['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 _0x110255=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x110255);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x2e69b2{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x4567d9,_0x38717b,_0x15316,_0xf62475){super(_0x4567d9),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x38717b['authoredAt']),this['bind']('authoredAt')['to'](_0x38717b),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x38717b,this['_localUser']=_0x15316,this['_config']=_0xf62475,_0xf62475['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x585223}=this['_config'];this['commentsListView']=new _0x585223(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',_0x361bfe=>_0x361bfe+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1a39d1,_0x1cebf1)=>_0x1a39d1||!!_0x1cebf1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x286eeb}=this['_config'],_0xe3fff0=new _0x286eeb(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xab2ff7=_0xe3fff0['commentInputView'];return _0xe3fff0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xab2ff7,'value',(_0x2ec6b6,_0x144d0a,_0x4e150c)=>!!_0x4e150c||_0x2ec6b6&&!_0x144d0a),_0xab2ff7['on']('submit',(_0x3ba517,_0x25bb10)=>{this['fire']('addComment',_0x25bb10),_0xab2ff7['editor']['setData']('');}),_0xab2ff7['on']('cancel',()=>this['focus']()),_0xab2ff7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xe3fff0;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5513d8,_0x537f04,_0x387e5d,_0x10ba2d){super(_0x5513d8,_0x537f04,_0x387e5d,_0x10ba2d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x8f4ba6=>_0x8f4ba6&&_0x8f4ba6[0x0]?_0x8f4ba6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x57eba1,_0x53ecd2)=>{let _0x9cb0b6='';for(const _0x79a70f of _0x57eba1)_0x9cb0b6+='<p>'+ds(_0x79a70f['content'],_0x79a70f['color'])+'</p>';return _0x53ecd2?_0x9cb0b6:_0x277481(_0x9cb0b6,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5513d8,'Accept\x20suggestion'),_0x59615f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5513d8,'Discard\x20suggestion'),_0x59615f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2475a1(_0x5513d8,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2c498b=this['bindTemplate'],_0x3c3dd9=[{'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':_0x2c498b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2c498b['to']('authoredAt',_0x2ee56e=>this['_config']['formatDateTime'](_0x2ee56e))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x3c3dd9['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x53a2e4={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x2c498b['if']('isActive','ck-suggestion-wrapper--active'),_0x2c498b['to']('type',_0x497127=>'ck-suggestion-'+_0x497127),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x3c3dd9}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x53a2e4['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x53a2e4;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2baf0e,_0x5c2022,_0x533d39)=>{this['_descriptionElement']['innerHTML']=_0x533d39;});}['_createButton'](_0x3ebf48,_0x251f0b,_0x464831,_0x3d1bae,_0x358415){const _0x10fc49=new _0x3a2c54(this['locale']);return _0x10fc49['set']({'label':_0x3ebf48,'icon':_0x251f0b,'tooltip':!0x0,'tooltipPosition':_0x358415}),_0x10fc49['extendTemplate']({'attributes':{'class':_0x464831}}),_0x10fc49['on']('execute',()=>{this['fire'](_0x3d1bae,this['_model']['id']);}),_0x10fc49;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x1632b9,_0x22ecf){let _0x5dd896='';return _0x5dd896+=_0x1632b9['split']('*')['map']((_0xe8d323,_0x5b532d)=>_0x5b532d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xe8d323)+'</span>':us(_0xe8d323))['join'](''),_0x22ecf&&(_0x5dd896+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x22ecf['value']+'\x22\x20title=\x22'+_0x22ecf['title']+'\x22></span>'),_0x5dd896;}function us(_0x5caf13){const _0x25f6e3=document['createElement']('span');return _0x25f6e3['innerText']=_0x5caf13,_0x25f6e3['innerHTML'];}var ie='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x1f2e52{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x48a211,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x38817f){super(_0x38817f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x57f1f0=this['editor']['config'];_0x57f1f0['define']('trackChanges.SuggestionThreadView',ne),_0x57f1f0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x57f1f0['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x47feb1,_0x4f1580){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x406e6c,_0x2c3ada]of this['_handleControllerBuffer']){const _0x17debb=this['_suggestionToController']['has'](_0x406e6c);_0x17debb||_0x2c3ada?_0x17debb&&_0x2c3ada&&this['_destroyController'](_0x406e6c):this['_initializeController'](_0x406e6c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x47feb1,_0x4f1580);}['init'](){const _0x16357f=this['editor'],_0x45d75e=_0x16357f['plugins']['get']('TrackChangesEditing'),_0x349e49=_0x16357f['plugins']['get']('Annotations'),_0x3ee67f=_0x16357f['plugins']['get']('EditorAnnotations'),_0x2896e6=_0x16357f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3ee67f['addSourceCollector'](()=>{const _0xa03343=[];for(const [_0x49dcd3,_0x582e23]of Array['from'](this['_suggestionToController'])){const _0x21c99f=_0x49dcd3['getAllAdjacentSuggestions'](),_0x4a8cad=[];for(const _0x3fc08a of _0x21c99f){if(!_0x3fc08a['isInContent'])continue;if(_0x3fc08a['isMultiRange']){_0x4a8cad['push'](..._0x3fc08a['getRanges']());continue;}const _0x13f4cf=_0x3fc08a['getFirstRange']();if(_0x4a8cad['length']>0x0){const _0x317a21=_0x4a8cad[0x0]['getJoined'](_0x13f4cf);if(_0x317a21){_0x4a8cad[0x0]=_0x317a21;continue;}}_0x4a8cad['push'](_0x13f4cf);}_0xa03343['push']([_0x582e23['view'],_0x4a8cad]);}return _0xa03343;}),this['listenTo'](_0x45d75e,'suggestionLoaded',(_0x40bb47,_0x7576cd)=>{this['listenTo'](_0x7576cd,'change:previous',(_0x56bd84,_0x64ef03,_0x5e806c,_0xaddc8a)=>{_0x7576cd['isInContent']&&(null==_0x5e806c?(this['_updateController'](_0xaddc8a['head']),this['_handleSuggestionControllerDelayed'](_0x7576cd,!0x1)):(this['_updateController'](_0x5e806c['head']),null==_0xaddc8a&&this['_handleSuggestionControllerDelayed'](_0x7576cd,!0x0)));}),null!==_0x7576cd['previous']?this['_updateController'](_0x7576cd['head']):this['_handleSuggestionControllerDelayed'](_0x7576cd,!0x1);}),this['listenTo'](_0x45d75e,'suggestionUnloaded',(_0x270080,_0x2545ee,_0x8ed130)=>{this['stopListening'](_0x2545ee,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2545ee),this['_suggestionToController']['has'](_0x2545ee)&&this['_destroyController'](_0x2545ee),_0x8ed130&&this['_updateController'](_0x8ed130['head']);}),this['listenTo'](_0x45d75e,'suggestionChanged',(_0x29b21a,_0x20fe31)=>{this['_updateController'](_0x20fe31);}),this['listenTo'](_0x349e49,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2896e6,'addComment',(_0x5ec03,{threadId:_0x4d73dd,isFromAdapter:_0x424698})=>{if(_0x424698||!_0x45d75e['hasSuggestion'](_0x4d73dd))return;const _0x1e55d9=_0x45d75e['getSuggestion'](_0x4d73dd);this['_suggestionToController']['get'](_0x1e55d9)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x45e2f0=this['editor']['plugins']['get']('Annotations'),_0x2b40f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28a073=Array['from'](_0x45e2f0['activeAnnotations'],_0x5124e9=>_0x5124e9['innerView'])['filter'](_0x2a3b4e=>this['_viewToController']['has'](_0x2a3b4e)),_0x5724a5=[];for(const _0x493e79 of _0x28a073){const _0x45429=this['_viewToController']['get'](_0x493e79)['model']['getAllAdjacentSuggestions']();_0x5724a5['push'](..._0x45429['reduce']((_0x2f2f8b,_0x3ac3a5)=>[..._0x2f2f8b,..._0x3ac3a5['getMarkerNames']()],[]));}_0x2b40f['activeMarkers']=_0x5724a5;}['_addUIComponentsToFactory'](){const _0xcbd9be=this['editor'],_0x12cde7=_0xcbd9be['locale'],_0x2de36c=o(_0x12cde7,'Track\x20changes'),_0xffdd8b=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x2de36c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x12cde7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x12cde7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x12cde7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x12cde7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2d8c10 of _0xffdd8b)if(ae(_0x2d8c10)){const _0x57fe5a=_0xcbd9be['commands']['get'](_0x2d8c10['model']['commandName']);_0x2d8c10['model']['bind']('isOn','isEnabled')['to'](_0x57fe5a,'value','isEnabled');}_0xcbd9be['ui']['componentFactory']['add']('trackChanges',_0x345367=>this['_createToolbarButton'](_0x345367,_0xffdd8b,_0x2de36c)),_0xcbd9be['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1cadc8=>this['_createMenuBarMenu'](_0x1cadc8,_0xffdd8b,_0x2de36c));}['_createToolbarButton'](_0x264b03,_0x598960,_0x3d19d1){const _0x6f5a35=zt(_0x264b03,Zt),_0x13496e=this['editor']['commands']['get']('trackChanges');_0x6f5a35['buttonView']['set']({'tooltip':_0x3d19d1,'label':_0x3d19d1,'icon':ie}),_0x6f5a35['buttonView']['bind']('isOn')['to'](_0x13496e,'value'),_0x6f5a35['buttonView']['on']('execute',()=>{_0x13496e['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x6f5a35,_0x598960,{'role':'menu'});const _0x174b84=[];for(const _0x4f1c9d of _0x598960)ae(_0x4f1c9d)&&_0x174b84['push'](this['editor']['commands']['get'](_0x4f1c9d['model']['commandName']));const _0x15b0a3=_0x6f5a35['buttonView'];return _0x15b0a3['actionView']['unbind']('isEnabled'),_0x15b0a3['arrowView']['unbind']('isEnabled'),_0x15b0a3['actionView']['bind']('isEnabled')['to'](_0x13496e,'isEnabled'),_0x15b0a3['arrowView']['bind']('isEnabled')['toMany'](_0x174b84,'isEnabled',(..._0x480d36)=>_0x480d36['some'](_0xb46d9=>_0xb46d9)),_0x6f5a35['on']('execute',_0x112e4c=>{this['editor']['execute'](_0x112e4c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x6f5a35;}['_createMenuBarMenu'](_0x11b121,_0xa4a1eb,_0x4c860a){const _0x4d9d2f=new Kt(_0x11b121),_0x110c46=this['editor']['commands']['get']('trackChanges');_0x4d9d2f['buttonView']['set']({'label':_0x4c860a,'icon':ie});const _0xf476ac=new Qt(_0x11b121);for(const _0x57b536 of _0xa4a1eb){if('separator'==_0x57b536['type']){_0xf476ac['items']['add'](new Jt(_0x11b121));continue;}const _0xebf53d=new Xt(_0x11b121,_0x4d9d2f),_0x4bd4de=new Yt(_0x11b121),_0x31bd37=_0x57b536['model'];_0x4bd4de['bind'](...Object['keys'](_0x31bd37))['to'](_0x31bd37),_0x4bd4de['delegate']('execute')['to'](_0x4d9d2f),_0x4bd4de['on']('execute',()=>{this['editor']['execute'](_0x31bd37['commandName']),this['editor']['editing']['view']['focus']();}),_0xebf53d['children']['add'](_0x4bd4de),_0xf476ac['items']['add'](_0xebf53d);}return _0x4d9d2f['bind']('isEnabled')['to'](_0x110c46,'isEnabled'),_0x4d9d2f['panelView']['children']['add'](_0xf476ac),_0x4d9d2f;}['_initializeController'](_0x52b8b4){const _0x398cc7=this['editor'],_0x462386=_0x398cc7['config'],_0xd38a4b=_0x398cc7['plugins']['get']('Annotations'),_0x46132c=_0x398cc7['plugins']['get']('CommentsRepository'),_0x13f357=_0x398cc7['plugins']['get']('EditorAnnotations'),_0x45d37a=_0x398cc7['plugins']['get'](_0x48a211)['me'],_0x523b76=_0x462386['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x58f7ca,CommentThreadInputView:_0x185eea}=_0x398cc7['plugins']['get']('CommentsUI');let _0x485f1a,_0x50327b;this['_annotationViews']['has'](_0x52b8b4['id'])?(_0x50327b=this['_annotationViews']['get'](_0x52b8b4['id']),_0x485f1a=_0x50327b['mainView']):(_0x485f1a=new _0x523b76(_0x398cc7['locale'],_0x52b8b4,_0x45d37a,{'disableComments':this['_disableComments'],'editorConfig':_0x462386['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x462386['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x462386['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x462386['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xee7033(_0x462386['get']('locale')),'CommentView':_0x462386['get']('comments')['CommentView'],'CommentsListView':_0x58f7ca,'CommentThreadInputView':_0x185eea}),_0x485f1a['acceptButton']['on']('execute',()=>{_0x398cc7['editing']['view']['focus']();}),_0x485f1a['discardButton']['on']('execute',()=>{_0x398cc7['editing']['view']['focus']();}),_0x50327b=_0xd38a4b['createAnnotationView'](this['editor']['locale'],_0x485f1a),_0x50327b['bind']('isDirty')['to'](_0x485f1a,'isDirty'),_0x50327b['bind']('length')['to'](_0x485f1a),_0x50327b['bind']('type')['to'](_0x485f1a,'type',_0x156744=>'suggestion-'+_0x156744),this['_annotationViews']['set'](_0x52b8b4['id'],_0x50327b));const _0x5e2a36=_0x46132c['createCommentThreadController'](_0x52b8b4['commentThread'],_0x485f1a),_0x252e60=new oe(_0x398cc7,_0x52b8b4,_0x485f1a,_0x5e2a36),_0x3e2ed6=_0x52b8b4['getAllAdjacentSuggestions']()['filter'](_0x36c3dc=>_0x36c3dc['isInContent']);_0x485f1a['descriptionParts']=_0x398cc7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3e2ed6),this['_suggestionToController']['set'](_0x52b8b4,_0x252e60),this['_viewToController']['set'](_0x485f1a,_0x252e60);const _0x11087f=_0xd38a4b['createAnnotation']({'view':_0x50327b,'target':()=>{const _0x1ac279=[],_0x45200b=_0x52b8b4['getAllAdjacentSuggestions']()['filter'](_0x337f31=>_0x337f31['isInContent']);for(const _0x23b334 of _0x45200b)_0x1ac279['push'](..._0x23b334['getMarkers']());return _0x25b2b7(_0x398cc7['editing'],_0x1ac279);},'type':()=>'suggestion-'+_0x252e60['view']['type']});_0x46132c['_bindAnnotationToEditors'](_0x485f1a,_0x11087f),_0xd38a4b['add'](_0x11087f),_0x13f357['registerAnnotation'](_0x11087f);}['_destroyController'](_0x26c267){const _0x5b4d71=this['editor']['plugins']['get']('CommentsRepository'),_0x538bc1=this['editor']['plugins']['get']('Annotations'),_0x48d289=this['_suggestionToController']['get'](_0x26c267),_0x450d23=_0x48d289['view'],_0x552499=_0x538bc1['getByInnerView'](_0x450d23);_0x5b4d71['_unbindEditors'](_0x450d23),_0x552499&&_0x538bc1['remove'](_0x552499),this['_suggestionToController']['delete'](_0x26c267),this['_viewToController']['delete'](_0x450d23),_0x48d289['destroy']();}['_updateController'](_0x368446){if(!_0x368446['isInContent']||!this['_suggestionToController']['has'](_0x368446))return;const _0x4ff8e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39690e=this['_suggestionToController']['get'](_0x368446),_0x467dc5=_0x368446['getAllAdjacentSuggestions']();_0x39690e['view']['descriptionParts']=_0x4ff8e7['descriptionFactory']['getDescriptions'](_0x467dc5);}['destroy'](){for(const _0x26bd5c of this['_suggestionToController']['keys']())this['_destroyController'](_0x26bd5c);for(const _0x32844f of this['_annotationViews']['values']())_0x32844f['mainView']['destroy']();super['destroy']();}}function ae(_0x3e1c81){return'model'in _0x3e1c81;}class k extends _0x1f2e52{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xed8688){this['editor']['plugins']['get'](p)['adapter']=_0xed8688;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x26116){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x26116);}['getSuggestions']({skipNotAttached:_0x3b1418=!0x1,toJSON:_0x567154=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3b1418,'toJSON':_0x567154});}['getSuggestion'](_0x5e76f9){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5e76f9);}}const T=['Pagination'];class P extends _0x1f2e52{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x32f4c0=this['editor'];if(_0x32f4c0['config']['define']('trackChangesData.editorCreator',_0x11d4e5=>{const _0x296bcc=_0x32f4c0['model']['document']['getRootNames']()['reduce']((_0x14de43,_0x52ab78)=>(_0x14de43[_0x52ab78]='',_0x14de43),{});return _0x32f4c0['constructor']['create'](_0x296bcc,_0x11d4e5);}),'function'!=typeof _0x32f4c0['config']['get']('trackChangesData')['editorCreator'])throw new _0x3712bb('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3a18b3){return N(this['editor'],!0x0,_0x3a18b3);}['getDataWithDiscardedSuggestions'](_0x5e0157){return N(this['editor'],!0x1,_0x5e0157);}}class D extends _0x1f2e52{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x22af95){super(_0x22af95),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x3d29a1){return void 0x0!==_0x3d29a1['getRootsAttributes'];}async function N(_0x49c7b2,_0x352da1,_0x2a7712){const _0xf1a265=_0x41a571(_0x49c7b2,T);_0xf1a265['plugins']['push'](p,D),_0xf1a265['rootsAttributes']=v(_0x49c7b2)?_0x49c7b2['getRootsAttributes']():void 0x0;const _0x5e9661=document['createDocumentFragment'](),_0x159855=_0x49c7b2['config']['get']('trackChangesData')['editorCreator'],_0x74fba4=await _0x159855(_0xf1a265,()=>function(_0x32470c){const _0x426405=document['createElement']('div');return _0x32470c['appendChild'](_0x426405),_0x426405;}(_0x5e9661));!function(_0x3b91fc,_0x2b89cd){const _0x5b2f39=_0x3b91fc['model']['document']['getRootNames']()['reduce']((_0x433d4c,_0x209fde)=>(_0x433d4c[_0x209fde]=_0x3b91fc['data']['get']({'rootName':_0x209fde}),_0x433d4c),{}),_0x32bcda=_0x3b91fc['plugins']['get']('Users')['users']['map'](_0x50165c=>({'id':_0x50165c['id'],'name':_0x50165c['name']})),_0x184f1e=_0x3b91fc['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d82f5=_0x3b91fc['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x107be4=_0x2b89cd['plugins']['get']('Users'),_0x153576=_0x2b89cd['plugins']['get']('TrackChangesEditing'),_0x321dca=_0x2b89cd['plugins']['get']('CommentsRepository');for(const _0x481f00 of _0x32bcda)_0x107be4['getUser'](_0x481f00['id'])||_0x107be4['addUser'](_0x481f00);_0x107be4['me']||_0x107be4['useAnonymousUser']();for(const _0x49b678 of _0x2d82f5)_0x321dca['addCommentThread'](_0x49b678);for(const _0x318a91 of _0x184f1e)_0x153576['addSuggestionData'](_0x318a91);_0x2b89cd['data']['set'](_0x5b2f39);}(_0x49c7b2,_0x74fba4),_0x74fba4['execute'](_0x352da1?'acceptAllSuggestions':'discardAllSuggestions');const _0x49bbdf=v(_0x74fba4)?_0x74fba4['getFullData'](_0x2a7712):_0x74fba4['data']['get'](_0x2a7712);return await _0x74fba4['destroy'](),_0x49bbdf;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};