@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240706.0 → 0.0.0-nightly-20240708.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x38558f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xfe4b35,_0xcdcd7){super(),this['id']=_0xcdcd7['id'],this['type']=_0xcdcd7['type'],this['subType']=_0xcdcd7['subType']||null,this['author']=_0xcdcd7['author'],this['creator']=_0xcdcd7['creator']||_0xcdcd7['author'],this['isExternal']=Boolean(_0xcdcd7['attributes']&&_0xcdcd7['attributes']['@external']),this['data']=null,this['_model']=_0xfe4b35,this['_onAccept']=_0xcdcd7['onAccept'],this['_onDiscard']=_0xcdcd7['onDiscard'],this['_onAttributesChange']=_0xcdcd7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xcdcd7['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 _0x1001e6=this;for(;_0x1001e6['previous'];)_0x1001e6=_0x1001e6['previous'];return _0x1001e6;}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'](_0xc26d43){this['_markerNames']['add'](_0xc26d43);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x34eea8=>this['_model']['markers']['get'](_0x34eea8))['filter'](_0x2aaa29=>_0x2aaa29);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2f6c60=>{for(const _0x37463a of this['getMarkers']())_0x2f6c60['removeMarker'](_0x37463a);}),this['_markerNames']['clear']();}['removeMarker'](_0x3f8c25){this['_model']['change'](_0x47a4f5=>{_0x47a4f5['removeMarker'](_0x3f8c25);}),this['_markerNames']['delete'](_0x3f8c25);}['addRange'](_0x325ae6){const _0x3fb2e2='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3fb2e2),this['_model']['change'](_0x4e9a07=>{_0x4e9a07['addMarker'](_0x3fb2e2,{'range':_0x325ae6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5a7c64){for(const _0x390ee1 of this['getRanges']())if(_0x390ee1['isIntersecting'](_0x5a7c64))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x11831d=>_0x11831d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5ce3c4,_0x5e2c54)=>[..._0x5ce3c4,..._0x5e2c54['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1bf7a1=this['getRanges']();if(0x1!=_0x1bf7a1['length'])return null;const _0x5f3685=_0x1bf7a1[0x0],_0x3f4cfc=_0x5f3685['start']['nodeAfter'],_0x9e0664=_0x5f3685['end']['nodeBefore'];return _0x3f4cfc instanceof _0x29f458?_0x3f4cfc!=_0x9e0664?null:_0x3f4cfc: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 _0x4823e0=[];let _0x387115=this['head'];for(;_0x387115;)_0x4823e0['push'](_0x387115),_0x387115=_0x387115['next'];return _0x4823e0;}['setAttribute'](_0x1d8a6d,_0x3fdb1a){const _0x2f6327=_0x279d7c(this['attributes']);_0x11c0d5(_0x2f6327,_0x1d8a6d,_0x3fdb1a),_0x491897(_0x2f6327,this['attributes'])||(this['attributes']=_0x2f6327,this['_onAttributesChange'](_0x2f6327));}['removeAttribute'](_0x52c130){const _0x4ba8ef=_0x279d7c(this['attributes']);_0x559da3(_0x4ba8ef,_0x52c130),_0x491897(_0x4ba8ef,this['attributes'])||(this['attributes']=_0x4ba8ef,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 _0x9738cc()['substr'](0x1,0x5);}}function o(_0x3fab9e,_0x556d5c,_0x126a3c){const t=_0x3fab9e['t'];switch(_0x556d5c){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',_0x126a3c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x126a3c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x126a3c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x126a3c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x126a3c);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',_0x126a3c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x126a3c);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',_0x126a3c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x126a3c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x126a3c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x126a3c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x126a3c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x126a3c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x126a3c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x126a3c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x126a3c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x126a3c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x126a3c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x126a3c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x126a3c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x126a3c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x126a3c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x126a3c);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'},_0x126a3c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x126a3c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x126a3c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x126a3c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x126a3c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x126a3c);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'},_0x126a3c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x126a3c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x126a3c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x126a3c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x126a3c);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'},_0x126a3c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x126a3c);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'},_0x126a3c);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'},_0x126a3c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x126a3c);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'},_0x126a3c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x126a3c);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'},_0x126a3c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x126a3c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x126a3c);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'},_0x126a3c);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'},_0x126a3c);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 _0x556d5c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x560415,_0x5b6085){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x560415,this['_locale']=_0x5b6085;}['getDescriptions'](_0x40cbc7){const _0x365864=[],_0x29cc27=new Set(),_0x5de20f=new Set();for(let _0x4b1702=0x0;_0x4b1702<_0x40cbc7['length'];_0x4b1702++){const _0x3831bb=_0x40cbc7[_0x4b1702];if(!_0x3831bb['isInContent'])continue;const _0x359d90=this['_handleCustomCallbackDescription'](_0x3831bb);if(_0x359d90){if(null!=_0x3831bb['subType']){if(_0x29cc27['has'](_0x3831bb['subType']))continue;_0x29cc27['add'](_0x3831bb['subType']);}_0x365864['push'](_0x359d90);}else{if('attribute'!=_0x3831bb['type'])'insertion'!=_0x3831bb['type']&&'deletion'!=_0x3831bb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x365864,_0x3831bb,_0x40cbc7[_0x4b1702+0x1]);else{const _0x4c3c99=_0x3831bb['data']['key'];if(_0x5de20f['has'](_0x4c3c99))continue;_0x5de20f['add'](_0x3831bb['data']['key']),_0x4c3c99==m?this['_handleRenameSuggestionDescription'](_0x365864,_0x3831bb):this['_handleAttributeSuggestionDescription'](_0x365864,_0x3831bb);}}}return this['_resolveDescriptionItems'](_0x365864);}['registerDescriptionCallback'](_0x430a53){this['_customCallbacks']['push'](_0x430a53);}['registerElementLabel'](_0x3420f0,_0x3fb9ce,_0x3340f2=_0x80f00['normal']){'function'==typeof _0x3420f0?_0x4c5bcd(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3420f0,'label':_0x3fb9ce,'priority':_0x3340f2}):this['_itemLabels']['set'](_0x3420f0,_0x3fb9ce);}['registerAttributeLabel'](_0x5782ec,_0x5bb3b8){this['_attributeLabels']['set'](_0x5782ec,_0x5bb3b8);}['getItemLabel'](_0x27f4fb,_0xed82d3=0x1){let _0x9bbdb7;for(const _0x39761c of this['_itemLabelsCallbacks'])if(_0x39761c['matchingCallback'](_0x27f4fb)){_0x9bbdb7=_0x39761c['label'];break;}return _0x9bbdb7||(_0x9bbdb7=this['_itemLabels']['get'](_0x27f4fb['name'])),_0x9bbdb7?_0x9bbdb7(_0xed82d3):0x1!==_0xed82d3?_0xed82d3+'\x20'+_0x27f4fb['name']+'s':''+_0x27f4fb['name'];}['_addDescriptionItems'](_0x57c30f,_0x125016){const _0x3be613=_0x125016['getFirstRange']()['getWalker'](),_0x122726='insertion'==_0x125016['type']?'add':'remove';for(const _0x12561a of _0x3be613){const _0x601383=_0x12561a['item'],_0x1c14db=_0x57c30f[_0x57c30f['length']-0x1];if(_0x601383['is']('$textProxy'))_0x1c14db&&_0x1c14db['type']['indexOf']('Container')>-0x1&&_0x57c30f['pop'](),_0x1c14db&&'text'==_0x1c14db['type']?_0x1c14db[_0x122726]+=_0x601383['data']:_0x57c30f['push']({'type':'text','add':'add'==_0x122726?_0x601383['data']:'','remove':'remove'==_0x122726?_0x601383['data']:''});else{if(this['_schema']['isObject'](_0x601383)){const _0x3ed930=_0x601383;if(_0x1c14db&&_0x1c14db['type']['indexOf']('Container')>-0x1&&_0x57c30f['pop'](),'elementEnd'==_0x12561a['type'])continue;_0x1c14db&&_0x1c14db['type']==_0x122726+'Object'&&_0x1c14db['element']['name']==_0x3ed930['name']?_0x1c14db['quantity']++:_0x57c30f['push']({'type':_0x122726+'Object','element':_0x3ed930,'quantity':0x1}),_0x3be613['skip'](_0x513943=>!('elementEnd'==_0x513943['type']&&_0x513943['item']==_0x601383));}else{if(this['_schema']['checkChild'](_0x601383,'$text')||_0x601383['is']('element','softBreak')){const _0x5ec223=_0x601383;if('add'==_0x122726&&'elementStart'==_0x12561a['type']||'remove'==_0x122726&&'elementEnd'==_0x12561a['type'])continue;if(_0x1c14db&&-0x1==_0x1c14db['type']['indexOf']('Container')){'text'==_0x1c14db['type']&&(_0x1c14db[_0x122726]+='\x0a');continue;}let _0x1db556;if(_0x1db556='add'==_0x122726?_0x5ec223['nextSibling']&&!this['_schema']['isObject'](_0x5ec223['nextSibling'])?_0x5ec223['nextSibling']:null:_0x5ec223['previousSibling']&&!this['_schema']['isObject'](_0x5ec223['previousSibling'])?_0x5ec223['previousSibling']:null,_0x5ec223['isEmpty']||_0x1db556&&_0x1db556['isEmpty']){const _0x136fb5=_0x1db556&&_0x1db556['isEmpty']?_0x1db556:_0x5ec223;_0x1c14db&&_0x1c14db['type']==_0x122726+'EmptyContainer'&&_0x1c14db['element']['name']==_0x136fb5['name']?_0x1c14db['quantity']++:_0x57c30f['push']({'type':_0x122726+'EmptyContainer','element':_0x136fb5,'quantity':0x1});}else _0x57c30f['push']({'type':_0x122726+'Container','element':_0x5ec223});}}}}}['_resolveDescriptionItems'](_0x1e914b){const _0x148ef1=this['_locale'],_0x428f21=[],_0x70bea9=[],_0x2d97d3=[];for(const _0x535a86 of _0x1e914b)switch(_0x535a86['type']){case'text':if(_0x535a86['add']=_0x535a86['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x535a86['remove']=_0x535a86['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x535a86['add']&&''!=_0x535a86['remove']){_0x428f21['push']({'type':'replace','content':o(_0x148ef1,'REPLACE_TEXT',['\x22'+_0x535a86['remove']+'\x22','\x22'+_0x535a86['add']+'\x22'])});continue;}if(null!=_0x535a86['add']['match'](/^ +$/)){_0x428f21['push']({'type':'insertion','content':o(_0x148ef1,'*Insert:*\x20%0',o(_0x148ef1,'ELEMENT_SPACE',_0x535a86['add']['length']))});continue;}if(null!=_0x535a86['remove']['match'](/^ +$/)){_0x428f21['push']({'type':'deletion','content':o(_0x148ef1,'*Remove:*\x20%0',o(_0x148ef1,'ELEMENT_SPACE',_0x535a86['remove']['length']))});continue;}if(''!=_0x535a86['add']){_0x428f21['push']({'type':'insertion','content':o(_0x148ef1,'*Insert:*\x20%0','\x22'+_0x535a86['add']+'\x22')});continue;}_0x428f21['push']({'type':'deletion','content':o(_0x148ef1,'*Remove:*\x20%0','\x22'+_0x535a86['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x428f21['push']({'type':'insertion','content':o(_0x148ef1,'*Insert:*\x20%0',this['getItemLabel'](_0x535a86['element'],_0x535a86['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x428f21['push']({'type':'deletion','content':o(_0x148ef1,'*Remove:*\x20%0',this['getItemLabel'](_0x535a86['element'],_0x535a86['quantity']))});continue;case'addContainer':_0x428f21['push']({'type':'insertion','content':o(_0x148ef1,'*Split:*\x20%0',this['getItemLabel'](_0x535a86['element'],_0x535a86['quantity']))});continue;case'removeContainer':_0x428f21['push']({'type':'deletion','content':o(_0x148ef1,'*Merge:*\x20%0',this['getItemLabel'](_0x535a86['element'],_0x535a86['quantity']))});continue;case'addFormat':_0x70bea9['push'](_0x535a86['key']);continue;case'removeFormat':_0x2d97d3['push'](_0x535a86['key']);continue;default:_0x428f21['push'](_0x535a86);}if(_0x70bea9['length']){const _0x32f1e9=_0x70bea9['map'](_0x127e69=>this['_attributeLabels']['has'](_0x127e69)?this['_attributeLabels']['get'](_0x127e69):_0x127e69)['join'](',\x20');_0x428f21['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x32f1e9)});}if(_0x2d97d3['length']){const _0x35464c=_0x2d97d3['map'](_0x73b3d=>this['_attributeLabels']['has'](_0x73b3d)?this['_attributeLabels']['get'](_0x73b3d):_0x73b3d)['join'](',\x20');_0x428f21['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x35464c)});}return _0x428f21;}['_handleCustomCallbackDescription'](_0x3ccf51){for(const _0x3bb5d1 of this['_customCallbacks']){const _0x131809=_0x3bb5d1(_0x3ccf51);if(_0x131809&&'type'in _0x131809)return _0x131809;}}['_handleAttributeSuggestionDescription'](_0x2c63a1,_0x29c9f0){const _0x5a5942=_0x29c9f0['data'],_0x24c299=void 0x0===_0x5a5942['newValue']?'removeFormat':'addFormat';_0x2c63a1['push']({'type':_0x24c299,'key':_0x5a5942['key']});}['_handleRenameSuggestionDescription'](_0x5f4928,_0x164641){_0x5f4928['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x164641['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xdd4d28,_0x3215d0,_0x32997f){if(this['_addDescriptionItems'](_0xdd4d28,_0x3215d0),_0x32997f&&_0x32997f['getFirstRange']()&&!_0x3215d0['getFirstRange']()['end']['isEqual'](_0x32997f['getFirstRange']()['start'])){const _0x20d350=_0xdd4d28[_0xdd4d28['length']-0x1],_0x35b775='insertion'==_0x3215d0['type']?'add':'remove';_0x20d350&&'text'==_0x20d350['type']&&(_0x20d350[_0x35b775]+='\x0a');}}}class E extends _0x5031ea{['afterInit'](){const _0x4de0e6=this['editor'],_0x59ff0b=_0x4de0e6['plugins']['get']('TrackChangesEditing');_0x4de0e6['commands']['get']('showAIAssistant')&&_0x59ff0b['enableCommand']('showAIAssistant');}}class V extends _0x5031ea{['afterInit'](){const _0x4d01af=this['editor'],_0x1bf5f2=_0x4d01af['locale'];if(!_0x4d01af['plugins']['has']('AlignmentEditing'))return;const _0x1a1ae5=_0x4d01af['plugins']['get']('TrackChangesEditing');_0x1a1ae5['enableDefaultAttributesIntegration']('alignment'),_0x1a1ae5['registerBlockAttribute']('alignment'),_0x1a1ae5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1bf5f2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ac5b7=this['editor'],_0x16333d=_0x2ac5b7['locale'];_0x2ac5b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ea714=>{if('formatBlock'!=_0x1ea714['type'])return;const {data:_0x12c41b}=_0x1ea714;if(_0x12c41b&&'alignment'==_0x12c41b['commandName']){const _0xf78f2b=_0x12c41b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x16333d,'*Format:*\x20%0',function(_0x20d578){switch(_0x20d578){case'left':return o(_0x16333d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x16333d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x16333d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x16333d,'FORMAT_JUSTIFY_TEXT');}}(_0xf78f2b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5031ea{['afterInit'](){const _0x160aa6=this['editor'],_0x38268b=_0x160aa6['plugins']['get']('TrackChangesEditing'),_0x27a2eb=_0x160aa6['locale'];for(const _0x3b078e of ti){if(!_0x160aa6['plugins']['has'](_0x3b078e))continue;const _0xf51d4c=_0x3b078e['slice'](0x0,-0x7)['toLowerCase'](),_0xea0547='FORMAT_'+_0xf51d4c['toUpperCase']();_0x38268b['enableDefaultAttributesIntegration'](_0xf51d4c),_0x38268b['registerInlineAttribute'](_0xf51d4c),_0x38268b['descriptionFactory']['registerAttributeLabel'](_0xf51d4c,o(_0x27a2eb,_0xea0547));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51aa79=this['editor'],_0x348fc3=_0x51aa79['locale'],_0x19102c=_0x51aa79['plugins']['get']('TrackChangesEditing');function _0x36a3ca(_0x5878e6,_0x216713){_0x19102c['descriptionFactory']['registerDescriptionCallback'](_0x1e5684=>{if('formatInline'!=_0x1e5684['type'])return;const {data:_0x16e8ba}=_0x1e5684;return _0x16e8ba&&_0x16e8ba['commandName']===_0x5878e6?_0x16e8ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x348fc3,'*Format:*\x20%0',_0x216713)}:{'type':'format','content':o(_0x348fc3,'*Remove\x20format:*\x20%0',_0x216713)}:void 0x0;});}_0x36a3ca('bold',o(_0x348fc3,'FORMAT_BOLD')),_0x36a3ca('italic',o(_0x348fc3,'FORMAT_ITALIC')),_0x36a3ca('underline',o(_0x348fc3,'FORMAT_UNDERLINE')),_0x36a3ca('code',o(_0x348fc3,'FORMAT_CODE')),_0x36a3ca('strikethrough',o(_0x348fc3,'FORMAT_STRIKETHROUGH')),_0x36a3ca('subscript',o(_0x348fc3,'FORMAT_SUBSCRIPT')),_0x36a3ca('superscript',o(_0x348fc3,'FORMAT_SUPERSCRIPT'));}}class O extends _0x5031ea{['afterInit'](){const _0x2a11a8=this['editor'],_0x29e631=_0x2a11a8['locale'];if(!_0x2a11a8['plugins']['has']('BlockQuoteEditing'))return;const _0x1ed397=_0x2a11a8['plugins']['get']('TrackChangesEditing'),_0x1aa253=this['editor']['commands']['get']('blockQuote');_0x1ed397['enableCommand']('blockQuote',(_0x50a18c,_0x376450={})=>{const _0x3515e4=this['editor']['model']['document']['selection'],_0x479f66=_0x376450&&void 0x0!==_0x376450['forceValue']?_0x376450['forceValue']:!_0x1aa253['value'];let _0x3f4166=[];if(_0x479f66){const _0x28bb84=Array['from'](_0x3515e4['getSelectedBlocks']())['filter'](_0x1941ca=>oo(_0x1941ca)||function(_0x4252cc,_0x28e826){const _0x1cfe78=_0x28e826['checkChild'](_0x4252cc['parent'],'blockQuote'),_0x59f77b=_0x28e826['checkChild'](['$root','blockQuote'],_0x4252cc);return _0x1cfe78&&_0x59f77b;}(_0x1941ca,this['editor']['model']['schema']));_0x3f4166=to(_0x28bb84,_0x2a11a8['model']);}else{const _0x16834d=Array['from'](_0x3515e4['getSelectedBlocks']())['filter'](_0x3d5b43=>oo(_0x3d5b43));_0x3f4166=to(_0x16834d,_0x2a11a8['model']);}_0x2a11a8['model']['change'](()=>{for(const _0x2de0be of _0x3f4166)_0x1ed397['markBlockFormat'](_0x2de0be,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x479f66}]});});}),_0x1ed397['descriptionFactory']['registerDescriptionCallback'](_0x52dfa9=>{const {data:_0x26f6c2}=_0x52dfa9;if(_0x26f6c2&&'blockQuote'==_0x26f6c2['commandName']){const _0x35d425=o(_0x29e631,'ELEMENT_BLOCK_QUOTE');return _0x26f6c2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x29e631,'*Set\x20format:*\x20%0',_0x35d425)}:{'type':'format','content':o(_0x29e631,'*Remove\x20format:*\x20%0',_0x35d425)};}});}}function oo(_0x8a8a8b){return'blockQuote'==_0x8a8a8b['parent']['name'];}class G extends _0x5031ea{['afterInit'](){const _0x50f92e=this['editor'];_0x50f92e['plugins']['has']('CaseChange')&&(_0x50f92e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x50f92e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x50f92e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x5031ea{['afterInit'](){const _0x5dd9b5=this['editor'];_0x5dd9b5['commands']['get']('ckbox')&&_0x5dd9b5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5031ea{['afterInit'](){const _0xb0da3a=this['editor'];if(!_0xb0da3a['plugins']['has']('CodeBlock'))return;const _0x4105b2=_0xb0da3a['plugins']['get']('TrackChangesEditing'),_0x4d173f=_0xb0da3a['locale'],_0x59bd60=_0xb0da3a['config']['get']('codeBlock')['languages'],_0x19bc2d=_0xb0da3a['commands']['get']('codeBlock');_0x4105b2['enableCommand']('indentCodeBlock'),_0x4105b2['enableCommand']('outdentCodeBlock'),_0x4105b2['enableCommand']('codeBlock',(_0x47c5d6,_0x44cf64={})=>{const _0x25171a=_0xb0da3a['model'],_0x4d2e0d=_0xb0da3a['model']['document']['selection'],_0x258f79=_0x44cf64&&void 0x0!==_0x44cf64['forceValue']?_0x44cf64['forceValue']:!_0x19bc2d['value'];let _0xaa226c;_0x44cf64['language']||(_0x44cf64['language']=_0x59bd60[0x0]['language']),_0xaa226c=_0x258f79?Array['from'](_0x4d2e0d['getSelectedBlocks']())['filter'](_0x18771b=>eo(_0x18771b)||function(_0x4cf35d,_0x36af2e){if(_0x4cf35d['is']('rootElement')||_0x36af2e['isLimit'](_0x4cf35d))return!0x1;return _0x36af2e['checkChild'](_0x4cf35d['parent'],'codeBlock');}(_0x18771b,_0x25171a['schema'])):Array['from'](_0x4d2e0d['getSelectedBlocks']())['filter'](_0x26838a=>eo(_0x26838a));const _0x31d94b=to(_0xaa226c,_0x25171a);_0x25171a['change'](()=>{for(const _0x40e38e of _0x31d94b)_0x4105b2['markBlockFormat'](_0x40e38e,{'commandName':'codeBlock','commandParams':[{..._0x44cf64,'forceValue':_0x258f79}],'formatGroupId':'blockName'});});}),(_0x4105b2['descriptionFactory']['registerElementLabel']('codeBlock',_0x56e224=>o(_0x4d173f,'ELEMENT_CODE_BLOCK',_0x56e224)),_0x4105b2['descriptionFactory']['registerDescriptionCallback'](_0x58b1b4=>{if('formatBlock'!=_0x58b1b4['type'])return;const _0x3932dc=_0x4d173f['t'],{data:_0x1bf777}=_0x58b1b4;if(!_0x1bf777||'codeBlock'!=_0x1bf777['commandName'])return;const _0x4453f0=_0x1bf777['commandParams'][0x0]['language'],_0x9f4364=_0x3932dc(_0x59bd60['find'](_0x4471be=>_0x4471be['language']===_0x4453f0)['label'])['toLowerCase']();return _0x1bf777['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d173f,'*Set\x20format:*\x20%0',o(_0x4d173f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x9f4364+')')}:{'type':'format','content':o(_0x4d173f,'*Remove\x20format:*\x20%0',o(_0x4d173f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x107860){return'codeBlock'==_0x107860['name'];}class H extends _0x5031ea{['afterInit'](){const _0x50b0b5=this['editor'];if(!_0x50b0b5['plugins']['has']('CommentsEditing'))return;_0x50b0b5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4121f6,_0x494e1b,_0x55efbc){const _0x330cf2=[];for(const _0x5e681b of _0x494e1b['getItems']())_0x5e681b['hasAttribute'](_0x4121f6)&&_0x330cf2['push'](_0x55efbc['createRangeOn'](_0x5e681b));return _0x330cf2;}function _e(_0x5689e3,_0x461831,{showActiveMarker:_0x4686a4=!0x0}={}){const _0x5a85eb=_0x5689e3['plugins']['get']('TrackChangesEditing');return(_0x959af3,_0x3094b6,_0xe3b041)=>{if(!_0xe3b041['consumable']['test'](_0x3094b6['markerRange'],_0x959af3['name']))return;const _0x5be091=_0x3094b6['markerRange']['getWalker'](),_0x1ed3c2=_0x3094b6['markerRange']['start'],_0x4494ec=_0x5689e3['model']['schema'];let _0x55ac45=null,_0x2f49cf=null,_0x48c1c9=!0x1,_0x33939e=!0x1;for(const _0x2d5d01 of _0x5be091){const _0x175ac4=_0x2d5d01['item'];_0x48c1c9=_0x48c1c9||_0x4494ec['isContent'](_0x175ac4);const _0x3ebe81=_0xe3b041['mapper']['toViewElement'](_0x175ac4);if(_0x3ebe81&&_0x3ebe81['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d5d01['type']&&(_0x4494ec['isBlock'](_0x175ac4)&&!_0x4494ec['isLimit'](_0x175ac4)&&(_0x175ac4['nextSibling']||_0x1ed3c2['isAtEnd']?_0x55ac45&&_0x55ac45['parent']==_0x175ac4||(_0x55ac45=_0x175ac4,_0x6f557f(_0x2d5d01['previousPosition']),_0x33939e=!0x0):_0x2f49cf=_0x2f49cf||_0x2d5d01['previousPosition']));}function _0x6f557f(_0x3f05ab){const _0x8ebf15=_0xe3b041['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x461831}),_0x50550a=_0xe3b041['mapper']['toViewPosition'](_0x3f05ab);_0x4686a4&&_0x5a85eb['activeMarkers']['includes'](_0x3094b6['markerName'])&&_0xe3b041['writer']['addClass']('ck-suggestion-marker--active',_0x8ebf15),_0xe3b041['writer']['insert'](_0x50550a,_0x8ebf15),_0xe3b041['mapper']['bindElementToMarker'](_0x8ebf15,_0x3094b6['markerName']);}_0x48c1c9||_0x33939e||!_0x2f49cf||_0x6f557f(_0x2f49cf);};}class q extends _0x5031ea{static get['requires'](){return[_0x330ae7];}['init'](){const _0x2dcfe9=this['editor'],_0x3a45c3=_0x2dcfe9['plugins']['get']('TrackChangesEditing');_0x3a45c3['enableCommand']('delete');const _0xa5d891=_0x2dcfe9['commands']['get']('deleteForward');_0x3a45c3['enableCommand']('deleteForward',(_0x495e32,_0xbb8f1a={})=>{const _0x288b64=_0x2dcfe9['model']['createSelection'](_0x2dcfe9['model']['document']['selection']);_0x288b64['isCollapsed']&&_0x2dcfe9['model']['modifySelection'](_0x288b64,{'direction':'forward','unit':_0xbb8f1a['unit']});const _0x4541fa=_0x288b64['getFirstRange'](),_0x1a51c0=_0x108983['fromRange'](_0x4541fa);let _0x337c4b;_0x495e32(_0xbb8f1a),_0x337c4b='$graveyard'==_0x1a51c0['root']['rootName']?_0x2dcfe9['model']['createRange'](_0x4541fa['start']):_0x2dcfe9['model']['createRange'](_0x1a51c0['start'],_0x1a51c0['end']),_0x1a51c0['detach'](),_0x2dcfe9['model']['enqueueChange'](_0xa5d891['buffer']['batch'],_0x5404ed=>{_0xa5d891['buffer']['lock'](),_0x5404ed['setSelection'](_0x5404ed['createRange'](_0x337c4b['end'])),_0xa5d891['buffer']['unlock']();});}),_0x2dcfe9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2dcfe9,'merge'),{'priority':'high'}),_0x2dcfe9['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x15629c,_0x42ae13,_0x1e524e)=>{_0x1e524e['options']['showSuggestionHighlights']&&_e(_0x2dcfe9,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x15629c,_0x42ae13,_0x1e524e);},{'priority':'high'}),_0x2dcfe9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x24c52f,_0x54dd7b,_0x1a0223)=>{const _0x4377a1=_0x1a0223['mapper']['markerNameToElements'](_0x54dd7b['markerName']);if(_0x4377a1){for(const _0x417f5c of _0x4377a1)_0x417f5c['is']('uiElement')&&(_0x1a0223['mapper']['unbindElementFromMarkerName'](_0x417f5c,_0x54dd7b['markerName']),_0x1a0223['writer']['remove'](_0x417f5c));}},{'priority':'high'});}}class z extends _0x5031ea{['afterInit'](){const _0x291748=this['editor'];if(!_0x291748['plugins']['has']('ListEditing'))return;const _0x33145a=_0x291748['locale'],_0x5b2661=_0x291748['plugins']['get']('TrackChangesEditing'),_0x5ed434=_0x291748['plugins']['has']('TodoListEditing'),_0x1efe44=!!_0x291748['config']['get']('list.multiBlock');function _0x52016a(_0x35eaaf){return{'type':'format','content':''+o(_0x33145a,'*Set\x20format:*\x20%0',_0x35eaaf)};}function _0x10f821(_0x1f90cc){return{'type':'format','content':''+o(_0x33145a,'*Remove\x20format:*\x20%0',_0x1f90cc)};}_0x5b2661['enableDefaultAttributesIntegration']('numberedList'),_0x5b2661['enableDefaultAttributesIntegration']('bulletedList'),_0x5b2661['enableDefaultAttributesIntegration']('customNumberedList'),_0x5b2661['enableDefaultAttributesIntegration']('customBulletedList'),_0x5b2661['enableDefaultAttributesIntegration']('indentList'),_0x5b2661['enableDefaultAttributesIntegration']('outdentList'),_0x5b2661['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5b2661['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5b2661['registerBlockAttribute']('listItemId'),_0x5b2661['registerBlockAttribute']('listType'),_0x5b2661['registerBlockAttribute']('listIndent'),_0x1efe44&&(_0x5b2661['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5b2661['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5ed434&&(_0x5b2661['enableDefaultAttributesIntegration']('todoList'),_0x5b2661['enableDefaultAttributesIntegration']('checkTodoList'),_0x5b2661['registerBlockAttribute']('todoListChecked'),_0x5b2661['descriptionFactory']['registerDescriptionCallback'](_0x3801be=>{const {data:_0x554f59}=_0x3801be;if(_0x554f59&&'todoListChecked'==_0x554f59['key'])return{'type':'format','content':_0x554f59['newValue']?o(_0x33145a,'*Check\x20item*'):o(_0x33145a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5c57b3=>{if(_0x5c57b3['batch']['isUndo'])return!0x1;let _0x3b54ed=!0x1;const _0x6a161b=_0x5b2661['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c69db=>'todoListChecked'===_0x5b2661['_getAttributeKey'](_0x5c69db));for(const _0x3d05ab of _0x6a161b){'todo'!=_0x3d05ab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5b2661['_findSuggestions'](_0x3d05ab['getFirstRange'](),'attribute')['find'](_0x3ad46a=>'listType'===_0x5b2661['_getAttributeKey'](_0x3ad46a['suggestion']))||(_0x5c57b3['removeMarker'](_0x3d05ab['getFirstMarker']()),_0x3b54ed=!0x0));}return _0x3b54ed;})),_0x5b2661['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x33145a,'FORMAT_INDENT'));const _0x3930a1={'type':'format','content':''};_0x5b2661['descriptionFactory']['registerDescriptionCallback'](_0x251eab=>{const {data:_0x85e720}=_0x251eab;if(!_0x85e720||'listType'!=_0x85e720['key'])return;let _0x3aa4a2=_0x251eab['head'];for(;_0x3aa4a2;){if(_0x3aa4a2['data']&&(('listStyle'==_0x3aa4a2['data']['key']||'listMarkerStyle'==_0x3aa4a2['data']['key'])&&(_0x3aa4a2['data']['newValue']&&'default'!=_0x3aa4a2['data']['newValue']||'default'!=_0x3aa4a2['data']['oldValue']&&!_0x85e720['newValue'])||!_0x1efe44&&_0x3aa4a2['data']['key']==m))return _0x3930a1;_0x3aa4a2=_0x3aa4a2['next'];}if(null==_0x85e720['newValue'])switch(_0x85e720['oldValue']){case'bulleted':return _0x10f821(o(_0x33145a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10f821(o(_0x33145a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10f821(o(_0x33145a,'ELEMENT_TODO_LIST'));}switch(_0x85e720['newValue']){case'bulleted':return _0x52016a(o(_0x33145a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x52016a(o(_0x33145a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x52016a(o(_0x33145a,'ELEMENT_TODO_LIST'));}}),_0x5b2661['descriptionFactory']['registerDescriptionCallback'](_0x49b71b=>{const {data:_0x2e552b}=_0x49b71b;if(_0x2e552b&&'listIndent'==_0x2e552b['key'])return null==_0x2e552b['newValue']||null==_0x2e552b['oldValue']&&0x0==_0x2e552b['newValue']?_0x3930a1:void 0x0;}),_0x5b2661['descriptionFactory']['registerDescriptionCallback'](_0x15f290=>{if('attribute'!=_0x15f290['type'])return;const {data:_0x46151a}=_0x15f290;if(!_0x46151a||'listItemId'!=_0x46151a['key'])return;const _0x10a30b=le(_0x15f290);return'newValue'==_0x10a30b?{'type':'format','content':o(_0x33145a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x10a30b?{'type':'format','content':o(_0x33145a,'*Split:*\x20list\x20item')}:_0x3930a1;}),_0x291748['model']['document']['registerPostFixer'](_0x4bc9bf=>this['listItemIdFixer'](_0x4bc9bf)),_0x291748['model']['document']['registerPostFixer'](_0x4c5ae2=>this['noTrackChangesFixer'](_0x4c5ae2)),_0x291748['model']['document']['registerPostFixer'](_0x35e48e=>this['assureChains'](_0x35e48e)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x275273){if(_0x275273['batch']['isUndo']||!_0x275273['batch']['isLocal'])return!0x1;let _0x4dbec1=!0x1;const _0x21ce41=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26cd77=>_0x26cd77['data']&&'listItemId'==_0x26cd77['data']['key'])['filter'](_0x4af111=>_0x4af111['data']['newValue']&&_0x4af111['data']['oldValue']);for(const _0x3d12e1 of _0x21ce41)le(_0x3d12e1)||(_0x275273['removeMarker'](_0x3d12e1['getFirstMarker']()),_0x4dbec1=!0x0);return _0x4dbec1;}['noTrackChangesFixer'](_0x1e7f74){if(_0x1e7f74['batch']['isUndo']||!_0x1e7f74['batch']['isLocal'])return!0x1;const _0x5214c9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5214c9['trackChangesCommand']['value'])return!0x1;let _0x46e642=!0x1;const _0x675d3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x225b81=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x177813=>'attribute'==_0x177813['type'])['filter'](_0x3c76a9=>_0x675d3['includes'](_0x3c76a9['attributeKey']));if(0x0==_0x225b81['length'])return _0x46e642;for(const _0x23415d of _0x225b81){const _0x31945f=_0x5214c9['_findSuggestions'](_0x23415d['range'],'attribute')['filter'](_0xb9f23a=>!_0xb9f23a['meta']['isNextTo'])['map'](_0x1ead50=>_0x1ead50['suggestion'])['filter'](_0x7425ef=>{const _0x2a8319=_0x5214c9['_getAttributeKey'](_0x7425ef);return _0x675d3['includes'](_0x2a8319);});if(_0x31945f['length']){for(const _0x3d2981 of _0x31945f)_0x1e7f74['removeMarker'](_0x3d2981['getFirstMarker']());_0x46e642=!0x0;}}return _0x46e642;}['assureChains'](_0x45790a){if(_0x45790a['batch']['isUndo']||!_0x45790a['batch']['isLocal'])return!0x1;const _0x24f141=this['editor']['plugins']['get']('TrackChangesEditing');let _0x2ba540=!0x1;const _0x216ca4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0xe63721 of _0x24f141['getSuggestions']({'skipNotAttached':!0x0})){const _0x420a67=_0x24f141['_findSuggestions'](_0xe63721['getFirstRange'](),'attribute')['map'](_0x20581b=>_0x20581b['suggestion'])['filter'](_0x5a59d0=>_0x5a59d0['data']&&_0x216ca4['includes'](_0x5a59d0['data']['key']));if(!_0x420a67['length'])continue;const _0x2dc860=_0x420a67[0x0]['head']['attributes']['groupId'];if(!_0x420a67['every'](_0x1cb08a=>_0x1cb08a['attributes']['groupId']===_0x2dc860)){for(const _0x13dca3 of _0x420a67)_0x34b119(_0x13dca3,_0x2dc860)&&(_0x2ba540=!0x0);}}return _0x2ba540;function _0x2ecdda(_0x347eb0,_0x41de78){for(const _0x55cf01 of _0x24f141['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x229829=>'attribute'==_0x229829['type']&&_0x229829['attributes']['groupId']==_0x347eb0))_0x55cf01['setAttribute']('groupId',_0x41de78);}function _0x34b119(_0x2c6f9f,_0x53ac52){let _0x3917ae=_0x2c6f9f['head'],_0x41e262=!0x1;for(;_0x3917ae;)_0x3917ae['attributes']['groupId']!=_0x53ac52&&(_0x2ecdda(_0x3917ae['attributes']['groupId'],_0x53ac52),_0x3917ae['setAttribute']('groupId',_0x53ac52),_0x41e262=!0x0),_0x3917ae=_0x3917ae['next'];return _0x41e262;}}['_supportLegacySuggestions'](){const _0x4ae137=this['editor'],_0x40292b=_0x4ae137['locale'],_0x5df40f=_0x4ae137['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5df40f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x38aa72,_0x4e4349){const _0x4332dc=[];for(let _0x26dfb2 of _0x38aa72)_0x26dfb2['start']['nodeAfter']===_0x26dfb2['end']['parent']&&(_0x26dfb2=_0x4ae137['model']['createRange'](_0x4ae137['model']['createPositionAt'](_0x26dfb2['start']['nodeAfter'],0x0))),_0x4332dc['push'](_0x26dfb2);_0x4ae137['model']['change'](_0x1dac50=>{const _0x4a2ed9=_0x4ae137['model']['document']['selection'],_0x130b5b=Array['from'](_0x4a2ed9['getRanges']())['map'](_0x5eae2e=>_0x108983['fromRange'](_0x5eae2e));_0x1dac50['setSelection'](_0x4332dc),_0x4ae137['commands']['get'](_0x4e4349['commandName'])['refresh'](),_0x4e4349['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4ae137['execute'](_0x4e4349['commandName'],..._0x4e4349['commandParams']),_0x1dac50['setSelection'](_0x130b5b);for(const _0x52b064 of _0x130b5b)_0x52b064['detach']();});}),_0x5df40f['descriptionFactory']['registerElementLabel'](function(_0x5ba590){const _0x4154f8=!_0x4ae137['model']['schema']['isObject'](_0x5ba590),_0x341a4a=_0x5ba590['previousSibling'],_0x494e7a=_0x5ba590['nextSibling'],_0x560806=_0x5ba590['getAttribute']('listItemId'),_0x5abe5e=!_0x341a4a||_0x341a4a['getAttribute']('listItemId')!==_0x560806,_0x171c63=!_0x494e7a||_0x494e7a['getAttribute']('listItemId')!==_0x560806;return _0x4154f8&&Boolean(_0x560806)&&_0x5abe5e&&_0x171c63;},_0x19e030=>o(_0x40292b,'ELEMENT_LIST_ITEM',_0x19e030));}['_registerLegacyDescription'](){const _0xccef65=this['editor'],_0x2671cb=_0xccef65['locale'];function _0x157448(_0x35782b){const _0xa17d5b=_0xccef65['commands']['get']('bulletedList')['value'],_0x41bcc0=_0xccef65['commands']['get']('numberedList')['value'];return'numberedList'===_0x35782b?_0xa17d5b:_0x41bcc0;}_0xccef65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x173448){if('formatBlock'!=_0x173448['type'])return;const {data:_0x3a3769}=_0x173448;if(!_0x3a3769)return;let _0x71ca7f,_0x24b95f,_0x1598c4,_0x2348f3;switch(_0x3a3769['commandName']){case'bulletedList':_0x1598c4=_0x3a3769['commandParams'][0x0]['forceValue'],_0x2348f3=_0x157448(_0x3a3769['commandName']),_0x71ca7f=_0x1598c4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2348f3&&_0xccef65['config']['get']('list.multiBlock')||(_0x71ca7f='*Change\x20to:*\x20%0'),_0x24b95f={'type':'format','content':o(_0x2671cb,_0x71ca7f,o(_0x2671cb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1598c4=_0x3a3769['commandParams'][0x0]['forceValue'],_0x2348f3=_0x157448(_0x3a3769['commandName']),_0x71ca7f=_0x1598c4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2348f3&&_0xccef65['config']['get']('list.multiBlock')||(_0x71ca7f='*Change\x20to:*\x20%0'),_0x24b95f={'type':'format','content':o(_0x2671cb,_0x71ca7f,o(_0x2671cb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x71ca7f='*Indent:*\x20%0',_0x24b95f={'type':'format','content':o(_0x2671cb,_0x71ca7f,o(_0x2671cb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x71ca7f=function(_0x29ee95){const _0x16174f=_0x29ee95['getFirstRange']();let _0x4cb237=_0x16174f['start']['nodeAfter'];for(;_0x4cb237&&_0x16174f['containsItem'](_0x4cb237);){if(_0x4cb237['getAttribute']('listIndent')>0x0)return!0x1;_0x4cb237=_0x4cb237['nextSibling'];}return!0x0;}(_0x173448)?o(_0x2671cb,'*Format:*\x20remove\x20from\x20%0',o(_0x2671cb,function(_0x5c9d8e){return'ELEMENT_'+_0x5c9d8e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x173448))):o(_0x2671cb,'*Outdent:*\x20%0',o(_0x2671cb,'ELEMENT_LIST_ITEM')),_0x24b95f={'type':'format','content':_0x71ca7f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3a3769['multipleBlocks']&&(_0x71ca7f='*Merge:*\x20%0',_0x24b95f={'type':'deletion','content':o(_0x2671cb,_0x71ca7f,o(_0x2671cb,'ELEMENT_LIST_ITEM'))});}return _0x24b95f;});}}function le(_0x3be931){let _0x328b55=_0x3be931['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x328b55;){const _0x2c3d55=_0x328b55['getAttribute']('listItemId');if(!_0x2c3d55)return!0x1;if(_0x2c3d55==_0x3be931['data']['newValue'])return'newValue';if(_0x2c3d55==_0x3be931['data']['oldValue'])return'oldValue';_0x328b55=_0x328b55['previousSibling'];}return!0x1;}class ue extends _0x5031ea{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x47df7b=this['editor']['config']['get']('list.properties'),_0x567166=this['editor']['plugins']['get']('TrackChangesEditing');_0x47df7b['styles']&&(_0x567166['enableDefaultAttributesIntegration']('listStyle'),_0x567166['registerBlockAttribute']('listStyle')),_0x47df7b['reversed']&&(_0x567166['enableDefaultAttributesIntegration']('listReversed'),_0x567166['registerBlockAttribute']('listReversed')),_0x47df7b['startIndex']&&(_0x567166['enableDefaultAttributesIntegration']('listStart'),_0x567166['registerBlockAttribute']('listStart'));const _0x16025d={'type':'format','content':''};_0x567166['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x24605d=this['editor']['locale'];_0x567166['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x24605d,'FORMAT_LIST_REVERSED')),_0x567166['descriptionFactory']['registerDescriptionCallback'](_0x10162b=>{const {data:_0x48c1eb}=_0x10162b;if(_0x48c1eb&&'listReversed'==_0x48c1eb['key'])return null==_0x48c1eb['newValue']||0x0==_0x48c1eb['newValue']&&null==_0x48c1eb['oldValue']?_0x16025d:void 0x0;}),_0x567166['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x24605d,'FORMAT_LIST_START')),_0x567166['descriptionFactory']['registerDescriptionCallback'](_0x1e0b5a=>{const {data:_0xcf8712}=_0x1e0b5a;if(_0xcf8712&&'listStart'==_0xcf8712['key'])return null==_0xcf8712['newValue']||0x1==_0xcf8712['newValue']&&null==_0xcf8712['oldValue']?_0x16025d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3646fd=>{if(_0x3646fd['batch']['isUndo'])return!0x1;let _0x589b11=!0x1;const _0x301cca=_0x567166['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2fd386=>{const _0xc9aa32=_0x567166['_getAttributeKey'](_0x2fd386);return'listStart'==_0xc9aa32||'listReversed'==_0xc9aa32;});for(const _0xf1fc23 of _0x301cca){const _0x1221de=_0xf1fc23['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1221de||'customNumbered'==_0x1221de)continue;_0x567166['_findSuggestions'](_0xf1fc23['getFirstRange'](),'attribute')['find'](_0x44fd9a=>'listType'==_0x567166['_getAttributeKey'](_0x44fd9a['suggestion']))||(_0x3646fd['removeMarker'](_0xf1fc23['getFirstMarker']()),_0x589b11=!0x0);}return _0x589b11;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x12c67d){const _0x27c440=this['editor']['locale'],{data:_0x16792f}=_0x12c67d,_0x522dd0={'type':'format','content':''};if(!_0x16792f||'listStyle'!=_0x16792f['key'])return;if(!_0x16792f['oldValue'])return'default'==_0x16792f['newValue']?_0x522dd0:{'type':'format','content':''+o(_0x27c440,'*Set\x20format:*\x20%0',o(_0x27c440,this['_getTranslationKeyForListStyle'](_0x16792f['newValue'])))};if(!_0x16792f['newValue']){if('default'==_0x16792f['oldValue'])return _0x522dd0;let _0x14bf96=_0x12c67d['head'];for(;_0x14bf96;){if(_0x14bf96['data']&&'listType'==_0x14bf96['data']['key']&&_0x14bf96['data']['newValue'])return _0x522dd0;_0x14bf96=_0x14bf96['next'];}return{'type':'format','content':''+o(_0x27c440,'*Remove\x20format:*\x20%0',o(_0x27c440,this['_getTranslationKeyForListStyle'](_0x16792f['oldValue'])))};}if('default'!=_0x16792f['newValue'])return{'type':'format','content':''+o(_0x27c440,'*Set\x20format:*\x20%0',o(_0x27c440,this['_getTranslationKeyForListStyle'](_0x16792f['newValue'])))};let _0x4a06ad=_0x12c67d['head'];for(;_0x4a06ad;){if(_0x4a06ad['data']&&'listType'==_0x4a06ad['data']['key']&&_0x4a06ad['data']['newValue']&&_0x4a06ad['data']['oldValue'])return _0x522dd0;_0x4a06ad=_0x4a06ad['next'];}return{'type':'format','content':o(_0x27c440,'*Set\x20format:*\x20%0',o(_0x27c440,'ELEMENT_'+_0x12c67d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3ee50b=this['editor'],_0x5d1cfb=_0x3ee50b['locale'];_0x3ee50b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fd4ec=>{if('formatBlock'!=_0x4fd4ec['type'])return;const {data:_0x1af195}=_0x4fd4ec;if(!_0x1af195)return;let _0x2e5a0d,_0x41ca4c;switch(_0x1af195['commandName']){case'listStyle':_0x2e5a0d='*Change\x20to:*\x20%0',_0x41ca4c={'type':'format','content':o(_0x5d1cfb,_0x2e5a0d,o(_0x5d1cfb,this['_getTranslationKeyForListStyle'](_0x1af195['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2e5a0d=_0x1af195['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x41ca4c={'type':'format','content':o(_0x5d1cfb,_0x2e5a0d)};break;case'listStart':_0x2e5a0d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x41ca4c={'type':'format','content':o(_0x5d1cfb,_0x2e5a0d,_0x1af195['commandParams'][0x0]['startIndex'])};}return _0x41ca4c;});}['_getTranslationKeyForListStyle'](_0x47d62b){return'ELEMENT_'+function(_0x11390b){if(pe['includes'](_0x11390b))return'bulleted';if(ye['includes'](_0x11390b))return'numbered';return null;}(_0x47d62b)['toUpperCase']()+'_LIST_'+_0x47d62b['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5031ea{static get['requires'](){return[_0x394f73];}['init'](){const _0x305575=this['editor'],_0x32daf4=_0x305575['plugins']['get']('TrackChangesEditing'),_0x40c201=_0x305575['commands']['get']('enter');_0x32daf4['enableCommand']('enter',()=>{_0x305575['model']['change'](_0x288898=>{const _0x322bc6=_0x305575['model']['document']['selection'],_0x5e1240=_0x322bc6['getFirstPosition'](),_0x58ee9b=_0x108983['fromRange'](_0x322bc6['getFirstRange']());if(_0x40c201['enterBlock'](_0x288898)){const _0x2dfbad=_0x305575['model']['createPositionAt'](_0x5e1240['parent']['nextSibling'],0x0),_0xc0d7d7=_0x288898['createRange'](_0x5e1240,_0x2dfbad);_0x32daf4['markInsertion'](_0xc0d7d7);}else _0x288898['setSelection'](_0x288898['createRange'](_0x58ee9b['end']));_0x58ee9b['detach'](),_0x40c201['fire']('afterExecute',{'writer':_0x288898});});}),_0x305575['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x305575,'split'),{'priority':'high'}),_0x305575['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c4bb5,_0xb1ebd8,_0x4cde04)=>{const _0x5efd63=_0x4cde04['mapper']['markerNameToElements'](_0xb1ebd8['markerName']);if(_0x5efd63){for(const _0x21d3ad of _0x5efd63)_0x21d3ad['hasClass']('ck-suggestion-marker-split')&&(_0x4cde04['mapper']['unbindElementFromMarkerName'](_0x21d3ad,_0xb1ebd8['markerName']),_0x4cde04['writer']['remove'](_0x21d3ad));}},{'priority':'high'}),_0x305575['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40725f,_0xe4dce7,_0x5ed868)=>{_0x5ed868['options']['showSuggestionHighlights']&&_e(_0x305575,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x40725f,_0xe4dce7,_0x5ed868);},{'priority':'high'});}}class J extends _0x5031ea{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3a7cf2=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a7cf2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3a7cf2['enableCommand']('findNext'),_0x3a7cf2['enableCommand']('findPrevious'),_0x3a7cf2['enableCommand']('replace'),_0x3a7cf2['enableCommand']('replaceAll');}['handleFindCommand'](_0x1f16d7,_0x2fcad0,_0x444624={}){const _0x2f5bae=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1f16d7(_0x5e0ec6=>{let _0x590be3=('string'==typeof _0x2fcad0?_0x2f5bae['findByTextCallback'](_0x2fcad0,_0x444624):_0x2fcad0)(_0x5e0ec6);Array['isArray'](_0x590be3)&&(_0x590be3={'results':_0x590be3,'searchText':'string'==typeof _0x2fcad0?_0x2fcad0:''});const _0x204202=_0x590be3['results']['filter'](_0x259aae=>!0x1===this['_isInDeletionRange'](_0x259aae,_0x5e0ec6['item']));return{..._0x590be3,'results':_0x204202};},_0x444624);}['_isInDeletionRange'](_0x217a56,_0x553b4f){const _0x5ab78a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x553b4f,_0x217a56['start']),this['editor']['model']['createPositionAt'](_0x553b4f,_0x217a56['end']));for(const _0x49b2fe of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5ab78a['getIntersection'](_0x49b2fe['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 _0x5031ea{['afterInit'](){const _0x1f9b98=this['editor']['locale'],_0x329386=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5c800c,commandName:_0x4eff9c}of ro)this['editor']['plugins']['has'](_0x5c800c)&&(_0x329386['enableDefaultAttributesIntegration'](_0x4eff9c),_0x329386['registerInlineAttribute'](_0x4eff9c));_0x329386['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1f9b98,'FORMAT_FONT_SIZE')),_0x329386['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1f9b98,'FORMAT_FONT_FAMILY')),_0x329386['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1f9b98,'FORMAT_FONT_COLOR')),_0x329386['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1f9b98,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bdd8c=this['editor'],_0x23d1b7=_0x5bdd8c['locale'];_0x5bdd8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1558f7=>{const _0x174f72=_0x23d1b7['t'];if('formatInline'!=_0x1558f7['type'])return;const {data:_0x2bb5c2}=_0x1558f7;if(null!=_0x2bb5c2){if('fontSize'==_0x2bb5c2['commandName']){const _0x396e67=_0x2bb5c2['commandParams'][0x0]['value'];if(_0x396e67){const _0x275557=_0x174f72(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x12d17e=>_0x12d17e['model']==_0x396e67)['title'])['toLowerCase']();return{'type':'format','content':o(_0x23d1b7,'*Set\x20font\x20size:*\x20%0',_0x275557)};}return{'type':'format','content':o(_0x23d1b7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2bb5c2['commandName']){const _0x9a4a5b=_0x2bb5c2['commandParams'][0x0]['value'];return _0x9a4a5b?{'type':'format','content':o(_0x23d1b7,'*Set\x20font\x20family:*\x20%0',_0x9a4a5b)}:{'type':'format','content':o(_0x23d1b7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2bb5c2['commandName']){const _0x1503d9=_0x2bb5c2['commandParams'][0x0]['value'];if(_0x1503d9){const _0xac51ba=_0x3cb264(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3fc364=>_0x3fc364['model']==_0x1503d9);let _0x2026a9=_0x1503d9,_0x30eeee='';return _0xac51ba&&(_0x2026a9=_0xac51ba['label'],_0x30eeee=_0x174f72(_0x2026a9)['toLowerCase']()),{'type':'format','content':o(_0x23d1b7,'*Set\x20font\x20color:*\x20%0',_0x30eeee)['trim'](),'color':{'value':_0x1503d9,'title':_0x30eeee||_0x2026a9}};}return{'type':'format','content':o(_0x23d1b7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2bb5c2['commandName']){const _0x3e2529=_0x2bb5c2['commandParams'][0x0]['value'];if(_0x3e2529){const _0x404cb3=_0x3cb264(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5989f1=>_0x5989f1['model']==_0x3e2529);let _0x43f015=_0x3e2529,_0x4b46b7='';return _0x404cb3&&(_0x43f015=_0x404cb3['label'],_0x4b46b7=_0x174f72(_0x43f015)['toLowerCase']()),{'type':'format','content':o(_0x23d1b7,'*Set\x20font\x20background\x20color:*\x20%0',_0x4b46b7)['trim'](),'color':{'value':_0x3e2529,'title':_0x4b46b7||_0x43f015}};}return{'type':'format','content':o(_0x23d1b7,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x5031ea{['afterInit'](){const _0x1ad831=this['editor'],_0x46d2e5=_0x1ad831['plugins']['get']('TrackChangesEditing'),_0x1158ab=_0x1ad831['commands']['get']('copyFormat'),_0x26b62a=_0x1ad831['commands']['get']('pasteFormat');_0x1158ab&&_0x26b62a&&(_0x46d2e5['enableDefaultAttributesIntegration']('pasteFormat'),_0x46d2e5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5b82cd=this['editor'],_0xaa0135=_0x5b82cd['locale'];_0x5b82cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xae0f7e=>{if('formatBlock'!=_0xae0f7e['type']&&'formatInline'!=_0xae0f7e['type'])return;const {data:_0x4998ec}=_0xae0f7e;if(_0x4998ec&&'pasteFormat'===_0x4998ec['commandName']){const _0x28f144=[],_0x5d1bb2=_0x4998ec['commandParams'][0x0];for(const [_0x43e191,_0x5e628b]of Object['entries'](_0x5d1bb2))_0x28f144['push'](so(_0x5b82cd,_0x43e191,_0x5e628b));return _0x28f144['length']?{'type':'format','content':o(_0xaa0135,'*Set\x20format\x20to:*\x20%0',_0x28f144['join'](',\x20'))}:{'type':'format','content':o(_0xaa0135,'*Remove\x20all\x20formatting*')};}});}}function so(_0xd5d3ad,_0x386543,_0x40b82f){const _0x77aed1=_0xd5d3ad['locale']['t'],_0x3b10b7=_0x386543['split'](/(?=[A-Z])/)['join']('\x20'),_0x3c936b=_0x77aed1(_0x3b10b7['charAt'](0x0)['toUpperCase']()+_0x3b10b7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x40b82f)return _0x3c936b;if('fontColor'===_0x386543||'fontBackgroundColor'===_0x386543){const _0x494b19=_0x3cb264(_0xd5d3ad['config']['get']('fontColor.colors'))['find'](_0x534368=>_0x534368['model']==_0x40b82f);return _0x3c936b+'\x20('+(_0x494b19?_0x77aed1(_0x494b19['label'])['toLowerCase']():_0x40b82f)+')';}if('fontSize'===_0x386543&&isNaN(parseFloat(_0x40b82f))){const _0x5dbe6e=_0xd5d3ad['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xd5d3ad['config']['get']('fontSize.options'))['find'](_0x5b842d=>_0x5b842d['model']==_0x40b82f);return _0x3c936b+'\x20('+(_0x5dbe6e?_0x77aed1(_0x5dbe6e['title'])['toLowerCase']():_0x40b82f)+')';}return _0x3c936b+'\x20('+_0x40b82f+')';}class Y extends _0x5031ea{['_headingOptions'];['afterInit'](){const _0x5c064f=this['editor'];if(!_0x5c064f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5c064f['config']['get']('heading.options');const _0x3883e0=_0x5c064f['locale'],_0x2309ea=_0x5c064f['plugins']['get']('TrackChangesEditing');_0x2309ea['enableDefaultAttributesIntegration']('heading');for(const _0x4451a5 of this['_headingOptions'])'paragraph'!=_0x4451a5['model']&&_0x2309ea['descriptionFactory']['registerElementLabel'](_0x4451a5['model'],_0x292f54=>{const _0xb261d2=this['_getHeadingLevel'](_0x4451a5['model']);return null!==_0xb261d2?_0x2e7e31(_0x292f54,_0xb261d2):_0x32b5dd(_0x292f54,_0x4451a5['title']);});function _0x2e7e31(_0x32573c,_0x3acc11){return o(_0x3883e0,'ELEMENT_HEADING',[_0x32573c,_0x3acc11]);}function _0x32b5dd(_0x5e04af,_0x3df1e1){return o(_0x3883e0,'ELEMENT_HEADING_CUSTOM',[_0x5e04af,_0x3df1e1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fe408=this['editor'],_0xd146fb=_0x1fe408['locale'];function _0x4f3801(_0x4d7e6d,_0x570b4f){return o(_0xd146fb,'ELEMENT_HEADING_CUSTOM',[_0x4d7e6d,_0x570b4f]);}_0x1fe408['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x421eb1=>{if('formatBlock'!=_0x421eb1['type'])return;const {data:_0x280bad}=_0x421eb1;if(_0x280bad&&'heading'==_0x280bad['commandName']){const _0x3ceb28=_0x280bad['commandParams'][0x0]['value'],_0x1c9d07=this['_getHeadingLevel'](_0x3ceb28);if(null!==_0x1c9d07)return{'type':'format','content':o(_0xd146fb,'*Change\x20to:*\x20%0',(_0x4336d0=0x1,_0x5abe1c=_0x1c9d07,o(_0xd146fb,'ELEMENT_HEADING',[_0x4336d0,_0x5abe1c])))};const _0x43ee74=this['_headingOptions']['find'](_0x5ae289=>_0x5ae289['model']===_0x3ceb28)['title'];return{'type':'format','content':o(_0xd146fb,'*Change\x20to:*\x20%0',_0x4f3801(0x1,_0x43ee74))};}var _0x4336d0,_0x5abe1c;});}['_getHeadingLevel'](_0x28f308){const _0x410677=_0x28f308['match'](/^heading(\d+)/);if(_0x410677)return _0x410677[0x1];const _0x5753de=this['_headingOptions']?.['find'](_0x25b480=>_0x25b480['model']==_0x28f308);if(_0x5753de&&_0x5753de['view']){const _0xbfb8f8=_0x5753de['view'],_0x442198=(_0xbfb8f8['name']??_0xbfb8f8)['match'](/^h(\d+)/);if(_0x442198)return _0x442198[0x1];}return null;}}class Z extends _0x5031ea{['afterInit'](){const _0xae90e7=this['editor'];if(!_0xae90e7['plugins']['has']('HighlightEditing'))return;const _0x3a8bf2=_0xae90e7['plugins']['get']('TrackChangesEditing'),_0x2f2589=_0xae90e7['locale'];_0x3a8bf2['enableDefaultAttributesIntegration']('highlight'),_0x3a8bf2['registerInlineAttribute']('highlight'),_0x3a8bf2['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2f2589,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x271c8f=this['editor'],_0x584d13=_0x271c8f['locale'];_0x271c8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x553c6e=>{if('formatInline'!=_0x553c6e['type'])return;const {data:_0x5b2009}=_0x553c6e;if(_0x5b2009&&'highlight'==_0x5b2009['commandName']){const _0x1000a0=_0x584d13['t'],_0x3af2aa=_0x5b2009['commandParams'][0x0]['value'];if(_0x3af2aa){const _0x3c4557=_0x271c8f['config']['get']('highlight.options')['find'](_0x3c2a4c=>_0x3c2a4c['model']==_0x3af2aa),_0x4d11ee=_0x1000a0(_0x3c4557['title'])['toLowerCase']();return{'type':'format','content':o(_0x584d13,'*Set\x20highlight:*\x20%0',_0x4d11ee),'color':{'value':_0x3c4557['color'],'title':_0x3c4557['title']}};}return{'type':'format','content':o(_0x584d13,'*Remove\x20highlight*',o(_0x584d13,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x5031ea{['afterInit'](){const _0x3912b6=this['editor'];if(!_0x3912b6['plugins']['has']('HorizontalLineEditing'))return;_0x3912b6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x563209=_0x3912b6['plugins']['get']('TrackChangesEditing'),_0x10e870=_0x3912b6['locale'];_0x563209['descriptionFactory']['registerElementLabel']('horizontalLine',_0x130978=>o(_0x10e870,'ELEMENT_HORIZONTAL_LINE',_0x130978)),_0x3912b6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x6db7b3,{writer:_0x2df481,options:_0x59cda6})=>{if(!_0x59cda6['showSuggestionHighlights'])return null;const _0x111ceb=_0x2df481['createContainerElement']('div'),_0x193316=_0x2df481['createEmptyElement']('hr');return _0x2df481['addClass']('ck-horizontal-line',_0x111ceb),_0x2df481['insert'](_0x2df481['createPositionAt'](_0x111ceb,0x0),_0x193316),_0x111ceb;},'converterPriority':'high'});}}class et extends _0x5031ea{['afterInit'](){const _0x52bfc2=this['editor'];if(!_0x52bfc2['plugins']['has']('HtmlEmbed'))return;const _0x582082=_0x52bfc2['plugins']['get']('TrackChangesEditing'),_0x2fa024=_0x52bfc2['locale'];_0x582082['descriptionFactory']['registerElementLabel']('rawHtml',_0x131f72=>o(_0x2fa024,'ELEMENT_HTML_EMBED',_0x131f72)),_0x582082['enableDefaultAttributesIntegration']('htmlEmbed'),_0x582082['registerBlockAttribute']('value'),_0x582082['descriptionFactory']['registerDescriptionCallback'](_0xaa62d3=>{if('attribute'!=_0xaa62d3['type'])return;const {data:_0x4f7772}=_0xaa62d3;if(_0x4f7772&&'value'==_0x4f7772['key']&&_0xaa62d3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x243a27=o(_0x2fa024,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2fa024,'*Change\x20%0\x20content*',_0x243a27)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4df5c9=this['editor'],_0x5a35dd=_0x4df5c9['locale'];_0x4df5c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2355f5=>{if('formatBlock'!=_0x2355f5['type'])return;const {data:_0x33f547}=_0x2355f5;if(_0x33f547&&'htmlEmbed'==_0x33f547['commandName']){const _0x110e5b=o(_0x5a35dd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5a35dd,'*Change\x20%0\x20content*',_0x110e5b)};}});}}class it extends _0x5031ea{['afterInit'](){const _0x598006=this['editor'];if(!_0x598006['plugins']['has']('ImageEditing'))return;const _0x429004=_0x598006['plugins']['get']('TrackChangesEditing'),_0x254718=_0x598006['plugins']['get']('ImageUtils'),_0x358230=_0x598006['locale'];_0x429004['enableCommand']('insertImage'),_0x429004['descriptionFactory']['registerElementLabel']('imageBlock',_0xcd0e03=>o(_0x358230,'ELEMENT_IMAGE',_0xcd0e03)),_0x429004['descriptionFactory']['registerElementLabel']('imageInline',_0x30ca98=>o(_0x358230,'ELEMENT_INLINE_IMAGE',_0x30ca98)),_0x429004['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x358230,'ELEMENT_CAPTION')),_0x598006['plugins']['has']('ImageUploadEditing')&&_0x429004['enableCommand']('uploadImage'),_0x598006['plugins']['has']('ImageBlockEditing')&&_0x598006['plugins']['has']('ImageInlineEditing')&&(_0x429004['enableCommand']('imageTypeInline',(_0x115994,_0x293dd3)=>{const _0x2716c1=_0x254718['getClosestSelectedImageElement'](_0x598006['model']['document']['selection']);_0x598006['model']['change'](()=>{_0x429004['markBlockFormat'](_0x2716c1,{'commandName':'imageTypeInline','commandParams':[_0x293dd3]},[],'convertBlockImageToInline');});}),_0x429004['enableCommand']('imageTypeBlock',(_0x299e0e,_0x35a9ed)=>{_0x598006['model']['change'](_0x58e9d1=>{let _0x17080a=_0x254718['getClosestSelectedImageElement'](_0x598006['model']['document']['selection']),_0x479159=_0x58e9d1['createRangeOn'](_0x17080a);const _0x3169d7=_0x215307['fromPosition'](_0x479159['start'],'toPrevious'),_0x1a90d3=_0x215307['fromPosition'](_0x479159['end'],'toNext');_0x429004['forceDefaultExecution'](()=>_0x299e0e(_0x35a9ed)),_0x17080a=_0x254718['getClosestSelectedImageElement'](_0x598006['model']['document']['selection']),_0x479159=_0x58e9d1['createRangeOn'](_0x17080a);const _0x2cd5c7=_0x58e9d1['createRange'](_0x3169d7,_0x1a90d3);_0x3169d7['detach'](),_0x1a90d3['detach'](),_0x429004['markBlockFormat'](_0x17080a,{'commandName':'imageTypeInline','commandParams':[_0x35a9ed]},[],'convertInlineImageToBlock'),_0x2cd5c7['start']['isBefore'](_0x479159['start'])&&_0x429004['markInsertion'](_0x58e9d1['createRange'](_0x2cd5c7['start'],_0x479159['start']),'convertInlineImageToBlock'),_0x479159['end']['isBefore'](_0x2cd5c7['end'])&&_0x429004['markInsertion'](_0x58e9d1['createRange'](_0x479159['end'],_0x2cd5c7['end']),'convertInlineImageToBlock');});}),_0x429004['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x429004['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x429004['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x429004['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x429004['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x429004['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x42f584])=>{const _0x36ac92=_0x429004['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5cb381=_0x42f584['start'],_0x15c6a2=_0x42f584['end'];const _0x356572=_0x598006['model']['schema']['getNearestSelectionRange'](_0x5cb381,'backward'),_0x4e006b=_0x598006['model']['schema']['getNearestSelectionRange'](_0x15c6a2,'forward');_0x356572['isCollapsed']&&(_0x5cb381=_0x356572['start']),_0x4e006b['isCollapsed']&&(_0x15c6a2=_0x4e006b['end']),_0x36ac92([_0x598006['model']['createRange'](_0x5cb381,_0x15c6a2)]);}),_0x429004['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xbc4741),_0x429004['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xbc4741)),_0x598006['plugins']['has']('ImageCaptionEditing')&&(_0x429004['enableCommand']('toggleImageCaption',(_0x5e5495,_0x5efe74)=>{const _0x521102=_0x598006['plugins']['get']('ImageCaptionUtils');let _0x451c2d=_0x254718['getClosestSelectedImageElement'](_0x598006['model']['document']['selection']),_0x4b7300=_0x521102['getCaptionFromImageModelElement'](_0x451c2d);_0x598006['model']['change'](()=>{if(_0x4b7300)return void _0x429004['markDeletion'](_0x598006['model']['createRangeOn'](_0x4b7300));const _0x50a96b=_0x254718['isBlockImage'](_0x451c2d);_0x5e5495(_0x5efe74),_0x451c2d=_0x254718['getClosestSelectedImageElement'](_0x598006['model']['document']['selection']),_0x4b7300=_0x521102['getCaptionFromImageModelElement'](_0x451c2d),_0x429004['markInsertion'](_0x598006['model']['createRangeOn'](_0x4b7300),_0x50a96b?null:'imageCaption');});}),_0x429004['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xbc4741));const _0x91de49=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c02eb(_0x14a4aa,_0x39acb0){const _0x2affa4=_0x91de49['findIndex'](({type:_0x179267,subType:_0x502c8a})=>_0x14a4aa['type']==_0x179267&&_0x14a4aa['subType']==_0x502c8a),_0x150151=_0x91de49['findIndex'](({type:_0x1647e3,subType:_0x2fddd6})=>_0x39acb0['type']==_0x1647e3&&_0x39acb0['subType']==_0x2fddd6);if(_0x2affa4<0x0||_0x150151<0x0)return!0x1;const _0x155dd6=_0x14a4aa['getFirstRange'](),_0x1f9e83=_0x39acb0['getFirstRange']();if((0x0==_0x2affa4||0x1==_0x2affa4)&&0x2==_0x150151&&_0x155dd6['isIntersecting'](_0x1f9e83))return!0x0;if(0x2==_0x2affa4&&0x3==_0x150151){const _0x3892a9=_0x429004['_findSuggestions'](_0x155dd6,'insertion')['filter'](({suggestion:_0x49c5cd,meta:_0x2611b0})=>_0x2611b0['isOwn']&&'convertInlineImageToBlock'==_0x49c5cd['subType']);if(_0x3892a9['length']>0x1&&_0x1f9e83['end']['isEqual'](_0x155dd6['start']))return!0x0;if(0x1==_0x3892a9['length']&&(_0x155dd6['start']['isEqual'](_0x1f9e83['end'])||_0x155dd6['end']['isEqual'](_0x1f9e83['start'])))return!0x0;}if(0x3==_0x2affa4&&0x3==_0x150151&&_0x155dd6['start']['isBefore'](_0x1f9e83['start'])){const _0x4c75a0=_0x155dd6['end']['nodeAfter'],_0x2d29a3=_0x1f9e83['start']['nodeBefore'];return _0x254718['isBlockImage'](_0x4c75a0)&&_0x4c75a0===_0x2d29a3;}return!0x1;}function _0xbc4741(_0x116d6f,_0x5c1ca0){return _0x4c02eb(_0x116d6f,_0x5c1ca0)?[_0x116d6f,_0x5c1ca0]:_0x4c02eb(_0x5c1ca0,_0x116d6f)?[_0x5c1ca0,_0x116d6f]:null;}_0x598006['plugins']['has']('ImageResize')&&(_0x429004['enableDefaultAttributesIntegration']('resizeImage'),_0x429004['registerBlockAttribute']('resizedWidth'),_0x429004['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x358230,'FORMAT_IMAGE_SIZE'))),_0x598006['plugins']['has']('ImageTextAlternativeEditing')&&(_0x429004['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x429004['registerBlockAttribute']('alt')),_0x429004['descriptionFactory']['registerDescriptionCallback'](_0x1edaeb=>{if(!!_0x91de49['find'](({type:_0x53c662,subType:_0x444953})=>_0x1edaeb['type']==_0x53c662&&_0x1edaeb['subType']==_0x444953))return _0x1edaeb['previous']?{}:void 0x0;}),_0x429004['descriptionFactory']['registerDescriptionCallback'](_0x238d3f=>{if('insertion'==_0x238d3f['type']||'deletion'==_0x238d3f['type']){const _0x447517=_0x238d3f['getContainedElement']();if(_0x447517&&_0x447517['is']('element','caption'))return{'type':'insertion'==_0x238d3f['type']?'addObject':'removeObject','element':_0x447517,'quantity':0x1};}}),_0x429004['descriptionFactory']['registerDescriptionCallback'](_0x45a569=>'formatBlock'==_0x45a569['type']&&'convertInlineImageToBlock'==_0x45a569['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x45a569['type']&&'convertBlockImageToInline'==_0x45a569['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x429004['descriptionFactory']['registerDescriptionCallback'](_0x434707=>{if('attribute'!=_0x434707['type'])return;const {data:_0x92ee37}=_0x434707;if(!_0x92ee37||'alt'!=_0x92ee37['key'])return;const _0xf696ee=_0x92ee37['newValue'];return _0xf696ee?{'type':'format','content':o(_0x358230,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xf696ee+'\x22')}:{'type':'format','content':o(_0x358230,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x414135=this['editor'],_0x49a705=_0x414135['locale'];_0x414135['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f4365=>{if('formatBlock'!=_0x2f4365['type']&&'formatInline'!=_0x2f4365['type'])return;const {data:_0x28376b}=_0x2f4365;if(_0x28376b){if('imageTextAlternative'==_0x28376b['commandName']){const _0x2ad9d7=_0x28376b['commandParams'][0x0]['newValue'];return _0x2ad9d7?{'type':'format','content':o(_0x49a705,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2ad9d7+'\x22')}:{'type':'format','content':o(_0x49a705,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x28376b['commandName']){const _0x13fc49=_0x28376b['commandParams'][0x0]['width'];return _0x13fc49?{'type':'format','content':o(_0x49a705,'*Set\x20image\x20width:*\x20%0',_0x13fc49)}:{'type':'format','content':o(_0x49a705,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5031ea{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x116e8=this['editor']['locale'],_0x36928d=this['editor']['plugins']['get']('TrackChangesEditing');_0x36928d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x36928d['registerBlockAttribute']('src'),_0x36928d['descriptionFactory']['registerDescriptionCallback'](_0x35d2e4=>{if('attribute'!=_0x35d2e4['type'])return;const {data:_0x54cbfe}=_0x35d2e4;return _0x54cbfe&&'src'==_0x54cbfe['key']?_0x54cbfe['newValue']&&_0x54cbfe['oldValue']?{'type':'format','content':o(_0x116e8,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1fc89b=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fc89b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1fc89b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1fc89b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1fc89b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x152b75=this['editor'],_0xb65b86=_0x152b75['locale'];_0x152b75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe7b547=>{if('formatBlock'!=_0xe7b547['type']&&'formatInline'!=_0xe7b547['type'])return;const {data:_0x1d22d5}=_0xe7b547;if(!_0x1d22d5||'replaceImageSource'!=_0x1d22d5['commandName'])return;return{'type':'format','content':o(_0xb65b86,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x5031ea{['afterInit'](){const _0x1d339e=this['editor'];if(!_0x1d339e['plugins']['has']('ImageStyleEditing'))return;const _0x3939c8=_0x1d339e['plugins']['get']('TrackChangesEditing'),_0x52b7ec=_0x1d339e['plugins']['get']('ImageUtils'),_0x3c5975={};_0x3939c8['enableCommand']('imageStyle',(_0x279422,_0x229ed5)=>{const _0x20d6cc=_0x1d339e['plugins']['get']('Users')['me'],_0x2c01e5=_0x1d339e['commands']['get']('imageStyle');let _0x5b922b=_0x52b7ec['getClosestSelectedImageElement'](_0x1d339e['model']['document']['selection']),_0x1d5843=_0x1d339e['model']['createRangeOn'](_0x5b922b),_0x284f3d=_0x2c01e5['value'];if(_0x284f3d==_0x229ed5['value'])return;const _0x105f66={'commandName':'imageStyle','commandParams':[_0x229ed5],'formatGroupId':_0x9738cc()};_0x1d339e['model']['change'](()=>{if(_0x3939c8['getSuggestions']()['filter'](_0x5261d4=>_0x5261d4['isInContent']&&_0x20d6cc==_0x5261d4['author']&&('formatBlock'==_0x5261d4['type']||'formatInline'==_0x5261d4['type'])&&('imageStylePreApply'==_0x5261d4['subType']||'imageStylePostApply'==_0x5261d4['subType'])&&_0x5261d4['getFirstRange']()['isEqual'](_0x1d5843))['forEach'](_0x40f2ff=>_0x3939c8['discardSuggestion'](_0x40f2ff['head'])),_0x5b922b=_0x52b7ec['getClosestSelectedImageElement'](_0x1d339e['model']['document']['selection']),_0x1d5843=_0x1d339e['model']['createRangeOn'](_0x5b922b),_0x2c01e5['refresh'](),_0x1d339e['commands']['get']('imageTypeInline')['refresh'](),_0x1d339e['commands']['get']('imageTypeBlock')['refresh'](),_0x284f3d=_0x2c01e5['value'],_0x284f3d!=_0x229ed5['value'])return _0x52b7ec['isInlineImage'](_0x5b922b)&&_0x2c01e5['shouldConvertImageType'](_0x229ed5['value'],_0x5b922b)?(_0x279422({..._0x229ed5,'setImageSizes':!0x1}),_0x5b922b=_0x52b7ec['getClosestSelectedImageElement'](_0x1d339e['model']['document']['selection']),void _0x3939c8['markBlockFormat'](_0x5b922b,{..._0x105f66,'commandReversedParams':[{'value':_0x284f3d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x52b7ec['isBlockImage'](_0x5b922b)?_0x3939c8['markBlockFormat'](_0x5b922b,_0x105f66,[],'imageStylePostApply'):_0x3939c8['markInlineFormat'](_0x1d5843,_0x105f66,'imageStylePostApply'));});});for(const _0x3f765a of _0x1d339e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3c5975[_0x3f765a['name']]=_0x3f765a['title']['toLowerCase']();_0x3939c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3939c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3939c8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3939c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x521399])=>{_0x52b7ec['setImageNaturalSizeAttributes'](_0x521399['getContainedElement']());}),_0x3939c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5ed077,_0x4946f4)=>{_0x3939c8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5ed077,{'commandName':_0x4946f4['commandName'],'commandParams':_0x4946f4['commandReversedParams']});}),_0x3939c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x20ee4b,_0x1bd567){if(_0x456bb3(_0x20ee4b,_0x1bd567))return[_0x20ee4b,_0x1bd567];if(_0x456bb3(_0x1bd567,_0x20ee4b))return[_0x1bd567,_0x20ee4b];return null;});const _0x1b43ca=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x456bb3(_0x21619c,_0x39a453){const _0x5e0264=_0x1b43ca['findIndex'](({type:_0x6035f8,subType:_0x63b130})=>_0x21619c['type']==_0x6035f8&&_0x21619c['subType']==_0x63b130),_0x46d113=_0x1b43ca['findIndex'](({type:_0x2c7e36,subType:_0x572c68})=>_0x39a453['type']==_0x2c7e36&&_0x39a453['subType']==_0x572c68);if(_0x5e0264<0x0||_0x46d113<0x0)return!0x1;const _0x49cb44=_0x21619c['getFirstRange'](),_0x8cd733=_0x39a453['getFirstRange']();if((0x0==_0x5e0264||0x1==_0x5e0264)&&0x2==_0x46d113&&_0x49cb44['isIntersecting'](_0x8cd733))return!0x0;if(0x2==_0x5e0264&&0x3==_0x46d113){const _0x5cf86d=_0x3939c8['_findSuggestions'](_0x49cb44,'insertion')['filter'](({suggestion:_0x40ddae,meta:_0x51fd81})=>_0x51fd81['isOwn']&&'convertInlineImageToBlock'==_0x40ddae['subType']);if(_0x5cf86d['length']>0x1&&_0x8cd733['end']['isEqual'](_0x49cb44['start']))return!0x0;if(0x1==_0x5cf86d['length']&&(_0x49cb44['start']['isEqual'](_0x8cd733['end'])||_0x49cb44['end']['isEqual'](_0x8cd733['start'])))return!0x0;}if(0x3==_0x5e0264&&0x3==_0x46d113&&_0x49cb44['start']['isBefore'](_0x8cd733['start'])){const _0x314827=_0x49cb44['end']['nodeAfter'],_0x3594fa=_0x8cd733['start']['nodeBefore'];return _0x52b7ec['isBlockImage'](_0x314827)&&_0x314827===_0x3594fa;}return!0x1;}_0x1d339e['model']['document']['registerPostFixer'](()=>{let _0x2dd8be=!0x1;const _0x576b42=Array['from'](_0x1d339e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5568b6,data:_0x52d24f}of _0x576b42){const {group:_0x143794,type:_0x59b367,subType:_0x5a6232,id:_0x37c556}=_0x3939c8['_splitMarkerName'](_0x5568b6);if('suggestion'==_0x143794&&_0x3939c8['hasSuggestion'](_0x37c556)){if('formatBlock'==_0x59b367&&('imageStylePreApply'==_0x5a6232||'imageStylePostApply'==_0x5a6232)){const _0x15086d=_0x3939c8['getSuggestion'](_0x37c556);if(_0x52d24f['newRange']){const _0x3929f1=_0x15086d['getFirstRange']()['getContainedElement']();if(_0x52b7ec['isBlockImage'](_0x3929f1))continue;_0x3939c8['discardSuggestion'](_0x15086d),_0x2dd8be=!0x0;}}if('insertion'==_0x59b367&&'imageCaption'==_0x5a6232&&!_0x52d24f['newRange']){const _0x2a6ad5=_0x3939c8['getSuggestion'](_0x37c556);_0x2a6ad5['next']&&_0x2a6ad5['next']['isInContent']&&(_0x3939c8['discardSuggestion'](_0x2a6ad5['next']),_0x2dd8be=!0x0);}}}return _0x2dd8be;}),this['_registerLegacyDescription'](_0x3c5975);}['_registerLegacyDescription'](_0xef67f9){const _0x1528a4=this['editor'],_0x32b0fa=_0x1528a4['locale'];_0x1528a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f18ca=>{if('formatBlock'!=_0x2f18ca['type']&&'formatInline'!=_0x2f18ca['type'])return;const {data:_0x18d3bc}=_0x2f18ca;if(!_0x18d3bc||'imageStyle'!=_0x18d3bc['commandName'])return;const _0x4020f0=_0x18d3bc['commandParams'][0x0]['value'];return _0x3c4a69('side'===_0x4020f0?o(_0x32b0fa,'FORMAT_SIDE_IMAGE'):_0xef67f9[_0x4020f0]||_0x4020f0);function _0x3c4a69(_0x53daf4){return{'type':'format','content':o(_0x32b0fa,'*Format:*\x20%0',_0x53daf4)};}});}}class ot extends _0x5031ea{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xcb6e98){super(_0xcb6e98),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1cee3e=this['editor'],_0x661d75=_0x1cee3e['commands']['get']('importWord'),_0x369a24=_0x1cee3e['commands']['get']('trackChanges');_0x661d75&&(_0x661d75['on']('execute',(_0x4e410c,[,_0x4dbd70])=>{this['_trackChangesValueDuringImport']=_0x369a24['value'],_0x4dbd70['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x661d75,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x661d75,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x369a24['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1cee3e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x16a7fa,_0x6a7d2b){const {suggestions:_0x4aa1c1}=_0x6a7d2b,_0x4f33af=this['editor']['commands']['get']('trackChanges'),_0x78c3f8=_0x4f33af['value'];this['_trackChangesValueDuringImport']!==_0x78c3f8&&(_0x4f33af['execute'](),this['_trackChangesExecuted']=!0x0),_0x4aa1c1&&_0x4aa1c1['forEach'](({id:_0x1a1d1,type:_0x531242,author:_0x15c88b,created_at:_0x55efce})=>{const _0x52697d={'id':_0x1a1d1,'type':_0x531242,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x15c88b,'createdAt':_0x55efce?new Date(_0x55efce):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x52697d);});}}class rt extends _0x5031ea{['afterInit'](){const _0x3248f3=this['editor'],_0x1a000f=_0x3248f3['plugins']['get']('TrackChangesEditing');if(_0x3248f3['plugins']['has']('IndentEditing')&&(_0x1a000f['enableCommand']('indent'),_0x1a000f['enableCommand']('outdent')),_0x3248f3['plugins']['has']('IndentBlock')){for(const _0x426b5a of['indentBlock','outdentBlock'])_0x1a000f['enableDefaultAttributesIntegration'](_0x426b5a);}const _0x29b48c=_0x3248f3['locale'];_0x1a000f['registerBlockAttribute']('blockIndent'),_0x1a000f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x29b48c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f2f27=this['editor'],_0x5b553f=_0x3f2f27['locale'],_0x297271=_0x3f2f27['plugins']['get']('TrackChangesEditing');_0x297271['descriptionFactory']['registerDescriptionCallback'](_0x449d26=>{if('formatBlock'!=_0x449d26['type'])return;const {data:_0x2d85e9}=_0x449d26;if(!_0x2d85e9)return;if('indentBlock'!=_0x2d85e9['commandName']&&'outdentBlock'!=_0x2d85e9['commandName'])return;const _0x44af43=_0x449d26['getItems']()[0x0],_0x4ecc13=_0x297271['descriptionFactory']['getItemLabel'](_0x44af43);return'indentBlock'==_0x2d85e9['commandName']?{'type':'format','content':o(_0x5b553f,'*Indent:*\x20%0',_0x4ecc13)}:'outdentBlock'==_0x2d85e9['commandName']?{'type':'format','content':o(_0x5b553f,'*Outdent:*\x20%0',_0x4ecc13)}:void 0x0;});}}class at extends _0x5031ea{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x5031ea{['afterInit'](){const _0x15acf6=this['editor'];if(!_0x15acf6['plugins']['has']('LinkEditing'))return;const _0x574d6f=_0x15acf6['plugins']['get']('TrackChangesEditing'),_0x1f9f48=_0x15acf6['commands']['get']('link');_0x574d6f['enableDefaultAttributesIntegration']('link'),_0x574d6f['enableDefaultAttributesIntegration']('unlink'),_0x574d6f['registerInlineAttribute']('linkHref');for(const _0x20fd4b of _0x1f9f48['manualDecorators'])_0x574d6f['registerInlineAttribute'](_0x20fd4b['id']),_0x574d6f['descriptionFactory']['registerAttributeLabel'](_0x20fd4b['id'],'link\x20('+_0x20fd4b['label']['toLowerCase']()+')');_0x574d6f['descriptionFactory']['registerDescriptionCallback'](_0x3204c4=>{if('attribute'!=_0x3204c4['type'])return;const {data:_0x2f9035}=_0x3204c4;if(!_0x2f9035||'linkHref'!=_0x2f9035['key'])return;const _0x70a81c=_0x2f9035['newValue'],_0x6e5c5d=_0x15acf6['locale'];return{'type':'format','content':null==_0x70a81c?o(_0x6e5c5d,'*Remove\x20link*'):o(_0x6e5c5d,'*Set\x20link:*\x20%0','\x22'+_0x70a81c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4aed0d=this['editor'],_0x4fff04=_0x4aed0d['locale'];_0x4aed0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5481b5=>{if('formatInline'!=_0x5481b5['type'])return;const {data:_0x1ebd5b}=_0x5481b5;if(_0x1ebd5b){if('link'==_0x1ebd5b['commandName']){const _0x3f378b=_0x1ebd5b['commandParams'][0x0];return{'type':'format','content':o(_0x4fff04,'*Set\x20link:*\x20%0','\x22'+_0x3f378b+'\x22')};}return'unlink'==_0x1ebd5b['commandName']?{'type':'format','content':o(_0x4fff04,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x5031ea{['afterInit'](){const _0x1e56ee=this['editor'],_0x3cc4d6=_0x1e56ee['locale'];if(!_0x1e56ee['plugins']['has']('LegacyListEditing'))return;const _0x90fb13=_0x1e56ee['plugins']['get']('TrackChangesEditing'),_0x3e6e41=_0x1e56ee['plugins']['has']('LegacyTodoListEditing');function _0x3a4d2f(_0x2fce67){return()=>{const _0x29a16d=_0x1e56ee['model']['document']['selection'],_0x5bce67=_0x1e56ee['commands']['get'](_0x2fce67);if(_0x5bce67['value'])return void _0x1e56ee['execute']('paragraph',{});const _0x2a1207=_0x2fce67['slice'](0x0,-0x4),_0x37600f=function(_0x1afe2b,_0x4aa260,_0x1c71d3){let _0x148b0a=Array['from'](_0x1afe2b)['filter'](_0x44164d=>function(_0x3920c8,_0x4bda08){return _0x4bda08['checkChild'](_0x3920c8['parent'],'listItem')&&!_0x4bda08['isObject'](_0x3920c8);}(_0x44164d,_0x1c71d3));_0x148b0a=_0x148b0a['filter'](_0x10ea09=>!_0x10ea09['is']('element','listItem')||_0x10ea09['getAttribute']('listType')!=_0x4aa260);const _0x3eb0c1=new Set();for(const _0x2997c4 of _0x148b0a)_0x2997c4['is']('element','listItem')?_0x3eb0c1['add'](me(_0x2997c4)):_0x3eb0c1['add'](_0x2997c4);return Array['from'](_0x3eb0c1);}(_0x29a16d['getSelectedBlocks'](),_0x2a1207,_0x1e56ee['model']['schema']);_0x1e56ee['model']['change'](()=>{for(const _0x22ad4c of _0x37600f)_0x90fb13['markBlockFormat'](_0x22ad4c,{'commandName':_0x2fce67,'commandParams':[{'forceValue':!_0x5bce67['value']}],'formatGroupId':'blockName'},fe(_0x22ad4c));});};}function _0x38e464(_0x4d3cd5){return()=>{const _0x91cfca=function(_0x2a7a19){let _0x5397ed=Array['from'](_0x2a7a19);const _0xdfcaf4=_0x5397ed['findIndex'](_0x5f8283=>'listItem'!=_0x5f8283['name']);return _0xdfcaf4>-0x1&&(_0x5397ed=_0x5397ed['slice'](0x0,_0xdfcaf4)),_0x5397ed;}(_0x1e56ee['model']['document']['selection']['getSelectedBlocks']()),_0xb274f4=_0x1e56ee['model']['createRange'](_0x1e56ee['model']['createPositionAt'](_0x91cfca[0x0],'before'),_0x1e56ee['model']['createPositionAt'](_0x91cfca[_0x91cfca['length']-0x1],'end'));_0x1e56ee['model']['change'](()=>{_0x90fb13['markBlockFormat'](_0xb274f4,{'commandName':_0x4d3cd5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x17ab93){const _0x11545c=new Set();for(const _0x44fb37 of _0x17ab93){let _0x19080d=_0x44fb37['nextSibling'];for(;_0x19080d&&_0x19080d['getAttribute']('listIndent')>_0x44fb37['getAttribute']('listIndent');)_0x11545c['add'](_0x19080d),_0x19080d=_0x19080d['nextSibling'];}return Array['from'](_0x11545c);}(_0x91cfca));});};}_0x90fb13['enableCommand']('numberedList',_0x3a4d2f('numberedList')),_0x90fb13['enableCommand']('bulletedList',_0x3a4d2f('bulletedList')),_0x3e6e41&&_0x90fb13['enableCommand']('todoList',_0x3a4d2f('todoList')),_0x90fb13['enableCommand']('indentList',_0x38e464('indentList')),_0x90fb13['enableCommand']('outdentList',_0x38e464('outdentList')),_0x3e6e41&&_0x90fb13['enableCommand']('checkTodoList',()=>{const _0x246ba3=_0x1e56ee['commands']['get']('checkTodoList'),_0x5643e7=Array['from'](_0x246ba3['_selectedElements']);_0x5643e7['filter'](_0x14bb8f=>_0x14bb8f['getAttribute']('todoListChecked')!=_0x246ba3['value']),_0x1e56ee['model']['change'](()=>{for(const _0x5ced5f of _0x5643e7)_0x90fb13['markBlockFormat'](_0x5ced5f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x246ba3['value']}]});});}),_0x90fb13['descriptionFactory']['registerElementLabel']('listItem',_0x2418c4=>o(_0x3cc4d6,'ELEMENT_LIST_ITEM',_0x2418c4)),_0x90fb13['descriptionFactory']['registerDescriptionCallback'](_0xd15812=>{if('formatBlock'!=_0xd15812['type']&&'formatInline'!=_0xd15812['type'])return;const {data:_0x1c4193}=_0xd15812;if(_0x1c4193){if('numberedList'==_0x1c4193['commandName']||'bulletedList'==_0x1c4193['commandName']||'todoList'==_0x1c4193['commandName'])switch(_0x1c4193['commandName']['replace']('List','')){case'bulleted':return _0x2206b8(o(_0x3cc4d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2206b8(o(_0x3cc4d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2206b8(o(_0x3cc4d6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1c4193['commandName'])return{'type':'format','content':o(_0x3cc4d6,'*Indent:*\x20%0',o(_0x3cc4d6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1c4193['commandName'])return{'type':'format','content':o(_0x3cc4d6,'*Outdent:*\x20%0',o(_0x3cc4d6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1c4193['commandName'])return _0x1c4193['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3cc4d6,'*Check\x20item*')}:{'type':'format','content':o(_0x3cc4d6,'*Uncheck\x20item*')};}function _0x2206b8(_0x4effb4){return{'type':'format','content':o(_0x3cc4d6,'*Change\x20to:*\x20%0',_0x4effb4)};}});}}function me(_0x189d61){const _0x196b3e=_0x189d61['getAttribute']('listIndent');if(0x0==_0x196b3e)return _0x189d61;let _0x1de152=_0x189d61;for(;_0x189d61['previousSibling']&&_0x189d61['previousSibling']['is']('element','listItem');){const _0x4dbdaf=_0x189d61['previousSibling']['getAttribute']('listIndent');if(_0x4dbdaf==_0x196b3e)_0x1de152=_0x189d61['previousSibling'];else{if(_0x4dbdaf<_0x196b3e)break;}_0x189d61=_0x189d61['previousSibling'];}return _0x1de152;}function fe(_0x5c572f){const _0x22d37d=[];if(_0x5c572f['is']('element','listItem')&&_0x5c572f['getAttribute']('listIndent')>0x0){let _0x52c440=_0x5c572f['nextSibling'];for(;_0x52c440&&'listItem'==_0x52c440['name']&&_0x52c440['getAttribute']('listIndent')==_0x5c572f['getAttribute']('listIndent');)_0x22d37d['push'](_0x52c440),_0x52c440=_0x52c440['nextSibling'];}return _0x22d37d;}class K extends _0x5031ea{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4366c4=this['editor']['config']['get']('list.properties'),_0x812425=this['editor']['plugins']['get']('TrackChangesEditing');_0x4366c4['styles']&&_0x812425['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4366c4['reversed']&&_0x812425['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4366c4['startIndex']&&_0x812425['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x812425['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x466d7f,_0x4d92d5={}){const _0x3c0518=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfb0768=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3c0518['markMultiRangeBlockFormat'](_0xfb0768,{'commandName':'listStyle','commandParams':[{'type':_0x4d92d5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x41db24,_0x42392d={}){const _0x5dd92d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x474964=this['_getSuggestionBlocks'](_0x5e23e9=>_0x5e23e9['is']('element','listItem')&&'numbered'===_0x5e23e9['getAttribute']('listType'));if(_0x474964['length']<0x1)return;const _0x1ed604=_0x474964['map'](_0x3e9638=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3e9638,'before'),this['editor']['model']['createPositionAt'](_0x3e9638,0x0)));this['editor']['model']['change'](()=>{_0x5dd92d['markMultiRangeBlockFormat'](_0x1ed604,{'commandName':'listReversed','commandParams':[{'reversed':_0x42392d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5b101d,_0x1fcb88={}){const _0x47b0e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b8263=this['_getSuggestionBlocks'](_0x2898b0=>_0x2898b0['is']('element','listItem')&&'numbered'===_0x2898b0['getAttribute']('listType'));if(_0x4b8263['length']<0x1)return;const _0x48d4d5=_0x4b8263['map'](_0x555194=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x555194,'before'),this['editor']['model']['createPositionAt'](_0x555194,0x0)));this['editor']['model']['change'](()=>{_0x47b0e1['markMultiRangeBlockFormat'](_0x48d4d5,{'commandName':'listStart','commandParams':[{'startIndex':_0x1fcb88['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x17aa9f){if('formatBlock'!=_0x17aa9f['type']&&'formatInline'!=_0x17aa9f['type'])return;const _0x25fe12=this['editor']['locale'],{data:_0x4fd1a8}=_0x17aa9f;if(!_0x4fd1a8)return;let _0x2e99fb,_0x499c39;switch(_0x4fd1a8['commandName']){case'listStyle':_0x2e99fb='*Change\x20to:*\x20%0',_0x499c39={'type':'format','content':o(_0x25fe12,_0x2e99fb,o(_0x25fe12,this['_getTranslationKeyForListStyle'](_0x4fd1a8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2e99fb=_0x4fd1a8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x499c39={'type':'format','content':o(_0x25fe12,_0x2e99fb)};break;case'listStart':_0x2e99fb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x499c39={'type':'format','content':o(_0x25fe12,_0x2e99fb,_0x4fd1a8['commandParams'][0x0]['startIndex'])};}return _0x499c39;}['_getSuggestionBlocksForListStyle'](){const _0x169fdd=this['editor']['plugins']['get']('LegacyListUtils');let _0x419c72=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x419c72[0x0]?.['is']('element','listItem')&&_0x419c72['unshift'](..._0x169fdd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x419c72[_0x419c72['length']-0x1]?.['is']('element','listItem')&&_0x419c72['push'](..._0x169fdd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x419c72=[...new Set(_0x419c72)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x419c72=_0x419c72['filter'](_0xebad21=>_0xebad21['is']('element','listItem'))),_0x419c72;}['_getSuggestionBlocks'](_0x1c35f1){const _0x12f907=this['editor']['plugins']['get']('LegacyListUtils');let _0x36cba4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1c35f1)['map'](_0x403aa0=>{const _0x40f610=this['editor']['model']['createPositionAt'](_0x403aa0,0x0);return[..._0x12f907['getSiblingNodes'](_0x40f610,'backward'),..._0x12f907['getSiblingNodes'](_0x40f610,'forward')];})['flat']();return _0x36cba4=[...new Set(_0x36cba4)],_0x36cba4;}['_getTranslationKeyForListStyle'](_0x197e72){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x197e72)||'default')['toUpperCase']()+'_LIST_'+_0x197e72['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x5031ea{['afterInit'](){const _0x188353=this['editor'];if(!_0x188353['plugins']['has']('MediaEmbedEditing'))return;const _0x46da56=_0x188353['plugins']['get']('TrackChangesEditing'),_0x58c9e0=_0x188353['locale'];_0x46da56['enableCommand']('mediaEmbed'),_0x46da56['descriptionFactory']['registerElementLabel']('media',_0x52cf6a=>o(_0x58c9e0,'ELEMENT_MEDIA',_0x52cf6a)),_0x188353['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3a7ca1,{writer:_0xdfbf09,options:_0x50c9f7})=>{if(_0x50c9f7['showSuggestionHighlights'])return _0xdfbf09['createEmptyElement']('div');},'converterPriority':'high'}),_0x188353['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5161f7,_0x5c560d,_0x36c596)=>{_0x36c596['options']['showSuggestionHighlights']&&_0x5161f7['stop']();},{'priority':'high'});}}class gt extends _0x5031ea{['afterInit'](){const _0x3ce410=this['editor'];_0x3ce410['plugins']['has']('MentionEditing')&&_0x3ce410['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x5031ea{['afterInit'](){const _0xe23fca=this['editor'],_0x58c3d2=_0xe23fca['plugins']['get']('TrackChangesEditing');_0xe23fca['plugins']['has']('MultiLevelList')&&(_0x58c3d2['enableDefaultAttributesIntegration']('multiLevelList'),_0x58c3d2['registerBlockAttribute']('listMarkerStyle'),_0x58c3d2['descriptionFactory']['registerDescriptionCallback'](_0x562fd2=>this['handleDescriptions'](_0x562fd2)));}['handleDescriptions'](_0x2f2c1b){const _0x426587=this['editor']['locale'],{data:_0x312a26}=_0x2f2c1b,_0x37fde8={'type':'format','content':''};if(_0x312a26&&'listMarkerStyle'==_0x312a26['key']){if(!_0x312a26['oldValue'])return{'type':'format','content':o(_0x426587,'*Set\x20format:*\x20%0',o(_0x426587,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x312a26['newValue']+')'};if(!_0x312a26['newValue']){let _0x22dd87=_0x2f2c1b['head'];for(;_0x22dd87;){if(_0x22dd87['data']&&'listType'==_0x22dd87['data']['key']&&_0x22dd87['data']['newValue'])return _0x37fde8;_0x22dd87=_0x22dd87['next'];}return{'type':'format','content':o(_0x426587,'*Remove\x20format:*\x20%0',o(_0x426587,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x312a26['oldValue']+')'};}}}}class mt extends _0x5031ea{['afterInit'](){const _0x59030e=this['editor'];if(!_0x59030e['plugins']['has']('PageBreakEditing'))return;_0x59030e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4b6ffb=_0x59030e['plugins']['get']('TrackChangesEditing'),_0x33f2c4=_0x59030e['locale'];_0x4b6ffb['descriptionFactory']['registerElementLabel']('pageBreak',_0xe302eb=>o(_0x33f2c4,'ELEMENT_PAGE_BREAK',_0xe302eb));}}class dt extends _0x5031ea{['afterInit'](){const _0x3488dd=this['editor'];if(!_0x3488dd['plugins']['has']('Paragraph'))return;const _0x4ac57d=_0x3488dd['locale'],_0x5ae688=_0x3488dd['plugins']['get']('TrackChangesEditing');_0x5ae688['descriptionFactory']['registerElementLabel']('paragraph',_0x11d1a7=>o(_0x4ac57d,'ELEMENT_PARAGRAPH',_0x11d1a7)),_0x5ae688['enableDefaultAttributesIntegration']('paragraph'),_0x5ae688['enableCommand']('insertParagraph'),_0x3488dd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3488dd),{'priority':'highest'}),_0x3488dd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ea65f,_0x12640d,_0x5d1133)=>{_0x5d1133['options']['showSuggestionHighlights']&&nr(_0x3488dd,{'showActiveMarker':!0x1})(_0x3ea65f,_0x12640d,_0x5d1133);},{'priority':'highest'});const _0xa6b21c=_0x5ae688['descriptionFactory'];_0xa6b21c['registerDescriptionCallback'](_0x32e20e=>{if('insertion'!==_0x32e20e['type'])return;const {start:_0x130c25,end:_0x2b65d9}=_0x32e20e['getFirstRange']();if(!_0x130c25['isTouching'](_0x2b65d9)||!_0x130c25['nodeAfter'])return;const _0x61cc66=_0x3488dd['model']['schema'],_0x218e43=_0x130c25['nodeAfter'];return _0x61cc66['isBlock'](_0x218e43)&&!_0x61cc66['isLimit'](_0x218e43)&&_0x61cc66['checkChild'](_0x218e43,'$text')?{'type':'insertion','content':o(_0x4ac57d,'*Insert:*\x20%0',_0xa6b21c['getItemLabel'](_0x218e43,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x134723=this['editor'],_0x446804=_0x134723['locale'];_0x134723['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf5ee58=>{if('formatBlock'!=_0xf5ee58['type'])return;const {data:_0x2774dc}=_0xf5ee58;return _0x2774dc&&'paragraph'==_0x2774dc['commandName']?{'type':'format','content':o(_0x446804,'*Change\x20to:*\x20%0',o(_0x446804,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x217774,{showActiveMarker:_0x11a16a=!0x0}={}){return(_0x4204fa,_0x40ed51,_0x13a84f)=>{const _0x5e08de=_0x217774['plugins']['get']('TrackChangesEditing'),_0x44b5c4=_0x40ed51['markerRange']['start'],_0x2feb97=_0x40ed51['markerRange']['end'],_0x4413dd=_0x217774['model']['schema'];if(!_0x44b5c4['isTouching'](_0x2feb97)||!_0x44b5c4['nodeAfter'])return;const _0x41563f=_0x44b5c4['nodeAfter'];if(_0x4413dd['isBlock'](_0x41563f)&&!_0x4413dd['isLimit'](_0x41563f)&&_0x4413dd['checkChild'](_0x41563f,'$text')){if(!_0x13a84f['consumable']['consume'](_0x40ed51['markerRange'],_0x4204fa['name']))return;const _0x4dcf67=_0x13a84f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x30b901=_0x13a84f['mapper']['toViewPosition'](_0x2feb97);_0x11a16a&&_0x5e08de['activeMarkers']['includes'](_0x40ed51['markerName'])&&_0x13a84f['writer']['addClass']('ck-suggestion-marker--active',_0x4dcf67),_0x13a84f['writer']['insert'](_0x30b901,_0x4dcf67),_0x13a84f['mapper']['bindElementToMarker'](_0x4dcf67,_0x40ed51['markerName']);}};}class pt extends _0x5031ea{['afterInit'](){const _0x2f1a55=this['editor'];if(!_0x2f1a55['plugins']['has']('RemoveFormatEditing'))return;_0x2f1a55['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xac4ddd=this['editor'];_0xac4ddd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b0874=>{if('formatBlock'!=_0x5b0874['type']&&'formatInline'!=_0x5b0874['type'])return;const {data:_0x1721a8}=_0x5b0874;return _0x1721a8&&'removeFormat'==_0x1721a8['commandName']?{'type':'format','content':o(_0xac4ddd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x5031ea{['afterInit'](){const _0x422302=this['editor'];if(!_0x422302['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3b3f7=_0x422302['plugins']['get']('TrackChangesEditing');_0x3b3f7['enableCommand']('goToPreviousRestrictedEditingException'),_0x3b3f7['enableCommand']('goToNextRestrictedEditingException');const _0x5c5c83=_0x422302['plugins']['get']('RestrictedEditingModeEditing');_0x5c5c83['enableCommand']('trackChanges'),_0x5c5c83['enableCommand']('acceptSuggestion'),_0x5c5c83['enableCommand']('discardSuggestion'),_0x5c5c83['enableCommand']('acceptAllSuggestions'),_0x5c5c83['enableCommand']('discardAllSuggestions'),_0x5c5c83['enableCommand']('acceptSelectedSuggestions'),_0x5c5c83['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x5031ea{static get['requires'](){return[_0x4111ef];}['init'](){const _0x2099bf=this['editor'],_0x4aaecc=_0x2099bf['plugins']['get']('TrackChangesEditing');_0x4aaecc['enableCommand']('shiftEnter'),_0x2099bf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2099bf),{'priority':'high'}),_0x2099bf['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2099bf),{'priority':'high'}),_0x2099bf['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x51c775,_0x36a288,_0x4f26f7)=>{_0x4f26f7['options']['showSuggestionHighlights']&&de(_0x2099bf,{'showActiveMarker':!0x1})(_0x51c775,_0x36a288,_0x4f26f7);}),_0x4aaecc['descriptionFactory']['registerElementLabel']('softBreak',_0x38b2dd=>o(_0x2099bf['locale'],'ELEMENT_LINE_BREAK',_0x38b2dd));}}function de(_0x38ea3c,{showActiveMarker:_0x39d040=!0x0}={}){return(_0x588c42,_0x3cd5f6,_0x568e15)=>{const _0x536b89=_0x38ea3c['plugins']['get']('TrackChangesEditing');if(!_0x568e15['consumable']['test'](_0x3cd5f6['markerRange'],_0x588c42['name']))return;const _0x3a5efb=_0x38ea3c['model'];for(const _0x3f4191 of _0x3cd5f6['markerRange']['getItems']()){if(!_0x3f4191['is']('element','softBreak'))continue;const _0x4e177f='deletion'==_0x3cd5f6['markerName']['split'](':')[0x1]?'merge':'split',_0x205e9b=_0x568e15['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e177f}),_0x208dc3=_0x568e15['mapper']['toViewPosition'](_0x3a5efb['createPositionBefore'](_0x3f4191));_0x39d040&&_0x536b89['activeMarkers']['includes'](_0x3cd5f6['markerName'])&&_0x568e15['writer']['addClass']('ck-suggestion-marker--active',_0x205e9b),_0x568e15['writer']['insert'](_0x208dc3,_0x205e9b),_0x568e15['mapper']['bindElementToMarker'](_0x205e9b,_0x3cd5f6['markerName']);}};}class wt extends _0x5031ea{['afterInit'](){const _0x19b5da=this['editor'],_0xc47364=_0x19b5da['model'],_0x5d25ed=_0x19b5da['locale'];if(!_0x19b5da['plugins']['has']('StandardEditingModeEditing'))return;const _0x41cf6b=_0x19b5da['plugins']['get']('TrackChangesEditing'),_0x2ee9e0='restrictedEditingException',_0x4d5595=_0x19b5da['commands']['get'](_0x2ee9e0);_0x41cf6b['enableCommand'](_0x2ee9e0,(_0x2efd4b,_0x10a0b3={})=>{const _0x52cd01=_0xc47364['document']['selection'];if(_0x52cd01['isCollapsed'])return void _0x2efd4b(_0x10a0b3);const _0x1656fc=void 0x0!==_0x10a0b3['forceValue']?_0x10a0b3['forceValue']:!_0x4d5595['value'];_0xc47364['change'](()=>{const _0xead7dc=Array['from'](_0x52cd01['getRanges']());for(const _0x594d09 of _0xead7dc){const _0x87835a=_0x1656fc?[_0x594d09]:io(_0x2ee9e0,_0x594d09,_0xc47364);for(const _0x4ddf94 of _0x87835a)_0x41cf6b['markInlineFormat'](_0x4ddf94,{'commandName':_0x2ee9e0,'commandParams':[{'forceValue':_0x1656fc}]});}});}),_0x41cf6b['descriptionFactory']['registerDescriptionCallback'](_0x1c9e6c=>{if('formatBlock'!=_0x1c9e6c['type']&&'formatInline'!=_0x1c9e6c['type'])return;const {data:_0x4c3aeb}=_0x1c9e6c;return _0x4c3aeb&&_0x4c3aeb['commandName']==_0x2ee9e0?_0x4c3aeb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d25ed,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5d25ed,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x5031ea{['afterInit'](){const _0x661da2=this['editor'];if(!_0x661da2['plugins']['has']('Style')||!_0x661da2['plugins']['has']('DataSchema'))return;const _0x3b5807=_0x661da2['plugins']['get']('TrackChangesEditing'),_0x4cb0b7=_0x661da2['locale'],_0x2d01f7=_0x661da2['config']['get']('style')||{},_0x54383b=_0x661da2['plugins']['get']('GeneralHtmlSupport'),_0x1debb8=_0x661da2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x661da2['plugins']['get']('DataSchema'),_0x2d01f7['definitions']);_0x3b5807['enableDefaultAttributesIntegration']('style');const _0x380d9c=new Set();for(const _0x25a41f of _0x1debb8['block']){const _0xa3ac71=_0x54383b['getGhsAttributeNameForElement'](_0x25a41f['element']);_0x380d9c['add'](_0xa3ac71);}const _0x39de2f=new Set();for(const _0x4ab01a of _0x1debb8['inline']){const _0x56b2c8=_0x54383b['getGhsAttributeNameForElement'](_0x4ab01a['element']);_0x39de2f['add'](_0x56b2c8);for(const _0x35db7e of _0x4ab01a['ghsAttributes'])_0x39de2f['add'](_0x35db7e);}for(const _0xfe9231 of _0x380d9c)_0x3b5807['registerBlockAttribute'](_0xfe9231),_0x3b5807['descriptionFactory']['registerAttributeLabel'](_0xfe9231,o(_0x4cb0b7,'FORMAT_STYLE'));for(const _0x4f07ac of _0x39de2f)_0x3b5807['registerInlineAttribute'](_0x4f07ac),_0x3b5807['descriptionFactory']['registerAttributeLabel'](_0x4f07ac,o(_0x4cb0b7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cd2b2=this['editor'],_0x344a19=_0x2cd2b2['locale'];_0x2cd2b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x545f3d=>{if('formatBlock'!=_0x545f3d['type']&&'formatInline'!=_0x545f3d['type'])return;const {data:_0x42540c}=_0x545f3d;return _0x42540c&&'style'===_0x42540c['commandName']?_0x42540c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x344a19,'*Set\x20format:*\x20%0',_0x42540c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x344a19,'*Remove\x20format:*\x20%0',_0x42540c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x5031ea{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x26f27c){super(_0x26f27c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x46ee65=this['editor'],_0x5a560f=_0x46ee65['model']['document']['selection'];if(!_0x46ee65['plugins']['has']('TableEditing'))return;const _0x2554f8=_0x46ee65['locale'],_0x2bc3d7=_0x46ee65['plugins']['get']('TrackChangesEditing'),_0x422c42=_0x46ee65['plugins']['get']('TableUtils');_0x2bc3d7['descriptionFactory']['registerElementLabel']('table',_0x56304f=>o(_0x2554f8,'ELEMENT_TABLE',_0x56304f)),this['_setupColumnsRowsFixing'](),_0x2bc3d7['enableCommand']('insertTable'),_0x2bc3d7['enableCommand']('selectTableRow'),_0x2bc3d7['enableCommand']('selectTableColumn');for(const _0x18a876 of['insertTableRowAbove','insertTableRowBelow']){const _0x5dc31b=_0x46ee65['commands']['get'](_0x18a876);_0x2bc3d7['enableCommand'](_0x18a876,_0x521e7c=>{_0x46ee65['model']['change'](_0x4ee2c3=>{_0x521e7c();const _0x4b316a='above'===_0x5dc31b['order'],_0x5e24f7=_0x422c42['getSelectionAffectedTableCells'](_0x5a560f),_0x28a614=_0x422c42['getRowIndexes'](_0x5e24f7),_0x5bbca3=_0x4b316a?_0x28a614['first']-0x1:_0x28a614['last']+0x1,_0x3e497f=_0x5e24f7[0x0]['findAncestor']('table'),_0x19b13a=_0x422c42['createTableWalker'](_0x3e497f,{'startRow':_0x5bbca3,'endRow':_0x5bbca3}),_0x5952c2=Array['from'](_0x19b13a)['map'](_0x3ac6fa=>_0x4ee2c3['createRangeOn'](_0x3ac6fa['cell']));_0x2bc3d7['markMultiRangeInsertion'](_0x5952c2,'tableRow');});});}for(const _0x2b27f0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x142051=_0x46ee65['commands']['get'](_0x2b27f0);_0x2bc3d7['enableCommand'](_0x2b27f0,_0x375a56=>{_0x46ee65['model']['change'](_0x192d46=>{_0x375a56();const _0x9b4a23='left'===_0x142051['order'],_0x5f40d5=_0x422c42['getSelectionAffectedTableCells'](_0x5a560f),_0x465993=_0x422c42['getColumnIndexes'](_0x5f40d5),_0x4efc45=_0x9b4a23?_0x465993['first']-0x1:_0x465993['last']+0x1,_0x5b9d08=_0x5f40d5[0x0]['findAncestor']('table'),_0x570942=_0x422c42['createTableWalker'](_0x5b9d08,{'startRow':0x0,'column':_0x4efc45,'includeAllSlots':!0x1}),_0x46e4f1=Array['from'](_0x570942)['map'](_0x579899=>_0x192d46['createRangeOn'](_0x579899['cell']));_0x2bc3d7['markMultiRangeInsertion'](_0x46e4f1,'tableColumn');});});}for(const _0x4929d9 of['removeTableRow','removeTableColumn']){const _0x38b0a7=_0x4929d9['substr'](0xb),_0x2fc827=_0x38b0a7['toLowerCase'](),_0x2cba5b=_0x2fc827['substr'](0x0,0x3)+'span',_0x37bce8='table'+_0x38b0a7,_0x1a1743='min'+_0x38b0a7,_0x278868='max'+_0x38b0a7;_0x2bc3d7['enableCommand'](_0x4929d9,()=>{_0x46ee65['model']['change'](_0x127df6=>{const _0x331b39=_0x422c42['getSelectionAffectedTableCells'](_0x5a560f),_0x230645=_0x331b39[0x0]['findAncestor']('table');let _0x24fddb;if('removeTableRow'==_0x4929d9){const _0x3680db=_0x422c42['getRowIndexes'](_0x331b39);_0x24fddb={'startRow':_0x3680db['first'],'endRow':_0x3680db['last'],'includeAllSlots':!0x0};}else{const _0x3f46e2=_0x422c42['getColumnIndexes'](_0x331b39);_0x24fddb={'startColumn':_0x3f46e2['first'],'endColumn':_0x3f46e2['last'],'includeAllSlots':!0x0};}const _0x4f7954=_0x422c42['createTableWalker'](_0x230645,_0x24fddb),_0x2dd3c1=Array['from'](_0x4f7954)['map'](({cell:_0x103342})=>_0x103342),_0x543f19=Ee(_0x2dd3c1['filter'](_0x248481=>_0x248481['hasAttribute'](_0x2cba5b))),_0x463c36=Ee(_0x2dd3c1['filter'](_0x424036=>!_0x424036['hasAttribute'](_0x2cba5b)))['map'](_0x5b07fb=>_0x127df6['createRangeOn'](_0x5b07fb)),_0x274e97=_0x2bc3d7['markMultiRangeDeletion'](_0x463c36,_0x37bce8);if(_0x274e97&&('tableRow'==_0x274e97['subType']||'tableColumn'==_0x274e97['subType'])){const _0x1da891=this['_getSuggestionCoords'](_0x274e97);for(const _0x57fbe3 of _0x543f19){const _0x7c6c7=_0x127df6['createRangeOn'](_0x57fbe3),_0x4ef80e=_0x422c42['getCellLocation'](_0x57fbe3),_0x38cd8e=_0x57fbe3['getAttribute'](_0x2cba5b)-0x1,_0x4b3d89=_0x1da891[_0x1a1743],_0x518310=_0x1da891[_0x278868];_0x4b3d89<=_0x4ef80e[_0x2fc827]&&_0x4ef80e[_0x2fc827]+_0x38cd8e<=_0x518310&&_0x274e97['addRange'](_0x7c6c7);}}});});}function _0x734c50(_0x5913e6){const _0x3d6c9a=Array['from'](_0x5a560f['getRanges']())['map'](_0x2f8bf8=>_0x108983['fromRange'](_0x2f8bf8));_0x46ee65['model']['change'](_0x4e329d=>{const _0x17e4dd=_0x4e329d['batch'];_0x5913e6=_0x5913e6['filter'](_0x2245a5=>'$graveyard'!=_0x2245a5['root']['rootName']),_0x4e329d['setSelection'](_0x5913e6),_0x46ee65['commands']['get']('removeTableRow')['refresh'](),_0x46ee65['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x46ee65['model']['enqueueChange'](()=>{_0x46ee65['model']['enqueueChange'](_0x17e4dd,_0x9a4753=>{const _0x1d9fb6=_0x3d6c9a['filter'](_0x5bd697=>'$graveyard'!=_0x5bd697['root']['rootName']);_0x1d9fb6['length']>0x0&&_0x9a4753['setSelection'](_0x1d9fb6);for(const _0x5a3834 of _0x3d6c9a)_0x5a3834['detach']();});});});}function _0xff9485(_0x7464ae){_0x46ee65['model']['change'](_0x27afc4=>{const _0x49f976=Array['from'](_0x5a560f['getRanges']())['map'](_0x1b9316=>_0x108983['fromRange'](_0x1b9316)),_0x220fd9=[];for(const _0x139597 of _0x7464ae)for(const _0x1edc25 of _0x139597['getItems']({'shallow':!0x0}))_0x220fd9['push'](_0x1edc25);for(const _0xee93c9 of _0x220fd9)'$graveyard'!=_0xee93c9['root']['rootName']&&(_0x27afc4['setSelection'](_0x27afc4['createPositionAt'](_0xee93c9,0x0)),_0x46ee65['commands']['get']('removeTableColumn')['refresh'](),_0x46ee65['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5bb4f7=_0x49f976['filter'](_0x3f810c=>'$graveyard'!=_0x3f810c['root']['rootName']);_0x5bb4f7['length']>0x0&&_0x27afc4['setSelection'](_0x5bb4f7);for(const _0x5a1e38 of _0x49f976)_0x5a1e38['detach']();});}function _0x50aa8e(_0x24ceb4,_0x16ee9c){return _0x16ee9c['every'](_0x15ecc4=>_0x24ceb4['some'](_0x564064=>_0x564064['end']['isEqual'](_0x15ecc4['start'])||_0x15ecc4['end']['isEqual'](_0x564064['start'])));}function _0x22a6cc(_0x1ec9df,_0x96a730){return!_0x1ec9df['some'](_0x462f1d=>_0x96a730['some'](_0x573b4d=>_0x462f1d['isIntersecting'](_0x573b4d)))&&_0x1ec9df['some'](_0x3bd6ac=>_0x96a730['some'](_0x453eb8=>_0x3bd6ac['end']['isTouching'](_0x453eb8['start'])));}_0x46ee65['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x36505e,_0x127884,_0x59c476)=>{if(!_0x59c476['options']['showSuggestionHighlights'])return;const _0x2c9b14=_0x127884['item'];if(!_0x2c9b14)return;const _0x2d1b22=_0x59c476['mapper']['toViewElement'](_0x2c9b14);function _0x54b227(_0x20612a){return Array['isArray'](_0x20612a)?_0x20612a:[_0x20612a];}_0x2d1b22&&'tableCell'===_0x2c9b14['name']&&_0x1d1b80(_0x2d1b22,_0x59c476['writer'],(_0x2b6e6f,_0x1499d2,_0x160bdc)=>_0x160bdc['addClass'](_0x54b227(_0x1499d2['classes']),_0x2b6e6f),(_0x1ba085,_0x305e0f,_0x40d0d6)=>_0x40d0d6['removeClass'](_0x54b227(_0x305e0f['classes']),_0x1ba085));},{'priority':'highest'}),_0x2bc3d7['descriptionFactory']['registerDescriptionCallback'](_0xc6ccda=>{if('insertion'!=_0xc6ccda['type']&&'deletion'!=_0xc6ccda['type'])return;const _0x2f2392=_0xc6ccda['getContainedElement']();if(null!=_0x2f2392&&_0x2f2392['is']('element','table')){if('insertion'==_0xc6ccda['type']){const _0x187733=_0xc6ccda['getItems']()['filter'](_0x24f701=>_0x24f701['is']('$textProxy'))['map'](_0x1513f7=>_0x1513f7['data']);if(_0x187733['length'])return{'type':'insertion','content':o(_0x2554f8,'*Insert:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x187733['join']('\x20')+'\x22'))};}if('deletion'==_0xc6ccda['type']){const _0x288318=_0xc6ccda['getItems']()['filter'](_0x380d1b=>_0x380d1b['is']('$textProxy'))['map'](_0x9c26bc=>_0x9c26bc['data']);if(_0x288318['length'])return{'type':'deletion','content':o(_0x2554f8,'*Remove:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x288318['join']('\x20')+'\x22'))};}}}),_0x2bc3d7['descriptionFactory']['registerDescriptionCallback'](_0x26ca83=>{if('tableRow'==_0x26ca83['subType']){const _0x20e13c=_0x26ca83['getItems']()['filter'](_0x147892=>_0x147892['is']('$textProxy'))['map'](_0x21d7e6=>_0x21d7e6['data']),_0x737448=this['_getSuggestionCoords'](_0x26ca83),_0x141b15=_0x737448['maxRow']-_0x737448['minRow']+0x1;if('insertion'==_0x26ca83['type'])return _0x20e13c['length']?{'type':'insertion','content':o(_0x2554f8,'*Insert:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x141b15,'\x22'+_0x20e13c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2554f8,'*Insert:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_ROW',_0x141b15))};if('deletion'==_0x26ca83['type'])return _0x20e13c['length']?{'type':'deletion','content':o(_0x2554f8,'*Remove:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x141b15,'\x22'+_0x20e13c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2554f8,'*Remove:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_ROW',_0x141b15))};}if('tableColumn'==_0x26ca83['subType']){const _0x5c024e=_0x26ca83['getItems']()['filter'](_0x4fcbde=>_0x4fcbde['is']('$textProxy'))['map'](_0x164825=>_0x164825['data']),_0x49ef9f=this['_getSuggestionCoords'](_0x26ca83),_0x1095b5=_0x49ef9f['maxColumn']-_0x49ef9f['minColumn']+0x1;if('insertion'==_0x26ca83['type'])return _0x5c024e['length']?{'type':'insertion','content':o(_0x2554f8,'*Insert:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1095b5,'\x22'+_0x5c024e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2554f8,'*Insert:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_COLUMN',_0x1095b5))};if('deletion'==_0x26ca83['type'])return _0x5c024e['length']?{'type':'deletion','content':o(_0x2554f8,'*Remove:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1095b5,'\x22'+_0x5c024e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2554f8,'*Remove:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_COLUMN',_0x1095b5))};}}),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x734c50),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x734c50),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xff9485),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xff9485),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x50aa8e),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x50aa8e),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x22a6cc),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x22a6cc);}['_acceptFormatSuggestionCallbackFactory'](){const _0xbca276=this['editor'],_0x3cec2a=_0xbca276['model']['document']['selection'];return(_0x56dc7a,_0xd1f772)=>{_0xbca276['model']['change'](_0x5bedec=>{const {commandName:_0x2e8727,commandParams:_0x3af3ac}=_0xd1f772;let _0x228527=_0x56dc7a[0x0]['end']['nodeBefore'];_0x3af3ac&&_0x3af3ac[0x0]&&!0x1===_0x3af3ac[0x0]['forceValue']&&(_0x228527=_0x56dc7a[0x0]['start']['nodeAfter']);const _0x28b5ce=_0x5bedec['createRangeIn'](_0x228527);if('$graveyard'==_0x28b5ce['root']['rootName'])return;const _0x2fee41=Array['from'](_0x3cec2a['getRanges']())['map'](_0x4445d9=>_0x108983['fromRange'](_0x4445d9));_0x5bedec['setSelection'](_0x28b5ce),_0xbca276['commands']['get'](_0x2e8727)['refresh'](),_0x3af3ac['push']({'forceDefaultExecution':!0x0}),_0xbca276['execute'](_0x2e8727,..._0x3af3ac);const _0x1ca742=_0x2fee41['filter'](_0x3123d7=>'$graveyard'!=_0x3123d7['root']['rootName']);_0x1ca742['length']>0x0&&_0x5bedec['setSelection'](_0x1ca742);for(const _0x1ea51d of _0x2fee41)_0x1ea51d['detach']();});};}['_getCoordsForCells'](_0x15b105){const _0x4a5df0=this['editor']['plugins']['get']('TableUtils');let _0xe99f2c=Number['MAX_SAFE_INTEGER'],_0x3241be=Number['MIN_SAFE_INTEGER'],_0x26928d=Number['MAX_SAFE_INTEGER'],_0x45e409=Number['MIN_SAFE_INTEGER'];for(const _0x5de316 of _0x15b105){if('$graveyard'==_0x5de316['root']['rootName'])continue;const {row:_0x2a17c5,column:_0x2e7821}=_0x4a5df0['getCellLocation'](_0x5de316),_0x44e5d1=_0x5de316['hasAttribute']('rowspan')?_0x5de316['getAttribute']('rowspan')-0x1:0x0,_0x269d42=_0x5de316['hasAttribute']('colspan')?_0x5de316['getAttribute']('colspan')-0x1:0x0;_0xe99f2c=_0x2a17c5<_0xe99f2c?_0x2a17c5:_0xe99f2c,_0x3241be=_0x2a17c5+_0x44e5d1>_0x3241be?_0x2a17c5+_0x44e5d1:_0x3241be,_0x26928d=_0x2e7821<_0x26928d?_0x2e7821:_0x26928d,_0x45e409=_0x2e7821+_0x269d42>_0x45e409?_0x2e7821+_0x269d42:_0x45e409;}return{'minRow':_0xe99f2c,'maxRow':_0x3241be,'minColumn':_0x26928d,'maxColumn':_0x45e409};}['_setupColumnsRowsFixing'](){const _0x4de54d=this['editor'],_0x1137ae=_0x4de54d['plugins']['get']('TrackChangesEditing'),_0x5df5d5=_0x4de54d['plugins']['get']('TableUtils');_0x4de54d['model']['document']['on']('change:data',()=>{const _0x290c6e=Array['from'](_0x4de54d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x467fb4,data:_0x3abb8b}of _0x290c6e){const {group:_0x3337a3,id:_0x299856,subType:_0xfc0d8e}=_0x1137ae['_splitMarkerName'](_0x467fb4);if('suggestion'!=_0x3337a3)continue;if(null!=_0x3abb8b['oldRange'])continue;const _0x3b5894=_0x1137ae['getSuggestion'](_0x299856);this['_tablePostFixingSubtypes']['includes'](_0xfc0d8e)&&this['_tableSuggestions']['add'](_0x3b5894);}},{'priority':'low'});const _0x587816=(_0x22a962,_0x1203ad)=>{let _0x2466b4=!0x1;const _0x19a575=_0x1203ad['createRangeOn'](_0x22a962),_0x1913f2=_0x22a962['findAncestor']('table'),_0xbba886=_0x5df5d5['getCellLocation'](_0x22a962);for(const _0x1410b3 of this['_tableSuggestions']){const _0x304ef9=_0x1410b3['subType'],_0x39884c=_0x304ef9['startsWith']('tablePaste'),_0xe0cd89=_0x304ef9['substr'](_0x39884c?0xa:0x5),_0x4080f4=_0xe0cd89['toLowerCase'](),_0x169818=_0x4080f4['substr'](0x0,0x3)+'span',_0x451415='min'+_0xe0cd89,_0x3c2e1e='max'+_0xe0cd89;if(!_0x1410b3['isInContent'])continue;if(_0x1913f2!=_0x1410b3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1410b3['isIntersectingWithRange'](_0x19a575))continue;const _0x3fd375=_0x22a962['hasAttribute'](_0x169818)?_0x22a962['getAttribute'](_0x169818)-0x1:0x0,_0x221013=this['_getSuggestionCoords'](_0x1410b3),_0x4f7282=_0x221013[_0x451415],_0x4c7285=_0x221013[_0x3c2e1e];_0x4f7282<=_0xbba886[_0x4080f4]&&_0xbba886[_0x4080f4]+_0x3fd375<=_0x4c7285&&(_0x1410b3['addRange'](_0x19a575),_0x2466b4=!0x0);}return _0x2466b4;};_0x4de54d['model']['document']['registerPostFixer'](_0x1410e6=>{let _0x4f4d42=!0x1;for(const _0x4221f3 of _0x4de54d['model']['document']['differ']['getChanges']())if('insert'==_0x4221f3['type']){if('tableRow'==_0x4221f3['name']){for(const _0x1142cc of _0x4221f3['position']['nodeAfter']['getChildren']())_0x4f4d42=_0x4f4d42||_0x587816(_0x1142cc,_0x1410e6);}else'tableCell'==_0x4221f3['name']&&(_0x4f4d42=_0x4f4d42||_0x587816(_0x4221f3['position']['nodeAfter'],_0x1410e6));}return _0x4f4d42;});}['_getSuggestionCoords'](_0x1c0ec2){return this['_getCoordsForCells'](_0x1c0ec2['getRanges']()['map'](_0x22f614=>_0x22f614['start']['nodeAfter']));}}function Ee(_0x41044c){return Array['from'](new Set(_0x41044c)['values']());}class St extends _0x5031ea{static get['requires'](){return[jt];}['afterInit'](){const _0x103592=this['editor'],_0x1ccf9f=_0x103592['model']['document']['selection'],_0x36442a=_0x103592['locale'];if(!_0x103592['plugins']['has']('TableEditing'))return;const _0x179503=_0x103592['plugins']['get']('TrackChangesEditing'),_0x23f8d5=_0x103592['plugins']['get']('TableUtils'),_0x4fa6b3=_0x103592['plugins']['get'](jt);_0x4fa6b3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x179503['enableCommand']('mergeTableCells',()=>{const _0x58bdd7=_0x23f8d5['getSelectionAffectedTableCells'](_0x103592['model']['document']['selection']);_0x103592['model']['change'](()=>{_0x179503['markMultiRangeBlockFormat'](_0x58bdd7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x103592['commands']['get']('mergeTableCells')['on']('execute',(_0x2b50dc,_0xdba575)=>{_0x103592['commands']['get']('trackChanges')['value']&&(_0xdba575['length']>0x0&&_0xdba575[_0xdba575['length']-0x1]&&_0xdba575[_0xdba575['length']-0x1]['forceDefaultExecution']||_0x179503['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2b50dc['stop']());},{'priority':'highest'});for(const _0x36cdc1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x44ff8d=_0x103592['commands']['get'](_0x36cdc1);_0x179503['enableCommand'](_0x36cdc1,()=>{const _0x3fdb2e=_0x103592['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x330da3=>_0x330da3['is']('element','tableCell')),_0x4bc353=_0x44ff8d['value'];_0x103592['model']['change'](()=>{_0x179503['markMultiRangeBlockFormat']([_0x3fdb2e,_0x4bc353],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xbcf616 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x32f428=_0x103592['commands']['get'](_0xbcf616);_0x179503['enableCommand'](_0xbcf616,()=>{const _0x86c3ab=_0x23f8d5['getSelectionAffectedTableCells'](_0x103592['model']['document']['selection'])[0x0],_0xc91961=_0x86c3ab['findAncestor']('table'),{column:_0x50ade8,row:_0x878e02}=_0x23f8d5['getCellLocation'](_0x86c3ab);let _0x9b52be=[];if('horizontally'==_0x32f428['direction']){const _0x941694=_0x23f8d5['createTableWalker'](_0xc91961,{'startRow':_0x878e02,'endRow':_0x878e02,'includeAllSlots':!0x0});_0x9b52be=Array['from'](_0x941694)['map'](_0x30e7a8=>_0x30e7a8['cell']);}else{const _0x491e65=_0x23f8d5['createTableWalker'](_0xc91961,{'column':_0x50ade8,'includeAllSlots':!0x0});_0x9b52be=Array['from'](_0x491e65)['map'](_0x4712cc=>_0x4712cc['cell']);}_0x103592['model']['change'](_0x53b8e2=>{_0x179503['markBlockFormat'](_0x53b8e2['createRangeOn'](_0x86c3ab),{'commandName':_0xbcf616,'commandParams':[]},_0x9b52be,_0xbcf616);});});}_0x179503['descriptionFactory']['registerDescriptionCallback'](_0x48c71a=>{if('formatBlock'!=_0x48c71a['type']&&'formatInline'!=_0x48c71a['type'])return;const {data:_0xcbb18d}=_0x48c71a;return _0xcbb18d&&'mergeTableCells'==_0xcbb18d['commandName']?{'type':'format','content':o(_0x36442a,'*Merge\x20cells*')}:void 0x0;}),_0x179503['descriptionFactory']['registerDescriptionCallback'](_0x16c1a0=>{if('formatBlock'!=_0x16c1a0['type']&&'formatInline'!=_0x16c1a0['type'])return;const {data:_0x3f241e}=_0x16c1a0;return _0x3f241e?'splitTableCellVertically'==_0x3f241e['commandName']?{'type':'format','content':o(_0x36442a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3f241e['commandName']?{'type':'format','content':o(_0x36442a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x48dd05=_0x4fa6b3['_acceptFormatSuggestionCallbackFactory']();for(const _0x140b4d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x179503['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x140b4d,'accept',_0x48dd05);for(const _0x257e1f of['splitTableCellVertically','splitTableCellHorizontally'])_0x179503['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x257e1f,'accept',_0x48dd05);_0x179503['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x32facc=>{_0x103592['model']['change'](_0x39e382=>{const _0x1c97ff=Array['from'](_0x1ccf9f['getRanges']())['map'](_0x57b7f4=>_0x108983['fromRange'](_0x57b7f4));_0x39e382['setSelection'](_0x32facc),_0x103592['commands']['get']('mergeTableCells')['refresh'](),_0x103592['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x96e25=_0x1c97ff['filter'](_0x525fb2=>'$graveyard'!=_0x525fb2['root']['rootName']);_0x96e25['length']>0x0&&_0x39e382['setSelection'](_0x96e25);for(const _0x28dd80 of _0x1c97ff)_0x28dd80['detach']();});});for(const _0x42ef02 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x287412=_0x103592['commands']['get'](_0x42ef02);_0x287412['on']('set:isEnabled',(_0x2fab6d,_0x18df2b,_0x403e08)=>{if(_0x403e08){const _0x2048c2=_0x103592['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x85526=>_0x85526['is']('element','tableCell'));this['_areMergableCells'](_0x287412['value'],_0x2048c2)||(_0x2fab6d['return']=!0x1,_0x2fab6d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x21fa3c=this['editor']['commands']['get']('mergeTableCells'),_0x270bc5=this['editor']['plugins']['get']('TableUtils');if(!_0x21fa3c['isEnabled'])return!0x1;const _0x18f058=_0x270bc5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5d1042 of _0x18f058)for(const _0x4253a8 of _0x18f058)if(_0x5d1042!=_0x4253a8&&!this['_areMergableCells'](_0x5d1042,_0x4253a8))return!0x1;return!0x0;}['_areMergableCells'](_0x45689c,_0x1f1f12){const _0x43520f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6acb38=this['editor']['model']['createRangeOn'](_0x45689c),_0x58e3b0=this['editor']['model']['createRangeOn'](_0x1f1f12),_0x392f2f=new Set(),_0x45a0a6=new Set();for(const _0x23c410 of _0x43520f['getSuggestions']())if(('insertion'==_0x23c410['type']||'deletion'==_0x23c410['type']||'mergeTableCells'==_0x23c410['subType'])&&_0x23c410['isInContent']){for(const _0x22b419 of _0x23c410['getRanges']())_0x22b419['containsRange'](_0x6acb38,!0x0)&&_0x392f2f['add'](_0x23c410['type']+':'+_0x23c410['author']['id']),_0x22b419['containsRange'](_0x58e3b0,!0x0)&&_0x45a0a6['add'](_0x23c410['type']+':'+_0x23c410['author']['id']);}if(_0x392f2f['size']!=_0x45a0a6['size'])return!0x1;for(const _0x35ba38 of _0x392f2f)if(!_0x45a0a6['has'](_0x35ba38))return!0x1;return!0x0;}}class At extends _0x5031ea{static get['requires'](){return[jt];}['afterInit'](){const _0x32112b=this['editor'];if(!_0x32112b['plugins']['has']('TableEditing'))return;const _0x56c7a0=_0x32112b['locale'],_0x3309e6=_0x32112b['plugins']['get']('TrackChangesEditing');_0x3309e6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3309e6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3309e6['registerBlockAttribute']('headingRows'),_0x3309e6['registerBlockAttribute']('headingColumns'),_0x3309e6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x56c7a0,'FORMAT_HEADER_ROW')),_0x3309e6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x56c7a0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1f451b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f08c4=this['editor']['plugins']['get']('TableUtils'),_0x226044=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x431ed1({showActiveMarker:_0x44edd9=!0x0,setDataAttribute:_0x1ab3eb=!0x0}={}){return(_0x1de34a,_0x51f8f8,_0x50c535)=>{const {type:_0x18f015,id:_0x15ac09}=_0x1f451b['_splitMarkerName'](_0x51f8f8['markerName']),_0x143f1b=_0x1f451b['getSuggestion'](_0x15ac09),_0x1a2e5e=_0x143f1b['data'];if('formatBlock'!=_0x143f1b['type']||!_0x1a2e5e||'setTableColumnHeader'!=_0x1a2e5e['commandName'])return;if(_0x51f8f8['item'])return void _0x1de34a['stop']();if(!_0x50c535['consumable']['consume'](_0x51f8f8['markerRange'],_0x1de34a['name']))return;const _0x17deb3=_0x51f8f8['markerRange']['start']['nodeAfter'],_0x13fb8e=_0x51f8f8['markerRange']['end']['nodeBefore'],_0x12559c=_0x17deb3['parent']['parent'],{column:_0x10e017}=_0x2f08c4['getCellLocation'](_0x17deb3),{column:_0x4d4039}=_0x2f08c4['getCellLocation'](_0x13fb8e);for(let _0x5e76a9=_0x10e017;_0x5e76a9<=_0x4d4039;_0x5e76a9++){const _0x2597b5=_0x2f08c4['createTableWalker'](_0x12559c,{'column':_0x5e76a9,'includeAllSlots':!0x1});for(const _0x5b9cf4 of _0x2597b5){const _0x543fb6=_0x5b9cf4['cell'],_0x263dd2=_0x50c535['mapper']['toViewElement'](_0x543fb6);_0x50c535['writer']['addClass']('ck-suggestion-marker-'+_0x18f015,_0x263dd2),_0x1ab3eb&&_0x50c535['writer']['setAttribute']('data-suggestion',_0x15ac09,_0x263dd2),_0x50c535['mapper']['bindElementToMarker'](_0x263dd2,_0x51f8f8['markerName']),_0x44edd9&&(_0x1f451b['activeMarkers']['includes'](_0x51f8f8['markerName'])?_0x50c535['writer']['addClass']('ck-suggestion-marker--active',_0x263dd2):_0x50c535['writer']['removeClass']('ck-suggestion-marker--active',_0x263dd2));}}};}_0x1f451b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x226044),_0x1f451b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x226044),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x431ed1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ed019,_0xcafae2,_0x16b229)=>{_0x16b229['options']['showSuggestionHighlights']&&_0x431ed1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4ed019,_0xcafae2,_0x16b229);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x55d781,_0x5b1698,_0x2a308f)=>{const {type:_0x5a23bd,id:_0x275823}=_0x1f451b['_splitMarkerName'](_0x5b1698['markerName']),_0x5acca9=_0x1f451b['getSuggestion'](_0x275823),_0x572d3b=_0x5acca9['data'];if('formatBlock'!=_0x5acca9['type']||!_0x572d3b||'setTableColumnHeader'!=_0x572d3b['commandName'])return;const _0x24c00b=_0x2a308f['mapper']['markerNameToElements'](_0x5b1698['markerName']);if(_0x24c00b){for(const _0x4466a5 of _0x24c00b)_0x2a308f['writer']['removeClass']('ck-suggestion-marker-'+_0x5a23bd,_0x4466a5),_0x2a308f['writer']['removeClass']('ck-suggestion-marker--active',_0x4466a5),_0x2a308f['writer']['removeAttribute']('data-suggestion',_0x4466a5),_0x2a308f['mapper']['unbindElementFromMarkerName'](_0x4466a5,_0x5b1698['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1be6c0=this['editor'],_0x277b6f=_0x1be6c0['locale'];function _0x5e0272(_0x14fb00){return{'type':'format','content':o(_0x277b6f,'*Format:*\x20%0',_0x14fb00)};}_0x1be6c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38ecab=>{if('formatBlock'!=_0x38ecab['type'])return;const {data:_0x553bee}=_0x38ecab;if(_0x553bee){if('setTableRowHeader'==_0x553bee['commandName']){const _0x36c4b6=_0x553bee['commandParams'][0x0]['forceValue'];return _0x5e0272(o(_0x277b6f,_0x36c4b6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x553bee['commandName']){const _0x11df79=_0x553bee['commandParams'][0x0]['forceValue'];return _0x5e0272(o(_0x277b6f,_0x11df79?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x561c9a=>[_0x561c9a,null]));class It extends _0x5031ea{static get['requires'](){return[jt];}['afterInit'](){const _0x346ba9=this['editor'];if(!_0x346ba9['plugins']['has']('TableClipboard'))return;const _0x51c16a=_0x346ba9['plugins']['get']('TrackChangesEditing'),_0x5c2938=_0x346ba9['plugins']['get']('TableUtils'),_0x4671b9=_0x346ba9['plugins']['get'](jt),_0x123bb1=_0x346ba9['plugins']['get']('TableClipboard');_0x4671b9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x346ba9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x346ba9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x807ca8=null;_0x346ba9['model']['on']('insertContent',(_0x22f0a4,_0x116776)=>{const [_0x2d8bba,_0x3e20d5]=_0x116776,_0x4649b7=_0x116776[_0x116776['length']-0x1];_0x4649b7&&_0x4649b7['forceDefaultExecution']||_0x51c16a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x179294,_0x2fc027,_0x4d348f,_0x4fe592,_0x4902c3){if(_0x2fc027&&!_0x2fc027['is']('documentSelection'))return!0x1;const _0x3b24ce=_0x4902c3['getTableIfOnlyTableInContent'](_0x179294,_0x4d348f);if(!_0x3b24ce||!he(_0x3b24ce,void 0x0,_0x4fe592))return!0x1;const _0x1ada94=_0x4fe592['getSelectionAffectedTableCells'](_0x4d348f['document']['selection']);if(!_0x1ada94['length'])return!0x1;const _0x41cf62=_0x1ada94[0x0]['findAncestor']('table'),_0x1c4ea4=_0x4fe592['getRowIndexes'](_0x1ada94),_0x3923fe=_0x4fe592['getColumnIndexes'](_0x1ada94),_0x3874c={'startRow':_0x1c4ea4['first'],'endRow':_0x1c4ea4['last'],'startColumn':_0x3923fe['first'],'endColumn':_0x3923fe['last']};return 0x1==_0x1ada94['length']&&(_0x3874c['endRow']+=_0x4fe592['getRows'](_0x3b24ce)-0x1,_0x3874c['endColumn']+=_0x4fe592['getColumns'](_0x3b24ce)-0x1),he(_0x41cf62,_0x3874c,_0x4fe592);}(_0x2d8bba,_0x3e20d5,_0x346ba9['model'],_0x5c2938,_0x123bb1)&&(_0x22f0a4['stop'](),_0x807ca8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x346ba9['model']['change'](()=>{_0x346ba9['model']['insertContent'](_0x116776[0x0],_0x116776[0x1],_0x116776[0x2],{'forceDefaultExecution':!0x0});const _0x4a9952=_0x9738cc(),{rowInsertionRanges:_0x533865,columnInsertionRanges:_0xe848d1,insertionRanges:_0x13847f,deletionRanges:_0x5264ac,cells:_0x2e1840}=_0x807ca8;_0x533865['length']&&_0x51c16a['markMultiRangeInsertion'](_0x533865,'tablePasteRow',{'tablePasteChainId':_0x4a9952}),_0xe848d1['length']&&_0x51c16a['markMultiRangeInsertion'](_0xe848d1,'tablePasteColumn',{'tablePasteChainId':_0x4a9952}),_0x13847f['length']&&(_0x51c16a['markMultiRangeInsertion'](_0x13847f,'tablePaste',{'tablePasteChainId':_0x4a9952,'skipNestingCheck':!0x0}),_0x13847f['forEach'](_0x58b3ee=>_0x58b3ee['detach']?.())),_0x5264ac['length']&&(_0x51c16a['markMultiRangeDeletion'](_0x5264ac,'tablePaste',{'tablePasteChainId':_0x4a9952,'skipNestingCheck':!0x0}),_0x5264ac['forEach'](_0x3a42d2=>_0x3a42d2['detach']?.()));const _0x2f46d9=_0x51c16a['markMultiRangeBlockFormat'](_0x2e1840['map'](({element:_0x56cb3d})=>_0x56cb3d),{'formatGroupId':_0x9738cc()},[],'tablePasteCell',{'tablePasteChainId':_0x4a9952});if(_0x2f46d9){const _0x20b205=_0x2f46d9['getMarkers'](),_0x512fb7=[];for(const {element:_0x1bacbf,attributes:_0x19ea6e}of _0x2e1840){if(!_0x19ea6e)continue;const _0x24aa5e=_0x346ba9['model']['createRangeOn'](_0x1bacbf),_0x23e110=_0x20b205['find'](_0x555e39=>_0x555e39['getRange']()['isEqual'](_0x24aa5e));_0x23e110&&_0x512fb7['push']([_0x23e110['name'],_0x19ea6e]);}_0x512fb7['length']&&_0x2f46d9['setAttribute']('markerAttributes',Object['fromEntries'](_0x512fb7));}_0x807ca8=null;}));},{'priority':_0x80f00['high']+0xa}),_0x346ba9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xb456f4,_0x3e2486)=>{const [_0x37d745,_0x188380,,_0xcc162b]=_0x3e2486;if(!_0x807ca8)return;_0xb456f4['stop']();const _0x8ceb9=_0x37d745['cell'],_0x3713fb=_0x188380,_0x5c7d89=Pe(_0x8ceb9),_0x1166f8=Pe(_0x3713fb);_0xb456f4['return']=_0x8ceb9;let _0xe38d0=null,_0x2ab8a0=null;if(_0x1166f8||_0x5c7d89){if(_0x5c7d89&&!_0x1166f8){_0xcc162b['remove'](_0x8ceb9['getChild'](0x0));for(const _0x1ba30f of Array['from'](_0x3713fb['getChildren']()))_0xcc162b['insert'](_0x1ba30f,_0x8ceb9,'end');const _0xbd20c6=_0x807ca8['rowInsertionIndexes']['includes'](_0x37d745['row']),_0x3608cf=_0x807ca8['columnInsertionIndexes']['includes'](_0x37d745['column']);_0xbd20c6||_0x3608cf||(_0xe38d0=_0x108983['fromRange'](_0xcc162b['createRangeIn'](_0x8ceb9)));}else _0x1166f8&&!_0x5c7d89&&(_0x2ab8a0=_0xcc162b['createRangeIn'](_0x8ceb9));}else{const _0x5c2b1c=_0xcc162b['createElement']('tableCellSuggestion'),_0xfece4f=_0xcc162b['createElement']('tableCellSuggestion');_0xcc162b['wrap'](_0xcc162b['createRangeIn'](_0x8ceb9),_0xfece4f),_0xcc162b['insert'](_0x5c2b1c,_0x8ceb9,0x0);for(const _0x1ec27b of Array['from'](_0x3713fb['getChildren']()))_0xcc162b['insert'](_0x1ec27b,_0x5c2b1c,'end');_0xe38d0=_0x108983['fromRange'](_0xcc162b['createRangeOn'](_0x5c2b1c)),_0x2ab8a0=_0x108983['fromRange'](_0xcc162b['createRangeOn'](_0xfece4f));}const _0x53efae=Array['from'](_0x3713fb['getAttributes']())['filter'](([_0x5b8990])=>ge['includes'](_0x5b8990));_0x807ca8['cells']['push']({'element':_0x8ceb9,'attributes':_0x53efae['length']?Object['fromEntries'](_0x53efae):null}),_0xe38d0&&_0x807ca8['insertionRanges']['push'](_0xe38d0),_0x2ab8a0&&_0x807ca8['deletionRanges']['push'](_0x2ab8a0);},{'priority':'high'}),_0x5c2938['on']('insertColumns',(_0x273927,_0x2c203d)=>{const [_0x4e4c6f,_0x95a041={}]=_0x2c203d;if(!_0x807ca8)return;const _0x57e8e1=_0x95a041['at']||0x0,_0x59256b=_0x95a041['columns']||0x1;_0x807ca8['columnInsertionIndexes']=new Array(_0x59256b)['fill'](_0x57e8e1)['map']((_0xba276,_0x371718)=>_0xba276+_0x371718);for(const {cell:_0x1e9e80}of _0x5c2938['createTableWalker'](_0x4e4c6f,{'startColumn':_0x57e8e1,'endColumn':_0x57e8e1+_0x59256b-0x1}))_0x807ca8['columnInsertionRanges']['push'](_0x346ba9['model']['createRangeOn'](_0x1e9e80));},{'priority':'low'}),_0x5c2938['on']('insertRows',(_0x1b7299,_0x3bb5cd)=>{const [_0x101028,_0x300e93={}]=_0x3bb5cd;if(!_0x807ca8)return;const _0x53888b=_0x300e93['at']||0x0,_0x2e36e2=_0x300e93['rows']||0x1;_0x807ca8['rowInsertionIndexes']=new Array(_0x2e36e2)['fill'](_0x53888b)['map']((_0x48c112,_0x50da91)=>_0x48c112+_0x50da91);for(const {cell:_0x2914fb}of _0x5c2938['createTableWalker'](_0x101028,{'startRow':_0x53888b,'endRow':_0x53888b+_0x2e36e2-0x1}))_0x807ca8['rowInsertionRanges']['push'](_0x346ba9['model']['createRangeOn'](_0x2914fb));},{'priority':'low'}),_0x51c16a['descriptionFactory']['registerDescriptionCallback'](_0x1cca63=>{if(_0x1cca63['subType']&&_0x1cca63['subType']['startsWith']('tablePaste'))return _0x1cca63['previous']?{}:{'type':'insertion','content':o(_0x346ba9['locale'],'*Replace\x20table\x20cells*')};});const _0x11b217=()=>!0x1;for(const _0x49c256 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x51c16a['_suggestionFactory']['registerCustomCallback']('insertion',_0x49c256,'join',_0x11b217),_0x51c16a['_suggestionFactory']['registerCustomCallback']('deletion',_0x49c256,'join',_0x11b217),_0x51c16a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x49c256,'join',_0x11b217);_0x51c16a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x11b217),_0x51c16a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5bef42,_0x14d53d,_0x57a258)=>{const _0x4aae3f=_0x5bef42['map'](_0x335c3b=>_0x335c3b['getContainedElement']())['filter'](_0x52069c=>_0x52069c),_0x367bd1=new Map(_0x4aae3f['map'](_0x4c3ef5=>[_0x4c3ef5,null]));if(_0x807ca8){for(const {element:_0x48a367,attributes:_0x2424d4}of _0x807ca8['cells'])_0x2424d4&&_0x367bd1['set'](_0x48a367,_0x2424d4);}else{if(_0x57a258&&_0x57a258['markerAttributes'])for(const [_0x46e802,_0x3491d6]of Object['entries'](_0x57a258['markerAttributes'])){const _0x4b9d74=_0x346ba9['model']['markers']['get'](_0x46e802),_0x46eacf=_0x4b9d74?_0x4b9d74['getRange']()['getContainedElement']():null;_0x46eacf&&_0x367bd1['set'](_0x46eacf,_0x3491d6);}}_0x346ba9['model']['change'](_0x2bf4b1=>{for(const [_0x2f132d,_0x76cbc0]of _0x367bd1)_0x2bf4b1['setAttributes']({...Ce,..._0x76cbc0},_0x2f132d);});});const _0x3b8d7=(_0xb55624,_0x1d9471)=>{_0x51c16a['_suggestionFactory']['registerCustomCallback'](_0xb55624,'tablePaste',_0x1d9471,(_0x240293,_0x444632,_0x14b719)=>{_0x346ba9['model']['change'](_0x5513a7=>{const _0x3f0f4f=[];for(const _0x91fbd7 of _0x240293){const _0x3a19ce=_0x91fbd7['start']['nodeAfter'];_0x3a19ce['is']('element','tableCellSuggestion')&&_0x3f0f4f['push'](_0x3a19ce);}_0x51c16a['_suggestionFactory']['getSuggestionCallback'](_0xb55624,null,_0x1d9471)(_0x240293,_0x444632,_0x14b719);for(const _0x3bd875 of _0x3f0f4f)'$graveyard'!=_0x3bd875['root']['rootName']&&_0x5513a7['unwrap'](_0x3bd875);});});};_0x3b8d7('insertion','accept'),_0x3b8d7('insertion','discard'),_0x3b8d7('deletion','accept'),_0x3b8d7('deletion','discard'),_0x51c16a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x173c85=>{const _0x2803bc=_0x173c85['map'](_0x2ce2b4=>_0x2ce2b4['getContainedElement']()),_0x47950c=_0x2803bc[0x0]['findAncestor']('table'),{minRow:_0x28a4e6,maxRow:_0x2468e4}=_0x4671b9['_getCoordsForCells'](_0x2803bc);_0x5c2938['removeRows'](_0x47950c,{'at':_0x28a4e6,'rows':_0x2468e4-_0x28a4e6+0x1});}),_0x51c16a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5e16d1=>{const _0x2ee05a=_0x5e16d1['map'](_0x828fd8=>_0x828fd8['getContainedElement']()),_0xa198a5=_0x2ee05a[0x0]['findAncestor']('table'),{minColumn:_0x5e1e3d,maxColumn:_0x4183af}=_0x4671b9['_getCoordsForCells'](_0x2ee05a);_0x5c2938['removeColumns'](_0xa198a5,{'at':_0x5e1e3d,'columns':_0x4183af-_0x5e1e3d+0x1});});const _0x34ff37=(_0x5bc5d5,_0xefd1e0)=>{if(!_0xefd1e0['subType']||!_0xefd1e0['subType']['startsWith']('tablePaste'))return;const _0x3c0edd=_0xefd1e0['attributes']['tablePasteChainId'],_0x271a2b=_0x51c16a['getSuggestions']()['filter'](_0x5a0f07=>_0x5a0f07['isInContent']&&_0x5a0f07['attributes']&&_0x5a0f07['attributes']['tablePasteChainId']==_0x3c0edd);_0x271a2b['length']&&_0xefd1e0['getAllAdjacentSuggestions']()['length']!=_0x271a2b['length']&&_0x271a2b['reduce']((_0x4f093f,_0x3f13d2)=>(_0x4f093f['next']=_0x3f13d2,_0x3f13d2['previous']=_0x4f093f,_0x3f13d2));};function _0x576d85(_0x3fbf89,_0x3bd089=!0x0){const {id:_0x15ac92}=_0x51c16a['_splitMarkerName'](_0x3fbf89['markerName']),_0x444323=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xdb1bb0=_0x51c16a['activeMarkers']['includes'](_0x3fbf89['markerName']);return _0xdb1bb0&&_0x444323['push']('ck-suggestion-marker--active'),{'classes':_0x444323,'attributes':{'data-suggestion':_0x15ac92},'priority':_0xdb1bb0&&_0x3bd089?0xbc2:0xbb8};}_0x51c16a['on']('suggestionLoaded',_0x34ff37,{'priority':'high'}),_0x51c16a['on']('suggestionUnloaded',_0x34ff37,{'priority':'high'}),_0x346ba9['model']['document']['registerPostFixer'](()=>{let _0x2ad077=!0x1;const _0x4a5bb3=Array['from'](_0x346ba9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42a199,data:_0x2d50f0}of _0x4a5bb3){const {group:_0x396b17,type:_0x43dfca,id:_0x155179}=_0x51c16a['_splitMarkerName'](_0x42a199);if('suggestion'!=_0x396b17||'deletion'!=_0x43dfca||_0x2d50f0['oldRange'])continue;if(!_0x51c16a['hasSuggestion'](_0x155179))continue;const _0x8a9826=_0x51c16a['getSuggestion'](_0x155179)['getRanges'](),_0x395718=_0x346ba9['plugins']['get']('Users')['me'];for(const _0x15363d of _0x51c16a['getSuggestions']()){if(!_0x15363d['isInContent']||_0x15363d['author']!=_0x395718)continue;if('formatBlock'!=_0x15363d['type']||'tablePasteCell'!=_0x15363d['subType'])continue;if(_0x15363d['getRanges']()['every'](_0x3af877=>_0x8a9826['some'](_0x49845a=>_0x49845a['containsRange'](_0x3af877,!0x0)))){for(const _0x40ba51 of _0x15363d['getAllAdjacentSuggestions']())_0x40ba51['isInContent']&&(_0x40ba51['discard'](),_0x2ad077=!0x0);}}}return _0x2ad077;}),_0x346ba9['model']['document']['registerPostFixer'](_0x5dcff2=>{const _0x48795e=_0x346ba9['commands']['get']('redo');if(!_0x48795e||!_0x48795e['_createdBatches']['has'](_0x5dcff2['batch']))return!0x1;let _0x7b7821=!0x1;const _0x11aea2=_0x346ba9['plugins']['get']('Users')['me'],_0x282d62=_0x346ba9['model']['document']['differ']['getChanges'](),_0x49a563=Array['from'](_0x346ba9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3449cc,data:_0x2d48f2})=>{const {group:_0xb20ddb,subType:_0x155ad3,authorId:_0x404e34}=_0x51c16a['_splitMarkerName'](_0x3449cc);return'suggestion'==_0xb20ddb&&'tablePaste'==_0x155ad3&&_0x404e34==_0x11aea2['id']&&!_0x2d48f2['oldRange'];});for(const _0x46519f of _0x282d62){if('insert'!=_0x46519f['type']||'tableCellSuggestion'!=_0x46519f['name']||0x1!=_0x46519f['length'])continue;const _0x25654f=_0x5dcff2['createRange'](_0x46519f['position'],_0x46519f['position']['getShiftedBy'](0x1));if(!_0x49a563['find'](({data:_0x51d8b3})=>_0x51d8b3['newRange']['isEqual'](_0x25654f))){for(const {name:_0x473a70,data:_0x51cffb}of _0x49a563)if(_0x25654f['containsRange'](_0x51cffb['newRange'])){_0x5dcff2['updateMarker'](_0x473a70,{'range':_0x25654f}),_0x7b7821=!0x0;break;}}}return _0x7b7821;}),_0x346ba9['model']['document']['registerPostFixer'](_0x5df91e=>{let _0x28a24c=!0x1;const _0x3b7c0a=_0x346ba9['plugins']['get']('Users')['me'],_0x43421c=_0x51c16a['getSuggestions']()['filter'](_0xda221e=>_0xda221e['isInContent']&&_0xda221e['author']==_0x3b7c0a),_0x58d63a=new Set(),_0x3935a0=new Set();for(const _0x5d6a69 of _0x43421c)if('tablePaste'==_0x5d6a69['subType'])for(const _0x569ce8 of _0x5d6a69['getMarkers']()){const _0xa559b=_0x569ce8['getRange']()['getContainedElement']();if(_0xa559b){if(_0xa559b['is']('element','tableCellSuggestion')&&Pe(_0xa559b)){_0x5d6a69['removeMarker'](_0x569ce8['name']),_0x58d63a['add'](_0xa559b),_0x28a24c=!0x0;const _0x2bd883=_0xa559b['nextSibling'],_0x1fa54b=_0xa559b['previousSibling'],_0x42cfe6=_0x2bd883&&_0x2bd883['is']('element','tableCellSuggestion'),_0x2f59fa=_0x1fa54b&&_0x1fa54b['is']('element','tableCellSuggestion');_0x42cfe6&&!_0x58d63a['has'](_0x2bd883)&&_0x3935a0['add'](_0x2bd883),_0x2f59fa&&!_0x58d63a['has'](_0x1fa54b)&&_0x3935a0['add'](_0x1fa54b);}else _0xa559b['is']('element','paragraph')&&_0xa559b['isEmpty']&&(_0x5d6a69['removeMarker'](_0x569ce8['name']),_0x28a24c=!0x0);}}else{if('tablePasteCell'==_0x5d6a69['subType']){if(!_0x5d6a69['attributes']||!_0x5d6a69['attributes']['tablePasteChainId'])continue;const _0x43e885=_0x5d6a69['attributes']['markerAttributes'];if(_0x43e885&&Object['keys'](_0x43e885)['length'])continue;const _0x1b9d7c=_0x5d6a69['attributes']['tablePasteChainId'];let _0x31e433=!0x0,_0x3f9703=!0x0;for(const _0x4636eb of _0x43421c)if(_0x4636eb['subType']&&_0x4636eb['subType']['startsWith']('tablePaste')){if(!_0x4636eb['attributes']['tablePasteChainId']){_0x3f9703=!0x1;break;}if(_0x4636eb['id']!=_0x5d6a69['id']&&_0x4636eb['attributes']['tablePasteChainId']==_0x1b9d7c){_0x31e433=!0x1;break;}}_0x3f9703&&_0x31e433&&(_0x5d6a69['removeMarkers'](),_0x28a24c=!0x0);}}for(const _0x19ab32 of _0x58d63a)_0x5df91e['remove'](_0x19ab32);for(const _0x9de401 of _0x3935a0)_0x5df91e['unwrap'](_0x9de401);return _0x28a24c;}),_0x346ba9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x369ad,_0x231dd2)=>_0x576d85(_0x369ad),'converterPriority':'high'}),_0x346ba9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xfd5f37,_0x475480)=>_0x475480['options']['showSuggestionHighlights']?_0x576d85(_0xfd5f37,!0x1):null,'converterPriority':'high'});const _0x5f41b7=_0x346ba9['editing']['view'];this['listenTo'](_0x5f41b7['document'],'clipboardOutput',(_0x5b74c2,_0x27091b)=>{const _0x3c44e5=[];for(const _0xcefb61 of _0x5f41b7['createRangeIn'](_0x27091b['content'])['getItems']())_0xcefb61['is']('element','suggestion-td')&&_0x3c44e5['push'](_0xcefb61);_0x5f41b7['change'](_0x277aa9=>{for(const _0x3efa6f of _0x3c44e5)_0x277aa9['move'](_0x277aa9['createRangeIn'](_0x3efa6f),_0x277aa9['createPositionBefore'](_0x3efa6f)),_0x277aa9['remove'](_0x3efa6f);});});}}function Pe(_0x3e902c){if(_0x3e902c['isEmpty'])return!0x0;const _0x5e9e54=_0x3e902c['getChild'](0x0);return _0x5e9e54['is']('element','paragraph')&&_0x5e9e54['isEmpty'];}function he(_0x5db4a3,_0xdf648e={},_0x17fb3c){for(const {isAnchor:_0x3c8eba,cellHeight:_0x2ac4da,cellWidth:_0x2ca779}of _0x17fb3c['createTableWalker'](_0x5db4a3,{'includeAllSlots':!0x0,..._0xdf648e}))if(!_0x3c8eba||0x1!=_0x2ac4da||0x1!=_0x2ca779)return!0x1;return!0x0;}class vt extends _0x5031ea{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x137621=this['editor']['plugins']['get']('TrackChangesEditing');_0x137621['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x137621['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x137621['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x137621['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x137621['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x137621['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x235050,_0x1dea60){const _0x3f9173=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5797bf=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x594b65=_0x1dea60['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x20b643=_0x5797bf['getColumnGroupElement'](_0x594b65);let _0x58befb=_0x20b643?_0x5797bf['getTableColumnsWidths'](_0x20b643):null,_0x5722ae=_0x594b65['getAttribute']('tableWidth')||null;const _0x2c79e5=_0x1dea60['tableWidth']||_0x5722ae,_0x4b4509=_0x1dea60['columnWidths']||_0x58befb,_0x7865a5=this['editor']['plugins']['get']('Users')['me'];for(const _0x3086b0 of _0x3f9173['getSuggestions']()){const _0x53c8e3=_0x3086b0['getContainedElement']();if('resizeTable'===_0x3086b0['subType']&&_0x53c8e3===_0x594b65){_0x3086b0['author']!==_0x7865a5&&_0x3086b0['discard']();const _0x511b50=_0x3086b0['data']['commandParams'];_0x5722ae=_0x511b50[0x0]['tableWidth'],_0x58befb=_0x511b50[0x0]['columnWidths'];break;}}_0x235050({'table':_0x594b65,'tableWidth':_0x2c79e5,'columnWidths':_0x4b4509}),_0x3f9173['markBlockFormat'](_0x594b65,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5722ae,'columnWidths':_0x58befb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1f026a){if('formatBlock'!=_0x1f026a['type']&&'formatInline'!=_0x1f026a['type'])return;const {data:_0x34d6e7}=_0x1f026a;if(_0x34d6e7&&'resizeTable'===_0x34d6e7['formatGroupId']){const _0x328a09='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x328a09)};}}}class Ct extends _0x5031ea{['afterInit'](){const _0x29ddad=this['editor'];_0x29ddad['plugins']['has']('Template')&&_0x29ddad['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x5031ea{['afterInit'](){const _0x27bf9c=this['editor'];if(!_0x27bf9c['commands']['get']('insertTableOfContents'))return;_0x27bf9c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1ced8e=_0x27bf9c['plugins']['get']('TrackChangesEditing'),_0x52052f=_0x27bf9c['locale'];_0x1ced8e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x199376=>o(_0x52052f,'ELEMENT_TABLE_OF_CONTENTS',_0x199376));}}class Dt extends _0x5031ea{['afterInit'](){const _0x4e1d02=this['editor'];if(!_0x4e1d02['plugins']['has']('Title'))return;const _0x952888=_0x4e1d02['plugins']['get']('TrackChangesEditing');_0x952888['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4e1d02['locale'],'ELEMENT_TITLE')),_0x4e1d02['model']['document']['registerPostFixer'](_0x1eeda8=>{let _0x16f658=!0x1;const _0x270736=Array['from'](_0x4e1d02['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b0878,data:_0x463c10}of _0x270736){const {group:_0x194786}=_0x952888['_splitMarkerName'](_0x4b0878);if('suggestion'!==_0x194786||!_0x463c10['newRange'])continue;const _0x52ae51=_0x463c10['newRange'],_0x19d65d=_0x52ae51['end']['nodeBefore'];if(!_0x19d65d||!_0x19d65d['is']('element','title-content'))continue;if(!_0x52ae51['start']['isTouching'](_0x52ae51['end']))continue;const _0x52f7ce=_0x4e1d02['model']['schema']['getNearestSelectionRange'](_0x52ae51['end'],'forward');if(_0x52f7ce&&_0x52f7ce['isCollapsed']){const _0x3d2fe0=_0x1eeda8['createRange'](_0x52ae51['start'],_0x52f7ce['start']);_0x3d2fe0['isEqual'](_0x52ae51)||(_0x1eeda8['updateMarker'](_0x4b0878,{'range':_0x3d2fe0}),_0x16f658=!0x0);}_0x16f658||(_0x1eeda8['removeMarker'](_0x4b0878),_0x16f658=!0x0);}return _0x16f658;});}}class Nt extends _0x5031ea{['afterInit'](){const _0x102ab9=this['editor'],_0x216a91=_0x102ab9['plugins']['get']('TrackChangesEditing');_0x102ab9['plugins']['has']('UndoEditing')&&(_0x216a91['enableCommand']('undo'),_0x216a91['enableCommand']('redo'));}}class Mt extends _0x5031ea{static get['requires'](){return[jt];}['afterInit'](){const _0x495cde=this['editor'];if(!_0x495cde['plugins']['has']('TableCaptionEditing'))return;_0x495cde['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x5031ea{['tableProperties'];['tableCellProperties'];constructor(_0x3da7ad){super(_0x3da7ad),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 _0x2ef25d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x50c684 of this['tableProperties'])_0x2ef25d['enableCommand'](_0x50c684,(_0x40eacc,_0x4bfef7)=>{const _0x4f910f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x50c684,[_0x4f910f],this['tableProperties'],'tableProperties',_0x40eacc,_0x4bfef7);});_0x2ef25d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2ef25d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ef25d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x26c883,_0x4b864b)=>this['handleDiscardAction'](this['tableProperties'],_0x26c883,_0x4b864b)),_0x2ef25d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x485117 of this['tableCellProperties'])_0x2ef25d['enableCommand'](_0x485117,(_0x3ac838,_0x30b3fc)=>{const _0xb1fda0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x485117,_0xb1fda0,this['tableCellProperties'],'tableCellProperties',_0x3ac838,_0x30b3fc);});_0x2ef25d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2ef25d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ef25d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x49c485,_0x3439f3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x49c485,_0x3439f3)),_0x2ef25d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2ef25d['descriptionFactory']['registerDescriptionCallback'](_0x4782bb=>this['handleSuggestionDescription'](_0x4782bb));}['_handlePropertyChange'](_0x12f99c,_0x5cf42f,_0x11c68c,_0x3843e6,_0x2e68bc,_0x1d6d27){const _0x3f8d88=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1d6d27['batch'],()=>{for(const _0x2b1772 of _0x5cf42f){if(this['_getSuggestion'](_0x2b1772,_0x3843e6))_0x2e68bc(_0x1d6d27);else{const _0x1f5e6d={};for(const _0x5389b6 of _0x11c68c){const _0x5324b6=_0x2b1772['getAttribute'](_0x5389b6);void 0x0!==_0x5324b6&&(_0x1f5e6d[_0x5389b6]=_0x5324b6);}_0x2e68bc(_0x1d6d27),_0x3f8d88['markBlockFormat'](_0x2b1772,{'commandParams':[_0x1f5e6d]},[],_0x3843e6);}}});}['handleDiscardAction'](_0x1bedc0,_0x4124e4,_0x24b7b7){const _0x303df3=_0x4124e4[0x0]['start']['nodeAfter'],_0x269745=_0x24b7b7['commandParams'][0x0];this['editor']['model']['change'](_0x27f0a7=>{for(const _0x4a79bd of _0x1bedc0)void 0x0!==_0x269745[_0x4a79bd]?_0x27f0a7['setAttribute'](_0x4a79bd,_0x269745[_0x4a79bd],_0x303df3):_0x27f0a7['removeAttribute'](_0x4a79bd,_0x303df3);});}['handleSuggestionDescription'](_0xd034fc){if(_0xd034fc['data'])switch(_0xd034fc['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'](_0x42afa6,_0x3ad429){const _0x377b5a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x26f67d of _0x377b5a['getSuggestions']({'skipNotAttached':!0x0})){const _0x174b84=_0x26f67d['getContainedElement']();if(_0x26f67d['subType']===_0x3ad429&&_0x174b84===_0x42afa6)return _0x26f67d;}return null;}}const m='$elementName';class p extends _0x5031ea{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x18a2fd,_0x557551,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(_0x222c98){function _0x1dca63(_0x2c1c48){return _0x2c1c48['map'](_0x53f30d=>String['fromCharCode'](_0x53f30d))['join']('');}super(_0x222c98),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x536a60,_0x5eb61b,_0x4d5e27,_0x131ba4)=>{this['_model']['change'](()=>{for(const _0x1521db of[..._0x131ba4,..._0x4d5e27])this['_model']['markers']['has'](_0x1521db)&&_0x222c98['editing']['reconvertMarker'](_0x1521db);});}),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']=_0x222c98['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(),_0x222c98['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x222c98['config']['get']('trackChanges.trackFormatChanges'),_0x222c98['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x222c98['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x222c98,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1dca63([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1dca63([0x34,0x30,0x34,0x38,0x31,0x34,0x31,0x32]);}['init'](){const _0x5b167e=this['editor'],_0x47b8fc=(_0x3e1196,_0x18d553)=>{if('attribute'!=_0x3e1196)return'ck-suggestion-marker-'+_0x3e1196;const _0x51b03f=_0x18d553['split']('|')[0x0];return this['_isBlockAttribute'](_0x51b03f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5b167e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x298491=>{const {id:_0xb9070b,type:_0x92ab73,subType:_0x40384f}=this['_splitMarkerName'](_0x298491['markerName']),_0x1f2572=['ck-suggestion-marker',_0x47b8fc(_0x92ab73,_0x40384f)];let _0x1d537f=0xbb8;return this['activeMarkers']['includes'](_0x298491['markerName'])&&(_0x1f2572['push']('ck-suggestion-marker--active'),_0x1d537f=0xbc2),'deletion'==_0x92ab73&&(_0x1d537f+=0x5),{'classes':_0x1f2572,'attributes':{'data-suggestion':_0xb9070b},'priority':_0x1d537f};}}),_0x5b167e['conversion']['for']('dataDowncast')['add'](_0x3e277e=>{_0x3e277e['on']('addMarker:suggestion',(_0x20dedf,_0x23dacd,_0x4a9291)=>{if(!_0x4a9291['options']['showSuggestionHighlights'])return;const _0x47b441=_0x23dacd['item'];if(!_0x47b441)return;const _0x333e7f=_0x4a9291['mapper']['toViewElement'](_0x47b441);_0x5b167e['model']['schema']['isObject'](_0x47b441)&&_0x333e7f&&!_0x333e7f['getCustomProperty']('widget')&&_0x333e7f['is']('containerElement')&&_0x587dc6(_0x333e7f,_0x4a9291['writer']);},{'priority':'high'});}),_0x5b167e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x375e3e,_0x3ef85d)=>{if(!_0x3ef85d['options']['showSuggestionHighlights'])return null;const {type:_0xd85739,subType:_0x3177c5}=this['_splitMarkerName'](_0x375e3e['markerName']);return{'classes':['ck-suggestion-marker',_0x47b8fc(_0xd85739,_0x3177c5)],'priority':0xbb8};}});const _0x52ad75=({showActiveMarkers:_0xb1783a=!0x0,isAttributeSuggestion:_0x2624ee=!0x1}={})=>(_0x2cda76,_0x3ffa41,_0x187e85)=>{if(!_0x3ffa41['item'])return;const {id:_0x149281}=this['_splitMarkerName'](_0x3ffa41['markerName']);if(_0x2624ee){const _0x5d9fa2=this['_suggestions']['get'](_0x149281),_0x4084cc=this['_getAttributeKey'](_0x5d9fa2);if(!this['_isBlockAttribute'](_0x4084cc))return;}if(_0x3ffa41['item']['is']('selection'))return void _0x187e85['consumable']['consume'](_0x3ffa41['item'],_0x2cda76['name']);const _0x46a45d=_0x187e85['mapper']['toViewElement'](_0x3ffa41['item']);if(_0x3ffa41['item']['is']('element')&&_0x5b167e['model']['schema']['isBlock'](_0x3ffa41['item'])&&!_0x46a45d['getCustomProperty']('addHighlight')){_0x187e85['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x46a45d),_0x187e85['writer']['setAttribute']('data-suggestion',_0x149281,_0x46a45d),_0x187e85['mapper']['bindElementToMarker'](_0x46a45d,_0x3ffa41['markerName']),_0xb1783a&&(this['activeMarkers']['includes'](_0x3ffa41['markerName'])?_0x187e85['writer']['addClass']('ck-suggestion-marker--active',_0x46a45d):_0x187e85['writer']['removeClass']('ck-suggestion-marker--active',_0x46a45d));for(const _0x355691 of _0x5b167e['model']['createRangeIn'](_0x3ffa41['item'])['getItems']())_0x187e85['consumable']['consume'](_0x355691,_0x2cda76['name']);_0x187e85['consumable']['consume'](_0x3ffa41['item'],_0x2cda76['name']);}};_0x5b167e['conversion']['for']('dataDowncast')['add'](_0x128dfc=>{_0x128dfc['on']('addMarker:suggestion:formatBlock',(_0x54d63f,_0x1f7e80,_0x2b8f2b)=>{_0x2b8f2b['options']['showSuggestionHighlights']&&_0x52ad75({'showActiveMarkers':!0x1})(_0x54d63f,_0x1f7e80,_0x2b8f2b);},{'priority':'highest'});}),_0x5b167e['conversion']['for']('dataDowncast')['add'](_0x4c29ec=>{_0x4c29ec['on']('addMarker:suggestion:attribute',(_0x3e70cf,_0xcd7a36,_0x813680)=>{_0x813680['options']['showSuggestionHighlights']&&_0x52ad75({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3e70cf,_0xcd7a36,_0x813680);},{'priority':'highest'});}),_0x5b167e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x23c7c9,_0xb38add)=>_0xb38add['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x23c7c9['substr'](0xb)}}),_0x5b167e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x527142,{writer:_0x835f35})=>{let _0x4420e1='suggestion:'+_0x527142['getAttribute']('suggestion-type')+':'+_0x527142['getAttribute']('id');return _0x527142['getAttribute']('marker-count')&&(_0x4420e1+=':'+_0x527142['getAttribute']('marker-count')),_0x835f35['createElement']('$marker',{'data-name':_0x4420e1});}}),_0x5b167e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5b167e['conversion']['for']('editingDowncast')['add'](_0x36a338=>{_0x36a338['on']('addMarker:suggestion:formatBlock',_0x52ad75(),{'priority':'high'});}),_0x5b167e['conversion']['for']('editingDowncast')['add'](_0x15938d=>{_0x15938d['on']('addMarker:suggestion:attribute',_0x52ad75({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5b167e['conversion']['for']('editingDowncast')['add'](_0x3cc46b=>{_0x3cc46b['on']('removeMarker:suggestion:formatBlock',(_0x199c3d,_0x5b2a7d,_0x6607c)=>{const _0x272d3b=_0x6607c['mapper']['markerNameToElements'](_0x5b2a7d['markerName']);if(_0x272d3b){for(const _0x2a2a9d of _0x272d3b)_0x2a2a9d['getCustomProperty']('addHighlight')||(_0x6607c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2a2a9d),_0x6607c['writer']['removeAttribute']('data-suggestion',_0x2a2a9d),_0x6607c['mapper']['unbindElementFromMarkerName'](_0x2a2a9d,_0x5b2a7d['markerName']));}},{'priority':'high'});}),_0x5b167e['conversion']['for']('editingDowncast')['add'](_0x1300db=>{_0x1300db['on']('removeMarker:suggestion:attribute',(_0x407b06,_0x27c3f5,_0x1d90b3)=>{const _0x4afbcb=_0x1d90b3['mapper']['markerNameToElements'](_0x27c3f5['markerName']);if(!_0x4afbcb)return;const {id:_0x598635}=this['_splitMarkerName'](_0x27c3f5['markerName']),_0xc967ee=this['_suggestions']['get'](_0x598635),_0x51540f=this['_getAttributeKey'](_0xc967ee);if(this['_isBlockAttribute'](_0x51540f)){for(const _0x4ae059 of _0x4afbcb)_0x4ae059['getCustomProperty']('addHighlight')||(_0x1d90b3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4ae059),_0x1d90b3['writer']['removeAttribute']('data-suggestion',_0x4ae059),_0x1d90b3['mapper']['unbindElementFromMarkerName'](_0x4ae059,_0x27c3f5['markerName']));}},{'priority':'high'});}),_0x5b167e['model']['document']['registerPostFixer'](_0x30c6b4=>{let _0x2a5f20=!0x1;const _0x282c7a=Array['from'](_0x5b167e['model']['document']['differ']['getChangedMarkers']()),_0x2ece36=new Set();for(const {name:_0x3d8a75,data:_0x3583b5}of _0x282c7a){const {group:_0x58d194,type:_0x59415b,subType:_0x1e9432,id:_0x1603cd}=this['_splitMarkerName'](_0x3d8a75);if('suggestion'!==_0x58d194)continue;const _0x40f787=this['_suggestions']['get'](_0x1603cd);if(null!=_0x3583b5['newRange']){'formatInline'==_0x59415b&&(_0x2a5f20=_0x2a5f20||Et(_0x3583b5['newRange'],_0x3d8a75,_0x30c6b4,_0x5b167e['model']['schema']));const _0x27c086='attribute'==_0x59415b&&this['_isBlockAttribute'](_0x1e9432['split']('|')[0x0]);if(_0x3583b5['newRange']['isCollapsed']||'$graveyard'==_0x3583b5['newRange']['root']['rootName']||'formatBlock'==_0x59415b&&!Ut(_0x3583b5['newRange'])||_0x27c086&&!Ut(_0x3583b5['newRange'])||'deletion'==_0x59415b&&!(!Tt(_0x279556=_0x3583b5['newRange'])&&!function(_0x32b743){return _0x32b743['start']['parent']==_0x32b743['end']['nodeBefore']&&_0x32b743['start']['isAtEnd'];}(_0x279556)))_0x30c6b4['removeMarker'](_0x3d8a75),_0x2a5f20=!0x0;else{if(!_0x40f787||!_0x40f787['isInContent'])continue;_0x2ece36['add'](_0x40f787);}}}var _0x279556;return _0x2ece36['size']>0x0&&(_0x2a5f20=!!this['_joinWithAdjacentSuggestions'](_0x2ece36)||_0x2a5f20),_0x2a5f20;}),_0x5b167e['model']['document']['registerPostFixer'](_0x3f0eec=>{let _0x36afff=!0x1;for(const _0x166d87 of _0x5b167e['model']['document']['differ']['getChanges']())if('insert'==_0x166d87['type'])for(const _0x297673 of this['_suggestions']['values']()){if(_0x297673['isMultiRange']||!_0x297673['isInContent'])continue;const _0x219afb='formatBlock'==_0x297673['type'],_0x2fd614=this['_getAttributeKey'](_0x297673),_0x2a41f7=_0x2fd614&&this['_isBlockAttribute'](_0x2fd614);if(!_0x219afb&&!_0x2a41f7)continue;const _0x13baea=_0x297673['getFirstRange']();if(_0x13baea['start']['parent']!=_0x13baea['end']['parent']&&!_0x13baea['end']['isAtEnd']){const _0x238bd6=_0x5b167e['model']['createPositionAt'](_0x13baea['start']['nodeAfter'],'end'),_0x37e637=_0x5b167e['model']['createRange'](_0x13baea['start'],_0x238bd6);_0x3f0eec['updateMarker'](_0x297673['getFirstMarker'](),{'range':_0x37e637}),_0x36afff=!0x0;}}return _0x36afff;}),_0x5b167e['model']['document']['registerPostFixer'](_0x423387=>this['_processAttributeChanges'](_0x423387)),_0x5b167e['model']['document']['registerPostFixer'](_0x8b8408=>!_0x8b8408['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x8b8408)),_0x5b167e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5b167e['model']['document']['on']('change:data',(_0x41d42,_0x2008c1)=>{if(!_0x2008c1['isLocal']||_0x2008c1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2d064e=_0x5b167e['model']['document']['differ']['getChanges']();if(0x0==_0x2d064e['length'])return;const _0x1b7a9a=[],_0xb2ffe4=_0x2d064e['filter'](_0x5eaaec=>'attribute'==_0x5eaaec['type']),_0x547cdc=_0x2d064e['filter'](_0xa7ab49=>'insert'==_0xa7ab49['type']&&'$text'!=_0xa7ab49['name']);for(const _0x1b8034 of _0xb2ffe4)this['_isRegisteredAttribute'](_0x1b8034['attributeKey'])&&_0x1b7a9a['push']({'key':_0x1b8034['attributeKey'],'newValue':_0x1b8034['attributeNewValue'],'oldValue':_0x1b8034['attributeOldValue'],'range':Ot(_0x1b8034['range'],_0x5b167e['model'])});for(const _0x327bdb of _0x547cdc){if('rename'!=_0x327bdb['action']&&'refresh'!=_0x327bdb['action'])continue;const _0x147f40=Gt(_0x327bdb['position']['nodeAfter'],_0x5b167e['model']),_0x56de54=_0x327bdb['before'];'rename'==_0x327bdb['action']&&_0x1b7a9a['push']({'key':m,'newValue':_0x327bdb['name'],'oldValue':_0x56de54['name'],'range':_0x147f40});for(const [_0x5ea9fc,_0x1f8a41]of _0x56de54['attributes']){if(!this['_isRegisteredAttribute'](_0x5ea9fc))continue;const _0x1de1a5=_0x327bdb['attributes']['get'](_0x5ea9fc);_0x1f8a41!==_0x1de1a5&&_0x1b7a9a['push']({'key':_0x5ea9fc,'newValue':_0x1de1a5,'oldValue':_0x1f8a41,'range':_0x147f40});}for(const [_0x484557,_0x5ce87d]of _0x327bdb['attributes'])this['_isRegisteredAttribute'](_0x484557)&&(_0x56de54['attributes']['has'](_0x484557)||_0x1b7a9a['push']({'key':_0x484557,'newValue':_0x5ce87d,'oldValue':null,'range':_0x147f40}));}0x0!=_0x1b7a9a['length']&&_0x5b167e['model']['enqueueChange'](_0x2008c1,_0x18c36c=>{const _0x465500=_0x9738cc();for(const {range:_0x4c3bdc,key:_0x4a7b29,oldValue:_0x150f42,newValue:_0x10ef7d}of _0x1b7a9a)this['markAttributeChange'](_0x4c3bdc,_0x4a7b29,_0x150f42,_0x10ef7d,{'groupId':_0x465500});this['_reduceExistingSuggestions'](_0x18c36c,_0x1b7a9a);});},{'priority':'lowest'}),_0x5b167e['model']['markers']['on']('update:suggestion',(_0x5546b2,_0x5b3bc5,_0x2c018d)=>{if(null==_0x2c018d){const {id:_0x592fda}=this['_splitMarkerName'](_0x5b3bc5['name']),_0x586fb5=this['_suggestions']['get'](_0x592fda);_0x586fb5&&_0x586fb5['addMarkerName'](_0x5b3bc5['name']);}}),_0x5b167e['model']['document']['on']('change:data',()=>{const _0x904528=Array['from'](_0x5b167e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x171de7=>'suggestion'===this['_splitMarkerName'](_0x171de7['name'])['group']);if(0x0===_0x904528['length'])return;_0x904528['sort']((_0x52c3ee,_0x47e407)=>{const _0x5d759b=_0x52c3ee['data']['oldRange'],_0x424651=_0x47e407['data']['oldRange'];return null===_0x5d759b&&null===_0x424651?0x0:null===_0x5d759b&&null!==_0x424651?-0x1:null!==_0x5d759b&&null===_0x424651?0x1:_0x5d759b['start']['isBefore'](_0x424651['start'])?-0x1:0x1;});const _0x412768=new Set(),_0x594f83=new Set();for(const {name:_0x446937,data:_0x45a86e}of _0x904528){const {id:_0x5df81f}=this['_splitMarkerName'](_0x446937);if(null===_0x45a86e['oldRange']){const _0x407988=this['_handleNewSuggestionMarker'](_0x446937);_0x594f83['add'](_0x407988);}else{const _0x2e9713=this['_suggestions']['get'](_0x5df81f);null!==_0x45a86e['newRange']||_0x2e9713['isInContent']?(_0x412768['add'](_0x2e9713['head']),_0x594f83['add'](_0x2e9713)):this['_removeSuggestion'](_0x2e9713);}}_0x594f83['size']>0x0&&this['_refreshSuggestionsChain'](_0x594f83);for(const _0xeb06ae of _0x412768)this['fire']('suggestionChanged',_0xeb06ae);}),_0x5b167e['model']['on']('applyOperation',(_0x2f5cb1,_0x4086c8)=>{const _0x5a9fc2=_0x4086c8[0x0];if(!this['_suggestions']['size'])return;if(!_0x5a9fc2['isDocumentOperation'])return;if(_0x5a9fc2['batch']['isUndo']||!_0x5a9fc2['batch']['isLocal'])return;let _0x1d6a08,_0x4d138c;switch(_0x5a9fc2['type']){case'insert':_0x1d6a08=_0x5b167e['model']['createPositionAt'](_0x5a9fc2['position']),_0x4d138c=_0x1d6a08['getShiftedBy'](_0x5a9fc2['howMany']);break;case'split':_0x1d6a08=_0x5b167e['model']['createPositionAt'](_0x5a9fc2['splitPosition']),_0x4d138c=_0x5b167e['model']['createPositionAt'](_0x5a9fc2['moveTargetPosition']);break;case'move':_0x1d6a08=_0x5b167e['model']['createPositionAt'](_0x5a9fc2['targetPosition']),_0x4d138c=_0x1d6a08['getShiftedBy'](_0x5a9fc2['howMany']);break;default:return;}const _0x23f859=_0x5b167e['model']['createRange'](_0x1d6a08,_0x4d138c);_0x5b167e['model']['change'](()=>{for(const {suggestion:_0x512629,meta:_0x28786c}of this['_findSuggestions'](_0x23f859)){if(_0x512629['isMultiRange'])continue;if('formatInline'==_0x512629['type'])continue;const _0x233968=this['_getAttributeKey'](_0x512629);if(_0x233968&&this['_isBlockAttribute'](_0x233968)&&'split'!=_0x5a9fc2['type'])continue;const _0x5e725b=_0x512629['data']&&_0x512629['data']['multipleBlocks'];('formatBlock'!=_0x512629['type']||'split'==_0x5a9fc2['type']&&!_0x5e725b)&&(_0x28786c['containsRangeInObject']||'insertion'==_0x512629['type']&&_0x28786c['isOwn']||_0x512629['getFirstRange']()['containsRange'](_0x23f859)&&this['_breakSuggestionMarker'](_0x512629,_0x1d6a08,_0x4d138c));}});},{'priority':'lowest'}),_0x5b167e['model']['on']('deleteContent',(_0x6ee628,_0x534fd3)=>{const _0x15ae8c=_0x534fd3[0x0],_0x4ef694=_0x534fd3[0x1];if(_0x4ef694&&_0x4ef694['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x15ae8c['isCollapsed'])return;const _0x3bc332=_0x5b167e['model']['schema'],{start:_0x58173a,end:_0x27b883}=_0x15ae8c['getFirstRange'](),_0x330a6d=_0x58173a['nodeAfter']&&_0x3bc332['isLimit'](_0x58173a['nodeAfter'])?null:_0x3bc332['getNearestSelectionRange'](_0x58173a,'forward'),_0x2a04ca=_0x27b883['nodeBefore']&&_0x3bc332['isLimit'](_0x27b883['nodeBefore'])?null:_0x3bc332['getNearestSelectionRange'](_0x27b883,'backward'),_0x59b757=_0x5b167e['model']['createRange'](_0x330a6d?_0x330a6d['start']:_0x58173a,_0x2a04ca?_0x2a04ca['end']:_0x27b883);_0x5b167e['model']['change'](_0x493b81=>{this['markDeletion'](_0x59b757);const _0x4957bc=_0x5b167e['model']['schema']['getNearestSelectionRange'](_0x59b757['start']);_0x15ae8c['is']('documentSelection')?_0x493b81['setSelection'](_0x4957bc):_0x15ae8c['setTo'](_0x4957bc);}),_0x6ee628['stop']();},{'priority':_0x80f00['normal']+0xa}),_0x5b167e['model']['on']('insertContent',(_0x3cf48d,_0xbbbf21)=>{const _0x472d2b=_0xbbbf21[_0xbbbf21['length']-0x1];_0x472d2b&&_0x472d2b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5b167e['model']['change'](()=>{let _0xf7879c=_0x5b167e['model']['insertContent'](_0xbbbf21[0x0],_0xbbbf21[0x1],_0xbbbf21[0x2],{'forceDefaultExecution':!0x0});if(!_0xf7879c)return;_0x3cf48d['return']=_0xf7879c['clone']();const _0x5cd855=_0xf7879c['end']['nodeBefore'],_0x10c91b=_0x5b167e['model']['schema'];_0x5cd855&&_0x10c91b['isBlock'](_0x5cd855)&&!_0x10c91b['isObject'](_0x5cd855)&&(_0xf7879c=_0x5b167e['model']['createRange'](_0xf7879c['start'],_0x5b167e['model']['createPositionAt'](_0x5cd855,'end'))),this['markInsertion'](_0xf7879c);}),_0x3cf48d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x442b3c=new $(_0x5b167e,this['_suggestions']);_0x5b167e['commands']['add']('acceptSuggestion',_0x442b3c),this['enableCommand']('acceptSuggestion');const _0x3c3f77=new B(_0x5b167e,this['_suggestions']);_0x5b167e['commands']['add']('discardSuggestion',_0x3c3f77),this['enableCommand']('discardSuggestion'),_0x5b167e['commands']['add']('acceptAllSuggestions',new x(_0x5b167e,_0x442b3c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5b167e['commands']['add']('discardAllSuggestions',new x(_0x5b167e,_0x3c3f77,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5b167e['commands']['add']('acceptSelectedSuggestions',new R(_0x5b167e,_0x442b3c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5b167e['commands']['add']('discardSelectedSuggestions',new R(_0x5b167e,_0x3c3f77,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x52b04c=_0x5b167e['plugins']['get']('CommentsRepository');this['listenTo'](_0x52b04c,'addComment',(_0x90f375,{threadId:_0x600443})=>{const _0x9c7b7f=this['_suggestions']['get'](_0x600443);_0x9c7b7f&&_0x9c7b7f['commentThread']&&0x1===_0x9c7b7f['commentThread']['length']&&this['_updateSuggestionData'](_0x600443,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x52b04c,'removeComment',(_0x106be0,{threadId:_0x1be916})=>{const _0x296c31=this['_suggestions']['get'](_0x1be916);_0x296c31&&_0x296c31['commentThread']&&!_0x296c31['commentThread']['length']&&this['_updateSuggestionData'](_0x1be916,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3da7f1){if(this['_adapter'])throw new _0xcb8e69('track-changes-adapter-already-set',this);this['_adapter']=_0x3da7f1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2a434c=!0x1,toJSON:_0x50613c=!0x1}={}){const _0x3b36b7=[];for(const _0x2eb268 of this['_suggestions']['values']())_0x2a434c&&!_0x2eb268['isInContent']||_0x3b36b7['push'](_0x2eb268);return _0x50613c?_0x3b36b7['map'](_0x4df541=>_0x4df541['toJSON']()):_0x3b36b7;}['getSuggestion'](_0x222031){const _0x529044=this['_suggestions']['get'](_0x222031);if(!_0x529044)throw new _0xcb8e69('track-changes-suggestion-not-found',this);return _0x529044;}['hasSuggestion'](_0x5de736){return this['_suggestions']['has'](_0x5de736);}['addSuggestionData'](_0x3b742e){const {authorId:_0x2d2cd1,id:_0x1e1af5,attributes:_0x40e416}=_0x3b742e,[_0x27eede,_0x2dd2f1]=_0x3b742e['type']['split'](':'),_0x4b3bd6=this['_suggestions']['get'](_0x1e1af5)||this['_createSuggestion'](_0x27eede,_0x2dd2f1,_0x1e1af5,_0x2d2cd1,_0x40e416);if(this['_addThreadToSuggestion'](_0x4b3bd6),this['_checkSuggestionCorrectness'](_0x4b3bd6,_0x27eede,_0x2dd2f1||null,_0x2d2cd1),_0x4b3bd6['createdAt']=_0x3b742e['createdAt'],_0x4b3bd6['_isDataLoaded']=!0x0,_0x40e416&&_0x40e416['@external']){const _0x52b06d=_0x40e416['@external'],_0x73495c=this['_getExternalAuthor'](_0x52b06d['authorName']);_0x4b3bd6['authoredAt']=_0x52b06d['createdAt'],_0x4b3bd6['author']=_0x73495c,_0x4b3bd6['isExternal']=!0x0;}else _0x4b3bd6['authoredAt']=_0x3b742e['createdAt'];switch(_0x3b742e['data']&&(_0x4b3bd6['data']=_0x3b742e['data']),_0x3b742e['attributes']&&(_0x4b3bd6['attributes']=_0x3b742e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4b3bd6['_saved']=!0x0),this['_suggestionState']['get'](_0x4b3bd6)){case'notReady':this['_suggestionState']['set'](_0x4b3bd6,'dataReady');break;case'markerReady':_0x4b3bd6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4b3bd6])),this['_refreshSuggestionsChain'](new Set([_0x4b3bd6])),this['_suggestionState']['set'](_0x4b3bd6,'ready'),this['fire']('suggestionLoaded',_0x4b3bd6)):this['_suggestionState']['set'](_0x4b3bd6,'removed');}return _0x4b3bd6;}['acceptSuggestion'](_0x2b9325){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x32d87f of _0x2b9325['getAllAdjacentSuggestions']())_0x32d87f['accept']();});});}['discardSuggestion'](_0x27d94f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e0339 of _0x27d94f['getAllAdjacentSuggestions']())_0x4e0339['discard']();});});}['enableCommand'](_0x112af3,_0x2403dd){const _0x169ba0=this['editor']['commands']['get'](_0x112af3);if(!_0x169ba0)throw new _0xcb8e69('track-changes-command-not-found',this,{'commandName':_0x112af3});if(this['_enabledCommands']['has'](_0x169ba0))throw new _0xcb8e69('track-changes-enable-command-twice',this,{'commandName':_0x112af3});this['_enabledCommands']['add'](_0x169ba0),_0x2403dd&&_0x169ba0['on']('execute',(_0x59610e,_0x3ac7f9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3ac7f9['length']>0x0&&_0x3ac7f9[_0x3ac7f9['length']-0x1]&&_0x3ac7f9[_0x3ac7f9['length']-0x1]['forceDefaultExecution']?_0x3ac7f9['pop']():(_0x59610e['return']=_0x2403dd((..._0x32bfd3)=>_0x169ba0['execute'](..._0x32bfd3,{'forceDefaultExecution':!0x0}),..._0x3ac7f9),_0x59610e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5f070e){let _0x42774f,_0x2ee160;const _0x43c59d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x42774f=_0x5f070e();}catch(_0x30a3e3){_0x2ee160=_0x30a3e3;}return _0x43c59d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2ee160&&_0xcb8e69['rethrowUnexpectedError'](_0x2ee160,this),_0x42774f;}['markInsertion'](_0x1ba302,_0x15a257=null,_0x9da2d4={}){if(_0x1ba302['isCollapsed'])return null;const _0x472099=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x12d8f6,meta:_0x5f1139}of this['_findSuggestions'](_0x1ba302,'insertion'))if(_0x5f1139['isOwn']){if(!_0x5f1139['isNextTo']){if(_0x5f1139['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x12d8f6,_0x9da2d4))continue;return _0x12d8f6;}if(Lt(_0x12d8f6,_0x9da2d4))return _0x12d8f6;this['_breakSuggestionMarker'](_0x12d8f6,_0x1ba302['start'],_0x1ba302['end']);break;}if(_0x15a257==_0x12d8f6['subType']&&Lt(_0x12d8f6,_0x9da2d4)){const _0x5ad1bb=_0x12d8f6['getFirstRange']();return _0x5ad1bb['start']['isEqual'](_0x1ba302['end'])?this['_setSuggestionRange'](_0x12d8f6,this['_model']['createRange'](_0x1ba302['start'],_0x5ad1bb['end'])):this['_setSuggestionRange'](_0x12d8f6,this['_model']['createRange'](_0x5ad1bb['start'],_0x1ba302['end'])),_0x12d8f6;}}const _0x177192=_0x9738cc(),_0x413a69=_0x472099['id'],_0x390473=_0x15a257?'insertion:'+_0x15a257:'insertion',_0x2a247a=this['_setSuggestionData']({'id':_0x177192,'type':_0x390473,'createdAt':new Date(),'authorId':_0x413a69,'attributes':_0x9da2d4});return this['_addSuggestionMarker'](_0x390473,_0x177192,_0x413a69,_0x1ba302),_0x2a247a;}['markMultiRangeInsertion'](_0x4d09d2,_0x2e0a9d='multi',_0x566548={}){const _0xe5fef=this['editor']['plugins']['get']('Users')['me'],_0x474984=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2e0a9d,'join');for(const _0x1cc99c of this['getSuggestions']())if(_0x1cc99c['author']['id']==_0xe5fef['id']&&'insertion'==_0x1cc99c['type']&&_0x1cc99c['subType']==_0x2e0a9d&&Lt(_0x1cc99c,_0x566548)&&(_0x474984(_0x1cc99c['getRanges'](),_0x4d09d2)||_0x474984(_0x4d09d2,_0x1cc99c['getRanges']()))){for(const _0xeb208e of _0x4d09d2)_0x1cc99c['addRange'](_0xeb208e);return _0x1cc99c;}for(const {suggestion:_0x38030f,meta:_0x242dc4}of this['_findSuggestions'](_0x4d09d2,'insertion')){if(!_0x242dc4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x242dc4['containsRangeInObject'])continue;if(!Lt(_0x38030f,_0x566548))continue;let _0x1abf46=!0x0;for(const _0x1f5b32 of _0x38030f['getRanges']())for(const _0x511f33 of _0x4d09d2)if(!_0x1f5b32['containsRange'](_0x511f33)){_0x1abf46=!0x1;break;}if(_0x1abf46)return _0x38030f;}const _0x8b7d8a=_0x9738cc(),_0x46a7ad=_0xe5fef['id'],_0x2402f9='insertion:'+_0x2e0a9d,_0x195534=this['_setSuggestionData']({'id':_0x8b7d8a,'type':_0x2402f9,'createdAt':new Date(),'authorId':_0x46a7ad,'attributes':_0x566548});for(const _0x274161 of _0x4d09d2)this['_addSuggestionMarker'](_0x2402f9,_0x8b7d8a,_0x46a7ad,_0x274161,u['getMultiRangeId']());return _0x195534;}['markInlineFormat'](_0x42a70c,_0x1d3076,_0x253ba6=null,_0x2079f1={}){if(_0x253ba6=_0x253ba6||Vt(_0x1d3076),_0x42a70c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5aef22=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x253ba6,'accept');return this['forceDefaultExecution'](()=>_0x5aef22([_0x42a70c],_0x1d3076,_0x2079f1)),null;}const _0x1c9008=this['editor']['plugins']['get']('Users')['me'],_0x1d5640=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x209d1e,meta:_0x289f73}of this['_findSuggestions'](_0x42a70c,'insertion'))_0x289f73['isOwn']&&!_0x289f73['isInsideObject']&&_0x1d5640['push'](..._0x209d1e['getRanges']());}const _0x297ebd=function(_0x3917b5,_0x1aba58){const _0x239ac3=[];for(const _0x3ebd70 of _0x1aba58){const _0x39b66b=_0x3917b5['getIntersection'](_0x3ebd70);_0x39b66b&&_0x239ac3['push'](_0x39b66b);}return _0x239ac3;}(_0x42a70c,_0x1d5640),_0x18d729=function(_0x2871ac,_0x588fbb){const _0x565be3=[_0x2871ac];for(const _0x3c4853 of _0x588fbb){let _0x401675=0x0;for(;_0x401675<_0x565be3['length'];){const _0x4c38ce=_0x565be3[_0x401675]['getDifference'](_0x3c4853);_0x565be3['splice'](_0x401675,0x1,..._0x4c38ce),_0x401675+=_0x4c38ce['length'];}}return _0x565be3;}(_0x42a70c,_0x1d5640);_0x297ebd['length']&&this['_model']['change'](()=>{for(const _0x5ef3af of _0x297ebd){const _0x1c262e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x253ba6,'accept');this['forceDefaultExecution'](()=>_0x1c262e([_0x5ef3af],_0x1d3076,_0x2079f1));}});for(const _0x1e6f83 of _0x18d729){let _0x59b39f=null,_0x502a4f=_0x1e6f83['start'],_0x37bb97=_0x1e6f83['end'];for(const {suggestion:_0x552db3,meta:_0x1f0e34}of this['_findSuggestions'](_0x1e6f83,'formatInline')){if(!_0x1f0e34['isOwn'])continue;if(_0x552db3['subType']!=_0x253ba6)continue;if(!Lt(_0x552db3,_0x2079f1))continue;const _0x10e9ce=_0x552db3['getFirstRange']();if(_0x10e9ce['containsRange'](_0x1e6f83,!0x0))return null;_0x502a4f=_0x502a4f['isBefore'](_0x10e9ce['start'])?_0x502a4f:_0x10e9ce['start'],_0x37bb97=_0x37bb97['isAfter'](_0x10e9ce['end'])?_0x37bb97:_0x10e9ce['end'],_0x59b39f?_0x10e9ce['start']['isBefore'](_0x59b39f['getFirstRange']()['start'])?(_0x59b39f['removeMarkers'](),_0x59b39f=_0x552db3):_0x552db3['removeMarkers']():_0x59b39f=_0x552db3;}const _0x535ca0=this['_model']['createRange'](_0x502a4f,_0x37bb97);if(_0x59b39f)this['_setSuggestionRange'](_0x59b39f,_0x535ca0);else{const _0x25cba5=_0x9738cc(),_0x536a8a=_0x1c9008['id'];this['_setSuggestionData']({'id':_0x25cba5,'type':'formatInline:'+_0x253ba6,'data':_0x1d3076,'createdAt':new Date(),'authorId':_0x536a8a,'attributes':_0x2079f1}),this['_addSuggestionMarker']('formatInline:'+_0x253ba6,_0x25cba5,_0x536a8a,_0x535ca0);}}return null;}['markBlockFormat'](_0x3a5ac1,_0x21e52a,_0x5957b6=[],_0x3c3067=null,_0x5c0f8b={}){_0x21e52a['formatGroupId']||(_0x21e52a['formatGroupId']=_0x21e52a['commandName']),_0x21e52a['multipleBlocks']=_0x3a5ac1['is']('range'),_0x3c3067=_0x3c3067||Vt(_0x21e52a);const _0x5ed6aa=_0x5957b6['map'](_0x553652=>Gt(_0x553652,this['_model'])),_0x1f3dcd=_0x3a5ac1['is']('range')?_0x3a5ac1:Gt(_0x3a5ac1,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5dcb97=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c3067,'accept');return this['forceDefaultExecution'](()=>_0x5dcb97([_0x1f3dcd],_0x21e52a,_0x5c0f8b)),null;}_0x5ed6aa['push'](_0x1f3dcd);let _0x5d4a79=!0x0;for(const _0x3026a2 of _0x5ed6aa)if(!this['_rangeIsInLocalUserInsertion'](_0x3026a2)){_0x5d4a79=!0x1;break;}if(_0x5d4a79&&'always'!==this['_trackFormatChanges']){const _0x1ff2be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c3067,'accept');return this['forceDefaultExecution'](()=>_0x1ff2be([_0x1f3dcd],_0x21e52a,_0x5c0f8b)),null;}let _0x3838d1=null,_0x3e7f4c=_0x1f3dcd['start'],_0x1569b4=_0x1f3dcd['end'];for(const {suggestion:_0x22392d,meta:_0x5080cb}of this['_findSuggestions'](_0x1f3dcd,'formatBlock')){if(!_0x5080cb['isOwn'])continue;if(_0x5080cb['isNextTo']||_0x5080cb['containsRangeInObject']||_0x5080cb['isInsideObject'])continue;if(_0x22392d['data']['formatGroupId']!=_0x21e52a['formatGroupId'])continue;if(!Lt(_0x22392d,_0x5c0f8b))continue;const _0x3b5c0d=_0x22392d['getFirstRange']();if(_0x22392d['subType']==_0x3c3067){if(_0x3b5c0d['containsRange'](_0x1f3dcd,!0x0))return null;_0x3e7f4c=_0x3e7f4c['isBefore'](_0x3b5c0d['start'])?_0x3e7f4c:_0x3b5c0d['start'],_0x1569b4=_0x1569b4['isAfter'](_0x3b5c0d['end'])?_0x1569b4:_0x3b5c0d['end'],_0x3838d1?_0x3b5c0d['start']['isBefore'](_0x3838d1['getFirstRange']()['start'])?(_0x3838d1['removeMarkers'](),_0x3838d1=_0x22392d):_0x22392d['removeMarkers']():_0x3838d1=_0x22392d;}else{const _0x2a5e05=_0x1f3dcd['getIntersection'](_0x3b5c0d);this['_cutOutSuggestionMarker'](_0x22392d,_0x2a5e05);}}const _0x5d9665=this['editor']['plugins']['get']('Users')['me'],_0x5e11b6=_0x9738cc(),_0x49f489=_0x5d9665['id'];if(_0x3838d1)return this['_setSuggestionRange'](_0x3838d1,this['_model']['createRange'](_0x3e7f4c,_0x1569b4)),_0x3838d1;{const _0x2c2602=this['_setSuggestionData']({'id':_0x5e11b6,'type':'formatBlock:'+_0x3c3067,'data':_0x21e52a,'createdAt':new Date(),'authorId':_0x49f489,'attributes':_0x5c0f8b});return this['_addSuggestionMarker']('formatBlock:'+_0x3c3067,_0x5e11b6,_0x49f489,this['_model']['createRange'](_0x3e7f4c,_0x1569b4)),_0x2c2602;}}['markMultiRangeBlockFormat'](_0x35dbee,_0xfeb8c2,_0x53f1a3=[],_0x1d268a=null,_0x481c3a={}){_0xfeb8c2['formatGroupId']||(_0xfeb8c2['formatGroupId']=_0xfeb8c2['commandName']);const _0x54e131=_0x35dbee[0x0];_0xfeb8c2['multipleBlocks']=_0x54e131['is']('range'),_0x1d268a=_0x1d268a||Vt(_0xfeb8c2);const _0x5e81cb=_0x53f1a3['map'](_0x138f7f=>Gt(_0x138f7f,this['_model'])),_0xcdef83=_0x54e131['is']('range')?_0x35dbee:_0x35dbee['map'](_0x2daffa=>Gt(_0x2daffa,this['_model']));if('never'===this['_trackFormatChanges']){const _0x41c8ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d268a,'accept');return this['forceDefaultExecution'](()=>_0x41c8ed(_0xcdef83,_0xfeb8c2,_0x481c3a)),null;}_0x5e81cb['push'](..._0xcdef83);let _0x4320b4=!0x0;for(const _0x55331c of _0x5e81cb)if(!this['_rangeIsInLocalUserInsertion'](_0x55331c)){_0x4320b4=!0x1;break;}if(_0x4320b4&&'always'!==this['_trackFormatChanges']){const _0x4cbc56=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d268a,'accept');return this['forceDefaultExecution'](()=>_0x4cbc56(_0xcdef83,_0xfeb8c2,_0x481c3a)),null;}const _0x4d09c4=this['editor']['plugins']['get']('Users')['me'];for(const _0x3af4c8 of this['getSuggestions']()){if(_0x3af4c8['author']['id']!=_0x4d09c4['id'])continue;if('formatBlock'!=_0x3af4c8['type']||_0x3af4c8['data']['formatGroupId']!=_0xfeb8c2['formatGroupId'])continue;if(!Lt(_0x3af4c8,_0x481c3a))continue;const _0x3c08ea=_0x3af4c8['subType']==_0x1d268a;for(let _0x5103df=0x0;_0x5103df<_0xcdef83['length'];_0x5103df++){const _0x32e404=_0xcdef83[_0x5103df];for(const _0x498a13 of _0x3af4c8['getMarkers']()){const _0x30c590=_0x498a13['getRange']();if(_0x32e404['isEqual'](_0x30c590)){_0x3c08ea?(_0xcdef83['splice'](_0x5103df,0x1),_0x5103df--):_0x3af4c8['removeMarker'](_0x498a13['name']);break;}}}}if(0x0==_0xcdef83['length'])return null;const _0x5da41f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d268a,'join');for(const _0x187e91 of this['getSuggestions']())if(_0x187e91['author']['id']==_0x4d09c4['id']&&'formatBlock'==_0x187e91['type']&&_0x187e91['data']['formatGroupId']==_0xfeb8c2['formatGroupId']&&_0x187e91['subType']==_0x1d268a&&Lt(_0x187e91,_0x481c3a)&&(_0x5da41f(_0x187e91['getRanges'](),_0xcdef83)||_0x5da41f(_0xcdef83,_0x187e91['getRanges']()))){for(const _0x1969f1 of _0xcdef83)_0x187e91['addRange'](_0x1969f1);return _0x187e91;}const _0x4f960c=_0x9738cc(),_0x5d4306=_0x4d09c4['id'],_0x2d33a6='formatBlock:'+_0x1d268a,_0x2fb2f3=this['_setSuggestionData']({'id':_0x4f960c,'type':_0x2d33a6,'data':_0xfeb8c2,'createdAt':new Date(),'authorId':_0x5d4306,'attributes':_0x481c3a});for(const _0x433a6f of _0xcdef83)this['_addSuggestionMarker'](_0x2d33a6,_0x4f960c,_0x5d4306,_0x433a6f,u['getMultiRangeId']());return _0x2fb2f3;}['markDeletion'](_0x1e51e7,_0xf3ca12=null,_0x5c9b3f={}){if(_0x1e51e7['isCollapsed'])return null;const _0x56c44f=this['editor']['plugins']['get']('Users')['me'],_0x3dd486=new _0x108983(_0x1e51e7['start'],_0x1e51e7['end']);for(const {suggestion:_0x4167d1,meta:_0x38cb22}of this['_findSuggestions'](_0x3dd486,'insertion'))if(_0x38cb22['isOwn']&&!_0x38cb22['isNextTo']){if(_0x4167d1['isMultiRange']){const _0x29ed86=_0x4167d1['getRanges']()['filter'](_0xbaf9c7=>'$graveyard'!=_0xbaf9c7['root']['rootName']);_0x29ed86['every'](_0x23ed1c=>_0x3dd486['containsRange'](_0x23ed1c,!0x0))&&_0x4167d1['discard']();if(_0x29ed86['some'](_0x2c05e=>_0x2c05e['containsRange'](_0x3dd486,!0x0))){const _0x3e6da7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xf3ca12,'accept');return this['forceDefaultExecution'](()=>_0x3e6da7([_0x3dd486],null,_0x5c9b3f)),null;}}else{const _0x5b2663=_0x3dd486['getIntersection'](_0x4167d1['getFirstRange']());null!==_0x5b2663&&_0x4167d1['_onDiscard']([_0x5b2663],null,_0x5c9b3f);}}if(_0x3dd486['detach'](),_0x3dd486['isCollapsed']||'$graveyard'==_0x3dd486['root']['rootName'])return null;let _0x1cdbee=null,_0x3b81e7=_0x3dd486['start'],_0x108dae=_0x3dd486['end'];const _0x54d5b3=this['_findSuggestions'](_0x3dd486,'deletion');for(const {suggestion:_0x1acf49,meta:_0x1c795a}of _0x54d5b3){const _0x34dc42=this['_model']['createRange'](_0x3b81e7,_0x108dae);if(_0x1c795a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1c795a['containsRangeInObject']&&!_0x1c795a['isInsideObject'])){if(_0x1acf49['isMultiRange']){if(!Lt(_0x1acf49,_0x5c9b3f))continue;let _0x5a3223=!0x0;for(const _0x23fbcd of _0x1acf49['getRanges']()){if(_0x23fbcd['containsRange'](_0x34dc42,!0x0))return _0x1acf49;_0x34dc42['containsRange'](_0x23fbcd)||(_0x5a3223=!0x1);}_0x5a3223&&_0x1acf49['discard']();}else{const _0x2da06b=_0x1acf49['getFirstRange']();if(_0x2da06b['containsRange'](_0x34dc42,!0x0))return _0x1acf49;if(!Lt(_0x1acf49,_0x5c9b3f)){_0x34dc42['containsRange'](_0x2da06b)?_0x1acf49['removeMarkers']():_0x2da06b['containsPosition'](_0x3b81e7)?_0x3b81e7=_0x2da06b['end']:_0x2da06b['containsPosition'](_0x108dae)&&(_0x108dae=_0x2da06b['start']);continue;}_0x3b81e7=_0x3b81e7['isBefore'](_0x2da06b['start'])?_0x3b81e7:_0x2da06b['start'],_0x108dae=_0x108dae['isAfter'](_0x2da06b['end'])?_0x108dae:_0x2da06b['end'],_0x5c9b3f=Object['assign']({},_0x1acf49['attributes']),_0x1cdbee?_0x2da06b['start']['isBefore'](_0x1cdbee['getFirstRange']()['start'])?(_0x1cdbee['removeMarkers'](),_0x1cdbee=_0x1acf49):_0x1acf49['removeMarkers']():_0x1cdbee=_0x1acf49;}}}if(_0x1cdbee)return this['_setSuggestionRange'](_0x1cdbee,this['_model']['createRange'](_0x3b81e7,_0x108dae)),_0x1cdbee;{const _0x10fe06=_0x9738cc(),_0x56a7c1=this['_model']['createRange'](_0x3b81e7,_0x108dae),_0x4fc7ef=_0x56c44f['id'],_0x3b7efb=_0xf3ca12?'deletion:'+_0xf3ca12:'deletion',_0x368449=this['_setSuggestionData']({'id':_0x10fe06,'type':_0x3b7efb,'createdAt':new Date(),'authorId':_0x4fc7ef,'attributes':_0x5c9b3f});return this['_addSuggestionMarker'](_0x3b7efb,_0x10fe06,_0x4fc7ef,_0x56a7c1),_0x368449;}}['markMultiRangeDeletion'](_0x7408e2,_0x3c3b53='multi',_0x18a11b={}){const _0x4985f4=this['editor']['plugins']['get']('Users')['me'],_0x5eba46=_0x7408e2['map'](_0x13b7cc=>new _0x108983(_0x13b7cc['start'],_0x13b7cc['end'])),_0x2eebc6=new Set();for(const {suggestion:_0x8ebc26,meta:_0x52899f}of this['_findSuggestions'](_0x5eba46,'insertion'))_0x52899f['isOwn']&&!_0x52899f['isNextTo']&&_0x2eebc6['add'](_0x8ebc26);for(const _0x982b66 of _0x2eebc6)if(_0x982b66['isMultiRange']){const _0x6a8283=_0x982b66['getRanges']();(!_0x982b66['attributes']||!_0x982b66['attributes']['skipNestingCheck'])&&(_0x6a8283['every'](_0x165afd=>_0x5eba46['some'](_0x19b194=>_0x19b194['containsRange'](_0x165afd,!0x0)))&&_0x982b66['discard']());if(_0x5eba46['every'](_0x562335=>_0x6a8283['some'](_0x2dca8b=>_0x2dca8b['containsRange'](_0x562335,!0x0)))){const _0x4e9693=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c3b53,'accept');return this['forceDefaultExecution'](()=>_0x4e9693(_0x7408e2,null,_0x18a11b)),null;}}else{const _0xd11f59=_0x982b66['getFirstRange']();_0x5eba46['some'](_0xffab8a=>_0xffab8a['containsRange'](_0xd11f59,!0x0))&&_0x982b66['discard']();if(_0x5eba46['every'](_0x28ed24=>_0xd11f59['containsRange'](_0x28ed24,!0x0))){const _0x12cbcc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c3b53,'accept');return this['forceDefaultExecution'](()=>_0x12cbcc(_0x5eba46,null,_0x18a11b)),null;}}const _0x2fdb0d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c3b53,'join');let _0x292212=null;for(const _0x3218f4 of this['getSuggestions']())if(_0x3218f4['author']['id']==_0x4985f4['id']&&_0x3218f4['isInContent']&&'deletion'==_0x3218f4['type']&&_0x3218f4['subType']==_0x3c3b53&&Lt(_0x3218f4,_0x18a11b)&&(_0x2fdb0d(_0x3218f4['getRanges'](),_0x5eba46)||_0x2fdb0d(_0x5eba46,_0x3218f4['getRanges']()))){if(_0x292212){if(_0x3218f4['commentThread']&&_0x3218f4['commentThread']['length'])continue;for(const _0x3211a4 of _0x3218f4['getRanges']())_0x292212['isIntersectingWithRange'](_0x3211a4)||_0x292212['addRange'](_0x3211a4);_0x3218f4['removeMarkers']();}else{_0x292212=_0x3218f4;for(const _0x4e57dc of _0x5eba46)_0x3218f4['isIntersectingWithRange'](_0x4e57dc)||_0x3218f4['addRange'](_0x4e57dc);}}if(_0x292212)return _0x292212;_0x2eebc6['clear']();for(const {suggestion:_0x1aed33,meta:_0x2081c5}of this['_findSuggestions'](_0x5eba46,'deletion'))_0x2081c5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2081c5['containsRangeInObject']&&!_0x2081c5['isInsideObject'])&&Lt(_0x1aed33,_0x18a11b)&&_0x2eebc6['add'](_0x1aed33);for(const _0x1f1341 of _0x2eebc6){const _0x4c3b26=_0x1f1341['getRanges']();if(!_0x18a11b||!_0x18a11b['skipNestingCheck']){if(_0x5eba46['every'](_0xe9a92b=>_0x4c3b26['some'](_0x1b245e=>_0x1b245e['containsRange'](_0xe9a92b,!0x0))))return _0x1f1341;}(!_0x1f1341['attributes']||!_0x1f1341['attributes']['skipNestingCheck'])&&(_0x4c3b26['every'](_0x2939da=>_0x5eba46['some'](_0x45aba6=>_0x45aba6['containsRange'](_0x2939da,!0x0)))&&_0x1f1341['discard']());}const _0x1eb68c=_0x9738cc(),_0x19cbab=_0x4985f4['id'],_0x2c9a5d='deletion:'+_0x3c3b53,_0x494a34=this['_setSuggestionData']({'id':_0x1eb68c,'type':_0x2c9a5d,'createdAt':new Date(),'authorId':_0x19cbab,'attributes':_0x18a11b});for(const _0x9b9c44 of _0x5eba46)_0x9b9c44['detach'](),_0x9b9c44['isCollapsed']||'$graveyard'==_0x9b9c44['root']['rootName']||this['_addSuggestionMarker'](_0x2c9a5d,_0x1eb68c,_0x19cbab,_0x9b9c44,u['getMultiRangeId']());return _0x494a34;}['markAttributeChange'](_0x293883,_0x42d2cb,_0x55bbca,_0x188c90,_0x479d16){if(_0x293883['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5ef124=this['editor']['plugins']['get']('Users')['me']['id'],_0x415f18=Array['from'](this['_suggestions']['values']())['filter'](_0x47d1f6=>'attribute'==_0x47d1f6['type']&&_0x47d1f6['data']['key']==_0x42d2cb&&_0x47d1f6['isIntersectingWithRange'](_0x293883));if('default'===this['_trackFormatChanges']){const _0x1ec999=this['_findSuggestions'](_0x293883,'insertion')['filter'](({meta:_0x43e76d})=>_0x43e76d['isOwn']&&!_0x43e76d['isInsideObject']&&!_0x43e76d['isNextTo'])['map'](({suggestion:_0x19d860})=>_0x19d860);_0x415f18['unshift'](..._0x1ec999);}const _0x114836=new Map([[_0x293883,_0x55bbca]]);for(const _0x78ff0b of _0x415f18){const _0x620eec='attribute'==_0x78ff0b['type']?_0x78ff0b['data']['oldValue']:void 0x0,_0x30f3e5=_0x78ff0b['getFirstRange'](),_0x15fb71=Array['from'](_0x114836['keys']())['find'](_0x334bbe=>_0x334bbe['isIntersecting'](_0x30f3e5));if(!_0x15fb71)continue;const _0x5b075a=_0x15fb71['getDifference'](_0x30f3e5);this['_isBlockAttribute'](_0x42d2cb)&&'insertion'==_0x78ff0b['type']&&0x0!=_0x5b075a['length']||(_0x114836['delete'](_0x15fb71),_0x5b075a['forEach'](_0x7bd5d4=>{_0x114836['set'](_0x7bd5d4,_0x55bbca);}),'insertion'!=_0x78ff0b['type']&&_0x620eec!=_0x188c90&&_0x114836['set'](_0x15fb71['getIntersection'](_0x30f3e5),_0x620eec));}const _0x5c70ec=[];for(const [_0x52663e,_0x383c0c]of _0x114836){const _0x2c31f6=_0x9738cc(),_0x9f3bb6={'key':_0x42d2cb,'oldValue':_0x383c0c,'newValue':_0x188c90};_0x42d2cb['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':_0x42d2cb});const _0x13f266=('attribute:'+(_0x42d2cb+'|'+Vt({'newValue':_0x188c90})))['substring'](0x0,0x3c),_0x134e50=this['_setSuggestionData']({'id':_0x2c31f6,'type':_0x13f266,'data':_0x9f3bb6,'createdAt':new Date(),'authorId':_0x5ef124,'attributes':_0x479d16});_0x5c70ec['push'](_0x134e50),this['_addSuggestionMarker'](_0x13f266,_0x2c31f6,_0x5ef124,_0x52663e);}return _0x5c70ec;}['enableDefaultAttributesIntegration'](_0x296d8b){this['enableCommand'](_0x296d8b,(_0x462f2a,..._0xddd894)=>{this['_recordAttributeChanges'](()=>{_0x462f2a(..._0xddd894);});});}['registerBlockAttribute'](_0x38f202){this['_blockAttributeKeys']['add'](_0x38f202);}['registerInlineAttribute'](_0x44a5eb){this['_inlineAttributeKeys']['add'](_0x44a5eb);}['_getAttributeKey'](_0x4104a2){return'attribute'==_0x4104a2['type']?_0x4104a2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1190e8,_0x23b307){const _0x22d162=_0x1190e8['getFirstMarker']();this['_model']['change'](_0x4b6693=>{_0x4b6693['updateMarker'](_0x22d162,{'range':_0x23b307});});}['_addThreadToSuggestion'](_0x161fe2){const _0x35efe7=_0x161fe2['id'],_0x5a23bc=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x35efe7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5a23bc,'threadId':_0x35efe7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x43c48d=this['_commentsRepository']['getCommentThread'](_0x35efe7);_0x43c48d['unbind']('isRemovable'),_0x43c48d['isRemovable']=!0x1,_0x161fe2['commentThread']=_0x43c48d;}['_checkSuggestionCorrectness'](_0xfffa48,_0x4303f9,_0x2d9f6a,_0x3c10de){if(_0xfffa48['type']!=_0x4303f9||_0xfffa48['subType']!=_0x2d9f6a||_0xfffa48['creator']['id']!=_0x3c10de)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xcb8e69('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4001c8,_0x2d3bf1){const _0xe8437a=_0x4001c8['getFirstRange']();if(_0x2d3bf1['isEqual'](_0xe8437a))_0x4001c8['removeMarkers']();else{if(_0xe8437a['containsRange'](_0x2d3bf1)){const _0x192e08=this['_model']['createPositionAt'](_0x2d3bf1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4001c8,this['_model']['createRange'](_0xe8437a['start'],_0x192e08));const _0x3ae759=_0x9738cc(),_0x19848c=_0x4001c8['creator']['id'],_0x103bfa=_0x4001c8['type']+':'+_0x4001c8['subType'];this['_setSuggestionData']({'id':_0x3ae759,'type':_0x103bfa,'createdAt':new Date(),'authorId':_0x19848c,'data':_0x4001c8['data'],'attributes':_0x4001c8['attributes']});const _0x5c5f44=this['_model']['createPositionAt'](_0x2d3bf1['end']['parent'],'after'),_0x4e6430=this['_model']['createRange'](_0x5c5f44,_0xe8437a['end']);this['_addSuggestionMarker'](_0x103bfa,_0x3ae759,_0x19848c,_0x4e6430);}else{if(_0xe8437a['containsPosition'](_0x2d3bf1['start'])){const _0x8e1369=this['_model']['createPositionAt'](_0x2d3bf1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4001c8,this['_model']['createRange'](_0xe8437a['start'],_0x8e1369));}else{const _0x4be517=this['_model']['createPositionAt'](_0x2d3bf1['end']['parent'],'after');this['_setSuggestionRange'](_0x4001c8,this['_model']['createRange'](_0x4be517,_0xe8437a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5c32ba){for(const {suggestion:_0x5d3c41,meta:_0x634798}of this['_findSuggestions'](_0x5c32ba,'insertion')){if(!_0x634798['isOwn'])continue;const _0x5db904=_0x5d3c41['getRanges']();for(const _0x3b76a0 of _0x5db904)if(!_0x5c32ba['getDifference'](_0x3b76a0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x503aff){const _0x26f0b1=this['editor']['plugins']['get']('Users')['getUser'](_0x503aff);if(!_0x26f0b1)throw new _0xcb8e69('track-changes-user-not-found',this);return _0x26f0b1;}['_getExternalAuthor'](_0x464ccd){const _0xc71ae2=this['editor']['plugins']['get']('Users'),_0x2b5050=_0xba8f4d('external:'+_0x464ccd),_0x5a3749=_0xc71ae2['getUser'](_0x2b5050);return _0x5a3749||_0xc71ae2['addUser']({'id':_0x2b5050,'name':_0x464ccd});}['_createSuggestion'](_0x5f1886,_0x31bcb7,_0x1a5d5a,_0x118eea,_0x380f38){const _0x2d1c7a=this['_getAuthorFromId'](_0x118eea),_0xaf7090=this['_suggestionFactory']['buildSuggestion'](_0x5f1886,_0x31bcb7,_0x1a5d5a,_0x2d1c7a,_0x380f38,_0x440ba0=>{this['_updateSuggestionData'](_0x1a5d5a,{'attributes':_0x440ba0});const _0x218dd9=this['getSuggestion'](_0x1a5d5a);this['_joinWithAdjacentSuggestions'](new Set([_0x218dd9])),this['_refreshSuggestionsChain'](new Set([_0x218dd9]));});return this['listenTo'](_0xaf7090,'accept',()=>{this['_updateSuggestionData'](_0x1a5d5a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xaf7090,'discard',()=>{this['_updateSuggestionData'](_0x1a5d5a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1a5d5a,_0xaf7090),this['_suggestionState']['set'](_0xaf7090,'notReady'),_0xaf7090;}['_splitMarkerName'](_0x439a46){const _0xb40d13=_0x439a46['split'](':');return{'group':_0xb40d13[0x0],'type':_0xb40d13[0x1],'subType':_0xb40d13['length']>=0x5?_0xb40d13[0x2]:null,'id':_0xb40d13['length']<0x5?_0xb40d13[0x2]:_0xb40d13[0x3],'authorId':_0xb40d13['length']<0x5?_0xb40d13[0x3]:_0xb40d13[0x4],'markerCount':0x6==_0xb40d13['length']?_0xb40d13[0x5]:null};}['_breakSuggestionMarker'](_0x447d57,_0x6fc909,_0x164ce4){const _0x5ccf82=_0x447d57['getFirstRange'](),_0x550a00=_0x5ccf82['start'],_0x72de50=_0x5ccf82['end'];this['_setSuggestionRange'](_0x447d57,this['_model']['createRange'](_0x550a00,_0x6fc909));const _0x51bcea=_0x9738cc(),_0x555f85=_0x447d57['creator']['id'],_0x41f121=_0x447d57['type']+(_0x447d57['subType']?':'+_0x447d57['subType']:'');this['_setSuggestionData']({'id':_0x51bcea,'type':_0x41f121,'createdAt':new Date(),'authorId':_0x555f85,'originalSuggestionId':_0x447d57['id'],'attributes':_0x447d57['attributes'],'data':_0x447d57['data']});const _0x3d111d=this['_getAttributeKey'](_0x447d57);('formatBlock'==_0x447d57['type']||_0x3d111d&&this['_isBlockAttribute'](_0x3d111d))&&(_0x164ce4=this['_model']['createPositionBefore'](_0x164ce4['parent'])),this['_addSuggestionMarker'](_0x41f121,_0x51bcea,_0x555f85,this['_model']['createRange'](_0x164ce4,_0x72de50));}['_findSuggestions'](_0x44beaa,_0x2d563b=null){const _0x3b338f=[],_0x5060c9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x44beaa)||(_0x44beaa=[_0x44beaa]);for(const _0x4e2da6 of this['getSuggestions']()){if(!_0x4e2da6['isInContent'])continue;if(_0x2d563b&&_0x4e2da6['type']!=_0x2d563b)continue;let _0xb31a18=!0x1;for(const _0x20a175 of _0x4e2da6['getRanges']()){for(const _0x51ad37 of _0x44beaa){const _0x77a845=_0x51ad37['start']['isEqual'](_0x20a175['end'])||_0x51ad37['end']['isEqual'](_0x20a175['start']);if(_0x77a845||_0x51ad37['getIntersection'](_0x20a175)){const _0x3fbc46=_0x51ad37['containsRange'](_0x20a175)&&Rt(this['_model']['schema'],_0x20a175['start'],_0x51ad37),_0x7d835e=_0x20a175['containsRange'](_0x51ad37)&&Rt(this['_model']['schema'],_0x51ad37['start'],_0x20a175);_0x3b338f['push']({'suggestion':_0x4e2da6,'meta':{'isOwn':_0x5060c9==_0x4e2da6['author'],'isNextTo':_0x77a845,'isInsideObject':_0x3fbc46,'containsRangeInObject':_0x7d835e}}),_0xb31a18=!0x0;break;}}if(_0xb31a18)break;}}return _0x3b338f;}['_addSuggestionMarker'](_0x1d9db0,_0xe31fed,_0x4e513c,_0x3b16a9,_0x184c5a){this['_model']['change'](_0x2ecae3=>{let _0x5d9760='suggestion:'+_0x1d9db0+':'+_0xe31fed+':'+_0x4e513c;_0x184c5a&&(_0x5d9760=_0x5d9760+':'+_0x184c5a),_0x2ecae3['addMarker'](_0x5d9760,{'range':_0x3b16a9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x17606f){const _0x2011f6=_0x17606f['previous'],_0x4825b7=_0x17606f['next'];_0x17606f['previous']=null,_0x17606f['next']=null,null!=_0x2011f6&&_0x2011f6['next']==_0x17606f&&(_0x2011f6['next']=_0x4825b7),null!=_0x4825b7&&_0x4825b7['previous']==_0x17606f&&(_0x4825b7['previous']=_0x2011f6),'ready'==this['_suggestionState']['get'](_0x17606f)&&(this['_suggestionState']['set'](_0x17606f,'removed'),this['fire']('suggestionUnloaded',_0x17606f,_0x2011f6,_0x4825b7));}['_setSuggestionData'](_0x1609fc){const _0x1bcd39=_0x1609fc['id'],_0x56a106=this['addSuggestionData'](_0x1609fc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1f6743=this['editor']['plugins']['get']('PendingActions'),_0x1735b2=_0x56a106['hasComments'],_0x14564e=_0x56a106['subType']?_0x56a106['type']+':'+_0x56a106['subType']:_0x56a106['type'],_0x7e64c9=this['editor']['locale'],_0x1b82b7=_0x1f6743['add'](o(_0x7e64c9,'PENDING_ACTION_SUGGESTION')),_0xb82f9c={'id':_0x1bcd39,'type':_0x14564e,'hasComments':_0x1735b2,'data':_0x1609fc['data']||null,'originalSuggestionId':_0x1609fc['originalSuggestionId']||null,'attributes':_0x56a106['attributes']};this['_adapter']['addSuggestion'](_0xb82f9c)['then'](_0x4d2370=>{_0x56a106['_saved']=!0x0,_0x1f6743['remove'](_0x1b82b7),_0x4d2370&&_0x4d2370['createdAt']&&(this['_suggestions']['get'](_0x1bcd39)['createdAt']=_0x4d2370['createdAt']);})['catch'](_0x432dfe=>{throw _0x3ea243('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x56a106['discard']();}),_0x56a106['stopListening'](),this['_suggestions']['delete'](_0x56a106['id']),this['_suggestionState']['delete'](_0x56a106),_0x432dfe;});}return _0x56a106;}['_isBlockAttribute'](_0x46faae){return this['_blockAttributeKeys']['has'](_0x46faae);}['_updateSuggestionData'](_0xa35d44,_0x38eed6){const _0x4d41e3=this['editor']['plugins']['get']('PendingActions'),_0x2da2d1=this['getSuggestion'](_0xa35d44);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2da2d1['_saved']){const _0x4174f7=_0x4d41e3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xa35d44,_0x38eed6)['then'](()=>{_0x4d41e3['remove'](_0x4174f7);});}else _0x2da2d1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xa35d44,_0x38eed6);});}}['_getSuggestionData'](_0x480d39){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xcb8e69('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x480d39);}['_handleNewSuggestionMarker'](_0x313794){const {id:_0x1e6285,type:_0x544f0d,subType:_0xd6182a,authorId:_0x2480cd}=this['_splitMarkerName'](_0x313794),_0x4ee10a=this['_suggestions']['get'](_0x1e6285)||this['_createSuggestion'](_0x544f0d,_0xd6182a,_0x1e6285,_0x2480cd,{});switch(this['_checkSuggestionCorrectness'](_0x4ee10a,_0x544f0d,_0xd6182a,_0x2480cd),this['_suggestionState']['get'](_0x4ee10a)){case'notReady':this['_getSuggestionData'](_0x1e6285)['then'](_0x2b474e=>{let _0x5519c5=Promise['resolve']();_0x2b474e['hasComments']&&(_0x5519c5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1e6285})),_0x5519c5['then'](()=>{this['addSuggestionData'](_0x2b474e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4ee10a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1e6285,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4ee10a,'ready'),this['fire']('suggestionLoaded',_0x4ee10a);break;case'ready':this['fire']('suggestionChanged',_0x4ee10a);}return _0x4ee10a['addMarkerName'](_0x313794),_0x4ee10a;}['_refreshSuggestionsChain'](_0x49b26a){const _0x2f4938=Array['from'](_0x49b26a),_0x5d41be=_0x2f4938['filter'](_0x5eded5=>'attribute'==_0x5eded5['type']);this['_refreshAttributeSuggestionsChain'](_0x5d41be);const _0x49d6ca=_0x2f4938['filter'](_0x2eea20=>!_0x2eea20['isMultiRange']&&'attribute'!=_0x2eea20['type']),_0x35c565=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37982f=>!_0x37982f['isMultiRange']&&'attribute'!=_0x37982f['type']),_0x3b9b1e=_0x35c565['filter'](_0x411a6e=>!_0x49b26a['has'](_0x411a6e)),_0x2ba67f=new Map(_0x35c565['map'](_0x5391e3=>[_0x5391e3,this['_suggestionFactory']['getSuggestionCallback'](_0x5391e3['type'],_0x5391e3['subType'],'chain')])),_0x99cc1d=new Map(_0x35c565['map'](_0x3009c8=>[_0x3009c8,_0x3009c8['getFirstRange']()])),_0x1e2e8a=new Set(),_0x59b6f4=new Set();for(let _0x7894a2=0x0;_0x7894a2<_0x49d6ca['length'];_0x7894a2++)_0x5cf67c(_0x49d6ca[_0x7894a2],_0x49d6ca,_0x7894a2+0x1);for(let _0x4cbf91=0x0;_0x4cbf91<_0x49d6ca['length'];_0x4cbf91++)_0x5cf67c(_0x49d6ca[_0x4cbf91],_0x3b9b1e,0x0);const _0x5976e3=new Set();for(let _0x20d4b4=0x0;_0x20d4b4<_0x49d6ca['length'];_0x20d4b4++){const _0x440d8c=_0x49d6ca[_0x20d4b4];!_0x59b6f4['has'](_0x440d8c)&&_0x440d8c['previous']&&(_0x5976e3['add'](_0x440d8c['previous']),_0x440d8c['previous']['next']===_0x440d8c&&(_0x440d8c['previous']['next']=null),_0x440d8c['previous']=null),!_0x1e2e8a['has'](_0x440d8c)&&_0x440d8c['next']&&(_0x5976e3['add'](_0x440d8c['next']),_0x440d8c['next']['previous']===_0x440d8c&&(_0x440d8c['next']['previous']=null),_0x440d8c['next']=null);}function _0x5cf67c(_0x557354,_0x2c1ba0,_0x28f0d0){for(let _0x1a808e=_0x28f0d0;_0x1a808e<_0x2c1ba0['length'];_0x1a808e++){const _0xc76830=_0x175b00(_0x557354,_0x2c1ba0[_0x1a808e]);_0xc76830&&(_0xc76830[0x0]['next']=_0xc76830[0x1],_0xc76830[0x1]['previous']=_0xc76830[0x0],_0x1e2e8a['add'](_0xc76830[0x0]),_0x59b6f4['add'](_0xc76830[0x1]));}}function _0x175b00(_0x3a8d7b,_0x2156e2){if(_0x3a8d7b['author']['id']!==_0x2156e2['author']['id'])return null;const _0x629eb6=_0x2ba67f['get'](_0x3a8d7b)(_0x3a8d7b,_0x2156e2,_0x99cc1d['get'](_0x3a8d7b),_0x99cc1d['get'](_0x2156e2));if(!_0x629eb6)return null;return _0x2ba67f['get'](_0x2156e2)(_0x3a8d7b,_0x2156e2,_0x99cc1d['get'](_0x3a8d7b),_0x99cc1d['get'](_0x2156e2))?_0x629eb6[0x1]['commentThread']&&_0x629eb6[0x1]['commentThread']['length']?null:_0x629eb6:null;}_0x5976e3['size']&&this['_refreshSuggestionsChain'](_0x5976e3);}['_refreshAttributeSuggestionsChain'](_0x10820d){if(0x0==_0x10820d['length'])return;const _0x4618ea=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa02433=>'attribute'==_0xa02433['type']&&_0xa02433['_isDataLoaded']),_0x56b96d=[],_0x3921cc=new Map();for(const _0x324731 of _0x4618ea){const _0x1fa4c8=_0xba8f4d(_0x324731['attributes']);_0x3921cc['has'](_0x1fa4c8)||(_0x3921cc['set'](_0x1fa4c8,_0x56b96d['length']),_0x56b96d['push']([]));const _0x27d630=_0x3921cc['get'](_0x1fa4c8);_0x56b96d[_0x27d630]['push'](_0x324731);}!(function(){_0x56b96d['sort']((_0x56dfa9,_0x2f7a44)=>{const _0x26acc1=_0x56dfa9[0x0]['createdAt'],_0x27dc5b=_0x2f7a44[0x0]['createdAt'];return _0x26acc1==_0x27dc5b?_0x56dfa9[0x0]['attributes']['groupId']<_0x2f7a44[0x0]['attributes']['groupId']?-0x1:0x1:_0x26acc1<_0x27dc5b?-0x1:0x1;});for(const _0x3f85be of _0x56b96d)_0x3f85be['sort']((_0x24c55c,_0x1b5eb7)=>_0x24c55c['id']<_0x1b5eb7['id']?-0x1:0x1);}());for(let _0x342cf=0x0;_0x342cf<_0x56b96d['length'];_0x342cf++){if(0x0==_0x56b96d[_0x342cf]['length'])continue;const _0x3d491b=[];for(let _0x388af6=_0x342cf+0x1;_0x388af6<_0x56b96d['length'];_0x388af6++)0x0!=_0x56b96d[_0x388af6]['length']&&_0x13b255(_0x56b96d[_0x342cf],_0x56b96d[_0x388af6])&&_0x3d491b['push'](_0x388af6);for(const _0x331616 of _0x3d491b)_0x56b96d[_0x342cf]=_0x56b96d[_0x342cf]['concat'](_0x56b96d[_0x331616]),_0x56b96d[_0x331616]=[];}for(const _0x45b4f5 of _0x56b96d)for(let _0x472a8=0x0;_0x472a8<_0x45b4f5['length'];_0x472a8++)_0x45b4f5[_0x472a8]['next']=_0x45b4f5[_0x472a8+0x1]||null;for(const _0x445b65 of _0x56b96d)for(let _0x4f6937=0x0;_0x4f6937<_0x445b65['length'];_0x4f6937++)_0x445b65[_0x4f6937]['previous']=_0x445b65[_0x4f6937-0x1]||null;function _0x13b255(_0x5e1cc4,_0x20dba8){if(_0x5e1cc4[0x0]['attributes']['groupId']!==_0x20dba8[0x0]['attributes']['groupId']&&_0x5e1cc4[0x0]['author']!==_0x20dba8[0x0]['author'])return!0x1;if(!function(_0x1012f3,_0x1289e8){if(!_0x1012f3['hasComments']&&!_0x1289e8['hasComments'])return!0x0;if(_0x1012f3['hasComments']&&_0x1289e8['hasComments'])return!0x1;if(_0x1012f3['hasComments']&&_0x1289e8['createdAt']<_0x1012f3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1289e8['hasComments']&&_0x1012f3['createdAt']<_0x1289e8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5e1cc4[0x0],_0x20dba8[0x0]))return!0x1;const _0x3adf2e=Bt(_0x5e1cc4[0x0]['attributes'],'groupId'),_0x5be54d=Bt(_0x20dba8[0x0]['attributes'],'groupId');if(!_0x491897(_0x3adf2e,_0x5be54d))return!0x1;return!!_0x5e1cc4['every'](_0x69cab7=>_0x20dba8['some'](_0x2870d5=>_0x69cab7['getFirstRange']()['isEqual'](_0x2870d5['getFirstRange']())))&&_0x20dba8['every'](_0x39b2e4=>_0x5e1cc4['some'](_0x2241df=>_0x39b2e4['getFirstRange']()['isEqual'](_0x2241df['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2b7232){const _0x6a8e21=Array['from'](_0x2b7232),_0x43732b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x23babc=_0x43732b['filter'](_0x1d5b1a=>!_0x2b7232['has'](_0x1d5b1a)),_0x1346a9=new Map(_0x6a8e21['map'](_0x57cbf7=>[_0x57cbf7,this['_suggestionFactory']['getSuggestionCallback'](_0x57cbf7['type'],_0x57cbf7['subType'],'join')])),_0x385d45=new Map(_0x43732b['map'](_0x89dc27=>[_0x89dc27,_0x89dc27['getRanges']()]));for(let _0x585b69=0x0;_0x585b69<_0x6a8e21['length'];_0x585b69++){if(_0x1655d4(this,_0x6a8e21[_0x585b69],_0x6a8e21,_0x585b69+0x1))return!0x0;}for(let _0x5bcd3a=0x0;_0x5bcd3a<_0x6a8e21['length'];_0x5bcd3a++){if(_0x1655d4(this,_0x6a8e21[_0x5bcd3a],_0x23babc,0x0))return!0x0;}return!0x1;function _0x1655d4(_0x54faf6,_0x485ce6,_0x66d9fd,_0x53d966){for(let _0x3c2f1b=_0x53d966;_0x3c2f1b<_0x66d9fd['length'];_0x3c2f1b++){const _0x33212b=_0x66d9fd[_0x3c2f1b];if(_0x33212b['type']!==_0x485ce6['type']||_0x33212b['author']['id']!==_0x485ce6['author']['id']||_0x33212b['subType']!==_0x485ce6['subType'])continue;if(!Pt(_0x485ce6,_0x33212b,['groupId']))continue;if('attribute'==_0x485ce6['type']&&_0x485ce6['data']['oldValue']!=_0x33212b['data']['oldValue'])continue;if('attribute'==_0x485ce6['type']&&_0x54faf6['_isBlockAttribute'](_0x485ce6['data']['key']))continue;if('formatBlock'==_0x485ce6['type']){const _0x4d9c8b=_0x54faf6['editor']['model'],_0x12b062=_0x485ce6['getContainedElement']();if(_0x12b062&&(_0x4d9c8b['schema']['isObject'](_0x12b062)||_0x4d9c8b['schema']['isLimit'](_0x12b062)))continue;}const _0x2606e9=_0x1346a9['get'](_0x485ce6),_0x1accb1=_0x385d45['get'](_0x485ce6),_0x2f67ef=_0x385d45['get'](_0x33212b),_0x204198=_0x485ce6['commentThread']&&_0x485ce6['commentThread']['length'],_0x1da693=_0x33212b['commentThread']&&_0x33212b['commentThread']['length'];if(!_0x204198&&_0x2606e9(_0x2f67ef,_0x1accb1))return _0x54faf6['_joinSuggestions'](_0x33212b,_0x485ce6),_0x385d45['delete'](_0x485ce6),!0x0;if(!_0x1da693&&_0x2606e9(_0x1accb1,_0x2f67ef))return _0x54faf6['_joinSuggestions'](_0x485ce6,_0x33212b),_0x385d45['delete'](_0x33212b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2e07a4,_0x6d54bb){if(_0x2e07a4['isMultiRange']){for(const _0x2f3fe1 of _0x6d54bb['getRanges']())_0x2e07a4['addRange'](_0x2f3fe1);}else{const _0x2bff03=_0x6d54bb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2e07a4,this['_model']['createRange'](_0x2e07a4['getFirstRange']()['start'],_0x2bff03));}_0x6d54bb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x582f3c,_0x4533e0){const _0x1cf5cb=_0x582f3c['startsWith']('format')||_0x582f3c['startsWith']('attribute')?'FORMATTING':_0x582f3c['toUpperCase']();return o(this['editor']['locale'],_0x4533e0+'_'+_0x1cf5cb+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0xef5a1f=this['editor'];if(!_0xef5a1f['ui'])return;const {ariaLiveAnnouncer:_0x1afc93}=_0xef5a1f['ui'];_0x884ab3(this['_model'],({left:_0x395cf4,entered:_0xc9b5a9})=>{for(const _0x4b12de of _0x395cf4){const {group:_0x5ee8fd,type:_0x262ec2}=this['_splitMarkerName'](_0x4b12de['name']);if('suggestion'===_0x5ee8fd){_0x1afc93['announce'](this['_getMarkerAnnouncementText'](_0x262ec2,'LEAVE'));break;}}for(const _0x5c8f45 of _0xc9b5a9){const {group:_0x2082e1,type:_0x5600d1}=this['_splitMarkerName'](_0x5c8f45['name']);if('suggestion'===_0x2082e1){_0x1afc93['announce'](this['_getMarkerAnnouncementText'](_0x5600d1,'ENTER'));break;}}});}['_processAttributeChanges'](_0xcd8579){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1db039=this['editor'],_0x7eecff=_0x1db039['model']['document']['differ']['getChanges']();if(0x0==_0x7eecff['length'])return!0x1;const _0x6105bc=[],_0xf7ef99=_0x7eecff['filter'](_0x43f9e2=>'attribute'==_0x43f9e2['type']),_0x525115=_0x7eecff['filter'](_0x1a44be=>'insert'==_0x1a44be['type']&&'$text'!=_0x1a44be['name']),_0x4b8175=_0x7eecff['filter'](_0x4afc2d=>'remove'==_0x4afc2d['type']&&'$text'!=_0x4afc2d['name']);for(const _0x3f717b of _0xf7ef99)_0x6105bc['push']({'key':_0x3f717b['attributeKey'],'newValue':_0x3f717b['attributeNewValue'],'oldValue':_0x3f717b['attributeOldValue'],'range':Ot(_0x3f717b['range'],_0x1db039['model'])});for(const _0xe3d57e of _0x525115){const _0x2c1fc3=_0x4b8175['find'](_0x10162f=>_0x10162f['position']['isEqual'](_0xe3d57e['position']));_0x2c1fc3&&_0x6105bc['push']({'key':m,'newValue':_0xe3d57e['name'],'oldValue':_0x2c1fc3['name'],'range':_0x1db039['model']['createRangeOn'](_0xe3d57e['position']['nodeAfter'])});}return 0x0!=_0x6105bc['length']&&this['_reduceExistingSuggestions'](_0xcd8579,_0x6105bc);}['_processAttributeSuggestions'](_0x1111c8){let _0x36fd77=!0x1;const _0x16b382=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x588929=>_0x588929['data']['newRange']&&_0x588929['name']['startsWith']('suggestion:attribute:'));for(const _0x243822 of _0x16b382){const {subType:_0x284425,id:_0x3c2f97}=this['_splitMarkerName'](_0x243822['name']),_0x145de0=_0x284425['split']('|')[0x0];for(const _0x3cbba9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3cbba9['id']!=_0x3c2f97&&'attribute'==_0x3cbba9['type']&&_0x3cbba9['data']&&_0x3cbba9['data']['key']==_0x145de0&&_0x3cbba9['getFirstRange']()['isIntersecting'](_0x243822['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3cbba9,_0x243822['data']['newRange'],_0x1111c8),_0x36fd77=!0x0);}return _0x36fd77;}['_recordAttributeChanges'](_0x5185fe){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x5185fe();}['_isRegisteredAttribute'](_0x3f6976){const _0x2b99eb=this['_isBlockAttribute'](_0x3f6976),_0x1c81b2=this['_inlineAttributeKeys']['has'](_0x3f6976);return _0x2b99eb||_0x1c81b2;}['_reduceExistingSuggestions'](_0x1ba505,_0x364585){if(0x0==_0x364585['length'])return!0x1;let _0x2bac6c=!0x1;for(const _0x5e75bb of _0x364585){const _0x508385=this['_findSuggestions'](_0x5e75bb['range'],'attribute')['filter'](_0x3b63b2=>!_0x3b63b2['meta']['isNextTo'])['map'](_0x2d43e7=>_0x2d43e7['suggestion']),_0x3fae85=_0xba8f4d({'newValue':_0x5e75bb['newValue']});_0x508385['filter'](_0x3f7005=>{const [_0x571afc,_0x31d436]=_0x3f7005['subType']['split']('|');return _0x571afc==_0x5e75bb['key']&&_0x31d436!=_0x3fae85;})['forEach'](_0x2809e3=>{this['_reduceSuggestionAttributeRange'](_0x2809e3,_0x5e75bb['range'],_0x1ba505),_0x2bac6c=!0x0;});}return _0x2bac6c;}['_reduceSuggestionAttributeRange'](_0x53ddef,_0x3bdbf9,_0x43cc4d){const _0x4e7e55=_0x53ddef['getFirstRange']()['getDifference'](_0x3bdbf9);0x0!==_0x4e7e55['length']?0x1!==_0x4e7e55['length']?this['_breakSuggestionMarker'](_0x53ddef,_0x3bdbf9['start'],_0x3bdbf9['end']):this['_setSuggestionRange'](_0x53ddef,_0x4e7e55[0x0]):_0x43cc4d['removeMarker'](_0x53ddef['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x32a5c8){this['_editor']=_0x32a5c8,this['_model']=_0x32a5c8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x29f6f9,_0x3a7fc5,_0x38b44c,_0x5e7364,_0x25b9ab,_0x30c413){return new u(this['_model'],{'type':_0x29f6f9,'subType':_0x3a7fc5,'id':_0x38b44c,'author':_0x5e7364,'creator':_0x5e7364,'attributes':_0x25b9ab,'onAttributesChange':_0x30c413,'onAccept':(..._0xc08414)=>this['getSuggestionCallback'](_0x29f6f9,_0x3a7fc5,'accept')(..._0xc08414),'onDiscard':(..._0x3e0b47)=>this['getSuggestionCallback'](_0x29f6f9,_0x3a7fc5,'discard')(..._0x3e0b47)});}['registerCustomCallback'](_0xa28e95,_0x32b9a6,_0x130297,_0x5a8404){const _0x480345=_0xa28e95+':'+_0x32b9a6+':'+_0x130297;this['_customCallbacks']['set'](_0x480345,_0x5a8404);}['getSuggestionCallback'](_0x1829ae,_0x286f7b,_0x4b3f8d){const _0x1415ed=_0x1829ae+':'+_0x286f7b+':'+_0x4b3f8d;return this['_customCallbacks']['get'](_0x1415ed)||this['_defaultCallbacks']['get'](_0x1829ae+':'+_0x4b3f8d);}['_registerDefaultCallbacks'](){const _0x5065e4=()=>!0x1,_0x4c5da6=_0xbc5fae=>{_0xbc5fae['sort']((_0x5e6b7c,_0x3f3624)=>_0x5e6b7c['start']['isBefore'](_0x3f3624['start'])?0x1:-0x1),this['_model']['change'](_0x112415=>{for(const _0x593f8e of _0xbc5fae){let _0x26ac3a;_0x26ac3a=_0x593f8e['end']['isAtEnd']&&_0x593f8e['end']['parent']==_0x593f8e['start']['nodeAfter']?_0x112415['createSelection'](_0x593f8e['start']['nodeAfter'],'on'):_0x112415['createSelection'](_0x593f8e),this['_model']['deleteContent'](_0x26ac3a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x424ed8=(_0x48e87b,_0x1bb589)=>{_0x1bb589&&this['_model']['change'](_0x19b375=>{const {commandName:_0x3c73d,commandParams:_0x468d00=[]}=_0x1bb589,_0x245dcb=_0x48e87b['map'](_0x4cd7db=>(Tt(_0x4cd7db)&&(_0x4cd7db=this['_model']['createRange'](_0x4cd7db['end'])),_0x4cd7db))['filter'](_0x174504=>'$graveyard'!==_0x174504['root']['rootName']);if(_0x245dcb['length']<0x1)return;const _0x4c2776=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4e366f=>_0x108983['fromRange'](_0x4e366f));_0x19b375['setSelection'](_0x245dcb);for(const _0x4cbfda of this['_editor']['commands']['commands']())_0x4cbfda['refresh']();_0x468d00['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3c73d,..._0x468d00);const _0x147254=_0x4c2776['filter'](_0x5e4017=>'$graveyard'!=_0x5e4017['root']['rootName']);_0x147254['length']>0x0&&_0x19b375['setSelection'](_0x147254);for(const _0x2b5eeb of _0x4c2776)_0x2b5eeb['detach']();});},_0x3c6135=(_0x753716,_0x9ecb6b)=>0x1==_0x753716['length']&&0x1==_0x9ecb6b['length']&&_0x753716[0x0]['end']['isEqual'](_0x9ecb6b[0x0]['start']),_0x387cb7=(_0x11098d,_0x407970,_0x34ae3a,_0x1179d0)=>Ft(_0x11098d,_0x407970,_0x34ae3a,_0x1179d0,this['_model'])?[_0x11098d,_0x407970]:Ft(_0x407970,_0x11098d,_0x1179d0,_0x34ae3a,this['_model'])?[_0x407970,_0x11098d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5065e4),this['_defaultCallbacks']['set']('insertion:discard',_0x4c5da6),this['_defaultCallbacks']['set']('insertion:join',_0x3c6135),this['_defaultCallbacks']['set']('insertion:chain',_0x387cb7),this['_defaultCallbacks']['set']('deletion:accept',_0x4c5da6),this['_defaultCallbacks']['set']('deletion:discard',_0x5065e4),this['_defaultCallbacks']['set']('deletion:join',_0x3c6135),this['_defaultCallbacks']['set']('deletion:chain',_0x387cb7),this['_defaultCallbacks']['set']('formatInline:accept',_0x424ed8),this['_defaultCallbacks']['set']('formatInline:discard',_0x5065e4),this['_defaultCallbacks']['set']('formatInline:join',_0x3c6135),this['_defaultCallbacks']['set']('formatInline:chain',_0x5065e4),this['_defaultCallbacks']['set']('formatBlock:accept',_0x424ed8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5065e4),this['_defaultCallbacks']['set']('formatBlock:join',_0x3c6135),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5065e4),this['_defaultCallbacks']['set']('attribute:accept',_0x5065e4),this['_defaultCallbacks']['set']('attribute:discard',(_0x571b0a,_0x5a4347)=>{if(!_0x5a4347)return;const _0x170c6a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2ae574=>{if(_0x5a4347['key']==m)for(const _0x4f6ce6 of _0x571b0a){const _0x5607a7=_0x4f6ce6['start']['nodeAfter'],_0x345cfb=_0x5a4347['oldValue'];_0x2ae574['rename'](_0x5607a7,_0x345cfb);}else{if(_0x170c6a['_isBlockAttribute'](_0x5a4347['key'])){for(const _0xa9899d of _0x571b0a)void 0x0!==_0x5a4347['oldValue']?_0x2ae574['setAttribute'](_0x5a4347['key'],_0x5a4347['oldValue'],_0xa9899d['start']['nodeAfter']):_0x2ae574['removeAttribute'](_0x5a4347['key'],_0xa9899d['start']['nodeAfter']);}else{for(const _0x1f7daf of _0x571b0a)_0x5a4347['oldValue']?_0x2ae574['setAttribute'](_0x5a4347['key'],_0x5a4347['oldValue'],_0x1f7daf):_0x2ae574['removeAttribute'](_0x5a4347['key'],_0x1f7daf);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3c6135);}}function Rt(_0x5422f7,_0x2edc7e,_0x2628dd){for(const _0x573446 of _0x2edc7e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x573446['root']==_0x573446)return!0x1;if(!_0x2628dd['containsItem'](_0x573446))return!0x1;if(_0x5422f7['isObject'](_0x573446)||_0x5422f7['isLimit'](_0x573446))return!0x0;}return!0x1;}function Tt(_0x3ba1d1){return _0x3ba1d1['end']['parent']==_0x3ba1d1['start']['nodeAfter']&&_0x3ba1d1['end']['isAtStart'];}function Et(_0x1729ae,_0x2d00d4,_0x134ddb,_0x461751){const _0x2af9ec=_0x462d83=>!_0x462d83['item']['is']('$textProxy')&&!_0x461751['isObject'](_0x462d83['item']),_0x1053c6=_0x1729ae['start']['getLastMatchingPosition'](_0x2af9ec),_0x179897=_0x1729ae['end']['getLastMatchingPosition'](_0x2af9ec,{'direction':'backward'});return(!_0x1729ae['start']['isEqual'](_0x1053c6)||!_0x1729ae['end']['isEqual'](_0x179897))&&(_0x1053c6['isBefore'](_0x179897)?_0x134ddb['updateMarker'](_0x2d00d4,{'range':_0x134ddb['createRange'](_0x1053c6,_0x179897)}):_0x134ddb['removeMarker'](_0x2d00d4),!0x0);}function Vt(_0x36d0df){return _0xba8f4d(_0x36d0df);}function Ut(_0x610934){const _0x3b7070=_0x610934['start']['nodeAfter'];return _0x3b7070&&_0x3b7070['is']('element');}function Ot(_0x11ecb4,_0x3ad9a6){return null==_0x11ecb4['end']['nodeBefore']&&_0x11ecb4['end']['parent']==_0x11ecb4['start']['nodeAfter']?Gt(_0x11ecb4['start']['nodeAfter'],_0x3ad9a6):_0x11ecb4;}function Gt(_0x378fb1,_0x546ee5){const _0x10fcf6=_0x546ee5['schema']['isObject'](_0x378fb1)||_0x546ee5['schema']['isSelectable'](_0x378fb1);return _0x546ee5['createRange'](_0x546ee5['createPositionAt'](_0x378fb1,'before'),_0x10fcf6?_0x546ee5['createPositionAfter'](_0x378fb1):_0x546ee5['createPositionAt'](_0x378fb1,'end'));}function Ft(_0x21c8cd,_0x52ed87,_0x10ca84,_0x183680,_0x5074af){if(!Pt(_0x21c8cd,_0x52ed87))return!0x1;if(_0x10ca84['end']['isEqual'](_0x183680['start']))return!0x0;if(_0x21c8cd['type']!=_0x52ed87['type'])return!0x1;if(!_0x10ca84['end']['isTouching'](_0x183680['start']))return!0x1;const _0x3d93c9=_0x5074af['createRange'](_0x10ca84['end'],_0x183680['start'])['getWalker']();for(const _0x5922d1 of _0x3d93c9)if(['elementStart','elementEnd']['includes'](_0x5922d1['type'])&&_0x5074af['schema']['isLimit'](_0x5922d1['item']))return!0x1;return!0x0;}function Pt(_0x5a92fd,_0x2d6385,_0x48e278=[]){return!(!_0x5a92fd['_isDataLoaded']||!_0x2d6385['_isDataLoaded'])&&_0x491897(Bt(_0x5a92fd['attributes'],_0x48e278),Bt(_0x2d6385['attributes'],_0x48e278));}function Lt(_0x597e81,_0x2d1d90){const _0x43349a=Ht(_0x597e81['attributes']),_0x6ca2d0=Ht(_0x2d1d90);if(!_0x597e81['_isDataLoaded'])return!0x1;for(const _0x559b04 of Object['keys'](_0x6ca2d0))if(!_0x491897(_0x43349a[_0x559b04],_0x6ca2d0[_0x559b04]))return!0x1;return!0x0;}function Ht(_0x47f5cb){const _0x413fbb=Object['assign']({},_0x47f5cb);return delete _0x413fbb['skipNestingCheck'],delete _0x413fbb['tablePasteChainId'],_0x413fbb;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x38558f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3ae8f7,_0x32df7b,_0x231a3a,_0x420626){super(),this['model']=_0x32df7b,this['view']=_0x231a3a,this['commentThreadController']=_0x420626,this['_editor']=_0x3ae8f7,this['_acceptCommand']=_0x3ae8f7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3ae8f7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3bdcc4,_0x4f5363)=>_0x3bdcc4||_0x4f5363),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x27f623=>_0x27f623&&this['_editor']['model']['canEditAt'](_0x32df7b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2a1965=>_0x2a1965&&this['_editor']['model']['canEditAt'](_0x32df7b['getRanges']())),this['_pendingAction']=null,_0x231a3a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x231a3a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x231a3a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x231a3a,'change:isDirty',()=>{_0x231a3a['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 _0x29c7f0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x29c7f0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x158dd9{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0xc977bc,_0x51bf20,_0x302ec9,_0x50e29a){super(_0xc977bc),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x51bf20['authoredAt']),this['bind']('authoredAt')['to'](_0x51bf20),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x51bf20,this['_localUser']=_0x302ec9,this['_config']=_0x50e29a,_0x50e29a['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:_0x21e4d7}=this['_config'];this['commentsListView']=new _0x21e4d7(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',_0x1d5187=>_0x1d5187+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1d06fd,_0x19fa51)=>_0x1d06fd||!!_0x19fa51);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x52f29a}=this['_config'],_0x1f1448=new _0x52f29a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x53ec91=_0x1f1448['commentInputView'];return _0x1f1448['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x53ec91,'value',(_0x240b6a,_0x141cf2,_0x45d5be)=>!!_0x45d5be||_0x240b6a&&!_0x141cf2),_0x53ec91['on']('submit',(_0x32f086,_0x5124b3)=>{this['fire']('addComment',_0x5124b3),_0x53ec91['editor']['setData']('');}),_0x53ec91['on']('cancel',()=>this['focus']()),_0x53ec91['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1f1448;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x112e60,_0x4ca969,_0x20dda9,_0x1ae3a4){super(_0x112e60,_0x4ca969,_0x20dda9,_0x1ae3a4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x49b85b=>_0x49b85b&&_0x49b85b[0x0]?_0x49b85b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x408f53,_0x2b3fab)=>{let _0x1f4aae='';for(const _0x378ff1 of _0x408f53)_0x1f4aae+='<p>'+ds(_0x378ff1['content'],_0x378ff1['color'])+'</p>';return _0x2b3fab?_0x1f4aae:_0x4a8f86(_0x1f4aae,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x112e60,'Accept\x20suggestion'),_0x51bd8c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x112e60,'Discard\x20suggestion'),_0x51bd8c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x5bd74a(_0x112e60,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2d34bc=this['bindTemplate'],_0x484160=[{'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':_0x2d34bc['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2d34bc['to']('authoredAt',_0x87e0bb=>this['_config']['formatDateTime'](_0x87e0bb))}]}]},{'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']&&_0x484160['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2e3c6a={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x2d34bc['if']('isActive','ck-suggestion-wrapper--active'),_0x2d34bc['to']('type',_0x3a5dea=>'ck-suggestion-'+_0x3a5dea),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':_0x484160}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2e3c6a['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)),_0x2e3c6a;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x451916,_0x68514a,_0x5da3d9)=>{this['_descriptionElement']['innerHTML']=_0x5da3d9;});}['_createButton'](_0x5512f3,_0x417e00,_0x444ce8,_0x24bd5a,_0x1b017d){const _0x1b9d56=new _0x504626(this['locale']);return _0x1b9d56['set']({'label':_0x5512f3,'icon':_0x417e00,'tooltip':!0x0,'tooltipPosition':_0x1b017d}),_0x1b9d56['extendTemplate']({'attributes':{'class':_0x444ce8}}),_0x1b9d56['on']('execute',()=>{this['fire'](_0x24bd5a,this['_model']['id']);}),_0x1b9d56;}['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(_0x5b7b7b,_0x14635c){let _0x5cd639='';return _0x5cd639+=_0x5b7b7b['split']('*')['map']((_0x158439,_0x261c26)=>_0x261c26%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x158439)+'</span>':us(_0x158439))['join'](''),_0x14635c&&(_0x5cd639+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x14635c['value']+'\x22\x20title=\x22'+_0x14635c['title']+'\x22></span>'),_0x5cd639;}function us(_0x82a5fa){const _0x57a9dc=document['createElement']('span');return _0x57a9dc['innerText']=_0x82a5fa,_0x57a9dc['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 _0x5031ea{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x18a2fd,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x51ce97){super(_0x51ce97),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4b6343=this['editor']['config'];_0x4b6343['define']('trackChanges.SuggestionThreadView',ne),_0x4b6343['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4b6343['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xc8d970,_0x747c85){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x30880f,_0x26358b]of this['_handleControllerBuffer']){const _0x549867=this['_suggestionToController']['has'](_0x30880f);_0x549867||_0x26358b?_0x549867&&_0x26358b&&this['_destroyController'](_0x30880f):this['_initializeController'](_0x30880f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xc8d970,_0x747c85);}['init'](){const _0x49a1e2=this['editor'],_0x4be26e=_0x49a1e2['plugins']['get']('TrackChangesEditing'),_0x367d7b=_0x49a1e2['plugins']['get']('Annotations'),_0x1d02cc=_0x49a1e2['plugins']['get']('EditorAnnotations'),_0x5daeea=_0x49a1e2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1d02cc['addSourceCollector'](()=>{const _0x45c395=[];for(const [_0x5cfb52,_0x45b021]of Array['from'](this['_suggestionToController'])){const _0x32861e=_0x5cfb52['getAllAdjacentSuggestions'](),_0x553458=[];for(const _0x2bb680 of _0x32861e){if(!_0x2bb680['isInContent'])continue;if(_0x2bb680['isMultiRange']){_0x553458['push'](..._0x2bb680['getRanges']());continue;}const _0x17a7cf=_0x2bb680['getFirstRange']();if(_0x553458['length']>0x0){const _0xea6855=_0x553458[0x0]['getJoined'](_0x17a7cf);if(_0xea6855){_0x553458[0x0]=_0xea6855;continue;}}_0x553458['push'](_0x17a7cf);}_0x45c395['push']([_0x45b021['view'],_0x553458]);}return _0x45c395;}),this['listenTo'](_0x4be26e,'suggestionLoaded',(_0x30fb87,_0x3f61c3)=>{this['listenTo'](_0x3f61c3,'change:previous',(_0x3e8292,_0x46a2b5,_0x47d12d,_0x1b0bde)=>{_0x3f61c3['isInContent']&&(null==_0x47d12d?(this['_updateController'](_0x1b0bde['head']),this['_handleSuggestionControllerDelayed'](_0x3f61c3,!0x1)):(this['_updateController'](_0x47d12d['head']),null==_0x1b0bde&&this['_handleSuggestionControllerDelayed'](_0x3f61c3,!0x0)));}),null!==_0x3f61c3['previous']?this['_updateController'](_0x3f61c3['head']):this['_handleSuggestionControllerDelayed'](_0x3f61c3,!0x1);}),this['listenTo'](_0x4be26e,'suggestionUnloaded',(_0x583ce2,_0x22d318,_0x2e146f)=>{this['stopListening'](_0x22d318,'change:previous'),this['_handleControllerBuffer']['delete'](_0x22d318),this['_suggestionToController']['has'](_0x22d318)&&this['_destroyController'](_0x22d318),_0x2e146f&&this['_updateController'](_0x2e146f['head']);}),this['listenTo'](_0x4be26e,'suggestionChanged',(_0x153fd6,_0x53e692)=>{this['_updateController'](_0x53e692);}),this['listenTo'](_0x367d7b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5daeea,'addComment',(_0x30df7f,{threadId:_0x4eb93d,isFromAdapter:_0x3927e2})=>{if(_0x3927e2||!_0x4be26e['hasSuggestion'](_0x4eb93d))return;const _0x4b778e=_0x4be26e['getSuggestion'](_0x4eb93d);this['_suggestionToController']['get'](_0x4b778e)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x7808df=this['editor']['plugins']['get']('Annotations'),_0x47144b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x314437=Array['from'](_0x7808df['activeAnnotations'],_0x497634=>_0x497634['innerView'])['filter'](_0x44e20a=>this['_viewToController']['has'](_0x44e20a)),_0x4cd7f5=[];for(const _0x25f403 of _0x314437){const _0x56f647=this['_viewToController']['get'](_0x25f403)['model']['getAllAdjacentSuggestions']();_0x4cd7f5['push'](..._0x56f647['reduce']((_0x3cb9ca,_0x194845)=>[..._0x3cb9ca,..._0x194845['getMarkerNames']()],[]));}_0x47144b['activeMarkers']=_0x4cd7f5;}['_addUIComponentsToFactory'](){const _0x5c5ac4=this['editor'],_0x28c42d=_0x5c5ac4['locale'],_0xa92929=o(_0x28c42d,'Track\x20changes'),_0x5e3639=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0xa92929,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x28c42d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x28c42d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x28c42d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x28c42d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x189436 of _0x5e3639)if(ae(_0x189436)){const _0x18ea00=_0x5c5ac4['commands']['get'](_0x189436['model']['commandName']);_0x189436['model']['bind']('isOn','isEnabled')['to'](_0x18ea00,'value','isEnabled');}_0x5c5ac4['ui']['componentFactory']['add']('trackChanges',_0xe6516a=>this['_createToolbarButton'](_0xe6516a,_0x5e3639,_0xa92929)),_0x5c5ac4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2ad1a6=>this['_createMenuBarMenu'](_0x2ad1a6,_0x5e3639,_0xa92929));}['_createToolbarButton'](_0x1133ab,_0x134937,_0x410a4b){const _0xdbbbf7=zt(_0x1133ab,Zt),_0xfa3fc1=this['editor']['commands']['get']('trackChanges');_0xdbbbf7['buttonView']['set']({'tooltip':_0x410a4b,'label':_0x410a4b,'icon':ie}),_0xdbbbf7['buttonView']['bind']('isOn')['to'](_0xfa3fc1,'value'),_0xdbbbf7['buttonView']['on']('execute',()=>{_0xfa3fc1['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0xdbbbf7,_0x134937,{'role':'menu'});const _0xfd313f=[];for(const _0x999cd6 of _0x134937)ae(_0x999cd6)&&_0xfd313f['push'](this['editor']['commands']['get'](_0x999cd6['model']['commandName']));const _0x39e450=_0xdbbbf7['buttonView'];return _0x39e450['actionView']['unbind']('isEnabled'),_0x39e450['arrowView']['unbind']('isEnabled'),_0x39e450['actionView']['bind']('isEnabled')['to'](_0xfa3fc1,'isEnabled'),_0x39e450['arrowView']['bind']('isEnabled')['toMany'](_0xfd313f,'isEnabled',(..._0x4d6ef6)=>_0x4d6ef6['some'](_0x7a6042=>_0x7a6042)),_0xdbbbf7['on']('execute',_0x14a666=>{this['editor']['execute'](_0x14a666['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xdbbbf7;}['_createMenuBarMenu'](_0x3b0b2b,_0x30f62f,_0xd9bc91){const _0x48e997=new Kt(_0x3b0b2b),_0x4ae245=this['editor']['commands']['get']('trackChanges');_0x48e997['buttonView']['set']({'label':_0xd9bc91,'icon':ie});const _0x48a27b=new Qt(_0x3b0b2b);for(const _0x1397f1 of _0x30f62f){if('separator'==_0x1397f1['type']){_0x48a27b['items']['add'](new Jt(_0x3b0b2b));continue;}const _0x5751ce=new Xt(_0x3b0b2b,_0x48e997),_0x5389ed=new Yt(_0x3b0b2b),_0x1357d7=_0x1397f1['model'];_0x5389ed['bind'](...Object['keys'](_0x1357d7))['to'](_0x1357d7),_0x5389ed['delegate']('execute')['to'](_0x48e997),_0x5389ed['on']('execute',()=>{this['editor']['execute'](_0x1357d7['commandName']),this['editor']['editing']['view']['focus']();}),_0x5751ce['children']['add'](_0x5389ed),_0x48a27b['items']['add'](_0x5751ce);}return _0x48e997['bind']('isEnabled')['to'](_0x4ae245,'isEnabled'),_0x48e997['panelView']['children']['add'](_0x48a27b),_0x48e997;}['_initializeController'](_0x436504){const _0x2f5d8a=this['editor'],_0x53c74e=_0x2f5d8a['config'],_0xceea11=_0x2f5d8a['plugins']['get']('Annotations'),_0x114851=_0x2f5d8a['plugins']['get']('CommentsRepository'),_0x4afdca=_0x2f5d8a['plugins']['get']('EditorAnnotations'),_0x4ef3fb=_0x2f5d8a['plugins']['get'](_0x18a2fd)['me'],_0x238f13=_0x53c74e['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3bbc50,CommentThreadInputView:_0x487585}=_0x2f5d8a['plugins']['get']('CommentsUI');let _0x38b810,_0x2a49c0;this['_annotationViews']['has'](_0x436504['id'])?(_0x2a49c0=this['_annotationViews']['get'](_0x436504['id']),_0x38b810=_0x2a49c0['mainView']):(_0x38b810=new _0x238f13(_0x2f5d8a['locale'],_0x436504,_0x4ef3fb,{'disableComments':this['_disableComments'],'editorConfig':_0x53c74e['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x53c74e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x53c74e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x53c74e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3d18b4(_0x53c74e['get']('locale')),'CommentView':_0x53c74e['get']('comments')['CommentView'],'CommentsListView':_0x3bbc50,'CommentThreadInputView':_0x487585}),_0x38b810['acceptButton']['on']('execute',()=>{_0x2f5d8a['editing']['view']['focus']();}),_0x38b810['discardButton']['on']('execute',()=>{_0x2f5d8a['editing']['view']['focus']();}),_0x2a49c0=_0xceea11['createAnnotationView'](this['editor']['locale'],_0x38b810),_0x2a49c0['bind']('isDirty')['to'](_0x38b810,'isDirty'),_0x2a49c0['bind']('length')['to'](_0x38b810),_0x2a49c0['bind']('type')['to'](_0x38b810,'type',_0x5c8812=>'suggestion-'+_0x5c8812),this['_annotationViews']['set'](_0x436504['id'],_0x2a49c0));const _0x16cfd0=_0x114851['createCommentThreadController'](_0x436504['commentThread'],_0x38b810),_0x2312e1=new oe(_0x2f5d8a,_0x436504,_0x38b810,_0x16cfd0),_0x21ec3b=_0x436504['getAllAdjacentSuggestions']()['filter'](_0x98601e=>_0x98601e['isInContent']);_0x38b810['descriptionParts']=_0x2f5d8a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x21ec3b),this['_suggestionToController']['set'](_0x436504,_0x2312e1),this['_viewToController']['set'](_0x38b810,_0x2312e1);const _0x33549c=_0xceea11['createAnnotation']({'view':_0x2a49c0,'target':()=>{const _0x36c2c2=[],_0x510b39=_0x436504['getAllAdjacentSuggestions']()['filter'](_0x55d192=>_0x55d192['isInContent']);for(const _0xd5c1d of _0x510b39)_0x36c2c2['push'](..._0xd5c1d['getMarkers']());return _0x1dec96(_0x2f5d8a['editing'],_0x36c2c2);},'type':()=>'suggestion-'+_0x2312e1['view']['type']});_0x114851['_bindAnnotationToEditors'](_0x38b810,_0x33549c),_0xceea11['add'](_0x33549c),_0x4afdca['registerAnnotation'](_0x33549c);}['_destroyController'](_0x4bd988){const _0x3e9316=this['editor']['plugins']['get']('CommentsRepository'),_0x392175=this['editor']['plugins']['get']('Annotations'),_0x2e1c94=this['_suggestionToController']['get'](_0x4bd988),_0x8ca93c=_0x2e1c94['view'],_0x340111=_0x392175['getByInnerView'](_0x8ca93c);_0x3e9316['_unbindEditors'](_0x8ca93c),_0x340111&&_0x392175['remove'](_0x340111),this['_suggestionToController']['delete'](_0x4bd988),this['_viewToController']['delete'](_0x8ca93c),_0x2e1c94['destroy']();}['_updateController'](_0x1e7886){if(!_0x1e7886['isInContent']||!this['_suggestionToController']['has'](_0x1e7886))return;const _0x1bc9fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54d9b0=this['_suggestionToController']['get'](_0x1e7886),_0x2efdd4=_0x1e7886['getAllAdjacentSuggestions']();_0x54d9b0['view']['descriptionParts']=_0x1bc9fe['descriptionFactory']['getDescriptions'](_0x2efdd4);}['destroy'](){for(const _0x3c1289 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3c1289);for(const _0x1cbfff of this['_annotationViews']['values']())_0x1cbfff['mainView']['destroy']();super['destroy']();}}function ae(_0x1267e0){return'model'in _0x1267e0;}class k extends _0x5031ea{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2b9a87){this['editor']['plugins']['get'](p)['adapter']=_0x2b9a87;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3f9fd0){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3f9fd0);}['getSuggestions']({skipNotAttached:_0x369dbf=!0x1,toJSON:_0x3dde6e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x369dbf,'toJSON':_0x3dde6e});}['getSuggestion'](_0x134fb9){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x134fb9);}}const T=['Pagination'];class P extends _0x5031ea{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x44b19d=this['editor'];if(_0x44b19d['config']['define']('trackChangesData.editorCreator',_0x3edac2=>{const _0x2739db=_0x44b19d['model']['document']['getRootNames']()['reduce']((_0x82bd84,_0x3e5218)=>(_0x82bd84[_0x3e5218]='',_0x82bd84),{});return _0x44b19d['constructor']['create'](_0x2739db,_0x3edac2);}),'function'!=typeof _0x44b19d['config']['get']('trackChangesData')['editorCreator'])throw new _0xcb8e69('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x41ca39){return N(this['editor'],!0x0,_0x41ca39);}['getDataWithDiscardedSuggestions'](_0x3e8092){return N(this['editor'],!0x1,_0x3e8092);}}class D extends _0x5031ea{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2d087e){super(_0x2d087e),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(_0x435b20){return void 0x0!==_0x435b20['getRootsAttributes'];}async function N(_0x315b1c,_0x21b3cc,_0xd65ab8){const _0x143a75=_0x54a125(_0x315b1c,T);_0x143a75['plugins']['push'](p,D),_0x143a75['rootsAttributes']=v(_0x315b1c)?_0x315b1c['getRootsAttributes']():void 0x0;const _0xf19acf=document['createDocumentFragment'](),_0x23e259=_0x315b1c['config']['get']('trackChangesData')['editorCreator'],_0x415a07=await _0x23e259(_0x143a75,()=>function(_0x452ea6){const _0x38830c=document['createElement']('div');return _0x452ea6['appendChild'](_0x38830c),_0x38830c;}(_0xf19acf));!function(_0x2eb83f,_0x494c52){const _0x143be2=_0x2eb83f['model']['document']['getRootNames']()['reduce']((_0x3b9ac9,_0x4dd1f3)=>(_0x3b9ac9[_0x4dd1f3]=_0x2eb83f['data']['get']({'rootName':_0x4dd1f3}),_0x3b9ac9),{}),_0x52d683=_0x2eb83f['plugins']['get']('Users')['users']['map'](_0x552033=>({'id':_0x552033['id'],'name':_0x552033['name']})),_0x268274=_0x2eb83f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x139174=_0x2eb83f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x27db91=_0x494c52['plugins']['get']('Users'),_0x1603ee=_0x494c52['plugins']['get']('TrackChangesEditing'),_0x21a113=_0x494c52['plugins']['get']('CommentsRepository');for(const _0x478f6d of _0x52d683)_0x27db91['getUser'](_0x478f6d['id'])||_0x27db91['addUser'](_0x478f6d);_0x27db91['me']||_0x27db91['useAnonymousUser']();for(const _0x5ad42f of _0x139174)_0x21a113['addCommentThread'](_0x5ad42f);for(const _0x561d96 of _0x268274)_0x1603ee['addSuggestionData'](_0x561d96);_0x494c52['data']['set'](_0x143be2);}(_0x315b1c,_0x415a07),_0x415a07['execute'](_0x21b3cc?'acceptAllSuggestions':'discardAllSuggestions');const _0x44b99e=v(_0x415a07)?_0x415a07['getFullData'](_0xd65ab8):_0x415a07['data']['get'](_0xd65ab8);return await _0x415a07['destroy'](),_0x44b99e;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x11216f,PendingActions as _0x5a617c,icons as _0x32fe92}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x56ae75,ObservableMixin as _0x1bee3c,uid as _0x58019d,insertToPriorityArray as _0x255c0b,priorities as _0x3f0408,logWarning as _0x7edfd5,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x18a7f4,View as _0x502ad6,ButtonView as _0x31bbbd,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 _0x5c6d6e,hashObject as _0x40c511,surroundingMarkersDetector as _0x584805,trimHtml as _0x579d17,UserView as _0x339a1e,getDateTimeFormatter as _0x300dce,getAllMarkersDomElementsSorted as _0x185d75,sanitizeEditorConfig as _0x43161b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x52ab7b,LiveRange as _0x17267b,LivePosition as _0x50dfc4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x147a9e,toWidget as _0x4714a8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x33a2e5,set as _0x2d7a2a,isEqual as _0xd4c736,unset as _0x196361,omit as Bt}from'lodash-es';import{Delete as _0x579c5a,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x282209,ShiftEnter as _0x47d294}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x5cc776,_0x3b3f30){super(_0x5cc776),this['_enabledCommands']=_0x3b3f30,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 _0x260f85 of this['editor']['commands']['commands']())_0x260f85['affectsData']&&!this['_enabledCommands']['has'](_0x260f85)&&_0x260f85['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x47f4ce of this['editor']['commands']['commands']())_0x47f4ce['affectsData']&&!this['_enabledCommands']['has'](_0x47f4ce)&&_0x47f4ce['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x24b2a1,_0x4067bf){super(_0x24b2a1),this['_suggestions']=_0x4067bf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x21c86a){const _0x30dee7=this['_suggestions']['get'](_0x21c86a);if(!_0x30dee7)throw new _0x56ae75('track-changes-accept-suggestion-not-found',this);const _0x3fe202=_0x30dee7['getRanges']();this['editor']['model']['canEditAt'](_0x3fe202)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x30dee7);}}class B extends ts{['_suggestions'];constructor(_0x2f6a68,_0x4e14c0){super(_0x2f6a68),this['_suggestions']=_0x4e14c0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x46f9fe){const _0xe8d1ab=this['_suggestions']['get'](_0x46f9fe);if(!_0xe8d1ab)throw new _0x56ae75('track-changes-discard-suggestion-not-found',this);const _0xdff0b=_0xe8d1ab['getRanges']();this['editor']['model']['canEditAt'](_0xdff0b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xe8d1ab);}}function ss(_0x2af1e8){return _0x2af1e8['sort']((_0x1013ed,_0x17c0af)=>'deletion'==_0x1013ed['type']&&'deletion'!=_0x17c0af['type']?-0x1:'deletion'!=_0x1013ed['type']&&'deletion'==_0x17c0af['type']?0x1:0x0);}function to(_0x240afb,_0x5842df){let _0x59c2ed,_0x29daef=0x0;const _0x1f6d4e=[],_0x95973d=_0x5842df['schema'];for(;_0x29daef<_0x240afb['length'];){const _0x1ca073=_0x240afb[_0x29daef],_0x5da9f8=_0x240afb[_0x29daef+0x1];_0x59c2ed||(_0x59c2ed=_0x5842df['createPositionBefore'](_0x1ca073)),co(_0x5842df,_0x1ca073,_0x5da9f8)||(_0x1f6d4e['push'](_0x5842df['createRange'](_0x59c2ed,_0x95973d['isObject'](_0x1ca073)?_0x5842df['createPositionAfter'](_0x1ca073):_0x5842df['createPositionAt'](_0x1ca073,'end'))),_0x59c2ed=null),_0x29daef++;}return _0x1f6d4e;}function co(_0x5210a1,_0x24d255,_0x3b8a5d){if(!_0x3b8a5d)return!0x1;const _0x442daf=_0x5210a1['createPositionAfter'](_0x24d255),_0x1d01c4=_0x5210a1['createPositionBefore'](_0x3b8a5d);return _0x442daf['isTouching'](_0x1d01c4);}function rs(_0x551500,_0x3c6640,_0x3780bc){for(;_0x3780bc['length'];){const _0x419245=_0x3780bc['splice'](0x0,0x64);_0x551500['change'](()=>{for(const _0x252c2a of _0x419245)_0x252c2a['isInContent']&&_0x3c6640['execute'](_0x252c2a['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x258dea,_0x44c01e,_0x446a7b){super(_0x258dea),this['_command']=_0x44c01e,this['_suggestions']=_0x446a7b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x28c5ae=Array['from'](this['_suggestions']['values']())['some'](_0x4a1c35=>_0x4a1c35['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x28c5ae;}['execute'](){const _0x5c3f94=ss(Array['from'](this['_suggestions']['values']()));for(const _0x392a04 of _0x5c3f94){const _0x32bfe6=_0x392a04['getRanges']();if(!this['editor']['model']['canEditAt'](_0x32bfe6))return;}rs(this['editor']['model'],this['_command'],_0x5c3f94);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x55f139,_0x548304,_0x3688ea){super(_0x55f139),this['_command']=_0x548304,this['_suggestions']=_0x3688ea,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5dfb48=this['editor']['model']['document']['selection'],_0x38b2f2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x450f0d,_0x147697){const _0xe8d0d8=Array['from'](_0x450f0d['getRanges']()),_0x1ddd3d=new Set();for(const _0x48621c of _0x147697)if(_0x48621c['isInContent']){for(const _0x5c35d1 of _0xe8d0d8)for(const _0x3a2ae3 of _0x48621c['getRanges']())(_0x5c35d1['isIntersecting'](_0x3a2ae3)||_0x450f0d['isCollapsed']&&!_0x48621c['isMultiRange']&&_0x48621c['next']&&_0x3a2ae3['end']['isTouching'](_0x5c35d1['start']))&&_0x1ddd3d['add'](_0x48621c);}return _0x1ddd3d;}(_0x5dfb48,_0x38b2f2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x14a82c=ss(Array['from'](this['_selectedSuggestions']));for(const _0x467fdf of _0x14a82c){const _0x5a6467=_0x467fdf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5a6467))return;}rs(this['editor']['model'],this['_command'],_0x14a82c);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1bee3c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x45f57c,_0x25c558){super(),this['id']=_0x25c558['id'],this['type']=_0x25c558['type'],this['subType']=_0x25c558['subType']||null,this['author']=_0x25c558['author'],this['creator']=_0x25c558['creator']||_0x25c558['author'],this['isExternal']=Boolean(_0x25c558['attributes']&&_0x25c558['attributes']['@external']),this['data']=null,this['_model']=_0x45f57c,this['_onAccept']=_0x25c558['onAccept'],this['_onDiscard']=_0x25c558['onDiscard'],this['_onAttributesChange']=_0x25c558['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x25c558['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 _0x2fcbf7=this;for(;_0x2fcbf7['previous'];)_0x2fcbf7=_0x2fcbf7['previous'];return _0x2fcbf7;}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'](_0x208627){this['_markerNames']['add'](_0x208627);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x66e2c1=>this['_model']['markers']['get'](_0x66e2c1))['filter'](_0x29e730=>_0x29e730);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4ad199=>{for(const _0x5b90be of this['getMarkers']())_0x4ad199['removeMarker'](_0x5b90be);}),this['_markerNames']['clear']();}['removeMarker'](_0x345053){this['_model']['change'](_0x50dfdd=>{_0x50dfdd['removeMarker'](_0x345053);}),this['_markerNames']['delete'](_0x345053);}['addRange'](_0x4f8f51){const _0x509e4f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x509e4f),this['_model']['change'](_0x5467fb=>{_0x5467fb['addMarker'](_0x509e4f,{'range':_0x4f8f51,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5f0933){for(const _0x9a3921 of this['getRanges']())if(_0x9a3921['isIntersecting'](_0x5f0933))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x77821d=>_0x77821d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x15efb9,_0x552ce6)=>[..._0x15efb9,..._0x552ce6['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xc320c5=this['getRanges']();if(0x1!=_0xc320c5['length'])return null;const _0x317caf=_0xc320c5[0x0],_0x3d5233=_0x317caf['start']['nodeAfter'],_0x2f85a6=_0x317caf['end']['nodeBefore'];return _0x3d5233 instanceof _0x52ab7b?_0x3d5233!=_0x2f85a6?null:_0x3d5233: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 _0x29fef5=[];let _0x48730b=this['head'];for(;_0x48730b;)_0x29fef5['push'](_0x48730b),_0x48730b=_0x48730b['next'];return _0x29fef5;}['setAttribute'](_0x47e8d3,_0x2f6667){const _0x5dcd11=_0x33a2e5(this['attributes']);_0x2d7a2a(_0x5dcd11,_0x47e8d3,_0x2f6667),_0xd4c736(_0x5dcd11,this['attributes'])||(this['attributes']=_0x5dcd11,this['_onAttributesChange'](_0x5dcd11));}['removeAttribute'](_0x5ede1a){const _0x3e8bcc=_0x33a2e5(this['attributes']);_0x196361(_0x3e8bcc,_0x5ede1a),_0xd4c736(_0x3e8bcc,this['attributes'])||(this['attributes']=_0x3e8bcc,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 _0x58019d()['substr'](0x1,0x5);}}function o(_0x52d362,_0xf0cf02,_0x525735){const t=_0x52d362['t'];switch(_0xf0cf02){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',_0x525735);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x525735);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x525735);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x525735);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x525735);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',_0x525735);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x525735);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',_0x525735);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x525735);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x525735);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x525735);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x525735);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x525735);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x525735);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x525735);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x525735);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x525735);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x525735);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x525735);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x525735);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x525735);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x525735);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x525735);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'},_0x525735);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x525735);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x525735);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x525735);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x525735);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x525735);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'},_0x525735);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x525735);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x525735);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x525735);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x525735);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'},_0x525735);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x525735);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'},_0x525735);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'},_0x525735);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x525735);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'},_0x525735);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x525735);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'},_0x525735);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x525735);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x525735);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'},_0x525735);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'},_0x525735);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 _0xf0cf02;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2ee4a4,_0x3d4f14){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2ee4a4,this['_locale']=_0x3d4f14;}['getDescriptions'](_0x18ffa7){const _0x717083=[],_0x57e640=new Set(),_0x4bbb42=new Set();for(let _0x3c4645=0x0;_0x3c4645<_0x18ffa7['length'];_0x3c4645++){const _0x2372db=_0x18ffa7[_0x3c4645];if(!_0x2372db['isInContent'])continue;const _0x57b1f6=this['_handleCustomCallbackDescription'](_0x2372db);if(_0x57b1f6){if(null!=_0x2372db['subType']){if(_0x57e640['has'](_0x2372db['subType']))continue;_0x57e640['add'](_0x2372db['subType']);}_0x717083['push'](_0x57b1f6);}else{if('attribute'!=_0x2372db['type'])'insertion'!=_0x2372db['type']&&'deletion'!=_0x2372db['type']||this['_handleInsertRemoveSuggestionDescription'](_0x717083,_0x2372db,_0x18ffa7[_0x3c4645+0x1]);else{const _0x2e6790=_0x2372db['data']['key'];if(_0x4bbb42['has'](_0x2e6790))continue;_0x4bbb42['add'](_0x2372db['data']['key']),_0x2e6790==m?this['_handleRenameSuggestionDescription'](_0x717083,_0x2372db):this['_handleAttributeSuggestionDescription'](_0x717083,_0x2372db);}}}return this['_resolveDescriptionItems'](_0x717083);}['registerDescriptionCallback'](_0x4a4488){this['_customCallbacks']['push'](_0x4a4488);}['registerElementLabel'](_0x33f8f4,_0x3cb07a,_0x3dbf7a=_0x3f0408['normal']){'function'==typeof _0x33f8f4?_0x255c0b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x33f8f4,'label':_0x3cb07a,'priority':_0x3dbf7a}):this['_itemLabels']['set'](_0x33f8f4,_0x3cb07a);}['registerAttributeLabel'](_0x763d44,_0x4cccdc){this['_attributeLabels']['set'](_0x763d44,_0x4cccdc);}['getItemLabel'](_0x359260,_0x189be7=0x1){let _0x39103b;for(const _0x3ccccb of this['_itemLabelsCallbacks'])if(_0x3ccccb['matchingCallback'](_0x359260)){_0x39103b=_0x3ccccb['label'];break;}return _0x39103b||(_0x39103b=this['_itemLabels']['get'](_0x359260['name'])),_0x39103b?_0x39103b(_0x189be7):0x1!==_0x189be7?_0x189be7+'\x20'+_0x359260['name']+'s':''+_0x359260['name'];}['_addDescriptionItems'](_0x30355f,_0x319433){const _0x313170=_0x319433['getFirstRange']()['getWalker'](),_0x3642ee='insertion'==_0x319433['type']?'add':'remove';for(const _0x8acc2e of _0x313170){const _0x4cfdd0=_0x8acc2e['item'],_0x4404d1=_0x30355f[_0x30355f['length']-0x1];if(_0x4cfdd0['is']('$textProxy'))_0x4404d1&&_0x4404d1['type']['indexOf']('Container')>-0x1&&_0x30355f['pop'](),_0x4404d1&&'text'==_0x4404d1['type']?_0x4404d1[_0x3642ee]+=_0x4cfdd0['data']:_0x30355f['push']({'type':'text','add':'add'==_0x3642ee?_0x4cfdd0['data']:'','remove':'remove'==_0x3642ee?_0x4cfdd0['data']:''});else{if(this['_schema']['isObject'](_0x4cfdd0)){const _0x4bb9e4=_0x4cfdd0;if(_0x4404d1&&_0x4404d1['type']['indexOf']('Container')>-0x1&&_0x30355f['pop'](),'elementEnd'==_0x8acc2e['type'])continue;_0x4404d1&&_0x4404d1['type']==_0x3642ee+'Object'&&_0x4404d1['element']['name']==_0x4bb9e4['name']?_0x4404d1['quantity']++:_0x30355f['push']({'type':_0x3642ee+'Object','element':_0x4bb9e4,'quantity':0x1}),_0x313170['skip'](_0x29e8a6=>!('elementEnd'==_0x29e8a6['type']&&_0x29e8a6['item']==_0x4cfdd0));}else{if(this['_schema']['checkChild'](_0x4cfdd0,'$text')||_0x4cfdd0['is']('element','softBreak')){const _0x1275cf=_0x4cfdd0;if('add'==_0x3642ee&&'elementStart'==_0x8acc2e['type']||'remove'==_0x3642ee&&'elementEnd'==_0x8acc2e['type'])continue;if(_0x4404d1&&-0x1==_0x4404d1['type']['indexOf']('Container')){'text'==_0x4404d1['type']&&(_0x4404d1[_0x3642ee]+='\x0a');continue;}let _0x2426e7;if(_0x2426e7='add'==_0x3642ee?_0x1275cf['nextSibling']&&!this['_schema']['isObject'](_0x1275cf['nextSibling'])?_0x1275cf['nextSibling']:null:_0x1275cf['previousSibling']&&!this['_schema']['isObject'](_0x1275cf['previousSibling'])?_0x1275cf['previousSibling']:null,_0x1275cf['isEmpty']||_0x2426e7&&_0x2426e7['isEmpty']){const _0x337a71=_0x2426e7&&_0x2426e7['isEmpty']?_0x2426e7:_0x1275cf;_0x4404d1&&_0x4404d1['type']==_0x3642ee+'EmptyContainer'&&_0x4404d1['element']['name']==_0x337a71['name']?_0x4404d1['quantity']++:_0x30355f['push']({'type':_0x3642ee+'EmptyContainer','element':_0x337a71,'quantity':0x1});}else _0x30355f['push']({'type':_0x3642ee+'Container','element':_0x1275cf});}}}}}['_resolveDescriptionItems'](_0x598c0d){const _0x1a492a=this['_locale'],_0x3b0b46=[],_0x31ea41=[],_0x1d6f41=[];for(const _0x4189f8 of _0x598c0d)switch(_0x4189f8['type']){case'text':if(_0x4189f8['add']=_0x4189f8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4189f8['remove']=_0x4189f8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4189f8['add']&&''!=_0x4189f8['remove']){_0x3b0b46['push']({'type':'replace','content':o(_0x1a492a,'REPLACE_TEXT',['\x22'+_0x4189f8['remove']+'\x22','\x22'+_0x4189f8['add']+'\x22'])});continue;}if(null!=_0x4189f8['add']['match'](/^ +$/)){_0x3b0b46['push']({'type':'insertion','content':o(_0x1a492a,'*Insert:*\x20%0',o(_0x1a492a,'ELEMENT_SPACE',_0x4189f8['add']['length']))});continue;}if(null!=_0x4189f8['remove']['match'](/^ +$/)){_0x3b0b46['push']({'type':'deletion','content':o(_0x1a492a,'*Remove:*\x20%0',o(_0x1a492a,'ELEMENT_SPACE',_0x4189f8['remove']['length']))});continue;}if(''!=_0x4189f8['add']){_0x3b0b46['push']({'type':'insertion','content':o(_0x1a492a,'*Insert:*\x20%0','\x22'+_0x4189f8['add']+'\x22')});continue;}_0x3b0b46['push']({'type':'deletion','content':o(_0x1a492a,'*Remove:*\x20%0','\x22'+_0x4189f8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3b0b46['push']({'type':'insertion','content':o(_0x1a492a,'*Insert:*\x20%0',this['getItemLabel'](_0x4189f8['element'],_0x4189f8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3b0b46['push']({'type':'deletion','content':o(_0x1a492a,'*Remove:*\x20%0',this['getItemLabel'](_0x4189f8['element'],_0x4189f8['quantity']))});continue;case'addContainer':_0x3b0b46['push']({'type':'insertion','content':o(_0x1a492a,'*Split:*\x20%0',this['getItemLabel'](_0x4189f8['element'],_0x4189f8['quantity']))});continue;case'removeContainer':_0x3b0b46['push']({'type':'deletion','content':o(_0x1a492a,'*Merge:*\x20%0',this['getItemLabel'](_0x4189f8['element'],_0x4189f8['quantity']))});continue;case'addFormat':_0x31ea41['push'](_0x4189f8['key']);continue;case'removeFormat':_0x1d6f41['push'](_0x4189f8['key']);continue;default:_0x3b0b46['push'](_0x4189f8);}if(_0x31ea41['length']){const _0x13647d=_0x31ea41['map'](_0x33a63c=>this['_attributeLabels']['has'](_0x33a63c)?this['_attributeLabels']['get'](_0x33a63c):_0x33a63c)['join'](',\x20');_0x3b0b46['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x13647d)});}if(_0x1d6f41['length']){const _0x453664=_0x1d6f41['map'](_0xa1dff5=>this['_attributeLabels']['has'](_0xa1dff5)?this['_attributeLabels']['get'](_0xa1dff5):_0xa1dff5)['join'](',\x20');_0x3b0b46['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x453664)});}return _0x3b0b46;}['_handleCustomCallbackDescription'](_0x1833bf){for(const _0x4bee4e of this['_customCallbacks']){const _0x371800=_0x4bee4e(_0x1833bf);if(_0x371800&&'type'in _0x371800)return _0x371800;}}['_handleAttributeSuggestionDescription'](_0x19d98c,_0x4d2849){const _0x1f27ee=_0x4d2849['data'],_0x5a092c=void 0x0===_0x1f27ee['newValue']?'removeFormat':'addFormat';_0x19d98c['push']({'type':_0x5a092c,'key':_0x1f27ee['key']});}['_handleRenameSuggestionDescription'](_0x41e065,_0x162270){_0x41e065['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x162270['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x39356b,_0x5c39be,_0x58f33c){if(this['_addDescriptionItems'](_0x39356b,_0x5c39be),_0x58f33c&&_0x58f33c['getFirstRange']()&&!_0x5c39be['getFirstRange']()['end']['isEqual'](_0x58f33c['getFirstRange']()['start'])){const _0x1b26cd=_0x39356b[_0x39356b['length']-0x1],_0x1d242b='insertion'==_0x5c39be['type']?'add':'remove';_0x1b26cd&&'text'==_0x1b26cd['type']&&(_0x1b26cd[_0x1d242b]+='\x0a');}}}class E extends _0x11216f{['afterInit'](){const _0x3e07a9=this['editor'],_0x3dcb46=_0x3e07a9['plugins']['get']('TrackChangesEditing');_0x3e07a9['commands']['get']('showAIAssistant')&&_0x3dcb46['enableCommand']('showAIAssistant');}}class V extends _0x11216f{['afterInit'](){const _0x1762ee=this['editor'],_0x395e6b=_0x1762ee['locale'];if(!_0x1762ee['plugins']['has']('AlignmentEditing'))return;const _0xa68026=_0x1762ee['plugins']['get']('TrackChangesEditing');_0xa68026['enableDefaultAttributesIntegration']('alignment'),_0xa68026['registerBlockAttribute']('alignment'),_0xa68026['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x395e6b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x100e33=this['editor'],_0x38e9df=_0x100e33['locale'];_0x100e33['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49767e=>{if('formatBlock'!=_0x49767e['type'])return;const {data:_0x3c8f03}=_0x49767e;if(_0x3c8f03&&'alignment'==_0x3c8f03['commandName']){const _0x2fed83=_0x3c8f03['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x38e9df,'*Format:*\x20%0',function(_0x315c42){switch(_0x315c42){case'left':return o(_0x38e9df,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x38e9df,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x38e9df,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x38e9df,'FORMAT_JUSTIFY_TEXT');}}(_0x2fed83))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x11216f{['afterInit'](){const _0x516687=this['editor'],_0x2417ec=_0x516687['plugins']['get']('TrackChangesEditing'),_0x2bbd25=_0x516687['locale'];for(const _0x3bdd07 of ti){if(!_0x516687['plugins']['has'](_0x3bdd07))continue;const _0x4dc2f2=_0x3bdd07['slice'](0x0,-0x7)['toLowerCase'](),_0x46038c='FORMAT_'+_0x4dc2f2['toUpperCase']();_0x2417ec['enableDefaultAttributesIntegration'](_0x4dc2f2),_0x2417ec['registerInlineAttribute'](_0x4dc2f2),_0x2417ec['descriptionFactory']['registerAttributeLabel'](_0x4dc2f2,o(_0x2bbd25,_0x46038c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x213c1d=this['editor'],_0x2dac5f=_0x213c1d['locale'],_0x50a662=_0x213c1d['plugins']['get']('TrackChangesEditing');function _0x2f29ba(_0x4831a1,_0x320172){_0x50a662['descriptionFactory']['registerDescriptionCallback'](_0x2825b5=>{if('formatInline'!=_0x2825b5['type'])return;const {data:_0xda7ce}=_0x2825b5;return _0xda7ce&&_0xda7ce['commandName']===_0x4831a1?_0xda7ce['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2dac5f,'*Format:*\x20%0',_0x320172)}:{'type':'format','content':o(_0x2dac5f,'*Remove\x20format:*\x20%0',_0x320172)}:void 0x0;});}_0x2f29ba('bold',o(_0x2dac5f,'FORMAT_BOLD')),_0x2f29ba('italic',o(_0x2dac5f,'FORMAT_ITALIC')),_0x2f29ba('underline',o(_0x2dac5f,'FORMAT_UNDERLINE')),_0x2f29ba('code',o(_0x2dac5f,'FORMAT_CODE')),_0x2f29ba('strikethrough',o(_0x2dac5f,'FORMAT_STRIKETHROUGH')),_0x2f29ba('subscript',o(_0x2dac5f,'FORMAT_SUBSCRIPT')),_0x2f29ba('superscript',o(_0x2dac5f,'FORMAT_SUPERSCRIPT'));}}class O extends _0x11216f{['afterInit'](){const _0x4de078=this['editor'],_0x25ce4f=_0x4de078['locale'];if(!_0x4de078['plugins']['has']('BlockQuoteEditing'))return;const _0x35528c=_0x4de078['plugins']['get']('TrackChangesEditing'),_0xa66817=this['editor']['commands']['get']('blockQuote');_0x35528c['enableCommand']('blockQuote',(_0x35465c,_0x5dbecd={})=>{const _0x2cbbfa=this['editor']['model']['document']['selection'],_0x18f81f=_0x5dbecd&&void 0x0!==_0x5dbecd['forceValue']?_0x5dbecd['forceValue']:!_0xa66817['value'];let _0x3f4f1d=[];if(_0x18f81f){const _0x27dff1=Array['from'](_0x2cbbfa['getSelectedBlocks']())['filter'](_0x257204=>oo(_0x257204)||function(_0x1081c1,_0x2dca9d){const _0x525ae2=_0x2dca9d['checkChild'](_0x1081c1['parent'],'blockQuote'),_0x1c2976=_0x2dca9d['checkChild'](['$root','blockQuote'],_0x1081c1);return _0x525ae2&&_0x1c2976;}(_0x257204,this['editor']['model']['schema']));_0x3f4f1d=to(_0x27dff1,_0x4de078['model']);}else{const _0x5ce43f=Array['from'](_0x2cbbfa['getSelectedBlocks']())['filter'](_0x29e2eb=>oo(_0x29e2eb));_0x3f4f1d=to(_0x5ce43f,_0x4de078['model']);}_0x4de078['model']['change'](()=>{for(const _0x483ec2 of _0x3f4f1d)_0x35528c['markBlockFormat'](_0x483ec2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x18f81f}]});});}),_0x35528c['descriptionFactory']['registerDescriptionCallback'](_0x4ddb42=>{const {data:_0x437440}=_0x4ddb42;if(_0x437440&&'blockQuote'==_0x437440['commandName']){const _0x5826ba=o(_0x25ce4f,'ELEMENT_BLOCK_QUOTE');return _0x437440['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25ce4f,'*Set\x20format:*\x20%0',_0x5826ba)}:{'type':'format','content':o(_0x25ce4f,'*Remove\x20format:*\x20%0',_0x5826ba)};}});}}function oo(_0x5f557c){return'blockQuote'==_0x5f557c['parent']['name'];}class G extends _0x11216f{['afterInit'](){const _0x367a32=this['editor'];_0x367a32['plugins']['has']('CaseChange')&&(_0x367a32['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x367a32['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x367a32['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x11216f{['afterInit'](){const _0x1de51a=this['editor'];_0x1de51a['commands']['get']('ckbox')&&_0x1de51a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x11216f{['afterInit'](){const _0x46db99=this['editor'];if(!_0x46db99['plugins']['has']('CodeBlock'))return;const _0x4bef74=_0x46db99['plugins']['get']('TrackChangesEditing'),_0x2ffa28=_0x46db99['locale'],_0x3dd8d6=_0x46db99['config']['get']('codeBlock')['languages'],_0x58f04e=_0x46db99['commands']['get']('codeBlock');_0x4bef74['enableCommand']('indentCodeBlock'),_0x4bef74['enableCommand']('outdentCodeBlock'),_0x4bef74['enableCommand']('codeBlock',(_0x19bebe,_0x2c9e86={})=>{const _0x1d4987=_0x46db99['model'],_0x53713=_0x46db99['model']['document']['selection'],_0x1b6612=_0x2c9e86&&void 0x0!==_0x2c9e86['forceValue']?_0x2c9e86['forceValue']:!_0x58f04e['value'];let _0x191a91;_0x2c9e86['language']||(_0x2c9e86['language']=_0x3dd8d6[0x0]['language']),_0x191a91=_0x1b6612?Array['from'](_0x53713['getSelectedBlocks']())['filter'](_0xdcc7fc=>eo(_0xdcc7fc)||function(_0x398454,_0xd95a98){if(_0x398454['is']('rootElement')||_0xd95a98['isLimit'](_0x398454))return!0x1;return _0xd95a98['checkChild'](_0x398454['parent'],'codeBlock');}(_0xdcc7fc,_0x1d4987['schema'])):Array['from'](_0x53713['getSelectedBlocks']())['filter'](_0x336677=>eo(_0x336677));const _0x544184=to(_0x191a91,_0x1d4987);_0x1d4987['change'](()=>{for(const _0x245713 of _0x544184)_0x4bef74['markBlockFormat'](_0x245713,{'commandName':'codeBlock','commandParams':[{..._0x2c9e86,'forceValue':_0x1b6612}],'formatGroupId':'blockName'});});}),(_0x4bef74['descriptionFactory']['registerElementLabel']('codeBlock',_0x1e9af2=>o(_0x2ffa28,'ELEMENT_CODE_BLOCK',_0x1e9af2)),_0x4bef74['descriptionFactory']['registerDescriptionCallback'](_0x30881c=>{if('formatBlock'!=_0x30881c['type'])return;const _0x38d43f=_0x2ffa28['t'],{data:_0x20ecb2}=_0x30881c;if(!_0x20ecb2||'codeBlock'!=_0x20ecb2['commandName'])return;const _0x22fc0e=_0x20ecb2['commandParams'][0x0]['language'],_0x6a74fe=_0x38d43f(_0x3dd8d6['find'](_0x1d2041=>_0x1d2041['language']===_0x22fc0e)['label'])['toLowerCase']();return _0x20ecb2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ffa28,'*Set\x20format:*\x20%0',o(_0x2ffa28,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x6a74fe+')')}:{'type':'format','content':o(_0x2ffa28,'*Remove\x20format:*\x20%0',o(_0x2ffa28,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4880cc){return'codeBlock'==_0x4880cc['name'];}class H extends _0x11216f{['afterInit'](){const _0x42afef=this['editor'];if(!_0x42afef['plugins']['has']('CommentsEditing'))return;_0x42afef['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2684db,_0x25104b,_0x24d162){const _0x5478f2=[];for(const _0x5e8feb of _0x25104b['getItems']())_0x5e8feb['hasAttribute'](_0x2684db)&&_0x5478f2['push'](_0x24d162['createRangeOn'](_0x5e8feb));return _0x5478f2;}function _e(_0x516636,_0x9c173d,{showActiveMarker:_0x1f6736=!0x0}={}){const _0x26533a=_0x516636['plugins']['get']('TrackChangesEditing');return(_0x405433,_0xd822bd,_0x52c2ea)=>{if(!_0x52c2ea['consumable']['test'](_0xd822bd['markerRange'],_0x405433['name']))return;const _0x4d61ff=_0xd822bd['markerRange']['getWalker'](),_0x549c25=_0xd822bd['markerRange']['start'],_0x7d021e=_0x516636['model']['schema'];let _0x4dae0a=null,_0xaba30f=null,_0x2136a3=!0x1,_0x31d3a6=!0x1;for(const _0x22bf03 of _0x4d61ff){const _0x5ecf0f=_0x22bf03['item'];_0x2136a3=_0x2136a3||_0x7d021e['isContent'](_0x5ecf0f);const _0x74bd7b=_0x52c2ea['mapper']['toViewElement'](_0x5ecf0f);if(_0x74bd7b&&_0x74bd7b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x22bf03['type']&&(_0x7d021e['isBlock'](_0x5ecf0f)&&!_0x7d021e['isLimit'](_0x5ecf0f)&&(_0x5ecf0f['nextSibling']||_0x549c25['isAtEnd']?_0x4dae0a&&_0x4dae0a['parent']==_0x5ecf0f||(_0x4dae0a=_0x5ecf0f,_0x43888(_0x22bf03['previousPosition']),_0x31d3a6=!0x0):_0xaba30f=_0xaba30f||_0x22bf03['previousPosition']));}function _0x43888(_0x36f9c2){const _0x9105a9=_0x52c2ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x9c173d}),_0x56773b=_0x52c2ea['mapper']['toViewPosition'](_0x36f9c2);_0x1f6736&&_0x26533a['activeMarkers']['includes'](_0xd822bd['markerName'])&&_0x52c2ea['writer']['addClass']('ck-suggestion-marker--active',_0x9105a9),_0x52c2ea['writer']['insert'](_0x56773b,_0x9105a9),_0x52c2ea['mapper']['bindElementToMarker'](_0x9105a9,_0xd822bd['markerName']);}_0x2136a3||_0x31d3a6||!_0xaba30f||_0x43888(_0xaba30f);};}class q extends _0x11216f{static get['requires'](){return[_0x579c5a];}['init'](){const _0x5ac9e1=this['editor'],_0x23b107=_0x5ac9e1['plugins']['get']('TrackChangesEditing');_0x23b107['enableCommand']('delete');const _0x3fa460=_0x5ac9e1['commands']['get']('deleteForward');_0x23b107['enableCommand']('deleteForward',(_0x381e07,_0x3c7528={})=>{const _0x552d1d=_0x5ac9e1['model']['createSelection'](_0x5ac9e1['model']['document']['selection']);_0x552d1d['isCollapsed']&&_0x5ac9e1['model']['modifySelection'](_0x552d1d,{'direction':'forward','unit':_0x3c7528['unit']});const _0x46367c=_0x552d1d['getFirstRange'](),_0x520582=_0x17267b['fromRange'](_0x46367c);let _0x530adc;_0x381e07(_0x3c7528),_0x530adc='$graveyard'==_0x520582['root']['rootName']?_0x5ac9e1['model']['createRange'](_0x46367c['start']):_0x5ac9e1['model']['createRange'](_0x520582['start'],_0x520582['end']),_0x520582['detach'](),_0x5ac9e1['model']['enqueueChange'](_0x3fa460['buffer']['batch'],_0x2f1e7c=>{_0x3fa460['buffer']['lock'](),_0x2f1e7c['setSelection'](_0x2f1e7c['createRange'](_0x530adc['end'])),_0x3fa460['buffer']['unlock']();});}),_0x5ac9e1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5ac9e1,'merge'),{'priority':'high'}),_0x5ac9e1['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x475acb,_0x39e54b,_0x5d98ba)=>{_0x5d98ba['options']['showSuggestionHighlights']&&_e(_0x5ac9e1,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x475acb,_0x39e54b,_0x5d98ba);},{'priority':'high'}),_0x5ac9e1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5dcf80,_0x46ca29,_0x52b15a)=>{const _0x9fe00f=_0x52b15a['mapper']['markerNameToElements'](_0x46ca29['markerName']);if(_0x9fe00f){for(const _0x473946 of _0x9fe00f)_0x473946['is']('uiElement')&&(_0x52b15a['mapper']['unbindElementFromMarkerName'](_0x473946,_0x46ca29['markerName']),_0x52b15a['writer']['remove'](_0x473946));}},{'priority':'high'});}}class z extends _0x11216f{['afterInit'](){const _0x10b057=this['editor'];if(!_0x10b057['plugins']['has']('ListEditing'))return;const _0x4eaae0=_0x10b057['locale'],_0x5ba9c5=_0x10b057['plugins']['get']('TrackChangesEditing'),_0x12d26f=_0x10b057['plugins']['has']('TodoListEditing'),_0x304c79=!!_0x10b057['config']['get']('list.multiBlock');function _0x1003c9(_0x468d0d){return{'type':'format','content':''+o(_0x4eaae0,'*Set\x20format:*\x20%0',_0x468d0d)};}function _0x3bc7e0(_0x332a14){return{'type':'format','content':''+o(_0x4eaae0,'*Remove\x20format:*\x20%0',_0x332a14)};}_0x5ba9c5['enableDefaultAttributesIntegration']('numberedList'),_0x5ba9c5['enableDefaultAttributesIntegration']('bulletedList'),_0x5ba9c5['enableDefaultAttributesIntegration']('customNumberedList'),_0x5ba9c5['enableDefaultAttributesIntegration']('customBulletedList'),_0x5ba9c5['enableDefaultAttributesIntegration']('indentList'),_0x5ba9c5['enableDefaultAttributesIntegration']('outdentList'),_0x5ba9c5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5ba9c5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5ba9c5['registerBlockAttribute']('listItemId'),_0x5ba9c5['registerBlockAttribute']('listType'),_0x5ba9c5['registerBlockAttribute']('listIndent'),_0x304c79&&(_0x5ba9c5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5ba9c5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x12d26f&&(_0x5ba9c5['enableDefaultAttributesIntegration']('todoList'),_0x5ba9c5['enableDefaultAttributesIntegration']('checkTodoList'),_0x5ba9c5['registerBlockAttribute']('todoListChecked'),_0x5ba9c5['descriptionFactory']['registerDescriptionCallback'](_0x4af2af=>{const {data:_0x2544d7}=_0x4af2af;if(_0x2544d7&&'todoListChecked'==_0x2544d7['key'])return{'type':'format','content':_0x2544d7['newValue']?o(_0x4eaae0,'*Check\x20item*'):o(_0x4eaae0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5e97e4=>{if(_0x5e97e4['batch']['isUndo'])return!0x1;let _0xa8cd71=!0x1;const _0x270a52=_0x5ba9c5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46f436=>'todoListChecked'===_0x5ba9c5['_getAttributeKey'](_0x46f436));for(const _0x4fb8cf of _0x270a52){'todo'!=_0x4fb8cf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5ba9c5['_findSuggestions'](_0x4fb8cf['getFirstRange'](),'attribute')['find'](_0x555faa=>'listType'===_0x5ba9c5['_getAttributeKey'](_0x555faa['suggestion']))||(_0x5e97e4['removeMarker'](_0x4fb8cf['getFirstMarker']()),_0xa8cd71=!0x0));}return _0xa8cd71;})),_0x5ba9c5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4eaae0,'FORMAT_INDENT'));const _0x4668ed={'type':'format','content':''};_0x5ba9c5['descriptionFactory']['registerDescriptionCallback'](_0x5b2c59=>{const {data:_0x4ffe4c}=_0x5b2c59;if(!_0x4ffe4c||'listType'!=_0x4ffe4c['key'])return;let _0x3cd099=_0x5b2c59['head'];for(;_0x3cd099;){if(_0x3cd099['data']&&(('listStyle'==_0x3cd099['data']['key']||'listMarkerStyle'==_0x3cd099['data']['key'])&&(_0x3cd099['data']['newValue']&&'default'!=_0x3cd099['data']['newValue']||'default'!=_0x3cd099['data']['oldValue']&&!_0x4ffe4c['newValue'])||!_0x304c79&&_0x3cd099['data']['key']==m))return _0x4668ed;_0x3cd099=_0x3cd099['next'];}if(null==_0x4ffe4c['newValue'])switch(_0x4ffe4c['oldValue']){case'bulleted':return _0x3bc7e0(o(_0x4eaae0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3bc7e0(o(_0x4eaae0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3bc7e0(o(_0x4eaae0,'ELEMENT_TODO_LIST'));}switch(_0x4ffe4c['newValue']){case'bulleted':return _0x1003c9(o(_0x4eaae0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1003c9(o(_0x4eaae0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1003c9(o(_0x4eaae0,'ELEMENT_TODO_LIST'));}}),_0x5ba9c5['descriptionFactory']['registerDescriptionCallback'](_0x4af54e=>{const {data:_0x41d751}=_0x4af54e;if(_0x41d751&&'listIndent'==_0x41d751['key'])return null==_0x41d751['newValue']||null==_0x41d751['oldValue']&&0x0==_0x41d751['newValue']?_0x4668ed:void 0x0;}),_0x5ba9c5['descriptionFactory']['registerDescriptionCallback'](_0x198f65=>{if('attribute'!=_0x198f65['type'])return;const {data:_0x269eaf}=_0x198f65;if(!_0x269eaf||'listItemId'!=_0x269eaf['key'])return;const _0x4da588=le(_0x198f65);return'newValue'==_0x4da588?{'type':'format','content':o(_0x4eaae0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4da588?{'type':'format','content':o(_0x4eaae0,'*Split:*\x20list\x20item')}:_0x4668ed;}),_0x10b057['model']['document']['registerPostFixer'](_0x5d2a01=>this['listItemIdFixer'](_0x5d2a01)),_0x10b057['model']['document']['registerPostFixer'](_0x577b9b=>this['noTrackChangesFixer'](_0x577b9b)),_0x10b057['model']['document']['registerPostFixer'](_0x5d4112=>this['assureChains'](_0x5d4112)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5158f3){if(_0x5158f3['batch']['isUndo']||!_0x5158f3['batch']['isLocal'])return!0x1;let _0x510a6a=!0x1;const _0x29ecb9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x217ade=>_0x217ade['data']&&'listItemId'==_0x217ade['data']['key'])['filter'](_0x3b82f8=>_0x3b82f8['data']['newValue']&&_0x3b82f8['data']['oldValue']);for(const _0x4d0436 of _0x29ecb9)le(_0x4d0436)||(_0x5158f3['removeMarker'](_0x4d0436['getFirstMarker']()),_0x510a6a=!0x0);return _0x510a6a;}['noTrackChangesFixer'](_0x53a661){if(_0x53a661['batch']['isUndo']||!_0x53a661['batch']['isLocal'])return!0x1;const _0x5a13a3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5a13a3['trackChangesCommand']['value'])return!0x1;let _0x4c04d2=!0x1;const _0x399f98=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x10e730=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5efe54=>'attribute'==_0x5efe54['type'])['filter'](_0x4bd835=>_0x399f98['includes'](_0x4bd835['attributeKey']));if(0x0==_0x10e730['length'])return _0x4c04d2;for(const _0x3057db of _0x10e730){const _0x3abe4b=_0x5a13a3['_findSuggestions'](_0x3057db['range'],'attribute')['filter'](_0x88f22c=>!_0x88f22c['meta']['isNextTo'])['map'](_0x2ad799=>_0x2ad799['suggestion'])['filter'](_0x5ac86e=>{const _0x563141=_0x5a13a3['_getAttributeKey'](_0x5ac86e);return _0x399f98['includes'](_0x563141);});if(_0x3abe4b['length']){for(const _0x41c171 of _0x3abe4b)_0x53a661['removeMarker'](_0x41c171['getFirstMarker']());_0x4c04d2=!0x0;}}return _0x4c04d2;}['assureChains'](_0x1579a1){if(_0x1579a1['batch']['isUndo']||!_0x1579a1['batch']['isLocal'])return!0x1;const _0x433ba1=this['editor']['plugins']['get']('TrackChangesEditing');let _0x5e834c=!0x1;const _0x597800=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0xd2326f of _0x433ba1['getSuggestions']({'skipNotAttached':!0x0})){const _0x321ff0=_0x433ba1['_findSuggestions'](_0xd2326f['getFirstRange'](),'attribute')['map'](_0x5c7fe5=>_0x5c7fe5['suggestion'])['filter'](_0x37a798=>_0x37a798['data']&&_0x597800['includes'](_0x37a798['data']['key']));if(!_0x321ff0['length'])continue;const _0x1ca306=_0x321ff0[0x0]['head']['attributes']['groupId'];if(!_0x321ff0['every'](_0x338890=>_0x338890['attributes']['groupId']===_0x1ca306)){for(const _0x4fac90 of _0x321ff0)_0x498f60(_0x4fac90,_0x1ca306)&&(_0x5e834c=!0x0);}}return _0x5e834c;function _0x400cf6(_0x2f15b7,_0x236097){for(const _0x16e21e of _0x433ba1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x573dd2=>'attribute'==_0x573dd2['type']&&_0x573dd2['attributes']['groupId']==_0x2f15b7))_0x16e21e['setAttribute']('groupId',_0x236097);}function _0x498f60(_0x14fb32,_0x6046d2){let _0x3a38f3=_0x14fb32['head'],_0x37fb60=!0x1;for(;_0x3a38f3;)_0x3a38f3['attributes']['groupId']!=_0x6046d2&&(_0x400cf6(_0x3a38f3['attributes']['groupId'],_0x6046d2),_0x3a38f3['setAttribute']('groupId',_0x6046d2),_0x37fb60=!0x0),_0x3a38f3=_0x3a38f3['next'];return _0x37fb60;}}['_supportLegacySuggestions'](){const _0x1b663c=this['editor'],_0x4d22a6=_0x1b663c['locale'],_0x2627e5=_0x1b663c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2627e5['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x574ad5,_0x36d2e5){const _0x35a629=[];for(let _0x37549d of _0x574ad5)_0x37549d['start']['nodeAfter']===_0x37549d['end']['parent']&&(_0x37549d=_0x1b663c['model']['createRange'](_0x1b663c['model']['createPositionAt'](_0x37549d['start']['nodeAfter'],0x0))),_0x35a629['push'](_0x37549d);_0x1b663c['model']['change'](_0xd73882=>{const _0xac1956=_0x1b663c['model']['document']['selection'],_0x28e5ee=Array['from'](_0xac1956['getRanges']())['map'](_0x4ba894=>_0x17267b['fromRange'](_0x4ba894));_0xd73882['setSelection'](_0x35a629),_0x1b663c['commands']['get'](_0x36d2e5['commandName'])['refresh'](),_0x36d2e5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1b663c['execute'](_0x36d2e5['commandName'],..._0x36d2e5['commandParams']),_0xd73882['setSelection'](_0x28e5ee);for(const _0x5e075e of _0x28e5ee)_0x5e075e['detach']();});}),_0x2627e5['descriptionFactory']['registerElementLabel'](function(_0x32b4cc){const _0x198e6e=!_0x1b663c['model']['schema']['isObject'](_0x32b4cc),_0x3cd303=_0x32b4cc['previousSibling'],_0x58e098=_0x32b4cc['nextSibling'],_0x33235a=_0x32b4cc['getAttribute']('listItemId'),_0x5f00ae=!_0x3cd303||_0x3cd303['getAttribute']('listItemId')!==_0x33235a,_0x1214d4=!_0x58e098||_0x58e098['getAttribute']('listItemId')!==_0x33235a;return _0x198e6e&&Boolean(_0x33235a)&&_0x5f00ae&&_0x1214d4;},_0x4ab97b=>o(_0x4d22a6,'ELEMENT_LIST_ITEM',_0x4ab97b));}['_registerLegacyDescription'](){const _0x5b5b05=this['editor'],_0x396b56=_0x5b5b05['locale'];function _0x1cdbec(_0x20da27){const _0x4df425=_0x5b5b05['commands']['get']('bulletedList')['value'],_0x164804=_0x5b5b05['commands']['get']('numberedList')['value'];return'numberedList'===_0x20da27?_0x4df425:_0x164804;}_0x5b5b05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4f8698){if('formatBlock'!=_0x4f8698['type'])return;const {data:_0x36abd3}=_0x4f8698;if(!_0x36abd3)return;let _0x1d848e,_0x22a743,_0x11cf89,_0x45ada7;switch(_0x36abd3['commandName']){case'bulletedList':_0x11cf89=_0x36abd3['commandParams'][0x0]['forceValue'],_0x45ada7=_0x1cdbec(_0x36abd3['commandName']),_0x1d848e=_0x11cf89?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x45ada7&&_0x5b5b05['config']['get']('list.multiBlock')||(_0x1d848e='*Change\x20to:*\x20%0'),_0x22a743={'type':'format','content':o(_0x396b56,_0x1d848e,o(_0x396b56,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x11cf89=_0x36abd3['commandParams'][0x0]['forceValue'],_0x45ada7=_0x1cdbec(_0x36abd3['commandName']),_0x1d848e=_0x11cf89?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x45ada7&&_0x5b5b05['config']['get']('list.multiBlock')||(_0x1d848e='*Change\x20to:*\x20%0'),_0x22a743={'type':'format','content':o(_0x396b56,_0x1d848e,o(_0x396b56,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1d848e='*Indent:*\x20%0',_0x22a743={'type':'format','content':o(_0x396b56,_0x1d848e,o(_0x396b56,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1d848e=function(_0x3d28e5){const _0x4ab6e7=_0x3d28e5['getFirstRange']();let _0x38919c=_0x4ab6e7['start']['nodeAfter'];for(;_0x38919c&&_0x4ab6e7['containsItem'](_0x38919c);){if(_0x38919c['getAttribute']('listIndent')>0x0)return!0x1;_0x38919c=_0x38919c['nextSibling'];}return!0x0;}(_0x4f8698)?o(_0x396b56,'*Format:*\x20remove\x20from\x20%0',o(_0x396b56,function(_0x350c6f){return'ELEMENT_'+_0x350c6f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4f8698))):o(_0x396b56,'*Outdent:*\x20%0',o(_0x396b56,'ELEMENT_LIST_ITEM')),_0x22a743={'type':'format','content':_0x1d848e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x36abd3['multipleBlocks']&&(_0x1d848e='*Merge:*\x20%0',_0x22a743={'type':'deletion','content':o(_0x396b56,_0x1d848e,o(_0x396b56,'ELEMENT_LIST_ITEM'))});}return _0x22a743;});}}function le(_0x5397d8){let _0x2c58e8=_0x5397d8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2c58e8;){const _0x430feb=_0x2c58e8['getAttribute']('listItemId');if(!_0x430feb)return!0x1;if(_0x430feb==_0x5397d8['data']['newValue'])return'newValue';if(_0x430feb==_0x5397d8['data']['oldValue'])return'oldValue';_0x2c58e8=_0x2c58e8['previousSibling'];}return!0x1;}class ue extends _0x11216f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x452038=this['editor']['config']['get']('list.properties'),_0x24f447=this['editor']['plugins']['get']('TrackChangesEditing');_0x452038['styles']&&(_0x24f447['enableDefaultAttributesIntegration']('listStyle'),_0x24f447['registerBlockAttribute']('listStyle')),_0x452038['reversed']&&(_0x24f447['enableDefaultAttributesIntegration']('listReversed'),_0x24f447['registerBlockAttribute']('listReversed')),_0x452038['startIndex']&&(_0x24f447['enableDefaultAttributesIntegration']('listStart'),_0x24f447['registerBlockAttribute']('listStart'));const _0x2962e1={'type':'format','content':''};_0x24f447['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xfc4218=this['editor']['locale'];_0x24f447['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xfc4218,'FORMAT_LIST_REVERSED')),_0x24f447['descriptionFactory']['registerDescriptionCallback'](_0x1c4a6e=>{const {data:_0x37673a}=_0x1c4a6e;if(_0x37673a&&'listReversed'==_0x37673a['key'])return null==_0x37673a['newValue']||0x0==_0x37673a['newValue']&&null==_0x37673a['oldValue']?_0x2962e1:void 0x0;}),_0x24f447['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xfc4218,'FORMAT_LIST_START')),_0x24f447['descriptionFactory']['registerDescriptionCallback'](_0x127d31=>{const {data:_0x44a47f}=_0x127d31;if(_0x44a47f&&'listStart'==_0x44a47f['key'])return null==_0x44a47f['newValue']||0x1==_0x44a47f['newValue']&&null==_0x44a47f['oldValue']?_0x2962e1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x164b54=>{if(_0x164b54['batch']['isUndo'])return!0x1;let _0x30ed6a=!0x1;const _0x565eeb=_0x24f447['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41be8f=>{const _0x28138c=_0x24f447['_getAttributeKey'](_0x41be8f);return'listStart'==_0x28138c||'listReversed'==_0x28138c;});for(const _0x116805 of _0x565eeb){const _0x492091=_0x116805['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x492091||'customNumbered'==_0x492091)continue;_0x24f447['_findSuggestions'](_0x116805['getFirstRange'](),'attribute')['find'](_0x20576d=>'listType'==_0x24f447['_getAttributeKey'](_0x20576d['suggestion']))||(_0x164b54['removeMarker'](_0x116805['getFirstMarker']()),_0x30ed6a=!0x0);}return _0x30ed6a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3a5d68){const _0xe57f96=this['editor']['locale'],{data:_0xa0134e}=_0x3a5d68,_0x392dd6={'type':'format','content':''};if(!_0xa0134e||'listStyle'!=_0xa0134e['key'])return;if(!_0xa0134e['oldValue'])return'default'==_0xa0134e['newValue']?_0x392dd6:{'type':'format','content':''+o(_0xe57f96,'*Set\x20format:*\x20%0',o(_0xe57f96,this['_getTranslationKeyForListStyle'](_0xa0134e['newValue'])))};if(!_0xa0134e['newValue']){if('default'==_0xa0134e['oldValue'])return _0x392dd6;let _0x2ad75d=_0x3a5d68['head'];for(;_0x2ad75d;){if(_0x2ad75d['data']&&'listType'==_0x2ad75d['data']['key']&&_0x2ad75d['data']['newValue'])return _0x392dd6;_0x2ad75d=_0x2ad75d['next'];}return{'type':'format','content':''+o(_0xe57f96,'*Remove\x20format:*\x20%0',o(_0xe57f96,this['_getTranslationKeyForListStyle'](_0xa0134e['oldValue'])))};}if('default'!=_0xa0134e['newValue'])return{'type':'format','content':''+o(_0xe57f96,'*Set\x20format:*\x20%0',o(_0xe57f96,this['_getTranslationKeyForListStyle'](_0xa0134e['newValue'])))};let _0x241c7b=_0x3a5d68['head'];for(;_0x241c7b;){if(_0x241c7b['data']&&'listType'==_0x241c7b['data']['key']&&_0x241c7b['data']['newValue']&&_0x241c7b['data']['oldValue'])return _0x392dd6;_0x241c7b=_0x241c7b['next'];}return{'type':'format','content':o(_0xe57f96,'*Set\x20format:*\x20%0',o(_0xe57f96,'ELEMENT_'+_0x3a5d68['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x327b81=this['editor'],_0x43ba64=_0x327b81['locale'];_0x327b81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f92=>{if('formatBlock'!=_0x2f92['type'])return;const {data:_0x71ee68}=_0x2f92;if(!_0x71ee68)return;let _0x284f3e,_0x5f192a;switch(_0x71ee68['commandName']){case'listStyle':_0x284f3e='*Change\x20to:*\x20%0',_0x5f192a={'type':'format','content':o(_0x43ba64,_0x284f3e,o(_0x43ba64,this['_getTranslationKeyForListStyle'](_0x71ee68['commandParams'][0x0]['type'])))};break;case'listReversed':_0x284f3e=_0x71ee68['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5f192a={'type':'format','content':o(_0x43ba64,_0x284f3e)};break;case'listStart':_0x284f3e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5f192a={'type':'format','content':o(_0x43ba64,_0x284f3e,_0x71ee68['commandParams'][0x0]['startIndex'])};}return _0x5f192a;});}['_getTranslationKeyForListStyle'](_0x1c7ce8){return'ELEMENT_'+function(_0x23e817){if(pe['includes'](_0x23e817))return'bulleted';if(ye['includes'](_0x23e817))return'numbered';return null;}(_0x1c7ce8)['toUpperCase']()+'_LIST_'+_0x1c7ce8['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x11216f{static get['requires'](){return[_0x282209];}['init'](){const _0x4ab667=this['editor'],_0x27eb6b=_0x4ab667['plugins']['get']('TrackChangesEditing'),_0xfc29e0=_0x4ab667['commands']['get']('enter');_0x27eb6b['enableCommand']('enter',()=>{_0x4ab667['model']['change'](_0x532eee=>{const _0x5142e4=_0x4ab667['model']['document']['selection'],_0x2d795b=_0x5142e4['getFirstPosition'](),_0x409c1a=_0x17267b['fromRange'](_0x5142e4['getFirstRange']());if(_0xfc29e0['enterBlock'](_0x532eee)){const _0x5e1092=_0x4ab667['model']['createPositionAt'](_0x2d795b['parent']['nextSibling'],0x0),_0x495d47=_0x532eee['createRange'](_0x2d795b,_0x5e1092);_0x27eb6b['markInsertion'](_0x495d47);}else _0x532eee['setSelection'](_0x532eee['createRange'](_0x409c1a['end']));_0x409c1a['detach'](),_0xfc29e0['fire']('afterExecute',{'writer':_0x532eee});});}),_0x4ab667['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4ab667,'split'),{'priority':'high'}),_0x4ab667['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x336542,_0x4ee2ac,_0x28aa8d)=>{const _0x3af241=_0x28aa8d['mapper']['markerNameToElements'](_0x4ee2ac['markerName']);if(_0x3af241){for(const _0x2d7f85 of _0x3af241)_0x2d7f85['hasClass']('ck-suggestion-marker-split')&&(_0x28aa8d['mapper']['unbindElementFromMarkerName'](_0x2d7f85,_0x4ee2ac['markerName']),_0x28aa8d['writer']['remove'](_0x2d7f85));}},{'priority':'high'}),_0x4ab667['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x505118,_0x1a21a9,_0x1720e7)=>{_0x1720e7['options']['showSuggestionHighlights']&&_e(_0x4ab667,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x505118,_0x1a21a9,_0x1720e7);},{'priority':'high'});}}class J extends _0x11216f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x8a47e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x8a47e4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x8a47e4['enableCommand']('findNext'),_0x8a47e4['enableCommand']('findPrevious'),_0x8a47e4['enableCommand']('replace'),_0x8a47e4['enableCommand']('replaceAll');}['handleFindCommand'](_0x3cbffb,_0x554e3a,_0x5aeeaa={}){const _0x2bc386=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3cbffb(_0x1beab8=>{let _0x2c9fa6=('string'==typeof _0x554e3a?_0x2bc386['findByTextCallback'](_0x554e3a,_0x5aeeaa):_0x554e3a)(_0x1beab8);Array['isArray'](_0x2c9fa6)&&(_0x2c9fa6={'results':_0x2c9fa6,'searchText':'string'==typeof _0x554e3a?_0x554e3a:''});const _0x1e2237=_0x2c9fa6['results']['filter'](_0x2cfb66=>!0x1===this['_isInDeletionRange'](_0x2cfb66,_0x1beab8['item']));return{..._0x2c9fa6,'results':_0x1e2237};},_0x5aeeaa);}['_isInDeletionRange'](_0x29133a,_0x2f43ed){const _0x48e941=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f43ed,_0x29133a['start']),this['editor']['model']['createPositionAt'](_0x2f43ed,_0x29133a['end']));for(const _0x5d3a55 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x48e941['getIntersection'](_0x5d3a55['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 _0x11216f{['afterInit'](){const _0x5110d1=this['editor']['locale'],_0x3405b4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x572e70,commandName:_0x3b5489}of ro)this['editor']['plugins']['has'](_0x572e70)&&(_0x3405b4['enableDefaultAttributesIntegration'](_0x3b5489),_0x3405b4['registerInlineAttribute'](_0x3b5489));_0x3405b4['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5110d1,'FORMAT_FONT_SIZE')),_0x3405b4['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5110d1,'FORMAT_FONT_FAMILY')),_0x3405b4['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5110d1,'FORMAT_FONT_COLOR')),_0x3405b4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5110d1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f47b6=this['editor'],_0x32dd8a=_0x5f47b6['locale'];_0x5f47b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1afa9f=>{const _0x19eeac=_0x32dd8a['t'];if('formatInline'!=_0x1afa9f['type'])return;const {data:_0x305ea1}=_0x1afa9f;if(null!=_0x305ea1){if('fontSize'==_0x305ea1['commandName']){const _0x1e4a91=_0x305ea1['commandParams'][0x0]['value'];if(_0x1e4a91){const _0x178a8f=_0x19eeac(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1179cb=>_0x1179cb['model']==_0x1e4a91)['title'])['toLowerCase']();return{'type':'format','content':o(_0x32dd8a,'*Set\x20font\x20size:*\x20%0',_0x178a8f)};}return{'type':'format','content':o(_0x32dd8a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x305ea1['commandName']){const _0x5d964e=_0x305ea1['commandParams'][0x0]['value'];return _0x5d964e?{'type':'format','content':o(_0x32dd8a,'*Set\x20font\x20family:*\x20%0',_0x5d964e)}:{'type':'format','content':o(_0x32dd8a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x305ea1['commandName']){const _0x58564a=_0x305ea1['commandParams'][0x0]['value'];if(_0x58564a){const _0x11734e=_0x18a7f4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4b1b65=>_0x4b1b65['model']==_0x58564a);let _0x49837c=_0x58564a,_0x4caf68='';return _0x11734e&&(_0x49837c=_0x11734e['label'],_0x4caf68=_0x19eeac(_0x49837c)['toLowerCase']()),{'type':'format','content':o(_0x32dd8a,'*Set\x20font\x20color:*\x20%0',_0x4caf68)['trim'](),'color':{'value':_0x58564a,'title':_0x4caf68||_0x49837c}};}return{'type':'format','content':o(_0x32dd8a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x305ea1['commandName']){const _0x130659=_0x305ea1['commandParams'][0x0]['value'];if(_0x130659){const _0x2bad6c=_0x18a7f4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1be735=>_0x1be735['model']==_0x130659);let _0x5f1096=_0x130659,_0x269139='';return _0x2bad6c&&(_0x5f1096=_0x2bad6c['label'],_0x269139=_0x19eeac(_0x5f1096)['toLowerCase']()),{'type':'format','content':o(_0x32dd8a,'*Set\x20font\x20background\x20color:*\x20%0',_0x269139)['trim'](),'color':{'value':_0x130659,'title':_0x269139||_0x5f1096}};}return{'type':'format','content':o(_0x32dd8a,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x11216f{['afterInit'](){const _0x2d8f4c=this['editor'],_0x53ce11=_0x2d8f4c['plugins']['get']('TrackChangesEditing'),_0x299d00=_0x2d8f4c['commands']['get']('copyFormat'),_0x50c844=_0x2d8f4c['commands']['get']('pasteFormat');_0x299d00&&_0x50c844&&(_0x53ce11['enableDefaultAttributesIntegration']('pasteFormat'),_0x53ce11['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1bdc43=this['editor'],_0x3c1b71=_0x1bdc43['locale'];_0x1bdc43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x461ada=>{if('formatBlock'!=_0x461ada['type']&&'formatInline'!=_0x461ada['type'])return;const {data:_0x1f3270}=_0x461ada;if(_0x1f3270&&'pasteFormat'===_0x1f3270['commandName']){const _0x7d43a5=[],_0x4975b9=_0x1f3270['commandParams'][0x0];for(const [_0x2e8246,_0x564a3f]of Object['entries'](_0x4975b9))_0x7d43a5['push'](so(_0x1bdc43,_0x2e8246,_0x564a3f));return _0x7d43a5['length']?{'type':'format','content':o(_0x3c1b71,'*Set\x20format\x20to:*\x20%0',_0x7d43a5['join'](',\x20'))}:{'type':'format','content':o(_0x3c1b71,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1abb05,_0x2ec4d3,_0x4ecbbb){const _0x4411a1=_0x1abb05['locale']['t'],_0x29cd32=_0x2ec4d3['split'](/(?=[A-Z])/)['join']('\x20'),_0x59861e=_0x4411a1(_0x29cd32['charAt'](0x0)['toUpperCase']()+_0x29cd32['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4ecbbb)return _0x59861e;if('fontColor'===_0x2ec4d3||'fontBackgroundColor'===_0x2ec4d3){const _0x55c204=_0x18a7f4(_0x1abb05['config']['get']('fontColor.colors'))['find'](_0xec4896=>_0xec4896['model']==_0x4ecbbb);return _0x59861e+'\x20('+(_0x55c204?_0x4411a1(_0x55c204['label'])['toLowerCase']():_0x4ecbbb)+')';}if('fontSize'===_0x2ec4d3&&isNaN(parseFloat(_0x4ecbbb))){const _0x4bf330=_0x1abb05['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1abb05['config']['get']('fontSize.options'))['find'](_0x3d3c55=>_0x3d3c55['model']==_0x4ecbbb);return _0x59861e+'\x20('+(_0x4bf330?_0x4411a1(_0x4bf330['title'])['toLowerCase']():_0x4ecbbb)+')';}return _0x59861e+'\x20('+_0x4ecbbb+')';}class Y extends _0x11216f{['_headingOptions'];['afterInit'](){const _0x1de6c7=this['editor'];if(!_0x1de6c7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1de6c7['config']['get']('heading.options');const _0x29b8ba=_0x1de6c7['locale'],_0x53f882=_0x1de6c7['plugins']['get']('TrackChangesEditing');_0x53f882['enableDefaultAttributesIntegration']('heading');for(const _0x4d5883 of this['_headingOptions'])'paragraph'!=_0x4d5883['model']&&_0x53f882['descriptionFactory']['registerElementLabel'](_0x4d5883['model'],_0x2c1df0=>{const _0x21d413=this['_getHeadingLevel'](_0x4d5883['model']);return null!==_0x21d413?_0x1b22a6(_0x2c1df0,_0x21d413):_0x187a99(_0x2c1df0,_0x4d5883['title']);});function _0x1b22a6(_0x44aba7,_0x6b3dcb){return o(_0x29b8ba,'ELEMENT_HEADING',[_0x44aba7,_0x6b3dcb]);}function _0x187a99(_0x4999b6,_0x1b19a5){return o(_0x29b8ba,'ELEMENT_HEADING_CUSTOM',[_0x4999b6,_0x1b19a5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34e62e=this['editor'],_0x5661a4=_0x34e62e['locale'];function _0x5e1bde(_0x2e95c0,_0x161517){return o(_0x5661a4,'ELEMENT_HEADING_CUSTOM',[_0x2e95c0,_0x161517]);}_0x34e62e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45e3bb=>{if('formatBlock'!=_0x45e3bb['type'])return;const {data:_0x42608d}=_0x45e3bb;if(_0x42608d&&'heading'==_0x42608d['commandName']){const _0x222e25=_0x42608d['commandParams'][0x0]['value'],_0x5a708a=this['_getHeadingLevel'](_0x222e25);if(null!==_0x5a708a)return{'type':'format','content':o(_0x5661a4,'*Change\x20to:*\x20%0',(_0x5d3030=0x1,_0x3b7d43=_0x5a708a,o(_0x5661a4,'ELEMENT_HEADING',[_0x5d3030,_0x3b7d43])))};const _0x187d37=this['_headingOptions']['find'](_0x401df1=>_0x401df1['model']===_0x222e25)['title'];return{'type':'format','content':o(_0x5661a4,'*Change\x20to:*\x20%0',_0x5e1bde(0x1,_0x187d37))};}var _0x5d3030,_0x3b7d43;});}['_getHeadingLevel'](_0x224ae7){const _0x3af080=_0x224ae7['match'](/^heading(\d+)/);if(_0x3af080)return _0x3af080[0x1];const _0x5924f8=this['_headingOptions']?.['find'](_0x5eb919=>_0x5eb919['model']==_0x224ae7);if(_0x5924f8&&_0x5924f8['view']){const _0x3e1699=_0x5924f8['view'],_0x28c438=(_0x3e1699['name']??_0x3e1699)['match'](/^h(\d+)/);if(_0x28c438)return _0x28c438[0x1];}return null;}}class Z extends _0x11216f{['afterInit'](){const _0x2834d7=this['editor'];if(!_0x2834d7['plugins']['has']('HighlightEditing'))return;const _0x80d3b1=_0x2834d7['plugins']['get']('TrackChangesEditing'),_0x2f310d=_0x2834d7['locale'];_0x80d3b1['enableDefaultAttributesIntegration']('highlight'),_0x80d3b1['registerInlineAttribute']('highlight'),_0x80d3b1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2f310d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ab65e=this['editor'],_0x5b9eff=_0x3ab65e['locale'];_0x3ab65e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e27c8=>{if('formatInline'!=_0x1e27c8['type'])return;const {data:_0x27d7bf}=_0x1e27c8;if(_0x27d7bf&&'highlight'==_0x27d7bf['commandName']){const _0x36756b=_0x5b9eff['t'],_0x459c52=_0x27d7bf['commandParams'][0x0]['value'];if(_0x459c52){const _0x513930=_0x3ab65e['config']['get']('highlight.options')['find'](_0x2cc5f5=>_0x2cc5f5['model']==_0x459c52),_0x5b74b7=_0x36756b(_0x513930['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b9eff,'*Set\x20highlight:*\x20%0',_0x5b74b7),'color':{'value':_0x513930['color'],'title':_0x513930['title']}};}return{'type':'format','content':o(_0x5b9eff,'*Remove\x20highlight*',o(_0x5b9eff,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x11216f{['afterInit'](){const _0x50cba4=this['editor'];if(!_0x50cba4['plugins']['has']('HorizontalLineEditing'))return;_0x50cba4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x52bf65=_0x50cba4['plugins']['get']('TrackChangesEditing'),_0x4f300b=_0x50cba4['locale'];_0x52bf65['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2a8aae=>o(_0x4f300b,'ELEMENT_HORIZONTAL_LINE',_0x2a8aae)),_0x50cba4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x20e5a4,{writer:_0x445c13,options:_0x385abe})=>{if(!_0x385abe['showSuggestionHighlights'])return null;const _0x5a9ad7=_0x445c13['createContainerElement']('div'),_0x242350=_0x445c13['createEmptyElement']('hr');return _0x445c13['addClass']('ck-horizontal-line',_0x5a9ad7),_0x445c13['insert'](_0x445c13['createPositionAt'](_0x5a9ad7,0x0),_0x242350),_0x5a9ad7;},'converterPriority':'high'});}}class et extends _0x11216f{['afterInit'](){const _0x39ca87=this['editor'];if(!_0x39ca87['plugins']['has']('HtmlEmbed'))return;const _0x505535=_0x39ca87['plugins']['get']('TrackChangesEditing'),_0x50262c=_0x39ca87['locale'];_0x505535['descriptionFactory']['registerElementLabel']('rawHtml',_0x328450=>o(_0x50262c,'ELEMENT_HTML_EMBED',_0x328450)),_0x505535['enableDefaultAttributesIntegration']('htmlEmbed'),_0x505535['registerBlockAttribute']('value'),_0x505535['descriptionFactory']['registerDescriptionCallback'](_0x1c411b=>{if('attribute'!=_0x1c411b['type'])return;const {data:_0x76b5a6}=_0x1c411b;if(_0x76b5a6&&'value'==_0x76b5a6['key']&&_0x1c411b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5afc91=o(_0x50262c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x50262c,'*Change\x20%0\x20content*',_0x5afc91)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d2cb6=this['editor'],_0x5ae7e8=_0x3d2cb6['locale'];_0x3d2cb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bc583=>{if('formatBlock'!=_0x4bc583['type'])return;const {data:_0x42f30a}=_0x4bc583;if(_0x42f30a&&'htmlEmbed'==_0x42f30a['commandName']){const _0x3ecb48=o(_0x5ae7e8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5ae7e8,'*Change\x20%0\x20content*',_0x3ecb48)};}});}}class it extends _0x11216f{['afterInit'](){const _0x5e1414=this['editor'];if(!_0x5e1414['plugins']['has']('ImageEditing'))return;const _0x50dac8=_0x5e1414['plugins']['get']('TrackChangesEditing'),_0x3873df=_0x5e1414['plugins']['get']('ImageUtils'),_0x3f0955=_0x5e1414['locale'];_0x50dac8['enableCommand']('insertImage'),_0x50dac8['descriptionFactory']['registerElementLabel']('imageBlock',_0x3e1d32=>o(_0x3f0955,'ELEMENT_IMAGE',_0x3e1d32)),_0x50dac8['descriptionFactory']['registerElementLabel']('imageInline',_0x4cbfe8=>o(_0x3f0955,'ELEMENT_INLINE_IMAGE',_0x4cbfe8)),_0x50dac8['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3f0955,'ELEMENT_CAPTION')),_0x5e1414['plugins']['has']('ImageUploadEditing')&&_0x50dac8['enableCommand']('uploadImage'),_0x5e1414['plugins']['has']('ImageBlockEditing')&&_0x5e1414['plugins']['has']('ImageInlineEditing')&&(_0x50dac8['enableCommand']('imageTypeInline',(_0x17da4f,_0x3fb280)=>{const _0x43b860=_0x3873df['getClosestSelectedImageElement'](_0x5e1414['model']['document']['selection']);_0x5e1414['model']['change'](()=>{_0x50dac8['markBlockFormat'](_0x43b860,{'commandName':'imageTypeInline','commandParams':[_0x3fb280]},[],'convertBlockImageToInline');});}),_0x50dac8['enableCommand']('imageTypeBlock',(_0x2b1706,_0x1a81a5)=>{_0x5e1414['model']['change'](_0x155fe0=>{let _0x23714a=_0x3873df['getClosestSelectedImageElement'](_0x5e1414['model']['document']['selection']),_0x5594dd=_0x155fe0['createRangeOn'](_0x23714a);const _0x593daa=_0x50dfc4['fromPosition'](_0x5594dd['start'],'toPrevious'),_0x2ad23b=_0x50dfc4['fromPosition'](_0x5594dd['end'],'toNext');_0x50dac8['forceDefaultExecution'](()=>_0x2b1706(_0x1a81a5)),_0x23714a=_0x3873df['getClosestSelectedImageElement'](_0x5e1414['model']['document']['selection']),_0x5594dd=_0x155fe0['createRangeOn'](_0x23714a);const _0x2999ff=_0x155fe0['createRange'](_0x593daa,_0x2ad23b);_0x593daa['detach'](),_0x2ad23b['detach'](),_0x50dac8['markBlockFormat'](_0x23714a,{'commandName':'imageTypeInline','commandParams':[_0x1a81a5]},[],'convertInlineImageToBlock'),_0x2999ff['start']['isBefore'](_0x5594dd['start'])&&_0x50dac8['markInsertion'](_0x155fe0['createRange'](_0x2999ff['start'],_0x5594dd['start']),'convertInlineImageToBlock'),_0x5594dd['end']['isBefore'](_0x2999ff['end'])&&_0x50dac8['markInsertion'](_0x155fe0['createRange'](_0x5594dd['end'],_0x2999ff['end']),'convertInlineImageToBlock');});}),_0x50dac8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x50dac8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x50dac8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x50dac8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x50dac8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x50dac8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x7d19f1])=>{const _0x17c6ff=_0x50dac8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x983329=_0x7d19f1['start'],_0xc5d192=_0x7d19f1['end'];const _0x513301=_0x5e1414['model']['schema']['getNearestSelectionRange'](_0x983329,'backward'),_0x540a4c=_0x5e1414['model']['schema']['getNearestSelectionRange'](_0xc5d192,'forward');_0x513301['isCollapsed']&&(_0x983329=_0x513301['start']),_0x540a4c['isCollapsed']&&(_0xc5d192=_0x540a4c['end']),_0x17c6ff([_0x5e1414['model']['createRange'](_0x983329,_0xc5d192)]);}),_0x50dac8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xc165df),_0x50dac8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xc165df)),_0x5e1414['plugins']['has']('ImageCaptionEditing')&&(_0x50dac8['enableCommand']('toggleImageCaption',(_0xa810cf,_0x20189a)=>{const _0xc15ebe=_0x5e1414['plugins']['get']('ImageCaptionUtils');let _0x2aded9=_0x3873df['getClosestSelectedImageElement'](_0x5e1414['model']['document']['selection']),_0x1481e0=_0xc15ebe['getCaptionFromImageModelElement'](_0x2aded9);_0x5e1414['model']['change'](()=>{if(_0x1481e0)return void _0x50dac8['markDeletion'](_0x5e1414['model']['createRangeOn'](_0x1481e0));const _0x37f7f2=_0x3873df['isBlockImage'](_0x2aded9);_0xa810cf(_0x20189a),_0x2aded9=_0x3873df['getClosestSelectedImageElement'](_0x5e1414['model']['document']['selection']),_0x1481e0=_0xc15ebe['getCaptionFromImageModelElement'](_0x2aded9),_0x50dac8['markInsertion'](_0x5e1414['model']['createRangeOn'](_0x1481e0),_0x37f7f2?null:'imageCaption');});}),_0x50dac8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xc165df));const _0xb1fdd0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1dc90f(_0x5c3c1b,_0x25e255){const _0x2f5d55=_0xb1fdd0['findIndex'](({type:_0x13f6af,subType:_0x27cdc7})=>_0x5c3c1b['type']==_0x13f6af&&_0x5c3c1b['subType']==_0x27cdc7),_0x46af3b=_0xb1fdd0['findIndex'](({type:_0x57f885,subType:_0x347995})=>_0x25e255['type']==_0x57f885&&_0x25e255['subType']==_0x347995);if(_0x2f5d55<0x0||_0x46af3b<0x0)return!0x1;const _0x4e2922=_0x5c3c1b['getFirstRange'](),_0x1f2f96=_0x25e255['getFirstRange']();if((0x0==_0x2f5d55||0x1==_0x2f5d55)&&0x2==_0x46af3b&&_0x4e2922['isIntersecting'](_0x1f2f96))return!0x0;if(0x2==_0x2f5d55&&0x3==_0x46af3b){const _0x28142e=_0x50dac8['_findSuggestions'](_0x4e2922,'insertion')['filter'](({suggestion:_0x4f9ee4,meta:_0x2665ed})=>_0x2665ed['isOwn']&&'convertInlineImageToBlock'==_0x4f9ee4['subType']);if(_0x28142e['length']>0x1&&_0x1f2f96['end']['isEqual'](_0x4e2922['start']))return!0x0;if(0x1==_0x28142e['length']&&(_0x4e2922['start']['isEqual'](_0x1f2f96['end'])||_0x4e2922['end']['isEqual'](_0x1f2f96['start'])))return!0x0;}if(0x3==_0x2f5d55&&0x3==_0x46af3b&&_0x4e2922['start']['isBefore'](_0x1f2f96['start'])){const _0x33685f=_0x4e2922['end']['nodeAfter'],_0x31b52d=_0x1f2f96['start']['nodeBefore'];return _0x3873df['isBlockImage'](_0x33685f)&&_0x33685f===_0x31b52d;}return!0x1;}function _0xc165df(_0xa930e9,_0x513c24){return _0x1dc90f(_0xa930e9,_0x513c24)?[_0xa930e9,_0x513c24]:_0x1dc90f(_0x513c24,_0xa930e9)?[_0x513c24,_0xa930e9]:null;}_0x5e1414['plugins']['has']('ImageResize')&&(_0x50dac8['enableDefaultAttributesIntegration']('resizeImage'),_0x50dac8['registerBlockAttribute']('resizedWidth'),_0x50dac8['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3f0955,'FORMAT_IMAGE_SIZE'))),_0x5e1414['plugins']['has']('ImageTextAlternativeEditing')&&(_0x50dac8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x50dac8['registerBlockAttribute']('alt')),_0x50dac8['descriptionFactory']['registerDescriptionCallback'](_0x1c9839=>{if(!!_0xb1fdd0['find'](({type:_0x20b894,subType:_0x5b9838})=>_0x1c9839['type']==_0x20b894&&_0x1c9839['subType']==_0x5b9838))return _0x1c9839['previous']?{}:void 0x0;}),_0x50dac8['descriptionFactory']['registerDescriptionCallback'](_0x46e396=>{if('insertion'==_0x46e396['type']||'deletion'==_0x46e396['type']){const _0x52980a=_0x46e396['getContainedElement']();if(_0x52980a&&_0x52980a['is']('element','caption'))return{'type':'insertion'==_0x46e396['type']?'addObject':'removeObject','element':_0x52980a,'quantity':0x1};}}),_0x50dac8['descriptionFactory']['registerDescriptionCallback'](_0x480a4a=>'formatBlock'==_0x480a4a['type']&&'convertInlineImageToBlock'==_0x480a4a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x480a4a['type']&&'convertBlockImageToInline'==_0x480a4a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x50dac8['descriptionFactory']['registerDescriptionCallback'](_0x2b541b=>{if('attribute'!=_0x2b541b['type'])return;const {data:_0x1442cf}=_0x2b541b;if(!_0x1442cf||'alt'!=_0x1442cf['key'])return;const _0x280565=_0x1442cf['newValue'];return _0x280565?{'type':'format','content':o(_0x3f0955,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x280565+'\x22')}:{'type':'format','content':o(_0x3f0955,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1be524=this['editor'],_0x1b7f4c=_0x1be524['locale'];_0x1be524['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57d7ad=>{if('formatBlock'!=_0x57d7ad['type']&&'formatInline'!=_0x57d7ad['type'])return;const {data:_0x21d120}=_0x57d7ad;if(_0x21d120){if('imageTextAlternative'==_0x21d120['commandName']){const _0x5be391=_0x21d120['commandParams'][0x0]['newValue'];return _0x5be391?{'type':'format','content':o(_0x1b7f4c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5be391+'\x22')}:{'type':'format','content':o(_0x1b7f4c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x21d120['commandName']){const _0x49df63=_0x21d120['commandParams'][0x0]['width'];return _0x49df63?{'type':'format','content':o(_0x1b7f4c,'*Set\x20image\x20width:*\x20%0',_0x49df63)}:{'type':'format','content':o(_0x1b7f4c,'*Reset\x20image\x20width*')};}}});}}class st extends _0x11216f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x52d704=this['editor']['locale'],_0x5d370e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d370e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5d370e['registerBlockAttribute']('src'),_0x5d370e['descriptionFactory']['registerDescriptionCallback'](_0x47d211=>{if('attribute'!=_0x47d211['type'])return;const {data:_0x4fe201}=_0x47d211;return _0x4fe201&&'src'==_0x4fe201['key']?_0x4fe201['newValue']&&_0x4fe201['oldValue']?{'type':'format','content':o(_0x52d704,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x36e60f=this['editor']['plugins']['get']('TrackChangesEditing');_0x36e60f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x36e60f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x36e60f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x36e60f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d6582=this['editor'],_0xd8517e=_0x2d6582['locale'];_0x2d6582['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x204448=>{if('formatBlock'!=_0x204448['type']&&'formatInline'!=_0x204448['type'])return;const {data:_0x273d3b}=_0x204448;if(!_0x273d3b||'replaceImageSource'!=_0x273d3b['commandName'])return;return{'type':'format','content':o(_0xd8517e,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x11216f{['afterInit'](){const _0x1019b2=this['editor'];if(!_0x1019b2['plugins']['has']('ImageStyleEditing'))return;const _0x5adabf=_0x1019b2['plugins']['get']('TrackChangesEditing'),_0x440e04=_0x1019b2['plugins']['get']('ImageUtils'),_0x5daf28={};_0x5adabf['enableCommand']('imageStyle',(_0x2fe4cf,_0x525781)=>{const _0x21e1f6=_0x1019b2['plugins']['get']('Users')['me'],_0x1e88da=_0x1019b2['commands']['get']('imageStyle');let _0x5924f4=_0x440e04['getClosestSelectedImageElement'](_0x1019b2['model']['document']['selection']),_0x201190=_0x1019b2['model']['createRangeOn'](_0x5924f4),_0x5889df=_0x1e88da['value'];if(_0x5889df==_0x525781['value'])return;const _0x55c413={'commandName':'imageStyle','commandParams':[_0x525781],'formatGroupId':_0x58019d()};_0x1019b2['model']['change'](()=>{if(_0x5adabf['getSuggestions']()['filter'](_0xc4389b=>_0xc4389b['isInContent']&&_0x21e1f6==_0xc4389b['author']&&('formatBlock'==_0xc4389b['type']||'formatInline'==_0xc4389b['type'])&&('imageStylePreApply'==_0xc4389b['subType']||'imageStylePostApply'==_0xc4389b['subType'])&&_0xc4389b['getFirstRange']()['isEqual'](_0x201190))['forEach'](_0x4b0cbc=>_0x5adabf['discardSuggestion'](_0x4b0cbc['head'])),_0x5924f4=_0x440e04['getClosestSelectedImageElement'](_0x1019b2['model']['document']['selection']),_0x201190=_0x1019b2['model']['createRangeOn'](_0x5924f4),_0x1e88da['refresh'](),_0x1019b2['commands']['get']('imageTypeInline')['refresh'](),_0x1019b2['commands']['get']('imageTypeBlock')['refresh'](),_0x5889df=_0x1e88da['value'],_0x5889df!=_0x525781['value'])return _0x440e04['isInlineImage'](_0x5924f4)&&_0x1e88da['shouldConvertImageType'](_0x525781['value'],_0x5924f4)?(_0x2fe4cf({..._0x525781,'setImageSizes':!0x1}),_0x5924f4=_0x440e04['getClosestSelectedImageElement'](_0x1019b2['model']['document']['selection']),void _0x5adabf['markBlockFormat'](_0x5924f4,{..._0x55c413,'commandReversedParams':[{'value':_0x5889df||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x440e04['isBlockImage'](_0x5924f4)?_0x5adabf['markBlockFormat'](_0x5924f4,_0x55c413,[],'imageStylePostApply'):_0x5adabf['markInlineFormat'](_0x201190,_0x55c413,'imageStylePostApply'));});});for(const _0x2fb4c7 of _0x1019b2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5daf28[_0x2fb4c7['name']]=_0x2fb4c7['title']['toLowerCase']();_0x5adabf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5adabf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5adabf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5adabf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4e4140])=>{_0x440e04['setImageNaturalSizeAttributes'](_0x4e4140['getContainedElement']());}),_0x5adabf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x9a1822,_0xaf3f94)=>{_0x5adabf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x9a1822,{'commandName':_0xaf3f94['commandName'],'commandParams':_0xaf3f94['commandReversedParams']});}),_0x5adabf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x38692c,_0x343156){if(_0x5ed246(_0x38692c,_0x343156))return[_0x38692c,_0x343156];if(_0x5ed246(_0x343156,_0x38692c))return[_0x343156,_0x38692c];return null;});const _0x1a089b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ed246(_0x1c8bdf,_0x27f7a8){const _0x3c630a=_0x1a089b['findIndex'](({type:_0x3a5cdc,subType:_0x3993ce})=>_0x1c8bdf['type']==_0x3a5cdc&&_0x1c8bdf['subType']==_0x3993ce),_0x1155e4=_0x1a089b['findIndex'](({type:_0x24bdb9,subType:_0x545375})=>_0x27f7a8['type']==_0x24bdb9&&_0x27f7a8['subType']==_0x545375);if(_0x3c630a<0x0||_0x1155e4<0x0)return!0x1;const _0xa1a66f=_0x1c8bdf['getFirstRange'](),_0x2099ff=_0x27f7a8['getFirstRange']();if((0x0==_0x3c630a||0x1==_0x3c630a)&&0x2==_0x1155e4&&_0xa1a66f['isIntersecting'](_0x2099ff))return!0x0;if(0x2==_0x3c630a&&0x3==_0x1155e4){const _0x52b38c=_0x5adabf['_findSuggestions'](_0xa1a66f,'insertion')['filter'](({suggestion:_0x28a952,meta:_0x1b336b})=>_0x1b336b['isOwn']&&'convertInlineImageToBlock'==_0x28a952['subType']);if(_0x52b38c['length']>0x1&&_0x2099ff['end']['isEqual'](_0xa1a66f['start']))return!0x0;if(0x1==_0x52b38c['length']&&(_0xa1a66f['start']['isEqual'](_0x2099ff['end'])||_0xa1a66f['end']['isEqual'](_0x2099ff['start'])))return!0x0;}if(0x3==_0x3c630a&&0x3==_0x1155e4&&_0xa1a66f['start']['isBefore'](_0x2099ff['start'])){const _0x3dd885=_0xa1a66f['end']['nodeAfter'],_0x2bdebd=_0x2099ff['start']['nodeBefore'];return _0x440e04['isBlockImage'](_0x3dd885)&&_0x3dd885===_0x2bdebd;}return!0x1;}_0x1019b2['model']['document']['registerPostFixer'](()=>{let _0x1ca74f=!0x1;const _0x55b0b9=Array['from'](_0x1019b2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1dc498,data:_0x55578b}of _0x55b0b9){const {group:_0x391816,type:_0x15fe3c,subType:_0x264218,id:_0x16dc42}=_0x5adabf['_splitMarkerName'](_0x1dc498);if('suggestion'==_0x391816&&_0x5adabf['hasSuggestion'](_0x16dc42)){if('formatBlock'==_0x15fe3c&&('imageStylePreApply'==_0x264218||'imageStylePostApply'==_0x264218)){const _0x48fb3f=_0x5adabf['getSuggestion'](_0x16dc42);if(_0x55578b['newRange']){const _0x3eb82e=_0x48fb3f['getFirstRange']()['getContainedElement']();if(_0x440e04['isBlockImage'](_0x3eb82e))continue;_0x5adabf['discardSuggestion'](_0x48fb3f),_0x1ca74f=!0x0;}}if('insertion'==_0x15fe3c&&'imageCaption'==_0x264218&&!_0x55578b['newRange']){const _0x123d90=_0x5adabf['getSuggestion'](_0x16dc42);_0x123d90['next']&&_0x123d90['next']['isInContent']&&(_0x5adabf['discardSuggestion'](_0x123d90['next']),_0x1ca74f=!0x0);}}}return _0x1ca74f;}),this['_registerLegacyDescription'](_0x5daf28);}['_registerLegacyDescription'](_0x5b2790){const _0x17eb80=this['editor'],_0x490a99=_0x17eb80['locale'];_0x17eb80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f5eae=>{if('formatBlock'!=_0x2f5eae['type']&&'formatInline'!=_0x2f5eae['type'])return;const {data:_0x3f3429}=_0x2f5eae;if(!_0x3f3429||'imageStyle'!=_0x3f3429['commandName'])return;const _0x1910a2=_0x3f3429['commandParams'][0x0]['value'];return _0x18917b('side'===_0x1910a2?o(_0x490a99,'FORMAT_SIDE_IMAGE'):_0x5b2790[_0x1910a2]||_0x1910a2);function _0x18917b(_0xd371b6){return{'type':'format','content':o(_0x490a99,'*Format:*\x20%0',_0xd371b6)};}});}}class ot extends _0x11216f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x25f0bc){super(_0x25f0bc),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x25bc0d=this['editor'],_0x19d497=_0x25bc0d['commands']['get']('importWord'),_0x45b880=_0x25bc0d['commands']['get']('trackChanges');_0x19d497&&(_0x19d497['on']('execute',(_0x4fc4f2,[,_0x454f94])=>{this['_trackChangesValueDuringImport']=_0x45b880['value'],_0x454f94['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x19d497,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x19d497,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x45b880['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x25bc0d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2777f3,_0x2df5d3){const {suggestions:_0x191901}=_0x2df5d3,_0x3d4da4=this['editor']['commands']['get']('trackChanges'),_0x1f98b5=_0x3d4da4['value'];this['_trackChangesValueDuringImport']!==_0x1f98b5&&(_0x3d4da4['execute'](),this['_trackChangesExecuted']=!0x0),_0x191901&&_0x191901['forEach'](({id:_0x28a20f,type:_0xe5381d,author:_0x443210,created_at:_0x2ec061})=>{const _0xf52c3={'id':_0x28a20f,'type':_0xe5381d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x443210,'createdAt':_0x2ec061?new Date(_0x2ec061):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xf52c3);});}}class rt extends _0x11216f{['afterInit'](){const _0x31cd4e=this['editor'],_0x46c172=_0x31cd4e['plugins']['get']('TrackChangesEditing');if(_0x31cd4e['plugins']['has']('IndentEditing')&&(_0x46c172['enableCommand']('indent'),_0x46c172['enableCommand']('outdent')),_0x31cd4e['plugins']['has']('IndentBlock')){for(const _0x51843c of['indentBlock','outdentBlock'])_0x46c172['enableDefaultAttributesIntegration'](_0x51843c);}const _0x27a9bd=_0x31cd4e['locale'];_0x46c172['registerBlockAttribute']('blockIndent'),_0x46c172['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x27a9bd,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49f20f=this['editor'],_0x5a96ef=_0x49f20f['locale'],_0x35ddcb=_0x49f20f['plugins']['get']('TrackChangesEditing');_0x35ddcb['descriptionFactory']['registerDescriptionCallback'](_0x163dd1=>{if('formatBlock'!=_0x163dd1['type'])return;const {data:_0x273405}=_0x163dd1;if(!_0x273405)return;if('indentBlock'!=_0x273405['commandName']&&'outdentBlock'!=_0x273405['commandName'])return;const _0x54afd4=_0x163dd1['getItems']()[0x0],_0x1242ee=_0x35ddcb['descriptionFactory']['getItemLabel'](_0x54afd4);return'indentBlock'==_0x273405['commandName']?{'type':'format','content':o(_0x5a96ef,'*Indent:*\x20%0',_0x1242ee)}:'outdentBlock'==_0x273405['commandName']?{'type':'format','content':o(_0x5a96ef,'*Outdent:*\x20%0',_0x1242ee)}:void 0x0;});}}class at extends _0x11216f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x11216f{['afterInit'](){const _0x2dc7b9=this['editor'];if(!_0x2dc7b9['plugins']['has']('LinkEditing'))return;const _0x19d16e=_0x2dc7b9['plugins']['get']('TrackChangesEditing'),_0x4ae934=_0x2dc7b9['commands']['get']('link');_0x19d16e['enableDefaultAttributesIntegration']('link'),_0x19d16e['enableDefaultAttributesIntegration']('unlink'),_0x19d16e['registerInlineAttribute']('linkHref');for(const _0x3d39d6 of _0x4ae934['manualDecorators'])_0x19d16e['registerInlineAttribute'](_0x3d39d6['id']),_0x19d16e['descriptionFactory']['registerAttributeLabel'](_0x3d39d6['id'],'link\x20('+_0x3d39d6['label']['toLowerCase']()+')');_0x19d16e['descriptionFactory']['registerDescriptionCallback'](_0x20a364=>{if('attribute'!=_0x20a364['type'])return;const {data:_0x23532d}=_0x20a364;if(!_0x23532d||'linkHref'!=_0x23532d['key'])return;const _0x418cca=_0x23532d['newValue'],_0x3e6c96=_0x2dc7b9['locale'];return{'type':'format','content':null==_0x418cca?o(_0x3e6c96,'*Remove\x20link*'):o(_0x3e6c96,'*Set\x20link:*\x20%0','\x22'+_0x418cca+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4eeb93=this['editor'],_0x45a20a=_0x4eeb93['locale'];_0x4eeb93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x72626e=>{if('formatInline'!=_0x72626e['type'])return;const {data:_0x18321b}=_0x72626e;if(_0x18321b){if('link'==_0x18321b['commandName']){const _0x196fd7=_0x18321b['commandParams'][0x0];return{'type':'format','content':o(_0x45a20a,'*Set\x20link:*\x20%0','\x22'+_0x196fd7+'\x22')};}return'unlink'==_0x18321b['commandName']?{'type':'format','content':o(_0x45a20a,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x11216f{['afterInit'](){const _0x5c3d3d=this['editor'],_0x5118ad=_0x5c3d3d['locale'];if(!_0x5c3d3d['plugins']['has']('LegacyListEditing'))return;const _0x1fbee6=_0x5c3d3d['plugins']['get']('TrackChangesEditing'),_0x1a3b3a=_0x5c3d3d['plugins']['has']('LegacyTodoListEditing');function _0x3199a4(_0x897698){return()=>{const _0x4f429e=_0x5c3d3d['model']['document']['selection'],_0x479373=_0x5c3d3d['commands']['get'](_0x897698);if(_0x479373['value'])return void _0x5c3d3d['execute']('paragraph',{});const _0x5498ab=_0x897698['slice'](0x0,-0x4),_0x1639fd=function(_0x2e5976,_0x3f2ddf,_0x227747){let _0x4601b0=Array['from'](_0x2e5976)['filter'](_0x4572be=>function(_0x21cb1e,_0x2e1d8c){return _0x2e1d8c['checkChild'](_0x21cb1e['parent'],'listItem')&&!_0x2e1d8c['isObject'](_0x21cb1e);}(_0x4572be,_0x227747));_0x4601b0=_0x4601b0['filter'](_0x38a6c7=>!_0x38a6c7['is']('element','listItem')||_0x38a6c7['getAttribute']('listType')!=_0x3f2ddf);const _0x27a471=new Set();for(const _0x173603 of _0x4601b0)_0x173603['is']('element','listItem')?_0x27a471['add'](me(_0x173603)):_0x27a471['add'](_0x173603);return Array['from'](_0x27a471);}(_0x4f429e['getSelectedBlocks'](),_0x5498ab,_0x5c3d3d['model']['schema']);_0x5c3d3d['model']['change'](()=>{for(const _0x41c92c of _0x1639fd)_0x1fbee6['markBlockFormat'](_0x41c92c,{'commandName':_0x897698,'commandParams':[{'forceValue':!_0x479373['value']}],'formatGroupId':'blockName'},fe(_0x41c92c));});};}function _0x99d9fe(_0x49db13){return()=>{const _0xac95b7=function(_0x94d9f0){let _0x2dd3f6=Array['from'](_0x94d9f0);const _0x5e2447=_0x2dd3f6['findIndex'](_0x106d43=>'listItem'!=_0x106d43['name']);return _0x5e2447>-0x1&&(_0x2dd3f6=_0x2dd3f6['slice'](0x0,_0x5e2447)),_0x2dd3f6;}(_0x5c3d3d['model']['document']['selection']['getSelectedBlocks']()),_0x2ffe91=_0x5c3d3d['model']['createRange'](_0x5c3d3d['model']['createPositionAt'](_0xac95b7[0x0],'before'),_0x5c3d3d['model']['createPositionAt'](_0xac95b7[_0xac95b7['length']-0x1],'end'));_0x5c3d3d['model']['change'](()=>{_0x1fbee6['markBlockFormat'](_0x2ffe91,{'commandName':_0x49db13,'commandParams':[],'formatGroupId':'listIndent'},function(_0x540145){const _0x2bdfe2=new Set();for(const _0x7a4bb0 of _0x540145){let _0x811519=_0x7a4bb0['nextSibling'];for(;_0x811519&&_0x811519['getAttribute']('listIndent')>_0x7a4bb0['getAttribute']('listIndent');)_0x2bdfe2['add'](_0x811519),_0x811519=_0x811519['nextSibling'];}return Array['from'](_0x2bdfe2);}(_0xac95b7));});};}_0x1fbee6['enableCommand']('numberedList',_0x3199a4('numberedList')),_0x1fbee6['enableCommand']('bulletedList',_0x3199a4('bulletedList')),_0x1a3b3a&&_0x1fbee6['enableCommand']('todoList',_0x3199a4('todoList')),_0x1fbee6['enableCommand']('indentList',_0x99d9fe('indentList')),_0x1fbee6['enableCommand']('outdentList',_0x99d9fe('outdentList')),_0x1a3b3a&&_0x1fbee6['enableCommand']('checkTodoList',()=>{const _0x57223c=_0x5c3d3d['commands']['get']('checkTodoList'),_0x262f03=Array['from'](_0x57223c['_selectedElements']);_0x262f03['filter'](_0x3ae08e=>_0x3ae08e['getAttribute']('todoListChecked')!=_0x57223c['value']),_0x5c3d3d['model']['change'](()=>{for(const _0x49a73d of _0x262f03)_0x1fbee6['markBlockFormat'](_0x49a73d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x57223c['value']}]});});}),_0x1fbee6['descriptionFactory']['registerElementLabel']('listItem',_0x44a3e7=>o(_0x5118ad,'ELEMENT_LIST_ITEM',_0x44a3e7)),_0x1fbee6['descriptionFactory']['registerDescriptionCallback'](_0x5b56d1=>{if('formatBlock'!=_0x5b56d1['type']&&'formatInline'!=_0x5b56d1['type'])return;const {data:_0x2b33c9}=_0x5b56d1;if(_0x2b33c9){if('numberedList'==_0x2b33c9['commandName']||'bulletedList'==_0x2b33c9['commandName']||'todoList'==_0x2b33c9['commandName'])switch(_0x2b33c9['commandName']['replace']('List','')){case'bulleted':return _0x3a2390(o(_0x5118ad,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a2390(o(_0x5118ad,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a2390(o(_0x5118ad,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2b33c9['commandName'])return{'type':'format','content':o(_0x5118ad,'*Indent:*\x20%0',o(_0x5118ad,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2b33c9['commandName'])return{'type':'format','content':o(_0x5118ad,'*Outdent:*\x20%0',o(_0x5118ad,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2b33c9['commandName'])return _0x2b33c9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5118ad,'*Check\x20item*')}:{'type':'format','content':o(_0x5118ad,'*Uncheck\x20item*')};}function _0x3a2390(_0x51c764){return{'type':'format','content':o(_0x5118ad,'*Change\x20to:*\x20%0',_0x51c764)};}});}}function me(_0x2e3a92){const _0x3294c0=_0x2e3a92['getAttribute']('listIndent');if(0x0==_0x3294c0)return _0x2e3a92;let _0x5d8728=_0x2e3a92;for(;_0x2e3a92['previousSibling']&&_0x2e3a92['previousSibling']['is']('element','listItem');){const _0x58a8ba=_0x2e3a92['previousSibling']['getAttribute']('listIndent');if(_0x58a8ba==_0x3294c0)_0x5d8728=_0x2e3a92['previousSibling'];else{if(_0x58a8ba<_0x3294c0)break;}_0x2e3a92=_0x2e3a92['previousSibling'];}return _0x5d8728;}function fe(_0xd7783c){const _0x3eb8e7=[];if(_0xd7783c['is']('element','listItem')&&_0xd7783c['getAttribute']('listIndent')>0x0){let _0x113872=_0xd7783c['nextSibling'];for(;_0x113872&&'listItem'==_0x113872['name']&&_0x113872['getAttribute']('listIndent')==_0xd7783c['getAttribute']('listIndent');)_0x3eb8e7['push'](_0x113872),_0x113872=_0x113872['nextSibling'];}return _0x3eb8e7;}class K extends _0x11216f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x33eb09=this['editor']['config']['get']('list.properties'),_0x1be297=this['editor']['plugins']['get']('TrackChangesEditing');_0x33eb09['styles']&&_0x1be297['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x33eb09['reversed']&&_0x1be297['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x33eb09['startIndex']&&_0x1be297['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1be297['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2464aa,_0x58aef8={}){const _0x20d786=this['editor']['plugins']['get']('TrackChangesEditing'),_0x70ea10=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x20d786['markMultiRangeBlockFormat'](_0x70ea10,{'commandName':'listStyle','commandParams':[{'type':_0x58aef8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4337b8,_0x441268={}){const _0x2a257d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d8858=this['_getSuggestionBlocks'](_0xe40f1b=>_0xe40f1b['is']('element','listItem')&&'numbered'===_0xe40f1b['getAttribute']('listType'));if(_0x4d8858['length']<0x1)return;const _0x54825c=_0x4d8858['map'](_0x5086d0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5086d0,'before'),this['editor']['model']['createPositionAt'](_0x5086d0,0x0)));this['editor']['model']['change'](()=>{_0x2a257d['markMultiRangeBlockFormat'](_0x54825c,{'commandName':'listReversed','commandParams':[{'reversed':_0x441268['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x98f202,_0x25f955={}){const _0x2ea43e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ce26f=this['_getSuggestionBlocks'](_0x389951=>_0x389951['is']('element','listItem')&&'numbered'===_0x389951['getAttribute']('listType'));if(_0x3ce26f['length']<0x1)return;const _0x169c1e=_0x3ce26f['map'](_0x33c218=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33c218,'before'),this['editor']['model']['createPositionAt'](_0x33c218,0x0)));this['editor']['model']['change'](()=>{_0x2ea43e['markMultiRangeBlockFormat'](_0x169c1e,{'commandName':'listStart','commandParams':[{'startIndex':_0x25f955['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x145acc){if('formatBlock'!=_0x145acc['type']&&'formatInline'!=_0x145acc['type'])return;const _0x3588d8=this['editor']['locale'],{data:_0x3a25c3}=_0x145acc;if(!_0x3a25c3)return;let _0x15840f,_0x3464cb;switch(_0x3a25c3['commandName']){case'listStyle':_0x15840f='*Change\x20to:*\x20%0',_0x3464cb={'type':'format','content':o(_0x3588d8,_0x15840f,o(_0x3588d8,this['_getTranslationKeyForListStyle'](_0x3a25c3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x15840f=_0x3a25c3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3464cb={'type':'format','content':o(_0x3588d8,_0x15840f)};break;case'listStart':_0x15840f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3464cb={'type':'format','content':o(_0x3588d8,_0x15840f,_0x3a25c3['commandParams'][0x0]['startIndex'])};}return _0x3464cb;}['_getSuggestionBlocksForListStyle'](){const _0x5c434e=this['editor']['plugins']['get']('LegacyListUtils');let _0x2e8630=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2e8630[0x0]?.['is']('element','listItem')&&_0x2e8630['unshift'](..._0x5c434e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2e8630[_0x2e8630['length']-0x1]?.['is']('element','listItem')&&_0x2e8630['push'](..._0x5c434e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2e8630=[...new Set(_0x2e8630)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2e8630=_0x2e8630['filter'](_0x5d7a43=>_0x5d7a43['is']('element','listItem'))),_0x2e8630;}['_getSuggestionBlocks'](_0x3890f2){const _0x34c14a=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ad1ed=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3890f2)['map'](_0x82291b=>{const _0x2cd6ca=this['editor']['model']['createPositionAt'](_0x82291b,0x0);return[..._0x34c14a['getSiblingNodes'](_0x2cd6ca,'backward'),..._0x34c14a['getSiblingNodes'](_0x2cd6ca,'forward')];})['flat']();return _0x4ad1ed=[...new Set(_0x4ad1ed)],_0x4ad1ed;}['_getTranslationKeyForListStyle'](_0x8043b0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x8043b0)||'default')['toUpperCase']()+'_LIST_'+_0x8043b0['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x11216f{['afterInit'](){const _0x20b277=this['editor'];if(!_0x20b277['plugins']['has']('MediaEmbedEditing'))return;const _0x5dec4f=_0x20b277['plugins']['get']('TrackChangesEditing'),_0x9c62aa=_0x20b277['locale'];_0x5dec4f['enableCommand']('mediaEmbed'),_0x5dec4f['descriptionFactory']['registerElementLabel']('media',_0x16b0c3=>o(_0x9c62aa,'ELEMENT_MEDIA',_0x16b0c3)),_0x20b277['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x551582,{writer:_0x3caa2f,options:_0x4b055b})=>{if(_0x4b055b['showSuggestionHighlights'])return _0x3caa2f['createEmptyElement']('div');},'converterPriority':'high'}),_0x20b277['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3a49f7,_0xbdf388,_0x369b5e)=>{_0x369b5e['options']['showSuggestionHighlights']&&_0x3a49f7['stop']();},{'priority':'high'});}}class gt extends _0x11216f{['afterInit'](){const _0x138497=this['editor'];_0x138497['plugins']['has']('MentionEditing')&&_0x138497['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x11216f{['afterInit'](){const _0x57600f=this['editor'],_0x3526a4=_0x57600f['plugins']['get']('TrackChangesEditing');_0x57600f['plugins']['has']('MultiLevelList')&&(_0x3526a4['enableDefaultAttributesIntegration']('multiLevelList'),_0x3526a4['registerBlockAttribute']('listMarkerStyle'),_0x3526a4['descriptionFactory']['registerDescriptionCallback'](_0x3320a6=>this['handleDescriptions'](_0x3320a6)));}['handleDescriptions'](_0x102939){const _0x32398c=this['editor']['locale'],{data:_0x211cb4}=_0x102939,_0x31ec4a={'type':'format','content':''};if(_0x211cb4&&'listMarkerStyle'==_0x211cb4['key']){if(!_0x211cb4['oldValue'])return{'type':'format','content':o(_0x32398c,'*Set\x20format:*\x20%0',o(_0x32398c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x211cb4['newValue']+')'};if(!_0x211cb4['newValue']){let _0x245441=_0x102939['head'];for(;_0x245441;){if(_0x245441['data']&&'listType'==_0x245441['data']['key']&&_0x245441['data']['newValue'])return _0x31ec4a;_0x245441=_0x245441['next'];}return{'type':'format','content':o(_0x32398c,'*Remove\x20format:*\x20%0',o(_0x32398c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x211cb4['oldValue']+')'};}}}}class mt extends _0x11216f{['afterInit'](){const _0x43a6bc=this['editor'];if(!_0x43a6bc['plugins']['has']('PageBreakEditing'))return;_0x43a6bc['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x9e7351=_0x43a6bc['plugins']['get']('TrackChangesEditing'),_0x2c8849=_0x43a6bc['locale'];_0x9e7351['descriptionFactory']['registerElementLabel']('pageBreak',_0x1e54ac=>o(_0x2c8849,'ELEMENT_PAGE_BREAK',_0x1e54ac));}}class dt extends _0x11216f{['afterInit'](){const _0x5e048b=this['editor'];if(!_0x5e048b['plugins']['has']('Paragraph'))return;const _0x39e187=_0x5e048b['locale'],_0x5f0ab4=_0x5e048b['plugins']['get']('TrackChangesEditing');_0x5f0ab4['descriptionFactory']['registerElementLabel']('paragraph',_0x4a28ad=>o(_0x39e187,'ELEMENT_PARAGRAPH',_0x4a28ad)),_0x5f0ab4['enableDefaultAttributesIntegration']('paragraph'),_0x5f0ab4['enableCommand']('insertParagraph'),_0x5e048b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5e048b),{'priority':'highest'}),_0x5e048b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4f988b,_0x270e39,_0x17986b)=>{_0x17986b['options']['showSuggestionHighlights']&&nr(_0x5e048b,{'showActiveMarker':!0x1})(_0x4f988b,_0x270e39,_0x17986b);},{'priority':'highest'});const _0x19c513=_0x5f0ab4['descriptionFactory'];_0x19c513['registerDescriptionCallback'](_0xc0e862=>{if('insertion'!==_0xc0e862['type'])return;const {start:_0x50acb7,end:_0x40199a}=_0xc0e862['getFirstRange']();if(!_0x50acb7['isTouching'](_0x40199a)||!_0x50acb7['nodeAfter'])return;const _0x56cfbd=_0x5e048b['model']['schema'],_0x5f1f21=_0x50acb7['nodeAfter'];return _0x56cfbd['isBlock'](_0x5f1f21)&&!_0x56cfbd['isLimit'](_0x5f1f21)&&_0x56cfbd['checkChild'](_0x5f1f21,'$text')?{'type':'insertion','content':o(_0x39e187,'*Insert:*\x20%0',_0x19c513['getItemLabel'](_0x5f1f21,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3312a6=this['editor'],_0x205efb=_0x3312a6['locale'];_0x3312a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c38e5=>{if('formatBlock'!=_0x3c38e5['type'])return;const {data:_0x113e21}=_0x3c38e5;return _0x113e21&&'paragraph'==_0x113e21['commandName']?{'type':'format','content':o(_0x205efb,'*Change\x20to:*\x20%0',o(_0x205efb,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x254da4,{showActiveMarker:_0x23002f=!0x0}={}){return(_0x5983e4,_0x5f4d34,_0x1e2d43)=>{const _0x1d5244=_0x254da4['plugins']['get']('TrackChangesEditing'),_0x4f88b1=_0x5f4d34['markerRange']['start'],_0x4007dc=_0x5f4d34['markerRange']['end'],_0x1a5712=_0x254da4['model']['schema'];if(!_0x4f88b1['isTouching'](_0x4007dc)||!_0x4f88b1['nodeAfter'])return;const _0x1f3c35=_0x4f88b1['nodeAfter'];if(_0x1a5712['isBlock'](_0x1f3c35)&&!_0x1a5712['isLimit'](_0x1f3c35)&&_0x1a5712['checkChild'](_0x1f3c35,'$text')){if(!_0x1e2d43['consumable']['consume'](_0x5f4d34['markerRange'],_0x5983e4['name']))return;const _0x22284b=_0x1e2d43['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x522069=_0x1e2d43['mapper']['toViewPosition'](_0x4007dc);_0x23002f&&_0x1d5244['activeMarkers']['includes'](_0x5f4d34['markerName'])&&_0x1e2d43['writer']['addClass']('ck-suggestion-marker--active',_0x22284b),_0x1e2d43['writer']['insert'](_0x522069,_0x22284b),_0x1e2d43['mapper']['bindElementToMarker'](_0x22284b,_0x5f4d34['markerName']);}};}class pt extends _0x11216f{['afterInit'](){const _0x34590a=this['editor'];if(!_0x34590a['plugins']['has']('RemoveFormatEditing'))return;_0x34590a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x364eaf=this['editor'];_0x364eaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x464a33=>{if('formatBlock'!=_0x464a33['type']&&'formatInline'!=_0x464a33['type'])return;const {data:_0x1b1022}=_0x464a33;return _0x1b1022&&'removeFormat'==_0x1b1022['commandName']?{'type':'format','content':o(_0x364eaf['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x11216f{['afterInit'](){const _0x213149=this['editor'];if(!_0x213149['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x27eba9=_0x213149['plugins']['get']('TrackChangesEditing');_0x27eba9['enableCommand']('goToPreviousRestrictedEditingException'),_0x27eba9['enableCommand']('goToNextRestrictedEditingException');const _0x2ddf68=_0x213149['plugins']['get']('RestrictedEditingModeEditing');_0x2ddf68['enableCommand']('trackChanges'),_0x2ddf68['enableCommand']('acceptSuggestion'),_0x2ddf68['enableCommand']('discardSuggestion'),_0x2ddf68['enableCommand']('acceptAllSuggestions'),_0x2ddf68['enableCommand']('discardAllSuggestions'),_0x2ddf68['enableCommand']('acceptSelectedSuggestions'),_0x2ddf68['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x11216f{static get['requires'](){return[_0x47d294];}['init'](){const _0x1f42de=this['editor'],_0x446b0a=_0x1f42de['plugins']['get']('TrackChangesEditing');_0x446b0a['enableCommand']('shiftEnter'),_0x1f42de['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1f42de),{'priority':'high'}),_0x1f42de['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1f42de),{'priority':'high'}),_0x1f42de['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x10cdef,_0x45e7c4,_0x423ace)=>{_0x423ace['options']['showSuggestionHighlights']&&de(_0x1f42de,{'showActiveMarker':!0x1})(_0x10cdef,_0x45e7c4,_0x423ace);}),_0x446b0a['descriptionFactory']['registerElementLabel']('softBreak',_0x4794f1=>o(_0x1f42de['locale'],'ELEMENT_LINE_BREAK',_0x4794f1));}}function de(_0x71ec3c,{showActiveMarker:_0xccb989=!0x0}={}){return(_0x482742,_0x61a30d,_0x20e6f9)=>{const _0x56d72f=_0x71ec3c['plugins']['get']('TrackChangesEditing');if(!_0x20e6f9['consumable']['test'](_0x61a30d['markerRange'],_0x482742['name']))return;const _0xd2f1fa=_0x71ec3c['model'];for(const _0x1b5d39 of _0x61a30d['markerRange']['getItems']()){if(!_0x1b5d39['is']('element','softBreak'))continue;const _0x108f78='deletion'==_0x61a30d['markerName']['split'](':')[0x1]?'merge':'split',_0x1903c8=_0x20e6f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x108f78}),_0x37d42c=_0x20e6f9['mapper']['toViewPosition'](_0xd2f1fa['createPositionBefore'](_0x1b5d39));_0xccb989&&_0x56d72f['activeMarkers']['includes'](_0x61a30d['markerName'])&&_0x20e6f9['writer']['addClass']('ck-suggestion-marker--active',_0x1903c8),_0x20e6f9['writer']['insert'](_0x37d42c,_0x1903c8),_0x20e6f9['mapper']['bindElementToMarker'](_0x1903c8,_0x61a30d['markerName']);}};}class wt extends _0x11216f{['afterInit'](){const _0x5d1cd8=this['editor'],_0x449f1e=_0x5d1cd8['model'],_0x4fb511=_0x5d1cd8['locale'];if(!_0x5d1cd8['plugins']['has']('StandardEditingModeEditing'))return;const _0x2bc57a=_0x5d1cd8['plugins']['get']('TrackChangesEditing'),_0x3837e1='restrictedEditingException',_0x300559=_0x5d1cd8['commands']['get'](_0x3837e1);_0x2bc57a['enableCommand'](_0x3837e1,(_0x507e1,_0x42cb84={})=>{const _0x4fb5a4=_0x449f1e['document']['selection'];if(_0x4fb5a4['isCollapsed'])return void _0x507e1(_0x42cb84);const _0x22f2b6=void 0x0!==_0x42cb84['forceValue']?_0x42cb84['forceValue']:!_0x300559['value'];_0x449f1e['change'](()=>{const _0x536662=Array['from'](_0x4fb5a4['getRanges']());for(const _0x216599 of _0x536662){const _0x19a8d1=_0x22f2b6?[_0x216599]:io(_0x3837e1,_0x216599,_0x449f1e);for(const _0x32bcca of _0x19a8d1)_0x2bc57a['markInlineFormat'](_0x32bcca,{'commandName':_0x3837e1,'commandParams':[{'forceValue':_0x22f2b6}]});}});}),_0x2bc57a['descriptionFactory']['registerDescriptionCallback'](_0x1807e2=>{if('formatBlock'!=_0x1807e2['type']&&'formatInline'!=_0x1807e2['type'])return;const {data:_0x4c0d61}=_0x1807e2;return _0x4c0d61&&_0x4c0d61['commandName']==_0x3837e1?_0x4c0d61['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fb511,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fb511,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x11216f{['afterInit'](){const _0x2aed12=this['editor'];if(!_0x2aed12['plugins']['has']('Style')||!_0x2aed12['plugins']['has']('DataSchema'))return;const _0x9db301=_0x2aed12['plugins']['get']('TrackChangesEditing'),_0x5af094=_0x2aed12['locale'],_0x3fe6c9=_0x2aed12['config']['get']('style')||{},_0x438628=_0x2aed12['plugins']['get']('GeneralHtmlSupport'),_0x29e4bc=_0x2aed12['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2aed12['plugins']['get']('DataSchema'),_0x3fe6c9['definitions']);_0x9db301['enableDefaultAttributesIntegration']('style');const _0x445a73=new Set();for(const _0x1d47e7 of _0x29e4bc['block']){const _0x34c2b3=_0x438628['getGhsAttributeNameForElement'](_0x1d47e7['element']);_0x445a73['add'](_0x34c2b3);}const _0x2af782=new Set();for(const _0x45cae5 of _0x29e4bc['inline']){const _0xa89047=_0x438628['getGhsAttributeNameForElement'](_0x45cae5['element']);_0x2af782['add'](_0xa89047);for(const _0x1b1f98 of _0x45cae5['ghsAttributes'])_0x2af782['add'](_0x1b1f98);}for(const _0x329c53 of _0x445a73)_0x9db301['registerBlockAttribute'](_0x329c53),_0x9db301['descriptionFactory']['registerAttributeLabel'](_0x329c53,o(_0x5af094,'FORMAT_STYLE'));for(const _0x5733e1 of _0x2af782)_0x9db301['registerInlineAttribute'](_0x5733e1),_0x9db301['descriptionFactory']['registerAttributeLabel'](_0x5733e1,o(_0x5af094,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44bcbe=this['editor'],_0x4e19e7=_0x44bcbe['locale'];_0x44bcbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cd535=>{if('formatBlock'!=_0x3cd535['type']&&'formatInline'!=_0x3cd535['type'])return;const {data:_0x29d5df}=_0x3cd535;return _0x29d5df&&'style'===_0x29d5df['commandName']?_0x29d5df['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e19e7,'*Set\x20format:*\x20%0',_0x29d5df['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4e19e7,'*Remove\x20format:*\x20%0',_0x29d5df['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x11216f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x27b706){super(_0x27b706),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3d5acb=this['editor'],_0x19db24=_0x3d5acb['model']['document']['selection'];if(!_0x3d5acb['plugins']['has']('TableEditing'))return;const _0x985d13=_0x3d5acb['locale'],_0x5119ae=_0x3d5acb['plugins']['get']('TrackChangesEditing'),_0x22fde0=_0x3d5acb['plugins']['get']('TableUtils');_0x5119ae['descriptionFactory']['registerElementLabel']('table',_0x523cd4=>o(_0x985d13,'ELEMENT_TABLE',_0x523cd4)),this['_setupColumnsRowsFixing'](),_0x5119ae['enableCommand']('insertTable'),_0x5119ae['enableCommand']('selectTableRow'),_0x5119ae['enableCommand']('selectTableColumn');for(const _0x42c0d0 of['insertTableRowAbove','insertTableRowBelow']){const _0x61d2bf=_0x3d5acb['commands']['get'](_0x42c0d0);_0x5119ae['enableCommand'](_0x42c0d0,_0x136247=>{_0x3d5acb['model']['change'](_0x57abc2=>{_0x136247();const _0x126ccd='above'===_0x61d2bf['order'],_0x559ad2=_0x22fde0['getSelectionAffectedTableCells'](_0x19db24),_0x2d788a=_0x22fde0['getRowIndexes'](_0x559ad2),_0x50305e=_0x126ccd?_0x2d788a['first']-0x1:_0x2d788a['last']+0x1,_0x17d3ce=_0x559ad2[0x0]['findAncestor']('table'),_0x21db16=_0x22fde0['createTableWalker'](_0x17d3ce,{'startRow':_0x50305e,'endRow':_0x50305e}),_0x4e8de5=Array['from'](_0x21db16)['map'](_0x172a30=>_0x57abc2['createRangeOn'](_0x172a30['cell']));_0x5119ae['markMultiRangeInsertion'](_0x4e8de5,'tableRow');});});}for(const _0x3573e9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5ae536=_0x3d5acb['commands']['get'](_0x3573e9);_0x5119ae['enableCommand'](_0x3573e9,_0x5109f6=>{_0x3d5acb['model']['change'](_0x20c2b3=>{_0x5109f6();const _0x23d0c8='left'===_0x5ae536['order'],_0x406baa=_0x22fde0['getSelectionAffectedTableCells'](_0x19db24),_0x43511a=_0x22fde0['getColumnIndexes'](_0x406baa),_0x191c96=_0x23d0c8?_0x43511a['first']-0x1:_0x43511a['last']+0x1,_0x419486=_0x406baa[0x0]['findAncestor']('table'),_0x49fbdd=_0x22fde0['createTableWalker'](_0x419486,{'startRow':0x0,'column':_0x191c96,'includeAllSlots':!0x1}),_0x51b7e2=Array['from'](_0x49fbdd)['map'](_0x55e268=>_0x20c2b3['createRangeOn'](_0x55e268['cell']));_0x5119ae['markMultiRangeInsertion'](_0x51b7e2,'tableColumn');});});}for(const _0x4cbb63 of['removeTableRow','removeTableColumn']){const _0x558179=_0x4cbb63['substr'](0xb),_0x317442=_0x558179['toLowerCase'](),_0x2114e6=_0x317442['substr'](0x0,0x3)+'span',_0x2d6fb4='table'+_0x558179,_0x103fa7='min'+_0x558179,_0x175680='max'+_0x558179;_0x5119ae['enableCommand'](_0x4cbb63,()=>{_0x3d5acb['model']['change'](_0x43566d=>{const _0x39cba7=_0x22fde0['getSelectionAffectedTableCells'](_0x19db24),_0x1d3a82=_0x39cba7[0x0]['findAncestor']('table');let _0x259e71;if('removeTableRow'==_0x4cbb63){const _0x2d936e=_0x22fde0['getRowIndexes'](_0x39cba7);_0x259e71={'startRow':_0x2d936e['first'],'endRow':_0x2d936e['last'],'includeAllSlots':!0x0};}else{const _0x3523df=_0x22fde0['getColumnIndexes'](_0x39cba7);_0x259e71={'startColumn':_0x3523df['first'],'endColumn':_0x3523df['last'],'includeAllSlots':!0x0};}const _0x591caf=_0x22fde0['createTableWalker'](_0x1d3a82,_0x259e71),_0x328ef0=Array['from'](_0x591caf)['map'](({cell:_0x3a38c7})=>_0x3a38c7),_0x2d5f3e=Ee(_0x328ef0['filter'](_0x5f4736=>_0x5f4736['hasAttribute'](_0x2114e6))),_0x5b57ba=Ee(_0x328ef0['filter'](_0x304bd1=>!_0x304bd1['hasAttribute'](_0x2114e6)))['map'](_0x2cc6f8=>_0x43566d['createRangeOn'](_0x2cc6f8)),_0xda40da=_0x5119ae['markMultiRangeDeletion'](_0x5b57ba,_0x2d6fb4);if(_0xda40da&&('tableRow'==_0xda40da['subType']||'tableColumn'==_0xda40da['subType'])){const _0x4203b4=this['_getSuggestionCoords'](_0xda40da);for(const _0x43e61d of _0x2d5f3e){const _0x3d0556=_0x43566d['createRangeOn'](_0x43e61d),_0x3b5b89=_0x22fde0['getCellLocation'](_0x43e61d),_0x23b9ba=_0x43e61d['getAttribute'](_0x2114e6)-0x1,_0x3abf99=_0x4203b4[_0x103fa7],_0xe0ed4f=_0x4203b4[_0x175680];_0x3abf99<=_0x3b5b89[_0x317442]&&_0x3b5b89[_0x317442]+_0x23b9ba<=_0xe0ed4f&&_0xda40da['addRange'](_0x3d0556);}}});});}function _0x1f88d3(_0xba0e89){const _0x27e0c6=Array['from'](_0x19db24['getRanges']())['map'](_0x215566=>_0x17267b['fromRange'](_0x215566));_0x3d5acb['model']['change'](_0x28b8aa=>{const _0x5efd98=_0x28b8aa['batch'];_0xba0e89=_0xba0e89['filter'](_0x2270c3=>'$graveyard'!=_0x2270c3['root']['rootName']),_0x28b8aa['setSelection'](_0xba0e89),_0x3d5acb['commands']['get']('removeTableRow')['refresh'](),_0x3d5acb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3d5acb['model']['enqueueChange'](()=>{_0x3d5acb['model']['enqueueChange'](_0x5efd98,_0x48962d=>{const _0x17495d=_0x27e0c6['filter'](_0x3fbffd=>'$graveyard'!=_0x3fbffd['root']['rootName']);_0x17495d['length']>0x0&&_0x48962d['setSelection'](_0x17495d);for(const _0x5cc1fd of _0x27e0c6)_0x5cc1fd['detach']();});});});}function _0x13972f(_0x3f50a0){_0x3d5acb['model']['change'](_0x48bbd8=>{const _0x41da2a=Array['from'](_0x19db24['getRanges']())['map'](_0x45dfa1=>_0x17267b['fromRange'](_0x45dfa1)),_0x47b7bb=[];for(const _0xecc7d2 of _0x3f50a0)for(const _0x30a1fb of _0xecc7d2['getItems']({'shallow':!0x0}))_0x47b7bb['push'](_0x30a1fb);for(const _0x2d7f25 of _0x47b7bb)'$graveyard'!=_0x2d7f25['root']['rootName']&&(_0x48bbd8['setSelection'](_0x48bbd8['createPositionAt'](_0x2d7f25,0x0)),_0x3d5acb['commands']['get']('removeTableColumn')['refresh'](),_0x3d5acb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x19ba97=_0x41da2a['filter'](_0x347ee8=>'$graveyard'!=_0x347ee8['root']['rootName']);_0x19ba97['length']>0x0&&_0x48bbd8['setSelection'](_0x19ba97);for(const _0x347ac3 of _0x41da2a)_0x347ac3['detach']();});}function _0x1d5ccc(_0x78760c,_0x302ab9){return _0x302ab9['every'](_0x1208f0=>_0x78760c['some'](_0x46fbd8=>_0x46fbd8['end']['isEqual'](_0x1208f0['start'])||_0x1208f0['end']['isEqual'](_0x46fbd8['start'])));}function _0xd3c16b(_0x412404,_0x124ed0){return!_0x412404['some'](_0x2ee65d=>_0x124ed0['some'](_0x4b75f4=>_0x2ee65d['isIntersecting'](_0x4b75f4)))&&_0x412404['some'](_0x41b7bf=>_0x124ed0['some'](_0x445ae4=>_0x41b7bf['end']['isTouching'](_0x445ae4['start'])));}_0x3d5acb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5171db,_0x1777cf,_0x443001)=>{if(!_0x443001['options']['showSuggestionHighlights'])return;const _0x5aba1c=_0x1777cf['item'];if(!_0x5aba1c)return;const _0x10ebb2=_0x443001['mapper']['toViewElement'](_0x5aba1c);function _0x9c3ce0(_0x3bb3c8){return Array['isArray'](_0x3bb3c8)?_0x3bb3c8:[_0x3bb3c8];}_0x10ebb2&&'tableCell'===_0x5aba1c['name']&&_0x147a9e(_0x10ebb2,_0x443001['writer'],(_0x24d6e6,_0x2119b6,_0x168c47)=>_0x168c47['addClass'](_0x9c3ce0(_0x2119b6['classes']),_0x24d6e6),(_0xba18ad,_0x35d0f2,_0x5f34af)=>_0x5f34af['removeClass'](_0x9c3ce0(_0x35d0f2['classes']),_0xba18ad));},{'priority':'highest'}),_0x5119ae['descriptionFactory']['registerDescriptionCallback'](_0x3922d7=>{if('insertion'!=_0x3922d7['type']&&'deletion'!=_0x3922d7['type'])return;const _0x50ad61=_0x3922d7['getContainedElement']();if(null!=_0x50ad61&&_0x50ad61['is']('element','table')){if('insertion'==_0x3922d7['type']){const _0x2ffe26=_0x3922d7['getItems']()['filter'](_0x53910d=>_0x53910d['is']('$textProxy'))['map'](_0x20b0cf=>_0x20b0cf['data']);if(_0x2ffe26['length'])return{'type':'insertion','content':o(_0x985d13,'*Insert:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2ffe26['join']('\x20')+'\x22'))};}if('deletion'==_0x3922d7['type']){const _0x4a93aa=_0x3922d7['getItems']()['filter'](_0x2cef62=>_0x2cef62['is']('$textProxy'))['map'](_0x2f6f1c=>_0x2f6f1c['data']);if(_0x4a93aa['length'])return{'type':'deletion','content':o(_0x985d13,'*Remove:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4a93aa['join']('\x20')+'\x22'))};}}}),_0x5119ae['descriptionFactory']['registerDescriptionCallback'](_0x1f7aa6=>{if('tableRow'==_0x1f7aa6['subType']){const _0x41f505=_0x1f7aa6['getItems']()['filter'](_0x57f142=>_0x57f142['is']('$textProxy'))['map'](_0x199a53=>_0x199a53['data']),_0x3e0093=this['_getSuggestionCoords'](_0x1f7aa6),_0x2bd4a7=_0x3e0093['maxRow']-_0x3e0093['minRow']+0x1;if('insertion'==_0x1f7aa6['type'])return _0x41f505['length']?{'type':'insertion','content':o(_0x985d13,'*Insert:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2bd4a7,'\x22'+_0x41f505['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x985d13,'*Insert:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_ROW',_0x2bd4a7))};if('deletion'==_0x1f7aa6['type'])return _0x41f505['length']?{'type':'deletion','content':o(_0x985d13,'*Remove:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2bd4a7,'\x22'+_0x41f505['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x985d13,'*Remove:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_ROW',_0x2bd4a7))};}if('tableColumn'==_0x1f7aa6['subType']){const _0x354198=_0x1f7aa6['getItems']()['filter'](_0x5d17fe=>_0x5d17fe['is']('$textProxy'))['map'](_0x450d69=>_0x450d69['data']),_0x15a649=this['_getSuggestionCoords'](_0x1f7aa6),_0x48320e=_0x15a649['maxColumn']-_0x15a649['minColumn']+0x1;if('insertion'==_0x1f7aa6['type'])return _0x354198['length']?{'type':'insertion','content':o(_0x985d13,'*Insert:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x48320e,'\x22'+_0x354198['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x985d13,'*Insert:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_COLUMN',_0x48320e))};if('deletion'==_0x1f7aa6['type'])return _0x354198['length']?{'type':'deletion','content':o(_0x985d13,'*Remove:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x48320e,'\x22'+_0x354198['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x985d13,'*Remove:*\x20%0',o(_0x985d13,'ELEMENT_TABLE_COLUMN',_0x48320e))};}}),_0x5119ae['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1f88d3),_0x5119ae['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1f88d3),_0x5119ae['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x13972f),_0x5119ae['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x13972f),_0x5119ae['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1d5ccc),_0x5119ae['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1d5ccc),_0x5119ae['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xd3c16b),_0x5119ae['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xd3c16b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4f6997=this['editor'],_0x187db0=_0x4f6997['model']['document']['selection'];return(_0x10e061,_0x1f66e4)=>{_0x4f6997['model']['change'](_0x589c82=>{const {commandName:_0x328ff3,commandParams:_0x4abe6b}=_0x1f66e4;let _0xd8c1b6=_0x10e061[0x0]['end']['nodeBefore'];_0x4abe6b&&_0x4abe6b[0x0]&&!0x1===_0x4abe6b[0x0]['forceValue']&&(_0xd8c1b6=_0x10e061[0x0]['start']['nodeAfter']);const _0x1fafc6=_0x589c82['createRangeIn'](_0xd8c1b6);if('$graveyard'==_0x1fafc6['root']['rootName'])return;const _0x4f7726=Array['from'](_0x187db0['getRanges']())['map'](_0x29864d=>_0x17267b['fromRange'](_0x29864d));_0x589c82['setSelection'](_0x1fafc6),_0x4f6997['commands']['get'](_0x328ff3)['refresh'](),_0x4abe6b['push']({'forceDefaultExecution':!0x0}),_0x4f6997['execute'](_0x328ff3,..._0x4abe6b);const _0x43c1d9=_0x4f7726['filter'](_0x404d66=>'$graveyard'!=_0x404d66['root']['rootName']);_0x43c1d9['length']>0x0&&_0x589c82['setSelection'](_0x43c1d9);for(const _0x1c560a of _0x4f7726)_0x1c560a['detach']();});};}['_getCoordsForCells'](_0x5d0bd2){const _0x486fa7=this['editor']['plugins']['get']('TableUtils');let _0x5365cc=Number['MAX_SAFE_INTEGER'],_0xa5b89b=Number['MIN_SAFE_INTEGER'],_0x478c27=Number['MAX_SAFE_INTEGER'],_0x292dce=Number['MIN_SAFE_INTEGER'];for(const _0x4eb232 of _0x5d0bd2){if('$graveyard'==_0x4eb232['root']['rootName'])continue;const {row:_0x45f0ff,column:_0x3e45d1}=_0x486fa7['getCellLocation'](_0x4eb232),_0x5992f2=_0x4eb232['hasAttribute']('rowspan')?_0x4eb232['getAttribute']('rowspan')-0x1:0x0,_0x2ef42f=_0x4eb232['hasAttribute']('colspan')?_0x4eb232['getAttribute']('colspan')-0x1:0x0;_0x5365cc=_0x45f0ff<_0x5365cc?_0x45f0ff:_0x5365cc,_0xa5b89b=_0x45f0ff+_0x5992f2>_0xa5b89b?_0x45f0ff+_0x5992f2:_0xa5b89b,_0x478c27=_0x3e45d1<_0x478c27?_0x3e45d1:_0x478c27,_0x292dce=_0x3e45d1+_0x2ef42f>_0x292dce?_0x3e45d1+_0x2ef42f:_0x292dce;}return{'minRow':_0x5365cc,'maxRow':_0xa5b89b,'minColumn':_0x478c27,'maxColumn':_0x292dce};}['_setupColumnsRowsFixing'](){const _0x40abb2=this['editor'],_0x58f13c=_0x40abb2['plugins']['get']('TrackChangesEditing'),_0x292f43=_0x40abb2['plugins']['get']('TableUtils');_0x40abb2['model']['document']['on']('change:data',()=>{const _0xa35f2e=Array['from'](_0x40abb2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cab33,data:_0x264d6c}of _0xa35f2e){const {group:_0x1e0ef6,id:_0x3367be,subType:_0x4b10a6}=_0x58f13c['_splitMarkerName'](_0x1cab33);if('suggestion'!=_0x1e0ef6)continue;if(null!=_0x264d6c['oldRange'])continue;const _0x25612d=_0x58f13c['getSuggestion'](_0x3367be);this['_tablePostFixingSubtypes']['includes'](_0x4b10a6)&&this['_tableSuggestions']['add'](_0x25612d);}},{'priority':'low'});const _0x2e7ecc=(_0x332577,_0x257d48)=>{let _0x2fc549=!0x1;const _0x52cc5e=_0x257d48['createRangeOn'](_0x332577),_0x30dedb=_0x332577['findAncestor']('table'),_0x3fe17e=_0x292f43['getCellLocation'](_0x332577);for(const _0x4ebea2 of this['_tableSuggestions']){const _0x37771f=_0x4ebea2['subType'],_0x19360d=_0x37771f['startsWith']('tablePaste'),_0x56a4c6=_0x37771f['substr'](_0x19360d?0xa:0x5),_0x333848=_0x56a4c6['toLowerCase'](),_0x365da3=_0x333848['substr'](0x0,0x3)+'span',_0x3b3408='min'+_0x56a4c6,_0x5f2b9b='max'+_0x56a4c6;if(!_0x4ebea2['isInContent'])continue;if(_0x30dedb!=_0x4ebea2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4ebea2['isIntersectingWithRange'](_0x52cc5e))continue;const _0x29e66a=_0x332577['hasAttribute'](_0x365da3)?_0x332577['getAttribute'](_0x365da3)-0x1:0x0,_0x1ae026=this['_getSuggestionCoords'](_0x4ebea2),_0x28e745=_0x1ae026[_0x3b3408],_0xd0078f=_0x1ae026[_0x5f2b9b];_0x28e745<=_0x3fe17e[_0x333848]&&_0x3fe17e[_0x333848]+_0x29e66a<=_0xd0078f&&(_0x4ebea2['addRange'](_0x52cc5e),_0x2fc549=!0x0);}return _0x2fc549;};_0x40abb2['model']['document']['registerPostFixer'](_0x177184=>{let _0x49b128=!0x1;for(const _0xef5a7a of _0x40abb2['model']['document']['differ']['getChanges']())if('insert'==_0xef5a7a['type']){if('tableRow'==_0xef5a7a['name']){for(const _0x4005f9 of _0xef5a7a['position']['nodeAfter']['getChildren']())_0x49b128=_0x49b128||_0x2e7ecc(_0x4005f9,_0x177184);}else'tableCell'==_0xef5a7a['name']&&(_0x49b128=_0x49b128||_0x2e7ecc(_0xef5a7a['position']['nodeAfter'],_0x177184));}return _0x49b128;});}['_getSuggestionCoords'](_0x4dfee3){return this['_getCoordsForCells'](_0x4dfee3['getRanges']()['map'](_0x4f27e3=>_0x4f27e3['start']['nodeAfter']));}}function Ee(_0x137c90){return Array['from'](new Set(_0x137c90)['values']());}class St extends _0x11216f{static get['requires'](){return[jt];}['afterInit'](){const _0x192596=this['editor'],_0x471653=_0x192596['model']['document']['selection'],_0x25d500=_0x192596['locale'];if(!_0x192596['plugins']['has']('TableEditing'))return;const _0x330b47=_0x192596['plugins']['get']('TrackChangesEditing'),_0xb41b3e=_0x192596['plugins']['get']('TableUtils'),_0xda590e=_0x192596['plugins']['get'](jt);_0xda590e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x330b47['enableCommand']('mergeTableCells',()=>{const _0xc3d39a=_0xb41b3e['getSelectionAffectedTableCells'](_0x192596['model']['document']['selection']);_0x192596['model']['change'](()=>{_0x330b47['markMultiRangeBlockFormat'](_0xc3d39a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x192596['commands']['get']('mergeTableCells')['on']('execute',(_0x25f05d,_0x35eb86)=>{_0x192596['commands']['get']('trackChanges')['value']&&(_0x35eb86['length']>0x0&&_0x35eb86[_0x35eb86['length']-0x1]&&_0x35eb86[_0x35eb86['length']-0x1]['forceDefaultExecution']||_0x330b47['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x25f05d['stop']());},{'priority':'highest'});for(const _0x5ae5fc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x205282=_0x192596['commands']['get'](_0x5ae5fc);_0x330b47['enableCommand'](_0x5ae5fc,()=>{const _0x3523b8=_0x192596['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc69a45=>_0xc69a45['is']('element','tableCell')),_0x24b398=_0x205282['value'];_0x192596['model']['change'](()=>{_0x330b47['markMultiRangeBlockFormat']([_0x3523b8,_0x24b398],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4d4842 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x21ffd1=_0x192596['commands']['get'](_0x4d4842);_0x330b47['enableCommand'](_0x4d4842,()=>{const _0x2c1523=_0xb41b3e['getSelectionAffectedTableCells'](_0x192596['model']['document']['selection'])[0x0],_0x2b9b8f=_0x2c1523['findAncestor']('table'),{column:_0x1c683b,row:_0xf32acf}=_0xb41b3e['getCellLocation'](_0x2c1523);let _0x297b43=[];if('horizontally'==_0x21ffd1['direction']){const _0x190e2f=_0xb41b3e['createTableWalker'](_0x2b9b8f,{'startRow':_0xf32acf,'endRow':_0xf32acf,'includeAllSlots':!0x0});_0x297b43=Array['from'](_0x190e2f)['map'](_0x7463a6=>_0x7463a6['cell']);}else{const _0x52419c=_0xb41b3e['createTableWalker'](_0x2b9b8f,{'column':_0x1c683b,'includeAllSlots':!0x0});_0x297b43=Array['from'](_0x52419c)['map'](_0x4c23ff=>_0x4c23ff['cell']);}_0x192596['model']['change'](_0x20a923=>{_0x330b47['markBlockFormat'](_0x20a923['createRangeOn'](_0x2c1523),{'commandName':_0x4d4842,'commandParams':[]},_0x297b43,_0x4d4842);});});}_0x330b47['descriptionFactory']['registerDescriptionCallback'](_0x29b11b=>{if('formatBlock'!=_0x29b11b['type']&&'formatInline'!=_0x29b11b['type'])return;const {data:_0x2e44fe}=_0x29b11b;return _0x2e44fe&&'mergeTableCells'==_0x2e44fe['commandName']?{'type':'format','content':o(_0x25d500,'*Merge\x20cells*')}:void 0x0;}),_0x330b47['descriptionFactory']['registerDescriptionCallback'](_0x12a42e=>{if('formatBlock'!=_0x12a42e['type']&&'formatInline'!=_0x12a42e['type'])return;const {data:_0x4d8382}=_0x12a42e;return _0x4d8382?'splitTableCellVertically'==_0x4d8382['commandName']?{'type':'format','content':o(_0x25d500,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4d8382['commandName']?{'type':'format','content':o(_0x25d500,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x30f3f2=_0xda590e['_acceptFormatSuggestionCallbackFactory']();for(const _0x5dc8ad of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x330b47['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5dc8ad,'accept',_0x30f3f2);for(const _0x1236a8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x330b47['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1236a8,'accept',_0x30f3f2);_0x330b47['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4c21cc=>{_0x192596['model']['change'](_0x169f56=>{const _0x2b5406=Array['from'](_0x471653['getRanges']())['map'](_0x34c999=>_0x17267b['fromRange'](_0x34c999));_0x169f56['setSelection'](_0x4c21cc),_0x192596['commands']['get']('mergeTableCells')['refresh'](),_0x192596['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x527e37=_0x2b5406['filter'](_0x51873=>'$graveyard'!=_0x51873['root']['rootName']);_0x527e37['length']>0x0&&_0x169f56['setSelection'](_0x527e37);for(const _0x268622 of _0x2b5406)_0x268622['detach']();});});for(const _0x235493 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2e372=_0x192596['commands']['get'](_0x235493);_0x2e372['on']('set:isEnabled',(_0x15eb59,_0x12554b,_0x2db750)=>{if(_0x2db750){const _0x1fee1b=_0x192596['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2f9a48=>_0x2f9a48['is']('element','tableCell'));this['_areMergableCells'](_0x2e372['value'],_0x1fee1b)||(_0x15eb59['return']=!0x1,_0x15eb59['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xf4ba24=this['editor']['commands']['get']('mergeTableCells'),_0x235fed=this['editor']['plugins']['get']('TableUtils');if(!_0xf4ba24['isEnabled'])return!0x1;const _0x32f5f9=_0x235fed['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5e63c3 of _0x32f5f9)for(const _0x293e43 of _0x32f5f9)if(_0x5e63c3!=_0x293e43&&!this['_areMergableCells'](_0x5e63c3,_0x293e43))return!0x1;return!0x0;}['_areMergableCells'](_0x35f180,_0x37f29f){const _0x2996e6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b9a9e=this['editor']['model']['createRangeOn'](_0x35f180),_0x308016=this['editor']['model']['createRangeOn'](_0x37f29f),_0x44f3e6=new Set(),_0x4d646e=new Set();for(const _0x1fbf5a of _0x2996e6['getSuggestions']())if(('insertion'==_0x1fbf5a['type']||'deletion'==_0x1fbf5a['type']||'mergeTableCells'==_0x1fbf5a['subType'])&&_0x1fbf5a['isInContent']){for(const _0x10c97d of _0x1fbf5a['getRanges']())_0x10c97d['containsRange'](_0x5b9a9e,!0x0)&&_0x44f3e6['add'](_0x1fbf5a['type']+':'+_0x1fbf5a['author']['id']),_0x10c97d['containsRange'](_0x308016,!0x0)&&_0x4d646e['add'](_0x1fbf5a['type']+':'+_0x1fbf5a['author']['id']);}if(_0x44f3e6['size']!=_0x4d646e['size'])return!0x1;for(const _0x357f8c of _0x44f3e6)if(!_0x4d646e['has'](_0x357f8c))return!0x1;return!0x0;}}class At extends _0x11216f{static get['requires'](){return[jt];}['afterInit'](){const _0x4909c6=this['editor'];if(!_0x4909c6['plugins']['has']('TableEditing'))return;const _0x20f4fa=_0x4909c6['locale'],_0xef55b7=_0x4909c6['plugins']['get']('TrackChangesEditing');_0xef55b7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xef55b7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xef55b7['registerBlockAttribute']('headingRows'),_0xef55b7['registerBlockAttribute']('headingColumns'),_0xef55b7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x20f4fa,'FORMAT_HEADER_ROW')),_0xef55b7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x20f4fa,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5a7b61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x128e5e=this['editor']['plugins']['get']('TableUtils'),_0x3252ca=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x30f194({showActiveMarker:_0x473198=!0x0,setDataAttribute:_0x38d4db=!0x0}={}){return(_0x5057cc,_0x9502ff,_0x566c9c)=>{const {type:_0x40a74a,id:_0x2935e1}=_0x5a7b61['_splitMarkerName'](_0x9502ff['markerName']),_0x197835=_0x5a7b61['getSuggestion'](_0x2935e1),_0x58aacd=_0x197835['data'];if('formatBlock'!=_0x197835['type']||!_0x58aacd||'setTableColumnHeader'!=_0x58aacd['commandName'])return;if(_0x9502ff['item'])return void _0x5057cc['stop']();if(!_0x566c9c['consumable']['consume'](_0x9502ff['markerRange'],_0x5057cc['name']))return;const _0x2d1920=_0x9502ff['markerRange']['start']['nodeAfter'],_0x21ea2c=_0x9502ff['markerRange']['end']['nodeBefore'],_0x4a6611=_0x2d1920['parent']['parent'],{column:_0x2916b3}=_0x128e5e['getCellLocation'](_0x2d1920),{column:_0x145b84}=_0x128e5e['getCellLocation'](_0x21ea2c);for(let _0x5a0e07=_0x2916b3;_0x5a0e07<=_0x145b84;_0x5a0e07++){const _0x57cfb7=_0x128e5e['createTableWalker'](_0x4a6611,{'column':_0x5a0e07,'includeAllSlots':!0x1});for(const _0x1c91db of _0x57cfb7){const _0x19b265=_0x1c91db['cell'],_0x54ee5d=_0x566c9c['mapper']['toViewElement'](_0x19b265);_0x566c9c['writer']['addClass']('ck-suggestion-marker-'+_0x40a74a,_0x54ee5d),_0x38d4db&&_0x566c9c['writer']['setAttribute']('data-suggestion',_0x2935e1,_0x54ee5d),_0x566c9c['mapper']['bindElementToMarker'](_0x54ee5d,_0x9502ff['markerName']),_0x473198&&(_0x5a7b61['activeMarkers']['includes'](_0x9502ff['markerName'])?_0x566c9c['writer']['addClass']('ck-suggestion-marker--active',_0x54ee5d):_0x566c9c['writer']['removeClass']('ck-suggestion-marker--active',_0x54ee5d));}}};}_0x5a7b61['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3252ca),_0x5a7b61['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3252ca),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x30f194(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x32aa85,_0x23189f,_0x43adfa)=>{_0x43adfa['options']['showSuggestionHighlights']&&_0x30f194({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x32aa85,_0x23189f,_0x43adfa);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x12e46b,_0x1ec7c1,_0x4d04c8)=>{const {type:_0x20bc36,id:_0x13a206}=_0x5a7b61['_splitMarkerName'](_0x1ec7c1['markerName']),_0x485499=_0x5a7b61['getSuggestion'](_0x13a206),_0x5eade6=_0x485499['data'];if('formatBlock'!=_0x485499['type']||!_0x5eade6||'setTableColumnHeader'!=_0x5eade6['commandName'])return;const _0x568c39=_0x4d04c8['mapper']['markerNameToElements'](_0x1ec7c1['markerName']);if(_0x568c39){for(const _0x3360f4 of _0x568c39)_0x4d04c8['writer']['removeClass']('ck-suggestion-marker-'+_0x20bc36,_0x3360f4),_0x4d04c8['writer']['removeClass']('ck-suggestion-marker--active',_0x3360f4),_0x4d04c8['writer']['removeAttribute']('data-suggestion',_0x3360f4),_0x4d04c8['mapper']['unbindElementFromMarkerName'](_0x3360f4,_0x1ec7c1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56d181=this['editor'],_0x5ccc5d=_0x56d181['locale'];function _0x524993(_0x443d43){return{'type':'format','content':o(_0x5ccc5d,'*Format:*\x20%0',_0x443d43)};}_0x56d181['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1822ba=>{if('formatBlock'!=_0x1822ba['type'])return;const {data:_0x4018ea}=_0x1822ba;if(_0x4018ea){if('setTableRowHeader'==_0x4018ea['commandName']){const _0x4b1f20=_0x4018ea['commandParams'][0x0]['forceValue'];return _0x524993(o(_0x5ccc5d,_0x4b1f20?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4018ea['commandName']){const _0xf25ae2=_0x4018ea['commandParams'][0x0]['forceValue'];return _0x524993(o(_0x5ccc5d,_0xf25ae2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x3134d9=>[_0x3134d9,null]));class It extends _0x11216f{static get['requires'](){return[jt];}['afterInit'](){const _0x2f398b=this['editor'];if(!_0x2f398b['plugins']['has']('TableClipboard'))return;const _0xcbd763=_0x2f398b['plugins']['get']('TrackChangesEditing'),_0x4aef73=_0x2f398b['plugins']['get']('TableUtils'),_0x5f5c76=_0x2f398b['plugins']['get'](jt),_0x11ec7e=_0x2f398b['plugins']['get']('TableClipboard');_0x5f5c76['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2f398b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2f398b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x422790=null;_0x2f398b['model']['on']('insertContent',(_0x123220,_0x358811)=>{const [_0x1bd9fa,_0x3f787c]=_0x358811,_0x1a0664=_0x358811[_0x358811['length']-0x1];_0x1a0664&&_0x1a0664['forceDefaultExecution']||_0xcbd763['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1b113f,_0x3d8e18,_0x159ef4,_0x130a68,_0x3f6417){if(_0x3d8e18&&!_0x3d8e18['is']('documentSelection'))return!0x1;const _0x4b8034=_0x3f6417['getTableIfOnlyTableInContent'](_0x1b113f,_0x159ef4);if(!_0x4b8034||!he(_0x4b8034,void 0x0,_0x130a68))return!0x1;const _0x2c13cf=_0x130a68['getSelectionAffectedTableCells'](_0x159ef4['document']['selection']);if(!_0x2c13cf['length'])return!0x1;const _0x3fc9e4=_0x2c13cf[0x0]['findAncestor']('table'),_0x28ff21=_0x130a68['getRowIndexes'](_0x2c13cf),_0x534e0f=_0x130a68['getColumnIndexes'](_0x2c13cf),_0x371f66={'startRow':_0x28ff21['first'],'endRow':_0x28ff21['last'],'startColumn':_0x534e0f['first'],'endColumn':_0x534e0f['last']};return 0x1==_0x2c13cf['length']&&(_0x371f66['endRow']+=_0x130a68['getRows'](_0x4b8034)-0x1,_0x371f66['endColumn']+=_0x130a68['getColumns'](_0x4b8034)-0x1),he(_0x3fc9e4,_0x371f66,_0x130a68);}(_0x1bd9fa,_0x3f787c,_0x2f398b['model'],_0x4aef73,_0x11ec7e)&&(_0x123220['stop'](),_0x422790={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2f398b['model']['change'](()=>{_0x2f398b['model']['insertContent'](_0x358811[0x0],_0x358811[0x1],_0x358811[0x2],{'forceDefaultExecution':!0x0});const _0x5882fd=_0x58019d(),{rowInsertionRanges:_0x5819ff,columnInsertionRanges:_0x3e4979,insertionRanges:_0x37eba8,deletionRanges:_0x2c53a1,cells:_0x377b04}=_0x422790;_0x5819ff['length']&&_0xcbd763['markMultiRangeInsertion'](_0x5819ff,'tablePasteRow',{'tablePasteChainId':_0x5882fd}),_0x3e4979['length']&&_0xcbd763['markMultiRangeInsertion'](_0x3e4979,'tablePasteColumn',{'tablePasteChainId':_0x5882fd}),_0x37eba8['length']&&(_0xcbd763['markMultiRangeInsertion'](_0x37eba8,'tablePaste',{'tablePasteChainId':_0x5882fd,'skipNestingCheck':!0x0}),_0x37eba8['forEach'](_0x28926b=>_0x28926b['detach']?.())),_0x2c53a1['length']&&(_0xcbd763['markMultiRangeDeletion'](_0x2c53a1,'tablePaste',{'tablePasteChainId':_0x5882fd,'skipNestingCheck':!0x0}),_0x2c53a1['forEach'](_0x4d5a2d=>_0x4d5a2d['detach']?.()));const _0x5eb3f3=_0xcbd763['markMultiRangeBlockFormat'](_0x377b04['map'](({element:_0x4132a6})=>_0x4132a6),{'formatGroupId':_0x58019d()},[],'tablePasteCell',{'tablePasteChainId':_0x5882fd});if(_0x5eb3f3){const _0x400cc8=_0x5eb3f3['getMarkers'](),_0x314ddf=[];for(const {element:_0x1bdb9f,attributes:_0xd80039}of _0x377b04){if(!_0xd80039)continue;const _0x1aba48=_0x2f398b['model']['createRangeOn'](_0x1bdb9f),_0x364158=_0x400cc8['find'](_0x246f10=>_0x246f10['getRange']()['isEqual'](_0x1aba48));_0x364158&&_0x314ddf['push']([_0x364158['name'],_0xd80039]);}_0x314ddf['length']&&_0x5eb3f3['setAttribute']('markerAttributes',Object['fromEntries'](_0x314ddf));}_0x422790=null;}));},{'priority':_0x3f0408['high']+0xa}),_0x2f398b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x24711e,_0x34841e)=>{const [_0xe5a15e,_0x193f6d,,_0x256448]=_0x34841e;if(!_0x422790)return;_0x24711e['stop']();const _0x36fbb9=_0xe5a15e['cell'],_0x5b991c=_0x193f6d,_0x5412ba=Pe(_0x36fbb9),_0x576fea=Pe(_0x5b991c);_0x24711e['return']=_0x36fbb9;let _0x2f5088=null,_0x1c3f7f=null;if(_0x576fea||_0x5412ba){if(_0x5412ba&&!_0x576fea){_0x256448['remove'](_0x36fbb9['getChild'](0x0));for(const _0x365a0b of Array['from'](_0x5b991c['getChildren']()))_0x256448['insert'](_0x365a0b,_0x36fbb9,'end');const _0x5637fe=_0x422790['rowInsertionIndexes']['includes'](_0xe5a15e['row']),_0x50a1cb=_0x422790['columnInsertionIndexes']['includes'](_0xe5a15e['column']);_0x5637fe||_0x50a1cb||(_0x2f5088=_0x17267b['fromRange'](_0x256448['createRangeIn'](_0x36fbb9)));}else _0x576fea&&!_0x5412ba&&(_0x1c3f7f=_0x256448['createRangeIn'](_0x36fbb9));}else{const _0x44b5bb=_0x256448['createElement']('tableCellSuggestion'),_0x192353=_0x256448['createElement']('tableCellSuggestion');_0x256448['wrap'](_0x256448['createRangeIn'](_0x36fbb9),_0x192353),_0x256448['insert'](_0x44b5bb,_0x36fbb9,0x0);for(const _0x3ed6d9 of Array['from'](_0x5b991c['getChildren']()))_0x256448['insert'](_0x3ed6d9,_0x44b5bb,'end');_0x2f5088=_0x17267b['fromRange'](_0x256448['createRangeOn'](_0x44b5bb)),_0x1c3f7f=_0x17267b['fromRange'](_0x256448['createRangeOn'](_0x192353));}const _0x10c2b2=Array['from'](_0x5b991c['getAttributes']())['filter'](([_0x5c9397])=>ge['includes'](_0x5c9397));_0x422790['cells']['push']({'element':_0x36fbb9,'attributes':_0x10c2b2['length']?Object['fromEntries'](_0x10c2b2):null}),_0x2f5088&&_0x422790['insertionRanges']['push'](_0x2f5088),_0x1c3f7f&&_0x422790['deletionRanges']['push'](_0x1c3f7f);},{'priority':'high'}),_0x4aef73['on']('insertColumns',(_0xc11af1,_0x5b19bd)=>{const [_0x3ea1ad,_0x3f8884={}]=_0x5b19bd;if(!_0x422790)return;const _0x106b7c=_0x3f8884['at']||0x0,_0x460999=_0x3f8884['columns']||0x1;_0x422790['columnInsertionIndexes']=new Array(_0x460999)['fill'](_0x106b7c)['map']((_0xcf9659,_0x3fb0fb)=>_0xcf9659+_0x3fb0fb);for(const {cell:_0x1cdea3}of _0x4aef73['createTableWalker'](_0x3ea1ad,{'startColumn':_0x106b7c,'endColumn':_0x106b7c+_0x460999-0x1}))_0x422790['columnInsertionRanges']['push'](_0x2f398b['model']['createRangeOn'](_0x1cdea3));},{'priority':'low'}),_0x4aef73['on']('insertRows',(_0x1f2dab,_0x2f8a01)=>{const [_0x2ce7c9,_0x3dd0dc={}]=_0x2f8a01;if(!_0x422790)return;const _0x1d31b1=_0x3dd0dc['at']||0x0,_0x50553d=_0x3dd0dc['rows']||0x1;_0x422790['rowInsertionIndexes']=new Array(_0x50553d)['fill'](_0x1d31b1)['map']((_0x149996,_0xf5bba2)=>_0x149996+_0xf5bba2);for(const {cell:_0x47b933}of _0x4aef73['createTableWalker'](_0x2ce7c9,{'startRow':_0x1d31b1,'endRow':_0x1d31b1+_0x50553d-0x1}))_0x422790['rowInsertionRanges']['push'](_0x2f398b['model']['createRangeOn'](_0x47b933));},{'priority':'low'}),_0xcbd763['descriptionFactory']['registerDescriptionCallback'](_0x21c491=>{if(_0x21c491['subType']&&_0x21c491['subType']['startsWith']('tablePaste'))return _0x21c491['previous']?{}:{'type':'insertion','content':o(_0x2f398b['locale'],'*Replace\x20table\x20cells*')};});const _0x4b158f=()=>!0x1;for(const _0x4a326e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xcbd763['_suggestionFactory']['registerCustomCallback']('insertion',_0x4a326e,'join',_0x4b158f),_0xcbd763['_suggestionFactory']['registerCustomCallback']('deletion',_0x4a326e,'join',_0x4b158f),_0xcbd763['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a326e,'join',_0x4b158f);_0xcbd763['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4b158f),_0xcbd763['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5e39a4,_0x1ac152,_0x10519d)=>{const _0x23ddb8=_0x5e39a4['map'](_0x562bb6=>_0x562bb6['getContainedElement']())['filter'](_0x154fae=>_0x154fae),_0x48a067=new Map(_0x23ddb8['map'](_0x1d7ca6=>[_0x1d7ca6,null]));if(_0x422790){for(const {element:_0x18a116,attributes:_0x2f3390}of _0x422790['cells'])_0x2f3390&&_0x48a067['set'](_0x18a116,_0x2f3390);}else{if(_0x10519d&&_0x10519d['markerAttributes'])for(const [_0x24b32b,_0x622c01]of Object['entries'](_0x10519d['markerAttributes'])){const _0xad4001=_0x2f398b['model']['markers']['get'](_0x24b32b),_0x322c86=_0xad4001?_0xad4001['getRange']()['getContainedElement']():null;_0x322c86&&_0x48a067['set'](_0x322c86,_0x622c01);}}_0x2f398b['model']['change'](_0x276c03=>{for(const [_0x452f6a,_0x40b36c]of _0x48a067)_0x276c03['setAttributes']({...Ce,..._0x40b36c},_0x452f6a);});});const _0x17de9e=(_0x1cb6fb,_0x55d500)=>{_0xcbd763['_suggestionFactory']['registerCustomCallback'](_0x1cb6fb,'tablePaste',_0x55d500,(_0x172859,_0x764b77,_0x32c33a)=>{_0x2f398b['model']['change'](_0x255308=>{const _0xdb1aed=[];for(const _0xa3c4ea of _0x172859){const _0x1fa8a4=_0xa3c4ea['start']['nodeAfter'];_0x1fa8a4['is']('element','tableCellSuggestion')&&_0xdb1aed['push'](_0x1fa8a4);}_0xcbd763['_suggestionFactory']['getSuggestionCallback'](_0x1cb6fb,null,_0x55d500)(_0x172859,_0x764b77,_0x32c33a);for(const _0x190487 of _0xdb1aed)'$graveyard'!=_0x190487['root']['rootName']&&_0x255308['unwrap'](_0x190487);});});};_0x17de9e('insertion','accept'),_0x17de9e('insertion','discard'),_0x17de9e('deletion','accept'),_0x17de9e('deletion','discard'),_0xcbd763['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x342a89=>{const _0x4a136b=_0x342a89['map'](_0x2d76d3=>_0x2d76d3['getContainedElement']()),_0x3a4eab=_0x4a136b[0x0]['findAncestor']('table'),{minRow:_0x52a0c3,maxRow:_0x5c699a}=_0x5f5c76['_getCoordsForCells'](_0x4a136b);_0x4aef73['removeRows'](_0x3a4eab,{'at':_0x52a0c3,'rows':_0x5c699a-_0x52a0c3+0x1});}),_0xcbd763['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x7083b=>{const _0x2770eb=_0x7083b['map'](_0x480e1a=>_0x480e1a['getContainedElement']()),_0x5e85d0=_0x2770eb[0x0]['findAncestor']('table'),{minColumn:_0x536684,maxColumn:_0x1476ba}=_0x5f5c76['_getCoordsForCells'](_0x2770eb);_0x4aef73['removeColumns'](_0x5e85d0,{'at':_0x536684,'columns':_0x1476ba-_0x536684+0x1});});const _0x12833b=(_0x2f8ab1,_0x556470)=>{if(!_0x556470['subType']||!_0x556470['subType']['startsWith']('tablePaste'))return;const _0x32e8f5=_0x556470['attributes']['tablePasteChainId'],_0x4e5d6a=_0xcbd763['getSuggestions']()['filter'](_0x5d2440=>_0x5d2440['isInContent']&&_0x5d2440['attributes']&&_0x5d2440['attributes']['tablePasteChainId']==_0x32e8f5);_0x4e5d6a['length']&&_0x556470['getAllAdjacentSuggestions']()['length']!=_0x4e5d6a['length']&&_0x4e5d6a['reduce']((_0x335345,_0x5e9757)=>(_0x335345['next']=_0x5e9757,_0x5e9757['previous']=_0x335345,_0x5e9757));};function _0x3a54d7(_0x401931,_0x5147ad=!0x0){const {id:_0x2e765a}=_0xcbd763['_splitMarkerName'](_0x401931['markerName']),_0x397e2d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3acec3=_0xcbd763['activeMarkers']['includes'](_0x401931['markerName']);return _0x3acec3&&_0x397e2d['push']('ck-suggestion-marker--active'),{'classes':_0x397e2d,'attributes':{'data-suggestion':_0x2e765a},'priority':_0x3acec3&&_0x5147ad?0xbc2:0xbb8};}_0xcbd763['on']('suggestionLoaded',_0x12833b,{'priority':'high'}),_0xcbd763['on']('suggestionUnloaded',_0x12833b,{'priority':'high'}),_0x2f398b['model']['document']['registerPostFixer'](()=>{let _0x5ed668=!0x1;const _0x2dd780=Array['from'](_0x2f398b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x509ba2,data:_0x2542d6}of _0x2dd780){const {group:_0x3c313e,type:_0x719bf4,id:_0x411f7b}=_0xcbd763['_splitMarkerName'](_0x509ba2);if('suggestion'!=_0x3c313e||'deletion'!=_0x719bf4||_0x2542d6['oldRange'])continue;if(!_0xcbd763['hasSuggestion'](_0x411f7b))continue;const _0x2327ae=_0xcbd763['getSuggestion'](_0x411f7b)['getRanges'](),_0x4f0b91=_0x2f398b['plugins']['get']('Users')['me'];for(const _0xf643cd of _0xcbd763['getSuggestions']()){if(!_0xf643cd['isInContent']||_0xf643cd['author']!=_0x4f0b91)continue;if('formatBlock'!=_0xf643cd['type']||'tablePasteCell'!=_0xf643cd['subType'])continue;if(_0xf643cd['getRanges']()['every'](_0x14b612=>_0x2327ae['some'](_0xf17c41=>_0xf17c41['containsRange'](_0x14b612,!0x0)))){for(const _0x5d0e4e of _0xf643cd['getAllAdjacentSuggestions']())_0x5d0e4e['isInContent']&&(_0x5d0e4e['discard'](),_0x5ed668=!0x0);}}}return _0x5ed668;}),_0x2f398b['model']['document']['registerPostFixer'](_0x1057e9=>{const _0x118ffb=_0x2f398b['commands']['get']('redo');if(!_0x118ffb||!_0x118ffb['_createdBatches']['has'](_0x1057e9['batch']))return!0x1;let _0x676528=!0x1;const _0x4aaa46=_0x2f398b['plugins']['get']('Users')['me'],_0x5dbe30=_0x2f398b['model']['document']['differ']['getChanges'](),_0x1930ff=Array['from'](_0x2f398b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x563bbf,data:_0x377872})=>{const {group:_0x2ce4d0,subType:_0x4347b3,authorId:_0x3c18bb}=_0xcbd763['_splitMarkerName'](_0x563bbf);return'suggestion'==_0x2ce4d0&&'tablePaste'==_0x4347b3&&_0x3c18bb==_0x4aaa46['id']&&!_0x377872['oldRange'];});for(const _0x558908 of _0x5dbe30){if('insert'!=_0x558908['type']||'tableCellSuggestion'!=_0x558908['name']||0x1!=_0x558908['length'])continue;const _0xbfc2cf=_0x1057e9['createRange'](_0x558908['position'],_0x558908['position']['getShiftedBy'](0x1));if(!_0x1930ff['find'](({data:_0x5f0140})=>_0x5f0140['newRange']['isEqual'](_0xbfc2cf))){for(const {name:_0x11abd2,data:_0x58614e}of _0x1930ff)if(_0xbfc2cf['containsRange'](_0x58614e['newRange'])){_0x1057e9['updateMarker'](_0x11abd2,{'range':_0xbfc2cf}),_0x676528=!0x0;break;}}}return _0x676528;}),_0x2f398b['model']['document']['registerPostFixer'](_0xb514f5=>{let _0x399313=!0x1;const _0x45510f=_0x2f398b['plugins']['get']('Users')['me'],_0x167113=_0xcbd763['getSuggestions']()['filter'](_0x730f4a=>_0x730f4a['isInContent']&&_0x730f4a['author']==_0x45510f),_0x533858=new Set(),_0x306333=new Set();for(const _0x324c3d of _0x167113)if('tablePaste'==_0x324c3d['subType'])for(const _0xd8956f of _0x324c3d['getMarkers']()){const _0x102ff0=_0xd8956f['getRange']()['getContainedElement']();if(_0x102ff0){if(_0x102ff0['is']('element','tableCellSuggestion')&&Pe(_0x102ff0)){_0x324c3d['removeMarker'](_0xd8956f['name']),_0x533858['add'](_0x102ff0),_0x399313=!0x0;const _0x451049=_0x102ff0['nextSibling'],_0x1c6ba0=_0x102ff0['previousSibling'],_0x2eb644=_0x451049&&_0x451049['is']('element','tableCellSuggestion'),_0x670443=_0x1c6ba0&&_0x1c6ba0['is']('element','tableCellSuggestion');_0x2eb644&&!_0x533858['has'](_0x451049)&&_0x306333['add'](_0x451049),_0x670443&&!_0x533858['has'](_0x1c6ba0)&&_0x306333['add'](_0x1c6ba0);}else _0x102ff0['is']('element','paragraph')&&_0x102ff0['isEmpty']&&(_0x324c3d['removeMarker'](_0xd8956f['name']),_0x399313=!0x0);}}else{if('tablePasteCell'==_0x324c3d['subType']){if(!_0x324c3d['attributes']||!_0x324c3d['attributes']['tablePasteChainId'])continue;const _0x172398=_0x324c3d['attributes']['markerAttributes'];if(_0x172398&&Object['keys'](_0x172398)['length'])continue;const _0x132c70=_0x324c3d['attributes']['tablePasteChainId'];let _0x5f0f78=!0x0,_0x47ddbc=!0x0;for(const _0x450e28 of _0x167113)if(_0x450e28['subType']&&_0x450e28['subType']['startsWith']('tablePaste')){if(!_0x450e28['attributes']['tablePasteChainId']){_0x47ddbc=!0x1;break;}if(_0x450e28['id']!=_0x324c3d['id']&&_0x450e28['attributes']['tablePasteChainId']==_0x132c70){_0x5f0f78=!0x1;break;}}_0x47ddbc&&_0x5f0f78&&(_0x324c3d['removeMarkers'](),_0x399313=!0x0);}}for(const _0x4efcfe of _0x533858)_0xb514f5['remove'](_0x4efcfe);for(const _0x2c914e of _0x306333)_0xb514f5['unwrap'](_0x2c914e);return _0x399313;}),_0x2f398b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5cc8f3,_0x5b492d)=>_0x3a54d7(_0x5cc8f3),'converterPriority':'high'}),_0x2f398b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d8b0d,_0x313f7c)=>_0x313f7c['options']['showSuggestionHighlights']?_0x3a54d7(_0x2d8b0d,!0x1):null,'converterPriority':'high'});const _0x3089aa=_0x2f398b['editing']['view'];this['listenTo'](_0x3089aa['document'],'clipboardOutput',(_0x4a7015,_0x437b4b)=>{const _0x5d5310=[];for(const _0x4dca39 of _0x3089aa['createRangeIn'](_0x437b4b['content'])['getItems']())_0x4dca39['is']('element','suggestion-td')&&_0x5d5310['push'](_0x4dca39);_0x3089aa['change'](_0xe3850e=>{for(const _0x5a7e65 of _0x5d5310)_0xe3850e['move'](_0xe3850e['createRangeIn'](_0x5a7e65),_0xe3850e['createPositionBefore'](_0x5a7e65)),_0xe3850e['remove'](_0x5a7e65);});});}}function Pe(_0x452193){if(_0x452193['isEmpty'])return!0x0;const _0xded248=_0x452193['getChild'](0x0);return _0xded248['is']('element','paragraph')&&_0xded248['isEmpty'];}function he(_0x207bb6,_0x2ebed3={},_0x24c7e9){for(const {isAnchor:_0x43dd91,cellHeight:_0x3c7102,cellWidth:_0x5efece}of _0x24c7e9['createTableWalker'](_0x207bb6,{'includeAllSlots':!0x0,..._0x2ebed3}))if(!_0x43dd91||0x1!=_0x3c7102||0x1!=_0x5efece)return!0x1;return!0x0;}class vt extends _0x11216f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x37251a=this['editor']['plugins']['get']('TrackChangesEditing');_0x37251a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x37251a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x37251a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37251a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x37251a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x37251a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x44a219,_0x774f00){const _0x4c97af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f34c9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4bbae6=_0x774f00['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x183cce=_0x4f34c9['getColumnGroupElement'](_0x4bbae6);let _0x3a3d65=_0x183cce?_0x4f34c9['getTableColumnsWidths'](_0x183cce):null,_0x4fe743=_0x4bbae6['getAttribute']('tableWidth')||null;const _0x1c462d=_0x774f00['tableWidth']||_0x4fe743,_0x4d1df2=_0x774f00['columnWidths']||_0x3a3d65,_0x5b8823=this['editor']['plugins']['get']('Users')['me'];for(const _0x5ef2c9 of _0x4c97af['getSuggestions']()){const _0x2efd55=_0x5ef2c9['getContainedElement']();if('resizeTable'===_0x5ef2c9['subType']&&_0x2efd55===_0x4bbae6){_0x5ef2c9['author']!==_0x5b8823&&_0x5ef2c9['discard']();const _0x25d458=_0x5ef2c9['data']['commandParams'];_0x4fe743=_0x25d458[0x0]['tableWidth'],_0x3a3d65=_0x25d458[0x0]['columnWidths'];break;}}_0x44a219({'table':_0x4bbae6,'tableWidth':_0x1c462d,'columnWidths':_0x4d1df2}),_0x4c97af['markBlockFormat'](_0x4bbae6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4fe743,'columnWidths':_0x3a3d65}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x488dbe){if('formatBlock'!=_0x488dbe['type']&&'formatInline'!=_0x488dbe['type'])return;const {data:_0x1e5a95}=_0x488dbe;if(_0x1e5a95&&'resizeTable'===_0x1e5a95['formatGroupId']){const _0x9cedbb='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x9cedbb)};}}}class Ct extends _0x11216f{['afterInit'](){const _0x3e0b0e=this['editor'];_0x3e0b0e['plugins']['has']('Template')&&_0x3e0b0e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x11216f{['afterInit'](){const _0x33676b=this['editor'];if(!_0x33676b['commands']['get']('insertTableOfContents'))return;_0x33676b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x24dc2a=_0x33676b['plugins']['get']('TrackChangesEditing'),_0x4656fd=_0x33676b['locale'];_0x24dc2a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x322a8e=>o(_0x4656fd,'ELEMENT_TABLE_OF_CONTENTS',_0x322a8e));}}class Dt extends _0x11216f{['afterInit'](){const _0x21069f=this['editor'];if(!_0x21069f['plugins']['has']('Title'))return;const _0x69e3cb=_0x21069f['plugins']['get']('TrackChangesEditing');_0x69e3cb['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x21069f['locale'],'ELEMENT_TITLE')),_0x21069f['model']['document']['registerPostFixer'](_0x2adf2f=>{let _0x5bd5c2=!0x1;const _0x118e07=Array['from'](_0x21069f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3dda41,data:_0x4392c8}of _0x118e07){const {group:_0x136039}=_0x69e3cb['_splitMarkerName'](_0x3dda41);if('suggestion'!==_0x136039||!_0x4392c8['newRange'])continue;const _0x447006=_0x4392c8['newRange'],_0x4c0cb7=_0x447006['end']['nodeBefore'];if(!_0x4c0cb7||!_0x4c0cb7['is']('element','title-content'))continue;if(!_0x447006['start']['isTouching'](_0x447006['end']))continue;const _0x39bfb8=_0x21069f['model']['schema']['getNearestSelectionRange'](_0x447006['end'],'forward');if(_0x39bfb8&&_0x39bfb8['isCollapsed']){const _0x335693=_0x2adf2f['createRange'](_0x447006['start'],_0x39bfb8['start']);_0x335693['isEqual'](_0x447006)||(_0x2adf2f['updateMarker'](_0x3dda41,{'range':_0x335693}),_0x5bd5c2=!0x0);}_0x5bd5c2||(_0x2adf2f['removeMarker'](_0x3dda41),_0x5bd5c2=!0x0);}return _0x5bd5c2;});}}class Nt extends _0x11216f{['afterInit'](){const _0x251ce2=this['editor'],_0x2e8024=_0x251ce2['plugins']['get']('TrackChangesEditing');_0x251ce2['plugins']['has']('UndoEditing')&&(_0x2e8024['enableCommand']('undo'),_0x2e8024['enableCommand']('redo'));}}class Mt extends _0x11216f{static get['requires'](){return[jt];}['afterInit'](){const _0x16dd6b=this['editor'];if(!_0x16dd6b['plugins']['has']('TableCaptionEditing'))return;_0x16dd6b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x11216f{['tableProperties'];['tableCellProperties'];constructor(_0x199b1e){super(_0x199b1e),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 _0x196e4e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x448fd of this['tableProperties'])_0x196e4e['enableCommand'](_0x448fd,(_0x170c74,_0x192ebc)=>{const _0x2398ef=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x448fd,[_0x2398ef],this['tableProperties'],'tableProperties',_0x170c74,_0x192ebc);});_0x196e4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x196e4e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x196e4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x24e414,_0x4c1b0b)=>this['handleDiscardAction'](this['tableProperties'],_0x24e414,_0x4c1b0b)),_0x196e4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x515f04 of this['tableCellProperties'])_0x196e4e['enableCommand'](_0x515f04,(_0x14614d,_0xbb51ea)=>{const _0x382494=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x515f04,_0x382494,this['tableCellProperties'],'tableCellProperties',_0x14614d,_0xbb51ea);});_0x196e4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x196e4e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x196e4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x191608,_0x3b7e0b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x191608,_0x3b7e0b)),_0x196e4e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x196e4e['descriptionFactory']['registerDescriptionCallback'](_0x275ceb=>this['handleSuggestionDescription'](_0x275ceb));}['_handlePropertyChange'](_0x2b6d64,_0x693001,_0x5164ac,_0x2cd6c5,_0x38a5f6,_0x399861){const _0x4e0869=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x399861['batch'],()=>{for(const _0x5a93b1 of _0x693001){if(this['_getSuggestion'](_0x5a93b1,_0x2cd6c5))_0x38a5f6(_0x399861);else{const _0x75f527={};for(const _0x5b37bc of _0x5164ac){const _0x116203=_0x5a93b1['getAttribute'](_0x5b37bc);void 0x0!==_0x116203&&(_0x75f527[_0x5b37bc]=_0x116203);}_0x38a5f6(_0x399861),_0x4e0869['markBlockFormat'](_0x5a93b1,{'commandParams':[_0x75f527]},[],_0x2cd6c5);}}});}['handleDiscardAction'](_0x599a6f,_0x1a78b4,_0x59a43e){const _0x5cf76a=_0x1a78b4[0x0]['start']['nodeAfter'],_0x5e3593=_0x59a43e['commandParams'][0x0];this['editor']['model']['change'](_0x1b6ea3=>{for(const _0x176f81 of _0x599a6f)void 0x0!==_0x5e3593[_0x176f81]?_0x1b6ea3['setAttribute'](_0x176f81,_0x5e3593[_0x176f81],_0x5cf76a):_0x1b6ea3['removeAttribute'](_0x176f81,_0x5cf76a);});}['handleSuggestionDescription'](_0x3c8bf6){if(_0x3c8bf6['data'])switch(_0x3c8bf6['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'](_0x465e02,_0x4802f2){const _0x201ced=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5562d2 of _0x201ced['getSuggestions']({'skipNotAttached':!0x0})){const _0x4ba45d=_0x5562d2['getContainedElement']();if(_0x5562d2['subType']===_0x4802f2&&_0x4ba45d===_0x465e02)return _0x5562d2;}return null;}}const m='$elementName';class p extends _0x11216f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5c6d6e,_0x5a617c,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(_0x18032a){function _0x4bbf76(_0x3b368d){return _0x3b368d['map'](_0x57f8a6=>String['fromCharCode'](_0x57f8a6))['join']('');}super(_0x18032a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4c1216,_0x52214f,_0x23b3ff,_0xc3d7db)=>{this['_model']['change'](()=>{for(const _0x1361cc of[..._0xc3d7db,..._0x23b3ff])this['_model']['markers']['has'](_0x1361cc)&&_0x18032a['editing']['reconvertMarker'](_0x1361cc);});}),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']=_0x18032a['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(),_0x18032a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x18032a['config']['get']('trackChanges.trackFormatChanges'),_0x18032a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x18032a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x18032a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4bbf76([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4bbf76([0x34,0x30,0x34,0x38,0x31,0x34,0x31,0x36]);}['init'](){const _0xdcb584=this['editor'],_0x3eb65a=(_0x26adc9,_0x3d1f49)=>{if('attribute'!=_0x26adc9)return'ck-suggestion-marker-'+_0x26adc9;const _0x5593f7=_0x3d1f49['split']('|')[0x0];return this['_isBlockAttribute'](_0x5593f7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xdcb584['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2ba187=>{const {id:_0x1fd5f4,type:_0x3c6c3e,subType:_0x536a60}=this['_splitMarkerName'](_0x2ba187['markerName']),_0x2ec2d3=['ck-suggestion-marker',_0x3eb65a(_0x3c6c3e,_0x536a60)];let _0x5931c7=0xbb8;return this['activeMarkers']['includes'](_0x2ba187['markerName'])&&(_0x2ec2d3['push']('ck-suggestion-marker--active'),_0x5931c7=0xbc2),'deletion'==_0x3c6c3e&&(_0x5931c7+=0x5),{'classes':_0x2ec2d3,'attributes':{'data-suggestion':_0x1fd5f4},'priority':_0x5931c7};}}),_0xdcb584['conversion']['for']('dataDowncast')['add'](_0x4ac39a=>{_0x4ac39a['on']('addMarker:suggestion',(_0x3718b7,_0x598156,_0x289737)=>{if(!_0x289737['options']['showSuggestionHighlights'])return;const _0x3ff752=_0x598156['item'];if(!_0x3ff752)return;const _0x51b65d=_0x289737['mapper']['toViewElement'](_0x3ff752);_0xdcb584['model']['schema']['isObject'](_0x3ff752)&&_0x51b65d&&!_0x51b65d['getCustomProperty']('widget')&&_0x51b65d['is']('containerElement')&&_0x4714a8(_0x51b65d,_0x289737['writer']);},{'priority':'high'});}),_0xdcb584['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x11cad0,_0x4970b6)=>{if(!_0x4970b6['options']['showSuggestionHighlights'])return null;const {type:_0x2dff67,subType:_0x21219c}=this['_splitMarkerName'](_0x11cad0['markerName']);return{'classes':['ck-suggestion-marker',_0x3eb65a(_0x2dff67,_0x21219c)],'priority':0xbb8};}});const _0x1dffbf=({showActiveMarkers:_0x1d0236=!0x0,isAttributeSuggestion:_0x4a352f=!0x1}={})=>(_0x1f7bce,_0x321c07,_0x589c7d)=>{if(!_0x321c07['item'])return;const {id:_0x3dcef1}=this['_splitMarkerName'](_0x321c07['markerName']);if(_0x4a352f){const _0x2b552e=this['_suggestions']['get'](_0x3dcef1),_0x111aaa=this['_getAttributeKey'](_0x2b552e);if(!this['_isBlockAttribute'](_0x111aaa))return;}if(_0x321c07['item']['is']('selection'))return void _0x589c7d['consumable']['consume'](_0x321c07['item'],_0x1f7bce['name']);const _0x286734=_0x589c7d['mapper']['toViewElement'](_0x321c07['item']);if(_0x321c07['item']['is']('element')&&_0xdcb584['model']['schema']['isBlock'](_0x321c07['item'])&&!_0x286734['getCustomProperty']('addHighlight')){_0x589c7d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x286734),_0x589c7d['writer']['setAttribute']('data-suggestion',_0x3dcef1,_0x286734),_0x589c7d['mapper']['bindElementToMarker'](_0x286734,_0x321c07['markerName']),_0x1d0236&&(this['activeMarkers']['includes'](_0x321c07['markerName'])?_0x589c7d['writer']['addClass']('ck-suggestion-marker--active',_0x286734):_0x589c7d['writer']['removeClass']('ck-suggestion-marker--active',_0x286734));for(const _0x38fda8 of _0xdcb584['model']['createRangeIn'](_0x321c07['item'])['getItems']())_0x589c7d['consumable']['consume'](_0x38fda8,_0x1f7bce['name']);_0x589c7d['consumable']['consume'](_0x321c07['item'],_0x1f7bce['name']);}};_0xdcb584['conversion']['for']('dataDowncast')['add'](_0x73bc12=>{_0x73bc12['on']('addMarker:suggestion:formatBlock',(_0x35da03,_0x44cf93,_0x5250bc)=>{_0x5250bc['options']['showSuggestionHighlights']&&_0x1dffbf({'showActiveMarkers':!0x1})(_0x35da03,_0x44cf93,_0x5250bc);},{'priority':'highest'});}),_0xdcb584['conversion']['for']('dataDowncast')['add'](_0x32d5ae=>{_0x32d5ae['on']('addMarker:suggestion:attribute',(_0x4a51e4,_0x3bfceb,_0x5a8eb8)=>{_0x5a8eb8['options']['showSuggestionHighlights']&&_0x1dffbf({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4a51e4,_0x3bfceb,_0x5a8eb8);},{'priority':'highest'});}),_0xdcb584['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5216eb,_0x41d2b1)=>_0x41d2b1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5216eb['substr'](0xb)}}),_0xdcb584['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x570f41,{writer:_0x534294})=>{let _0xf74a92='suggestion:'+_0x570f41['getAttribute']('suggestion-type')+':'+_0x570f41['getAttribute']('id');return _0x570f41['getAttribute']('marker-count')&&(_0xf74a92+=':'+_0x570f41['getAttribute']('marker-count')),_0x534294['createElement']('$marker',{'data-name':_0xf74a92});}}),_0xdcb584['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xdcb584['conversion']['for']('editingDowncast')['add'](_0x1d5602=>{_0x1d5602['on']('addMarker:suggestion:formatBlock',_0x1dffbf(),{'priority':'high'});}),_0xdcb584['conversion']['for']('editingDowncast')['add'](_0x5f5135=>{_0x5f5135['on']('addMarker:suggestion:attribute',_0x1dffbf({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xdcb584['conversion']['for']('editingDowncast')['add'](_0x5ce04a=>{_0x5ce04a['on']('removeMarker:suggestion:formatBlock',(_0x1d1374,_0x1d09ee,_0x2d9f81)=>{const _0x581b13=_0x2d9f81['mapper']['markerNameToElements'](_0x1d09ee['markerName']);if(_0x581b13){for(const _0x349e7e of _0x581b13)_0x349e7e['getCustomProperty']('addHighlight')||(_0x2d9f81['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x349e7e),_0x2d9f81['writer']['removeAttribute']('data-suggestion',_0x349e7e),_0x2d9f81['mapper']['unbindElementFromMarkerName'](_0x349e7e,_0x1d09ee['markerName']));}},{'priority':'high'});}),_0xdcb584['conversion']['for']('editingDowncast')['add'](_0x22eb76=>{_0x22eb76['on']('removeMarker:suggestion:attribute',(_0x29de43,_0x3f27e8,_0x3e0f82)=>{const _0x172e5d=_0x3e0f82['mapper']['markerNameToElements'](_0x3f27e8['markerName']);if(!_0x172e5d)return;const {id:_0x27ffe9}=this['_splitMarkerName'](_0x3f27e8['markerName']),_0x51ed37=this['_suggestions']['get'](_0x27ffe9),_0x5df486=this['_getAttributeKey'](_0x51ed37);if(this['_isBlockAttribute'](_0x5df486)){for(const _0x2b7a1b of _0x172e5d)_0x2b7a1b['getCustomProperty']('addHighlight')||(_0x3e0f82['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2b7a1b),_0x3e0f82['writer']['removeAttribute']('data-suggestion',_0x2b7a1b),_0x3e0f82['mapper']['unbindElementFromMarkerName'](_0x2b7a1b,_0x3f27e8['markerName']));}},{'priority':'high'});}),_0xdcb584['model']['document']['registerPostFixer'](_0x965906=>{let _0x225d43=!0x1;const _0x46f146=Array['from'](_0xdcb584['model']['document']['differ']['getChangedMarkers']()),_0x1a1ff2=new Set();for(const {name:_0x5e72cd,data:_0x35d3c8}of _0x46f146){const {group:_0x124120,type:_0x46d801,subType:_0x351be4,id:_0x13ded8}=this['_splitMarkerName'](_0x5e72cd);if('suggestion'!==_0x124120)continue;const _0x1e8ddd=this['_suggestions']['get'](_0x13ded8);if(null!=_0x35d3c8['newRange']){'formatInline'==_0x46d801&&(_0x225d43=_0x225d43||Et(_0x35d3c8['newRange'],_0x5e72cd,_0x965906,_0xdcb584['model']['schema']));const _0x24532c='attribute'==_0x46d801&&this['_isBlockAttribute'](_0x351be4['split']('|')[0x0]);if(_0x35d3c8['newRange']['isCollapsed']||'$graveyard'==_0x35d3c8['newRange']['root']['rootName']||'formatBlock'==_0x46d801&&!Ut(_0x35d3c8['newRange'])||_0x24532c&&!Ut(_0x35d3c8['newRange'])||'deletion'==_0x46d801&&!(!Tt(_0x4755fb=_0x35d3c8['newRange'])&&!function(_0x46b3b7){return _0x46b3b7['start']['parent']==_0x46b3b7['end']['nodeBefore']&&_0x46b3b7['start']['isAtEnd'];}(_0x4755fb)))_0x965906['removeMarker'](_0x5e72cd),_0x225d43=!0x0;else{if(!_0x1e8ddd||!_0x1e8ddd['isInContent'])continue;_0x1a1ff2['add'](_0x1e8ddd);}}}var _0x4755fb;return _0x1a1ff2['size']>0x0&&(_0x225d43=!!this['_joinWithAdjacentSuggestions'](_0x1a1ff2)||_0x225d43),_0x225d43;}),_0xdcb584['model']['document']['registerPostFixer'](_0x257aa0=>{let _0x5b3270=!0x1;for(const _0x5c1978 of _0xdcb584['model']['document']['differ']['getChanges']())if('insert'==_0x5c1978['type'])for(const _0x1c7144 of this['_suggestions']['values']()){if(_0x1c7144['isMultiRange']||!_0x1c7144['isInContent'])continue;const _0x50d711='formatBlock'==_0x1c7144['type'],_0xa77e76=this['_getAttributeKey'](_0x1c7144),_0x5a6003=_0xa77e76&&this['_isBlockAttribute'](_0xa77e76);if(!_0x50d711&&!_0x5a6003)continue;const _0x17f0b2=_0x1c7144['getFirstRange']();if(_0x17f0b2['start']['parent']!=_0x17f0b2['end']['parent']&&!_0x17f0b2['end']['isAtEnd']){const _0x1c6a41=_0xdcb584['model']['createPositionAt'](_0x17f0b2['start']['nodeAfter'],'end'),_0x382116=_0xdcb584['model']['createRange'](_0x17f0b2['start'],_0x1c6a41);_0x257aa0['updateMarker'](_0x1c7144['getFirstMarker'](),{'range':_0x382116}),_0x5b3270=!0x0;}}return _0x5b3270;}),_0xdcb584['model']['document']['registerPostFixer'](_0x132e06=>this['_processAttributeChanges'](_0x132e06)),_0xdcb584['model']['document']['registerPostFixer'](_0x56be76=>!_0x56be76['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x56be76)),_0xdcb584['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xdcb584['model']['document']['on']('change:data',(_0x7253ba,_0x3b7b0d)=>{if(!_0x3b7b0d['isLocal']||_0x3b7b0d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x35388c=_0xdcb584['model']['document']['differ']['getChanges']();if(0x0==_0x35388c['length'])return;const _0x5da3cc=[],_0x56945c=_0x35388c['filter'](_0x3def9d=>'attribute'==_0x3def9d['type']),_0x198021=_0x35388c['filter'](_0xbdb744=>'insert'==_0xbdb744['type']&&'$text'!=_0xbdb744['name']);for(const _0xd45d02 of _0x56945c)this['_isRegisteredAttribute'](_0xd45d02['attributeKey'])&&_0x5da3cc['push']({'key':_0xd45d02['attributeKey'],'newValue':_0xd45d02['attributeNewValue'],'oldValue':_0xd45d02['attributeOldValue'],'range':Ot(_0xd45d02['range'],_0xdcb584['model'])});for(const _0x287ac9 of _0x198021){if('rename'!=_0x287ac9['action']&&'refresh'!=_0x287ac9['action'])continue;const _0x1ceef6=Gt(_0x287ac9['position']['nodeAfter'],_0xdcb584['model']),_0x8b68e3=_0x287ac9['before'];'rename'==_0x287ac9['action']&&_0x5da3cc['push']({'key':m,'newValue':_0x287ac9['name'],'oldValue':_0x8b68e3['name'],'range':_0x1ceef6});for(const [_0x47a683,_0x549195]of _0x8b68e3['attributes']){if(!this['_isRegisteredAttribute'](_0x47a683))continue;const _0x2d622c=_0x287ac9['attributes']['get'](_0x47a683);_0x549195!==_0x2d622c&&_0x5da3cc['push']({'key':_0x47a683,'newValue':_0x2d622c,'oldValue':_0x549195,'range':_0x1ceef6});}for(const [_0x3d8b21,_0x4328b3]of _0x287ac9['attributes'])this['_isRegisteredAttribute'](_0x3d8b21)&&(_0x8b68e3['attributes']['has'](_0x3d8b21)||_0x5da3cc['push']({'key':_0x3d8b21,'newValue':_0x4328b3,'oldValue':null,'range':_0x1ceef6}));}0x0!=_0x5da3cc['length']&&_0xdcb584['model']['enqueueChange'](_0x3b7b0d,_0x538883=>{const _0x45ddc9=_0x58019d();for(const {range:_0x24a2ff,key:_0x5069e6,oldValue:_0x272895,newValue:_0x579300}of _0x5da3cc)this['markAttributeChange'](_0x24a2ff,_0x5069e6,_0x272895,_0x579300,{'groupId':_0x45ddc9});this['_reduceExistingSuggestions'](_0x538883,_0x5da3cc);});},{'priority':'lowest'}),_0xdcb584['model']['markers']['on']('update:suggestion',(_0x43be28,_0x370667,_0x286176)=>{if(null==_0x286176){const {id:_0x3fc0bf}=this['_splitMarkerName'](_0x370667['name']),_0x3f7538=this['_suggestions']['get'](_0x3fc0bf);_0x3f7538&&_0x3f7538['addMarkerName'](_0x370667['name']);}}),_0xdcb584['model']['document']['on']('change:data',()=>{const _0x15c856=Array['from'](_0xdcb584['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2fb99=>'suggestion'===this['_splitMarkerName'](_0x2fb99['name'])['group']);if(0x0===_0x15c856['length'])return;_0x15c856['sort']((_0x166611,_0x250348)=>{const _0x4c9133=_0x166611['data']['oldRange'],_0x264ea1=_0x250348['data']['oldRange'];return null===_0x4c9133&&null===_0x264ea1?0x0:null===_0x4c9133&&null!==_0x264ea1?-0x1:null!==_0x4c9133&&null===_0x264ea1?0x1:_0x4c9133['start']['isBefore'](_0x264ea1['start'])?-0x1:0x1;});const _0x4cf0ca=new Set(),_0x56e817=new Set();for(const {name:_0x5364ee,data:_0x30eb58}of _0x15c856){const {id:_0x316526}=this['_splitMarkerName'](_0x5364ee);if(null===_0x30eb58['oldRange']){const _0x1446aa=this['_handleNewSuggestionMarker'](_0x5364ee);_0x56e817['add'](_0x1446aa);}else{const _0x568523=this['_suggestions']['get'](_0x316526);null!==_0x30eb58['newRange']||_0x568523['isInContent']?(_0x4cf0ca['add'](_0x568523['head']),_0x56e817['add'](_0x568523)):this['_removeSuggestion'](_0x568523);}}_0x56e817['size']>0x0&&this['_refreshSuggestionsChain'](_0x56e817);for(const _0x42ac84 of _0x4cf0ca)this['fire']('suggestionChanged',_0x42ac84);}),_0xdcb584['model']['on']('applyOperation',(_0x3aa42a,_0x111ec5)=>{const _0x259868=_0x111ec5[0x0];if(!this['_suggestions']['size'])return;if(!_0x259868['isDocumentOperation'])return;if(_0x259868['batch']['isUndo']||!_0x259868['batch']['isLocal'])return;let _0x2a0697,_0x4f814c;switch(_0x259868['type']){case'insert':_0x2a0697=_0xdcb584['model']['createPositionAt'](_0x259868['position']),_0x4f814c=_0x2a0697['getShiftedBy'](_0x259868['howMany']);break;case'split':_0x2a0697=_0xdcb584['model']['createPositionAt'](_0x259868['splitPosition']),_0x4f814c=_0xdcb584['model']['createPositionAt'](_0x259868['moveTargetPosition']);break;case'move':_0x2a0697=_0xdcb584['model']['createPositionAt'](_0x259868['targetPosition']),_0x4f814c=_0x2a0697['getShiftedBy'](_0x259868['howMany']);break;default:return;}const _0x38884d=_0xdcb584['model']['createRange'](_0x2a0697,_0x4f814c);_0xdcb584['model']['change'](()=>{for(const {suggestion:_0x4eb9c2,meta:_0x177225}of this['_findSuggestions'](_0x38884d)){if(_0x4eb9c2['isMultiRange'])continue;if('formatInline'==_0x4eb9c2['type'])continue;const _0x123e17=this['_getAttributeKey'](_0x4eb9c2);if(_0x123e17&&this['_isBlockAttribute'](_0x123e17)&&'split'!=_0x259868['type'])continue;const _0xfd4b8d=_0x4eb9c2['data']&&_0x4eb9c2['data']['multipleBlocks'];('formatBlock'!=_0x4eb9c2['type']||'split'==_0x259868['type']&&!_0xfd4b8d)&&(_0x177225['containsRangeInObject']||'insertion'==_0x4eb9c2['type']&&_0x177225['isOwn']||_0x4eb9c2['getFirstRange']()['containsRange'](_0x38884d)&&this['_breakSuggestionMarker'](_0x4eb9c2,_0x2a0697,_0x4f814c));}});},{'priority':'lowest'}),_0xdcb584['model']['on']('deleteContent',(_0x3fe859,_0x2cb498)=>{const _0xd6b414=_0x2cb498[0x0],_0x196d11=_0x2cb498[0x1];if(_0x196d11&&_0x196d11['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd6b414['isCollapsed'])return;const _0x2695e5=_0xdcb584['model']['schema'],{start:_0x3e3817,end:_0x18529e}=_0xd6b414['getFirstRange'](),_0xa1e8e1=_0x3e3817['nodeAfter']&&_0x2695e5['isLimit'](_0x3e3817['nodeAfter'])?null:_0x2695e5['getNearestSelectionRange'](_0x3e3817,'forward'),_0x4e09d2=_0x18529e['nodeBefore']&&_0x2695e5['isLimit'](_0x18529e['nodeBefore'])?null:_0x2695e5['getNearestSelectionRange'](_0x18529e,'backward'),_0x3eb303=_0xdcb584['model']['createRange'](_0xa1e8e1?_0xa1e8e1['start']:_0x3e3817,_0x4e09d2?_0x4e09d2['end']:_0x18529e);_0xdcb584['model']['change'](_0x53f842=>{this['markDeletion'](_0x3eb303);const _0x5d543b=_0xdcb584['model']['schema']['getNearestSelectionRange'](_0x3eb303['start']);_0xd6b414['is']('documentSelection')?_0x53f842['setSelection'](_0x5d543b):_0xd6b414['setTo'](_0x5d543b);}),_0x3fe859['stop']();},{'priority':_0x3f0408['normal']+0xa}),_0xdcb584['model']['on']('insertContent',(_0x1a417c,_0x2a96e3)=>{const _0x40985a=_0x2a96e3[_0x2a96e3['length']-0x1];_0x40985a&&_0x40985a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xdcb584['model']['change'](()=>{let _0x572353=_0xdcb584['model']['insertContent'](_0x2a96e3[0x0],_0x2a96e3[0x1],_0x2a96e3[0x2],{'forceDefaultExecution':!0x0});if(!_0x572353)return;_0x1a417c['return']=_0x572353['clone']();const _0x578e9e=_0x572353['end']['nodeBefore'],_0xc6d22d=_0xdcb584['model']['schema'];_0x578e9e&&_0xc6d22d['isBlock'](_0x578e9e)&&!_0xc6d22d['isObject'](_0x578e9e)&&(_0x572353=_0xdcb584['model']['createRange'](_0x572353['start'],_0xdcb584['model']['createPositionAt'](_0x578e9e,'end'))),this['markInsertion'](_0x572353);}),_0x1a417c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x172bf1=new $(_0xdcb584,this['_suggestions']);_0xdcb584['commands']['add']('acceptSuggestion',_0x172bf1),this['enableCommand']('acceptSuggestion');const _0x17203c=new B(_0xdcb584,this['_suggestions']);_0xdcb584['commands']['add']('discardSuggestion',_0x17203c),this['enableCommand']('discardSuggestion'),_0xdcb584['commands']['add']('acceptAllSuggestions',new x(_0xdcb584,_0x172bf1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xdcb584['commands']['add']('discardAllSuggestions',new x(_0xdcb584,_0x17203c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xdcb584['commands']['add']('acceptSelectedSuggestions',new R(_0xdcb584,_0x172bf1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xdcb584['commands']['add']('discardSelectedSuggestions',new R(_0xdcb584,_0x17203c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x23fa6b=_0xdcb584['plugins']['get']('CommentsRepository');this['listenTo'](_0x23fa6b,'addComment',(_0xfe5a7a,{threadId:_0x1dfe92})=>{const _0xf755a5=this['_suggestions']['get'](_0x1dfe92);_0xf755a5&&_0xf755a5['commentThread']&&0x1===_0xf755a5['commentThread']['length']&&this['_updateSuggestionData'](_0x1dfe92,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x23fa6b,'removeComment',(_0x4fd32a,{threadId:_0x2844ec})=>{const _0xb3c678=this['_suggestions']['get'](_0x2844ec);_0xb3c678&&_0xb3c678['commentThread']&&!_0xb3c678['commentThread']['length']&&this['_updateSuggestionData'](_0x2844ec,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x530254){if(this['_adapter'])throw new _0x56ae75('track-changes-adapter-already-set',this);this['_adapter']=_0x530254;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x13df2f=!0x1,toJSON:_0x2742aa=!0x1}={}){const _0x475e98=[];for(const _0x1be8c0 of this['_suggestions']['values']())_0x13df2f&&!_0x1be8c0['isInContent']||_0x475e98['push'](_0x1be8c0);return _0x2742aa?_0x475e98['map'](_0x38cf5b=>_0x38cf5b['toJSON']()):_0x475e98;}['getSuggestion'](_0x31f055){const _0x50815b=this['_suggestions']['get'](_0x31f055);if(!_0x50815b)throw new _0x56ae75('track-changes-suggestion-not-found',this);return _0x50815b;}['hasSuggestion'](_0x54fa38){return this['_suggestions']['has'](_0x54fa38);}['addSuggestionData'](_0x191360){const {authorId:_0x35d8c6,id:_0x85a4c7,attributes:_0x3cb684}=_0x191360,[_0x98f655,_0x1fc11d]=_0x191360['type']['split'](':'),_0x1057f8=this['_suggestions']['get'](_0x85a4c7)||this['_createSuggestion'](_0x98f655,_0x1fc11d,_0x85a4c7,_0x35d8c6,_0x3cb684);if(this['_addThreadToSuggestion'](_0x1057f8),this['_checkSuggestionCorrectness'](_0x1057f8,_0x98f655,_0x1fc11d||null,_0x35d8c6),_0x1057f8['createdAt']=_0x191360['createdAt'],_0x1057f8['_isDataLoaded']=!0x0,_0x3cb684&&_0x3cb684['@external']){const _0x3d13a0=_0x3cb684['@external'],_0x3d7210=this['_getExternalAuthor'](_0x3d13a0['authorName']);_0x1057f8['authoredAt']=_0x3d13a0['createdAt'],_0x1057f8['author']=_0x3d7210,_0x1057f8['isExternal']=!0x0;}else _0x1057f8['authoredAt']=_0x191360['createdAt'];switch(_0x191360['data']&&(_0x1057f8['data']=_0x191360['data']),_0x191360['attributes']&&(_0x1057f8['attributes']=_0x191360['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1057f8['_saved']=!0x0),this['_suggestionState']['get'](_0x1057f8)){case'notReady':this['_suggestionState']['set'](_0x1057f8,'dataReady');break;case'markerReady':_0x1057f8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1057f8])),this['_refreshSuggestionsChain'](new Set([_0x1057f8])),this['_suggestionState']['set'](_0x1057f8,'ready'),this['fire']('suggestionLoaded',_0x1057f8)):this['_suggestionState']['set'](_0x1057f8,'removed');}return _0x1057f8;}['acceptSuggestion'](_0x13dd39){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41009a of _0x13dd39['getAllAdjacentSuggestions']())_0x41009a['accept']();});});}['discardSuggestion'](_0x4c2353){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xcb02aa of _0x4c2353['getAllAdjacentSuggestions']())_0xcb02aa['discard']();});});}['enableCommand'](_0x3e2e5b,_0x3c7956){const _0x29b474=this['editor']['commands']['get'](_0x3e2e5b);if(!_0x29b474)throw new _0x56ae75('track-changes-command-not-found',this,{'commandName':_0x3e2e5b});if(this['_enabledCommands']['has'](_0x29b474))throw new _0x56ae75('track-changes-enable-command-twice',this,{'commandName':_0x3e2e5b});this['_enabledCommands']['add'](_0x29b474),_0x3c7956&&_0x29b474['on']('execute',(_0x4d46e5,_0x4c19d8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4c19d8['length']>0x0&&_0x4c19d8[_0x4c19d8['length']-0x1]&&_0x4c19d8[_0x4c19d8['length']-0x1]['forceDefaultExecution']?_0x4c19d8['pop']():(_0x4d46e5['return']=_0x3c7956((..._0x50630a)=>_0x29b474['execute'](..._0x50630a,{'forceDefaultExecution':!0x0}),..._0x4c19d8),_0x4d46e5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3e0729){let _0x1162d3,_0x33fc07;const _0x4c41c1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1162d3=_0x3e0729();}catch(_0x1fd9bc){_0x33fc07=_0x1fd9bc;}return _0x4c41c1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x33fc07&&_0x56ae75['rethrowUnexpectedError'](_0x33fc07,this),_0x1162d3;}['markInsertion'](_0x2e6d5a,_0x2c6264=null,_0x503453={}){if(_0x2e6d5a['isCollapsed'])return null;const _0x5d9f6a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x11eca3,meta:_0xe6e7e7}of this['_findSuggestions'](_0x2e6d5a,'insertion'))if(_0xe6e7e7['isOwn']){if(!_0xe6e7e7['isNextTo']){if(_0xe6e7e7['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x11eca3,_0x503453))continue;return _0x11eca3;}if(Lt(_0x11eca3,_0x503453))return _0x11eca3;this['_breakSuggestionMarker'](_0x11eca3,_0x2e6d5a['start'],_0x2e6d5a['end']);break;}if(_0x2c6264==_0x11eca3['subType']&&Lt(_0x11eca3,_0x503453)){const _0x30bf0b=_0x11eca3['getFirstRange']();return _0x30bf0b['start']['isEqual'](_0x2e6d5a['end'])?this['_setSuggestionRange'](_0x11eca3,this['_model']['createRange'](_0x2e6d5a['start'],_0x30bf0b['end'])):this['_setSuggestionRange'](_0x11eca3,this['_model']['createRange'](_0x30bf0b['start'],_0x2e6d5a['end'])),_0x11eca3;}}const _0x2066d8=_0x58019d(),_0x28b46e=_0x5d9f6a['id'],_0xc77980=_0x2c6264?'insertion:'+_0x2c6264:'insertion',_0x7b206e=this['_setSuggestionData']({'id':_0x2066d8,'type':_0xc77980,'createdAt':new Date(),'authorId':_0x28b46e,'attributes':_0x503453});return this['_addSuggestionMarker'](_0xc77980,_0x2066d8,_0x28b46e,_0x2e6d5a),_0x7b206e;}['markMultiRangeInsertion'](_0x25d188,_0x5a55ce='multi',_0x181cc4={}){const _0x2f1d81=this['editor']['plugins']['get']('Users')['me'],_0x406bca=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5a55ce,'join');for(const _0x3eb3c9 of this['getSuggestions']())if(_0x3eb3c9['author']['id']==_0x2f1d81['id']&&'insertion'==_0x3eb3c9['type']&&_0x3eb3c9['subType']==_0x5a55ce&&Lt(_0x3eb3c9,_0x181cc4)&&(_0x406bca(_0x3eb3c9['getRanges'](),_0x25d188)||_0x406bca(_0x25d188,_0x3eb3c9['getRanges']()))){for(const _0x5b8f18 of _0x25d188)_0x3eb3c9['addRange'](_0x5b8f18);return _0x3eb3c9;}for(const {suggestion:_0x234c50,meta:_0x57bce3}of this['_findSuggestions'](_0x25d188,'insertion')){if(!_0x57bce3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x57bce3['containsRangeInObject'])continue;if(!Lt(_0x234c50,_0x181cc4))continue;let _0x3fd2c5=!0x0;for(const _0x40b9e4 of _0x234c50['getRanges']())for(const _0x63a41b of _0x25d188)if(!_0x40b9e4['containsRange'](_0x63a41b)){_0x3fd2c5=!0x1;break;}if(_0x3fd2c5)return _0x234c50;}const _0x21a8c3=_0x58019d(),_0x56c1bd=_0x2f1d81['id'],_0xd21fbd='insertion:'+_0x5a55ce,_0x3acfa6=this['_setSuggestionData']({'id':_0x21a8c3,'type':_0xd21fbd,'createdAt':new Date(),'authorId':_0x56c1bd,'attributes':_0x181cc4});for(const _0x18758c of _0x25d188)this['_addSuggestionMarker'](_0xd21fbd,_0x21a8c3,_0x56c1bd,_0x18758c,u['getMultiRangeId']());return _0x3acfa6;}['markInlineFormat'](_0x3d047a,_0x800397,_0x27447d=null,_0x135f69={}){if(_0x27447d=_0x27447d||Vt(_0x800397),_0x3d047a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4624b7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27447d,'accept');return this['forceDefaultExecution'](()=>_0x4624b7([_0x3d047a],_0x800397,_0x135f69)),null;}const _0x4bf653=this['editor']['plugins']['get']('Users')['me'],_0x3fd499=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x943775,meta:_0x5815e8}of this['_findSuggestions'](_0x3d047a,'insertion'))_0x5815e8['isOwn']&&!_0x5815e8['isInsideObject']&&_0x3fd499['push'](..._0x943775['getRanges']());}const _0x1b39f2=function(_0x2f0415,_0x62053e){const _0x1c952b=[];for(const _0x1e03dd of _0x62053e){const _0x3bb57e=_0x2f0415['getIntersection'](_0x1e03dd);_0x3bb57e&&_0x1c952b['push'](_0x3bb57e);}return _0x1c952b;}(_0x3d047a,_0x3fd499),_0x371110=function(_0x8e7e37,_0x205fa6){const _0x264a33=[_0x8e7e37];for(const _0x48fea0 of _0x205fa6){let _0x505f43=0x0;for(;_0x505f43<_0x264a33['length'];){const _0x5a0e43=_0x264a33[_0x505f43]['getDifference'](_0x48fea0);_0x264a33['splice'](_0x505f43,0x1,..._0x5a0e43),_0x505f43+=_0x5a0e43['length'];}}return _0x264a33;}(_0x3d047a,_0x3fd499);_0x1b39f2['length']&&this['_model']['change'](()=>{for(const _0x1c2e38 of _0x1b39f2){const _0x16aeed=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27447d,'accept');this['forceDefaultExecution'](()=>_0x16aeed([_0x1c2e38],_0x800397,_0x135f69));}});for(const _0x5beb2c of _0x371110){let _0xe1497d=null,_0x167b04=_0x5beb2c['start'],_0x260c79=_0x5beb2c['end'];for(const {suggestion:_0xa5ace7,meta:_0x5b4ebc}of this['_findSuggestions'](_0x5beb2c,'formatInline')){if(!_0x5b4ebc['isOwn'])continue;if(_0xa5ace7['subType']!=_0x27447d)continue;if(!Lt(_0xa5ace7,_0x135f69))continue;const _0x82fd21=_0xa5ace7['getFirstRange']();if(_0x82fd21['containsRange'](_0x5beb2c,!0x0))return null;_0x167b04=_0x167b04['isBefore'](_0x82fd21['start'])?_0x167b04:_0x82fd21['start'],_0x260c79=_0x260c79['isAfter'](_0x82fd21['end'])?_0x260c79:_0x82fd21['end'],_0xe1497d?_0x82fd21['start']['isBefore'](_0xe1497d['getFirstRange']()['start'])?(_0xe1497d['removeMarkers'](),_0xe1497d=_0xa5ace7):_0xa5ace7['removeMarkers']():_0xe1497d=_0xa5ace7;}const _0x44cf15=this['_model']['createRange'](_0x167b04,_0x260c79);if(_0xe1497d)this['_setSuggestionRange'](_0xe1497d,_0x44cf15);else{const _0x331782=_0x58019d(),_0x5e7662=_0x4bf653['id'];this['_setSuggestionData']({'id':_0x331782,'type':'formatInline:'+_0x27447d,'data':_0x800397,'createdAt':new Date(),'authorId':_0x5e7662,'attributes':_0x135f69}),this['_addSuggestionMarker']('formatInline:'+_0x27447d,_0x331782,_0x5e7662,_0x44cf15);}}return null;}['markBlockFormat'](_0x3cfd87,_0x5e7af9,_0x453406=[],_0x989e04=null,_0x3fcbff={}){_0x5e7af9['formatGroupId']||(_0x5e7af9['formatGroupId']=_0x5e7af9['commandName']),_0x5e7af9['multipleBlocks']=_0x3cfd87['is']('range'),_0x989e04=_0x989e04||Vt(_0x5e7af9);const _0x56558a=_0x453406['map'](_0x307687=>Gt(_0x307687,this['_model'])),_0x3cc8c5=_0x3cfd87['is']('range')?_0x3cfd87:Gt(_0x3cfd87,this['_model']);if('never'===this['_trackFormatChanges']){const _0x121c7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x989e04,'accept');return this['forceDefaultExecution'](()=>_0x121c7f([_0x3cc8c5],_0x5e7af9,_0x3fcbff)),null;}_0x56558a['push'](_0x3cc8c5);let _0x24ce01=!0x0;for(const _0x22e76c of _0x56558a)if(!this['_rangeIsInLocalUserInsertion'](_0x22e76c)){_0x24ce01=!0x1;break;}if(_0x24ce01&&'always'!==this['_trackFormatChanges']){const _0x4429db=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x989e04,'accept');return this['forceDefaultExecution'](()=>_0x4429db([_0x3cc8c5],_0x5e7af9,_0x3fcbff)),null;}let _0x3eb2d5=null,_0x4ae740=_0x3cc8c5['start'],_0x3c9f62=_0x3cc8c5['end'];for(const {suggestion:_0x1346f0,meta:_0x300ac0}of this['_findSuggestions'](_0x3cc8c5,'formatBlock')){if(!_0x300ac0['isOwn'])continue;if(_0x300ac0['isNextTo']||_0x300ac0['containsRangeInObject']||_0x300ac0['isInsideObject'])continue;if(_0x1346f0['data']['formatGroupId']!=_0x5e7af9['formatGroupId'])continue;if(!Lt(_0x1346f0,_0x3fcbff))continue;const _0x61742a=_0x1346f0['getFirstRange']();if(_0x1346f0['subType']==_0x989e04){if(_0x61742a['containsRange'](_0x3cc8c5,!0x0))return null;_0x4ae740=_0x4ae740['isBefore'](_0x61742a['start'])?_0x4ae740:_0x61742a['start'],_0x3c9f62=_0x3c9f62['isAfter'](_0x61742a['end'])?_0x3c9f62:_0x61742a['end'],_0x3eb2d5?_0x61742a['start']['isBefore'](_0x3eb2d5['getFirstRange']()['start'])?(_0x3eb2d5['removeMarkers'](),_0x3eb2d5=_0x1346f0):_0x1346f0['removeMarkers']():_0x3eb2d5=_0x1346f0;}else{const _0x2b2ed=_0x3cc8c5['getIntersection'](_0x61742a);this['_cutOutSuggestionMarker'](_0x1346f0,_0x2b2ed);}}const _0x371e02=this['editor']['plugins']['get']('Users')['me'],_0x50846=_0x58019d(),_0x80092f=_0x371e02['id'];if(_0x3eb2d5)return this['_setSuggestionRange'](_0x3eb2d5,this['_model']['createRange'](_0x4ae740,_0x3c9f62)),_0x3eb2d5;{const _0x5d31c4=this['_setSuggestionData']({'id':_0x50846,'type':'formatBlock:'+_0x989e04,'data':_0x5e7af9,'createdAt':new Date(),'authorId':_0x80092f,'attributes':_0x3fcbff});return this['_addSuggestionMarker']('formatBlock:'+_0x989e04,_0x50846,_0x80092f,this['_model']['createRange'](_0x4ae740,_0x3c9f62)),_0x5d31c4;}}['markMultiRangeBlockFormat'](_0x2342a1,_0x5be0df,_0xcd5a2a=[],_0x2ee4d6=null,_0x330b3b={}){_0x5be0df['formatGroupId']||(_0x5be0df['formatGroupId']=_0x5be0df['commandName']);const _0x4a8f66=_0x2342a1[0x0];_0x5be0df['multipleBlocks']=_0x4a8f66['is']('range'),_0x2ee4d6=_0x2ee4d6||Vt(_0x5be0df);const _0xe954c1=_0xcd5a2a['map'](_0x34cdc0=>Gt(_0x34cdc0,this['_model'])),_0x2c27b7=_0x4a8f66['is']('range')?_0x2342a1:_0x2342a1['map'](_0x26e679=>Gt(_0x26e679,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2ab38d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ee4d6,'accept');return this['forceDefaultExecution'](()=>_0x2ab38d(_0x2c27b7,_0x5be0df,_0x330b3b)),null;}_0xe954c1['push'](..._0x2c27b7);let _0x6c5a7a=!0x0;for(const _0x2b5093 of _0xe954c1)if(!this['_rangeIsInLocalUserInsertion'](_0x2b5093)){_0x6c5a7a=!0x1;break;}if(_0x6c5a7a&&'always'!==this['_trackFormatChanges']){const _0x3f13eb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ee4d6,'accept');return this['forceDefaultExecution'](()=>_0x3f13eb(_0x2c27b7,_0x5be0df,_0x330b3b)),null;}const _0x42f2a8=this['editor']['plugins']['get']('Users')['me'];for(const _0x24d47c of this['getSuggestions']()){if(_0x24d47c['author']['id']!=_0x42f2a8['id'])continue;if('formatBlock'!=_0x24d47c['type']||_0x24d47c['data']['formatGroupId']!=_0x5be0df['formatGroupId'])continue;if(!Lt(_0x24d47c,_0x330b3b))continue;const _0x314e8b=_0x24d47c['subType']==_0x2ee4d6;for(let _0x49ea36=0x0;_0x49ea36<_0x2c27b7['length'];_0x49ea36++){const _0xecb907=_0x2c27b7[_0x49ea36];for(const _0x1a7939 of _0x24d47c['getMarkers']()){const _0x4cbbf3=_0x1a7939['getRange']();if(_0xecb907['isEqual'](_0x4cbbf3)){_0x314e8b?(_0x2c27b7['splice'](_0x49ea36,0x1),_0x49ea36--):_0x24d47c['removeMarker'](_0x1a7939['name']);break;}}}}if(0x0==_0x2c27b7['length'])return null;const _0x2e6807=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ee4d6,'join');for(const _0x334d2c of this['getSuggestions']())if(_0x334d2c['author']['id']==_0x42f2a8['id']&&'formatBlock'==_0x334d2c['type']&&_0x334d2c['data']['formatGroupId']==_0x5be0df['formatGroupId']&&_0x334d2c['subType']==_0x2ee4d6&&Lt(_0x334d2c,_0x330b3b)&&(_0x2e6807(_0x334d2c['getRanges'](),_0x2c27b7)||_0x2e6807(_0x2c27b7,_0x334d2c['getRanges']()))){for(const _0x1df311 of _0x2c27b7)_0x334d2c['addRange'](_0x1df311);return _0x334d2c;}const _0x3f5e47=_0x58019d(),_0x583f7e=_0x42f2a8['id'],_0x37e9ba='formatBlock:'+_0x2ee4d6,_0xde7ef4=this['_setSuggestionData']({'id':_0x3f5e47,'type':_0x37e9ba,'data':_0x5be0df,'createdAt':new Date(),'authorId':_0x583f7e,'attributes':_0x330b3b});for(const _0xc9aa65 of _0x2c27b7)this['_addSuggestionMarker'](_0x37e9ba,_0x3f5e47,_0x583f7e,_0xc9aa65,u['getMultiRangeId']());return _0xde7ef4;}['markDeletion'](_0x1f9088,_0x149cb9=null,_0xbfc450={}){if(_0x1f9088['isCollapsed'])return null;const _0x48da5e=this['editor']['plugins']['get']('Users')['me'],_0x422a80=new _0x17267b(_0x1f9088['start'],_0x1f9088['end']);for(const {suggestion:_0x4c0ffe,meta:_0xa7cd41}of this['_findSuggestions'](_0x422a80,'insertion'))if(_0xa7cd41['isOwn']&&!_0xa7cd41['isNextTo']){if(_0x4c0ffe['isMultiRange']){const _0x11b10d=_0x4c0ffe['getRanges']()['filter'](_0x162668=>'$graveyard'!=_0x162668['root']['rootName']);_0x11b10d['every'](_0x189076=>_0x422a80['containsRange'](_0x189076,!0x0))&&_0x4c0ffe['discard']();if(_0x11b10d['some'](_0x139403=>_0x139403['containsRange'](_0x422a80,!0x0))){const _0x3d6eb4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x149cb9,'accept');return this['forceDefaultExecution'](()=>_0x3d6eb4([_0x422a80],null,_0xbfc450)),null;}}else{const _0x182d9d=_0x422a80['getIntersection'](_0x4c0ffe['getFirstRange']());null!==_0x182d9d&&_0x4c0ffe['_onDiscard']([_0x182d9d],null,_0xbfc450);}}if(_0x422a80['detach'](),_0x422a80['isCollapsed']||'$graveyard'==_0x422a80['root']['rootName'])return null;let _0x463682=null,_0x3f6968=_0x422a80['start'],_0x3879a5=_0x422a80['end'];const _0x408389=this['_findSuggestions'](_0x422a80,'deletion');for(const {suggestion:_0x43d497,meta:_0x5e1583}of _0x408389){const _0x2c2bee=this['_model']['createRange'](_0x3f6968,_0x3879a5);if(_0x5e1583['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5e1583['containsRangeInObject']&&!_0x5e1583['isInsideObject'])){if(_0x43d497['isMultiRange']){if(!Lt(_0x43d497,_0xbfc450))continue;let _0x3bf3f5=!0x0;for(const _0x8c383e of _0x43d497['getRanges']()){if(_0x8c383e['containsRange'](_0x2c2bee,!0x0))return _0x43d497;_0x2c2bee['containsRange'](_0x8c383e)||(_0x3bf3f5=!0x1);}_0x3bf3f5&&_0x43d497['discard']();}else{const _0x432d7c=_0x43d497['getFirstRange']();if(_0x432d7c['containsRange'](_0x2c2bee,!0x0))return _0x43d497;if(!Lt(_0x43d497,_0xbfc450)){_0x2c2bee['containsRange'](_0x432d7c)?_0x43d497['removeMarkers']():_0x432d7c['containsPosition'](_0x3f6968)?_0x3f6968=_0x432d7c['end']:_0x432d7c['containsPosition'](_0x3879a5)&&(_0x3879a5=_0x432d7c['start']);continue;}_0x3f6968=_0x3f6968['isBefore'](_0x432d7c['start'])?_0x3f6968:_0x432d7c['start'],_0x3879a5=_0x3879a5['isAfter'](_0x432d7c['end'])?_0x3879a5:_0x432d7c['end'],_0xbfc450=Object['assign']({},_0x43d497['attributes']),_0x463682?_0x432d7c['start']['isBefore'](_0x463682['getFirstRange']()['start'])?(_0x463682['removeMarkers'](),_0x463682=_0x43d497):_0x43d497['removeMarkers']():_0x463682=_0x43d497;}}}if(_0x463682)return this['_setSuggestionRange'](_0x463682,this['_model']['createRange'](_0x3f6968,_0x3879a5)),_0x463682;{const _0x5d2b21=_0x58019d(),_0xdc0546=this['_model']['createRange'](_0x3f6968,_0x3879a5),_0x5a53b9=_0x48da5e['id'],_0x2ef133=_0x149cb9?'deletion:'+_0x149cb9:'deletion',_0x4fd654=this['_setSuggestionData']({'id':_0x5d2b21,'type':_0x2ef133,'createdAt':new Date(),'authorId':_0x5a53b9,'attributes':_0xbfc450});return this['_addSuggestionMarker'](_0x2ef133,_0x5d2b21,_0x5a53b9,_0xdc0546),_0x4fd654;}}['markMultiRangeDeletion'](_0x369eb7,_0x1452bf='multi',_0xb6f396={}){const _0x2be7e7=this['editor']['plugins']['get']('Users')['me'],_0xd24933=_0x369eb7['map'](_0x4ff2b1=>new _0x17267b(_0x4ff2b1['start'],_0x4ff2b1['end'])),_0xbe0e6b=new Set();for(const {suggestion:_0x42a0fa,meta:_0x1a875d}of this['_findSuggestions'](_0xd24933,'insertion'))_0x1a875d['isOwn']&&!_0x1a875d['isNextTo']&&_0xbe0e6b['add'](_0x42a0fa);for(const _0x58ddb3 of _0xbe0e6b)if(_0x58ddb3['isMultiRange']){const _0x32bc3c=_0x58ddb3['getRanges']();(!_0x58ddb3['attributes']||!_0x58ddb3['attributes']['skipNestingCheck'])&&(_0x32bc3c['every'](_0x18164e=>_0xd24933['some'](_0x42946c=>_0x42946c['containsRange'](_0x18164e,!0x0)))&&_0x58ddb3['discard']());if(_0xd24933['every'](_0x491c3a=>_0x32bc3c['some'](_0x5881a2=>_0x5881a2['containsRange'](_0x491c3a,!0x0)))){const _0x416121=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1452bf,'accept');return this['forceDefaultExecution'](()=>_0x416121(_0x369eb7,null,_0xb6f396)),null;}}else{const _0x5e5023=_0x58ddb3['getFirstRange']();_0xd24933['some'](_0x291b1e=>_0x291b1e['containsRange'](_0x5e5023,!0x0))&&_0x58ddb3['discard']();if(_0xd24933['every'](_0x48db7d=>_0x5e5023['containsRange'](_0x48db7d,!0x0))){const _0x14a71e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1452bf,'accept');return this['forceDefaultExecution'](()=>_0x14a71e(_0xd24933,null,_0xb6f396)),null;}}const _0x4eacd2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1452bf,'join');let _0x37cdb7=null;for(const _0x33cd64 of this['getSuggestions']())if(_0x33cd64['author']['id']==_0x2be7e7['id']&&_0x33cd64['isInContent']&&'deletion'==_0x33cd64['type']&&_0x33cd64['subType']==_0x1452bf&&Lt(_0x33cd64,_0xb6f396)&&(_0x4eacd2(_0x33cd64['getRanges'](),_0xd24933)||_0x4eacd2(_0xd24933,_0x33cd64['getRanges']()))){if(_0x37cdb7){if(_0x33cd64['commentThread']&&_0x33cd64['commentThread']['length'])continue;for(const _0x2660f1 of _0x33cd64['getRanges']())_0x37cdb7['isIntersectingWithRange'](_0x2660f1)||_0x37cdb7['addRange'](_0x2660f1);_0x33cd64['removeMarkers']();}else{_0x37cdb7=_0x33cd64;for(const _0x3d9fb3 of _0xd24933)_0x33cd64['isIntersectingWithRange'](_0x3d9fb3)||_0x33cd64['addRange'](_0x3d9fb3);}}if(_0x37cdb7)return _0x37cdb7;_0xbe0e6b['clear']();for(const {suggestion:_0x15af7d,meta:_0x55e1d1}of this['_findSuggestions'](_0xd24933,'deletion'))_0x55e1d1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x55e1d1['containsRangeInObject']&&!_0x55e1d1['isInsideObject'])&&Lt(_0x15af7d,_0xb6f396)&&_0xbe0e6b['add'](_0x15af7d);for(const _0x5a08bb of _0xbe0e6b){const _0x28b44f=_0x5a08bb['getRanges']();if(!_0xb6f396||!_0xb6f396['skipNestingCheck']){if(_0xd24933['every'](_0x1cb7de=>_0x28b44f['some'](_0x55e3bd=>_0x55e3bd['containsRange'](_0x1cb7de,!0x0))))return _0x5a08bb;}(!_0x5a08bb['attributes']||!_0x5a08bb['attributes']['skipNestingCheck'])&&(_0x28b44f['every'](_0x2e1385=>_0xd24933['some'](_0x2f916a=>_0x2f916a['containsRange'](_0x2e1385,!0x0)))&&_0x5a08bb['discard']());}const _0x133b21=_0x58019d(),_0xe232e2=_0x2be7e7['id'],_0x4ddebb='deletion:'+_0x1452bf,_0x3fc2f8=this['_setSuggestionData']({'id':_0x133b21,'type':_0x4ddebb,'createdAt':new Date(),'authorId':_0xe232e2,'attributes':_0xb6f396});for(const _0x42406e of _0xd24933)_0x42406e['detach'](),_0x42406e['isCollapsed']||'$graveyard'==_0x42406e['root']['rootName']||this['_addSuggestionMarker'](_0x4ddebb,_0x133b21,_0xe232e2,_0x42406e,u['getMultiRangeId']());return _0x3fc2f8;}['markAttributeChange'](_0x3c11d1,_0x55c567,_0x210e63,_0x330ab4,_0x5ac850){if(_0x3c11d1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x509627=this['editor']['plugins']['get']('Users')['me']['id'],_0x544c94=Array['from'](this['_suggestions']['values']())['filter'](_0x22fef2=>'attribute'==_0x22fef2['type']&&_0x22fef2['data']['key']==_0x55c567&&_0x22fef2['isIntersectingWithRange'](_0x3c11d1));if('default'===this['_trackFormatChanges']){const _0x372369=this['_findSuggestions'](_0x3c11d1,'insertion')['filter'](({meta:_0x48a1a7})=>_0x48a1a7['isOwn']&&!_0x48a1a7['isInsideObject']&&!_0x48a1a7['isNextTo'])['map'](({suggestion:_0x5c9437})=>_0x5c9437);_0x544c94['unshift'](..._0x372369);}const _0x19282b=new Map([[_0x3c11d1,_0x210e63]]);for(const _0x212dd0 of _0x544c94){const _0x2b93fa='attribute'==_0x212dd0['type']?_0x212dd0['data']['oldValue']:void 0x0,_0xd692b1=_0x212dd0['getFirstRange'](),_0x2be6ce=Array['from'](_0x19282b['keys']())['find'](_0x1e3a49=>_0x1e3a49['isIntersecting'](_0xd692b1));if(!_0x2be6ce)continue;const _0x119b5b=_0x2be6ce['getDifference'](_0xd692b1);this['_isBlockAttribute'](_0x55c567)&&'insertion'==_0x212dd0['type']&&0x0!=_0x119b5b['length']||(_0x19282b['delete'](_0x2be6ce),_0x119b5b['forEach'](_0x420fe7=>{_0x19282b['set'](_0x420fe7,_0x210e63);}),'insertion'!=_0x212dd0['type']&&_0x2b93fa!=_0x330ab4&&_0x19282b['set'](_0x2be6ce['getIntersection'](_0xd692b1),_0x2b93fa));}const _0x481bb1=[];for(const [_0x4b6a2d,_0x5355ca]of _0x19282b){const _0x3f16b1=_0x58019d(),_0x2d6061={'key':_0x55c567,'oldValue':_0x5355ca,'newValue':_0x330ab4};_0x55c567['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':_0x55c567});const _0x4f0953=('attribute:'+(_0x55c567+'|'+Vt({'newValue':_0x330ab4})))['substring'](0x0,0x3c),_0x42e034=this['_setSuggestionData']({'id':_0x3f16b1,'type':_0x4f0953,'data':_0x2d6061,'createdAt':new Date(),'authorId':_0x509627,'attributes':_0x5ac850});_0x481bb1['push'](_0x42e034),this['_addSuggestionMarker'](_0x4f0953,_0x3f16b1,_0x509627,_0x4b6a2d);}return _0x481bb1;}['enableDefaultAttributesIntegration'](_0x27cbf6){this['enableCommand'](_0x27cbf6,(_0x2b0bf1,..._0x31412b)=>{this['_recordAttributeChanges'](()=>{_0x2b0bf1(..._0x31412b);});});}['registerBlockAttribute'](_0x530b0f){this['_blockAttributeKeys']['add'](_0x530b0f);}['registerInlineAttribute'](_0x17fb96){this['_inlineAttributeKeys']['add'](_0x17fb96);}['_getAttributeKey'](_0x3670cb){return'attribute'==_0x3670cb['type']?_0x3670cb['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1754d3,_0x47344c){const _0x4320aa=_0x1754d3['getFirstMarker']();this['_model']['change'](_0x2f9a8e=>{_0x2f9a8e['updateMarker'](_0x4320aa,{'range':_0x47344c});});}['_addThreadToSuggestion'](_0x2fd153){const _0x5e042d=_0x2fd153['id'],_0x59b2e0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5e042d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x59b2e0,'threadId':_0x5e042d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x444dc0=this['_commentsRepository']['getCommentThread'](_0x5e042d);_0x444dc0['unbind']('isRemovable'),_0x444dc0['isRemovable']=!0x1,_0x2fd153['commentThread']=_0x444dc0;}['_checkSuggestionCorrectness'](_0x447e1e,_0x2964ec,_0x35d755,_0x60d16c){if(_0x447e1e['type']!=_0x2964ec||_0x447e1e['subType']!=_0x35d755||_0x447e1e['creator']['id']!=_0x60d16c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x56ae75('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2f6590,_0x311f36){const _0x39e62f=_0x2f6590['getFirstRange']();if(_0x311f36['isEqual'](_0x39e62f))_0x2f6590['removeMarkers']();else{if(_0x39e62f['containsRange'](_0x311f36)){const _0x263f1b=this['_model']['createPositionAt'](_0x311f36['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f6590,this['_model']['createRange'](_0x39e62f['start'],_0x263f1b));const _0x52866d=_0x58019d(),_0x1d8229=_0x2f6590['creator']['id'],_0x18603e=_0x2f6590['type']+':'+_0x2f6590['subType'];this['_setSuggestionData']({'id':_0x52866d,'type':_0x18603e,'createdAt':new Date(),'authorId':_0x1d8229,'data':_0x2f6590['data'],'attributes':_0x2f6590['attributes']});const _0x171314=this['_model']['createPositionAt'](_0x311f36['end']['parent'],'after'),_0x34c660=this['_model']['createRange'](_0x171314,_0x39e62f['end']);this['_addSuggestionMarker'](_0x18603e,_0x52866d,_0x1d8229,_0x34c660);}else{if(_0x39e62f['containsPosition'](_0x311f36['start'])){const _0x1fb6ea=this['_model']['createPositionAt'](_0x311f36['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f6590,this['_model']['createRange'](_0x39e62f['start'],_0x1fb6ea));}else{const _0x52dac4=this['_model']['createPositionAt'](_0x311f36['end']['parent'],'after');this['_setSuggestionRange'](_0x2f6590,this['_model']['createRange'](_0x52dac4,_0x39e62f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3eee42){for(const {suggestion:_0x2eede8,meta:_0x266078}of this['_findSuggestions'](_0x3eee42,'insertion')){if(!_0x266078['isOwn'])continue;const _0x1430a6=_0x2eede8['getRanges']();for(const _0xeb6161 of _0x1430a6)if(!_0x3eee42['getDifference'](_0xeb6161)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x549cf9){const _0x10ae0f=this['editor']['plugins']['get']('Users')['getUser'](_0x549cf9);if(!_0x10ae0f)throw new _0x56ae75('track-changes-user-not-found',this);return _0x10ae0f;}['_getExternalAuthor'](_0x53a368){const _0x12a8bb=this['editor']['plugins']['get']('Users'),_0x40b65f=_0x40c511('external:'+_0x53a368),_0x2d0289=_0x12a8bb['getUser'](_0x40b65f);return _0x2d0289||_0x12a8bb['addUser']({'id':_0x40b65f,'name':_0x53a368});}['_createSuggestion'](_0x3d3f52,_0x3066e8,_0x5e0f17,_0x3807bc,_0x74bfac){const _0x2ee93e=this['_getAuthorFromId'](_0x3807bc),_0x166617=this['_suggestionFactory']['buildSuggestion'](_0x3d3f52,_0x3066e8,_0x5e0f17,_0x2ee93e,_0x74bfac,_0x16f856=>{this['_updateSuggestionData'](_0x5e0f17,{'attributes':_0x16f856});const _0x3a88ef=this['getSuggestion'](_0x5e0f17);this['_joinWithAdjacentSuggestions'](new Set([_0x3a88ef])),this['_refreshSuggestionsChain'](new Set([_0x3a88ef]));});return this['listenTo'](_0x166617,'accept',()=>{this['_updateSuggestionData'](_0x5e0f17,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x166617,'discard',()=>{this['_updateSuggestionData'](_0x5e0f17,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5e0f17,_0x166617),this['_suggestionState']['set'](_0x166617,'notReady'),_0x166617;}['_splitMarkerName'](_0x4d9561){const _0x5e61f3=_0x4d9561['split'](':');return{'group':_0x5e61f3[0x0],'type':_0x5e61f3[0x1],'subType':_0x5e61f3['length']>=0x5?_0x5e61f3[0x2]:null,'id':_0x5e61f3['length']<0x5?_0x5e61f3[0x2]:_0x5e61f3[0x3],'authorId':_0x5e61f3['length']<0x5?_0x5e61f3[0x3]:_0x5e61f3[0x4],'markerCount':0x6==_0x5e61f3['length']?_0x5e61f3[0x5]:null};}['_breakSuggestionMarker'](_0x4f6789,_0x4a45de,_0xffaabf){const _0x24f1ef=_0x4f6789['getFirstRange'](),_0x40add6=_0x24f1ef['start'],_0x290878=_0x24f1ef['end'];this['_setSuggestionRange'](_0x4f6789,this['_model']['createRange'](_0x40add6,_0x4a45de));const _0x4a99d3=_0x58019d(),_0xc24ce7=_0x4f6789['creator']['id'],_0x2c06f5=_0x4f6789['type']+(_0x4f6789['subType']?':'+_0x4f6789['subType']:'');this['_setSuggestionData']({'id':_0x4a99d3,'type':_0x2c06f5,'createdAt':new Date(),'authorId':_0xc24ce7,'originalSuggestionId':_0x4f6789['id'],'attributes':_0x4f6789['attributes'],'data':_0x4f6789['data']});const _0x566abc=this['_getAttributeKey'](_0x4f6789);('formatBlock'==_0x4f6789['type']||_0x566abc&&this['_isBlockAttribute'](_0x566abc))&&(_0xffaabf=this['_model']['createPositionBefore'](_0xffaabf['parent'])),this['_addSuggestionMarker'](_0x2c06f5,_0x4a99d3,_0xc24ce7,this['_model']['createRange'](_0xffaabf,_0x290878));}['_findSuggestions'](_0x4c2e2b,_0x389c08=null){const _0x49e05f=[],_0x36a093=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4c2e2b)||(_0x4c2e2b=[_0x4c2e2b]);for(const _0x223950 of this['getSuggestions']()){if(!_0x223950['isInContent'])continue;if(_0x389c08&&_0x223950['type']!=_0x389c08)continue;let _0x1be4ea=!0x1;for(const _0x4f0b8e of _0x223950['getRanges']()){for(const _0x24fc36 of _0x4c2e2b){const _0x3a9dc3=_0x24fc36['start']['isEqual'](_0x4f0b8e['end'])||_0x24fc36['end']['isEqual'](_0x4f0b8e['start']);if(_0x3a9dc3||_0x24fc36['getIntersection'](_0x4f0b8e)){const _0x33f0c4=_0x24fc36['containsRange'](_0x4f0b8e)&&Rt(this['_model']['schema'],_0x4f0b8e['start'],_0x24fc36),_0x1d8bdf=_0x4f0b8e['containsRange'](_0x24fc36)&&Rt(this['_model']['schema'],_0x24fc36['start'],_0x4f0b8e);_0x49e05f['push']({'suggestion':_0x223950,'meta':{'isOwn':_0x36a093==_0x223950['author'],'isNextTo':_0x3a9dc3,'isInsideObject':_0x33f0c4,'containsRangeInObject':_0x1d8bdf}}),_0x1be4ea=!0x0;break;}}if(_0x1be4ea)break;}}return _0x49e05f;}['_addSuggestionMarker'](_0x528c77,_0x32dd98,_0x25144f,_0x3f4831,_0x1ef07b){this['_model']['change'](_0xdf6083=>{let _0x4fbc05='suggestion:'+_0x528c77+':'+_0x32dd98+':'+_0x25144f;_0x1ef07b&&(_0x4fbc05=_0x4fbc05+':'+_0x1ef07b),_0xdf6083['addMarker'](_0x4fbc05,{'range':_0x3f4831,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x49fae6){const _0x200d60=_0x49fae6['previous'],_0x18d555=_0x49fae6['next'];_0x49fae6['previous']=null,_0x49fae6['next']=null,null!=_0x200d60&&_0x200d60['next']==_0x49fae6&&(_0x200d60['next']=_0x18d555),null!=_0x18d555&&_0x18d555['previous']==_0x49fae6&&(_0x18d555['previous']=_0x200d60),'ready'==this['_suggestionState']['get'](_0x49fae6)&&(this['_suggestionState']['set'](_0x49fae6,'removed'),this['fire']('suggestionUnloaded',_0x49fae6,_0x200d60,_0x18d555));}['_setSuggestionData'](_0x3ed58c){const _0x586185=_0x3ed58c['id'],_0x282cc2=this['addSuggestionData'](_0x3ed58c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2609c7=this['editor']['plugins']['get']('PendingActions'),_0x295736=_0x282cc2['hasComments'],_0x18d13d=_0x282cc2['subType']?_0x282cc2['type']+':'+_0x282cc2['subType']:_0x282cc2['type'],_0x5a65ca=this['editor']['locale'],_0x5e0528=_0x2609c7['add'](o(_0x5a65ca,'PENDING_ACTION_SUGGESTION')),_0x15b054={'id':_0x586185,'type':_0x18d13d,'hasComments':_0x295736,'data':_0x3ed58c['data']||null,'originalSuggestionId':_0x3ed58c['originalSuggestionId']||null,'attributes':_0x282cc2['attributes']};this['_adapter']['addSuggestion'](_0x15b054)['then'](_0x2d2690=>{_0x282cc2['_saved']=!0x0,_0x2609c7['remove'](_0x5e0528),_0x2d2690&&_0x2d2690['createdAt']&&(this['_suggestions']['get'](_0x586185)['createdAt']=_0x2d2690['createdAt']);})['catch'](_0x4620bc=>{throw _0x7edfd5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x282cc2['discard']();}),_0x282cc2['stopListening'](),this['_suggestions']['delete'](_0x282cc2['id']),this['_suggestionState']['delete'](_0x282cc2),_0x4620bc;});}return _0x282cc2;}['_isBlockAttribute'](_0x520d69){return this['_blockAttributeKeys']['has'](_0x520d69);}['_updateSuggestionData'](_0x6a5a51,_0x1fe23a){const _0x4065be=this['editor']['plugins']['get']('PendingActions'),_0x5eb469=this['getSuggestion'](_0x6a5a51);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5eb469['_saved']){const _0x2adad2=_0x4065be['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x6a5a51,_0x1fe23a)['then'](()=>{_0x4065be['remove'](_0x2adad2);});}else _0x5eb469['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x6a5a51,_0x1fe23a);});}}['_getSuggestionData'](_0x3ceb4f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x56ae75('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3ceb4f);}['_handleNewSuggestionMarker'](_0x3a255f){const {id:_0x563565,type:_0x2eb77b,subType:_0x35af39,authorId:_0x4ea30b}=this['_splitMarkerName'](_0x3a255f),_0x5141a1=this['_suggestions']['get'](_0x563565)||this['_createSuggestion'](_0x2eb77b,_0x35af39,_0x563565,_0x4ea30b,{});switch(this['_checkSuggestionCorrectness'](_0x5141a1,_0x2eb77b,_0x35af39,_0x4ea30b),this['_suggestionState']['get'](_0x5141a1)){case'notReady':this['_getSuggestionData'](_0x563565)['then'](_0x471697=>{let _0x301095=Promise['resolve']();_0x471697['hasComments']&&(_0x301095=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x563565})),_0x301095['then'](()=>{this['addSuggestionData'](_0x471697)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5141a1,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x563565,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5141a1,'ready'),this['fire']('suggestionLoaded',_0x5141a1);break;case'ready':this['fire']('suggestionChanged',_0x5141a1);}return _0x5141a1['addMarkerName'](_0x3a255f),_0x5141a1;}['_refreshSuggestionsChain'](_0x5eb7ae){const _0x218e2f=Array['from'](_0x5eb7ae),_0x46818e=_0x218e2f['filter'](_0x2af4df=>'attribute'==_0x2af4df['type']);this['_refreshAttributeSuggestionsChain'](_0x46818e);const _0x1efd69=_0x218e2f['filter'](_0x44073b=>!_0x44073b['isMultiRange']&&'attribute'!=_0x44073b['type']),_0x5e3444=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32a705=>!_0x32a705['isMultiRange']&&'attribute'!=_0x32a705['type']),_0x3f1080=_0x5e3444['filter'](_0x39a85f=>!_0x5eb7ae['has'](_0x39a85f)),_0x41cfd1=new Map(_0x5e3444['map'](_0x48f8c0=>[_0x48f8c0,this['_suggestionFactory']['getSuggestionCallback'](_0x48f8c0['type'],_0x48f8c0['subType'],'chain')])),_0x5195e6=new Map(_0x5e3444['map'](_0x5a083f=>[_0x5a083f,_0x5a083f['getFirstRange']()])),_0x595b87=new Set(),_0x3eb373=new Set();for(let _0xff9c08=0x0;_0xff9c08<_0x1efd69['length'];_0xff9c08++)_0xe9d36e(_0x1efd69[_0xff9c08],_0x1efd69,_0xff9c08+0x1);for(let _0x2b3900=0x0;_0x2b3900<_0x1efd69['length'];_0x2b3900++)_0xe9d36e(_0x1efd69[_0x2b3900],_0x3f1080,0x0);const _0x568265=new Set();for(let _0x74c760=0x0;_0x74c760<_0x1efd69['length'];_0x74c760++){const _0x34bcb6=_0x1efd69[_0x74c760];!_0x3eb373['has'](_0x34bcb6)&&_0x34bcb6['previous']&&(_0x568265['add'](_0x34bcb6['previous']),_0x34bcb6['previous']['next']===_0x34bcb6&&(_0x34bcb6['previous']['next']=null),_0x34bcb6['previous']=null),!_0x595b87['has'](_0x34bcb6)&&_0x34bcb6['next']&&(_0x568265['add'](_0x34bcb6['next']),_0x34bcb6['next']['previous']===_0x34bcb6&&(_0x34bcb6['next']['previous']=null),_0x34bcb6['next']=null);}function _0xe9d36e(_0x149a34,_0x18a542,_0x46801d){for(let _0x4622ae=_0x46801d;_0x4622ae<_0x18a542['length'];_0x4622ae++){const _0x1cd15a=_0x1610a7(_0x149a34,_0x18a542[_0x4622ae]);_0x1cd15a&&(_0x1cd15a[0x0]['next']=_0x1cd15a[0x1],_0x1cd15a[0x1]['previous']=_0x1cd15a[0x0],_0x595b87['add'](_0x1cd15a[0x0]),_0x3eb373['add'](_0x1cd15a[0x1]));}}function _0x1610a7(_0x1da08a,_0x47ac17){if(_0x1da08a['author']['id']!==_0x47ac17['author']['id'])return null;const _0x3e44ab=_0x41cfd1['get'](_0x1da08a)(_0x1da08a,_0x47ac17,_0x5195e6['get'](_0x1da08a),_0x5195e6['get'](_0x47ac17));if(!_0x3e44ab)return null;return _0x41cfd1['get'](_0x47ac17)(_0x1da08a,_0x47ac17,_0x5195e6['get'](_0x1da08a),_0x5195e6['get'](_0x47ac17))?_0x3e44ab[0x1]['commentThread']&&_0x3e44ab[0x1]['commentThread']['length']?null:_0x3e44ab:null;}_0x568265['size']&&this['_refreshSuggestionsChain'](_0x568265);}['_refreshAttributeSuggestionsChain'](_0x5998){if(0x0==_0x5998['length'])return;const _0x38ddd2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41fe9c=>'attribute'==_0x41fe9c['type']&&_0x41fe9c['_isDataLoaded']),_0x2ea5ab=[],_0x44e8d0=new Map();for(const _0x139dd1 of _0x38ddd2){const _0x49b402=_0x40c511(_0x139dd1['attributes']);_0x44e8d0['has'](_0x49b402)||(_0x44e8d0['set'](_0x49b402,_0x2ea5ab['length']),_0x2ea5ab['push']([]));const _0x875c5c=_0x44e8d0['get'](_0x49b402);_0x2ea5ab[_0x875c5c]['push'](_0x139dd1);}!(function(){_0x2ea5ab['sort']((_0x107867,_0x54269c)=>{const _0x2ec643=_0x107867[0x0]['createdAt'],_0xedcafe=_0x54269c[0x0]['createdAt'];return _0x2ec643==_0xedcafe?_0x107867[0x0]['attributes']['groupId']<_0x54269c[0x0]['attributes']['groupId']?-0x1:0x1:_0x2ec643<_0xedcafe?-0x1:0x1;});for(const _0x29b519 of _0x2ea5ab)_0x29b519['sort']((_0x833bcc,_0x33f7f0)=>_0x833bcc['id']<_0x33f7f0['id']?-0x1:0x1);}());for(let _0x50d7fb=0x0;_0x50d7fb<_0x2ea5ab['length'];_0x50d7fb++){if(0x0==_0x2ea5ab[_0x50d7fb]['length'])continue;const _0x27ea48=[];for(let _0x2f3009=_0x50d7fb+0x1;_0x2f3009<_0x2ea5ab['length'];_0x2f3009++)0x0!=_0x2ea5ab[_0x2f3009]['length']&&_0x42fe4f(_0x2ea5ab[_0x50d7fb],_0x2ea5ab[_0x2f3009])&&_0x27ea48['push'](_0x2f3009);for(const _0x44b99c of _0x27ea48)_0x2ea5ab[_0x50d7fb]=_0x2ea5ab[_0x50d7fb]['concat'](_0x2ea5ab[_0x44b99c]),_0x2ea5ab[_0x44b99c]=[];}for(const _0x5f0aa7 of _0x2ea5ab)for(let _0x5f2086=0x0;_0x5f2086<_0x5f0aa7['length'];_0x5f2086++)_0x5f0aa7[_0x5f2086]['next']=_0x5f0aa7[_0x5f2086+0x1]||null;for(const _0x4c8404 of _0x2ea5ab)for(let _0x5f0701=0x0;_0x5f0701<_0x4c8404['length'];_0x5f0701++)_0x4c8404[_0x5f0701]['previous']=_0x4c8404[_0x5f0701-0x1]||null;function _0x42fe4f(_0x23cdc8,_0x314beb){if(_0x23cdc8[0x0]['attributes']['groupId']!==_0x314beb[0x0]['attributes']['groupId']&&_0x23cdc8[0x0]['author']!==_0x314beb[0x0]['author'])return!0x1;if(!function(_0x3f1323,_0x27d394){if(!_0x3f1323['hasComments']&&!_0x27d394['hasComments'])return!0x0;if(_0x3f1323['hasComments']&&_0x27d394['hasComments'])return!0x1;if(_0x3f1323['hasComments']&&_0x27d394['createdAt']<_0x3f1323['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x27d394['hasComments']&&_0x3f1323['createdAt']<_0x27d394['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x23cdc8[0x0],_0x314beb[0x0]))return!0x1;const _0x103186=Bt(_0x23cdc8[0x0]['attributes'],'groupId'),_0x25e0fe=Bt(_0x314beb[0x0]['attributes'],'groupId');if(!_0xd4c736(_0x103186,_0x25e0fe))return!0x1;return!!_0x23cdc8['every'](_0x2719e6=>_0x314beb['some'](_0x4e9ad4=>_0x2719e6['getFirstRange']()['isEqual'](_0x4e9ad4['getFirstRange']())))&&_0x314beb['every'](_0x18bd4f=>_0x23cdc8['some'](_0x622b38=>_0x18bd4f['getFirstRange']()['isEqual'](_0x622b38['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4f52da){const _0x38a8c6=Array['from'](_0x4f52da),_0xcdb7e3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4c4966=_0xcdb7e3['filter'](_0x1c8d4a=>!_0x4f52da['has'](_0x1c8d4a)),_0x696857=new Map(_0x38a8c6['map'](_0x14645a=>[_0x14645a,this['_suggestionFactory']['getSuggestionCallback'](_0x14645a['type'],_0x14645a['subType'],'join')])),_0x3cd8c7=new Map(_0xcdb7e3['map'](_0x153d25=>[_0x153d25,_0x153d25['getRanges']()]));for(let _0x3503f9=0x0;_0x3503f9<_0x38a8c6['length'];_0x3503f9++){if(_0x1babf8(this,_0x38a8c6[_0x3503f9],_0x38a8c6,_0x3503f9+0x1))return!0x0;}for(let _0x432134=0x0;_0x432134<_0x38a8c6['length'];_0x432134++){if(_0x1babf8(this,_0x38a8c6[_0x432134],_0x4c4966,0x0))return!0x0;}return!0x1;function _0x1babf8(_0x1092b9,_0x7fd995,_0x2d781d,_0x42ac97){for(let _0x35ad7d=_0x42ac97;_0x35ad7d<_0x2d781d['length'];_0x35ad7d++){const _0x500f8e=_0x2d781d[_0x35ad7d];if(_0x500f8e['type']!==_0x7fd995['type']||_0x500f8e['author']['id']!==_0x7fd995['author']['id']||_0x500f8e['subType']!==_0x7fd995['subType'])continue;if(!Pt(_0x7fd995,_0x500f8e,['groupId']))continue;if('attribute'==_0x7fd995['type']&&_0x7fd995['data']['oldValue']!=_0x500f8e['data']['oldValue'])continue;if('attribute'==_0x7fd995['type']&&_0x1092b9['_isBlockAttribute'](_0x7fd995['data']['key']))continue;if('formatBlock'==_0x7fd995['type']){const _0x435186=_0x1092b9['editor']['model'],_0xf53e5f=_0x7fd995['getContainedElement']();if(_0xf53e5f&&(_0x435186['schema']['isObject'](_0xf53e5f)||_0x435186['schema']['isLimit'](_0xf53e5f)))continue;}const _0x4a95fa=_0x696857['get'](_0x7fd995),_0x472c82=_0x3cd8c7['get'](_0x7fd995),_0x33249e=_0x3cd8c7['get'](_0x500f8e),_0x5ad599=_0x7fd995['commentThread']&&_0x7fd995['commentThread']['length'],_0x57a122=_0x500f8e['commentThread']&&_0x500f8e['commentThread']['length'];if(!_0x5ad599&&_0x4a95fa(_0x33249e,_0x472c82))return _0x1092b9['_joinSuggestions'](_0x500f8e,_0x7fd995),_0x3cd8c7['delete'](_0x7fd995),!0x0;if(!_0x57a122&&_0x4a95fa(_0x472c82,_0x33249e))return _0x1092b9['_joinSuggestions'](_0x7fd995,_0x500f8e),_0x3cd8c7['delete'](_0x500f8e),!0x0;}return!0x1;}}['_joinSuggestions'](_0xf1678,_0x3826a5){if(_0xf1678['isMultiRange']){for(const _0x5bea16 of _0x3826a5['getRanges']())_0xf1678['addRange'](_0x5bea16);}else{const _0xfd7843=_0x3826a5['getFirstRange']()['end'];this['_setSuggestionRange'](_0xf1678,this['_model']['createRange'](_0xf1678['getFirstRange']()['start'],_0xfd7843));}_0x3826a5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x48236c,_0x7c4529){const _0x2cff63=_0x48236c['startsWith']('format')||_0x48236c['startsWith']('attribute')?'FORMATTING':_0x48236c['toUpperCase']();return o(this['editor']['locale'],_0x7c4529+'_'+_0x2cff63+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x517a7d=this['editor'];if(!_0x517a7d['ui'])return;const {ariaLiveAnnouncer:_0x1d6184}=_0x517a7d['ui'];_0x584805(this['_model'],({left:_0x14ff98,entered:_0x3ea364})=>{for(const _0x2aee22 of _0x14ff98){const {group:_0x469f5c,type:_0xbc81e0}=this['_splitMarkerName'](_0x2aee22['name']);if('suggestion'===_0x469f5c){_0x1d6184['announce'](this['_getMarkerAnnouncementText'](_0xbc81e0,'LEAVE'));break;}}for(const _0x11d328 of _0x3ea364){const {group:_0x6e9f84,type:_0x24ef4e}=this['_splitMarkerName'](_0x11d328['name']);if('suggestion'===_0x6e9f84){_0x1d6184['announce'](this['_getMarkerAnnouncementText'](_0x24ef4e,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2fda04){if(this['_recordAttributeSuggestions'])return!0x1;const _0x33636f=this['editor'],_0x12d97d=_0x33636f['model']['document']['differ']['getChanges']();if(0x0==_0x12d97d['length'])return!0x1;const _0x1fa56f=[],_0x252fd2=_0x12d97d['filter'](_0x3b3b15=>'attribute'==_0x3b3b15['type']),_0xd67131=_0x12d97d['filter'](_0x5e90ae=>'insert'==_0x5e90ae['type']&&'$text'!=_0x5e90ae['name']),_0x165fa5=_0x12d97d['filter'](_0x2deb37=>'remove'==_0x2deb37['type']&&'$text'!=_0x2deb37['name']);for(const _0x502483 of _0x252fd2)_0x1fa56f['push']({'key':_0x502483['attributeKey'],'newValue':_0x502483['attributeNewValue'],'oldValue':_0x502483['attributeOldValue'],'range':Ot(_0x502483['range'],_0x33636f['model'])});for(const _0x161040 of _0xd67131){const _0x30fe3f=_0x165fa5['find'](_0x26dcc3=>_0x26dcc3['position']['isEqual'](_0x161040['position']));_0x30fe3f&&_0x1fa56f['push']({'key':m,'newValue':_0x161040['name'],'oldValue':_0x30fe3f['name'],'range':_0x33636f['model']['createRangeOn'](_0x161040['position']['nodeAfter'])});}return 0x0!=_0x1fa56f['length']&&this['_reduceExistingSuggestions'](_0x2fda04,_0x1fa56f);}['_processAttributeSuggestions'](_0x119cdd){let _0x28d182=!0x1;const _0xf7bf45=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5f153c=>_0x5f153c['data']['newRange']&&_0x5f153c['name']['startsWith']('suggestion:attribute:'));for(const _0x50d41e of _0xf7bf45){const {subType:_0x338bf1,id:_0x175bcf}=this['_splitMarkerName'](_0x50d41e['name']),_0x40a742=_0x338bf1['split']('|')[0x0];for(const _0x4ab96a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4ab96a['id']!=_0x175bcf&&'attribute'==_0x4ab96a['type']&&_0x4ab96a['data']&&_0x4ab96a['data']['key']==_0x40a742&&_0x4ab96a['getFirstRange']()['isIntersecting'](_0x50d41e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4ab96a,_0x50d41e['data']['newRange'],_0x119cdd),_0x28d182=!0x0);}return _0x28d182;}['_recordAttributeChanges'](_0x4b24a1){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4b24a1();}['_isRegisteredAttribute'](_0x5a64ad){const _0x5be6b1=this['_isBlockAttribute'](_0x5a64ad),_0x4945b9=this['_inlineAttributeKeys']['has'](_0x5a64ad);return _0x5be6b1||_0x4945b9;}['_reduceExistingSuggestions'](_0x2d2369,_0x23c727){if(0x0==_0x23c727['length'])return!0x1;let _0x14fb5a=!0x1;for(const _0x327a13 of _0x23c727){const _0x3837a8=this['_findSuggestions'](_0x327a13['range'],'attribute')['filter'](_0x4ddc86=>!_0x4ddc86['meta']['isNextTo'])['map'](_0x44f24d=>_0x44f24d['suggestion']),_0xd07291=_0x40c511({'newValue':_0x327a13['newValue']});_0x3837a8['filter'](_0x5e2a3f=>{const [_0x2b35d7,_0x230ac6]=_0x5e2a3f['subType']['split']('|');return _0x2b35d7==_0x327a13['key']&&_0x230ac6!=_0xd07291;})['forEach'](_0x48bdf6=>{this['_reduceSuggestionAttributeRange'](_0x48bdf6,_0x327a13['range'],_0x2d2369),_0x14fb5a=!0x0;});}return _0x14fb5a;}['_reduceSuggestionAttributeRange'](_0x3dd2c6,_0x50ab41,_0x4b24a7){const _0x59d0fd=_0x3dd2c6['getFirstRange']()['getDifference'](_0x50ab41);0x0!==_0x59d0fd['length']?0x1!==_0x59d0fd['length']?this['_breakSuggestionMarker'](_0x3dd2c6,_0x50ab41['start'],_0x50ab41['end']):this['_setSuggestionRange'](_0x3dd2c6,_0x59d0fd[0x0]):_0x4b24a7['removeMarker'](_0x3dd2c6['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x54d30f){this['_editor']=_0x54d30f,this['_model']=_0x54d30f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x56cbf7,_0x345db5,_0x466a87,_0x3d47c1,_0x54bd8c,_0x3ea32b){return new u(this['_model'],{'type':_0x56cbf7,'subType':_0x345db5,'id':_0x466a87,'author':_0x3d47c1,'creator':_0x3d47c1,'attributes':_0x54bd8c,'onAttributesChange':_0x3ea32b,'onAccept':(..._0x4277cc)=>this['getSuggestionCallback'](_0x56cbf7,_0x345db5,'accept')(..._0x4277cc),'onDiscard':(..._0x36c921)=>this['getSuggestionCallback'](_0x56cbf7,_0x345db5,'discard')(..._0x36c921)});}['registerCustomCallback'](_0x332988,_0x31dbb7,_0x4d5c3d,_0x5c15fd){const _0x56ca31=_0x332988+':'+_0x31dbb7+':'+_0x4d5c3d;this['_customCallbacks']['set'](_0x56ca31,_0x5c15fd);}['getSuggestionCallback'](_0x5a32e3,_0x1cdd63,_0x177462){const _0x1d51f9=_0x5a32e3+':'+_0x1cdd63+':'+_0x177462;return this['_customCallbacks']['get'](_0x1d51f9)||this['_defaultCallbacks']['get'](_0x5a32e3+':'+_0x177462);}['_registerDefaultCallbacks'](){const _0x2df507=()=>!0x1,_0x4c5d37=_0x303936=>{_0x303936['sort']((_0x4656ac,_0x496a5b)=>_0x4656ac['start']['isBefore'](_0x496a5b['start'])?0x1:-0x1),this['_model']['change'](_0xefb265=>{for(const _0x575747 of _0x303936){let _0x3736a8;_0x3736a8=_0x575747['end']['isAtEnd']&&_0x575747['end']['parent']==_0x575747['start']['nodeAfter']?_0xefb265['createSelection'](_0x575747['start']['nodeAfter'],'on'):_0xefb265['createSelection'](_0x575747),this['_model']['deleteContent'](_0x3736a8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2ba336=(_0x426ba4,_0x5cd4cc)=>{_0x5cd4cc&&this['_model']['change'](_0x454bb4=>{const {commandName:_0x11ffc3,commandParams:_0x509e75=[]}=_0x5cd4cc,_0x3906c3=_0x426ba4['map'](_0x581470=>(Tt(_0x581470)&&(_0x581470=this['_model']['createRange'](_0x581470['end'])),_0x581470))['filter'](_0x279c4c=>'$graveyard'!==_0x279c4c['root']['rootName']);if(_0x3906c3['length']<0x1)return;const _0x591da8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x50677a=>_0x17267b['fromRange'](_0x50677a));_0x454bb4['setSelection'](_0x3906c3);for(const _0x4a1149 of this['_editor']['commands']['commands']())_0x4a1149['refresh']();_0x509e75['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x11ffc3,..._0x509e75);const _0x1b80f1=_0x591da8['filter'](_0x1b1745=>'$graveyard'!=_0x1b1745['root']['rootName']);_0x1b80f1['length']>0x0&&_0x454bb4['setSelection'](_0x1b80f1);for(const _0x5207c8 of _0x591da8)_0x5207c8['detach']();});},_0x35a68b=(_0x1a93df,_0x188cb8)=>0x1==_0x1a93df['length']&&0x1==_0x188cb8['length']&&_0x1a93df[0x0]['end']['isEqual'](_0x188cb8[0x0]['start']),_0x5b07b7=(_0x15e142,_0x29001e,_0x54a22f,_0x370d56)=>Ft(_0x15e142,_0x29001e,_0x54a22f,_0x370d56,this['_model'])?[_0x15e142,_0x29001e]:Ft(_0x29001e,_0x15e142,_0x370d56,_0x54a22f,this['_model'])?[_0x29001e,_0x15e142]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2df507),this['_defaultCallbacks']['set']('insertion:discard',_0x4c5d37),this['_defaultCallbacks']['set']('insertion:join',_0x35a68b),this['_defaultCallbacks']['set']('insertion:chain',_0x5b07b7),this['_defaultCallbacks']['set']('deletion:accept',_0x4c5d37),this['_defaultCallbacks']['set']('deletion:discard',_0x2df507),this['_defaultCallbacks']['set']('deletion:join',_0x35a68b),this['_defaultCallbacks']['set']('deletion:chain',_0x5b07b7),this['_defaultCallbacks']['set']('formatInline:accept',_0x2ba336),this['_defaultCallbacks']['set']('formatInline:discard',_0x2df507),this['_defaultCallbacks']['set']('formatInline:join',_0x35a68b),this['_defaultCallbacks']['set']('formatInline:chain',_0x2df507),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2ba336),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2df507),this['_defaultCallbacks']['set']('formatBlock:join',_0x35a68b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2df507),this['_defaultCallbacks']['set']('attribute:accept',_0x2df507),this['_defaultCallbacks']['set']('attribute:discard',(_0x509481,_0x166005)=>{if(!_0x166005)return;const _0x515a67=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2035ec=>{if(_0x166005['key']==m)for(const _0x5dbcc2 of _0x509481){const _0xf4fe35=_0x5dbcc2['start']['nodeAfter'],_0x1f57ff=_0x166005['oldValue'];_0x2035ec['rename'](_0xf4fe35,_0x1f57ff);}else{if(_0x515a67['_isBlockAttribute'](_0x166005['key'])){for(const _0x2dcf21 of _0x509481)void 0x0!==_0x166005['oldValue']?_0x2035ec['setAttribute'](_0x166005['key'],_0x166005['oldValue'],_0x2dcf21['start']['nodeAfter']):_0x2035ec['removeAttribute'](_0x166005['key'],_0x2dcf21['start']['nodeAfter']);}else{for(const _0x1ebcef of _0x509481)_0x166005['oldValue']?_0x2035ec['setAttribute'](_0x166005['key'],_0x166005['oldValue'],_0x1ebcef):_0x2035ec['removeAttribute'](_0x166005['key'],_0x1ebcef);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x35a68b);}}function Rt(_0x301b7f,_0x702304,_0x4d6ca1){for(const _0x392743 of _0x702304['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x392743['root']==_0x392743)return!0x1;if(!_0x4d6ca1['containsItem'](_0x392743))return!0x1;if(_0x301b7f['isObject'](_0x392743)||_0x301b7f['isLimit'](_0x392743))return!0x0;}return!0x1;}function Tt(_0x1af2c7){return _0x1af2c7['end']['parent']==_0x1af2c7['start']['nodeAfter']&&_0x1af2c7['end']['isAtStart'];}function Et(_0x584e64,_0x29a9d5,_0x4a60f1,_0x411144){const _0xf92ebe=_0x2f0e56=>!_0x2f0e56['item']['is']('$textProxy')&&!_0x411144['isObject'](_0x2f0e56['item']),_0x2a41ec=_0x584e64['start']['getLastMatchingPosition'](_0xf92ebe),_0x2db8f5=_0x584e64['end']['getLastMatchingPosition'](_0xf92ebe,{'direction':'backward'});return(!_0x584e64['start']['isEqual'](_0x2a41ec)||!_0x584e64['end']['isEqual'](_0x2db8f5))&&(_0x2a41ec['isBefore'](_0x2db8f5)?_0x4a60f1['updateMarker'](_0x29a9d5,{'range':_0x4a60f1['createRange'](_0x2a41ec,_0x2db8f5)}):_0x4a60f1['removeMarker'](_0x29a9d5),!0x0);}function Vt(_0x42a721){return _0x40c511(_0x42a721);}function Ut(_0x57d7e7){const _0x3a20cb=_0x57d7e7['start']['nodeAfter'];return _0x3a20cb&&_0x3a20cb['is']('element');}function Ot(_0x50b60e,_0x3f9e75){return null==_0x50b60e['end']['nodeBefore']&&_0x50b60e['end']['parent']==_0x50b60e['start']['nodeAfter']?Gt(_0x50b60e['start']['nodeAfter'],_0x3f9e75):_0x50b60e;}function Gt(_0x11cbfb,_0x3045bf){const _0x29bbbe=_0x3045bf['schema']['isObject'](_0x11cbfb)||_0x3045bf['schema']['isSelectable'](_0x11cbfb);return _0x3045bf['createRange'](_0x3045bf['createPositionAt'](_0x11cbfb,'before'),_0x29bbbe?_0x3045bf['createPositionAfter'](_0x11cbfb):_0x3045bf['createPositionAt'](_0x11cbfb,'end'));}function Ft(_0x46388c,_0x30759e,_0x3a4e07,_0x54fcdd,_0x25839e){if(!Pt(_0x46388c,_0x30759e))return!0x1;if(_0x3a4e07['end']['isEqual'](_0x54fcdd['start']))return!0x0;if(_0x46388c['type']!=_0x30759e['type'])return!0x1;if(!_0x3a4e07['end']['isTouching'](_0x54fcdd['start']))return!0x1;const _0x5c3449=_0x25839e['createRange'](_0x3a4e07['end'],_0x54fcdd['start'])['getWalker']();for(const _0x227106 of _0x5c3449)if(['elementStart','elementEnd']['includes'](_0x227106['type'])&&_0x25839e['schema']['isLimit'](_0x227106['item']))return!0x1;return!0x0;}function Pt(_0xe9f1b7,_0x58d766,_0x3de80a=[]){return!(!_0xe9f1b7['_isDataLoaded']||!_0x58d766['_isDataLoaded'])&&_0xd4c736(Bt(_0xe9f1b7['attributes'],_0x3de80a),Bt(_0x58d766['attributes'],_0x3de80a));}function Lt(_0x762796,_0x2c8425){const _0x334783=Ht(_0x762796['attributes']),_0x3af83a=Ht(_0x2c8425);if(!_0x762796['_isDataLoaded'])return!0x1;for(const _0x2d83c2 of Object['keys'](_0x3af83a))if(!_0xd4c736(_0x334783[_0x2d83c2],_0x3af83a[_0x2d83c2]))return!0x1;return!0x0;}function Ht(_0x4fb335){const _0x368ce0=Object['assign']({},_0x4fb335);return delete _0x368ce0['skipNestingCheck'],delete _0x368ce0['tablePasteChainId'],_0x368ce0;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1bee3c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x13876c,_0x16b632,_0x77b395,_0x57fcbe){super(),this['model']=_0x16b632,this['view']=_0x77b395,this['commentThreadController']=_0x57fcbe,this['_editor']=_0x13876c,this['_acceptCommand']=_0x13876c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x13876c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2a1ee4,_0x2b945a)=>_0x2a1ee4||_0x2b945a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x285352=>_0x285352&&this['_editor']['model']['canEditAt'](_0x16b632['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x27b428=>_0x27b428&&this['_editor']['model']['canEditAt'](_0x16b632['getRanges']())),this['_pendingAction']=null,_0x77b395['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x77b395,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x77b395,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x77b395,'change:isDirty',()=>{_0x77b395['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 _0x2a95a9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2a95a9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x502ad6{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x2a2b58,_0x2d8acf,_0x4a3ef4,_0x4bc15c){super(_0x2a2b58),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x2d8acf['authoredAt']),this['bind']('authoredAt')['to'](_0x2d8acf),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x2d8acf,this['_localUser']=_0x4a3ef4,this['_config']=_0x4bc15c,_0x4bc15c['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:_0x5aad13}=this['_config'];this['commentsListView']=new _0x5aad13(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',_0x449006=>_0x449006+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x25c885,_0x20736a)=>_0x25c885||!!_0x20736a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x201dea}=this['_config'],_0x4634b3=new _0x201dea(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2cc63c=_0x4634b3['commentInputView'];return _0x4634b3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2cc63c,'value',(_0x1794c8,_0x532cc3,_0xda8c03)=>!!_0xda8c03||_0x1794c8&&!_0x532cc3),_0x2cc63c['on']('submit',(_0xfd31bf,_0x7362b4)=>{this['fire']('addComment',_0x7362b4),_0x2cc63c['editor']['setData']('');}),_0x2cc63c['on']('cancel',()=>this['focus']()),_0x2cc63c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4634b3;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x132e53,_0x34930a,_0x1a180b,_0x57e6d0){super(_0x132e53,_0x34930a,_0x1a180b,_0x57e6d0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x583884=>_0x583884&&_0x583884[0x0]?_0x583884[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x222cf3,_0x42bd93)=>{let _0x2233c2='';for(const _0x3e9276 of _0x222cf3)_0x2233c2+='<p>'+ds(_0x3e9276['content'],_0x3e9276['color'])+'</p>';return _0x42bd93?_0x2233c2:_0x579d17(_0x2233c2,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x132e53,'Accept\x20suggestion'),_0x32fe92['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x132e53,'Discard\x20suggestion'),_0x32fe92['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x339a1e(_0x132e53,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1c2dcd=this['bindTemplate'],_0x9477f9=[{'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':_0x1c2dcd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1c2dcd['to']('authoredAt',_0x48619a=>this['_config']['formatDateTime'](_0x48619a))}]}]},{'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']&&_0x9477f9['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2254f9={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x1c2dcd['if']('isActive','ck-suggestion-wrapper--active'),_0x1c2dcd['to']('type',_0x58eb53=>'ck-suggestion-'+_0x58eb53),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':_0x9477f9}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2254f9['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)),_0x2254f9;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x3694ee,_0x5ed123,_0x14449c)=>{this['_descriptionElement']['innerHTML']=_0x14449c;});}['_createButton'](_0x1d34e9,_0x45a88c,_0x23894c,_0x6ec679,_0xf7432a){const _0x16f21f=new _0x31bbbd(this['locale']);return _0x16f21f['set']({'label':_0x1d34e9,'icon':_0x45a88c,'tooltip':!0x0,'tooltipPosition':_0xf7432a}),_0x16f21f['extendTemplate']({'attributes':{'class':_0x23894c}}),_0x16f21f['on']('execute',()=>{this['fire'](_0x6ec679,this['_model']['id']);}),_0x16f21f;}['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(_0x433c37,_0x5ddc1f){let _0x5b8dc6='';return _0x5b8dc6+=_0x433c37['split']('*')['map']((_0xf69ece,_0x202729)=>_0x202729%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xf69ece)+'</span>':us(_0xf69ece))['join'](''),_0x5ddc1f&&(_0x5b8dc6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5ddc1f['value']+'\x22\x20title=\x22'+_0x5ddc1f['title']+'\x22></span>'),_0x5b8dc6;}function us(_0x295e1d){const _0x2ffce5=document['createElement']('span');return _0x2ffce5['innerText']=_0x295e1d,_0x2ffce5['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 _0x11216f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5c6d6e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5f59f3){super(_0x5f59f3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5c0b3d=this['editor']['config'];_0x5c0b3d['define']('trackChanges.SuggestionThreadView',ne),_0x5c0b3d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5c0b3d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x197053,_0xb2f871){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x7099d9,_0x2d8cd4]of this['_handleControllerBuffer']){const _0xc670ef=this['_suggestionToController']['has'](_0x7099d9);_0xc670ef||_0x2d8cd4?_0xc670ef&&_0x2d8cd4&&this['_destroyController'](_0x7099d9):this['_initializeController'](_0x7099d9);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x197053,_0xb2f871);}['init'](){const _0x59af2d=this['editor'],_0x1dfc9a=_0x59af2d['plugins']['get']('TrackChangesEditing'),_0x440da9=_0x59af2d['plugins']['get']('Annotations'),_0x54bf01=_0x59af2d['plugins']['get']('EditorAnnotations'),_0x138588=_0x59af2d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x54bf01['addSourceCollector'](()=>{const _0xb801ad=[];for(const [_0x28a0f6,_0x5a3e85]of Array['from'](this['_suggestionToController'])){const _0x333570=_0x28a0f6['getAllAdjacentSuggestions'](),_0x2bda61=[];for(const _0x5cb750 of _0x333570){if(!_0x5cb750['isInContent'])continue;if(_0x5cb750['isMultiRange']){_0x2bda61['push'](..._0x5cb750['getRanges']());continue;}const _0x42fa63=_0x5cb750['getFirstRange']();if(_0x2bda61['length']>0x0){const _0x597ccf=_0x2bda61[0x0]['getJoined'](_0x42fa63);if(_0x597ccf){_0x2bda61[0x0]=_0x597ccf;continue;}}_0x2bda61['push'](_0x42fa63);}_0xb801ad['push']([_0x5a3e85['view'],_0x2bda61]);}return _0xb801ad;}),this['listenTo'](_0x1dfc9a,'suggestionLoaded',(_0xbddd3,_0x266505)=>{this['listenTo'](_0x266505,'change:previous',(_0x27d5b5,_0x3e2c3a,_0x25762b,_0x49f138)=>{_0x266505['isInContent']&&(null==_0x25762b?(this['_updateController'](_0x49f138['head']),this['_handleSuggestionControllerDelayed'](_0x266505,!0x1)):(this['_updateController'](_0x25762b['head']),null==_0x49f138&&this['_handleSuggestionControllerDelayed'](_0x266505,!0x0)));}),null!==_0x266505['previous']?this['_updateController'](_0x266505['head']):this['_handleSuggestionControllerDelayed'](_0x266505,!0x1);}),this['listenTo'](_0x1dfc9a,'suggestionUnloaded',(_0x2fa68d,_0x298bed,_0x21c695)=>{this['stopListening'](_0x298bed,'change:previous'),this['_handleControllerBuffer']['delete'](_0x298bed),this['_suggestionToController']['has'](_0x298bed)&&this['_destroyController'](_0x298bed),_0x21c695&&this['_updateController'](_0x21c695['head']);}),this['listenTo'](_0x1dfc9a,'suggestionChanged',(_0x121bce,_0x1d17cf)=>{this['_updateController'](_0x1d17cf);}),this['listenTo'](_0x440da9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x138588,'addComment',(_0x407f28,{threadId:_0x59d2b0,isFromAdapter:_0x1af215})=>{if(_0x1af215||!_0x1dfc9a['hasSuggestion'](_0x59d2b0))return;const _0x5b048c=_0x1dfc9a['getSuggestion'](_0x59d2b0);this['_suggestionToController']['get'](_0x5b048c)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x274fc2=this['editor']['plugins']['get']('Annotations'),_0x1033ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x176377=Array['from'](_0x274fc2['activeAnnotations'],_0x8b0fa4=>_0x8b0fa4['innerView'])['filter'](_0x277ac2=>this['_viewToController']['has'](_0x277ac2)),_0x2c548b=[];for(const _0x199bf7 of _0x176377){const _0x4c977b=this['_viewToController']['get'](_0x199bf7)['model']['getAllAdjacentSuggestions']();_0x2c548b['push'](..._0x4c977b['reduce']((_0x5a6557,_0x20f1b1)=>[..._0x5a6557,..._0x20f1b1['getMarkerNames']()],[]));}_0x1033ea['activeMarkers']=_0x2c548b;}['_addUIComponentsToFactory'](){const _0x48aaf7=this['editor'],_0x5b8174=_0x48aaf7['locale'],_0x2500d1=o(_0x5b8174,'Track\x20changes'),_0x297a52=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x2500d1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b8174,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b8174,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b8174,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b8174,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2a44f2 of _0x297a52)if(ae(_0x2a44f2)){const _0x3de5ed=_0x48aaf7['commands']['get'](_0x2a44f2['model']['commandName']);_0x2a44f2['model']['bind']('isOn','isEnabled')['to'](_0x3de5ed,'value','isEnabled');}_0x48aaf7['ui']['componentFactory']['add']('trackChanges',_0x2f0166=>this['_createToolbarButton'](_0x2f0166,_0x297a52,_0x2500d1)),_0x48aaf7['ui']['componentFactory']['add']('menuBar:trackChanges',_0xa4ba35=>this['_createMenuBarMenu'](_0xa4ba35,_0x297a52,_0x2500d1));}['_createToolbarButton'](_0x46675e,_0x152207,_0x323ce2){const _0x47840b=zt(_0x46675e,Zt),_0x480ce0=this['editor']['commands']['get']('trackChanges');_0x47840b['buttonView']['set']({'tooltip':_0x323ce2,'label':_0x323ce2,'icon':ie}),_0x47840b['buttonView']['bind']('isOn')['to'](_0x480ce0,'value'),_0x47840b['buttonView']['on']('execute',()=>{_0x480ce0['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x47840b,_0x152207,{'role':'menu'});const _0x5d5317=[];for(const _0x21f361 of _0x152207)ae(_0x21f361)&&_0x5d5317['push'](this['editor']['commands']['get'](_0x21f361['model']['commandName']));const _0xb033db=_0x47840b['buttonView'];return _0xb033db['actionView']['unbind']('isEnabled'),_0xb033db['arrowView']['unbind']('isEnabled'),_0xb033db['actionView']['bind']('isEnabled')['to'](_0x480ce0,'isEnabled'),_0xb033db['arrowView']['bind']('isEnabled')['toMany'](_0x5d5317,'isEnabled',(..._0x2f008b)=>_0x2f008b['some'](_0x38cea8=>_0x38cea8)),_0x47840b['on']('execute',_0x8b2888=>{this['editor']['execute'](_0x8b2888['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x47840b;}['_createMenuBarMenu'](_0x40d6e9,_0x2686a6,_0x158218){const _0x598a48=new Kt(_0x40d6e9),_0x4463a6=this['editor']['commands']['get']('trackChanges');_0x598a48['buttonView']['set']({'label':_0x158218,'icon':ie});const _0x47ecc6=new Qt(_0x40d6e9);for(const _0x2ee89c of _0x2686a6){if('separator'==_0x2ee89c['type']){_0x47ecc6['items']['add'](new Jt(_0x40d6e9));continue;}const _0x2526fd=new Xt(_0x40d6e9,_0x598a48),_0x2ac800=new Yt(_0x40d6e9),_0x4b0ca8=_0x2ee89c['model'];_0x2ac800['bind'](...Object['keys'](_0x4b0ca8))['to'](_0x4b0ca8),_0x2ac800['delegate']('execute')['to'](_0x598a48),_0x2ac800['on']('execute',()=>{this['editor']['execute'](_0x4b0ca8['commandName']),this['editor']['editing']['view']['focus']();}),_0x2526fd['children']['add'](_0x2ac800),_0x47ecc6['items']['add'](_0x2526fd);}return _0x598a48['bind']('isEnabled')['to'](_0x4463a6,'isEnabled'),_0x598a48['panelView']['children']['add'](_0x47ecc6),_0x598a48;}['_initializeController'](_0x550e99){const _0x48e3a7=this['editor'],_0x476734=_0x48e3a7['config'],_0xcb3b45=_0x48e3a7['plugins']['get']('Annotations'),_0x2a9a77=_0x48e3a7['plugins']['get']('CommentsRepository'),_0x4ce7e9=_0x48e3a7['plugins']['get']('EditorAnnotations'),_0xafc21b=_0x48e3a7['plugins']['get'](_0x5c6d6e)['me'],_0x5b425a=_0x476734['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xfab480,CommentThreadInputView:_0x4c8206}=_0x48e3a7['plugins']['get']('CommentsUI');let _0x56294b,_0x5086a8;this['_annotationViews']['has'](_0x550e99['id'])?(_0x5086a8=this['_annotationViews']['get'](_0x550e99['id']),_0x56294b=_0x5086a8['mainView']):(_0x56294b=new _0x5b425a(_0x48e3a7['locale'],_0x550e99,_0xafc21b,{'disableComments':this['_disableComments'],'editorConfig':_0x476734['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x476734['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x476734['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x476734['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x300dce(_0x476734['get']('locale')),'CommentView':_0x476734['get']('comments')['CommentView'],'CommentsListView':_0xfab480,'CommentThreadInputView':_0x4c8206}),_0x56294b['acceptButton']['on']('execute',()=>{_0x48e3a7['editing']['view']['focus']();}),_0x56294b['discardButton']['on']('execute',()=>{_0x48e3a7['editing']['view']['focus']();}),_0x5086a8=_0xcb3b45['createAnnotationView'](this['editor']['locale'],_0x56294b),_0x5086a8['bind']('isDirty')['to'](_0x56294b,'isDirty'),_0x5086a8['bind']('length')['to'](_0x56294b),_0x5086a8['bind']('type')['to'](_0x56294b,'type',_0x2753a8=>'suggestion-'+_0x2753a8),this['_annotationViews']['set'](_0x550e99['id'],_0x5086a8));const _0x486cde=_0x2a9a77['createCommentThreadController'](_0x550e99['commentThread'],_0x56294b),_0x43d37f=new oe(_0x48e3a7,_0x550e99,_0x56294b,_0x486cde),_0x1ca8d8=_0x550e99['getAllAdjacentSuggestions']()['filter'](_0x42fae5=>_0x42fae5['isInContent']);_0x56294b['descriptionParts']=_0x48e3a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1ca8d8),this['_suggestionToController']['set'](_0x550e99,_0x43d37f),this['_viewToController']['set'](_0x56294b,_0x43d37f);const _0x7b5124=_0xcb3b45['createAnnotation']({'view':_0x5086a8,'target':()=>{const _0x2d80bf=[],_0x5cf249=_0x550e99['getAllAdjacentSuggestions']()['filter'](_0x1dbcd4=>_0x1dbcd4['isInContent']);for(const _0x187933 of _0x5cf249)_0x2d80bf['push'](..._0x187933['getMarkers']());return _0x185d75(_0x48e3a7['editing'],_0x2d80bf);},'type':()=>'suggestion-'+_0x43d37f['view']['type']});_0x2a9a77['_bindAnnotationToEditors'](_0x56294b,_0x7b5124),_0xcb3b45['add'](_0x7b5124),_0x4ce7e9['registerAnnotation'](_0x7b5124);}['_destroyController'](_0x1524ab){const _0x552630=this['editor']['plugins']['get']('CommentsRepository'),_0xf62a15=this['editor']['plugins']['get']('Annotations'),_0xf2674f=this['_suggestionToController']['get'](_0x1524ab),_0xa8c8ec=_0xf2674f['view'],_0x11664a=_0xf62a15['getByInnerView'](_0xa8c8ec);_0x552630['_unbindEditors'](_0xa8c8ec),_0x11664a&&_0xf62a15['remove'](_0x11664a),this['_suggestionToController']['delete'](_0x1524ab),this['_viewToController']['delete'](_0xa8c8ec),_0xf2674f['destroy']();}['_updateController'](_0x22bdaf){if(!_0x22bdaf['isInContent']||!this['_suggestionToController']['has'](_0x22bdaf))return;const _0x42a846=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19ffec=this['_suggestionToController']['get'](_0x22bdaf),_0x19e208=_0x22bdaf['getAllAdjacentSuggestions']();_0x19ffec['view']['descriptionParts']=_0x42a846['descriptionFactory']['getDescriptions'](_0x19e208);}['destroy'](){for(const _0xb4d91d of this['_suggestionToController']['keys']())this['_destroyController'](_0xb4d91d);for(const _0x4a0d3a of this['_annotationViews']['values']())_0x4a0d3a['mainView']['destroy']();super['destroy']();}}function ae(_0x1064ef){return'model'in _0x1064ef;}class k extends _0x11216f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5e5ceb){this['editor']['plugins']['get'](p)['adapter']=_0x5e5ceb;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x351ecc){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x351ecc);}['getSuggestions']({skipNotAttached:_0x2e29d3=!0x1,toJSON:_0x117917=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2e29d3,'toJSON':_0x117917});}['getSuggestion'](_0x528f44){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x528f44);}}const T=['Pagination'];class P extends _0x11216f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x2ebe43=this['editor'];if(_0x2ebe43['config']['define']('trackChangesData.editorCreator',_0x6f5e1b=>{const _0x462130=_0x2ebe43['model']['document']['getRootNames']()['reduce']((_0x4f9b14,_0x124ff2)=>(_0x4f9b14[_0x124ff2]='',_0x4f9b14),{});return _0x2ebe43['constructor']['create'](_0x462130,_0x6f5e1b);}),'function'!=typeof _0x2ebe43['config']['get']('trackChangesData')['editorCreator'])throw new _0x56ae75('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3ed529){return N(this['editor'],!0x0,_0x3ed529);}['getDataWithDiscardedSuggestions'](_0x137e38){return N(this['editor'],!0x1,_0x137e38);}}class D extends _0x11216f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x24875e){super(_0x24875e),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(_0x3759c5){return void 0x0!==_0x3759c5['getRootsAttributes'];}async function N(_0x210eb4,_0x2fe10f,_0x3aa707){const _0x3ff80b=_0x43161b(_0x210eb4,T);_0x3ff80b['plugins']['push'](p,D),_0x3ff80b['rootsAttributes']=v(_0x210eb4)?_0x210eb4['getRootsAttributes']():void 0x0;const _0x5d605d=document['createDocumentFragment'](),_0x5845c6=_0x210eb4['config']['get']('trackChangesData')['editorCreator'],_0x2d5cfc=await _0x5845c6(_0x3ff80b,()=>function(_0x11c186){const _0x42b06b=document['createElement']('div');return _0x11c186['appendChild'](_0x42b06b),_0x42b06b;}(_0x5d605d));!function(_0x168a3d,_0xd54735){const _0xcd72d8=_0x168a3d['model']['document']['getRootNames']()['reduce']((_0x1cc7f7,_0x153bb8)=>(_0x1cc7f7[_0x153bb8]=_0x168a3d['data']['get']({'rootName':_0x153bb8}),_0x1cc7f7),{}),_0x3dbb96=_0x168a3d['plugins']['get']('Users')['users']['map'](_0x172af0=>({'id':_0x172af0['id'],'name':_0x172af0['name']})),_0x2d9915=_0x168a3d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x970b79=_0x168a3d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1a0b86=_0xd54735['plugins']['get']('Users'),_0x47c9c7=_0xd54735['plugins']['get']('TrackChangesEditing'),_0xea8db2=_0xd54735['plugins']['get']('CommentsRepository');for(const _0xf96457 of _0x3dbb96)_0x1a0b86['getUser'](_0xf96457['id'])||_0x1a0b86['addUser'](_0xf96457);_0x1a0b86['me']||_0x1a0b86['useAnonymousUser']();for(const _0x240be6 of _0x970b79)_0xea8db2['addCommentThread'](_0x240be6);for(const _0x10b43e of _0x2d9915)_0x47c9c7['addSuggestionData'](_0x10b43e);_0xd54735['data']['set'](_0xcd72d8);}(_0x210eb4,_0x2d5cfc),_0x2d5cfc['execute'](_0x2fe10f?'acceptAllSuggestions':'discardAllSuggestions');const _0x3d79f9=v(_0x2d5cfc)?_0x2d5cfc['getFullData'](_0x3aa707):_0x2d5cfc['data']['get'](_0x3aa707);return await _0x2d5cfc['destroy'](),_0x3d79f9;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|